@bryanhu/codexly 0.18.0 → 0.20.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 +36 -0
- package/README.md +4 -0
- package/README.zh-CN.md +4 -0
- package/dist/{chunk-NROPHBJ7.js → chunk-2J5P2EG2.js} +2508 -4038
- package/dist/{chunk-3PU3WPOK.js → chunk-AIACWU7L.js} +659 -72
- package/dist/chunk-B2673ODM.js +260 -0
- package/dist/chunk-GT7XTSEG.js +56 -0
- package/dist/{chunk-M6GWGUSX.js → chunk-X5JZ3VOF.js} +311 -77
- package/dist/{chunk-2O7SN37L.js → chunk-ZUECHB6L.js} +1 -1
- package/dist/cli.js +113 -39
- package/dist/client/index.js +135 -11
- package/dist/core/index.js +1 -1
- package/dist/protocol/index.js +2 -1
- package/dist/providers/codex/index.js +4 -3
- package/dist/runtime-instance-worker.js +19 -0
- package/dist/scheduled-task-recurrence-worker.js +2969 -0
- package/dist/server/index.js +6 -5
- package/dist/sqlite-state-worker.js +156 -13
- package/dist/web/.vite/manifest.json +106 -106
- package/dist/web/.vite/manifest.json.br +0 -0
- package/dist/web/.vite/manifest.json.gz +0 -0
- package/dist/web/assets/{agent-settings-panel-BagNBAoe.js → agent-settings-panel-B3hoqvYI.js} +1 -1
- package/dist/web/assets/agent-settings-panel-B3hoqvYI.js.br +0 -0
- package/dist/web/assets/agent-settings-panel-B3hoqvYI.js.gz +0 -0
- package/dist/web/assets/background-image-picker-DV18Olkx.js +1 -0
- package/dist/web/assets/background-image-picker-DV18Olkx.js.br +0 -0
- package/dist/web/assets/background-image-picker-DV18Olkx.js.gz +0 -0
- package/dist/web/assets/{bing-wallpaper-queries-B-1L0OYP.js → bing-wallpaper-queries-CybCDdtr.js} +1 -1
- package/dist/web/assets/bing-wallpaper-queries-CybCDdtr.js.br +0 -0
- package/dist/web/assets/bing-wallpaper-queries-CybCDdtr.js.gz +0 -0
- package/dist/web/assets/{button-group-DIxa2Erp.js → button-group-DLm5MGrs.js} +1 -1
- package/dist/web/assets/button-group-DLm5MGrs.js.br +0 -0
- package/dist/web/assets/button-group-DLm5MGrs.js.gz +0 -0
- package/dist/web/assets/{commit-settings-panel-Co1u5Lzc.js → commit-settings-panel-RS1ax2vB.js} +1 -1
- package/dist/web/assets/commit-settings-panel-RS1ax2vB.js.br +0 -0
- package/dist/web/assets/commit-settings-panel-RS1ax2vB.js.gz +0 -0
- package/dist/web/assets/{context-menu-HaQeWpEd.js → context-menu-DP6ii80r.js} +1 -1
- package/dist/web/assets/context-menu-DP6ii80r.js.br +0 -0
- package/dist/web/assets/context-menu-DP6ii80r.js.gz +0 -0
- package/dist/web/assets/{file-review-dialog-B-0RkLZR.js → file-review-dialog-C3to4N_J.js} +1 -1
- package/dist/web/assets/file-review-dialog-C3to4N_J.js.br +0 -0
- package/dist/web/assets/file-review-dialog-C3to4N_J.js.gz +0 -0
- package/dist/web/assets/{git-history-panel-QiNKxo_n.js → git-history-panel-D2OdQ1Pg.js} +1 -1
- package/dist/web/assets/git-history-panel-D2OdQ1Pg.js.br +0 -0
- package/dist/web/assets/git-history-panel-D2OdQ1Pg.js.gz +0 -0
- package/dist/web/assets/{global-settings-about-DWXfIOas.js → global-settings-about-DYd77AOa.js} +1 -1
- package/dist/web/assets/global-settings-about-DYd77AOa.js.br +0 -0
- package/dist/web/assets/global-settings-about-DYd77AOa.js.gz +0 -0
- package/dist/web/assets/{global-settings-fields-CmEy5pOE.js → global-settings-fields-C0IfL3RQ.js} +1 -1
- package/dist/web/assets/global-settings-fields-C0IfL3RQ.js.br +0 -0
- package/dist/web/assets/global-settings-fields-C0IfL3RQ.js.gz +0 -0
- package/dist/web/assets/global-settings-model-dAGHIcU5.js +1 -0
- package/dist/web/assets/global-settings-model-dAGHIcU5.js.br +0 -0
- package/dist/web/assets/global-settings-model-dAGHIcU5.js.gz +0 -0
- package/dist/web/assets/global-settings-page-746-HK5D.js +2 -0
- package/dist/web/assets/global-settings-page-746-HK5D.js.br +0 -0
- package/dist/web/assets/global-settings-page-746-HK5D.js.gz +0 -0
- package/dist/web/assets/{global-settings-pets-DP2AxhJW.js → global-settings-pets-B6HRYnYq.js} +1 -1
- package/dist/web/assets/global-settings-pets-B6HRYnYq.js.br +0 -0
- package/dist/web/assets/global-settings-pets-B6HRYnYq.js.gz +0 -0
- package/dist/web/assets/{index-BGtID8VJ.css → index-DGp-a5pq.css} +1 -1
- package/dist/web/assets/index-DGp-a5pq.css.br +0 -0
- package/dist/web/assets/{index-BGtID8VJ.css.gz → index-DGp-a5pq.css.gz} +0 -0
- package/dist/web/assets/index-DwEl9mCY.js +4 -0
- package/dist/web/assets/index-DwEl9mCY.js.br +0 -0
- package/dist/web/assets/index-DwEl9mCY.js.gz +0 -0
- package/dist/web/assets/initial-deps-Bk3GSWTk.js +1 -0
- package/dist/web/assets/initial-deps-Bk3GSWTk.js.br +0 -0
- package/dist/web/assets/initial-deps-Bk3GSWTk.js.gz +0 -0
- package/dist/web/assets/installed-skills-pane-Gzaol8-B.js +1 -0
- package/dist/web/assets/installed-skills-pane-Gzaol8-B.js.br +0 -0
- package/dist/web/assets/installed-skills-pane-Gzaol8-B.js.gz +0 -0
- package/dist/web/assets/{lazy-message-response-3Fr_a8du.js → lazy-message-response-CZT51-go.js} +2 -2
- package/dist/web/assets/lazy-message-response-CZT51-go.js.br +0 -0
- package/dist/web/assets/lazy-message-response-CZT51-go.js.gz +0 -0
- package/dist/web/assets/mcp-management-pane-C0g0wk8t.js +1 -0
- package/dist/web/assets/mcp-management-pane-C0g0wk8t.js.br +0 -0
- package/dist/web/assets/mcp-management-pane-C0g0wk8t.js.gz +0 -0
- package/dist/web/assets/{message-response-D3YFwFiE.js → message-response-CA2hanqw.js} +1 -1
- package/dist/web/assets/message-response-CA2hanqw.js.br +0 -0
- package/dist/web/assets/message-response-CA2hanqw.js.gz +0 -0
- package/dist/web/assets/{official-plugins-pane-k8o9gVMR.js → official-plugins-pane-D6kbUBEm.js} +1 -1
- package/dist/web/assets/official-plugins-pane-D6kbUBEm.js.br +0 -0
- package/dist/web/assets/official-plugins-pane-D6kbUBEm.js.gz +0 -0
- package/dist/web/assets/personalization-settings-panel-DnWZEv6V.js +1 -0
- package/dist/web/assets/personalization-settings-panel-DnWZEv6V.js.br +0 -0
- package/dist/web/assets/personalization-settings-panel-DnWZEv6V.js.gz +0 -0
- package/dist/web/assets/{project-file-popup-page-0uRpUcFH.js → project-file-popup-page-C8zcwgkf.js} +1 -1
- package/dist/web/assets/project-file-popup-page-C8zcwgkf.js.br +0 -0
- package/dist/web/assets/project-file-popup-page-C8zcwgkf.js.gz +0 -0
- package/dist/web/assets/{project-source-panel-CEegjNVo.js → project-source-panel-ChVlP72p.js} +2 -2
- package/dist/web/assets/project-source-panel-ChVlP72p.js.br +0 -0
- package/dist/web/assets/project-source-panel-ChVlP72p.js.gz +0 -0
- package/dist/web/assets/{prompt-input-Bs_e51Ey.js → prompt-input-CcovKFMj.js} +1 -1
- package/dist/web/assets/prompt-input-CcovKFMj.js.br +0 -0
- package/dist/web/assets/prompt-input-CcovKFMj.js.gz +0 -0
- package/dist/web/assets/{prompt-input-controls-DMqyvYVY.js → prompt-input-controls-j_r9SnuL.js} +1 -1
- package/dist/web/assets/prompt-input-controls-j_r9SnuL.js.br +0 -0
- package/dist/web/assets/prompt-input-controls-j_r9SnuL.js.gz +0 -0
- package/dist/web/assets/{scheduled-task-date-time-picker-CHc9a7G1.js → scheduled-task-date-time-picker-CkLwYwGu.js} +1 -1
- package/dist/web/assets/scheduled-task-date-time-picker-CkLwYwGu.js.br +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-CkLwYwGu.js.gz +0 -0
- package/dist/web/assets/{scheduled-task-schedule-2Ugh5sqp.js → scheduled-task-schedule-f0nylWUa.js} +1 -1
- package/dist/web/assets/scheduled-task-schedule-f0nylWUa.js.br +0 -0
- package/dist/web/assets/scheduled-task-schedule-f0nylWUa.js.gz +0 -0
- package/dist/web/assets/scheduled-tasks-container-DxM30EEY.js +2 -0
- package/dist/web/assets/scheduled-tasks-container-DxM30EEY.js.br +0 -0
- package/dist/web/assets/scheduled-tasks-container-DxM30EEY.js.gz +0 -0
- package/dist/web/assets/{settings-personalization-b55VcvKr.js → settings-personalization-CPFvvwt7.js} +1 -1
- package/dist/web/assets/settings-personalization-CPFvvwt7.js.br +0 -0
- package/dist/web/assets/settings-personalization-CPFvvwt7.js.gz +0 -0
- package/dist/web/assets/{sheet-DbEBBgCs.js → sheet-Co357cup.js} +1 -1
- package/dist/web/assets/sheet-Co357cup.js.br +0 -0
- package/dist/web/assets/sheet-Co357cup.js.gz +0 -0
- package/dist/web/assets/{skills-market-container-BwT-U8XF.js → skills-market-container-CJ8k5fIO.js} +2 -2
- package/dist/web/assets/skills-market-container-CJ8k5fIO.js.br +0 -0
- package/dist/web/assets/skills-market-container-CJ8k5fIO.js.gz +0 -0
- package/dist/web/assets/{third-party-marketplace-pane-Cva9dfRn.js → third-party-marketplace-pane-BrosEBTn.js} +1 -1
- package/dist/web/assets/third-party-marketplace-pane-BrosEBTn.js.br +0 -0
- package/dist/web/assets/third-party-marketplace-pane-BrosEBTn.js.gz +0 -0
- package/dist/web/assets/workbench-composer-CxDyu4IJ.js +8 -0
- package/dist/web/assets/workbench-composer-CxDyu4IJ.js.br +0 -0
- package/dist/web/assets/workbench-composer-CxDyu4IJ.js.gz +0 -0
- package/dist/web/assets/workbench-inspector-changes-DXrYXxmV.js +2 -0
- package/dist/web/assets/workbench-inspector-changes-DXrYXxmV.js.br +0 -0
- package/dist/web/assets/workbench-inspector-changes-DXrYXxmV.js.gz +0 -0
- package/dist/web/assets/workbench-pet-canvas-C5NL9nOc.js +1 -0
- package/dist/web/assets/workbench-pet-canvas-C5NL9nOc.js.br +0 -0
- package/dist/web/assets/workbench-pet-canvas-C5NL9nOc.js.gz +0 -0
- package/dist/web/assets/workbench-shell-C3Zu4F9x.js +8 -0
- package/dist/web/assets/workbench-shell-C3Zu4F9x.js.br +0 -0
- package/dist/web/assets/workbench-shell-C3Zu4F9x.js.gz +0 -0
- package/dist/web/index.html +3 -3
- package/dist/web/index.html.br +0 -0
- package/dist/web/index.html.gz +0 -0
- package/package.json +1 -1
- package/dist/chunk-RNTA4MFS.js +0 -23
- package/dist/web/assets/agent-settings-panel-BagNBAoe.js.br +0 -0
- package/dist/web/assets/agent-settings-panel-BagNBAoe.js.gz +0 -0
- package/dist/web/assets/background-image-picker-CjpS0dIk.js +0 -1
- package/dist/web/assets/background-image-picker-CjpS0dIk.js.br +0 -0
- package/dist/web/assets/background-image-picker-CjpS0dIk.js.gz +0 -0
- package/dist/web/assets/bing-wallpaper-queries-B-1L0OYP.js.br +0 -0
- package/dist/web/assets/bing-wallpaper-queries-B-1L0OYP.js.gz +0 -0
- package/dist/web/assets/button-group-DIxa2Erp.js.br +0 -0
- package/dist/web/assets/button-group-DIxa2Erp.js.gz +0 -0
- package/dist/web/assets/commit-settings-panel-Co1u5Lzc.js.br +0 -0
- package/dist/web/assets/commit-settings-panel-Co1u5Lzc.js.gz +0 -0
- package/dist/web/assets/context-menu-HaQeWpEd.js.br +0 -0
- package/dist/web/assets/context-menu-HaQeWpEd.js.gz +0 -0
- package/dist/web/assets/file-review-dialog-B-0RkLZR.js.br +0 -0
- package/dist/web/assets/file-review-dialog-B-0RkLZR.js.gz +0 -0
- package/dist/web/assets/git-history-panel-QiNKxo_n.js.br +0 -0
- package/dist/web/assets/git-history-panel-QiNKxo_n.js.gz +0 -0
- package/dist/web/assets/global-settings-about-DWXfIOas.js.br +0 -0
- package/dist/web/assets/global-settings-about-DWXfIOas.js.gz +0 -0
- package/dist/web/assets/global-settings-fields-CmEy5pOE.js.br +0 -0
- package/dist/web/assets/global-settings-fields-CmEy5pOE.js.gz +0 -0
- package/dist/web/assets/global-settings-model-B49sZloO.js +0 -1
- package/dist/web/assets/global-settings-model-B49sZloO.js.br +0 -0
- package/dist/web/assets/global-settings-model-B49sZloO.js.gz +0 -0
- package/dist/web/assets/global-settings-page-DKXRkWmd.js +0 -2
- package/dist/web/assets/global-settings-page-DKXRkWmd.js.br +0 -0
- package/dist/web/assets/global-settings-page-DKXRkWmd.js.gz +0 -0
- package/dist/web/assets/global-settings-pets-DP2AxhJW.js.br +0 -0
- package/dist/web/assets/global-settings-pets-DP2AxhJW.js.gz +0 -0
- package/dist/web/assets/index-BGtID8VJ.css.br +0 -0
- package/dist/web/assets/index-mkWzMsjN.js +0 -4
- package/dist/web/assets/index-mkWzMsjN.js.br +0 -0
- package/dist/web/assets/index-mkWzMsjN.js.gz +0 -0
- package/dist/web/assets/initial-deps-CDAJF_GU.js +0 -1
- package/dist/web/assets/initial-deps-CDAJF_GU.js.br +0 -0
- package/dist/web/assets/initial-deps-CDAJF_GU.js.gz +0 -0
- package/dist/web/assets/installed-skills-pane-CR2LbYh9.js +0 -1
- package/dist/web/assets/installed-skills-pane-CR2LbYh9.js.br +0 -0
- package/dist/web/assets/installed-skills-pane-CR2LbYh9.js.gz +0 -0
- package/dist/web/assets/lazy-message-response-3Fr_a8du.js.br +0 -0
- package/dist/web/assets/lazy-message-response-3Fr_a8du.js.gz +0 -0
- package/dist/web/assets/mcp-management-pane-DEuUn7Y6.js +0 -1
- package/dist/web/assets/mcp-management-pane-DEuUn7Y6.js.br +0 -0
- package/dist/web/assets/mcp-management-pane-DEuUn7Y6.js.gz +0 -0
- package/dist/web/assets/message-response-D3YFwFiE.js.br +0 -0
- package/dist/web/assets/message-response-D3YFwFiE.js.gz +0 -0
- package/dist/web/assets/official-plugins-pane-k8o9gVMR.js.br +0 -0
- package/dist/web/assets/official-plugins-pane-k8o9gVMR.js.gz +0 -0
- package/dist/web/assets/personalization-settings-panel-Cl4_Y5Uk.js +0 -1
- package/dist/web/assets/personalization-settings-panel-Cl4_Y5Uk.js.br +0 -0
- package/dist/web/assets/personalization-settings-panel-Cl4_Y5Uk.js.gz +0 -0
- package/dist/web/assets/project-file-popup-page-0uRpUcFH.js.br +0 -0
- package/dist/web/assets/project-file-popup-page-0uRpUcFH.js.gz +0 -0
- package/dist/web/assets/project-source-panel-CEegjNVo.js.br +0 -0
- package/dist/web/assets/project-source-panel-CEegjNVo.js.gz +0 -0
- package/dist/web/assets/prompt-input-Bs_e51Ey.js.br +0 -0
- package/dist/web/assets/prompt-input-Bs_e51Ey.js.gz +0 -0
- package/dist/web/assets/prompt-input-controls-DMqyvYVY.js.br +0 -0
- package/dist/web/assets/prompt-input-controls-DMqyvYVY.js.gz +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-CHc9a7G1.js.br +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-CHc9a7G1.js.gz +0 -0
- package/dist/web/assets/scheduled-task-schedule-2Ugh5sqp.js.br +0 -0
- package/dist/web/assets/scheduled-task-schedule-2Ugh5sqp.js.gz +0 -0
- package/dist/web/assets/scheduled-tasks-container-Ddieo85Q.js +0 -2
- package/dist/web/assets/scheduled-tasks-container-Ddieo85Q.js.br +0 -0
- package/dist/web/assets/scheduled-tasks-container-Ddieo85Q.js.gz +0 -0
- package/dist/web/assets/settings-personalization-b55VcvKr.js.br +0 -0
- package/dist/web/assets/settings-personalization-b55VcvKr.js.gz +0 -0
- package/dist/web/assets/sheet-DbEBBgCs.js.br +0 -0
- package/dist/web/assets/sheet-DbEBBgCs.js.gz +0 -0
- package/dist/web/assets/skills-market-container-BwT-U8XF.js.br +0 -0
- package/dist/web/assets/skills-market-container-BwT-U8XF.js.gz +0 -0
- package/dist/web/assets/third-party-marketplace-pane-Cva9dfRn.js.br +0 -0
- package/dist/web/assets/third-party-marketplace-pane-Cva9dfRn.js.gz +0 -0
- package/dist/web/assets/workbench-composer-BxYlmKUq.js +0 -10
- package/dist/web/assets/workbench-composer-BxYlmKUq.js.br +0 -0
- package/dist/web/assets/workbench-composer-BxYlmKUq.js.gz +0 -0
- package/dist/web/assets/workbench-inspector-changes-DFZ_PDdt.js +0 -2
- package/dist/web/assets/workbench-inspector-changes-DFZ_PDdt.js.br +0 -0
- package/dist/web/assets/workbench-inspector-changes-DFZ_PDdt.js.gz +0 -0
- package/dist/web/assets/workbench-pet-canvas-DwkSGxpw.js +0 -1
- package/dist/web/assets/workbench-pet-canvas-DwkSGxpw.js.br +0 -0
- package/dist/web/assets/workbench-pet-canvas-DwkSGxpw.js.gz +0 -0
- package/dist/web/assets/workbench-shell-CnjG23lI.js +0 -8
- package/dist/web/assets/workbench-shell-CnjG23lI.js.br +0 -0
- package/dist/web/assets/workbench-shell-CnjG23lI.js.gz +0 -0
package/dist/cli.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
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-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
3
|
+
import { createCodexlyServer, SqliteStateRepository, normalizeAllowedHost } from './chunk-2J5P2EG2.js';
|
|
4
|
+
import './chunk-ZUECHB6L.js';
|
|
5
|
+
import { startCodexAppServer, locateCodexBinary, createCodexRuntimeProvider, createCodexWorkbenchPetProvider, CodexProjectRepository, checkCodexVersion } from './chunk-AIACWU7L.js';
|
|
6
|
+
import './chunk-B2673ODM.js';
|
|
7
|
+
import { DEFAULT_COMMIT_MESSAGE_MODEL } from './chunk-X5JZ3VOF.js';
|
|
8
|
+
import './chunk-GT7XTSEG.js';
|
|
8
9
|
import './chunk-K6J42667.js';
|
|
9
10
|
import { networkInterfaces, homedir, tmpdir } from 'os';
|
|
10
11
|
import { join, dirname, parse, win32, basename, resolve } from 'path';
|
|
11
12
|
import { fileURLToPath } from 'url';
|
|
12
13
|
import { spawn, execFile } from 'child_process';
|
|
13
|
-
import { mkdtemp, rm, readFile } from 'fs/promises';
|
|
14
|
+
import { mkdir, realpath, mkdtemp, rm, readFile } from 'fs/promises';
|
|
15
|
+
import { Worker } from 'worker_threads';
|
|
14
16
|
import { createInterface } from 'readline/promises';
|
|
15
17
|
import { randomBytes } from 'crypto';
|
|
16
18
|
import { isIP } from 'net';
|
|
@@ -19,7 +21,7 @@ createRequire(import.meta.url);
|
|
|
19
21
|
|
|
20
22
|
// package.json
|
|
21
23
|
var package_default = {
|
|
22
|
-
version: "0.
|
|
24
|
+
version: "0.20.0"};
|
|
23
25
|
|
|
24
26
|
// src/npm-registry.ts
|
|
25
27
|
var MIRROR_REGISTRY = "https://registry.npmmirror.com";
|
|
@@ -470,6 +472,37 @@ function parseCommandOptions(args, valueOptions, flagOptions = /* @__PURE__ */ n
|
|
|
470
472
|
return parsed;
|
|
471
473
|
}
|
|
472
474
|
|
|
475
|
+
// src/cli-shutdown.ts
|
|
476
|
+
function createProcessShutdownSignal() {
|
|
477
|
+
const controller = new AbortController();
|
|
478
|
+
const abort = () => {
|
|
479
|
+
controller.abort();
|
|
480
|
+
};
|
|
481
|
+
process.once("SIGINT", abort);
|
|
482
|
+
process.once("SIGTERM", abort);
|
|
483
|
+
return {
|
|
484
|
+
cleanup: () => {
|
|
485
|
+
process.off("SIGINT", abort);
|
|
486
|
+
process.off("SIGTERM", abort);
|
|
487
|
+
},
|
|
488
|
+
signal: controller.signal
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
async function waitForAbort(signal) {
|
|
492
|
+
if (signal.aborted) {
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
495
|
+
await new Promise((resolve2) => {
|
|
496
|
+
signal.addEventListener(
|
|
497
|
+
"abort",
|
|
498
|
+
() => {
|
|
499
|
+
resolve2();
|
|
500
|
+
},
|
|
501
|
+
{ once: true }
|
|
502
|
+
);
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
|
|
473
506
|
// src/cli-server-listen.ts
|
|
474
507
|
var MAX_TCP_PORT = 65535;
|
|
475
508
|
function isAddressInUseError(error) {
|
|
@@ -488,6 +521,60 @@ async function listenOnAvailablePort(server, host, initialPort) {
|
|
|
488
521
|
}
|
|
489
522
|
throw new Error(`\u7AEF\u53E3 ${String(initialPort)} \u5230 ${String(MAX_TCP_PORT)} \u5747\u4E0D\u53EF\u7528`);
|
|
490
523
|
}
|
|
524
|
+
async function acquireRuntimeLock(codexHome) {
|
|
525
|
+
const directory = join(codexHome, "codexly");
|
|
526
|
+
await mkdir(directory, { recursive: true });
|
|
527
|
+
const path = join(await realpath(directory), "instance.sqlite3");
|
|
528
|
+
const worker = new Worker(new URL("./runtime-instance-worker.js", import.meta.url), {
|
|
529
|
+
workerData: { path }
|
|
530
|
+
});
|
|
531
|
+
const controller = new AbortController();
|
|
532
|
+
let closing = false;
|
|
533
|
+
const failure = new Error("Codexly \u5B9E\u4F8B\u9501\u5DF2\u5931\u6548\uFF0C\u6B63\u5728\u505C\u6B62\u8FD0\u884C");
|
|
534
|
+
worker.on("error", () => {
|
|
535
|
+
controller.abort(failure);
|
|
536
|
+
});
|
|
537
|
+
worker.on("exit", () => {
|
|
538
|
+
if (!closing) controller.abort(failure);
|
|
539
|
+
});
|
|
540
|
+
try {
|
|
541
|
+
await new Promise((resolve2, reject) => {
|
|
542
|
+
const timer = setTimeout(() => {
|
|
543
|
+
finish(new Error("\u83B7\u53D6 Codexly \u5B9E\u4F8B\u9501\u8D85\u65F6"));
|
|
544
|
+
}, 1e4);
|
|
545
|
+
const finish = (error) => {
|
|
546
|
+
clearTimeout(timer);
|
|
547
|
+
worker.off("message", onMessage);
|
|
548
|
+
controller.signal.removeEventListener("abort", onAbort);
|
|
549
|
+
if (error) reject(error);
|
|
550
|
+
else resolve2();
|
|
551
|
+
};
|
|
552
|
+
const onAbort = () => {
|
|
553
|
+
finish(failure);
|
|
554
|
+
};
|
|
555
|
+
const onMessage = (message) => {
|
|
556
|
+
finish(
|
|
557
|
+
message.type === "ready" ? void 0 : new Error(
|
|
558
|
+
message.busy ? "\u540C\u4E00\u6570\u636E\u76EE\u5F55\u5DF2\u6709 Codexly \u5B9E\u4F8B\u8FD0\u884C\uFF0C\u8BF7\u4F7F\u7528\u5DF2\u6709\u5B9E\u4F8B\u6216\u6307\u5B9A\u5176\u4ED6 --codex-home" : "\u65E0\u6CD5\u83B7\u53D6 Codexly \u5B9E\u4F8B\u9501"
|
|
559
|
+
)
|
|
560
|
+
);
|
|
561
|
+
};
|
|
562
|
+
worker.on("message", onMessage);
|
|
563
|
+
controller.signal.addEventListener("abort", onAbort, { once: true });
|
|
564
|
+
});
|
|
565
|
+
} catch (error) {
|
|
566
|
+
closing = true;
|
|
567
|
+
await worker.terminate();
|
|
568
|
+
throw error;
|
|
569
|
+
}
|
|
570
|
+
return {
|
|
571
|
+
signal: controller.signal,
|
|
572
|
+
async close() {
|
|
573
|
+
closing = true;
|
|
574
|
+
await worker.terminate();
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
}
|
|
491
578
|
var STARTUP_UPDATE_APPLIED_ENV = "CODEXLY_STARTUP_UPDATE_APPLIED";
|
|
492
579
|
function createStartupAppUpdateOperations(appVersion) {
|
|
493
580
|
const service = createAppUpdateService({
|
|
@@ -719,6 +806,7 @@ function listLanAccessUrls(port, interfaces = networkInterfaces()) {
|
|
|
719
806
|
// src/cli-command.ts
|
|
720
807
|
var startupAppUpdate = createStartupAppUpdateOperations(package_default.version);
|
|
721
808
|
var defaultDependencies = {
|
|
809
|
+
acquireRuntimeLock,
|
|
722
810
|
appVersion: package_default.version,
|
|
723
811
|
checkAppUpdate: startupAppUpdate.check,
|
|
724
812
|
checkCodexVersion,
|
|
@@ -772,35 +860,6 @@ function assertDatabaseDiagnostics(diagnostics) {
|
|
|
772
860
|
throw new Error("SQLite PRAGMA configuration is invalid");
|
|
773
861
|
}
|
|
774
862
|
}
|
|
775
|
-
function createProcessShutdownSignal() {
|
|
776
|
-
const controller = new AbortController();
|
|
777
|
-
const abort = () => {
|
|
778
|
-
controller.abort();
|
|
779
|
-
};
|
|
780
|
-
process.once("SIGINT", abort);
|
|
781
|
-
process.once("SIGTERM", abort);
|
|
782
|
-
return {
|
|
783
|
-
cleanup: () => {
|
|
784
|
-
process.off("SIGINT", abort);
|
|
785
|
-
process.off("SIGTERM", abort);
|
|
786
|
-
},
|
|
787
|
-
signal: controller.signal
|
|
788
|
-
};
|
|
789
|
-
}
|
|
790
|
-
async function waitForAbort(signal) {
|
|
791
|
-
if (signal.aborted) {
|
|
792
|
-
return;
|
|
793
|
-
}
|
|
794
|
-
await new Promise((resolve2) => {
|
|
795
|
-
signal.addEventListener(
|
|
796
|
-
"abort",
|
|
797
|
-
() => {
|
|
798
|
-
resolve2();
|
|
799
|
-
},
|
|
800
|
-
{ once: true }
|
|
801
|
-
);
|
|
802
|
-
});
|
|
803
|
-
}
|
|
804
863
|
async function runDoctor(args, dependencies, output) {
|
|
805
864
|
const options = parseCommandOptions(args, /* @__PURE__ */ new Set(["--codex-bin", "--codex-home"]));
|
|
806
865
|
assertSupportedNodeVersion(dependencies.nodeVersion);
|
|
@@ -886,8 +945,10 @@ async function runStart(args, dependencies, signal, output) {
|
|
|
886
945
|
let runtime;
|
|
887
946
|
let server;
|
|
888
947
|
let stateRepository;
|
|
948
|
+
let instanceLock;
|
|
889
949
|
try {
|
|
890
950
|
const codexHome = resolveCodexHome(options);
|
|
951
|
+
instanceLock = await dependencies.acquireRuntimeLock(codexHome);
|
|
891
952
|
const env = {
|
|
892
953
|
...process.env,
|
|
893
954
|
...options.codexHome ? { CODEX_HOME: options.codexHome } : {}
|
|
@@ -914,9 +975,12 @@ async function runStart(args, dependencies, signal, output) {
|
|
|
914
975
|
if (!projectSourceMigration.completed) {
|
|
915
976
|
await stateRepository.completeProjectSourceMigration();
|
|
916
977
|
}
|
|
978
|
+
const titleSettingsRepository = stateRepository;
|
|
917
979
|
const provider = await dependencies.createRuntimeProvider({
|
|
918
980
|
codexHome,
|
|
919
|
-
client: runtime.client
|
|
981
|
+
client: runtime.client,
|
|
982
|
+
// 标题与提交信息共用应用模型设置,按需读取最新值,不阻塞首次发送。
|
|
983
|
+
readTaskTitleModel: async () => (await titleSettingsRepository.readGlobalSettings())?.commitMessageModel ?? DEFAULT_COMMIT_MESSAGE_MODEL
|
|
920
984
|
});
|
|
921
985
|
const petProvider = dependencies.createPetProvider({ codexHome });
|
|
922
986
|
const appUpdateService = createAppUpdateService({
|
|
@@ -936,6 +1000,9 @@ async function runStart(args, dependencies, signal, output) {
|
|
|
936
1000
|
queueRepository: stateRepository,
|
|
937
1001
|
scheduledTaskAttachmentRepository: stateRepository,
|
|
938
1002
|
scheduledTaskRepository: stateRepository,
|
|
1003
|
+
submissionRepository: stateRepository,
|
|
1004
|
+
asyncQuestionRepository: stateRepository,
|
|
1005
|
+
projectTodoRepository: stateRepository,
|
|
939
1006
|
settingsRepository: stateRepository,
|
|
940
1007
|
staticRoot: dependencies.webRoot,
|
|
941
1008
|
// Standalone Thread 继承 app-server 的 cwd,不再创建伪项目目录。
|
|
@@ -978,7 +1045,10 @@ ${urls.map((url) => ` ${url}`).join("\n")}`);
|
|
|
978
1045
|
}
|
|
979
1046
|
const outcome = await Promise.race([
|
|
980
1047
|
runtime.waitForExit().then((exit) => ({ exit, type: "process-exit" })),
|
|
981
|
-
waitForAbort(shutdownSignal).then(() =>
|
|
1048
|
+
waitForAbort(AbortSignal.any([shutdownSignal, instanceLock.signal])).then(() => {
|
|
1049
|
+
instanceLock?.signal.throwIfAborted();
|
|
1050
|
+
return { type: "shutdown" };
|
|
1051
|
+
})
|
|
982
1052
|
]);
|
|
983
1053
|
if (outcome.type === "process-exit") {
|
|
984
1054
|
const reason = outcome.exit.signal ? `\u4FE1\u53F7 ${outcome.exit.signal}` : `\u9000\u51FA\u7801 ${String(outcome.exit.code)}`;
|
|
@@ -995,7 +1065,11 @@ ${urls.map((url) => ` ${url}`).join("\n")}`);
|
|
|
995
1065
|
try {
|
|
996
1066
|
await runtime?.close();
|
|
997
1067
|
} finally {
|
|
998
|
-
|
|
1068
|
+
try {
|
|
1069
|
+
await instanceLock?.close();
|
|
1070
|
+
} finally {
|
|
1071
|
+
ownedShutdown?.cleanup();
|
|
1072
|
+
}
|
|
999
1073
|
}
|
|
1000
1074
|
}
|
|
1001
1075
|
}
|
package/dist/client/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
|
-
import { value_exports } from '../chunk-
|
|
3
|
-
import { EventStreamMessageSchema, TEMPORARY_TASK_SCOPE_ID, TEMPORARY_TASK_API_PATH, BingWallpaperCatalogSchema, GlobalInstructionsSchema, MemorySettingsSchema, PersonalizationResetSchema, AgentPreferencesSchema, ScheduledTaskPreviewSchema, ScheduledTaskPageSchema, ScheduledTaskMutationResponseSchema, DeleteScheduledTaskResponseSchema,
|
|
2
|
+
import { value_exports } from '../chunk-ZUECHB6L.js';
|
|
3
|
+
import { EventStreamMessageSchema, TEMPORARY_TASK_SCOPE_ID, TEMPORARY_TASK_API_PATH, AsyncQuestionPageSchema, AnswerAsyncQuestionResponseSchema, ProjectTodoResponseSchema, ProjectTodoPageSchema, DeleteProjectTodoResponseSchema, BingWallpaperCatalogSchema, GlobalInstructionsSchema, MemorySettingsSchema, PersonalizationResetSchema, AgentPreferencesSchema, ScheduledTaskPreviewSchema, ScheduledTaskPageSchema, ScheduledTaskMutationResponseSchema, DeleteScheduledTaskResponseSchema, SubmitTaskResponseSchema, AgentQueuedSubmissionListSchema, 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, NavigableAgentTaskResponseSchema, UpdateTaskSettingsAndDefaultsResponseSchema, CompletedTasksPageSchema, AgentTaskCatalogSchema, UpdateAgentGoalResponseSchema, ClearAgentGoalResponseSchema, ScheduledTaskChangeSchema, DeleteArchivedTasksResponseSchema, ArchiveAgentTaskResponseSchema, UnarchiveAgentTaskResponseSchema, DeleteAgentTaskResponseSchema, AgentSkillPageSchema, AgentMcpServerPageSchema, ReloadAgentMcpServersResponseSchema, ProjectPageSchema, ProjectDirectoryListingSchema, HostFileListingSchema, ReorderProjectsResponseSchema, AgentProjectDefaultsResponseSchema, AddProjectResponseSchema, RenameProjectResponseSchema, RemoveProjectResponseSchema, ProjectOpenCapabilitiesResponseSchema, OpenProjectResponseSchema, ProjectGitStatusSchema, ProjectGitHistoryPageSchema, ProjectGitCommitFilesPageSchema, ProjectGitCommitFileDiffSchema, ProjectGitWorktreePageSchema, CreateProjectWorktreeResponseSchema, ProjectWorktreeMutationResponseSchema, GenerateCommitMessageResponseSchema, CommitProjectChangesResponseSchema, ProjectFileTreeSchema, RenameProjectFileResponseSchema, DeleteProjectFileResponseSchema, ProjectFileSearchPageSchema, StopProjectFileSearchResponseSchema, ProjectSourceFileSchema, OfficialPluginPageSchema, OfficialPluginDetailSchema, OfficialPluginInstallResponseSchema, OfficialPluginUninstallResponseSchema, InstalledSkillPageSchema, ClawhubSkillPageSchema, ClawhubSkillDetailSchema, SkillInstallResponseSchema, OpenSkillDirectoryResponseSchema, SetSkillEnabledResponseSchema, ConfiguredMcpServerPageSchema, SetMcpServerEnabledResponseSchema, HealthResponseSchema, AppInfoResponseSchema, AppUpdateProgressResponseSchema, InstallAppUpdateResponseSchema, AccessStatusResponseSchema, AgentCapabilitiesSchema, AgentModelPageSchema, AgentProviderConnectionStatusSchema, StartOfficialProviderLoginResponseSchema, AgentProviderConnectionMutationResponseSchema, ConfigureCustomProviderResponseSchema, AgentGlobalSettingsResponseSchema, WorkbenchPetCatalogResponseSchema, WorkbenchPetDownloadResponseSchema } from '../chunk-X5JZ3VOF.js';
|
|
4
|
+
import '../chunk-GT7XTSEG.js';
|
|
4
5
|
import '../chunk-K6J42667.js';
|
|
5
6
|
|
|
6
7
|
createRequire(import.meta.url);
|
|
@@ -532,7 +533,7 @@ var SkillMarketHttpClient = class extends CodexlyTransport {
|
|
|
532
533
|
return this.mutation(
|
|
533
534
|
`/v1/plugins/official/${encodeURIComponent(marketplaceName)}/${encodeURIComponent(pluginName)}/install`,
|
|
534
535
|
{ installAttemptId, marketplacePath },
|
|
535
|
-
|
|
536
|
+
OfficialPluginInstallResponseSchema,
|
|
536
537
|
options
|
|
537
538
|
);
|
|
538
539
|
}
|
|
@@ -540,7 +541,7 @@ var SkillMarketHttpClient = class extends CodexlyTransport {
|
|
|
540
541
|
return this.mutation(
|
|
541
542
|
`/v1/plugins/official/${encodeURIComponent(marketplaceName)}/${encodeURIComponent(pluginName)}/uninstall`,
|
|
542
543
|
{ pluginId },
|
|
543
|
-
|
|
544
|
+
OfficialPluginUninstallResponseSchema,
|
|
544
545
|
options
|
|
545
546
|
);
|
|
546
547
|
}
|
|
@@ -571,7 +572,7 @@ var SkillMarketHttpClient = class extends CodexlyTransport {
|
|
|
571
572
|
return this.mutation(
|
|
572
573
|
`/v1/skills/market/${encodeURIComponent(owner)}/${encodeURIComponent(slug)}/install`,
|
|
573
574
|
{ projectId, rootPath, scope },
|
|
574
|
-
|
|
575
|
+
SkillInstallResponseSchema,
|
|
575
576
|
options
|
|
576
577
|
);
|
|
577
578
|
}
|
|
@@ -783,7 +784,7 @@ var ProjectHttpClient = class extends SkillMarketHttpClient {
|
|
|
783
784
|
return this.mutation(
|
|
784
785
|
appendQuery(`${projectPath(projectId)}/git/worktrees`, { rootPath }),
|
|
785
786
|
request,
|
|
786
|
-
|
|
787
|
+
CreateProjectWorktreeResponseSchema,
|
|
787
788
|
options
|
|
788
789
|
);
|
|
789
790
|
}
|
|
@@ -862,6 +863,15 @@ var ProjectHttpClient = class extends SkillMarketHttpClient {
|
|
|
862
863
|
|
|
863
864
|
// packages/client/src/http-client-task-archive.ts
|
|
864
865
|
var TaskArchiveHttpClient = class extends ProjectHttpClient {
|
|
866
|
+
deleteArchivedTasks(projectId, options = {}) {
|
|
867
|
+
return this.mutation(
|
|
868
|
+
`${projectPath(projectId)}/tasks/archived`,
|
|
869
|
+
{},
|
|
870
|
+
DeleteArchivedTasksResponseSchema,
|
|
871
|
+
options,
|
|
872
|
+
"DELETE"
|
|
873
|
+
);
|
|
874
|
+
}
|
|
865
875
|
async archiveTask(projectId, taskId, options = {}) {
|
|
866
876
|
return this.mutation(
|
|
867
877
|
`${taskPath(projectId, taskId)}/archive`,
|
|
@@ -911,12 +921,60 @@ var TaskGoalHttpClient = class extends TaskArchiveHttpClient {
|
|
|
911
921
|
}
|
|
912
922
|
};
|
|
913
923
|
|
|
924
|
+
// packages/client/src/http-client-task-catalog.ts
|
|
925
|
+
var TaskCatalogHttpClient = class extends TaskGoalHttpClient {
|
|
926
|
+
readNavigableTask(projectId, taskId, options = {}) {
|
|
927
|
+
return this.read(
|
|
928
|
+
`${taskPath(projectId, taskId)}/navigation`,
|
|
929
|
+
NavigableAgentTaskResponseSchema,
|
|
930
|
+
options
|
|
931
|
+
);
|
|
932
|
+
}
|
|
933
|
+
updateTaskSettingsAndDefaults(projectId, taskId, input, options = {}) {
|
|
934
|
+
return this.mutation(
|
|
935
|
+
`${taskPath(projectId, taskId)}/settings-and-defaults`,
|
|
936
|
+
input,
|
|
937
|
+
UpdateTaskSettingsAndDefaultsResponseSchema,
|
|
938
|
+
options,
|
|
939
|
+
"PUT"
|
|
940
|
+
);
|
|
941
|
+
}
|
|
942
|
+
queryCompletedTasks(input, options = {}) {
|
|
943
|
+
return this.request(
|
|
944
|
+
"/v1/tasks/completed/query",
|
|
945
|
+
CompletedTasksPageSchema,
|
|
946
|
+
{
|
|
947
|
+
method: "POST",
|
|
948
|
+
headers: { "content-type": "application/json" },
|
|
949
|
+
body: JSON.stringify(input)
|
|
950
|
+
},
|
|
951
|
+
void 0,
|
|
952
|
+
{ ...options, timeoutMs: this.requestTimeouts.queryMs }
|
|
953
|
+
);
|
|
954
|
+
}
|
|
955
|
+
listTaskCatalog(projectId, input = {}, options = {}) {
|
|
956
|
+
return this.read(
|
|
957
|
+
appendQuery(`${projectPath(projectId)}/tasks/catalog`, input),
|
|
958
|
+
AgentTaskCatalogSchema,
|
|
959
|
+
options
|
|
960
|
+
);
|
|
961
|
+
}
|
|
962
|
+
};
|
|
963
|
+
|
|
914
964
|
// packages/client/src/http-client-tasks.ts
|
|
915
|
-
var TaskHttpClient = class extends
|
|
916
|
-
|
|
965
|
+
var TaskHttpClient = class extends TaskCatalogHttpClient {
|
|
966
|
+
submitTask(projectId, input, options = {}) {
|
|
967
|
+
return this.mutation(
|
|
968
|
+
`${projectPath(projectId)}/submissions`,
|
|
969
|
+
input,
|
|
970
|
+
SubmitTaskResponseSchema,
|
|
971
|
+
options
|
|
972
|
+
);
|
|
973
|
+
}
|
|
974
|
+
async listQueuedSubmissions(projectId, taskId, options = {}) {
|
|
917
975
|
return this.read(
|
|
918
|
-
|
|
919
|
-
|
|
976
|
+
`${taskPath(projectId, taskId)}/queue`,
|
|
977
|
+
AgentQueuedSubmissionListSchema,
|
|
920
978
|
options
|
|
921
979
|
);
|
|
922
980
|
}
|
|
@@ -1334,8 +1392,74 @@ var PersonalizationHttpClient = class extends ScheduledTaskHttpClient {
|
|
|
1334
1392
|
}
|
|
1335
1393
|
};
|
|
1336
1394
|
|
|
1395
|
+
// packages/client/src/http-client-project-todos.ts
|
|
1396
|
+
var ProjectTodoHttpClient = class extends PersonalizationHttpClient {
|
|
1397
|
+
// 浏览器历史记录属于不可信输入,由后端统一按当前协议校验。
|
|
1398
|
+
importProjectTodo(projectId, todoId, draft, options = {}) {
|
|
1399
|
+
return this.mutation(
|
|
1400
|
+
`${projectPath(projectId)}/todos/${encodeURIComponent(todoId)}/import`,
|
|
1401
|
+
draft,
|
|
1402
|
+
ProjectTodoResponseSchema,
|
|
1403
|
+
options
|
|
1404
|
+
);
|
|
1405
|
+
}
|
|
1406
|
+
listProjectTodos(projectId, options = {}) {
|
|
1407
|
+
return this.read(`${projectPath(projectId)}/todos`, ProjectTodoPageSchema, options);
|
|
1408
|
+
}
|
|
1409
|
+
createProjectTodo(projectId, draft, options = {}) {
|
|
1410
|
+
return this.mutation(
|
|
1411
|
+
`${projectPath(projectId)}/todos`,
|
|
1412
|
+
draft,
|
|
1413
|
+
ProjectTodoResponseSchema,
|
|
1414
|
+
options
|
|
1415
|
+
);
|
|
1416
|
+
}
|
|
1417
|
+
saveProjectTodo(projectId, todoId, input, options = {}) {
|
|
1418
|
+
return this.mutation(
|
|
1419
|
+
`${projectPath(projectId)}/todos/${encodeURIComponent(todoId)}`,
|
|
1420
|
+
input,
|
|
1421
|
+
ProjectTodoResponseSchema,
|
|
1422
|
+
options,
|
|
1423
|
+
"PUT"
|
|
1424
|
+
);
|
|
1425
|
+
}
|
|
1426
|
+
deleteProjectTodo(projectId, todoId, expectedVersion, options = {}) {
|
|
1427
|
+
return this.mutation(
|
|
1428
|
+
`${projectPath(projectId)}/todos/${encodeURIComponent(todoId)}`,
|
|
1429
|
+
{ expectedVersion },
|
|
1430
|
+
DeleteProjectTodoResponseSchema,
|
|
1431
|
+
options,
|
|
1432
|
+
"DELETE"
|
|
1433
|
+
);
|
|
1434
|
+
}
|
|
1435
|
+
};
|
|
1436
|
+
|
|
1437
|
+
// packages/client/src/http-client-async-questions.ts
|
|
1438
|
+
var questionPath = (projectId, taskId) => `${projectPath(projectId)}/tasks/${encodeURIComponent(taskId)}/async-questions`;
|
|
1439
|
+
var AsyncQuestionHttpClient = class extends ProjectTodoHttpClient {
|
|
1440
|
+
listAsyncQuestions(projectId, taskId, options = {}) {
|
|
1441
|
+
return this.read(questionPath(projectId, taskId), AsyncQuestionPageSchema, options);
|
|
1442
|
+
}
|
|
1443
|
+
answerAsyncQuestion(projectId, taskId, id, answers, options = {}) {
|
|
1444
|
+
return this.mutation(
|
|
1445
|
+
`${questionPath(projectId, taskId)}/${encodeURIComponent(id)}/answer`,
|
|
1446
|
+
{ answers },
|
|
1447
|
+
AnswerAsyncQuestionResponseSchema,
|
|
1448
|
+
options
|
|
1449
|
+
);
|
|
1450
|
+
}
|
|
1451
|
+
dismissAsyncQuestions(projectId, taskId, ids, options = {}) {
|
|
1452
|
+
return this.mutation(
|
|
1453
|
+
`${questionPath(projectId, taskId)}/dismiss`,
|
|
1454
|
+
{ ids },
|
|
1455
|
+
AsyncQuestionPageSchema,
|
|
1456
|
+
options
|
|
1457
|
+
);
|
|
1458
|
+
}
|
|
1459
|
+
};
|
|
1460
|
+
|
|
1337
1461
|
// packages/client/src/http-client.ts
|
|
1338
|
-
var CodexlyClient = class extends
|
|
1462
|
+
var CodexlyClient = class extends AsyncQuestionHttpClient {
|
|
1339
1463
|
};
|
|
1340
1464
|
|
|
1341
1465
|
export { CodexlyClient, CodexlyEventError, CodexlyHttpError, CodexlyMutationError, CodexlyResponseError, buildProjectAttachmentUrl, buildProjectImageFileUrl, buildTaskAttachmentUrl, buildWorkbenchPetAssetUrl, startAgentEventSubscription };
|
package/dist/core/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
|
-
export { PendingRequestResolutionError, WorkbenchPetProviderError } from '../chunk-
|
|
2
|
+
export { CompletedTasksQueryError, PendingRequestResolutionError, ProjectTodoError, TaskSubmissionError, WorkbenchPetProviderError, collectQuestionGroups, deleteArchivedTasks, formatQuestionAnswers, listTaskCatalog, queryCompletedTasks, saveProjectTodo, submitTask } from '../chunk-B2673ODM.js';
|
|
3
3
|
import '../chunk-K6J42667.js';
|
|
4
4
|
|
|
5
5
|
createRequire(import.meta.url);
|
package/dist/protocol/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
|
-
export { AGENT_FILE_ACCEPT, 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, AgentPreferencesSchema, 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, BingWallpaperCatalogSchema, BingWallpaperSchema, 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, GlobalInstructionsSchema, GoalClearedEventSchema, GoalUpdatedEventSchema, HealthResponseSchema, HostFileEntrySchema, HostFileKindSchema, HostFileListingSchema, HostFileQuerySchema, ImportHostAttachmentRequestSchema, InstallAppUpdateRequestSchema, InstallAppUpdateResponseSchema, InstalledSkillPageSchema, InstalledSkillSchema, 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, MemorySettingsSchema, MemorySettingsUpdateSchema, MessageDeltaEventSchema, OfficialPluginAppSchema, OfficialPluginAssetSchema, OfficialPluginAuthPolicySchema, OfficialPluginDetailSchema, OfficialPluginInstallResultSchema, OfficialPluginPageSchema, OfficialPluginSummarySchema, OfficialPluginUninstallResultSchema, OpenAgentTaskAttachmentRequestSchema, OpenAgentTaskAttachmentResponseSchema, OpenProjectRequestSchema, OpenProjectResponseSchema, OpenSkillDirectoryResponseSchema, PairAccessRequestSchema, PairAccessResponseSchema, PendingApprovalDecisionSchema, PendingPermissionCategorySchema, PendingRequestCreatedEventSchema, PendingRequestExpiredEventSchema, PendingRequestResolvedEventSchema, PendingRequestSchema, PendingRequestStatusSchema, PendingUserInputOptionSchema, PendingUserInputQuestionSchema, PermissionApprovalPendingRequestSchema, PersonalizationResetSchema, 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, SaveGlobalInstructionsSchema, ScheduledTaskChangeSchema, ScheduledTaskInputSchema, ScheduledTaskMutationResponseSchema, ScheduledTaskPageSchema, ScheduledTaskPreviewRequestSchema, ScheduledTaskPreviewSchema, ScheduledTaskRunSchema, ScheduledTaskRunStatusSchema, ScheduledTaskScheduleSchema, ScheduledTaskSchema, SetMcpServerEnabledResponseSchema, SetScheduledTaskEnabledRequestSchema, SetSkillEnabledResponseSchema, SkillInstallResultSchema, SkillInstallScopeSchema, 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, wallTimeToUnix, zonedDateTime } from '../chunk-M6GWGUSX.js';
|
|
2
|
+
export { AGENT_FILE_ACCEPT, AGENT_IMAGE_ACCEPT, AccessModeSchema, AccessStatusResponseSchema, AddAgentQueuedSubmissionRequestSchema, AddAgentQueuedSubmissionResponseSchema, AddProjectRequestSchema, AddProjectResponseSchema, AgentActivityItemSchema, AgentApprovalReviewActionSchema, AgentApprovalReviewItemSchema, AgentApprovalReviewStatusSchema, AgentApprovalsReviewerSchema, AgentAttachmentKindSchema, AgentAttachmentMediaTypeSchema, AgentAttachmentSchema, AgentAttachmentUploadResponseSchema, AgentBackgroundTerminalPageSchema, AgentBackgroundTerminalSchema, AgentCapabilitiesSchema, AgentCollaborationModeSchema, 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, AgentPreferencesSchema, AgentProjectDefaultsResponseSchema, AgentProjectDefaultsSchema, AgentPromptInputSchema, AgentProviderAccountSchema, AgentProviderConnectionMutationResponseSchema, AgentProviderConnectionRecordSchema, AgentProviderConnectionStateSchema, AgentProviderConnectionStatusSchema, AgentProviderModeSchema, AgentProviderPendingLoginSchema, AgentQueuedSubmissionListSchema, AgentQueuedSubmissionPageSchema, AgentQueuedSubmissionSchema, AgentQueuedSubmissionStatusSchema, AgentReasoningEffortOptionSchema, AgentReasoningItemSchema, AgentReviewItemSchema, AgentReviewTargetSchema, AgentSandboxModeSchema, AgentSkillPageSchema, AgentSkillReferenceSchema, AgentSkillSchema, AgentSkillScopeSchema, AgentTaskCatalogSchema, AgentTaskPageSchema, AgentTaskSchema, AgentTaskSettingsResponseSchema, AgentTaskSettingsSchema, AgentTaskSnapshotResponseSchema, AgentTaskSnapshotSchema, AgentToolItemSchema, AgentTurnApprovalPolicySchema, AgentTurnOptionsSchema, AgentTurnSchema, AgentTurnStatusSchema, AnswerAsyncQuestionRequestSchema, AnswerAsyncQuestionResponseSchema, AnswerAsyncQuestionResultSchema, AppInfoResponseSchema, AppUpdateProgressPhaseSchema, AppUpdateProgressResponseSchema, AppUpdateProgressSchema, AppUpdateStatusSchema, ArchiveAgentTaskRequestSchema, ArchiveAgentTaskResponseSchema, AsyncQuestionGroupSchema, AsyncQuestionPageSchema, AsyncQuestionSchema, BingWallpaperCatalogSchema, BingWallpaperSchema, CancelProviderLoginRequestSchema, ClawhubSkillDetailSchema, ClawhubSkillPageSchema, ClawhubSkillSummarySchema, ClawhubSkillVersionSchema, ClearAgentGoalResponseSchema, CommandApprovalPendingRequestSchema, CommandOutputDeltaEventSchema, CommitProjectChangesRequestSchema, CommitProjectChangesResponseSchema, CompactAgentTaskRequestSchema, CompactAgentTaskResponseSchema, CompletedTasksPageSchema, CompletedTasksQuerySchema, ConfigureCustomProviderRequestSchema, ConfigureCustomProviderResponseSchema, ConfiguredMcpServerPageSchema, ConfiguredMcpServerSchema, ConnectionReadySchema, CreateProjectBranchRequestSchema, CreateProjectWorktreeRequestSchema, CreateProjectWorktreeResponseSchema, DEFAULT_AGENT_GRANULAR_APPROVAL_POLICY, DEFAULT_COMMIT_MESSAGE_MODEL, DeleteAgentQueuedSubmissionResponseSchema, DeleteAgentTaskRequestSchema, DeleteAgentTaskResponseSchema, DeleteArchivedTasksRequestSchema, DeleteArchivedTasksResponseSchema, DeleteProjectFileRequestSchema, DeleteProjectFileResponseSchema, DeleteProjectTodoRequestSchema, DeleteProjectTodoResponseSchema, DeleteScheduledTaskResponseSchema, DismissAsyncQuestionsRequestSchema, EventBatchSchema, EventCheckpointSchema, EventStreamMessageSchema, EventStreamMetricsResponseSchema, EventStreamProjectMetricsSchema, FileChangeApprovalPendingRequestSchema, FileChangeUpdatedEventSchema, FilesystemRootSchema, ForkAgentTaskRequestSchema, ForkAgentTaskResponseSchema, GenerateCommitMessageRequestSchema, GenerateCommitMessageResponseSchema, GlobalInstructionsSchema, GoalClearedEventSchema, GoalUpdatedEventSchema, HealthResponseSchema, HostFileEntrySchema, HostFileKindSchema, HostFileListingSchema, HostFileQuerySchema, ImportHostAttachmentRequestSchema, InstallAppUpdateRequestSchema, InstallAppUpdateResponseSchema, InstalledSkillPageSchema, InstalledSkillSchema, 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, MemorySettingsSchema, MemorySettingsUpdateSchema, MessageDeltaEventSchema, NavigableAgentTaskResponseSchema, OfficialPluginAppSchema, OfficialPluginAssetSchema, OfficialPluginAuthPolicySchema, OfficialPluginDetailSchema, OfficialPluginInstallResponseSchema, OfficialPluginInstallResultSchema, OfficialPluginPageSchema, OfficialPluginSummarySchema, OfficialPluginUninstallResponseSchema, OfficialPluginUninstallResultSchema, OpenAgentTaskAttachmentRequestSchema, OpenAgentTaskAttachmentResponseSchema, OpenProjectRequestSchema, OpenProjectResponseSchema, OpenSkillDirectoryResponseSchema, PairAccessRequestSchema, PairAccessResponseSchema, PendingApprovalDecisionSchema, PendingPermissionCategorySchema, PendingRequestCreatedEventSchema, PendingRequestExpiredEventSchema, PendingRequestResolvedEventSchema, PendingRequestSchema, PendingRequestStatusSchema, PendingUserInputOptionSchema, PendingUserInputQuestionSchema, PermissionApprovalPendingRequestSchema, PersonalizationResetSchema, 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, ProjectTodoDraftSchema, ProjectTodoPageSchema, ProjectTodoResponseSchema, ProjectTodoSchema, ProjectWorktreeMutationResponseSchema, PromptDocumentPartSchema, ProviderErrorEventSchema, QueueChangedEventSchema, ReasoningDeltaEventSchema, ReloadAgentMcpServersRequestSchema, ReloadAgentMcpServersResponseSchema, RemoveProjectRequestSchema, RemoveProjectResponseSchema, RenameAgentTaskRequestSchema, RenameAgentTaskResponseSchema, RenameProjectFileRequestSchema, RenameProjectFileResponseSchema, RenameProjectRequestSchema, RenameProjectResponseSchema, ReorderAgentQueuedSubmissionsRequestSchema, ReorderAgentQueuedSubmissionsResponseSchema, ReorderProjectsRequestSchema, ReorderProjectsResponseSchema, ResolvePendingRequestRequestSchema, ResolvePendingRequestResponseSchema, ResyncRequiredSchema, ReviewAgentTaskRequestSchema, ReviewAgentTaskResponseSchema, SaveGlobalInstructionsSchema, SaveProjectTodoRequestSchema, ScheduledTaskChangeSchema, ScheduledTaskInputSchema, ScheduledTaskMutationResponseSchema, ScheduledTaskPageSchema, ScheduledTaskPreviewRequestSchema, ScheduledTaskPreviewSchema, ScheduledTaskRunSchema, ScheduledTaskRunStatusSchema, ScheduledTaskScheduleSchema, ScheduledTaskSchema, SetMcpServerEnabledResponseSchema, SetMcpServerEnabledResultSchema, SetScheduledTaskEnabledRequestSchema, SetSkillEnabledResponseSchema, SetSkillEnabledResultSchema, SkillInstallResponseSchema, SkillInstallResultSchema, SkillInstallScopeSchema, SkillsChangedEventSchema, StartAgentQueuedSubmissionRequestSchema, StartAgentQueuedSubmissionResponseSchema, StartAgentTaskRequestSchema, StartAgentTaskResponseSchema, StartAgentTurnRequestSchema, StartAgentTurnResponseSchema, StartOfficialProviderLoginRequestSchema, StartOfficialProviderLoginResponseSchema, SteerAgentTurnRequestSchema, SteerAgentTurnResponseSchema, StopProjectFileSearchRequestSchema, StopProjectFileSearchResponseSchema, SubmitTaskRequestSchema, SubmitTaskResponseSchema, SwitchProjectBranchRequestSchema, SwitchProjectWorktreeRequestSchema, TEMPORARY_TASK_API_PATH, TEMPORARY_TASK_SCOPE_ID, TaskCatalogQuerySchema, TaskMetadataChangedEventSchema, TaskRemovedEventSchema, TaskStatusUpdatedEventSchema, TerminateAgentBackgroundTerminalResponseSchema, TurnCompletedEventSchema, TurnStartedEventSchema, UnarchiveAgentTaskRequestSchema, UnarchiveAgentTaskResponseSchema, UnsubscribeAgentTaskResponseSchema, UpdateAgentGoalRequestSchema, UpdateAgentGoalResponseSchema, UpdateAgentQueuedSubmissionRequestSchema, UpdateAgentQueuedSubmissionResponseSchema, UpdateTaskSettingsAndDefaultsRequestSchema, UpdateTaskSettingsAndDefaultsResponseSchema, UploadAgentFeedbackRequestSchema, UploadAgentFeedbackResponseSchema, UsageUpdatedEventSchema, UserInputPendingRequestSchema, WorkbenchPetAnimationFrameSchema, WorkbenchPetAnimationSchema, WorkbenchPetCatalogResponseSchema, WorkbenchPetDescriptorSchema, WorkbenchPetDownloadRequestSchema, WorkbenchPetDownloadResponseSchema, WorkbenchPetFrameSchema, WorkbenchPetSettingsSchema, isAgentFastModeAvailable, stripLeadingAgentSkillReferences } from '../chunk-X5JZ3VOF.js';
|
|
3
|
+
export { wallTimeToUnix, zonedDateTime } from '../chunk-GT7XTSEG.js';
|
|
3
4
|
import '../chunk-K6J42667.js';
|
|
4
5
|
|
|
5
6
|
createRequire(import.meta.url);
|
|
@@ -1,7 +1,8 @@
|
|
|
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, SUPPORTED_CODEX_VERSION_RANGE, checkCodexVersion, createCodexRuntimeProvider, createCodexWorkbenchPetProvider, locateCodexBinary, startCodexAppServer } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
2
|
+
export { CodexAppServerExitedError, CodexAppServerProcess, CodexAppServerShutdownError, CodexAppServerSpawnError, CodexProjectRepository, CodexProtocolMappingError, CodexProviderConnectionError, CodexProviderConnectionService, CodexRuntimeProvider, CodexWorkbenchPetProvider, JsonlRpcClient, RpcConnectionClosedError, RpcProtocolError, RpcResponseError, RpcTimeoutError, SUPPORTED_CODEX_VERSION, SUPPORTED_CODEX_VERSION_RANGE, checkCodexVersion, createCodexRuntimeProvider, createCodexWorkbenchPetProvider, locateCodexBinary, startCodexAppServer } from '../../chunk-AIACWU7L.js';
|
|
3
|
+
import '../../chunk-B2673ODM.js';
|
|
4
|
+
import '../../chunk-X5JZ3VOF.js';
|
|
5
|
+
import '../../chunk-GT7XTSEG.js';
|
|
5
6
|
import '../../chunk-K6J42667.js';
|
|
6
7
|
|
|
7
8
|
createRequire(import.meta.url);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
2
|
+
import { workerData, parentPort } from 'worker_threads';
|
|
3
|
+
import Database from 'better-sqlite3';
|
|
4
|
+
|
|
5
|
+
createRequire(import.meta.url);
|
|
6
|
+
var database;
|
|
7
|
+
try {
|
|
8
|
+
database = new Database(workerData.path, { timeout: 0 });
|
|
9
|
+
database.exec("BEGIN EXCLUSIVE");
|
|
10
|
+
parentPort.on("message", () => {
|
|
11
|
+
database.close();
|
|
12
|
+
parentPort.close();
|
|
13
|
+
});
|
|
14
|
+
parentPort.postMessage({ type: "ready" });
|
|
15
|
+
} catch (error) {
|
|
16
|
+
database?.close();
|
|
17
|
+
parentPort.postMessage({ type: "failed", busy: error?.code === "SQLITE_BUSY" });
|
|
18
|
+
parentPort.close();
|
|
19
|
+
}
|