@ycodium-ai/agent-pi 0.2.4408 → 0.2.4448

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/dist/index.js +3 -7
  2. package/package.json +4 -4
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 = 115;
7
+ var PLUGIN_API_VERSION = 117;
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", { decision: "cancelled" }, { requestId: id });
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.4408",
3
+ "version": "0.2.4448",
4
4
  "description": "Pi executor over the native RPC protocol.",
5
5
  "keywords": [
6
6
  "ycodium",
@@ -30,9 +30,9 @@
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.4408",
34
- "@ycodium/contracts": "0.0.33",
35
- "ycodium-executor-testing": "0.0.0"
33
+ "@ycodium-ai/plugin-api": "0.2.4448",
34
+ "ycodium-executor-testing": "0.0.0",
35
+ "@ycodium/contracts": "0.0.33"
36
36
  },
37
37
  "ycodium": {
38
38
  "plugin": "./dist/index.js",