@ycodium-ai/agent-pi 0.2.4408 → 0.2.4477
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/index.js +3 -7
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import * as NodePath3 from "node:path";
|
|
|
4
4
|
import { definePlugin } from "@ycodium-ai/plugin-api";
|
|
5
5
|
|
|
6
6
|
// ../../packages/plugin-api/src/version.ts
|
|
7
|
-
var PLUGIN_API_VERSION =
|
|
7
|
+
var PLUGIN_API_VERSION = 118;
|
|
8
8
|
|
|
9
9
|
// src/index.ts
|
|
10
10
|
import {
|
|
@@ -951,7 +951,7 @@ function createPiInstance(value, host) {
|
|
|
951
951
|
};
|
|
952
952
|
const endQuestions = (booked) => {
|
|
953
953
|
for (const id of booked.questions.keys())
|
|
954
|
-
booked.emit("user-input.resolved", {
|
|
954
|
+
booked.emit("user-input.resolved", { answers: {} }, { requestId: id });
|
|
955
955
|
booked.questions.clear();
|
|
956
956
|
};
|
|
957
957
|
const exited = (booked, cause) => {
|
|
@@ -1401,11 +1401,7 @@ function createPiInstance(value, host) {
|
|
|
1401
1401
|
throw safeError(cause);
|
|
1402
1402
|
}
|
|
1403
1403
|
booked.questions.delete(requestId);
|
|
1404
|
-
booked.emit(
|
|
1405
|
-
"user-input.resolved",
|
|
1406
|
-
{ decision: value2 ? "answered" : "cancelled" },
|
|
1407
|
-
{ requestId }
|
|
1408
|
-
);
|
|
1404
|
+
booked.emit("user-input.resolved", { answers: value2 ? { value: value2 } : {} }, { requestId });
|
|
1409
1405
|
},
|
|
1410
1406
|
compactContext: async (threadId) => {
|
|
1411
1407
|
const booked = requireThread(threadId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/agent-pi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4477",
|
|
4
4
|
"description": "Pi executor over the native RPC protocol.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tailwindcss": "^4.0.0",
|
|
31
31
|
"typescript": "~6.0.3",
|
|
32
32
|
"vite-plus": "0.2.2",
|
|
33
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
33
|
+
"@ycodium-ai/plugin-api": "0.2.4477",
|
|
34
34
|
"@ycodium/contracts": "0.0.33",
|
|
35
35
|
"ycodium-executor-testing": "0.0.0"
|
|
36
36
|
},
|