@principles/core 1.270.0 → 1.270.2
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 +12 -2
- package/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
- package/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.js +1 -1
- package/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.js.map +1 -1
- package/dist/runtime-v2/__tests__/owner-identity.test.d.ts +2 -0
- package/dist/runtime-v2/__tests__/owner-identity.test.d.ts.map +1 -0
- package/dist/runtime-v2/__tests__/owner-identity.test.js +147 -0
- package/dist/runtime-v2/__tests__/owner-identity.test.js.map +1 -0
- package/dist/runtime-v2/__tests__/product-telemetry-contract.test.d.ts +18 -0
- package/dist/runtime-v2/__tests__/product-telemetry-contract.test.d.ts.map +1 -0
- package/dist/runtime-v2/__tests__/product-telemetry-contract.test.js +303 -0
- package/dist/runtime-v2/__tests__/product-telemetry-contract.test.js.map +1 -0
- package/dist/runtime-v2/__tests__/recovery-actions-log.test.js +40 -0
- package/dist/runtime-v2/__tests__/recovery-actions-log.test.js.map +1 -1
- package/dist/runtime-v2/__tests__/status-contract.test.d.ts +2 -0
- package/dist/runtime-v2/__tests__/status-contract.test.d.ts.map +1 -0
- package/dist/runtime-v2/__tests__/status-contract.test.js +107 -0
- package/dist/runtime-v2/__tests__/status-contract.test.js.map +1 -0
- package/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.js +1 -1
- package/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.js.map +1 -1
- package/dist/runtime-v2/adapter/__tests__/json-extractor.test.js +91 -1
- package/dist/runtime-v2/adapter/__tests__/json-extractor.test.js.map +1 -1
- package/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.js +59 -12
- package/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.js.map +1 -1
- package/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.js +10 -9
- package/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.js.map +1 -1
- package/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.js +42 -1
- package/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.js.map +1 -1
- package/dist/runtime-v2/adapter/json-extractor.d.ts +25 -0
- package/dist/runtime-v2/adapter/json-extractor.d.ts.map +1 -1
- package/dist/runtime-v2/adapter/json-extractor.js +126 -0
- package/dist/runtime-v2/adapter/json-extractor.js.map +1 -1
- package/dist/runtime-v2/adapter/l2-agent-loop-adapter.d.ts +9 -4
- package/dist/runtime-v2/adapter/l2-agent-loop-adapter.d.ts.map +1 -1
- package/dist/runtime-v2/adapter/l2-agent-loop-adapter.js +9 -4
- package/dist/runtime-v2/adapter/l2-agent-loop-adapter.js.map +1 -1
- package/dist/runtime-v2/adapter/output-repair-contract.d.ts +5 -1
- package/dist/runtime-v2/adapter/output-repair-contract.d.ts.map +1 -1
- package/dist/runtime-v2/adapter/output-repair-contract.js +4 -1
- package/dist/runtime-v2/adapter/output-repair-contract.js.map +1 -1
- package/dist/runtime-v2/adapter/pi-ai-catalog.d.ts +7 -0
- package/dist/runtime-v2/adapter/pi-ai-catalog.d.ts.map +1 -0
- package/dist/runtime-v2/adapter/pi-ai-catalog.js +19 -0
- package/dist/runtime-v2/adapter/pi-ai-catalog.js.map +1 -0
- package/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts +13 -15
- package/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts.map +1 -1
- package/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js +104 -37
- package/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js.map +1 -1
- package/dist/runtime-v2/adapter/structured-output-repair.d.ts +16 -1
- package/dist/runtime-v2/adapter/structured-output-repair.d.ts.map +1 -1
- package/dist/runtime-v2/adapter/structured-output-repair.js +38 -6
- package/dist/runtime-v2/adapter/structured-output-repair.js.map +1 -1
- package/dist/runtime-v2/adapter/tools/diagnostician-tool.d.ts +1 -1
- package/dist/runtime-v2/adapter/tools/diagnostician-tool.d.ts.map +1 -1
- package/dist/runtime-v2/config/__tests__/pd-config-agent-binding.test.js +8 -9
- package/dist/runtime-v2/config/__tests__/pd-config-agent-binding.test.js.map +1 -1
- package/dist/runtime-v2/config/__tests__/pd-config-contract.test.js +27 -3
- package/dist/runtime-v2/config/__tests__/pd-config-contract.test.js.map +1 -1
- package/dist/runtime-v2/config/__tests__/pd-config-principles.test.d.ts +11 -0
- package/dist/runtime-v2/config/__tests__/pd-config-principles.test.d.ts.map +1 -0
- package/dist/runtime-v2/config/__tests__/pd-config-principles.test.js +93 -0
- package/dist/runtime-v2/config/__tests__/pd-config-principles.test.js.map +1 -0
- package/dist/runtime-v2/config/pd-config-agent-binding.d.ts.map +1 -1
- package/dist/runtime-v2/config/pd-config-agent-binding.js +4 -13
- package/dist/runtime-v2/config/pd-config-agent-binding.js.map +1 -1
- package/dist/runtime-v2/config/pd-config-effective.d.ts.map +1 -1
- package/dist/runtime-v2/config/pd-config-effective.js +14 -7
- package/dist/runtime-v2/config/pd-config-effective.js.map +1 -1
- package/dist/runtime-v2/config/pd-config-feature-flags.d.ts.map +1 -1
- package/dist/runtime-v2/config/pd-config-feature-flags.js +5 -12
- package/dist/runtime-v2/config/pd-config-feature-flags.js.map +1 -1
- package/dist/runtime-v2/config/pd-config-validate.d.ts.map +1 -1
- package/dist/runtime-v2/config/pd-config-validate.js +25 -0
- package/dist/runtime-v2/config/pd-config-validate.js.map +1 -1
- package/dist/runtime-v2/core-principles/__tests__/core-axiom-block.test.js +36 -8
- package/dist/runtime-v2/core-principles/__tests__/core-axiom-block.test.js.map +1 -1
- package/dist/runtime-v2/core-principles/__tests__/core-principle-registry.test.js +36 -12
- package/dist/runtime-v2/core-principles/__tests__/core-principle-registry.test.js.map +1 -1
- package/dist/runtime-v2/core-principles/core-axiom-block.d.ts +22 -8
- package/dist/runtime-v2/core-principles/core-axiom-block.d.ts.map +1 -1
- package/dist/runtime-v2/core-principles/core-axiom-block.js +28 -13
- package/dist/runtime-v2/core-principles/core-axiom-block.js.map +1 -1
- package/dist/runtime-v2/core-principles/core-principle-registry.d.ts +29 -4
- package/dist/runtime-v2/core-principles/core-principle-registry.d.ts.map +1 -1
- package/dist/runtime-v2/core-principles/core-principle-registry.js +68 -33
- package/dist/runtime-v2/core-principles/core-principle-registry.js.map +1 -1
- package/dist/runtime-v2/core-principles/index.d.ts +3 -3
- package/dist/runtime-v2/core-principles/index.d.ts.map +1 -1
- package/dist/runtime-v2/core-principles/index.js +1 -1
- package/dist/runtime-v2/core-principles/index.js.map +1 -1
- package/dist/runtime-v2/evolution/evolution-types.d.ts +2 -1
- package/dist/runtime-v2/evolution/evolution-types.d.ts.map +1 -1
- package/dist/runtime-v2/evolution/evolution-types.js.map +1 -1
- package/dist/runtime-v2/feature-flags/__tests__/anonymous-product-telemetry-flag.test.d.ts +2 -0
- package/dist/runtime-v2/feature-flags/__tests__/anonymous-product-telemetry-flag.test.d.ts.map +1 -0
- package/dist/runtime-v2/feature-flags/__tests__/anonymous-product-telemetry-flag.test.js +48 -0
- package/dist/runtime-v2/feature-flags/__tests__/anonymous-product-telemetry-flag.test.js.map +1 -0
- package/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js +66 -35
- package/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js.map +1 -1
- package/dist/runtime-v2/feature-flags/__tests__/feature-flag-lifecycle.test.d.ts +2 -0
- package/dist/runtime-v2/feature-flags/__tests__/feature-flag-lifecycle.test.d.ts.map +1 -0
- package/dist/runtime-v2/feature-flags/__tests__/feature-flag-lifecycle.test.js +83 -0
- package/dist/runtime-v2/feature-flags/__tests__/feature-flag-lifecycle.test.js.map +1 -0
- package/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts +19 -1
- package/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +1 -1
- package/dist/runtime-v2/feature-flags/feature-flag-contract.js +115 -13
- package/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +1 -1
- package/dist/runtime-v2/feature-flags/feature-flag-lifecycle.d.ts +37 -0
- package/dist/runtime-v2/feature-flags/feature-flag-lifecycle.d.ts.map +1 -0
- package/dist/runtime-v2/feature-flags/feature-flag-lifecycle.js +296 -0
- package/dist/runtime-v2/feature-flags/feature-flag-lifecycle.js.map +1 -0
- package/dist/runtime-v2/feature-flags/index.d.ts +4 -2
- package/dist/runtime-v2/feature-flags/index.d.ts.map +1 -1
- package/dist/runtime-v2/feature-flags/index.js +3 -1
- package/dist/runtime-v2/feature-flags/index.js.map +1 -1
- package/dist/runtime-v2/index.d.ts +13 -6
- package/dist/runtime-v2/index.d.ts.map +1 -1
- package/dist/runtime-v2/index.js +15 -5
- package/dist/runtime-v2/index.js.map +1 -1
- package/dist/runtime-v2/internalization/__tests__/artificer-output-retry-flag.test.js +29 -10
- package/dist/runtime-v2/internalization/__tests__/artificer-output-retry-flag.test.js.map +1 -1
- package/dist/runtime-v2/owner-identity.d.ts +69 -0
- package/dist/runtime-v2/owner-identity.d.ts.map +1 -0
- package/dist/runtime-v2/owner-identity.js +179 -0
- package/dist/runtime-v2/owner-identity.js.map +1 -0
- package/dist/runtime-v2/pain-signal-runtime-factory.d.ts.map +1 -1
- package/dist/runtime-v2/pain-signal-runtime-factory.js +2 -3
- package/dist/runtime-v2/pain-signal-runtime-factory.js.map +1 -1
- package/dist/runtime-v2/product-telemetry/daily-identity.d.ts +70 -0
- package/dist/runtime-v2/product-telemetry/daily-identity.d.ts.map +1 -0
- package/dist/runtime-v2/product-telemetry/daily-identity.js +89 -0
- package/dist/runtime-v2/product-telemetry/daily-identity.js.map +1 -0
- package/dist/runtime-v2/product-telemetry/snapshot-contract.d.ts +110 -0
- package/dist/runtime-v2/product-telemetry/snapshot-contract.d.ts.map +1 -0
- package/dist/runtime-v2/product-telemetry/snapshot-contract.js +250 -0
- package/dist/runtime-v2/product-telemetry/snapshot-contract.js.map +1 -0
- package/dist/runtime-v2/pruning-read-model.d.ts +2 -1
- package/dist/runtime-v2/pruning-read-model.d.ts.map +1 -1
- package/dist/runtime-v2/pruning-read-model.js.map +1 -1
- package/dist/runtime-v2/recovery-actions-log.d.ts +7 -0
- package/dist/runtime-v2/recovery-actions-log.d.ts.map +1 -1
- package/dist/runtime-v2/recovery-actions-log.js +6 -0
- package/dist/runtime-v2/recovery-actions-log.js.map +1 -1
- package/dist/runtime-v2/runtime-protocol.js +1 -1
- package/dist/runtime-v2/runtime-protocol.js.map +1 -1
- package/dist/runtime-v2/store/task/__tests__/sqlite-task-store.failed-tasks.test.js +17 -1
- package/dist/runtime-v2/store/task/__tests__/sqlite-task-store.failed-tasks.test.js.map +1 -1
- package/dist/runtime-v2/store/task/sqlite-task-store.d.ts.map +1 -1
- package/dist/runtime-v2/store/task/sqlite-task-store.js +10 -0
- package/dist/runtime-v2/store/task/sqlite-task-store.js.map +1 -1
- package/dist/runtime-v2/store/task/task-types.d.ts +2 -0
- package/dist/runtime-v2/store/task/task-types.d.ts.map +1 -1
- package/dist/runtime-v2/task-status.d.ts +9 -5
- package/dist/runtime-v2/task-status.d.ts.map +1 -1
- package/dist/runtime-v2/task-status.js +15 -7
- package/dist/runtime-v2/task-status.js.map +1 -1
- package/dist/runtime-v2/types/index.d.ts +1 -1
- package/dist/runtime-v2/types/index.d.ts.map +1 -1
- package/dist/runtime-v2/types/index.js +1 -1
- package/dist/runtime-v2/types/index.js.map +1 -1
- package/dist/runtime-v2/types/principle-enums.d.ts +3 -2
- package/dist/runtime-v2/types/principle-enums.d.ts.map +1 -1
- package/dist/runtime-v2/types/principle-enums.js +11 -5
- package/dist/runtime-v2/types/principle-enums.js.map +1 -1
- package/dist/runtime-v2/types/principle-schema.d.ts +1 -1
- package/dist/runtime-v2/types/principle-tree-store.d.ts +1 -1
- package/package.json +2 -3
|
@@ -178,6 +178,11 @@ const REQUIRED_SOURCE_FILES = [
|
|
|
178
178
|
// Slice 1 (PRI-543): deterministic fingerprint for feedback dedup/clustering.
|
|
179
179
|
'feedback/fingerprint.ts',
|
|
180
180
|
'feedback/index.ts',
|
|
181
|
+
// Anonymous Product Telemetry v1 (PRI-595~603, ADR-0021): pure contract —
|
|
182
|
+
// daily unlinkable identity derivation + strict snapshot schema/validator
|
|
183
|
+
// + privacy guard. No I/O; readers/exporter live in @principles/host-runtime.
|
|
184
|
+
'product-telemetry/daily-identity.ts',
|
|
185
|
+
'product-telemetry/snapshot-contract.ts',
|
|
181
186
|
// PRI-372 (T-G)
|
|
182
187
|
'diagnostician/diag-rootcause-output.ts',
|
|
183
188
|
'diagnostician/diag-distiller-output.ts',
|
|
@@ -322,6 +327,11 @@ const KNOWN_PLUGIN_CORE_FILES = new Set([
|
|
|
322
327
|
'dictionary.ts',
|
|
323
328
|
'thinking-os-parser.ts',
|
|
324
329
|
'system-logger.ts',
|
|
330
|
+
// Anonymous Product Telemetry v1 (PRI-595~603, ADR-0021): one-time-init
|
|
331
|
+
// trigger shell — wires the host-neutral telemetry service (all logic in
|
|
332
|
+
// @principles/host-runtime product-telemetry) into the OpenClaw plugin
|
|
333
|
+
// lifecycle. Plugin-specific because the trigger point is plugin-owned.
|
|
334
|
+
'product-telemetry-trigger.ts',
|
|
325
335
|
// PRI-446: now a thin shell wiring DetectionFunnelCore (core runtime-v2/detection)
|
|
326
336
|
// with crypto.createHash + PainDictionary. Kept here because it owns the
|
|
327
337
|
// crypto + dictionary I/O boundary.
|
|
@@ -408,7 +418,7 @@ describe('PRI-212 plugin core anti-growth guard', () => {
|
|
|
408
418
|
expect.fail(msg);
|
|
409
419
|
}
|
|
410
420
|
});
|
|
411
|
-
it('known baseline count is self-consistent (
|
|
421
|
+
it('known baseline count is self-consistent (98 files)', async () => {
|
|
412
422
|
// Sanity check: if the baseline grows, update this number.
|
|
413
423
|
// Prevents accidental baseline bloat from going unnoticed.
|
|
414
424
|
// See docs/archive/reviews/plugin-core-inventory-2026-05.md §7
|
|
@@ -456,7 +466,7 @@ describe('PRI-212 plugin core anti-growth guard', () => {
|
|
|
456
466
|
// projection + auto-consumer governance dispatcher/repair wiring (I/O boundary).
|
|
457
467
|
// RuleCode Owner Live Decision: Added rulecode-safety-circuit.ts (96 → 97)
|
|
458
468
|
// as the plugin I/O shell for scope reads and durable safety isolation.
|
|
459
|
-
expect(KNOWN_PLUGIN_CORE_FILES.size).toBe(
|
|
469
|
+
expect(KNOWN_PLUGIN_CORE_FILES.size).toBe(98);
|
|
460
470
|
});
|
|
461
471
|
});
|
|
462
472
|
const REQUIRED_TEST_FILES = [
|