@ycodium-ai/agent-dsh 0.2.4477 → 0.2.4688

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.
@@ -54,7 +54,10 @@ export function apply(ctx) {
54
54
  }
55
55
  };
56
56
 
57
- ctx.on("session/created", sync);
57
+ // `session/created` 同步派发期间会话只读(dsh 0.2.2:「cannot append before session/created
58
+ // completes」),在监听器里直接切档必失败、会话照旧按记着的那档跑。派发一结束就可写,
59
+ // 所以挪到微任务里切:恢复完成、ACP 登记会话之前就切好,首条 prompt 拿到会话时档已经换掉。
60
+ ctx.on("session/created", (session) => queueMicrotask(() => sync(session)));
58
61
  try {
59
62
  for (const session of ctx.sessions.list()) sync(session);
60
63
  } catch (error) {
package/dist/index.js CHANGED
@@ -7371,7 +7371,7 @@ var require_dist = __commonJS({
7371
7371
  import { definePlugin } from "@ycodium-ai/plugin-api";
7372
7372
 
7373
7373
  // ../../packages/plugin-api/src/version.ts
7374
- var PLUGIN_API_VERSION = 118;
7374
+ var PLUGIN_API_VERSION = 128;
7375
7375
 
7376
7376
  // src/index.ts
7377
7377
  import * as NodeOS6 from "node:os";
@@ -7466,6 +7466,7 @@ var DSH_CARD = {
7466
7466
  type: "string",
7467
7467
  "x-ycodium-form": {
7468
7468
  titleKey: "form.homePath.title",
7469
+ machineLocal: true,
7469
7470
  descriptionKey: "form.homePath.description",
7470
7471
  placeholderKey: "form.homePath.placeholder"
7471
7472
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-dsh",
3
- "version": "0.2.4477",
3
+ "version": "0.2.4688",
4
4
  "description": "DeepSeek Harness executor: dsh CLI over Agent Client Protocol stdio.",
5
5
  "keywords": [
6
6
  "ycodium",
@@ -22,9 +22,9 @@
22
22
  "esbuild": "0.28.1",
23
23
  "vite-plus": "0.2.2",
24
24
  "yaml": "^2.9.0",
25
- "@ycodium-ai/plugin-api": "0.2.4477",
26
- "ycodium-acp-executor": "0.2.4477",
27
- "ycodium-executor-testing": "0.0.0"
25
+ "@ycodium-ai/plugin-api": "0.2.4688",
26
+ "ycodium-executor-testing": "0.0.0",
27
+ "ycodium-acp-executor": "0.2.4688"
28
28
  },
29
29
  "ycodium": {
30
30
  "plugin": "./dist/index.js",