@h-rig/contracts 0.0.6-alpha.131 → 0.0.6-alpha.133
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/dist/index.cjs +2206 -1386
- package/dist/index.mjs +2206 -1386
- package/dist/src/config.d.ts +156 -0
- package/dist/src/config.js +1566 -178
- package/dist/src/drift.d.ts +28 -0
- package/dist/src/drift.js +69 -0
- package/dist/src/engine.js +108 -0
- package/dist/src/graph.d.ts +284 -0
- package/dist/src/graph.js +121 -1
- package/dist/src/help-catalog.js +78 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/index.js +2206 -1386
- package/dist/src/kernel.d.ts +238 -0
- package/dist/src/kernel.js +284 -0
- package/dist/src/planning.d.ts +64 -0
- package/dist/src/planning.js +90 -0
- package/dist/src/plugin-hooks.js +318 -76
- package/dist/src/plugin.d.ts +92 -0
- package/dist/src/plugin.js +308 -64
- package/dist/src/rig.js +108 -0
- package/dist/src/rollups.d.ts +41 -0
- package/dist/src/rollups.js +70 -0
- package/dist/src/run-journal.d.ts +22 -21
- package/dist/src/run-journal.js +3 -1
- package/dist/src/run-session-journal.js +4 -2
- package/dist/src/stage.d.ts +245 -0
- package/dist/src/stage.js +169 -0
- package/dist/src/supervisor-journal.d.ts +205 -0
- package/dist/src/supervisor-journal.js +1246 -0
- package/dist/src/task-source.d.ts +9 -0
- package/dist/src/ws.js +108 -0
- package/package.json +45 -1
package/dist/src/config.d.ts
CHANGED
|
@@ -98,6 +98,29 @@ export declare const RigServerConfig: Schema.Struct<{
|
|
|
98
98
|
readonly checkout: Schema.optional<Schema.String>;
|
|
99
99
|
}>;
|
|
100
100
|
export type RigServerConfig = typeof RigServerConfig.Type;
|
|
101
|
+
export declare const RuntimeSupervisorConfig: Schema.Struct<{
|
|
102
|
+
readonly concurrency: Schema.optional<Schema.Int>;
|
|
103
|
+
readonly pauseOnAttention: Schema.optional<Schema.Boolean>;
|
|
104
|
+
readonly stopWhen: Schema.optional<Schema.$Array<Schema.Literals<readonly ["all-done", "all-human-blocked", "max-tasks", "budget", "judge-stop", "operator-stop", "source-error"]>>>;
|
|
105
|
+
readonly maxTasks: Schema.optional<Schema.Int>;
|
|
106
|
+
readonly selectionPolicy: Schema.optional<Schema.Literals<readonly ["rank", "max-unblock", "blocking-only"]>>;
|
|
107
|
+
readonly failFast: Schema.optional<Schema.Boolean>;
|
|
108
|
+
}>;
|
|
109
|
+
export type RuntimeSupervisorConfig = typeof RuntimeSupervisorConfig.Type;
|
|
110
|
+
export declare const RuntimeDriftConfig: Schema.Struct<{
|
|
111
|
+
readonly enabled: Schema.optional<Schema.Boolean>;
|
|
112
|
+
readonly failOnDrift: Schema.optional<Schema.Boolean>;
|
|
113
|
+
readonly docsGlobs: Schema.optional<Schema.$Array<Schema.String>>;
|
|
114
|
+
readonly ignoreGlobs: Schema.optional<Schema.$Array<Schema.String>>;
|
|
115
|
+
readonly judge: Schema.optional<Schema.Boolean>;
|
|
116
|
+
}>;
|
|
117
|
+
export type RuntimeDriftConfig = typeof RuntimeDriftConfig.Type;
|
|
118
|
+
export declare const RuntimePlanningConfig: Schema.Struct<{
|
|
119
|
+
readonly architectRole: Schema.optional<Schema.String>;
|
|
120
|
+
readonly autoResolveFromCode: Schema.optional<Schema.Boolean>;
|
|
121
|
+
readonly materialize: Schema.optional<Schema.Literals<readonly ["dry-run", "create"]>>;
|
|
122
|
+
}>;
|
|
123
|
+
export type RuntimePlanningConfig = typeof RuntimePlanningConfig.Type;
|
|
101
124
|
export declare const RuntimeConfig: Schema.Struct<{
|
|
102
125
|
readonly agentRoles: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
103
126
|
readonly timeouts: Schema.optional<Schema.$Record<Schema.String, Schema.Number>>;
|
|
@@ -115,6 +138,41 @@ export declare const RuntimeConfig: Schema.Struct<{
|
|
|
115
138
|
readonly sshTarget: Schema.optional<Schema.String>;
|
|
116
139
|
readonly checkout: Schema.optional<Schema.String>;
|
|
117
140
|
}>>;
|
|
141
|
+
readonly capabilities: Schema.optional<Schema.Struct<{
|
|
142
|
+
readonly capabilityPrecedence: Schema.optional<Schema.$Record<Schema.String, Schema.$Array<Schema.Trim>>>;
|
|
143
|
+
readonly protectedStageGrants: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
144
|
+
readonly stageId: Schema.Trim;
|
|
145
|
+
readonly pluginId: Schema.Trim;
|
|
146
|
+
readonly operations: Schema.$Array<Schema.Literals<readonly ["remove", "replace"]>>;
|
|
147
|
+
readonly grantedBy: Schema.optional<Schema.Trim>;
|
|
148
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
149
|
+
}>>>;
|
|
150
|
+
readonly kernelReplacementGrants: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
151
|
+
readonly pluginId: Schema.Trim;
|
|
152
|
+
readonly grantedBy: Schema.optional<Schema.Trim>;
|
|
153
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
154
|
+
}>>>;
|
|
155
|
+
}>>;
|
|
156
|
+
readonly supervisor: Schema.optional<Schema.Struct<{
|
|
157
|
+
readonly concurrency: Schema.optional<Schema.Int>;
|
|
158
|
+
readonly pauseOnAttention: Schema.optional<Schema.Boolean>;
|
|
159
|
+
readonly stopWhen: Schema.optional<Schema.$Array<Schema.Literals<readonly ["all-done", "all-human-blocked", "max-tasks", "budget", "judge-stop", "operator-stop", "source-error"]>>>;
|
|
160
|
+
readonly maxTasks: Schema.optional<Schema.Int>;
|
|
161
|
+
readonly selectionPolicy: Schema.optional<Schema.Literals<readonly ["rank", "max-unblock", "blocking-only"]>>;
|
|
162
|
+
readonly failFast: Schema.optional<Schema.Boolean>;
|
|
163
|
+
}>>;
|
|
164
|
+
readonly drift: Schema.optional<Schema.Struct<{
|
|
165
|
+
readonly enabled: Schema.optional<Schema.Boolean>;
|
|
166
|
+
readonly failOnDrift: Schema.optional<Schema.Boolean>;
|
|
167
|
+
readonly docsGlobs: Schema.optional<Schema.$Array<Schema.String>>;
|
|
168
|
+
readonly ignoreGlobs: Schema.optional<Schema.$Array<Schema.String>>;
|
|
169
|
+
readonly judge: Schema.optional<Schema.Boolean>;
|
|
170
|
+
}>>;
|
|
171
|
+
readonly planning: Schema.optional<Schema.Struct<{
|
|
172
|
+
readonly architectRole: Schema.optional<Schema.String>;
|
|
173
|
+
readonly autoResolveFromCode: Schema.optional<Schema.Boolean>;
|
|
174
|
+
readonly materialize: Schema.optional<Schema.Literals<readonly ["dry-run", "create"]>>;
|
|
175
|
+
}>>;
|
|
118
176
|
}>;
|
|
119
177
|
export type RuntimeConfig = typeof RuntimeConfig.Type;
|
|
120
178
|
export declare const ProjectIdentity: Schema.Struct<{
|
|
@@ -201,6 +259,12 @@ export declare const RigConfig: Schema.Struct<{
|
|
|
201
259
|
readonly plugins: Schema.$Array<Schema.Struct<{
|
|
202
260
|
readonly name: Schema.String;
|
|
203
261
|
readonly version: Schema.String;
|
|
262
|
+
readonly provides: Schema.optional<Schema.$Array<Schema.Literals<readonly ["kernel", "journal", "stage-runner", "transport", "loader-policy"]>>>;
|
|
263
|
+
readonly requires: Schema.optional<Schema.$Array<Schema.Literals<readonly ["kernel", "journal", "stage-runner", "transport", "loader-policy"]>>>;
|
|
264
|
+
readonly replaces: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
265
|
+
readonly capability: Schema.Literals<readonly ["kernel", "journal", "stage-runner", "transport", "loader-policy"]>;
|
|
266
|
+
readonly providerPluginId: Schema.Trim;
|
|
267
|
+
}>, Schema.Trim]>>>;
|
|
204
268
|
readonly contributes: Schema.optional<Schema.Struct<{
|
|
205
269
|
readonly validators: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
206
270
|
readonly id: Schema.String;
|
|
@@ -256,6 +320,48 @@ export declare const RigConfig: Schema.Struct<{
|
|
|
256
320
|
readonly command: Schema.String;
|
|
257
321
|
readonly description: Schema.optional<Schema.String>;
|
|
258
322
|
}>>>;
|
|
323
|
+
readonly stageMutations: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
324
|
+
readonly op: Schema.Literal<"insert">;
|
|
325
|
+
readonly stage: Schema.Struct<{
|
|
326
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
327
|
+
readonly kind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
328
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
329
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
330
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
331
|
+
readonly protected: Schema.withDecodingDefault<Schema.Boolean>;
|
|
332
|
+
}>;
|
|
333
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
334
|
+
}>, Schema.Struct<{
|
|
335
|
+
readonly op: Schema.Literal<"remove">;
|
|
336
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
337
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
338
|
+
}>, Schema.Struct<{
|
|
339
|
+
readonly op: Schema.Literal<"replace">;
|
|
340
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
341
|
+
readonly stage: Schema.Struct<{
|
|
342
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
343
|
+
readonly kind: Schema.Literals<readonly ["transform", "gate", "observe"]>;
|
|
344
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
345
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
346
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
347
|
+
readonly protected: Schema.withDecodingDefault<Schema.Boolean>;
|
|
348
|
+
}>;
|
|
349
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
350
|
+
}>, Schema.Struct<{
|
|
351
|
+
readonly op: Schema.Literal<"wrap">;
|
|
352
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
353
|
+
readonly around: Schema.Struct<{
|
|
354
|
+
readonly id: Schema.Trim;
|
|
355
|
+
readonly priority: Schema.withDecodingDefault<Schema.Number>;
|
|
356
|
+
}>;
|
|
357
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
358
|
+
}>, Schema.Struct<{
|
|
359
|
+
readonly op: Schema.Literal<"reorder">;
|
|
360
|
+
readonly id: Schema.brand<Schema.Trim, "StageId">;
|
|
361
|
+
readonly before: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
362
|
+
readonly after: Schema.optional<Schema.$Array<Schema.brand<Schema.Trim, "StageId">>>;
|
|
363
|
+
readonly contributedBy: Schema.optional<Schema.Trim>;
|
|
364
|
+
}>]>>>;
|
|
259
365
|
}>>;
|
|
260
366
|
}>>;
|
|
261
367
|
readonly taskSource: Schema.Struct<{
|
|
@@ -301,6 +407,41 @@ export declare const RigConfig: Schema.Struct<{
|
|
|
301
407
|
readonly sshTarget: Schema.optional<Schema.String>;
|
|
302
408
|
readonly checkout: Schema.optional<Schema.String>;
|
|
303
409
|
}>>;
|
|
410
|
+
readonly capabilities: Schema.optional<Schema.Struct<{
|
|
411
|
+
readonly capabilityPrecedence: Schema.optional<Schema.$Record<Schema.String, Schema.$Array<Schema.Trim>>>;
|
|
412
|
+
readonly protectedStageGrants: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
413
|
+
readonly stageId: Schema.Trim;
|
|
414
|
+
readonly pluginId: Schema.Trim;
|
|
415
|
+
readonly operations: Schema.$Array<Schema.Literals<readonly ["remove", "replace"]>>;
|
|
416
|
+
readonly grantedBy: Schema.optional<Schema.Trim>;
|
|
417
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
418
|
+
}>>>;
|
|
419
|
+
readonly kernelReplacementGrants: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
420
|
+
readonly pluginId: Schema.Trim;
|
|
421
|
+
readonly grantedBy: Schema.optional<Schema.Trim>;
|
|
422
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
423
|
+
}>>>;
|
|
424
|
+
}>>;
|
|
425
|
+
readonly supervisor: Schema.optional<Schema.Struct<{
|
|
426
|
+
readonly concurrency: Schema.optional<Schema.Int>;
|
|
427
|
+
readonly pauseOnAttention: Schema.optional<Schema.Boolean>;
|
|
428
|
+
readonly stopWhen: Schema.optional<Schema.$Array<Schema.Literals<readonly ["all-done", "all-human-blocked", "max-tasks", "budget", "judge-stop", "operator-stop", "source-error"]>>>;
|
|
429
|
+
readonly maxTasks: Schema.optional<Schema.Int>;
|
|
430
|
+
readonly selectionPolicy: Schema.optional<Schema.Literals<readonly ["rank", "max-unblock", "blocking-only"]>>;
|
|
431
|
+
readonly failFast: Schema.optional<Schema.Boolean>;
|
|
432
|
+
}>>;
|
|
433
|
+
readonly drift: Schema.optional<Schema.Struct<{
|
|
434
|
+
readonly enabled: Schema.optional<Schema.Boolean>;
|
|
435
|
+
readonly failOnDrift: Schema.optional<Schema.Boolean>;
|
|
436
|
+
readonly docsGlobs: Schema.optional<Schema.$Array<Schema.String>>;
|
|
437
|
+
readonly ignoreGlobs: Schema.optional<Schema.$Array<Schema.String>>;
|
|
438
|
+
readonly judge: Schema.optional<Schema.Boolean>;
|
|
439
|
+
}>>;
|
|
440
|
+
readonly planning: Schema.optional<Schema.Struct<{
|
|
441
|
+
readonly architectRole: Schema.optional<Schema.String>;
|
|
442
|
+
readonly autoResolveFromCode: Schema.optional<Schema.Boolean>;
|
|
443
|
+
readonly materialize: Schema.optional<Schema.Literals<readonly ["dry-run", "create"]>>;
|
|
444
|
+
}>>;
|
|
304
445
|
}>>;
|
|
305
446
|
readonly planning: Schema.optional<Schema.Struct<{
|
|
306
447
|
readonly mode: Schema.optional<Schema.Literals<readonly ["auto", "always", "off"]>>;
|
|
@@ -352,6 +493,21 @@ export declare const RigConfig: Schema.Struct<{
|
|
|
352
493
|
readonly model: Schema.optional<Schema.String>;
|
|
353
494
|
readonly mode: Schema.optional<Schema.Literals<readonly ["continuous", "off"]>>;
|
|
354
495
|
}>>;
|
|
496
|
+
readonly capabilities: Schema.optional<Schema.Struct<{
|
|
497
|
+
readonly capabilityPrecedence: Schema.optional<Schema.$Record<Schema.String, Schema.$Array<Schema.Trim>>>;
|
|
498
|
+
readonly protectedStageGrants: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
499
|
+
readonly stageId: Schema.Trim;
|
|
500
|
+
readonly pluginId: Schema.Trim;
|
|
501
|
+
readonly operations: Schema.$Array<Schema.Literals<readonly ["remove", "replace"]>>;
|
|
502
|
+
readonly grantedBy: Schema.optional<Schema.Trim>;
|
|
503
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
504
|
+
}>>>;
|
|
505
|
+
readonly kernelReplacementGrants: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
506
|
+
readonly pluginId: Schema.Trim;
|
|
507
|
+
readonly grantedBy: Schema.optional<Schema.Trim>;
|
|
508
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
509
|
+
}>>>;
|
|
510
|
+
}>>;
|
|
355
511
|
/**
|
|
356
512
|
* Generic env-override map: the single escape hatch that makes EVERY env-driven
|
|
357
513
|
* value (the dozens of `RIG_*` / `RIG_BAKED_*` / `RIG_BROWSER_*` knobs, plus any
|