@agentvault/muse-bridge 0.1.30 → 0.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bridge.d.ts +8 -0
- package/dist/index.js +128 -113
- package/dist/muse-driver.d.ts +6 -2
- package/dist/muse-session.d.ts +5 -1
- package/dist/muse-spawn.d.ts +7 -0
- package/dist/service/subcommand.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/bridge.d.ts
CHANGED
|
@@ -15,6 +15,12 @@ export interface RoomMessage {
|
|
|
15
15
|
* `plaintext`. The @ gate reads this; absent on emitters < 0.23.42. */
|
|
16
16
|
caption?: string;
|
|
17
17
|
senderIsAgent?: boolean;
|
|
18
|
+
/** #1459 — SecureChannel: a human in THIS agent's own account. Absent on
|
|
19
|
+
* emitters < 0.23.55, which reads as "not the owner" (fail closed). */
|
|
20
|
+
senderIsOwner?: boolean;
|
|
21
|
+
/** #1459 — SecureChannel: this turn carries a file from someone other than
|
|
22
|
+
* the owner. Only an explicit `false` lets an owner turn be powered. */
|
|
23
|
+
foreignContent?: boolean;
|
|
18
24
|
/** ISO send time from the emit (`data.created_at`). Used to stamp a message
|
|
19
25
|
* held as room context; receipt time stands in when absent. */
|
|
20
26
|
timestamp?: string;
|
|
@@ -108,6 +114,8 @@ export declare function attachLifecycle(channel: LifecycleChannel, opts?: {
|
|
|
108
114
|
restart: boolean;
|
|
109
115
|
}) => void;
|
|
110
116
|
}): void;
|
|
117
|
+
/** #1459 — appended to an owner turn that lost full access to someone else's file. */
|
|
118
|
+
export declare const FILE_LOCK_NOTE: string;
|
|
111
119
|
export declare function roomTurnPrefix(roomId: string, senderName: string, roomName?: string): string;
|
|
112
120
|
/**
|
|
113
121
|
* What a held (unaddressed) room message contributes as context: the CAPTION
|
package/dist/index.js
CHANGED
|
@@ -51,8 +51,6 @@ __export(dist_exports, {
|
|
|
51
51
|
managedRoutesRequested: () => managedRoutesRequested,
|
|
52
52
|
mergeSkills: () => mergeSkills,
|
|
53
53
|
offerHistoryRecoveryConfiguration: () => offerHistoryRecoveryConfiguration,
|
|
54
|
-
onAgentEvent: () => onAgentEvent,
|
|
55
|
-
onSessionTranscriptUpdate: () => onSessionTranscriptUpdate,
|
|
56
54
|
owesRoomReply: () => owesRoomReply,
|
|
57
55
|
parseMentions: () => parseMentions,
|
|
58
56
|
parseSkillMd: () => parseSkillMd,
|
|
@@ -97,6 +95,9 @@ import { homedir } from "node:os";
|
|
|
97
95
|
import { dirname, join as join4, resolve } from "node:path";
|
|
98
96
|
import { Writable } from "node:stream";
|
|
99
97
|
import { createInterface } from "node:readline";
|
|
98
|
+
import { createRequire } from "node:module";
|
|
99
|
+
import { join as joinPath } from "node:path";
|
|
100
|
+
import { pathToFileURL } from "node:url";
|
|
100
101
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
101
102
|
import { randomBytes as randomBytes3 } from "node:crypto";
|
|
102
103
|
import { Readable } from "node:stream";
|
|
@@ -11798,11 +11799,11 @@ async function joinWithFirstMatchingKp(welcomeBytes, candidates) {
|
|
|
11798
11799
|
return null;
|
|
11799
11800
|
}
|
|
11800
11801
|
function ownIdentity() {
|
|
11801
|
-
const v2 = true ? "0.23.
|
|
11802
|
+
const v2 = true ? "0.23.60" : FALLBACK;
|
|
11802
11803
|
return `${PACKAGE}@${v2}`;
|
|
11803
11804
|
}
|
|
11804
11805
|
function buildSha() {
|
|
11805
|
-
const raw = true ? "
|
|
11806
|
+
const raw = true ? "9599d8e" : "";
|
|
11806
11807
|
const cleaned = (raw ?? "").trim();
|
|
11807
11808
|
return !cleaned || cleaned === "unknown" ? null : cleaned;
|
|
11808
11809
|
}
|
|
@@ -12552,6 +12553,13 @@ function decodeStrictBase64(value) {
|
|
|
12552
12553
|
if (decoded.toString("base64") !== value) throw new Error("Invalid history backup encoding");
|
|
12553
12554
|
return new Uint8Array(decoded);
|
|
12554
12555
|
}
|
|
12556
|
+
function importerFrom(root3) {
|
|
12557
|
+
const req = createRequire(joinPath(root3, "package.json"));
|
|
12558
|
+
return (specifier) => import(
|
|
12559
|
+
/* @vite-ignore */
|
|
12560
|
+
pathToFileURL(req.resolve(specifier)).href
|
|
12561
|
+
);
|
|
12562
|
+
}
|
|
12555
12563
|
async function resolveSdkFn(candidates, importer = defaultImporter) {
|
|
12556
12564
|
for (const { specifier, symbol } of candidates) {
|
|
12557
12565
|
try {
|
|
@@ -12577,41 +12585,6 @@ async function requestHeartbeatNow(opts) {
|
|
|
12577
12585
|
}
|
|
12578
12586
|
return false;
|
|
12579
12587
|
}
|
|
12580
|
-
async function onAgentEvent(callback) {
|
|
12581
|
-
if (_agentEventFn === null) {
|
|
12582
|
-
_agentEventFn = await resolveSdkFn(AGENT_EVENT_CANDIDATES);
|
|
12583
|
-
}
|
|
12584
|
-
if (typeof _agentEventFn === "function") {
|
|
12585
|
-
try {
|
|
12586
|
-
return _agentEventFn(callback);
|
|
12587
|
-
} catch {
|
|
12588
|
-
return () => {
|
|
12589
|
-
};
|
|
12590
|
-
}
|
|
12591
|
-
}
|
|
12592
|
-
return () => {
|
|
12593
|
-
};
|
|
12594
|
-
}
|
|
12595
|
-
async function onSessionTranscriptUpdate(callback) {
|
|
12596
|
-
if (_transcriptFn === null) {
|
|
12597
|
-
_transcriptFn = await resolveSdkFn(TRANSCRIPT_CANDIDATES);
|
|
12598
|
-
}
|
|
12599
|
-
if (typeof _transcriptFn === "function") {
|
|
12600
|
-
try {
|
|
12601
|
-
return _transcriptFn(callback);
|
|
12602
|
-
} catch {
|
|
12603
|
-
return () => {
|
|
12604
|
-
};
|
|
12605
|
-
}
|
|
12606
|
-
}
|
|
12607
|
-
return () => {
|
|
12608
|
-
};
|
|
12609
|
-
}
|
|
12610
|
-
function _resetCompatCacheForTest() {
|
|
12611
|
-
_heartbeatFn = null;
|
|
12612
|
-
_agentEventFn = null;
|
|
12613
|
-
_transcriptFn = null;
|
|
12614
|
-
}
|
|
12615
12588
|
function safeErrorKind(value) {
|
|
12616
12589
|
if (typeof value !== "string") return UNCLASSIFIED_ERROR;
|
|
12617
12590
|
if (KNOWN_CODES.has(value)) return value;
|
|
@@ -13215,6 +13188,14 @@ function _isSelfHubAddress(ownHubAddress, target) {
|
|
|
13215
13188
|
const tgt = (target ?? "").trim().toLowerCase();
|
|
13216
13189
|
return own2.length > 0 && own2 === tgt;
|
|
13217
13190
|
}
|
|
13191
|
+
function keepKnownMemberTenants(previous, next) {
|
|
13192
|
+
const known = /* @__PURE__ */ new Map();
|
|
13193
|
+
for (const m2 of previous) if (m2.tenantId) known.set(m2.deviceId, m2.tenantId);
|
|
13194
|
+
return next.map((m2) => {
|
|
13195
|
+
const tenantId = m2.tenantId ? void 0 : known.get(m2.deviceId);
|
|
13196
|
+
return tenantId ? { ...m2, tenantId } : m2;
|
|
13197
|
+
});
|
|
13198
|
+
}
|
|
13218
13199
|
function historyErrorReason(error2) {
|
|
13219
13200
|
let name = "Error";
|
|
13220
13201
|
let status;
|
|
@@ -18511,7 +18492,7 @@ function reportSkillInvocation(opts) {
|
|
|
18511
18492
|
spanBuffer.push(span);
|
|
18512
18493
|
return span;
|
|
18513
18494
|
}
|
|
18514
|
-
var __create, __defProp2, __getOwnPropDesc, __getOwnPropNames2, __getProtoOf, __hasOwnProp, __esm2, __commonJS, __export2, __copyProps, __toESM, SENTINEL, WRAPPERS, INSTRUCTION, init_abstention, AMBIGUOUS_OWNER_ERROR, init_owner_routing, init_envelope_text, init_mls_commit_classify, MENTION_RE, BROADCAST_NAMES, init_room_protocol, __filename, __dirname, url, path, Module, Module, root, window_, crypto_, randomValuesStandard, crypto2, randomValueNodeJS, _Module, libsodium_sumo_default, init_libsodium_sumo, a, r, t, c, 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, ScanEngine, init_scan_engine, init_merkle, VC_CONTEXT_V2, AV_CREDENTIAL_CONTEXT, CRYPTOSUITE, BASE58_ALPHABET2, init_vc, init_transport, 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, 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, crypto3, 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, DEFAULT_CIPHERSUITE, MLSGroupManager, init_mls_group, DOMAIN, NONCE_BYTES3, init_owner_sync, init_mls_delivery_order, init_mls_presend_epoch, dist_exports2, init_dist2, DIR_MODE, FILE_MODE, init_secure_file, SYNC_LOCK_STALE_MS, pendingKpPath, init_mls_state, init_mls_kp_pool, PACKAGE, FALLBACK, MAX_LEN, DISALLOWED, init_client_version, 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, short, WelcomeKeyPackageBackoff, init_welcome_kp_backoff, history_backup_client_exports, HISTORY_RESTORE_TIMEOUT_MS, HISTORY_RESTORE_RESPONSE_MAX_BYTES, HISTORY_ENVELOPE_MIN_BYTES, HISTORY_AAD_PREFIX, UUID_RE3, GENERATION_RESPONSE_KEYS, utf8Encoder, utf8Decoder, HistoryBackupClient, init_history_backup_client, openclaw_compat_exports, defaultImporter, HEARTBEAT_CANDIDATES, AGENT_EVENT_CANDIDATES, TRANSCRIPT_CANDIDATES, _heartbeatFn, _agentEventFn, _transcriptFn, init_openclaw_compat, 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, http_handlers_exports, init_http_handlers, mcp_proxy_helpers_exports, init_mcp_proxy_helpers, workspace_handlers_exports, MAX_FILE_SIZE, init_workspace_handlers, ROOM_AGENT_TYPES, CREDENTIAL_MESSAGE_TYPES, CATCHUP_MESSAGE_TYPES, POLL_INTERVAL_MS, RECONNECT_BASE_MS, UUID_RE4, RECONNECT_MAX_MS, PENDING_POLL_INTERVAL_MS, HISTORY_RESTORE_TIMEOUT_MS2, 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, PERSON_INVOLVED_WINDOW_MS, ATTESTED_INBOUND_MAX, UNMAPPED_RECONCILE_COOLDOWN_MS, TOPIC_ID_RE, ROOM_FULFIL_COOLDOWN_MS, SecureChannel, init_channel, init_types, DEFAULT_API_URL, DEFAULT_HTTP_PORT, init_account_config, init_lifecycle, _ocRuntime, _channels, agentVaultPlugin, init_openclaw_plugin, init_gateway_send, init_llm_response_parser, OPENROUTER_PRICING, init_llm_pricing_openrouter, LEGACY_PRICING, PRICING, init_llm_cost, traceStore, init_fetch_interceptor, init_tool_audit, init_harness_compat, managedRoutesRequested, 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, uuid, 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, open4, 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, init_mcp_handlers, init_skill_manifest, init_skill_invoker, spanBuffer, init_skill_telemetry, PolicyEnforcer, init_policy_enforcer, VERSION, init_index;
|
|
18495
|
+
var __create, __defProp2, __getOwnPropDesc, __getOwnPropNames2, __getProtoOf, __hasOwnProp, __esm2, __commonJS, __export2, __copyProps, __toESM, SENTINEL, WRAPPERS, INSTRUCTION, init_abstention, AMBIGUOUS_OWNER_ERROR, init_owner_routing, init_envelope_text, init_mls_commit_classify, MENTION_RE, BROADCAST_NAMES, init_room_protocol, __filename, __dirname, url, path, Module, Module, root, window_, crypto_, randomValuesStandard, crypto2, randomValueNodeJS, _Module, libsodium_sumo_default, init_libsodium_sumo, a, r, t, c, 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, ScanEngine, init_scan_engine, init_merkle, VC_CONTEXT_V2, AV_CREDENTIAL_CONTEXT, CRYPTOSUITE, BASE58_ALPHABET2, init_vc, init_transport, 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, 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, crypto3, 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, DEFAULT_CIPHERSUITE, MLSGroupManager, init_mls_group, DOMAIN, NONCE_BYTES3, init_owner_sync, init_mls_delivery_order, init_mls_presend_epoch, dist_exports2, init_dist2, DIR_MODE, FILE_MODE, init_secure_file, SYNC_LOCK_STALE_MS, pendingKpPath, init_mls_state, init_mls_kp_pool, PACKAGE, FALLBACK, MAX_LEN, DISALLOWED, init_client_version, 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, short, WelcomeKeyPackageBackoff, init_welcome_kp_backoff, history_backup_client_exports, HISTORY_RESTORE_TIMEOUT_MS, HISTORY_RESTORE_RESPONSE_MAX_BYTES, HISTORY_ENVELOPE_MIN_BYTES, HISTORY_AAD_PREFIX, UUID_RE3, GENERATION_RESPONSE_KEYS, utf8Encoder, utf8Decoder, HistoryBackupClient, init_history_backup_client, openclaw_compat_exports, defaultImporter, HEARTBEAT_CANDIDATES, _heartbeatFn, init_openclaw_compat, 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, http_handlers_exports, init_http_handlers, mcp_proxy_helpers_exports, init_mcp_proxy_helpers, workspace_handlers_exports, MAX_FILE_SIZE, init_workspace_handlers, ROOM_AGENT_TYPES, CREDENTIAL_MESSAGE_TYPES, CATCHUP_MESSAGE_TYPES, POLL_INTERVAL_MS, RECONNECT_BASE_MS, UUID_RE4, RECONNECT_MAX_MS, PENDING_POLL_INTERVAL_MS, HISTORY_RESTORE_TIMEOUT_MS2, 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, PERSON_INVOLVED_WINDOW_MS, ATTESTED_INBOUND_MAX, UNMAPPED_RECONCILE_COOLDOWN_MS, TOPIC_ID_RE, ROOM_FULFIL_COOLDOWN_MS, SecureChannel, init_channel, init_types, DEFAULT_API_URL, DEFAULT_HTTP_PORT, init_account_config, init_lifecycle, _ocRuntime, _channels, agentVaultPlugin, init_openclaw_plugin, init_gateway_send, init_llm_response_parser, OPENROUTER_PRICING, init_llm_pricing_openrouter, LEGACY_PRICING, PRICING, init_llm_cost, traceStore, init_fetch_interceptor, init_tool_audit, init_harness_compat, managedRoutesRequested, 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, uuid, 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, open4, 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, init_mcp_handlers, init_skill_manifest, init_skill_invoker, spanBuffer, init_skill_telemetry, PolicyEnforcer, init_policy_enforcer, VERSION, init_index;
|
|
18515
18496
|
var init_dist = __esm({
|
|
18516
18497
|
async "../plugin/dist/index.js"() {
|
|
18517
18498
|
"use strict";
|
|
@@ -71461,12 +71442,8 @@ var init_dist = __esm({
|
|
|
71461
71442
|
});
|
|
71462
71443
|
openclaw_compat_exports = {};
|
|
71463
71444
|
__export2(openclaw_compat_exports, {
|
|
71464
|
-
AGENT_EVENT_CANDIDATES: () => AGENT_EVENT_CANDIDATES,
|
|
71465
71445
|
HEARTBEAT_CANDIDATES: () => HEARTBEAT_CANDIDATES,
|
|
71466
|
-
|
|
71467
|
-
_resetCompatCacheForTest: () => _resetCompatCacheForTest,
|
|
71468
|
-
onAgentEvent: () => onAgentEvent,
|
|
71469
|
-
onSessionTranscriptUpdate: () => onSessionTranscriptUpdate,
|
|
71446
|
+
importerFrom: () => importerFrom,
|
|
71470
71447
|
requestHeartbeatNow: () => requestHeartbeatNow,
|
|
71471
71448
|
resolveSdkFn: () => resolveSdkFn
|
|
71472
71449
|
});
|
|
@@ -71483,23 +71460,7 @@ var init_dist = __esm({
|
|
|
71483
71460
|
// <=2026.6.x — deep dist path, original name.
|
|
71484
71461
|
{ specifier: "openclaw/dist/plugin-sdk/infra/heartbeat-wake.js", symbol: "requestHeartbeatNow" }
|
|
71485
71462
|
];
|
|
71486
|
-
AGENT_EVENT_CANDIDATES = [
|
|
71487
|
-
{ specifier: "openclaw/plugin-sdk/agent-harness", symbol: "onAgentEvent" },
|
|
71488
|
-
{ specifier: "openclaw/dist/plugin-sdk/infra/agent-events.js", symbol: "onAgentEvent" }
|
|
71489
|
-
];
|
|
71490
|
-
TRANSCRIPT_CANDIDATES = [
|
|
71491
|
-
{
|
|
71492
|
-
specifier: "openclaw/plugin-sdk/memory-core-host-engine-foundation",
|
|
71493
|
-
symbol: "onSessionTranscriptUpdate"
|
|
71494
|
-
},
|
|
71495
|
-
{
|
|
71496
|
-
specifier: "openclaw/dist/plugin-sdk/sessions/transcript-events.js",
|
|
71497
|
-
symbol: "onSessionTranscriptUpdate"
|
|
71498
|
-
}
|
|
71499
|
-
];
|
|
71500
71463
|
_heartbeatFn = null;
|
|
71501
|
-
_agentEventFn = null;
|
|
71502
|
-
_transcriptFn = null;
|
|
71503
71464
|
}
|
|
71504
71465
|
});
|
|
71505
71466
|
init_tool_telemetry = __esm2({
|
|
@@ -71809,15 +71770,19 @@ var init_dist = __esm({
|
|
|
71809
71770
|
*/
|
|
71810
71771
|
_recentRoomAttachments = /* @__PURE__ */ new Map();
|
|
71811
71772
|
static RECENT_ROOM_ATTACHMENT_MS = 10 * 60 * 1e3;
|
|
71812
|
-
/** #1181: prefix a room turn that carries no attachment with the one saved in this room recently.
|
|
71773
|
+
/** #1181: prefix a room turn that carries no attachment with the one saved in this room recently.
|
|
71774
|
+
* `from` is who sent that file (#1459), so the turn can be marked as carrying their content. */
|
|
71813
71775
|
_withRecentRoomAttachmentNote(roomId, text) {
|
|
71814
71776
|
const recent = this._recentRoomAttachments.get(roomId);
|
|
71815
|
-
if (!recent) return text;
|
|
71777
|
+
if (!recent) return { text };
|
|
71816
71778
|
const ageMs = Date.now() - recent.at;
|
|
71817
|
-
if (ageMs > _SecureChannel.RECENT_ROOM_ATTACHMENT_MS) return text;
|
|
71818
|
-
return
|
|
71779
|
+
if (ageMs > _SecureChannel.RECENT_ROOM_ATTACHMENT_MS) return { text };
|
|
71780
|
+
return {
|
|
71781
|
+
text: `[Most recent file in this room: ${recent.filePath} (${recent.name}, received ${Math.round(ageMs / 1e3)}s ago). If this message refers to "the file" or "this file", it means that one \u2014 use your Read tool on it.]
|
|
71819
71782
|
|
|
71820
|
-
${text}
|
|
71783
|
+
${text}`,
|
|
71784
|
+
from: recent.senderDeviceId ?? null
|
|
71785
|
+
};
|
|
71821
71786
|
}
|
|
71822
71787
|
/**
|
|
71823
71788
|
* #1161: room attachments whose caption addressed nobody, NOT yet fetched.
|
|
@@ -71831,22 +71796,22 @@ ${text}`;
|
|
|
71831
71796
|
_deferredRoomAttachments = /* @__PURE__ */ new Map();
|
|
71832
71797
|
static DEFERRED_ROOM_ATTACHMENT_MAX = 5;
|
|
71833
71798
|
static DEFERRED_ROOM_ATTACHMENT_MS = 60 * 60 * 1e3;
|
|
71834
|
-
_deferRoomAttachment(roomId, info) {
|
|
71799
|
+
_deferRoomAttachment(roomId, info, senderDeviceId) {
|
|
71835
71800
|
const list = this._deferredRoomAttachments.get(roomId) ?? [];
|
|
71836
|
-
list.push({ info, at: Date.now() });
|
|
71801
|
+
list.push({ info, at: Date.now(), senderDeviceId });
|
|
71837
71802
|
while (list.length > _SecureChannel.DEFERRED_ROOM_ATTACHMENT_MAX) list.shift();
|
|
71838
71803
|
this._deferredRoomAttachments.set(roomId, list);
|
|
71839
71804
|
console.log(
|
|
71840
71805
|
`[SecureChannel] room ${roomId.slice(0, 8)}: attachment ${String(info?.filename ?? "file")} deferred \u2014 caption addresses nobody, fetch on the next @-addressed turn (#1161)`
|
|
71841
71806
|
);
|
|
71842
71807
|
}
|
|
71843
|
-
/** Drain the room's deferred attachments that are still fresh (oldest first). */
|
|
71808
|
+
/** Drain the room's deferred attachments that are still fresh (oldest first), with who sent each. */
|
|
71844
71809
|
_takeDeferredRoomAttachments(roomId) {
|
|
71845
71810
|
const list = this._deferredRoomAttachments.get(roomId);
|
|
71846
71811
|
if (!list?.length) return [];
|
|
71847
71812
|
this._deferredRoomAttachments.delete(roomId);
|
|
71848
71813
|
const cutoff = Date.now() - _SecureChannel.DEFERRED_ROOM_ATTACHMENT_MS;
|
|
71849
|
-
return list.filter((d2) => d2.at >= cutoff).map((d2) => d2.info);
|
|
71814
|
+
return list.filter((d2) => d2.at >= cutoff).map((d2) => ({ info: d2.info, senderDeviceId: d2.senderDeviceId }));
|
|
71850
71815
|
}
|
|
71851
71816
|
/** In-flight roster-refresh promises (per room) — dedup concurrent refreshes. */
|
|
71852
71817
|
_roomRosterRefreshInFlight = /* @__PURE__ */ new Map();
|
|
@@ -73938,7 +73903,7 @@ ${text}`;
|
|
|
73938
73903
|
*/
|
|
73939
73904
|
sendActivitySpan(spanData) {
|
|
73940
73905
|
if (!this._ws || this._ws.readyState !== WebSocket.OPEN) return;
|
|
73941
|
-
const pluginVersion = true ? "0.23.
|
|
73906
|
+
const pluginVersion = true ? "0.23.60" : "0.0.0-dev";
|
|
73942
73907
|
const agentName = this.config.agentName ?? "Agent";
|
|
73943
73908
|
const resource = {
|
|
73944
73909
|
"service.name": "agentvault-agent",
|
|
@@ -74089,11 +74054,15 @@ ${text}`;
|
|
|
74089
74054
|
}
|
|
74090
74055
|
const existingMlsGroupId = this._persisted.rooms[roomData.roomId]?.mlsGroupId;
|
|
74091
74056
|
const existingMlsTs = this._persisted.rooms[roomData.roomId]?.lastMlsMessageTs;
|
|
74057
|
+
const members2 = keepKnownMemberTenants(
|
|
74058
|
+
this._persisted.rooms[roomData.roomId]?.members ?? [],
|
|
74059
|
+
roomData.members
|
|
74060
|
+
);
|
|
74092
74061
|
this._persisted.rooms[roomData.roomId] = {
|
|
74093
74062
|
roomId: roomData.roomId,
|
|
74094
74063
|
name: roomData.name,
|
|
74095
74064
|
conversationIds,
|
|
74096
|
-
members:
|
|
74065
|
+
members: members2,
|
|
74097
74066
|
...existingMlsGroupId && { mlsGroupId: existingMlsGroupId },
|
|
74098
74067
|
...existingMlsTs && { lastMlsMessageTs: existingMlsTs }
|
|
74099
74068
|
};
|
|
@@ -74598,7 +74567,8 @@ ${text}`;
|
|
|
74598
74567
|
entityType: m2.entity_type,
|
|
74599
74568
|
displayName: m2.display_name,
|
|
74600
74569
|
identityPublicKey: m2.identity_public_key,
|
|
74601
|
-
ephemeralPublicKey: m2.ephemeral_public_key
|
|
74570
|
+
ephemeralPublicKey: m2.ephemeral_public_key,
|
|
74571
|
+
...typeof m2.tenant_id === "string" ? { tenantId: m2.tenant_id } : {}
|
|
74602
74572
|
}));
|
|
74603
74573
|
if (members2.length > 0) {
|
|
74604
74574
|
const roomState = this._persisted.rooms[roomId];
|
|
@@ -76143,7 +76113,7 @@ ${text}`;
|
|
|
76143
76113
|
agentVersion: this.config.agentVersion ?? "0.0.0",
|
|
76144
76114
|
// __AV_VERSION__ is injected by esbuild from package.json at build time.
|
|
76145
76115
|
// Falls back to "0.0.0-dev" in non-bundled contexts (tests).
|
|
76146
|
-
pluginVersion: true ? "0.23.
|
|
76116
|
+
pluginVersion: true ? "0.23.60" : "0.0.0-dev"
|
|
76147
76117
|
});
|
|
76148
76118
|
this._telemetryReporter.startAutoFlush(3e4);
|
|
76149
76119
|
}
|
|
@@ -76299,7 +76269,8 @@ ${text}`;
|
|
|
76299
76269
|
entityType: m2.entity_type,
|
|
76300
76270
|
displayName: m2.display_name,
|
|
76301
76271
|
identityPublicKey: m2.identity_public_key,
|
|
76302
|
-
ephemeralPublicKey: m2.ephemeral_public_key
|
|
76272
|
+
ephemeralPublicKey: m2.ephemeral_public_key,
|
|
76273
|
+
...typeof m2.tenant_id === "string" ? { tenantId: m2.tenant_id } : {}
|
|
76303
76274
|
})),
|
|
76304
76275
|
conversations: (d2.conversations || []).map((c2) => ({
|
|
76305
76276
|
id: c2.id,
|
|
@@ -76474,7 +76445,7 @@ ${text}`;
|
|
|
76474
76445
|
agentVersion: this.config.agentVersion ?? "0.0.0",
|
|
76475
76446
|
// __AV_VERSION__ is injected by esbuild from package.json at build time.
|
|
76476
76447
|
// Falls back to "0.0.0-dev" in non-bundled contexts (tests).
|
|
76477
|
-
pluginVersion: true ? "0.23.
|
|
76448
|
+
pluginVersion: true ? "0.23.60" : "0.0.0-dev"
|
|
76478
76449
|
});
|
|
76479
76450
|
this._telemetryReporter.startAutoFlush(3e4);
|
|
76480
76451
|
}
|
|
@@ -77331,13 +77302,13 @@ ${messageText}`;
|
|
|
77331
77302
|
* Returns the text unchanged when there is no attachment or the fetch fails —
|
|
77332
77303
|
* but a failure is LOGGED and announced in the text, never silent.
|
|
77333
77304
|
*/
|
|
77334
|
-
async _augmentWithAttachment(attachmentInfo, baseText, roomId) {
|
|
77305
|
+
async _augmentWithAttachment(attachmentInfo, baseText, roomId, senderDeviceId) {
|
|
77335
77306
|
if (!attachmentInfo) return baseText;
|
|
77336
77307
|
try {
|
|
77337
77308
|
const { filePath, decrypted } = await this._downloadAndDecryptAttachment(attachmentInfo);
|
|
77338
77309
|
const mime = String(attachmentInfo.mime ?? "application/octet-stream");
|
|
77339
77310
|
const name = String(attachmentInfo.filename ?? "attachment");
|
|
77340
|
-
if (roomId) this._recentRoomAttachments.set(roomId, { filePath, name, at: Date.now() });
|
|
77311
|
+
if (roomId) this._recentRoomAttachments.set(roomId, { filePath, name, at: Date.now(), senderDeviceId });
|
|
77341
77312
|
const textMimes = ["text/", "application/json", "application/xml", "application/csv"];
|
|
77342
77313
|
if (textMimes.some((m2) => mime.startsWith(m2))) {
|
|
77343
77314
|
const content = new TextDecoder().decode(decrypted);
|
|
@@ -77993,22 +77964,34 @@ ${baseText}`;
|
|
|
77993
77964
|
}
|
|
77994
77965
|
const caption = messageText;
|
|
77995
77966
|
const addressed = parseMentions(messageText).length > 0;
|
|
77967
|
+
const foldedFrom = [];
|
|
77996
77968
|
if (roomAttachment && !addressed) {
|
|
77997
|
-
this._deferRoomAttachment(resolvedRoomId, roomAttachment);
|
|
77969
|
+
this._deferRoomAttachment(resolvedRoomId, roomAttachment, senderDeviceId);
|
|
77998
77970
|
} else {
|
|
77999
77971
|
const deferred = addressed ? this._takeDeferredRoomAttachments(resolvedRoomId) : [];
|
|
78000
|
-
for (const
|
|
78001
|
-
messageText = await this._augmentWithAttachment(info, messageText, resolvedRoomId);
|
|
77972
|
+
for (const d2 of deferred) {
|
|
77973
|
+
messageText = await this._augmentWithAttachment(d2.info, messageText, resolvedRoomId, d2.senderDeviceId);
|
|
77974
|
+
foldedFrom.push(d2.senderDeviceId ?? null);
|
|
78002
77975
|
}
|
|
78003
77976
|
if (roomAttachment) {
|
|
78004
|
-
messageText = await this._augmentWithAttachment(roomAttachment, messageText, resolvedRoomId);
|
|
77977
|
+
messageText = await this._augmentWithAttachment(roomAttachment, messageText, resolvedRoomId, senderDeviceId);
|
|
77978
|
+
foldedFrom.push(senderDeviceId ?? null);
|
|
78005
77979
|
} else if (deferred.length === 0) {
|
|
78006
|
-
|
|
77980
|
+
const noted = this._withRecentRoomAttachmentNote(resolvedRoomId, messageText);
|
|
77981
|
+
messageText = noted.text;
|
|
77982
|
+
if (noted.from !== void 0) foldedFrom.push(noted.from);
|
|
78007
77983
|
}
|
|
78008
77984
|
}
|
|
78009
77985
|
const roomMembers = this._persisted?.rooms?.[resolvedRoomId]?.members ?? [];
|
|
78010
77986
|
const senderMember = roomMembers.find((m2) => m2.deviceId === senderDeviceId);
|
|
78011
77987
|
const senderIsAgent = senderMember?.entityType === "agent" ? true : senderMember?.entityType === "owner" || senderMember?.entityType === "human" ? false : void 0;
|
|
77988
|
+
const ownTenantId = this._deviceJwt ? this._decodeTenantIdForRecovery(this._deviceJwt) : null;
|
|
77989
|
+
const isOwnerMember = (deviceId) => {
|
|
77990
|
+
const member = deviceId ? roomMembers.find((m2) => m2.deviceId === deviceId) : void 0;
|
|
77991
|
+
return (member?.entityType === "owner" || member?.entityType === "human") && ownTenantId !== null && typeof member?.tenantId === "string" && member.tenantId.toLowerCase() === ownTenantId;
|
|
77992
|
+
};
|
|
77993
|
+
const senderIsOwner = senderIsAgent === false && isOwnerMember(senderDeviceId);
|
|
77994
|
+
const foreignContent = foldedFrom.some((from) => !isOwnerMember(from));
|
|
78012
77995
|
const metadata = {
|
|
78013
77996
|
messageId: data.message_id ?? "",
|
|
78014
77997
|
conversationId: "",
|
|
@@ -78017,6 +78000,8 @@ ${baseText}`;
|
|
|
78017
78000
|
roomId: resolvedRoomId,
|
|
78018
78001
|
senderDeviceId,
|
|
78019
78002
|
senderIsAgent,
|
|
78003
|
+
senderIsOwner,
|
|
78004
|
+
foreignContent,
|
|
78020
78005
|
senderName: senderMember?.displayName || "unknown",
|
|
78021
78006
|
roomName: this._persisted?.rooms?.[resolvedRoomId]?.name,
|
|
78022
78007
|
caption
|
|
@@ -78042,7 +78027,10 @@ ${baseText}`;
|
|
|
78042
78027
|
timestamp: data.created_at ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
78043
78028
|
// Bridges require an explicit human classification for room tools.
|
|
78044
78029
|
// Reply policy separately uses this field for agent-loop prevention.
|
|
78045
|
-
senderIsAgent
|
|
78030
|
+
senderIsAgent,
|
|
78031
|
+
// #1459 — owner-only power keys on these, never on senderIsAgent.
|
|
78032
|
+
senderIsOwner,
|
|
78033
|
+
foreignContent
|
|
78046
78034
|
});
|
|
78047
78035
|
const contextualMessage = senderIsAgent ? messageText : `[${senderLabel}]: ${messageText}`;
|
|
78048
78036
|
Promise.resolve(this.config.onMessage?.(contextualMessage, metadata)).catch((err) => {
|
|
@@ -81388,7 +81376,8 @@ ${baseText}`;
|
|
|
81388
81376
|
aliases: ["av", "agent-vault"]
|
|
81389
81377
|
},
|
|
81390
81378
|
capabilities: {
|
|
81391
|
-
chatTypes: ["direct", "
|
|
81379
|
+
chatTypes: ["direct", "group"]
|
|
81380
|
+
// #1474: a room is OpenClaw's "group"
|
|
81392
81381
|
},
|
|
81393
81382
|
config: {
|
|
81394
81383
|
listAccountIds,
|
|
@@ -102874,7 +102863,7 @@ data:
|
|
|
102874
102863
|
await init_policy_enforcer();
|
|
102875
102864
|
init_room_protocol();
|
|
102876
102865
|
init_tool_telemetry();
|
|
102877
|
-
VERSION = true ? "0.23.
|
|
102866
|
+
VERSION = true ? "0.23.60" : "0.0.0-dev";
|
|
102878
102867
|
}
|
|
102879
102868
|
});
|
|
102880
102869
|
await init_index();
|
|
@@ -103549,7 +103538,7 @@ function maybeRunServiceSubcommand(argv, env, deps) {
|
|
|
103549
103538
|
log(`${label}: ${st.loaded ? "loaded" : "not loaded"}`);
|
|
103550
103539
|
} else if (cmd === "logs") {
|
|
103551
103540
|
const label = labelFor(env);
|
|
103552
|
-
log(`logs for ${label} are
|
|
103541
|
+
log(`logs for ${label}: errors are in <dataDir>/logs/muse-bridge.error.log (tail -f it); other output is in muse-bridge.log`);
|
|
103553
103542
|
}
|
|
103554
103543
|
} catch (e) {
|
|
103555
103544
|
log(e.message);
|
|
@@ -103595,7 +103584,8 @@ var MuseSession = class {
|
|
|
103595
103584
|
text,
|
|
103596
103585
|
reply,
|
|
103597
103586
|
autoReplyOnText: opts?.replyExpected ?? opts?.autoReplyOnText,
|
|
103598
|
-
sayAllowed: opts?.replyExpected ?? true
|
|
103587
|
+
sayAllowed: opts?.replyExpected ?? true,
|
|
103588
|
+
ownerTurn: opts?.ownerTurn === true
|
|
103599
103589
|
});
|
|
103600
103590
|
if (!this.running) this.drain = this.run();
|
|
103601
103591
|
}
|
|
@@ -103646,7 +103636,7 @@ var MuseSession = class {
|
|
|
103646
103636
|
const prompt = this.opts.identity ? `${this.opts.identity}
|
|
103647
103637
|
|
|
103648
103638
|
${item.text}` : item.text;
|
|
103649
|
-
const result = await this.driver.runTurn(prompt);
|
|
103639
|
+
const result = await this.driver.runTurn(prompt, { ownerTurn: item.ownerTurn });
|
|
103650
103640
|
await this.maybeFallback(item, result);
|
|
103651
103641
|
} catch {
|
|
103652
103642
|
this.log("turn failed reason=driver");
|
|
@@ -103743,7 +103733,7 @@ function museSpawnArgs(opts) {
|
|
|
103743
103733
|
);
|
|
103744
103734
|
}
|
|
103745
103735
|
const provider = opts.provider ?? "meta";
|
|
103746
|
-
const ownerOn = opts.workAllowed === true && opts.gatesRemoved === true;
|
|
103736
|
+
const ownerOn = opts.workAllowed === true && opts.gatesRemoved === true && opts.ownerTurn === true;
|
|
103747
103737
|
const powerFlags = ownerOn ? ["--yolo"] : ["--disable-shell", "--disable-write"];
|
|
103748
103738
|
const args = [
|
|
103749
103739
|
"exec",
|
|
@@ -104019,6 +104009,7 @@ async function createMuseProviderAdapter(opts) {
|
|
|
104019
104009
|
|
|
104020
104010
|
// src/muse-driver.ts
|
|
104021
104011
|
var SESSION_FILE = "muse-session-id";
|
|
104012
|
+
var OWNER_SESSION_FILE = "muse-owner-session-id";
|
|
104022
104013
|
var DEFAULT_TURN_TIMEOUT_MS = 3e5;
|
|
104023
104014
|
var SIGKILL_GRACE_MS = 2e3;
|
|
104024
104015
|
var MuseDriver = class {
|
|
@@ -104031,37 +104022,33 @@ var MuseDriver = class {
|
|
|
104031
104022
|
spawnFn;
|
|
104032
104023
|
turnTimeoutMs;
|
|
104033
104024
|
persistedId = null;
|
|
104025
|
+
ownerId = null;
|
|
104034
104026
|
current = null;
|
|
104035
104027
|
child = null;
|
|
104036
104028
|
probed = false;
|
|
104037
104029
|
adapter = null;
|
|
104038
|
-
/** Load or create `<dataDir>/muse-session-id
|
|
104030
|
+
/** Load or create `<dataDir>/muse-session-id` and the owner lane's id. Does not spawn muse. */
|
|
104039
104031
|
async start() {
|
|
104040
104032
|
mkdirSync3(this.opts.dataDir, { recursive: true });
|
|
104041
|
-
|
|
104042
|
-
|
|
104043
|
-
const existing = readFileSync5(file, "utf8").trim();
|
|
104044
|
-
if (existing) {
|
|
104045
|
-
this.persistedId = existing;
|
|
104046
|
-
return existing;
|
|
104047
|
-
}
|
|
104048
|
-
}
|
|
104049
|
-
this.persistedId = randomUUID5();
|
|
104050
|
-
writeFileSync2(file, this.persistedId + "\n", { encoding: "utf8" });
|
|
104033
|
+
this.persistedId = loadOrMintId(join11(this.opts.dataDir, SESSION_FILE));
|
|
104034
|
+
this.ownerId = loadOrMintId(join11(this.opts.dataDir, OWNER_SESSION_FILE));
|
|
104051
104035
|
return this.persistedId;
|
|
104052
104036
|
}
|
|
104053
104037
|
sessionId() {
|
|
104054
104038
|
return this.persistedId;
|
|
104055
104039
|
}
|
|
104056
|
-
|
|
104057
|
-
|
|
104040
|
+
ownerSessionId() {
|
|
104041
|
+
return this.ownerId;
|
|
104042
|
+
}
|
|
104043
|
+
runTurn(prompt, opts = {}) {
|
|
104044
|
+
if (!this.persistedId || !this.ownerId) {
|
|
104058
104045
|
throw new Error("MuseDriver.runTurn before start()");
|
|
104059
104046
|
}
|
|
104060
104047
|
if (this.current || this.child) {
|
|
104061
104048
|
throw new Error("MuseDriver.runTurn called while a turn is in flight");
|
|
104062
104049
|
}
|
|
104063
104050
|
this.current = { spoke: false, cancelled: false };
|
|
104064
|
-
return this.executeTurn(prompt).finally(() => {
|
|
104051
|
+
return this.executeTurn(prompt, opts.ownerTurn === true).finally(() => {
|
|
104065
104052
|
this.current = null;
|
|
104066
104053
|
});
|
|
104067
104054
|
}
|
|
@@ -104084,8 +104071,8 @@ var MuseDriver = class {
|
|
|
104084
104071
|
const dead = await waitForExit(child, SIGKILL_GRACE_MS);
|
|
104085
104072
|
if (!dead) child.kill("SIGKILL");
|
|
104086
104073
|
}
|
|
104087
|
-
async executeTurn(prompt) {
|
|
104088
|
-
const sessionId = this.persistedId;
|
|
104074
|
+
async executeTurn(prompt, ownerTurn) {
|
|
104075
|
+
const sessionId = ownerTurn ? this.ownerId : this.persistedId;
|
|
104089
104076
|
if (!sessionId) {
|
|
104090
104077
|
throw new Error("MuseDriver.runTurn before start()");
|
|
104091
104078
|
}
|
|
@@ -104099,7 +104086,8 @@ var MuseDriver = class {
|
|
|
104099
104086
|
prompt,
|
|
104100
104087
|
apiKey: this.opts.apiKey,
|
|
104101
104088
|
workAllowed: readFlag(this.opts.workAllowed),
|
|
104102
|
-
gatesRemoved: readFlag(this.opts.gatesRemoved)
|
|
104089
|
+
gatesRemoved: readFlag(this.opts.gatesRemoved),
|
|
104090
|
+
ownerTurn
|
|
104103
104091
|
});
|
|
104104
104092
|
await this.probeUsable(spawn2);
|
|
104105
104093
|
if (this.current?.cancelled) throw new Error("muse turn stopped");
|
|
@@ -104252,6 +104240,15 @@ function defaultSpawn(command, args, options) {
|
|
|
104252
104240
|
stdio: ["ignore", "pipe", "pipe"]
|
|
104253
104241
|
});
|
|
104254
104242
|
}
|
|
104243
|
+
function loadOrMintId(file) {
|
|
104244
|
+
if (existsSync4(file)) {
|
|
104245
|
+
const existing = readFileSync5(file, "utf8").trim();
|
|
104246
|
+
if (existing) return existing;
|
|
104247
|
+
}
|
|
104248
|
+
const id = randomUUID5();
|
|
104249
|
+
writeFileSync2(file, id + "\n", { encoding: "utf8" });
|
|
104250
|
+
return id;
|
|
104251
|
+
}
|
|
104255
104252
|
function readFlag(value) {
|
|
104256
104253
|
return typeof value === "function" ? value() : value;
|
|
104257
104254
|
}
|
|
@@ -104805,6 +104802,7 @@ function attachLifecycle2(channel, opts = {}) {
|
|
|
104805
104802
|
if (/reconnect loop detected/i.test(msg)) terminal("reconnect_loop", true);
|
|
104806
104803
|
});
|
|
104807
104804
|
}
|
|
104805
|
+
var FILE_LOCK_NOTE = "[AgentVault: this turn has no commands and no file changes, because it includes a file another room member shared. If you were asked to run or change something, say so, and that it will work in a message that doesn't refer to that file, or in a 1:1 chat.]";
|
|
104808
104806
|
function roomTurnPrefix(roomId, senderName, roomName) {
|
|
104809
104807
|
return `[room ${roomLabel(roomId, roomName)} | ${sanitizeLabel(senderName)}]`;
|
|
104810
104808
|
}
|
|
@@ -104905,19 +104903,33 @@ function wireBridge(channel, session, target, opts = {}) {
|
|
|
104905
104903
|
log(`inbound from ${e.senderName} in ${e.roomId.slice(0, 8)}`);
|
|
104906
104904
|
target.setRoom(e.roomId);
|
|
104907
104905
|
const held = roomContext.peek(e.roomId);
|
|
104908
|
-
const contextBlock = formatRoomContext(held.entries, roomLabel(e.roomId, roomNames.get(e.roomId)), held.dropped);
|
|
104909
104906
|
const turnText = `${roomTurnPrefix(e.roomId, e.senderName, roomNames.get(e.roomId))}: ${e.plaintext}`;
|
|
104907
|
+
const ownerPowered = e.senderIsAgent === false && e.senderIsOwner === true && e.foreignContent === false && workAllowed() && gatesRemoved();
|
|
104908
|
+
const contextBlock = ownerPowered ? "" : formatRoomContext(held.entries, roomLabel(e.roomId, roomNames.get(e.roomId)), held.dropped);
|
|
104909
|
+
const fileLocked = e.senderIsOwner === true && e.foreignContent === true && workAllowed() && gatesRemoved();
|
|
104910
|
+
if (fileLocked) log(`room ${e.roomId.slice(0, 8)}: owner turn WITHOUT full access \u2014 it carries a file another member shared (#1459)`);
|
|
104911
|
+
const body = fileLocked ? `${turnText}
|
|
104912
|
+
|
|
104913
|
+
${FILE_LOCK_NOTE}` : turnText;
|
|
104910
104914
|
session.push(
|
|
104911
104915
|
contextBlock ? `${contextBlock}
|
|
104912
104916
|
|
|
104913
|
-
${
|
|
104917
|
+
${body}` : body,
|
|
104914
104918
|
target.snapshotReply(channel, log),
|
|
104915
104919
|
{
|
|
104916
104920
|
autoReplyOnText: false,
|
|
104917
|
-
replyExpected: owes
|
|
104921
|
+
replyExpected: owes,
|
|
104922
|
+
ownerTurn: ownerPowered
|
|
104918
104923
|
}
|
|
104919
104924
|
);
|
|
104920
|
-
if (
|
|
104925
|
+
if (ownerPowered) {
|
|
104926
|
+
log(`room ${e.roomId.slice(0, 8)}: owner turn with full access`);
|
|
104927
|
+
if (held.entries.length > 0) {
|
|
104928
|
+
log(
|
|
104929
|
+
`room ${e.roomId.slice(0, 8)}: ${held.entries.length} held message(s) kept for the next turn without full access (a full-access turn never carries room context)`
|
|
104930
|
+
);
|
|
104931
|
+
}
|
|
104932
|
+
} else if (held.entries.length > 0) {
|
|
104921
104933
|
roomContext.clear(e.roomId);
|
|
104922
104934
|
log(`room ${e.roomId.slice(0, 8)}: delivered ${held.entries.length} held message(s) as context with this turn`);
|
|
104923
104935
|
}
|
|
@@ -104931,7 +104943,10 @@ ${turnText}` : turnText,
|
|
|
104931
104943
|
log("inbound 1:1 DM from owner");
|
|
104932
104944
|
}
|
|
104933
104945
|
target.setDm(metadata?.conversationId, metadata?.conversationGroupId);
|
|
104934
|
-
session.push(text, target.snapshotReply(channel, log), {
|
|
104946
|
+
session.push(text, target.snapshotReply(channel, log), {
|
|
104947
|
+
autoReplyOnText: ownerAttested,
|
|
104948
|
+
ownerTurn: ownerAttested
|
|
104949
|
+
});
|
|
104935
104950
|
});
|
|
104936
104951
|
}
|
|
104937
104952
|
|
|
@@ -104989,7 +105004,7 @@ function mkdir700(path2) {
|
|
|
104989
105004
|
chmodSync5(path2, 448);
|
|
104990
105005
|
}
|
|
104991
105006
|
function packageVersion() {
|
|
104992
|
-
return true ? "0.1.
|
|
105007
|
+
return true ? "0.1.32" : void 0;
|
|
104993
105008
|
}
|
|
104994
105009
|
function helpText(version2) {
|
|
104995
105010
|
return [
|
package/dist/muse-driver.d.ts
CHANGED
|
@@ -40,15 +40,19 @@ export declare class MuseDriver {
|
|
|
40
40
|
private readonly spawnFn;
|
|
41
41
|
private readonly turnTimeoutMs;
|
|
42
42
|
private persistedId;
|
|
43
|
+
private ownerId;
|
|
43
44
|
private current;
|
|
44
45
|
private child;
|
|
45
46
|
private probed;
|
|
46
47
|
private adapter;
|
|
47
48
|
constructor(opts: MuseDriverOpts);
|
|
48
|
-
/** Load or create `<dataDir>/muse-session-id
|
|
49
|
+
/** Load or create `<dataDir>/muse-session-id` and the owner lane's id. Does not spawn muse. */
|
|
49
50
|
start(): Promise<string>;
|
|
50
51
|
sessionId(): string | null;
|
|
51
|
-
|
|
52
|
+
ownerSessionId(): string | null;
|
|
53
|
+
runTurn(prompt: string, opts?: {
|
|
54
|
+
ownerTurn?: boolean;
|
|
55
|
+
}): Promise<{
|
|
52
56
|
text: string;
|
|
53
57
|
spoke: boolean;
|
|
54
58
|
}>;
|
package/dist/muse-session.d.ts
CHANGED
|
@@ -2,10 +2,13 @@ export interface RoomSession {
|
|
|
2
2
|
push(text: string, reply?: (text: string) => Promise<void>, opts?: {
|
|
3
3
|
autoReplyOnText?: boolean;
|
|
4
4
|
replyExpected?: boolean;
|
|
5
|
+
ownerTurn?: boolean;
|
|
5
6
|
}): void;
|
|
6
7
|
}
|
|
7
8
|
export interface DriverLike {
|
|
8
|
-
runTurn(prompt: string
|
|
9
|
+
runTurn(prompt: string, opts?: {
|
|
10
|
+
ownerTurn?: boolean;
|
|
11
|
+
}): Promise<{
|
|
9
12
|
text: string;
|
|
10
13
|
spoke: boolean;
|
|
11
14
|
}>;
|
|
@@ -33,6 +36,7 @@ export declare class MuseSession implements RoomSession {
|
|
|
33
36
|
push(text: string, reply?: (text: string) => Promise<void>, opts?: {
|
|
34
37
|
autoReplyOnText?: boolean;
|
|
35
38
|
replyExpected?: boolean;
|
|
39
|
+
ownerTurn?: boolean;
|
|
36
40
|
}): void;
|
|
37
41
|
sayHandler(): (text: string) => void;
|
|
38
42
|
idle(): Promise<void>;
|
package/dist/muse-spawn.d.ts
CHANGED
|
@@ -14,6 +14,13 @@ export interface MuseSpawnOpts {
|
|
|
14
14
|
apiKey?: string;
|
|
15
15
|
workAllowed: boolean;
|
|
16
16
|
gatesRemoved: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* #1459 — this turn came from the owner: an owner-attested 1:1 DM, or a room
|
|
19
|
+
* message whose sender SecureChannel placed in this agent's own account.
|
|
20
|
+
* Owner power needs all three; the owner's switches alone used to grant it
|
|
21
|
+
* to whoever @-mentioned the agent.
|
|
22
|
+
*/
|
|
23
|
+
ownerTurn: boolean;
|
|
17
24
|
}
|
|
18
25
|
export interface MuseSpawnEnv {
|
|
19
26
|
HOME: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subcommand.d.ts","sourceRoot":"","sources":["../../src/service/subcommand.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAElE,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7B;AAeD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG,MAAM,CAEvD;AAOD;wFACwF;AACxF,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EAAE,EACd,GAAG,EAAE,MAAM,CAAC,UAAU,EACtB,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,
|
|
1
|
+
{"version":3,"file":"subcommand.d.ts","sourceRoot":"","sources":["../../src/service/subcommand.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAElE,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7B;AAeD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG,MAAM,CAEvD;AAOD;wFACwF;AACxF,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EAAE,EACd,GAAG,EAAE,MAAM,CAAC,UAAU,EACtB,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,CA+DT"}
|
package/package.json
CHANGED