create-principles-disciple 1.118.1 → 1.120.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/console/dist/server/index.js +17 -1
- package/console/dist/server/models/ActivationsConsoleModel.d.ts +77 -0
- package/console/dist/server/models/ActivationsConsoleModel.js +322 -4
- package/console/dist/server/models/ReceiptsConsoleModel.d.ts +42 -0
- package/console/dist/server/models/ReceiptsConsoleModel.js +160 -0
- package/console/dist/server/routes/activations.d.ts +6 -1
- package/console/dist/server/routes/activations.js +142 -1
- package/console/dist/server/routes/receipts.d.ts +8 -0
- package/console/dist/server/routes/receipts.js +63 -0
- package/console/dist/ui/App.js +6 -3
- package/console/dist/ui/api.d.ts +40 -3
- package/console/dist/ui/api.js +94 -3
- package/console/dist/ui/i18n/en.json +75 -0
- package/console/dist/ui/i18n/zh-CN.json +75 -0
- package/console/dist/ui/pages/activation/ActivationPage.js +114 -5
- package/console/dist/ui/pages/activation/ActivationValidators.js +3 -0
- package/console/dist/ui/pages/focus/FocusPage.js +16 -3
- package/console/dist/ui/pages/principles/PrincipleDetailPage.js +17 -3
- package/console/dist/ui/utils/validators.d.ts +100 -0
- package/console/dist/ui/utils/validators.js +133 -0
- package/console/dist/web/assets/app.css +34 -0
- package/console/dist/web/assets/app.js +704 -14
- package/console/package.json +2 -0
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js +8 -2
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/__tests__/openclaw-promotion-checks.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/openclaw-promotion-checks.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/openclaw-promotion-checks.test.js +91 -0
- package/core/dist/runtime-v2/activation/__tests__/openclaw-promotion-checks.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/promotion-readiness-evaluator.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/promotion-readiness-evaluator.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/promotion-readiness-evaluator.test.js +83 -0
- package/core/dist/runtime-v2/activation/__tests__/promotion-readiness-evaluator.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/promotion-readiness-reader.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/promotion-readiness-reader.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/promotion-readiness-reader.test.js +48 -0
- package/core/dist/runtime-v2/activation/__tests__/promotion-readiness-reader.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/rulecode-owner-decision-service.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/rulecode-owner-decision-service.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/rulecode-owner-decision-service.test.js +141 -0
- package/core/dist/runtime-v2/activation/__tests__/rulecode-owner-decision-service.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/rulecode-safety-circuit-breaker.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/rulecode-safety-circuit-breaker.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/rulecode-safety-circuit-breaker.test.js +31 -0
- package/core/dist/runtime-v2/activation/__tests__/rulecode-safety-circuit-breaker.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-safety-store.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-safety-store.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-safety-store.test.js +311 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-safety-store.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/activation-control-types.d.ts +61 -0
- package/core/dist/runtime-v2/activation/activation-control-types.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/activation-control-types.js +2 -0
- package/core/dist/runtime-v2/activation/activation-control-types.js.map +1 -0
- package/core/dist/runtime-v2/activation/index.d.ts +14 -0
- package/core/dist/runtime-v2/activation/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/index.js +7 -0
- package/core/dist/runtime-v2/activation/index.js.map +1 -1
- package/core/dist/runtime-v2/activation/openclaw-promotion-checks.d.ts +30 -0
- package/core/dist/runtime-v2/activation/openclaw-promotion-checks.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/openclaw-promotion-checks.js +124 -0
- package/core/dist/runtime-v2/activation/openclaw-promotion-checks.js.map +1 -0
- package/core/dist/runtime-v2/activation/promotion-readiness-evaluator.d.ts +17 -0
- package/core/dist/runtime-v2/activation/promotion-readiness-evaluator.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/promotion-readiness-evaluator.js +55 -0
- package/core/dist/runtime-v2/activation/promotion-readiness-evaluator.js.map +1 -0
- package/core/dist/runtime-v2/activation/promotion-readiness-reader.d.ts +21 -0
- package/core/dist/runtime-v2/activation/promotion-readiness-reader.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/promotion-readiness-reader.js +44 -0
- package/core/dist/runtime-v2/activation/promotion-readiness-reader.js.map +1 -0
- package/core/dist/runtime-v2/activation/rulecode-owner-decision-service.d.ts +104 -0
- package/core/dist/runtime-v2/activation/rulecode-owner-decision-service.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/rulecode-owner-decision-service.js +86 -0
- package/core/dist/runtime-v2/activation/rulecode-owner-decision-service.js.map +1 -0
- package/core/dist/runtime-v2/activation/rulecode-safety-circuit-breaker.d.ts +25 -0
- package/core/dist/runtime-v2/activation/rulecode-safety-circuit-breaker.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/rulecode-safety-circuit-breaker.js +23 -0
- package/core/dist/runtime-v2/activation/rulecode-safety-circuit-breaker.js.map +1 -0
- package/core/dist/runtime-v2/activation/rulecode-shadow-summary.d.ts +14 -0
- package/core/dist/runtime-v2/activation/rulecode-shadow-summary.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/rulecode-shadow-summary.js +57 -0
- package/core/dist/runtime-v2/activation/rulecode-shadow-summary.js.map +1 -0
- package/core/dist/runtime-v2/activation/sqlite-activation-safety-store.d.ts +40 -0
- package/core/dist/runtime-v2/activation/sqlite-activation-safety-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/sqlite-activation-safety-store.js +461 -0
- package/core/dist/runtime-v2/activation/sqlite-activation-safety-store.js.map +1 -0
- package/core/dist/runtime-v2/activation/sqlite-activation-state-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/sqlite-activation-state-store.js +24 -6
- package/core/dist/runtime-v2/activation/sqlite-activation-state-store.js.map +1 -1
- package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js +19 -4
- package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/writers/rule-host-writer.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/writers/rule-host-writer.js +10 -0
- package/core/dist/runtime-v2/activation/writers/rule-host-writer.js.map +1 -1
- package/core/dist/runtime-v2/adapter/__tests__/schema-json-converter.test.d.ts +2 -0
- package/core/dist/runtime-v2/adapter/__tests__/schema-json-converter.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/schema-json-converter.test.js +101 -0
- package/core/dist/runtime-v2/adapter/__tests__/schema-json-converter.test.js.map +1 -0
- package/core/dist/runtime-v2/adapter/artificer-l2-adapter.js +1 -1
- package/core/dist/runtime-v2/adapter/artificer-l2-adapter.js.map +1 -1
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts.map +1 -1
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js +11 -1
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js.map +1 -1
- package/core/dist/runtime-v2/adapter/schema-json-converter.d.ts +32 -0
- package/core/dist/runtime-v2/adapter/schema-json-converter.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/schema-json-converter.js +91 -0
- package/core/dist/runtime-v2/adapter/schema-json-converter.js.map +1 -0
- package/core/dist/runtime-v2/config/__tests__/pd-config-contract.test.js +13 -0
- package/core/dist/runtime-v2/config/__tests__/pd-config-contract.test.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js +15 -2
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js +2 -0
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +1 -1
- package/core/dist/runtime-v2/index.d.ts +2 -2
- package/core/dist/runtime-v2/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/index.js +1 -1
- package/core/dist/runtime-v2/index.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/legacy-rule-contract-scanner.test.js +20 -1
- package/core/dist/runtime-v2/internalization/__tests__/legacy-rule-contract-scanner.test.js.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-runner.js +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.d.ts +4 -4
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.js +92 -5
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/split-diagnostician-runner.d.ts +1 -1
- package/core/dist/runtime-v2/internalization/split-diagnostician-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/split-diagnostician-runner.js +1 -1
- package/core/dist/runtime-v2/runner/__tests__/base-peer-runner-failure-details.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/base-peer-runner-failure-details.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/base-peer-runner-failure-details.test.js +148 -0
- package/core/dist/runtime-v2/runner/__tests__/base-peer-runner-failure-details.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/base-peer-runner.d.ts +15 -1
- package/core/dist/runtime-v2/runner/base-peer-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/runner/base-peer-runner.js +64 -1
- package/core/dist/runtime-v2/runner/base-peer-runner.js.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-connection-schema-version.test.js +11 -11
- package/core/dist/runtime-v2/store/sqlite-connection-schema-version.test.js.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-connection.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-connection.js +111 -0
- package/core/dist/runtime-v2/store/sqlite-connection.js.map +1 -1
- package/core/package.json +1 -1
- package/host-runtime/dist/host-liveness-contract.d.ts +3 -0
- package/host-runtime/dist/host-liveness-contract.js +18 -0
- package/host-runtime/dist/index.d.ts +1 -0
- package/host-runtime/dist/index.js +1 -0
- package/host-runtime/dist/legacy-rule-contract-symbols.js +88 -1
- package/host-runtime/dist/production-rulehost-gate.js +33 -16
- package/package.json +2 -2
- package/pd-cli/dist/commands/__tests__/runtime-activation-nextaction.test.js +3 -3
- package/pd-cli/dist/commands/__tests__/runtime-activation-nextaction.test.js.map +1 -1
- package/pd-cli/dist/commands/runtime-activation.d.ts +15 -3
- package/pd-cli/dist/commands/runtime-activation.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-activation.js +160 -49
- package/pd-cli/dist/commands/runtime-activation.js.map +1 -1
- package/pd-cli/package.json +1 -1
- package/plugin/dist/bundle.js +730 -565
- package/plugin/dist/core/rule-host.d.ts +0 -19
- package/plugin/dist/core/rulecode-safety-circuit.d.ts +13 -0
- package/plugin/dist/openclaw.plugin.json +1 -1
- package/plugin/openclaw.plugin.json +2 -2
- package/plugin/package.json +2 -2
package/console/package.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"test:integration": "vitest run tests/integration",
|
|
14
14
|
"test:coverage": "vitest run --coverage",
|
|
15
15
|
"test:e2e": "npm run build:ui && npx playwright test",
|
|
16
|
+
"test:e2e:owner": "npm run build:ui && npx playwright test --config playwright.owner.config.ts",
|
|
16
17
|
"test:e2e:headed": "npm run build:ui && npx playwright test --headed",
|
|
17
18
|
"typecheck": "npx tsc --noEmit",
|
|
18
19
|
"verify:build": "node scripts/verify-build.mjs"
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
"dependencies": {
|
|
21
22
|
"@fontsource/jetbrains-mono": "^5.2.8",
|
|
22
23
|
"@principles/core": "file:../core",
|
|
24
|
+
"@principles/host-runtime": "file:../host-runtime",
|
|
23
25
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
24
26
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
25
27
|
"@radix-ui/react-select": "^2.3.7",
|
|
@@ -363,6 +363,10 @@ const KNOWN_PLUGIN_CORE_FILES = new Set([
|
|
|
363
363
|
// mapping from safeReadIntentDoc result to the core-owned IntentDocReadResult.
|
|
364
364
|
// No new I/O; delegates to intent-doc-reader.ts above.
|
|
365
365
|
'intent-doc-reader-adapter.ts',
|
|
366
|
+
// RuleCode safety containment I/O boundary — reads approved artifact scope and
|
|
367
|
+
// persists circuit-breaker isolation through the core-owned SQLite safety store.
|
|
368
|
+
// Pure threshold policy remains in principles-core.
|
|
369
|
+
'rulecode-safety-circuit.ts',
|
|
366
370
|
// ── Test Files ──────────────────────────────────────────────────────────
|
|
367
371
|
'__tests__/focus-history.test.ts',
|
|
368
372
|
'principle-compiler/__tests__/compiler-replay-gate.test.ts',
|
|
@@ -404,7 +408,7 @@ describe('PRI-212 plugin core anti-growth guard', () => {
|
|
|
404
408
|
expect.fail(msg);
|
|
405
409
|
}
|
|
406
410
|
});
|
|
407
|
-
it('known baseline count is self-consistent (
|
|
411
|
+
it('known baseline count is self-consistent (97 files)', async () => {
|
|
408
412
|
// Sanity check: if the baseline grows, update this number.
|
|
409
413
|
// Prevents accidental baseline bloat from going unnoticed.
|
|
410
414
|
// See docs/archive/reviews/plugin-core-inventory-2026-05.md §7
|
|
@@ -450,7 +454,9 @@ describe('PRI-212 plugin core anti-growth guard', () => {
|
|
|
450
454
|
// MVP core-loop closure (P0-B/P0-D): Added signal-keyword-store.ts +
|
|
451
455
|
// auto-consumer-governance-wiring.ts (94 → 96) — live correction-cue store
|
|
452
456
|
// projection + auto-consumer governance dispatcher/repair wiring (I/O boundary).
|
|
453
|
-
|
|
457
|
+
// RuleCode Owner Live Decision: Added rulecode-safety-circuit.ts (96 → 97)
|
|
458
|
+
// as the plugin I/O shell for scope reads and durable safety isolation.
|
|
459
|
+
expect(KNOWN_PLUGIN_CORE_FILES.size).toBe(97);
|
|
454
460
|
});
|
|
455
461
|
});
|
|
456
462
|
const REQUIRED_TEST_FILES = [
|