@principles/workbuddy-adapter 0.11.1 → 0.11.2

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.
@@ -33,7 +33,7 @@
33
33
  import fs from 'node:fs';
34
34
  import path from 'node:path';
35
35
  import { computeFeatureFlagsFromConfig, createRuntimeStateHandle, createPainSignalBridge, isRetryWaitBackoffElapsed, pickDiagnosticianCandidate, reconcileWaitingTargetEvidenceTasks, PrincipleTreeLedgerAdapter, resolveDiagnosticianCapability, } from '@principles/core/runtime';
36
- import { loadPdConfigForPlugin, loadFeatureFlagFromConfig, reconcileGovernanceContinuation, runInternalizationConsumerCycle, runStage2CorrectionCycle, runIdleTurnAuditCycle, createIdleTurnAuditorForWorkspace, createSignalClassifierForWorkspace, resolveWorkspacePipelineHostDeps, saveHostToolDeclaration, HOST_TOOL_DECLARATION_VERSION, } from '@principles/host-runtime';
36
+ import { loadPdConfigForPlugin, loadFeatureFlagFromConfig, reconcileGovernanceContinuation, executeQueuedDiagnosisWithInboxRecovery, runInternalizationConsumerCycle, runStage2CorrectionCycle, runIdleTurnAuditCycle, createIdleTurnAuditorForWorkspace, createSignalClassifierForWorkspace, resolveWorkspacePipelineHostDeps, saveHostToolDeclaration, HOST_TOOL_DECLARATION_VERSION, } from '@principles/host-runtime';
37
37
  import { WORKBUDDY_TOOL_SEMANTICS, WORKBUDDY_TOOL_SEMANTIC_MAPPINGS } from '../tool-semantics.js';
38
38
  import { catchUpWorkbuddyIngestion } from '../ingestion/catch-up.js';
39
39
  import { readWorkbuddyTargetTurnEvidence } from '../ingestion/pain-receipt-fallback.js';
@@ -367,7 +367,10 @@ export async function runWorkbuddyWorkspaceWorkerCycle(options) {
367
367
  // automatic_hook tasks at the bridge's execution boundary.
368
368
  isAutoPainSubmissionAuthorized: hostDeps.isAutoPainSubmissionAuthorized,
369
369
  }, (release) => { releaseBridge = release; });
370
- const executed = await bridge.executePendingDiagnosis({ taskId: candidate.taskId });
370
+ const executed = await executeQueuedDiagnosisWithInboxRecovery({
371
+ workspaceDir, task: candidate, stateManager: handle.stateManager,
372
+ execute: () => bridge.executePendingDiagnosis({ taskId: candidate.taskId }),
373
+ });
371
374
  diagnostician = {
372
375
  taskId: candidate.taskId,
373
376
  status: executed.status,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principles/workbuddy-adapter",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "WorkBuddy host adapter for Principles Disciple — implements the HostAdapter interface for WorkBuddy's Git Bash command-hook model (ADR-0020 third host, SPEC workbuddy-host-adapter v0.3.0).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -42,8 +42,8 @@
42
42
  "lint": "eslint \"src/**/*.ts\""
43
43
  },
44
44
  "dependencies": {
45
- "@principles/core": "^9.1.0",
46
- "@principles/host-runtime": "^4.12.0",
45
+ "@principles/core": "^10.0.0",
46
+ "@principles/host-runtime": "^5.0.0",
47
47
  "@principles/install-layout": "^0.12.0"
48
48
  },
49
49
  "devDependencies": {
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "e14270ad721ec3a3352d629bb8254be81842cc38"
64
+ "gitHead": "293825348a6f4a40cc561f6a59fc42c64d532766"
65
65
  }