@bryanhu/codexly 0.12.0 → 0.13.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 +12 -0
- package/README.md +6 -4
- package/README.zh-CN.md +6 -4
- package/dist/{chunk-RGRRUTMD.js → chunk-G4BIMVEW.js} +67 -1
- package/dist/{chunk-7C6JMXNO.js → chunk-HHFZB7H6.js} +210 -17
- package/dist/{chunk-PBPNBQQH.js → chunk-OVQSIEIK.js} +1 -1
- package/dist/{chunk-LZVKMW5Y.js → chunk-TVRHN6RY.js} +165 -2
- 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-CaIXhcq-.js} +1 -1
- package/dist/web/assets/button-group-CaIXhcq-.js.br +0 -0
- package/dist/web/assets/button-group-CaIXhcq-.js.gz +0 -0
- package/dist/web/assets/context-menu-C6o4ShKC.js +1 -0
- package/dist/web/assets/context-menu-C6o4ShKC.js.br +0 -0
- package/dist/web/assets/context-menu-C6o4ShKC.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-Cd_FWDJj.js +2 -0
- package/dist/web/assets/file-review-dialog-Cd_FWDJj.js.br +0 -0
- package/dist/web/assets/file-review-dialog-Cd_FWDJj.js.gz +0 -0
- package/dist/web/assets/git-history-panel-CkQhJ-Tz.js +2 -0
- package/dist/web/assets/git-history-panel-CkQhJ-Tz.js.br +0 -0
- package/dist/web/assets/git-history-panel-CkQhJ-Tz.js.gz +0 -0
- package/dist/web/assets/global-settings-dialog-B9ACq0CT.js +1 -0
- package/dist/web/assets/global-settings-dialog-B9ACq0CT.js.br +0 -0
- package/dist/web/assets/global-settings-dialog-B9ACq0CT.js.gz +0 -0
- package/dist/web/assets/index-CergXz2m.js +4 -0
- package/dist/web/assets/index-CergXz2m.js.br +0 -0
- package/dist/web/assets/index-CergXz2m.js.gz +0 -0
- package/dist/web/assets/index-jg-dNJI1.css +2 -0
- package/dist/web/assets/index-jg-dNJI1.css.br +0 -0
- package/dist/web/assets/index-jg-dNJI1.css.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-BmjTd0Qn.js +1 -0
- package/dist/web/assets/installed-skills-pane-BmjTd0Qn.js.br +0 -0
- package/dist/web/assets/installed-skills-pane-BmjTd0Qn.js.gz +0 -0
- package/dist/web/assets/{lazy-message-response-SxI8Oz6v.js → lazy-message-response-Cnc-bbSf.js} +2 -2
- package/dist/web/assets/lazy-message-response-Cnc-bbSf.js.br +0 -0
- package/dist/web/assets/lazy-message-response-Cnc-bbSf.js.gz +0 -0
- package/dist/web/assets/mcp-management-pane-CQPXfAO3.js +1 -0
- package/dist/web/assets/mcp-management-pane-CQPXfAO3.js.br +0 -0
- package/dist/web/assets/mcp-management-pane-CQPXfAO3.js.gz +0 -0
- package/dist/web/assets/{message-response-CTSQq8Ae.js → message-response-CamC0ebm.js} +1 -1
- package/dist/web/assets/message-response-CamC0ebm.js.br +0 -0
- package/dist/web/assets/message-response-CamC0ebm.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-BqGBX0cD.js +1 -0
- package/dist/web/assets/official-plugins-pane-BqGBX0cD.js.br +0 -0
- package/dist/web/assets/official-plugins-pane-BqGBX0cD.js.gz +0 -0
- package/dist/web/assets/{project-file-popup-page-DX-AlvxF.js → project-file-popup-page-DCct78Pu.js} +1 -1
- package/dist/web/assets/project-file-popup-page-DCct78Pu.js.br +0 -0
- package/dist/web/assets/project-file-popup-page-DCct78Pu.js.gz +0 -0
- package/dist/web/assets/{project-source-panel-i4xpffAa.js → project-source-panel-BC6YVLSp.js} +2 -2
- package/dist/web/assets/project-source-panel-BC6YVLSp.js.br +0 -0
- package/dist/web/assets/project-source-panel-BC6YVLSp.js.gz +0 -0
- package/dist/web/assets/{prompt-input-CL1AA6_U.js → prompt-input-FNZNBIXc.js} +1 -1
- package/dist/web/assets/prompt-input-FNZNBIXc.js.br +0 -0
- package/dist/web/assets/prompt-input-FNZNBIXc.js.gz +0 -0
- package/dist/web/assets/{prompt-input-controls-Qsp2rk3i.js → prompt-input-controls-BTOpD8Y-.js} +1 -1
- package/dist/web/assets/prompt-input-controls-BTOpD8Y-.js.br +0 -0
- package/dist/web/assets/prompt-input-controls-BTOpD8Y-.js.gz +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-CL9Xb-R5.js +1 -0
- package/dist/web/assets/scheduled-task-date-time-picker-CL9Xb-R5.js.br +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-CL9Xb-R5.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-DfXHCkgb.js +1 -0
- package/dist/web/assets/scheduled-task-schedule-DfXHCkgb.js.br +0 -0
- package/dist/web/assets/scheduled-task-schedule-DfXHCkgb.js.gz +0 -0
- package/dist/web/assets/scheduled-tasks-container-Bn6tqtCc.js +2 -0
- package/dist/web/assets/scheduled-tasks-container-Bn6tqtCc.js.br +0 -0
- package/dist/web/assets/scheduled-tasks-container-Bn6tqtCc.js.gz +0 -0
- package/dist/web/assets/sheet-CJD6cMoi.js +1 -0
- package/dist/web/assets/sheet-CJD6cMoi.js.br +0 -0
- package/dist/web/assets/sheet-CJD6cMoi.js.gz +0 -0
- package/dist/web/assets/skills-market-container-B8Mss3fh.js +2 -0
- package/dist/web/assets/skills-market-container-B8Mss3fh.js.br +0 -0
- package/dist/web/assets/skills-market-container-B8Mss3fh.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/third-party-marketplace-pane-BsSxaqQR.js +1 -0
- package/dist/web/assets/third-party-marketplace-pane-BsSxaqQR.js.br +0 -0
- package/dist/web/assets/third-party-marketplace-pane-BsSxaqQR.js.gz +0 -0
- package/dist/web/assets/workbench-composer-Co9mAWP_.js +10 -0
- package/dist/web/assets/workbench-composer-Co9mAWP_.js.br +0 -0
- package/dist/web/assets/workbench-composer-Co9mAWP_.js.gz +0 -0
- package/dist/web/assets/workbench-inspector-changes-DcJkQFAH.js +2 -0
- package/dist/web/assets/workbench-inspector-changes-DcJkQFAH.js.br +0 -0
- package/dist/web/assets/workbench-inspector-changes-DcJkQFAH.js.gz +0 -0
- package/dist/web/assets/workbench-pet-canvas-BR5AhUVL.js +1 -0
- package/dist/web/assets/workbench-pet-canvas-BR5AhUVL.js.br +0 -0
- package/dist/web/assets/workbench-pet-canvas-BR5AhUVL.js.gz +0 -0
- package/dist/web/assets/workbench-shell-5F-GWLMO.js +8 -0
- package/dist/web/assets/workbench-shell-5F-GWLMO.js.br +0 -0
- package/dist/web/assets/workbench-shell-5F-GWLMO.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
2
|
import { WorkbenchPetProviderError, PendingRequestResolutionError } from './chunk-RNTA4MFS.js';
|
|
3
|
-
import { TEMPORARY_TASK_SCOPE_ID, MAX_AGENT_HISTORY_IMAGE_TOTAL_BYTES, isAgentFastModeAvailable, MAX_REALTIME_FILE_CHANGES, MAX_REALTIME_DIFF_BYTES, stripLeadingAgentSkillReferences, MAX_AGENT_HISTORY_IMAGES, MAX_AGENT_TEXT_BYTES } from './chunk-
|
|
3
|
+
import { TEMPORARY_TASK_SCOPE_ID, MAX_AGENT_HISTORY_IMAGE_TOTAL_BYTES, isAgentFastModeAvailable, MAX_REALTIME_FILE_CHANGES, MAX_REALTIME_DIFF_BYTES, stripLeadingAgentSkillReferences, MAX_AGENT_HISTORY_IMAGES, MAX_AGENT_TEXT_BYTES } from './chunk-G4BIMVEW.js';
|
|
4
4
|
import { __commonJS, __require, __toESM } from './chunk-K6J42667.js';
|
|
5
5
|
import { execFile, spawn } from 'child_process';
|
|
6
6
|
import { constants, mkdtempSync, rmSync, createReadStream, mkdirSync, unlinkSync, renameSync, writeFileSync, openSync, readSync, closeSync, statSync } from 'fs';
|
|
@@ -12045,6 +12045,151 @@ var CodexGitMetadataWatchService = class {
|
|
|
12045
12045
|
};
|
|
12046
12046
|
|
|
12047
12047
|
// packages/provider-codex/src/skill-market-provider.ts
|
|
12048
|
+
var OFFICIAL_MARKETPLACES = /* @__PURE__ */ new Set([
|
|
12049
|
+
"openai-curated",
|
|
12050
|
+
"openai-api-curated",
|
|
12051
|
+
"openai-curated-remote"
|
|
12052
|
+
]);
|
|
12053
|
+
function nullableString(value) {
|
|
12054
|
+
return typeof value === "string" ? value : null;
|
|
12055
|
+
}
|
|
12056
|
+
function mapOfficialPluginSummary(value, marketplaceName, marketplacePath) {
|
|
12057
|
+
const plugin = expectRecord(value, "plugin summary");
|
|
12058
|
+
const name = expectString(plugin["name"], "plugin summary name");
|
|
12059
|
+
const view = plugin["interface"] === void 0 ? void 0 : expectRecord(plugin["interface"], "plugin summary interface");
|
|
12060
|
+
const authPolicy = expectString(plugin["authPolicy"], "plugin summary authPolicy");
|
|
12061
|
+
const installPolicy = expectString(plugin["installPolicy"], "plugin summary installPolicy");
|
|
12062
|
+
const availability = plugin["availability"] ?? "AVAILABLE";
|
|
12063
|
+
if (authPolicy !== "ON_INSTALL" && authPolicy !== "ON_USE") {
|
|
12064
|
+
throw new CodexProtocolMappingError("plugin summary authPolicy is invalid");
|
|
12065
|
+
}
|
|
12066
|
+
if (installPolicy !== "NOT_AVAILABLE" && installPolicy !== "AVAILABLE" && installPolicy !== "INSTALLED_BY_DEFAULT") {
|
|
12067
|
+
throw new CodexProtocolMappingError("plugin summary installPolicy is invalid");
|
|
12068
|
+
}
|
|
12069
|
+
if (availability !== "AVAILABLE" && availability !== "DISABLED_BY_ADMIN") {
|
|
12070
|
+
throw new CodexProtocolMappingError("plugin summary availability is invalid");
|
|
12071
|
+
}
|
|
12072
|
+
return {
|
|
12073
|
+
authPolicy,
|
|
12074
|
+
availability,
|
|
12075
|
+
description: typeof view?.["shortDescription"] === "string" ? view["shortDescription"] : "",
|
|
12076
|
+
developerName: nullableString(view?.["developerName"]),
|
|
12077
|
+
disabledReason: nullableString(plugin["disabledReason"]),
|
|
12078
|
+
displayName: typeof view?.["displayName"] === "string" ? view["displayName"] : name,
|
|
12079
|
+
enabled: typeof plugin["enabled"] === "boolean" ? plugin["enabled"] : false,
|
|
12080
|
+
id: expectString(plugin["id"], "plugin summary id"),
|
|
12081
|
+
installPolicy,
|
|
12082
|
+
installed: typeof plugin["installed"] === "boolean" ? plugin["installed"] : false,
|
|
12083
|
+
localVersion: nullableString(plugin["localVersion"]),
|
|
12084
|
+
logoUrl: nullableString(view?.["logoUrl"]),
|
|
12085
|
+
marketplaceName,
|
|
12086
|
+
marketplacePath,
|
|
12087
|
+
name,
|
|
12088
|
+
pluginName: typeof plugin["remotePluginId"] === "string" ? plugin["remotePluginId"] : name,
|
|
12089
|
+
version: nullableString(plugin["version"])
|
|
12090
|
+
};
|
|
12091
|
+
}
|
|
12092
|
+
function mapOfficialPluginApps(value) {
|
|
12093
|
+
if (!Array.isArray(value)) return [];
|
|
12094
|
+
return value.map((item) => {
|
|
12095
|
+
const app = expectRecord(item, "plugin app");
|
|
12096
|
+
return {
|
|
12097
|
+
description: typeof app["description"] === "string" ? app["description"] : "",
|
|
12098
|
+
id: expectString(app["id"], "plugin app id"),
|
|
12099
|
+
installUrl: nullableString(app["installUrl"]),
|
|
12100
|
+
name: expectString(app["name"], "plugin app name")
|
|
12101
|
+
};
|
|
12102
|
+
});
|
|
12103
|
+
}
|
|
12104
|
+
function remotePluginParams(marketplaceName, marketplacePath, pluginName) {
|
|
12105
|
+
return {
|
|
12106
|
+
marketplacePath,
|
|
12107
|
+
pluginName,
|
|
12108
|
+
remoteMarketplaceName: marketplacePath === null ? marketplaceName : null
|
|
12109
|
+
};
|
|
12110
|
+
}
|
|
12111
|
+
async function listCodexOfficialPlugins(client, projects, forceRefetch) {
|
|
12112
|
+
const response = expectRecord(
|
|
12113
|
+
await client.request("plugin/list", {
|
|
12114
|
+
cwds: projects.flatMap((project) => project.roots.map((root) => root.path)),
|
|
12115
|
+
forceRefetch,
|
|
12116
|
+
marketplaceKinds: null
|
|
12117
|
+
}),
|
|
12118
|
+
"plugin/list response"
|
|
12119
|
+
);
|
|
12120
|
+
if (!Array.isArray(response["marketplaces"])) {
|
|
12121
|
+
throw new CodexProtocolMappingError("plugin/list marketplaces must be an array");
|
|
12122
|
+
}
|
|
12123
|
+
const data = [];
|
|
12124
|
+
for (const value of response["marketplaces"]) {
|
|
12125
|
+
const marketplace = expectRecord(value, "plugin marketplace");
|
|
12126
|
+
const name = expectString(marketplace["name"], "plugin marketplace name");
|
|
12127
|
+
if (!OFFICIAL_MARKETPLACES.has(name)) continue;
|
|
12128
|
+
if (!Array.isArray(marketplace["plugins"])) {
|
|
12129
|
+
throw new CodexProtocolMappingError("plugin marketplace plugins must be an array");
|
|
12130
|
+
}
|
|
12131
|
+
const path = nullableString(marketplace["path"]);
|
|
12132
|
+
for (const plugin of marketplace["plugins"]) {
|
|
12133
|
+
data.push(mapOfficialPluginSummary(plugin, name, path));
|
|
12134
|
+
}
|
|
12135
|
+
}
|
|
12136
|
+
return { data };
|
|
12137
|
+
}
|
|
12138
|
+
async function getCodexOfficialPlugin(client, marketplaceName, marketplacePath, pluginName) {
|
|
12139
|
+
const response = expectRecord(
|
|
12140
|
+
await client.request(
|
|
12141
|
+
"plugin/read",
|
|
12142
|
+
remotePluginParams(marketplaceName, marketplacePath, pluginName)
|
|
12143
|
+
),
|
|
12144
|
+
"plugin/read response"
|
|
12145
|
+
);
|
|
12146
|
+
const plugin = expectRecord(response["plugin"], "plugin/read plugin");
|
|
12147
|
+
const summaryValue = expectRecord(plugin["summary"], "plugin/read summary");
|
|
12148
|
+
const summary = mapOfficialPluginSummary(
|
|
12149
|
+
summaryValue,
|
|
12150
|
+
expectString(plugin["marketplaceName"], "plugin/read marketplaceName"),
|
|
12151
|
+
nullableString(plugin["marketplacePath"])
|
|
12152
|
+
);
|
|
12153
|
+
const skills = Array.isArray(plugin["skills"]) ? plugin["skills"].map((value) => {
|
|
12154
|
+
const skill = expectRecord(value, "plugin skill");
|
|
12155
|
+
return {
|
|
12156
|
+
description: typeof skill["shortDescription"] === "string" ? skill["shortDescription"] : typeof skill["description"] === "string" ? skill["description"] : "",
|
|
12157
|
+
name: expectString(skill["name"], "plugin skill name")
|
|
12158
|
+
};
|
|
12159
|
+
}) : [];
|
|
12160
|
+
const mcpServers = Array.isArray(plugin["mcpServers"]) ? plugin["mcpServers"].map((value) => expectString(value, "plugin MCP server")) : [];
|
|
12161
|
+
const hooks = Array.isArray(plugin["hooks"]) ? plugin["hooks"].map(
|
|
12162
|
+
(value) => expectString(expectRecord(value, "plugin hook")["key"], "plugin hook key")
|
|
12163
|
+
) : [];
|
|
12164
|
+
const view = summaryValue["interface"] === void 0 ? void 0 : expectRecord(summaryValue["interface"], "plugin summary interface");
|
|
12165
|
+
return {
|
|
12166
|
+
...summary,
|
|
12167
|
+
apps: mapOfficialPluginApps(plugin["apps"]),
|
|
12168
|
+
description: typeof plugin["description"] === "string" ? plugin["description"] : summary.description,
|
|
12169
|
+
hooks,
|
|
12170
|
+
mcpServers,
|
|
12171
|
+
skills,
|
|
12172
|
+
websiteUrl: nullableString(view?.["websiteUrl"])
|
|
12173
|
+
};
|
|
12174
|
+
}
|
|
12175
|
+
async function installCodexOfficialPlugin(client, marketplaceName, marketplacePath, pluginName, installAttemptId) {
|
|
12176
|
+
const response = expectRecord(
|
|
12177
|
+
await client.request("plugin/install", {
|
|
12178
|
+
installAttemptId,
|
|
12179
|
+
...remotePluginParams(marketplaceName, marketplacePath, pluginName)
|
|
12180
|
+
}),
|
|
12181
|
+
"plugin/install response"
|
|
12182
|
+
);
|
|
12183
|
+
const authPolicy = expectString(response["authPolicy"], "plugin/install authPolicy");
|
|
12184
|
+
if (authPolicy !== "ON_INSTALL" && authPolicy !== "ON_USE") {
|
|
12185
|
+
throw new CodexProtocolMappingError("plugin/install authPolicy is invalid");
|
|
12186
|
+
}
|
|
12187
|
+
return { appsNeedingAuth: mapOfficialPluginApps(response["appsNeedingAuth"]), authPolicy };
|
|
12188
|
+
}
|
|
12189
|
+
async function uninstallCodexOfficialPlugin(client, pluginId) {
|
|
12190
|
+
await client.request("plugin/uninstall", { pluginId });
|
|
12191
|
+
return {};
|
|
12192
|
+
}
|
|
12048
12193
|
async function listCodexInstalledSkills(client, projects, forceReload) {
|
|
12049
12194
|
const roots = projects.flatMap(
|
|
12050
12195
|
(project) => project.roots.map((root) => ({ path: root.path, project }))
|
|
@@ -12336,6 +12481,24 @@ var CodexRuntimeProvider = class {
|
|
|
12336
12481
|
listInstalledSkills(projects, forceReload) {
|
|
12337
12482
|
return listCodexInstalledSkills(this.#client, projects, forceReload);
|
|
12338
12483
|
}
|
|
12484
|
+
listOfficialPlugins(projects, forceRefetch) {
|
|
12485
|
+
return listCodexOfficialPlugins(this.#client, projects, forceRefetch);
|
|
12486
|
+
}
|
|
12487
|
+
getOfficialPlugin(marketplaceName, marketplacePath, pluginName) {
|
|
12488
|
+
return getCodexOfficialPlugin(this.#client, marketplaceName, marketplacePath, pluginName);
|
|
12489
|
+
}
|
|
12490
|
+
installOfficialPlugin(marketplaceName, marketplacePath, pluginName, installAttemptId) {
|
|
12491
|
+
return installCodexOfficialPlugin(
|
|
12492
|
+
this.#client,
|
|
12493
|
+
marketplaceName,
|
|
12494
|
+
marketplacePath,
|
|
12495
|
+
pluginName,
|
|
12496
|
+
installAttemptId
|
|
12497
|
+
);
|
|
12498
|
+
}
|
|
12499
|
+
uninstallOfficialPlugin(pluginId) {
|
|
12500
|
+
return uninstallCodexOfficialPlugin(this.#client, pluginId);
|
|
12501
|
+
}
|
|
12339
12502
|
logoutProvider() {
|
|
12340
12503
|
return this.#providerConnection.logout();
|
|
12341
12504
|
}
|
|
@@ -12420,7 +12583,7 @@ function createCodexRuntimeProvider(options) {
|
|
|
12420
12583
|
...options.fetch === void 0 ? {} : { fetch: options.fetch }
|
|
12421
12584
|
});
|
|
12422
12585
|
}
|
|
12423
|
-
var APP_SERVER_ARGUMENTS = ["app-server", "--listen", "stdio://"];
|
|
12586
|
+
var APP_SERVER_ARGUMENTS = ["app-server", "--enable", "plugins", "--listen", "stdio://"];
|
|
12424
12587
|
var CodexAppServerExitedError = class extends RpcConnectionClosedError {
|
|
12425
12588
|
exitCode;
|
|
12426
12589
|
signal;
|
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-HHFZB7H6.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.13.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-HHFZB7H6.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
|
},
|