@cotal-ai/connector-hermes 0.92.1 → 0.93.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 +37 -7
- package/dist/launch.js +299 -179
- package/package.json +3 -3
- package/plugin/cotal/_sidecar/standalone.cjs +299 -179
package/dist/index.js
CHANGED
|
@@ -6897,7 +6897,7 @@ import { DEFAULT_SERVER, DEV_OWNER, LAUNCH_MATERIAL_ENV as LAUNCH_MATERIAL_ENV2,
|
|
|
6897
6897
|
import { LAUNCH_MATERIAL_ENV, readLaunchMaterial } from "@cotal-ai/core/launch-material";
|
|
6898
6898
|
|
|
6899
6899
|
// ../connector-core/dist/agent.js
|
|
6900
|
-
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, controlReplyFrom, controlReplyFromThrown, runAgentBearer, partsToText, assertValidRole } from "@cotal-ai/core";
|
|
6900
|
+
import { normalizeMentions, RUN_LAUNCH_DEADLINE_MS, subjectMatches, isConcreteChannel as isConcreteChannel2, assertValidChannel as assertValidChannel2, channelInAllow as channelInAllow2, eventChannelPrincipal, 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, controlReplyFrom, controlReplyFromThrown, runAgentBearer, partsToText, assertValidRole } from "@cotal-ai/core";
|
|
6901
6901
|
|
|
6902
6902
|
// ../connector-core/dist/framing.js
|
|
6903
6903
|
import { peerLabel } from "@cotal-ai/core/peer-label";
|
|
@@ -6915,7 +6915,7 @@ var SUN_PATH_MAX_BYTES = process.platform === "darwin" ? 104 : 108;
|
|
|
6915
6915
|
// ../connector-core/dist/launch.js
|
|
6916
6916
|
import { eventChannel as eventChannel2, LAUNCH_MATERIAL_ENV as LAUNCH_MATERIAL_ENV3, parsePrincipalKey, principalKey, writeLaunchMaterial } from "@cotal-ai/core";
|
|
6917
6917
|
import { dirname } from "node:path";
|
|
6918
|
-
import { EVENT_CHANNEL_PREFIX, eventChannel as eventChannel3, eventChannelPrincipal, isEventChannel } from "@cotal-ai/core";
|
|
6918
|
+
import { EVENT_CHANNEL_PREFIX, eventChannel as eventChannel3, eventChannelPrincipal as eventChannelPrincipal2, isEventChannel } from "@cotal-ai/core";
|
|
6919
6919
|
var OS_ENV_ALLOW = [
|
|
6920
6920
|
"PATH",
|
|
6921
6921
|
"HOME",
|
|
@@ -7214,6 +7214,9 @@ function registerAguiFramePartRenderer() {
|
|
|
7214
7214
|
}
|
|
7215
7215
|
registerAguiFramePartRenderer();
|
|
7216
7216
|
|
|
7217
|
+
// ../connector-core/dist/control.js
|
|
7218
|
+
var MAX_FRAME_BYTES = 1 << 20;
|
|
7219
|
+
|
|
7217
7220
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
7218
7221
|
var external_exports = {};
|
|
7219
7222
|
__export(external_exports, {
|
|
@@ -23474,15 +23477,42 @@ if (typeof global.crypto === "undefined") {
|
|
|
23474
23477
|
var MAX_DRAIN_BYTES = 64 * 1024 * 1024;
|
|
23475
23478
|
|
|
23476
23479
|
// ../connector-core/dist/gateway.js
|
|
23477
|
-
import { assertValidName } from "@cotal-ai/core";
|
|
23480
|
+
import { assertValidName, conversationSelection, SELECTION_MAX_ITEMS } from "@cotal-ai/core";
|
|
23481
|
+
var GATEWAY_TOOLS = /* @__PURE__ */ new Set([
|
|
23482
|
+
"cotal_orientation",
|
|
23483
|
+
"cotal_connection_status",
|
|
23484
|
+
"cotal_roster",
|
|
23485
|
+
"cotal_docs",
|
|
23486
|
+
"cotal_inbox",
|
|
23487
|
+
"cotal_send",
|
|
23488
|
+
"cotal_dm",
|
|
23489
|
+
"cotal_anycast",
|
|
23490
|
+
"cotal_status",
|
|
23491
|
+
"cotal_channel_info",
|
|
23492
|
+
"cotal_channels",
|
|
23493
|
+
"cotal_channel_mode",
|
|
23494
|
+
"cotal_join",
|
|
23495
|
+
"cotal_leave"
|
|
23496
|
+
]);
|
|
23497
|
+
var NATIVE_GATEWAY_TOOLS = /* @__PURE__ */ new Set([
|
|
23498
|
+
...GATEWAY_TOOLS,
|
|
23499
|
+
"cotal_spawn",
|
|
23500
|
+
"cotal_persona",
|
|
23501
|
+
"cotal_personas",
|
|
23502
|
+
"cotal_despawn",
|
|
23503
|
+
"cotal_run",
|
|
23504
|
+
"cotal_reconnect"
|
|
23505
|
+
]);
|
|
23506
|
+
var SELECTION_SHAPE = {
|
|
23507
|
+
channels: external_exports.array(external_exports.strictObject({ channel: external_exports.string().min(1), access: external_exports.enum(["read", "read-post"]) })).max(SELECTION_MAX_ITEMS).optional().describe("Channels this connection may join and read, or read and post to. No wildcards."),
|
|
23508
|
+
role: external_exports.string().min(1).optional().describe("A role to hold, so role requests (cotal_anycast) reach this connection."),
|
|
23509
|
+
capabilities: external_exports.array(external_exports.enum(["spawn", "run"])).optional().describe("spawn: start and stop agents through a manager. run: start and manage workflow runs.")
|
|
23510
|
+
};
|
|
23478
23511
|
var CONNECTION_ID = external_exports.string().min(1).describe("The connection_id cotal_connect returned in THIS conversation. Never reuse another conversation's.");
|
|
23479
23512
|
var GATEWAY_LISTENING = "Messages reach you only when you call a tool: to listen, call cotal_wait, which returns as soon as a message arrives. When the person asks you to stay on Cotal or keep listening, call cotal_wait again each time it returns and handle each message as it arrives, until they ask you to stop.";
|
|
23480
|
-
var GATEWAY_CONNECTING = "Cotal connects this conversation to the person's Cotal space. Call cotal_connect
|
|
23513
|
+
var GATEWAY_CONNECTING = "Cotal connects this conversation to the person's Cotal space after they approve its permissions. Call cotal_connect with a short name. If approval is pending, show the person its link and wait for their decision; do not approve for them or poll. Then resume the same request as directed. Only a successful connection returns connection_id, required on every other cotal tool call. Each conversation needs its own connection. Never reuse another conversation's connection_id or approval_id.";
|
|
23481
23514
|
var GATEWAY_INSTRUCTIONS = `${GATEWAY_CONNECTING} ${GATEWAY_LISTENING}`;
|
|
23482
23515
|
|
|
23483
|
-
// ../connector-core/dist/control.js
|
|
23484
|
-
var MAX_FRAME_BYTES = 1 << 20;
|
|
23485
|
-
|
|
23486
23516
|
// src/seat-home.ts
|
|
23487
23517
|
import { createHash } from "node:crypto";
|
|
23488
23518
|
import { tmpdir } from "node:os";
|