zidane 9.1.14 → 9.1.16
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-cli.js +10 -10
- package/dist/{acp-CNLIFVV9.js → acp-fylEUqkx.js} +11 -11
- package/dist/{acp-CNLIFVV9.js.map → acp-fylEUqkx.js.map} +1 -1
- package/dist/acp.d.ts +2 -2
- package/dist/acp.js +1 -1
- package/dist/{agent-B_RXMaJN.js → agent-DFUxWdyg.js} +61 -155
- package/dist/agent-DFUxWdyg.js.map +1 -0
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{allowed-tools-CVcayWT7.js → allowed-tools-WLqA9mVe.js} +3 -3
- package/dist/{allowed-tools-CVcayWT7.js.map → allowed-tools-WLqA9mVe.js.map} +1 -1
- package/dist/{anthropic-Bsz-QTFD.js → anthropic-DlLGsijI.js} +5 -5
- package/dist/{anthropic-Bsz-QTFD.js.map → anthropic-DlLGsijI.js.map} +1 -1
- package/dist/{auth-store-port-7YV5Ecs_.js → auth-store-port-CWl5l-4U.js} +2 -2
- package/dist/{auth-store-port-7YV5Ecs_.js.map → auth-store-port-CWl5l-4U.js.map} +1 -1
- package/dist/{auto-update-restart-CiYNo3ey.js → auto-update-restart-DZ0hfstQ.js} +33 -33
- package/dist/{auto-update-restart-CiYNo3ey.js.map → auto-update-restart-DZ0hfstQ.js.map} +1 -1
- package/dist/{browser-entry-DQtxFXNM.d.ts → browser-entry-B5lDeRIa.d.ts} +4 -4
- package/dist/{browser-entry-DQtxFXNM.d.ts.map → browser-entry-B5lDeRIa.d.ts.map} +1 -1
- package/dist/channels.d.ts +5 -5
- package/dist/channels.js +1 -1
- package/dist/chat/browser.d.ts +3 -3
- package/dist/chat/browser.js +2 -2
- package/dist/chat/pure.d.ts +4 -4
- package/dist/chat/pure.js +1 -1
- package/dist/chat.d.ts +4 -4
- package/dist/chat.js +17 -17
- package/dist/{cli-shared-B1DuVD1x.js → cli-shared-By7xZXZ9.js} +4 -4
- package/dist/{cli-shared-B1DuVD1x.js.map → cli-shared-By7xZXZ9.js.map} +1 -1
- package/dist/{client-QWwqT6rw.d.ts → client-C1K4hh7B.d.ts} +2 -2
- package/dist/{client-QWwqT6rw.d.ts.map → client-C1K4hh7B.d.ts.map} +1 -1
- package/dist/{client-core-DBIK0mLO.d.ts → client-core-eugtzdxB.d.ts} +4 -4
- package/dist/{client-core-DBIK0mLO.d.ts.map → client-core-eugtzdxB.d.ts.map} +1 -1
- package/dist/{connection-loop-DV95THTm.d.ts → connection-loop-D4rfJNjP.d.ts} +4 -4
- package/dist/{connection-loop-DV95THTm.d.ts.map → connection-loop-D4rfJNjP.d.ts.map} +1 -1
- package/dist/{context-transport-CNkw7e59.js → context-transport-VqYIIzbN.js} +2 -2
- package/dist/{context-transport-CNkw7e59.js.map → context-transport-VqYIIzbN.js.map} +1 -1
- package/dist/contexts/daytona.d.ts +1 -1
- package/dist/contexts/daytona.js +1 -1
- package/dist/contexts/e2b.d.ts +1 -1
- package/dist/{credentials-DusprtsC.js → credentials-DCjZSZYv.js} +9 -9
- package/dist/{credentials-DusprtsC.js.map → credentials-DCjZSZYv.js.map} +1 -1
- package/dist/{cwd-picker-8b8wyRw_.js → cwd-picker-DHzlbyDU.js} +3 -3
- package/dist/{cwd-picker-8b8wyRw_.js.map → cwd-picker-DHzlbyDU.js.map} +1 -1
- package/dist/daemon-cli.js +3 -3
- package/dist/{daytona-Nr4g-WwO.js → daytona-gZ63sEYi.js} +2 -2
- package/dist/{daytona-Nr4g-WwO.js.map → daytona-gZ63sEYi.js.map} +1 -1
- package/dist/{debug-log-CT7yHyZC.js → debug-log-BgaYGg-6.js} +2 -2
- package/dist/{debug-log-CT7yHyZC.js.map → debug-log-BgaYGg-6.js.map} +1 -1
- package/dist/{decisions-CkQYLwAj.js → decisions-DZjZAVFe.js} +2 -2
- package/dist/{decisions-CkQYLwAj.js.map → decisions-DZjZAVFe.js.map} +1 -1
- package/dist/{discovery-BXU8LxYW.js → discovery-B19e1lR_.js} +6 -6
- package/dist/{discovery-BXU8LxYW.js.map → discovery-B19e1lR_.js.map} +1 -1
- package/dist/durable/sqlite.d.ts +2 -2
- package/dist/durable/sqlite.js +2 -2
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +1 -1
- package/dist/{engine-CIQGA6mR.js → engine-CabTSO_l.js} +5 -5
- package/dist/{engine-CIQGA6mR.js.map → engine-CabTSO_l.js.map} +1 -1
- package/dist/{environment-credentials-C2nLEpDJ.js → environment-credentials-C4iXqezG.js} +3 -3
- package/dist/{environment-credentials-C2nLEpDJ.js.map → environment-credentials-C4iXqezG.js.map} +1 -1
- package/dist/{errors-BOcRncxO.js → errors-DMUkkRXB.js} +4 -1
- package/dist/{errors-BOcRncxO.js.map → errors-DMUkkRXB.js.map} +1 -1
- package/dist/errors.d.ts +2 -2
- package/dist/errors.js +2 -2
- package/dist/{eval-CDb8jqv8.js → eval-BLMd9aGP.js} +4 -4
- package/dist/{eval-CDb8jqv8.js.map → eval-BLMd9aGP.js.map} +1 -1
- package/dist/eval.d.ts +1 -1
- package/dist/eval.js +1 -1
- package/dist/{executor-Dh7SvipK.js → executor-BWe1lts3.js} +2 -2
- package/dist/{executor-Dh7SvipK.js.map → executor-BWe1lts3.js.map} +1 -1
- package/dist/extensions/testing.d.ts +1 -1
- package/dist/extensions/testing.js +2 -2
- package/dist/{extensions-CZQGNuIo.js → extensions-D-SsXKa1.js} +8 -8
- package/dist/{extensions-CZQGNuIo.js.map → extensions-D-SsXKa1.js.map} +1 -1
- package/dist/{extensions-client-BqjGEKXz.d.ts → extensions-client-DEY47_KE.d.ts} +4 -4
- package/dist/{extensions-client-BqjGEKXz.d.ts.map → extensions-client-DEY47_KE.d.ts.map} +1 -1
- package/dist/extensions.d.ts +1 -1
- package/dist/extensions.js +5 -5
- package/dist/{fetch-url-CpNH8yBJ.js → fetch-url-Bi4dFdiC.js} +2 -2
- package/dist/{fetch-url-CpNH8yBJ.js.map → fetch-url-Bi4dFdiC.js.map} +1 -1
- package/dist/{fold-rules-B3axwe7R.d.ts → fold-rules-DQ-xV5NK.d.ts} +2 -2
- package/dist/{fold-rules-B3axwe7R.d.ts.map → fold-rules-DQ-xV5NK.d.ts.map} +1 -1
- package/dist/{google-CIV1r4wo.js → google-M4QkSSpL.js} +6 -6
- package/dist/{google-CIV1r4wo.js.map → google-M4QkSSpL.js.map} +1 -1
- package/dist/{headless-BNIg5W-5.js → headless-DKFo2gSY.js} +6 -6
- package/dist/{headless-BNIg5W-5.js.map → headless-DKFo2gSY.js.map} +1 -1
- package/dist/{headless-format-CvOd8YOP.js → headless-format-6tD5Yo3J.js} +3 -3
- package/dist/{headless-format-CvOd8YOP.js.map → headless-format-6tD5Yo3J.js.map} +1 -1
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +2 -2
- package/dist/{history-announce-C1GNdDNe.js → history-announce-BSfQ7-8k.js} +2 -2
- package/dist/{history-announce-C1GNdDNe.js.map → history-announce-BSfQ7-8k.js.map} +1 -1
- package/dist/history-worker.js +3 -3
- package/dist/{host-signals-DOfBZFxb.js → host-signals-DM_Xzcq_.js} +5 -5
- package/dist/{host-signals-DOfBZFxb.js.map → host-signals-DM_Xzcq_.js.map} +1 -1
- package/dist/{host-H6QiGbBp.js → host-uJizkMso.js} +12 -12
- package/dist/{host-H6QiGbBp.js.map → host-uJizkMso.js.map} +1 -1
- package/dist/{host-version-Cile5HOK.js → host-version-BJOeS7sf.js} +2 -2
- package/dist/{host-version-Cile5HOK.js.map → host-version-BJOeS7sf.js.map} +1 -1
- package/dist/{index-C1A0RHDG.d.ts → index-BJjEWOHI.d.ts} +9 -9
- package/dist/{index-C1A0RHDG.d.ts.map → index-BJjEWOHI.d.ts.map} +1 -1
- package/dist/{index-C6rzc-tt.d.ts → index-BZM8tu4L.d.ts} +44 -3
- package/dist/index-BZM8tu4L.d.ts.map +1 -0
- package/dist/{index-CaRlR8je.d.ts → index-CSrP8IT4.d.ts} +4 -4
- package/dist/{index-CaRlR8je.d.ts.map → index-CSrP8IT4.d.ts.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +35 -35
- package/dist/{interactions-protocol-DHEIwAf0.js → interactions-protocol-B51z46aG.js} +4 -2
- package/dist/interactions-protocol-B51z46aG.js.map +1 -0
- package/dist/{interpolate-PbifVQ5m.js → interpolate-B2JXLwZ_.js} +2 -2
- package/dist/{interpolate-PbifVQ5m.js.map → interpolate-B2JXLwZ_.js.map} +1 -1
- package/dist/ipc/browser-types.d.ts +42 -1
- package/dist/ipc/browser-types.d.ts.map +1 -1
- package/dist/ipc/browser.d.ts +3 -3
- package/dist/ipc/remote.d.ts +6 -6
- package/dist/ipc/remote.js +3 -3
- package/dist/ipc.d.ts +9 -9
- package/dist/ipc.js +8 -8
- package/dist/{links-DG9nLRcE.js → links-CQzInDNL.js} +8 -8
- package/dist/{links-DG9nLRcE.js.map → links-CQzInDNL.js.map} +1 -1
- package/dist/{loaded-entry-Cq98M9G6.js → loaded-entry-BIUop7YQ.js} +2 -2
- package/dist/{loaded-entry-Cq98M9G6.js.map → loaded-entry-BIUop7YQ.js.map} +1 -1
- package/dist/{mcp-f-bGGZWr.js → mcp-BbELoUcf.js} +3 -3
- package/dist/{mcp-f-bGGZWr.js.map → mcp-BbELoUcf.js.map} +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.js +1 -1
- package/dist/{media-type-C4-zzcVm.d.ts → media-type-BfwpfY8z.d.ts} +6 -4
- package/dist/media-type-BfwpfY8z.d.ts.map +1 -0
- package/dist/{memory-B_AlonvP.js → memory-C7i3xfUK.js} +31 -31
- package/dist/{memory-B_AlonvP.js.map → memory-C7i3xfUK.js.map} +1 -1
- package/dist/{memory-B6hZdrvq.js → memory-Ddc9S26T.js} +2 -2
- package/dist/{memory-B6hZdrvq.js.map → memory-Ddc9S26T.js.map} +1 -1
- package/dist/{messages-CJfSVi7C.js → messages-Dk0N0lyy.js} +2 -2
- package/dist/{messages-CJfSVi7C.js.map → messages-Dk0N0lyy.js.map} +1 -1
- package/dist/{model-test-FWBNOTrM.js → model-test-BBn6heIR.js} +2 -2
- package/dist/{model-test-FWBNOTrM.js.map → model-test-BBn6heIR.js.map} +1 -1
- package/dist/{move-session-BQRMh2KP.js → move-session-DpXVAWUe.js} +3 -3
- package/dist/{move-session-BQRMh2KP.js.map → move-session-DpXVAWUe.js.map} +1 -1
- package/dist/{oauth-Dv-_W_gh.js → oauth-DXDy4q56.js} +2 -2
- package/dist/{oauth-Dv-_W_gh.js.map → oauth-DXDy4q56.js.map} +1 -1
- package/dist/{openai-h63vQhcu.js → openai-BAFg-2LW.js} +5 -5
- package/dist/{openai-h63vQhcu.js.map → openai-BAFg-2LW.js.map} +1 -1
- package/dist/{openai-compat-Cs8ZjU7a.js → openai-compat-D01UA-p6.js} +2 -2
- package/dist/{openai-compat-Cs8ZjU7a.js.map → openai-compat-D01UA-p6.js.map} +1 -1
- package/dist/{openrouter-Bq2Goqwl.js → openrouter-CqNTuIXi.js} +2 -2
- package/dist/{openrouter-Bq2Goqwl.js.map → openrouter-CqNTuIXi.js.map} +1 -1
- package/dist/output/stream-json.d.ts +1 -1
- package/dist/output/stream-json.js +1 -1
- package/dist/output/terminal.d.ts +1 -1
- package/dist/{path-display-D86C4tNR.js → path-display-C0DA5a7h.js} +3 -3
- package/dist/{path-display-D86C4tNR.js.map → path-display-C0DA5a7h.js.map} +1 -1
- package/dist/{plugins-CTXOe3uF.js → plugins-CUH-81TD.js} +2 -2
- package/dist/{plugins-CTXOe3uF.js.map → plugins-CUH-81TD.js.map} +1 -1
- package/dist/plugins.d.ts +1 -1
- package/dist/plugins.js +1 -1
- package/dist/{presets-BFe490bV.js → presets-DmGdfb1h.js} +3 -3
- package/dist/{presets-BFe490bV.js.map → presets-DmGdfb1h.js.map} +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/presets.js +1 -1
- package/dist/{protocol-BI4ouSmd.d.ts → protocol-BpIqbP7H.d.ts} +5 -5
- package/dist/{protocol-BI4ouSmd.d.ts.map → protocol-BpIqbP7H.d.ts.map} +1 -1
- package/dist/{provider-usage-format-a3XF5wwo.js → provider-usage-format-B3eaRZ3C.js} +2 -2
- package/dist/{provider-usage-format-a3XF5wwo.js.map → provider-usage-format-B3eaRZ3C.js.map} +1 -1
- package/dist/providers/anthropic.d.ts +1 -1
- package/dist/providers/anthropic.js +1 -1
- package/dist/providers/arcee.d.ts +1 -1
- package/dist/providers/arcee.js +1 -1
- package/dist/providers/baseten.d.ts +1 -1
- package/dist/providers/baseten.js +1 -1
- package/dist/providers/cerebras.d.ts +1 -1
- package/dist/providers/cerebras.js +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/local.js +1 -1
- package/dist/providers/neuralwatt.d.ts +1 -1
- package/dist/providers/neuralwatt.js +1 -1
- package/dist/providers/openai-compat.d.ts +1 -1
- package/dist/providers/openai-compat.js +1 -1
- package/dist/providers/openai.d.ts +1 -1
- package/dist/providers/openai.js +1 -1
- package/dist/providers/openrouter.d.ts +1 -1
- package/dist/providers/openrouter.js +1 -1
- package/dist/providers/xai.d.ts +1 -1
- package/dist/providers/xai.js +1 -1
- package/dist/{providers-BaXSunrg.js → providers-C8z2tHmr.js} +3 -3
- package/dist/{providers-BaXSunrg.js.map → providers-C8z2tHmr.js.map} +1 -1
- package/dist/{providers-D1R4pV9A.js → providers-sbsV3Dow.js} +2 -2
- package/dist/{providers-D1R4pV9A.js.map → providers-sbsV3Dow.js.map} +1 -1
- package/dist/providers.d.ts +1 -1
- package/dist/providers.js +8 -8
- package/dist/{read-state-BKsz2MGU.js → read-state-DjNe-x5w.js} +2 -2
- package/dist/{read-state-BKsz2MGU.js.map → read-state-DjNe-x5w.js.map} +1 -1
- package/dist/{readonly-db-CCipEHWH.js → readonly-db-DWkbo_i8.js} +3 -3
- package/dist/{readonly-db-CCipEHWH.js.map → readonly-db-DWkbo_i8.js.map} +1 -1
- package/dist/{registry-BRdTiDh6.js → registry-BNRZ5wbK.js} +2 -2
- package/dist/{registry-BRdTiDh6.js.map → registry-BNRZ5wbK.js.map} +1 -1
- package/dist/{registry-DwqeuuBp.js → registry-BdVIaVtY.js} +2 -2
- package/dist/{registry-DwqeuuBp.js.map → registry-BdVIaVtY.js.map} +1 -1
- package/dist/{registry-GSZteJD2.js → registry-VvjySKBj.js} +4 -4
- package/dist/{registry-GSZteJD2.js.map → registry-VvjySKBj.js.map} +1 -1
- package/dist/{remote-hosts-COJwOygg.js → remote-hosts-CqFvdema.js} +4 -4
- package/dist/{remote-hosts-COJwOygg.js.map → remote-hosts-CqFvdema.js.map} +1 -1
- package/dist/restate.d.ts +1 -1
- package/dist/restate.d.ts.map +1 -1
- package/dist/restate.js +7 -5
- package/dist/restate.js.map +1 -1
- package/dist/{run-fence-u3JLb97F.js → run-fence-DvsI_A_f.js} +2 -2
- package/dist/{run-fence-u3JLb97F.js.map → run-fence-DvsI_A_f.js.map} +1 -1
- package/dist/{server-C0J2gQM1.js → server-r63yA72Y.js} +4 -4
- package/dist/{server-C0J2gQM1.js.map → server-r63yA72Y.js.map} +1 -1
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/session/sqlite.js +2 -2
- package/dist/{session-mSbW11Ip.js → session-BfVAbrAN.js} +159 -3
- package/dist/session-BfVAbrAN.js.map +1 -0
- package/dist/session.d.ts +1 -1
- package/dist/session.js +2 -2
- package/dist/{setting-reFf6GmB.js → setting-BYx02qvD.js} +9 -9
- package/dist/setting-BYx02qvD.js.map +1 -0
- package/dist/{settings-keys-5lsRFsnB.js → settings-keys-DrV5QupV.js} +2 -2
- package/dist/{settings-keys-5lsRFsnB.js.map → settings-keys-DrV5QupV.js.map} +1 -1
- package/dist/{skills-Cr8hsjhi.js → skills-BDBvOQvl.js} +4 -4
- package/dist/{skills-Cr8hsjhi.js.map → skills-BDBvOQvl.js.map} +1 -1
- package/dist/{skills-use-D5iu3SlV.js → skills-use-CFNAI-0X.js} +3 -3
- package/dist/{skills-use-D5iu3SlV.js.map → skills-use-CFNAI-0X.js.map} +1 -1
- package/dist/skills.d.ts +1 -1
- package/dist/skills.js +3 -3
- package/dist/{sqlite-runtime-B9D1ONFK.js → sqlite-runtime-8yVB1Xth.js} +4 -4
- package/dist/{sqlite-runtime-B9D1ONFK.js.map → sqlite-runtime-8yVB1Xth.js.map} +1 -1
- package/dist/{sqlite-runtime-DIm7NoKL.d.ts → sqlite-runtime-GC5dycgG.d.ts} +2 -2
- package/dist/sqlite-runtime-GC5dycgG.d.ts.map +1 -0
- package/dist/{sqlite-store-DeiWJzgB.js → sqlite-store-B25DaBQ9.js} +3 -3
- package/dist/{sqlite-store-DeiWJzgB.js.map → sqlite-store-B25DaBQ9.js.map} +1 -1
- package/dist/{sqlite-usage-BCndaumO.js → sqlite-usage-ws1FwwLX.js} +2 -2
- package/dist/{sqlite-usage-BCndaumO.js.map → sqlite-usage-ws1FwwLX.js.map} +1 -1
- package/dist/{src-DeX_eA-0.js → src-COaAqMYi.js} +4 -4
- package/dist/{src-DeX_eA-0.js.map → src-COaAqMYi.js.map} +1 -1
- package/dist/{store-CLEopFzP.js → store-DnMkgq_O.js} +3 -3
- package/dist/{store-CLEopFzP.js.map → store-DnMkgq_O.js.map} +1 -1
- package/dist/{system-freeze-DWfDARGA.js → system-freeze-DWJ2GyCG.js} +3 -3
- package/dist/{system-freeze-DWfDARGA.js.map → system-freeze-DWJ2GyCG.js.map} +1 -1
- package/dist/{timeout-Cz9dRF8Q.d.ts → timeout-Cyx3VGPz.d.ts} +27 -2
- package/dist/{timeout-Cz9dRF8Q.d.ts.map → timeout-Cyx3VGPz.d.ts.map} +1 -1
- package/dist/tools/fetch-url.d.ts +1 -1
- package/dist/tools/fetch-url.js +1 -1
- package/dist/tools/web-search.d.ts +1 -1
- package/dist/tools/web-search.js +2 -2
- package/dist/{tools-DLFy7bxx.js → tools-D8n2FgIk.js} +4 -4
- package/dist/{tools-DLFy7bxx.js.map → tools-D8n2FgIk.js.map} +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +5 -5
- package/dist/tui.d.ts +11 -11
- package/dist/tui.js +32 -32
- package/dist/{types-1wGM0024.d.ts → types-D3VoG6Lp.d.ts} +2 -2
- package/dist/{types-1wGM0024.d.ts.map → types-D3VoG6Lp.d.ts.map} +1 -1
- package/dist/types-D5z_3G9j.js.map +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.js +1 -1
- package/dist/{version-DqcCaf-_.js → version-rvHvyOuO.js} +2 -2
- package/dist/{version-DqcCaf-_.js.map → version-rvHvyOuO.js.map} +1 -1
- package/dist/{wait-task-Ck4XhjFg.js → wait-task-CkPNYwpm.js} +3 -3
- package/dist/{wait-task-Ck4XhjFg.js.map → wait-task-CkPNYwpm.js.map} +1 -1
- package/dist/{wire-DbP63Y8A.js → wire-BDJTQnec.js} +2 -2
- package/dist/{wire-DbP63Y8A.js.map → wire-BDJTQnec.js.map} +1 -1
- package/dist/{workspace-exec-stream-C6UKT6fv.js → workspace-exec-stream-DOEbNFwD.js} +2 -2
- package/dist/{workspace-exec-stream-C6UKT6fv.js.map → workspace-exec-stream-DOEbNFwD.js.map} +1 -1
- package/dist/{write-file-DDmmYHCP.js → write-file-PUIjMyBQ.js} +6 -6
- package/dist/{write-file-DDmmYHCP.js.map → write-file-PUIjMyBQ.js.map} +1 -1
- package/dist/{ws-BMFzJWKU.js → ws-bht1x_18.js} +4 -4
- package/dist/{ws-BMFzJWKU.js.map → ws-bht1x_18.js.map} +1 -1
- package/dist/{ws-client-CyC2uIrs.js → ws-client-DI9vhWPM.js} +2 -2
- package/dist/{ws-client-CyC2uIrs.js.map → ws-client-DI9vhWPM.js.map} +1 -1
- package/dist/{xai-CrTQbLVe.js → xai-B0Zoc_3K.js} +3 -3
- package/dist/{xai-CrTQbLVe.js.map → xai-B0Zoc_3K.js.map} +1 -1
- package/docs/ARCHITECTURE.md +1 -0
- package/docs/DURABILITY.md +1 -1
- package/docs/RESTATE.md +2 -0
- package/package.json +1 -1
- package/dist/agent-B_RXMaJN.js.map +0 -1
- package/dist/index-C6rzc-tt.d.ts.map +0 -1
- package/dist/interactions-protocol-DHEIwAf0.js.map +0 -1
- package/dist/media-type-C4-zzcVm.d.ts.map +0 -1
- package/dist/session-mSbW11Ip.js.map +0 -1
- package/dist/setting-reFf6GmB.js.map +0 -1
- package/dist/sqlite-runtime-DIm7NoKL.d.ts.map +0 -1
package/dist/acp.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BF as McpServerConfig, KI as ToolDef, RI as TurnUsage, jo as Preset, kI as ToolResultContent, lI as SessionContentBlock } from "./index-
|
|
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 { BF as McpServerConfig, KI as ToolDef, RI as TurnUsage, jo as Preset, kI as ToolResultContent, lI as SessionContentBlock } from "./index-BZM8tu4L.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-D3VoG6Lp.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-fylEUqkx.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 };
|
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.js";
|
|
2
2
|
import { t as lazyAsync } from "./lazy-DLOurOC_.js";
|
|
3
|
-
import { T as toTypedError, a as AgentLengthResumeExhaustedError, b as isTransientTransportError, c as AgentToolPairingError, g as errorMessage, h as errorCauseCode, i as AgentContextExceededError, o as AgentProviderError, r as AgentBudgetExceededError, t as AgentAbortedError, w as runErrorDetail } from "./errors-
|
|
3
|
+
import { T as toTypedError, a as AgentLengthResumeExhaustedError, b as isTransientTransportError, c as AgentToolPairingError, g as errorMessage, h as errorCauseCode, i as AgentContextExceededError, o as AgentProviderError, r as AgentBudgetExceededError, t as AgentAbortedError, w as runErrorDetail } from "./errors-DMUkkRXB.js";
|
|
4
4
|
import { a as isWireTurn, c as toolOutputByteLength, i as documentBlockMarker, l as toolResultToText, o as sanitizeToolResultMetadata, r as coerceToolResultContent, s as toolOutputBudgetByteLength, t as DEFAULT_AGENT_CLOCK } from "./types-D5z_3G9j.js";
|
|
5
|
-
import { g as stableStringify, m as installRepeatGuard, t as connectMcpServers } from "./mcp-
|
|
5
|
+
import { g as stableStringify, m as installRepeatGuard, t as connectMcpServers } from "./mcp-BbELoUcf.js";
|
|
6
6
|
import { n as nonOwningMcpView, r as wrapDiscoveredMcpTools } from "./tool-meta-CNNHCUgE.js";
|
|
7
7
|
import { t as escapeXml } from "./xml-gcHcz2Yh.js";
|
|
8
8
|
import { t as buildCatalog$1 } from "./catalog-DWcFhfO3.js";
|
|
9
|
-
import { i as resolveSkills, n as installAllowedToolsGate, r as createSkillActivationState } from "./allowed-tools-
|
|
9
|
+
import { i as resolveSkills, n as installAllowedToolsGate, r as createSkillActivationState } from "./allowed-tools-WLqA9mVe.js";
|
|
10
10
|
import { a as settleWithinTimeout, i as resolveTimeoutMs, n as abortableSleep, o as withInactivityTimeout, r as linkAbortSignal, s as withTimeout, t as OperationTimeoutError } from "./timeout-BLGxs-F_.js";
|
|
11
|
-
import {
|
|
11
|
+
import { S as replays, _ as exactNow, b as openRunDurability, c as loadSession, f as withExtensionSession, g as committedSteps, h as LOOP_STEP_KINDS, l as recordSessionMetaWrites, n as createSession, t as applySessionMetaWrites, u as resumeChainRunIds, v as insideStepWork, w as runClock, x as recordsSteps, y as journaledStep } from "./session-BfVAbrAN.js";
|
|
12
12
|
import { n as composeExtensionPreset } from "./compose-preset-1td8qO5b.js";
|
|
13
|
-
import { C as toWireName, F as fillEstimatedCost, K as buildPromptMessage, M as malformedToolArgumentsMessage, S as toCanonicalName, Y as systemNoteBlock, _ as augmentMcpDoubleUnderscoreAliases, b as rewriteContentToCanonical, q as canonicalizePrompt, v as buildAliasMaps, x as rewriteMessagesToWire, y as buildSanitizedWireAliases } from "./openai-compat-
|
|
13
|
+
import { C as toWireName, F as fillEstimatedCost, K as buildPromptMessage, M as malformedToolArgumentsMessage, S as toCanonicalName, Y as systemNoteBlock, _ as augmentMcpDoubleUnderscoreAliases, b as rewriteContentToCanonical, q as canonicalizePrompt, v as buildAliasMaps, x as rewriteMessagesToWire, y as buildSanitizedWireAliases } from "./openai-compat-D01UA-p6.js";
|
|
14
14
|
import { n as estimateTokens, r as utf8ByteLength } from "./utils-CCliK45X.js";
|
|
15
15
|
import { SYSTEM_PROMPT_BOUNDARY, appendStaticSection, renderSystemForWire, splitSystemPrompt } from "./prompt.js";
|
|
16
|
-
import { g as TOOL_USE_INTERRUPTED_MARKER, h as SYNTHETIC_TOOL_RESULT_PLACEHOLDER, i as filterUnresolvedToolUses, l as resolveContentRefsInMessages, n as detectTurnInterruption, r as ensureEndsWithUserMessage, s as hasAnthropicSignature, v as ensureToolResultPairing, y as remintDuplicateToolCallIds } from "./messages-
|
|
16
|
+
import { g as TOOL_USE_INTERRUPTED_MARKER, h as SYNTHETIC_TOOL_RESULT_PLACEHOLDER, i as filterUnresolvedToolUses, l as resolveContentRefsInMessages, n as detectTurnInterruption, r as ensureEndsWithUserMessage, s as hasAnthropicSignature, v as ensureToolResultPairing, y as remintDuplicateToolCallIds } from "./messages-Dk0N0lyy.js";
|
|
17
17
|
import { l as normalizeArtifactInput, r as ARTIFACT_KINDS, t as ARTIFACTS_METADATA_KEY } from "./artifacts-DPVc-oG0.js";
|
|
18
|
-
import { c as loadSession, f as withExtensionSession, l as recordSessionMetaWrites, n as createSession, t as applySessionMetaWrites, u as resumeChainRunIds } from "./session-mSbW11Ip.js";
|
|
19
18
|
import { i as readFileInputPaths } from "./format-bytes-LHrZVMIt.js";
|
|
20
|
-
import { a as hydrateReadStateFromSessionAsync, c as readStateKey, n as getToolDedupState, o as markReadStateElided, t as getReadState } from "./read-state-
|
|
19
|
+
import { a as hydrateReadStateFromSessionAsync, c as readStateKey, n as getToolDedupState, o as markReadStateElided, t as getReadState } from "./read-state-DjNe-x5w.js";
|
|
21
20
|
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-
|
|
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-
|
|
21
|
+
import { a as readonlyView, i as isKnownHookEvent, n as createDecider, r as isDecisionHookEvent } from "./decisions-DZjZAVFe.js";
|
|
22
|
+
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-CkPNYwpm.js";
|
|
24
23
|
import { t as createProcessContext } from "./contexts-BsQgyKGd.js";
|
|
25
24
|
import { t as resolveDetachedTasksCapability } from "./types-4q1bFG53.js";
|
|
26
25
|
import { c as suspensionOf, i as StaleEpochError, l as withStepDecision, n as RunLeaseHeldError, o as stepDecision, r as RunSuspendedError } from "./errors-VVNmJD8V.js";
|
|
27
|
-
import { p as LEASE_STALE_MS } from "./run-fence-
|
|
28
|
-
import { n as createMemoryRuntime } from "./memory-
|
|
26
|
+
import { p as LEASE_STALE_MS } from "./run-fence-DvsI_A_f.js";
|
|
27
|
+
import { n as createMemoryRuntime } from "./memory-Ddc9S26T.js";
|
|
29
28
|
import { i as stagedToolState, n as createToolStateController } from "./tool-state-Csvz6z9f.js";
|
|
30
29
|
import { i as shouldAutoCompact, r as effectiveContextWindow, t as AUTO_COMPACT_MIN_GROWTH_FRACTION } from "./policy-Cr07FrCw.js";
|
|
31
30
|
import { r as writeFileAtomicAsync } from "./atomic-write-BewQOXlD.js";
|
|
32
|
-
import { a as createToolSearchTool, c as imageSizeFromBase64, i as applyToolSearchToUnlocked, n as createSkillsRunScriptTool, o as selectToolSearchMatches, r as createSkillsReadTool, s as shrinkImageBase64, t as createSkillsUseTool } from "./skills-use-
|
|
31
|
+
import { a as createToolSearchTool, c as imageSizeFromBase64, i as applyToolSearchToUnlocked, n as createSkillsRunScriptTool, o as selectToolSearchMatches, r as createSkillsReadTool, s as shrinkImageBase64, t as createSkillsUseTool } from "./skills-use-CFNAI-0X.js";
|
|
33
32
|
import { n as looksBinary } from "./binary-detect-Dtj5NGns.js";
|
|
34
33
|
import { n as httpFetchWrapper } from "./http-intercept-1kspO7Ic.js";
|
|
35
34
|
import { r as findProjectRoot } from "./project-root-BZcgGJMi.js";
|
|
@@ -47,7 +46,6 @@ import { existsSync, mkdirSync, readdirSync, renameSync, rmdirSync, statSync } f
|
|
|
47
46
|
import { createHooks } from "hookable";
|
|
48
47
|
import { createHash } from "node:crypto";
|
|
49
48
|
import { copyFile, mkdir, readdir, rm, stat, unlink } from "node:fs/promises";
|
|
50
|
-
import { AsyncLocalStorage } from "node:async_hooks";
|
|
51
49
|
//#region src/agent-behavior.ts
|
|
52
50
|
/** Default watchdog, in ms, for the whole MCP connect step (custom `mcpConnector` and built-in connect). See `AgentBehavior.mcpConnectTimeoutMs`. */
|
|
53
51
|
const DEFAULT_CUSTOM_MCP_CONNECT_TIMEOUT_MS = 12e4;
|
|
@@ -75,6 +73,7 @@ function resolveBehavior(agentBehavior, runBehavior) {
|
|
|
75
73
|
maxTurnsWarningMessage: runBehavior?.maxTurnsWarningMessage ?? agentBehavior?.maxTurnsWarningMessage,
|
|
76
74
|
maxCostUsd: runBehavior?.maxCostUsd ?? agentBehavior?.maxCostUsd,
|
|
77
75
|
retry: runBehavior?.retry ?? agentBehavior?.retry,
|
|
76
|
+
transportRetry: runBehavior?.transportRetry ?? agentBehavior?.transportRetry,
|
|
78
77
|
maxTotalTokens: runBehavior?.maxTotalTokens ?? agentBehavior?.maxTotalTokens,
|
|
79
78
|
maxWallMs: runBehavior?.maxWallMs ?? agentBehavior?.maxWallMs,
|
|
80
79
|
providerStreamStartTimeoutMs: runBehavior?.providerStreamStartTimeoutMs ?? agentBehavior?.providerStreamStartTimeoutMs,
|
|
@@ -280,135 +279,6 @@ async function warmup(rt, options = {}) {
|
|
|
280
279
|
await Promise.all([ensureMcpConnected(rt, options), ensureSkillsResolved(rt)]);
|
|
281
280
|
}
|
|
282
281
|
//#endregion
|
|
283
|
-
//#region src/run-durability.ts
|
|
284
|
-
/** Set while the live work of a step runs (see {@link insideStepWork}). */
|
|
285
|
-
const stepWork = new AsyncLocalStorage();
|
|
286
|
-
/**
|
|
287
|
-
* Runs the live work it is handed (`StepLive.callbacks`). The steps of the
|
|
288
|
-
* loop close over live state (the provider, the tool, abort, queues), so
|
|
289
|
-
* the work is the closure itself; the runtime records its result.
|
|
290
|
-
*/
|
|
291
|
-
const runLive = async (_payload, context) => stepWork.run(true, () => context.callbacks(context));
|
|
292
|
-
/**
|
|
293
|
-
* Whether the caller runs inside the live work of a step (a tool body, a
|
|
294
|
-
* model stream and the hooks it fires). There the step's record is what a
|
|
295
|
-
* replay sees, so nothing may be journaled on its own: the run's journaled
|
|
296
|
-
* clock and decisions fall back to their live forms.
|
|
297
|
-
*/
|
|
298
|
-
function insideStepWork() {
|
|
299
|
-
return stepWork.getStore() === true;
|
|
300
|
-
}
|
|
301
|
-
/** Kinds of the steps the loop issues. */
|
|
302
|
-
const LOOP_STEP_KINDS = {
|
|
303
|
-
model: "model",
|
|
304
|
-
tool: "tool",
|
|
305
|
-
/** What `tool:gate` kept for a call whose body has no step of its own (see `keepDirectBodyGate`). */
|
|
306
|
-
gate: "gate",
|
|
307
|
-
decision: "decision",
|
|
308
|
-
compact: "compact",
|
|
309
|
-
/** The run-start background sweep (`ExecutionContext.listBackground`). */
|
|
310
|
-
reconcile: "reconcile"
|
|
311
|
-
};
|
|
312
|
-
const LOOP_STEP_HANDLERS = Object.fromEntries(Object.values(LOOP_STEP_KINDS).map((kind) => [kind, runLive]));
|
|
313
|
-
/** Open the run's scope on `runtime`. Close it with `scope.close()` when the run ends. */
|
|
314
|
-
async function openRunDurability(runtime, options) {
|
|
315
|
-
const { checkpoint = false, ...run } = options;
|
|
316
|
-
const scope = await runtime.openRun({
|
|
317
|
-
...run,
|
|
318
|
-
handlers: LOOP_STEP_HANDLERS
|
|
319
|
-
});
|
|
320
|
-
const seen = /* @__PURE__ */ new Map();
|
|
321
|
-
const next = (slot) => {
|
|
322
|
-
const n = seen.get(slot) ?? 0;
|
|
323
|
-
seen.set(slot, n + 1);
|
|
324
|
-
return n;
|
|
325
|
-
};
|
|
326
|
-
const durability = {
|
|
327
|
-
runtime,
|
|
328
|
-
scope,
|
|
329
|
-
checkpoint: checkpoint && runtime.mode === "checkpoint",
|
|
330
|
-
turn: 0,
|
|
331
|
-
key: (name) => {
|
|
332
|
-
const n = next(`${durability.turn}:${name}`);
|
|
333
|
-
return stepKey({
|
|
334
|
-
run: options.runId,
|
|
335
|
-
turn: durability.turn,
|
|
336
|
-
call: n === 0 ? name : `${name}#${n}`,
|
|
337
|
-
attempt: 0
|
|
338
|
-
});
|
|
339
|
-
},
|
|
340
|
-
modelKey: () => stepKey({
|
|
341
|
-
run: options.runId,
|
|
342
|
-
turn: durability.turn,
|
|
343
|
-
call: MODEL_CALL,
|
|
344
|
-
attempt: next(`${durability.turn}:\u0000model`)
|
|
345
|
-
}),
|
|
346
|
-
toolKey: (callId) => stepKey({
|
|
347
|
-
run: options.runId,
|
|
348
|
-
turn: durability.turn,
|
|
349
|
-
call: callId,
|
|
350
|
-
attempt: 0
|
|
351
|
-
}),
|
|
352
|
-
spilled: /* @__PURE__ */ new Map()
|
|
353
|
-
};
|
|
354
|
-
return durability;
|
|
355
|
-
}
|
|
356
|
-
/** Whether the run replays a journal: replay-only logic runs only then. */
|
|
357
|
-
function replays(durability) {
|
|
358
|
-
return durability.runtime.mode === "replay";
|
|
359
|
-
}
|
|
360
|
-
/** Whether model and tool calls run as steps: always in replay mode, in checkpoint mode when the run keeps checkpoints. */
|
|
361
|
-
function recordsSteps(durability) {
|
|
362
|
-
return replays(durability) || durability.checkpoint;
|
|
363
|
-
}
|
|
364
|
-
/**
|
|
365
|
-
* The step records a turn commit makes obsolete: every record of the run up
|
|
366
|
-
* to the current loop turn. Only checkpoint runs prune; a journal keeps its
|
|
367
|
-
* entries.
|
|
368
|
-
*/
|
|
369
|
-
function committedSteps(durability) {
|
|
370
|
-
return durability.checkpoint ? {
|
|
371
|
-
runId: durability.scope.runId,
|
|
372
|
-
throughTurn: durability.turn
|
|
373
|
-
} : void 0;
|
|
374
|
-
}
|
|
375
|
-
/** A real reading of `clock` (`AgentClock.nowExact`), or `now()` on a clock whose readings are all exact. */
|
|
376
|
-
function exactNow(clock) {
|
|
377
|
-
return clock.nowExact ? clock.nowExact() : clock.now();
|
|
378
|
-
}
|
|
379
|
-
/**
|
|
380
|
-
* The run's clock: in replay mode the runtime's journaled `now()` and
|
|
381
|
-
* `uuid()`, so a replay regenerates the same session metadata; otherwise
|
|
382
|
-
* `clock` (the run's or the agent's). Inside a step's work (a tool body
|
|
383
|
-
* reading `ToolContext.clock`) it is `clock`: the step's record already
|
|
384
|
-
* covers what the work returns, and a journaled read there would nest.
|
|
385
|
-
*/
|
|
386
|
-
function runClock(durability, clock) {
|
|
387
|
-
if (!replays(durability)) return clock;
|
|
388
|
-
const { scope } = durability;
|
|
389
|
-
return {
|
|
390
|
-
now: () => insideStepWork() ? clock.now() : scope.now(),
|
|
391
|
-
nowExact: () => insideStepWork() ? exactNow(clock) : scope.nowExact ? scope.nowExact() : scope.now(),
|
|
392
|
-
randomUUID: () => insideStepWork() ? clock.randomUUID() : scope.uuid()
|
|
393
|
-
};
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* Run `work` as a replay-only journaled step: in replay mode its result is
|
|
397
|
-
* recorded and a replay returns it instead of running `work` again. Other
|
|
398
|
-
* modes just run it. The result must be JSON-serializable.
|
|
399
|
-
*/
|
|
400
|
-
async function journaledStep(durability, kind, name, work) {
|
|
401
|
-
if (!replays(durability)) return work();
|
|
402
|
-
const outcome = await durability.scope.step({
|
|
403
|
-
kind,
|
|
404
|
-
key: durability.key(name),
|
|
405
|
-
payload: { name },
|
|
406
|
-
replay: "safe"
|
|
407
|
-
}, { callbacks: work });
|
|
408
|
-
if (outcome.status !== "completed") throw new Error(`journaled step "${name}" no longer matches its record`);
|
|
409
|
-
return outcome.value;
|
|
410
|
-
}
|
|
411
|
-
//#endregion
|
|
412
282
|
//#region src/agent-durable.ts
|
|
413
283
|
/** Open the durable scope of run `runId` on its runtime ({@link runtimeForRun}). */
|
|
414
284
|
function openAgentRunDurability(rt, runId) {
|
|
@@ -1851,13 +1721,21 @@ const TRANSPORT_RETRY = {
|
|
|
1851
1721
|
maxDelayMs: 3e4
|
|
1852
1722
|
};
|
|
1853
1723
|
/**
|
|
1854
|
-
* The transport budget for a run
|
|
1724
|
+
* The transport budget for a run. `behavior.transportRetry` decides when set:
|
|
1725
|
+
* `false` is one attempt, a config fills its unset fields from
|
|
1726
|
+
* {@link TRANSPORT_RETRY}. Unset: {@link TRANSPORT_RETRY}, independent of
|
|
1855
1727
|
* `behavior.retry`, except that a caller who opted out of retries
|
|
1856
1728
|
* (`maxAttempts: 1`) is not retried on a dropped socket either.
|
|
1857
1729
|
*
|
|
1858
1730
|
* @param cfg - The run's `behavior.retry`, as configured.
|
|
1731
|
+
* @param transport - The run's `behavior.transportRetry`, as configured.
|
|
1859
1732
|
*/
|
|
1860
|
-
function resolveTransportRetryConfig(cfg) {
|
|
1733
|
+
function resolveTransportRetryConfig(cfg, transport) {
|
|
1734
|
+
if (transport === false) return {
|
|
1735
|
+
...TRANSPORT_RETRY,
|
|
1736
|
+
maxAttempts: 1
|
|
1737
|
+
};
|
|
1738
|
+
if (transport !== void 0) return resolveRetryConfig(transport, TRANSPORT_RETRY);
|
|
1861
1739
|
return cfg?.maxAttempts !== void 0 && resolveRetryConfig(cfg).maxAttempts === 1 ? {
|
|
1862
1740
|
...TRANSPORT_RETRY,
|
|
1863
1741
|
maxAttempts: 1
|
|
@@ -1870,12 +1748,15 @@ function resolveTransportRetryConfig(cfg) {
|
|
|
1870
1748
|
* Invalid values (non-finite, < 1 for `maxAttempts`, < 0 for delays) fall back
|
|
1871
1749
|
* to defaults rather than throwing — this is a behavior knob, not a validation
|
|
1872
1750
|
* boundary, and a bad value here shouldn't crash a run.
|
|
1751
|
+
*
|
|
1752
|
+
* @param cfg - The config as given.
|
|
1753
|
+
* @param defaults - What unset or invalid fields take (`behavior.retry`'s by default).
|
|
1873
1754
|
*/
|
|
1874
|
-
function resolveRetryConfig(cfg) {
|
|
1755
|
+
function resolveRetryConfig(cfg, defaults = RETRY_DEFAULTS) {
|
|
1875
1756
|
return {
|
|
1876
|
-
maxAttempts: Number.isFinite(cfg?.maxAttempts) && cfg.maxAttempts >= 1 ? Math.floor(cfg.maxAttempts) :
|
|
1877
|
-
initialDelayMs: Number.isFinite(cfg?.initialDelayMs) && cfg.initialDelayMs >= 0 ? cfg.initialDelayMs :
|
|
1878
|
-
maxDelayMs: Number.isFinite(cfg?.maxDelayMs) && cfg.maxDelayMs >= 0 ? cfg.maxDelayMs :
|
|
1757
|
+
maxAttempts: Number.isFinite(cfg?.maxAttempts) && cfg.maxAttempts >= 1 ? Math.floor(cfg.maxAttempts) : defaults.maxAttempts,
|
|
1758
|
+
initialDelayMs: Number.isFinite(cfg?.initialDelayMs) && cfg.initialDelayMs >= 0 ? cfg.initialDelayMs : defaults.initialDelayMs,
|
|
1759
|
+
maxDelayMs: Number.isFinite(cfg?.maxDelayMs) && cfg.maxDelayMs >= 0 ? cfg.maxDelayMs : defaults.maxDelayMs
|
|
1879
1760
|
};
|
|
1880
1761
|
}
|
|
1881
1762
|
/**
|
|
@@ -5600,6 +5481,23 @@ function rethrowControlError(ctx, err) {
|
|
|
5600
5481
|
if (isControlError(ctx, err)) throw err;
|
|
5601
5482
|
}
|
|
5602
5483
|
/**
|
|
5484
|
+
* Write the session metadata tool bodies changed but could not write: on a
|
|
5485
|
+
* journaled store (`SessionStore.journaled`) a save inside a tool step waits
|
|
5486
|
+
* for this, outside any step. A replay reaches it with the same pending keys
|
|
5487
|
+
* (the step records rebuild them), so it writes the same entries. A failed
|
|
5488
|
+
* write keeps the keys pending for the next save; control flow passes through.
|
|
5489
|
+
*/
|
|
5490
|
+
async function savePendingSession(ctx) {
|
|
5491
|
+
const session = ctx.session;
|
|
5492
|
+
if (session?.store?.journaled !== true || !session.savePending) return;
|
|
5493
|
+
try {
|
|
5494
|
+
await session.savePending();
|
|
5495
|
+
} catch (err) {
|
|
5496
|
+
rethrowControlError(ctx, err);
|
|
5497
|
+
if (process.env.ZIDANE_DEBUG) process.stderr.write(`[zidane] saving the session after a tool batch failed: ${err instanceof Error ? err.message : String(err)}\n`);
|
|
5498
|
+
}
|
|
5499
|
+
}
|
|
5500
|
+
/**
|
|
5603
5501
|
* Decide from live state (abort, pause, the steering and follow-up queues).
|
|
5604
5502
|
* In replay mode the decision is recorded every time this runs, so the entry
|
|
5605
5503
|
* sits at the same journal position on replay and the replay takes the
|
|
@@ -9201,7 +9099,7 @@ async function streamTurnWithRecovery(ctx, streamOptions, scope) {
|
|
|
9201
9099
|
}));
|
|
9202
9100
|
const obs = createTurnStreamObserver(ctx, turnId, streamOptions, streamStartedAt);
|
|
9203
9101
|
const retryCfg = resolveRetryConfig(ctx.behavior.retry);
|
|
9204
|
-
const transportCfg = resolveTransportRetryConfig(ctx.behavior.retry);
|
|
9102
|
+
const transportCfg = resolveTransportRetryConfig(ctx.behavior.retry, ctx.behavior.transportRetry);
|
|
9205
9103
|
let result;
|
|
9206
9104
|
let attempt = 0;
|
|
9207
9105
|
let providerFailures = 0;
|
|
@@ -9720,6 +9618,7 @@ function toolOutputBudgetBytes(ctx, canonicalToolCalls, toolResults) {
|
|
|
9720
9618
|
*/
|
|
9721
9619
|
async function dispatchTurnToolCalls(ctx, turn, turnId, canonicalToolCalls) {
|
|
9722
9620
|
const toolResults = await executeToolBatch(ctx, canonicalToolCalls, turnId);
|
|
9621
|
+
await savePendingSession(ctx);
|
|
9723
9622
|
const suspended = suspensionOf(ctx.signal);
|
|
9724
9623
|
if (suspended) throw suspended;
|
|
9725
9624
|
if (ctx.behavior.elideStaleReads === "notice") appendStaleReadNotices(ctx.turns, canonicalToolCalls, toolResults);
|
|
@@ -11054,6 +10953,7 @@ const STORED_CAPS = [
|
|
|
11054
10953
|
"maxTotalTokens",
|
|
11055
10954
|
"maxWallMs",
|
|
11056
10955
|
"retry",
|
|
10956
|
+
"transportRetry",
|
|
11057
10957
|
"resumeOnMaxTokens"
|
|
11058
10958
|
];
|
|
11059
10959
|
/** What a checkpoint run keeps of `options` on its record (`SessionRun.options`): an empty object when it has none of them. */
|
|
@@ -11416,7 +11316,8 @@ async function deactivateAllSkills(skillActivationState, hooks, hookTimeoutMs) {
|
|
|
11416
11316
|
* (`finishRun`) every terminal branch goes through.
|
|
11417
11317
|
*/
|
|
11418
11318
|
function createRunFinisher(input) {
|
|
11419
|
-
const { session, hooks, runId, runTurnStart, turns, clock, hookTimeoutMs, childrenStats, usageMirror,
|
|
11319
|
+
const { session, hooks, runId, runTurnStart, turns, clock, hookTimeoutMs, childrenStats, usageMirror, wallMeter, isControlError } = input;
|
|
11320
|
+
const wallStartMs = Date.now();
|
|
11420
11321
|
async function finalizeSession(status) {
|
|
11421
11322
|
if (!session) return;
|
|
11422
11323
|
const run = session.runs.find((r) => r.id === runId);
|
|
@@ -11492,6 +11393,12 @@ function createRunFinisher(input) {
|
|
|
11492
11393
|
...kind === "suspended" ? { suspended: true } : {},
|
|
11493
11394
|
...waitedTotal(wallMeter)
|
|
11494
11395
|
};
|
|
11396
|
+
if (session?.store?.journaled && session.savePending) try {
|
|
11397
|
+
await settleWithinTimeout("session.savePending", session.savePending(), hookTimeoutMs);
|
|
11398
|
+
} catch (err) {
|
|
11399
|
+
if (isControlError?.(err)) throw err;
|
|
11400
|
+
if (process.env.ZIDANE_DEBUG) console.error("[zidane] session.savePending failed at run end; continuing:", err);
|
|
11401
|
+
}
|
|
11495
11402
|
if (session) {
|
|
11496
11403
|
const ledger = {
|
|
11497
11404
|
turns: loopStats.turns,
|
|
@@ -14607,7 +14514,6 @@ async function runWithinSession(rt, options, resume) {
|
|
|
14607
14514
|
cost: 0,
|
|
14608
14515
|
turnUsage: []
|
|
14609
14516
|
};
|
|
14610
|
-
const wallStartMs = Date.now();
|
|
14611
14517
|
const providerContextWindow = runProvider.meta.contextWindow;
|
|
14612
14518
|
const resolvedAutoCompact = resolveAutoCompact(autoCompact, {
|
|
14613
14519
|
...providerContextWindow !== void 0 ? { fallbackContextWindow: providerContextWindow } : {},
|
|
@@ -14623,8 +14529,8 @@ async function runWithinSession(rt, options, resume) {
|
|
|
14623
14529
|
hookTimeoutMs,
|
|
14624
14530
|
childrenStats,
|
|
14625
14531
|
usageMirror,
|
|
14626
|
-
|
|
14627
|
-
|
|
14532
|
+
wallMeter: persistence.wall.meter,
|
|
14533
|
+
isControlError: (err) => err instanceof RunSuspendedError || err instanceof StaleEpochError || runDurability.runtime.isControlError(err)
|
|
14628
14534
|
});
|
|
14629
14535
|
finalizeSetupFailure = void 0;
|
|
14630
14536
|
inSetup = false;
|
|
@@ -15323,4 +15229,4 @@ function cacheImpact(rt, change) {
|
|
|
15323
15229
|
//#endregion
|
|
15324
15230
|
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 };
|
|
15325
15231
|
|
|
15326
|
-
//# sourceMappingURL=agent-
|
|
15232
|
+
//# sourceMappingURL=agent-DFUxWdyg.js.map
|