@howaboua/pi-durable-browser 0.10.0 → 0.13.0

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.
@@ -2,7 +2,7 @@ import { type BrowserRuntimeConfig } from "./runtime.ts";
2
2
  export interface BrowserVoiceStartOptions {
3
3
  url: string;
4
4
  host?: string;
5
- provider: "codex" | "gippity" | "grok";
5
+ provider?: "openai" | "gemini" | "grok" | "codex" | "gippity" | "live";
6
6
  signal?: AbortSignal;
7
7
  timeoutMs?: number;
8
8
  }
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { JsonValue } from "@earendil-works/chord";
2
- import { Type } from "@earendil-works/pi-ai";
1
+ import type { JsonValue } from "@earendil-works/chord/json";
2
+ import { Type } from "typebox";
3
3
  import { BrowserRuntime, type BrowserRuntimeConfig } from "./browser/runtime.ts";
4
4
  export { type BrowserArtifactStore, environmentArtifactStore, nodeArtifactStore, } from "./browser/artifact-store.ts";
5
5
  export { type BrowserRouteConfig, normalizeBrowserRouteConfig, } from "./browser/config.ts";
@@ -30,7 +30,7 @@ export declare function createBrowserTool(runtime: BrowserRuntime, options?: Bro
30
30
  prepareArguments?(args: unknown): {
31
31
  command?: string;
32
32
  };
33
- structuredOutputSchema?: Type.TSchema;
33
+ structuredOutputSchema?: object;
34
34
  callers?: readonly ("model" | "tools")[];
35
35
  deferred?: true;
36
36
  outputLimits?: {
@@ -40,7 +40,10 @@ export declare function createBrowserTool(runtime: BrowserRuntime, options?: Bro
40
40
  };
41
41
  execute(args: {
42
42
  command?: string;
43
- }, api: import("@earendil-works/pi-durable").ToolExecutionApi<JsonValue>, context: import("@earendil-works/chord").Context): Promise<import("@earendil-works/pi-durable").ToolExecutionResult<JsonValue>>;
43
+ }, api: import("@earendil-works/pi-durable").ToolExecutionApi<JsonValue, JsonValue>, context: import("@earendil-works/chord/context").Context): Promise<import("@earendil-works/pi-durable").ToolExecutionResult<JsonValue> | import("@earendil-works/pi-durable").ToolPark<JsonValue>>;
44
+ cancel?(args: {
45
+ command?: string;
46
+ }, api: import("@earendil-works/pi-durable").ToolExecutionApi<JsonValue, JsonValue>, context: import("@earendil-works/chord/context").Context): Promise<void>;
44
47
  executionHints: {
45
48
  discovery: "help";
46
49
  inputSchema: {
@@ -65,7 +68,7 @@ export declare function createBrowserExtension(config: BrowserRuntimeConfig & Br
65
68
  prepareArguments?(args: unknown): {
66
69
  command?: string;
67
70
  };
68
- structuredOutputSchema?: Type.TSchema;
71
+ structuredOutputSchema?: object;
69
72
  callers?: readonly ("model" | "tools")[];
70
73
  deferred?: true;
71
74
  outputLimits?: {
@@ -75,7 +78,10 @@ export declare function createBrowserExtension(config: BrowserRuntimeConfig & Br
75
78
  };
76
79
  execute(args: {
77
80
  command?: string;
78
- }, api: import("@earendil-works/pi-durable").ToolExecutionApi<JsonValue>, context: import("@earendil-works/chord").Context): Promise<import("@earendil-works/pi-durable").ToolExecutionResult<JsonValue>>;
81
+ }, api: import("@earendil-works/pi-durable").ToolExecutionApi<JsonValue, JsonValue>, context: import("@earendil-works/chord/context").Context): Promise<import("@earendil-works/pi-durable").ToolExecutionResult<JsonValue> | import("@earendil-works/pi-durable").ToolPark<JsonValue>>;
82
+ cancel?(args: {
83
+ command?: string;
84
+ }, api: import("@earendil-works/pi-durable").ToolExecutionApi<JsonValue, JsonValue>, context: import("@earendil-works/chord/context").Context): Promise<void>;
79
85
  executionHints: {
80
86
  discovery: "help";
81
87
  inputSchema: {
@@ -96,7 +102,7 @@ export declare function createBrowserExtension(config: BrowserRuntimeConfig & Br
96
102
  prepareArguments?(args: unknown): {
97
103
  command?: string;
98
104
  };
99
- structuredOutputSchema?: Type.TSchema;
105
+ structuredOutputSchema?: object;
100
106
  callers?: readonly ("model" | "tools")[];
101
107
  deferred?: true;
102
108
  outputLimits?: {
@@ -106,7 +112,10 @@ export declare function createBrowserExtension(config: BrowserRuntimeConfig & Br
106
112
  };
107
113
  execute(args: {
108
114
  command?: string;
109
- }, api: import("@earendil-works/pi-durable").ToolExecutionApi<JsonValue>, context: import("@earendil-works/chord").Context): Promise<import("@earendil-works/pi-durable").ToolExecutionResult<JsonValue>>;
115
+ }, api: import("@earendil-works/pi-durable").ToolExecutionApi<JsonValue, JsonValue>, context: import("@earendil-works/chord/context").Context): Promise<import("@earendil-works/pi-durable").ToolExecutionResult<JsonValue> | import("@earendil-works/pi-durable").ToolPark<JsonValue>>;
116
+ cancel?(args: {
117
+ command?: string;
118
+ }, api: import("@earendil-works/pi-durable").ToolExecutionApi<JsonValue, JsonValue>, context: import("@earendil-works/chord/context").Context): Promise<void>;
110
119
  executionHints: {
111
120
  discovery: "help";
112
121
  inputSchema: {