@productbrain/cli 0.1.0-beta.6076 → 0.1.0-beta.6102
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/formatters/orientDegradation.d.ts +17 -0
- package/dist/formatters/orientDegradation.d.ts.map +1 -1
- package/dist/formatters/orientDegradation.js +18 -1
- package/dist/formatters/orientDegradation.js.map +1 -1
- package/dist/formatters/orientDegradation.test.d.ts +2 -0
- package/dist/formatters/orientDegradation.test.d.ts.map +1 -0
- package/dist/formatters/orientDegradation.test.js +28 -0
- package/dist/formatters/orientDegradation.test.js.map +1 -0
- package/package.json +1 -1
|
@@ -16,6 +16,23 @@ export declare function coherencyCheckTag(status: 'not_checked' | 'check_incompl
|
|
|
16
16
|
* (undermining "serve less, LABELLED"). Renders a single visible warning line naming exactly
|
|
17
17
|
* which preload(s) degraded. Returns `[]` (nothing to render) when absent/empty — never a
|
|
18
18
|
* false-positive warning on a healthy run.
|
|
19
|
+
*
|
|
20
|
+
* TASK-167 (1c-late): since TASK-157's bounded governance read, a binding scan that HITS its
|
|
21
|
+
* bound returns a CAPPED (truncated) result, never the full set (`startupResolver.ts`'s
|
|
22
|
+
* `GOVERNANCE_ENTRIES_SCAN_LIMIT`; `bindingScanTruncated: true` when a 32-entry binding
|
|
23
|
+
* collection yields only its first 20, `startupResolver.test.ts` dW1) — and TASK-157 marks
|
|
24
|
+
* `governanceLoad` degraded for that capped-but-successful load, the same as a genuine preload
|
|
25
|
+
* rejection. A capped load and a genuine fallback are indistinguishable to the connector; only
|
|
26
|
+
* the server (orientPreloadFallbacks.ts) knows which members are in the list. So the line states
|
|
27
|
+
* only what membership means — the named preload(s) are incomplete this run — never asserting a
|
|
28
|
+
* cause (a fetch failure vs. a deliberate cap) the connector cannot know.
|
|
29
|
+
*
|
|
30
|
+
* PR #920 review (Codex P2): `DegradedPreload` is `'gather' | 'governanceLoad' | 'domain'`
|
|
31
|
+
* (orientPreloadFallbacks.ts) — a gather- or domain-only degradation is task-context/domain
|
|
32
|
+
* resolution, not governance, so an earlier draft's "Governance for this run is incomplete"
|
|
33
|
+
* wording was itself a false, member-specific claim on those two members. The wording below is
|
|
34
|
+
* member-agnostic on purpose: it must read true for every current AND future `DegradedPreload`
|
|
35
|
+
* value without special-casing which one(s) fired.
|
|
19
36
|
*/
|
|
20
37
|
export declare function buildDegradedPreloadsLines(degraded?: readonly string[] | null): string[];
|
|
21
38
|
//# sourceMappingURL=orientDegradation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orientDegradation.d.ts","sourceRoot":"","sources":["../../src/formatters/orientDegradation.ts"],"names":[],"mappings":"AAAA;;;;;iBAKiB;AAEjB;;sGAEsG;AACtG,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,aAAa,GAAG,kBAAkB,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAK1G;AAED
|
|
1
|
+
{"version":3,"file":"orientDegradation.d.ts","sourceRoot":"","sources":["../../src/formatters/orientDegradation.ts"],"names":[],"mappings":"AAAA;;;;;iBAKiB;AAEjB;;sGAEsG;AACtG,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,aAAa,GAAG,kBAAkB,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAK1G;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,GAAG,MAAM,EAAE,CAGxF"}
|
|
@@ -24,10 +24,27 @@ export function coherencyCheckTag(status) {
|
|
|
24
24
|
* (undermining "serve less, LABELLED"). Renders a single visible warning line naming exactly
|
|
25
25
|
* which preload(s) degraded. Returns `[]` (nothing to render) when absent/empty — never a
|
|
26
26
|
* false-positive warning on a healthy run.
|
|
27
|
+
*
|
|
28
|
+
* TASK-167 (1c-late): since TASK-157's bounded governance read, a binding scan that HITS its
|
|
29
|
+
* bound returns a CAPPED (truncated) result, never the full set (`startupResolver.ts`'s
|
|
30
|
+
* `GOVERNANCE_ENTRIES_SCAN_LIMIT`; `bindingScanTruncated: true` when a 32-entry binding
|
|
31
|
+
* collection yields only its first 20, `startupResolver.test.ts` dW1) — and TASK-157 marks
|
|
32
|
+
* `governanceLoad` degraded for that capped-but-successful load, the same as a genuine preload
|
|
33
|
+
* rejection. A capped load and a genuine fallback are indistinguishable to the connector; only
|
|
34
|
+
* the server (orientPreloadFallbacks.ts) knows which members are in the list. So the line states
|
|
35
|
+
* only what membership means — the named preload(s) are incomplete this run — never asserting a
|
|
36
|
+
* cause (a fetch failure vs. a deliberate cap) the connector cannot know.
|
|
37
|
+
*
|
|
38
|
+
* PR #920 review (Codex P2): `DegradedPreload` is `'gather' | 'governanceLoad' | 'domain'`
|
|
39
|
+
* (orientPreloadFallbacks.ts) — a gather- or domain-only degradation is task-context/domain
|
|
40
|
+
* resolution, not governance, so an earlier draft's "Governance for this run is incomplete"
|
|
41
|
+
* wording was itself a false, member-specific claim on those two members. The wording below is
|
|
42
|
+
* member-agnostic on purpose: it must read true for every current AND future `DegradedPreload`
|
|
43
|
+
* value without special-casing which one(s) fired.
|
|
27
44
|
*/
|
|
28
45
|
export function buildDegradedPreloadsLines(degraded) {
|
|
29
46
|
if (!degraded || degraded.length === 0)
|
|
30
47
|
return [];
|
|
31
|
-
return [`⚠
|
|
48
|
+
return [`⚠ ${degraded.join(', ')} incomplete this run. Results may be thinner than usual.`];
|
|
32
49
|
}
|
|
33
50
|
//# sourceMappingURL=orientDegradation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orientDegradation.js","sourceRoot":"","sources":["../../src/formatters/orientDegradation.ts"],"names":[],"mappings":"AAAA;;;;;iBAKiB;AAEjB;;sGAEsG;AACtG,MAAM,UAAU,iBAAiB,CAAC,MAAgE;IAChG,IAAI,MAAM,KAAK,aAAa;QAAE,OAAO,gBAAgB,CAAC;IACtD,IAAI,MAAM,KAAK,kBAAkB;QAAE,OAAO,qBAAqB,CAAC;IAChE,IAAI,MAAM,KAAK,OAAO;QAAE,OAAO,2CAA2C,CAAC;IAC3E,OAAO,EAAE,CAAC;AACZ,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"orientDegradation.js","sourceRoot":"","sources":["../../src/formatters/orientDegradation.ts"],"names":[],"mappings":"AAAA;;;;;iBAKiB;AAEjB;;sGAEsG;AACtG,MAAM,UAAU,iBAAiB,CAAC,MAAgE;IAChG,IAAI,MAAM,KAAK,aAAa;QAAE,OAAO,gBAAgB,CAAC;IACtD,IAAI,MAAM,KAAK,kBAAkB;QAAE,OAAO,qBAAqB,CAAC;IAChE,IAAI,MAAM,KAAK,OAAO;QAAE,OAAO,2CAA2C,CAAC;IAC3E,OAAO,EAAE,CAAC;AACZ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,0BAA0B,CAAC,QAAmC;IAC5E,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAClD,OAAO,CAAC,KAAK,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,0DAA0D,CAAC,CAAC;AAC9F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orientDegradation.test.d.ts","sourceRoot":"","sources":["../../src/formatters/orientDegradation.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TASK-167 (1c-late, WP-744): buildDegradedPreloadsLines states only what a `degradedPreloads`
|
|
3
|
+
* member MEANS — the named preload(s) are incomplete this run — never a cause the connector
|
|
4
|
+
* cannot know. `gather` and `domain` are task-context/domain-resolution members, not governance;
|
|
5
|
+
* a `governanceLoad` member itself can mean either a genuine preload rejection OR a capped
|
|
6
|
+
* (truncated, never "full") binding-governance scan that hit its bound (TASK-157) — both are
|
|
7
|
+
* indistinguishable here, so the wording stays member-agnostic (PR #920 review).
|
|
8
|
+
*/
|
|
9
|
+
import { describe, expect, it } from 'vitest';
|
|
10
|
+
import { buildDegradedPreloadsLines } from './orientDegradation.js';
|
|
11
|
+
describe('buildDegradedPreloadsLines', () => {
|
|
12
|
+
it('renders one line naming every degraded member, with no asserted cause', () => {
|
|
13
|
+
// Real DegradedPreload members (orientPreloadFallbacks.ts): 'gather' | 'governanceLoad' |
|
|
14
|
+
// 'domain'. A gather/domain member is task-context/domain resolution, not governance — the
|
|
15
|
+
// wording must stay member-agnostic (PR #920 review).
|
|
16
|
+
expect(buildDegradedPreloadsLines(['governanceLoad', 'gather'])).toEqual([
|
|
17
|
+
'⚠ governanceLoad, gather incomplete this run. Results may be thinner than usual.',
|
|
18
|
+
]);
|
|
19
|
+
});
|
|
20
|
+
it('renders nothing for an empty list', () => {
|
|
21
|
+
expect(buildDegradedPreloadsLines([])).toEqual([]);
|
|
22
|
+
});
|
|
23
|
+
it('renders nothing when absent (undefined/null)', () => {
|
|
24
|
+
expect(buildDegradedPreloadsLines(undefined)).toEqual([]);
|
|
25
|
+
expect(buildDegradedPreloadsLines(null)).toEqual([]);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=orientDegradation.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orientDegradation.test.js","sourceRoot":"","sources":["../../src/formatters/orientDegradation.test.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEpE,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IAC1C,EAAE,CAAC,uEAAuE,EAAE,GAAG,EAAE;QAC/E,0FAA0F;QAC1F,2FAA2F;QAC3F,sDAAsD;QACtD,MAAM,CAAC,0BAA0B,CAAC,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;YACvE,kFAAkF;SACnF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mCAAmC,EAAE,GAAG,EAAE;QAC3C,MAAM,CAAC,0BAA0B,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACtD,MAAM,CAAC,0BAA0B,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAC1D,MAAM,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|