create-principles-disciple 1.150.1 → 1.150.3

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.
Files changed (75) hide show
  1. package/_release/product-identity.json +1 -1
  2. package/codex-adapter/dist/ingestion/ingestion.d.ts +9 -7
  3. package/codex-adapter/dist/ingestion/ingestion.js +68 -144
  4. package/codex-adapter/dist/ingestion/transcript-decoder.d.ts +35 -44
  5. package/codex-adapter/dist/ingestion/transcript-decoder.js +23 -84
  6. package/codex-adapter/dist/ingestion/transcript-source.d.ts +29 -0
  7. package/codex-adapter/dist/ingestion/transcript-source.js +65 -0
  8. package/codex-adapter/dist/pd-hook.d.ts +5 -0
  9. package/codex-adapter/dist/pd-hook.js +8 -1
  10. package/codex-adapter/package.json +1 -1
  11. package/console/dist/server/routes/examiner-eligibility.d.ts +73 -0
  12. package/console/dist/server/routes/examiner-eligibility.js +326 -0
  13. package/console/dist/server/routes/examiner.js +66 -8
  14. package/console/dist/web/assets/app.css +40 -0
  15. package/console/dist/web/assets/app.js +30 -30
  16. package/core/dist/runtime/activation/adaptive-selection-output.d.ts +35 -0
  17. package/core/dist/runtime/activation/adaptive-selection-output.d.ts.map +1 -0
  18. package/core/dist/runtime/activation/adaptive-selection-output.js +38 -0
  19. package/core/dist/runtime/activation/adaptive-selection-output.js.map +1 -0
  20. package/core/dist/runtime/adapter/artificer-l2-adapter.d.ts.map +1 -1
  21. package/core/dist/runtime/adapter/artificer-l2-adapter.js +89 -27
  22. package/core/dist/runtime/adapter/artificer-l2-adapter.js.map +1 -1
  23. package/core/dist/runtime/adapter/context-budget.d.ts +49 -0
  24. package/core/dist/runtime/adapter/context-budget.d.ts.map +1 -0
  25. package/core/dist/runtime/adapter/context-budget.js +127 -0
  26. package/core/dist/runtime/adapter/context-budget.js.map +1 -0
  27. package/core/dist/runtime/adapter/output-schema-registry.d.ts.map +1 -1
  28. package/core/dist/runtime/adapter/output-schema-registry.js +7 -0
  29. package/core/dist/runtime/adapter/output-schema-registry.js.map +1 -1
  30. package/core/dist/runtime/adapter/pi-ai-runtime-adapter.d.ts +30 -7
  31. package/core/dist/runtime/adapter/pi-ai-runtime-adapter.d.ts.map +1 -1
  32. package/core/dist/runtime/adapter/pi-ai-runtime-adapter.js +467 -206
  33. package/core/dist/runtime/adapter/pi-ai-runtime-adapter.js.map +1 -1
  34. package/core/dist/runtime/config/pd-config-effective.d.ts.map +1 -1
  35. package/core/dist/runtime/config/pd-config-effective.js +5 -2
  36. package/core/dist/runtime/config/pd-config-effective.js.map +1 -1
  37. package/core/dist/telemetry-event.d.ts +2 -2
  38. package/core/dist/telemetry-event.d.ts.map +1 -1
  39. package/core/dist/telemetry-event.js +5 -0
  40. package/core/dist/telemetry-event.js.map +1 -1
  41. package/core/package.json +1 -1
  42. package/dist/installers/codex-host-installer.d.ts.map +1 -1
  43. package/dist/installers/codex-host-installer.js +20 -0
  44. package/dist/installers/codex-host-installer.js.map +1 -1
  45. package/host-runtime/dist/adaptive-priority-provider.d.ts +7 -0
  46. package/host-runtime/dist/adaptive-priority-provider.js +34 -2
  47. package/host-runtime/dist/adaptive-selection.d.ts +3 -1
  48. package/host-runtime/dist/adaptive-selection.js +38 -9
  49. package/host-runtime/dist/adaptive-skip-decision.d.ts +61 -0
  50. package/host-runtime/dist/adaptive-skip-decision.js +114 -0
  51. package/host-runtime/dist/codex-ingestion-consent.d.ts +32 -95
  52. package/host-runtime/dist/codex-ingestion-consent.js +33 -205
  53. package/host-runtime/dist/conversation-ingestion/consent.d.ts +124 -0
  54. package/host-runtime/dist/conversation-ingestion/consent.js +531 -0
  55. package/host-runtime/dist/conversation-ingestion/index.d.ts +12 -0
  56. package/host-runtime/dist/conversation-ingestion/index.js +12 -0
  57. package/host-runtime/dist/conversation-ingestion/pipeline.d.ts +101 -0
  58. package/host-runtime/dist/conversation-ingestion/pipeline.js +162 -0
  59. package/host-runtime/dist/conversation-ingestion/source.d.ts +172 -0
  60. package/host-runtime/dist/conversation-ingestion/source.js +111 -0
  61. package/host-runtime/dist/conversation-ingestion/text-policy.d.ts +51 -0
  62. package/host-runtime/dist/conversation-ingestion/text-policy.js +68 -0
  63. package/host-runtime/dist/governance-observation-store.d.ts +9 -7
  64. package/host-runtime/dist/governance-observation-store.js +20 -4
  65. package/host-runtime/dist/index.d.ts +1 -0
  66. package/host-runtime/dist/index.js +6 -0
  67. package/host-runtime/dist/production-rulehost-gate.js +21 -1
  68. package/host-runtime/package.json +1 -1
  69. package/package.json +2 -2
  70. package/pd-cli/package.json +1 -1
  71. package/plugin/dist/bundle.js +470 -514
  72. package/plugin/dist/hooks/gate.d.ts +1 -1
  73. package/plugin/dist/openclaw.plugin.json +1 -1
  74. package/release-manager/dist/installers/codex-host-installer.js +20 -0
  75. package/release-manager/package.json +1 -1
