create-principles-disciple 1.154.2 → 1.154.4

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 (115) hide show
  1. package/_release/product-identity.json +1 -1
  2. package/codex-adapter/dist/worker/workspace-worker.js +7 -1
  3. package/codex-adapter/package.json +1 -1
  4. package/console/dist/server/models/ReceiptsConsoleModel.js +2 -2
  5. package/console/dist/web/assets/app.css +5 -0
  6. package/console/dist/web/assets/app.js +38 -38
  7. package/core/dist/runtime/feature-flags/feature-flag-contract.d.ts.map +1 -1
  8. package/core/dist/runtime/feature-flags/feature-flag-contract.js +1 -0
  9. package/core/dist/runtime/feature-flags/feature-flag-contract.js.map +1 -1
  10. package/core/dist/runtime/feature-flags/feature-flag-lifecycle.d.ts.map +1 -1
  11. package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js +8 -0
  12. package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js.map +1 -1
  13. package/core/dist/runtime/pain-ingress-payload.d.ts +13 -0
  14. package/core/dist/runtime/pain-ingress-payload.d.ts.map +1 -1
  15. package/core/dist/runtime/pain-ingress-payload.js +26 -0
  16. package/core/dist/runtime/pain-ingress-payload.js.map +1 -1
  17. package/core/dist/runtime/pain-ingress.d.ts +1 -1
  18. package/core/dist/runtime/pain-ingress.d.ts.map +1 -1
  19. package/core/dist/runtime/pain-ingress.js +15 -2
  20. package/core/dist/runtime/pain-ingress.js.map +1 -1
  21. package/core/dist/runtime/pain-signal-bridge.d.ts +18 -0
  22. package/core/dist/runtime/pain-signal-bridge.d.ts.map +1 -1
  23. package/core/dist/runtime/pain-signal-bridge.js +49 -1
  24. package/core/dist/runtime/pain-signal-bridge.js.map +1 -1
  25. package/core/dist/runtime/pain-signal-runtime-factory.d.ts +7 -0
  26. package/core/dist/runtime/pain-signal-runtime-factory.d.ts.map +1 -1
  27. package/core/dist/runtime/pain-signal-runtime-factory.js +2 -0
  28. package/core/dist/runtime/pain-signal-runtime-factory.js.map +1 -1
  29. package/core/dist/runtime/pain-to-principle-service.d.ts +8 -0
  30. package/core/dist/runtime/pain-to-principle-service.d.ts.map +1 -1
  31. package/core/dist/runtime/pain-to-principle-service.js +21 -1
  32. package/core/dist/runtime/pain-to-principle-service.js.map +1 -1
  33. package/core/package.json +1 -1
  34. package/host-runtime/dist/auto-pain-authorization.d.ts +29 -0
  35. package/host-runtime/dist/auto-pain-authorization.js +32 -0
  36. package/host-runtime/dist/diagnostician-auto-run.d.ts +1 -1
  37. package/host-runtime/dist/diagnostician-auto-run.js +41 -0
  38. package/host-runtime/dist/governance-signal-admission.js +16 -0
  39. package/host-runtime/dist/index.d.ts +1 -0
  40. package/host-runtime/dist/index.js +1 -0
  41. package/host-runtime/package.json +1 -1
  42. package/install-layout/dist/active-release.d.ts +41 -0
  43. package/install-layout/dist/active-release.js +131 -0
  44. package/install-layout/dist/index.d.ts +56 -5
  45. package/install-layout/dist/index.js +166 -1
  46. package/install-layout/dist/mcp-binding-contract.d.ts +76 -12
  47. package/install-layout/dist/mcp-binding-contract.js +183 -75
  48. package/install-layout/package.json +1 -1
  49. package/package.json +3 -3
  50. package/pd-cli/dist/commands/health-ingestion.d.ts.map +1 -1
  51. package/pd-cli/dist/commands/health-ingestion.js +6 -2
  52. package/pd-cli/dist/commands/health-ingestion.js.map +1 -1
  53. package/pd-cli/dist/commands/pain-record.d.ts.map +1 -1
  54. package/pd-cli/dist/commands/pain-record.js +4 -1
  55. package/pd-cli/dist/commands/pain-record.js.map +1 -1
  56. package/pd-cli/dist/commands/pain-retry.d.ts.map +1 -1
  57. package/pd-cli/dist/commands/pain-retry.js +19 -1
  58. package/pd-cli/dist/commands/pain-retry.js.map +1 -1
  59. package/pd-cli/dist/commands/service-run-once.d.ts +6 -0
  60. package/pd-cli/dist/commands/service-run-once.d.ts.map +1 -0
  61. package/pd-cli/dist/commands/service-run-once.js +139 -0
  62. package/pd-cli/dist/commands/service-run-once.js.map +1 -0
  63. package/pd-cli/dist/program.d.ts.map +1 -1
  64. package/pd-cli/dist/program.js +21 -0
  65. package/pd-cli/dist/program.js.map +1 -1
  66. package/pd-cli/dist/services/pain-flood-simulation-runner.d.ts.map +1 -1
  67. package/pd-cli/dist/services/pain-flood-simulation-runner.js +4 -0
  68. package/pd-cli/dist/services/pain-flood-simulation-runner.js.map +1 -1
  69. package/pd-cli/dist/services/service-host/index.d.ts +15 -0
  70. package/pd-cli/dist/services/service-host/index.d.ts.map +1 -0
  71. package/pd-cli/dist/services/service-host/index.js +15 -0
  72. package/pd-cli/dist/services/service-host/index.js.map +1 -0
  73. package/pd-cli/dist/services/service-host/install-identity.d.ts +79 -0
  74. package/pd-cli/dist/services/service-host/install-identity.d.ts.map +1 -0
  75. package/pd-cli/dist/services/service-host/install-identity.js +166 -0
  76. package/pd-cli/dist/services/service-host/install-identity.js.map +1 -0
  77. package/pd-cli/dist/services/service-host/locking/service-run-lock.d.ts +134 -0
  78. package/pd-cli/dist/services/service-host/locking/service-run-lock.d.ts.map +1 -0
  79. package/pd-cli/dist/services/service-host/locking/service-run-lock.js +659 -0
  80. package/pd-cli/dist/services/service-host/locking/service-run-lock.js.map +1 -0
  81. package/pd-cli/dist/services/service-host/owner-projection.d.ts +47 -0
  82. package/pd-cli/dist/services/service-host/owner-projection.d.ts.map +1 -0
  83. package/pd-cli/dist/services/service-host/owner-projection.js +121 -0
  84. package/pd-cli/dist/services/service-host/owner-projection.js.map +1 -0
  85. package/pd-cli/dist/services/service-host/run-once.d.ts +96 -0
  86. package/pd-cli/dist/services/service-host/run-once.d.ts.map +1 -0
  87. package/pd-cli/dist/services/service-host/run-once.js +440 -0
  88. package/pd-cli/dist/services/service-host/run-once.js.map +1 -0
  89. package/pd-cli/dist/services/service-host/status/service-run-status.d.ts +117 -0
  90. package/pd-cli/dist/services/service-host/status/service-run-status.d.ts.map +1 -0
  91. package/pd-cli/dist/services/service-host/status/service-run-status.js +150 -0
  92. package/pd-cli/dist/services/service-host/status/service-run-status.js.map +1 -0
  93. package/pd-cli/dist/services/service-host/workspace-discovery.d.ts +71 -0
  94. package/pd-cli/dist/services/service-host/workspace-discovery.d.ts.map +1 -0
  95. package/pd-cli/dist/services/service-host/workspace-discovery.js +288 -0
  96. package/pd-cli/dist/services/service-host/workspace-discovery.js.map +1 -0
  97. package/pd-cli/dist/services/synthetic-baseline-runner.d.ts.map +1 -1
  98. package/pd-cli/dist/services/synthetic-baseline-runner.js +4 -0
  99. package/pd-cli/dist/services/synthetic-baseline-runner.js.map +1 -1
  100. package/pd-cli/package.json +1 -1
  101. package/plugin/dist/bundle.js +420 -420
  102. package/plugin/dist/core/signal-collector-host.d.ts +12 -0
  103. package/plugin/dist/openclaw.plugin.json +1 -1
  104. package/plugin/dist/templates/langs/en/skills/pd-pain-signal/SKILL.md +10 -2
  105. package/plugin/dist/templates/langs/zh/skills/pd-pain-signal/SKILL.md +10 -2
  106. package/plugin/mcp/launcher.cjs +40 -4
  107. package/plugin/openclaw.plugin.json +1 -1
  108. package/plugin/package.json +1 -1
  109. package/plugin/templates/langs/en/skills/pd-pain-signal/SKILL.md +10 -2
  110. package/plugin/templates/langs/zh/skills/pd-pain-signal/SKILL.md +10 -2
  111. package/release-manager/package.json +1 -1
  112. package/workbuddy-adapter/dist/worker/workspace-worker.js +4 -1
  113. package/workbuddy-adapter/package.json +1 -1
  114. package/workbuddy-adapter/plugin/mcp/launcher.cjs +40 -4
  115. package/workbuddy-adapter/plugin/skills/pd-pain-signal/SKILL.md +10 -2
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "productVersion": "2.8.9",
4
- "sourceCommit": "40564c8d36ece678361ed2c7a0cf02dd77119fe1"
4
+ "sourceCommit": "44eb2260606776dc28939a45d5375c2fb29b4a0c"
5
5
  }
