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
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./run-with-concurrency-CYcPpb5E.js";
|
|
2
|
+
import "./config-CMjn_DSB.js";
|
|
3
|
+
import "./logger-Bg4vIUJn.js";
|
|
4
|
+
import "./paths-Duwviem_.js";
|
|
5
|
+
import "./accounts-BvzvDHNx.js";
|
|
6
|
+
import "./plugins-BSPvol4w.js";
|
|
7
|
+
import "./thinking-gpcjIDQZ.js";
|
|
8
|
+
import "./accounts-BLOLIF6Q.js";
|
|
9
|
+
import "./accounts-ByCKM_Y3.js";
|
|
10
|
+
import "./github-copilot-token-C0y6vp3r.js";
|
|
11
|
+
import { f as resolveCommandArgMenu, n as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-CDHo6SSs.js";
|
|
12
|
+
|
|
13
|
+
export { buildCommandTextFromArgs, findCommandByNativeName, listNativeCommandSpecsForConfig, parseCommandArgs, resolveCommandArgMenu };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./run-with-concurrency-Baa7LYZD.js";
|
|
2
|
+
import "./accounts-Cnpikxly.js";
|
|
3
|
+
import "./paths-8xF5kDne.js";
|
|
4
|
+
import "./github-copilot-token-Dy-0-Kh3.js";
|
|
5
|
+
import "./config-DMdJidZc.js";
|
|
6
|
+
import "./logger-D0ST0Irn.js";
|
|
7
|
+
import "./thinking-R15Mehif.js";
|
|
8
|
+
import "./plugins-CWIlxjXW.js";
|
|
9
|
+
import "./accounts-B9RVtSwn.js";
|
|
10
|
+
import "./accounts-ZkT4ovw_.js";
|
|
11
|
+
import { f as resolveCommandArgMenu, n as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-CRVdcP1W.js";
|
|
12
|
+
|
|
13
|
+
export { buildCommandTextFromArgs, findCommandByNativeName, listNativeCommandSpecsForConfig, parseCommandArgs, resolveCommandArgMenu };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import "./run-with-concurrency-CYcPpb5E.js";
|
|
2
|
+
import "./config-CMjn_DSB.js";
|
|
3
|
+
import "./logger-Bg4vIUJn.js";
|
|
4
|
+
import "./paths-Duwviem_.js";
|
|
5
|
+
import "./accounts-BvzvDHNx.js";
|
|
6
|
+
import "./plugins-BSPvol4w.js";
|
|
7
|
+
import "./thinking-gpcjIDQZ.js";
|
|
8
|
+
import "./accounts-BLOLIF6Q.js";
|
|
9
|
+
import "./send-D6nUI0S3.js";
|
|
10
|
+
import "./common-Emz6EPQM.js";
|
|
11
|
+
import { H as finalizeInboundContext, O as resolveAgentRoute, S as dispatchReplyWithDispatcher, o as deliverSlackSlashReplies, r as recordInboundSessionMetaSafe, u as createReplyPrefixOptions } from "./reply-DJ3rbbnv.js";
|
|
12
|
+
import "./image-ops-CbKrfi-N.js";
|
|
13
|
+
import { rn as resolveConversationLabel } from "./pi-embedded-helpers-B7nmCbf7.js";
|
|
14
|
+
import "./accounts-ByCKM_Y3.js";
|
|
15
|
+
import "./send-CZ6HDwDu.js";
|
|
16
|
+
import "./github-copilot-token-C0y6vp3r.js";
|
|
17
|
+
import "./paths-BQHqKGA8.js";
|
|
18
|
+
import "./send-BPEn9L0o.js";
|
|
19
|
+
import "./tokens-DAL_5WHL.js";
|
|
20
|
+
import "./audio-transcription-runner-u6tijzUS.js";
|
|
21
|
+
import "./image-DPgEp54d.js";
|
|
22
|
+
import "./chrome-6EkqVcyR.js";
|
|
23
|
+
import "./skills-CaQpr1kx.js";
|
|
24
|
+
import "./path-alias-guards-DSCFtpsd.js";
|
|
25
|
+
import "./redact-DfACyt0X.js";
|
|
26
|
+
import "./errors-9oVz7reJ.js";
|
|
27
|
+
import "./fs-safe-B26UxJny.js";
|
|
28
|
+
import "./proxy-env-D-iVYTBk.js";
|
|
29
|
+
import "./store-K6C7eOpg.js";
|
|
30
|
+
import "./tool-images-l3TE_qXt.js";
|
|
31
|
+
import "./fetch-guard-CGQ35-A_.js";
|
|
32
|
+
import "./api-key-rotation-0Xm0okk5.js";
|
|
33
|
+
import "./local-roots-T6lXDGzr.js";
|
|
34
|
+
import "./proxy-fetch-Cf3IUSDw.js";
|
|
35
|
+
import "./deliver-Cz6GluMN.js";
|
|
36
|
+
import "./commands-registry-CDHo6SSs.js";
|
|
37
|
+
import "./skill-commands-BpB2Oe8e.js";
|
|
38
|
+
import "./fetch-D3HDdlk7.js";
|
|
39
|
+
import "./diagnostic-DhO2TqL_.js";
|
|
40
|
+
import "./pi-model-discovery-DyDwYiK3.js";
|
|
41
|
+
import { m as resolveChunkMode, s as resolveMarkdownTableMode } from "./ir-4JdLS2Hz.js";
|
|
42
|
+
import "./render-95l30zcf.js";
|
|
43
|
+
import "./send-B9GVkvTk.js";
|
|
44
|
+
import "./outbound-attachment-CdHX9v0q.js";
|
|
45
|
+
import "./send-CGjI0pJn.js";
|
|
46
|
+
import "./channel-activity-BVUdxSNs.js";
|
|
47
|
+
import "./tables-CeWt6UjS.js";
|
|
48
|
+
import "./proxy-BOZmkV9K.js";
|
|
49
|
+
import "./manager-D__CoDGL.js";
|
|
50
|
+
import "./query-expansion-DxTmIU4K.js";
|
|
51
|
+
|
|
52
|
+
export { createReplyPrefixOptions, deliverSlackSlashReplies, dispatchReplyWithDispatcher, finalizeInboundContext, recordInboundSessionMetaSafe, resolveAgentRoute, resolveChunkMode, resolveConversationLabel, resolveMarkdownTableMode };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import "./run-with-concurrency-Baa7LYZD.js";
|
|
2
|
+
import "./accounts-Cnpikxly.js";
|
|
3
|
+
import { N as finalizeInboundContext, X as createReplyPrefixOptions, a as deliverSlackSlashReplies, m as dispatchReplyWithDispatcher, n as recordInboundSessionMetaSafe, v as resolveAgentRoute } from "./reply-C-WT0k-v.js";
|
|
4
|
+
import "./paths-8xF5kDne.js";
|
|
5
|
+
import "./github-copilot-token-Dy-0-Kh3.js";
|
|
6
|
+
import "./config-DMdJidZc.js";
|
|
7
|
+
import "./logger-D0ST0Irn.js";
|
|
8
|
+
import "./thinking-R15Mehif.js";
|
|
9
|
+
import "./image-ops-D0YKZqPy.js";
|
|
10
|
+
import { rn as resolveConversationLabel } from "./pi-embedded-helpers-BMA7JWLb.js";
|
|
11
|
+
import "./plugins-CWIlxjXW.js";
|
|
12
|
+
import "./accounts-B9RVtSwn.js";
|
|
13
|
+
import "./accounts-ZkT4ovw_.js";
|
|
14
|
+
import "./send-C9jI56cY.js";
|
|
15
|
+
import "./paths-6WIn8_si.js";
|
|
16
|
+
import "./fetch-B_RcOnt9.js";
|
|
17
|
+
import "./redact-Bns9Du30.js";
|
|
18
|
+
import "./errors-s9jrwzSl.js";
|
|
19
|
+
import "./channel-activity-DAX5uVAX.js";
|
|
20
|
+
import "./path-alias-guards-DUn7Q6iW.js";
|
|
21
|
+
import "./fs-safe-CZ2NvCjz.js";
|
|
22
|
+
import "./ssrf-dGOzgEI_.js";
|
|
23
|
+
import "./fetch-guard-CEd4HUIR.js";
|
|
24
|
+
import "./local-roots-HL9eBLUg.js";
|
|
25
|
+
import { d as resolveChunkMode, i as resolveMarkdownTableMode } from "./ir-D9fxXkgD.js";
|
|
26
|
+
import "./render-HmipMDlP.js";
|
|
27
|
+
import "./tables-B3jPS9G8.js";
|
|
28
|
+
import "./send-Bjh-MMdN.js";
|
|
29
|
+
import "./send-7do64QqA.js";
|
|
30
|
+
import "./tool-images-9Hn0F1o_.js";
|
|
31
|
+
import "./target-errors-vzf_mLjC.js";
|
|
32
|
+
import "./send-DiuYhmpi.js";
|
|
33
|
+
import "./audio-transcription-runner-C4aP5aYG.js";
|
|
34
|
+
import "./tokens-C-B2SvJW.js";
|
|
35
|
+
import "./skill-commands-Cuzs_Puw.js";
|
|
36
|
+
import "./skills-RHzhTtJf.js";
|
|
37
|
+
import "./chrome-BHzykCQ9.js";
|
|
38
|
+
import "./deliver-DMb_cOF7.js";
|
|
39
|
+
import "./diagnostic-BidLPPBm.js";
|
|
40
|
+
import "./store-DQ2KuNGv.js";
|
|
41
|
+
import "./commands-registry-CRVdcP1W.js";
|
|
42
|
+
import "./image-BKaDODzM.js";
|
|
43
|
+
import "./api-key-rotation--boE2y8I.js";
|
|
44
|
+
import "./proxy-fetch-tPMv_1eB.js";
|
|
45
|
+
import "./pi-model-discovery-B6gpdlWb.js";
|
|
46
|
+
import "./send-CTsZjmvQ.js";
|
|
47
|
+
import "./outbound-attachment-BNMQOIcP.js";
|
|
48
|
+
import "./proxy-BKdNrmWL.js";
|
|
49
|
+
import "./manager-DZ9Hn0Fe.js";
|
|
50
|
+
import "./query-expansion-BCOK4OTO.js";
|
|
51
|
+
|
|
52
|
+
export { createReplyPrefixOptions, deliverSlackSlashReplies, dispatchReplyWithDispatcher, finalizeInboundContext, recordInboundSessionMetaSafe, resolveAgentRoute, resolveChunkMode, resolveConversationLabel, resolveMarkdownTableMode };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./run-with-concurrency-Baa7LYZD.js";
|
|
2
|
+
import "./accounts-Cnpikxly.js";
|
|
3
|
+
import "./paths-8xF5kDne.js";
|
|
4
|
+
import "./github-copilot-token-Dy-0-Kh3.js";
|
|
5
|
+
import "./config-DMdJidZc.js";
|
|
6
|
+
import "./logger-D0ST0Irn.js";
|
|
7
|
+
import "./thinking-R15Mehif.js";
|
|
8
|
+
import "./plugins-CWIlxjXW.js";
|
|
9
|
+
import "./accounts-B9RVtSwn.js";
|
|
10
|
+
import "./accounts-ZkT4ovw_.js";
|
|
11
|
+
import "./path-alias-guards-DUn7Q6iW.js";
|
|
12
|
+
import { n as listSkillCommandsForAgents } from "./skill-commands-Cuzs_Puw.js";
|
|
13
|
+
import "./skills-RHzhTtJf.js";
|
|
14
|
+
import "./commands-registry-CRVdcP1W.js";
|
|
15
|
+
|
|
16
|
+
export { listSkillCommandsForAgents };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./run-with-concurrency-CYcPpb5E.js";
|
|
2
|
+
import "./config-CMjn_DSB.js";
|
|
3
|
+
import "./logger-Bg4vIUJn.js";
|
|
4
|
+
import "./paths-Duwviem_.js";
|
|
5
|
+
import "./accounts-BvzvDHNx.js";
|
|
6
|
+
import "./plugins-BSPvol4w.js";
|
|
7
|
+
import "./thinking-gpcjIDQZ.js";
|
|
8
|
+
import "./accounts-BLOLIF6Q.js";
|
|
9
|
+
import "./accounts-ByCKM_Y3.js";
|
|
10
|
+
import "./github-copilot-token-C0y6vp3r.js";
|
|
11
|
+
import "./skills-CaQpr1kx.js";
|
|
12
|
+
import "./path-alias-guards-DSCFtpsd.js";
|
|
13
|
+
import "./commands-registry-CDHo6SSs.js";
|
|
14
|
+
import { n as listSkillCommandsForAgents } from "./skill-commands-BpB2Oe8e.js";
|
|
15
|
+
|
|
16
|
+
export { listSkillCommandsForAgents };
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { $ as parseCanonicalIpAddress, G as isBlockedSpecialUseIpv4Address, J as isIpv4Address, K as isBlockedSpecialUseIpv6Address, W as extractEmbeddedIpv4FromIpv6, Y as isLegacyIpv4Literal, et as parseLooseIpAddress, q as isCanonicalDottedDecimalIPv4 } from "./config-DMdJidZc.js";
|
|
2
|
+
import { Agent } from "undici";
|
|
3
|
+
import { lookup } from "node:dns";
|
|
4
|
+
import { lookup as lookup$1 } from "node:dns/promises";
|
|
5
|
+
|
|
6
|
+
//#region src/infra/net/proxy-env.ts
|
|
7
|
+
const PROXY_ENV_KEYS = [
|
|
8
|
+
"HTTP_PROXY",
|
|
9
|
+
"HTTPS_PROXY",
|
|
10
|
+
"ALL_PROXY",
|
|
11
|
+
"http_proxy",
|
|
12
|
+
"https_proxy",
|
|
13
|
+
"all_proxy"
|
|
14
|
+
];
|
|
15
|
+
function hasProxyEnvConfigured(env = process.env) {
|
|
16
|
+
for (const key of PROXY_ENV_KEYS) {
|
|
17
|
+
const value = env[key];
|
|
18
|
+
if (typeof value === "string" && value.trim().length > 0) return true;
|
|
19
|
+
}
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/infra/net/hostname.ts
|
|
25
|
+
function normalizeHostname(hostname) {
|
|
26
|
+
const normalized = hostname.trim().toLowerCase().replace(/\.$/, "");
|
|
27
|
+
if (normalized.startsWith("[") && normalized.endsWith("]")) return normalized.slice(1, -1);
|
|
28
|
+
return normalized;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/infra/net/ssrf.ts
|
|
33
|
+
var SsrFBlockedError = class extends Error {
|
|
34
|
+
constructor(message) {
|
|
35
|
+
super(message);
|
|
36
|
+
this.name = "SsrFBlockedError";
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const BLOCKED_HOSTNAMES = new Set([
|
|
40
|
+
"localhost",
|
|
41
|
+
"localhost.localdomain",
|
|
42
|
+
"metadata.google.internal"
|
|
43
|
+
]);
|
|
44
|
+
function normalizeHostnameSet(values) {
|
|
45
|
+
if (!values || values.length === 0) return /* @__PURE__ */ new Set();
|
|
46
|
+
return new Set(values.map((value) => normalizeHostname(value)).filter(Boolean));
|
|
47
|
+
}
|
|
48
|
+
function normalizeHostnameAllowlist(values) {
|
|
49
|
+
if (!values || values.length === 0) return [];
|
|
50
|
+
return Array.from(new Set(values.map((value) => normalizeHostname(value)).filter((value) => value !== "*" && value !== "*." && value.length > 0)));
|
|
51
|
+
}
|
|
52
|
+
function isPrivateNetworkAllowedByPolicy(policy) {
|
|
53
|
+
return policy?.dangerouslyAllowPrivateNetwork === true || policy?.allowPrivateNetwork === true;
|
|
54
|
+
}
|
|
55
|
+
function resolveIpv4SpecialUseBlockOptions(policy) {
|
|
56
|
+
return { allowRfc2544BenchmarkRange: policy?.allowRfc2544BenchmarkRange === true };
|
|
57
|
+
}
|
|
58
|
+
function isHostnameAllowedByPattern(hostname, pattern) {
|
|
59
|
+
if (pattern.startsWith("*.")) {
|
|
60
|
+
const suffix = pattern.slice(2);
|
|
61
|
+
if (!suffix || hostname === suffix) return false;
|
|
62
|
+
return hostname.endsWith(`.${suffix}`);
|
|
63
|
+
}
|
|
64
|
+
return hostname === pattern;
|
|
65
|
+
}
|
|
66
|
+
function matchesHostnameAllowlist(hostname, allowlist) {
|
|
67
|
+
if (allowlist.length === 0) return true;
|
|
68
|
+
return allowlist.some((pattern) => isHostnameAllowedByPattern(hostname, pattern));
|
|
69
|
+
}
|
|
70
|
+
function looksLikeUnsupportedIpv4Literal(address) {
|
|
71
|
+
const parts = address.split(".");
|
|
72
|
+
if (parts.length === 0 || parts.length > 4) return false;
|
|
73
|
+
if (parts.some((part) => part.length === 0)) return true;
|
|
74
|
+
return parts.every((part) => /^[0-9]+$/.test(part) || /^0x/i.test(part));
|
|
75
|
+
}
|
|
76
|
+
function isPrivateIpAddress(address, policy) {
|
|
77
|
+
let normalized = address.trim().toLowerCase();
|
|
78
|
+
if (normalized.startsWith("[") && normalized.endsWith("]")) normalized = normalized.slice(1, -1);
|
|
79
|
+
if (!normalized) return false;
|
|
80
|
+
const blockOptions = resolveIpv4SpecialUseBlockOptions(policy);
|
|
81
|
+
const strictIp = parseCanonicalIpAddress(normalized);
|
|
82
|
+
if (strictIp) {
|
|
83
|
+
if (isIpv4Address(strictIp)) return isBlockedSpecialUseIpv4Address(strictIp, blockOptions);
|
|
84
|
+
if (isBlockedSpecialUseIpv6Address(strictIp)) return true;
|
|
85
|
+
const embeddedIpv4 = extractEmbeddedIpv4FromIpv6(strictIp);
|
|
86
|
+
if (embeddedIpv4) return isBlockedSpecialUseIpv4Address(embeddedIpv4, blockOptions);
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
if (normalized.includes(":") && !parseLooseIpAddress(normalized)) return true;
|
|
90
|
+
if (!isCanonicalDottedDecimalIPv4(normalized) && isLegacyIpv4Literal(normalized)) return true;
|
|
91
|
+
if (looksLikeUnsupportedIpv4Literal(normalized)) return true;
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
function isBlockedHostname(hostname) {
|
|
95
|
+
const normalized = normalizeHostname(hostname);
|
|
96
|
+
if (!normalized) return false;
|
|
97
|
+
return isBlockedHostnameNormalized(normalized);
|
|
98
|
+
}
|
|
99
|
+
function isBlockedHostnameNormalized(normalized) {
|
|
100
|
+
if (BLOCKED_HOSTNAMES.has(normalized)) return true;
|
|
101
|
+
return normalized.endsWith(".localhost") || normalized.endsWith(".local") || normalized.endsWith(".internal");
|
|
102
|
+
}
|
|
103
|
+
function isBlockedHostnameOrIp(hostname, policy) {
|
|
104
|
+
const normalized = normalizeHostname(hostname);
|
|
105
|
+
if (!normalized) return false;
|
|
106
|
+
return isBlockedHostnameNormalized(normalized) || isPrivateIpAddress(normalized, policy);
|
|
107
|
+
}
|
|
108
|
+
const BLOCKED_HOST_OR_IP_MESSAGE = "Blocked hostname or private/internal/special-use IP address";
|
|
109
|
+
const BLOCKED_RESOLVED_IP_MESSAGE = "Blocked: resolves to private/internal/special-use IP address";
|
|
110
|
+
function assertAllowedHostOrIpOrThrow(hostnameOrIp, policy) {
|
|
111
|
+
if (isBlockedHostnameOrIp(hostnameOrIp, policy)) throw new SsrFBlockedError(BLOCKED_HOST_OR_IP_MESSAGE);
|
|
112
|
+
}
|
|
113
|
+
function assertAllowedResolvedAddressesOrThrow(results, policy) {
|
|
114
|
+
for (const entry of results) if (isBlockedHostnameOrIp(entry.address, policy)) throw new SsrFBlockedError(BLOCKED_RESOLVED_IP_MESSAGE);
|
|
115
|
+
}
|
|
116
|
+
function createPinnedLookup(params) {
|
|
117
|
+
const normalizedHost = normalizeHostname(params.hostname);
|
|
118
|
+
const fallback = params.fallback ?? lookup;
|
|
119
|
+
const fallbackLookup = fallback;
|
|
120
|
+
const fallbackWithOptions = fallback;
|
|
121
|
+
const records = params.addresses.map((address) => ({
|
|
122
|
+
address,
|
|
123
|
+
family: address.includes(":") ? 6 : 4
|
|
124
|
+
}));
|
|
125
|
+
let index = 0;
|
|
126
|
+
return ((host, options, callback) => {
|
|
127
|
+
const cb = typeof options === "function" ? options : callback;
|
|
128
|
+
if (!cb) return;
|
|
129
|
+
const normalized = normalizeHostname(host);
|
|
130
|
+
if (!normalized || normalized !== normalizedHost) {
|
|
131
|
+
if (typeof options === "function" || options === void 0) return fallbackLookup(host, cb);
|
|
132
|
+
return fallbackWithOptions(host, options, cb);
|
|
133
|
+
}
|
|
134
|
+
const opts = typeof options === "object" && options !== null ? options : {};
|
|
135
|
+
const requestedFamily = typeof options === "number" ? options : typeof opts.family === "number" ? opts.family : 0;
|
|
136
|
+
const candidates = requestedFamily === 4 || requestedFamily === 6 ? records.filter((entry) => entry.family === requestedFamily) : records;
|
|
137
|
+
const usable = candidates.length > 0 ? candidates : records;
|
|
138
|
+
if (opts.all) {
|
|
139
|
+
cb(null, usable);
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
const chosen = usable[index % usable.length];
|
|
143
|
+
index += 1;
|
|
144
|
+
cb(null, chosen.address, chosen.family);
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
function dedupeAndPreferIpv4(results) {
|
|
148
|
+
const seen = /* @__PURE__ */ new Set();
|
|
149
|
+
const ipv4 = [];
|
|
150
|
+
const otherFamilies = [];
|
|
151
|
+
for (const entry of results) {
|
|
152
|
+
if (seen.has(entry.address)) continue;
|
|
153
|
+
seen.add(entry.address);
|
|
154
|
+
if (entry.family === 4) {
|
|
155
|
+
ipv4.push(entry.address);
|
|
156
|
+
continue;
|
|
157
|
+
}
|
|
158
|
+
otherFamilies.push(entry.address);
|
|
159
|
+
}
|
|
160
|
+
return [...ipv4, ...otherFamilies];
|
|
161
|
+
}
|
|
162
|
+
async function resolvePinnedHostnameWithPolicy(hostname, params = {}) {
|
|
163
|
+
const normalized = normalizeHostname(hostname);
|
|
164
|
+
if (!normalized) throw new Error("Invalid hostname");
|
|
165
|
+
const allowPrivateNetwork = isPrivateNetworkAllowedByPolicy(params.policy);
|
|
166
|
+
const allowedHostnames = normalizeHostnameSet(params.policy?.allowedHostnames);
|
|
167
|
+
const hostnameAllowlist = normalizeHostnameAllowlist(params.policy?.hostnameAllowlist);
|
|
168
|
+
const isExplicitAllowed = allowedHostnames.has(normalized);
|
|
169
|
+
const skipPrivateNetworkChecks = allowPrivateNetwork || isExplicitAllowed;
|
|
170
|
+
if (!matchesHostnameAllowlist(normalized, hostnameAllowlist)) throw new SsrFBlockedError(`Blocked hostname (not in allowlist): ${hostname}`);
|
|
171
|
+
if (!skipPrivateNetworkChecks) assertAllowedHostOrIpOrThrow(normalized, params.policy);
|
|
172
|
+
const results = await (params.lookupFn ?? lookup$1)(normalized, { all: true });
|
|
173
|
+
if (results.length === 0) throw new Error(`Unable to resolve hostname: ${hostname}`);
|
|
174
|
+
if (!skipPrivateNetworkChecks) assertAllowedResolvedAddressesOrThrow(results, params.policy);
|
|
175
|
+
const addresses = dedupeAndPreferIpv4(results);
|
|
176
|
+
if (addresses.length === 0) throw new Error(`Unable to resolve hostname: ${hostname}`);
|
|
177
|
+
return {
|
|
178
|
+
hostname: normalized,
|
|
179
|
+
addresses,
|
|
180
|
+
lookup: createPinnedLookup({
|
|
181
|
+
hostname: normalized,
|
|
182
|
+
addresses
|
|
183
|
+
})
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
function createPinnedDispatcher(pinned) {
|
|
187
|
+
return new Agent({ connect: { lookup: pinned.lookup } });
|
|
188
|
+
}
|
|
189
|
+
async function closeDispatcher(dispatcher) {
|
|
190
|
+
if (!dispatcher) return;
|
|
191
|
+
const candidate = dispatcher;
|
|
192
|
+
try {
|
|
193
|
+
if (typeof candidate.close === "function") {
|
|
194
|
+
await candidate.close();
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
if (typeof candidate.destroy === "function") candidate.destroy();
|
|
198
|
+
} catch {}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
//#endregion
|
|
202
|
+
export { isBlockedHostnameOrIp as a, resolvePinnedHostnameWithPolicy as c, isBlockedHostname as i, normalizeHostname as l, closeDispatcher as n, isPrivateIpAddress as o, createPinnedDispatcher as r, isPrivateNetworkAllowedByPolicy as s, SsrFBlockedError as t, hasProxyEnvConfigured as u };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { w as resolveConfigDir } from "./logger-D0ST0Irn.js";
|
|
2
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-D0YKZqPy.js";
|
|
3
|
+
import { createWriteStream } from "node:fs";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
import fs$1 from "node:fs/promises";
|
|
6
|
+
import crypto from "node:crypto";
|
|
7
|
+
import { pipeline } from "node:stream/promises";
|
|
8
|
+
import { request } from "node:https";
|
|
9
|
+
|
|
10
|
+
//#region src/media/store.ts
|
|
11
|
+
const resolveMediaDir = () => path.join(resolveConfigDir(), "media");
|
|
12
|
+
const MEDIA_MAX_BYTES = 5 * 1024 * 1024;
|
|
13
|
+
const MAX_BYTES = MEDIA_MAX_BYTES;
|
|
14
|
+
const DEFAULT_TTL_MS = 120 * 1e3;
|
|
15
|
+
const MEDIA_FILE_MODE = 420;
|
|
16
|
+
/**
|
|
17
|
+
* Sanitize a filename for cross-platform safety.
|
|
18
|
+
* Removes chars unsafe on Windows/SharePoint/all platforms.
|
|
19
|
+
* Keeps: alphanumeric, dots, hyphens, underscores, Unicode letters/numbers.
|
|
20
|
+
*/
|
|
21
|
+
function sanitizeFilename(name) {
|
|
22
|
+
const trimmed = name.trim();
|
|
23
|
+
if (!trimmed) return "";
|
|
24
|
+
return trimmed.replace(/[^\p{L}\p{N}._-]+/gu, "_").replace(/_+/g, "_").replace(/^_|_$/g, "").slice(0, 60);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Extract original filename from path if it matches the embedded format.
|
|
28
|
+
* Pattern: {original}---{uuid}.{ext} → returns "{original}.{ext}"
|
|
29
|
+
* Falls back to basename if no pattern match, or "file.bin" if empty.
|
|
30
|
+
*/
|
|
31
|
+
function extractOriginalFilename(filePath) {
|
|
32
|
+
const basename = path.basename(filePath);
|
|
33
|
+
if (!basename) return "file.bin";
|
|
34
|
+
const ext = path.extname(basename);
|
|
35
|
+
const match = path.basename(basename, ext).match(/^(.+)---[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i);
|
|
36
|
+
if (match?.[1]) return `${match[1]}${ext}`;
|
|
37
|
+
return basename;
|
|
38
|
+
}
|
|
39
|
+
function getMediaDir() {
|
|
40
|
+
return resolveMediaDir();
|
|
41
|
+
}
|
|
42
|
+
async function ensureMediaDir() {
|
|
43
|
+
const mediaDir = resolveMediaDir();
|
|
44
|
+
await fs$1.mkdir(mediaDir, {
|
|
45
|
+
recursive: true,
|
|
46
|
+
mode: 448
|
|
47
|
+
});
|
|
48
|
+
return mediaDir;
|
|
49
|
+
}
|
|
50
|
+
async function saveMediaBuffer(buffer, contentType, subdir = "inbound", maxBytes = MAX_BYTES, originalFilename) {
|
|
51
|
+
if (buffer.byteLength > maxBytes) throw new Error(`Media exceeds ${(maxBytes / (1024 * 1024)).toFixed(0)}MB limit`);
|
|
52
|
+
const dir = path.join(resolveMediaDir(), subdir);
|
|
53
|
+
await fs$1.mkdir(dir, {
|
|
54
|
+
recursive: true,
|
|
55
|
+
mode: 448
|
|
56
|
+
});
|
|
57
|
+
const uuid = crypto.randomUUID();
|
|
58
|
+
const headerExt = extensionForMime(contentType?.split(";")[0]?.trim() ?? void 0);
|
|
59
|
+
const mime = await detectMime({
|
|
60
|
+
buffer,
|
|
61
|
+
headerMime: contentType
|
|
62
|
+
});
|
|
63
|
+
const ext = headerExt ?? extensionForMime(mime) ?? "";
|
|
64
|
+
let id;
|
|
65
|
+
if (originalFilename) {
|
|
66
|
+
const base = path.parse(originalFilename).name;
|
|
67
|
+
const sanitized = sanitizeFilename(base);
|
|
68
|
+
id = sanitized ? `${sanitized}---${uuid}${ext}` : `${uuid}${ext}`;
|
|
69
|
+
} else id = ext ? `${uuid}${ext}` : uuid;
|
|
70
|
+
const dest = path.join(dir, id);
|
|
71
|
+
await fs$1.writeFile(dest, buffer, { mode: MEDIA_FILE_MODE });
|
|
72
|
+
return {
|
|
73
|
+
id,
|
|
74
|
+
path: dest,
|
|
75
|
+
size: buffer.byteLength,
|
|
76
|
+
contentType: mime
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
//#endregion
|
|
81
|
+
export { saveMediaBuffer as a, getMediaDir as i, ensureMediaDir as n, extractOriginalFilename as r, MEDIA_MAX_BYTES as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as resolveConfigDir } from "./logger-
|
|
2
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
1
|
+
import { _ as resolveConfigDir } from "./logger-Bg4vIUJn.js";
|
|
2
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-CbKrfi-N.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs$1 from "node:fs/promises";
|
|
5
5
|
import crypto from "node:crypto";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import "./run-with-concurrency-CYcPpb5E.js";
|
|
2
|
+
import "./config-CMjn_DSB.js";
|
|
3
|
+
import "./logger-Bg4vIUJn.js";
|
|
4
|
+
import "./paths-Duwviem_.js";
|
|
5
|
+
import "./accounts-BvzvDHNx.js";
|
|
6
|
+
import "./plugins-BSPvol4w.js";
|
|
7
|
+
import "./thinking-gpcjIDQZ.js";
|
|
8
|
+
import "./accounts-BLOLIF6Q.js";
|
|
9
|
+
import "./send-D6nUI0S3.js";
|
|
10
|
+
import "./common-Emz6EPQM.js";
|
|
11
|
+
import { F as resolveRequesterForChildSession, M as countPendingDescendantRuns, N as countPendingDescendantRunsExcludingRun, P as isSubagentSessionRunActive, j as countActiveDescendantRuns } from "./reply-DJ3rbbnv.js";
|
|
12
|
+
import "./image-ops-CbKrfi-N.js";
|
|
13
|
+
import "./pi-embedded-helpers-B7nmCbf7.js";
|
|
14
|
+
import "./accounts-ByCKM_Y3.js";
|
|
15
|
+
import "./send-CZ6HDwDu.js";
|
|
16
|
+
import "./github-copilot-token-C0y6vp3r.js";
|
|
17
|
+
import "./paths-BQHqKGA8.js";
|
|
18
|
+
import "./send-BPEn9L0o.js";
|
|
19
|
+
import "./tokens-DAL_5WHL.js";
|
|
20
|
+
import "./audio-transcription-runner-u6tijzUS.js";
|
|
21
|
+
import "./image-DPgEp54d.js";
|
|
22
|
+
import "./chrome-6EkqVcyR.js";
|
|
23
|
+
import "./skills-CaQpr1kx.js";
|
|
24
|
+
import "./path-alias-guards-DSCFtpsd.js";
|
|
25
|
+
import "./redact-DfACyt0X.js";
|
|
26
|
+
import "./errors-9oVz7reJ.js";
|
|
27
|
+
import "./fs-safe-B26UxJny.js";
|
|
28
|
+
import "./proxy-env-D-iVYTBk.js";
|
|
29
|
+
import "./store-K6C7eOpg.js";
|
|
30
|
+
import "./tool-images-l3TE_qXt.js";
|
|
31
|
+
import "./fetch-guard-CGQ35-A_.js";
|
|
32
|
+
import "./api-key-rotation-0Xm0okk5.js";
|
|
33
|
+
import "./local-roots-T6lXDGzr.js";
|
|
34
|
+
import "./proxy-fetch-Cf3IUSDw.js";
|
|
35
|
+
import "./deliver-Cz6GluMN.js";
|
|
36
|
+
import "./commands-registry-CDHo6SSs.js";
|
|
37
|
+
import "./skill-commands-BpB2Oe8e.js";
|
|
38
|
+
import "./fetch-D3HDdlk7.js";
|
|
39
|
+
import "./diagnostic-DhO2TqL_.js";
|
|
40
|
+
import "./pi-model-discovery-DyDwYiK3.js";
|
|
41
|
+
import "./ir-4JdLS2Hz.js";
|
|
42
|
+
import "./render-95l30zcf.js";
|
|
43
|
+
import "./send-B9GVkvTk.js";
|
|
44
|
+
import "./outbound-attachment-CdHX9v0q.js";
|
|
45
|
+
import "./send-CGjI0pJn.js";
|
|
46
|
+
import "./channel-activity-BVUdxSNs.js";
|
|
47
|
+
import "./tables-CeWt6UjS.js";
|
|
48
|
+
import "./proxy-BOZmkV9K.js";
|
|
49
|
+
import "./manager-D__CoDGL.js";
|
|
50
|
+
import "./query-expansion-DxTmIU4K.js";
|
|
51
|
+
|
|
52
|
+
export { countActiveDescendantRuns, countPendingDescendantRuns, countPendingDescendantRunsExcludingRun, isSubagentSessionRunActive, resolveRequesterForChildSession };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import "./run-with-concurrency-Baa7LYZD.js";
|
|
2
|
+
import "./accounts-Cnpikxly.js";
|
|
3
|
+
import { C as countPendingDescendantRunsExcludingRun, S as countPendingDescendantRuns, T as resolveRequesterForChildSession, w as isSubagentSessionRunActive, x as countActiveDescendantRuns } from "./reply-C-WT0k-v.js";
|
|
4
|
+
import "./paths-8xF5kDne.js";
|
|
5
|
+
import "./github-copilot-token-Dy-0-Kh3.js";
|
|
6
|
+
import "./config-DMdJidZc.js";
|
|
7
|
+
import "./logger-D0ST0Irn.js";
|
|
8
|
+
import "./thinking-R15Mehif.js";
|
|
9
|
+
import "./image-ops-D0YKZqPy.js";
|
|
10
|
+
import "./pi-embedded-helpers-BMA7JWLb.js";
|
|
11
|
+
import "./plugins-CWIlxjXW.js";
|
|
12
|
+
import "./accounts-B9RVtSwn.js";
|
|
13
|
+
import "./accounts-ZkT4ovw_.js";
|
|
14
|
+
import "./send-C9jI56cY.js";
|
|
15
|
+
import "./paths-6WIn8_si.js";
|
|
16
|
+
import "./fetch-B_RcOnt9.js";
|
|
17
|
+
import "./redact-Bns9Du30.js";
|
|
18
|
+
import "./errors-s9jrwzSl.js";
|
|
19
|
+
import "./channel-activity-DAX5uVAX.js";
|
|
20
|
+
import "./path-alias-guards-DUn7Q6iW.js";
|
|
21
|
+
import "./fs-safe-CZ2NvCjz.js";
|
|
22
|
+
import "./ssrf-dGOzgEI_.js";
|
|
23
|
+
import "./fetch-guard-CEd4HUIR.js";
|
|
24
|
+
import "./local-roots-HL9eBLUg.js";
|
|
25
|
+
import "./ir-D9fxXkgD.js";
|
|
26
|
+
import "./render-HmipMDlP.js";
|
|
27
|
+
import "./tables-B3jPS9G8.js";
|
|
28
|
+
import "./send-Bjh-MMdN.js";
|
|
29
|
+
import "./send-7do64QqA.js";
|
|
30
|
+
import "./tool-images-9Hn0F1o_.js";
|
|
31
|
+
import "./target-errors-vzf_mLjC.js";
|
|
32
|
+
import "./send-DiuYhmpi.js";
|
|
33
|
+
import "./audio-transcription-runner-C4aP5aYG.js";
|
|
34
|
+
import "./tokens-C-B2SvJW.js";
|
|
35
|
+
import "./skill-commands-Cuzs_Puw.js";
|
|
36
|
+
import "./skills-RHzhTtJf.js";
|
|
37
|
+
import "./chrome-BHzykCQ9.js";
|
|
38
|
+
import "./deliver-DMb_cOF7.js";
|
|
39
|
+
import "./diagnostic-BidLPPBm.js";
|
|
40
|
+
import "./store-DQ2KuNGv.js";
|
|
41
|
+
import "./commands-registry-CRVdcP1W.js";
|
|
42
|
+
import "./image-BKaDODzM.js";
|
|
43
|
+
import "./api-key-rotation--boE2y8I.js";
|
|
44
|
+
import "./proxy-fetch-tPMv_1eB.js";
|
|
45
|
+
import "./pi-model-discovery-B6gpdlWb.js";
|
|
46
|
+
import "./send-CTsZjmvQ.js";
|
|
47
|
+
import "./outbound-attachment-BNMQOIcP.js";
|
|
48
|
+
import "./proxy-BKdNrmWL.js";
|
|
49
|
+
import "./manager-DZ9Hn0Fe.js";
|
|
50
|
+
import "./query-expansion-BCOK4OTO.js";
|
|
51
|
+
|
|
52
|
+
export { countActiveDescendantRuns, countPendingDescendantRuns, countPendingDescendantRunsExcludingRun, isSubagentSessionRunActive, resolveRequesterForChildSession };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { r as markdownToIRWithMeta } from "./ir-D9fxXkgD.js";
|
|
2
|
+
import { t as renderMarkdownWithMarkers } from "./render-HmipMDlP.js";
|
|
3
|
+
|
|
4
|
+
//#region src/markdown/tables.ts
|
|
5
|
+
const MARKDOWN_STYLE_MARKERS = {
|
|
6
|
+
bold: {
|
|
7
|
+
open: "**",
|
|
8
|
+
close: "**"
|
|
9
|
+
},
|
|
10
|
+
italic: {
|
|
11
|
+
open: "_",
|
|
12
|
+
close: "_"
|
|
13
|
+
},
|
|
14
|
+
strikethrough: {
|
|
15
|
+
open: "~~",
|
|
16
|
+
close: "~~"
|
|
17
|
+
},
|
|
18
|
+
code: {
|
|
19
|
+
open: "`",
|
|
20
|
+
close: "`"
|
|
21
|
+
},
|
|
22
|
+
code_block: {
|
|
23
|
+
open: "```\n",
|
|
24
|
+
close: "```"
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
function convertMarkdownTables(markdown, mode) {
|
|
28
|
+
if (!markdown || mode === "off") return markdown;
|
|
29
|
+
const { ir, hasTables } = markdownToIRWithMeta(markdown, {
|
|
30
|
+
linkify: false,
|
|
31
|
+
autolink: false,
|
|
32
|
+
headingStyle: "none",
|
|
33
|
+
blockquotePrefix: "",
|
|
34
|
+
tableMode: mode
|
|
35
|
+
});
|
|
36
|
+
if (!hasTables) return markdown;
|
|
37
|
+
return renderMarkdownWithMarkers(ir, {
|
|
38
|
+
styleMarkers: MARKDOWN_STYLE_MARKERS,
|
|
39
|
+
escapeText: (text) => text,
|
|
40
|
+
buildLink: (link, text) => {
|
|
41
|
+
const href = link.href.trim();
|
|
42
|
+
if (!href) return null;
|
|
43
|
+
if (!text.slice(link.start, link.end)) return null;
|
|
44
|
+
return {
|
|
45
|
+
start: link.start,
|
|
46
|
+
end: link.end,
|
|
47
|
+
open: "[",
|
|
48
|
+
close: `](${href})`
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
export { convertMarkdownTables as t };
|