@cotal-ai/connector-opencode 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/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
  {
@@ -36076,7 +36076,7 @@ function loadAgentFile(path) {
36076
36076
  } catch (e) {
36077
36077
  throw new Error(`agent file ${path}: ${e.message}`);
36078
36078
  }
36079
- const effSubscribe = subscribe?.length ? subscribe : ["general"];
36079
+ const effSubscribe = subscribe ?? [];
36080
36080
  const effAllow = allowSubscribe?.length ? allowSubscribe : effSubscribe;
36081
36081
  for (const ch of effSubscribe)
36082
36082
  if (!channelInAllow(effAllow, ch))
@@ -36510,7 +36510,7 @@ var CotalEndpoint = class _CotalEndpoint extends EventEmitter {
36510
36510
  this.user = opts.user;
36511
36511
  this.pass = opts.pass;
36512
36512
  this.tls = opts.tls ?? false;
36513
- this.channels = opts.channels ?? ["general"];
36513
+ this.channels = opts.channels ?? [];
36514
36514
  this.heartbeatMs = opts.heartbeatMs ?? 2e3;
36515
36515
  this.ttlMs = opts.ttlMs ?? 6e3;
36516
36516
  this.doRegister = opts.registerPresence ?? true;
@@ -37037,7 +37037,9 @@ var CotalEndpoint = class _CotalEndpoint extends EventEmitter {
37037
37037
  // ---- messaging -----------------------------------------------------------
37038
37038
  /** Multicast: broadcast to everyone on a channel. */
37039
37039
  async multicast(text, opts) {
37040
- const channel = opts?.channel ?? this.channels.find(isConcreteChannel) ?? "general";
37040
+ const channel = opts?.channel ?? this.channels.find(isConcreteChannel);
37041
+ if (!channel)
37042
+ 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");
37041
37043
  if (!isConcreteChannel(channel))
37042
37044
  throw new Error(`cannot publish to wildcard channel "${channel}" - pick a concrete sub-channel`);
37043
37045
  const msg = {
@@ -40113,7 +40115,7 @@ function configFromEnv(env = process.env) {
40113
40115
  if (!name)
40114
40116
  throw new Error("COTAL_NAME, COTAL_AGENT_FILE or COTAL_LINK is required \u2014 a Cotal session needs an explicit identity from its launcher");
40115
40117
  const subscribe = splitList(env.COTAL_SUBSCRIBE);
40116
- const resolvedSubscribe = subscribe.length ? subscribe : def?.subscribe ?? link?.channels ?? ["general"];
40118
+ const resolvedSubscribe = subscribe.length ? subscribe : def?.subscribe ?? link?.channels ?? [];
40117
40119
  const allowSub = splitList(env.COTAL_ALLOW_SUBSCRIBE);
40118
40120
  const resolvedAllowSub = allowSub.length ? allowSub : def?.allowSubscribe ?? resolvedSubscribe;
40119
40121
  for (const ch of resolvedSubscribe)
@@ -57605,7 +57607,7 @@ config(en_default());
57605
57607
 
57606
57608
  // ../connector-core/dist/docs-bundle.generated.js
57607
57609
  var DOCS_BUNDLE = {
57608
- "version": "0.27.0",
57610
+ "version": "0.28.0",
57609
57611
  "generatedFrom": "docs/*.md + SPEC.md + spec/cotal-lang.md + spec/cotal.schema.json",
57610
57612
  "pages": [
57611
57613
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cotal-ai/connector-opencode",
3
3
  "description": "Cotal connector for OpenCode: a native in-process 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
  "@opencode-ai/plugin": "^1.16.2",
25
25
  "esbuild": "^0.28.0",
26
26
  "tsx": "^4.22.4",
27
- "@cotal-ai/connector-core": "0.28.0-hack-20260823210619",
28
- "@cotal-ai/smoke-kit": "0.0.0",
29
- "@cotal-ai/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"