@excitedjs/agent-runtime-codex 0.5.0-beta.179 → 0.5.0-beta.182

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 (79) hide show
  1. package/dist/activity/budget.d.ts +8 -0
  2. package/dist/activity/budget.d.ts.map +1 -0
  3. package/dist/activity/budget.js +9 -0
  4. package/dist/activity/budget.js.map +1 -0
  5. package/dist/{transcript → activity}/cursor.d.ts +2 -2
  6. package/dist/activity/cursor.d.ts.map +1 -0
  7. package/dist/{transcript → activity}/cursor.js +10 -10
  8. package/dist/activity/cursor.js.map +1 -0
  9. package/dist/activity/error.d.ts +16 -0
  10. package/dist/activity/error.d.ts.map +1 -0
  11. package/dist/activity/error.js +22 -0
  12. package/dist/activity/error.js.map +1 -0
  13. package/dist/activity/opened-file.d.ts +10 -0
  14. package/dist/activity/opened-file.d.ts.map +1 -0
  15. package/dist/{transcript → activity}/opened-file.js +10 -10
  16. package/dist/activity/opened-file.js.map +1 -0
  17. package/dist/activity/path.d.ts +27 -0
  18. package/dist/activity/path.d.ts.map +1 -0
  19. package/dist/{transcript → activity}/path.js +49 -119
  20. package/dist/activity/path.js.map +1 -0
  21. package/dist/activity/projection.d.ts +34 -0
  22. package/dist/activity/projection.d.ts.map +1 -0
  23. package/dist/activity/projection.js +191 -0
  24. package/dist/activity/projection.js.map +1 -0
  25. package/dist/activity/reader.d.ts +14 -0
  26. package/dist/activity/reader.d.ts.map +1 -0
  27. package/dist/activity/reader.js +314 -0
  28. package/dist/activity/reader.js.map +1 -0
  29. package/dist/diagnostic.d.ts +2 -2
  30. package/dist/diagnostic.d.ts.map +1 -1
  31. package/dist/index.d.ts +1 -2
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +4 -1
  34. package/dist/index.js.map +1 -1
  35. package/dist/mcp-config.d.ts +27 -3
  36. package/dist/mcp-config.d.ts.map +1 -1
  37. package/dist/mcp-config.js +55 -9
  38. package/dist/mcp-config.js.map +1 -1
  39. package/dist/provider.d.ts +28 -42
  40. package/dist/provider.d.ts.map +1 -1
  41. package/dist/provider.js +37 -56
  42. package/dist/provider.js.map +1 -1
  43. package/dist/runtime-deps.d.ts +43 -0
  44. package/dist/runtime-deps.d.ts.map +1 -0
  45. package/dist/runtime-deps.js +2 -0
  46. package/dist/runtime-deps.js.map +1 -0
  47. package/dist/runtime.d.ts +69 -47
  48. package/dist/runtime.d.ts.map +1 -1
  49. package/dist/runtime.js +188 -131
  50. package/dist/runtime.js.map +1 -1
  51. package/dist/turn-manager.d.ts +14 -19
  52. package/dist/turn-manager.d.ts.map +1 -1
  53. package/dist/turn-manager.js +16 -104
  54. package/dist/turn-manager.js.map +1 -1
  55. package/package.json +3 -3
  56. package/dist/transcript/budget.d.ts +0 -8
  57. package/dist/transcript/budget.d.ts.map +0 -1
  58. package/dist/transcript/budget.js +0 -9
  59. package/dist/transcript/budget.js.map +0 -1
  60. package/dist/transcript/cursor.d.ts.map +0 -1
  61. package/dist/transcript/cursor.js.map +0 -1
  62. package/dist/transcript/error.d.ts +0 -9
  63. package/dist/transcript/error.d.ts.map +0 -1
  64. package/dist/transcript/error.js +0 -9
  65. package/dist/transcript/error.js.map +0 -1
  66. package/dist/transcript/opened-file.d.ts +0 -10
  67. package/dist/transcript/opened-file.d.ts.map +0 -1
  68. package/dist/transcript/opened-file.js.map +0 -1
  69. package/dist/transcript/path.d.ts +0 -28
  70. package/dist/transcript/path.d.ts.map +0 -1
  71. package/dist/transcript/path.js.map +0 -1
  72. package/dist/transcript/projection.d.ts +0 -6
  73. package/dist/transcript/projection.d.ts.map +0 -1
  74. package/dist/transcript/projection.js +0 -170
  75. package/dist/transcript/projection.js.map +0 -1
  76. package/dist/transcript/reader.d.ts +0 -7
  77. package/dist/transcript/reader.d.ts.map +0 -1
  78. package/dist/transcript/reader.js +0 -421
  79. package/dist/transcript/reader.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index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AAc,CAAC;AAEtB,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAK/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAE9D,OAAO,EACL,2CAA2C,EAC3C,gCAAgC,EAChC,2BAA2B,EAC3B,8BAA8B,EAC9B,+BAA+B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,EACrC,KAAK,+BAA+B,GACrC,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -6,7 +6,10 @@
