@mcpview/compose 0.14.0 → 0.15.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.
Files changed (63) hide show
  1. package/CHANGELOG.md +110 -1
  2. package/README.md +116 -24
  3. package/esm/src/code-mode/engine.d.ts +59 -0
  4. package/esm/src/code-mode/engine.d.ts.map +1 -0
  5. package/esm/src/code-mode/engine.js +189 -0
  6. package/esm/src/code-mode/guest-worker.d.ts +2 -5
  7. package/esm/src/code-mode/guest-worker.d.ts.map +1 -1
  8. package/esm/src/code-mode/guest-worker.js +4 -75
  9. package/esm/src/code-mode/sandbox-api.d.ts +37 -0
  10. package/esm/src/code-mode/sandbox-api.d.ts.map +1 -0
  11. package/esm/src/code-mode/sandbox-api.js +36 -0
  12. package/esm/src/code-mode/sandbox-core.d.ts +99 -21
  13. package/esm/src/code-mode/sandbox-core.d.ts.map +1 -1
  14. package/esm/src/code-mode/sandbox-core.js +926 -221
  15. package/esm/src/code-mode/sandbox-worker.d.ts +37 -0
  16. package/esm/src/code-mode/sandbox-worker.d.ts.map +1 -0
  17. package/esm/src/code-mode/sandbox-worker.js +140 -0
  18. package/esm/src/code-mode/sandbox.d.ts +142 -29
  19. package/esm/src/code-mode/sandbox.d.ts.map +1 -1
  20. package/esm/src/code-mode/sandbox.js +402 -68
  21. package/esm/src/code-mode/surface.d.ts +148 -0
  22. package/esm/src/code-mode/surface.d.ts.map +1 -0
  23. package/esm/src/code-mode/surface.js +204 -0
  24. package/esm/src/code-mode/tool.js +1 -1
  25. package/esm/src/code-mode/worker-host.d.ts +51 -11
  26. package/esm/src/code-mode/worker-host.d.ts.map +1 -1
  27. package/esm/src/code-mode/worker-host.js +114 -48
  28. package/esm/src/code-mode/worker-protocol.d.ts +45 -8
  29. package/esm/src/code-mode/worker-protocol.d.ts.map +1 -1
  30. package/esm/src/code-mode/worker-protocol.js +4 -2
  31. package/esm/src/version.d.ts +1 -1
  32. package/esm/src/version.js +1 -1
  33. package/package.json +9 -1
  34. package/script/src/code-mode/engine.d.ts +59 -0
  35. package/script/src/code-mode/engine.d.ts.map +1 -0
  36. package/script/src/code-mode/engine.js +198 -0
  37. package/script/src/code-mode/guest-worker.d.ts +2 -5
  38. package/script/src/code-mode/guest-worker.d.ts.map +1 -1
  39. package/script/src/code-mode/guest-worker.js +4 -98
  40. package/script/src/code-mode/sandbox-api.d.ts +37 -0
  41. package/script/src/code-mode/sandbox-api.d.ts.map +1 -0
  42. package/script/src/code-mode/sandbox-api.js +50 -0
  43. package/script/src/code-mode/sandbox-core.d.ts +99 -21
  44. package/script/src/code-mode/sandbox-core.d.ts.map +1 -1
  45. package/script/src/code-mode/sandbox-core.js +931 -221
  46. package/script/src/code-mode/sandbox-worker.d.ts +37 -0
  47. package/script/src/code-mode/sandbox-worker.d.ts.map +1 -0
  48. package/script/src/code-mode/sandbox-worker.js +166 -0
  49. package/script/src/code-mode/sandbox.d.ts +142 -29
  50. package/script/src/code-mode/sandbox.d.ts.map +1 -1
  51. package/script/src/code-mode/sandbox.js +432 -73
  52. package/script/src/code-mode/surface.d.ts +148 -0
  53. package/script/src/code-mode/surface.d.ts.map +1 -0
  54. package/script/src/code-mode/surface.js +211 -0
  55. package/script/src/code-mode/tool.js +1 -1
  56. package/script/src/code-mode/worker-host.d.ts +51 -11
  57. package/script/src/code-mode/worker-host.d.ts.map +1 -1
  58. package/script/src/code-mode/worker-host.js +115 -47
  59. package/script/src/code-mode/worker-protocol.d.ts +45 -8
  60. package/script/src/code-mode/worker-protocol.d.ts.map +1 -1
  61. package/script/src/code-mode/worker-protocol.js +4 -2
  62. package/script/src/version.d.ts +1 -1
  63. package/script/src/version.js +1 -1
