Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 50 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,33 @@ jobs:
- os: windows-latest
label: windows / DSH 0.2.2-rc.3
fixture: native-host-0.2.2-rc.3
- os: ubuntu-latest
label: ubuntu / DSH 0.2.2-rc.2
fixture: native-host-0.2.2-rc.2
- os: macos-latest
label: macos / DSH 0.2.2-rc.2
fixture: native-host-0.2.2-rc.2
- os: windows-latest
label: windows / DSH 0.2.2-rc.2
fixture: native-host-0.2.2-rc.2
- os: ubuntu-latest
label: ubuntu / DSH 0.2.2-rc.5
fixture: native-host-0.2.2-rc.5
- os: macos-latest
label: macos / DSH 0.2.2-rc.5
fixture: native-host-0.2.2-rc.5
- os: windows-latest
label: windows / DSH 0.2.2-rc.5
fixture: native-host-0.2.2-rc.5
- os: ubuntu-latest
label: ubuntu / DSH 0.2.3-alpha.2
fixture: native-host-0.2.3-alpha.2
- os: macos-latest
label: macos / DSH 0.2.3-alpha.2
fixture: native-host-0.2.3-alpha.2
- os: windows-latest
label: windows / DSH 0.2.3-alpha.2
fixture: native-host-0.2.3-alpha.2

steps:
- uses: actions/checkout@v6
Expand All @@ -90,7 +117,7 @@ jobs:

- uses: actions/setup-node@v6
with:
node-version: "24"
node-version: "24.22.3"
package-manager-cache: false

- run: npm ci
Expand All @@ -104,4 +131,26 @@ jobs:
run: npm install --prefix test/fixtures/${{ matrix.fixture }} --ignore-scripts --include=optional --package-lock=true
- name: Run mandatory native Host integration
run: node scripts/run-native-integration.mjs --fixture-root test/fixtures/${{ matrix.fixture }}
- name: Run mandatory SQLite compatibility and safety checks
if: matrix.fixture == 'native-host-0.2.3-alpha.2'
run: node scripts/run-native-integration.mjs --fixture-root test/fixtures/${{ matrix.fixture }} --test-file test/sqlite-host.test.mjs --expected-tests 4
- run: npm pack --dry-run --json

client-host:
name: Client contract / DSH ${{ matrix.host }} / Node 24.22.3
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
host: [0.2.2-rc.5, 0.2.3-alpha.2]
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.sha }}
- uses: actions/setup-node@v6
with:
node-version: "24.22.3"
package-manager-cache: false
- run: npm ci
- run: npm ci --prefix test/fixtures/client-host-${{ matrix.host }} --ignore-scripts --include=optional
- run: node scripts/check-client-host.mjs --fixture-root test/fixtures/client-host-${{ matrix.host }}
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@

Entries describe behavior at each release, not necessarily current behavior. Consult the READMEs and user guides for current usage.

## 2.0.8 — 2026-11-27

### 中文

- 修复 DSH `0.2.3-alpha.2` 的安装依赖冲突,明确接受该版本及其 Cordis `4.2.0-alpha.1`,保留旧宿主范围;开发依赖同步至 `0.2.2-rc.5`。
- 补齐官方 `0.2.2-rc.2`、`0.2.2-rc.5` 和 `0.2.3-alpha.2` 固定版本后端测试,纳入三个平台的 CI;每个版本验证 9 项归档、备份恢复及删除保护行为。原生矩阵使用 Node.js `24.22.3`。
- 为 `rc.5` 和 `alpha.2` 增加基于已发布客户端包的 4 项契约测试,覆盖模块加载、原生控件、设置注册和卸载,并纳入 CI。
- 新增 4 项真实 SQLite 后端检查,覆盖读取、归档/取消归档、ZIP 导出和分支继承边界;无法提供写入前回滚位置的后端不再被判定为可恢复。SQLite 的 ZIP 恢复及永久删除会拒绝执行,保留原数据;默认 JSONL 后端继续支持这些操作。

### English

