squidclaw 3.3.2 → 3.3.6
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/build-info.json +3 -3
- package/dist/canvas-host/a2ui/a2ui.bundle.js +1 -1
- package/dist/{command-registry-DU59Zys9.js → command-registry-D-1yrjO5.js} +4 -4
- package/dist/{completion-cli-B58zTxLB.js → completion-cli-DDG6rQHB.js} +2 -2
- package/dist/{completion-cli-BLY0f3DS.js → completion-cli-YquOT8ke.js} +1 -1
- package/dist/control-ui/assets/{index-BqxuPQOl.js → index-Bb5MB8jH.js} +358 -358
- package/dist/control-ui/assets/index-Bb5MB8jH.js.map +1 -0
- package/dist/control-ui/index.html +1 -1
- package/dist/daemon-cli.js +6 -6
- package/dist/{doctor-completion-DRCOGhwS.js → doctor-completion-B63lREru.js} +1 -1
- package/dist/{doctor-completion-kjDYgxZk.js → doctor-completion-CoKUBmAB.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{gateway-cli-DvWNtJxy.js → gateway-cli-BP1USKKw.js} +1 -1
- package/dist/{gateway-cli-lvhI_G2p.js → gateway-cli-CIhENRqY.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{onboard-BP7rTtCO.js → onboard-BYwFqDe-.js} +1 -1
- package/dist/{onboard-BwVAkxW0.js → onboard-gmbrf0mc.js} +1 -1
- package/dist/{onboarding-LbGi6oDz.js → onboarding-C7eyvBep.js} +1 -1
- package/dist/{onboarding-D_ImwR9D.js → onboarding-OrcdwciM.js} +1 -1
- package/dist/{onboarding.finalize-ClTc_ghC.js → onboarding.finalize-Bf3EExjS.js} +56 -13
- package/dist/{onboarding.finalize-CWcaxeIO.js → onboarding.finalize-DZBXbwYe.js} +55 -12
- package/dist/plugin-sdk/accounts-B9RVtSwn.js +35 -0
- package/dist/plugin-sdk/{accounts-BhCAa-05.js → accounts-BLOLIF6Q.js} +2 -2
- package/dist/plugin-sdk/{accounts-DKXGC2Vu.js → accounts-BvzvDHNx.js} +3 -3
- package/dist/plugin-sdk/{accounts-BChIl5as.js → accounts-ByCKM_Y3.js} +2 -2
- package/dist/plugin-sdk/accounts-Cnpikxly.js +288 -0
- package/dist/plugin-sdk/accounts-ZkT4ovw_.js +46 -0
- package/dist/plugin-sdk/{active-listener-TTbK9PGk.js → active-listener-CKD9GljM.js} +2 -2
- package/dist/plugin-sdk/active-listener-Ccj2fSCa.js +50 -0
- package/dist/plugin-sdk/{api-key-rotation-BqhYVBBK.js → api-key-rotation--boE2y8I.js} +2 -2
- package/dist/plugin-sdk/api-key-rotation-0Xm0okk5.js +181 -0
- package/dist/plugin-sdk/{audio-preflight-DAf0ptAM.js → audio-preflight-B_pcDw8d.js} +26 -26
- package/dist/plugin-sdk/audio-preflight-DQZ2WSG4.js +69 -0
- package/dist/plugin-sdk/audio-transcription-runner-C4aP5aYG.js +2176 -0
- package/dist/plugin-sdk/{audio-transcription-runner-CBASOlbc.js → audio-transcription-runner-u6tijzUS.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-Xl20kCBe.js → audit-membership-runtime-DHQDvH4u.js} +2 -2
- package/dist/plugin-sdk/audit-membership-runtime-DPTwvWpd.js +58 -0
- package/dist/plugin-sdk/{channel-activity-95JVLzNY.js → channel-activity-BVUdxSNs.js} +3 -3
- package/dist/plugin-sdk/channel-activity-DAX5uVAX.js +94 -0
- package/dist/plugin-sdk/{channel-web-DCkC6Ydu.js → channel-web-BX2s-JXF.js} +18 -18
- package/dist/plugin-sdk/channel-web-CgS5ek7s.js +2256 -0
- package/dist/plugin-sdk/{chrome-BlXpNOQu.js → chrome-6EkqVcyR.js} +6 -6
- package/dist/plugin-sdk/chrome-BHzykCQ9.js +2415 -0
- package/dist/plugin-sdk/{commands-registry-C9y_w3eW.js → commands-registry-CDHo6SSs.js} +4 -4
- package/dist/plugin-sdk/commands-registry-CRVdcP1W.js +1125 -0
- package/dist/plugin-sdk/{common-CEwMUbms.js → common-Emz6EPQM.js} +2 -2
- package/dist/plugin-sdk/compat.js +50 -50
- package/dist/plugin-sdk/{config-sMifxgre.js → config-CMjn_DSB.js} +7 -7
- package/dist/plugin-sdk/config-DMdJidZc.js +17912 -0
- package/dist/plugin-sdk/{deliver-2zt3NeFA.js → deliver-Cz6GluMN.js} +10 -10
- package/dist/plugin-sdk/deliver-DMb_cOF7.js +1694 -0
- package/dist/plugin-sdk/deliver-runtime-CjCJkoFM.js +32 -0
- package/dist/plugin-sdk/deliver-runtime-D0qfBG05.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-9igTHMx2.js +23 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-C4AEwjGl.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-BFpdfthT.js +22 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-DCdEe-_E.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-BNO6SPmR.js +21 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-BqB_Ilh-.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-BChVBURL.js +19 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-o7IR7Ynh.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-7Xdhax8B.js +24 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-DyCorUw2.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-D6gMTFom.js +57 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-DoOYrpKa.js +57 -0
- package/dist/plugin-sdk/diagnostic-BidLPPBm.js +319 -0
- package/dist/plugin-sdk/{diagnostic-CU_mni6m.js → diagnostic-DhO2TqL_.js} +2 -2
- package/dist/plugin-sdk/{errors-CgRPdp3o.js → errors-9oVz7reJ.js} +1 -1
- package/dist/plugin-sdk/errors-s9jrwzSl.js +54 -0
- package/dist/plugin-sdk/fetch-guard-CEd4HUIR.js +156 -0
- package/dist/plugin-sdk/{fetch-guard-BxMLJbqt.js → fetch-guard-CGQ35-A_.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-5aQcM_qM.js → fs-safe-B26UxJny.js} +3 -3
- package/dist/plugin-sdk/fs-safe-CZ2NvCjz.js +352 -0
- package/dist/plugin-sdk/image-BKaDODzM.js +2310 -0
- package/dist/plugin-sdk/{image-BJXV9IMV.js → image-DPgEp54d.js} +6 -6
- package/dist/plugin-sdk/{image-ops-DovJMvdf.js → image-ops-CbKrfi-N.js} +2 -2
- package/dist/plugin-sdk/image-ops-D0YKZqPy.js +584 -0
- package/dist/plugin-sdk/image-runtime-DN6PHT8G.js +25 -0
- package/dist/plugin-sdk/image-runtime-DxJgD-YS.js +25 -0
- package/dist/plugin-sdk/{ir-DE2ewdq5.js → ir-4JdLS2Hz.js} +7 -7
- package/dist/plugin-sdk/ir-D9fxXkgD.js +1296 -0
- package/dist/plugin-sdk/local-roots-HL9eBLUg.js +186 -0
- package/dist/plugin-sdk/{local-roots-CIwDgpY2.js → local-roots-T6lXDGzr.js} +4 -4
- package/dist/plugin-sdk/{logger-DIb2cGHp.js → logger-Bg4vIUJn.js} +2 -2
- package/dist/plugin-sdk/logger-D0ST0Irn.js +1163 -0
- package/dist/plugin-sdk/{login-CLIcsAVy.js → login-BNCjks0C.js} +4 -4
- package/dist/plugin-sdk/login-CUdm5Ct-.js +57 -0
- package/dist/plugin-sdk/login-qr-34QcLRte.js +320 -0
- package/dist/plugin-sdk/{login-qr-BlxjA0vQ.js → login-qr-CTjNgxhl.js} +5 -5
- package/dist/plugin-sdk/manager-DZ9Hn0Fe.js +3917 -0
- package/dist/plugin-sdk/{manager-CpAGPHeX.js → manager-D__CoDGL.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-B9aBGLrF.js +15 -0
- package/dist/plugin-sdk/manager-runtime-DMEBebYo.js +15 -0
- package/dist/plugin-sdk/mattermost.js +3 -3
- package/dist/plugin-sdk/{outbound-DDpRevO_.js → outbound-DTQ-9Cjw.js} +5 -5
- package/dist/plugin-sdk/outbound-DTndjh8O.js +212 -0
- package/dist/plugin-sdk/outbound-attachment-BNMQOIcP.js +19 -0
- package/dist/plugin-sdk/{outbound-attachment-CVavq5II.js → outbound-attachment-CdHX9v0q.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-BfpU4lAT.js → path-alias-guards-DSCFtpsd.js} +1 -1
- package/dist/plugin-sdk/path-alias-guards-DUn7Q6iW.js +43 -0
- package/dist/plugin-sdk/paths-6WIn8_si.js +166 -0
- package/dist/plugin-sdk/{paths-CK3lTJYw.js → paths-BQHqKGA8.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-Cb_h9zSJ.js → pi-embedded-helpers-B7nmCbf7.js} +16 -16
- package/dist/plugin-sdk/pi-embedded-helpers-BMA7JWLb.js +9627 -0
- package/dist/plugin-sdk/pi-model-discovery-B6gpdlWb.js +134 -0
- package/dist/plugin-sdk/{pi-model-discovery-B3B3R7L9.js → pi-model-discovery-DyDwYiK3.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-CN6ZaL0W.js +8 -0
- package/dist/plugin-sdk/pi-model-discovery-runtime-Q6toTOMZ.js +8 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CP4hHLJk.js +354 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-DivpBAM0.js → pi-tools.before-tool-call.runtime-D_f6TDo7.js} +4 -4
- package/dist/plugin-sdk/{plugins-BlTrm4bw.js → plugins-BSPvol4w.js} +4 -4
- package/dist/plugin-sdk/plugins-CWIlxjXW.js +864 -0
- package/dist/plugin-sdk/{proxy-env-Cdh-OQYk.js → proxy-env-D-iVYTBk.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-Dt5BedH8.js → proxy-fetch-Cf3IUSDw.js} +1 -1
- package/dist/plugin-sdk/proxy-fetch-tPMv_1eB.js +38 -0
- package/dist/plugin-sdk/{pw-ai-DEDRpMlY.js → pw-ai-BO445UDA.js} +9 -9
- package/dist/plugin-sdk/pw-ai-BSMHQrVM.js +1938 -0
- package/dist/plugin-sdk/{qmd-manager-Ct9rtJjd.js → qmd-manager-81ezWnIN.js} +7 -7
- package/dist/plugin-sdk/qmd-manager-DnMoZBC7.js +1448 -0
- package/dist/plugin-sdk/{query-expansion-OdwWuN1S.js → query-expansion-BCOK4OTO.js} +5 -5
- package/dist/plugin-sdk/query-expansion-DxTmIU4K.js +1011 -0
- package/dist/plugin-sdk/{redact-9WsNyb7S.js → redact-Bns9Du30.js} +1 -1
- package/dist/plugin-sdk/redact-DfACyt0X.js +319 -0
- package/dist/plugin-sdk/reply-C-WT0k-v.js +98763 -0
- package/dist/plugin-sdk/{reply-wZhosbPd.js → reply-DJ3rbbnv.js} +73 -73
- package/dist/plugin-sdk/resolve-outbound-target-C6GLRc_O.js +40 -0
- package/dist/plugin-sdk/{resolve-outbound-target-BJmCIkW_.js → resolve-outbound-target-DtQd8TzZ.js} +2 -2
- package/dist/plugin-sdk/run-with-concurrency-Baa7LYZD.js +2023 -0
- package/dist/plugin-sdk/{run-with-concurrency-EUEKeAa8.js → run-with-concurrency-CYcPpb5E.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-CUr_hlGk.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-ai8hcGi_.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-ByDLfLF3.js +19 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-BzvoaI1G.js +19 -0
- package/dist/plugin-sdk/send-7do64QqA.js +2587 -0
- package/dist/plugin-sdk/{send-Drs4JqVD.js → send-B9GVkvTk.js} +5 -5
- package/dist/plugin-sdk/{send-BMWyVUhm.js → send-BPEn9L0o.js} +13 -13
- package/dist/plugin-sdk/send-Bjh-MMdN.js +503 -0
- package/dist/plugin-sdk/send-C9jI56cY.js +3135 -0
- package/dist/plugin-sdk/{send-0C4KdD-T.js → send-CGjI0pJn.js} +7 -7
- package/dist/plugin-sdk/send-CTsZjmvQ.js +540 -0
- package/dist/plugin-sdk/{send-oo6mQbab.js → send-CZ6HDwDu.js} +8 -8
- package/dist/plugin-sdk/{send-BGWGV_mz.js → send-D6nUI0S3.js} +6 -6
- package/dist/plugin-sdk/send-DiuYhmpi.js +414 -0
- package/dist/plugin-sdk/{session-CXVARKFK.js → session-Bwjlseuf.js} +3 -3
- package/dist/plugin-sdk/session-CiEv9qvh.js +169 -0
- package/dist/plugin-sdk/signal.js +2 -2
- package/dist/plugin-sdk/{skill-commands-CoqGFLfM.js → skill-commands-BpB2Oe8e.js} +4 -4
- package/dist/plugin-sdk/skill-commands-Cuzs_Puw.js +342 -0
- package/dist/plugin-sdk/{skills-di-5uS9y.js → skills-CaQpr1kx.js} +6 -6
- package/dist/plugin-sdk/skills-RHzhTtJf.js +1428 -0
- package/dist/plugin-sdk/slash-commands.runtime-BH06o3dH.js +13 -0
- package/dist/plugin-sdk/slash-commands.runtime-Dqev3QWp.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-BotYesgY.js +52 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-C_reWfLU.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-Cl5Y6y_v.js +16 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-CzPvxiUD.js +16 -0
- package/dist/plugin-sdk/ssrf-dGOzgEI_.js +202 -0
- package/dist/plugin-sdk/store-DQ2KuNGv.js +81 -0
- package/dist/plugin-sdk/{store-Dn_E3uaN.js → store-K6C7eOpg.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-BbcgUYOO.js +52 -0
- package/dist/plugin-sdk/subagent-registry-runtime-Dhtf2h8u.js +52 -0
- package/dist/plugin-sdk/tables-B3jPS9G8.js +55 -0
- package/dist/plugin-sdk/{tables-_e9wMygc.js → tables-CeWt6UjS.js} +1 -1
- package/dist/plugin-sdk/target-errors-vzf_mLjC.js +195 -0
- package/dist/plugin-sdk/thinking-R15Mehif.js +1206 -0
- package/dist/plugin-sdk/{thinking-Cih_nxDY.js → thinking-gpcjIDQZ.js} +7 -7
- package/dist/plugin-sdk/{tokens-CLE20fRI.js → tokens-C-B2SvJW.js} +1 -1
- package/dist/plugin-sdk/tokens-DAL_5WHL.js +52 -0
- package/dist/plugin-sdk/{tool-images-D6a1Ua4p.js → tool-images-9Hn0F1o_.js} +2 -2
- package/dist/plugin-sdk/tool-images-l3TE_qXt.js +274 -0
- package/dist/plugin-sdk/web-C4irM2fl.js +56 -0
- package/dist/plugin-sdk/web-DZ7nBzZy.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-UAnHjKbE.js → whatsapp-actions-CbzdjX4B.js} +17 -17
- package/dist/plugin-sdk/whatsapp-actions-DZHLwaea.js +80 -0
- package/dist/plugin-sdk/whatsapp.js +50 -50
- package/dist/plugin-sdk/zalo.js +2 -2
- package/dist/{program-B5Vn_UD_.js → program-D5HYdN0q.js} +2 -2
- package/dist/{program-context-Cc5-MG37.js → program-context-CWU-LWnL.js} +6 -6
- package/dist/{prompt-select-styled-DTnRirU4.js → prompt-select-styled-C_C2Ae8a.js} +1 -1
- package/dist/{prompt-select-styled-BmJHQFIe.js → prompt-select-styled-CjkK2AWX.js} +1 -1
- package/dist/{register.maintenance-Di-_iCcy.js → register.maintenance-BnT8sF7e.js} +4 -4
- package/dist/{register.maintenance-dpQRuXYm.js → register.maintenance-CVWvM_w8.js} +5 -5
- package/dist/{register.onboard-D8V8BiRf.js → register.onboard-B68iwPcU.js} +2 -2
- package/dist/{register.onboard-CI1dr2mE.js → register.onboard-Bx2xxYE0.js} +2 -2
- package/dist/{register.setup-Dsl5n4Uf.js → register.setup-BgRFFdoH.js} +2 -2
- package/dist/{register.setup-CuD_ucSh.js → register.setup-DkztcYGa.js} +2 -2
- package/dist/{register.subclis-C4twva8y.js → register.subclis-Bb6WLUhM.js} +3 -3
- package/dist/{run-main-6tdntESl.js → run-main-CApmG6CS.js} +3 -3
- package/dist/{update-cli-XGRmAcuW.js → update-cli-DoKsKvCz.js} +4 -4
- package/dist/{update-cli-CKvgxhEz.js → update-cli-VQSBFHlu.js} +5 -5
- package/extensions/acpx/node_modules/.bin/acpx +2 -2
- package/extensions/diffs/node_modules/.bin/playwright-core +2 -2
- package/extensions/googlechat/node_modules/.bin/squidclaw +4 -4
- package/extensions/matrix/node_modules/.bin/markdown-it +2 -2
- package/extensions/memory-core/node_modules/.bin/squidclaw +4 -4
- package/extensions/memory-lancedb/node_modules/.bin/openai +2 -2
- package/extensions/tlon/node_modules/.bin/tlon +2 -2
- package/package.json +1 -1
- package/dist/control-ui/assets/index-BqxuPQOl.js.map +0 -1
- package/dist/plugin-sdk/deliver-runtime-Dx0Sg-lg.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-bKwjojX0.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-DcxfdKGE.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-79rGat6V.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-DfMO701H.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-Bnjwm6SU.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-CS50_Jgh.js +0 -57
- package/dist/plugin-sdk/image-runtime-f-WKB3Bx.js +0 -25
- package/dist/plugin-sdk/manager-runtime-DAKJEbuY.js +0 -15
- package/dist/plugin-sdk/pi-model-discovery-runtime-Bm4bHwpO.js +0 -8
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-D74eZbH7.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-BidSddX5.js +0 -19
- package/dist/plugin-sdk/slash-commands.runtime-CseiMacz.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-88gX6CLk.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-BNrQNIZ7.js +0 -16
- package/dist/plugin-sdk/subagent-registry-runtime-Cv8RHTjT.js +0 -52
- package/dist/plugin-sdk/web-C4tTN9Xu.js +0 -56
- package/docs/reference/templates/IDENTITY.md +0 -14
- package/docs/reference/templates/USER.md +0 -9
- package/extensions/diagnostics-otel/node_modules/.bin/acorn +0 -21
- package/extensions/memory-lancedb/node_modules/.bin/arrow2csv +0 -21
- package/extensions/nostr/node_modules/.bin/tsc +0 -21
- package/extensions/nostr/node_modules/.bin/tsserver +0 -21
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { O as runExec, U as resolveAgentModelFallbackValues, W as resolveAgentModelPrimaryValue } from "./run-with-concurrency-
|
|
2
|
-
import { Fn as resolveSquidClawAgentDir, Ht as normalizeProviderId, Yt as normalizeGoogleModelId, dn as resolveApiKeyForProvider, f as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, h as resolveIMessageAttachmentRoots, m as mergeInboundPathRoots, n as loadConfig, p as isInboundPathAllowed, un as requireApiKey } from "./config-
|
|
3
|
-
import { L as logVerbose, O as createSubsystemLogger, Y as resolvePreferredSquidClawTmpDir, z as shouldLogVerbose } from "./logger-
|
|
4
|
-
import { _ as normalizeChatType } from "./plugins-
|
|
5
|
-
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-
|
|
6
|
-
import { C as ensureSquidClawModelsJson, t as describeImageWithModel } from "./image-
|
|
1
|
+
import { O as runExec, U as resolveAgentModelFallbackValues, W as resolveAgentModelPrimaryValue } from "./run-with-concurrency-CYcPpb5E.js";
|
|
2
|
+
import { Fn as resolveSquidClawAgentDir, Ht as normalizeProviderId, Yt as normalizeGoogleModelId, dn as resolveApiKeyForProvider, f as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, h as resolveIMessageAttachmentRoots, m as mergeInboundPathRoots, n as loadConfig, p as isInboundPathAllowed, un as requireApiKey } from "./config-CMjn_DSB.js";
|
|
3
|
+
import { L as logVerbose, O as createSubsystemLogger, Y as resolvePreferredSquidClawTmpDir, z as shouldLogVerbose } from "./logger-Bg4vIUJn.js";
|
|
4
|
+
import { _ as normalizeChatType } from "./plugins-BSPvol4w.js";
|
|
5
|
+
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-CbKrfi-N.js";
|
|
6
|
+
import { C as ensureSquidClawModelsJson, t as describeImageWithModel } from "./image-DPgEp54d.js";
|
|
7
7
|
import { n as fetchWithTimeout } from "./fetch-timeout-CR10Uz2k.js";
|
|
8
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
9
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
10
|
-
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError } from "./local-roots-
|
|
11
|
-
import { n as resolveProxyFetchFromEnv } from "./proxy-fetch-
|
|
8
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-CGQ35-A_.js";
|
|
9
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-0Xm0okk5.js";
|
|
10
|
+
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError } from "./local-roots-T6lXDGzr.js";
|
|
11
|
+
import { n as resolveProxyFetchFromEnv } from "./proxy-fetch-Cf3IUSDw.js";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import { constants } from "node:fs";
|
|
14
14
|
import os from "node:os";
|
|
@@ -990,7 +990,7 @@ var MediaAttachmentCache = class {
|
|
|
990
990
|
const log = createSubsystemLogger("model-catalog");
|
|
991
991
|
let modelCatalogPromise = null;
|
|
992
992
|
let hasLoggedModelCatalogError = false;
|
|
993
|
-
const defaultImportPiSdk = () => import("./pi-model-discovery-
|
|
993
|
+
const defaultImportPiSdk = () => import("./pi-model-discovery-DyDwYiK3.js").then((n) => n.r);
|
|
994
994
|
let importPiSdk = defaultImportPiSdk;
|
|
995
995
|
const CODEX_PROVIDER = "openai-codex";
|
|
996
996
|
const OPENAI_CODEX_GPT53_MODEL_ID = "gpt-5.3-codex";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as isRecord } from "./logger-
|
|
1
|
+
import { f as isRecord } from "./logger-Bg4vIUJn.js";
|
|
2
2
|
import "./paths-Duwviem_.js";
|
|
3
3
|
import { n as fetchWithTimeout } from "./fetch-timeout-CR10Uz2k.js";
|
|
4
|
-
import { t as makeProxyFetch } from "./proxy-fetch-
|
|
4
|
+
import { t as makeProxyFetch } from "./proxy-fetch-Cf3IUSDw.js";
|
|
5
5
|
import "./proxy-BOZmkV9K.js";
|
|
6
6
|
|
|
7
7
|
//#region src/telegram/audit-membership-runtime.ts
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import "./paths-8xF5kDne.js";
|
|
2
|
+
import { y as isRecord } from "./logger-D0ST0Irn.js";
|
|
3
|
+
import { n as fetchWithTimeout } from "./fetch-timeout-D455O27U.js";
|
|
4
|
+
import { t as makeProxyFetch } from "./proxy-fetch-tPMv_1eB.js";
|
|
5
|
+
import "./proxy-BKdNrmWL.js";
|
|
6
|
+
|
|
7
|
+
//#region src/telegram/audit-membership-runtime.ts
|
|
8
|
+
const TELEGRAM_API_BASE = "https://api.telegram.org";
|
|
9
|
+
async function auditTelegramGroupMembershipImpl(params) {
|
|
10
|
+
const fetcher = params.proxyUrl ? makeProxyFetch(params.proxyUrl) : fetch;
|
|
11
|
+
const base = `${TELEGRAM_API_BASE}/bot${params.token}`;
|
|
12
|
+
const groups = [];
|
|
13
|
+
for (const chatId of params.groupIds) try {
|
|
14
|
+
const res = await fetchWithTimeout(`${base}/getChatMember?chat_id=${encodeURIComponent(chatId)}&user_id=${encodeURIComponent(String(params.botId))}`, {}, params.timeoutMs, fetcher);
|
|
15
|
+
const json = await res.json();
|
|
16
|
+
if (!res.ok || !isRecord(json) || !json.ok) {
|
|
17
|
+
const desc = isRecord(json) && !json.ok && typeof json.description === "string" ? json.description : `getChatMember failed (${res.status})`;
|
|
18
|
+
groups.push({
|
|
19
|
+
chatId,
|
|
20
|
+
ok: false,
|
|
21
|
+
status: null,
|
|
22
|
+
error: desc,
|
|
23
|
+
matchKey: chatId,
|
|
24
|
+
matchSource: "id"
|
|
25
|
+
});
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
const status = isRecord(json.result) ? json.result.status ?? null : null;
|
|
29
|
+
const ok = status === "creator" || status === "administrator" || status === "member";
|
|
30
|
+
groups.push({
|
|
31
|
+
chatId,
|
|
32
|
+
ok,
|
|
33
|
+
status,
|
|
34
|
+
error: ok ? null : "bot not in group",
|
|
35
|
+
matchKey: chatId,
|
|
36
|
+
matchSource: "id"
|
|
37
|
+
});
|
|
38
|
+
} catch (err) {
|
|
39
|
+
groups.push({
|
|
40
|
+
chatId,
|
|
41
|
+
ok: false,
|
|
42
|
+
status: null,
|
|
43
|
+
error: err instanceof Error ? err.message : String(err),
|
|
44
|
+
matchKey: chatId,
|
|
45
|
+
matchSource: "id"
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
ok: groups.every((g) => g.ok),
|
|
50
|
+
checkedGroups: groups.length,
|
|
51
|
+
unresolvedGroups: 0,
|
|
52
|
+
hasWildcardUnmentionedGroups: false,
|
|
53
|
+
groups
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
//#endregion
|
|
58
|
+
export { auditTelegramGroupMembershipImpl };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { en as resolveRetryConfig, tn as retryAsync } from "./config-
|
|
2
|
-
import { O as createSubsystemLogger } from "./logger-
|
|
3
|
-
import { r as formatErrorMessage } from "./errors-
|
|
1
|
+
import { en as resolveRetryConfig, tn as retryAsync } from "./config-CMjn_DSB.js";
|
|
2
|
+
import { O as createSubsystemLogger } from "./logger-Bg4vIUJn.js";
|
|
3
|
+
import { r as formatErrorMessage } from "./errors-9oVz7reJ.js";
|
|
4
4
|
import { RateLimitError } from "@buape/carbon";
|
|
5
5
|
|
|
6
6
|
//#region src/infra/retry-policy.ts
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Un as resolveRetryConfig, Wn as retryAsync } from "./config-DMdJidZc.js";
|
|
2
|
+
import { a as createSubsystemLogger } from "./logger-D0ST0Irn.js";
|
|
3
|
+
import { r as formatErrorMessage } from "./errors-s9jrwzSl.js";
|
|
4
|
+
import { RateLimitError } from "@buape/carbon";
|
|
5
|
+
|
|
6
|
+
//#region src/infra/retry-policy.ts
|
|
7
|
+
const DISCORD_RETRY_DEFAULTS = {
|
|
8
|
+
attempts: 3,
|
|
9
|
+
minDelayMs: 500,
|
|
10
|
+
maxDelayMs: 3e4,
|
|
11
|
+
jitter: .1
|
|
12
|
+
};
|
|
13
|
+
const TELEGRAM_RETRY_DEFAULTS = {
|
|
14
|
+
attempts: 3,
|
|
15
|
+
minDelayMs: 400,
|
|
16
|
+
maxDelayMs: 3e4,
|
|
17
|
+
jitter: .1
|
|
18
|
+
};
|
|
19
|
+
const TELEGRAM_RETRY_RE = /429|timeout|connect|reset|closed|unavailable|temporarily/i;
|
|
20
|
+
const log = createSubsystemLogger("retry-policy");
|
|
21
|
+
function getTelegramRetryAfterMs(err) {
|
|
22
|
+
if (!err || typeof err !== "object") return;
|
|
23
|
+
const candidate = "parameters" in err && err.parameters && typeof err.parameters === "object" ? err.parameters.retry_after : "response" in err && err.response && typeof err.response === "object" && "parameters" in err.response ? err.response.parameters?.retry_after : "error" in err && err.error && typeof err.error === "object" && "parameters" in err.error ? err.error.parameters?.retry_after : void 0;
|
|
24
|
+
return typeof candidate === "number" && Number.isFinite(candidate) ? candidate * 1e3 : void 0;
|
|
25
|
+
}
|
|
26
|
+
function createDiscordRetryRunner(params) {
|
|
27
|
+
const retryConfig = resolveRetryConfig(DISCORD_RETRY_DEFAULTS, {
|
|
28
|
+
...params.configRetry,
|
|
29
|
+
...params.retry
|
|
30
|
+
});
|
|
31
|
+
return (fn, label) => retryAsync(fn, {
|
|
32
|
+
...retryConfig,
|
|
33
|
+
label,
|
|
34
|
+
shouldRetry: (err) => err instanceof RateLimitError,
|
|
35
|
+
retryAfterMs: (err) => err instanceof RateLimitError ? err.retryAfter * 1e3 : void 0,
|
|
36
|
+
onRetry: params.verbose ? (info) => {
|
|
37
|
+
const labelText = info.label ?? "request";
|
|
38
|
+
const maxRetries = Math.max(1, info.maxAttempts - 1);
|
|
39
|
+
log.warn(`discord ${labelText} rate limited, retry ${info.attempt}/${maxRetries} in ${info.delayMs}ms`);
|
|
40
|
+
} : void 0
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function createTelegramRetryRunner(params) {
|
|
44
|
+
const retryConfig = resolveRetryConfig(TELEGRAM_RETRY_DEFAULTS, {
|
|
45
|
+
...params.configRetry,
|
|
46
|
+
...params.retry
|
|
47
|
+
});
|
|
48
|
+
const shouldRetry = params.shouldRetry ? (err) => params.shouldRetry?.(err) || TELEGRAM_RETRY_RE.test(formatErrorMessage(err)) : (err) => TELEGRAM_RETRY_RE.test(formatErrorMessage(err));
|
|
49
|
+
return (fn, label) => retryAsync(fn, {
|
|
50
|
+
...retryConfig,
|
|
51
|
+
label,
|
|
52
|
+
shouldRetry,
|
|
53
|
+
retryAfterMs: getTelegramRetryAfterMs,
|
|
54
|
+
onRetry: params.verbose ? (info) => {
|
|
55
|
+
const maxRetries = Math.max(1, info.maxAttempts - 1);
|
|
56
|
+
log.warn(`telegram send retry ${info.attempt}/${maxRetries} for ${info.label ?? label ?? "request"} in ${info.delayMs}ms: ${formatErrorMessage(info.err)}`);
|
|
57
|
+
} : void 0
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/infra/channel-activity.ts
|
|
63
|
+
const activity = /* @__PURE__ */ new Map();
|
|
64
|
+
function keyFor(channel, accountId) {
|
|
65
|
+
return `${channel}:${accountId || "default"}`;
|
|
66
|
+
}
|
|
67
|
+
function ensureEntry(channel, accountId) {
|
|
68
|
+
const key = keyFor(channel, accountId);
|
|
69
|
+
const existing = activity.get(key);
|
|
70
|
+
if (existing) return existing;
|
|
71
|
+
const created = {
|
|
72
|
+
inboundAt: null,
|
|
73
|
+
outboundAt: null
|
|
74
|
+
};
|
|
75
|
+
activity.set(key, created);
|
|
76
|
+
return created;
|
|
77
|
+
}
|
|
78
|
+
function recordChannelActivity(params) {
|
|
79
|
+
const at = typeof params.at === "number" ? params.at : Date.now();
|
|
80
|
+
const accountId = params.accountId?.trim() || "default";
|
|
81
|
+
const entry = ensureEntry(params.channel, accountId);
|
|
82
|
+
if (params.direction === "inbound") entry.inboundAt = at;
|
|
83
|
+
if (params.direction === "outbound") entry.outboundAt = at;
|
|
84
|
+
}
|
|
85
|
+
function getChannelActivity(params) {
|
|
86
|
+
const accountId = params.accountId?.trim() || "default";
|
|
87
|
+
return activity.get(keyFor(params.channel, accountId)) ?? {
|
|
88
|
+
inboundAt: null,
|
|
89
|
+
outboundAt: null
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
//#endregion
|
|
94
|
+
export { createTelegramRetryRunner as i, recordChannelActivity as n, createDiscordRetryRunner as r, getChannelActivity as t };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { $ as normalizeAgentId, J as buildAgentMainSessionKey, X as buildGroupHistoryKey, at as DEFAULT_ACCOUNT_ID, q as DEFAULT_MAIN_KEY } from "./run-with-concurrency-
|
|
2
|
-
import { Tr as formatCliCommand, n as loadConfig, ur as normalizeChatChannelId } from "./config-
|
|
3
|
-
import { C as sleep, G as getChildLogger, L as logVerbose, O as createSubsystemLogger, T as toWhatsappJid, h as normalizeE164, j as defaultRuntime, m as jidToE164, o as clamp, p as isSelfChatMode, v as resolveJidToE164, z as shouldLogVerbose } from "./logger-
|
|
4
|
-
import { i as resolveWhatsAppAccount, p as readWebSelfId, s as getWebAuthAgeMs } from "./accounts-
|
|
5
|
-
import { C as resolveChannelGroupRequireMention, S as resolveChannelGroupPolicy } from "./thinking-
|
|
6
|
-
import { A as shouldComputeCommandAuthorized, B as formatDurationPrecise, C as createInboundDebouncer, D as buildAgentSessionKey, E as createDedupeCache, G as resolveOpenProviderRuntimeGroupPolicy, H as finalizeInboundContext, I as resolveIdentityNamePrefix, K as warnMissingProviderGroupPolicyFallbackOnce, L as resolveMessagePrefix, O as resolveAgentRoute, R as buildMentionRegexes, T as formatInboundEnvelope, V as enqueueSystemEvent, W as resolveDefaultGroupPolicy, _ as resolveDmGroupAccessWithCommandGate, a as parseActivationCommand, b as shouldAckReactionForWhatsApp, c as computeBackoff, d as buildPairingReply, f as resolveMentionGating, g as readStoreAllowFromForDmPolicy, h as recordPendingHistoryEntryIfEnabled, i as normalizeGroupActivation, k as hasControlCommand, l as sleepWithAbort, m as buildHistoryContextFromEntries, p as DEFAULT_GROUP_HISTORY_LIMIT, s as resolveInboundSessionEnvelopeContext, t as getReplyFromConfig, u as createReplyPrefixOptions, v as resolveDmGroupAccessWithLists, w as resolveInboundDebounceMs, x as dispatchReplyWithBufferedBlockDispatcher, y as resolvePinnedMainDmOwnerFromAllowlist, z as normalizeMentionText } from "./reply-
|
|
7
|
-
import { _t as loadSessionStore, bt as updateLastRoute, in as resolveGroupSessionKey, yt as recordSessionMetaFromInbound } from "./pi-embedded-helpers-
|
|
8
|
-
import { s as resolveStorePath } from "./paths-
|
|
9
|
-
import { X as toLocationContext, Y as formatLocationText, et as readChannelAllowFromStoreSync, nt as upsertChannelPairingRequest } from "./send-
|
|
10
|
-
import { f as registerUnhandledRejectionHandler } from "./audio-transcription-runner-
|
|
11
|
-
import { i as saveMediaBuffer } from "./store-
|
|
12
|
-
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
13
|
-
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, s as resolveMarkdownTableMode } from "./ir-
|
|
14
|
-
import { n as recordChannelActivity } from "./channel-activity-
|
|
15
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
16
|
-
import { r as setActiveWebListener } from "./active-listener-
|
|
17
|
-
import { i as markdownToWhatsApp, r as sendReactionWhatsApp } from "./outbound-
|
|
18
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
1
|
+
import { $ as normalizeAgentId, J as buildAgentMainSessionKey, X as buildGroupHistoryKey, at as DEFAULT_ACCOUNT_ID, q as DEFAULT_MAIN_KEY } from "./run-with-concurrency-CYcPpb5E.js";
|
|
2
|
+
import { Tr as formatCliCommand, n as loadConfig, ur as normalizeChatChannelId } from "./config-CMjn_DSB.js";
|
|
3
|
+
import { C as sleep, G as getChildLogger, L as logVerbose, O as createSubsystemLogger, T as toWhatsappJid, h as normalizeE164, j as defaultRuntime, m as jidToE164, o as clamp, p as isSelfChatMode, v as resolveJidToE164, z as shouldLogVerbose } from "./logger-Bg4vIUJn.js";
|
|
4
|
+
import { i as resolveWhatsAppAccount, p as readWebSelfId, s as getWebAuthAgeMs } from "./accounts-BvzvDHNx.js";
|
|
5
|
+
import { C as resolveChannelGroupRequireMention, S as resolveChannelGroupPolicy } from "./thinking-gpcjIDQZ.js";
|
|
6
|
+
import { A as shouldComputeCommandAuthorized, B as formatDurationPrecise, C as createInboundDebouncer, D as buildAgentSessionKey, E as createDedupeCache, G as resolveOpenProviderRuntimeGroupPolicy, H as finalizeInboundContext, I as resolveIdentityNamePrefix, K as warnMissingProviderGroupPolicyFallbackOnce, L as resolveMessagePrefix, O as resolveAgentRoute, R as buildMentionRegexes, T as formatInboundEnvelope, V as enqueueSystemEvent, W as resolveDefaultGroupPolicy, _ as resolveDmGroupAccessWithCommandGate, a as parseActivationCommand, b as shouldAckReactionForWhatsApp, c as computeBackoff, d as buildPairingReply, f as resolveMentionGating, g as readStoreAllowFromForDmPolicy, h as recordPendingHistoryEntryIfEnabled, i as normalizeGroupActivation, k as hasControlCommand, l as sleepWithAbort, m as buildHistoryContextFromEntries, p as DEFAULT_GROUP_HISTORY_LIMIT, s as resolveInboundSessionEnvelopeContext, t as getReplyFromConfig, u as createReplyPrefixOptions, v as resolveDmGroupAccessWithLists, w as resolveInboundDebounceMs, x as dispatchReplyWithBufferedBlockDispatcher, y as resolvePinnedMainDmOwnerFromAllowlist, z as normalizeMentionText } from "./reply-DJ3rbbnv.js";
|
|
7
|
+
import { _t as loadSessionStore, bt as updateLastRoute, in as resolveGroupSessionKey, yt as recordSessionMetaFromInbound } from "./pi-embedded-helpers-B7nmCbf7.js";
|
|
8
|
+
import { s as resolveStorePath } from "./paths-BQHqKGA8.js";
|
|
9
|
+
import { X as toLocationContext, Y as formatLocationText, et as readChannelAllowFromStoreSync, nt as upsertChannelPairingRequest } from "./send-BPEn9L0o.js";
|
|
10
|
+
import { f as registerUnhandledRejectionHandler } from "./audio-transcription-runner-u6tijzUS.js";
|
|
11
|
+
import { i as saveMediaBuffer } from "./store-K6C7eOpg.js";
|
|
12
|
+
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-T6lXDGzr.js";
|
|
13
|
+
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, s as resolveMarkdownTableMode } from "./ir-4JdLS2Hz.js";
|
|
14
|
+
import { n as recordChannelActivity } from "./channel-activity-BVUdxSNs.js";
|
|
15
|
+
import { t as convertMarkdownTables } from "./tables-CeWt6UjS.js";
|
|
16
|
+
import { r as setActiveWebListener } from "./active-listener-Ccj2fSCa.js";
|
|
17
|
+
import { i as markdownToWhatsApp, r as sendReactionWhatsApp } from "./outbound-DTQ-9Cjw.js";
|
|
18
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-Bwjlseuf.js";
|
|
19
19
|
import { randomUUID } from "node:crypto";
|
|
20
20
|
import { DisconnectReason, downloadMediaMessage, extractMessageContent, getContentType, isJidGroup, normalizeMessageContent } from "@whiskeysockets/baileys";
|
|
21
21
|
|