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.
Files changed (59) hide show
  1. package/README.md +7 -10
  2. package/dist/code-mode.d.ts +2 -24
  3. package/dist/exoeval/allowed.d.ts +9 -0
  4. package/dist/exoeval/builtins.d.ts +188 -0
  5. package/dist/exoeval/evaluator.d.ts +68 -0
  6. package/dist/exoeval/expr.d.ts +50 -0
  7. package/dist/exoeval/index.d.ts +16 -0
  8. package/dist/exoeval/lib/index.d.ts +1 -0
  9. package/dist/exoeval/scope.d.ts +13 -0
  10. package/dist/exoeval/tool.d.ts +49 -0
  11. package/dist/exoeval/utils.d.ts +9 -0
  12. package/dist/index.d.ts +3 -5
  13. package/dist/index.mjs +8255 -205
  14. package/dist/rpc-toolset-test-helpers.d.ts +2 -5
  15. package/dist/runtime/daemon.d.ts +37 -0
  16. package/dist/runtime/dts.d.ts +21 -0
  17. package/dist/runtime/eslint-exo-rule.d.ts +3 -0
  18. package/dist/runtime/exo.d.ts +33 -0
  19. package/dist/runtime/providers/args.d.ts +13 -0
  20. package/dist/runtime/providers/pi.d.ts +68 -0
  21. package/dist/runtime/providers/review.d.ts +82 -0
  22. package/dist/runtime/providers/sandbox.d.ts +54 -0
  23. package/dist/runtime/providers/secrets.d.ts +18 -0
  24. package/dist/runtime/providers/storage.d.ts +16 -0
  25. package/dist/runtime/secrets-ui.d.ts +19 -0
  26. package/dist/runtime/start-agent.d.ts +2 -0
  27. package/dist/runtime/start.d.ts +2 -0
  28. package/dist/sql/builder.d.ts +6 -7
  29. package/dist/sql/expression.d.ts +1 -2
  30. package/dist/sql.mjs +61 -77
  31. package/dist/tool-5wSlXWJ2.js +176 -0
  32. package/dist/tool-wrapper.d.ts +6 -13
  33. package/package.json +11 -10
  34. package/dist/capnweb/LICENSE.txt +0 -21
  35. package/dist/capnweb/README.md +0 -734
  36. package/dist/capnweb/dist/index-workers.cjs +0 -2791
  37. package/dist/capnweb/dist/index-workers.cjs.map +0 -1
  38. package/dist/capnweb/dist/index-workers.d.cts +0 -2
  39. package/dist/capnweb/dist/index-workers.d.ts +0 -2
  40. package/dist/capnweb/dist/index-workers.js +0 -2754
  41. package/dist/capnweb/dist/index-workers.js.map +0 -1
  42. package/dist/capnweb/dist/index.cjs +0 -2768
  43. package/dist/capnweb/dist/index.cjs.map +0 -1
  44. package/dist/capnweb/dist/index.d.cts +0 -383
  45. package/dist/capnweb/dist/index.d.ts +0 -383
  46. package/dist/capnweb/dist/index.js +0 -2751
  47. package/dist/capnweb/dist/index.js.map +0 -1
  48. package/dist/capnweb/package.json +0 -59
  49. package/dist/capnweb-test-helpers.d.ts +0 -25
  50. package/dist/chunk-VBDAOXYI-BhoIkhUn.mjs +0 -831
  51. package/dist/code-mode-deno.d.ts +0 -13
  52. package/dist/code-mode-runtime.d.ts +0 -1
  53. package/dist/nodefs-C8H-6XZ_.mjs +0 -26
  54. package/dist/opfs-ahp-Dy9HQOrY.mjs +0 -367
  55. package/dist/rpc-toolset-BnC2BXPq.js +0 -146
  56. package/dist/rpc-toolset-test-helpers.d.mts +0 -254
  57. package/dist/rpc-toolset-test-helpers.mjs +0 -10364
  58. package/dist/rpc-toolset.d.ts +0 -34
  59. 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
- }