@nexface/chat 0.1.13-alpha.1 → 0.1.13-alpha.2

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.
@@ -12,6 +12,7 @@ interface OperationSnapshot {
12
12
  readonly taskProgress?: TaskProgress;
13
13
  }
14
14
  export interface RuntimeController {
15
+ getRegisteredTools(): ReturnType<ToolRuntime["getTools"]>;
15
16
  beginInternalOperation(options?: {
16
17
  signal?: AbortSignal;
17
18
  onCancel?: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-controller.js","sourceRoot":"","sources":["../../src/shared/runtime-controller.ts"],"names":[],"mappings":"AAAA,qEAAqE;AAGrE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAuB7C,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;AAEvF,MAAM,UAAU,oBAAoB,CAAC,OAAoB;IACvD,MAAM,UAAU,GAAI,OAA2E,CAAC,uBAAuB,CAAC,CAAC;IACzH,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,MAAM,IAAI,cAAc,CAAC,sBAAsB,EAAE,iGAAiG,CAAC,CAAC;IACtJ,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC","sourcesContent":["// Generated from shared/runtime-controller.ts. Do not edit manually.\n\nimport type { ToolOperation, ToolRuntime } from \"@nexface/tools\";\nimport { AgentToolError } from \"./errors.js\";\n\nexport type TaskProgress = { readonly phase: \"processing\" } | { readonly phase: \"tool\"; readonly toolCallId: string; readonly progressLabel?: string };\n\ninterface OperationSnapshot {\n readonly id: string;\n readonly status: \"running\" | \"waiting\" | \"cancelling\" | \"ending\";\n readonly taskProgress?: TaskProgress;\n}\n\nexport interface RuntimeController {\n beginInternalOperation(options?: {\n signal?: AbortSignal;\n onCancel?: () => void;\n replaceWaiting?: ToolOperation;\n taskProgress?: TaskProgress;\n }): ToolOperation;\n setOperationWaiting(handle: ToolOperation, waiting: boolean): void;\n setTaskProgress(handle: ToolOperation, progress: TaskProgress): void;\n getOperationSnapshot(): OperationSnapshot | null;\n subscribeOperation(listener: () => void): () => void;\n}\n\nexport const runtimeControllerSymbol = Symbol.for(\"@nexface/tools/runtime-controller\");\n\nexport function getRuntimeController(runtime: ToolRuntime): RuntimeController {\n const controller = (runtime as ToolRuntime & { [runtimeControllerSymbol]?: RuntimeController })[runtimeControllerSymbol];\n if (!controller) {\n throw new AgentToolError(\"INVALID_TOOL_RUNTIME\", \"ToolRuntime does not support internal task coordination. Use matching Nexface package versions.\");\n }\n return controller;\n}\n"]}
1
+ {"version":3,"file":"runtime-controller.js","sourceRoot":"","sources":["../../src/shared/runtime-controller.ts"],"names":[],"mappings":"AAAA,qEAAqE;AAGrE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAwB7C,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;AAEvF,MAAM,UAAU,oBAAoB,CAAC,OAAoB;IACvD,MAAM,UAAU,GAAI,OAA2E,CAAC,uBAAuB,CAAC,CAAC;IACzH,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,MAAM,IAAI,cAAc,CAAC,sBAAsB,EAAE,iGAAiG,CAAC,CAAC;IACtJ,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC","sourcesContent":["// Generated from shared/runtime-controller.ts. Do not edit manually.\n\nimport type { ToolOperation, ToolRuntime } from \"@nexface/tools\";\nimport { AgentToolError } from \"./errors.js\";\n\nexport type TaskProgress = { readonly phase: \"processing\" } | { readonly phase: \"tool\"; readonly toolCallId: string; readonly progressLabel?: string };\n\ninterface OperationSnapshot {\n readonly id: string;\n readonly status: \"running\" | \"waiting\" | \"cancelling\" | \"ending\";\n readonly taskProgress?: TaskProgress;\n}\n\nexport interface RuntimeController {\n getRegisteredTools(): ReturnType<ToolRuntime[\"getTools\"]>;\n beginInternalOperation(options?: {\n signal?: AbortSignal;\n onCancel?: () => void;\n replaceWaiting?: ToolOperation;\n taskProgress?: TaskProgress;\n }): ToolOperation;\n setOperationWaiting(handle: ToolOperation, waiting: boolean): void;\n setTaskProgress(handle: ToolOperation, progress: TaskProgress): void;\n getOperationSnapshot(): OperationSnapshot | null;\n subscribeOperation(listener: () => void): () => void;\n}\n\nexport const runtimeControllerSymbol = Symbol.for(\"@nexface/tools/runtime-controller\");\n\nexport function getRuntimeController(runtime: ToolRuntime): RuntimeController {\n const controller = (runtime as ToolRuntime & { [runtimeControllerSymbol]?: RuntimeController })[runtimeControllerSymbol];\n if (!controller) {\n throw new AgentToolError(\"INVALID_TOOL_RUNTIME\", \"ToolRuntime does not support internal task coordination. Use matching Nexface package versions.\");\n }\n return controller;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexface/chat",
3
- "version": "0.1.13-alpha.1",
3
+ "version": "0.1.13-alpha.2",
4
4
  "type": "module",
5
5
  "sideEffects": [
6
6
  "./dist/index.js",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@ag-ui/core": "0.0.59",
21
- "@nexface/agent": "0.1.13-alpha.1",
21
+ "@nexface/agent": "0.1.13-alpha.2",
22
22
  "class-variance-authority": "0.7.1",
23
23
  "clsx": "2.1.1",
24
24
  "fast-json-patch": "3.1.1",
@@ -27,7 +27,7 @@
27
27
  "use-sync-external-store": "1.7.0"
28
28
  },
29
29
  "peerDependencies": {
30
- "@nexface/tools": "0.1.13-alpha.1",
30
+ "@nexface/tools": "0.1.13-alpha.2",
31
31
  "react": ">=17",
32
32
  "react-dom": ">=17"
33
33
  },