@bryanhu/codexly 0.11.2 → 0.12.0
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/CHANGELOG.md +26 -0
- package/README.md +5 -3
- package/README.zh-CN.md +4 -2
- package/dist/{chunk-NPICM42L.js → chunk-7C6JMXNO.js} +16841 -3654
- package/dist/{chunk-YMFGL4ZR.js → chunk-LZVKMW5Y.js} +422 -130
- package/dist/{chunk-GUHYAMAQ.js → chunk-PBPNBQQH.js} +1 -1
- package/dist/{chunk-2NJ4CTQP.js → chunk-RGRRUTMD.js} +974 -756
- package/dist/cli.js +7 -5
- package/dist/client/index.js +113 -4
- package/dist/protocol/index.js +1 -1
- package/dist/providers/codex/index.js +2 -2
- package/dist/server/index.js +4 -4
- package/dist/sqlite-state-worker.js +66 -0
- package/dist/web/.vite/manifest.json +392 -280
- package/dist/web/.vite/manifest.json.br +0 -0
- package/dist/web/.vite/manifest.json.gz +0 -0
- package/dist/web/assets/button-group-C4BuwxSd.js +1 -0
- package/dist/web/assets/button-group-C4BuwxSd.js.br +0 -0
- package/dist/web/assets/button-group-C4BuwxSd.js.gz +0 -0
- package/dist/web/assets/{chunk-BO2N2NFS-ng4dbem1.js → chunk-BO2N2NFS-CiutqNGv.js} +7 -7
- package/dist/web/assets/chunk-BO2N2NFS-CiutqNGv.js.br +0 -0
- package/dist/web/assets/chunk-BO2N2NFS-CiutqNGv.js.gz +0 -0
- package/dist/web/assets/{code-highlighter-BMwFeSBd.js → code-highlighter-Bp23lvQ1.js} +1 -1
- package/dist/web/assets/code-highlighter-Bp23lvQ1.js.br +0 -0
- package/dist/web/assets/code-highlighter-Bp23lvQ1.js.gz +0 -0
- package/dist/web/assets/code-languages-DVcuYjhn.js +2 -0
- package/dist/web/assets/code-languages-DVcuYjhn.js.br +0 -0
- package/dist/web/assets/code-languages-DVcuYjhn.js.gz +0 -0
- package/dist/web/assets/context-menu-DBdIkdO8.js +1 -0
- package/dist/web/assets/context-menu-DBdIkdO8.js.br +0 -0
- package/dist/web/assets/context-menu-DBdIkdO8.js.gz +0 -0
- package/dist/web/assets/dist-B5i0uBCy.js +1 -0
- package/dist/web/assets/dist-B5i0uBCy.js.br +0 -0
- package/dist/web/assets/dist-B5i0uBCy.js.gz +0 -0
- package/dist/web/assets/download-iHkzQYEd.js +1 -0
- package/dist/web/assets/download-iHkzQYEd.js.br +0 -0
- package/dist/web/assets/download-iHkzQYEd.js.gz +0 -0
- package/dist/web/assets/{engine-compile-Bqjaa_8Z.js → engine-compile-DcaAFSGO.js} +1 -1
- package/dist/web/assets/engine-compile-DcaAFSGO.js.br +0 -0
- package/dist/web/assets/engine-compile-DcaAFSGO.js.gz +0 -0
- package/dist/web/assets/external-link-xbPJFZkP.js +1 -0
- package/dist/web/assets/external-link-xbPJFZkP.js.br +0 -0
- package/dist/web/assets/external-link-xbPJFZkP.js.gz +0 -0
- package/dist/web/assets/file-code-corner-CYF-BidF.js +1 -0
- package/dist/web/assets/file-code-corner-CYF-BidF.js.br +0 -0
- package/dist/web/assets/file-code-corner-CYF-BidF.js.gz +0 -0
- package/dist/web/assets/file-navigation-view-preference-BRWa_l_a.js +1 -0
- package/dist/web/assets/file-navigation-view-preference-BRWa_l_a.js.br +0 -0
- package/dist/web/assets/file-navigation-view-preference-BRWa_l_a.js.gz +0 -0
- package/dist/web/assets/file-pen-line-B05lVjWh.js +1 -0
- package/dist/web/assets/file-pen-line-B05lVjWh.js.br +0 -0
- package/dist/web/assets/file-pen-line-B05lVjWh.js.gz +0 -0
- package/dist/web/assets/file-review-dialog-CfW8qcnH.js +2 -0
- package/dist/web/assets/file-review-dialog-CfW8qcnH.js.br +0 -0
- package/dist/web/assets/file-review-dialog-CfW8qcnH.js.gz +0 -0
- package/dist/web/assets/git-commit-horizontal-CV-KjCHw.js +1 -0
- package/dist/web/assets/git-commit-horizontal-CV-KjCHw.js.br +0 -0
- package/dist/web/assets/git-commit-horizontal-CV-KjCHw.js.gz +0 -0
- package/dist/web/assets/git-history-panel-DDCwLZ_v.js +2 -0
- package/dist/web/assets/git-history-panel-DDCwLZ_v.js.br +0 -0
- package/dist/web/assets/git-history-panel-DDCwLZ_v.js.gz +0 -0
- package/dist/web/assets/global-settings-dialog-Cw-2IvEc.js +1 -0
- package/dist/web/assets/global-settings-dialog-Cw-2IvEc.js.br +0 -0
- package/dist/web/assets/global-settings-dialog-Cw-2IvEc.js.gz +0 -0
- package/dist/web/assets/{highlighted-body-OFNGDK62-UIjGvJpu.js → highlighted-body-OFNGDK62-jfqTT7Zz.js} +1 -1
- package/dist/web/assets/highlighted-body-OFNGDK62-jfqTT7Zz.js.br +0 -0
- package/dist/web/assets/highlighted-body-OFNGDK62-jfqTT7Zz.js.gz +0 -0
- package/dist/web/assets/index-DZEhkOZz.js +4 -0
- package/dist/web/assets/index-DZEhkOZz.js.br +0 -0
- package/dist/web/assets/index-DZEhkOZz.js.gz +0 -0
- package/dist/web/assets/index-mb9dY6_F.css +2 -0
- package/dist/web/assets/index-mb9dY6_F.css.br +0 -0
- package/dist/web/assets/index-mb9dY6_F.css.gz +0 -0
- package/dist/web/assets/initial-deps-BsEyuMB0.js +1 -0
- package/dist/web/assets/initial-deps-BsEyuMB0.js.br +0 -0
- package/dist/web/assets/initial-deps-BsEyuMB0.js.gz +0 -0
- package/dist/web/assets/initial-deps-Bx4af_YG.js +1 -0
- package/dist/web/assets/initial-deps-Bx4af_YG.js.br +0 -0
- package/dist/web/assets/initial-deps-Bx4af_YG.js.gz +0 -0
- package/dist/web/assets/initial-deps-CNK9MBOP.js +1 -0
- package/dist/web/assets/initial-deps-CNK9MBOP.js.br +0 -0
- package/dist/web/assets/initial-deps-CNK9MBOP.js.gz +0 -0
- package/dist/web/assets/initial-deps-CTprc_pY.js +1 -0
- package/dist/web/assets/initial-deps-CTprc_pY.js.br +0 -0
- package/dist/web/assets/initial-deps-CTprc_pY.js.gz +0 -0
- package/dist/web/assets/initial-deps-Ccn2HMTB.js +1 -0
- package/dist/web/assets/initial-deps-Ccn2HMTB.js.br +0 -0
- package/dist/web/assets/initial-deps-Ccn2HMTB.js.gz +0 -0
- package/dist/web/assets/initial-deps-Cq4pSOi-.js +1 -0
- package/dist/web/assets/initial-deps-Cq4pSOi-.js.br +0 -0
- package/dist/web/assets/initial-deps-Cq4pSOi-.js.gz +0 -0
- package/dist/web/assets/initial-deps-D1tR2tqv.js +1 -0
- package/dist/web/assets/initial-deps-D1tR2tqv.js.br +0 -0
- package/dist/web/assets/initial-deps-D1tR2tqv.js.gz +0 -0
- package/dist/web/assets/initial-deps-DqJTHr9A.js +41 -0
- package/dist/web/assets/initial-deps-DqJTHr9A.js.br +0 -0
- package/dist/web/assets/initial-deps-DqJTHr9A.js.gz +0 -0
- package/dist/web/assets/lazy-message-response-SxI8Oz6v.js +2 -0
- package/dist/web/assets/lazy-message-response-SxI8Oz6v.js.br +0 -0
- package/dist/web/assets/lazy-message-response-SxI8Oz6v.js.gz +0 -0
- package/dist/web/assets/{lib-DrPFkMXk.js → lib-DE0ZEvGM.js} +1 -1
- package/dist/web/assets/lib-DE0ZEvGM.js.br +0 -0
- package/dist/web/assets/lib-DE0ZEvGM.js.gz +0 -0
- package/dist/web/assets/mermaid-GHXKKRXX-BNLLThfI.js +1 -0
- package/dist/web/assets/mermaid-GHXKKRXX-BNLLThfI.js.br +0 -0
- package/dist/web/assets/mermaid-GHXKKRXX-BNLLThfI.js.gz +0 -0
- package/dist/web/assets/message-response-CTSQq8Ae.js +7 -0
- package/dist/web/assets/message-response-CTSQq8Ae.js.br +0 -0
- package/dist/web/assets/message-response-CTSQq8Ae.js.gz +0 -0
- package/dist/web/assets/{patch-diff-viewer-BnoOysqK.js → patch-diff-viewer-CwDRm5oN.js} +3 -3
- package/dist/web/assets/patch-diff-viewer-CwDRm5oN.js.br +0 -0
- package/dist/web/assets/patch-diff-viewer-CwDRm5oN.js.gz +0 -0
- package/dist/web/assets/{project-file-popup-page-C5dOvxw_.js → project-file-popup-page-DX-AlvxF.js} +1 -1
- package/dist/web/assets/project-file-popup-page-DX-AlvxF.js.br +0 -0
- package/dist/web/assets/project-file-popup-page-DX-AlvxF.js.gz +0 -0
- package/dist/web/assets/project-source-panel-i4xpffAa.js +3 -0
- package/dist/web/assets/project-source-panel-i4xpffAa.js.br +0 -0
- package/dist/web/assets/project-source-panel-i4xpffAa.js.gz +0 -0
- package/dist/web/assets/prompt-input-CL1AA6_U.js +1 -0
- package/dist/web/assets/prompt-input-CL1AA6_U.js.br +0 -0
- package/dist/web/assets/prompt-input-CL1AA6_U.js.gz +0 -0
- package/dist/web/assets/prompt-input-controls-Qsp2rk3i.js +1 -0
- package/dist/web/assets/prompt-input-controls-Qsp2rk3i.js.br +0 -0
- package/dist/web/assets/prompt-input-controls-Qsp2rk3i.js.gz +0 -0
- package/dist/web/assets/prompt-reference-token-Cxx6C-IR.js +1 -0
- package/dist/web/assets/prompt-reference-token-Cxx6C-IR.js.br +0 -0
- package/dist/web/assets/prompt-reference-token-Cxx6C-IR.js.gz +0 -0
- package/dist/web/assets/{react-runtime-CVaUQXZF.js → react-runtime-DaCTDC27.js} +1 -1
- package/dist/web/assets/react-runtime-DaCTDC27.js.br +0 -0
- package/dist/web/assets/react-runtime-DaCTDC27.js.gz +0 -0
- package/dist/web/assets/rolldown-runtime-CNC7AqOf.js +1 -0
- package/dist/web/assets/rolldown-runtime-CNC7AqOf.js.br +0 -0
- package/dist/web/assets/rolldown-runtime-CNC7AqOf.js.gz +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-B2_XJQa7.js +1 -0
- package/dist/web/assets/scheduled-task-date-time-picker-B2_XJQa7.js.br +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-B2_XJQa7.js.gz +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-Wk3Ob2xl.css +1 -0
- package/dist/web/assets/scheduled-task-date-time-picker-Wk3Ob2xl.css.br +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-Wk3Ob2xl.css.gz +0 -0
- package/dist/web/assets/scheduled-task-floating-ui~index~workbench-shell~skills-market-container~workbench-inspecto~y5cwo2qi-DAfditVv.js +1 -0
- package/dist/web/assets/scheduled-task-floating-ui~index~workbench-shell~skills-market-container~workbench-inspecto~y5cwo2qi-DAfditVv.js.br +0 -0
- package/dist/web/assets/scheduled-task-floating-ui~index~workbench-shell~skills-market-container~workbench-inspecto~y5cwo2qi-DAfditVv.js.gz +0 -0
- package/dist/web/assets/scheduled-task-floating-ui~scheduled-task-date-time-picker-BQ-Lfxrf.js +1 -0
- package/dist/web/assets/scheduled-task-floating-ui~scheduled-task-date-time-picker-BQ-Lfxrf.js.br +0 -0
- package/dist/web/assets/scheduled-task-floating-ui~scheduled-task-date-time-picker-BQ-Lfxrf.js.gz +0 -0
- package/dist/web/assets/scheduled-task-schedule-DVyf2brf.js +1 -0
- package/dist/web/assets/scheduled-task-schedule-DVyf2brf.js.br +0 -0
- package/dist/web/assets/scheduled-task-schedule-DVyf2brf.js.gz +0 -0
- package/dist/web/assets/scheduled-tasks-container-DWk8eU-x.js +2 -0
- package/dist/web/assets/scheduled-tasks-container-DWk8eU-x.js.br +0 -0
- package/dist/web/assets/scheduled-tasks-container-DWk8eU-x.js.gz +0 -0
- package/dist/web/assets/scheduled-tasks-container-xtJWjMjU.css +1 -0
- package/dist/web/assets/scheduled-tasks-container-xtJWjMjU.css.br +0 -0
- package/dist/web/assets/scheduled-tasks-container-xtJWjMjU.css.gz +0 -0
- package/dist/web/assets/{shiki-bundle-CGkIRfLa.js → shiki-bundle-DdeD2OLK.js} +1 -1
- package/dist/web/assets/shiki-bundle-DdeD2OLK.js.br +0 -0
- package/dist/web/assets/shiki-bundle-DdeD2OLK.js.gz +0 -0
- package/dist/web/assets/skills-market-container-C9djEXQt.css +1 -0
- package/dist/web/assets/skills-market-container-C9djEXQt.css.br +0 -0
- package/dist/web/assets/skills-market-container-C9djEXQt.css.gz +0 -0
- package/dist/web/assets/skills-market-container-DGLB9mLM.js +1 -0
- package/dist/web/assets/skills-market-container-DGLB9mLM.js.br +0 -0
- package/dist/web/assets/skills-market-container-DGLB9mLM.js.gz +0 -0
- package/dist/web/assets/sparkles-BLY9rqMO.js +1 -0
- package/dist/web/assets/sparkles-BLY9rqMO.js.br +0 -0
- package/dist/web/assets/sparkles-BLY9rqMO.js.gz +0 -0
- package/dist/web/assets/upload-D_8Uk8f-.js +1 -0
- package/dist/web/assets/upload-D_8Uk8f-.js.br +0 -0
- package/dist/web/assets/upload-D_8Uk8f-.js.gz +0 -0
- package/dist/web/assets/workbench-composer-BD9Ki4HB.js +10 -0
- package/dist/web/assets/workbench-composer-BD9Ki4HB.js.br +0 -0
- package/dist/web/assets/workbench-composer-BD9Ki4HB.js.gz +0 -0
- package/dist/web/assets/workbench-inspector-changes-DAh6jOqk.js +2 -0
- package/dist/web/assets/workbench-inspector-changes-DAh6jOqk.js.br +0 -0
- package/dist/web/assets/workbench-inspector-changes-DAh6jOqk.js.gz +0 -0
- package/dist/web/assets/workbench-pet-canvas-BDehkHlv.js +1 -0
- package/dist/web/assets/workbench-pet-canvas-BDehkHlv.js.br +0 -0
- package/dist/web/assets/workbench-pet-canvas-BDehkHlv.js.gz +0 -0
- package/dist/web/assets/workbench-shell-3eEtoMzo.js +8 -0
- package/dist/web/assets/workbench-shell-3eEtoMzo.js.br +0 -0
- package/dist/web/assets/workbench-shell-3eEtoMzo.js.gz +0 -0
- package/dist/web/index.html +13 -15
- package/dist/web/index.html.br +0 -0
- package/dist/web/index.html.gz +0 -0
- package/package.json +2 -2
- package/dist/web/assets/bundle-mjs-rHxsej31.js +0 -1
- package/dist/web/assets/bundle-mjs-rHxsej31.js.br +0 -0
- package/dist/web/assets/bundle-mjs-rHxsej31.js.gz +0 -0
- package/dist/web/assets/button-group-Bt_Rr9-f.js +0 -1
- package/dist/web/assets/button-group-Bt_Rr9-f.js.br +0 -0
- package/dist/web/assets/button-group-Bt_Rr9-f.js.gz +0 -0
- package/dist/web/assets/check-C92ZHwwX.js +0 -1
- package/dist/web/assets/check-C92ZHwwX.js.br +0 -0
- package/dist/web/assets/check-C92ZHwwX.js.gz +0 -0
- package/dist/web/assets/checkbox-BBHD70U-.js +0 -1
- package/dist/web/assets/checkbox-BBHD70U-.js.br +0 -0
- package/dist/web/assets/checkbox-BBHD70U-.js.gz +0 -0
- package/dist/web/assets/chunk-BO2N2NFS-ng4dbem1.js.br +0 -0
- package/dist/web/assets/chunk-BO2N2NFS-ng4dbem1.js.gz +0 -0
- package/dist/web/assets/code-highlighter-BMwFeSBd.js.br +0 -0
- package/dist/web/assets/code-highlighter-BMwFeSBd.js.gz +0 -0
- package/dist/web/assets/code-languages-rKSHZYzu.js +0 -2
- package/dist/web/assets/code-languages-rKSHZYzu.js.br +0 -0
- package/dist/web/assets/code-languages-rKSHZYzu.js.gz +0 -0
- package/dist/web/assets/context-menu-03SuSeWI.js +0 -1
- package/dist/web/assets/context-menu-03SuSeWI.js.br +0 -0
- package/dist/web/assets/context-menu-03SuSeWI.js.gz +0 -0
- package/dist/web/assets/dist-B_DB3jSu.js +0 -1
- package/dist/web/assets/dist-B_DB3jSu.js.br +0 -0
- package/dist/web/assets/dist-B_DB3jSu.js.gz +0 -0
- package/dist/web/assets/dist-DBbCRukl.js +0 -1
- package/dist/web/assets/dist-DBbCRukl.js.br +0 -0
- package/dist/web/assets/dist-DBbCRukl.js.gz +0 -0
- package/dist/web/assets/engine-compile-Bqjaa_8Z.js.br +0 -0
- package/dist/web/assets/engine-compile-Bqjaa_8Z.js.gz +0 -0
- package/dist/web/assets/es2015-BUwabepB.js +0 -41
- package/dist/web/assets/es2015-BUwabepB.js.br +0 -0
- package/dist/web/assets/es2015-BUwabepB.js.gz +0 -0
- package/dist/web/assets/file-code-corner-CJDhFrYy.js +0 -1
- package/dist/web/assets/file-code-corner-CJDhFrYy.js.br +0 -3
- package/dist/web/assets/file-code-corner-CJDhFrYy.js.gz +0 -0
- package/dist/web/assets/file-navigation-view-preference-DeIXQ8c4.js +0 -1
- package/dist/web/assets/file-navigation-view-preference-DeIXQ8c4.js.br +0 -0
- package/dist/web/assets/file-navigation-view-preference-DeIXQ8c4.js.gz +0 -0
- package/dist/web/assets/file-review-dialog-L7snJJP8.js +0 -2
- package/dist/web/assets/file-review-dialog-L7snJJP8.js.br +0 -0
- package/dist/web/assets/file-review-dialog-L7snJJP8.js.gz +0 -0
- package/dist/web/assets/file-tree-DvTv0Re2.js +0 -1
- package/dist/web/assets/file-tree-DvTv0Re2.js.br +0 -0
- package/dist/web/assets/file-tree-DvTv0Re2.js.gz +0 -0
- package/dist/web/assets/git-commit-horizontal-hgIO8zJZ.js +0 -1
- package/dist/web/assets/git-commit-horizontal-hgIO8zJZ.js.br +0 -0
- package/dist/web/assets/git-commit-horizontal-hgIO8zJZ.js.gz +0 -0
- package/dist/web/assets/git-history-panel-DZY20FzY.js +0 -2
- package/dist/web/assets/git-history-panel-DZY20FzY.js.br +0 -0
- package/dist/web/assets/git-history-panel-DZY20FzY.js.gz +0 -0
- package/dist/web/assets/global-settings-dialog-cA1SWDdi.js +0 -1
- package/dist/web/assets/global-settings-dialog-cA1SWDdi.js.br +0 -0
- package/dist/web/assets/global-settings-dialog-cA1SWDdi.js.gz +0 -0
- package/dist/web/assets/highlighted-body-OFNGDK62-UIjGvJpu.js.br +0 -0
- package/dist/web/assets/highlighted-body-OFNGDK62-UIjGvJpu.js.gz +0 -0
- package/dist/web/assets/index-CldcNq0q.css +0 -2
- package/dist/web/assets/index-CldcNq0q.css.br +0 -0
- package/dist/web/assets/index-CldcNq0q.css.gz +0 -0
- package/dist/web/assets/index-WZ8-8oYp.js +0 -4
- package/dist/web/assets/index-WZ8-8oYp.js.br +0 -0
- package/dist/web/assets/index-WZ8-8oYp.js.gz +0 -0
- package/dist/web/assets/lazy-message-response-SjU6ZsaR.js +0 -2
- package/dist/web/assets/lazy-message-response-SjU6ZsaR.js.br +0 -0
- package/dist/web/assets/lazy-message-response-SjU6ZsaR.js.gz +0 -0
- package/dist/web/assets/lib-DrPFkMXk.js.br +0 -0
- package/dist/web/assets/lib-DrPFkMXk.js.gz +0 -0
- package/dist/web/assets/loader-circle-CJOhkEC8.js +0 -1
- package/dist/web/assets/loader-circle-CJOhkEC8.js.br +0 -0
- package/dist/web/assets/loader-circle-CJOhkEC8.js.gz +0 -0
- package/dist/web/assets/mermaid-GHXKKRXX-CDYc39nv.js +0 -1
- package/dist/web/assets/mermaid-GHXKKRXX-CDYc39nv.js.br +0 -0
- package/dist/web/assets/mermaid-GHXKKRXX-CDYc39nv.js.gz +0 -0
- package/dist/web/assets/message-response-BXln58hx.js +0 -7
- package/dist/web/assets/message-response-BXln58hx.js.br +0 -0
- package/dist/web/assets/message-response-BXln58hx.js.gz +0 -0
- package/dist/web/assets/patch-diff-viewer-BnoOysqK.js.br +0 -0
- package/dist/web/assets/patch-diff-viewer-BnoOysqK.js.gz +0 -0
- package/dist/web/assets/project-file-popup-page-C5dOvxw_.js.br +0 -0
- package/dist/web/assets/project-file-popup-page-C5dOvxw_.js.gz +0 -0
- package/dist/web/assets/project-source-panel-CDrU5_qN.js +0 -3
- package/dist/web/assets/project-source-panel-CDrU5_qN.js.br +0 -0
- package/dist/web/assets/project-source-panel-CDrU5_qN.js.gz +0 -0
- package/dist/web/assets/prompt-input-controls-C_Zm2pL8.js +0 -1
- package/dist/web/assets/prompt-input-controls-C_Zm2pL8.js.br +0 -0
- package/dist/web/assets/prompt-input-controls-C_Zm2pL8.js.gz +0 -0
- package/dist/web/assets/prompt-reference-token-XDhhAENk.js +0 -1
- package/dist/web/assets/prompt-reference-token-XDhhAENk.js.br +0 -0
- package/dist/web/assets/prompt-reference-token-XDhhAENk.js.gz +0 -0
- package/dist/web/assets/provider-connection-queries-BBs1XjP6.js +0 -1
- package/dist/web/assets/provider-connection-queries-BBs1XjP6.js.br +0 -0
- package/dist/web/assets/provider-connection-queries-BBs1XjP6.js.gz +0 -0
- package/dist/web/assets/react-runtime-CVaUQXZF.js.br +0 -0
- package/dist/web/assets/react-runtime-CVaUQXZF.js.gz +0 -0
- package/dist/web/assets/rolldown-runtime-QTnfLwEv.js +0 -1
- package/dist/web/assets/rolldown-runtime-QTnfLwEv.js.br +0 -0
- package/dist/web/assets/rolldown-runtime-QTnfLwEv.js.gz +0 -0
- package/dist/web/assets/shiki-bundle-CGkIRfLa.js.br +0 -0
- package/dist/web/assets/shiki-bundle-CGkIRfLa.js.gz +0 -0
- package/dist/web/assets/tooltip-BPVbHVEF.js +0 -1
- package/dist/web/assets/tooltip-BPVbHVEF.js.br +0 -0
- package/dist/web/assets/tooltip-BPVbHVEF.js.gz +0 -0
- package/dist/web/assets/upload-Bz26q2Ar.js +0 -1
- package/dist/web/assets/upload-Bz26q2Ar.js.br +0 -0
- package/dist/web/assets/upload-Bz26q2Ar.js.gz +0 -0
- package/dist/web/assets/useInfiniteQuery-DJg78OO5.js +0 -1
- package/dist/web/assets/useInfiniteQuery-DJg78OO5.js.br +0 -0
- package/dist/web/assets/useInfiniteQuery-DJg78OO5.js.gz +0 -0
- package/dist/web/assets/workbench-inspector-changes-B4eOJNJh.js +0 -2
- package/dist/web/assets/workbench-inspector-changes-B4eOJNJh.js.br +0 -0
- package/dist/web/assets/workbench-inspector-changes-B4eOJNJh.js.gz +0 -0
- package/dist/web/assets/workbench-pet-canvas-C_XAi7ez.js +0 -1
- package/dist/web/assets/workbench-pet-canvas-C_XAi7ez.js.br +0 -0
- package/dist/web/assets/workbench-pet-canvas-C_XAi7ez.js.gz +0 -0
- package/dist/web/assets/workbench-shell-DQbj_ooS.js +0 -15
- package/dist/web/assets/workbench-shell-DQbj_ooS.js.br +0 -0
- package/dist/web/assets/workbench-shell-DQbj_ooS.js.gz +0 -0
|
@@ -2846,22 +2846,118 @@ var InstallAppUpdateResponseSchema = Type.Object(
|
|
|
2846
2846
|
{ additionalProperties: false }
|
|
2847
2847
|
);
|
|
2848
2848
|
|
|
2849
|
-
// packages/protocol/src/
|
|
2850
|
-
var
|
|
2851
|
-
var AccessStatusResponseSchema = Type.Object(
|
|
2849
|
+
// packages/protocol/src/skill-market.ts
|
|
2850
|
+
var InstalledSkillSchema = Type.Object(
|
|
2852
2851
|
{
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2852
|
+
description: Type.String(),
|
|
2853
|
+
displayName: Type.String({ minLength: 1 }),
|
|
2854
|
+
enabled: Type.Boolean(),
|
|
2855
|
+
id: Type.String({ minLength: 1 }),
|
|
2856
|
+
marketplace: Type.Optional(
|
|
2857
|
+
Type.Object(
|
|
2858
|
+
{
|
|
2859
|
+
installedVersion: Type.String({ minLength: 1 }),
|
|
2860
|
+
owner: Type.String({ minLength: 1 }),
|
|
2861
|
+
slug: Type.String({ minLength: 1 })
|
|
2862
|
+
},
|
|
2863
|
+
{ additionalProperties: false }
|
|
2864
|
+
)
|
|
2865
|
+
),
|
|
2866
|
+
name: Type.String({ minLength: 1 }),
|
|
2867
|
+
path: Type.String({ minLength: 1 }),
|
|
2868
|
+
projectId: Type.Optional(Type.String({ minLength: 1 })),
|
|
2869
|
+
projectName: Type.Optional(Type.String({ minLength: 1 })),
|
|
2870
|
+
rootPath: Type.Optional(Type.String({ minLength: 1 })),
|
|
2871
|
+
scope: Type.Union([
|
|
2872
|
+
Type.Literal("user"),
|
|
2873
|
+
Type.Literal("repo"),
|
|
2874
|
+
Type.Literal("system"),
|
|
2875
|
+
Type.Literal("admin")
|
|
2876
|
+
]),
|
|
2877
|
+
source: Type.Union([Type.Literal("clawhub"), Type.Literal("local")])
|
|
2856
2878
|
},
|
|
2857
2879
|
{ additionalProperties: false }
|
|
2858
2880
|
);
|
|
2859
|
-
var
|
|
2860
|
-
{
|
|
2881
|
+
var InstalledSkillPageSchema = Type.Object(
|
|
2882
|
+
{ data: Type.Array(InstalledSkillSchema), nextCursor: Type.Null() },
|
|
2883
|
+
{ additionalProperties: false }
|
|
2884
|
+
);
|
|
2885
|
+
var ConfiguredMcpServerSchema = Type.Object(
|
|
2886
|
+
{ enabled: Type.Boolean(), name: Type.String({ minLength: 1 }) },
|
|
2887
|
+
{ additionalProperties: false }
|
|
2888
|
+
);
|
|
2889
|
+
var ConfiguredMcpServerPageSchema = Type.Object(
|
|
2890
|
+
{ data: Type.Array(ConfiguredMcpServerSchema, { uniqueItems: true }) },
|
|
2891
|
+
{ additionalProperties: false }
|
|
2892
|
+
);
|
|
2893
|
+
var ClawhubSkillSummarySchema = Type.Object(
|
|
2894
|
+
{
|
|
2895
|
+
canonicalUrl: Type.String({ minLength: 1 }),
|
|
2896
|
+
displayName: Type.String({ minLength: 1 }),
|
|
2897
|
+
downloads: Type.Integer({ minimum: 0 }),
|
|
2898
|
+
id: Type.String({ minLength: 1 }),
|
|
2899
|
+
latestVersion: Type.String({ minLength: 1 }),
|
|
2900
|
+
owner: Type.String({ minLength: 1 }),
|
|
2901
|
+
slug: Type.String({ minLength: 1 }),
|
|
2902
|
+
stars: Type.Integer({ minimum: 0 }),
|
|
2903
|
+
summary: Type.String(),
|
|
2904
|
+
topics: Type.Array(Type.String()),
|
|
2905
|
+
updatedAt: Type.Integer(),
|
|
2906
|
+
versionCount: Type.Integer({ minimum: 0 })
|
|
2907
|
+
},
|
|
2908
|
+
{ additionalProperties: false }
|
|
2909
|
+
);
|
|
2910
|
+
var ClawhubSkillPageSchema = Type.Object(
|
|
2911
|
+
{
|
|
2912
|
+
items: Type.Array(ClawhubSkillSummarySchema),
|
|
2913
|
+
nextCursor: Type.Union([Type.String(), Type.Null()])
|
|
2914
|
+
},
|
|
2915
|
+
{ additionalProperties: false }
|
|
2916
|
+
);
|
|
2917
|
+
var ClawhubSkillVersionSchema = Type.Object(
|
|
2918
|
+
{
|
|
2919
|
+
changelog: Type.String(),
|
|
2920
|
+
createdAt: Type.Integer(),
|
|
2921
|
+
version: Type.String({ minLength: 1 })
|
|
2922
|
+
},
|
|
2923
|
+
{ additionalProperties: false }
|
|
2924
|
+
);
|
|
2925
|
+
var ClawhubSkillDetailSchema = Type.Object(
|
|
2926
|
+
{
|
|
2927
|
+
...ClawhubSkillSummarySchema.properties,
|
|
2928
|
+
changelog: Type.String(),
|
|
2929
|
+
hasWarnings: Type.Boolean(),
|
|
2930
|
+
readme: Type.String(),
|
|
2931
|
+
scanStatus: Type.String({ minLength: 1 }),
|
|
2932
|
+
versions: Type.Array(ClawhubSkillVersionSchema)
|
|
2933
|
+
},
|
|
2934
|
+
{ additionalProperties: false }
|
|
2935
|
+
);
|
|
2936
|
+
var SkillInstallScopeSchema = Type.Union([Type.Literal("project"), Type.Literal("user")]);
|
|
2937
|
+
var SkillInstallResultSchema = Type.Object(
|
|
2938
|
+
{
|
|
2939
|
+
path: Type.String({ minLength: 1 }),
|
|
2940
|
+
status: Type.Union([
|
|
2941
|
+
Type.Literal("current"),
|
|
2942
|
+
Type.Literal("installed"),
|
|
2943
|
+
Type.Literal("updated")
|
|
2944
|
+
]),
|
|
2945
|
+
version: Type.String({ minLength: 1 })
|
|
2946
|
+
},
|
|
2947
|
+
{ additionalProperties: false }
|
|
2948
|
+
);
|
|
2949
|
+
var SetSkillEnabledResponseSchema = Type.Object(
|
|
2950
|
+
{ effectiveEnabled: Type.Boolean() },
|
|
2951
|
+
{ additionalProperties: false }
|
|
2952
|
+
);
|
|
2953
|
+
var SetMcpServerEnabledResponseSchema = Type.Object(
|
|
2954
|
+
{ enabled: Type.Boolean() },
|
|
2955
|
+
{ additionalProperties: false }
|
|
2956
|
+
);
|
|
2957
|
+
var OpenSkillDirectoryResponseSchema = Type.Object(
|
|
2958
|
+
{ status: Type.Literal("opened") },
|
|
2861
2959
|
{ additionalProperties: false }
|
|
2862
2960
|
);
|
|
2863
|
-
var PairAccessResponseSchema = AccessStatusResponseSchema;
|
|
2864
|
-
var LogoutAccessResponseSchema = AccessStatusResponseSchema;
|
|
2865
2961
|
|
|
2866
2962
|
// packages/protocol/src/project-root.ts
|
|
2867
2963
|
var ProjectRootPathSchema = Type.String({
|
|
@@ -3108,11 +3204,19 @@ var RemoveProjectResponseSchema = Type.Object(
|
|
|
3108
3204
|
);
|
|
3109
3205
|
|
|
3110
3206
|
// packages/protocol/src/agent-attachments.ts
|
|
3207
|
+
var AgentThreadConfigurationSchema = Type.Object(
|
|
3208
|
+
{
|
|
3209
|
+
model: Type.Union([Type.String(), Type.Null()]),
|
|
3210
|
+
reasoningEffort: Type.Union([Type.String(), Type.Null()])
|
|
3211
|
+
},
|
|
3212
|
+
{ additionalProperties: false }
|
|
3213
|
+
);
|
|
3111
3214
|
var AgentTaskSchema = Type.Object(
|
|
3112
3215
|
{
|
|
3113
3216
|
id: Type.String({ minLength: 1 }),
|
|
3114
3217
|
pinned: Type.Boolean(),
|
|
3115
3218
|
projectId: Type.String({ minLength: 1 }),
|
|
3219
|
+
threadConfiguration: Type.Optional(AgentThreadConfigurationSchema),
|
|
3116
3220
|
title: Type.String({ minLength: 1 }),
|
|
3117
3221
|
updatedAt: DateTimeSchema
|
|
3118
3222
|
},
|
|
@@ -3401,6 +3505,17 @@ var AgentMessageItemSchema = Type.Object(
|
|
|
3401
3505
|
),
|
|
3402
3506
|
id: Type.String({ minLength: 1 }),
|
|
3403
3507
|
phase: Type.Optional(AgentMessagePhaseSchema),
|
|
3508
|
+
questions: Type.Optional(
|
|
3509
|
+
Type.Array(
|
|
3510
|
+
Type.Object(
|
|
3511
|
+
{
|
|
3512
|
+
title: Type.String(),
|
|
3513
|
+
options: Type.Union([Type.Array(Type.String()), Type.Null()])
|
|
3514
|
+
},
|
|
3515
|
+
{ additionalProperties: false }
|
|
3516
|
+
)
|
|
3517
|
+
)
|
|
3518
|
+
),
|
|
3404
3519
|
role: Type.Union([Type.Literal("user"), Type.Literal("assistant")]),
|
|
3405
3520
|
skills: Type.Optional(Type.Array(AgentMessageSkillSchema)),
|
|
3406
3521
|
text: Type.String(),
|
|
@@ -3458,598 +3573,166 @@ var TerminateAgentBackgroundTerminalResponseSchema = Type.Object(
|
|
|
3458
3573
|
{ additionalProperties: false }
|
|
3459
3574
|
);
|
|
3460
3575
|
|
|
3461
|
-
// packages/protocol/src/
|
|
3462
|
-
var
|
|
3463
|
-
var NullableNumberSchema = Type.Union([Type.Number(), Type.Null()]);
|
|
3464
|
-
var McpElicitationFieldProperties = {
|
|
3465
|
-
description: NullableStringSchema,
|
|
3466
|
-
id: Type.String({ minLength: 1 }),
|
|
3467
|
-
required: Type.Boolean(),
|
|
3468
|
-
title: Type.String({ minLength: 1 })
|
|
3469
|
-
};
|
|
3470
|
-
var McpElicitationOptionSchema = Type.Object(
|
|
3576
|
+
// packages/protocol/src/project-git.ts
|
|
3577
|
+
var AgentFileChangeSchema = Type.Object(
|
|
3471
3578
|
{
|
|
3472
|
-
|
|
3473
|
-
|
|
3579
|
+
diff: Type.String(),
|
|
3580
|
+
kind: Type.Union([Type.Literal("create"), Type.Literal("update"), Type.Literal("delete")]),
|
|
3581
|
+
// Provider 历史可能保留绝对路径;只有 Project Git API 收紧为相对路径。
|
|
3582
|
+
path: Type.String({ minLength: 1 })
|
|
3474
3583
|
},
|
|
3475
3584
|
{ additionalProperties: false }
|
|
3476
3585
|
);
|
|
3477
|
-
var
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
...McpElicitationFieldProperties,
|
|
3498
|
-
defaultValue: Type.Union([Type.String(), Type.Null()]),
|
|
3499
|
-
options: Type.Array(McpElicitationOptionSchema, { minItems: 1 }),
|
|
3500
|
-
type: Type.Literal("select")
|
|
3501
|
-
},
|
|
3502
|
-
{ additionalProperties: false }
|
|
3503
|
-
),
|
|
3504
|
-
Type.Object(
|
|
3505
|
-
{
|
|
3506
|
-
...McpElicitationFieldProperties,
|
|
3507
|
-
defaultValue: Type.Array(Type.String()),
|
|
3508
|
-
maximum: Type.Union([Type.Integer({ minimum: 0 }), Type.Null()]),
|
|
3509
|
-
minimum: Type.Union([Type.Integer({ minimum: 0 }), Type.Null()]),
|
|
3510
|
-
options: Type.Array(McpElicitationOptionSchema, { minItems: 1 }),
|
|
3511
|
-
type: Type.Literal("multi_select")
|
|
3512
|
-
},
|
|
3513
|
-
{ additionalProperties: false }
|
|
3514
|
-
),
|
|
3515
|
-
Type.Object(
|
|
3516
|
-
{
|
|
3517
|
-
...McpElicitationFieldProperties,
|
|
3518
|
-
defaultValue: NullableNumberSchema,
|
|
3519
|
-
maximum: NullableNumberSchema,
|
|
3520
|
-
minimum: NullableNumberSchema,
|
|
3521
|
-
type: Type.Union([Type.Literal("number"), Type.Literal("integer")])
|
|
3522
|
-
},
|
|
3523
|
-
{ additionalProperties: false }
|
|
3524
|
-
),
|
|
3525
|
-
Type.Object(
|
|
3526
|
-
{
|
|
3527
|
-
...McpElicitationFieldProperties,
|
|
3528
|
-
defaultValue: Type.Union([Type.Boolean(), Type.Null()]),
|
|
3529
|
-
type: Type.Literal("boolean")
|
|
3530
|
-
},
|
|
3531
|
-
{ additionalProperties: false }
|
|
3532
|
-
)
|
|
3533
|
-
]);
|
|
3534
|
-
var McpElicitationAcceptContentSchema = Type.Record(
|
|
3535
|
-
Type.String(),
|
|
3536
|
-
Type.Union([Type.String(), Type.Number(), Type.Boolean(), Type.Array(Type.String())])
|
|
3586
|
+
var GitSnapshotSchema = Type.String({ maxLength: 64, minLength: 64, pattern: "^[a-f0-9]{64}$" });
|
|
3587
|
+
var GitBranchNameSchema = Type.String({ maxLength: 1024, minLength: 1, pattern: "\\S" });
|
|
3588
|
+
var GitChildRepositorySchema = Type.String({
|
|
3589
|
+
maxLength: 1024,
|
|
3590
|
+
minLength: 1,
|
|
3591
|
+
pattern: "^(?!\\.{1,2}$)(?!.*[\\u0000\\r\\n])[^/\\\\]+$"
|
|
3592
|
+
});
|
|
3593
|
+
var SelectedGitPathsSchema = Type.Array(ProjectRelativePathSchema, {
|
|
3594
|
+
maxItems: 500,
|
|
3595
|
+
minItems: 1,
|
|
3596
|
+
uniqueItems: true
|
|
3597
|
+
});
|
|
3598
|
+
var CommitMessageSchema = Type.String({ maxLength: 1e4, minLength: 1, pattern: "\\S" });
|
|
3599
|
+
var ProjectGitFileChangeSchema = Type.Object(
|
|
3600
|
+
{
|
|
3601
|
+
diff: Type.String(),
|
|
3602
|
+
kind: Type.Union([Type.Literal("create"), Type.Literal("update"), Type.Literal("delete")]),
|
|
3603
|
+
path: ProjectRelativePathSchema
|
|
3604
|
+
},
|
|
3605
|
+
{ additionalProperties: false }
|
|
3537
3606
|
);
|
|
3538
|
-
var
|
|
3539
|
-
Type.Object(
|
|
3540
|
-
{ action: Type.Literal("accept"), content: McpElicitationAcceptContentSchema },
|
|
3541
|
-
{ additionalProperties: false }
|
|
3542
|
-
),
|
|
3543
|
-
Type.Object(
|
|
3544
|
-
{
|
|
3545
|
-
action: Type.Union([Type.Literal("decline"), Type.Literal("cancel")]),
|
|
3546
|
-
content: Type.Null()
|
|
3547
|
-
},
|
|
3548
|
-
{ additionalProperties: false }
|
|
3549
|
-
)
|
|
3550
|
-
]);
|
|
3551
|
-
|
|
3552
|
-
// packages/protocol/src/pending-request.ts
|
|
3553
|
-
var PendingRequestStatusSchema = Type.Union([
|
|
3554
|
-
Type.Literal("pending"),
|
|
3555
|
-
Type.Literal("resolved"),
|
|
3556
|
-
Type.Literal("expired")
|
|
3557
|
-
]);
|
|
3558
|
-
var PendingApprovalDecisionSchema = Type.Union([
|
|
3559
|
-
Type.Literal("allow"),
|
|
3560
|
-
Type.Literal("allow_for_session"),
|
|
3561
|
-
Type.Literal("deny")
|
|
3562
|
-
]);
|
|
3563
|
-
var PendingNetworkAccessSchema = Type.Object(
|
|
3607
|
+
var ProjectGitStatusSchema = Type.Object(
|
|
3564
3608
|
{
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
Type.Literal("
|
|
3570
|
-
Type.Literal("
|
|
3571
|
-
|
|
3609
|
+
baseBranches: Type.Array(Type.String({ minLength: 1 }), { uniqueItems: true }),
|
|
3610
|
+
branch: Type.Union([Type.String({ minLength: 1 }), Type.Null()]),
|
|
3611
|
+
branches: Type.Array(GitBranchNameSchema, { uniqueItems: true }),
|
|
3612
|
+
repositoryMode: Type.Union([
|
|
3613
|
+
Type.Literal("root"),
|
|
3614
|
+
Type.Literal("children"),
|
|
3615
|
+
Type.Literal("none")
|
|
3616
|
+
]),
|
|
3617
|
+
snapshot: GitSnapshotSchema,
|
|
3618
|
+
staged: Type.Array(ProjectGitFileChangeSchema),
|
|
3619
|
+
unstaged: Type.Array(ProjectGitFileChangeSchema)
|
|
3572
3620
|
},
|
|
3573
3621
|
{ additionalProperties: false }
|
|
3574
3622
|
);
|
|
3575
|
-
var
|
|
3576
|
-
createdAt: DateTimeSchema,
|
|
3577
|
-
expiresAt: NullableDateTimeSchema,
|
|
3578
|
-
itemId: Type.String({ minLength: 1 }),
|
|
3579
|
-
projectId: Type.String({ minLength: 1 }),
|
|
3580
|
-
requestId: Type.String({ minLength: 1 }),
|
|
3581
|
-
status: PendingRequestStatusSchema,
|
|
3582
|
-
taskId: Type.String({ minLength: 1 }),
|
|
3583
|
-
turnId: Type.String({ minLength: 1 })
|
|
3584
|
-
};
|
|
3585
|
-
var PendingRequestResolutionIdentityProperties = {
|
|
3586
|
-
itemId: Type.String({ minLength: 1 }),
|
|
3587
|
-
projectId: Type.String({ minLength: 1 }),
|
|
3588
|
-
taskId: Type.String({ minLength: 1 }),
|
|
3589
|
-
turnId: Type.String({ minLength: 1 })
|
|
3590
|
-
};
|
|
3591
|
-
var PendingUserInputOptionSchema = Type.Object(
|
|
3623
|
+
var ProjectGitStatusQuerySchema = Type.Object(
|
|
3592
3624
|
{
|
|
3593
|
-
|
|
3594
|
-
|
|
3625
|
+
includeDiff: Type.Optional(Type.Boolean()),
|
|
3626
|
+
repository: Type.Optional(GitChildRepositorySchema),
|
|
3627
|
+
rootPath: ProjectRootPathSchema
|
|
3595
3628
|
},
|
|
3596
3629
|
{ additionalProperties: false }
|
|
3597
3630
|
);
|
|
3598
|
-
var
|
|
3599
|
-
header: Type.String({ minLength: 1 }),
|
|
3600
|
-
id: Type.String({ minLength: 1 }),
|
|
3601
|
-
isSecret: Type.Boolean(),
|
|
3602
|
-
prompt: Type.String({ minLength: 1 })
|
|
3603
|
-
};
|
|
3604
|
-
var PendingUserInputQuestionSchema = Type.Union([
|
|
3605
|
-
Type.Object(
|
|
3606
|
-
{
|
|
3607
|
-
...PendingUserInputQuestionProperties,
|
|
3608
|
-
isOther: Type.Boolean(),
|
|
3609
|
-
options: Type.Array(PendingUserInputOptionSchema, { minItems: 1 }),
|
|
3610
|
-
type: Type.Literal("choice")
|
|
3611
|
-
},
|
|
3612
|
-
{ additionalProperties: false }
|
|
3613
|
-
),
|
|
3614
|
-
Type.Object(
|
|
3615
|
-
{
|
|
3616
|
-
...PendingUserInputQuestionProperties,
|
|
3617
|
-
isOther: Type.Literal(true),
|
|
3618
|
-
options: Type.Array(PendingUserInputOptionSchema, { maxItems: 0 }),
|
|
3619
|
-
type: Type.Literal("choice")
|
|
3620
|
-
},
|
|
3621
|
-
{ additionalProperties: false }
|
|
3622
|
-
),
|
|
3623
|
-
Type.Object(
|
|
3624
|
-
{
|
|
3625
|
-
...PendingUserInputQuestionProperties,
|
|
3626
|
-
isOther: Type.Literal(false),
|
|
3627
|
-
options: Type.Array(PendingUserInputOptionSchema, { maxItems: 2, minItems: 2 }),
|
|
3628
|
-
type: Type.Literal("confirmation")
|
|
3629
|
-
},
|
|
3630
|
-
{ additionalProperties: false }
|
|
3631
|
-
),
|
|
3632
|
-
Type.Object(
|
|
3633
|
-
{
|
|
3634
|
-
...PendingUserInputQuestionProperties,
|
|
3635
|
-
isOther: Type.Boolean(),
|
|
3636
|
-
options: Type.Array(PendingUserInputOptionSchema, { maxItems: 0 }),
|
|
3637
|
-
type: Type.Literal("short_text")
|
|
3638
|
-
},
|
|
3639
|
-
{ additionalProperties: false }
|
|
3640
|
-
)
|
|
3641
|
-
]);
|
|
3642
|
-
var FileChangeApprovalPendingRequestSchema = Type.Object(
|
|
3631
|
+
var ProjectGitCommitSchema = Type.Object(
|
|
3643
3632
|
{
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3633
|
+
authoredAt: Type.String({ format: "date-time" }),
|
|
3634
|
+
authorEmail: Type.String({ maxLength: 320, minLength: 1 }),
|
|
3635
|
+
authorName: Type.String({ maxLength: 512, minLength: 1, pattern: "\\S" }),
|
|
3636
|
+
sha: Type.String({ maxLength: 64, minLength: 40, pattern: "^[a-f0-9]+$" }),
|
|
3637
|
+
title: Type.String({ maxLength: 1e4, minLength: 1, pattern: "\\S" })
|
|
3649
3638
|
},
|
|
3650
3639
|
{ additionalProperties: false }
|
|
3651
3640
|
);
|
|
3652
|
-
var
|
|
3653
|
-
|
|
3654
|
-
Type.Literal("file_system")
|
|
3655
|
-
]);
|
|
3656
|
-
var PendingPermissionAccessSchema = Type.Union([
|
|
3657
|
-
Type.Literal("read"),
|
|
3658
|
-
Type.Literal("write"),
|
|
3659
|
-
Type.Literal("deny")
|
|
3660
|
-
]);
|
|
3661
|
-
var PendingPermissionPathSchema = Type.Union([
|
|
3662
|
-
Type.Object(
|
|
3663
|
-
{ type: Type.Literal("path"), value: Type.String({ minLength: 1 }) },
|
|
3664
|
-
{ additionalProperties: false }
|
|
3665
|
-
),
|
|
3666
|
-
Type.Object(
|
|
3667
|
-
{ type: Type.Literal("glob"), value: Type.String({ minLength: 1 }) },
|
|
3668
|
-
{ additionalProperties: false }
|
|
3669
|
-
),
|
|
3670
|
-
Type.Object(
|
|
3671
|
-
{
|
|
3672
|
-
kind: Type.Union([
|
|
3673
|
-
Type.Literal("root"),
|
|
3674
|
-
Type.Literal("minimal"),
|
|
3675
|
-
Type.Literal("project_roots"),
|
|
3676
|
-
Type.Literal("tmpdir"),
|
|
3677
|
-
Type.Literal("slash_tmp"),
|
|
3678
|
-
Type.Literal("unknown")
|
|
3679
|
-
]),
|
|
3680
|
-
path: Type.Union([Type.String({ minLength: 1 }), Type.Null()]),
|
|
3681
|
-
subpath: Type.Union([Type.String(), Type.Null()]),
|
|
3682
|
-
type: Type.Literal("special")
|
|
3683
|
-
},
|
|
3684
|
-
{ additionalProperties: false }
|
|
3685
|
-
)
|
|
3686
|
-
]);
|
|
3687
|
-
var PendingFileSystemPermissionsSchema = Type.Object(
|
|
3641
|
+
var GitHistoryCursorSchema = Type.String({ maxLength: 20, minLength: 1, pattern: "^[0-9]+$" });
|
|
3642
|
+
var ProjectGitHistoryQuerySchema = Type.Object(
|
|
3688
3643
|
{
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
{ additionalProperties: false }
|
|
3693
|
-
)
|
|
3694
|
-
),
|
|
3695
|
-
globScanMaxDepth: Type.Union([Type.Integer({ minimum: 0 }), Type.Null()]),
|
|
3696
|
-
read: Type.Union([Type.Array(Type.String({ minLength: 1 })), Type.Null()]),
|
|
3697
|
-
write: Type.Union([Type.Array(Type.String({ minLength: 1 })), Type.Null()])
|
|
3644
|
+
cursor: Type.Optional(GitHistoryCursorSchema),
|
|
3645
|
+
repository: Type.Optional(ProjectRelativePathSchema),
|
|
3646
|
+
rootPath: ProjectRootPathSchema
|
|
3698
3647
|
},
|
|
3699
3648
|
{ additionalProperties: false }
|
|
3700
3649
|
);
|
|
3701
|
-
var
|
|
3650
|
+
var ProjectGitHistoryPageSchema = Type.Object(
|
|
3702
3651
|
{
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
Type.Null()
|
|
3710
|
-
])
|
|
3652
|
+
branch: Type.Union([GitBranchNameSchema, Type.Null()]),
|
|
3653
|
+
commits: Type.Array(ProjectGitCommitSchema, { maxItems: 20 }),
|
|
3654
|
+
nextCursor: Type.Union([GitHistoryCursorSchema, Type.Null()]),
|
|
3655
|
+
repositories: Type.Array(ProjectRelativePathSchema, { maxItems: 256, uniqueItems: true }),
|
|
3656
|
+
repository: Type.Union([ProjectRelativePathSchema, Type.Null()]),
|
|
3657
|
+
repositoryMode: Type.Union([Type.Literal("root"), Type.Literal("children")])
|
|
3711
3658
|
},
|
|
3712
3659
|
{ additionalProperties: false }
|
|
3713
3660
|
);
|
|
3714
|
-
var
|
|
3661
|
+
var GitCommitShaSchema = Type.String({ maxLength: 64, minLength: 40, pattern: "^[a-f0-9]+$" });
|
|
3662
|
+
var GitCommitFilesCursorSchema = Type.String({
|
|
3663
|
+
maxLength: 20,
|
|
3664
|
+
minLength: 1,
|
|
3665
|
+
pattern: "^[0-9]+$"
|
|
3666
|
+
});
|
|
3667
|
+
var ProjectGitCommitFilesQuerySchema = Type.Object(
|
|
3715
3668
|
{
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
cwd: Type.Union([Type.String(), Type.Null()]),
|
|
3721
|
-
kind: Type.Union([Type.Literal("command"), Type.Literal("write_stdin")]),
|
|
3722
|
-
networkAccess: Type.Union([PendingNetworkAccessSchema, Type.Null()]),
|
|
3723
|
-
reason: Type.Union([Type.String(), Type.Null()]),
|
|
3724
|
-
type: Type.Literal("command_approval")
|
|
3669
|
+
cursor: Type.Optional(GitCommitFilesCursorSchema),
|
|
3670
|
+
repository: Type.Optional(ProjectRelativePathSchema),
|
|
3671
|
+
rootPath: ProjectRootPathSchema,
|
|
3672
|
+
sha: GitCommitShaSchema
|
|
3725
3673
|
},
|
|
3726
3674
|
{ additionalProperties: false }
|
|
3727
3675
|
);
|
|
3728
|
-
var
|
|
3676
|
+
var ProjectGitCommitFileSchema = Type.Object(
|
|
3729
3677
|
{
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
environmentId: Type.Union([Type.String({ minLength: 1 }), Type.Null()]),
|
|
3733
|
-
permissions: PendingPermissionProfileSchema,
|
|
3734
|
-
reason: Type.Union([Type.String(), Type.Null()]),
|
|
3735
|
-
type: Type.Literal("permissions_approval")
|
|
3678
|
+
kind: Type.Union([Type.Literal("create"), Type.Literal("update"), Type.Literal("delete")]),
|
|
3679
|
+
path: ProjectRelativePathSchema
|
|
3736
3680
|
},
|
|
3737
3681
|
{ additionalProperties: false }
|
|
3738
3682
|
);
|
|
3739
|
-
var
|
|
3683
|
+
var ProjectGitCommitFilesPageSchema = Type.Object(
|
|
3740
3684
|
{
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
type: Type.Literal("user_input")
|
|
3685
|
+
files: Type.Array(ProjectGitCommitFileSchema, { maxItems: 100 }),
|
|
3686
|
+
nextCursor: Type.Union([GitCommitFilesCursorSchema, Type.Null()])
|
|
3744
3687
|
},
|
|
3745
3688
|
{ additionalProperties: false }
|
|
3746
3689
|
);
|
|
3747
|
-
var
|
|
3748
|
-
...PendingRequestIdentityProperties,
|
|
3749
|
-
message: Type.String({ minLength: 1 }),
|
|
3750
|
-
serverName: Type.String({ minLength: 1 }),
|
|
3751
|
-
type: Type.Literal("mcp_elicitation")
|
|
3752
|
-
};
|
|
3753
|
-
var McpFormElicitationPendingRequestSchema = Type.Object(
|
|
3690
|
+
var ProjectGitCommitFileDiffQuerySchema = Type.Object(
|
|
3754
3691
|
{
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3692
|
+
path: ProjectRelativePathSchema,
|
|
3693
|
+
repository: Type.Optional(ProjectRelativePathSchema),
|
|
3694
|
+
rootPath: ProjectRootPathSchema,
|
|
3695
|
+
sha: GitCommitShaSchema
|
|
3758
3696
|
},
|
|
3759
3697
|
{ additionalProperties: false }
|
|
3760
3698
|
);
|
|
3761
|
-
var
|
|
3699
|
+
var ProjectGitCommitFileDiffSchema = Type.Object(
|
|
3762
3700
|
{
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
url: Type.String({ minLength: 1 })
|
|
3701
|
+
diff: Type.String({ maxLength: 512 * 1024 }),
|
|
3702
|
+
truncated: Type.Boolean()
|
|
3766
3703
|
},
|
|
3767
3704
|
{ additionalProperties: false }
|
|
3768
3705
|
);
|
|
3769
|
-
var
|
|
3706
|
+
var SwitchProjectBranchRequestSchema = Type.Object(
|
|
3770
3707
|
{
|
|
3771
|
-
|
|
3772
|
-
|
|
3708
|
+
branch: GitBranchNameSchema,
|
|
3709
|
+
expectedSnapshot: GitSnapshotSchema
|
|
3773
3710
|
},
|
|
3774
3711
|
{ additionalProperties: false }
|
|
3775
3712
|
);
|
|
3776
|
-
var
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
var PendingRequestSchema = Type.Union([
|
|
3782
|
-
CommandApprovalPendingRequestSchema,
|
|
3783
|
-
FileChangeApprovalPendingRequestSchema,
|
|
3784
|
-
PermissionApprovalPendingRequestSchema,
|
|
3785
|
-
UserInputPendingRequestSchema,
|
|
3786
|
-
McpElicitationPendingRequestSchema
|
|
3787
|
-
]);
|
|
3788
|
-
function createPendingRequestStatusSchema(status) {
|
|
3789
|
-
return Type.Union([
|
|
3790
|
-
Type.Object(
|
|
3791
|
-
{ ...CommandApprovalPendingRequestSchema.properties, status: Type.Literal(status) },
|
|
3792
|
-
{ additionalProperties: false }
|
|
3793
|
-
),
|
|
3794
|
-
Type.Object(
|
|
3795
|
-
{ ...FileChangeApprovalPendingRequestSchema.properties, status: Type.Literal(status) },
|
|
3796
|
-
{ additionalProperties: false }
|
|
3797
|
-
),
|
|
3798
|
-
Type.Object(
|
|
3799
|
-
{ ...PermissionApprovalPendingRequestSchema.properties, status: Type.Literal(status) },
|
|
3800
|
-
{ additionalProperties: false }
|
|
3801
|
-
),
|
|
3802
|
-
Type.Object(
|
|
3803
|
-
{ ...UserInputPendingRequestSchema.properties, status: Type.Literal(status) },
|
|
3804
|
-
{ additionalProperties: false }
|
|
3805
|
-
),
|
|
3806
|
-
Type.Object(
|
|
3807
|
-
{ ...McpFormElicitationPendingRequestSchema.properties, status: Type.Literal(status) },
|
|
3808
|
-
{ additionalProperties: false }
|
|
3809
|
-
),
|
|
3810
|
-
Type.Object(
|
|
3811
|
-
{ ...McpUrlElicitationPendingRequestSchema.properties, status: Type.Literal(status) },
|
|
3812
|
-
{ additionalProperties: false }
|
|
3813
|
-
),
|
|
3814
|
-
Type.Object(
|
|
3815
|
-
{ ...McpUnsupportedElicitationPendingRequestSchema.properties, status: Type.Literal(status) },
|
|
3816
|
-
{ additionalProperties: false }
|
|
3817
|
-
)
|
|
3818
|
-
]);
|
|
3819
|
-
}
|
|
3820
|
-
var ActivePendingRequestSchema = createPendingRequestStatusSchema("pending");
|
|
3821
|
-
var ResolvedPendingRequestSchema = createPendingRequestStatusSchema("resolved");
|
|
3822
|
-
var ExpiredPendingRequestSchema = createPendingRequestStatusSchema("expired");
|
|
3823
|
-
var ApprovalResolutionSchema = Type.Object(
|
|
3824
|
-
{ decision: PendingApprovalDecisionSchema },
|
|
3713
|
+
var CreateProjectBranchRequestSchema = Type.Object(
|
|
3714
|
+
{
|
|
3715
|
+
branch: GitBranchNameSchema,
|
|
3716
|
+
expectedSnapshot: GitSnapshotSchema
|
|
3717
|
+
},
|
|
3825
3718
|
{ additionalProperties: false }
|
|
3826
3719
|
);
|
|
3827
|
-
var
|
|
3720
|
+
var ProjectGitWorktreeSchema = Type.Object(
|
|
3828
3721
|
{
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
)
|
|
3722
|
+
branch: Type.Union([GitBranchNameSchema, Type.Null()]),
|
|
3723
|
+
current: Type.Boolean(),
|
|
3724
|
+
path: ProjectDirectoryPathSchema
|
|
3833
3725
|
},
|
|
3834
3726
|
{ additionalProperties: false }
|
|
3835
3727
|
);
|
|
3836
|
-
var
|
|
3728
|
+
var ProjectGitWorktreePageSchema = Type.Object(
|
|
3729
|
+
{ worktrees: Type.Array(ProjectGitWorktreeSchema, { maxItems: 256 }) },
|
|
3730
|
+
{ additionalProperties: false }
|
|
3731
|
+
);
|
|
3732
|
+
var CreateProjectWorktreeRequestSchema = Type.Object(
|
|
3837
3733
|
{
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
uniqueItems: true
|
|
3841
|
-
}),
|
|
3842
|
-
scope: Type.Union([Type.Literal("turn"), Type.Literal("session")])
|
|
3843
|
-
},
|
|
3844
|
-
{ additionalProperties: false }
|
|
3845
|
-
);
|
|
3846
|
-
var ResolvePendingRequestRequestSchema = Type.Union([
|
|
3847
|
-
Type.Object(
|
|
3848
|
-
{
|
|
3849
|
-
...PendingRequestResolutionIdentityProperties,
|
|
3850
|
-
resolution: ApprovalResolutionSchema,
|
|
3851
|
-
type: Type.Literal("command_approval")
|
|
3852
|
-
},
|
|
3853
|
-
{ additionalProperties: false }
|
|
3854
|
-
),
|
|
3855
|
-
Type.Object(
|
|
3856
|
-
{
|
|
3857
|
-
...PendingRequestResolutionIdentityProperties,
|
|
3858
|
-
resolution: ApprovalResolutionSchema,
|
|
3859
|
-
type: Type.Literal("file_change_approval")
|
|
3860
|
-
},
|
|
3861
|
-
{ additionalProperties: false }
|
|
3862
|
-
),
|
|
3863
|
-
Type.Object(
|
|
3864
|
-
{
|
|
3865
|
-
...PendingRequestResolutionIdentityProperties,
|
|
3866
|
-
resolution: PermissionApprovalResolutionSchema,
|
|
3867
|
-
type: Type.Literal("permissions_approval")
|
|
3868
|
-
},
|
|
3869
|
-
{ additionalProperties: false }
|
|
3870
|
-
),
|
|
3871
|
-
Type.Object(
|
|
3872
|
-
{
|
|
3873
|
-
...PendingRequestResolutionIdentityProperties,
|
|
3874
|
-
resolution: UserInputResolutionSchema,
|
|
3875
|
-
type: Type.Literal("user_input")
|
|
3876
|
-
},
|
|
3877
|
-
{ additionalProperties: false }
|
|
3878
|
-
),
|
|
3879
|
-
Type.Object(
|
|
3880
|
-
{
|
|
3881
|
-
...PendingRequestResolutionIdentityProperties,
|
|
3882
|
-
resolution: McpElicitationResolutionSchema,
|
|
3883
|
-
type: Type.Literal("mcp_elicitation")
|
|
3884
|
-
},
|
|
3885
|
-
{ additionalProperties: false }
|
|
3886
|
-
)
|
|
3887
|
-
]);
|
|
3888
|
-
var ResolvePendingRequestResponseSchema = Type.Object(
|
|
3889
|
-
{ request: PendingRequestSchema },
|
|
3890
|
-
{ additionalProperties: false }
|
|
3891
|
-
);
|
|
3892
|
-
|
|
3893
|
-
// packages/protocol/src/project-git.ts
|
|
3894
|
-
var AgentFileChangeSchema = Type.Object(
|
|
3895
|
-
{
|
|
3896
|
-
diff: Type.String(),
|
|
3897
|
-
kind: Type.Union([Type.Literal("create"), Type.Literal("update"), Type.Literal("delete")]),
|
|
3898
|
-
// Provider 历史可能保留绝对路径;只有 Project Git API 收紧为相对路径。
|
|
3899
|
-
path: Type.String({ minLength: 1 })
|
|
3900
|
-
},
|
|
3901
|
-
{ additionalProperties: false }
|
|
3902
|
-
);
|
|
3903
|
-
var GitSnapshotSchema = Type.String({ maxLength: 64, minLength: 64, pattern: "^[a-f0-9]{64}$" });
|
|
3904
|
-
var GitBranchNameSchema = Type.String({ maxLength: 1024, minLength: 1, pattern: "\\S" });
|
|
3905
|
-
var GitChildRepositorySchema = Type.String({
|
|
3906
|
-
maxLength: 1024,
|
|
3907
|
-
minLength: 1,
|
|
3908
|
-
pattern: "^(?!\\.{1,2}$)(?!.*[\\u0000\\r\\n])[^/\\\\]+$"
|
|
3909
|
-
});
|
|
3910
|
-
var SelectedGitPathsSchema = Type.Array(ProjectRelativePathSchema, {
|
|
3911
|
-
maxItems: 500,
|
|
3912
|
-
minItems: 1,
|
|
3913
|
-
uniqueItems: true
|
|
3914
|
-
});
|
|
3915
|
-
var CommitMessageSchema = Type.String({ maxLength: 1e4, minLength: 1, pattern: "\\S" });
|
|
3916
|
-
var ProjectGitFileChangeSchema = Type.Object(
|
|
3917
|
-
{
|
|
3918
|
-
diff: Type.String(),
|
|
3919
|
-
kind: Type.Union([Type.Literal("create"), Type.Literal("update"), Type.Literal("delete")]),
|
|
3920
|
-
path: ProjectRelativePathSchema
|
|
3921
|
-
},
|
|
3922
|
-
{ additionalProperties: false }
|
|
3923
|
-
);
|
|
3924
|
-
var ProjectGitStatusSchema = Type.Object(
|
|
3925
|
-
{
|
|
3926
|
-
baseBranches: Type.Array(Type.String({ minLength: 1 }), { uniqueItems: true }),
|
|
3927
|
-
branch: Type.Union([Type.String({ minLength: 1 }), Type.Null()]),
|
|
3928
|
-
branches: Type.Array(GitBranchNameSchema, { uniqueItems: true }),
|
|
3929
|
-
repositoryMode: Type.Union([
|
|
3930
|
-
Type.Literal("root"),
|
|
3931
|
-
Type.Literal("children"),
|
|
3932
|
-
Type.Literal("none")
|
|
3933
|
-
]),
|
|
3934
|
-
snapshot: GitSnapshotSchema,
|
|
3935
|
-
staged: Type.Array(ProjectGitFileChangeSchema),
|
|
3936
|
-
unstaged: Type.Array(ProjectGitFileChangeSchema)
|
|
3937
|
-
},
|
|
3938
|
-
{ additionalProperties: false }
|
|
3939
|
-
);
|
|
3940
|
-
var ProjectGitStatusQuerySchema = Type.Object(
|
|
3941
|
-
{
|
|
3942
|
-
includeDiff: Type.Optional(Type.Boolean()),
|
|
3943
|
-
repository: Type.Optional(GitChildRepositorySchema),
|
|
3944
|
-
rootPath: ProjectRootPathSchema
|
|
3945
|
-
},
|
|
3946
|
-
{ additionalProperties: false }
|
|
3947
|
-
);
|
|
3948
|
-
var ProjectGitCommitSchema = Type.Object(
|
|
3949
|
-
{
|
|
3950
|
-
authoredAt: Type.String({ format: "date-time" }),
|
|
3951
|
-
authorEmail: Type.String({ maxLength: 320, minLength: 1 }),
|
|
3952
|
-
authorName: Type.String({ maxLength: 512, minLength: 1, pattern: "\\S" }),
|
|
3953
|
-
sha: Type.String({ maxLength: 64, minLength: 40, pattern: "^[a-f0-9]+$" }),
|
|
3954
|
-
title: Type.String({ maxLength: 1e4, minLength: 1, pattern: "\\S" })
|
|
3955
|
-
},
|
|
3956
|
-
{ additionalProperties: false }
|
|
3957
|
-
);
|
|
3958
|
-
var GitHistoryCursorSchema = Type.String({ maxLength: 20, minLength: 1, pattern: "^[0-9]+$" });
|
|
3959
|
-
var ProjectGitHistoryQuerySchema = Type.Object(
|
|
3960
|
-
{
|
|
3961
|
-
cursor: Type.Optional(GitHistoryCursorSchema),
|
|
3962
|
-
repository: Type.Optional(ProjectRelativePathSchema),
|
|
3963
|
-
rootPath: ProjectRootPathSchema
|
|
3964
|
-
},
|
|
3965
|
-
{ additionalProperties: false }
|
|
3966
|
-
);
|
|
3967
|
-
var ProjectGitHistoryPageSchema = Type.Object(
|
|
3968
|
-
{
|
|
3969
|
-
branch: Type.Union([GitBranchNameSchema, Type.Null()]),
|
|
3970
|
-
commits: Type.Array(ProjectGitCommitSchema, { maxItems: 20 }),
|
|
3971
|
-
nextCursor: Type.Union([GitHistoryCursorSchema, Type.Null()]),
|
|
3972
|
-
repositories: Type.Array(ProjectRelativePathSchema, { maxItems: 256, uniqueItems: true }),
|
|
3973
|
-
repository: Type.Union([ProjectRelativePathSchema, Type.Null()]),
|
|
3974
|
-
repositoryMode: Type.Union([Type.Literal("root"), Type.Literal("children")])
|
|
3975
|
-
},
|
|
3976
|
-
{ additionalProperties: false }
|
|
3977
|
-
);
|
|
3978
|
-
var GitCommitShaSchema = Type.String({ maxLength: 64, minLength: 40, pattern: "^[a-f0-9]+$" });
|
|
3979
|
-
var GitCommitFilesCursorSchema = Type.String({
|
|
3980
|
-
maxLength: 20,
|
|
3981
|
-
minLength: 1,
|
|
3982
|
-
pattern: "^[0-9]+$"
|
|
3983
|
-
});
|
|
3984
|
-
var ProjectGitCommitFilesQuerySchema = Type.Object(
|
|
3985
|
-
{
|
|
3986
|
-
cursor: Type.Optional(GitCommitFilesCursorSchema),
|
|
3987
|
-
repository: Type.Optional(ProjectRelativePathSchema),
|
|
3988
|
-
rootPath: ProjectRootPathSchema,
|
|
3989
|
-
sha: GitCommitShaSchema
|
|
3990
|
-
},
|
|
3991
|
-
{ additionalProperties: false }
|
|
3992
|
-
);
|
|
3993
|
-
var ProjectGitCommitFileSchema = Type.Object(
|
|
3994
|
-
{
|
|
3995
|
-
kind: Type.Union([Type.Literal("create"), Type.Literal("update"), Type.Literal("delete")]),
|
|
3996
|
-
path: ProjectRelativePathSchema
|
|
3997
|
-
},
|
|
3998
|
-
{ additionalProperties: false }
|
|
3999
|
-
);
|
|
4000
|
-
var ProjectGitCommitFilesPageSchema = Type.Object(
|
|
4001
|
-
{
|
|
4002
|
-
files: Type.Array(ProjectGitCommitFileSchema, { maxItems: 100 }),
|
|
4003
|
-
nextCursor: Type.Union([GitCommitFilesCursorSchema, Type.Null()])
|
|
4004
|
-
},
|
|
4005
|
-
{ additionalProperties: false }
|
|
4006
|
-
);
|
|
4007
|
-
var ProjectGitCommitFileDiffQuerySchema = Type.Object(
|
|
4008
|
-
{
|
|
4009
|
-
path: ProjectRelativePathSchema,
|
|
4010
|
-
repository: Type.Optional(ProjectRelativePathSchema),
|
|
4011
|
-
rootPath: ProjectRootPathSchema,
|
|
4012
|
-
sha: GitCommitShaSchema
|
|
4013
|
-
},
|
|
4014
|
-
{ additionalProperties: false }
|
|
4015
|
-
);
|
|
4016
|
-
var ProjectGitCommitFileDiffSchema = Type.Object(
|
|
4017
|
-
{
|
|
4018
|
-
diff: Type.String({ maxLength: 512 * 1024 }),
|
|
4019
|
-
truncated: Type.Boolean()
|
|
4020
|
-
},
|
|
4021
|
-
{ additionalProperties: false }
|
|
4022
|
-
);
|
|
4023
|
-
var SwitchProjectBranchRequestSchema = Type.Object(
|
|
4024
|
-
{
|
|
4025
|
-
branch: GitBranchNameSchema,
|
|
4026
|
-
expectedSnapshot: GitSnapshotSchema
|
|
4027
|
-
},
|
|
4028
|
-
{ additionalProperties: false }
|
|
4029
|
-
);
|
|
4030
|
-
var CreateProjectBranchRequestSchema = Type.Object(
|
|
4031
|
-
{
|
|
4032
|
-
branch: GitBranchNameSchema,
|
|
4033
|
-
expectedSnapshot: GitSnapshotSchema
|
|
4034
|
-
},
|
|
4035
|
-
{ additionalProperties: false }
|
|
4036
|
-
);
|
|
4037
|
-
var ProjectGitWorktreeSchema = Type.Object(
|
|
4038
|
-
{
|
|
4039
|
-
branch: Type.Union([GitBranchNameSchema, Type.Null()]),
|
|
4040
|
-
current: Type.Boolean(),
|
|
4041
|
-
path: ProjectDirectoryPathSchema
|
|
4042
|
-
},
|
|
4043
|
-
{ additionalProperties: false }
|
|
4044
|
-
);
|
|
4045
|
-
var ProjectGitWorktreePageSchema = Type.Object(
|
|
4046
|
-
{ worktrees: Type.Array(ProjectGitWorktreeSchema, { maxItems: 256 }) },
|
|
4047
|
-
{ additionalProperties: false }
|
|
4048
|
-
);
|
|
4049
|
-
var CreateProjectWorktreeRequestSchema = Type.Object(
|
|
4050
|
-
{
|
|
4051
|
-
branch: GitBranchNameSchema,
|
|
4052
|
-
expectedSnapshot: GitSnapshotSchema
|
|
3734
|
+
branch: GitBranchNameSchema,
|
|
3735
|
+
expectedSnapshot: GitSnapshotSchema
|
|
4053
3736
|
},
|
|
4054
3737
|
{ additionalProperties: false }
|
|
4055
3738
|
);
|
|
@@ -4380,98 +4063,764 @@ var AgentSkillSchema = Type.Object(
|
|
|
4380
4063
|
},
|
|
4381
4064
|
{ additionalProperties: false }
|
|
4382
4065
|
);
|
|
4383
|
-
var AgentMcpServerConnectionStatusSchema = Type.Union([
|
|
4384
|
-
Type.Literal("notStarted"),
|
|
4385
|
-
Type.Literal("starting"),
|
|
4386
|
-
Type.Literal("connected"),
|
|
4387
|
-
Type.Literal("authenticationRequired"),
|
|
4388
|
-
Type.Literal("failed"),
|
|
4389
|
-
Type.Literal("cancelled"),
|
|
4390
|
-
Type.Literal("disabled"),
|
|
4391
|
-
Type.Literal("unknown")
|
|
4392
|
-
]);
|
|
4393
|
-
var AgentMcpServerStartupStatusSchema = Type.Union([
|
|
4394
|
-
Type.Literal("starting"),
|
|
4395
|
-
Type.Literal("ready"),
|
|
4396
|
-
Type.Literal("failed"),
|
|
4397
|
-
Type.Literal("cancelled")
|
|
4398
|
-
]);
|
|
4399
|
-
var AgentMcpServerFailureReasonSchema = Type.Literal("reauthenticationRequired");
|
|
4400
|
-
var AgentMcpServerSchema = Type.Object(
|
|
4066
|
+
var AgentMcpServerConnectionStatusSchema = Type.Union([
|
|
4067
|
+
Type.Literal("notStarted"),
|
|
4068
|
+
Type.Literal("starting"),
|
|
4069
|
+
Type.Literal("connected"),
|
|
4070
|
+
Type.Literal("authenticationRequired"),
|
|
4071
|
+
Type.Literal("failed"),
|
|
4072
|
+
Type.Literal("cancelled"),
|
|
4073
|
+
Type.Literal("disabled"),
|
|
4074
|
+
Type.Literal("unknown")
|
|
4075
|
+
]);
|
|
4076
|
+
var AgentMcpServerStartupStatusSchema = Type.Union([
|
|
4077
|
+
Type.Literal("starting"),
|
|
4078
|
+
Type.Literal("ready"),
|
|
4079
|
+
Type.Literal("failed"),
|
|
4080
|
+
Type.Literal("cancelled")
|
|
4081
|
+
]);
|
|
4082
|
+
var AgentMcpServerFailureReasonSchema = Type.Literal("reauthenticationRequired");
|
|
4083
|
+
var AgentMcpServerSchema = Type.Object(
|
|
4084
|
+
{
|
|
4085
|
+
displayName: Type.String({ minLength: 1 }),
|
|
4086
|
+
name: Type.String({ minLength: 1 }),
|
|
4087
|
+
status: AgentMcpServerConnectionStatusSchema,
|
|
4088
|
+
toolCount: Type.Integer({ minimum: 0 })
|
|
4089
|
+
},
|
|
4090
|
+
{ additionalProperties: false }
|
|
4091
|
+
);
|
|
4092
|
+
var AgentMcpServerPageSchema = Type.Object(
|
|
4093
|
+
{ data: Type.Array(AgentMcpServerSchema, { uniqueItems: true }) },
|
|
4094
|
+
{ additionalProperties: false }
|
|
4095
|
+
);
|
|
4096
|
+
var AgentSkillReferenceSchema = Type.Object(
|
|
4097
|
+
{
|
|
4098
|
+
id: Type.String({ minLength: 1 }),
|
|
4099
|
+
name: Type.String({ minLength: 1 })
|
|
4100
|
+
},
|
|
4101
|
+
{ additionalProperties: false }
|
|
4102
|
+
);
|
|
4103
|
+
var AgentAttachmentReferenceSchema = Type.Object(
|
|
4104
|
+
{ id: Type.String({ minLength: 1 }) },
|
|
4105
|
+
{ additionalProperties: false }
|
|
4106
|
+
);
|
|
4107
|
+
var AgentPromptInputProperties = {
|
|
4108
|
+
attachments: Type.Array(AgentAttachmentReferenceSchema),
|
|
4109
|
+
skills: Type.Array(AgentSkillReferenceSchema),
|
|
4110
|
+
text: Type.String({ maxLength: 1e5 }),
|
|
4111
|
+
type: Type.Literal("prompt")
|
|
4112
|
+
};
|
|
4113
|
+
var AgentPromptInputSchema = Type.Union([
|
|
4114
|
+
Type.Object(
|
|
4115
|
+
{
|
|
4116
|
+
...AgentPromptInputProperties,
|
|
4117
|
+
text: Type.String({ maxLength: 1e5, minLength: 1 })
|
|
4118
|
+
},
|
|
4119
|
+
{ additionalProperties: false }
|
|
4120
|
+
),
|
|
4121
|
+
Type.Object(
|
|
4122
|
+
{
|
|
4123
|
+
...AgentPromptInputProperties,
|
|
4124
|
+
attachments: Type.Array(AgentAttachmentReferenceSchema, { minItems: 1 })
|
|
4125
|
+
},
|
|
4126
|
+
{ additionalProperties: false }
|
|
4127
|
+
),
|
|
4128
|
+
Type.Object(
|
|
4129
|
+
{
|
|
4130
|
+
...AgentPromptInputProperties,
|
|
4131
|
+
skills: Type.Array(AgentSkillReferenceSchema, { minItems: 1 })
|
|
4132
|
+
},
|
|
4133
|
+
{ additionalProperties: false }
|
|
4134
|
+
)
|
|
4135
|
+
]);
|
|
4136
|
+
var AgentQueuedSubmissionStatusSchema = Type.Union([
|
|
4137
|
+
Type.Literal("editing"),
|
|
4138
|
+
Type.Literal("queued")
|
|
4139
|
+
]);
|
|
4140
|
+
var AgentQueuedSubmissionSchema = Type.Object(
|
|
4141
|
+
{
|
|
4142
|
+
attachments: Type.Array(AgentMessageAttachmentSchema, {
|
|
4143
|
+
maxItems: MAX_AGENT_HISTORY_IMAGES
|
|
4144
|
+
}),
|
|
4145
|
+
clientUserMessageId: Type.String({ minLength: 1 }),
|
|
4146
|
+
id: Type.String({ minLength: 1 }),
|
|
4147
|
+
skills: Type.Array(AgentSkillReferenceSchema),
|
|
4148
|
+
status: AgentQueuedSubmissionStatusSchema,
|
|
4149
|
+
text: Type.String({ maxLength: 1e5 })
|
|
4150
|
+
},
|
|
4151
|
+
{ additionalProperties: false }
|
|
4152
|
+
);
|
|
4153
|
+
var AgentQueuedSubmissionPageSchema = Type.Object(
|
|
4154
|
+
{
|
|
4155
|
+
data: Type.Array(AgentQueuedSubmissionSchema),
|
|
4156
|
+
nextCursor: Type.Union([Type.String({ minLength: 1 }), Type.Null()])
|
|
4157
|
+
},
|
|
4158
|
+
{ additionalProperties: false }
|
|
4159
|
+
);
|
|
4160
|
+
|
|
4161
|
+
// packages/protocol/src/project-settings.ts
|
|
4162
|
+
var DEFAULT_COMMIT_MESSAGE_MODEL = "gpt-5.6-luna";
|
|
4163
|
+
var AgentGranularApprovalConfigSchema = Type.Object(
|
|
4164
|
+
{
|
|
4165
|
+
mcp_elicitations: Type.Boolean(),
|
|
4166
|
+
request_permissions: Type.Boolean(),
|
|
4167
|
+
rules: Type.Boolean(),
|
|
4168
|
+
sandbox_approval: Type.Boolean(),
|
|
4169
|
+
skill_approval: Type.Boolean()
|
|
4170
|
+
},
|
|
4171
|
+
{ additionalProperties: false }
|
|
4172
|
+
);
|
|
4173
|
+
var AgentGranularApprovalPolicySchema = Type.Object(
|
|
4174
|
+
{ granular: AgentGranularApprovalConfigSchema },
|
|
4175
|
+
{ additionalProperties: false }
|
|
4176
|
+
);
|
|
4177
|
+
var DEFAULT_AGENT_GRANULAR_APPROVAL_POLICY = {
|
|
4178
|
+
granular: {
|
|
4179
|
+
mcp_elicitations: true,
|
|
4180
|
+
request_permissions: true,
|
|
4181
|
+
rules: true,
|
|
4182
|
+
sandbox_approval: true,
|
|
4183
|
+
skill_approval: true
|
|
4184
|
+
}
|
|
4185
|
+
};
|
|
4186
|
+
var AgentGlobalApprovalPolicySchema = Type.Union([
|
|
4187
|
+
Type.Literal("on-request"),
|
|
4188
|
+
AgentGranularApprovalPolicySchema,
|
|
4189
|
+
Type.Literal("never")
|
|
4190
|
+
]);
|
|
4191
|
+
var AgentTurnApprovalPolicySchema = Type.Union([
|
|
4192
|
+
Type.Literal("untrusted"),
|
|
4193
|
+
Type.Literal("on-request"),
|
|
4194
|
+
AgentGranularApprovalPolicySchema,
|
|
4195
|
+
Type.Literal("never")
|
|
4196
|
+
]);
|
|
4197
|
+
var AgentApprovalsReviewerSchema = Type.Union([
|
|
4198
|
+
Type.Literal("user"),
|
|
4199
|
+
Type.Literal("auto_review")
|
|
4200
|
+
]);
|
|
4201
|
+
var AgentSandboxModeSchema = Type.Union([
|
|
4202
|
+
Type.Literal("read-only"),
|
|
4203
|
+
Type.Literal("workspace-write"),
|
|
4204
|
+
Type.Literal("danger-full-access")
|
|
4205
|
+
]);
|
|
4206
|
+
var AgentTaskSettingProperties = {
|
|
4207
|
+
model: Type.String({ minLength: 1 }),
|
|
4208
|
+
reasoningEffort: Type.String({ minLength: 1 }),
|
|
4209
|
+
sandboxMode: AgentSandboxModeSchema
|
|
4210
|
+
};
|
|
4211
|
+
var AgentTaskSettingsSchema = Type.Object(
|
|
4212
|
+
{
|
|
4213
|
+
approvalPolicy: AgentTurnApprovalPolicySchema,
|
|
4214
|
+
approvalsReviewer: AgentApprovalsReviewerSchema,
|
|
4215
|
+
...AgentTaskSettingProperties
|
|
4216
|
+
},
|
|
4217
|
+
{ additionalProperties: false }
|
|
4218
|
+
);
|
|
4219
|
+
var AgentCollaborationModeSchema = Type.Literal("plan");
|
|
4220
|
+
var AgentGlobalSettingProperties = {
|
|
4221
|
+
commitMessageModel: Type.String({ minLength: 1 }),
|
|
4222
|
+
commitMessagePrompt: Type.String({ maxLength: 4e3 }),
|
|
4223
|
+
// 文件专用系统关联不能成为 Project 根目录的默认打开方式。
|
|
4224
|
+
defaultOpenAppId: Type.Union([
|
|
4225
|
+
Type.Exclude(ProjectOpenAppIdSchema, Type.Literal("system-default")),
|
|
4226
|
+
Type.Null()
|
|
4227
|
+
]),
|
|
4228
|
+
fastMode: Type.Boolean(),
|
|
4229
|
+
followUpBehavior: Type.Union([Type.Literal("queue"), Type.Literal("steer")]),
|
|
4230
|
+
pet: WorkbenchPetSettingsSchema,
|
|
4231
|
+
...AgentTaskSettingProperties
|
|
4232
|
+
};
|
|
4233
|
+
var AgentGlobalSettingsSchema = Type.Object(
|
|
4234
|
+
{
|
|
4235
|
+
approvalPolicy: AgentGlobalApprovalPolicySchema,
|
|
4236
|
+
approvalsReviewer: AgentApprovalsReviewerSchema,
|
|
4237
|
+
...AgentGlobalSettingProperties
|
|
4238
|
+
},
|
|
4239
|
+
{ additionalProperties: false }
|
|
4240
|
+
);
|
|
4241
|
+
var AgentGlobalSettingsResponseSchema = Type.Object(
|
|
4242
|
+
{ settings: AgentGlobalSettingsSchema },
|
|
4243
|
+
{ additionalProperties: false }
|
|
4244
|
+
);
|
|
4245
|
+
var AgentProjectDefaultsSchema = Type.Object(
|
|
4246
|
+
{
|
|
4247
|
+
approvalPolicy: AgentTurnApprovalPolicySchema,
|
|
4248
|
+
approvalsReviewer: AgentApprovalsReviewerSchema,
|
|
4249
|
+
fastMode: Type.Boolean(),
|
|
4250
|
+
...AgentTaskSettingProperties
|
|
4251
|
+
},
|
|
4252
|
+
{ additionalProperties: false }
|
|
4253
|
+
);
|
|
4254
|
+
var AgentProjectDefaultsResponseSchema = Type.Object(
|
|
4255
|
+
{ settings: AgentProjectDefaultsSchema },
|
|
4256
|
+
{ additionalProperties: false }
|
|
4257
|
+
);
|
|
4258
|
+
var AgentTaskSettingsResponseSchema = Type.Object(
|
|
4259
|
+
{ settings: AgentTaskSettingsSchema },
|
|
4260
|
+
{ additionalProperties: false }
|
|
4261
|
+
);
|
|
4262
|
+
var AgentTurnOptionProperties = {
|
|
4263
|
+
collaborationMode: Type.Optional(AgentCollaborationModeSchema),
|
|
4264
|
+
fastMode: Type.Optional(Type.Literal(true)),
|
|
4265
|
+
goalMode: Type.Optional(Type.Literal(true)),
|
|
4266
|
+
...AgentTaskSettingProperties
|
|
4267
|
+
};
|
|
4268
|
+
var AgentTurnOptionsSchema = Type.Object(
|
|
4269
|
+
{
|
|
4270
|
+
approvalPolicy: AgentTurnApprovalPolicySchema,
|
|
4271
|
+
approvalsReviewer: AgentApprovalsReviewerSchema,
|
|
4272
|
+
...AgentTurnOptionProperties
|
|
4273
|
+
},
|
|
4274
|
+
{ additionalProperties: false }
|
|
4275
|
+
);
|
|
4276
|
+
var AgentReasoningEffortOptionSchema = Type.Object(
|
|
4277
|
+
{
|
|
4278
|
+
description: Type.String(),
|
|
4279
|
+
id: Type.String({ minLength: 1 })
|
|
4280
|
+
},
|
|
4281
|
+
{ additionalProperties: false }
|
|
4282
|
+
);
|
|
4283
|
+
var AgentModelSchema = Type.Object(
|
|
4284
|
+
{
|
|
4285
|
+
defaultReasoningEffort: Type.String({ minLength: 1 }),
|
|
4286
|
+
description: Type.String(),
|
|
4287
|
+
displayName: Type.String({ minLength: 1 }),
|
|
4288
|
+
id: Type.String({ minLength: 1 }),
|
|
4289
|
+
isDefault: Type.Boolean(),
|
|
4290
|
+
supportedReasoningEfforts: Type.Array(AgentReasoningEffortOptionSchema, { minItems: 1 })
|
|
4291
|
+
},
|
|
4292
|
+
{ additionalProperties: false }
|
|
4293
|
+
);
|
|
4294
|
+
var AgentContextUsageSchema = Type.Object(
|
|
4295
|
+
{
|
|
4296
|
+
contextWindow: Type.Union([Type.Integer({ minimum: 1 }), Type.Null()]),
|
|
4297
|
+
usedTokens: Type.Integer({ minimum: 0 })
|
|
4298
|
+
},
|
|
4299
|
+
{ additionalProperties: false }
|
|
4300
|
+
);
|
|
4301
|
+
|
|
4302
|
+
// packages/protocol/src/scheduled-task.ts
|
|
4303
|
+
var ScheduledTaskScheduleSchema = Type.Union([
|
|
4304
|
+
Type.Object(
|
|
4305
|
+
{ atUnixMs: Type.Integer(), type: Type.Literal("once") },
|
|
4306
|
+
{ additionalProperties: false }
|
|
4307
|
+
),
|
|
4308
|
+
Type.Object(
|
|
4309
|
+
{
|
|
4310
|
+
rrule: Type.String({ maxLength: 2048, minLength: 1 }),
|
|
4311
|
+
startAtUnixMs: Type.Integer(),
|
|
4312
|
+
timezone: Type.String({ maxLength: 128, minLength: 1 }),
|
|
4313
|
+
type: Type.Literal("rrule")
|
|
4314
|
+
},
|
|
4315
|
+
{ additionalProperties: false }
|
|
4316
|
+
)
|
|
4317
|
+
]);
|
|
4318
|
+
var ScheduledTaskRunStatusSchema = Type.Union([
|
|
4319
|
+
Type.Literal("failed"),
|
|
4320
|
+
Type.Literal("running"),
|
|
4321
|
+
Type.Literal("skipped"),
|
|
4322
|
+
Type.Literal("started")
|
|
4323
|
+
]);
|
|
4324
|
+
var ScheduledTaskRunSchema = Type.Object(
|
|
4325
|
+
{
|
|
4326
|
+
error: Type.Union([Type.String(), Type.Null()]),
|
|
4327
|
+
finishedAtUnixMs: Type.Union([Type.Integer(), Type.Null()]),
|
|
4328
|
+
id: Type.String({ minLength: 1 }),
|
|
4329
|
+
startedAtUnixMs: Type.Integer(),
|
|
4330
|
+
status: ScheduledTaskRunStatusSchema,
|
|
4331
|
+
taskId: Type.Union([Type.String({ minLength: 1 }), Type.Null()])
|
|
4332
|
+
},
|
|
4333
|
+
{ additionalProperties: false }
|
|
4334
|
+
);
|
|
4335
|
+
var ScheduledTaskInputProperties = {
|
|
4336
|
+
enabled: Type.Boolean(),
|
|
4337
|
+
messageAttachments: Type.Array(AgentMessageAttachmentSchema),
|
|
4338
|
+
name: Type.String({ maxLength: 120, minLength: 1 }),
|
|
4339
|
+
projectId: Type.String({ maxLength: 128, minLength: 1 }),
|
|
4340
|
+
projectName: Type.String({ maxLength: 256, minLength: 1 }),
|
|
4341
|
+
prompt: AgentPromptInputSchema,
|
|
4342
|
+
schedule: ScheduledTaskScheduleSchema,
|
|
4343
|
+
turnOptions: AgentTurnOptionsSchema
|
|
4344
|
+
};
|
|
4345
|
+
var ScheduledTaskInputSchema = Type.Object(ScheduledTaskInputProperties, {
|
|
4346
|
+
additionalProperties: false
|
|
4347
|
+
});
|
|
4348
|
+
var ScheduledTaskSchema = Type.Object(
|
|
4349
|
+
{
|
|
4350
|
+
...ScheduledTaskInputProperties,
|
|
4351
|
+
createdAtUnixMs: Type.Integer(),
|
|
4352
|
+
id: Type.String({ minLength: 1 }),
|
|
4353
|
+
lastRunAtUnixMs: Type.Union([Type.Integer(), Type.Null()]),
|
|
4354
|
+
lastRunStatus: Type.Union([ScheduledTaskRunStatusSchema, Type.Null()]),
|
|
4355
|
+
nextRunAtUnixMs: Type.Union([Type.Integer(), Type.Null()]),
|
|
4356
|
+
runs: Type.Array(ScheduledTaskRunSchema, { maxItems: 20 }),
|
|
4357
|
+
updatedAtUnixMs: Type.Integer()
|
|
4358
|
+
},
|
|
4359
|
+
{ additionalProperties: false }
|
|
4360
|
+
);
|
|
4361
|
+
var ScheduledTaskPageSchema = Type.Object(
|
|
4362
|
+
{ data: Type.Array(ScheduledTaskSchema) },
|
|
4363
|
+
{ additionalProperties: false }
|
|
4364
|
+
);
|
|
4365
|
+
var ScheduledTaskMutationResponseSchema = Type.Object(
|
|
4366
|
+
{ task: ScheduledTaskSchema },
|
|
4367
|
+
{ additionalProperties: false }
|
|
4368
|
+
);
|
|
4369
|
+
var DeleteScheduledTaskResponseSchema = Type.Object(
|
|
4370
|
+
{ status: Type.Literal("deleted"), taskId: Type.String({ minLength: 1 }) },
|
|
4371
|
+
{ additionalProperties: false }
|
|
4372
|
+
);
|
|
4373
|
+
var SetScheduledTaskEnabledRequestSchema = Type.Object(
|
|
4374
|
+
{ enabled: Type.Boolean() },
|
|
4375
|
+
{ additionalProperties: false }
|
|
4376
|
+
);
|
|
4377
|
+
|
|
4378
|
+
// packages/protocol/src/access.ts
|
|
4379
|
+
var AccessModeSchema = Type.Union([Type.Literal("local"), Type.Literal("lan")]);
|
|
4380
|
+
var AccessStatusResponseSchema = Type.Object(
|
|
4381
|
+
{
|
|
4382
|
+
authenticated: Type.Boolean(),
|
|
4383
|
+
mode: AccessModeSchema,
|
|
4384
|
+
version: Type.Literal(1)
|
|
4385
|
+
},
|
|
4386
|
+
{ additionalProperties: false }
|
|
4387
|
+
);
|
|
4388
|
+
var PairAccessRequestSchema = Type.Object(
|
|
4389
|
+
{ code: Type.String({ minLength: 1 }) },
|
|
4390
|
+
{ additionalProperties: false }
|
|
4391
|
+
);
|
|
4392
|
+
var PairAccessResponseSchema = AccessStatusResponseSchema;
|
|
4393
|
+
var LogoutAccessResponseSchema = AccessStatusResponseSchema;
|
|
4394
|
+
|
|
4395
|
+
// packages/protocol/src/mcp-elicitation.ts
|
|
4396
|
+
var NullableStringSchema = Type.Union([Type.String(), Type.Null()]);
|
|
4397
|
+
var NullableNumberSchema = Type.Union([Type.Number(), Type.Null()]);
|
|
4398
|
+
var McpElicitationFieldProperties = {
|
|
4399
|
+
description: NullableStringSchema,
|
|
4400
|
+
id: Type.String({ minLength: 1 }),
|
|
4401
|
+
required: Type.Boolean(),
|
|
4402
|
+
title: Type.String({ minLength: 1 })
|
|
4403
|
+
};
|
|
4404
|
+
var McpElicitationOptionSchema = Type.Object(
|
|
4405
|
+
{
|
|
4406
|
+
label: Type.String({ minLength: 1 }),
|
|
4407
|
+
value: Type.String()
|
|
4408
|
+
},
|
|
4409
|
+
{ additionalProperties: false }
|
|
4410
|
+
);
|
|
4411
|
+
var McpElicitationFieldSchema = Type.Union([
|
|
4412
|
+
Type.Object(
|
|
4413
|
+
{
|
|
4414
|
+
...McpElicitationFieldProperties,
|
|
4415
|
+
defaultValue: Type.Union([Type.String(), Type.Null()]),
|
|
4416
|
+
format: Type.Union([
|
|
4417
|
+
Type.Literal("email"),
|
|
4418
|
+
Type.Literal("uri"),
|
|
4419
|
+
Type.Literal("date"),
|
|
4420
|
+
Type.Literal("date-time"),
|
|
4421
|
+
Type.Null()
|
|
4422
|
+
]),
|
|
4423
|
+
maxLength: Type.Union([Type.Integer({ minimum: 0 }), Type.Null()]),
|
|
4424
|
+
minLength: Type.Union([Type.Integer({ minimum: 0 }), Type.Null()]),
|
|
4425
|
+
type: Type.Literal("string")
|
|
4426
|
+
},
|
|
4427
|
+
{ additionalProperties: false }
|
|
4428
|
+
),
|
|
4429
|
+
Type.Object(
|
|
4430
|
+
{
|
|
4431
|
+
...McpElicitationFieldProperties,
|
|
4432
|
+
defaultValue: Type.Union([Type.String(), Type.Null()]),
|
|
4433
|
+
options: Type.Array(McpElicitationOptionSchema, { minItems: 1 }),
|
|
4434
|
+
type: Type.Literal("select")
|
|
4435
|
+
},
|
|
4436
|
+
{ additionalProperties: false }
|
|
4437
|
+
),
|
|
4438
|
+
Type.Object(
|
|
4439
|
+
{
|
|
4440
|
+
...McpElicitationFieldProperties,
|
|
4441
|
+
defaultValue: Type.Array(Type.String()),
|
|
4442
|
+
maximum: Type.Union([Type.Integer({ minimum: 0 }), Type.Null()]),
|
|
4443
|
+
minimum: Type.Union([Type.Integer({ minimum: 0 }), Type.Null()]),
|
|
4444
|
+
options: Type.Array(McpElicitationOptionSchema, { minItems: 1 }),
|
|
4445
|
+
type: Type.Literal("multi_select")
|
|
4446
|
+
},
|
|
4447
|
+
{ additionalProperties: false }
|
|
4448
|
+
),
|
|
4449
|
+
Type.Object(
|
|
4450
|
+
{
|
|
4451
|
+
...McpElicitationFieldProperties,
|
|
4452
|
+
defaultValue: NullableNumberSchema,
|
|
4453
|
+
maximum: NullableNumberSchema,
|
|
4454
|
+
minimum: NullableNumberSchema,
|
|
4455
|
+
type: Type.Union([Type.Literal("number"), Type.Literal("integer")])
|
|
4456
|
+
},
|
|
4457
|
+
{ additionalProperties: false }
|
|
4458
|
+
),
|
|
4459
|
+
Type.Object(
|
|
4460
|
+
{
|
|
4461
|
+
...McpElicitationFieldProperties,
|
|
4462
|
+
defaultValue: Type.Union([Type.Boolean(), Type.Null()]),
|
|
4463
|
+
type: Type.Literal("boolean")
|
|
4464
|
+
},
|
|
4465
|
+
{ additionalProperties: false }
|
|
4466
|
+
)
|
|
4467
|
+
]);
|
|
4468
|
+
var McpElicitationAcceptContentSchema = Type.Record(
|
|
4469
|
+
Type.String(),
|
|
4470
|
+
Type.Union([Type.String(), Type.Number(), Type.Boolean(), Type.Array(Type.String())])
|
|
4471
|
+
);
|
|
4472
|
+
var McpElicitationResolutionSchema = Type.Union([
|
|
4473
|
+
Type.Object(
|
|
4474
|
+
{ action: Type.Literal("accept"), content: McpElicitationAcceptContentSchema },
|
|
4475
|
+
{ additionalProperties: false }
|
|
4476
|
+
),
|
|
4477
|
+
Type.Object(
|
|
4478
|
+
{
|
|
4479
|
+
action: Type.Union([Type.Literal("decline"), Type.Literal("cancel")]),
|
|
4480
|
+
content: Type.Null()
|
|
4481
|
+
},
|
|
4482
|
+
{ additionalProperties: false }
|
|
4483
|
+
)
|
|
4484
|
+
]);
|
|
4485
|
+
|
|
4486
|
+
// packages/protocol/src/pending-request.ts
|
|
4487
|
+
var PendingRequestStatusSchema = Type.Union([
|
|
4488
|
+
Type.Literal("pending"),
|
|
4489
|
+
Type.Literal("resolved"),
|
|
4490
|
+
Type.Literal("expired")
|
|
4491
|
+
]);
|
|
4492
|
+
var PendingApprovalDecisionSchema = Type.Union([
|
|
4493
|
+
Type.Literal("allow"),
|
|
4494
|
+
Type.Literal("allow_for_session"),
|
|
4495
|
+
Type.Literal("deny")
|
|
4496
|
+
]);
|
|
4497
|
+
var PendingNetworkAccessSchema = Type.Object(
|
|
4498
|
+
{
|
|
4499
|
+
host: Type.String({ minLength: 1 }),
|
|
4500
|
+
protocol: Type.Union([
|
|
4501
|
+
Type.Literal("http"),
|
|
4502
|
+
Type.Literal("https"),
|
|
4503
|
+
Type.Literal("socks5Tcp"),
|
|
4504
|
+
Type.Literal("socks5Udp")
|
|
4505
|
+
])
|
|
4506
|
+
},
|
|
4507
|
+
{ additionalProperties: false }
|
|
4508
|
+
);
|
|
4509
|
+
var PendingRequestIdentityProperties = {
|
|
4510
|
+
createdAt: DateTimeSchema,
|
|
4511
|
+
expiresAt: NullableDateTimeSchema,
|
|
4512
|
+
itemId: Type.String({ minLength: 1 }),
|
|
4513
|
+
projectId: Type.String({ minLength: 1 }),
|
|
4514
|
+
requestId: Type.String({ minLength: 1 }),
|
|
4515
|
+
status: PendingRequestStatusSchema,
|
|
4516
|
+
taskId: Type.String({ minLength: 1 }),
|
|
4517
|
+
turnId: Type.String({ minLength: 1 })
|
|
4518
|
+
};
|
|
4519
|
+
var PendingRequestResolutionIdentityProperties = {
|
|
4520
|
+
itemId: Type.String({ minLength: 1 }),
|
|
4521
|
+
projectId: Type.String({ minLength: 1 }),
|
|
4522
|
+
taskId: Type.String({ minLength: 1 }),
|
|
4523
|
+
turnId: Type.String({ minLength: 1 })
|
|
4524
|
+
};
|
|
4525
|
+
var PendingUserInputOptionSchema = Type.Object(
|
|
4526
|
+
{
|
|
4527
|
+
description: Type.String(),
|
|
4528
|
+
label: Type.String({ minLength: 1 })
|
|
4529
|
+
},
|
|
4530
|
+
{ additionalProperties: false }
|
|
4531
|
+
);
|
|
4532
|
+
var PendingUserInputQuestionProperties = {
|
|
4533
|
+
header: Type.String({ minLength: 1 }),
|
|
4534
|
+
id: Type.String({ minLength: 1 }),
|
|
4535
|
+
isSecret: Type.Boolean(),
|
|
4536
|
+
prompt: Type.String({ minLength: 1 })
|
|
4537
|
+
};
|
|
4538
|
+
var PendingUserInputQuestionSchema = Type.Union([
|
|
4539
|
+
Type.Object(
|
|
4540
|
+
{
|
|
4541
|
+
...PendingUserInputQuestionProperties,
|
|
4542
|
+
isOther: Type.Boolean(),
|
|
4543
|
+
options: Type.Array(PendingUserInputOptionSchema, { minItems: 1 }),
|
|
4544
|
+
type: Type.Literal("choice")
|
|
4545
|
+
},
|
|
4546
|
+
{ additionalProperties: false }
|
|
4547
|
+
),
|
|
4548
|
+
Type.Object(
|
|
4549
|
+
{
|
|
4550
|
+
...PendingUserInputQuestionProperties,
|
|
4551
|
+
isOther: Type.Literal(true),
|
|
4552
|
+
options: Type.Array(PendingUserInputOptionSchema, { maxItems: 0 }),
|
|
4553
|
+
type: Type.Literal("choice")
|
|
4554
|
+
},
|
|
4555
|
+
{ additionalProperties: false }
|
|
4556
|
+
),
|
|
4557
|
+
Type.Object(
|
|
4558
|
+
{
|
|
4559
|
+
...PendingUserInputQuestionProperties,
|
|
4560
|
+
isOther: Type.Literal(false),
|
|
4561
|
+
options: Type.Array(PendingUserInputOptionSchema, { maxItems: 2, minItems: 2 }),
|
|
4562
|
+
type: Type.Literal("confirmation")
|
|
4563
|
+
},
|
|
4564
|
+
{ additionalProperties: false }
|
|
4565
|
+
),
|
|
4566
|
+
Type.Object(
|
|
4567
|
+
{
|
|
4568
|
+
...PendingUserInputQuestionProperties,
|
|
4569
|
+
isOther: Type.Boolean(),
|
|
4570
|
+
options: Type.Array(PendingUserInputOptionSchema, { maxItems: 0 }),
|
|
4571
|
+
type: Type.Literal("short_text")
|
|
4572
|
+
},
|
|
4573
|
+
{ additionalProperties: false }
|
|
4574
|
+
)
|
|
4575
|
+
]);
|
|
4576
|
+
var FileChangeApprovalPendingRequestSchema = Type.Object(
|
|
4577
|
+
{
|
|
4578
|
+
...PendingRequestIdentityProperties,
|
|
4579
|
+
availableDecisions: Type.Array(PendingApprovalDecisionSchema, { minItems: 1 }),
|
|
4580
|
+
grantRoot: Type.Union([Type.String(), Type.Null()]),
|
|
4581
|
+
reason: Type.Union([Type.String(), Type.Null()]),
|
|
4582
|
+
type: Type.Literal("file_change_approval")
|
|
4583
|
+
},
|
|
4584
|
+
{ additionalProperties: false }
|
|
4585
|
+
);
|
|
4586
|
+
var PendingPermissionCategorySchema = Type.Union([
|
|
4587
|
+
Type.Literal("network"),
|
|
4588
|
+
Type.Literal("file_system")
|
|
4589
|
+
]);
|
|
4590
|
+
var PendingPermissionAccessSchema = Type.Union([
|
|
4591
|
+
Type.Literal("read"),
|
|
4592
|
+
Type.Literal("write"),
|
|
4593
|
+
Type.Literal("deny")
|
|
4594
|
+
]);
|
|
4595
|
+
var PendingPermissionPathSchema = Type.Union([
|
|
4596
|
+
Type.Object(
|
|
4597
|
+
{ type: Type.Literal("path"), value: Type.String({ minLength: 1 }) },
|
|
4598
|
+
{ additionalProperties: false }
|
|
4599
|
+
),
|
|
4600
|
+
Type.Object(
|
|
4601
|
+
{ type: Type.Literal("glob"), value: Type.String({ minLength: 1 }) },
|
|
4602
|
+
{ additionalProperties: false }
|
|
4603
|
+
),
|
|
4604
|
+
Type.Object(
|
|
4605
|
+
{
|
|
4606
|
+
kind: Type.Union([
|
|
4607
|
+
Type.Literal("root"),
|
|
4608
|
+
Type.Literal("minimal"),
|
|
4609
|
+
Type.Literal("project_roots"),
|
|
4610
|
+
Type.Literal("tmpdir"),
|
|
4611
|
+
Type.Literal("slash_tmp"),
|
|
4612
|
+
Type.Literal("unknown")
|
|
4613
|
+
]),
|
|
4614
|
+
path: Type.Union([Type.String({ minLength: 1 }), Type.Null()]),
|
|
4615
|
+
subpath: Type.Union([Type.String(), Type.Null()]),
|
|
4616
|
+
type: Type.Literal("special")
|
|
4617
|
+
},
|
|
4618
|
+
{ additionalProperties: false }
|
|
4619
|
+
)
|
|
4620
|
+
]);
|
|
4621
|
+
var PendingFileSystemPermissionsSchema = Type.Object(
|
|
4622
|
+
{
|
|
4623
|
+
entries: Type.Array(
|
|
4624
|
+
Type.Object(
|
|
4625
|
+
{ access: PendingPermissionAccessSchema, path: PendingPermissionPathSchema },
|
|
4626
|
+
{ additionalProperties: false }
|
|
4627
|
+
)
|
|
4628
|
+
),
|
|
4629
|
+
globScanMaxDepth: Type.Union([Type.Integer({ minimum: 0 }), Type.Null()]),
|
|
4630
|
+
read: Type.Union([Type.Array(Type.String({ minLength: 1 })), Type.Null()]),
|
|
4631
|
+
write: Type.Union([Type.Array(Type.String({ minLength: 1 })), Type.Null()])
|
|
4632
|
+
},
|
|
4633
|
+
{ additionalProperties: false }
|
|
4634
|
+
);
|
|
4635
|
+
var PendingPermissionProfileSchema = Type.Object(
|
|
4636
|
+
{
|
|
4637
|
+
fileSystem: Type.Union([PendingFileSystemPermissionsSchema, Type.Null()]),
|
|
4638
|
+
network: Type.Union([
|
|
4639
|
+
Type.Object(
|
|
4640
|
+
{ enabled: Type.Union([Type.Boolean(), Type.Null()]) },
|
|
4641
|
+
{ additionalProperties: false }
|
|
4642
|
+
),
|
|
4643
|
+
Type.Null()
|
|
4644
|
+
])
|
|
4645
|
+
},
|
|
4646
|
+
{ additionalProperties: false }
|
|
4647
|
+
);
|
|
4648
|
+
var CommandApprovalPendingRequestSchema = Type.Object(
|
|
4649
|
+
{
|
|
4650
|
+
...PendingRequestIdentityProperties,
|
|
4651
|
+
additionalPermissions: Type.Optional(Type.Union([PendingPermissionProfileSchema, Type.Null()])),
|
|
4652
|
+
availableDecisions: Type.Array(PendingApprovalDecisionSchema, { minItems: 1 }),
|
|
4653
|
+
command: Type.Union([Type.String(), Type.Null()]),
|
|
4654
|
+
cwd: Type.Union([Type.String(), Type.Null()]),
|
|
4655
|
+
kind: Type.Union([Type.Literal("command"), Type.Literal("write_stdin")]),
|
|
4656
|
+
networkAccess: Type.Union([PendingNetworkAccessSchema, Type.Null()]),
|
|
4657
|
+
reason: Type.Union([Type.String(), Type.Null()]),
|
|
4658
|
+
type: Type.Literal("command_approval")
|
|
4659
|
+
},
|
|
4660
|
+
{ additionalProperties: false }
|
|
4661
|
+
);
|
|
4662
|
+
var PermissionApprovalPendingRequestSchema = Type.Object(
|
|
4663
|
+
{
|
|
4664
|
+
...PendingRequestIdentityProperties,
|
|
4665
|
+
cwd: Type.String({ minLength: 1 }),
|
|
4666
|
+
environmentId: Type.Union([Type.String({ minLength: 1 }), Type.Null()]),
|
|
4667
|
+
permissions: PendingPermissionProfileSchema,
|
|
4668
|
+
reason: Type.Union([Type.String(), Type.Null()]),
|
|
4669
|
+
type: Type.Literal("permissions_approval")
|
|
4670
|
+
},
|
|
4671
|
+
{ additionalProperties: false }
|
|
4672
|
+
);
|
|
4673
|
+
var UserInputPendingRequestSchema = Type.Object(
|
|
4674
|
+
{
|
|
4675
|
+
...PendingRequestIdentityProperties,
|
|
4676
|
+
questions: Type.Array(PendingUserInputQuestionSchema, { minItems: 1, maxItems: 3 }),
|
|
4677
|
+
type: Type.Literal("user_input")
|
|
4678
|
+
},
|
|
4679
|
+
{ additionalProperties: false }
|
|
4680
|
+
);
|
|
4681
|
+
var McpElicitationPendingRequestProperties = {
|
|
4682
|
+
...PendingRequestIdentityProperties,
|
|
4683
|
+
message: Type.String({ minLength: 1 }),
|
|
4684
|
+
serverName: Type.String({ minLength: 1 }),
|
|
4685
|
+
type: Type.Literal("mcp_elicitation")
|
|
4686
|
+
};
|
|
4687
|
+
var McpFormElicitationPendingRequestSchema = Type.Object(
|
|
4688
|
+
{
|
|
4689
|
+
...McpElicitationPendingRequestProperties,
|
|
4690
|
+
fields: Type.Array(McpElicitationFieldSchema),
|
|
4691
|
+
mode: Type.Literal("form")
|
|
4692
|
+
},
|
|
4693
|
+
{ additionalProperties: false }
|
|
4694
|
+
);
|
|
4695
|
+
var McpUrlElicitationPendingRequestSchema = Type.Object(
|
|
4696
|
+
{
|
|
4697
|
+
...McpElicitationPendingRequestProperties,
|
|
4698
|
+
mode: Type.Literal("url"),
|
|
4699
|
+
url: Type.String({ minLength: 1 })
|
|
4700
|
+
},
|
|
4701
|
+
{ additionalProperties: false }
|
|
4702
|
+
);
|
|
4703
|
+
var McpUnsupportedElicitationPendingRequestSchema = Type.Object(
|
|
4704
|
+
{
|
|
4705
|
+
...McpElicitationPendingRequestProperties,
|
|
4706
|
+
mode: Type.Literal("unsupported")
|
|
4707
|
+
},
|
|
4708
|
+
{ additionalProperties: false }
|
|
4709
|
+
);
|
|
4710
|
+
var McpElicitationPendingRequestSchema = Type.Union([
|
|
4711
|
+
McpFormElicitationPendingRequestSchema,
|
|
4712
|
+
McpUrlElicitationPendingRequestSchema,
|
|
4713
|
+
McpUnsupportedElicitationPendingRequestSchema
|
|
4714
|
+
]);
|
|
4715
|
+
var PendingRequestSchema = Type.Union([
|
|
4716
|
+
CommandApprovalPendingRequestSchema,
|
|
4717
|
+
FileChangeApprovalPendingRequestSchema,
|
|
4718
|
+
PermissionApprovalPendingRequestSchema,
|
|
4719
|
+
UserInputPendingRequestSchema,
|
|
4720
|
+
McpElicitationPendingRequestSchema
|
|
4721
|
+
]);
|
|
4722
|
+
function createPendingRequestStatusSchema(status) {
|
|
4723
|
+
return Type.Union([
|
|
4724
|
+
Type.Object(
|
|
4725
|
+
{ ...CommandApprovalPendingRequestSchema.properties, status: Type.Literal(status) },
|
|
4726
|
+
{ additionalProperties: false }
|
|
4727
|
+
),
|
|
4728
|
+
Type.Object(
|
|
4729
|
+
{ ...FileChangeApprovalPendingRequestSchema.properties, status: Type.Literal(status) },
|
|
4730
|
+
{ additionalProperties: false }
|
|
4731
|
+
),
|
|
4732
|
+
Type.Object(
|
|
4733
|
+
{ ...PermissionApprovalPendingRequestSchema.properties, status: Type.Literal(status) },
|
|
4734
|
+
{ additionalProperties: false }
|
|
4735
|
+
),
|
|
4736
|
+
Type.Object(
|
|
4737
|
+
{ ...UserInputPendingRequestSchema.properties, status: Type.Literal(status) },
|
|
4738
|
+
{ additionalProperties: false }
|
|
4739
|
+
),
|
|
4740
|
+
Type.Object(
|
|
4741
|
+
{ ...McpFormElicitationPendingRequestSchema.properties, status: Type.Literal(status) },
|
|
4742
|
+
{ additionalProperties: false }
|
|
4743
|
+
),
|
|
4744
|
+
Type.Object(
|
|
4745
|
+
{ ...McpUrlElicitationPendingRequestSchema.properties, status: Type.Literal(status) },
|
|
4746
|
+
{ additionalProperties: false }
|
|
4747
|
+
),
|
|
4748
|
+
Type.Object(
|
|
4749
|
+
{ ...McpUnsupportedElicitationPendingRequestSchema.properties, status: Type.Literal(status) },
|
|
4750
|
+
{ additionalProperties: false }
|
|
4751
|
+
)
|
|
4752
|
+
]);
|
|
4753
|
+
}
|
|
4754
|
+
var ActivePendingRequestSchema = createPendingRequestStatusSchema("pending");
|
|
4755
|
+
var ResolvedPendingRequestSchema = createPendingRequestStatusSchema("resolved");
|
|
4756
|
+
var ExpiredPendingRequestSchema = createPendingRequestStatusSchema("expired");
|
|
4757
|
+
var ApprovalResolutionSchema = Type.Object(
|
|
4758
|
+
{ decision: PendingApprovalDecisionSchema },
|
|
4759
|
+
{ additionalProperties: false }
|
|
4760
|
+
);
|
|
4761
|
+
var UserInputResolutionSchema = Type.Object(
|
|
4401
4762
|
{
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4763
|
+
answers: Type.Record(
|
|
4764
|
+
Type.String(),
|
|
4765
|
+
Type.Array(Type.String({ minLength: 1 }), { maxItems: 1, minItems: 1 })
|
|
4766
|
+
)
|
|
4406
4767
|
},
|
|
4407
4768
|
{ additionalProperties: false }
|
|
4408
4769
|
);
|
|
4409
|
-
var
|
|
4410
|
-
{ data: Type.Array(AgentMcpServerSchema, { uniqueItems: true }) },
|
|
4411
|
-
{ additionalProperties: false }
|
|
4412
|
-
);
|
|
4413
|
-
var AgentSkillReferenceSchema = Type.Object(
|
|
4770
|
+
var PermissionApprovalResolutionSchema = Type.Object(
|
|
4414
4771
|
{
|
|
4415
|
-
|
|
4416
|
-
|
|
4772
|
+
grantedPermissions: Type.Array(PendingPermissionCategorySchema, {
|
|
4773
|
+
maxItems: 2,
|
|
4774
|
+
uniqueItems: true
|
|
4775
|
+
}),
|
|
4776
|
+
scope: Type.Union([Type.Literal("turn"), Type.Literal("session")])
|
|
4417
4777
|
},
|
|
4418
4778
|
{ additionalProperties: false }
|
|
4419
4779
|
);
|
|
4420
|
-
var
|
|
4421
|
-
{ id: Type.String({ minLength: 1 }) },
|
|
4422
|
-
{ additionalProperties: false }
|
|
4423
|
-
);
|
|
4424
|
-
var AgentPromptInputProperties = {
|
|
4425
|
-
attachments: Type.Array(AgentAttachmentReferenceSchema),
|
|
4426
|
-
skills: Type.Array(AgentSkillReferenceSchema),
|
|
4427
|
-
text: Type.String({ maxLength: 1e5 }),
|
|
4428
|
-
type: Type.Literal("prompt")
|
|
4429
|
-
};
|
|
4430
|
-
var AgentPromptInputSchema = Type.Union([
|
|
4780
|
+
var ResolvePendingRequestRequestSchema = Type.Union([
|
|
4431
4781
|
Type.Object(
|
|
4432
4782
|
{
|
|
4433
|
-
...
|
|
4434
|
-
|
|
4783
|
+
...PendingRequestResolutionIdentityProperties,
|
|
4784
|
+
resolution: ApprovalResolutionSchema,
|
|
4785
|
+
type: Type.Literal("command_approval")
|
|
4435
4786
|
},
|
|
4436
4787
|
{ additionalProperties: false }
|
|
4437
4788
|
),
|
|
4438
4789
|
Type.Object(
|
|
4439
4790
|
{
|
|
4440
|
-
...
|
|
4441
|
-
|
|
4791
|
+
...PendingRequestResolutionIdentityProperties,
|
|
4792
|
+
resolution: ApprovalResolutionSchema,
|
|
4793
|
+
type: Type.Literal("file_change_approval")
|
|
4442
4794
|
},
|
|
4443
4795
|
{ additionalProperties: false }
|
|
4444
4796
|
),
|
|
4445
4797
|
Type.Object(
|
|
4446
4798
|
{
|
|
4447
|
-
...
|
|
4448
|
-
|
|
4799
|
+
...PendingRequestResolutionIdentityProperties,
|
|
4800
|
+
resolution: PermissionApprovalResolutionSchema,
|
|
4801
|
+
type: Type.Literal("permissions_approval")
|
|
4802
|
+
},
|
|
4803
|
+
{ additionalProperties: false }
|
|
4804
|
+
),
|
|
4805
|
+
Type.Object(
|
|
4806
|
+
{
|
|
4807
|
+
...PendingRequestResolutionIdentityProperties,
|
|
4808
|
+
resolution: UserInputResolutionSchema,
|
|
4809
|
+
type: Type.Literal("user_input")
|
|
4810
|
+
},
|
|
4811
|
+
{ additionalProperties: false }
|
|
4812
|
+
),
|
|
4813
|
+
Type.Object(
|
|
4814
|
+
{
|
|
4815
|
+
...PendingRequestResolutionIdentityProperties,
|
|
4816
|
+
resolution: McpElicitationResolutionSchema,
|
|
4817
|
+
type: Type.Literal("mcp_elicitation")
|
|
4449
4818
|
},
|
|
4450
4819
|
{ additionalProperties: false }
|
|
4451
4820
|
)
|
|
4452
4821
|
]);
|
|
4453
|
-
var
|
|
4454
|
-
|
|
4455
|
-
Type.Literal("queued")
|
|
4456
|
-
]);
|
|
4457
|
-
var AgentQueuedSubmissionSchema = Type.Object(
|
|
4458
|
-
{
|
|
4459
|
-
attachments: Type.Array(AgentMessageAttachmentSchema, {
|
|
4460
|
-
maxItems: MAX_AGENT_HISTORY_IMAGES
|
|
4461
|
-
}),
|
|
4462
|
-
clientUserMessageId: Type.String({ minLength: 1 }),
|
|
4463
|
-
id: Type.String({ minLength: 1 }),
|
|
4464
|
-
skills: Type.Array(AgentSkillReferenceSchema),
|
|
4465
|
-
status: AgentQueuedSubmissionStatusSchema,
|
|
4466
|
-
text: Type.String({ maxLength: 1e5 })
|
|
4467
|
-
},
|
|
4468
|
-
{ additionalProperties: false }
|
|
4469
|
-
);
|
|
4470
|
-
var AgentQueuedSubmissionPageSchema = Type.Object(
|
|
4471
|
-
{
|
|
4472
|
-
data: Type.Array(AgentQueuedSubmissionSchema),
|
|
4473
|
-
nextCursor: Type.Union([Type.String({ minLength: 1 }), Type.Null()])
|
|
4474
|
-
},
|
|
4822
|
+
var ResolvePendingRequestResponseSchema = Type.Object(
|
|
4823
|
+
{ request: PendingRequestSchema },
|
|
4475
4824
|
{ additionalProperties: false }
|
|
4476
4825
|
);
|
|
4477
4826
|
|
|
@@ -4511,147 +4860,6 @@ var ClearAgentGoalResponseSchema = Type.Object(
|
|
|
4511
4860
|
{ additionalProperties: false }
|
|
4512
4861
|
);
|
|
4513
4862
|
|
|
4514
|
-
// packages/protocol/src/project-settings.ts
|
|
4515
|
-
var DEFAULT_COMMIT_MESSAGE_MODEL = "gpt-5.6-luna";
|
|
4516
|
-
var AgentGranularApprovalConfigSchema = Type.Object(
|
|
4517
|
-
{
|
|
4518
|
-
mcp_elicitations: Type.Boolean(),
|
|
4519
|
-
request_permissions: Type.Boolean(),
|
|
4520
|
-
rules: Type.Boolean(),
|
|
4521
|
-
sandbox_approval: Type.Boolean(),
|
|
4522
|
-
skill_approval: Type.Boolean()
|
|
4523
|
-
},
|
|
4524
|
-
{ additionalProperties: false }
|
|
4525
|
-
);
|
|
4526
|
-
var AgentGranularApprovalPolicySchema = Type.Object(
|
|
4527
|
-
{ granular: AgentGranularApprovalConfigSchema },
|
|
4528
|
-
{ additionalProperties: false }
|
|
4529
|
-
);
|
|
4530
|
-
var DEFAULT_AGENT_GRANULAR_APPROVAL_POLICY = {
|
|
4531
|
-
granular: {
|
|
4532
|
-
mcp_elicitations: true,
|
|
4533
|
-
request_permissions: true,
|
|
4534
|
-
rules: true,
|
|
4535
|
-
sandbox_approval: true,
|
|
4536
|
-
skill_approval: true
|
|
4537
|
-
}
|
|
4538
|
-
};
|
|
4539
|
-
var AgentGlobalApprovalPolicySchema = Type.Union([
|
|
4540
|
-
Type.Literal("on-request"),
|
|
4541
|
-
AgentGranularApprovalPolicySchema,
|
|
4542
|
-
Type.Literal("never")
|
|
4543
|
-
]);
|
|
4544
|
-
var AgentTurnApprovalPolicySchema = Type.Union([
|
|
4545
|
-
Type.Literal("untrusted"),
|
|
4546
|
-
Type.Literal("on-request"),
|
|
4547
|
-
AgentGranularApprovalPolicySchema,
|
|
4548
|
-
Type.Literal("never")
|
|
4549
|
-
]);
|
|
4550
|
-
var AgentApprovalsReviewerSchema = Type.Union([
|
|
4551
|
-
Type.Literal("user"),
|
|
4552
|
-
Type.Literal("auto_review")
|
|
4553
|
-
]);
|
|
4554
|
-
var AgentSandboxModeSchema = Type.Union([
|
|
4555
|
-
Type.Literal("read-only"),
|
|
4556
|
-
Type.Literal("workspace-write"),
|
|
4557
|
-
Type.Literal("danger-full-access")
|
|
4558
|
-
]);
|
|
4559
|
-
var AgentTaskSettingProperties = {
|
|
4560
|
-
model: Type.String({ minLength: 1 }),
|
|
4561
|
-
reasoningEffort: Type.String({ minLength: 1 }),
|
|
4562
|
-
sandboxMode: AgentSandboxModeSchema
|
|
4563
|
-
};
|
|
4564
|
-
var AgentTaskSettingsSchema = Type.Object(
|
|
4565
|
-
{
|
|
4566
|
-
approvalPolicy: AgentTurnApprovalPolicySchema,
|
|
4567
|
-
approvalsReviewer: AgentApprovalsReviewerSchema,
|
|
4568
|
-
...AgentTaskSettingProperties
|
|
4569
|
-
},
|
|
4570
|
-
{ additionalProperties: false }
|
|
4571
|
-
);
|
|
4572
|
-
var AgentCollaborationModeSchema = Type.Literal("plan");
|
|
4573
|
-
var AgentGlobalSettingProperties = {
|
|
4574
|
-
commitMessageModel: Type.String({ minLength: 1 }),
|
|
4575
|
-
commitMessagePrompt: Type.String({ maxLength: 4e3 }),
|
|
4576
|
-
// 文件专用系统关联不能成为 Project 根目录的默认打开方式。
|
|
4577
|
-
defaultOpenAppId: Type.Union([
|
|
4578
|
-
Type.Exclude(ProjectOpenAppIdSchema, Type.Literal("system-default")),
|
|
4579
|
-
Type.Null()
|
|
4580
|
-
]),
|
|
4581
|
-
fastMode: Type.Boolean(),
|
|
4582
|
-
followUpBehavior: Type.Union([Type.Literal("queue"), Type.Literal("steer")]),
|
|
4583
|
-
pet: WorkbenchPetSettingsSchema,
|
|
4584
|
-
...AgentTaskSettingProperties
|
|
4585
|
-
};
|
|
4586
|
-
var AgentGlobalSettingsSchema = Type.Object(
|
|
4587
|
-
{
|
|
4588
|
-
approvalPolicy: AgentGlobalApprovalPolicySchema,
|
|
4589
|
-
approvalsReviewer: AgentApprovalsReviewerSchema,
|
|
4590
|
-
...AgentGlobalSettingProperties
|
|
4591
|
-
},
|
|
4592
|
-
{ additionalProperties: false }
|
|
4593
|
-
);
|
|
4594
|
-
var AgentGlobalSettingsResponseSchema = Type.Object(
|
|
4595
|
-
{ settings: AgentGlobalSettingsSchema },
|
|
4596
|
-
{ additionalProperties: false }
|
|
4597
|
-
);
|
|
4598
|
-
var AgentProjectDefaultsSchema = Type.Object(
|
|
4599
|
-
{
|
|
4600
|
-
approvalPolicy: AgentTurnApprovalPolicySchema,
|
|
4601
|
-
approvalsReviewer: AgentApprovalsReviewerSchema,
|
|
4602
|
-
fastMode: Type.Boolean(),
|
|
4603
|
-
...AgentTaskSettingProperties
|
|
4604
|
-
},
|
|
4605
|
-
{ additionalProperties: false }
|
|
4606
|
-
);
|
|
4607
|
-
var AgentProjectDefaultsResponseSchema = Type.Object(
|
|
4608
|
-
{ settings: AgentProjectDefaultsSchema },
|
|
4609
|
-
{ additionalProperties: false }
|
|
4610
|
-
);
|
|
4611
|
-
var AgentTaskSettingsResponseSchema = Type.Object(
|
|
4612
|
-
{ settings: AgentTaskSettingsSchema },
|
|
4613
|
-
{ additionalProperties: false }
|
|
4614
|
-
);
|
|
4615
|
-
var AgentTurnOptionProperties = {
|
|
4616
|
-
collaborationMode: Type.Optional(AgentCollaborationModeSchema),
|
|
4617
|
-
fastMode: Type.Optional(Type.Literal(true)),
|
|
4618
|
-
goalMode: Type.Optional(Type.Literal(true)),
|
|
4619
|
-
...AgentTaskSettingProperties
|
|
4620
|
-
};
|
|
4621
|
-
var AgentTurnOptionsSchema = Type.Object(
|
|
4622
|
-
{
|
|
4623
|
-
approvalPolicy: AgentTurnApprovalPolicySchema,
|
|
4624
|
-
approvalsReviewer: AgentApprovalsReviewerSchema,
|
|
4625
|
-
...AgentTurnOptionProperties
|
|
4626
|
-
},
|
|
4627
|
-
{ additionalProperties: false }
|
|
4628
|
-
);
|
|
4629
|
-
var AgentReasoningEffortOptionSchema = Type.Object(
|
|
4630
|
-
{
|
|
4631
|
-
description: Type.String(),
|
|
4632
|
-
id: Type.String({ minLength: 1 })
|
|
4633
|
-
},
|
|
4634
|
-
{ additionalProperties: false }
|
|
4635
|
-
);
|
|
4636
|
-
var AgentModelSchema = Type.Object(
|
|
4637
|
-
{
|
|
4638
|
-
defaultReasoningEffort: Type.String({ minLength: 1 }),
|
|
4639
|
-
description: Type.String(),
|
|
4640
|
-
displayName: Type.String({ minLength: 1 }),
|
|
4641
|
-
id: Type.String({ minLength: 1 }),
|
|
4642
|
-
isDefault: Type.Boolean(),
|
|
4643
|
-
supportedReasoningEfforts: Type.Array(AgentReasoningEffortOptionSchema, { minItems: 1 })
|
|
4644
|
-
},
|
|
4645
|
-
{ additionalProperties: false }
|
|
4646
|
-
);
|
|
4647
|
-
var AgentContextUsageSchema = Type.Object(
|
|
4648
|
-
{
|
|
4649
|
-
contextWindow: Type.Union([Type.Integer({ minimum: 1 }), Type.Null()]),
|
|
4650
|
-
usedTokens: Type.Integer({ minimum: 0 })
|
|
4651
|
-
},
|
|
4652
|
-
{ additionalProperties: false }
|
|
4653
|
-
);
|
|
4654
|
-
|
|
4655
4863
|
// packages/protocol/src/agent-runtime.ts
|
|
4656
4864
|
var TEMPORARY_TASK_SCOPE_ID = "temporary";
|
|
4657
4865
|
var TEMPORARY_TASK_API_PATH = "/v1/temporary";
|
|
@@ -4684,6 +4892,7 @@ var AgentTaskSnapshotSchema = Type.Object(
|
|
|
4684
4892
|
pinned: Type.Boolean(),
|
|
4685
4893
|
projectId: Type.String({ minLength: 1 }),
|
|
4686
4894
|
settings: AgentTaskSettingsSchema,
|
|
4895
|
+
threadConfiguration: Type.Optional(AgentThreadConfigurationSchema),
|
|
4687
4896
|
status: Type.Union([Type.Literal("idle"), Type.Literal("running"), Type.Literal("failed")]),
|
|
4688
4897
|
title: Type.String({ minLength: 1 }),
|
|
4689
4898
|
turns: Type.Array(AgentTurnSchema),
|
|
@@ -5067,6 +5276,15 @@ var AgentMutationErrorCodeSchema = Type.Union([
|
|
|
5067
5276
|
Type.Literal("PET_NOT_FOUND"),
|
|
5068
5277
|
Type.Literal("PET_ASSET_INVALID"),
|
|
5069
5278
|
Type.Literal("PET_DOWNLOAD_FAILED"),
|
|
5279
|
+
Type.Literal("SKILL_MARKET_CONFLICT"),
|
|
5280
|
+
Type.Literal("SKILL_MARKET_FILESYSTEM"),
|
|
5281
|
+
Type.Literal("SKILL_MARKET_INCOMPATIBLE"),
|
|
5282
|
+
Type.Literal("SKILL_MARKET_INVALID_ARCHIVE"),
|
|
5283
|
+
Type.Literal("SKILL_MARKET_INVALID_RESPONSE"),
|
|
5284
|
+
Type.Literal("SKILL_MARKET_NETWORK"),
|
|
5285
|
+
Type.Literal("SKILL_MARKET_NOT_FOUND"),
|
|
5286
|
+
Type.Literal("SKILL_MARKET_RATE_LIMITED"),
|
|
5287
|
+
Type.Literal("SKILL_MARKET_UNSAFE"),
|
|
5070
5288
|
Type.Literal("PROVIDER_ERROR")
|
|
5071
5289
|
]);
|
|
5072
5290
|
var AgentMutationErrorSchema = Type.Object(
|
|
@@ -5407,4 +5625,4 @@ var EventStreamMetricsResponseSchema = Type.Object(
|
|
|
5407
5625
|
{ additionalProperties: false }
|
|
5408
5626
|
);
|
|
5409
5627
|
|
|
5410
|
-
export { AGENT_FILE_ACCEPT, AGENT_FILE_EXTENSIONS, AGENT_FILE_MEDIA_TYPES, AGENT_IMAGE_ACCEPT, AccessModeSchema, AccessStatusResponseSchema, AddAgentQueuedSubmissionRequestSchema, AddAgentQueuedSubmissionResponseSchema, AddProjectRequestSchema, AddProjectResponseSchema, AgentActivityItemSchema, AgentApprovalReviewActionSchema, AgentApprovalReviewItemSchema, AgentApprovalReviewStatusSchema, AgentApprovalsReviewerSchema, AgentAttachmentKindSchema, AgentAttachmentMediaTypeSchema, AgentAttachmentSchema, AgentAttachmentUploadResponseSchema, AgentBackgroundTerminalPageSchema, AgentBackgroundTerminalSchema, AgentCapabilitiesSchema, AgentCommandItemSchema, AgentCommandOutputOmissionSchema, AgentContextUsageSchema, AgentEventSchema, AgentFileChangeItemSchema, AgentFileChangeSchema, AgentGlobalApprovalPolicySchema, AgentGlobalSettingsResponseSchema, AgentGlobalSettingsSchema, AgentGoalSchema, AgentGoalStatusSchema, AgentGranularApprovalConfigSchema, AgentGranularApprovalPolicySchema, AgentImageMediaTypeSchema, AgentItemSchema, AgentItemStatusSchema, AgentMcpServerConnectionStatusSchema, AgentMcpServerFailureReasonSchema, AgentMcpServerPageSchema, AgentMcpServerSchema, AgentMcpServerStartupStatusSchema, AgentMessageAttachmentSchema, AgentMessageItemSchema, AgentMessagePhaseSchema, AgentMessageSkillSchema, AgentModelPageSchema, AgentModelSchema, AgentMutationErrorCodeSchema, AgentMutationErrorSchema, AgentPlanItemSchema, AgentPlanSchema, AgentPlanStepSchema, AgentPlanStepStatusSchema, AgentProjectDefaultsResponseSchema, AgentProjectDefaultsSchema, AgentPromptInputSchema, AgentProviderAccountSchema, AgentProviderConnectionMutationResponseSchema, AgentProviderConnectionRecordSchema, AgentProviderConnectionStateSchema, AgentProviderConnectionStatusSchema, AgentProviderModeSchema, AgentProviderPendingLoginSchema, AgentQueuedSubmissionPageSchema, AgentQueuedSubmissionSchema, AgentQueuedSubmissionStatusSchema, AgentReasoningEffortOptionSchema, AgentReasoningItemSchema, AgentReviewItemSchema, AgentReviewTargetSchema, AgentSandboxModeSchema, AgentSkillPageSchema, AgentSkillReferenceSchema, AgentSkillSchema, AgentSkillScopeSchema, AgentTaskPageSchema, AgentTaskSchema, AgentTaskSettingsResponseSchema, AgentTaskSettingsSchema, AgentTaskSnapshotResponseSchema, AgentTaskSnapshotSchema, AgentToolItemSchema, AgentTurnApprovalPolicySchema, AgentTurnOptionsSchema, AgentTurnSchema, AgentTurnStatusSchema, AppInfoResponseSchema, AppUpdateProgressPhaseSchema, AppUpdateProgressResponseSchema, AppUpdateProgressSchema, AppUpdateStatusSchema, ArchiveAgentTaskRequestSchema, ArchiveAgentTaskResponseSchema, CancelProviderLoginRequestSchema, ClearAgentGoalResponseSchema, CommandApprovalPendingRequestSchema, CommandOutputDeltaEventSchema, CommitProjectChangesRequestSchema, CommitProjectChangesResponseSchema, CompactAgentTaskRequestSchema, CompactAgentTaskResponseSchema, ConfigureCustomProviderRequestSchema, ConfigureCustomProviderResponseSchema, ConnectionReadySchema, CreateProjectBranchRequestSchema, CreateProjectWorktreeRequestSchema, DEFAULT_AGENT_GRANULAR_APPROVAL_POLICY, DEFAULT_COMMIT_MESSAGE_MODEL, DeleteAgentQueuedSubmissionResponseSchema, DeleteAgentTaskRequestSchema, DeleteAgentTaskResponseSchema, DeleteProjectFileRequestSchema, DeleteProjectFileResponseSchema, EventBatchSchema, EventCheckpointSchema, EventStreamMessageSchema, EventStreamMetricsResponseSchema, EventStreamProjectMetricsSchema, FileChangeApprovalPendingRequestSchema, FileChangeUpdatedEventSchema, FilesystemRootSchema, ForkAgentTaskRequestSchema, ForkAgentTaskResponseSchema, GenerateCommitMessageRequestSchema, GenerateCommitMessageResponseSchema, GoalClearedEventSchema, GoalUpdatedEventSchema, HasPropertyKey2 as HasPropertyKey, HealthResponseSchema, HostFileEntrySchema, HostFileKindSchema, HostFileListingSchema, HostFileQuerySchema, ImportHostAttachmentRequestSchema, IndexFromPropertyKeys, InstallAppUpdateRequestSchema, InstallAppUpdateResponseSchema, InterruptAgentTurnRequestSchema, InterruptAgentTurnResponseSchema, IsArray2 as IsArray, IsAsyncIterator2 as IsAsyncIterator, IsBigInt2 as IsBigInt, IsBoolean2 as IsBoolean, IsDate2 as IsDate, IsFunction2 as IsFunction, IsInteger, IsIterator2 as IsIterator, IsKind, IsMap, IsNull2 as IsNull, IsNumber2 as IsNumber, IsObject2 as IsObject, IsPromise, IsSchema, IsSet, IsStandardObject, IsString2 as IsString, IsSymbol2 as IsSymbol, IsTemplateLiteralFinite, IsTransform, IsTypedArray, IsUint8Array2 as IsUint8Array, IsUndefined2 as IsUndefined, IsUndefined3 as IsUndefined2, IsValueType, ItemCompletedEventSchema, ItemStartedEventSchema, KeyOfPattern, KeyOfPropertyKeys, Kind, Literal, LogoutAccessResponseSchema, MAX_AGENT_ATTACHMENT_BYTES, MAX_AGENT_FILE_BYTES, MAX_AGENT_FILE_TOTAL_BYTES, MAX_AGENT_HISTORY_IMAGES, MAX_AGENT_HISTORY_IMAGE_TOTAL_BYTES, MAX_AGENT_IMAGES, MAX_AGENT_IMAGE_BYTES, MAX_AGENT_IMAGE_TOTAL_BYTES, MAX_AGENT_TEXT_BYTES, MAX_EVENT_BATCH_SIZE, MAX_REALTIME_DIFF_BYTES, MAX_REALTIME_FILE_CHANGES, McpElicitationFieldSchema, McpElicitationOptionSchema, McpElicitationPendingRequestSchema, McpElicitationResolutionSchema, MessageDeltaEventSchema, Never, Object2 as Object, OpenAgentTaskAttachmentRequestSchema, OpenAgentTaskAttachmentResponseSchema, OpenProjectRequestSchema, OpenProjectResponseSchema, PairAccessRequestSchema, PairAccessResponseSchema, PendingApprovalDecisionSchema, PendingPermissionCategorySchema, PendingRequestCreatedEventSchema, PendingRequestExpiredEventSchema, PendingRequestResolvedEventSchema, PendingRequestSchema, PendingRequestStatusSchema, PendingUserInputOptionSchema, PendingUserInputQuestionSchema, PermissionApprovalPendingRequestSchema, PinAgentTaskRequestSchema, PinAgentTaskResponseSchema, PlanUpdatedEventSchema, ProjectDirectoryEntrySchema, ProjectDirectoryListingSchema, ProjectDirectoryPathSchema, ProjectDirectoryQuerySchema, ProjectFileNameSchema, ProjectFileReferencePathSchema, ProjectFileSearchEntrySchema, ProjectFileSearchPageSchema, ProjectFileSearchQuerySchema, ProjectFileSearchSessionIdSchema, ProjectFileTreeEntrySchema, ProjectFileTreeQuerySchema, ProjectFileTreeSchema, ProjectGitCommitFileDiffQuerySchema, ProjectGitCommitFileDiffSchema, ProjectGitCommitFileSchema, ProjectGitCommitFilesPageSchema, ProjectGitCommitFilesQuerySchema, ProjectGitCommitSchema, ProjectGitHistoryPageSchema, ProjectGitHistoryQuerySchema, ProjectGitMetadataChangedEventSchema, ProjectGitStatusQuerySchema, ProjectGitStatusSchema, ProjectGitWorktreePageSchema, ProjectGitWorktreeSchema, ProjectOpenAppIdSchema, ProjectOpenAppKindSchema, ProjectOpenAppSchema, ProjectOpenCapabilitiesResponseSchema, ProjectOpenPlatformSchema, ProjectPageSchema, ProjectRelativePathSchema, ProjectRootIdSchema, ProjectRootInputSchema, ProjectRootInputsSchema, ProjectRootPathSchema, ProjectRootQuerySchema, ProjectRootSchema, ProjectRootsSchema, ProjectSchema, ProjectSourceFileQuerySchema, ProjectSourceFileSchema, ProjectWorktreeMutationResponseSchema, ProviderErrorEventSchema, QueueChangedEventSchema, ReasoningDeltaEventSchema, ReloadAgentMcpServersRequestSchema, ReloadAgentMcpServersResponseSchema, RemoveProjectRequestSchema, RemoveProjectResponseSchema, RenameAgentTaskRequestSchema, RenameAgentTaskResponseSchema, RenameProjectFileRequestSchema, RenameProjectFileResponseSchema, RenameProjectRequestSchema, RenameProjectResponseSchema, ReorderAgentQueuedSubmissionsRequestSchema, ReorderAgentQueuedSubmissionsResponseSchema, ReorderProjectsRequestSchema, ReorderProjectsResponseSchema, ResolvePendingRequestRequestSchema, ResolvePendingRequestResponseSchema, ResyncRequiredSchema, ReviewAgentTaskRequestSchema, ReviewAgentTaskResponseSchema, SkillsChangedEventSchema, StartAgentQueuedSubmissionRequestSchema, StartAgentQueuedSubmissionResponseSchema, StartAgentTaskRequestSchema, StartAgentTaskResponseSchema, StartAgentTurnRequestSchema, StartAgentTurnResponseSchema, StartOfficialProviderLoginRequestSchema, StartOfficialProviderLoginResponseSchema, SteerAgentTurnRequestSchema, SteerAgentTurnResponseSchema, StopProjectFileSearchRequestSchema, StopProjectFileSearchResponseSchema, String, SwitchProjectBranchRequestSchema, SwitchProjectWorktreeRequestSchema, TEMPORARY_TASK_API_PATH, TEMPORARY_TASK_SCOPE_ID, TaskMetadataChangedEventSchema, TaskRemovedEventSchema, TaskStatusUpdatedEventSchema, TemplateLiteralGenerate, TerminateAgentBackgroundTerminalResponseSchema, TransformKind, TurnCompletedEventSchema, TurnStartedEventSchema, TypeBoxError, TypeSystemPolicy, UnarchiveAgentTaskRequestSchema, UnarchiveAgentTaskResponseSchema, Union, Unknown, UnsubscribeAgentTaskResponseSchema, UpdateAgentGoalRequestSchema, UpdateAgentGoalResponseSchema, UpdateAgentQueuedSubmissionRequestSchema, UpdateAgentQueuedSubmissionResponseSchema, UploadAgentFeedbackRequestSchema, UploadAgentFeedbackResponseSchema, UsageUpdatedEventSchema, UserInputPendingRequestSchema, WorkbenchPetAnimationFrameSchema, WorkbenchPetAnimationSchema, WorkbenchPetCatalogResponseSchema, WorkbenchPetDescriptorSchema, WorkbenchPetDownloadRequestSchema, WorkbenchPetDownloadResponseSchema, WorkbenchPetFrameSchema, WorkbenchPetSettingsSchema, format_exports, isAgentFastModeAvailable, stripLeadingAgentSkillReferences, type_exports2 as type_exports };
|
|
5628
|
+
export { AGENT_FILE_ACCEPT, AGENT_FILE_EXTENSIONS, AGENT_FILE_MEDIA_TYPES, AGENT_IMAGE_ACCEPT, AccessModeSchema, AccessStatusResponseSchema, AddAgentQueuedSubmissionRequestSchema, AddAgentQueuedSubmissionResponseSchema, AddProjectRequestSchema, AddProjectResponseSchema, AgentActivityItemSchema, AgentApprovalReviewActionSchema, AgentApprovalReviewItemSchema, AgentApprovalReviewStatusSchema, AgentApprovalsReviewerSchema, AgentAttachmentKindSchema, AgentAttachmentMediaTypeSchema, AgentAttachmentSchema, AgentAttachmentUploadResponseSchema, AgentBackgroundTerminalPageSchema, AgentBackgroundTerminalSchema, AgentCapabilitiesSchema, AgentCommandItemSchema, AgentCommandOutputOmissionSchema, AgentContextUsageSchema, AgentEventSchema, AgentFileChangeItemSchema, AgentFileChangeSchema, AgentGlobalApprovalPolicySchema, AgentGlobalSettingsResponseSchema, AgentGlobalSettingsSchema, AgentGoalSchema, AgentGoalStatusSchema, AgentGranularApprovalConfigSchema, AgentGranularApprovalPolicySchema, AgentImageMediaTypeSchema, AgentItemSchema, AgentItemStatusSchema, AgentMcpServerConnectionStatusSchema, AgentMcpServerFailureReasonSchema, AgentMcpServerPageSchema, AgentMcpServerSchema, AgentMcpServerStartupStatusSchema, AgentMessageAttachmentSchema, AgentMessageItemSchema, AgentMessagePhaseSchema, AgentMessageSkillSchema, AgentModelPageSchema, AgentModelSchema, AgentMutationErrorCodeSchema, AgentMutationErrorSchema, AgentPlanItemSchema, AgentPlanSchema, AgentPlanStepSchema, AgentPlanStepStatusSchema, AgentProjectDefaultsResponseSchema, AgentProjectDefaultsSchema, AgentPromptInputSchema, AgentProviderAccountSchema, AgentProviderConnectionMutationResponseSchema, AgentProviderConnectionRecordSchema, AgentProviderConnectionStateSchema, AgentProviderConnectionStatusSchema, AgentProviderModeSchema, AgentProviderPendingLoginSchema, AgentQueuedSubmissionPageSchema, AgentQueuedSubmissionSchema, AgentQueuedSubmissionStatusSchema, AgentReasoningEffortOptionSchema, AgentReasoningItemSchema, AgentReviewItemSchema, AgentReviewTargetSchema, AgentSandboxModeSchema, AgentSkillPageSchema, AgentSkillReferenceSchema, AgentSkillSchema, AgentSkillScopeSchema, AgentTaskPageSchema, AgentTaskSchema, AgentTaskSettingsResponseSchema, AgentTaskSettingsSchema, AgentTaskSnapshotResponseSchema, AgentTaskSnapshotSchema, AgentToolItemSchema, AgentTurnApprovalPolicySchema, AgentTurnOptionsSchema, AgentTurnSchema, AgentTurnStatusSchema, AppInfoResponseSchema, AppUpdateProgressPhaseSchema, AppUpdateProgressResponseSchema, AppUpdateProgressSchema, AppUpdateStatusSchema, ArchiveAgentTaskRequestSchema, ArchiveAgentTaskResponseSchema, CancelProviderLoginRequestSchema, ClawhubSkillDetailSchema, ClawhubSkillPageSchema, ClawhubSkillSummarySchema, ClawhubSkillVersionSchema, ClearAgentGoalResponseSchema, CommandApprovalPendingRequestSchema, CommandOutputDeltaEventSchema, CommitProjectChangesRequestSchema, CommitProjectChangesResponseSchema, CompactAgentTaskRequestSchema, CompactAgentTaskResponseSchema, ConfigureCustomProviderRequestSchema, ConfigureCustomProviderResponseSchema, ConfiguredMcpServerPageSchema, ConfiguredMcpServerSchema, ConnectionReadySchema, CreateProjectBranchRequestSchema, CreateProjectWorktreeRequestSchema, DEFAULT_AGENT_GRANULAR_APPROVAL_POLICY, DEFAULT_COMMIT_MESSAGE_MODEL, DeleteAgentQueuedSubmissionResponseSchema, DeleteAgentTaskRequestSchema, DeleteAgentTaskResponseSchema, DeleteProjectFileRequestSchema, DeleteProjectFileResponseSchema, DeleteScheduledTaskResponseSchema, EventBatchSchema, EventCheckpointSchema, EventStreamMessageSchema, EventStreamMetricsResponseSchema, EventStreamProjectMetricsSchema, FileChangeApprovalPendingRequestSchema, FileChangeUpdatedEventSchema, FilesystemRootSchema, ForkAgentTaskRequestSchema, ForkAgentTaskResponseSchema, GenerateCommitMessageRequestSchema, GenerateCommitMessageResponseSchema, GoalClearedEventSchema, GoalUpdatedEventSchema, HasPropertyKey2 as HasPropertyKey, HealthResponseSchema, HostFileEntrySchema, HostFileKindSchema, HostFileListingSchema, HostFileQuerySchema, ImportHostAttachmentRequestSchema, IndexFromPropertyKeys, InstallAppUpdateRequestSchema, InstallAppUpdateResponseSchema, InstalledSkillPageSchema, InstalledSkillSchema, InterruptAgentTurnRequestSchema, InterruptAgentTurnResponseSchema, IsArray2 as IsArray, IsAsyncIterator2 as IsAsyncIterator, IsBigInt2 as IsBigInt, IsBoolean2 as IsBoolean, IsDate2 as IsDate, IsFunction2 as IsFunction, IsInteger, IsIterator2 as IsIterator, IsKind, IsMap, IsNull2 as IsNull, IsNumber2 as IsNumber, IsObject2 as IsObject, IsPromise, IsSchema, IsSet, IsStandardObject, IsString2 as IsString, IsSymbol2 as IsSymbol, IsTemplateLiteralFinite, IsTransform, IsTypedArray, IsUint8Array2 as IsUint8Array, IsUndefined2 as IsUndefined, IsUndefined3 as IsUndefined2, IsValueType, ItemCompletedEventSchema, ItemStartedEventSchema, KeyOfPattern, KeyOfPropertyKeys, Kind, Literal, LogoutAccessResponseSchema, MAX_AGENT_ATTACHMENT_BYTES, MAX_AGENT_FILE_BYTES, MAX_AGENT_FILE_TOTAL_BYTES, MAX_AGENT_HISTORY_IMAGES, MAX_AGENT_HISTORY_IMAGE_TOTAL_BYTES, MAX_AGENT_IMAGES, MAX_AGENT_IMAGE_BYTES, MAX_AGENT_IMAGE_TOTAL_BYTES, MAX_AGENT_TEXT_BYTES, MAX_EVENT_BATCH_SIZE, MAX_REALTIME_DIFF_BYTES, MAX_REALTIME_FILE_CHANGES, McpElicitationFieldSchema, McpElicitationOptionSchema, McpElicitationPendingRequestSchema, McpElicitationResolutionSchema, MessageDeltaEventSchema, Never, Object2 as Object, OpenAgentTaskAttachmentRequestSchema, OpenAgentTaskAttachmentResponseSchema, OpenProjectRequestSchema, OpenProjectResponseSchema, OpenSkillDirectoryResponseSchema, PairAccessRequestSchema, PairAccessResponseSchema, PendingApprovalDecisionSchema, PendingPermissionCategorySchema, PendingRequestCreatedEventSchema, PendingRequestExpiredEventSchema, PendingRequestResolvedEventSchema, PendingRequestSchema, PendingRequestStatusSchema, PendingUserInputOptionSchema, PendingUserInputQuestionSchema, PermissionApprovalPendingRequestSchema, PinAgentTaskRequestSchema, PinAgentTaskResponseSchema, PlanUpdatedEventSchema, ProjectDirectoryEntrySchema, ProjectDirectoryListingSchema, ProjectDirectoryPathSchema, ProjectDirectoryQuerySchema, ProjectFileNameSchema, ProjectFileReferencePathSchema, ProjectFileSearchEntrySchema, ProjectFileSearchPageSchema, ProjectFileSearchQuerySchema, ProjectFileSearchSessionIdSchema, ProjectFileTreeEntrySchema, ProjectFileTreeQuerySchema, ProjectFileTreeSchema, ProjectGitCommitFileDiffQuerySchema, ProjectGitCommitFileDiffSchema, ProjectGitCommitFileSchema, ProjectGitCommitFilesPageSchema, ProjectGitCommitFilesQuerySchema, ProjectGitCommitSchema, ProjectGitHistoryPageSchema, ProjectGitHistoryQuerySchema, ProjectGitMetadataChangedEventSchema, ProjectGitStatusQuerySchema, ProjectGitStatusSchema, ProjectGitWorktreePageSchema, ProjectGitWorktreeSchema, ProjectOpenAppIdSchema, ProjectOpenAppKindSchema, ProjectOpenAppSchema, ProjectOpenCapabilitiesResponseSchema, ProjectOpenPlatformSchema, ProjectPageSchema, ProjectRelativePathSchema, ProjectRootIdSchema, ProjectRootInputSchema, ProjectRootInputsSchema, ProjectRootPathSchema, ProjectRootQuerySchema, ProjectRootSchema, ProjectRootsSchema, ProjectSchema, ProjectSourceFileQuerySchema, ProjectSourceFileSchema, ProjectWorktreeMutationResponseSchema, ProviderErrorEventSchema, QueueChangedEventSchema, ReasoningDeltaEventSchema, ReloadAgentMcpServersRequestSchema, ReloadAgentMcpServersResponseSchema, RemoveProjectRequestSchema, RemoveProjectResponseSchema, RenameAgentTaskRequestSchema, RenameAgentTaskResponseSchema, RenameProjectFileRequestSchema, RenameProjectFileResponseSchema, RenameProjectRequestSchema, RenameProjectResponseSchema, ReorderAgentQueuedSubmissionsRequestSchema, ReorderAgentQueuedSubmissionsResponseSchema, ReorderProjectsRequestSchema, ReorderProjectsResponseSchema, ResolvePendingRequestRequestSchema, ResolvePendingRequestResponseSchema, ResyncRequiredSchema, ReviewAgentTaskRequestSchema, ReviewAgentTaskResponseSchema, ScheduledTaskInputSchema, ScheduledTaskMutationResponseSchema, ScheduledTaskPageSchema, ScheduledTaskRunSchema, ScheduledTaskRunStatusSchema, ScheduledTaskScheduleSchema, ScheduledTaskSchema, SetMcpServerEnabledResponseSchema, SetScheduledTaskEnabledRequestSchema, SetSkillEnabledResponseSchema, SkillInstallResultSchema, SkillInstallScopeSchema, SkillsChangedEventSchema, StartAgentQueuedSubmissionRequestSchema, StartAgentQueuedSubmissionResponseSchema, StartAgentTaskRequestSchema, StartAgentTaskResponseSchema, StartAgentTurnRequestSchema, StartAgentTurnResponseSchema, StartOfficialProviderLoginRequestSchema, StartOfficialProviderLoginResponseSchema, SteerAgentTurnRequestSchema, SteerAgentTurnResponseSchema, StopProjectFileSearchRequestSchema, StopProjectFileSearchResponseSchema, String, SwitchProjectBranchRequestSchema, SwitchProjectWorktreeRequestSchema, TEMPORARY_TASK_API_PATH, TEMPORARY_TASK_SCOPE_ID, TaskMetadataChangedEventSchema, TaskRemovedEventSchema, TaskStatusUpdatedEventSchema, TemplateLiteralGenerate, TerminateAgentBackgroundTerminalResponseSchema, TransformKind, TurnCompletedEventSchema, TurnStartedEventSchema, Type, TypeBoxError, TypeSystemPolicy, UnarchiveAgentTaskRequestSchema, UnarchiveAgentTaskResponseSchema, Union, Unknown, UnsubscribeAgentTaskResponseSchema, UpdateAgentGoalRequestSchema, UpdateAgentGoalResponseSchema, UpdateAgentQueuedSubmissionRequestSchema, UpdateAgentQueuedSubmissionResponseSchema, UploadAgentFeedbackRequestSchema, UploadAgentFeedbackResponseSchema, UsageUpdatedEventSchema, UserInputPendingRequestSchema, WorkbenchPetAnimationFrameSchema, WorkbenchPetAnimationSchema, WorkbenchPetCatalogResponseSchema, WorkbenchPetDescriptorSchema, WorkbenchPetDownloadRequestSchema, WorkbenchPetDownloadResponseSchema, WorkbenchPetFrameSchema, WorkbenchPetSettingsSchema, format_exports, isAgentFastModeAvailable, stripLeadingAgentSkillReferences, type_exports2 as type_exports };
|