exoagent 0.0.12 → 0.0.14
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 +7 -10
- package/dist/code-mode.d.ts +2 -24
- package/dist/exoeval/allowed.d.ts +9 -0
- package/dist/exoeval/builtins.d.ts +188 -0
- package/dist/exoeval/evaluator.d.ts +68 -0
- package/dist/exoeval/expr.d.ts +50 -0
- package/dist/exoeval/index.d.ts +16 -0
- package/dist/exoeval/lib/index.d.ts +1 -0
- package/dist/exoeval/scope.d.ts +13 -0
- package/dist/exoeval/tool.d.ts +49 -0
- package/dist/exoeval/utils.d.ts +9 -0
- package/dist/index.d.ts +3 -5
- package/dist/index.mjs +8255 -205
- package/dist/rpc-toolset-test-helpers.d.ts +2 -5
- package/dist/runtime/daemon.d.ts +37 -0
- package/dist/runtime/dts.d.ts +21 -0
- package/dist/runtime/eslint-exo-rule.d.ts +3 -0
- package/dist/runtime/exo.d.ts +33 -0
- package/dist/runtime/providers/args.d.ts +13 -0
- package/dist/runtime/providers/pi.d.ts +68 -0
- package/dist/runtime/providers/review.d.ts +82 -0
- package/dist/runtime/providers/sandbox.d.ts +54 -0
- package/dist/runtime/providers/secrets.d.ts +18 -0
- package/dist/runtime/providers/storage.d.ts +16 -0
- package/dist/runtime/secrets-ui.d.ts +19 -0
- package/dist/runtime/start-agent.d.ts +2 -0
- package/dist/runtime/start.d.ts +2 -0
- package/dist/sql/builder.d.ts +6 -7
- package/dist/sql/expression.d.ts +1 -2
- package/dist/sql.mjs +61 -77
- package/dist/tool-5wSlXWJ2.js +176 -0
- package/dist/tool-wrapper.d.ts +6 -13
- package/package.json +11 -10
- package/dist/capnweb/LICENSE.txt +0 -21
- package/dist/capnweb/README.md +0 -734
- package/dist/capnweb/dist/index-workers.cjs +0 -2791
- package/dist/capnweb/dist/index-workers.cjs.map +0 -1
- package/dist/capnweb/dist/index-workers.d.cts +0 -2
- package/dist/capnweb/dist/index-workers.d.ts +0 -2
- package/dist/capnweb/dist/index-workers.js +0 -2754
- package/dist/capnweb/dist/index-workers.js.map +0 -1
- package/dist/capnweb/dist/index.cjs +0 -2768
- package/dist/capnweb/dist/index.cjs.map +0 -1
- package/dist/capnweb/dist/index.d.cts +0 -383
- package/dist/capnweb/dist/index.d.ts +0 -383
- package/dist/capnweb/dist/index.js +0 -2751
- package/dist/capnweb/dist/index.js.map +0 -1
- package/dist/capnweb/package.json +0 -59
- package/dist/capnweb-test-helpers.d.ts +0 -25
- package/dist/chunk-VBDAOXYI-BhoIkhUn.mjs +0 -831
- package/dist/code-mode-deno.d.ts +0 -13
- package/dist/code-mode-runtime.d.ts +0 -1
- package/dist/nodefs-C8H-6XZ_.mjs +0 -26
- package/dist/opfs-ahp-Dy9HQOrY.mjs +0 -367
- package/dist/rpc-toolset-BnC2BXPq.js +0 -146
- package/dist/rpc-toolset-test-helpers.d.mts +0 -254
- package/dist/rpc-toolset-test-helpers.mjs +0 -10364
- package/dist/rpc-toolset.d.ts +0 -34
- package/dist/stream-transport.d.ts +0 -11
package/dist/rpc-toolset.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
|
-
import { RpcTarget } from '../packages/capnweb/dist';
|
|
3
|
-
declare const toolMetadataKey: unique symbol;
|
|
4
|
-
type ToolMetadata = {
|
|
5
|
-
[toolMetadataKey]?: {
|
|
6
|
-
runtimeValidationEnabled?: boolean;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export declare const setToolMetadata: (target: (...args: any[]) => unknown, metadata: ToolMetadata[typeof toolMetadataKey]) => void;
|
|
10
|
-
declare function toolDef(): <This, Return>(target: (this: This) => Return, context: ClassMethodDecoratorContext<This, (this: This) => Return>) => (this: This) => Return;
|
|
11
|
-
declare function toolDef<TInput>(inputSchema: StandardSchemaV1<TInput, TInput>): <This, Return>(target: (this: This, arg: TInput) => Return, context: ClassMethodDecoratorContext<This, (this: This, arg: TInput) => Return>) => (this: This, arg: TInput) => Return;
|
|
12
|
-
declare function toolUnsafeNoValidation(): <This, Return>(target: (this: This, ...args: any[]) => Return, context: ClassMethodDecoratorContext<This, (...unknown: any[]) => Return>) => any;
|
|
13
|
-
declare const callbackMetadataKey: unique symbol;
|
|
14
|
-
export type ToolCallback<T extends (arg: any) => unknown> = T | {
|
|
15
|
-
[callbackMetadataKey]: {
|
|
16
|
-
callback: T;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
type Fn = ToolCallback<(arg: any) => any>;
|
|
20
|
-
declare function callbackTool(): <This, Return>(target: (this: This, arg: Fn) => Return, context: ClassMethodDecoratorContext<This, (this: This, arg: Fn) => Return>) => (this: This, arg: Fn) => Return;
|
|
21
|
-
declare const unwrapCallback: <A, V>(toolCallback: ToolCallback<(arg: A) => V>, returnSchema: StandardSchemaV1<V, V> | ((arg: unknown) => arg is V)) => <R>(arg: A, then: (result: V) => R, opts?: {
|
|
22
|
-
catch?: (error: unknown) => R;
|
|
23
|
-
finally?: () => void;
|
|
24
|
-
}) => R;
|
|
25
|
-
export type ToolAnnotation = typeof toolDef & {
|
|
26
|
-
callback: typeof callbackTool;
|
|
27
|
-
unwrap: typeof unwrapCallback;
|
|
28
|
-
unsafeNoValidation: typeof toolUnsafeNoValidation;
|
|
29
|
-
};
|
|
30
|
-
export declare const tool: ToolAnnotation;
|
|
31
|
-
export declare class RpcToolset extends RpcTarget {
|
|
32
|
-
constructor();
|
|
33
|
-
}
|
|
34
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { RpcTransport } from '../packages/capnweb/dist';
|
|
2
|
-
export declare class StreamTransport implements RpcTransport {
|
|
3
|
-
private input;
|
|
4
|
-
private output;
|
|
5
|
-
private bufferReader;
|
|
6
|
-
private writer;
|
|
7
|
-
constructor(input: ReadableStream<Uint8Array>, output: WritableStream<Uint8Array>);
|
|
8
|
-
send(message: string): Promise<void>;
|
|
9
|
-
receive(): Promise<string>;
|
|
10
|
-
abort(reason: unknown): void;
|
|
11
|
-
}
|