@agentvault/claude-bridge 0.8.44 → 0.8.46
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/README.md +2 -2
- package/dist/cli-hint.d.ts +3 -12
- package/dist/index.js +427 -121
- package/dist/service/doctor-cli.d.ts.map +1 -1
- package/dist/service/subcommand.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ room automatically.
|
|
|
10
10
|
### Recommended — env var form (safe, not visible via `ps`)
|
|
11
11
|
|
|
12
12
|
```sh
|
|
13
|
-
AV_AGENT_NAME
|
|
13
|
+
AV_AGENT_NAME='<agent-name>' AV_INVITE_TOKEN=av_tok_… npx @agentvault/claude-bridge
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
Because the token is in the environment rather than in the process argument
|
|
@@ -20,7 +20,7 @@ Prefer this form, especially on shared machines.
|
|
|
20
20
|
### Convenience — positional arg form
|
|
21
21
|
|
|
22
22
|
```sh
|
|
23
|
-
AV_AGENT_NAME
|
|
23
|
+
AV_AGENT_NAME='<agent-name>' npx @agentvault/claude-bridge av_tok_…
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
> **Security caveat:** the token is visible to other local users via `ps` and
|
package/dist/cli-hint.d.ts
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A runnable command line for one of this bridge's own subcommands.
|
|
3
|
-
*
|
|
4
|
-
* The bridge used to print `av-bridge trust-host` and friends — there is no
|
|
5
|
-
* `av-bridge` binary. The installed one is `agentvault-claude-bridge`, and every
|
|
6
|
-
* subcommand needs AV_AGENT_NAME to resolve the agent's data dir (#921), so a
|
|
7
|
-
* hint without it fails even with the right binary name.
|
|
8
|
-
*
|
|
9
|
-
* Leaf module (no bridge imports) so bridge.ts and approve-cli.ts can share it.
|
|
10
|
-
*/
|
|
11
1
|
export declare const BRIDGE_BINARY = "agentvault-claude-bridge";
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
2
|
+
/** One shell word that no shell runs or expands, whatever `value` holds: the
|
|
3
|
+
* plugin's `shellWord`, the same rule as the web's (#1871/#1874). A control or
|
|
4
|
+
* invisible character is escaped too, so a pasted hint never carries one raw. */
|
|
14
5
|
export declare function shellQuote(value: string): string;
|
|
15
6
|
export declare function isHintSafeId(value: unknown): value is string;
|
|
16
7
|
export declare function bridgeCommand(subcommand: string, agentName: string | undefined): string;
|
package/dist/index.js
CHANGED
|
@@ -13074,11 +13074,11 @@ async function joinWithFirstMatchingKp(welcomeBytes, candidates) {
|
|
|
13074
13074
|
return null;
|
|
13075
13075
|
}
|
|
13076
13076
|
function ownIdentity() {
|
|
13077
|
-
const v22 = true ? "0.23.
|
|
13077
|
+
const v22 = true ? "0.23.75" : FALLBACK;
|
|
13078
13078
|
return `${PACKAGE}@${v22}`;
|
|
13079
13079
|
}
|
|
13080
13080
|
function buildSha() {
|
|
13081
|
-
const raw = true ? "
|
|
13081
|
+
const raw = true ? "c389222" : "";
|
|
13082
13082
|
const cleaned = (raw ?? "").trim();
|
|
13083
13083
|
return !cleaned || cleaned === "unknown" ? null : cleaned;
|
|
13084
13084
|
}
|
|
@@ -13342,6 +13342,21 @@ function FILE_SEND_RULE(tool) {
|
|
|
13342
13342
|
const t22 = clean6(tool, 60) || "send_file";
|
|
13343
13343
|
return `You can send a file only by calling \`${t22}\`. Each conversation has its own staging folder, and the turn tells you which one. Put files for this chat there. In a room, only files in that room's own folder can be shared, and only when your owner asked you in that room. Files over 5 MB, hidden files and credential files cannot be sent. A file has been sent only when \`${t22}\` answers "File sent". Never say a file is attached, sent or shared otherwise. If it returns an error, tell the person the file was not sent and why.`;
|
|
13344
13344
|
}
|
|
13345
|
+
function safeLineName(name) {
|
|
13346
|
+
return neutralizeSystemPrefix(clean6(name, 200)).replace(/[[\]\uff3b\uff3d]/g, "").replace(/agentvault-system \(quoted\):/gi, "AgentVault-system (quoted)");
|
|
13347
|
+
}
|
|
13348
|
+
function renderHistoryFiles(files) {
|
|
13349
|
+
const parts = files.map((f22) => `${safeLineName(f22.filename)} (${sizeLabel(f22.size)})`);
|
|
13350
|
+
const line = parts.length === 1 ? `[AgentVault system: you sent the file ${parts[0]}]` : `[AgentVault system: you sent the files ${parts.join(", ")}]`;
|
|
13351
|
+
RENDERED_LINES.delete(line);
|
|
13352
|
+
RENDERED_LINES.add(line);
|
|
13353
|
+
while (RENDERED_LINES.size > RENDERED_MAX) {
|
|
13354
|
+
const oldest = RENDERED_LINES.values().next().value;
|
|
13355
|
+
if (oldest === void 0) break;
|
|
13356
|
+
RENDERED_LINES.delete(oldest);
|
|
13357
|
+
}
|
|
13358
|
+
return line;
|
|
13359
|
+
}
|
|
13345
13360
|
function normalizeForMatch(text) {
|
|
13346
13361
|
return text.normalize("NFKC").replace(new RegExp("\\p{Cf}", "gu"), "").replace(/\s+/g, " ").toLowerCase();
|
|
13347
13362
|
}
|
|
@@ -13969,6 +13984,12 @@ function decisionReplyFromEnvelope(parsed) {
|
|
|
13969
13984
|
if (typeof d22.reason === "string") reply.reason = d22.reason;
|
|
13970
13985
|
return reply;
|
|
13971
13986
|
}
|
|
13987
|
+
function replaceInvisible(value, replacement) {
|
|
13988
|
+
return value.replace(DEFAULT_IGNORABLE, (ch2) => KEPT_IGNORABLE.has(ch2.codePointAt(0)) ? ch2 : replacement).replace(OBJECT_REPLACEMENT, replacement).replace(CONTROL, (ch2) => KEPT_CONTROL.has(ch2.codePointAt(0)) ? ch2 : replacement);
|
|
13989
|
+
}
|
|
13990
|
+
function drawsNothing(value) {
|
|
13991
|
+
return value.replace(INVISIBLE2, "").split(BRAILLE_BLANK).join("").length === 0;
|
|
13992
|
+
}
|
|
13972
13993
|
function isUuid(v22) {
|
|
13973
13994
|
return typeof v22 === "string" && UUID_RE3.test(v22);
|
|
13974
13995
|
}
|
|
@@ -14107,8 +14128,8 @@ function drOwnerClaimNotice(label) {
|
|
|
14107
14128
|
}
|
|
14108
14129
|
function sanitizeDeviceLabel(name) {
|
|
14109
14130
|
if (typeof name !== "string") return null;
|
|
14110
|
-
const clean8 = name
|
|
14111
|
-
if (clean8 === "") return null;
|
|
14131
|
+
const clean8 = replaceInvisible(name, " ").replace(/\s+/g, " ").trim();
|
|
14132
|
+
if (clean8 === "" || drawsNothing(clean8)) return null;
|
|
14112
14133
|
const points = Array.from(clean8);
|
|
14113
14134
|
return points.length > 64 ? `${points.slice(0, 63).join("")}\u2026` : clean8;
|
|
14114
14135
|
}
|
|
@@ -15495,6 +15516,60 @@ function anySignal(signals) {
|
|
|
15495
15516
|
}
|
|
15496
15517
|
return c22.signal;
|
|
15497
15518
|
}
|
|
15519
|
+
function textCutEnd(value, budget) {
|
|
15520
|
+
const Segmenter = Intl.Segmenter;
|
|
15521
|
+
if (typeof Segmenter === "function") {
|
|
15522
|
+
const segmenter = new Segmenter(
|
|
15523
|
+
void 0,
|
|
15524
|
+
{ granularity: "grapheme" }
|
|
15525
|
+
);
|
|
15526
|
+
let end2 = 0;
|
|
15527
|
+
for (const { segment, index } of segmenter.segment(value.slice(0, budget + 64))) {
|
|
15528
|
+
if (index + segment.length > budget) break;
|
|
15529
|
+
end2 = index + segment.length;
|
|
15530
|
+
}
|
|
15531
|
+
return end2;
|
|
15532
|
+
}
|
|
15533
|
+
let end = budget;
|
|
15534
|
+
const last = value.charCodeAt(end - 1);
|
|
15535
|
+
if (last >= 55296 && last <= 56319) end -= 1;
|
|
15536
|
+
for (; ; ) {
|
|
15537
|
+
const before = end;
|
|
15538
|
+
while (end > 0 && value.charCodeAt(end - 1) === 8205) end -= 1;
|
|
15539
|
+
let regional = 0;
|
|
15540
|
+
for (let i2 = end; i2 >= 2; i2 -= 2) {
|
|
15541
|
+
const c22 = value.codePointAt(i2 - 2);
|
|
15542
|
+
if (c22 < 127462 || c22 > 127487) break;
|
|
15543
|
+
regional++;
|
|
15544
|
+
}
|
|
15545
|
+
if (regional % 2 === 1) end -= 2;
|
|
15546
|
+
if (end === before) return end;
|
|
15547
|
+
}
|
|
15548
|
+
}
|
|
15549
|
+
function capTextPart(value, max) {
|
|
15550
|
+
if (value.length <= max) return value;
|
|
15551
|
+
return `${value.slice(0, textCutEnd(value, max - 1))}\u2026`;
|
|
15552
|
+
}
|
|
15553
|
+
function statusAlertTextLine(alert) {
|
|
15554
|
+
const severity = STATUS_ALERT_SEVERITIES.has(alert.severity) ? String(alert.severity) : "info";
|
|
15555
|
+
const title = capTextPart(String(alert.title), STATUS_ALERT_TEXT_LIMITS.title);
|
|
15556
|
+
const message = capTextPart(String(alert.message), STATUS_ALERT_TEXT_LIMITS.message);
|
|
15557
|
+
return `[${severity.toUpperCase()}] ${title}: ${message}`;
|
|
15558
|
+
}
|
|
15559
|
+
function statusAlertEnvelope(alert, timestamp) {
|
|
15560
|
+
const envelope = {
|
|
15561
|
+
type: "status_alert",
|
|
15562
|
+
title: alert.title,
|
|
15563
|
+
message: alert.message,
|
|
15564
|
+
severity: alert.severity,
|
|
15565
|
+
timestamp
|
|
15566
|
+
};
|
|
15567
|
+
if (alert.detail !== void 0) envelope.detail = alert.detail;
|
|
15568
|
+
if (alert.detailFormat !== void 0) envelope.detail_format = alert.detailFormat;
|
|
15569
|
+
if (alert.category !== void 0) envelope.category = alert.category;
|
|
15570
|
+
envelope.text = statusAlertTextLine(alert);
|
|
15571
|
+
return envelope;
|
|
15572
|
+
}
|
|
15498
15573
|
function outboundDedupeKey(resolved, content, options) {
|
|
15499
15574
|
if (!OUTBOUND_DEDUPE_TYPES.has(content.type)) return null;
|
|
15500
15575
|
const base = [resolved.kind, resolved.id ?? "owner", options?.conversationId ?? "", options?.topicId ?? ""];
|
|
@@ -15968,12 +16043,15 @@ function dmSenderIdentity(metadata) {
|
|
|
15968
16043
|
async function _handleInbound(params) {
|
|
15969
16044
|
const { plaintext, metadata, channel, account, cfg, fileTurn } = params;
|
|
15970
16045
|
const core = _ocRuntime;
|
|
15971
|
-
if (metadata.roomId
|
|
15972
|
-
const ownDisplayName = channel.ownDisplayName ?? "";
|
|
16046
|
+
if (metadata.roomId) {
|
|
15973
16047
|
const agentName = account.agentName ?? "";
|
|
15974
|
-
const
|
|
15975
|
-
|
|
15976
|
-
|
|
16048
|
+
const roomSelfName = _roomSelfName(channel, metadata.roomId);
|
|
16049
|
+
const ownDisplayName = channel.ownDisplayName ?? "";
|
|
16050
|
+
const selfResolved = !!ownDisplayName || !!roomSelfName && roomSelfName !== agentName || !!agentName && agentName.toLowerCase() !== "default";
|
|
16051
|
+
const gateText = metadata.caption ?? plaintext;
|
|
16052
|
+
const gateSenderIsAgent = metadata.senderBinding === "bound" ? metadata.senderIsAgent : true;
|
|
16053
|
+
if (!owesRoomReply(gateText, agentName, account.accountId ?? "", gateSenderIsAgent, roomSelfName || agentName, ownDisplayName, selfResolved, metadata.roomAudience, metadata.senderBinding)) {
|
|
16054
|
+
console.log(`[AgentVault] room message read, not answered \u2014 no @mention for this agent (#1107/#1859) room=${String(metadata.roomId).slice(0, 8)}`);
|
|
15977
16055
|
return;
|
|
15978
16056
|
}
|
|
15979
16057
|
}
|
|
@@ -16002,9 +16080,16 @@ async function _handleInbound(params) {
|
|
|
16002
16080
|
replyHost = { ...limitRoots !== void 0 ? { limitRoots } : {}, ...sandboxed ? { sandboxed: true } : {} };
|
|
16003
16081
|
}
|
|
16004
16082
|
noteTurnSandbox(fileTurn?.token, replyHost.sandboxed === true);
|
|
16005
|
-
const
|
|
16083
|
+
const currentBody = neutralizeForeignLine(plaintext);
|
|
16084
|
+
const roomHistory = metadata.roomId ? _roomHistoryBlock(channel, metadata.roomId) : "";
|
|
16085
|
+
const contextBody = roomHistory ? `[Recent room conversation]
|
|
16086
|
+
${roomHistory}
|
|
16087
|
+
|
|
16088
|
+
[Current message]
|
|
16089
|
+
${currentBody}` : currentBody;
|
|
16090
|
+
const modelBody = fileSendOn ? `${contextBody}
|
|
16006
16091
|
|
|
16007
|
-
${openclawFileLines(channel, fileTarget, { roomsAllowed: false })}` :
|
|
16092
|
+
${openclawFileLines(channel, fileTarget, { roomsAllowed: false })}` : contextBody;
|
|
16008
16093
|
const body = core.channel.reply.formatAgentEnvelope({
|
|
16009
16094
|
channel: "AgentVault",
|
|
16010
16095
|
from: identity.name,
|
|
@@ -16086,6 +16171,27 @@ ${openclawFileLines(channel, fileTarget, { roomsAllowed: false })}` : neutralize
|
|
|
16086
16171
|
const result = await trackedRun;
|
|
16087
16172
|
await _legacyTurnRuns.afterDispatch(channel, runKey, fileTurn, result, trackedRun);
|
|
16088
16173
|
}
|
|
16174
|
+
function _roomSelfName(channel, roomId) {
|
|
16175
|
+
try {
|
|
16176
|
+
const room = channel.getRooms().find((r22) => r22.roomId === roomId);
|
|
16177
|
+
const self2 = room?.members?.find((m22) => m22.deviceId === channel.deviceId);
|
|
16178
|
+
return typeof self2?.displayName === "string" ? self2.displayName : "";
|
|
16179
|
+
} catch {
|
|
16180
|
+
return "";
|
|
16181
|
+
}
|
|
16182
|
+
}
|
|
16183
|
+
function _roomHistoryBlock(channel, roomId) {
|
|
16184
|
+
const prior = channel.getRoomHistory(roomId, 20).slice(0, -1);
|
|
16185
|
+
return prior.map((h22) => {
|
|
16186
|
+
if (h22.sender === "agent") {
|
|
16187
|
+
const files = Array.isArray(h22.files) && h22.files.length > 0 ? `
|
|
16188
|
+
${renderHistoryFiles(h22.files)}` : "";
|
|
16189
|
+
return `[You]: ${h22.text}${files}`;
|
|
16190
|
+
}
|
|
16191
|
+
const who = h22.sender === "unverified" ? "Unverified sender" : "Room Member";
|
|
16192
|
+
return `[${who}]: ${neutralizeForeignLine(String(h22.text ?? ""))}`;
|
|
16193
|
+
}).join("\n");
|
|
16194
|
+
}
|
|
16089
16195
|
function getErrorMap() {
|
|
16090
16196
|
return overrideErrorMap;
|
|
16091
16197
|
}
|
|
@@ -20608,7 +20714,27 @@ function armSseKeepAlive(intervalMs, onTick) {
|
|
|
20608
20714
|
timer.unref?.();
|
|
20609
20715
|
return timer;
|
|
20610
20716
|
}
|
|
20611
|
-
var __create, __defProp2, __getOwnPropDesc, __getOwnPropNames2, __getProtoOf, __hasOwnProp, __require2, __esm2, __commonJS, __export2, __copyProps, __toESM, OWNER_LIST_MAX_AGE_MS, OWNER_LIST_RETRY_MS, OWNER_LIST_TIMEOUT_MS, OWNER_LIST_FAIL_BACKOFF_MS, OWNER_LIST_FAIL_BACKOFF_MAX_MS, OwnerDeviceList, init_owner_devices, SENTINEL, WRAPPERS, INSTRUCTION, init_abstention, AMBIGUOUS_OWNER_ERROR, init_owner_routing, init_envelope_text, REFUSED_TYPES, init_dr_refusal, init_mls_commit_classify, MENTION_RE, BROADCAST_NAMES, PRIVATE_ROOM_TURN_NOTE, GENERIC_AGENT_NAMES, init_room_protocol, ATTACHMENT_NAME_MAX_BYTES, MAX_EXTENSION_BYTES, MAX_INPUT_CHARS, MAX_FALLBACK_ID_CHARS, INVISIBLE, LOOKALIKE, WS, LEADING, TRAILING, TRAILING_WS, WINDOWS_RESERVED, init_safe_attachment_name, MAX_NUMBERED_ATTEMPTS, init_attachment_write, libsodium_sumo_default, init_libsodium_sumo, r, t, a, _, n, s, m, libsodium_wrappers_default, init_libsodium_wrappers, init_keys, init_x3dh, MAX_SKIP, CHAIN_KEY_SEED, MSG_KEY_SEED, HEADER_KEY_SEED, DoubleRatchet, init_ratchet, init_file_crypto, DOMAIN_DID_DOCUMENT, DOMAIN_TRANSFER_INTENT, DOMAIN_TRANSFER_ACCEPT, BASE58_ALPHABET, init_did, BUILTIN_PATTERNS, WS_CHAR, isWs, isLineEnd, isWordChar, ScanEngine, init_scan_engine, init_merkle, VC_CONTEXT_V2, AV_CREDENTIAL_CONTEXT, AV_VOCAB, VC_V2_RESERVED_TERMS, ReservedClaimNameError, CRYPTOSUITE, BASE58_ALPHABET2, init_vc, init_transport, DEFAULT_PORTS, ORIGIN_HOST, init_telemetry, TelemetryReporter, init_telemetry_reporter, CROCKFORD, ARGON2_OPSLIMIT, ARGON2_MEMLIMIT, SALT_BYTES, NONCE_BYTES, KEY_BYTES, BACKUP_VERSION, MAX_BACKUP_SIZE, init_backup, atitle, aobject, aopts, isLE, swap8IfBE, swap32IfBE, hasHexBuiltin, hexes, oidNist, init_utils, BSIGMA, init_blake, U32_MASK64, _32n, fromNumH, fromNumL, shrSH, shrSL, rotrSH, rotrSL, rotrBH, rotrBL, rotr32H, rotr32L, add3L, add3H, add4L, add4H, add5L, add5H, init_u64, HashMD, SHA256_IV, SHA384_IV, SHA512_IV, init_md, B2B_IV, BBUF, _BLAKE2, _BLAKE2b, blake2b, init_blake2, CROCKFORD2, SALT_BYTES2, NONCE_BYTES2, KEY_BYTES2, TAG_BYTES, ENVELOPE_OVERHEAD, AAD_PREFIX, UUID_RE, UUID_V4_RE, DIGEST_ID_RE, TIMESTAMP_RE, encoder, decoder, HISTORY_MAGIC, HISTORY_ARCHIVE_VERSION, HISTORY_MAX_ENTRIES, HISTORY_MAX_BLOB_BYTES, HISTORY_KDF_OPSLIMIT, HISTORY_KDF_MEMLIMIT, HistoryEntryTooLargeError, init_history_backup, init_approval, encVoid, init_tlsEncoder, uint8Encoder, encodeUint8, decodeUint8, uint16Encoder, encodeUint16, decodeUint16, uint32Encoder, encodeUint32, decodeUint32, uint64Encoder, encodeUint64, decodeUint64, init_number, init_tlsDecoder, init_enumHelpers, defaultProposalTypes, defaultProposalTypeEncoder, encodeDefaultProposalType, decodeDefaultProposalType, init_defaultProposalType, defaultExtensionTypes, defaultExtensionTypeEncoder, encodeDefaultExtensionType, decodeDefaultExtensionType, init_defaultExtensionType, acceptAll, init_incomingMessageAction, MlsError, ValidationError, CodecError, UsageError, DependencyError, CryptoVerificationError, CryptoError, InternalError, init_mlsError, init_byteArray, varLenDataEncoder, decodeVarLenData, init_variableLength, init_constantTimeCompare, extensionTypeEncoder, encodeExtensionType, decodeExtensionType, extensionEncoder, encodeExtension, decodeExtension, init_extension, credentialTypes, credentialTypeEncoder, encodeCredentialType, decodeCredentialType, init_credentialType, credentialBasicEncoder, encodeCredentialBasic, credentialX509Encoder, encodeCredentialX509, credentialCustomEncoder, encodeCredentialCustom, credentialEncoder, encodeCredential, decodeCredentialBasic, decodeCredentialX509, decodeCredential, init_credential, externalSenderEncoder, encodeExternalSender, decodeExternalSender, init_externalSender, init_hash, init_optional, ciphersuites, ciphersuiteEncoder, encodeCiphersuite, decodeCiphersuite, ciphersuiteValues, init_ciphersuite, init_signature, protocolVersions, protocolVersionEncoder, encodeProtocolVersion, decodeProtocolVersion, init_protocolVersion, capabilitiesEncoder, encodeCapabilities, decodeCapabilities, init_capabilities, leafNodeSources, leafNodeSourceEncoder, encodeLeafNodeSource, decodeLeafNodeSource, init_leafNodeSource, lifetimeEncoder, encodeLifetime, decodeLifetime, defaultLifetime, init_lifetime, leafNodeDataEncoder, encodeLeafNodeData, decodeLeafNodeData, leafNodeInfoKeyPackageEncoder, encodeLeafNodeInfoKeyPackage, leafNodeInfoUpdateOmittedEncoder, encodeLeafNodeInfoUpdateOmitted, leafNodeInfoCommitOmittedEncoder, encodeLeafNodeInfoCommitOmitted, leafNodeInfoOmittedEncoder, encodeLeafNodeInfoOmitted, decodeLeafNodeInfoKeyPackage, decodeLeafNodeInfoUpdateOmitted, decodeLeafNodeInfoCommitOmitted, decodeLeafNodeInfoOmitted, leafNodeInfoUpdateEncoder, encodeLeafNodeInfoUpdate, leafNodeInfoCommitEncoder, encodeLeafNodeInfoCommit, leafNodeInfoEncoder, encodeLeafNodeInfo, decodeLeafNodeInfoUpdate, decodeLeafNodeInfoCommit, decodeLeafNodeInfo, leafNodeTBSEncoder, encodeLeafNodeTBS, leafNodeEncoder, encodeLeafNode, decodeLeafNode, decodeLeafNodeKeyPackage, decodeLeafNodeCommit, decodeLeafNodeUpdate, init_leafNode, keyPackageTBSEncoder, encodeKeyPackageTBS, decodeKeyPackageTBS, keyPackageEncoder, encodeKeyPackage, decodeKeyPackage, init_keyPackage, init_kdf, pskTypes, pskTypeEncoder, encodePskType, decodePskType, resumptionPSKUsages, resumptionPSKUsageEncoder, encodeResumptionPSKUsage, decodeResumptionPSKUsage, encodePskInfoExternal, encodePskInfoResumption, decodePskInfoResumption, pskInfoEncoder, encodePskInfo, decodePskInfo, pskIdEncoder, encodePskId, decodePskId, pskLabelEncoder, encodePskLabel, decodePskLabel, init_presharedkey, addEncoder, encodeAdd, decodeAdd, updateEncoder, encodeUpdate, decodeUpdate, removeEncoder, encodeRemove, decodeRemove, pskEncoder, encodePSK, decodePSK, reinitEncoder, encodeReinit, decodeReinit, externalInitEncoder, encodeExternalInit, decodeExternalInit, groupContextExtensionsEncoder, encodeGroupContextExtensions, decodeGroupContextExtensions, proposalAddEncoder, encodeProposalAdd, proposalUpdateEncoder, encodeProposalUpdate, proposalRemoveEncoder, encodeProposalRemove, proposalPSKEncoder, encodeProposalPSK, proposalReinitEncoder, encodeProposalReinit, proposalExternalInitEncoder, encodeProposalExternalInit, proposalGroupContextExtensionsEncoder, encodeProposalGroupContextExtensions, proposalCustomEncoder, encodeProposalCustom, proposalEncoder, encodeProposal, decodeProposalAdd, decodeProposalUpdate, decodeProposalRemove, decodeProposalPSK, decodeProposalReinit, decodeProposalExternalInit, decodeProposalGroupContextExtensions, decodeProposal, init_proposal, proposalOrRefTypes, proposalOrRefTypeEncoder, encodeProposalOrRefType, decodeProposalOrRefType, proposalOrRefProposalEncoder, encodeProposalOrRefProposal, proposalOrRefProposalRefEncoder, encodeProposalOrRefProposalRef, proposalOrRefEncoder, encodeProposalOrRef, decodeProposalOrRef, init_proposalOrRefType, init_hpke, groupContextEncoder, encodeGroupContext, decodeGroupContext, init_groupContext, nodeTypes, nodeTypeEncoder, encodeNodeType, decodeNodeType, init_nodeType, parentNodeEncoder, encodeParentNode, decodeParentNode, init_parentNode, init_treemath, nodeEncoder, encodeNode, decodeNode, ratchetTreeEncoder, encodeRatchetTree, decodeRatchetTree, init_ratchetTree, leafNodeHashInputEncoder, encodeLeafNodeHashInput, decodeLeafNodeHashInput, parentNodeHashInputEncoder, encodeParentNodeHashInput, decodeParentNodeHashInput, treeHashInputEncoder, encodeTreeHashInput, decodeTreeHashInput, init_treeHash, parentHashInputEncoder, encodeParentHashInput, decodeParentHashInput, init_parentHash, hpkeCiphertextEncoder, encodeHpkeCiphertext, decodeHpkeCiphertext, init_hpkeCiphertext, updatePathNodeEncoder, encodeUpdatePathNode, decodeUpdatePathNode, updatePathEncoder, encodeUpdatePath, decodeUpdatePath, init_updatePath, commitEncoder, encodeCommit, decodeCommit, init_commit, contentTypes, contentTypeEncoder, encodeContentType, decodeContentType, init_contentType, wireformats, wireformatEncoder, encodeWireformat, decodeWireformat, init_wireformat, senderTypes, senderTypeEncoder, encodeSenderType, decodeSenderType, senderEncoder, encodeSender, decodeSender, reuseGuardEncoder, encodeReuseGuard, decodeReuseGuard, senderDataEncoder, encodeSenderData, decodeSenderData, senderDataAADEncoder, encodeSenderDataAAD, decodeSenderDataAAD, init_sender, framedContentApplicationDataEncoder, encodeFramedContentApplicationData, framedContentProposalDataEncoder, encodeFramedContentProposalData, framedContentCommitDataEncoder, encodeFramedContentCommitData, framedContentInfoEncoder, encodeFramedContentInfo, decodeFramedContentApplicationData, decodeFramedContentProposalData, decodeFramedContentCommitData, decodeFramedContentInfo, framedContentEncoder, encodeFramedContent, decodeFramedContent, senderInfoEncoder, encodeSenderInfo, framedContentTBSEncoder, encodeFramedContentTBS, encodeFramedContentAuthDataContent, encodeFramedContentAuthDataCommit, framedContentAuthDataEncoder, encodeFramedContentAuthData, decodeFramedContentAuthDataCommit, init_framedContent, authenticatedContentEncoder, encodeAuthenticatedContent, decodeAuthenticatedContent, authenticatedContentTBMEncoder, encodeAuthenticatedContentTBM, init_authenticatedContent, publicMessageInfoEncoder, encodePublicMessageInfo, publicMessageEncoder, encodePublicMessage, decodePublicMessage, init_publicMessage, init_messageProtectionPublic, init_externalProposal, requiredCapabilitiesEncoder, encodeRequiredCapabilities, decodeRequiredCapabilities, init_requiredCapabilities, defaultAuthenticationService, init_authenticationService, defaultPaddingConfig, init_paddingConfig, defaultKeyPackageEqualityConfig, init_keyPackageEqualityConfig, defaultLifetimeConfig, init_lifetimeConfig, defaultKeyRetentionConfig, init_keyRetentionConfig, groupInfoTBSEncoder, encodeGroupInfoTBS, decodeGroupInfoTBS, groupInfoEncoder, encodeGroupInfo, decodeGroupInfo, init_groupInfo, keyScheduleEncoder, encodeKeySchedule, decodeKeySchedule, init_keySchedule, generationSecretEncoder, decodeGenerationSecret, secretTreeNodeEncoder, decodeSecretTreeNode, secretTreeEncoder, decodeSecretTree, init_secretTree, confirmedTranscriptHashInputEncoder, encodeConfirmedTranscriptHashInput, decodeConfirmedTranscriptHashInput, init_transcriptHash, groupSecretsEncoder, encodeGroupSecrets, decodeGroupSecrets, init_groupSecrets, encryptedGroupSecretsEncoder, encodeEncryptedGroupSecrets, decodeEncryptedGroupSecrets, welcomeEncoder, encodeWelcome, decodeWelcome, init_welcome, init_pathSecrets, privateKeyPathEncoder, decodePrivateKeyPath, init_privateKeyPath, proposalWithSenderEncoder, decodeProposalWithSender, unappliedProposalsEncoder, decodeUnappliedProposals, init_unappliedProposals, emptyPskIndex, init_pskIndex, init_addToMap, defaultClientConfig, init_clientConfig, init_array, stringEncoder, encodeString, decodeString, init_string, activeEncoder, suspendedPendingReinitEncoder, removedFromGroupEncoder, groupActiveStateEncoder, decodeGroupActiveState, init_groupActiveState, epochReceiverDataEncoder, decodeEpochReceiverData, init_epochReceiverData, init_agentvaultIdentityRules, groupStateEncoder, encodeGroupState, decodeGroupState, groupStateEncoderWithoutTree, encodeGroupStateWithoutTree, emptyProposals, init_clientState, privateMessageEncoder, encodePrivateMessage, decodePrivateMessage, privateContentAADEncoder, encodePrivateContentAAD, decodePrivateContentAAD, init_privateMessage, init_messageProtection, init_createMessage, init_createCommit, init_processMessages, init_makeHashImpl, HpkeError, InvalidParamError, SerializeError, DeserializeError, EncapError, DecapError, ExportError, SealError, OpenError, MessageLimitReachedError, DeriveKeyPairError, NotSupportedError, init_errors, dntGlobals, dntGlobalThis, init_dnt_shims, NativeAlgorithm, init_algorithm, Mode, KemId, KdfId, AeadId, init_identifiers, INPUT_LENGTH_LIMIT, INFO_LENGTH_LIMIT, MINIMUM_PSK_LENGTH, EMPTY, BYTE_TO_BIGINT_256, init_consts, SUITE_ID_HEADER_KEM, init_kemInterface, HPKE_VERSION, HkdfNative, HkdfSha256Native, HkdfSha384Native, HkdfSha512Native, init_hkdf, isCryptoKeyPair, init_misc, LABEL_EAE_PRK, LABEL_SHARED_SECRET, Dhkem, init_dhkem, KEM_USAGES, LABEL_DKP_PRK, LABEL_SK, init_dhkemPrimitives, Bignum, init_bignum, LABEL_CANDIDATE, ORDER_P_256, ORDER_P_384, ORDER_P_521, PKCS8_ALG_ID_P_256, PKCS8_ALG_ID_P_384, PKCS8_ALG_ID_P_521, EC_P_256_PARAMS, EC_P_384_PARAMS, EC_P_521_PARAMS, Ec, init_ec, init_xCryptoKey, init_xCurve, init_hybridkem, AEAD_USAGES, init_aeadEncryptionContext, _endianTestBuffer, _endianTestBytes, isLE2, init_noble, init_hash2, _HMAC, hmac, init_hmac, init_md2, U32_MASK642, _32n2, init_u642, init_sha2, _0n, _1n, _2n, _7n, _256n, _0x71n, SHA3_PI, SHA3_ROTL, _SHA3_IOTA, IOTAS, SHA3_IOTA_H, SHA3_IOTA_L, init_sha3, init_modular, init_curve, init_montgomery, init_mod, AesGcmContext, Aes128Gcm, Aes256Gcm, init_aesGcm, init_exportOnly, init_emitNotSupported, LABEL_SEC, ExporterContextImpl, RecipientExporterContextImpl, SenderExporterContextImpl, init_exporterContext, EncryptionContextImpl, init_encryptionContext, __classPrivateFieldGet, __classPrivateFieldSet, _Mutex_locked, Mutex, init_mutex, __classPrivateFieldGet2, __classPrivateFieldSet2, _RecipientContextImpl_mutex, RecipientContextImpl, init_recipientContext, __classPrivateFieldGet3, __classPrivateFieldSet3, _SenderContextImpl_mutex, SenderContextImpl, init_senderContext, LABEL_BASE_NONCE, LABEL_EXP, LABEL_INFO_HASH, LABEL_KEY, LABEL_PSK_ID_HASH, LABEL_SECRET, SUITE_ID_HEADER_HPKE, CipherSuiteNative, init_cipherSuiteNative, DhkemP256HkdfSha256Native, DhkemP384HkdfSha384Native, DhkemP521HkdfSha512Native, init_dhkemNative, CipherSuite, DhkemP256HkdfSha256, DhkemP384HkdfSha384, DhkemP521HkdfSha512, HkdfSha256, HkdfSha384, HkdfSha512, init_native, ALG_NAME, PKCS8_ALG_ID_X25519, BASE_POINT_X25519, X25519, init_x25519, DhkemX25519HkdfSha256, init_dhkemX25519, PKCS8_ALG_ID_X448, init_x448, init_dhkemX448, init_mod2, init_hpke2, isLE3, wrapCipher, init_utils2, encodeStr, sigma16, sigma32, sigma16_32, sigma32_32, BLOCK_LEN, BLOCK_LEN32, MAX_COUNTER, U32_EMPTY, _XorStreamPRG, createPRG, init_arx, Poly1305, poly1305, init_poly1305, chacha_exports, chacha20orig, chacha20, xchacha20, chacha8, chacha12, ZEROS16, updatePadded, ZEROS32, _poly1305_aead, chacha20poly1305, xchacha20poly1305, rngChacha20, rngChacha8, init_chacha, init_makeAead, init_makeKdfImpl, init_makeDhKem, init_makeHpke, defaultRng, init_rng, crypto2, init_cryptoNode, isLE4, swap32IfBE3, hasHexBuiltin2, hexes2, asciis, Hash, init_utils3, HashMD3, SHA256_IV3, SHA384_IV3, SHA512_IV3, init_md3, U32_MASK643, _32n3, shrSH3, shrSL3, rotrSH3, rotrSL3, rotrBH3, rotrBL3, rotlSH2, rotlSL2, rotlBH2, rotlBL2, add3L3, add3H3, add4L3, add4H3, add5L3, add5H3, init_u643, SHA256_K, SHA256_W, SHA256, K512, SHA512_Kh, SHA512_Kl, SHA512_W_H, SHA512_W_L, SHA512, SHA384, sha2563, sha5122, sha3842, init_sha22, _0n2, _1n2, isPosBig, bitMask, notImplemented, init_utils4, _0n3, _1n3, _2n2, _3n, _4n, _5n, _7n2, _8n, _9n, _16n, isNegativeLE, FIELD_FIELDS, init_modular2, _0n4, _1n4, pointPrecomputes, pointWindowSizes, wNAF, init_curve2, _0n5, _1n5, _2n3, _8n2, PrimeEdwardsPoint, init_edwards, os2ip, _DST_scalar, init_hash_to_curve, _0n6, _1n6, _2n4, init_montgomery2, ed25519_exports, _0n7, _1n7, _2n5, _3n2, _5n2, _8n3, ed25519_CURVE_p, ed25519_CURVE, ED25519_SQRT_M1, Fp, Fn, ed25519Defaults, ed25519, ed25519ctx, ed25519ph, x25519, ELL2_C1, ELL2_C2, ELL2_C3, ELL2_C1_EDWARDS, ed25519_hasher, SQRT_M1, SQRT_AD_MINUS_ONE, INVSQRT_A_MINUS_D, ONE_MINUS_D_SQ, D_MINUS_ONE_SQ, invertSqrt, MAX_255B, bytes255ToNumberLE, _RistrettoPoint, ristretto255, ristretto255_hasher, ED25519_TORSION_SUBGROUP, edwardsToMontgomery, RistrettoPoint, hashToCurve, encodeToCurve, hashToRistretto255, hash_to_ristretto255, init_ed25519, _0n8, _1n8, _2n6, _7n3, _256n2, _0x71n2, SHA3_PI2, SHA3_ROTL2, _SHA3_IOTA2, IOTAS2, SHA3_IOTA_H2, SHA3_IOTA_L2, rotlH, rotlL, Keccak, genShake, shake2562, init_sha32, ed448_exports, ed448_CURVE, E448_CURVE, shake256_114, shake256_64, _1n9, _2n7, _3n3, _4n2, _11n, _22n, _44n, _88n, _223n, Fp2, Fn2, Fp448, Fn448, ED448_DEF, ed448, ed448ph, E448, x448, ELL2_C12, ELL2_J, ed448_hasher, ONE_MINUS_D, ONE_MINUS_TWO_D, SQRT_MINUS_D, INVSQRT_MINUS_D, invertSqrt2, _DecafPoint, decaf448, decaf448_hasher, ED448_TORSION_SUBGROUP, DecafPoint, hashToCurve2, encodeToCurve2, hashToDecaf448, hash_to_decaf448, edwardsToMontgomery2, init_ed448, HMAC, hmac2, init_hmac2, divNearest, DERErr, DER, _0n9, _1n10, _2n8, _3n4, _4n3, init_weierstrass, init_shortw_utils, nist_exports, p256_CURVE, p384_CURVE, p521_CURVE, Fp256, Fp384, Fp521, p256, p256_hasher, p384, p384_hasher, p521, secp256r1, secp384r1, secp521r1, p521_hasher, init_nist, init_makeNobleSignatureImpl, defaultCryptoProvider, init_provider, init_getCiphersuiteImpl, init_resumption, SHA256_K2, SHA256_W2, SHA2_32B, _SHA256, K5122, SHA512_Kh2, SHA512_Kl2, SHA512_W_H2, SHA512_W_L2, SHA2_64B, _SHA512, _SHA384, sha2564, sha5123, sha3843, init_sha23, _HMAC2, hmac3, init_hmac3, init_makeHashImpl2, init_makeNobleSignatureImpl2, BLOCK_SIZE, ZEROS162, ZEROS322, POLY, mul2, swapLE, estimateWindow, GHASH, Polyval, ghash, polyval, init_polyval, BLOCK_SIZE2, BLOCK_SIZE32, EMPTY_BLOCK, POLY2, sbox, rotr32_8, rotl32_8, tableEncoding, xPowers, gcm, _CMAC, cmac, init_aes, init_makeAead2, init_makeKdfImpl2, init_makeDhKem2, init_makeHpke2, init_rng2, nobleCryptoProvider, init_provider2, mlsPublicMessageEncoder, encodeMlsPublicMessage, mlsWelcomeEncoder, encodeMlsWelcome, mlsPrivateMessageEncoder, encodeMlsPrivateMessage, mlsGroupInfoEncoder, encodeMlsGroupInfo, mlsKeyPackageEncoder, encodeMlsKeyPackage, mlsMessageContentEncoder, encodeMlsMessageContent, decodeMlsMessageContent, mlsMessageEncoder, encodeMlsMessage, decodeMlsMessage, init_message, greaseValues, defaultGreaseConfig, init_grease, init_defaultCapabilities, init_src, CANONICAL_UUID, ASCII_UUID_ANY_CASE, CANONICAL_UUID_BYTES, init_mls_sender_binding, DEFAULT_CIPHERSUITE, rejectStandaloneProposals, MLSGroupManager, init_mls_group, DOMAIN, NONCE_BYTES3, init_owner_sync, init_mls_delivery_order, init_mls_presend_epoch, dist_exports, init_dist2, DIR_MODE, FILE_MODE, init_secure_file, SYNC_LOCK_STALE_MS, pendingKpPath, DECRYPTED_IDS_FILE, init_mls_state, init_mls_kp_pool, PACKAGE, FALLBACK, MAX_LEN, DISALLOWED, init_client_version, RoomSendNotWritten, init_room_send_error, TURN_TOKEN_TTL_MS, TURN_TOKEN_MAX, PARKED_TOMBSTONE_MAX, TurnTokenRegistry, init_turn_token, OWN_STALE_RE, MAX_FILE_SEND_BYTES, MAX_FILE_SEND_PATH_BYTES, ROOM_ID_RE, MIME_BY_EXT, OUTBOX_FOLDER, KEEP_ASIDE, DENY_BASENAME, DENY_COMPONENT, FileSendPolicy, init_file_send_policy, TOOL_INVOKE_SPAN_NAME, UNCLASSIFIED_ERROR, KNOWN_TOOL_ERROR_CODES, KNOWN_CODES, CLASS_NAME_RE, TOOL_NAME_RE, ERROR_TEXT_CODES, _conversation, init_tool_telemetry, TURN_FAILURE_CODES, CODES, TurnFailure, NOTICE_RE, init_turn_failure, ROOM_ID_RE2, REASON, NO_ATTACHMENT_NOTICE, NOTICE_RE2, NOTICE_MAX, FILE_SEND_RULE_CONTENT, FILE_SEND_UNAVAILABLE, RENDERED_LINES, RENDERED_MAX, SYSTEM_PREFIX_RE, CF_RE, FILE_NOUN, FILENAME, SENT_PAST, SENT_BARE, TO_THIS_MESSAGE, CLAIM_MAX, AV_HISTORY_PREFIX, SENDING_NOW, HERES, SEE_ATTACHED, OWN_UPLOAD, ATTACHABLE, PASSIVE, ATTACHED_OPENER, PAST_MARK, init_file_send_failure, CredentialStore, init_credential_store, init_crypto_helpers, STATE_FILE, LEGACY_STATE_FILE, init_state, ACTIVATION_DOMAIN, UUID_RE2, init_transport2, A2ALogGate, init_a2a_log_gate, NOT_A_MEMBER_DETAIL, init_mls_membership_probe, FIRST_DIRTY_DELAY_MS, RETRY_BASE_DELAYS_MS, MAX_RETRY_DELAY_MS, JITTER_FRACTION, HistoryBackupScheduler, init_history_backup_scheduler, FILE_MODE2, init_history_recovery_file, TENANT_ID_PATTERN, DIR_MODE2, FILE_MODE3, HISTORY_RECOVERY_VERIFY_TIMEOUT_MS, VERIFY_TIMEOUT_MESSAGE, HistoryRecoveryVerificationTimeoutError, init_history_recovery_code, ACTIONS, init_decision_reply, KP_BACKOFF_INITIAL_MS, KP_BACKOFF_MAX_MS, KP_RACE_RETRY_MS, KP_RACE_RETRY_LIMIT, consoleLogger, short2, WelcomeKeyPackageBackoff, init_welcome_kp_backoff, UUID_RE3, CANONICAL_UUID_RE, WELCOME_ROUTING_FIELDS, UNKNOWN_DEVICE_LABEL, REMAP_REFUSED_NOTICE, NOTICE_PER_CONVERSATION_MS, NOTICE_GLOBAL_WINDOW_MS, NOTICE_GLOBAL_CAP, SecurityNoticeLimiter, KP_IDENTITY_BACKOFF_INITIAL_MS, KP_IDENTITY_BACKOFF_MAX_MS, KpIdentityBackoff, SECURITY_SUMMARY_MIN_MS, SECURITY_SUMMARY_MAX_MS, SecurityCounters, init_dm_group_pins, health, healthDetail, selfTestRun, SENDER_BINDING_SELF_TEST_FAILED_CODE, SENDER_BINDING_SELF_TEST_TOOL, incidentTaken, init_sender_binding, DELIVERY_PULL_MS, DELIVERY_TICK_MS, FULL_WELCOME_SWEEP_MS, MAX_QUIET_PULL_MS, A2A_QUIET_RECONCILE_MS, A2A_QUIET_JITTER_MS, DeliveryCadence, A2aReconcileCadence, init_delivery_cadence, CONTROL_MESSAGE_TYPES, init_message_kind, LOCAL_API_TOKEN_FILE, LOCAL_API_TOKEN_HEADER, LOCAL_API_BODY_LIMIT, LOCAL_API_HEADERS_TIMEOUT_MS, LOCAL_API_REQUEST_TIMEOUT_MS, LOCAL_API_MAX_CONNECTIONS, LOCAL_API_TOKEN_HINT, TOKEN_RE, LocalApiTokenError, LOOPBACK_REMOTES, LOOPBACK_HOSTNAMES, BodyTooLargeError, REFUSAL_RESPONSE, KNOWN_ROUTES, tokensByPort, init_local_api, http_handlers_exports, init_http_handlers, InvalidJsonError, init_local_api_server, init_atomic_file, ONTURN_ENV, ONTURN_RECORDS_FILE, NONCE_RE, MAX_MEMBERS_PER_GROUP, MAX_GROUPS, MAX_ROOTS, MAX_NONCES, MAX_RECORDS_BYTES, MAX_RECORDS_WRITE_BYTES, BOOT_TOLERANCE_S, PS_LINE, NONCE_IN_ENV, PS_ENV, defaultSignal, OnTurnStopIncomplete, shared, OnTurnRegistry, init_onturn_stop, AV_EFFECTIVE_V1, DEFAULT_OFF_CALLBACK_TIMEOUT_MS, DEFAULT_STOP_HOOK_TIMEOUT_MS, DEFAULT_NOT_ON_BOUND_S, MIN_NOT_ON_BOUND_S, MAX_NOT_ON_BOUND_S, BOUND_RETRY_BASE_MS, BOUND_RETRY_MAX_MS, NOT_ON_BOUND_FIELD, INTENT_SEQ_FIELD, WAS_ON_MARKER_FILE, OffCallbackTimeout, OnTurnStopUnverified, StopHookTimeout, processOnPeriodSeq, PROCESS_BOOT_ID, FullPermissionsCore, init_full_permissions, OFF_SEQUENCE_FAILED_CODE, OFF_SEQUENCE_TOOL_NAME, OFF_SEQUENCE_SPAN, BOUND_STOP_SPAN, FAMILY_RE, NOTICE_RE3, ROOT_EVICTED_SPAN, init_off_sequence_report, history_backup_client_exports, HISTORY_RESTORE_TIMEOUT_MS, HISTORY_RESTORE_RESPONSE_MAX_BYTES, HISTORY_ENVELOPE_MIN_BYTES, HISTORY_AAD_PREFIX, UUID_RE4, GENERATION_RESPONSE_KEYS, utf8Encoder, utf8Decoder, HistoryBackupClient, init_history_backup_client, openclaw_compat_exports, defaultImporter, HEARTBEAT_CANDIDATES, _heartbeatFn, init_openclaw_compat, mcp_proxy_helpers_exports, init_mcp_proxy_helpers, ROOM_AGENT_TYPES, CREDENTIAL_MESSAGE_TYPES, CATCHUP_MESSAGE_TYPES, ROOM_PROTOCOL_TYPES, POLL_INTERVAL_MS, RECONNECT_BASE_MS, UUID_RE5, KpIdentityRefused, RECONNECT_MAX_MS, PENDING_POLL_INTERVAL_MS, PENDING_POLL_SILENCE_MS, HISTORY_RESTORE_TIMEOUT_MS2, ROOM_ROSTER_REFRESH_TIMEOUT_MS, ROOM_ROSTER_OWNER_MAX_AGE_MS, TimedSet, HISTORY_UPLOAD_TIMEOUT_MS, CANONICAL_TIMESTAMP_RE, OUTBOUND_DEDUPE_WINDOW_MS, OUTBOUND_DEDUPE_MAX_SUPPRESS_MS, OUTBOUND_DEDUPE_MAX, OUTBOUND_DEDUPE_TYPES, RETRY_CANDIDATE_TTL_MS, RETRY_CANDIDATE_MAX, _turnConversation, _turnTokenStore, _drTurnStore, PERSON_INVOLVED_WINDOW_MS, ATTESTED_INBOUND_MAX, UNMAPPED_RECONCILE_COOLDOWN_MS, TOPIC_ID_RE, ROOM_FULFIL_COOLDOWN_MS, SecureChannel, init_channel, FAMILY_RE2, OwnerEpochStore, init_owner_epoch, init_types, DEFAULT_API_URL, DEFAULT_HTTP_PORT, init_account_config, init_lifecycle, OPENCLAW_FILE_TOOL, _turnSandbox, MEDIA_ROOTS_CANDIDATES, _mediaRootsFn, _mediaRootsGapLogged, OpenClawTurnRuns, WORKSPACE_CANDIDATES, SANDBOX_STATUS_CANDIDATES, OpenClawFileSendError, init_openclaw_file_send, init_openclaw_sender, _ocRuntime, _channels, _legacyTurnRuns, agentVaultPlugin, init_openclaw_plugin, init_gateway_send, init_llm_response_parser, OPENROUTER_PRICING, init_llm_pricing_openrouter, LEGACY_PRICING, PRICING, init_llm_cost, init_url_origin, traceStore, init_fetch_interceptor, init_tool_audit, init_harness_compat, AUTH_RE, BILLING_RE, RATE_RE, MODEL_GONE_RE, UNREACHABLE_RE, init_openclaw_turn_failure, SHUTDOWN_NOTICE_MS, KEEP_UNANSWERED_MS, OpenClawShutdownNotices, init_openclaw_shutdown_notice, init_openclaw_room_taint, _shutdownNotices, managedRoutesRequested, _turnRuns, init_openclaw_entry, util, objectUtil, ZodParsedType, getParsedType, init_util, ZodIssueCode, ZodError, init_ZodError, errorMap, en_default, init_en, overrideErrorMap, init_errors2, makeIssue, ParseStatus, INVALID, DIRTY, OK, isAborted, isDirty, isValid, isAsync, init_parseUtil, init_typeAliases, errorUtil, init_errorUtil, ParseInputLazyPath, handleResult, ZodType, cuidRegex, cuid2Regex, ulidRegex, uuidRegex, nanoidRegex, jwtRegex, durationRegex, emailRegex, _emojiRegex, emojiRegex, ipv4Regex, ipv4CidrRegex, ipv6Regex, ipv6CidrRegex, base64Regex, base64urlRegex, dateRegexSource, dateRegex, ZodString, ZodNumber, ZodBigInt, ZodBoolean, ZodDate, ZodSymbol, ZodUndefined, ZodNull, ZodAny, ZodUnknown, ZodNever, ZodVoid, ZodArray, ZodObject, ZodUnion, getDiscriminator, ZodDiscriminatedUnion, ZodIntersection, ZodTuple, ZodRecord, ZodMap, ZodSet, ZodFunction, ZodLazy, ZodLiteral, ZodEnum, ZodNativeEnum, ZodPromise, ZodEffects, ZodOptional, ZodNullable, ZodDefault, ZodCatch, ZodNaN, ZodBranded, ZodPipeline, ZodReadonly, late, ZodFirstPartyTypeKind, stringType, numberType, nanType, bigIntType, booleanType, dateType, symbolType, undefinedType, nullType, anyType, unknownType, neverType, voidType, arrayType, objectType, strictObjectType, unionType, discriminatedUnionType, intersectionType, tupleType, recordType, mapType, setType, functionType, lazyType, literalType, enumType, nativeEnumType, promiseType, effectsType, optionalType, nullableType, preprocessType, pipelineType, init_types2, init_external, init_v3, util_exports, Cached, EVALUATING, captureStackTrace, allowsEval, getParsedType2, propertyKeyTypes, primitiveTypes, NUMBER_FORMAT_RANGES, BIGINT_FORMAT_RANGES, highSurrogate, Class, installing, broke, breaker, CONSTANT_CATCH, init_util2, _a2, _zodDesc, _E, $ZodAsyncError, $ZodEncodeError, globalConfig, init_core, _messageDesc, _issuesDesc, _installedToString, initializer, $ZodError, $ZodRealError, init_errors3, _parse, parse, _parseAsync, parseAsync, _safeParse, safeParse, _safeParseAsync, safeParseAsync, COMPILE_INVALID, COMPILE_FALLBACK, validate, validateAsync, _encode, _decode, _encodeAsync, _decodeAsync, _safeEncode, _safeDecode, _safeEncodeAsync, _safeDecodeAsync, init_parse, cuid, cuid2, ulid, xid, ksuid, nanoid, duration, guid, uuid2, email, _emoji, ipv4, ipv6, cidrv4, cidrv6, base64, base64url, httpProtocol, e164, dateSource, date, anyString, integer, number, boolean, _null, lowercase, uppercase, init_regexes, $ZodCheck, _whenHasLength, numericOriginMap, $ZodCheckLessThan, $ZodCheckGreaterThan, $ZodCheckMultipleOf, $ZodCheckNumberFormat, $ZodCheckMaxLength, $ZodCheckMinLength, $ZodCheckLengthEquals, $ZodCheckStringFormat, $ZodCheckRegex, $ZodCheckLowerCase, $ZodCheckUpperCase, $ZodCheckIncludes, $ZodCheckStartsWith, $ZodCheckEndsWith, $ZodCheckOverwrite, init_checks, Doc, init_doc, version, init_versions, $ZodType, toStandardResult, $ZodString, $ZodStringFormat, $ZodGUID, $ZodUUID, $ZodEmail, URL_BAD_FORMAT, URL_UNPARSEABLE, asciiTabOrNewline, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodISODateTime, $ZodISODate, $ZodISOTime, $ZodISODuration, $ZodIPv4, ipv6Alphabet, $ZodIPv6, $ZodCIDRv4, $ZodCIDRv6, base64Charset, $ZodBase64, base64urlCharset, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodNull, $ZodUnknown, $ZodNever, arraySize, $ZodArray, NO_SYMBOL_KEYS, $ZodObject, $ZodObjectJIT, $ZodUnion, $ZodDiscriminatedUnion, $ZodIntersection, $ZodRecord, $ZodEnum, $ZodLiteral, $ZodTransform, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodCatch, $ZodPipe, $ZodPreprocess, $ZodReadonly, $ZodCustom, init_schemas, $ZodCyclicError, STATE, NO_ISSUES, recursive, NONE, ASSUMED, PROVEN, handoff, open5, memo, init_memoizer, error, init_en2, init_locales, _a3, $ZodRegistry, globalRegistry, init_registries, init_compile, init_api, FOLDABLE_KEYS, UNION_KEYS, createToJSONSchemaMethod, createStandardJSONSchemaMethod, init_to_json_schema, narrowMin, narrowMax, narrowBoth, addDivisor, addPattern, intersectMime, setFormat, minContributor, maxContributor, formatContributor, contributors, formatMap, exactPatterns, exactPattern, stringProcessor, numberProcessor, booleanProcessor, bigintProcessor, symbolProcessor, nullProcessor, undefinedProcessor, voidProcessor, neverProcessor, anyProcessor, unknownProcessor, dateProcessor, enumProcessor, literalProcessor, nanProcessor, templateLiteralProcessor, fileProcessor, successProcessor, customProcessor, functionProcessor, transformProcessor, mapProcessor, setProcessor, arrayProcessor, objectProcessor, unionProcessor, intersectionProcessor, tupleProcessor, pendingRecords, recordProcessor, nullableProcessor, nonoptionalProcessor, UNREPRESENTABLE_DEFAULT, defaultProcessor, prefaultProcessor, catchProcessor, pipeProcessor, readonlyProcessor, promiseProcessor, optionalProcessor, lazyProcessor, allProcessors, init_json_schema_processors, init_json_schema, init_core2, init_parse2, ZodMiniType, ZodMiniObject, init_schemas2, init_checks2, init_iso, init_coerce, init_external2, init_v4_mini, init_zod_compat, init_checks3, _installedErrorProtos, initializer2, ZodRealError, init_errors4, parse2, parseAsync2, safeParse3, safeParseAsync3, encode3, decode2, encodeAsync2, decodeAsync2, safeEncode2, safeDecode2, safeEncodeAsync2, safeDecodeAsync2, init_parse3, ZodType2, _ZodString, ZodString2, ZodStringFormat, ZodISODateTime, ZodISODate, ZodISOTime, ZodISODuration, ZodEmail, ZodGUID, ZodUUID, ZodURL, ZodEmoji, ZodNanoID, ZodCUID, ZodCUID2, ZodULID, ZodXID, ZodKSUID, ZodIPv4, ZodIPv6, ZodCIDRv4, ZodCIDRv6, ZodBase64, ZodBase64URL, ZodE164, ZodJWT, ZodNumber2, ZodNumberFormat, ZodBoolean2, ZodNull2, ZodUnknown2, ZodNever2, ZodArray2, ZodObject2, ZodUnion2, ZodDiscriminatedUnion2, ZodIntersection2, ZodRecord2, ZodEnum2, ZodLiteral2, ZodTransform, ZodOptional2, ZodExactOptional, ZodNullable2, ZodDefault2, ZodPrefault, ZodNonOptional, ZodCatch2, ZodPipe, ZodPreprocess, ZodReadonly2, ZodCustom, init_schemas3, ZodFirstPartyTypeKind2, init_compat, iso_exports2, init_iso2, init_coerce2, init_external3, init_classic, init_v4, LATEST_PROTOCOL_VERSION, DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, RELATED_TASK_META_KEY, JSONRPC_VERSION, AssertObjectSchema, ProgressTokenSchema, CursorSchema, TaskCreationParamsSchema, TaskMetadataSchema, RelatedTaskMetadataSchema, RequestMetaSchema, BaseRequestParamsSchema, TaskAugmentedRequestParamsSchema, isTaskAugmentedRequestParams, RequestSchema, NotificationsParamsSchema, NotificationSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, isJSONRPCRequest, JSONRPCNotificationSchema, isJSONRPCNotification, JSONRPCResultResponseSchema, isJSONRPCResultResponse, ErrorCode, JSONRPCErrorResponseSchema, isJSONRPCErrorResponse, JSONRPCMessageSchema, JSONRPCResponseSchema, EmptyResultSchema, CancelledNotificationParamsSchema, CancelledNotificationSchema, IconSchema, IconsSchema, BaseMetadataSchema, ImplementationSchema, FormElicitationCapabilitySchema, ElicitationCapabilitySchema, ClientTasksCapabilitySchema, ServerTasksCapabilitySchema, ClientCapabilitiesSchema, InitializeRequestParamsSchema, InitializeRequestSchema, isInitializeRequest, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, PingRequestSchema, ProgressSchema, ProgressNotificationParamsSchema, ProgressNotificationSchema, PaginatedRequestParamsSchema, PaginatedRequestSchema, PaginatedResultSchema, TaskStatusSchema, TaskSchema, CreateTaskResultSchema, TaskStatusNotificationParamsSchema, TaskStatusNotificationSchema, GetTaskRequestSchema, GetTaskResultSchema, GetTaskPayloadRequestSchema, GetTaskPayloadResultSchema, ListTasksRequestSchema, ListTasksResultSchema, CancelTaskRequestSchema, CancelTaskResultSchema, ResourceContentsSchema, TextResourceContentsSchema, Base64Schema, BlobResourceContentsSchema, RoleSchema, AnnotationsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ResourceRequestParamsSchema, ReadResourceRequestParamsSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestParamsSchema, SubscribeRequestSchema, UnsubscribeRequestParamsSchema, UnsubscribeRequestSchema, ResourceUpdatedNotificationParamsSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestParamsSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, AudioContentSchema, ToolUseContentSchema, EmbeddedResourceSchema, ResourceLinkSchema, ContentBlockSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolAnnotationsSchema, ToolExecutionSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestParamsSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, ListChangedOptionsBaseSchema, LoggingLevelSchema, SetLevelRequestParamsSchema, SetLevelRequestSchema, LoggingMessageNotificationParamsSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, ToolChoiceSchema, ToolResultContentSchema, SamplingContentSchema, SamplingMessageContentBlockSchema, SamplingMessageSchema, CreateMessageRequestParamsSchema, CreateMessageRequestSchema, CreateMessageResultSchema, CreateMessageResultWithToolsSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema, UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema, LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema, EnumSchemaSchema, PrimitiveSchemaDefinitionSchema, ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema, ElicitRequestParamsSchema, ElicitRequestSchema, ElicitationCompleteNotificationParamsSchema, ElicitationCompleteNotificationSchema, ElicitResultSchema, ResourceTemplateReferenceSchema, PromptReferenceSchema, CompleteRequestParamsSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema, McpError, UrlElicitationRequiredError, init_types3, init_interfaces, ignoreOverride, defaultOptions, getDefaultOptions, init_Options, getRefs, init_Refs, init_errorMessages, getRelativePath, init_getRelativePath, init_any, init_array2, init_bigint, init_boolean, init_branded, parseCatchDef, init_catch, integerDateParser, init_date, init_default, init_effects, init_enum, isJsonSchema7AllOfType, init_intersection, init_literal, emojiRegex2, zodPatterns, ALPHA_NUMERIC, init_string2, init_record, init_map, init_nativeEnum, init_never, init_null, primitiveMappings, asAnyOf, init_union, init_nullable, init_number2, init_object, parseOptionalDef, init_optional2, parsePipelineDef, init_pipeline, init_promise, init_set, init_tuple, init_undefined, init_unknown, parseReadonlyDef, init_readonly, selectParser, init_selectParser, get$ref, addMeta, init_parseDef, init_parseTypes, zodToJsonSchema, init_zodToJsonSchema, init_esm, init_zod_json_schema_compat, DEFAULT_REQUEST_TIMEOUT_MSEC, Protocol, init_protocol, require_code, require_scope, require_codegen, require_util, require_names, require_errors, require_boolSchema, require_rules, require_applicability, require_dataType, require_defaults, require_code2, require_keyword, require_subschema, require_fast_deep_equal, require_json_schema_traverse, require_resolve, require_validate, require_validation_error, require_ref_error, require_compile, require_data, require_utils, require_schemes, require_fast_uri, require_uri, require_core, require_id, require_ref, require_core2, require_limitNumber, require_multipleOf, require_ucs2length, require_limitLength, require_pattern, require_limitProperties, require_required, require_limitItems, require_equal, require_uniqueItems, require_const, require_enum, require_validation, require_additionalItems, require_items, require_prefixItems, require_items2020, require_contains, require_dependencies, require_propertyNames, require_additionalProperties, require_properties, require_patternProperties, require_not, require_anyOf, require_oneOf, require_allOf, require_if, require_thenElse, require_applicator, require_format, require_format2, require_metadata, require_draft7, require_types, require_discriminator, require_json_schema_draft_07, require_ajv, require_formats, require_limit, require_dist, import_ajv, import_ajv_formats, AjvJsonSchemaValidator, init_ajv_provider, ExperimentalServerTasks, init_server, init_helpers, Server, init_server2, COMPLETABLE_SYMBOL, McpZodTypeKind, init_completable, init_uriTemplate, TOOL_NAME_REGEX, init_toolNameValidation, ExperimentalMcpServerTasks, init_mcp_server, init_zod, McpServer, EMPTY_OBJECT_JSON_SCHEMA, EMPTY_COMPLETION_RESULT, init_mcp, RequestError, toRequestError, GlobalRequest, Request2, newHeadersFromIncoming, wrapBodyStream, newRequestFromIncoming, getRequestCache, requestCache, incomingKey, urlKey, headersKey, abortControllerKey, getAbortController, requestPrototype, newRequest, responseCache, getResponseCache, cacheKey, GlobalResponse, Response2, buildOutgoingHttpHeaders, X_ALREADY_SENT, outgoingEnded, handleRequestError, handleFetchError, handleResponseError, flushHeaders, responseViaCache, isPromise, responseViaResponseObject, getRequestListener, init_dist22, require_content_type, import_content_type, init_mediaType, DEFAULT_MAX_REQUEST_BODY_SIZE, MAX_BATCH_SIZE, init_requestBody, DEFAULT_SSE_KEEP_ALIVE_MS, MAX_TIMER_DELAY_MS, init_sseKeepAlive, WebStandardStreamableHTTPServerTransport, init_webStandardStreamableHttp, StreamableHTTPServerTransport, init_streamableHttp, AgentVaultMcpServer, init_mcp_server2, warnedNoAuth, init_mcp_handlers, init_skill_manifest, init_skill_invoker, spanBuffer, init_skill_telemetry, PolicyEnforcer, init_policy_enforcer, VERSION, init_index;
|
|
20717
|
+
function utf8Escapes(ch2) {
|
|
20718
|
+
const cp = ch2.codePointAt(0);
|
|
20719
|
+
const bytes = cp < 128 ? [cp] : cp < 2048 ? [192 | cp >> 6, 128 | cp & 63] : cp < 65536 ? [224 | cp >> 12, 128 | cp >> 6 & 63, 128 | cp & 63] : [240 | cp >> 18, 128 | cp >> 12 & 63, 128 | cp >> 6 & 63, 128 | cp & 63];
|
|
20720
|
+
return bytes.map((b22) => `\\x${b22.toString(16).padStart(2, "0")}`).join("");
|
|
20721
|
+
}
|
|
20722
|
+
function shellWord(value) {
|
|
20723
|
+
if (BARE.test(value)) return value;
|
|
20724
|
+
if (value === "") return "''";
|
|
20725
|
+
if (NEEDS_ESCAPE.test(value)) {
|
|
20726
|
+
let body = "";
|
|
20727
|
+
let afterEscape = false;
|
|
20728
|
+
for (const ch2 of value) {
|
|
20729
|
+
const literal22 = LITERAL_IN_ANSI_C.test(ch2) && !(afterEscape && HEX.test(ch2));
|
|
20730
|
+
body += literal22 ? ch2 : utf8Escapes(ch2);
|
|
20731
|
+
afterEscape = !literal22;
|
|
20732
|
+
}
|
|
20733
|
+
return `$'${body}'`;
|
|
20734
|
+
}
|
|
20735
|
+
return value.split(/(['\\])/).filter((part) => part !== "").map((part) => part === "'" || part === "\\" ? `\\${part}` : `'${part}'`).join("");
|
|
20736
|
+
}
|
|
20737
|
+
var __create, __defProp2, __getOwnPropDesc, __getOwnPropNames2, __getProtoOf, __hasOwnProp, __require2, __esm2, __commonJS, __export2, __copyProps, __toESM, OWNER_LIST_MAX_AGE_MS, OWNER_LIST_RETRY_MS, OWNER_LIST_TIMEOUT_MS, OWNER_LIST_FAIL_BACKOFF_MS, OWNER_LIST_FAIL_BACKOFF_MAX_MS, OwnerDeviceList, init_owner_devices, SENTINEL, WRAPPERS, INSTRUCTION, init_abstention, AMBIGUOUS_OWNER_ERROR, init_owner_routing, init_envelope_text, REFUSED_TYPES, init_dr_refusal, init_mls_commit_classify, MENTION_RE, BROADCAST_NAMES, PRIVATE_ROOM_TURN_NOTE, GENERIC_AGENT_NAMES, init_room_protocol, ATTACHMENT_NAME_MAX_BYTES, MAX_EXTENSION_BYTES, MAX_INPUT_CHARS, MAX_FALLBACK_ID_CHARS, INVISIBLE, LOOKALIKE, WS, LEADING, TRAILING, TRAILING_WS, WINDOWS_RESERVED, init_safe_attachment_name, MAX_NUMBERED_ATTEMPTS, init_attachment_write, libsodium_sumo_default, init_libsodium_sumo, r, t, a, _, n, s, m, libsodium_wrappers_default, init_libsodium_wrappers, init_keys, init_x3dh, MAX_SKIP, CHAIN_KEY_SEED, MSG_KEY_SEED, HEADER_KEY_SEED, DoubleRatchet, init_ratchet, init_file_crypto, DOMAIN_DID_DOCUMENT, DOMAIN_TRANSFER_INTENT, DOMAIN_TRANSFER_ACCEPT, BASE58_ALPHABET, init_did, BUILTIN_PATTERNS, WS_CHAR, isWs, isLineEnd, isWordChar, ScanEngine, init_scan_engine, init_merkle, VC_CONTEXT_V2, AV_CREDENTIAL_CONTEXT, AV_VOCAB, VC_V2_RESERVED_TERMS, ReservedClaimNameError, CRYPTOSUITE, BASE58_ALPHABET2, init_vc, init_transport, DEFAULT_PORTS, ORIGIN_HOST, init_telemetry, TelemetryReporter, init_telemetry_reporter, CROCKFORD, ARGON2_OPSLIMIT, ARGON2_MEMLIMIT, SALT_BYTES, NONCE_BYTES, KEY_BYTES, BACKUP_VERSION, MAX_BACKUP_SIZE, init_backup, atitle, aobject, aopts, isLE, swap8IfBE, swap32IfBE, hasHexBuiltin, hexes, oidNist, init_utils, BSIGMA, init_blake, U32_MASK64, _32n, fromNumH, fromNumL, shrSH, shrSL, rotrSH, rotrSL, rotrBH, rotrBL, rotr32H, rotr32L, add3L, add3H, add4L, add4H, add5L, add5H, init_u64, HashMD, SHA256_IV, SHA384_IV, SHA512_IV, init_md, B2B_IV, BBUF, _BLAKE2, _BLAKE2b, blake2b, init_blake2, CROCKFORD2, SALT_BYTES2, NONCE_BYTES2, KEY_BYTES2, TAG_BYTES, ENVELOPE_OVERHEAD, AAD_PREFIX, UUID_RE, UUID_V4_RE, DIGEST_ID_RE, TIMESTAMP_RE, encoder, decoder, HISTORY_MAGIC, HISTORY_ARCHIVE_VERSION, HISTORY_MAX_ENTRIES, HISTORY_MAX_BLOB_BYTES, HISTORY_KDF_OPSLIMIT, HISTORY_KDF_MEMLIMIT, HistoryEntryTooLargeError, init_history_backup, init_approval, encVoid, init_tlsEncoder, uint8Encoder, encodeUint8, decodeUint8, uint16Encoder, encodeUint16, decodeUint16, uint32Encoder, encodeUint32, decodeUint32, uint64Encoder, encodeUint64, decodeUint64, init_number, init_tlsDecoder, init_enumHelpers, defaultProposalTypes, defaultProposalTypeEncoder, encodeDefaultProposalType, decodeDefaultProposalType, init_defaultProposalType, defaultExtensionTypes, defaultExtensionTypeEncoder, encodeDefaultExtensionType, decodeDefaultExtensionType, init_defaultExtensionType, acceptAll, init_incomingMessageAction, MlsError, ValidationError, CodecError, UsageError, DependencyError, CryptoVerificationError, CryptoError, InternalError, init_mlsError, init_byteArray, varLenDataEncoder, decodeVarLenData, init_variableLength, init_constantTimeCompare, extensionTypeEncoder, encodeExtensionType, decodeExtensionType, extensionEncoder, encodeExtension, decodeExtension, init_extension, credentialTypes, credentialTypeEncoder, encodeCredentialType, decodeCredentialType, init_credentialType, credentialBasicEncoder, encodeCredentialBasic, credentialX509Encoder, encodeCredentialX509, credentialCustomEncoder, encodeCredentialCustom, credentialEncoder, encodeCredential, decodeCredentialBasic, decodeCredentialX509, decodeCredential, init_credential, externalSenderEncoder, encodeExternalSender, decodeExternalSender, init_externalSender, init_hash, init_optional, ciphersuites, ciphersuiteEncoder, encodeCiphersuite, decodeCiphersuite, ciphersuiteValues, init_ciphersuite, init_signature, protocolVersions, protocolVersionEncoder, encodeProtocolVersion, decodeProtocolVersion, init_protocolVersion, capabilitiesEncoder, encodeCapabilities, decodeCapabilities, init_capabilities, leafNodeSources, leafNodeSourceEncoder, encodeLeafNodeSource, decodeLeafNodeSource, init_leafNodeSource, lifetimeEncoder, encodeLifetime, decodeLifetime, defaultLifetime, init_lifetime, leafNodeDataEncoder, encodeLeafNodeData, decodeLeafNodeData, leafNodeInfoKeyPackageEncoder, encodeLeafNodeInfoKeyPackage, leafNodeInfoUpdateOmittedEncoder, encodeLeafNodeInfoUpdateOmitted, leafNodeInfoCommitOmittedEncoder, encodeLeafNodeInfoCommitOmitted, leafNodeInfoOmittedEncoder, encodeLeafNodeInfoOmitted, decodeLeafNodeInfoKeyPackage, decodeLeafNodeInfoUpdateOmitted, decodeLeafNodeInfoCommitOmitted, decodeLeafNodeInfoOmitted, leafNodeInfoUpdateEncoder, encodeLeafNodeInfoUpdate, leafNodeInfoCommitEncoder, encodeLeafNodeInfoCommit, leafNodeInfoEncoder, encodeLeafNodeInfo, decodeLeafNodeInfoUpdate, decodeLeafNodeInfoCommit, decodeLeafNodeInfo, leafNodeTBSEncoder, encodeLeafNodeTBS, leafNodeEncoder, encodeLeafNode, decodeLeafNode, decodeLeafNodeKeyPackage, decodeLeafNodeCommit, decodeLeafNodeUpdate, init_leafNode, keyPackageTBSEncoder, encodeKeyPackageTBS, decodeKeyPackageTBS, keyPackageEncoder, encodeKeyPackage, decodeKeyPackage, init_keyPackage, init_kdf, pskTypes, pskTypeEncoder, encodePskType, decodePskType, resumptionPSKUsages, resumptionPSKUsageEncoder, encodeResumptionPSKUsage, decodeResumptionPSKUsage, encodePskInfoExternal, encodePskInfoResumption, decodePskInfoResumption, pskInfoEncoder, encodePskInfo, decodePskInfo, pskIdEncoder, encodePskId, decodePskId, pskLabelEncoder, encodePskLabel, decodePskLabel, init_presharedkey, addEncoder, encodeAdd, decodeAdd, updateEncoder, encodeUpdate, decodeUpdate, removeEncoder, encodeRemove, decodeRemove, pskEncoder, encodePSK, decodePSK, reinitEncoder, encodeReinit, decodeReinit, externalInitEncoder, encodeExternalInit, decodeExternalInit, groupContextExtensionsEncoder, encodeGroupContextExtensions, decodeGroupContextExtensions, proposalAddEncoder, encodeProposalAdd, proposalUpdateEncoder, encodeProposalUpdate, proposalRemoveEncoder, encodeProposalRemove, proposalPSKEncoder, encodeProposalPSK, proposalReinitEncoder, encodeProposalReinit, proposalExternalInitEncoder, encodeProposalExternalInit, proposalGroupContextExtensionsEncoder, encodeProposalGroupContextExtensions, proposalCustomEncoder, encodeProposalCustom, proposalEncoder, encodeProposal, decodeProposalAdd, decodeProposalUpdate, decodeProposalRemove, decodeProposalPSK, decodeProposalReinit, decodeProposalExternalInit, decodeProposalGroupContextExtensions, decodeProposal, init_proposal, proposalOrRefTypes, proposalOrRefTypeEncoder, encodeProposalOrRefType, decodeProposalOrRefType, proposalOrRefProposalEncoder, encodeProposalOrRefProposal, proposalOrRefProposalRefEncoder, encodeProposalOrRefProposalRef, proposalOrRefEncoder, encodeProposalOrRef, decodeProposalOrRef, init_proposalOrRefType, init_hpke, groupContextEncoder, encodeGroupContext, decodeGroupContext, init_groupContext, nodeTypes, nodeTypeEncoder, encodeNodeType, decodeNodeType, init_nodeType, parentNodeEncoder, encodeParentNode, decodeParentNode, init_parentNode, init_treemath, nodeEncoder, encodeNode, decodeNode, ratchetTreeEncoder, encodeRatchetTree, decodeRatchetTree, init_ratchetTree, leafNodeHashInputEncoder, encodeLeafNodeHashInput, decodeLeafNodeHashInput, parentNodeHashInputEncoder, encodeParentNodeHashInput, decodeParentNodeHashInput, treeHashInputEncoder, encodeTreeHashInput, decodeTreeHashInput, init_treeHash, parentHashInputEncoder, encodeParentHashInput, decodeParentHashInput, init_parentHash, hpkeCiphertextEncoder, encodeHpkeCiphertext, decodeHpkeCiphertext, init_hpkeCiphertext, updatePathNodeEncoder, encodeUpdatePathNode, decodeUpdatePathNode, updatePathEncoder, encodeUpdatePath, decodeUpdatePath, init_updatePath, commitEncoder, encodeCommit, decodeCommit, init_commit, contentTypes, contentTypeEncoder, encodeContentType, decodeContentType, init_contentType, wireformats, wireformatEncoder, encodeWireformat, decodeWireformat, init_wireformat, senderTypes, senderTypeEncoder, encodeSenderType, decodeSenderType, senderEncoder, encodeSender, decodeSender, reuseGuardEncoder, encodeReuseGuard, decodeReuseGuard, senderDataEncoder, encodeSenderData, decodeSenderData, senderDataAADEncoder, encodeSenderDataAAD, decodeSenderDataAAD, init_sender, framedContentApplicationDataEncoder, encodeFramedContentApplicationData, framedContentProposalDataEncoder, encodeFramedContentProposalData, framedContentCommitDataEncoder, encodeFramedContentCommitData, framedContentInfoEncoder, encodeFramedContentInfo, decodeFramedContentApplicationData, decodeFramedContentProposalData, decodeFramedContentCommitData, decodeFramedContentInfo, framedContentEncoder, encodeFramedContent, decodeFramedContent, senderInfoEncoder, encodeSenderInfo, framedContentTBSEncoder, encodeFramedContentTBS, encodeFramedContentAuthDataContent, encodeFramedContentAuthDataCommit, framedContentAuthDataEncoder, encodeFramedContentAuthData, decodeFramedContentAuthDataCommit, init_framedContent, authenticatedContentEncoder, encodeAuthenticatedContent, decodeAuthenticatedContent, authenticatedContentTBMEncoder, encodeAuthenticatedContentTBM, init_authenticatedContent, publicMessageInfoEncoder, encodePublicMessageInfo, publicMessageEncoder, encodePublicMessage, decodePublicMessage, init_publicMessage, init_messageProtectionPublic, init_externalProposal, requiredCapabilitiesEncoder, encodeRequiredCapabilities, decodeRequiredCapabilities, init_requiredCapabilities, defaultAuthenticationService, init_authenticationService, defaultPaddingConfig, init_paddingConfig, defaultKeyPackageEqualityConfig, init_keyPackageEqualityConfig, defaultLifetimeConfig, init_lifetimeConfig, defaultKeyRetentionConfig, init_keyRetentionConfig, groupInfoTBSEncoder, encodeGroupInfoTBS, decodeGroupInfoTBS, groupInfoEncoder, encodeGroupInfo, decodeGroupInfo, init_groupInfo, keyScheduleEncoder, encodeKeySchedule, decodeKeySchedule, init_keySchedule, generationSecretEncoder, decodeGenerationSecret, secretTreeNodeEncoder, decodeSecretTreeNode, secretTreeEncoder, decodeSecretTree, init_secretTree, confirmedTranscriptHashInputEncoder, encodeConfirmedTranscriptHashInput, decodeConfirmedTranscriptHashInput, init_transcriptHash, groupSecretsEncoder, encodeGroupSecrets, decodeGroupSecrets, init_groupSecrets, encryptedGroupSecretsEncoder, encodeEncryptedGroupSecrets, decodeEncryptedGroupSecrets, welcomeEncoder, encodeWelcome, decodeWelcome, init_welcome, init_pathSecrets, privateKeyPathEncoder, decodePrivateKeyPath, init_privateKeyPath, proposalWithSenderEncoder, decodeProposalWithSender, unappliedProposalsEncoder, decodeUnappliedProposals, init_unappliedProposals, emptyPskIndex, init_pskIndex, init_addToMap, defaultClientConfig, init_clientConfig, init_array, stringEncoder, encodeString, decodeString, init_string, activeEncoder, suspendedPendingReinitEncoder, removedFromGroupEncoder, groupActiveStateEncoder, decodeGroupActiveState, init_groupActiveState, epochReceiverDataEncoder, decodeEpochReceiverData, init_epochReceiverData, init_agentvaultIdentityRules, groupStateEncoder, encodeGroupState, decodeGroupState, groupStateEncoderWithoutTree, encodeGroupStateWithoutTree, emptyProposals, init_clientState, privateMessageEncoder, encodePrivateMessage, decodePrivateMessage, privateContentAADEncoder, encodePrivateContentAAD, decodePrivateContentAAD, init_privateMessage, init_messageProtection, init_createMessage, init_createCommit, init_processMessages, init_makeHashImpl, HpkeError, InvalidParamError, SerializeError, DeserializeError, EncapError, DecapError, ExportError, SealError, OpenError, MessageLimitReachedError, DeriveKeyPairError, NotSupportedError, init_errors, dntGlobals, dntGlobalThis, init_dnt_shims, NativeAlgorithm, init_algorithm, Mode, KemId, KdfId, AeadId, init_identifiers, INPUT_LENGTH_LIMIT, INFO_LENGTH_LIMIT, MINIMUM_PSK_LENGTH, EMPTY, BYTE_TO_BIGINT_256, init_consts, SUITE_ID_HEADER_KEM, init_kemInterface, HPKE_VERSION, HkdfNative, HkdfSha256Native, HkdfSha384Native, HkdfSha512Native, init_hkdf, isCryptoKeyPair, init_misc, LABEL_EAE_PRK, LABEL_SHARED_SECRET, Dhkem, init_dhkem, KEM_USAGES, LABEL_DKP_PRK, LABEL_SK, init_dhkemPrimitives, Bignum, init_bignum, LABEL_CANDIDATE, ORDER_P_256, ORDER_P_384, ORDER_P_521, PKCS8_ALG_ID_P_256, PKCS8_ALG_ID_P_384, PKCS8_ALG_ID_P_521, EC_P_256_PARAMS, EC_P_384_PARAMS, EC_P_521_PARAMS, Ec, init_ec, init_xCryptoKey, init_xCurve, init_hybridkem, AEAD_USAGES, init_aeadEncryptionContext, _endianTestBuffer, _endianTestBytes, isLE2, init_noble, init_hash2, _HMAC, hmac, init_hmac, init_md2, U32_MASK642, _32n2, init_u642, init_sha2, _0n, _1n, _2n, _7n, _256n, _0x71n, SHA3_PI, SHA3_ROTL, _SHA3_IOTA, IOTAS, SHA3_IOTA_H, SHA3_IOTA_L, init_sha3, init_modular, init_curve, init_montgomery, init_mod, AesGcmContext, Aes128Gcm, Aes256Gcm, init_aesGcm, init_exportOnly, init_emitNotSupported, LABEL_SEC, ExporterContextImpl, RecipientExporterContextImpl, SenderExporterContextImpl, init_exporterContext, EncryptionContextImpl, init_encryptionContext, __classPrivateFieldGet, __classPrivateFieldSet, _Mutex_locked, Mutex, init_mutex, __classPrivateFieldGet2, __classPrivateFieldSet2, _RecipientContextImpl_mutex, RecipientContextImpl, init_recipientContext, __classPrivateFieldGet3, __classPrivateFieldSet3, _SenderContextImpl_mutex, SenderContextImpl, init_senderContext, LABEL_BASE_NONCE, LABEL_EXP, LABEL_INFO_HASH, LABEL_KEY, LABEL_PSK_ID_HASH, LABEL_SECRET, SUITE_ID_HEADER_HPKE, CipherSuiteNative, init_cipherSuiteNative, DhkemP256HkdfSha256Native, DhkemP384HkdfSha384Native, DhkemP521HkdfSha512Native, init_dhkemNative, CipherSuite, DhkemP256HkdfSha256, DhkemP384HkdfSha384, DhkemP521HkdfSha512, HkdfSha256, HkdfSha384, HkdfSha512, init_native, ALG_NAME, PKCS8_ALG_ID_X25519, BASE_POINT_X25519, X25519, init_x25519, DhkemX25519HkdfSha256, init_dhkemX25519, PKCS8_ALG_ID_X448, init_x448, init_dhkemX448, init_mod2, init_hpke2, isLE3, wrapCipher, init_utils2, encodeStr, sigma16, sigma32, sigma16_32, sigma32_32, BLOCK_LEN, BLOCK_LEN32, MAX_COUNTER, U32_EMPTY, _XorStreamPRG, createPRG, init_arx, Poly1305, poly1305, init_poly1305, chacha_exports, chacha20orig, chacha20, xchacha20, chacha8, chacha12, ZEROS16, updatePadded, ZEROS32, _poly1305_aead, chacha20poly1305, xchacha20poly1305, rngChacha20, rngChacha8, init_chacha, init_makeAead, init_makeKdfImpl, init_makeDhKem, init_makeHpke, defaultRng, init_rng, crypto2, init_cryptoNode, isLE4, swap32IfBE3, hasHexBuiltin2, hexes2, asciis, Hash, init_utils3, HashMD3, SHA256_IV3, SHA384_IV3, SHA512_IV3, init_md3, U32_MASK643, _32n3, shrSH3, shrSL3, rotrSH3, rotrSL3, rotrBH3, rotrBL3, rotlSH2, rotlSL2, rotlBH2, rotlBL2, add3L3, add3H3, add4L3, add4H3, add5L3, add5H3, init_u643, SHA256_K, SHA256_W, SHA256, K512, SHA512_Kh, SHA512_Kl, SHA512_W_H, SHA512_W_L, SHA512, SHA384, sha2563, sha5122, sha3842, init_sha22, _0n2, _1n2, isPosBig, bitMask, notImplemented, init_utils4, _0n3, _1n3, _2n2, _3n, _4n, _5n, _7n2, _8n, _9n, _16n, isNegativeLE, FIELD_FIELDS, init_modular2, _0n4, _1n4, pointPrecomputes, pointWindowSizes, wNAF, init_curve2, _0n5, _1n5, _2n3, _8n2, PrimeEdwardsPoint, init_edwards, os2ip, _DST_scalar, init_hash_to_curve, _0n6, _1n6, _2n4, init_montgomery2, ed25519_exports, _0n7, _1n7, _2n5, _3n2, _5n2, _8n3, ed25519_CURVE_p, ed25519_CURVE, ED25519_SQRT_M1, Fp, Fn, ed25519Defaults, ed25519, ed25519ctx, ed25519ph, x25519, ELL2_C1, ELL2_C2, ELL2_C3, ELL2_C1_EDWARDS, ed25519_hasher, SQRT_M1, SQRT_AD_MINUS_ONE, INVSQRT_A_MINUS_D, ONE_MINUS_D_SQ, D_MINUS_ONE_SQ, invertSqrt, MAX_255B, bytes255ToNumberLE, _RistrettoPoint, ristretto255, ristretto255_hasher, ED25519_TORSION_SUBGROUP, edwardsToMontgomery, RistrettoPoint, hashToCurve, encodeToCurve, hashToRistretto255, hash_to_ristretto255, init_ed25519, _0n8, _1n8, _2n6, _7n3, _256n2, _0x71n2, SHA3_PI2, SHA3_ROTL2, _SHA3_IOTA2, IOTAS2, SHA3_IOTA_H2, SHA3_IOTA_L2, rotlH, rotlL, Keccak, genShake, shake2562, init_sha32, ed448_exports, ed448_CURVE, E448_CURVE, shake256_114, shake256_64, _1n9, _2n7, _3n3, _4n2, _11n, _22n, _44n, _88n, _223n, Fp2, Fn2, Fp448, Fn448, ED448_DEF, ed448, ed448ph, E448, x448, ELL2_C12, ELL2_J, ed448_hasher, ONE_MINUS_D, ONE_MINUS_TWO_D, SQRT_MINUS_D, INVSQRT_MINUS_D, invertSqrt2, _DecafPoint, decaf448, decaf448_hasher, ED448_TORSION_SUBGROUP, DecafPoint, hashToCurve2, encodeToCurve2, hashToDecaf448, hash_to_decaf448, edwardsToMontgomery2, init_ed448, HMAC, hmac2, init_hmac2, divNearest, DERErr, DER, _0n9, _1n10, _2n8, _3n4, _4n3, init_weierstrass, init_shortw_utils, nist_exports, p256_CURVE, p384_CURVE, p521_CURVE, Fp256, Fp384, Fp521, p256, p256_hasher, p384, p384_hasher, p521, secp256r1, secp384r1, secp521r1, p521_hasher, init_nist, init_makeNobleSignatureImpl, defaultCryptoProvider, init_provider, init_getCiphersuiteImpl, init_resumption, SHA256_K2, SHA256_W2, SHA2_32B, _SHA256, K5122, SHA512_Kh2, SHA512_Kl2, SHA512_W_H2, SHA512_W_L2, SHA2_64B, _SHA512, _SHA384, sha2564, sha5123, sha3843, init_sha23, _HMAC2, hmac3, init_hmac3, init_makeHashImpl2, init_makeNobleSignatureImpl2, BLOCK_SIZE, ZEROS162, ZEROS322, POLY, mul2, swapLE, estimateWindow, GHASH, Polyval, ghash, polyval, init_polyval, BLOCK_SIZE2, BLOCK_SIZE32, EMPTY_BLOCK, POLY2, sbox, rotr32_8, rotl32_8, tableEncoding, xPowers, gcm, _CMAC, cmac, init_aes, init_makeAead2, init_makeKdfImpl2, init_makeDhKem2, init_makeHpke2, init_rng2, nobleCryptoProvider, init_provider2, mlsPublicMessageEncoder, encodeMlsPublicMessage, mlsWelcomeEncoder, encodeMlsWelcome, mlsPrivateMessageEncoder, encodeMlsPrivateMessage, mlsGroupInfoEncoder, encodeMlsGroupInfo, mlsKeyPackageEncoder, encodeMlsKeyPackage, mlsMessageContentEncoder, encodeMlsMessageContent, decodeMlsMessageContent, mlsMessageEncoder, encodeMlsMessage, decodeMlsMessage, init_message, greaseValues, defaultGreaseConfig, init_grease, init_defaultCapabilities, init_src, CANONICAL_UUID, ASCII_UUID_ANY_CASE, CANONICAL_UUID_BYTES, init_mls_sender_binding, DEFAULT_CIPHERSUITE, rejectStandaloneProposals, MLSGroupManager, init_mls_group, DOMAIN, NONCE_BYTES3, init_owner_sync, init_mls_delivery_order, init_mls_presend_epoch, dist_exports, init_dist2, DIR_MODE, FILE_MODE, init_secure_file, SYNC_LOCK_STALE_MS, pendingKpPath, DECRYPTED_IDS_FILE, init_mls_state, init_mls_kp_pool, PACKAGE, FALLBACK, MAX_LEN, DISALLOWED, init_client_version, RoomSendNotWritten, init_room_send_error, TURN_TOKEN_TTL_MS, TURN_TOKEN_MAX, PARKED_TOMBSTONE_MAX, TurnTokenRegistry, init_turn_token, OWN_STALE_RE, MAX_FILE_SEND_BYTES, MAX_FILE_SEND_PATH_BYTES, ROOM_ID_RE, MIME_BY_EXT, OUTBOX_FOLDER, KEEP_ASIDE, DENY_BASENAME, DENY_COMPONENT, FileSendPolicy, init_file_send_policy, TOOL_INVOKE_SPAN_NAME, UNCLASSIFIED_ERROR, KNOWN_TOOL_ERROR_CODES, KNOWN_CODES, CLASS_NAME_RE, TOOL_NAME_RE, ERROR_TEXT_CODES, _conversation, init_tool_telemetry, TURN_FAILURE_CODES, CODES, TurnFailure, NOTICE_RE, init_turn_failure, ROOM_ID_RE2, REASON, NO_ATTACHMENT_NOTICE, NOTICE_RE2, NOTICE_MAX, FILE_SEND_RULE_CONTENT, FILE_SEND_UNAVAILABLE, RENDERED_LINES, RENDERED_MAX, SYSTEM_PREFIX_RE, CF_RE, FILE_NOUN, FILENAME, SENT_PAST, SENT_BARE, TO_THIS_MESSAGE, CLAIM_MAX, AV_HISTORY_PREFIX, SENDING_NOW, HERES, SEE_ATTACHED, OWN_UPLOAD, ATTACHABLE, PASSIVE, ATTACHED_OPENER, PAST_MARK, init_file_send_failure, CredentialStore, init_credential_store, init_crypto_helpers, STATE_FILE, LEGACY_STATE_FILE, init_state, ACTIVATION_DOMAIN, UUID_RE2, init_transport2, A2ALogGate, init_a2a_log_gate, NOT_A_MEMBER_DETAIL, init_mls_membership_probe, FIRST_DIRTY_DELAY_MS, RETRY_BASE_DELAYS_MS, MAX_RETRY_DELAY_MS, JITTER_FRACTION, HistoryBackupScheduler, init_history_backup_scheduler, FILE_MODE2, init_history_recovery_file, TENANT_ID_PATTERN, DIR_MODE2, FILE_MODE3, HISTORY_RECOVERY_VERIFY_TIMEOUT_MS, VERIFY_TIMEOUT_MESSAGE, HistoryRecoveryVerificationTimeoutError, init_history_recovery_code, ACTIONS, init_decision_reply, KP_BACKOFF_INITIAL_MS, KP_BACKOFF_MAX_MS, KP_RACE_RETRY_MS, KP_RACE_RETRY_LIMIT, consoleLogger, short2, WelcomeKeyPackageBackoff, init_welcome_kp_backoff, ZWJ, DEFAULT_IGNORABLE, KEPT_IGNORABLE, OBJECT_REPLACEMENT, CONTROL, KEPT_CONTROL, INVISIBLE2, BRAILLE_BLANK, init_invisible_text, UUID_RE3, CANONICAL_UUID_RE, WELCOME_ROUTING_FIELDS, UNKNOWN_DEVICE_LABEL, REMAP_REFUSED_NOTICE, NOTICE_PER_CONVERSATION_MS, NOTICE_GLOBAL_WINDOW_MS, NOTICE_GLOBAL_CAP, SecurityNoticeLimiter, KP_IDENTITY_BACKOFF_INITIAL_MS, KP_IDENTITY_BACKOFF_MAX_MS, KpIdentityBackoff, SECURITY_SUMMARY_MIN_MS, SECURITY_SUMMARY_MAX_MS, SecurityCounters, init_dm_group_pins, health, healthDetail, selfTestRun, SENDER_BINDING_SELF_TEST_FAILED_CODE, SENDER_BINDING_SELF_TEST_TOOL, incidentTaken, init_sender_binding, DELIVERY_PULL_MS, DELIVERY_TICK_MS, FULL_WELCOME_SWEEP_MS, MAX_QUIET_PULL_MS, A2A_QUIET_RECONCILE_MS, A2A_QUIET_JITTER_MS, DeliveryCadence, A2aReconcileCadence, init_delivery_cadence, CONTROL_MESSAGE_TYPES, init_message_kind, LOCAL_API_TOKEN_FILE, LOCAL_API_TOKEN_HEADER, LOCAL_API_BODY_LIMIT, LOCAL_API_HEADERS_TIMEOUT_MS, LOCAL_API_REQUEST_TIMEOUT_MS, LOCAL_API_MAX_CONNECTIONS, LOCAL_API_TOKEN_HINT, TOKEN_RE, LocalApiTokenError, LOOPBACK_REMOTES, LOOPBACK_HOSTNAMES, BodyTooLargeError, REFUSAL_RESPONSE, KNOWN_ROUTES, tokensByPort, init_local_api, http_handlers_exports, init_http_handlers, InvalidJsonError, init_local_api_server, init_atomic_file, ONTURN_ENV, ONTURN_RECORDS_FILE, NONCE_RE, MAX_MEMBERS_PER_GROUP, MAX_GROUPS, MAX_ROOTS, MAX_NONCES, MAX_RECORDS_BYTES, MAX_RECORDS_WRITE_BYTES, BOOT_TOLERANCE_S, PS_LINE, NONCE_IN_ENV, PS_ENV, defaultSignal, OnTurnStopIncomplete, shared, OnTurnRegistry, init_onturn_stop, AV_EFFECTIVE_V1, DEFAULT_OFF_CALLBACK_TIMEOUT_MS, DEFAULT_STOP_HOOK_TIMEOUT_MS, DEFAULT_NOT_ON_BOUND_S, MIN_NOT_ON_BOUND_S, MAX_NOT_ON_BOUND_S, BOUND_RETRY_BASE_MS, BOUND_RETRY_MAX_MS, NOT_ON_BOUND_FIELD, INTENT_SEQ_FIELD, WAS_ON_MARKER_FILE, OffCallbackTimeout, OnTurnStopUnverified, StopHookTimeout, processOnPeriodSeq, PROCESS_BOOT_ID, FullPermissionsCore, init_full_permissions, OFF_SEQUENCE_FAILED_CODE, OFF_SEQUENCE_TOOL_NAME, OFF_SEQUENCE_SPAN, BOUND_STOP_SPAN, FAMILY_RE, NOTICE_RE3, ROOT_EVICTED_SPAN, init_off_sequence_report, history_backup_client_exports, HISTORY_RESTORE_TIMEOUT_MS, HISTORY_RESTORE_RESPONSE_MAX_BYTES, HISTORY_ENVELOPE_MIN_BYTES, HISTORY_AAD_PREFIX, UUID_RE4, GENERATION_RESPONSE_KEYS, utf8Encoder, utf8Decoder, HistoryBackupClient, init_history_backup_client, openclaw_compat_exports, defaultImporter, HEARTBEAT_CANDIDATES, _heartbeatFn, init_openclaw_compat, mcp_proxy_helpers_exports, init_mcp_proxy_helpers, ROOM_AGENT_TYPES, STATUS_ALERT_TEXT_LIMITS, STATUS_ALERT_SEVERITIES, CREDENTIAL_MESSAGE_TYPES, CATCHUP_MESSAGE_TYPES, ROOM_PROTOCOL_TYPES, POLL_INTERVAL_MS, RECONNECT_BASE_MS, UUID_RE5, KpIdentityRefused, RECONNECT_MAX_MS, PENDING_POLL_INTERVAL_MS, PENDING_POLL_SILENCE_MS, HISTORY_RESTORE_TIMEOUT_MS2, ROOM_ROSTER_REFRESH_TIMEOUT_MS, ROOM_ROSTER_OWNER_MAX_AGE_MS, TimedSet, HISTORY_UPLOAD_TIMEOUT_MS, CANONICAL_TIMESTAMP_RE, OUTBOUND_DEDUPE_WINDOW_MS, OUTBOUND_DEDUPE_MAX_SUPPRESS_MS, OUTBOUND_DEDUPE_MAX, OUTBOUND_DEDUPE_TYPES, RETRY_CANDIDATE_TTL_MS, RETRY_CANDIDATE_MAX, _turnConversation, _turnTokenStore, _drTurnStore, PERSON_INVOLVED_WINDOW_MS, ATTESTED_INBOUND_MAX, UNMAPPED_RECONCILE_COOLDOWN_MS, TOPIC_ID_RE, ROOM_FULFIL_COOLDOWN_MS, SecureChannel, init_channel, FAMILY_RE2, OwnerEpochStore, init_owner_epoch, init_types, DEFAULT_API_URL, DEFAULT_HTTP_PORT, init_account_config, init_lifecycle, OPENCLAW_FILE_TOOL, _turnSandbox, MEDIA_ROOTS_CANDIDATES, _mediaRootsFn, _mediaRootsGapLogged, OpenClawTurnRuns, WORKSPACE_CANDIDATES, SANDBOX_STATUS_CANDIDATES, OpenClawFileSendError, init_openclaw_file_send, init_openclaw_sender, _ocRuntime, _channels, _legacyTurnRuns, agentVaultPlugin, init_openclaw_plugin, init_gateway_send, init_llm_response_parser, OPENROUTER_PRICING, init_llm_pricing_openrouter, LEGACY_PRICING, PRICING, init_llm_cost, init_url_origin, traceStore, init_fetch_interceptor, init_tool_audit, init_harness_compat, AUTH_RE, BILLING_RE, RATE_RE, MODEL_GONE_RE, UNREACHABLE_RE, init_openclaw_turn_failure, SHUTDOWN_NOTICE_MS, KEEP_UNANSWERED_MS, OpenClawShutdownNotices, init_openclaw_shutdown_notice, init_openclaw_room_taint, _shutdownNotices, managedRoutesRequested, _turnRuns, init_openclaw_entry, util, objectUtil, ZodParsedType, getParsedType, init_util, ZodIssueCode, ZodError, init_ZodError, errorMap, en_default, init_en, overrideErrorMap, init_errors2, makeIssue, ParseStatus, INVALID, DIRTY, OK, isAborted, isDirty, isValid, isAsync, init_parseUtil, init_typeAliases, errorUtil, init_errorUtil, ParseInputLazyPath, handleResult, ZodType, cuidRegex, cuid2Regex, ulidRegex, uuidRegex, nanoidRegex, jwtRegex, durationRegex, emailRegex, _emojiRegex, emojiRegex, ipv4Regex, ipv4CidrRegex, ipv6Regex, ipv6CidrRegex, base64Regex, base64urlRegex, dateRegexSource, dateRegex, ZodString, ZodNumber, ZodBigInt, ZodBoolean, ZodDate, ZodSymbol, ZodUndefined, ZodNull, ZodAny, ZodUnknown, ZodNever, ZodVoid, ZodArray, ZodObject, ZodUnion, getDiscriminator, ZodDiscriminatedUnion, ZodIntersection, ZodTuple, ZodRecord, ZodMap, ZodSet, ZodFunction, ZodLazy, ZodLiteral, ZodEnum, ZodNativeEnum, ZodPromise, ZodEffects, ZodOptional, ZodNullable, ZodDefault, ZodCatch, ZodNaN, ZodBranded, ZodPipeline, ZodReadonly, late, ZodFirstPartyTypeKind, stringType, numberType, nanType, bigIntType, booleanType, dateType, symbolType, undefinedType, nullType, anyType, unknownType, neverType, voidType, arrayType, objectType, strictObjectType, unionType, discriminatedUnionType, intersectionType, tupleType, recordType, mapType, setType, functionType, lazyType, literalType, enumType, nativeEnumType, promiseType, effectsType, optionalType, nullableType, preprocessType, pipelineType, init_types2, init_external, init_v3, util_exports, Cached, EVALUATING, captureStackTrace, allowsEval, getParsedType2, propertyKeyTypes, primitiveTypes, NUMBER_FORMAT_RANGES, BIGINT_FORMAT_RANGES, highSurrogate, Class, installing, broke, breaker, CONSTANT_CATCH, init_util2, _a2, _zodDesc, _E, $ZodAsyncError, $ZodEncodeError, globalConfig, init_core, _messageDesc, _issuesDesc, _installedToString, initializer, $ZodError, $ZodRealError, init_errors3, _parse, parse, _parseAsync, parseAsync, _safeParse, safeParse, _safeParseAsync, safeParseAsync, COMPILE_INVALID, COMPILE_FALLBACK, validate, validateAsync, _encode, _decode, _encodeAsync, _decodeAsync, _safeEncode, _safeDecode, _safeEncodeAsync, _safeDecodeAsync, init_parse, cuid, cuid2, ulid, xid, ksuid, nanoid, duration, guid, uuid2, email, _emoji, ipv4, ipv6, cidrv4, cidrv6, base64, base64url, httpProtocol, e164, dateSource, date, anyString, integer, number, boolean, _null, lowercase, uppercase, init_regexes, $ZodCheck, _whenHasLength, numericOriginMap, $ZodCheckLessThan, $ZodCheckGreaterThan, $ZodCheckMultipleOf, $ZodCheckNumberFormat, $ZodCheckMaxLength, $ZodCheckMinLength, $ZodCheckLengthEquals, $ZodCheckStringFormat, $ZodCheckRegex, $ZodCheckLowerCase, $ZodCheckUpperCase, $ZodCheckIncludes, $ZodCheckStartsWith, $ZodCheckEndsWith, $ZodCheckOverwrite, init_checks, Doc, init_doc, version, init_versions, $ZodType, toStandardResult, $ZodString, $ZodStringFormat, $ZodGUID, $ZodUUID, $ZodEmail, URL_BAD_FORMAT, URL_UNPARSEABLE, asciiTabOrNewline, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodISODateTime, $ZodISODate, $ZodISOTime, $ZodISODuration, $ZodIPv4, ipv6Alphabet, $ZodIPv6, $ZodCIDRv4, $ZodCIDRv6, base64Charset, $ZodBase64, base64urlCharset, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodNull, $ZodUnknown, $ZodNever, arraySize, $ZodArray, NO_SYMBOL_KEYS, $ZodObject, $ZodObjectJIT, $ZodUnion, $ZodDiscriminatedUnion, $ZodIntersection, $ZodRecord, $ZodEnum, $ZodLiteral, $ZodTransform, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodCatch, $ZodPipe, $ZodPreprocess, $ZodReadonly, $ZodCustom, init_schemas, $ZodCyclicError, STATE, NO_ISSUES, recursive, NONE, ASSUMED, PROVEN, handoff, open5, memo, init_memoizer, error, init_en2, init_locales, _a3, $ZodRegistry, globalRegistry, init_registries, init_compile, init_api, FOLDABLE_KEYS, UNION_KEYS, createToJSONSchemaMethod, createStandardJSONSchemaMethod, init_to_json_schema, narrowMin, narrowMax, narrowBoth, addDivisor, addPattern, intersectMime, setFormat, minContributor, maxContributor, formatContributor, contributors, formatMap, exactPatterns, exactPattern, stringProcessor, numberProcessor, booleanProcessor, bigintProcessor, symbolProcessor, nullProcessor, undefinedProcessor, voidProcessor, neverProcessor, anyProcessor, unknownProcessor, dateProcessor, enumProcessor, literalProcessor, nanProcessor, templateLiteralProcessor, fileProcessor, successProcessor, customProcessor, functionProcessor, transformProcessor, mapProcessor, setProcessor, arrayProcessor, objectProcessor, unionProcessor, intersectionProcessor, tupleProcessor, pendingRecords, recordProcessor, nullableProcessor, nonoptionalProcessor, UNREPRESENTABLE_DEFAULT, defaultProcessor, prefaultProcessor, catchProcessor, pipeProcessor, readonlyProcessor, promiseProcessor, optionalProcessor, lazyProcessor, allProcessors, init_json_schema_processors, init_json_schema, init_core2, init_parse2, ZodMiniType, ZodMiniObject, init_schemas2, init_checks2, init_iso, init_coerce, init_external2, init_v4_mini, init_zod_compat, init_checks3, _installedErrorProtos, initializer2, ZodRealError, init_errors4, parse2, parseAsync2, safeParse3, safeParseAsync3, encode3, decode2, encodeAsync2, decodeAsync2, safeEncode2, safeDecode2, safeEncodeAsync2, safeDecodeAsync2, init_parse3, ZodType2, _ZodString, ZodString2, ZodStringFormat, ZodISODateTime, ZodISODate, ZodISOTime, ZodISODuration, ZodEmail, ZodGUID, ZodUUID, ZodURL, ZodEmoji, ZodNanoID, ZodCUID, ZodCUID2, ZodULID, ZodXID, ZodKSUID, ZodIPv4, ZodIPv6, ZodCIDRv4, ZodCIDRv6, ZodBase64, ZodBase64URL, ZodE164, ZodJWT, ZodNumber2, ZodNumberFormat, ZodBoolean2, ZodNull2, ZodUnknown2, ZodNever2, ZodArray2, ZodObject2, ZodUnion2, ZodDiscriminatedUnion2, ZodIntersection2, ZodRecord2, ZodEnum2, ZodLiteral2, ZodTransform, ZodOptional2, ZodExactOptional, ZodNullable2, ZodDefault2, ZodPrefault, ZodNonOptional, ZodCatch2, ZodPipe, ZodPreprocess, ZodReadonly2, ZodCustom, init_schemas3, ZodFirstPartyTypeKind2, init_compat, iso_exports2, init_iso2, init_coerce2, init_external3, init_classic, init_v4, LATEST_PROTOCOL_VERSION, DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, RELATED_TASK_META_KEY, JSONRPC_VERSION, AssertObjectSchema, ProgressTokenSchema, CursorSchema, TaskCreationParamsSchema, TaskMetadataSchema, RelatedTaskMetadataSchema, RequestMetaSchema, BaseRequestParamsSchema, TaskAugmentedRequestParamsSchema, isTaskAugmentedRequestParams, RequestSchema, NotificationsParamsSchema, NotificationSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, isJSONRPCRequest, JSONRPCNotificationSchema, isJSONRPCNotification, JSONRPCResultResponseSchema, isJSONRPCResultResponse, ErrorCode, JSONRPCErrorResponseSchema, isJSONRPCErrorResponse, JSONRPCMessageSchema, JSONRPCResponseSchema, EmptyResultSchema, CancelledNotificationParamsSchema, CancelledNotificationSchema, IconSchema, IconsSchema, BaseMetadataSchema, ImplementationSchema, FormElicitationCapabilitySchema, ElicitationCapabilitySchema, ClientTasksCapabilitySchema, ServerTasksCapabilitySchema, ClientCapabilitiesSchema, InitializeRequestParamsSchema, InitializeRequestSchema, isInitializeRequest, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, PingRequestSchema, ProgressSchema, ProgressNotificationParamsSchema, ProgressNotificationSchema, PaginatedRequestParamsSchema, PaginatedRequestSchema, PaginatedResultSchema, TaskStatusSchema, TaskSchema, CreateTaskResultSchema, TaskStatusNotificationParamsSchema, TaskStatusNotificationSchema, GetTaskRequestSchema, GetTaskResultSchema, GetTaskPayloadRequestSchema, GetTaskPayloadResultSchema, ListTasksRequestSchema, ListTasksResultSchema, CancelTaskRequestSchema, CancelTaskResultSchema, ResourceContentsSchema, TextResourceContentsSchema, Base64Schema, BlobResourceContentsSchema, RoleSchema, AnnotationsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ResourceRequestParamsSchema, ReadResourceRequestParamsSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestParamsSchema, SubscribeRequestSchema, UnsubscribeRequestParamsSchema, UnsubscribeRequestSchema, ResourceUpdatedNotificationParamsSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestParamsSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, AudioContentSchema, ToolUseContentSchema, EmbeddedResourceSchema, ResourceLinkSchema, ContentBlockSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolAnnotationsSchema, ToolExecutionSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestParamsSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, ListChangedOptionsBaseSchema, LoggingLevelSchema, SetLevelRequestParamsSchema, SetLevelRequestSchema, LoggingMessageNotificationParamsSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, ToolChoiceSchema, ToolResultContentSchema, SamplingContentSchema, SamplingMessageContentBlockSchema, SamplingMessageSchema, CreateMessageRequestParamsSchema, CreateMessageRequestSchema, CreateMessageResultSchema, CreateMessageResultWithToolsSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema, UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema, LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema, EnumSchemaSchema, PrimitiveSchemaDefinitionSchema, ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema, ElicitRequestParamsSchema, ElicitRequestSchema, ElicitationCompleteNotificationParamsSchema, ElicitationCompleteNotificationSchema, ElicitResultSchema, ResourceTemplateReferenceSchema, PromptReferenceSchema, CompleteRequestParamsSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema, McpError, UrlElicitationRequiredError, init_types3, init_interfaces, ignoreOverride, defaultOptions, getDefaultOptions, init_Options, getRefs, init_Refs, init_errorMessages, getRelativePath, init_getRelativePath, init_any, init_array2, init_bigint, init_boolean, init_branded, parseCatchDef, init_catch, integerDateParser, init_date, init_default, init_effects, init_enum, isJsonSchema7AllOfType, init_intersection, init_literal, emojiRegex2, zodPatterns, ALPHA_NUMERIC, init_string2, init_record, init_map, init_nativeEnum, init_never, init_null, primitiveMappings, asAnyOf, init_union, init_nullable, init_number2, init_object, parseOptionalDef, init_optional2, parsePipelineDef, init_pipeline, init_promise, init_set, init_tuple, init_undefined, init_unknown, parseReadonlyDef, init_readonly, selectParser, init_selectParser, get$ref, addMeta, init_parseDef, init_parseTypes, zodToJsonSchema, init_zodToJsonSchema, init_esm, init_zod_json_schema_compat, DEFAULT_REQUEST_TIMEOUT_MSEC, Protocol, init_protocol, require_code, require_scope, require_codegen, require_util, require_names, require_errors, require_boolSchema, require_rules, require_applicability, require_dataType, require_defaults, require_code2, require_keyword, require_subschema, require_fast_deep_equal, require_json_schema_traverse, require_resolve, require_validate, require_validation_error, require_ref_error, require_compile, require_data, require_utils, require_schemes, require_fast_uri, require_uri, require_core, require_id, require_ref, require_core2, require_limitNumber, require_multipleOf, require_ucs2length, require_limitLength, require_pattern, require_limitProperties, require_required, require_limitItems, require_equal, require_uniqueItems, require_const, require_enum, require_validation, require_additionalItems, require_items, require_prefixItems, require_items2020, require_contains, require_dependencies, require_propertyNames, require_additionalProperties, require_properties, require_patternProperties, require_not, require_anyOf, require_oneOf, require_allOf, require_if, require_thenElse, require_applicator, require_format, require_format2, require_metadata, require_draft7, require_types, require_discriminator, require_json_schema_draft_07, require_ajv, require_formats, require_limit, require_dist, import_ajv, import_ajv_formats, AjvJsonSchemaValidator, init_ajv_provider, ExperimentalServerTasks, init_server, init_helpers, Server, init_server2, COMPLETABLE_SYMBOL, McpZodTypeKind, init_completable, init_uriTemplate, TOOL_NAME_REGEX, init_toolNameValidation, ExperimentalMcpServerTasks, init_mcp_server, init_zod, McpServer, EMPTY_OBJECT_JSON_SCHEMA, EMPTY_COMPLETION_RESULT, init_mcp, RequestError, toRequestError, GlobalRequest, Request2, newHeadersFromIncoming, wrapBodyStream, newRequestFromIncoming, getRequestCache, requestCache, incomingKey, urlKey, headersKey, abortControllerKey, getAbortController, requestPrototype, newRequest, responseCache, getResponseCache, cacheKey, GlobalResponse, Response2, buildOutgoingHttpHeaders, X_ALREADY_SENT, outgoingEnded, handleRequestError, handleFetchError, handleResponseError, flushHeaders, responseViaCache, isPromise, responseViaResponseObject, getRequestListener, init_dist22, require_content_type, import_content_type, init_mediaType, DEFAULT_MAX_REQUEST_BODY_SIZE, MAX_BATCH_SIZE, init_requestBody, DEFAULT_SSE_KEEP_ALIVE_MS, MAX_TIMER_DELAY_MS, init_sseKeepAlive, WebStandardStreamableHTTPServerTransport, init_webStandardStreamableHttp, StreamableHTTPServerTransport, init_streamableHttp, AgentVaultMcpServer, init_mcp_server2, warnedNoAuth, init_mcp_handlers, init_skill_manifest, init_skill_invoker, spanBuffer, init_skill_telemetry, PolicyEnforcer, init_policy_enforcer, BARE, NEEDS_ESCAPE, LITERAL_IN_ANSI_C, HEX, init_shell_word, VERSION, init_index;
|
|
20612
20738
|
var init_dist = __esm({
|
|
20613
20739
|
"../plugin/dist/index.js"() {
|
|
20614
20740
|
"use strict";
|
|
@@ -20800,7 +20926,7 @@ var init_dist = __esm({
|
|
|
20800
20926
|
MENTION_RE = /@([\w-]+)/gi;
|
|
20801
20927
|
BROADCAST_NAMES = /* @__PURE__ */ new Set(["all", "everyone"]);
|
|
20802
20928
|
PRIVATE_ROOM_TURN_NOTE = "(private room: just you and your person \u2014 every message here is for you; answer it)";
|
|
20803
|
-
GENERIC_AGENT_NAMES = /* @__PURE__ */ new Set(["default", "agent", "assistant", "bot", "main"]);
|
|
20929
|
+
GENERIC_AGENT_NAMES = /* @__PURE__ */ new Set(["default", "agent", "assistant", "bot", "main", "unnamed", "unnamed agent"]);
|
|
20804
20930
|
}
|
|
20805
20931
|
});
|
|
20806
20932
|
init_safe_attachment_name = __esm2({
|
|
@@ -32756,10 +32882,24 @@ var init_dist = __esm({
|
|
|
32756
32882
|
};
|
|
32757
32883
|
}
|
|
32758
32884
|
});
|
|
32885
|
+
init_invisible_text = __esm2({
|
|
32886
|
+
"../crypto/dist/invisible-text.js"() {
|
|
32887
|
+
"use strict";
|
|
32888
|
+
ZWJ = 8205;
|
|
32889
|
+
DEFAULT_IGNORABLE = new RegExp("\\p{Default_Ignorable_Code_Point}", "gu");
|
|
32890
|
+
KEPT_IGNORABLE = /* @__PURE__ */ new Set([8204, ZWJ, 65039]);
|
|
32891
|
+
OBJECT_REPLACEMENT = new RegExp(String.fromCodePoint(65532), "g");
|
|
32892
|
+
CONTROL = new RegExp("\\p{Cc}", "gu");
|
|
32893
|
+
KEPT_CONTROL = /* @__PURE__ */ new Set([9, 10, 13]);
|
|
32894
|
+
INVISIBLE2 = /[\s\p{Cf}\p{Default_Ignorable_Code_Point}]/gu;
|
|
32895
|
+
BRAILLE_BLANK = String.fromCodePoint(10240);
|
|
32896
|
+
}
|
|
32897
|
+
});
|
|
32759
32898
|
init_dm_group_pins = __esm2({
|
|
32760
32899
|
"src/dm-group-pins.ts"() {
|
|
32761
32900
|
"use strict";
|
|
32762
32901
|
init_mls_sender_binding();
|
|
32902
|
+
init_invisible_text();
|
|
32763
32903
|
UUID_RE3 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
32764
32904
|
CANONICAL_UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
32765
32905
|
WELCOME_ROUTING_FIELDS = [
|
|
@@ -34327,6 +34467,8 @@ var init_dist = __esm({
|
|
|
34327
34467
|
"decision_response",
|
|
34328
34468
|
"artifact_share"
|
|
34329
34469
|
]);
|
|
34470
|
+
STATUS_ALERT_TEXT_LIMITS = { title: 120, message: 2e3 };
|
|
34471
|
+
STATUS_ALERT_SEVERITIES = /* @__PURE__ */ new Set(["info", "warning", "error", "critical"]);
|
|
34330
34472
|
CREDENTIAL_MESSAGE_TYPES = /* @__PURE__ */ new Set([
|
|
34331
34473
|
"credential_grant",
|
|
34332
34474
|
"credential_revoke",
|
|
@@ -34512,6 +34654,56 @@ var init_dist = __esm({
|
|
|
34512
34654
|
/** #1094: never let one slow report hold up the rest. */
|
|
34513
34655
|
static _KEY_PROOF_FETCH_TIMEOUT_MS = 1e4;
|
|
34514
34656
|
_keyProofTimer = null;
|
|
34657
|
+
/**
|
|
34658
|
+
* #1889: a group the server refuses a proof for — 404 "MLS group not found",
|
|
34659
|
+
* or 403 "Not a member of this group" outside the join grace — is not asked
|
|
34660
|
+
* again for this long (Hermes's #1543 window). A Welcome into the group, or a
|
|
34661
|
+
* `room_joined` for its room, ends the pause at once.
|
|
34662
|
+
*/
|
|
34663
|
+
static _KEY_PROOF_PAUSE_MS = 24 * 60 * 60 * 1e3;
|
|
34664
|
+
/**
|
|
34665
|
+
* #1889 review: a 403 pauses for ONE hour, not a day. A live member whose
|
|
34666
|
+
* roster entry lags still answers 403, and a paused proof reads as `stale`
|
|
34667
|
+
* to the lockout detector, which then cannot repair it on epoch_behind. An
|
|
34668
|
+
* hour bounds that while still cutting a dead room's 144 posts a day to 24.
|
|
34669
|
+
*/
|
|
34670
|
+
static _KEY_PROOF_403_PAUSE_MS = 60 * 60 * 1e3;
|
|
34671
|
+
/** When this process started: the join grace also covers a join made just before a restart. */
|
|
34672
|
+
_processStartedAt = Date.now();
|
|
34673
|
+
/**
|
|
34674
|
+
* #1889 review: one room's state is changed by one task at a time. The
|
|
34675
|
+
* reconcile's drop, `joinRoom` and a room Welcome's install all run under
|
|
34676
|
+
* the room's lock, so a re-admit can never be deleted half-way through.
|
|
34677
|
+
*/
|
|
34678
|
+
_roomLocks = /* @__PURE__ */ new Map();
|
|
34679
|
+
/**
|
|
34680
|
+
* #1889 review: `POST /mls/rooms/{id}/init` runs while `joinRoom` holds the
|
|
34681
|
+
* room's lock, and a delivery-queue Welcome for that room waits on the lock
|
|
34682
|
+
* (the pull is serial). Without a bound, a hung init stalled every group's
|
|
34683
|
+
* delivery for Node's 300 s default. It is the only network call made under
|
|
34684
|
+
* a room lock. Static and writable so a test can shorten it.
|
|
34685
|
+
*/
|
|
34686
|
+
static ROOM_INIT_FETCH_TIMEOUT_MS = 1e4;
|
|
34687
|
+
/**
|
|
34688
|
+
* #1889 / #1542: right after a join the server roster can lag this device,
|
|
34689
|
+
* and that lag answers 403 too. Inside this window a 403 pauses nothing: a
|
|
34690
|
+
* paused proof would read as never_proved.
|
|
34691
|
+
*/
|
|
34692
|
+
static _KEY_PROOF_JOIN_GRACE_MS = 30 * 60 * 1e3;
|
|
34693
|
+
/** The backend's detail for a device outside the roster (mls.py report_key_proof). */
|
|
34694
|
+
static KEY_PROOF_NOT_A_MEMBER_DETAIL = "Not a member of this group";
|
|
34695
|
+
/** #1889: group id -> ms until which its key proofs are paused. */
|
|
34696
|
+
_keyProofPausedUntil = /* @__PURE__ */ new Map();
|
|
34697
|
+
/** #1889: group id -> ms this device last joined it from a Welcome. */
|
|
34698
|
+
_mlsGroupJoinedAt = /* @__PURE__ */ new Map();
|
|
34699
|
+
/**
|
|
34700
|
+
* #1889: room id -> how many times `joinRoom` ran for it. A room reconcile
|
|
34701
|
+
* prunes nothing whose count moved while its GET was in flight: the
|
|
34702
|
+
* response predates that (re)join.
|
|
34703
|
+
*/
|
|
34704
|
+
_roomJoinGen = /* @__PURE__ */ new Map();
|
|
34705
|
+
/** #1889: the room reconcile in flight, so overlapping asks share one GET. */
|
|
34706
|
+
_roomReconcileInFlight = null;
|
|
34515
34707
|
_a2aReconcileTimer = null;
|
|
34516
34708
|
_deliveryPulling = false;
|
|
34517
34709
|
_drDeliveryPulling = false;
|
|
@@ -37683,7 +37875,7 @@ ${text}`,
|
|
|
37683
37875
|
*/
|
|
37684
37876
|
sendActivitySpan(spanData) {
|
|
37685
37877
|
if (!this._ws || this._ws.readyState !== WebSocket2.OPEN) return;
|
|
37686
|
-
const pluginVersion = true ? "0.23.
|
|
37878
|
+
const pluginVersion = true ? "0.23.75" : "0.0.0-dev";
|
|
37687
37879
|
const agentName = this.config.agentName ?? "Agent";
|
|
37688
37880
|
const resource = {
|
|
37689
37881
|
"service.name": "agentvault-agent",
|
|
@@ -37994,10 +38186,19 @@ ${text}`,
|
|
|
37994
38186
|
* Encryption is handled by MLS group operations, not per-member DR sessions.
|
|
37995
38187
|
*/
|
|
37996
38188
|
async joinRoom(roomData) {
|
|
38189
|
+
if (!this._persisted) {
|
|
38190
|
+
throw new Error("Channel not initialized");
|
|
38191
|
+
}
|
|
38192
|
+
this._roomJoinGen.set(roomData.roomId, (this._roomJoinGen.get(roomData.roomId) ?? 0) + 1);
|
|
38193
|
+
return this._withRoomLock(roomData.roomId, () => this._joinRoomLocked(roomData));
|
|
38194
|
+
}
|
|
38195
|
+
async _joinRoomLocked(roomData) {
|
|
37997
38196
|
if (!this._persisted) {
|
|
37998
38197
|
throw new Error("Channel not initialized");
|
|
37999
38198
|
}
|
|
38000
38199
|
this._roomRosterRefreshed.delete(roomData.roomId);
|
|
38200
|
+
const priorGroup = this._persisted?.rooms?.[roomData.roomId]?.mlsGroupId;
|
|
38201
|
+
if (priorGroup) this._keyProofPausedUntil.delete(priorGroup);
|
|
38001
38202
|
this._applyRoomAudience(roomData.roomId, roomData.audience);
|
|
38002
38203
|
await libsodium_wrappers_default.ready;
|
|
38003
38204
|
const myDeviceId = this._deviceId;
|
|
@@ -38053,7 +38254,11 @@ ${text}`,
|
|
|
38053
38254
|
},
|
|
38054
38255
|
body: JSON.stringify({
|
|
38055
38256
|
member_device_ids: roomData.members.map((m22) => m22.deviceId)
|
|
38056
|
-
})
|
|
38257
|
+
}),
|
|
38258
|
+
// #1889 review: bounded, because this runs under the room lock. A
|
|
38259
|
+
// timeout lands in the catch below: no group id is stored, so the
|
|
38260
|
+
// next room_joined (or the owner's Welcome) still completes the room.
|
|
38261
|
+
signal: AbortSignal.timeout(_SecureChannel.ROOM_INIT_FETCH_TIMEOUT_MS)
|
|
38057
38262
|
});
|
|
38058
38263
|
if (initRes.ok) {
|
|
38059
38264
|
const groupData = await initRes.json();
|
|
@@ -38197,10 +38402,41 @@ ${text}`,
|
|
|
38197
38402
|
* Fail-safe: a failed fetch / non-ok / non-array response prunes NOTHING, so a
|
|
38198
38403
|
* transient error can never over-prune a live room.
|
|
38199
38404
|
*/
|
|
38200
|
-
|
|
38405
|
+
/** Run `fn` holding room `roomId`'s lock (FIFO). */
|
|
38406
|
+
async _withRoomLock(roomId, fn) {
|
|
38407
|
+
const prev = this._roomLocks.get(roomId) ?? Promise.resolve();
|
|
38408
|
+
let release;
|
|
38409
|
+
const mine = new Promise((resolve72) => {
|
|
38410
|
+
release = resolve72;
|
|
38411
|
+
});
|
|
38412
|
+
const tail = prev.then(() => mine);
|
|
38413
|
+
this._roomLocks.set(roomId, tail);
|
|
38414
|
+
await prev;
|
|
38415
|
+
try {
|
|
38416
|
+
return await fn();
|
|
38417
|
+
} finally {
|
|
38418
|
+
release();
|
|
38419
|
+
if (this._roomLocks.get(roomId) === tail) this._roomLocks.delete(roomId);
|
|
38420
|
+
}
|
|
38421
|
+
}
|
|
38422
|
+
_reconcileRoomsWithServer() {
|
|
38423
|
+
if (this._roomReconcileInFlight) return this._roomReconcileInFlight;
|
|
38424
|
+
const run = this._reconcileRoomsOnce().finally(() => {
|
|
38425
|
+
this._roomReconcileInFlight = null;
|
|
38426
|
+
});
|
|
38427
|
+
this._roomReconcileInFlight = run;
|
|
38428
|
+
return run;
|
|
38429
|
+
}
|
|
38430
|
+
async _reconcileRoomsOnce() {
|
|
38201
38431
|
const local = this._persisted?.rooms;
|
|
38202
38432
|
if (!local || Object.keys(local).length === 0) return;
|
|
38203
38433
|
if (!this._deviceJwt) return;
|
|
38434
|
+
const before = new Map(
|
|
38435
|
+
Object.keys(local).map((rid) => [
|
|
38436
|
+
rid,
|
|
38437
|
+
{ mgr: this._mlsGroups.get(rid), gen: this._roomJoinGen.get(rid) ?? 0 }
|
|
38438
|
+
])
|
|
38439
|
+
);
|
|
38204
38440
|
let activeIds;
|
|
38205
38441
|
try {
|
|
38206
38442
|
const res = await fetch(`${this.config.apiUrl}/api/v1/rooms`, {
|
|
@@ -38209,38 +38445,59 @@ ${text}`,
|
|
|
38209
38445
|
if (!res.ok) return;
|
|
38210
38446
|
const list = await res.json();
|
|
38211
38447
|
if (!Array.isArray(list)) return;
|
|
38212
|
-
|
|
38213
|
-
|
|
38214
|
-
|
|
38448
|
+
if (!list.every((r22) => !!r22 && typeof r22 === "object" && typeof r22.id === "string" && r22.id)) {
|
|
38449
|
+
console.warn("[SecureChannel] room reconcile skipped: malformed item in GET /rooms (pruning nothing)");
|
|
38450
|
+
return;
|
|
38451
|
+
}
|
|
38452
|
+
activeIds = new Set(list.map((r22) => r22.id));
|
|
38215
38453
|
} catch (err) {
|
|
38216
38454
|
console.warn(
|
|
38217
38455
|
`[SecureChannel] room reconcile skipped (fetch failed, pruning nothing): ${err instanceof Error ? err.message : String(err)}`
|
|
38218
38456
|
);
|
|
38219
38457
|
return;
|
|
38220
38458
|
}
|
|
38221
|
-
const
|
|
38459
|
+
for (const rid of activeIds) {
|
|
38460
|
+
const gid = local[rid]?.mlsGroupId;
|
|
38461
|
+
if (gid) this._keyProofPausedUntil.delete(gid);
|
|
38462
|
+
}
|
|
38463
|
+
const stale = Object.keys(local).filter((rid) => {
|
|
38464
|
+
if (activeIds.has(rid)) return false;
|
|
38465
|
+
const snap = before.get(rid);
|
|
38466
|
+
if (!snap) return false;
|
|
38467
|
+
return this._mlsGroups.get(rid) === snap.mgr && (this._roomJoinGen.get(rid) ?? 0) === snap.gen;
|
|
38468
|
+
});
|
|
38222
38469
|
if (stale.length === 0) return;
|
|
38470
|
+
const pruned = [];
|
|
38223
38471
|
for (const rid of stale) {
|
|
38224
|
-
|
|
38225
|
-
|
|
38226
|
-
|
|
38227
|
-
|
|
38228
|
-
|
|
38472
|
+
await this._withRoomLock(rid, async () => {
|
|
38473
|
+
const snap = before.get(rid);
|
|
38474
|
+
const room = local[rid];
|
|
38475
|
+
if (!snap || !room) return;
|
|
38476
|
+
if (this._mlsGroups.get(rid) !== snap.mgr || (this._roomJoinGen.get(rid) ?? 0) !== snap.gen) return;
|
|
38477
|
+
this._mlsGroups.delete(rid);
|
|
38478
|
+
for (const convId of room.conversationIds ?? []) {
|
|
38479
|
+
this._sessions.delete(convId);
|
|
38480
|
+
if (this._persisted?.sessions) delete this._persisted.sessions[convId];
|
|
38229
38481
|
}
|
|
38230
|
-
|
|
38231
|
-
|
|
38232
|
-
|
|
38233
|
-
|
|
38234
|
-
|
|
38235
|
-
|
|
38236
|
-
|
|
38237
|
-
|
|
38482
|
+
delete local[rid];
|
|
38483
|
+
pruned.push(rid);
|
|
38484
|
+
if (room.mlsGroupId) {
|
|
38485
|
+
this._keyProofPausedUntil.delete(room.mlsGroupId);
|
|
38486
|
+
this._mlsGroupJoinedAt.delete(room.mlsGroupId);
|
|
38487
|
+
try {
|
|
38488
|
+
await deleteMlsState(this.config.dataDir, room.mlsGroupId);
|
|
38489
|
+
} catch {
|
|
38490
|
+
}
|
|
38491
|
+
}
|
|
38492
|
+
this._retireRoomFolder(rid);
|
|
38493
|
+
});
|
|
38238
38494
|
}
|
|
38495
|
+
if (pruned.length === 0) return;
|
|
38239
38496
|
await this._persistState();
|
|
38240
38497
|
console.log(
|
|
38241
|
-
`[SecureChannel] Room reconcile: pruned ${
|
|
38498
|
+
`[SecureChannel] Room reconcile: pruned ${pruned.length} disbanded/left room(s) from local state (${pruned.map((r22) => r22.slice(0, 8)).join(", ")})`
|
|
38242
38499
|
);
|
|
38243
|
-
this.emit("rooms_reconciled", { pruned
|
|
38500
|
+
this.emit("rooms_reconciled", { pruned });
|
|
38244
38501
|
}
|
|
38245
38502
|
/**
|
|
38246
38503
|
* #629 — quarantine MLS state for groups this device is no longer in.
|
|
@@ -38705,19 +38962,8 @@ ${text}`,
|
|
|
38705
38962
|
}
|
|
38706
38963
|
async sendStatusAlert(alert, routing) {
|
|
38707
38964
|
const priority = alert.severity === "error" || alert.severity === "critical" ? "high" : "normal";
|
|
38708
|
-
const envelope = {
|
|
38709
|
-
type: "status_alert",
|
|
38710
|
-
title: alert.title,
|
|
38711
|
-
message: alert.message,
|
|
38712
|
-
severity: alert.severity,
|
|
38713
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
38714
|
-
};
|
|
38715
|
-
if (alert.detail !== void 0) envelope.detail = alert.detail;
|
|
38716
|
-
if (alert.detailFormat !== void 0) envelope.detail_format = alert.detailFormat;
|
|
38717
|
-
if (alert.category !== void 0) envelope.category = alert.category;
|
|
38718
|
-
envelope.text = `[${String(alert.severity).toUpperCase()}] ${alert.title}: ${alert.message}`;
|
|
38719
38965
|
await this.send(
|
|
38720
|
-
JSON.stringify(
|
|
38966
|
+
JSON.stringify(statusAlertEnvelope(alert, (/* @__PURE__ */ new Date()).toISOString())),
|
|
38721
38967
|
{
|
|
38722
38968
|
conversationId: routing?.conversationId,
|
|
38723
38969
|
audience: routing?.audience,
|
|
@@ -38934,16 +39180,7 @@ ${text}`,
|
|
|
38934
39180
|
decisionId = await this.sendDecisionRequest(content.request, ownerRouting);
|
|
38935
39181
|
} else if (content.type === "status_alert") {
|
|
38936
39182
|
if (resolved.kind === "room") {
|
|
38937
|
-
|
|
38938
|
-
title: content.alert.title,
|
|
38939
|
-
message: content.alert.message,
|
|
38940
|
-
severity: content.alert.severity,
|
|
38941
|
-
timestamp: ts2
|
|
38942
|
-
};
|
|
38943
|
-
if (content.alert.detail !== void 0) envelope.detail = content.alert.detail;
|
|
38944
|
-
if (content.alert.detailFormat !== void 0) envelope.detail_format = content.alert.detailFormat;
|
|
38945
|
-
if (content.alert.category !== void 0) envelope.category = content.alert.category;
|
|
38946
|
-
await this.sendToRoom(resolved.id, JSON.stringify(envelope), {
|
|
39183
|
+
await this.sendToRoom(resolved.id, JSON.stringify(statusAlertEnvelope(content.alert, ts2)), {
|
|
38947
39184
|
messageType: "status_alert",
|
|
38948
39185
|
priority: content.alert.severity === "error" || content.alert.severity === "critical" ? "high" : "normal",
|
|
38949
39186
|
metadata: { severity: content.alert.severity }
|
|
@@ -44034,13 +44271,17 @@ ${baseText}`;
|
|
|
44034
44271
|
const jwt2 = this._deviceJwt;
|
|
44035
44272
|
if (!deviceId || !jwt2) return;
|
|
44036
44273
|
const best = /* @__PURE__ */ new Map();
|
|
44037
|
-
|
|
44274
|
+
const roomGroups = /* @__PURE__ */ new Set();
|
|
44275
|
+
const now = Date.now();
|
|
44276
|
+
for (const [key, mgr] of this._mlsGroups.entries()) {
|
|
44038
44277
|
try {
|
|
44039
44278
|
if (!mgr.isInitialized) continue;
|
|
44040
44279
|
const epoch = Number(mgr.epoch);
|
|
44041
44280
|
if (epoch <= 0) continue;
|
|
44042
44281
|
const groupId = _SecureChannel._mlsGroupIdString(mgr.groupId);
|
|
44043
44282
|
if (!groupId) continue;
|
|
44283
|
+
if (now < (this._keyProofPausedUntil.get(groupId) ?? 0)) continue;
|
|
44284
|
+
if (this._persisted?.rooms?.[key]) roomGroups.add(groupId);
|
|
44044
44285
|
const prev = best.get(groupId);
|
|
44045
44286
|
if (prev && epoch <= prev.epoch) continue;
|
|
44046
44287
|
best.set(groupId, { epoch, authenticator: Buffer.from(mgr.epochAuthenticator).toString("hex") });
|
|
@@ -44048,6 +44289,7 @@ ${baseText}`;
|
|
|
44048
44289
|
continue;
|
|
44049
44290
|
}
|
|
44050
44291
|
}
|
|
44292
|
+
let askRooms = false;
|
|
44051
44293
|
for (const [groupId, { epoch, authenticator }] of best) {
|
|
44052
44294
|
try {
|
|
44053
44295
|
const res = await fetch(`${this.config.apiUrl}/api/v1/mls/groups/${groupId}/key-proof`, {
|
|
@@ -44056,11 +44298,34 @@ ${baseText}`;
|
|
|
44056
44298
|
body: JSON.stringify({ device_id: deviceId, epoch, authenticator }),
|
|
44057
44299
|
signal: AbortSignal.timeout(_SecureChannel._KEY_PROOF_FETCH_TIMEOUT_MS)
|
|
44058
44300
|
});
|
|
44059
|
-
if (
|
|
44301
|
+
if (res.ok) continue;
|
|
44302
|
+
const detail = res.status === 403 ? await this._errorDetail(res) : null;
|
|
44303
|
+
if (res.status === 404 || detail === _SecureChannel.KEY_PROOF_NOT_A_MEMBER_DETAIL) {
|
|
44304
|
+
if (roomGroups.has(groupId)) askRooms = true;
|
|
44305
|
+
const graceFrom = Math.max(this._mlsGroupJoinedAt.get(groupId) ?? 0, this._processStartedAt);
|
|
44306
|
+
if (res.status === 403 && Date.now() - graceFrom < _SecureChannel._KEY_PROOF_JOIN_GRACE_MS) {
|
|
44307
|
+
console.debug(`[key-proof] ${groupId.slice(0, 8)}: HTTP 403 within the join grace (roster lag)`);
|
|
44308
|
+
continue;
|
|
44309
|
+
}
|
|
44310
|
+
const pauseMs = res.status === 404 ? _SecureChannel._KEY_PROOF_PAUSE_MS : _SecureChannel._KEY_PROOF_403_PAUSE_MS;
|
|
44311
|
+
this._keyProofPausedUntil.set(groupId, Date.now() + pauseMs);
|
|
44312
|
+
console.log(
|
|
44313
|
+
`[key-proof] ${groupId.slice(0, 8)}: HTTP ${res.status} (${res.status === 404 ? "group gone" : "not a member"}) \u2014 pausing its proofs for ${pauseMs / 36e5}h (#1889)`
|
|
44314
|
+
);
|
|
44315
|
+
continue;
|
|
44316
|
+
}
|
|
44317
|
+
console.debug(`[key-proof] ${groupId.slice(0, 8)}: HTTP ${res.status}`);
|
|
44060
44318
|
} catch (err) {
|
|
44061
44319
|
console.debug(`[key-proof] ${groupId.slice(0, 8)}: report failed (non-critical):`, err);
|
|
44062
44320
|
}
|
|
44063
44321
|
}
|
|
44322
|
+
if (askRooms) {
|
|
44323
|
+
try {
|
|
44324
|
+
await this._reconcileRoomsWithServer();
|
|
44325
|
+
} catch (err) {
|
|
44326
|
+
console.warn(`[key-proof] room reconcile after a refusal failed (ignored): ${err instanceof Error ? err.message : String(err)}`);
|
|
44327
|
+
}
|
|
44328
|
+
}
|
|
44064
44329
|
}
|
|
44065
44330
|
/**
|
|
44066
44331
|
* The wire MLS group id as a UUID string, or null. Every founder today —
|
|
@@ -44353,18 +44618,16 @@ ${baseText}`;
|
|
|
44353
44618
|
* limiter (per-conversation and global caps). The plaintext carries
|
|
44354
44619
|
* `type: "status_alert"`, so no agent in the room treats it as a turn
|
|
44355
44620
|
* (`status_alert` is not in ROOM_AGENT_TYPES). Fire-and-forget; never throws.
|
|
44621
|
+
* #1867: built by `statusAlertEnvelope`, like every other plugin alert, so
|
|
44622
|
+
* it carries the `text` line a room tab older than #1860 shows.
|
|
44356
44623
|
*/
|
|
44357
44624
|
_sendRoomSecurityNotice(noticeKey, roomId, title, text) {
|
|
44358
44625
|
try {
|
|
44359
44626
|
if (!this._securityNoticeLimiter.allow(noticeKey)) return;
|
|
44360
|
-
const envelope = JSON.stringify(
|
|
44361
|
-
|
|
44362
|
-
|
|
44363
|
-
|
|
44364
|
-
severity: "warning",
|
|
44365
|
-
category: "security",
|
|
44366
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
44367
|
-
});
|
|
44627
|
+
const envelope = JSON.stringify(statusAlertEnvelope(
|
|
44628
|
+
{ title, message: text(), severity: "warning", category: "security" },
|
|
44629
|
+
(/* @__PURE__ */ new Date()).toISOString()
|
|
44630
|
+
));
|
|
44368
44631
|
Promise.resolve().then(() => this.sendToRoom(roomId, envelope, { messageType: "status_alert" })).catch((err) => {
|
|
44369
44632
|
console.warn(`[SecureChannel] #1800 security notice for room ${logId(roomId)} was not sent:`, err);
|
|
44370
44633
|
});
|
|
@@ -44397,7 +44660,7 @@ ${baseText}`;
|
|
|
44397
44660
|
agentVersion: this.config.agentVersion ?? "0.0.0",
|
|
44398
44661
|
// __AV_VERSION__ is injected by esbuild from package.json at build time.
|
|
44399
44662
|
// Falls back to "0.0.0-dev" in non-bundled contexts (tests).
|
|
44400
|
-
pluginVersion: true ? "0.23.
|
|
44663
|
+
pluginVersion: true ? "0.23.75" : "0.0.0-dev"
|
|
44401
44664
|
});
|
|
44402
44665
|
this._telemetryReporter.startAutoFlush(3e4);
|
|
44403
44666
|
}
|
|
@@ -44596,6 +44859,10 @@ ${baseText}`;
|
|
|
44596
44859
|
return;
|
|
44597
44860
|
}
|
|
44598
44861
|
const mgr = joined.mgr;
|
|
44862
|
+
if (groupId) {
|
|
44863
|
+
this._keyProofPausedUntil.delete(groupId);
|
|
44864
|
+
this._mlsGroupJoinedAt.set(groupId, Date.now());
|
|
44865
|
+
}
|
|
44599
44866
|
this._removeKpFromPool(joined.kp);
|
|
44600
44867
|
void this._ensureKpPoolPublished().catch((err) => {
|
|
44601
44868
|
console.warn("[SecureChannel] KeyPackage pool replenish after join failed:", err);
|
|
@@ -44659,34 +44926,8 @@ ${baseText}`;
|
|
|
44659
44926
|
return;
|
|
44660
44927
|
}
|
|
44661
44928
|
const welcomeRoomId = data.room_id;
|
|
44662
|
-
|
|
44663
|
-
|
|
44664
|
-
room.mlsGroupId = groupId;
|
|
44665
|
-
this._mlsGroups.set(roomId, mgr);
|
|
44666
|
-
this._invalidateRoomAudienceForGroup(groupId);
|
|
44667
|
-
await saveMlsState(this.config.dataDir, groupId, JSON.stringify(mgr.exportState()));
|
|
44668
|
-
await this._persistState();
|
|
44669
|
-
await this._applyBufferedMlsCommits(groupId, mgr);
|
|
44670
|
-
console.log(`[SecureChannel] Joined MLS group for room ${roomId.slice(0, 8)} via Welcome (epoch=${mgr.epoch})`);
|
|
44671
|
-
this._pendingMlsKpBundle = void 0;
|
|
44672
|
-
await releaseA2ASyncLock(this.config.dataDir, `room-kp-${groupId}`).catch(() => {
|
|
44673
|
-
});
|
|
44674
|
-
return;
|
|
44675
|
-
}
|
|
44676
|
-
}
|
|
44677
|
-
if (welcomeRoomId && this._persisted) {
|
|
44678
|
-
await this._registerRoomFromWelcome(
|
|
44679
|
-
welcomeRoomId,
|
|
44680
|
-
groupId,
|
|
44681
|
-
mgr,
|
|
44682
|
-
data.room_name
|
|
44683
|
-
);
|
|
44684
|
-
this._pendingMlsKpBundle = void 0;
|
|
44685
|
-
await releaseA2ASyncLock(this.config.dataDir, `room-kp-${groupId}`).catch(() => {
|
|
44686
|
-
});
|
|
44687
|
-
console.log(
|
|
44688
|
-
`[SecureChannel] Registered room ${welcomeRoomId.slice(0, 8)} from unmatched Welcome (epoch=${mgr.epoch})`
|
|
44689
|
-
);
|
|
44929
|
+
const lockRoom = typeof welcomeRoomId === "string" && welcomeRoomId ? welcomeRoomId : Object.entries(this._persisted?.rooms ?? {}).find(([, r22]) => r22.mlsGroupId === groupId)?.[0];
|
|
44930
|
+
if (lockRoom && await this._withRoomLock(lockRoom, () => this._installRoomWelcome(groupId, mgr, data))) {
|
|
44690
44931
|
return;
|
|
44691
44932
|
}
|
|
44692
44933
|
const a2aChannelId = data.a2a_channel_id;
|
|
@@ -44745,6 +44986,45 @@ ${baseText}`;
|
|
|
44745
44986
|
throw err;
|
|
44746
44987
|
}
|
|
44747
44988
|
}
|
|
44989
|
+
/**
|
|
44990
|
+
* The room half of `_handleMlsWelcome`: install `mgr` for the room this
|
|
44991
|
+
* Welcome names (by group or by room id), or register the room from the
|
|
44992
|
+
* Welcome. True when handled. Caller holds the room's lock (#1889 review).
|
|
44993
|
+
*/
|
|
44994
|
+
async _installRoomWelcome(groupId, mgr, data) {
|
|
44995
|
+
const welcomeRoomId = data.room_id;
|
|
44996
|
+
for (const [roomId, room] of Object.entries(this._persisted?.rooms ?? {})) {
|
|
44997
|
+
if (room.mlsGroupId === groupId || roomId === welcomeRoomId) {
|
|
44998
|
+
room.mlsGroupId = groupId;
|
|
44999
|
+
this._mlsGroups.set(roomId, mgr);
|
|
45000
|
+
this._invalidateRoomAudienceForGroup(groupId);
|
|
45001
|
+
await saveMlsState(this.config.dataDir, groupId, JSON.stringify(mgr.exportState()));
|
|
45002
|
+
await this._persistState();
|
|
45003
|
+
await this._applyBufferedMlsCommits(groupId, mgr);
|
|
45004
|
+
console.log(`[SecureChannel] Joined MLS group for room ${roomId.slice(0, 8)} via Welcome (epoch=${mgr.epoch})`);
|
|
45005
|
+
this._pendingMlsKpBundle = void 0;
|
|
45006
|
+
await releaseA2ASyncLock(this.config.dataDir, `room-kp-${groupId}`).catch(() => {
|
|
45007
|
+
});
|
|
45008
|
+
return true;
|
|
45009
|
+
}
|
|
45010
|
+
}
|
|
45011
|
+
if (welcomeRoomId && this._persisted) {
|
|
45012
|
+
await this._registerRoomFromWelcome(
|
|
45013
|
+
welcomeRoomId,
|
|
45014
|
+
groupId,
|
|
45015
|
+
mgr,
|
|
45016
|
+
data.room_name
|
|
45017
|
+
);
|
|
45018
|
+
this._pendingMlsKpBundle = void 0;
|
|
45019
|
+
await releaseA2ASyncLock(this.config.dataDir, `room-kp-${groupId}`).catch(() => {
|
|
45020
|
+
});
|
|
45021
|
+
console.log(
|
|
45022
|
+
`[SecureChannel] Registered room ${welcomeRoomId.slice(0, 8)} from unmatched Welcome (epoch=${mgr.epoch})`
|
|
45023
|
+
);
|
|
45024
|
+
return true;
|
|
45025
|
+
}
|
|
45026
|
+
return false;
|
|
45027
|
+
}
|
|
44748
45028
|
/**
|
|
44749
45029
|
* Self-bootstrap a room entry + MLS group mapping from a Welcome whose room is
|
|
44750
45030
|
* not yet persisted. Happens when we were added to an EXISTING room and the
|
|
@@ -68664,6 +68944,18 @@ data:
|
|
|
68664
68944
|
};
|
|
68665
68945
|
}
|
|
68666
68946
|
});
|
|
68947
|
+
init_shell_word = __esm2({
|
|
68948
|
+
"src/shell-word.ts"() {
|
|
68949
|
+
"use strict";
|
|
68950
|
+
BARE = /^[A-Za-z0-9_./:@+-]+$/;
|
|
68951
|
+
NEEDS_ESCAPE = new RegExp(
|
|
68952
|
+
`[\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}\\p{Default_Ignorable_Code_Point}${String.fromCodePoint(65532)}${String.fromCodePoint(10240)}]`,
|
|
68953
|
+
"u"
|
|
68954
|
+
);
|
|
68955
|
+
LITERAL_IN_ANSI_C = /^[A-Za-z0-9]$/;
|
|
68956
|
+
HEX = /^[0-9A-Fa-f]$/;
|
|
68957
|
+
}
|
|
68958
|
+
});
|
|
68667
68959
|
init_index = __esm2({
|
|
68668
68960
|
"src/index.ts"() {
|
|
68669
68961
|
init_channel();
|
|
@@ -68692,7 +68984,8 @@ data:
|
|
|
68692
68984
|
init_room_protocol();
|
|
68693
68985
|
init_tool_telemetry();
|
|
68694
68986
|
init_turn_failure();
|
|
68695
|
-
|
|
68987
|
+
init_shell_word();
|
|
68988
|
+
VERSION = true ? "0.23.75" : "0.0.0-dev";
|
|
68696
68989
|
}
|
|
68697
68990
|
});
|
|
68698
68991
|
init_index();
|
|
@@ -69369,6 +69662,28 @@ var init_backend = __esm({
|
|
|
69369
69662
|
}
|
|
69370
69663
|
});
|
|
69371
69664
|
|
|
69665
|
+
// src/cli-hint.ts
|
|
69666
|
+
function shellQuote(value) {
|
|
69667
|
+
return shellWord(value);
|
|
69668
|
+
}
|
|
69669
|
+
function isHintSafeId(value) {
|
|
69670
|
+
return typeof value === "string" && HINT_ID_RE.test(value);
|
|
69671
|
+
}
|
|
69672
|
+
function bridgeCommand(subcommand, agentName) {
|
|
69673
|
+
const name = agentName?.trim();
|
|
69674
|
+
const value = !name ? "<name>" : shellQuote(name);
|
|
69675
|
+
return `AV_AGENT_NAME=${value} ${BRIDGE_BINARY} ${subcommand}`;
|
|
69676
|
+
}
|
|
69677
|
+
var BRIDGE_BINARY, HINT_ID_RE;
|
|
69678
|
+
var init_cli_hint = __esm({
|
|
69679
|
+
"src/cli-hint.ts"() {
|
|
69680
|
+
"use strict";
|
|
69681
|
+
init_dist();
|
|
69682
|
+
BRIDGE_BINARY = "agentvault-claude-bridge";
|
|
69683
|
+
HINT_ID_RE = /^[A-Za-z0-9_-]{1,128}$/;
|
|
69684
|
+
}
|
|
69685
|
+
});
|
|
69686
|
+
|
|
69372
69687
|
// src/service/subcommand.ts
|
|
69373
69688
|
var subcommand_exports = {};
|
|
69374
69689
|
__export(subcommand_exports, {
|
|
@@ -69442,14 +69757,14 @@ function maybeRunServiceSubcommand(argv, env, deps) {
|
|
|
69442
69757
|
for (const line of fingerprintLines(fp)) log(line);
|
|
69443
69758
|
} else {
|
|
69444
69759
|
log(
|
|
69445
|
-
|
|
69760
|
+
"the device fingerprint is not available yet \u2014 see it with: " + bridgeCommand("status", cfg.agentName)
|
|
69446
69761
|
);
|
|
69447
69762
|
}
|
|
69448
69763
|
log("now APPROVE the device in AgentVault \u2014 the service is waiting to enrol");
|
|
69449
69764
|
log("if it does not connect within a minute, the log above says why");
|
|
69450
69765
|
}
|
|
69451
69766
|
log(
|
|
69452
|
-
`check it with:
|
|
69767
|
+
`check it with: ${bridgeCommand("status", cfg.agentName)}`
|
|
69453
69768
|
);
|
|
69454
69769
|
} else if (cmd === "uninstall") {
|
|
69455
69770
|
const label = resolveLabel(backend, env);
|
|
@@ -69491,6 +69806,7 @@ var init_subcommand = __esm({
|
|
|
69491
69806
|
init_pending_invite();
|
|
69492
69807
|
init_enrollment_fingerprint();
|
|
69493
69808
|
init_backend();
|
|
69809
|
+
init_cli_hint();
|
|
69494
69810
|
SERVICE_CMDS = /* @__PURE__ */ new Set(["install", "uninstall", "restart", "status", "logs"]);
|
|
69495
69811
|
}
|
|
69496
69812
|
});
|
|
@@ -69786,8 +70102,10 @@ function realDoctorDeps(env) {
|
|
|
69786
70102
|
// loadConfig, which now REFUSES without AV_AGENT_NAME (#921) — and doctor's
|
|
69787
70103
|
// whole job is to run when you do not know which agents exist.
|
|
69788
70104
|
apiUrl: env.AV_API_URL ?? "https://api.agentvault.chat",
|
|
69789
|
-
|
|
69790
|
-
|
|
70105
|
+
// #1874: the name is a data-dir name on disk, so it is quoted like any
|
|
70106
|
+
// value pasted into a shell (the plugin's shellWord, the web's rule).
|
|
70107
|
+
uninstallCommand: (n10) => `AV_AGENT_NAME=${n10 ? shellWord(n10) : "<agent-name>"} agentvault-claude-bridge uninstall`,
|
|
70108
|
+
installCommand: (n10) => `AV_AGENT_NAME=${n10 ? shellWord(n10) : "<agent-name>"} agentvault-claude-bridge install`,
|
|
69791
70109
|
readCreds: (dir) => {
|
|
69792
70110
|
const deviceId = readPersistedDeviceId(dir);
|
|
69793
70111
|
return deviceId ? { deviceId } : null;
|
|
@@ -69815,6 +70133,7 @@ var init_doctor_cli = __esm({
|
|
|
69815
70133
|
"src/service/doctor-cli.ts"() {
|
|
69816
70134
|
"use strict";
|
|
69817
70135
|
init_backend();
|
|
70136
|
+
init_dist();
|
|
69818
70137
|
init_config();
|
|
69819
70138
|
init_log();
|
|
69820
70139
|
init_doctor();
|
|
@@ -112747,23 +113066,7 @@ function selfUninstallOnTerminal(verdict, env, deps = {}) {
|
|
|
112747
113066
|
// src/approve-cli.ts
|
|
112748
113067
|
import { mkdirSync as mkdirSync10, writeFileSync as writeFileSync6, readFileSync as readFileSync11, readdirSync as readdirSync5, rmSync as rmSync6, existsSync as existsSync6 } from "node:fs";
|
|
112749
113068
|
import { join as join20 } from "node:path";
|
|
112750
|
-
|
|
112751
|
-
// src/cli-hint.ts
|
|
112752
|
-
var BRIDGE_BINARY = "agentvault-claude-bridge";
|
|
112753
|
-
function shellQuote(value) {
|
|
112754
|
-
return /^[A-Za-z0-9._-]+$/.test(value) ? value : `'${value.replace(/'/g, `'\\''`)}'`;
|
|
112755
|
-
}
|
|
112756
|
-
var HINT_ID_RE = /^[A-Za-z0-9_-]{1,128}$/;
|
|
112757
|
-
function isHintSafeId(value) {
|
|
112758
|
-
return typeof value === "string" && HINT_ID_RE.test(value);
|
|
112759
|
-
}
|
|
112760
|
-
function bridgeCommand(subcommand, agentName) {
|
|
112761
|
-
const name = agentName?.trim();
|
|
112762
|
-
const value = !name ? "<name>" : shellQuote(name);
|
|
112763
|
-
return `AV_AGENT_NAME=${value} ${BRIDGE_BINARY} ${subcommand}`;
|
|
112764
|
-
}
|
|
112765
|
-
|
|
112766
|
-
// src/approve-cli.ts
|
|
113069
|
+
init_cli_hint();
|
|
112767
113070
|
var APPROVALS_SUBDIR = "arm-approvals";
|
|
112768
113071
|
var ID_RE2 = /^[A-Za-z0-9_-]{1,128}$/;
|
|
112769
113072
|
var ApproveArmError = class extends Error {
|
|
@@ -112879,6 +113182,9 @@ function decideArming(opts) {
|
|
|
112879
113182
|
return { gatesRemoved: false, mode: "c2-disarm-only", recordWebArmed: false, hostTrusted };
|
|
112880
113183
|
}
|
|
112881
113184
|
|
|
113185
|
+
// src/bridge.ts
|
|
113186
|
+
init_cli_hint();
|
|
113187
|
+
|
|
112882
113188
|
// src/room-context.ts
|
|
112883
113189
|
import { randomBytes as randomBytes10 } from "node:crypto";
|
|
112884
113190
|
var DEFAULT_ROOM_CONTEXT_LIMITS = {
|
|
@@ -113707,7 +114013,7 @@ function makeShutdown(deps) {
|
|
|
113707
114013
|
|
|
113708
114014
|
// src/index.ts
|
|
113709
114015
|
async function main() {
|
|
113710
|
-
if (answerInfoFlags(process.argv, true ? "0.8.
|
|
114016
|
+
if (answerInfoFlags(process.argv, true ? "0.8.46" : void 0, printLine)) {
|
|
113711
114017
|
process.exit(0);
|
|
113712
114018
|
}
|
|
113713
114019
|
if (process.argv[2] === "recovery" && await (await Promise.resolve().then(() => (init_recovery(), recovery_exports))).maybeRunRecoverySubcommand()) {
|
|
@@ -113735,7 +114041,7 @@ async function main() {
|
|
|
113735
114041
|
"[bridge] warning: passing the invite token on the command line is visible to other local users via 'ps'. Prefer: AV_INVITE_TOKEN=\u2026 npx @agentvault/claude-bridge"
|
|
113736
114042
|
);
|
|
113737
114043
|
}
|
|
113738
|
-
logLine(`[bridge] version: ${true ? "0.8.
|
|
114044
|
+
logLine(`[bridge] version: ${true ? "0.8.46" : "dev"}`);
|
|
113739
114045
|
logLine(`[bridge] data dir: ${cfg.dataDir} (${cfg.dataDirSource})`);
|
|
113740
114046
|
logLine(`[bridge] workspace: ${cfg.workspaceDir} \xB7 permissions: ${cfg.permissionMode} \xB7 enclave dir fenced`);
|
|
113741
114047
|
if (cfg.armRoom) {
|
|
@@ -113768,7 +114074,7 @@ async function main() {
|
|
|
113768
114074
|
// its default would render "@agentvault/agentvault@0.7.x" — the wrong
|
|
113769
114075
|
// package name attached to the bridge's version number, which is worse
|
|
113770
114076
|
// than either alone.
|
|
113771
|
-
clientVersion: `@agentvault/claude-bridge@${true ? "0.8.
|
|
114077
|
+
clientVersion: `@agentvault/claude-bridge@${true ? "0.8.46" : "dev"}`
|
|
113772
114078
|
}, inbox));
|
|
113773
114079
|
inbox.bindChannel(channel);
|
|
113774
114080
|
const agentSystemPrompt = withFileSendRule(cfg.systemPrompt ?? identityPrompt(cfg.agentName));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor-cli.d.ts","sourceRoot":"","sources":["../../src/service/doctor-cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"doctor-cli.d.ts","sourceRoot":"","sources":["../../src/service/doctor-cli.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,UAAU,EAChB,MAAM,aAAa,CAAC;AAsBrB;;;;;;;;;;;;;GAaG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,OAAO,KAAa,GAC5B,OAAO,CAAC,WAAW,CAAC,CAuBtB;AA+BD,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG,UAAU,CAwBjE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,MAAM,EAAE,EACd,IAAI,GAAE;IAAE,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,UAAU,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAA;CAAO,GACrF,OAAO,CAAC,OAAO,CAAC,CAelB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subcommand.d.ts","sourceRoot":"","sources":["../../src/service/subcommand.ts"],"names":[],"mappings":"AASA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"subcommand.d.ts","sourceRoot":"","sources":["../../src/service/subcommand.ts"],"names":[],"mappings":"AASA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAGlE,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,cAAc,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3B;;gFAE4E;IAC5E,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CAC9D;AAoCD;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG,MAAM,CAMpF;AAED;;uFAEuF;AACvF,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EAAE,EACd,GAAG,EAAE,MAAM,CAAC,UAAU,EACtB,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,CAmJT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentvault/claude-bridge",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.46",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AgentVault Claude Bridge — daemon for bridging a Claude agent into secure E2E-encrypted AgentVault 1:1 direct messages and rooms.",
|
|
6
6
|
"main": "dist/index.js",
|