@@ -40,7 +40,7 @@ export declare function buildRuleContextIfEnabled(wctx: WorkspaceContext, target
40
40
  export declare function handleSharedRuleHostResult(event: PluginHookBeforeToolCallEvent, ctx: PluginHookToolContext & {
41
41
  workspaceDir: string;
42
42
  logger?: Partial<PluginLogger>;
43
- }, result: HostEventResult): void;
43
+ }, result: HostEventResult): PluginHookBeforeToolCallResult | void;
44
44
  /**
45
45
  * Authoritative accounting for ONE shared-path deny decision (PRI-569).
46
46
  *
@@ -2,7 +2,7 @@
2
2
  "id": "principles-disciple",
3
3
  "name": "Principles Disciple",
4
4
  "description": "Principles Disciple is an AI Agent Governance System. Stop correcting the same AI behavior across sessions. Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles.",
5
- "version": "3.2.1",
5
+ "version": "3.2.2",
6
6
  "activation": {
7
7
  "onStartup": true,
8
8
  "onCapabilities": [
@@ -554,6 +554,26 @@ export class CodexHostInstaller {
554
554
  }
555
555
  payloadRefreshed = true;
556
556
  notes.push(`payload refreshed ${marketplace.version} → ${current.version}`);
557
+ // The refresh can only serve what the Marketplace SOURCE carries. When
558
+ // the source checkout itself trails the installed release, `codex plugin
559
+ // add` succeeds without moving the payload forward — reporting success
560
+ // there would be the false comfort this reconcile exists to remove
561
+ // (rc-9; update-chain promise: one upgrade brings every host forward).
562
+ const pinAfterRefresh = readPinnedRuntimeCohort(current.versionDir);
563
+ if (pinAfterRefresh === undefined || isRuntimeCohortBehind(pinAfterRefresh, canonical)) {
564
+ return {
565
+ success: false,
566
+ hostId: this.hostId,
567
+ configAction: 'skipped',
568
+ manualActionRequired: true,
569
+ reason: `The in-place payload refresh completed, but the Marketplace payload is still behind the PD release being installed`
570
+ + `${pinAfterRefresh === undefined
571
+ ? ` (runtime pin unreadable at ${current.versionDir} after the refresh)`
572
+ : ` (pinned ${describeRuntimeCohort(pinAfterRefresh)} < ${describeRuntimeCohort(canonical)})`}`
573
+ + `. The Marketplace source it serves is itself behind and must be updated first.`,
574
+ nextAction: `Update the Marketplace source checkout (git pull), then re-run the installer — the payload refresh and the pinned-runtime alignment run again in place (no uninstall needed).`,
575
+ };
576
+ }
557
577
  }
558
578
  else {
559
579
  notes.push(`payload ${current.version} is current for the installed PD release`);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-principles-disciple",
3
- "version": "1.150.1",
3
+ "version": "1.150.3",
4
4
  "description": "Interactive CLI installer for Principles Disciple OpenClaw plugin",
5
5
  "type": "module",
6
6
  "bin": {