@principles/core 1.157.0 → 1.159.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 +13 -0
- package/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
- package/dist/runtime-v2/index.d.ts +4 -2
- package/dist/runtime-v2/index.d.ts.map +1 -1
- package/dist/runtime-v2/index.js +2 -1
- package/dist/runtime-v2/index.js.map +1 -1
- package/dist/runtime-v2/internalization/correction-proposal.d.ts.map +1 -1
- package/dist/runtime-v2/internalization/correction-proposal.js +27 -16
- package/dist/runtime-v2/internalization/correction-proposal.js.map +1 -1
- package/dist/runtime-v2/internalization/index.d.ts +2 -0
- package/dist/runtime-v2/internalization/index.d.ts.map +1 -1
- package/dist/runtime-v2/internalization/index.js +1 -0
- package/dist/runtime-v2/internalization/index.js.map +1 -1
- package/dist/runtime-v2/internalization/rule-host-evaluator.d.ts.map +1 -1
- package/dist/runtime-v2/internalization/rule-host-evaluator.js +10 -0
- package/dist/runtime-v2/internalization/rule-host-evaluator.js.map +1 -1
- package/dist/runtime-v2/internalization/rule-host-validator.d.ts +37 -0
- package/dist/runtime-v2/internalization/rule-host-validator.d.ts.map +1 -0
- package/dist/runtime-v2/internalization/rule-host-validator.js +133 -0
- package/dist/runtime-v2/internalization/rule-host-validator.js.map +1 -0
- package/dist/runtime-v2/types/event-types.d.ts +32 -3
- package/dist/runtime-v2/types/event-types.d.ts.map +1 -1
- package/dist/runtime-v2/types/event-types.js +8 -0
- package/dist/runtime-v2/types/event-types.js.map +1 -1
- package/dist/runtime-v2/types/index.d.ts +2 -2
- 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/package.json +1 -1
|
@@ -624,6 +624,19 @@ describe('PRI-42 internalization boundary', () => {
|
|
|
624
624
|
expect(src).toContain('@principles/core/runtime-v2');
|
|
625
625
|
expect(src).not.toContain("from './rule-host-types.js'");
|
|
626
626
|
});
|
|
627
|
+
it('PRI-436: plugin rule-host.ts does NOT import filesystem ledger or implementation storage', async () => {
|
|
628
|
+
const { existsSync, readFileSync } = await import('node:fs');
|
|
629
|
+
const { resolve } = await import('node:path');
|
|
630
|
+
const ruleHostPath = resolve(__dirname, '../../../../openclaw-plugin/src/core/rule-host.ts');
|
|
631
|
+
expect(existsSync(ruleHostPath)).toBe(true);
|
|
632
|
+
const src = readFileSync(ruleHostPath, 'utf-8');
|
|
633
|
+
// PRI-436: SQLite is the sole RuleHost source. No filesystem imports allowed.
|
|
634
|
+
expect(src).not.toContain("from './principle-tree-ledger.js'");
|
|
635
|
+
expect(src).not.toContain("from './code-implementation-storage.js'");
|
|
636
|
+
expect(src).not.toContain('listImplementationsByLifecycleState');
|
|
637
|
+
expect(src).not.toContain('loadEntrySource');
|
|
638
|
+
expect(src).not.toContain("import * as fs from 'fs'");
|
|
639
|
+
});
|
|
627
640
|
it('plugin gate.ts imports RuleHostInput from core barrel', async () => {
|
|
628
641
|
const { existsSync, readFileSync } = await import('node:fs');
|
|
629
642
|
const { resolve } = await import('node:path');
|