@@ -28,7 +28,7 @@
28
28
  import fs from 'node:fs';
29
29
  import path from 'node:path';
30
30
  import { computeFeatureFlagsFromConfig, createRuntimeStateHandle, createPainSignalBridge, isRetryWaitBackoffElapsed, pickDiagnosticianCandidate, PrincipleTreeLedgerAdapter, resolveDiagnosticianCapability, } from '@principles/core/runtime';
31
- import { createWorkspaceBehaviorEvidencePort, createCodexArtificerTrustedFactsPort, loadPdConfigForPlugin, loadFeatureFlagFromConfig, reconcileGovernanceContinuation, runInternalizationConsumerCycle, runStage2CorrectionCycle, createSignalClassifierForWorkspace, createGovernanceTrajectoryTurnReader, createHostIntentDocReader, saveHostToolDeclaration, HOST_TOOL_DECLARATION_VERSION, } from '@principles/host-runtime';
31
+ import { createWorkspaceBehaviorEvidencePort, createCodexArtificerTrustedFactsPort, loadPdConfigForPlugin, loadFeatureFlagFromConfig, reconcileGovernanceContinuation, runInternalizationConsumerCycle, runStage2CorrectionCycle, createSignalClassifierForWorkspace, createGovernanceTrajectoryTurnReader, createHostIntentDocReader, isAutomaticPainSubmissionAuthorized, saveHostToolDeclaration, HOST_TOOL_DECLARATION_VERSION, } from '@principles/host-runtime';
32
32
  import { catchUpCodexIngestion } from '../ingestion/catch-up.js';
