ex-workflow 1.1.1 → 1.3.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 +60 -0
- package/README.md +209 -44
- package/dist/adapters/index.cjs +1 -1
- package/dist/adapters/index.d.cts +1 -1
- package/dist/adapters/index.d.ts +1 -1
- package/dist/adapters/index.mjs +1 -1
- package/dist/{budget-Bd8KpGIr.d.ts → budget-BuQ9GWsg.d.ts} +8 -7
- package/dist/{budget-CezCinPF.d.cts → budget-DDqQQIgp.d.cts} +8 -7
- package/dist/chunk-2FBA7RBS.cjs +2 -0
- package/dist/chunk-2FBA7RBS.cjs.map +1 -0
- package/dist/chunk-3S7F5QXK.mjs +2 -0
- package/dist/chunk-3S7F5QXK.mjs.map +1 -0
- package/dist/chunk-3ZUBCA7Q.cjs +2 -0
- package/dist/chunk-3ZUBCA7Q.cjs.map +1 -0
- package/dist/chunk-4F5HZLKD.cjs +2 -0
- package/dist/chunk-4F5HZLKD.cjs.map +1 -0
- package/dist/chunk-5DCOXGRW.mjs +2 -0
- package/dist/chunk-5DCOXGRW.mjs.map +1 -0
- package/dist/chunk-5GXB6GMX.mjs +2 -0
- package/dist/chunk-5GXB6GMX.mjs.map +1 -0
- package/dist/chunk-5ZGNEY2I.mjs +2 -0
- package/dist/chunk-5ZGNEY2I.mjs.map +1 -0
- package/dist/chunk-6PFJYRM7.cjs +2 -0
- package/dist/chunk-6PFJYRM7.cjs.map +1 -0
- package/dist/chunk-BANKVCYY.cjs +2 -0
- package/dist/chunk-BANKVCYY.cjs.map +1 -0
- package/dist/chunk-BBI7AKJK.cjs +2 -0
- package/dist/chunk-BBI7AKJK.cjs.map +1 -0
- package/dist/chunk-BD665RYK.mjs +2 -0
- package/dist/chunk-BD665RYK.mjs.map +1 -0
- package/dist/chunk-C4ISBUZR.mjs +2 -0
- package/dist/chunk-C4ISBUZR.mjs.map +1 -0
- package/dist/chunk-COPYGMHE.mjs +2 -0
- package/dist/chunk-COPYGMHE.mjs.map +1 -0
- package/dist/chunk-CVGEIXW6.cjs +2 -0
- package/dist/chunk-CVGEIXW6.cjs.map +1 -0
- package/dist/chunk-CX2E7ZTQ.mjs +2 -0
- package/dist/chunk-CX2E7ZTQ.mjs.map +1 -0
- package/dist/chunk-DVFTTBCT.cjs +3 -0
- package/dist/chunk-DVFTTBCT.cjs.map +1 -0
- package/dist/chunk-EQXYFHHD.cjs +2 -0
- package/dist/chunk-EQXYFHHD.cjs.map +1 -0
- package/dist/chunk-GKN5M4B7.cjs +2 -0
- package/dist/chunk-GKN5M4B7.cjs.map +1 -0
- package/dist/chunk-H26KXQ3I.cjs +2 -0
- package/dist/chunk-H26KXQ3I.cjs.map +1 -0
- package/dist/chunk-IDZ435YZ.mjs +2 -0
- package/dist/{chunk-KIQOUUEZ.mjs.map → chunk-IDZ435YZ.mjs.map} +1 -1
- package/dist/chunk-ILDXZWEL.mjs +2 -0
- package/dist/chunk-ILDXZWEL.mjs.map +1 -0
- package/dist/chunk-KA6DVHO5.cjs +6 -0
- package/dist/chunk-KA6DVHO5.cjs.map +1 -0
- package/dist/chunk-KLOSFZFK.cjs +2 -0
- package/dist/chunk-KLOSFZFK.cjs.map +1 -0
- package/dist/chunk-LG23WXAP.mjs +2 -0
- package/dist/chunk-LG23WXAP.mjs.map +1 -0
- package/dist/chunk-MU26QW32.cjs +2 -0
- package/dist/chunk-MU26QW32.cjs.map +1 -0
- package/dist/chunk-OEHVWRJG.mjs +2 -0
- package/dist/chunk-OEHVWRJG.mjs.map +1 -0
- package/dist/chunk-ONVAUZOD.mjs +6 -0
- package/dist/chunk-ONVAUZOD.mjs.map +1 -0
- package/dist/chunk-OSHBJIYD.cjs +2 -0
- package/dist/chunk-OSHBJIYD.cjs.map +1 -0
- package/dist/chunk-PFHVB2WT.mjs +2 -0
- package/dist/chunk-PFHVB2WT.mjs.map +1 -0
- package/dist/chunk-PNWRA4JU.cjs +2 -0
- package/dist/{chunk-PO2SPQJP.cjs.map → chunk-PNWRA4JU.cjs.map} +1 -1
- package/dist/chunk-QJMOCISZ.mjs +3 -0
- package/dist/chunk-QJMOCISZ.mjs.map +1 -0
- package/dist/chunk-RGHM3JJM.cjs +2 -0
- package/dist/chunk-RGHM3JJM.cjs.map +1 -0
- package/dist/chunk-TQR3VFZU.mjs +2 -0
- package/dist/chunk-TQR3VFZU.mjs.map +1 -0
- package/dist/chunk-UMG3WOD7.cjs +2 -0
- package/dist/chunk-UMG3WOD7.cjs.map +1 -0
- package/dist/chunk-UT7QV6CE.mjs +2 -0
- package/dist/chunk-UT7QV6CE.mjs.map +1 -0
- package/dist/chunk-WU5JELOM.mjs +2 -0
- package/dist/chunk-WU5JELOM.mjs.map +1 -0
- package/dist/chunk-YGCNLXPJ.cjs +2 -0
- package/dist/chunk-YGCNLXPJ.cjs.map +1 -0
- package/dist/chunk-YS6CXERQ.mjs +2 -0
- package/dist/chunk-YS6CXERQ.mjs.map +1 -0
- package/dist/cli/bin.cjs +1 -1
- package/dist/cli/bin.cjs.map +1 -1
- package/dist/cli/bin.mjs +1 -1
- package/dist/cli/bin.mjs.map +1 -1
- package/dist/cli/index.cjs +1 -1
- package/dist/cli/index.mjs +1 -1
- package/dist/experimentation/index.cjs +1 -1
- package/dist/experimentation/index.d.cts +2 -2
- package/dist/experimentation/index.d.ts +2 -2
- package/dist/experimentation/index.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +145 -15
- package/dist/index.d.ts +145 -15
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/investigation/index.cjs +1 -1
- package/dist/investigation/index.d.cts +2 -2
- package/dist/investigation/index.d.ts +2 -2
- package/dist/investigation/index.mjs +1 -1
- package/dist/kanban/index.cjs +1 -1
- package/dist/kanban/index.d.cts +2 -1
- package/dist/kanban/index.d.ts +2 -1
- package/dist/kanban/index.mjs +1 -1
- package/dist/policies/index.cjs +2 -0
- package/dist/policies/index.cjs.map +1 -0
- package/dist/policies/index.d.cts +199 -0
- package/dist/policies/index.d.ts +199 -0
- package/dist/policies/index.mjs +2 -0
- package/dist/policies/index.mjs.map +1 -0
- package/dist/registry/index.cjs +2 -0
- package/dist/registry/index.cjs.map +1 -0
- package/dist/registry/index.d.cts +25 -0
- package/dist/registry/index.d.ts +25 -0
- package/dist/registry/index.mjs +2 -0
- package/dist/registry/index.mjs.map +1 -0
- package/dist/schema/index.cjs +1 -1
- package/dist/schema/index.d.cts +2 -0
- package/dist/schema/index.d.ts +2 -0
- package/dist/schema/index.mjs +1 -1
- package/dist/scrum/index.cjs +1 -1
- package/dist/scrum/index.d.cts +3 -3
- package/dist/scrum/index.d.ts +3 -3
- package/dist/scrum/index.mjs +1 -1
- package/dist/{types-BScHXlRx.d.ts → types-DLOtndDY.d.cts} +121 -22
- package/dist/{types-BScHXlRx.d.cts → types-DLOtndDY.d.ts} +121 -22
- package/dist/types.cjs +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.mjs +1 -1
- package/dist/waterfall/index.cjs +1 -1
- package/dist/waterfall/index.d.cts +1 -1
- package/dist/waterfall/index.d.ts +1 -1
- package/dist/waterfall/index.mjs +1 -1
- package/package.json +30 -3
- package/dist/chunk-2FRRD6A3.mjs +0 -2
- package/dist/chunk-2FRRD6A3.mjs.map +0 -1
- package/dist/chunk-6P3OKXSK.mjs +0 -2
- package/dist/chunk-6P3OKXSK.mjs.map +0 -1
- package/dist/chunk-7FS6KWTG.cjs +0 -2
- package/dist/chunk-7FS6KWTG.cjs.map +0 -1
- package/dist/chunk-7QQY4KJ2.mjs +0 -2
- package/dist/chunk-7QQY4KJ2.mjs.map +0 -1
- package/dist/chunk-AD4Z3JBL.cjs +0 -2
- package/dist/chunk-AD4Z3JBL.cjs.map +0 -1
- package/dist/chunk-ATCJ4IHP.mjs +0 -2
- package/dist/chunk-ATCJ4IHP.mjs.map +0 -1
- package/dist/chunk-C2IYMWE6.cjs +0 -3
- package/dist/chunk-C2IYMWE6.cjs.map +0 -1
- package/dist/chunk-EACZBAP3.cjs +0 -2
- package/dist/chunk-EACZBAP3.cjs.map +0 -1
- package/dist/chunk-EFCUM6DK.mjs +0 -2
- package/dist/chunk-EFCUM6DK.mjs.map +0 -1
- package/dist/chunk-EHBQBXWA.cjs +0 -2
- package/dist/chunk-EHBQBXWA.cjs.map +0 -1
- package/dist/chunk-FTS75UIU.mjs +0 -2
- package/dist/chunk-FTS75UIU.mjs.map +0 -1
- package/dist/chunk-HCRVWMG4.cjs +0 -2
- package/dist/chunk-HCRVWMG4.cjs.map +0 -1
- package/dist/chunk-KIQOUUEZ.mjs +0 -2
- package/dist/chunk-KLWZEXZU.mjs +0 -3
- package/dist/chunk-KLWZEXZU.mjs.map +0 -1
- package/dist/chunk-NDCQTRIV.mjs +0 -2
- package/dist/chunk-NDCQTRIV.mjs.map +0 -1
- package/dist/chunk-PMUGU5UJ.cjs +0 -2
- package/dist/chunk-PMUGU5UJ.cjs.map +0 -1
- package/dist/chunk-PO2SPQJP.cjs +0 -2
- package/dist/chunk-QZ6HD6DE.mjs +0 -6
- package/dist/chunk-QZ6HD6DE.mjs.map +0 -1
- package/dist/chunk-RL27372B.cjs +0 -2
- package/dist/chunk-RL27372B.cjs.map +0 -1
- package/dist/chunk-S3BXVHO7.cjs +0 -2
- package/dist/chunk-S3BXVHO7.cjs.map +0 -1
- package/dist/chunk-SP5MC7RR.mjs +0 -2
- package/dist/chunk-SP5MC7RR.mjs.map +0 -1
- package/dist/chunk-SVGTSPZF.cjs +0 -2
- package/dist/chunk-SVGTSPZF.cjs.map +0 -1
- package/dist/chunk-SYLO7FUL.mjs +0 -2
- package/dist/chunk-SYLO7FUL.mjs.map +0 -1
- package/dist/chunk-T3V5UE34.mjs +0 -2
- package/dist/chunk-T3V5UE34.mjs.map +0 -1
- package/dist/chunk-TS66RAJR.cjs +0 -2
- package/dist/chunk-TS66RAJR.cjs.map +0 -1
- package/dist/chunk-U23FUYPD.cjs +0 -6
- package/dist/chunk-U23FUYPD.cjs.map +0 -1
- package/dist/chunk-U6GHFKKE.mjs +0 -2
- package/dist/chunk-U6GHFKKE.mjs.map +0 -1
- package/dist/chunk-YJQ5YJ7S.cjs +0 -2
- package/dist/chunk-YJQ5YJ7S.cjs.map +0 -1
package/dist/scrum/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk3ZUBCA7Q_cjs=require('../chunk-3ZUBCA7Q.cjs');require('../chunk-BANKVCYY.cjs'),require('../chunk-H26KXQ3I.cjs');var chunkMU26QW32_cjs=require('../chunk-MU26QW32.cjs');require('../chunk-OSHBJIYD.cjs');Object.defineProperty(exports,"SCRUM_VOCABULARY",{enumerable:true,get:function(){return chunk3ZUBCA7Q_cjs.h}});Object.defineProperty(exports,"closeSprint",{enumerable:true,get:function(){return chunk3ZUBCA7Q_cjs.k}});Object.defineProperty(exports,"configOf",{enumerable:true,get:function(){return chunk3ZUBCA7Q_cjs.i}});Object.defineProperty(exports,"dailyReport",{enumerable:true,get:function(){return chunk3ZUBCA7Q_cjs.a}});Object.defineProperty(exports,"resumeStageOf",{enumerable:true,get:function(){return chunk3ZUBCA7Q_cjs.j}});Object.defineProperty(exports,"scrum",{enumerable:true,get:function(){return chunk3ZUBCA7Q_cjs.l}});Object.defineProperty(exports,"scrumCeremonies",{enumerable:true,get:function(){return chunk3ZUBCA7Q_cjs.b}});Object.defineProperty(exports,"scrumMetrics",{enumerable:true,get:function(){return chunk3ZUBCA7Q_cjs.d}});Object.defineProperty(exports,"scrumRoles",{enumerable:true,get:function(){return chunk3ZUBCA7Q_cjs.e}});Object.defineProperty(exports,"scrumRules",{enumerable:true,get:function(){return chunk3ZUBCA7Q_cjs.f}});Object.defineProperty(exports,"scrumStages",{enumerable:true,get:function(){return chunk3ZUBCA7Q_cjs.g}});Object.defineProperty(exports,"validateScrumConfig",{enumerable:true,get:function(){return chunk3ZUBCA7Q_cjs.c}});Object.defineProperty(exports,"canDo",{enumerable:true,get:function(){return chunkMU26QW32_cjs.l}});//# sourceMappingURL=index.cjs.map
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/scrum/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as Budget, P as Policy, W as WorkflowState, R as Role, g as Rule, S as Stage, j as ItemStatus, M as Methodology, f as Ceremony, k as CoreTerm, l as WorkItem } from '../types-
|
|
2
|
-
import { E as EstimateMode } from '../budget-
|
|
3
|
-
export { c as canDo } from '../budget-
|
|
1
|
+
import { a as Budget, P as Policy, W as WorkflowState, R as Role, g as Rule, S as Stage, j as ItemStatus, M as Methodology, f as Ceremony, k as CoreTerm, l as WorkItem } from '../types-DLOtndDY.cjs';
|
|
2
|
+
import { E as EstimateMode } from '../budget-DDqQQIgp.cjs';
|
|
3
|
+
export { c as canDo } from '../budget-DDqQQIgp.cjs';
|
|
4
4
|
|
|
5
5
|
interface ScrumConfig {
|
|
6
6
|
sprintBudget: Budget;
|
package/dist/scrum/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as Budget, P as Policy, W as WorkflowState, R as Role, g as Rule, S as Stage, j as ItemStatus, M as Methodology, f as Ceremony, k as CoreTerm, l as WorkItem } from '../types-
|
|
2
|
-
import { E as EstimateMode } from '../budget-
|
|
3
|
-
export { c as canDo } from '../budget-
|
|
1
|
+
import { a as Budget, P as Policy, W as WorkflowState, R as Role, g as Rule, S as Stage, j as ItemStatus, M as Methodology, f as Ceremony, k as CoreTerm, l as WorkItem } from '../types-DLOtndDY.js';
|
|
2
|
+
import { E as EstimateMode } from '../budget-BuQ9GWsg.js';
|
|
3
|
+
export { c as canDo } from '../budget-BuQ9GWsg.js';
|
|
4
4
|
|
|
5
5
|
interface ScrumConfig {
|
|
6
6
|
sprintBudget: Budget;
|
package/dist/scrum/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{h as SCRUM_VOCABULARY,k as closeSprint,i as configOf,a as dailyReport,j as resumeStageOf,l as scrum,b as scrumCeremonies,d as scrumMetrics,e as scrumRoles,f as scrumRules,g as scrumStages,c as validateScrumConfig}from'../chunk-
|
|
1
|
+
export{h as SCRUM_VOCABULARY,k as closeSprint,i as configOf,a as dailyReport,j as resumeStageOf,l as scrum,b as scrumCeremonies,d as scrumMetrics,e as scrumRoles,f as scrumRules,g as scrumStages,c as validateScrumConfig}from'../chunk-5ZGNEY2I.mjs';import'../chunk-5DCOXGRW.mjs';import'../chunk-PFHVB2WT.mjs';export{l as canDo}from'../chunk-COPYGMHE.mjs';import'../chunk-YS6CXERQ.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -121,6 +121,8 @@ interface Evidence {
|
|
|
121
121
|
ref: string;
|
|
122
122
|
by: string;
|
|
123
123
|
at: string;
|
|
124
|
+
/** Structured content a policy reads (e.g. a risk level); the policy that owns the kind validates it. */
|
|
125
|
+
data?: Record<string, unknown>;
|
|
124
126
|
}
|
|
125
127
|
interface Blocker {
|
|
126
128
|
id: string;
|
|
@@ -213,6 +215,48 @@ interface Gate {
|
|
|
213
215
|
stage: string;
|
|
214
216
|
};
|
|
215
217
|
}
|
|
218
|
+
/**
|
|
219
|
+
* What a methodology's `escalateGate` hook adds to a static gate (design spec section 27, #35).
|
|
220
|
+
* Core only appends these to the gate (`widenGate`); it never removes or replaces a requirement.
|
|
221
|
+
*/
|
|
222
|
+
interface GateEscalation {
|
|
223
|
+
requires: GateRequirement[];
|
|
224
|
+
evidence: string[];
|
|
225
|
+
/** Why the gate was widened; recorded in the `gate.resolved` event (e.g. the risk level and its assessment). */
|
|
226
|
+
reason: Record<string, string | null>;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* One claim of a context snapshot (design spec section 27, #36). With no `source` it is
|
|
230
|
+
* unverified. `source.path` is repository-relative POSIX (as Git lists it); the engine compares
|
|
231
|
+
* paths and hashes only, it never reads a file.
|
|
232
|
+
*/
|
|
233
|
+
interface ContextAssumption {
|
|
234
|
+
claim: string;
|
|
235
|
+
/** A required claim must be verified (carry a `source`) for the context-grounded policy to pass. */
|
|
236
|
+
required?: boolean;
|
|
237
|
+
source?: {
|
|
238
|
+
path: string;
|
|
239
|
+
lines?: [number, number];
|
|
240
|
+
hash: string;
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
/** `data` of a `context-snapshot` evidence entry. */
|
|
244
|
+
interface ContextSnapshotData {
|
|
245
|
+
/** The repository revision the snapshot was taken at. */
|
|
246
|
+
revision: string;
|
|
247
|
+
assumptions: ContextAssumption[];
|
|
248
|
+
}
|
|
249
|
+
/** An item's current context snapshot as a worker's brief carries it. */
|
|
250
|
+
interface BriefContext extends ContextSnapshotData {
|
|
251
|
+
/** The snapshot artifact (the evidence `ref`). */
|
|
252
|
+
snapshot: string;
|
|
253
|
+
/** Who recorded it. */
|
|
254
|
+
by: string;
|
|
255
|
+
/** Cited paths a later `repo.changed` event listed; empty while the snapshot is fresh. */
|
|
256
|
+
stale: string[];
|
|
257
|
+
/** Claims with no `source`. */
|
|
258
|
+
unverified: string[];
|
|
259
|
+
}
|
|
216
260
|
interface Stage {
|
|
217
261
|
id: string;
|
|
218
262
|
name: string;
|
|
@@ -360,14 +404,49 @@ interface Baseline {
|
|
|
360
404
|
itemSnapshot: Record<string, WorkItem>;
|
|
361
405
|
}
|
|
362
406
|
type MethodologyName = "scrum" | "kanban" | "waterfall" | "investigation" | "experimentation";
|
|
363
|
-
|
|
407
|
+
/**
|
|
408
|
+
* `state.ext`: extension records keyed by their owner. The two built-in records are typed, so the
|
|
409
|
+
* state schema validates them; any other key holds any JSON value (design spec section 26).
|
|
410
|
+
*/
|
|
411
|
+
interface WorkflowExt {
|
|
412
|
+
investigation?: InvestigationState;
|
|
413
|
+
experimentation?: ExperimentationState;
|
|
414
|
+
[key: string]: unknown;
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Workflow state. `N` is the methodology name: the default `MethodologyName` (the five
|
|
418
|
+
* built-ins) keeps every 1.1 consumer's type check unchanged; a custom methodology types its
|
|
419
|
+
* state as `WorkflowState<"its-name">` (design spec section 26).
|
|
420
|
+
*/
|
|
421
|
+
interface WorkflowState<N extends string = MethodologyName> {
|
|
364
422
|
version: 1;
|
|
365
|
-
methodology:
|
|
423
|
+
methodology: N;
|
|
366
424
|
config: unknown;
|
|
367
|
-
/**
|
|
425
|
+
/**
|
|
426
|
+
* Standalone investigation lifecycle, created by its intake ceremony.
|
|
427
|
+
* Since 1.2 a read-only mirror of `ext.investigation`, kept for SDK code that reads this
|
|
428
|
+
* field (in memory only: the file adapter stores `ext.investigation` and restores this mirror on load):
|
|
429
|
+
* once `ext.investigation` exists, a write here is ignored. Read it with
|
|
430
|
+
* `readExt(state, "investigation")` and write it with `writeExt`. It does not make a 1.2 state
|
|
431
|
+
* loadable by 1.1.x, whose schema rejects `ext`. Removed in 2.0.
|
|
432
|
+
* @deprecated
|
|
433
|
+
*/
|
|
368
434
|
investigation?: InvestigationState;
|
|
369
|
-
/**
|
|
435
|
+
/**
|
|
436
|
+
* Standalone isolated candidate experiment, created by its freeze ceremony.
|
|
437
|
+
* Since 1.2 a read-only mirror of `ext.experimentation`, kept for SDK code that reads this
|
|
438
|
+
* field (in memory only: the file adapter stores `ext.experimentation` and restores this mirror on load):
|
|
439
|
+
* once `ext.experimentation` exists, a write here is ignored. Read it with
|
|
440
|
+
* `readExt(state, "experimentation")` and write it with `writeExt`. It does not make a 1.2 state
|
|
441
|
+
* loadable by 1.1.x, whose schema rejects `ext`. Removed in 2.0.
|
|
442
|
+
* @deprecated
|
|
443
|
+
*/
|
|
370
444
|
experimentation?: ExperimentationState;
|
|
445
|
+
/**
|
|
446
|
+
* Extension records keyed by their owner (a methodology name or a common piece id). Read and
|
|
447
|
+
* write it only through `readExt` / `writeExt`. Absent in states written before 1.2.
|
|
448
|
+
*/
|
|
449
|
+
ext?: WorkflowExt;
|
|
371
450
|
items: Record<string, WorkItem>;
|
|
372
451
|
stages: Stage[];
|
|
373
452
|
roles: Record<string, Role>;
|
|
@@ -395,13 +474,13 @@ interface Violation {
|
|
|
395
474
|
message: string;
|
|
396
475
|
fix: string;
|
|
397
476
|
}
|
|
398
|
-
interface Rule {
|
|
477
|
+
interface Rule<N extends string = MethodologyName> {
|
|
399
478
|
id: string;
|
|
400
479
|
severity: "error" | "warning";
|
|
401
|
-
check(state: WorkflowState
|
|
480
|
+
check(state: WorkflowState<N>, action: Action): Violation[];
|
|
402
481
|
}
|
|
403
|
-
interface ApplyResult {
|
|
404
|
-
state: WorkflowState
|
|
482
|
+
interface ApplyResult<N extends string = MethodologyName> {
|
|
483
|
+
state: WorkflowState<N>;
|
|
405
484
|
warnings: Violation[];
|
|
406
485
|
}
|
|
407
486
|
interface Brief {
|
|
@@ -432,6 +511,8 @@ interface Brief {
|
|
|
432
511
|
}>;
|
|
433
512
|
budgetRemaining: Budget;
|
|
434
513
|
gateAhead?: Gate;
|
|
514
|
+
/** the item's context snapshot, from the methodology's `briefContext` hook (spec 27, #36) */
|
|
515
|
+
context?: BriefContext;
|
|
435
516
|
/** for a question item: the escalating item's last handoff */
|
|
436
517
|
parent?: {
|
|
437
518
|
item: string;
|
|
@@ -447,7 +528,7 @@ type CeremonyInput = {
|
|
|
447
528
|
by: string;
|
|
448
529
|
now?: string;
|
|
449
530
|
} & Record<string, unknown>;
|
|
450
|
-
type Ceremony = (state: WorkflowState
|
|
531
|
+
type Ceremony<N extends string = MethodologyName> = (state: WorkflowState<N>, input: CeremonyInput) => ApplyResult<N>;
|
|
451
532
|
interface PlannerOptions {
|
|
452
533
|
schedulerMode: "level" | "throughput";
|
|
453
534
|
/** Stage a todo item is pulled into when dispatched; a function decides per item; omitted/undefined = stay in its current stage. */
|
|
@@ -474,36 +555,54 @@ interface PlannerOptions {
|
|
|
474
555
|
/** Tokens per weight unit when no accounting history exists; default 20000. PlanOptions.fallbackTokensPerWeight wins. */
|
|
475
556
|
fallbackTokensPerWeight?: number;
|
|
476
557
|
}
|
|
477
|
-
|
|
478
|
-
|
|
558
|
+
/**
|
|
559
|
+
* A methodology. `N` is its name: the default `MethodologyName` is the five built-ins; a custom
|
|
560
|
+
* methodology declares `Methodology<MyConfig, "my-name">` (design spec section 26).
|
|
561
|
+
*/
|
|
562
|
+
interface Methodology<C = unknown, N extends string = MethodologyName> {
|
|
563
|
+
name: N;
|
|
479
564
|
vocabulary: Record<CoreTerm, string>;
|
|
480
565
|
validateConfig(config: unknown): C;
|
|
481
566
|
defaultStages(config: C): Stage[];
|
|
482
567
|
defaultRoles(config: C): Role[];
|
|
483
568
|
requiredCapabilities: Capability[];
|
|
484
569
|
exclusiveCapabilities: Capability[];
|
|
485
|
-
plannerOptions(state: WorkflowState): PlannerOptions;
|
|
486
|
-
candidates(state: WorkflowState): WorkItem[];
|
|
487
|
-
invariants(state: WorkflowState
|
|
488
|
-
ceremonies: Record<string, Ceremony
|
|
489
|
-
rules: Rule[];
|
|
490
|
-
metrics(state: WorkflowState): Record<string, number | number[] | Record<string, number>>;
|
|
570
|
+
plannerOptions(state: WorkflowState<N>): PlannerOptions;
|
|
571
|
+
candidates(state: WorkflowState<N>): WorkItem[];
|
|
572
|
+
invariants(state: WorkflowState<N>, item: WorkItem): string[];
|
|
573
|
+
ceremonies: Record<string, Ceremony<N>>;
|
|
574
|
+
rules: Rule<N>[];
|
|
575
|
+
metrics(state: WorkflowState<N>): Record<string, number | number[] | Record<string, number>>;
|
|
491
576
|
humanDefaults: {
|
|
492
577
|
gates: "all" | "none" | string[];
|
|
493
578
|
};
|
|
494
579
|
/** Called after complete(); lets the methodology react (e.g. close a sprint when the budget is gone). */
|
|
495
|
-
afterComplete?(state: WorkflowState
|
|
580
|
+
afterComplete?(state: WorkflowState<N>, itemId: string, now: string): WorkflowState<N>;
|
|
496
581
|
/** Config keys that cannot change after init (changeConfig refuses them). */
|
|
497
582
|
lockedConfigKeys?: string[];
|
|
498
583
|
/** Called by changeConfig after the new config is stored; keeps derived state (e.g. stage policies) in step. */
|
|
499
|
-
afterConfigChange?(state: WorkflowState
|
|
584
|
+
afterConfigChange?(state: WorkflowState<N>, now: string): WorkflowState<N>;
|
|
500
585
|
/** Methodology-specific status for hosts (e.g. cadences due); printed by `exwf status`. */
|
|
501
|
-
report?(state: WorkflowState): Record<string, unknown>;
|
|
586
|
+
report?(state: WorkflowState<N>): Record<string, unknown>;
|
|
502
587
|
/** Called by decide() after a pending entry is resolved; lets the methodology act on it (e.g. baseline a phase gate, apply a change-request decision). */
|
|
503
|
-
afterDecide?(state: WorkflowState
|
|
588
|
+
afterDecide?(state: WorkflowState<N>, entry: PendingHuman, decision: "approve" | "reject", by: string, note: string, now: string): WorkflowState<N>;
|
|
589
|
+
/**
|
|
590
|
+
* Called by complete() before a gated completion is checked; what it returns is appended to the
|
|
591
|
+
* static gate (escalation only) and the widened gate is recorded as `gate.resolved`.
|
|
592
|
+
*/
|
|
593
|
+
escalateGate?(state: WorkflowState<N>, item: WorkItem, gate: Gate): GateEscalation | undefined;
|
|
594
|
+
/**
|
|
595
|
+
* Answers a `custom` stage policy (spec 27, #36) for `plan()` and `complete()`: an array is the
|
|
596
|
+
* policy's violations (empty passes); `undefined` keeps the 1.2 check (`policy:<id>` evidence).
|
|
597
|
+
*/
|
|
598
|
+
customPolicy?(state: WorkflowState<N>, item: WorkItem, policy: Extract<Policy, {
|
|
599
|
+
kind: "custom";
|
|
600
|
+
}>): Violation[] | undefined;
|
|
601
|
+
/** What `synthesizeBrief` puts in `Brief.context` (spec 27, #36); `undefined` leaves it out. */
|
|
602
|
+
briefContext?(state: WorkflowState<N>, item: WorkItem): BriefContext | undefined;
|
|
504
603
|
}
|
|
505
604
|
type ErrorCode = "unknown-item" | "duplicate-item" | "unknown-role" | "duplicate-role" | "unknown-stage" | "missing-capability" | "exclusive-capability" | "role-has-open-items" | "invalid-transition" | "policy-unmet" | "gate-unmet"
|
|
506
605
|
/** reserved: never thrown; kept for type compatibility */
|
|
507
606
|
| "conflict-of-interest" | "handoff-invalid" | "accounting-invalid" | "rule-violation" | "planner-error" | "no-op" | "unknown-pending" | "unknown-ceremony" | "state-version" | "config-invalid" | "budget-exhausted" | "invalid-input";
|
|
508
607
|
|
|
509
|
-
export type { Accounting as A, Brief as B, Capability as C,
|
|
608
|
+
export type { Produced as $, Accounting as A, Brief as B, Capability as C, Iteration as D, Experiment as E, Action as F, GateRequirement as G, Handoff as H, InvestigationConclusion as I, Baseline as J, Blocker as K, ContextSnapshotData as L, Methodology as M, NewItem as N, Observation as O, Policy as P, ImpactAnalysis as Q, Role as R, Stage as S, Transition as T, ItemType as U, Violation as V, WorkflowState as W, Lesson as X, LessonChange as Y, ModelTier as Z, PlannerOptions as _, Budget as a, Spent as a0, Verdict as a1, WorkflowExt as a2, BeliefUpdate as b, Hypothesis as c, InvestigationRound as d, InvestigationState as e, Ceremony as f, Rule as g, ExperimentCandidate as h, ExperimentationState as i, ItemStatus as j, CoreTerm as k, WorkItem as l, Gate as m, GateEscalation as n, ApplyResult as o, ContextAssumption as p, BriefContext as q, ClassOfService as r, CeremonyInput as s, Event as t, Phase as u, PendingHuman as v, ErrorCode as w, MethodologyName as x, ItemPatch as y, Evidence as z };
|
|
@@ -121,6 +121,8 @@ interface Evidence {
|
|
|
121
121
|
ref: string;
|
|
122
122
|
by: string;
|
|
123
123
|
at: string;
|
|
124
|
+
/** Structured content a policy reads (e.g. a risk level); the policy that owns the kind validates it. */
|
|
125
|
+
data?: Record<string, unknown>;
|
|
124
126
|
}
|
|
125
127
|
interface Blocker {
|
|
126
128
|
id: string;
|
|
@@ -213,6 +215,48 @@ interface Gate {
|
|
|
213
215
|
stage: string;
|
|
214
216
|
};
|
|
215
217
|
}
|
|
218
|
+
/**
|
|
219
|
+
* What a methodology's `escalateGate` hook adds to a static gate (design spec section 27, #35).
|
|
220
|
+
* Core only appends these to the gate (`widenGate`); it never removes or replaces a requirement.
|
|
221
|
+
*/
|
|
222
|
+
interface GateEscalation {
|
|
223
|
+
requires: GateRequirement[];
|
|
224
|
+
evidence: string[];
|
|
225
|
+
/** Why the gate was widened; recorded in the `gate.resolved` event (e.g. the risk level and its assessment). */
|
|
226
|
+
reason: Record<string, string | null>;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* One claim of a context snapshot (design spec section 27, #36). With no `source` it is
|
|
230
|
+
* unverified. `source.path` is repository-relative POSIX (as Git lists it); the engine compares
|
|
231
|
+
* paths and hashes only, it never reads a file.
|
|
232
|
+
*/
|
|
233
|
+
interface ContextAssumption {
|
|
234
|
+
claim: string;
|
|
235
|
+
/** A required claim must be verified (carry a `source`) for the context-grounded policy to pass. */
|
|
236
|
+
required?: boolean;
|
|
237
|
+
source?: {
|
|
238
|
+
path: string;
|
|
239
|
+
lines?: [number, number];
|
|
240
|
+
hash: string;
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
/** `data` of a `context-snapshot` evidence entry. */
|
|
244
|
+
interface ContextSnapshotData {
|
|
245
|
+
/** The repository revision the snapshot was taken at. */
|
|
246
|
+
revision: string;
|
|
247
|
+
assumptions: ContextAssumption[];
|
|
248
|
+
}
|
|
249
|
+
/** An item's current context snapshot as a worker's brief carries it. */
|
|
250
|
+
interface BriefContext extends ContextSnapshotData {
|
|
251
|
+
/** The snapshot artifact (the evidence `ref`). */
|
|
252
|
+
snapshot: string;
|
|
253
|
+
/** Who recorded it. */
|
|
254
|
+
by: string;
|
|
255
|
+
/** Cited paths a later `repo.changed` event listed; empty while the snapshot is fresh. */
|
|
256
|
+
stale: string[];
|
|
257
|
+
/** Claims with no `source`. */
|
|
258
|
+
unverified: string[];
|
|
259
|
+
}
|
|
216
260
|
interface Stage {
|
|
217
261
|
id: string;
|
|
218
262
|
name: string;
|
|
@@ -360,14 +404,49 @@ interface Baseline {
|
|
|
360
404
|
itemSnapshot: Record<string, WorkItem>;
|
|
361
405
|
}
|
|
362
406
|
type MethodologyName = "scrum" | "kanban" | "waterfall" | "investigation" | "experimentation";
|
|
363
|
-
|
|
407
|
+
/**
|
|
408
|
+
* `state.ext`: extension records keyed by their owner. The two built-in records are typed, so the
|
|
409
|
+
* state schema validates them; any other key holds any JSON value (design spec section 26).
|
|
410
|
+
*/
|
|
411
|
+
interface WorkflowExt {
|
|
412
|
+
investigation?: InvestigationState;
|
|
413
|
+
experimentation?: ExperimentationState;
|
|
414
|
+
[key: string]: unknown;
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Workflow state. `N` is the methodology name: the default `MethodologyName` (the five
|
|
418
|
+
* built-ins) keeps every 1.1 consumer's type check unchanged; a custom methodology types its
|
|
419
|
+
* state as `WorkflowState<"its-name">` (design spec section 26).
|
|
420
|
+
*/
|
|
421
|
+
interface WorkflowState<N extends string = MethodologyName> {
|
|
364
422
|
version: 1;
|
|
365
|
-
methodology:
|
|
423
|
+
methodology: N;
|
|
366
424
|
config: unknown;
|
|
367
|
-
/**
|
|
425
|
+
/**
|
|
426
|
+
* Standalone investigation lifecycle, created by its intake ceremony.
|
|
427
|
+
* Since 1.2 a read-only mirror of `ext.investigation`, kept for SDK code that reads this
|
|
428
|
+
* field (in memory only: the file adapter stores `ext.investigation` and restores this mirror on load):
|
|
429
|
+
* once `ext.investigation` exists, a write here is ignored. Read it with
|
|
430
|
+
* `readExt(state, "investigation")` and write it with `writeExt`. It does not make a 1.2 state
|
|
431
|
+
* loadable by 1.1.x, whose schema rejects `ext`. Removed in 2.0.
|
|
432
|
+
* @deprecated
|
|
433
|
+
*/
|
|
368
434
|
investigation?: InvestigationState;
|
|
369
|
-
/**
|
|
435
|
+
/**
|
|
436
|
+
* Standalone isolated candidate experiment, created by its freeze ceremony.
|
|
437
|
+
* Since 1.2 a read-only mirror of `ext.experimentation`, kept for SDK code that reads this
|
|
438
|
+
* field (in memory only: the file adapter stores `ext.experimentation` and restores this mirror on load):
|
|
439
|
+
* once `ext.experimentation` exists, a write here is ignored. Read it with
|
|
440
|
+
* `readExt(state, "experimentation")` and write it with `writeExt`. It does not make a 1.2 state
|
|
441
|
+
* loadable by 1.1.x, whose schema rejects `ext`. Removed in 2.0.
|
|
442
|
+
* @deprecated
|
|
443
|
+
*/
|
|
370
444
|
experimentation?: ExperimentationState;
|
|
445
|
+
/**
|
|
446
|
+
* Extension records keyed by their owner (a methodology name or a common piece id). Read and
|
|
447
|
+
* write it only through `readExt` / `writeExt`. Absent in states written before 1.2.
|
|
448
|
+
*/
|
|
449
|
+
ext?: WorkflowExt;
|
|
371
450
|
items: Record<string, WorkItem>;
|
|
372
451
|
stages: Stage[];
|
|
373
452
|
roles: Record<string, Role>;
|
|
@@ -395,13 +474,13 @@ interface Violation {
|
|
|
395
474
|
message: string;
|
|
396
475
|
fix: string;
|
|
397
476
|
}
|
|
398
|
-
interface Rule {
|
|
477
|
+
interface Rule<N extends string = MethodologyName> {
|
|
399
478
|
id: string;
|
|
400
479
|
severity: "error" | "warning";
|
|
401
|
-
check(state: WorkflowState
|
|
480
|
+
check(state: WorkflowState<N>, action: Action): Violation[];
|
|
402
481
|
}
|
|
403
|
-
interface ApplyResult {
|
|
404
|
-
state: WorkflowState
|
|
482
|
+
interface ApplyResult<N extends string = MethodologyName> {
|
|
483
|
+
state: WorkflowState<N>;
|
|
405
484
|
warnings: Violation[];
|
|
406
485
|
}
|
|
407
486
|
interface Brief {
|
|
@@ -432,6 +511,8 @@ interface Brief {
|
|
|
432
511
|
}>;
|
|
433
512
|
budgetRemaining: Budget;
|
|
434
513
|
gateAhead?: Gate;
|
|
514
|
+
/** the item's context snapshot, from the methodology's `briefContext` hook (spec 27, #36) */
|
|
515
|
+
context?: BriefContext;
|
|
435
516
|
/** for a question item: the escalating item's last handoff */
|
|
436
517
|
parent?: {
|
|
437
518
|
item: string;
|
|
@@ -447,7 +528,7 @@ type CeremonyInput = {
|
|
|
447
528
|
by: string;
|
|
448
529
|
now?: string;
|
|
449
530
|
} & Record<string, unknown>;
|
|
450
|
-
type Ceremony = (state: WorkflowState
|
|
531
|
+
type Ceremony<N extends string = MethodologyName> = (state: WorkflowState<N>, input: CeremonyInput) => ApplyResult<N>;
|
|
451
532
|
interface PlannerOptions {
|
|
452
533
|
schedulerMode: "level" | "throughput";
|
|
453
534
|
/** Stage a todo item is pulled into when dispatched; a function decides per item; omitted/undefined = stay in its current stage. */
|
|
@@ -474,36 +555,54 @@ interface PlannerOptions {
|
|
|
474
555
|
/** Tokens per weight unit when no accounting history exists; default 20000. PlanOptions.fallbackTokensPerWeight wins. */
|
|
475
556
|
fallbackTokensPerWeight?: number;
|
|
476
557
|
}
|
|
477
|
-
|
|
478
|
-
|
|
558
|
+
/**
|
|
559
|
+
* A methodology. `N` is its name: the default `MethodologyName` is the five built-ins; a custom
|
|
560
|
+
* methodology declares `Methodology<MyConfig, "my-name">` (design spec section 26).
|
|
561
|
+
*/
|
|
562
|
+
interface Methodology<C = unknown, N extends string = MethodologyName> {
|
|
563
|
+
name: N;
|
|
479
564
|
vocabulary: Record<CoreTerm, string>;
|
|
480
565
|
validateConfig(config: unknown): C;
|
|
481
566
|
defaultStages(config: C): Stage[];
|
|
482
567
|
defaultRoles(config: C): Role[];
|
|
483
568
|
requiredCapabilities: Capability[];
|
|
484
569
|
exclusiveCapabilities: Capability[];
|
|
485
|
-
plannerOptions(state: WorkflowState): PlannerOptions;
|
|
486
|
-
candidates(state: WorkflowState): WorkItem[];
|
|
487
|
-
invariants(state: WorkflowState
|
|
488
|
-
ceremonies: Record<string, Ceremony
|
|
489
|
-
rules: Rule[];
|
|
490
|
-
metrics(state: WorkflowState): Record<string, number | number[] | Record<string, number>>;
|
|
570
|
+
plannerOptions(state: WorkflowState<N>): PlannerOptions;
|
|
571
|
+
candidates(state: WorkflowState<N>): WorkItem[];
|
|
572
|
+
invariants(state: WorkflowState<N>, item: WorkItem): string[];
|
|
573
|
+
ceremonies: Record<string, Ceremony<N>>;
|
|
574
|
+
rules: Rule<N>[];
|
|
575
|
+
metrics(state: WorkflowState<N>): Record<string, number | number[] | Record<string, number>>;
|
|
491
576
|
humanDefaults: {
|
|
492
577
|
gates: "all" | "none" | string[];
|
|
493
578
|
};
|
|
494
579
|
/** Called after complete(); lets the methodology react (e.g. close a sprint when the budget is gone). */
|
|
495
|
-
afterComplete?(state: WorkflowState
|
|
580
|
+
afterComplete?(state: WorkflowState<N>, itemId: string, now: string): WorkflowState<N>;
|
|
496
581
|
/** Config keys that cannot change after init (changeConfig refuses them). */
|
|
497
582
|
lockedConfigKeys?: string[];
|
|
498
583
|
/** Called by changeConfig after the new config is stored; keeps derived state (e.g. stage policies) in step. */
|
|
499
|
-
afterConfigChange?(state: WorkflowState
|
|
584
|
+
afterConfigChange?(state: WorkflowState<N>, now: string): WorkflowState<N>;
|
|
500
585
|
/** Methodology-specific status for hosts (e.g. cadences due); printed by `exwf status`. */
|
|
501
|
-
report?(state: WorkflowState): Record<string, unknown>;
|
|
586
|
+
report?(state: WorkflowState<N>): Record<string, unknown>;
|
|
502
587
|
/** Called by decide() after a pending entry is resolved; lets the methodology act on it (e.g. baseline a phase gate, apply a change-request decision). */
|
|
503
|
-
afterDecide?(state: WorkflowState
|
|
588
|
+
afterDecide?(state: WorkflowState<N>, entry: PendingHuman, decision: "approve" | "reject", by: string, note: string, now: string): WorkflowState<N>;
|
|
589
|
+
/**
|
|
590
|
+
* Called by complete() before a gated completion is checked; what it returns is appended to the
|
|
591
|
+
* static gate (escalation only) and the widened gate is recorded as `gate.resolved`.
|
|
592
|
+
*/
|
|
593
|
+
escalateGate?(state: WorkflowState<N>, item: WorkItem, gate: Gate): GateEscalation | undefined;
|
|
594
|
+
/**
|
|
595
|
+
* Answers a `custom` stage policy (spec 27, #36) for `plan()` and `complete()`: an array is the
|
|
596
|
+
* policy's violations (empty passes); `undefined` keeps the 1.2 check (`policy:<id>` evidence).
|
|
597
|
+
*/
|
|
598
|
+
customPolicy?(state: WorkflowState<N>, item: WorkItem, policy: Extract<Policy, {
|
|
599
|
+
kind: "custom";
|
|
600
|
+
}>): Violation[] | undefined;
|
|
601
|
+
/** What `synthesizeBrief` puts in `Brief.context` (spec 27, #36); `undefined` leaves it out. */
|
|
602
|
+
briefContext?(state: WorkflowState<N>, item: WorkItem): BriefContext | undefined;
|
|
504
603
|
}
|
|
505
604
|
type ErrorCode = "unknown-item" | "duplicate-item" | "unknown-role" | "duplicate-role" | "unknown-stage" | "missing-capability" | "exclusive-capability" | "role-has-open-items" | "invalid-transition" | "policy-unmet" | "gate-unmet"
|
|
506
605
|
/** reserved: never thrown; kept for type compatibility */
|
|
507
606
|
| "conflict-of-interest" | "handoff-invalid" | "accounting-invalid" | "rule-violation" | "planner-error" | "no-op" | "unknown-pending" | "unknown-ceremony" | "state-version" | "config-invalid" | "budget-exhausted" | "invalid-input";
|
|
508
607
|
|
|
509
|
-
export type { Accounting as A, Brief as B, Capability as C,
|
|
608
|
+
export type { Produced as $, Accounting as A, Brief as B, Capability as C, Iteration as D, Experiment as E, Action as F, GateRequirement as G, Handoff as H, InvestigationConclusion as I, Baseline as J, Blocker as K, ContextSnapshotData as L, Methodology as M, NewItem as N, Observation as O, Policy as P, ImpactAnalysis as Q, Role as R, Stage as S, Transition as T, ItemType as U, Violation as V, WorkflowState as W, Lesson as X, LessonChange as Y, ModelTier as Z, PlannerOptions as _, Budget as a, Spent as a0, Verdict as a1, WorkflowExt as a2, BeliefUpdate as b, Hypothesis as c, InvestigationRound as d, InvestigationState as e, Ceremony as f, Rule as g, ExperimentCandidate as h, ExperimentationState as i, ItemStatus as j, CoreTerm as k, WorkItem as l, Gate as m, GateEscalation as n, ApplyResult as o, ContextAssumption as p, BriefContext as q, ClassOfService as r, CeremonyInput as s, Event as t, Phase as u, PendingHuman as v, ErrorCode as w, MethodologyName as x, ItemPatch as y, Evidence as z };
|
package/dist/types.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';require('./chunk-
|
|
1
|
+
'use strict';require('./chunk-PNWRA4JU.cjs');//# sourceMappingURL=types.cjs.map
|
|
2
2
|
//# sourceMappingURL=types.cjs.map
|
package/dist/types.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as Accounting,
|
|
1
|
+
export { A as Accounting, F as Action, o as ApplyResult, J as Baseline, K as Blocker, B as Brief, q as BriefContext, a as Budget, C as Capability, f as Ceremony, s as CeremonyInput, r as ClassOfService, p as ContextAssumption, L as ContextSnapshotData, k as CoreTerm, w as ErrorCode, t as Event, z as Evidence, m as Gate, n as GateEscalation, G as GateRequirement, H as Handoff, Q as ImpactAnalysis, y as ItemPatch, j as ItemStatus, U as ItemType, D as Iteration, X as Lesson, Y as LessonChange, M as Methodology, x as MethodologyName, Z as ModelTier, N as NewItem, v as PendingHuman, u as Phase, _ as PlannerOptions, P as Policy, $ as Produced, R as Role, g as Rule, a0 as Spent, S as Stage, T as Transition, a1 as Verdict, V as Violation, l as WorkItem, a2 as WorkflowExt, W as WorkflowState } from './types-DLOtndDY.cjs';
|
package/dist/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as Accounting,
|
|
1
|
+
export { A as Accounting, F as Action, o as ApplyResult, J as Baseline, K as Blocker, B as Brief, q as BriefContext, a as Budget, C as Capability, f as Ceremony, s as CeremonyInput, r as ClassOfService, p as ContextAssumption, L as ContextSnapshotData, k as CoreTerm, w as ErrorCode, t as Event, z as Evidence, m as Gate, n as GateEscalation, G as GateRequirement, H as Handoff, Q as ImpactAnalysis, y as ItemPatch, j as ItemStatus, U as ItemType, D as Iteration, X as Lesson, Y as LessonChange, M as Methodology, x as MethodologyName, Z as ModelTier, N as NewItem, v as PendingHuman, u as Phase, _ as PlannerOptions, P as Policy, $ as Produced, R as Role, g as Rule, a0 as Spent, S as Stage, T as Transition, a1 as Verdict, V as Violation, l as WorkItem, a2 as WorkflowExt, W as WorkflowState } from './types-DLOtndDY.js';
|
package/dist/types.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import'./chunk-
|
|
1
|
+
import'./chunk-IDZ435YZ.mjs';//# sourceMappingURL=types.mjs.map
|
|
2
2
|
//# sourceMappingURL=types.mjs.map
|
package/dist/waterfall/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk2FBA7RBS_cjs=require('../chunk-2FBA7RBS.cjs');require('../chunk-GKN5M4B7.cjs'),require('../chunk-BANKVCYY.cjs'),require('../chunk-H26KXQ3I.cjs'),require('../chunk-MU26QW32.cjs'),require('../chunk-OSHBJIYD.cjs');Object.defineProperty(exports,"CHANGE_GATE",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.e}});Object.defineProperty(exports,"DEFAULT_DELIVERABLES",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.b}});Object.defineProperty(exports,"DEFAULT_DELIVER_BY",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.c}});Object.defineProperty(exports,"DEFAULT_PHASE_IDS",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.a}});Object.defineProperty(exports,"DONE",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.k}});Object.defineProperty(exports,"GATE_ID",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.d}});Object.defineProperty(exports,"REVIEW",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.j}});Object.defineProperty(exports,"WATERFALL_VOCABULARY",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.K}});Object.defineProperty(exports,"WORK",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.i}});Object.defineProperty(exports,"approveChange",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.z}});Object.defineProperty(exports,"baselinePhase",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.x}});Object.defineProperty(exports,"configOf",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.g}});Object.defineProperty(exports,"currentPhase",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.s}});Object.defineProperty(exports,"defaultPhases",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.f}});Object.defineProperty(exports,"deliverRoleFor",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.L}});Object.defineProperty(exports,"getPhase",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.o}});Object.defineProperty(exports,"isFrozen",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.t}});Object.defineProperty(exports,"itemsInPhase",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.q}});Object.defineProperty(exports,"lastToPhase",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.w}});Object.defineProperty(exports,"missingDeliverables",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.v}});Object.defineProperty(exports,"missingTraces",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.C}});Object.defineProperty(exports,"openPhase",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.r}});Object.defineProperty(exports,"phaseIndex",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.n}});Object.defineProperty(exports,"phaseOf",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.p}});Object.defineProperty(exports,"phaseReport",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.M}});Object.defineProperty(exports,"phasesOf",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.l}});Object.defineProperty(exports,"producedKinds",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.u}});Object.defineProperty(exports,"rejectChange",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.A}});Object.defineProperty(exports,"reopenPhases",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.y}});Object.defineProperty(exports,"traceabilityMatrix",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.B}});Object.defineProperty(exports,"validateWaterfallConfig",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.h}});Object.defineProperty(exports,"wantPhase",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.D}});Object.defineProperty(exports,"waterfall",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.N}});Object.defineProperty(exports,"waterfallAfterDecide",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.F}});Object.defineProperty(exports,"waterfallCeremonies",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.E}});Object.defineProperty(exports,"waterfallMetrics",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.G}});Object.defineProperty(exports,"waterfallRoles",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.H}});Object.defineProperty(exports,"waterfallRules",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.I}});Object.defineProperty(exports,"waterfallStages",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.J}});Object.defineProperty(exports,"withPhases",{enumerable:true,get:function(){return chunk2FBA7RBS_cjs.m}});//# sourceMappingURL=index.cjs.map
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as Gate, a as Budget, G as GateRequirement, W as WorkflowState, u as Phase, l as WorkItem, S as Stage, R as Role, g as Rule, s as CeremonyInput, v as PendingHuman, M as Methodology, f as Ceremony, k as CoreTerm } from '../types-DLOtndDY.cjs';
|
|
2
2
|
|
|
3
3
|
interface WaterfallPhaseConfig {
|
|
4
4
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as Gate, a as Budget, G as GateRequirement, W as WorkflowState, u as Phase, l as WorkItem, S as Stage, R as Role, g as Rule, s as CeremonyInput, v as PendingHuman, M as Methodology, f as Ceremony, k as CoreTerm } from '../types-DLOtndDY.js';
|
|
2
2
|
|
|
3
3
|
interface WaterfallPhaseConfig {
|
|
4
4
|
id: string;
|
package/dist/waterfall/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{e as CHANGE_GATE,b as DEFAULT_DELIVERABLES,c as DEFAULT_DELIVER_BY,a as DEFAULT_PHASE_IDS,k as DONE,d as GATE_ID,j as REVIEW,K as WATERFALL_VOCABULARY,i as WORK,z as approveChange,x as baselinePhase,g as configOf,s as currentPhase,f as defaultPhases,L as deliverRoleFor,o as getPhase,t as isFrozen,q as itemsInPhase,w as lastToPhase,v as missingDeliverables,C as missingTraces,r as openPhase,n as phaseIndex,p as phaseOf,M as phaseReport,l as phasesOf,u as producedKinds,A as rejectChange,y as reopenPhases,B as traceabilityMatrix,h as validateWaterfallConfig,D as wantPhase,N as waterfall,F as waterfallAfterDecide,E as waterfallCeremonies,G as waterfallMetrics,H as waterfallRoles,I as waterfallRules,J as waterfallStages,m as withPhases}from'../chunk-
|
|
1
|
+
export{e as CHANGE_GATE,b as DEFAULT_DELIVERABLES,c as DEFAULT_DELIVER_BY,a as DEFAULT_PHASE_IDS,k as DONE,d as GATE_ID,j as REVIEW,K as WATERFALL_VOCABULARY,i as WORK,z as approveChange,x as baselinePhase,g as configOf,s as currentPhase,f as defaultPhases,L as deliverRoleFor,o as getPhase,t as isFrozen,q as itemsInPhase,w as lastToPhase,v as missingDeliverables,C as missingTraces,r as openPhase,n as phaseIndex,p as phaseOf,M as phaseReport,l as phasesOf,u as producedKinds,A as rejectChange,y as reopenPhases,B as traceabilityMatrix,h as validateWaterfallConfig,D as wantPhase,N as waterfall,F as waterfallAfterDecide,E as waterfallCeremonies,G as waterfallMetrics,H as waterfallRoles,I as waterfallRules,J as waterfallStages,m as withPhases}from'../chunk-CX2E7ZTQ.mjs';import'../chunk-C4ISBUZR.mjs';import'../chunk-5DCOXGRW.mjs';import'../chunk-PFHVB2WT.mjs';import'../chunk-COPYGMHE.mjs';import'../chunk-YS6CXERQ.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ex-workflow",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Methodology engine for AI teams: Scrum, Kanban, Waterfall, Investigation and Experimentation as data-driven state machines on top of ex-flow",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -131,6 +131,26 @@
|
|
|
131
131
|
"types": "./dist/experimentation/index.d.cts",
|
|
132
132
|
"default": "./dist/experimentation/index.cjs"
|
|
133
133
|
}
|
|
134
|
+
},
|
|
135
|
+
"./registry": {
|
|
136
|
+
"import": {
|
|
137
|
+
"types": "./dist/registry/index.d.ts",
|
|
138
|
+
"default": "./dist/registry/index.mjs"
|
|
139
|
+
},
|
|
140
|
+
"require": {
|
|
141
|
+
"types": "./dist/registry/index.d.cts",
|
|
142
|
+
"default": "./dist/registry/index.cjs"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"./policies": {
|
|
146
|
+
"import": {
|
|
147
|
+
"types": "./dist/policies/index.d.ts",
|
|
148
|
+
"default": "./dist/policies/index.mjs"
|
|
149
|
+
},
|
|
150
|
+
"require": {
|
|
151
|
+
"types": "./dist/policies/index.d.cts",
|
|
152
|
+
"default": "./dist/policies/index.cjs"
|
|
153
|
+
}
|
|
134
154
|
}
|
|
135
155
|
},
|
|
136
156
|
"typesVersions": {
|
|
@@ -161,6 +181,12 @@
|
|
|
161
181
|
],
|
|
162
182
|
"experimentation": [
|
|
163
183
|
"dist/experimentation/index.d.ts"
|
|
184
|
+
],
|
|
185
|
+
"registry": [
|
|
186
|
+
"dist/registry/index.d.ts"
|
|
187
|
+
],
|
|
188
|
+
"policies": [
|
|
189
|
+
"dist/policies/index.d.ts"
|
|
164
190
|
]
|
|
165
191
|
}
|
|
166
192
|
},
|
|
@@ -171,7 +197,7 @@
|
|
|
171
197
|
"CHANGELOG.md"
|
|
172
198
|
],
|
|
173
199
|
"dependencies": {
|
|
174
|
-
"ex-flow": "^1.1.
|
|
200
|
+
"ex-flow": "^1.1.1",
|
|
175
201
|
"exsorted": "^1.2.3"
|
|
176
202
|
},
|
|
177
203
|
"devDependencies": {
|
|
@@ -190,13 +216,14 @@
|
|
|
190
216
|
"minify": "tsup --minify",
|
|
191
217
|
"lint": "oxlint src test",
|
|
192
218
|
"format": "oxfmt src test",
|
|
219
|
+
"check:layers": "node scripts/check-layers.mjs",
|
|
193
220
|
"format:check": "oxfmt --check src test",
|
|
194
221
|
"typecheck": "tsc --noEmit",
|
|
195
222
|
"size": "node scripts/size.mjs",
|
|
196
223
|
"check:dist": "node scripts/check-dist.mjs && node scripts/check-exports.mjs",
|
|
197
224
|
"schema:gen": "node scripts/gen-schema.mjs",
|
|
198
225
|
"schema:check": "node scripts/gen-schema.mjs --check",
|
|
199
|
-
"ci": "pnpm format:check && pnpm lint && pnpm typecheck && pnpm schema:check && pnpm test && pnpm minify && pnpm check:dist && pnpm size",
|
|
226
|
+
"ci": "pnpm format:check && pnpm lint && pnpm check:layers && pnpm typecheck && pnpm schema:check && pnpm test && pnpm minify && pnpm check:dist && pnpm size",
|
|
200
227
|
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\""
|
|
201
228
|
}
|
|
202
229
|
}
|
package/dist/chunk-2FRRD6A3.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var o=class extends Error{code;fix;items;rule;constructor(t,i,e,s={}){if(!e||e.trim()==="")throw new TypeError("WorkflowError: fix must not be empty");super(i),this.name="WorkflowError",this.code=t,this.fix=e,s.items&&(this.items=s.items),s.rule&&(this.rule=s.rule);}toJSON(){return {code:this.code,message:this.message,fix:this.fix,...this.items?{items:this.items}:{},...this.rule?{rule:this.rule}:{}}}};function n(r,t,i,e){throw new o(r,t,i,e)}var l=new Set(["__proto__","constructor","prototype"]);function g(r,t){(typeof r!="string"||!/^[A-Za-z0-9][A-Za-z0-9._-]*$/.test(r)||r.includes("..")||l.has(r))&&n("invalid-input",`${t} ${JSON.stringify(r)} is not a valid id`,"use letters, digits, - _ . (e.g. CART-12)");}export{o as a,n as b,g as c};//# sourceMappingURL=chunk-2FRRD6A3.mjs.map
|
|
2
|
-
//# sourceMappingURL=chunk-2FRRD6A3.mjs.map
|