ex-workflow 1.2.0 → 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 +25 -0
- package/README.md +145 -13
- 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-Gckmqj74.d.ts → budget-BuQ9GWsg.d.ts} +1 -1
- package/dist/{budget-Bm839Qw0.d.cts → budget-DDqQQIgp.d.cts} +1 -1
- package/dist/{chunk-VXOZIP77.cjs → chunk-2FBA7RBS.cjs} +2 -2
- package/dist/{chunk-VXOZIP77.cjs.map → chunk-2FBA7RBS.cjs.map} +1 -1
- package/dist/chunk-3S7F5QXK.mjs +2 -0
- package/dist/{chunk-BYPFTO7P.mjs.map → chunk-3S7F5QXK.mjs.map} +1 -1
- package/dist/{chunk-K4VSMIJZ.cjs → chunk-3ZUBCA7Q.cjs} +2 -2
- package/dist/{chunk-K4VSMIJZ.cjs.map → chunk-3ZUBCA7Q.cjs.map} +1 -1
- package/dist/chunk-4F5HZLKD.cjs +2 -0
- package/dist/{chunk-SFYUJQYW.cjs.map → chunk-4F5HZLKD.cjs.map} +1 -1
- package/dist/{chunk-4HG6A3SF.mjs → chunk-5DCOXGRW.mjs} +2 -2
- package/dist/{chunk-4HG6A3SF.mjs.map → chunk-5DCOXGRW.mjs.map} +1 -1
- 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-32NVJV5C.mjs.map → chunk-5ZGNEY2I.mjs.map} +1 -1
- package/dist/chunk-6PFJYRM7.cjs +2 -0
- package/dist/chunk-6PFJYRM7.cjs.map +1 -0
- package/dist/{chunk-W2P27645.cjs → chunk-BANKVCYY.cjs} +2 -2
- package/dist/{chunk-W2P27645.cjs.map → chunk-BANKVCYY.cjs.map} +1 -1
- package/dist/chunk-BD665RYK.mjs +2 -0
- package/dist/chunk-BD665RYK.mjs.map +1 -0
- package/dist/chunk-COPYGMHE.mjs +2 -0
- package/dist/chunk-COPYGMHE.mjs.map +1 -0
- package/dist/{chunk-3O5MPAJT.cjs → chunk-CVGEIXW6.cjs} +2 -2
- package/dist/{chunk-3O5MPAJT.cjs.map → chunk-CVGEIXW6.cjs.map} +1 -1
- package/dist/chunk-CX2E7ZTQ.mjs +2 -0
- package/dist/{chunk-JNLWI4JM.mjs.map → chunk-CX2E7ZTQ.mjs.map} +1 -1
- package/dist/chunk-DVFTTBCT.cjs +3 -0
- package/dist/chunk-DVFTTBCT.cjs.map +1 -0
- package/dist/{chunk-U3RU5LOF.cjs → chunk-EQXYFHHD.cjs} +2 -2
- package/dist/{chunk-U3RU5LOF.cjs.map → chunk-EQXYFHHD.cjs.map} +1 -1
- package/dist/{chunk-OVR5CK3R.cjs → chunk-H26KXQ3I.cjs} +2 -2
- package/dist/{chunk-OVR5CK3R.cjs.map → chunk-H26KXQ3I.cjs.map} +1 -1
- package/dist/chunk-ILDXZWEL.mjs +2 -0
- package/dist/{chunk-OZAYOPLB.mjs.map → chunk-ILDXZWEL.mjs.map} +1 -1
- package/dist/{chunk-RXY434DX.cjs → chunk-KA6DVHO5.cjs} +4 -4
- package/dist/{chunk-RXY434DX.cjs.map → chunk-KA6DVHO5.cjs.map} +1 -1
- package/dist/chunk-KLOSFZFK.cjs +2 -0
- package/dist/chunk-KLOSFZFK.cjs.map +1 -0
- package/dist/{chunk-WPVL27G4.mjs → chunk-LG23WXAP.mjs} +2 -2
- package/dist/{chunk-WPVL27G4.mjs.map → chunk-LG23WXAP.mjs.map} +1 -1
- 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-7EF47R2J.mjs.map → chunk-OEHVWRJG.mjs.map} +1 -1
- package/dist/{chunk-3GKYL6VB.mjs → chunk-ONVAUZOD.mjs} +3 -3
- package/dist/{chunk-3GKYL6VB.mjs.map → chunk-ONVAUZOD.mjs.map} +1 -1
- package/dist/{chunk-LIATP6LY.mjs → chunk-PFHVB2WT.mjs} +2 -2
- package/dist/{chunk-LIATP6LY.mjs.map → chunk-PFHVB2WT.mjs.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-UMG3WOD7.cjs +2 -0
- package/dist/{chunk-QAENYYU6.cjs.map → chunk-UMG3WOD7.cjs.map} +1 -1
- package/dist/{chunk-6D6FL3XK.mjs → chunk-UT7QV6CE.mjs} +2 -2
- package/dist/{chunk-6D6FL3XK.mjs.map → chunk-UT7QV6CE.mjs.map} +1 -1
- package/dist/chunk-WU5JELOM.mjs +2 -0
- package/dist/chunk-WU5JELOM.mjs.map +1 -0
- package/dist/{chunk-IIEKK2S3.cjs → chunk-YGCNLXPJ.cjs} +2 -2
- package/dist/{chunk-IIEKK2S3.cjs.map → chunk-YGCNLXPJ.cjs.map} +1 -1
- 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 +8 -6
- package/dist/index.d.ts +8 -6
- 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 +1 -1
- package/dist/kanban/index.d.ts +1 -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 +1 -1
- package/dist/registry/index.d.cts +1 -1
- package/dist/registry/index.d.ts +1 -1
- package/dist/registry/index.mjs +1 -1
- package/dist/schema/index.cjs +1 -1
- 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-DjePDfms.d.cts → types-DLOtndDY.d.cts} +61 -1
- package/dist/{types-DjePDfms.d.ts → types-DLOtndDY.d.ts} +61 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +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 +14 -1
- package/dist/chunk-32NVJV5C.mjs +0 -2
- package/dist/chunk-43GLYYA2.cjs +0 -3
- package/dist/chunk-43GLYYA2.cjs.map +0 -1
- package/dist/chunk-7EF47R2J.mjs +0 -2
- package/dist/chunk-BD76VFI4.mjs +0 -3
- package/dist/chunk-BD76VFI4.mjs.map +0 -1
- package/dist/chunk-BHAEPYRJ.cjs +0 -2
- package/dist/chunk-BHAEPYRJ.cjs.map +0 -1
- package/dist/chunk-BYPFTO7P.mjs +0 -2
- package/dist/chunk-FDZB73PH.mjs +0 -2
- package/dist/chunk-FDZB73PH.mjs.map +0 -1
- package/dist/chunk-JNLWI4JM.mjs +0 -2
- package/dist/chunk-LCN4UNYK.cjs +0 -2
- package/dist/chunk-LCN4UNYK.cjs.map +0 -1
- package/dist/chunk-MB465DI4.mjs +0 -2
- package/dist/chunk-MB465DI4.mjs.map +0 -1
- package/dist/chunk-OZAYOPLB.mjs +0 -2
- package/dist/chunk-QAENYYU6.cjs +0 -2
- package/dist/chunk-SFYUJQYW.cjs +0 -2
- package/dist/chunk-UUWDQVIJ.mjs +0 -2
- package/dist/chunk-UUWDQVIJ.mjs.map +0 -1
- package/dist/chunk-Z43GUETW.cjs +0 -2
- package/dist/chunk-Z43GUETW.cjs.map +0 -1
package/dist/cli/bin.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';var
|
|
2
|
+
'use strict';var chunkCVGEIXW6_cjs=require('../chunk-CVGEIXW6.cjs');require('../chunk-EQXYFHHD.cjs'),require('../chunk-KA6DVHO5.cjs'),require('../chunk-RGHM3JJM.cjs'),require('../chunk-3ZUBCA7Q.cjs'),require('../chunk-YGCNLXPJ.cjs'),require('../chunk-2FBA7RBS.cjs'),require('../chunk-GKN5M4B7.cjs'),require('../chunk-BANKVCYY.cjs'),require('../chunk-H26KXQ3I.cjs'),require('../chunk-UMG3WOD7.cjs'),require('../chunk-4F5HZLKD.cjs'),require('../chunk-KLOSFZFK.cjs'),require('../chunk-6PFJYRM7.cjs'),require('../chunk-BBI7AKJK.cjs'),require('../chunk-MU26QW32.cjs'),require('../chunk-DVFTTBCT.cjs'),require('../chunk-OSHBJIYD.cjs');chunkCVGEIXW6_cjs.c(process.argv.slice(2),process.cwd()).then(r=>{process.stdout.write(JSON.stringify(r.out,null,2)+`
|
|
3
3
|
`),process.exitCode=r.exit;},r=>{process.stderr.write(`exwf crashed: ${r.stack??String(r)}
|
|
4
4
|
`),process.exitCode=2;});//# sourceMappingURL=bin.cjs.map
|
|
5
5
|
//# sourceMappingURL=bin.cjs.map
|
package/dist/cli/bin.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/cli/bin.ts"],"names":["runCommand","e"],"mappings":";
|
|
1
|
+
{"version":3,"sources":["../../src/cli/bin.ts"],"names":["runCommand","e"],"mappings":";qnBAGAA,mBAAAA,CAAW,OAAA,CAAQ,KAAK,KAAA,CAAM,CAAC,EAAG,OAAA,CAAQ,GAAA,EAAK,CAAA,CAAE,IAAA,CAC9C,GAAM,CACL,OAAA,CAAQ,OAAO,KAAA,CAAM,IAAA,CAAK,UAAU,CAAA,CAAE,GAAA,CAAK,IAAA,CAAM,CAAC,CAAA,CAAI;AAAA,CAAI,EAC1D,OAAA,CAAQ,QAAA,CAAW,CAAA,CAAE,KACvB,EACCC,CAAAA,EAAe,CACd,OAAA,CAAQ,MAAA,CAAO,MAAM,CAAA,cAAA,EAAkBA,CAAAA,CAAY,KAAA,EAAS,MAAA,CAAOA,CAAC,CAAC;AAAA,CAAI,CAAA,CACzE,OAAA,CAAQ,QAAA,CAAW,EACrB,CACF,CAAA","file":"bin.cjs","sourcesContent":["#!/usr/bin/env node\nimport { runCommand } from \"./commands.ts\";\n\nrunCommand(process.argv.slice(2), process.cwd()).then(\n (r) => {\n process.stdout.write(JSON.stringify(r.out, null, 2) + \"\\n\");\n process.exitCode = r.exit;\n },\n (e: unknown) => {\n process.stderr.write(`exwf crashed: ${(e as Error).stack ?? String(e)}\\n`);\n process.exitCode = 2;\n },\n);\n"]}
|
package/dist/cli/bin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {c}from'../chunk-
|
|
2
|
+
import {c}from'../chunk-LG23WXAP.mjs';import'../chunk-UT7QV6CE.mjs';import'../chunk-ONVAUZOD.mjs';import'../chunk-5GXB6GMX.mjs';import'../chunk-5ZGNEY2I.mjs';import'../chunk-3S7F5QXK.mjs';import'../chunk-CX2E7ZTQ.mjs';import'../chunk-C4ISBUZR.mjs';import'../chunk-5DCOXGRW.mjs';import'../chunk-PFHVB2WT.mjs';import'../chunk-OEHVWRJG.mjs';import'../chunk-ILDXZWEL.mjs';import'../chunk-BD665RYK.mjs';import'../chunk-WU5JELOM.mjs';import'../chunk-TQR3VFZU.mjs';import'../chunk-COPYGMHE.mjs';import'../chunk-QJMOCISZ.mjs';import'../chunk-YS6CXERQ.mjs';c(process.argv.slice(2),process.cwd()).then(r=>{process.stdout.write(JSON.stringify(r.out,null,2)+`
|
|
3
3
|
`),process.exitCode=r.exit;},r=>{process.stderr.write(`exwf crashed: ${r.stack??String(r)}
|
|
4
4
|
`),process.exitCode=2;});//# sourceMappingURL=bin.mjs.map
|
|
5
5
|
//# sourceMappingURL=bin.mjs.map
|
package/dist/cli/bin.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/cli/bin.ts"],"names":["runCommand","e"],"mappings":";
|
|
1
|
+
{"version":3,"sources":["../../src/cli/bin.ts"],"names":["runCommand","e"],"mappings":";oiBAGAA,CAAAA,CAAW,OAAA,CAAQ,KAAK,KAAA,CAAM,CAAC,EAAG,OAAA,CAAQ,GAAA,EAAK,CAAA,CAAE,IAAA,CAC9C,GAAM,CACL,OAAA,CAAQ,OAAO,KAAA,CAAM,IAAA,CAAK,UAAU,CAAA,CAAE,GAAA,CAAK,IAAA,CAAM,CAAC,CAAA,CAAI;AAAA,CAAI,EAC1D,OAAA,CAAQ,QAAA,CAAW,CAAA,CAAE,KACvB,EACCC,CAAAA,EAAe,CACd,OAAA,CAAQ,MAAA,CAAO,MAAM,CAAA,cAAA,EAAkBA,CAAAA,CAAY,KAAA,EAAS,MAAA,CAAOA,CAAC,CAAC;AAAA,CAAI,CAAA,CACzE,OAAA,CAAQ,QAAA,CAAW,EACrB,CACF,CAAA","file":"bin.mjs","sourcesContent":["#!/usr/bin/env node\nimport { runCommand } from \"./commands.ts\";\n\nrunCommand(process.argv.slice(2), process.cwd()).then(\n (r) => {\n process.stdout.write(JSON.stringify(r.out, null, 2) + \"\\n\");\n process.exitCode = r.exit;\n },\n (e: unknown) => {\n process.stderr.write(`exwf crashed: ${(e as Error).stack ?? String(e)}\\n`);\n process.exitCode = 2;\n },\n);\n"]}
|
package/dist/cli/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkCVGEIXW6_cjs=require('../chunk-CVGEIXW6.cjs');require('../chunk-EQXYFHHD.cjs'),require('../chunk-KA6DVHO5.cjs'),require('../chunk-RGHM3JJM.cjs'),require('../chunk-3ZUBCA7Q.cjs'),require('../chunk-YGCNLXPJ.cjs'),require('../chunk-2FBA7RBS.cjs'),require('../chunk-GKN5M4B7.cjs'),require('../chunk-BANKVCYY.cjs'),require('../chunk-H26KXQ3I.cjs'),require('../chunk-UMG3WOD7.cjs'),require('../chunk-4F5HZLKD.cjs'),require('../chunk-KLOSFZFK.cjs'),require('../chunk-6PFJYRM7.cjs'),require('../chunk-BBI7AKJK.cjs'),require('../chunk-MU26QW32.cjs'),require('../chunk-DVFTTBCT.cjs'),require('../chunk-OSHBJIYD.cjs');Object.defineProperty(exports,"USAGE",{enumerable:true,get:function(){return chunkCVGEIXW6_cjs.a}});Object.defineProperty(exports,"parseArgs",{enumerable:true,get:function(){return chunkCVGEIXW6_cjs.b}});Object.defineProperty(exports,"runCommand",{enumerable:true,get:function(){return chunkCVGEIXW6_cjs.c}});//# sourceMappingURL=index.cjs.map
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as USAGE,b as parseArgs,c as runCommand}from'../chunk-
|
|
1
|
+
export{a as USAGE,b as parseArgs,c as runCommand}from'../chunk-LG23WXAP.mjs';import'../chunk-UT7QV6CE.mjs';import'../chunk-ONVAUZOD.mjs';import'../chunk-5GXB6GMX.mjs';import'../chunk-5ZGNEY2I.mjs';import'../chunk-3S7F5QXK.mjs';import'../chunk-CX2E7ZTQ.mjs';import'../chunk-C4ISBUZR.mjs';import'../chunk-5DCOXGRW.mjs';import'../chunk-PFHVB2WT.mjs';import'../chunk-OEHVWRJG.mjs';import'../chunk-ILDXZWEL.mjs';import'../chunk-BD665RYK.mjs';import'../chunk-WU5JELOM.mjs';import'../chunk-TQR3VFZU.mjs';import'../chunk-COPYGMHE.mjs';import'../chunk-QJMOCISZ.mjs';import'../chunk-YS6CXERQ.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk4F5HZLKD_cjs=require('../chunk-4F5HZLKD.cjs');require('../chunk-KLOSFZFK.cjs'),require('../chunk-6PFJYRM7.cjs'),require('../chunk-BBI7AKJK.cjs'),require('../chunk-MU26QW32.cjs'),require('../chunk-OSHBJIYD.cjs');Object.defineProperty(exports,"experimentation",{enumerable:true,get:function(){return chunk4F5HZLKD_cjs.h}});Object.defineProperty(exports,"experimentationCeremonies",{enumerable:true,get:function(){return chunk4F5HZLKD_cjs.b}});Object.defineProperty(exports,"experimentationMetrics",{enumerable:true,get:function(){return chunk4F5HZLKD_cjs.c}});Object.defineProperty(exports,"experimentationReport",{enumerable:true,get:function(){return chunk4F5HZLKD_cjs.d}});Object.defineProperty(exports,"experimentationRoles",{enumerable:true,get:function(){return chunk4F5HZLKD_cjs.e}});Object.defineProperty(exports,"experimentationRules",{enumerable:true,get:function(){return chunk4F5HZLKD_cjs.f}});Object.defineProperty(exports,"experimentationStages",{enumerable:true,get:function(){return chunk4F5HZLKD_cjs.g}});Object.defineProperty(exports,"validateExperimentationConfig",{enumerable:true,get:function(){return chunk4F5HZLKD_cjs.a}});//# sourceMappingURL=index.cjs.map
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as Ceremony, a as Budget, W as WorkflowState, R as Role, g as Rule, S as Stage, M as Methodology } from '../types-
|
|
2
|
-
export { h as ExperimentCandidate, i as ExperimentationState } from '../types-
|
|
1
|
+
import { f as Ceremony, a as Budget, W as WorkflowState, R as Role, g as Rule, S as Stage, M as Methodology } from '../types-DLOtndDY.cjs';
|
|
2
|
+
export { h as ExperimentCandidate, i as ExperimentationState } from '../types-DLOtndDY.cjs';
|
|
3
3
|
|
|
4
4
|
declare function experimentationCeremonies(): Record<string, Ceremony>;
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as Ceremony, a as Budget, W as WorkflowState, R as Role, g as Rule, S as Stage, M as Methodology } from '../types-
|
|
2
|
-
export { h as ExperimentCandidate, i as ExperimentationState } from '../types-
|
|
1
|
+
import { f as Ceremony, a as Budget, W as WorkflowState, R as Role, g as Rule, S as Stage, M as Methodology } from '../types-DLOtndDY.js';
|
|
2
|
+
export { h as ExperimentCandidate, i as ExperimentationState } from '../types-DLOtndDY.js';
|
|
3
3
|
|
|
4
4
|
declare function experimentationCeremonies(): Record<string, Ceremony>;
|
|
5
5
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{h as experimentation,b as experimentationCeremonies,c as experimentationMetrics,d as experimentationReport,e as experimentationRoles,f as experimentationRules,g as experimentationStages,a as validateExperimentationConfig}from'../chunk-
|
|
1
|
+
export{h as experimentation,b as experimentationCeremonies,c as experimentationMetrics,d as experimentationReport,e as experimentationRoles,f as experimentationRules,g as experimentationStages,a as validateExperimentationConfig}from'../chunk-ILDXZWEL.mjs';import'../chunk-BD665RYK.mjs';import'../chunk-WU5JELOM.mjs';import'../chunk-TQR3VFZU.mjs';import'../chunk-COPYGMHE.mjs';import'../chunk-YS6CXERQ.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkRGHM3JJM_cjs=require('./chunk-RGHM3JJM.cjs');require('./chunk-PNWRA4JU.cjs');var chunkH26KXQ3I_cjs=require('./chunk-H26KXQ3I.cjs'),chunkKLOSFZFK_cjs=require('./chunk-KLOSFZFK.cjs'),chunk6PFJYRM7_cjs=require('./chunk-6PFJYRM7.cjs'),chunkBBI7AKJK_cjs=require('./chunk-BBI7AKJK.cjs'),chunkMU26QW32_cjs=require('./chunk-MU26QW32.cjs'),chunkOSHBJIYD_cjs=require('./chunk-OSHBJIYD.cjs');var ae="1.3.0";Object.defineProperty(exports,"complete",{enumerable:true,get:function(){return chunkRGHM3JJM_cjs.f}});Object.defineProperty(exports,"correctAccounting",{enumerable:true,get:function(){return chunkRGHM3JJM_cjs.g}});Object.defineProperty(exports,"next",{enumerable:true,get:function(){return chunkRGHM3JJM_cjs.e}});Object.defineProperty(exports,"openQuestions",{enumerable:true,get:function(){return chunkRGHM3JJM_cjs.d}});Object.defineProperty(exports,"registerRole",{enumerable:true,get:function(){return chunkRGHM3JJM_cjs.a}});Object.defineProperty(exports,"retireRole",{enumerable:true,get:function(){return chunkRGHM3JJM_cjs.b}});Object.defineProperty(exports,"synthesizeBrief",{enumerable:true,get:function(){return chunkRGHM3JJM_cjs.c}});Object.defineProperty(exports,"applyAgreement",{enumerable:true,get:function(){return chunkH26KXQ3I_cjs.a}});Object.defineProperty(exports,"retireAgreement",{enumerable:true,get:function(){return chunkH26KXQ3I_cjs.b}});Object.defineProperty(exports,"frozenChanges",{enumerable:true,get:function(){return chunkKLOSFZFK_cjs.a}});Object.defineProperty(exports,"independenceConflicts",{enumerable:true,get:function(){return chunk6PFJYRM7_cjs.a}});Object.defineProperty(exports,"readExt",{enumerable:true,get:function(){return chunkBBI7AKJK_cjs.a}});Object.defineProperty(exports,"writeExt",{enumerable:true,get:function(){return chunkBBI7AKJK_cjs.b}});Object.defineProperty(exports,"ZERO_SPENT",{enumerable:true,get:function(){return chunkMU26QW32_cjs.K}});Object.defineProperty(exports,"addEvidence",{enumerable:true,get:function(){return chunkMU26QW32_cjs.z}});Object.defineProperty(exports,"addItem",{enumerable:true,get:function(){return chunkMU26QW32_cjs.s}});Object.defineProperty(exports,"addSpent",{enumerable:true,get:function(){return chunkMU26QW32_cjs.L}});Object.defineProperty(exports,"appendEvent",{enumerable:true,get:function(){return chunkMU26QW32_cjs.c}});Object.defineProperty(exports,"applyAction",{enumerable:true,get:function(){return chunkMU26QW32_cjs.W}});Object.defineProperty(exports,"approversFor",{enumerable:true,get:function(){return chunkMU26QW32_cjs.i}});Object.defineProperty(exports,"assertPolicies",{enumerable:true,get:function(){return chunkMU26QW32_cjs.D}});Object.defineProperty(exports,"assignRole",{enumerable:true,get:function(){return chunkMU26QW32_cjs.Q}});Object.defineProperty(exports,"authorOf",{enumerable:true,get:function(){return chunkMU26QW32_cjs.G}});Object.defineProperty(exports,"canDo",{enumerable:true,get:function(){return chunkMU26QW32_cjs.l}});Object.defineProperty(exports,"changeConfig",{enumerable:true,get:function(){return chunkMU26QW32_cjs.Y}});Object.defineProperty(exports,"checkGate",{enumerable:true,get:function(){return chunkMU26QW32_cjs.H}});Object.defineProperty(exports,"clearBlocker",{enumerable:true,get:function(){return chunkMU26QW32_cjs.B}});Object.defineProperty(exports,"coreRulesFor",{enumerable:true,get:function(){return chunkMU26QW32_cjs.U}});Object.defineProperty(exports,"createState",{enumerable:true,get:function(){return chunkMU26QW32_cjs.b}});Object.defineProperty(exports,"decide",{enumerable:true,get:function(){return chunkMU26QW32_cjs.J}});Object.defineProperty(exports,"editItem",{enumerable:true,get:function(){return chunkMU26QW32_cjs.t}});Object.defineProperty(exports,"estimateTokens",{enumerable:true,get:function(){return chunkMU26QW32_cjs.O}});Object.defineProperty(exports,"evaluatePolicies",{enumerable:true,get:function(){return chunkMU26QW32_cjs.C}});Object.defineProperty(exports,"getItem",{enumerable:true,get:function(){return chunkMU26QW32_cjs.r}});Object.defineProperty(exports,"hasCapability",{enumerable:true,get:function(){return chunkMU26QW32_cjs.f}});Object.defineProperty(exports,"init",{enumerable:true,get:function(){return chunkMU26QW32_cjs.X}});Object.defineProperty(exports,"isExhausted",{enumerable:true,get:function(){return chunkMU26QW32_cjs.N}});Object.defineProperty(exports,"isTerminalStage",{enumerable:true,get:function(){return chunkMU26QW32_cjs.p}});Object.defineProperty(exports,"lastDispatchBefore",{enumerable:true,get:function(){return chunkMU26QW32_cjs.F}});Object.defineProperty(exports,"lastEvent",{enumerable:true,get:function(){return chunkMU26QW32_cjs.d}});Object.defineProperty(exports,"moveItem",{enumerable:true,get:function(){return chunkMU26QW32_cjs.u}});Object.defineProperty(exports,"nextStageOf",{enumerable:true,get:function(){return chunkMU26QW32_cjs.o}});Object.defineProperty(exports,"nowOf",{enumerable:true,get:function(){return chunkMU26QW32_cjs.a}});Object.defineProperty(exports,"openIteration",{enumerable:true,get:function(){return chunkMU26QW32_cjs.P}});Object.defineProperty(exports,"plan",{enumerable:true,get:function(){return chunkMU26QW32_cjs.T}});Object.defineProperty(exports,"raiseBlocker",{enumerable:true,get:function(){return chunkMU26QW32_cjs.A}});Object.defineProperty(exports,"raisePending",{enumerable:true,get:function(){return chunkMU26QW32_cjs.I}});Object.defineProperty(exports,"remaining",{enumerable:true,get:function(){return chunkMU26QW32_cjs.M}});Object.defineProperty(exports,"requireCap",{enumerable:true,get:function(){return chunkMU26QW32_cjs.m}});Object.defineProperty(exports,"requireCapabilities",{enumerable:true,get:function(){return chunkMU26QW32_cjs.j}});Object.defineProperty(exports,"resourceCapsFor",{enumerable:true,get:function(){return chunkMU26QW32_cjs.R}});Object.defineProperty(exports,"rolesWith",{enumerable:true,get:function(){return chunkMU26QW32_cjs.g}});Object.defineProperty(exports,"separationLost",{enumerable:true,get:function(){return chunkMU26QW32_cjs.k}});Object.defineProperty(exports,"stageOf",{enumerable:true,get:function(){return chunkMU26QW32_cjs.n}});Object.defineProperty(exports,"toExNodes",{enumerable:true,get:function(){return chunkMU26QW32_cjs.S}});Object.defineProperty(exports,"validateAction",{enumerable:true,get:function(){return chunkMU26QW32_cjs.V}});Object.defineProperty(exports,"WorkflowError",{enumerable:true,get:function(){return chunkOSHBJIYD_cjs.a}});Object.defineProperty(exports,"assertId",{enumerable:true,get:function(){return chunkOSHBJIYD_cjs.c}});Object.defineProperty(exports,"fail",{enumerable:true,get:function(){return chunkOSHBJIYD_cjs.b}});exports.VERSION=ae;//# sourceMappingURL=index.cjs.map
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":["VERSION"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":["VERSION"],"mappings":"mZAAO,IAAMA,EAAAA,CAAU","file":"index.cjs","sourcesContent":["export const VERSION = \"1.3.0\";\nexport * from \"./core/types.ts\";\nexport { WorkflowError, fail } from \"./core/errors.ts\";\nexport { createState, appendEvent, lastEvent, nowOf } from \"./core/state.ts\";\nexport { registerRole, retireRole } from \"./core/roles/registry.ts\";\nexport { hasCapability, rolesWith, approversFor } from \"./core/roles/lookup.ts\";\nexport { requireCapabilities, separationLost, canDo, requireCap } from \"./core/roles/guards.ts\";\nexport { assertId } from \"./core/errors.ts\";\nexport { stageOf, nextStageOf, isTerminalStage } from \"./core/items/stage.ts\";\nexport { getItem, addItem, editItem } from \"./core/items/record.ts\";\nexport { moveItem } from \"./core/items/move.ts\";\nexport { addEvidence } from \"./core/items/evidence.ts\";\nexport { raiseBlocker, clearBlocker } from \"./core/items/blockers.ts\";\nexport type { ItemPatch } from \"./core/types.ts\";\nexport { applyAgreement, retireAgreement } from \"./core/agreements.ts\";\nexport { evaluatePolicies, assertPolicies } from \"./core/policies.ts\";\nexport { checkGate, authorOf, lastDispatchBefore, raisePending, decide } from \"./core/gates.ts\";\nexport type { GateResult } from \"./core/gates.ts\";\nexport { ZERO_SPENT, addSpent, remaining, isExhausted, estimateTokens } from \"./core/budget.ts\";\nexport type { EstimateMode } from \"./core/budget.ts\";\nexport { plan, toExNodes, assignRole, resourceCapsFor, openIteration } from \"./core/planner.ts\";\nexport type { PlanOptions, PlanReason, PlanResult, Skipped } from \"./core/planner.ts\";\nexport { synthesizeBrief, next, openQuestions } from \"./core/brief.ts\";\nexport type { NextResult } from \"./core/brief.ts\";\nexport { complete } from \"./core/complete.ts\";\nexport { correctAccounting } from \"./core/accounting.ts\";\nexport type { AccountingPatch } from \"./core/accounting.ts\";\nexport { coreRulesFor } from \"./core/rules.ts\";\nexport { applyAction, validateAction, init, changeConfig } from \"./core/methodology.ts\";\nexport type { InitInput } from \"./core/methodology.ts\";\nexport { readExt, writeExt } from \"./interface/ext.ts\";\nexport type { LegacyExtRecords } from \"./interface/ext.ts\";\nexport { independenceConflicts } from \"./common/independence.ts\";\nexport { frozenChanges } from \"./common/frozen.ts\";\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { E as EstimateMode, Z as ZERO_SPENT, a as addSpent, c as canDo, e as estimateTokens, i as isExhausted, r as remaining, b as requireCap, d as requireCapabilities, s as separationLost } from './budget-
|
|
1
|
+
import { w as ErrorCode, W as WorkflowState, x as MethodologyName, S as Stage, R as Role, t as Event, C as Capability, N as NewItem, y as ItemPatch, l as WorkItem, j as ItemStatus, z as Evidence, P as Policy, M as Methodology, V as Violation, m as Gate, T as Transition, v as PendingHuman, D as Iteration, B as Brief, H as Handoff, A as Accounting, o as ApplyResult, g as Rule, F as Action, e as InvestigationState, i as ExperimentationState } from './types-DLOtndDY.cjs';
|
|
2
|
+
export { J as Baseline, K as Blocker, q as BriefContext, a as Budget, f as Ceremony, s as CeremonyInput, r as ClassOfService, p as ContextAssumption, L as ContextSnapshotData, k as CoreTerm, n as GateEscalation, G as GateRequirement, Q as ImpactAnalysis, U as ItemType, X as Lesson, Y as LessonChange, Z as ModelTier, u as Phase, _ as PlannerOptions, $ as Produced, a0 as Spent, a1 as Verdict, a2 as WorkflowExt } from './types-DLOtndDY.cjs';
|
|
3
|
+
export { E as EstimateMode, Z as ZERO_SPENT, a as addSpent, c as canDo, e as estimateTokens, i as isExhausted, r as remaining, b as requireCap, d as requireCapabilities, s as separationLost } from './budget-DDqQQIgp.cjs';
|
|
4
4
|
import { ExNode } from 'ex-flow';
|
|
5
5
|
|
|
6
6
|
interface WorkflowErrorExtra {
|
|
@@ -99,9 +99,11 @@ declare function applyAgreement(state: WorkflowState, change: {
|
|
|
99
99
|
declare function retireAgreement<N extends string>(state: WorkflowState<N>, text: string, by: string, now: string): WorkflowState<N>;
|
|
100
100
|
declare function retireAgreement(state: WorkflowState, text: string, by: string, now: string): WorkflowState;
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
/** The part of a methodology policy evaluation reads: its `customPolicy` hook (spec 27, #36). */
|
|
103
|
+
type PolicyHook<N extends string> = Pick<Methodology<unknown, N>, "customPolicy">;
|
|
104
|
+
declare function evaluatePolicies<N extends string>(state: WorkflowState<N>, item: WorkItem, policies: Policy[], methodology?: PolicyHook<N>): Violation[];
|
|
103
105
|
declare function evaluatePolicies(state: WorkflowState, item: WorkItem, policies: Policy[]): Violation[];
|
|
104
|
-
declare function assertPolicies(state: WorkflowState<
|
|
106
|
+
declare function assertPolicies<N extends string>(state: WorkflowState<N>, item: WorkItem, policies: Policy[], context: string, methodology?: PolicyHook<N>): void;
|
|
105
107
|
declare function assertPolicies(state: WorkflowState, item: WorkItem, policies: Policy[], context: string): void;
|
|
106
108
|
|
|
107
109
|
type GateResult = {
|
|
@@ -280,6 +282,6 @@ declare function frozenChanges<K extends string>(frozen: {
|
|
|
280
282
|
readonly [P in K]?: unknown;
|
|
281
283
|
}, supplied: object | undefined, keys?: readonly K[]): K[];
|
|
282
284
|
|
|
283
|
-
declare const VERSION = "1.
|
|
285
|
+
declare const VERSION = "1.3.0";
|
|
284
286
|
|
|
285
287
|
export { Accounting, type AccountingPatch, Action, ApplyResult, Brief, Capability, ErrorCode, Event, Evidence, Gate, type GateResult, Handoff, type InitInput, ItemPatch, ItemStatus, Iteration, type LegacyExtRecords, Methodology, MethodologyName, NewItem, type NextResult, PendingHuman, type PlanOptions, type PlanReason, type PlanResult, Policy, Role, Rule, type Skipped, Stage, Transition, VERSION, Violation, WorkItem, WorkflowError, WorkflowState, addEvidence, addItem, appendEvent, applyAction, applyAgreement, approversFor, assertId, assertPolicies, assignRole, authorOf, changeConfig, checkGate, clearBlocker, complete, coreRulesFor, correctAccounting, createState, decide, editItem, evaluatePolicies, fail, frozenChanges, getItem, hasCapability, independenceConflicts, init, isTerminalStage, lastDispatchBefore, lastEvent, moveItem, next, nextStageOf, nowOf, openIteration, openQuestions, plan, raiseBlocker, raisePending, readExt, registerRole, resourceCapsFor, retireAgreement, retireRole, rolesWith, stageOf, synthesizeBrief, toExNodes, validateAction, writeExt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { E as EstimateMode, Z as ZERO_SPENT, a as addSpent, c as canDo, e as estimateTokens, i as isExhausted, r as remaining, b as requireCap, d as requireCapabilities, s as separationLost } from './budget-
|
|
1
|
+
import { w as ErrorCode, W as WorkflowState, x as MethodologyName, S as Stage, R as Role, t as Event, C as Capability, N as NewItem, y as ItemPatch, l as WorkItem, j as ItemStatus, z as Evidence, P as Policy, M as Methodology, V as Violation, m as Gate, T as Transition, v as PendingHuman, D as Iteration, B as Brief, H as Handoff, A as Accounting, o as ApplyResult, g as Rule, F as Action, e as InvestigationState, i as ExperimentationState } from './types-DLOtndDY.js';
|
|
2
|
+
export { J as Baseline, K as Blocker, q as BriefContext, a as Budget, f as Ceremony, s as CeremonyInput, r as ClassOfService, p as ContextAssumption, L as ContextSnapshotData, k as CoreTerm, n as GateEscalation, G as GateRequirement, Q as ImpactAnalysis, U as ItemType, X as Lesson, Y as LessonChange, Z as ModelTier, u as Phase, _ as PlannerOptions, $ as Produced, a0 as Spent, a1 as Verdict, a2 as WorkflowExt } from './types-DLOtndDY.js';
|
|
3
|
+
export { E as EstimateMode, Z as ZERO_SPENT, a as addSpent, c as canDo, e as estimateTokens, i as isExhausted, r as remaining, b as requireCap, d as requireCapabilities, s as separationLost } from './budget-BuQ9GWsg.js';
|
|
4
4
|
import { ExNode } from 'ex-flow';
|
|
5
5
|
|
|
6
6
|
interface WorkflowErrorExtra {
|
|
@@ -99,9 +99,11 @@ declare function applyAgreement(state: WorkflowState, change: {
|
|
|
99
99
|
declare function retireAgreement<N extends string>(state: WorkflowState<N>, text: string, by: string, now: string): WorkflowState<N>;
|
|
100
100
|
declare function retireAgreement(state: WorkflowState, text: string, by: string, now: string): WorkflowState;
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
/** The part of a methodology policy evaluation reads: its `customPolicy` hook (spec 27, #36). */
|
|
103
|
+
type PolicyHook<N extends string> = Pick<Methodology<unknown, N>, "customPolicy">;
|
|
104
|
+
declare function evaluatePolicies<N extends string>(state: WorkflowState<N>, item: WorkItem, policies: Policy[], methodology?: PolicyHook<N>): Violation[];
|
|
103
105
|
declare function evaluatePolicies(state: WorkflowState, item: WorkItem, policies: Policy[]): Violation[];
|
|
104
|
-
declare function assertPolicies(state: WorkflowState<
|
|
106
|
+
declare function assertPolicies<N extends string>(state: WorkflowState<N>, item: WorkItem, policies: Policy[], context: string, methodology?: PolicyHook<N>): void;
|
|
105
107
|
declare function assertPolicies(state: WorkflowState, item: WorkItem, policies: Policy[], context: string): void;
|
|
106
108
|
|
|
107
109
|
type GateResult = {
|
|
@@ -280,6 +282,6 @@ declare function frozenChanges<K extends string>(frozen: {
|
|
|
280
282
|
readonly [P in K]?: unknown;
|
|
281
283
|
}, supplied: object | undefined, keys?: readonly K[]): K[];
|
|
282
284
|
|
|
283
|
-
declare const VERSION = "1.
|
|
285
|
+
declare const VERSION = "1.3.0";
|
|
284
286
|
|
|
285
287
|
export { Accounting, type AccountingPatch, Action, ApplyResult, Brief, Capability, ErrorCode, Event, Evidence, Gate, type GateResult, Handoff, type InitInput, ItemPatch, ItemStatus, Iteration, type LegacyExtRecords, Methodology, MethodologyName, NewItem, type NextResult, PendingHuman, type PlanOptions, type PlanReason, type PlanResult, Policy, Role, Rule, type Skipped, Stage, Transition, VERSION, Violation, WorkItem, WorkflowError, WorkflowState, addEvidence, addItem, appendEvent, applyAction, applyAgreement, approversFor, assertId, assertPolicies, assignRole, authorOf, changeConfig, checkGate, clearBlocker, complete, coreRulesFor, correctAccounting, createState, decide, editItem, evaluatePolicies, fail, frozenChanges, getItem, hasCapability, independenceConflicts, init, isTerminalStage, lastDispatchBefore, lastEvent, moveItem, next, nextStageOf, nowOf, openIteration, openQuestions, plan, raiseBlocker, raisePending, readExt, registerRole, resourceCapsFor, retireAgreement, retireRole, rolesWith, stageOf, synthesizeBrief, toExNodes, validateAction, writeExt };
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{f as complete,g as correctAccounting,e as next,d as openQuestions,a as registerRole,b as retireRole,c as synthesizeBrief}from'./chunk-
|
|
1
|
+
export{f as complete,g as correctAccounting,e as next,d as openQuestions,a as registerRole,b as retireRole,c as synthesizeBrief}from'./chunk-5GXB6GMX.mjs';import'./chunk-IDZ435YZ.mjs';export{a as applyAgreement,b as retireAgreement}from'./chunk-PFHVB2WT.mjs';export{a as frozenChanges}from'./chunk-BD665RYK.mjs';export{a as independenceConflicts}from'./chunk-WU5JELOM.mjs';export{a as readExt,b as writeExt}from'./chunk-TQR3VFZU.mjs';export{K as ZERO_SPENT,z as addEvidence,s as addItem,L as addSpent,c as appendEvent,W as applyAction,i as approversFor,D as assertPolicies,Q as assignRole,G as authorOf,l as canDo,Y as changeConfig,H as checkGate,B as clearBlocker,U as coreRulesFor,b as createState,J as decide,t as editItem,O as estimateTokens,C as evaluatePolicies,r as getItem,f as hasCapability,X as init,N as isExhausted,p as isTerminalStage,F as lastDispatchBefore,d as lastEvent,u as moveItem,o as nextStageOf,a as nowOf,P as openIteration,T as plan,A as raiseBlocker,I as raisePending,M as remaining,m as requireCap,j as requireCapabilities,R as resourceCapsFor,g as rolesWith,k as separationLost,n as stageOf,S as toExNodes,V as validateAction}from'./chunk-COPYGMHE.mjs';export{a as WorkflowError,c as assertId,b as fail}from'./chunk-YS6CXERQ.mjs';var ae="1.3.0";export{ae as VERSION};//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":["VERSION"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":["VERSION"],"mappings":"0uCAAO,IAAMA,EAAAA,CAAU","file":"index.mjs","sourcesContent":["export const VERSION = \"1.3.0\";\nexport * from \"./core/types.ts\";\nexport { WorkflowError, fail } from \"./core/errors.ts\";\nexport { createState, appendEvent, lastEvent, nowOf } from \"./core/state.ts\";\nexport { registerRole, retireRole } from \"./core/roles/registry.ts\";\nexport { hasCapability, rolesWith, approversFor } from \"./core/roles/lookup.ts\";\nexport { requireCapabilities, separationLost, canDo, requireCap } from \"./core/roles/guards.ts\";\nexport { assertId } from \"./core/errors.ts\";\nexport { stageOf, nextStageOf, isTerminalStage } from \"./core/items/stage.ts\";\nexport { getItem, addItem, editItem } from \"./core/items/record.ts\";\nexport { moveItem } from \"./core/items/move.ts\";\nexport { addEvidence } from \"./core/items/evidence.ts\";\nexport { raiseBlocker, clearBlocker } from \"./core/items/blockers.ts\";\nexport type { ItemPatch } from \"./core/types.ts\";\nexport { applyAgreement, retireAgreement } from \"./core/agreements.ts\";\nexport { evaluatePolicies, assertPolicies } from \"./core/policies.ts\";\nexport { checkGate, authorOf, lastDispatchBefore, raisePending, decide } from \"./core/gates.ts\";\nexport type { GateResult } from \"./core/gates.ts\";\nexport { ZERO_SPENT, addSpent, remaining, isExhausted, estimateTokens } from \"./core/budget.ts\";\nexport type { EstimateMode } from \"./core/budget.ts\";\nexport { plan, toExNodes, assignRole, resourceCapsFor, openIteration } from \"./core/planner.ts\";\nexport type { PlanOptions, PlanReason, PlanResult, Skipped } from \"./core/planner.ts\";\nexport { synthesizeBrief, next, openQuestions } from \"./core/brief.ts\";\nexport type { NextResult } from \"./core/brief.ts\";\nexport { complete } from \"./core/complete.ts\";\nexport { correctAccounting } from \"./core/accounting.ts\";\nexport type { AccountingPatch } from \"./core/accounting.ts\";\nexport { coreRulesFor } from \"./core/rules.ts\";\nexport { applyAction, validateAction, init, changeConfig } from \"./core/methodology.ts\";\nexport type { InitInput } from \"./core/methodology.ts\";\nexport { readExt, writeExt } from \"./interface/ext.ts\";\nexport type { LegacyExtRecords } from \"./interface/ext.ts\";\nexport { independenceConflicts } from \"./common/independence.ts\";\nexport { frozenChanges } from \"./common/frozen.ts\";\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkUMG3WOD7_cjs=require('../chunk-UMG3WOD7.cjs');require('../chunk-KLOSFZFK.cjs'),require('../chunk-6PFJYRM7.cjs'),require('../chunk-BBI7AKJK.cjs'),require('../chunk-MU26QW32.cjs'),require('../chunk-OSHBJIYD.cjs');Object.defineProperty(exports,"investigation",{enumerable:true,get:function(){return chunkUMG3WOD7_cjs.b}});Object.defineProperty(exports,"validateInvestigationConfig",{enumerable:true,get:function(){return chunkUMG3WOD7_cjs.a}});//# sourceMappingURL=index.cjs.map
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Budget, M as Methodology } from '../types-
|
|
2
|
-
export { b as BeliefUpdate, E as Experiment, c as Hypothesis, I as InvestigationConclusion, d as InvestigationRound, e as InvestigationState, O as Observation } from '../types-
|
|
1
|
+
import { a as Budget, M as Methodology } from '../types-DLOtndDY.cjs';
|
|
2
|
+
export { b as BeliefUpdate, E as Experiment, c as Hypothesis, I as InvestigationConclusion, d as InvestigationRound, e as InvestigationState, O as Observation } from '../types-DLOtndDY.cjs';
|
|
3
3
|
|
|
4
4
|
interface InvestigationConfig {
|
|
5
5
|
question: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Budget, M as Methodology } from '../types-
|
|
2
|
-
export { b as BeliefUpdate, E as Experiment, c as Hypothesis, I as InvestigationConclusion, d as InvestigationRound, e as InvestigationState, O as Observation } from '../types-
|
|
1
|
+
import { a as Budget, M as Methodology } from '../types-DLOtndDY.js';
|
|
2
|
+
export { b as BeliefUpdate, E as Experiment, c as Hypothesis, I as InvestigationConclusion, d as InvestigationRound, e as InvestigationState, O as Observation } from '../types-DLOtndDY.js';
|
|
3
3
|
|
|
4
4
|
interface InvestigationConfig {
|
|
5
5
|
question: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{b as investigation,a as validateInvestigationConfig}from'../chunk-
|
|
1
|
+
export{b as investigation,a as validateInvestigationConfig}from'../chunk-OEHVWRJG.mjs';import'../chunk-BD665RYK.mjs';import'../chunk-WU5JELOM.mjs';import'../chunk-TQR3VFZU.mjs';import'../chunk-COPYGMHE.mjs';import'../chunk-YS6CXERQ.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/kanban/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkYGCNLXPJ_cjs=require('../chunk-YGCNLXPJ.cjs');require('../chunk-GKN5M4B7.cjs'),require('../chunk-BANKVCYY.cjs'),require('../chunk-H26KXQ3I.cjs'),require('../chunk-MU26QW32.cjs'),require('../chunk-OSHBJIYD.cjs');Object.defineProperty(exports,"ACTIVE",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.a}});Object.defineProperty(exports,"CADENCE_EVENT",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.s}});Object.defineProperty(exports,"CLASSES",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.k}});Object.defineProperty(exports,"DAY_MS",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.l}});Object.defineProperty(exports,"DEFAULT_COLUMNS",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.n}});Object.defineProperty(exports,"KANBAN_CADENCES",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.j}});Object.defineProperty(exports,"KANBAN_VOCABULARY",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.F}});Object.defineProperty(exports,"OPEN",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.b}});Object.defineProperty(exports,"activeExpedites",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.h}});Object.defineProperty(exports,"addedAt",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.p}});Object.defineProperty(exports,"board",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.r}});Object.defineProperty(exports,"byClassThenAge",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.H}});Object.defineProperty(exports,"cadencesDue",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.t}});Object.defineProperty(exports,"cardAge",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.q}});Object.defineProperty(exports,"columnIndex",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.f}});Object.defineProperty(exports,"columnStays",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.w}});Object.defineProperty(exports,"commitmentColumn",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.d}});Object.defineProperty(exports,"configOf",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.m}});Object.defineProperty(exports,"deliveryColumn",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.e}});Object.defineProperty(exports,"enteredStageAt",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.i}});Object.defineProperty(exports,"kanban",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.I}});Object.defineProperty(exports,"kanbanCeremonies",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.B}});Object.defineProperty(exports,"kanbanMetrics",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.x}});Object.defineProperty(exports,"kanbanRoles",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.C}});Object.defineProperty(exports,"kanbanRules",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.D}});Object.defineProperty(exports,"kanbanStages",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.E}});Object.defineProperty(exports,"onBoard",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.g}});Object.defineProperty(exports,"opsReport",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.y}});Object.defineProperty(exports,"optionsColumn",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.c}});Object.defineProperty(exports,"percentile",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.v}});Object.defineProperty(exports,"priorityByClass",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.G}});Object.defineProperty(exports,"replay",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.u}});Object.defineProperty(exports,"riskReport",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.z}});Object.defineProperty(exports,"validateKanbanConfig",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.o}});Object.defineProperty(exports,"wantItems",{enumerable:true,get:function(){return chunkYGCNLXPJ_cjs.A}});//# sourceMappingURL=index.cjs.map
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/kanban/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as ClassOfService, P as Policy, W as WorkflowState, R as Role, S as Stage, g as Rule, M as Methodology, f as Ceremony, s as CeremonyInput, j as ItemStatus, l as WorkItem, t as Event, k as CoreTerm } from '../types-DLOtndDY.cjs';
|
|
2
2
|
|
|
3
3
|
type KanbanCadence = "replenishment" | "delivery-planning" | "service-delivery-review" | "operations-review" | "risk-review" | "strategy-review";
|
|
4
4
|
declare const KANBAN_CADENCES: readonly KanbanCadence[];
|
package/dist/kanban/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as ClassOfService, P as Policy, W as WorkflowState, R as Role, S as Stage, g as Rule, M as Methodology, f as Ceremony, s as CeremonyInput, j as ItemStatus, l as WorkItem, t as Event, k as CoreTerm } from '../types-DLOtndDY.js';
|
|
2
2
|
|
|
3
3
|
type KanbanCadence = "replenishment" | "delivery-planning" | "service-delivery-review" | "operations-review" | "risk-review" | "strategy-review";
|
|
4
4
|
declare const KANBAN_CADENCES: readonly KanbanCadence[];
|
package/dist/kanban/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as ACTIVE,s as CADENCE_EVENT,k as CLASSES,l as DAY_MS,n as DEFAULT_COLUMNS,j as KANBAN_CADENCES,F as KANBAN_VOCABULARY,b as OPEN,h as activeExpedites,p as addedAt,r as board,H as byClassThenAge,t as cadencesDue,q as cardAge,f as columnIndex,w as columnStays,d as commitmentColumn,m as configOf,e as deliveryColumn,i as enteredStageAt,I as kanban,B as kanbanCeremonies,x as kanbanMetrics,C as kanbanRoles,D as kanbanRules,E as kanbanStages,g as onBoard,y as opsReport,c as optionsColumn,v as percentile,G as priorityByClass,u as replay,z as riskReport,o as validateKanbanConfig,A as wantItems}from'../chunk-
|
|
1
|
+
export{a as ACTIVE,s as CADENCE_EVENT,k as CLASSES,l as DAY_MS,n as DEFAULT_COLUMNS,j as KANBAN_CADENCES,F as KANBAN_VOCABULARY,b as OPEN,h as activeExpedites,p as addedAt,r as board,H as byClassThenAge,t as cadencesDue,q as cardAge,f as columnIndex,w as columnStays,d as commitmentColumn,m as configOf,e as deliveryColumn,i as enteredStageAt,I as kanban,B as kanbanCeremonies,x as kanbanMetrics,C as kanbanRoles,D as kanbanRules,E as kanbanStages,g as onBoard,y as opsReport,c as optionsColumn,v as percentile,G as priorityByClass,u as replay,z as riskReport,o as validateKanbanConfig,A as wantItems}from'../chunk-3S7F5QXK.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
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkGKN5M4B7_cjs=require('../chunk-GKN5M4B7.cjs'),chunk6PFJYRM7_cjs=require('../chunk-6PFJYRM7.cjs'),chunkMU26QW32_cjs=require('../chunk-MU26QW32.cjs'),chunkOSHBJIYD_cjs=require('../chunk-OSHBJIYD.cjs');var ke=new WeakMap;function X(e,n,t){let s=e.get(n);s?s.push(t):e.set(n,[t]);}function je(e){let n={evidence:new Map,transitions:new Map,rework:new Map,changed:new Map};for(let t=0;t<e.length;t++){let s=e[t],r=s.payload;if(s.type==="item.evidence")X(n.evidence,r?.id,t);else if(s.type==="item.transition"||r?.transition)X(n.transitions,r?.id,t);else if(s.type==="item.rework")n.rework.set(r?.id,t);else if(s.type==="repo.changed"&&Array.isArray(r?.paths)){let i=r.paths;for(let a=0;a<i.length;a++)typeof i[a]=="string"&&X(n.changed,i[a],[t,a]);}}return n}function _(e){let n=e.events,t=n.length,s=ke.get(n);if(s&&s.n===t&&s.last===n[t-1])return s.index;let r=je(n);return ke.set(n,{n:t,last:n[t-1],index:r}),r}function Z(e,n,t){let s=0,r=e.length;for(;s<r;){let i=s+r>>1;t(e[i])>n?r=i:s=i+1;}return s}function F(e,n,t){let s=e.rework.get(n);if(s===void 0)return;let r=t??[];return r.length-Z(r,s,i=>i)}function T(e,n){let t=_(e),s=t.transitions.get(n.id)??[],r=n.transitions,i=F(t,n.id,s),a=i===void 0||s.length!==r.length?r:r.slice(r.length-i),u=new Set;for(let o of a)o.to.status==="in_progress"&&u.add(o.by);for(let o of [n.role,chunkMU26QW32_cjs.G(e,n)])o!==void 0&&u.add(o);return [...u]}var j=chunkGKN5M4B7_cjs.a(["low","medium","high","critical"]),J=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),P=(e,n)=>Object.hasOwn(e,n)?e[n]:void 0,be=new WeakSet;function U(e,n){if(typeof e=="object"&&e!==null&&be.has(e))return e;let t=(l,m)=>chunkOSHBJIYD_cjs.b("invalid-input",`${n} options: ${l}`,m),s=(l,m,f)=>{for(let g of Object.keys(l))m.includes(g)||t(`unknown key "${g}" in ${f}`,`use only: ${m.join(", ")}`);},r=(l,m)=>{if(l==="human")return l;let f=J(l)?P(l,"capability"):void 0;return (typeof f!="string"||f.trim()===""||Object.keys(l).length!==1)&&t(`${m} must be "human" or { capability: <name> }`,'e.g. ["human"] or [{ "capability": "review" }]'),{capability:f}};J(e)||t("must be an object",'pass { "gates": ["code-review"] }');let i=e;s(i,["gates","table"],"options");let a=P(i,"gates");Array.isArray(a)||t("gates must be an array of gate ids",'e.g. "gates": ["code-review"]');let u=a.map(l=>(chunkOSHBJIYD_cjs.c(l,"risk gate id"),l)),o=P(i,"table"),d;if(o!==void 0){J(o)||t("table must be an object keyed by risk level",`levels: ${j.join(", ")}`);let l=o;s(l,j,"table"),d={};let m=[];for(let f of j){let g=P(l,f);J(g)||t(`table is missing level "${f}"`,`give every level a row, e.g. "${f}": { "requires": [] }`);let h=g;s(h,["requires","evidence"],`table.${f}`);let I=P(h,"requires");Array.isArray(I)||t(`table.${f}.requires must be an array`,'e.g. "requires": ["human"]');let p=P(h,"evidence");p!==void 0&&(!Array.isArray(p)||!p.every(b=>typeof b=="string"&&b.trim()!==""))&&t(`table.${f}.evidence must be an array of evidence kinds`,'e.g. "evidence": ["sbom"]');let y=I.map((b,w)=>r(b,`table.${f}.requires[${w}]`)),R=p===void 0?void 0:[...p],M=[...y.map(b=>JSON.stringify(b)),...(R??[]).map(b=>`evidence ${JSON.stringify(b)}`)],O=m.filter(b=>!M.includes(b));O.length&&t(`table.${f} must include everything the level below it adds (missing ${O.join(", ")})`,"a stricter level only adds: copy the lower level's requires and evidence into it"),m=M,d[f]={requires:y,...R===void 0?{}:{evidence:R}};}}let c=chunkGKN5M4B7_cjs.a(d?{gates:u,table:d}:{gates:u});return be.add(c),c}var we=chunkGKN5M4B7_cjs.a({low:{requires:[]},medium:{requires:[]},high:{requires:["human"]},critical:{requires:["human"]}}),Ie=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function Ce(e){return Ie(e)&&j.includes(e.level)&&Array.isArray(e.factors)&&e.factors.every(n=>typeof n=="string")&&(e.subject===void 0||typeof e.subject=="string")}function Q(e,n,t,s=T(e,n)){return chunkMU26QW32_cjs.l(e,t,"verify")?chunk6PFJYRM7_cjs.a(t,s).length?"not-independent":void 0:"invalid"}function ee(e,n,t,s){let r=U(s,"riskEscalation");if(!r.gates.includes(t.id))return;let i,a="missing",u,o;for(let l of chunkMU26QW32_cjs.y(e,n)){if(l.kind!=="risk-assessment")continue;let m=Ce(l.data)?Q(e,n,l.by,o??=T(e,n)):"invalid";if(m){i||(a=m,u=l);continue}let f=l.data.level;(!i||j.indexOf(f)>=j.indexOf(i))&&(i=f,a="assessed",u=l);}let d=i??"critical",c=(r.table??we)[d];return {requires:c.requires.map(l=>l==="human"?l:{capability:l.capability}),evidence:[...c.evidence??[]],reason:{level:d,why:a,assessment:u?.ref??null,by:u?.by??null}}}var ne=["item","level","factors","ref","subject","by","now"],S=(e,n)=>chunkOSHBJIYD_cjs.b("invalid-input",`risk assessment: ${e}`,n);function Me(e,n,t){(typeof t!="object"||t===null||Array.isArray(t))&&S("input must be an object",`pass { ${ne.join(", ")} }`);for(let f of Object.keys(t))ne.includes(f)||S(`unknown key "${f}"`,`use only: ${ne.join(", ")}`);let{item:s,level:r,factors:i,ref:a,subject:u,by:o,now:d}=t;typeof s!="string"&&S("item must be an item id",'e.g. "item": "CART-12"');let c=chunkMU26QW32_cjs.r(e,s);j.includes(r)||S(`unknown level ${JSON.stringify(r)}`,`use one of: ${j.join(", ")}`),(!Array.isArray(i)||!i.every(f=>typeof f=="string"))&&S("factors must be an array of strings",'e.g. "factors": ["ci-cd", "secrets"]'),(typeof a!="string"||a.trim()==="")&&S("ref must be a non-empty string",'name the assessment artifact, e.g. "risk/CART-12.md"'),u!==void 0&&typeof u!="string"&&S("subject must be a string","pass the assessed SHA or ref, or omit it"),d!==void 0&&typeof d!="string"&&S("now must be an ISO timestamp string","omit now to use the clock"),(typeof o!="string"||o==="")&&S("by must name the assessor",'e.g. "by": "human"');let l=Q(e,c,o);l==="invalid"&&S(`"${o}" may not assess risk (needs capability "verify")`,`assess as human or one of: ${chunkMU26QW32_cjs.g(e,"verify").map(f=>f.id).join(", ")||"(no role has verify; register one)"}`),l&&S(`"${o}" did the work on "${s}" and may not assess its risk`,"assess as human or an independent role with capability verify");let m={level:r,factors:[...i]};return u!==void 0&&(m.subject=u),chunkMU26QW32_cjs.W(e,n,{type:"risk.assess",by:o,payload:{item:s,ref:a,...m}},f=>chunkMU26QW32_cjs.z(f,s,{kind:"risk-assessment",ref:a,by:o,data:m},d))}var z=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),V=e=>typeof e=="string"&&e.trim()!=="",B=(e,n)=>Object.keys(e).find(t=>!n.includes(t));function Ee(e){return e<32||e>=127&&e<=159||e===1564||e===8206||e===8207||e>=8234&&e<=8238||e>=8294&&e<=8297}function se(e){let n=typeof e!="string"?"not a string":e.length>4096?"longer than 4096 characters":[...e].some(s=>Ee(s.codePointAt(0)))?"has a control or bidirectional formatting character":e!==e.trim()?"has leading or trailing whitespace":e!==e.normalize("NFC")?"is not Unicode NFC":e.includes("\\")||/^[A-Za-z]:/.test(e)||!e.split("/").every(s=>s!==""&&s!=="."&&s!=="..")?"is not relative with / separators and no empty, . or .. segment":void 0;return n?`${JSON.stringify(typeof e=="string"&&e.length>80?`${e.slice(0,80)}\u2026`:e)} is not a repository-relative POSIX path (${n})`:void 0}function ve(e){if(!z(e))return "data must be an object";let n=B(e,["revision","assumptions"]);if(n)return `unknown key "${n}"`;if(!V(e.revision))return "revision must be a non-empty string";let t=e.assumptions;if(!Array.isArray(t))return "assumptions must be an array";for(let[s,r]of t.entries()){let i=`assumptions[${s}]`;if(!z(r))return `${i} must be an object`;let a=B(r,["claim","required","source"]);if(a)return `unknown key "${a}" in ${i}`;if(!V(r.claim))return `${i}.claim must be a non-empty string`;if(r.required!==void 0&&typeof r.required!="boolean")return `${i}.required must be a boolean`;let u=r.source;if(u===void 0)continue;if(!z(u))return `${i}.source must be an object`;let o=B(u,["path","lines","hash"]);if(o)return `unknown key "${o}" in ${i}.source`;let d=se(u.path);if(d)return `${i}.source.path ${d}`;if(!V(u.hash))return `${i}.source.hash must be a non-empty string`;let c=u.lines;if(c!==void 0&&!(Array.isArray(c)&&c.length===2&&Number.isInteger(c[0])&&Number.isInteger(c[1])&&1<=c[0]&&c[0]<=c[1]))return `${i}.source.lines must be two integers [from, to] with 1 <= from <= to`}}function xe(e,n,t){return typeof n!="string"||n!=="human"&&!Object.hasOwn(e.roles,n)?`${JSON.stringify(n)} is neither human nor a registered role`:t.includes(n)?`"${n}" worked on the item`:void 0}var $e=e=>e.assumptions.some(n=>n.source),Ne=({source:e,...n})=>e?{...n,source:{...e,...e.lines?{lines:[...e.lines]}:{}}}:n;function E(e,n){let t=_(e),s=t.evidence.get(n.id)??[],r=n.evidence,i=F(t,n.id,s),a=i===void 0?r.length:Math.min(i,r.length),u;for(let o=r.length-1;o>=r.length-a;o--){let d=r[o];if(d.kind!=="context-snapshot"||ve(d.data)!==void 0)continue;let c=d.data;if(!$e(c)||xe(e,d.by,u??=T(e,n)))continue;let l=s[o+s.length-r.length]??-1,m=[];for(let f of new Set(c.assumptions.map(g=>g.source?.path))){let g=f===void 0?void 0:t.changed.get(f),h=g?Z(g,l,I=>I[0]):0;g&&h<g.length&&m.push([g[h][0],g[h][1],f]);}return m.sort((f,g)=>f[0]-g[0]||f[1]-g[1]),{revision:c.revision,assumptions:c.assumptions.map(Ne),snapshot:d.ref,by:d.by,stale:m.map(f=>f[2]),unverified:c.assumptions.filter(f=>!f.source).map(f=>f.claim)}}}var te=["item","revision","assumptions","ref","by","now"],C=(e,n)=>chunkOSHBJIYD_cjs.b("invalid-input",`context snapshot: ${e}`,n);function Ge(e,n,t){z(t)||C("input must be an object",`pass { ${te.join(", ")} }`);let s=B(t,te);s&&C(`unknown key "${s}"`,`use only: ${te.join(", ")}`);let{item:r,revision:i,assumptions:a,ref:u,by:o,now:d}=t;typeof r!="string"&&C("item must be an item id",'e.g. "item": "CART-12"');let c=chunkMU26QW32_cjs.r(e,r),l={revision:i,assumptions:a},m=ve(l);m&&C(m,'e.g. { "revision": "4f2c1e0", "assumptions": [{ "claim": "totals are cents", "source": { "path": "src/cart.ts", "hash": "\u2026" } }] }'),V(u)||C("ref must be a non-empty string",'name the snapshot artifact, e.g. "ctx/CART-12.json"'),V(o)||C("by must name who recorded it",'e.g. "by": "scout"');let f=xe(e,o,T(e,c));f&&C(`${f} and may not record its context`,"record as human or a registered role that did not work on the item"),$e(l)||C("a snapshot needs at least one assumption with a source (nothing was verified)",'cite what was checked, e.g. "source": { "path": "src/cart.ts", "hash": "\u2026" }'),d!==void 0&&typeof d!="string"&&C("now must be an ISO timestamp string","omit now to use the clock");let g=JSON.parse(JSON.stringify(l));return chunkMU26QW32_cjs.W(e,n,{type:"context.snapshot",by:o,payload:{item:r,ref:u,...g}},h=>chunkMU26QW32_cjs.z(h,r,{kind:"context-snapshot",ref:u,by:o,data:g},d))}var We="policy:custom:context-grounded",oe="record a fresh one with recordContextSnapshot";function re(e,n){let t=[],s=(o,d)=>t.push({rule:We,severity:"error",item:n.id,message:o,fix:d}),r=E(e,n);if(!r)return s(`item "${n.id}" has no qualifying context snapshot (none since its last rework is valid, cites a source and was recorded by human or a registered role that did not work on it)`,`have an independent role or a human verify the context and ${oe}`),t;let i=`context snapshot "${r.snapshot}" of "${n.id}"`;r.stale.length&&s(`${i} is stale: ${r.stale.join(", ")} changed since`,`re-verify the claims and ${oe}`);let u=r.assumptions.filter(o=>o.required).filter(o=>!o.source).map(o=>o.claim);return u.length&&s(`${i} has unverified required assumption(s): ${u.join(" | ")}`,`cite a source { path, hash } for each and ${oe}`),t}var qe=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function Te(e,n){let t=U(n,"withRiskGate"),s=e.escalateGate;return {...e,escalateGate(r,i,a){let u=ee(r,i,a,t),o=s?.call(e,r,i,a);return !o||!u?o??u:{requires:[...o.requires,...u.requires],evidence:[...o.evidence,...u.evidence],reason:{...o.reason,...u.reason}}}}}var ie="context-grounded",Pe={kind:"custom",id:ie,description:"grounded in a fresh, verified context snapshot"},ae=(e,n)=>chunkOSHBJIYD_cjs.b("invalid-input",`withContextGrounding options: ${e}`,n);function Re(e,n){let t=e[n];return t===void 0&&n==="exit"?[]:(Array.isArray(t)||ae(`${n} must be an array of stage ids`,`e.g. "${n}": ["dev"]`),t.map(s=>(chunkOSHBJIYD_cjs.c(s,`context-grounded ${n} stage id`),s)))}function Le(e,n){qe(n)||ae("must be an object",'pass { "entry": ["dev"] }');let t=n;for(let o of Object.keys(t))o!=="entry"&&o!=="exit"&&ae(`unknown key "${o}"`,"use only: entry, exit");let s=Re(t,"entry"),r=Re(t,"exit"),{customPolicy:i,briefContext:a}=e,u=(o,d)=>d&&!o.some(c=>c.kind==="custom"&&c.id===ie)?[...o,Pe]:o;return {...e,defaultStages(o){let d=e.defaultStages(o);for(let c of [...s,...r])d.some(l=>l.id===c)||chunkOSHBJIYD_cjs.b("invalid-input",`withContextGrounding: unknown stage "${c}"`,`stages: ${d.map(l=>l.id).join(", ")}`);return d.map(c=>({...c,entryPolicy:u(c.entryPolicy,s.includes(c.id)),exitPolicy:u(c.exitPolicy,r.includes(c.id))}))},customPolicy(o,d,c){return c.id===ie?re(o,d):i?.call(e,o,d,c)},briefContext(o,d){return E(o,d)??a?.call(e,o,d)}}}var ce=["revision","paths","by","now"],Ve=["in_progress","review","awaiting_human"],N=(e,n)=>chunkOSHBJIYD_cjs.b("invalid-input",`repo change: ${e}`,n);function De(e,n,t){(typeof t!="object"||t===null||Array.isArray(t))&&N("input must be an object",`pass { ${ce.join(", ")} }`);for(let c of Object.keys(t))ce.includes(c)||N(`unknown key "${c}"`,`use only: ${ce.join(", ")}`);let{revision:s,paths:r,by:i,now:a}=t;(typeof s!="string"||s.trim()==="")&&N("revision must be a non-empty string",'e.g. "revision": "4f2c1e0"'),(!Array.isArray(r)||r.length===0)&&N("paths must be a non-empty array of paths",'e.g. "paths": ["src/cart.ts"]'),r.forEach((c,l)=>{let m=se(c);m&&N(`paths[${l}] ${m}`,'send paths as `git diff --name-only -z` lists them (NUL-separated, unquoted; or with `-c core.quotePath=false`), e.g. "src/cart.ts"');}),(typeof i!="string"||i==="")&&N("by must name the reporter",'e.g. "by": "ci"'),a!==void 0&&typeof a!="string"&&N("now must be an ISO timestamp string","omit now to use the clock");let u=[...new Set(r)],o=chunkMU26QW32_cjs.W(e,n,{type:"repo.change",by:i,payload:{revision:s,paths:u}},c=>chunkMU26QW32_cjs.c(c,"repo.changed",i,{revision:s,paths:u},chunkMU26QW32_cjs.a(a))),d=[];for(let c of Object.values(o.state.items)){if(!Ve.includes(c.status))continue;let l=E(e,c);if(!l)continue;let m=new Set(l.assumptions.map(h=>h.source?.path)),f=new Set(l.stale),g=u.filter(h=>m.has(h)&&!f.has(h));g.length&&d.push({rule:"context-stale",severity:"warning",item:c.id,message:`context snapshot "${l.snapshot}" of "${c.id}" is stale: ${g.join(", ")} changed at ${s}`,fix:`re-verify and record a fresh snapshot of "${c.id}" with recordContextSnapshot`});}return {state:o.state,warnings:[...o.warnings,...d]}}var Ae=["baseline","mustPass","passTolerance","costTolerance"],Ke=["tokens","durationMs","turns","humanInterventions","reworks","escalations","itemsDone"],k=(e,n)=>chunkOSHBJIYD_cjs.b("invalid-input",`compareRuns: ${e}`,n),$=e=>typeof e=="string"?JSON.stringify(e):typeof e=="object"&&e!==null?Array.isArray(e)?"an array":"an object":typeof e=="function"||typeof e=="symbol"?typeof e:String(e),G=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),x=(e,n)=>Object.hasOwn(e,n)?e[n]:void 0,fe=(e,n)=>Number.isFinite(e)?e:k(`${n} is not finite (${e})`,"pass the host's measured usage figures"),Y=(e,n)=>(typeof e!="string"&&k(`${n} is ${$(e)}, not an id`,'pass a string id such as "V0"'),chunkOSHBJIYD_cjs.c(e,n),e),Se=(e,n)=>e===void 0?0:((typeof e!="number"||!Number.isFinite(e)||e<0||e>1)&&k(`${n} is ${$(e)}, not a fraction in [0, 1]`,`pass e.g. "${n}": 0.05`),e);function _e(e,n){if(!G(e))return k(`${n}.state is ${$(e)}, not a workflow state`,"pass the finished state.json");let[t,s,r]=["events","accounting","items"].map(a=>x(e,a));if(!Array.isArray(t)||!Array.isArray(s))return k(`${n}.state has no events and accounting arrays`,"pass a WorkflowState as loaded by loadState");if(!G(r))return k(`${n}.state.items is ${$(r)}, not an object`,"pass a WorkflowState as loaded by loadState");let i={tokens:0,durationMs:0,turns:s.length,humanInterventions:0,reworks:0,escalations:0,itemsDone:0};s.forEach((a,u)=>{if(!G(a))return k(`${n}.state.accounting[${u}] is ${$(a)}`,"pass accounting lines as recorded by complete");for(let o of ["tokensIn","tokensOut","durationMs"]){let d=x(a,o);(typeof d!="number"||!Number.isFinite(d)||d<0)&&k(`${n}.state.accounting[${u}].${o} is ${$(d)}, not a finite non-negative number`,"pass the host's measured usage figures");}i.tokens+=a.tokensIn+a.tokensOut,i.durationMs+=a.durationMs;}),fe(i.tokens,`${n}.state token total`),fe(i.durationMs,`${n}.state duration total`),t.forEach((a,u)=>{if(!G(a)||typeof x(a,"type")!="string")return k(`${n}.state.events[${u}] is ${$(a)}, not an event`,"pass events as recorded by the engine");let o=a.type;o==="pending.raised"||o==="blocker.cleared"?i.humanInterventions++:o==="item.rework"?i.reworks++:o==="item.escalated"&&i.escalations++;});for(let a of Object.values(r))G(a)&&x(a,"status")==="done"&&i.itemsDone++;return i}var Oe=e=>e.sort((n,t)=>n-t).reduce((n,t)=>n+t,0)/e.length,ue=(e,n)=>e<n?-1:e>n?1:0;function Fe(e,n){if(Array.isArray(e)||k(`runs is ${$(e)}, not an array`,"pass an array of { variant, scenario, state, passed }"),e.length===0&&k("no runs to compare","pass at least the baseline's finished runs"),!G(n))return k(`options is ${$(n)}, not an object`,'pass { baseline: "V0" }');for(let p of Object.keys(n))Ae.includes(p)||k(`unknown option "${p}"`,`use only: ${Ae.join(", ")}`);let t=n,s=Y(x(t,"baseline"),"baseline"),r=x(t,"mustPass");r!==void 0&&!Array.isArray(r)&&k(`mustPass is ${$(r)}, not an array`,'pass e.g. "mustPass": ["s1"]');let i=[...new Set((r??[]).map(p=>Y(p,"mustPass scenario")))],a=Se(x(t,"passTolerance"),"passTolerance"),u=Se(x(t,"costTolerance"),"costTolerance"),o=new Map,d=new Set;e.forEach((p,y)=>{let R=`runs[${y}]`;if(!G(p))return k(`${R} is ${$(p)}, not a run record`,"pass { variant, scenario, state, passed }");let M=Y(x(p,"variant"),`${R}.variant`),O=Y(x(p,"scenario"),`${R}.scenario`),b=x(p,"passed");typeof b!="boolean"&&k(`${R}.passed is ${$(b)}, not a boolean`,"pass the scorer's verdict as true or false");let w=_e(x(p,"state"),R),A=o.get(M);A||o.set(M,A={metrics:[],passed:0,ran:new Map,failed:new Set}),A.metrics.push(w);let H=A.ran.get(O)??[0,0];A.ran.set(O,H),H[1]++,d.add(O),b?(A.passed++,H[0]++):A.failed.add(O);});let c=o.get(s);c||k(`baseline "${s}" has no run`,"name a variant that appears in runs");for(let p of i)d.has(p)||k(`mustPass scenario "${p}" has no run`,"name a scenario that appears in runs");let l=[...new Set([...c.ran.keys(),...i])].sort(ue),m=[...o].map(([p,y])=>{let R=y.metrics.length,M={};for(let w of Ke)M[w]=fe(Oe(y.metrics.map(A=>A[w])),`variant ${p} mean ${w}`);let O=i.filter(w=>y.failed.has(w)).sort(ue),b=l.filter(w=>!y.ran.has(w));return {variant:p,runs:R,passed:y.passed,passRate:Oe([...y.ran.values()].map(([w,A])=>w/A)),mean:M,regressions:O,missing:b,eligible:O.length===0&&b.length===0}});m.sort((p,y)=>Number(y.eligible)-Number(p.eligible)||y.passRate-p.passRate||p.mean.tokens-y.mean.tokens||p.mean.durationMs-y.mean.durationMs||p.mean.humanInterventions-y.mean.humanInterventions||ue(p.variant,y.variant));let f=m.find(p=>p.variant===s),g=m.find(p=>p.variant!==s&&p.eligible&&p.passRate>=f.passRate-a&&(p.passRate>f.passRate+a||p.mean.tokens<f.mean.tokens*(1-u)));if(g)return {baseline:s,variants:m,winner:g.variant,reason:`${g.variant} beats baseline ${s}: pass rate ${g.passRate} vs ${f.passRate}, mean tokens ${g.mean.tokens} vs ${f.mean.tokens}`};let h=m.filter(p=>p.variant!==s),I;if(h.length===0)I=`no variant to compare with baseline ${s}`;else if(h.some(p=>p.eligible))I=`within noise: no eligible variant beats baseline ${s} beyond the tolerances`;else {let p=h.map(y=>`${y.variant} (${(y.regressions.length?y.regressions:y.missing).join(", ")})`).join("; ");I=`${h.some(y=>y.regressions.length)?"must-pass regression":"no eligible variant, missing runs"}: ${p}`;}return {baseline:s,variants:m,winner:null,reason:I}}exports.DEFAULT_RISK_TABLE=we;exports.compareRuns=Fe;exports.contextGroundedViolations=re;exports.contextOf=E;exports.recordContextSnapshot=Ge;exports.recordRepoChange=De;exports.recordRiskAssessment=Me;exports.riskEscalation=ee;exports.withContextGrounding=Le;exports.withRiskGate=Te;//# sourceMappingURL=index.cjs.map
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|