@archmax-ai/harness 0.8.0 → 1.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/README.md +58 -14
- package/dist/agent.d.ts +4 -4
- package/dist/agent.js +4 -4
- package/dist/assembly/compose.d.ts +5 -24
- package/dist/assembly/compose.js +40 -41
- package/dist/assembly/compose.js.map +1 -1
- package/dist/assembly/delegation-registry.js +3 -14
- package/dist/assembly/delegation-registry.js.map +1 -1
- package/dist/assembly/index.d.ts +18 -15
- package/dist/assembly/index.js +50 -32
- package/dist/assembly/index.js.map +1 -1
- package/dist/assembly/plain.js +1 -2
- package/dist/assembly/plain.js.map +1 -1
- package/dist/authoring-skill/archmax-harness/README.md +5 -5
- package/dist/authoring-skill/archmax-harness/SKILL.md +72 -30
- package/dist/authoring-skill/archmax-harness/references/backend-integration.md +35 -23
- package/dist/authoring-skill/archmax-harness/references/cases.md +44 -10
- package/dist/authoring-skill/archmax-harness/references/{hook-and-test-scripts.md → code-state-and-test-scripts.md} +617 -313
- package/dist/authoring-skill/archmax-harness/references/code-states-and-scripts.md +115 -0
- package/dist/authoring-skill/archmax-harness/references/diagnostics.md +40 -7
- package/dist/authoring-skill/archmax-harness/references/wiring.md +19 -10
- package/dist/authoring-skill/archmax-harness/references/workflow-schema.md +416 -276
- package/dist/authoring-skill/archmax-harness/references/workflow-yaml.md +161 -62
- package/dist/cli/state-flow.d.ts +1 -1
- package/dist/cli/state-flow.js +18 -28
- package/dist/cli/state-flow.js.map +1 -1
- package/dist/cli/turn.d.ts +1 -1
- package/dist/cli/turn.js +2 -3
- package/dist/cli/turn.js.map +1 -1
- package/dist/core/clock.d.ts +26 -0
- package/dist/core/clock.js +64 -0
- package/dist/core/clock.js.map +1 -0
- package/dist/core/code-description.d.ts +3 -3
- package/dist/core/code-description.js +3 -3
- package/dist/core/deepagents.d.ts +5 -5
- package/dist/core/deepagents.js +4 -4
- package/dist/core/events.d.ts +23 -42
- package/dist/core/events.js +21 -24
- package/dist/core/events.js.map +1 -1
- package/dist/core/message-readers.d.ts +22 -2
- package/dist/core/message-readers.js +31 -0
- package/dist/core/message-readers.js.map +1 -1
- package/dist/core/messages.d.ts +1 -23
- package/dist/core/messages.js +2 -35
- package/dist/core/messages.js.map +1 -1
- package/dist/core/mounts.js +3 -3
- package/dist/core/platform-prompt.generated.js +1 -1
- package/dist/core/platform-prompt.generated.js.map +1 -1
- package/dist/core/session-zone.d.ts +1 -1
- package/dist/core/session-zone.js +1 -1
- package/dist/core/workspace-context.d.ts +1 -1
- package/dist/core/workspace.d.ts +1 -1
- package/dist/core/workspace.js +1 -1
- package/dist/core/zones.d.ts +4 -4
- package/dist/core/zones.js +5 -5
- package/dist/core/zones.js.map +1 -1
- package/dist/env.d.ts +9 -9
- package/dist/index.d.ts +3 -7
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/kernel/kernel.d.ts +31 -61
- package/dist/kernel/kernel.js +57 -114
- package/dist/kernel/kernel.js.map +1 -1
- package/dist/machine/allow.d.ts +17 -2
- package/dist/machine/allow.js +16 -6
- package/dist/machine/allow.js.map +1 -1
- package/dist/machine/lint-spec.js +68 -12
- package/dist/machine/lint-spec.js.map +1 -1
- package/dist/machine/machine.d.ts +39 -16
- package/dist/machine/machine.js +72 -49
- package/dist/machine/machine.js.map +1 -1
- package/dist/machine/spec-schema.d.ts +34 -179
- package/dist/machine/spec-schema.js +93 -106
- package/dist/machine/spec-schema.js.map +1 -1
- package/dist/machine/tool-names.d.ts +34 -10
- package/dist/machine/tool-names.js +41 -10
- package/dist/machine/tool-names.js.map +1 -1
- package/dist/machine/tool-paths.d.ts +6 -0
- package/dist/machine/tool-paths.js +10 -0
- package/dist/machine/tool-paths.js.map +1 -1
- package/dist/machine/types.d.ts +14 -38
- package/dist/machine/types.js.map +1 -1
- package/dist/machine/validate-spec.d.ts +1 -1
- package/dist/machine/variables.d.ts +2 -0
- package/dist/machine/variables.js.map +1 -1
- package/dist/public/sandbox.d.ts +62 -66
- package/dist/public/sandbox.js +22 -23
- package/dist/public/sandbox.js.map +1 -1
- package/dist/public/spec.d.ts +12 -19
- package/dist/public/spec.js +11 -19
- package/dist/public/spec.js.map +1 -1
- package/dist/runtime/contract.d.ts +11 -12
- package/dist/runtime/contract.js +16 -16
- package/dist/runtime/contract.js.map +1 -1
- package/dist/sandbox/assets/parts/code-state.js +17 -0
- package/dist/sandbox/executor.d.ts +25 -7
- package/dist/sandbox/executor.js +56 -47
- package/dist/sandbox/executor.js.map +1 -1
- package/dist/sandbox/imports.d.ts +10 -10
- package/dist/sandbox/imports.js +11 -11
- package/dist/sandbox/imports.js.map +1 -1
- package/dist/sandbox/prelude.d.ts +5 -6
- package/dist/sandbox/prelude.js +38 -35
- package/dist/sandbox/prelude.js.map +1 -1
- package/dist/sandbox/ptc-gateway.d.ts +19 -18
- package/dist/sandbox/ptc-gateway.js +26 -22
- package/dist/sandbox/ptc-gateway.js.map +1 -1
- package/dist/sessions/operations.js +4 -5
- package/dist/sessions/operations.js.map +1 -1
- package/dist/sessions/resume.d.ts +12 -7
- package/dist/sessions/resume.js +12 -9
- package/dist/sessions/resume.js.map +1 -1
- package/dist/sessions/summary.d.ts +1 -1
- package/dist/testing/assertions.js +9 -4
- package/dist/testing/assertions.js.map +1 -1
- package/dist/testing/case-document.d.ts +2 -0
- package/dist/testing/case-document.js.map +1 -1
- package/dist/testing/case-schema.d.ts +1 -1
- package/dist/testing/case-schema.js +17 -1
- package/dist/testing/case-schema.js.map +1 -1
- package/dist/testing/driver.d.ts +4 -0
- package/dist/testing/driver.js +22 -3
- package/dist/testing/driver.js.map +1 -1
- package/dist/testing/grade.js +3 -3
- package/dist/testing/grade.js.map +1 -1
- package/dist/testing/interpreter.d.ts +2 -2
- package/dist/testing/interpreter.js +1 -0
- package/dist/testing/interpreter.js.map +1 -1
- package/dist/testing/runner.d.ts +2 -2
- package/dist/validate/validate.d.ts +1 -1
- package/dist/validate/validate.js +39 -70
- package/dist/validate/validate.js.map +1 -1
- package/dist/workflow/automated-controls.d.ts +63 -0
- package/dist/workflow/automated-controls.js +158 -0
- package/dist/workflow/automated-controls.js.map +1 -0
- package/dist/workflow/automated.d.ts +112 -0
- package/dist/workflow/automated.js +163 -0
- package/dist/workflow/automated.js.map +1 -0
- package/dist/workflow/checkpointer.d.ts +7 -0
- package/dist/workflow/checkpointer.js +28 -0
- package/dist/workflow/checkpointer.js.map +1 -1
- package/dist/workflow/code-state.d.ts +46 -0
- package/dist/workflow/code-state.js +26 -0
- package/dist/workflow/code-state.js.map +1 -0
- package/dist/workflow/control-tools.d.ts +54 -23
- package/dist/workflow/control-tools.js +121 -77
- package/dist/workflow/control-tools.js.map +1 -1
- package/dist/workflow/file-values.d.ts +4 -4
- package/dist/workflow/file-values.js +1 -1
- package/dist/workflow/file-values.js.map +1 -1
- package/dist/workflow/governance.d.ts +13 -22
- package/dist/workflow/governance.js +51 -87
- package/dist/workflow/governance.js.map +1 -1
- package/dist/workflow/grader-state.d.ts +55 -0
- package/dist/workflow/grader-state.js +182 -0
- package/dist/workflow/grader-state.js.map +1 -0
- package/dist/workflow/history.d.ts +11 -0
- package/dist/workflow/history.js +64 -0
- package/dist/workflow/history.js.map +1 -0
- package/dist/workflow/middleware.d.ts +14 -17
- package/dist/workflow/middleware.js +106 -74
- package/dist/workflow/middleware.js.map +1 -1
- package/dist/workflow/move-events.d.ts +21 -0
- package/dist/workflow/move-events.js +20 -0
- package/dist/workflow/move-events.js.map +1 -0
- package/dist/workflow/parks.d.ts +9 -2
- package/dist/workflow/parks.js +16 -8
- package/dist/workflow/parks.js.map +1 -1
- package/dist/workflow/paths.d.ts +9 -9
- package/dist/workflow/paths.js +19 -19
- package/dist/workflow/paths.js.map +1 -1
- package/dist/workflow/render-prompt.d.ts +7 -5
- package/dist/workflow/render-prompt.js +22 -37
- package/dist/workflow/render-prompt.js.map +1 -1
- package/dist/workflow/signature-checks.d.ts +2 -2
- package/dist/workflow/snapshot.js +5 -29
- package/dist/workflow/snapshot.js.map +1 -1
- package/dist/workflow/state.d.ts +19 -6
- package/dist/workflow/state.js +24 -8
- package/dist/workflow/state.js.map +1 -1
- package/dist/workflow/sub-workflow.d.ts +3 -3
- package/dist/workflow/tool-service.d.ts +1 -9
- package/dist/workflow/tool-service.js +21 -24
- package/dist/workflow/tool-service.js.map +1 -1
- package/dist/workflow/turn-boundary.d.ts +2 -2
- package/dist/workflow/turn-boundary.js +10 -7
- package/dist/workflow/turn-boundary.js.map +1 -1
- package/dist/workflow/turn-runner.js +30 -2
- package/dist/workflow/turn-runner.js.map +1 -1
- package/package.json +1 -1
- package/skills/archmax-harness/README.md +5 -5
- package/skills/archmax-harness/SKILL.md +72 -30
- package/skills/archmax-harness/references/backend-integration.md +35 -23
- package/skills/archmax-harness/references/cases.md +44 -10
- package/skills/archmax-harness/references/{hook-and-test-scripts.md → code-state-and-test-scripts.md} +617 -313
- package/skills/archmax-harness/references/code-states-and-scripts.md +115 -0
- package/skills/archmax-harness/references/diagnostics.md +40 -7
- package/skills/archmax-harness/references/wiring.md +19 -10
- package/skills/archmax-harness/references/workflow-schema.md +416 -276
- package/skills/archmax-harness/references/workflow-yaml.md +161 -62
- package/dist/authoring-skill/archmax-harness/references/hooks-and-scripts.md +0 -88
- package/dist/lifecycle/hook-shape.d.ts +0 -44
- package/dist/lifecycle/hook-shape.js +0 -66
- package/dist/lifecycle/hook-shape.js.map +0 -1
- package/dist/lifecycle/runner.d.ts +0 -183
- package/dist/lifecycle/runner.js +0 -373
- package/dist/lifecycle/runner.js.map +0 -1
- package/dist/lifecycle/transcript.d.ts +0 -27
- package/dist/lifecycle/transcript.js +0 -43
- package/dist/lifecycle/transcript.js.map +0 -1
- package/dist/rubrics/rubrics.d.ts +0 -135
- package/dist/rubrics/rubrics.js +0 -145
- package/dist/rubrics/rubrics.js.map +0 -1
- package/dist/sandbox/assets/parts/core.js +0 -22
- package/dist/sandbox/assets/parts/lifecycle-hook.js +0 -47
- package/dist/sandbox/bridge.d.ts +0 -16
- package/dist/sandbox/bridge.js +0 -95
- package/dist/sandbox/bridge.js.map +0 -1
- package/skills/archmax-harness/references/hooks-and-scripts.md +0 -88
|
@@ -33,70 +33,12 @@ export declare const mountGrantEntrySchema: z.ZodUnion<readonly [z.ZodString, z.
|
|
|
33
33
|
*
|
|
34
34
|
* One loose, named slot for host data the runtime never reads (an authoring UI's
|
|
35
35
|
* canvas state, a node's position) — rather than a `.catchall()`, which would
|
|
36
|
-
* switch off the strictness this file exists for. Accepted at
|
|
37
|
-
* the spec root
|
|
36
|
+
* switch off the strictness this file exists for. Accepted at two positions:
|
|
37
|
+
* the spec root and a state.
|
|
38
38
|
*/
|
|
39
39
|
export declare const specMetadataSchema: z.ZodObject<{}, z.core.$loose>;
|
|
40
|
-
/**
|
|
41
|
-
|
|
42
|
-
*
|
|
43
|
-
* A grading rubric: the standard a state's exit is measured against, declared
|
|
44
|
-
* **inline on the hook that applies it**. `instructions` is the only required
|
|
45
|
-
* key — the same word a state uses for the prose telling a model what to do.
|
|
46
|
-
*
|
|
47
|
-
* There is deliberately no name: a rubric is not a first-order item a hook
|
|
48
|
-
* points at, it is part of the state's own declaration, so reading the state
|
|
49
|
-
* tells you the whole standard without a lookup. The cost is duplication when
|
|
50
|
-
* two states want the same grader, which is accepted: a state is legible on its
|
|
51
|
-
* own, and nothing silently changes what one state grades against by editing
|
|
52
|
-
* something elsewhere. There is no `title` either (nothing routes to a rubric)
|
|
53
|
-
* and no `description`; a host label goes in `metadata`.
|
|
54
|
-
*/
|
|
55
|
-
export declare const rubricDeclarationSchema: z.ZodObject<{
|
|
56
|
-
instructions: z.ZodString;
|
|
57
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
58
|
-
model: z.ZodOptional<z.ZodString>;
|
|
59
|
-
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
60
|
-
}, z.core.$strict>;
|
|
61
|
-
/**
|
|
62
|
-
* One lifecycle hook. The built-in kinds are strict; the custom-kind branch (a
|
|
63
|
-
* record of strings, for an executor registered at assembly) is fenced so it
|
|
64
|
-
* cannot rescue a malformed built-in — `{ script: <bad path> }` must fail the
|
|
65
|
-
* script branch and stay failed.
|
|
66
|
-
*/
|
|
67
|
-
export declare const hookSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
68
|
-
script: z.ZodString;
|
|
69
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
70
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
71
|
-
rubric: z.ZodObject<{
|
|
72
|
-
instructions: z.ZodString;
|
|
73
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
74
|
-
model: z.ZodOptional<z.ZodString>;
|
|
75
|
-
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
76
|
-
}, z.core.$strict>;
|
|
77
|
-
}, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
78
|
-
/** @see HookSpec */
|
|
79
|
-
export declare const hookSpecSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
80
|
-
script: z.ZodString;
|
|
81
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
82
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
83
|
-
rubric: z.ZodObject<{
|
|
84
|
-
instructions: z.ZodString;
|
|
85
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
86
|
-
model: z.ZodOptional<z.ZodString>;
|
|
87
|
-
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
88
|
-
}, z.core.$strict>;
|
|
89
|
-
}, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodString>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
90
|
-
script: z.ZodString;
|
|
91
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
92
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
93
|
-
rubric: z.ZodObject<{
|
|
94
|
-
instructions: z.ZodString;
|
|
95
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
96
|
-
model: z.ZodOptional<z.ZodString>;
|
|
97
|
-
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
98
|
-
}, z.core.$strict>;
|
|
99
|
-
}, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodString>]>>]>;
|
|
40
|
+
/** @see MachineState.script — the file a code state runs. */
|
|
41
|
+
export declare const codeScriptPathSchema: z.ZodString;
|
|
100
42
|
/** @see TransitionType */
|
|
101
43
|
export declare const transitionTypeSchema: z.ZodEnum<{
|
|
102
44
|
approve: "approve";
|
|
@@ -222,7 +164,9 @@ export declare const mountsBlockSchema: z.ZodObject<{
|
|
|
222
164
|
/** @see StateType */
|
|
223
165
|
export declare const stateTypeSchema: z.ZodEnum<{
|
|
224
166
|
human: "human";
|
|
167
|
+
code: "code";
|
|
225
168
|
agent: "agent";
|
|
169
|
+
grader: "grader";
|
|
226
170
|
}>;
|
|
227
171
|
/**
|
|
228
172
|
* @see SignatureEntryDeclaration
|
|
@@ -239,10 +183,10 @@ export declare const signatureEntryObjectSchema: z.ZodObject<{
|
|
|
239
183
|
boolean: "boolean";
|
|
240
184
|
object: "object";
|
|
241
185
|
file: "file";
|
|
242
|
-
date: "date";
|
|
243
|
-
array: "array";
|
|
244
186
|
integer: "integer";
|
|
187
|
+
date: "date";
|
|
245
188
|
"date-time": "date-time";
|
|
189
|
+
array: "array";
|
|
246
190
|
}>>;
|
|
247
191
|
description: z.ZodOptional<z.ZodString>;
|
|
248
192
|
}, z.core.$strict>;
|
|
@@ -261,10 +205,10 @@ export declare const signatureEntrySchema: z.ZodUnion<readonly [z.ZodString, z.Z
|
|
|
261
205
|
boolean: "boolean";
|
|
262
206
|
object: "object";
|
|
263
207
|
file: "file";
|
|
264
|
-
date: "date";
|
|
265
|
-
array: "array";
|
|
266
208
|
integer: "integer";
|
|
209
|
+
date: "date";
|
|
267
210
|
"date-time": "date-time";
|
|
211
|
+
array: "array";
|
|
268
212
|
}>>;
|
|
269
213
|
description: z.ZodOptional<z.ZodString>;
|
|
270
214
|
}, z.core.$strict>]>;
|
|
@@ -288,10 +232,10 @@ export declare const triggerDeclarationSchema: z.ZodObject<{
|
|
|
288
232
|
boolean: "boolean";
|
|
289
233
|
object: "object";
|
|
290
234
|
file: "file";
|
|
291
|
-
date: "date";
|
|
292
|
-
array: "array";
|
|
293
235
|
integer: "integer";
|
|
236
|
+
date: "date";
|
|
294
237
|
"date-time": "date-time";
|
|
238
|
+
array: "array";
|
|
295
239
|
}>>;
|
|
296
240
|
description: z.ZodOptional<z.ZodString>;
|
|
297
241
|
}, z.core.$strict>]>>>;
|
|
@@ -303,10 +247,10 @@ export declare const triggerDeclarationSchema: z.ZodObject<{
|
|
|
303
247
|
boolean: "boolean";
|
|
304
248
|
object: "object";
|
|
305
249
|
file: "file";
|
|
306
|
-
date: "date";
|
|
307
|
-
array: "array";
|
|
308
250
|
integer: "integer";
|
|
251
|
+
date: "date";
|
|
309
252
|
"date-time": "date-time";
|
|
253
|
+
array: "array";
|
|
310
254
|
}>>;
|
|
311
255
|
description: z.ZodOptional<z.ZodString>;
|
|
312
256
|
}, z.core.$strict>]>>>;
|
|
@@ -330,10 +274,10 @@ export declare const stateTriggersSchema: z.ZodRecord<z.ZodString, z.ZodNullable
|
|
|
330
274
|
boolean: "boolean";
|
|
331
275
|
object: "object";
|
|
332
276
|
file: "file";
|
|
333
|
-
date: "date";
|
|
334
|
-
array: "array";
|
|
335
277
|
integer: "integer";
|
|
278
|
+
date: "date";
|
|
336
279
|
"date-time": "date-time";
|
|
280
|
+
array: "array";
|
|
337
281
|
}>>;
|
|
338
282
|
description: z.ZodOptional<z.ZodString>;
|
|
339
283
|
}, z.core.$strict>]>>>;
|
|
@@ -345,10 +289,10 @@ export declare const stateTriggersSchema: z.ZodRecord<z.ZodString, z.ZodNullable
|
|
|
345
289
|
boolean: "boolean";
|
|
346
290
|
object: "object";
|
|
347
291
|
file: "file";
|
|
348
|
-
date: "date";
|
|
349
|
-
array: "array";
|
|
350
292
|
integer: "integer";
|
|
293
|
+
date: "date";
|
|
351
294
|
"date-time": "date-time";
|
|
295
|
+
array: "array";
|
|
352
296
|
}>>;
|
|
353
297
|
description: z.ZodOptional<z.ZodString>;
|
|
354
298
|
}, z.core.$strict>]>>>;
|
|
@@ -357,7 +301,9 @@ export declare const stateTriggersSchema: z.ZodRecord<z.ZodString, z.ZodNullable
|
|
|
357
301
|
export declare const machineStateSchema: z.ZodObject<{
|
|
358
302
|
type: z.ZodOptional<z.ZodEnum<{
|
|
359
303
|
human: "human";
|
|
304
|
+
code: "code";
|
|
360
305
|
agent: "agent";
|
|
306
|
+
grader: "grader";
|
|
361
307
|
}>>;
|
|
362
308
|
title: z.ZodOptional<z.ZodString>;
|
|
363
309
|
instructions: z.ZodOptional<z.ZodString>;
|
|
@@ -377,10 +323,10 @@ export declare const machineStateSchema: z.ZodObject<{
|
|
|
377
323
|
boolean: "boolean";
|
|
378
324
|
object: "object";
|
|
379
325
|
file: "file";
|
|
380
|
-
date: "date";
|
|
381
|
-
array: "array";
|
|
382
326
|
integer: "integer";
|
|
327
|
+
date: "date";
|
|
383
328
|
"date-time": "date-time";
|
|
329
|
+
array: "array";
|
|
384
330
|
}>>;
|
|
385
331
|
description: z.ZodOptional<z.ZodString>;
|
|
386
332
|
}, z.core.$strict>]>>>;
|
|
@@ -392,56 +338,15 @@ export declare const machineStateSchema: z.ZodObject<{
|
|
|
392
338
|
boolean: "boolean";
|
|
393
339
|
object: "object";
|
|
394
340
|
file: "file";
|
|
395
|
-
date: "date";
|
|
396
|
-
array: "array";
|
|
397
341
|
integer: "integer";
|
|
342
|
+
date: "date";
|
|
398
343
|
"date-time": "date-time";
|
|
344
|
+
array: "array";
|
|
399
345
|
}>>;
|
|
400
346
|
description: z.ZodOptional<z.ZodString>;
|
|
401
347
|
}, z.core.$strict>]>>>;
|
|
402
348
|
}, z.core.$loose>>>>;
|
|
403
|
-
|
|
404
|
-
script: z.ZodString;
|
|
405
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
406
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
407
|
-
rubric: z.ZodObject<{
|
|
408
|
-
instructions: z.ZodString;
|
|
409
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
410
|
-
model: z.ZodOptional<z.ZodString>;
|
|
411
|
-
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
412
|
-
}, z.core.$strict>;
|
|
413
|
-
}, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodString>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
414
|
-
script: z.ZodString;
|
|
415
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
416
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
417
|
-
rubric: z.ZodObject<{
|
|
418
|
-
instructions: z.ZodString;
|
|
419
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
420
|
-
model: z.ZodOptional<z.ZodString>;
|
|
421
|
-
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
422
|
-
}, z.core.$strict>;
|
|
423
|
-
}, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodString>]>>]>>;
|
|
424
|
-
after: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
425
|
-
script: z.ZodString;
|
|
426
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
427
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
428
|
-
rubric: z.ZodObject<{
|
|
429
|
-
instructions: z.ZodString;
|
|
430
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
431
|
-
model: z.ZodOptional<z.ZodString>;
|
|
432
|
-
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
433
|
-
}, z.core.$strict>;
|
|
434
|
-
}, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodString>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
435
|
-
script: z.ZodString;
|
|
436
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
437
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
438
|
-
rubric: z.ZodObject<{
|
|
439
|
-
instructions: z.ZodString;
|
|
440
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
441
|
-
model: z.ZodOptional<z.ZodString>;
|
|
442
|
-
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
443
|
-
}, z.core.$strict>;
|
|
444
|
-
}, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodString>]>>]>>;
|
|
349
|
+
script: z.ZodOptional<z.ZodString>;
|
|
445
350
|
budget: z.ZodOptional<z.ZodObject<{
|
|
446
351
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
447
352
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -480,6 +385,7 @@ export declare const machineStateSchema: z.ZodObject<{
|
|
|
480
385
|
forbid: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
481
386
|
}, z.core.$strict>>;
|
|
482
387
|
requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
388
|
+
locks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
483
389
|
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
484
390
|
transitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
485
391
|
to: z.ZodString;
|
|
@@ -587,10 +493,6 @@ export declare const runtimeMetadataSchema: z.ZodObject<{
|
|
|
587
493
|
engine: z.ZodOptional<z.ZodString>;
|
|
588
494
|
version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
589
495
|
}, z.core.$strict>;
|
|
590
|
-
/** @see SpecExtensions */
|
|
591
|
-
export declare const specExtensionsSchema: z.ZodObject<{
|
|
592
|
-
hooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
593
|
-
}, z.core.$strict>;
|
|
594
496
|
/** The whole of `workflow.yaml`. @see MachineSpec */
|
|
595
497
|
export declare const machineSpecSchema: z.ZodObject<{
|
|
596
498
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -652,14 +554,13 @@ export declare const machineSpecSchema: z.ZodObject<{
|
|
|
652
554
|
}, z.core.$strict>>;
|
|
653
555
|
}, z.core.$strict>>;
|
|
654
556
|
}, z.core.$strict>>;
|
|
655
|
-
extensions: z.ZodOptional<z.ZodObject<{
|
|
656
|
-
hooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
657
|
-
}, z.core.$strict>>;
|
|
658
557
|
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
659
558
|
states: z.ZodRecord<z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
660
559
|
type: z.ZodOptional<z.ZodEnum<{
|
|
661
560
|
human: "human";
|
|
561
|
+
code: "code";
|
|
662
562
|
agent: "agent";
|
|
563
|
+
grader: "grader";
|
|
663
564
|
}>>;
|
|
664
565
|
title: z.ZodOptional<z.ZodString>;
|
|
665
566
|
instructions: z.ZodOptional<z.ZodString>;
|
|
@@ -679,10 +580,10 @@ export declare const machineSpecSchema: z.ZodObject<{
|
|
|
679
580
|
boolean: "boolean";
|
|
680
581
|
object: "object";
|
|
681
582
|
file: "file";
|
|
682
|
-
date: "date";
|
|
683
|
-
array: "array";
|
|
684
583
|
integer: "integer";
|
|
584
|
+
date: "date";
|
|
685
585
|
"date-time": "date-time";
|
|
586
|
+
array: "array";
|
|
686
587
|
}>>;
|
|
687
588
|
description: z.ZodOptional<z.ZodString>;
|
|
688
589
|
}, z.core.$strict>]>>>;
|
|
@@ -694,56 +595,15 @@ export declare const machineSpecSchema: z.ZodObject<{
|
|
|
694
595
|
boolean: "boolean";
|
|
695
596
|
object: "object";
|
|
696
597
|
file: "file";
|
|
697
|
-
date: "date";
|
|
698
|
-
array: "array";
|
|
699
598
|
integer: "integer";
|
|
599
|
+
date: "date";
|
|
700
600
|
"date-time": "date-time";
|
|
601
|
+
array: "array";
|
|
701
602
|
}>>;
|
|
702
603
|
description: z.ZodOptional<z.ZodString>;
|
|
703
604
|
}, z.core.$strict>]>>>;
|
|
704
605
|
}, z.core.$loose>>>>;
|
|
705
|
-
|
|
706
|
-
script: z.ZodString;
|
|
707
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
708
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
709
|
-
rubric: z.ZodObject<{
|
|
710
|
-
instructions: z.ZodString;
|
|
711
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
712
|
-
model: z.ZodOptional<z.ZodString>;
|
|
713
|
-
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
714
|
-
}, z.core.$strict>;
|
|
715
|
-
}, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodString>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
716
|
-
script: z.ZodString;
|
|
717
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
718
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
719
|
-
rubric: z.ZodObject<{
|
|
720
|
-
instructions: z.ZodString;
|
|
721
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
722
|
-
model: z.ZodOptional<z.ZodString>;
|
|
723
|
-
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
724
|
-
}, z.core.$strict>;
|
|
725
|
-
}, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodString>]>>]>>;
|
|
726
|
-
after: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
727
|
-
script: z.ZodString;
|
|
728
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
729
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
730
|
-
rubric: z.ZodObject<{
|
|
731
|
-
instructions: z.ZodString;
|
|
732
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
733
|
-
model: z.ZodOptional<z.ZodString>;
|
|
734
|
-
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
735
|
-
}, z.core.$strict>;
|
|
736
|
-
}, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodString>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
737
|
-
script: z.ZodString;
|
|
738
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
739
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
740
|
-
rubric: z.ZodObject<{
|
|
741
|
-
instructions: z.ZodString;
|
|
742
|
-
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
743
|
-
model: z.ZodOptional<z.ZodString>;
|
|
744
|
-
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
745
|
-
}, z.core.$strict>;
|
|
746
|
-
}, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodString>]>>]>>;
|
|
606
|
+
script: z.ZodOptional<z.ZodString>;
|
|
747
607
|
budget: z.ZodOptional<z.ZodObject<{
|
|
748
608
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
749
609
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -782,6 +642,7 @@ export declare const machineSpecSchema: z.ZodObject<{
|
|
|
782
642
|
forbid: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
783
643
|
}, z.core.$strict>>;
|
|
784
644
|
requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
645
|
+
locks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
785
646
|
metadata: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
786
647
|
transitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
787
648
|
to: z.ZodString;
|
|
@@ -805,12 +666,6 @@ export interface SpecSchemaIssue {
|
|
|
805
666
|
path: string;
|
|
806
667
|
message: string;
|
|
807
668
|
}
|
|
808
|
-
/**
|
|
809
|
-
* The rules that need the whole document and that the runtime cannot run
|
|
810
|
-
* without: every reference resolves, the start wiring is unambiguous, guards
|
|
811
|
-
* reference variables by a readable name. Runs after the shape has been
|
|
812
|
-
* accepted. Defects the runtime tolerates are `lint-spec.ts` errors instead.
|
|
813
|
-
*/
|
|
814
669
|
export declare function refineSpec(spec: Spec): SpecSchemaIssue[];
|
|
815
670
|
/**
|
|
816
671
|
* Parse a spec through the schema, then the document-level rules, returning
|