6
6
  */
7
7
  export { default, createCodexAgentRuntimeProvider, codexSystemPromptReplace, codexRuntimeArgsForMcpServers, dispatcherCodexConfig, CODEX_AGENT_RUNTIME_CAPABILITIES, } from './provider.js';
8
8
  export { resolveCodexBinPath } from './bin.js';
9
- export { CodexRuntime, } from './runtime.js';
9
+ // The concrete runtime class and the deps it is constructed from are both
10
+ // implementation details: the package's public surface is the provider factory
11
+ // and its options, and Core only ever holds the neutral `start`/`submit`/`stop`
12
+ // handle `createRuntime` returns.
10
13
  export { CodexProcess, } from './supervisor.js';
11
14
  export { CodexWsClient, } from './rpc.js';
12
15
  export { performInitializeHandshake } from './handshake.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,OAAO,EACP,+BAA+B,EAC/B,wBAAwB,EACxB,6BAA6B,EAC7B,qBAAqB,EACrB,gCAAgC,GAGjC,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,OAAO,EACL,YAAY,GAEb,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,YAAY,GAIb,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,aAAa,GAGd,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0B,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,GAEf,MAAM,WAAW,CAAC;AAEnB,OAAO,EAEL,yBAAyB,EACzB,4BAA4B,EAC5B,iBAAiB,EACjB,6BAA6B,EAC7B,6BAA6B,EAC7B,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAE/D,+EAA+E;AAC/E,yEAAyE;AACzE,8EAA8E;AAC9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAE9D,OAAO,EACL,2CAA2C,EAC3C,gCAAgC,EAChC,2BAA2B,EAC3B,8BAA8B,EAC9B,+BAA+B,GAIhC,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,YAAY,CAAC"}
@@ -1,9 +1,33 @@
1
1
  import type { AgentRuntimeMcpServer } from '@excitedjs/dreamux-types';
2
2
  /**
3
- * Render neutral MCP server descriptors into Codex `-c mcp_servers.<name>.*`
4
- * config-override CLI args. Provider-neutral: it knows nothing about which
3
+ * Render neutral MCP server descriptors into a Codex `-c mcp_servers=...`
4
+ * config-override CLI arg.
5
+ *
6
+ * Provider-neutral about *what* it renders: it knows nothing about which
5
7
  * channel or shim produced a descriptor — the Dreamux host decides which MCP
6
- * servers a runtime gets and passes them through the create context.
8
+ * servers a runtime gets and passes them through the create context. What it
9
+ * does own is *how* a descriptor becomes Codex configuration, including the
10
+ * server name. A name is a logical identity chosen by the host; making it
11
+ * expressible in TOML is this adapter's job, not a constraint the host has to
12
+ * honor when it picks one.
13
+ *
14
+ * That is why the whole table is rendered as one override value rather than as
15
+ * one `mcp_servers.<name>.<field>=` override per field. Codex parses the value
16
+ * of `-c key=value` as TOML but not the key: it splits the key on `.` and takes
17
+ * each segment literally, so a quoted segment arrives with its quotes attached
18
+ * and a name containing `.` is silently split across two config levels. Inside
19
+ * the value a real TOML parser is reading, so a quoted key carries any string —
20
+ * dots, spaces, quotes, `=`, `#`, newlines, non-ASCII — back out under exactly
21
+ * the name it went in under.
22
+ *
23
+ * The override still merges into the operator's own `config.toml` rather than
24
+ * replacing it, at every level: servers Dreamux does not name are untouched,
25
+ * and for a name it does, fields it does not set keep their configured values.
26
+ *
27
+ * Values that cannot survive the TOML/argv boundary at all — a lone surrogate,
28
+ * an unescaped control character — fail loud when Codex loads the override.
29
+ * That envelope already applies to `command`, `args`, and `env`; a name is not
30
+ * given a private encoding to escape it.
7
31
  */
