wednesdayai 0.5.1-dev.40 → 0.5.1-dev.41
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/{agent-scope-BudmZlc1.js → agent-scope-CXfIHPTl.js} +3 -3
- package/dist/{agent-scope-BJFJ0deZ.js → agent-scope-DUbhjnHb.js} +18 -18
- package/dist/{agent-turn-execute-CIlMMXNu.js → agent-turn-execute-8DU-jztX.js} +168 -168
- package/dist/{agent-turn-runner-C5FiRTJg.js → agent-turn-runner-BJqs23F_.js} +6 -6
- package/dist/{agent-turn-runner-SxjOzPCD.js → agent-turn-runner-DHc4lH66.js} +6 -6
- package/dist/{api-key-rotation-BWj1Itf-.js → api-key-rotation-B8RAiYZ_.js} +2 -2
- package/dist/{api-key-rotation-DzXkIU1m.js → api-key-rotation-PK29aYV9.js} +2 -2
- package/dist/{audio-preflight-CKxOmHZL.js → audio-preflight-Cio-wP6C.js} +22 -22
- package/dist/{audio-preflight-E-nHdi7I.js → audio-preflight-DaYu-alJ.js} +27 -27
- package/dist/{audio-transcription-runner-Cc-hAbE1.js → audio-transcription-runner-DW04B1B-.js} +26 -26
- package/dist/{audio-transcription-runner-DrIyj8a5.js → audio-transcription-runner-D_-_mf4m.js} +25 -25
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +58 -58
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- 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/{chat-content-CL44f6Ub.js → chat-content-DIjp-kW-.js} +36 -36
- package/dist/{chat-content-BgW4rG28.js → chat-content-tQ21BnhN.js} +24 -24
- package/dist/{plugin-sdk/chrome-DML7V0HT.js → chrome-C9TkYQeh.js} +26 -26
- package/dist/{chrome-DNTX4D1k.js → chrome-DxiDoVpi.js} +13 -13
- package/dist/{chunk-BEuk6eCG.js → chunk-50mU2Avf.js} +3 -3
- package/dist/{chunk-BHQuzJtJ.js → chunk-DCCRrNDr.js} +3 -3
- package/dist/{command-queue-CyJUnsMn.js → command-queue-De2GI8TP.js} +1 -1
- package/dist/{command-queue-D_saM8MV.js → command-queue-yDJ733aN.js} +1 -1
- package/dist/{command-registry-xYf1aBOy.js → command-registry-Ip0F63vx.js} +4 -4
- package/dist/{commands-registry-CNVoO37I.js → commands-registry-C3LKhQLY.js} +2 -2
- package/dist/{commands-registry-C-BDBl_b.js → commands-registry-CzTzqbi9.js} +2 -2
- package/dist/{completion-cli-od6mAB_x.js → completion-cli-BFHL_SSq.js} +2 -2
- package/dist/{completion-cli-BIuMSnSA.js → completion-cli-EqOcxJpx.js} +1 -1
- package/dist/{config-CPcuaNsB.js → config-D5tWLhng.js} +26 -26
- package/dist/config.js +3 -3
- package/dist/{credentials-DnIj4HtR.js → credentials-BAWD9O8L.js} +1 -1
- package/dist/{credentials-2Kd9Ahu7.js → credentials-DdZjLLBj.js} +1 -1
- package/dist/{deliver-Ap_fWjsf.js → deliver-Cqo4_R0v.js} +14 -14
- package/dist/{deliver-DUUEMT-w.js → deliver-DeMElZFE.js} +29 -29
- package/dist/{diagnostic-YRGuisNG.js → diagnostic-BqFtliY1.js} +3 -3
- package/dist/{diagnostic--vAGyKdB.js → diagnostic-Nq6B3DZr.js} +3 -3
- package/dist/{doctor-completion-xR-LI2Kc.js → doctor-completion-CNBGQIUD.js} +1 -1
- package/dist/{doctor-completion-B3oIZ4R2.js → doctor-completion-W6Xmw25w.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{plugin-sdk/errors-BH3DYZVB.js → errors-BWpk4nzX.js} +1 -1
- package/dist/{errors-DnOtx_vg.js → errors-D8k7j4A4.js} +1 -1
- package/dist/{fetch-ChtdmCYU.js → fetch-CHncmQms.js} +8 -8
- package/dist/{plugin-sdk/fetch-BxGJD3sH.js → fetch-CLvElPgY.js} +1 -1
- package/dist/{plugin-sdk/fetch-BqFNIJpI.js → fetch-DG4n5iR6.js} +1 -1
- package/dist/{fetch-BJ9kDOw8.js → fetch-TzOudNO4.js} +7 -7
- package/dist/{fetch-guard-CRERUrFK.js → fetch-guard-BZlxmZcA.js} +2 -2
- package/dist/{fetch-guard-BnKTeFyb.js → fetch-guard-kz-XQlCx.js} +2 -2
- package/dist/{frontmatter-CqznVm7P.js → frontmatter-BDLxOane.js} +5 -5
- package/dist/{fs-safe-C3qJHn62.js → fs-safe-BH37Yhl8.js} +25 -25
- package/dist/{fs-safe-D96d8swI.js → fs-safe-BjrptUz1.js} +26 -26
- package/dist/{gateway-cli-B0WWrjnY.js → gateway-cli-D17zAbrY.js} +20 -10
- package/dist/{gateway-cli-BRUhDHZW.js → gateway-cli-DktZhN9y.js} +20 -10
- package/dist/{image-ops-BiBI-uAf.js → image-ops-BWgZn39_.js} +1 -1
- package/dist/{image-ops-BTgGxcIG.js → image-ops-C54shfkj.js} +11 -11
- package/dist/index.js +1 -1
- package/dist/{ir-IKFrcD2H.js → ir-Btci3Wse.js} +8 -8
- package/dist/{ir-Drj2D5Gr.js → ir-SWdqg35s.js} +5 -5
- package/dist/{json-files-DNv3G6Vg.js → json-files-C3L53Qrl.js} +7 -7
- package/dist/{legacy-names-Bx5L8LWT.js → legacy-names-BKv-k5-D.js} +1 -1
- package/dist/llm-slug-generator.js +58 -58
- package/dist/{manager-Cb_Lde6Q.js → manager-BPk0HUHz.js} +14 -14
- package/dist/{manager-C9H5Oflk.js → manager-Nw8a10KA.js} +18 -18
- package/dist/{markdown-tables-Crj_Y0Qx.js → markdown-tables-BJqhUgli.js} +2 -2
- package/dist/{markdown-tables-BvoP0b-H.js → markdown-tables-By4yQcHS.js} +2 -2
- package/dist/{model-selection-2-pBJbaC.js → model-selection-JA-6f5ss.js} +84 -84
- package/dist/{models-config-7yfOGOZY.js → models-config-Cbzv_acs.js} +2 -2
- package/dist/{models-config-DkEpc_7A.js → models-config-TH00YNHC.js} +7 -7
- package/dist/{nudge-BR_K1LnT.js → nudge-DVGzMWUi.js} +16 -16
- package/dist/{nudge-CcGwhSSL.js → nudge-Da1ePscI.js} +35 -35
- package/dist/{onboard-CRHyyv-F.js → onboard-D2AmYbm8.js} +1 -1
- package/dist/{onboard-CYQVIEKp.js → onboard-PJee12bv.js} +1 -1
- package/dist/{onboarding-CDHMZKiy.js → onboarding-C1f94rh1.js} +1 -1
- package/dist/{onboarding-vLVDuEr7.js → onboarding-DXRhSAcO.js} +1 -1
- package/dist/{onboarding.finalize-D3hX9K5R.js → onboarding.finalize-C0RUJoiz.js} +4 -4
- package/dist/{onboarding.finalize-BDJnDt6t.js → onboarding.finalize-Calv0MIe.js} +3 -3
- package/dist/{outbound-attachment-CxvBVgcJ.js → outbound-attachment-CZwlqfbE.js} +2 -2
- package/dist/{outbound-attachment-DFIzmC4e.js → outbound-attachment-DAUmCye_.js} +2 -2
- package/dist/{outbound-message-hooks-C9zh-qk0.js → outbound-message-hooks-Bqu2fu_R.js} +4 -4
- package/dist/{outbound-message-hooks-DfRORyCc.js → outbound-message-hooks-CIrC0qAA.js} +5 -5
- package/dist/{pairing-files-ByediFgs.js → pairing-files-B1ukutA_.js} +1 -1
- package/dist/{path-alias-guards-B9AcbQl6.js → path-alias-guards-CGcezGX3.js} +3 -3
- package/dist/{path-alias-guards-BXXI1YTn.js → path-alias-guards-CgO2FpVx.js} +1 -1
- package/dist/{pi-embedded-Dp5uUcq6.js → pi-embedded-W4tWwQw6.js} +254 -254
- package/dist/{pi-embedded-utils-Dc-LEWCI.js → pi-embedded-utils-B6eeyw2H.js} +3 -3
- package/dist/{pi-embedded-utils-CQ3KPjMe.js → pi-embedded-utils-DF7kfQx2.js} +3 -3
- package/dist/{pi-model-discovery-C4WE3mR2.js → pi-model-discovery-VTZCKDCd.js} +1 -1
- package/dist/{pi-model-discovery-B44lshxv.js → pi-model-discovery-ym24jTFO.js} +7 -7
- package/dist/plugin-sdk/{agent-scope-Cy5bPtkD.js → agent-scope-BnbrZIzh.js} +1 -1
- package/dist/plugin-sdk/{agent-turn-execute-Cr_GYkDb.js → agent-turn-execute-Bj1_MqWi.js} +79 -79
- package/dist/plugin-sdk/agent-turn-execute-D0szeKs8.js +61 -0
- package/dist/plugin-sdk/{agent-turn-runner-D3tAlzpP.js → agent-turn-runner-fV3h6ELM.js} +6 -6
- package/dist/plugin-sdk/{agent-turn-runner-CBR6kAt-.js → agent-turn-runner-zbex5xar.js} +6 -6
- package/dist/plugin-sdk/{api-key-rotation-Dmd_whf1.js → api-key-rotation-DbJkvwYN.js} +1 -1
- package/dist/plugin-sdk/{api-key-rotation-BKcVxTy8.js → api-key-rotation-Dpyf5O6z.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-2XKqIXAx.js → audio-preflight-DhIYyWh0.js} +14 -14
- package/dist/plugin-sdk/{audio-preflight-BVKGoA22.js → audio-preflight-DlNHpUpW.js} +23 -23
- package/dist/plugin-sdk/{audio-transcription-runner-Cvfignlt.js → audio-transcription-runner-BNWmQAJ3.js} +10 -10
- package/dist/plugin-sdk/{audio-transcription-runner-2ziIuais.js → audio-transcription-runner-DbjdWQRu.js} +8 -8
- package/dist/plugin-sdk/{auth-profiles-BxDhfCHT.js → auth-profiles-DPd1Ol-P.js} +1 -1
- package/dist/plugin-sdk/{chat-content-DWJ_WMLQ.js → chat-content-CEMoDe5q.js} +9 -9
- package/dist/{chrome-D1006Mu2.js → plugin-sdk/chrome-CobI3ImG.js} +8 -8
- package/dist/plugin-sdk/{chrome-Djvom4Ij.js → chrome-DwoV5WFU.js} +6 -6
- package/dist/plugin-sdk/{chunk-SR4Ydfza.js → chunk-C3M1IW7W.js} +2 -2
- package/dist/plugin-sdk/{chunk-Bh4ffo9K.js → chunk-CBTJQenE.js} +3 -3
- package/dist/plugin-sdk/{command-queue-DUO9-NRr.js → command-queue-DUuIiwvi.js} +2 -2
- package/dist/plugin-sdk/{command-queue-DxcAKezg.js → command-queue-hSL_BIod.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-DnePgYTq.js → commands-registry-DPCcTIwi.js} +2 -2
- package/dist/plugin-sdk/{commands-registry-CCiWhIrU.js → commands-registry-vhM5U22x.js} +2 -2
- package/dist/plugin-sdk/{credentials-DJMyq23O.js → credentials-BgX_xjTe.js} +1 -1
- package/dist/plugin-sdk/{credentials-BFdx8hCQ.js → credentials-oF38Hm9r.js} +1 -1
- package/dist/plugin-sdk/{deliver-Cf-VdZA7.js → deliver-CkQB8s_s.js} +14 -14
- package/dist/plugin-sdk/deliver-DTstMBfw.js +34 -0
- package/dist/plugin-sdk/{deliver-D3LWZpv1.js → deliver-lkeqXp0v.js} +11 -11
- package/dist/plugin-sdk/{diagnostic-BXgGsRnq.js → diagnostic-TucKQ5Fk.js} +2 -2
- package/dist/plugin-sdk/{diagnostic-BpXW-Rhw.js → diagnostic-nUTVaBEe.js} +3 -3
- package/dist/plugin-sdk/{diagnostic-session-state-Y-_mHHE2.js → diagnostic-session-state-C74O1QW2.js} +1 -1
- package/dist/{errors-DnS9ngr1.js → plugin-sdk/errors-BcCM5PTR.js} +1 -1
- package/dist/{fetch-CrTLz8wd.js → plugin-sdk/fetch-BEOHdT2e.js} +1 -1
- package/dist/{fetch-DJPbv7La.js → plugin-sdk/fetch-BNHoA66Z.js} +1 -1
- package/dist/plugin-sdk/{fetch-CpY6mDmQ.js → fetch-D7rvWjfk.js} +2 -2
- package/dist/plugin-sdk/{fetch-B9WuvLLv.js → fetch-DV_cKD5m.js} +7 -7
- package/dist/plugin-sdk/{fetch-guard-BEue3kvx.js → fetch-guard-CQIsGUgZ.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-CJhIVznN.js → fetch-guard-Dpd7hJ0h.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-BQ8e0fFk.js → fs-safe-CnAPtYPG.js} +3 -3
- package/dist/plugin-sdk/{image-ops-CqatVl0e.js → image-ops-1WkFRYfC.js} +1 -1
- package/dist/plugin-sdk/{inbound-context-CKtZsNVT.js → inbound-context-BdGImnhD.js} +1 -1
- package/dist/plugin-sdk/{ir-C1cLQG0N.js → ir-BnNIPrDz.js} +5 -5
- package/dist/plugin-sdk/{ir-Ep5lw12h.js → ir-D-nyt7yZ.js} +2 -2
- package/dist/plugin-sdk/{manager-DyYd10T2.js → manager-3Bw8zhA3.js} +4 -4
- package/dist/plugin-sdk/manager-BexdJt3o.js +14 -0
- package/dist/plugin-sdk/{manager-xGWNrW5i.js → manager-uIw894nB.js} +7 -7
- package/dist/plugin-sdk/{markdown-tables-DnMUQn1V.js → markdown-tables-D6Jl1s9s.js} +2 -2
- package/dist/plugin-sdk/{markdown-tables-B4G-uOPz.js → markdown-tables-DczIA0hC.js} +2 -2
- package/dist/plugin-sdk/{model-auth-pNsZhRxq.js → model-auth-Beiv1ujI.js} +7 -7
- package/dist/plugin-sdk/{models-config-DsHaLeW3.js → models-config-DPG3UP6h.js} +1 -1
- package/dist/plugin-sdk/{models-config-d-LFEKVs.js → models-config-DrzOHxl5.js} +2 -2
- package/dist/plugin-sdk/{monitor-CbKokdL4.js → monitor-BQWiYAwC.js} +77 -77
- package/dist/plugin-sdk/{nudge-z8ozyWd6.js → nudge-Cp00v46W.js} +11 -11
- package/dist/plugin-sdk/{nudge-BvirROp6.js → nudge-czM3OOTT.js} +8 -8
- package/dist/plugin-sdk/{openai-compatible-video-BxPbkLMy.js → openai-compatible-video-Dy57wpNv.js} +7 -7
- package/dist/plugin-sdk/{outbound-attachment-DkIWM5yK.js → outbound-attachment-BoSR20RK.js} +2 -2
- package/dist/plugin-sdk/{outbound-attachment-BrHUWeqB.js → outbound-attachment-JHREBMfy.js} +1 -1
- package/dist/plugin-sdk/{outbound-message-hooks-DsAvrOUy.js → outbound-message-hooks-eUNVCJ0m.js} +4 -4
- package/dist/plugin-sdk/{path-alias-guards-CF0cvXKB.js → path-alias-guards-D1I2TIj4.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-Ctve63Vr.js → pi-embedded-helpers-BRSkUtFR.js} +15 -15
- package/dist/plugin-sdk/{pi-embedded-utils-cecBA96E.js → pi-embedded-utils-DcsHTJ1m.js} +3 -3
- package/dist/plugin-sdk/{pi-embedded-utils-6FFFlkbd.js → pi-embedded-utils-JXHsJfhx.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-BnsoI-E6.js → pi-model-discovery-CKGA60jT.js} +2 -2
- package/dist/plugin-sdk/{pi-model-discovery-CMOEq078.js → pi-model-discovery-HVno_0HD.js} +1 -1
- package/dist/plugin-sdk/provider-dispatcher-Cq6Acy3h.js +61 -0
- package/dist/plugin-sdk/provider-media-understanding.js +20 -20
- package/dist/plugin-sdk/{proxy-env-jBCtIiJH.js → proxy-env-D9QKz5Mq.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-Bl2Z9GYg.js → pw-ai-B1OqkFDb.js} +10 -10
- package/dist/plugin-sdk/{pw-ai-IAdR6aX7.js → pw-ai-B_6I8TGZ.js} +4 -4
- package/dist/plugin-sdk/{qmd-manager-DERrmogO.js → qmd-manager-CIgxgs0D.js} +2 -2
- package/dist/plugin-sdk/{qmd-manager-DY9c1S_2.js → qmd-manager-Ip6QnhA7.js} +8 -8
- package/dist/plugin-sdk/{qmd-scope-C3rw3Qjd.js → qmd-scope-DMNjwnEQ.js} +1 -1
- package/dist/plugin-sdk/{query-expansion-CWCvbGoy.js → query-expansion-CECAX0Pe.js} +1 -1
- package/dist/plugin-sdk/{query-expansion-BhXha2GI.js → query-expansion-DV-ECmRb.js} +2 -2
- package/dist/plugin-sdk/{recorder-xWMrt--U.js → recorder-C6OpZN3o.js} +1 -1
- package/dist/plugin-sdk/{recorder-DccHbgBz.js → recorder-XQ8ZjG7j.js} +2 -2
- package/dist/plugin-sdk/{redact-CXDVzhSq.js → redact-C3T6IWmQ.js} +1 -1
- package/dist/plugin-sdk/{registry-B-9fRLtl.js → registry-D9-EsIYH.js} +1 -1
- package/dist/plugin-sdk/{replies-BNtRlug2.js → replies-BhuMuYfa.js} +11 -11
- package/dist/plugin-sdk/{replies-CbnkLeUl.js → replies-ClN-Aak4.js} +4 -4
- package/dist/{replies-DAavcLc9.js → plugin-sdk/replies-HCqRS_IF.js} +5 -5
- package/dist/plugin-sdk/{reply-directives-CXKYiQC1.js → reply-directives-Bn4oBJnk.js} +2 -2
- package/dist/plugin-sdk/{reply-directives-CKNwlk_8.js → reply-directives-C69Fd8zO.js} +1 -1
- package/dist/plugin-sdk/{reply-prefix-DCeyas-6.js → reply-prefix-BQ-rDIAU.js} +1 -1
- package/dist/{reply-prefix-C08CPcgE.js → plugin-sdk/reply-prefix-CCyygbH2.js} +1 -1
- package/dist/plugin-sdk/{resolve-route-CsiTWvoi.js → resolve-route-Djrs4IWv.js} +3 -3
- package/dist/plugin-sdk/{resolve-route-t2HJkuDx.js → resolve-route-N9oe4tGM.js} +2 -2
- package/dist/plugin-sdk/{runs-B0mmuxPP.js → runs-0OTO0OVX.js} +12 -12
- package/dist/plugin-sdk/{runs-CSaP-UMd.js → runs-DK85oFoq.js} +7 -7
- package/dist/plugin-sdk/{runs-ByM3uA8B.js → runs-DN-UxJ44.js} +8 -8
- package/dist/plugin-sdk/{send-D0UAWWai.js → send-AstP-BDn.js} +8 -8
- package/dist/plugin-sdk/{send-BToCKtul.js → send-C8OYq5CD.js} +10 -10
- package/dist/plugin-sdk/send-CMAU8Lg8.js +23 -0
- package/dist/plugin-sdk/{send-CbbM7dcD.js → send-CVYVctJr.js} +6 -6
- package/dist/plugin-sdk/{send-hdgQBd4P.js → send-CciBIiE2.js} +4 -4
- package/dist/plugin-sdk/{send-rQhDBwIJ.js → send-CilPGWoe.js} +8 -8
- package/dist/plugin-sdk/{send-CTefF3Iw.js → send-CyKQnkbd.js} +6 -6
- package/dist/plugin-sdk/{send-Dgf6n9kX.js → send-D3hVSNy0.js} +6 -6
- package/dist/plugin-sdk/{send-qUR5w2lM.js → send-D5C72eu6.js} +7 -7
- package/dist/plugin-sdk/{send-CY2iq9C4.js → send-DFpY65tA.js} +10 -10
- package/dist/plugin-sdk/{send-BwuMsQ_p.js → send-DnJb7LiP.js} +8 -8
- package/dist/plugin-sdk/{send-BQYyBicH.js → send-dNeIyZEN.js} +5 -5
- package/dist/plugin-sdk/{session-context-E8Vv0lBU.js → session-context-4IeKkzGJ.js} +2 -2
- package/dist/plugin-sdk/{session-meta-_XFpsAgw.js → session-meta-BlMS0pts.js} +2 -2
- package/dist/plugin-sdk/{session-meta-B_alDqcD.js → session-meta-pKpwf1nQ.js} +1 -1
- package/dist/plugin-sdk/{sessions-DGyoDRbg.js → sessions-BUjbH5K1.js} +1 -1
- package/dist/plugin-sdk/{sessions-CkJfRajZ.js → sessions-BfBjVuaP.js} +4 -4
- package/dist/plugin-sdk/{skill-commands-D5O0FXiW.js → skill-commands-Bk_STwKa.js} +4 -4
- package/dist/plugin-sdk/{skill-commands-DJ9gv-vK.js → skill-commands-J-ZcPvqF.js} +3 -3
- package/dist/plugin-sdk/{skills-ByCpoIW7.js → skills-BArFQgKX.js} +6 -6
- package/dist/plugin-sdk/{skills-mfK8NK3f.js → skills-W6RHTFue.js} +1 -1
- package/dist/plugin-sdk/{ssrf-aLKAjCHj.js → ssrf-B2UnPTf3.js} +1 -1
- package/dist/plugin-sdk/{store-KaVQ5gHj.js → store-D8eITlWs.js} +2 -2
- package/dist/plugin-sdk/{subagent-registry-DyI22dHA.js → subagent-registry-Bek3q0nu.js} +44 -44
- package/dist/plugin-sdk/{subsystem-DGPv0F8I.js → subsystem-Btq0amiz.js} +4 -4
- package/dist/plugin-sdk/{tables-CONj5xDV.js → tables-Bj_zeTwr.js} +1 -1
- package/dist/plugin-sdk/{tables-Dt2IrV1k.js → tables-ohryoECJ.js} +1 -1
- package/dist/plugin-sdk/testing.js +44 -44
- package/dist/plugin-sdk/{tokens-DUGBy1gM.js → tokens-mfZMXas7.js} +1 -1
- package/dist/plugin-sdk/{tool-loop-detection-Cl4-Vsd_.js → tool-loop-detection-CnFqoQKh.js} +1 -1
- package/dist/plugin-sdk/{user-run-recording-C05KbS-o.js → user-run-recording-CAAdiBWD.js} +2 -2
- package/dist/plugin-sdk/{user-run-recording--8aaZMPs.js → user-run-recording-DQBPNzif.js} +2 -2
- package/dist/plugin-sdk/{ws-C7BGsi5P.js → ws-DN6RmfyQ.js} +1 -1
- package/dist/plugin-sdk/{ws-BzjQAveZ.js → ws-zaFiZiYP.js} +1 -1
- package/dist/{program-CcLb8Psv.js → program-DYZ4XAFZ.js} +2 -2
- package/dist/{program-context-X8qIC1Px.js → program-context-BM_flY1J.js} +6 -6
- package/dist/{prompt-select-styled-NrfLylYh.js → prompt-select-styled-BFW0tf77.js} +1 -1
- package/dist/{prompt-select-styled-DUTH4ST5.js → prompt-select-styled-Eb9ltCzM.js} +1 -1
- package/dist/{proxy-env-Bw8nAERJ.js → proxy-env-DKs0W5v1.js} +1 -1
- package/dist/{proxy-env-DdoaBr4H.js → proxy-env-DtzLr6mZ.js} +1 -1
- package/dist/{pw-ai-C6ZFN6As.js → pw-ai-CEk9Jaqd.js} +13 -13
- package/dist/{pw-ai-CV5A9Kt_.js → pw-ai-KPNOiYzf.js} +14 -14
- package/dist/{qmd-manager-Bw5dnMTy.js → qmd-manager-BFUaPUn-.js} +12 -12
- package/dist/{qmd-manager-BZSlXT1A.js → qmd-manager-BmiJlIMN.js} +23 -23
- package/dist/{qmd-scope-BOfwIKTy.js → qmd-scope-CUCeRWxr.js} +1 -1
- package/dist/{qmd-scope-0dG63o_w.js → qmd-scope-DLLTbQwp.js} +1 -1
- package/dist/{query-expansion-gzgHhq68.js → query-expansion-CbOJZTFH.js} +13 -13
- package/dist/{query-expansion-BDAO12Ha.js → query-expansion-DLN1Vjgr.js} +11 -11
- package/dist/{recorder-ciGDu2oO.js → recorder-CndF3Klo.js} +2 -2
- package/dist/{recorder-Bp_onP2d.js → recorder-jnBdoV4s.js} +2 -2
- package/dist/{redact-Cp-v7ZNA.js → redact-B6sHOW29.js} +1 -1
- package/dist/{redact-D--orJnz.js → redact-C8xjZT-F.js} +1 -1
- package/dist/{register.maintenance-CFd160fT.js → register.maintenance-CNiAi_Bg.js} +5 -5
- package/dist/{register.maintenance-Dc0j0tvi.js → register.maintenance-Dq3k6jFc.js} +4 -4
- package/dist/{register.onboard-u0pMgMv4.js → register.onboard-DGBJtyFX.js} +2 -2
- package/dist/{register.onboard-C-lkIY7d.js → register.onboard-DqGIfQsO.js} +2 -2
- package/dist/{register.setup-BAiTfEey.js → register.setup-BdAQ_7gM.js} +2 -2
- package/dist/{register.setup-D6hviI6L.js → register.setup-Ckb9Hpks.js} +2 -2
- package/dist/{register.subclis-3YVvoBSB.js → register.subclis-Cn5DS2Th.js} +3 -3
- package/dist/{plugin-sdk/replies-CyyZdjYH.js → replies-CoEfccKv.js} +5 -5
- package/dist/{replies-EZyamg1p.js → replies-lKn2Mrkb.js} +5 -5
- package/dist/{reply-directives-B_wfvntf.js → reply-directives-BclP76MA.js} +2 -2
- package/dist/{reply-directives-DMPiBIx3.js → reply-directives-Djre3xI1.js} +2 -2
- package/dist/{reply-prefix-DLf0nmds.js → reply-prefix-BTUna5vE.js} +1 -1
- package/dist/{plugin-sdk/reply-prefix-DL3DiQEo.js → reply-prefix-DiyN1oc7.js} +1 -1
- package/dist/{resolve-route-GBqD8iPk.js → resolve-route-BmA3wi9D.js} +4 -4
- package/dist/{resolve-route-BP1OpZqn.js → resolve-route-ClI5pltd.js} +3 -3
- package/dist/{run-main-BBLzm5df.js → run-main-BYnz7Ou5.js} +3 -3
- package/dist/{runs-EvR8ugp4.js → runs-DffCseDM.js} +9 -9
- package/dist/{runs-Bf_VVVBE.js → runs-efmPtrdw.js} +8 -8
- package/dist/{send-C0kXNcyD.js → send-B3c56zXa.js} +8 -8
- package/dist/{send-B5XVAKWg.js → send-BZrEBJKt.js} +7 -7
- package/dist/{send-CNMPyQyQ.js → send-CLnmNoGF.js} +7 -7
- package/dist/{send-BVfxa93K.js → send-ChgWfhHL.js} +8 -8
- package/dist/{send-12uxFQQR.js → send-Co-6tb50.js} +8 -8
- package/dist/{send-oHqfck_E.js → send-DkHxW8Pg.js} +6 -6
- package/dist/{send-BCEsHNBh.js → send-NLqVlKnJ.js} +6 -6
- package/dist/{send-BOm8dqOB.js → send-TVImOmCV.js} +13 -13
- package/dist/{session-meta-BCY_pfg7.js → session-meta-CE9Oi0tA.js} +1 -1
- package/dist/{session-meta-C_fW_AWG.js → session-meta-DDeeNkQv.js} +1 -1
- package/dist/{sessions-IqyeyMXp.js → sessions-BgTvNzNv.js} +4 -4
- package/dist/{sessions-DODCZ4JK.js → sessions-DkSPJ2k9.js} +5 -5
- package/dist/{skill-commands-DYJDIogS.js → skill-commands-BOG-33Ja.js} +5 -5
- package/dist/{skill-commands-5VtV6o_q.js → skill-commands-K9_D6a_V.js} +7 -7
- package/dist/{skills-jb4bSwT6.js → skills-Ci9t7Gax.js} +4 -4
- package/dist/{skills-B3DYwqF5.js → skills-CrNvxe8D.js} +21 -21
- package/dist/{store-CsI6l-8d.js → store-B6wZFu_5.js} +7 -7
- package/dist/{store-DnvoAjAE.js → store-DJPbhmBq.js} +7 -7
- package/dist/{subsystem-BTMrlJ-R.js → subsystem-B9soUuXQ.js} +7 -7
- package/dist/{subsystem-DoQFckDJ.js → subsystem-cFv2jJm-.js} +71 -71
- package/dist/{tables-CuZTAY1e.js → tables-BaYGY_Hk.js} +1 -1
- package/dist/{tables-BTIafSNy.js → tables-CYp9eWuv.js} +1 -1
- package/dist/{tokens-C8E7C2l5.js → tokens-DwuYAzrE.js} +1 -1
- package/dist/{tokens-qfLiLlNv.js → tokens-KbWGDYPC.js} +1 -1
- package/dist/{tool-loop-detection-CiexABx1.js → tool-loop-detection-B2G2F3vq.js} +1 -1
- package/dist/{tool-loop-detection-4AIUOil2.js → tool-loop-detection-BwJFCGqI.js} +2 -2
- package/dist/{update-cli-D4CRTu-Y.js → update-cli-BFg_CRum.js} +5 -5
- package/dist/{update-cli-q45uqAKK.js → update-cli-BfwXa0Uk.js} +4 -4
- package/dist/{user-run-recording-D-7cPbdf.js → user-run-recording-B_-S5l8q.js} +2 -2
- package/dist/{user-run-recording-4Dhev2ED.js → user-run-recording-DIqKTo0U.js} +2 -2
- package/dist/{workspace-DOy2M7yN.js → workspace-D5PKyvm-.js} +26 -26
- package/dist/{ws-D51UDdBH.js → ws-CSU92Z2r.js} +1 -1
- package/dist/{ws-D916JacH.js → ws-CmKUpGwq.js} +1 -1
- 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/kokoro/package.json +1 -1
- package/extensions/learning-core/package.json +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/ui-surfaces/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/github-copilot-token-DrVydgnY.js +0 -106
- package/dist/paths-BIDPYPVC.js +0 -233
- package/dist/plugin-sdk/agent-turn-execute-Co_96UFp.js +0 -61
- package/dist/plugin-sdk/deliver-5MyFMK8o.js +0 -34
- package/dist/plugin-sdk/manager-B9WMktLu.js +0 -14
- package/dist/plugin-sdk/provider-dispatcher-uLJ5yzx1.js +0 -61
- package/dist/plugin-sdk/send-vp7qbuoy.js +0 -23
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Gi as resolveRetryConfig, Ki as retryAsync, Xn as resolveDiscordAccount, Zn as normalizeDiscordToken, c as loadConfig } from "./config-
|
|
3
|
-
import { mt as resolvePreferredOpenClawTmpDir, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { Gi as resolveRetryConfig, Ki as retryAsync, Xn as resolveDiscordAccount, Zn as normalizeDiscordToken, c as loadConfig } from "./config-D5tWLhng.js";
|
|
3
|
+
import { mt as resolvePreferredOpenClawTmpDir, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-B9soUuXQ.js";
|
|
4
4
|
import { i as requireTargetKind, r as parseMentionPrefixOrAtUserTarget, t as buildMessagingTarget } from "./targets-BpoIaiTK.js";
|
|
5
|
-
import { g as maxBytesForKind, l as extensionForMime } from "./image-ops-
|
|
6
|
-
import { i as chunkMarkdownTextWithMode, l as resolveChunkMode, u as resolveChunkNewlinePacking } from "./chunk-
|
|
7
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
8
|
-
import { a as loadWebMedia, o as loadWebMediaRaw } from "./ir-
|
|
9
|
-
import { t as resolveFetch } from "./fetch-
|
|
5
|
+
import { g as maxBytesForKind, l as extensionForMime } from "./image-ops-C54shfkj.js";
|
|
6
|
+
import { i as chunkMarkdownTextWithMode, l as resolveChunkMode, u as resolveChunkNewlinePacking } from "./chunk-50mU2Avf.js";
|
|
7
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BJqhUgli.js";
|
|
8
|
+
import { a as loadWebMedia, o as loadWebMediaRaw } from "./ir-Btci3Wse.js";
|
|
9
|
+
import { t as resolveFetch } from "./fetch-DG4n5iR6.js";
|
|
10
10
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-HhYz4kBT.js";
|
|
11
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
11
|
+
import { t as convertMarkdownTables } from "./tables-CYp9eWuv.js";
|
|
12
12
|
import crypto from "node:crypto";
|
|
13
13
|
import path from "node:path";
|
|
14
14
|
import { promisify } from "node:util";
|
|
15
|
-
import
|
|
15
|
+
import fsp from "node:fs/promises";
|
|
16
16
|
import { execFile } from "node:child_process";
|
|
17
17
|
import { ButtonStyle, ChannelType, MessageFlags, PermissionFlagsBits, Routes, TextInputStyle } from "discord-api-types/v10";
|
|
18
18
|
import { Button, ChannelSelectMenu, CheckboxGroup, Container, Embed, File, Label, LinkButton, MediaGallery, MentionableSelectMenu, Modal, RadioGroup, RateLimitError, RequestClient, RoleSelectMenu, Row, Section, Separator, StringSelectMenu, TextDisplay, TextInput, Thumbnail, UserSelectMenu, parseCustomId, serializePayload } from "@buape/carbon";
|
|
@@ -1591,7 +1591,7 @@ function getChannelActivity(params) {
|
|
|
1591
1591
|
async function unlinkIfExists(filePath) {
|
|
1592
1592
|
if (!filePath) return;
|
|
1593
1593
|
try {
|
|
1594
|
-
await
|
|
1594
|
+
await fsp.unlink(filePath);
|
|
1595
1595
|
} catch {}
|
|
1596
1596
|
}
|
|
1597
1597
|
|
|
@@ -1708,7 +1708,7 @@ async function generateWaveformFromPcm(filePath) {
|
|
|
1708
1708
|
"8000",
|
|
1709
1709
|
tempPcm
|
|
1710
1710
|
]);
|
|
1711
|
-
const pcmData = await
|
|
1711
|
+
const pcmData = await fsp.readFile(tempPcm);
|
|
1712
1712
|
const samples = new Int16Array(pcmData.buffer, pcmData.byteOffset, pcmData.byteLength / 2);
|
|
1713
1713
|
const step = Math.max(1, Math.floor(samples.length / WAVEFORM_SAMPLES));
|
|
1714
1714
|
const waveform = [];
|
|
@@ -2063,7 +2063,7 @@ async function materializeVoiceMessageInput(mediaUrl) {
|
|
|
2063
2063
|
const ext = extFromName || extFromMime || ".bin";
|
|
2064
2064
|
const tempDir = resolvePreferredOpenClawTmpDir();
|
|
2065
2065
|
const filePath = path.join(tempDir, `voice-src-${crypto.randomUUID()}${ext}`);
|
|
2066
|
-
await
|
|
2066
|
+
await fsp.writeFile(filePath, media.buffer, { mode: 384 });
|
|
2067
2067
|
return { filePath };
|
|
2068
2068
|
}
|
|
2069
2069
|
/**
|
|
@@ -2099,7 +2099,7 @@ async function sendVoiceMessageDiscord(to, audioPath, opts = {}) {
|
|
|
2099
2099
|
oggPath = ogg.path;
|
|
2100
2100
|
oggCleanup = ogg.cleanup;
|
|
2101
2101
|
const metadata = await getVoiceMessageMetadata(oggPath);
|
|
2102
|
-
const audioBuffer = await
|
|
2102
|
+
const audioBuffer = await fsp.readFile(oggPath);
|
|
2103
2103
|
const result = await sendDiscordVoiceMessage(rest, channelId, audioBuffer, metadata, opts.replyTo, request, opts.silent);
|
|
2104
2104
|
recordChannelActivity({
|
|
2105
2105
|
channel: "discord",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { $t as recordSessionMetaFromInbound, xn as resolveStorePath } from "./config-
|
|
2
|
+
import { $t as recordSessionMetaFromInbound, xn as resolveStorePath } from "./config-D5tWLhng.js";
|
|
3
3
|
|
|
4
4
|
//#region src/channels/session-meta.ts
|
|
5
5
|
var session_meta_exports = /* @__PURE__ */ __exportAll({ recordInboundSessionMetaSafe: () => recordInboundSessionMetaSafe });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Kn as resolveStorePath, wn as recordSessionMetaFromInbound } from "./model-selection-
|
|
2
|
+
import { Kn as resolveStorePath, wn as recordSessionMetaFromInbound } from "./model-selection-JA-6f5ss.js";
|
|
3
3
|
|
|
4
4
|
//#region src/channels/session-meta.ts
|
|
5
5
|
var session_meta_exports = /* @__PURE__ */ __exportAll({ recordInboundSessionMetaSafe: () => recordInboundSessionMetaSafe });
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Cn as resolveGroupSessionKey, Dr as isRetryExhausted, Er as computeNextAvailableAtMs, Or as parseRetryPolicy, Ut as requireSessionStorageRuntime, Vt as getConversationReadQuery, Yt as loadSessionStore, _n as resolveSessionFilePath, c as loadConfig, dn as serializeSessionIndexRecordKey, gn as resolveDefaultSessionStorePath, hn as SESSION_RUN_STORE_FILE_NAME, hr as normalizeMessageChannel, in as DEFAULT_IDLE_MINUTES, kr as serializeRetryPolicy, nn as updateSessionStore, pn as resolveUpdatedAfterPageSize, qt as getConfiguredSessionStorageRuntime, wr as CtxProjectionCorruptionError, xn as resolveStorePath } from "./config-
|
|
1
|
+
import { Cn as resolveGroupSessionKey, Dr as isRetryExhausted, Er as computeNextAvailableAtMs, Or as parseRetryPolicy, Ut as requireSessionStorageRuntime, Vt as getConversationReadQuery, Yt as loadSessionStore, _n as resolveSessionFilePath, c as loadConfig, dn as serializeSessionIndexRecordKey, gn as resolveDefaultSessionStorePath, hn as SESSION_RUN_STORE_FILE_NAME, hr as normalizeMessageChannel, in as DEFAULT_IDLE_MINUTES, kr as serializeRetryPolicy, nn as updateSessionStore, pn as resolveUpdatedAfterPageSize, qt as getConfiguredSessionStorageRuntime, wr as CtxProjectionCorruptionError, xn as resolveStorePath } from "./config-D5tWLhng.js";
|
|
2
2
|
import { _ as resolveStateDir } from "./paths-C7aURmuZ.js";
|
|
3
|
-
import { E as truncateUtf16Safe, T as sliceUtf16Safe, _ as normalizeE164, t as createSubsystemLogger } from "./subsystem-
|
|
3
|
+
import { E as truncateUtf16Safe, T as sliceUtf16Safe, _ as normalizeE164, t as createSubsystemLogger } from "./subsystem-B9soUuXQ.js";
|
|
4
4
|
import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
|
|
5
|
-
import { $ as resolveConfiguredCanonicalIdentity, B as RAW_PEER_KEY_PREFIX, G as computeIdentityLinkScopedMatchKey, L as DEFAULT_AGENT_ID, Q as resolveCanonicalIdentity, V as buildAgentMainSessionKey, W as computeIdentityLinkMatchKeys, X as normalizeMainKey, Y as normalizeAgentId, ct as HEARTBEAT_SESSION_KEY_SEGMENT, ht as parseAgentSessionKey, lt as WAKE_GATE_SESSION_KEY_SEGMENT, pt as isCronTriggerSessionKey, st as BACKGROUND_SESSION_KEY_SEGMENT } from "./agent-scope-
|
|
5
|
+
import { $ as resolveConfiguredCanonicalIdentity, B as RAW_PEER_KEY_PREFIX, G as computeIdentityLinkScopedMatchKey, L as DEFAULT_AGENT_ID, Q as resolveCanonicalIdentity, V as buildAgentMainSessionKey, W as computeIdentityLinkMatchKeys, X as normalizeMainKey, Y as normalizeAgentId, ct as HEARTBEAT_SESSION_KEY_SEGMENT, ht as parseAgentSessionKey, lt as WAKE_GATE_SESSION_KEY_SEGMENT, pt as isCronTriggerSessionKey, st as BACKGROUND_SESSION_KEY_SEGMENT } from "./agent-scope-DUbhjnHb.js";
|
|
6
6
|
import { r as normalizeChatType } from "./conversation-label-BkRfLUVO.js";
|
|
7
7
|
import { t as emitDiagnosticEvent } from "./diagnostic-events-DGRcTqIH.js";
|
|
8
8
|
import { a as guardVerificationStoreInputs, i as clientResumeRecordArtifactId, n as VERIFICATION_STORE_ERROR_CODES, r as VerificationStoreError, t as CLIENT_RESUME_RECORD_KIND } from "./verification-store-B5z7H1TR.js";
|
|
9
|
-
import { n as formatErrorChainMessage } from "./errors-
|
|
9
|
+
import { n as formatErrorChainMessage } from "./errors-D8k7j4A4.js";
|
|
10
10
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-DjrvdtGQ.js";
|
|
11
11
|
import { createRequire } from "node:module";
|
|
12
12
|
import crypto, { createHash, randomUUID } from "node:crypto";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { l as resolveStateDir } from "./paths-
|
|
2
|
-
import { ft as sliceUtf16Safe, it as normalizeE164, pt as truncateUtf16Safe, t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { l as resolveStateDir } from "./paths-B_gs59ga.js";
|
|
2
|
+
import { ft as sliceUtf16Safe, it as normalizeE164, pt as truncateUtf16Safe, t as createSubsystemLogger } from "./subsystem-cFv2jJm-.js";
|
|
3
3
|
import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
|
|
4
|
-
import { $ as isCronTriggerSessionKey, A as computeIdentityLinkMatchKeys, C as DEFAULT_AGENT_ID, D as buildAgentMainSessionKey, E as RAW_PEER_KEY_PREFIX, F as normalizeAgentId, I as normalizeMainKey, J as HEARTBEAT_SESSION_KEY_SEGMENT, R as resolveCanonicalIdentity, Y as WAKE_GATE_SESSION_KEY_SEGMENT, j as computeIdentityLinkScopedMatchKey, q as BACKGROUND_SESSION_KEY_SEGMENT, tt as parseAgentSessionKey, z as resolveConfiguredCanonicalIdentity } from "./workspace-
|
|
5
|
-
import { $r as parseRetryPolicy, Bn as SESSION_RUN_STORE_FILE_NAME, Br as normalizeMessageChannel, Dn as updateSessionStore, Hn as resolveSessionFilePath, In as serializeSessionIndexRecordKey, Jn as resolveGroupSessionKey, Kn as resolveStorePath, Qr as isRetryExhausted, Rn as resolveUpdatedAfterPageSize, U as loadConfig, Vn as resolveDefaultSessionStorePath, Yr as CtxProjectionCorruptionError, Zr as computeNextAvailableAtMs, bn as loadSessionStore, ei as serializeRetryPolicy, fn as getConversationReadQuery, kn as DEFAULT_IDLE_MINUTES, mn as requireSessionStorageRuntime, vn as getConfiguredSessionStorageRuntime } from "./model-selection-
|
|
4
|
+
import { $ as isCronTriggerSessionKey, A as computeIdentityLinkMatchKeys, C as DEFAULT_AGENT_ID, D as buildAgentMainSessionKey, E as RAW_PEER_KEY_PREFIX, F as normalizeAgentId, I as normalizeMainKey, J as HEARTBEAT_SESSION_KEY_SEGMENT, R as resolveCanonicalIdentity, Y as WAKE_GATE_SESSION_KEY_SEGMENT, j as computeIdentityLinkScopedMatchKey, q as BACKGROUND_SESSION_KEY_SEGMENT, tt as parseAgentSessionKey, z as resolveConfiguredCanonicalIdentity } from "./workspace-D5PKyvm-.js";
|
|
5
|
+
import { $r as parseRetryPolicy, Bn as SESSION_RUN_STORE_FILE_NAME, Br as normalizeMessageChannel, Dn as updateSessionStore, Hn as resolveSessionFilePath, In as serializeSessionIndexRecordKey, Jn as resolveGroupSessionKey, Kn as resolveStorePath, Qr as isRetryExhausted, Rn as resolveUpdatedAfterPageSize, U as loadConfig, Vn as resolveDefaultSessionStorePath, Yr as CtxProjectionCorruptionError, Zr as computeNextAvailableAtMs, bn as loadSessionStore, ei as serializeRetryPolicy, fn as getConversationReadQuery, kn as DEFAULT_IDLE_MINUTES, mn as requireSessionStorageRuntime, vn as getConfiguredSessionStorageRuntime } from "./model-selection-JA-6f5ss.js";
|
|
6
6
|
import { r as normalizeChatType } from "./conversation-label-Ckfze_uK.js";
|
|
7
7
|
import { t as emitDiagnosticEvent } from "./diagnostic-events-BTSwhIfk.js";
|
|
8
8
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-C2lcxc6-.js";
|
|
9
|
-
import { n as formatErrorChainMessage } from "./errors-
|
|
9
|
+
import { n as formatErrorChainMessage } from "./errors-BWpk4nzX.js";
|
|
10
10
|
import { a as guardVerificationStoreInputs, i as clientResumeRecordArtifactId, n as VERIFICATION_STORE_ERROR_CODES, r as VerificationStoreError, t as CLIENT_RESUME_RECORD_KIND } from "./verification-store-BjtVxiJr.js";
|
|
11
11
|
import { createRequire } from "node:module";
|
|
12
12
|
import path, { join } from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { b as resolveUserPath, k as logVerbose, t as createSubsystemLogger, u as CONFIG_DIR } from "./subsystem-
|
|
2
|
+
import { b as resolveUserPath, k as logVerbose, t as createSubsystemLogger, u as CONFIG_DIR } from "./subsystem-B9soUuXQ.js";
|
|
3
3
|
import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
|
|
4
|
-
import { n as listAgentIds, o as resolveAgentSkillsFilter, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
-
import { s as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-
|
|
6
|
-
import { t as createAsyncLock } from "./json-files-
|
|
7
|
-
import { a as listChatCommands } from "./commands-registry-
|
|
4
|
+
import { n as listAgentIds, o as resolveAgentSkillsFilter, s as resolveAgentWorkspaceDir } from "./agent-scope-DUbhjnHb.js";
|
|
5
|
+
import { s as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-Ci9t7Gax.js";
|
|
6
|
+
import { t as createAsyncLock } from "./json-files-C3L53Qrl.js";
|
|
7
|
+
import { a as listChatCommands } from "./commands-registry-CzTzqbi9.js";
|
|
8
8
|
import { randomUUID } from "node:crypto";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
@@ -1,12 +1,12 @@
|
|
|
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 { Z as CONFIG_DIR, f as logVerbose, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { c as resolveAgentWorkspaceDir, n as listAgentIds, s as resolveAgentSkillsFilter } from "./agent-scope-CXfIHPTl.js";
|
|
3
|
+
import { Z as CONFIG_DIR, f as logVerbose, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-cFv2jJm-.js";
|
|
4
4
|
import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
|
|
5
|
-
import { s as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-
|
|
5
|
+
import { s as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-CrNvxe8D.js";
|
|
6
6
|
import { t as createAsyncLock } from "./json-files-DBtcstGX.js";
|
|
7
|
-
import { a as listChatCommands } from "./commands-registry-
|
|
7
|
+
import { a as listChatCommands } from "./commands-registry-C3LKhQLY.js";
|
|
8
8
|
import path from "node:path";
|
|
9
|
-
import
|
|
9
|
+
import syncFs from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import chokidar from "chokidar";
|
|
@@ -232,13 +232,13 @@ function listSkillCommandsForAgents(params) {
|
|
|
232
232
|
const workspaceFilters = /* @__PURE__ */ new Map();
|
|
233
233
|
for (const agentId of agentIds) {
|
|
234
234
|
const workspaceDir = resolveAgentWorkspaceDir(params.cfg, agentId);
|
|
235
|
-
if (!
|
|
235
|
+
if (!syncFs.existsSync(workspaceDir)) {
|
|
236
236
|
logVerbose(`Skipping agent "${agentId}": workspace does not exist: ${workspaceDir}`);
|
|
237
237
|
continue;
|
|
238
238
|
}
|
|
239
239
|
let canonicalDir;
|
|
240
240
|
try {
|
|
241
|
-
canonicalDir =
|
|
241
|
+
canonicalDir = syncFs.realpathSync(workspaceDir);
|
|
242
242
|
} catch {
|
|
243
243
|
logVerbose(`Skipping agent "${agentId}": cannot resolve workspace: ${workspaceDir}`);
|
|
244
244
|
continue;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { X as loadPluginManifestRegistry, Za as parseBooleanValue, et as normalizePluginsConfig, nt as resolveMemorySlotDecision, ot as readManifestNamespace, tt as resolveEffectiveEnableState, za as normalizeResolvedSecretInputString } from "./config-
|
|
2
|
-
import { X as isPathInsideWithRealpath, at as isPathInside, b as resolveUserPath, lt as isDangerousHostEnvVarName, mt as resolvePreferredOpenClawTmpDir, t as createSubsystemLogger, u as CONFIG_DIR } from "./subsystem-
|
|
1
|
+
import { X as loadPluginManifestRegistry, Za as parseBooleanValue, et as normalizePluginsConfig, nt as resolveMemorySlotDecision, ot as readManifestNamespace, tt as resolveEffectiveEnableState, za as normalizeResolvedSecretInputString } from "./config-D5tWLhng.js";
|
|
2
|
+
import { X as isPathInsideWithRealpath, at as isPathInside, b as resolveUserPath, lt as isDangerousHostEnvVarName, mt as resolvePreferredOpenClawTmpDir, t as createSubsystemLogger, u as CONFIG_DIR } from "./subsystem-B9soUuXQ.js";
|
|
3
3
|
import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
|
|
4
|
-
import { N as normalizeSkillFilter, T as resolveOpenClawPackageRootSync } from "./agent-scope-
|
|
5
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
4
|
+
import { N as normalizeSkillFilter, T as resolveOpenClawPackageRootSync } from "./agent-scope-DUbhjnHb.js";
|
|
5
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-CGcezGX3.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import os from "node:os";
|
|
8
8
|
import path from "node:path";
|
|
@@ -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-
|
|
1
|
+
import { m as normalizeSkillFilter } from "./agent-scope-CXfIHPTl.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-cFv2jJm-.js";
|
|
3
3
|
import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
|
|
4
|
-
import { h as resolveOpenClawPackageRootSync } from "./workspace-
|
|
5
|
-
import { At as resolveMemorySlotDecision, Ot as normalizePluginsConfig, Sa as normalizeResolvedSecretInputString, kt as resolveEffectiveEnableState, wt as loadPluginManifestRegistry } from "./model-selection-
|
|
6
|
-
import { a as resolveOpenClawManifestBlock, c as resolveOpenClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseOpenClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveOpenClawManifestInstall, r as parseFrontmatterBool, s as resolveOpenClawManifestOs, t as getFrontmatterString, u as evaluateRuntimeEligibility } from "./frontmatter-
|
|
7
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
4
|
+
import { h as resolveOpenClawPackageRootSync } from "./workspace-D5PKyvm-.js";
|
|
5
|
+
import { At as resolveMemorySlotDecision, Ot as normalizePluginsConfig, Sa as normalizeResolvedSecretInputString, kt as resolveEffectiveEnableState, wt as loadPluginManifestRegistry } from "./model-selection-JA-6f5ss.js";
|
|
6
|
+
import { a as resolveOpenClawManifestBlock, c as resolveOpenClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseOpenClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveOpenClawManifestInstall, r as parseFrontmatterBool, s as resolveOpenClawManifestOs, t as getFrontmatterString, u as evaluateRuntimeEligibility } from "./frontmatter-BDLxOane.js";
|
|
7
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-CgO2FpVx.js";
|
|
8
8
|
import path from "node:path";
|
|
9
|
-
import
|
|
9
|
+
import syncFs from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
import { URL as URL$1, fileURLToPath } from "node:url";
|
|
12
12
|
import { formatSkillsForPrompt, loadSkillsFromDir } from "@mariozechner/pi-coding-agent";
|
|
@@ -543,13 +543,13 @@ function shortPath(value) {
|
|
|
543
543
|
//#region src/agents/skills/bundled-dir.ts
|
|
544
544
|
function looksLikeSkillsDir(dir) {
|
|
545
545
|
try {
|
|
546
|
-
const entries =
|
|
546
|
+
const entries = syncFs.readdirSync(dir, { withFileTypes: true });
|
|
547
547
|
for (const entry of entries) {
|
|
548
548
|
if (entry.name.startsWith(".")) continue;
|
|
549
549
|
const fullPath = path.join(dir, entry.name);
|
|
550
550
|
if (entry.isFile() && entry.name.endsWith(".md")) return true;
|
|
551
551
|
if (entry.isDirectory()) {
|
|
552
|
-
if (
|
|
552
|
+
if (syncFs.existsSync(path.join(fullPath, "SKILL.md"))) return true;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
} catch {
|
|
@@ -564,7 +564,7 @@ function resolveBundledSkillsDir(opts = {}) {
|
|
|
564
564
|
const execPath = opts.execPath ?? process.execPath;
|
|
565
565
|
const execDir = path.dirname(execPath);
|
|
566
566
|
const sibling = path.join(execDir, "skills");
|
|
567
|
-
if (
|
|
567
|
+
if (syncFs.existsSync(sibling)) return sibling;
|
|
568
568
|
} catch {}
|
|
569
569
|
try {
|
|
570
570
|
const moduleUrl = opts.moduleUrl ?? import.meta.url;
|
|
@@ -627,7 +627,7 @@ function resolvePluginSkillDirs(params) {
|
|
|
627
627
|
const trimmed = raw.trim();
|
|
628
628
|
if (!trimmed) continue;
|
|
629
629
|
const candidate = path.resolve(record.rootDir, trimmed);
|
|
630
|
-
if (!
|
|
630
|
+
if (!syncFs.existsSync(candidate)) {
|
|
631
631
|
log.warn(`plugin skill path not found (${record.id}): ${candidate}`);
|
|
632
632
|
continue;
|
|
633
633
|
}
|
|
@@ -658,7 +658,7 @@ async function serializeByKey(key, task) {
|
|
|
658
658
|
|
|
659
659
|
//#endregion
|
|
660
660
|
//#region src/agents/skills/workspace.ts
|
|
661
|
-
const fsp =
|
|
661
|
+
const fsp = syncFs.promises;
|
|
662
662
|
const skillsLogger = createSubsystemLogger("skills");
|
|
663
663
|
const skillCommandDebugOnceState = resolveProcessScopedMap(Symbol.for("openclaw.agents.skills.workspace.skillCommandDebugOnce"));
|
|
664
664
|
const skillCommandDebugOnce = skillCommandDebugOnceState.get("value") ?? /* @__PURE__ */ new Set();
|
|
@@ -737,7 +737,7 @@ function resolveSkillsLimits(config) {
|
|
|
737
737
|
}
|
|
738
738
|
function listChildDirectories(dir) {
|
|
739
739
|
try {
|
|
740
|
-
const entries =
|
|
740
|
+
const entries = syncFs.readdirSync(dir, { withFileTypes: true });
|
|
741
741
|
const dirs = [];
|
|
742
742
|
for (const entry of entries) {
|
|
743
743
|
if (entry.name.startsWith(".")) continue;
|
|
@@ -748,7 +748,7 @@ function listChildDirectories(dir) {
|
|
|
748
748
|
continue;
|
|
749
749
|
}
|
|
750
750
|
if (entry.isSymbolicLink()) try {
|
|
751
|
-
if (
|
|
751
|
+
if (syncFs.statSync(fullPath).isDirectory()) dirs.push(entry.name);
|
|
752
752
|
} catch {}
|
|
753
753
|
}
|
|
754
754
|
return dirs;
|
|
@@ -759,7 +759,7 @@ function listChildDirectories(dir) {
|
|
|
759
759
|
function resolveNestedSkillsRoot(dir, opts) {
|
|
760
760
|
const nested = path.join(dir, "skills");
|
|
761
761
|
try {
|
|
762
|
-
if (!
|
|
762
|
+
if (!syncFs.existsSync(nested) || !syncFs.statSync(nested).isDirectory()) return { baseDir: dir };
|
|
763
763
|
} catch {
|
|
764
764
|
return { baseDir: dir };
|
|
765
765
|
}
|
|
@@ -768,7 +768,7 @@ function resolveNestedSkillsRoot(dir, opts) {
|
|
|
768
768
|
const toScan = scanLimit === 0 ? [] : nestedDirs.slice(0, Math.min(nestedDirs.length, scanLimit));
|
|
769
769
|
for (const name of toScan) {
|
|
770
770
|
const skillMd = path.join(nested, name, "SKILL.md");
|
|
771
|
-
if (
|
|
771
|
+
if (syncFs.existsSync(skillMd)) return {
|
|
772
772
|
baseDir: nested,
|
|
773
773
|
note: `Detected nested skills root at ${nested}`
|
|
774
774
|
};
|
|
@@ -788,9 +788,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
788
788
|
const loadSkills = (params) => {
|
|
789
789
|
const baseDir = resolveNestedSkillsRoot(params.dir, { maxEntriesToScan: limits.maxCandidatesPerRoot }).baseDir;
|
|
790
790
|
const rootSkillMd = path.join(baseDir, "SKILL.md");
|
|
791
|
-
if (
|
|
791
|
+
if (syncFs.existsSync(rootSkillMd)) {
|
|
792
792
|
try {
|
|
793
|
-
const size =
|
|
793
|
+
const size = syncFs.statSync(rootSkillMd).size;
|
|
794
794
|
if (size > limits.maxSkillFileBytes) {
|
|
795
795
|
skillsLogger.warn("Skipping skills root due to oversized SKILL.md.", {
|
|
796
796
|
dir: baseDir,
|
|
@@ -829,9 +829,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
829
829
|
for (const name of limitedChildren) {
|
|
830
830
|
const skillDir = path.join(baseDir, name);
|
|
831
831
|
const skillMd = path.join(skillDir, "SKILL.md");
|
|
832
|
-
if (!
|
|
832
|
+
if (!syncFs.existsSync(skillMd)) continue;
|
|
833
833
|
try {
|
|
834
|
-
const size =
|
|
834
|
+
const size = syncFs.statSync(skillMd).size;
|
|
835
835
|
if (size > limits.maxSkillFileBytes) {
|
|
836
836
|
skillsLogger.warn("Skipping skill due to oversized SKILL.md.", {
|
|
837
837
|
skill: name,
|
|
@@ -899,7 +899,7 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
899
899
|
return Array.from(merged.values()).map((skill) => {
|
|
900
900
|
let frontmatter = {};
|
|
901
901
|
try {
|
|
902
|
-
frontmatter = parseFrontmatter(
|
|
902
|
+
frontmatter = parseFrontmatter(syncFs.readFileSync(skill.filePath, "utf-8"));
|
|
903
903
|
} catch {}
|
|
904
904
|
return {
|
|
905
905
|
skill,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { y as resolveConfigDir } from "./subsystem-
|
|
2
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
1
|
+
import { y as resolveConfigDir } from "./subsystem-B9soUuXQ.js";
|
|
2
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-C54shfkj.js";
|
|
3
3
|
import crypto from "node:crypto";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
5
|
+
import fsp from "node:fs/promises";
|
|
6
6
|
import { pipeline } from "node:stream/promises";
|
|
7
7
|
|
|
8
8
|
//#region src/media/store.ts
|
|
@@ -14,7 +14,7 @@ const MEDIA_FILE_MODE = 420;
|
|
|
14
14
|
async function setMediaFileMode(filePath) {
|
|
15
15
|
if (process.platform === "win32") return;
|
|
16
16
|
try {
|
|
17
|
-
await
|
|
17
|
+
await fsp.chmod(filePath, MEDIA_FILE_MODE);
|
|
18
18
|
} catch (err) {
|
|
19
19
|
const code = err && typeof err === "object" && "code" in err ? String(err.code) : "";
|
|
20
20
|
if ([
|
|
@@ -41,7 +41,7 @@ function getMediaDir() {
|
|
|
41
41
|
}
|
|
42
42
|
async function ensureMediaDir() {
|
|
43
43
|
const mediaDir = resolveMediaDir();
|
|
44
|
-
await
|
|
44
|
+
await fsp.mkdir(mediaDir, {
|
|
45
45
|
recursive: true,
|
|
46
46
|
mode: 448
|
|
47
47
|
});
|
|
@@ -50,7 +50,7 @@ async function ensureMediaDir() {
|
|
|
50
50
|
async function saveMediaBuffer(buffer, contentType, subdir = "inbound", maxBytes = MAX_BYTES, originalFilename) {
|
|
51
51
|
if (buffer.byteLength > maxBytes) throw new Error(`Media exceeds ${(maxBytes / (1024 * 1024)).toFixed(0)}MB limit`);
|
|
52
52
|
const dir = path.join(resolveMediaDir(), subdir);
|
|
53
|
-
await
|
|
53
|
+
await fsp.mkdir(dir, {
|
|
54
54
|
recursive: true,
|
|
55
55
|
mode: 448
|
|
56
56
|
});
|
|
@@ -70,7 +70,7 @@ async function saveMediaBuffer(buffer, contentType, subdir = "inbound", maxBytes
|
|
|
70
70
|
id = sanitized ? `${sanitized}---${uuid}${ext}` : `${uuid}${ext}`;
|
|
71
71
|
} else id = ext ? `${uuid}${ext}` : uuid;
|
|
72
72
|
const dest = path.join(dir, id);
|
|
73
|
-
await
|
|
73
|
+
await fsp.writeFile(dest, buffer, { mode: MEDIA_FILE_MODE });
|
|
74
74
|
await setMediaFileMode(dest);
|
|
75
75
|
return {
|
|
76
76
|
id,
|
|
@@ -1,7 +1,7 @@
|
|
|
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-cFv2jJm-.js";
|
|
2
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-BWgZn39_.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import fs
|
|
4
|
+
import fs from "node:fs/promises";
|
|
5
5
|
import crypto from "node:crypto";
|
|
6
6
|
import { pipeline } from "node:stream/promises";
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ const MEDIA_FILE_MODE = 420;
|
|
|
14
14
|
async function setMediaFileMode(filePath) {
|
|
15
15
|
if (process.platform === "win32") return;
|
|
16
16
|
try {
|
|
17
|
-
await fs
|
|
17
|
+
await fs.chmod(filePath, MEDIA_FILE_MODE);
|
|
18
18
|
} catch (err) {
|
|
19
19
|
const code = err && typeof err === "object" && "code" in err ? String(err.code) : "";
|
|
20
20
|
if ([
|
|
@@ -41,7 +41,7 @@ function getMediaDir() {
|
|
|
41
41
|
}
|
|
42
42
|
async function ensureMediaDir() {
|
|
43
43
|
const mediaDir = resolveMediaDir();
|
|
44
|
-
await fs
|
|
44
|
+
await fs.mkdir(mediaDir, {
|
|
45
45
|
recursive: true,
|
|
46
46
|
mode: 448
|
|
47
47
|
});
|
|
@@ -50,7 +50,7 @@ async function ensureMediaDir() {
|
|
|
50
50
|
async function saveMediaBuffer(buffer, contentType, subdir = "inbound", maxBytes = MAX_BYTES, originalFilename) {
|
|
51
51
|
if (buffer.byteLength > maxBytes) throw new Error(`Media exceeds ${(maxBytes / (1024 * 1024)).toFixed(0)}MB limit`);
|
|
52
52
|
const dir = path.join(resolveMediaDir(), subdir);
|
|
53
|
-
await fs
|
|
53
|
+
await fs.mkdir(dir, {
|
|
54
54
|
recursive: true,
|
|
55
55
|
mode: 448
|
|
56
56
|
});
|
|
@@ -70,7 +70,7 @@ async function saveMediaBuffer(buffer, contentType, subdir = "inbound", maxBytes
|
|
|
70
70
|
id = sanitized ? `${sanitized}---${uuid}${ext}` : `${uuid}${ext}`;
|
|
71
71
|
} else id = ext ? `${uuid}${ext}` : uuid;
|
|
72
72
|
const dest = path.join(dir, id);
|
|
73
|
-
await fs
|
|
73
|
+
await fs.writeFile(dest, buffer, { mode: MEDIA_FILE_MODE });
|
|
74
74
|
await setMediaFileMode(dest);
|
|
75
75
|
return {
|
|
76
76
|
id,
|
|
@@ -6,7 +6,7 @@ import path from "node:path";
|
|
|
6
6
|
import { promisify } from "node:util";
|
|
7
7
|
import JSON5 from "json5";
|
|
8
8
|
import { Logger } from "tslog";
|
|
9
|
-
import
|
|
9
|
+
import fsp from "node:fs/promises";
|
|
10
10
|
import zlib from "node:zlib";
|
|
11
11
|
import chalk, { Chalk } from "chalk";
|
|
12
12
|
|
|
@@ -671,7 +671,7 @@ async function resolveBoundaryPathLexicalAsync(params) {
|
|
|
671
671
|
const stat = await readLexicalStat({
|
|
672
672
|
...sharedStepParams,
|
|
673
673
|
missingFromIndex: idx,
|
|
674
|
-
read: (cursor) =>
|
|
674
|
+
read: (cursor) => fsp.lstat(cursor)
|
|
675
675
|
});
|
|
676
676
|
if (!stat) break;
|
|
677
677
|
const disposition = handleLexicalStatDisposition({
|
|
@@ -843,7 +843,7 @@ async function resolvePathViaExistingAncestor(targetPath) {
|
|
|
843
843
|
}
|
|
844
844
|
if (!await pathExists$1(cursor)) return normalized;
|
|
845
845
|
try {
|
|
846
|
-
const resolvedAncestor = path.resolve(await
|
|
846
|
+
const resolvedAncestor = path.resolve(await fsp.realpath(cursor));
|
|
847
847
|
if (missingSuffix.length === 0) return resolvedAncestor;
|
|
848
848
|
return path.resolve(resolvedAncestor, ...missingSuffix);
|
|
849
849
|
} catch {
|
|
@@ -873,7 +873,7 @@ async function getPathKind(absolutePath, preserveFinalSymlink) {
|
|
|
873
873
|
try {
|
|
874
874
|
return {
|
|
875
875
|
exists: true,
|
|
876
|
-
kind: toResolvedKind(preserveFinalSymlink ? await
|
|
876
|
+
kind: toResolvedKind(preserveFinalSymlink ? await fsp.lstat(absolutePath) : await fsp.stat(absolutePath))
|
|
877
877
|
};
|
|
878
878
|
} catch (error) {
|
|
879
879
|
if (isNotFoundPathError(error)) return {
|
|
@@ -929,7 +929,7 @@ function isFilesystemRoot(candidate) {
|
|
|
929
929
|
}
|
|
930
930
|
async function pathExists$1(targetPath) {
|
|
931
931
|
try {
|
|
932
|
-
await
|
|
932
|
+
await fsp.lstat(targetPath);
|
|
933
933
|
return true;
|
|
934
934
|
} catch (error) {
|
|
935
935
|
if (isNotFoundPathError(error)) return false;
|
|
@@ -938,10 +938,10 @@ async function pathExists$1(targetPath) {
|
|
|
938
938
|
}
|
|
939
939
|
async function resolveSymlinkHopPath(symlinkPath) {
|
|
940
940
|
try {
|
|
941
|
-
return path.resolve(await
|
|
941
|
+
return path.resolve(await fsp.realpath(symlinkPath));
|
|
942
942
|
} catch (error) {
|
|
943
943
|
if (!isNotFoundPathError(error)) throw error;
|
|
944
|
-
const linkTarget = await
|
|
944
|
+
const linkTarget = await fsp.readlink(symlinkPath);
|
|
945
945
|
return resolvePathViaExistingAncestor(path.resolve(path.dirname(symlinkPath), linkTarget));
|
|
946
946
|
}
|
|
947
947
|
}
|