@cotal-ai/connector-claude-code 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/hook.cjs CHANGED
@@ -41153,7 +41153,7 @@ config(en_default());
41153
41153
 
41154
41154
  // ../connector-core/dist/docs-bundle.generated.js
41155
41155
  var DOCS_BUNDLE = {
41156
- "version": "0.27.0",
41156
+ "version": "0.28.0",
41157
41157
  "generatedFrom": "docs/*.md + SPEC.md + spec/cotal-lang.md + spec/cotal.schema.json",
41158
41158
  "pages": [
41159
41159
  {
package/dist/index.js CHANGED
@@ -14853,7 +14853,7 @@ import { isConcreteChannel as isConcreteChannel3, channelInAllow as channelInAll
14853
14853
 
14854
14854
  // ../connector-core/dist/docs-bundle.generated.js
14855
14855
  var DOCS_BUNDLE = {
14856
- "version": "0.27.0",
14856
+ "version": "0.28.0",
14857
14857
  "generatedFrom": "docs/*.md + SPEC.md + spec/cotal-lang.md + spec/cotal.schema.json",
14858
14858
  "pages": [
14859
14859
  {
package/dist/mcp.cjs CHANGED
@@ -60704,7 +60704,7 @@ function loadAgentFile(path) {
60704
60704
  } catch (e) {
60705
60705
  throw new Error(`agent file ${path}: ${e.message}`);
60706
60706
  }
60707
- const effSubscribe = subscribe?.length ? subscribe : ["general"];
60707
+ const effSubscribe = subscribe ?? [];
60708
60708
  const effAllow = allowSubscribe?.length ? allowSubscribe : effSubscribe;
60709
60709
  for (const ch of effSubscribe)
60710
60710
  if (!channelInAllow(effAllow, ch))
@@ -61118,7 +61118,7 @@ var CotalEndpoint = class _CotalEndpoint extends import_node_events.EventEmitter
61118
61118
  this.user = opts.user;
61119
61119
  this.pass = opts.pass;
61120
61120
  this.tls = opts.tls ?? false;
61121
- this.channels = opts.channels ?? ["general"];
61121
+ this.channels = opts.channels ?? [];
61122
61122
  this.heartbeatMs = opts.heartbeatMs ?? 2e3;
61123
61123
  this.ttlMs = opts.ttlMs ?? 6e3;
61124
61124
  this.doRegister = opts.registerPresence ?? true;
@@ -61645,7 +61645,9 @@ var CotalEndpoint = class _CotalEndpoint extends import_node_events.EventEmitter
61645
61645
  // ---- messaging -----------------------------------------------------------
61646
61646
  /** Multicast: broadcast to everyone on a channel. */
61647
61647
  async multicast(text, opts) {
61648
- const channel = opts?.channel ?? this.channels.find(isConcreteChannel) ?? "general";
61648
+ const channel = opts?.channel ?? this.channels.find(isConcreteChannel);
61649
+ if (!channel)
61650
+ 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");
61649
61651
  if (!isConcreteChannel(channel))
61650
61652
  throw new Error(`cannot publish to wildcard channel "${channel}" - pick a concrete sub-channel`);
61651
61653
  const msg = {
@@ -64713,7 +64715,7 @@ function configFromEnv(env = process.env) {
64713
64715
  if (!name)
64714
64716
  throw new Error("COTAL_NAME, COTAL_AGENT_FILE or COTAL_LINK is required \u2014 a Cotal session needs an explicit identity from its launcher");
64715
64717
  const subscribe = splitList(env.COTAL_SUBSCRIBE);
64716
- const resolvedSubscribe = subscribe.length ? subscribe : def?.subscribe ?? link?.channels ?? ["general"];
64718
+ const resolvedSubscribe = subscribe.length ? subscribe : def?.subscribe ?? link?.channels ?? [];
64717
64719
  const allowSub = splitList(env.COTAL_ALLOW_SUBSCRIBE);
64718
64720
  const resolvedAllowSub = allowSub.length ? allowSub : def?.allowSubscribe ?? resolvedSubscribe;
64719
64721
  for (const ch of resolvedSubscribe)
@@ -67835,7 +67837,7 @@ var import_node_child_process2 = require("node:child_process");
67835
67837
 
67836
67838
  // ../connector-core/dist/docs-bundle.generated.js
67837
67839
  var DOCS_BUNDLE = {
67838
- "version": "0.27.0",
67840
+ "version": "0.28.0",
67839
67841
  "generatedFrom": "docs/*.md + SPEC.md + spec/cotal-lang.md + spec/cotal.schema.json",
67840
67842
  "pages": [
67841
67843
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cotal-ai/connector-claude-code",
3
3
  "description": "Cotal connector for Claude Code: an installed plugin that joins a session to the mesh.",
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,15 +18,15 @@
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",
25
25
  "esbuild": "^0.28.0",
26
26
  "tsx": "^4.22.4",
27
- "@cotal-ai/core": "0.28.0-hack-20260823210619",
28
- "@cotal-ai/smoke-kit": "0.0.0",
29
- "@cotal-ai/connector-core": "0.28.0-hack-20260823210619"
27
+ "@cotal-ai/connector-core": "0.28.0",
28
+ "@cotal-ai/core": "0.28.0",
29
+ "@cotal-ai/smoke-kit": "0.0.0"
30
30
  },
31
31
  "files": [
32
32
  "dist",