8
32
  export declare function codexMcpServerArgs(servers: readonly AgentRuntimeMcpServer[]): string[];
9
33
  //# sourceMappingURL=mcp-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-config.d.ts","sourceRoot":"","sources":["../src/mcp-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEtE;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,SAAS,qBAAqB,EAAE,GACxC,MAAM,EAAE,CAOV"}
1
+ {"version":3,"file":"mcp-config.d.ts","sourceRoot":"","sources":["../src/mcp-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,SAAS,qBAAqB,EAAE,GACxC,MAAM,EAAE,CAMV"}
@@ -1,20 +1,66 @@
1
1
  /**
2
- * Render neutral MCP server descriptors into Codex `-c mcp_servers.<name>.*`
3
- * config-override CLI args. Provider-neutral: it knows nothing about which
2
+ * Render neutral MCP server descriptors into a Codex `-c mcp_servers=...`
3
+ * config-override CLI arg.
4
+ *
5
+ * Provider-neutral about *what* it renders: it knows nothing about which
4
6
  * channel or shim produced a descriptor — the Dreamux host decides which MCP
5
- * servers a runtime gets and passes them through the create context.
7
+ * servers a runtime gets and passes them through the create context. What it
8
+ * does own is *how* a descriptor becomes Codex configuration, including the
9
+ * server name. A name is a logical identity chosen by the host; making it
10
+ * expressible in TOML is this adapter's job, not a constraint the host has to
11
+ * honor when it picks one.
12
+ *
13
+ * That is why the whole table is rendered as one override value rather than as
14
+ * one `mcp_servers.<name>.<field>=` override per field. Codex parses the value
15
+ * of `-c key=value` as TOML but not the key: it splits the key on `.` and takes
16
+ * each segment literally, so a quoted segment arrives with its quotes attached
17
+ * and a name containing `.` is silently split across two config levels. Inside
18
+ * the value a real TOML parser is reading, so a quoted key carries any string —
19
+ * dots, spaces, quotes, `=`, `#`, newlines, non-ASCII — back out under exactly
20
+ * the name it went in under.
21
+ *
22
+ * The override still merges into the operator's own `config.toml` rather than
23
+ * replacing it, at every level: servers Dreamux does not name are untouched,
24
+ * and for a name it does, fields it does not set keep their configured values.
25
+ *
26
+ * Values that cannot survive the TOML/argv boundary at all — a lone surrogate,
27
+ * an unescaped control character — fail loud when Codex loads the override.
28
+ * That envelope already applies to `command`, `args`, and `env`; a name is not
29
+ * given a private encoding to escape it.
6
30
  */
7
31
  export function codexMcpServerArgs(servers) {
8
- return servers.flatMap((server) => [
9
- '-c',
10
- `mcp_servers.${server.name}.command=${tomlString(server.command)}`,
11
- '-c',
12
- `mcp_servers.${server.name}.args=${tomlStringArray(server.args)}`,
13
- ]);
32
+ if (servers.length === 0)
33
+ return [];
34
+ const entries = servers.map((server) => `${tomlString(server.name)} = ${tomlServerTable(server)}`);
35
+ return ['-c', `mcp_servers={${entries.join(', ')}}`];
36
+ }
37
+ function tomlServerTable(server) {
38
+ const fields = [
39
+ `command = ${tomlString(server.command)}`,
40
+ `args = ${tomlStringArray(server.args)}`,
41
+ // Carried, never dropped: a descriptor's `env` holds what its server needs
42
+ // to start, so losing it breaks the server it was minted for. Note that
43
+ // this rendering puts those values into Codex's own command line, so `env`
44
+ // is not a secrecy boundary here — the host is told as much and does not
45
+ // rely on one.
46
+ ...(server.env !== undefined ? [`env = ${tomlTable(server.env)}`] : []),
47
+ ];
48
+ return `{${fields.join(', ')}}`;
49
+ }
50
+ function tomlTable(entries) {
51
+ const pairs = Object.entries(entries).map(([key, value]) => `${tomlString(key)} = ${tomlString(value)}`);
52
+ return `{${pairs.join(', ')}}`;
14
53
  }
15
54
  function tomlStringArray(values) {
16
55
  return `[${values.map(tomlString).join(', ')}]`;
17
56
  }
57
+ /**
58
+ * One TOML basic string, used for both keys and values.
59
+ *
60
+ * `JSON.stringify` is the whole implementation because TOML's basic-string
61
+ * escapes are a superset of JSON's: the same double quotes, the same `\"`,
62
+ * `\\`, `\b`, `\f`, `\n`, `\r`, `\t`, and the same `\uXXXX`.
63
+ */
18
64
  function tomlString(value) {
19
65
  return JSON.stringify(value);
20
66
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-config.js","sourceRoot":"","sources":["../src/mcp-config.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAChC,OAAyC;IAEzC,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;QACjC,IAAI;QACJ,eAAe,MAAM,CAAC,IAAI,YAAY,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;QAClE,IAAI;QACJ,eAAe,MAAM,CAAC,IAAI,SAAS,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;KAClE,CAAC,CAAC;AACL,CAAC;AAED,SAAS,eAAe,CAAC,MAAgB;IACvC,OAAO,IAAI,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;A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AE,EAAE,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,MAAM,UAAU,CAAC,KAAK,CAAC,EAAE,CAC9D,CAAC;IACF,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;AACjC,CAAC;AAED,SAAS,eAAe,CAAC,MAAyB;IAChD,OAAO,IAAI,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;AAClD,CAAC;AAED;;;;;;GAMG;AACH,SAAS,UAAU,CAAC,KAAa;IAC/B,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAC/B,CAAC"}
@@ -1,26 +1,19 @@
1
1
  import { CodexWsClient } from './rpc.js';
2
2
  import { CodexProcess, type CodexProcessOptions } from './supervisor.js';
3
- import { type CodexRuntimeDeps } from './runtime.js';
4
3
  import { dispatcherCodexConfig, type DispatcherCodexConfig } from './config.js';
5
- import type { AgentRuntimeCapabilities, AgentRuntimeMcpServer, AgentRuntimeProvider, AgentRuntimeProviderDescriptor, AgentRuntimeSystemPrompt, AgentRuntimeProviderFactory, ProviderDescriptor, ProviderFactoryContext } from '@excitedjs/dreamux-types';
4
+ import type { AgentRuntimeMcpServer, AgentRuntimeProvider, AgentRuntimeProviderCapabilities, AgentRuntimeProviderFactory, AgentRuntimeSessionRef, AgentRuntimeSystemPrompt } from '@excitedjs/dreamux-types';
6
5
  /**
7
6
  * Construction options for the built-in Codex provider. The runtime's host
8
- * contracts now arrive on the NEUTRAL create context, not as factory hooks:
7
+ * contracts arrive on the NEUTRAL create context, not as factory hooks:
9
8
  * volatile socket placement comes from `context.paths.runtimeSocketDirs()` (this
10
9
  * package owns the allocation policy), and env injection comes from
11
10
  * `context.injectEnv`. Role-gated bundled skills arrive as neutral
12
- * `skillSources`. What remains here is the `descriptor` and the test/host seams
13
- * (process/WS factories, the optional Codex home pre-start check, restart
14
- * backoff) that let core and tests wire behavior without changing the provider.
11
+ * `skillSources`. Registration identity is Core's: the provider carries no
12
+ * descriptor. What remains here are the test/host seams (process/WS factories,
13
+ * the optional Codex home pre-start check, restart backoff) that let core and
14
+ * tests wire behavior without changing the provider.
15
15
  */
16
16
  export interface CodexAgentRuntimeProviderOptions {
17
- /**
18
- * The registry descriptor for `builtin:codex`. Defaults to a minimal one.
19
- * Accepted wide (`ProviderDescriptor`) so a host that resolved it from its
20
- * registry need not pre-narrow the kind; the factory validates it is an
21
- * `agentRuntime` descriptor.
22
- */
23
- descriptor?: ProviderDescriptor;
24
17
  /** Optional Codex home/auth pre-start check, invoked with the runtime id and cwd. */
25
18
  codexHomeDoctor?: (info: {
26
19
  runtimeId: string;
@@ -30,48 +23,41 @@ export interface CodexAgentRuntimeProviderOptions {
30
23
  codexClientFactory?: (socketPath: string) => CodexWsClient;
31
24
  restartBackoffBaseMs?: number;
32
25
  restartBackoffMaxMs?: number;
33
- /** Override native transcript path validation for deterministic tests. */
34
- validateTranscriptPath?: CodexRuntimeDeps['validateTranscriptPath'];
35
26
  }
36
- export declare const CODEX_AGENT_RUNTIME_CAPABILITIES: AgentRuntimeCapabilities;
27
+ /**
28
+ * Provider-static selection metadata. Recovery, session-bound structured
29
+ * output, and recent Activity reads are mandatory provider behavior, so none of
30
+ * them is advertised here.
31
+ */
32
+ export declare const CODEX_AGENT_RUNTIME_CAPABILITIES: AgentRuntimeProviderCapabilities;
37
33
  export declare function codexSystemPromptReplace(systemPrompt: AgentRuntimeSystemPrompt | undefined): string | undefined;
38
34
  export declare function codexSystemPromptAppend(systemPrompt: AgentRuntimeSystemPrompt | undefined): readonly string[] | undefined;
39
35
  /**
40
36
  * Create the built-in Codex `AgentRuntimeProvider`. It implements the neutral
41
- * `@excitedjs/dreamux-types` contract: `readConfig` parses Codex runtime config,
42
- * `getCapabilities` reports Codex's resume support, and
43
- * `createRuntime` builds a {@link CodexRuntime} from the neutral create context
44
- * plus the host-supplied hooks.
37
+ * `@excitedjs/dreamux-types` contract: `config.read` parses Codex runtime
38
+ * config, `readRecentActivity` serves neutral Activity Records for any session,
39
+ * and `createRuntime` builds a {@link CodexRuntime} from the neutral create
40
+ * context plus the host-supplied hooks.
41
+ *
42
+ * Codex resumes from its thread id alone, so its session identity is the base
43
+ * {@link AgentRuntimeSessionRef}.
45
44
  */
46
- export declare function createCodexAgentRuntimeProvider(options?: CodexAgentRuntimeProviderOptions): AgentRuntimeProvider<DispatcherCodexConfig>;
45
+ export declare function createCodexAgentRuntimeProvider(options?: CodexAgentRuntimeProviderOptions): AgentRuntimeProvider<DispatcherCodexConfig, AgentRuntimeSessionRef>;
47
46
  /** Re-export the typed accessor for a runtime's resolved codex config. */
48
47
  export { dispatcherCodexConfig };
49
48
  export declare function codexRuntimeArgsForMcpServers(servers: readonly AgentRuntimeMcpServer[]): string[];
50
- /**
51
- * The context Dreamux core's generic provider package-loader passes to this
52
- * package's factory export. A back-compat alias of the public
53
- * {@link ProviderFactoryContext}, narrowed to the Agent Runtime descriptor kind
54
- * so the factory assigns `descriptor` without a cast.
55
- */
56
- export type CodexProviderFactoryContext = ProviderFactoryContext<AgentRuntimeProviderDescriptor>;
57
49
  /**
58
50
  * Default export — the factory Dreamux core's generic provider-loader selects
59
51
  * for the `builtin:codex` ref (it imports this package and calls the default
60
- * export with `{ ref, descriptor }`). It returns a provider that runs on package
61
- * defaults: a standalone volatile-socket allocator and no host-injected bundled
62
- * skills.
52
+ * export with `{ ref }`). It returns a provider on package defaults: a
53
+ * standalone volatile-socket allocator and no host-injected bundled skills.
63
54
  *
64
- * The Dreamux host does NOT use this bare path in production: its launcher still
65
- * drives the host-shaped create context, so it constructs the provider through
66
- * its own core-owned adapter (`@excitedjs/dreamux` `builtin/codex/provider.ts`)
67
- * to map that context onto the neutral one AND inject its host contracts (the
68
- * shared runtime-socket root and bundled Dreamux skills; MCP shims receive an
69
- * explicit dreamux bin path). This default export keeps the package a
70
- * first-class, loadable `AgentRuntimeProvider` for the generic loader and for
71
- * external embedders;
72
- * converging core's launcher onto the neutral context so it can drive the loaded
73
- * provider directly is later-slice work.
55
+ * This is the production path. Core drives the loaded provider through the
56
+ * neutral facade alone it holds no adapter for this package — and supplies
57
+ * every host contract (socket root, skill sources, MCP servers, state lease)
58
+ * through the neutral create context. The options argument of
59
+ * {@link createCodexAgentRuntimeProvider} exists for embedders and tests.
74
60
  */
75
- declare const codexAgentRuntimeProviderFactory: AgentRuntimeProviderFactory<DispatcherCodexConfig>;
61
+ declare const codexAgentRuntimeProviderFactory: AgentRuntimeProviderFactory<DispatcherCodexConfig, AgentRuntimeSessionRef>;
76
62
  export default codexAgentRuntimeProviderFactory;
77
63
  //# sourceMappingURL=provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EACL,YAAY,EACZ,KAAK,mBAAmB,EACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,cAAc,CAAC;AACtB,OAAO,EAEL,qBAAqB,EAErB,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AAOrB,OAAO,KAAK,EACV,wBAAwB,EAGxB,qBAAqB,EACrB,oBAAoB,EACpB,8BAA8B,EAC9B,wBAAwB,EACxB,2BAA2B,EAC3B,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;AAElC;;;;;;;;;GASG;AACH,MAAM,WAAW,gCAAgC;IAC/C;;;;;OAKG;IACH,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,qFAAqF;IACrF,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE;QACvB,SAAS,EAAE,MAAM,CAAC;QAClB,GAAG,EAAE,MAAM,CAAC;KACb,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,K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ED
@@ -1,21 +1,18 @@
1
1
  import { codexMcpServerArgs } from './mcp-config.js';
2
- import { CodexRuntime, } from './runtime.js';
2
+ import { CodexRuntime } from './runtime.js';
3
3
  import { DEFAULT_CODEX_BIN, dispatcherCodexConfig, readDispatcherCodexConfig, } from './config.js';
4
4
  import { codexArgsFromConfig, codexArgsToCli } from './args.js';
5
- import { BUILTIN_CODEX_PROVIDER_REF } from './provider-ref.js';
6
5
  import { resolveCodexBinPath } from './bin.js';
7
6
  import { codexAgentRuntimeDiagnostic } from './diagnostic.js';
8
7
  import { allocateCodexSocketPath } from './internal/socket.js';
9
- import { readCodexTranscript } from './transcript/reader.js';
10
- export const CODEX_AGENT_RUNTIME_CAPABILITIES = {
11
- resume: { supported: true },
12
- structuredOutput: { supported: true, scope: 'per-turn' },
13
- };
14
- const DEFAULT_CODEX_DESCRIPTOR = {
15
- id: 'codex',
16
- kind: 'agentRuntime',
17
- ref: { source: 'builtin', id: 'codex', raw: BUILTIN_CODEX_PROVIDER_REF },
18
- };
8
+ import { readCodexRecentActivity } from './activity/reader.js';
9
+ import { compileCodexOutputSchema, } from './output-schema-codec.js';
10
+ /**
11
+ * Provider-static selection metadata. Recovery, session-bound structured
12
+ * output, and recent Activity reads are mandatory provider behavior, so none of
13
+ * them is advertised here.
14
+ */
15
+ export const CODEX_AGENT_RUNTIME_CAPABILITIES = { tags: [] };
19
16
  export function codexSystemPromptReplace(systemPrompt) {
20
17
  if (systemPrompt === undefined)
21
18
  return undefined;
@@ -33,27 +30,18 @@ export function codexSystemPromptAppend(systemPrompt) {
33
30
  const append = systemPrompt.append.filter((prompt) => prompt !== '');
34
31
  return append.length > 0 ? append : undefined;
35
32
  }
36
- /** Validate + narrow a seed descriptor to the Agent Runtime kind. */
37
- function asAgentRuntimeDescriptor(descriptor) {
38
- if (descriptor.kind !== 'agentRuntime') {
39
- throw new Error(`@excitedjs/agent-runtime-codex: descriptor.kind must be 'agentRuntime' ` +
40
- `(got ${JSON.stringify(descriptor.kind)})`);
41
- }
42
- return { ...descriptor, kind: descriptor.kind };
43
- }
44
33
  /**
45
34
  * Create the built-in Codex `AgentRuntimeProvider`. It implements the neutral
46
- * `@excitedjs/dreamux-types` contract: `readConfig` parses Codex runtime config,
47
- * `getCapabilities` reports Codex's resume support, and
48
- * `createRuntime` builds a {@link CodexRuntime} from the neutral create context
49
- * plus the host-supplied hooks.
35
+ * `@excitedjs/dreamux-types` contract: `config.read` parses Codex runtime
36
+ * config, `readRecentActivity` serves neutral Activity Records for any session,
37
+ * and `createRuntime` builds a {@link CodexRuntime} from the neutral create
38
+ * context plus the host-supplied hooks.
39
+ *
40
+ * Codex resumes from its thread id alone, so its session identity is the base
41
+ * {@link AgentRuntimeSessionRef}.
50
42
  */
51
43
  export function createCodexAgentRuntimeProvider(options = {}) {
52
44
  return {
53
- ref: BUILTIN_CODEX_PROVIDER_REF,
54
- descriptor: options.descriptor === undefined
55
- ? DEFAULT_CODEX_DESCRIPTOR
56
- : asAgentRuntimeDescriptor(options.descriptor),
57
45
  getCapabilities: () => CODEX_AGENT_RUNTIME_CAPABILITIES,
58
46
  diagnostic: codexAgentRuntimeDiagnostic,
59
47
  onboard: {
@@ -66,17 +54,13 @@ export function createCodexAgentRuntimeProvider(options = {}) {
66
54
  return { bin };
67
55
  },
68
56
  },
69
- readConfig(rawConfig, context) {
70
- return readDispatcherCodexConfig(rawConfig, context.file, context.prefix);
57
+ config: {
58
+ read(rawConfig, context) {
59
+ return readDispatcherCodexConfig(rawConfig, context.file, context.prefix);
60
+ },
71
61
  },
72
- readTranscript: readCodexTranscript,
73
- createRuntime(context) {
74
- if (context.state === undefined) {
75
- throw new Error('codex runtime requires a state sink in the create context');
76
- }
77
- if (context.paths === undefined) {
78
- throw new Error('codex runtime requires a path context in the create context');
79
- }
62
+ readRecentActivity: (query, context) => readCodexRecentActivity(query, context),
63
+ async createRuntime(context) {
80
64
  const codexConfig = context.config;
81
65
  const codexArgs = codexArgsFromConfig(codexConfig);
82
66
  const runtimeArgs = [
@@ -86,10 +70,16 @@ export function createCodexAgentRuntimeProvider(options = {}) {
86
70
  const paths = context.paths;
87
71
  const systemPromptReplace = codexSystemPromptReplace(context.systemPrompt);
88
72
  const systemPromptAppend = codexSystemPromptAppend(context.systemPrompt);
73
+ // Bind the output schema once, here. A compile failure is a create-time
74
+ // error; no later submission can change or renegotiate the schema.
75
+ const codec = context.outputSchema === undefined
76
+ ? null
77
+ : compileCodexOutputSchema(context.outputSchema);
89
78
  const deps = {
90
79
  cwd: context.cwd,
91
80
  state: context.state,
92
- activitySink: context.activitySink,
81
+ activitySink: context.activity ?? (() => undefined),
82
+ codec,
93
83
  paths,
94
84
  // The package owns socket allocation: pick a fresh name in the first of
95
85
  // the host's preference-ordered candidate dirs that fits the budget.
@@ -126,9 +116,6 @@ export function createCodexAgentRuntimeProvider(options = {}) {
126
116
  ...(options.restartBackoffMaxMs !== undefined
127
117
  ? { restartBackoffMaxMs: options.restartBackoffMaxMs }
128
118
  : {}),
129
- ...(options.validateTranscriptPath !== undefined
130
- ? { validateTranscriptPath: options.validateTranscriptPath }
131
- : {}),
132
119
  };
133
120
  return new CodexRuntime(context.identity, deps);
134
121
  },
@@ -142,21 +129,15 @@ export function codexRuntimeArgsForMcpServers(servers) {
142
129
  /**
143
130
  * Default export — the factory Dreamux core's generic provider-loader selects
144
131
  * for the `builtin:codex` ref (it imports this package and calls the default
145
- * export with `{ ref, descriptor }`). It returns a provider that runs on package
146
- * defaults: a standalone volatile-socket allocator and no host-injected bundled
147
- * skills.
132
+ * export with `{ ref }`). It returns a provider on package defaults: a
133
+ * standalone volatile-socket allocator and no host-injected bundled skills.
148
134
  *
149
- * The Dreamux host does NOT use this bare path in production: its launcher still
150
- * drives the host-shaped create context, so it constructs the provider through
151
- * its own core-owned adapter (`@excitedjs/dreamux` `builtin/codex/provider.ts`)
152
- * to map that context onto the neutral one AND inject its host contracts (the
153
- * shared runtime-socket root and bundled Dreamux skills; MCP shims receive an
154
- * explicit dreamux bin path). This default export keeps the package a
155
- * first-class, loadable `AgentRuntimeProvider` for the generic loader and for
156
- * external embedders;
157
- * converging core's launcher onto the neutral context so it can drive the loaded
158
- * provider directly is later-slice work.
135
+ * This is the production path. Core drives the loaded provider through the
136
+ * neutral facade alone it holds no adapter for this package — and supplies
137
+ * every host contract (socket root, skill sources, MCP servers, state lease)
138
+ * through the neutral create context. The options argument of
139
+ * {@link createCodexAgentRuntimeProvider} exists for embedders and tests.
159
140
  */
160
- const codexAgentRuntimeProviderFactory = (context) => createCodexAgentRuntimeProvider({ descriptor: context.descriptor });
141
+ const codexAgentRuntimeProviderFactory = () => createCodexAgentRuntimeProvider();
161
142
  export default codexAgentRuntimeProviderFactory;
162
143
  //# sourceMappingURL=provider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAMrD,OAAO,EACL,YAAY,GAEb,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,yBAAyB,GAE1B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AA6C7D,MAAM,CAAC,MAAM,gCAAgC,GAA6B;IACxE,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;IAC3B,gBAAgB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE;CACzD,CAAC;AAEF,M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1E,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,MAAM,UAAU,6BAA6B,CAC3C,OAAyC;IAEzC,OAAO,kBAAkB,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,gCAAgC,GAGlC,GAAG,EAAE,CAAC,+BAA+B,EAAE,CAAC;AAE5C,eAAe,gCAAgC,CAAC"}
@@ -0,0 +1,43 @@
1
+ import type { AgentRuntimeActivitySink, AgentRuntimePathContext, AgentRuntimeSessionRef, AgentRuntimeSkillSource, AgentRuntimeStateSink, DreamuxLogger } from '@excitedjs/dreamux-types';
2
+ import type { CodexOutputSchemaCodec } from './output-schema-codec.js';
3
+ import type { CodexWsClient } from './rpc.js';
4
+ import type { CodexProcess, CodexProcessOptions } from './supervisor.js';
5
+ /**
6
+ * How this package constructs one resident Codex runtime.
7
+ *
8
+ * Package-internal, and only that: `createRuntime` assembles it from the
9
+ * neutral create context plus the provider's own options, and `CodexRuntime`
10
+ * consumes it. It is not part of the package's public surface and it is not
11
+ * the provider's options type — a host configures this provider through
12
+ * `CodexAgentRuntimeProviderOptions`, which names none of these fields.
13
+ */
14
+ export interface CodexRuntimeDeps {
15
+ cwd: string;
16
+ systemPromptReplace?: string;
17
+ systemPromptAppend?: readonly string[];
18
+ state: AgentRuntimeStateSink<AgentRuntimeSessionRef>;
19
+ paths: AgentRuntimePathContext;
20
+ /**
21
+ * The session-bound output schema codec, compiled once at create time. It is
22
+ * fixed for the life of this runtime; no submission can change it.
23
+ */
24
+ codec: CodexOutputSchemaCodec | null;
25
+ allocateSocketPath: (id: string) => string;
26
+ skillSources?: readonly AgentRuntimeSkillSource[];
27
+ injectEnv?: Record<string, string>;
28
+ codexBinPath?: string;
29
+ codexProcessFactory?: (opts: CodexProcessOptions) => CodexProcess;
30
+ codexClientFactory?: (socketPath: string) => CodexWsClient;
31
+ codexHomeDoctor?: (info: {
32
+ runtimeId: string;
33
+ cwd: string;
34
+ }) => void | Promise<void>;
35
+ resolveExtraArgs?: () => string[];
36
+ handshakeTimeoutMs?: number;
37
+ extraEnv?: Record<string, string>;
38
+ restartBackoffBaseMs?: number;
39
+ restartBackoffMaxMs?: number;
40
+ logger?: DreamuxLogger;
41
+ activitySink: AgentRuntimeActivitySink;
42
+ }
43
+ //# sourceMappingURL=runtime-deps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-deps.d.ts","sourceRoot":"","sources":["../src/runtime-deps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,aAAa,EACd,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEzE;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,KAAK,EAAE,qBAAqB,CAAC,sBAAsB,CAAC,CAAC;IACrD,KAAK,EAAE,uBAAuB,CAAC;IAC/B;;;OAGG;IACH,KAAK,EAAE,sBAAsB,GAAG,IAAI,CAAC;IACrC,kBAAkB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C,YAAY,CAAC,EAAE,SAAS,uBAAuB,EAAE,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,YAAY,CAAC;IAClE,k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