exoagent 0.0.11 → 0.0.13

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.
Files changed (44) hide show
  1. package/README.md +8 -11
  2. package/dist/code-mode.d.ts +2 -24
  3. package/dist/exoeval/builtins.d.ts +173 -0
  4. package/dist/exoeval/evaluator.d.ts +59 -0
  5. package/dist/exoeval/expr.d.ts +50 -0
  6. package/dist/exoeval/index.d.ts +6 -0
  7. package/dist/exoeval/scope.d.ts +13 -0
  8. package/dist/exoeval/tool.d.ts +44 -0
  9. package/dist/exoeval/utils.d.ts +9 -0
  10. package/dist/index.d.ts +3 -5
  11. package/dist/index.mjs +8128 -197
  12. package/dist/rpc-toolset-test-helpers.d.ts +2 -5
  13. package/dist/sql/builder.d.ts +6 -7
  14. package/dist/sql/expression.d.ts +1 -2
  15. package/dist/sql.mjs +61 -77
  16. package/dist/tool-DGs9ZxVn.js +175 -0
  17. package/dist/tool-wrapper.d.ts +6 -13
  18. package/package.json +6 -10
  19. package/dist/capnweb/LICENSE.txt +0 -21
  20. package/dist/capnweb/README.md +0 -734
  21. package/dist/capnweb/dist/index-workers.cjs +0 -2791
  22. package/dist/capnweb/dist/index-workers.cjs.map +0 -1
  23. package/dist/capnweb/dist/index-workers.d.cts +0 -2
  24. package/dist/capnweb/dist/index-workers.d.ts +0 -2
  25. package/dist/capnweb/dist/index-workers.js +0 -2754
  26. package/dist/capnweb/dist/index-workers.js.map +0 -1
  27. package/dist/capnweb/dist/index.cjs +0 -2768
  28. package/dist/capnweb/dist/index.cjs.map +0 -1
  29. package/dist/capnweb/dist/index.d.cts +0 -383
  30. package/dist/capnweb/dist/index.d.ts +0 -383
  31. package/dist/capnweb/dist/index.js +0 -2751
  32. package/dist/capnweb/dist/index.js.map +0 -1
  33. package/dist/capnweb/package.json +0 -59
  34. package/dist/capnweb-test-helpers.d.ts +0 -25
  35. package/dist/chunk-VBDAOXYI-BhoIkhUn.mjs +0 -831
  36. package/dist/code-mode-deno.d.ts +0 -13
  37. package/dist/code-mode-runtime.d.ts +0 -1
  38. package/dist/nodefs-C8H-6XZ_.mjs +0 -26
  39. package/dist/opfs-ahp-Dy9HQOrY.mjs +0 -367
  40. package/dist/rpc-toolset-BnC2BXPq.js +0 -146
  41. package/dist/rpc-toolset-test-helpers.d.mts +0 -254
  42. package/dist/rpc-toolset-test-helpers.mjs +0 -10364
  43. package/dist/rpc-toolset.d.ts +0 -34
  44. package/dist/stream-transport.d.ts +0 -11
@@ -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
- }