@principles/core 1.208.2 → 1.209.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 +5 -4
- package/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
- package/dist/runtime-v2/__tests__/evaluator-runner-vslice-v2.test.js +44 -0
- package/dist/runtime-v2/__tests__/evaluator-runner-vslice-v2.test.js.map +1 -1
- package/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.js +72 -2
- package/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.js.map +1 -1
- package/dist/runtime-v2/activation/activation-types.d.ts +1 -0
- package/dist/runtime-v2/activation/activation-types.d.ts.map +1 -1
- package/dist/runtime-v2/activation/activation-types.js.map +1 -1
- package/dist/runtime-v2/activation/sqlite-activation-state-store.d.ts +1 -0
- package/dist/runtime-v2/activation/sqlite-activation-state-store.d.ts.map +1 -1
- package/dist/runtime-v2/activation/sqlite-activation-state-store.js +60 -9
- package/dist/runtime-v2/activation/sqlite-activation-state-store.js.map +1 -1
- package/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js +11 -8
- package/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js.map +1 -1
- package/dist/runtime-v2/activation/writers/rule-host-writer.d.ts.map +1 -1
- package/dist/runtime-v2/activation/writers/rule-host-writer.js +8 -1
- package/dist/runtime-v2/activation/writers/rule-host-writer.js.map +1 -1
- package/dist/runtime-v2/internalization/evaluator-runner.d.ts.map +1 -1
- package/dist/runtime-v2/internalization/evaluator-runner.js +3 -1
- package/dist/runtime-v2/internalization/evaluator-runner.js.map +1 -1
- package/dist/runtime-v2/proven-channel-baseline.js +1 -1
- package/dist/runtime-v2/proven-channel-baseline.js.map +1 -1
- package/dist/runtime-v2/store/sqlite-connection.d.ts.map +1 -1
- package/dist/runtime-v2/store/sqlite-connection.js +4 -0
- package/dist/runtime-v2/store/sqlite-connection.js.map +1 -1
- package/dist/runtime-v2/types/event-types.d.ts +4 -0
- package/dist/runtime-v2/types/event-types.d.ts.map +1 -1
- package/dist/runtime-v2/types/event-types.js +5 -0
- package/dist/runtime-v2/types/event-types.js.map +1 -1
- package/package.json +1 -1
|
@@ -977,7 +977,8 @@ describe('PRI-45 RuleHost adapter boundary', () => {
|
|
|
977
977
|
const { readFileSync } = await import('node:fs');
|
|
978
978
|
const { resolve } = await import('node:path');
|
|
979
979
|
const src = readFileSync(resolve(__dirname, '../../../../openclaw-plugin/src/core/rule-host.ts'), 'utf-8');
|
|
980
|
-
expect(src).
|
|
980
|
+
expect(src).toContain('const liveDecision = mergeDecisions(');
|
|
981
|
+
expect(src).toContain('return this.evaluateDetailed(input).liveDecision');
|
|
981
982
|
});
|
|
982
983
|
});
|
|
983
984
|
// ── PRI-47: Store layer modularization Phase 1 ──────────────────────────────
|
|
@@ -2071,12 +2072,12 @@ describe('PRI-146: RuleHostWriter shadow activation boundary', () => {
|
|
|
2071
2072
|
expect(src).not.toContain('eval(');
|
|
2072
2073
|
expect(src).not.toContain('new Function');
|
|
2073
2074
|
});
|
|
2074
|
-
it('
|
|
2075
|
+
it('LIVE_AFTER_APPROVAL: rule-host-writer.ts uses live action for owner-approved activations', async () => {
|
|
2075
2076
|
const { readFileSync } = await import('node:fs');
|
|
2076
2077
|
const { resolve } = await import('node:path');
|
|
2077
2078
|
const src = readFileSync(resolve(__dirname, '..', 'activation', 'writers', 'rule-host-writer.ts'), 'utf-8');
|
|
2078
|
-
expect(src).
|
|
2079
|
-
expect(src).toContain('code_tool_hook_shadow_activate');
|
|
2079
|
+
expect(src).toContain('code_tool_hook_live_activate');
|
|
2080
|
+
expect(src).not.toContain('code_tool_hook_shadow_activate');
|
|
2080
2081
|
expect(src).toContain('accepted_shadow');
|
|
2081
2082
|
});
|
|
2082
2083
|
it('USES_GATE: rule-host-writer.ts imports evaluateRefinerRuleHostGate', async () => {
|