@principles/core 1.278.13 → 1.279.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.
@@ -113,7 +113,6 @@ const REQUIRED_SOURCE_FILES = [
113
113
  // Phase 2 migration: types directory
114
114
  'types/queue-types.ts',
115
115
  'types/hygiene-types.ts',
116
- 'types/runtime-summary-types.ts',
117
116
  'types/event-types.ts',
118
117
  'types/event-payload.ts',
119
118
  'types/pain-signal.ts',
@@ -357,8 +356,8 @@ const KNOWN_PLUGIN_CORE_FILES = new Set([
357
356
  // still resolve. No parsing/serialization/mutation logic may live here — enforced by
358
357
  // tests/ledger-schema-diff.test.ts.
359
358
  'principle-tree-ledger.ts',
360
- 'evolution-logger.ts',
361
- 'evolution-engine.ts',
359
+ // evolution-logger.ts / evolution-engine.ts removed (PRI-737 legacy
360
+ // evolution worker retirement).
362
361
  // ── Runtime V2 ──────────────────────────────────────────────────────────
363
362
  'runtime-v2-prompt-activation-reader.ts',
364
363
  'workspace-guidance-migrator.ts',
@@ -466,7 +465,9 @@ describe('PRI-212 plugin core anti-growth guard', () => {
466
465
  // projection + auto-consumer governance dispatcher/repair wiring (I/O boundary).
467
466
  // RuleCode Owner Live Decision: Added rulecode-safety-circuit.ts (96 → 97)
468
467
  // as the plugin I/O shell for scope reads and durable safety isolation.
469
- expect(KNOWN_PLUGIN_CORE_FILES.size).toBe(98);
468
+ // PRI-737: Removed evolution-logger.ts + evolution-engine.ts (98 → 96) —
469
+ // legacy evolution worker retirement (trace-id util moved to src/utils/).
470
+ expect(KNOWN_PLUGIN_CORE_FILES.size).toBe(96);
470
471
  });
471
472
  });
472
473
  const REQUIRED_TEST_FILES = [
@@ -2377,12 +2378,11 @@ describe('Phase 2.2 correction types migration', () => {
2377
2378
  expect(src).not.toMatch(/^export interface CorrectionKeyword/m);
2378
2379
  });
2379
2380
  });
2380
- // ── Phase 2 Migration: Types Directory (queue, hygiene, runtime-summary, events) ──
2381
+ // ── Phase 2 Migration: Types Directory (queue, hygiene, events) ──
2381
2382
  describe('Phase 2.4 types directory migration', () => {
2382
2383
  const CORE_TYPE_FILES = [
2383
2384
  'types/queue-types.ts',
2384
2385
  'types/hygiene-types.ts',
2385
- 'types/runtime-summary-types.ts',
2386
2386
  'types/event-types.ts',
2387
2387
  'types/event-payload.ts',
2388
2388
  ];
@@ -2413,14 +2413,6 @@ describe('Phase 2.4 types directory migration', () => {
2413
2413
  expect(src).toContain('createEmptyHygieneStats');
2414
2414
  expect(src).toContain("from './types/hygiene-types.js'");
2415
2415
  });
2416
- it('core barrel exports RuntimeTruth, TrendMetrics', async () => {
2417
- const { readFileSync } = await import('node:fs');
2418
- const { resolve } = await import('node:path');
2419
- const src = readFileSync(resolve(__dirname, '..', 'index.ts'), 'utf-8');
2420
- expect(src).toContain('RuntimeTruth');
2421
- expect(src).toContain('TrendMetrics');
2422
- expect(src).toContain("from './types/runtime-summary-types.js'");
2423
- });
2424
2416
  it('core barrel exports EventType, EventLogEntry, EventEvolutionStats', async () => {
2425
2417
  const { readFileSync } = await import('node:fs');
2426
2418
  const { resolve } = await import('node:path');
@@ -2450,12 +2442,6 @@ describe('Phase 2.4 types directory migration', () => {
2450
2442
  const src = readFileSync(resolve(__dirname, '../../../../openclaw-plugin/src/types/hygiene-types.ts'), 'utf-8');
2451
2443
  expect(src).toContain("@principles/core/runtime-v2");
2452
2444
  });
2453
- it('plugin types/runtime-summary.ts re-exports from core', async () => {
2454
- const { readFileSync } = await import('node:fs');
2455
- const { resolve } = await import('node:path');
2456
- const src = readFileSync(resolve(__dirname, '../../../../openclaw-plugin/src/types/runtime-summary.ts'), 'utf-8');
2457
- expect(src).toContain("@principles/core/runtime-v2");
2458
- });
2459
2445
  it('plugin types/event-types.ts re-exports from core', async () => {
2460
2446
  const { readFileSync } = await import('node:fs');
2461
2447
  const { resolve } = await import('node:path');