33
33
  import { CODEX_TOOL_SEMANTIC_MAPPINGS, CODEX_TOOL_SEMANTICS } from '../tool-semantics.js';
34
34
  const WORKER_OWNER = 'companion-worker';
@@ -258,6 +258,9 @@ export async function runCodexWorkspaceWorkerCycle(options) {
258
258
  // PRI-1265: the worker's Stage A gets the bound session's ORIGINAL
259
259
  // turns from the workspace's own consent-tiered governance store.
260
260
  trajectoryTurnReader: createGovernanceTrajectoryTurnReader({ workspaceDir }),
261
+ // SPEC §9.6: lazy probe — a revoked flag stops persisted
262
+ // automatic_hook tasks at the bridge's execution boundary.
263
+ isAutoPainSubmissionAuthorized: () => isAutomaticPainSubmissionAuthorized(workspaceDir),
261
264
  });
262
265
  const executed = await bridge.executePendingDiagnosis({ taskId: candidate.taskId });
263
266
  // PRI-917 v0.3.3 review fix (P2-2): forward the parked-candidate
@@ -340,6 +343,9 @@ export async function runCodexWorkspaceWorkerCycle(options) {
340
343
  // PRI-1265: post-processing resumes see the same authorized
341
344
  // trajectory context as the initial diagnosis run.
342
345
  trajectoryTurnReader: createGovernanceTrajectoryTurnReader({ workspaceDir }),
346
+ // SPEC §9.6: lazy probe — automatic_hook backlog resumes honor
347
+ // the Workspace authorization too.
348
+ isAutoPainSubmissionAuthorized: () => isAutomaticPainSubmissionAuthorized(workspaceDir),
343
349
  });
344
350
  for (const item of backlog) {
345
351
  const resumed = await bridge.resumeSucceededDiagnosisPostProcessing({ taskId: item.taskId });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principles/codex-adapter",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Codex CLI host adapter for Principles Disciple — implements HostAdapter interface for OpenAI Codex CLI's stdin/stdout JSON hook model (ADR-0020).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -163,7 +163,7 @@ export class ReceiptsConsoleModel {
163
163
  return {
164
164
  status: 'degraded',
165
165
  reason: 'principle_applications table not found — ledger not initialized on this workspace',
166
- nextAction: 'Update the plugin to a version including PRI-531 and enable principle_receipt_ledger',
166
+ nextAction: 'Update PD to the latest version so the receipt ledger is available on this workspace',
167
167
  principleId,
168
168
  effectCount: 0,
169
169
  presenceCount: 0,
@@ -262,7 +262,7 @@ export class ReceiptsConsoleModel {
262
262
  return {
263
263
  status: 'degraded',
264
264
  reason: 'principle_applications table not found — ledger not initialized on this workspace',
265
- nextAction: 'Update the plugin to a version including PRI-531 and enable principle_receipt_ledger',
265
+ nextAction: 'Update PD to the latest version so the receipt ledger is available on this workspace',
266
266
  counts: [],
267
267
  coverage: unreadCoverage('unavailable', 'ledger_table_missing', 'update_plugin'),
268
268
  };
@@ -4127,6 +4127,11 @@ summary.principle-summary-heading {
4127
4127
  display: none;
4128
4128
  }
4129
4129
  }
4130
+ @media (min-width: 96rem) and (min-height: 44rem) {
4131
+ .page-shell-dashboard {
4132
+ max-inline-size: 91rem;
4133
+ }
4134
+ }
4130
4135
  .owner-workbench-container {
4131
4136
  container-type: inline-size;
4132
4137
  }