@cotal-ai/connector-jcode 0.69.0 → 0.70.1
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 +2127 -2117
- package/dist/index.js +14 -5
- package/dist/mcp.js +317 -293
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -30,10 +30,16 @@ function userJcodeHome() {
|
|
|
30
30
|
import { registry as registry3 } from "@cotal-ai/core";
|
|
31
31
|
|
|
32
32
|
// ../connector-core/dist/config.js
|
|
33
|
-
import { DEFAULT_SERVER, DEV_OWNER, LAUNCH_MATERIAL_ENV, discardLaunchMaterial, assertLifecycleToken, assertValidChannel, channelInAllow, credsClaims, eventChannel, idFromCreds, isConcreteChannel, loadAgentFile, parseJoinLink,
|
|
33
|
+
import { DEFAULT_SERVER, DEV_OWNER, LAUNCH_MATERIAL_ENV as LAUNCH_MATERIAL_ENV2, discardLaunchMaterial, assertLifecycleToken, assertValidChannel, channelInAllow, credsClaims, eventChannel, idFromCreds, isConcreteChannel, loadAgentFile, parseJoinLink, resolveReadAcl } from "@cotal-ai/core";
|
|
34
|
+
|
|
35
|
+
// ../connector-core/dist/session-env.js
|
|
36
|
+
import { LAUNCH_MATERIAL_ENV, readLaunchMaterial } from "@cotal-ai/core/launch-material";
|
|
34
37
|
|
|
35
38
|
// ../connector-core/dist/agent.js
|
|
36
|
-
import { normalizeMentions, RUN_LAUNCH_DEADLINE_MS, subjectMatches, isConcreteChannel as isConcreteChannel2, assertValidChannel as assertValidChannel2, channelInAllow as channelInAllow2, resolvePeer as resolvePeerInRoster, CotalEndpoint, BASELINE_LIFECYCLE_ENDPOINT as BASELINE_LIFECYCLE_ENDPOINT2, BIND_SPLIT_REISSUES, assertLifecycleToken as assertLifecycleToken3, EpEnvelopeError, isPublishPermissionDenied, unansweredRequest, renderLifecycleBlocked,
|
|
39
|
+
import { normalizeMentions, RUN_LAUNCH_DEADLINE_MS, subjectMatches, isConcreteChannel as isConcreteChannel2, assertValidChannel as assertValidChannel2, channelInAllow as channelInAllow2, resolvePeer as resolvePeerInRoster, peerLabel as peerLabel2, CotalEndpoint, BASELINE_LIFECYCLE_ENDPOINT as BASELINE_LIFECYCLE_ENDPOINT2, BIND_SPLIT_REISSUES, assertLifecycleToken as assertLifecycleToken3, EpEnvelopeError, isPublishPermissionDenied, unansweredRequest, renderLifecycleBlocked, controlReplyFrom, runAgentBearer, partsToText, routeToken } from "@cotal-ai/core";
|
|
40
|
+
|
|
41
|
+
// ../connector-core/dist/framing.js
|
|
42
|
+
import { peerLabel } from "@cotal-ai/core";
|
|
37
43
|
|
|
38
44
|
// ../connector-core/dist/manager-call.js
|
|
39
45
|
import { BASELINE_LIFECYCLE_ENDPOINT, assertLifecycleToken as assertLifecycleToken2, dialerFor, invokeCommand, isPermissionDenied, issuedUserCaller, replyRefusedBeforeEffect, resolveService, standaloneConnectOpts } from "@cotal-ai/core";
|
|
@@ -55,7 +61,7 @@ function controlEndpoint(space, name, token = randomBytes(32).toString("base64ur
|
|
|
55
61
|
}
|
|
56
62
|
|
|
57
63
|
// ../connector-core/dist/launch.js
|
|
58
|
-
import { eventChannel as eventChannel2, LAUNCH_MATERIAL_ENV as
|
|
64
|
+
import { eventChannel as eventChannel2, LAUNCH_MATERIAL_ENV as LAUNCH_MATERIAL_ENV3, parsePrincipalKey, principalKey, writeLaunchMaterial } from "@cotal-ai/core";
|
|
59
65
|
import { EVENT_CHANNEL_PREFIX, eventChannel as eventChannel3, eventChannelPrincipal, isEventChannel } from "@cotal-ai/core";
|
|
60
66
|
var OS_ENV_ALLOW = [
|
|
61
67
|
"PATH",
|
|
@@ -184,7 +190,7 @@ function materialEnv(opts) {
|
|
|
184
190
|
material.userAuth = opts.userAuth;
|
|
185
191
|
if (Object.keys(material).length === 0)
|
|
186
192
|
return {};
|
|
187
|
-
return { [
|
|
193
|
+
return { [LAUNCH_MATERIAL_ENV3]: writeLaunchMaterial(material) };
|
|
188
194
|
}
|
|
189
195
|
|
|
190
196
|
// ../connector-core/dist/agui.js
|
|
@@ -14867,7 +14873,10 @@ function date4(params) {
|
|
|
14867
14873
|
config(en_default());
|
|
14868
14874
|
|
|
14869
14875
|
// ../connector-core/dist/tool-specs.js
|
|
14870
|
-
import { isConcreteChannel as isConcreteChannel3, channelInAllow as channelInAllow3, AmbiguousPeerError, assertLifecycleToken as assertLifecycleToken4, isPermissionDenied as isPermissionDenied2, renderLifecycleBlocked as renderLifecycleBlocked2, LANG_PROBLEM_DETAIL_KIND, formatAge, presenceAges } from "@cotal-ai/core";
|
|
14876
|
+
import { isConcreteChannel as isConcreteChannel3, channelInAllow as channelInAllow3, AmbiguousPeerError, peerLabel as peerLabel4, assertLifecycleToken as assertLifecycleToken4, isPermissionDenied as isPermissionDenied2, renderLifecycleBlocked as renderLifecycleBlocked2, LANG_PROBLEM_DETAIL_KIND, formatAge, presenceAges } from "@cotal-ai/core";
|
|
14877
|
+
|
|
14878
|
+
// ../connector-core/dist/orientation.js
|
|
14879
|
+
import { peerLabel as peerLabel3 } from "@cotal-ai/core";
|
|
14871
14880
|
|
|
14872
14881
|
// ../connector-core/dist/docs.js
|
|
14873
14882
|
var STOP = new Set("a an and are as at be by do for from has how in is it of on or that the this to use using was what when where which who with you your".split(" "));
|