@cotal-ai/connector-hermes 0.68.0 → 0.70.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 +16 -8
- package/dist/launch.js +3390 -3301
- package/package.json +3 -3
- package/plugin/cotal/_sidecar/standalone.cjs +3393 -3304
package/dist/index.js
CHANGED
|
@@ -11,10 +11,13 @@ import { fileURLToPath } from "node:url";
|
|
|
11
11
|
import { registry as registry3 } from "@cotal-ai/core";
|
|
12
12
|
|
|
13
13
|
// ../connector-core/dist/config.js
|
|
14
|
-
import { DEFAULT_SERVER, DEV_OWNER, LAUNCH_MATERIAL_ENV, discardLaunchMaterial, assertLifecycleToken, assertValidChannel, channelInAllow, credsClaims, eventChannel, idFromCreds, isConcreteChannel, loadAgentFile, parseJoinLink, readLaunchMaterial } from "@cotal-ai/core";
|
|
14
|
+
import { DEFAULT_SERVER, DEV_OWNER, LAUNCH_MATERIAL_ENV, discardLaunchMaterial, assertLifecycleToken, assertValidChannel, channelInAllow, credsClaims, eventChannel, idFromCreds, isConcreteChannel, loadAgentFile, parseJoinLink, readLaunchMaterial, resolveReadAcl } from "@cotal-ai/core";
|
|
15
15
|
|
|
16
16
|
// ../connector-core/dist/agent.js
|
|
17
|
-
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, bearerCommandFailure, partsToText, routeToken } from "@cotal-ai/core";
|
|
17
|
+
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, bearerCommandFailure, partsToText, routeToken } from "@cotal-ai/core";
|
|
18
|
+
|
|
19
|
+
// ../connector-core/dist/framing.js
|
|
20
|
+
import { peerLabel } from "@cotal-ai/core";
|
|
18
21
|
|
|
19
22
|
// ../connector-core/dist/manager-call.js
|
|
20
23
|
import { BASELINE_LIFECYCLE_ENDPOINT, assertLifecycleToken as assertLifecycleToken2, dialerFor, invokeCommand, isPermissionDenied, issuedUserCaller, replyRefusedBeforeEffect, resolveService, standaloneConnectOpts } from "@cotal-ai/core";
|
|
@@ -155,14 +158,11 @@ function materialEnv(opts) {
|
|
|
155
158
|
// ../connector-core/dist/agui.js
|
|
156
159
|
import { AGUI_FRAME_KIND, AGUI_EVENT_TYPE, isAguiFramePart } from "@cotal-ai/core";
|
|
157
160
|
import { AGUI_FRAME_KIND as AGUI_FRAME_KIND2, AGUI_EVENT_TYPE as AGUI_EVENT_TYPE2, isAguiFramePart as isAguiFramePart2 } from "@cotal-ai/core";
|
|
158
|
-
import { isCasLoss, principalKey as principalKey2 } from "@cotal-ai/core";
|
|
159
161
|
var TRUNCATABLE_FIELDS = [
|
|
160
162
|
{ type: AGUI_EVENT_TYPE2.TOOL_CALL_ARGS, field: "delta" },
|
|
161
163
|
{ type: AGUI_EVENT_TYPE2.TOOL_CALL_RESULT, field: "content" },
|
|
162
164
|
{ type: AGUI_EVENT_TYPE2.TEXT_MESSAGE_CONTENT, field: "delta" }
|
|
163
165
|
];
|
|
164
|
-
var SIZING_ID = "S".repeat(64);
|
|
165
|
-
var SIZING_EXPECTATION = Number.MAX_SAFE_INTEGER;
|
|
166
166
|
var EGRESS_FORBIDDEN_TYPES = /* @__PURE__ */ new Set([
|
|
167
167
|
AGUI_EVENT_TYPE2.TOOL_CALL_ARGS,
|
|
168
168
|
AGUI_EVENT_TYPE2.TOOL_CALL_RESULT
|
|
@@ -185,6 +185,11 @@ var KNOWN_EVENT_KEYS_BY_TYPE = /* @__PURE__ */ new Map([
|
|
|
185
185
|
[AGUI_EVENT_TYPE2.CUSTOM, /* @__PURE__ */ new Set(["type", "timestamp", "rawEvent", "name", "value", "cotal"])]
|
|
186
186
|
]);
|
|
187
187
|
|
|
188
|
+
// ../connector-core/dist/agui-emitter.js
|
|
189
|
+
import { isAguiFramePart as isAguiFramePart3, isCasLoss, principalKey as principalKey2 } from "@cotal-ai/core";
|
|
190
|
+
var SIZING_ID = "S".repeat(64);
|
|
191
|
+
var SIZING_EXPECTATION = Number.MAX_SAFE_INTEGER;
|
|
192
|
+
|
|
188
193
|
// ../connector-core/dist/event-wal.js
|
|
189
194
|
import { assertIdToken } from "@cotal-ai/core";
|
|
190
195
|
|
|
@@ -192,7 +197,7 @@ import { assertIdToken } from "@cotal-ai/core";
|
|
|
192
197
|
import { ensureDirNoSymlink } from "@cotal-ai/core";
|
|
193
198
|
|
|
194
199
|
// ../connector-core/dist/agui-render.js
|
|
195
|
-
import { AGUI_EVENT_TYPE as AGUI_EVENT_TYPE3, AGUI_FRAME_KIND as AGUI_FRAME_KIND3, isAguiFramePart as
|
|
200
|
+
import { AGUI_EVENT_TYPE as AGUI_EVENT_TYPE3, AGUI_FRAME_KIND as AGUI_FRAME_KIND3, isAguiFramePart as isAguiFramePart4, registry } from "@cotal-ai/core";
|
|
196
201
|
var str = (v) => typeof v === "string" ? v : void 0;
|
|
197
202
|
var CONT = " \xB7 ";
|
|
198
203
|
var TEXT_PREFIX = "\xBB ";
|
|
@@ -299,7 +304,7 @@ var aguiFramePartRenderer = Object.freeze({
|
|
|
299
304
|
kind: "part-renderer",
|
|
300
305
|
name: AGUI_FRAME_KIND3,
|
|
301
306
|
render(part) {
|
|
302
|
-
if (!
|
|
307
|
+
if (!isAguiFramePart4(part))
|
|
303
308
|
return `[not an AG-UI frame]`;
|
|
304
309
|
const events = part.events;
|
|
305
310
|
if (!Array.isArray(events) || events.length === 0)
|
|
@@ -14830,7 +14835,10 @@ function date4(params) {
|
|
|
14830
14835
|
config(en_default());
|
|
14831
14836
|
|
|
14832
14837
|
// ../connector-core/dist/tool-specs.js
|
|
14833
|
-
import { isConcreteChannel as isConcreteChannel3, channelInAllow as channelInAllow3, AmbiguousPeerError, assertLifecycleToken as assertLifecycleToken4, isPermissionDenied as isPermissionDenied2, renderLifecycleBlocked as renderLifecycleBlocked2, LANG_PROBLEM_DETAIL_KIND } from "@cotal-ai/core";
|
|
14838
|
+
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";
|
|
14839
|
+
|
|
14840
|
+
// ../connector-core/dist/orientation.js
|
|
14841
|
+
import { peerLabel as peerLabel3 } from "@cotal-ai/core";
|
|
14834
14842
|
|
|
14835
14843
|
// ../connector-core/dist/docs.js
|
|
14836
14844
|
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(" "));
|