@principles/core 1.202.0 → 1.203.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/dist/runtime-v2/__tests__/architecture-regression.test.js +4 -3
- package/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
- package/dist/runtime-v2/feature-flags/__tests__/surface-guard-policy.test.d.ts +2 -0
- package/dist/runtime-v2/feature-flags/__tests__/surface-guard-policy.test.d.ts.map +1 -0
- package/dist/runtime-v2/feature-flags/__tests__/surface-guard-policy.test.js +246 -0
- package/dist/runtime-v2/feature-flags/__tests__/surface-guard-policy.test.js.map +1 -0
- package/dist/runtime-v2/feature-flags/index.d.ts +2 -0
- package/dist/runtime-v2/feature-flags/index.d.ts.map +1 -1
- package/dist/runtime-v2/feature-flags/index.js +2 -0
- package/dist/runtime-v2/feature-flags/index.js.map +1 -1
- package/dist/runtime-v2/feature-flags/surface-guard-policy.d.ts +41 -0
- package/dist/runtime-v2/feature-flags/surface-guard-policy.d.ts.map +1 -0
- package/dist/runtime-v2/feature-flags/surface-guard-policy.js +143 -0
- package/dist/runtime-v2/feature-flags/surface-guard-policy.js.map +1 -0
- package/dist/runtime-v2/index.d.ts +2 -0
- package/dist/runtime-v2/index.d.ts.map +1 -1
- package/dist/runtime-v2/index.js +2 -0
- package/dist/runtime-v2/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -329,7 +329,6 @@ const KNOWN_PLUGIN_CORE_FILES = new Set([
|
|
|
329
329
|
// ── Runtime V2 ──────────────────────────────────────────────────────────
|
|
330
330
|
'runtime-v2-prompt-activation-reader.ts',
|
|
331
331
|
'workspace-guidance-migrator.ts',
|
|
332
|
-
'surface-guard.ts',
|
|
333
332
|
// PRI-307: Plugin I/O boundary — reads .pd/config.yaml, delegates validation to core
|
|
334
333
|
'pd-config-loader.ts',
|
|
335
334
|
// PRI-346: Pure function for checking conversation access config (extracted for circular import avoidance)
|
|
@@ -382,7 +381,7 @@ describe('PRI-212 plugin core anti-growth guard', () => {
|
|
|
382
381
|
expect.fail(msg);
|
|
383
382
|
}
|
|
384
383
|
});
|
|
385
|
-
it('known baseline count is self-consistent (
|
|
384
|
+
it('known baseline count is self-consistent (92 files)', async () => {
|
|
386
385
|
// Sanity check: if the baseline grows, update this number.
|
|
387
386
|
// Prevents accidental baseline bloat from going unnoticed.
|
|
388
387
|
// See docs/reviews/plugin-core-inventory-2026-05.md §7
|
|
@@ -407,7 +406,9 @@ describe('PRI-212 plugin core anti-growth guard', () => {
|
|
|
407
406
|
// Stage-3: Removed risk-calculator.ts (94 → 93) — pure logic sunk to
|
|
408
407
|
// core runtime-v2/risk/, dead code (assessRiskLevel/getTargetFileLineCount/
|
|
409
408
|
// calculatePercentageThreshold) removed.
|
|
410
|
-
|
|
409
|
+
// Stage-3 sink: Removed surface-guard.ts (93 → 92) — pure guard logic
|
|
410
|
+
// migrated to @principles/core/runtime-v2/feature-flags/surface-guard-policy.
|
|
411
|
+
expect(KNOWN_PLUGIN_CORE_FILES.size).toBe(92);
|
|
411
412
|
});
|
|
412
413
|
});
|
|
413
414
|
const REQUIRED_TEST_FILES = [
|