openclaw-multi-auto 1.2.5 → 1.2.7
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-L9ByEpnP.js → accounts-C9HcPI9h.js} +2 -2
- package/dist/{accounts-BOzyfwW4.js → accounts-C_lW3Ag9.js} +2 -2
- package/dist/{accounts-yfBeCZtS.js → accounts-Tgelvk0C.js} +17 -17
- package/dist/{active-listener-D1yqT1cw.js → active-listener-BEdprTkn.js} +2 -2
- package/dist/{api-key-rotation-DtsNS2Nb.js → api-key-rotation-BJpKWXy0.js} +2 -2
- package/dist/{audio-preflight-DDBLZBdb.js → audio-preflight-5FEeDooz.js} +4 -4
- package/dist/{audio-preflight-DoPfNXDz.js → audio-preflight-C58LeYZM.js} +32 -32
- package/dist/{audio-transcription-runner-DZbSWT9E.js → audio-transcription-runner-B-UvoDjZ.js} +1 -1
- package/dist/{audio-transcription-runner-CzjuH3uL.js → audio-transcription-runner-B8jbozH5.js} +12 -12
- package/dist/{audit-membership-runtime-DWyHWAHM.js → audit-membership-runtime-Dntemq07.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-xHOMiarp.js → channel-activity-BDnjYF7B.js} +3 -3
- package/dist/{chrome-DlhJHqj8.js → chrome-CRBG2YP_.js} +18 -18
- package/dist/{chrome-CMU2WVFh.js → chrome-D45SyhQL.js} +8 -8
- package/dist/{commands-registry-V1zZ5pPC.js → commands-registry-D5qXbFJn.js} +4 -4
- package/dist/{deliver-BXVcFIHL.js → deliver-B9cys0EZ.js} +1 -1
- package/dist/{deliver-CApVJA_l.js → deliver-ChbFOwjw.js} +21 -21
- package/dist/deliver-runtime-B80mXYrL.js +36 -0
- package/dist/{deliver-runtime-DTaIS-1i.js → deliver-runtime-DhaQJ0pI.js} +3 -3
- package/dist/deps-send-discord.runtime-DZUccI6Z.js +26 -0
- package/dist/deps-send-imessage.runtime-CF3OpoqY.js +25 -0
- package/dist/deps-send-signal.runtime-Cw4-ozeO.js +24 -0
- package/dist/deps-send-slack.runtime-BDsDhS1P.js +22 -0
- package/dist/deps-send-telegram.runtime-D_4xVasO.js +27 -0
- package/dist/{deps-send-whatsapp.runtime-CIZqFAqb.js → deps-send-whatsapp.runtime-DvTL2tzN.js} +7 -7
- package/dist/deps-send-whatsapp.runtime-UBgpoWg9.js +60 -0
- package/dist/{diagnostic-Bn4PZjMZ.js → diagnostic-Co6Kghr-.js} +2 -2
- package/dist/{plugin-sdk/errors-B3cHyZZA.js → errors-xt401nuk.js} +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{fetch-BlJWzEP6.js → fetch-DuraYswo.js} +5 -5
- package/dist/{fetch-guard-ChYBwfiy.js → fetch-guard-DWr0d00H.js} +2 -2
- package/dist/{frontmatter-CvaMP376.js → frontmatter-BkTfEZ93.js} +3 -3
- package/dist/{fs-safe-0jAo_Whb.js → fs-safe-CTYUrIgQ.js} +4 -4
- package/dist/{github-copilot-token-D13V9YBz.js → github-copilot-token-BDioPmd6.js} +7 -7
- package/dist/{image-B3Mz7N5I.js → image-C7RmnYxa.js} +6 -6
- package/dist/{image-BCVLo0qw.js → image-DAOPwVXi.js} +1 -1
- package/dist/{image-ops-CehkHxmW.js → image-ops-BuUnEOE0.js} +2 -2
- package/dist/image-runtime-DtMbm7AR.js +29 -0
- package/dist/{image-runtime-DtCKpMPZ.js → image-runtime-wlCLVvVv.js} +3 -3
- package/dist/{ir-DAP-B-Xw.js → ir-B83looB-.js} +8 -8
- package/dist/{legacy-names-TyzbVqa_.js → legacy-names-DOC03BkU.js} +1 -1
- package/dist/llm-slug-generator.js +51 -51
- package/dist/{logger-DMZQQtxK.js → logger-BfjWMCSD.js} +7 -7
- package/dist/{login-DiCctRo1.js → login-CrIwcrVI.js} +5 -5
- package/dist/{login-qr-MUbXgjtd.js → login-qr-BpPDZdl_.js} +10 -10
- package/dist/{manager-BW_NSIMl.js → manager-1bvuGrNR.js} +13 -13
- package/dist/manager-runtime-FO1Sx3W8.js +18 -0
- package/dist/{model-selection-idoqPmw0.js → model-selection-Dna0Gz1k.js} +43 -43
- package/dist/{outbound-C2kanETZ.js → outbound-ChDjtuD6.js} +6 -6
- package/dist/{outbound-attachment-DBrYWX8h.js → outbound-attachment-DqHlD21U.js} +2 -2
- package/dist/{path-alias-guards-DqXRZmsL.js → path-alias-guards-BzvdLvTI.js} +1 -1
- package/dist/{paths-CCxysrzL.js → paths-Bkr-BCxW.js} +4 -4
- package/dist/{paths-C6TxBCvO.js → paths-Cvc9EM8Y.js} +5 -5
- package/dist/{pi-embedded-bcjMe3wj.js → pi-embedded-BC_GWGuw.js} +158 -158
- package/dist/{pi-embedded-CgQ_W6Xs.js → pi-embedded-DYU79yGe.js} +24 -24
- package/dist/{pi-embedded-helpers-D5yyGEvA.js → pi-embedded-helpers-CbIShbOM.js} +52 -52
- package/dist/{pi-embedded-helpers-CwuBTKza.js → pi-embedded-helpers-uTRAmQ4n.js} +3 -3
- package/dist/{plugin-sdk/pi-model-discovery-v-XPUOOf.js → pi-model-discovery-Dymwdjt0.js} +2 -2
- package/dist/pi-model-discovery-runtime-BeY4EUPp.js +11 -0
- package/dist/{pi-tools.before-tool-call.runtime-BuLxSyx9.js → pi-tools.before-tool-call.runtime-Cwab_5W1.js} +9 -9
- package/dist/plugin-sdk/{accounts-C3m65--E.js → accounts-BJAXxY46.js} +2 -2
- package/dist/plugin-sdk/{accounts-CNCCkdEF.js → accounts-C1j7HSL0.js} +3 -3
- package/dist/plugin-sdk/{accounts-BslAlVYS.js → accounts-DyFCXtHv.js} +2 -2
- package/dist/plugin-sdk/{active-listener-CkPnMUkB.js → active-listener-CftX5jLD.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-BRE4X2tf.js → api-key-rotation-8nyyt1kx.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-CtO4fFvp.js → audio-preflight-C_aSAPR1.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-DnxvOS1-.js → audio-transcription-runner-CB53F7_7.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-BpfoSk8M.js → audit-membership-runtime-BXndI4LG.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-WJYxcJ3S.js → channel-activity-C5y8AgAV.js} +3 -3
- package/dist/plugin-sdk/{channel-web-dO5k3ubM.js → channel-web-DBTRO03V.js} +18 -18
- package/dist/plugin-sdk/{chrome-CjNTuJML.js → chrome-f00sZkDX.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-CdYjoI0i.js → commands-registry-BJ_NxG2F.js} +4 -4
- package/dist/plugin-sdk/{common-oYc5vPFl.js → common-Cf27Jwxu.js} +2 -2
- package/dist/plugin-sdk/{config-B1z-UxQ3.js → config-CHQrpx-Q.js} +7 -7
- package/dist/plugin-sdk/{deliver-D5_6T567.js → deliver-DNEuetST.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-BFdqklJM.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-DuqpYwU0.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-CZ2rS8Lb.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-BdqiWhIh.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-04s36qiC.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-LE5tkPvr.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-Bz57lobC.js +57 -0
- package/dist/plugin-sdk/{diagnostic-Bxxu0ig-.js → diagnostic-LYUUmjJ5.js} +2 -2
- package/dist/plugin-sdk/{errors-DaiAM-yU.js → errors-CtMWwS2Z.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-Dcgod0tg.js → fetch-guard-CxYB5Kg6.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-BaKqI3G4.js → fs-safe-DtfhxbrI.js} +3 -3
- package/dist/plugin-sdk/{image-B2mQW9Rb.js → image-BwjYjRHx.js} +6 -6
- package/dist/plugin-sdk/{image-ops-Cbzr4U9l.js → image-ops-BnZKcbd6.js} +2 -2
- package/dist/plugin-sdk/image-runtime-B8twoubs.js +25 -0
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/{ir-ZEmrTr4J.js → ir-Z4hX67TJ.js} +7 -7
- package/dist/plugin-sdk/{local-roots-CIPRxA-4.js → local-roots-KhjQw04O.js} +4 -4
- package/dist/plugin-sdk/{logger-CvPFVOgT.js → logger-DHIIvMxj.js} +2 -2
- package/dist/plugin-sdk/{login-CCTew9bt.js → login-C31642Ld.js} +4 -4
- package/dist/plugin-sdk/{login-qr-BI3Vi_wJ.js → login-qr--y2SG_Ue.js} +5 -5
- package/dist/plugin-sdk/{manager-BEoYPn7R.js → manager-2UZBMCc7.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-CMeLwose.js +15 -0
- package/dist/plugin-sdk/mattermost.js +3 -3
- package/dist/plugin-sdk/{outbound-ByOw1K6W.js → outbound-Ba0QUI5h.js} +5 -5
- package/dist/plugin-sdk/{outbound-attachment-BzVhxRRw.js → outbound-attachment-B1Laso-8.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-DBjLbIX_.js → path-alias-guards-C7Vm5DZ1.js} +1 -1
- package/dist/plugin-sdk/{paths-Dpg3qxcl.js → paths-DopV9PQG.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-DIxXkGJf.js → pi-embedded-helpers-DnA_OCzP.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-DM_2uFtj.js → pi-model-discovery-DdPqXk8f.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-D8CJhtJY.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-w1dqL_ty.js → pi-tools.before-tool-call.runtime-DxFHiLUE.js} +4 -4
- package/dist/plugin-sdk/{plugins-C4USiH29.js → plugins-CbCt4osF.js} +4 -4
- package/dist/plugin-sdk/{proxy-env-ET-rp8eg.js → proxy-env-C63mMdas.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-uDXGKG3Z.js → proxy-fetch-Ch95c_Y2.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-CyOt3RDA.js → pw-ai-DpJk62D4.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-BySdoVR7.js → qmd-manager-Ca-iSfEE.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-C6uS-7lj.js → query-expansion-B_Xe41Ab.js} +4 -4
- package/dist/plugin-sdk/{redact-Bvxt1T_Q.js → redact-hp9TOulW.js} +1 -1
- package/dist/plugin-sdk/{reply-CTCSeQqW.js → reply-CovBlFea.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target-Bw8YNANu.js → resolve-outbound-target-BbrHgyUk.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-C_KCHwvf.js → run-with-concurrency-BR1DXa8T.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-SkO91TZH.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-B0VWK5hm.js +19 -0
- package/dist/plugin-sdk/{send-C0w6xP2x.js → send-BTztm3D2.js} +6 -6
- package/dist/plugin-sdk/{send-qPyNGSe4.js → send-BXpXBwM_.js} +13 -13
- package/dist/plugin-sdk/{send-BZ6nYFZr.js → send-BvAtLLPl.js} +5 -5
- package/dist/plugin-sdk/{send-CFf-1V89.js → send-CWJUuG0i.js} +8 -8
- package/dist/plugin-sdk/{send-CY-Qfwia.js → send-EcglC4cG.js} +7 -7
- package/dist/plugin-sdk/{session-COrvpvUQ.js → session-k256LJZT.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-DZqhtmiv.js → skill-commands-DoRqLzxm.js} +4 -4
- package/dist/plugin-sdk/{skills-Cw_vXEJb.js → skills-QudILG6e.js} +6 -6
- package/dist/plugin-sdk/slash-commands.runtime-DS6vCNSL.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-BXrxb2wd.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-Bd6qQ2oT.js +16 -0
- package/dist/plugin-sdk/{store-CMHj6IIw.js → store-BbDQw3g6.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-1uwQbuXj.js +52 -0
- package/dist/plugin-sdk/{tables-CSqrHsKL.js → tables-BhvloMKN.js} +1 -1
- package/dist/plugin-sdk/{thinking-DOnsR_A8.js → thinking-URzkT-3p.js} +7 -7
- package/dist/plugin-sdk/{tokens-DgNRBwIg.js → tokens-B1PW5Ayy.js} +1 -1
- package/dist/plugin-sdk/{tool-images-eEfOVkzf.js → tool-images-xpqbP6RR.js} +2 -2
- package/dist/plugin-sdk/web-B74yhL2N.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-xcleMoMv.js → whatsapp-actions-RcZ6vp61.js} +17 -17
- package/dist/plugin-sdk/whatsapp.js +50 -50
- package/dist/{plugins-CWkRQYDj.js → plugins-4Rj4OjLY.js} +11 -11
- package/dist/{proxy-env-Cq5gdrbj.js → proxy-env-DlmzDx8x.js} +1 -1
- package/dist/{plugin-sdk/proxy-fetch-ChxOhWF4.js → proxy-fetch-B2pEfjbR.js} +1 -1
- package/dist/{pw-ai-CDQDCfUa.js → pw-ai-D2wlMJtN.js} +14 -14
- package/dist/{pw-ai-CmphSzHx.js → pw-ai-GcYO6HPE.js} +1 -1
- package/dist/{qmd-manager-BsYsO9Ii.js → qmd-manager-BtIKUaO9.js} +10 -10
- package/dist/{query-expansion-DtLc3wjL.js → query-expansion-CX-1fS52.js} +6 -6
- package/dist/{plugin-sdk/redact-DjVX-1N3.js → redact-COik8ET1.js} +1 -1
- package/dist/{run-with-concurrency-D_ZpbgEG.js → run-with-concurrency-BgYfgkXT.js} +4 -4
- package/dist/runtime-whatsapp-login.runtime-DUb55byQ.js +13 -0
- package/dist/runtime-whatsapp-outbound.runtime-Bii_xSfI.js +22 -0
- package/dist/{send-Dx2RkUOZ.js → send-6lz6rNVP.js} +6 -6
- package/dist/{send-vmONuVgL.js → send-BHTiZcH3.js} +26 -26
- package/dist/{send-Bj776ESJ.js → send-L7gRiwyd.js} +7 -7
- package/dist/{send-DcxmcFi_.js → send-PE6cwoTe.js} +8 -8
- package/dist/{send-BQERFNyo.js → send-dfu6_rgf.js} +5 -5
- package/dist/{session-A4QhBRvH.js → session-D8ImowSs.js} +8 -8
- package/dist/{skill-commands-CMzBZKG2.js → skill-commands-DNqJ-kwn.js} +9 -9
- package/dist/{skills-CE_iqvM5.js → skills-7ODkHQYp.js} +22 -22
- package/dist/slash-commands.runtime-CVw6566g.js +16 -0
- package/dist/slash-dispatch.runtime-CMK_EPYG.js +56 -0
- package/dist/{slash-dispatch.runtime-131yup2e.js → slash-dispatch.runtime-Dh053pQK.js} +6 -6
- package/dist/slash-skill-commands.runtime-DxZ4z5h6.js +20 -0
- package/dist/{store--eR1R_UX.js → store-D89wDcz9.js} +2 -2
- package/dist/{subagent-registry-runtime-DbSf_Je6.js → subagent-registry-runtime-DSi5mnCQ.js} +6 -6
- package/dist/subagent-registry-runtime-DdGrQBnQ.js +56 -0
- package/dist/{subsystem-Di1z8l0Z.js → subsystem-B45WV3qB.js} +14 -14
- package/dist/{tables-d739Y1xW.js → tables-mE4cJBN2.js} +1 -1
- package/dist/{target-errors-CBI2Ga0y.js → target-errors-mnlwhAjP.js} +2 -2
- package/dist/{thinking-DXYisHiZ.js → thinking-BeGmb5k6.js} +7 -7
- package/dist/{tokens-DxnY9ui_.js → tokens-q32vI39c.js} +1 -1
- package/dist/{tool-images-2cBx1W8h.js → tool-images-RZdHiZcG.js} +2 -2
- package/dist/{web-MR9d7KyB.js → web-1hWJDzNA.js} +6 -6
- package/dist/{web-NWKn8ABz.js → web-igmw_EhT.js} +55 -55
- package/dist/{whatsapp-actions-iEArE_Ez.js → whatsapp-actions-BHbJJyqw.js} +21 -21
- package/dist/{workspace-CUVC6GX1.js → workspace-U-DyR64O.js} +20 -20
- package/extensions/acpx/node_modules/.bin/acpx +21 -0
- package/extensions/diagnostics-otel/node_modules/.bin/acorn +21 -0
- package/extensions/diffs/node_modules/.bin/playwright-core +21 -0
- package/extensions/googlechat/node_modules/.bin/nlc +21 -0
- package/extensions/googlechat/node_modules/.bin/node-llama-cpp +21 -0
- package/extensions/googlechat/node_modules/.bin/openclaw +21 -0
- package/extensions/googlechat/node_modules/.bin/tsc +21 -0
- package/extensions/googlechat/node_modules/.bin/tsserver +21 -0
- package/extensions/matrix/node_modules/.bin/markdown-it +21 -0
- package/extensions/memory-core/node_modules/.bin/nlc +21 -0
- package/extensions/memory-core/node_modules/.bin/node-llama-cpp +21 -0
- package/extensions/memory-core/node_modules/.bin/openclaw +21 -0
- package/extensions/memory-core/node_modules/.bin/tsc +21 -0
- package/extensions/memory-core/node_modules/.bin/tsserver +21 -0
- package/extensions/memory-lancedb/node_modules/.bin/arrow2csv +21 -0
- package/extensions/memory-lancedb/node_modules/.bin/openai +21 -0
- package/extensions/nostr/node_modules/.bin/tsc +21 -0
- package/extensions/nostr/node_modules/.bin/tsserver +21 -0
- package/extensions/tlon/node_modules/.bin/tlon +21 -0
- package/package.json +4 -5
- package/scripts/create-instance.sh +104 -71
- package/scripts/npm_publish.sh +45 -36
- package/dist/deliver-runtime-D1z-h5eg.js +0 -36
- package/dist/deps-send-discord.runtime-DnbhTFX9.js +0 -26
- package/dist/deps-send-imessage.runtime-BOiQ6mDx.js +0 -25
- package/dist/deps-send-signal.runtime-CTcl388M.js +0 -24
- package/dist/deps-send-slack.runtime-CCqBz4Kg.js +0 -22
- package/dist/deps-send-telegram.runtime-DGSKTCpH.js +0 -27
- package/dist/deps-send-whatsapp.runtime-Dz_4fi2D.js +0 -60
- package/dist/errors-CCLeFWAg.js +0 -54
- package/dist/image-runtime-DWjhow2W.js +0 -29
- package/dist/manager-runtime-BN6VevdC.js +0 -18
- package/dist/pi-model-discovery-BGgOlX8N.js +0 -134
- package/dist/pi-model-discovery-runtime-Bwmi4Ev8.js +0 -11
- package/dist/plugin-sdk/accounts-CJWOBzwB.js +0 -35
- package/dist/plugin-sdk/accounts-DP1-L-QS.js +0 -288
- package/dist/plugin-sdk/accounts-DZhWlEg3.js +0 -46
- package/dist/plugin-sdk/active-listener-B_sLJTXM.js +0 -50
- package/dist/plugin-sdk/api-key-rotation-BXnNsojA.js +0 -181
- package/dist/plugin-sdk/audio-preflight-DGEUDxxR.js +0 -69
- package/dist/plugin-sdk/audio-transcription-runner-DkoPNPYt.js +0 -2176
- package/dist/plugin-sdk/audit-membership-runtime-DSBHHw7o.js +0 -58
- package/dist/plugin-sdk/channel-activity-F3d0yUwy.js +0 -94
- package/dist/plugin-sdk/channel-web-QF7EpjeP.js +0 -2256
- package/dist/plugin-sdk/chrome-BXoCyCkY.js +0 -2415
- package/dist/plugin-sdk/commands-registry-t7cXBTfN.js +0 -1125
- package/dist/plugin-sdk/config-BkEnz2Po.js +0 -17913
- package/dist/plugin-sdk/deliver-B6AG_l67.js +0 -1694
- package/dist/plugin-sdk/deliver-runtime-C5dgvvga.js +0 -32
- package/dist/plugin-sdk/deliver-runtime-D585kJZc.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-Dg4N7PHJ.js +0 -23
- package/dist/plugin-sdk/deps-send-discord.runtime-a_OKY2js.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-0OEwzMQm.js +0 -22
- package/dist/plugin-sdk/deps-send-imessage.runtime-Baxy9TD4.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-BM1jRt3G.js +0 -21
- package/dist/plugin-sdk/deps-send-signal.runtime-BwXoCrFl.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-1E3BYRdF.js +0 -19
- package/dist/plugin-sdk/deps-send-slack.runtime-CLmKjgso.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-BKfdBKnZ.js +0 -24
- package/dist/plugin-sdk/deps-send-telegram.runtime-DNCxIflA.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-BOTwkbx_.js +0 -57
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-OLwr-9c8.js +0 -57
- package/dist/plugin-sdk/diagnostic-CsP-lEkI.js +0 -319
- package/dist/plugin-sdk/fetch-guard-DETCcJzQ.js +0 -156
- package/dist/plugin-sdk/fs-safe-B8y811FR.js +0 -352
- package/dist/plugin-sdk/image-DjTEkYZE.js +0 -2310
- package/dist/plugin-sdk/image-ops-BSiMpAw4.js +0 -584
- package/dist/plugin-sdk/image-runtime-6xPp8m5a.js +0 -25
- package/dist/plugin-sdk/image-runtime-BFm45j49.js +0 -25
- package/dist/plugin-sdk/ir-DQ7_HbvK.js +0 -1296
- package/dist/plugin-sdk/local-roots-BUP4YBmR.js +0 -186
- package/dist/plugin-sdk/logger-CZY9KIoY.js +0 -1163
- package/dist/plugin-sdk/login-BxEKLlCo.js +0 -57
- package/dist/plugin-sdk/login-qr-BQIpMPr9.js +0 -320
- package/dist/plugin-sdk/manager-I6KbPihW.js +0 -3917
- package/dist/plugin-sdk/manager-runtime-CFfYYWIQ.js +0 -15
- package/dist/plugin-sdk/manager-runtime-DxclHQ4U.js +0 -15
- package/dist/plugin-sdk/outbound-NS6UHnB6.js +0 -212
- package/dist/plugin-sdk/outbound-attachment-Dy6fyf6H.js +0 -19
- package/dist/plugin-sdk/path-alias-guards-sWayacde.js +0 -43
- package/dist/plugin-sdk/paths-vTM3Lh3X.js +0 -166
- package/dist/plugin-sdk/pi-embedded-helpers-1R1gu7eX.js +0 -9627
- package/dist/plugin-sdk/pi-model-discovery-runtime-BuzvkvNR.js +0 -8
- package/dist/plugin-sdk/pi-model-discovery-runtime-Do9o-dUd.js +0 -8
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-D4sFsIks.js +0 -354
- package/dist/plugin-sdk/plugins-DeBZB9l_.js +0 -864
- package/dist/plugin-sdk/pw-ai-DEOmCSSC.js +0 -1938
- package/dist/plugin-sdk/qmd-manager-HyYKoEch.js +0 -1448
- package/dist/plugin-sdk/query-expansion-CeyKUeDW.js +0 -1011
- package/dist/plugin-sdk/reply-DAo_Jt8K.js +0 -97916
- package/dist/plugin-sdk/resolve-outbound-target-B42qgQS9.js +0 -40
- package/dist/plugin-sdk/run-with-concurrency-Bt_ks0Qa.js +0 -1994
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-B6W989eF.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BxgRDkhc.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-c_GDFy37.js +0 -19
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-elOqrkfg.js +0 -19
- package/dist/plugin-sdk/send-CQpMudwO.js +0 -2587
- package/dist/plugin-sdk/send-DQHLzVyO.js +0 -414
- package/dist/plugin-sdk/send-DTB24bEF.js +0 -3135
- package/dist/plugin-sdk/send-DfHadjZ_.js +0 -503
- package/dist/plugin-sdk/send-XXlW2iny.js +0 -540
- package/dist/plugin-sdk/session-6TF6MyaC.js +0 -169
- package/dist/plugin-sdk/skill-commands-CkGeFUMl.js +0 -342
- package/dist/plugin-sdk/skills-CBkHBYPq.js +0 -1428
- package/dist/plugin-sdk/slash-commands.runtime-CxliuGaP.js +0 -13
- package/dist/plugin-sdk/slash-commands.runtime-D67JLweo.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-DFaeYlJQ.js +0 -52
- package/dist/plugin-sdk/slash-dispatch.runtime-DvcpvCJ0.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-0M0OLCxq.js +0 -16
- package/dist/plugin-sdk/slash-skill-commands.runtime-BM1x3azR.js +0 -16
- package/dist/plugin-sdk/ssrf-cFtplYtS.js +0 -202
- package/dist/plugin-sdk/store-5nyxY3WU.js +0 -81
- package/dist/plugin-sdk/subagent-registry-runtime-1lbDyRzz.js +0 -52
- package/dist/plugin-sdk/subagent-registry-runtime-DCtmDwna.js +0 -52
- package/dist/plugin-sdk/tables-C47P4GTN.js +0 -55
- package/dist/plugin-sdk/target-errors-Blia4S69.js +0 -195
- package/dist/plugin-sdk/thinking-Bo2eosVa.js +0 -1206
- package/dist/plugin-sdk/tokens-BDr0Z9o3.js +0 -52
- package/dist/plugin-sdk/tool-images-Gk_-0y2N.js +0 -274
- package/dist/plugin-sdk/web-BLyT64pW.js +0 -56
- package/dist/plugin-sdk/web-CVxZbXyH.js +0 -56
- package/dist/plugin-sdk/whatsapp-actions-Bw0H9g-n.js +0 -80
- package/dist/proxy-fetch-CCjEYbFm.js +0 -38
- package/dist/redact-ClbcYG1J.js +0 -319
- package/dist/runtime-whatsapp-login.runtime-IeylZEl4.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-ClBRuLsq.js +0 -22
- package/dist/slash-commands.runtime-Cpn2tYW4.js +0 -16
- package/dist/slash-dispatch.runtime-CWbpp23S.js +0 -56
- package/dist/slash-skill-commands.runtime-DKMvvdDW.js +0 -20
- package/dist/subagent-registry-runtime-DEVpAaAP.js +0 -56
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/curve25519-js/.prettierrc +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/curve25519-js/LICENSE +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/curve25519-js/README.md +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/curve25519-js/lib/index.d.ts +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/curve25519-js/lib/index.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/curve25519-js/package.json +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/curve25519-js/tsconfig.json +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/curve25519-js/tslint.json +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/LICENSE +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/README.md +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/bin/pbjs +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/bin/pbts +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/LICENSE +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/README.md +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/bin/pbjs +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/bin/pbts +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/index.d.ts +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/index.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/lib/tsd-jsdoc/LICENSE +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/lib/tsd-jsdoc/README.md +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/lib/tsd-jsdoc/plugin.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/lib/tsd-jsdoc/publish.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/lib/tsd-jsdoc.json +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/node_modules/os-tmpdir/index.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/node_modules/os-tmpdir/license +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/node_modules/os-tmpdir/readme.md +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/node_modules/tmp/LICENSE +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/node_modules/tmp/README.md +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/node_modules/tmp/lib/tmp.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/package-lock.json +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/package.json +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/package.standalone.json +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/pbjs.d.ts +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/pbjs.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/pbts.d.ts +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/pbts.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/targets/json-module.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/targets/json.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/targets/proto.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/targets/proto2.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/targets/proto3.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/targets/static-module.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/targets/static.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/util.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/wrappers/amd.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/wrappers/closure.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/wrappers/commonjs.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/wrappers/default.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/cli/wrappers/es6.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/dist/README.md +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/dist/light/README.md +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/dist/light/protobuf.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/dist/light/protobuf.js.map +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/dist/light/protobuf.min.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/dist/light/protobuf.min.js.map +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/dist/minimal/README.md +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/dist/minimal/protobuf.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/dist/minimal/protobuf.js.map +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/dist/minimal/protobuf.min.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/dist/protobuf.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/dist/protobuf.js.map +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/dist/protobuf.min.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/dist/protobuf.min.js.map +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/ext/debug/README.md +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/ext/debug/index.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/ext/descriptor/README.md +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/ext/descriptor/index.d.ts +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/ext/descriptor/index.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/ext/descriptor/test.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/google/LICENSE +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/google/README.md +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/google/api/annotations.json +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/google/api/annotations.proto +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/google/api/http.json +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/google/api/http.proto +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/google/protobuf/api.json +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/google/protobuf/api.proto +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/google/protobuf/descriptor.json +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/google/protobuf/descriptor.proto +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/google/protobuf/source_context.json +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/google/protobuf/source_context.proto +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/google/protobuf/type.json +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/google/protobuf/type.proto +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/index.d.ts +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/index.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/light.d.ts +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/light.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/minimal.d.ts +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/minimal.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/package.json +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/scripts/postinstall.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/common.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/converter.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/decoder.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/encoder.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/enum.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/field.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/index-light.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/index-minimal.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/index.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/mapfield.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/message.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/method.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/namespace.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/object.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/oneof.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/parse.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/reader.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/reader_buffer.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/root.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/roots.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/rpc/service.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/rpc.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/service.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/tokenize.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/type.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/types.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/typescript.jsdoc +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/util/longbits.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/util/minimal.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/util.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/verifier.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/wrappers.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/writer.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/src/writer_buffer.js +0 -0
- /package/node_modules/.pnpm/{@whiskeysockets+libsignal-node@https+++codeload.github.com+whiskeysockets+libsignal-nod_bfb842df7de72a4fad554e9f3d575a84 → @whiskeysockets+libsignal-node@file+..+..+projects+libsignal-node}/node_modules/protobufjs/tsconfig.json +0 -0
|
@@ -1,2310 +0,0 @@
|
|
|
1
|
-
import { U as resolveAgentModelFallbackValues, W as resolveAgentModelPrimaryValue } from "./run-with-concurrency-Bt_ks0Qa.js";
|
|
2
|
-
import { $n as requireApiKey, Bn as resolveImplicitBedrockProvider, Hn as resolveImplicitProviders, Or as resolveOpenClawAgentDir, Rr as normalizeSecretInput, Vn as resolveImplicitCopilotProvider, Zn as getApiKeyForModel, n as loadConfig, xn as applyConfigEnvVars, zn as normalizeProviders } from "./config-BkEnz2Po.js";
|
|
3
|
-
import { O as shortenHomeInString, y as isRecord } from "./logger-CZY9KIoY.js";
|
|
4
|
-
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-1R1gu7eX.js";
|
|
5
|
-
import { n as redactToolDetail } from "./redact-DjVX-1N3.js";
|
|
6
|
-
import path from "node:path";
|
|
7
|
-
import fs from "node:fs/promises";
|
|
8
|
-
import { complete } from "@mariozechner/pi-ai";
|
|
9
|
-
|
|
10
|
-
//#region src/agents/minimax-vlm.ts
|
|
11
|
-
function coerceApiHost(params) {
|
|
12
|
-
const env = params.env ?? process.env;
|
|
13
|
-
const raw = params.apiHost?.trim() || env.MINIMAX_API_HOST?.trim() || params.modelBaseUrl?.trim() || "https://api.minimax.io";
|
|
14
|
-
try {
|
|
15
|
-
return new URL(raw).origin;
|
|
16
|
-
} catch {}
|
|
17
|
-
try {
|
|
18
|
-
return new URL(`https://${raw}`).origin;
|
|
19
|
-
} catch {
|
|
20
|
-
return "https://api.minimax.io";
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function pickString(rec, key) {
|
|
24
|
-
const v = rec[key];
|
|
25
|
-
return typeof v === "string" ? v : "";
|
|
26
|
-
}
|
|
27
|
-
async function minimaxUnderstandImage(params) {
|
|
28
|
-
const apiKey = normalizeSecretInput(params.apiKey);
|
|
29
|
-
if (!apiKey) throw new Error("MiniMax VLM: apiKey required");
|
|
30
|
-
const prompt = params.prompt.trim();
|
|
31
|
-
if (!prompt) throw new Error("MiniMax VLM: prompt required");
|
|
32
|
-
const imageDataUrl = params.imageDataUrl.trim();
|
|
33
|
-
if (!imageDataUrl) throw new Error("MiniMax VLM: imageDataUrl required");
|
|
34
|
-
if (!/^data:image\/(png|jpeg|webp);base64,/i.test(imageDataUrl)) throw new Error("MiniMax VLM: imageDataUrl must be a base64 data:image/(png|jpeg|webp) URL");
|
|
35
|
-
const host = coerceApiHost({
|
|
36
|
-
apiHost: params.apiHost,
|
|
37
|
-
modelBaseUrl: params.modelBaseUrl
|
|
38
|
-
});
|
|
39
|
-
const url = new URL("/v1/coding_plan/vlm", host).toString();
|
|
40
|
-
const res = await fetch(url, {
|
|
41
|
-
method: "POST",
|
|
42
|
-
headers: {
|
|
43
|
-
Authorization: `Bearer ${apiKey}`,
|
|
44
|
-
"Content-Type": "application/json",
|
|
45
|
-
"MM-API-Source": "OpenClaw"
|
|
46
|
-
},
|
|
47
|
-
body: JSON.stringify({
|
|
48
|
-
prompt,
|
|
49
|
-
image_url: imageDataUrl
|
|
50
|
-
})
|
|
51
|
-
});
|
|
52
|
-
const traceId = res.headers.get("Trace-Id") ?? "";
|
|
53
|
-
if (!res.ok) {
|
|
54
|
-
const body = await res.text().catch(() => "");
|
|
55
|
-
const trace = traceId ? ` Trace-Id: ${traceId}` : "";
|
|
56
|
-
throw new Error(`MiniMax VLM request failed (${res.status} ${res.statusText}).${trace}${body ? ` Body: ${body.slice(0, 400)}` : ""}`);
|
|
57
|
-
}
|
|
58
|
-
const json = await res.json().catch(() => null);
|
|
59
|
-
if (!isRecord(json)) {
|
|
60
|
-
const trace = traceId ? ` Trace-Id: ${traceId}` : "";
|
|
61
|
-
throw new Error(`MiniMax VLM response was not JSON.${trace}`);
|
|
62
|
-
}
|
|
63
|
-
const baseResp = isRecord(json.base_resp) ? json.base_resp : {};
|
|
64
|
-
const code = typeof baseResp.status_code === "number" ? baseResp.status_code : -1;
|
|
65
|
-
if (code !== 0) {
|
|
66
|
-
const msg = (baseResp.status_msg ?? "").trim();
|
|
67
|
-
const trace = traceId ? ` Trace-Id: ${traceId}` : "";
|
|
68
|
-
throw new Error(`MiniMax VLM API error (${code})${msg ? `: ${msg}` : ""}.${trace}`);
|
|
69
|
-
}
|
|
70
|
-
const content = pickString(json, "content").trim();
|
|
71
|
-
if (!content) {
|
|
72
|
-
const trace = traceId ? ` Trace-Id: ${traceId}` : "";
|
|
73
|
-
throw new Error(`MiniMax VLM returned no content.${trace}`);
|
|
74
|
-
}
|
|
75
|
-
return content;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region src/agents/models-config.ts
|
|
80
|
-
const DEFAULT_MODE = "merge";
|
|
81
|
-
function resolvePreferredTokenLimit(explicitValue, implicitValue) {
|
|
82
|
-
return explicitValue > implicitValue ? explicitValue : implicitValue;
|
|
83
|
-
}
|
|
84
|
-
function mergeProviderModels(implicit, explicit) {
|
|
85
|
-
const implicitModels = Array.isArray(implicit.models) ? implicit.models : [];
|
|
86
|
-
const explicitModels = Array.isArray(explicit.models) ? explicit.models : [];
|
|
87
|
-
if (implicitModels.length === 0) return {
|
|
88
|
-
...implicit,
|
|
89
|
-
...explicit
|
|
90
|
-
};
|
|
91
|
-
const getId = (model) => {
|
|
92
|
-
if (!model || typeof model !== "object") return "";
|
|
93
|
-
const id = model.id;
|
|
94
|
-
return typeof id === "string" ? id.trim() : "";
|
|
95
|
-
};
|
|
96
|
-
const implicitById = new Map(implicitModels.map((model) => [getId(model), model]).filter(([id]) => Boolean(id)));
|
|
97
|
-
const seen = /* @__PURE__ */ new Set();
|
|
98
|
-
const mergedModels = explicitModels.map((explicitModel) => {
|
|
99
|
-
const id = getId(explicitModel);
|
|
100
|
-
if (!id) return explicitModel;
|
|
101
|
-
seen.add(id);
|
|
102
|
-
const implicitModel = implicitById.get(id);
|
|
103
|
-
if (!implicitModel) return explicitModel;
|
|
104
|
-
return {
|
|
105
|
-
...explicitModel,
|
|
106
|
-
input: implicitModel.input,
|
|
107
|
-
reasoning: "reasoning" in explicitModel ? explicitModel.reasoning : implicitModel.reasoning,
|
|
108
|
-
contextWindow: resolvePreferredTokenLimit(explicitModel.contextWindow, implicitModel.contextWindow),
|
|
109
|
-
maxTokens: resolvePreferredTokenLimit(explicitModel.maxTokens, implicitModel.maxTokens)
|
|
110
|
-
};
|
|
111
|
-
});
|
|
112
|
-
for (const implicitModel of implicitModels) {
|
|
113
|
-
const id = getId(implicitModel);
|
|
114
|
-
if (!id || seen.has(id)) continue;
|
|
115
|
-
seen.add(id);
|
|
116
|
-
mergedModels.push(implicitModel);
|
|
117
|
-
}
|
|
118
|
-
return {
|
|
119
|
-
...implicit,
|
|
120
|
-
...explicit,
|
|
121
|
-
models: mergedModels
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
function mergeProviders(params) {
|
|
125
|
-
const out = params.implicit ? { ...params.implicit } : {};
|
|
126
|
-
for (const [key, explicit] of Object.entries(params.explicit ?? {})) {
|
|
127
|
-
const providerKey = key.trim();
|
|
128
|
-
if (!providerKey) continue;
|
|
129
|
-
const implicit = out[providerKey];
|
|
130
|
-
out[providerKey] = implicit ? mergeProviderModels(implicit, explicit) : explicit;
|
|
131
|
-
}
|
|
132
|
-
return out;
|
|
133
|
-
}
|
|
134
|
-
async function readJson(pathname) {
|
|
135
|
-
try {
|
|
136
|
-
const raw = await fs.readFile(pathname, "utf8");
|
|
137
|
-
return JSON.parse(raw);
|
|
138
|
-
} catch {
|
|
139
|
-
return null;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
async function resolveProvidersForModelsJson(params) {
|
|
143
|
-
const { cfg, agentDir } = params;
|
|
144
|
-
const explicitProviders = cfg.models?.providers ?? {};
|
|
145
|
-
const providers = mergeProviders({
|
|
146
|
-
implicit: await resolveImplicitProviders({
|
|
147
|
-
agentDir,
|
|
148
|
-
explicitProviders
|
|
149
|
-
}),
|
|
150
|
-
explicit: explicitProviders
|
|
151
|
-
});
|
|
152
|
-
const implicitBedrock = await resolveImplicitBedrockProvider({
|
|
153
|
-
agentDir,
|
|
154
|
-
config: cfg
|
|
155
|
-
});
|
|
156
|
-
if (implicitBedrock) {
|
|
157
|
-
const existing = providers["amazon-bedrock"];
|
|
158
|
-
providers["amazon-bedrock"] = existing ? mergeProviderModels(implicitBedrock, existing) : implicitBedrock;
|
|
159
|
-
}
|
|
160
|
-
const implicitCopilot = await resolveImplicitCopilotProvider({ agentDir });
|
|
161
|
-
if (implicitCopilot && !providers["github-copilot"]) providers["github-copilot"] = implicitCopilot;
|
|
162
|
-
return providers;
|
|
163
|
-
}
|
|
164
|
-
function mergeWithExistingProviderSecrets(params) {
|
|
165
|
-
const { nextProviders, existingProviders } = params;
|
|
166
|
-
const mergedProviders = {};
|
|
167
|
-
for (const [key, entry] of Object.entries(existingProviders)) mergedProviders[key] = entry;
|
|
168
|
-
for (const [key, newEntry] of Object.entries(nextProviders)) {
|
|
169
|
-
const existing = existingProviders[key];
|
|
170
|
-
if (!existing) {
|
|
171
|
-
mergedProviders[key] = newEntry;
|
|
172
|
-
continue;
|
|
173
|
-
}
|
|
174
|
-
const preserved = {};
|
|
175
|
-
if (typeof existing.apiKey === "string" && existing.apiKey) preserved.apiKey = existing.apiKey;
|
|
176
|
-
if (typeof existing.baseUrl === "string" && existing.baseUrl) preserved.baseUrl = existing.baseUrl;
|
|
177
|
-
mergedProviders[key] = {
|
|
178
|
-
...newEntry,
|
|
179
|
-
...preserved
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
return mergedProviders;
|
|
183
|
-
}
|
|
184
|
-
async function resolveProvidersForMode(params) {
|
|
185
|
-
if (params.mode !== "merge") return params.providers;
|
|
186
|
-
const existing = await readJson(params.targetPath);
|
|
187
|
-
if (!isRecord(existing) || !isRecord(existing.providers)) return params.providers;
|
|
188
|
-
const existingProviders = existing.providers;
|
|
189
|
-
return mergeWithExistingProviderSecrets({
|
|
190
|
-
nextProviders: params.providers,
|
|
191
|
-
existingProviders
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
async function readRawFile(pathname) {
|
|
195
|
-
try {
|
|
196
|
-
return await fs.readFile(pathname, "utf8");
|
|
197
|
-
} catch {
|
|
198
|
-
return "";
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
async function ensureOpenClawModelsJson(config, agentDirOverride) {
|
|
202
|
-
const cfg = config ?? loadConfig();
|
|
203
|
-
const agentDir = agentDirOverride?.trim() ? agentDirOverride.trim() : resolveOpenClawAgentDir();
|
|
204
|
-
applyConfigEnvVars(cfg);
|
|
205
|
-
const providers = await resolveProvidersForModelsJson({
|
|
206
|
-
cfg,
|
|
207
|
-
agentDir
|
|
208
|
-
});
|
|
209
|
-
if (Object.keys(providers).length === 0) return {
|
|
210
|
-
agentDir,
|
|
211
|
-
wrote: false
|
|
212
|
-
};
|
|
213
|
-
const mode = cfg.models?.mode ?? DEFAULT_MODE;
|
|
214
|
-
const targetPath = path.join(agentDir, "models.json");
|
|
215
|
-
const normalizedProviders = normalizeProviders({
|
|
216
|
-
providers: await resolveProvidersForMode({
|
|
217
|
-
mode,
|
|
218
|
-
targetPath,
|
|
219
|
-
providers
|
|
220
|
-
}),
|
|
221
|
-
agentDir
|
|
222
|
-
});
|
|
223
|
-
const next = `${JSON.stringify({ providers: normalizedProviders }, null, 2)}\n`;
|
|
224
|
-
if (await readRawFile(targetPath) === next) return {
|
|
225
|
-
agentDir,
|
|
226
|
-
wrote: false
|
|
227
|
-
};
|
|
228
|
-
await fs.mkdir(agentDir, {
|
|
229
|
-
recursive: true,
|
|
230
|
-
mode: 448
|
|
231
|
-
});
|
|
232
|
-
await fs.writeFile(targetPath, next, { mode: 384 });
|
|
233
|
-
return {
|
|
234
|
-
agentDir,
|
|
235
|
-
wrote: true
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
//#endregion
|
|
240
|
-
//#region src/shared/chat-content.ts
|
|
241
|
-
function extractTextFromChatContent(content, opts) {
|
|
242
|
-
const normalize = opts?.normalizeText ?? ((text) => text.replace(/\s+/g, " ").trim());
|
|
243
|
-
const joinWith = opts?.joinWith ?? " ";
|
|
244
|
-
if (typeof content === "string") {
|
|
245
|
-
const normalized = normalize(opts?.sanitizeText ? opts.sanitizeText(content) : content);
|
|
246
|
-
return normalized ? normalized : null;
|
|
247
|
-
}
|
|
248
|
-
if (!Array.isArray(content)) return null;
|
|
249
|
-
const chunks = [];
|
|
250
|
-
for (const block of content) {
|
|
251
|
-
if (!block || typeof block !== "object") continue;
|
|
252
|
-
if (block.type !== "text") continue;
|
|
253
|
-
const text = block.text;
|
|
254
|
-
if (typeof text !== "string") continue;
|
|
255
|
-
const value = opts?.sanitizeText ? opts.sanitizeText(text) : text;
|
|
256
|
-
if (value.trim()) chunks.push(value);
|
|
257
|
-
}
|
|
258
|
-
const joined = normalize(chunks.join(joinWith));
|
|
259
|
-
return joined ? joined : null;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region src/shared/text/code-regions.ts
|
|
264
|
-
function findCodeRegions(text) {
|
|
265
|
-
const regions = [];
|
|
266
|
-
for (const match of text.matchAll(/(^|\n)(```|~~~)[^\n]*\n[\s\S]*?(?:\n\2(?:\n|$)|$)/g)) {
|
|
267
|
-
const start = (match.index ?? 0) + match[1].length;
|
|
268
|
-
regions.push({
|
|
269
|
-
start,
|
|
270
|
-
end: start + match[0].length - match[1].length
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
for (const match of text.matchAll(/`+[^`]+`+/g)) {
|
|
274
|
-
const start = match.index ?? 0;
|
|
275
|
-
const end = start + match[0].length;
|
|
276
|
-
if (!regions.some((r) => start >= r.start && end <= r.end)) regions.push({
|
|
277
|
-
start,
|
|
278
|
-
end
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
regions.sort((a, b) => a.start - b.start);
|
|
282
|
-
return regions;
|
|
283
|
-
}
|
|
284
|
-
function isInsideCode(pos, regions) {
|
|
285
|
-
return regions.some((r) => pos >= r.start && pos < r.end);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
//#endregion
|
|
289
|
-
//#region src/shared/text/reasoning-tags.ts
|
|
290
|
-
const QUICK_TAG_RE = /<\s*\/?\s*(?:think(?:ing)?|thought|antthinking|final)\b/i;
|
|
291
|
-
const FINAL_TAG_RE = /<\s*\/?\s*final\b[^<>]*>/gi;
|
|
292
|
-
const THINKING_TAG_RE = /<\s*(\/?)\s*(?:think(?:ing)?|thought|antthinking)\b[^<>]*>/gi;
|
|
293
|
-
function applyTrim(value, mode) {
|
|
294
|
-
if (mode === "none") return value;
|
|
295
|
-
if (mode === "start") return value.trimStart();
|
|
296
|
-
return value.trim();
|
|
297
|
-
}
|
|
298
|
-
function stripReasoningTagsFromText(text, options) {
|
|
299
|
-
if (!text) return text;
|
|
300
|
-
if (!QUICK_TAG_RE.test(text)) return text;
|
|
301
|
-
const mode = options?.mode ?? "strict";
|
|
302
|
-
const trimMode = options?.trim ?? "both";
|
|
303
|
-
let cleaned = text;
|
|
304
|
-
if (FINAL_TAG_RE.test(cleaned)) {
|
|
305
|
-
FINAL_TAG_RE.lastIndex = 0;
|
|
306
|
-
const finalMatches = [];
|
|
307
|
-
const preCodeRegions = findCodeRegions(cleaned);
|
|
308
|
-
for (const match of cleaned.matchAll(FINAL_TAG_RE)) {
|
|
309
|
-
const start = match.index ?? 0;
|
|
310
|
-
finalMatches.push({
|
|
311
|
-
start,
|
|
312
|
-
length: match[0].length,
|
|
313
|
-
inCode: isInsideCode(start, preCodeRegions)
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
for (let i = finalMatches.length - 1; i >= 0; i--) {
|
|
317
|
-
const m = finalMatches[i];
|
|
318
|
-
if (!m.inCode) cleaned = cleaned.slice(0, m.start) + cleaned.slice(m.start + m.length);
|
|
319
|
-
}
|
|
320
|
-
} else FINAL_TAG_RE.lastIndex = 0;
|
|
321
|
-
const codeRegions = findCodeRegions(cleaned);
|
|
322
|
-
THINKING_TAG_RE.lastIndex = 0;
|
|
323
|
-
let result = "";
|
|
324
|
-
let lastIndex = 0;
|
|
325
|
-
let inThinking = false;
|
|
326
|
-
for (const match of cleaned.matchAll(THINKING_TAG_RE)) {
|
|
327
|
-
const idx = match.index ?? 0;
|
|
328
|
-
const isClose = match[1] === "/";
|
|
329
|
-
if (isInsideCode(idx, codeRegions)) continue;
|
|
330
|
-
if (!inThinking) {
|
|
331
|
-
result += cleaned.slice(lastIndex, idx);
|
|
332
|
-
if (!isClose) inThinking = true;
|
|
333
|
-
} else if (isClose) inThinking = false;
|
|
334
|
-
lastIndex = idx + match[0].length;
|
|
335
|
-
}
|
|
336
|
-
if (!inThinking || mode === "preserve") result += cleaned.slice(lastIndex);
|
|
337
|
-
return applyTrim(result, trimMode);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
//#endregion
|
|
341
|
-
//#region apps/shared/OpenClawKit/Sources/OpenClawKit/Resources/tool-display.json
|
|
342
|
-
var tool_display_default = {
|
|
343
|
-
version: 1,
|
|
344
|
-
fallback: {
|
|
345
|
-
"emoji": "🧩",
|
|
346
|
-
"detailKeys": [
|
|
347
|
-
"command",
|
|
348
|
-
"path",
|
|
349
|
-
"url",
|
|
350
|
-
"targetUrl",
|
|
351
|
-
"targetId",
|
|
352
|
-
"ref",
|
|
353
|
-
"element",
|
|
354
|
-
"node",
|
|
355
|
-
"nodeId",
|
|
356
|
-
"id",
|
|
357
|
-
"requestId",
|
|
358
|
-
"to",
|
|
359
|
-
"channelId",
|
|
360
|
-
"guildId",
|
|
361
|
-
"userId",
|
|
362
|
-
"name",
|
|
363
|
-
"query",
|
|
364
|
-
"pattern",
|
|
365
|
-
"messageId"
|
|
366
|
-
]
|
|
367
|
-
},
|
|
368
|
-
tools: {
|
|
369
|
-
"bash": {
|
|
370
|
-
"emoji": "🛠️",
|
|
371
|
-
"title": "Bash",
|
|
372
|
-
"detailKeys": ["command"]
|
|
373
|
-
},
|
|
374
|
-
"process": {
|
|
375
|
-
"emoji": "🧰",
|
|
376
|
-
"title": "Process",
|
|
377
|
-
"detailKeys": ["sessionId"]
|
|
378
|
-
},
|
|
379
|
-
"read": {
|
|
380
|
-
"emoji": "📖",
|
|
381
|
-
"title": "Read",
|
|
382
|
-
"detailKeys": ["path"]
|
|
383
|
-
},
|
|
384
|
-
"write": {
|
|
385
|
-
"emoji": "✍️",
|
|
386
|
-
"title": "Write",
|
|
387
|
-
"detailKeys": ["path"]
|
|
388
|
-
},
|
|
389
|
-
"edit": {
|
|
390
|
-
"emoji": "📝",
|
|
391
|
-
"title": "Edit",
|
|
392
|
-
"detailKeys": ["path"]
|
|
393
|
-
},
|
|
394
|
-
"attach": {
|
|
395
|
-
"emoji": "📎",
|
|
396
|
-
"title": "Attach",
|
|
397
|
-
"detailKeys": [
|
|
398
|
-
"path",
|
|
399
|
-
"url",
|
|
400
|
-
"fileName"
|
|
401
|
-
]
|
|
402
|
-
},
|
|
403
|
-
"browser": {
|
|
404
|
-
"emoji": "🌐",
|
|
405
|
-
"title": "Browser",
|
|
406
|
-
"actions": {
|
|
407
|
-
"status": { "label": "status" },
|
|
408
|
-
"start": { "label": "start" },
|
|
409
|
-
"stop": { "label": "stop" },
|
|
410
|
-
"tabs": { "label": "tabs" },
|
|
411
|
-
"open": {
|
|
412
|
-
"label": "open",
|
|
413
|
-
"detailKeys": ["targetUrl"]
|
|
414
|
-
},
|
|
415
|
-
"focus": {
|
|
416
|
-
"label": "focus",
|
|
417
|
-
"detailKeys": ["targetId"]
|
|
418
|
-
},
|
|
419
|
-
"close": {
|
|
420
|
-
"label": "close",
|
|
421
|
-
"detailKeys": ["targetId"]
|
|
422
|
-
},
|
|
423
|
-
"snapshot": {
|
|
424
|
-
"label": "snapshot",
|
|
425
|
-
"detailKeys": [
|
|
426
|
-
"targetUrl",
|
|
427
|
-
"targetId",
|
|
428
|
-
"ref",
|
|
429
|
-
"element",
|
|
430
|
-
"format"
|
|
431
|
-
]
|
|
432
|
-
},
|
|
433
|
-
"screenshot": {
|
|
434
|
-
"label": "screenshot",
|
|
435
|
-
"detailKeys": [
|
|
436
|
-
"targetUrl",
|
|
437
|
-
"targetId",
|
|
438
|
-
"ref",
|
|
439
|
-
"element"
|
|
440
|
-
]
|
|
441
|
-
},
|
|
442
|
-
"navigate": {
|
|
443
|
-
"label": "navigate",
|
|
444
|
-
"detailKeys": ["targetUrl", "targetId"]
|
|
445
|
-
},
|
|
446
|
-
"console": {
|
|
447
|
-
"label": "console",
|
|
448
|
-
"detailKeys": ["level", "targetId"]
|
|
449
|
-
},
|
|
450
|
-
"pdf": {
|
|
451
|
-
"label": "pdf",
|
|
452
|
-
"detailKeys": ["targetId"]
|
|
453
|
-
},
|
|
454
|
-
"upload": {
|
|
455
|
-
"label": "upload",
|
|
456
|
-
"detailKeys": [
|
|
457
|
-
"paths",
|
|
458
|
-
"ref",
|
|
459
|
-
"inputRef",
|
|
460
|
-
"element",
|
|
461
|
-
"targetId"
|
|
462
|
-
]
|
|
463
|
-
},
|
|
464
|
-
"dialog": {
|
|
465
|
-
"label": "dialog",
|
|
466
|
-
"detailKeys": [
|
|
467
|
-
"accept",
|
|
468
|
-
"promptText",
|
|
469
|
-
"targetId"
|
|
470
|
-
]
|
|
471
|
-
},
|
|
472
|
-
"act": {
|
|
473
|
-
"label": "act",
|
|
474
|
-
"detailKeys": [
|
|
475
|
-
"request.kind",
|
|
476
|
-
"request.ref",
|
|
477
|
-
"request.selector",
|
|
478
|
-
"request.text",
|
|
479
|
-
"request.value"
|
|
480
|
-
]
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
},
|
|
484
|
-
"canvas": {
|
|
485
|
-
"emoji": "🖼️",
|
|
486
|
-
"title": "Canvas",
|
|
487
|
-
"actions": {
|
|
488
|
-
"present": {
|
|
489
|
-
"label": "present",
|
|
490
|
-
"detailKeys": [
|
|
491
|
-
"target",
|
|
492
|
-
"node",
|
|
493
|
-
"nodeId"
|
|
494
|
-
]
|
|
495
|
-
},
|
|
496
|
-
"hide": {
|
|
497
|
-
"label": "hide",
|
|
498
|
-
"detailKeys": ["node", "nodeId"]
|
|
499
|
-
},
|
|
500
|
-
"navigate": {
|
|
501
|
-
"label": "navigate",
|
|
502
|
-
"detailKeys": [
|
|
503
|
-
"url",
|
|
504
|
-
"node",
|
|
505
|
-
"nodeId"
|
|
506
|
-
]
|
|
507
|
-
},
|
|
508
|
-
"eval": {
|
|
509
|
-
"label": "eval",
|
|
510
|
-
"detailKeys": [
|
|
511
|
-
"javaScript",
|
|
512
|
-
"node",
|
|
513
|
-
"nodeId"
|
|
514
|
-
]
|
|
515
|
-
},
|
|
516
|
-
"snapshot": {
|
|
517
|
-
"label": "snapshot",
|
|
518
|
-
"detailKeys": [
|
|
519
|
-
"format",
|
|
520
|
-
"node",
|
|
521
|
-
"nodeId"
|
|
522
|
-
]
|
|
523
|
-
},
|
|
524
|
-
"a2ui_push": {
|
|
525
|
-
"label": "A2UI push",
|
|
526
|
-
"detailKeys": [
|
|
527
|
-
"jsonlPath",
|
|
528
|
-
"node",
|
|
529
|
-
"nodeId"
|
|
530
|
-
]
|
|
531
|
-
},
|
|
532
|
-
"a2ui_reset": {
|
|
533
|
-
"label": "A2UI reset",
|
|
534
|
-
"detailKeys": ["node", "nodeId"]
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
},
|
|
538
|
-
"nodes": {
|
|
539
|
-
"emoji": "📱",
|
|
540
|
-
"title": "Nodes",
|
|
541
|
-
"actions": {
|
|
542
|
-
"status": { "label": "status" },
|
|
543
|
-
"describe": {
|
|
544
|
-
"label": "describe",
|
|
545
|
-
"detailKeys": ["node", "nodeId"]
|
|
546
|
-
},
|
|
547
|
-
"pending": { "label": "pending" },
|
|
548
|
-
"approve": {
|
|
549
|
-
"label": "approve",
|
|
550
|
-
"detailKeys": ["requestId"]
|
|
551
|
-
},
|
|
552
|
-
"reject": {
|
|
553
|
-
"label": "reject",
|
|
554
|
-
"detailKeys": ["requestId"]
|
|
555
|
-
},
|
|
556
|
-
"notify": {
|
|
557
|
-
"label": "notify",
|
|
558
|
-
"detailKeys": [
|
|
559
|
-
"node",
|
|
560
|
-
"nodeId",
|
|
561
|
-
"title",
|
|
562
|
-
"body"
|
|
563
|
-
]
|
|
564
|
-
},
|
|
565
|
-
"camera_snap": {
|
|
566
|
-
"label": "camera snap",
|
|
567
|
-
"detailKeys": [
|
|
568
|
-
"node",
|
|
569
|
-
"nodeId",
|
|
570
|
-
"facing",
|
|
571
|
-
"deviceId"
|
|
572
|
-
]
|
|
573
|
-
},
|
|
574
|
-
"camera_list": {
|
|
575
|
-
"label": "camera list",
|
|
576
|
-
"detailKeys": ["node", "nodeId"]
|
|
577
|
-
},
|
|
578
|
-
"camera_clip": {
|
|
579
|
-
"label": "camera clip",
|
|
580
|
-
"detailKeys": [
|
|
581
|
-
"node",
|
|
582
|
-
"nodeId",
|
|
583
|
-
"facing",
|
|
584
|
-
"duration",
|
|
585
|
-
"durationMs"
|
|
586
|
-
]
|
|
587
|
-
},
|
|
588
|
-
"screen_record": {
|
|
589
|
-
"label": "screen record",
|
|
590
|
-
"detailKeys": [
|
|
591
|
-
"node",
|
|
592
|
-
"nodeId",
|
|
593
|
-
"duration",
|
|
594
|
-
"durationMs",
|
|
595
|
-
"fps",
|
|
596
|
-
"screenIndex"
|
|
597
|
-
]
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
},
|
|
601
|
-
"cron": {
|
|
602
|
-
"emoji": "⏰",
|
|
603
|
-
"title": "Cron",
|
|
604
|
-
"actions": {
|
|
605
|
-
"status": { "label": "status" },
|
|
606
|
-
"list": { "label": "list" },
|
|
607
|
-
"add": {
|
|
608
|
-
"label": "add",
|
|
609
|
-
"detailKeys": [
|
|
610
|
-
"job.name",
|
|
611
|
-
"job.id",
|
|
612
|
-
"job.schedule",
|
|
613
|
-
"job.cron"
|
|
614
|
-
]
|
|
615
|
-
},
|
|
616
|
-
"update": {
|
|
617
|
-
"label": "update",
|
|
618
|
-
"detailKeys": ["id"]
|
|
619
|
-
},
|
|
620
|
-
"remove": {
|
|
621
|
-
"label": "remove",
|
|
622
|
-
"detailKeys": ["id"]
|
|
623
|
-
},
|
|
624
|
-
"run": {
|
|
625
|
-
"label": "run",
|
|
626
|
-
"detailKeys": ["id"]
|
|
627
|
-
},
|
|
628
|
-
"runs": {
|
|
629
|
-
"label": "runs",
|
|
630
|
-
"detailKeys": ["id"]
|
|
631
|
-
},
|
|
632
|
-
"wake": {
|
|
633
|
-
"label": "wake",
|
|
634
|
-
"detailKeys": ["text", "mode"]
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
},
|
|
638
|
-
"gateway": {
|
|
639
|
-
"emoji": "🔌",
|
|
640
|
-
"title": "Gateway",
|
|
641
|
-
"actions": { "restart": {
|
|
642
|
-
"label": "restart",
|
|
643
|
-
"detailKeys": ["reason", "delayMs"]
|
|
644
|
-
} }
|
|
645
|
-
},
|
|
646
|
-
"whatsapp_login": {
|
|
647
|
-
"emoji": "🟢",
|
|
648
|
-
"title": "WhatsApp Login",
|
|
649
|
-
"actions": {
|
|
650
|
-
"start": { "label": "start" },
|
|
651
|
-
"wait": { "label": "wait" }
|
|
652
|
-
}
|
|
653
|
-
},
|
|
654
|
-
"discord": {
|
|
655
|
-
"emoji": "💬",
|
|
656
|
-
"title": "Discord",
|
|
657
|
-
"actions": {
|
|
658
|
-
"react": {
|
|
659
|
-
"label": "react",
|
|
660
|
-
"detailKeys": [
|
|
661
|
-
"channelId",
|
|
662
|
-
"messageId",
|
|
663
|
-
"emoji"
|
|
664
|
-
]
|
|
665
|
-
},
|
|
666
|
-
"reactions": {
|
|
667
|
-
"label": "reactions",
|
|
668
|
-
"detailKeys": ["channelId", "messageId"]
|
|
669
|
-
},
|
|
670
|
-
"sticker": {
|
|
671
|
-
"label": "sticker",
|
|
672
|
-
"detailKeys": ["to", "stickerIds"]
|
|
673
|
-
},
|
|
674
|
-
"poll": {
|
|
675
|
-
"label": "poll",
|
|
676
|
-
"detailKeys": ["question", "to"]
|
|
677
|
-
},
|
|
678
|
-
"permissions": {
|
|
679
|
-
"label": "permissions",
|
|
680
|
-
"detailKeys": ["channelId"]
|
|
681
|
-
},
|
|
682
|
-
"readMessages": {
|
|
683
|
-
"label": "read messages",
|
|
684
|
-
"detailKeys": ["channelId", "limit"]
|
|
685
|
-
},
|
|
686
|
-
"sendMessage": {
|
|
687
|
-
"label": "send",
|
|
688
|
-
"detailKeys": ["to", "content"]
|
|
689
|
-
},
|
|
690
|
-
"editMessage": {
|
|
691
|
-
"label": "edit",
|
|
692
|
-
"detailKeys": ["channelId", "messageId"]
|
|
693
|
-
},
|
|
694
|
-
"deleteMessage": {
|
|
695
|
-
"label": "delete",
|
|
696
|
-
"detailKeys": ["channelId", "messageId"]
|
|
697
|
-
},
|
|
698
|
-
"threadCreate": {
|
|
699
|
-
"label": "thread create",
|
|
700
|
-
"detailKeys": ["channelId", "name"]
|
|
701
|
-
},
|
|
702
|
-
"threadList": {
|
|
703
|
-
"label": "thread list",
|
|
704
|
-
"detailKeys": ["guildId", "channelId"]
|
|
705
|
-
},
|
|
706
|
-
"threadReply": {
|
|
707
|
-
"label": "thread reply",
|
|
708
|
-
"detailKeys": ["channelId", "content"]
|
|
709
|
-
},
|
|
710
|
-
"pinMessage": {
|
|
711
|
-
"label": "pin",
|
|
712
|
-
"detailKeys": ["channelId", "messageId"]
|
|
713
|
-
},
|
|
714
|
-
"unpinMessage": {
|
|
715
|
-
"label": "unpin",
|
|
716
|
-
"detailKeys": ["channelId", "messageId"]
|
|
717
|
-
},
|
|
718
|
-
"listPins": {
|
|
719
|
-
"label": "list pins",
|
|
720
|
-
"detailKeys": ["channelId"]
|
|
721
|
-
},
|
|
722
|
-
"searchMessages": {
|
|
723
|
-
"label": "search",
|
|
724
|
-
"detailKeys": ["guildId", "content"]
|
|
725
|
-
},
|
|
726
|
-
"memberInfo": {
|
|
727
|
-
"label": "member",
|
|
728
|
-
"detailKeys": ["guildId", "userId"]
|
|
729
|
-
},
|
|
730
|
-
"roleInfo": {
|
|
731
|
-
"label": "roles",
|
|
732
|
-
"detailKeys": ["guildId"]
|
|
733
|
-
},
|
|
734
|
-
"emojiList": {
|
|
735
|
-
"label": "emoji list",
|
|
736
|
-
"detailKeys": ["guildId"]
|
|
737
|
-
},
|
|
738
|
-
"roleAdd": {
|
|
739
|
-
"label": "role add",
|
|
740
|
-
"detailKeys": [
|
|
741
|
-
"guildId",
|
|
742
|
-
"userId",
|
|
743
|
-
"roleId"
|
|
744
|
-
]
|
|
745
|
-
},
|
|
746
|
-
"roleRemove": {
|
|
747
|
-
"label": "role remove",
|
|
748
|
-
"detailKeys": [
|
|
749
|
-
"guildId",
|
|
750
|
-
"userId",
|
|
751
|
-
"roleId"
|
|
752
|
-
]
|
|
753
|
-
},
|
|
754
|
-
"channelInfo": {
|
|
755
|
-
"label": "channel",
|
|
756
|
-
"detailKeys": ["channelId"]
|
|
757
|
-
},
|
|
758
|
-
"channelList": {
|
|
759
|
-
"label": "channels",
|
|
760
|
-
"detailKeys": ["guildId"]
|
|
761
|
-
},
|
|
762
|
-
"voiceStatus": {
|
|
763
|
-
"label": "voice",
|
|
764
|
-
"detailKeys": ["guildId", "userId"]
|
|
765
|
-
},
|
|
766
|
-
"eventList": {
|
|
767
|
-
"label": "events",
|
|
768
|
-
"detailKeys": ["guildId"]
|
|
769
|
-
},
|
|
770
|
-
"eventCreate": {
|
|
771
|
-
"label": "event create",
|
|
772
|
-
"detailKeys": ["guildId", "name"]
|
|
773
|
-
},
|
|
774
|
-
"timeout": {
|
|
775
|
-
"label": "timeout",
|
|
776
|
-
"detailKeys": ["guildId", "userId"]
|
|
777
|
-
},
|
|
778
|
-
"kick": {
|
|
779
|
-
"label": "kick",
|
|
780
|
-
"detailKeys": ["guildId", "userId"]
|
|
781
|
-
},
|
|
782
|
-
"ban": {
|
|
783
|
-
"label": "ban",
|
|
784
|
-
"detailKeys": ["guildId", "userId"]
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
|
-
|
|
791
|
-
//#endregion
|
|
792
|
-
//#region src/agents/tool-display-common.ts
|
|
793
|
-
function asRecord(args) {
|
|
794
|
-
return args && typeof args === "object" ? args : void 0;
|
|
795
|
-
}
|
|
796
|
-
function normalizeToolName(name) {
|
|
797
|
-
return (name ?? "tool").trim();
|
|
798
|
-
}
|
|
799
|
-
function defaultTitle(name) {
|
|
800
|
-
const cleaned = name.replace(/_/g, " ").trim();
|
|
801
|
-
if (!cleaned) return "Tool";
|
|
802
|
-
return cleaned.split(/\s+/).map((part) => part.length <= 2 && part.toUpperCase() === part ? part : `${part.at(0)?.toUpperCase() ?? ""}${part.slice(1)}`).join(" ");
|
|
803
|
-
}
|
|
804
|
-
function normalizeVerb(value) {
|
|
805
|
-
const trimmed = value?.trim();
|
|
806
|
-
if (!trimmed) return;
|
|
807
|
-
return trimmed.replace(/_/g, " ");
|
|
808
|
-
}
|
|
809
|
-
function resolveActionArg(args) {
|
|
810
|
-
if (!args || typeof args !== "object") return;
|
|
811
|
-
const actionRaw = args.action;
|
|
812
|
-
if (typeof actionRaw !== "string") return;
|
|
813
|
-
return actionRaw.trim() || void 0;
|
|
814
|
-
}
|
|
815
|
-
function resolveToolVerbAndDetailForArgs(params) {
|
|
816
|
-
return resolveToolVerbAndDetail({
|
|
817
|
-
toolKey: params.toolKey,
|
|
818
|
-
args: params.args,
|
|
819
|
-
meta: params.meta,
|
|
820
|
-
action: resolveActionArg(params.args),
|
|
821
|
-
spec: params.spec,
|
|
822
|
-
fallbackDetailKeys: params.fallbackDetailKeys,
|
|
823
|
-
detailMode: params.detailMode,
|
|
824
|
-
detailCoerce: params.detailCoerce,
|
|
825
|
-
detailMaxEntries: params.detailMaxEntries,
|
|
826
|
-
detailFormatKey: params.detailFormatKey
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
function coerceDisplayValue(value, opts = {}) {
|
|
830
|
-
const maxStringChars = opts.maxStringChars ?? 160;
|
|
831
|
-
const maxArrayEntries = opts.maxArrayEntries ?? 3;
|
|
832
|
-
if (value === null || value === void 0) return;
|
|
833
|
-
if (typeof value === "string") {
|
|
834
|
-
const trimmed = value.trim();
|
|
835
|
-
if (!trimmed) return;
|
|
836
|
-
const firstLine = trimmed.split(/\r?\n/)[0]?.trim() ?? "";
|
|
837
|
-
if (!firstLine) return;
|
|
838
|
-
if (firstLine.length > maxStringChars) return `${firstLine.slice(0, Math.max(0, maxStringChars - 3))}…`;
|
|
839
|
-
return firstLine;
|
|
840
|
-
}
|
|
841
|
-
if (typeof value === "boolean") {
|
|
842
|
-
if (!value && !opts.includeFalse) return;
|
|
843
|
-
return value ? "true" : "false";
|
|
844
|
-
}
|
|
845
|
-
if (typeof value === "number") {
|
|
846
|
-
if (!Number.isFinite(value)) return opts.includeNonFinite ? String(value) : void 0;
|
|
847
|
-
if (value === 0 && !opts.includeZero) return;
|
|
848
|
-
return String(value);
|
|
849
|
-
}
|
|
850
|
-
if (Array.isArray(value)) {
|
|
851
|
-
const values = value.map((item) => coerceDisplayValue(item, opts)).filter((item) => Boolean(item));
|
|
852
|
-
if (values.length === 0) return;
|
|
853
|
-
const preview = values.slice(0, maxArrayEntries).join(", ");
|
|
854
|
-
return values.length > maxArrayEntries ? `${preview}…` : preview;
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
function lookupValueByPath(args, path) {
|
|
858
|
-
if (!args || typeof args !== "object") return;
|
|
859
|
-
let current = args;
|
|
860
|
-
for (const segment of path.split(".")) {
|
|
861
|
-
if (!segment) return;
|
|
862
|
-
if (!current || typeof current !== "object") return;
|
|
863
|
-
current = current[segment];
|
|
864
|
-
}
|
|
865
|
-
return current;
|
|
866
|
-
}
|
|
867
|
-
function formatDetailKey(raw, overrides = {}) {
|
|
868
|
-
const last = raw.split(".").filter(Boolean).at(-1) ?? raw;
|
|
869
|
-
const override = overrides[last];
|
|
870
|
-
if (override) return override;
|
|
871
|
-
return last.replace(/_/g, " ").replace(/-/g, " ").replace(/([a-z0-9])([A-Z])/g, "$1 $2").trim().toLowerCase() || last.toLowerCase();
|
|
872
|
-
}
|
|
873
|
-
function resolvePathArg(args) {
|
|
874
|
-
const record = asRecord(args);
|
|
875
|
-
if (!record) return;
|
|
876
|
-
for (const candidate of [
|
|
877
|
-
record.path,
|
|
878
|
-
record.file_path,
|
|
879
|
-
record.filePath
|
|
880
|
-
]) {
|
|
881
|
-
if (typeof candidate !== "string") continue;
|
|
882
|
-
const trimmed = candidate.trim();
|
|
883
|
-
if (trimmed) return trimmed;
|
|
884
|
-
}
|
|
885
|
-
}
|
|
886
|
-
function resolveReadDetail(args) {
|
|
887
|
-
const record = asRecord(args);
|
|
888
|
-
if (!record) return;
|
|
889
|
-
const path = resolvePathArg(record);
|
|
890
|
-
if (!path) return;
|
|
891
|
-
const offsetRaw = typeof record.offset === "number" && Number.isFinite(record.offset) ? Math.floor(record.offset) : void 0;
|
|
892
|
-
const limitRaw = typeof record.limit === "number" && Number.isFinite(record.limit) ? Math.floor(record.limit) : void 0;
|
|
893
|
-
const offset = offsetRaw !== void 0 ? Math.max(1, offsetRaw) : void 0;
|
|
894
|
-
const limit = limitRaw !== void 0 ? Math.max(1, limitRaw) : void 0;
|
|
895
|
-
if (offset !== void 0 && limit !== void 0) return `${limit === 1 ? "line" : "lines"} ${offset}-${offset + limit - 1} from ${path}`;
|
|
896
|
-
if (offset !== void 0) return `from line ${offset} in ${path}`;
|
|
897
|
-
if (limit !== void 0) return `first ${limit} ${limit === 1 ? "line" : "lines"} of ${path}`;
|
|
898
|
-
return `from ${path}`;
|
|
899
|
-
}
|
|
900
|
-
function resolveWriteDetail(toolKey, args) {
|
|
901
|
-
const record = asRecord(args);
|
|
902
|
-
if (!record) return;
|
|
903
|
-
const path = resolvePathArg(record) ?? (typeof record.url === "string" ? record.url.trim() : void 0);
|
|
904
|
-
if (!path) return;
|
|
905
|
-
if (toolKey === "attach") return `from ${path}`;
|
|
906
|
-
const destinationPrefix = toolKey === "edit" ? "in" : "to";
|
|
907
|
-
const content = typeof record.content === "string" ? record.content : typeof record.newText === "string" ? record.newText : typeof record.new_string === "string" ? record.new_string : void 0;
|
|
908
|
-
if (content && content.length > 0) return `${destinationPrefix} ${path} (${content.length} chars)`;
|
|
909
|
-
return `${destinationPrefix} ${path}`;
|
|
910
|
-
}
|
|
911
|
-
function resolveWebSearchDetail(args) {
|
|
912
|
-
const record = asRecord(args);
|
|
913
|
-
if (!record) return;
|
|
914
|
-
const query = typeof record.query === "string" ? record.query.trim() : void 0;
|
|
915
|
-
const count = typeof record.count === "number" && Number.isFinite(record.count) && record.count > 0 ? Math.floor(record.count) : void 0;
|
|
916
|
-
if (!query) return;
|
|
917
|
-
return count !== void 0 ? `for "${query}" (top ${count})` : `for "${query}"`;
|
|
918
|
-
}
|
|
919
|
-
function resolveWebFetchDetail(args) {
|
|
920
|
-
const record = asRecord(args);
|
|
921
|
-
if (!record) return;
|
|
922
|
-
const url = typeof record.url === "string" ? record.url.trim() : void 0;
|
|
923
|
-
if (!url) return;
|
|
924
|
-
const mode = typeof record.extractMode === "string" ? record.extractMode.trim() : void 0;
|
|
925
|
-
const maxChars = typeof record.maxChars === "number" && Number.isFinite(record.maxChars) && record.maxChars > 0 ? Math.floor(record.maxChars) : void 0;
|
|
926
|
-
const suffix = [mode ? `mode ${mode}` : void 0, maxChars !== void 0 ? `max ${maxChars} chars` : void 0].filter((value) => Boolean(value)).join(", ");
|
|
927
|
-
return suffix ? `from ${url} (${suffix})` : `from ${url}`;
|
|
928
|
-
}
|
|
929
|
-
function stripOuterQuotes(value) {
|
|
930
|
-
if (!value) return value;
|
|
931
|
-
const trimmed = value.trim();
|
|
932
|
-
if (trimmed.length >= 2 && (trimmed.startsWith("\"") && trimmed.endsWith("\"") || trimmed.startsWith("'") && trimmed.endsWith("'"))) return trimmed.slice(1, -1).trim();
|
|
933
|
-
return trimmed;
|
|
934
|
-
}
|
|
935
|
-
function splitShellWords(input, maxWords = 48) {
|
|
936
|
-
if (!input) return [];
|
|
937
|
-
const words = [];
|
|
938
|
-
let current = "";
|
|
939
|
-
let quote;
|
|
940
|
-
let escaped = false;
|
|
941
|
-
for (let i = 0; i < input.length; i += 1) {
|
|
942
|
-
const char = input[i];
|
|
943
|
-
if (escaped) {
|
|
944
|
-
current += char;
|
|
945
|
-
escaped = false;
|
|
946
|
-
continue;
|
|
947
|
-
}
|
|
948
|
-
if (char === "\\") {
|
|
949
|
-
escaped = true;
|
|
950
|
-
continue;
|
|
951
|
-
}
|
|
952
|
-
if (quote) {
|
|
953
|
-
if (char === quote) quote = void 0;
|
|
954
|
-
else current += char;
|
|
955
|
-
continue;
|
|
956
|
-
}
|
|
957
|
-
if (char === "\"" || char === "'") {
|
|
958
|
-
quote = char;
|
|
959
|
-
continue;
|
|
960
|
-
}
|
|
961
|
-
if (/\s/.test(char)) {
|
|
962
|
-
if (!current) continue;
|
|
963
|
-
words.push(current);
|
|
964
|
-
if (words.length >= maxWords) return words;
|
|
965
|
-
current = "";
|
|
966
|
-
continue;
|
|
967
|
-
}
|
|
968
|
-
current += char;
|
|
969
|
-
}
|
|
970
|
-
if (current) words.push(current);
|
|
971
|
-
return words;
|
|
972
|
-
}
|
|
973
|
-
function binaryName(token) {
|
|
974
|
-
if (!token) return;
|
|
975
|
-
const cleaned = stripOuterQuotes(token) ?? token;
|
|
976
|
-
return (cleaned.split(/[/]/).at(-1) ?? cleaned).trim().toLowerCase();
|
|
977
|
-
}
|
|
978
|
-
function optionValue(words, names) {
|
|
979
|
-
const lookup = new Set(names);
|
|
980
|
-
for (let i = 0; i < words.length; i += 1) {
|
|
981
|
-
const token = words[i];
|
|
982
|
-
if (!token) continue;
|
|
983
|
-
if (lookup.has(token)) {
|
|
984
|
-
const value = words[i + 1];
|
|
985
|
-
if (value && !value.startsWith("-")) return value;
|
|
986
|
-
continue;
|
|
987
|
-
}
|
|
988
|
-
for (const name of names) if (name.startsWith("--") && token.startsWith(`${name}=`)) return token.slice(name.length + 1);
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
function positionalArgs(words, from = 1, optionsWithValue = []) {
|
|
992
|
-
const args = [];
|
|
993
|
-
const takesValue = new Set(optionsWithValue);
|
|
994
|
-
for (let i = from; i < words.length; i += 1) {
|
|
995
|
-
const token = words[i];
|
|
996
|
-
if (!token) continue;
|
|
997
|
-
if (token === "--") {
|
|
998
|
-
for (let j = i + 1; j < words.length; j += 1) {
|
|
999
|
-
const candidate = words[j];
|
|
1000
|
-
if (candidate) args.push(candidate);
|
|
1001
|
-
}
|
|
1002
|
-
break;
|
|
1003
|
-
}
|
|
1004
|
-
if (token.startsWith("--")) {
|
|
1005
|
-
if (token.includes("=")) continue;
|
|
1006
|
-
if (takesValue.has(token)) i += 1;
|
|
1007
|
-
continue;
|
|
1008
|
-
}
|
|
1009
|
-
if (token.startsWith("-")) {
|
|
1010
|
-
if (takesValue.has(token)) i += 1;
|
|
1011
|
-
continue;
|
|
1012
|
-
}
|
|
1013
|
-
args.push(token);
|
|
1014
|
-
}
|
|
1015
|
-
return args;
|
|
1016
|
-
}
|
|
1017
|
-
function firstPositional(words, from = 1, optionsWithValue = []) {
|
|
1018
|
-
return positionalArgs(words, from, optionsWithValue)[0];
|
|
1019
|
-
}
|
|
1020
|
-
function trimLeadingEnv(words) {
|
|
1021
|
-
if (words.length === 0) return words;
|
|
1022
|
-
let index = 0;
|
|
1023
|
-
if (binaryName(words[0]) === "env") {
|
|
1024
|
-
index = 1;
|
|
1025
|
-
while (index < words.length) {
|
|
1026
|
-
const token = words[index];
|
|
1027
|
-
if (!token) break;
|
|
1028
|
-
if (token.startsWith("-")) {
|
|
1029
|
-
index += 1;
|
|
1030
|
-
continue;
|
|
1031
|
-
}
|
|
1032
|
-
if (/^[A-Za-z_][A-Za-z0-9_]*=/.test(token)) {
|
|
1033
|
-
index += 1;
|
|
1034
|
-
continue;
|
|
1035
|
-
}
|
|
1036
|
-
break;
|
|
1037
|
-
}
|
|
1038
|
-
return words.slice(index);
|
|
1039
|
-
}
|
|
1040
|
-
while (index < words.length && /^[A-Za-z_][A-Za-z0-9_]*=/.test(words[index])) index += 1;
|
|
1041
|
-
return words.slice(index);
|
|
1042
|
-
}
|
|
1043
|
-
function unwrapShellWrapper(command) {
|
|
1044
|
-
const words = splitShellWords(command, 10);
|
|
1045
|
-
if (words.length < 3) return command;
|
|
1046
|
-
const bin = binaryName(words[0]);
|
|
1047
|
-
if (!(bin === "bash" || bin === "sh" || bin === "zsh" || bin === "fish")) return command;
|
|
1048
|
-
const flagIndex = words.findIndex((token, index) => index > 0 && (token === "-c" || token === "-lc" || token === "-ic"));
|
|
1049
|
-
if (flagIndex === -1) return command;
|
|
1050
|
-
const inner = words.slice(flagIndex + 1).join(" ").trim();
|
|
1051
|
-
return inner ? stripOuterQuotes(inner) ?? command : command;
|
|
1052
|
-
}
|
|
1053
|
-
function scanTopLevelChars(command, visit) {
|
|
1054
|
-
let quote;
|
|
1055
|
-
let escaped = false;
|
|
1056
|
-
for (let i = 0; i < command.length; i += 1) {
|
|
1057
|
-
const char = command[i];
|
|
1058
|
-
if (escaped) {
|
|
1059
|
-
escaped = false;
|
|
1060
|
-
continue;
|
|
1061
|
-
}
|
|
1062
|
-
if (char === "\\") {
|
|
1063
|
-
escaped = true;
|
|
1064
|
-
continue;
|
|
1065
|
-
}
|
|
1066
|
-
if (quote) {
|
|
1067
|
-
if (char === quote) quote = void 0;
|
|
1068
|
-
continue;
|
|
1069
|
-
}
|
|
1070
|
-
if (char === "\"" || char === "'") {
|
|
1071
|
-
quote = char;
|
|
1072
|
-
continue;
|
|
1073
|
-
}
|
|
1074
|
-
if (visit(char, i) === false) return;
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
function splitTopLevelStages(command) {
|
|
1078
|
-
const parts = [];
|
|
1079
|
-
let start = 0;
|
|
1080
|
-
scanTopLevelChars(command, (char, index) => {
|
|
1081
|
-
if (char === ";") {
|
|
1082
|
-
parts.push(command.slice(start, index));
|
|
1083
|
-
start = index + 1;
|
|
1084
|
-
return true;
|
|
1085
|
-
}
|
|
1086
|
-
if ((char === "&" || char === "|") && command[index + 1] === char) {
|
|
1087
|
-
parts.push(command.slice(start, index));
|
|
1088
|
-
start = index + 2;
|
|
1089
|
-
return true;
|
|
1090
|
-
}
|
|
1091
|
-
return true;
|
|
1092
|
-
});
|
|
1093
|
-
parts.push(command.slice(start));
|
|
1094
|
-
return parts.map((part) => part.trim()).filter((part) => part.length > 0);
|
|
1095
|
-
}
|
|
1096
|
-
function splitTopLevelPipes(command) {
|
|
1097
|
-
const parts = [];
|
|
1098
|
-
let start = 0;
|
|
1099
|
-
scanTopLevelChars(command, (char, index) => {
|
|
1100
|
-
if (char === "|" && command[index - 1] !== "|" && command[index + 1] !== "|") {
|
|
1101
|
-
parts.push(command.slice(start, index));
|
|
1102
|
-
start = index + 1;
|
|
1103
|
-
}
|
|
1104
|
-
return true;
|
|
1105
|
-
});
|
|
1106
|
-
parts.push(command.slice(start));
|
|
1107
|
-
return parts.map((part) => part.trim()).filter((part) => part.length > 0);
|
|
1108
|
-
}
|
|
1109
|
-
function parseChdirTarget(head) {
|
|
1110
|
-
const words = splitShellWords(head, 3);
|
|
1111
|
-
const bin = binaryName(words[0]);
|
|
1112
|
-
if (bin === "cd" || bin === "pushd") return words[1] || void 0;
|
|
1113
|
-
}
|
|
1114
|
-
function isChdirCommand(head) {
|
|
1115
|
-
const bin = binaryName(splitShellWords(head, 2)[0]);
|
|
1116
|
-
return bin === "cd" || bin === "pushd" || bin === "popd";
|
|
1117
|
-
}
|
|
1118
|
-
function isPopdCommand(head) {
|
|
1119
|
-
return binaryName(splitShellWords(head, 2)[0]) === "popd";
|
|
1120
|
-
}
|
|
1121
|
-
function stripShellPreamble(command) {
|
|
1122
|
-
let rest = command.trim();
|
|
1123
|
-
let chdirPath;
|
|
1124
|
-
for (let i = 0; i < 4; i += 1) {
|
|
1125
|
-
let first;
|
|
1126
|
-
scanTopLevelChars(rest, (char, idx) => {
|
|
1127
|
-
if (char === "&" && rest[idx + 1] === "&") {
|
|
1128
|
-
first = {
|
|
1129
|
-
index: idx,
|
|
1130
|
-
length: 2
|
|
1131
|
-
};
|
|
1132
|
-
return false;
|
|
1133
|
-
}
|
|
1134
|
-
if (char === "|" && rest[idx + 1] === "|") {
|
|
1135
|
-
first = {
|
|
1136
|
-
index: idx,
|
|
1137
|
-
length: 2,
|
|
1138
|
-
isOr: true
|
|
1139
|
-
};
|
|
1140
|
-
return false;
|
|
1141
|
-
}
|
|
1142
|
-
if (char === ";" || char === "\n") {
|
|
1143
|
-
first = {
|
|
1144
|
-
index: idx,
|
|
1145
|
-
length: 1
|
|
1146
|
-
};
|
|
1147
|
-
return false;
|
|
1148
|
-
}
|
|
1149
|
-
});
|
|
1150
|
-
const head = (first ? rest.slice(0, first.index) : rest).trim();
|
|
1151
|
-
const isChdir = (first ? !first.isOr : i > 0) && isChdirCommand(head);
|
|
1152
|
-
if (!(head.startsWith("set ") || head.startsWith("export ") || head.startsWith("unset ") || isChdir)) break;
|
|
1153
|
-
if (isChdir) if (isPopdCommand(head)) chdirPath = void 0;
|
|
1154
|
-
else chdirPath = parseChdirTarget(head) ?? chdirPath;
|
|
1155
|
-
rest = first ? rest.slice(first.index + first.length).trimStart() : "";
|
|
1156
|
-
if (!rest) break;
|
|
1157
|
-
}
|
|
1158
|
-
return {
|
|
1159
|
-
command: rest.trim(),
|
|
1160
|
-
chdirPath
|
|
1161
|
-
};
|
|
1162
|
-
}
|
|
1163
|
-
function summarizeKnownExec(words) {
|
|
1164
|
-
if (words.length === 0) return "run command";
|
|
1165
|
-
const bin = binaryName(words[0]) ?? "command";
|
|
1166
|
-
if (bin === "git") {
|
|
1167
|
-
const globalWithValue = new Set([
|
|
1168
|
-
"-C",
|
|
1169
|
-
"-c",
|
|
1170
|
-
"--git-dir",
|
|
1171
|
-
"--work-tree",
|
|
1172
|
-
"--namespace",
|
|
1173
|
-
"--config-env"
|
|
1174
|
-
]);
|
|
1175
|
-
const gitCwd = optionValue(words, ["-C"]);
|
|
1176
|
-
let sub;
|
|
1177
|
-
for (let i = 1; i < words.length; i += 1) {
|
|
1178
|
-
const token = words[i];
|
|
1179
|
-
if (!token) continue;
|
|
1180
|
-
if (token === "--") {
|
|
1181
|
-
sub = firstPositional(words, i + 1);
|
|
1182
|
-
break;
|
|
1183
|
-
}
|
|
1184
|
-
if (token.startsWith("--")) {
|
|
1185
|
-
if (token.includes("=")) continue;
|
|
1186
|
-
if (globalWithValue.has(token)) i += 1;
|
|
1187
|
-
continue;
|
|
1188
|
-
}
|
|
1189
|
-
if (token.startsWith("-")) {
|
|
1190
|
-
if (globalWithValue.has(token)) i += 1;
|
|
1191
|
-
continue;
|
|
1192
|
-
}
|
|
1193
|
-
sub = token;
|
|
1194
|
-
break;
|
|
1195
|
-
}
|
|
1196
|
-
const map = {
|
|
1197
|
-
status: "check git status",
|
|
1198
|
-
diff: "check git diff",
|
|
1199
|
-
log: "view git history",
|
|
1200
|
-
show: "show git object",
|
|
1201
|
-
branch: "list git branches",
|
|
1202
|
-
checkout: "switch git branch",
|
|
1203
|
-
switch: "switch git branch",
|
|
1204
|
-
commit: "create git commit",
|
|
1205
|
-
pull: "pull git changes",
|
|
1206
|
-
push: "push git changes",
|
|
1207
|
-
fetch: "fetch git changes",
|
|
1208
|
-
merge: "merge git changes",
|
|
1209
|
-
rebase: "rebase git branch",
|
|
1210
|
-
add: "stage git changes",
|
|
1211
|
-
restore: "restore git files",
|
|
1212
|
-
reset: "reset git state",
|
|
1213
|
-
stash: "stash git changes"
|
|
1214
|
-
};
|
|
1215
|
-
if (sub && map[sub]) return map[sub];
|
|
1216
|
-
if (!sub || sub.startsWith("/") || sub.startsWith("~") || sub.includes("/")) return gitCwd ? `run git command in ${gitCwd}` : "run git command";
|
|
1217
|
-
return `run git ${sub}`;
|
|
1218
|
-
}
|
|
1219
|
-
if (bin === "grep" || bin === "rg" || bin === "ripgrep") {
|
|
1220
|
-
const positional = positionalArgs(words, 1, [
|
|
1221
|
-
"-e",
|
|
1222
|
-
"--regexp",
|
|
1223
|
-
"-f",
|
|
1224
|
-
"--file",
|
|
1225
|
-
"-m",
|
|
1226
|
-
"--max-count",
|
|
1227
|
-
"-A",
|
|
1228
|
-
"--after-context",
|
|
1229
|
-
"-B",
|
|
1230
|
-
"--before-context",
|
|
1231
|
-
"-C",
|
|
1232
|
-
"--context"
|
|
1233
|
-
]);
|
|
1234
|
-
const pattern = optionValue(words, ["-e", "--regexp"]) ?? positional[0];
|
|
1235
|
-
const target = positional.length > 1 ? positional.at(-1) : void 0;
|
|
1236
|
-
if (pattern) return target ? `search "${pattern}" in ${target}` : `search "${pattern}"`;
|
|
1237
|
-
return "search text";
|
|
1238
|
-
}
|
|
1239
|
-
if (bin === "find") {
|
|
1240
|
-
const path = words[1] && !words[1].startsWith("-") ? words[1] : ".";
|
|
1241
|
-
const name = optionValue(words, ["-name", "-iname"]);
|
|
1242
|
-
return name ? `find files named "${name}" in ${path}` : `find files in ${path}`;
|
|
1243
|
-
}
|
|
1244
|
-
if (bin === "ls") {
|
|
1245
|
-
const target = firstPositional(words, 1);
|
|
1246
|
-
return target ? `list files in ${target}` : "list files";
|
|
1247
|
-
}
|
|
1248
|
-
if (bin === "head" || bin === "tail") {
|
|
1249
|
-
const lines = optionValue(words, ["-n", "--lines"]) ?? words.slice(1).find((token) => /^-\d+$/.test(token))?.slice(1);
|
|
1250
|
-
const positional = positionalArgs(words, 1, ["-n", "--lines"]);
|
|
1251
|
-
let target = positional.at(-1);
|
|
1252
|
-
if (target && /^\d+$/.test(target) && positional.length === 1) target = void 0;
|
|
1253
|
-
const side = bin === "head" ? "first" : "last";
|
|
1254
|
-
const unit = lines === "1" ? "line" : "lines";
|
|
1255
|
-
if (lines && target) return `show ${side} ${lines} ${unit} of ${target}`;
|
|
1256
|
-
if (lines) return `show ${side} ${lines} ${unit}`;
|
|
1257
|
-
if (target) return `show ${target}`;
|
|
1258
|
-
return `show ${bin} output`;
|
|
1259
|
-
}
|
|
1260
|
-
if (bin === "cat") {
|
|
1261
|
-
const target = firstPositional(words, 1);
|
|
1262
|
-
return target ? `show ${target}` : "show output";
|
|
1263
|
-
}
|
|
1264
|
-
if (bin === "sed") {
|
|
1265
|
-
const expression = optionValue(words, ["-e", "--expression"]);
|
|
1266
|
-
const positional = positionalArgs(words, 1, [
|
|
1267
|
-
"-e",
|
|
1268
|
-
"--expression",
|
|
1269
|
-
"-f",
|
|
1270
|
-
"--file"
|
|
1271
|
-
]);
|
|
1272
|
-
const script = expression ?? positional[0];
|
|
1273
|
-
const target = expression ? positional[0] : positional[1];
|
|
1274
|
-
if (script) {
|
|
1275
|
-
const compact = (stripOuterQuotes(script) ?? script).replace(/\s+/g, "");
|
|
1276
|
-
const range = compact.match(/^([0-9]+),([0-9]+)p$/);
|
|
1277
|
-
if (range) return target ? `print lines ${range[1]}-${range[2]} from ${target}` : `print lines ${range[1]}-${range[2]}`;
|
|
1278
|
-
const single = compact.match(/^([0-9]+)p$/);
|
|
1279
|
-
if (single) return target ? `print line ${single[1]} from ${target}` : `print line ${single[1]}`;
|
|
1280
|
-
}
|
|
1281
|
-
return target ? `run sed on ${target}` : "run sed transform";
|
|
1282
|
-
}
|
|
1283
|
-
if (bin === "printf" || bin === "echo") return "print text";
|
|
1284
|
-
if (bin === "cp" || bin === "mv") {
|
|
1285
|
-
const positional = positionalArgs(words, 1, [
|
|
1286
|
-
"-t",
|
|
1287
|
-
"--target-directory",
|
|
1288
|
-
"-S",
|
|
1289
|
-
"--suffix"
|
|
1290
|
-
]);
|
|
1291
|
-
const src = positional[0];
|
|
1292
|
-
const dst = positional[1];
|
|
1293
|
-
const action = bin === "cp" ? "copy" : "move";
|
|
1294
|
-
if (src && dst) return `${action} ${src} to ${dst}`;
|
|
1295
|
-
if (src) return `${action} ${src}`;
|
|
1296
|
-
return `${action} files`;
|
|
1297
|
-
}
|
|
1298
|
-
if (bin === "rm") {
|
|
1299
|
-
const target = firstPositional(words, 1);
|
|
1300
|
-
return target ? `remove ${target}` : "remove files";
|
|
1301
|
-
}
|
|
1302
|
-
if (bin === "mkdir") {
|
|
1303
|
-
const target = firstPositional(words, 1);
|
|
1304
|
-
return target ? `create folder ${target}` : "create folder";
|
|
1305
|
-
}
|
|
1306
|
-
if (bin === "touch") {
|
|
1307
|
-
const target = firstPositional(words, 1);
|
|
1308
|
-
return target ? `create file ${target}` : "create file";
|
|
1309
|
-
}
|
|
1310
|
-
if (bin === "curl" || bin === "wget") {
|
|
1311
|
-
const url = words.find((token) => /^https?:\/\//i.test(token));
|
|
1312
|
-
return url ? `fetch ${url}` : "fetch url";
|
|
1313
|
-
}
|
|
1314
|
-
if (bin === "npm" || bin === "pnpm" || bin === "yarn" || bin === "bun") {
|
|
1315
|
-
const positional = positionalArgs(words, 1, [
|
|
1316
|
-
"--prefix",
|
|
1317
|
-
"-C",
|
|
1318
|
-
"--cwd",
|
|
1319
|
-
"--config"
|
|
1320
|
-
]);
|
|
1321
|
-
const sub = positional[0] ?? "command";
|
|
1322
|
-
return {
|
|
1323
|
-
install: "install dependencies",
|
|
1324
|
-
test: "run tests",
|
|
1325
|
-
build: "run build",
|
|
1326
|
-
start: "start app",
|
|
1327
|
-
lint: "run lint",
|
|
1328
|
-
run: positional[1] ? `run ${positional[1]}` : "run script"
|
|
1329
|
-
}[sub] ?? `run ${bin} ${sub}`;
|
|
1330
|
-
}
|
|
1331
|
-
if (bin === "node" || bin === "python" || bin === "python3" || bin === "ruby" || bin === "php") {
|
|
1332
|
-
if (words.slice(1).find((token) => token.startsWith("<<"))) return `run ${bin} inline script (heredoc)`;
|
|
1333
|
-
if ((bin === "node" ? optionValue(words, ["-e", "--eval"]) : bin === "python" || bin === "python3" ? optionValue(words, ["-c"]) : void 0) !== void 0) return `run ${bin} inline script`;
|
|
1334
|
-
const script = firstPositional(words, 1, bin === "node" ? [
|
|
1335
|
-
"-e",
|
|
1336
|
-
"--eval",
|
|
1337
|
-
"-m"
|
|
1338
|
-
] : [
|
|
1339
|
-
"-c",
|
|
1340
|
-
"-e",
|
|
1341
|
-
"--eval",
|
|
1342
|
-
"-m"
|
|
1343
|
-
]);
|
|
1344
|
-
if (!script) return `run ${bin}`;
|
|
1345
|
-
if (bin === "node") return `${words.includes("--check") || words.includes("-c") ? "check js syntax for" : "run node script"} ${script}`;
|
|
1346
|
-
return `run ${bin} ${script}`;
|
|
1347
|
-
}
|
|
1348
|
-
if (bin === "openclaw") {
|
|
1349
|
-
const sub = firstPositional(words, 1);
|
|
1350
|
-
return sub ? `run openclaw ${sub}` : "run openclaw";
|
|
1351
|
-
}
|
|
1352
|
-
const arg = firstPositional(words, 1);
|
|
1353
|
-
if (!arg || arg.length > 48) return `run ${bin}`;
|
|
1354
|
-
return /^[A-Za-z0-9._/-]+$/.test(arg) ? `run ${bin} ${arg}` : `run ${bin}`;
|
|
1355
|
-
}
|
|
1356
|
-
function summarizePipeline(stage) {
|
|
1357
|
-
const pipeline = splitTopLevelPipes(stage);
|
|
1358
|
-
if (pipeline.length > 1) return `${summarizeKnownExec(trimLeadingEnv(splitShellWords(pipeline[0])))} -> ${summarizeKnownExec(trimLeadingEnv(splitShellWords(pipeline[pipeline.length - 1])))}${pipeline.length > 2 ? ` (+${pipeline.length - 2} steps)` : ""}`;
|
|
1359
|
-
return summarizeKnownExec(trimLeadingEnv(splitShellWords(stage)));
|
|
1360
|
-
}
|
|
1361
|
-
function summarizeExecCommand(command) {
|
|
1362
|
-
const { command: cleaned, chdirPath } = stripShellPreamble(command);
|
|
1363
|
-
if (!cleaned) return chdirPath ? {
|
|
1364
|
-
text: "",
|
|
1365
|
-
chdirPath
|
|
1366
|
-
} : void 0;
|
|
1367
|
-
const stages = splitTopLevelStages(cleaned);
|
|
1368
|
-
if (stages.length === 0) return;
|
|
1369
|
-
const summaries = stages.map((stage) => summarizePipeline(stage));
|
|
1370
|
-
return {
|
|
1371
|
-
text: summaries.length === 1 ? summaries[0] : summaries.join(" → "),
|
|
1372
|
-
chdirPath,
|
|
1373
|
-
allGeneric: summaries.every((s) => isGenericSummary(s))
|
|
1374
|
-
};
|
|
1375
|
-
}
|
|
1376
|
-
/** Known summarizer prefixes that indicate a recognized command with useful context. */
|
|
1377
|
-
const KNOWN_SUMMARY_PREFIXES = [
|
|
1378
|
-
"check git",
|
|
1379
|
-
"view git",
|
|
1380
|
-
"show git",
|
|
1381
|
-
"list git",
|
|
1382
|
-
"switch git",
|
|
1383
|
-
"create git",
|
|
1384
|
-
"pull git",
|
|
1385
|
-
"push git",
|
|
1386
|
-
"fetch git",
|
|
1387
|
-
"merge git",
|
|
1388
|
-
"rebase git",
|
|
1389
|
-
"stage git",
|
|
1390
|
-
"restore git",
|
|
1391
|
-
"reset git",
|
|
1392
|
-
"stash git",
|
|
1393
|
-
"search ",
|
|
1394
|
-
"find files",
|
|
1395
|
-
"list files",
|
|
1396
|
-
"show first",
|
|
1397
|
-
"show last",
|
|
1398
|
-
"print line",
|
|
1399
|
-
"print text",
|
|
1400
|
-
"copy ",
|
|
1401
|
-
"move ",
|
|
1402
|
-
"remove ",
|
|
1403
|
-
"create folder",
|
|
1404
|
-
"create file",
|
|
1405
|
-
"fetch http",
|
|
1406
|
-
"install dependencies",
|
|
1407
|
-
"run tests",
|
|
1408
|
-
"run build",
|
|
1409
|
-
"start app",
|
|
1410
|
-
"run lint",
|
|
1411
|
-
"run openclaw",
|
|
1412
|
-
"run node script",
|
|
1413
|
-
"run node ",
|
|
1414
|
-
"run python",
|
|
1415
|
-
"run ruby",
|
|
1416
|
-
"run php",
|
|
1417
|
-
"run sed",
|
|
1418
|
-
"run git ",
|
|
1419
|
-
"run npm ",
|
|
1420
|
-
"run pnpm ",
|
|
1421
|
-
"run yarn ",
|
|
1422
|
-
"run bun ",
|
|
1423
|
-
"check js syntax"
|
|
1424
|
-
];
|
|
1425
|
-
/** True when the summary is generic and the raw command would be more informative. */
|
|
1426
|
-
function isGenericSummary(summary) {
|
|
1427
|
-
if (summary === "run command") return true;
|
|
1428
|
-
if (summary.startsWith("run ")) return !KNOWN_SUMMARY_PREFIXES.some((prefix) => summary.startsWith(prefix));
|
|
1429
|
-
return false;
|
|
1430
|
-
}
|
|
1431
|
-
/** Compact the raw command for display: collapse whitespace, trim long strings. */
|
|
1432
|
-
function compactRawCommand(raw, maxLength = 120) {
|
|
1433
|
-
const oneLine = raw.replace(/\s*\n\s*/g, " ").replace(/\s{2,}/g, " ").trim();
|
|
1434
|
-
if (oneLine.length <= maxLength) return oneLine;
|
|
1435
|
-
return `${oneLine.slice(0, Math.max(0, maxLength - 1))}…`;
|
|
1436
|
-
}
|
|
1437
|
-
function resolveExecDetail(args) {
|
|
1438
|
-
const record = asRecord(args);
|
|
1439
|
-
if (!record) return;
|
|
1440
|
-
const raw = typeof record.command === "string" ? record.command.trim() : void 0;
|
|
1441
|
-
if (!raw) return;
|
|
1442
|
-
const unwrapped = unwrapShellWrapper(raw);
|
|
1443
|
-
const result = summarizeExecCommand(unwrapped) ?? summarizeExecCommand(raw);
|
|
1444
|
-
const summary = result?.text || "run command";
|
|
1445
|
-
const cwd = (typeof record.workdir === "string" ? record.workdir : typeof record.cwd === "string" ? record.cwd : void 0)?.trim() || result?.chdirPath || void 0;
|
|
1446
|
-
const compact = compactRawCommand(unwrapped);
|
|
1447
|
-
if (result?.allGeneric !== false && isGenericSummary(summary)) return cwd ? `${compact} (in ${cwd})` : compact;
|
|
1448
|
-
const displaySummary = cwd ? `${summary} (in ${cwd})` : summary;
|
|
1449
|
-
if (compact && compact !== displaySummary && compact !== summary) return `${displaySummary}\n\n\`${compact}\``;
|
|
1450
|
-
return displaySummary;
|
|
1451
|
-
}
|
|
1452
|
-
function resolveActionSpec(spec, action) {
|
|
1453
|
-
if (!spec || !action) return;
|
|
1454
|
-
return spec.actions?.[action] ?? void 0;
|
|
1455
|
-
}
|
|
1456
|
-
function resolveDetailFromKeys(args, keys, opts) {
|
|
1457
|
-
if (opts.mode === "first") {
|
|
1458
|
-
for (const key of keys) {
|
|
1459
|
-
const display = coerceDisplayValue(lookupValueByPath(args, key), opts.coerce);
|
|
1460
|
-
if (display) return display;
|
|
1461
|
-
}
|
|
1462
|
-
return;
|
|
1463
|
-
}
|
|
1464
|
-
const entries = [];
|
|
1465
|
-
for (const key of keys) {
|
|
1466
|
-
const display = coerceDisplayValue(lookupValueByPath(args, key), opts.coerce);
|
|
1467
|
-
if (!display) continue;
|
|
1468
|
-
entries.push({
|
|
1469
|
-
label: opts.formatKey ? opts.formatKey(key) : key,
|
|
1470
|
-
value: display
|
|
1471
|
-
});
|
|
1472
|
-
}
|
|
1473
|
-
if (entries.length === 0) return;
|
|
1474
|
-
if (entries.length === 1) return entries[0].value;
|
|
1475
|
-
const seen = /* @__PURE__ */ new Set();
|
|
1476
|
-
const unique = [];
|
|
1477
|
-
for (const entry of entries) {
|
|
1478
|
-
const token = `${entry.label}:${entry.value}`;
|
|
1479
|
-
if (seen.has(token)) continue;
|
|
1480
|
-
seen.add(token);
|
|
1481
|
-
unique.push(entry);
|
|
1482
|
-
}
|
|
1483
|
-
if (unique.length === 0) return;
|
|
1484
|
-
return unique.slice(0, opts.maxEntries ?? 8).map((entry) => `${entry.label} ${entry.value}`).join(" · ");
|
|
1485
|
-
}
|
|
1486
|
-
function resolveToolVerbAndDetail(params) {
|
|
1487
|
-
const actionSpec = resolveActionSpec(params.spec, params.action);
|
|
1488
|
-
const fallbackVerb = params.toolKey === "web_search" ? "search" : params.toolKey === "web_fetch" ? "fetch" : params.toolKey.replace(/_/g, " ").replace(/\./g, " ");
|
|
1489
|
-
const verb = normalizeVerb(actionSpec?.label ?? params.action ?? fallbackVerb);
|
|
1490
|
-
let detail;
|
|
1491
|
-
if (params.toolKey === "exec") detail = resolveExecDetail(params.args);
|
|
1492
|
-
if (!detail && params.toolKey === "read") detail = resolveReadDetail(params.args);
|
|
1493
|
-
if (!detail && (params.toolKey === "write" || params.toolKey === "edit" || params.toolKey === "attach")) detail = resolveWriteDetail(params.toolKey, params.args);
|
|
1494
|
-
if (!detail && params.toolKey === "web_search") detail = resolveWebSearchDetail(params.args);
|
|
1495
|
-
if (!detail && params.toolKey === "web_fetch") detail = resolveWebFetchDetail(params.args);
|
|
1496
|
-
const detailKeys = actionSpec?.detailKeys ?? params.spec?.detailKeys ?? params.fallbackDetailKeys ?? [];
|
|
1497
|
-
if (!detail && detailKeys.length > 0) detail = resolveDetailFromKeys(params.args, detailKeys, {
|
|
1498
|
-
mode: params.detailMode,
|
|
1499
|
-
coerce: params.detailCoerce,
|
|
1500
|
-
maxEntries: params.detailMaxEntries,
|
|
1501
|
-
formatKey: params.detailFormatKey
|
|
1502
|
-
});
|
|
1503
|
-
if (!detail && params.meta) detail = params.meta;
|
|
1504
|
-
return {
|
|
1505
|
-
verb,
|
|
1506
|
-
detail
|
|
1507
|
-
};
|
|
1508
|
-
}
|
|
1509
|
-
function formatToolDetailText(detail, opts = {}) {
|
|
1510
|
-
if (!detail) return;
|
|
1511
|
-
const normalized = detail.includes(" · ") ? detail.split(" · ").map((part) => part.trim()).filter((part) => part.length > 0).join(", ") : detail;
|
|
1512
|
-
if (!normalized) return;
|
|
1513
|
-
return opts.prefixWithWith ? `with ${normalized}` : normalized;
|
|
1514
|
-
}
|
|
1515
|
-
|
|
1516
|
-
//#endregion
|
|
1517
|
-
//#region src/agents/tool-display-overrides.json
|
|
1518
|
-
var tool_display_overrides_default = {
|
|
1519
|
-
version: 1,
|
|
1520
|
-
tools: {
|
|
1521
|
-
"exec": {
|
|
1522
|
-
"emoji": "🛠️",
|
|
1523
|
-
"title": "Exec",
|
|
1524
|
-
"detailKeys": ["command"]
|
|
1525
|
-
},
|
|
1526
|
-
"tool_call": {
|
|
1527
|
-
"emoji": "🧰",
|
|
1528
|
-
"title": "Tool Call",
|
|
1529
|
-
"detailKeys": []
|
|
1530
|
-
},
|
|
1531
|
-
"tool_call_update": {
|
|
1532
|
-
"emoji": "🧰",
|
|
1533
|
-
"title": "Tool Call",
|
|
1534
|
-
"detailKeys": []
|
|
1535
|
-
},
|
|
1536
|
-
"session_status": {
|
|
1537
|
-
"emoji": "📊",
|
|
1538
|
-
"title": "Session Status",
|
|
1539
|
-
"detailKeys": ["sessionKey", "model"]
|
|
1540
|
-
},
|
|
1541
|
-
"sessions_list": {
|
|
1542
|
-
"emoji": "🗂️",
|
|
1543
|
-
"title": "Sessions",
|
|
1544
|
-
"detailKeys": [
|
|
1545
|
-
"kinds",
|
|
1546
|
-
"limit",
|
|
1547
|
-
"activeMinutes",
|
|
1548
|
-
"messageLimit"
|
|
1549
|
-
]
|
|
1550
|
-
},
|
|
1551
|
-
"sessions_send": {
|
|
1552
|
-
"emoji": "📨",
|
|
1553
|
-
"title": "Session Send",
|
|
1554
|
-
"detailKeys": [
|
|
1555
|
-
"label",
|
|
1556
|
-
"sessionKey",
|
|
1557
|
-
"agentId",
|
|
1558
|
-
"timeoutSeconds"
|
|
1559
|
-
]
|
|
1560
|
-
},
|
|
1561
|
-
"sessions_history": {
|
|
1562
|
-
"emoji": "🧾",
|
|
1563
|
-
"title": "Session History",
|
|
1564
|
-
"detailKeys": [
|
|
1565
|
-
"sessionKey",
|
|
1566
|
-
"limit",
|
|
1567
|
-
"includeTools"
|
|
1568
|
-
]
|
|
1569
|
-
},
|
|
1570
|
-
"sessions_spawn": {
|
|
1571
|
-
"emoji": "🧑🔧",
|
|
1572
|
-
"title": "Sub-agent",
|
|
1573
|
-
"detailKeys": [
|
|
1574
|
-
"label",
|
|
1575
|
-
"task",
|
|
1576
|
-
"agentId",
|
|
1577
|
-
"model",
|
|
1578
|
-
"thinking",
|
|
1579
|
-
"runTimeoutSeconds",
|
|
1580
|
-
"cleanup"
|
|
1581
|
-
]
|
|
1582
|
-
},
|
|
1583
|
-
"subagents": {
|
|
1584
|
-
"emoji": "🤖",
|
|
1585
|
-
"title": "Subagents",
|
|
1586
|
-
"actions": {
|
|
1587
|
-
"list": {
|
|
1588
|
-
"label": "list",
|
|
1589
|
-
"detailKeys": ["recentMinutes"]
|
|
1590
|
-
},
|
|
1591
|
-
"kill": {
|
|
1592
|
-
"label": "kill",
|
|
1593
|
-
"detailKeys": ["target"]
|
|
1594
|
-
},
|
|
1595
|
-
"steer": {
|
|
1596
|
-
"label": "steer",
|
|
1597
|
-
"detailKeys": ["target"]
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
},
|
|
1601
|
-
"agents_list": {
|
|
1602
|
-
"emoji": "🧭",
|
|
1603
|
-
"title": "Agents",
|
|
1604
|
-
"detailKeys": []
|
|
1605
|
-
},
|
|
1606
|
-
"memory_search": {
|
|
1607
|
-
"emoji": "🧠",
|
|
1608
|
-
"title": "Memory Search",
|
|
1609
|
-
"detailKeys": ["query"]
|
|
1610
|
-
},
|
|
1611
|
-
"memory_get": {
|
|
1612
|
-
"emoji": "📓",
|
|
1613
|
-
"title": "Memory Get",
|
|
1614
|
-
"detailKeys": [
|
|
1615
|
-
"path",
|
|
1616
|
-
"from",
|
|
1617
|
-
"lines"
|
|
1618
|
-
]
|
|
1619
|
-
},
|
|
1620
|
-
"web_search": {
|
|
1621
|
-
"emoji": "🔎",
|
|
1622
|
-
"title": "Web Search",
|
|
1623
|
-
"detailKeys": ["query", "count"]
|
|
1624
|
-
},
|
|
1625
|
-
"web_fetch": {
|
|
1626
|
-
"emoji": "📄",
|
|
1627
|
-
"title": "Web Fetch",
|
|
1628
|
-
"detailKeys": [
|
|
1629
|
-
"url",
|
|
1630
|
-
"extractMode",
|
|
1631
|
-
"maxChars"
|
|
1632
|
-
]
|
|
1633
|
-
},
|
|
1634
|
-
"message": {
|
|
1635
|
-
"emoji": "✉️",
|
|
1636
|
-
"title": "Message",
|
|
1637
|
-
"actions": {
|
|
1638
|
-
"send": {
|
|
1639
|
-
"label": "send",
|
|
1640
|
-
"detailKeys": [
|
|
1641
|
-
"provider",
|
|
1642
|
-
"to",
|
|
1643
|
-
"media",
|
|
1644
|
-
"replyTo",
|
|
1645
|
-
"threadId"
|
|
1646
|
-
]
|
|
1647
|
-
},
|
|
1648
|
-
"poll": {
|
|
1649
|
-
"label": "poll",
|
|
1650
|
-
"detailKeys": [
|
|
1651
|
-
"provider",
|
|
1652
|
-
"to",
|
|
1653
|
-
"pollQuestion"
|
|
1654
|
-
]
|
|
1655
|
-
},
|
|
1656
|
-
"react": {
|
|
1657
|
-
"label": "react",
|
|
1658
|
-
"detailKeys": [
|
|
1659
|
-
"provider",
|
|
1660
|
-
"to",
|
|
1661
|
-
"messageId",
|
|
1662
|
-
"emoji",
|
|
1663
|
-
"remove"
|
|
1664
|
-
]
|
|
1665
|
-
},
|
|
1666
|
-
"reactions": {
|
|
1667
|
-
"label": "reactions",
|
|
1668
|
-
"detailKeys": [
|
|
1669
|
-
"provider",
|
|
1670
|
-
"to",
|
|
1671
|
-
"messageId",
|
|
1672
|
-
"limit"
|
|
1673
|
-
]
|
|
1674
|
-
},
|
|
1675
|
-
"read": {
|
|
1676
|
-
"label": "read",
|
|
1677
|
-
"detailKeys": [
|
|
1678
|
-
"provider",
|
|
1679
|
-
"to",
|
|
1680
|
-
"limit"
|
|
1681
|
-
]
|
|
1682
|
-
},
|
|
1683
|
-
"edit": {
|
|
1684
|
-
"label": "edit",
|
|
1685
|
-
"detailKeys": [
|
|
1686
|
-
"provider",
|
|
1687
|
-
"to",
|
|
1688
|
-
"messageId"
|
|
1689
|
-
]
|
|
1690
|
-
},
|
|
1691
|
-
"delete": {
|
|
1692
|
-
"label": "delete",
|
|
1693
|
-
"detailKeys": [
|
|
1694
|
-
"provider",
|
|
1695
|
-
"to",
|
|
1696
|
-
"messageId"
|
|
1697
|
-
]
|
|
1698
|
-
},
|
|
1699
|
-
"pin": {
|
|
1700
|
-
"label": "pin",
|
|
1701
|
-
"detailKeys": [
|
|
1702
|
-
"provider",
|
|
1703
|
-
"to",
|
|
1704
|
-
"messageId"
|
|
1705
|
-
]
|
|
1706
|
-
},
|
|
1707
|
-
"unpin": {
|
|
1708
|
-
"label": "unpin",
|
|
1709
|
-
"detailKeys": [
|
|
1710
|
-
"provider",
|
|
1711
|
-
"to",
|
|
1712
|
-
"messageId"
|
|
1713
|
-
]
|
|
1714
|
-
},
|
|
1715
|
-
"list-pins": {
|
|
1716
|
-
"label": "list pins",
|
|
1717
|
-
"detailKeys": ["provider", "to"]
|
|
1718
|
-
},
|
|
1719
|
-
"permissions": {
|
|
1720
|
-
"label": "permissions",
|
|
1721
|
-
"detailKeys": [
|
|
1722
|
-
"provider",
|
|
1723
|
-
"channelId",
|
|
1724
|
-
"to"
|
|
1725
|
-
]
|
|
1726
|
-
},
|
|
1727
|
-
"thread-create": {
|
|
1728
|
-
"label": "thread create",
|
|
1729
|
-
"detailKeys": [
|
|
1730
|
-
"provider",
|
|
1731
|
-
"channelId",
|
|
1732
|
-
"threadName"
|
|
1733
|
-
]
|
|
1734
|
-
},
|
|
1735
|
-
"thread-list": {
|
|
1736
|
-
"label": "thread list",
|
|
1737
|
-
"detailKeys": [
|
|
1738
|
-
"provider",
|
|
1739
|
-
"guildId",
|
|
1740
|
-
"channelId"
|
|
1741
|
-
]
|
|
1742
|
-
},
|
|
1743
|
-
"thread-reply": {
|
|
1744
|
-
"label": "thread reply",
|
|
1745
|
-
"detailKeys": [
|
|
1746
|
-
"provider",
|
|
1747
|
-
"channelId",
|
|
1748
|
-
"messageId"
|
|
1749
|
-
]
|
|
1750
|
-
},
|
|
1751
|
-
"search": {
|
|
1752
|
-
"label": "search",
|
|
1753
|
-
"detailKeys": [
|
|
1754
|
-
"provider",
|
|
1755
|
-
"guildId",
|
|
1756
|
-
"query"
|
|
1757
|
-
]
|
|
1758
|
-
},
|
|
1759
|
-
"sticker": {
|
|
1760
|
-
"label": "sticker",
|
|
1761
|
-
"detailKeys": [
|
|
1762
|
-
"provider",
|
|
1763
|
-
"to",
|
|
1764
|
-
"stickerId"
|
|
1765
|
-
]
|
|
1766
|
-
},
|
|
1767
|
-
"member-info": {
|
|
1768
|
-
"label": "member",
|
|
1769
|
-
"detailKeys": [
|
|
1770
|
-
"provider",
|
|
1771
|
-
"guildId",
|
|
1772
|
-
"userId"
|
|
1773
|
-
]
|
|
1774
|
-
},
|
|
1775
|
-
"role-info": {
|
|
1776
|
-
"label": "roles",
|
|
1777
|
-
"detailKeys": ["provider", "guildId"]
|
|
1778
|
-
},
|
|
1779
|
-
"emoji-list": {
|
|
1780
|
-
"label": "emoji list",
|
|
1781
|
-
"detailKeys": ["provider", "guildId"]
|
|
1782
|
-
},
|
|
1783
|
-
"emoji-upload": {
|
|
1784
|
-
"label": "emoji upload",
|
|
1785
|
-
"detailKeys": [
|
|
1786
|
-
"provider",
|
|
1787
|
-
"guildId",
|
|
1788
|
-
"emojiName"
|
|
1789
|
-
]
|
|
1790
|
-
},
|
|
1791
|
-
"sticker-upload": {
|
|
1792
|
-
"label": "sticker upload",
|
|
1793
|
-
"detailKeys": [
|
|
1794
|
-
"provider",
|
|
1795
|
-
"guildId",
|
|
1796
|
-
"stickerName"
|
|
1797
|
-
]
|
|
1798
|
-
},
|
|
1799
|
-
"role-add": {
|
|
1800
|
-
"label": "role add",
|
|
1801
|
-
"detailKeys": [
|
|
1802
|
-
"provider",
|
|
1803
|
-
"guildId",
|
|
1804
|
-
"userId",
|
|
1805
|
-
"roleId"
|
|
1806
|
-
]
|
|
1807
|
-
},
|
|
1808
|
-
"role-remove": {
|
|
1809
|
-
"label": "role remove",
|
|
1810
|
-
"detailKeys": [
|
|
1811
|
-
"provider",
|
|
1812
|
-
"guildId",
|
|
1813
|
-
"userId",
|
|
1814
|
-
"roleId"
|
|
1815
|
-
]
|
|
1816
|
-
},
|
|
1817
|
-
"channel-info": {
|
|
1818
|
-
"label": "channel",
|
|
1819
|
-
"detailKeys": ["provider", "channelId"]
|
|
1820
|
-
},
|
|
1821
|
-
"channel-list": {
|
|
1822
|
-
"label": "channels",
|
|
1823
|
-
"detailKeys": ["provider", "guildId"]
|
|
1824
|
-
},
|
|
1825
|
-
"voice-status": {
|
|
1826
|
-
"label": "voice",
|
|
1827
|
-
"detailKeys": [
|
|
1828
|
-
"provider",
|
|
1829
|
-
"guildId",
|
|
1830
|
-
"userId"
|
|
1831
|
-
]
|
|
1832
|
-
},
|
|
1833
|
-
"event-list": {
|
|
1834
|
-
"label": "events",
|
|
1835
|
-
"detailKeys": ["provider", "guildId"]
|
|
1836
|
-
},
|
|
1837
|
-
"event-create": {
|
|
1838
|
-
"label": "event create",
|
|
1839
|
-
"detailKeys": [
|
|
1840
|
-
"provider",
|
|
1841
|
-
"guildId",
|
|
1842
|
-
"eventName"
|
|
1843
|
-
]
|
|
1844
|
-
},
|
|
1845
|
-
"timeout": {
|
|
1846
|
-
"label": "timeout",
|
|
1847
|
-
"detailKeys": [
|
|
1848
|
-
"provider",
|
|
1849
|
-
"guildId",
|
|
1850
|
-
"userId"
|
|
1851
|
-
]
|
|
1852
|
-
},
|
|
1853
|
-
"kick": {
|
|
1854
|
-
"label": "kick",
|
|
1855
|
-
"detailKeys": [
|
|
1856
|
-
"provider",
|
|
1857
|
-
"guildId",
|
|
1858
|
-
"userId"
|
|
1859
|
-
]
|
|
1860
|
-
},
|
|
1861
|
-
"ban": {
|
|
1862
|
-
"label": "ban",
|
|
1863
|
-
"detailKeys": [
|
|
1864
|
-
"provider",
|
|
1865
|
-
"guildId",
|
|
1866
|
-
"userId"
|
|
1867
|
-
]
|
|
1868
|
-
}
|
|
1869
|
-
}
|
|
1870
|
-
},
|
|
1871
|
-
"apply_patch": {
|
|
1872
|
-
"emoji": "🩹",
|
|
1873
|
-
"title": "Apply Patch",
|
|
1874
|
-
"detailKeys": []
|
|
1875
|
-
}
|
|
1876
|
-
}
|
|
1877
|
-
};
|
|
1878
|
-
|
|
1879
|
-
//#endregion
|
|
1880
|
-
//#region src/agents/tool-display.ts
|
|
1881
|
-
const SHARED_TOOL_DISPLAY_CONFIG = tool_display_default;
|
|
1882
|
-
const TOOL_DISPLAY_OVERRIDES = tool_display_overrides_default;
|
|
1883
|
-
const FALLBACK = TOOL_DISPLAY_OVERRIDES.fallback ?? SHARED_TOOL_DISPLAY_CONFIG.fallback ?? { emoji: "🧩" };
|
|
1884
|
-
const TOOL_MAP = Object.assign({}, SHARED_TOOL_DISPLAY_CONFIG.tools, TOOL_DISPLAY_OVERRIDES.tools);
|
|
1885
|
-
const DETAIL_LABEL_OVERRIDES = {
|
|
1886
|
-
agentId: "agent",
|
|
1887
|
-
sessionKey: "session",
|
|
1888
|
-
targetId: "target",
|
|
1889
|
-
targetUrl: "url",
|
|
1890
|
-
nodeId: "node",
|
|
1891
|
-
requestId: "request",
|
|
1892
|
-
messageId: "message",
|
|
1893
|
-
threadId: "thread",
|
|
1894
|
-
channelId: "channel",
|
|
1895
|
-
guildId: "guild",
|
|
1896
|
-
userId: "user",
|
|
1897
|
-
runTimeoutSeconds: "timeout",
|
|
1898
|
-
timeoutSeconds: "timeout",
|
|
1899
|
-
includeTools: "tools",
|
|
1900
|
-
pollQuestion: "poll",
|
|
1901
|
-
maxChars: "max chars"
|
|
1902
|
-
};
|
|
1903
|
-
const MAX_DETAIL_ENTRIES = 8;
|
|
1904
|
-
function resolveToolDisplay(params) {
|
|
1905
|
-
const name = normalizeToolName(params.name);
|
|
1906
|
-
const key = name.toLowerCase();
|
|
1907
|
-
const spec = TOOL_MAP[key];
|
|
1908
|
-
const emoji = spec?.emoji ?? FALLBACK.emoji ?? "🧩";
|
|
1909
|
-
const title = spec?.title ?? defaultTitle(name);
|
|
1910
|
-
const label = spec?.label ?? title;
|
|
1911
|
-
let { verb, detail } = resolveToolVerbAndDetailForArgs({
|
|
1912
|
-
toolKey: key,
|
|
1913
|
-
args: params.args,
|
|
1914
|
-
meta: params.meta,
|
|
1915
|
-
spec,
|
|
1916
|
-
fallbackDetailKeys: FALLBACK.detailKeys,
|
|
1917
|
-
detailMode: "summary",
|
|
1918
|
-
detailMaxEntries: MAX_DETAIL_ENTRIES,
|
|
1919
|
-
detailFormatKey: (raw) => formatDetailKey(raw, DETAIL_LABEL_OVERRIDES)
|
|
1920
|
-
});
|
|
1921
|
-
if (detail) detail = shortenHomeInString(detail);
|
|
1922
|
-
return {
|
|
1923
|
-
name,
|
|
1924
|
-
emoji,
|
|
1925
|
-
title,
|
|
1926
|
-
label,
|
|
1927
|
-
verb,
|
|
1928
|
-
detail
|
|
1929
|
-
};
|
|
1930
|
-
}
|
|
1931
|
-
function formatToolDetail(display) {
|
|
1932
|
-
return formatToolDetailText(display.detail ? redactToolDetail(display.detail) : void 0);
|
|
1933
|
-
}
|
|
1934
|
-
function formatToolSummary(display) {
|
|
1935
|
-
const detail = formatToolDetail(display);
|
|
1936
|
-
return detail ? `${display.emoji} ${display.label}: ${detail}` : `${display.emoji} ${display.label}`;
|
|
1937
|
-
}
|
|
1938
|
-
|
|
1939
|
-
//#endregion
|
|
1940
|
-
//#region src/agents/pi-embedded-utils.ts
|
|
1941
|
-
function isAssistantMessage(msg) {
|
|
1942
|
-
return msg?.role === "assistant";
|
|
1943
|
-
}
|
|
1944
|
-
/**
|
|
1945
|
-
* Strip malformed Minimax tool invocations that leak into text content.
|
|
1946
|
-
* Minimax sometimes embeds tool calls as XML in text blocks instead of
|
|
1947
|
-
* proper structured tool calls. This removes:
|
|
1948
|
-
* - <invoke name="...">...</invoke> blocks
|
|
1949
|
-
* - </minimax:tool_call> closing tags
|
|
1950
|
-
*/
|
|
1951
|
-
function stripMinimaxToolCallXml(text) {
|
|
1952
|
-
if (!text) return text;
|
|
1953
|
-
if (!/minimax:tool_call/i.test(text)) return text;
|
|
1954
|
-
let cleaned = text.replace(/<invoke\b[^>]*>[\s\S]*?<\/invoke>/gi, "");
|
|
1955
|
-
cleaned = cleaned.replace(/<\/?minimax:tool_call>/gi, "");
|
|
1956
|
-
return cleaned;
|
|
1957
|
-
}
|
|
1958
|
-
/**
|
|
1959
|
-
* Strip downgraded tool call text representations that leak into text content.
|
|
1960
|
-
* When replaying history to Gemini, tool calls without `thought_signature` are
|
|
1961
|
-
* downgraded to text blocks like `[Tool Call: name (ID: ...)]`. These should
|
|
1962
|
-
* not be shown to users.
|
|
1963
|
-
*/
|
|
1964
|
-
function stripDowngradedToolCallText(text) {
|
|
1965
|
-
if (!text) return text;
|
|
1966
|
-
if (!/\[Tool (?:Call|Result)/i.test(text) && !/\[Historical context/i.test(text)) return text;
|
|
1967
|
-
const consumeJsonish = (input, start, options) => {
|
|
1968
|
-
const { allowLeadingNewlines = false } = options ?? {};
|
|
1969
|
-
let index = start;
|
|
1970
|
-
while (index < input.length) {
|
|
1971
|
-
const ch = input[index];
|
|
1972
|
-
if (ch === " " || ch === " ") {
|
|
1973
|
-
index += 1;
|
|
1974
|
-
continue;
|
|
1975
|
-
}
|
|
1976
|
-
if (allowLeadingNewlines && (ch === "\n" || ch === "\r")) {
|
|
1977
|
-
index += 1;
|
|
1978
|
-
continue;
|
|
1979
|
-
}
|
|
1980
|
-
break;
|
|
1981
|
-
}
|
|
1982
|
-
if (index >= input.length) return null;
|
|
1983
|
-
const startChar = input[index];
|
|
1984
|
-
if (startChar === "{" || startChar === "[") {
|
|
1985
|
-
let depth = 0;
|
|
1986
|
-
let inString = false;
|
|
1987
|
-
let escape = false;
|
|
1988
|
-
for (let i = index; i < input.length; i += 1) {
|
|
1989
|
-
const ch = input[i];
|
|
1990
|
-
if (inString) {
|
|
1991
|
-
if (escape) escape = false;
|
|
1992
|
-
else if (ch === "\\") escape = true;
|
|
1993
|
-
else if (ch === "\"") inString = false;
|
|
1994
|
-
continue;
|
|
1995
|
-
}
|
|
1996
|
-
if (ch === "\"") {
|
|
1997
|
-
inString = true;
|
|
1998
|
-
continue;
|
|
1999
|
-
}
|
|
2000
|
-
if (ch === "{" || ch === "[") {
|
|
2001
|
-
depth += 1;
|
|
2002
|
-
continue;
|
|
2003
|
-
}
|
|
2004
|
-
if (ch === "}" || ch === "]") {
|
|
2005
|
-
depth -= 1;
|
|
2006
|
-
if (depth === 0) return i + 1;
|
|
2007
|
-
}
|
|
2008
|
-
}
|
|
2009
|
-
return null;
|
|
2010
|
-
}
|
|
2011
|
-
if (startChar === "\"") {
|
|
2012
|
-
let escape = false;
|
|
2013
|
-
for (let i = index + 1; i < input.length; i += 1) {
|
|
2014
|
-
const ch = input[i];
|
|
2015
|
-
if (escape) {
|
|
2016
|
-
escape = false;
|
|
2017
|
-
continue;
|
|
2018
|
-
}
|
|
2019
|
-
if (ch === "\\") {
|
|
2020
|
-
escape = true;
|
|
2021
|
-
continue;
|
|
2022
|
-
}
|
|
2023
|
-
if (ch === "\"") return i + 1;
|
|
2024
|
-
}
|
|
2025
|
-
return null;
|
|
2026
|
-
}
|
|
2027
|
-
let end = index;
|
|
2028
|
-
while (end < input.length && input[end] !== "\n" && input[end] !== "\r") end += 1;
|
|
2029
|
-
return end;
|
|
2030
|
-
};
|
|
2031
|
-
const stripToolCalls = (input) => {
|
|
2032
|
-
const markerRe = /\[Tool Call:[^\]]*\]/gi;
|
|
2033
|
-
let result = "";
|
|
2034
|
-
let cursor = 0;
|
|
2035
|
-
for (const match of input.matchAll(markerRe)) {
|
|
2036
|
-
const start = match.index ?? 0;
|
|
2037
|
-
if (start < cursor) continue;
|
|
2038
|
-
result += input.slice(cursor, start);
|
|
2039
|
-
let index = start + match[0].length;
|
|
2040
|
-
while (index < input.length && (input[index] === " " || input[index] === " ")) index += 1;
|
|
2041
|
-
if (input[index] === "\r") {
|
|
2042
|
-
index += 1;
|
|
2043
|
-
if (input[index] === "\n") index += 1;
|
|
2044
|
-
} else if (input[index] === "\n") index += 1;
|
|
2045
|
-
while (index < input.length && (input[index] === " " || input[index] === " ")) index += 1;
|
|
2046
|
-
if (input.slice(index, index + 9).toLowerCase() === "arguments") {
|
|
2047
|
-
index += 9;
|
|
2048
|
-
if (input[index] === ":") index += 1;
|
|
2049
|
-
if (input[index] === " ") index += 1;
|
|
2050
|
-
const end = consumeJsonish(input, index, { allowLeadingNewlines: true });
|
|
2051
|
-
if (end !== null) index = end;
|
|
2052
|
-
}
|
|
2053
|
-
if ((input[index] === "\n" || input[index] === "\r") && (result.endsWith("\n") || result.endsWith("\r") || result.length === 0)) {
|
|
2054
|
-
if (input[index] === "\r") index += 1;
|
|
2055
|
-
if (input[index] === "\n") index += 1;
|
|
2056
|
-
}
|
|
2057
|
-
cursor = index;
|
|
2058
|
-
}
|
|
2059
|
-
result += input.slice(cursor);
|
|
2060
|
-
return result;
|
|
2061
|
-
};
|
|
2062
|
-
let cleaned = stripToolCalls(text);
|
|
2063
|
-
cleaned = cleaned.replace(/\[Tool Result for ID[^\]]*\]\n?[\s\S]*?(?=\n*\[Tool |\n*$)/gi, "");
|
|
2064
|
-
cleaned = cleaned.replace(/\[Historical context:[^\]]*\]\n?/gi, "");
|
|
2065
|
-
return cleaned.trim();
|
|
2066
|
-
}
|
|
2067
|
-
/**
|
|
2068
|
-
* Strip thinking tags and their content from text.
|
|
2069
|
-
* This is a safety net for cases where the model outputs <think> tags
|
|
2070
|
-
* that slip through other filtering mechanisms.
|
|
2071
|
-
*/
|
|
2072
|
-
function stripThinkingTagsFromText(text) {
|
|
2073
|
-
return stripReasoningTagsFromText(text, {
|
|
2074
|
-
mode: "strict",
|
|
2075
|
-
trim: "both"
|
|
2076
|
-
});
|
|
2077
|
-
}
|
|
2078
|
-
function extractAssistantText(msg) {
|
|
2079
|
-
return sanitizeUserFacingText(extractTextFromChatContent(msg.content, {
|
|
2080
|
-
sanitizeText: (text) => stripThinkingTagsFromText(stripDowngradedToolCallText(stripMinimaxToolCallXml(text))).trim(),
|
|
2081
|
-
joinWith: "\n",
|
|
2082
|
-
normalizeText: (text) => text.trim()
|
|
2083
|
-
}) ?? "", { errorContext: msg.stopReason === "error" || Boolean(msg.errorMessage?.trim()) });
|
|
2084
|
-
}
|
|
2085
|
-
function extractAssistantThinking(msg) {
|
|
2086
|
-
if (!Array.isArray(msg.content)) return "";
|
|
2087
|
-
return msg.content.map((block) => {
|
|
2088
|
-
if (!block || typeof block !== "object") return "";
|
|
2089
|
-
const record = block;
|
|
2090
|
-
if (record.type === "thinking" && typeof record.thinking === "string") return record.thinking.trim();
|
|
2091
|
-
return "";
|
|
2092
|
-
}).filter(Boolean).join("\n").trim();
|
|
2093
|
-
}
|
|
2094
|
-
function formatReasoningMessage(text) {
|
|
2095
|
-
const trimmed = text.trim();
|
|
2096
|
-
if (!trimmed) return "";
|
|
2097
|
-
return `Reasoning:\n${trimmed.split("\n").map((line) => line ? `_${line}_` : line).join("\n")}`;
|
|
2098
|
-
}
|
|
2099
|
-
function splitThinkingTaggedText(text) {
|
|
2100
|
-
const trimmedStart = text.trimStart();
|
|
2101
|
-
if (!trimmedStart.startsWith("<")) return null;
|
|
2102
|
-
const openRe = /<\s*(?:think(?:ing)?|thought|antthinking)\s*>/i;
|
|
2103
|
-
const closeRe = /<\s*\/\s*(?:think(?:ing)?|thought|antthinking)\s*>/i;
|
|
2104
|
-
if (!openRe.test(trimmedStart)) return null;
|
|
2105
|
-
if (!closeRe.test(text)) return null;
|
|
2106
|
-
const scanRe = /<\s*(\/?)\s*(?:think(?:ing)?|thought|antthinking)\s*>/gi;
|
|
2107
|
-
let inThinking = false;
|
|
2108
|
-
let cursor = 0;
|
|
2109
|
-
let thinkingStart = 0;
|
|
2110
|
-
const blocks = [];
|
|
2111
|
-
const pushText = (value) => {
|
|
2112
|
-
if (!value) return;
|
|
2113
|
-
blocks.push({
|
|
2114
|
-
type: "text",
|
|
2115
|
-
text: value
|
|
2116
|
-
});
|
|
2117
|
-
};
|
|
2118
|
-
const pushThinking = (value) => {
|
|
2119
|
-
const cleaned = value.trim();
|
|
2120
|
-
if (!cleaned) return;
|
|
2121
|
-
blocks.push({
|
|
2122
|
-
type: "thinking",
|
|
2123
|
-
thinking: cleaned
|
|
2124
|
-
});
|
|
2125
|
-
};
|
|
2126
|
-
for (const match of text.matchAll(scanRe)) {
|
|
2127
|
-
const index = match.index ?? 0;
|
|
2128
|
-
const isClose = Boolean(match[1]?.includes("/"));
|
|
2129
|
-
if (!inThinking && !isClose) {
|
|
2130
|
-
pushText(text.slice(cursor, index));
|
|
2131
|
-
thinkingStart = index + match[0].length;
|
|
2132
|
-
inThinking = true;
|
|
2133
|
-
continue;
|
|
2134
|
-
}
|
|
2135
|
-
if (inThinking && isClose) {
|
|
2136
|
-
pushThinking(text.slice(thinkingStart, index));
|
|
2137
|
-
cursor = index + match[0].length;
|
|
2138
|
-
inThinking = false;
|
|
2139
|
-
}
|
|
2140
|
-
}
|
|
2141
|
-
if (inThinking) return null;
|
|
2142
|
-
pushText(text.slice(cursor));
|
|
2143
|
-
if (!blocks.some((b) => b.type === "thinking")) return null;
|
|
2144
|
-
return blocks;
|
|
2145
|
-
}
|
|
2146
|
-
function promoteThinkingTagsToBlocks(message) {
|
|
2147
|
-
if (!Array.isArray(message.content)) return;
|
|
2148
|
-
if (message.content.some((block) => block.type === "thinking")) return;
|
|
2149
|
-
const next = [];
|
|
2150
|
-
let changed = false;
|
|
2151
|
-
for (const block of message.content) {
|
|
2152
|
-
if (block.type !== "text") {
|
|
2153
|
-
next.push(block);
|
|
2154
|
-
continue;
|
|
2155
|
-
}
|
|
2156
|
-
const split = splitThinkingTaggedText(block.text);
|
|
2157
|
-
if (!split) {
|
|
2158
|
-
next.push(block);
|
|
2159
|
-
continue;
|
|
2160
|
-
}
|
|
2161
|
-
changed = true;
|
|
2162
|
-
for (const part of split) if (part.type === "thinking") next.push({
|
|
2163
|
-
type: "thinking",
|
|
2164
|
-
thinking: part.thinking
|
|
2165
|
-
});
|
|
2166
|
-
else if (part.type === "text") {
|
|
2167
|
-
const cleaned = part.text.trimStart();
|
|
2168
|
-
if (cleaned) next.push({
|
|
2169
|
-
type: "text",
|
|
2170
|
-
text: cleaned
|
|
2171
|
-
});
|
|
2172
|
-
}
|
|
2173
|
-
}
|
|
2174
|
-
if (!changed) return;
|
|
2175
|
-
message.content = next;
|
|
2176
|
-
}
|
|
2177
|
-
function extractThinkingFromTaggedText(text) {
|
|
2178
|
-
if (!text) return "";
|
|
2179
|
-
const scanRe = /<\s*(\/?)\s*(?:think(?:ing)?|thought|antthinking)\s*>/gi;
|
|
2180
|
-
let result = "";
|
|
2181
|
-
let lastIndex = 0;
|
|
2182
|
-
let inThinking = false;
|
|
2183
|
-
for (const match of text.matchAll(scanRe)) {
|
|
2184
|
-
const idx = match.index ?? 0;
|
|
2185
|
-
if (inThinking) result += text.slice(lastIndex, idx);
|
|
2186
|
-
inThinking = !(match[1] === "/");
|
|
2187
|
-
lastIndex = idx + match[0].length;
|
|
2188
|
-
}
|
|
2189
|
-
return result.trim();
|
|
2190
|
-
}
|
|
2191
|
-
function extractThinkingFromTaggedStream(text) {
|
|
2192
|
-
if (!text) return "";
|
|
2193
|
-
const closed = extractThinkingFromTaggedText(text);
|
|
2194
|
-
if (closed) return closed;
|
|
2195
|
-
const openRe = /<\s*(?:think(?:ing)?|thought|antthinking)\s*>/gi;
|
|
2196
|
-
const closeRe = /<\s*\/\s*(?:think(?:ing)?|thought|antthinking)\s*>/gi;
|
|
2197
|
-
const openMatches = [...text.matchAll(openRe)];
|
|
2198
|
-
if (openMatches.length === 0) return "";
|
|
2199
|
-
const closeMatches = [...text.matchAll(closeRe)];
|
|
2200
|
-
const lastOpen = openMatches[openMatches.length - 1];
|
|
2201
|
-
const lastClose = closeMatches[closeMatches.length - 1];
|
|
2202
|
-
if (lastClose && (lastClose.index ?? -1) > (lastOpen.index ?? -1)) return closed;
|
|
2203
|
-
const start = (lastOpen.index ?? 0) + lastOpen[0].length;
|
|
2204
|
-
return text.slice(start).trim();
|
|
2205
|
-
}
|
|
2206
|
-
function inferToolMetaFromArgs(toolName, args) {
|
|
2207
|
-
return formatToolDetail(resolveToolDisplay({
|
|
2208
|
-
name: toolName,
|
|
2209
|
-
args
|
|
2210
|
-
}));
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
//#endregion
|
|
2214
|
-
//#region src/agents/tools/image-tool.helpers.ts
|
|
2215
|
-
function decodeDataUrl(dataUrl) {
|
|
2216
|
-
const trimmed = dataUrl.trim();
|
|
2217
|
-
const match = /^data:([^;,]+);base64,([a-z0-9+/=\r\n]+)$/i.exec(trimmed);
|
|
2218
|
-
if (!match) throw new Error("Invalid data URL (expected base64 data: URL).");
|
|
2219
|
-
const mimeType = (match[1] ?? "").trim().toLowerCase();
|
|
2220
|
-
if (!mimeType.startsWith("image/")) throw new Error(`Unsupported data URL type: ${mimeType || "unknown"}`);
|
|
2221
|
-
const b64 = (match[2] ?? "").trim();
|
|
2222
|
-
const buffer = Buffer.from(b64, "base64");
|
|
2223
|
-
if (buffer.length === 0) throw new Error("Invalid data URL: empty payload.");
|
|
2224
|
-
return {
|
|
2225
|
-
buffer,
|
|
2226
|
-
mimeType,
|
|
2227
|
-
kind: "image"
|
|
2228
|
-
};
|
|
2229
|
-
}
|
|
2230
|
-
function coerceImageAssistantText(params) {
|
|
2231
|
-
const stop = params.message.stopReason;
|
|
2232
|
-
const errorMessage = params.message.errorMessage?.trim();
|
|
2233
|
-
if (stop === "error" || stop === "aborted") throw new Error(errorMessage ? `Image model failed (${params.provider}/${params.model}): ${errorMessage}` : `Image model failed (${params.provider}/${params.model})`);
|
|
2234
|
-
if (errorMessage) throw new Error(`Image model failed (${params.provider}/${params.model}): ${errorMessage}`);
|
|
2235
|
-
const text = extractAssistantText(params.message);
|
|
2236
|
-
if (text.trim()) return text.trim();
|
|
2237
|
-
throw new Error(`Image model returned no text (${params.provider}/${params.model}).`);
|
|
2238
|
-
}
|
|
2239
|
-
function coerceImageModelConfig(cfg) {
|
|
2240
|
-
const primary = resolveAgentModelPrimaryValue(cfg?.agents?.defaults?.imageModel);
|
|
2241
|
-
const fallbacks = resolveAgentModelFallbackValues(cfg?.agents?.defaults?.imageModel);
|
|
2242
|
-
return {
|
|
2243
|
-
...primary?.trim() ? { primary: primary.trim() } : {},
|
|
2244
|
-
...fallbacks.length > 0 ? { fallbacks } : {}
|
|
2245
|
-
};
|
|
2246
|
-
}
|
|
2247
|
-
function resolveProviderVisionModelFromConfig(params) {
|
|
2248
|
-
const models = (params.cfg?.models?.providers?.[params.provider])?.models ?? [];
|
|
2249
|
-
const id = (((params.provider === "minimax" ? models.find((m) => (m?.id ?? "").trim() === "MiniMax-VL-01" && Array.isArray(m?.input) && m.input.includes("image")) : null) ?? models.find((m) => Boolean((m?.id ?? "").trim()) && m.input?.includes("image")))?.id ?? "").trim();
|
|
2250
|
-
return id ? `${params.provider}/${id}` : null;
|
|
2251
|
-
}
|
|
2252
|
-
|
|
2253
|
-
//#endregion
|
|
2254
|
-
//#region src/media-understanding/providers/image.ts
|
|
2255
|
-
let piModelDiscoveryRuntimePromise = null;
|
|
2256
|
-
function loadPiModelDiscoveryRuntime() {
|
|
2257
|
-
piModelDiscoveryRuntimePromise ??= import("./pi-model-discovery-runtime-Do9o-dUd.js");
|
|
2258
|
-
return piModelDiscoveryRuntimePromise;
|
|
2259
|
-
}
|
|
2260
|
-
async function describeImageWithModel(params) {
|
|
2261
|
-
await ensureOpenClawModelsJson(params.cfg, params.agentDir);
|
|
2262
|
-
const { discoverAuthStorage, discoverModels } = await loadPiModelDiscoveryRuntime();
|
|
2263
|
-
const authStorage = discoverAuthStorage(params.agentDir);
|
|
2264
|
-
const model = discoverModels(authStorage, params.agentDir).find(params.provider, params.model);
|
|
2265
|
-
if (!model) throw new Error(`Unknown model: ${params.provider}/${params.model}`);
|
|
2266
|
-
if (!model.input?.includes("image")) throw new Error(`Model does not support images: ${params.provider}/${params.model}`);
|
|
2267
|
-
const apiKey = requireApiKey(await getApiKeyForModel({
|
|
2268
|
-
model,
|
|
2269
|
-
cfg: params.cfg,
|
|
2270
|
-
agentDir: params.agentDir,
|
|
2271
|
-
profileId: params.profile,
|
|
2272
|
-
preferredProfile: params.preferredProfile
|
|
2273
|
-
}), model.provider);
|
|
2274
|
-
authStorage.setRuntimeApiKey(model.provider, apiKey);
|
|
2275
|
-
const base64 = params.buffer.toString("base64");
|
|
2276
|
-
if (model.provider === "minimax") return {
|
|
2277
|
-
text: await minimaxUnderstandImage({
|
|
2278
|
-
apiKey,
|
|
2279
|
-
prompt: params.prompt ?? "Describe the image.",
|
|
2280
|
-
imageDataUrl: `data:${params.mime ?? "image/jpeg"};base64,${base64}`,
|
|
2281
|
-
modelBaseUrl: model.baseUrl
|
|
2282
|
-
}),
|
|
2283
|
-
model: model.id
|
|
2284
|
-
};
|
|
2285
|
-
return {
|
|
2286
|
-
text: coerceImageAssistantText({
|
|
2287
|
-
message: await complete(model, { messages: [{
|
|
2288
|
-
role: "user",
|
|
2289
|
-
content: [{
|
|
2290
|
-
type: "text",
|
|
2291
|
-
text: params.prompt ?? "Describe the image."
|
|
2292
|
-
}, {
|
|
2293
|
-
type: "image",
|
|
2294
|
-
data: base64,
|
|
2295
|
-
mimeType: params.mime ?? "image/jpeg"
|
|
2296
|
-
}],
|
|
2297
|
-
timestamp: Date.now()
|
|
2298
|
-
}] }, {
|
|
2299
|
-
apiKey,
|
|
2300
|
-
maxTokens: params.maxTokens ?? 512
|
|
2301
|
-
}),
|
|
2302
|
-
provider: model.provider,
|
|
2303
|
-
model: model.id
|
|
2304
|
-
}),
|
|
2305
|
-
model: model.id
|
|
2306
|
-
};
|
|
2307
|
-
}
|
|
2308
|
-
|
|
2309
|
-
//#endregion
|
|
2310
|
-
export { ensureOpenClawModelsJson as C, extractTextFromChatContent as S, formatToolSummary as _, resolveProviderVisionModelFromConfig as a, findCodeRegions as b, extractThinkingFromTaggedStream as c, inferToolMetaFromArgs as d, isAssistantMessage as f, stripThinkingTagsFromText as g, stripMinimaxToolCallXml as h, decodeDataUrl as i, extractThinkingFromTaggedText as l, stripDowngradedToolCallText as m, coerceImageAssistantText as n, extractAssistantText as o, promoteThinkingTagsToBlocks as p, coerceImageModelConfig as r, extractAssistantThinking as s, describeImageWithModel as t, formatReasoningMessage as u, resolveToolDisplay as v, minimaxUnderstandImage as w, isInsideCode as x, stripReasoningTagsFromText as y };
|