@a5c-ai/hooks-mux-adapter-codex 5.0.1-staging.ff2c19f9 → 5.0.1-staging.ffad3b46492e
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/README.md +29 -0
- package/dist/adapter.d.ts +1 -10
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +18 -16
- package/dist/adapter.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/mappings.d.ts +0 -10
- package/dist/mappings.d.ts.map +1 -1
- package/dist/mappings.js +46 -53
- package/dist/mappings.js.map +1 -1
- package/dist/normalizer.d.ts +3 -1
- package/dist/normalizer.d.ts.map +1 -1
- package/dist/normalizer.js +9 -2
- package/dist/normalizer.js.map +1 -1
- package/dist/renderer.d.ts.map +1 -1
- package/dist/renderer.js +5 -0
- package/dist/renderer.js.map +1 -1
- package/package.json +10 -5
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# @a5c-ai/hooks-mux-adapter-codex
|
|
2
|
+
|
|
3
|
+
Codex harness adapter for hooks-mux.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @a5c-ai/hooks-mux-adapter-codex @a5c-ai/hooks-mux-core
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
This package ships the built adapter runtime in `dist/` and this package README for npm publish-surface auditing.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import {
|
|
17
|
+
createAdapter,
|
|
18
|
+
normalizeCodexEvent,
|
|
19
|
+
renderCodexOutput,
|
|
20
|
+
} from "@a5c-ai/hooks-mux-adapter-codex";
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
The package exposes Codex-specific normalization, phase mappings, rendering helpers, and session-resolution utilities for the hooks-mux execution pipeline.
|
|
24
|
+
|
|
25
|
+
See [`packages/hooks-mux/README.md`](../README.md) for the workspace overview and `packages/hooks-mux/docs/adapter-integration-guide.md` for end-to-end integration guidance.
|
|
26
|
+
|
|
27
|
+
## License
|
|
28
|
+
|
|
29
|
+
MIT © a5c-ai
|
package/dist/adapter.d.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
1
|
import type { AdapterCapabilities } from '@a5c-ai/hooks-mux-core';
|
|
2
|
-
|
|
3
|
-
* Creates the Codex adapter with its capability metadata.
|
|
4
|
-
*
|
|
5
|
-
* Codex CLI is a shell-hook adapter with experimental status.
|
|
6
|
-
* Tool interception is partial (Bash-only), and env propagation
|
|
7
|
-
* is wrapper-based only -- there is no native env file mechanism.
|
|
8
|
-
*
|
|
9
|
-
* Spec section 17.2.
|
|
10
|
-
*/
|
|
11
|
-
export declare function createAdapter(): AdapterCapabilities;
|
|
2
|
+
export declare function createAdapter(name?: string): AdapterCapabilities;
|
|
12
3
|
//# sourceMappingURL=adapter.d.ts.map
|
package/dist/adapter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAalE,wBAAgB,aAAa,CAAC,IAAI,GAAE,MAA6B,GAAG,mBAAmB,CAsBtF"}
|
package/dist/adapter.js
CHANGED
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createAdapter = createAdapter;
|
|
4
|
+
const agent_catalog_1 = require("@a5c-ai/agent-catalog");
|
|
4
5
|
/**
|
|
5
6
|
* Creates the Codex adapter with its capability metadata.
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* is wrapper-based only -- there is no native env file mechanism.
|
|
8
|
+
* Reads capability data from the Atlas graph via the agent-catalog.
|
|
9
|
+
* Falls back to hardcoded defaults if the catalog is unavailable.
|
|
10
10
|
*
|
|
11
11
|
* Spec section 17.2.
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
const DEFAULT_ADAPTER_NAME = 'codex';
|
|
14
|
+
function createAdapter(name = DEFAULT_ADAPTER_NAME) {
|
|
15
|
+
const target = (0, agent_catalog_1.getPluginTargetDescriptor)(name);
|
|
14
16
|
return {
|
|
15
|
-
name
|
|
16
|
-
family: 'shell-hook',
|
|
17
|
-
sessionIdQuality: 'native',
|
|
18
|
-
supportsOrderedFanout: true,
|
|
19
|
-
supportsNativeAdditionalContext: false,
|
|
20
|
-
supportsBlock: true,
|
|
21
|
-
supportsAsk: false,
|
|
22
|
-
supportsToolInputMutation: false,
|
|
23
|
-
supportsToolResultMutation: false,
|
|
24
|
-
supportsPersistedEnv: false,
|
|
25
|
-
envPersistenceMode: 'wrapper_only',
|
|
26
|
-
toolInterceptionScope: 'partial_shell_only',
|
|
17
|
+
name,
|
|
18
|
+
family: target?.hooksMuxFamily ?? 'shell-hook',
|
|
19
|
+
sessionIdQuality: target?.sessionIdQuality ?? 'native',
|
|
20
|
+
supportsOrderedFanout: target?.supportsOrderedFanout ?? true,
|
|
21
|
+
supportsNativeAdditionalContext: target?.supportsNativeAdditionalContext ?? false,
|
|
22
|
+
supportsBlock: target?.supportsBlock ?? true,
|
|
23
|
+
supportsAsk: target?.supportsAsk ?? false,
|
|
24
|
+
supportsToolInputMutation: target?.supportsToolInputMutation ?? false,
|
|
25
|
+
supportsToolResultMutation: target?.supportsToolResultMutation ?? false,
|
|
26
|
+
supportsPersistedEnv: target?.supportsPersistedEnv ?? false,
|
|
27
|
+
envPersistenceMode: target?.envPersistenceMode ?? 'wrapper_only',
|
|
28
|
+
toolInterceptionScope: target?.toolInterceptionScope ?? 'partial_shell_only',
|
|
27
29
|
notes: [
|
|
28
30
|
'experimental',
|
|
29
31
|
'tool interception is bash-only',
|
package/dist/adapter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":";;AAaA,sCAsBC;AAlCD,yDAAkE;AAElE;;;;;;;GAOG;AACH,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAErC,SAAgB,aAAa,CAAC,OAAe,oBAAoB;IAC/D,MAAM,MAAM,GAAG,IAAA,yCAAyB,EAAC,IAAI,CAAC,CAAC;IAC/C,OAAO;QACL,IAAI;QACJ,MAAM,EAAG,MAAM,EAAE,cAAgD,IAAI,YAAY;QACjF,gBAAgB,EAAG,MAAM,EAAE,gBAA4D,IAAI,QAAQ;QACnG,qBAAqB,EAAE,MAAM,EAAE,qBAAqB,IAAI,IAAI;QAC5D,+BAA+B,EAAE,MAAM,EAAE,+BAA+B,IAAI,KAAK;QACjF,aAAa,EAAE,MAAM,EAAE,aAAa,IAAI,IAAI;QAC5C,WAAW,EAAE,MAAM,EAAE,WAAW,IAAI,KAAK;QACzC,yBAAyB,EAAE,MAAM,EAAE,yBAAyB,IAAI,KAAK;QACrE,0BAA0B,EAAE,MAAM,EAAE,0BAA0B,IAAI,KAAK;QACvE,oBAAoB,EAAE,MAAM,EAAE,oBAAoB,IAAI,KAAK;QAC3D,kBAAkB,EAAG,MAAM,EAAE,kBAAgE,IAAI,cAAc;QAC/G,qBAAqB,EAAG,MAAM,EAAE,qBAAsE,IAAI,oBAAoB;QAC9H,KAAK,EAAE;YACL,cAAc;YACd,gCAAgC;YAChC,iDAAiD;YACjD,+CAA+C;SAChD;KACF,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { createAdapter } from './adapter';
|
|
2
2
|
export { CODEX_PHASE_MAPPINGS, findMapping } from './mappings';
|
|
3
|
-
export { normalizeCodexEvent, parseStdin, extractSessionId, ADAPTER_NAME, } from './normalizer';
|
|
3
|
+
export { normalizeCodexEvent, normalizeCodexEvent as normalizeForInvoke, setAdapterName, parseStdin, extractSessionId, ADAPTER_NAME, } from './normalizer';
|
|
4
4
|
export type { CodexSessionStartPayload, CodexUserPromptPayload, CodexStopPayload, CodexToolPayload, } from './normalizer';
|
|
5
|
-
export { renderCodexOutput, isFieldSupportedForEvent } from './renderer';
|
|
5
|
+
export { renderCodexOutput, renderCodexOutput as renderForInvoke, isFieldSupportedForEvent, } from './renderer';
|
|
6
6
|
export { resolveSessionId, isValidSessionId } from './session-resolver';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG/D,OAAO,EACL,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,YAAY,GACb,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,wBAAwB,EACxB,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAGtB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG/D,OAAO,EACL,mBAAmB,EACnB,mBAAmB,IAAI,kBAAkB,EACzC,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,YAAY,GACb,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,wBAAwB,EACxB,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,iBAAiB,EACjB,iBAAiB,IAAI,eAAe,EACpC,wBAAwB,GACzB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isValidSessionId = exports.resolveSessionId = exports.isFieldSupportedForEvent = exports.renderCodexOutput = exports.ADAPTER_NAME = exports.extractSessionId = exports.parseStdin = exports.normalizeCodexEvent = exports.findMapping = exports.CODEX_PHASE_MAPPINGS = exports.createAdapter = void 0;
|
|
3
|
+
exports.isValidSessionId = exports.resolveSessionId = exports.isFieldSupportedForEvent = exports.renderForInvoke = exports.renderCodexOutput = exports.ADAPTER_NAME = exports.extractSessionId = exports.parseStdin = exports.setAdapterName = exports.normalizeForInvoke = exports.normalizeCodexEvent = exports.findMapping = exports.CODEX_PHASE_MAPPINGS = exports.createAdapter = void 0;
|
|
4
4
|
// Adapter capabilities
|
|
5
5
|
var adapter_1 = require("./adapter");
|
|
6
6
|
Object.defineProperty(exports, "createAdapter", { enumerable: true, get: function () { return adapter_1.createAdapter; } });
|
|
@@ -11,12 +11,15 @@ Object.defineProperty(exports, "findMapping", { enumerable: true, get: function
|
|
|
11
11
|
// Normalizer
|
|
12
12
|
var normalizer_1 = require("./normalizer");
|
|
13
13
|
Object.defineProperty(exports, "normalizeCodexEvent", { enumerable: true, get: function () { return normalizer_1.normalizeCodexEvent; } });
|
|
14
|
+
Object.defineProperty(exports, "normalizeForInvoke", { enumerable: true, get: function () { return normalizer_1.normalizeCodexEvent; } });
|
|
15
|
+
Object.defineProperty(exports, "setAdapterName", { enumerable: true, get: function () { return normalizer_1.setAdapterName; } });
|
|
14
16
|
Object.defineProperty(exports, "parseStdin", { enumerable: true, get: function () { return normalizer_1.parseStdin; } });
|
|
15
17
|
Object.defineProperty(exports, "extractSessionId", { enumerable: true, get: function () { return normalizer_1.extractSessionId; } });
|
|
16
18
|
Object.defineProperty(exports, "ADAPTER_NAME", { enumerable: true, get: function () { return normalizer_1.ADAPTER_NAME; } });
|
|
17
19
|
// Renderer
|
|
18
20
|
var renderer_1 = require("./renderer");
|
|
19
21
|
Object.defineProperty(exports, "renderCodexOutput", { enumerable: true, get: function () { return renderer_1.renderCodexOutput; } });
|
|
22
|
+
Object.defineProperty(exports, "renderForInvoke", { enumerable: true, get: function () { return renderer_1.renderCodexOutput; } });
|
|
20
23
|
Object.defineProperty(exports, "isFieldSupportedForEvent", { enumerable: true, get: function () { return renderer_1.isFieldSupportedForEvent; } });
|
|
21
24
|
// Session resolver
|
|
22
25
|
var session_resolver_1 = require("./session-resolver");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uBAAuB;AACvB,qCAA0C;AAAjC,wGAAA,aAAa,OAAA;AAEtB,iBAAiB;AACjB,uCAA+D;AAAtD,gHAAA,oBAAoB,OAAA;AAAE,uGAAA,WAAW,OAAA;AAE1C,aAAa;AACb,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uBAAuB;AACvB,qCAA0C;AAAjC,wGAAA,aAAa,OAAA;AAEtB,iBAAiB;AACjB,uCAA+D;AAAtD,gHAAA,oBAAoB,OAAA;AAAE,uGAAA,WAAW,OAAA;AAE1C,aAAa;AACb,2CAOsB;AANpB,iHAAA,mBAAmB,OAAA;AACnB,gHAAA,mBAAmB,OAAsB;AACzC,4GAAA,cAAc,OAAA;AACd,wGAAA,UAAU,OAAA;AACV,8GAAA,gBAAgB,OAAA;AAChB,0GAAA,YAAY,OAAA;AASd,WAAW;AACX,uCAIoB;AAHlB,6GAAA,iBAAiB,OAAA;AACjB,2GAAA,iBAAiB,OAAmB;AACpC,oHAAA,wBAAwB,OAAA;AAG1B,mBAAmB;AACnB,uDAAwE;AAA/D,oHAAA,gBAAgB,OAAA;AAAE,oHAAA,gBAAgB,OAAA"}
|
package/dist/mappings.d.ts
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import type { PhaseMapping } from '@a5c-ai/hooks-mux-core';
|
|
2
|
-
/**
|
|
3
|
-
* Codex native event to canonical phase mapping table.
|
|
4
|
-
*
|
|
5
|
-
* Codex CLI hooks use a similar event naming scheme to Claude Code,
|
|
6
|
-
* but with an experimental/limited surface. Tool-level hooks only
|
|
7
|
-
* cover Bash execution and are incomplete (spec section 17.2).
|
|
8
|
-
*
|
|
9
|
-
* Events documented in Codex hooks.json: SessionStart, UserPromptSubmit,
|
|
10
|
-
* Stop, PreToolUse, PostToolUse (Bash commands only).
|
|
11
|
-
*/
|
|
12
2
|
export declare const CODEX_PHASE_MAPPINGS: PhaseMapping[];
|
|
13
3
|
/**
|
|
14
4
|
* Quick lookup from native event name to phase mapping.
|
package/dist/mappings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappings.d.ts","sourceRoot":"","sources":["../src/mappings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"mappings.d.ts","sourceRoot":"","sources":["../src/mappings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAiE3D,eAAO,MAAM,oBAAoB,EAAE,YAAY,EAAuB,CAAC;AAEvE;;GAEG;AACH,wBAAgB,WAAW,CAAC,eAAe,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAE7E"}
|
package/dist/mappings.js
CHANGED
|
@@ -2,54 +2,24 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CODEX_PHASE_MAPPINGS = void 0;
|
|
4
4
|
exports.findMapping = findMapping;
|
|
5
|
+
const agent_catalog_1 = require("@a5c-ai/agent-catalog");
|
|
5
6
|
/**
|
|
6
7
|
* Codex native event to canonical phase mapping table.
|
|
7
8
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* Phase mappings are built from the Atlas graph HookMapping records
|
|
10
|
+
* via the agent-catalog. Falls back to hardcoded defaults if the
|
|
11
|
+
* catalog is unavailable.
|
|
11
12
|
*
|
|
12
|
-
*
|
|
13
|
-
* Stop, PreToolUse, PostToolUse (Bash commands only).
|
|
13
|
+
* Spec section 17.2.
|
|
14
14
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
scope: 'session',
|
|
24
|
-
notes: 'Bootstrap event; output is largely ignored by Codex runtime',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
canonicalPhase: 'session.end',
|
|
28
|
-
nativeHook: 'SessionEnd',
|
|
29
|
-
supportLevel: 'lossy',
|
|
30
|
-
blockCapability: false,
|
|
31
|
-
mutationCapability: false,
|
|
32
|
-
scope: 'session',
|
|
33
|
-
notes: 'Codex may not reliably fire SessionEnd in all exit paths',
|
|
34
|
-
},
|
|
35
|
-
// --- Turn lifecycle ---
|
|
36
|
-
{
|
|
37
|
-
canonicalPhase: 'turn.user_prompt_submitted',
|
|
38
|
-
nativeHook: 'UserPromptSubmit',
|
|
39
|
-
supportLevel: 'native',
|
|
40
|
-
blockCapability: true,
|
|
41
|
-
mutationCapability: false,
|
|
42
|
-
scope: 'turn',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
canonicalPhase: 'turn.stop',
|
|
46
|
-
nativeHook: 'Stop',
|
|
47
|
-
supportLevel: 'native',
|
|
48
|
-
blockCapability: true,
|
|
49
|
-
mutationCapability: false,
|
|
50
|
-
scope: 'turn',
|
|
51
|
-
},
|
|
52
|
-
// --- Tool lifecycle (Bash-only, incomplete) ---
|
|
15
|
+
const SUPPORT_LEVEL_MAP = {
|
|
16
|
+
supported: 'native',
|
|
17
|
+
native: 'native',
|
|
18
|
+
lossy: 'lossy',
|
|
19
|
+
emulated: 'emulated',
|
|
20
|
+
unsupported: 'unsupported',
|
|
21
|
+
};
|
|
22
|
+
const CODEX_COMPATIBILITY_MAPPINGS = [
|
|
53
23
|
{
|
|
54
24
|
canonicalPhase: 'tool.before',
|
|
55
25
|
nativeHook: 'PreToolUse',
|
|
@@ -57,18 +27,41 @@ exports.CODEX_PHASE_MAPPINGS = [
|
|
|
57
27
|
blockCapability: true,
|
|
58
28
|
mutationCapability: false,
|
|
59
29
|
scope: 'tool',
|
|
60
|
-
notes: 'Bash-only
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
canonicalPhase: 'tool.after',
|
|
64
|
-
nativeHook: 'PostToolUse',
|
|
65
|
-
supportLevel: 'lossy',
|
|
66
|
-
blockCapability: false,
|
|
67
|
-
mutationCapability: false,
|
|
68
|
-
scope: 'tool',
|
|
69
|
-
notes: 'Bash-only; non-Bash tool calls are not intercepted',
|
|
30
|
+
notes: 'Bash-only compatibility alias for legacy Codex hook payloads.',
|
|
70
31
|
},
|
|
71
32
|
];
|
|
33
|
+
function hookMappingToPhaseMapping(mapping) {
|
|
34
|
+
if (!mapping.canonicalPhase)
|
|
35
|
+
return null;
|
|
36
|
+
return {
|
|
37
|
+
canonicalPhase: mapping.canonicalPhase,
|
|
38
|
+
nativeHook: mapping.nativeName,
|
|
39
|
+
supportLevel: SUPPORT_LEVEL_MAP[mapping.supportLevel] ?? (mapping.requiresRuntimeHooks ? 'native' : 'lossy'),
|
|
40
|
+
blockCapability: mapping.blockCapability ?? false,
|
|
41
|
+
mutationCapability: mapping.mutationCapability ?? false,
|
|
42
|
+
scope: (mapping.scope ?? 'session'),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function buildFromCatalog() {
|
|
46
|
+
const mappings = (0, agent_catalog_1.listHookMappingsByAdapterFamily)('codex');
|
|
47
|
+
if (mappings.length === 0) {
|
|
48
|
+
throw new Error('hooks-mux adapter-codex: catalog unavailable or returned no mappings for family "codex"');
|
|
49
|
+
}
|
|
50
|
+
const phaseMappings = [
|
|
51
|
+
...CODEX_COMPATIBILITY_MAPPINGS,
|
|
52
|
+
...mappings
|
|
53
|
+
.map(hookMappingToPhaseMapping)
|
|
54
|
+
.filter((m) => m !== null),
|
|
55
|
+
];
|
|
56
|
+
const seen = new Set();
|
|
57
|
+
return phaseMappings.filter((m) => {
|
|
58
|
+
if (seen.has(m.nativeHook))
|
|
59
|
+
return false;
|
|
60
|
+
seen.add(m.nativeHook);
|
|
61
|
+
return true;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
exports.CODEX_PHASE_MAPPINGS = buildFromCatalog();
|
|
72
65
|
/**
|
|
73
66
|
* Quick lookup from native event name to phase mapping.
|
|
74
67
|
*/
|
package/dist/mappings.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappings.js","sourceRoot":"","sources":["../src/mappings.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"mappings.js","sourceRoot":"","sources":["../src/mappings.ts"],"names":[],"mappings":";;;AAsEA,kCAEC;AAvED,yDAAwE;AAGxE;;;;;;;;GAQG;AAEH,MAAM,iBAAiB,GAAiD;IACtE,SAAS,EAAE,QAAQ;IACnB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEF,MAAM,4BAA4B,GAAmB;IACnD;QACE,cAAc,EAAE,aAAa;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C;YAAE,OAAO,KAAK,CAAC;QACzC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC;AAEY,QAAA,oBAAoB,GAAmB,gBAAgB,EAAE,CAAC;AAEvE;;GAEG;AACH,SAAgB,WAAW,CAAC,eAAuB;IACjD,OAAO,4BAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,eAAe,CAAC,CAAC;AAC5E,CAAC"}
|
package/dist/normalizer.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type UnifiedHookEvent } from '@a5c-ai/hooks-mux-core';
|
|
2
|
-
/** The adapter identifier used in all normalized events. */
|
|
2
|
+
/** The default adapter identifier used in all normalized events. */
|
|
3
3
|
export declare const ADAPTER_NAME = "codex";
|
|
4
|
+
/** Override the adapter name used in normalized events. */
|
|
5
|
+
export declare function setAdapterName(name: string): void;
|
|
4
6
|
/**
|
|
5
7
|
* Shape of a Codex SessionStart stdin payload.
|
|
6
8
|
* Fields may be absent or null -- fail open per spec 17.2.
|
package/dist/normalizer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizer.d.ts","sourceRoot":"","sources":["../src/normalizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,gBAAgB,EAAyB,MAAM,wBAAwB,CAAC;AAGtG,
|
|
1
|
+
{"version":3,"file":"normalizer.d.ts","sourceRoot":"","sources":["../src/normalizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,gBAAgB,EAAyB,MAAM,wBAAwB,CAAC;AAGtG,oEAAoE;AACpE,eAAO,MAAM,YAAY,UAAU,CAAC;AAKpC,2DAA2D;AAC3D,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAEjD;AAED;;;GAGG;AACH,MAAM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AC,MAAM,EAAE,MAAM,CAAM,GAC/B,gBAAgB,CA0ClB"}
|
package/dist/normalizer.js
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ADAPTER_NAME = void 0;
|
|
4
|
+
exports.setAdapterName = setAdapterName;
|
|
4
5
|
exports.parseStdin = parseStdin;
|
|
5
6
|
exports.extractSessionId = extractSessionId;
|
|
6
7
|
exports.normalizeCodexEvent = normalizeCodexEvent;
|
|
7
8
|
const hooks_mux_core_1 = require("@a5c-ai/hooks-mux-core");
|
|
8
9
|
const mappings_1 = require("./mappings");
|
|
9
|
-
/** The adapter identifier used in all normalized events. */
|
|
10
|
+
/** The default adapter identifier used in all normalized events. */
|
|
10
11
|
exports.ADAPTER_NAME = 'codex';
|
|
12
|
+
/** The mutable adapter name, defaulting to the Codex adapter identity. */
|
|
13
|
+
let _adapterName = exports.ADAPTER_NAME;
|
|
14
|
+
/** Override the adapter name used in normalized events. */
|
|
15
|
+
function setAdapterName(name) {
|
|
16
|
+
_adapterName = name;
|
|
17
|
+
}
|
|
11
18
|
/**
|
|
12
19
|
* Parse raw stdin input into a typed object.
|
|
13
20
|
* Codex hooks receive JSON on stdin. If parsing fails, return empty object
|
|
@@ -90,7 +97,7 @@ function normalizeCodexEvent(rawEventName, stdinPayload, env = {}) {
|
|
|
90
97
|
}
|
|
91
98
|
}
|
|
92
99
|
const options = {
|
|
93
|
-
adapter:
|
|
100
|
+
adapter: _adapterName,
|
|
94
101
|
rawEventName,
|
|
95
102
|
stdinPayload: parsed,
|
|
96
103
|
env: enrichedEnv,
|
package/dist/normalizer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizer.js","sourceRoot":"","sources":["../src/normalizer.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"normalizer.js","sourceRoot":"","sources":["../src/normalizer.ts"],"names":[],"mappings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AAoB,CAAC,EAAE,CAAC;QAC/E,WAAW,CAAC,oBAAoB,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IACvD,CAAC;IAED,+BAA+B;IAC/B,IAAI,YAAY,KAAK,YAAY,IAAI,YAAY,KAAK,aAAa,EAAE,CAAC;QACpE,MAAM,UAAU,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAC7C,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;YAChD,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;gBACpB,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YACrB,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,OAAO,GAAqB;QAChC,OAAO,EAAE,YAAY;QACrB,YAAY;QACZ,YAAY,EAAE,MAAM;QACpB,GAAG,EAAE,WAAW;QAChB,eAAe,EAAE,+BAAoB;KACtC,CAAC;IAEF,OAAO,IAAA,+BAAc,EAAC,OAAO,CAAC,CAAC;AACjC,CAAC"}
|
package/dist/renderer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../src/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../src/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAuDpE;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,qBAAqB,EACnC,eAAe,EAAE,MAAM,GACtB;IAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,aAAa,EAAE,MAAM,EAAE,CAAA;CAAE,CA0B9D;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAGxF"}
|
package/dist/renderer.js
CHANGED
|
@@ -34,9 +34,14 @@ const TOOL_AFTER_FIELDS = new Set([
|
|
|
34
34
|
const SESSION_START_FIELDS = new Set([
|
|
35
35
|
'reason',
|
|
36
36
|
]);
|
|
37
|
+
/** Output fields supported on SessionEnd (mostly ignored). */
|
|
38
|
+
const SESSION_END_FIELDS = new Set([
|
|
39
|
+
'reason',
|
|
40
|
+
]);
|
|
37
41
|
/** Map native event names to their supported output field sets. */
|
|
38
42
|
const SUPPORTED_FIELDS_BY_EVENT = {
|
|
39
43
|
SessionStart: SESSION_START_FIELDS,
|
|
44
|
+
SessionEnd: SESSION_END_FIELDS,
|
|
40
45
|
UserPromptSubmit: USER_PROMPT_SUBMIT_FIELDS,
|
|
41
46
|
Stop: STOP_FIELDS,
|
|
42
47
|
PreToolUse: TOOL_BEFORE_FIELDS,
|
package/dist/renderer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.js","sourceRoot":"","sources":["../src/renderer.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"renderer.js","sourceRoot":"","sources":["../src/renderer.ts"],"names":[],"mappings":";;AAiEA,8CA6BC;AAKD,4DAGC;AApGD;;;;;GAKG;AAEH,mDAAmD;AACnD,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAAC;IACxC,UAAU;IACV,QAAQ;IACR,eAAe;CAChB,CAAC,CAAC;AAEH,uCAAuC;AACvC,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC;IAC1B,iBAAiB;IACjB,YAAY;IACZ,QAAQ;CACT,CAAC,CAAC;AAEH,6CAA6C;AAC7C,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC;IACjC,UAAU;IACV,QAAQ;CACT,CAAC,CAAC;AAEH,8CAA8C;AAC9C,MAAM,iBAAiB,G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AE,YAAY,EAAE,KAAK,EAAE,YAAY,CAAC,UAAU,EAAE,OAAO,EAAE,CAAC,YAAY,CAAC,UAAU,EAAE;QACxF,EAAE,GAAG,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,CAAC,cAAc,EAAE,OAAO,EAAE,CAAC,YAAY,CAAC,cAAc,EAAE;KACrG,CAAC;IAEF,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,IAAI,SAAS,CAAC,OAAO;YAAE,SAAS;QAEhC,IAAI,eAAe,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;YACvC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC;QAC1C,CAAC;aAAM,CAAC;YACN,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,SAAgB,wBAAwB,CAAC,KAAa,EAAE,eAAuB;IAC7E,MAAM,SAAS,GAAG,yBAAyB,CAAC,eAAe,CAAC,CAAC;IAC7D,OAAO,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AAClD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a5c-ai/hooks-mux-adapter-codex",
|
|
3
|
-
"version": "5.0.1-staging.
|
|
3
|
+
"version": "5.0.1-staging.ffad3b46492e",
|
|
4
4
|
"description": "Codex harness adapter for the hooks-mux system",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -11,11 +11,16 @@
|
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "https://github.com/a5c-ai/babysitter.git",
|
|
14
|
+
"url": "git+https://github.com/a5c-ai/babysitter.git",
|
|
15
15
|
"directory": "packages/hooks-mux/adapter-codex"
|
|
16
16
|
},
|
|
17
|
+
"homepage": "https://github.com/a5c-ai/babysitter/tree/main/packages/hooks-mux/adapter-codex#readme",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/a5c-ai/babysitter/issues"
|
|
20
|
+
},
|
|
17
21
|
"files": [
|
|
18
|
-
"dist"
|
|
22
|
+
"dist",
|
|
23
|
+
"README.md"
|
|
19
24
|
],
|
|
20
25
|
"scripts": {
|
|
21
26
|
"build": "tsc -p tsconfig.json",
|
|
@@ -25,7 +30,7 @@
|
|
|
25
30
|
"test:watch": "vitest"
|
|
26
31
|
},
|
|
27
32
|
"dependencies": {
|
|
28
|
-
"@a5c-ai/hooks-mux-core": "5.0.1-staging.
|
|
33
|
+
"@a5c-ai/hooks-mux-core": "5.0.1-staging.ffad3b46492e"
|
|
29
34
|
},
|
|
30
35
|
"devDependencies": {
|
|
31
36
|
"typescript": "^5.7.0",
|