Merge pull request #1 from BeatsAD/codex/normalize-plugin-version-1.0.0

Codex/normalize plugin version 1.0.0
This commit is contained in:
WenBin 2026-06-14 20:51:00 +08:00 committed by GitHub
commit 51ebfd0b72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 95 additions and 45 deletions

View file

@ -24,6 +24,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Prepare test vault
run: npm run install:test-vault
- name: Test
run: npm test

View file

@ -25,6 +25,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Prepare test vault
run: npm run install:test-vault
- name: Test
run: npm test

View file

@ -1,45 +1,10 @@
# Changelog
English | [中文](CHANGELOG_ZH.md)
All notable changes to this project will be documented in this file.
## 3.0.0 - 2026-06-08
### Added
- Settings review layout with top language/help/GitHub actions and four recent-sync summary metrics.
- Connection action row for clearing config and testing the Dify connection; successful tests refresh and save the knowledge base list.
- API key show/hide control in the connection section.
- Table-based path mappings with index, Obsidian path, knowledge base tags, status switch, and icon-only edit/delete controls.
- Tested settings summary view-model for recent sync metrics and connection tones.
### Changed
- Renamed the release identity to Vault2Dify, including plugin metadata, package metadata, GitHub links, installation paths, and settings/help copy.
- Updated release metadata in `package.json`, `package-lock.json`, `manifest.json`, and `versions.json` to `3.0.0`.
- Updated README, Chinese user guide, installation notes, and release checklist for the 3.0 settings review experience.
- Reconciled current documentation with the latest shipped plugin UI, including path mappings, fixed sync-setting choices, and hidden compatibility fields.
## 2.0.0 - 2026-06-07
### Added
- Progressive 2.0 settings experience with a first-run path: fill the Dify API Key, test the connection, refresh knowledge bases, then add a folder mapping.
- Connection health overview for current availability, active Dify address, last successful address, recent sync status, and clearer failure feedback.
- Card-based folder mappings with enable/disable state, knowledge base tags, edit controls, and delete confirmation that explains local and remote deletion boundaries.
- Mapping modal flow for selecting an Obsidian folder, choosing one or more Dify knowledge bases, and saving an enabled or disabled mapping.
- Sync diagnostics panel for recent sync source, totals, duration, active address, errors, and recently failed files.
- Short status bar messages such as ready, syncing, and failed, with longer details moved into settings diagnostics.
### Changed
- Updated README, Chinese user guide, installation notes, release checklist, and security guidance for the 2.0 setup, upgrade, and privacy expectations.
- Aligned release metadata in `package.json`, `package-lock.json`, `manifest.json`, and `versions.json` to `2.0.0`.
### Validation
- Added 2.0 release checklist coverage for version consistency, prototype-critical setup flow, Dify connection checks, folder mappings, sync behavior, local deletion policy, release assets, and privacy boundaries.
## 1.0.0 - 2026-06-07
## 1.0.0 - 2026-06-08
### Added
@ -63,6 +28,28 @@ All notable changes to this project will be documented in this file.
- Settings diagnostics for active Dify endpoint and recent sync details.
- Test foundation for sync utilities such as URL normalization, folder matching, ID parsing, numeric clamping, and sync record keys.
- Gradual source split for shared types, Dify API client, sync record helpers, and path/parsing utilities.
- Progressive settings experience with a first-run path: fill the Dify API Key, test the connection, refresh knowledge bases, then add a folder mapping.
- Connection health overview for current availability, active Dify address, last successful address, recent sync status, and clearer failure feedback.
- Card-based folder mappings with enable/disable state, knowledge base tags, edit controls, and delete confirmation that explains local and remote deletion boundaries.
- Mapping modal flow for selecting an Obsidian folder, choosing one or more Dify knowledge bases, and saving an enabled or disabled mapping.
- Sync diagnostics panel for recent sync source, totals, duration, active address, errors, and recently failed files.
- Short status bar messages such as ready, syncing, and failed, with longer details moved into settings diagnostics.
- Settings review layout with top language/help/GitHub actions and four recent-sync summary metrics.
- Connection action row for clearing config and testing the Dify connection; successful tests refresh and save the knowledge base list.
- API key show/hide control in the connection section.
- Table-based path mappings with index, Obsidian path, knowledge base tags, status switch, and icon-only edit/delete controls.
- Tested settings summary view-model for recent sync metrics and connection tones.
### Changed
- Renamed the release identity to Vault2Dify, including plugin metadata, package metadata, GitHub links, installation paths, and settings/help copy.
- Updated release metadata in `package.json`, `package-lock.json`, `manifest.json`, and `versions.json` to `1.0.0`.
- Updated README, Chinese user guide, installation notes, and release checklist for the settings review experience.
- Reconciled current documentation with the latest shipped plugin UI, including path mappings, fixed sync-setting choices, and hidden compatibility fields.
### Validation
- Added release checklist coverage for version consistency, setup flow, Dify connection checks, folder mappings, sync behavior, local deletion policy, release assets, and privacy boundaries.
### Documentation

