@shengxiao04/dsh-session-memory 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # dsh-session-memory
2
2
 
3
- [中文](README_zh.md) · Version **0.1.2** · MIT
3
+ [中文](README_zh.md) · Version **0.1.3** · MIT
4
4
 
5
5
  A DSH-only fork of [pi-session-memory](https://github.com/shengxiao20/pi-session-memory), rebuilt as a Cordis Host bundle. Search prior DSH conversations, then read the original text around an exact event. No Pi extension API or external-agent bridge remains in the runtime.
6
6
 
@@ -14,17 +14,17 @@ A DSH-only fork of [pi-session-memory](https://github.com/shengxiao20/pi-session
14
14
 
15
15
  ## Install
16
16
 
17
- Install `@shengxiao04/dsh-session-memory@0.1.2` through DSH Plugin Manager's **Install bundle** action, or ask the DSH agent to call:
17
+ Install `@shengxiao04/dsh-session-memory@0.1.3` through DSH Plugin Manager's **Install bundle** action once that version is published, or ask the DSH agent to call:
18
18
 
19
19
  ```json
20
- {"action":"install_bundle","target":"@shengxiao04/dsh-session-memory@0.1.2","enabled":true}
20
+ {"action":"install_bundle","target":"@shengxiao04/dsh-session-memory@0.1.3","enabled":true}
21
21
  ```
22
22
 
23
- For local development, the same action accepts the absolute checkout directory instead of the npm spec. The package uses the publisher's personal scope; the unscoped name `dsh-session-memory` belongs to a different project. No new GitHub repository has been created.
23
+ For local development or before publication, the same action accepts the absolute checkout directory instead of the npm spec. The package uses the publisher's personal scope; the unscoped name `dsh-session-memory` belongs to a different project. No new GitHub repository has been created.
24
24
 
25
25
  Installation requires profile-management approval and affects every session in the current profile. The bundle has no dependencies, build steps, or install scripts. It adds its own Host row and overrides the shipped `session-query-sqlite` row to `path: ':memory:'`, `openAt: first-search` (the inspected profile's existing path was already `:memory:`). It does not create a second backend, touch session logs, or enable external providers. Removing/disabling the bundle removes this override too. If your profile uses a custom disk index or custom query settings, restate that full backend config in your higher-priority profile patch with `openAt: first-search`; Loader replaces `config` wholesale.
26
26
 
27
- **Runtime:** Node 22+ and DSH **0.2.1-rc.2** (the exact inspected version; manifest intentionally pins it). The profile must already provide `tools`, `commands`, and a searchable `sessionQuery`, normally `@deepseek-ai/dsh-session-query-sqlite`. A persistence backend is needed to search history after restarts. The existing SQLite backend must not use `openAt: never`. Missing services leave the bundle inactive; disabled search fails explicitly rather than starting another index or falling back to filesystem scans. Check Plugin Manager for activation state.
27
+ **Runtime:** Node 22+ and DSH **0.2.1-rc.3** (the exact inspected and native-smoke-tested version; manifest intentionally pins it). The profile must already provide `tools`, `commands`, and a searchable `sessionQuery`, normally `@deepseek-ai/dsh-session-query-sqlite`. A persistence backend is needed to search history after restarts. The existing SQLite backend must not use `openAt: never`. Missing services leave the bundle inactive; disabled search fails explicitly rather than starting another index or falling back to filesystem scans. Check Plugin Manager for activation state.
28
28
 
29
29
  ## Agent tools
30
30
 
@@ -99,6 +99,10 @@ Runtime files: [Host registration](index.js), [adapter](src/memory.js), [tool sc
99
99
 
100
100
  Git history retains the upstream project; local branch `dsh-only` holds the adaptation and `upstream` points to the original repository. The original checkout is untouched. The fork starts from upstream's committed history, **not its uncommitted working-tree edits**; the legacy runtime is intentionally replaced, so none of those local Pi-only files are required. [LICENSE](LICENSE) retains upstream copyright attribution. Repository/homepage/bug fields are not falsely pointed at an unpublished DSH repository.
101
101
 
102
+ ## 0.1.3
103
+
104
+ - Update the exact DSH compatibility pin from `0.2.1-rc.2` to `0.2.1-rc.3` after native contract inspection and isolated integration testing. Search/read logic and the bundle patch are unchanged.
105
+
102
106
  ## 0.1.2
103
107
 
104
108
  - Enable the shipped in-memory query backend on first search; the default profile had `openAt: never`, which blocked live retrieval.
package/README_zh.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # dsh-session-memory(中文)
2
2
 
3
- [English](README.md) · **0.1.2** · MIT
3
+ [English](README.md) · **0.1.3** · MIT
4
4
 
5
5
  从 [pi-session-memory](https://github.com/shengxiao20/pi-session-memory) 独立 fork,完全改造成 DSH 的 Cordis Host bundle。只做 **DSH 自身会话检索与按需原文读取**,不再使用 Pi 扩展 API。
6
6
 
@@ -14,17 +14,17 @@
14
14
 
15
15
  ## 安装
16
16
 
17
- 在 DSH Plugin Manager 的安装 bundle 操作中填写 `@shengxiao04/dsh-session-memory@0.1.2`,或让 DSH Agent 调用:
17
+ 该版本发布后,在 DSH Plugin Manager 的安装 bundle 操作中填写 `@shengxiao04/dsh-session-memory@0.1.3`,或让 DSH Agent 调用:
18
18
 
19
19
  ```json
20
- {"action":"install_bundle","target":"@shengxiao04/dsh-session-memory@0.1.2","enabled":true}
20
+ {"action":"install_bundle","target":"@shengxiao04/dsh-session-memory@0.1.3","enabled":true}
21
21
  ```
22
22
 
23
- 本地开发时可将 target 换成项目绝对目录。此包使用发布者的个人 scope;无 scope 的 `dsh-session-memory` 是另一项目,不是此 fork。尚未创建新的 GitHub 仓库。
23
+ 本地开发或发布前,可将 target 换成项目绝对目录。此包使用发布者的个人 scope;无 scope 的 `dsh-session-memory` 是另一项目,不是此 fork。尚未创建新的 GitHub 仓库。
24
24
 
25
25
  安装需要 profile 管理授权,影响当前 profile 的所有 session。包无依赖、构建或安装脚本。除自身 Host 行外,bundle 将已有 `session-query-sqlite` 行设为 `path: ':memory:'`、`openAt: first-search`(本次检查的原路径就是 `:memory:`);不创建第二个后端、不改 session 日志、不启用外部 provider。禁用/移除 bundle 时该覆盖也消失。如果其他 profile 使用自定义磁盘索引或其他查询设置,请在更高优先级的 profile 补丁中完整重述后端 config 并设置 `openAt: first-search`,因为 Loader 替换整个 config,不做深度合并。
26
26
 
27
- 要求 Node 22+、DSH **0.2.1-rc.2**(manifest 固定为实际检查的版本)。Profile 已有 `tools`、`commands` 和可全文检索的 `sessionQuery`,通常由 `@deepseek-ai/dsh-session-query-sqlite` 提供。重启后检索历史还需要 DSH 持久化后端。SQLite 查询后端不能配置为 `openAt: never`。缺少依赖会使插件不激活;搜索禁用或后端失败会直接报错,不私自启用第二个索引或退回目录扫描。查看 Plugin Manager 的激活状态。
27
+ 要求 Node 22+、DSH **0.2.1-rc.3**(manifest 固定为实际检查并通过原生集成测试的版本)。Profile 已有 `tools`、`commands` 和可全文检索的 `sessionQuery`,通常由 `@deepseek-ai/dsh-session-query-sqlite` 提供。重启后检索历史还需要 DSH 持久化后端。SQLite 查询后端不能配置为 `openAt: never`。缺少依赖会使插件不激活;搜索禁用或后端失败会直接报错,不私自启用第二个索引或退回目录扫描。查看 Plugin Manager 的激活状态。
28
28
 
29
29
  ## Agent 工具
30
30
 
@@ -96,6 +96,10 @@ DSH_CHECKOUT=/absolute/path/to/installed/dsh npm run test:native
96
96
 
97
97
  保留原仓库 Git 历史,独立分支 `dsh-only`;`upstream` 指向原仓库。**原项目不改动。** Fork 基于上游已提交历史,不拷贝原工作区尚未提交的修改;旧 runtime 已整体替换,不依赖那些 Pi 专用文件。保留 [MIT LICENSE](LICENSE) 及原版权声明。未把 repository/homepage 等字段伪称为尚不存在的 DSH 仓库。
98
98
 
99
+ ## 0.1.3 更新
100
+
101
+ - 检查原生接口并通过隔离集成测试后,将 DSH 精确兼容版本由 `0.2.1-rc.2` 更新为 `0.2.1-rc.3`。检索/读取逻辑和 bundle 补丁不变。
102
+
99
103
  ## 0.1.2 更新
100
104
 
101
105
  - 显式启用已有内存搜索后端,改为首次检索时打开;默认 profile 的 openAt: never 原本会阻止实际检索。
@@ -1,12 +1,21 @@
1
- # Verification — dsh-session-memory 0.1.2
1
+ # Verification — dsh-session-memory 0.1.3
2
2
 
3
3
  ## Environment
4
4
 
5
- - Node v22.22.2; inspected DSH 0.2.1-rc.2.
5
+ - Node v22.22.2; inspected DSH 0.2.1-rc.3.
6
6
  - Independent local fork on `dsh-only`; upstream remote retains the original repository.
7
7
  - Active-profile installation uses the supported Plugin Manager, not handwritten profile files.
8
8
 
9
- ## Completed checks
9
+ ## rc.3 compatibility upgrade
10
+
11
+ - Reviewed the installed rc.3 `sessionQuery`, `tools`, and `commands` declarations and exercised the unchanged adapter against their real implementations.
12
+ - Bundle version is now `0.1.3`; `engines.dsh` pins `0.2.1-rc.3`. No search/read logic, backend patch, or active-profile config was changed.
13
+ - `npm run test:all`: syntax checks and **24/24** unit tests passed after the upgrade.
14
+ - `DSH_CHECKOUT="$(npm root -g)/@deepseek-ai/dsh" npm run test:native`: passed on installed rc.3, including real tool registration/execution, global/exact-CWD/event search, forks, subagent exclusion, pagination, bounded reads, stale cursors and token semantics. SQLite emitted its standard experimental warning.
15
+ - `npm pack --dry-run --cache "$PWD/.npm-cache"`: passed for `0.1.3`, with 15 packaged files. `git diff --check` passed.
16
+ - The profile installation and live-history results below describe the previous `0.1.2` installation on rc.2. They do not establish that `0.1.3` is published, installed, or live-tested in the active profile.
17
+
18
+ ## Previous 0.1.2 checks (rc.2)
10
19
 
11
20
  1. `npm run test:all`: JavaScript syntax checks and **24/24** zero-dependency Node tests passed. Covers native request shape, explicit scope, cursors, authoritative-header subagent exclusion, main-session fork retention, observation disposal, validation/cancellation, bounded Unicode text, target-first budgets, safe omission notices, schemas, and shared tool/command lifecycles.
12
21
  2. `DSH_CHECKOUT=... npm run test:native`: passed against actual installed Cordis, session, SQLite FTS5, systemPrompt, tools and commands services, with a fresh isolated context and an in-memory index. Real plugin registration and real `ctx.tools.execute` output/schema/rendering validation passed. Fixture checks cover global search, exact CWD, event search, root forks, subagent exclusion, native pagination, bounded reads, stale-cursor rejection and token—not substring—semantics. No active profile/history is read or modified by this script.
@@ -31,5 +40,5 @@ Using compact name+description+parameters JSON, the original project exposes 6 t
31
40
 
32
41
  - Rendering of Plugin Manager titles/icons and slash-command UI in the connected browser is not visually verified; installation does not establish visual success. Exported resources are validated separately.
33
42
  - Native fixture integration covers live sessions, not persisted-file repair or every DSH event type. Persisted history remains the native query backend's responsibility.
34
- - Only DSH 0.2.1-rc.2 is declared compatible. Other DSH versions require contract review and tests, not a silent version exemption.
43
+ - Only DSH 0.2.1-rc.3 is declared compatible. Other DSH versions require contract review and tests, not a silent version exemption.
35
44
  - npm package identity is `@shengxiao04/dsh-session-memory`; the unscoped npm name belongs to an unrelated publisher. No remote GitHub fork was created. The original project's uncommitted files were not copied, and its working-tree changes are left untouched. This document records implementation and pre-publication verification; registry publication is checked separately.
package/index.js CHANGED
@@ -3,7 +3,7 @@ import { searchParameters, readParameters, searchOutput, readOutput } from './sr
3
3
 
4
4
  export const name = 'dsh-session-memory';
5
5
  export const inject = ['sessionQuery', 'tools', 'commands'];
6
- export const VERSION = '0.1.2';
6
+ export const VERSION = '0.1.3';
7
7
  export const HELP = `DSH Session Memory ${VERSION}
8
8
  /memory-search <literal word or phrase>
9
9
  /memory-search {"query":"database","cwd":"/your/project","limit":20}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@shengxiao04/dsh-session-memory",
3
3
  "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org" },
4
- "version": "0.1.2",
4
+ "version": "0.1.3",
5
5
  "description": "Local DSH session search and bounded original-history reads. / DSH 自身会话检索与按需原文读取。",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
- "engines": { "node": ">=22", "dsh": "0.2.1-rc.2" },
8
+ "engines": { "node": ">=22", "dsh": "0.2.1-rc.3" },
9
9
  "keywords": ["dsh", "cordis", "session", "memory", "local-search"],
10
10
  "exports": { ".": "./index.js", "./locale/*.json": "./locale/*.json", "./icon": "./icon.svg" },
11
11
  "files": ["index.js", "src/", "cordis.patch.yml", "locale/*.json", "icon.svg", "README.md", "README_zh.md", "docs/", "scripts/", "tests/", "LICENSE"],