@exaudeus/workrail 3.10.0 → 3.11.1
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/application/services/validation-engine.js +134 -0
- package/dist/application/services/workflow-compiler.js +54 -0
- package/dist/manifest.json +138 -74
- package/dist/mcp/handlers/v2-advance-core/assessment-consequences.d.ts +14 -0
- package/dist/mcp/handlers/v2-advance-core/assessment-consequences.js +27 -0
- package/dist/mcp/handlers/v2-advance-core/assessment-validation.d.ts +16 -0
- package/dist/mcp/handlers/v2-advance-core/assessment-validation.js +213 -0
- package/dist/mcp/handlers/v2-advance-core/event-builders.d.ts +1 -0
- package/dist/mcp/handlers/v2-advance-core/event-builders.js +3 -2
- package/dist/mcp/handlers/v2-advance-core/index.js +23 -8
- package/dist/mcp/handlers/v2-advance-core/input-validation.d.ts +9 -1
- package/dist/mcp/handlers/v2-advance-core/input-validation.js +22 -2
- package/dist/mcp/handlers/v2-advance-core/outcome-blocked.d.ts +2 -0
- package/dist/mcp/handlers/v2-advance-core/outcome-blocked.js +69 -19
- package/dist/mcp/handlers/v2-advance-core/outcome-success.js +22 -0
- package/dist/mcp/handlers/v2-execution/replay.js +7 -0
- package/dist/mcp/output-schemas.d.ts +156 -42
- package/dist/mcp/output-schemas.js +15 -0
- package/dist/mcp/v2-response-formatter.js +7 -1
- package/dist/types/workflow-definition.d.ts +26 -0
- package/dist/types/workflow-definition.js +16 -1
- package/dist/v2/durable-core/constants.d.ts +2 -0
- package/dist/v2/durable-core/constants.js +2 -0
- package/dist/v2/durable-core/domain/assessment-consequence-event-builder.d.ts +23 -0
- package/dist/v2/durable-core/domain/assessment-consequence-event-builder.js +36 -0
- package/dist/v2/durable-core/domain/assessment-record.d.ts +12 -0
- package/dist/v2/durable-core/domain/assessment-record.js +2 -0
- package/dist/v2/durable-core/domain/assessment-recorded-event-builder.d.ts +22 -0
- package/dist/v2/durable-core/domain/assessment-recorded-event-builder.js +38 -0
- package/dist/v2/durable-core/domain/blocked-node-builder.d.ts +1 -1
- package/dist/v2/durable-core/domain/blocked-node-builder.js +8 -0
- package/dist/v2/durable-core/domain/blocking-decision.d.ts +6 -0
- package/dist/v2/durable-core/domain/blocking-decision.js +15 -0
- package/dist/v2/durable-core/domain/prompt-renderer.js +25 -1
- package/dist/v2/durable-core/domain/reason-model.d.ts +12 -2
- package/dist/v2/durable-core/domain/reason-model.js +27 -2
- package/dist/v2/durable-core/domain/risk-policy-guardrails.js +1 -0
- package/dist/v2/durable-core/domain/validation-criteria-validator.d.ts +1 -0
- package/dist/v2/durable-core/domain/validation-criteria-validator.js +11 -0
- package/dist/v2/durable-core/schemas/artifacts/assessment.d.ts +55 -0
- package/dist/v2/durable-core/schemas/artifacts/assessment.js +29 -0
- package/dist/v2/durable-core/schemas/artifacts/index.d.ts +2 -1
- package/dist/v2/durable-core/schemas/artifacts/index.js +8 -1
- package/dist/v2/durable-core/schemas/compiled-workflow/index.d.ts +24 -24
- package/dist/v2/durable-core/schemas/execution-snapshot/blocked-snapshot.d.ts +141 -21
- package/dist/v2/durable-core/schemas/execution-snapshot/blocked-snapshot.js +10 -1
- package/dist/v2/durable-core/schemas/execution-snapshot/execution-snapshot.v1.d.ts +729 -171
- package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +1442 -202
- package/dist/v2/durable-core/schemas/session/events.d.ts +231 -8
- package/dist/v2/durable-core/schemas/session/events.js +36 -0
- package/dist/v2/durable-core/schemas/session/gaps.d.ts +2 -2
- package/dist/v2/projections/assessment-consequences.d.ts +19 -0
- package/dist/v2/projections/assessment-consequences.js +33 -0
- package/dist/v2/projections/assessments.d.ts +21 -0
- package/dist/v2/projections/assessments.js +35 -0
- package/package.json +1 -1
- package/spec/authoring-spec.json +38 -4
- package/spec/production-readiness-audit-rubric.md +43 -0
- package/spec/workflow.schema.json +110 -0
- package/workflows/bug-investigation.agentic.v2.json +28 -2
- package/workflows/production-readiness-audit.json +354 -0
- package/workflows/test-artifact-loop-control.json +28 -2
- package/workflows/workflow-for-workflows.v2.json +395 -58
- package/workflows/wr.discovery.json +33 -69
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
export { ASSESSMENT_CONTRACT_REF, AssessmentArtifactV1Schema, AssessmentDimensionSubmissionSchema, isAssessmentArtifact, parseAssessmentArtifact, type AssessmentArtifactV1, type AssessmentDimensionSubmission, } from './assessment.js';
|
|
1
2
|
export { LOOP_CONTROL_CONTRACT_REF, LoopControlDecisionSchema, LoopControlMetadataV1Schema, LoopControlArtifactV1Schema, isLoopControlArtifact, parseLoopControlArtifact, findLoopControlArtifact, type LoopControlDecision, type LoopControlMetadataV1, type LoopControlArtifactV1, } from './loop-control.js';
|
|
2
|
-
export declare const ARTIFACT_CONTRACT_REFS: readonly ["wr.contracts.loop_control"];
|
|
3
|
+
export declare const ARTIFACT_CONTRACT_REFS: readonly ["wr.contracts.assessment", "wr.contracts.loop_control"];
|
|
3
4
|
export type ArtifactContractRef = (typeof ARTIFACT_CONTRACT_REFS)[number];
|
|
4
5
|
export declare function isValidContractRef(ref: string): ref is ArtifactContractRef;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ARTIFACT_CONTRACT_REFS = exports.findLoopControlArtifact = exports.parseLoopControlArtifact = exports.isLoopControlArtifact = exports.LoopControlArtifactV1Schema = exports.LoopControlMetadataV1Schema = exports.LoopControlDecisionSchema = exports.LOOP_CONTROL_CONTRACT_REF = void 0;
|
|
3
|
+
exports.ARTIFACT_CONTRACT_REFS = exports.findLoopControlArtifact = exports.parseLoopControlArtifact = exports.isLoopControlArtifact = exports.LoopControlArtifactV1Schema = exports.LoopControlMetadataV1Schema = exports.LoopControlDecisionSchema = exports.LOOP_CONTROL_CONTRACT_REF = exports.parseAssessmentArtifact = exports.isAssessmentArtifact = exports.AssessmentDimensionSubmissionSchema = exports.AssessmentArtifactV1Schema = exports.ASSESSMENT_CONTRACT_REF = void 0;
|
|
4
4
|
exports.isValidContractRef = isValidContractRef;
|
|
5
|
+
var assessment_js_1 = require("./assessment.js");
|
|
6
|
+
Object.defineProperty(exports, "ASSESSMENT_CONTRACT_REF", { enumerable: true, get: function () { return assessment_js_1.ASSESSMENT_CONTRACT_REF; } });
|
|
7
|
+
Object.defineProperty(exports, "AssessmentArtifactV1Schema", { enumerable: true, get: function () { return assessment_js_1.AssessmentArtifactV1Schema; } });
|
|
8
|
+
Object.defineProperty(exports, "AssessmentDimensionSubmissionSchema", { enumerable: true, get: function () { return assessment_js_1.AssessmentDimensionSubmissionSchema; } });
|
|
9
|
+
Object.defineProperty(exports, "isAssessmentArtifact", { enumerable: true, get: function () { return assessment_js_1.isAssessmentArtifact; } });
|
|
10
|
+
Object.defineProperty(exports, "parseAssessmentArtifact", { enumerable: true, get: function () { return assessment_js_1.parseAssessmentArtifact; } });
|
|
5
11
|
var loop_control_js_1 = require("./loop-control.js");
|
|
6
12
|
Object.defineProperty(exports, "LOOP_CONTROL_CONTRACT_REF", { enumerable: true, get: function () { return loop_control_js_1.LOOP_CONTROL_CONTRACT_REF; } });
|
|
7
13
|
Object.defineProperty(exports, "LoopControlDecisionSchema", { enumerable: true, get: function () { return loop_control_js_1.LoopControlDecisionSchema; } });
|
|
@@ -11,6 +17,7 @@ Object.defineProperty(exports, "isLoopControlArtifact", { enumerable: true, get:
|
|
|
11
17
|
Object.defineProperty(exports, "parseLoopControlArtifact", { enumerable: true, get: function () { return loop_control_js_1.parseLoopControlArtifact; } });
|
|
12
18
|
Object.defineProperty(exports, "findLoopControlArtifact", { enumerable: true, get: function () { return loop_control_js_1.findLoopControlArtifact; } });
|
|
13
19
|
exports.ARTIFACT_CONTRACT_REFS = [
|
|
20
|
+
'wr.contracts.assessment',
|
|
14
21
|
'wr.contracts.loop_control',
|
|
15
22
|
];
|
|
16
23
|
function isValidContractRef(ref) {
|
|
@@ -66,8 +66,8 @@ export declare const CompiledWorkflowSnapshotV1Schema: z.ZodDiscriminatedUnion<"
|
|
|
66
66
|
status: "resolved";
|
|
67
67
|
id: string;
|
|
68
68
|
title: string;
|
|
69
|
-
source: string;
|
|
70
69
|
purpose: string;
|
|
70
|
+
source: string;
|
|
71
71
|
authoritative: boolean;
|
|
72
72
|
resolveFrom: "workspace" | "package";
|
|
73
73
|
resolvedPath: string;
|
|
@@ -75,8 +75,8 @@ export declare const CompiledWorkflowSnapshotV1Schema: z.ZodDiscriminatedUnion<"
|
|
|
75
75
|
status: "resolved";
|
|
76
76
|
id: string;
|
|
77
77
|
title: string;
|
|
78
|
-
source: string;
|
|
79
78
|
purpose: string;
|
|
79
|
+
source: string;
|
|
80
80
|
authoritative: boolean;
|
|
81
81
|
resolveFrom: "workspace" | "package";
|
|
82
82
|
resolvedPath: string;
|
|
@@ -92,16 +92,16 @@ export declare const CompiledWorkflowSnapshotV1Schema: z.ZodDiscriminatedUnion<"
|
|
|
92
92
|
status: "unresolved";
|
|
93
93
|
id: string;
|
|
94
94
|
title: string;
|
|
95
|
-
source: string;
|
|
96
95
|
purpose: string;
|
|
96
|
+
source: string;
|
|
97
97
|
authoritative: boolean;
|
|
98
98
|
resolveFrom: "workspace" | "package";
|
|
99
99
|
}, {
|
|
100
100
|
status: "unresolved";
|
|
101
101
|
id: string;
|
|
102
102
|
title: string;
|
|
103
|
-
source: string;
|
|
104
103
|
purpose: string;
|
|
104
|
+
source: string;
|
|
105
105
|
authoritative: boolean;
|
|
106
106
|
resolveFrom: "workspace" | "package";
|
|
107
107
|
}>, z.ZodObject<{
|
|
@@ -116,16 +116,16 @@ export declare const CompiledWorkflowSnapshotV1Schema: z.ZodDiscriminatedUnion<"
|
|
|
116
116
|
status: "pinned";
|
|
117
117
|
id: string;
|
|
118
118
|
title: string;
|
|
119
|
-
source: string;
|
|
120
119
|
purpose: string;
|
|
120
|
+
source: string;
|
|
121
121
|
authoritative: boolean;
|
|
122
122
|
resolveFrom: "workspace" | "package";
|
|
123
123
|
}, {
|
|
124
124
|
status: "pinned";
|
|
125
125
|
id: string;
|
|
126
126
|
title: string;
|
|
127
|
-
source: string;
|
|
128
127
|
purpose: string;
|
|
128
|
+
source: string;
|
|
129
129
|
authoritative: boolean;
|
|
130
130
|
resolveFrom: "workspace" | "package";
|
|
131
131
|
}>]>, "many">>;
|
|
@@ -143,8 +143,8 @@ export declare const CompiledWorkflowSnapshotV1Schema: z.ZodDiscriminatedUnion<"
|
|
|
143
143
|
status: "resolved";
|
|
144
144
|
id: string;
|
|
145
145
|
title: string;
|
|
146
|
-
source: string;
|
|
147
146
|
purpose: string;
|
|
147
|
+
source: string;
|
|
148
148
|
authoritative: boolean;
|
|
149
149
|
resolveFrom: "workspace" | "package";
|
|
150
150
|
resolvedPath: string;
|
|
@@ -152,16 +152,16 @@ export declare const CompiledWorkflowSnapshotV1Schema: z.ZodDiscriminatedUnion<"
|
|
|
152
152
|
status: "unresolved";
|
|
153
153
|
id: string;
|
|
154
154
|
title: string;
|
|
155
|
-
source: string;
|
|
156
155
|
purpose: string;
|
|
156
|
+
source: string;
|
|
157
157
|
authoritative: boolean;
|
|
158
158
|
resolveFrom: "workspace" | "package";
|
|
159
159
|
} | {
|
|
160
160
|
status: "pinned";
|
|
161
161
|
id: string;
|
|
162
162
|
title: string;
|
|
163
|
-
source: string;
|
|
164
163
|
purpose: string;
|
|
164
|
+
source: string;
|
|
165
165
|
authoritative: boolean;
|
|
166
166
|
resolveFrom: "workspace" | "package";
|
|
167
167
|
})[] | undefined;
|
|
@@ -179,8 +179,8 @@ export declare const CompiledWorkflowSnapshotV1Schema: z.ZodDiscriminatedUnion<"
|
|
|
179
179
|
status: "resolved";
|
|
180
180
|
id: string;
|
|
181
181
|
title: string;
|
|
182
|
-
source: string;
|
|
183
182
|
purpose: string;
|
|
183
|
+
source: string;
|
|
184
184
|
authoritative: boolean;
|
|
185
185
|
resolveFrom: "workspace" | "package";
|
|
186
186
|
resolvedPath: string;
|
|
@@ -188,16 +188,16 @@ export declare const CompiledWorkflowSnapshotV1Schema: z.ZodDiscriminatedUnion<"
|
|
|
188
188
|
status: "unresolved";
|
|
189
189
|
id: string;
|
|
190
190
|
title: string;
|
|
191
|
-
source: string;
|
|
192
191
|
purpose: string;
|
|
192
|
+
source: string;
|
|
193
193
|
authoritative: boolean;
|
|
194
194
|
resolveFrom: "workspace" | "package";
|
|
195
195
|
} | {
|
|
196
196
|
status: "pinned";
|
|
197
197
|
id: string;
|
|
198
198
|
title: string;
|
|
199
|
-
source: string;
|
|
200
199
|
purpose: string;
|
|
200
|
+
source: string;
|
|
201
201
|
authoritative: boolean;
|
|
202
202
|
resolveFrom: "workspace" | "package";
|
|
203
203
|
})[] | undefined;
|
|
@@ -270,8 +270,8 @@ export declare const CompiledWorkflowSnapshotSchema: z.ZodDiscriminatedUnion<"so
|
|
|
270
270
|
status: "resolved";
|
|
271
271
|
id: string;
|
|
272
272
|
title: string;
|
|
273
|
-
source: string;
|
|
274
273
|
purpose: string;
|
|
274
|
+
source: string;
|
|
275
275
|
authoritative: boolean;
|
|
276
276
|
resolveFrom: "workspace" | "package";
|
|
277
277
|
resolvedPath: string;
|
|
@@ -279,8 +279,8 @@ export declare const CompiledWorkflowSnapshotSchema: z.ZodDiscriminatedUnion<"so
|
|
|
279
279
|
status: "resolved";
|
|
280
280
|
id: string;
|
|
281
281
|
title: string;
|
|
282
|
-
source: string;
|
|
283
282
|
purpose: string;
|
|
283
|
+
source: string;
|
|
284
284
|
authoritative: boolean;
|
|
285
285
|
resolveFrom: "workspace" | "package";
|
|
286
286
|
resolvedPath: string;
|
|
@@ -296,16 +296,16 @@ export declare const CompiledWorkflowSnapshotSchema: z.ZodDiscriminatedUnion<"so
|
|
|
296
296
|
status: "unresolved";
|
|
297
297
|
id: string;
|
|
298
298
|
title: string;
|
|
299
|
-
source: string;
|
|
300
299
|
purpose: string;
|
|
300
|
+
source: string;
|
|
301
301
|
authoritative: boolean;
|
|
302
302
|
resolveFrom: "workspace" | "package";
|
|
303
303
|
}, {
|
|
304
304
|
status: "unresolved";
|
|
305
305
|
id: string;
|
|
306
306
|
title: string;
|
|
307
|
-
source: string;
|
|
308
307
|
purpose: string;
|
|
308
|
+
source: string;
|
|
309
309
|
authoritative: boolean;
|
|
310
310
|
resolveFrom: "workspace" | "package";
|
|
311
311
|
}>, z.ZodObject<{
|
|
@@ -320,16 +320,16 @@ export declare const CompiledWorkflowSnapshotSchema: z.ZodDiscriminatedUnion<"so
|
|
|
320
320
|
status: "pinned";
|
|
321
321
|
id: string;
|
|
322
322
|
title: string;
|
|
323
|
-
source: string;
|
|
324
323
|
purpose: string;
|
|
324
|
+
source: string;
|
|
325
325
|
authoritative: boolean;
|
|
326
326
|
resolveFrom: "workspace" | "package";
|
|
327
327
|
}, {
|
|
328
328
|
status: "pinned";
|
|
329
329
|
id: string;
|
|
330
330
|
title: string;
|
|
331
|
-
source: string;
|
|
332
331
|
purpose: string;
|
|
332
|
+
source: string;
|
|
333
333
|
authoritative: boolean;
|
|
334
334
|
resolveFrom: "workspace" | "package";
|
|
335
335
|
}>]>, "many">>;
|
|
@@ -347,8 +347,8 @@ export declare const CompiledWorkflowSnapshotSchema: z.ZodDiscriminatedUnion<"so
|
|
|
347
347
|
status: "resolved";
|
|
348
348
|
id: string;
|
|
349
349
|
title: string;
|
|
350
|
-
source: string;
|
|
351
350
|
purpose: string;
|
|
351
|
+
source: string;
|
|
352
352
|
authoritative: boolean;
|
|
353
353
|
resolveFrom: "workspace" | "package";
|
|
354
354
|
resolvedPath: string;
|
|
@@ -356,16 +356,16 @@ export declare const CompiledWorkflowSnapshotSchema: z.ZodDiscriminatedUnion<"so
|
|
|
356
356
|
status: "unresolved";
|
|
357
357
|
id: string;
|
|
358
358
|
title: string;
|
|
359
|
-
source: string;
|
|
360
359
|
purpose: string;
|
|
360
|
+
source: string;
|
|
361
361
|
authoritative: boolean;
|
|
362
362
|
resolveFrom: "workspace" | "package";
|
|
363
363
|
} | {
|
|
364
364
|
status: "pinned";
|
|
365
365
|
id: string;
|
|
366
366
|
title: string;
|
|
367
|
-
source: string;
|
|
368
367
|
purpose: string;
|
|
368
|
+
source: string;
|
|
369
369
|
authoritative: boolean;
|
|
370
370
|
resolveFrom: "workspace" | "package";
|
|
371
371
|
})[] | undefined;
|
|
@@ -383,8 +383,8 @@ export declare const CompiledWorkflowSnapshotSchema: z.ZodDiscriminatedUnion<"so
|
|
|
383
383
|
status: "resolved";
|
|
384
384
|
id: string;
|
|
385
385
|
title: string;
|
|
386
|
-
source: string;
|
|
387
386
|
purpose: string;
|
|
387
|
+
source: string;
|
|
388
388
|
authoritative: boolean;
|
|
389
389
|
resolveFrom: "workspace" | "package";
|
|
390
390
|
resolvedPath: string;
|
|
@@ -392,16 +392,16 @@ export declare const CompiledWorkflowSnapshotSchema: z.ZodDiscriminatedUnion<"so
|
|
|
392
392
|
status: "unresolved";
|
|
393
393
|
id: string;
|
|
394
394
|
title: string;
|
|
395
|
-
source: string;
|
|
396
395
|
purpose: string;
|
|
396
|
+
source: string;
|
|
397
397
|
authoritative: boolean;
|
|
398
398
|
resolveFrom: "workspace" | "package";
|
|
399
399
|
} | {
|
|
400
400
|
status: "pinned";
|
|
401
401
|
id: string;
|
|
402
402
|
title: string;
|
|
403
|
-
source: string;
|
|
404
403
|
purpose: string;
|
|
404
|
+
source: string;
|
|
405
405
|
authoritative: boolean;
|
|
406
406
|
resolveFrom: "workspace" | "package";
|
|
407
407
|
})[] | undefined;
|