@noxsoft/anima 3.0.0 → 3.0.1
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/{accounts-4HFzweNO.js → accounts-ZMhj636e.js} +38 -38
- package/dist/{acp-cli-CHsShBeX.js → acp-cli-PhWp41mc.js} +2 -2
- package/dist/{agent-rY3gCqJE.js → agent-DvWSUuKy.js} +1 -1
- package/dist/{agent-events-BiKKV3wj.js → agent-events-iR_gRjZA.js} +2 -2
- package/dist/{agent-scope-BXuH9s05.js → agent-scope-DWKQJUUZ.js} +3 -3
- package/dist/{agents-GDJBET4Z.js → agents-DAg3VWr9.js} +1 -1
- package/dist/{audit-B_3ewOwt.js → audit-Cm50mcVm.js} +3 -3
- package/dist/{auth-choice-BTMheCDo.js → auth-choice-CPDNhDPT.js} +17 -4
- package/dist/{auth-profiles-xk_1uopf.js → auth-profiles-BqrAPweI.js} +9 -9
- package/dist/{auth-store-Bis9WSLR.js → auth-store-eNVxoq_h.js} +13 -13
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +22 -22
- package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +8 -8
- package/dist/{call-BBzfZU0_.js → call-C0Yk2qNb.js} +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-web-BBctXTmi.js → channel-web-Co4IvTdB.js} +5 -5
- package/dist/{chrome-CVfcErE4.js → chrome-_87P03u5.js} +7 -7
- package/dist/{chrome-C1KpzLwu.js → chrome-s7nTgmbn.js} +12 -12
- package/dist/{chunk-Cguey_55.js → chunk-lDG_8LI5.js} +2 -2
- package/dist/{clack-prompter-S0pujJNH.js → clack-prompter-DXovYg0Q.js} +1 -1
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-B2StCcqh.js → cli-BkI8EYn3.js} +9 -9
- package/dist/{client-oEG5cM5Q.js → client-BM5PkIwQ.js} +3 -3
- package/dist/{command-registry-D5y3Nn9i.js → command-registry-Cl3Z-qsS.js} +7 -7
- package/dist/{common-DgcMt-pi.js → common-DbouukNi.js} +2 -2
- package/dist/{completion-cli-CDsbJ-p2.js → completion-cli-BB3_g8w5.js} +1 -1
- package/dist/{completion-cli-CqZwlvs2.js → completion-cli-DcTEhrAe.js} +2 -2
- package/dist/{config-CrQw7iqE.js → config-H_VHtPeY.js} +27 -27
- package/dist/{config-cli-Brwjz25Y.js → config-cli-DCNRWoyW.js} +1 -1
- package/dist/{config-cli-CaUpfkTl.js → config-cli-VB37XAkf.js} +1 -1
- package/dist/{configure-B_PLPDkP.js → configure-CkmVabju.js} +5 -5
- package/dist/{configure-QwZPOdBf.js → configure-Du07BFtQ.js} +1 -1
- package/dist/{control-service-DptjbgYI.js → control-service-BpEnt1xS.js} +3 -3
- package/dist/{cron-cli-CpzhiW5t.js → cron-cli-BT0i4_jA.js} +3 -3
- package/dist/{daemon-cli-CV9nly9k.js → daemon-cli-DlHFi5Gm.js} +2 -2
- package/dist/{deliver-Bri9Y1qG.js → deliver-DyQtnfXd.js} +14 -14
- package/dist/{deps-DcinYE4_.js → deps-DoPMG4GI.js} +1 -1
- package/dist/{dispatcher-CiJKNMU3.js → dispatcher-wmQlHNsm.js} +1 -1
- package/dist/{doctor-qFADypWz.js → doctor-BxzkshQH.js} +1 -1
- package/dist/{doctor-BDWGCEMG.js → doctor-C3foAiuj.js} +6 -6
- package/dist/{doctor-completion-DguJOZqA.js → doctor-completion-CZgNNZVd.js} +1 -1
- package/dist/{doctor-completion-BY4djQTY.js → doctor-completion-VtjYTwcS.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/{exec-DJTRaYS6.js → exec-CK8CHr7j.js} +7 -7
- package/dist/{exec-approvals-cli-ESNXHzjZ.js → exec-approvals-cli-CAwe3fFV.js} +3 -3
- package/dist/{frontmatter-DDYuWuK5.js → frontmatter-BBFYH_d2.js} +2 -2
- package/dist/{gateway-cli-B091bAD6.js → gateway-cli-BKmCrkp2.js} +26 -26
- package/dist/{gateway-cli-CUmQFMSU.js → gateway-cli-D0mD_UV8.js} +6 -6
- package/dist/{gateway-rpc-hgK9OB-O.js → gateway-rpc-elmeRwyu.js} +1 -1
- package/dist/{health-CH8yZB2L.js → health-Cb_2WS_Z.js} +3 -3
- package/dist/{hooks-cli-DBAcPJTk.js → hooks-cli-BkaD_Vnq.js} +10 -10
- package/dist/{image-ops-ZMEg1-kE.js → image-ops-DJjERl7d.js} +2 -2
- package/dist/index.js +17 -17
- package/dist/json-file-Dvrir7_o.js +25 -0
- package/dist/llm-slug-generator.js +5 -5
- package/dist/{login-Bdyk0es6.js → login-CBsXoiD_.js} +1 -1
- package/dist/{login-DP5hIYxG.js → login-CdRss5_H.js} +5 -5
- package/dist/{login-qr-DOt_1aAq.js → login-qr-DoNanonP.js} +10 -10
- package/dist/{login-qr-DQS-8_PV.js → login-qr-aHN20jEV.js} +1 -1
- package/dist/{logs-cli-VAcUvvxS.js → logs-cli-DbdMIph-.js} +3 -3
- package/dist/{manager-CHN3-66K.js → manager-BlXVqzLP.js} +14 -14
- package/dist/{model-auth-C4Jglp-Y.js → model-auth-ChSwMwh7.js} +3 -3
- package/dist/{model-selection-BsVvfxCt.js → model-selection-DPoLkg_t.js} +1 -1
- package/dist/{node-cli-BujxFy1-.js → node-cli-Bcrlhaq3.js} +6 -6
- package/dist/{onboard-B006xiEP.js → onboard-5GREpC8E.js} +5 -5
- package/dist/{onboard-BqpDno7i.js → onboard-D8Khq7CJ.js} +2 -2
- package/dist/{onboard-channels-BQ5lwRDU.js → onboard-channels-CuDv5j-L.js} +1 -1
- package/dist/{onboard-helpers-K7wUCSoE.js → onboard-helpers-CMW6MSXA.js} +1 -1
- package/dist/{onboarding-DXQ0Qtq6.js → onboarding-B_Gs5W53.js} +6 -6
- package/dist/{onboarding-BLFJufto.js → onboarding-CGG6jZ0y.js} +3 -3
- package/dist/{outbound-DdFghG1N.js → outbound-DK71dddk.js} +6 -6
- package/dist/{paths-OaazGgrn.js → paths-CmZenvlb.js} +2 -2
- package/dist/{paths-B-AkG5FD.js → paths-D2eokayo.js} +3 -3
- package/dist/{pi-auth-json-CYnJfuU-.js → pi-auth-json-BYN-DI5a.js} +7 -7
- package/dist/{pi-embedded-helpers-CeMv9QXO.js → pi-embedded-helpers-CvYnWzAn.js} +44 -44
- package/dist/{plugin-registry-BsdLXCVX.js → plugin-registry-CIluPn2C.js} +1 -1
- package/dist/{plugins-cli-OPa7o4qd.js → plugins-cli-CgSDRx-C.js} +10 -10
- package/dist/{program-CzWSwu9I.js → program-Dk1iylK1.js} +2 -2
- package/dist/{program-context-C8DYJdS-.js → program-context-r2WimvLs.js} +23 -23
- package/dist/{prompts-Cm8eJ-i3.js → prompts-BT5ztuUd.js} +17 -4
- package/dist/{pw-ai-DVQKx_ca.js → pw-ai-q5Enhcu7.js} +4 -4
- package/dist/{pw-ai-Rz1I4vvf.js → pw-ai-ycVS073z.js} +1 -1
- package/dist/{qmd-manager-lcdr9Faq.js → qmd-manager-D_lZFetA.js} +7 -7
- package/dist/{register.agent-DY1YeTsP.js → register.agent-BCbrZgZT.js} +15 -15
- package/dist/{register.agent-B_gLj3iW.js → register.agent-sq78vQTz.js} +2 -2
- package/dist/{register.configure-BHsLGGdB.js → register.configure-CM8ScF9N.js} +15 -15
- package/dist/{register.configure-De5ZyOFg.js → register.configure-w6Ptx3C9.js} +2 -2
- package/dist/{register.maintenance-DSQmEYe7.js → register.maintenance-B15nWIhc.js} +16 -16
- package/dist/{register.maintenance-Bcb2lf7H.js → register.maintenance-Chm2rk_s.js} +5 -5
- package/dist/{register.onboard-COEVeozO.js → register.onboard-B7Ozkx53.js} +7 -7
- package/dist/{register.onboard-DUWYMOX1.js → register.onboard-k9Rd9qzS.js} +19 -19
- package/dist/{register.setup-D__YdHzY.js → register.setup-BId1QGzk.js} +7 -7
- package/dist/{register.setup-fJdxj_9G.js → register.setup-CN1yxMOl.js} +19 -19
- package/dist/{register.status-health-sessions-BsGFhOsG.js → register.status-health-sessions-CNUs9w8v.js} +13 -13
- package/dist/{register.subclis-D2HE_7Rz.js → register.subclis-N7uAMRX_.js} +3 -3
- package/dist/{reply-B5IU75jY.js → reply-BJ3jrefM.js} +12 -12
- package/dist/{reply-prefix-B90kjTag.js → reply-prefix-DBJU0o4f.js} +2 -2
- package/dist/{routes-D7OuiEUz.js → routes-CNqS9gOj.js} +2 -2
- package/dist/{run-main-BTol0uPD.js → run-main-DA4rt9qc.js} +6 -6
- package/dist/{sandbox-cli-CRzBRQ9r.js → sandbox-cli-BsMjNBFN.js} +3 -3
- package/dist/{security-cli-CVkFh9a9.js → security-cli-pupt3tx1.js} +6 -6
- package/dist/{semantic-BTp-RtM8.js → semantic-BcioSN1d.js} +1 -1
- package/dist/{server-context-CHGGYs6i.js → server-context-CcPmRFx_.js} +4 -4
- package/dist/{server-node-events-DMEsGLU8.js → server-node-events-DNDwVJH_.js} +5 -5
- package/dist/{session-BpAyGjL3.js → session-D53RZP3i.js} +6 -6
- package/dist/{session-CzBccNiw.js → session-DTRcP2Sj.js} +1 -1
- package/dist/{shell-env-5vFwNQcz.js → shell-env-BBHdjHEl.js} +1 -1
- package/dist/{soul-D4rF0iXu.js → soul-CXGTzaKZ.js} +1 -1
- package/dist/{sqlite-B3u2TqVF.js → sqlite-B-dYyac7.js} +4 -4
- package/dist/{status-CHuLEuXT.js → status-DNUP2mgR.js} +5 -5
- package/dist/{status-CTYln2fY.js → status-DYGeQK4c.js} +1 -1
- package/dist/{subagent-registry-jwfG4kCT.js → subagent-registry-D4idxv3D.js} +1 -1
- package/dist/{subagent-registry-xUCd2ZX9.js → subagent-registry-DjB3VS5s.js} +28 -28
- package/dist/{subsystem-BlEuMJjX.js → subsystem-CJTCKTwb.js} +13 -13
- package/dist/{system-cli-C8kg1fwg.js → system-cli-BNhplLHn.js} +3 -3
- package/dist/{tool-images-2qKyjXUj.js → tool-images-DBOSl4NL.js} +2 -2
- package/dist/{tui-cli-CypnMid4.js → tui-cli-ByERfWnP.js} +6 -6
- package/dist/{tui-DBbVe-hW.js → tui-dHcni7fC.js} +2 -2
- package/dist/{update-cli-CATjbP1k.js → update-cli-CGVsahIi.js} +5 -5
- package/dist/{update-cli-C6zUK6ap.js → update-cli-D7SyNIoQ.js} +17 -17
- package/dist/{update-runner-B-JShOyr.js → update-runner-DeNUEGyr.js} +1 -1
- package/dist/{usage-kmpmqBES.js → usage-DSZ_juox.js} +20 -20
- package/dist/{web-CTS-vEIT.js → web-DY2TrPoD.js} +86 -86
- package/dist/{web-EevNfpKp.js → web-DyUoZrMO.js} +13 -13
- package/dist/{whatsapp-actions-qDftmVCc.js → whatsapp-actions-B_fglZZt.js} +13 -13
- package/dist/{workspace-CZlo4alz.js → workspace-xzxJwPTB.js} +5 -5
- package/package.json +2 -1
- package/dist/json-file-CZ3ssFR9.js +0 -25
- /package/dist/{config-Btt1rkoB.js → config-COtiNNtV.js} +0 -0
- /package/dist/{input-provenance-B0pwc6mp.js → input-provenance-MbkIKHHL.js} +0 -0
|
@@ -2,7 +2,7 @@ import { m as resolveStateDir, u as resolveGatewayPort } from "./paths-zhVksOvm.
|
|
|
2
2
|
import { B as theme, C as normalizeChannelId, D as setActivePluginRegistry, F as shouldLogVerbose, G as normalizeLogLevel, M as logVerbose, S as normalizeAnyChannelId, V as getChildLogger, g as CHAT_CHANNEL_ORDER, t as createSubsystemLogger, u as defaultRuntime, w as normalizeChatChannelId } from "./subsystem-BaJ-PqmA.js";
|
|
3
3
|
import { C as shortenHomePath, D as truncateUtf16Safe, T as sliceUtf16Safe, b as resolveUserPath, d as isPlainObject, f as isRecord, i as clampInt, l as escapeRegExp, t as CONFIG_DIR, w as sleep } from "./utils-RdHkpqQp.js";
|
|
4
4
|
import { C as supportsXHighThinking, S as resolveResponseUsageMode, _ as normalizeElevatedLevel, a as isContextOverflowError, b as normalizeUsageDisplay, c as isTransientHttpError, d as resolveBootstrapMaxChars, i as isCompactionFailureError, l as sanitizeUserFacingText, m as formatXHighModelHint, p as formatThinkingLevels, s as isLikelyContextOverflowError, v as normalizeReasoningLevel, x as normalizeVerboseLevel, y as normalizeThinkLevel } from "./pi-embedded-helpers-6Tb87sgU.js";
|
|
5
|
-
import { $ as logSessionStateChange, A as enqueueFollowupRun, C as resolveSessionReference, D as extractAssistantText, E as stripToolMessages, F as normalizeReplyPayload, K as getQueueSize, M as scheduleFollowupDrain, N as isRoutableChannel, O as getSubagentDepthFromSessionStore, P as routeReply, Q as logMessageQueued, R as resolveEffectiveMessagesConfig, S as resolveMainSessionAlias, T as shouldResolveSessionIdInput, U as clearSessionQueues, W as clearCommandLane, Z as logMessageProcessed, _ as createAgentToAgentPolicy, at as skipDirectiveArgPrefix, b as resolveDisplaySessionKey, c as markSubagentRunTerminated, f as buildSubagentSystemPrompt, g as classifySessionKind, h as runAgentStep, it as extractQueueDirective, j as getFollowupQueueDepth, k as resolveQueueSettings, l as registerSubagentRun, m as readLatestAssistantReply, nt as emitDiagnosticEvent, o as listSubagentRunsForRequester, ot as takeDirectiveToken, r as countActiveRunsForSession, rt as isDiagnosticsEnabled, s as markSubagentRunForSteerRestart, t as clearSubagentRunSteerRestart, u as replaceSubagentRunAfterSteer, v as deriveChannel, w as sanitizeTextContent, x as resolveInternalSessionKey, y as extractAssistantText$1, z as resolveHumanDelayConfig } from "./subagent-registry-
|
|
5
|
+
import { $ as logSessionStateChange, A as enqueueFollowupRun, C as resolveSessionReference, D as extractAssistantText, E as stripToolMessages, F as normalizeReplyPayload, K as getQueueSize, M as scheduleFollowupDrain, N as isRoutableChannel, O as getSubagentDepthFromSessionStore, P as routeReply, Q as logMessageQueued, R as resolveEffectiveMessagesConfig, S as resolveMainSessionAlias, T as shouldResolveSessionIdInput, U as clearSessionQueues, W as clearCommandLane, Z as logMessageProcessed, _ as createAgentToAgentPolicy, at as skipDirectiveArgPrefix, b as resolveDisplaySessionKey, c as markSubagentRunTerminated, f as buildSubagentSystemPrompt, g as classifySessionKind, h as runAgentStep, it as extractQueueDirective, j as getFollowupQueueDepth, k as resolveQueueSettings, l as registerSubagentRun, m as readLatestAssistantReply, nt as emitDiagnosticEvent, o as listSubagentRunsForRequester, ot as takeDirectiveToken, r as countActiveRunsForSession, rt as isDiagnosticsEnabled, s as markSubagentRunForSteerRestart, t as clearSubagentRunSteerRestart, u as replaceSubagentRunAfterSteer, v as deriveChannel, w as sanitizeTextContent, x as resolveInternalSessionKey, y as extractAssistantText$1, z as resolveHumanDelayConfig } from "./subagent-registry-D4idxv3D.js";
|
|
6
6
|
import { S as resolveThreadParentSessionKey, a as buildAgentPeerSessionKey, b as isSubagentSessionKey, c as normalizeAccountId$1, d as resolveAgentIdFromSessionKey, f as resolveThreadSessionKeys, i as buildAgentMainSessionKey, l as normalizeAgentId, n as DEFAULT_AGENT_ID, p as sanitizeAgentId, r as DEFAULT_MAIN_KEY, t as DEFAULT_ACCOUNT_ID, u as normalizeMainKey, x as parseAgentSessionKey } from "./session-key-DxcgHezu.js";
|
|
7
7
|
import { a as logDebug, c as logWarn, i as spawnWithFallback, n as runExec, r as formatSpawnError, s as logInfo, t as runCommandWithTimeout } from "./exec-Bsq6vlwp.js";
|
|
8
8
|
import { c as resolveDefaultAgentId, f as DEFAULT_AGENT_WORKSPACE_DIR, i as resolveAgentModelFallbacksOverride, l as resolveSessionAgentId, n as resolveAgentConfig, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentIds, x as ensureAgentWorkspace } from "./agent-scope-vpVhWds3.js";
|
|
@@ -21,10 +21,10 @@ import { a as resolveEnvApiKey, i as resolveApiKeyForProvider, n as getCustomPro
|
|
|
21
21
|
import { $ as textToSpeech, $t as ensureAnimaModelsJson, A as resolveBootstrapContextForRun, B as isTtsProviderConfigured, Bt as clearSessionAuthProfileOverride, D as unknownTargetError, E as ambiguousTargetError, F as getLastTtsAttempt, G as resolveTtsConfig, Gt as drainSystemEventEntries, H as normalizeTtsAutoMode, Ht as applyModelOverrideToSessionEntry, I as getTtsMaxLength, It as ensureSkillsWatcher, J as setLastTtsAttempt, K as resolveTtsPrefsPath, Kt as enqueueSystemEvent, L as getTtsProvider, Lt as getSkillsSnapshotVersion, M as resolveUserTimeFormat, N as resolveUserTimezone, O as runWithImageModelFallback, P as buildTtsSystemPromptHint, Q as setTtsProvider, Qt as modelSupportsVision, R as isSummarizationEnabled, T as resolveSessionDeliveryTarget, U as resolveTtsApiKey, Ut as applyVerboseOverride, V as maybeApplyTtsToPayload, Vt as resolveSessionAuthProfileOverride, W as resolveTtsAutoMode, X as setTtsEnabled, Xt as findModelInCatalog, Y as setSummarizationEnabled, Z as setTtsMaxLength, Zt as loadModelCatalog, _ as capArrayByJsonBytes, a as buildAgentSystemPrompt, at as killProcessTree, et as textToSpeechTelephony, ft as createInternalHookEvent, g as archiveSessionTranscripts, ht as getRemoteSkillEligibility, it as getShellConfig, j as formatUserTime, k as runWithModelFallback, mt as triggerInternalHook, n as setCliSessionId, o as buildSystemPromptParams, ot as sanitizeBinaryOutput, pt as registerInternalHook, r as runCliAgent, rt as isVoiceCompatibleAudio, st as requestHeartbeatNow, t as getCliSessionId, u as loadCombinedSessionStoreForGateway, ut as resolveSendPolicy, w as resolveOutboundTarget, z as isTtsEnabled, zt as lookupContextTokens } from "./cli-session-CIhvoVRb.js";
|
|
22
22
|
import { n as SILENT_REPLY_TOKEN, r as isSilentReplyText } from "./tokens-BLOye_TP.js";
|
|
23
23
|
import { _ as resolveToolProfilePolicy, a as ensureSandboxWorkspaceForSession, c as resolveSandboxConfigForAgent, d as applyOwnerOnlyToolPolicy, f as buildPluginToolGroups, g as normalizeToolName, m as expandPolicyWithPluginGroups, o as resolveSandboxRuntimeStatus, p as collectExplicitAllowlist, s as getBridgeAuthForPort, v as stripPluginOnlyAllowlist } from "./sandbox-wL61f1WP.js";
|
|
24
|
-
import { x as DEFAULT_AI_SNAPSHOT_MAX_CHARS } from "./chrome-
|
|
25
|
-
import { a as resolveBrowserConfig, h as resolveBrowserControlAuth } from "./server-context-
|
|
24
|
+
import { x as DEFAULT_AI_SNAPSHOT_MAX_CHARS } from "./chrome-_87P03u5.js";
|
|
25
|
+
import { a as resolveBrowserConfig, h as resolveBrowserControlAuth } from "./server-context-CcPmRFx_.js";
|
|
26
26
|
import { c as assertMediaNotDataUrl, l as assertSandboxPath, n as buildWorkspaceSkillCommandSpecs, r as buildWorkspaceSkillSnapshot, u as resolveSandboxedMediaSource } from "./skills-DsdcfeyV.js";
|
|
27
|
-
import { a as resolvePathsWithinRoot, i as DEFAULT_UPLOAD_DIR, n as getMediaDir, r as saveMediaBuffer } from "./routes-
|
|
27
|
+
import { a as resolvePathsWithinRoot, i as DEFAULT_UPLOAD_DIR, n as getMediaDir, r as saveMediaBuffer } from "./routes-CNqS9gOj.js";
|
|
28
28
|
import { a as isInternalMessageChannel, c as listDeliverableMessageChannels, d as resolveMessageChannel, h as GATEWAY_CLIENT_NAMES, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES, n as isDeliverableMessageChannel, o as isMarkdownCapableMessageChannel, p as GATEWAY_CLIENT_IDS, t as INTERNAL_MESSAGE_CHANNEL, u as resolveGatewayMessageChannel } from "./message-channel-BbkwF58_.js";
|
|
29
29
|
import { n as listChannelPlugins, r as normalizeChannelId$1, t as getChannelPlugin } from "./plugins-CFb1gJ4N.js";
|
|
30
30
|
import { c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, r as resolveSessionFilePathOptions } from "./paths-CqMZNi-M.js";
|
|
@@ -33,8 +33,8 @@ import { a as shouldHandleTextCommands, i as normalizeCommandBody, n as listChat
|
|
|
33
33
|
import { a as chunkText, c as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, o as chunkTextWithMode, r as chunkMarkdownText, s as resolveChunkMode, t as chunkByNewline } from "./chunk-DprzQA5H.js";
|
|
34
34
|
import { _ as throwIfAborted, b as initializeGlobalHookRunner, c as applyReplyThreading, d as shouldSuppressMessagingToolReplies, f as createReplyToModeFilterForChannel, g as normalizeTargetForProvider, h as normalizeChannelTargetInput, l as filterMessagingToolDuplicates, m as buildTargetResolverSignature, o as normalizeReplyPayloadsForDelivery, p as resolveReplyToMode, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as isRenderablePayload, v as parseReplyDirectives, y as getGlobalHookRunner } from "./deliver-tQREYhAr.js";
|
|
35
35
|
import { a as resolveSubagentToolPolicy, c as addChannelAllowFromStoreEntry, d as upsertChannelPairingRequest, f as listPairingChannels, i as resolveGroupToolPolicy, l as readChannelAllowFromStore, n as isToolAllowedByPolicies, o as resolveChannelGroupPolicy, r as resolveEffectiveToolPolicy, s as resolveChannelGroupRequireMention, t as filterToolsByPolicy, u as removeChannelAllowFromStoreEntry } from "./pi-tools.policy-BoWzLBtH.js";
|
|
36
|
-
import { At as SESSION_LABEL_MAX_LENGTH } from "./client-
|
|
37
|
-
import { i as randomIdempotencyKey, n as callGateway } from "./call-
|
|
36
|
+
import { At as SESSION_LABEL_MAX_LENGTH } from "./client-BM5PkIwQ.js";
|
|
37
|
+
import { i as randomIdempotencyKey, n as callGateway } from "./call-C0Yk2qNb.js";
|
|
38
38
|
import { a as minSecurity, c as recordAllowlistUse, d as resolveExecApprovalsFromFile, g as resolveSafeBins, h as evaluateShellAllowlist, i as maxAsk, l as requiresExecApproval, n as addAllowlistEntry, u as resolveExecApprovals, v as buildSafeBinsShellCommand, y as buildSafeShellCommand } from "./exec-approvals-BTNqVQK0.js";
|
|
39
39
|
import { t as resolveNodeIdFromCandidates } from "./node-match-DzFfQgQe.js";
|
|
40
40
|
import { t as formatDurationCompact$1 } from "./format-duration-DduItW4_.js";
|
|
@@ -45,8 +45,8 @@ import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemory
|
|
|
45
45
|
import { n as resolveMemorySearchConfig } from "./manager-1ZMunRXe.js";
|
|
46
46
|
import { a as jsonResult, c as readStringArrayParam, i as imageResultFromFile, l as readStringParam, o as readNumberParam, r as imageResult } from "./common-CwWabBN8.js";
|
|
47
47
|
import { a as logoutWeb, c as readWebSelfId, f as webAuthExists, i as logWebSelfId, n as getWebAuthAgeMs } from "./auth-store-DWgI4Vj8.js";
|
|
48
|
-
import { n as createBrowserControlContext, r as startBrowserControlServiceFromConfig } from "./control-service-
|
|
49
|
-
import { t as createBrowserRouteDispatcher } from "./dispatcher-
|
|
48
|
+
import { n as createBrowserControlContext, r as startBrowserControlServiceFromConfig } from "./control-service-BpEnt1xS.js";
|
|
49
|
+
import { t as createBrowserRouteDispatcher } from "./dispatcher-wmQlHNsm.js";
|
|
50
50
|
import { t as parseAbsoluteTimeMs } from "./parse-CY6yxdSO.js";
|
|
51
51
|
import { d as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel } from "./constants-BCASNbxX.js";
|
|
52
52
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-HH8RvApN.js";
|
|
@@ -10655,7 +10655,7 @@ function createWhatsAppLoginTool() {
|
|
|
10655
10655
|
force: Type.Optional(Type.Boolean())
|
|
10656
10656
|
}),
|
|
10657
10657
|
execute: async (_toolCallId, args) => {
|
|
10658
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
10658
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-aHN20jEV.js");
|
|
10659
10659
|
if ((args?.action ?? "start") === "wait") {
|
|
10660
10660
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
10661
10661
|
return {
|
|
@@ -11105,15 +11105,15 @@ function loadWebOutbound() {
|
|
|
11105
11105
|
return webOutboundPromise;
|
|
11106
11106
|
}
|
|
11107
11107
|
function loadWebLogin() {
|
|
11108
|
-
webLoginPromise ??= import("./login-
|
|
11108
|
+
webLoginPromise ??= import("./login-CBsXoiD_.js").then((n) => n.n);
|
|
11109
11109
|
return webLoginPromise;
|
|
11110
11110
|
}
|
|
11111
11111
|
function loadWebLoginQr() {
|
|
11112
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
11112
|
+
webLoginQrPromise ??= import("./login-qr-aHN20jEV.js");
|
|
11113
11113
|
return webLoginQrPromise;
|
|
11114
11114
|
}
|
|
11115
11115
|
function loadWebChannel() {
|
|
11116
|
-
webChannelPromise ??= import("./web-
|
|
11116
|
+
webChannelPromise ??= import("./web-DyUoZrMO.js");
|
|
11117
11117
|
return webChannelPromise;
|
|
11118
11118
|
}
|
|
11119
11119
|
function loadWhatsAppActions() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as resolveIdentityName, I as extractShortModelName, R as resolveEffectiveMessagesConfig } from "./subagent-registry-
|
|
2
|
-
import { yt as CURRENT_MESSAGE_MARKER } from "./reply-
|
|
1
|
+
import { B as resolveIdentityName, I as extractShortModelName, R as resolveEffectiveMessagesConfig } from "./subagent-registry-D4idxv3D.js";
|
|
2
|
+
import { yt as CURRENT_MESSAGE_MARKER } from "./reply-BJ3jrefM.js";
|
|
3
3
|
|
|
4
4
|
//#region src/auto-reply/reply/history.ts
|
|
5
5
|
const HISTORY_CONTEXT_MARKER = "[Chat messages since your last reply - for context]";
|
|
@@ -3,8 +3,8 @@ import { _ as resolveConfigDir } from "./utils-RdHkpqQp.js";
|
|
|
3
3
|
import { i as loadConfig, l as writeConfigFile } from "./config-9JRRXykP.js";
|
|
4
4
|
import { t as parseBooleanValue } from "./boolean-Wzu0-e0P.js";
|
|
5
5
|
import { a as resizeToJpeg, n as getImageMetadata, o as detectMime, s as extensionForMime } from "./image-ops-CVabMYiY.js";
|
|
6
|
-
import { T as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, a as resolveAnimaUserDataDir, b as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, c as captureScreenshot, f as snapshotAria, s as resolveBrowserExecutableForPlatform, x as DEFAULT_AI_SNAPSHOT_MAX_CHARS, y as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH } from "./chrome-
|
|
7
|
-
import { c as allocateColor, d as isValidProfileName, f as deriveDefaultBrowserCdpPortRange, i as parseHttpUrl, l as getUsedColors, o as resolveProfile, p as getPwAiModule$1, r as movePathToTrash, s as allocateCdpPort, u as getUsedPorts } from "./server-context-
|
|
6
|
+
import { T as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, a as resolveAnimaUserDataDir, b as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, c as captureScreenshot, f as snapshotAria, s as resolveBrowserExecutableForPlatform, x as DEFAULT_AI_SNAPSHOT_MAX_CHARS, y as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH } from "./chrome-_87P03u5.js";
|
|
7
|
+
import { c as allocateColor, d as isValidProfileName, f as deriveDefaultBrowserCdpPortRange, i as parseHttpUrl, l as getUsedColors, o as resolveProfile, p as getPwAiModule$1, r as movePathToTrash, s as allocateCdpPort, u as getUsedPorts } from "./server-context-CcPmRFx_.js";
|
|
8
8
|
import fs, { createWriteStream } from "node:fs";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import fs$1 from "node:fs/promises";
|
|
@@ -133,7 +133,7 @@ const routeAgentsList = {
|
|
|
133
133
|
run: async (argv) => {
|
|
134
134
|
const json = hasFlag(argv, "--json");
|
|
135
135
|
const bindings = hasFlag(argv, "--bindings");
|
|
136
|
-
const { agentsListCommand } = await import("./agents-
|
|
136
|
+
const { agentsListCommand } = await import("./agents-DAg3VWr9.js").then((n) => n.t);
|
|
137
137
|
await agentsListCommand({
|
|
138
138
|
json,
|
|
139
139
|
bindings
|
|
@@ -204,7 +204,7 @@ const routes = [
|
|
|
204
204
|
const pathArg = getCommandPositionals(argv)[2];
|
|
205
205
|
if (!pathArg) return false;
|
|
206
206
|
const json = hasFlag(argv, "--json");
|
|
207
|
-
const { runConfigGet } = await import("./config-cli-
|
|
207
|
+
const { runConfigGet } = await import("./config-cli-VB37XAkf.js");
|
|
208
208
|
await runConfigGet({
|
|
209
209
|
path: pathArg,
|
|
210
210
|
json
|
|
@@ -217,7 +217,7 @@ const routes = [
|
|
|
217
217
|
run: async (argv) => {
|
|
218
218
|
const pathArg = getCommandPositionals(argv)[2];
|
|
219
219
|
if (!pathArg) return false;
|
|
220
|
-
const { runConfigUnset } = await import("./config-cli-
|
|
220
|
+
const { runConfigUnset } = await import("./config-cli-VB37XAkf.js");
|
|
221
221
|
await runConfigUnset({ path: pathArg });
|
|
222
222
|
return true;
|
|
223
223
|
}
|
|
@@ -340,7 +340,7 @@ async function runCli(argv = process$1.argv) {
|
|
|
340
340
|
assertSupportedRuntime();
|
|
341
341
|
if (await tryRouteCli(normalizedArgv)) return;
|
|
342
342
|
enableConsoleCapture();
|
|
343
|
-
const { buildProgram } = await import("./program-
|
|
343
|
+
const { buildProgram } = await import("./program-Dk1iylK1.js");
|
|
344
344
|
const program = buildProgram();
|
|
345
345
|
installUnhandledRejectionHandler();
|
|
346
346
|
process$1.on("uncaughtException", (error) => {
|
|
@@ -353,10 +353,10 @@ async function runCli(argv = process$1.argv) {
|
|
|
353
353
|
const { getProgramContext } = await import("./program-context-DItEQSzX.js").then((n) => n.n);
|
|
354
354
|
const ctx = getProgramContext(program);
|
|
355
355
|
if (ctx) {
|
|
356
|
-
const { registerCoreCliByName } = await import("./command-registry-
|
|
356
|
+
const { registerCoreCliByName } = await import("./command-registry-Cl3Z-qsS.js").then((n) => n.t);
|
|
357
357
|
await registerCoreCliByName(program, ctx, primary, parseArgv);
|
|
358
358
|
}
|
|
359
|
-
const { registerSubCliByName } = await import("./register.subclis-
|
|
359
|
+
const { registerSubCliByName } = await import("./register.subclis-N7uAMRX_.js").then((n) => n.i);
|
|
360
360
|
await registerSubCliByName(program, primary);
|
|
361
361
|
}
|
|
362
362
|
if (!shouldSkipPluginCommandRegistration({
|
|
@@ -14,11 +14,11 @@ import { D as resolveAgentMainSessionKey, i as loadSessionStore, k as resolveMai
|
|
|
14
14
|
import "./image-ops-CVabMYiY.js";
|
|
15
15
|
import { t as formatCliCommand } from "./command-format-B1WxXbeU.js";
|
|
16
16
|
import { c as resolveSandboxConfigForAgent, i as removeSandboxContainer, n as listSandboxContainers, r as removeSandboxBrowserContainer, t as listSandboxBrowsers, u as resolveSandboxToolPolicyForAgent } from "./sandbox-wL61f1WP.js";
|
|
17
|
-
import "./chrome-
|
|
17
|
+
import "./chrome-_87P03u5.js";
|
|
18
18
|
import "./auth-B8ry4GB_.js";
|
|
19
|
-
import "./server-context-
|
|
19
|
+
import "./server-context-CcPmRFx_.js";
|
|
20
20
|
import "./skills-DsdcfeyV.js";
|
|
21
|
-
import "./routes-
|
|
21
|
+
import "./routes-CNqS9gOj.js";
|
|
22
22
|
import "./ports-CmAt9mb6.js";
|
|
23
23
|
import { t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-BbkwF58_.js";
|
|
24
24
|
import "./plugins-CFb1gJ4N.js";
|
|
@@ -15,21 +15,21 @@ import "./image-ops-CVabMYiY.js";
|
|
|
15
15
|
import { t as formatCliCommand } from "./command-format-B1WxXbeU.js";
|
|
16
16
|
import "./file-lock-BRW4LeL0.js";
|
|
17
17
|
import "./sandbox-wL61f1WP.js";
|
|
18
|
-
import "./chrome-
|
|
18
|
+
import "./chrome-_87P03u5.js";
|
|
19
19
|
import "./auth-B8ry4GB_.js";
|
|
20
|
-
import "./server-context-
|
|
20
|
+
import "./server-context-CcPmRFx_.js";
|
|
21
21
|
import "./skills-DsdcfeyV.js";
|
|
22
|
-
import "./routes-
|
|
22
|
+
import "./routes-CNqS9gOj.js";
|
|
23
23
|
import "./ports-CmAt9mb6.js";
|
|
24
24
|
import "./message-channel-BbkwF58_.js";
|
|
25
25
|
import "./plugins-CFb1gJ4N.js";
|
|
26
26
|
import "./paths-CqMZNi-M.js";
|
|
27
27
|
import { l as readChannelAllowFromStore } from "./pi-tools.policy-BoWzLBtH.js";
|
|
28
|
-
import "./client-
|
|
29
|
-
import "./call-
|
|
28
|
+
import "./client-BM5PkIwQ.js";
|
|
29
|
+
import "./call-C0Yk2qNb.js";
|
|
30
30
|
import { t as formatDocsLink } from "./links-NgE0SEVZ.js";
|
|
31
31
|
import "./dangerous-tools-C7Q_csTW.js";
|
|
32
|
-
import { i as collectIncludePathsRecursive, n as createIcaclsResetCommand, r as formatIcaclsResetCommand, t as runSecurityAudit } from "./audit-
|
|
32
|
+
import { i as collectIncludePathsRecursive, n as createIcaclsResetCommand, r as formatIcaclsResetCommand, t as runSecurityAudit } from "./audit-Cm50mcVm.js";
|
|
33
33
|
import "./skill-scanner-BA9Rv4AE.js";
|
|
34
34
|
import path from "node:path";
|
|
35
35
|
import fs from "node:fs/promises";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-CJTCKTwb.js";
|
|
3
3
|
import { t as extractTopics } from "./topic-extractor-C62Ienjd.js";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
|
|
@@ -2,7 +2,7 @@ import { u as resolveGatewayPort } from "./paths-zhVksOvm.js";
|
|
|
2
2
|
import { n as runExec } from "./exec-Bsq6vlwp.js";
|
|
3
3
|
import { i as loadConfig, l as writeConfigFile, r as createConfigIO } from "./config-9JRRXykP.js";
|
|
4
4
|
import { n as formatErrorMessage, t as extractErrorCode } from "./errors-DjZBTJJ3.js";
|
|
5
|
-
import { C as DEFAULT_ANIMA_BROWSER_ENABLED, E as DEFAULT_BROWSER_EVALUATE_ENABLED, S as DEFAULT_ANIMA_BROWSER_COLOR, T as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as ensureChromeExtensionRelayServer, a as resolveAnimaUserDataDir, d as normalizeCdpWsUrl, h as getHeadersWithAuth, i as launchAnimaChrome, l as createTargetViaCdp, n as isChromeCdpReady, o as stopAnimaChrome, p as appendCdpPath, r as isChromeReachable, v as stopChromeExtensionRelayServer, w as DEFAULT_ANIMA_BROWSER_PROFILE_NAME } from "./chrome-
|
|
5
|
+
import { C as DEFAULT_ANIMA_BROWSER_ENABLED, E as DEFAULT_BROWSER_EVALUATE_ENABLED, S as DEFAULT_ANIMA_BROWSER_COLOR, T as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as ensureChromeExtensionRelayServer, a as resolveAnimaUserDataDir, d as normalizeCdpWsUrl, h as getHeadersWithAuth, i as launchAnimaChrome, l as createTargetViaCdp, n as isChromeCdpReady, o as stopAnimaChrome, p as appendCdpPath, r as isChromeReachable, v as stopChromeExtensionRelayServer, w as DEFAULT_ANIMA_BROWSER_PROFILE_NAME } from "./chrome-_87P03u5.js";
|
|
6
6
|
import { i as resolveGatewayAuth } from "./auth-B8ry4GB_.js";
|
|
7
7
|
import { r as isLoopbackHost } from "./ws-ebl3urqL.js";
|
|
8
8
|
import fs from "node:fs";
|
|
@@ -71,7 +71,7 @@ function isModuleNotFoundError(err) {
|
|
|
71
71
|
}
|
|
72
72
|
async function loadPwAiModule(mode) {
|
|
73
73
|
try {
|
|
74
|
-
return await import("./pw-ai-
|
|
74
|
+
return await import("./pw-ai-ycVS073z.js");
|
|
75
75
|
} catch (err) {
|
|
76
76
|
if (mode === "soft") return null;
|
|
77
77
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -715,11 +715,11 @@ function createProfileContext(opts, profile) {
|
|
|
715
715
|
const userDataDir = resolveAnimaUserDataDir(profile.name);
|
|
716
716
|
const profileState = getProfileState();
|
|
717
717
|
if (await isHttpReachable(300) && !profileState.running) try {
|
|
718
|
-
await (await import("./pw-ai-
|
|
718
|
+
await (await import("./pw-ai-ycVS073z.js")).closePlaywrightBrowserConnection();
|
|
719
719
|
} catch {}
|
|
720
720
|
if (profileState.running) await stopRunningBrowser();
|
|
721
721
|
try {
|
|
722
|
-
await (await import("./pw-ai-
|
|
722
|
+
await (await import("./pw-ai-ycVS073z.js")).closePlaywrightBrowserConnection();
|
|
723
723
|
} catch {}
|
|
724
724
|
if (!fs.existsSync(userDataDir)) return {
|
|
725
725
|
moved: false,
|
|
@@ -20,11 +20,11 @@ import "./model-auth-DUHamQTz.js";
|
|
|
20
20
|
import { Kt as enqueueSystemEvent, d as loadSessionEntry, f as pruneLegacyStoreKeys, p as resolveGatewaySessionStoreTarget, st as requestHeartbeatNow } from "./cli-session-CIhvoVRb.js";
|
|
21
21
|
import "./tokens-BLOye_TP.js";
|
|
22
22
|
import "./sandbox-wL61f1WP.js";
|
|
23
|
-
import "./chrome-
|
|
23
|
+
import "./chrome-_87P03u5.js";
|
|
24
24
|
import "./auth-B8ry4GB_.js";
|
|
25
|
-
import "./server-context-
|
|
25
|
+
import "./server-context-CcPmRFx_.js";
|
|
26
26
|
import "./skills-DsdcfeyV.js";
|
|
27
|
-
import "./routes-
|
|
27
|
+
import "./routes-CNqS9gOj.js";
|
|
28
28
|
import "./ports-CmAt9mb6.js";
|
|
29
29
|
import "./message-channel-BbkwF58_.js";
|
|
30
30
|
import { r as normalizeChannelId } from "./plugins-CFb1gJ4N.js";
|
|
@@ -36,9 +36,9 @@ import "./redact-BICFkpn7.js";
|
|
|
36
36
|
import "./logging-1vypRz8h.js";
|
|
37
37
|
import "./auth-store-DWgI4Vj8.js";
|
|
38
38
|
import "./delivery-queue-CdUtwMZr.js";
|
|
39
|
-
import "./deps-
|
|
39
|
+
import "./deps-DoPMG4GI.js";
|
|
40
40
|
import { t as formatForLog } from "./ws-log-D4JiZwbk.js";
|
|
41
|
-
import { t as agentCommand } from "./agent-
|
|
41
|
+
import { t as agentCommand } from "./agent-DvWSUuKy.js";
|
|
42
42
|
import { randomUUID } from "node:crypto";
|
|
43
43
|
|
|
44
44
|
//#region src/gateway/server-node-events.ts
|
|
@@ -6,7 +6,7 @@ import { t as formatCliCommand } from "./command-format-B1WxXbeU.js";
|
|
|
6
6
|
import { d as resolveWebCredsPath, l as resolveDefaultWebAuthDir, o as maybeRestoreCredsFromBackup, u as resolveWebCredsBackupPath } from "./auth-store-DWgI4Vj8.js";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import { randomUUID } from "node:crypto";
|
|
9
|
-
import WebSocket from "ws";
|
|
9
|
+
import WebSocket$1 from "ws";
|
|
10
10
|
import * as Crypto from "crypto";
|
|
11
11
|
import { createCipheriv, createDecipheriv, createHash as createHash$1, createHmac, randomBytes as randomBytes$1 } from "crypto";
|
|
12
12
|
import { promisify } from "util";
|
|
@@ -95629,20 +95629,20 @@ var WebSocketClient = class extends AbstractSocketClient {
|
|
|
95629
95629
|
this.socket = null;
|
|
95630
95630
|
}
|
|
95631
95631
|
get isOpen() {
|
|
95632
|
-
return this.socket?.readyState === WebSocket.OPEN;
|
|
95632
|
+
return this.socket?.readyState === WebSocket$1.OPEN;
|
|
95633
95633
|
}
|
|
95634
95634
|
get isClosed() {
|
|
95635
|
-
return this.socket === null || this.socket?.readyState === WebSocket.CLOSED;
|
|
95635
|
+
return this.socket === null || this.socket?.readyState === WebSocket$1.CLOSED;
|
|
95636
95636
|
}
|
|
95637
95637
|
get isClosing() {
|
|
95638
|
-
return this.socket === null || this.socket?.readyState === WebSocket.CLOSING;
|
|
95638
|
+
return this.socket === null || this.socket?.readyState === WebSocket$1.CLOSING;
|
|
95639
95639
|
}
|
|
95640
95640
|
get isConnecting() {
|
|
95641
|
-
return this.socket?.readyState === WebSocket.CONNECTING;
|
|
95641
|
+
return this.socket?.readyState === WebSocket$1.CONNECTING;
|
|
95642
95642
|
}
|
|
95643
95643
|
connect() {
|
|
95644
95644
|
if (this.socket) return;
|
|
95645
|
-
this.socket = new WebSocket(this.url, {
|
|
95645
|
+
this.socket = new WebSocket$1(this.url, {
|
|
95646
95646
|
origin: DEFAULT_ORIGIN,
|
|
95647
95647
|
headers: this.config.options?.headers,
|
|
95648
95648
|
handshakeTimeout: this.config.connectTimeoutMs,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-CJTCKTwb.js";
|
|
3
3
|
import { t as extractTopics } from "./topic-extractor-C62Ienjd.js";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-CJTCKTwb.js";
|
|
3
3
|
import { readFile } from "node:fs/promises";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
5
|
import { join } from "node:path";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-CJTCKTwb.js";
|
|
2
|
+
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-CmZenvlb.js";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
import path from "node:path";
|
|
6
|
-
import
|
|
6
|
+
import fsSync from "node:fs";
|
|
7
7
|
import crypto from "node:crypto";
|
|
8
8
|
|
|
9
9
|
//#region src/memory/internal.ts
|
|
10
10
|
function ensureDir(dir) {
|
|
11
11
|
try {
|
|
12
|
-
|
|
12
|
+
fsSync.mkdirSync(dir, { recursive: true });
|
|
13
13
|
} catch {}
|
|
14
14
|
return dir;
|
|
15
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as resolveGatewayPort } from "./paths-zhVksOvm.js";
|
|
2
2
|
import { B as theme, k as info, z as isRich } from "./subsystem-BaJ-PqmA.js";
|
|
3
|
-
import { D as readRestartSentinel, O as summarizeRestartSentinel, _t as formatChannelAllowFrom, c as loadProviderUsageSummary, gt as buildChannelAccountSnapshot, ht as buildChannelSummary, l as formatUsageReportLines } from "./reply-
|
|
3
|
+
import { D as readRestartSentinel, O as summarizeRestartSentinel, _t as formatChannelAllowFrom, c as loadProviderUsageSummary, gt as buildChannelAccountSnapshot, ht as buildChannelSummary, l as formatUsageReportLines } from "./reply-BJ3jrefM.js";
|
|
4
4
|
import { x as parseAgentSessionKey } from "./session-key-DxcgHezu.js";
|
|
5
5
|
import { n as runExec } from "./exec-Bsq6vlwp.js";
|
|
6
6
|
import { t as resolveAnimaPackageRoot } from "./anima-root-C5zoPibI.js";
|
|
@@ -14,19 +14,19 @@ import { h as readTailscaleStatusJson, m as getTailnetHostname } from "./auth-B8
|
|
|
14
14
|
import { a as inspectPortUsage, s as formatPortDiagnostics } from "./ports-CmAt9mb6.js";
|
|
15
15
|
import { n as listChannelPlugins } from "./plugins-CFb1gJ4N.js";
|
|
16
16
|
import { c as resolveStorePath } from "./paths-CqMZNi-M.js";
|
|
17
|
-
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-
|
|
17
|
+
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-C0Yk2qNb.js";
|
|
18
18
|
import { r as formatDurationPrecise } from "./format-duration-DduItW4_.js";
|
|
19
19
|
import { n as formatTimeAgo } from "./format-relative-C57Jb4Zw.js";
|
|
20
20
|
import { r as getMemorySearchManager } from "./memory-cli-CDMb58Y3.js";
|
|
21
21
|
import { n as withProgress } from "./progress-gdB4V88Q.js";
|
|
22
22
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-DeW3dXom.js";
|
|
23
|
-
import { S as normalizeControlUiBasePath, h as resolveControlUiLinks } from "./onboard-helpers-
|
|
23
|
+
import { S as normalizeControlUiBasePath, h as resolveControlUiLinks } from "./onboard-helpers-CMW6MSXA.js";
|
|
24
24
|
import { s as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-H_0E0nOX.js";
|
|
25
25
|
import { t as readLastGatewayErrorLine } from "./diagnostics-zpQTQwXE.js";
|
|
26
26
|
import { t as renderTable } from "./table-BDer4ZEZ.js";
|
|
27
|
-
import { a as resolveGatewayProbeAuth$1, c as probeGateway, t as runSecurityAudit } from "./audit-
|
|
27
|
+
import { a as resolveGatewayProbeAuth$1, c as probeGateway, t as runSecurityAudit } from "./audit-Cm50mcVm.js";
|
|
28
28
|
import { t as resolveChannelDefaultAccountId } from "./helpers-13ojLRv8.js";
|
|
29
|
-
import { a as resolveHeartbeatSummaryForAgent, t as formatHealthChannelLines } from "./health-
|
|
29
|
+
import { a as resolveHeartbeatSummaryForAgent, t as formatHealthChannelLines } from "./health-Cb_2WS_Z.js";
|
|
30
30
|
import { a as formatGitInstallLabel, f as formatUpdateChannelLabel, g as resolveEffectiveUpdateChannel, h as normalizeUpdateChannel, n as checkUpdateStatus, r as compareSemverStrings, t as collectChannelStatusIssues } from "./channels-status-issues-BCuAG8zm.js";
|
|
31
31
|
import { t as resolveNodeService } from "./node-service-CCMaTNEM.js";
|
|
32
32
|
import { i as resolveUpdateAvailability, n as formatUpdateOneLiner, r as getUpdateCheckResult, t as formatUpdateAvailableHint } from "./status.update-s92nCoGl.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createSubsystemLogger } from "./subsystem-BaJ-PqmA.js";
|
|
2
|
-
import { K as loadAnimaPlugins } from "./reply-
|
|
2
|
+
import { K as loadAnimaPlugins } from "./reply-BJ3jrefM.js";
|
|
3
3
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir, w as resolveDefaultAgentWorkspaceDir } from "./agent-scope-vpVhWds3.js";
|
|
4
4
|
import { i as loadConfig } from "./config-9JRRXykP.js";
|
|
5
5
|
|
|
@@ -12,7 +12,7 @@ import { n as SILENT_REPLY_TOKEN, r as isSilentReplyText, t as HEARTBEAT_TOKEN }
|
|
|
12
12
|
import { l as normalizeMessageChannel, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-BbkwF58_.js";
|
|
13
13
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-CFb1gJ4N.js";
|
|
14
14
|
import { c as resolveStorePath } from "./paths-CqMZNi-M.js";
|
|
15
|
-
import { n as callGateway } from "./call-
|
|
15
|
+
import { n as callGateway } from "./call-C0Yk2qNb.js";
|
|
16
16
|
import fs from "node:fs";
|
|
17
17
|
import os from "node:os";
|
|
18
18
|
import path from "node:path";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
|
-
import { i as resolveGatewayPort, n as resolveConfigPath, s as resolveStateDir } from "./paths-
|
|
3
|
-
import { A as isAcpSessionKey, E as resolveAgentIdFromSessionKey, M as parseAgentSessionKey, T as normalizeMainKey, k as getSubagentDepth } from "./workspace-
|
|
4
|
-
import { n as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { E as shortenHomeInString, a as logDebug, l as CONFIG_DIR, o as logError, p as ensureDir$1, w as resolveUserPath } from "./exec-
|
|
6
|
-
import { c as resolveDefaultAgentId, l as resolveSessionAgentId, n as resolveAgentConfig } from "./agent-scope-
|
|
2
|
+
import { i as resolveGatewayPort, n as resolveConfigPath, s as resolveStateDir } from "./paths-D2eokayo.js";
|
|
3
|
+
import { A as isAcpSessionKey, E as resolveAgentIdFromSessionKey, M as parseAgentSessionKey, T as normalizeMainKey, k as getSubagentDepth } from "./workspace-xzxJwPTB.js";
|
|
4
|
+
import { n as defaultRuntime, t as createSubsystemLogger } from "./subsystem-CJTCKTwb.js";
|
|
5
|
+
import { E as shortenHomeInString, a as logDebug, l as CONFIG_DIR, o as logError, p as ensureDir$1, w as resolveUserPath } from "./exec-CK8CHr7j.js";
|
|
6
|
+
import { c as resolveDefaultAgentId, l as resolveSessionAgentId, n as resolveAgentConfig } from "./agent-scope-DWKQJUUZ.js";
|
|
7
7
|
import { a as queueEmbeddedPiMessage, c as waitForEmbeddedPiRunEnd, o as resolveEmbeddedSessionLane, r as isEmbeddedPiRunActive } from "./pi-embedded-CVojjlMb.js";
|
|
8
|
-
import { At as HEARTBEAT_TOKEN, Ct as resolveMainSessionKey, Mt as isSilentReplyText, ct as deliveryContextKey, jt as SILENT_REPLY_TOKEN, lt as mergeDeliveryContext, st as deliveryContextFromSession, tt as loadSessionStore, ut as normalizeDeliveryContext, v as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
9
|
-
import { n as saveJsonFile, t as loadJsonFile } from "./json-file-
|
|
10
|
-
import { A as normalizeMessageChannel, C as normalizeChannelId, F as GATEWAY_CLIENT_NAMES, N as GATEWAY_CLIENT_IDS, P as GATEWAY_CLIENT_MODES, w as INTERNAL_MESSAGE_CHANNEL, x as getChannelPlugin } from "./image-ops-
|
|
11
|
-
import { c as parseDurationMs, n as loadConfig } from "./config-
|
|
12
|
-
import { s as resolveStorePath } from "./paths-
|
|
13
|
-
import { a as resolveAgentTimeoutMs, c as CommandLane, o as AGENT_LANE_NESTED, r as onAgentEvent, u as stripHeartbeatToken } from "./agent-events-
|
|
14
|
-
import { S as pickPrimaryTailnetIPv4, x as pickPrimaryLanIPv4, y as rawDataToString } from "./chrome-
|
|
15
|
-
import { t as INPUT_PROVENANCE_KIND_VALUES } from "./input-provenance-
|
|
8
|
+
import { At as HEARTBEAT_TOKEN, Ct as resolveMainSessionKey, Mt as isSilentReplyText, ct as deliveryContextKey, jt as SILENT_REPLY_TOKEN, lt as mergeDeliveryContext, st as deliveryContextFromSession, tt as loadSessionStore, ut as normalizeDeliveryContext, v as sanitizeUserFacingText } from "./pi-embedded-helpers-CvYnWzAn.js";
|
|
9
|
+
import { n as saveJsonFile, t as loadJsonFile } from "./json-file-Dvrir7_o.js";
|
|
10
|
+
import { A as normalizeMessageChannel, C as normalizeChannelId, F as GATEWAY_CLIENT_NAMES, N as GATEWAY_CLIENT_IDS, P as GATEWAY_CLIENT_MODES, w as INTERNAL_MESSAGE_CHANNEL, x as getChannelPlugin } from "./image-ops-DJjERl7d.js";
|
|
11
|
+
import { c as parseDurationMs, n as loadConfig } from "./config-H_VHtPeY.js";
|
|
12
|
+
import { s as resolveStorePath } from "./paths-CmZenvlb.js";
|
|
13
|
+
import { a as resolveAgentTimeoutMs, c as CommandLane, o as AGENT_LANE_NESTED, r as onAgentEvent, u as stripHeartbeatToken } from "./agent-events-iR_gRjZA.js";
|
|
14
|
+
import { S as pickPrimaryTailnetIPv4, x as pickPrimaryLanIPv4, y as rawDataToString } from "./chrome-s7nTgmbn.js";
|
|
15
|
+
import { t as INPUT_PROVENANCE_KIND_VALUES } from "./input-provenance-MbkIKHHL.js";
|
|
16
16
|
import fs from "node:fs/promises";
|
|
17
17
|
import os from "node:os";
|
|
18
18
|
import path from "node:path";
|
|
19
|
-
import
|
|
19
|
+
import fsSync from "node:fs";
|
|
20
20
|
import JSON5 from "json5";
|
|
21
21
|
import { execFile } from "node:child_process";
|
|
22
22
|
import { promisify } from "node:util";
|
|
@@ -30,7 +30,7 @@ function resolveDefaultIdentityPath() {
|
|
|
30
30
|
return path.join(resolveStateDir(), "identity", "device.json");
|
|
31
31
|
}
|
|
32
32
|
function ensureDir(filePath) {
|
|
33
|
-
|
|
33
|
+
fsSync.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
34
34
|
}
|
|
35
35
|
const ED25519_SPKI_PREFIX = Buffer.from("302a300506032b6570032100", "hex");
|
|
36
36
|
function base64UrlEncode(buf) {
|
|
@@ -66,8 +66,8 @@ function generateIdentity() {
|
|
|
66
66
|
}
|
|
67
67
|
function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
68
68
|
try {
|
|
69
|
-
if (
|
|
70
|
-
const raw =
|
|
69
|
+
if (fsSync.existsSync(filePath)) {
|
|
70
|
+
const raw = fsSync.readFileSync(filePath, "utf8");
|
|
71
71
|
const parsed = JSON.parse(raw);
|
|
72
72
|
if (parsed?.version === 1 && typeof parsed.deviceId === "string" && typeof parsed.publicKeyPem === "string" && typeof parsed.privateKeyPem === "string") {
|
|
73
73
|
const derivedId = fingerprintPublicKey(parsed.publicKeyPem);
|
|
@@ -76,9 +76,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
|
76
76
|
...parsed,
|
|
77
77
|
deviceId: derivedId
|
|
78
78
|
};
|
|
79
|
-
|
|
79
|
+
fsSync.writeFileSync(filePath, `${JSON.stringify(updated, null, 2)}\n`, { mode: 384 });
|
|
80
80
|
try {
|
|
81
|
-
|
|
81
|
+
fsSync.chmodSync(filePath, 384);
|
|
82
82
|
} catch {}
|
|
83
83
|
return {
|
|
84
84
|
deviceId: derivedId,
|
|
@@ -103,9 +103,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
|
103
103
|
privateKeyPem: identity.privateKeyPem,
|
|
104
104
|
createdAtMs: Date.now()
|
|
105
105
|
};
|
|
106
|
-
|
|
106
|
+
fsSync.writeFileSync(filePath, `${JSON.stringify(stored, null, 2)}\n`, { mode: 384 });
|
|
107
107
|
try {
|
|
108
|
-
|
|
108
|
+
fsSync.chmodSync(filePath, 384);
|
|
109
109
|
} catch {}
|
|
110
110
|
return identity;
|
|
111
111
|
}
|
|
@@ -255,8 +255,8 @@ function resolveDeviceAuthPath(env = process.env) {
|
|
|
255
255
|
}
|
|
256
256
|
function readStore(filePath) {
|
|
257
257
|
try {
|
|
258
|
-
if (!
|
|
259
|
-
const raw =
|
|
258
|
+
if (!fsSync.existsSync(filePath)) return null;
|
|
259
|
+
const raw = fsSync.readFileSync(filePath, "utf8");
|
|
260
260
|
const parsed = JSON.parse(raw);
|
|
261
261
|
if (parsed?.version !== 1 || typeof parsed.deviceId !== "string") return null;
|
|
262
262
|
if (!parsed.tokens || typeof parsed.tokens !== "object") return null;
|
|
@@ -266,10 +266,10 @@ function readStore(filePath) {
|
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
function writeStore(filePath, store) {
|
|
269
|
-
|
|
270
|
-
|
|
269
|
+
fsSync.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
270
|
+
fsSync.writeFileSync(filePath, `${JSON.stringify(store, null, 2)}\n`, { mode: 384 });
|
|
271
271
|
try {
|
|
272
|
-
|
|
272
|
+
fsSync.chmodSync(filePath, 384);
|
|
273
273
|
} catch {}
|
|
274
274
|
}
|
|
275
275
|
function loadDeviceAuthToken(params) {
|
|
@@ -2713,7 +2713,7 @@ async function routeReply(params) {
|
|
|
2713
2713
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
2714
2714
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
2715
2715
|
try {
|
|
2716
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
2716
|
+
const { deliverOutboundPayloads } = await import("./deliver-DyQtnfXd.js").then((n) => n.n);
|
|
2717
2717
|
return {
|
|
2718
2718
|
ok: true,
|
|
2719
2719
|
messageId: (await deliverOutboundPayloads({
|
|
@@ -2947,7 +2947,7 @@ function normalizeSessionKey(value) {
|
|
|
2947
2947
|
}
|
|
2948
2948
|
function readSessionStore(storePath) {
|
|
2949
2949
|
try {
|
|
2950
|
-
const raw =
|
|
2950
|
+
const raw = fsSync.readFileSync(storePath, "utf-8");
|
|
2951
2951
|
const parsed = JSON5.parse(raw);
|
|
2952
2952
|
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
|
|
2953
2953
|
} catch {}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as resolveConfigPath } from "./paths-
|
|
1
|
+
import { n as resolveConfigPath } from "./paths-D2eokayo.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
5
|
+
import fsSync from "node:fs";
|
|
6
6
|
import { Logger } from "tslog";
|
|
7
7
|
import JSON5 from "json5";
|
|
8
8
|
import chalk, { Chalk } from "chalk";
|
|
@@ -13,9 +13,9 @@ function isNodeErrorWithCode(err, code) {
|
|
|
13
13
|
return typeof err === "object" && err !== null && "code" in err && err.code === code;
|
|
14
14
|
}
|
|
15
15
|
function resolvePreferredAnimaTmpDir(options = {}) {
|
|
16
|
-
const accessSync = options.accessSync ??
|
|
17
|
-
const lstatSync = options.lstatSync ??
|
|
18
|
-
const mkdirSync = options.mkdirSync ??
|
|
16
|
+
const accessSync = options.accessSync ?? fsSync.accessSync;
|
|
17
|
+
const lstatSync = options.lstatSync ?? fsSync.lstatSync;
|
|
18
|
+
const mkdirSync = options.mkdirSync ?? fsSync.mkdirSync;
|
|
19
19
|
const getuid = options.getuid ?? (() => {
|
|
20
20
|
try {
|
|
21
21
|
return typeof process.getuid === "function" ? process.getuid() : void 0;
|
|
@@ -39,14 +39,14 @@ function resolvePreferredAnimaTmpDir(options = {}) {
|
|
|
39
39
|
try {
|
|
40
40
|
const preferred = lstatSync(POSIX_ANIMA_TMP_DIR);
|
|
41
41
|
if (!preferred.isDirectory() || preferred.isSymbolicLink()) return fallback();
|
|
42
|
-
accessSync(POSIX_ANIMA_TMP_DIR,
|
|
42
|
+
accessSync(POSIX_ANIMA_TMP_DIR, fsSync.constants.W_OK | fsSync.constants.X_OK);
|
|
43
43
|
if (!isSecureDirForUser(preferred)) return fallback();
|
|
44
44
|
return POSIX_ANIMA_TMP_DIR;
|
|
45
45
|
} catch (err) {
|
|
46
46
|
if (!isNodeErrorWithCode(err, "ENOENT")) return fallback();
|
|
47
47
|
}
|
|
48
48
|
try {
|
|
49
|
-
accessSync("/tmp",
|
|
49
|
+
accessSync("/tmp", fsSync.constants.W_OK | fsSync.constants.X_OK);
|
|
50
50
|
mkdirSync(POSIX_ANIMA_TMP_DIR, {
|
|
51
51
|
recursive: true,
|
|
52
52
|
mode: 448
|
|
@@ -69,8 +69,8 @@ function resolvePreferredAnimaTmpDir(options = {}) {
|
|
|
69
69
|
function readLoggingConfig() {
|
|
70
70
|
const configPath = resolveConfigPath();
|
|
71
71
|
try {
|
|
72
|
-
if (!
|
|
73
|
-
const raw =
|
|
72
|
+
if (!fsSync.existsSync(configPath)) return;
|
|
73
|
+
const raw = fsSync.readFileSync(configPath, "utf-8");
|
|
74
74
|
const logging = JSON5.parse(raw)?.logging;
|
|
75
75
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
76
76
|
return logging;
|
|
@@ -163,7 +163,7 @@ function isFileLogLevelEnabled(level) {
|
|
|
163
163
|
return levelToMinLevel(level) <= levelToMinLevel(settings.level);
|
|
164
164
|
}
|
|
165
165
|
function buildLogger(settings) {
|
|
166
|
-
|
|
166
|
+
fsSync.mkdirSync(path.dirname(settings.file), { recursive: true });
|
|
167
167
|
if (isRollingPath(settings.file)) pruneOldRollingLogs(path.dirname(settings.file));
|
|
168
168
|
const logger = new Logger({
|
|
169
169
|
name: "anima",
|
|
@@ -177,7 +177,7 @@ function buildLogger(settings) {
|
|
|
177
177
|
...logObj,
|
|
178
178
|
time
|
|
179
179
|
});
|
|
180
|
-
|
|
180
|
+
fsSync.appendFileSync(settings.file, `${line}\n`, { encoding: "utf8" });
|
|
181
181
|
} catch {}
|
|
182
182
|
});
|
|
183
183
|
for (const transport of externalTransports) attachExternalTransport(logger, transport);
|
|
@@ -229,14 +229,14 @@ function isRollingPath(file) {
|
|
|
229
229
|
}
|
|
230
230
|
function pruneOldRollingLogs(dir) {
|
|
231
231
|
try {
|
|
232
|
-
const entries =
|
|
232
|
+
const entries = fsSync.readdirSync(dir, { withFileTypes: true });
|
|
233
233
|
const cutoff = Date.now() - MAX_LOG_AGE_MS;
|
|
234
234
|
for (const entry of entries) {
|
|
235
235
|
if (!entry.isFile()) continue;
|
|
236
236
|
if (!entry.name.startsWith(`${LOG_PREFIX}-`) || !entry.name.endsWith(LOG_SUFFIX)) continue;
|
|
237
237
|
const fullPath = path.join(dir, entry.name);
|
|
238
238
|
try {
|
|
239
|
-
if (
|
|
239
|
+
if (fsSync.statSync(fullPath).mtimeMs < cutoff) fsSync.rmSync(fullPath, { force: true });
|
|
240
240
|
} catch {}
|
|
241
241
|
}
|
|
242
242
|
} catch {}
|