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
|
@@ -11,21 +11,21 @@ import { c as resolveSessionFilePath, f as resolveSessionTranscriptsDirForAgent,
|
|
|
11
11
|
import { n as resolveConversationLabel, r as normalizeChatType } from "./conversation-label-CrORLc0j.js";
|
|
12
12
|
import { a as createSlackWebClient, c as validateSlackBlocksArray, d as resolveSlackChannelId, i as normalizeSlackOutboundText, l as buildSlackBlocksFallbackText, o as resolveSlackWebClientOptions, s as parseSlackBlocksInput, t as sendMessageSlack, u as parseSlackTarget } from "./send-CO-LvMjK.js";
|
|
13
13
|
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as isDiscordGroupAllowedByPolicy, d as parseDiscordModalCustomId, dt as resolveDiscordAllowListMatch, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordChannelConfigWithFallback, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordOwnerAccess, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as normalizeDiscordAllowList, m as resolveDiscordComponentEntry, mt as resolveDiscordMemberAccessState, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordGuildEntry, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordSlug, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-xgIWI2PD.js";
|
|
14
|
-
import { a as clearDelayedReleaseHold, c as mergeDelayedAgentTurn, d as KeyedAsyncQueue, i as agentTurnIdempotencyKey, l as peekDelayedAgentTurn, n as getAgentTurnRuntime, o as enqueueAgentTurn, r as tryGetAgentTurnRuntime, s as isClaimableAgentTurnWorkId, u as setDelayedReleaseHold } from "./agent-turn-runner-
|
|
14
|
+
import { a as clearDelayedReleaseHold, c as mergeDelayedAgentTurn, d as KeyedAsyncQueue, i as agentTurnIdempotencyKey, l as peekDelayedAgentTurn, n as getAgentTurnRuntime, o as enqueueAgentTurn, r as tryGetAgentTurnRuntime, s as isClaimableAgentTurnWorkId, u as setDelayedReleaseHold } from "./agent-turn-runner-CLScSQoW.js";
|
|
15
15
|
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-CAPNeQwS.js";
|
|
16
16
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-CXrBi7Jq.js";
|
|
17
17
|
import { a as toInternalMessageReceivedContext, c as toPluginMessageReceivedEvent, d as initializeGlobalHookRunner, f as promptBuildResultToContribution, g as resolveProviderRuntimeIdentity, h as resolveProviderPromptCacheKey, i as toInternalMessagePreprocessedContext, l as fireAndForgetHook, m as buildPluginTurnIdentity, n as createMessageSentEmitter, o as toInternalMessageTranscribedContext, p as buildPluginRuntimeIdentity, r as deriveInboundMessageHookContext, s as toPluginMessageContext, t as applyMessageSendingHook, u as getGlobalHookRunner } from "./outbound-message-hooks-BvyiXrg0.js";
|
|
18
|
-
import { A as boundDiagnosticContent, C as logWebhookError, D as refreshRunProgress, E as recordSystemPromptHashComparison, M as resetCommandPollCount, O as startDiagnosticHeartbeat, S as logToolExecutionStarted, T as logWebhookReceived, b as logToolExecutionBlocked, d as logRunCompleted, f as logRunStarted, j as recordCommandPoll, k as stopDiagnosticHeartbeat, l as logModelCallError, o as logMessageProcessed, p as logSessionStateChange, s as logMessageQueued, w as logWebhookProcessed, x as logToolExecutionCompleted } from "./diagnostic-
|
|
18
|
+
import { A as boundDiagnosticContent, C as logWebhookError, D as refreshRunProgress, E as recordSystemPromptHashComparison, M as resetCommandPollCount, O as startDiagnosticHeartbeat, S as logToolExecutionStarted, T as logWebhookReceived, b as logToolExecutionBlocked, d as logRunCompleted, f as logRunStarted, j as recordCommandPoll, k as stopDiagnosticHeartbeat, l as logModelCallError, o as logMessageProcessed, p as logSessionStateChange, s as logMessageQueued, w as logWebhookProcessed, x as logToolExecutionCompleted } from "./diagnostic-Ba0VUozS.js";
|
|
19
19
|
import { r as getDiagnosticSessionState, s as redactChannelCorrelation } from "./diagnostic-session-state-evjvR-jF.js";
|
|
20
20
|
import { t as redactIdentifier } from "./redact-identifier-CUq5OWH1.js";
|
|
21
21
|
import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-DbgJD0JZ.js";
|
|
22
22
|
import { t as CommandLane } from "./lanes-DBBnME5O.js";
|
|
23
|
-
import { a as getCommandLaneSnapshots, i as enqueueCommandInLane, n as clearCommandLane, o as getQueueSize, t as CommandLaneAbortedError } from "./command-queue-
|
|
24
|
-
import { $ as resolveTelegramStreamMode, A as resolveTelegramFetch, B as buildTelegramParentPeer, C as getTelegramFleetSupervisor, D as recordWebhook, E as recordUpdate, F as buildGroupLabel, G as extractTelegramLocation, H as buildTypingThreadParams, I as buildSenderLabel, J as resolveTelegramDirectPeerId, K as hasBotMention, L as buildSenderName, M as withTelegramApiErrorLogging, N as loadCronStore, O as registerAccount, P as resolveCronStorePath, Q as resolveTelegramReplyId, R as buildTelegramGroupFrom, S as fingerprintTelegramToken, T as recordState, U as describeReplyTarget, V as buildTelegramThreadParams, W as expandTextLinks, X as resolveTelegramGroupAllowFromContext, Y as resolveTelegramForumThreadId, Z as resolveTelegramMediaPlaceholder, _ as isTelegramEditMayHaveLandedError, _t as getPairingAdapter, a as reactMessageTelegram, at as firstDefined$1, b as renderTelegramHtmlText, bt as parseTelegramTarget, c as sendStickerTelegram, ct as resolveGroupAllowFromSources, d as wasSentByBot, dt as addChannelAllowFromStoreEntry, et as resolveTelegramThreadSpec, f as extractTelegramErrorText, ft as readChannelAllowFromStore, g as isTelegramClientRejection, gt as writeJsonFileAtomically, h as isSafeToRetrySendError, ht as readJsonFileWithFallback, i as editMessageTelegram, it as resolveSenderAllowMatch$1, j as splitTelegramCaption, k as releaseAccountOwner, lt as formatLocationText, m as isRecoverableTelegramNetworkError, mt as upsertChannelPairingRequest, n as createForumTopicTelegram, nt as normalizeAllowFrom$2, o as sendMessageTelegram, ot as isSenderIdAllowed, p as isDefiniteTelegramRequestNonDeliveryError, pt as removeChannelAllowFromStoreEntry, q as normalizeForwardedContext, r as deleteMessageTelegram, rt as normalizeDmAllowFromWithStore$1, s as sendPollTelegram, st as mergeDmAllowFromSources, t as buildInlineKeyboard, tt as isSenderAllowed$1, u as resolveTelegramVoiceSend, ut as toLocationContext, v as markdownToTelegramChunks, vt as listPairingChannels, w as recordApiRequest, x as wrapFileReferencesInHtml, xt as resolveTelegramTargetChatType, y as markdownToTelegramHtml, yt as isVoiceCompatibleAudio, z as buildTelegramGroupPeerId } from "./send-
|
|
23
|
+
import { a as getCommandLaneSnapshots, i as enqueueCommandInLane, n as clearCommandLane, o as getQueueSize, t as CommandLaneAbortedError } from "./command-queue-DKPv7dYN.js";
|
|
24
|
+
import { $ as resolveTelegramStreamMode, A as resolveTelegramFetch, B as buildTelegramParentPeer, C as getTelegramFleetSupervisor, D as recordWebhook, E as recordUpdate, F as buildGroupLabel, G as extractTelegramLocation, H as buildTypingThreadParams, I as buildSenderLabel, J as resolveTelegramDirectPeerId, K as hasBotMention, L as buildSenderName, M as withTelegramApiErrorLogging, N as loadCronStore, O as registerAccount, P as resolveCronStorePath, Q as resolveTelegramReplyId, R as buildTelegramGroupFrom, S as fingerprintTelegramToken, T as recordState, U as describeReplyTarget, V as buildTelegramThreadParams, W as expandTextLinks, X as resolveTelegramGroupAllowFromContext, Y as resolveTelegramForumThreadId, Z as resolveTelegramMediaPlaceholder, _ as isTelegramEditMayHaveLandedError, _t as getPairingAdapter, a as reactMessageTelegram, at as firstDefined$1, b as renderTelegramHtmlText, bt as parseTelegramTarget, c as sendStickerTelegram, ct as resolveGroupAllowFromSources, d as wasSentByBot, dt as addChannelAllowFromStoreEntry, et as resolveTelegramThreadSpec, f as extractTelegramErrorText, ft as readChannelAllowFromStore, g as isTelegramClientRejection, gt as writeJsonFileAtomically, h as isSafeToRetrySendError, ht as readJsonFileWithFallback, i as editMessageTelegram, it as resolveSenderAllowMatch$1, j as splitTelegramCaption, k as releaseAccountOwner, lt as formatLocationText, m as isRecoverableTelegramNetworkError, mt as upsertChannelPairingRequest, n as createForumTopicTelegram, nt as normalizeAllowFrom$2, o as sendMessageTelegram, ot as isSenderIdAllowed, p as isDefiniteTelegramRequestNonDeliveryError, pt as removeChannelAllowFromStoreEntry, q as normalizeForwardedContext, r as deleteMessageTelegram, rt as normalizeDmAllowFromWithStore$1, s as sendPollTelegram, st as mergeDmAllowFromSources, t as buildInlineKeyboard, tt as isSenderAllowed$1, u as resolveTelegramVoiceSend, ut as toLocationContext, v as markdownToTelegramChunks, vt as listPairingChannels, w as recordApiRequest, x as wrapFileReferencesInHtml, xt as resolveTelegramTargetChatType, y as markdownToTelegramHtml, yt as isVoiceCompatibleAudio, z as buildTelegramGroupPeerId } from "./send-BWsYS2bT.js";
|
|
25
25
|
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-B06vFlU8.js";
|
|
26
26
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-CcbW2IAR.js";
|
|
27
|
-
import { $ as resolveSandboxConfigForAgent, A as isFailoverAssistantError, B as isTimeoutErrorMessage, C as formatRawAssistantErrorForUi, D as isCloudCodeAssistFormatError, E as isBillingAssistantError, F as isTransientHttpError, G as registerBrowserRoutes, H as resolveSandboxContext, I as parseImageDimensionError, J as getBridgeAuthForPort, K as resolveBrowserConfig, L as parseImageSizeError, M as isLikelyContextOverflowError, N as isRateLimitAssistantError, O as isCompactionFailureError, P as isRawApiErrorPayload, Q as trimToUndefined$1, R as sanitizeUserFacingText, S as formatBillingErrorMessage, T as isAuthAssistantError, U as resolveSandboxRuntimeStatus, V as ensureSandboxWorkspaceForSession, W as createBrowserRouteContext, X as resolveBrowserControlAuth, Y as ensureBrowserControlAuth, Z as resolveGatewayCredentialsFromConfig, _ as downgradeOpenAIReasoningBlocks, a as isMessagingToolDuplicateNormalized, at as stripPluginOnlyAllowlist, b as classifyFailoverReason, c as sanitizeImageBlocks, ct as resolveToolProfilePolicy, d as canonicalizeBase64, dt as buildBootstrapContextFiles, et as applyOwnerOnlyToolPolicy, f as estimateBase64DecodedBytes, ft as ensureSessionHeader, g as downgradeOpenAIFunctionCallReasoningPairs, h as sanitizeToolCallIdsForCloudCodeAssist, ht as sanitizeGoogleTurnOrdering, it as mergeAlsoAllowPolicy, j as isFailoverErrorMessage, k as isContextOverflowError, l as sanitizeToolResultImages, lt as compileGlobPatterns, m as extractToolResultId, mt as resolveBootstrapTotalMaxChars, n as validateGeminiTurns, nt as collectExplicitAllowlist, o as normalizeTextForComparison, ot as expandToolGroups, p as extractToolCallsFromAssistant, pt as resolveBootstrapMaxChars, q as resolveProfile, r as pickFallbackThinkingLevel, rt as expandPolicyWithPluginGroups, s as sanitizeSessionMessagesImages, st as normalizeToolName, t as validateAnthropicTurns, tt as buildPluginToolGroups, u as resolveImageSanitizationLimits, ut as matchesAnyGlobPattern, v as isGoogleModelApi, w as getApiErrorPayloadFingerprint, x as formatAssistantErrorText, y as BILLING_ERROR_USER_MESSAGE, z as isAuthPermanentErrorMessage } from "./pi-embedded-helpers-
|
|
28
|
-
import { A as rawDataToString, B as isSecureWebSocketUrl, C as ensureChromeExtensionRelayServer, N as DEFAULT_UPLOAD_DIR, P as resolveExistingPathsWithinRoot, V as resolveClientIp, W as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as resolveLsofCommandSync, z as isLoopbackHost } from "./chrome-
|
|
27
|
+
import { $ as resolveSandboxConfigForAgent, A as isFailoverAssistantError, B as isTimeoutErrorMessage, C as formatRawAssistantErrorForUi, D as isCloudCodeAssistFormatError, E as isBillingAssistantError, F as isTransientHttpError, G as registerBrowserRoutes, H as resolveSandboxContext, I as parseImageDimensionError, J as getBridgeAuthForPort, K as resolveBrowserConfig, L as parseImageSizeError, M as isLikelyContextOverflowError, N as isRateLimitAssistantError, O as isCompactionFailureError, P as isRawApiErrorPayload, Q as trimToUndefined$1, R as sanitizeUserFacingText, S as formatBillingErrorMessage, T as isAuthAssistantError, U as resolveSandboxRuntimeStatus, V as ensureSandboxWorkspaceForSession, W as createBrowserRouteContext, X as resolveBrowserControlAuth, Y as ensureBrowserControlAuth, Z as resolveGatewayCredentialsFromConfig, _ as downgradeOpenAIReasoningBlocks, a as isMessagingToolDuplicateNormalized, at as stripPluginOnlyAllowlist, b as classifyFailoverReason, c as sanitizeImageBlocks, ct as resolveToolProfilePolicy, d as canonicalizeBase64, dt as buildBootstrapContextFiles, et as applyOwnerOnlyToolPolicy, f as estimateBase64DecodedBytes, ft as ensureSessionHeader, g as downgradeOpenAIFunctionCallReasoningPairs, h as sanitizeToolCallIdsForCloudCodeAssist, ht as sanitizeGoogleTurnOrdering, it as mergeAlsoAllowPolicy, j as isFailoverErrorMessage, k as isContextOverflowError, l as sanitizeToolResultImages, lt as compileGlobPatterns, m as extractToolResultId, mt as resolveBootstrapTotalMaxChars, n as validateGeminiTurns, nt as collectExplicitAllowlist, o as normalizeTextForComparison, ot as expandToolGroups, p as extractToolCallsFromAssistant, pt as resolveBootstrapMaxChars, q as resolveProfile, r as pickFallbackThinkingLevel, rt as expandPolicyWithPluginGroups, s as sanitizeSessionMessagesImages, st as normalizeToolName, t as validateAnthropicTurns, tt as buildPluginToolGroups, u as resolveImageSanitizationLimits, ut as matchesAnyGlobPattern, v as isGoogleModelApi, w as getApiErrorPayloadFingerprint, x as formatAssistantErrorText, y as BILLING_ERROR_USER_MESSAGE, z as isAuthPermanentErrorMessage } from "./pi-embedded-helpers-4qLKF7Ti.js";
|
|
28
|
+
import { A as rawDataToString, B as isSecureWebSocketUrl, C as ensureChromeExtensionRelayServer, N as DEFAULT_UPLOAD_DIR, P as resolveExistingPathsWithinRoot, V as resolveClientIp, W as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as resolveLsofCommandSync, z as isLoopbackHost } from "./chrome-CTyhKrVS.js";
|
|
29
29
|
import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-Ka1jnMtm.js";
|
|
30
30
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-C6VPEcOr.js";
|
|
31
31
|
import { _ as readErrorName, a as isBlockedHostnameOrIp, f as formatErrorChainMessage, h as hasErrnoCode, l as normalizeHostname, m as formatUncaughtError, n as SsrFBlockedError, p as formatErrorMessage, u as collectErrorGraphCandidates } from "./proxy-env-CN44KnoG.js";
|
|
@@ -33,21 +33,21 @@ import { a as readFileWithinRoot, c as writeFileWithinRoot, i as openFileWithinR
|
|
|
33
33
|
import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-D0mxlHp1.js";
|
|
34
34
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-BBUduvL1.js";
|
|
35
35
|
import { a as normalizeReasoningLevel, c as normalizeVerboseLevel, i as normalizeElevatedLevel, l as resolveResponseUsageMode, n as formatXHighModelHint, o as normalizeThinkLevel, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking } from "./thinking-BOHpxvdU.js";
|
|
36
|
-
import { a as decodeDataUrl, c as ensureOpenClawModelsJson, i as coerceImageModelConfig, o as resolveProviderVisionModelFromConfig, r as coerceImageAssistantText, s as minimaxUnderstandImage } from "./provider-image-
|
|
37
|
-
import { C as loadModelCatalog, S as findModelInCatalog, _ as stripCarriedTranscriptFromBody, a as resolveAutoImageModel, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, i as normalizeMediaAttachments, l as resolveConcurrency, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$2, v as buildRandomTempFilePath, w as modelSupportsVision, x as resolveAttachmentKind, y as registerUnhandledRejectionHandler } from "./audio-transcription-runner-
|
|
36
|
+
import { a as decodeDataUrl, c as ensureOpenClawModelsJson, i as coerceImageModelConfig, o as resolveProviderVisionModelFromConfig, r as coerceImageAssistantText, s as minimaxUnderstandImage } from "./provider-image-CtDp01Fm.js";
|
|
37
|
+
import { C as loadModelCatalog, S as findModelInCatalog, _ as stripCarriedTranscriptFromBody, a as resolveAutoImageModel, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, i as normalizeMediaAttachments, l as resolveConcurrency, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$2, v as buildRandomTempFilePath, w as modelSupportsVision, x as resolveAttachmentKind, y as registerUnhandledRejectionHandler } from "./audio-transcription-runner-CdwSTFuT.js";
|
|
38
38
|
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-BIqtrGsq.js";
|
|
39
39
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-ijQXfnJ1.js";
|
|
40
40
|
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BG1XdICd.js";
|
|
41
41
|
import { r as makeProxyFetch } from "./proxy-fetch-BEd2aTrF.js";
|
|
42
|
-
import { _ as extractTextFromChatContent, a as formatReasoningMessage, d as stripThinkingTagsFromText, f as formatToolSummary, g as isInsideCode, h as findCodeRegions, l as stripDowngradedToolCallText, m as stripReasoningTagsFromText, n as extractAssistantThinking, o as inferToolMetaFromArgs, p as resolveToolDisplay, s as isAssistantMessage, t as extractAssistantText$1, u as stripMinimaxToolCallXml } from "./pi-embedded-utils-
|
|
42
|
+
import { _ as extractTextFromChatContent, a as formatReasoningMessage, d as stripThinkingTagsFromText, f as formatToolSummary, g as isInsideCode, h as findCodeRegions, l as stripDowngradedToolCallText, m as stripReasoningTagsFromText, n as extractAssistantThinking, o as inferToolMetaFromArgs, p as resolveToolDisplay, s as isAssistantMessage, t as extractAssistantText$1, u as stripMinimaxToolCallXml } from "./pi-embedded-utils-CHJI4-m4.js";
|
|
43
43
|
import { n as isSafeFenceBreak, r as parseFenceSpans, t as findFenceSpanAt } from "./fences-Cd5KY13m.js";
|
|
44
44
|
import { a as chunkText, c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, l as resolveChunkMode, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as resolveChunkNewlinePacking } from "./chunk-C_i5apVn.js";
|
|
45
45
|
import { n as resolveMarkdownTableMode } from "./markdown-tables-BWtdABdw.js";
|
|
46
46
|
import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-zoBt_gNc.js";
|
|
47
47
|
import { _ as isNativeCommandsExplicitlyDisabled, a as listChatCommands, b as resolveNativeSkillsEnabled, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, f as resolveCommandArgChoices, g as isCommandFlagEnabled, h as shouldHandleTextCommands, i as isCommandEnabled, l as maybeResolveTextAlias, m as serializeCommandArgs, o as listChatCommandsForConfig, p as resolveCommandArgMenu, r as findCommandByNativeName, s as listNativeCommandSpecs, t as buildCommandTextFromArgs, u as normalizeCommandBody, v as isRestartEnabled, y as resolveNativeCommandsEnabled } from "./commands-registry-mmL-K_Ct.js";
|
|
48
48
|
import { c as getSkillsSnapshotVersion, i as resolveSkillCommandInvocation, l as pruneExpiredPending, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as resolvePairingPaths } from "./skill-commands-BR_cIzIt.js";
|
|
49
|
-
import { _ as emitAgentEvent, a as queueEmbeddedPiMessage, c as waitForEmbeddedPiRunEnd, d as handleMessageUpdate, f as emitEmbeddedAgentEvent, g as clearAgentRunContext, h as endModelCall, i as isEmbeddedPiRunStreaming, l as handleMessageEnd, m as createInlineCodeState, n as clearActiveEmbeddedRun, p as buildCodeSpanIndex, r as isEmbeddedPiRunActive, s as setActiveEmbeddedRun, t as abortEmbeddedPiRun, u as handleMessageStart, v as onAgentEvent, y as registerAgentRunContext } from "./runs-
|
|
50
|
-
import { _ as resolveReplyToMode, a as normalizeOutboundPayloadsForJson, b as normalizeTargetForProvider, c as loadChannelOutboundAdapter, d as filterMessagingToolDuplicates, f as filterMessagingToolMediaDuplicates, g as createReplyToModeFilterForChannel, h as shouldSuppressReasoningPayload, i as normalizeOutboundPayloads, l as applyReplyTagsToPayload, m as shouldSuppressMessagingToolReplies, o as normalizeReplyPayloadsForDelivery, p as isRenderablePayload, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyThreading, v as buildTargetResolverSignature, y as normalizeChannelTargetInput } from "./deliver-
|
|
49
|
+
import { _ as emitAgentEvent, a as queueEmbeddedPiMessage, c as waitForEmbeddedPiRunEnd, d as handleMessageUpdate, f as emitEmbeddedAgentEvent, g as clearAgentRunContext, h as endModelCall, i as isEmbeddedPiRunStreaming, l as handleMessageEnd, m as createInlineCodeState, n as clearActiveEmbeddedRun, p as buildCodeSpanIndex, r as isEmbeddedPiRunActive, s as setActiveEmbeddedRun, t as abortEmbeddedPiRun, u as handleMessageStart, v as onAgentEvent, y as registerAgentRunContext } from "./runs-BKXuFolN.js";
|
|
50
|
+
import { _ as resolveReplyToMode, a as normalizeOutboundPayloadsForJson, b as normalizeTargetForProvider, c as loadChannelOutboundAdapter, d as filterMessagingToolDuplicates, f as filterMessagingToolMediaDuplicates, g as createReplyToModeFilterForChannel, h as shouldSuppressReasoningPayload, i as normalizeOutboundPayloads, l as applyReplyTagsToPayload, m as shouldSuppressMessagingToolReplies, o as normalizeReplyPayloadsForDelivery, p as isRenderablePayload, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyThreading, v as buildTargetResolverSignature, y as normalizeChannelTargetInput } from "./deliver-Bs58Ncxn.js";
|
|
51
51
|
import { a as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-jw4QZNEm.js";
|
|
52
52
|
import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-DCCU90ZN.js";
|
|
53
53
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-DLq-HKg5.js";
|
|
@@ -85,7 +85,7 @@ import { complete, completeSimple, createAssistantMessageEventStream, streamSimp
|
|
|
85
85
|
import { EdgeTTS } from "node-edge-tts";
|
|
86
86
|
import { createServer } from "node:http";
|
|
87
87
|
import { ProxyAgent, fetch as fetch$1 } from "undici";
|
|
88
|
-
import WebSocket
|
|
88
|
+
import WebSocket, { WebSocket as WebSocket$1 } from "ws";
|
|
89
89
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
90
90
|
import { createJiti } from "jiti";
|
|
91
91
|
import AjvPkg from "ajv";
|
|
@@ -10616,7 +10616,7 @@ var GatewayClient = class {
|
|
|
10616
10616
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
10617
10617
|
});
|
|
10618
10618
|
}
|
|
10619
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
10619
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
10620
10620
|
this.ws.on("open", () => {
|
|
10621
10621
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
10622
10622
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -10812,7 +10812,7 @@ var GatewayClient = class {
|
|
|
10812
10812
|
const connectChallengeTimeoutMs = typeof rawConnectDelayMs === "number" && Number.isFinite(rawConnectDelayMs) ? Math.max(250, Math.min(1e4, rawConnectDelayMs)) : 2e3;
|
|
10813
10813
|
if (this.connectTimer) clearTimeout(this.connectTimer);
|
|
10814
10814
|
this.connectTimer = setTimeout(() => {
|
|
10815
|
-
if (this.connectSent || this.ws?.readyState !== WebSocket.OPEN) return;
|
|
10815
|
+
if (this.connectSent || this.ws?.readyState !== WebSocket$1.OPEN) return;
|
|
10816
10816
|
this.opts.onConnectError?.(/* @__PURE__ */ new Error("gateway connect challenge timeout"));
|
|
10817
10817
|
this.ws?.close(1008, "connect challenge timeout");
|
|
10818
10818
|
}, connectChallengeTimeoutMs);
|
|
@@ -10854,7 +10854,7 @@ var GatewayClient = class {
|
|
|
10854
10854
|
return null;
|
|
10855
10855
|
}
|
|
10856
10856
|
async request(method, params, opts) {
|
|
10857
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
10857
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
|
|
10858
10858
|
const id = randomUUID();
|
|
10859
10859
|
const frame = {
|
|
10860
10860
|
type: "req",
|
|
@@ -12272,7 +12272,7 @@ async function routeReply(params) {
|
|
|
12272
12272
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
12273
12273
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
12274
12274
|
try {
|
|
12275
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
12275
|
+
const { deliverOutboundPayloads } = await import("./deliver-Bs58Ncxn.js").then((n) => n.n);
|
|
12276
12276
|
const outboundSession = buildOutboundSessionContext({
|
|
12277
12277
|
cfg,
|
|
12278
12278
|
agentId: resolvedAgentId,
|
|
@@ -13725,7 +13725,7 @@ async function sendTranscriptEcho(params) {
|
|
|
13725
13725
|
}
|
|
13726
13726
|
const text = formatEchoTranscript(transcript, params.format ?? DEFAULT_ECHO_TRANSCRIPT_FORMAT);
|
|
13727
13727
|
try {
|
|
13728
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
13728
|
+
const { deliverOutboundPayloads } = await import("./deliver-Bs58Ncxn.js").then((n) => n.n);
|
|
13729
13729
|
await deliverOutboundPayloads({
|
|
13730
13730
|
cfg,
|
|
13731
13731
|
channel: normalizedChannel,
|
|
@@ -53912,7 +53912,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
53912
53912
|
return;
|
|
53913
53913
|
}
|
|
53914
53914
|
try {
|
|
53915
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
53915
|
+
const { deliverOutboundPayloads } = await import("./deliver-Bs58Ncxn.js").then((n) => n.n);
|
|
53916
53916
|
const outboundSession = buildOutboundSessionContext({
|
|
53917
53917
|
cfg: params.cfg,
|
|
53918
53918
|
sessionKey: params.sessionKey
|
|
@@ -63068,7 +63068,7 @@ async function describeStickerImage(params) {
|
|
|
63068
63068
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
63069
63069
|
try {
|
|
63070
63070
|
const buffer = await fs.readFile(imagePath);
|
|
63071
|
-
const { describeImageWithModel } = await import("./provider-image-
|
|
63071
|
+
const { describeImageWithModel } = await import("./provider-image-CtDp01Fm.js").then((n) => n.n);
|
|
63072
63072
|
return (await describeImageWithModel({
|
|
63073
63073
|
buffer,
|
|
63074
63074
|
fileName: "sticker.webp",
|
|
@@ -64781,7 +64781,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
64781
64781
|
let transcript;
|
|
64782
64782
|
let carry;
|
|
64783
64783
|
if (needsPreflightTranscription) try {
|
|
64784
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
64784
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-D9KtmJay.js");
|
|
64785
64785
|
const uploadable = audioAttachments.filter((att) => typeof att.url === "string" && att.url.length > 0);
|
|
64786
64786
|
if (uploadable.length > 0) {
|
|
64787
64787
|
const preflight = await transcribeFirstAudio({
|
|
@@ -71931,7 +71931,7 @@ function createDefaultDeps() {
|
|
|
71931
71931
|
};
|
|
71932
71932
|
},
|
|
71933
71933
|
sendMessageTelegram: async (...args) => {
|
|
71934
|
-
const { sendMessageTelegram } = await import("./send-
|
|
71934
|
+
const { sendMessageTelegram } = await import("./send-BWsYS2bT.js").then((n) => n.l);
|
|
71935
71935
|
return await sendMessageTelegram(...args);
|
|
71936
71936
|
},
|
|
71937
71937
|
sendMessageDiscord: async (...args) => {
|
|
@@ -75434,7 +75434,7 @@ function createDiscordGatewayPlugin(params) {
|
|
|
75434
75434
|
return super.registerClient(client);
|
|
75435
75435
|
}
|
|
75436
75436
|
createWebSocket(url) {
|
|
75437
|
-
return new WebSocket
|
|
75437
|
+
return new WebSocket(url, { agent: wsAgent });
|
|
75438
75438
|
}
|
|
75439
75439
|
}
|
|
75440
75440
|
return new ProxyGatewayPlugin();
|
|
@@ -87740,7 +87740,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
87740
87740
|
let audioPreflightCarry;
|
|
87741
87741
|
const audioConfigEnabled = cfg.tools?.media?.audio && cfg.tools.media.audio.enabled !== false;
|
|
87742
87742
|
if (hasAudio && !hasUserText && !disableAudioPreflight && (isGroup && requireMention && mentionRegexes.length > 0 || audioConfigEnabled === true)) try {
|
|
87743
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
87743
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-D9KtmJay.js");
|
|
87744
87744
|
const preflight = await transcribeFirstAudio({
|
|
87745
87745
|
ctx: {
|
|
87746
87746
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -94760,7 +94760,7 @@ async function runBeforeToolCallHook(args) {
|
|
|
94760
94760
|
const params = args.params;
|
|
94761
94761
|
if (args.ctx?.sessionKey) {
|
|
94762
94762
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-evjvR-jF.js").then((n) => n.n);
|
|
94763
|
-
const { logToolLoopAction } = await import("./diagnostic-
|
|
94763
|
+
const { logToolLoopAction } = await import("./diagnostic-Ba0VUozS.js").then((n) => n.n);
|
|
94764
94764
|
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-D-tIO335.js");
|
|
94765
94765
|
const sessionState = getDiagnosticSessionState({
|
|
94766
94766
|
sessionKey: args.ctx.sessionKey,
|
|
@@ -100392,7 +100392,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
100392
100392
|
* Throws if the connection is not open.
|
|
100393
100393
|
*/
|
|
100394
100394
|
send(event) {
|
|
100395
|
-
if (!this.ws || this.ws.readyState !== WebSocket
|
|
100395
|
+
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
|
|
100396
100396
|
this.ws.send(JSON.stringify(event));
|
|
100397
100397
|
}
|
|
100398
100398
|
/**
|
|
@@ -100409,7 +100409,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
100409
100409
|
* Returns true if the WebSocket is currently open and ready to send.
|
|
100410
100410
|
*/
|
|
100411
100411
|
isConnected() {
|
|
100412
|
-
return this.ws !== null && this.ws.readyState === WebSocket
|
|
100412
|
+
return this.ws !== null && this.ws.readyState === WebSocket.OPEN;
|
|
100413
100413
|
}
|
|
100414
100414
|
/**
|
|
100415
100415
|
* Permanently closes the WebSocket connection and disables auto-reconnect.
|
|
@@ -100419,7 +100419,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
100419
100419
|
this._cancelRetryTimer();
|
|
100420
100420
|
if (this.ws) {
|
|
100421
100421
|
this.ws.removeAllListeners();
|
|
100422
|
-
if (this.ws.readyState === WebSocket
|
|
100422
|
+
if (this.ws.readyState === WebSocket.OPEN || this.ws.readyState === WebSocket.CONNECTING) this.ws.close(1e3, "Client closed");
|
|
100423
100423
|
this.ws = null;
|
|
100424
100424
|
}
|
|
100425
100425
|
}
|
|
@@ -100429,7 +100429,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
100429
100429
|
reject(/* @__PURE__ */ new Error("OpenAIWebSocketManager: apiKey is required before connecting."));
|
|
100430
100430
|
return;
|
|
100431
100431
|
}
|
|
100432
|
-
const socket = new WebSocket
|
|
100432
|
+
const socket = new WebSocket(this.wsUrl, { headers: {
|
|
100433
100433
|
Authorization: `Bearer ${this.apiKey}`,
|
|
100434
100434
|
"OpenAI-Beta": "responses-websocket=v1"
|
|
100435
100435
|
} });
|
|
@@ -4,7 +4,7 @@ import { P as openBoundaryFile, o as defaultRuntime, pt as truncateUtf16Safe, st
|
|
|
4
4
|
import { H as resolveSecretRefValues, Hr as canonicalizeMainSessionAlias, J as loadConfig, Ja as parseBooleanValue, Jn as writeJsonAtomic, Ur as resolveAgentMainSessionKey, Ut as CHANNEL_IDS, Wi as acquireSessionWriteLock, Z as writeConfigFile, ft as getBlockedNetworkModeReason, gi as formatCliCommand, lo as resolveSecretInputRef, q as createConfigIO, ut as secretRefKey } from "./model-selection-Cd0R62vH.js";
|
|
5
5
|
import { t as generateSecureToken } from "./secure-random-CXrBi7Jq.js";
|
|
6
6
|
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-B06vFlU8.js";
|
|
7
|
-
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, I as resolveWritablePathWithinRoot, J as DEFAULT_OPENCLAW_BROWSER_ENABLED, K as DEFAULT_BROWSER_EVALUATE_ENABLED, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, W as DEFAULT_AI_SNAPSHOT_MAX_CHARS, Y as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveOpenClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchOpenClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopOpenClawChrome, p as snapshotAria, q as DEFAULT_OPENCLAW_BROWSER_COLOR, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-
|
|
7
|
+
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, I as resolveWritablePathWithinRoot, J as DEFAULT_OPENCLAW_BROWSER_ENABLED, K as DEFAULT_BROWSER_EVALUATE_ENABLED, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, W as DEFAULT_AI_SNAPSHOT_MAX_CHARS, Y as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveOpenClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchOpenClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopOpenClawChrome, p as snapshotAria, q as DEFAULT_OPENCLAW_BROWSER_COLOR, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-CTyhKrVS.js";
|
|
8
8
|
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-Ka1jnMtm.js";
|
|
9
9
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-C6VPEcOr.js";
|
|
10
10
|
import { d as extractErrorCode, n as SsrFBlockedError, p as formatErrorMessage } from "./proxy-env-CN44KnoG.js";
|
|
@@ -1279,7 +1279,7 @@ function isModuleNotFoundError(err) {
|
|
|
1279
1279
|
}
|
|
1280
1280
|
async function loadPwAiModule(mode) {
|
|
1281
1281
|
try {
|
|
1282
|
-
return await import("./pw-ai-
|
|
1282
|
+
return await import("./pw-ai-Dmtqq3b6.js");
|
|
1283
1283
|
} catch (err) {
|
|
1284
1284
|
if (mode === "soft") return null;
|
|
1285
1285
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -3644,7 +3644,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
3644
3644
|
//#region src/browser/server-context.reset.ts
|
|
3645
3645
|
async function closePlaywrightBrowserConnection() {
|
|
3646
3646
|
try {
|
|
3647
|
-
await (await import("./pw-ai-
|
|
3647
|
+
await (await import("./pw-ai-Dmtqq3b6.js")).closePlaywrightBrowserConnection();
|
|
3648
3648
|
} catch {}
|
|
3649
3649
|
}
|
|
3650
3650
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveOpenClawUserDataDir }) {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { f as resolveSessionAgentId, r as resolveAgentConfig } from "./agent-scope-
|
|
2
|
-
import { a as resolveGatewayPort, n as STATE_DIR } from "./paths-
|
|
3
|
-
import { P as openBoundaryFile, o as defaultRuntime, pt as truncateUtf16Safe, st as resolveUserPath, t as createSubsystemLogger, z as resolvePathViaExistingAncestorSync } from "./subsystem-
|
|
4
|
-
import { D as resolveAgentIdFromSessionKey, T as normalizeAgentId, _ as runExec, a as DEFAULT_IDENTITY_FILENAME, c as DEFAULT_USER_FILENAME, i as DEFAULT_HEARTBEAT_FILENAME, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME } from "./workspace-
|
|
5
|
-
import { Bi as acquireSessionWriteLock, H as resolveSecretRefValues, Ht as CHANNEL_IDS, J as loadConfig, Rr as canonicalizeMainSessionAlias, Wn as writeJsonAtomic, Z as writeConfigFile, fi as formatCliCommand, ft as getBlockedNetworkModeReason, io as resolveSecretInputRef, q as createConfigIO, ut as secretRefKey, zr as resolveAgentMainSessionKey } from "./model-selection-
|
|
6
|
-
import { s as parseBooleanValue } from "./legacy-names-
|
|
1
|
+
import { f as resolveSessionAgentId, r as resolveAgentConfig } from "./agent-scope-BGnYrze_.js";
|
|
2
|
+
import { a as resolveGatewayPort, n as STATE_DIR } from "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import { P as openBoundaryFile, o as defaultRuntime, pt as truncateUtf16Safe, st as resolveUserPath, t as createSubsystemLogger, z as resolvePathViaExistingAncestorSync } from "./subsystem-iTNW5QQR.js";
|
|
4
|
+
import { D as resolveAgentIdFromSessionKey, T as normalizeAgentId, _ as runExec, a as DEFAULT_IDENTITY_FILENAME, c as DEFAULT_USER_FILENAME, i as DEFAULT_HEARTBEAT_FILENAME, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME } from "./workspace-TtYCbjn0.js";
|
|
5
|
+
import { Bi as acquireSessionWriteLock, H as resolveSecretRefValues, Ht as CHANNEL_IDS, J as loadConfig, Rr as canonicalizeMainSessionAlias, Wn as writeJsonAtomic, Z as writeConfigFile, fi as formatCliCommand, ft as getBlockedNetworkModeReason, io as resolveSecretInputRef, q as createConfigIO, ut as secretRefKey, zr as resolveAgentMainSessionKey } from "./model-selection-DhXu1Q4_.js";
|
|
6
|
+
import { s as parseBooleanValue } from "./legacy-names-DFLXH7MA.js";
|
|
7
7
|
import { t as generateSecureToken } from "./secure-random-BDA1WAvZ.js";
|
|
8
|
-
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-
|
|
9
|
-
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, I as resolveWritablePathWithinRoot, J as DEFAULT_OPENCLAW_BROWSER_ENABLED, K as DEFAULT_BROWSER_EVALUATE_ENABLED, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, W as DEFAULT_AI_SNAPSHOT_MAX_CHARS, Y as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveOpenClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchOpenClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopOpenClawChrome, p as snapshotAria, q as DEFAULT_OPENCLAW_BROWSER_COLOR, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-
|
|
10
|
-
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-
|
|
11
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
12
|
-
import { d as extractErrorCode, n as SsrFBlockedError, p as formatErrorMessage } from "./proxy-env-
|
|
13
|
-
import { i as saveMediaBuffer, n as ensureMediaDir } from "./store-
|
|
8
|
+
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-pgAg_j4y.js";
|
|
9
|
+
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, I as resolveWritablePathWithinRoot, J as DEFAULT_OPENCLAW_BROWSER_ENABLED, K as DEFAULT_BROWSER_EVALUATE_ENABLED, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, W as DEFAULT_AI_SNAPSHOT_MAX_CHARS, Y as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveOpenClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchOpenClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopOpenClawChrome, p as snapshotAria, q as DEFAULT_OPENCLAW_BROWSER_COLOR, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-CGClRujb.js";
|
|
10
|
+
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-C-1FVOPz.js";
|
|
11
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-y8gxUSMu.js";
|
|
12
|
+
import { d as extractErrorCode, n as SsrFBlockedError, p as formatErrorMessage } from "./proxy-env-BBllD0qI.js";
|
|
13
|
+
import { i as saveMediaBuffer, n as ensureMediaDir } from "./store-q3G7wCsG.js";
|
|
14
14
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-CNiEVKpL.js";
|
|
15
15
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-CjNYeBcQ.js";
|
|
16
16
|
import { o as normalizeThinkLevel } from "./thinking-CwmtMy_H.js";
|
|
17
17
|
import fs from "node:fs/promises";
|
|
18
18
|
import os from "node:os";
|
|
19
19
|
import path, { posix } from "node:path";
|
|
20
|
-
import
|
|
20
|
+
import fs$1, { existsSync } from "node:fs";
|
|
21
21
|
import { spawn } from "node:child_process";
|
|
22
22
|
import crypto, { createHash, timingSafeEqual } from "node:crypto";
|
|
23
23
|
import express from "express";
|
|
@@ -1281,7 +1281,7 @@ function isModuleNotFoundError(err) {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
async function loadPwAiModule(mode) {
|
|
1283
1283
|
try {
|
|
1284
|
-
return await import("./pw-ai-
|
|
1284
|
+
return await import("./pw-ai-5UgHGA7x.js");
|
|
1285
1285
|
} catch (err) {
|
|
1286
1286
|
if (mode === "soft") return null;
|
|
1287
1287
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -3057,11 +3057,11 @@ async function movePathToTrash(targetPath) {
|
|
|
3057
3057
|
return targetPath;
|
|
3058
3058
|
} catch {
|
|
3059
3059
|
const trashDir = path.join(os.homedir(), ".Trash");
|
|
3060
|
-
|
|
3060
|
+
fs$1.mkdirSync(trashDir, { recursive: true });
|
|
3061
3061
|
const base = path.basename(targetPath);
|
|
3062
3062
|
let dest = path.join(trashDir, `${base}-${Date.now()}`);
|
|
3063
|
-
if (
|
|
3064
|
-
|
|
3063
|
+
if (fs$1.existsSync(dest)) dest = path.join(trashDir, `${base}-${Date.now()}-${generateSecureToken(6)}`);
|
|
3064
|
+
fs$1.renameSync(targetPath, dest);
|
|
3065
3065
|
return dest;
|
|
3066
3066
|
}
|
|
3067
3067
|
}
|
|
@@ -3148,7 +3148,7 @@ function createBrowserProfilesService(ctx) {
|
|
|
3148
3148
|
} catch {}
|
|
3149
3149
|
const userDataDir = resolveOpenClawUserDataDir(name);
|
|
3150
3150
|
const profileDir = path.dirname(userDataDir);
|
|
3151
|
-
if (
|
|
3151
|
+
if (fs$1.existsSync(profileDir)) {
|
|
3152
3152
|
await movePathToTrash(profileDir);
|
|
3153
3153
|
deleted = true;
|
|
3154
3154
|
}
|
|
@@ -3646,7 +3646,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
3646
3646
|
//#region src/browser/server-context.reset.ts
|
|
3647
3647
|
async function closePlaywrightBrowserConnection() {
|
|
3648
3648
|
try {
|
|
3649
|
-
await (await import("./pw-ai-
|
|
3649
|
+
await (await import("./pw-ai-5UgHGA7x.js")).closePlaywrightBrowserConnection();
|
|
3650
3650
|
} catch {}
|
|
3651
3651
|
}
|
|
3652
3652
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveOpenClawUserDataDir }) {
|
|
@@ -3664,7 +3664,7 @@ function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, i
|
|
|
3664
3664
|
if (await isHttpReachable(300) && !profileState.running) await closePlaywrightBrowserConnection();
|
|
3665
3665
|
if (profileState.running) await stopRunningBrowser();
|
|
3666
3666
|
await closePlaywrightBrowserConnection();
|
|
3667
|
-
if (!
|
|
3667
|
+
if (!fs$1.existsSync(userDataDir)) return {
|
|
3668
3668
|
moved: false,
|
|
3669
3669
|
from: userDataDir
|
|
3670
3670
|
};
|
|
@@ -5727,7 +5727,7 @@ var SandboxFsBridgeImpl = class {
|
|
|
5727
5727
|
if (guarded.reason !== "path") {
|
|
5728
5728
|
if (!(options.allowedType === "directory" && this.pathIsExistingDirectory(target.hostPath))) throw guarded.error instanceof Error ? guarded.error : /* @__PURE__ */ new Error(`Sandbox boundary checks failed; cannot ${options.action}: ${target.containerPath}`);
|
|
5729
5729
|
}
|
|
5730
|
-
} else
|
|
5730
|
+
} else fs$1.closeSync(guarded.fd);
|
|
5731
5731
|
const canonicalContainerPath = await this.resolveCanonicalContainerPath({
|
|
5732
5732
|
containerPath: target.containerPath,
|
|
5733
5733
|
allowFinalSymlinkForUnlink: options.aliasPolicy?.allowFinalSymlinkForUnlink === true
|
|
@@ -5738,7 +5738,7 @@ var SandboxFsBridgeImpl = class {
|
|
|
5738
5738
|
}
|
|
5739
5739
|
pathIsExistingDirectory(hostPath) {
|
|
5740
5740
|
try {
|
|
5741
|
-
return
|
|
5741
|
+
return fs$1.statSync(hostPath).isDirectory();
|
|
5742
5742
|
} catch {
|
|
5743
5743
|
return false;
|
|
5744
5744
|
}
|
|
@@ -6006,13 +6006,13 @@ async function ensureSandboxWorkspace(workspaceDir, seedFrom, skipBootstrap) {
|
|
|
6006
6006
|
});
|
|
6007
6007
|
if (!opened.ok) continue;
|
|
6008
6008
|
try {
|
|
6009
|
-
const content =
|
|
6009
|
+
const content = fs$1.readFileSync(opened.fd, "utf-8");
|
|
6010
6010
|
await fs.writeFile(dest, content, {
|
|
6011
6011
|
encoding: "utf-8",
|
|
6012
6012
|
flag: "wx"
|
|
6013
6013
|
});
|
|
6014
6014
|
} finally {
|
|
6015
|
-
|
|
6015
|
+
fs$1.closeSync(opened.fd);
|
|
6016
6016
|
}
|
|
6017
6017
|
} catch {}
|
|
6018
6018
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { lt as shortenHomeInString } from "./subsystem-CdS2B7jt.js";
|
|
2
2
|
import { n as redactToolDetail } from "./redact-DbgJD0JZ.js";
|
|
3
|
-
import { R as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
3
|
+
import { R as sanitizeUserFacingText } from "./pi-embedded-helpers-4qLKF7Ti.js";
|
|
4
4
|
|
|
5
5
|
//#region src/shared/chat-content.ts
|
|
6
6
|
function extractTextFromChatContent(content, opts) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { lt as shortenHomeInString } from "./subsystem-
|
|
2
|
-
import { n as redactToolDetail } from "./redact-
|
|
3
|
-
import { R as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
1
|
+
import { lt as shortenHomeInString } from "./subsystem-iTNW5QQR.js";
|
|
2
|
+
import { n as redactToolDetail } from "./redact-D8fpDrdk.js";
|
|
3
|
+
import { R as sanitizeUserFacingText } from "./pi-embedded-helpers-DYlkCsNL.js";
|
|
4
4
|
|
|
5
5
|
//#region src/shared/chat-content.ts
|
|
6
6
|
function extractTextFromChatContent(content, opts) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Ja as ensureAuthProfileStore, c as normalizeProviderId } from "./model-selection-
|
|
2
|
+
import { Ja as ensureAuthProfileStore, c as normalizeProviderId } from "./model-selection-DhXu1Q4_.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
import * as PiCodingAgent from "@mariozechner/pi-coding-agent";
|
|
6
6
|
|
|
7
7
|
//#region src/agents/pi-auth-credentials.ts
|
|
@@ -70,10 +70,10 @@ function isRecord(value) {
|
|
|
70
70
|
}
|
|
71
71
|
function scrubLegacyStaticAuthJsonEntries(pathname) {
|
|
72
72
|
if (process.env.OPENCLAW_AUTH_STORE_READONLY === "1") return;
|
|
73
|
-
if (!
|
|
73
|
+
if (!fs.existsSync(pathname)) return;
|
|
74
74
|
let parsed;
|
|
75
75
|
try {
|
|
76
|
-
parsed = JSON.parse(
|
|
76
|
+
parsed = JSON.parse(fs.readFileSync(pathname, "utf8"));
|
|
77
77
|
} catch {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
@@ -87,11 +87,11 @@ function scrubLegacyStaticAuthJsonEntries(pathname) {
|
|
|
87
87
|
}
|
|
88
88
|
if (!changed) return;
|
|
89
89
|
if (Object.keys(parsed).length === 0) {
|
|
90
|
-
|
|
90
|
+
fs.rmSync(pathname, { force: true });
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
fs.writeFileSync(pathname, `${JSON.stringify(parsed, null, 2)}\n`, "utf8");
|
|
94
|
+
fs.chmodSync(pathname, 384);
|
|
95
95
|
}
|
|
96
96
|
function createAuthStorage(AuthStorageLike, path, creds) {
|
|
97
97
|
const withInMemory = AuthStorageLike;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as resolveStateDir, d as resolveRequiredHomeDir } from "./paths-KIDAzMH-.js";
|
|
2
|
-
import { $ as resolveUserPath, X as pathExists, ft as shouldLogVerbose, st as danger, t as createSubsystemLogger, v as isBlockedObjectKey, x as openBoundaryFile } from "./subsystem-
|
|
3
|
-
import { n as logError, t as logDebug } from "./logger-
|
|
2
|
+
import { $ as resolveUserPath, X as pathExists, ft as shouldLogVerbose, st as danger, t as createSubsystemLogger, v as isBlockedObjectKey, x as openBoundaryFile } from "./subsystem-B8AkdtCZ.js";
|
|
3
|
+
import { n as logError, t as logDebug } from "./logger-qbelrLm7.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { promisify } from "node:util";
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import "./paths-KIDAzMH-.js";
|
|
2
|
+
import "./subsystem-B8AkdtCZ.js";
|
|
3
|
+
import "./agent-scope-DuxkVlZ-.js";
|
|
4
|
+
import "./config-CFfrK92W.js";
|
|
5
|
+
import { N as runMainAgentTurn } from "./command-detection-C2mTIN0M.js";
|
|
6
|
+
import "./github-copilot-token-BzpcrxaW.js";
|
|
7
|
+
import "./logger-qbelrLm7.js";
|
|
8
|
+
import "./artifacts-BR0G7jgh.js";
|
|
9
|
+
import "./send-D9b2K_jS.js";
|
|
10
|
+
import "./agent-turn-runner-BJWQz-gA.js";
|
|
11
|
+
import "./fetch-CiGIllmg.js";
|
|
12
|
+
import "./redact-BN7L2dg6.js";
|
|
13
|
+
import "./ssrf-DR9xWewb.js";
|
|
14
|
+
import "./channel-activity-CPP4IJ8j.js";
|
|
15
|
+
import "./path-alias-guards-DXgdWlVV.js";
|
|
16
|
+
import "./fs-safe-BbukgmJs.js";
|
|
17
|
+
import "./image-ops-Deabe2XL.js";
|
|
18
|
+
import "./fetch-guard-BzugbfpZ.js";
|
|
19
|
+
import "./proxy-fetch-tDXPwHrY.js";
|
|
20
|
+
import "./local-roots-K7o6fRdl.js";
|
|
21
|
+
import "./ir-DvNnbzRJ.js";
|
|
22
|
+
import "./chunk-CXNOkk_w.js";
|
|
23
|
+
import "./markdown-tables-DK-jmrsM.js";
|
|
24
|
+
import "./render-DzUFCfck.js";
|
|
25
|
+
import "./tables-DHN3rZ24.js";
|
|
26
|
+
import "./send-Y056GDch.js";
|
|
27
|
+
import "./send-CilSx61t.js";
|
|
28
|
+
import "./pi-embedded-helpers-BHyLigAA.js";
|
|
29
|
+
import "./send-xTho5Weh.js";
|
|
30
|
+
import "./audio-transcription-runner-DEwdraKH.js";
|
|
31
|
+
import "./reply-prefix-BnhAAeIw.js";
|
|
32
|
+
import "./tokens-D7bndIFM.js";
|
|
33
|
+
import "./skill-commands-C6GZcZCO.js";
|
|
34
|
+
import "./skills-CjJsBgbl.js";
|
|
35
|
+
import "./chrome-Dio0wrAv.js";
|
|
36
|
+
import "./deliver-NV7I9o8B.js";
|
|
37
|
+
import "./hook-runner-global-B14CF25I.js";
|
|
38
|
+
import "./store-Bt0zQRQl.js";
|
|
39
|
+
import "./commands-registry-B5LWTAu3.js";
|
|
40
|
+
import "./thinking-FnAYAFD8.js";
|
|
41
|
+
import "./diagnostic-CLEhveRO.js";
|
|
42
|
+
import "./diagnostic-session-state-BJKtT9MA.js";
|
|
43
|
+
import "./command-queue-oI3bsfFo.js";
|
|
44
|
+
import "./pi-model-discovery-CtIzq4SZ.js";
|
|
45
|
+
import "./provider-image-DdGFXNcm.js";
|
|
46
|
+
import "./api-key-rotation-BYZhrCU3.js";
|
|
47
|
+
import "./pi-embedded-utils-Bm-VMQvJ.js";
|
|
48
|
+
import "./runs-GYfRm1wm.js";
|
|
49
|
+
import "./recorder-B8eUr4qo.js";
|
|
50
|
+
import "./send-Dp2tRhNb.js";
|
|
51
|
+
import "./outbound-attachment-765m3HRN.js";
|
|
52
|
+
import "./reply-directives-D-GVQbm2.js";
|
|
53
|
+
import "./user-run-recording-CQENQmgV.js";
|
|
54
|
+
import "./resolve-route-DzFbdLUE.js";
|
|
55
|
+
import "./proxy-vuhge5P0.js";
|
|
56
|
+
import "./replies-Dq8vnfCv.js";
|
|
57
|
+
import "./session-meta-D7wvEO0P.js";
|
|
58
|
+
import "./manager-CtpBjZ6_.js";
|
|
59
|
+
import "./query-expansion-Czn3UuZE.js";
|
|
60
|
+
|
|
61
|
+
export { runMainAgentTurn };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { gr as emitDiagnosticEvent, qa as createWork, vr as onDiagnosticEvent } from "./config-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-B8AkdtCZ.js";
|
|
2
|
+
import { gr as emitDiagnosticEvent, qa as createWork, vr as onDiagnosticEvent } from "./config-CFfrK92W.js";
|
|
3
3
|
import { t as redactIdentifier } from "./redact-identifier-COJGJSys.js";
|
|
4
4
|
import { t as CommandLane } from "./lanes-CIgsHd2u.js";
|
|
5
5
|
import { readFileSync } from "node:fs";
|
|
@@ -316,7 +316,7 @@ function mergeDelayedAgentTurn(sessionKey, matches, merge) {
|
|
|
316
316
|
return true;
|
|
317
317
|
}
|
|
318
318
|
async function defaultExecute(claim) {
|
|
319
|
-
const { runMainAgentTurn } = await import("./agent-turn-execute-
|
|
319
|
+
const { runMainAgentTurn } = await import("./agent-turn-execute-BDRcxLgW.js");
|
|
320
320
|
return runMainAgentTurn(claim.message.payload);
|
|
321
321
|
}
|
|
322
322
|
async function armIdleWaiter(sessionKey, backbone, opts) {
|
|
@@ -328,7 +328,7 @@ async function armIdleWaiter(sessionKey, backbone, opts) {
|
|
|
328
328
|
startedAt: opts?.startedAt ?? Date.now()
|
|
329
329
|
};
|
|
330
330
|
waiters.set(sessionKey, handle);
|
|
331
|
-
const { getQueueSize } = await import("./command-queue-
|
|
331
|
+
const { getQueueSize } = await import("./command-queue-DRNi0Iq1.js");
|
|
332
332
|
if (handle.cancelled || closing) return;
|
|
333
333
|
const release = (force = false) => {
|
|
334
334
|
releaseDelayedAgentTurns(backboneBySession.get(sessionKey) ?? backbone, sessionKey, force ? { force: true } : void 0);
|
|
@@ -350,7 +350,7 @@ async function armIdleWaiter(sessionKey, backbone, opts) {
|
|
|
350
350
|
}
|
|
351
351
|
async function enqueueAgentTurn(backbone, payload, opts) {
|
|
352
352
|
if (!payload.jobId.trim() || !payload.runId.trim()) throw new Error("agent-turn enqueue requires jobId and runId");
|
|
353
|
-
const isBusy = opts?.isSessionBusy ? opts.isSessionBusy() : (await import("./command-queue-
|
|
353
|
+
const isBusy = opts?.isSessionBusy ? opts.isSessionBusy() : (await import("./command-queue-DRNi0Iq1.js")).getQueueSize(CommandLane.Main) > 0;
|
|
354
354
|
const policy = payload.busy ?? "skip";
|
|
355
355
|
const id = agentTurnIdempotencyKey(payload);
|
|
356
356
|
if (isBusy && policy === "skip") return `${id}:skipped`;
|
|
@@ -403,7 +403,7 @@ async function releaseDelayedAgentTurnsInternal(backbone, sessionKey, opts) {
|
|
|
403
403
|
if (held) return;
|
|
404
404
|
releasingHead.add(sessionKey);
|
|
405
405
|
const publishedWorkId = await publishAgentTurn(backbone, payload);
|
|
406
|
-
const { getAgentTurnRuntime } = await import("./agent-turn-runner-
|
|
406
|
+
const { getAgentTurnRuntime } = await import("./agent-turn-runner-CzRmfMqm.js");
|
|
407
407
|
const execute = opts?.execute ?? defaultExecute;
|
|
408
408
|
releaseSucceeded = (await getAgentTurnRuntime().runner.claimAndExecute({
|
|
409
409
|
workId: publishedWorkId,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./paths-KIDAzMH-.js";
|
|
2
|
+
import "./subsystem-B8AkdtCZ.js";
|
|
3
|
+
import "./agent-scope-DuxkVlZ-.js";
|
|
4
|
+
import "./config-CFfrK92W.js";
|
|
5
|
+
import "./github-copilot-token-BzpcrxaW.js";
|
|
6
|
+
import "./logger-qbelrLm7.js";
|
|
7
|
+
import "./artifacts-BR0G7jgh.js";
|
|
8
|
+
import { n as tryGetAgentTurnRuntime, t as getAgentTurnRuntime } from "./agent-turn-runner-BJWQz-gA.js";
|
|
9
|
+
import "./recorder-B8eUr4qo.js";
|
|
10
|
+
|
|
11
|
+
export { getAgentTurnRuntime };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Wo as normalizeProviderId } from "./config-
|
|
2
|
-
import { m as formatErrorMessage } from "./ssrf-
|
|
1
|
+
import { Wo as normalizeProviderId } from "./config-CFfrK92W.js";
|
|
2
|
+
import { m as formatErrorMessage } from "./ssrf-DR9xWewb.js";
|
|
3
3
|
|
|
4
4
|
//#region src/agents/live-auth-keys.ts
|
|
5
5
|
const KEY_SPLIT_RE = /[\s,;]+/g;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix } from "./paths-KIDAzMH-.js";
|
|
2
|
-
import { B as normalizeAgentId, N as DEFAULT_AGENT_ID } from "./agent-scope-
|
|
2
|
+
import { B as normalizeAgentId, N as DEFAULT_AGENT_ID } from "./agent-scope-DuxkVlZ-.js";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import os from "node:os";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ft as shouldLogVerbose, lt as logVerbose } from "./subsystem-
|
|
2
|
-
import { g as listAudioAttachments, h as findCarriedTranscript, i as normalizeMediaAttachments, m as audioOrdinalOf, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription, v as isAudioAttachment } from "./audio-transcription-runner-
|
|
1
|
+
import { ft as shouldLogVerbose, lt as logVerbose } from "./subsystem-B8AkdtCZ.js";
|
|
2
|
+
import { g as listAudioAttachments, h as findCarriedTranscript, i as normalizeMediaAttachments, m as audioOrdinalOf, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription, v as isAudioAttachment } from "./audio-transcription-runner-DEwdraKH.js";
|
|
3
3
|
|
|
4
4
|
//#region src/media-understanding/audio-preflight.ts
|
|
5
5
|
/**
|