@dsh-cc/command-export 0.8.1 → 0.8.2
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.i18n.yaml +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/lib/index.d.ts +5 -5
- package/lib/index.d.ts.map +1 -1
- package/package.json +9 -9
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm check:readme --write
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 1f667ee4b6d88b67781b7e51136ff791589d6bd0
|
|
6
|
+
README.zh.md: f3a0a78a22286cabe17e4664f855aaf829c48c35
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
English | [中文](README.zh.md)
|
|
4
4
|
|
|
5
|
-
Human-facing `/export` command that writes the current session transcript to a file through
|
|
5
|
+
Human-facing `/export` command that writes the current session transcript to a file through `ctx.fs` as markdown (default) or lossless JSON. The plugin registers one global command through `ctx.commands`, so every composed command adapter discovers and executes it without a model turn.
|
|
6
6
|
|
|
7
7
|
## Command contract
|
|
8
8
|
|
package/README.zh.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.md) | 中文
|
|
4
4
|
|
|
5
|
-
面向用户的 `/export` 命令,通过
|
|
5
|
+
面向用户的 `/export` 命令,通过 `ctx.fs` 把当前会话 transcript 写入文件,格式为 markdown(默认)或无损 JSON。该插件通过 `ctx.commands` 注册一个全局命令,因此每个已组合的命令适配器都能发现并执行它,无需模型轮次。
|
|
6
6
|
|
|
7
7
|
## 命令约定
|
|
8
8
|
|
package/lib/index.d.ts
CHANGED
|
@@ -14,11 +14,11 @@ export interface Config {
|
|
|
14
14
|
readonly defaultDir: string;
|
|
15
15
|
}
|
|
16
16
|
/** Loader schema; an empty default directory falls back to the current working directory. */
|
|
17
|
-
export declare const Config: z<Schemastery.ObjectS<{
|
|
18
|
-
defaultDir: z<string, string>;
|
|
19
|
-
}
|
|
20
|
-
defaultDir: z<string, string>;
|
|
21
|
-
}
|
|
17
|
+
export declare const Config: z<Schemastery.ObjectS<NoInfer<{
|
|
18
|
+
defaultDir: z<string, string, "defined">;
|
|
19
|
+
}>>, Schemastery.ObjectT<NoInfer<{
|
|
20
|
+
defaultDir: z<string, string, "defined">;
|
|
21
|
+
}>>, "plain">;
|
|
22
22
|
/** One parsed `/export` invocation. */
|
|
23
23
|
export interface ExportRequest {
|
|
24
24
|
readonly format: ExportFormat;
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAExC,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAIrE,eAAO,MAAM,IAAI,mBAAmB,CAAA;AACpC,eAAO,MAAM,MAAM,UAAqB,CAAA;AAExC,6DAA6D;AAC7D,MAAM,WAAW,MAAM;IACrB,4DAA4D;IAC5D,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC5B;AAED,6FAA6F;AAC7F,eAAO,MAAM,MAAM;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAExC,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAIrE,eAAO,MAAM,IAAI,mBAAmB,CAAA;AACpC,eAAO,MAAM,MAAM,UAAqB,CAAA;AAExC,6DAA6D;AAC7D,MAAM,WAAW,MAAM;IACrB,4DAA4D;IAC5D,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC5B;AAED,6FAA6F;AAC7F,eAAO,MAAM,MAAM;;;;aAEjB,CAAA;AAEF,uCAAuC;AACvC,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAA;IAC7B,2FAA2F;IAC3F,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;CAClC;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa,CAS3D;AAUD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,GAAG;IACxF,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb,CAYA;AA8BD;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BxD"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-cc/command-export",
|
|
3
3
|
"description": "Human-facing slash command for exporting a session transcript to a file",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/dsh-cc/dsh-cc.git",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
],
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@dsh-cc/command-usage": "^0.8.
|
|
29
|
-
"@dsh-cc/transcript-secrets": "^0.8.
|
|
28
|
+
"@dsh-cc/command-usage": "^0.8.2",
|
|
29
|
+
"@dsh-cc/transcript-secrets": "^0.8.2"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@deepseek-ai/dsh-commands": ">=0.1.
|
|
33
|
-
"@deepseek-ai/dsh-fs": ">=0.1.
|
|
34
|
-
"@deepseek-ai/dsh-invariants": ">=0.1.
|
|
35
|
-
"@deepseek-ai/dsh-llm": ">=0.1.
|
|
36
|
-
"@deepseek-ai/dsh-session": ">=0.1.
|
|
37
|
-
"@deepseek-ai/cordis": ">=0.1.
|
|
32
|
+
"@deepseek-ai/dsh-commands": ">=0.1.7-rc.2",
|
|
33
|
+
"@deepseek-ai/dsh-fs": ">=0.1.7-rc.2",
|
|
34
|
+
"@deepseek-ai/dsh-invariants": ">=0.1.7-rc.2",
|
|
35
|
+
"@deepseek-ai/dsh-llm": ">=0.1.7-rc.2",
|
|
36
|
+
"@deepseek-ai/dsh-session": ">=0.1.7-rc.2",
|
|
37
|
+
"@deepseek-ai/cordis": ">=0.1.7-rc.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@deepseek-ai/cordis-plugin-loader": "link:../../../../deepseek-harness/vendor/loader",
|