@automatalabs/pi-acp 0.3.0 → 0.3.1
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/stop-reason.d.ts.map +1 -1
- package/dist/stop-reason.js +5 -0
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stop-reason.d.ts","sourceRoot":"","sources":["../src/stop-reason.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,aAAa,GAAG,SAAS,EACnC,OAAO,EAAE,OAAO,GACf,cAAc,CAAC,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"stop-reason.d.ts","sourceRoot":"","sources":["../src/stop-reason.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,aAAa,GAAG,SAAS,EACnC,OAAO,EAAE,OAAO,GACf,cAAc,CAAC,YAAY,CAAC,CAoB9B"}
|
package/dist/stop-reason.js
CHANGED
|
@@ -10,6 +10,11 @@ export function stopReasonFor(terminal, aborted) {
|
|
|
10
10
|
return "max_tokens";
|
|
11
11
|
case "error":
|
|
12
12
|
throw classifyTerminal(terminal);
|
|
13
|
+
case "pending":
|
|
14
|
+
// pi >=0.83.0 marks still-streaming partials "pending"; a finalized message always carries
|
|
15
|
+
// a real reason. A resolved turn whose terminal message is still "pending" means the
|
|
16
|
+
// stream ended without termination — same diagnostic seam as unknown reasons, but named.
|
|
17
|
+
throw unexpectedError(new Error("pi turn resolved with a still-pending terminal message"), terminal);
|
|
13
18
|
case undefined:
|
|
14
19
|
return "end_turn";
|
|
15
20
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automatalabs/pi-acp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.19.0"
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@agentclientprotocol/sdk": "1.3.0",
|
|
34
|
-
"@earendil-works/pi-ai": "0.
|
|
35
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
34
|
+
"@earendil-works/pi-ai": "0.83.0",
|
|
35
|
+
"@earendil-works/pi-coding-agent": "0.83.0",
|
|
36
36
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
37
37
|
"typebox": "1.3.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@earendil-works/pi-agent-core": "0.
|
|
40
|
+
"@earendil-works/pi-agent-core": "0.83.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "tsc -b",
|