zidane 9.1.1 → 9.1.4
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/{acp-Di9WvMDF.js → acp-Cl4gCZN6.js} +7 -7
- package/dist/{acp-Di9WvMDF.js.map → acp-Cl4gCZN6.js.map} +1 -1
- package/dist/acp-cli.js +5 -5
- package/dist/acp.d.ts +2 -2
- package/dist/acp.js +1 -1
- package/dist/{agent-DJhpTS-B.js → agent-Dh_XZ7fj.js} +74 -19
- package/dist/agent-Dh_XZ7fj.js.map +1 -0
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/{auth-store-port-DFgf22oo.js → auth-store-port-DBl2JUC6.js} +2 -2
- package/dist/{auth-store-port-DFgf22oo.js.map → auth-store-port-DBl2JUC6.js.map} +1 -1
- package/dist/{auto-update-restart-BFB7Ek87.js → auto-update-restart-CF_kjcJd.js} +277 -41
- package/dist/auto-update-restart-CF_kjcJd.js.map +1 -0
- package/dist/{browser-BcoCCB_n.js → browser-BkdeKnxO.js} +56 -2
- package/dist/browser-BkdeKnxO.js.map +1 -0
- package/dist/{browser-entry-ypi8CyE-.d.ts → browser-entry-BCwruqNa.d.ts} +10 -10
- package/dist/{browser-entry-ypi8CyE-.d.ts.map → browser-entry-BCwruqNa.d.ts.map} +1 -1
- package/dist/channels.d.ts +5 -5
- package/dist/chat/browser.d.ts +4 -4
- package/dist/chat/browser.js +6 -6
- package/dist/chat/pure.d.ts +5 -5
- package/dist/chat/pure.js +8 -8
- package/dist/chat.d.ts +5 -5
- package/dist/chat.js +55 -55
- package/dist/chat.js.map +1 -1
- package/dist/{cli-shared-CabruH8Z.js → cli-shared-DIV9c5Nr.js} +4 -4
- package/dist/{cli-shared-CabruH8Z.js.map → cli-shared-DIV9c5Nr.js.map} +1 -1
- package/dist/cli-style-DBEm6CyT.js +105 -0
- package/dist/cli-style-DBEm6CyT.js.map +1 -0
- package/dist/{client-core-CIixwznM.d.ts → client-core-C_4m_oL6.d.ts} +4 -4
- package/dist/{client-core-CIixwznM.d.ts.map → client-core-C_4m_oL6.d.ts.map} +1 -1
- package/dist/{client-CCaIXWue.d.ts → client-ygTASGis.d.ts} +2 -2
- package/dist/{client-CCaIXWue.d.ts.map → client-ygTASGis.d.ts.map} +1 -1
- package/dist/codemode-worker.js +8 -5
- package/dist/codemode-worker.js.map +1 -1
- package/dist/codemode.d.ts +16 -0
- package/dist/codemode.d.ts.map +1 -1
- package/dist/codemode.js +2 -2
- package/dist/{connection-loop-QmWL-fJf.d.ts → connection-loop-D_pRONCr.d.ts} +4 -4
- package/dist/{connection-loop-QmWL-fJf.d.ts.map → connection-loop-D_pRONCr.d.ts.map} +1 -1
- package/dist/contexts/daytona.d.ts +3 -3
- package/dist/contexts/docker.d.ts +1 -1
- package/dist/contexts/e2b.d.ts +2 -2
- package/dist/contexts/sandbox.d.ts +1 -1
- package/dist/{contexts-C72b0mMa.js → contexts-DLZTSRHU.js} +17 -106
- package/dist/contexts-DLZTSRHU.js.map +1 -0
- package/dist/contexts.d.ts +4 -4
- package/dist/contexts.js +2 -2
- package/dist/{credentials-wwETW8rI.js → credentials-D71duF64.js} +2 -2
- package/dist/{credentials-wwETW8rI.js.map → credentials-D71duF64.js.map} +1 -1
- package/dist/{cwd-picker-CcekODCt.js → cwd-picker-BsHA6HKv.js} +4 -4
- package/dist/{cwd-picker-CcekODCt.js.map → cwd-picker-BsHA6HKv.js.map} +1 -1
- package/dist/daemon-cli.js +4 -3
- package/dist/daemon-cli.js.map +1 -1
- package/dist/{decisions-CXmK0nz9.js → decisions-hsw5XS2g.js} +3 -1
- package/dist/decisions-hsw5XS2g.js.map +1 -0
- package/dist/{discovery-DycXFxdA.js → discovery-DD4wPWKS.js} +4 -4
- package/dist/{discovery-DycXFxdA.js.map → discovery-DD4wPWKS.js.map} +1 -1
- package/dist/durable/sqlite.d.ts +2 -2
- package/dist/durable.d.ts +1 -1
- package/dist/{engine-VQ86XGdG.js → engine-BDmtgr2O.js} +6 -6
- package/dist/{engine-VQ86XGdG.js.map → engine-BDmtgr2O.js.map} +1 -1
- package/dist/{eval-Bod0I1W_.js → eval-CfGUDAkN.js} +3 -3
- package/dist/{eval-Bod0I1W_.js.map → eval-CfGUDAkN.js.map} +1 -1
- package/dist/eval.d.ts +1 -1
- package/dist/eval.js +1 -1
- package/dist/{executor-C7RQrkEq.js → executor-EWOhLyd9.js} +4 -4
- package/dist/{executor-C7RQrkEq.js.map → executor-EWOhLyd9.js.map} +1 -1
- package/dist/{extension-mark-BqKdEZwF.js → extension-mark-_rhkDWL5.js} +9 -6
- package/dist/extension-mark-_rhkDWL5.js.map +1 -0
- package/dist/extensions/testing.d.ts +1 -1
- package/dist/extensions/testing.js +2 -2
- package/dist/{extensions-BCx4QuGB.js → extensions-DklXPjiq.js} +8 -8
- package/dist/{extensions-BCx4QuGB.js.map → extensions-DklXPjiq.js.map} +1 -1
- package/dist/{extensions-client-D8tEAcMw.d.ts → extensions-client-D4Q2XRKV.d.ts} +31 -5
- package/dist/extensions-client-D4Q2XRKV.d.ts.map +1 -0
- package/dist/extensions.d.ts +1 -1
- package/dist/extensions.js +6 -6
- package/dist/{fold-rules-DvLK8pbf.d.ts → fold-rules-1DpDwG9h.d.ts} +2 -2
- package/dist/{fold-rules-DvLK8pbf.d.ts.map → fold-rules-1DpDwG9h.d.ts.map} +1 -1
- package/dist/{google-Crva32sk.js → google-BtMW9KzL.js} +2 -2
- package/dist/{google-Crva32sk.js.map → google-BtMW9KzL.js.map} +1 -1
- package/dist/{headless-CCm-jLLT.js → headless-CQm19BL0.js} +4 -4
- package/dist/{headless-CCm-jLLT.js.map → headless-CQm19BL0.js.map} +1 -1
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +1 -1
- package/dist/history-worker.js +1 -1
- package/dist/{host-BHMs9jsN.js → host-DEoEzQal.js} +13 -4
- package/dist/host-DEoEzQal.js.map +1 -0
- package/dist/{host-scoped-settings-CrbcqOkP.js → host-scoped-settings-WBYaCork.js} +2 -2
- package/dist/{host-scoped-settings-CrbcqOkP.js.map → host-scoped-settings-WBYaCork.js.map} +1 -1
- package/dist/{host-signals-Jsjd_-4g.js → host-signals-91zyko_i.js} +5 -5
- package/dist/{host-signals-Jsjd_-4g.js.map → host-signals-91zyko_i.js.map} +1 -1
- package/dist/{host-wO_6GW0y.js → host-uP3t08w8.js} +276 -103
- package/dist/host-uP3t08w8.js.map +1 -0
- package/dist/{host-version-CNAr9pov.js → host-version-_RHlAB29.js} +2 -2
- package/dist/{host-version-CNAr9pov.js.map → host-version-_RHlAB29.js.map} +1 -1
- package/dist/{index-C6nnKu32.d.ts → index-B0PLo9jn.d.ts} +4 -4
- package/dist/{index-C6nnKu32.d.ts.map → index-B0PLo9jn.d.ts.map} +1 -1
- package/dist/{index-Djnc8Peh.d.ts → index-De4x-s76.d.ts} +14 -14
- package/dist/{index-Djnc8Peh.d.ts.map → index-De4x-s76.d.ts.map} +1 -1
- package/dist/{index-CGbOWa7y.d.ts → index-WlE93Q6d.d.ts} +411 -3
- package/dist/index-WlE93Q6d.d.ts.map +1 -0
- package/dist/{index-CCf_WeTQ.d.ts → index-f-XWIoYo.d.ts} +2 -2
- package/dist/{index-CCf_WeTQ.d.ts.map → index-f-XWIoYo.d.ts.map} +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +17 -17
- package/dist/ipc/browser-types.d.ts +304 -7
- package/dist/ipc/browser-types.d.ts.map +1 -1
- package/dist/ipc/browser.d.ts +4 -4
- package/dist/ipc/browser.js +2 -2
- package/dist/ipc/remote.d.ts +6 -6
- package/dist/ipc/remote.js +3 -3
- package/dist/{ipc-BzWhIybr.js → ipc-CatnsVEd.js} +4 -4
- package/dist/{ipc-BzWhIybr.js.map → ipc-CatnsVEd.js.map} +1 -1
- package/dist/ipc.d.ts +10 -10
- package/dist/ipc.js +8 -8
- package/dist/{json-Dj-YATkZ.js → json-BjClr43H.js} +2 -20
- package/dist/json-BjClr43H.js.map +1 -0
- package/dist/{links-CJG_rFvf.js → links-a8C9eby4.js} +9 -9
- package/dist/{links-CJG_rFvf.js.map → links-a8C9eby4.js.map} +1 -1
- package/dist/{loaded-entry-DTURJo_R.js → loaded-entry-D6jzt5HQ.js} +2 -2
- package/dist/{loaded-entry-DTURJo_R.js.map → loaded-entry-D6jzt5HQ.js.map} +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/{media-type-BtA0cbfI.d.ts → media-type-ZSmAGHvg.d.ts} +188 -7
- package/dist/media-type-ZSmAGHvg.d.ts.map +1 -0
- package/dist/{memory-DuVGrzbl.js → memory-CJy52DNi.js} +132 -31
- package/dist/memory-CJy52DNi.js.map +1 -0
- package/dist/model-test-CAtJ76kM.js.map +1 -1
- package/dist/{move-session-kylExJ5H.js → move-session-D7ILECs-.js} +4 -4
- package/dist/{move-session-kylExJ5H.js.map → move-session-D7ILECs-.js.map} +1 -1
- package/dist/{nested-call-record-DlzPeTB7.js → nested-call-record-OayszZBQ.js} +4 -3
- package/dist/nested-call-record-OayszZBQ.js.map +1 -0
- package/dist/output/stream-json.d.ts +1 -1
- package/dist/output/terminal.d.ts +1 -1
- package/dist/{path-display-COVV71Yu.js → path-display-CAWz-sMq.js} +3 -3
- package/dist/{path-display-COVV71Yu.js.map → path-display-CAWz-sMq.js.map} +1 -1
- package/dist/plugins.d.ts +1 -1
- package/dist/{prelude-CVKoUzV8.js → prelude-BwiSR1uA.js} +16 -5
- package/dist/prelude-BwiSR1uA.js.map +1 -0
- package/dist/{presets-CBt6rFfS.js → presets-CMY43nUP.js} +3 -3
- package/dist/{presets-CBt6rFfS.js.map → presets-CMY43nUP.js.map} +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/presets.js +1 -1
- package/dist/{protocol-CEVqBO-q.d.ts → protocol-C2lqKuMd.d.ts} +50 -7
- package/dist/protocol-C2lqKuMd.d.ts.map +1 -0
- package/dist/protocol-DOGyHgLQ.js.map +1 -1
- package/dist/protocol-NSllElLw.js.map +1 -1
- package/dist/providers/anthropic.d.ts +1 -1
- package/dist/providers/arcee.d.ts +1 -1
- package/dist/providers/baseten.d.ts +1 -1
- package/dist/providers/cerebras.d.ts +1 -1
- package/dist/providers/google.d.ts +1 -1
- package/dist/providers/google.js +1 -1
- package/dist/providers/local.d.ts +1 -1
- package/dist/providers/neuralwatt.d.ts +1 -1
- package/dist/providers/openai-compat.d.ts +1 -1
- package/dist/providers/openai.d.ts +1 -1
- package/dist/providers/openrouter.d.ts +1 -1
- package/dist/providers/xai.d.ts +1 -1
- package/dist/{providers-Z0TaBp1O.js → providers-zVRxiJDv.js} +5 -5
- package/dist/providers-zVRxiJDv.js.map +1 -0
- package/dist/providers.d.ts +1 -1
- package/dist/providers.js +1 -1
- package/dist/{readonly-db-D7Z-k0pQ.js → readonly-db-DrbT8tX6.js} +2 -2
- package/dist/{readonly-db-D7Z-k0pQ.js.map → readonly-db-DrbT8tX6.js.map} +1 -1
- package/dist/{registry-BKjeBnoy.js → registry-CBoYDIND.js} +2 -2
- package/dist/{registry-BKjeBnoy.js.map → registry-CBoYDIND.js.map} +1 -1
- package/dist/{registry-B6Ww76iW.js → registry-CQOU5jvF.js} +2 -2
- package/dist/{registry-B6Ww76iW.js.map → registry-CQOU5jvF.js.map} +1 -1
- package/dist/{registry-B9INJwJR.js → registry-YUUqbYGr.js} +324 -39
- package/dist/registry-YUUqbYGr.js.map +1 -0
- package/dist/{remote-hosts-BMWoHCWO.js → remote-hosts-CT8Q95dR.js} +4 -4
- package/dist/{remote-hosts-BMWoHCWO.js.map → remote-hosts-CT8Q95dR.js.map} +1 -1
- package/dist/{repo-url-D4Dr8NfZ.js → repo-url-DLjjuVk_.js} +169 -2
- package/dist/repo-url-DLjjuVk_.js.map +1 -0
- package/dist/restate.d.ts +2 -2
- package/dist/{sandbox-BwiPGKF7.d.ts → sandbox-B4OW6oNx.d.ts} +2 -2
- package/dist/{sandbox-BwiPGKF7.d.ts.map → sandbox-B4OW6oNx.d.ts.map} +1 -1
- package/dist/script-progress-CrZ507Qq.js +900 -0
- package/dist/script-progress-CrZ507Qq.js.map +1 -0
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/{setting-BQBSyUq0.js → setting-_jh2OtiL.js} +6 -6
- package/dist/{setting-BQBSyUq0.js.map → setting-_jh2OtiL.js.map} +1 -1
- package/dist/{settings-catalog-4IU2i_jG.js → settings-catalog-DEZlXP51.js} +14 -2
- package/dist/settings-catalog-DEZlXP51.js.map +1 -0
- package/dist/{settings-keys-iI_Y-7MC.js → settings-keys-BT0_oKjO.js} +3 -3
- package/dist/{settings-keys-iI_Y-7MC.js.map → settings-keys-BT0_oKjO.js.map} +1 -1
- package/dist/{skills-CFXRItJ6.js → skills-CEbosUlM.js} +2 -2
- package/dist/{skills-CFXRItJ6.js.map → skills-CEbosUlM.js.map} +1 -1
- package/dist/skills.d.ts +1 -1
- package/dist/skills.js +1 -1
- package/dist/{source-Bl1Z501r.js → source-3ZnEPOSa.js} +3 -2
- package/dist/source-3ZnEPOSa.js.map +1 -0
- package/dist/{sqlite-runtime-BZ2L4RaG.d.ts → sqlite-runtime-CS_LBaAN.d.ts} +2 -2
- package/dist/sqlite-runtime-CS_LBaAN.d.ts.map +1 -0
- package/dist/{src-BY_ND2xn.js → src-BmTXDta8.js} +2 -2
- package/dist/{src-BY_ND2xn.js.map → src-BmTXDta8.js.map} +1 -1
- package/dist/{store-C6gI7FfZ.js → store-ByCDaKgJ.js} +14 -3
- package/dist/store-ByCDaKgJ.js.map +1 -0
- package/dist/{system-freeze-m5o1sGIM.js → system-freeze-DxJ-lRhu.js} +3 -3
- package/dist/{system-freeze-m5o1sGIM.js.map → system-freeze-DxJ-lRhu.js.map} +1 -1
- package/dist/{todo-edits-CbukbjyV.js → todo-edits-Dyj32ds6.js} +4 -3
- package/dist/todo-edits-Dyj32ds6.js.map +1 -0
- package/dist/tools/fetch-url.d.ts +1 -1
- package/dist/tools/web-search.d.ts +1 -1
- package/dist/{tools-CVTGhggj.js → tools-BsrGQ8K4.js} +2 -2
- package/dist/{tools-CVTGhggj.js.map → tools-BsrGQ8K4.js.map} +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +3 -3
- package/dist/{transcript-anchors-CiSi_UBn.js → transcript-anchors-DMjvyUjk.js} +3 -3
- package/dist/{transcript-anchors-CiSi_UBn.js.map → transcript-anchors-DMjvyUjk.js.map} +1 -1
- package/dist/{transcript-reconcile-jbSBjLq2.js → transcript-reconcile-DpQO85wl.js} +3 -3
- package/dist/{transcript-reconcile-jbSBjLq2.js.map → transcript-reconcile-DpQO85wl.js.map} +1 -1
- package/dist/tui.d.ts +9 -9
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +289 -38
- package/dist/tui.js.map +1 -1
- package/dist/{types-bDQagoiL.d.ts → types-2HrgolQz.d.ts} +20 -8
- package/dist/types-2HrgolQz.d.ts.map +1 -0
- package/dist/types-4q1bFG53.js +122 -0
- package/dist/types-4q1bFG53.js.map +1 -0
- package/dist/{types-DnRd9_cA.d.ts → types-SXqk6hLD.d.ts} +3 -3
- package/dist/{types-DnRd9_cA.d.ts.map → types-SXqk6hLD.d.ts.map} +1 -1
- package/dist/types-myxheQkw.js.map +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/{usage-summary-BfcXjiSM.js → usage-summary-BM7B3JdI.js} +2 -2
- package/dist/{usage-summary-BfcXjiSM.js.map → usage-summary-BM7B3JdI.js.map} +1 -1
- package/dist/{version-DqqqvHDP.js → version-DwQI12WA.js} +2 -2
- package/dist/{version-DqqqvHDP.js.map → version-DwQI12WA.js.map} +1 -1
- package/dist/{wait-task-BX4NcOOm.js → wait-task-BiI5UaZQ.js} +13 -3
- package/dist/wait-task-BiI5UaZQ.js.map +1 -0
- package/dist/{wire-CLm2rMK0.js → wire-Dxwxb7QQ.js} +2 -2
- package/dist/{wire-CLm2rMK0.js.map → wire-Dxwxb7QQ.js.map} +1 -1
- package/dist/{write-file-0E6TUJ9A.js → write-file-Dquu7MzB.js} +5 -3
- package/dist/write-file-Dquu7MzB.js.map +1 -0
- package/dist/{ws-DfGGYQ4W.js → ws-CA3o2nie.js} +4 -4
- package/dist/{ws-DfGGYQ4W.js.map → ws-CA3o2nie.js.map} +1 -1
- package/dist/{ws-client-CFMbhsNq.js → ws-client-C0iPAAzc.js} +2 -2
- package/dist/{ws-client-CFMbhsNq.js.map → ws-client-C0iPAAzc.js.map} +1 -1
- package/docs/CHAT.md +55 -0
- package/docs/CODEMODE.md +37 -0
- package/docs/EXTENSIONS.md +8 -6
- package/docs/RELEASE-NOTES-NEXT.md +48 -1
- package/docs/RELEASE.md +9 -1
- package/package.json +2 -3
- package/dist/agent-DJhpTS-B.js.map +0 -1
- package/dist/auto-update-restart-BFB7Ek87.js.map +0 -1
- package/dist/browser-BcoCCB_n.js.map +0 -1
- package/dist/contexts-C72b0mMa.js.map +0 -1
- package/dist/decisions-CXmK0nz9.js.map +0 -1
- package/dist/extension-mark-BqKdEZwF.js.map +0 -1
- package/dist/extensions-client-D8tEAcMw.d.ts.map +0 -1
- package/dist/host-BHMs9jsN.js.map +0 -1
- package/dist/host-wO_6GW0y.js.map +0 -1
- package/dist/index-CGbOWa7y.d.ts.map +0 -1
- package/dist/json-Dj-YATkZ.js.map +0 -1
- package/dist/media-type-BtA0cbfI.d.ts.map +0 -1
- package/dist/memory-DuVGrzbl.js.map +0 -1
- package/dist/nested-call-events-BYk8XvGX.js +0 -182
- package/dist/nested-call-events-BYk8XvGX.js.map +0 -1
- package/dist/nested-call-record-DlzPeTB7.js.map +0 -1
- package/dist/prelude-CVKoUzV8.js.map +0 -1
- package/dist/protocol-CEVqBO-q.d.ts.map +0 -1
- package/dist/providers-Z0TaBp1O.js.map +0 -1
- package/dist/registry-B9INJwJR.js.map +0 -1
- package/dist/repo-url-D4Dr8NfZ.js.map +0 -1
- package/dist/settings-catalog-4IU2i_jG.js.map +0 -1
- package/dist/source-Bl1Z501r.js.map +0 -1
- package/dist/sqlite-runtime-BZ2L4RaG.d.ts.map +0 -1
- package/dist/store-C6gI7FfZ.js.map +0 -1
- package/dist/todo-edits-CbukbjyV.js.map +0 -1
- package/dist/types-DTMEhKJO.js +0 -14
- package/dist/types-DTMEhKJO.js.map +0 -1
- package/dist/types-bDQagoiL.d.ts.map +0 -1
- package/dist/wait-task-BX4NcOOm.js.map +0 -1
- package/dist/write-file-0E6TUJ9A.js.map +0 -1
- package/scripts/eval.ts +0 -179
package/dist/acp-cli.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { f as openaiCompat } from "./openai-compat-i6woIRVH.js";
|
|
3
|
-
import { n as basic_default } from "./presets-
|
|
3
|
+
import { n as basic_default } from "./presets-CMY43nUP.js";
|
|
4
4
|
import { t as resolveStorageDirs } from "./xdg-DFSAQQG8.js";
|
|
5
5
|
import { t as anthropic } from "./anthropic-Dp6JSSyY.js";
|
|
6
6
|
import { arcee } from "./providers/arcee.js";
|
|
7
7
|
import { baseten } from "./providers/baseten.js";
|
|
8
8
|
import { cerebras } from "./providers/cerebras.js";
|
|
9
|
-
import { i as google, o as googleVertex } from "./google-
|
|
9
|
+
import { i as google, o as googleVertex } from "./google-BtMW9KzL.js";
|
|
10
10
|
import { r as openai } from "./openai-CQw3EVu6.js";
|
|
11
11
|
import { r as openrouter } from "./openrouter-CgBpQR6G.js";
|
|
12
12
|
import { t as xai } from "./xai-BDoEXsjQ.js";
|
|
13
13
|
import { neuralwatt } from "./providers/neuralwatt.js";
|
|
14
|
-
import { D as credKeyOf, I as modelsForDescriptor, d as readCredentials, i as credentialsPath, w as BUILTIN_PROVIDERS } from "./credentials-
|
|
15
|
-
import { _ as parseStartArgValues, g as buildStartLocalOptions, h as StartUsageError, i as withAcpDefaultTools, t as runAcpStdioServer, v as startLocalArgOptions, y as startProviderNames } from "./acp-
|
|
16
|
-
import { i as detectAuth, n as isRemoteSandboxContext, t as createCliExecution } from "./cli-shared-
|
|
14
|
+
import { D as credKeyOf, I as modelsForDescriptor, d as readCredentials, i as credentialsPath, w as BUILTIN_PROVIDERS } from "./credentials-D71duF64.js";
|
|
15
|
+
import { _ as parseStartArgValues, g as buildStartLocalOptions, h as StartUsageError, i as withAcpDefaultTools, t as runAcpStdioServer, v as startLocalArgOptions, y as startProviderNames } from "./acp-Cl4gCZN6.js";
|
|
16
|
+
import { i as detectAuth, n as isRemoteSandboxContext, t as createCliExecution } from "./cli-shared-DIV9c5Nr.js";
|
|
17
17
|
import { join, resolve } from "node:path";
|
|
18
18
|
import { existsSync } from "node:fs";
|
|
19
19
|
import { randomUUID } from "node:crypto";
|
package/dist/acp.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Eo as Preset,
|
|
2
|
-
import { $ as PermissionOption, A as DeleteSessionRequest, At as ToolCallContent, B as JsonRpcId, Bt as createClientDeclaredTools, C as CancelNotification, Ct as SetSessionConfigOptionResponse, D as ContentChunk, Dt as TerminalOutputResponse, E as ContentBlock, Et as TerminalExitStatus, F as ImageContent, Ft as WriteTextFileRequest, G as JsonRpcSuccess, H as JsonRpcNotification, I as InitializeRequest, It as AcpClientToolSpec, J as LoadSessionRequest, K as ListSessionsRequest, L as InitializeResponse, Lt as CLIENT_TOOL_CALL_METHOD, M as EmbeddedResourceResource, Mt as ToolCallStatus, N as EnvVariable, Nt as ToolCallUpdate, O as Cost, Ot as TextContent, P as HttpHeader, Pt as ToolKind, Q as NewSessionResponse, R as JsonRpcError, Rt as CLIENT_TOOL_CANCEL_METHOD, S as BlobResourceContents, St as SetSessionConfigOptionRequest, T as ContentAnnotations, Tt as StopReason, U as JsonRpcRequest, V as JsonRpcMessage, Vt as parseClientToolSpecs, W as JsonRpcResponse, X as McpCapabilities, Y as LoadSessionResponse, Z as NewSessionRequest, _ as AudioContent, _t as SessionInfo, a as AcpImplementationInfo, at as RequestPermissionOutcome, b as AvailableCommand, bt as SessionNotification, c as AcpModelOption, ct as ResumeSessionRequest, d as AcpPromptMapping, dt as SessionCapabilities, et as PlanEntry, f as AcpServerOptions, ft as SessionConfigOption, g as AgentCapabilities, gt as SessionConfigSelectOptions, h as AgentAuthCapabilities, ht as SessionConfigSelectOption, i as AcpErrorCode, it as ReadTextFileRequest, j as EmbeddedResource, jt as ToolCallLocation, k as CreateTerminalRequest, kt as TextResourceContents, l as AcpPeer, lt as ResumeSessionResponse, m as AcpSessionRuntime, mt as SessionConfigSelectGroup, n as AcpClientCapabilities, nt as PromptRequest, o as AcpMcpServer, ot as RequestPermissionRequest, p as AcpSessionContentMapper, pt as SessionConfigOptionCategory, q as ListSessionsResponse, r as AcpContentMapper, rt as PromptResponse, s as AcpModelChoice, st as ResourceLink, t as ACP_PROTOCOL_VERSION, tt as PromptCapabilities, u as AcpPermissionPolicy, ut as Role, v as AuthMethod, vt as SessionMode, w as CloseSessionRequest, wt as SetSessionModeRequest, x as AvailableCommandInput, xt as SessionUpdate, y as AuthenticateRequest, yt as SessionModeState, z as JsonRpcFailure, zt as ClientToolCallResponse } from "./types-
|
|
1
|
+
import { Eo as Preset, MP as SessionContentBlock, ZP as ToolResultContent, dP as McpServerConfig, mF as ToolDef, oF as TurnUsage } from "./index-WlE93Q6d.js";
|
|
2
|
+
import { $ as PermissionOption, A as DeleteSessionRequest, At as ToolCallContent, B as JsonRpcId, Bt as createClientDeclaredTools, C as CancelNotification, Ct as SetSessionConfigOptionResponse, D as ContentChunk, Dt as TerminalOutputResponse, E as ContentBlock, Et as TerminalExitStatus, F as ImageContent, Ft as WriteTextFileRequest, G as JsonRpcSuccess, H as JsonRpcNotification, I as InitializeRequest, It as AcpClientToolSpec, J as LoadSessionRequest, K as ListSessionsRequest, L as InitializeResponse, Lt as CLIENT_TOOL_CALL_METHOD, M as EmbeddedResourceResource, Mt as ToolCallStatus, N as EnvVariable, Nt as ToolCallUpdate, O as Cost, Ot as TextContent, P as HttpHeader, Pt as ToolKind, Q as NewSessionResponse, R as JsonRpcError, Rt as CLIENT_TOOL_CANCEL_METHOD, S as BlobResourceContents, St as SetSessionConfigOptionRequest, T as ContentAnnotations, Tt as StopReason, U as JsonRpcRequest, V as JsonRpcMessage, Vt as parseClientToolSpecs, W as JsonRpcResponse, X as McpCapabilities, Y as LoadSessionResponse, Z as NewSessionRequest, _ as AudioContent, _t as SessionInfo, a as AcpImplementationInfo, at as RequestPermissionOutcome, b as AvailableCommand, bt as SessionNotification, c as AcpModelOption, ct as ResumeSessionRequest, d as AcpPromptMapping, dt as SessionCapabilities, et as PlanEntry, f as AcpServerOptions, ft as SessionConfigOption, g as AgentCapabilities, gt as SessionConfigSelectOptions, h as AgentAuthCapabilities, ht as SessionConfigSelectOption, i as AcpErrorCode, it as ReadTextFileRequest, j as EmbeddedResource, jt as ToolCallLocation, k as CreateTerminalRequest, kt as TextResourceContents, l as AcpPeer, lt as ResumeSessionResponse, m as AcpSessionRuntime, mt as SessionConfigSelectGroup, n as AcpClientCapabilities, nt as PromptRequest, o as AcpMcpServer, ot as RequestPermissionRequest, p as AcpSessionContentMapper, pt as SessionConfigOptionCategory, q as ListSessionsResponse, r as AcpContentMapper, rt as PromptResponse, s as AcpModelChoice, st as ResourceLink, t as ACP_PROTOCOL_VERSION, tt as PromptCapabilities, u as AcpPermissionPolicy, ut as Role, v as AuthMethod, vt as SessionMode, w as CloseSessionRequest, wt as SetSessionModeRequest, x as AvailableCommandInput, xt as SessionUpdate, y as AuthenticateRequest, yt as SessionModeState, z as JsonRpcFailure, zt as ClientToolCallResponse } from "./types-SXqk6hLD.js";
|
|
3
3
|
import { Buffer } from "node:buffer";
|
|
4
4
|
import { Readable, Writable } from "node:stream";
|
|
5
5
|
//#region src/acp/server.d.ts
|
package/dist/acp.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as JsonRpcRemoteError, r as createJsonRpcConnection } from "./json-rpc-G0rBfEar.js";
|
|
2
|
-
import { a as wrapToolsForAcpClient, c as sessionBlocksToAcp, d as CLIENT_TOOL_CALL_METHOD, f as CLIENT_TOOL_CANCEL_METHOD, i as withAcpDefaultTools, l as stopReasonFromRun, m as parseClientToolSpecs, n as AcpProtocolError, o as acpMcpServersToZidane, p as createClientDeclaredTools, r as createAcpServer, s as acpPromptToPromptParts, t as runAcpStdioServer, u as toolResultToAcpContent } from "./acp-
|
|
2
|
+
import { a as wrapToolsForAcpClient, c as sessionBlocksToAcp, d as CLIENT_TOOL_CALL_METHOD, f as CLIENT_TOOL_CANCEL_METHOD, i as withAcpDefaultTools, l as stopReasonFromRun, m as parseClientToolSpecs, n as AcpProtocolError, o as acpMcpServersToZidane, p as createClientDeclaredTools, r as createAcpServer, s as acpPromptToPromptParts, t as runAcpStdioServer, u as toolResultToAcpContent } from "./acp-Cl4gCZN6.js";
|
|
3
3
|
export { AcpProtocolError, CLIENT_TOOL_CALL_METHOD, CLIENT_TOOL_CANCEL_METHOD, JsonRpcRemoteError, acpMcpServersToZidane, acpPromptToPromptParts, createAcpServer, createClientDeclaredTools, createJsonRpcConnection, parseClientToolSpecs, runAcpStdioServer, sessionBlocksToAcp, stopReasonFromRun, toolResultToAcpContent, withAcpDefaultTools, wrapToolsForAcpClient };
|
|
@@ -18,11 +18,11 @@ import { l as normalizeArtifactInput, r as ARTIFACT_KINDS, t as ARTIFACTS_METADA
|
|
|
18
18
|
import { c as resumeChainRunIds, s as loadSession, t as createSession, u as withExtensionSession } from "./session-BORxmqlM.js";
|
|
19
19
|
import { i as readFileInputPaths } from "./format-bytes-LHrZVMIt.js";
|
|
20
20
|
import { a as hydrateReadStateFromSessionAsync, c as readStateKey, n as getToolDedupState, o as markReadStateElided, t as getReadState } from "./read-state-kgOvuIcp.js";
|
|
21
|
-
import {
|
|
22
|
-
import { a as readonlyView, i as isKnownHookEvent, n as createDecider, r as isDecisionHookEvent } from "./decisions-
|
|
23
|
-
import { a as shell, b as recordAgentExtensionWiring, c as isReadOnlyShellCommand, d as headSlice, f as middleTruncate, h as mediaPayloadBytes, i as createShellTool, l as readPersistedBlobOnHost, m as mediaAgeoutMarker, n as waitTask, o as interpretShellResult, r as shellKill, s as classifyShellCommand, u as writePersistedBlob } from "./wait-task-
|
|
24
|
-
import { t as createProcessContext } from "./contexts-
|
|
25
|
-
import { t as resolveDetachedTasksCapability } from "./types-
|
|
21
|
+
import { i as isSafeRecordKey, r as isJson } from "./json-BjClr43H.js";
|
|
22
|
+
import { a as readonlyView, i as isKnownHookEvent, n as createDecider, r as isDecisionHookEvent } from "./decisions-hsw5XS2g.js";
|
|
23
|
+
import { a as shell, b as recordAgentExtensionWiring, c as isReadOnlyShellCommand, d as headSlice, f as middleTruncate, h as mediaPayloadBytes, i as createShellTool, l as readPersistedBlobOnHost, m as mediaAgeoutMarker, n as waitTask, o as interpretShellResult, r as shellKill, s as classifyShellCommand, u as writePersistedBlob } from "./wait-task-BiI5UaZQ.js";
|
|
24
|
+
import { t as createProcessContext } from "./contexts-DLZTSRHU.js";
|
|
25
|
+
import { t as resolveDetachedTasksCapability } from "./types-4q1bFG53.js";
|
|
26
26
|
import { c as suspensionOf, i as StaleEpochError, l as withStepDecision, n as RunLeaseHeldError, o as stepDecision, r as RunSuspendedError } from "./errors-VVNmJD8V.js";
|
|
27
27
|
import { p as LEASE_STALE_MS } from "./run-fence-gQHS7RHk.js";
|
|
28
28
|
import { n as createMemoryRuntime } from "./memory-CEBwrC3I.js";
|
|
@@ -34,7 +34,7 @@ import { n as looksBinary } from "./binary-detect-Dtj5NGns.js";
|
|
|
34
34
|
import { n as httpFetchWrapper } from "./http-intercept-1kspO7Ic.js";
|
|
35
35
|
import { r as findProjectRoot } from "./project-root-BZcgGJMi.js";
|
|
36
36
|
import { n as isToolFailure, r as toolErrorText, t as ToolFailure } from "./failure-_rDKdaLk.js";
|
|
37
|
-
import { t as createNestedCallRecorder } from "./nested-call-record-
|
|
37
|
+
import { t as createNestedCallRecorder } from "./nested-call-record-OayszZBQ.js";
|
|
38
38
|
import { n as createCallToolTool, r as unwrapCallTool, t as CALL_TOOL_NAME } from "./call-tool-6szvNmQR.js";
|
|
39
39
|
import { n as validateToolArgs } from "./validation-Rrpbb2zy.js";
|
|
40
40
|
import { t as effectiveInputFromTurn } from "./stats-Bmj46D4h.js";
|
|
@@ -6712,14 +6712,19 @@ function createNestedToolCaller(ctx, turnId, parentCallId, parentSignal, dispatc
|
|
|
6712
6712
|
const nestedInterrupted = () => {
|
|
6713
6713
|
interrupted = true;
|
|
6714
6714
|
};
|
|
6715
|
+
/** What the caller passed per call (`line`, `streamProgress`), until the call settles. */
|
|
6716
|
+
const callOptions = /* @__PURE__ */ new Map();
|
|
6717
|
+
const nestedCallOptions = (callId) => callOptions.get(callId);
|
|
6715
6718
|
const nestedCtx = (signal, extra = {}) => ({
|
|
6716
6719
|
...ctx,
|
|
6717
6720
|
signal,
|
|
6718
6721
|
nestedParentCallId: parentCallId,
|
|
6719
6722
|
nestedInterrupted,
|
|
6723
|
+
nestedCallOptions,
|
|
6720
6724
|
...extra
|
|
6721
6725
|
});
|
|
6722
6726
|
const settled = (callId, result, structured) => {
|
|
6727
|
+
callOptions.delete(callId);
|
|
6723
6728
|
recorder.finish(callId, {
|
|
6724
6729
|
status: result.isError === true ? "error" : "ok",
|
|
6725
6730
|
output: toolResultToText(result.content)
|
|
@@ -6732,6 +6737,7 @@ function createNestedToolCaller(ctx, turnId, parentCallId, parentSignal, dispatc
|
|
|
6732
6737
|
};
|
|
6733
6738
|
};
|
|
6734
6739
|
const failed = (callId, err) => {
|
|
6740
|
+
callOptions.delete(callId);
|
|
6735
6741
|
recorder.finish(callId, {
|
|
6736
6742
|
status: "error",
|
|
6737
6743
|
output: err instanceof Error ? err.message : String(err)
|
|
@@ -6783,7 +6789,12 @@ function createNestedToolCaller(ctx, turnId, parentCallId, parentSignal, dispatc
|
|
|
6783
6789
|
id: callId,
|
|
6784
6790
|
name,
|
|
6785
6791
|
input,
|
|
6786
|
-
runsNestedAgent: def?.runsNestedAgent === true
|
|
6792
|
+
runsNestedAgent: def?.runsNestedAgent === true,
|
|
6793
|
+
...options.line !== void 0 ? { line: options.line } : {}
|
|
6794
|
+
});
|
|
6795
|
+
if (options.line !== void 0 || options.streamProgress) callOptions.set(callId, {
|
|
6796
|
+
...options.line !== void 0 ? { line: options.line } : {},
|
|
6797
|
+
...options.streamProgress ? { streamProgress: true } : {}
|
|
6787
6798
|
});
|
|
6788
6799
|
if (def?.callsNestedTools === true) {
|
|
6789
6800
|
const output = `Tool "${name}" cannot be called from another tool.`;
|
|
@@ -7251,6 +7262,7 @@ function mcpConnectionFor(ctx) {
|
|
|
7251
7262
|
* fields.
|
|
7252
7263
|
*/
|
|
7253
7264
|
function buildToolHookBase(ctx, turnId, callId, name, displayName, input) {
|
|
7265
|
+
const scriptLine = ctx.nestedCallOptions?.(callId)?.line;
|
|
7254
7266
|
return {
|
|
7255
7267
|
turnId,
|
|
7256
7268
|
callId,
|
|
@@ -7261,6 +7273,7 @@ function buildToolHookBase(ctx, turnId, callId, name, displayName, input) {
|
|
|
7261
7273
|
...ctx.parentRunId !== void 0 ? { parentRunId: ctx.parentRunId } : {},
|
|
7262
7274
|
...ctx.parentCallId !== void 0 ? { parentCallId: ctx.parentCallId } : {},
|
|
7263
7275
|
...ctx.nestedParentCallId !== void 0 ? { parentToolCallId: ctx.nestedParentCallId } : {},
|
|
7276
|
+
...scriptLine !== void 0 ? { scriptLine } : {},
|
|
7264
7277
|
...ctx.tools[name]?.runsNestedAgent === true ? { runsNestedAgent: true } : {},
|
|
7265
7278
|
...typeof ctx.depth === "number" ? { depth: ctx.depth } : {}
|
|
7266
7279
|
};
|
|
@@ -7405,10 +7418,29 @@ function revalidateCoercedInput(before, input, schema) {
|
|
|
7405
7418
|
};
|
|
7406
7419
|
}
|
|
7407
7420
|
/**
|
|
7421
|
+
* `ToolContext.reportProgress` for one call, or `undefined` when nothing shows
|
|
7422
|
+
* its live output: present on a top-level call of a tool that calls others (a
|
|
7423
|
+
* codemode script), and on a nested call whose caller asked for it
|
|
7424
|
+
* (`NestedToolCallOptions.streamProgress`). Each report fires `tool:progress`
|
|
7425
|
+
* without waiting for its listeners.
|
|
7426
|
+
*/
|
|
7427
|
+
function progressReporter(ctx, hookBase) {
|
|
7428
|
+
const base = hookBase();
|
|
7429
|
+
if (!(ctx.nestedParentCallId === void 0 ? ctx.tools[base.name]?.callsNestedTools === true : ctx.nestedCallOptions?.(base.callId)?.streamProgress === true)) return void 0;
|
|
7430
|
+
return (progress) => {
|
|
7431
|
+
try {
|
|
7432
|
+
Promise.resolve(ctx.hooks.callHook("tool:progress", {
|
|
7433
|
+
...base,
|
|
7434
|
+
progress
|
|
7435
|
+
})).catch(() => {});
|
|
7436
|
+
} catch {}
|
|
7437
|
+
};
|
|
7438
|
+
}
|
|
7439
|
+
/**
|
|
7408
7440
|
* The {@link ToolContext} handed to a native tool body. `toolState.begin`
|
|
7409
7441
|
* runs here, so the caller must invoke this inside its execute `try`.
|
|
7410
7442
|
*/
|
|
7411
|
-
function buildToolContext(ctx, turnId, callId, childSignal, runProviders, nested, reportOutcome, reportStructured) {
|
|
7443
|
+
function buildToolContext(ctx, turnId, callId, childSignal, runProviders, nested, reportOutcome, reportStructured, reportProgress) {
|
|
7412
7444
|
const callTool = nested?.callTool;
|
|
7413
7445
|
const nestedSleep = nested?.sleep;
|
|
7414
7446
|
return {
|
|
@@ -7442,6 +7474,7 @@ function buildToolContext(ctx, turnId, callId, childSignal, runProviders, nested
|
|
|
7442
7474
|
durable: toolDurable(ctx),
|
|
7443
7475
|
reportOutcome,
|
|
7444
7476
|
...ctx.nestedParentCallId !== void 0 ? { reportStructured } : {},
|
|
7477
|
+
...reportProgress ? { reportProgress } : {},
|
|
7445
7478
|
...callTool ? {
|
|
7446
7479
|
callTool,
|
|
7447
7480
|
nestedTools: ctx.tools
|
|
@@ -7713,7 +7746,7 @@ async function runSingleToolDispatch(ctx, call, turnId, fixed) {
|
|
|
7713
7746
|
reportedOutcome = outcome;
|
|
7714
7747
|
}, (value) => {
|
|
7715
7748
|
reportedStructured = { value };
|
|
7716
|
-
});
|
|
7749
|
+
}, progressReporter(ctx, () => buildToolHookBase(ctx, turnId, callId, call.name, displayName, effectiveInput)));
|
|
7717
7750
|
const bodyPromise = preflightThenBody(ctx, toolDef, effectiveInput, toolCtx, {
|
|
7718
7751
|
fingerprint,
|
|
7719
7752
|
gate: gateCtx.resumeState
|
|
@@ -8417,6 +8450,7 @@ async function startJoinedToolCall(ctx, call, turnId, index) {
|
|
|
8417
8450
|
let reportedOutcome;
|
|
8418
8451
|
let reportedStructured;
|
|
8419
8452
|
const runProviders = runProvidersFor(ctx);
|
|
8453
|
+
const reportProgress = progressReporter(ctx, () => buildToolHookBase(ctx, turnId, callId, call.name, displayName, effectiveInput));
|
|
8420
8454
|
const toolCtx = {
|
|
8421
8455
|
provider: ctx.provider,
|
|
8422
8456
|
model: ctx.model,
|
|
@@ -8449,6 +8483,7 @@ async function startJoinedToolCall(ctx, call, turnId, index) {
|
|
|
8449
8483
|
reportedOutcome = outcome;
|
|
8450
8484
|
},
|
|
8451
8485
|
...ctx.nestedParentCallId !== void 0 ? { parentToolCallId: ctx.nestedParentCallId } : {},
|
|
8486
|
+
...reportProgress ? { reportProgress } : {},
|
|
8452
8487
|
...ctx.nestedStructured ? { reportStructured: (value) => {
|
|
8453
8488
|
reportedStructured = { value };
|
|
8454
8489
|
} } : {}
|
|
@@ -12193,12 +12228,14 @@ function resolveCodemodeConfig(value) {
|
|
|
12193
12228
|
if (value === true) return {
|
|
12194
12229
|
mode: "on",
|
|
12195
12230
|
catalog: "names",
|
|
12196
|
-
directCallNotes: true
|
|
12231
|
+
directCallNotes: true,
|
|
12232
|
+
streamProgress: false
|
|
12197
12233
|
};
|
|
12198
12234
|
return {
|
|
12199
12235
|
mode: value.mode === "only" ? "only" : "on",
|
|
12200
12236
|
catalog: value.catalog === "full" ? "full" : "names",
|
|
12201
12237
|
directCallNotes: value.directCallNotes !== false,
|
|
12238
|
+
streamProgress: value.streamProgress === true,
|
|
12202
12239
|
...typeof value.inlineBudget === "number" && Number.isFinite(value.inlineBudget) && value.inlineBudget >= 0 ? { inlineBudget: value.inlineBudget } : {}
|
|
12203
12240
|
};
|
|
12204
12241
|
}
|
|
@@ -12735,18 +12772,24 @@ function exitIssue(name, args, structured) {
|
|
|
12735
12772
|
/**
|
|
12736
12773
|
* The run's tools as script calls: each goes through `callTool`, failures
|
|
12737
12774
|
* reject. Failed calls and non-zero exits are pushed to `issues`, so the
|
|
12738
|
-
* result can say so when the script's own output hides them.
|
|
12775
|
+
* result can say so when the script's own output hides them. With
|
|
12776
|
+
* `streamProgress`, each call carries its script line and reports its live
|
|
12777
|
+
* output.
|
|
12739
12778
|
*/
|
|
12740
|
-
function createScriptTools(entries, tools, callTool, issues = []) {
|
|
12779
|
+
function createScriptTools(entries, tools, callTool, issues = [], streamProgress = false) {
|
|
12741
12780
|
return entries.map((entry) => {
|
|
12742
12781
|
const inputSchema = tools[entry.canonicalName]?.spec.inputSchema;
|
|
12743
12782
|
return {
|
|
12744
12783
|
name: entry.name,
|
|
12745
12784
|
description: firstParagraph(entry.description),
|
|
12746
12785
|
...inputSchema ? { inputSchema } : {},
|
|
12747
|
-
execute: async (args, { signal }) => {
|
|
12786
|
+
execute: async (args, { signal, line }) => {
|
|
12748
12787
|
if (args !== void 0 && !isRecord(args)) throw new Error(`tools.${toCodemodeIdentifier(entry.name)}() takes an object of named arguments, not ${Array.isArray(args) ? "an array" : `a ${typeof args}`}.`);
|
|
12749
|
-
const result = await callTool(entry.canonicalName, args ?? {}, {
|
|
12788
|
+
const result = await callTool(entry.canonicalName, args ?? {}, {
|
|
12789
|
+
signal,
|
|
12790
|
+
...line !== void 0 ? { line } : {},
|
|
12791
|
+
...streamProgress ? { streamProgress: true } : {}
|
|
12792
|
+
});
|
|
12750
12793
|
if (result.isError) {
|
|
12751
12794
|
const message = toolResultToText(result.output).trim() || `${entry.name} failed`;
|
|
12752
12795
|
if (!signal?.aborted) issues.push({
|
|
@@ -12856,7 +12899,7 @@ function isWorkerMissing(result) {
|
|
|
12856
12899
|
const message = result.error.message;
|
|
12857
12900
|
return !message.startsWith("Failed to load QuickJS") && /ENOENT|Cannot find module/i.test(message);
|
|
12858
12901
|
}
|
|
12859
|
-
const loadSandbox = lazyAsync(() => import("./host-
|
|
12902
|
+
const loadSandbox = lazyAsync(() => import("./host-DEoEzQal.js").then((n) => n.n));
|
|
12860
12903
|
const loadWasm = lazyAsync(() => import("./wasm-injC3S9w.js").then((n) => n.n));
|
|
12861
12904
|
/** FNV-1a of the call id: the per-call random seed. */
|
|
12862
12905
|
function seedOf(text) {
|
|
@@ -12907,12 +12950,14 @@ function createCodemodeTool(options = {}) {
|
|
|
12907
12950
|
if (error instanceof CodemodeSourceError) throw new Error(`Invalid codemode script: ${error.message}`);
|
|
12908
12951
|
throw error;
|
|
12909
12952
|
}
|
|
12953
|
+
const reportProgress = options.streamProgress ? ctx.reportProgress : void 0;
|
|
12954
|
+
const streamProgress = reportProgress !== void 0;
|
|
12910
12955
|
const entries = buildCatalog(ctx, nestedTools);
|
|
12911
12956
|
const shortcuts = scriptShortcuts(entries);
|
|
12912
12957
|
const issues = [];
|
|
12913
12958
|
const [{ CodemodeSandbox }, wasmModule] = await Promise.all([loadSandbox(), loadWasm()]);
|
|
12914
12959
|
const sandbox = new CodemodeSandbox({
|
|
12915
|
-
tools: createScriptTools(entries, nestedTools, callTool, issues),
|
|
12960
|
+
tools: createScriptTools(entries, nestedTools, callTool, issues, streamProgress),
|
|
12916
12961
|
globals: [...createDiscoveryGlobals(entries, nestedTools), sleepGlobal(ctx.nestedSleep)],
|
|
12917
12962
|
toolHints: scriptToolHints(nestedTools, ctx.toolAliases),
|
|
12918
12963
|
...shortcuts ? { shortcuts } : {},
|
|
@@ -12931,7 +12976,16 @@ function createCodemodeTool(options = {}) {
|
|
|
12931
12976
|
determinism: {
|
|
12932
12977
|
nowMs,
|
|
12933
12978
|
seed: seedOf(ctx.callId)
|
|
12934
|
-
}
|
|
12979
|
+
},
|
|
12980
|
+
...reportProgress ? {
|
|
12981
|
+
trackLines: true,
|
|
12982
|
+
onOutput: (item) => {
|
|
12983
|
+
if (item.type === "text") reportProgress({
|
|
12984
|
+
stream: item.console ? "console" : "output",
|
|
12985
|
+
text: item.text
|
|
12986
|
+
});
|
|
12987
|
+
}
|
|
12988
|
+
} : {}
|
|
12935
12989
|
});
|
|
12936
12990
|
result = await run();
|
|
12937
12991
|
const deadline = Date.now() + WORKER_MISSING_RETRY_MS;
|
|
@@ -13149,7 +13203,8 @@ function buildRunToolRegistry(input) {
|
|
|
13149
13203
|
tools: native,
|
|
13150
13204
|
...codemode.inlineBudget !== void 0 ? { inlineBudget: codemode.inlineBudget } : {},
|
|
13151
13205
|
...effectiveToolAliases ? { toolAliases: effectiveToolAliases } : {},
|
|
13152
|
-
mcp: (mcpServers?.length ?? 0) > 0
|
|
13206
|
+
mcp: (mcpServers?.length ?? 0) > 0,
|
|
13207
|
+
...codemode.streamProgress ? { streamProgress: true } : {}
|
|
13153
13208
|
});
|
|
13154
13209
|
Object.assign(described, applyToolDescriptionOverrides({ [CODEMODE_TOOL_NAME]: tool }, toolDescriptions, mcpToolNames, mcpServers));
|
|
13155
13210
|
}
|
|
@@ -14886,4 +14941,4 @@ function cacheImpact(rt, change) {
|
|
|
14886
14941
|
//#endregion
|
|
14887
14942
|
export { interceptProvider as $, buildPostCompactAttachments as A, buildFullCompactPrompt as B, resolveTasksDir as C, hashMessages as D, forgetSessionCacheBaseline as E, BASE_INSTRUCTIONS as F, sliceForCompaction as G, buildUpToCompactPrompt as H, NO_TOOLS_PREAMBLE as I, truncateHeadForPtlRetry as J, stripImagesFromTurns as K, TRAILER as L, selectFilesFromSession as M, selectRecentFiles as N, installCacheBreakLogger as O, compactConversation as P, resolveModelTargets as Q, buildCompactPrompt as R, resolveSessionDir as S, fnv1a32 as T, ANCHOR_PREVIEW_MAX_CHARS as U, buildTailCompactPrompt as V, anchorPreviewFor as W, CompactPromptTooLongError as X, CompactInvalidInputError as Y, normalizeProviders as Z, rehomePersistedStubs as _, TOOL_USE_CANCELLED_MESSAGE as a, resolveMcpWarningsDir as b, collectNewlyStaleReadPaths as c, PERSISTED_STUB_PREFIX as d, interceptSubmittedPrompt as et, PERSISTENCE_PREVIEW_BYTES as f, migrateSessionArtifactDirs as g, maybePersistToolResult as h, SHELL_CASCADE_CANCEL_MESSAGE as i, selectFilesFromReadState as j, snapshotCacheDimensions as k, renderStaleReadNotice as l, cleanupPersistedSession as m, createAgent as n, TOOL_USE_SKIPPED_MESSAGE as o, buildPersistedStub as p, summaryToTurn as q, INTERRUPT_MESSAGE_FOR_TOOL_USE as r, turnsToMessages as s, agent_exports as t, applyCompactSummaryCutoff as u, resolveLegacyPersistDir as v, diffCacheDimensions as w, resolvePersistDir as x, resolveLegacySessionDir as y, buildFromCompactPrompt as z };
|
|
14888
14943
|
|
|
14889
|
-
//# sourceMappingURL=agent-
|
|
14944
|
+
//# sourceMappingURL=agent-Dh_XZ7fj.js.map
|