@cotal-ai/connector-jcode 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 +7 -5
- package/dist/index.js +1 -1
- package/dist/mcp.js +1 -1
- package/package.json +4 -4
package/dist/host.js
CHANGED
|
@@ -37776,7 +37776,7 @@ function loadAgentFile(path4) {
|
|
|
37776
37776
|
} catch (e) {
|
|
37777
37777
|
throw new Error(`agent file ${path4}: ${e.message}`);
|
|
37778
37778
|
}
|
|
37779
|
-
const effSubscribe = subscribe
|
|
37779
|
+
const effSubscribe = subscribe ?? [];
|
|
37780
37780
|
const effAllow = allowSubscribe?.length ? allowSubscribe : effSubscribe;
|
|
37781
37781
|
for (const ch of effSubscribe)
|
|
37782
37782
|
if (!channelInAllow(effAllow, ch))
|
|
@@ -38225,7 +38225,7 @@ var CotalEndpoint = class _CotalEndpoint extends EventEmitter2 {
|
|
|
38225
38225
|
this.user = opts.user;
|
|
38226
38226
|
this.pass = opts.pass;
|
|
38227
38227
|
this.tls = opts.tls ?? false;
|
|
38228
|
-
this.channels = opts.channels ?? [
|
|
38228
|
+
this.channels = opts.channels ?? [];
|
|
38229
38229
|
this.heartbeatMs = opts.heartbeatMs ?? 2e3;
|
|
38230
38230
|
this.ttlMs = opts.ttlMs ?? 6e3;
|
|
38231
38231
|
this.doRegister = opts.registerPresence ?? true;
|
|
@@ -38752,7 +38752,9 @@ var CotalEndpoint = class _CotalEndpoint extends EventEmitter2 {
|
|
|
38752
38752
|
// ---- messaging -----------------------------------------------------------
|
|
38753
38753
|
/** Multicast: broadcast to everyone on a channel. */
|
|
38754
38754
|
async multicast(text, opts) {
|
|
38755
|
-
const channel = opts?.channel ?? this.channels.find(isConcreteChannel)
|
|
38755
|
+
const channel = opts?.channel ?? this.channels.find(isConcreteChannel);
|
|
38756
|
+
if (!channel)
|
|
38757
|
+
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");
|
|
38756
38758
|
if (!isConcreteChannel(channel))
|
|
38757
38759
|
throw new Error(`cannot publish to wildcard channel "${channel}" - pick a concrete sub-channel`);
|
|
38758
38760
|
const msg = {
|
|
@@ -42012,7 +42014,7 @@ function configFromEnv(env = process.env) {
|
|
|
42012
42014
|
if (!name)
|
|
42013
42015
|
throw new Error("COTAL_NAME, COTAL_AGENT_FILE or COTAL_LINK is required \u2014 a Cotal session needs an explicit identity from its launcher");
|
|
42014
42016
|
const subscribe = splitList(env.COTAL_SUBSCRIBE);
|
|
42015
|
-
const resolvedSubscribe = subscribe.length ? subscribe : def?.subscribe ?? link?.channels ?? [
|
|
42017
|
+
const resolvedSubscribe = subscribe.length ? subscribe : def?.subscribe ?? link?.channels ?? [];
|
|
42016
42018
|
const allowSub = splitList(env.COTAL_ALLOW_SUBSCRIBE);
|
|
42017
42019
|
const resolvedAllowSub = allowSub.length ? allowSub : def?.allowSubscribe ?? resolvedSubscribe;
|
|
42018
42020
|
for (const ch of resolvedSubscribe)
|
|
@@ -57722,7 +57724,7 @@ config(en_default());
|
|
|
57722
57724
|
|
|
57723
57725
|
// ../connector-core/dist/docs-bundle.generated.js
|
|
57724
57726
|
var DOCS_BUNDLE = {
|
|
57725
|
-
"version": "0.
|
|
57727
|
+
"version": "0.28.0",
|
|
57726
57728
|
"generatedFrom": "docs/*.md + SPEC.md + spec/cotal-lang.md + spec/cotal.schema.json",
|
|
57727
57729
|
"pages": [
|
|
57728
57730
|
{
|
package/dist/index.js
CHANGED
|
@@ -14830,7 +14830,7 @@ import { isConcreteChannel as isConcreteChannel3, channelInAllow as channelInAll
|
|
|
14830
14830
|
|
|
14831
14831
|
// ../connector-core/dist/docs-bundle.generated.js
|
|
14832
14832
|
var DOCS_BUNDLE = {
|
|
14833
|
-
"version": "0.
|
|
14833
|
+
"version": "0.28.0",
|
|
14834
14834
|
"generatedFrom": "docs/*.md + SPEC.md + spec/cotal-lang.md + spec/cotal.schema.json",
|
|
14835
14835
|
"pages": [
|
|
14836
14836
|
{
|
package/dist/mcp.js
CHANGED
|
@@ -57518,7 +57518,7 @@ import { execFileSync } from "node:child_process";
|
|
|
57518
57518
|
|
|
57519
57519
|
// ../connector-core/dist/docs-bundle.generated.js
|
|
57520
57520
|
var DOCS_BUNDLE = {
|
|
57521
|
-
"version": "0.
|
|
57521
|
+
"version": "0.28.0",
|
|
57522
57522
|
"generatedFrom": "docs/*.md + SPEC.md + spec/cotal-lang.md + spec/cotal.schema.json",
|
|
57523
57523
|
"pages": [
|
|
57524
57524
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cotal-ai/connector-jcode",
|
|
3
3
|
"description": "Cotal connector for Jcode: a host-mode mesh peer driven through Jcode's Harness API bridge.",
|
|
4
|
-
"version": "0.28.0
|
|
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.
|
|
21
|
+
"@cotal-ai/core": ">=0.1.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@1jehuang/jcode-sdk": "^1.1.0",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"esbuild": "^0.28.0",
|
|
29
29
|
"tsx": "^4.22.4",
|
|
30
30
|
"zod": "^4.4.3",
|
|
31
|
-
"@cotal-ai/connector-core": "0.28.0
|
|
32
|
-
"@cotal-ai/core": "0.28.0
|
|
31
|
+
"@cotal-ai/connector-core": "0.28.0",
|
|
32
|
+
"@cotal-ai/core": "0.28.0",
|
|
33
33
|
"@cotal-ai/smoke-kit": "0.0.0"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|