squidclaw 3.0.14 → 3.0.15
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-BsypiWiC.js → accounts-BznLC9dH.js} +2 -2
- package/dist/{accounts-CojLB8gu.js → accounts-Ci60lQsY.js} +17 -17
- package/dist/{accounts-CBMZbUu2.js → accounts-Dw4ivpQU.js} +2 -2
- package/dist/{active-listener-eLf5VQ_4.js → active-listener-B5jww01z.js} +2 -2
- package/dist/{api-key-rotation-R0EeTSGR.js → api-key-rotation-C1EZFUSy.js} +2 -2
- package/dist/{audio-preflight-C2dLsMCR.js → audio-preflight-CG6H_U7W.js} +32 -32
- package/dist/{audio-transcription-runner-B7Q9WPbH.js → audio-transcription-runner-D0H4ucWV.js} +12 -12
- package/dist/{audit-membership-runtime-w23FnNAN.js → audit-membership-runtime-DyLj-uhz.js} +4 -4
- 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-B-tyheVe.js → channel-activity-CUT8qw0W.js} +3 -3
- package/dist/{chrome-3982B8u4.js → chrome-53mklS3F.js} +18 -18
- package/dist/{command-registry-CquAbyqR.js → command-registry-D-zYyZpc.js} +4 -4
- package/dist/{commands-registry-i6O3l1QI.js → commands-registry-DmH3aIGN.js} +4 -4
- package/dist/{completion-cli-8PdK97J-.js → completion-cli-ClRcwvgc.js} +1 -1
- package/dist/{completion-cli-CIM6cyBy.js → completion-cli-DhTAfX_O.js} +2 -2
- package/dist/{deliver-BLMHHSPm.js → deliver-DBhlEXOh.js} +21 -21
- package/dist/deliver-runtime-BpVWeU13.js +36 -0
- package/dist/deps-send-discord.runtime-CL6FlfRz.js +26 -0
- package/dist/deps-send-imessage.runtime-DP56C3XB.js +25 -0
- package/dist/deps-send-signal.runtime-4WUnsfj1.js +24 -0
- package/dist/deps-send-slack.runtime-BM_8OV-V.js +22 -0
- package/dist/deps-send-telegram.runtime-CL27zxrX.js +27 -0
- package/dist/deps-send-whatsapp.runtime-B0xMiMJX.js +60 -0
- package/dist/{diagnostic-CFkF5G3N.js → diagnostic-C2LLQE3X.js} +2 -2
- package/dist/{doctor-completion-DWWBwulC.js → doctor-completion-CvbhXcBA.js} +1 -1
- package/dist/{doctor-completion-CGmYWy0n.js → doctor-completion-DTHBtueI.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{plugin-sdk/errors-B8oJXuCF.js → errors-kkRuS2Cs.js} +1 -1
- package/dist/{fetch-38Yx06gt.js → fetch-CxBkawdM.js} +5 -5
- package/dist/{fetch-guard-D4vl4ujr.js → fetch-guard-fb71kZZ8.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-9UpCzUUR.js → gateway-cli-5rUG2fBn.js} +1 -1
- package/dist/{gateway-cli-CUph5Eqo.js → gateway-cli-CF1kp5f9.js} +1 -1
- package/dist/{github-copilot-token-Cw3tAXM9.js → github-copilot-token-B5cPlwaz.js} +7 -7
- package/dist/{image-UWdNg3AV.js → image-C5cdH_Hn.js} +6 -6
- package/dist/{image-ops-MgyUqvIc.js → image-ops-BSjD6uEb.js} +2 -2
- package/dist/image-runtime-B1jzvCV9.js +29 -0
- package/dist/index.js +1 -1
- package/dist/{ir-KtKnWVYv.js → ir-DM4doOj9.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-BJ7RjzPV.js → login--L7xmR80.js} +5 -5
- package/dist/{login-qr-C2dv3VjF.js → login-qr-StQBwOgw.js} +10 -10
- package/dist/{manager-Cz8NNpPk.js → manager-B5htbo-7.js} +13 -13
- package/dist/manager-runtime-CbCJ9KL0.js +18 -0
- package/dist/{model-selection-2Xl7Zx-s.js → model-selection-BfuTT3Ie.js} +43 -43
- package/dist/{onboard-DLJ_9fJU.js → onboard-BVgRwIeK.js} +1 -1
- package/dist/{onboard-aISMp4Kt.js → onboard-Vq9LkQon.js} +1 -1
- package/dist/{onboarding-Bl4RDn6W.js → onboarding-BW7AN6GP.js} +1 -1
- package/dist/{onboarding-YgRfODPk.js → onboarding-DO1ScRD8.js} +1 -1
- package/dist/{onboarding.finalize-Bm7_INHb.js → onboarding.finalize-DyoNGKAv.js} +11 -3
- package/dist/{onboarding.finalize-DQcrecUs.js → onboarding.finalize-mpPeXAsn.js} +12 -4
- package/dist/{outbound-CZO5ZCAG.js → outbound-Dp8B-7n3.js} +6 -6
- package/dist/{outbound-attachment-BBtJNyuW.js → outbound-attachment-BSZq7jTZ.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-DgpQEVa1.js → pi-embedded-CrAWjHKR.js} +162 -162
- package/dist/{pi-embedded-helpers-CkCvcpdc.js → pi-embedded-helpers-DM4KAgn-.js} +52 -52
- package/dist/{pi-model-discovery-CHdwOZiV.js → pi-model-discovery-DE0XZt9x.js} +7 -7
- package/dist/pi-model-discovery-runtime-B5s0PRpY.js +11 -0
- package/dist/{pi-tools.before-tool-call.runtime-BlLvl0eL.js → pi-tools.before-tool-call.runtime-DfLoi4qR.js} +9 -9
- package/dist/plugin-sdk/{accounts-BW7b9aIf.js → accounts-C9RGqL4T.js} +3 -3
- package/dist/plugin-sdk/{accounts-tAi-tfAf.js → accounts-CgiUq3Un.js} +2 -2
- package/dist/plugin-sdk/{accounts-De05T3_J.js → accounts-DcDj_weC.js} +2 -2
- package/dist/plugin-sdk/{active-listener-DZCohPuZ.js → active-listener-BlJ5RUzB.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-CrX0fvDj.js → api-key-rotation-Z-Qny376.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-BgPpaXum.js → audio-preflight-DXuewfE7.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-CO4tyQtQ.js → audio-transcription-runner-DSNzBBSH.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-Xl20kCBe.js → audit-membership-runtime-DHQDvH4u.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-QlTyjswN.js → channel-activity-D1afTUj8.js} +3 -3
- package/dist/plugin-sdk/{channel-web-NzpRnn9f.js → channel-web-IPKOTqU3.js} +18 -18
- package/dist/plugin-sdk/{chrome-CVbDHFaE.js → chrome-B1q83rKv.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-DSWbTWB2.js → commands-registry-DzySrtKG.js} +4 -4
- package/dist/plugin-sdk/{common-BpvaubXW.js → common-D8IL0ajZ.js} +2 -2
- package/dist/plugin-sdk/{config-DE6ibnmU.js → config-B5u_IldI.js} +7 -7
- package/dist/plugin-sdk/{deliver-86fU1nUC.js → deliver-S0Nnmc4b.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-tAQPm44B.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-DeuyKcxA.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-D9NRm877.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-DBepwGd9.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-CUWnNsmH.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-CRI0ptpU.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-CypkchYB.js +57 -0
- package/dist/plugin-sdk/{diagnostic-DwTd77di.js → diagnostic-CMOeaeBe.js} +2 -2
- package/dist/plugin-sdk/discord.js +6 -6
- package/dist/{errors-DfgAh2Ml.js → plugin-sdk/errors-9oVz7reJ.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-dmZ4U9uQ.js → fetch-guard-C_jkJc0N.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-DqCO1D4C.js → fs-safe-DFbwq9CS.js} +3 -3
- package/dist/plugin-sdk/{image-UG930mNm.js → image-C-YH4Uik.js} +6 -6
- package/dist/plugin-sdk/{image-ops-D9cweu_-.js → image-ops-57ipHrBF.js} +2 -2
- package/dist/plugin-sdk/image-runtime-BzP3HfiE.js +25 -0
- package/dist/plugin-sdk/imessage.js +2 -2
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/{ir-pigw84ir.js → ir-CYDBM_JC.js} +7 -7
- package/dist/plugin-sdk/{local-roots-CIhD7Co-.js → local-roots-BfR7HxIa.js} +4 -4
- package/dist/plugin-sdk/{logger-DIb2cGHp.js → logger-Bg4vIUJn.js} +2 -2
- package/dist/plugin-sdk/{login-DN33Ry8p.js → login-BhBKfrcu.js} +4 -4
- package/dist/plugin-sdk/{login-qr-DXZPiiDq.js → login-qr-pZv8YA21.js} +5 -5
- package/dist/plugin-sdk/{manager-cBbgCrQ7.js → manager-CNL-O6jb.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-B87hYNyb.js +15 -0
- package/dist/plugin-sdk/{outbound-attachment-C4f-OcC0.js → outbound-attachment-rsxzcJYF.js} +2 -2
- package/dist/plugin-sdk/{outbound-ux3UTEA3.js → outbound-icMF_rUc.js} +5 -5
- package/dist/plugin-sdk/{path-alias-guards-TnxupPQC.js → path-alias-guards-DA0MhfkG.js} +1 -1
- package/dist/plugin-sdk/{paths-B7_75Pdr.js → paths-CP67O8eN.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-CBAsAxOB.js → pi-embedded-helpers-8ieRSf-l.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-hrhgLkQy.js → pi-model-discovery-DSSANt82.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-C2t2kU5s.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-EL-r4x87.js → pi-tools.before-tool-call.runtime-ChLGyK0j.js} +4 -4
- package/dist/plugin-sdk/{plugins-NKOOkt_i.js → plugins-BLeJXdd2.js} +4 -4
- package/dist/plugin-sdk/{proxy-env-DooJ7AbC.js → proxy-env-CtPm4saU.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-ZPEvp58f.js → proxy-fetch-Cf3IUSDw.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-jALO1jBq.js → pw-ai-CtZSk4at.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-Bei6TaFq.js → qmd-manager-Ov9ElEfG.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-POz2za8a.js → query-expansion-CzjwW461.js} +4 -4
- package/dist/plugin-sdk/{redact-9WsNyb7S.js → redact-DfACyt0X.js} +1 -1
- package/dist/plugin-sdk/{reply-sihF_R23.js → reply-Bl5GGHri.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target-qXRaNZi8.js → resolve-outbound-target-D-0B2aK8.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-DmTrN5JG.js → run-with-concurrency-kVooFCVo.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-B6MdStWm.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-DexVGpkn.js +19 -0
- package/dist/plugin-sdk/{send-jou-S7lc.js → send-BKQRdkHg.js} +5 -5
- package/dist/plugin-sdk/{send-aWQBb6ca.js → send-BkAfzZYd.js} +8 -8
- package/dist/plugin-sdk/{send-BMv-WOpW.js → send-C7C3x6hg.js} +7 -7
- package/dist/plugin-sdk/{send-Cm6HGK-a.js → send-CGlHhdoZ.js} +6 -6
- package/dist/plugin-sdk/{send-DZB0Hlej.js → send-YldTY40c.js} +13 -13
- package/dist/plugin-sdk/{session-C98G_V4e.js → session-uS6b35hg.js} +3 -3
- package/dist/plugin-sdk/signal.js +2 -2
- package/dist/plugin-sdk/{skill-commands-_K2_qYb4.js → skill-commands-c9HTevk5.js} +4 -4
- package/dist/plugin-sdk/{skills-D58hSyfJ.js → skills-OK3LublS.js} +6 -6
- package/dist/plugin-sdk/slash-commands.runtime-JFUaFK3N.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-BP81ZOIp.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-KVmn_84j.js +16 -0
- package/dist/plugin-sdk/{store-CHxyy2Nq.js → store-BkxOV4wy.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-DZHhsl5N.js +52 -0
- package/dist/plugin-sdk/{tables-D2Q-dmPT.js → tables-8_ELoE8R.js} +1 -1
- package/dist/plugin-sdk/{thinking-0lRH3Rcl.js → thinking-TLm688bb.js} +7 -7
- package/dist/plugin-sdk/{tokens-CTIYTLWu.js → tokens-DAL_5WHL.js} +1 -1
- package/dist/plugin-sdk/{tool-images-K2kMTUHK.js → tool-images-CbObuT48.js} +2 -2
- package/dist/plugin-sdk/web-DIhuSOD-.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-DnEN6SNn.js → whatsapp-actions-DVZ223y_.js} +17 -17
- package/dist/plugin-sdk/whatsapp.js +50 -50
- package/dist/{plugins--Y8ggxrk.js → plugins-Db8j13y8.js} +11 -11
- package/dist/{program-BpSOl_1X.js → program-BJO_oaKF.js} +2 -2
- package/dist/{program-context-tphS7xu7.js → program-context-CWsWlM9-.js} +6 -6
- package/dist/{prompt-select-styled-DL2p1pfi.js → prompt-select-styled-CnWGIwST.js} +1 -1
- package/dist/{prompt-select-styled-CqnrivgC.js → prompt-select-styled-R6Iau0zv.js} +1 -1
- package/dist/{proxy-env-BAlmOqn_.js → proxy-env-bjBQWAZU.js} +1 -1
- package/dist/{plugin-sdk/proxy-fetch-Dt5BedH8.js → proxy-fetch-lH6RsRTE.js} +1 -1
- package/dist/{pw-ai-Ci7uZGTd.js → pw-ai-BMx3rnIH.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.maintenance-BUWUvg1o.js → register.maintenance-C0WLFNcv.js} +5 -5
- package/dist/{register.maintenance-CMAt3Nl8.js → register.maintenance-c4CZQhHy.js} +4 -4
- package/dist/{register.onboard-CbiTdKQX.js → register.onboard-B8LXDCnA.js} +2 -2
- package/dist/{register.onboard-1KrFhKgA.js → register.onboard-C8-hGp4-.js} +2 -2
- package/dist/{register.setup-KhsHMx2v.js → register.setup-Bw1pnWbM.js} +2 -2
- package/dist/{register.setup-Ct7W5KHu.js → register.setup-DiUpJRvj.js} +2 -2
- package/dist/{register.subclis-Z1fJCSxh.js → register.subclis-BbFUfhdj.js} +3 -3
- package/dist/{run-main-DDsH3MYf.js → run-main-Exefhxet.js} +3 -3
- package/dist/{run-with-concurrency-FczpX8ng.js → run-with-concurrency-BFR3ReeF.js} +4 -4
- package/dist/runtime-whatsapp-login.runtime-DTnWO4dr.js +13 -0
- package/dist/runtime-whatsapp-outbound.runtime-XzfTCc36.js +22 -0
- package/dist/{send-BYlxWwez.js → send-0EU-Y3Gn.js} +5 -5
- package/dist/{send-Jg_3nT2E.js → send-B92swUj4.js} +26 -26
- package/dist/{send-Je58aHGD.js → send-By-oi8SV.js} +6 -6
- package/dist/{send-CqgPl09X.js → send-C2v8GsVK.js} +7 -7
- package/dist/{send-D2tGdo2t.js → send-CKtUdJpX.js} +8 -8
- package/dist/{session-DC1-0Js7.js → session-CZ24KNcj.js} +8 -8
- package/dist/{skill-commands-BaKuTMGP.js → skill-commands-BRoRvs2q.js} +9 -9
- package/dist/{skills-BeJSK5PY.js → skills-OLKf_9cW.js} +22 -22
- package/dist/slash-commands.runtime-jY_-vStu.js +16 -0
- package/dist/slash-dispatch.runtime-BxaEpG30.js +56 -0
- package/dist/slash-skill-commands.runtime-B6vRGL-p.js +20 -0
- package/dist/{store-Ky_egzlA.js → store-Mz6VjFuy.js} +2 -2
- package/dist/subagent-registry-runtime-BNE1FIwQ.js +56 -0
- package/dist/{subsystem-BaLYRf7D.js → subsystem-6v7sWnAD.js} +14 -14
- package/dist/{tables-BlsVH8H4.js → tables-0InE37AN.js} +1 -1
- package/dist/{plugin-sdk/target-errors-BVBW25Y3.js → target-errors-B37sVq3w.js} +2 -2
- package/dist/{thinking-D9F_aLRB.js → thinking-D4AaB24F.js} +7 -7
- package/dist/{tokens-D2XhLqIz.js → tokens-DfbMVF9y.js} +1 -1
- package/dist/{tool-images-C2WK6W0J.js → tool-images-Dpl5RgN7.js} +2 -2
- package/dist/{update-cli-gLKrP8UQ.js → update-cli-CeMQxSs2.js} +4 -4
- package/dist/{update-cli-Fe17E_Xm.js → update-cli-esFXuN7Z.js} +5 -5
- package/dist/{web-D4FdtS8P.js → web-gFh8coIz.js} +55 -55
- package/dist/{whatsapp-actions-aF5qDSh_.js → whatsapp-actions-B-LXYZ6Z.js} +21 -21
- package/dist/{workspace-TqfVSQuO.js → workspace-kVMIaBrV.js} +20 -20
- package/package.json +1 -1
- package/dist/deliver-runtime-BSg7XU_9.js +0 -36
- package/dist/deps-send-discord.runtime-DpEvkdzn.js +0 -26
- package/dist/deps-send-imessage.runtime-etYmfsQ1.js +0 -25
- package/dist/deps-send-signal.runtime-4HiuvLY4.js +0 -24
- package/dist/deps-send-slack.runtime-Y5M5BNt7.js +0 -22
- package/dist/deps-send-telegram.runtime-CQ6XgUqx.js +0 -27
- package/dist/deps-send-whatsapp.runtime-B1XdeiW1.js +0 -60
- package/dist/image-runtime-3Z60UCGO.js +0 -29
- package/dist/manager-runtime-By-gmgqz.js +0 -18
- package/dist/pi-model-discovery-runtime-DiznhLrZ.js +0 -11
- package/dist/plugin-sdk/accounts-B6gye1Jd.js +0 -46
- package/dist/plugin-sdk/accounts-C-BT6Po7.js +0 -288
- package/dist/plugin-sdk/accounts-DQDXV8eB.js +0 -35
- package/dist/plugin-sdk/active-listener-CirjQdCm.js +0 -50
- package/dist/plugin-sdk/api-key-rotation-CCoQ5SD_.js +0 -181
- package/dist/plugin-sdk/audio-preflight-xnWAFqH-.js +0 -69
- package/dist/plugin-sdk/audio-transcription-runner-BDmtq7-q.js +0 -2176
- package/dist/plugin-sdk/audit-membership-runtime-B9b-zRwg.js +0 -58
- package/dist/plugin-sdk/channel-activity-JjLRpUa_.js +0 -94
- package/dist/plugin-sdk/channel-web-DNWsxhYh.js +0 -2256
- package/dist/plugin-sdk/chrome-B5PWOUbr.js +0 -2415
- package/dist/plugin-sdk/commands-registry-BKeyJUxK.js +0 -1125
- package/dist/plugin-sdk/config-FhBFLsNm.js +0 -17911
- package/dist/plugin-sdk/deliver-DEbTlzFy.js +0 -1694
- package/dist/plugin-sdk/deliver-runtime-BJHbLq-S.js +0 -32
- package/dist/plugin-sdk/deliver-runtime-CO2uP-r9.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-CDRnV2G9.js +0 -23
- package/dist/plugin-sdk/deps-send-discord.runtime-DIPW0tR4.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-B6kLsqc2.js +0 -22
- package/dist/plugin-sdk/deps-send-imessage.runtime-ByGjRa1H.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-BSQh0bHr.js +0 -21
- package/dist/plugin-sdk/deps-send-signal.runtime-Ca1awu4L.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-BFom-0ng.js +0 -19
- package/dist/plugin-sdk/deps-send-slack.runtime-CRzWCVkC.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-BWyavKp9.js +0 -24
- package/dist/plugin-sdk/deps-send-telegram.runtime-CpTtZ6JM.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-C0XcOgX1.js +0 -57
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-cC_XvHV8.js +0 -57
- package/dist/plugin-sdk/diagnostic-Dv9S12vm.js +0 -319
- package/dist/plugin-sdk/errors-CgRPdp3o.js +0 -54
- package/dist/plugin-sdk/fetch-guard-W_A4uSz2.js +0 -156
- package/dist/plugin-sdk/fs-safe-Dqmpk-Fr.js +0 -352
- package/dist/plugin-sdk/image-BSFy8d1M.js +0 -2310
- package/dist/plugin-sdk/image-ops-DN17S88I.js +0 -584
- package/dist/plugin-sdk/image-runtime-5YO31sjU.js +0 -25
- package/dist/plugin-sdk/image-runtime-Bu3DSIBB.js +0 -25
- package/dist/plugin-sdk/ir-JaPZ0yKH.js +0 -1296
- package/dist/plugin-sdk/local-roots-BTW3ifco.js +0 -186
- package/dist/plugin-sdk/logger-DDdrdbDu.js +0 -1163
- package/dist/plugin-sdk/login-BXGRny-S.js +0 -57
- package/dist/plugin-sdk/login-qr-DTs92ap8.js +0 -320
- package/dist/plugin-sdk/manager-DzFj9oHX.js +0 -3917
- package/dist/plugin-sdk/manager-runtime-Dbz_bpiL.js +0 -15
- package/dist/plugin-sdk/manager-runtime-DrpyZvO0.js +0 -15
- package/dist/plugin-sdk/outbound-CQ7uBBML.js +0 -212
- package/dist/plugin-sdk/outbound-attachment-dTE6EVdX.js +0 -19
- package/dist/plugin-sdk/path-alias-guards-gBhrAn14.js +0 -43
- package/dist/plugin-sdk/paths-C6W4VHoa.js +0 -166
- package/dist/plugin-sdk/pi-embedded-helpers-CfzQPXDC.js +0 -9627
- package/dist/plugin-sdk/pi-model-discovery-Bt6B0MAj.js +0 -134
- package/dist/plugin-sdk/pi-model-discovery-runtime-BcgXpTmL.js +0 -8
- package/dist/plugin-sdk/pi-model-discovery-runtime-SPHihgeR.js +0 -8
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DYJQxhuo.js +0 -354
- package/dist/plugin-sdk/plugins-6NxPd6TS.js +0 -864
- package/dist/plugin-sdk/pw-ai-BFK39pwE.js +0 -1938
- package/dist/plugin-sdk/qmd-manager-6bozlfFg.js +0 -1448
- package/dist/plugin-sdk/query-expansion-eeVz_aEm.js +0 -1011
- package/dist/plugin-sdk/redact-BoNEjbpF.js +0 -319
- package/dist/plugin-sdk/reply-DgcrQBKL.js +0 -98828
- package/dist/plugin-sdk/resolve-outbound-target-CbaJ-kc2.js +0 -40
- package/dist/plugin-sdk/run-with-concurrency-5DMu9szx.js +0 -1994
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-DMNRnMAJ.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-jkgyeVsN.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-DdLJJ1YC.js +0 -19
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-w9rCES1O.js +0 -19
- package/dist/plugin-sdk/send-BSoMbeqA.js +0 -3135
- package/dist/plugin-sdk/send-Byyfc20_.js +0 -503
- package/dist/plugin-sdk/send-CI-xWEs7.js +0 -2587
- package/dist/plugin-sdk/send-DzP9EJqK.js +0 -540
- package/dist/plugin-sdk/send-MlSZ82sA.js +0 -414
- package/dist/plugin-sdk/session-DFy97tfW.js +0 -169
- package/dist/plugin-sdk/skill-commands-yum46YuA.js +0 -342
- package/dist/plugin-sdk/skills-DUphJGKn.js +0 -1428
- package/dist/plugin-sdk/slash-commands.runtime-5UW5KLyR.js +0 -13
- package/dist/plugin-sdk/slash-commands.runtime-CyZybvM0.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-4oQ2P_qo.js +0 -52
- package/dist/plugin-sdk/slash-dispatch.runtime-DGI2ovR2.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-Cb1PFrG4.js +0 -16
- package/dist/plugin-sdk/slash-skill-commands.runtime-y_mOLyS7.js +0 -16
- package/dist/plugin-sdk/ssrf-B3XRWBsP.js +0 -202
- package/dist/plugin-sdk/store-DFvIhzWZ.js +0 -81
- package/dist/plugin-sdk/subagent-registry-runtime-DtKXhKtl.js +0 -52
- package/dist/plugin-sdk/subagent-registry-runtime-TxOQ-aoU.js +0 -52
- package/dist/plugin-sdk/tables-bDM_jlLP.js +0 -55
- package/dist/plugin-sdk/thinking-Bu-w5mW5.js +0 -1206
- package/dist/plugin-sdk/tokens-CLE20fRI.js +0 -52
- package/dist/plugin-sdk/tool-images-D0G_giwP.js +0 -274
- package/dist/plugin-sdk/web-DSXk7XCb.js +0 -56
- package/dist/plugin-sdk/web-wfXoGaeS.js +0 -56
- package/dist/plugin-sdk/whatsapp-actions-BOyA0Uuj.js +0 -80
- package/dist/proxy-fetch-C2v-Utgg.js +0 -38
- package/dist/runtime-whatsapp-login.runtime-nLoztrHq.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-ipj7KEHf.js +0 -22
- package/dist/slash-commands.runtime-SPLrdY5U.js +0 -16
- package/dist/slash-dispatch.runtime-BXF9mgkV.js +0 -56
- package/dist/slash-skill-commands.runtime-DbWF-siU.js +0 -20
- package/dist/subagent-registry-runtime-CqsLRf4P.js +0 -56
- package/dist/target-errors-CiNyvgLy.js +0 -195
|
@@ -1,342 +0,0 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir, r as listAgentIds, s as resolveAgentSkillsFilter } from "./run-with-concurrency-5DMu9szx.js";
|
|
2
|
-
import { c as resolveStateDir } from "./paths-8xF5kDne.js";
|
|
3
|
-
import { E as resolveUserPath, L as logVerbose, a as createSubsystemLogger, f as CONFIG_DIR } from "./logger-DDdrdbDu.js";
|
|
4
|
-
import { t as createAsyncLock } from "./json-files-DJe5SBCd.js";
|
|
5
|
-
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-DUphJGKn.js";
|
|
6
|
-
import { i as listChatCommands } from "./commands-registry-BKeyJUxK.js";
|
|
7
|
-
import fs from "node:fs";
|
|
8
|
-
import path from "node:path";
|
|
9
|
-
import os from "node:os";
|
|
10
|
-
import { randomBytes, randomUUID } from "node:crypto";
|
|
11
|
-
import chokidar from "chokidar";
|
|
12
|
-
|
|
13
|
-
//#region src/infra/pairing-files.ts
|
|
14
|
-
function resolvePairingPaths(baseDir, subdir) {
|
|
15
|
-
const root = baseDir ?? resolveStateDir();
|
|
16
|
-
const dir = path.join(root, subdir);
|
|
17
|
-
return {
|
|
18
|
-
dir,
|
|
19
|
-
pendingPath: path.join(dir, "pending.json"),
|
|
20
|
-
pairedPath: path.join(dir, "paired.json")
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function pruneExpiredPending(pendingById, nowMs, ttlMs) {
|
|
24
|
-
for (const [id, req] of Object.entries(pendingById)) if (nowMs - req.ts > ttlMs) delete pendingById[id];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region src/infra/pairing-pending.ts
|
|
29
|
-
async function rejectPendingPairingRequest(params) {
|
|
30
|
-
const state = await params.loadState();
|
|
31
|
-
const pending = state.pendingById[params.requestId];
|
|
32
|
-
if (!pending) return null;
|
|
33
|
-
delete state.pendingById[params.requestId];
|
|
34
|
-
await params.persistState(state);
|
|
35
|
-
return {
|
|
36
|
-
requestId: params.requestId,
|
|
37
|
-
[params.idKey]: params.getId(pending)
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region src/infra/pairing-token.ts
|
|
43
|
-
const PAIRING_TOKEN_BYTES = 32;
|
|
44
|
-
function generatePairingToken() {
|
|
45
|
-
return randomBytes(PAIRING_TOKEN_BYTES).toString("base64url");
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region src/agents/skills/refresh.ts
|
|
50
|
-
const log$1 = createSubsystemLogger("gateway/skills");
|
|
51
|
-
const listeners = /* @__PURE__ */ new Set();
|
|
52
|
-
const workspaceVersions = /* @__PURE__ */ new Map();
|
|
53
|
-
const watchers = /* @__PURE__ */ new Map();
|
|
54
|
-
let globalVersion = 0;
|
|
55
|
-
const DEFAULT_SKILLS_WATCH_IGNORED = [
|
|
56
|
-
/(^|[\\/])\.git([\\/]|$)/,
|
|
57
|
-
/(^|[\\/])node_modules([\\/]|$)/,
|
|
58
|
-
/(^|[\\/])dist([\\/]|$)/,
|
|
59
|
-
/(^|[\\/])\.venv([\\/]|$)/,
|
|
60
|
-
/(^|[\\/])venv([\\/]|$)/,
|
|
61
|
-
/(^|[\\/])__pycache__([\\/]|$)/,
|
|
62
|
-
/(^|[\\/])\.mypy_cache([\\/]|$)/,
|
|
63
|
-
/(^|[\\/])\.pytest_cache([\\/]|$)/,
|
|
64
|
-
/(^|[\\/])build([\\/]|$)/,
|
|
65
|
-
/(^|[\\/])\.cache([\\/]|$)/
|
|
66
|
-
];
|
|
67
|
-
function bumpVersion(current) {
|
|
68
|
-
const now = Date.now();
|
|
69
|
-
return now <= current ? current + 1 : now;
|
|
70
|
-
}
|
|
71
|
-
function emit(event) {
|
|
72
|
-
for (const listener of listeners) try {
|
|
73
|
-
listener(event);
|
|
74
|
-
} catch (err) {
|
|
75
|
-
log$1.warn(`skills change listener failed: ${String(err)}`);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
function resolveWatchPaths(workspaceDir, config) {
|
|
79
|
-
const paths = [];
|
|
80
|
-
if (workspaceDir.trim()) {
|
|
81
|
-
paths.push(path.join(workspaceDir, "skills"));
|
|
82
|
-
paths.push(path.join(workspaceDir, ".agents", "skills"));
|
|
83
|
-
}
|
|
84
|
-
paths.push(path.join(CONFIG_DIR, "skills"));
|
|
85
|
-
paths.push(path.join(os.homedir(), ".agents", "skills"));
|
|
86
|
-
const extraDirs = (config?.skills?.load?.extraDirs ?? []).map((d) => typeof d === "string" ? d.trim() : "").filter(Boolean).map((dir) => resolveUserPath(dir));
|
|
87
|
-
paths.push(...extraDirs);
|
|
88
|
-
const pluginSkillDirs = resolvePluginSkillDirs({
|
|
89
|
-
workspaceDir,
|
|
90
|
-
config
|
|
91
|
-
});
|
|
92
|
-
paths.push(...pluginSkillDirs);
|
|
93
|
-
return paths;
|
|
94
|
-
}
|
|
95
|
-
function toWatchGlobRoot(raw) {
|
|
96
|
-
return raw.replaceAll("\\", "/").replace(/\/+$/, "");
|
|
97
|
-
}
|
|
98
|
-
function resolveWatchTargets(workspaceDir, config) {
|
|
99
|
-
const targets = /* @__PURE__ */ new Set();
|
|
100
|
-
for (const root of resolveWatchPaths(workspaceDir, config)) {
|
|
101
|
-
const globRoot = toWatchGlobRoot(root);
|
|
102
|
-
targets.add(`${globRoot}/SKILL.md`);
|
|
103
|
-
targets.add(`${globRoot}/*/SKILL.md`);
|
|
104
|
-
}
|
|
105
|
-
return Array.from(targets).toSorted();
|
|
106
|
-
}
|
|
107
|
-
function bumpSkillsSnapshotVersion(params) {
|
|
108
|
-
const reason = params?.reason ?? "manual";
|
|
109
|
-
const changedPath = params?.changedPath;
|
|
110
|
-
if (params?.workspaceDir) {
|
|
111
|
-
const next = bumpVersion(workspaceVersions.get(params.workspaceDir) ?? 0);
|
|
112
|
-
workspaceVersions.set(params.workspaceDir, next);
|
|
113
|
-
emit({
|
|
114
|
-
workspaceDir: params.workspaceDir,
|
|
115
|
-
reason,
|
|
116
|
-
changedPath
|
|
117
|
-
});
|
|
118
|
-
return next;
|
|
119
|
-
}
|
|
120
|
-
globalVersion = bumpVersion(globalVersion);
|
|
121
|
-
emit({
|
|
122
|
-
reason,
|
|
123
|
-
changedPath
|
|
124
|
-
});
|
|
125
|
-
return globalVersion;
|
|
126
|
-
}
|
|
127
|
-
function getSkillsSnapshotVersion(workspaceDir) {
|
|
128
|
-
if (!workspaceDir) return globalVersion;
|
|
129
|
-
const local = workspaceVersions.get(workspaceDir) ?? 0;
|
|
130
|
-
return Math.max(globalVersion, local);
|
|
131
|
-
}
|
|
132
|
-
function ensureSkillsWatcher(params) {
|
|
133
|
-
const workspaceDir = params.workspaceDir.trim();
|
|
134
|
-
if (!workspaceDir) return;
|
|
135
|
-
const watchEnabled = params.config?.skills?.load?.watch !== false;
|
|
136
|
-
const debounceMsRaw = params.config?.skills?.load?.watchDebounceMs;
|
|
137
|
-
const debounceMs = typeof debounceMsRaw === "number" && Number.isFinite(debounceMsRaw) ? Math.max(0, debounceMsRaw) : 250;
|
|
138
|
-
const existing = watchers.get(workspaceDir);
|
|
139
|
-
if (!watchEnabled) {
|
|
140
|
-
if (existing) {
|
|
141
|
-
watchers.delete(workspaceDir);
|
|
142
|
-
if (existing.timer) clearTimeout(existing.timer);
|
|
143
|
-
existing.watcher.close().catch(() => {});
|
|
144
|
-
}
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
const watchTargets = resolveWatchTargets(workspaceDir, params.config);
|
|
148
|
-
const pathsKey = watchTargets.join("|");
|
|
149
|
-
if (existing && existing.pathsKey === pathsKey && existing.debounceMs === debounceMs) return;
|
|
150
|
-
if (existing) {
|
|
151
|
-
watchers.delete(workspaceDir);
|
|
152
|
-
if (existing.timer) clearTimeout(existing.timer);
|
|
153
|
-
existing.watcher.close().catch(() => {});
|
|
154
|
-
}
|
|
155
|
-
const watcher = chokidar.watch(watchTargets, {
|
|
156
|
-
ignoreInitial: true,
|
|
157
|
-
awaitWriteFinish: {
|
|
158
|
-
stabilityThreshold: debounceMs,
|
|
159
|
-
pollInterval: 100
|
|
160
|
-
},
|
|
161
|
-
ignored: DEFAULT_SKILLS_WATCH_IGNORED
|
|
162
|
-
});
|
|
163
|
-
const state = {
|
|
164
|
-
watcher,
|
|
165
|
-
pathsKey,
|
|
166
|
-
debounceMs
|
|
167
|
-
};
|
|
168
|
-
const schedule = (changedPath) => {
|
|
169
|
-
state.pendingPath = changedPath ?? state.pendingPath;
|
|
170
|
-
if (state.timer) clearTimeout(state.timer);
|
|
171
|
-
state.timer = setTimeout(() => {
|
|
172
|
-
const pendingPath = state.pendingPath;
|
|
173
|
-
state.pendingPath = void 0;
|
|
174
|
-
state.timer = void 0;
|
|
175
|
-
bumpSkillsSnapshotVersion({
|
|
176
|
-
workspaceDir,
|
|
177
|
-
reason: "watch",
|
|
178
|
-
changedPath: pendingPath
|
|
179
|
-
});
|
|
180
|
-
}, debounceMs);
|
|
181
|
-
};
|
|
182
|
-
watcher.on("add", (p) => schedule(p));
|
|
183
|
-
watcher.on("change", (p) => schedule(p));
|
|
184
|
-
watcher.on("unlink", (p) => schedule(p));
|
|
185
|
-
watcher.on("error", (err) => {
|
|
186
|
-
log$1.warn(`skills watcher error (${workspaceDir}): ${String(err)}`);
|
|
187
|
-
});
|
|
188
|
-
watchers.set(workspaceDir, state);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
//#endregion
|
|
192
|
-
//#region src/infra/node-pairing.ts
|
|
193
|
-
const PENDING_TTL_MS = 300 * 1e3;
|
|
194
|
-
const withLock = createAsyncLock();
|
|
195
|
-
|
|
196
|
-
//#endregion
|
|
197
|
-
//#region src/infra/skills-remote.ts
|
|
198
|
-
const log = createSubsystemLogger("gateway/skills-remote");
|
|
199
|
-
const remoteNodes = /* @__PURE__ */ new Map();
|
|
200
|
-
function isMacPlatform(platform, deviceFamily) {
|
|
201
|
-
const platformNorm = String(platform ?? "").trim().toLowerCase();
|
|
202
|
-
const familyNorm = String(deviceFamily ?? "").trim().toLowerCase();
|
|
203
|
-
if (platformNorm.includes("mac")) return true;
|
|
204
|
-
if (platformNorm.includes("darwin")) return true;
|
|
205
|
-
if (familyNorm === "mac") return true;
|
|
206
|
-
return false;
|
|
207
|
-
}
|
|
208
|
-
function supportsSystemRun(commands) {
|
|
209
|
-
return Array.isArray(commands) && commands.includes("system.run");
|
|
210
|
-
}
|
|
211
|
-
function getRemoteSkillEligibility() {
|
|
212
|
-
const macNodes = [...remoteNodes.values()].filter((node) => isMacPlatform(node.platform, node.deviceFamily) && supportsSystemRun(node.commands));
|
|
213
|
-
if (macNodes.length === 0) return;
|
|
214
|
-
const bins = /* @__PURE__ */ new Set();
|
|
215
|
-
for (const node of macNodes) for (const bin of node.bins) bins.add(bin);
|
|
216
|
-
const labels = macNodes.map((node) => node.displayName ?? node.nodeId).filter(Boolean);
|
|
217
|
-
return {
|
|
218
|
-
platforms: ["darwin"],
|
|
219
|
-
hasBin: (bin) => bins.has(bin),
|
|
220
|
-
hasAnyBin: (required) => required.some((bin) => bins.has(bin)),
|
|
221
|
-
note: labels.length > 0 ? `Remote macOS node available (${labels.join(", ")}). Run macOS-only skills via nodes.run on that node.` : "Remote macOS node available. Run macOS-only skills via nodes.run on that node."
|
|
222
|
-
};
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
//#endregion
|
|
226
|
-
//#region src/auto-reply/skill-commands.ts
|
|
227
|
-
function listReservedChatSlashCommandNames(extraNames = []) {
|
|
228
|
-
const reserved = /* @__PURE__ */ new Set();
|
|
229
|
-
for (const command of listChatCommands()) {
|
|
230
|
-
if (command.nativeName) reserved.add(command.nativeName.toLowerCase());
|
|
231
|
-
for (const alias of command.textAliases) {
|
|
232
|
-
const trimmed = alias.trim();
|
|
233
|
-
if (!trimmed.startsWith("/")) continue;
|
|
234
|
-
reserved.add(trimmed.slice(1).toLowerCase());
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
for (const name of extraNames) {
|
|
238
|
-
const trimmed = name.trim().toLowerCase();
|
|
239
|
-
if (trimmed) reserved.add(trimmed);
|
|
240
|
-
}
|
|
241
|
-
return reserved;
|
|
242
|
-
}
|
|
243
|
-
function listSkillCommandsForWorkspace(params) {
|
|
244
|
-
return buildWorkspaceSkillCommandSpecs(params.workspaceDir, {
|
|
245
|
-
config: params.cfg,
|
|
246
|
-
skillFilter: params.skillFilter,
|
|
247
|
-
eligibility: { remote: getRemoteSkillEligibility() },
|
|
248
|
-
reservedNames: listReservedChatSlashCommandNames()
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
function listSkillCommandsForAgents(params) {
|
|
252
|
-
const mergeSkillFilters = (existing, incoming) => {
|
|
253
|
-
if (existing === void 0 || incoming === void 0) return;
|
|
254
|
-
if (existing.length === 0) return Array.from(new Set(incoming));
|
|
255
|
-
if (incoming.length === 0) return Array.from(new Set(existing));
|
|
256
|
-
return Array.from(new Set([...existing, ...incoming]));
|
|
257
|
-
};
|
|
258
|
-
const agentIds = params.agentIds ?? listAgentIds(params.cfg);
|
|
259
|
-
const used = listReservedChatSlashCommandNames();
|
|
260
|
-
const entries = [];
|
|
261
|
-
const workspaceFilters = /* @__PURE__ */ new Map();
|
|
262
|
-
for (const agentId of agentIds) {
|
|
263
|
-
const workspaceDir = resolveAgentWorkspaceDir(params.cfg, agentId);
|
|
264
|
-
if (!fs.existsSync(workspaceDir)) {
|
|
265
|
-
logVerbose(`Skipping agent "${agentId}": workspace does not exist: ${workspaceDir}`);
|
|
266
|
-
continue;
|
|
267
|
-
}
|
|
268
|
-
let canonicalDir;
|
|
269
|
-
try {
|
|
270
|
-
canonicalDir = fs.realpathSync(workspaceDir);
|
|
271
|
-
} catch {
|
|
272
|
-
logVerbose(`Skipping agent "${agentId}": cannot resolve workspace: ${workspaceDir}`);
|
|
273
|
-
continue;
|
|
274
|
-
}
|
|
275
|
-
const skillFilter = resolveAgentSkillsFilter(params.cfg, agentId);
|
|
276
|
-
const existing = workspaceFilters.get(canonicalDir);
|
|
277
|
-
if (existing) {
|
|
278
|
-
existing.skillFilter = mergeSkillFilters(existing.skillFilter, skillFilter);
|
|
279
|
-
continue;
|
|
280
|
-
}
|
|
281
|
-
workspaceFilters.set(canonicalDir, {
|
|
282
|
-
workspaceDir,
|
|
283
|
-
skillFilter
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
for (const { workspaceDir, skillFilter } of workspaceFilters.values()) {
|
|
287
|
-
const commands = buildWorkspaceSkillCommandSpecs(workspaceDir, {
|
|
288
|
-
config: params.cfg,
|
|
289
|
-
skillFilter,
|
|
290
|
-
eligibility: { remote: getRemoteSkillEligibility() },
|
|
291
|
-
reservedNames: used
|
|
292
|
-
});
|
|
293
|
-
for (const command of commands) {
|
|
294
|
-
used.add(command.name.toLowerCase());
|
|
295
|
-
entries.push(command);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
return entries;
|
|
299
|
-
}
|
|
300
|
-
function normalizeSkillCommandLookup(value) {
|
|
301
|
-
return value.trim().toLowerCase().replace(/[\s_]+/g, "-");
|
|
302
|
-
}
|
|
303
|
-
function findSkillCommand(skillCommands, rawName) {
|
|
304
|
-
const trimmed = rawName.trim();
|
|
305
|
-
if (!trimmed) return;
|
|
306
|
-
const lowered = trimmed.toLowerCase();
|
|
307
|
-
const normalized = normalizeSkillCommandLookup(trimmed);
|
|
308
|
-
return skillCommands.find((entry) => {
|
|
309
|
-
if (entry.name.toLowerCase() === lowered) return true;
|
|
310
|
-
if (entry.skillName.toLowerCase() === lowered) return true;
|
|
311
|
-
return normalizeSkillCommandLookup(entry.name) === normalized || normalizeSkillCommandLookup(entry.skillName) === normalized;
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
function resolveSkillCommandInvocation(params) {
|
|
315
|
-
const trimmed = params.commandBodyNormalized.trim();
|
|
316
|
-
if (!trimmed.startsWith("/")) return null;
|
|
317
|
-
const match = trimmed.match(/^\/([^\s]+)(?:\s+([\s\S]+))?$/);
|
|
318
|
-
if (!match) return null;
|
|
319
|
-
const commandName = match[1]?.trim().toLowerCase();
|
|
320
|
-
if (!commandName) return null;
|
|
321
|
-
if (commandName === "skill") {
|
|
322
|
-
const remainder = match[2]?.trim();
|
|
323
|
-
if (!remainder) return null;
|
|
324
|
-
const skillMatch = remainder.match(/^([^\s]+)(?:\s+([\s\S]+))?$/);
|
|
325
|
-
if (!skillMatch) return null;
|
|
326
|
-
const skillCommand = findSkillCommand(params.skillCommands, skillMatch[1] ?? "");
|
|
327
|
-
if (!skillCommand) return null;
|
|
328
|
-
return {
|
|
329
|
-
command: skillCommand,
|
|
330
|
-
args: skillMatch[2]?.trim() || void 0
|
|
331
|
-
};
|
|
332
|
-
}
|
|
333
|
-
const command = params.skillCommands.find((entry) => entry.name.toLowerCase() === commandName);
|
|
334
|
-
if (!command) return null;
|
|
335
|
-
return {
|
|
336
|
-
command,
|
|
337
|
-
args: match[2]?.trim() || void 0
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
//#endregion
|
|
342
|
-
export { getRemoteSkillEligibility as a, generatePairingToken as c, resolvePairingPaths as d, resolveSkillCommandInvocation as i, rejectPendingPairingRequest as l, listSkillCommandsForAgents as n, ensureSkillsWatcher as o, listSkillCommandsForWorkspace as r, getSkillsSnapshotVersion as s, listReservedChatSlashCommandNames as t, pruneExpiredPending as u };
|