@termix-it/cryptoclaw 1.1.8 → 1.1.9
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-4l7ba973.js → accounts-7nNRr4R3.js} +1 -1
- package/dist/{accounts-k5nTdi32.js → accounts-BIr_ieyH.js} +1 -1
- package/dist/{accounts-CAjupeYV.js → accounts-CKpnUMZd.js} +16 -16
- package/dist/{active-listener-D9FARjMd.js → active-listener-ClXqZUsD.js} +1 -1
- package/dist/{api-key-rotation-C-Q6XdUW.js → api-key-rotation-CUJC6xSi.js} +2 -2
- package/dist/{audio-preflight-C7kt2vOu.js → audio-preflight--MDRrrlB.js} +33 -33
- package/dist/{audio-transcription-runner-CawngPvE.js → audio-transcription-runner-CgLX4N3r.js} +12 -12
- package/dist/{audit-membership-runtime-C6dnIaXJ.js → audit-membership-runtime-Ch2lLD_u.js} +5 -5
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +52 -52
- package/dist/bundled/bootstrap-extra-files/handler.js +7 -7
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +52 -52
- package/dist/bundled/soul-evil/handler.js +5 -5
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-Hho38eZq.js → channel-activity-32lmgAZH.js} +3 -3
- package/dist/{chrome-palWvTtp.js → chrome-CtEQV_6p.js} +18 -18
- package/dist/{commands-registry-A3LstXeY.js → commands-registry-FnGtnvb0.js} +4 -4
- package/dist/{deliver-JkYjt9Qz.js → deliver-32OxViWG.js} +20 -20
- package/dist/deliver-runtime-DGYhS7K1.js +37 -0
- package/dist/deps-send-discord.runtime-BJmezHoH.js +27 -0
- package/dist/deps-send-imessage.runtime-Dsq-J7FK.js +26 -0
- package/dist/deps-send-signal.runtime-2kRNCAkm.js +25 -0
- package/dist/deps-send-slack.runtime-DoM54spr.js +23 -0
- package/dist/deps-send-telegram.runtime-DGtmyBk2.js +28 -0
- package/dist/deps-send-whatsapp.runtime-B_ZiouDf.js +61 -0
- package/dist/{diagnostic-BGtFj4tU.js → diagnostic-UO82MQjo.js} +2 -2
- package/dist/{plugin-sdk/errors-B2jpHiod.js → errors-BwBpGOBV.js} +1 -1
- package/dist/{fetch-_iocPLV2.js → fetch-DozurFmr.js} +5 -5
- package/dist/{fetch-guard-CiQUuV0r.js → fetch-guard-XtFb6zM7.js} +2 -2
- package/dist/{frontmatter-Dn68lQ_o.js → frontmatter-Cy6ESb-O.js} +5 -5
- package/dist/{fs-safe-BLpOReWZ.js → fs-safe-YxZ8RAEw.js} +4 -4
- package/dist/{github-copilot-token-DDa7O18e.js → github-copilot-token-D7knylDF.js} +7 -7
- package/dist/{image-BlRI3dXw.js → image-B2LPzwKF.js} +6 -6
- package/dist/{image-ops-D7mq-4y1.js → image-ops-gm8VfGiD.js} +2 -2
- package/dist/image-runtime-BL3D208M.js +30 -0
- package/dist/{ir-Dpg87zYv.js → ir-B7IR3m4T.js} +7 -7
- package/dist/{legacy-names-BAiRv0I2.js → legacy-names-TrN6kryB.js} +1 -1
- package/dist/llm-slug-generator.js +52 -52
- package/dist/{logger-C53B395N.js → logger-CV2IWsAW.js} +1 -1
- package/dist/{login-CHsCISh4.js → login-C6CkDgLi.js} +5 -5
- package/dist/{login-qr-BEW3jIOt.js → login-qr-WEr1WQvg.js} +11 -11
- package/dist/{manager-Dfrejf6z.js → manager-BWh3BVp1.js} +13 -13
- package/dist/manager-runtime-CJHBIXOb.js +19 -0
- package/dist/{model-selection-e9hodq0l.js → model-selection-BiqOlgFe.js} +48 -48
- package/dist/{outbound-BZqL8UdJ.js → outbound-DSVwKSv4.js} +6 -6
- package/dist/{outbound-attachment-wzHGF-Is.js → outbound-attachment-CcY_Rg0-.js} +2 -2
- package/dist/{path-alias-guards-It4BBRdm.js → path-alias-guards-Gzq1eAOo.js} +1 -1
- package/dist/{paths-CZ0nrg7g.js → paths-BWg7M5Yy.js} +3 -3
- package/dist/{paths-C6TxBCvO.js → paths-Cvc9EM8Y.js} +5 -5
- package/dist/{pi-embedded-BNcbv6lg.js → pi-embedded-DkdNpxSe.js} +161 -161
- package/dist/{pi-embedded-helpers-CE9KKP1Q.js → pi-embedded-helpers-B_qa7ikD.js} +52 -52
- package/dist/{pi-model-discovery-32EFg27L.js → pi-model-discovery-FwBV8Q5J.js} +7 -7
- package/dist/pi-model-discovery-runtime-BozG-CtU.js +12 -0
- package/dist/{pi-tools.before-tool-call.runtime-BfjlGXIc.js → pi-tools.before-tool-call.runtime-2r6sdUt5.js} +10 -10
- package/dist/plugin-sdk/{accounts-Bpe8MpMj.js → accounts-B9ydKoYC.js} +2 -2
- package/dist/plugin-sdk/{accounts-BY3xA55d.js → accounts-DAebrX4r.js} +3 -3
- package/dist/plugin-sdk/{accounts-Dg9HUb5m.js → accounts-DxlJAHNG.js} +2 -2
- package/dist/plugin-sdk/{active-listener-kZJwBchj.js → active-listener-D7Jidx1U.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-wZaR5O8n.js → api-key-rotation-d8cmHGhi.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-DOR1d1hn.js → audio-preflight-vJtQi-4_.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-DWncgs4M.js → audio-transcription-runner-Bfv_TVP4.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-DvBMQsDC.js → audit-membership-runtime-BpoX61hv.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-VsWwcNLD.js → channel-activity-1LCR07HU.js} +3 -3
- package/dist/plugin-sdk/{channel-web-B5wxTr-8.js → channel-web-QSsZFIjA.js} +18 -18
- package/dist/plugin-sdk/{chrome-pOAzXzzJ.js → chrome-CbDAFNHQ.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-pKaQ4EJQ.js → commands-registry-D8gIWgM5.js} +4 -4
- package/dist/plugin-sdk/{common-BlJfaliy.js → common-tbQtS1zp.js} +2 -2
- package/dist/plugin-sdk/{config-CURxPU7B.js → config-xkSrCec1.js} +7 -7
- package/dist/plugin-sdk/{deliver-BpfQj4BK.js → deliver-D_Ofr_vN.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-DkyFlw6M.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-Bpqp608e.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-CEnAbBMn.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-DLQqphLL.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-BdLrhl4O.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-WQqnuFdj.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-BljFnkyd.js +57 -0
- package/dist/plugin-sdk/{diagnostic-Bi3FO6Il.js → diagnostic-GjXXC_Pm.js} +2 -2
- package/dist/{errors-C1YF712P.js → plugin-sdk/errors-Cn3JyiMn.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-d5MU-Fi7.js → fetch-guard-ClYTU8LW.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-D57cyrSh.js → fs-safe-Bs9BHEmp.js} +3 -3
- package/dist/plugin-sdk/{image-DWnmWvGr.js → image-_uAwPFe2.js} +6 -6
- package/dist/plugin-sdk/{image-ops-BPP3M0yA.js → image-ops-CsS12Rhg.js} +2 -2
- package/dist/plugin-sdk/image-runtime-0p3JEsb2.js +25 -0
- package/dist/plugin-sdk/{ir-A16Z9dUw.js → ir-DvWncgWp.js} +7 -7
- package/dist/plugin-sdk/{local-roots-BQJNDffC.js → local-roots-Bh7FKHd2.js} +4 -4
- package/dist/plugin-sdk/{logger-Bl138Nx7.js → logger-Dj4IX2UB.js} +2 -2
- package/dist/plugin-sdk/{login-DXLuzgCO.js → login-CYqSEzPN.js} +4 -4
- package/dist/plugin-sdk/{login-qr-DdTcNEXK.js → login-qr-CXXXR_1G.js} +5 -5
- package/dist/plugin-sdk/{manager-ClrE1ahD.js → manager-Dj-hy8oN.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-CzGyKWqZ.js +15 -0
- package/dist/plugin-sdk/{outbound-wmFCJQyk.js → outbound-IhJ6xLv1.js} +5 -5
- package/dist/plugin-sdk/{outbound-attachment-C1GuoigP.js → outbound-attachment-Aa86Zp9X.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-Bsi-4XND.js → path-alias-guards-CtnE1WrY.js} +1 -1
- package/dist/plugin-sdk/{paths-Cb2hB2o0.js → paths-Mew07RGP.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-VYetsWcU.js → pi-embedded-helpers-B_iabXhh.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-Bs1t1vHG.js → pi-model-discovery-avPx6Ptq.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-SwUqnyFp.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-133Rh_QB.js → pi-tools.before-tool-call.runtime-dixwOhKo.js} +4 -4
- package/dist/plugin-sdk/{plugins-A3lJ2lkT.js → plugins-WDZLdw8Z.js} +4 -4
- package/dist/plugin-sdk/{proxy-env-DnjPLipe.js → proxy-env-DKQK-fn1.js} +1 -1
- package/dist/{proxy-fetch-CVSmQMZt.js → plugin-sdk/proxy-fetch-rtc8GmoB.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-BhB6bXtS.js → pw-ai-eYJyyMZX.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-CmGPY3vR.js → qmd-manager-mWoTdSFY.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-oxEhEDk_.js → query-expansion-4V3Vjs8V.js} +4 -4
- package/dist/plugin-sdk/{redact-C3rEm8A0.js → redact-CBwV828t.js} +1 -1
- package/dist/plugin-sdk/{reply-D3osmjmY.js → reply-RK8_OxAW.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target-K2KiC0bi.js → resolve-outbound-target-Dk3UdF5C.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-FfGqq3TC.js → run-with-concurrency-KlQQobSI.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BxBLO_MD.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-Dv_fcg58.js +19 -0
- package/dist/plugin-sdk/{send-C5J_PXzR.js → send-BTWIW3-9.js} +8 -8
- package/dist/plugin-sdk/{send-70p3gkTA.js → send-CG8TGQTM.js} +7 -7
- package/dist/plugin-sdk/{send-DdNdK-kV.js → send-CSJIozmo.js} +5 -5
- package/dist/plugin-sdk/{send-DjqI2JpQ.js → send-D50Hdj7y.js} +13 -13
- package/dist/plugin-sdk/{send-CqaHDOLs.js → send-wEJ-5g9f.js} +6 -6
- package/dist/plugin-sdk/{session-BBm3qP5l.js → session-CDTFGpPr.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-B_tuCFSd.js → skill-commands-X5RX1jW3.js} +4 -4
- package/dist/plugin-sdk/{skills-BG1gHeJ_.js → skills-v1KdkGto.js} +6 -6
- package/dist/plugin-sdk/slash-commands.runtime-MtqQ0dUA.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-vedDymM6.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-BraY0iT6.js +16 -0
- package/dist/plugin-sdk/{store-C3Z3fpIY.js → store-DtdqEbDW.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-DH1Lu5_z.js +52 -0
- package/dist/plugin-sdk/{tables-BfXi9ML_.js → tables-D5d9mqkg.js} +1 -1
- package/dist/plugin-sdk/{thinking-J6jgjmDK.js → thinking-CCdKzGau.js} +7 -7
- package/dist/plugin-sdk/{tokens-DMbd3-Ct.js → tokens-D2fpVQt3.js} +1 -1
- package/dist/plugin-sdk/{tool-images-BtzvC48Z.js → tool-images-B4KNq2sg.js} +2 -2
- package/dist/plugin-sdk/web-DOQLvU76.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-C4kVobIE.js → whatsapp-actions-Bi_hJ-Cq.js} +17 -17
- package/dist/plugin-sdk/whatsapp.js +50 -50
- package/dist/{plugins-rc2l4VJe.js → plugins-Burzc1_i.js} +10 -10
- package/dist/{proxy-env-C2sbN0UU.js → proxy-env-C05eD8Tt.js} +1 -1
- package/dist/{plugin-sdk/proxy-fetch-C-fXKPD2.js → proxy-fetch-C_2Ejh5T.js} +1 -1
- package/dist/{pw-ai-CWE0qzH7.js → pw-ai-BbxaV2Cy.js} +15 -15
- package/dist/{qmd-manager-DMSLC2iu.js → qmd-manager-JjGGwn8R.js} +11 -11
- package/dist/{query-expansion-MI1dZ5Nj.js → query-expansion-DkXzaUOH.js} +6 -6
- package/dist/{redact-BXURioma.js → redact-C-aJRv5O.js} +1 -1
- package/dist/{run-with-concurrency-C5E9gJhP.js → run-with-concurrency-CYTs7gPY.js} +4 -4
- package/dist/runtime-whatsapp-login.runtime-BU92rhCA.js +14 -0
- package/dist/runtime-whatsapp-outbound.runtime-DZy-sAPP.js +23 -0
- package/dist/{send-BlTVCcYd.js → send-ChW15YPB.js} +27 -27
- package/dist/{send-C87tIqIn.js → send-Cj0LCSvd.js} +7 -7
- package/dist/{send-BWySsurX.js → send-DDKqu28r.js} +7 -7
- package/dist/{send-OP60RbsK.js → send-hOoCA9jX.js} +6 -6
- package/dist/{send-Cpja8Q1N.js → send-q-l5fncb.js} +5 -5
- package/dist/{session-DmXsj3JD.js → session-BzKpA5X4.js} +8 -8
- package/dist/{skill-commands-DEsgUSH3.js → skill-commands-CIcvUo1A.js} +9 -9
- package/dist/{skills-OklkZyI1.js → skills-DU6_fNPx.js} +22 -22
- package/dist/slash-commands.runtime-CXJJf0jq.js +17 -0
- package/dist/slash-dispatch.runtime-CnDWfnhw.js +57 -0
- package/dist/slash-skill-commands.runtime-NPMuDGFx.js +21 -0
- package/dist/{store-BNhebBGr.js → store-DcxsUE2f.js} +2 -2
- package/dist/subagent-registry-runtime-R6EArAuY.js +57 -0
- package/dist/{subsystem-W834z9Wa.js → subsystem-CEiApUN8.js} +16 -16
- package/dist/{tables-XtcH-BaF.js → tables-DTb5mzup.js} +1 -1
- package/dist/{target-errors-CNzteBWz.js → target-errors-jNfnUab4.js} +2 -2
- package/dist/{thinking-X8yYhVf1.js → thinking-BJkp7vCP.js} +6 -6
- package/dist/{tokens-DxcVnNVJ.js → tokens-tz04P2cO.js} +1 -1
- package/dist/{tool-images-B-4ixjYn.js → tool-images-DRyUUf-X.js} +2 -2
- package/dist/{utils-D2oM4XHm.js → utils-BFS4zK3g.js} +7 -7
- package/dist/{web-B8rFiLYw.js → web-fbVaDaVW.js} +56 -56
- package/dist/{whatsapp-actions-BPIXiPAR.js → whatsapp-actions-CMHMrQzp.js} +22 -22
- package/dist/{workspace-ZgWjBCAm.js → workspace-D6GL2anS.js} +21 -21
- package/extensions/blockchain/package.json +1 -3
- package/package.json +1 -1
- package/dist/deliver-runtime-BvTbrDXE.js +0 -37
- package/dist/deps-send-discord.runtime-1mqY0Pn3.js +0 -27
- package/dist/deps-send-imessage.runtime-NAKUx6Vy.js +0 -26
- package/dist/deps-send-signal.runtime-CHqnnRXO.js +0 -25
- package/dist/deps-send-slack.runtime-CbGlCNTX.js +0 -23
- package/dist/deps-send-telegram.runtime-CgApeKta.js +0 -28
- package/dist/deps-send-whatsapp.runtime-CAPjqcnc.js +0 -61
- package/dist/image-runtime-Cp3I725X.js +0 -30
- package/dist/manager-runtime-DacMHR37.js +0 -19
- package/dist/pi-model-discovery-runtime-C8SNNnEN.js +0 -12
- package/dist/plugin-sdk/deliver-runtime-CoTMJYYS.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-4lI0eS6q.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-i11JqPLo.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-BHanWbgq.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-DIHbNRq4.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-F-_XP5zF.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-LYh1VbZJ.js +0 -57
- package/dist/plugin-sdk/image-runtime-dC0tUp3V.js +0 -25
- package/dist/plugin-sdk/manager-runtime-Ba5Qbwrz.js +0 -15
- package/dist/plugin-sdk/pi-model-discovery-runtime-CdT00Yy6.js +0 -8
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BtI3_XNc.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-1ZWHTOIM.js +0 -19
- package/dist/plugin-sdk/slash-commands.runtime-CNOgz4_9.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-DB8Pxn4H.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-NOFmKWtQ.js +0 -16
- package/dist/plugin-sdk/subagent-registry-runtime-BSpW6Un2.js +0 -52
- package/dist/plugin-sdk/web-BU7hQoaC.js +0 -56
- package/dist/runtime-whatsapp-login.runtime-BhVxslsH.js +0 -14
- package/dist/runtime-whatsapp-outbound.runtime-CFivqxoq.js +0 -23
- package/dist/slash-commands.runtime-gtQnheWz.js +0 -17
- package/dist/slash-dispatch.runtime-w1y_0I6t.js +0 -57
- package/dist/slash-skill-commands.runtime-CA_oN4df.js +0 -21
- package/dist/subagent-registry-runtime-HYpWtFUu.js +0 -57
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as resolveStateDir } from "./paths-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { c as resolveStateDir } from "./paths-Cvc9EM8Y.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-CEiApUN8.js";
|
|
3
3
|
import { C as parseAgentSessionKey, c as normalizeAgentId, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey } from "./session-key-DgdmD4k7.js";
|
|
4
|
-
import { h as resolveUserPath } from "./utils-
|
|
5
|
-
import { p as resolveDefaultAgentWorkspaceDir } from "./workspace-
|
|
4
|
+
import { h as resolveUserPath } from "./utils-BFS4zK3g.js";
|
|
5
|
+
import { p as resolveDefaultAgentWorkspaceDir } from "./workspace-D6GL2anS.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
|
|
8
8
|
//#region src/config/model-input.ts
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "./run-with-concurrency-CYTs7gPY.js";
|
|
2
|
+
import "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import "./subsystem-CEiApUN8.js";
|
|
4
|
+
import "./utils-BFS4zK3g.js";
|
|
5
|
+
import "./workspace-D6GL2anS.js";
|
|
6
|
+
import "./logger-CV2IWsAW.js";
|
|
7
|
+
import "./model-selection-BiqOlgFe.js";
|
|
8
|
+
import "./github-copilot-token-D7knylDF.js";
|
|
9
|
+
import "./legacy-names-TrN6kryB.js";
|
|
10
|
+
import "./accounts-CKpnUMZd.js";
|
|
11
|
+
import "./session-BzKpA5X4.js";
|
|
12
|
+
import { t as loginWeb } from "./login-C6CkDgLi.js";
|
|
13
|
+
|
|
14
|
+
export { loginWeb };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import "./run-with-concurrency-CYTs7gPY.js";
|
|
2
|
+
import "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import "./subsystem-CEiApUN8.js";
|
|
4
|
+
import "./utils-BFS4zK3g.js";
|
|
5
|
+
import "./workspace-D6GL2anS.js";
|
|
6
|
+
import "./logger-CV2IWsAW.js";
|
|
7
|
+
import "./model-selection-BiqOlgFe.js";
|
|
8
|
+
import "./github-copilot-token-D7knylDF.js";
|
|
9
|
+
import "./legacy-names-TrN6kryB.js";
|
|
10
|
+
import "./plugins-Burzc1_i.js";
|
|
11
|
+
import "./accounts-CKpnUMZd.js";
|
|
12
|
+
import "./image-ops-gm8VfGiD.js";
|
|
13
|
+
import "./path-alias-guards-Gzq1eAOo.js";
|
|
14
|
+
import "./fs-safe-YxZ8RAEw.js";
|
|
15
|
+
import "./proxy-env-C05eD8Tt.js";
|
|
16
|
+
import "./fetch-DozurFmr.js";
|
|
17
|
+
import "./fetch-guard-XtFb6zM7.js";
|
|
18
|
+
import "./ir-B7IR3m4T.js";
|
|
19
|
+
import "./render-BZdJrUxT.js";
|
|
20
|
+
import "./tables-DTb5mzup.js";
|
|
21
|
+
import { n as sendPollWhatsApp, t as sendMessageWhatsApp } from "./outbound-DSVwKSv4.js";
|
|
22
|
+
|
|
23
|
+
export { sendMessageWhatsApp, sendPollWhatsApp };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir } from "./paths-
|
|
2
|
-
import { c as danger, t as createSubsystemLogger, u as logVerbose } from "./subsystem-
|
|
1
|
+
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir } from "./paths-Cvc9EM8Y.js";
|
|
2
|
+
import { c as danger, t as createSubsystemLogger, u as logVerbose } from "./subsystem-CEiApUN8.js";
|
|
3
3
|
import { h as normalizeAccountId, m as DEFAULT_ACCOUNT_ID } from "./session-key-DgdmD4k7.js";
|
|
4
|
-
import { g as safeParseJson, t as CONFIG_DIR } from "./utils-
|
|
5
|
-
import { Q as readConfigFileSnapshotForWrite, Vn as resolveTelegramPreviewStreamMode, X as loadConfig, Xn as isTruthyEnvValue, et as writeConfigFile, ir as withFileLock$1 } from "./model-selection-
|
|
6
|
-
import { l as resolveTelegramAccount, n as listChannelPlugins, t as getChannelPlugin } from "./plugins-
|
|
4
|
+
import { g as safeParseJson, t as CONFIG_DIR } from "./utils-BFS4zK3g.js";
|
|
5
|
+
import { Q as readConfigFileSnapshotForWrite, Vn as resolveTelegramPreviewStreamMode, X as loadConfig, Xn as isTruthyEnvValue, et as writeConfigFile, ir as withFileLock$1 } from "./model-selection-BiqOlgFe.js";
|
|
6
|
+
import { l as resolveTelegramAccount, n as listChannelPlugins, t as getChannelPlugin } from "./plugins-Burzc1_i.js";
|
|
7
7
|
import { n as normalizeTelegramLookupTarget, r as parseTelegramTarget, t as normalizeTelegramChatId } from "./targets-yNvvUZit.js";
|
|
8
|
-
import { D as normalizeMimeType, E as kindFromMime, S as getFileExtension, T as isGifMedia } from "./image-ops-
|
|
9
|
-
import { t as redactSensitiveText } from "./redact-
|
|
10
|
-
import { i as formatUncaughtError, n as extractErrorCode, o as readErrorName, r as formatErrorMessage, t as collectErrorGraphCandidates } from "./errors-
|
|
11
|
-
import { t as hasProxyEnvConfigured } from "./proxy-env-
|
|
8
|
+
import { D as normalizeMimeType, E as kindFromMime, S as getFileExtension, T as isGifMedia } from "./image-ops-gm8VfGiD.js";
|
|
9
|
+
import { t as redactSensitiveText } from "./redact-C-aJRv5O.js";
|
|
10
|
+
import { i as formatUncaughtError, n as extractErrorCode, o as readErrorName, r as formatErrorMessage, t as collectErrorGraphCandidates } from "./errors-BwBpGOBV.js";
|
|
11
|
+
import { t as hasProxyEnvConfigured } from "./proxy-env-C05eD8Tt.js";
|
|
12
12
|
import { r as writeJsonAtomic } from "./json-files-D2dc4Wmw.js";
|
|
13
|
-
import { t as makeProxyFetch } from "./proxy-fetch-
|
|
14
|
-
import { a as loadWebMedia, n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-
|
|
13
|
+
import { t as makeProxyFetch } from "./proxy-fetch-C_2Ejh5T.js";
|
|
14
|
+
import { a as loadWebMedia, n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-B7IR3m4T.js";
|
|
15
15
|
import { t as renderMarkdownWithMarkers } from "./render-BZdJrUxT.js";
|
|
16
16
|
import { t as resolveFetch } from "./fetch-CTN5ATFT.js";
|
|
17
|
-
import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-
|
|
17
|
+
import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-32lmgAZH.js";
|
|
18
18
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-BXqJ6gxm.js";
|
|
19
19
|
import { n as normalizePollInput } from "./polls-CVGKOEN8.js";
|
|
20
20
|
import fs from "node:fs/promises";
|
|
21
21
|
import os from "node:os";
|
|
22
22
|
import path from "node:path";
|
|
23
|
-
import
|
|
24
|
-
import
|
|
23
|
+
import fs$1, { readFileSync } from "node:fs";
|
|
24
|
+
import json5 from "json5";
|
|
25
25
|
import process$1 from "node:process";
|
|
26
26
|
import crypto, { randomBytes } from "node:crypto";
|
|
27
27
|
import * as net$1 from "node:net";
|
|
@@ -81,7 +81,7 @@ function getPairingAdapter(channelId) {
|
|
|
81
81
|
//#region src/plugin-sdk/json-store.ts
|
|
82
82
|
async function readJsonFileWithFallback(filePath, fallback) {
|
|
83
83
|
try {
|
|
84
|
-
const parsed = safeParseJson(await
|
|
84
|
+
const parsed = safeParseJson(await fs$1.promises.readFile(filePath, "utf-8"));
|
|
85
85
|
if (parsed == null) return {
|
|
86
86
|
value: fallback,
|
|
87
87
|
exists: true
|
|
@@ -168,7 +168,7 @@ async function readPairingRequests(filePath) {
|
|
|
168
168
|
}
|
|
169
169
|
async function ensureJsonFile(filePath, fallback) {
|
|
170
170
|
try {
|
|
171
|
-
await
|
|
171
|
+
await fs$1.promises.access(filePath);
|
|
172
172
|
} catch {
|
|
173
173
|
await writeJsonFile(filePath, fallback);
|
|
174
174
|
}
|
|
@@ -324,7 +324,7 @@ function resolveAllowFromReadCacheOrMissing(filePath, stat) {
|
|
|
324
324
|
async function readAllowFromStateForPathWithExists(channel, filePath) {
|
|
325
325
|
let stat = null;
|
|
326
326
|
try {
|
|
327
|
-
stat = await
|
|
327
|
+
stat = await fs$1.promises.stat(filePath);
|
|
328
328
|
} catch (err) {
|
|
329
329
|
if (err.code !== "ENOENT") throw err;
|
|
330
330
|
}
|
|
@@ -367,7 +367,7 @@ async function writeAllowFromState(filePath, allowFrom) {
|
|
|
367
367
|
});
|
|
368
368
|
let stat = null;
|
|
369
369
|
try {
|
|
370
|
-
stat = await
|
|
370
|
+
stat = await fs$1.promises.stat(filePath);
|
|
371
371
|
} catch {}
|
|
372
372
|
setAllowFromReadCache(filePath, {
|
|
373
373
|
exists: true,
|
|
@@ -974,10 +974,10 @@ function resolveCronStorePath(storePath) {
|
|
|
974
974
|
}
|
|
975
975
|
async function loadCronStore(storePath) {
|
|
976
976
|
try {
|
|
977
|
-
const raw = await
|
|
977
|
+
const raw = await fs$1.promises.readFile(storePath, "utf-8");
|
|
978
978
|
let parsed;
|
|
979
979
|
try {
|
|
980
|
-
parsed =
|
|
980
|
+
parsed = json5.parse(raw);
|
|
981
981
|
} catch (err) {
|
|
982
982
|
throw new Error(`Failed to parse cron store at ${storePath}: ${String(err)}`, { cause: err });
|
|
983
983
|
}
|
|
@@ -1000,13 +1000,13 @@ async function loadCronStore(storePath) {
|
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
1002
|
async function saveCronStore(storePath, store) {
|
|
1003
|
-
await
|
|
1003
|
+
await fs$1.promises.mkdir(path.dirname(storePath), { recursive: true });
|
|
1004
1004
|
const json = JSON.stringify(store, null, 2);
|
|
1005
1005
|
const cached = serializedStoreCache.get(storePath);
|
|
1006
1006
|
if (cached === json) return;
|
|
1007
1007
|
let previous = cached ?? null;
|
|
1008
1008
|
if (previous === null) try {
|
|
1009
|
-
previous = await
|
|
1009
|
+
previous = await fs$1.promises.readFile(storePath, "utf-8");
|
|
1010
1010
|
} catch (err) {
|
|
1011
1011
|
if (err.code !== "ENOENT") throw err;
|
|
1012
1012
|
}
|
|
@@ -1015,9 +1015,9 @@ async function saveCronStore(storePath, store) {
|
|
|
1015
1015
|
return;
|
|
1016
1016
|
}
|
|
1017
1017
|
const tmp = `${storePath}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
|
|
1018
|
-
await
|
|
1018
|
+
await fs$1.promises.writeFile(tmp, json, "utf-8");
|
|
1019
1019
|
if (previous !== null) try {
|
|
1020
|
-
await
|
|
1020
|
+
await fs$1.promises.copyFile(storePath, `${storePath}.bak`);
|
|
1021
1021
|
} catch {}
|
|
1022
1022
|
await renameWithRetry(tmp, storePath);
|
|
1023
1023
|
serializedStoreCache.set(storePath, json);
|
|
@@ -1026,7 +1026,7 @@ const RENAME_MAX_RETRIES = 3;
|
|
|
1026
1026
|
const RENAME_BASE_DELAY_MS = 50;
|
|
1027
1027
|
async function renameWithRetry(src, dest) {
|
|
1028
1028
|
for (let attempt = 0; attempt <= RENAME_MAX_RETRIES; attempt++) try {
|
|
1029
|
-
await
|
|
1029
|
+
await fs$1.promises.rename(src, dest);
|
|
1030
1030
|
return;
|
|
1031
1031
|
} catch (err) {
|
|
1032
1032
|
const code = err.code;
|
|
@@ -1035,8 +1035,8 @@ async function renameWithRetry(src, dest) {
|
|
|
1035
1035
|
continue;
|
|
1036
1036
|
}
|
|
1037
1037
|
if (code === "EPERM" || code === "EEXIST") {
|
|
1038
|
-
await
|
|
1039
|
-
await
|
|
1038
|
+
await fs$1.promises.copyFile(src, dest);
|
|
1039
|
+
await fs$1.promises.unlink(src).catch(() => {});
|
|
1040
1040
|
return;
|
|
1041
1041
|
}
|
|
1042
1042
|
throw err;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as normalizeE164, h as resolveUserPath } from "./utils-
|
|
2
|
-
import { X as loadConfig } from "./model-selection-
|
|
3
|
-
import { E as kindFromMime } from "./image-ops-
|
|
4
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
5
|
-
import { s as resolveMarkdownTableMode } from "./ir-
|
|
6
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
7
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
1
|
+
import { d as normalizeE164, h as resolveUserPath } from "./utils-BFS4zK3g.js";
|
|
2
|
+
import { X as loadConfig } from "./model-selection-BiqOlgFe.js";
|
|
3
|
+
import { E as kindFromMime } from "./image-ops-gm8VfGiD.js";
|
|
4
|
+
import { t as resolveIMessageAccount } from "./accounts-BIr_ieyH.js";
|
|
5
|
+
import { s as resolveMarkdownTableMode } from "./ir-B7IR3m4T.js";
|
|
6
|
+
import { t as convertMarkdownTables } from "./tables-DTb5mzup.js";
|
|
7
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-CcY_Rg0-.js";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
9
9
|
import { createInterface } from "node:readline";
|
|
10
10
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
1
|
+
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-CEiApUN8.js";
|
|
2
2
|
import { h as normalizeAccountId, m as DEFAULT_ACCOUNT_ID } from "./session-key-DgdmD4k7.js";
|
|
3
|
-
import { S as retryAsync, X as loadConfig, x as resolveRetryConfig } from "./model-selection-
|
|
4
|
-
import { b as resolveDiscordAccount, x as normalizeDiscordToken } from "./plugins-
|
|
3
|
+
import { S as retryAsync, X as loadConfig, x as resolveRetryConfig } from "./model-selection-BiqOlgFe.js";
|
|
4
|
+
import { b as resolveDiscordAccount, x as normalizeDiscordToken } from "./plugins-Burzc1_i.js";
|
|
5
5
|
import { i as requireTargetKind, r as parseMentionPrefixOrAtUserTarget, t as buildMessagingTarget } from "./targets-CNJ368e8.js";
|
|
6
|
-
import { k as maxBytesForKind, x as extensionForMime } from "./image-ops-
|
|
7
|
-
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, m as resolveChunkMode, o as loadWebMediaRaw, s as resolveMarkdownTableMode } from "./ir-
|
|
6
|
+
import { k as maxBytesForKind, x as extensionForMime } from "./image-ops-gm8VfGiD.js";
|
|
7
|
+
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, m as resolveChunkMode, o as loadWebMediaRaw, s as resolveMarkdownTableMode } from "./ir-B7IR3m4T.js";
|
|
8
8
|
import { t as resolveFetch } from "./fetch-CTN5ATFT.js";
|
|
9
|
-
import { n as recordChannelActivity, r as createDiscordRetryRunner } from "./channel-activity-
|
|
9
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner } from "./channel-activity-32lmgAZH.js";
|
|
10
10
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-BXqJ6gxm.js";
|
|
11
11
|
import { n as normalizePollInput, t as normalizePollDurationHours } from "./polls-CVGKOEN8.js";
|
|
12
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
12
|
+
import { t as convertMarkdownTables } from "./tables-DTb5mzup.js";
|
|
13
13
|
import fs from "node:fs/promises";
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
import { promisify } from "node:util";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as logVerbose } from "./subsystem-
|
|
2
|
-
import { X as loadConfig } from "./model-selection-
|
|
3
|
-
import { i as isSilentReplyText } from "./tokens-
|
|
4
|
-
import { g as resolveSlackBotToken, p as resolveSlackAccount } from "./plugins-
|
|
1
|
+
import { u as logVerbose } from "./subsystem-CEiApUN8.js";
|
|
2
|
+
import { X as loadConfig } from "./model-selection-BiqOlgFe.js";
|
|
3
|
+
import { i as isSilentReplyText } from "./tokens-tz04P2cO.js";
|
|
4
|
+
import { g as resolveSlackBotToken, p as resolveSlackAccount } from "./plugins-Burzc1_i.js";
|
|
5
5
|
import { i as requireTargetKind, n as ensureTargetId, r as parseMentionPrefixOrAtUserTarget, t as buildMessagingTarget } from "./targets-CNJ368e8.js";
|
|
6
|
-
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
7
|
-
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-
|
|
6
|
+
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-XtFb6zM7.js";
|
|
7
|
+
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-B7IR3m4T.js";
|
|
8
8
|
import { t as renderMarkdownWithMarkers } from "./render-BZdJrUxT.js";
|
|
9
9
|
import { WebClient } from "@slack/web-api";
|
|
10
10
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { X as loadConfig } from "./model-selection-
|
|
1
|
+
import { X as loadConfig } from "./model-selection-BiqOlgFe.js";
|
|
2
2
|
import { n as generateSecureUuid } from "./secure-random-xpZo1jCG.js";
|
|
3
|
-
import { n as resolveSignalAccount } from "./accounts-
|
|
4
|
-
import { E as kindFromMime } from "./image-ops-
|
|
3
|
+
import { n as resolveSignalAccount } from "./accounts-7nNRr4R3.js";
|
|
4
|
+
import { E as kindFromMime } from "./image-ops-gm8VfGiD.js";
|
|
5
5
|
import { n as fetchWithTimeout } from "./fetch-timeout-CSrVj6X7.js";
|
|
6
|
-
import { n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-
|
|
6
|
+
import { n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-B7IR3m4T.js";
|
|
7
7
|
import { t as resolveFetch } from "./fetch-CTN5ATFT.js";
|
|
8
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
8
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-CcY_Rg0-.js";
|
|
9
9
|
|
|
10
10
|
//#region src/signal/format.ts
|
|
11
11
|
function normalizeUrlForComparison(url) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as danger, m as success, x as toPinoLikeLogger, y as getChildLogger } from "./subsystem-
|
|
2
|
-
import { a as ensureDir, h as resolveUserPath } from "./utils-
|
|
3
|
-
import { Kn as VERSION, cr as formatCliCommand } from "./model-selection-
|
|
4
|
-
import { d as resolveDefaultWebAuthDir, f as resolveWebCredsBackupPath, l as readCredsJsonRaw, p as resolveWebCredsPath, s as maybeRestoreCredsFromBackup } from "./accounts-
|
|
5
|
-
import
|
|
1
|
+
import { c as danger, m as success, x as toPinoLikeLogger, y as getChildLogger } from "./subsystem-CEiApUN8.js";
|
|
2
|
+
import { a as ensureDir, h as resolveUserPath } from "./utils-BFS4zK3g.js";
|
|
3
|
+
import { Kn as VERSION, cr as formatCliCommand } from "./model-selection-BiqOlgFe.js";
|
|
4
|
+
import { d as resolveDefaultWebAuthDir, f as resolveWebCredsBackupPath, l as readCredsJsonRaw, p as resolveWebCredsPath, s as maybeRestoreCredsFromBackup } from "./accounts-CKpnUMZd.js";
|
|
5
|
+
import fs from "node:fs";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
7
7
|
import { DisconnectReason, fetchLatestBaileysVersion, makeCacheableSignalKeyStore, makeWASocket, useMultiFileAuthState } from "@whiskeysockets/baileys";
|
|
8
8
|
import qrcode from "qrcode-terminal";
|
|
@@ -21,16 +21,16 @@ async function safeSaveCreds(authDir, saveCreds, logger) {
|
|
|
21
21
|
const raw = readCredsJsonRaw(credsPath);
|
|
22
22
|
if (raw) try {
|
|
23
23
|
JSON.parse(raw);
|
|
24
|
-
|
|
24
|
+
fs.copyFileSync(credsPath, backupPath);
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
fs.chmodSync(backupPath, 384);
|
|
27
27
|
} catch {}
|
|
28
28
|
} catch {}
|
|
29
29
|
} catch {}
|
|
30
30
|
try {
|
|
31
31
|
await Promise.resolve(saveCreds());
|
|
32
32
|
try {
|
|
33
|
-
|
|
33
|
+
fs.chmodSync(resolveWebCredsPath(authDir), 384);
|
|
34
34
|
} catch {}
|
|
35
35
|
} catch (err) {
|
|
36
36
|
logger.warn({ error: String(err) }, "failed saving WhatsApp creds");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir, r as listAgentIds, s as resolveAgentSkillsFilter } from "./run-with-concurrency-
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-
|
|
4
|
-
import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-
|
|
5
|
-
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir, r as listAgentIds, s as resolveAgentSkillsFilter } from "./run-with-concurrency-CYTs7gPY.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-CEiApUN8.js";
|
|
4
|
+
import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-BFS4zK3g.js";
|
|
5
|
+
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-DU6_fNPx.js";
|
|
6
6
|
import { t as createAsyncLock } from "./json-files-D2dc4Wmw.js";
|
|
7
|
-
import { i as listChatCommands } from "./commands-registry-
|
|
7
|
+
import { i as listChatCommands } from "./commands-registry-FnGtnvb0.js";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import fs from "node:fs";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import chokidar from "chokidar";
|
|
13
13
|
|
|
@@ -241,13 +241,13 @@ function listSkillCommandsForAgents(params) {
|
|
|
241
241
|
const workspaceFilters = /* @__PURE__ */ new Map();
|
|
242
242
|
for (const agentId of agentIds) {
|
|
243
243
|
const workspaceDir = resolveAgentWorkspaceDir(params.cfg, agentId);
|
|
244
|
-
if (!
|
|
244
|
+
if (!fs.existsSync(workspaceDir)) {
|
|
245
245
|
logVerbose(`Skipping agent "${agentId}": workspace does not exist: ${workspaceDir}`);
|
|
246
246
|
continue;
|
|
247
247
|
}
|
|
248
248
|
let canonicalDir;
|
|
249
249
|
try {
|
|
250
|
-
canonicalDir =
|
|
250
|
+
canonicalDir = fs.realpathSync(workspaceDir);
|
|
251
251
|
} catch {
|
|
252
252
|
logVerbose(`Skipping agent "${agentId}": cannot resolve workspace: ${workspaceDir}`);
|
|
253
253
|
continue;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { m as normalizeSkillFilter } from "./run-with-concurrency-
|
|
2
|
-
import { t as createSubsystemLogger, w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
3
|
-
import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-
|
|
4
|
-
import { O as isPathInside, h as resolveOpenClawPackageRootSync } from "./workspace-
|
|
5
|
-
import { Hn as isPathInsideWithRealpath, Lt as normalizePluginsConfig, Mt as loadPluginManifestRegistry, Rt as resolveEffectiveEnableState, Yn as isDangerousHostEnvVarName, hr as normalizeResolvedSecretInputString, zt as resolveMemorySlotDecision } from "./model-selection-
|
|
6
|
-
import { a as resolveOpenClawManifestBlock, c as resolveOpenClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseOpenClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveOpenClawManifestInstall, r as parseFrontmatterBool, s as resolveOpenClawManifestOs, t as getFrontmatterString, u as evaluateRuntimeEligibility } from "./frontmatter-
|
|
7
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
1
|
+
import { m as normalizeSkillFilter } from "./run-with-concurrency-CYTs7gPY.js";
|
|
2
|
+
import { t as createSubsystemLogger, w as resolvePreferredOpenClawTmpDir } from "./subsystem-CEiApUN8.js";
|
|
3
|
+
import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-BFS4zK3g.js";
|
|
4
|
+
import { O as isPathInside, h as resolveOpenClawPackageRootSync } from "./workspace-D6GL2anS.js";
|
|
5
|
+
import { Hn as isPathInsideWithRealpath, Lt as normalizePluginsConfig, Mt as loadPluginManifestRegistry, Rt as resolveEffectiveEnableState, Yn as isDangerousHostEnvVarName, hr as normalizeResolvedSecretInputString, zt as resolveMemorySlotDecision } from "./model-selection-BiqOlgFe.js";
|
|
6
|
+
import { a as resolveOpenClawManifestBlock, c as resolveOpenClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseOpenClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveOpenClawManifestInstall, r as parseFrontmatterBool, s as resolveOpenClawManifestOs, t as getFrontmatterString, u as evaluateRuntimeEligibility } from "./frontmatter-Cy6ESb-O.js";
|
|
7
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-Gzq1eAOo.js";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import fs from "node:fs";
|
|
11
11
|
import { URL as URL$1, fileURLToPath } from "node:url";
|
|
12
12
|
import { formatSkillsForPrompt, loadSkillsFromDir } from "@mariozechner/pi-coding-agent";
|
|
13
13
|
|
|
@@ -543,13 +543,13 @@ function shortPath(value) {
|
|
|
543
543
|
//#region src/agents/skills/bundled-dir.ts
|
|
544
544
|
function looksLikeSkillsDir(dir) {
|
|
545
545
|
try {
|
|
546
|
-
const entries =
|
|
546
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
547
547
|
for (const entry of entries) {
|
|
548
548
|
if (entry.name.startsWith(".")) continue;
|
|
549
549
|
const fullPath = path.join(dir, entry.name);
|
|
550
550
|
if (entry.isFile() && entry.name.endsWith(".md")) return true;
|
|
551
551
|
if (entry.isDirectory()) {
|
|
552
|
-
if (
|
|
552
|
+
if (fs.existsSync(path.join(fullPath, "SKILL.md"))) return true;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
} catch {
|
|
@@ -564,7 +564,7 @@ function resolveBundledSkillsDir(opts = {}) {
|
|
|
564
564
|
const execPath = opts.execPath ?? process.execPath;
|
|
565
565
|
const execDir = path.dirname(execPath);
|
|
566
566
|
const sibling = path.join(execDir, "skills");
|
|
567
|
-
if (
|
|
567
|
+
if (fs.existsSync(sibling)) return sibling;
|
|
568
568
|
} catch {}
|
|
569
569
|
try {
|
|
570
570
|
const moduleUrl = opts.moduleUrl ?? import.meta.url;
|
|
@@ -627,7 +627,7 @@ function resolvePluginSkillDirs(params) {
|
|
|
627
627
|
const trimmed = raw.trim();
|
|
628
628
|
if (!trimmed) continue;
|
|
629
629
|
const candidate = path.resolve(record.rootDir, trimmed);
|
|
630
|
-
if (!
|
|
630
|
+
if (!fs.existsSync(candidate)) {
|
|
631
631
|
log.warn(`plugin skill path not found (${record.id}): ${candidate}`);
|
|
632
632
|
continue;
|
|
633
633
|
}
|
|
@@ -658,7 +658,7 @@ async function serializeByKey(key, task) {
|
|
|
658
658
|
|
|
659
659
|
//#endregion
|
|
660
660
|
//#region src/agents/skills/workspace.ts
|
|
661
|
-
const fsp =
|
|
661
|
+
const fsp = fs.promises;
|
|
662
662
|
const skillsLogger = createSubsystemLogger("skills");
|
|
663
663
|
const skillCommandDebugOnce = /* @__PURE__ */ new Set();
|
|
664
664
|
/**
|
|
@@ -735,7 +735,7 @@ function resolveSkillsLimits(config) {
|
|
|
735
735
|
}
|
|
736
736
|
function listChildDirectories(dir) {
|
|
737
737
|
try {
|
|
738
|
-
const entries =
|
|
738
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
739
739
|
const dirs = [];
|
|
740
740
|
for (const entry of entries) {
|
|
741
741
|
if (entry.name.startsWith(".")) continue;
|
|
@@ -746,7 +746,7 @@ function listChildDirectories(dir) {
|
|
|
746
746
|
continue;
|
|
747
747
|
}
|
|
748
748
|
if (entry.isSymbolicLink()) try {
|
|
749
|
-
if (
|
|
749
|
+
if (fs.statSync(fullPath).isDirectory()) dirs.push(entry.name);
|
|
750
750
|
} catch {}
|
|
751
751
|
}
|
|
752
752
|
return dirs;
|
|
@@ -757,7 +757,7 @@ function listChildDirectories(dir) {
|
|
|
757
757
|
function resolveNestedSkillsRoot(dir, opts) {
|
|
758
758
|
const nested = path.join(dir, "skills");
|
|
759
759
|
try {
|
|
760
|
-
if (!
|
|
760
|
+
if (!fs.existsSync(nested) || !fs.statSync(nested).isDirectory()) return { baseDir: dir };
|
|
761
761
|
} catch {
|
|
762
762
|
return { baseDir: dir };
|
|
763
763
|
}
|
|
@@ -766,7 +766,7 @@ function resolveNestedSkillsRoot(dir, opts) {
|
|
|
766
766
|
const toScan = scanLimit === 0 ? [] : nestedDirs.slice(0, Math.min(nestedDirs.length, scanLimit));
|
|
767
767
|
for (const name of toScan) {
|
|
768
768
|
const skillMd = path.join(nested, name, "SKILL.md");
|
|
769
|
-
if (
|
|
769
|
+
if (fs.existsSync(skillMd)) return {
|
|
770
770
|
baseDir: nested,
|
|
771
771
|
note: `Detected nested skills root at ${nested}`
|
|
772
772
|
};
|
|
@@ -786,9 +786,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
786
786
|
const loadSkills = (params) => {
|
|
787
787
|
const baseDir = resolveNestedSkillsRoot(params.dir, { maxEntriesToScan: limits.maxCandidatesPerRoot }).baseDir;
|
|
788
788
|
const rootSkillMd = path.join(baseDir, "SKILL.md");
|
|
789
|
-
if (
|
|
789
|
+
if (fs.existsSync(rootSkillMd)) {
|
|
790
790
|
try {
|
|
791
|
-
const size =
|
|
791
|
+
const size = fs.statSync(rootSkillMd).size;
|
|
792
792
|
if (size > limits.maxSkillFileBytes) {
|
|
793
793
|
skillsLogger.warn("Skipping skills root due to oversized SKILL.md.", {
|
|
794
794
|
dir: baseDir,
|
|
@@ -827,9 +827,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
827
827
|
for (const name of limitedChildren) {
|
|
828
828
|
const skillDir = path.join(baseDir, name);
|
|
829
829
|
const skillMd = path.join(skillDir, "SKILL.md");
|
|
830
|
-
if (!
|
|
830
|
+
if (!fs.existsSync(skillMd)) continue;
|
|
831
831
|
try {
|
|
832
|
-
const size =
|
|
832
|
+
const size = fs.statSync(skillMd).size;
|
|
833
833
|
if (size > limits.maxSkillFileBytes) {
|
|
834
834
|
skillsLogger.warn("Skipping skill due to oversized SKILL.md.", {
|
|
835
835
|
skill: name,
|
|
@@ -897,7 +897,7 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
897
897
|
return Array.from(merged.values()).map((skill) => {
|
|
898
898
|
let frontmatter = {};
|
|
899
899
|
try {
|
|
900
|
-
frontmatter = parseFrontmatter(
|
|
900
|
+
frontmatter = parseFrontmatter(fs.readFileSync(skill.filePath, "utf-8"));
|
|
901
901
|
} catch {}
|
|
902
902
|
return {
|
|
903
903
|
skill,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "./run-with-concurrency-CYTs7gPY.js";
|
|
2
|
+
import "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import "./subsystem-CEiApUN8.js";
|
|
4
|
+
import "./utils-BFS4zK3g.js";
|
|
5
|
+
import "./workspace-D6GL2anS.js";
|
|
6
|
+
import "./logger-CV2IWsAW.js";
|
|
7
|
+
import "./model-selection-BiqOlgFe.js";
|
|
8
|
+
import "./github-copilot-token-D7knylDF.js";
|
|
9
|
+
import "./legacy-names-TrN6kryB.js";
|
|
10
|
+
import "./thinking-BJkp7vCP.js";
|
|
11
|
+
import "./plugins-Burzc1_i.js";
|
|
12
|
+
import "./accounts-CKpnUMZd.js";
|
|
13
|
+
import "./accounts-7nNRr4R3.js";
|
|
14
|
+
import "./accounts-BIr_ieyH.js";
|
|
15
|
+
import { f as resolveCommandArgMenu, n as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-FnGtnvb0.js";
|
|
16
|
+
|
|
17
|
+
export { buildCommandTextFromArgs, findCommandByNativeName, listNativeCommandSpecsForConfig, parseCommandArgs, resolveCommandArgMenu };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import "./run-with-concurrency-CYTs7gPY.js";
|
|
2
|
+
import "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import "./subsystem-CEiApUN8.js";
|
|
4
|
+
import "./utils-BFS4zK3g.js";
|
|
5
|
+
import "./workspace-D6GL2anS.js";
|
|
6
|
+
import "./logger-CV2IWsAW.js";
|
|
7
|
+
import "./model-selection-BiqOlgFe.js";
|
|
8
|
+
import "./github-copilot-token-D7knylDF.js";
|
|
9
|
+
import "./legacy-names-TrN6kryB.js";
|
|
10
|
+
import "./thinking-BJkp7vCP.js";
|
|
11
|
+
import "./tokens-tz04P2cO.js";
|
|
12
|
+
import { I as finalizeInboundContext, S as dispatchReplyWithDispatcher, k as resolveAgentRoute, n as recordInboundSessionMetaSafe, r as deliverSlackSlashReplies, s as createReplyPrefixOptions } from "./pi-embedded-DkdNpxSe.js";
|
|
13
|
+
import "./plugins-Burzc1_i.js";
|
|
14
|
+
import "./accounts-CKpnUMZd.js";
|
|
15
|
+
import "./send-hOoCA9jX.js";
|
|
16
|
+
import "./send-DDKqu28r.js";
|
|
17
|
+
import "./deliver-32OxViWG.js";
|
|
18
|
+
import "./diagnostic-UO82MQjo.js";
|
|
19
|
+
import "./accounts-7nNRr4R3.js";
|
|
20
|
+
import "./image-ops-gm8VfGiD.js";
|
|
21
|
+
import "./send-ChW15YPB.js";
|
|
22
|
+
import "./pi-model-discovery-FwBV8Q5J.js";
|
|
23
|
+
import { kt as resolveConversationLabel } from "./pi-embedded-helpers-B_qa7ikD.js";
|
|
24
|
+
import "./chrome-CtEQV_6p.js";
|
|
25
|
+
import "./frontmatter-Cy6ESb-O.js";
|
|
26
|
+
import "./skills-DU6_fNPx.js";
|
|
27
|
+
import "./path-alias-guards-Gzq1eAOo.js";
|
|
28
|
+
import "./redact-C-aJRv5O.js";
|
|
29
|
+
import "./errors-BwBpGOBV.js";
|
|
30
|
+
import "./fs-safe-YxZ8RAEw.js";
|
|
31
|
+
import "./proxy-env-C05eD8Tt.js";
|
|
32
|
+
import "./store-DcxsUE2f.js";
|
|
33
|
+
import "./accounts-BIr_ieyH.js";
|
|
34
|
+
import "./paths-BWg7M5Yy.js";
|
|
35
|
+
import "./tool-images-DRyUUf-X.js";
|
|
36
|
+
import "./image-B2LPzwKF.js";
|
|
37
|
+
import "./audio-transcription-runner-CgLX4N3r.js";
|
|
38
|
+
import "./fetch-DozurFmr.js";
|
|
39
|
+
import "./fetch-guard-XtFb6zM7.js";
|
|
40
|
+
import "./api-key-rotation-CUJC6xSi.js";
|
|
41
|
+
import "./proxy-fetch-C_2Ejh5T.js";
|
|
42
|
+
import { m as resolveChunkMode, s as resolveMarkdownTableMode } from "./ir-B7IR3m4T.js";
|
|
43
|
+
import "./render-BZdJrUxT.js";
|
|
44
|
+
import "./target-errors-jNfnUab4.js";
|
|
45
|
+
import "./commands-registry-FnGtnvb0.js";
|
|
46
|
+
import "./skill-commands-CIcvUo1A.js";
|
|
47
|
+
import "./fetch-CTN5ATFT.js";
|
|
48
|
+
import "./channel-activity-32lmgAZH.js";
|
|
49
|
+
import "./tables-DTb5mzup.js";
|
|
50
|
+
import "./send-q-l5fncb.js";
|
|
51
|
+
import "./outbound-attachment-CcY_Rg0-.js";
|
|
52
|
+
import "./send-Cj0LCSvd.js";
|
|
53
|
+
import "./proxy-BMKyKeTK.js";
|
|
54
|
+
import "./manager-BWh3BVp1.js";
|
|
55
|
+
import "./query-expansion-DkXzaUOH.js";
|
|
56
|
+
|
|
57
|
+
export { createReplyPrefixOptions, deliverSlackSlashReplies, dispatchReplyWithDispatcher, finalizeInboundContext, recordInboundSessionMetaSafe, resolveAgentRoute, resolveChunkMode, resolveConversationLabel, resolveMarkdownTableMode };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "./run-with-concurrency-CYTs7gPY.js";
|
|
2
|
+
import "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import "./subsystem-CEiApUN8.js";
|
|
4
|
+
import "./utils-BFS4zK3g.js";
|
|
5
|
+
import "./workspace-D6GL2anS.js";
|
|
6
|
+
import "./logger-CV2IWsAW.js";
|
|
7
|
+
import "./model-selection-BiqOlgFe.js";
|
|
8
|
+
import "./github-copilot-token-D7knylDF.js";
|
|
9
|
+
import "./legacy-names-TrN6kryB.js";
|
|
10
|
+
import "./thinking-BJkp7vCP.js";
|
|
11
|
+
import "./plugins-Burzc1_i.js";
|
|
12
|
+
import "./accounts-CKpnUMZd.js";
|
|
13
|
+
import "./accounts-7nNRr4R3.js";
|
|
14
|
+
import "./frontmatter-Cy6ESb-O.js";
|
|
15
|
+
import "./skills-DU6_fNPx.js";
|
|
16
|
+
import "./path-alias-guards-Gzq1eAOo.js";
|
|
17
|
+
import "./accounts-BIr_ieyH.js";
|
|
18
|
+
import "./commands-registry-FnGtnvb0.js";
|
|
19
|
+
import { n as listSkillCommandsForAgents } from "./skill-commands-CIcvUo1A.js";
|
|
20
|
+
|
|
21
|
+
export { listSkillCommandsForAgents };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as resolveConfigDir } from "./utils-
|
|
2
|
-
import { b as detectMime, x as extensionForMime } from "./image-ops-
|
|
1
|
+
import { p as resolveConfigDir } from "./utils-BFS4zK3g.js";
|
|
2
|
+
import { b as detectMime, x as extensionForMime } from "./image-ops-gm8VfGiD.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import crypto from "node:crypto";
|