@cotal-ai/connector-codex 0.70.0 → 0.71.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/index.js CHANGED
@@ -11,10 +11,13 @@ import { resolve } from "node:path";
11
11
  import { registry as registry3 } from "@cotal-ai/core";
12
12
 
13
13
  // ../connector-core/dist/config.js
14
- import { DEFAULT_SERVER, DEV_OWNER, LAUNCH_MATERIAL_ENV, discardLaunchMaterial, assertLifecycleToken, assertValidChannel, channelInAllow, credsClaims, eventChannel, idFromCreds, isConcreteChannel, loadAgentFile, parseJoinLink, readLaunchMaterial, resolveReadAcl } from "@cotal-ai/core";
14
+ import { DEFAULT_SERVER, DEV_OWNER, LAUNCH_MATERIAL_ENV as LAUNCH_MATERIAL_ENV2, discardLaunchMaterial, assertLifecycleToken, assertValidChannel, channelInAllow, credsClaims, eventChannel, idFromCreds, isConcreteChannel, loadAgentFile, parseJoinLink, resolveReadAcl } from "@cotal-ai/core";
15
+
16
+ // ../connector-core/dist/session-env.js
17
+ import { LAUNCH_MATERIAL_ENV, readLaunchMaterial } from "@cotal-ai/core/launch-material";
15
18
 
16
19
  // ../connector-core/dist/agent.js
17
- import { normalizeMentions, RUN_LAUNCH_DEADLINE_MS, subjectMatches, isConcreteChannel as isConcreteChannel2, assertValidChannel as assertValidChannel2, channelInAllow as channelInAllow2, resolvePeer as resolvePeerInRoster, peerLabel as peerLabel2, CotalEndpoint, BASELINE_LIFECYCLE_ENDPOINT as BASELINE_LIFECYCLE_ENDPOINT2, BIND_SPLIT_REISSUES, assertLifecycleToken as assertLifecycleToken3, EpEnvelopeError, isPublishPermissionDenied, unansweredRequest, renderLifecycleBlocked, controlReplyFrom, bearerCommandFailure, partsToText, routeToken } from "@cotal-ai/core";
20
+ import { normalizeMentions, RUN_LAUNCH_DEADLINE_MS, subjectMatches, isConcreteChannel as isConcreteChannel2, assertValidChannel as assertValidChannel2, channelInAllow as channelInAllow2, resolvePeer as resolvePeerInRoster, peerLabel as peerLabel2, CotalEndpoint, BASELINE_LIFECYCLE_ENDPOINT as BASELINE_LIFECYCLE_ENDPOINT2, BIND_SPLIT_REISSUES, assertLifecycleToken as assertLifecycleToken3, EpEnvelopeError, isPublishPermissionDenied, unansweredRequest, renderLifecycleBlocked, controlReplyFrom, runAgentBearer, partsToText, assertValidRole } from "@cotal-ai/core";
18
21
 
19
22
  // ../connector-core/dist/framing.js
20
23
  import { peerLabel } from "@cotal-ai/core";
@@ -39,7 +42,7 @@ function controlEndpoint(space, name, token = randomBytes(32).toString("base64ur
39
42
  }
40
43
 
41
44
  // ../connector-core/dist/launch.js
42
- import { eventChannel as eventChannel2, LAUNCH_MATERIAL_ENV as LAUNCH_MATERIAL_ENV2, parsePrincipalKey, principalKey, writeLaunchMaterial } from "@cotal-ai/core";
45
+ import { eventChannel as eventChannel2, LAUNCH_MATERIAL_ENV as LAUNCH_MATERIAL_ENV3, parsePrincipalKey, principalKey, writeLaunchMaterial } from "@cotal-ai/core";
43
46
  import { EVENT_CHANNEL_PREFIX, eventChannel as eventChannel3, eventChannelPrincipal, isEventChannel } from "@cotal-ai/core";
44
47
  var OS_ENV_ALLOW = [
45
48
  "PATH",
@@ -108,6 +111,11 @@ var OPERATOR_ENV_KEEP = [
108
111
  "COTAL_ORCA_BIN"
109
112
  ];
110
113
  function launchEnv(opts = {}) {
114
+ for (const k of opts.envAllow ?? []) {
115
+ const name = k.toUpperCase();
116
+ if (name.startsWith("COTAL_") && !OPERATOR_ENV_KEEP.some((keep) => keep === name))
117
+ throw new Error(`spawn.env cannot list "${k}": the launcher sets COTAL_ names for each seat, and only the machine-wide ones such as COTAL_HOME cross from the spawning process`);
118
+ }
111
119
  const env = {};
112
120
  const sourceKey = /* @__PURE__ */ new Map();
113
121
  for (const k of Object.keys(process.env))
@@ -168,7 +176,7 @@ function materialEnv(opts) {
168
176
  material.userAuth = opts.userAuth;
169
177
  if (Object.keys(material).length === 0)
170
178
  return {};
171
- return { [LAUNCH_MATERIAL_ENV2]: writeLaunchMaterial(material) };
179
+ return { [LAUNCH_MATERIAL_ENV3]: writeLaunchMaterial(material) };
172
180
  }
173
181
 
174
182
  // ../connector-core/dist/agui.js
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.70.0",
4
+ "version": "0.71.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.70.0",
25
- "@cotal-ai/core": "0.70.0",
24
+ "@cotal-ai/connector-core": "0.71.0",
25
+ "@cotal-ai/core": "0.71.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",