@principles/core 1.253.0 → 1.255.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.
Files changed (19) hide show
  1. package/dist/runtime-v2/__tests__/architecture-regression.test.js +5 -1
  2. package/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
  3. package/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.js +22 -1
  4. package/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.js.map +1 -1
  5. package/dist/runtime-v2/activation/prompt-activation-reader-contract.d.ts +12 -1
  6. package/dist/runtime-v2/activation/prompt-activation-reader-contract.d.ts.map +1 -1
  7. package/dist/runtime-v2/activation/prompt-activation-reader-contract.js +8 -1
  8. package/dist/runtime-v2/activation/prompt-activation-reader-contract.js.map +1 -1
  9. package/dist/runtime-v2/feature-flags/__tests__/principle-receipt-ledger-flag.test.d.ts +2 -0
  10. package/dist/runtime-v2/feature-flags/__tests__/principle-receipt-ledger-flag.test.d.ts.map +1 -0
  11. package/dist/runtime-v2/feature-flags/__tests__/principle-receipt-ledger-flag.test.js +42 -0
  12. package/dist/runtime-v2/feature-flags/__tests__/principle-receipt-ledger-flag.test.js.map +1 -0
  13. package/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +1 -1
  14. package/dist/runtime-v2/feature-flags/feature-flag-contract.js +11 -0
  15. package/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +1 -1
  16. package/dist/runtime-v2/store/sqlite-connection.d.ts.map +1 -1
  17. package/dist/runtime-v2/store/sqlite-connection.js +27 -0
  18. package/dist/runtime-v2/store/sqlite-connection.js.map +1 -1
  19. package/package.json +1 -1
@@ -331,6 +331,9 @@ const KNOWN_PLUGIN_CORE_FILES = new Set([
331
331
  // PRI-530: Plugin I/O boundary — sync readonly state.db reads resolving principle
332
332
  // receipt attribution (title fallback chain / approval date / source summary).
333
333
  'principle-receipt-metadata.ts',
334
+ // PRI-531: Plugin I/O boundary — durable receipt ledger writes (state.db
335
+ // principle_applications inserts + 90-day retention sweep).
336
+ 'principle-application-ledger.ts',
334
337
  'pain-lifecycle.ts',
335
338
  'session-tracker.ts',
336
339
  // PRI-459: now a thin re-export adapter over @principles/core/principle-tree-ledger.
@@ -434,7 +437,8 @@ describe('PRI-212 plugin core anti-growth guard', () => {
434
437
  // detection logic lives in @principles/core/runtime-v2/signal-collector/.
435
438
  // PRI-530: Added principle-receipt-metadata.ts (94 → 95) — plugin I/O boundary
436
439
  // for principle receipt attribution reads (readonly state.db joins).
437
- expect(KNOWN_PLUGIN_CORE_FILES.size).toBe(95);
440
+ // PRI-531: Added principle-application-ledger.ts (95 → 96) — receipt ledger writer.
441
+ expect(KNOWN_PLUGIN_CORE_FILES.size).toBe(96);
438
442
  });
439
443
  });
440
444
  const REQUIRED_TEST_FILES = [