- Fix dependency resolution on DSH `0.2.3-alpha.2` by explicitly accepting this Host and Cordis `4.2.0-alpha.1`, preserving older Host ranges. Align the development dependency with `0.2.2-rc.5`.
- Add pinned official `0.2.2-rc.2`, `0.2.2-rc.5` and `0.2.3-alpha.2` backend fixtures to CI on all three platforms. Each fixture checks nine archive, backup/restore and deletion-safety behaviors. Run the native matrix on Node.js `24.22.3`.
- Add four contract tests per published `rc.5` and `alpha.2` client package set for module loading, native controls, settings registration and disposal, enforced in CI.
- Add four real SQLite backend checks for reads, archive/unarchive, ZIP export and inherited fork boundaries. Backends without a pre-write rollback location no longer advertise a restorable writer. ZIP restore and permanent deletion are refused on SQLite, preserving existing data; the default JSONL backend continues to support them.

## 2.0.7 — 2026-11-21

### 中文
Expand Down
15 changes: 13 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

## 本地开发

要求 Node.js 18 或 24。克隆仓库后运行:
普通测试使用 Node.js 18 或 24;完整原生矩阵使用 Node.js 24.22.3,满足 `0.2.3-alpha.2` 的 `^24.22.3 || >=26.13.1` 要求。克隆仓库后运行:

```sh
npm ci
Expand All @@ -66,6 +66,17 @@ npm install --prefix test/fixtures/native-host-0.2.2-rc.1 --ignore-scripts --inc
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.2-rc.1
npm ci --prefix test/fixtures/native-host-0.2.2-rc.3 --ignore-scripts --include=optional
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.2-rc.3
npm ci --prefix test/fixtures/native-host-0.2.2-rc.2 --ignore-scripts --include=optional
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.2-rc.2
npm ci --prefix test/fixtures/native-host-0.2.2-rc.5 --ignore-scripts --include=optional
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.2-rc.5
npm ci --prefix test/fixtures/native-host-0.2.3-alpha.2 --ignore-scripts --include=optional
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.3-alpha.2
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.3-alpha.2 --test-file test/sqlite-host.test.mjs --expected-tests 4
npm ci --prefix test/fixtures/client-host-0.2.2-rc.5 --ignore-scripts --include=optional
node scripts/check-client-host.mjs --fixture-root test/fixtures/client-host-0.2.2-rc.5
npm ci --prefix test/fixtures/client-host-0.2.3-alpha.2 --ignore-scripts --include=optional
node scripts/check-client-host.mjs --fixture-root test/fixtures/client-host-0.2.3-alpha.2
npm pack --dry-run --json
```

Expand All @@ -85,7 +96,7 @@ PR 应保持单一目的,并说明用户可见变化、兼容性影响、数

## English summary

Use Discussions for questions, Issues for reproducible bugs, and private vulnerability reporting for security problems. Keep pull requests focused, add tests, update both language documents when user behavior changes, and run `npm test`, the mandatory native Host integration commands for all five pinned fixtures, and `npm pack --dry-run --json`. Never commit local plugin data, conversations, attachments, credentials, logs, or temporary files.
Use Discussions for questions, Issues for reproducible bugs, and private vulnerability reporting for security problems. Keep pull requests focused, add tests, update both language documents when user behavior changes, and run `npm test`, the mandatory native Host integration commands for all eight pinned fixtures, and `npm pack --dry-run --json`. Never commit local plugin data, conversations, attachments, credentials, logs, or temporary files.

### Branch, commit, and pull request naming

Expand Down
22 changes: 20 additions & 2 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Archive Management adds conversation search, organization and backups to DeepSee
- **Portable backups:** export and import JSON + Markdown ZIPs; imports preview before writing and skip existing IDs to avoid overwrites.
- **Conversation lineage:** read-only Origins & Branches view traces sources, forks and subagent relationships across all workspaces, including archived and unarchived chats.

> This document describes version 2.0.7. Previous recovery features are removed, with explicit retries for permanent-deletion tasks.
> This document describes version 2.0.8. Previous recovery features are removed, with explicit retries for permanent-deletion tasks.

## Install and open

Expand Down Expand Up @@ -93,7 +93,11 @@ Installing an older release can restore its earlier cleanup rules. Before downgr

## Compatibility

The declared range is DSH `>=0.1.0-rc.7`; features still depend on Host capabilities. Native integration tests cover official `0.1.7-rc.2`, `0.2.1-rc.2`, `0.2.1-rc.5`, `0.2.2-rc.1` and `0.2.2-rc.3` backends; CI runs the Host matrix on macOS, Windows and Linux.
The default JSONL backend covers archive/unarchive, ZIP export/restore, permanent deletion and failure rollback. `0.2.3-alpha.2` requires Node.js `^24.22.3 || >=26.13.1`. The optional SQLite backend is tested for inventory, preview, archive/unarchive and ZIP export. The Host has no rollback-safe import or per-session deletion API for this shared store, so the plugin refuses ZIP restore and permanent deletion while preserving existing data and backups. Native tests use real persistence components with simulated workspace/routes; they are not a full Web UI acceptance test.