@@ -0,0 +1,37 @@
1
+ /**
2
+ * The Code Mode sandbox as another package uses it: run a program written by a
3
+ * model in an isolated QuickJS engine, against a surface the host declares.
4
+ *
5
+ * A host states the object the program receives (its name, its JSON constants
6
+ * and a closed table of operations), implements those operations in one
7
+ * callback, and gets back the program's value or a coded error. Only JSON
8
+ * crosses into the program. See ADR 0006 and ADR 0007.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * import { runSandboxProgram, SandboxHostError } from "@mcpview/compose/code-mode/sandbox";
13
+ *
14
+ * const total = await runSandboxProgram(
15
+ * "const order = await shop.getOrder(shop.params.id); return order.total;",
16
+ * {
17
+ * namespace: "shop",
18
+ * constants: { params: { id: 1042 } },
19
+ * operations: { getOrder: { budget: "reads" } },
20
+ * budgets: { reads: 12 },
21
+ * },
22
+ * (operation, args) => {
23
+ * if (args[0] !== 1042) {
24
+ * throw new SandboxHostError("ORDER_UNKNOWN", "No such order", "List the orders first");
25
+ * }
26
+ * return Promise.resolve({ id: 1042, total: 199.5 });
27
+ * },
28
+ * );
29
+ * ```
30
+ *
31
+ * @module code-mode/sandbox
32
+ */
33
+ import "../../_dnt.polyfills.js";
34
+ export { CODE_MODE_ERROR_CODES, CodeModeError, type CodeModeErrorCode, type CodeModeErrorContext, type CodeModeErrorEffects, type CodeModeErrorFields, formatCodeModeError, isCodeModeError, } from "./errors.js";
35
+ export { assertSandboxIsolation, resolveSandboxResourceLimits, runSandboxProgram, SANDBOX_RESOURCE_LIMITS, type SandboxInvoke, type SandboxIsolation, type SandboxOptions, type SandboxResourceLimits, type SandboxUnsentCall, } from "./sandbox.js";
36
+ export { resolveSandboxSurface, SandboxHostError, type SandboxOperation, SandboxResultReference, type SandboxSurface, } from "./surface.js";
37
+ //# sourceMappingURL=sandbox-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sandbox-api.d.ts","sourceRoot":"","sources":["../../../src/src/code-mode/sandbox-api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,yBAAyB,CAAC;AAGjC,OAAO,EACL,qBAAqB,EACrB,aAAa,EACb,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,mBAAmB,EACnB,eAAe,GAChB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,iBAAiB,EACjB,uBAAuB,EACvB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,KAAK,cAAc,GACpB,MAAM,cAAc,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * The Code Mode sandbox as another package uses it: run a program written by a
3
+ * model in an isolated QuickJS engine, against a surface the host declares.
4
+ *
5
+ * A host states the object the program receives (its name, its JSON constants
6
+ * and a closed table of operations), implements those operations in one
7
+ * callback, and gets back the program's value or a coded error. Only JSON
8
+ * crosses into the program. See ADR 0006 and ADR 0007.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * import { runSandboxProgram, SandboxHostError } from "@mcpview/compose/code-mode/sandbox";
13
+ *
14
+ * const total = await runSandboxProgram(
15
+ * "const order = await shop.getOrder(shop.params.id); return order.total;",
16
+ * {
17
+ * namespace: "shop",
18
+ * constants: { params: { id: 1042 } },
19
+ * operations: { getOrder: { budget: "reads" } },
20
+ * budgets: { reads: 12 },
21
+ * },
22
+ * (operation, args) => {
23
+ * if (args[0] !== 1042) {
24
+ * throw new SandboxHostError("ORDER_UNKNOWN", "No such order", "List the orders first");
25
+ * }
26
+ * return Promise.resolve({ id: 1042, total: 199.5 });
27
+ * },
28
+ * );
29
+ * ```
30
+ *
31
+ * @module code-mode/sandbox
32
+ */
33
+ import "../../_dnt.polyfills.js";
34
+ export { CODE_MODE_ERROR_CODES, CodeModeError, formatCodeModeError, isCodeModeError, } from "./errors.js";
35
+ export { assertSandboxIsolation, resolveSandboxResourceLimits, runSandboxProgram, SANDBOX_RESOURCE_LIMITS, } from "./sandbox.js";
36
+ export { resolveSandboxSurface, SandboxHostError, SandboxResultReference, } from "./surface.js";
@@ -7,55 +7,133 @@
7
7
  */
8
8
  import { type QuickJSWASMModule } from "quickjs-emscripten";
9
9
  import { CodeModeError } from "./errors.js";
10
- /** Resource limits of one program. */
11
- export interface SandboxLimits {
10
+ import { type SandboxSurface } from "./surface.js";
11
+ /**
12
+ * Resource limits of one program. How many calls it may make is not one of
13
+ * them: call counts are the budgets of its surface.
14
+ */
15
+ export interface SandboxResourceLimits {
12
16
  /** Guest CPU time. Time spent waiting for host operations is not counted. */
13
17
  readonly cpuMs: number;
14
18
  /** Wall-clock time of the whole program, host operations included. */
15
19
  readonly wallMs: number;
16
20
  readonly memoryBytes: number;
17
21
  readonly stackBytes: number;
18
- /** `listSnippets` and `runSnippet` calls: upstream, possibly side-effecting work. */
19
- readonly providerCalls: number;
20
- /** `panel` and `sync` calls: board choices kept in host memory. */
21
- readonly boardOperations: number;
22
22
  /** Maximum length, in UTF-16 code units, of the JSON text of a value crossing the sandbox boundary. */
23
23
  readonly valueLength: number;
24
24
  }
25
- /** Default limits of a Code Mode program. */
26
- export declare const CODE_MODE_LIMITS: SandboxLimits;
27
- /** Maximum source length accepted by the code-mode execute tool. */
25
+ /** Default resource limits of a program. */
26
+ export declare const SANDBOX_RESOURCE_LIMITS: SandboxResourceLimits;
27
+ /** Maximum length of a program's source, in UTF-16 code units. */
28
28
  export declare const maxCodeLength = 16384;
29
29
  /** Serialize data crossing the QuickJS boundary within the supplied limit. */
30
30
  export declare function encodeValue(value: unknown, limit?: number): string;
31
31
  /** The error for a host result that exceeds the JSON limit of the boundary. */
32
32
  export declare function receiptTooLarge(limit: number): CodeModeError;
33
+ /** The error for a host operation that rejected with nothing the program may read. */
34
+ export declare function operationFailed(namespace: string, operation: string): CodeModeError;
35
+ /**
36
+ * The JSON text of a host operation's result, as it crosses into the program.
37
+ * Throws the error the program is given instead when the value is not JSON or
38
+ * exceeds the limit. This is the host's own serialization, outside the engine:
39
+ * a getter that throws, a cycle or even the host's stack running out fails the
40
+ * operation, and is no fault of the engine.
41
+ */
42
+ export declare function encodeHostValue(namespace: string, operation: string, value: unknown, limit: number): string;
43
+ /** The error for a run the sandbox itself could not carry through. */
44
+ export declare function sandboxFailure(): CodeModeError;
45
+ /** A call a program made that never reached the host. */
46
+ export interface UnsentCall {
47
+ readonly operation: string;
48
+ /** The JSON text of the list of its arguments, taken when the call was made. */
49
+ readonly args: string;
50
+ }
51
+ /** The error for a program that finished with calls it did not wait for. */
52
+ export declare function unawaitedOperation(namespace: string, count: number): CodeModeError;
53
+ /** What a program sees of a host's own error. */
54
+ export interface HostErrorShown {
55
+ readonly code: string;
56
+ readonly message: string;
57
+ readonly recovery: string;
58
+ }
59
+ /**
60
+ * How a host's own error travels through the sandbox. The program sees
61
+ * `shown`. The run fails with this carrier, whose context names the call, so
62
+ * the host finds the original error it kept: only the object the sandbox
63
+ * handed to the program maps back to it, never one the program built.
64
+ */
65
+ export declare class HostErrorCarrier extends CodeModeError {
66
+ readonly shown: HostErrorShown;
67
+ constructor(namespace: string, operation: string, call: number, shown: HostErrorShown);
68
+ }
69
+ /**
70
+ * A surface as the driver takes it: each constant is the JSON text of its
71
+ * value. Only JSON text crosses a boundary of the sandbox, never a tree of
72
+ * objects, so no boundary adds a nesting limit of its own.
73
+ */
74
+ export interface EncodedSurface extends Omit<SandboxSurface, "constants"> {
75
+ readonly constants?: Readonly<Record<string, string>>;
76
+ }
33
77
  /** Inputs of {@link runVm}. */
34
78
  export interface RunVmOptions {
35
79
  readonly quickjs: QuickJSWASMModule;
36
80
  readonly code: string;
37
- readonly params: Record<string, unknown>;
38
- readonly limits: SandboxLimits;
39
- /** Perform one host operation. Rejections should be {@link CodeModeError}s. */
40
- call(operation: string, args: unknown[]): Promise<unknown>;
81
+ /** What the program receives. Validated again here. */
82
+ readonly surface: EncodedSurface;
83
+ readonly limits: SandboxResourceLimits;
84
+ /**
85
+ * Perform one host operation. `args` is the JSON text of the list of its
86
+ * arguments, and `id` identifies this call within the run. Resolves to the
87
+ * JSON text of the result, within `limits.valueLength`. Rejections should
88
+ * be {@link CodeModeError}s: one crosses into the program by its fields.
89
+ */
90
+ call(operation: string, args: string, id: number): Promise<string>;
91
+ /**
92
+ * The key of the record that stands for an earlier result: `{ [key]: id }`.
93
+ * Required when the surface uses references. The program never sees it, so
94
+ * it cannot write such a record itself.
95
+ */
96
+ readonly referenceKey?: string;
97
+ /**
98
+ * Called when the engine is left in a state nobody can vouch for (the host's
99
+ * stack overflowed inside it, or it could not release the program). The VM
100
+ * is then abandoned, not disposed: the caller should stop reusing the engine.
101
+ * The run still settles with its own outcome.
102
+ */
103
+ onEngineFault?(): void;
104
+ /**
105
+ * True when the host completed call `id` and its effect cannot be undone. A
106
+ * result of such a call that cannot be handed to the program ends the run:
107
+ * the program is not given a failure it could answer by calling again.
108
+ */
109
+ mustDeliver?(id: number): boolean;
110
+ /**
111
+ * Decide about the calls a program that finished normally did not wait for.
112
+ * They were not sent. Resolve to let the program's value stand; reject with
113
+ * a {@link CodeModeError} to fail the run. Without it the run fails with
114
+ * `UNAWAITED_OPERATION`.
115
+ */
116
+ unsent?(calls: UnsentCall[]): Promise<void>;
41
117
  /** Polled by the QuickJS interrupt handler and between host operations. */
42
118
  isCancelled(): boolean;
43
119
  }
44
120
  /**
45
- * Run a function body in an isolated QuickJS context. Only JSON and the four
46
- * `api` operations cross into the host. Failures are {@link CodeModeError}s.
121
+ * Run a function body in an isolated QuickJS context. Only JSON text and the
122
+ * operations its surface declares cross into the host. Resolves to the JSON
123
+ * text of what the program returned, or to undefined when it returned
124
+ * nothing. Failures are {@link CodeModeError}s.
47
125
  *
48
126
  * @example
49
127
  * ```ts
