wednesdayai 0.4.12-dev.703 → 0.4.12-dev.705
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/README.md +17 -37
- package/dist/{agent-scope-F7drwIgy.js → agent-scope-BGnYrze_.js} +3 -3
- package/dist/{agent-turn-runner-nWCLOjLp.js → agent-turn-runner-BpzPb_LQ.js} +5 -5
- package/dist/{agent-turn-runner-B-7YUyze.js → agent-turn-runner-CLScSQoW.js} +3 -3
- package/dist/{api-key-rotation-BP2NSDlP.js → api-key-rotation-C04Xj5nW.js} +2 -2
- package/dist/{audio-preflight-BqDFj2Ws.js → audio-preflight-BXfuOHLv.js} +27 -27
- package/dist/{audio-preflight-BXVADGV1.js → audio-preflight-D9KtmJay.js} +5 -5
- package/dist/{audio-transcription-runner-SSnrYiq8.js → audio-transcription-runner-BA6t6iSO.js} +11 -11
- package/dist/{audio-transcription-runner-rzX-3s-8.js → audio-transcription-runner-CdwSTFuT.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +58 -58
- package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-journal/handler.js +58 -58
- package/dist/bundled/session-memory/handler.js +58 -58
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-IR8qx5kt.js → channel-activity-BVqxcijC.js} +3 -3
- package/dist/{chrome-BWMtx0mE.js → chrome-CGClRujb.js} +25 -25
- package/dist/{chrome-Dc923fsB.js → chrome-CTyhKrVS.js} +6 -6
- package/dist/{chunk-CuqMDQNC.js → chunk-odx78Acg.js} +3 -3
- package/dist/{command-queue-9A3kOAZN.js → command-queue-DKPv7dYN.js} +1 -1
- package/dist/{command-queue-Dbv34rZN.js → command-queue-o1awgKih.js} +1 -1
- package/dist/{commands-registry-gy0GLwWR.js → commands-registry-BEs7FrhT.js} +2 -2
- package/dist/{deliver-Co_a29nB.js → deliver-Bs58Ncxn.js} +1 -1
- package/dist/{deliver-C4Z63vgB.js → deliver-DrmyBByg.js} +24 -24
- package/dist/{diagnostic-Cfb2ONnX.js → diagnostic-Ba0VUozS.js} +1 -1
- package/dist/{diagnostic-BHAlpG8z.js → diagnostic-DmBrpD9P.js} +5 -5
- package/dist/extensionAPI.js +12 -12
- package/dist/{fetch-JP3BwRE3.js → fetch-DvY0ue_6.js} +8 -8
- package/dist/{fetch-guard-C4lEpM_9.js → fetch-guard-ri_5BFBs.js} +3 -3
- package/dist/{frontmatter-CNGr4YHw.js → frontmatter-Cw33lRgS.js} +3 -3
- package/dist/{fs-safe-BJgtqC5p.js → fs-safe-BNnzOM9C.js} +4 -4
- package/dist/{github-copilot-token-zGOMIGSh.js → github-copilot-token-WSjo05vB.js} +7 -7
- package/dist/{image-ops-B--THHJC.js → image-ops-pgAg_j4y.js} +1 -1
- package/dist/{ir-tsZDlE0-.js → ir-BHU3uh9A.js} +5 -5
- package/dist/{legacy-names-CBlBMsC7.js → legacy-names-DFLXH7MA.js} +1 -1
- package/dist/llm-slug-generator.js +58 -58
- package/dist/{logger-D7ojOVG0.js → logger-CkGiQRm7.js} +1 -1
- package/dist/{manager-nGC13TuB.js → manager-BUV9VkNZ.js} +12 -12
- package/dist/{markdown-tables-D9T2Ko0c.js → markdown-tables-D6t-eoFa.js} +2 -2
- package/dist/{model-selection-DZMms8JA.js → model-selection-DhXu1Q4_.js} +82 -82
- package/dist/{outbound-attachment-6FKwUHkE.js → outbound-attachment-C6U86gij.js} +2 -2
- package/dist/{outbound-message-hooks-CN_2VR3u.js → outbound-message-hooks-ClZq2IiI.js} +3 -3
- package/dist/{path-alias-guards-Bpl7jW13.js → path-alias-guards-y8gxUSMu.js} +1 -1
- package/dist/{paths-C6TxBCvO.js → paths-Cvc9EM8Y.js} +5 -5
- package/dist/{pi-embedded-CQloEk2m.js → pi-embedded-Cklnkha9.js} +167 -167
- package/dist/{pi-embedded-tUqWFr9c.js → pi-embedded-DHw7Di5R.js} +28 -28
- package/dist/{pi-embedded-helpers-BvZj1LkK.js → pi-embedded-helpers-4qLKF7Ti.js} +3 -3
- package/dist/{pi-embedded-helpers-BEYLnz1t.js → pi-embedded-helpers-DYlkCsNL.js} +24 -24
- package/dist/{pi-embedded-utils-BgW57VPl.js → pi-embedded-utils-CHJI4-m4.js} +1 -1
- package/dist/{pi-embedded-utils-Cff_00Q1.js → pi-embedded-utils-DGuyV3oI.js} +3 -3
- package/dist/{pi-model-discovery-DWGauIf8.js → pi-model-discovery-C3dMscCT.js} +7 -7
- package/dist/plugin-sdk/{agent-scope-oQ89afhJ.js → agent-scope-DuxkVlZ-.js} +2 -2
- package/dist/plugin-sdk/agent-turn-execute-BDRcxLgW.js +61 -0
- package/dist/plugin-sdk/{agent-turn-runner-CDH2OClz.js → agent-turn-runner-BJWQz-gA.js} +6 -6
- package/dist/plugin-sdk/agent-turn-runner-CzRmfMqm.js +11 -0
- package/dist/plugin-sdk/{api-key-rotation-DBFUeaE4.js → api-key-rotation-BYZhrCU3.js} +2 -2
- package/dist/plugin-sdk/{artifacts-CsH5S6T7.js → artifacts-BR0G7jgh.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-DT1RNzj0.js → audio-preflight-BOlD50bz.js} +2 -2
- package/dist/plugin-sdk/audio-preflight-CTGR5Hsd.js +28 -0
- package/dist/plugin-sdk/{audio-transcription-runner-CNdDOHDD.js → audio-transcription-runner-DEwdraKH.js} +10 -10
- package/dist/plugin-sdk/{auth-profiles-C5n3KjJR.js → auth-profiles-B80FVM6n.js} +5 -5
- package/dist/plugin-sdk/{channel-activity-CQ4sk3hC.js → channel-activity-CPP4IJ8j.js} +3 -3
- package/dist/plugin-sdk/{chrome-DgUMKrr1.js → chrome-Dio0wrAv.js} +4 -4
- package/dist/plugin-sdk/{chunk-BIyxDSyO.js → chunk-BjBBoHSQ.js} +6 -6
- package/dist/plugin-sdk/{chunk-CeoUVs5K.js → chunk-CXNOkk_w.js} +3 -3
- package/dist/plugin-sdk/{command-detection-QNHptKSJ.js → command-detection-C2mTIN0M.js} +85 -85
- package/dist/plugin-sdk/{command-queue-DNiG-3U6.js → command-queue-DRNi0Iq1.js} +8 -8
- package/dist/plugin-sdk/{command-queue-Df7MhgUx.js → command-queue-oI3bsfFo.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-CA1olmQZ.js → commands-registry-B5LWTAu3.js} +2 -2
- package/dist/plugin-sdk/{commands-registry-osjh0Rhk.js → commands-registry-CjulKOu8.js} +6 -6
- package/dist/plugin-sdk/{config-DOY8NkH8.js → config-CFfrK92W.js} +7 -7
- package/dist/plugin-sdk/deliver-Dk3XJhoF.js +32 -0
- package/dist/plugin-sdk/{deliver-Jovxpus7.js → deliver-NV7I9o8B.js} +11 -11
- package/dist/plugin-sdk/{diagnostic-DHcuLQ06.js → diagnostic-5AC0iM1n.js} +7 -7
- package/dist/plugin-sdk/{diagnostic-BwHttr8I.js → diagnostic-CLEhveRO.js} +5 -5
- package/dist/plugin-sdk/{fetch-guard-D39-ff0z.js → fetch-guard-BzugbfpZ.js} +3 -3
- package/dist/plugin-sdk/{fs-safe-DwFzR-43.js → fs-safe-BbukgmJs.js} +3 -3
- package/dist/plugin-sdk/{hook-runner-global-7dXl1XmR.js → hook-runner-global-B14CF25I.js} +2 -2
- package/dist/plugin-sdk/{image-ops-BRc6SYbt.js → image-ops-Deabe2XL.js} +1 -1
- package/dist/plugin-sdk/index.js +54 -54
- package/dist/plugin-sdk/{ir-C76Butsn.js → ir-DvNnbzRJ.js} +5 -5
- package/dist/plugin-sdk/{local-roots-Bj6ufCy4.js → local-roots-K7o6fRdl.js} +7 -7
- package/dist/plugin-sdk/{logger-k-GQ-YhX.js → logger-qbelrLm7.js} +1 -1
- package/dist/plugin-sdk/{manager-D_xKED_P.js → manager-CtpBjZ6_.js} +8 -8
- package/dist/plugin-sdk/manager-nDSdkr_r.js +16 -0
- package/dist/plugin-sdk/markdown-tables-4LuMGoDL.js +10 -0
- package/dist/plugin-sdk/{markdown-tables-nC8ncMEv.js → markdown-tables-DK-jmrsM.js} +2 -2
- package/dist/plugin-sdk/{outbound-attachment-DYb2ouJr.js → outbound-attachment-765m3HRN.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-DuUj5pOa.js → path-alias-guards-DXgdWlVV.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-DxreQHBo.js → pi-embedded-helpers-BHyLigAA.js} +11 -11
- package/dist/plugin-sdk/{pi-embedded-utils-CuF2a8B_.js → pi-embedded-utils-Bm-VMQvJ.js} +3 -3
- package/dist/plugin-sdk/{pi-model-discovery-vyiJ0WCg.js → pi-model-discovery-BHxWerwc.js} +6 -6
- package/dist/plugin-sdk/{pi-model-discovery-lbme_6ZY.js → pi-model-discovery-CtIzq4SZ.js} +1 -1
- package/dist/plugin-sdk/provider-dispatcher-W1pkLKIg.js +61 -0
- package/dist/plugin-sdk/provider-image-BXeNvw5h.js +22 -0
- package/dist/plugin-sdk/{provider-image-DmOszP1h.js → provider-image-DdGFXNcm.js} +5 -5
- package/dist/plugin-sdk/proxy-Bem5Ja8O.js +7 -0
- package/dist/plugin-sdk/{proxy-fetch-DR97MzBf.js → proxy-fetch-tDXPwHrY.js} +1 -1
- package/dist/plugin-sdk/{proxy-sWIy8aWT.js → proxy-vuhge5P0.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-Co1cAo_x.js → pw-ai-CVqwMy3L.js} +10 -10
- package/dist/plugin-sdk/{qmd-manager-BUZkDo-2.js → qmd-manager-CbKMbQqy.js} +8 -8
- package/dist/plugin-sdk/{query-expansion-Dd_SnHAV.js → query-expansion-Czn3UuZE.js} +3 -3
- package/dist/plugin-sdk/{recorder-fSGqEPiN.js → recorder-B8eUr4qo.js} +4 -4
- package/dist/plugin-sdk/{redact-BqJzVqZS.js → redact-BN7L2dg6.js} +1 -1
- package/dist/plugin-sdk/replies-BOUte8J3.js +25 -0
- package/dist/plugin-sdk/{replies-D1R5YpXH.js → replies-Dq8vnfCv.js} +4 -4
- package/dist/plugin-sdk/{reply-directives-C2CFDtpy.js → reply-directives-D-GVQbm2.js} +2 -2
- package/dist/plugin-sdk/{reply-prefix-Vmv16GEM.js → reply-prefix-BnhAAeIw.js} +1 -1
- package/dist/plugin-sdk/reply-prefix-CyT5pXEH.js +7 -0
- package/dist/plugin-sdk/{resolve-route-Bm-xctoN.js → resolve-route-B-_3aGVu.js} +6 -6
- package/dist/plugin-sdk/{resolve-route-Cpk4y9HZ.js → resolve-route-DzFbdLUE.js} +4 -4
- package/dist/plugin-sdk/runs-BgcfLuqD.js +25 -0
- package/dist/plugin-sdk/{runs-B08Pf58t.js → runs-GYfRm1wm.js} +7 -7
- package/dist/plugin-sdk/{send-9tt88Cos.js → send-B5n5UHEj.js} +19 -19
- package/dist/plugin-sdk/send-CRsXDc8m.js +24 -0
- package/dist/plugin-sdk/{send-BQ2_sGJc.js → send-CilSx61t.js} +13 -13
- package/dist/plugin-sdk/{send-DGLXr2LH.js → send-D9b2K_jS.js} +8 -8
- package/dist/plugin-sdk/send-DGIuROFn.js +23 -0
- package/dist/plugin-sdk/send-DWgKIysx.js +27 -0
- package/dist/plugin-sdk/{send-BLYC96aw.js → send-Dp2tRhNb.js} +6 -6
- package/dist/plugin-sdk/send-RwdG7mzi.js +25 -0
- package/dist/plugin-sdk/{send-DK8kuk3o.js → send-Y056GDch.js} +6 -6
- package/dist/plugin-sdk/{send-CFqkd3U6.js → send-xTho5Weh.js} +7 -7
- package/dist/plugin-sdk/{session-meta-Bgk5sfbA.js → session-meta-D7wvEO0P.js} +2 -2
- package/dist/plugin-sdk/session-meta-J9PgeT7E.js +10 -0
- package/dist/plugin-sdk/{skill-commands-BYl06bB2.js → skill-commands-C6GZcZCO.js} +5 -5
- package/dist/plugin-sdk/skill-commands-DBvWVUnQ.js +14 -0
- package/dist/plugin-sdk/{skills-Cxhgf7RS.js → skills-CjJsBgbl.js} +6 -6
- package/dist/plugin-sdk/{ssrf-C6tFUn-U.js → ssrf-DR9xWewb.js} +2 -2
- package/dist/plugin-sdk/{store-yyHwOn7K.js → store-Bt0zQRQl.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-79qX0iO4.js +61 -0
- package/dist/plugin-sdk/{subsystem-D7nM2AoW.js → subsystem-B8AkdtCZ.js} +4 -4
- package/dist/plugin-sdk/{tables-CAn8Uiv7.js → tables-DHN3rZ24.js} +1 -1
- package/dist/plugin-sdk/{tokens-cnVX9Q87.js → tokens-D7bndIFM.js} +1 -1
- package/dist/plugin-sdk/{tool-loop-detection-fff6kmkP.js → tool-loop-detection-VTqBeC_h.js} +1 -1
- package/dist/plugin-sdk/user-run-recording-B_LG8df9.js +11 -0
- package/dist/plugin-sdk/{user-run-recording-BgXqB78i.js → user-run-recording-CQENQmgV.js} +2 -2
- package/dist/{provider-image-tTArxp_m.js → provider-image-BfLbSFcG.js} +5 -5
- package/dist/{provider-image-Cn_5jslf.js → provider-image-CtDp01Fm.js} +1 -1
- package/dist/{proxy-B2bQVN0b.js → proxy-CJMip70P.js} +1 -1
- package/dist/{proxy-env-b209l87p.js → proxy-env-BBllD0qI.js} +2 -2
- package/dist/{proxy-fetch-CNzfDJKL.js → proxy-fetch-C4a8MwFs.js} +1 -1
- package/dist/{pw-ai-Dt4AEbVC.js → pw-ai-5UgHGA7x.js} +14 -14
- package/dist/{pw-ai-CZUfhsmk.js → pw-ai-Dmtqq3b6.js} +1 -1
- package/dist/{qmd-manager-Bk4YLrFZ.js → qmd-manager-yHQXCPr6.js} +10 -10
- package/dist/{query-expansion-DKwGIeDe.js → query-expansion-DJVKyeDw.js} +5 -5
- package/dist/{recorder-BWzqo70i.js → recorder-BESd9rZt.js} +4 -4
- package/dist/{redact-BFxpQajB.js → redact-D8fpDrdk.js} +1 -1
- package/dist/{replies-BKYeJ-lN.js → replies-LVVUM-gg.js} +4 -4
- package/dist/{reply-directives-MtuQmZ3x.js → reply-directives-CZPJmH1t.js} +2 -2
- package/dist/{reply-prefix-BivNEMUT.js → reply-prefix-r6A18fKP.js} +1 -1
- package/dist/{resolve-route-BxKedPkn.js → resolve-route-Cnxsmfj5.js} +5 -5
- package/dist/{run-with-concurrency-DNTVyFZm.js → run-with-concurrency-VoSJL2UI.js} +4 -4
- package/dist/{runs-B5jL-JGA.js → runs-BKXuFolN.js} +3 -3
- package/dist/{runs-Bfd3xo6Q.js → runs-Dgl9DXVG.js} +8 -8
- package/dist/{send-Bo-flx6B.js → send-BWsYS2bT.js} +1 -1
- package/dist/{send-DEMG5oDJ.js → send-C0_Cahgz.js} +8 -8
- package/dist/{send-is_ecMF8.js → send-C6j-WuJq.js} +25 -25
- package/dist/{send-DWgzW_VE.js → send-CyDzxMSP.js} +6 -6
- package/dist/{send-7ZbQnb3_.js → send-D8garnHE.js} +7 -7
- package/dist/{send-BxB9kMh0.js → send-DTHoJI7v.js} +6 -6
- package/dist/{session-meta-Bq4VCJl1.js → session-meta-Du0u83SI.js} +2 -2
- package/dist/{skill-commands-BeW5zYf3.js → skill-commands-DycP7LkE.js} +9 -9
- package/dist/{skills-CoDdFrlM.js → skills-C-1FVOPz.js} +21 -21
- package/dist/{store-BMD4fV1_.js → store-q3G7wCsG.js} +2 -2
- package/dist/{subsystem-CtVr6mhM.js → subsystem-iTNW5QQR.js} +60 -60
- package/dist/{tables-77QYYFpZ.js → tables-Epd9B-UQ.js} +1 -1
- package/dist/{tokens-Cu6l17bG.js → tokens-iu44eB15.js} +1 -1
- package/dist/{tool-loop-detection-CyJWzj_y.js → tool-loop-detection-B_CTZm9s.js} +2 -2
- package/dist/{user-run-recording-_9PhRwgi.js → user-run-recording-DU3V9-R7.js} +2 -2
- package/dist/{workspace-DNApJm8a.js → workspace-TtYCbjn0.js} +9 -9
- package/extensions/acpx/package.json +1 -1
- package/extensions/anthropic/package.json +1 -1
- package/extensions/bifrost/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/deepgram/package.json +1 -1
- package/extensions/deepinfra/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/diffs/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/dream-cycle/package.json +1 -1
- package/extensions/elevenlabs/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/gemini-search/package.json +1 -1
- package/extensions/google/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/grok-search/package.json +1 -1
- package/extensions/groq/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/kimi-search/package.json +1 -1
- package/extensions/learning-core/index.ts +1 -1
- package/extensions/learning-core/package.json +1 -1
- package/extensions/learning-core/src/learning-schema.test.ts +1 -1
- package/extensions/learning-core/src/types.ts +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +1 -1
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/mistral/package.json +1 -1
- package/extensions/moonshot/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +1 -1
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +1 -1
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/openai/package.json +1 -1
- package/extensions/openai-realtime/package.json +1 -1
- package/extensions/openrouter/package.json +1 -1
- package/extensions/perplexity-search/package.json +1 -1
- package/extensions/searxng-search/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +1 -1
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zai/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/plugin-sdk/agent-turn-execute-MCfUSNAn.js +0 -61
- package/dist/plugin-sdk/agent-turn-runner-CxTKSm01.js +0 -11
- package/dist/plugin-sdk/audio-preflight-CvfZay92.js +0 -28
- package/dist/plugin-sdk/deliver-Cvf-McDg.js +0 -32
- package/dist/plugin-sdk/manager-BxgZBJqX.js +0 -16
- package/dist/plugin-sdk/markdown-tables-BfxWyPNL.js +0 -10
- package/dist/plugin-sdk/provider-dispatcher-CmuWLups.js +0 -61
- package/dist/plugin-sdk/provider-image-QXB69xur.js +0 -22
- package/dist/plugin-sdk/proxy-D8NLdDcu.js +0 -7
- package/dist/plugin-sdk/replies-CFdGwJzf.js +0 -25
- package/dist/plugin-sdk/reply-prefix-BNDj6UL_.js +0 -7
- package/dist/plugin-sdk/runs-DYKrmhVM.js +0 -25
- package/dist/plugin-sdk/send-CnAE3Jo0.js +0 -24
- package/dist/plugin-sdk/send-D0F57nZU.js +0 -23
- package/dist/plugin-sdk/send-DiZVGsNc.js +0 -27
- package/dist/plugin-sdk/send-Q46WVgnx.js +0 -25
- package/dist/plugin-sdk/session-meta-GZHIw3Fv.js +0 -10
- package/dist/plugin-sdk/skill-commands-CQmHbw9e.js +0 -14
- package/dist/plugin-sdk/subagent-registry-C5F7F59N.js +0 -61
- package/dist/plugin-sdk/user-run-recording-ZaA2WM4L.js +0 -11
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir } from "./paths-
|
|
3
|
-
import { Z as CONFIG_DIR, ct as safeParseJson, f as logVerbose, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger, u as danger } from "./subsystem-
|
|
4
|
-
import { F as normalizeAccountId, P as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
5
|
-
import { J as loadConfig, La as resolveTelegramPreviewStreamMode, Qr as resolveTelegramAccount, Ua as isTruthyEnvValue, Ur as getChannelPlugin, Wn as writeJsonAtomic, Wr as listChannelPlugins, X as readConfigFileSnapshotForWrite, Z as writeConfigFile, Za as withFileLock$1 } from "./model-selection-
|
|
6
|
-
import { _ as logTelegramPoll, g as logTelegramDelivery, h as logTelegramApiRequest, m as logTelegramAccountState, v as logTelegramUpdate, y as logTelegramWebhook } from "./diagnostic-
|
|
2
|
+
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir } from "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import { Z as CONFIG_DIR, ct as safeParseJson, f as logVerbose, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger, u as danger } from "./subsystem-iTNW5QQR.js";
|
|
4
|
+
import { F as normalizeAccountId, P as DEFAULT_ACCOUNT_ID } from "./workspace-TtYCbjn0.js";
|
|
5
|
+
import { J as loadConfig, La as resolveTelegramPreviewStreamMode, Qr as resolveTelegramAccount, Ua as isTruthyEnvValue, Ur as getChannelPlugin, Wn as writeJsonAtomic, Wr as listChannelPlugins, X as readConfigFileSnapshotForWrite, Z as writeConfigFile, Za as withFileLock$1 } from "./model-selection-DhXu1Q4_.js";
|
|
6
|
+
import { _ as logTelegramPoll, g as logTelegramDelivery, h as logTelegramApiRequest, m as logTelegramAccountState, v as logTelegramUpdate, y as logTelegramWebhook } from "./diagnostic-DmBrpD9P.js";
|
|
7
7
|
import { n as sha256HexPrefix, t as redactIdentifier } from "./redact-identifier-WYElxwAZ.js";
|
|
8
|
-
import { t as redactSensitiveText } from "./redact-
|
|
9
|
-
import { h as normalizeMimeType, m as kindFromMime, p as isGifMedia, u as getFileExtension } from "./image-ops-
|
|
10
|
-
import { _ as readErrorName, d as extractErrorCode, m as formatUncaughtError, p as formatErrorMessage, t as hasProxyEnvConfigured, u as collectErrorGraphCandidates } from "./proxy-env-
|
|
11
|
-
import { r as makeProxyFetch } from "./proxy-fetch-
|
|
12
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
13
|
-
import { a as loadWebMedia, n as markdownToIR } from "./ir-
|
|
8
|
+
import { t as redactSensitiveText } from "./redact-D8fpDrdk.js";
|
|
9
|
+
import { h as normalizeMimeType, m as kindFromMime, p as isGifMedia, u as getFileExtension } from "./image-ops-pgAg_j4y.js";
|
|
10
|
+
import { _ as readErrorName, d as extractErrorCode, m as formatUncaughtError, p as formatErrorMessage, t as hasProxyEnvConfigured, u as collectErrorGraphCandidates } from "./proxy-env-BBllD0qI.js";
|
|
11
|
+
import { r as makeProxyFetch } from "./proxy-fetch-C4a8MwFs.js";
|
|
12
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-D6t-eoFa.js";
|
|
13
|
+
import { a as loadWebMedia, n as markdownToIR } from "./ir-BHU3uh9A.js";
|
|
14
14
|
import { t as renderMarkdownWithMarkers } from "./render-BZdJrUxT.js";
|
|
15
15
|
import { t as resolveFetch } from "./fetch-D61IHNsz.js";
|
|
16
|
-
import { i as normalizePollInput, n as recordChannelActivity, o as createTelegramRetryRunner } from "./channel-activity-
|
|
16
|
+
import { i as normalizePollInput, n as recordChannelActivity, o as createTelegramRetryRunner } from "./channel-activity-BVqxcijC.js";
|
|
17
17
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-DzQsLh91.js";
|
|
18
18
|
import fs from "node:fs/promises";
|
|
19
19
|
import os from "node:os";
|
|
20
20
|
import path from "node:path";
|
|
21
|
-
import
|
|
21
|
+
import fs$1, { readFileSync } from "node:fs";
|
|
22
22
|
import JSON5 from "json5";
|
|
23
23
|
import process$1 from "node:process";
|
|
24
24
|
import crypto, { randomBytes } from "node:crypto";
|
|
@@ -157,7 +157,7 @@ function getPairingAdapter(channelId) {
|
|
|
157
157
|
//#region src/plugin-sdk/json-store.ts
|
|
158
158
|
async function readJsonFileWithFallback(filePath, fallback) {
|
|
159
159
|
try {
|
|
160
|
-
const parsed = safeParseJson(await
|
|
160
|
+
const parsed = safeParseJson(await fs$1.promises.readFile(filePath, "utf-8"));
|
|
161
161
|
if (parsed == null) return {
|
|
162
162
|
value: fallback,
|
|
163
163
|
exists: true
|
|
@@ -244,7 +244,7 @@ async function readPairingRequests(filePath) {
|
|
|
244
244
|
}
|
|
245
245
|
async function ensureJsonFile(filePath, fallback) {
|
|
246
246
|
try {
|
|
247
|
-
await
|
|
247
|
+
await fs$1.promises.access(filePath);
|
|
248
248
|
} catch {
|
|
249
249
|
await writeJsonFile(filePath, fallback);
|
|
250
250
|
}
|
|
@@ -400,7 +400,7 @@ function resolveAllowFromReadCacheOrMissing(filePath, stat) {
|
|
|
400
400
|
async function readAllowFromStateForPathWithExists(channel, filePath) {
|
|
401
401
|
let stat = null;
|
|
402
402
|
try {
|
|
403
|
-
stat = await
|
|
403
|
+
stat = await fs$1.promises.stat(filePath);
|
|
404
404
|
} catch (err) {
|
|
405
405
|
if (err.code !== "ENOENT") throw err;
|
|
406
406
|
}
|
|
@@ -443,7 +443,7 @@ async function writeAllowFromState(filePath, allowFrom) {
|
|
|
443
443
|
});
|
|
444
444
|
let stat = null;
|
|
445
445
|
try {
|
|
446
|
-
stat = await
|
|
446
|
+
stat = await fs$1.promises.stat(filePath);
|
|
447
447
|
} catch {}
|
|
448
448
|
setAllowFromReadCache(filePath, {
|
|
449
449
|
exists: true,
|
|
@@ -1050,7 +1050,7 @@ function resolveCronStorePath(storePath) {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
async function loadCronStore(storePath) {
|
|
1052
1052
|
try {
|
|
1053
|
-
const raw = await
|
|
1053
|
+
const raw = await fs$1.promises.readFile(storePath, "utf-8");
|
|
1054
1054
|
let parsed;
|
|
1055
1055
|
try {
|
|
1056
1056
|
parsed = JSON5.parse(raw);
|
|
@@ -1076,13 +1076,13 @@ async function loadCronStore(storePath) {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
}
|
|
1078
1078
|
async function saveCronStore(storePath, store) {
|
|
1079
|
-
await
|
|
1079
|
+
await fs$1.promises.mkdir(path.dirname(storePath), { recursive: true });
|
|
1080
1080
|
const json = JSON.stringify(store, null, 2);
|
|
1081
1081
|
const cached = serializedStoreCache.get(storePath);
|
|
1082
1082
|
if (cached === json) return;
|
|
1083
1083
|
let previous = cached ?? null;
|
|
1084
1084
|
if (previous === null) try {
|
|
1085
|
-
previous = await
|
|
1085
|
+
previous = await fs$1.promises.readFile(storePath, "utf-8");
|
|
1086
1086
|
} catch (err) {
|
|
1087
1087
|
if (err.code !== "ENOENT") throw err;
|
|
1088
1088
|
}
|
|
@@ -1091,9 +1091,9 @@ async function saveCronStore(storePath, store) {
|
|
|
1091
1091
|
return;
|
|
1092
1092
|
}
|
|
1093
1093
|
const tmp = `${storePath}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
|
|
1094
|
-
await
|
|
1094
|
+
await fs$1.promises.writeFile(tmp, json, "utf-8");
|
|
1095
1095
|
if (previous !== null) try {
|
|
1096
|
-
await
|
|
1096
|
+
await fs$1.promises.copyFile(storePath, `${storePath}.bak`);
|
|
1097
1097
|
} catch {}
|
|
1098
1098
|
await renameWithRetry(tmp, storePath);
|
|
1099
1099
|
serializedStoreCache.set(storePath, json);
|
|
@@ -1102,7 +1102,7 @@ const RENAME_MAX_RETRIES = 3;
|
|
|
1102
1102
|
const RENAME_BASE_DELAY_MS = 50;
|
|
1103
1103
|
async function renameWithRetry(src, dest) {
|
|
1104
1104
|
for (let attempt = 0; attempt <= RENAME_MAX_RETRIES; attempt++) try {
|
|
1105
|
-
await
|
|
1105
|
+
await fs$1.promises.rename(src, dest);
|
|
1106
1106
|
return;
|
|
1107
1107
|
} catch (err) {
|
|
1108
1108
|
const code = err.code;
|
|
@@ -1111,8 +1111,8 @@ async function renameWithRetry(src, dest) {
|
|
|
1111
1111
|
continue;
|
|
1112
1112
|
}
|
|
1113
1113
|
if (code === "EPERM" || code === "EEXIST") {
|
|
1114
|
-
await
|
|
1115
|
-
await
|
|
1114
|
+
await fs$1.promises.copyFile(src, dest);
|
|
1115
|
+
await fs$1.promises.unlink(src).catch(() => {});
|
|
1116
1116
|
return;
|
|
1117
1117
|
}
|
|
1118
1118
|
throw err;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { r as avoidTrailingHighSurrogateBreak } from "./subsystem-
|
|
3
|
-
import { J as loadConfig, si as resolveSignalAccount } from "./model-selection-
|
|
2
|
+
import { r as avoidTrailingHighSurrogateBreak } from "./subsystem-iTNW5QQR.js";
|
|
3
|
+
import { J as loadConfig, si as resolveSignalAccount } from "./model-selection-DhXu1Q4_.js";
|
|
4
4
|
import { n as generateSecureUuid } from "./secure-random-BDA1WAvZ.js";
|
|
5
|
-
import { m as kindFromMime } from "./image-ops-
|
|
5
|
+
import { m as kindFromMime } from "./image-ops-pgAg_j4y.js";
|
|
6
6
|
import { n as fetchWithTimeout } from "./fetch-timeout-BfPtlUW6.js";
|
|
7
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
8
|
-
import { n as markdownToIR, t as chunkMarkdownIR } from "./ir-
|
|
7
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-D6t-eoFa.js";
|
|
8
|
+
import { n as markdownToIR, t as chunkMarkdownIR } from "./ir-BHU3uh9A.js";
|
|
9
9
|
import { t as resolveFetch } from "./fetch-D61IHNsz.js";
|
|
10
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
10
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-C6U86gij.js";
|
|
11
11
|
|
|
12
12
|
//#region src/signal/format.ts
|
|
13
13
|
function normalizeUrlForComparison(url) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { f as logVerbose } from "./subsystem-
|
|
3
|
-
import { J as loadConfig, ai as resolveSlackBotToken, ni as resolveSlackAccount } from "./model-selection-
|
|
2
|
+
import { f as logVerbose } from "./subsystem-iTNW5QQR.js";
|
|
3
|
+
import { J as loadConfig, ai as resolveSlackBotToken, ni as resolveSlackAccount } from "./model-selection-DhXu1Q4_.js";
|
|
4
4
|
import { i as requireTargetKind, n as ensureTargetId, r as parseMentionPrefixOrAtUserTarget, t as buildMessagingTarget } from "./targets-CSakuiCy.js";
|
|
5
|
-
import { i as isSilentReplyText } from "./tokens-
|
|
6
|
-
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
7
|
-
import { d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, l as resolveChunkMode, u as resolveChunkNewlinePacking } from "./chunk-
|
|
8
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
9
|
-
import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-
|
|
5
|
+
import { i as isSilentReplyText } from "./tokens-iu44eB15.js";
|
|
6
|
+
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-ri_5BFBs.js";
|
|
7
|
+
import { d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, l as resolveChunkMode, u as resolveChunkNewlinePacking } from "./chunk-odx78Acg.js";
|
|
8
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-D6t-eoFa.js";
|
|
9
|
+
import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-BHU3uh9A.js";
|
|
10
10
|
import { t as renderMarkdownWithMarkers } from "./render-BZdJrUxT.js";
|
|
11
11
|
import { WebClient } from "@slack/web-api";
|
|
12
12
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { it as normalizeE164, st as resolveUserPath } from "./subsystem-
|
|
3
|
-
import { J as loadConfig, mi as resolveIMessageAccount } from "./model-selection-
|
|
4
|
-
import { m as kindFromMime } from "./image-ops-
|
|
5
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
6
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
7
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
2
|
+
import { it as normalizeE164, st as resolveUserPath } from "./subsystem-iTNW5QQR.js";
|
|
3
|
+
import { J as loadConfig, mi as resolveIMessageAccount } from "./model-selection-DhXu1Q4_.js";
|
|
4
|
+
import { m as kindFromMime } from "./image-ops-pgAg_j4y.js";
|
|
5
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-D6t-eoFa.js";
|
|
6
|
+
import { t as convertMarkdownTables } from "./tables-Epd9B-UQ.js";
|
|
7
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-C6U86gij.js";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
9
9
|
import { createInterface } from "node:readline";
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { yn as recordSessionMetaFromInbound } from "./model-selection-
|
|
3
|
-
import { p as resolveStorePath } from "./run-with-concurrency-
|
|
2
|
+
import { yn as recordSessionMetaFromInbound } from "./model-selection-DhXu1Q4_.js";
|
|
3
|
+
import { p as resolveStorePath } from "./run-with-concurrency-VoSJL2UI.js";
|
|
4
4
|
|
|
5
5
|
//#region src/channels/session-meta.ts
|
|
6
6
|
var session_meta_exports = /* @__PURE__ */ __exportAll({ recordInboundSessionMetaSafe: () => recordInboundSessionMetaSafe });
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveAgentWorkspaceDir, n as listAgentIds, s as resolveAgentSkillsFilter } from "./agent-scope-
|
|
3
|
-
import { c as resolveStateDir } from "./paths-
|
|
4
|
-
import { Z as CONFIG_DIR, f as logVerbose, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { Hn as createAsyncLock } from "./model-selection-
|
|
6
|
-
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-
|
|
7
|
-
import { a as listChatCommands } from "./commands-registry-
|
|
2
|
+
import { c as resolveAgentWorkspaceDir, n as listAgentIds, s as resolveAgentSkillsFilter } from "./agent-scope-BGnYrze_.js";
|
|
3
|
+
import { c as resolveStateDir } from "./paths-Cvc9EM8Y.js";
|
|
4
|
+
import { Z as CONFIG_DIR, f as logVerbose, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-iTNW5QQR.js";
|
|
5
|
+
import { Hn as createAsyncLock } from "./model-selection-DhXu1Q4_.js";
|
|
6
|
+
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-C-1FVOPz.js";
|
|
7
|
+
import { a as listChatCommands } from "./commands-registry-BEs7FrhT.js";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import fs from "node:fs";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import chokidar from "chokidar";
|
|
13
13
|
|
|
@@ -248,13 +248,13 @@ function listSkillCommandsForAgents(params) {
|
|
|
248
248
|
const workspaceFilters = /* @__PURE__ */ new Map();
|
|
249
249
|
for (const agentId of agentIds) {
|
|
250
250
|
const workspaceDir = resolveAgentWorkspaceDir(params.cfg, agentId);
|
|
251
|
-
if (!
|
|
251
|
+
if (!fs.existsSync(workspaceDir)) {
|
|
252
252
|
logVerbose(`Skipping agent "${agentId}": workspace does not exist: ${workspaceDir}`);
|
|
253
253
|
continue;
|
|
254
254
|
}
|
|
255
255
|
let canonicalDir;
|
|
256
256
|
try {
|
|
257
|
-
canonicalDir =
|
|
257
|
+
canonicalDir = fs.realpathSync(workspaceDir);
|
|
258
258
|
} catch {
|
|
259
259
|
logVerbose(`Skipping agent "${agentId}": cannot resolve workspace: ${workspaceDir}`);
|
|
260
260
|
continue;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { m as normalizeSkillFilter } from "./agent-scope-
|
|
2
|
-
import { H as isPathInside, K as isDangerousHostEnvVarName, N as isPathInsideWithRealpath, Z as CONFIG_DIR, mt as resolvePreferredOpenClawTmpDir, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { h as resolveOpenClawPackageRootSync } from "./workspace-
|
|
4
|
-
import { It as normalizePluginsConfig, Lt as resolveEffectiveEnableState, Mt as loadPluginManifestRegistry, Rt as resolveMemorySlotDecision, ro as normalizeResolvedSecretInputString } from "./model-selection-
|
|
5
|
-
import { a as resolveOpenClawManifestBlock, c as resolveOpenClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseOpenClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveOpenClawManifestInstall, r as parseFrontmatterBool, s as resolveOpenClawManifestOs, t as getFrontmatterString, u as evaluateRuntimeEligibility } from "./frontmatter-
|
|
6
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
1
|
+
import { m as normalizeSkillFilter } from "./agent-scope-BGnYrze_.js";
|
|
2
|
+
import { H as isPathInside, K as isDangerousHostEnvVarName, N as isPathInsideWithRealpath, Z as CONFIG_DIR, mt as resolvePreferredOpenClawTmpDir, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-iTNW5QQR.js";
|
|
3
|
+
import { h as resolveOpenClawPackageRootSync } from "./workspace-TtYCbjn0.js";
|
|
4
|
+
import { It as normalizePluginsConfig, Lt as resolveEffectiveEnableState, Mt as loadPluginManifestRegistry, Rt as resolveMemorySlotDecision, ro as normalizeResolvedSecretInputString } from "./model-selection-DhXu1Q4_.js";
|
|
5
|
+
import { a as resolveOpenClawManifestBlock, c as resolveOpenClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseOpenClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveOpenClawManifestInstall, r as parseFrontmatterBool, s as resolveOpenClawManifestOs, t as getFrontmatterString, u as evaluateRuntimeEligibility } from "./frontmatter-Cw33lRgS.js";
|
|
6
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-y8gxUSMu.js";
|
|
7
7
|
import os from "node:os";
|
|
8
8
|
import path from "node:path";
|
|
9
|
-
import
|
|
9
|
+
import fs from "node:fs";
|
|
10
10
|
import { URL as URL$1, fileURLToPath } from "node:url";
|
|
11
11
|
import { formatSkillsForPrompt, loadSkillsFromDir } from "@mariozechner/pi-coding-agent";
|
|
12
12
|
|
|
@@ -542,13 +542,13 @@ function shortPath(value) {
|
|
|
542
542
|
//#region src/agents/skills/bundled-dir.ts
|
|
543
543
|
function looksLikeSkillsDir(dir) {
|
|
544
544
|
try {
|
|
545
|
-
const entries =
|
|
545
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
546
546
|
for (const entry of entries) {
|
|
547
547
|
if (entry.name.startsWith(".")) continue;
|
|
548
548
|
const fullPath = path.join(dir, entry.name);
|
|
549
549
|
if (entry.isFile() && entry.name.endsWith(".md")) return true;
|
|
550
550
|
if (entry.isDirectory()) {
|
|
551
|
-
if (
|
|
551
|
+
if (fs.existsSync(path.join(fullPath, "SKILL.md"))) return true;
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
} catch {
|
|
@@ -563,7 +563,7 @@ function resolveBundledSkillsDir(opts = {}) {
|
|
|
563
563
|
const execPath = opts.execPath ?? process.execPath;
|
|
564
564
|
const execDir = path.dirname(execPath);
|
|
565
565
|
const sibling = path.join(execDir, "skills");
|
|
566
|
-
if (
|
|
566
|
+
if (fs.existsSync(sibling)) return sibling;
|
|
567
567
|
} catch {}
|
|
568
568
|
try {
|
|
569
569
|
const moduleUrl = opts.moduleUrl ?? import.meta.url;
|
|
@@ -626,7 +626,7 @@ function resolvePluginSkillDirs(params) {
|
|
|
626
626
|
const trimmed = raw.trim();
|
|
627
627
|
if (!trimmed) continue;
|
|
628
628
|
const candidate = path.resolve(record.rootDir, trimmed);
|
|
629
|
-
if (!
|
|
629
|
+
if (!fs.existsSync(candidate)) {
|
|
630
630
|
log.warn(`plugin skill path not found (${record.id}): ${candidate}`);
|
|
631
631
|
continue;
|
|
632
632
|
}
|
|
@@ -657,7 +657,7 @@ async function serializeByKey(key, task) {
|
|
|
657
657
|
|
|
658
658
|
//#endregion
|
|
659
659
|
//#region src/agents/skills/workspace.ts
|
|
660
|
-
const fsp =
|
|
660
|
+
const fsp = fs.promises;
|
|
661
661
|
const skillsLogger = createSubsystemLogger("skills");
|
|
662
662
|
const skillCommandDebugOnce = /* @__PURE__ */ new Set();
|
|
663
663
|
/**
|
|
@@ -734,7 +734,7 @@ function resolveSkillsLimits(config) {
|
|
|
734
734
|
}
|
|
735
735
|
function listChildDirectories(dir) {
|
|
736
736
|
try {
|
|
737
|
-
const entries =
|
|
737
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
738
738
|
const dirs = [];
|
|
739
739
|
for (const entry of entries) {
|
|
740
740
|
if (entry.name.startsWith(".")) continue;
|
|
@@ -745,7 +745,7 @@ function listChildDirectories(dir) {
|
|
|
745
745
|
continue;
|
|
746
746
|
}
|
|
747
747
|
if (entry.isSymbolicLink()) try {
|
|
748
|
-
if (
|
|
748
|
+
if (fs.statSync(fullPath).isDirectory()) dirs.push(entry.name);
|
|
749
749
|
} catch {}
|
|
750
750
|
}
|
|
751
751
|
return dirs;
|
|
@@ -756,7 +756,7 @@ function listChildDirectories(dir) {
|
|
|
756
756
|
function resolveNestedSkillsRoot(dir, opts) {
|
|
757
757
|
const nested = path.join(dir, "skills");
|
|
758
758
|
try {
|
|
759
|
-
if (!
|
|
759
|
+
if (!fs.existsSync(nested) || !fs.statSync(nested).isDirectory()) return { baseDir: dir };
|
|
760
760
|
} catch {
|
|
761
761
|
return { baseDir: dir };
|
|
762
762
|
}
|
|
@@ -765,7 +765,7 @@ function resolveNestedSkillsRoot(dir, opts) {
|
|
|
765
765
|
const toScan = scanLimit === 0 ? [] : nestedDirs.slice(0, Math.min(nestedDirs.length, scanLimit));
|
|
766
766
|
for (const name of toScan) {
|
|
767
767
|
const skillMd = path.join(nested, name, "SKILL.md");
|
|
768
|
-
if (
|
|
768
|
+
if (fs.existsSync(skillMd)) return {
|
|
769
769
|
baseDir: nested,
|
|
770
770
|
note: `Detected nested skills root at ${nested}`
|
|
771
771
|
};
|
|
@@ -785,9 +785,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
785
785
|
const loadSkills = (params) => {
|
|
786
786
|
const baseDir = resolveNestedSkillsRoot(params.dir, { maxEntriesToScan: limits.maxCandidatesPerRoot }).baseDir;
|
|
787
787
|
const rootSkillMd = path.join(baseDir, "SKILL.md");
|
|
788
|
-
if (
|
|
788
|
+
if (fs.existsSync(rootSkillMd)) {
|
|
789
789
|
try {
|
|
790
|
-
const size =
|
|
790
|
+
const size = fs.statSync(rootSkillMd).size;
|
|
791
791
|
if (size > limits.maxSkillFileBytes) {
|
|
792
792
|
skillsLogger.warn("Skipping skills root due to oversized SKILL.md.", {
|
|
793
793
|
dir: baseDir,
|
|
@@ -826,9 +826,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
826
826
|
for (const name of limitedChildren) {
|
|
827
827
|
const skillDir = path.join(baseDir, name);
|
|
828
828
|
const skillMd = path.join(skillDir, "SKILL.md");
|
|
829
|
-
if (!
|
|
829
|
+
if (!fs.existsSync(skillMd)) continue;
|
|
830
830
|
try {
|
|
831
|
-
const size =
|
|
831
|
+
const size = fs.statSync(skillMd).size;
|
|
832
832
|
if (size > limits.maxSkillFileBytes) {
|
|
833
833
|
skillsLogger.warn("Skipping skill due to oversized SKILL.md.", {
|
|
834
834
|
skill: name,
|
|
@@ -896,7 +896,7 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
896
896
|
return Array.from(merged.values()).map((skill) => {
|
|
897
897
|
let frontmatter = {};
|
|
898
898
|
try {
|
|
899
|
-
frontmatter = parseFrontmatter(
|
|
899
|
+
frontmatter = parseFrontmatter(fs.readFileSync(skill.filePath, "utf-8"));
|
|
900
900
|
} catch {}
|
|
901
901
|
return {
|
|
902
902
|
skill,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ot as resolveConfigDir } from "./subsystem-
|
|
2
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
1
|
+
import { ot as resolveConfigDir } from "./subsystem-iTNW5QQR.js";
|
|
2
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-pgAg_j4y.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import crypto from "node:crypto";
|