@bryanhu/codexly 0.10.0 → 0.11.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 +16 -1
- package/dist/{chunk-H36A2TLY.js → chunk-IJVZZBEJ.js} +10 -3
- package/dist/{chunk-NWT36LJF.js → chunk-UYRNQKIC.js} +20 -1
- package/dist/{chunk-Q4C3XTOX.js → chunk-Y42ZATDP.js} +1 -1
- package/dist/{chunk-4XTWUO2V.js → chunk-YAM52SBC.js} +1 -1
- package/dist/cli.js +146 -26
- package/dist/client/index.js +5 -2
- package/dist/protocol/index.js +1 -1
- package/dist/providers/codex/index.js +2 -2
- package/dist/server/index.js +4 -4
- package/dist/web/.vite/manifest.json +177 -177
- package/dist/web/.vite/manifest.json.br +0 -0
- package/dist/web/.vite/manifest.json.gz +0 -0
- package/dist/web/assets/{button-group-CiKTUtu2.js → button-group-DLXfo6bM.js} +1 -1
- package/dist/web/assets/button-group-DLXfo6bM.js.br +0 -0
- package/dist/web/assets/button-group-DLXfo6bM.js.gz +0 -0
- package/dist/web/assets/check-D9z_gki0.js +1 -0
- package/dist/web/assets/check-D9z_gki0.js.br +0 -0
- package/dist/web/assets/check-D9z_gki0.js.gz +0 -0
- package/dist/web/assets/{checkbox-BW4uILvi.js → checkbox-BZXZ0drr.js} +1 -1
- package/dist/web/assets/checkbox-BZXZ0drr.js.br +0 -0
- package/dist/web/assets/checkbox-BZXZ0drr.js.gz +0 -0
- package/dist/web/assets/{chunk-BO2N2NFS-BUKjYgWS.js → chunk-BO2N2NFS-slcXBAuq.js} +4 -4
- package/dist/web/assets/chunk-BO2N2NFS-slcXBAuq.js.br +0 -0
- package/dist/web/assets/chunk-BO2N2NFS-slcXBAuq.js.gz +0 -0
- package/dist/web/assets/{code-highlighter-C1j1Kcu-.js → code-highlighter-DM8ZTw6W.js} +1 -1
- package/dist/web/assets/code-highlighter-DM8ZTw6W.js.br +0 -0
- package/dist/web/assets/code-highlighter-DM8ZTw6W.js.gz +0 -0
- package/dist/web/assets/{code-languages-CaP8M7cE.js → code-languages-B8mEN6LW.js} +1 -1
- package/dist/web/assets/code-languages-B8mEN6LW.js.br +0 -0
- package/dist/web/assets/code-languages-B8mEN6LW.js.gz +0 -0
- package/dist/web/assets/{context-menu-D--ol5Is.js → context-menu-B3yxTx7k.js} +1 -1
- package/dist/web/assets/context-menu-B3yxTx7k.js.br +0 -0
- package/dist/web/assets/context-menu-B3yxTx7k.js.gz +0 -0
- package/dist/web/assets/{dist-Dg2zCzgZ.js → dist-CUcZqkKm.js} +1 -1
- package/dist/web/assets/dist-CUcZqkKm.js.br +0 -0
- package/dist/web/assets/dist-CUcZqkKm.js.gz +0 -0
- package/dist/web/assets/dist-DXiMnM-t.js +1 -0
- package/dist/web/assets/dist-DXiMnM-t.js.br +0 -0
- package/dist/web/assets/dist-DXiMnM-t.js.gz +0 -0
- package/dist/web/assets/{es2015-keiDyoog.js → es2015-Bsdzq73S.js} +1 -1
- package/dist/web/assets/es2015-Bsdzq73S.js.br +0 -0
- package/dist/web/assets/es2015-Bsdzq73S.js.gz +0 -0
- package/dist/web/assets/{file-code-corner-DBltovZx.js → file-code-corner-CHgyW09L.js} +1 -1
- package/dist/web/assets/file-code-corner-CHgyW09L.js.br +0 -0
- package/dist/web/assets/file-code-corner-CHgyW09L.js.gz +0 -0
- package/dist/web/assets/{file-navigation-view-preference-CufNNsrc.js → file-navigation-view-preference-B_NgDFRZ.js} +1 -1
- package/dist/web/assets/file-navigation-view-preference-B_NgDFRZ.js.br +0 -0
- package/dist/web/assets/file-navigation-view-preference-B_NgDFRZ.js.gz +0 -0
- package/dist/web/assets/{file-review-dialog-BJcvPK95.js → file-review-dialog-CcoZo9FJ.js} +2 -2
- package/dist/web/assets/file-review-dialog-CcoZo9FJ.js.br +0 -0
- package/dist/web/assets/file-review-dialog-CcoZo9FJ.js.gz +0 -0
- package/dist/web/assets/{file-tree-Br65eBgL.js → file-tree-D7DlsFxt.js} +1 -1
- package/dist/web/assets/file-tree-D7DlsFxt.js.br +0 -0
- package/dist/web/assets/file-tree-D7DlsFxt.js.gz +0 -0
- package/dist/web/assets/{git-commit-horizontal-B8Fh6uIt.js → git-commit-horizontal-9LlF8jUx.js} +1 -1
- package/dist/web/assets/git-commit-horizontal-9LlF8jUx.js.br +0 -0
- package/dist/web/assets/git-commit-horizontal-9LlF8jUx.js.gz +0 -0
- package/dist/web/assets/{git-history-panel-BPu7_V4u.js → git-history-panel-C6R2z0R9.js} +2 -2
- package/dist/web/assets/git-history-panel-C6R2z0R9.js.br +0 -0
- package/dist/web/assets/git-history-panel-C6R2z0R9.js.gz +0 -0
- package/dist/web/assets/global-settings-dialog-D_DeSDvO.js +1 -0
- package/dist/web/assets/global-settings-dialog-D_DeSDvO.js.br +0 -0
- package/dist/web/assets/global-settings-dialog-D_DeSDvO.js.gz +0 -0
- package/dist/web/assets/{highlighted-body-OFNGDK62-B9UneXsh.js → highlighted-body-OFNGDK62-FcoBdZFE.js} +1 -1
- package/dist/web/assets/highlighted-body-OFNGDK62-FcoBdZFE.js.br +0 -0
- package/dist/web/assets/highlighted-body-OFNGDK62-FcoBdZFE.js.gz +0 -0
- package/dist/web/assets/index-B4aWCtax.css +2 -0
- package/dist/web/assets/index-B4aWCtax.css.br +0 -0
- package/dist/web/assets/index-B4aWCtax.css.gz +0 -0
- package/dist/web/assets/index-BE5MTOVO.js +4 -0
- package/dist/web/assets/index-BE5MTOVO.js.br +0 -0
- package/dist/web/assets/index-BE5MTOVO.js.gz +0 -0
- package/dist/web/assets/{lazy-message-response-BUy_3K13.js → lazy-message-response-g2mII63b.js} +2 -2
- package/dist/web/assets/lazy-message-response-g2mII63b.js.br +0 -0
- package/dist/web/assets/lazy-message-response-g2mII63b.js.gz +0 -0
- package/dist/web/assets/loader-circle-rpShwAPu.js +1 -0
- package/dist/web/assets/loader-circle-rpShwAPu.js.br +0 -0
- package/dist/web/assets/loader-circle-rpShwAPu.js.gz +0 -0
- package/dist/web/assets/mermaid-GHXKKRXX-Lx4vSR1l.js +1 -0
- package/dist/web/assets/mermaid-GHXKKRXX-Lx4vSR1l.js.br +0 -0
- package/dist/web/assets/mermaid-GHXKKRXX-Lx4vSR1l.js.gz +0 -0
- package/dist/web/assets/{message-response-CHiSTCUA.js → message-response-DNm7bUHg.js} +1 -1
- package/dist/web/assets/message-response-DNm7bUHg.js.br +0 -0
- package/dist/web/assets/message-response-DNm7bUHg.js.gz +0 -0
- package/dist/web/assets/{patch-diff-viewer-yBAeFKQ9.js → patch-diff-viewer-Cy0QuGBl.js} +2 -2
- package/dist/web/assets/patch-diff-viewer-Cy0QuGBl.js.br +0 -0
- package/dist/web/assets/patch-diff-viewer-Cy0QuGBl.js.gz +0 -0
- package/dist/web/assets/{project-file-popup-page-CCl_CU2a.js → project-file-popup-page-Bd-9e7Jz.js} +1 -1
- package/dist/web/assets/project-file-popup-page-Bd-9e7Jz.js.br +0 -0
- package/dist/web/assets/project-file-popup-page-Bd-9e7Jz.js.gz +0 -0
- package/dist/web/assets/{project-source-panel-bvidcsWq.js → project-source-panel-D1FO7-0K.js} +3 -3
- package/dist/web/assets/project-source-panel-D1FO7-0K.js.br +0 -0
- package/dist/web/assets/project-source-panel-D1FO7-0K.js.gz +0 -0
- package/dist/web/assets/{prompt-input-controls-DWd_vgsW.js → prompt-input-controls-DfJxvtFz.js} +1 -1
- package/dist/web/assets/prompt-input-controls-DfJxvtFz.js.br +0 -0
- package/dist/web/assets/prompt-input-controls-DfJxvtFz.js.gz +0 -0
- package/dist/web/assets/{prompt-reference-token-BHH5NHbF.js → prompt-reference-token-R6FVbklf.js} +1 -1
- package/dist/web/assets/prompt-reference-token-R6FVbklf.js.br +0 -0
- package/dist/web/assets/prompt-reference-token-R6FVbklf.js.gz +0 -0
- package/dist/web/assets/{provider-connection-queries-DCBm4pti.js → provider-connection-queries-BW-WA5XX.js} +1 -1
- package/dist/web/assets/provider-connection-queries-BW-WA5XX.js.br +0 -0
- package/dist/web/assets/provider-connection-queries-BW-WA5XX.js.gz +0 -0
- package/dist/web/assets/{shiki-bundle-D5WnlOUZ.js → shiki-bundle-CPA4bcst.js} +1 -1
- package/dist/web/assets/shiki-bundle-CPA4bcst.js.br +0 -0
- package/dist/web/assets/shiki-bundle-CPA4bcst.js.gz +0 -0
- package/dist/web/assets/tooltip-BfmJ1UrL.js +1 -0
- package/dist/web/assets/tooltip-BfmJ1UrL.js.br +0 -0
- package/dist/web/assets/tooltip-BfmJ1UrL.js.gz +0 -0
- package/dist/web/assets/{upload-CsaycpyW.js → upload-Da2B-3_3.js} +1 -1
- package/dist/web/assets/upload-Da2B-3_3.js.br +0 -0
- package/dist/web/assets/upload-Da2B-3_3.js.gz +0 -0
- package/dist/web/assets/{useInfiniteQuery-6E3mPgZn.js → useInfiniteQuery-DVH6Znvo.js} +1 -1
- package/dist/web/assets/useInfiniteQuery-DVH6Znvo.js.br +0 -0
- package/dist/web/assets/useInfiniteQuery-DVH6Znvo.js.gz +0 -0
- package/dist/web/assets/{workbench-inspector-changes-BqeP4QV0.js → workbench-inspector-changes-DzpWfwQP.js} +2 -2
- package/dist/web/assets/workbench-inspector-changes-DzpWfwQP.js.br +0 -0
- package/dist/web/assets/workbench-inspector-changes-DzpWfwQP.js.gz +0 -0
- package/dist/web/assets/{workbench-pet-canvas-B2MZ33ry.js → workbench-pet-canvas-3wzM8DvM.js} +1 -1
- package/dist/web/assets/workbench-pet-canvas-3wzM8DvM.js.br +0 -0
- package/dist/web/assets/workbench-pet-canvas-3wzM8DvM.js.gz +0 -0
- package/dist/web/assets/workbench-shell-B_3j5s_2.js +15 -0
- package/dist/web/assets/workbench-shell-B_3j5s_2.js.br +0 -0
- package/dist/web/assets/workbench-shell-B_3j5s_2.js.gz +0 -0
- package/dist/web/index.html +12 -12
- 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/button-group-CiKTUtu2.js.br +0 -0
- package/dist/web/assets/button-group-CiKTUtu2.js.gz +0 -0
- package/dist/web/assets/check-DqH8BaGS.js +0 -1
- package/dist/web/assets/check-DqH8BaGS.js.br +0 -0
- package/dist/web/assets/check-DqH8BaGS.js.gz +0 -0
- package/dist/web/assets/checkbox-BW4uILvi.js.br +0 -0
- package/dist/web/assets/checkbox-BW4uILvi.js.gz +0 -0
- package/dist/web/assets/chunk-BO2N2NFS-BUKjYgWS.js.br +0 -0
- package/dist/web/assets/chunk-BO2N2NFS-BUKjYgWS.js.gz +0 -0
- package/dist/web/assets/code-highlighter-C1j1Kcu-.js.br +0 -0
- package/dist/web/assets/code-highlighter-C1j1Kcu-.js.gz +0 -0
- package/dist/web/assets/code-languages-CaP8M7cE.js.br +0 -0
- package/dist/web/assets/code-languages-CaP8M7cE.js.gz +0 -0
- package/dist/web/assets/context-menu-D--ol5Is.js.br +0 -0
- package/dist/web/assets/context-menu-D--ol5Is.js.gz +0 -0
- package/dist/web/assets/dist-B3LT8os9.js +0 -1
- package/dist/web/assets/dist-B3LT8os9.js.br +0 -0
- package/dist/web/assets/dist-B3LT8os9.js.gz +0 -0
- package/dist/web/assets/dist-Dg2zCzgZ.js.br +0 -0
- package/dist/web/assets/dist-Dg2zCzgZ.js.gz +0 -0
- package/dist/web/assets/es2015-keiDyoog.js.br +0 -0
- package/dist/web/assets/es2015-keiDyoog.js.gz +0 -0
- package/dist/web/assets/file-code-corner-DBltovZx.js.br +0 -0
- package/dist/web/assets/file-code-corner-DBltovZx.js.gz +0 -0
- package/dist/web/assets/file-navigation-view-preference-CufNNsrc.js.br +0 -0
- package/dist/web/assets/file-navigation-view-preference-CufNNsrc.js.gz +0 -0
- package/dist/web/assets/file-review-dialog-BJcvPK95.js.br +0 -0
- package/dist/web/assets/file-review-dialog-BJcvPK95.js.gz +0 -0
- package/dist/web/assets/file-tree-Br65eBgL.js.br +0 -0
- package/dist/web/assets/file-tree-Br65eBgL.js.gz +0 -0
- package/dist/web/assets/git-commit-horizontal-B8Fh6uIt.js.br +0 -0
- package/dist/web/assets/git-commit-horizontal-B8Fh6uIt.js.gz +0 -0
- package/dist/web/assets/git-history-panel-BPu7_V4u.js.br +0 -0
- package/dist/web/assets/git-history-panel-BPu7_V4u.js.gz +0 -0
- package/dist/web/assets/global-settings-dialog-mq0z2Wkd.js +0 -1
- package/dist/web/assets/global-settings-dialog-mq0z2Wkd.js.br +0 -0
- package/dist/web/assets/global-settings-dialog-mq0z2Wkd.js.gz +0 -0
- package/dist/web/assets/highlighted-body-OFNGDK62-B9UneXsh.js.br +0 -0
- package/dist/web/assets/highlighted-body-OFNGDK62-B9UneXsh.js.gz +0 -0
- package/dist/web/assets/index-CLUF6YQa.css +0 -2
- package/dist/web/assets/index-CLUF6YQa.css.br +0 -0
- package/dist/web/assets/index-CLUF6YQa.css.gz +0 -0
- package/dist/web/assets/index-CdL6pn7l.js +0 -4
- package/dist/web/assets/index-CdL6pn7l.js.br +0 -0
- package/dist/web/assets/index-CdL6pn7l.js.gz +0 -0
- package/dist/web/assets/lazy-message-response-BUy_3K13.js.br +0 -0
- package/dist/web/assets/lazy-message-response-BUy_3K13.js.gz +0 -0
- package/dist/web/assets/loader-circle-DYfMWclN.js +0 -1
- package/dist/web/assets/loader-circle-DYfMWclN.js.br +0 -0
- package/dist/web/assets/loader-circle-DYfMWclN.js.gz +0 -0
- package/dist/web/assets/mermaid-GHXKKRXX-DN7BNS3K.js +0 -1
- package/dist/web/assets/mermaid-GHXKKRXX-DN7BNS3K.js.br +0 -0
- package/dist/web/assets/mermaid-GHXKKRXX-DN7BNS3K.js.gz +0 -0
- package/dist/web/assets/message-response-CHiSTCUA.js.br +0 -0
- package/dist/web/assets/message-response-CHiSTCUA.js.gz +0 -0
- package/dist/web/assets/patch-diff-viewer-yBAeFKQ9.js.br +0 -0
- package/dist/web/assets/patch-diff-viewer-yBAeFKQ9.js.gz +0 -0
- package/dist/web/assets/project-file-popup-page-CCl_CU2a.js.br +0 -0
- package/dist/web/assets/project-file-popup-page-CCl_CU2a.js.gz +0 -0
- package/dist/web/assets/project-source-panel-bvidcsWq.js.br +0 -0
- package/dist/web/assets/project-source-panel-bvidcsWq.js.gz +0 -0
- package/dist/web/assets/prompt-input-controls-DWd_vgsW.js.br +0 -0
- package/dist/web/assets/prompt-input-controls-DWd_vgsW.js.gz +0 -0
- package/dist/web/assets/prompt-reference-token-BHH5NHbF.js.br +0 -0
- package/dist/web/assets/prompt-reference-token-BHH5NHbF.js.gz +0 -0
- package/dist/web/assets/provider-connection-queries-DCBm4pti.js.br +0 -0
- package/dist/web/assets/provider-connection-queries-DCBm4pti.js.gz +0 -0
- package/dist/web/assets/shiki-bundle-D5WnlOUZ.js.br +0 -0
- package/dist/web/assets/shiki-bundle-D5WnlOUZ.js.gz +0 -0
- package/dist/web/assets/tooltip-4ec-13io.js +0 -1
- package/dist/web/assets/tooltip-4ec-13io.js.br +0 -0
- package/dist/web/assets/tooltip-4ec-13io.js.gz +0 -0
- package/dist/web/assets/upload-CsaycpyW.js.br +0 -0
- package/dist/web/assets/upload-CsaycpyW.js.gz +0 -0
- package/dist/web/assets/useInfiniteQuery-6E3mPgZn.js.br +0 -4
- package/dist/web/assets/useInfiniteQuery-6E3mPgZn.js.gz +0 -0
- package/dist/web/assets/workbench-inspector-changes-BqeP4QV0.js.br +0 -0
- package/dist/web/assets/workbench-inspector-changes-BqeP4QV0.js.gz +0 -0
- package/dist/web/assets/workbench-pet-canvas-B2MZ33ry.js.br +0 -0
- package/dist/web/assets/workbench-pet-canvas-B2MZ33ry.js.gz +0 -0
- package/dist/web/assets/workbench-shell-CgE4WjAp.js +0 -15
- package/dist/web/assets/workbench-shell-CgE4WjAp.js.br +0 -0
- package/dist/web/assets/workbench-shell-CgE4WjAp.js.gz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.11.0] - 2026-08-31
|
|
8
|
+
|
|
9
|
+
### 新增
|
|
10
|
+
|
|
11
|
+
- 添加应用更新进度查询与展示,实时呈现备份、下载、安装、回滚和完成状态。
|
|
12
|
+
|
|
13
|
+
### 修复
|
|
14
|
+
|
|
15
|
+
- 安全执行全局更新,使用本地归档支持失败回滚,并在更新中断后清理临时文件。
|
|
16
|
+
|
|
17
|
+
### 工程
|
|
18
|
+
|
|
19
|
+
- 升级 `better-sqlite3` 至 `13.0.3`。
|
|
20
|
+
|
|
7
21
|
## [0.10.0] - 2026-08-31
|
|
8
22
|
|
|
9
23
|
### 新增
|
|
@@ -176,7 +190,8 @@
|
|
|
176
190
|
- 拆分全栈测试套件并限制 Vitest 并发,提升跨平台门禁稳定性;GitHub Release 改为严格提取对应版本的完整更新日志。
|
|
177
191
|
- 将最低 Node.js 版本调整为 `22.14.0`,同步 CLI、CI、发布环境和使用文档。
|
|
178
192
|
|
|
179
|
-
[Unreleased]: https://github.com/BryanHoo/Codexly/compare/v0.
|
|
193
|
+
[Unreleased]: https://github.com/BryanHoo/Codexly/compare/v0.11.0...HEAD
|
|
194
|
+
[0.11.0]: https://github.com/BryanHoo/Codexly/releases/tag/v0.11.0
|
|
180
195
|
[0.10.0]: https://github.com/BryanHoo/Codexly/releases/tag/v0.10.0
|
|
181
196
|
[0.9.0]: https://github.com/BryanHoo/Codexly/releases/tag/v0.9.0
|
|
182
197
|
[0.8.0]: https://github.com/BryanHoo/Codexly/releases/tag/v0.8.0
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
|
-
import { value_exports } from './chunk-
|
|
3
|
-
import { require_pino, require_safe_stable_stringify, CodexProtocolMappingError, CodexProviderConnectionError, RpcConnectionClosedError, RpcProtocolError, RpcResponseError, RpcTimeoutError } from './chunk-
|
|
2
|
+
import { value_exports } from './chunk-YAM52SBC.js';
|
|
3
|
+
import { require_pino, require_safe_stable_stringify, CodexProtocolMappingError, CodexProviderConnectionError, RpcConnectionClosedError, RpcProtocolError, RpcResponseError, RpcTimeoutError } from './chunk-Y42ZATDP.js';
|
|
4
4
|
import { WorkbenchPetProviderError, PendingRequestResolutionError } from './chunk-RNTA4MFS.js';
|
|
5
|
-
import { AGENT_FILE_EXTENSIONS, AGENT_FILE_MEDIA_TYPES, DEFAULT_COMMIT_MESSAGE_MODEL, TEMPORARY_TASK_API_PATH, TEMPORARY_TASK_SCOPE_ID, MAX_AGENT_FILE_BYTES, AccessStatusResponseSchema, PairAccessRequestSchema, HealthResponseSchema, AppInfoResponseSchema, AgentMutationErrorSchema, InstallAppUpdateResponseSchema, InstallAppUpdateRequestSchema, EventStreamMetricsResponseSchema, AgentCapabilitiesSchema, AgentModelPageSchema, AgentGlobalSettingsResponseSchema, AgentGlobalSettingsSchema, MAX_AGENT_IMAGE_BYTES, MAX_AGENT_TEXT_BYTES, AgentProviderConnectionStatusSchema, StartOfficialProviderLoginResponseSchema, StartOfficialProviderLoginRequestSchema, AgentProviderConnectionMutationResponseSchema, CancelProviderLoginRequestSchema, ConfigureCustomProviderResponseSchema, ConfigureCustomProviderRequestSchema, WorkbenchPetCatalogResponseSchema, WorkbenchPetDownloadResponseSchema, WorkbenchPetDownloadRequestSchema, ProjectPageSchema, HostFileListingSchema, HostFileQuerySchema, ProjectDirectoryListingSchema, ProjectDirectoryQuerySchema, ProjectOpenCapabilitiesResponseSchema, OpenProjectResponseSchema, ProjectRootQuerySchema, OpenProjectRequestSchema, ReorderProjectsResponseSchema, ReorderProjectsRequestSchema, AgentSkillPageSchema, AgentProjectDefaultsResponseSchema, AgentProjectDefaultsSchema, AddProjectResponseSchema, AddProjectRequestSchema, RenameProjectResponseSchema, RenameProjectRequestSchema, RemoveProjectResponseSchema, RemoveProjectRequestSchema, AgentTaskPageSchema, UnsubscribeAgentTaskResponseSchema, AgentTaskSnapshotResponseSchema, AgentMcpServerPageSchema, AgentBackgroundTerminalPageSchema, TerminateAgentBackgroundTerminalResponseSchema, PinAgentTaskResponseSchema, PinAgentTaskRequestSchema, RenameAgentTaskResponseSchema, RenameAgentTaskRequestSchema, ArchiveAgentTaskResponseSchema, ArchiveAgentTaskRequestSchema, UnarchiveAgentTaskResponseSchema, UnarchiveAgentTaskRequestSchema, DeleteAgentTaskResponseSchema, DeleteAgentTaskRequestSchema, StartAgentTaskResponseSchema, StartAgentTaskRequestSchema, StartAgentTurnResponseSchema, StartAgentTurnRequestSchema, SteerAgentTurnResponseSchema, SteerAgentTurnRequestSchema, InterruptAgentTurnResponseSchema, InterruptAgentTurnRequestSchema, ResolvePendingRequestResponseSchema, ResolvePendingRequestRequestSchema, AgentQueuedSubmissionPageSchema, AddAgentQueuedSubmissionResponseSchema, AddAgentQueuedSubmissionRequestSchema, UpdateAgentQueuedSubmissionResponseSchema, UpdateAgentQueuedSubmissionRequestSchema, DeleteAgentQueuedSubmissionResponseSchema, ReorderAgentQueuedSubmissionsResponseSchema, ReorderAgentQueuedSubmissionsRequestSchema, StartAgentQueuedSubmissionResponseSchema, StartAgentQueuedSubmissionRequestSchema, AgentPromptInputSchema, AgentProviderConnectionRecordSchema, MAX_AGENT_IMAGES, MAX_AGENT_IMAGE_TOTAL_BYTES, MAX_AGENT_FILE_TOTAL_BYTES, ProjectGitStatusSchema, ProjectGitStatusQuerySchema, ProjectGitHistoryPageSchema, ProjectGitHistoryQuerySchema, ProjectGitCommitFilesPageSchema, ProjectGitCommitFilesQuerySchema, ProjectGitCommitFileDiffSchema, ProjectGitCommitFileDiffQuerySchema, SwitchProjectBranchRequestSchema, CreateProjectBranchRequestSchema, GenerateCommitMessageResponseSchema, GenerateCommitMessageRequestSchema, CommitProjectChangesResponseSchema, CommitProjectChangesRequestSchema, ProjectFileTreeSchema, ProjectFileTreeQuerySchema, ProjectFileSearchPageSchema, ProjectFileSearchQuerySchema, StopProjectFileSearchResponseSchema, StopProjectFileSearchRequestSchema, ProjectSourceFileQuerySchema, ProjectSourceFileSchema, AgentAttachmentUploadResponseSchema, HostFileKindSchema, ImportHostAttachmentRequestSchema, AgentAttachmentKindSchema, AgentTaskSettingsResponseSchema, AgentTaskSettingsSchema, ReloadAgentMcpServersResponseSchema, ReloadAgentMcpServersRequestSchema, ReviewAgentTaskResponseSchema, ReviewAgentTaskRequestSchema, CompactAgentTaskResponseSchema, CompactAgentTaskRequestSchema, ForkAgentTaskResponseSchema, ForkAgentTaskRequestSchema, UploadAgentFeedbackResponseSchema, UploadAgentFeedbackRequestSchema, OpenAgentTaskAttachmentResponseSchema, OpenAgentTaskAttachmentRequestSchema, UpdateAgentGoalResponseSchema, UpdateAgentGoalRequestSchema, ClearAgentGoalResponseSchema, ProjectGitWorktreePageSchema, ProjectWorktreeMutationResponseSchema, CreateProjectWorktreeRequestSchema, SwitchProjectWorktreeRequestSchema, RenameProjectFileResponseSchema, RenameProjectFileRequestSchema, DeleteProjectFileResponseSchema, DeleteProjectFileRequestSchema, MAX_EVENT_BATCH_SIZE } from './chunk-
|
|
5
|
+
import { AGENT_FILE_EXTENSIONS, AGENT_FILE_MEDIA_TYPES, DEFAULT_COMMIT_MESSAGE_MODEL, TEMPORARY_TASK_API_PATH, TEMPORARY_TASK_SCOPE_ID, MAX_AGENT_FILE_BYTES, AccessStatusResponseSchema, PairAccessRequestSchema, HealthResponseSchema, AppInfoResponseSchema, AppUpdateProgressResponseSchema, AgentMutationErrorSchema, InstallAppUpdateResponseSchema, InstallAppUpdateRequestSchema, EventStreamMetricsResponseSchema, AgentCapabilitiesSchema, AgentModelPageSchema, AgentGlobalSettingsResponseSchema, AgentGlobalSettingsSchema, MAX_AGENT_IMAGE_BYTES, MAX_AGENT_TEXT_BYTES, AgentProviderConnectionStatusSchema, StartOfficialProviderLoginResponseSchema, StartOfficialProviderLoginRequestSchema, AgentProviderConnectionMutationResponseSchema, CancelProviderLoginRequestSchema, ConfigureCustomProviderResponseSchema, ConfigureCustomProviderRequestSchema, WorkbenchPetCatalogResponseSchema, WorkbenchPetDownloadResponseSchema, WorkbenchPetDownloadRequestSchema, ProjectPageSchema, HostFileListingSchema, HostFileQuerySchema, ProjectDirectoryListingSchema, ProjectDirectoryQuerySchema, ProjectOpenCapabilitiesResponseSchema, OpenProjectResponseSchema, ProjectRootQuerySchema, OpenProjectRequestSchema, ReorderProjectsResponseSchema, ReorderProjectsRequestSchema, AgentSkillPageSchema, AgentProjectDefaultsResponseSchema, AgentProjectDefaultsSchema, AddProjectResponseSchema, AddProjectRequestSchema, RenameProjectResponseSchema, RenameProjectRequestSchema, RemoveProjectResponseSchema, RemoveProjectRequestSchema, AgentTaskPageSchema, UnsubscribeAgentTaskResponseSchema, AgentTaskSnapshotResponseSchema, AgentMcpServerPageSchema, AgentBackgroundTerminalPageSchema, TerminateAgentBackgroundTerminalResponseSchema, PinAgentTaskResponseSchema, PinAgentTaskRequestSchema, RenameAgentTaskResponseSchema, RenameAgentTaskRequestSchema, ArchiveAgentTaskResponseSchema, ArchiveAgentTaskRequestSchema, UnarchiveAgentTaskResponseSchema, UnarchiveAgentTaskRequestSchema, DeleteAgentTaskResponseSchema, DeleteAgentTaskRequestSchema, StartAgentTaskResponseSchema, StartAgentTaskRequestSchema, StartAgentTurnResponseSchema, StartAgentTurnRequestSchema, SteerAgentTurnResponseSchema, SteerAgentTurnRequestSchema, InterruptAgentTurnResponseSchema, InterruptAgentTurnRequestSchema, ResolvePendingRequestResponseSchema, ResolvePendingRequestRequestSchema, AgentQueuedSubmissionPageSchema, AddAgentQueuedSubmissionResponseSchema, AddAgentQueuedSubmissionRequestSchema, UpdateAgentQueuedSubmissionResponseSchema, UpdateAgentQueuedSubmissionRequestSchema, DeleteAgentQueuedSubmissionResponseSchema, ReorderAgentQueuedSubmissionsResponseSchema, ReorderAgentQueuedSubmissionsRequestSchema, StartAgentQueuedSubmissionResponseSchema, StartAgentQueuedSubmissionRequestSchema, AgentPromptInputSchema, AgentProviderConnectionRecordSchema, MAX_AGENT_IMAGES, MAX_AGENT_IMAGE_TOTAL_BYTES, MAX_AGENT_FILE_TOTAL_BYTES, ProjectGitStatusSchema, ProjectGitStatusQuerySchema, ProjectGitHistoryPageSchema, ProjectGitHistoryQuerySchema, ProjectGitCommitFilesPageSchema, ProjectGitCommitFilesQuerySchema, ProjectGitCommitFileDiffSchema, ProjectGitCommitFileDiffQuerySchema, SwitchProjectBranchRequestSchema, CreateProjectBranchRequestSchema, GenerateCommitMessageResponseSchema, GenerateCommitMessageRequestSchema, CommitProjectChangesResponseSchema, CommitProjectChangesRequestSchema, ProjectFileTreeSchema, ProjectFileTreeQuerySchema, ProjectFileSearchPageSchema, ProjectFileSearchQuerySchema, StopProjectFileSearchResponseSchema, StopProjectFileSearchRequestSchema, ProjectSourceFileQuerySchema, ProjectSourceFileSchema, AgentAttachmentUploadResponseSchema, HostFileKindSchema, ImportHostAttachmentRequestSchema, AgentAttachmentKindSchema, AgentTaskSettingsResponseSchema, AgentTaskSettingsSchema, ReloadAgentMcpServersResponseSchema, ReloadAgentMcpServersRequestSchema, ReviewAgentTaskResponseSchema, ReviewAgentTaskRequestSchema, CompactAgentTaskResponseSchema, CompactAgentTaskRequestSchema, ForkAgentTaskResponseSchema, ForkAgentTaskRequestSchema, UploadAgentFeedbackResponseSchema, UploadAgentFeedbackRequestSchema, OpenAgentTaskAttachmentResponseSchema, OpenAgentTaskAttachmentRequestSchema, UpdateAgentGoalResponseSchema, UpdateAgentGoalRequestSchema, ClearAgentGoalResponseSchema, ProjectGitWorktreePageSchema, ProjectWorktreeMutationResponseSchema, CreateProjectWorktreeRequestSchema, SwitchProjectWorktreeRequestSchema, RenameProjectFileResponseSchema, RenameProjectFileRequestSchema, DeleteProjectFileResponseSchema, DeleteProjectFileRequestSchema, MAX_EVENT_BATCH_SIZE } from './chunk-UYRNQKIC.js';
|
|
6
6
|
import { __commonJS, __require, __toESM } from './chunk-K6J42667.js';
|
|
7
7
|
import { Buffer as Buffer$1 } from 'buffer';
|
|
8
8
|
import { randomBytes, createHash, timingSafeEqual, randomUUID } from 'crypto';
|
|
@@ -59189,6 +59189,7 @@ var registerRuntimeRoutes = (app, context, done) => {
|
|
|
59189
59189
|
modelCatalogCache,
|
|
59190
59190
|
projectContexts,
|
|
59191
59191
|
readAppInfo,
|
|
59192
|
+
readAppUpdateProgress,
|
|
59192
59193
|
readEffectiveGlobalSettings,
|
|
59193
59194
|
runIdempotent,
|
|
59194
59195
|
settingsRepository
|
|
@@ -59202,6 +59203,11 @@ var registerRuntimeRoutes = (app, context, done) => {
|
|
|
59202
59203
|
{ schema: { response: { 200: AppInfoResponseSchema } } },
|
|
59203
59204
|
() => readAppInfo()
|
|
59204
59205
|
);
|
|
59206
|
+
app.get(
|
|
59207
|
+
"/v1/app-update/progress",
|
|
59208
|
+
{ schema: { response: { 200: AppUpdateProgressResponseSchema } } },
|
|
59209
|
+
() => readAppUpdateProgress()
|
|
59210
|
+
);
|
|
59205
59211
|
app.get(
|
|
59206
59212
|
"/v1/workbench-background/bing",
|
|
59207
59213
|
{ schema: { querystring: BingWallpaperQuerySchema } },
|
|
@@ -61214,6 +61220,7 @@ async function createCodexlyServer(options) {
|
|
|
61214
61220
|
petProvider: options.petProvider,
|
|
61215
61221
|
providerConnectionRepository: options.providerConnectionRepository,
|
|
61216
61222
|
readAppInfo: options.readAppInfo,
|
|
61223
|
+
readAppUpdateProgress: options.readAppUpdateProgress,
|
|
61217
61224
|
readEffectiveGlobalSettings,
|
|
61218
61225
|
readEffectiveProjectDefaults,
|
|
61219
61226
|
readEffectiveTaskSettings,
|
|
@@ -2800,6 +2800,25 @@ var AppUpdateStatusSchema = Type.Union([
|
|
|
2800
2800
|
Type.Literal("restart-required"),
|
|
2801
2801
|
Type.Literal("check-failed")
|
|
2802
2802
|
]);
|
|
2803
|
+
var AppUpdateProgressPhaseSchema = Type.Union([
|
|
2804
|
+
Type.Literal("checking"),
|
|
2805
|
+
Type.Literal("backing-up"),
|
|
2806
|
+
Type.Literal("downloading"),
|
|
2807
|
+
Type.Literal("installing"),
|
|
2808
|
+
Type.Literal("rolling-back"),
|
|
2809
|
+
Type.Literal("completed")
|
|
2810
|
+
]);
|
|
2811
|
+
var AppUpdateProgressSchema = Type.Object(
|
|
2812
|
+
{
|
|
2813
|
+
percent: Type.Integer({ maximum: 100, minimum: 0 }),
|
|
2814
|
+
phase: AppUpdateProgressPhaseSchema
|
|
2815
|
+
},
|
|
2816
|
+
{ additionalProperties: false }
|
|
2817
|
+
);
|
|
2818
|
+
var AppUpdateProgressResponseSchema = Type.Object(
|
|
2819
|
+
{ progress: Type.Union([AppUpdateProgressSchema, Type.Null()]) },
|
|
2820
|
+
{ additionalProperties: false }
|
|
2821
|
+
);
|
|
2803
2822
|
var AppInfoResponseSchema = Type.Object(
|
|
2804
2823
|
{
|
|
2805
2824
|
appVersion: SemanticVersionSchema,
|
|
@@ -5390,4 +5409,4 @@ var EventStreamMetricsResponseSchema = Type.Object(
|
|
|
5390
5409
|
{ additionalProperties: false }
|
|
5391
5410
|
);
|
|
5392
5411
|
|
|
5393
|
-
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, AgentMcpAuthStatusSchema, AgentMcpServerFailureReasonSchema, AgentMcpServerPageSchema, AgentMcpServerSchema, AgentMcpServerStatusSchema, 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, 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 };
|
|
5412
|
+
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, AgentMcpAuthStatusSchema, AgentMcpServerFailureReasonSchema, AgentMcpServerPageSchema, AgentMcpServerSchema, AgentMcpServerStatusSchema, 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 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
2
|
import { WorkbenchPetProviderError, PendingRequestResolutionError } from './chunk-RNTA4MFS.js';
|
|
3
|
-
import { TEMPORARY_TASK_SCOPE_ID, MAX_AGENT_HISTORY_IMAGE_TOTAL_BYTES, isAgentFastModeAvailable, MAX_REALTIME_FILE_CHANGES, MAX_REALTIME_DIFF_BYTES, stripLeadingAgentSkillReferences, MAX_AGENT_HISTORY_IMAGES, MAX_AGENT_TEXT_BYTES } from './chunk-
|
|
3
|
+
import { TEMPORARY_TASK_SCOPE_ID, MAX_AGENT_HISTORY_IMAGE_TOTAL_BYTES, isAgentFastModeAvailable, MAX_REALTIME_FILE_CHANGES, MAX_REALTIME_DIFF_BYTES, stripLeadingAgentSkillReferences, MAX_AGENT_HISTORY_IMAGES, MAX_AGENT_TEXT_BYTES } from './chunk-UYRNQKIC.js';
|
|
4
4
|
import { __commonJS, __require, __toESM } from './chunk-K6J42667.js';
|
|
5
5
|
import { execFile, spawn } from 'child_process';
|
|
6
6
|
import { constants, mkdtempSync, rmSync, createReadStream, mkdirSync, unlinkSync, renameSync, writeFileSync, openSync, readSync, closeSync, statSync } from 'fs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
|
-
import { IsArray, IsDate, IsTypedArray, IsMap, IsSet, IsObject, IsValueType, TypeBoxError, Object as Object$1, Unknown, String, Literal, Union, IsBoolean, IsBigInt, IsNull, IsNumber, IsString, IsSymbol, IsUint8Array, IsUndefined, Kind, type_exports, IsStandardObject, TypeSystemPolicy, format_exports, IsPromise, IsIterator, KeyOfPattern, IsSchema, IsInteger, IsFunction, IsAsyncIterator, Never, HasPropertyKey, IsTemplateLiteralFinite, TemplateLiteralGenerate, IsKind, KeyOfPropertyKeys, IsTransform, TransformKind, IsUndefined2, IndexFromPropertyKeys } from './chunk-
|
|
2
|
+
import { IsArray, IsDate, IsTypedArray, IsMap, IsSet, IsObject, IsValueType, TypeBoxError, Object as Object$1, Unknown, String, Literal, Union, IsBoolean, IsBigInt, IsNull, IsNumber, IsString, IsSymbol, IsUint8Array, IsUndefined, Kind, type_exports, IsStandardObject, TypeSystemPolicy, format_exports, IsPromise, IsIterator, KeyOfPattern, IsSchema, IsInteger, IsFunction, IsAsyncIterator, Never, HasPropertyKey, IsTemplateLiteralFinite, TemplateLiteralGenerate, IsKind, KeyOfPropertyKeys, IsTransform, TransformKind, IsUndefined2, IndexFromPropertyKeys } from './chunk-UYRNQKIC.js';
|
|
3
3
|
import { __export } from './chunk-K6J42667.js';
|
|
4
4
|
|
|
5
5
|
createRequire(import.meta.url);
|
package/dist/cli.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { createCodexlyServer, SqliteStateRepository, normalizeAllowedHost } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import { startCodexAppServer, locateCodexBinary, createCodexRuntimeProvider, createCodexWorkbenchPetProvider, CodexProjectRepository, checkCodexVersion } from './chunk-
|
|
3
|
+
import { createCodexlyServer, SqliteStateRepository, normalizeAllowedHost } from './chunk-IJVZZBEJ.js';
|
|
4
|
+
import './chunk-YAM52SBC.js';
|
|
5
|
+
import { startCodexAppServer, locateCodexBinary, createCodexRuntimeProvider, createCodexWorkbenchPetProvider, CodexProjectRepository, checkCodexVersion } from './chunk-Y42ZATDP.js';
|
|
6
6
|
import './chunk-RNTA4MFS.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-UYRNQKIC.js';
|
|
8
8
|
import './chunk-K6J42667.js';
|
|
9
|
-
import { networkInterfaces, homedir } from 'os';
|
|
10
|
-
import { join, win32 } from 'path';
|
|
9
|
+
import { networkInterfaces, homedir, tmpdir } from 'os';
|
|
10
|
+
import { join, dirname, parse, win32, basename, resolve } from 'path';
|
|
11
11
|
import { fileURLToPath } from 'url';
|
|
12
12
|
import { spawn, execFile } from 'child_process';
|
|
13
|
+
import { mkdtemp, rm, readFile } from 'fs/promises';
|
|
13
14
|
import { createInterface } from 'readline/promises';
|
|
14
15
|
import { randomBytes } from 'crypto';
|
|
15
16
|
import { isIP } from 'net';
|
|
@@ -18,7 +19,7 @@ createRequire(import.meta.url);
|
|
|
18
19
|
|
|
19
20
|
// package.json
|
|
20
21
|
var package_default = {
|
|
21
|
-
version: "0.
|
|
22
|
+
version: "0.11.0"};
|
|
22
23
|
var PACKAGE_NAME = "@bryanhu/codexly";
|
|
23
24
|
var INITIAL_APP_VERSION = "0.1.0";
|
|
24
25
|
var CHANGELOG_URL_PREFIX = "https://raw.githubusercontent.com/BryanHoo/Codexly/v";
|
|
@@ -84,10 +85,9 @@ function extractVersionReleaseNotes(changelog, version) {
|
|
|
84
85
|
const releaseNotes = lines.slice(start + 1, end).join("\n").trim();
|
|
85
86
|
return releaseNotes === "" ? void 0 : truncateUtf8(releaseNotes, MAX_RELEASE_NOTES_BYTES);
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
-
const packageSpec = `${PACKAGE_NAME}@${version}`;
|
|
88
|
+
function resolveNpmCommandInvocation(args, platform = process.platform, execPath = process.execPath) {
|
|
89
89
|
if (platform !== "win32") {
|
|
90
|
-
return { args
|
|
90
|
+
return { args, command: "npm" };
|
|
91
91
|
}
|
|
92
92
|
const npmCliPath = win32.join(
|
|
93
93
|
win32.dirname(execPath),
|
|
@@ -97,7 +97,7 @@ function resolveNpmInstallInvocation(version, platform = process.platform, execP
|
|
|
97
97
|
"npm-cli.js"
|
|
98
98
|
);
|
|
99
99
|
return {
|
|
100
|
-
args: [npmCliPath,
|
|
100
|
+
args: [npmCliPath, ...args],
|
|
101
101
|
command: execPath
|
|
102
102
|
};
|
|
103
103
|
}
|
|
@@ -140,25 +140,119 @@ async function fetchTaggedChangelog(version) {
|
|
|
140
140
|
if (!response.ok) throw new Error(`GitHub returned ${String(response.status)}`);
|
|
141
141
|
return response.text();
|
|
142
142
|
}
|
|
143
|
-
async function
|
|
144
|
-
const invocation =
|
|
145
|
-
|
|
143
|
+
async function runNpmCommand(args, options = {}) {
|
|
144
|
+
const invocation = resolveNpmCommandInvocation(args);
|
|
145
|
+
return new Promise((resolveCommand, reject) => {
|
|
146
146
|
execFile(
|
|
147
147
|
invocation.command,
|
|
148
148
|
invocation.args,
|
|
149
|
-
{
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
{
|
|
150
|
+
shell: false,
|
|
151
|
+
signal: options.signal,
|
|
152
|
+
timeout: INSTALL_TIMEOUT_MS,
|
|
153
|
+
windowsHide: true
|
|
154
|
+
},
|
|
155
|
+
(error, stdout) => {
|
|
156
|
+
if (error === null) resolveCommand(stdout);
|
|
152
157
|
else reject(new Error("npm install failed", { cause: error }));
|
|
153
158
|
}
|
|
154
159
|
);
|
|
155
160
|
});
|
|
156
161
|
}
|
|
162
|
+
async function findCurrentPackageRoot() {
|
|
163
|
+
let candidate = dirname(fileURLToPath(import.meta.url));
|
|
164
|
+
const root = parse(candidate).root;
|
|
165
|
+
while (candidate !== root) {
|
|
166
|
+
try {
|
|
167
|
+
const manifest = JSON.parse(await readFile(join(candidate, "package.json"), "utf8"));
|
|
168
|
+
if (typeof manifest === "object" && manifest !== null && "name" in manifest && manifest.name === PACKAGE_NAME) {
|
|
169
|
+
return candidate;
|
|
170
|
+
}
|
|
171
|
+
} catch {
|
|
172
|
+
}
|
|
173
|
+
candidate = dirname(candidate);
|
|
174
|
+
}
|
|
175
|
+
throw new Error("Unable to locate the installed Codexly package");
|
|
176
|
+
}
|
|
177
|
+
function readPackedArchivePath(output, temporaryDirectory) {
|
|
178
|
+
const payload = JSON.parse(output);
|
|
179
|
+
const entries = Array.isArray(payload) ? payload : [];
|
|
180
|
+
const first = entries[0];
|
|
181
|
+
if (typeof first !== "object" || first === null || !("filename" in first) || typeof first.filename !== "string" || basename(first.filename) !== first.filename) {
|
|
182
|
+
throw new Error("npm pack returned an invalid archive name");
|
|
183
|
+
}
|
|
184
|
+
return resolve(temporaryDirectory, first.filename);
|
|
185
|
+
}
|
|
186
|
+
async function packPackage(source, temporaryDirectory, runNpm, signal) {
|
|
187
|
+
const output = await runNpm(
|
|
188
|
+
["pack", "--ignore-scripts", "--json", "--pack-destination", temporaryDirectory, source],
|
|
189
|
+
{ signal }
|
|
190
|
+
);
|
|
191
|
+
return readPackedArchivePath(output, temporaryDirectory);
|
|
192
|
+
}
|
|
193
|
+
async function installGlobalPackageSafely(version, options = {}) {
|
|
194
|
+
const runNpm = options.runNpm ?? runNpmCommand;
|
|
195
|
+
const temporaryDirectory = await mkdtemp(join(tmpdir(), "codexly-update-"));
|
|
196
|
+
const controller = new AbortController();
|
|
197
|
+
const abort = () => {
|
|
198
|
+
controller.abort(new Error("Codexly update interrupted"));
|
|
199
|
+
};
|
|
200
|
+
let backupArchive;
|
|
201
|
+
let replacementStarted = false;
|
|
202
|
+
process.once("SIGINT", abort);
|
|
203
|
+
process.once("SIGTERM", abort);
|
|
204
|
+
try {
|
|
205
|
+
const currentPackageRoot = options.currentPackageRoot ?? await findCurrentPackageRoot();
|
|
206
|
+
options.onProgress?.({ percent: 10, phase: "backing-up" });
|
|
207
|
+
backupArchive = await packPackage(
|
|
208
|
+
currentPackageRoot,
|
|
209
|
+
temporaryDirectory,
|
|
210
|
+
runNpm,
|
|
211
|
+
controller.signal
|
|
212
|
+
);
|
|
213
|
+
options.onProgress?.({ percent: 30, phase: "downloading" });
|
|
214
|
+
const updateArchive = await packPackage(
|
|
215
|
+
`${PACKAGE_NAME}@${version}`,
|
|
216
|
+
temporaryDirectory,
|
|
217
|
+
runNpm,
|
|
218
|
+
controller.signal
|
|
219
|
+
);
|
|
220
|
+
if (controller.signal.aborted) throw controller.signal.reason;
|
|
221
|
+
options.onProgress?.({ percent: 80, phase: "installing" });
|
|
222
|
+
replacementStarted = true;
|
|
223
|
+
await runNpm(["install", "--global", updateArchive], { signal: controller.signal });
|
|
224
|
+
} catch (error) {
|
|
225
|
+
if (replacementStarted && backupArchive !== void 0) {
|
|
226
|
+
try {
|
|
227
|
+
options.onProgress?.({ percent: 90, phase: "rolling-back" });
|
|
228
|
+
await runNpm(["install", "--global", backupArchive]);
|
|
229
|
+
} catch (rollbackError) {
|
|
230
|
+
const updateMessage = error instanceof Error ? error.message : String(error);
|
|
231
|
+
const rollbackMessage = rollbackError instanceof Error ? rollbackError.message : String(rollbackError);
|
|
232
|
+
throw new Error(
|
|
233
|
+
`Codexly update failed: ${updateMessage}; rollback failed: ${rollbackMessage}`,
|
|
234
|
+
{
|
|
235
|
+
cause: rollbackError
|
|
236
|
+
}
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
throw error;
|
|
241
|
+
} finally {
|
|
242
|
+
process.off("SIGINT", abort);
|
|
243
|
+
process.off("SIGTERM", abort);
|
|
244
|
+
await rm(temporaryDirectory, { force: true, recursive: true });
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
async function installGlobalPackage(version, onProgress) {
|
|
248
|
+
await installGlobalPackageSafely(version, onProgress === void 0 ? {} : { onProgress });
|
|
249
|
+
}
|
|
157
250
|
function createAppUpdateService(options) {
|
|
158
251
|
const fetchChangelog = options.fetchChangelog ?? fetchTaggedChangelog;
|
|
159
252
|
const fetchLatestVersion = options.fetchLatestVersion ?? fetchLatestPackageVersion;
|
|
160
253
|
const runNpmInstall = options.runNpmInstall ?? installGlobalPackage;
|
|
161
254
|
let installedVersion;
|
|
255
|
+
let updateProgress = null;
|
|
162
256
|
const readLatest = async () => {
|
|
163
257
|
try {
|
|
164
258
|
const latestVersion = await fetchLatestVersion();
|
|
@@ -172,18 +266,25 @@ function createAppUpdateService(options) {
|
|
|
172
266
|
}
|
|
173
267
|
};
|
|
174
268
|
return {
|
|
175
|
-
async install(version) {
|
|
269
|
+
async install(version, onProgress) {
|
|
270
|
+
const publishProgress = (progress) => {
|
|
271
|
+
updateProgress = progress;
|
|
272
|
+
onProgress?.(progress);
|
|
273
|
+
};
|
|
274
|
+
publishProgress({ percent: 5, phase: "checking" });
|
|
176
275
|
const latestVersion = await readLatest();
|
|
177
276
|
const requestedVersionIsAvailable = isNewerVersion(version, options.appVersion) && !isNewerVersion(version, latestVersion);
|
|
178
277
|
if (!requestedVersionIsAvailable || !isNewerVersion(latestVersion, options.appVersion)) {
|
|
278
|
+
updateProgress = null;
|
|
179
279
|
throw new AppUpdateError("UPDATE_NOT_AVAILABLE", "The requested update is not available");
|
|
180
280
|
}
|
|
181
281
|
try {
|
|
182
|
-
await runNpmInstall(latestVersion);
|
|
282
|
+
await runNpmInstall(latestVersion, publishProgress);
|
|
183
283
|
} catch {
|
|
184
284
|
throw new AppUpdateError("UPDATE_INSTALL_FAILED", "Failed to install the Codexly update");
|
|
185
285
|
}
|
|
186
286
|
installedVersion = latestVersion;
|
|
287
|
+
publishProgress({ percent: 100, phase: "completed" });
|
|
187
288
|
return {
|
|
188
289
|
appVersion: options.appVersion,
|
|
189
290
|
codexVersion: options.codexVersion,
|
|
@@ -193,6 +294,9 @@ function createAppUpdateService(options) {
|
|
|
193
294
|
updateAvailable: false
|
|
194
295
|
};
|
|
195
296
|
},
|
|
297
|
+
readProgress() {
|
|
298
|
+
return Promise.resolve({ progress: updateProgress });
|
|
299
|
+
},
|
|
196
300
|
async read() {
|
|
197
301
|
let latestVersion;
|
|
198
302
|
try {
|
|
@@ -359,11 +463,24 @@ function createStartupAppUpdateOperations(appVersion) {
|
|
|
359
463
|
status: info.status === "available" ? "available" : info.status === "check-failed" ? "check-failed" : "current"
|
|
360
464
|
};
|
|
361
465
|
},
|
|
362
|
-
install: async (version) => {
|
|
363
|
-
await service.install(version);
|
|
466
|
+
install: async (version, onProgress) => {
|
|
467
|
+
await service.install(version, onProgress);
|
|
364
468
|
}
|
|
365
469
|
};
|
|
366
470
|
}
|
|
471
|
+
function formatTerminalAppUpdateProgress(progress) {
|
|
472
|
+
const labels = {
|
|
473
|
+
"backing-up": "\u6B63\u5728\u5907\u4EFD\u5F53\u524D\u7248\u672C",
|
|
474
|
+
checking: "\u6B63\u5728\u786E\u8BA4\u6700\u65B0\u7248\u672C",
|
|
475
|
+
completed: "\u66F4\u65B0\u5B89\u88C5\u5B8C\u6210",
|
|
476
|
+
downloading: "\u6B63\u5728\u4E0B\u8F7D\u66F4\u65B0\u5305",
|
|
477
|
+
installing: "\u6B63\u5728\u5B89\u88C5\u65B0\u7248\u672C",
|
|
478
|
+
"rolling-back": "\u5B89\u88C5\u5931\u8D25\uFF0C\u6B63\u5728\u6062\u590D\u539F\u7248\u672C"
|
|
479
|
+
};
|
|
480
|
+
const filled = Math.round(progress.percent / 5);
|
|
481
|
+
const bar = `${"\u2588".repeat(filled)}${"\u2591".repeat(20 - filled)}`;
|
|
482
|
+
return `[${bar}] ${String(progress.percent)}% ${labels[progress.phase]}`;
|
|
483
|
+
}
|
|
367
484
|
async function confirmTerminalAppUpdate(currentVersion, latestVersion) {
|
|
368
485
|
if (!process.stdin.isTTY || !process.stdout.isTTY) return false;
|
|
369
486
|
const terminal = createInterface({ input: process.stdin, output: process.stdout });
|
|
@@ -380,7 +497,7 @@ async function confirmTerminalAppUpdate(currentVersion, latestVersion) {
|
|
|
380
497
|
async function restartCliAfterUpdate(args) {
|
|
381
498
|
const cliEntry = process.argv[1];
|
|
382
499
|
if (cliEntry === void 0) throw new Error("\u65E0\u6CD5\u786E\u5B9A Codexly CLI \u5165\u53E3");
|
|
383
|
-
return new Promise((
|
|
500
|
+
return new Promise((resolve2, reject) => {
|
|
384
501
|
const child = spawn(process.execPath, [cliEntry, ...args], {
|
|
385
502
|
env: { ...process.env, [STARTUP_UPDATE_APPLIED_ENV]: "1" },
|
|
386
503
|
shell: false,
|
|
@@ -393,7 +510,7 @@ async function restartCliAfterUpdate(args) {
|
|
|
393
510
|
reject(new Error(`\u66F4\u65B0\u540E\u7684 Codexly \u542F\u52A8\u8FDB\u7A0B\u88AB\u4FE1\u53F7 ${signal} \u7EC8\u6B62`));
|
|
394
511
|
return;
|
|
395
512
|
}
|
|
396
|
-
|
|
513
|
+
resolve2(code ?? 1);
|
|
397
514
|
});
|
|
398
515
|
});
|
|
399
516
|
}
|
|
@@ -634,11 +751,11 @@ async function waitForAbort(signal) {
|
|
|
634
751
|
if (signal.aborted) {
|
|
635
752
|
return;
|
|
636
753
|
}
|
|
637
|
-
await new Promise((
|
|
754
|
+
await new Promise((resolve2) => {
|
|
638
755
|
signal.addEventListener(
|
|
639
756
|
"abort",
|
|
640
757
|
() => {
|
|
641
|
-
|
|
758
|
+
resolve2();
|
|
642
759
|
},
|
|
643
760
|
{ once: true }
|
|
644
761
|
);
|
|
@@ -712,7 +829,9 @@ async function runStart(args, dependencies, signal, output) {
|
|
|
712
829
|
);
|
|
713
830
|
if (shouldUpdate) {
|
|
714
831
|
output.info(`\u6B63\u5728\u66F4\u65B0 Codexly \u5230 ${update.latestVersion}...`);
|
|
715
|
-
await dependencies.installAppUpdate(update.latestVersion)
|
|
832
|
+
await dependencies.installAppUpdate(update.latestVersion, (progress) => {
|
|
833
|
+
output.info(formatTerminalAppUpdateProgress(progress));
|
|
834
|
+
});
|
|
716
835
|
output.success(`Codexly \u5DF2\u66F4\u65B0\u5230 ${update.latestVersion}\uFF0C\u6B63\u5728\u91CD\u65B0\u542F\u52A8\u3002`);
|
|
717
836
|
return dependencies.restartAfterUpdate(["start", ...args]);
|
|
718
837
|
}
|
|
@@ -772,6 +891,7 @@ async function runStart(args, dependencies, signal, output) {
|
|
|
772
891
|
petProvider,
|
|
773
892
|
installAppUpdate: appUpdateService.install,
|
|
774
893
|
readAppInfo: appUpdateService.read,
|
|
894
|
+
readAppUpdateProgress: appUpdateService.readProgress,
|
|
775
895
|
queueRepository: stateRepository,
|
|
776
896
|
settingsRepository: stateRepository,
|
|
777
897
|
staticRoot: dependencies.webRoot,
|
package/dist/client/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
|
-
import { value_exports } from '../chunk-
|
|
3
|
-
import { EventStreamMessageSchema, TEMPORARY_TASK_SCOPE_ID, TEMPORARY_TASK_API_PATH, AgentQueuedSubmissionPageSchema, AddAgentQueuedSubmissionResponseSchema, UpdateAgentQueuedSubmissionResponseSchema, DeleteAgentQueuedSubmissionResponseSchema, ReorderAgentQueuedSubmissionsResponseSchema, StartAgentQueuedSubmissionResponseSchema, AgentTaskPageSchema, AgentTaskSnapshotResponseSchema, OpenAgentTaskAttachmentResponseSchema, AgentBackgroundTerminalPageSchema, TerminateAgentBackgroundTerminalResponseSchema, AgentTaskSettingsResponseSchema, StartAgentTaskResponseSchema, PinAgentTaskResponseSchema, RenameAgentTaskResponseSchema, UnsubscribeAgentTaskResponseSchema, ReviewAgentTaskResponseSchema, CompactAgentTaskResponseSchema, ForkAgentTaskResponseSchema, UploadAgentFeedbackResponseSchema, AgentAttachmentUploadResponseSchema, AgentMutationErrorSchema, StartAgentTurnResponseSchema, SteerAgentTurnResponseSchema, InterruptAgentTurnResponseSchema, ResolvePendingRequestResponseSchema, UpdateAgentGoalResponseSchema, ClearAgentGoalResponseSchema, ArchiveAgentTaskResponseSchema, UnarchiveAgentTaskResponseSchema, DeleteAgentTaskResponseSchema, AgentSkillPageSchema, AgentMcpServerPageSchema, ReloadAgentMcpServersResponseSchema, ProjectPageSchema, ProjectDirectoryListingSchema, HostFileListingSchema, ReorderProjectsResponseSchema, AgentProjectDefaultsResponseSchema, AddProjectResponseSchema, RenameProjectResponseSchema, RemoveProjectResponseSchema, ProjectOpenCapabilitiesResponseSchema, OpenProjectResponseSchema, ProjectGitStatusSchema, ProjectGitHistoryPageSchema, ProjectGitCommitFilesPageSchema, ProjectGitCommitFileDiffSchema, ProjectGitWorktreePageSchema, ProjectWorktreeMutationResponseSchema, GenerateCommitMessageResponseSchema, CommitProjectChangesResponseSchema, ProjectFileTreeSchema, RenameProjectFileResponseSchema, DeleteProjectFileResponseSchema, ProjectFileSearchPageSchema, StopProjectFileSearchResponseSchema, ProjectSourceFileSchema, HealthResponseSchema, AppInfoResponseSchema, InstallAppUpdateResponseSchema, AccessStatusResponseSchema, AgentCapabilitiesSchema, AgentModelPageSchema, AgentProviderConnectionStatusSchema, StartOfficialProviderLoginResponseSchema, AgentProviderConnectionMutationResponseSchema, ConfigureCustomProviderResponseSchema, AgentGlobalSettingsResponseSchema, WorkbenchPetCatalogResponseSchema, WorkbenchPetDownloadResponseSchema } from '../chunk-
|
|
2
|
+
import { value_exports } from '../chunk-YAM52SBC.js';
|
|
3
|
+
import { EventStreamMessageSchema, TEMPORARY_TASK_SCOPE_ID, TEMPORARY_TASK_API_PATH, AgentQueuedSubmissionPageSchema, AddAgentQueuedSubmissionResponseSchema, UpdateAgentQueuedSubmissionResponseSchema, DeleteAgentQueuedSubmissionResponseSchema, ReorderAgentQueuedSubmissionsResponseSchema, StartAgentQueuedSubmissionResponseSchema, AgentTaskPageSchema, AgentTaskSnapshotResponseSchema, OpenAgentTaskAttachmentResponseSchema, AgentBackgroundTerminalPageSchema, TerminateAgentBackgroundTerminalResponseSchema, AgentTaskSettingsResponseSchema, StartAgentTaskResponseSchema, PinAgentTaskResponseSchema, RenameAgentTaskResponseSchema, UnsubscribeAgentTaskResponseSchema, ReviewAgentTaskResponseSchema, CompactAgentTaskResponseSchema, ForkAgentTaskResponseSchema, UploadAgentFeedbackResponseSchema, AgentAttachmentUploadResponseSchema, AgentMutationErrorSchema, StartAgentTurnResponseSchema, SteerAgentTurnResponseSchema, InterruptAgentTurnResponseSchema, ResolvePendingRequestResponseSchema, UpdateAgentGoalResponseSchema, ClearAgentGoalResponseSchema, ArchiveAgentTaskResponseSchema, UnarchiveAgentTaskResponseSchema, DeleteAgentTaskResponseSchema, AgentSkillPageSchema, AgentMcpServerPageSchema, ReloadAgentMcpServersResponseSchema, ProjectPageSchema, ProjectDirectoryListingSchema, HostFileListingSchema, ReorderProjectsResponseSchema, AgentProjectDefaultsResponseSchema, AddProjectResponseSchema, RenameProjectResponseSchema, RemoveProjectResponseSchema, ProjectOpenCapabilitiesResponseSchema, OpenProjectResponseSchema, ProjectGitStatusSchema, ProjectGitHistoryPageSchema, ProjectGitCommitFilesPageSchema, ProjectGitCommitFileDiffSchema, ProjectGitWorktreePageSchema, ProjectWorktreeMutationResponseSchema, GenerateCommitMessageResponseSchema, CommitProjectChangesResponseSchema, ProjectFileTreeSchema, RenameProjectFileResponseSchema, DeleteProjectFileResponseSchema, ProjectFileSearchPageSchema, StopProjectFileSearchResponseSchema, ProjectSourceFileSchema, HealthResponseSchema, AppInfoResponseSchema, AppUpdateProgressResponseSchema, InstallAppUpdateResponseSchema, AccessStatusResponseSchema, AgentCapabilitiesSchema, AgentModelPageSchema, AgentProviderConnectionStatusSchema, StartOfficialProviderLoginResponseSchema, AgentProviderConnectionMutationResponseSchema, ConfigureCustomProviderResponseSchema, AgentGlobalSettingsResponseSchema, WorkbenchPetCatalogResponseSchema, WorkbenchPetDownloadResponseSchema } from '../chunk-UYRNQKIC.js';
|
|
4
4
|
import '../chunk-K6J42667.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -306,6 +306,9 @@ var CodexlyTransport = class {
|
|
|
306
306
|
async getAppInfo(options = {}) {
|
|
307
307
|
return this.read("/v1/app-info", AppInfoResponseSchema, options);
|
|
308
308
|
}
|
|
309
|
+
async getAppUpdateProgress(options = {}) {
|
|
310
|
+
return this.read("/v1/app-update/progress", AppUpdateProgressResponseSchema, options);
|
|
311
|
+
}
|
|
309
312
|
async installAppUpdate(version, options = {}) {
|
|
310
313
|
return this.mutation(
|
|
311
314
|
"/v1/app-update",
|
package/dist/protocol/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
|
-
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, AgentMcpAuthStatusSchema, AgentMcpServerFailureReasonSchema, AgentMcpServerPageSchema, AgentMcpServerSchema, AgentMcpServerStatusSchema, 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, 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, HealthResponseSchema, HostFileEntrySchema, HostFileKindSchema, HostFileListingSchema, HostFileQuerySchema, ImportHostAttachmentRequestSchema, InstallAppUpdateRequestSchema, InstallAppUpdateResponseSchema, InterruptAgentTurnRequestSchema, InterruptAgentTurnResponseSchema, ItemCompletedEventSchema, ItemStartedEventSchema, 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, 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, SwitchProjectBranchRequestSchema, SwitchProjectWorktreeRequestSchema, TEMPORARY_TASK_API_PATH, TEMPORARY_TASK_SCOPE_ID, TaskMetadataChangedEventSchema, TaskRemovedEventSchema, TaskStatusUpdatedEventSchema, TerminateAgentBackgroundTerminalResponseSchema, TurnCompletedEventSchema, TurnStartedEventSchema, UnarchiveAgentTaskRequestSchema, UnarchiveAgentTaskResponseSchema, UnsubscribeAgentTaskResponseSchema, UpdateAgentGoalRequestSchema, UpdateAgentGoalResponseSchema, UpdateAgentQueuedSubmissionRequestSchema, UpdateAgentQueuedSubmissionResponseSchema, UploadAgentFeedbackRequestSchema, UploadAgentFeedbackResponseSchema, UsageUpdatedEventSchema, UserInputPendingRequestSchema, WorkbenchPetAnimationFrameSchema, WorkbenchPetAnimationSchema, WorkbenchPetCatalogResponseSchema, WorkbenchPetDescriptorSchema, WorkbenchPetDownloadRequestSchema, WorkbenchPetDownloadResponseSchema, WorkbenchPetFrameSchema, WorkbenchPetSettingsSchema, isAgentFastModeAvailable, stripLeadingAgentSkillReferences } from '../chunk-
|
|
2
|
+
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, AgentMcpAuthStatusSchema, AgentMcpServerFailureReasonSchema, AgentMcpServerPageSchema, AgentMcpServerSchema, AgentMcpServerStatusSchema, 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, HealthResponseSchema, HostFileEntrySchema, HostFileKindSchema, HostFileListingSchema, HostFileQuerySchema, ImportHostAttachmentRequestSchema, InstallAppUpdateRequestSchema, InstallAppUpdateResponseSchema, InterruptAgentTurnRequestSchema, InterruptAgentTurnResponseSchema, ItemCompletedEventSchema, ItemStartedEventSchema, 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, 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, SwitchProjectBranchRequestSchema, SwitchProjectWorktreeRequestSchema, TEMPORARY_TASK_API_PATH, TEMPORARY_TASK_SCOPE_ID, TaskMetadataChangedEventSchema, TaskRemovedEventSchema, TaskStatusUpdatedEventSchema, TerminateAgentBackgroundTerminalResponseSchema, TurnCompletedEventSchema, TurnStartedEventSchema, UnarchiveAgentTaskRequestSchema, UnarchiveAgentTaskResponseSchema, UnsubscribeAgentTaskResponseSchema, UpdateAgentGoalRequestSchema, UpdateAgentGoalResponseSchema, UpdateAgentQueuedSubmissionRequestSchema, UpdateAgentQueuedSubmissionResponseSchema, UploadAgentFeedbackRequestSchema, UploadAgentFeedbackResponseSchema, UsageUpdatedEventSchema, UserInputPendingRequestSchema, WorkbenchPetAnimationFrameSchema, WorkbenchPetAnimationSchema, WorkbenchPetCatalogResponseSchema, WorkbenchPetDescriptorSchema, WorkbenchPetDownloadRequestSchema, WorkbenchPetDownloadResponseSchema, WorkbenchPetFrameSchema, WorkbenchPetSettingsSchema, isAgentFastModeAvailable, stripLeadingAgentSkillReferences } from '../chunk-UYRNQKIC.js';
|
|
3
3
|
import '../chunk-K6J42667.js';
|
|
4
4
|
|
|
5
5
|
createRequire(import.meta.url);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
|
-
export { CodexAppServerExitedError, CodexAppServerProcess, CodexAppServerShutdownError, CodexAppServerSpawnError, CodexProjectRepository, CodexProtocolMappingError, CodexProviderConnectionError, CodexProviderConnectionService, CodexRuntimeProvider, CodexWorkbenchPetProvider, JsonlRpcClient, RpcConnectionClosedError, RpcProtocolError, RpcResponseError, RpcTimeoutError, SUPPORTED_CODEX_VERSION, checkCodexVersion, createCodexRuntimeProvider, createCodexWorkbenchPetProvider, locateCodexBinary, startCodexAppServer } from '../../chunk-
|
|
2
|
+
export { CodexAppServerExitedError, CodexAppServerProcess, CodexAppServerShutdownError, CodexAppServerSpawnError, CodexProjectRepository, CodexProtocolMappingError, CodexProviderConnectionError, CodexProviderConnectionService, CodexRuntimeProvider, CodexWorkbenchPetProvider, JsonlRpcClient, RpcConnectionClosedError, RpcProtocolError, RpcResponseError, RpcTimeoutError, SUPPORTED_CODEX_VERSION, checkCodexVersion, createCodexRuntimeProvider, createCodexWorkbenchPetProvider, locateCodexBinary, startCodexAppServer } from '../../chunk-Y42ZATDP.js';
|
|
3
3
|
import '../../chunk-RNTA4MFS.js';
|
|
4
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-UYRNQKIC.js';
|
|
5
5
|
import '../../chunk-K6J42667.js';
|
|
6
6
|
|
|
7
7
|
createRequire(import.meta.url);
|
package/dist/server/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
|
-
export { AccessSessionService, AgentEventStream, GitCommitError, GitCommitReviewError, SqliteStateRepository, commitSelectedProjectChanges, createCodexlyServer, normalizeAllowedHost, readProjectGitCommitFileDiff, readProjectGitCommitFiles } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
2
|
+
export { AccessSessionService, AgentEventStream, GitCommitError, GitCommitReviewError, SqliteStateRepository, commitSelectedProjectChanges, createCodexlyServer, normalizeAllowedHost, readProjectGitCommitFileDiff, readProjectGitCommitFiles } from '../chunk-IJVZZBEJ.js';
|
|
3
|
+
import '../chunk-YAM52SBC.js';
|
|
4
|
+
import '../chunk-Y42ZATDP.js';
|
|
5
5
|
import '../chunk-RNTA4MFS.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-UYRNQKIC.js';
|
|
7
7
|
import '../chunk-K6J42667.js';
|
|
8
8
|
|
|
9
9
|
createRequire(import.meta.url);
|