@howaboua/pi-durable-browser 0.11.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.
- package/NOTICE +4 -0
- package/README.md +3 -3
- package/dist/activation.js +378 -62
- package/dist/browser/artifact-store.d.ts +5 -1
- package/dist/browser/default-browser.d.ts +7 -0
- package/dist/browser/voice-start.d.ts +1 -1
- package/dist/index.d.ts +13 -4
- package/dist/index.js +411 -74
- package/dist/remote-worker.js +368 -62
- package/package.json +7 -7
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import type { Context } from "@earendil-works/chord";
|
|
1
|
+
import type { Context } from "@earendil-works/chord/context";
|
|
2
2
|
import { type ExecutionEnv } from "@earendil-works/pi-durable/env";
|
|
3
3
|
/** Artifact names are generated internally, never caller-supplied paths. */
|
|
4
4
|
export interface BrowserArtifactStore {
|
|
5
5
|
path(name: string): string;
|
|
6
6
|
write(name: string, data: string | Uint8Array): Promise<void>;
|
|
7
|
+
readWindow?(name: string, offset: number, length: number): Promise<{
|
|
8
|
+
data: Uint8Array;
|
|
9
|
+
size: number;
|
|
10
|
+
}>;
|
|
7
11
|
read(name: string): Promise<string>;
|
|
8
12
|
remove(name: string): Promise<void>;
|
|
9
13
|
entries(): Promise<readonly {
|
|
@@ -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
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import type { JsonValue } from "@earendil-works/chord";
|
|
1
|
+
import type { JsonValue } from "@earendil-works/chord/json";
|
|
2
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";
|
|
@@ -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: {
|
|
@@ -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: {
|
|
@@ -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: {
|