@cotal-ai/connector-jcode 0.77.0 → 0.78.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.d.ts.map +1 -1
- package/dist/host.js +238 -175
- package/dist/index.js +7 -4
- package/dist/mcp.js +16 -16
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -36,13 +36,13 @@ import { DEFAULT_SERVER, DEV_OWNER, LAUNCH_MATERIAL_ENV as LAUNCH_MATERIAL_ENV2,
|
|
|
36
36
|
import { LAUNCH_MATERIAL_ENV, readLaunchMaterial } from "@cotal-ai/core/launch-material";
|
|
37
37
|
|
|
38
38
|
// ../connector-core/dist/agent.js
|
|
39
|
-
import { normalizeMentions, RUN_LAUNCH_DEADLINE_MS, subjectMatches, isConcreteChannel as isConcreteChannel2, assertValidChannel as assertValidChannel2, channelInAllow as channelInAllow2, resolvePeer as resolvePeerInRoster, peerLabel as peerLabel2, CotalEndpoint, acquireLocalConsumer, BASELINE_LIFECYCLE_ENDPOINT as BASELINE_LIFECYCLE_ENDPOINT2, BIND_SPLIT_REISSUES, assertLifecycleToken as assertLifecycleToken2, EpEnvelopeError, isPublishPermissionDenied, unansweredRequest, renderLifecycleBlocked, controlReplyFrom, runAgentBearer, partsToText, assertValidRole } from "@cotal-ai/core";
|
|
39
|
+
import { normalizeMentions, RUN_LAUNCH_DEADLINE_MS, subjectMatches, isConcreteChannel as isConcreteChannel2, assertValidChannel as assertValidChannel2, channelInAllow as channelInAllow2, resolvePeer as resolvePeerInRoster, peerLabel as peerLabel2, CotalEndpoint, acquireLocalConsumer, BASELINE_LIFECYCLE_ENDPOINT as BASELINE_LIFECYCLE_ENDPOINT2, BIND_SPLIT_REISSUES, assertLifecycleToken as assertLifecycleToken2, EpEnvelopeError as EpEnvelopeError2, isPublishPermissionDenied, unansweredRequest, renderLifecycleBlocked, controlReplyFrom, runAgentBearer, partsToText, assertValidRole } from "@cotal-ai/core";
|
|
40
40
|
|
|
41
41
|
// ../connector-core/dist/framing.js
|
|
42
42
|
import { peerLabel } from "@cotal-ai/core";
|
|
43
43
|
|
|
44
44
|
// ../connector-core/dist/manager-call.js
|
|
45
|
-
import { BASELINE_LIFECYCLE_ENDPOINT, dialerFor, goalFollowRefusal, invokeCommand, isPermissionDenied, issuedUserCaller, managerCallerBinding, replyRefusedBeforeEffect, resolveService, standaloneConnectOpts } from "@cotal-ai/core";
|
|
45
|
+
import { BASELINE_LIFECYCLE_ENDPOINT, EpEnvelopeError, dialerFor, goalFollowRefusal, invokeCommand, isPermissionDenied, issuedUserCaller, managerCallerBinding, replyRefusedBeforeEffect, resolveService, standaloneConnectOpts } from "@cotal-ai/core";
|
|
46
46
|
|
|
47
47
|
// ../connector-core/dist/runtime.js
|
|
48
48
|
import { tmpdir } from "node:os";
|
|
@@ -197,6 +197,9 @@ function materialEnv(opts) {
|
|
|
197
197
|
return {};
|
|
198
198
|
return { [LAUNCH_MATERIAL_ENV3]: writeLaunchMaterial(material) };
|
|
199
199
|
}
|
|
200
|
+
function launchArmsEvents(opts) {
|
|
201
|
+
return opts.events !== false || opts.eventsRequired === true;
|
|
202
|
+
}
|
|
200
203
|
|
|
201
204
|
// ../connector-core/dist/agui.js
|
|
202
205
|
import { AGUI_FRAME_KIND, AGUI_EVENT_TYPE, isAguiFramePart } from "@cotal-ai/core";
|
|
@@ -14878,7 +14881,7 @@ function date4(params) {
|
|
|
14878
14881
|
config(en_default());
|
|
14879
14882
|
|
|
14880
14883
|
// ../connector-core/dist/tool-specs.js
|
|
14881
|
-
import { isConcreteChannel as isConcreteChannel3, channelInAllow as channelInAllow3, AmbiguousPeerError, peerLabel as peerLabel4, assertLifecycleToken as assertLifecycleToken3, isPermissionDenied as isPermissionDenied2, renderLifecycleBlocked as renderLifecycleBlocked2, EpEnvelopeError as
|
|
14884
|
+
import { isConcreteChannel as isConcreteChannel3, channelInAllow as channelInAllow3, AmbiguousPeerError, peerLabel as peerLabel4, assertLifecycleToken as assertLifecycleToken3, isPermissionDenied as isPermissionDenied2, renderLifecycleBlocked as renderLifecycleBlocked2, EpEnvelopeError as EpEnvelopeError3, LANG_PROBLEM_DETAIL_KIND, formatAge, presenceAges } from "@cotal-ai/core";
|
|
14882
14885
|
|
|
14883
14886
|
// ../connector-core/dist/orientation.js
|
|
14884
14887
|
import { peerLabel as peerLabel3 } from "@cotal-ai/core";
|
|
@@ -15855,7 +15858,7 @@ var jcodeConnector = {
|
|
|
15855
15858
|
if (opts.acceptedToken) env.COTAL_ACCEPTED_TOKEN = opts.acceptedToken;
|
|
15856
15859
|
const tui = process.env.COTAL_JCODE_TUI?.trim();
|
|
15857
15860
|
if (tui) env.COTAL_JCODE_TUI = tui;
|
|
15858
|
-
if (opts
|
|
15861
|
+
if (launchArmsEvents(opts)) {
|
|
15859
15862
|
if (!opts.workspaceRoot)
|
|
15860
15863
|
throw new Error("jcode connector: events require a workspace root for durable AG-UI state");
|
|
15861
15864
|
env.COTAL_EVENTS = "1";
|