orchajs 0.18.0 → 0.20.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/README.md +93 -9
- package/dist/amarsia/metadata.d.ts +0 -1
- package/dist/amarsia/metadata.js +0 -1
- package/dist/amarsia/sync.d.ts +0 -1
- package/dist/amarsia/sync.js +0 -1
- package/dist/cli-agents-template.d.ts +0 -1
- package/dist/cli-agents-template.js +0 -1
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +0 -1
- package/dist/compiler/build-project.d.ts +0 -1
- package/dist/compiler/build-project.js +0 -1
- package/dist/compiler/compile.d.ts +0 -1
- package/dist/compiler/compile.js +0 -1
- package/dist/env.d.ts +0 -1
- package/dist/env.js +0 -1
- package/dist/errors.d.ts +0 -1
- package/dist/errors.js +0 -1
- package/dist/file-content.d.ts +0 -1
- package/dist/file-content.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/integrations/esbuild.d.ts +0 -1
- package/dist/integrations/esbuild.js +0 -1
- package/dist/integrations/serverless.d.ts +27 -0
- package/dist/integrations/serverless.js +78 -0
- package/dist/orcha.d.ts +0 -1
- package/dist/orcha.js +0 -1
- package/dist/playground/public/app.css +0 -1
- package/dist/playground/public/app.js +0 -1
- package/dist/playground/server.d.ts +0 -1
- package/dist/playground/server.js +0 -1
- package/dist/playground/source.d.ts +0 -1
- package/dist/playground/source.js +0 -1
- package/dist/project-loader.d.ts +0 -1
- package/dist/project-loader.js +0 -1
- package/dist/providers/anthropic.d.ts +0 -1
- package/dist/providers/anthropic.js +0 -1
- package/dist/providers/bedrock.d.ts +0 -1
- package/dist/providers/bedrock.js +0 -1
- package/dist/providers/catalog.d.ts +0 -1
- package/dist/providers/catalog.js +0 -1
- package/dist/providers/deepseek.d.ts +0 -1
- package/dist/providers/deepseek.js +0 -1
- package/dist/providers/dispatcher.d.ts +0 -1
- package/dist/providers/dispatcher.js +0 -1
- package/dist/providers/google-gemini.d.ts +0 -1
- package/dist/providers/google-gemini.js +0 -1
- package/dist/providers/google-genai.d.ts +0 -1
- package/dist/providers/google-genai.js +0 -1
- package/dist/providers/index.d.ts +0 -1
- package/dist/providers/index.js +20 -5
- package/dist/providers/openai.d.ts +0 -1
- package/dist/providers/openai.js +0 -1
- package/dist/providers/sse.d.ts +0 -1
- package/dist/providers/sse.js +0 -1
- package/dist/providers/types.d.ts +0 -1
- package/dist/providers/types.js +0 -1
- package/dist/providers/vertex-ai.d.ts +0 -1
- package/dist/providers/vertex-ai.js +0 -1
- package/dist/runtime/actions/context.d.ts +0 -1
- package/dist/runtime/actions/context.js +0 -1
- package/dist/runtime/actions/execute.d.ts +0 -1
- package/dist/runtime/actions/execute.js +14 -2
- package/dist/runtime/actions/native.d.ts +0 -1
- package/dist/runtime/actions/native.js +0 -1
- package/dist/runtime/actions/sandbox.d.ts +0 -1
- package/dist/runtime/actions/sandbox.js +0 -1
- package/dist/runtime/agent.d.ts +0 -1
- package/dist/runtime/agent.js +0 -1
- package/dist/runtime/context.d.ts +0 -1
- package/dist/runtime/context.js +0 -1
- package/dist/runtime/create-orcha.d.ts +0 -1
- package/dist/runtime/create-orcha.js +0 -1
- package/dist/runtime/execution.d.ts +0 -1
- package/dist/runtime/execution.js +0 -1
- package/dist/runtime/session-events.d.ts +0 -1
- package/dist/runtime/session-events.js +0 -1
- package/dist/runtime/structured-output.d.ts +0 -1
- package/dist/runtime/structured-output.js +0 -1
- package/dist/storage/browser-indexeddb.d.ts +0 -1
- package/dist/storage/browser-indexeddb.js +0 -1
- package/dist/storage/create-store.d.ts +0 -1
- package/dist/storage/create-store.js +0 -1
- package/dist/storage/edge-store.d.ts +0 -1
- package/dist/storage/edge-store.js +0 -1
- package/dist/storage/migrate.d.ts +0 -1
- package/dist/storage/migrate.js +0 -1
- package/dist/storage/node-jsonl.d.ts +0 -1
- package/dist/storage/node-jsonl.js +0 -1
- package/dist/storage/node-sqlite.d.ts +0 -1
- package/dist/storage/node-sqlite.js +1 -2
- package/dist/storage/react-native-jsonl.d.ts +0 -1
- package/dist/storage/react-native-jsonl.js +0 -1
- package/dist/testing.d.ts +0 -1
- package/dist/testing.js +0 -1
- package/dist/types.d.ts +0 -1
- package/dist/types.js +0 -1
- package/dist-cjs/amarsia/metadata.js +0 -1
- package/dist-cjs/amarsia/sync.js +0 -1
- package/dist-cjs/cli-agents-template.js +0 -1
- package/dist-cjs/compiler/build-project.js +0 -1
- package/dist-cjs/compiler/compile.js +0 -1
- package/dist-cjs/env.js +0 -1
- package/dist-cjs/errors.js +0 -1
- package/dist-cjs/file-content.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/integrations/esbuild.js +0 -1
- package/dist-cjs/integrations/serverless.cjs +2 -0
- package/dist-cjs/integrations/serverless.js +125 -0
- package/dist-cjs/orcha.js +0 -1
- package/dist-cjs/playground/server.js +0 -1
- package/dist-cjs/playground/source.js +0 -1
- package/dist-cjs/project-loader.js +0 -1
- package/dist-cjs/providers/anthropic.js +0 -1
- package/dist-cjs/providers/bedrock.js +0 -1
- package/dist-cjs/providers/catalog.js +0 -1
- package/dist-cjs/providers/deepseek.js +0 -1
- package/dist-cjs/providers/dispatcher.js +0 -1
- package/dist-cjs/providers/google-gemini.js +0 -1
- package/dist-cjs/providers/google-genai.js +0 -1
- package/dist-cjs/providers/index.js +16 -3
- package/dist-cjs/providers/openai.js +0 -1
- package/dist-cjs/providers/sse.js +0 -1
- package/dist-cjs/providers/types.js +0 -1
- package/dist-cjs/providers/vertex-ai.js +0 -1
- package/dist-cjs/runtime/actions/context.js +0 -1
- package/dist-cjs/runtime/actions/execute.js +16 -2
- package/dist-cjs/runtime/actions/native.js +0 -1
- package/dist-cjs/runtime/actions/sandbox.js +0 -1
- package/dist-cjs/runtime/agent.js +0 -1
- package/dist-cjs/runtime/context.js +0 -1
- package/dist-cjs/runtime/create-orcha.js +0 -1
- package/dist-cjs/runtime/execution.js +0 -1
- package/dist-cjs/runtime/session-events.js +0 -1
- package/dist-cjs/runtime/structured-output.js +0 -1
- package/dist-cjs/storage/browser-indexeddb.js +0 -1
- package/dist-cjs/storage/create-store.js +0 -1
- package/dist-cjs/storage/edge-store.js +0 -1
- package/dist-cjs/storage/migrate.js +0 -1
- package/dist-cjs/storage/node-jsonl.js +0 -1
- package/dist-cjs/storage/node-sqlite.js +1 -2
- package/dist-cjs/storage/react-native-jsonl.js +0 -1
- package/dist-cjs/testing.js +0 -1
- package/dist-cjs/types/google-genai-sdk.d.js +0 -1
- package/dist-cjs/types.js +0 -1
- package/package.json +41 -9
- package/dist/amarsia/metadata.d.ts.map +0 -1
- package/dist/amarsia/metadata.js.map +0 -1
- package/dist/amarsia/sync.d.ts.map +0 -1
- package/dist/amarsia/sync.js.map +0 -1
- package/dist/cli-agents-template.d.ts.map +0 -1
- package/dist/cli-agents-template.js.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/compiler/build-project.d.ts.map +0 -1
- package/dist/compiler/build-project.js.map +0 -1
- package/dist/compiler/compile.d.ts.map +0 -1
- package/dist/compiler/compile.js.map +0 -1
- package/dist/env.d.ts.map +0 -1
- package/dist/env.js.map +0 -1
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/file-content.d.ts.map +0 -1
- package/dist/file-content.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/integrations/esbuild.d.ts.map +0 -1
- package/dist/integrations/esbuild.js.map +0 -1
- package/dist/orcha.d.ts.map +0 -1
- package/dist/orcha.js.map +0 -1
- package/dist/playground/public/app.css.map +0 -7
- package/dist/playground/public/app.js.map +0 -7
- package/dist/playground/server.d.ts.map +0 -1
- package/dist/playground/server.js.map +0 -1
- package/dist/playground/source.d.ts.map +0 -1
- package/dist/playground/source.js.map +0 -1
- package/dist/project-loader.d.ts.map +0 -1
- package/dist/project-loader.js.map +0 -1
- package/dist/providers/anthropic.d.ts.map +0 -1
- package/dist/providers/anthropic.js.map +0 -1
- package/dist/providers/bedrock.d.ts.map +0 -1
- package/dist/providers/bedrock.js.map +0 -1
- package/dist/providers/catalog.d.ts.map +0 -1
- package/dist/providers/catalog.js.map +0 -1
- package/dist/providers/deepseek.d.ts.map +0 -1
- package/dist/providers/deepseek.js.map +0 -1
- package/dist/providers/dispatcher.d.ts.map +0 -1
- package/dist/providers/dispatcher.js.map +0 -1
- package/dist/providers/google-gemini.d.ts.map +0 -1
- package/dist/providers/google-gemini.js.map +0 -1
- package/dist/providers/google-genai.d.ts.map +0 -1
- package/dist/providers/google-genai.js.map +0 -1
- package/dist/providers/index.d.ts.map +0 -1
- package/dist/providers/index.js.map +0 -1
- package/dist/providers/openai.d.ts.map +0 -1
- package/dist/providers/openai.js.map +0 -1
- package/dist/providers/sse.d.ts.map +0 -1
- package/dist/providers/sse.js.map +0 -1
- package/dist/providers/types.d.ts.map +0 -1
- package/dist/providers/types.js.map +0 -1
- package/dist/providers/vertex-ai.d.ts.map +0 -1
- package/dist/providers/vertex-ai.js.map +0 -1
- package/dist/runtime/actions/context.d.ts.map +0 -1
- package/dist/runtime/actions/context.js.map +0 -1
- package/dist/runtime/actions/execute.d.ts.map +0 -1
- package/dist/runtime/actions/execute.js.map +0 -1
- package/dist/runtime/actions/native.d.ts.map +0 -1
- package/dist/runtime/actions/native.js.map +0 -1
- package/dist/runtime/actions/sandbox.d.ts.map +0 -1
- package/dist/runtime/actions/sandbox.js.map +0 -1
- package/dist/runtime/agent.d.ts.map +0 -1
- package/dist/runtime/agent.js.map +0 -1
- package/dist/runtime/context.d.ts.map +0 -1
- package/dist/runtime/context.js.map +0 -1
- package/dist/runtime/create-orcha.d.ts.map +0 -1
- package/dist/runtime/create-orcha.js.map +0 -1
- package/dist/runtime/execution.d.ts.map +0 -1
- package/dist/runtime/execution.js.map +0 -1
- package/dist/runtime/session-events.d.ts.map +0 -1
- package/dist/runtime/session-events.js.map +0 -1
- package/dist/runtime/structured-output.d.ts.map +0 -1
- package/dist/runtime/structured-output.js.map +0 -1
- package/dist/storage/browser-indexeddb.d.ts.map +0 -1
- package/dist/storage/browser-indexeddb.js.map +0 -1
- package/dist/storage/create-store.d.ts.map +0 -1
- package/dist/storage/create-store.js.map +0 -1
- package/dist/storage/edge-store.d.ts.map +0 -1
- package/dist/storage/edge-store.js.map +0 -1
- package/dist/storage/migrate.d.ts.map +0 -1
- package/dist/storage/migrate.js.map +0 -1
- package/dist/storage/node-jsonl.d.ts.map +0 -1
- package/dist/storage/node-jsonl.js.map +0 -1
- package/dist/storage/node-sqlite.d.ts.map +0 -1
- package/dist/storage/node-sqlite.js.map +0 -1
- package/dist/storage/react-native-jsonl.d.ts.map +0 -1
- package/dist/storage/react-native-jsonl.js.map +0 -1
- package/dist/testing.d.ts.map +0 -1
- package/dist/testing.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist-cjs/amarsia/metadata.js.map +0 -7
- package/dist-cjs/amarsia/sync.js.map +0 -7
- package/dist-cjs/cli-agents-template.js.map +0 -7
- package/dist-cjs/compiler/build-project.js.map +0 -7
- package/dist-cjs/compiler/compile.js.map +0 -7
- package/dist-cjs/env.js.map +0 -7
- package/dist-cjs/errors.js.map +0 -7
- package/dist-cjs/file-content.js.map +0 -7
- package/dist-cjs/index.js.map +0 -7
- package/dist-cjs/integrations/esbuild.js.map +0 -7
- package/dist-cjs/orcha.js.map +0 -7
- package/dist-cjs/playground/server.js.map +0 -7
- package/dist-cjs/playground/source.js.map +0 -7
- package/dist-cjs/project-loader.js.map +0 -7
- package/dist-cjs/providers/anthropic.js.map +0 -7
- package/dist-cjs/providers/bedrock.js.map +0 -7
- package/dist-cjs/providers/catalog.js.map +0 -7
- package/dist-cjs/providers/deepseek.js.map +0 -7
- package/dist-cjs/providers/dispatcher.js.map +0 -7
- package/dist-cjs/providers/google-gemini.js.map +0 -7
- package/dist-cjs/providers/google-genai.js.map +0 -7
- package/dist-cjs/providers/index.js.map +0 -7
- package/dist-cjs/providers/openai.js.map +0 -7
- package/dist-cjs/providers/sse.js.map +0 -7
- package/dist-cjs/providers/types.js.map +0 -7
- package/dist-cjs/providers/vertex-ai.js.map +0 -7
- package/dist-cjs/runtime/actions/context.js.map +0 -7
- package/dist-cjs/runtime/actions/execute.js.map +0 -7
- package/dist-cjs/runtime/actions/native.js.map +0 -7
- package/dist-cjs/runtime/actions/sandbox.js.map +0 -7
- package/dist-cjs/runtime/agent.js.map +0 -7
- package/dist-cjs/runtime/context.js.map +0 -7
- package/dist-cjs/runtime/create-orcha.js.map +0 -7
- package/dist-cjs/runtime/execution.js.map +0 -7
- package/dist-cjs/runtime/session-events.js.map +0 -7
- package/dist-cjs/runtime/structured-output.js.map +0 -7
- package/dist-cjs/storage/browser-indexeddb.js.map +0 -7
- package/dist-cjs/storage/create-store.js.map +0 -7
- package/dist-cjs/storage/edge-store.js.map +0 -7
- package/dist-cjs/storage/migrate.js.map +0 -7
- package/dist-cjs/storage/node-jsonl.js.map +0 -7
- package/dist-cjs/storage/node-sqlite.js.map +0 -7
- package/dist-cjs/storage/react-native-jsonl.js.map +0 -7
- package/dist-cjs/testing.js.map +0 -7
- package/dist-cjs/types/google-genai-sdk.d.js.map +0 -7
- package/dist-cjs/types.js.map +0 -7
package/dist/project-loader.d.ts
CHANGED
package/dist/project-loader.js
CHANGED
|
@@ -12,4 +12,3 @@ export interface BedrockContentClient {
|
|
|
12
12
|
}
|
|
13
13
|
export declare const bedrockProvider: ProviderAdapter;
|
|
14
14
|
export declare function generateBedrockContent(client: BedrockContentClient, request: ProviderRequest): Promise<ProviderResponse>;
|
|
15
|
-
//# sourceMappingURL=bedrock.d.ts.map
|
|
@@ -2,4 +2,3 @@ import type { ProviderName } from "../types.js";
|
|
|
2
2
|
import type { ProviderAdapter, ProviderResponseGenerator } from "./types.js";
|
|
3
3
|
export type ProviderAdapterRegistry = Partial<Record<ProviderName, ProviderAdapter>>;
|
|
4
4
|
export declare function createProviderResponseGenerator(providers: ProviderAdapterRegistry): ProviderResponseGenerator;
|
|
5
|
-
//# sourceMappingURL=dispatcher.d.ts.map
|
|
@@ -73,4 +73,3 @@ export interface GoogleContentClient {
|
|
|
73
73
|
export declare function toGoogleContentClient(client: unknown): GoogleContentClient;
|
|
74
74
|
export declare function generateGoogleContent(client: GoogleContentClient, request: ProviderRequest, provider: "googlegenai" | "vertexai"): Promise<ProviderResponse>;
|
|
75
75
|
export {};
|
|
76
|
-
//# sourceMappingURL=google-gemini.d.ts.map
|
package/dist/providers/index.js
CHANGED
|
@@ -25,16 +25,32 @@ function loadProvider(name) {
|
|
|
25
25
|
})
|
|
26
26
|
.catch((error) => {
|
|
27
27
|
loadedProviders.delete(name);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
const dependency = missingProviderDependency(name, error);
|
|
29
|
+
if (dependency) {
|
|
30
|
+
const nodeRequirement = dependency === "@google/genai"
|
|
31
|
+
? " Node.js 20 or newer is also required."
|
|
32
|
+
: "";
|
|
33
|
+
throw new OrchaError("provider_error", `Provider "${name}" requires the optional "${dependency}" package.${nodeRequirement} Install it in the application that uses this provider.`, { cause: error });
|
|
32
34
|
}
|
|
33
35
|
throw error;
|
|
34
36
|
});
|
|
35
37
|
loadedProviders.set(name, loading);
|
|
36
38
|
return loading;
|
|
37
39
|
}
|
|
40
|
+
function missingProviderDependency(name, error) {
|
|
41
|
+
if (!(error instanceof Error)) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (name === "bedrock" &&
|
|
45
|
+
error.message.includes("@aws-sdk/client-bedrock-runtime")) {
|
|
46
|
+
return "@aws-sdk/client-bedrock-runtime";
|
|
47
|
+
}
|
|
48
|
+
if ((name === "googlegenai" || name === "vertexai") &&
|
|
49
|
+
error.message.includes("@google/genai")) {
|
|
50
|
+
return "@google/genai";
|
|
51
|
+
}
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
38
54
|
function isProviderAdapter(value) {
|
|
39
55
|
return (typeof value === "object" &&
|
|
40
56
|
value !== null &&
|
|
@@ -42,4 +58,3 @@ function isProviderAdapter(value) {
|
|
|
42
58
|
"generate" in value &&
|
|
43
59
|
typeof value.generate === "function");
|
|
44
60
|
}
|
|
45
|
-
//# sourceMappingURL=index.js.map
|
package/dist/providers/openai.js
CHANGED
package/dist/providers/sse.d.ts
CHANGED
package/dist/providers/sse.js
CHANGED
|
@@ -69,4 +69,3 @@ export interface ProviderAdapter {
|
|
|
69
69
|
generate(configuration: ProviderConfiguration, request: ProviderRequest): Promise<ProviderResponse>;
|
|
70
70
|
}
|
|
71
71
|
export type ProviderResponseGenerator = (name: ProviderName, configuration: ProviderConfiguration, request: ProviderRequest) => Promise<ProviderResponse>;
|
|
72
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/providers/types.js
CHANGED
|
@@ -6,9 +6,21 @@ export async function executeLocalAction(options) {
|
|
|
6
6
|
return executeNativeAction(options.action, options.parameters, context);
|
|
7
7
|
}
|
|
8
8
|
if (process.env.ORCHA_INCLUDE_SANDBOX !== "0") {
|
|
9
|
-
const { executeSandboxedAction } = await
|
|
9
|
+
const { executeSandboxedAction } = await loadSandboxRuntime();
|
|
10
10
|
return executeSandboxedAction(options.action, options.parameters, context, options.configuration.sandbox);
|
|
11
11
|
}
|
|
12
12
|
throw new Error("The production bundle was built without the QuickJS sandbox.");
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
async function loadSandboxRuntime() {
|
|
15
|
+
try {
|
|
16
|
+
return await import("./sandbox.js");
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
if (error instanceof Error &&
|
|
20
|
+
(error.message.includes("quickjs-emscripten-core") ||
|
|
21
|
+
error.message.includes("@jitl/quickjs-singlefile-cjs-release-sync"))) {
|
|
22
|
+
throw new Error('Sandboxed actions require the optional "quickjs-emscripten-core" and "@jitl/quickjs-singlefile-cjs-release-sync" packages. Install both in the application that selects the sandbox runtime.', { cause: error });
|
|
23
|
+
}
|
|
24
|
+
throw error;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { CompiledActionManifest } from "../../types.js";
|
|
2
2
|
import type { LocalActionContext } from "./context.js";
|
|
3
3
|
export declare function executeNativeAction(action: CompiledActionManifest, parameters: Record<string, unknown>, context: LocalActionContext): Promise<unknown>;
|
|
4
|
-
//# sourceMappingURL=native.d.ts.map
|
package/dist/runtime/agent.d.ts
CHANGED
package/dist/runtime/agent.js
CHANGED
|
@@ -9,4 +9,3 @@ export interface OrchaRuntimeContext {
|
|
|
9
9
|
}
|
|
10
10
|
export declare function setOrchaRuntimeContext(client: object, context: OrchaRuntimeContext): void;
|
|
11
11
|
export declare function getOrchaRuntimeContext(client: object): OrchaRuntimeContext;
|
|
12
|
-
//# sourceMappingURL=context.d.ts.map
|
package/dist/runtime/context.js
CHANGED
|
@@ -9,4 +9,3 @@ export interface Orcha {
|
|
|
9
9
|
export type OrchaClient = Orcha & Record<string, AgentRuntime>;
|
|
10
10
|
export type BundleResolver = (configuration: OrchaInitConfiguration) => CompiledBundle;
|
|
11
11
|
export declare function createOrcha(resolveBundle: BundleResolver, generateProviderResponse: ProviderResponseGenerator): OrchaClient;
|
|
12
|
-
//# sourceMappingURL=create-orcha.d.ts.map
|
|
@@ -2,4 +2,3 @@ import type { EvaluationResult, Execution, ExecutionSnapshot, RunResult } from "
|
|
|
2
2
|
export type OutputSnapshotPublisher<TOutput> = (output: TOutput) => void;
|
|
3
3
|
export type ExecutionSnapshotPublisher<TOutput> = (snapshot: ExecutionSnapshot<TOutput>) => void;
|
|
4
4
|
export declare function createExecution<TOutput>(sessionId: string, execute: (publishOutput: OutputSnapshotPublisher<TOutput>, publishSnapshot: ExecutionSnapshotPublisher<TOutput>) => Promise<RunResult<TOutput>>, resolveEvaluations?: () => Promise<EvaluationResult[]>): Execution<TOutput>;
|
|
5
|
-
//# sourceMappingURL=execution.d.ts.map
|
|
@@ -9,4 +9,3 @@ export declare class SessionEventWriter {
|
|
|
9
9
|
}
|
|
10
10
|
export declare function messagesFromEvents(events: SessionEvent[], includeRun?: number): ProviderMessage[];
|
|
11
11
|
export declare function normalizePersistedToolResults(value: unknown[]): ProviderToolResult[] | undefined;
|
|
12
|
-
//# sourceMappingURL=session-events.d.ts.map
|
|
@@ -5,4 +5,3 @@ export interface SessionStoreMigrationResult {
|
|
|
5
5
|
}
|
|
6
6
|
export declare function migrateSessionStore(source: SessionStore, destination: SessionStore): Promise<SessionStoreMigrationResult>;
|
|
7
7
|
export declare function exportSessionJsonl(store: SessionStore, sessionId: string): Promise<string>;
|
|
8
|
-
//# sourceMappingURL=migrate.d.ts.map
|
package/dist/storage/migrate.js
CHANGED
|
@@ -32,4 +32,3 @@ function assertCompatibleHistory(sessionId, source, destination) {
|
|
|
32
32
|
function incompatibleHistory(sessionId) {
|
|
33
33
|
return new Error(`Cannot migrate session "${sessionId}" because the destination contains conflicting history.`);
|
|
34
34
|
}
|
|
35
|
-
//# sourceMappingURL=migrate.js.map
|
|
@@ -11,4 +11,3 @@ export declare class NodeJsonlSessionStore implements SessionStore {
|
|
|
11
11
|
subscribeAll(listener: (sessionId: string, events: SessionEvent[]) => void): () => void;
|
|
12
12
|
}
|
|
13
13
|
export declare function sessionAgentDirectoryName(agent: string): string;
|
|
14
|
-
//# sourceMappingURL=node-jsonl.d.ts.map
|
|
@@ -139,7 +139,7 @@ function loadDatabaseConstructor() {
|
|
|
139
139
|
return "default" in loaded ? loaded.default : loaded;
|
|
140
140
|
}
|
|
141
141
|
catch (error) {
|
|
142
|
-
throw new Error('
|
|
142
|
+
throw new Error('SQLite storage requires the optional "better-sqlite3" package. Install it in the application or use the default "node-jsonl" strategy.', { cause: error });
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
function validateSessionId(sessionId) {
|
|
@@ -155,4 +155,3 @@ function safelyNotify(notify) {
|
|
|
155
155
|
// Observers cannot invalidate a durable write.
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
//# sourceMappingURL=node-sqlite.js.map
|
package/dist/testing.d.ts
CHANGED
|
@@ -2,4 +2,3 @@ import type { OrchaClient } from "./runtime/create-orcha.js";
|
|
|
2
2
|
import type { AgentTestCaseSummary, AgentTestReport, RunTestsOptions } from "./types.js";
|
|
3
3
|
export declare function listTests(orcha: OrchaClient, options?: RunTestsOptions): Promise<AgentTestCaseSummary[]>;
|
|
4
4
|
export declare function runTests(orcha: OrchaClient, options?: RunTestsOptions): Promise<AgentTestReport>;
|
|
5
|
-
//# sourceMappingURL=testing.d.ts.map
|
package/dist/testing.js
CHANGED
package/dist/types.d.ts
CHANGED
package/dist/types.js
CHANGED
package/dist-cjs/amarsia/sync.js
CHANGED
package/dist-cjs/env.js
CHANGED
package/dist-cjs/errors.js
CHANGED
package/dist-cjs/file-content.js
CHANGED
package/dist-cjs/index.js
CHANGED