@productbrain/cli 0.1.0-beta.8941 → 0.1.0-beta.8947
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/checklist.d.ts +4 -2
- package/dist/lib/checklist.d.ts.map +1 -1
- package/dist/lib/checklist.js +10 -2
- package/dist/lib/checklist.js.map +1 -1
- package/dist/lib/ownerLine.d.ts +7 -0
- package/dist/lib/ownerLine.d.ts.map +1 -1
- package/dist/lib/ownerLine.js +10 -1
- package/dist/lib/ownerLine.js.map +1 -1
- package/package.json +1 -1
package/dist/lib/checklist.d.ts
CHANGED
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
* repair; an unmet line adds what the AI judge named as missing. The judge's free-text
|
|
8
8
|
* explanation is never shown, so it can never contradict a tick.
|
|
9
9
|
*
|
|
10
|
-
* Lines exist only for the gated rubrics, strategy and vision (DEC-1913)
|
|
11
|
-
*
|
|
10
|
+
* Lines exist only for the gated rubrics, strategy and vision (DEC-1913), and for the
|
|
11
|
+
* strategy-link gate's rungs (TASK-609: kernel/strategy/spineRefusal.ts marks each rung above a
|
|
12
|
+
* work package, key result or objective met or not yet); for any other key `renderChecklist`
|
|
13
|
+
* returns null. No Chain ids in any line: these strings reach users.
|
|
12
14
|
*
|
|
13
15
|
* Dependency-free on purpose: scripts/generate-mcp-embedded-copies.mjs ships this exact
|
|
14
16
|
* source to the CLI and the MCP server, and the accept gate (convex/lib/gates/evaluate.ts)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist.d.ts","sourceRoot":"","sources":["../../src/lib/checklist.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"checklist.d.ts","sourceRoot":"","sources":["../../src/lib/checklist.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;GAiBG;AAEH,gGAAgG;AAChG,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAkBtF,CAAC;AAEF,MAAM,WAAW,kBAAkB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,OAAO,CAAC;IAChB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAID;;;GAGG;AACH,wBAAgB,eAAe,CAC9B,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,SAAS,kBAAkB,EAAE,EACvC,OAAO,EAAE,OAAO,GACd,MAAM,EAAE,GAAG,IAAI,CAWjB"}
|
package/dist/lib/checklist.js
CHANGED
|
@@ -10,8 +10,10 @@
|
|
|
10
10
|
* repair; an unmet line adds what the AI judge named as missing. The judge's free-text
|
|
11
11
|
* explanation is never shown, so it can never contradict a tick.
|
|
12
12
|
*
|
|
13
|
-
* Lines exist only for the gated rubrics, strategy and vision (DEC-1913)
|
|
14
|
-
*
|
|
13
|
+
* Lines exist only for the gated rubrics, strategy and vision (DEC-1913), and for the
|
|
14
|
+
* strategy-link gate's rungs (TASK-609: kernel/strategy/spineRefusal.ts marks each rung above a
|
|
15
|
+
* work package, key result or objective met or not yet); for any other key `renderChecklist`
|
|
16
|
+
* returns null. No Chain ids in any line: these strings reach users.
|
|
15
17
|
*
|
|
16
18
|
* Dependency-free on purpose: scripts/generate-mcp-embedded-copies.mjs ships this exact
|
|
17
19
|
* source to the CLI and the MCP server, and the accept gate (convex/lib/gates/evaluate.ts)
|
|
@@ -30,6 +32,12 @@ export const CHECKLIST_LINES = {
|
|
|
30
32
|
falsifiability: 'Choose a direction a reasonable rival would reject',
|
|
31
33
|
stranger_test: 'Explain it so a stranger knows what you build (20+ words)',
|
|
32
34
|
},
|
|
35
|
+
/** One line per spine rung, keyed by the rung it reaches (kernel/strategy/spineTrace.ts order). */
|
|
36
|
+
strategy_link: {
|
|
37
|
+
key_result: 'Link this work to an accepted key result it validates',
|
|
38
|
+
objective: 'Put the key result under an accepted objective',
|
|
39
|
+
strategy: 'Put the objective under an accepted strategy',
|
|
40
|
+
},
|
|
33
41
|
};
|
|
34
42
|
const MARK = { met: '[x]', not_yet: '[ ]', judging: '[~]' };
|
|
35
43
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist.js","sourceRoot":"","sources":["../../src/lib/checklist.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,gEAAgE;AAChE,uDAAuD;AAEvD
|
|
1
|
+
{"version":3,"file":"checklist.js","sourceRoot":"","sources":["../../src/lib/checklist.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,gEAAgE;AAChE,uDAAuD;AAEvD;;;;;;;;;;;;;;;;;GAiBG;AAEH,gGAAgG;AAChG,MAAM,CAAC,MAAM,eAAe,GAA+D;IAC1F,QAAQ,EAAE;QACT,kBAAkB,EAAE,qEAAqE;QACzF,YAAY,EAAE,0BAA0B;QACxC,YAAY,EAAE,mDAAmD;KACjE;IACD,MAAM,EAAE;QACP,WAAW,EAAE,8EAA8E;QAC3F,WAAW,EAAE,mDAAmD;QAChE,cAAc,EAAE,oDAAoD;QACpE,aAAa,EAAE,2DAA2D;KAC1E;IACD,mGAAmG;IACnG,aAAa,EAAE;QACd,UAAU,EAAE,uDAAuD;QACnE,SAAS,EAAE,gDAAgD;QAC3D,QAAQ,EAAE,8CAA8C;KACxD;CACD,CAAC;AASF,MAAM,IAAI,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAW,CAAC;AAErE;;;GAGG;AACH,MAAM,UAAU,eAAe,CAC9B,YAAoB,EACpB,QAAuC,EACvC,OAAgB;IAEhB,MAAM,KAAK,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;IAC5C,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IACxB,OAAO,QAAQ;SACb,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,SAAS,CAAC;SACxC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QACV,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;QAClE,MAAM,KAAK,GAAG,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5D,MAAM,OAAO,GAAG,KAAK,KAAK,SAAS,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACnF,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,GAAG,OAAO,EAAE,CAAC;IAC1D,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/lib/ownerLine.d.ts
CHANGED
|
@@ -49,6 +49,13 @@ export interface FormatOwnerLineOptions {
|
|
|
49
49
|
/** The leading label — plain `'Owner:'` (CLI, browser) or MCP's bold `'**Owner:**'`. */
|
|
50
50
|
label?: string;
|
|
51
51
|
}
|
|
52
|
+
/** The owning role and its team as two names, for a surface that shows them apart (the browser
|
|
53
|
+
* Rail's role pill with the team beside it, DEC-1932). `null` for every kind but `one`: those keep
|
|
54
|
+
* their sentence from `formatOwnerLine`, which builds its `one` sentence from these same names. */
|
|
55
|
+
export declare function ownerLineParts(owner: OwnerLine): {
|
|
56
|
+
role: string;
|
|
57
|
+
team: string;
|
|
58
|
+
} | null;
|
|
52
59
|
/** Exhaustive over the four kinds above. The `default:` arm below is not a silent catch-all —
|
|
53
60
|
* it assigns the narrowed remainder to a `never`-typed const, so an unhandled kind fails to
|
|
54
61
|
* compile HERE regardless of which tsconfig's strictness flags apply at the call site
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ownerLine.d.ts","sourceRoot":"","sources":["../../src/lib/ownerLine.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,SAAS,GAClB;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GAE/D;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,GAKnD;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,IAAI,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAE1G,MAAM,WAAW,sBAAsB;IACtC;8DAC0D;IAC1D,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,wFAAwF;IACxF,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;yFAIyF;AACzF,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,GAAE,sBAA2B,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"ownerLine.d.ts","sourceRoot":"","sources":["../../src/lib/ownerLine.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,SAAS,GAClB;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GAE/D;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,GAKnD;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,IAAI,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAE1G,MAAM,WAAW,sBAAsB;IACtC;8DAC0D;IAC1D,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,wFAAwF;IACxF,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;oGAEoG;AACpG,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAEtF;AAED;;;;yFAIyF;AACzF,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,GAAE,sBAA2B,GAAG,MAAM,CAuC9F"}
|
package/dist/lib/ownerLine.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
// GENERATED by scripts/generate-mcp-embedded-copies.mjs from kernel/organisationalAuthority/ownerLine.ts.
|
|
2
2
|
// DO NOT EDIT. Run `npm run mcp:embedded-copies` to regenerate.
|
|
3
3
|
// Local runtime copy for the isolated connector build.
|
|
4
|
+
/** The owning role and its team as two names, for a surface that shows them apart (the browser
|
|
5
|
+
* Rail's role pill with the team beside it, DEC-1932). `null` for every kind but `one`: those keep
|
|
6
|
+
* their sentence from `formatOwnerLine`, which builds its `one` sentence from these same names. */
|
|
7
|
+
export function ownerLineParts(owner) {
|
|
8
|
+
return owner.kind === 'one' ? { role: owner.role.name, team: owner.team.name } : null;
|
|
9
|
+
}
|
|
4
10
|
/** Exhaustive over the four kinds above. The `default:` arm below is not a silent catch-all —
|
|
5
11
|
* it assigns the narrowed remainder to a `never`-typed const, so an unhandled kind fails to
|
|
6
12
|
* compile HERE regardless of which tsconfig's strictness flags apply at the call site
|
|
@@ -10,7 +16,10 @@ export function formatOwnerLine(owner, options = {}) {
|
|
|
10
16
|
const ids = options.ids ?? true;
|
|
11
17
|
const label = options.label ?? 'Owner:';
|
|
12
18
|
switch (owner.kind) {
|
|
13
|
-
case 'one':
|
|
19
|
+
case 'one': {
|
|
20
|
+
const { role, team } = ownerLineParts(owner);
|
|
21
|
+
return `${label} ${role} in ${team}`;
|
|
22
|
+
}
|
|
14
23
|
case 'none': return `${label} none`;
|
|
15
24
|
case 'many': return `${label} conflicting — ${owner.count}${owner.truncated ? '+' : ''} owners recorded`;
|
|
16
25
|
case 'dangling': {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ownerLine.js","sourceRoot":"","sources":["../../src/lib/ownerLine.ts"],"names":[],"mappings":"AAAA,0GAA0G;AAC1G,gEAAgE;AAChE,uDAAuD;AAwCvD;;;;yFAIyF;AACzF,MAAM,UAAU,eAAe,CAAC,KAAgB,EAAE,UAAkC,EAAE;IACrF,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,IAAI,CAAC;IAChC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,QAAQ,CAAC;IACxC,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,KAAK,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"ownerLine.js","sourceRoot":"","sources":["../../src/lib/ownerLine.ts"],"names":[],"mappings":"AAAA,0GAA0G;AAC1G,gEAAgE;AAChE,uDAAuD;AAwCvD;;oGAEoG;AACpG,MAAM,UAAU,cAAc,CAAC,KAAgB;IAC9C,OAAO,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,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