@cotal-ai/connector-codex 0.28.0-hack-20260823210619 → 0.28.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/host.js CHANGED
@@ -40333,7 +40333,7 @@ function loadAgentFile(path) {
40333
40333
  } catch (e) {
40334
40334
  throw new Error(`agent file ${path}: ${e.message}`);
40335
40335
  }
40336
- const effSubscribe = subscribe?.length ? subscribe : ["general"];
40336
+ const effSubscribe = subscribe ?? [];
40337
40337
  const effAllow = allowSubscribe?.length ? allowSubscribe : effSubscribe;
40338
40338
  for (const ch of effSubscribe)
40339
40339
  if (!channelInAllow(effAllow, ch))
@@ -40807,7 +40807,7 @@ var CotalEndpoint = class _CotalEndpoint extends EventEmitter {
40807
40807
  this.user = opts.user;
40808
40808
  this.pass = opts.pass;
40809
40809
  this.tls = opts.tls ?? false;
40810
- this.channels = opts.channels ?? ["general"];
40810
+ this.channels = opts.channels ?? [];
40811
40811
  this.heartbeatMs = opts.heartbeatMs ?? 2e3;
40812
40812
  this.ttlMs = opts.ttlMs ?? 6e3;
40813
40813
  this.doRegister = opts.registerPresence ?? true;
@@ -41334,7 +41334,9 @@ var CotalEndpoint = class _CotalEndpoint extends EventEmitter {
41334
41334
  // ---- messaging -----------------------------------------------------------
41335
41335
  /** Multicast: broadcast to everyone on a channel. */
41336
41336
  async multicast(text, opts) {
41337
- const channel = opts?.channel ?? this.channels.find(isConcreteChannel) ?? "general";
41337
+ const channel = opts?.channel ?? this.channels.find(isConcreteChannel);
41338
+ if (!channel)
41339
+ throw new Error("send() needs a channel: this endpoint is on no concrete channel, so there is no default to fall back to - pass opts.channel");
41338
41340
  if (!isConcreteChannel(channel))
41339
41341
  throw new Error(`cannot publish to wildcard channel "${channel}" - pick a concrete sub-channel`);
41340
41342
  const msg = {
@@ -44407,7 +44409,7 @@ function configFromEnv(env = process.env) {
44407
44409
  if (!name)
44408
44410
  throw new Error("COTAL_NAME, COTAL_AGENT_FILE or COTAL_LINK is required \u2014 a Cotal session needs an explicit identity from its launcher");
44409
44411
  const subscribe = splitList(env.COTAL_SUBSCRIBE);
44410
- const resolvedSubscribe = subscribe.length ? subscribe : def?.subscribe ?? link?.channels ?? ["general"];
44412
+ const resolvedSubscribe = subscribe.length ? subscribe : def?.subscribe ?? link?.channels ?? [];
44411
44413
  const allowSub = splitList(env.COTAL_ALLOW_SUBSCRIBE);
44412
44414
  const resolvedAllowSub = allowSub.length ? allowSub : def?.allowSubscribe ?? resolvedSubscribe;
44413
44415
  for (const ch of resolvedSubscribe)
@@ -62043,7 +62045,7 @@ config(en_default());
62043
62045
 
62044
62046
  // ../connector-core/dist/docs-bundle.generated.js
62045
62047
  var DOCS_BUNDLE = {
62046
- "version": "0.27.0",
62048
+ "version": "0.28.0",
62047
62049
  "generatedFrom": "docs/*.md + SPEC.md + spec/cotal-lang.md + spec/cotal.schema.json",
62048
62050
  "pages": [
62049
62051
  {
package/dist/index.js CHANGED
@@ -14831,7 +14831,7 @@ import { isConcreteChannel as isConcreteChannel3, channelInAllow as channelInAll
14831
14831
 
14832
14832
  // ../connector-core/dist/docs-bundle.generated.js
14833
14833
  var DOCS_BUNDLE = {
14834
- "version": "0.27.0",
14834
+ "version": "0.28.0",
14835
14835
  "generatedFrom": "docs/*.md + SPEC.md + spec/cotal-lang.md + spec/cotal.schema.json",
14836
14836
  "pages": [
14837
14837
  {
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.28.0-hack-20260823210619",
4
+ "version": "0.28.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -18,7 +18,7 @@
18
18
  }
19
19
  },
20
20
  "peerDependencies": {
21
- "@cotal-ai/core": "0.28.0-hack-20260823210619"
21
+ "@cotal-ai/core": ">=0.1.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@modelcontextprotocol/sdk": "^1.29.0",
@@ -27,9 +27,9 @@
27
27
  "tsx": "^4.22.4",
28
28
  "ws": "^8.21.0",
29
29
  "zod": "^4.4.3",
30
- "@cotal-ai/core": "0.28.0-hack-20260823210619",
31
- "@cotal-ai/smoke-kit": "0.0.0",
32
- "@cotal-ai/connector-core": "0.28.0-hack-20260823210619"
30
+ "@cotal-ai/core": "0.28.0",
31
+ "@cotal-ai/connector-core": "0.28.0",
32
+ "@cotal-ai/smoke-kit": "0.0.0"
33
33
  },
34
34
  "files": [
35
35
  "dist"