squidclaw 3.0.2 → 3.0.4
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-LA308FHj.js → accounts-CK_sHUyT.js} +2 -2
- package/dist/{accounts-CL_NXliB.js → accounts-CkF7YwoF.js} +17 -17
- package/dist/{accounts-F7tGwezI.js → accounts-DbloMfwT.js} +2 -2
- package/dist/{active-listener-DJv1FZqf.js → active-listener-AepfNSUY.js} +2 -2
- package/dist/{agents-DdixSPs3.js → agents-JnnOlm2G.js} +5 -5
- package/dist/{agents.config-Cn_vTN1v.js → agents.config-BeGeS2jv.js} +1 -1
- package/dist/{agents.config-C6KTwnde.js → agents.config-DHJBQ7uA.js} +1 -1
- package/dist/{api-key-rotation-Dzvqp3Dc.js → api-key-rotation-BHFJiYbw.js} +2 -2
- package/dist/{audio-preflight-AEM744TY.js → audio-preflight-BKgdc7dS.js} +32 -32
- package/dist/{audio-transcription-runner-CItniQDZ.js → audio-transcription-runner-BnbdYMDl.js} +12 -12
- package/dist/{audit-membership-runtime-w23FnNAN.js → audit-membership-runtime-DyLj-uhz.js} +4 -4
- package/dist/{auth-choice-7WVhiM9J.js → auth-choice-DQbCl-4F.js} +2 -2
- package/dist/{auth-choice-17U1cGPH.js → auth-choice-xwYK6txn.js} +2 -2
- package/dist/{banner-CJTrU-HC.js → banner-BxibaqUz.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +51 -51
- package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +51 -51
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-DPrXawu4.js → channel-activity-C5kTj83_.js} +3 -3
- package/dist/{channel-options-x47KAgAV.js → channel-options-BKsCYdHu.js} +1 -1
- package/dist/{channel-options-BM7IEY5X.js → channel-options-FdCN4cFo.js} +1 -1
- package/dist/{channel-web-B48pVgke.js → channel-web-BFUPrpIe.js} +1 -1
- package/dist/{channel-web-HM1q5FP_.js → channel-web-BkYtM8H5.js} +1 -1
- package/dist/{channels-cli-iPiD6449.js → channels-cli-BxhfVD-R.js} +7 -7
- package/dist/{channels-cli-y66ZCzYf.js → channels-cli-CZzGaGvG.js} +7 -7
- package/dist/{chrome-BFfAGQtd.js → chrome-CjxCwFA9.js} +18 -18
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-C-neGkM4.js → cli-GSev2Q95.js} +2 -2
- package/dist/{cli-BzpBs_KI.js → cli-bXiYaLre.js} +2 -2
- package/dist/{command-registry-BL80-JCV.js → command-registry-CxiSVXru.js} +9 -9
- package/dist/{commands-registry-C2t2bcZ6.js → commands-registry-D6ZOTo1C.js} +4 -4
- package/dist/{completion-cli-CJ_L_gYr.js → completion-cli-s0fxD0OE.js} +2 -2
- package/dist/{completion-cli-Bi2s1mq8.js → completion-cli-slzdOlRV.js} +1 -1
- package/dist/{config-cli-FhKX7MOY.js → config-cli-C0mk9eRl.js} +1 -1
- package/dist/{config-cli-BVpzzhoY.js → config-cli-DhHEA_Nc.js} +1 -1
- package/dist/{configure-ChiLGQo6.js → configure-CeLdVVyh.js} +14 -7
- package/dist/{configure-t9fm4x9H.js → configure-FRd92XZ8.js} +14 -7
- package/dist/{daemon-cli-DK8fQgAw.js → daemon-cli-CNi-QjEX.js} +1 -1
- package/dist/{daemon-cli-CO09shIt.js → daemon-cli-DN2TnjHQ.js} +1 -1
- package/dist/{deliver-neVJ7AU9.js → deliver-D-f6Wa3i.js} +21 -21
- package/dist/deliver-runtime-_egya0QZ.js +36 -0
- package/dist/deps-send-discord.runtime-BRE0s2nz.js +26 -0
- package/dist/deps-send-imessage.runtime-DbIRBnmD.js +25 -0
- package/dist/deps-send-signal.runtime-B4h6X3o4.js +24 -0
- package/dist/deps-send-slack.runtime-BWXOnOxS.js +22 -0
- package/dist/deps-send-telegram.runtime-YvauJtgv.js +27 -0
- package/dist/{deps-send-whatsapp.runtime-WND2o1Mr.js → deps-send-whatsapp.runtime-BcxCalPD.js} +4 -4
- package/dist/deps-send-whatsapp.runtime-CiG6xd2e.js +60 -0
- package/dist/{deps-send-whatsapp.runtime-DSbrPzxG.js → deps-send-whatsapp.runtime-Dl4ro-Df.js} +4 -4
- package/dist/{diagnostic-DoguEiWW.js → diagnostic-ySwZga6c.js} +2 -2
- package/dist/{doctor-completion-CKaQEebJ.js → doctor-completion-I-WDZUs1.js} +1 -1
- package/dist/{doctor-completion-Ctqsu6Y2.js → doctor-completion-mnJOkoQ_.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{errors-DfgAh2Ml.js → errors-kkRuS2Cs.js} +1 -1
- package/dist/{fetch-DdiB5_OX.js → fetch-BLS7EMnx.js} +5 -5
- package/dist/{fetch-guard-CEV5qBHc.js → fetch-guard-D0fXNJls.js} +2 -2
- package/dist/{frontmatter-CjKtFduT.js → frontmatter-Cq1TcIQ2.js} +3 -3
- package/dist/{fs-safe-CwHbZdFH.js → fs-safe-BoB4X3GD.js} +4 -4
- package/dist/{gateway-cli-xX1CTw9n.js → gateway-cli-B5rTNvd7.js} +10 -10
- package/dist/{gateway-cli-CSIyrhFg.js → gateway-cli-BHfkbI0u.js} +10 -10
- package/dist/{github-copilot-token-Cw3tAXM9.js → github-copilot-token-B5cPlwaz.js} +7 -7
- package/dist/{health-D9Pie2kF.js → health-CJgEuWuG.js} +1 -1
- package/dist/{health-D7mPTab_.js → health-dZqyhpdR.js} +1 -1
- package/dist/{hooks-cli-C6aI9HU7.js → hooks-cli-BD4Ww1dF.js} +3 -3
- package/dist/{hooks-cli-_1zdKcZA.js → hooks-cli-C0wWJOBW.js} +3 -3
- package/dist/{image-ecaECpjT.js → image-C-C7hQ26.js} +6 -6
- package/dist/{image-ops-bdrMTILs.js → image-ops-CdgypS_g.js} +2 -2
- package/dist/image-runtime-D7n4dID4.js +29 -0
- package/dist/index.js +7 -7
- package/dist/{ir-D_GD01cg.js → ir-BvisJWXv.js} +8 -8
- package/dist/{legacy-names-B0wgIP0Q.js → legacy-names-aGJJuzM_.js} +1 -1
- package/dist/llm-slug-generator.js +51 -51
- package/dist/{logger-oGKcCLZ5.js → logger-CnTSBL7T.js} +7 -7
- package/dist/{login-gJWPqN66.js → login-BMeLPUiO.js} +5 -5
- package/dist/{login-qr-CgmlF7zK.js → login-qr-B2B67qqQ.js} +10 -10
- package/dist/{manager-CD69uguS.js → manager-DdxMYEDd.js} +13 -13
- package/dist/manager-runtime-BMygJEz3.js +18 -0
- package/dist/{model-selection-DMjtmGZP.js → model-selection-ag9BmVct.js} +43 -43
- package/dist/{models-BviRe-_7.js → models-BXT0s4KJ.js} +3 -3
- package/dist/{models-cli-BM5yo_mo.js → models-cli-BtLc9uPC.js} +3 -3
- package/dist/{models-cli-pvYVl1i-.js → models-cli-BwPFxWK2.js} +4 -4
- package/dist/{npm-resolution-DMM9Hopy.js → npm-resolution-DWpNPsBF.js} +1 -1
- package/dist/{npm-resolution-BTFMooVS.js → npm-resolution-Djbuzx6o.js} +1 -1
- package/dist/{onboard-DTsgFKIa.js → onboard-BP2Cr_Xy.js} +3 -3
- package/dist/{onboard-DVuhj8ub.js → onboard-CCJCvPgf.js} +3 -3
- package/dist/{onboard-channels-W9UHiBQg.js → onboard-channels-CHrtFmhi.js} +2 -2
- package/dist/{onboard-channels-B1D9LqV_.js → onboard-channels-CXjnFvP1.js} +2 -2
- package/dist/{onboard-helpers-DVaF21TE.js → onboard-helpers-Bvpkyuwm.js} +6 -6
- package/dist/{onboard-helpers-PRhg7ZY5.js → onboard-helpers-ByttGRIZ.js} +6 -6
- package/dist/{onboard-remote-h-aHSDJ1.js → onboard-remote-Cfx2v9OI.js} +1 -1
- package/dist/{onboard-remote-DkIrV4Hx.js → onboard-remote-DxBaaS6o.js} +1 -1
- package/dist/{onboard-skills-fFSuiv21.js → onboard-skills-B7pHg1lN.js} +1 -1
- package/dist/{onboard-skills-fgrVmjJP.js → onboard-skills-PCnCZ6Od.js} +1 -1
- package/dist/{onboarding-D1nCnc_t.js → onboarding-D5G87dvM.js} +7 -7
- package/dist/{onboarding-CYWs766P.js → onboarding-D7CIbxzd.js} +7 -7
- package/dist/{onboarding.finalize-Bcan6_vA.js → onboarding.finalize-B1MmYTFV.js} +7 -7
- package/dist/{onboarding.finalize-bAiXf9D6.js → onboarding.finalize-Cxzl-fYU.js} +6 -6
- package/dist/{onboarding.gateway-config-61E9xXYF.js → onboarding.gateway-config-DDdX0W74.js} +1 -1
- package/dist/{onboarding.gateway-config-Dyaqc_M7.js → onboarding.gateway-config-DNUJ0seU.js} +1 -1
- package/dist/{outbound-Cboz5UyH.js → outbound-DHDBvGLA.js} +6 -6
- package/dist/{outbound-attachment-PwEbEhAL.js → outbound-attachment-CqXiWbKN.js} +2 -2
- package/dist/{path-alias-guards-Cpsiv2KL.js → path-alias-guards-DORgbZ1w.js} +1 -1
- package/dist/{paths-CSdAWKDO.js → paths-DA5srn0U.js} +5 -5
- package/dist/{paths-CXClY8zC.js → paths-DSd911Oe.js} +4 -4
- package/dist/{pi-embedded-CkTlmTq8.js → pi-embedded-CHzwPt6X.js} +162 -162
- package/dist/{pi-embedded-helpers-Bfm_CvEb.js → pi-embedded-helpers-Bse_QhEf.js} +52 -52
- package/dist/{pi-model-discovery-DEps5Exd.js → pi-model-discovery-DAzuqPoG.js} +7 -7
- package/dist/pi-model-discovery-runtime-Dpu7Jm2L.js +11 -0
- package/dist/{pi-tools.before-tool-call.runtime-4wPdP7Br.js → pi-tools.before-tool-call.runtime-2Sp1jmlg.js} +9 -9
- package/dist/{plugin-registry-CvMvSI8O.js → plugin-registry-CLEhrKYA.js} +1 -1
- package/dist/{plugin-registry-DL2ClHLQ.js → plugin-registry-DtuxmgWx.js} +1 -1
- package/dist/plugin-sdk/mattermost.js +3 -3
- package/dist/{plugins-CmdmAU0K.js → plugins-DXkm70nK.js} +11 -11
- package/dist/{plugins-cli-DBtLtIsQ.js → plugins-cli-Cs3UUJew.js} +3 -3
- package/dist/{plugins-cli-BMPvpwSo.js → plugins-cli-KPz6APX0.js} +3 -3
- package/dist/{program-C6sTShRB.js → program-2J-jgdfk.js} +8 -8
- package/dist/{program-context-KSeqVkRM.js → program-context-SjYSWx_N.js} +18 -18
- package/dist/{prompt-select-styled-Ba5fC0g1.js → prompt-select-styled-Baiu3mAU.js} +5 -5
- package/dist/{prompt-select-styled-DFhJPiqx.js → prompt-select-styled-DPnVmH8f.js} +5 -5
- package/dist/{provider-auth-helpers-S2rdI85T.js → provider-auth-helpers-CxUWqt95.js} +1 -1
- package/dist/{provider-auth-helpers-BPvZ8xkJ.js → provider-auth-helpers-hhFVhZdv.js} +1 -1
- package/dist/{proxy-env-QUJz9VEJ.js → proxy-env-D75CWSOo.js} +1 -1
- package/dist/{proxy-fetch-C2v-Utgg.js → proxy-fetch-lH6RsRTE.js} +1 -1
- package/dist/{push-apns-BQEPMPtG.js → push-apns-BBkpZyNR.js} +1 -1
- package/dist/{push-apns-CGibQhps.js → push-apns-BQjV_93G.js} +1 -1
- package/dist/{pw-ai-SYjuzbV6.js → pw-ai-BwRP3TWc.js} +14 -14
- package/dist/{qmd-manager-CO-shcLU.js → qmd-manager-BN0siR2Z.js} +10 -10
- package/dist/{query-expansion-DlQOkf-g.js → query-expansion-Dzxt6kXo.js} +6 -6
- package/dist/{redact-NmPEVjIo.js → redact-DvzicBMu.js} +1 -1
- package/dist/{register.agent-DP_2xCaO.js → register.agent-DYq06QHS.js} +8 -8
- package/dist/{register.agent-BwhWwpRX.js → register.agent-reU63wQ5.js} +7 -7
- package/dist/{register.configure-C5i661J4.js → register.configure-Ao1K2uze.js} +10 -10
- package/dist/{register.configure-D8TE-yQn.js → register.configure-CCkfhF-7.js} +10 -10
- package/dist/{register.maintenance-BA4UOg2_.js → register.maintenance-DMbs8w2m.js} +8 -8
- package/dist/{register.maintenance-BS2i3S5V.js → register.maintenance-pLpE2oF-.js} +9 -9
- package/dist/{register.message-oFI2Mzrd.js → register.message-BmsovYS6.js} +3 -3
- package/dist/{register.message-D9hVI5b6.js → register.message-Bp4SDXWk.js} +3 -3
- package/dist/{register.onboard-D6wqijOl.js → register.onboard-Cb8xLIye.js} +3 -3
- package/dist/{register.onboard-OaKr3SnU.js → register.onboard-IMrHOeW_.js} +3 -3
- package/dist/{register.setup-DsK_7zih.js → register.setup-CX8IUmew.js} +3 -3
- package/dist/{register.setup-Dygx-glo.js → register.setup-DU7IDzAv.js} +3 -3
- package/dist/{register.status-health-sessions-C6VfEhho.js → register.status-health-sessions-CBPZoj51.js} +4 -4
- package/dist/{register.status-health-sessions-BmWcbWPR.js → register.status-health-sessions-N6SFc-UY.js} +4 -4
- package/dist/{register.subclis-CLf32krW.js → register.subclis-BIbL6FBV.js} +10 -10
- package/dist/{reply-ZWkzBiSb.js → reply-CB1p166g.js} +5 -5
- package/dist/{run-main-asKkGUqy.js → run-main-CpDZPsC_.js} +15 -15
- package/dist/{run-with-concurrency-FczpX8ng.js → run-with-concurrency-BFR3ReeF.js} +4 -4
- package/dist/runtime-whatsapp-login.runtime-DSR-m0FW.js +13 -0
- package/dist/runtime-whatsapp-outbound.runtime-Blywd_bv.js +22 -0
- package/dist/{send-oS3t6gE6.js → send-C98RfcAb.js} +5 -5
- package/dist/{send-DX_O1OHH.js → send-Co5Bqwuo.js} +6 -6
- package/dist/{send-BNsV-D2Y.js → send-DjL7KlMV.js} +8 -8
- package/dist/{send-C-jb8X9I.js → send-Do7hKDL9.js} +7 -7
- package/dist/{send-D-Rnbdzz.js → send-bW7jDv8D.js} +26 -26
- package/dist/{server-node-events-DV2yeAp-.js → server-node-events-Ctjzvlem.js} +3 -3
- package/dist/{server-node-events-BHv7a_ll.js → server-node-events-DrCKK0J4.js} +3 -3
- package/dist/{session-DRyURckG.js → session-QSn69XeJ.js} +8 -8
- package/dist/{skill-commands-BrlAf_CG.js → skill-commands-Bi_jchJn.js} +9 -9
- package/dist/{skills-DWrRJwa-.js → skills-CTV78w4q.js} +22 -22
- package/dist/slash-commands.runtime-63MUmCBt.js +16 -0
- package/dist/{slash-dispatch.runtime-BJOuQOeN.js → slash-dispatch.runtime-DRGqAgwa.js} +2 -2
- package/dist/slash-dispatch.runtime-DuJRl-LD.js +56 -0
- package/dist/{slash-dispatch.runtime-CEAbkOCI.js → slash-dispatch.runtime-uqWhoI6q.js} +2 -2
- package/dist/slash-skill-commands.runtime-B3MSSAQ-.js +20 -0
- package/dist/{status-Ck8-aQIF.js → status-BkfSGlOi.js} +3 -3
- package/dist/{status-CMhW6nGs.js → status-DdW571-j.js} +3 -3
- package/dist/{store-BFNH5fXG.js → store-B89Hj8Ub.js} +2 -2
- package/dist/{subagent-registry-DQpeidFk.js → subagent-registry-DGrfQVN3.js} +5 -5
- package/dist/subagent-registry-runtime-COygB9b1.js +56 -0
- package/dist/{subagent-registry-runtime-C-jjppV6.js → subagent-registry-runtime-DatTO2LD.js} +2 -2
- package/dist/{subagent-registry-runtime-tRRyFZL8.js → subagent-registry-runtime-Dsrz3yIh.js} +2 -2
- package/dist/{subsystem-BaLYRf7D.js → subsystem-6v7sWnAD.js} +14 -14
- package/dist/{tables-CnlmCLb3.js → tables-DGHzaXQz.js} +1 -1
- package/dist/{target-errors-Df1wB-I7.js → target-errors-CweAa7L9.js} +2 -2
- package/dist/{thinking-CTpcVnlx.js → thinking-SdNGqtJE.js} +7 -7
- package/dist/{tokens-D2XhLqIz.js → tokens-DfbMVF9y.js} +1 -1
- package/dist/{tool-images-CElPu2en.js → tool-images-8BKrL7Bn.js} +2 -2
- package/dist/{update-cli-5KzuA6pa.js → update-cli-BwhvSo1R.js} +10 -10
- package/dist/{update-cli-CEghYBNP.js → update-cli-TQEfxhWF.js} +9 -9
- package/dist/{update-runner-C5XgCwj2.js → update-runner-CT9YRLtn.js} +1 -1
- package/dist/{update-runner-C0q8aGFd.js → update-runner-CqVLeGYA.js} +1 -1
- package/dist/{web-DBm_uXOl.js → web-B2qXyOb9.js} +3 -3
- package/dist/{web-DdrUn13G.js → web-DyCuTR9b.js} +55 -55
- package/dist/{web-O2WkG3cH.js → web-FqoNMI-k.js} +3 -3
- package/dist/{whatsapp-actions-DPszRJ8b.js → whatsapp-actions-BDkbnZVH.js} +21 -21
- package/dist/{workspace-TqfVSQuO.js → workspace-kVMIaBrV.js} +20 -20
- package/package.json +7 -7
- package/dist/deliver-runtime-BdUlqV9E.js +0 -36
- package/dist/deps-send-discord.runtime-R8jUd_2I.js +0 -26
- package/dist/deps-send-imessage.runtime-Die0aWtU.js +0 -25
- package/dist/deps-send-signal.runtime-Biux_4v4.js +0 -24
- package/dist/deps-send-slack.runtime-CkUST2Ky.js +0 -22
- package/dist/deps-send-telegram.runtime-CIN5ILBe.js +0 -27
- package/dist/deps-send-whatsapp.runtime-DUff9bWS.js +0 -60
- package/dist/image-runtime-irHu11-U.js +0 -29
- package/dist/manager-runtime-BISxj7HK.js +0 -18
- package/dist/pi-model-discovery-runtime-bzJViQLK.js +0 -11
- package/dist/runtime-whatsapp-login.runtime-BqOsE5As.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-D5S6mxFT.js +0 -22
- package/dist/slash-commands.runtime-JqCsKeu2.js +0 -16
- package/dist/slash-dispatch.runtime-h9I6EDYB.js +0 -56
- package/dist/slash-skill-commands.runtime-C0QZlkpu.js +0 -20
- package/dist/subagent-registry-runtime-BxvwRp_3.js +0 -56
|
@@ -2,7 +2,7 @@ import { g as resolveStateDir, i as isNixMode, l as resolveGatewayLockDir, o as
|
|
|
2
2
|
import { a as logVerbose, d as colorize, f as isRich, g as getResolvedLoggerSettings, h as getLogger, m as getChildLogger, p as theme, s as setVerbose } from "./globals-xfUIfxbE.js";
|
|
3
3
|
import { C as sleep, D as isPlainObject, E as truncateUtf16Safe, S as shortenHomePath, c as ensureDir, r as clamp, y as resolveUserPath } from "./utils-DMGXr25O.js";
|
|
4
4
|
import { a as normalizeElevatedLevel, c as normalizeUsageDisplay, d as supportsXHighThinking, l as normalizeVerboseLevel, n as formatXHighModelHint, o as normalizeReasoningLevel, s as normalizeThinkLevel, t as formatThinkingLevels } from "./thinking-44rmAw5o.js";
|
|
5
|
-
import { $ as normalizeOptionalSessionKey, $n as listDescendantRunsForRequester, $t as sleepWithAbort, A as resolveSessionModelRef, Ar as OPENAI_TTS_VOICES, B as triggerSquidClawRestart, Bt as createOutboundSendDeps$1, Cr as resolveTtsConfig, D as loadSessionEntry, Dn as createReplyDispatcher, Dr as setTtsProvider, Dt as readJsonBodyWithLimit, E as loadCombinedSessionStoreForGateway, En as dispatchInboundMessage, Er as setTtsEnabled, Et as handleSlackHttpRequest, F as isGatewaySigusr1RestartExternallyAllowed, Fr as resetAllLanes, Ft as resolveAgentOutboundTarget, G as summarizeRestartSentinel, H as formatDoctorNonInteractiveHint, Ht as getCliSessionId, I as markGatewaySigusr1RestartHandled, Ir as setCommandLaneConcurrency, It as createOutboundSendDeps, J as normalizeHttpWebhookUrl, Jn as countActiveDescendantRuns, Jt as resolveBootstrapWarningSignaturesSeen, Kn as isAbortRequestText, Kr as enqueueSystemEvent, L as scheduleGatewaySigusr1Restart, Ln as resolveOutboundTarget, Lr as waitForActiveTasks, Lt as applyVerboseOverride, M as consumeGatewaySigusr1RestartAuthorization, Mn as resolveOutboundSessionRoute, Mt as agentCommandFromIngress, N as deferGatewayRestartUntilIdle, Nr as getTotalQueueSize, O as pruneLegacyStoreKeys, On as getTotalPendingReplies, Or as textToSpeech, Ot as requestBodyErrorToText, P as emitGatewayRestart, Pr as markGatewayDraining, Pt as resolveAgentDeliveryPlan, Q as normalizeOptionalAgentId, Qt as computeBackoff, R as setGatewaySigusr1RestartPolicy, Rn as resolveSessionDeliveryTarget, Rr as CommandLane, Rt as parseVerboseOverride, S as canonicalizeSpawnedByForAgent, Sr as resolveTtsAutoMode, T as listSessionsFromStore, Tn as formatZonedTimestamp, Tr as resolveTtsProviderOrder, U as formatRestartSentinelMessage, Ur as stripHeartbeatToken, Ut as setCliSessionId, V as consumeRestartSentinel, Vn as resetDirectoryCache, Vt as runWithModelFallback, Wt as runCliAgent, X as normalizeCronJobPatch, Xr as requestHeartbeatNow, Xt as lookupContextTokens, Y as normalizeCronJobCreate, Yt as applyModelOverrideToSessionEntry, Z as inferLegacyName, Zn as initSubagentRegistry, _ as resolveCronStyleNow, _r as clearBootstrapSnapshot, ai as resolveSendPolicy, an as buildSafeExternalPrompt, ar as buildOutboundSessionContext, at as hasLegacyDeliveryHints, br as isTtsProviderConfigured, ci as DEFAULT_INPUT_MAX_REDIRECTS, cn as isExternalHookSession, cr as getAgentRunContext, ct as persistBrowserProxyFiles, di as extractImageContentFromSource, dr as resolveAgentIdentity, en as resolveSessionAuthProfileOverride, et as normalizeOptionalText, f as runEmbeddedPiAgent, fi as normalizeMimeList, ft as loadSquidClawPlugins, gt as normalizeGroupActivation, h as waitForEmbeddedPiRunEnd, hi as resolveAgentTimeoutMs, hr as resolveUserTimezone, ii as normalizeSendPolicy, ir as clearSessionQueues, it as buildDeliveryFromLegacyPayload, jn as ensureOutboundSessionEntry, jr as getActiveTaskCount, k as resolveGatewaySessionStoreTarget, kr as OPENAI_TTS_MODELS, li as DEFAULT_INPUT_TIMEOUT_MS, ln as createReplyPrefixOptions, lr as onAgentEvent, lt as getPluginToolMeta, m as getActiveEmbeddedRunCount, mn as buildHistoryContextFromEntries, n as buildBareSessionResetPrompt, ni as getAcpSessionManager, nr as resolveAnnounceTargetFromKey, nt as normalizeRequiredName, oi as DEFAULT_INPUT_IMAGE_MAX_BYTES, on as detectSuspiciousPatterns, or as clearAgentRunContext, ot as stripLegacyDeliveryFields, p as abortEmbeddedPiRun, pi as resolveInputFileLimits, pt as createPluginRuntime, q as writeRestartSentinel, qn as stopSubagentsForRequester, qr as isSystemEventContextChanged, ri as resolveAgentSessionDirs, rr as readLatestAssistantReply, rt as migrateLegacyCronPayload, si as DEFAULT_INPUT_IMAGE_MIMES, sn as getHookType, sr as emitAgentEvent, st as applyBrowserProxyPaths, ti as ACP_SESSION_IDENTITY_RENDERER_VERSION, tn as resolveAgentAvatar, tr as runSubagentAnnounceFlow, tt as normalizePayloadToSystemText, ui as extractFileContentFromSource, un as unbindThreadBindingsBySessionKey, ur as registerAgentRunContext, ut as resolvePluginTools, v as applyToolPolicyPipeline, vr as getTtsProvider, vt as loadProviderUsageSummary, w as listAgentsForGateway, wr as resolveTtsPrefsPath, wt as resolveAgentOutboundIdentity, x as createSquidClawTools, xr as resolveTtsApiKey, y as buildDefaultToolPolicyPipelineSteps, yr as isTtsEnabled, z as setPreRestartDeferralCheck, zn as resolveOutboundChannelPlugin, zr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, zt as createDefaultDeps } from "./reply-
|
|
5
|
+
import { $ as normalizeOptionalSessionKey, $n as listDescendantRunsForRequester, $t as sleepWithAbort, A as resolveSessionModelRef, Ar as OPENAI_TTS_VOICES, B as triggerSquidClawRestart, Bt as createOutboundSendDeps$1, Cr as resolveTtsConfig, D as loadSessionEntry, Dn as createReplyDispatcher, Dr as setTtsProvider, Dt as readJsonBodyWithLimit, E as loadCombinedSessionStoreForGateway, En as dispatchInboundMessage, Er as setTtsEnabled, Et as handleSlackHttpRequest, F as isGatewaySigusr1RestartExternallyAllowed, Fr as resetAllLanes, Ft as resolveAgentOutboundTarget, G as summarizeRestartSentinel, H as formatDoctorNonInteractiveHint, Ht as getCliSessionId, I as markGatewaySigusr1RestartHandled, Ir as setCommandLaneConcurrency, It as createOutboundSendDeps, J as normalizeHttpWebhookUrl, Jn as countActiveDescendantRuns, Jt as resolveBootstrapWarningSignaturesSeen, Kn as isAbortRequestText, Kr as enqueueSystemEvent, L as scheduleGatewaySigusr1Restart, Ln as resolveOutboundTarget, Lr as waitForActiveTasks, Lt as applyVerboseOverride, M as consumeGatewaySigusr1RestartAuthorization, Mn as resolveOutboundSessionRoute, Mt as agentCommandFromIngress, N as deferGatewayRestartUntilIdle, Nr as getTotalQueueSize, O as pruneLegacyStoreKeys, On as getTotalPendingReplies, Or as textToSpeech, Ot as requestBodyErrorToText, P as emitGatewayRestart, Pr as markGatewayDraining, Pt as resolveAgentDeliveryPlan, Q as normalizeOptionalAgentId, Qt as computeBackoff, R as setGatewaySigusr1RestartPolicy, Rn as resolveSessionDeliveryTarget, Rr as CommandLane, Rt as parseVerboseOverride, S as canonicalizeSpawnedByForAgent, Sr as resolveTtsAutoMode, T as listSessionsFromStore, Tn as formatZonedTimestamp, Tr as resolveTtsProviderOrder, U as formatRestartSentinelMessage, Ur as stripHeartbeatToken, Ut as setCliSessionId, V as consumeRestartSentinel, Vn as resetDirectoryCache, Vt as runWithModelFallback, Wt as runCliAgent, X as normalizeCronJobPatch, Xr as requestHeartbeatNow, Xt as lookupContextTokens, Y as normalizeCronJobCreate, Yt as applyModelOverrideToSessionEntry, Z as inferLegacyName, Zn as initSubagentRegistry, _ as resolveCronStyleNow, _r as clearBootstrapSnapshot, ai as resolveSendPolicy, an as buildSafeExternalPrompt, ar as buildOutboundSessionContext, at as hasLegacyDeliveryHints, br as isTtsProviderConfigured, ci as DEFAULT_INPUT_MAX_REDIRECTS, cn as isExternalHookSession, cr as getAgentRunContext, ct as persistBrowserProxyFiles, di as extractImageContentFromSource, dr as resolveAgentIdentity, en as resolveSessionAuthProfileOverride, et as normalizeOptionalText, f as runEmbeddedPiAgent, fi as normalizeMimeList, ft as loadSquidClawPlugins, gt as normalizeGroupActivation, h as waitForEmbeddedPiRunEnd, hi as resolveAgentTimeoutMs, hr as resolveUserTimezone, ii as normalizeSendPolicy, ir as clearSessionQueues, it as buildDeliveryFromLegacyPayload, jn as ensureOutboundSessionEntry, jr as getActiveTaskCount, k as resolveGatewaySessionStoreTarget, kr as OPENAI_TTS_MODELS, li as DEFAULT_INPUT_TIMEOUT_MS, ln as createReplyPrefixOptions, lr as onAgentEvent, lt as getPluginToolMeta, m as getActiveEmbeddedRunCount, mn as buildHistoryContextFromEntries, n as buildBareSessionResetPrompt, ni as getAcpSessionManager, nr as resolveAnnounceTargetFromKey, nt as normalizeRequiredName, oi as DEFAULT_INPUT_IMAGE_MAX_BYTES, on as detectSuspiciousPatterns, or as clearAgentRunContext, ot as stripLegacyDeliveryFields, p as abortEmbeddedPiRun, pi as resolveInputFileLimits, pt as createPluginRuntime, q as writeRestartSentinel, qn as stopSubagentsForRequester, qr as isSystemEventContextChanged, ri as resolveAgentSessionDirs, rr as readLatestAssistantReply, rt as migrateLegacyCronPayload, si as DEFAULT_INPUT_IMAGE_MIMES, sn as getHookType, sr as emitAgentEvent, st as applyBrowserProxyPaths, ti as ACP_SESSION_IDENTITY_RENDERER_VERSION, tn as resolveAgentAvatar, tr as runSubagentAnnounceFlow, tt as normalizePayloadToSystemText, ui as extractFileContentFromSource, un as unbindThreadBindingsBySessionKey, ur as registerAgentRunContext, ut as resolvePluginTools, v as applyToolPolicyPipeline, vr as getTtsProvider, vt as loadProviderUsageSummary, w as listAgentsForGateway, wr as resolveTtsPrefsPath, wt as resolveAgentOutboundIdentity, x as createSquidClawTools, xr as resolveTtsApiKey, y as buildDefaultToolPolicyPipelineSteps, yr as isTtsEnabled, z as setPreRestartDeferralCheck, zn as resolveOutboundChannelPlugin, zr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, zt as createDefaultDeps } from "./reply-CB1p166g.js";
|
|
6
6
|
import { A as resolveDefaultAgentWorkspaceDir, C as DEFAULT_SOUL_FILENAME, E as ensureAgentWorkspace, O as isWorkspaceOnboardingCompleted, S as DEFAULT_MEMORY_FILENAME, T as DEFAULT_USER_FILENAME, a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, c as resolveAgentModelFallbacksOverride, d as resolveDefaultAgentId, g as DEFAULT_AGENTS_FILENAME, i as resolveAgentConfig, j as resolveWorkspaceTemplateDir, l as resolveAgentSkillsFilter, m as resolveSessionAgentId, n as listAgentEntries, r as listAgentIds, u as resolveAgentWorkspaceDir, v as DEFAULT_BOOTSTRAP_FILENAME, w as DEFAULT_TOOLS_FILENAME, x as DEFAULT_MEMORY_ALT_FILENAME, y as DEFAULT_HEARTBEAT_FILENAME } from "./agent-scope-C1XMay0T.js";
|
|
7
7
|
import { a as setConsoleSubsystemFilter, d as defaultRuntime, n as runtimeForLogger, o as setConsoleTimestampPrefix, t as createSubsystemLogger } from "./subsystem-DC87CPVS.js";
|
|
8
8
|
import { C as isCronRunSessionKey, E as parseAgentSessionKey, T as isSubagentSessionKey, _ as normalizeAccountId$1, c as normalizeAgentId, g as DEFAULT_ACCOUNT_ID, h as toAgentStoreSessionKey, l as normalizeMainKey, m as toAgentRequestSessionKey, o as classifySessionKeyShape, r as buildAgentMainSessionKey, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey } from "./session-key-CIXZm7v4.js";
|
|
@@ -103,7 +103,7 @@ import { t as listAgentWorkspaceDirs } from "./workspace-dirs-B2dNahfe.js";
|
|
|
103
103
|
import { f as isKnownSecretTargetId, n as GATEWAY_AUTH_SURFACE_PATHS, r as evaluateGatewayAuthSurfaceStates } from "./runtime-config-collectors-CuQEWwhf.js";
|
|
104
104
|
import "./command-secret-targets-HkRLTNEi.js";
|
|
105
105
|
import { c as hasNonzeroUsage, i as loadSessionUsageTimeSeries, n as loadCostUsageSummary, r as loadSessionCostSummary, s as deriveSessionTotalTokens, t as discoverAllSessions } from "./session-cost-usage-B4DbYmaL.js";
|
|
106
|
-
import { C as normalizeControlUiBasePath, S as buildControlUiAvatarUrl, c as handleReset, w as resolveAssistantAvatarUrl, x as CONTROL_UI_AVATAR_PREFIX } from "./onboard-helpers-
|
|
106
|
+
import { C as normalizeControlUiBasePath, S as buildControlUiAvatarUrl, c as handleReset, w as resolveAssistantAvatarUrl, x as CONTROL_UI_AVATAR_PREFIX } from "./onboard-helpers-Bvpkyuwm.js";
|
|
107
107
|
import "./prompt-style-BoYH_ODs.js";
|
|
108
108
|
import "./pairing-labels-Bh4U5HqY.js";
|
|
109
109
|
import { n as formatTokenCount, r as formatUsd } from "./usage-format-CpAFclrX.js";
|
|
@@ -125,7 +125,7 @@ import { n as DEFAULT_GATEWAY_HTTP_TOOL_DENY } from "./dangerous-tools-D0u9YNYf.
|
|
|
125
125
|
import { n as inheritOptionFromParent } from "./command-options-D0bXi5Pl.js";
|
|
126
126
|
import { t as WizardCancelledError } from "./prompts-knTF_LVq.js";
|
|
127
127
|
import { t as resolveChannelDefaultAccountId } from "./helpers-CvsgDup6.js";
|
|
128
|
-
import { a as pruneAgentConfig, i as loadAgentIdentity, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-
|
|
128
|
+
import { a as pruneAgentConfig, i as loadAgentIdentity, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-BeGeS2jv.js";
|
|
129
129
|
import { t as isWithinDir } from "./path-safety-BWiXz6D4.js";
|
|
130
130
|
import "./install-safe-path-iCmVuopp.js";
|
|
131
131
|
import "./skill-scanner-rdr9cQew.js";
|
|
@@ -139,27 +139,27 @@ import "./service-DWcwQCyr.js";
|
|
|
139
139
|
import "./lifecycle-core-C3gBUQyA.js";
|
|
140
140
|
import "./systemd-hints-BylRxjER.js";
|
|
141
141
|
import { t as parsePort$1 } from "./parse-port-OBGBQwYB.js";
|
|
142
|
-
import { n as addGatewayServiceCommands } from "./daemon-cli-
|
|
142
|
+
import { n as addGatewayServiceCommands } from "./daemon-cli-CNi-QjEX.js";
|
|
143
143
|
import "./diagnostics-DvOqta_6.js";
|
|
144
144
|
import "./table-BPiDGg8F.js";
|
|
145
145
|
import { n as resolveWideAreaDiscoveryDomain, r as writeWideAreaGatewayZone } from "./widearea-dns-CrTl2Q0i.js";
|
|
146
146
|
import { i as toOptionString, n as extractGatewayMiskeys, r as maybeExplainGatewayServiceStop, t as describeUnknownError } from "./shared-DEKzP77M.js";
|
|
147
147
|
import { a as probeGateway, n as collectEnabledInsecureOrDangerousFlags } from "./audit-Gy15uq75.js";
|
|
148
148
|
import { t as discoverGatewayBeacons } from "./bonjour-discovery-Clx6InvU.js";
|
|
149
|
-
import { n as getStatusSummary, r as pickGatewaySelfPresence } from "./status-
|
|
150
|
-
import { a as styleHealthChannelLine, c as setHeartbeatsEnabled, l as startHeartbeatRunner, n as getHealthSnapshot, s as runHeartbeatOnce, t as formatHealthChannelLines, u as isCronSystemEvent } from "./health-
|
|
149
|
+
import { n as getStatusSummary, r as pickGatewaySelfPresence } from "./status-DdW571-j.js";
|
|
150
|
+
import { a as styleHealthChannelLine, c as setHeartbeatsEnabled, l as startHeartbeatRunner, n as getHealthSnapshot, s as runHeartbeatOnce, t as formatHealthChannelLines, u as isCronSystemEvent } from "./health-CJgEuWuG.js";
|
|
151
151
|
import { a as resolveControlUiRootSync, i as resolveControlUiRootOverrideSync, t as ensureControlUiAssetsBuilt } from "./control-ui-assets-Bz7TCLpb.js";
|
|
152
152
|
import { h as normalizeUpdateChannel, l as DEFAULT_PACKAGE_CHANNEL, n as checkUpdateStatus, o as resolveNpmChannelTag, r as compareSemverStrings } from "./channel-account-context-e4ysObLI.js";
|
|
153
153
|
import { a as resolveCommandSecretsFromActiveRuntimeSnapshot, i as prepareSecretsRuntimeSnapshot, n as clearSecretsRuntimeSnapshot, r as getActiveSecretsRuntimeSnapshot, t as activateSecretsRuntimeSnapshot } from "./runtime-DNEPlni4.js";
|
|
154
154
|
import "./onboarding.secret-input-CpbcFdVE.js";
|
|
155
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
156
|
-
import { a as sendApnsAlert, c as parseMessageWithAttachments, d as shouldLogWs, f as summarizeAgentEventForWsLog, i as resolveApnsAuthConfigFromEnv, l as formatForLog, n as normalizeApnsEnvironment, o as sendApnsBackgroundWake, p as setGatewayWsLogStyle, s as normalizeRpcAttachmentsToChatAttachments, t as loadApnsRegistration, u as logWs } from "./push-apns-
|
|
155
|
+
import { t as runOnboardingWizard } from "./onboarding-D7CIbxzd.js";
|
|
156
|
+
import { a as sendApnsAlert, c as parseMessageWithAttachments, d as shouldLogWs, f as summarizeAgentEventForWsLog, i as resolveApnsAuthConfigFromEnv, l as formatForLog, n as normalizeApnsEnvironment, o as sendApnsBackgroundWake, p as setGatewayWsLogStyle, s as normalizeRpcAttachmentsToChatAttachments, t as loadApnsRegistration, u as logWs } from "./push-apns-BQjV_93G.js";
|
|
157
157
|
import { T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, i as ensureTailscaleEndpoint, v as buildGogWatchStartArgs } from "./gmail-setup-utils-CDJE1jBL.js";
|
|
158
158
|
import { n as isNodeCommandAllowed, r as resolveNodeCommandAllowlist } from "./node-command-policy-Bfp1jHbs.js";
|
|
159
159
|
import "./node-service-BA4mUxAW.js";
|
|
160
160
|
import "./status.update-BNODJGA9.js";
|
|
161
161
|
import { t as installSkill } from "./skills-install-C4ILNl_z.js";
|
|
162
|
-
import { t as runGatewayUpdate } from "./update-runner-
|
|
162
|
+
import { t as runGatewayUpdate } from "./update-runner-CqVLeGYA.js";
|
|
163
163
|
import { i as shouldIncludeHook, r as resolveHookConfig, t as loadWorkspaceHookEntries } from "./workspace-B-k5DNiQ.js";
|
|
164
164
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
165
165
|
import * as fsSync from "node:fs";
|
|
@@ -13817,7 +13817,7 @@ const nodeHandlers = {
|
|
|
13817
13817
|
const p = params;
|
|
13818
13818
|
const payloadJSON = typeof p.payloadJSON === "string" ? p.payloadJSON : p.payload !== void 0 ? JSON.stringify(p.payload) : null;
|
|
13819
13819
|
await respondUnavailableOnThrow(respond, async () => {
|
|
13820
|
-
const { handleNodeEvent } = await import("./server-node-events-
|
|
13820
|
+
const { handleNodeEvent } = await import("./server-node-events-DrCKK0J4.js");
|
|
13821
13821
|
const nodeId = client?.connect?.device?.id ?? client?.connect?.client?.id ?? "node";
|
|
13822
13822
|
await handleNodeEvent({
|
|
13823
13823
|
deps: context.deps,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
2
|
+
import { c as resolveStateDir } from "./paths-DA5srn0U.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import syncFs from "node:fs";
|
|
5
5
|
|
|
6
6
|
//#region src/infra/json-file.ts
|
|
7
7
|
function loadJsonFile(pathname) {
|
|
8
8
|
try {
|
|
9
|
-
if (!
|
|
10
|
-
const raw =
|
|
9
|
+
if (!syncFs.existsSync(pathname)) return;
|
|
10
|
+
const raw = syncFs.readFileSync(pathname, "utf8");
|
|
11
11
|
return JSON.parse(raw);
|
|
12
12
|
} catch {
|
|
13
13
|
return;
|
|
@@ -15,12 +15,12 @@ function loadJsonFile(pathname) {
|
|
|
15
15
|
}
|
|
16
16
|
function saveJsonFile(pathname, data) {
|
|
17
17
|
const dir = path.dirname(pathname);
|
|
18
|
-
if (!
|
|
18
|
+
if (!syncFs.existsSync(dir)) syncFs.mkdirSync(dir, {
|
|
19
19
|
recursive: true,
|
|
20
20
|
mode: 448
|
|
21
21
|
});
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
syncFs.writeFileSync(pathname, `${JSON.stringify(data, null, 2)}\n`, "utf8");
|
|
23
|
+
syncFs.chmodSync(pathname, 384);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { f as isRich, n as info, p as theme } from "./globals-xfUIfxbE.js";
|
|
3
3
|
import { l as escapeRegExp } from "./utils-DMGXr25O.js";
|
|
4
|
-
import { Br as DEFAULT_HEARTBEAT_EVERY, Fn as resolveHeartbeatDeliveryTarget, Hr as resolveHeartbeatPrompt$1, In as resolveHeartbeatSenderContext, Jr as peekSystemEventEntries, Mr as getQueueSize, Qr as resolveHeartbeatReasonKind, Rr as CommandLane, Ur as stripHeartbeatToken, Vr as isHeartbeatContentEffectivelyEmpty, Xr as requestHeartbeatNow, Zr as setHeartbeatWakeHandler, ar as buildOutboundSessionContext, fr as resolveEffectiveMessagesConfig, g as appendCronStyleCurrentTimeLine, hr as resolveUserTimezone, t as getReplyFromConfig, zr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS } from "./reply-
|
|
4
|
+
import { Br as DEFAULT_HEARTBEAT_EVERY, Fn as resolveHeartbeatDeliveryTarget, Hr as resolveHeartbeatPrompt$1, In as resolveHeartbeatSenderContext, Jr as peekSystemEventEntries, Mr as getQueueSize, Qr as resolveHeartbeatReasonKind, Rr as CommandLane, Ur as stripHeartbeatToken, Vr as isHeartbeatContentEffectivelyEmpty, Xr as requestHeartbeatNow, Zr as setHeartbeatWakeHandler, ar as buildOutboundSessionContext, fr as resolveEffectiveMessagesConfig, g as appendCronStyleCurrentTimeLine, hr as resolveUserTimezone, t as getReplyFromConfig, zr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS } from "./reply-CB1p166g.js";
|
|
5
5
|
import { d as resolveDefaultAgentId, i as resolveAgentConfig, u as resolveAgentWorkspaceDir, y as DEFAULT_HEARTBEAT_FILENAME } from "./agent-scope-C1XMay0T.js";
|
|
6
6
|
import { d as defaultRuntime, t as createSubsystemLogger } from "./subsystem-DC87CPVS.js";
|
|
7
7
|
import { c as normalizeAgentId, h as toAgentStoreSessionKey, u as resolveAgentIdFromSessionKey } from "./session-key-CIXZm7v4.js";
|
|
@@ -8,7 +8,7 @@ import { c as normalizeAgentId, h as toAgentStoreSessionKey, u as resolveAgentId
|
|
|
8
8
|
import { c as escapeRegExp } from "./utils-D6vohX1h.js";
|
|
9
9
|
import { $ as resolveAgentMainSessionKey, Q as canonicalizeMainSessionAlias, d as updateSessionStore, l as saveSessionStore, o as loadSessionStore } from "./sessions-C5HWgT1_.js";
|
|
10
10
|
import { g as resolvePreferredAccountId, m as buildChannelAccountBindings, n as listChannelPlugins, t as getChannelPlugin } from "./plugins-BDTkSIi7.js";
|
|
11
|
-
import { Br as getQueueSize, Cr as resolveUserTimezone, Gn as peekSystemEventEntries, Jn as setHeartbeatWakeHandler, Jr as DEFAULT_HEARTBEAT_EVERY, Kr as CommandLane, Tt as resolveHeartbeatSenderContext, Xr as resolveHeartbeatPrompt$1, Yn as resolveHeartbeatReasonKind, Yr as isHeartbeatContentEffectivelyEmpty, Zr as stripHeartbeatToken, br as resolveEffectiveMessagesConfig, dt as appendCronStyleCurrentTimeLine, gn as buildOutboundSessionContext, lt as getReplyFromConfig, qn as requestHeartbeatNow, qr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, wt as resolveHeartbeatDeliveryTarget } from "./subagent-registry-
|
|
11
|
+
import { Br as getQueueSize, Cr as resolveUserTimezone, Gn as peekSystemEventEntries, Jn as setHeartbeatWakeHandler, Jr as DEFAULT_HEARTBEAT_EVERY, Kr as CommandLane, Tt as resolveHeartbeatSenderContext, Xr as resolveHeartbeatPrompt$1, Yn as resolveHeartbeatReasonKind, Yr as isHeartbeatContentEffectivelyEmpty, Zr as stripHeartbeatToken, br as resolveEffectiveMessagesConfig, dt as appendCronStyleCurrentTimeLine, gn as buildOutboundSessionContext, lt as getReplyFromConfig, qn as requestHeartbeatNow, qr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, wt as resolveHeartbeatDeliveryTarget } from "./subagent-registry-DGrfQVN3.js";
|
|
12
12
|
import { c as resolveStorePath, n as resolveSessionFilePath } from "./paths-Dn_rzeZN.js";
|
|
13
13
|
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-v5CyFgM7.js";
|
|
14
14
|
import { t as HEARTBEAT_TOKEN } from "./tokens-DOVPgjwZ.js";
|
|
@@ -32,7 +32,7 @@ import "./logging-CcxUDNcI.js";
|
|
|
32
32
|
import "./accounts-KzgPbLHP.js";
|
|
33
33
|
import "./send-Dp0cFCnc.js";
|
|
34
34
|
import "./send-DomUTnc_.js";
|
|
35
|
-
import "./subagent-registry-
|
|
35
|
+
import "./subagent-registry-DGrfQVN3.js";
|
|
36
36
|
import "./paths-Dn_rzeZN.js";
|
|
37
37
|
import "./chat-envelope-thy05gXR.js";
|
|
38
38
|
import "./client-cfjtRboM.js";
|
|
@@ -102,7 +102,7 @@ import "./pi-tools.policy-COmj0F9F.js";
|
|
|
102
102
|
import "./proxy-Dgwoliym.js";
|
|
103
103
|
import "./runtime-config-collectors-nl4J0eGm.js";
|
|
104
104
|
import "./command-secret-targets-DjorlW8u.js";
|
|
105
|
-
import "./onboard-helpers-
|
|
105
|
+
import "./onboard-helpers-ByttGRIZ.js";
|
|
106
106
|
import "./prompt-style-D_i_ws0g.js";
|
|
107
107
|
import "./pairing-labels-IQFEI8BA.js";
|
|
108
108
|
import "./memory-cli-BpGa2Md3.js";
|
|
@@ -117,7 +117,7 @@ import { a as installPackageDir, c as resolveTimedInstallModeOptions, f as resol
|
|
|
117
117
|
import { t as renderTable } from "./table-DbDCX_6t.js";
|
|
118
118
|
import { a as parseFrontmatter, t as loadWorkspaceHookEntries } from "./workspace-D5vNjk5G.js";
|
|
119
119
|
import { t as buildWorkspaceHookStatus } from "./hooks-status-DMFBAUq8.js";
|
|
120
|
-
import { i as buildPluginStatusReport, n as resolvePinnedNpmInstallRecordForCli, r as looksLikeLocalInstallSpec, t as buildNpmInstallRecordFields } from "./npm-resolution-
|
|
120
|
+
import { i as buildPluginStatusReport, n as resolvePinnedNpmInstallRecordForCli, r as looksLikeLocalInstallSpec, t as buildNpmInstallRecordFields } from "./npm-resolution-Djbuzx6o.js";
|
|
121
121
|
import path from "node:path";
|
|
122
122
|
import fs from "node:fs";
|
|
123
123
|
import fs$1 from "node:fs/promises";
|
|
@@ -2,7 +2,7 @@ import "./paths-mdt1HFK2.js";
|
|
|
2
2
|
import { p as theme } from "./globals-xfUIfxbE.js";
|
|
3
3
|
import { S as shortenHomePath, t as CONFIG_DIR, y as resolveUserPath } from "./utils-DMGXr25O.js";
|
|
4
4
|
import "./thinking-44rmAw5o.js";
|
|
5
|
-
import "./reply-
|
|
5
|
+
import "./reply-CB1p166g.js";
|
|
6
6
|
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-C1XMay0T.js";
|
|
7
7
|
import { d as defaultRuntime } from "./subsystem-DC87CPVS.js";
|
|
8
8
|
import "./squidclaw-root-CnE19yKj.js";
|
|
@@ -99,7 +99,7 @@ import "./workspace-dirs-B2dNahfe.js";
|
|
|
99
99
|
import "./runtime-config-collectors-CuQEWwhf.js";
|
|
100
100
|
import "./command-secret-targets-HkRLTNEi.js";
|
|
101
101
|
import "./session-cost-usage-B4DbYmaL.js";
|
|
102
|
-
import "./onboard-helpers-
|
|
102
|
+
import "./onboard-helpers-Bvpkyuwm.js";
|
|
103
103
|
import "./prompt-style-BoYH_ODs.js";
|
|
104
104
|
import "./pairing-labels-Bh4U5HqY.js";
|
|
105
105
|
import "./memory-cli-DWJBdHsC.js";
|
|
@@ -116,7 +116,7 @@ import { a as installPackageDir, c as resolveTimedInstallModeOptions, f as resol
|
|
|
116
116
|
import { t as renderTable } from "./table-BPiDGg8F.js";
|
|
117
117
|
import { a as parseFrontmatter, t as loadWorkspaceHookEntries } from "./workspace-B-k5DNiQ.js";
|
|
118
118
|
import { t as buildWorkspaceHookStatus } from "./hooks-status-Dd_iWcBZ.js";
|
|
119
|
-
import { i as buildPluginStatusReport, n as resolvePinnedNpmInstallRecordForCli, r as looksLikeLocalInstallSpec, t as buildNpmInstallRecordFields } from "./npm-resolution-
|
|
119
|
+
import { i as buildPluginStatusReport, n as resolvePinnedNpmInstallRecordForCli, r as looksLikeLocalInstallSpec, t as buildNpmInstallRecordFields } from "./npm-resolution-DWpNPsBF.js";
|
|
120
120
|
import fs from "node:fs";
|
|
121
121
|
import path from "node:path";
|
|
122
122
|
import fs$1 from "node:fs/promises";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./run-with-concurrency-
|
|
2
|
-
import { f as isRecord, x as shortenHomeInString } from "./logger-
|
|
3
|
-
import { Wn as applyConfigEnvVars, X as loadConfig, _ as normalizeProviders, b as resolveImplicitProviders, ir as resolveSquidClawAgentDir, j as requireApiKey, k as getApiKeyForModel, pr as normalizeSecretInput, v as resolveImplicitBedrockProvider, y as resolveImplicitCopilotProvider } from "./model-selection-
|
|
4
|
-
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
5
|
-
import { n as redactToolDetail } from "./redact-
|
|
1
|
+
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./run-with-concurrency-BFR3ReeF.js";
|
|
2
|
+
import { f as isRecord, x as shortenHomeInString } from "./logger-CnTSBL7T.js";
|
|
3
|
+
import { Wn as applyConfigEnvVars, X as loadConfig, _ as normalizeProviders, b as resolveImplicitProviders, ir as resolveSquidClawAgentDir, j as requireApiKey, k as getApiKeyForModel, pr as normalizeSecretInput, v as resolveImplicitBedrockProvider, y as resolveImplicitCopilotProvider } from "./model-selection-ag9BmVct.js";
|
|
4
|
+
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-Bse_QhEf.js";
|
|
5
|
+
import { n as redactToolDetail } from "./redact-DvzicBMu.js";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { complete } from "@mariozechner/pi-ai";
|
|
@@ -2254,7 +2254,7 @@ function resolveProviderVisionModelFromConfig(params) {
|
|
|
2254
2254
|
//#region src/media-understanding/providers/image.ts
|
|
2255
2255
|
let piModelDiscoveryRuntimePromise = null;
|
|
2256
2256
|
function loadPiModelDiscoveryRuntime() {
|
|
2257
|
-
piModelDiscoveryRuntimePromise ??= import("./pi-model-discovery-runtime-
|
|
2257
|
+
piModelDiscoveryRuntimePromise ??= import("./pi-model-discovery-runtime-Dpu7Jm2L.js");
|
|
2258
2258
|
return piModelDiscoveryRuntimePromise;
|
|
2259
2259
|
}
|
|
2260
2260
|
async function describeImageWithModel(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as runExec } from "./workspace-
|
|
2
|
-
import { Jt as getActivePluginRegistry, Vt as CHANNEL_IDS, qt as normalizeChatChannelId } from "./model-selection-
|
|
1
|
+
import { _ as runExec } from "./workspace-kVMIaBrV.js";
|
|
2
|
+
import { Jt as getActivePluginRegistry, Vt as CHANNEL_IDS, qt as normalizeChatChannelId } from "./model-selection-ag9BmVct.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import path from "node:path";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import "./run-with-concurrency-BFR3ReeF.js";
|
|
2
|
+
import "./paths-DA5srn0U.js";
|
|
3
|
+
import "./subsystem-6v7sWnAD.js";
|
|
4
|
+
import "./workspace-kVMIaBrV.js";
|
|
5
|
+
import "./logger-CnTSBL7T.js";
|
|
6
|
+
import "./model-selection-ag9BmVct.js";
|
|
7
|
+
import "./github-copilot-token-B5cPlwaz.js";
|
|
8
|
+
import "./legacy-names-aGJJuzM_.js";
|
|
9
|
+
import "./thinking-SdNGqtJE.js";
|
|
10
|
+
import "./plugins-DXkm70nK.js";
|
|
11
|
+
import "./accounts-CkF7YwoF.js";
|
|
12
|
+
import "./accounts-DbloMfwT.js";
|
|
13
|
+
import "./image-ops-CdgypS_g.js";
|
|
14
|
+
import "./pi-embedded-helpers-Bse_QhEf.js";
|
|
15
|
+
import "./chrome-CjxCwFA9.js";
|
|
16
|
+
import "./frontmatter-Cq1TcIQ2.js";
|
|
17
|
+
import "./skills-CTV78w4q.js";
|
|
18
|
+
import "./path-alias-guards-DORgbZ1w.js";
|
|
19
|
+
import "./redact-DvzicBMu.js";
|
|
20
|
+
import "./errors-kkRuS2Cs.js";
|
|
21
|
+
import "./fs-safe-BoB4X3GD.js";
|
|
22
|
+
import "./proxy-env-D75CWSOo.js";
|
|
23
|
+
import "./store-B89Hj8Ub.js";
|
|
24
|
+
import "./accounts-CK_sHUyT.js";
|
|
25
|
+
import "./paths-DSd911Oe.js";
|
|
26
|
+
import "./tool-images-8BKrL7Bn.js";
|
|
27
|
+
import { t as describeImageWithModel } from "./image-C-C7hQ26.js";
|
|
28
|
+
|
|
29
|
+
export { describeImageWithModel };
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import "./paths-mdt1HFK2.js";
|
|
|
3
3
|
import { D as tryParseLogLevel, F as hasHelpOrVersion, I as hasRootVersionAlias, N as getVerboseFlag, P as hasFlag, f as isRich, j as getCommandPathWithRootOptions, p as theme, s as setVerbose, w as ALLOWED_LOG_LEVELS } from "./globals-xfUIfxbE.js";
|
|
4
4
|
import { T as toWhatsappJid, l as escapeRegExp, m as normalizeE164, n as assertWebChannel } from "./utils-DMGXr25O.js";
|
|
5
5
|
import "./thinking-44rmAw5o.js";
|
|
6
|
-
import { St as resolveCommitHash, t as getReplyFromConfig, zt as createDefaultDeps } from "./reply-
|
|
6
|
+
import { St as resolveCommitHash, t as getReplyFromConfig, zt as createDefaultDeps } from "./reply-CB1p166g.js";
|
|
7
7
|
import "./agent-scope-C1XMay0T.js";
|
|
8
8
|
import { d as defaultRuntime, l as visibleWidth, r as enableConsoleCapture } from "./subsystem-DC87CPVS.js";
|
|
9
9
|
import "./squidclaw-root-CnE19yKj.js";
|
|
@@ -99,7 +99,7 @@ import "./workspace-dirs-B2dNahfe.js";
|
|
|
99
99
|
import "./runtime-config-collectors-CuQEWwhf.js";
|
|
100
100
|
import "./command-secret-targets-HkRLTNEi.js";
|
|
101
101
|
import "./session-cost-usage-B4DbYmaL.js";
|
|
102
|
-
import "./onboard-helpers-
|
|
102
|
+
import "./onboard-helpers-Bvpkyuwm.js";
|
|
103
103
|
import "./prompt-style-BoYH_ODs.js";
|
|
104
104
|
import "./pairing-labels-Bh4U5HqY.js";
|
|
105
105
|
import "./memory-cli-DWJBdHsC.js";
|
|
@@ -111,7 +111,7 @@ import "./help-format-BMkyP_P-.js";
|
|
|
111
111
|
import "./progress-BHN121Ps.js";
|
|
112
112
|
import "./server-lifecycle-DfGhxo90.js";
|
|
113
113
|
import "./stagger-DL-XRpny.js";
|
|
114
|
-
import { r as waitForever, t as monitorWebChannel } from "./channel-web-
|
|
114
|
+
import { r as waitForever, t as monitorWebChannel } from "./channel-web-BkYtM8H5.js";
|
|
115
115
|
import "./outbound-C_7caLcK.js";
|
|
116
116
|
import "./session-CZJ5Ux6-.js";
|
|
117
117
|
import "./login-Cf9OQOFu.js";
|
|
@@ -119,9 +119,9 @@ import { t as isMainModule } from "./is-main-D5LnS2LP.js";
|
|
|
119
119
|
import { t as ensureSquidClawCliOnPath } from "./path-env-kSxA2INU.js";
|
|
120
120
|
import { t as assertSupportedRuntime } from "./runtime-guard-pMNmDPEU.js";
|
|
121
121
|
import "./ports-CXjhFS7T.js";
|
|
122
|
-
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-
|
|
123
|
-
import "./plugin-registry-
|
|
124
|
-
import { n as resolveCliChannelOptions } from "./channel-options-
|
|
122
|
+
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-SjYSWx_N.js";
|
|
123
|
+
import "./plugin-registry-DtuxmgWx.js";
|
|
124
|
+
import { n as resolveCliChannelOptions } from "./channel-options-FdCN4cFo.js";
|
|
125
125
|
import process$1 from "node:process";
|
|
126
126
|
import { fileURLToPath } from "node:url";
|
|
127
127
|
import { Command, InvalidArgumentError } from "commander";
|
|
@@ -543,7 +543,7 @@ function loadConfigGuardModule() {
|
|
|
543
543
|
return configGuardModulePromise;
|
|
544
544
|
}
|
|
545
545
|
function loadPluginRegistryModule() {
|
|
546
|
-
pluginRegistryModulePromise ??= import("./plugin-registry-
|
|
546
|
+
pluginRegistryModulePromise ??= import("./plugin-registry-DtuxmgWx.js").then((n) => n.n);
|
|
547
547
|
return pluginRegistryModulePromise;
|
|
548
548
|
}
|
|
549
549
|
function getRootCommand(command) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-
|
|
2
|
-
import { G as normalizeAccountId } from "./workspace-
|
|
3
|
-
import { y as resolveUserPath } from "./logger-
|
|
4
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
5
|
-
import { h as resolveAccountEntry } from "./accounts-
|
|
6
|
-
import { E as kindFromMime, a as hasAlphaChannel, b as detectMime, c as INTERNAL_MESSAGE_CHANNEL, k as maxBytesForKind, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg, x as extensionForMime } from "./image-ops-
|
|
7
|
-
import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
8
|
-
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-
|
|
1
|
+
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-6v7sWnAD.js";
|
|
2
|
+
import { G as normalizeAccountId } from "./workspace-kVMIaBrV.js";
|
|
3
|
+
import { y as resolveUserPath } from "./logger-CnTSBL7T.js";
|
|
4
|
+
import { r as normalizeChannelId } from "./plugins-DXkm70nK.js";
|
|
5
|
+
import { h as resolveAccountEntry } from "./accounts-CkF7YwoF.js";
|
|
6
|
+
import { E as kindFromMime, a as hasAlphaChannel, b as detectMime, c as INTERNAL_MESSAGE_CHANNEL, k as maxBytesForKind, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg, x as extensionForMime } from "./image-ops-CdgypS_g.js";
|
|
7
|
+
import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-BoB4X3GD.js";
|
|
8
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-BLS7EMnx.js";
|
|
9
9
|
import fs from "node:fs/promises";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { a as resolveAgentDir, c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId, o as resolveAgentEffectiveModelPrimary } from "./run-with-concurrency-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import { br as DEFAULT_MODEL, l as parseModelRef, xr as DEFAULT_PROVIDER } from "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
8
|
-
import "./legacy-names-
|
|
9
|
-
import "./thinking-
|
|
10
|
-
import "./tokens-
|
|
11
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
12
|
-
import "./plugins-
|
|
13
|
-
import "./accounts-
|
|
14
|
-
import "./send-
|
|
15
|
-
import "./send-
|
|
16
|
-
import "./deliver-
|
|
17
|
-
import "./diagnostic-
|
|
18
|
-
import "./accounts-
|
|
19
|
-
import "./image-ops-
|
|
20
|
-
import "./send-
|
|
21
|
-
import "./pi-model-discovery-
|
|
22
|
-
import "./pi-embedded-helpers-
|
|
23
|
-
import "./chrome-
|
|
24
|
-
import "./frontmatter-
|
|
25
|
-
import "./skills-
|
|
26
|
-
import "./path-alias-guards-
|
|
27
|
-
import "./redact-
|
|
28
|
-
import "./errors-
|
|
29
|
-
import "./fs-safe-
|
|
30
|
-
import "./proxy-env-
|
|
31
|
-
import "./store-
|
|
32
|
-
import "./accounts-
|
|
33
|
-
import "./paths-
|
|
34
|
-
import "./tool-images-
|
|
35
|
-
import "./image-
|
|
36
|
-
import "./audio-transcription-runner-
|
|
37
|
-
import "./fetch-
|
|
38
|
-
import "./fetch-guard-
|
|
39
|
-
import "./api-key-rotation-
|
|
40
|
-
import "./proxy-fetch-
|
|
41
|
-
import "./ir-
|
|
1
|
+
import { a as resolveAgentDir, c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId, o as resolveAgentEffectiveModelPrimary } from "./run-with-concurrency-BFR3ReeF.js";
|
|
2
|
+
import "./paths-DA5srn0U.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-6v7sWnAD.js";
|
|
4
|
+
import "./workspace-kVMIaBrV.js";
|
|
5
|
+
import "./logger-CnTSBL7T.js";
|
|
6
|
+
import { br as DEFAULT_MODEL, l as parseModelRef, xr as DEFAULT_PROVIDER } from "./model-selection-ag9BmVct.js";
|
|
7
|
+
import "./github-copilot-token-B5cPlwaz.js";
|
|
8
|
+
import "./legacy-names-aGJJuzM_.js";
|
|
9
|
+
import "./thinking-SdNGqtJE.js";
|
|
10
|
+
import "./tokens-DfbMVF9y.js";
|
|
11
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-CHzwPt6X.js";
|
|
12
|
+
import "./plugins-DXkm70nK.js";
|
|
13
|
+
import "./accounts-CkF7YwoF.js";
|
|
14
|
+
import "./send-Co5Bqwuo.js";
|
|
15
|
+
import "./send-DjL7KlMV.js";
|
|
16
|
+
import "./deliver-D-f6Wa3i.js";
|
|
17
|
+
import "./diagnostic-ySwZga6c.js";
|
|
18
|
+
import "./accounts-DbloMfwT.js";
|
|
19
|
+
import "./image-ops-CdgypS_g.js";
|
|
20
|
+
import "./send-bW7jDv8D.js";
|
|
21
|
+
import "./pi-model-discovery-DAzuqPoG.js";
|
|
22
|
+
import "./pi-embedded-helpers-Bse_QhEf.js";
|
|
23
|
+
import "./chrome-CjxCwFA9.js";
|
|
24
|
+
import "./frontmatter-Cq1TcIQ2.js";
|
|
25
|
+
import "./skills-CTV78w4q.js";
|
|
26
|
+
import "./path-alias-guards-DORgbZ1w.js";
|
|
27
|
+
import "./redact-DvzicBMu.js";
|
|
28
|
+
import "./errors-kkRuS2Cs.js";
|
|
29
|
+
import "./fs-safe-BoB4X3GD.js";
|
|
30
|
+
import "./proxy-env-D75CWSOo.js";
|
|
31
|
+
import "./store-B89Hj8Ub.js";
|
|
32
|
+
import "./accounts-CK_sHUyT.js";
|
|
33
|
+
import "./paths-DSd911Oe.js";
|
|
34
|
+
import "./tool-images-8BKrL7Bn.js";
|
|
35
|
+
import "./image-C-C7hQ26.js";
|
|
36
|
+
import "./audio-transcription-runner-BnbdYMDl.js";
|
|
37
|
+
import "./fetch-BLS7EMnx.js";
|
|
38
|
+
import "./fetch-guard-D0fXNJls.js";
|
|
39
|
+
import "./api-key-rotation-BHFJiYbw.js";
|
|
40
|
+
import "./proxy-fetch-lH6RsRTE.js";
|
|
41
|
+
import "./ir-BvisJWXv.js";
|
|
42
42
|
import "./render-DW7AcFdD.js";
|
|
43
|
-
import "./target-errors-
|
|
44
|
-
import "./commands-registry-
|
|
45
|
-
import "./skill-commands-
|
|
43
|
+
import "./target-errors-CweAa7L9.js";
|
|
44
|
+
import "./commands-registry-D6ZOTo1C.js";
|
|
45
|
+
import "./skill-commands-Bi_jchJn.js";
|
|
46
46
|
import "./fetch-tZXOZ9FV.js";
|
|
47
|
-
import "./channel-activity-
|
|
48
|
-
import "./tables-
|
|
49
|
-
import "./send-
|
|
50
|
-
import "./outbound-attachment-
|
|
51
|
-
import "./send-
|
|
47
|
+
import "./channel-activity-C5kTj83_.js";
|
|
48
|
+
import "./tables-DGHzaXQz.js";
|
|
49
|
+
import "./send-C98RfcAb.js";
|
|
50
|
+
import "./outbound-attachment-CqXiWbKN.js";
|
|
51
|
+
import "./send-Do7hKDL9.js";
|
|
52
52
|
import "./proxy-CecQTx_Z.js";
|
|
53
|
-
import "./manager-
|
|
54
|
-
import "./query-expansion-
|
|
53
|
+
import "./manager-DdxMYEDd.js";
|
|
54
|
+
import "./query-expansion-Dzxt6kXo.js";
|
|
55
55
|
import fs from "node:fs/promises";
|
|
56
56
|
import os from "node:os";
|
|
57
57
|
import path from "node:path";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir, u as resolveEffectiveHomeDir } from "./paths-
|
|
2
|
-
import { b as getLogger, c as danger, d as logVerboseConsole, h as warn, i as defaultRuntime, l as info, p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose } from "./subsystem-
|
|
1
|
+
import { d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir, u as resolveEffectiveHomeDir } from "./paths-DA5srn0U.js";
|
|
2
|
+
import { b as getLogger, c as danger, d as logVerboseConsole, h as warn, i as defaultRuntime, l as info, p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose } from "./subsystem-6v7sWnAD.js";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
5
|
+
import syncFs from "node:fs";
|
|
6
6
|
|
|
7
7
|
//#region src/infra/plain-object.ts
|
|
8
8
|
/**
|
|
@@ -15,14 +15,14 @@ function isPlainObject(value) {
|
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/utils.ts
|
|
17
17
|
async function ensureDir(dir) {
|
|
18
|
-
await
|
|
18
|
+
await syncFs.promises.mkdir(dir, { recursive: true });
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Check if a file or directory exists at the given path.
|
|
22
22
|
*/
|
|
23
23
|
async function pathExists(targetPath) {
|
|
24
24
|
try {
|
|
25
|
-
await
|
|
25
|
+
await syncFs.promises.access(targetPath);
|
|
26
26
|
return true;
|
|
27
27
|
} catch {
|
|
28
28
|
return false;
|
|
@@ -105,7 +105,7 @@ function readLidReverseMapping(lid, opts) {
|
|
|
105
105
|
for (const dir of mappingDirs) {
|
|
106
106
|
const mappingPath = path.join(dir, mappingFilename);
|
|
107
107
|
try {
|
|
108
|
-
const data =
|
|
108
|
+
const data = syncFs.readFileSync(mappingPath, "utf8");
|
|
109
109
|
const phone = JSON.parse(data);
|
|
110
110
|
if (phone === null || phone === void 0) continue;
|
|
111
111
|
return normalizeE164(String(phone));
|
|
@@ -190,7 +190,7 @@ function resolveConfigDir(env = process.env, homedir = os.homedir) {
|
|
|
190
190
|
if (override) return resolveUserPath(override);
|
|
191
191
|
const newDir = path.join(resolveRequiredHomeDir(env, homedir), ".squidclaw");
|
|
192
192
|
try {
|
|
193
|
-
if (
|
|
193
|
+
if (syncFs.existsSync(newDir)) return newDir;
|
|
194
194
|
} catch {}
|
|
195
195
|
return newDir;
|
|
196
196
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as danger, i as defaultRuntime, l as info, m as success } from "./subsystem-
|
|
2
|
-
import { r as logInfo } from "./logger-
|
|
3
|
-
import { X as loadConfig, lr as formatCliCommand } from "./model-selection-
|
|
4
|
-
import { n as resolveWhatsAppAccount, o as logoutWeb } from "./accounts-
|
|
5
|
-
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-
|
|
1
|
+
import { c as danger, i as defaultRuntime, l as info, m as success } from "./subsystem-6v7sWnAD.js";
|
|
2
|
+
import { r as logInfo } from "./logger-CnTSBL7T.js";
|
|
3
|
+
import { X as loadConfig, lr as formatCliCommand } from "./model-selection-ag9BmVct.js";
|
|
4
|
+
import { n as resolveWhatsAppAccount, o as logoutWeb } from "./accounts-CkF7YwoF.js";
|
|
5
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-QSn69XeJ.js";
|
|
6
6
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
7
7
|
|
|
8
8
|
//#region src/web/login.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./run-with-concurrency-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { c as danger, i as defaultRuntime, l as info, m as success } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import { r as logInfo } from "./logger-
|
|
6
|
-
import { X as loadConfig } from "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
8
|
-
import "./legacy-names-
|
|
9
|
-
import { m as webAuthExists, n as resolveWhatsAppAccount, o as logoutWeb, u as readWebSelfId } from "./accounts-
|
|
10
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
1
|
+
import "./run-with-concurrency-BFR3ReeF.js";
|
|
2
|
+
import "./paths-DA5srn0U.js";
|
|
3
|
+
import { c as danger, i as defaultRuntime, l as info, m as success } from "./subsystem-6v7sWnAD.js";
|
|
4
|
+
import "./workspace-kVMIaBrV.js";
|
|
5
|
+
import { r as logInfo } from "./logger-CnTSBL7T.js";
|
|
6
|
+
import { X as loadConfig } from "./model-selection-ag9BmVct.js";
|
|
7
|
+
import "./github-copilot-token-B5cPlwaz.js";
|
|
8
|
+
import "./legacy-names-aGJJuzM_.js";
|
|
9
|
+
import { m as webAuthExists, n as resolveWhatsAppAccount, o as logoutWeb, u as readWebSelfId } from "./accounts-CkF7YwoF.js";
|
|
10
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-QSn69XeJ.js";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
13
13
|
import QRCodeModule from "qrcode-terminal/vendor/QRCode/index.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { a as resolveAgentDir, c as resolveAgentWorkspaceDir, i as resolveAgentConfig } from "./run-with-concurrency-
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { E as truncateUtf16Safe, c as clampNumber, s as clampInt, y as resolveUserPath } from "./logger-
|
|
5
|
-
import { M as resolveApiKeyForProvider, N as resolveEnvApiKey, S as retryAsync, Zn as isTruthyEnvValue, fr as normalizeOptionalSecretInput, gr as normalizeResolvedSecretInputString, j as requireApiKey } from "./model-selection-
|
|
6
|
-
import { r as formatErrorMessage } from "./errors-
|
|
7
|
-
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-
|
|
1
|
+
import { a as resolveAgentDir, c as resolveAgentWorkspaceDir, i as resolveAgentConfig } from "./run-with-concurrency-BFR3ReeF.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-DA5srn0U.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-6v7sWnAD.js";
|
|
4
|
+
import { E as truncateUtf16Safe, c as clampNumber, s as clampInt, y as resolveUserPath } from "./logger-CnTSBL7T.js";
|
|
5
|
+
import { M as resolveApiKeyForProvider, N as resolveEnvApiKey, S as retryAsync, Zn as isTruthyEnvValue, fr as normalizeOptionalSecretInput, gr as normalizeResolvedSecretInputString, j as requireApiKey } from "./model-selection-ag9BmVct.js";
|
|
6
|
+
import { r as formatErrorMessage } from "./errors-kkRuS2Cs.js";
|
|
7
|
+
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-DSd911Oe.js";
|
|
8
8
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-uYL2gEou.js";
|
|
9
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
10
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
11
|
-
import { _ as isFileMissingError, a as sessionPathForFile, c as cosineSimilarity, d as isMemoryPath, f as listMemoryFiles, g as runWithConcurrency, h as remapChunkLines, i as listSessionFilesForAgent, l as ensureDir, m as parseEmbedding, n as requireNodeSqlite, o as buildFileEntry, p as normalizeExtraMemoryPaths, r as buildSessionEntry, s as chunkMarkdown, t as extractKeywords, u as hashText, v as statRegularFile } from "./query-expansion-
|
|
9
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-D0fXNJls.js";
|
|
10
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-BHFJiYbw.js";
|
|
11
|
+
import { _ as isFileMissingError, a as sessionPathForFile, c as cosineSimilarity, d as isMemoryPath, f as listMemoryFiles, g as runWithConcurrency, h as remapChunkLines, i as listSessionFilesForAgent, l as ensureDir, m as parseEmbedding, n as requireNodeSqlite, o as buildFileEntry, p as normalizeExtraMemoryPaths, r as buildSessionEntry, s as chunkMarkdown, t as extractKeywords, u as hashText, v as statRegularFile } from "./query-expansion-Dzxt6kXo.js";
|
|
12
12
|
import fs from "node:fs/promises";
|
|
13
13
|
import os from "node:os";
|
|
14
14
|
import path from "node:path";
|
|
15
|
-
import
|
|
15
|
+
import syncFs from "node:fs";
|
|
16
16
|
import { randomUUID } from "node:crypto";
|
|
17
17
|
import chokidar from "chokidar";
|
|
18
18
|
import { createInterface } from "node:readline";
|
|
@@ -719,7 +719,7 @@ function canAutoSelectLocal(options) {
|
|
|
719
719
|
if (/^(hf:|https?:)/i.test(modelPath)) return false;
|
|
720
720
|
const resolved = resolveUserPath(modelPath);
|
|
721
721
|
try {
|
|
722
|
-
return
|
|
722
|
+
return syncFs.statSync(resolved).isFile();
|
|
723
723
|
} catch {
|
|
724
724
|
return false;
|
|
725
725
|
}
|
|
@@ -2243,7 +2243,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2243
2243
|
]);
|
|
2244
2244
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
2245
2245
|
for (const entry of additionalPaths) try {
|
|
2246
|
-
const stat =
|
|
2246
|
+
const stat = syncFs.lstatSync(entry);
|
|
2247
2247
|
if (stat.isSymbolicLink()) continue;
|
|
2248
2248
|
if (stat.isDirectory()) {
|
|
2249
2249
|
watchPaths.add(path.join(entry, "**", "*.md"));
|