For 2.0.8, isolated synthetic chats also passed manual Web acceptance on macOS with official DSH `0.2.2-rc.5` and `0.2.3-alpha.2`: search and previews, workspace bulk archive, tags and notes across refresh, ZIP downloads, deletion followed by ZIP restore, unarchive and lineage graphs. The alpha.2 check also covered narrow-screen previews and export controls. This does not cover full Windows/Linux desktop interactions.

The declared range is DSH `>=0.1.0-rc.7 || 0.2.3-alpha.2`; features still depend on Host capabilities. Native integration tests cover official `0.1.7-rc.2`, `0.2.1-rc.2`, `0.2.1-rc.5`, `0.2.2-rc.1`, `0.2.2-rc.2`, `0.2.2-rc.3`, `0.2.2-rc.5` and `0.2.3-alpha.2` backends; CI runs the Host matrix on macOS, Windows and Linux.

Archive, unarchive and inventory use official capabilities. Permanent deletion coordinates Host session lifecycle and storage locations rather than calling one unified public deletion API. See [compatibility and limits](docs/USER_GUIDE.md#compatibility-and-limits).

Expand Down Expand Up @@ -148,7 +152,10 @@ Use [Discussions](https://github.com/Ultroncn/dsh-archived-chats/discussions) fo

[![CI](https://img.shields.io/github/actions/workflow/status/Ultroncn/dsh-archived-chats/ci.yml?branch=main&style=flat&label=CI)](https://github.com/Ultroncn/dsh-archived-chats/actions/workflows/ci.yml) [![Node.js 18 | 24](https://img.shields.io/badge/Node.js-18%20%7C%2024-339933?style=flat&logo=nodedotjs&logoColor=white)](https://github.com/Ultroncn/dsh-archived-chats/actions/workflows/ci.yml)

Use Node.js 24.22.3 for the complete native matrix, including the alpha Host.

```sh
npm ci
npm test
npm ci --prefix test/fixtures/native-host --ignore-scripts --include=optional
node scripts/run-native-integration.mjs
Expand All @@ -160,6 +167,17 @@ npm install --prefix test/fixtures/native-host-0.2.2-rc.1 --ignore-scripts --inc
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.2-rc.1
npm ci --prefix test/fixtures/native-host-0.2.2-rc.3 --ignore-scripts --include=optional
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.2-rc.3
npm ci --prefix test/fixtures/native-host-0.2.2-rc.2 --ignore-scripts --include=optional
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.2-rc.2
npm ci --prefix test/fixtures/native-host-0.2.2-rc.5 --ignore-scripts --include=optional
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.2-rc.5
npm ci --prefix test/fixtures/native-host-0.2.3-alpha.2 --ignore-scripts --include=optional
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.3-alpha.2
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.3-alpha.2 --test-file test/sqlite-host.test.mjs --expected-tests 4
npm ci --prefix test/fixtures/client-host-0.2.2-rc.5 --ignore-scripts --include=optional
node scripts/check-client-host.mjs --fixture-root test/fixtures/client-host-0.2.2-rc.5
npm ci --prefix test/fixtures/client-host-0.2.3-alpha.2 --ignore-scripts --include=optional
node scripts/check-client-host.mjs --fixture-root test/fixtures/client-host-0.2.3-alpha.2
npm pack --dry-run --json
```

Expand Down
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
- **可迁移备份:** 导出和导入 JSON + Markdown ZIP;导入前预览,跳过已有 ID,不覆盖现有数据。
- **会话溯源:** 只读的「来源与分支」视图查看所有工作区中已归档、未归档会话的来源、分叉和子代理关系。

> 本文描述 2.0.7,旧恢复功能已移除,永久删除支持任务重试。
> 本文描述 2.0.8,旧恢复功能已移除,永久删除支持任务重试。

<a name="install-and-open"></a>

Expand Down Expand Up @@ -107,7 +107,11 @@ dsh plugin --profile web update dsh-archived-chats

## 兼容性

声明范围为 DSH `>=0.1.0-rc.7`,具体能力仍取决于 Host。原生集成测试覆盖官方 `0.1.7-rc.2`、`0.2.1-rc.2`、`0.2.1-rc.5`、`0.2.2-rc.1` 与 `0.2.2-rc.3` 后端;CI 在 macOS、Windows 和 Linux 上运行 Host 测试矩阵。
默认 JSONL 后端覆盖归档、取消归档、ZIP 导出与恢复,以及永久删除和失败回滚。`0.2.3-alpha.2` 需要 Node.js `^24.22.3 || >=26.13.1`。可选 SQLite 后端已验证列表、预览、归档/取消归档和 ZIP 导出;宿主尚未提供可安全回滚的导入或单会话删除接口,插件会拒绝 ZIP 恢复和永久删除,保留现有数据与备份。原生测试使用真实持久化组件和模拟的工作区/路由,不等同于完整 Web 界面验收。

2.0.8 另在 macOS 的官方 DSH `0.2.2-rc.5` 与 `0.2.3-alpha.2` Web 界面中,用隔离的虚构会话完成了检索与预览、工作区批量归档、标签备注刷新保留、ZIP 下载、删除后导入恢复、取消归档和谱系图验收。alpha.2 还检查了窄屏预览与导出入口。这些结果不涵盖 Windows/Linux 桌面端的完整交互。

声明范围为 DSH `>=0.1.0-rc.7 || 0.2.3-alpha.2`,具体能力仍取决于 Host。原生集成测试覆盖官方 `0.1.7-rc.2`、`0.2.1-rc.2`、`0.2.1-rc.5`、`0.2.2-rc.1`、`0.2.2-rc.2`、`0.2.2-rc.3`、`0.2.2-rc.5` 与 `0.2.3-alpha.2` 后端;CI 在 macOS、Windows 和 Linux 上运行 Host 测试矩阵。

归档、取消归档、列表读取以官方能力为基础。永久删除由插件协调会话生命周期和存储位置完成,并非调用一个官方统一删除接口。详见[兼容性与限制](docs/USER_GUIDE.zh-CN.md#兼容性与限制)。

Expand Down Expand Up @@ -168,7 +172,10 @@ dsh plugin --profile web update dsh-archived-chats

[![CI](https://img.shields.io/github/actions/workflow/status/Ultroncn/dsh-archived-chats/ci.yml?branch=main&style=flat&label=CI)](https://github.com/Ultroncn/dsh-archived-chats/actions/workflows/ci.yml) [![Node.js 18 | 24](https://img.shields.io/badge/Node.js-18%20%7C%2024-339933?style=flat&logo=nodedotjs&logoColor=white)](https://github.com/Ultroncn/dsh-archived-chats/actions/workflows/ci.yml)

运行完整原生矩阵请使用 Node.js 24.22.3(满足 alpha 宿主要求)。

```sh
npm ci
npm test
npm ci --prefix test/fixtures/native-host --ignore-scripts --include=optional
node scripts/run-native-integration.mjs
Expand All @@ -180,6 +187,17 @@ npm install --prefix test/fixtures/native-host-0.2.2-rc.1 --ignore-scripts --inc
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.2-rc.1
npm ci --prefix test/fixtures/native-host-0.2.2-rc.3 --ignore-scripts --include=optional
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.2-rc.3
npm ci --prefix test/fixtures/native-host-0.2.2-rc.2 --ignore-scripts --include=optional
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.2-rc.2
npm ci --prefix test/fixtures/native-host-0.2.2-rc.5 --ignore-scripts --include=optional
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.2-rc.5
npm ci --prefix test/fixtures/native-host-0.2.3-alpha.2 --ignore-scripts --include=optional
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.3-alpha.2
node scripts/run-native-integration.mjs --fixture-root test/fixtures/native-host-0.2.3-alpha.2 --test-file test/sqlite-host.test.mjs --expected-tests 4
npm ci --prefix test/fixtures/client-host-0.2.2-rc.5 --ignore-scripts --include=optional
node scripts/check-client-host.mjs --fixture-root test/fixtures/client-host-0.2.2-rc.5
npm ci --prefix test/fixtures/client-host-0.2.3-alpha.2 --ignore-scripts --include=optional
node scripts/check-client-host.mjs --fixture-root test/fixtures/client-host-0.2.3-alpha.2
npm pack --dry-run --json
```

Expand Down
Loading
Loading