@principles/codex-adapter 0.16.1 → 0.16.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.
- package/dist/pd-hook.js +7 -1
- package/package.json +4 -4
package/dist/pd-hook.js
CHANGED
|
@@ -4,7 +4,7 @@ import path from 'node:path';
|
|
|
4
4
|
import process from 'node:process';
|
|
5
5
|
import { pathToFileURL, fileURLToPath } from 'node:url';
|
|
6
6
|
import { appendEventLogLine, redactTelemetryString, isRuleHostEvaluatedEventData } from '@principles/core/runtime';
|
|
7
|
-
import { ADAPTIVE_SELECTION_LIMITS, createAdaptivePriorityProviderForConfig, createCodexRuleContextProvider, createProductionHostRuntime, loadPdConfigForPlugin, renderAcceptedAdaptiveAppend, resolveHostToolSemanticsForHook, resolveNearestPdWorkspace } from '@principles/host-runtime';
|
|
7
|
+
import { ADAPTIVE_SELECTION_LIMITS, createAdaptivePriorityProviderForConfig, createCodexRuleContextProvider, createProductionHostRuntime, environmentFactDigestOrNull, loadPdConfigForPlugin, renderAcceptedAdaptiveAppend, resolveHostToolSemanticsForHook, resolveNearestPdWorkspace } from '@principles/host-runtime';
|
|
8
8
|
import { resolvePdHome } from '@principles/install-layout';
|
|
9
9
|
import { classifyBashRisk } from '@principles/core/runtime/internalization/bash-risk';
|
|
10
10
|
import { CODEX_TOOL_SEMANTIC_MAPPINGS, CODEX_TOOL_SEMANTICS } from './tool-semantics.js';
|
|
@@ -697,6 +697,12 @@ export async function processHookInvocation(rawStdin, _env = process.env, cwd =
|
|
|
697
697
|
projectDir: requestedCwd,
|
|
698
698
|
hostKind: 'codex',
|
|
699
699
|
toolSemantics,
|
|
700
|
+
afterToolCallEnvironment: {
|
|
701
|
+
runtimeVersion: process.version,
|
|
702
|
+
agentConfigDigest: environmentFactDigestOrNull(config.effective),
|
|
703
|
+
modelConfigDigest: environmentFactDigestOrNull(event.context.modelContext),
|
|
704
|
+
featureFlagsDigest: environmentFactDigestOrNull(flags),
|
|
705
|
+
},
|
|
700
706
|
...(adaptivePriorityProvider ? { adaptiveGapProvider: adaptivePriorityProvider } : {}),
|
|
701
707
|
ruleContextProvider: createCodexRuleContextProvider({
|
|
702
708
|
workspaceDir: resolution.workspaceDir,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principles/codex-adapter",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
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,8 +33,8 @@
|
|
|
33
33
|
"lint": "eslint \"src/**/*.ts\""
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@principles/core": "^8.
|
|
37
|
-
"@principles/host-runtime": "^4.
|
|
36
|
+
"@principles/core": "^8.7.0",
|
|
37
|
+
"@principles/host-runtime": "^4.10.0",
|
|
38
38
|
"@principles/install-layout": "^0.12.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "1da1cdfe14b3c0a471e2b990a2aa376bbefe840b"
|
|
56
56
|
}
|