@cotal-ai/connector-hermes 0.68.0 → 0.69.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 +9 -7
- package/dist/launch.js +181 -133
- package/package.json +3 -3
- package/plugin/cotal/_sidecar/standalone.cjs +185 -137
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ 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
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";
|
|
@@ -155,14 +155,11 @@ function materialEnv(opts) {
|
|
|
155
155
|
// ../connector-core/dist/agui.js
|
|
156
156
|
import { AGUI_FRAME_KIND, AGUI_EVENT_TYPE, isAguiFramePart } from "@cotal-ai/core";
|
|
157
157
|
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
158
|
var TRUNCATABLE_FIELDS = [
|
|
160
159
|
{ type: AGUI_EVENT_TYPE2.TOOL_CALL_ARGS, field: "delta" },
|
|
161
160
|
{ type: AGUI_EVENT_TYPE2.TOOL_CALL_RESULT, field: "content" },
|
|
162
161
|
{ type: AGUI_EVENT_TYPE2.TEXT_MESSAGE_CONTENT, field: "delta" }
|
|
163
162
|
];
|
|
164
|
-
var SIZING_ID = "S".repeat(64);
|
|
165
|
-
var SIZING_EXPECTATION = Number.MAX_SAFE_INTEGER;
|
|
166
163
|
var EGRESS_FORBIDDEN_TYPES = /* @__PURE__ */ new Set([
|
|
167
164
|
AGUI_EVENT_TYPE2.TOOL_CALL_ARGS,
|
|
168
165
|
AGUI_EVENT_TYPE2.TOOL_CALL_RESULT
|
|
@@ -185,6 +182,11 @@ var KNOWN_EVENT_KEYS_BY_TYPE = /* @__PURE__ */ new Map([
|
|
|
185
182
|
[AGUI_EVENT_TYPE2.CUSTOM, /* @__PURE__ */ new Set(["type", "timestamp", "rawEvent", "name", "value", "cotal"])]
|
|
186
183
|
]);
|
|
187
184
|
|
|
185
|
+
// ../connector-core/dist/agui-emitter.js
|
|
186
|
+
import { isAguiFramePart as isAguiFramePart3, isCasLoss, principalKey as principalKey2 } from "@cotal-ai/core";
|
|
187
|
+
var SIZING_ID = "S".repeat(64);
|
|
188
|
+
var SIZING_EXPECTATION = Number.MAX_SAFE_INTEGER;
|
|
189
|
+
|
|
188
190
|
// ../connector-core/dist/event-wal.js
|
|
189
191
|
import { assertIdToken } from "@cotal-ai/core";
|
|
190
192
|
|
|
@@ -192,7 +194,7 @@ import { assertIdToken } from "@cotal-ai/core";
|
|
|
192
194
|
import { ensureDirNoSymlink } from "@cotal-ai/core";
|
|
193
195
|
|
|
194
196
|
// ../connector-core/dist/agui-render.js
|
|
195
|
-
import { AGUI_EVENT_TYPE as AGUI_EVENT_TYPE3, AGUI_FRAME_KIND as AGUI_FRAME_KIND3, isAguiFramePart as
|
|
197
|
+
import { AGUI_EVENT_TYPE as AGUI_EVENT_TYPE3, AGUI_FRAME_KIND as AGUI_FRAME_KIND3, isAguiFramePart as isAguiFramePart4, registry } from "@cotal-ai/core";
|
|
196
198
|
var str = (v) => typeof v === "string" ? v : void 0;
|
|
197
199
|
var CONT = " \xB7 ";
|
|
198
200
|
var TEXT_PREFIX = "\xBB ";
|
|
@@ -299,7 +301,7 @@ var aguiFramePartRenderer = Object.freeze({
|
|
|
299
301
|
kind: "part-renderer",
|
|
300
302
|
name: AGUI_FRAME_KIND3,
|
|
301
303
|
render(part) {
|
|
302
|
-
if (!
|
|
304
|
+
if (!isAguiFramePart4(part))
|
|
303
305
|
return `[not an AG-UI frame]`;
|
|
304
306
|
const events = part.events;
|
|
305
307
|
if (!Array.isArray(events) || events.length === 0)
|
|
@@ -14830,7 +14832,7 @@ function date4(params) {
|
|
|
14830
14832
|
config(en_default());
|
|
14831
14833
|
|
|
14832
14834
|
// ../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";
|
|
14835
|
+
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";
|
|
14834
14836
|
|
|
14835
14837
|
// ../connector-core/dist/docs.js
|
|
14836
14838
|
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(" "));
|