@openagents-org/agent-launcher 0.2.196 → 0.2.197
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/package.json +1 -1
- package/src/daemon.js +7 -0
package/package.json
CHANGED
package/src/daemon.js
CHANGED
|
@@ -506,6 +506,7 @@ class Daemon {
|
|
|
506
506
|
workingDir: a.path || null,
|
|
507
507
|
apiKeyMasked: apiKey ? maskApiKey(apiKey) : null,
|
|
508
508
|
baseUrlHost: endpointHost(this._configuredBaseUrl(a, typeEnv)),
|
|
509
|
+
codexWireApi: a.type === 'codex' ? ((a.env && a.env.CODEX_WIRE_API) || typeEnv.CODEX_WIRE_API || 'chat') : null,
|
|
509
510
|
cliModels: listed && listed.models && this._onCliSignIn(a) ? listed.models : null,
|
|
510
511
|
probe: this._probes[a.name] || null,
|
|
511
512
|
});
|
|
@@ -621,6 +622,12 @@ class Daemon {
|
|
|
621
622
|
*/
|
|
622
623
|
_saveNodeAgentEnv(name, type, args) {
|
|
623
624
|
const changes = {};
|
|
625
|
+
if (type === 'codex' && args.codexWireApi !== undefined) {
|
|
626
|
+
if (!['responses', 'chat'].includes(args.codexWireApi)) {
|
|
627
|
+
throw new Error('Choose Responses or Chat Completions for Codex');
|
|
628
|
+
}
|
|
629
|
+
changes.CODEX_WIRE_API = args.codexWireApi;
|
|
630
|
+
}
|
|
624
631
|
if (_sentKey(args)) {
|
|
625
632
|
changes.LLM_API_KEY = args.apiKey;
|
|
626
633
|
// A key sent for the agent means it runs on that key: a sign-in marker
|