@excitedjs/agent-runtime-codex 0.2.0-alpha.g0ddd418597ca → 0.2.0-alpha.g2b7e2d09fbdc
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/config.d.ts +3 -4
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +4 -5
- package/dist/config.js.map +1 -1
- package/dist/index.d.ts +2 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -8
- package/dist/index.js.map +1 -1
- package/dist/internal/socket.d.ts +9 -18
- package/dist/internal/socket.d.ts.map +1 -1
- package/dist/internal/socket.js +9 -60
- package/dist/internal/socket.js.map +1 -1
- package/dist/provider.d.ts +26 -9
- package/dist/provider.d.ts.map +1 -1
- package/dist/provider.js +20 -12
- package/dist/provider.js.map +1 -1
- package/dist/runtime-support.d.ts +9 -10
- package/dist/runtime-support.d.ts.map +1 -1
- package/dist/runtime-support.js +15 -12
- package/dist/runtime-support.js.map +1 -1
- package/dist/runtime.d.ts +6 -37
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +9 -60
- package/dist/runtime.js.map +1 -1
- package/dist/supervisor.js +1 -1
- package/dist/supervisor.js.map +1 -1
- package/dist/turn-manager.js +1 -1
- package/dist/turn-manager.js.map +1 -1
- package/package.json +2 -3
- package/dist/bin.d.ts +0 -14
- package/dist/bin.d.ts.map +0 -1
- package/dist/bin.js +0 -18
- package/dist/bin.js.map +0 -1
- package/dist/codex-home.d.ts +0 -42
- package/dist/codex-home.d.ts.map +0 -1
- package/dist/codex-home.js +0 -112
- package/dist/codex-home.js.map +0 -1
- package/dist/diagnostic.d.ts +0 -14
- package/dist/diagnostic.d.ts.map +0 -1
- package/dist/diagnostic.js +0 -58
- package/dist/diagnostic.js.map +0 -1
- package/dist/paths.d.ts +0 -7
- package/dist/paths.d.ts.map +0 -1
- package/dist/paths.js +0 -26
- package/dist/paths.js.map +0 -1
package/dist/config.d.ts
CHANGED
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
* the typed accessor.
|
|
4
4
|
*
|
|
5
5
|
* Codex runtime config is owned by this package (the `builtin:codex` provider),
|
|
6
|
-
* not by the Dreamux host config module. It depends only on
|
|
7
|
-
* validation primitives
|
|
8
|
-
*
|
|
9
|
-
* module re-exports these so
|
|
6
|
+
* not by the Dreamux host config module. It depends only on vendored neutral
|
|
7
|
+
* validation primitives and the package-local provider ref, never on
|
|
8
|
+
* `@excitedjs/dreamux` core. The Dreamux host config module re-exports these so
|
|
10
9
|
* the non-builtin callers (doctor, daemon, tests) keep their import paths.
|
|
11
10
|
*/
|
|
12
11
|
/**
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAWH;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,qBAAqB;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,UAAU,CAAC;AAEzC,4FAA4F;AAC5F,eAAO,MAAM,6BAA6B,QAAS,CAAC;AAEpD;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B,SAAU,CAAC;AAErD,2EAA2E;AAC3E,eAAO,MAAM,uBAAuB,UAAU,CAAC;AAE/C,wEAAwE;AACxE,eAAO,MAAM,oBAAoB,oBAAoB,CAAC;AAEtD,eAAO,MAAM,yBAAyB,aAKpC,CAAC;AAEH,eAAO,MAAM,qBAAqB,aAIhC,CAAC;AAEH,wBAAgB,4BAA4B,IAAI,qBAAqB,CAUpE;AAED,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb,qBAAqB,CA0EvB;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,OAAO,CAAA;KAAE,CAAC;CAChD,GAAG,qBAAqB,CAOxB"}
|
package/dist/config.js
CHANGED
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
* the typed accessor.
|
|
4
4
|
*
|
|
5
5
|
* Codex runtime config is owned by this package (the `builtin:codex` provider),
|
|
6
|
-
* not by the Dreamux host config module. It depends only on
|
|
7
|
-
* validation primitives
|
|
8
|
-
*
|
|
9
|
-
* module re-exports these so
|
|
6
|
+
* not by the Dreamux host config module. It depends only on vendored neutral
|
|
7
|
+
* validation primitives and the package-local provider ref, never on
|
|
8
|
+
* `@excitedjs/dreamux` core. The Dreamux host config module re-exports these so
|
|
10
9
|
* the non-builtin callers (doctor, daemon, tests) keep their import paths.
|
|
11
10
|
*/
|
|
12
11
|
import { BUILTIN_CODEX_PROVIDER_REF } from './provider-ref.js';
|
|
13
|
-
import { readOptionalString, rejectUnknownKeys, requirePositiveInt, requireStringArray, requireStringRecord, } from '
|
|
12
|
+
import { readOptionalString, rejectUnknownKeys, requirePositiveInt, requireStringArray, requireStringRecord, } from './internal/config-validate.js';
|
|
14
13
|
/**
|
|
15
14
|
* Default `dispatchers[].runtime.config.bin`. The Codex binary path is
|
|
16
15
|
* dispatcher-local; `CODEX_HOST_CODEX_BIN` is a host-level override above it,
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,+BAA+B,CAAC;AA8BvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC;AAEzC,4FAA4F;AAC5F,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,OAAO,CAAC;AAErD,2EAA2E;AAC3E,MAAM,CAAC,MAAM,uBAAuB,GAAG,OAAO,CAAC;AAE/C,wEAAwE;AACxE,MAAM,CAAC,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;AAEtD,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAAC;IAC/C,OAAO;IACP,MAAM;IACN,cAAc;IACd,YAAY;CACb,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC;IAC3C,WAAW;IACX,iBAAiB;IACjB,oBAAoB;CACrB,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B;IAC1C,OAAO;QACL,GAAG,EAAE,iBAAiB;QACtB,eAAe,EAAE,uBAAuB;QACxC,YAAY,EAAE,oBAAoB;QAClC,UAAU,EAAE,EAAE;QACd,SAAS,EAAE,EAAE;QACb,qBAAqB,EAAE,6BAA6B;QACpD,eAAe,EAAE,6BAA6B;KAC/C,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,QAAiC,EACjC,IAAY,EACZ,MAAc;IAEd,iBAAiB,CACf,QAAQ,E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AC;IACJ,CAAC;IACD,OAAO;QACL,GAAG;QACH,eAAe,EAAE,cAAc;QAC/B,YAAY,EAAE,WAAW;QACzB,UAAU,EAAE,kBAAkB,CAC5B,QAAQ,EACR,YAAY,EACZ,QAAQ,CAAC,UAAU,EACnB,IAAI,EACJ,MAAM,CACP;QACD,SAAS,EAAE,mBAAmB,CAC5B,QAAQ,EACR,WAAW,EACX,QAAQ,CAAC,SAAS,EAClB,IAAI,EACJ,MAAM,CACP;QACD,qBAAqB,EAAE,kBAAkB,CACvC,QAAQ,EACR,uBAAuB,EACvB,QAAQ,CAAC,qBAAqB,EAC9B,IAAI,EACJ,MAAM,CACP;QACD,eAAe,EAAE,kBAAkB,CACjC,QAAQ,EACR,iBAAiB,EACjB,QAAQ,CAAC,eAAe,EACxB,IAAI,EACJ,MAAM,CACP;KACF,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAC,UAGrC;IACC,IAAI,UAAU,CAAC,OAAO,CAAC,QAAQ,KAAK,0BAA0B,EAAE,CAAC;QAC/D,MAAM,IAAI,KAAK,CACb,eAAe,UAAU,CAAC,EAAE,sBAAsB,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CACtH,CAAC;IACJ,CAAC;IACD,OAAO,UAAU,CAAC,OAAO,CAAC,MAA+B,CAAC;AAC5D,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
* `@excitedjs/dreamux-types` `AgentRuntimeProvider` contract; never imports
|
|
5
5
|
* `@excitedjs/dreamux` core.
|
|
6
6
|
*/
|
|
7
|
-
export { default, createCodexAgentRuntimeProvider, codexRuntimeArgsForMcpServers, dispatcherCodexConfig, CODEX_AGENT_RUNTIME_CAPABILITIES, type CodexAgentRuntimeProviderOptions, type CodexProviderFactoryContext, } from './provider.js';
|
|
8
|
-
export { resolveCodexBinPath } from './bin.js';
|
|
7
|
+
export { default, createCodexAgentRuntimeProvider, resolveCodexBinPath, codexRuntimeArgsForMcpServers, dispatcherCodexConfig, CODEX_AGENT_RUNTIME_CAPABILITIES, type CodexAgentRuntimeProviderOptions, type CodexProviderFactoryContext, } from './provider.js';
|
|
9
8
|
export { CodexRuntime, type CodexRuntimeDeps, } from './runtime.js';
|
|
10
|
-
export { CodexProcess, type CodexProcessOptions, type CodexProcessExit,
|
|
9
|
+
export { CodexProcess, type CodexProcessOptions, type CodexProcessExit, } from './supervisor.js';
|
|
11
10
|
export { CodexWsClient, type CodexWsClientOptions, type NotificationHandler, } from './rpc.js';
|
|
12
11
|
export type { ServerNotification, ServerRequest, ThreadStartResponse, TurnStartResponse, } from './types.js';
|
|
13
12
|
export { performInitializeHandshake } from './handshake.js';
|
|
@@ -16,7 +15,4 @@ export { parseCodexArgs, codexArgsFromConfig, codexArgsToCli, type ParsedCodexAr
|
|
|
16
15
|
export { type DispatcherCodexConfig, readDispatcherCodexConfig, defaultDispatcherCodexConfig, DEFAULT_CODEX_BIN, DEFAULT_INITIALIZE_TIMEOUT_MS, DEFAULT_CODEX_TURN_TIMEOUT_MS, DEFAULT_APPROVAL_POLICY, DEFAULT_SANDBOX_MODE, ALLOWED_APPROVAL_POLICIES, ALLOWED_SANDBOX_MODES, } from './config.js';
|
|
17
16
|
export { MIN_CODEX_VERSION, parseCodexVersion, codexVersionSatisfies, } from './version.js';
|
|
18
17
|
export { BUILTIN_CODEX_PROVIDER_REF } from './provider-ref.js';
|
|
19
|
-
export { codexAgentRuntimeDiagnostic } from './diagnostic.js';
|
|
20
|
-
export { DISPATCHER_APP_SERVER_SOCKET_PATH_MAX_BYTES, dispatcherCodexHomeDoctorContext, validateDispatcherCodexHome, assertDispatcherCodexHomeReady, formatDispatcherCodexHomeErrors, type DispatcherCodexHomeDoctor, type DispatcherCodexHomeDoctorContext, type DispatcherCodexHomeDoctorResult, } from './codex-home.js';
|
|
21
|
-
export { operatorCodexHome, dispatcherCodexHome, dispatcherCodexConfigPath, } from './paths.js';
|
|
22
18
|
//# 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":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,OAAO,EACP,+BAA+B,EAC/B,6BAA6B,EAC7B,qBAAqB,EACrB,gCAAgC,EAChC,KAAK,gCAAgC,EACrC,KAAK,2BAA2B,GACjC,MAAM,eAAe,CAAC;AAEvB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,OAAO,EACP,+BAA+B,EAC/B,mBAAmB,EACnB,6BAA6B,EAC7B,qBAAqB,EACrB,gCAAgC,EAChC,KAAK,gCAAgC,EACrC,KAAK,2BAA2B,GACjC,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,YAAY,EACZ,KAAK,gBAAgB,GACtB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,YAAY,EACZ,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,aAAa,EACb,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,UAAU,CAAC;AAElB,YAAY,EACV,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,KAAK,eAAe,GACrB,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,KAAK,qBAAqB,EAC1B,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"}
|
package/dist/index.js
CHANGED
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
* `@excitedjs/dreamux-types` `AgentRuntimeProvider` contract; never imports
|
|
5
5
|
* `@excitedjs/dreamux` core.
|
|
6
6
|
*/
|
|
7
|
-
export { default, createCodexAgentRuntimeProvider, codexRuntimeArgsForMcpServers, dispatcherCodexConfig, CODEX_AGENT_RUNTIME_CAPABILITIES, } from './provider.js';
|
|
8
|
-
export { resolveCodexBinPath } from './bin.js';
|
|
7
|
+
export { default, createCodexAgentRuntimeProvider, resolveCodexBinPath, codexRuntimeArgsForMcpServers, dispatcherCodexConfig, CODEX_AGENT_RUNTIME_CAPABILITIES, } from './provider.js';
|
|
9
8
|
export { CodexRuntime, } from './runtime.js';
|
|
10
9
|
export { CodexProcess, } from './supervisor.js';
|
|
11
10
|
export { CodexWsClient, } from './rpc.js';
|
|
@@ -15,10 +14,4 @@ export { parseCodexArgs, codexArgsFromConfig, codexArgsToCli, } from './args.js'
|
|
|
15
14
|
export { readDispatcherCodexConfig, defaultDispatcherCodexConfig, DEFAULT_CODEX_BIN, DEFAULT_INITIALIZE_TIMEOUT_MS, DEFAULT_CODEX_TURN_TIMEOUT_MS, DEFAULT_APPROVAL_POLICY, DEFAULT_SANDBOX_MODE, ALLOWED_APPROVAL_POLICIES, ALLOWED_SANDBOX_MODES, } from './config.js';
|
|
16
15
|
export { MIN_CODEX_VERSION, parseCodexVersion, codexVersionSatisfies, } from './version.js';
|
|
17
16
|
export { BUILTIN_CODEX_PROVIDER_REF } from './provider-ref.js';
|
|
18
|
-
// The codex doctor surface now lives in this package (issue #209 cleanup): the
|
|
19
|
-
// neutral diagnostic, the Codex home/auth validation, and the Codex home/config
|
|
20
|
-
// path resolvers. Core's doctor + onboard consume these directly.
|
|
21
|
-
export { codexAgentRuntimeDiagnostic } from './diagnostic.js';
|
|
22
|
-
export { DISPATCHER_APP_SERVER_SOCKET_PATH_MAX_BYTES, dispatcherCodexHomeDoctorContext, validateDispatcherCodexHome, assertDispatcherCodexHomeReady, formatDispatcherCodexHomeErrors, } from './codex-home.js';
|
|
23
|
-
export { operatorCodexHome, dispatcherCodexHome, dispatcherCodexConfigPath, } from './paths.js';
|
|
24
17
|
//# sourceMappingURL=index.js.map
|
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,6BAA6B,EAC7B,qBAAqB,EACrB,gCAAgC,GAGjC,MAAM,eAAe,CAAC;AAEvB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,OAAO,EACP,+BAA+B,EAC/B,mBAAmB,EACnB,6BAA6B,EAC7B,qBAAqB,EACrB,gCAAgC,GAGjC,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,YAAY,GAEb,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,YAAY,GAGb,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,aAAa,GAGd,MAAM,UAAU,CAAC;AASlB,OAAO,EAAE,0BAA0B,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"}
|
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Standalone default for the volatile socket path, used when no host
|
|
3
|
-
*
|
|
4
|
-
* use).
|
|
5
|
-
*
|
|
2
|
+
* Standalone default for the volatile rendezvous-socket path, used when no host
|
|
3
|
+
* socket allocator is injected (e.g. the bare generic-loader path or external
|
|
4
|
+
* standalone use).
|
|
5
|
+
*
|
|
6
|
+
* This is the PACKAGE's own fallback root — `$XDG_RUNTIME_DIR` when set, else the
|
|
7
|
+
* OS temp dir — and is deliberately NOT the Dreamux host socket contract. The
|
|
8
|
+
* Dreamux host injects its own allocator (its shared runtime-socket root) through
|
|
9
|
+
* the provider adapter, so this fallback never duplicates or drifts that
|
|
10
|
+
* contract; it only keeps a loader-constructed runtime runnable on its own. The
|
|
6
11
|
* path is random per call and never persisted.
|
|
7
12
|
*/
|
|
8
13
|
export declare function defaultVolatileSocketPath(id: string): string;
|
|
9
|
-
/**
|
|
10
|
-
* Allocate a fresh Codex app-server socket path inside the first host candidate
|
|
11
|
-
* directory whose full path fits the socket budget. Fails loud (naming `id`)
|
|
12
|
-
* when even the last candidate is over budget. With no candidate directories it
|
|
13
|
-
* uses {@link defaultVolatileSocketPath}.
|
|
14
|
-
*/
|
|
15
|
-
export declare function allocateCodexSocketPath(socketDirs: readonly string[], id: string): string;
|
|
16
|
-
/**
|
|
17
|
-
* A representative, NON-throwing socket sample for the doctor: the first
|
|
18
|
-
* candidate whose path fits, else the last candidate (which is then over budget,
|
|
19
|
-
* so the home doctor can REPORT it as an error rather than throwing here). With
|
|
20
|
-
* no candidate directories it uses {@link defaultVolatileSocketPath}.
|
|
21
|
-
*/
|
|
22
|
-
export declare function representativeCodexSocketPath(socketDirs: readonly string[], id: string): string;
|
|
23
14
|
//# sourceMappingURL=socket.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socket.d.ts","sourceRoot":"","sources":["../../src/internal/socket.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"socket.d.ts","sourceRoot":"","sources":["../../src/internal/socket.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAG5D"}
|
package/dist/internal/socket.js
CHANGED
|
@@ -1,73 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { randomUUID } from 'node:crypto';
|
|
2
2
|
import { tmpdir } from 'node:os';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
|
-
import { assertUnixSocketPathBudget, unixSocketPathFitsBudget, } from '@excitedjs/dreamux-utils';
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* Standalone default for the volatile rendezvous-socket path, used when no host
|
|
6
|
+
* socket allocator is injected (e.g. the bare generic-loader path or external
|
|
7
|
+
* standalone use).
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* Dreamux core no longer hands this package a socket-allocator FUNCTION. Instead
|
|
15
|
-
* the neutral create/diagnostic context exposes the host's preference-ordered
|
|
16
|
-
* candidate directories (`AgentRuntimePathContext.runtimeSocketDirs()`), and this
|
|
17
|
-
* package owns the allocation policy: pick the first candidate whose full path
|
|
18
|
-
* fits the Unix `sun_path` budget (via `@excitedjs/dreamux-utils`), else fail
|
|
19
|
-
* loud. When the host supplies no candidate directories (the bare generic-loader
|
|
20
|
-
* / standalone path) the package falls back to its own short root.
|
|
21
|
-
*/
|
|
22
|
-
function socketName() {
|
|
23
|
-
return `${randomBytes(6).toString('base64url')}.sock`;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Standalone default for the volatile socket path, used when no host candidate
|
|
27
|
-
* directories are supplied (the bare generic-loader path or external standalone
|
|
28
|
-
* use). This is the PACKAGE's own fallback root — `$XDG_RUNTIME_DIR` when set,
|
|
29
|
-
* else the OS temp dir — deliberately NOT the Dreamux host socket contract. The
|
|
9
|
+
* This is the PACKAGE's own fallback root — `$XDG_RUNTIME_DIR` when set, else the
|
|
10
|
+
* OS temp dir — and is deliberately NOT the Dreamux host socket contract. The
|
|
11
|
+
* Dreamux host injects its own allocator (its shared runtime-socket root) through
|
|
12
|
+
* the provider adapter, so this fallback never duplicates or drifts that
|
|
13
|
+
* contract; it only keeps a loader-constructed runtime runnable on its own. The
|
|
30
14
|
* path is random per call and never persisted.
|
|
31
15
|
*/
|
|
32
16
|
export function defaultVolatileSocketPath(id) {
|
|
33
17
|
const root = globalThis.process.env['XDG_RUNTIME_DIR'] ?? tmpdir();
|
|
34
18
|
return join(root, `arc-${sanitize(id)}-${randomUUID().slice(0, 8)}.sock`);
|
|
35
19
|
}
|
|
36
|
-
/**
|
|
37
|
-
* Allocate a fresh Codex app-server socket path inside the first host candidate
|
|
38
|
-
* directory whose full path fits the socket budget. Fails loud (naming `id`)
|
|
39
|
-
* when even the last candidate is over budget. With no candidate directories it
|
|
40
|
-
* uses {@link defaultVolatileSocketPath}.
|
|
41
|
-
*/
|
|
42
|
-
export function allocateCodexSocketPath(socketDirs, id) {
|
|
43
|
-
if (socketDirs.length === 0)
|
|
44
|
-
return defaultVolatileSocketPath(id);
|
|
45
|
-
const name = socketName();
|
|
46
|
-
for (const dir of socketDirs) {
|
|
47
|
-
const path = join(dir, name);
|
|
48
|
-
if (unixSocketPathFitsBudget(path))
|
|
49
|
-
return path;
|
|
50
|
-
}
|
|
51
|
-
const fallback = socketDirs[socketDirs.length - 1];
|
|
52
|
-
return assertUnixSocketPathBudget(join(fallback, name), `dispatcher '${id}' Codex socket path`);
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* A representative, NON-throwing socket sample for the doctor: the first
|
|
56
|
-
* candidate whose path fits, else the last candidate (which is then over budget,
|
|
57
|
-
* so the home doctor can REPORT it as an error rather than throwing here). With
|
|
58
|
-
* no candidate directories it uses {@link defaultVolatileSocketPath}.
|
|
59
|
-
*/
|
|
60
|
-
export function representativeCodexSocketPath(socketDirs, id) {
|
|
61
|
-
if (socketDirs.length === 0)
|
|
62
|
-
return defaultVolatileSocketPath(id);
|
|
63
|
-
const name = socketName();
|
|
64
|
-
for (const dir of socketDirs) {
|
|
65
|
-
const path = join(dir, name);
|
|
66
|
-
if (unixSocketPathFitsBudget(path))
|
|
67
|
-
return path;
|
|
68
|
-
}
|
|
69
|
-
return join(socketDirs[socketDirs.length - 1], name);
|
|
70
|
-
}
|
|
71
20
|
function sanitize(id) {
|
|
72
21
|
return id.replace(/[^A-Za-z0-9._-]/g, '_');
|
|
73
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socket.js","sourceRoot":"","sources":["../../src/internal/socket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"socket.js","sourceRoot":"","sources":["../../src/internal/socket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,yBAAyB,CAAC,EAAU;IAClD,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,MAAM,EAAE,CAAC;IACnE,OAAO,IAAI,CAAC,IAAI,EAAE,OAAO,QAAQ,CAAC,EAAE,CAAC,IAAI,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;AAC5E,CAAC;AAED,SAAS,QAAQ,CAAC,EAAU;IAC1B,OAAO,EAAE,CAAC,OAAO,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC;AAC7C,CAAC"}
|
package/dist/provider.d.ts
CHANGED
|
@@ -3,14 +3,13 @@ import { CodexProcess, type CodexProcessOptions } from './supervisor.js';
|
|
|
3
3
|
import { dispatcherCodexConfig, type DispatcherCodexConfig } from './config.js';
|
|
4
4
|
import type { AgentRuntimeCapabilities, AgentRuntimeMcpServer, AgentRuntimeProvider, AgentRuntimeProviderDescriptor, AgentRuntimeProviderFactory, ProviderDescriptor, ProviderFactoryContext } from '@excitedjs/dreamux-types';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* backoff) that let core and tests wire behavior without changing the provider.
|
|
6
|
+
* Host-supplied hooks for the built-in Codex provider. Everything that is a
|
|
7
|
+
* Dreamux host contract — the volatile socket root, the package-bin `PATH`, the
|
|
8
|
+
* Codex home/auth pre-start check — is injected here by Dreamux core (or by an
|
|
9
|
+
* external embedder), so this package reconstructs none of it. Role-gated
|
|
10
|
+
* bundled skills arrive on the create context as neutral `skillSources` (not a
|
|
11
|
+
* host hook). The `descriptor` and the test factories let core and tests wire
|
|
12
|
+
* process/WS/home seams without changing the provider.
|
|
14
13
|
*/
|
|
15
14
|
export interface CodexAgentRuntimeProviderOptions {
|
|
16
15
|
/**
|
|
@@ -20,7 +19,16 @@ export interface CodexAgentRuntimeProviderOptions {
|
|
|
20
19
|
* `agentRuntime` descriptor.
|
|
21
20
|
*/
|
|
22
21
|
descriptor?: ProviderDescriptor;
|
|
23
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* Allocate a fresh volatile rendezvous socket path per app-server start. The
|
|
24
|
+
* Dreamux host injects its own shared runtime-socket root here; when omitted
|
|
25
|
+
* the package falls back to {@link defaultVolatileSocketPath} so a
|
|
26
|
+
* loader-constructed / standalone runtime is still runnable.
|
|
27
|
+
*/
|
|
28
|
+
allocateSocketPath?: (id: string) => string;
|
|
29
|
+
/** Build the base process env (host seeds `PATH` with the Dreamux package bins). */
|
|
30
|
+
baseProcessEnv?: (extraEnv: Record<string, string>) => NodeJS.ProcessEnv;
|
|
31
|
+
/** Host-owned Codex home/auth pre-start check, invoked with the runtime id and cwd. */
|
|
24
32
|
codexHomeDoctor?: (info: {
|
|
25
33
|
runtimeId: string;
|
|
26
34
|
cwd: string;
|
|
@@ -30,6 +38,15 @@ export interface CodexAgentRuntimeProviderOptions {
|
|
|
30
38
|
restartBackoffBaseMs?: number;
|
|
31
39
|
restartBackoffMaxMs?: number;
|
|
32
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Final codex binary path for one runtime. The `CODEX_HOST_CODEX_BIN`
|
|
43
|
+
* environment variable is a deliberate host-level override that takes precedence
|
|
44
|
+
* over the configured `runtime.config.bin`; otherwise the configured bin
|
|
45
|
+
* (default `"codex"`) is used. `env` defaults to the live process environment
|
|
46
|
+
* for the runtime spawn path; doctor passes the installed service unit's
|
|
47
|
+
* environment so it checks what the service will run.
|
|
48
|
+
*/
|
|
49
|
+
export declare function resolveCodexBinPath(configBin: string, env?: NodeJS.ProcessEnv): string;
|
|
33
50
|
export declare const CODEX_AGENT_RUNTIME_CAPABILITIES: AgentRuntimeCapabilities;
|
|
34
51
|
/**
|
|
35
52
|
* Create the built-in Codex `AgentRuntimeProvider`. It implements the neutral
|
package/dist/provider.d.ts.map
CHANGED
|
@@ -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;AAKzB,OAAO,EACL,qBA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AM,EACjB,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,MAAM,CAIR;AAED,eAAO,MAAM,gCAAgC,EAAE,wBAe9C,CAAC;AAqBF;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAC7C,OAAO,GAAE,gCAAqC,GAC7C,oBAAoB,CAAC,qBAAqB,CAAC,CAiE7C;AAED,0EAA0E;AAC1E,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,SAAS,qBAAqB,EAAE,GACxC,MAAM,EAAE,CAEV;AAED;;;;;GAKG;AACH,MAAM,MAAM,2BAA2B,GACrC,sBAAsB,CAAC,8BAA8B,CAAC,CAAC;AAEzD;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,gCAAgC,EAAE,2BAA2B,CAAC,qBAAqB,CACP,CAAC;AAEnF,eAAe,gCAAgC,CAAC"}
|
package/dist/provider.js
CHANGED
|
@@ -3,9 +3,21 @@ import { CodexRuntime, } from './runtime.js';
|
|
|
3
3
|
import { dispatcherCodexConfig, readDispatcherCodexConfig, } from './config.js';
|
|
4
4
|
import { codexArgsFromConfig, codexArgsToCli } from './args.js';
|
|
5
5
|
import { BUILTIN_CODEX_PROVIDER_REF } from './provider-ref.js';
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
import { defaultVolatileSocketPath } from './internal/socket.js';
|
|
7
|
+
/**
|
|
8
|
+
* Final codex binary path for one runtime. The `CODEX_HOST_CODEX_BIN`
|
|
9
|
+
* environment variable is a deliberate host-level override that takes precedence
|
|
10
|
+
* over the configured `runtime.config.bin`; otherwise the configured bin
|
|
11
|
+
* (default `"codex"`) is used. `env` defaults to the live process environment
|
|
12
|
+
* for the runtime spawn path; doctor passes the installed service unit's
|
|
13
|
+
* environment so it checks what the service will run.
|
|
14
|
+
*/
|
|
15
|
+
export function resolveCodexBinPath(configBin, env = process.env) {
|
|
16
|
+
const fromEnv = env['CODEX_HOST_CODEX_BIN'];
|
|
17
|
+
if (fromEnv !== undefined && fromEnv.trim() !== '')
|
|
18
|
+
return fromEnv;
|
|
19
|
+
return configBin;
|
|
20
|
+
}
|
|
9
21
|
export const CODEX_AGENT_RUNTIME_CAPABILITIES = {
|
|
10
22
|
resume: { supported: true, checkpoint: 'codexThread' },
|
|
11
23
|
steer: { supported: true },
|
|
@@ -48,7 +60,6 @@ export function createCodexAgentRuntimeProvider(options = {}) {
|
|
|
48
60
|
? DEFAULT_CODEX_DESCRIPTOR
|
|
49
61
|
: asAgentRuntimeDescriptor(options.descriptor),
|
|
50
62
|
getCapabilities: () => CODEX_AGENT_RUNTIME_CAPABILITIES,
|
|
51
|
-
diagnostic: codexAgentRuntimeDiagnostic,
|
|
52
63
|
readConfig(rawConfig, context) {
|
|
53
64
|
return readDispatcherCodexConfig(rawConfig, context.file, context.prefix);
|
|
54
65
|
},
|
|
@@ -65,21 +76,15 @@ export function createCodexAgentRuntimeProvider(options = {}) {
|
|
|
65
76
|
...codexArgsToCli(codexArgs),
|
|
66
77
|
...codexMcpServerArgs(context.mcpServers),
|
|
67
78
|
];
|
|
68
|
-
const paths = context.paths;
|
|
69
79
|
const deps = {
|
|
70
80
|
cwd: context.cwd,
|
|
71
81
|
state: context.state,
|
|
72
|
-
paths,
|
|
73
|
-
|
|
74
|
-
// the host's preference-ordered candidate dirs that fits the budget.
|
|
75
|
-
allocateSocketPath: (id) => allocateCodexSocketPath(paths.runtimeSocketDirs(), id),
|
|
82
|
+
paths: context.paths,
|
|
83
|
+
allocateSocketPath: options.allocateSocketPath ?? defaultVolatileSocketPath,
|
|
76
84
|
codexBinPath: resolveCodexBinPath(codexConfig.bin),
|
|
77
85
|
resolveExtraArgs: () => runtimeArgs,
|
|
78
86
|
handshakeTimeoutMs: codexConfig.initialize_timeout_ms,
|
|
79
87
|
extraEnv: codexConfig.extra_env,
|
|
80
|
-
...(context.injectEnv !== undefined
|
|
81
|
-
? { injectEnv: context.injectEnv }
|
|
82
|
-
: {}),
|
|
83
88
|
...(context.skillSources !== undefined
|
|
84
89
|
? { skillSources: context.skillSources }
|
|
85
90
|
: {}),
|
|
@@ -90,6 +95,9 @@ export function createCodexAgentRuntimeProvider(options = {}) {
|
|
|
90
95
|
? { onTurnSettled: context.onTurnSettled }
|
|
91
96
|
: {}),
|
|
92
97
|
...(context.logger !== undefined ? { logger: context.logger } : {}),
|
|
98
|
+
...(options.baseProcessEnv !== undefined
|
|
99
|
+
? { baseProcessEnv: options.baseProcessEnv }
|
|
100
|
+
: {}),
|
|
93
101
|
...(options.codexHomeDoctor !== undefined
|
|
94
102
|
? { codexHomeDoctor: options.codexHomeDoctor }
|
|
95
103
|
: {}),
|
package/dist/provider.js.map
CHANGED
|
@@ -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,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,
|
|
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,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,yBAAyB,EAAE,M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E;oBACpD,CAAC,CAAC,EAAE,CAAC;gBACP,GAAG,CAAC,OAAO,CAAC,oBAAoB,KAAK,SAAS;oBAC5C,CAAC,CAAC,EAAE,oBAAoB,EAAE,OAAO,CAAC,oBAAoB,EAAE;oBACxD,CAAC,CAAC,EAAE,CAAC;gBACP,GAAG,CAAC,OAAO,CAAC,mBAAmB,KAAK,SAAS;oBAC3C,CAAC,CAAC,EAAE,mBAAmB,EAAE,OAAO,CAAC,mBAAmB,EAAE;oBACtD,CAAC,CAAC,EAAE,CAAC;aACR,CAAC;YACF,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAClD,CAAC;KACF,CAAC;AACJ,CAAC;AAED,0EAA0E;AAC1E,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,MAAM,UAAU,6BAA6B,CAC3C,OAAyC;IAEzC,OAAO,kBAAkB,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC;AAWD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,gCAAgC,GACpC,CAAC,OAAO,EAAE,EAAE,CAAC,+BAA+B,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;AAEnF,eAAe,gCAAgC,CAAC"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import type { CompletionEnvelope } from '@excitedjs/dreamux-types';
|
|
2
2
|
/**
|
|
3
|
-
* Build the process env for a Codex app-server child.
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* so there is nothing to strip.
|
|
3
|
+
* Build the process env for a Codex app-server child. `buildBaseEnv` is supplied
|
|
4
|
+
* by the host (it seeds `PATH` with the Dreamux package bins so the child can
|
|
5
|
+
* reach the bundled MCP shims — a host packaging contract this package must not
|
|
6
|
+
* reconstruct). This wrapper then strips `CODEX_HOME` so the child follows the
|
|
7
|
+
* operator's global `~/.codex` instead of any inherited override — a
|
|
8
|
+
* Codex-specific concern that must not live in the host's runtime-neutral env
|
|
9
|
+
* builder (issue #143 de-leak). When no host builder is supplied (standalone /
|
|
10
|
+
* tests) it falls back to the live process env.
|
|
12
11
|
*/
|
|
13
|
-
export declare function codexProcessEnv(
|
|
12
|
+
export declare function codexProcessEnv(buildBaseEnv: ((extraEnv: Record<string, string>) => NodeJS.ProcessEnv) | undefined, extraEnv?: Record<string, string>): NodeJS.ProcessEnv;
|
|
14
13
|
/**
|
|
15
14
|
* Build the raw Responses API item injected into the dispatcher thread's
|
|
16
15
|
* model-visible history via `thread/inject_items`. A `message` item with role
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-support.d.ts","sourceRoot":"","sources":["../src/runtime-support.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAOnE
|
|
1
|
+
{"version":3,"file":"runtime-support.d.ts","sourceRoot":"","sources":["../src/runtime-support.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAOnE;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,YAAY,EACR,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC,UAAU,CAAC,GACzD,SAAS,EACb,QAAQ,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACpC,MAAM,CAAC,UAAU,CAOnB;AA0BD;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC5C,UAAU,EAAE,kBAAkB,EAC9B,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAOlC;AAED;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,QAG4B,CAAC"}
|
package/dist/runtime-support.js
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { resolveCompletionBody, } from '
|
|
1
|
+
import { resolveCompletionBody, } from './internal/completion-body.js';
|
|
2
2
|
/**
|
|
3
|
-
* Build the process env for a Codex app-server child.
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* so there is nothing to strip.
|
|
3
|
+
* Build the process env for a Codex app-server child. `buildBaseEnv` is supplied
|
|
4
|
+
* by the host (it seeds `PATH` with the Dreamux package bins so the child can
|
|
5
|
+
* reach the bundled MCP shims — a host packaging contract this package must not
|
|
6
|
+
* reconstruct). This wrapper then strips `CODEX_HOME` so the child follows the
|
|
7
|
+
* operator's global `~/.codex` instead of any inherited override — a
|
|
8
|
+
* Codex-specific concern that must not live in the host's runtime-neutral env
|
|
9
|
+
* builder (issue #143 de-leak). When no host builder is supplied (standalone /
|
|
10
|
+
* tests) it falls back to the live process env.
|
|
12
11
|
*/
|
|
13
|
-
export function codexProcessEnv(
|
|
14
|
-
|
|
12
|
+
export function codexProcessEnv(buildBaseEnv, extraEnv = {}) {
|
|
13
|
+
const env = buildBaseEnv !== undefined
|
|
14
|
+
? buildBaseEnv(extraEnv)
|
|
15
|
+
: { ...globalThis.process.env, ...extraEnv };
|
|
16
|
+
delete env['CODEX_HOME'];
|
|
17
|
+
return env;
|
|
15
18
|
}
|
|
16
19
|
/**
|
|
17
20
|
* Frame a TeamMate completion as recognizable notification text. Delivered as
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-support.js","sourceRoot":"","sources":["../src/runtime-support.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,GAEtB,MAAM,
|
|
1
|
+
{"version":3,"file":"runtime-support.js","sourceRoot":"","sources":["../src/runtime-support.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,GAEtB,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;;GASG;AACH,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|
46
46
|
*/
|
|
47
47
|
skillSources?: readonly AgentRuntimeSkillSource[];
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
* means inject nothing (the common case).
|
|
49
|
+
* Build the base process env for the codex child (host seeds `PATH` with the
|
|
50
|
+
* Dreamux package bins). Optional: standalone use falls back to the live env.
|
|
52
51
|
*/
|
|
53
|
-
|
|
52
|
+
baseProcessEnv?: (extraEnv: Record<string, string>) => NodeJS.ProcessEnv;
|
|
54
53
|
/** Optional bin path override for tests. */
|
|
55
54
|
codexBinPath?: string;
|
|
56
55
|
/** Override process construction for tests. */
|
|
@@ -162,16 +161,9 @@ export declare class CodexRuntime implements AgentRuntime {
|
|
|
162
161
|
* immediate children are skill dirs, so a `skill-dir` source maps to the
|
|
163
162
|
* *parent* of its own directory; roots are deduped (the bundled Dreamux skills
|
|
164
163
|
* share one parent). Empty input skips the RPC entirely (a fresh per-runtime
|
|
165
|
-
* app-server starts with no extra roots, so nothing to clear).
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
* 1. The app-server does not implement `skills/extraRoots/set` at all — a
|
|
169
|
-
* capability/version skew against an older codex backend (it answers with
|
|
170
|
-
* an `unknown variant`/method-not-found error). This is NOT a real
|
|
171
|
-
* failure: fail open, warn, and continue skill-blind rather than bricking
|
|
172
|
-
* startup against every backend that predates the RPC.
|
|
173
|
-
* 2. The RPC exists but applying the given roots genuinely failed — fail
|
|
174
|
-
* loud, exactly as before, so real misconfiguration is not masked.
|
|
164
|
+
* app-server starts with no extra roots, so nothing to clear). Errors are
|
|
165
|
+
* fatal to the start: a dispatcher/leader that cannot load its operational
|
|
166
|
+
* skills must fail loud, not run skill-blind.
|
|
175
167
|
*/
|
|
176
168
|
private applySkillExtraRoots;
|
|
177
169
|
private resolveThread;
|
|
@@ -220,27 +212,4 @@ export declare class CodexRuntime implements AgentRuntime {
|
|
|
220
212
|
private rememberAcceptedCompletion;
|
|
221
213
|
private setStatus;
|
|
222
214
|
}
|
|
223
|
-
/**
|
|
224
|
-
* Classify an RPC rejection as a capability/version gap — the app-server does
|
|
225
|
-
* not implement the requested method at all — rather than a genuine failure of
|
|
226
|
-
* an existing method.
|
|
227
|
-
*
|
|
228
|
-
* The rpc layer collapses codex's structured error to `Error(message)` (it
|
|
229
|
-
* drops the JSON-RPC error code), so the *message* is all we have. codex
|
|
230
|
-
* surfaces an unimplemented method as a serde enum-deserialization failure of
|
|
231
|
-
* the request's `method` field — `unknown variant \`<method>\`, expected one of
|
|
232
|
-
* …` — while a spec-compliant JSON-RPC peer answers method-not-found (-32601).
|
|
233
|
-
* We match those canonical phrasings only; the test stays deliberately narrow
|
|
234
|
-
* so a real error from an *existing* method (a bad root path, a permission
|
|
235
|
-
* failure) is NOT swallowed and still fails loud.
|
|
236
|
-
*
|
|
237
|
-
* The match is message-based by necessity: the rpc layer drops the structured
|
|
238
|
-
* JSON-RPC error code, so the message is all we have. The one residual
|
|
239
|
-
* false-positive is a server that *implements* the method but rejects a bad
|
|
240
|
-
* *param value* with an "unknown variant `<value>`" serde error. That is safe
|
|
241
|
-
* for our sole caller — `skills/extraRoots/set` takes a `string[]` of paths,
|
|
242
|
-
* which codex never enum-rejects — but a future caller passing an enum-typed
|
|
243
|
-
* param should not reuse this classifier blindly.
|
|
244
|
-
*/
|
|
245
|
-
export declare function isUnsupportedRpcMethodError(err: unknown): boolean;
|
|
246
215
|
//# sourceMappingURL=runtime.d.ts.map
|
package/dist/runtime.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EACL,YAAY,EAEZ,KAAK,mBAAmB,EACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAczC,OAAO,KAAK,EACV,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EAC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