50
- * const value = await runVm({
51
- * quickjs: await getQuickJS(),
52
- * code: "return api.params.n * 2;",
53
- * params: { n: 21 },
54
- * limits: CODE_MODE_LIMITS,
128
+ * const json = await runVm({
129
+ * quickjs: await newEngine(),
130
+ * code: "return shop.params.n * 2;",
131
+ * surface: { namespace: "shop", constants: { params: '{"n":21}' }, operations: {}, budgets: {} },
132
+ * limits: SANDBOX_RESOURCE_LIMITS,
55
133
  * call: () => Promise.reject(new Error("unused")),
56
134
  * isCancelled: () => false,
57
135
  * });
58
136
  * ```
59
137
  */
60
- export declare function runVm(options: RunVmOptions): Promise<unknown>;
138
+ export declare function runVm(options: RunVmOptions): Promise<string | undefined>;
61
139
  //# sourceMappingURL=sandbox-core.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sandbox-core.d.ts","sourceRoot":"","sources":["../../../src/src/code-mode/sandbox-core.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAsB,KAAK,iBAAiB,EAAS,MAAM,oBAAoB,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,sCAAsC;AACtC,MAAM,WAAW,aAAa;IAC5B,6EAA6E;IAC7E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,qFAAqF;IACrF,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,mEAAmE;IACnE,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,uGAAuG;IACvG,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,6CAA6C;AAC7C,eAAO,MAAM,gBAAgB,EAAE,aAQ7B,CAAC;AAEH,oEAAoE;AACpE,eAAO,MAAM,aAAa,QAAS,CAAC;AAKpC,8EAA8E;AAC9E,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,SAA+B,GAAG,MAAM,CAMxF;AAED,+EAA+E;AAC/E,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAO5D;AAeD,+BAA+B;AAC/B,MAAM,WAAW,YA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