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
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { f as resolveSessionAgentId, i as resolveAgentConfig } from "./run-with-concurrency-
|
|
2
|
-
import { a as resolveGatewayPort, d as resolveRequiredHomeDir, n as STATE_DIR } from "./paths-
|
|
3
|
-
import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { B as resolveAgentIdFromSessionKey, K as normalizeOptionalAccountId, N as buildAgentMainSessionKey, R as normalizeAgentId, T as resolvePathViaExistingAncestorSync, _ as runExec, a as DEFAULT_IDENTITY_FILENAME, b as openBoundaryFile, c as DEFAULT_USER_FILENAME, i as DEFAULT_HEARTBEAT_FILENAME, j as DEFAULT_AGENT_ID, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME, z as normalizeMainKey } from "./workspace-
|
|
5
|
-
import { E as truncateUtf16Safe, h as normalizeE164, y as resolveUserPath } from "./logger-
|
|
6
|
-
import { Vt as CHANNEL_IDS, W as resolveSecretRefValues, X as loadConfig, Y as createConfigIO, _r as resolveSecretInputRef, cr as isPidAlive, et as writeConfigFile, ft as secretRefKey, ht as parseByteSize, lr as formatCliCommand, mt as parseDurationMs, or as resolveProcessScopedMap, pt as getBlockedNetworkModeReason, sr as getProcessStartTime } from "./model-selection-
|
|
7
|
-
import { c as parseBooleanValue } from "./legacy-names-
|
|
8
|
-
import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug } from "./thinking-
|
|
9
|
-
import { _ as normalizeChatType, r as normalizeChannelId } from "./plugins-
|
|
1
|
+
import { f as resolveSessionAgentId, i as resolveAgentConfig } from "./run-with-concurrency-BFR3ReeF.js";
|
|
2
|
+
import { a as resolveGatewayPort, d as resolveRequiredHomeDir, n as STATE_DIR } from "./paths-DA5srn0U.js";
|
|
3
|
+
import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-6v7sWnAD.js";
|
|
4
|
+
import { B as resolveAgentIdFromSessionKey, K as normalizeOptionalAccountId, N as buildAgentMainSessionKey, R as normalizeAgentId, T as resolvePathViaExistingAncestorSync, _ as runExec, a as DEFAULT_IDENTITY_FILENAME, b as openBoundaryFile, c as DEFAULT_USER_FILENAME, i as DEFAULT_HEARTBEAT_FILENAME, j as DEFAULT_AGENT_ID, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME, z as normalizeMainKey } from "./workspace-kVMIaBrV.js";
|
|
5
|
+
import { E as truncateUtf16Safe, h as normalizeE164, y as resolveUserPath } from "./logger-CnTSBL7T.js";
|
|
6
|
+
import { Vt as CHANNEL_IDS, W as resolveSecretRefValues, X as loadConfig, Y as createConfigIO, _r as resolveSecretInputRef, cr as isPidAlive, et as writeConfigFile, ft as secretRefKey, ht as parseByteSize, lr as formatCliCommand, mt as parseDurationMs, or as resolveProcessScopedMap, pt as getBlockedNetworkModeReason, sr as getProcessStartTime } from "./model-selection-ag9BmVct.js";
|
|
7
|
+
import { c as parseBooleanValue } from "./legacy-names-aGJJuzM_.js";
|
|
8
|
+
import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug } from "./thinking-SdNGqtJE.js";
|
|
9
|
+
import { _ as normalizeChatType, r as normalizeChannelId } from "./plugins-DXkm70nK.js";
|
|
10
10
|
import { t as generateSecureToken } from "./secure-random-CXrBi7Jq.js";
|
|
11
|
-
import { i as getImageMetadata, m as normalizeMessageChannel, n as buildImageResizeSideGrid, p as listDeliverableMessageChannels, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-
|
|
12
|
-
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_EVALUATE_ENABLED, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, I as resolveWritablePathWithinRoot, J as DEFAULT_SQUIDCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_SQUIDCLAW_BROWSER_COLOR, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, W as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveSquidClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchSquidClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopSquidClawChrome, p as snapshotAria, q as DEFAULT_SQUIDCLAW_BROWSER_ENABLED, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-
|
|
13
|
-
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-
|
|
14
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
15
|
-
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-
|
|
16
|
-
import { n as SsrFBlockedError } from "./proxy-env-
|
|
17
|
-
import { i as saveMediaBuffer, n as ensureMediaDir } from "./store-
|
|
11
|
+
import { i as getImageMetadata, m as normalizeMessageChannel, n as buildImageResizeSideGrid, p as listDeliverableMessageChannels, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-CdgypS_g.js";
|
|
12
|
+
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_EVALUATE_ENABLED, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, I as resolveWritablePathWithinRoot, J as DEFAULT_SQUIDCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_SQUIDCLAW_BROWSER_COLOR, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, W as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveSquidClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchSquidClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopSquidClawChrome, p as snapshotAria, q as DEFAULT_SQUIDCLAW_BROWSER_ENABLED, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-CjxCwFA9.js";
|
|
13
|
+
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-CTV78w4q.js";
|
|
14
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-DORgbZ1w.js";
|
|
15
|
+
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-kkRuS2Cs.js";
|
|
16
|
+
import { n as SsrFBlockedError } from "./proxy-env-D75CWSOo.js";
|
|
17
|
+
import { i as saveMediaBuffer, n as ensureMediaDir } from "./store-B89Hj8Ub.js";
|
|
18
18
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-B89VigUN.js";
|
|
19
19
|
import { i as writeTextAtomic, r as writeJsonAtomic } from "./json-files-D7-rxoSr.js";
|
|
20
|
-
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-
|
|
20
|
+
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-DSd911Oe.js";
|
|
21
21
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-uYL2gEou.js";
|
|
22
|
-
import { t as sanitizeContentBlocksImages } from "./tool-images-
|
|
22
|
+
import { t as sanitizeContentBlocksImages } from "./tool-images-8BKrL7Bn.js";
|
|
23
23
|
import fs from "node:fs/promises";
|
|
24
24
|
import os from "node:os";
|
|
25
25
|
import path, { posix } from "node:path";
|
|
26
|
-
import
|
|
26
|
+
import syncFs, { existsSync } from "node:fs";
|
|
27
27
|
import { spawn } from "node:child_process";
|
|
28
28
|
import crypto, { createHash, timingSafeEqual } from "node:crypto";
|
|
29
29
|
import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent";
|
|
@@ -1278,7 +1278,7 @@ function isModuleNotFoundError(err) {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
async function loadPwAiModule(mode) {
|
|
1280
1280
|
try {
|
|
1281
|
-
return await import("./pw-ai-
|
|
1281
|
+
return await import("./pw-ai-BwRP3TWc.js");
|
|
1282
1282
|
} catch (err) {
|
|
1283
1283
|
if (mode === "soft") return null;
|
|
1284
1284
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -3055,11 +3055,11 @@ async function movePathToTrash(targetPath) {
|
|
|
3055
3055
|
return targetPath;
|
|
3056
3056
|
} catch {
|
|
3057
3057
|
const trashDir = path.join(os.homedir(), ".Trash");
|
|
3058
|
-
|
|
3058
|
+
syncFs.mkdirSync(trashDir, { recursive: true });
|
|
3059
3059
|
const base = path.basename(targetPath);
|
|
3060
3060
|
let dest = path.join(trashDir, `${base}-${Date.now()}`);
|
|
3061
|
-
if (
|
|
3062
|
-
|
|
3061
|
+
if (syncFs.existsSync(dest)) dest = path.join(trashDir, `${base}-${Date.now()}-${generateSecureToken(6)}`);
|
|
3062
|
+
syncFs.renameSync(targetPath, dest);
|
|
3063
3063
|
return dest;
|
|
3064
3064
|
}
|
|
3065
3065
|
}
|
|
@@ -3146,7 +3146,7 @@ function createBrowserProfilesService(ctx) {
|
|
|
3146
3146
|
} catch {}
|
|
3147
3147
|
const userDataDir = resolveSquidClawUserDataDir(name);
|
|
3148
3148
|
const profileDir = path.dirname(userDataDir);
|
|
3149
|
-
if (
|
|
3149
|
+
if (syncFs.existsSync(profileDir)) {
|
|
3150
3150
|
await movePathToTrash(profileDir);
|
|
3151
3151
|
deleted = true;
|
|
3152
3152
|
}
|
|
@@ -3644,7 +3644,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
3644
3644
|
//#region src/browser/server-context.reset.ts
|
|
3645
3645
|
async function closePlaywrightBrowserConnection() {
|
|
3646
3646
|
try {
|
|
3647
|
-
await (await import("./pw-ai-
|
|
3647
|
+
await (await import("./pw-ai-BwRP3TWc.js")).closePlaywrightBrowserConnection();
|
|
3648
3648
|
} catch {}
|
|
3649
3649
|
}
|
|
3650
3650
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveSquidClawUserDataDir }) {
|
|
@@ -3662,7 +3662,7 @@ function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, i
|
|
|
3662
3662
|
if (await isHttpReachable(300) && !profileState.running) await closePlaywrightBrowserConnection();
|
|
3663
3663
|
if (profileState.running) await stopRunningBrowser();
|
|
3664
3664
|
await closePlaywrightBrowserConnection();
|
|
3665
|
-
if (!
|
|
3665
|
+
if (!syncFs.existsSync(userDataDir)) return {
|
|
3666
3666
|
moved: false,
|
|
3667
3667
|
from: userDataDir
|
|
3668
3668
|
};
|
|
@@ -4410,7 +4410,7 @@ function releaseAllLocksSync() {
|
|
|
4410
4410
|
if (typeof held.handle.close === "function") held.handle.close().catch(() => {});
|
|
4411
4411
|
} catch {}
|
|
4412
4412
|
try {
|
|
4413
|
-
|
|
4413
|
+
syncFs.rmSync(held.lockPath, { force: true });
|
|
4414
4414
|
} catch {}
|
|
4415
4415
|
HELD_LOCKS.delete(sessionFile);
|
|
4416
4416
|
}
|
|
@@ -6008,7 +6008,7 @@ var SandboxFsBridgeImpl = class {
|
|
|
6008
6008
|
if (guarded.reason !== "path") {
|
|
6009
6009
|
if (!(options.allowedType === "directory" && this.pathIsExistingDirectory(target.hostPath))) throw guarded.error instanceof Error ? guarded.error : /* @__PURE__ */ new Error(`Sandbox boundary checks failed; cannot ${options.action}: ${target.containerPath}`);
|
|
6010
6010
|
}
|
|
6011
|
-
} else
|
|
6011
|
+
} else syncFs.closeSync(guarded.fd);
|
|
6012
6012
|
const canonicalContainerPath = await this.resolveCanonicalContainerPath({
|
|
6013
6013
|
containerPath: target.containerPath,
|
|
6014
6014
|
allowFinalSymlinkForUnlink: options.aliasPolicy?.allowFinalSymlinkForUnlink === true
|
|
@@ -6019,7 +6019,7 @@ var SandboxFsBridgeImpl = class {
|
|
|
6019
6019
|
}
|
|
6020
6020
|
pathIsExistingDirectory(hostPath) {
|
|
6021
6021
|
try {
|
|
6022
|
-
return
|
|
6022
|
+
return syncFs.statSync(hostPath).isDirectory();
|
|
6023
6023
|
} catch {
|
|
6024
6024
|
return false;
|
|
6025
6025
|
}
|
|
@@ -6820,14 +6820,14 @@ function resolveSessionTranscriptCandidates(sessionId, storePath, sessionFile, a
|
|
|
6820
6820
|
function canonicalizePathForComparison$1(filePath) {
|
|
6821
6821
|
const resolved = path.resolve(filePath);
|
|
6822
6822
|
try {
|
|
6823
|
-
return
|
|
6823
|
+
return syncFs.realpathSync(resolved);
|
|
6824
6824
|
} catch {
|
|
6825
6825
|
return resolved;
|
|
6826
6826
|
}
|
|
6827
6827
|
}
|
|
6828
6828
|
function archiveFileOnDisk(filePath, reason) {
|
|
6829
6829
|
const archived = `${filePath}.${reason}.${formatSessionArchiveTimestamp()}`;
|
|
6830
|
-
|
|
6830
|
+
syncFs.renameSync(filePath, archived);
|
|
6831
6831
|
return archived;
|
|
6832
6832
|
}
|
|
6833
6833
|
/**
|
|
@@ -6843,7 +6843,7 @@ function archiveSessionTranscripts(opts) {
|
|
|
6843
6843
|
const relative = path.relative(storeDir, candidatePath);
|
|
6844
6844
|
if (!relative || relative.startsWith("..") || path.isAbsolute(relative)) continue;
|
|
6845
6845
|
}
|
|
6846
|
-
if (!
|
|
6846
|
+
if (!syncFs.existsSync(candidatePath)) continue;
|
|
6847
6847
|
try {
|
|
6848
6848
|
archived.push(archiveFileOnDisk(candidatePath, opts.reason));
|
|
6849
6849
|
} catch {}
|
|
@@ -6861,15 +6861,15 @@ async function cleanupArchivedSessionTranscripts(opts) {
|
|
|
6861
6861
|
let removed = 0;
|
|
6862
6862
|
let scanned = 0;
|
|
6863
6863
|
for (const dir of directories) {
|
|
6864
|
-
const entries = await
|
|
6864
|
+
const entries = await syncFs.promises.readdir(dir).catch(() => []);
|
|
6865
6865
|
for (const entry of entries) {
|
|
6866
6866
|
const timestamp = parseSessionArchiveTimestamp(entry, reason);
|
|
6867
6867
|
if (timestamp == null) continue;
|
|
6868
6868
|
scanned += 1;
|
|
6869
6869
|
if (now - timestamp <= opts.olderThanMs) continue;
|
|
6870
6870
|
const fullPath = path.join(dir, entry);
|
|
6871
|
-
if (!(await
|
|
6872
|
-
await
|
|
6871
|
+
if (!(await syncFs.promises.stat(fullPath).catch(() => null))?.isFile()) continue;
|
|
6872
|
+
await syncFs.promises.rm(fullPath).catch(() => void 0);
|
|
6873
6873
|
removed += 1;
|
|
6874
6874
|
}
|
|
6875
6875
|
}
|
|
@@ -6999,7 +6999,7 @@ function isCacheEnabled(ttlMs) {
|
|
|
6999
6999
|
}
|
|
7000
7000
|
function getFileStatSnapshot(filePath) {
|
|
7001
7001
|
try {
|
|
7002
|
-
const stats =
|
|
7002
|
+
const stats = syncFs.statSync(filePath);
|
|
7003
7003
|
return {
|
|
7004
7004
|
mtimeMs: stats.mtimeMs,
|
|
7005
7005
|
sizeBytes: stats.size
|
|
@@ -7018,7 +7018,7 @@ const NOOP_LOGGER = {
|
|
|
7018
7018
|
function canonicalizePathForComparison(filePath) {
|
|
7019
7019
|
const resolved = path.resolve(filePath);
|
|
7020
7020
|
try {
|
|
7021
|
-
return
|
|
7021
|
+
return syncFs.realpathSync(resolved);
|
|
7022
7022
|
} catch {
|
|
7023
7023
|
return resolved;
|
|
7024
7024
|
}
|
|
@@ -7076,12 +7076,12 @@ function resolveReferencedSessionTranscriptPaths(params) {
|
|
|
7076
7076
|
return referenced;
|
|
7077
7077
|
}
|
|
7078
7078
|
async function readSessionsDirFiles(sessionsDir) {
|
|
7079
|
-
const dirEntries = await
|
|
7079
|
+
const dirEntries = await syncFs.promises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
|
|
7080
7080
|
const files = [];
|
|
7081
7081
|
for (const dirent of dirEntries) {
|
|
7082
7082
|
if (!dirent.isFile()) continue;
|
|
7083
7083
|
const filePath = path.join(sessionsDir, dirent.name);
|
|
7084
|
-
const stat = await
|
|
7084
|
+
const stat = await syncFs.promises.stat(filePath).catch(() => null);
|
|
7085
7085
|
if (!stat?.isFile()) continue;
|
|
7086
7086
|
files.push({
|
|
7087
7087
|
path: filePath,
|
|
@@ -7094,9 +7094,9 @@ async function readSessionsDirFiles(sessionsDir) {
|
|
|
7094
7094
|
return files;
|
|
7095
7095
|
}
|
|
7096
7096
|
async function removeFileIfExists(filePath) {
|
|
7097
|
-
const stat = await
|
|
7097
|
+
const stat = await syncFs.promises.stat(filePath).catch(() => null);
|
|
7098
7098
|
if (!stat?.isFile()) return 0;
|
|
7099
|
-
await
|
|
7099
|
+
await syncFs.promises.rm(filePath, { force: true }).catch(() => void 0);
|
|
7100
7100
|
return stat.size;
|
|
7101
7101
|
}
|
|
7102
7102
|
async function removeFileForBudget(params) {
|
|
@@ -7455,7 +7455,7 @@ function capEntryCount(store, overrideMax, opts = {}) {
|
|
|
7455
7455
|
}
|
|
7456
7456
|
async function getSessionFileSize(storePath) {
|
|
7457
7457
|
try {
|
|
7458
|
-
return (await
|
|
7458
|
+
return (await syncFs.promises.stat(storePath)).size;
|
|
7459
7459
|
} catch {
|
|
7460
7460
|
return null;
|
|
7461
7461
|
}
|
|
@@ -7472,7 +7472,7 @@ async function rotateSessionFile(storePath, overrideBytes) {
|
|
|
7472
7472
|
if (fileSize <= maxBytes) return false;
|
|
7473
7473
|
const backupPath = `${storePath}.bak.${Date.now()}`;
|
|
7474
7474
|
try {
|
|
7475
|
-
await
|
|
7475
|
+
await syncFs.promises.rename(storePath, backupPath);
|
|
7476
7476
|
log$2.info("rotated session store file", {
|
|
7477
7477
|
backupPath: path.basename(backupPath),
|
|
7478
7478
|
sizeBytes: fileSize
|
|
@@ -7483,11 +7483,11 @@ async function rotateSessionFile(storePath, overrideBytes) {
|
|
|
7483
7483
|
try {
|
|
7484
7484
|
const dir = path.dirname(storePath);
|
|
7485
7485
|
const baseName = path.basename(storePath);
|
|
7486
|
-
const backups = (await
|
|
7486
|
+
const backups = (await syncFs.promises.readdir(dir)).filter((f) => f.startsWith(`${baseName}.bak.`)).toSorted().toReversed();
|
|
7487
7487
|
const maxBackups = 3;
|
|
7488
7488
|
if (backups.length > maxBackups) {
|
|
7489
7489
|
const toDelete = backups.slice(maxBackups);
|
|
7490
|
-
for (const old of toDelete) await
|
|
7490
|
+
for (const old of toDelete) await syncFs.promises.unlink(path.join(dir, old)).catch(() => void 0);
|
|
7491
7491
|
log$2.info("cleaned up old session store backups", { deleted: toDelete.length });
|
|
7492
7492
|
}
|
|
7493
7493
|
} catch {}
|
|
@@ -7610,7 +7610,7 @@ function loadSessionStore(storePath, opts = {}) {
|
|
|
7610
7610
|
const maxReadAttempts = process.platform === "win32" ? 3 : 1;
|
|
7611
7611
|
const retryBuf = maxReadAttempts > 1 ? new Int32Array(new SharedArrayBuffer(4)) : void 0;
|
|
7612
7612
|
for (let attempt = 0; attempt < maxReadAttempts; attempt++) try {
|
|
7613
|
-
const raw =
|
|
7613
|
+
const raw = syncFs.readFileSync(storePath, "utf-8");
|
|
7614
7614
|
if (raw.length === 0 && attempt < maxReadAttempts - 1) {
|
|
7615
7615
|
Atomics.wait(retryBuf, 0, 0, 50);
|
|
7616
7616
|
continue;
|
|
@@ -7764,7 +7764,7 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
|
|
|
7764
7764
|
});
|
|
7765
7765
|
}
|
|
7766
7766
|
}
|
|
7767
|
-
await
|
|
7767
|
+
await syncFs.promises.mkdir(path.dirname(storePath), { recursive: true });
|
|
7768
7768
|
const json = JSON.stringify(store, null, 2);
|
|
7769
7769
|
if (getSerializedSessionStore(storePath) === json) {
|
|
7770
7770
|
updateSessionStoreWriteCaches({
|
|
@@ -8101,8 +8101,8 @@ function resolveMirroredTranscriptText(params) {
|
|
|
8101
8101
|
return trimmed ? trimmed : null;
|
|
8102
8102
|
}
|
|
8103
8103
|
async function ensureSessionHeader(params) {
|
|
8104
|
-
if (
|
|
8105
|
-
await
|
|
8104
|
+
if (syncFs.existsSync(params.sessionFile)) return;
|
|
8105
|
+
await syncFs.promises.mkdir(path.dirname(params.sessionFile), { recursive: true });
|
|
8106
8106
|
const header = {
|
|
8107
8107
|
type: "session",
|
|
8108
8108
|
version: CURRENT_SESSION_VERSION,
|
|
@@ -8110,7 +8110,7 @@ async function ensureSessionHeader(params) {
|
|
|
8110
8110
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
8111
8111
|
cwd: process.cwd()
|
|
8112
8112
|
};
|
|
8113
|
-
await
|
|
8113
|
+
await syncFs.promises.writeFile(params.sessionFile, `${JSON.stringify(header)}\n`, {
|
|
8114
8114
|
encoding: "utf-8",
|
|
8115
8115
|
mode: 384
|
|
8116
8116
|
});
|
|
@@ -8345,13 +8345,13 @@ async function ensureSandboxWorkspace(workspaceDir, seedFrom, skipBootstrap) {
|
|
|
8345
8345
|
});
|
|
8346
8346
|
if (!opened.ok) continue;
|
|
8347
8347
|
try {
|
|
8348
|
-
const content =
|
|
8348
|
+
const content = syncFs.readFileSync(opened.fd, "utf-8");
|
|
8349
8349
|
await fs.writeFile(dest, content, {
|
|
8350
8350
|
encoding: "utf-8",
|
|
8351
8351
|
flag: "wx"
|
|
8352
8352
|
});
|
|
8353
8353
|
} finally {
|
|
8354
|
-
|
|
8354
|
+
syncFs.closeSync(opened.fd);
|
|
8355
8355
|
}
|
|
8356
8356
|
} catch {}
|
|
8357
8357
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as normalizeProviderId, nr as ensureAuthProfileStore } from "./model-selection-
|
|
2
|
+
import { c as normalizeProviderId, nr as ensureAuthProfileStore } from "./model-selection-ag9BmVct.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import syncFs from "node:fs";
|
|
5
5
|
import * as PiCodingAgent from "@mariozechner/pi-coding-agent";
|
|
6
6
|
|
|
7
7
|
//#region src/agents/pi-auth-credentials.ts
|
|
@@ -70,10 +70,10 @@ function isRecord(value) {
|
|
|
70
70
|
}
|
|
71
71
|
function scrubLegacyStaticAuthJsonEntries(pathname) {
|
|
72
72
|
if (process.env.SQUIDCLAW_AUTH_STORE_READONLY === "1") return;
|
|
73
|
-
if (!
|
|
73
|
+
if (!syncFs.existsSync(pathname)) return;
|
|
74
74
|
let parsed;
|
|
75
75
|
try {
|
|
76
|
-
parsed = JSON.parse(
|
|
76
|
+
parsed = JSON.parse(syncFs.readFileSync(pathname, "utf8"));
|
|
77
77
|
} catch {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
@@ -87,11 +87,11 @@ function scrubLegacyStaticAuthJsonEntries(pathname) {
|
|
|
87
87
|
}
|
|
88
88
|
if (!changed) return;
|
|
89
89
|
if (Object.keys(parsed).length === 0) {
|
|
90
|
-
|
|
90
|
+
syncFs.rmSync(pathname, { force: true });
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
syncFs.writeFileSync(pathname, `${JSON.stringify(parsed, null, 2)}\n`, "utf8");
|
|
94
|
+
syncFs.chmodSync(pathname, 384);
|
|
95
95
|
}
|
|
96
96
|
function createAuthStorage(AuthStorageLike, path, creds) {
|
|
97
97
|
const withInMemory = AuthStorageLike;
|
|
@@ -0,0 +1,11 @@
|
|
|
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 { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DAzuqPoG.js";
|
|
10
|
+
|
|
11
|
+
export { discoverAuthStorage, discoverModels };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./run-with-concurrency-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import { D as isPlainObject } from "./logger-
|
|
6
|
-
import "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
8
|
-
import "./legacy-names-
|
|
9
|
-
import { p as getDiagnosticSessionState, s as logToolLoopAction } from "./diagnostic-
|
|
1
|
+
import "./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 { D as isPlainObject } from "./logger-CnTSBL7T.js";
|
|
6
|
+
import "./model-selection-ag9BmVct.js";
|
|
7
|
+
import "./github-copilot-token-B5cPlwaz.js";
|
|
8
|
+
import "./legacy-names-aGJJuzM_.js";
|
|
9
|
+
import { p as getDiagnosticSessionState, s as logToolLoopAction } from "./diagnostic-ySwZga6c.js";
|
|
10
10
|
import { createHash } from "node:crypto";
|
|
11
11
|
|
|
12
12
|
//#region src/agents/tool-loop-detection.ts
|
|
@@ -3,7 +3,7 @@ import { t as createSubsystemLogger } from "./subsystem-Bw5n50gj.js";
|
|
|
3
3
|
import { z as loadConfig } from "./auth-profiles-CvmKVnsR.js";
|
|
4
4
|
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-Cq4vDGrK.js";
|
|
5
5
|
import { u as getActivePluginRegistry } from "./registry-BXcl3IkC.js";
|
|
6
|
-
import { b as loadSquidClawPlugins } from "./subagent-registry-
|
|
6
|
+
import { b as loadSquidClawPlugins } from "./subagent-registry-DGrfQVN3.js";
|
|
7
7
|
|
|
8
8
|
//#region src/cli/plugin-registry.ts
|
|
9
9
|
var plugin_registry_exports = /* @__PURE__ */ __exportAll({ ensurePluginRegistryLoaded: () => ensurePluginRegistryLoaded });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { ft as loadSquidClawPlugins } from "./reply-
|
|
2
|
+
import { ft as loadSquidClawPlugins } from "./reply-CB1p166g.js";
|
|
3
3
|
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-C1XMay0T.js";
|
|
4
4
|
import { t as createSubsystemLogger } from "./subsystem-DC87CPVS.js";
|
|
5
5
|
import { $t as loadConfig } from "./model-selection-BwOXMaZh.js";
|
|
@@ -5,7 +5,7 @@ import fs, { constants } from "node:fs";
|
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import chalk, { Chalk } from "chalk";
|
|
7
7
|
import { Logger } from "tslog";
|
|
8
|
-
import
|
|
8
|
+
import json5 from "json5";
|
|
9
9
|
import util, { promisify } from "node:util";
|
|
10
10
|
import fs$1 from "node:fs/promises";
|
|
11
11
|
import process$1 from "node:process";
|
|
@@ -400,7 +400,7 @@ function readLoggingConfig() {
|
|
|
400
400
|
try {
|
|
401
401
|
if (!fs.existsSync(configPath)) return;
|
|
402
402
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
403
|
-
const logging =
|
|
403
|
+
const logging = json5.parse(raw)?.logging;
|
|
404
404
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
405
405
|
return logging;
|
|
406
406
|
} catch {
|
|
@@ -4481,7 +4481,7 @@ function resolveSquidClawManifestBlock(params) {
|
|
|
4481
4481
|
const raw = getFrontmatterString(params.frontmatter, params.key ?? "metadata");
|
|
4482
4482
|
if (!raw) return;
|
|
4483
4483
|
try {
|
|
4484
|
-
const parsed =
|
|
4484
|
+
const parsed = json5.parse(raw);
|
|
4485
4485
|
if (!parsed || typeof parsed !== "object") return;
|
|
4486
4486
|
const manifestKeys = [MANIFEST_KEY, ...LEGACY_MANIFEST_KEYS];
|
|
4487
4487
|
for (const key of manifestKeys) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { l as resolveDefaultAgentId } from "./run-with-concurrency-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { G as normalizeAccountId, K as normalizeOptionalAccountId, R as normalizeAgentId, W as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
4
|
-
import { h as normalizeE164 } from "./logger-
|
|
5
|
-
import { Gt as normalizeAnyChannelId, Ht as CHAT_CHANNEL_ORDER, Xt as getActivePluginRegistryVersion, Zn as isTruthyEnvValue, Zt as requireActivePluginRegistry, gr as normalizeResolvedSecretInputString, qt as normalizeChatChannelId } from "./model-selection-
|
|
6
|
-
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-
|
|
7
|
-
import
|
|
1
|
+
import { l as resolveDefaultAgentId } from "./run-with-concurrency-BFR3ReeF.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-6v7sWnAD.js";
|
|
3
|
+
import { G as normalizeAccountId, K as normalizeOptionalAccountId, R as normalizeAgentId, W as DEFAULT_ACCOUNT_ID } from "./workspace-kVMIaBrV.js";
|
|
4
|
+
import { h as normalizeE164 } from "./logger-CnTSBL7T.js";
|
|
5
|
+
import { Gt as normalizeAnyChannelId, Ht as CHAT_CHANNEL_ORDER, Xt as getActivePluginRegistryVersion, Zn as isTruthyEnvValue, Zt as requireActivePluginRegistry, gr as normalizeResolvedSecretInputString, qt as normalizeChatChannelId } from "./model-selection-ag9BmVct.js";
|
|
6
|
+
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-CkF7YwoF.js";
|
|
7
|
+
import syncFs from "node:fs";
|
|
8
8
|
import util from "node:util";
|
|
9
9
|
|
|
10
10
|
//#region src/channels/plugins/account-action-gate.ts
|
|
@@ -317,7 +317,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
317
317
|
const accountCfg = resolveAccountCfg(accountId !== DEFAULT_ACCOUNT_ID ? accountId : DEFAULT_ACCOUNT_ID);
|
|
318
318
|
const accountTokenFile = accountCfg?.tokenFile?.trim();
|
|
319
319
|
if (accountTokenFile) {
|
|
320
|
-
if (!
|
|
320
|
+
if (!syncFs.existsSync(accountTokenFile)) {
|
|
321
321
|
opts.logMissingFile?.(`channels.telegram.accounts.${accountId}.tokenFile not found: ${accountTokenFile}`);
|
|
322
322
|
return {
|
|
323
323
|
token: "",
|
|
@@ -325,7 +325,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
327
|
try {
|
|
328
|
-
const token =
|
|
328
|
+
const token = syncFs.readFileSync(accountTokenFile, "utf-8").trim();
|
|
329
329
|
if (token) return {
|
|
330
330
|
token,
|
|
331
331
|
source: "tokenFile"
|
|
@@ -353,7 +353,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
353
353
|
const allowEnv = accountId === DEFAULT_ACCOUNT_ID;
|
|
354
354
|
const tokenFile = telegramCfg?.tokenFile?.trim();
|
|
355
355
|
if (tokenFile) {
|
|
356
|
-
if (!
|
|
356
|
+
if (!syncFs.existsSync(tokenFile)) {
|
|
357
357
|
opts.logMissingFile?.(`channels.telegram.tokenFile not found: ${tokenFile}`);
|
|
358
358
|
return {
|
|
359
359
|
token: "",
|
|
@@ -361,7 +361,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
363
|
try {
|
|
364
|
-
const token =
|
|
364
|
+
const token = syncFs.readFileSync(tokenFile, "utf-8").trim();
|
|
365
365
|
if (token) return {
|
|
366
366
|
token,
|
|
367
367
|
source: "tokenFile"
|
|
@@ -2,7 +2,7 @@ import { g as resolveStateDir } from "./paths-mdt1HFK2.js";
|
|
|
2
2
|
import { p as theme } from "./globals-xfUIfxbE.js";
|
|
3
3
|
import { S as shortenHomePath, g as resolveConfigDir, x as shortenHomeInString, y as resolveUserPath } from "./utils-DMGXr25O.js";
|
|
4
4
|
import "./thinking-44rmAw5o.js";
|
|
5
|
-
import "./reply-
|
|
5
|
+
import "./reply-CB1p166g.js";
|
|
6
6
|
import "./agent-scope-C1XMay0T.js";
|
|
7
7
|
import { d as defaultRuntime } from "./subsystem-DC87CPVS.js";
|
|
8
8
|
import "./squidclaw-root-CnE19yKj.js";
|
|
@@ -97,7 +97,7 @@ import "./workspace-dirs-B2dNahfe.js";
|
|
|
97
97
|
import "./runtime-config-collectors-CuQEWwhf.js";
|
|
98
98
|
import "./command-secret-targets-HkRLTNEi.js";
|
|
99
99
|
import "./session-cost-usage-B4DbYmaL.js";
|
|
100
|
-
import "./onboard-helpers-
|
|
100
|
+
import "./onboard-helpers-Bvpkyuwm.js";
|
|
101
101
|
import "./prompt-style-BoYH_ODs.js";
|
|
102
102
|
import "./pairing-labels-Bh4U5HqY.js";
|
|
103
103
|
import "./memory-cli-DWJBdHsC.js";
|
|
@@ -115,7 +115,7 @@ import "./npm-pack-install-s-mP9K0z.js";
|
|
|
115
115
|
import "./skill-scanner-rdr9cQew.js";
|
|
116
116
|
import { a as installPluginFromPath, i as installPluginFromNpmSpec, n as recordPluginInstall, o as resolvePluginInstallDir, r as PLUGIN_INSTALL_ERROR_CODE } from "./installs-CyjlehlR.js";
|
|
117
117
|
import { t as renderTable } from "./table-BPiDGg8F.js";
|
|
118
|
-
import { i as buildPluginStatusReport, n as resolvePinnedNpmInstallRecordForCli, r as looksLikeLocalInstallSpec } from "./npm-resolution-
|
|
118
|
+
import { i as buildPluginStatusReport, n as resolvePinnedNpmInstallRecordForCli, r as looksLikeLocalInstallSpec } from "./npm-resolution-DWpNPsBF.js";
|
|
119
119
|
import { n as updateNpmInstalledPlugins, r as findBundledPluginSource } from "./update-blK9j2ag.js";
|
|
120
120
|
import fs from "node:fs";
|
|
121
121
|
import os from "node:os";
|
|
@@ -30,7 +30,7 @@ import "./logging-CcxUDNcI.js";
|
|
|
30
30
|
import "./accounts-KzgPbLHP.js";
|
|
31
31
|
import "./send-Dp0cFCnc.js";
|
|
32
32
|
import "./send-DomUTnc_.js";
|
|
33
|
-
import "./subagent-registry-
|
|
33
|
+
import "./subagent-registry-DGrfQVN3.js";
|
|
34
34
|
import "./paths-Dn_rzeZN.js";
|
|
35
35
|
import "./chat-envelope-thy05gXR.js";
|
|
36
36
|
import "./client-cfjtRboM.js";
|
|
@@ -100,7 +100,7 @@ import "./pi-tools.policy-COmj0F9F.js";
|
|
|
100
100
|
import "./proxy-Dgwoliym.js";
|
|
101
101
|
import "./runtime-config-collectors-nl4J0eGm.js";
|
|
102
102
|
import "./command-secret-targets-DjorlW8u.js";
|
|
103
|
-
import "./onboard-helpers-
|
|
103
|
+
import "./onboard-helpers-ByttGRIZ.js";
|
|
104
104
|
import "./prompt-style-D_i_ws0g.js";
|
|
105
105
|
import "./pairing-labels-IQFEI8BA.js";
|
|
106
106
|
import "./memory-cli-BpGa2Md3.js";
|
|
@@ -116,7 +116,7 @@ import "./npm-pack-install-B887us7R.js";
|
|
|
116
116
|
import "./skill-scanner-CvS725eQ.js";
|
|
117
117
|
import { a as installPluginFromPath, i as installPluginFromNpmSpec, n as recordPluginInstall, o as resolvePluginInstallDir, r as PLUGIN_INSTALL_ERROR_CODE } from "./installs-BiQDtPF0.js";
|
|
118
118
|
import { t as renderTable } from "./table-DbDCX_6t.js";
|
|
119
|
-
import { i as buildPluginStatusReport, n as resolvePinnedNpmInstallRecordForCli, r as looksLikeLocalInstallSpec } from "./npm-resolution-
|
|
119
|
+
import { i as buildPluginStatusReport, n as resolvePinnedNpmInstallRecordForCli, r as looksLikeLocalInstallSpec } from "./npm-resolution-Djbuzx6o.js";
|
|
120
120
|
import { n as updateNpmInstalledPlugins, r as findBundledPluginSource } from "./update-1JhjCqjy.js";
|
|
121
121
|
import os from "node:os";
|
|
122
122
|
import path from "node:path";
|
|
@@ -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";
|
|
@@ -112,13 +112,13 @@ import { t as formatDocsLink } from "./links-Dye6HsRG.js";
|
|
|
112
112
|
import "./cli-utils-BKqG4ZT-.js";
|
|
113
113
|
import "./help-format-CpR5cEGe.js";
|
|
114
114
|
import "./progress-DuhDspl6.js";
|
|
115
|
-
import "./plugin-registry-
|
|
116
|
-
import { n as resolveCliChannelOptions } from "./channel-options-
|
|
117
|
-
import { t as getSubCliCommandsWithSubcommands } from "./register.subclis-
|
|
118
|
-
import { a as registerProgramCommands, r as getCoreCliCommandsWithSubcommands } from "./command-registry-
|
|
115
|
+
import "./plugin-registry-CLEhrKYA.js";
|
|
116
|
+
import { n as resolveCliChannelOptions } from "./channel-options-BKsCYdHu.js";
|
|
117
|
+
import { t as getSubCliCommandsWithSubcommands } from "./register.subclis-BIbL6FBV.js";
|
|
118
|
+
import { a as registerProgramCommands, r as getCoreCliCommandsWithSubcommands } from "./command-registry-CxiSVXru.js";
|
|
119
119
|
import { r as setProgramContext } from "./program-context-DKVuITe2.js";
|
|
120
120
|
import { t as forceFreePort } from "./ports-Be82TlEg.js";
|
|
121
|
-
import { n as formatCliBannerLine, r as hasEmittedCliBanner, t as emitCliBanner } from "./banner-
|
|
121
|
+
import { n as formatCliBannerLine, r as hasEmittedCliBanner, t as emitCliBanner } from "./banner-BxibaqUz.js";
|
|
122
122
|
import { Command, InvalidArgumentError } from "commander";
|
|
123
123
|
|
|
124
124
|
//#region src/cli/program/context.ts
|
|
@@ -251,7 +251,7 @@ function loadConfigGuardModule() {
|
|
|
251
251
|
return configGuardModulePromise;
|
|
252
252
|
}
|
|
253
253
|
function loadPluginRegistryModule() {
|
|
254
|
-
pluginRegistryModulePromise ??= import("./plugin-registry-
|
|
254
|
+
pluginRegistryModulePromise ??= import("./plugin-registry-CLEhrKYA.js").then((n) => n.n);
|
|
255
255
|
return pluginRegistryModulePromise;
|
|
256
256
|
}
|
|
257
257
|
function getRootCommand(command) {
|