@principles/core 1.78.0 → 1.80.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 +11 -1
- package/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
- package/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.d.ts +2 -0
- package/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.d.ts.map +1 -0
- package/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.js +343 -0
- package/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.js.map +1 -0
- package/dist/runtime-v2/activation/index.d.ts +2 -0
- package/dist/runtime-v2/activation/index.d.ts.map +1 -1
- package/dist/runtime-v2/activation/index.js +1 -0
- package/dist/runtime-v2/activation/index.js.map +1 -1
- package/dist/runtime-v2/activation/prompt-activation-reader-contract.d.ts +34 -0
- package/dist/runtime-v2/activation/prompt-activation-reader-contract.d.ts.map +1 -0
- package/dist/runtime-v2/activation/prompt-activation-reader-contract.js +109 -0
- package/dist/runtime-v2/activation/prompt-activation-reader-contract.js.map +1 -0
- package/dist/runtime-v2/feature-flags/__tests__/plugin-surface-registry.test.d.ts +2 -0
- package/dist/runtime-v2/feature-flags/__tests__/plugin-surface-registry.test.d.ts.map +1 -0
- package/dist/runtime-v2/feature-flags/__tests__/plugin-surface-registry.test.js +141 -0
- package/dist/runtime-v2/feature-flags/__tests__/plugin-surface-registry.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 +1 -0
- package/dist/runtime-v2/feature-flags/index.js.map +1 -1
- package/dist/runtime-v2/feature-flags/plugin-surface-registry.d.ts +25 -0
- package/dist/runtime-v2/feature-flags/plugin-surface-registry.d.ts.map +1 -0
- package/dist/runtime-v2/feature-flags/plugin-surface-registry.js +217 -0
- package/dist/runtime-v2/feature-flags/plugin-surface-registry.js.map +1 -0
- package/dist/runtime-v2/index.d.ts +4 -1
- package/dist/runtime-v2/index.d.ts.map +1 -1
- package/dist/runtime-v2/index.js +3 -1
- package/dist/runtime-v2/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -143,6 +143,8 @@ const REQUIRED_SOURCE_FILES = [
|
|
|
143
143
|
// PRI-146
|
|
144
144
|
'activation/writers/rule-host-writer.ts',
|
|
145
145
|
'activation/writers/index.ts',
|
|
146
|
+
// PRI-295
|
|
147
|
+
'activation/prompt-activation-reader-contract.ts',
|
|
146
148
|
// PRI-215
|
|
147
149
|
'synthetic-baseline.ts',
|
|
148
150
|
// PRI-239
|
|
@@ -274,6 +276,7 @@ const KNOWN_PLUGIN_CORE_FILES = new Set([
|
|
|
274
276
|
// ── Runtime V2 ──────────────────────────────────────────────────────────
|
|
275
277
|
'runtime-v2-prompt-activation-reader.ts',
|
|
276
278
|
'workspace-guidance-migrator.ts',
|
|
279
|
+
'surface-guard.ts',
|
|
277
280
|
// ── Test Files ──────────────────────────────────────────────────────────
|
|
278
281
|
'__tests__/focus-history.test.ts',
|
|
279
282
|
'principle-compiler/__tests__/compiler-replay-gate.test.ts',
|
|
@@ -320,7 +323,7 @@ describe('PRI-212 plugin core anti-growth guard', () => {
|
|
|
320
323
|
// Prevents accidental baseline bloat from going unnoticed.
|
|
321
324
|
// See docs/reviews/plugin-core-inventory-2026-05.md §7
|
|
322
325
|
// PRI-286: Removed confirm-first-gate.ts (95 → 94)
|
|
323
|
-
expect(KNOWN_PLUGIN_CORE_FILES.size).toBe(
|
|
326
|
+
expect(KNOWN_PLUGIN_CORE_FILES.size).toBe(96);
|
|
324
327
|
});
|
|
325
328
|
});
|
|
326
329
|
const REQUIRED_TEST_FILES = [
|
|
@@ -386,6 +389,8 @@ const REQUIRED_TEST_FILES = [
|
|
|
386
389
|
'synthetic-baseline.test.ts',
|
|
387
390
|
// PRI-239
|
|
388
391
|
'../feature-flags/__tests__/feature-flag-contract.test.ts',
|
|
392
|
+
// PRI-295
|
|
393
|
+
'../activation/__tests__/prompt-activation-reader-contract.test.ts',
|
|
389
394
|
];
|
|
390
395
|
const REQUIRED_DOC_FILES = [];
|
|
391
396
|
for (const file of REQUIRED_SOURCE_FILES) {
|
|
@@ -441,6 +446,11 @@ describe('runtime-v2 public API (index.ts barrel)', () => {
|
|
|
441
446
|
// PRI-239
|
|
442
447
|
'validateFeatureFlagRaw',
|
|
443
448
|
'computeEffectiveFlags',
|
|
449
|
+
// PRI-295
|
|
450
|
+
'filterPromptActivations',
|
|
451
|
+
'resolvePrincipleFromArtifact',
|
|
452
|
+
'trimToBudget',
|
|
453
|
+
'renderPrinciplesToDirectives',
|
|
444
454
|
];
|
|
445
455
|
for (const name of REQUIRED_EXPORTS) {
|
|
446
456
|
it(`exports ${name}`, async () => {
|