@cotal-ai/connector-codex 0.86.0 → 0.87.0
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/extension.d.ts.map +1 -1
- package/dist/host.js +1779 -1411
- package/dist/index.js +8 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -6931,6 +6931,7 @@ function controlEndpoint(space, name, token = randomBytes(32).toString("base64ur
|
|
|
6931
6931
|
|
|
6932
6932
|
// ../connector-core/dist/launch.js
|
|
6933
6933
|
import { eventChannel as eventChannel2, LAUNCH_MATERIAL_ENV as LAUNCH_MATERIAL_ENV3, parsePrincipalKey, principalKey, writeLaunchMaterial } from "@cotal-ai/core";
|
|
6934
|
+
import { dirname } from "node:path";
|
|
6934
6935
|
import { EVENT_CHANNEL_PREFIX, eventChannel as eventChannel3, eventChannelPrincipal, isEventChannel } from "@cotal-ai/core";
|
|
6935
6936
|
var OS_ENV_ALLOW = [
|
|
6936
6937
|
"PATH",
|
|
@@ -7046,7 +7047,7 @@ function connectorLaunchOptions(connector, launchOptions) {
|
|
|
7046
7047
|
throw new Error(`${connector} connector: launch option key ${JSON.stringify(k)} is not a valid flag name`);
|
|
7047
7048
|
return Object.entries(launchOptions);
|
|
7048
7049
|
}
|
|
7049
|
-
function materialEnv(opts) {
|
|
7050
|
+
function materialEnv(opts, artifacts) {
|
|
7050
7051
|
if (opts.userAuth && opts.creds)
|
|
7051
7052
|
throw new Error("launch: creds (static auth) and userAuth (user-mode auth) are mutually exclusive \u2014 one launch carries one identity plane");
|
|
7052
7053
|
const material = {};
|
|
@@ -7064,7 +7065,9 @@ function materialEnv(opts) {
|
|
|
7064
7065
|
material.userAuth = opts.userAuth;
|
|
7065
7066
|
if (Object.keys(material).length === 0)
|
|
7066
7067
|
return {};
|
|
7067
|
-
|
|
7068
|
+
const path = writeLaunchMaterial(material);
|
|
7069
|
+
artifacts.push(dirname(path));
|
|
7070
|
+
return { [LAUNCH_MATERIAL_ENV3]: path };
|
|
7068
7071
|
}
|
|
7069
7072
|
function launchArmsEvents(opts) {
|
|
7070
7073
|
return opts.events !== false || opts.eventsRequired === true;
|
|
@@ -23615,9 +23618,6 @@ var codexConnector = {
|
|
|
23615
23618
|
const env = {
|
|
23616
23619
|
...launchEnv({ providerKeys: CODEX_ENV_KEYS, envAllow: opts.envAllow }),
|
|
23617
23620
|
...aclEnv(opts),
|
|
23618
|
-
// Creds, broker URL and the control token ride a 0600 file; only its path is exported, and the
|
|
23619
|
-
// host drops even that once it has read it, so a shell this seat runs inherits neither.
|
|
23620
|
-
...materialEnv({ creds: opts.creds, servers: opts.servers, controlToken: control.token, eventsRequired: opts.eventsRequired, userAuth: opts.userAuth }),
|
|
23621
23621
|
COTAL_SPACE: opts.space,
|
|
23622
23622
|
COTAL_NAME: opts.name
|
|
23623
23623
|
};
|
|
@@ -23663,7 +23663,9 @@ var codexConnector = {
|
|
|
23663
23663
|
}
|
|
23664
23664
|
if (hasOverrides) env.COTAL_CODEX_CONFIG = JSON.stringify(overrides);
|
|
23665
23665
|
env.COTAL_CONTROL_SOCKET = control.path;
|
|
23666
|
-
|
|
23666
|
+
const artifacts = [];
|
|
23667
|
+
Object.assign(env, materialEnv({ creds: opts.creds, servers: opts.servers, controlToken: control.token, eventsRequired: opts.eventsRequired, userAuth: opts.userAuth }, artifacts));
|
|
23668
|
+
return { command: HOST_COMMAND, args: [HOST_ENTRY], env, control, ...artifacts.length > 0 ? { artifacts } : {} };
|
|
23667
23669
|
}
|
|
23668
23670
|
};
|
|
23669
23671
|
registry3.register(codexConnector);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cotal-ai/connector-codex",
|
|
3
3
|
"description": "Cotal connector for OpenAI Codex: a host-mode peer driving codex app-server, with Codex's own TUI attached and the cotal_* tools served over a loopback MCP endpoint.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.87.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@cotal-ai/core": ">=0.1.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@cotal-ai/connector-core": "0.
|
|
25
|
-
"@cotal-ai/core": "0.
|
|
24
|
+
"@cotal-ai/connector-core": "0.87.0",
|
|
25
|
+
"@cotal-ai/core": "0.87.0",
|
|
26
26
|
"@cotal-ai/smoke-kit": "0.0.0",
|
|
27
27
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
28
28
|
"@nats-io/transport-node": "^3.4.0",
|