ycodium-acp-executor 0.2.5503 → 0.2.5542

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.
Files changed (2) hide show
  1. package/README.md +3 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -40,7 +40,7 @@ package covers the ACP half: turning a spawned CLI into a session.
40
40
 
41
41
  ```ts
42
42
  import { nodeStreamsFromHandle } from "@ycodium-ai/plugin-api/process-stdin";
43
- import { createAcpExecutor, parseAcpResumeCursor } from "ycodium-acp-executor";
43
+ import { createAcpExecutor, dispatchAcpPrompt, parseAcpResumeCursor } from "ycodium-acp-executor";
44
44
 
45
45
  // Inside your ExecutorInstance.startSession(input):
46
46
  const handle = await host.process.spawn({
@@ -71,7 +71,8 @@ for await (const event of executor.events) {
71
71
  }
72
72
 
73
73
  // In sendTurn / interruptTurn / stop:
74
- await executor.prompt({ text: "Explain this repository", turnId });
74
+ const { turnId } = await dispatchAcpPrompt(executor, { text: "Explain this repository" });
75
+ // Return this turnId from sendTurn. The event stream delivers turn.completed later.
75
76
  await executor.cancel(turnId);
76
77
  await executor.dispose();
77
78
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ycodium-acp-executor",
3
- "version": "0.2.5503",
3
+ "version": "0.2.5542",
4
4
  "description": "Agent Client Protocol client and executor state machine for Ycodium agent plugins. Speaks ACP over stdio and emits Ycodium executor events.",
5
5
  "keywords": [
6
6
  "acp",
@@ -30,7 +30,7 @@
30
30
  "@types/node": "24.12.4",
31
31
  "typescript": "~6.0.3",
32
32
  "vite-plus": "0.2.2",
33
- "@ycodium-ai/plugin-api": "0.2.5503",
33
+ "@ycodium-ai/plugin-api": "0.2.5542",
34
34
  "ycodium-executor-common": "0.0.0",
35
35
  "ycodium-executor-testing": "0.0.0",
36
36
  "ycodium-jsonl-stream": "0.0.0"