@principles/core 1.200.0 → 1.202.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 +10 -1
- package/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
- package/dist/runtime-v2/index.d.ts +4 -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/dist/runtime-v2/risk/__tests__/risk-calculator-policy.test.d.ts +2 -0
- package/dist/runtime-v2/risk/__tests__/risk-calculator-policy.test.d.ts.map +1 -0
- package/dist/runtime-v2/risk/__tests__/risk-calculator-policy.test.js +95 -0
- package/dist/runtime-v2/risk/__tests__/risk-calculator-policy.test.js.map +1 -0
- package/dist/runtime-v2/risk/index.d.ts +7 -0
- package/dist/runtime-v2/risk/index.d.ts.map +1 -0
- package/dist/runtime-v2/risk/index.js +6 -0
- package/dist/runtime-v2/risk/index.js.map +1 -0
- package/dist/runtime-v2/risk/risk-calculator-policy.d.ts +18 -0
- package/dist/runtime-v2/risk/risk-calculator-policy.d.ts.map +1 -0
- package/dist/runtime-v2/risk/risk-calculator-policy.js +47 -0
- package/dist/runtime-v2/risk/risk-calculator-policy.js.map +1 -0
- package/package.json +1 -1
|
@@ -284,6 +284,11 @@ const KNOWN_PLUGIN_CORE_FILES = new Set([
|
|
|
284
284
|
'schema/migrations/001-init-trajectory.ts',
|
|
285
285
|
// ── I/O Boundary ────────────────────────────────────────────────────────
|
|
286
286
|
'trajectory.ts',
|
|
287
|
+
// PRI-482: Plugin I/O boundary — converts raw TrajectoryDatabase rows into
|
|
288
|
+
// validated RuleHistoryWindow. Pure logic (canonicalize, validate, facts)
|
|
289
|
+
// delegated to @principles/core. Assembler stays in plugin because it
|
|
290
|
+
// consumes DB row shapes (I/O data).
|
|
291
|
+
'rule-context-assembler.ts',
|
|
287
292
|
'evolution-reducer.ts',
|
|
288
293
|
'focus-history.ts',
|
|
289
294
|
'training-program.ts',
|
|
@@ -308,7 +313,6 @@ const KNOWN_PLUGIN_CORE_FILES = new Set([
|
|
|
308
313
|
// with crypto.createHash + PainDictionary. Kept here because it owns the
|
|
309
314
|
// crypto + dictionary I/O boundary.
|
|
310
315
|
'detection-funnel.ts',
|
|
311
|
-
'risk-calculator.ts',
|
|
312
316
|
'migration.ts',
|
|
313
317
|
'file-store.ts',
|
|
314
318
|
'pd-task-store.ts',
|
|
@@ -398,6 +402,11 @@ describe('PRI-212 plugin core anti-growth guard', () => {
|
|
|
398
402
|
// implementing core IntentDocReader port (pure type mapping, no new I/O).
|
|
399
403
|
// Stage-1 cleanup: Removed evolution-migration.ts (94 → 93) — dead code,
|
|
400
404
|
// zero production references after refactor to @principles/core.
|
|
405
|
+
// PRI-482: Added rule-context-assembler.ts (93 → 94) — plugin I/O boundary
|
|
406
|
+
// converting TrajectoryDatabase rows to validated RuleHistoryWindow.
|
|
407
|
+
// Stage-3: Removed risk-calculator.ts (94 → 93) — pure logic sunk to
|
|
408
|
+
// core runtime-v2/risk/, dead code (assessRiskLevel/getTargetFileLineCount/
|
|
409
|
+
// calculatePercentageThreshold) removed.
|
|
401
410
|
expect(KNOWN_PLUGIN_CORE_FILES.size).toBe(93);
|
|
402
411
|
});
|
|
403
412
|
});
|