@namzu/sdk 39.0.0 → 40.0.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/CHANGELOG.md +151 -0
- package/dist/connector/mcp/adapter.d.ts.map +1 -1
- package/dist/connector/mcp/adapter.js +20 -6
- package/dist/connector/mcp/adapter.js.map +1 -1
- package/dist/manager/run/persistence.d.ts +8 -0
- package/dist/manager/run/persistence.d.ts.map +1 -1
- package/dist/manager/run/persistence.js +12 -0
- package/dist/manager/run/persistence.js.map +1 -1
- package/dist/public-runtime.d.ts +3 -1
- package/dist/public-runtime.d.ts.map +1 -1
- package/dist/public-runtime.js +5 -1
- package/dist/public-runtime.js.map +1 -1
- package/dist/public-tools.d.ts +11 -0
- package/dist/public-tools.d.ts.map +1 -1
- package/dist/public-tools.js +14 -0
- package/dist/public-tools.js.map +1 -1
- package/dist/registry/tool/execute.d.ts.map +1 -1
- package/dist/registry/tool/execute.js +2 -3
- package/dist/registry/tool/execute.js.map +1 -1
- package/dist/registry/tool/portable.d.ts +65 -0
- package/dist/registry/tool/portable.d.ts.map +1 -0
- package/dist/registry/tool/portable.js +244 -0
- package/dist/registry/tool/portable.js.map +1 -0
- package/dist/registry/tool/schema.d.ts +32 -5
- package/dist/registry/tool/schema.d.ts.map +1 -1
- package/dist/registry/tool/schema.js +35 -9
- package/dist/registry/tool/schema.js.map +1 -1
- package/dist/registry/toolset/catalog.js +8 -8
- package/dist/registry/toolset/catalog.js.map +1 -1
- package/dist/runtime/jobs/awaited-jobs.d.ts +215 -0
- package/dist/runtime/jobs/awaited-jobs.d.ts.map +1 -0
- package/dist/runtime/jobs/awaited-jobs.js +259 -0
- package/dist/runtime/jobs/awaited-jobs.js.map +1 -0
- package/dist/runtime/jobs/registry.d.ts +33 -2
- package/dist/runtime/jobs/registry.d.ts.map +1 -1
- package/dist/runtime/jobs/registry.js +37 -0
- package/dist/runtime/jobs/registry.js.map +1 -1
- package/dist/runtime/query/executor.d.ts +28 -0
- package/dist/runtime/query/executor.d.ts.map +1 -1
- package/dist/runtime/query/executor.js +39 -1
- package/dist/runtime/query/executor.js.map +1 -1
- package/dist/runtime/query/file-evidence-context.d.ts.map +1 -1
- package/dist/runtime/query/file-evidence-context.js +159 -43
- package/dist/runtime/query/file-evidence-context.js.map +1 -1
- package/dist/runtime/query/file-evidence-replay.d.ts +260 -0
- package/dist/runtime/query/file-evidence-replay.d.ts.map +1 -0
- package/dist/runtime/query/file-evidence-replay.js +647 -0
- package/dist/runtime/query/file-evidence-replay.js.map +1 -0
- package/dist/runtime/query/file-evidence-seed.d.ts +50 -0
- package/dist/runtime/query/file-evidence-seed.d.ts.map +1 -0
- package/dist/runtime/query/file-evidence-seed.js +100 -0
- package/dist/runtime/query/file-evidence-seed.js.map +1 -0
- package/dist/runtime/query/index.d.ts.map +1 -1
- package/dist/runtime/query/index.js +94 -2
- package/dist/runtime/query/index.js.map +1 -1
- package/dist/runtime/query/iteration/index.d.ts +87 -9
- package/dist/runtime/query/iteration/index.d.ts.map +1 -1
- package/dist/runtime/query/iteration/index.js +193 -28
- package/dist/runtime/query/iteration/index.js.map +1 -1
- package/dist/runtime/query/iteration/phases/context.d.ts +10 -0
- package/dist/runtime/query/iteration/phases/context.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/context.js.map +1 -1
- package/dist/runtime/query/iteration/phases/tool-review.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/tool-review.js +5 -1
- package/dist/runtime/query/iteration/phases/tool-review.js.map +1 -1
- package/dist/runtime/query/plugin-hooks.d.ts +14 -0
- package/dist/runtime/query/plugin-hooks.d.ts.map +1 -1
- package/dist/runtime/query/plugin-hooks.js +18 -0
- package/dist/runtime/query/plugin-hooks.js.map +1 -1
- package/dist/runtime/query/repeat-call.d.ts +17 -4
- package/dist/runtime/query/repeat-call.d.ts.map +1 -1
- package/dist/runtime/query/repeat-call.js +26 -19
- package/dist/runtime/query/repeat-call.js.map +1 -1
- package/dist/runtime/query/steering.d.ts +11 -1
- package/dist/runtime/query/steering.d.ts.map +1 -1
- package/dist/runtime/query/steering.js +12 -1
- package/dist/runtime/query/steering.js.map +1 -1
- package/dist/runtime/query/tooling.d.ts +2 -0
- package/dist/runtime/query/tooling.d.ts.map +1 -1
- package/dist/runtime/query/tooling.js +1 -0
- package/dist/runtime/query/tooling.js.map +1 -1
- package/dist/scheduler/completion-inbox.d.ts +48 -2
- package/dist/scheduler/completion-inbox.d.ts.map +1 -1
- package/dist/scheduler/completion-inbox.js +102 -10
- package/dist/scheduler/completion-inbox.js.map +1 -1
- package/dist/tools/builtins/bash.d.ts.map +1 -1
- package/dist/tools/builtins/bash.js +4 -10
- package/dist/tools/builtins/bash.js.map +1 -1
- package/dist/tools/builtins/edit-apply.d.ts +126 -0
- package/dist/tools/builtins/edit-apply.d.ts.map +1 -0
- package/dist/tools/builtins/edit-apply.js +360 -0
- package/dist/tools/builtins/edit-apply.js.map +1 -0
- package/dist/tools/builtins/edit.d.ts +143 -1
- package/dist/tools/builtins/edit.d.ts.map +1 -1
- package/dist/tools/builtins/edit.js +37 -219
- package/dist/tools/builtins/edit.js.map +1 -1
- package/dist/tools/builtins/index.d.ts +1 -0
- package/dist/tools/builtins/index.d.ts.map +1 -1
- package/dist/tools/builtins/index.js +9 -3
- package/dist/tools/builtins/index.js.map +1 -1
- package/dist/tools/builtins/job.js +1 -1
- package/dist/tools/builtins/job.js.map +1 -1
- package/dist/tools/builtins/read-file.d.ts +2 -2
- package/dist/tools/builtins/read-file.d.ts.map +1 -1
- package/dist/tools/builtins/read-file.js +50 -65
- package/dist/tools/builtins/read-file.js.map +1 -1
- package/dist/tools/builtins/read-render.d.ts +56 -0
- package/dist/tools/builtins/read-render.d.ts.map +1 -0
- package/dist/tools/builtins/read-render.js +73 -0
- package/dist/tools/builtins/read-render.js.map +1 -0
- package/dist/tools/builtins/wait-for-job-bounds.d.ts +67 -0
- package/dist/tools/builtins/wait-for-job-bounds.d.ts.map +1 -0
- package/dist/tools/builtins/wait-for-job-bounds.js +108 -0
- package/dist/tools/builtins/wait-for-job-bounds.js.map +1 -0
- package/dist/tools/builtins/wait-for-job.d.ts +6 -0
- package/dist/tools/builtins/wait-for-job.d.ts.map +1 -0
- package/dist/tools/builtins/wait-for-job.js +162 -0
- package/dist/tools/builtins/wait-for-job.js.map +1 -0
- package/dist/tools/builtins/write-file.js +5 -0
- package/dist/tools/builtins/write-file.js.map +1 -1
- package/dist/tools/coordinator/index.d.ts.map +1 -1
- package/dist/tools/coordinator/index.js +1 -7
- package/dist/tools/coordinator/index.js.map +1 -1
- package/dist/tools/file-read-tracker.d.ts.map +1 -1
- package/dist/tools/file-read-tracker.js +88 -10
- package/dist/tools/file-read-tracker.js.map +1 -1
- package/dist/types/message/index.d.ts +1 -1
- package/dist/types/message/index.d.ts.map +1 -1
- package/dist/types/message/index.js +2 -0
- package/dist/types/message/index.js.map +1 -1
- package/dist/types/run/entity.d.ts +13 -0
- package/dist/types/run/entity.d.ts.map +1 -1
- package/dist/types/sandbox/index.d.ts +15 -14
- package/dist/types/sandbox/index.d.ts.map +1 -1
- package/dist/types/sandbox/index.js.map +1 -1
- package/dist/types/tool/index.d.ts +109 -0
- package/dist/types/tool/index.d.ts.map +1 -1
- package/dist/types/tool/index.js.map +1 -1
- package/dist/utils/env.d.ts +19 -0
- package/dist/utils/env.d.ts.map +1 -0
- package/dist/utils/env.js +25 -0
- package/dist/utils/env.js.map +1 -0
- package/package.json +1 -1
- package/src/connector/mcp/adapter.ts +20 -6
- package/src/manager/run/persistence.ts +12 -0
- package/src/public-runtime.ts +9 -1
- package/src/public-tools.ts +18 -0
- package/src/registry/tool/execute.ts +2 -4
- package/src/registry/tool/portable.ts +264 -0
- package/src/registry/tool/schema.ts +38 -8
- package/src/registry/toolset/catalog.ts +8 -9
- package/src/runtime/jobs/awaited-jobs.ts +271 -0
- package/src/runtime/jobs/registry.ts +50 -0
- package/src/runtime/query/executor.ts +49 -1
- package/src/runtime/query/file-evidence-context.ts +190 -46
- package/src/runtime/query/file-evidence-replay.ts +776 -0
- package/src/runtime/query/file-evidence-seed.ts +126 -0
- package/src/runtime/query/index.ts +104 -2
- package/src/runtime/query/iteration/index.ts +202 -28
- package/src/runtime/query/iteration/phases/context.ts +10 -0
- package/src/runtime/query/iteration/phases/tool-review.ts +4 -0
- package/src/runtime/query/plugin-hooks.ts +20 -0
- package/src/runtime/query/repeat-call.ts +28 -18
- package/src/runtime/query/steering.ts +11 -0
- package/src/runtime/query/tooling.ts +3 -0
- package/src/scheduler/completion-inbox.ts +105 -9
- package/src/tools/builtins/bash.ts +4 -10
- package/src/tools/builtins/edit-apply.ts +456 -0
- package/src/tools/builtins/edit.ts +39 -270
- package/src/tools/builtins/index.ts +9 -3
- package/src/tools/builtins/job.ts +1 -1
- package/src/tools/builtins/read-file.ts +56 -77
- package/src/tools/builtins/read-render.ts +104 -0
- package/src/tools/builtins/wait-for-job-bounds.ts +179 -0
- package/src/tools/builtins/wait-for-job.ts +184 -0
- package/src/tools/builtins/write-file.ts +5 -0
- package/src/tools/coordinator/index.ts +1 -7
- package/src/tools/file-read-tracker.ts +85 -7
- package/src/types/message/index.ts +2 -0
- package/src/types/run/entity.ts +14 -0
- package/src/types/sandbox/index.ts +15 -14
- package/src/types/tool/index.ts +104 -0
- package/src/utils/env.ts +23 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portable.js","sourceRoot":"","sources":["../../../src/registry/tool/portable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAUH,MAAM,SAAS,GACd,0KAA0K,CAAA;AAE3K;;;;;;;;;GASG;AACH,MAAM,wBAAwB,GAAgC,IAAI,GAAG,CAAC;IACrE,yEAAyE;IACzE,yEAAyE;IACzE,2EAA2E;IAC3E,yEAAyE;IACzE,CAAC,iBAAiB,EAAE,SAAS,CAAC;IAC9B,2EAA2E;IAC3E,0EAA0E;IAC1E,uEAAuE;IACvE,0EAA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IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;YAAE,SAAQ;QAC3B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;QACb,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACjB,CAAC;IACD,OAAO,GAAG,CAAA;AACX,CAAC"}
|
|
@@ -10,14 +10,41 @@ import type { z } from 'zod';
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function renderToolSchema(schema: z.ZodType): Record<string, unknown>;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Make the rendering something every wire reads the same way.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
15
|
+
* Two jobs, both at this one boundary:
|
|
16
|
+
*
|
|
17
|
+
* 1. **Strip what no provider reads.** `$schema` rides in the tools block,
|
|
18
|
+
* which renders at position 0 inside the prompt-cache prefix, once per
|
|
19
|
+
* tool, per request, forever — and it asserts a dialect, which is the one
|
|
20
|
+
* thing a schema that has to work on every wire must not do.
|
|
21
|
+
*
|
|
22
|
+
* 2. **Leave the intersection of draft-07 and 2020-12 intact.** `renderToolSchema`
|
|
23
|
+
* emits draft-07, where a tuple is `items: [a, b]`; a 2020-12 wire reads
|
|
24
|
+
* that as invalid and rejects the whole request, taking every other tool in
|
|
25
|
+
* the call down with it. Five of the ten drivers forward the rendering
|
|
26
|
+
* verbatim, so the only place that can be fixed once is here. See
|
|
27
|
+
* `portable.ts` for the measurement that put it here.
|
|
19
28
|
*/
|
|
20
29
|
export declare function normalizeToolSchema(json: Record<string, unknown>): Record<string, unknown>;
|
|
30
|
+
/**
|
|
31
|
+
* The schema a tool actually puts on the wire.
|
|
32
|
+
*
|
|
33
|
+
* A tool may carry an explicit `modelInputSchema` — hand-written JSON Schema,
|
|
34
|
+
* not rendered from Zod — and that schema reaches providers through the same
|
|
35
|
+
* `tools` block as a rendered one. It therefore has to clear the same bar, and
|
|
36
|
+
* the two call sites that build that block (`ToolRegistry.toLLMTools` and the
|
|
37
|
+
* toolset catalog) had each spelled the fallback out on their own. Two paths
|
|
38
|
+
* that agree today are two paths that can disagree tomorrow.
|
|
39
|
+
*
|
|
40
|
+
* The clone is deliberate: a caller may edit the parameters it is handed —
|
|
41
|
+
* `hostModelSchema` does — and the definition's own object must not move
|
|
42
|
+
* underneath the next call.
|
|
43
|
+
*/
|
|
44
|
+
export declare function toolWireSchema(tool: {
|
|
45
|
+
readonly modelInputSchema?: Record<string, unknown>;
|
|
46
|
+
readonly inputSchema: z.ZodType;
|
|
47
|
+
}): Record<string, unknown>;
|
|
21
48
|
/**
|
|
22
49
|
* Clear the render cache. Tests only — a schema object's identity is the
|
|
23
50
|
* cache key, so production has nothing to invalidate.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/registry/tool/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/registry/tool/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA6B5B;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAY3E;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAE1F;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE;IACpC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACnD,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,OAAO,CAAA;CAC/B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAG1B;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,CAExE"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
2
|
+
import { toPortableToolSchema } from './portable.js';
|
|
2
3
|
/**
|
|
3
4
|
* The single place a tool's Zod schema becomes the JSON Schema that goes on
|
|
4
5
|
* the wire.
|
|
@@ -45,18 +46,43 @@ export function renderToolSchema(schema) {
|
|
|
45
46
|
return normalized;
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
48
|
-
*
|
|
49
|
+
* Make the rendering something every wire reads the same way.
|
|
49
50
|
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
51
|
+
* Two jobs, both at this one boundary:
|
|
52
|
+
*
|
|
53
|
+
* 1. **Strip what no provider reads.** `$schema` rides in the tools block,
|
|
54
|
+
* which renders at position 0 inside the prompt-cache prefix, once per
|
|
55
|
+
* tool, per request, forever — and it asserts a dialect, which is the one
|
|
56
|
+
* thing a schema that has to work on every wire must not do.
|
|
57
|
+
*
|
|
58
|
+
* 2. **Leave the intersection of draft-07 and 2020-12 intact.** `renderToolSchema`
|
|
59
|
+
* emits draft-07, where a tuple is `items: [a, b]`; a 2020-12 wire reads
|
|
60
|
+
* that as invalid and rejects the whole request, taking every other tool in
|
|
61
|
+
* the call down with it. Five of the ten drivers forward the rendering
|
|
62
|
+
* verbatim, so the only place that can be fixed once is here. See
|
|
63
|
+
* `portable.ts` for the measurement that put it here.
|
|
54
64
|
*/
|
|
55
65
|
export function normalizeToolSchema(json) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
66
|
+
return toPortableToolSchema(json);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* The schema a tool actually puts on the wire.
|
|
70
|
+
*
|
|
71
|
+
* A tool may carry an explicit `modelInputSchema` — hand-written JSON Schema,
|
|
72
|
+
* not rendered from Zod — and that schema reaches providers through the same
|
|
73
|
+
* `tools` block as a rendered one. It therefore has to clear the same bar, and
|
|
74
|
+
* the two call sites that build that block (`ToolRegistry.toLLMTools` and the
|
|
75
|
+
* toolset catalog) had each spelled the fallback out on their own. Two paths
|
|
76
|
+
* that agree today are two paths that can disagree tomorrow.
|
|
77
|
+
*
|
|
78
|
+
* The clone is deliberate: a caller may edit the parameters it is handed —
|
|
79
|
+
* `hostModelSchema` does — and the definition's own object must not move
|
|
80
|
+
* underneath the next call.
|
|
81
|
+
*/
|
|
82
|
+
export function toolWireSchema(tool) {
|
|
83
|
+
if (tool.modelInputSchema)
|
|
84
|
+
return toPortableToolSchema(structuredClone(tool.modelInputSchema));
|
|
85
|
+
return renderToolSchema(tool.inputSchema);
|
|
60
86
|
}
|
|
61
87
|
/**
|
|
62
88
|
* Clear the render cache. Tests only — a schema object's identity is the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/registry/tool/schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,KAAK,GAAG,IAAI,OAAO,EAAmC,CAAA;AAE5D;;;;;;;;GAQG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAAiB;IACjD,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;IAChC,IAAI,MAAM;QAAE,OAAO,MAAM,CAAA;IAEzB,MAAM,IAAI,GAAG,eAAe,CAAC,MAAM,EAAE;QACpC,MAAM,EAAE,aAAa;QACrB,YAAY,EAAE,MAAM;KACpB,CAA4B,CAAA;IAE7B,MAAM,UAAU,GAAG,UAAU,CAAC,mBAAmB,CAA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G;AACH,MAAM,UAAU,oBAAoB,CAAC,OAA6B;IACjE,KAAK,MAAM,MAAM,IAAI,OAAO;QAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;AACnD,CAAC;AAED,SAAS,UAAU,CAAI,KAAQ;IAC9B,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAA;IACvF,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,KAAgC,CAAC,EAAE,CAAC;QACjE,UAAU,CAAE,KAAiC,CAAC,GAAG,CAAC,CAAC,CAAA;IACpD,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AAC5B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { toolWireSchema } from '../tool/schema.js';
|
|
2
2
|
const DEFAULT_HOST_SOURCE = {
|
|
3
3
|
id: 'host-tools',
|
|
4
4
|
kind: 'host_tool',
|
|
@@ -179,16 +179,16 @@ function toolDefinitionToLLMTool(definition) {
|
|
|
179
179
|
function: {
|
|
180
180
|
name: definition.name,
|
|
181
181
|
description: definition.description,
|
|
182
|
-
// Through `
|
|
182
|
+
// Through `toolWireSchema`, not a second inline conversion. The
|
|
183
183
|
// options were already identical, so this was not a different
|
|
184
184
|
// rendering — it was the same rendering without the guarantees:
|
|
185
185
|
// no `$schema` stripping (that key rides in the tools block, which
|
|
186
|
-
// sits at position 0 inside the prompt-cache prefix), no
|
|
187
|
-
// and no freeze. Two paths that agree
|
|
188
|
-
// disagree tomorrow, and a tool reaching
|
|
189
|
-
// rather than the registry is not a
|
|
190
|
-
|
|
191
|
-
|
|
186
|
+
// sits at position 0 inside the prompt-cache prefix), no portability
|
|
187
|
+
// normalisation, no memoization, and no freeze. Two paths that agree
|
|
188
|
+
// today are two paths that can disagree tomorrow, and a tool reaching
|
|
189
|
+
// the wire through the catalog rather than the registry is not a
|
|
190
|
+
// different tool.
|
|
191
|
+
parameters: toolWireSchema(definition),
|
|
192
192
|
},
|
|
193
193
|
};
|
|
194
194
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../../src/registry/toolset/catalog.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../../src/registry/toolset/catalog.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAclD,MAAM,mBAAmB,GAAe;IACvC,EAAE,EAAE,YAAY;IAChB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,qCAAqC;CAClD,CAAA;AAED,MAAM,oBAAoB,GAAsB;IAC/C,EAAE,EAAE,YAAY;IAChB,QAAQ,EAAE,mBAAmB,CAAC,EAAE;IAChC,IAAI,EAAE,YAAY;IAClB,aAAa,EAAE;QACd,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,OAAO;KAChB;CACD,CAAA;AAED,MAAM,OAAO,WAAW;IACf,OAAO,GAAG,IAAI,GAAG,EAAsB,CAAA;IACvC,QAAQ,GAAG,IAAI,GAAG,EAA6B,CAAA;IAC/C,KAAK,GAAG,IAAI,GAAG,EAA4B,CAAA;IAEnD,cAAc,CAAC,MAAkB;QAChC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAA;IACpC,CAAC;IAED,eAAe,CAAC,OAA0B;QACzC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;YACzC,MAAM,IAAI,KAAK,CAAC,YAAY,OAAO,CAAC,EAAE,gCAAgC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAA;QAC3F,CAAC;QACD,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K,CAAC,OAAO,CAAC,WAAW,IAAI,EAAE,EAAE,CAAC,WAAW,EAAE,CAAA;QAE5F,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;YACvB,KAAK,IAAI,EAAE,CAAA;YACX,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QACpB,CAAC;aAAM,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YACpC,KAAK,IAAI,CAAC,CAAA;YACV,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QACpB,CAAC;QACD,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAChC,KAAK,IAAI,CAAC,CAAA;YACV,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;QAC3B,CAAC;QACD,IAAI,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAC/B,KAAK,IAAI,CAAC,CAAA;YACV,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;QACtB,CAAC;QACD,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAChC,KAAK,IAAI,CAAC,CAAA;YACV,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;QACvB,CAAC;IACF,CAAC;IAED,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,KAAK,GAAG,CAAC;QAAE,KAAK,IAAI,CAAC,CAAA;IAExD,OAAO;QACN,KAAK;QACL,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;KACrB,CAAA;AACF,CAAC"}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import type { BackgroundJob, BackgroundJobRegistry } from './registry.js';
|
|
2
|
+
/**
|
|
3
|
+
* What this adapter needs from a registry: the jobs' exits, and one job's
|
|
4
|
+
* current status. Structural rather than the class, for the reason
|
|
5
|
+
* `BackgroundJobRegistryRef` is: the kernel passes the real registry, and a
|
|
6
|
+
* test that needs two exits and nothing else should not have to spawn
|
|
7
|
+
* processes to produce them.
|
|
8
|
+
*/
|
|
9
|
+
export type AwaitedJobSource = Pick<BackgroundJobRegistry, 'get' | 'onExit'>;
|
|
10
|
+
/** Exits and the text that puts them in front of the model. See {@link AwaitedJobs.takeDelivery}. */
|
|
11
|
+
export interface DeliverableJobExits {
|
|
12
|
+
/** The notice text, already queued by the exit that produced it. */
|
|
13
|
+
readonly text: string;
|
|
14
|
+
/** The exits that text accounts for, taken from the record. */
|
|
15
|
+
readonly exits: readonly BackgroundJob[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Background jobs the model SAID it is waiting on.
|
|
19
|
+
*
|
|
20
|
+
* `CompletionInbox` gives a run a bounded, zero-token wait for a delegated
|
|
21
|
+
* task nobody is blocked on, and `holdForOutstandingWork` spends it: the
|
|
22
|
+
* model stops calling tools, the loop races the inbox against operator input,
|
|
23
|
+
* and the run only settles once the result is in the transcript or the grace
|
|
24
|
+
* is gone. Background shell jobs had none of it — so a model that started a
|
|
25
|
+
* job and then had nothing left to do improvised, and the recorded run
|
|
26
|
+
* (research/resident/results/2026-09-14-exploration-policy-terra-tui.json)
|
|
27
|
+
* shows what that costs: six `job read` polls, three `job list` polls and a
|
|
28
|
+
* `sleep 30`, each one a full context resend.
|
|
29
|
+
*
|
|
30
|
+
* This is the same three-method shape the hold already races —
|
|
31
|
+
* {@link hasPendingWork}, {@link waitForArrival}, {@link drain} — over the
|
|
32
|
+
* job registry instead of the task gateway.
|
|
33
|
+
*
|
|
34
|
+
* **Intent is stated, never inferred.** A job is only outstanding here once
|
|
35
|
+
* `wait_for_job` named it (see {@link expect}); job existence means nothing.
|
|
36
|
+
* That is the same distinction `CompletionInbox.expect` draws for a
|
|
37
|
+
* background task, and it is what keeps a dev server or a file watcher —
|
|
38
|
+
* started precisely so it would keep running — from holding every run of the
|
|
39
|
+
* session open for its grace period. The model that wants to wait says so.
|
|
40
|
+
*/
|
|
41
|
+
export declare class AwaitedJobs {
|
|
42
|
+
private readonly source;
|
|
43
|
+
/** Whose jobs these are — the run or the session the jobs are bound to. */
|
|
44
|
+
private readonly owner;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the exit notice this run queues for the model is still
|
|
47
|
+
* unread. A second opinion on {@link noticesDelivered}, and it can
|
|
48
|
+
* only ever narrow what counts as pending.
|
|
49
|
+
*
|
|
50
|
+
* An exit is work only until the model has seen it, and this adapter is
|
|
51
|
+
* not what shows it: the text rides out on the next tool result
|
|
52
|
+
* (`attachNotice`), which is what normally happens, long before any
|
|
53
|
+
* hold opens. {@link noticesDelivered} is how that delivery says so,
|
|
54
|
+
* and it is the per-job record — the entry goes, so nothing can count
|
|
55
|
+
* it again.
|
|
56
|
+
*
|
|
57
|
+
* This stays because the two answer different questions. That one is
|
|
58
|
+
* reported BY a delivery site, so it is only as good as the sites that
|
|
59
|
+
* remember to call it; this reads the channel itself, and a channel
|
|
60
|
+
* with nothing queued cannot have news in it whatever the record says.
|
|
61
|
+
* It is also safe in one direction only: it can suppress a hold, never
|
|
62
|
+
* open one, so a stale `true` here is not a turn the model gets to
|
|
63
|
+
* spend — which is the failure this pair exists to prevent.
|
|
64
|
+
*
|
|
65
|
+
* `CompletionInbox.claim` draws the same line on the task side. It can
|
|
66
|
+
* name the task, because the call that delivers a completion knows
|
|
67
|
+
* which one it delivered; a notice is text by the time it reaches the
|
|
68
|
+
* tool result, so this asks the channel instead.
|
|
69
|
+
*
|
|
70
|
+
* Absent means nothing else consumes the notices, so a recorded exit is
|
|
71
|
+
* unread by definition.
|
|
72
|
+
*/
|
|
73
|
+
private readonly unreadNotice?;
|
|
74
|
+
/** Awaited and still running. Nothing else can hold a run open. */
|
|
75
|
+
private readonly outstanding;
|
|
76
|
+
/** Exits since the last {@link drain}. */
|
|
77
|
+
private exits;
|
|
78
|
+
private readonly arrivals;
|
|
79
|
+
private detach?;
|
|
80
|
+
constructor(source: AwaitedJobSource,
|
|
81
|
+
/** Whose jobs these are — the run or the session the jobs are bound to. */
|
|
82
|
+
owner: string,
|
|
83
|
+
/**
|
|
84
|
+
* Whether the exit notice this run queues for the model is still
|
|
85
|
+
* unread. A second opinion on {@link noticesDelivered}, and it can
|
|
86
|
+
* only ever narrow what counts as pending.
|
|
87
|
+
*
|
|
88
|
+
* An exit is work only until the model has seen it, and this adapter is
|
|
89
|
+
* not what shows it: the text rides out on the next tool result
|
|
90
|
+
* (`attachNotice`), which is what normally happens, long before any
|
|
91
|
+
* hold opens. {@link noticesDelivered} is how that delivery says so,
|
|
92
|
+
* and it is the per-job record — the entry goes, so nothing can count
|
|
93
|
+
* it again.
|
|
94
|
+
*
|
|
95
|
+
* This stays because the two answer different questions. That one is
|
|
96
|
+
* reported BY a delivery site, so it is only as good as the sites that
|
|
97
|
+
* remember to call it; this reads the channel itself, and a channel
|
|
98
|
+
* with nothing queued cannot have news in it whatever the record says.
|
|
99
|
+
* It is also safe in one direction only: it can suppress a hold, never
|
|
100
|
+
* open one, so a stale `true` here is not a turn the model gets to
|
|
101
|
+
* spend — which is the failure this pair exists to prevent.
|
|
102
|
+
*
|
|
103
|
+
* `CompletionInbox.claim` draws the same line on the task side. It can
|
|
104
|
+
* name the task, because the call that delivers a completion knows
|
|
105
|
+
* which one it delivered; a notice is text by the time it reaches the
|
|
106
|
+
* tool result, so this asks the channel instead.
|
|
107
|
+
*
|
|
108
|
+
* Absent means nothing else consumes the notices, so a recorded exit is
|
|
109
|
+
* unread by definition.
|
|
110
|
+
*/
|
|
111
|
+
unreadNotice?: (() => boolean) | undefined);
|
|
112
|
+
/**
|
|
113
|
+
* Start listening.
|
|
114
|
+
*
|
|
115
|
+
* Returns the detach, and attaching twice is a no-op rather than a second
|
|
116
|
+
* subscription — the same rule `CompletionInbox.attach` follows, for the
|
|
117
|
+
* same reason: two subscriptions would record each exit twice.
|
|
118
|
+
*/
|
|
119
|
+
attach(): () => void;
|
|
120
|
+
/**
|
|
121
|
+
* Say that the model is waiting on this job's exit.
|
|
122
|
+
*
|
|
123
|
+
* Called by `wait_for_job`, and by nothing else: the wait is the whole
|
|
124
|
+
* signal. A job that has ALREADY stopped is not recorded, because the
|
|
125
|
+
* call that marks it is the same call that returns its output — holding
|
|
126
|
+
* the run open afterwards would buy a turn to read a result the model has
|
|
127
|
+
* just read. `CompletionInbox.expect` skips an already-claimed task for
|
|
128
|
+
* the same reason.
|
|
129
|
+
*
|
|
130
|
+
* An id the registry does not know is ignored rather than raised: the
|
|
131
|
+
* caller is about to fail on it anyway, and a marking call is not the
|
|
132
|
+
* place that decides what an unknown job means.
|
|
133
|
+
*/
|
|
134
|
+
expect(id: string): void;
|
|
135
|
+
/**
|
|
136
|
+
* Recorded exits the model has not been shown yet.
|
|
137
|
+
*
|
|
138
|
+
* Both halves of the same question: {@link noticesDelivered} drops the
|
|
139
|
+
* entry when its notice goes out, and the `unreadNotice` constructor
|
|
140
|
+
* argument asks the channel whether anything is still queued. A queued
|
|
141
|
+
* exit whose notice has already been delivered is history, not pending
|
|
142
|
+
* work, and an exit nobody awaited is not this adapter's news to carry.
|
|
143
|
+
*/
|
|
144
|
+
private get unreadExits();
|
|
145
|
+
/** Whether an awaited job is still running, or one has exited unread. */
|
|
146
|
+
get hasPendingWork(): boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Wait for the next awaited job's exit, deadline or abort, whichever comes
|
|
149
|
+
* first. Aborting releases only this waiter; the jobs are untouched.
|
|
150
|
+
*
|
|
151
|
+
* Bounded by the caller, exactly as `CompletionInbox.waitForArrival` is: a
|
|
152
|
+
* job that never exits — a dev server someone did await — must not keep a
|
|
153
|
+
* run open, and only the run's own budget knows how long is long enough.
|
|
154
|
+
*/
|
|
155
|
+
waitForArrival(timeoutMs: number, signal?: AbortSignal): Promise<void>;
|
|
156
|
+
/**
|
|
157
|
+
* Say that the queued exit notices have been put in front of the model.
|
|
158
|
+
*
|
|
159
|
+
* Called by the tool-result delivery (`attachNotice`), which is where an
|
|
160
|
+
* exit normally reaches the model; {@link takeDelivery} does the same for
|
|
161
|
+
* the hold's own path by taking the entries as it delivers them.
|
|
162
|
+
*
|
|
163
|
+
* Every recorded exit goes, and that is per-job rather than a blunt
|
|
164
|
+
* clear: the channel hands over ALL its queued text at once, and an exit
|
|
165
|
+
* is recorded here in the same synchronous announcement that queues its
|
|
166
|
+
* notice, so the text just delivered is exactly the notices of the exits
|
|
167
|
+
* in hand. An exit recorded after this call keeps its entry, because its
|
|
168
|
+
* notice was queued after that text was taken.
|
|
169
|
+
*
|
|
170
|
+
* Without it the entry outlived the delivery, and the channel-level gate
|
|
171
|
+
* above was the only thing standing between a read exit and a model turn
|
|
172
|
+
* — a gate that reopens the moment ANY later job, awaited or not, queues
|
|
173
|
+
* a notice of its own.
|
|
174
|
+
*/
|
|
175
|
+
noticesDelivered(): void;
|
|
176
|
+
/**
|
|
177
|
+
* Take the recorded exits together with the text that delivers them, or
|
|
178
|
+
* take neither.
|
|
179
|
+
*
|
|
180
|
+
* The pairing is the whole method. Draining the exits first and then
|
|
181
|
+
* asking for the notice loses them on the branch that finds none: the
|
|
182
|
+
* records are gone, no text was written, and the exit the run held itself
|
|
183
|
+
* open for is delivered by nobody. So {@link drain} is not called until
|
|
184
|
+
* the delivery is certain, and an exit this could not deliver stays in
|
|
185
|
+
* hand for the next one.
|
|
186
|
+
*/
|
|
187
|
+
takeDelivery(notice: () => string | undefined): DeliverableJobExits | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* Take every exit recorded since the last call, leaving none behind.
|
|
190
|
+
*
|
|
191
|
+
* Draining rather than peeking, for the reason `CompletionInbox.drain`
|
|
192
|
+
* gives: an exit that stays queued after being delivered is a duplicate
|
|
193
|
+
* waiting to happen. Callers that are delivering want
|
|
194
|
+
* {@link takeDelivery}, which will not take them without the notice that
|
|
195
|
+
* accounts for them.
|
|
196
|
+
*/
|
|
197
|
+
drain(): readonly BackgroundJob[];
|
|
198
|
+
/**
|
|
199
|
+
* Awaited jobs still running.
|
|
200
|
+
*
|
|
201
|
+
* Read when a run ends, so it can say which wait it walked away from.
|
|
202
|
+
* Nothing here is stopped by being read — the ids are a statement, and a
|
|
203
|
+
* job's lifetime belongs to whoever owns it.
|
|
204
|
+
*/
|
|
205
|
+
get outstandingJobIds(): readonly string[];
|
|
206
|
+
/**
|
|
207
|
+
* Stop listening. Safe to call more than once.
|
|
208
|
+
*
|
|
209
|
+
* A run that ends without this leaves its listener on a registry the host
|
|
210
|
+
* reuses across runs — the leak `CompletionInbox.close` exists to prevent,
|
|
211
|
+
* on the other subsystem.
|
|
212
|
+
*/
|
|
213
|
+
close(): void;
|
|
214
|
+
}
|
|
215
|
+
//# sourceMappingURL=awaited-jobs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"awaited-jobs.d.ts","sourceRoot":"","sources":["../../../src/runtime/jobs/awaited-jobs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAEzE;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,qBAAqB,EAAE,KAAK,GAAG,QAAQ,CAAC,CAAA;AAE5E,qGAAqG;AACrG,MAAM,WAAW,mBAAmB;IACnC,oEAAoE;IACpE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,+DAA+D;IAC/D,QAAQ,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,CAAA;CACxC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,WAAW;IAStB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,2EAA2E;IAC3E,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC;IAvC/B,mEAAmE;IACnE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAoB;IAChD,0CAA0C;IAC1C,OAAO,CAAC,KAAK,CAAsB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