59
CHANGELOG_ZH.md Normal file
View file

@ -0,0 +1,59 @@
# 更新日志
[English](CHANGELOG.md) | 中文
本项目的所有重要变更都会记录在这个文件中。
## 1.0.0 - 2026-06-08
### 新增
- 中文优先的 Obsidian 设置页、通知、状态栏和命令。
- 支持配置 Dify API 主地址、局域网地址和公网地址。
- 支持端点策略选择和自动回退。
- 通过 `GET /v1/datasets` 测试连接并刷新知识库。
- 支持文件夹到知识库的映射。
- 支持一个文件夹同步到多个 Dify 知识库。
- 支持多个文件夹同步到同一个 Dify 知识库。
- 支持 Markdown 文件创建、修改和重命名事件触发同步。
- 支持启动同步和周期性全量扫描兜底。
- 支持请求超时、重试、并发、同步队列和同步锁处理。
- 兼容 Dify 文档路径 `create-by-text` / `update-by-text``create_by_text` / `update_by_text`
- 同步记录按 `知识库 ID + 文件路径` 建立键值。
- 远程文档名称基于 Obsidian 文件路径生成,避免同名文件冲突。
- 记录本地删除行为,但不会自动删除远程文档。
- 可选检查 Dify 索引状态。
- 支持调试日志和同步记录重置工具。
- 为常见 Dify API、权限、超时和网络错误提供更友好的连接诊断。
- 设置页诊断信息显示当前活动 Dify 端点和最近同步详情。
- 为 URL 规范化、文件夹匹配、ID 解析、数字范围限制和同步记录键等同步工具增加测试基础。
- 逐步拆分共享类型、Dify API 客户端、同步记录辅助函数和路径/解析工具。
- 渐进式首次使用路径:填写 Dify API Key、测试连接、刷新知识库然后添加文件夹映射。
- 连接健康概览显示当前可用性、活动 Dify 地址、上次成功地址、最近同步状态和更清晰的失败反馈。
- 卡片式文件夹映射,支持启用/禁用状态、知识库标签、编辑控制和带本地/远程删除边界说明的删除确认。
- 映射弹窗流程,支持选择 Obsidian 文件夹、选择一个或多个 Dify 知识库,并保存为启用或禁用映射。
- 同步诊断面板显示最近同步来源、总数、耗时、活动地址、错误和最近失败文件。
- 简短状态栏消息,例如就绪、同步中和失败;更长的详情移到设置页诊断中。
- 设置页评审布局顶部包含语言、帮助、GitHub 操作,以及四个最近同步摘要指标。
- 连接操作行支持清空配置和测试 Dify 连接;测试成功后会刷新并保存知识库列表。
- 连接配置区支持显示/隐藏 API Key。
- 表格式路径映射包含序号、Obsidian 路径、知识库标签、状态开关和仅图标编辑/删除控制。
- 为最近同步指标和连接状态语气增加经过测试的设置摘要视图模型。
### 变更
- 将发布身份重命名为 Vault2Dify包括插件元数据、包元数据、GitHub 链接、安装路径和设置/帮助文案。
- 将 `package.json`、`package-lock.json`、`manifest.json` 和 `versions.json` 中的发布元数据更新为 `1.0.0`
- 更新 README、中文用户指南、安装说明和发布检查清单以匹配设置页评审体验。
- 将当前文档与最新发布的插件 UI 对齐,包括路径映射、固定同步设置选项和隐藏的兼容字段。
### 验证
- 为版本一致性、设置流程、Dify 连接检查、文件夹映射、同步行为、本地删除策略、发布产物和隐私边界增加发布检查清单覆盖。
### 文档
- 新增中文用户指南。
- 新增公开发布就绪计划。
- 新增安全和隐私文档。
- 更新安装指南以支持多知识库映射。

View file

@ -1,7 +1,7 @@
{
"id": "vault-to-dify",
"name": "Vault2Dify",
"version": "3.0.0",
"version": "1.0.0",
"minAppVersion": "0.15.0",
"description": "Sync selected Obsidian Markdown notes to your configured Dify Knowledge Base.",
"author": "WenBin",

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "vault-to-dify",
"version": "3.0.0",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "vault-to-dify",
"version": "3.0.0",
"version": "1.0.0",
"license": "MIT",
"devDependencies": {
"@playwright/test": "^1.60.0",

View file

@ -1,6 +1,6 @@
{
"name": "vault-to-dify",
"version": "3.0.0",
"version": "1.0.0",
"description": "Sync your Obsidian Vault to Dify Knowledge Base",
"main": "main.js",
"scripts": {

View file

@ -1,5 +1,3 @@
{
"1.0.0": "0.15.0",
"2.0.0": "0.15.0",
"3.0.0": "0.15.0"
"1.0.0": "0.15.0"
}