@agentclientprotocol/claude-agent-acp 0.88.1-preview.2 → 0.88.1-preview.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/dist/v2/prompt.d.ts.map +1 -1
- package/dist/v2/prompt.js +8 -3
- package/package.json +2 -2
package/dist/v2/prompt.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/v2/prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAIL,KAAK,aAAa,EAEnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,0CAA0C,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAItD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,EAAE,CAAC,aAAa,EACxB,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,KAAK,IAAI,GACvC,OAAO,CAAC,EAAE,CAAC,cAAc,CAAC,CA0D5B;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/v2/prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAIL,KAAK,aAAa,EAEnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,0CAA0C,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAItD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,EAAE,CAAC,aAAa,EACxB,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,KAAK,IAAI,GACvC,OAAO,CAAC,EAAE,CAAC,cAAc,CAAC,CA0D5B;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAgC3C;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,EAAE,EAAE,CAAC,aAAa,GAAG,aAAa,CAEvF"}
|
package/dist/v2/prompt.js
CHANGED
|
@@ -108,14 +108,19 @@ function jsonRpcError(error) {
|
|
|
108
108
|
message: error instanceof Error ? error.message : String(error),
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* The `idle` of a turn that ended. Every stop reason the agent reports is one
|
|
113
|
+
* of v2's own, so the state is typed as those members of `IdleStateUpdate`:
|
|
114
|
+
* the type checker matches each stop reason to its member, which it cannot do
|
|
115
|
+
* against the whole union with its custom and unknown members.
|
|
116
|
+
*/
|
|
111
117
|
function idle({ stopReason, usage, _meta }) {
|
|
112
|
-
|
|
113
|
-
sessionUpdate: "state_update",
|
|
114
|
-
state: "idle",
|
|
118
|
+
const state = {
|
|
115
119
|
stopReason,
|
|
116
120
|
...(usage ? { usage } : {}),
|
|
117
121
|
...(_meta ? { _meta } : {}),
|
|
118
122
|
};
|
|
123
|
+
return { sessionUpdate: "state_update", state: "idle", ...state };
|
|
119
124
|
}
|
|
120
125
|
/**
|
|
121
126
|
* A v2 prompt may hold content blocks that v1 cannot express: a custom one,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.88.1-preview.
|
|
6
|
+
"version": "0.88.1-preview.3",
|
|
7
7
|
"description": "An ACP-compatible coding agent powered by the Claude Agent SDK (TypeScript)",
|
|
8
8
|
"main": "dist/lib.js",
|
|
9
9
|
"types": "dist/lib.d.ts",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"node": ">=22"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@agentclientprotocol/sdk": "1.
|
|
68
|
+
"@agentclientprotocol/sdk": "1.8.0",
|
|
69
69
|
"@anthropic-ai/claude-agent-sdk": "0.3.293",
|
|
70
70
|
"diff": "9.0.0",
|
|
71
71
|
"zod": "4.6.5"
|