@principles/codex-adapter 0.12.0 → 0.12.1

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.
@@ -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, saveHostToolDeclaration, HOST_TOOL_DECLARATION_VERSION, } from '@principles/host-runtime';
31
+ import { createWorkspaceBehaviorEvidencePort, createCodexArtificerTrustedFactsPort, loadPdConfigForPlugin, loadFeatureFlagFromConfig, reconcileGovernanceContinuation, runInternalizationConsumerCycle, runStage2CorrectionCycle, createSignalClassifierForWorkspace, createHostIntentDocReader, 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';
@@ -230,6 +230,10 @@ export async function runCodexWorkspaceWorkerCycle(options) {
230
230
  owner: WORKER_OWNER,
231
231
  effectiveConfig: config.effective,
232
232
  getEnvVar: (name) => process.env[name],
233
+ // PRI-1233 / SPEC §9.2: this worker is where Stage A actually runs
234
+ // for governance-admitted Codex pains — the neutral host reader
235
+ // must ride along (flag-off = zero filesystem access inside it).
236
+ intentDocReader: createHostIntentDocReader({ workspaceDir, effectiveConfig: config.effective }),
233
237
  });
234
238
  const executed = await bridge.executePendingDiagnosis({ taskId: candidate.taskId });
235
239
  // PRI-917 v0.3.3 review fix (P2-2): forward the parked-candidate
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principles/codex-adapter",
3
- "version": "0.12.0",
3
+ "version": "0.12.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",
@@ -33,9 +33,9 @@
33
33
  "lint": "eslint \"src/**/*.ts\""
34
34
  },
35
35
  "dependencies": {
36
- "@principles/core": "^7.9.0",
37
- "@principles/host-runtime": "^4.3.0",
38
- "@principles/install-layout": "^0.8.0"
36
+ "@principles/core": "^7.10.1",
37
+ "@principles/host-runtime": "^4.4.0",
38
+ "@principles/install-layout": "^0.8.3"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/node": "^26.6.6",
@@ -52,5 +52,5 @@
52
52
  "publishConfig": {
53
53
  "access": "public"
54
54
  },
55
- "gitHead": "97cac4b30eb64ad4b369d2f86f5c57a8053897eb"
55
+ "gitHead": "57948395d8f4c8763027b95dd3e9463cba846bce"
56
56
  }