@bryanhu/codexly 0.12.0 → 0.14.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 +23 -0
- package/README.md +7 -5
- package/README.zh-CN.md +7 -5
- package/dist/{chunk-RGRRUTMD.js → chunk-G4BIMVEW.js} +67 -1
- package/dist/{chunk-PBPNBQQH.js → chunk-OVQSIEIK.js} +1 -1
- package/dist/{chunk-LZVKMW5Y.js → chunk-TVRHN6RY.js} +165 -2
- package/dist/{chunk-7C6JMXNO.js → chunk-XXAU2AQY.js} +275 -82
- package/dist/cli.js +49 -9
- package/dist/client/index.js +36 -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/sqlite-state-worker.js +22 -5
- package/dist/web/.vite/manifest.json +184 -100
- package/dist/web/.vite/manifest.json.br +0 -0
- package/dist/web/.vite/manifest.json.gz +0 -0
- package/dist/web/assets/{button-group-C4BuwxSd.js → button-group-JQ4SKm_M.js} +1 -1
- package/dist/web/assets/button-group-JQ4SKm_M.js.br +0 -0
- package/dist/web/assets/button-group-JQ4SKm_M.js.gz +0 -0
- package/dist/web/assets/context-menu-BY4fW29a.js +1 -0
- package/dist/web/assets/context-menu-BY4fW29a.js.br +0 -0
- package/dist/web/assets/context-menu-BY4fW29a.js.gz +0 -0
- package/dist/web/assets/dist-Czw-hil0.js +1 -0
- package/dist/web/assets/dist-Czw-hil0.js.br +0 -0
- package/dist/web/assets/dist-Czw-hil0.js.gz +0 -0
- package/dist/web/assets/file-review-dialog-CQIeVer4.js +2 -0
- package/dist/web/assets/file-review-dialog-CQIeVer4.js.br +0 -0
- package/dist/web/assets/file-review-dialog-CQIeVer4.js.gz +0 -0
- package/dist/web/assets/git-history-panel-cnmuCR7N.js +2 -0
- package/dist/web/assets/git-history-panel-cnmuCR7N.js.br +0 -0
- package/dist/web/assets/git-history-panel-cnmuCR7N.js.gz +0 -0
- package/dist/web/assets/global-settings-dialog-BtJYh2_p.js +1 -0
- package/dist/web/assets/global-settings-dialog-BtJYh2_p.js.br +0 -0
- package/dist/web/assets/global-settings-dialog-BtJYh2_p.js.gz +0 -0
- package/dist/web/assets/index-BfZBHCrX.css +2 -0
- package/dist/web/assets/index-BfZBHCrX.css.br +0 -0
- package/dist/web/assets/index-BfZBHCrX.css.gz +0 -0
- package/dist/web/assets/index-CaTeB0Nm.js +4 -0
- package/dist/web/assets/index-CaTeB0Nm.js.br +0 -0
- package/dist/web/assets/index-CaTeB0Nm.js.gz +0 -0
- package/dist/web/assets/info-whxTXvIJ.js +1 -0
- package/dist/web/assets/info-whxTXvIJ.js.br +0 -0
- package/dist/web/assets/info-whxTXvIJ.js.gz +0 -0
- package/dist/web/assets/initial-deps-CQxWMuPh.js +1 -0
- package/dist/web/assets/initial-deps-CQxWMuPh.js.br +0 -0
- package/dist/web/assets/initial-deps-CQxWMuPh.js.gz +0 -0
- package/dist/web/assets/initial-deps-Ds-edw-P.js +1 -0
- package/dist/web/assets/initial-deps-Ds-edw-P.js.br +0 -0
- package/dist/web/assets/initial-deps-Ds-edw-P.js.gz +0 -0
- package/dist/web/assets/installed-skills-pane-mwXKrGXA.js +1 -0
- package/dist/web/assets/installed-skills-pane-mwXKrGXA.js.br +0 -0
- package/dist/web/assets/installed-skills-pane-mwXKrGXA.js.gz +0 -0
- package/dist/web/assets/{lazy-message-response-SxI8Oz6v.js → lazy-message-response-Biq2ok2E.js} +2 -2
- package/dist/web/assets/lazy-message-response-Biq2ok2E.js.br +0 -0
- package/dist/web/assets/lazy-message-response-Biq2ok2E.js.gz +0 -0
- package/dist/web/assets/mcp-management-pane-BdtuiZSq.js +1 -0
- package/dist/web/assets/mcp-management-pane-BdtuiZSq.js.br +0 -0
- package/dist/web/assets/mcp-management-pane-BdtuiZSq.js.gz +0 -0
- package/dist/web/assets/{message-response-CTSQq8Ae.js → message-response-CHtn6tyl.js} +1 -1
- package/dist/web/assets/message-response-CHtn6tyl.js.br +0 -0
- package/dist/web/assets/message-response-CHtn6tyl.js.gz +0 -0
- package/dist/web/assets/official-plugins-pane-BCxHJLaj.css +1 -0
- package/dist/web/assets/official-plugins-pane-BCxHJLaj.css.br +0 -0
- package/dist/web/assets/official-plugins-pane-BCxHJLaj.css.gz +0 -0
- package/dist/web/assets/official-plugins-pane-BfNSSHYd.js +1 -0
- package/dist/web/assets/official-plugins-pane-BfNSSHYd.js.br +0 -0
- package/dist/web/assets/official-plugins-pane-BfNSSHYd.js.gz +0 -0
- package/dist/web/assets/{project-file-popup-page-DX-AlvxF.js → project-file-popup-page-CfPvJlpw.js} +1 -1
- package/dist/web/assets/project-file-popup-page-CfPvJlpw.js.br +0 -0
- package/dist/web/assets/project-file-popup-page-CfPvJlpw.js.gz +0 -0
- package/dist/web/assets/{project-source-panel-i4xpffAa.js → project-source-panel-Cw_heTH4.js} +2 -2
- package/dist/web/assets/project-source-panel-Cw_heTH4.js.br +0 -0
- package/dist/web/assets/project-source-panel-Cw_heTH4.js.gz +0 -0
- package/dist/web/assets/{prompt-input-CL1AA6_U.js → prompt-input-C4sSOZy9.js} +1 -1
- package/dist/web/assets/prompt-input-C4sSOZy9.js.br +0 -0
- package/dist/web/assets/prompt-input-C4sSOZy9.js.gz +0 -0
- package/dist/web/assets/{prompt-input-controls-Qsp2rk3i.js → prompt-input-controls-CcVBHVXv.js} +1 -1
- package/dist/web/assets/prompt-input-controls-CcVBHVXv.js.br +0 -0
- package/dist/web/assets/prompt-input-controls-CcVBHVXv.js.gz +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-DwKbR28n.js +1 -0
- package/dist/web/assets/scheduled-task-date-time-picker-DwKbR28n.js.br +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-DwKbR28n.js.gz +0 -0
- package/dist/web/assets/{scheduled-task-floating-ui~scheduled-task-date-time-picker-BQ-Lfxrf.js → scheduled-task-floating-ui~scheduled-task-date-time-picker-BischM2-.js} +1 -1
- package/dist/web/assets/scheduled-task-floating-ui~scheduled-task-date-time-picker-BischM2-.js.br +0 -0
- package/dist/web/assets/scheduled-task-floating-ui~scheduled-task-date-time-picker-BischM2-.js.gz +0 -0
- package/dist/web/assets/scheduled-task-schedule-Cfuv_Kyf.js +1 -0
- package/dist/web/assets/scheduled-task-schedule-Cfuv_Kyf.js.br +0 -0
- package/dist/web/assets/scheduled-task-schedule-Cfuv_Kyf.js.gz +0 -0
- package/dist/web/assets/scheduled-tasks-container-CiYF44lc.js +2 -0
- package/dist/web/assets/scheduled-tasks-container-CiYF44lc.js.br +0 -0
- package/dist/web/assets/scheduled-tasks-container-CiYF44lc.js.gz +0 -0
- package/dist/web/assets/sheet-BNFRnQAh.js +1 -0
- package/dist/web/assets/sheet-BNFRnQAh.js.br +0 -0
- package/dist/web/assets/sheet-BNFRnQAh.js.gz +0 -0
- package/dist/web/assets/skills-market-container-C8okZy75.css +1 -0
- package/dist/web/assets/skills-market-container-C8okZy75.css.br +0 -0
- package/dist/web/assets/skills-market-container-C8okZy75.css.gz +0 -0
- package/dist/web/assets/skills-market-container-CfaZk3xM.js +2 -0
- package/dist/web/assets/skills-market-container-CfaZk3xM.js.br +0 -0
- package/dist/web/assets/skills-market-container-CfaZk3xM.js.gz +0 -0
- package/dist/web/assets/third-party-marketplace-pane-okgMXBqM.js +1 -0
- package/dist/web/assets/third-party-marketplace-pane-okgMXBqM.js.br +0 -0
- package/dist/web/assets/third-party-marketplace-pane-okgMXBqM.js.gz +0 -0
- package/dist/web/assets/workbench-composer-Bx73x_MF.js +10 -0
- package/dist/web/assets/workbench-composer-Bx73x_MF.js.br +0 -0
- package/dist/web/assets/workbench-composer-Bx73x_MF.js.gz +0 -0
- package/dist/web/assets/workbench-inspector-changes-DXkowHaf.js +2 -0
- package/dist/web/assets/workbench-inspector-changes-DXkowHaf.js.br +0 -0
- package/dist/web/assets/workbench-inspector-changes-DXkowHaf.js.gz +0 -0
- package/dist/web/assets/workbench-pet-canvas-BroOHYwq.js +1 -0
- package/dist/web/assets/workbench-pet-canvas-BroOHYwq.js.br +0 -0
- package/dist/web/assets/workbench-pet-canvas-BroOHYwq.js.gz +0 -0
- package/dist/web/assets/workbench-shell-DnnhILPt.js +8 -0
- package/dist/web/assets/workbench-shell-DnnhILPt.js.br +0 -0
- package/dist/web/assets/workbench-shell-DnnhILPt.js.gz +0 -0
- package/dist/web/index.html +5 -5
- package/dist/web/index.html.br +0 -0
- package/dist/web/index.html.gz +0 -0
- package/package.json +1 -1
- package/dist/web/assets/button-group-C4BuwxSd.js.br +0 -0
- package/dist/web/assets/button-group-C4BuwxSd.js.gz +0 -0
- package/dist/web/assets/context-menu-DBdIkdO8.js +0 -1
- package/dist/web/assets/context-menu-DBdIkdO8.js.br +0 -0
- package/dist/web/assets/context-menu-DBdIkdO8.js.gz +0 -0
- package/dist/web/assets/dist-B5i0uBCy.js +0 -1
- package/dist/web/assets/dist-B5i0uBCy.js.br +0 -0
- package/dist/web/assets/dist-B5i0uBCy.js.gz +0 -0
- package/dist/web/assets/file-review-dialog-CfW8qcnH.js +0 -2
- package/dist/web/assets/file-review-dialog-CfW8qcnH.js.br +0 -0
- package/dist/web/assets/file-review-dialog-CfW8qcnH.js.gz +0 -0
- package/dist/web/assets/git-history-panel-DDCwLZ_v.js +0 -2
- package/dist/web/assets/git-history-panel-DDCwLZ_v.js.br +0 -0
- package/dist/web/assets/git-history-panel-DDCwLZ_v.js.gz +0 -0
- package/dist/web/assets/global-settings-dialog-Cw-2IvEc.js +0 -1
- package/dist/web/assets/global-settings-dialog-Cw-2IvEc.js.br +0 -0
- package/dist/web/assets/global-settings-dialog-Cw-2IvEc.js.gz +0 -0
- package/dist/web/assets/index-DZEhkOZz.js +0 -4
- package/dist/web/assets/index-DZEhkOZz.js.br +0 -0
- package/dist/web/assets/index-DZEhkOZz.js.gz +0 -0
- package/dist/web/assets/index-mb9dY6_F.css +0 -2
- package/dist/web/assets/index-mb9dY6_F.css.br +0 -0
- package/dist/web/assets/index-mb9dY6_F.css.gz +0 -0
- package/dist/web/assets/initial-deps-Ccn2HMTB.js +0 -1
- package/dist/web/assets/initial-deps-Ccn2HMTB.js.br +0 -0
- package/dist/web/assets/initial-deps-Ccn2HMTB.js.gz +0 -0
- package/dist/web/assets/initial-deps-D1tR2tqv.js +0 -1
- package/dist/web/assets/initial-deps-D1tR2tqv.js.br +0 -0
- package/dist/web/assets/initial-deps-D1tR2tqv.js.gz +0 -0
- package/dist/web/assets/lazy-message-response-SxI8Oz6v.js.br +0 -0
- package/dist/web/assets/lazy-message-response-SxI8Oz6v.js.gz +0 -0
- package/dist/web/assets/message-response-CTSQq8Ae.js.br +0 -0
- package/dist/web/assets/message-response-CTSQq8Ae.js.gz +0 -0
- package/dist/web/assets/project-file-popup-page-DX-AlvxF.js.br +0 -0
- package/dist/web/assets/project-file-popup-page-DX-AlvxF.js.gz +0 -0
- package/dist/web/assets/project-source-panel-i4xpffAa.js.br +0 -0
- package/dist/web/assets/project-source-panel-i4xpffAa.js.gz +0 -0
- package/dist/web/assets/prompt-input-CL1AA6_U.js.br +0 -0
- package/dist/web/assets/prompt-input-CL1AA6_U.js.gz +0 -0
- package/dist/web/assets/prompt-input-controls-Qsp2rk3i.js.br +0 -0
- package/dist/web/assets/prompt-input-controls-Qsp2rk3i.js.gz +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-B2_XJQa7.js +0 -1
- package/dist/web/assets/scheduled-task-date-time-picker-B2_XJQa7.js.br +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-B2_XJQa7.js.gz +0 -0
- package/dist/web/assets/scheduled-task-floating-ui~scheduled-task-date-time-picker-BQ-Lfxrf.js.br +0 -0
- package/dist/web/assets/scheduled-task-floating-ui~scheduled-task-date-time-picker-BQ-Lfxrf.js.gz +0 -0
- package/dist/web/assets/scheduled-task-schedule-DVyf2brf.js +0 -1
- package/dist/web/assets/scheduled-task-schedule-DVyf2brf.js.br +0 -0
- package/dist/web/assets/scheduled-task-schedule-DVyf2brf.js.gz +0 -0
- package/dist/web/assets/scheduled-tasks-container-DWk8eU-x.js +0 -2
- package/dist/web/assets/scheduled-tasks-container-DWk8eU-x.js.br +0 -0
- package/dist/web/assets/scheduled-tasks-container-DWk8eU-x.js.gz +0 -0
- package/dist/web/assets/skills-market-container-C9djEXQt.css +0 -1
- package/dist/web/assets/skills-market-container-C9djEXQt.css.br +0 -0
- package/dist/web/assets/skills-market-container-C9djEXQt.css.gz +0 -0
- package/dist/web/assets/skills-market-container-DGLB9mLM.js +0 -1
- package/dist/web/assets/skills-market-container-DGLB9mLM.js.br +0 -0
- package/dist/web/assets/skills-market-container-DGLB9mLM.js.gz +0 -0
- package/dist/web/assets/workbench-composer-BD9Ki4HB.js +0 -10
- package/dist/web/assets/workbench-composer-BD9Ki4HB.js.br +0 -0
- package/dist/web/assets/workbench-composer-BD9Ki4HB.js.gz +0 -0
- package/dist/web/assets/workbench-inspector-changes-DAh6jOqk.js +0 -2
- package/dist/web/assets/workbench-inspector-changes-DAh6jOqk.js.br +0 -0
- package/dist/web/assets/workbench-inspector-changes-DAh6jOqk.js.gz +0 -0
- package/dist/web/assets/workbench-pet-canvas-BDehkHlv.js +0 -1
- package/dist/web/assets/workbench-pet-canvas-BDehkHlv.js.br +0 -0
- package/dist/web/assets/workbench-pet-canvas-BDehkHlv.js.gz +0 -0
- package/dist/web/assets/workbench-shell-3eEtoMzo.js +0 -8
- package/dist/web/assets/workbench-shell-3eEtoMzo.js.br +0 -0
- package/dist/web/assets/workbench-shell-3eEtoMzo.js.gz +0 -0
- /package/dist/web/assets/{scheduled-task-floating-ui~index~workbench-shell~skills-market-container~workbench-inspecto~y5cwo2qi-DAfditVv.js → scheduled-task-floating-ui~index~workbench-shell~workbench-inspector-changes~project-file-p~olri0nvu-DAfditVv.js} +0 -0
- /package/dist/web/assets/{scheduled-task-floating-ui~index~workbench-shell~skills-market-container~workbench-inspecto~y5cwo2qi-DAfditVv.js.br → scheduled-task-floating-ui~index~workbench-shell~workbench-inspector-changes~project-file-p~olri0nvu-DAfditVv.js.br} +0 -0
- /package/dist/web/assets/{scheduled-task-floating-ui~index~workbench-shell~skills-market-container~workbench-inspecto~y5cwo2qi-DAfditVv.js.gz → scheduled-task-floating-ui~index~workbench-shell~workbench-inspector-changes~project-file-p~olri0nvu-DAfditVv.js.gz} +0 -0
package/dist/cli.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-XXAU2AQY.js';
|
|
4
|
+
import './chunk-OVQSIEIK.js';
|
|
5
|
+
import { startCodexAppServer, locateCodexBinary, createCodexRuntimeProvider, createCodexWorkbenchPetProvider, CodexProjectRepository, checkCodexVersion } from './chunk-TVRHN6RY.js';
|
|
6
6
|
import './chunk-RNTA4MFS.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-G4BIMVEW.js';
|
|
8
8
|
import './chunk-K6J42667.js';
|
|
9
9
|
import { networkInterfaces, homedir, tmpdir } from 'os';
|
|
10
10
|
import { join, dirname, parse, win32, basename, resolve } from 'path';
|
|
@@ -19,7 +19,43 @@ createRequire(import.meta.url);
|
|
|
19
19
|
|
|
20
20
|
// package.json
|
|
21
21
|
var package_default = {
|
|
22
|
-
version: "0.
|
|
22
|
+
version: "0.14.0"};
|
|
23
|
+
|
|
24
|
+
// src/npm-registry.ts
|
|
25
|
+
var MIRROR_REGISTRY = "https://registry.npmmirror.com";
|
|
26
|
+
var OFFICIAL_REGISTRY = "https://registry.npmjs.org";
|
|
27
|
+
async function withRegistryFallback(request, signal) {
|
|
28
|
+
signal?.throwIfAborted();
|
|
29
|
+
try {
|
|
30
|
+
return await request(MIRROR_REGISTRY);
|
|
31
|
+
} catch {
|
|
32
|
+
signal?.throwIfAborted();
|
|
33
|
+
return request(OFFICIAL_REGISTRY);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function runNpmWithRegistryFallback(runNpm, args, options = {}) {
|
|
37
|
+
return withRegistryFallback(
|
|
38
|
+
(registry) => runNpm(
|
|
39
|
+
[
|
|
40
|
+
...args.slice(0, 1),
|
|
41
|
+
`--registry=${registry}`,
|
|
42
|
+
`--@openai:registry=${registry}`,
|
|
43
|
+
`--@bryanhu:registry=${registry}`,
|
|
44
|
+
// 沿用用户的持久 npm cache,缺失内容仍联网获取,不创建随更新删除的缓存。
|
|
45
|
+
"--prefer-offline",
|
|
46
|
+
"--prefer-online=false",
|
|
47
|
+
// 限制单源等待,避免 npm 默认重试退避延迟官方源兜底。
|
|
48
|
+
"--fetch-retries=0",
|
|
49
|
+
"--fetch-timeout=30000",
|
|
50
|
+
...args.slice(1)
|
|
51
|
+
],
|
|
52
|
+
options
|
|
53
|
+
),
|
|
54
|
+
options.signal
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// src/app-update.ts
|
|
23
59
|
var PACKAGE_NAME = "@bryanhu/codexly";
|
|
24
60
|
var INITIAL_APP_VERSION = "0.1.0";
|
|
25
61
|
var CHANGELOG_URL_PREFIX = "https://raw.githubusercontent.com/BryanHoo/Codexly/v";
|
|
@@ -115,8 +151,11 @@ function isNewerVersion(candidate, current) {
|
|
|
115
151
|
return comparePrerelease(candidateVersion.prerelease, currentVersion.prerelease) > 0;
|
|
116
152
|
}
|
|
117
153
|
async function fetchLatestPackageVersion() {
|
|
154
|
+
return withRegistryFallback(fetchPackageVersionFromRegistry);
|
|
155
|
+
}
|
|
156
|
+
async function fetchPackageVersionFromRegistry(registry) {
|
|
118
157
|
const response = await fetch(
|
|
119
|
-
|
|
158
|
+
`${registry}/-/package/${encodeURIComponent(PACKAGE_NAME)}/dist-tags`,
|
|
120
159
|
{
|
|
121
160
|
headers: { accept: "application/json" },
|
|
122
161
|
signal: AbortSignal.timeout(REGISTRY_TIMEOUT_MS)
|
|
@@ -192,6 +231,7 @@ async function packPackage(source, temporaryDirectory, runNpm, signal) {
|
|
|
192
231
|
}
|
|
193
232
|
async function installGlobalPackageSafely(version, options = {}) {
|
|
194
233
|
const runNpm = options.runNpm ?? runNpmCommand;
|
|
234
|
+
const runRemoteNpm = (args, runOptions) => runNpmWithRegistryFallback(runNpm, args, runOptions);
|
|
195
235
|
const temporaryDirectory = await mkdtemp(join(tmpdir(), "codexly-update-"));
|
|
196
236
|
const controller = new AbortController();
|
|
197
237
|
const abort = () => {
|
|
@@ -214,18 +254,18 @@ async function installGlobalPackageSafely(version, options = {}) {
|
|
|
214
254
|
const updateArchive = await packPackage(
|
|
215
255
|
`${PACKAGE_NAME}@${version}`,
|
|
216
256
|
temporaryDirectory,
|
|
217
|
-
|
|
257
|
+
runRemoteNpm,
|
|
218
258
|
controller.signal
|
|
219
259
|
);
|
|
220
260
|
if (controller.signal.aborted) throw controller.signal.reason;
|
|
221
261
|
options.onProgress?.({ percent: 80, phase: "installing" });
|
|
222
262
|
replacementStarted = true;
|
|
223
|
-
await
|
|
263
|
+
await runRemoteNpm(["install", "--global", updateArchive], { signal: controller.signal });
|
|
224
264
|
} catch (error) {
|
|
225
265
|
if (replacementStarted && backupArchive !== void 0) {
|
|
226
266
|
try {
|
|
227
267
|
options.onProgress?.({ percent: 90, phase: "rolling-back" });
|
|
228
|
-
await
|
|
268
|
+
await runRemoteNpm(["install", "--global", backupArchive]);
|
|
229
269
|
} catch (rollbackError) {
|
|
230
270
|
const updateMessage = error instanceof Error ? error.message : String(error);
|
|
231
271
|
const rollbackMessage = rollbackError instanceof Error ? rollbackError.message : String(rollbackError);
|
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, ScheduledTaskPageSchema, ScheduledTaskMutationResponseSchema, DeleteScheduledTaskResponseSchema, 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, InstalledSkillPageSchema, ClawhubSkillPageSchema, ClawhubSkillDetailSchema, SkillInstallResultSchema, OpenSkillDirectoryResponseSchema, SetSkillEnabledResponseSchema, ConfiguredMcpServerPageSchema, SetMcpServerEnabledResponseSchema, HealthResponseSchema, AppInfoResponseSchema, AppUpdateProgressResponseSchema, InstallAppUpdateResponseSchema, AccessStatusResponseSchema, AgentCapabilitiesSchema, AgentModelPageSchema, AgentProviderConnectionStatusSchema, StartOfficialProviderLoginResponseSchema, AgentProviderConnectionMutationResponseSchema, ConfigureCustomProviderResponseSchema, AgentGlobalSettingsResponseSchema, WorkbenchPetCatalogResponseSchema, WorkbenchPetDownloadResponseSchema } from '../chunk-
|
|
2
|
+
import { value_exports } from '../chunk-OVQSIEIK.js';
|
|
3
|
+
import { EventStreamMessageSchema, TEMPORARY_TASK_SCOPE_ID, TEMPORARY_TASK_API_PATH, ScheduledTaskPageSchema, ScheduledTaskMutationResponseSchema, DeleteScheduledTaskResponseSchema, 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, OfficialPluginPageSchema, OfficialPluginDetailSchema, OfficialPluginInstallResultSchema, OfficialPluginUninstallResultSchema, InstalledSkillPageSchema, ClawhubSkillPageSchema, ClawhubSkillDetailSchema, SkillInstallResultSchema, OpenSkillDirectoryResponseSchema, SetSkillEnabledResponseSchema, ConfiguredMcpServerPageSchema, SetMcpServerEnabledResponseSchema, HealthResponseSchema, AppInfoResponseSchema, AppUpdateProgressResponseSchema, InstallAppUpdateResponseSchema, AccessStatusResponseSchema, AgentCapabilitiesSchema, AgentModelPageSchema, AgentProviderConnectionStatusSchema, StartOfficialProviderLoginResponseSchema, AgentProviderConnectionMutationResponseSchema, ConfigureCustomProviderResponseSchema, AgentGlobalSettingsResponseSchema, WorkbenchPetCatalogResponseSchema, WorkbenchPetDownloadResponseSchema } from '../chunk-G4BIMVEW.js';
|
|
4
4
|
import '../chunk-K6J42667.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -510,6 +510,40 @@ var CodexlyTransport = class {
|
|
|
510
510
|
|
|
511
511
|
// packages/client/src/http-client-skill-market.ts
|
|
512
512
|
var SkillMarketHttpClient = class extends CodexlyTransport {
|
|
513
|
+
async listOfficialPlugins(forceRefetch, options = {}) {
|
|
514
|
+
return this.read(
|
|
515
|
+
appendQuery("/v1/plugins/official", { forceRefetch: forceRefetch ? "true" : void 0 }),
|
|
516
|
+
OfficialPluginPageSchema,
|
|
517
|
+
options
|
|
518
|
+
);
|
|
519
|
+
}
|
|
520
|
+
async getOfficialPlugin(marketplaceName, marketplacePath, pluginName, options = {}) {
|
|
521
|
+
return this.read(
|
|
522
|
+
appendQuery(
|
|
523
|
+
`/v1/plugins/official/${encodeURIComponent(marketplaceName)}/${encodeURIComponent(pluginName)}`,
|
|
524
|
+
{ marketplacePath: marketplacePath ?? void 0 }
|
|
525
|
+
),
|
|
526
|
+
OfficialPluginDetailSchema,
|
|
527
|
+
options,
|
|
528
|
+
AgentMutationErrorSchema
|
|
529
|
+
);
|
|
530
|
+
}
|
|
531
|
+
async installOfficialPlugin(marketplaceName, marketplacePath, pluginName, installAttemptId, options = {}) {
|
|
532
|
+
return this.mutation(
|
|
533
|
+
`/v1/plugins/official/${encodeURIComponent(marketplaceName)}/${encodeURIComponent(pluginName)}/install`,
|
|
534
|
+
{ installAttemptId, marketplacePath },
|
|
535
|
+
OfficialPluginInstallResultSchema,
|
|
536
|
+
options
|
|
537
|
+
);
|
|
538
|
+
}
|
|
539
|
+
async uninstallOfficialPlugin(marketplaceName, pluginName, pluginId, options = {}) {
|
|
540
|
+
return this.mutation(
|
|
541
|
+
`/v1/plugins/official/${encodeURIComponent(marketplaceName)}/${encodeURIComponent(pluginName)}/uninstall`,
|
|
542
|
+
{ pluginId },
|
|
543
|
+
OfficialPluginUninstallResultSchema,
|
|
544
|
+
options
|
|
545
|
+
);
|
|
546
|
+
}
|
|
513
547
|
async listInstalledSkills(options = {}) {
|
|
514
548
|
return this.read("/v1/skills/installed", InstalledSkillPageSchema, options);
|
|
515
549
|
}
|
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, AgentMcpServerConnectionStatusSchema, AgentMcpServerFailureReasonSchema, AgentMcpServerPageSchema, AgentMcpServerSchema, AgentMcpServerStartupStatusSchema, AgentMessageAttachmentSchema, AgentMessageItemSchema, AgentMessagePhaseSchema, AgentMessageSkillSchema, AgentModelPageSchema, AgentModelSchema, AgentMutationErrorCodeSchema, AgentMutationErrorSchema, AgentPlanItemSchema, AgentPlanSchema, AgentPlanStepSchema, AgentPlanStepStatusSchema, AgentProjectDefaultsResponseSchema, AgentProjectDefaultsSchema, AgentPromptInputSchema, AgentProviderAccountSchema, AgentProviderConnectionMutationResponseSchema, AgentProviderConnectionRecordSchema, AgentProviderConnectionStateSchema, AgentProviderConnectionStatusSchema, AgentProviderModeSchema, AgentProviderPendingLoginSchema, AgentQueuedSubmissionPageSchema, AgentQueuedSubmissionSchema, AgentQueuedSubmissionStatusSchema, AgentReasoningEffortOptionSchema, AgentReasoningItemSchema, AgentReviewItemSchema, AgentReviewTargetSchema, AgentSandboxModeSchema, AgentSkillPageSchema, AgentSkillReferenceSchema, AgentSkillSchema, AgentSkillScopeSchema, AgentTaskPageSchema, AgentTaskSchema, AgentTaskSettingsResponseSchema, AgentTaskSettingsSchema, AgentTaskSnapshotResponseSchema, AgentTaskSnapshotSchema, AgentToolItemSchema, AgentTurnApprovalPolicySchema, AgentTurnOptionsSchema, AgentTurnSchema, AgentTurnStatusSchema, AppInfoResponseSchema, AppUpdateProgressPhaseSchema, AppUpdateProgressResponseSchema, AppUpdateProgressSchema, AppUpdateStatusSchema, ArchiveAgentTaskRequestSchema, ArchiveAgentTaskResponseSchema, CancelProviderLoginRequestSchema, ClawhubSkillDetailSchema, ClawhubSkillPageSchema, ClawhubSkillSummarySchema, ClawhubSkillVersionSchema, ClearAgentGoalResponseSchema, CommandApprovalPendingRequestSchema, CommandOutputDeltaEventSchema, CommitProjectChangesRequestSchema, CommitProjectChangesResponseSchema, CompactAgentTaskRequestSchema, CompactAgentTaskResponseSchema, ConfigureCustomProviderRequestSchema, ConfigureCustomProviderResponseSchema, ConfiguredMcpServerPageSchema, ConfiguredMcpServerSchema, ConnectionReadySchema, CreateProjectBranchRequestSchema, CreateProjectWorktreeRequestSchema, DEFAULT_AGENT_GRANULAR_APPROVAL_POLICY, DEFAULT_COMMIT_MESSAGE_MODEL, DeleteAgentQueuedSubmissionResponseSchema, DeleteAgentTaskRequestSchema, DeleteAgentTaskResponseSchema, DeleteProjectFileRequestSchema, DeleteProjectFileResponseSchema, DeleteScheduledTaskResponseSchema, EventBatchSchema, EventCheckpointSchema, EventStreamMessageSchema, EventStreamMetricsResponseSchema, EventStreamProjectMetricsSchema, FileChangeApprovalPendingRequestSchema, FileChangeUpdatedEventSchema, FilesystemRootSchema, ForkAgentTaskRequestSchema, ForkAgentTaskResponseSchema, GenerateCommitMessageRequestSchema, GenerateCommitMessageResponseSchema, GoalClearedEventSchema, GoalUpdatedEventSchema, 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, MessageDeltaEventSchema, OpenAgentTaskAttachmentRequestSchema, OpenAgentTaskAttachmentResponseSchema, OpenProjectRequestSchema, OpenProjectResponseSchema, OpenSkillDirectoryResponseSchema, PairAccessRequestSchema, PairAccessResponseSchema, PendingApprovalDecisionSchema, PendingPermissionCategorySchema, PendingRequestCreatedEventSchema, PendingRequestExpiredEventSchema, PendingRequestResolvedEventSchema, PendingRequestSchema, PendingRequestStatusSchema, PendingUserInputOptionSchema, PendingUserInputQuestionSchema, PermissionApprovalPendingRequestSchema, PinAgentTaskRequestSchema, PinAgentTaskResponseSchema, PlanUpdatedEventSchema, ProjectDirectoryEntrySchema, ProjectDirectoryListingSchema, ProjectDirectoryPathSchema, ProjectDirectoryQuerySchema, ProjectFileNameSchema, ProjectFileReferencePathSchema, ProjectFileSearchEntrySchema, ProjectFileSearchPageSchema, ProjectFileSearchQuerySchema, ProjectFileSearchSessionIdSchema, ProjectFileTreeEntrySchema, ProjectFileTreeQuerySchema, ProjectFileTreeSchema, ProjectGitCommitFileDiffQuerySchema, ProjectGitCommitFileDiffSchema, ProjectGitCommitFileSchema, ProjectGitCommitFilesPageSchema, ProjectGitCommitFilesQuerySchema, ProjectGitCommitSchema, ProjectGitHistoryPageSchema, ProjectGitHistoryQuerySchema, ProjectGitMetadataChangedEventSchema, ProjectGitStatusQuerySchema, ProjectGitStatusSchema, ProjectGitWorktreePageSchema, ProjectGitWorktreeSchema, ProjectOpenAppIdSchema, ProjectOpenAppKindSchema, ProjectOpenAppSchema, ProjectOpenCapabilitiesResponseSchema, ProjectOpenPlatformSchema, ProjectPageSchema, ProjectRelativePathSchema, ProjectRootIdSchema, ProjectRootInputSchema, ProjectRootInputsSchema, ProjectRootPathSchema, ProjectRootQuerySchema, ProjectRootSchema, ProjectRootsSchema, ProjectSchema, ProjectSourceFileQuerySchema, ProjectSourceFileSchema, ProjectWorktreeMutationResponseSchema, ProviderErrorEventSchema, QueueChangedEventSchema, ReasoningDeltaEventSchema, ReloadAgentMcpServersRequestSchema, ReloadAgentMcpServersResponseSchema, RemoveProjectRequestSchema, RemoveProjectResponseSchema, RenameAgentTaskRequestSchema, RenameAgentTaskResponseSchema, RenameProjectFileRequestSchema, RenameProjectFileResponseSchema, RenameProjectRequestSchema, RenameProjectResponseSchema, ReorderAgentQueuedSubmissionsRequestSchema, ReorderAgentQueuedSubmissionsResponseSchema, ReorderProjectsRequestSchema, ReorderProjectsResponseSchema, ResolvePendingRequestRequestSchema, ResolvePendingRequestResponseSchema, ResyncRequiredSchema, ReviewAgentTaskRequestSchema, ReviewAgentTaskResponseSchema, ScheduledTaskInputSchema, ScheduledTaskMutationResponseSchema, ScheduledTaskPageSchema, ScheduledTaskRunSchema, ScheduledTaskRunStatusSchema, ScheduledTaskScheduleSchema, ScheduledTaskSchema, SetMcpServerEnabledResponseSchema, SetScheduledTaskEnabledRequestSchema, SetSkillEnabledResponseSchema, SkillInstallResultSchema, SkillInstallScopeSchema, SkillsChangedEventSchema, StartAgentQueuedSubmissionRequestSchema, StartAgentQueuedSubmissionResponseSchema, StartAgentTaskRequestSchema, StartAgentTaskResponseSchema, StartAgentTurnRequestSchema, StartAgentTurnResponseSchema, StartOfficialProviderLoginRequestSchema, StartOfficialProviderLoginResponseSchema, SteerAgentTurnRequestSchema, SteerAgentTurnResponseSchema, StopProjectFileSearchRequestSchema, StopProjectFileSearchResponseSchema, 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, AgentMcpServerConnectionStatusSchema, AgentMcpServerFailureReasonSchema, AgentMcpServerPageSchema, AgentMcpServerSchema, AgentMcpServerStartupStatusSchema, AgentMessageAttachmentSchema, AgentMessageItemSchema, AgentMessagePhaseSchema, AgentMessageSkillSchema, AgentModelPageSchema, AgentModelSchema, AgentMutationErrorCodeSchema, AgentMutationErrorSchema, AgentPlanItemSchema, AgentPlanSchema, AgentPlanStepSchema, AgentPlanStepStatusSchema, AgentProjectDefaultsResponseSchema, AgentProjectDefaultsSchema, AgentPromptInputSchema, AgentProviderAccountSchema, AgentProviderConnectionMutationResponseSchema, AgentProviderConnectionRecordSchema, AgentProviderConnectionStateSchema, AgentProviderConnectionStatusSchema, AgentProviderModeSchema, AgentProviderPendingLoginSchema, AgentQueuedSubmissionPageSchema, AgentQueuedSubmissionSchema, AgentQueuedSubmissionStatusSchema, AgentReasoningEffortOptionSchema, AgentReasoningItemSchema, AgentReviewItemSchema, AgentReviewTargetSchema, AgentSandboxModeSchema, AgentSkillPageSchema, AgentSkillReferenceSchema, AgentSkillSchema, AgentSkillScopeSchema, AgentTaskPageSchema, AgentTaskSchema, AgentTaskSettingsResponseSchema, AgentTaskSettingsSchema, AgentTaskSnapshotResponseSchema, AgentTaskSnapshotSchema, AgentToolItemSchema, AgentTurnApprovalPolicySchema, AgentTurnOptionsSchema, AgentTurnSchema, AgentTurnStatusSchema, AppInfoResponseSchema, AppUpdateProgressPhaseSchema, AppUpdateProgressResponseSchema, AppUpdateProgressSchema, AppUpdateStatusSchema, ArchiveAgentTaskRequestSchema, ArchiveAgentTaskResponseSchema, CancelProviderLoginRequestSchema, ClawhubSkillDetailSchema, ClawhubSkillPageSchema, ClawhubSkillSummarySchema, ClawhubSkillVersionSchema, ClearAgentGoalResponseSchema, CommandApprovalPendingRequestSchema, CommandOutputDeltaEventSchema, CommitProjectChangesRequestSchema, CommitProjectChangesResponseSchema, CompactAgentTaskRequestSchema, CompactAgentTaskResponseSchema, ConfigureCustomProviderRequestSchema, ConfigureCustomProviderResponseSchema, ConfiguredMcpServerPageSchema, ConfiguredMcpServerSchema, ConnectionReadySchema, CreateProjectBranchRequestSchema, CreateProjectWorktreeRequestSchema, DEFAULT_AGENT_GRANULAR_APPROVAL_POLICY, DEFAULT_COMMIT_MESSAGE_MODEL, DeleteAgentQueuedSubmissionResponseSchema, DeleteAgentTaskRequestSchema, DeleteAgentTaskResponseSchema, DeleteProjectFileRequestSchema, DeleteProjectFileResponseSchema, DeleteScheduledTaskResponseSchema, EventBatchSchema, EventCheckpointSchema, EventStreamMessageSchema, EventStreamMetricsResponseSchema, EventStreamProjectMetricsSchema, FileChangeApprovalPendingRequestSchema, FileChangeUpdatedEventSchema, FilesystemRootSchema, ForkAgentTaskRequestSchema, ForkAgentTaskResponseSchema, GenerateCommitMessageRequestSchema, GenerateCommitMessageResponseSchema, GoalClearedEventSchema, GoalUpdatedEventSchema, 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, 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, PinAgentTaskRequestSchema, PinAgentTaskResponseSchema, PlanUpdatedEventSchema, ProjectDirectoryEntrySchema, ProjectDirectoryListingSchema, ProjectDirectoryPathSchema, ProjectDirectoryQuerySchema, ProjectFileNameSchema, ProjectFileReferencePathSchema, ProjectFileSearchEntrySchema, ProjectFileSearchPageSchema, ProjectFileSearchQuerySchema, ProjectFileSearchSessionIdSchema, ProjectFileTreeEntrySchema, ProjectFileTreeQuerySchema, ProjectFileTreeSchema, ProjectGitCommitFileDiffQuerySchema, ProjectGitCommitFileDiffSchema, ProjectGitCommitFileSchema, ProjectGitCommitFilesPageSchema, ProjectGitCommitFilesQuerySchema, ProjectGitCommitSchema, ProjectGitHistoryPageSchema, ProjectGitHistoryQuerySchema, ProjectGitMetadataChangedEventSchema, ProjectGitStatusQuerySchema, ProjectGitStatusSchema, ProjectGitWorktreePageSchema, ProjectGitWorktreeSchema, ProjectOpenAppIdSchema, ProjectOpenAppKindSchema, ProjectOpenAppSchema, ProjectOpenCapabilitiesResponseSchema, ProjectOpenPlatformSchema, ProjectPageSchema, ProjectRelativePathSchema, ProjectRootIdSchema, ProjectRootInputSchema, ProjectRootInputsSchema, ProjectRootPathSchema, ProjectRootQuerySchema, ProjectRootSchema, ProjectRootsSchema, ProjectSchema, ProjectSourceFileQuerySchema, ProjectSourceFileSchema, ProjectWorktreeMutationResponseSchema, ProviderErrorEventSchema, QueueChangedEventSchema, ReasoningDeltaEventSchema, ReloadAgentMcpServersRequestSchema, ReloadAgentMcpServersResponseSchema, RemoveProjectRequestSchema, RemoveProjectResponseSchema, RenameAgentTaskRequestSchema, RenameAgentTaskResponseSchema, RenameProjectFileRequestSchema, RenameProjectFileResponseSchema, RenameProjectRequestSchema, RenameProjectResponseSchema, ReorderAgentQueuedSubmissionsRequestSchema, ReorderAgentQueuedSubmissionsResponseSchema, ReorderProjectsRequestSchema, ReorderProjectsResponseSchema, ResolvePendingRequestRequestSchema, ResolvePendingRequestResponseSchema, ResyncRequiredSchema, ReviewAgentTaskRequestSchema, ReviewAgentTaskResponseSchema, ScheduledTaskInputSchema, ScheduledTaskMutationResponseSchema, ScheduledTaskPageSchema, ScheduledTaskRunSchema, ScheduledTaskRunStatusSchema, ScheduledTaskScheduleSchema, ScheduledTaskSchema, SetMcpServerEnabledResponseSchema, SetScheduledTaskEnabledRequestSchema, SetSkillEnabledResponseSchema, SkillInstallResultSchema, SkillInstallScopeSchema, SkillsChangedEventSchema, StartAgentQueuedSubmissionRequestSchema, StartAgentQueuedSubmissionResponseSchema, StartAgentTaskRequestSchema, StartAgentTaskResponseSchema, StartAgentTurnRequestSchema, StartAgentTurnResponseSchema, StartOfficialProviderLoginRequestSchema, StartOfficialProviderLoginResponseSchema, SteerAgentTurnRequestSchema, SteerAgentTurnResponseSchema, StopProjectFileSearchRequestSchema, StopProjectFileSearchResponseSchema, 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-G4BIMVEW.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, SUPPORTED_CODEX_VERSION_RANGE, 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, SUPPORTED_CODEX_VERSION_RANGE, checkCodexVersion, createCodexRuntimeProvider, createCodexWorkbenchPetProvider, locateCodexBinary, startCodexAppServer } from '../../chunk-TVRHN6RY.js';
|
|
3
3
|
import '../../chunk-RNTA4MFS.js';
|
|
4
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-G4BIMVEW.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-XXAU2AQY.js';
|
|
3
|
+
import '../chunk-OVQSIEIK.js';
|
|
4
|
+
import '../chunk-TVRHN6RY.js';
|
|
5
5
|
import '../chunk-RNTA4MFS.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-G4BIMVEW.js';
|
|
7
7
|
import '../chunk-K6J42667.js';
|
|
8
8
|
|
|
9
9
|
createRequire(import.meta.url);
|
|
@@ -226,7 +226,8 @@ function queueRecord(row) {
|
|
|
226
226
|
inputJson: row.input_json,
|
|
227
227
|
projectId: row.project_id,
|
|
228
228
|
status: row.status,
|
|
229
|
-
taskId: row.task_id
|
|
229
|
+
taskId: row.task_id,
|
|
230
|
+
...row.execution_json === null ? {} : { executionJson: row.execution_json }
|
|
230
231
|
};
|
|
231
232
|
}
|
|
232
233
|
function createTaskQueueOperations(database2) {
|
|
@@ -234,7 +235,7 @@ function createTaskQueueOperations(database2) {
|
|
|
234
235
|
const getStatements = () => {
|
|
235
236
|
if (statements !== void 0) return statements;
|
|
236
237
|
const list = database2.prepare(`
|
|
237
|
-
SELECT project_id, task_id, id, client_user_message_id, input_json, status
|
|
238
|
+
SELECT project_id, task_id, id, client_user_message_id, input_json, status, execution_json
|
|
238
239
|
FROM task_queue WHERE project_id = ? AND task_id = ? ORDER BY position
|
|
239
240
|
`);
|
|
240
241
|
const move = database2.prepare(
|
|
@@ -252,11 +253,11 @@ function createTaskQueueOperations(database2) {
|
|
|
252
253
|
statements = {
|
|
253
254
|
insert: database2.prepare(`
|
|
254
255
|
INSERT INTO task_queue (
|
|
255
|
-
project_id, task_id, id, client_user_message_id, input_json, status, position, updated_at
|
|
256
|
+
project_id, task_id, id, client_user_message_id, input_json, status, position, updated_at, execution_json
|
|
256
257
|
) VALUES (?, ?, ?, ?, ?, ?, (
|
|
257
258
|
SELECT COALESCE(MAX(position) + 1, 0)
|
|
258
259
|
FROM task_queue WHERE project_id = ? AND task_id = ?
|
|
259
|
-
), ?)
|
|
260
|
+
), ?, ?)
|
|
260
261
|
`),
|
|
261
262
|
list,
|
|
262
263
|
remove: database2.prepare(
|
|
@@ -265,12 +266,27 @@ function createTaskQueueOperations(database2) {
|
|
|
265
266
|
reorder,
|
|
266
267
|
update: database2.prepare(`
|
|
267
268
|
UPDATE task_queue SET input_json = ?, status = ?, updated_at = ?
|
|
269
|
+
WHERE project_id = ? AND task_id = ? AND id = ? AND execution_json IS NULL
|
|
270
|
+
`),
|
|
271
|
+
execution: database2.prepare(`
|
|
272
|
+
UPDATE task_queue SET execution_json = ?
|
|
268
273
|
WHERE project_id = ? AND task_id = ? AND id = ?
|
|
274
|
+
AND (? = 0 OR (execution_json IS NULL AND status = 'queued'))
|
|
269
275
|
`)
|
|
270
276
|
};
|
|
271
277
|
return statements;
|
|
272
278
|
};
|
|
273
279
|
return {
|
|
280
|
+
setTaskQueueExecution(payload) {
|
|
281
|
+
const { execution } = getStatements();
|
|
282
|
+
return execution.run(
|
|
283
|
+
payload.executionJson,
|
|
284
|
+
payload.projectId,
|
|
285
|
+
payload.taskId,
|
|
286
|
+
payload.id,
|
|
287
|
+
payload.claim ? 1 : 0
|
|
288
|
+
).changes > 0;
|
|
289
|
+
},
|
|
274
290
|
addTaskQueueRecord(payload) {
|
|
275
291
|
const { insert, list } = getStatements();
|
|
276
292
|
insert.run(
|
|
@@ -282,7 +298,8 @@ function createTaskQueueOperations(database2) {
|
|
|
282
298
|
payload.status,
|
|
283
299
|
payload.projectId,
|
|
284
300
|
payload.taskId,
|
|
285
|
-
payload.updatedAt
|
|
301
|
+
payload.updatedAt,
|
|
302
|
+
payload.execution === void 0 ? null : JSON.stringify(payload.execution)
|
|
286
303
|
);
|
|
287
304
|
return list.all(payload.projectId, payload.taskId).map(queueRecord).find((record) => record.id === payload.id);
|
|
288
305
|
},
|