@codexhost/cli-win32-x64 0.33.0 → 0.35.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/README.md +2 -1
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +670 -116
- package/app/console-web.js +2032 -309
- package/app/desktop-controller.mjs +621 -74
- package/app/desktop-mcp-client.mjs +619 -0
- package/app/host-runtime.mjs +7134 -3865
- package/app/plugins/antigravity/plugin.mjs +1411 -121
- package/app/plugins/claude-code/plugin.mjs +527 -70
- package/app/plugins/codebuddy/plugin.mjs +592 -98
- package/app/plugins/codex-usage/plugin.mjs +659 -74
- package/app/plugins/copilot/plugin.mjs +527 -72
- package/app/plugins/cursor-cli/plugin.mjs +527 -70
- package/app/plugins/deepseek-harness/plugin.mjs +527 -70
- package/app/plugins/devin/plugin.mjs +527 -70
- package/app/plugins/enabled.json +1 -0
- package/app/plugins/grok/plugin.mjs +580 -92
- package/app/plugins/hermes/plugin.mjs +526 -69
- package/app/plugins/kimi-code/plugin.mjs +527 -70
- package/app/plugins/kiro-cli/plugin.mjs +527 -70
- package/app/plugins/omp/plugin.mjs +1338 -301
- package/app/plugins/opencode/plugin.mjs +527 -70
- package/app/plugins/pi/plugin.mjs +527 -70
- package/app/plugins/qoder/plugin.mjs +528 -71
- package/app/plugins/qoder-cn/plugin.mjs +528 -71
- package/app/plugins/qwen-code/plugin.mjs +526 -69
- package/app/plugins/workbuddy/plugin.mjs +1231 -546
- package/app/plugins/workbuddy-cn/assets/icon.svg +27 -0
- package/app/plugins/workbuddy-cn/manifest.json +32 -0
- package/app/plugins/workbuddy-cn/plugin.mjs +36524 -0
- package/app/plugins/zcode/plugin.mjs +528 -70
- package/app/renderer-extension.js +3898 -478
- package/app/web/assets/{abnfDiagram-XWFEHMT6-VnfRaHM6.js → abnfDiagram-XWFEHMT6-CGkBtBVj.js} +1 -1
- package/app/web/assets/{architectureDiagram-CSQXQB3N-BA1ehtvi.js → architectureDiagram-CSQXQB3N-Byv-cZeH.js} +1 -1
- package/app/web/assets/{blockDiagram-BEDRHYPZ-31BZSfd4.js → blockDiagram-BEDRHYPZ-DjLzUtwg.js} +1 -1
- package/app/web/assets/{c4Diagram-M2UUVUY5-CNzGWc5k.js → c4Diagram-M2UUVUY5-CJlsb6QO.js} +1 -1
- package/app/web/assets/{chunk-2Q5K7J3B-ahAIR-NM.js → chunk-2Q5K7J3B-CWm537bw.js} +1 -1
- package/app/web/assets/{chunk-3GCGMST5-BIV5YeRJ.js → chunk-3GCGMST5-NpcInIx4.js} +1 -1
- package/app/web/assets/{chunk-5VM5RSS4-CluTMPJG.js → chunk-5VM5RSS4-CeyyP0dm.js} +1 -1
- package/app/web/assets/{chunk-7U7NFRK5-4NIQuFbE.js → chunk-7U7NFRK5-Bto5OgbF.js} +1 -1
- package/app/web/assets/{chunk-CNRTWJTD-_0bEfGn3.js → chunk-CNRTWJTD-CuRMFCjT.js} +1 -1
- package/app/web/assets/{chunk-D5HYT7QG-_kTC6f8F.js → chunk-D5HYT7QG-DtQM1-2k.js} +1 -1
- package/app/web/assets/{chunk-EBZ3SEQC-CykaYOrL.js → chunk-EBZ3SEQC-DbUb3ZJ4.js} +2 -2
- package/app/web/assets/{chunk-JWPE2WC7-3vVOQ_py.js → chunk-JWPE2WC7-Dxh3d9Ag.js} +1 -1
- package/app/web/assets/{chunk-KTR4FSNJ-aVg5vgrm.js → chunk-KTR4FSNJ-BfwavXUO.js} +1 -1
- package/app/web/assets/{chunk-XXDRQBXY-_gVwGeSp.js → chunk-XXDRQBXY-CxR1flID.js} +1 -1
- package/app/web/assets/{classDiagram-v2-KXABOMEV-fI1LfeBf.js → classDiagram-v2-KXABOMEV-2WV2q_X2.js} +1 -1
- package/app/web/assets/{cose-bilkent-JH36ORCC-DFXMlWov.js → cose-bilkent-JH36ORCC-C-ENrCL_.js} +1 -1
- package/app/web/assets/{cynefin-EF2NZ3EQ-lZy7X6FO.js → cynefin-EF2NZ3EQ-Bg5LeTZO.js} +1 -1
- package/app/web/assets/{cynefinDiagram-NJNITYFG-N4DwFSW1.js → cynefinDiagram-NJNITYFG-CRAdbGGt.js} +1 -1
- package/app/web/assets/{dagre-KIHZ2IZ3-B7-8baTH.js → dagre-KIHZ2IZ3-dNHEvUqL.js} +1 -1
- package/app/web/assets/{diagram-7YQZDPLS-DLfjiBXV.js → diagram-7YQZDPLS-7F4O37o5.js} +1 -1
- package/app/web/assets/{diagram-QBROCOUO-CQnRzSTi.js → diagram-QBROCOUO-B-5KpeI2.js} +1 -1
- package/app/web/assets/{diagram-RJJCUUZO-DPnxazRT.js → diagram-RJJCUUZO-DqDsyDaL.js} +1 -1
- package/app/web/assets/{diagram-WERXNKYE-BBuEFRvD.js → diagram-WERXNKYE-f1oaPKos.js} +1 -1
- package/app/web/assets/{diagram-YHHI257C-BQ92JNJs.js → diagram-YHHI257C-DVMtl9Bt.js} +1 -1
- package/app/web/assets/{diagram-YR4HJLHV-Ce6BQO3J.js → diagram-YR4HJLHV-BWFCNFFF.js} +1 -1
- package/app/web/assets/{ebnfDiagram-N527522P-DYknE2Jy.js → ebnfDiagram-N527522P-B4N7d-Bi.js} +1 -1
- package/app/web/assets/{elk-O5DQBFGD-4S6_JJFF.js → elk-O5DQBFGD-DRdfF_UQ.js} +1 -1
- package/app/web/assets/{erDiagram-K3K3BIDK-DRtF7JVQ.js → erDiagram-K3K3BIDK-BW4-_5sZ.js} +1 -1
- package/app/web/assets/{flowDiagram-Z6JWZHQI-7Ho8CyR9.js → flowDiagram-Z6JWZHQI-DIQa5yEv.js} +1 -1
- package/app/web/assets/{ganttDiagram-3PRQTZWP-CW8Ig5y4.js → ganttDiagram-3PRQTZWP-JBK9PM7A.js} +1 -1
- package/app/web/assets/{gitGraphDiagram-VXDFKS5L-CzS8Xg2D.js → gitGraphDiagram-VXDFKS5L-TPI9Su0g.js} +1 -1
- package/app/web/assets/{grid-E2QIVN74-Cq284lCe.js → grid-E2QIVN74-DmHbunuP.js} +1 -1
- package/app/web/assets/index-BKDmniRf.js +209 -0
- package/app/web/assets/index-BPMnQdGr.css +1 -0
- package/app/web/assets/{infoDiagram-EZ3ZOAHP-BZgN6qlY.js → infoDiagram-EZ3ZOAHP-BeFwO9PI.js} +1 -1
- package/app/web/assets/{ishikawaDiagram-S3EKX5GW-BH9YHc-1.js → ishikawaDiagram-S3EKX5GW-BTbrKF_p.js} +1 -1
- package/app/web/assets/{journeyDiagram-POQNLL5X-D50KYOLe.js → journeyDiagram-POQNLL5X-DR0yWxJi.js} +1 -1
- package/app/web/assets/{kanban-definition-BH5XI6FM-Crw_5mMP.js → kanban-definition-BH5XI6FM-DMHrC9oV.js} +1 -1
- package/app/web/assets/{mermaid.core-o2Qjrppc.js → mermaid.core-Brmc1kJw.js} +4 -4
- package/app/web/assets/{mindmap-definition-WVAN44T4-B_bEbpAH.js → mindmap-definition-WVAN44T4-NT_XVwlI.js} +1 -1
- package/app/web/assets/{pegDiagram-D4NLKWP3-VecAHoyw.js → pegDiagram-D4NLKWP3-K67_THcc.js} +1 -1
- package/app/web/assets/{pieDiagram-36ENHN4W-o3ei2T-6.js → pieDiagram-36ENHN4W-GlTgKnTi.js} +1 -1
- package/app/web/assets/{quadrantDiagram-ZQUDMS73-DHndOAcn.js → quadrantDiagram-ZQUDMS73-yMEZ6-Nr.js} +1 -1
- package/app/web/assets/{railroadDiagram-JIZHGYPL-DRd_lfii.js → railroadDiagram-JIZHGYPL-MXCqwbuq.js} +1 -1
- package/app/web/assets/{render-VIF2ZAQL-awM3hUqB.js → render-VIF2ZAQL-BRUlhHPG.js} +2 -2
- package/app/web/assets/{requirementDiagram-AXW2TVFA-Ce1ePsOe.js → requirementDiagram-AXW2TVFA-Dqx4p0Bz.js} +1 -1
- package/app/web/assets/{sankeyDiagram-FBCJTAIF-cP-LtgW-.js → sankeyDiagram-FBCJTAIF-COp3IWvs.js} +1 -1
- package/app/web/assets/{sequenceDiagram-3LA2ROMG-C3JStTuW.js → sequenceDiagram-3LA2ROMG-j1xwrmp8.js} +1 -1
- package/app/web/assets/{sizeCapture-2Q2CQKSF-Dyyelr9K.js → sizeCapture-2Q2CQKSF-ZEXdxLeY.js} +1 -1
- package/app/web/assets/{stateDiagram-v2-ATKHQDJO-DkYRBVTd.js → stateDiagram-v2-ATKHQDJO-2pt2L-Zd.js} +1 -1
- package/app/web/assets/{swimlanes-YQL5WMAO-B2FwJU5_.js → swimlanes-YQL5WMAO-BHpgfPPd.js} +1 -1
- package/app/web/assets/swimlanesDiagram-UCCPES4V-BrYKheZO.js +8 -0
- package/app/web/assets/{timeline-definition-7Z437IG3-Di-qRIIi.js → timeline-definition-7Z437IG3-Cw4F_3FM.js} +1 -1
- package/app/web/assets/{usecaseDiagram-RDK6N6HP-yAImn62t.js → usecaseDiagram-RDK6N6HP-DefiMBIg.js} +1 -1
- package/app/web/assets/{vennDiagram-SHRQU5PJ-BEv8jpfv.js → vennDiagram-SHRQU5PJ-D30EMFrI.js} +1 -1
- package/app/web/assets/{wardleyDiagram-F3OXNVQS-7irksA0b.js → wardleyDiagram-F3OXNVQS-4ok25PKp.js} +1 -1
- package/app/web/assets/{xychartDiagram-GDYJKCDI-BokJGG2y.js → xychartDiagram-GDYJKCDI-BB0uAQX5.js} +1 -1
- package/app/web/codexhost-settings.js +429 -159
- package/app/web/index.html +2 -2
- package/app/web/plugins/deepseek-ai__dsh-api-gateway/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-remotes/client.js +63 -63
- package/app/web/plugins/deepseek-ai__dsh-api-session-controller/client.js +70 -70
- package/app/web/plugins/deepseek-ai__dsh-client-file-upload/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-chat/client.js +75 -75
- package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +172 -77
- package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +104 -100
- package/app/web/plugins/deepseek-ai__dsh-client-ui-model-selection/client.js +65 -65
- package/app/web/plugins/deepseek-ai__dsh-client-ui-session/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-settings-general/client.js +5 -5
- package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar-documentpreview/client.js +6 -6
- package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar-documentpreview/client.pdf.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar-right/client.js +62 -62
- package/app/web/plugins/deepseek-ai__dsh-client-ui-tool/client.js +72 -72
- package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +70 -70
- package/app/web/plugins.json +1 -0
- package/app/web/role-avatars/builtin/advisor-otter.webp +0 -0
- package/app/web/role-avatars/builtin/builder-otter.webp +0 -0
- package/app/web/role-avatars/builtin/sailor-otter.webp +0 -0
- package/app/web/role-avatars/builtin/wizard-otter.webp +0 -0
- package/app/web-modules/server.mjs +7262 -2970
- package/bin/codexhost.exe +0 -0
- package/libexec/codexhost-node-repl.exe +0 -0
- package/libexec/codexhost-screenshot.exe +0 -0
- package/libexec/codexhost-shell.exe +0 -0
- package/libexec/codexhost-shim.exe +0 -0
- package/libexec/codexhost-updater.exe +0 -0
- package/package.json +1 -1
- package/app/web/assets/index-CINZ6P-q.css +0 -1
- package/app/web/assets/index-CvV6veuY.js +0 -208
- package/app/web/assets/swimlanesDiagram-UCCPES4V-BkMsxCPb.js +0 -8
package/app/console-web.js
CHANGED
|
@@ -19833,26 +19833,51 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19833
19833
|
external_exports.boolean(),
|
|
19834
19834
|
external_exports.null()
|
|
19835
19835
|
]);
|
|
19836
|
-
function
|
|
19837
|
-
const
|
|
19838
|
-
|
|
19836
|
+
function isPlainObject2(value) {
|
|
19837
|
+
const prototype = Object.getPrototypeOf(value);
|
|
19838
|
+
return prototype === Object.prototype || prototype === null;
|
|
19839
|
+
}
|
|
19840
|
+
var JSON_VALIDATION_LEAVE = /* @__PURE__ */ Symbol("json-validation-leave");
|
|
19841
|
+
function isValidJsonValue(value) {
|
|
19842
|
+
if (value === null || typeof value === "string" || typeof value === "boolean" || typeof value === "number" && Number.isFinite(value)) {
|
|
19843
|
+
return true;
|
|
19844
|
+
}
|
|
19845
|
+
if (typeof value !== "object")
|
|
19846
|
+
return false;
|
|
19847
|
+
const ancestors = /* @__PURE__ */ new Set();
|
|
19848
|
+
const stack = [value];
|
|
19839
19849
|
try {
|
|
19840
19850
|
while (stack.length > 0) {
|
|
19841
|
-
const
|
|
19842
|
-
if (
|
|
19843
|
-
|
|
19844
|
-
if (frame.leaving) {
|
|
19845
|
-
ancestors.delete(frame.value);
|
|
19851
|
+
const current = stack.pop();
|
|
19852
|
+
if (current === JSON_VALIDATION_LEAVE) {
|
|
19853
|
+
ancestors.delete(stack.pop());
|
|
19846
19854
|
continue;
|
|
19847
19855
|
}
|
|
19848
|
-
if (typeof
|
|
19856
|
+
if (current === null || typeof current === "string" || typeof current === "boolean" || typeof current === "number" && Number.isFinite(current)) {
|
|
19849
19857
|
continue;
|
|
19850
|
-
|
|
19858
|
+
}
|
|
19859
|
+
if (typeof current !== "object")
|
|
19860
|
+
return false;
|
|
19861
|
+
if (ancestors.has(current))
|
|
19851
19862
|
return false;
|
|
19852
|
-
|
|
19853
|
-
|
|
19854
|
-
|
|
19855
|
-
|
|
19863
|
+
if (Array.isArray(current)) {
|
|
19864
|
+
ancestors.add(current);
|
|
19865
|
+
stack.push(current, JSON_VALIDATION_LEAVE);
|
|
19866
|
+
for (let index = current.length - 1; index >= 0; index -= 1) {
|
|
19867
|
+
stack.push(current[index]);
|
|
19868
|
+
}
|
|
19869
|
+
continue;
|
|
19870
|
+
}
|
|
19871
|
+
if (!isPlainObject2(current))
|
|
19872
|
+
return false;
|
|
19873
|
+
ancestors.add(current);
|
|
19874
|
+
stack.push(current, JSON_VALIDATION_LEAVE);
|
|
19875
|
+
for (const key2 in current) {
|
|
19876
|
+
if (Object.hasOwn(current, key2)) {
|
|
19877
|
+
if (key2 === "__proto__")
|
|
19878
|
+
return false;
|
|
19879
|
+
stack.push(current[key2]);
|
|
19880
|
+
}
|
|
19856
19881
|
}
|
|
19857
19882
|
}
|
|
19858
19883
|
} catch {
|
|
@@ -19860,17 +19885,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19860
19885
|
}
|
|
19861
19886
|
return true;
|
|
19862
19887
|
}
|
|
19863
|
-
var
|
|
19864
|
-
message: "JSON value
|
|
19888
|
+
var jsonValueSchema = external_exports.custom(isValidJsonValue, {
|
|
19889
|
+
message: "Invalid JSON value"
|
|
19865
19890
|
});
|
|
19866
|
-
var
|
|
19867
|
-
|
|
19868
|
-
external_exports.array(recursiveJsonValueSchema),
|
|
19869
|
-
external_exports.record(external_exports.string(), recursiveJsonValueSchema)
|
|
19870
|
-
]));
|
|
19871
|
-
var jsonValueSchema = nonCircularSchema.pipe(recursiveJsonValueSchema);
|
|
19872
|
-
var jsonArraySchema = nonCircularSchema.pipe(external_exports.array(recursiveJsonValueSchema));
|
|
19873
|
-
var jsonObjectSchema = nonCircularSchema.pipe(external_exports.record(external_exports.string(), recursiveJsonValueSchema));
|
|
19891
|
+
var jsonArraySchema = external_exports.custom((value) => Array.isArray(value) && isValidJsonValue(value), { message: "Invalid JSON array" });
|
|
19892
|
+
var jsonObjectSchema = external_exports.custom((value) => typeof value === "object" && value !== null && !Array.isArray(value) && isValidJsonValue(value), { message: "Invalid JSON object" });
|
|
19874
19893
|
|
|
19875
19894
|
// ../shared-contracts/dist/errors.js
|
|
19876
19895
|
var codexhostErrorSchema = external_exports.strictObject({
|
|
@@ -20024,7 +20043,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20024
20043
|
"security-otter",
|
|
20025
20044
|
"audio-otter",
|
|
20026
20045
|
"scholar-otter",
|
|
20027
|
-
"data-otter"
|
|
20046
|
+
"data-otter",
|
|
20047
|
+
"advisor-otter",
|
|
20048
|
+
"builder-otter",
|
|
20049
|
+
"wizard-otter",
|
|
20050
|
+
"sailor-otter"
|
|
20028
20051
|
];
|
|
20029
20052
|
var builtinRoleAvatarSchema = external_exports.templateLiteral([
|
|
20030
20053
|
"builtin:",
|
|
@@ -20902,11 +20925,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20902
20925
|
});
|
|
20903
20926
|
var semver = /^v?(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*))?)?(?:-([\da-z-]+(?:\.[\da-z-]+)*))?(?:\+[\da-z-]+(?:\.[\da-z-]+)*)?$/iu;
|
|
20904
20927
|
var order = (a, b) => a < b ? -1 : a > b ? 1 : 0;
|
|
20905
|
-
function
|
|
20928
|
+
function tryCompareExtensionVersions(a, b) {
|
|
20906
20929
|
const left = semver.exec(a.trim());
|
|
20907
20930
|
const right = semver.exec(b.trim());
|
|
20908
20931
|
if (!left || !right)
|
|
20909
|
-
return
|
|
20932
|
+
return null;
|
|
20910
20933
|
for (const index of [1, 2, 3]) {
|
|
20911
20934
|
const result = order(BigInt(left[index] ?? "0"), BigInt(right[index] ?? "0"));
|
|
20912
20935
|
if (result)
|
|
@@ -20928,6 +20951,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20928
20951
|
}
|
|
20929
20952
|
return order(BigInt(preA.length), BigInt(preB.length));
|
|
20930
20953
|
}
|
|
20954
|
+
function compareExtensionVersions(a, b) {
|
|
20955
|
+
return tryCompareExtensionVersions(a, b) ?? 0;
|
|
20956
|
+
}
|
|
20931
20957
|
function resolveDesktopExtensionSlots(enabledOrder, manifests) {
|
|
20932
20958
|
const byId = new Map(Array.from(manifests, ({ id: id2, slots = [] }) => [id2, slots]));
|
|
20933
20959
|
const owners = /* @__PURE__ */ new Map();
|
|
@@ -21097,6 +21123,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21097
21123
|
backend: external_exports.int().positive().optional()
|
|
21098
21124
|
}),
|
|
21099
21125
|
downloadUrl: downloadUrl.refine((url2) => url2.startsWith("https://"), "Expected HTTPS"),
|
|
21126
|
+
downloads7d: external_exports.number().int().min(0).optional(),
|
|
21100
21127
|
featured: external_exports.boolean().optional(),
|
|
21101
21128
|
featuredOrder: external_exports.int().nonnegative().optional(),
|
|
21102
21129
|
changelog: external_exports.array(hostExtensionChangelogEntrySchema).max(20).optional()
|
|
@@ -21166,24 +21193,42 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21166
21193
|
var rasterDataUrlSchema = (maxBytes) => external_exports.string().max("data:image/jpeg;base64,".length + 4 * Math.ceil(maxBytes / 3)).regex(/^data:image\/(?:png|jpeg|webp);base64,[A-Za-z0-9+/]+={0,2}$/u);
|
|
21167
21194
|
var desktopConflict = { desktopConflictWith: hostExtensionIdSchema.optional() };
|
|
21168
21195
|
var backendState = external_exports.enum(["none", "inactive", "starting", "running", "failed"]);
|
|
21196
|
+
var HOST_EXTENSION_OPERATION_ERROR_MAX_LENGTH = 512;
|
|
21197
|
+
var hostExtensionOperationStatusSchema = external_exports.discriminatedUnion("state", [
|
|
21198
|
+
external_exports.object({
|
|
21199
|
+
state: external_exports.literal("updating"),
|
|
21200
|
+
targetVersion: external_exports.string().trim().min(1).max(128).optional(),
|
|
21201
|
+
startedAt: external_exports.iso.datetime()
|
|
21202
|
+
}),
|
|
21203
|
+
external_exports.object({
|
|
21204
|
+
state: external_exports.literal("failed"),
|
|
21205
|
+
targetVersion: external_exports.string().trim().min(1).max(128).optional(),
|
|
21206
|
+
startedAt: external_exports.iso.datetime(),
|
|
21207
|
+
updatedAt: external_exports.iso.datetime(),
|
|
21208
|
+
error: external_exports.string().min(1).max(HOST_EXTENSION_OPERATION_ERROR_MAX_LENGTH),
|
|
21209
|
+
interruptedByShutdown: external_exports.boolean().optional()
|
|
21210
|
+
})
|
|
21211
|
+
]);
|
|
21169
21212
|
var hostExtensionListItemSchema = external_exports.discriminatedUnion("state", [
|
|
21170
|
-
|
|
21213
|
+
external_exports.object({
|
|
21214
|
+
...hostExtensionInstallationSchema.shape,
|
|
21171
21215
|
state: external_exports.literal("valid"),
|
|
21172
21216
|
enabled: external_exports.boolean(),
|
|
21173
21217
|
...desktopConflict,
|
|
21174
21218
|
iconDataUrl: rasterDataUrlSchema(DESKTOP_EXTENSION_ICON_MAX_BYTES).optional(),
|
|
21175
21219
|
screenshotDataUrls: external_exports.array(rasterDataUrlSchema(DESKTOP_EXTENSION_SCREENSHOT_MAX_BYTES)).max(DESKTOP_EXTENSION_SCREENSHOT_LIMIT).optional(),
|
|
21176
21220
|
backendState: backendState.optional(),
|
|
21177
|
-
backendError: external_exports.string().optional()
|
|
21221
|
+
backendError: external_exports.string().optional(),
|
|
21222
|
+
operation: hostExtensionOperationStatusSchema.optional()
|
|
21178
21223
|
}),
|
|
21179
|
-
external_exports.
|
|
21224
|
+
external_exports.object({
|
|
21180
21225
|
state: external_exports.enum(["invalid", "incompatible"]),
|
|
21181
21226
|
id: external_exports.string().min(1),
|
|
21182
21227
|
enabled: external_exports.boolean(),
|
|
21183
21228
|
error: external_exports.string()
|
|
21184
21229
|
})
|
|
21185
21230
|
]);
|
|
21186
|
-
var hostExtensionsListResultSchema = external_exports.
|
|
21231
|
+
var hostExtensionsListResultSchema = external_exports.object({
|
|
21187
21232
|
revision: hostExtensionRevisionSchema,
|
|
21188
21233
|
configuration: hostExtensionConfigurationSchema,
|
|
21189
21234
|
diagnostics: external_exports.array(external_exports.string()),
|
|
@@ -21222,7 +21267,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21222
21267
|
var noParams = external_exports.strictObject({});
|
|
21223
21268
|
var expectedRevision = { expectedRevision: hostExtensionRevisionSchema };
|
|
21224
21269
|
var selection = external_exports.strictObject({ ...id, ...expectedRevision });
|
|
21225
|
-
var installationResult =
|
|
21270
|
+
var installationResult = external_exports.object({
|
|
21271
|
+
...hostExtensionInstallationSchema.shape,
|
|
21272
|
+
replaced: external_exports.boolean()
|
|
21273
|
+
});
|
|
21226
21274
|
var mutationResult = external_exports.discriminatedUnion("state", [
|
|
21227
21275
|
external_exports.strictObject({ state: external_exports.literal("saved"), configuration: hostExtensionConfigurationSchema }),
|
|
21228
21276
|
external_exports.strictObject({ state: external_exports.literal("revision-conflict"), revision: hostExtensionRevisionSchema })
|
|
@@ -21251,7 +21299,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21251
21299
|
values: jsonObjectSchema
|
|
21252
21300
|
});
|
|
21253
21301
|
var hostExtensionsRpcSchemas = {
|
|
21254
|
-
[HOST_EXTENSIONS_RPC.list]: {
|
|
21302
|
+
[HOST_EXTENSIONS_RPC.list]: {
|
|
21303
|
+
params: external_exports.object({
|
|
21304
|
+
includeOperations: external_exports.boolean().optional()
|
|
21305
|
+
}),
|
|
21306
|
+
result: hostExtensionsListResultSchema
|
|
21307
|
+
},
|
|
21255
21308
|
[HOST_EXTENSIONS_RPC.snapshot]: { params: noParams, result: hostExtensionsSnapshotResultSchema },
|
|
21256
21309
|
[HOST_EXTENSIONS_RPC.catalog]: {
|
|
21257
21310
|
params: external_exports.strictObject({
|
|
@@ -21277,6 +21330,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21277
21330
|
...id,
|
|
21278
21331
|
expectedDigest: active.digest,
|
|
21279
21332
|
expectedActivationId: active.activationId.optional(),
|
|
21333
|
+
expectedVersion: external_exports.string().trim().min(1).max(128).optional(),
|
|
21280
21334
|
source: hostExtensionInstallSourceSchema.optional()
|
|
21281
21335
|
}),
|
|
21282
21336
|
result: installationResult
|
|
@@ -21326,8 +21380,39 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21326
21380
|
};
|
|
21327
21381
|
|
|
21328
21382
|
// ../shared-contracts/dist/group-chat.js
|
|
21329
|
-
var
|
|
21330
|
-
var
|
|
21383
|
+
var GROUP_MEMORY_MAX_BYTES = 4096;
|
|
21384
|
+
var DEFAULT_GROUP_MAX_AGENT_HOPS = 10;
|
|
21385
|
+
var MAX_GROUP_AGENT_HOPS = 200;
|
|
21386
|
+
var GROUP_NOTICE_MAX_LENGTH = 2e3;
|
|
21387
|
+
var cachedUtf8Encoder;
|
|
21388
|
+
function groupUtf8ByteLength(text2) {
|
|
21389
|
+
if (cachedUtf8Encoder === void 0) {
|
|
21390
|
+
cachedUtf8Encoder = typeof TextEncoder === "function" ? new TextEncoder() : null;
|
|
21391
|
+
}
|
|
21392
|
+
if (cachedUtf8Encoder !== null) {
|
|
21393
|
+
return cachedUtf8Encoder.encode(text2).length;
|
|
21394
|
+
}
|
|
21395
|
+
let bytes = 0;
|
|
21396
|
+
for (let i = 0; i < text2.length; i += 1) {
|
|
21397
|
+
const code = text2.charCodeAt(i);
|
|
21398
|
+
if (code <= 127) {
|
|
21399
|
+
bytes += 1;
|
|
21400
|
+
} else if (code <= 2047) {
|
|
21401
|
+
bytes += 2;
|
|
21402
|
+
} else if (code >= 55296 && code <= 56319 && i + 1 < text2.length) {
|
|
21403
|
+
const next = text2.charCodeAt(i + 1);
|
|
21404
|
+
if (next >= 56320 && next <= 57343) {
|
|
21405
|
+
bytes += 4;
|
|
21406
|
+
i += 1;
|
|
21407
|
+
} else {
|
|
21408
|
+
bytes += 3;
|
|
21409
|
+
}
|
|
21410
|
+
} else {
|
|
21411
|
+
bytes += 3;
|
|
21412
|
+
}
|
|
21413
|
+
}
|
|
21414
|
+
return bytes;
|
|
21415
|
+
}
|
|
21331
21416
|
var remoteGroupRoomIdSchema = external_exports.string().regex(/^remote:[A-Za-z0-9_-]{8,512}$/u);
|
|
21332
21417
|
var groupRoomIdSchema = external_exports.union([external_exports.uuidv4(), remoteGroupRoomIdSchema]);
|
|
21333
21418
|
var groupMemberIdSchema = external_exports.uuidv4();
|
|
@@ -21336,7 +21421,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21336
21421
|
var groupMemberStatusSchema = external_exports.enum(["active", "muted", "removed"]);
|
|
21337
21422
|
var nonnegativeInteger = external_exports.int().nonnegative();
|
|
21338
21423
|
var positiveInteger = external_exports.int().positive();
|
|
21339
|
-
var maxAgentHopsSchema =
|
|
21424
|
+
var maxAgentHopsSchema = nonnegativeInteger.max(MAX_GROUP_AGENT_HOPS);
|
|
21340
21425
|
var nonblankString = external_exports.string().refine((value) => value.trim().length > 0);
|
|
21341
21426
|
var timestamp = external_exports.iso.datetime();
|
|
21342
21427
|
var optionalMemberEdits = {
|
|
@@ -21354,28 +21439,42 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21354
21439
|
roleSnapshot: threadRoleSnapshotSchema.optional(),
|
|
21355
21440
|
harnessId: harnessIdSchema,
|
|
21356
21441
|
status: groupMemberStatusSchema,
|
|
21442
|
+
projectless: external_exports.boolean().optional(),
|
|
21443
|
+
showInSidebar: external_exports.boolean().optional(),
|
|
21357
21444
|
joinedAtSeq: nonnegativeInteger,
|
|
21358
21445
|
lastDeliveredSeq: nonnegativeInteger,
|
|
21359
21446
|
lastRosterVersion: nonnegativeInteger,
|
|
21447
|
+
lastMemoryVersion: nonnegativeInteger.default(0),
|
|
21360
21448
|
createdAt: timestamp
|
|
21361
21449
|
});
|
|
21450
|
+
var groupProjectlessWorkspaceSchema = external_exports.object({
|
|
21451
|
+
workspaceRoot: nonblankString,
|
|
21452
|
+
outputDirectory: nonblankString
|
|
21453
|
+
});
|
|
21362
21454
|
var groupRoomRemoteHostSchema = external_exports.object({
|
|
21363
21455
|
hostId: nonblankString,
|
|
21364
21456
|
displayName: nonblankString,
|
|
21365
21457
|
state: nonblankString.optional(),
|
|
21366
21458
|
color: external_exports.string().optional(),
|
|
21367
|
-
filePreview: external_exports.boolean().optional()
|
|
21459
|
+
filePreview: external_exports.boolean().optional(),
|
|
21460
|
+
memberSidebarVisibility: external_exports.boolean().optional(),
|
|
21461
|
+
sharedMemory: external_exports.boolean().optional()
|
|
21368
21462
|
});
|
|
21369
|
-
var
|
|
21463
|
+
var groupRoomObjectSchema = external_exports.object({
|
|
21370
21464
|
roomId: groupRoomIdSchema,
|
|
21371
21465
|
title: nonblankString,
|
|
21372
21466
|
defaultCwd: nonblankString,
|
|
21467
|
+
projectlessWorkspace: groupProjectlessWorkspaceSchema.optional(),
|
|
21373
21468
|
unmentionedPolicy: groupUnmentionedPolicySchema.default("none"),
|
|
21469
|
+
unmentionedMemberId: groupMemberIdSchema.optional(),
|
|
21374
21470
|
allowAgentMentions: external_exports.boolean().default(true),
|
|
21375
21471
|
maxAgentHops: maxAgentHopsSchema.default(DEFAULT_GROUP_MAX_AGENT_HOPS),
|
|
21472
|
+
relayHopLimit: maxAgentHopsSchema.optional(),
|
|
21376
21473
|
lastSeq: nonnegativeInteger,
|
|
21377
21474
|
lastSpeakerMemberId: groupMemberIdSchema.optional(),
|
|
21378
21475
|
rosterVersion: nonnegativeInteger,
|
|
21476
|
+
memoryVersion: nonnegativeInteger.default(0),
|
|
21477
|
+
memorySha256: external_exports.string().regex(/^[0-9a-f]{64}$/u).optional(),
|
|
21379
21478
|
humanEpoch: nonnegativeInteger,
|
|
21380
21479
|
relayPaused: external_exports.boolean(),
|
|
21381
21480
|
pinned: external_exports.boolean(),
|
|
@@ -21383,7 +21482,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21383
21482
|
updatedAt: timestamp,
|
|
21384
21483
|
members: external_exports.array(groupMemberSchema),
|
|
21385
21484
|
remote: groupRoomRemoteHostSchema.optional()
|
|
21386
|
-
}).superRefine(({ members: members2 }, context) => {
|
|
21485
|
+
}).superRefine(({ members: members2, unmentionedPolicy, unmentionedMemberId }, context) => {
|
|
21486
|
+
if (unmentionedMemberId !== void 0 && unmentionedPolicy !== "none") {
|
|
21487
|
+
context.addIssue({
|
|
21488
|
+
code: "custom",
|
|
21489
|
+
path: ["unmentionedMemberId"],
|
|
21490
|
+
message: 'A default member can only be set when unmentionedPolicy is "none"'
|
|
21491
|
+
});
|
|
21492
|
+
}
|
|
21387
21493
|
const handles = /* @__PURE__ */ new Set();
|
|
21388
21494
|
for (const [index, { handle, status }] of members2.entries()) {
|
|
21389
21495
|
if (status === "removed")
|
|
@@ -21398,6 +21504,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21398
21504
|
handles.add(handle);
|
|
21399
21505
|
}
|
|
21400
21506
|
});
|
|
21507
|
+
var groupRoomSchema = external_exports.preprocess((value) => {
|
|
21508
|
+
if (typeof value === "object" && value !== null && !Array.isArray(value)) {
|
|
21509
|
+
const record3 = value;
|
|
21510
|
+
if (record3.unmentionedPolicy === "member" && record3.unmentionedMemberId !== void 0) {
|
|
21511
|
+
return { ...record3, unmentionedPolicy: "none" };
|
|
21512
|
+
}
|
|
21513
|
+
}
|
|
21514
|
+
return value;
|
|
21515
|
+
}, groupRoomObjectSchema);
|
|
21401
21516
|
var groupAttachmentSchema = external_exports.object({
|
|
21402
21517
|
kind: external_exports.enum(["image", "file"]),
|
|
21403
21518
|
attachmentId: nonblankString.max(256),
|
|
@@ -21424,6 +21539,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21424
21539
|
mentionedMemberIds: external_exports.array(groupMemberIdSchema),
|
|
21425
21540
|
mentionAll: external_exports.boolean().optional(),
|
|
21426
21541
|
hopCount: nonnegativeInteger,
|
|
21542
|
+
durationMs: nonnegativeInteger.optional(),
|
|
21427
21543
|
createdAt: timestamp
|
|
21428
21544
|
});
|
|
21429
21545
|
var newThreadOptions = {
|
|
@@ -21450,8 +21566,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21450
21566
|
var GROUPS_ADD_MEMBER_METHOD = "codexhost/groups/member/add";
|
|
21451
21567
|
var GROUPS_UPDATE_MEMBER_METHOD = "codexhost/groups/member/update";
|
|
21452
21568
|
var GROUPS_REMOVE_MEMBER_METHOD = "codexhost/groups/member/remove";
|
|
21569
|
+
var GROUPS_REBIND_MEMBER_METHOD = "codexhost/groups/member/rebind";
|
|
21453
21570
|
var GROUPS_POST_MESSAGE_METHOD = "codexhost/groups/message/post";
|
|
21454
21571
|
var GROUPS_READ_MESSAGES_METHOD = "codexhost/groups/messages/read";
|
|
21572
|
+
var GROUPS_READ_MEMORY_METHOD = "codexhost/groups/memory/read";
|
|
21573
|
+
var GROUPS_UPDATE_MEMORY_METHOD = "codexhost/groups/memory/update";
|
|
21574
|
+
var GROUPS_INSPECT_CWD_METHOD = "codexhost/groups/cwd/inspect";
|
|
21575
|
+
var GROUPS_CHANGED_EVENT = "codexhost/groups/changed";
|
|
21455
21576
|
var roomIdentity = { roomId: groupRoomIdSchema };
|
|
21456
21577
|
var memberIdentity = { ...roomIdentity, memberId: groupMemberIdSchema };
|
|
21457
21578
|
var roomEdits = {
|
|
@@ -21474,15 +21595,24 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21474
21595
|
});
|
|
21475
21596
|
var groupsCreateParamsSchema = external_exports.strictObject({
|
|
21476
21597
|
...roomEdits,
|
|
21477
|
-
defaultCwd: nonblankString,
|
|
21598
|
+
defaultCwd: nonblankString.optional(),
|
|
21478
21599
|
members: external_exports.array(groupCreateMemberInputSchema)
|
|
21479
21600
|
});
|
|
21480
21601
|
var groupsCreateResultSchema = external_exports.object({ room: groupRoomSchema });
|
|
21481
21602
|
var groupsUpdateParamsSchema = external_exports.strictObject({
|
|
21482
21603
|
...roomIdentity,
|
|
21483
21604
|
...roomEdits,
|
|
21605
|
+
unmentionedMemberId: groupMemberIdSchema.nullable().optional(),
|
|
21484
21606
|
pinned: external_exports.boolean().optional(),
|
|
21485
21607
|
relayPaused: external_exports.boolean().optional()
|
|
21608
|
+
}).superRefine(({ unmentionedPolicy, unmentionedMemberId }, context) => {
|
|
21609
|
+
if (unmentionedMemberId !== void 0 && unmentionedMemberId !== null && unmentionedPolicy !== void 0 && unmentionedPolicy !== "none") {
|
|
21610
|
+
context.addIssue({
|
|
21611
|
+
code: "custom",
|
|
21612
|
+
path: ["unmentionedMemberId"],
|
|
21613
|
+
message: 'A default member can only be set when unmentionedPolicy is "none"'
|
|
21614
|
+
});
|
|
21615
|
+
}
|
|
21486
21616
|
});
|
|
21487
21617
|
var groupsDeleteParamsSchema = external_exports.strictObject(roomIdentity);
|
|
21488
21618
|
var groupsDeleteResultSchema = external_exports.object({ deleted: external_exports.boolean() });
|
|
@@ -21497,17 +21627,94 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21497
21627
|
var groupsUpdateMemberParamsSchema = external_exports.strictObject({
|
|
21498
21628
|
...memberIdentity,
|
|
21499
21629
|
...optionalMemberEdits,
|
|
21500
|
-
status: groupMemberStatusSchema.optional()
|
|
21630
|
+
status: groupMemberStatusSchema.optional(),
|
|
21631
|
+
showInSidebar: external_exports.boolean().optional()
|
|
21501
21632
|
});
|
|
21502
21633
|
var groupsRemoveMemberParamsSchema = external_exports.strictObject(memberIdentity);
|
|
21634
|
+
var groupsRebindMemberParamsSchema = external_exports.strictObject({
|
|
21635
|
+
...memberIdentity,
|
|
21636
|
+
threadId: hostThreadIdSchema,
|
|
21637
|
+
redeliverFrom: positiveInteger.optional(),
|
|
21638
|
+
note: external_exports.string().optional()
|
|
21639
|
+
});
|
|
21640
|
+
var groupCliRebindMemberParamsSchema = external_exports.strictObject({
|
|
21641
|
+
...roomIdentity,
|
|
21642
|
+
memberId: groupMemberIdSchema.optional(),
|
|
21643
|
+
memberHandle: groupMemberHandleSchema.optional(),
|
|
21644
|
+
threadId: hostThreadIdSchema,
|
|
21645
|
+
redeliverFrom: positiveInteger.optional(),
|
|
21646
|
+
note: external_exports.string().optional()
|
|
21647
|
+
}).refine((value) => value.memberId !== void 0 !== (value.memberHandle !== void 0), "Provide exactly one of memberId or memberHandle");
|
|
21648
|
+
var groupsRebindMemberResultSchema = external_exports.object({
|
|
21649
|
+
room: groupRoomSchema,
|
|
21650
|
+
member: groupMemberSchema,
|
|
21651
|
+
previousThreadId: hostThreadIdSchema,
|
|
21652
|
+
awakened: external_exports.boolean()
|
|
21653
|
+
});
|
|
21654
|
+
var groupCliListMemberSchema = external_exports.object({
|
|
21655
|
+
memberId: groupMemberIdSchema,
|
|
21656
|
+
threadId: hostThreadIdSchema,
|
|
21657
|
+
handle: groupMemberHandleSchema,
|
|
21658
|
+
displayName: nonblankString,
|
|
21659
|
+
status: groupMemberStatusSchema,
|
|
21660
|
+
harnessId: harnessIdSchema,
|
|
21661
|
+
roleSlug: roleSlugSchema.optional(),
|
|
21662
|
+
roleName: nonblankString.optional()
|
|
21663
|
+
});
|
|
21664
|
+
var groupCliListEntrySchema = external_exports.object({
|
|
21665
|
+
roomId: groupRoomIdSchema,
|
|
21666
|
+
title: nonblankString,
|
|
21667
|
+
memberCount: nonnegativeInteger,
|
|
21668
|
+
updatedAt: timestamp,
|
|
21669
|
+
member: groupCliListMemberSchema.optional()
|
|
21670
|
+
});
|
|
21671
|
+
var groupCliListParamsSchema = external_exports.strictObject({
|
|
21672
|
+
threadId: hostThreadIdSchema.optional()
|
|
21673
|
+
});
|
|
21674
|
+
var groupCliListResultSchema = external_exports.object({
|
|
21675
|
+
rooms: external_exports.array(groupCliListEntrySchema)
|
|
21676
|
+
});
|
|
21503
21677
|
var groupsPostMessageParamsSchema = external_exports.strictObject({
|
|
21504
21678
|
...roomIdentity,
|
|
21505
21679
|
content: external_exports.string().max(64e3),
|
|
21506
21680
|
attachments: external_exports.array(groupAttachmentSchema).max(12).optional(),
|
|
21507
21681
|
replyToSeq: positiveInteger.optional(),
|
|
21508
21682
|
targetMemberIds: external_exports.array(groupMemberIdSchema).optional(),
|
|
21509
|
-
mentionAll: external_exports.boolean().optional()
|
|
21510
|
-
|
|
21683
|
+
mentionAll: external_exports.boolean().optional(),
|
|
21684
|
+
notice: external_exports.boolean().optional()
|
|
21685
|
+
}).superRefine((value, context) => {
|
|
21686
|
+
if (value.notice === true) {
|
|
21687
|
+
if (value.content.trim().length === 0) {
|
|
21688
|
+
context.addIssue({
|
|
21689
|
+
code: "custom",
|
|
21690
|
+
path: ["content"],
|
|
21691
|
+
message: "Notice content is required"
|
|
21692
|
+
});
|
|
21693
|
+
}
|
|
21694
|
+
if (value.content.length > GROUP_NOTICE_MAX_LENGTH) {
|
|
21695
|
+
context.addIssue({
|
|
21696
|
+
code: "custom",
|
|
21697
|
+
path: ["content"],
|
|
21698
|
+
message: `Notice content must be at most ${GROUP_NOTICE_MAX_LENGTH} characters`
|
|
21699
|
+
});
|
|
21700
|
+
}
|
|
21701
|
+
if ((value.targetMemberIds?.length ?? 0) > 0 || value.mentionAll === true || (value.attachments?.length ?? 0) > 0) {
|
|
21702
|
+
context.addIssue({
|
|
21703
|
+
code: "custom",
|
|
21704
|
+
path: ["notice"],
|
|
21705
|
+
message: "System notices cannot target members or include attachments"
|
|
21706
|
+
});
|
|
21707
|
+
}
|
|
21708
|
+
return;
|
|
21709
|
+
}
|
|
21710
|
+
if (value.content.trim().length === 0 && (value.attachments?.length ?? 0) === 0) {
|
|
21711
|
+
context.addIssue({
|
|
21712
|
+
code: "custom",
|
|
21713
|
+
path: ["content"],
|
|
21714
|
+
message: "Message content or at least one attachment is required"
|
|
21715
|
+
});
|
|
21716
|
+
}
|
|
21717
|
+
});
|
|
21511
21718
|
var groupsPostMessageResultSchema = external_exports.object({
|
|
21512
21719
|
room: groupRoomSchema,
|
|
21513
21720
|
message: groupMessageSchema,
|
|
@@ -21524,6 +21731,31 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21524
21731
|
messages: external_exports.array(groupMessageSchema),
|
|
21525
21732
|
totalSeq: nonnegativeInteger
|
|
21526
21733
|
});
|
|
21734
|
+
var groupsReadMemoryParamsSchema = external_exports.strictObject(roomIdentity);
|
|
21735
|
+
var groupsReadMemoryResultSchema = external_exports.object({
|
|
21736
|
+
...roomIdentity,
|
|
21737
|
+
memoryVersion: nonnegativeInteger,
|
|
21738
|
+
content: external_exports.string(),
|
|
21739
|
+
updatedAt: timestamp
|
|
21740
|
+
});
|
|
21741
|
+
var groupsUpdateMemoryParamsSchema = external_exports.strictObject({
|
|
21742
|
+
...roomIdentity,
|
|
21743
|
+
content: external_exports.string().refine((value) => groupUtf8ByteLength(value) <= GROUP_MEMORY_MAX_BYTES, `Shared room memory must be at most ${GROUP_MEMORY_MAX_BYTES} UTF-8 bytes`),
|
|
21744
|
+
expectedVersion: nonnegativeInteger.optional()
|
|
21745
|
+
});
|
|
21746
|
+
var groupsUpdateMemoryResultSchema = external_exports.object({
|
|
21747
|
+
room: groupRoomSchema,
|
|
21748
|
+
memoryVersion: nonnegativeInteger,
|
|
21749
|
+
content: external_exports.string(),
|
|
21750
|
+
updatedAt: timestamp
|
|
21751
|
+
});
|
|
21752
|
+
var groupsInspectCwdParamsSchema = external_exports.strictObject({
|
|
21753
|
+
cwd: nonblankString,
|
|
21754
|
+
roomId: groupRoomIdSchema.optional()
|
|
21755
|
+
});
|
|
21756
|
+
var groupsInspectCwdResultSchema = external_exports.object({
|
|
21757
|
+
isGitRepo: external_exports.boolean()
|
|
21758
|
+
});
|
|
21527
21759
|
|
|
21528
21760
|
// ../shared-contracts/dist/thread-archive-confirm.js
|
|
21529
21761
|
var THREAD_ARCHIVE_CONFIRM_METHOD = "codexhost/thread/archive/confirm";
|
|
@@ -21570,6 +21802,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21570
21802
|
"kiro-cli",
|
|
21571
21803
|
"codebuddy",
|
|
21572
21804
|
"workbuddy",
|
|
21805
|
+
"workbuddy-cn",
|
|
21573
21806
|
"devin",
|
|
21574
21807
|
"hermes",
|
|
21575
21808
|
"qoder",
|
|
@@ -21651,6 +21884,149 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21651
21884
|
}).nullable()
|
|
21652
21885
|
});
|
|
21653
21886
|
|
|
21887
|
+
// ../shared-contracts/dist/voice.js
|
|
21888
|
+
var VOICE_AUDIO_MAX_BYTES = 10 * 1024 * 1024;
|
|
21889
|
+
var VOICE_CONFIG_GET_METHOD = "codexhost/voice/config/get";
|
|
21890
|
+
var VOICE_CONFIG_SET_METHOD = "codexhost/voice/config/set";
|
|
21891
|
+
var voiceProviderModeSchema = external_exports.enum([
|
|
21892
|
+
"codex",
|
|
21893
|
+
"openai-compatible",
|
|
21894
|
+
"deepseek-asr",
|
|
21895
|
+
"openai-chat-audio"
|
|
21896
|
+
]);
|
|
21897
|
+
var voiceAudioFormatSchema = external_exports.enum(["native", "wav"]);
|
|
21898
|
+
var SENSITIVE_VOICE_QUERY_PARAM = /(?:^|[_-])(?:key|token|secret|password|passwd|pwd|auth|authorization|credential|signature|sig)(?:$|[_-])|(?:api|access|auth|client|app|private|bearer)[_-]?(?:key|token|secret)/i;
|
|
21899
|
+
function isLoopbackVoiceHost(hostname3) {
|
|
21900
|
+
const bare = hostname3.trim().toLowerCase().replace(/^\[|\]$/g, "");
|
|
21901
|
+
if (bare === "localhost" || bare.endsWith(".localhost") || bare === "::1")
|
|
21902
|
+
return true;
|
|
21903
|
+
return /^127(?:\.(?:25[0-5]|2[0-4]\d|1?\d?\d)){3}$/.test(bare);
|
|
21904
|
+
}
|
|
21905
|
+
function isValidVoiceBaseUrl(value) {
|
|
21906
|
+
const trimmed = value.trim();
|
|
21907
|
+
if (!trimmed)
|
|
21908
|
+
return false;
|
|
21909
|
+
try {
|
|
21910
|
+
const parsed = new URL(trimmed);
|
|
21911
|
+
if (!parsed.hostname)
|
|
21912
|
+
return false;
|
|
21913
|
+
if (parsed.username !== "" || parsed.password !== "" || parsed.hash !== "")
|
|
21914
|
+
return false;
|
|
21915
|
+
if (parsed.protocol === "https:") {
|
|
21916
|
+
} else if (parsed.protocol === "http:") {
|
|
21917
|
+
if (!isLoopbackVoiceHost(parsed.hostname))
|
|
21918
|
+
return false;
|
|
21919
|
+
} else {
|
|
21920
|
+
return false;
|
|
21921
|
+
}
|
|
21922
|
+
for (const key2 of parsed.searchParams.keys()) {
|
|
21923
|
+
if (SENSITIVE_VOICE_QUERY_PARAM.test(key2))
|
|
21924
|
+
return false;
|
|
21925
|
+
}
|
|
21926
|
+
return true;
|
|
21927
|
+
} catch {
|
|
21928
|
+
return false;
|
|
21929
|
+
}
|
|
21930
|
+
}
|
|
21931
|
+
var voiceBaseUrlSchema = external_exports.string().max(2048).refine((value) => value === "" || isValidVoiceBaseUrl(value), {
|
|
21932
|
+
message: "Base URL must be empty or a valid https:// URL (http:// is allowed only for localhost/127.0.0.1/[::1]) without embedded credentials"
|
|
21933
|
+
});
|
|
21934
|
+
var voiceProviderConfigSnapshotSchema = external_exports.object({
|
|
21935
|
+
baseUrl: voiceBaseUrlSchema,
|
|
21936
|
+
model: external_exports.string().max(256),
|
|
21937
|
+
hasApiKey: external_exports.boolean(),
|
|
21938
|
+
apiKeyHint: external_exports.string().max(64).optional(),
|
|
21939
|
+
apiKey: external_exports.never().optional()
|
|
21940
|
+
});
|
|
21941
|
+
var voiceConfigSnapshotSchema = external_exports.object({
|
|
21942
|
+
mode: voiceProviderModeSchema,
|
|
21943
|
+
baseUrl: voiceBaseUrlSchema,
|
|
21944
|
+
model: external_exports.string().max(256),
|
|
21945
|
+
hasApiKey: external_exports.boolean(),
|
|
21946
|
+
apiKeyHint: external_exports.string().max(64).optional(),
|
|
21947
|
+
apiKey: external_exports.never().optional(),
|
|
21948
|
+
audioFormat: voiceAudioFormatSchema.optional(),
|
|
21949
|
+
providers: external_exports.object({
|
|
21950
|
+
"openai-compatible": voiceProviderConfigSnapshotSchema,
|
|
21951
|
+
"deepseek-asr": voiceProviderConfigSnapshotSchema,
|
|
21952
|
+
"openai-chat-audio": voiceProviderConfigSnapshotSchema
|
|
21953
|
+
}).optional(),
|
|
21954
|
+
codexAvailable: external_exports.boolean(),
|
|
21955
|
+
available: external_exports.boolean()
|
|
21956
|
+
});
|
|
21957
|
+
var voiceConfigUpdateParamsSchema = external_exports.object({
|
|
21958
|
+
mode: voiceProviderModeSchema,
|
|
21959
|
+
baseUrl: external_exports.string().max(2048).optional(),
|
|
21960
|
+
model: external_exports.string().max(256).optional(),
|
|
21961
|
+
apiKey: external_exports.string().max(4096).nullable().optional()
|
|
21962
|
+
}).strict().superRefine((value, ctx) => {
|
|
21963
|
+
const trimmedBaseUrl = value.baseUrl?.trim() ?? "";
|
|
21964
|
+
const trimmedModel = value.model?.trim() ?? "";
|
|
21965
|
+
if (value.mode === "openai-compatible") {
|
|
21966
|
+
if (!isValidVoiceBaseUrl(trimmedBaseUrl)) {
|
|
21967
|
+
ctx.addIssue({
|
|
21968
|
+
code: external_exports.ZodIssueCode.custom,
|
|
21969
|
+
path: ["baseUrl"],
|
|
21970
|
+
message: "OpenAI-compatible mode requires a valid https:// base URL (http:// is allowed only for loopback hosts)"
|
|
21971
|
+
});
|
|
21972
|
+
}
|
|
21973
|
+
return;
|
|
21974
|
+
}
|
|
21975
|
+
if (value.mode === "openai-chat-audio") {
|
|
21976
|
+
if (!isValidVoiceBaseUrl(trimmedBaseUrl)) {
|
|
21977
|
+
ctx.addIssue({
|
|
21978
|
+
code: external_exports.ZodIssueCode.custom,
|
|
21979
|
+
path: ["baseUrl"],
|
|
21980
|
+
message: "Multimodal Chat Audio mode requires a valid https:// base URL (http:// is allowed only for loopback hosts)"
|
|
21981
|
+
});
|
|
21982
|
+
}
|
|
21983
|
+
if (!trimmedModel) {
|
|
21984
|
+
ctx.addIssue({
|
|
21985
|
+
code: external_exports.ZodIssueCode.custom,
|
|
21986
|
+
path: ["model"],
|
|
21987
|
+
message: "Multimodal Chat Audio mode requires a model name"
|
|
21988
|
+
});
|
|
21989
|
+
}
|
|
21990
|
+
return;
|
|
21991
|
+
}
|
|
21992
|
+
if (trimmedBaseUrl !== "" && !isValidVoiceBaseUrl(trimmedBaseUrl)) {
|
|
21993
|
+
ctx.addIssue({
|
|
21994
|
+
code: external_exports.ZodIssueCode.custom,
|
|
21995
|
+
path: ["baseUrl"],
|
|
21996
|
+
message: "Base URL must be empty or a valid https:// URL (http:// is allowed only for loopback hosts)"
|
|
21997
|
+
});
|
|
21998
|
+
}
|
|
21999
|
+
});
|
|
22000
|
+
var voiceAudioMimeTypeSchema = external_exports.string().regex(/^audio\/[a-z0-9.+-]+(?:\s*;[^\r\n]*)?$/i);
|
|
22001
|
+
var voiceStatusResultSchema = external_exports.object({
|
|
22002
|
+
available: external_exports.boolean(),
|
|
22003
|
+
audioFormat: voiceAudioFormatSchema.optional()
|
|
22004
|
+
});
|
|
22005
|
+
var voiceTranscribeParamsSchema = external_exports.object({ path: external_exports.string().min(1), mimeType: voiceAudioMimeTypeSchema }).strict();
|
|
22006
|
+
var voiceErrorCodeSchema = external_exports.enum([
|
|
22007
|
+
"credentials-unavailable",
|
|
22008
|
+
"login-expired",
|
|
22009
|
+
"rate-limited",
|
|
22010
|
+
"service-rejected",
|
|
22011
|
+
"host-incompatible",
|
|
22012
|
+
"network",
|
|
22013
|
+
"timeout",
|
|
22014
|
+
"audio-empty",
|
|
22015
|
+
"audio-too-large",
|
|
22016
|
+
"audio-format",
|
|
22017
|
+
"audio-invalid"
|
|
22018
|
+
]);
|
|
22019
|
+
var voiceTranscribeResultSchema = external_exports.discriminatedUnion("ok", [
|
|
22020
|
+
external_exports.object({ ok: external_exports.literal(true), text: external_exports.string() }).strict(),
|
|
22021
|
+
external_exports.object({ ok: external_exports.literal(false), error: external_exports.object({ code: voiceErrorCodeSchema }).strict() }).strict()
|
|
22022
|
+
]);
|
|
22023
|
+
|
|
22024
|
+
// ../shared-contracts/dist/github-star.js
|
|
22025
|
+
var GITHUB_STAR_STATUS_METHOD = "codexhost/githubStar/status";
|
|
22026
|
+
var GITHUB_STAR_ADD_METHOD = "codexhost/githubStar/star";
|
|
22027
|
+
var githubStarParamsSchema = external_exports.object({}).strict();
|
|
22028
|
+
var githubStarStateSchema = external_exports.object({ ghAvailable: external_exports.boolean(), starred: external_exports.boolean() });
|
|
22029
|
+
|
|
21654
22030
|
// ../shared-contracts/dist/client-channel.js
|
|
21655
22031
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
21656
22032
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -21709,10 +22085,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21709
22085
|
GROUPS_ADD_MEMBER_METHOD,
|
|
21710
22086
|
GROUPS_UPDATE_MEMBER_METHOD,
|
|
21711
22087
|
GROUPS_REMOVE_MEMBER_METHOD,
|
|
22088
|
+
GROUPS_REBIND_MEMBER_METHOD,
|
|
21712
22089
|
GROUPS_POST_MESSAGE_METHOD,
|
|
21713
22090
|
GROUPS_READ_MESSAGES_METHOD,
|
|
22091
|
+
GROUPS_READ_MEMORY_METHOD,
|
|
22092
|
+
GROUPS_UPDATE_MEMORY_METHOD,
|
|
22093
|
+
GROUPS_INSPECT_CWD_METHOD,
|
|
21714
22094
|
"codexhost/voice/status",
|
|
21715
22095
|
"codexhost/voice/transcribe",
|
|
22096
|
+
VOICE_CONFIG_GET_METHOD,
|
|
22097
|
+
VOICE_CONFIG_SET_METHOD,
|
|
21716
22098
|
"codexhost/harness/display-settings/get",
|
|
21717
22099
|
"codexhost/harness/display-settings/set",
|
|
21718
22100
|
"codexhost/harness/display-settings/capabilities",
|
|
@@ -21778,6 +22160,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21778
22160
|
"codexhost/harness/session-import/list",
|
|
21779
22161
|
"codexhost/harness/session-import/import",
|
|
21780
22162
|
// Host settings shared across Desktop and Web.
|
|
22163
|
+
GITHUB_STAR_STATUS_METHOD,
|
|
22164
|
+
GITHUB_STAR_ADD_METHOD,
|
|
21781
22165
|
...HOST_EXTENSION_MANAGEMENT_METHODS,
|
|
21782
22166
|
"codexhost/harness/installation",
|
|
21783
22167
|
"codexhost/harness/installation/start",
|
|
@@ -22117,28 +22501,332 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22117
22501
|
})).max(256)
|
|
22118
22502
|
});
|
|
22119
22503
|
|
|
22120
|
-
// ../shared-contracts/dist/
|
|
22121
|
-
var
|
|
22122
|
-
|
|
22123
|
-
|
|
22124
|
-
|
|
22125
|
-
|
|
22126
|
-
|
|
22127
|
-
|
|
22128
|
-
|
|
22129
|
-
|
|
22130
|
-
|
|
22131
|
-
|
|
22132
|
-
|
|
22133
|
-
|
|
22134
|
-
|
|
22135
|
-
|
|
22136
|
-
|
|
22137
|
-
|
|
22138
|
-
|
|
22139
|
-
|
|
22140
|
-
|
|
22141
|
-
|
|
22504
|
+
// ../shared-contracts/dist/host-extension-ranking.js
|
|
22505
|
+
var HOST_EXTENSION_MARKETPLACE_SORT_MODES = [
|
|
22506
|
+
"recommended",
|
|
22507
|
+
"downloads",
|
|
22508
|
+
"newest",
|
|
22509
|
+
"updated"
|
|
22510
|
+
];
|
|
22511
|
+
var HOST_EXTENSION_FEATURED_LIMIT = 3;
|
|
22512
|
+
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
22513
|
+
var NEW_BOOST_WINDOW_DAYS = 10;
|
|
22514
|
+
var NEW_BOOST_MAX = 0.5;
|
|
22515
|
+
var UPDATE_BOOST_WINDOW_DAYS = 14;
|
|
22516
|
+
var UPDATE_BOOST_MAX = 0.15;
|
|
22517
|
+
var FALLBACK_VELOCITY_DEFAULT_AGE_DAYS = 30;
|
|
22518
|
+
var TOP_DIVERSITY_WINDOW = 6;
|
|
22519
|
+
var TOP_DIVERSITY_MAX_PER_GROUP = 2;
|
|
22520
|
+
var CATEGORY_SEARCH_LABELS = Object.freeze({
|
|
22521
|
+
appearance: ["appearance", "\u5916\u89C2\u4E3B\u9898"],
|
|
22522
|
+
interface: ["interface", "\u754C\u9762\u589E\u5F3A"],
|
|
22523
|
+
workflow: ["workflow", "\u6548\u7387\u4E0E\u534F\u4F5C"],
|
|
22524
|
+
analytics: ["analytics", "\u6570\u636E\u4E0E\u7EDF\u8BA1"],
|
|
22525
|
+
integrations: ["integrations", "\u5916\u90E8\u96C6\u6210"],
|
|
22526
|
+
tools: ["tools", "\u5B9E\u7528\u5DE5\u5177"]
|
|
22527
|
+
});
|
|
22528
|
+
function parseTimestampMs(raw) {
|
|
22529
|
+
if (!raw)
|
|
22530
|
+
return null;
|
|
22531
|
+
const parsed = Date.parse(raw);
|
|
22532
|
+
return Number.isFinite(parsed) ? parsed : null;
|
|
22533
|
+
}
|
|
22534
|
+
function daysSince(raw, nowMs) {
|
|
22535
|
+
const timestamp2 = parseTimestampMs(raw);
|
|
22536
|
+
if (timestamp2 === null)
|
|
22537
|
+
return null;
|
|
22538
|
+
return Math.max(0, (nowMs - timestamp2) / DAY_MS);
|
|
22539
|
+
}
|
|
22540
|
+
function isHostExtensionCompatibleWithHost(entry, host) {
|
|
22541
|
+
if (!entry.targets.includes(host))
|
|
22542
|
+
return false;
|
|
22543
|
+
if (entry.categories?.includes("appearance")) {
|
|
22544
|
+
if (host === "desktop" && Boolean(entry.apis.web) && !entry.apis.desktop) {
|
|
22545
|
+
return false;
|
|
22546
|
+
}
|
|
22547
|
+
if (host === "web" && Boolean(entry.apis.desktop) && !entry.apis.web) {
|
|
22548
|
+
return false;
|
|
22549
|
+
}
|
|
22550
|
+
}
|
|
22551
|
+
return true;
|
|
22552
|
+
}
|
|
22553
|
+
function scoreHostExtensionForRecommended(entry, nowMs = Date.now()) {
|
|
22554
|
+
const downloads = Math.max(0, entry.downloads ?? 0);
|
|
22555
|
+
const stars = Math.max(0, entry.stars ?? 0);
|
|
22556
|
+
const publishedAgeDays = daysSince(entry.publishedAt, nowMs);
|
|
22557
|
+
const updatedAgeDays = daysSince(entry.updatedAt, nowMs);
|
|
22558
|
+
let trendTerm;
|
|
22559
|
+
if (typeof entry.downloads7d === "number" && Number.isFinite(entry.downloads7d) && entry.downloads7d >= 0) {
|
|
22560
|
+
trendTerm = 0.55 * Math.log10(entry.downloads7d + 1);
|
|
22561
|
+
} else {
|
|
22562
|
+
const effectiveAge = publishedAgeDays ?? FALLBACK_VELOCITY_DEFAULT_AGE_DAYS;
|
|
22563
|
+
const velocity = downloads / Math.pow(effectiveAge + 3, 0.75);
|
|
22564
|
+
trendTerm = 0.5 * Math.log10(velocity + 1);
|
|
22565
|
+
}
|
|
22566
|
+
const historyTerm = 0.25 * Math.log10(downloads + 1);
|
|
22567
|
+
const starsTerm = 0.2 * Math.log10(stars + 1);
|
|
22568
|
+
const hasIcon = Boolean(entry.icon);
|
|
22569
|
+
const hasScreenshots = (entry.screenshots?.length ?? 0) > 0;
|
|
22570
|
+
const newBoost = hasIcon && hasScreenshots && publishedAgeDays !== null && publishedAgeDays < NEW_BOOST_WINDOW_DAYS ? NEW_BOOST_MAX * Math.max(0, 1 - publishedAgeDays / NEW_BOOST_WINDOW_DAYS) : 0;
|
|
22571
|
+
const updBoost = updatedAgeDays !== null && updatedAgeDays < UPDATE_BOOST_WINDOW_DAYS ? UPDATE_BOOST_MAX * Math.max(0, 1 - updatedAgeDays / UPDATE_BOOST_WINDOW_DAYS) : 0;
|
|
22572
|
+
const qualityScore = (hasIcon ? 0.15 : 0) + (hasScreenshots ? 0.15 : 0);
|
|
22573
|
+
const score = trendTerm + historyTerm + starsTerm + newBoost + updBoost + qualityScore;
|
|
22574
|
+
return Number.isFinite(score) ? score : 0;
|
|
22575
|
+
}
|
|
22576
|
+
function scoreHostExtensionSearchRelevance(entry, rawQuery) {
|
|
22577
|
+
const query = rawQuery.trim().toLowerCase();
|
|
22578
|
+
if (!query)
|
|
22579
|
+
return 0;
|
|
22580
|
+
const tokens = query.split(/\s+/u).filter(Boolean);
|
|
22581
|
+
if (tokens.length === 0)
|
|
22582
|
+
return 0;
|
|
22583
|
+
const idText = entry.id.toLowerCase();
|
|
22584
|
+
const nameEn = entry.name.en.toLowerCase();
|
|
22585
|
+
const nameZh = entry.name["zh-CN"].toLowerCase();
|
|
22586
|
+
const titleFields = [idText, nameEn, nameZh];
|
|
22587
|
+
const titleJoined = titleFields.join("\n");
|
|
22588
|
+
const authorText = entry.author.toLowerCase();
|
|
22589
|
+
const categoryTerms = [];
|
|
22590
|
+
for (const cat of entry.categories ?? []) {
|
|
22591
|
+
categoryTerms.push(...CATEGORY_SEARCH_LABELS[cat]);
|
|
22592
|
+
}
|
|
22593
|
+
const metaJoined = [authorText, ...categoryTerms].join("\n");
|
|
22594
|
+
const descJoined = `${entry.description.en}
|
|
22595
|
+
${entry.description["zh-CN"]}`.toLowerCase();
|
|
22596
|
+
const detailsJoined = entry.details ? `${entry.details.en}
|
|
22597
|
+
${entry.details["zh-CN"]}`.toLowerCase() : "";
|
|
22598
|
+
const fullHaystack = `${titleJoined}
|
|
22599
|
+
${metaJoined}
|
|
22600
|
+
${descJoined}
|
|
22601
|
+
${detailsJoined}`;
|
|
22602
|
+
if (!tokens.every((token) => fullHaystack.includes(token)))
|
|
22603
|
+
return 0;
|
|
22604
|
+
if (titleFields.some((field2) => field2 === query))
|
|
22605
|
+
return 1e3;
|
|
22606
|
+
if (titleFields.some((field2) => field2.startsWith(query)))
|
|
22607
|
+
return 750;
|
|
22608
|
+
let score = 0;
|
|
22609
|
+
if (titleFields.some((field2) => field2.includes(query))) {
|
|
22610
|
+
score = 500;
|
|
22611
|
+
} else if (tokens.every((token) => titleJoined.includes(token))) {
|
|
22612
|
+
score = 450;
|
|
22613
|
+
} else if (tokens.every((token) => `${titleJoined}
|
|
22614
|
+
${metaJoined}`.includes(token))) {
|
|
22615
|
+
score = 260;
|
|
22616
|
+
} else if (tokens.every((token) => `${titleJoined}
|
|
22617
|
+
${metaJoined}
|
|
22618
|
+
${descJoined}`.includes(token))) {
|
|
22619
|
+
score = 130;
|
|
22620
|
+
} else {
|
|
22621
|
+
score = 40;
|
|
22622
|
+
}
|
|
22623
|
+
for (const token of tokens) {
|
|
22624
|
+
if (titleFields.some((field2) => field2 === token || field2.startsWith(token)))
|
|
22625
|
+
score += 30;
|
|
22626
|
+
else if (titleJoined.includes(token))
|
|
22627
|
+
score += 20;
|
|
22628
|
+
else if (metaJoined.includes(token))
|
|
22629
|
+
score += 10;
|
|
22630
|
+
else if (descJoined.includes(token))
|
|
22631
|
+
score += 4;
|
|
22632
|
+
}
|
|
22633
|
+
return score;
|
|
22634
|
+
}
|
|
22635
|
+
function compareByRecommendedScore(left, right, scores) {
|
|
22636
|
+
const leftScore = scores.get(left.id) ?? 0;
|
|
22637
|
+
const rightScore = scores.get(right.id) ?? 0;
|
|
22638
|
+
if (rightScore !== leftScore)
|
|
22639
|
+
return rightScore - leftScore;
|
|
22640
|
+
const downloadsDelta = (right.downloads ?? 0) - (left.downloads ?? 0);
|
|
22641
|
+
if (downloadsDelta !== 0)
|
|
22642
|
+
return downloadsDelta;
|
|
22643
|
+
const starsDelta = (right.stars ?? 0) - (left.stars ?? 0);
|
|
22644
|
+
if (starsDelta !== 0)
|
|
22645
|
+
return starsDelta;
|
|
22646
|
+
return left.id.localeCompare(right.id, "en");
|
|
22647
|
+
}
|
|
22648
|
+
function uniqueEntrySlots(entry) {
|
|
22649
|
+
const slots = entry.slots;
|
|
22650
|
+
if (!slots || slots.length <= 1)
|
|
22651
|
+
return slots ?? [];
|
|
22652
|
+
return [...new Set(slots)];
|
|
22653
|
+
}
|
|
22654
|
+
function recordDiversityCounts(entry, authorCounts, slotCounts) {
|
|
22655
|
+
const authorKey = entry.author.trim().toLowerCase();
|
|
22656
|
+
if (authorKey !== "") {
|
|
22657
|
+
authorCounts.set(authorKey, (authorCounts.get(authorKey) ?? 0) + 1);
|
|
22658
|
+
}
|
|
22659
|
+
for (const slot2 of uniqueEntrySlots(entry)) {
|
|
22660
|
+
slotCounts.set(slot2, (slotCounts.get(slot2) ?? 0) + 1);
|
|
22661
|
+
}
|
|
22662
|
+
}
|
|
22663
|
+
function computeDiversityViolation(entry, authorCounts, slotCounts, maxPerGroup) {
|
|
22664
|
+
const authorKey = entry.author.trim().toLowerCase();
|
|
22665
|
+
const authorNext = authorKey !== "" ? (authorCounts.get(authorKey) ?? 0) + 1 : 0;
|
|
22666
|
+
let totalExcess = authorNext > maxPerGroup ? authorNext - maxPerGroup : 0;
|
|
22667
|
+
let maxCount = authorNext;
|
|
22668
|
+
for (const slot2 of uniqueEntrySlots(entry)) {
|
|
22669
|
+
const slotNext = (slotCounts.get(slot2) ?? 0) + 1;
|
|
22670
|
+
if (slotNext > maxPerGroup) {
|
|
22671
|
+
totalExcess += slotNext - maxPerGroup;
|
|
22672
|
+
}
|
|
22673
|
+
if (slotNext > maxCount) {
|
|
22674
|
+
maxCount = slotNext;
|
|
22675
|
+
}
|
|
22676
|
+
}
|
|
22677
|
+
return { totalExcess, maxCount };
|
|
22678
|
+
}
|
|
22679
|
+
function applyTopWindowDiversity(entries, windowSize = TOP_DIVERSITY_WINDOW, maxPerGroup = TOP_DIVERSITY_MAX_PER_GROUP) {
|
|
22680
|
+
if (windowSize <= 0 || entries.length <= maxPerGroup)
|
|
22681
|
+
return [...entries];
|
|
22682
|
+
const topWindow = [];
|
|
22683
|
+
const deferred = [];
|
|
22684
|
+
const authorCounts = /* @__PURE__ */ new Map();
|
|
22685
|
+
const slotCounts = /* @__PURE__ */ new Map();
|
|
22686
|
+
let index = 0;
|
|
22687
|
+
for (; index < entries.length && topWindow.length < windowSize; index += 1) {
|
|
22688
|
+
const entry = entries[index];
|
|
22689
|
+
const { totalExcess } = computeDiversityViolation(entry, authorCounts, slotCounts, maxPerGroup);
|
|
22690
|
+
if (totalExcess > 0) {
|
|
22691
|
+
deferred.push(entry);
|
|
22692
|
+
continue;
|
|
22693
|
+
}
|
|
22694
|
+
topWindow.push(entry);
|
|
22695
|
+
recordDiversityCounts(entry, authorCounts, slotCounts);
|
|
22696
|
+
}
|
|
22697
|
+
while (topWindow.length < windowSize && deferred.length > 0) {
|
|
22698
|
+
let bestIndex = 0;
|
|
22699
|
+
let bestCost = computeDiversityViolation(deferred[0], authorCounts, slotCounts, maxPerGroup);
|
|
22700
|
+
for (let i = 1; i < deferred.length; i += 1) {
|
|
22701
|
+
const candidateCost = computeDiversityViolation(deferred[i], authorCounts, slotCounts, maxPerGroup);
|
|
22702
|
+
if (candidateCost.totalExcess < bestCost.totalExcess || candidateCost.totalExcess === bestCost.totalExcess && candidateCost.maxCount < bestCost.maxCount) {
|
|
22703
|
+
bestIndex = i;
|
|
22704
|
+
bestCost = candidateCost;
|
|
22705
|
+
}
|
|
22706
|
+
}
|
|
22707
|
+
const [picked] = deferred.splice(bestIndex, 1);
|
|
22708
|
+
topWindow.push(picked);
|
|
22709
|
+
recordDiversityCounts(picked, authorCounts, slotCounts);
|
|
22710
|
+
}
|
|
22711
|
+
return [...topWindow, ...deferred, ...entries.slice(index)];
|
|
22712
|
+
}
|
|
22713
|
+
function selectFeaturedHostExtensions(entries, options = {}) {
|
|
22714
|
+
if (entries.length === 0)
|
|
22715
|
+
return [];
|
|
22716
|
+
const fallbackLimit = Math.max(0, Math.floor(options.limit ?? HOST_EXTENSION_FEATURED_LIMIT));
|
|
22717
|
+
const nowMs = options.nowMs ?? Date.now();
|
|
22718
|
+
const host = options.host;
|
|
22719
|
+
const compatible = host ? entries.filter((entry) => isHostExtensionCompatibleWithHost(entry, host)) : [...entries];
|
|
22720
|
+
if (compatible.length === 0)
|
|
22721
|
+
return [];
|
|
22722
|
+
const scores = /* @__PURE__ */ new Map();
|
|
22723
|
+
for (const entry of compatible) {
|
|
22724
|
+
scores.set(entry.id, scoreHostExtensionForRecommended(entry, nowMs));
|
|
22725
|
+
}
|
|
22726
|
+
const hasExplicitFeaturedInCatalog = entries.some((entry) => entry.featured === true);
|
|
22727
|
+
if (hasExplicitFeaturedInCatalog) {
|
|
22728
|
+
return compatible.filter((entry) => entry.featured === true).sort((left, right) => {
|
|
22729
|
+
const leftOrder = left.featuredOrder ?? Number.POSITIVE_INFINITY;
|
|
22730
|
+
const rightOrder = right.featuredOrder ?? Number.POSITIVE_INFINITY;
|
|
22731
|
+
if (leftOrder !== rightOrder)
|
|
22732
|
+
return leftOrder - rightOrder;
|
|
22733
|
+
return compareByRecommendedScore(left, right, scores);
|
|
22734
|
+
});
|
|
22735
|
+
}
|
|
22736
|
+
if (fallbackLimit === 0)
|
|
22737
|
+
return [];
|
|
22738
|
+
return [...compatible].sort((left, right) => {
|
|
22739
|
+
const officialDelta = Number(right.trustTier === "official") - Number(left.trustTier === "official");
|
|
22740
|
+
if (officialDelta !== 0)
|
|
22741
|
+
return officialDelta;
|
|
22742
|
+
return compareByRecommendedScore(left, right, scores);
|
|
22743
|
+
}).slice(0, fallbackLimit);
|
|
22744
|
+
}
|
|
22745
|
+
function rankHostExtensionCatalogEntries(entries, options = {}) {
|
|
22746
|
+
if (entries.length <= 1)
|
|
22747
|
+
return [...entries];
|
|
22748
|
+
const nowMs = options.nowMs ?? Date.now();
|
|
22749
|
+
const host = options.host;
|
|
22750
|
+
const sortMode = options.sortMode ?? "recommended";
|
|
22751
|
+
const normalizedQuery = options.query?.trim().toLowerCase() ?? "";
|
|
22752
|
+
const scores = /* @__PURE__ */ new Map();
|
|
22753
|
+
const relevance = /* @__PURE__ */ new Map();
|
|
22754
|
+
for (const entry of entries) {
|
|
22755
|
+
scores.set(entry.id, scoreHostExtensionForRecommended(entry, nowMs));
|
|
22756
|
+
if (normalizedQuery) {
|
|
22757
|
+
relevance.set(entry.id, scoreHostExtensionSearchRelevance(entry, normalizedQuery));
|
|
22758
|
+
}
|
|
22759
|
+
}
|
|
22760
|
+
const compareCore = (left, right) => {
|
|
22761
|
+
if (normalizedQuery) {
|
|
22762
|
+
const relDelta = (relevance.get(right.id) ?? 0) - (relevance.get(left.id) ?? 0);
|
|
22763
|
+
if (relDelta !== 0)
|
|
22764
|
+
return relDelta;
|
|
22765
|
+
return compareByRecommendedScore(left, right, scores);
|
|
22766
|
+
}
|
|
22767
|
+
switch (sortMode) {
|
|
22768
|
+
case "downloads": {
|
|
22769
|
+
const downloadsDelta = (right.downloads ?? 0) - (left.downloads ?? 0);
|
|
22770
|
+
if (downloadsDelta !== 0)
|
|
22771
|
+
return downloadsDelta;
|
|
22772
|
+
const downloads7dDelta = (right.downloads7d ?? 0) - (left.downloads7d ?? 0);
|
|
22773
|
+
if (downloads7dDelta !== 0)
|
|
22774
|
+
return downloads7dDelta;
|
|
22775
|
+
const starsDelta = (right.stars ?? 0) - (left.stars ?? 0);
|
|
22776
|
+
if (starsDelta !== 0)
|
|
22777
|
+
return starsDelta;
|
|
22778
|
+
return left.id.localeCompare(right.id, "en");
|
|
22779
|
+
}
|
|
22780
|
+
case "newest": {
|
|
22781
|
+
const leftPublished = parseTimestampMs(left.publishedAt) ?? -1;
|
|
22782
|
+
const rightPublished = parseTimestampMs(right.publishedAt) ?? -1;
|
|
22783
|
+
if (rightPublished !== leftPublished)
|
|
22784
|
+
return rightPublished - leftPublished;
|
|
22785
|
+
const leftUpdated = parseTimestampMs(left.updatedAt) ?? -1;
|
|
22786
|
+
const rightUpdated = parseTimestampMs(right.updatedAt) ?? -1;
|
|
22787
|
+
if (rightUpdated !== leftUpdated)
|
|
22788
|
+
return rightUpdated - leftUpdated;
|
|
22789
|
+
const downloadsDelta = (right.downloads ?? 0) - (left.downloads ?? 0);
|
|
22790
|
+
if (downloadsDelta !== 0)
|
|
22791
|
+
return downloadsDelta;
|
|
22792
|
+
return left.id.localeCompare(right.id, "en");
|
|
22793
|
+
}
|
|
22794
|
+
case "updated": {
|
|
22795
|
+
const leftUpdated = parseTimestampMs(left.updatedAt ?? left.publishedAt) ?? -1;
|
|
22796
|
+
const rightUpdated = parseTimestampMs(right.updatedAt ?? right.publishedAt) ?? -1;
|
|
22797
|
+
if (rightUpdated !== leftUpdated)
|
|
22798
|
+
return rightUpdated - leftUpdated;
|
|
22799
|
+
const downloadsDelta = (right.downloads ?? 0) - (left.downloads ?? 0);
|
|
22800
|
+
if (downloadsDelta !== 0)
|
|
22801
|
+
return downloadsDelta;
|
|
22802
|
+
return left.id.localeCompare(right.id, "en");
|
|
22803
|
+
}
|
|
22804
|
+
case "recommended":
|
|
22805
|
+
default:
|
|
22806
|
+
return compareByRecommendedScore(left, right, scores);
|
|
22807
|
+
}
|
|
22808
|
+
};
|
|
22809
|
+
if (!host) {
|
|
22810
|
+
const sorted = [...entries].sort(compareCore);
|
|
22811
|
+
if (options.applyDiversity && !normalizedQuery && sortMode === "recommended") {
|
|
22812
|
+
return applyTopWindowDiversity(sorted);
|
|
22813
|
+
}
|
|
22814
|
+
return sorted;
|
|
22815
|
+
}
|
|
22816
|
+
const compatible = [];
|
|
22817
|
+
const incompatible = [];
|
|
22818
|
+
for (const entry of entries) {
|
|
22819
|
+
if (isHostExtensionCompatibleWithHost(entry, host)) {
|
|
22820
|
+
compatible.push(entry);
|
|
22821
|
+
} else {
|
|
22822
|
+
incompatible.push(entry);
|
|
22823
|
+
}
|
|
22824
|
+
}
|
|
22825
|
+
compatible.sort(compareCore);
|
|
22826
|
+
incompatible.sort(compareCore);
|
|
22827
|
+
const orderedCompatible = options.applyDiversity && !normalizedQuery && sortMode === "recommended" ? applyTopWindowDiversity(compatible) : compatible;
|
|
22828
|
+
return [...orderedCompatible, ...incompatible];
|
|
22829
|
+
}
|
|
22142
22830
|
|
|
22143
22831
|
// ../shared-contracts/dist/skills.js
|
|
22144
22832
|
var SKILLS_LIST_METHOD = "codexhost/skills/list";
|
|
@@ -22278,7 +22966,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22278
22966
|
var remotePeerIdSchema = external_exports.string().regex(REMOTE_PEER_ID_PATTERN);
|
|
22279
22967
|
var remotePeerNodeIdSchema = external_exports.string().regex(REMOTE_PEER_ID_PATTERN);
|
|
22280
22968
|
var remotePeerHostIdSchema = external_exports.string().regex(/^remote-peer:[a-zA-Z0-9_-]{1,64}$/u);
|
|
22281
|
-
var remotePeerTransportKindSchema = external_exports.enum(["relay", "tailscale", "lan", "custom"]);
|
|
22969
|
+
var remotePeerTransportKindSchema = external_exports.enum(["relay", "tailscale", "lan", "ssh", "custom"]);
|
|
22970
|
+
var remotePeerSshAuthModeSchema = external_exports.enum(["auto", "key", "password"]);
|
|
22971
|
+
var remotePeerSshConfigSchema = external_exports.object({
|
|
22972
|
+
host: external_exports.string().trim().min(1).max(255),
|
|
22973
|
+
port: external_exports.number().int().min(1).max(65535).optional(),
|
|
22974
|
+
user: external_exports.string().trim().min(1).max(128).optional(),
|
|
22975
|
+
identityFile: external_exports.string().trim().min(1).max(1024).optional(),
|
|
22976
|
+
authMode: remotePeerSshAuthModeSchema.default("auto"),
|
|
22977
|
+
remoteDataDir: external_exports.string().trim().min(1).max(1024).optional()
|
|
22978
|
+
});
|
|
22979
|
+
var remotePeerSshSummarySchema = external_exports.object({
|
|
22980
|
+
host: external_exports.string().min(1).max(255),
|
|
22981
|
+
port: external_exports.number().int().min(1).max(65535).optional(),
|
|
22982
|
+
user: external_exports.string().min(1).max(128).optional(),
|
|
22983
|
+
authMode: remotePeerSshAuthModeSchema,
|
|
22984
|
+
keyInstalled: external_exports.boolean().optional()
|
|
22985
|
+
});
|
|
22282
22986
|
var REMOTE_PEER_COLORS = [
|
|
22283
22987
|
"blue",
|
|
22284
22988
|
"purple",
|
|
@@ -22305,6 +23009,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22305
23009
|
color: remotePeerColorSchema.optional(),
|
|
22306
23010
|
origin: external_exports.string().min(1).max(2048),
|
|
22307
23011
|
transportKind: remotePeerTransportKindSchema,
|
|
23012
|
+
ssh: remotePeerSshSummarySchema.optional(),
|
|
22308
23013
|
encrypted: external_exports.boolean(),
|
|
22309
23014
|
enabled: external_exports.boolean(),
|
|
22310
23015
|
state: remotePeerStateSchema,
|
|
@@ -22433,7 +23138,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22433
23138
|
/** /api/peer/v1/delegation is available for fixed-whitelist cross-host delegation. */
|
|
22434
23139
|
delegation: external_exports.literal(1).optional(),
|
|
22435
23140
|
/** POST /api/peer/v1/peers is available. */
|
|
22436
|
-
peerPairing: external_exports.literal(1).optional()
|
|
23141
|
+
peerPairing: external_exports.literal(1).optional(),
|
|
23142
|
+
/** Host supports includeOperations on extensions/list and expectedVersion on extensions/update. */
|
|
23143
|
+
extensionUpdateTracking: external_exports.literal(1).optional(),
|
|
23144
|
+
/** Peer supports per-member `showInSidebar` in `codexhost/groups/member/update`. */
|
|
23145
|
+
groupMemberSidebarVisibility: external_exports.literal(1).optional(),
|
|
23146
|
+
/** Peer supports `codexhost/groups/memory/read` and `codexhost/groups/memory/update`. */
|
|
23147
|
+
groupSharedMemory: external_exports.literal(1).optional()
|
|
22437
23148
|
});
|
|
22438
23149
|
var remotePeerManifestSchema = external_exports.object({
|
|
22439
23150
|
version: external_exports.string().max(128),
|
|
@@ -22552,8 +23263,66 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22552
23263
|
var delegationHostHarnessesResultSchema = external_exports.object({
|
|
22553
23264
|
harnesses: external_exports.array(delegationHostHarnessOptionSchema)
|
|
22554
23265
|
});
|
|
23266
|
+
var sshConfigHostEntrySchema = external_exports.object({
|
|
23267
|
+
alias: external_exports.string().min(1).max(255),
|
|
23268
|
+
hostName: external_exports.string().max(255).optional(),
|
|
23269
|
+
user: external_exports.string().max(128).optional(),
|
|
23270
|
+
port: external_exports.number().int().min(1).max(65535).optional(),
|
|
23271
|
+
identityFile: external_exports.string().max(1024).optional()
|
|
23272
|
+
});
|
|
23273
|
+
var remotePeerListSshConfigHostsResultSchema = external_exports.object({
|
|
23274
|
+
hosts: external_exports.array(sshConfigHostEntrySchema)
|
|
23275
|
+
});
|
|
23276
|
+
var remotePeerSshConnectParamsSchema = external_exports.object({
|
|
23277
|
+
host: external_exports.string().trim().min(1).max(255),
|
|
23278
|
+
port: external_exports.number().int().min(1).max(65535).optional(),
|
|
23279
|
+
user: external_exports.string().trim().min(1).max(128).optional(),
|
|
23280
|
+
identityFile: external_exports.string().trim().min(1).max(1024).optional(),
|
|
23281
|
+
authMode: remotePeerSshAuthModeSchema.default("auto"),
|
|
23282
|
+
password: external_exports.string().max(1024).optional(),
|
|
23283
|
+
installAuthorizedKey: external_exports.boolean().optional(),
|
|
23284
|
+
name: external_exports.string().trim().min(1).max(120).optional(),
|
|
23285
|
+
color: remotePeerColorSchema.optional(),
|
|
23286
|
+
remoteDataDir: external_exports.string().trim().min(1).max(1024).optional(),
|
|
23287
|
+
sessionId: external_exports.string().min(1).max(128).optional()
|
|
23288
|
+
});
|
|
23289
|
+
var remotePeerSshTestResultSchema = external_exports.object({
|
|
23290
|
+
ok: external_exports.boolean(),
|
|
23291
|
+
codexhostInstalled: external_exports.boolean(),
|
|
23292
|
+
version: external_exports.string().max(128).optional(),
|
|
23293
|
+
nodeId: remotePeerNodeIdSchema.optional(),
|
|
23294
|
+
platform: external_exports.string().max(64).optional(),
|
|
23295
|
+
hostname: external_exports.string().max(255).optional(),
|
|
23296
|
+
latencyMs: external_exports.number().int().nonnegative().optional(),
|
|
23297
|
+
errorCode: external_exports.string().max(128).optional(),
|
|
23298
|
+
error: external_exports.string().max(1e3).optional()
|
|
23299
|
+
});
|
|
23300
|
+
var remotePeerSshInstallResultSchema = external_exports.object({
|
|
23301
|
+
ok: external_exports.boolean(),
|
|
23302
|
+
version: external_exports.string().max(128).optional(),
|
|
23303
|
+
message: external_exports.string().max(1e3).optional()
|
|
23304
|
+
});
|
|
23305
|
+
var remotePeerSshAuthPromptSchema = external_exports.object({
|
|
23306
|
+
promptId: external_exports.string().min(1).max(128),
|
|
23307
|
+
sessionId: external_exports.string().min(1).max(128).optional(),
|
|
23308
|
+
peerId: remotePeerIdSchema.optional(),
|
|
23309
|
+
host: external_exports.string().min(1).max(255),
|
|
23310
|
+
kind: external_exports.enum(["host-key", "password", "passphrase", "otp", "generic"]),
|
|
23311
|
+
prompt: external_exports.string().min(1).max(1e3),
|
|
23312
|
+
echo: external_exports.boolean()
|
|
23313
|
+
});
|
|
23314
|
+
var remotePeerSshRespondAuthParamsSchema = external_exports.object({
|
|
23315
|
+
promptId: external_exports.string().min(1).max(128),
|
|
23316
|
+
sessionId: external_exports.string().min(1).max(128).optional(),
|
|
23317
|
+
response: external_exports.string().max(1024).optional(),
|
|
23318
|
+
cancel: external_exports.boolean().optional()
|
|
23319
|
+
});
|
|
22555
23320
|
|
|
22556
23321
|
// ../shared-contracts/dist/peer-delegation.js
|
|
23322
|
+
var peerWatchNudgeParamsSchema = external_exports.strictObject({
|
|
23323
|
+
hostId: remotePeerHostIdSchema,
|
|
23324
|
+
threadId: external_exports.string().min(1).max(1024).optional()
|
|
23325
|
+
});
|
|
22557
23326
|
var PEER_DELEGATION_BRIDGE_VERSION = 1;
|
|
22558
23327
|
var PEER_DELEGATION_OPERATIONS = [
|
|
22559
23328
|
"listHarnesses",
|
|
@@ -22715,6 +23484,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22715
23484
|
"kiro-cli",
|
|
22716
23485
|
"codebuddy",
|
|
22717
23486
|
"workbuddy",
|
|
23487
|
+
"workbuddy-cn",
|
|
22718
23488
|
"cursor-cli",
|
|
22719
23489
|
"hermes",
|
|
22720
23490
|
"qoder",
|
|
@@ -22764,11 +23534,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22764
23534
|
byHarness: external_exports.record(preferenceHarnessKey, harnessDelegationDefaultSchema)
|
|
22765
23535
|
});
|
|
22766
23536
|
var modelId = external_exports.string().min(1).max(1024);
|
|
22767
|
-
var harnessPreferenceValuesSchema = external_exports.
|
|
23537
|
+
var harnessPreferenceValuesSchema = external_exports.object({
|
|
22768
23538
|
idleRelease: idleReleaseSettingsSchema.optional(),
|
|
22769
23539
|
favorites: external_exports.record(preferenceHarnessKey, external_exports.array(modelId).max(2048)).default({}),
|
|
22770
23540
|
newThread: newThreadDefaultsSchema.optional(),
|
|
22771
|
-
delegation: delegationDefaultsSchema.optional()
|
|
23541
|
+
delegation: delegationDefaultsSchema.optional(),
|
|
23542
|
+
showGroupChatsInSidebar: external_exports.boolean().optional()
|
|
22772
23543
|
});
|
|
22773
23544
|
var harnessPreferenceSnapshotSchema = external_exports.strictObject({
|
|
22774
23545
|
scope: harnessPreferenceScopeSchema,
|
|
@@ -22801,6 +23572,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22801
23572
|
kind: external_exports.literal("delegation"),
|
|
22802
23573
|
harnessId: harnessIdSchema,
|
|
22803
23574
|
configuration: harnessDelegationDefaultSchema.nullable()
|
|
23575
|
+
}),
|
|
23576
|
+
external_exports.strictObject({
|
|
23577
|
+
kind: external_exports.literal("groupChatsSidebar"),
|
|
23578
|
+
visible: external_exports.boolean()
|
|
22804
23579
|
})
|
|
22805
23580
|
]);
|
|
22806
23581
|
var harnessPreferencePatchSchema = external_exports.strictObject({
|
|
@@ -23660,7 +24435,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23660
24435
|
"unreadable",
|
|
23661
24436
|
"notFound"
|
|
23662
24437
|
];
|
|
23663
|
-
var ENTRY_PATTERN = new RegExp(String.raw`^- \[([^\]\n]+)\]\(thread://([^\s()<>"?#/]+)
|
|
24438
|
+
var ENTRY_PATTERN = new RegExp(String.raw`^- \[([^\]\n]+)\]\(thread://([^\s()<>"?#/]+)(?:\?hostId=([^\s()<>"?#/&]+))?\): ` + `(${THREAD_WATCH_NOTICE_OUTCOMES.join("|")})(?:. (.+))?$`, "u");
|
|
23664
24439
|
|
|
23665
24440
|
// ../shared-contracts/dist/remote-runtime.js
|
|
23666
24441
|
var RUNTIME_STATUS_METHOD = "codexhost/runtime/status";
|
|
@@ -23692,7 +24467,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23692
24467
|
hostname: external_exports.string().min(1).max(1024).refine((value) => !value.startsWith("-") && !/\s/u.test(value)),
|
|
23693
24468
|
port: external_exports.number().int().min(1).max(65535).nullable(),
|
|
23694
24469
|
identity: external_exports.string().max(4096).nullable(),
|
|
23695
|
-
action: external_exports.enum(["inspect", "install", "update", "repair", "uninstall"]),
|
|
24470
|
+
action: external_exports.enum(["inspect", "install", "update", "restart", "repair", "uninstall"]),
|
|
23696
24471
|
uninstallPackage: external_exports.boolean().optional(),
|
|
23697
24472
|
version: external_exports.string().regex(/^\d+\.\d+\.\d+$/u).nullable()
|
|
23698
24473
|
}).strict();
|
|
@@ -23708,6 +24483,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23708
24483
|
var thread2 = { ...target, threadId: identity };
|
|
23709
24484
|
var text = external_exports.string().min(1).max(8e3);
|
|
23710
24485
|
var input2 = { text, requestId: identity };
|
|
24486
|
+
var queueReorderItemIdsSchema = external_exports.array(identity).min(2).max(100).refine((ids) => new Set(ids).size === ids.length, "Queued submission IDs must be distinct");
|
|
23711
24487
|
var remoteDeliveryReplySchema = external_exports.discriminatedUnion("accepted", [
|
|
23712
24488
|
external_exports.object({ accepted: external_exports.literal(true), startQueuedItemId: identity.optional() }),
|
|
23713
24489
|
external_exports.object({
|
|
@@ -23727,6 +24503,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23727
24503
|
external_exports.object({ available: external_exports.literal(false) }),
|
|
23728
24504
|
external_exports.object({
|
|
23729
24505
|
available: external_exports.literal(true),
|
|
24506
|
+
canReorder: external_exports.literal(true).optional(),
|
|
23730
24507
|
items: external_exports.array(external_exports.object({ id: identity, clientUserMessageId: identity, preview: external_exports.string().max(801) })).max(100)
|
|
23731
24508
|
})
|
|
23732
24509
|
]);
|
|
@@ -23804,6 +24581,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23804
24581
|
external_exports.strictObject({ kind: external_exports.literal("enqueue"), ...input2 }),
|
|
23805
24582
|
external_exports.strictObject({ kind: external_exports.literal("steer"), ...input2, turnId: identity }),
|
|
23806
24583
|
external_exports.strictObject({ kind: external_exports.literal("remove"), itemId: identity }),
|
|
24584
|
+
external_exports.strictObject({ kind: external_exports.literal("reorder"), itemIds: queueReorderItemIdsSchema }),
|
|
23807
24585
|
external_exports.strictObject({
|
|
23808
24586
|
kind: external_exports.literal("start"),
|
|
23809
24587
|
itemId: identity,
|
|
@@ -23964,6 +24742,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23964
24742
|
return createSVGElement([tag, attrs, iconNode]);
|
|
23965
24743
|
};
|
|
23966
24744
|
|
|
24745
|
+
// ../../node_modules/lucide/dist/esm/icons/arrow-up-down.mjs
|
|
24746
|
+
var ArrowUpDown = [
|
|
24747
|
+
["path", { d: "m21 16-4 4-4-4" }],
|
|
24748
|
+
["path", { d: "M17 20V4" }],
|
|
24749
|
+
["path", { d: "m3 8 4-4 4 4" }],
|
|
24750
|
+
["path", { d: "M7 4v16" }]
|
|
24751
|
+
];
|
|
24752
|
+
|
|
23967
24753
|
// ../../node_modules/lucide/dist/esm/icons/smartphone.mjs
|
|
23968
24754
|
var Smartphone = [
|
|
23969
24755
|
["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2" }],
|
|
@@ -24484,6 +25270,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24484
25270
|
["polyline", { points: "17 11 12 6 7 11" }],
|
|
24485
25271
|
["line", { x1: "12", y1: "6", x2: "12", y2: "18" }]
|
|
24486
25272
|
],
|
|
25273
|
+
"arrow-up-down": ArrowUpDown,
|
|
24487
25274
|
check: CircleCheck,
|
|
24488
25275
|
"check-mark": Check,
|
|
24489
25276
|
diagnose: Stethoscope,
|
|
@@ -28216,9 +29003,19 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
28216
29003
|
},
|
|
28217
29004
|
async listHostExtensions() {
|
|
28218
29005
|
const schema = hostExtensionsRpcSchemas[HOST_EXTENSIONS_RPC.list];
|
|
28219
|
-
|
|
28220
|
-
|
|
28221
|
-
|
|
29006
|
+
try {
|
|
29007
|
+
return schema.result.parse(
|
|
29008
|
+
await manager.sendRequest(
|
|
29009
|
+
HOST_EXTENSIONS_RPC.list,
|
|
29010
|
+
schema.params.parse({ includeOperations: true })
|
|
29011
|
+
)
|
|
29012
|
+
);
|
|
29013
|
+
} catch (error62) {
|
|
29014
|
+
if (!isInvalidParams(error62)) throw error62;
|
|
29015
|
+
return schema.result.parse(
|
|
29016
|
+
await manager.sendRequest(HOST_EXTENSIONS_RPC.list, schema.params.parse({}))
|
|
29017
|
+
);
|
|
29018
|
+
}
|
|
28222
29019
|
},
|
|
28223
29020
|
async snapshotHostExtensions() {
|
|
28224
29021
|
const schema = hostExtensionsRpcSchemas[HOST_EXTENSIONS_RPC.snapshot];
|
|
@@ -28263,11 +29060,18 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
28263
29060
|
},
|
|
28264
29061
|
async updateHostExtension(input3) {
|
|
28265
29062
|
const schema = hostExtensionsRpcSchemas[HOST_EXTENSIONS_RPC.update];
|
|
28266
|
-
|
|
28267
|
-
|
|
28268
|
-
|
|
28269
|
-
|
|
28270
|
-
|
|
29063
|
+
const parsed = schema.params.parse(input3);
|
|
29064
|
+
try {
|
|
29065
|
+
return extensionsChanged(
|
|
29066
|
+
schema.result.parse(await manager.sendRequest(HOST_EXTENSIONS_RPC.update, parsed))
|
|
29067
|
+
);
|
|
29068
|
+
} catch (error62) {
|
|
29069
|
+
if (parsed.expectedVersion === void 0 || !isInvalidParams(error62)) throw error62;
|
|
29070
|
+
const { expectedVersion: _omitted, ...legacyParams } = parsed;
|
|
29071
|
+
return extensionsChanged(
|
|
29072
|
+
schema.result.parse(await manager.sendRequest(HOST_EXTENSIONS_RPC.update, legacyParams))
|
|
29073
|
+
);
|
|
29074
|
+
}
|
|
28271
29075
|
},
|
|
28272
29076
|
async enableHostExtension(input3) {
|
|
28273
29077
|
const schema = hostExtensionsRpcSchemas[HOST_EXTENSIONS_RPC.enable];
|
|
@@ -28348,6 +29152,12 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
28348
29152
|
);
|
|
28349
29153
|
return updateStatusResultSchema.parse(result);
|
|
28350
29154
|
},
|
|
29155
|
+
async getGitHubStarStatus() {
|
|
29156
|
+
return githubStarStateSchema.parse(await manager.sendRequest(GITHUB_STAR_STATUS_METHOD, {}));
|
|
29157
|
+
},
|
|
29158
|
+
async starGitHubRepository() {
|
|
29159
|
+
return githubStarStateSchema.parse(await manager.sendRequest(GITHUB_STAR_ADD_METHOD, {}));
|
|
29160
|
+
},
|
|
28351
29161
|
async getMacOsSigningStatus() {
|
|
28352
29162
|
const result = await manager.sendRequest(
|
|
28353
29163
|
MACOS_SIGNING_STATUS_METHOD2,
|
|
@@ -28450,9 +29260,60 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
28450
29260
|
const state = codexAccountChangedSchema.safeParse(notification.params);
|
|
28451
29261
|
if (state.success) listener(state.data);
|
|
28452
29262
|
});
|
|
29263
|
+
},
|
|
29264
|
+
async sendDesktopSurfaceRequest(method, params = {}) {
|
|
29265
|
+
if (!ALLOWED_DESKTOP_SURFACE_METHODS.has(method)) {
|
|
29266
|
+
throw new Error(`Unsupported Desktop surface method: ${method}`);
|
|
29267
|
+
}
|
|
29268
|
+
return await manager.sendRequest(method, params);
|
|
29269
|
+
},
|
|
29270
|
+
async startRoleThread(input3) {
|
|
29271
|
+
const roleSlug = roleSlugSchema.parse(input3.roleSlug);
|
|
29272
|
+
const cwd = typeof input3.cwd === "string" && input3.cwd.trim().length > 0 ? input3.cwd.trim() : void 0;
|
|
29273
|
+
const result = await manager.sendRequest("thread/start", {
|
|
29274
|
+
roleSlug,
|
|
29275
|
+
...cwd !== void 0 ? { cwd } : {}
|
|
29276
|
+
});
|
|
29277
|
+
const thread3 = isRecord2(result) && isRecord2(result.thread) ? result.thread : null;
|
|
29278
|
+
const threadId = hostThreadIdSchema.parse(thread3?.id);
|
|
29279
|
+
return { threadId };
|
|
29280
|
+
},
|
|
29281
|
+
subscribeGroupsChanged(listener) {
|
|
29282
|
+
const notifications = notificationTarget(source);
|
|
29283
|
+
if (!notifications?.addNotificationCallback) return () => {
|
|
29284
|
+
};
|
|
29285
|
+
return notifications.addNotificationCallback(GROUPS_CHANGED_EVENT, (notification) => {
|
|
29286
|
+
if (!isRecord2(notification) || notification.method !== GROUPS_CHANGED_EVENT) return;
|
|
29287
|
+
const params = isRecord2(notification.params) ? notification.params : {};
|
|
29288
|
+
const roomId = typeof params.roomId === "string" ? params.roomId : void 0;
|
|
29289
|
+
listener(roomId !== void 0 ? { roomId } : {});
|
|
29290
|
+
});
|
|
28453
29291
|
}
|
|
28454
29292
|
});
|
|
28455
29293
|
}
|
|
29294
|
+
var ALLOWED_DESKTOP_SURFACE_METHODS = /* @__PURE__ */ new Set([
|
|
29295
|
+
GROUPS_LIST_METHOD,
|
|
29296
|
+
GROUPS_GET_METHOD,
|
|
29297
|
+
GROUPS_CREATE_METHOD,
|
|
29298
|
+
GROUPS_UPDATE_METHOD,
|
|
29299
|
+
GROUPS_DELETE_METHOD,
|
|
29300
|
+
GROUPS_ADD_MEMBER_METHOD,
|
|
29301
|
+
GROUPS_UPDATE_MEMBER_METHOD,
|
|
29302
|
+
GROUPS_REMOVE_MEMBER_METHOD,
|
|
29303
|
+
GROUPS_POST_MESSAGE_METHOD,
|
|
29304
|
+
GROUPS_READ_MESSAGES_METHOD,
|
|
29305
|
+
GROUPS_READ_MEMORY_METHOD,
|
|
29306
|
+
GROUPS_UPDATE_MEMORY_METHOD,
|
|
29307
|
+
GROUPS_INSPECT_CWD_METHOD,
|
|
29308
|
+
ROLES_LIST_METHOD,
|
|
29309
|
+
ROLES_GET_METHOD,
|
|
29310
|
+
ROLES_SAVE_METHOD,
|
|
29311
|
+
ROLES_DELETE_METHOD,
|
|
29312
|
+
ROLES_CATALOG_METHOD,
|
|
29313
|
+
ROLES_LIKE_METHOD,
|
|
29314
|
+
"thread/list",
|
|
29315
|
+
"model/list"
|
|
29316
|
+
]);
|
|
28456
29317
|
function isInvalidParams(error62) {
|
|
28457
29318
|
return typeof error62 === "object" && error62 !== null && "code" in error62 && error62.code === -32602;
|
|
28458
29319
|
}
|
|
@@ -30910,6 +31771,11 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
30910
31771
|
filterWeb: "CH Web",
|
|
30911
31772
|
filterDesktop: "Codex Desktop",
|
|
30912
31773
|
filterBackend: "Backend",
|
|
31774
|
+
sortLabel: "Sort plugins",
|
|
31775
|
+
sortRecommended: "Recommended",
|
|
31776
|
+
sortDownloads: "Most installed",
|
|
31777
|
+
sortNewest: "Newest",
|
|
31778
|
+
sortUpdated: "Recently updated",
|
|
30913
31779
|
platformLabel: "Supported platforms",
|
|
30914
31780
|
platformBoth: "Codex Desktop & CH Web",
|
|
30915
31781
|
platformDesktopOnly: "Codex Desktop Only",
|
|
@@ -30951,7 +31817,15 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
30951
31817
|
installing: "Installing\u2026",
|
|
30952
31818
|
update: "Update",
|
|
30953
31819
|
updating: "Updating\u2026",
|
|
31820
|
+
retryUpdate: "Retry update",
|
|
30954
31821
|
updateToVersion: "Update to v{version}",
|
|
31822
|
+
updateFailedNotice: "Last update failed: {message}",
|
|
31823
|
+
updateInterruptedNotice: "Previous update was interrupted when the app closed. Click Retry update to try again.",
|
|
31824
|
+
errorDownloadTimeout: "Download timed out. Check your network and try again.",
|
|
31825
|
+
errorDownloadUnavailable: "The download server is temporarily unavailable. Please try again later.",
|
|
31826
|
+
errorVersionNotReady: "The new version is still syncing to the registry. Please try again shortly.",
|
|
31827
|
+
errorCatalogUnavailable: "The plugin catalog is temporarily unavailable. Check your network and try again.",
|
|
31828
|
+
errorChecksumMismatch: "The downloaded package failed integrity verification. Please try again.",
|
|
30955
31829
|
installedBadge: "Installed",
|
|
30956
31830
|
installedDisabledBadge: "Installed \xB7 Off",
|
|
30957
31831
|
uninstall: "Uninstall",
|
|
@@ -31142,6 +32016,11 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
31142
32016
|
filterWeb: "CH Web",
|
|
31143
32017
|
filterDesktop: "Codex Desktop",
|
|
31144
32018
|
filterBackend: "\u540E\u53F0",
|
|
32019
|
+
sortLabel: "\u6392\u5E8F\u65B9\u5F0F",
|
|
32020
|
+
sortRecommended: "\u63A8\u8350",
|
|
32021
|
+
sortDownloads: "\u6700\u591A\u5B89\u88C5",
|
|
32022
|
+
sortNewest: "\u6700\u65B0\u4E0A\u67B6",
|
|
32023
|
+
sortUpdated: "\u6700\u8FD1\u66F4\u65B0",
|
|
31145
32024
|
platformLabel: "\u9002\u7528\u5E73\u53F0",
|
|
31146
32025
|
platformBoth: "Codex Desktop \xB7 CH Web",
|
|
31147
32026
|
platformDesktopOnly: "\u4EC5 Codex Desktop",
|
|
@@ -31183,7 +32062,15 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
31183
32062
|
installing: "\u5B89\u88C5\u4E2D\u2026",
|
|
31184
32063
|
update: "\u66F4\u65B0",
|
|
31185
32064
|
updating: "\u66F4\u65B0\u4E2D\u2026",
|
|
32065
|
+
retryUpdate: "\u91CD\u8BD5\u66F4\u65B0",
|
|
31186
32066
|
updateToVersion: "\u66F4\u65B0\u5230 v{version}",
|
|
32067
|
+
updateFailedNotice: "\u4E0A\u6B21\u66F4\u65B0\u5931\u8D25\uFF1A{message}",
|
|
32068
|
+
updateInterruptedNotice: "\u4E0A\u6B21\u66F4\u65B0\u56E0\u5E94\u7528\u9000\u51FA\u800C\u4E2D\u65AD\uFF0C\u8BF7\u70B9\u51FB\u300C\u91CD\u8BD5\u66F4\u65B0\u300D\u518D\u6B21\u5C1D\u8BD5\u3002",
|
|
32069
|
+
errorDownloadTimeout: "\u4E0B\u8F7D\u8D85\u65F6\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5\u3002",
|
|
32070
|
+
errorDownloadUnavailable: "\u4E0B\u8F7D\u670D\u52A1\u6682\u65F6\u4E0D\u53EF\u7528\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002",
|
|
32071
|
+
errorVersionNotReady: "\u65B0\u7248\u672C\u5C1A\u672A\u540C\u6B65\u5B8C\u6210\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002",
|
|
32072
|
+
errorCatalogUnavailable: "\u63D2\u4EF6\u76EE\u5F55\u6682\u65F6\u4E0D\u53EF\u7528\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5\u3002",
|
|
32073
|
+
errorChecksumMismatch: "\u5B89\u88C5\u5305\u5B8C\u6574\u6027\u6821\u9A8C\u672A\u901A\u8FC7\uFF0C\u8BF7\u91CD\u8BD5\u3002",
|
|
31187
32074
|
installedBadge: "\u5DF2\u5B89\u88C5",
|
|
31188
32075
|
installedDisabledBadge: "\u5DF2\u5B89\u88C5 \xB7 \u672A\u542F\u7528",
|
|
31189
32076
|
uninstall: "\u5378\u8F7D",
|
|
@@ -31387,6 +32274,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
31387
32274
|
}
|
|
31388
32275
|
},
|
|
31389
32276
|
idleReleaseSection: "Resource management",
|
|
32277
|
+
resourcesTitle: "Resources",
|
|
32278
|
+
resourcesDescription: "Configure automatic release for idle background sessions and inspect currently loaded sessions.",
|
|
31390
32279
|
idleReleaseTitle: "Release idle sessions",
|
|
31391
32280
|
idleReleaseDescription: "Close background instances after the idle timeout; they resume on next use.",
|
|
31392
32281
|
idleReleaseHelpLabel: "About releasing idle sessions",
|
|
@@ -31403,6 +32292,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
31403
32292
|
idleReleaseFailed: "Sync failed, try again",
|
|
31404
32293
|
reasoningSoftWrapTitle: "Wrap thinking text",
|
|
31405
32294
|
reasoningSoftWrapDescription: "Wrap long lines in thinking blocks. Shell output is unaffected.",
|
|
32295
|
+
showGroupChatsInSidebarTitle: "Show Group Chats in sidebar",
|
|
32296
|
+
showGroupChatsInSidebarDescription: "Display the Group Chats section in the left sidebar (synced with Web).",
|
|
31406
32297
|
pageUnavailable: "Page unavailable",
|
|
31407
32298
|
inDevelopment: "In development",
|
|
31408
32299
|
notAvailable: "Not available",
|
|
@@ -31440,6 +32331,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
31440
32331
|
sessionImportRetryOpen: "Try opening again",
|
|
31441
32332
|
sessionImportRetrying: "Opening...",
|
|
31442
32333
|
connectionsDescription: "View runtime status by Host. Select an item to inspect details or complete its setup.",
|
|
32334
|
+
accountsDescription: "Inspect signed-in Agent accounts, real-time quotas, and imported credentials.",
|
|
31443
32335
|
accountConnected: "Accounts",
|
|
31444
32336
|
accountDefaultBadge: "Current",
|
|
31445
32337
|
accountColumnAccount: "Account",
|
|
@@ -31601,6 +32493,9 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
31601
32493
|
updateConfirmCancel: "Cancel",
|
|
31602
32494
|
updateConfirmProceed: "Restart and update",
|
|
31603
32495
|
updateChecking: "Checking for updates...",
|
|
32496
|
+
updatesDescription: "Check for new releases, review changelogs, and manage installation.",
|
|
32497
|
+
updateCheckAction: "Check for updates",
|
|
32498
|
+
updateLatestBadge: "Latest v{version}",
|
|
31604
32499
|
updateDownloading: "Downloading update...",
|
|
31605
32500
|
updatePreparing: "Preparing update...",
|
|
31606
32501
|
updateWaitingForExit: "Waiting for the application to close...",
|
|
@@ -31632,8 +32527,10 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
31632
32527
|
acknowledge: "Got it",
|
|
31633
32528
|
fullNotes: "View full release notes"
|
|
31634
32529
|
}),
|
|
31635
|
-
updateStarCallout: "If CodexHost has helped you,
|
|
31636
|
-
|
|
32530
|
+
updateStarCallout: "If CodexHost has helped you, give it a star on GitHub.",
|
|
32531
|
+
githubStar: "Star",
|
|
32532
|
+
githubStarred: "Starred",
|
|
32533
|
+
githubStarring: "Starring\u2026",
|
|
31637
32534
|
macosSigningTitle: "Keep macOS permissions after updates",
|
|
31638
32535
|
macosSigningDescription: "Avoid re-granting notification or microphone permissions on updates (verified once on this Mac).",
|
|
31639
32536
|
macosSigningStatusEnabled: "On",
|
|
@@ -31643,6 +32540,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
31643
32540
|
macosSigningSettingUp: "Verifying...",
|
|
31644
32541
|
macosSigningRemoveButton: "Turn off",
|
|
31645
32542
|
macosSigningRemoving: "Turning off...",
|
|
32543
|
+
aboutDescription: "Product overview, open-source links, and local support tools.",
|
|
31646
32544
|
aboutTagline: "Run Pi and other Harnesses in Codex Desktop",
|
|
31647
32545
|
aboutParagraphs: Object.freeze([
|
|
31648
32546
|
"We believe Codex Desktop offers the best desktop development experience available today.",
|
|
@@ -31651,13 +32549,20 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
31651
32549
|
]),
|
|
31652
32550
|
aboutOpenSource: "codexhost is an open-source project. The source code is available at:",
|
|
31653
32551
|
aboutStarCallout: "\u2B50 If this project helps you, please give us a Star! \u2B50",
|
|
31654
|
-
|
|
31655
|
-
|
|
32552
|
+
aboutLinksTitle: "Links & tools",
|
|
32553
|
+
aboutRepository: "GitHub repository",
|
|
32554
|
+
aboutRepositoryDescription: "Browse source code, documentation, and community discussions.",
|
|
32555
|
+
aboutReleases: "Release notes",
|
|
32556
|
+
aboutReleasesDescription: "Review version history and recent improvements.",
|
|
32557
|
+
aboutIssues: "Report an issue",
|
|
32558
|
+
aboutIssuesDescription: "Report bugs or suggest features on GitHub Issues.",
|
|
32559
|
+
aboutConsoleTitle: "Local console",
|
|
32560
|
+
aboutConsole: "Runs independently to show startup diagnostics and logs, and can update CodexHost even if the main app cannot start.",
|
|
31656
32561
|
aboutConsoleOpen: "Open console",
|
|
31657
32562
|
aboutConsoleOpening: "Opening\u2026",
|
|
31658
32563
|
aboutConsoleFailed: "The console could not be opened",
|
|
31659
32564
|
pageLabels: Object.freeze({
|
|
31660
|
-
connections: "
|
|
32565
|
+
connections: "Agents",
|
|
31661
32566
|
"mobile-web": "Phone & browser",
|
|
31662
32567
|
"remote-connections": "Other computers (SSH)",
|
|
31663
32568
|
appearance: "General",
|
|
@@ -31719,6 +32624,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
31719
32624
|
}
|
|
31720
32625
|
},
|
|
31721
32626
|
idleReleaseSection: "\u8D44\u6E90\u7BA1\u7406",
|
|
32627
|
+
resourcesTitle: "\u8D44\u6E90\u7BA1\u7406",
|
|
32628
|
+
resourcesDescription: "\u63A7\u5236\u7A7A\u95F2\u540E\u53F0\u4F1A\u8BDD\u7684\u81EA\u52A8\u91CA\u653E\u7B56\u7565\uFF0C\u5E76\u5B9E\u65F6\u67E5\u770B\u5F53\u524D\u5DF2\u52A0\u8F7D\u7684\u540E\u53F0\u4F1A\u8BDD\u3002",
|
|
31722
32629
|
idleReleaseTitle: "\u81EA\u52A8\u91CA\u653E\u7A7A\u95F2\u4F1A\u8BDD",
|
|
31723
32630
|
idleReleaseDescription: "\u7A7A\u95F2\u8D85\u65F6\u540E\u5173\u95ED\u540E\u53F0\u5B9E\u4F8B\uFF0C\u518D\u6B21\u4F7F\u7528\u65F6\u81EA\u52A8\u6062\u590D\u3002",
|
|
31724
32631
|
idleReleaseHelpLabel: "\u81EA\u52A8\u91CA\u653E\u7A7A\u95F2\u4F1A\u8BDD\u8BF4\u660E",
|
|
@@ -31735,6 +32642,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
31735
32642
|
idleReleaseFailed: "\u540C\u6B65\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",
|
|
31736
32643
|
reasoningSoftWrapTitle: "\u6362\u884C\u663E\u793A\u601D\u8003\u6587\u672C",
|
|
31737
32644
|
reasoningSoftWrapDescription: "\u601D\u8003\u5757\u4E2D\u7684\u957F\u884C\u81EA\u52A8\u6362\u884C\uFF0C\u4E0D\u5F71\u54CD Shell \u8F93\u51FA\u3002",
|
|
32645
|
+
showGroupChatsInSidebarTitle: "\u5728\u4FA7\u8FB9\u680F\u663E\u793A\u7FA4\u804A",
|
|
32646
|
+
showGroupChatsInSidebarDescription: "\u5728\u5DE6\u4FA7\u4F1A\u8BDD\u5217\u8868\u4E2D\u663E\u793A\u300C\u7FA4\u804A\u300D\u5206\u7EC4\uFF08\u4E0E Web \u7AEF\u540C\u6B65\uFF09\u3002",
|
|
31738
32647
|
pageUnavailable: "\u9875\u9762\u4E0D\u53EF\u7528",
|
|
31739
32648
|
inDevelopment: "\u5F00\u53D1\u4E2D",
|
|
31740
32649
|
notAvailable: "\u6682\u4E0D\u53EF\u7528",
|
|
@@ -31772,6 +32681,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
31772
32681
|
sessionImportRetryOpen: "\u91CD\u8BD5\u6253\u5F00",
|
|
31773
32682
|
sessionImportRetrying: "\u6B63\u5728\u6253\u5F00\u2026\u2026",
|
|
31774
32683
|
connectionsDescription: "\u6309 Host \u67E5\u770B\u8FD0\u884C\u65F6\u72B6\u6001\u3002\u9009\u62E9\u4E00\u9879\uFF0C\u5728\u53F3\u4FA7\u68C0\u67E5\u8BE6\u60C5\u6216\u5B8C\u6210\u914D\u7F6E\u3002",
|
|
32684
|
+
accountsDescription: "\u67E5\u770B\u5DF2\u767B\u5F55\u7684 Agent \u8D26\u53F7\u3001\u5B9E\u65F6\u914D\u989D\u4E0E\u51ED\u636E\u5BFC\u5165\u72B6\u6001\u3002",
|
|
31775
32685
|
accountConnected: "\u8D26\u53F7",
|
|
31776
32686
|
accountDefaultBadge: "\u5F53\u524D",
|
|
31777
32687
|
accountColumnAccount: "\u8D26\u53F7",
|
|
@@ -31933,6 +32843,9 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
31933
32843
|
updateConfirmCancel: "\u53D6\u6D88",
|
|
31934
32844
|
updateConfirmProceed: "\u786E\u8BA4\u91CD\u542F\u5E76\u66F4\u65B0",
|
|
31935
32845
|
updateChecking: "\u6B63\u5728\u68C0\u67E5\u66F4\u65B0...",
|
|
32846
|
+
updatesDescription: "\u68C0\u67E5\u7248\u672C\u66F4\u65B0\u3001\u67E5\u770B\u66F4\u65B0\u65E5\u5FD7\u5E76\u7BA1\u7406\u5B89\u88C5\u65B9\u5F0F\u3002",
|
|
32847
|
+
updateCheckAction: "\u68C0\u67E5\u66F4\u65B0",
|
|
32848
|
+
updateLatestBadge: "\u6700\u65B0 v{version}",
|
|
31936
32849
|
updateDownloading: "\u6B63\u5728\u4E0B\u8F7D\u66F4\u65B0...",
|
|
31937
32850
|
updatePreparing: "\u6B63\u5728\u51C6\u5907\u66F4\u65B0...",
|
|
31938
32851
|
updateWaitingForExit: "\u6B63\u5728\u7B49\u5F85\u5E94\u7528\u9000\u51FA...",
|
|
@@ -31964,8 +32877,10 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
31964
32877
|
acknowledge: "\u6211\u77E5\u9053\u4E86",
|
|
31965
32878
|
fullNotes: "\u67E5\u770B\u5B8C\u6574\u66F4\u65B0\u8BF4\u660E"
|
|
31966
32879
|
}),
|
|
31967
|
-
updateStarCallout: "\u5982\u679C CodexHost \u5E2E\u5230\u4E86\u4F60\uFF0C\u8BF7\u5728 GitHub \u70B9\u4E2A Star\
|
|
31968
|
-
|
|
32880
|
+
updateStarCallout: "\u5982\u679C CodexHost \u5E2E\u5230\u4E86\u4F60\uFF0C\u8BF7\u5728 GitHub \u70B9\u4E2A Star\u3002",
|
|
32881
|
+
githubStar: "Star",
|
|
32882
|
+
githubStarred: "\u5DF2 Star",
|
|
32883
|
+
githubStarring: "\u6B63\u5728 Star\u2026",
|
|
31969
32884
|
macosSigningTitle: "\u66F4\u65B0\u540E\u4FDD\u7559\u7CFB\u7EDF\u6743\u9650",
|
|
31970
32885
|
macosSigningDescription: "\u907F\u514D\u6BCF\u6B21\u66F4\u65B0\u540E\u91CD\u65B0\u6388\u4E88\u901A\u77E5\u3001\u9EA6\u514B\u98CE\u7B49\u6743\u9650\uFF08\u4EC5\u9700\u672C\u673A\u9A8C\u8BC1\u4E00\u6B21\uFF09\u3002",
|
|
31971
32886
|
macosSigningStatusEnabled: "\u5DF2\u5F00\u542F",
|
|
@@ -31975,6 +32890,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
31975
32890
|
macosSigningSettingUp: "\u9A8C\u8BC1\u4E2D\u2026",
|
|
31976
32891
|
macosSigningRemoveButton: "\u5173\u95ED",
|
|
31977
32892
|
macosSigningRemoving: "\u5173\u95ED\u4E2D\u2026",
|
|
32893
|
+
aboutDescription: "\u4E86\u89E3 CodexHost \u7684\u4EA7\u54C1\u5B9A\u4F4D\u3001\u5F00\u6E90\u4ED3\u5E93\u4E0E\u672C\u673A\u5DE5\u5177\u5165\u53E3\u3002",
|
|
31978
32894
|
aboutTagline: "\u5728 Codex Desktop \u4E2D\u8FD0\u884C Pi \u548C\u5176\u4ED6 Harness",
|
|
31979
32895
|
aboutParagraphs: Object.freeze([
|
|
31980
32896
|
"\u6211\u4EEC\u8BA4\u4E3A Codex Desktop \u63D0\u4F9B\u4E86\u76EE\u524D\u6700\u597D\u7684\u684C\u9762\u5F00\u53D1\u4EA4\u4E92\u4F53\u9A8C\u3002",
|
|
@@ -31983,18 +32899,25 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
31983
32899
|
]),
|
|
31984
32900
|
aboutOpenSource: "codexhost \u662F\u4E00\u4E2A\u5F00\u6E90\u9879\u76EE\uFF0C\u5F00\u6E90\u5730\u5740\uFF1A",
|
|
31985
32901
|
aboutStarCallout: "\u2B50 \u5982\u679C\u8FD9\u4E2A\u9879\u76EE\u5BF9\u4F60\u6709\u5E2E\u52A9\uFF0C\u8BF7\u7ED9\u6211\u4EEC\u4E00\u4E2A Star\uFF01\u2B50",
|
|
31986
|
-
|
|
31987
|
-
|
|
32902
|
+
aboutLinksTitle: "\u5F00\u6E90\u4E0E\u652F\u6301",
|
|
32903
|
+
aboutRepository: "GitHub \u5F00\u6E90\u4ED3\u5E93",
|
|
32904
|
+
aboutRepositoryDescription: "\u67E5\u770B\u6E90\u7801\u3001\u67B6\u6784\u6587\u6863\u4E0E\u5F00\u6E90\u793E\u533A\u52A8\u6001\u3002",
|
|
32905
|
+
aboutReleases: "\u53D1\u884C\u8BF4\u660E",
|
|
32906
|
+
aboutReleasesDescription: "\u6D4F\u89C8\u5386\u53F2\u7248\u672C\u53D8\u66F4\u4E0E\u8FD1\u671F\u529F\u80FD\u66F4\u65B0\u3002",
|
|
32907
|
+
aboutIssues: "\u53CD\u9988\u95EE\u9898",
|
|
32908
|
+
aboutIssuesDescription: "\u63D0\u4EA4 Bug \u53CD\u9988\u6216\u529F\u80FD\u5EFA\u8BAE\u3002",
|
|
32909
|
+
aboutConsoleTitle: "\u672C\u5730\u63A7\u5236\u53F0",
|
|
32910
|
+
aboutConsole: "\u72EC\u7ACB\u8FD0\u884C\u7684\u672C\u673A\u8BCA\u65AD\u4E0E\u66F4\u65B0\u63A7\u5236\u53F0\uFF0C\u53EF\u67E5\u770B\u542F\u52A8\u65E5\u5FD7\u5E76\u5728\u4E3B\u5E94\u7528\u5F02\u5E38\u65F6\u5B8C\u6210\u66F4\u65B0\u3002",
|
|
31988
32911
|
aboutConsoleOpen: "\u6253\u5F00\u63A7\u5236\u53F0",
|
|
31989
32912
|
aboutConsoleOpening: "\u6B63\u5728\u6253\u5F00\u2026",
|
|
31990
32913
|
aboutConsoleFailed: "\u63A7\u5236\u53F0\u6253\u5F00\u5931\u8D25",
|
|
31991
32914
|
pageLabels: Object.freeze({
|
|
31992
|
-
connections: "\
|
|
32915
|
+
connections: "Agent \u4E0E\u5F15\u64CE",
|
|
31993
32916
|
"mobile-web": "\u624B\u673A\u4E0E\u6D4F\u89C8\u5668",
|
|
31994
32917
|
"remote-connections": "\u5176\u4ED6\u7535\u8111\uFF08SSH\uFF09",
|
|
31995
32918
|
appearance: "\u901A\u7528",
|
|
31996
32919
|
"desktop-extensions": "\u63D2\u4EF6",
|
|
31997
|
-
accounts: "\u8D26\u53F7",
|
|
32920
|
+
accounts: "\u8D26\u53F7\u4E0E\u989D\u5EA6",
|
|
31998
32921
|
delegation: "\u591A Agent \u534F\u4F5C",
|
|
31999
32922
|
"session-import": "\u4F1A\u8BDD\u5BFC\u5165",
|
|
32000
32923
|
"usage-statistics": "\u7528\u91CF\u7EDF\u8BA1",
|
|
@@ -34841,6 +35764,7 @@ ${detail}` : ""}`
|
|
|
34841
35764
|
const serviceActions = remoteElement(document2, "div", "settings-remote-card__actions");
|
|
34842
35765
|
if (!row.probing) {
|
|
34843
35766
|
if (row.installation === "installed" && !remoteBusy(remote)) {
|
|
35767
|
+
serviceActions.append(command("restart", t("\u91CD\u542F\u670D\u52A1", "Restart service")));
|
|
34844
35768
|
serviceActions.append(command("uninstall", t("\u5378\u8F7D\u8FDC\u7A0B\u670D\u52A1", "Uninstall remote service")));
|
|
34845
35769
|
}
|
|
34846
35770
|
const outdated = !remote && !!row.remoteIssue?.outdated && row.installation !== "not-installed";
|
|
@@ -35214,6 +36138,33 @@ ${detail}` : ""}`
|
|
|
35214
36138
|
});
|
|
35215
36139
|
dialog.show(t("\u5378\u8F7D", "Uninstall"), t("\u5378\u8F7D\u4E2D\u2026", "Uninstalling\u2026"), true);
|
|
35216
36140
|
}
|
|
36141
|
+
function openRemoteServiceRestart(options) {
|
|
36142
|
+
const { t, connection } = options;
|
|
36143
|
+
const dialog = createRemoteDialog(
|
|
36144
|
+
options,
|
|
36145
|
+
t(
|
|
36146
|
+
`\u91CD\u542F\u201C${connection.displayName}\u201D\u7684\u8FDC\u7A0B\u670D\u52A1\uFF1F`,
|
|
36147
|
+
`Restart the remote service on "${connection.displayName}"?`
|
|
36148
|
+
)
|
|
36149
|
+
);
|
|
36150
|
+
if (!dialog) return;
|
|
36151
|
+
dialog.body.append(
|
|
36152
|
+
remoteElement(
|
|
36153
|
+
options.container.ownerDocument,
|
|
36154
|
+
"p",
|
|
36155
|
+
"",
|
|
36156
|
+
t(
|
|
36157
|
+
`\u6B64\u64CD\u4F5C\u53EF\u80FD\u4E2D\u65AD\u201C${connection.displayName}\u201D\u4E0A\u901A\u8FC7 Desktop\u3001Web \u6216\u5176\u4ED6 SSH \u8FDE\u63A5\u8FD0\u884C\u7684 CodexHost \u4EFB\u52A1\u3002`,
|
|
36158
|
+
`This may interrupt CodexHost tasks on "${connection.displayName}" running through Desktop, Web, or other SSH connections.`
|
|
36159
|
+
)
|
|
36160
|
+
)
|
|
36161
|
+
);
|
|
36162
|
+
dialog.form.addEventListener("submit", (event) => {
|
|
36163
|
+
event.preventDefault();
|
|
36164
|
+
dialog.submit(options.restart);
|
|
36165
|
+
});
|
|
36166
|
+
dialog.show(t("\u91CD\u542F\u670D\u52A1", "Restart service"), t("\u6B63\u5728\u91CD\u542F\u2026", "Restarting\u2026"), true);
|
|
36167
|
+
}
|
|
35217
36168
|
|
|
35218
36169
|
// src/settings/remote-connections-page.ts
|
|
35219
36170
|
var POLL_INTERVAL_MS = 5e3;
|
|
@@ -35689,6 +36640,59 @@ ${detail}` : ""}`
|
|
|
35689
36640
|
);
|
|
35690
36641
|
break;
|
|
35691
36642
|
}
|
|
36643
|
+
case "restart":
|
|
36644
|
+
if (row.installation !== "installed" || remoteBusy(row.remote)) break;
|
|
36645
|
+
openRemoteServiceRestart({
|
|
36646
|
+
container: root,
|
|
36647
|
+
signal,
|
|
36648
|
+
t,
|
|
36649
|
+
connection,
|
|
36650
|
+
async restart() {
|
|
36651
|
+
const currentConnection = row.connection;
|
|
36652
|
+
const currentHostId = currentConnection.hostId;
|
|
36653
|
+
const restoreAutoConnect = currentConnection.autoConnect;
|
|
36654
|
+
const targetChanged = currentConnection.hostId !== connection.hostId || currentConnection.sshAlias !== connection.sshAlias || currentConnection.sshHost !== connection.sshHost || currentConnection.sshPort !== connection.sshPort || currentConnection.identity !== connection.identity;
|
|
36655
|
+
if (rows.get(currentHostId) !== row || targetChanged || row.pending || row.installation !== "installed" || remoteBusy(row.remote))
|
|
36656
|
+
throw new Error(
|
|
36657
|
+
t(
|
|
36658
|
+
"SSH \u8FDE\u63A5\u5DF2\u66F4\u6539\u6216\u8FDC\u7A0B\u670D\u52A1\u6B63\u5728\u6267\u884C\u5176\u4ED6\u64CD\u4F5C\uFF0C\u8BF7\u5237\u65B0\u540E\u91CD\u8BD5\u3002",
|
|
36659
|
+
"The SSH connection changed or another remote operation is active; refresh and retry."
|
|
36660
|
+
)
|
|
36661
|
+
);
|
|
36662
|
+
await act(
|
|
36663
|
+
row,
|
|
36664
|
+
action,
|
|
36665
|
+
t("\u6B63\u5728\u91CD\u542F\u8FDC\u7A0B\u670D\u52A1\u2026", "Restarting remote service\u2026"),
|
|
36666
|
+
async () => {
|
|
36667
|
+
let restartError;
|
|
36668
|
+
try {
|
|
36669
|
+
await control.ssh.connect(currentHostId, false, signal);
|
|
36670
|
+
restarting.set(currentHostId, Date.now() + RESTART_GRACE_MS);
|
|
36671
|
+
await control.setup(connection, "restart");
|
|
36672
|
+
} catch (error62) {
|
|
36673
|
+
restartError = error62;
|
|
36674
|
+
restarting.delete(currentHostId);
|
|
36675
|
+
}
|
|
36676
|
+
try {
|
|
36677
|
+
await control.ssh.connect(currentHostId, restoreAutoConnect);
|
|
36678
|
+
} catch (restoreError) {
|
|
36679
|
+
if (restartError)
|
|
36680
|
+
throw new Error(
|
|
36681
|
+
t(
|
|
36682
|
+
`\u91CD\u542F\u5931\u8D25\uFF1A${remoteErrorMessage(restartError)}\uFF1B\u6062\u590D\u8FDE\u63A5\u72B6\u6001\u4E5F\u5931\u8D25\uFF1A${remoteErrorMessage(restoreError)}`,
|
|
36683
|
+
`Restart failed: ${remoteErrorMessage(restartError)}; restoring the connection state also failed: ${remoteErrorMessage(restoreError)}`
|
|
36684
|
+
)
|
|
36685
|
+
);
|
|
36686
|
+
throw restoreError;
|
|
36687
|
+
}
|
|
36688
|
+
if (restartError) throw restartError;
|
|
36689
|
+
return t("\u8FDC\u7A0B\u670D\u52A1\u5DF2\u91CD\u542F", "Remote service restarted");
|
|
36690
|
+
},
|
|
36691
|
+
true
|
|
36692
|
+
);
|
|
36693
|
+
}
|
|
36694
|
+
});
|
|
36695
|
+
break;
|
|
35692
36696
|
}
|
|
35693
36697
|
}
|
|
35694
36698
|
const reload = () => {
|
|
@@ -38402,17 +39406,6 @@ ${error62.stderrTail}`] : []
|
|
|
38402
39406
|
});
|
|
38403
39407
|
}
|
|
38404
39408
|
|
|
38405
|
-
// src/renderer-transcript-dom.ts
|
|
38406
|
-
var REASONING_SOFT_WRAP_STORAGE_KEY = "codexhost.reasoning-soft-wrap.v1";
|
|
38407
|
-
var REASONING_SOFT_WRAP_CHANGE_EVENT = "codexhost:reasoning-soft-wrap-changed";
|
|
38408
|
-
function readReasoningTranscriptSoftWrap(ownerWindow) {
|
|
38409
|
-
return ownerWindow.localStorage.getItem(REASONING_SOFT_WRAP_STORAGE_KEY) === "true";
|
|
38410
|
-
}
|
|
38411
|
-
function setReasoningTranscriptSoftWrap(ownerWindow, enabled) {
|
|
38412
|
-
ownerWindow.localStorage.setItem(REASONING_SOFT_WRAP_STORAGE_KEY, String(enabled));
|
|
38413
|
-
ownerWindow.dispatchEvent(new Event(REASONING_SOFT_WRAP_CHANGE_EVENT));
|
|
38414
|
-
}
|
|
38415
|
-
|
|
38416
39409
|
// src/renderer-harness-preferences.ts
|
|
38417
39410
|
var HARNESS_PREFERENCES_UPDATED_EVENT = "codexhost:harness-preferences-updated";
|
|
38418
39411
|
var states = /* @__PURE__ */ new Map();
|
|
@@ -38462,6 +39455,17 @@ ${error62.stderrTail}`] : []
|
|
|
38462
39455
|
return work;
|
|
38463
39456
|
}
|
|
38464
39457
|
|
|
39458
|
+
// src/renderer-transcript-dom.ts
|
|
39459
|
+
var REASONING_SOFT_WRAP_STORAGE_KEY = "codexhost.reasoning-soft-wrap.v1";
|
|
39460
|
+
var REASONING_SOFT_WRAP_CHANGE_EVENT = "codexhost:reasoning-soft-wrap-changed";
|
|
39461
|
+
function readReasoningTranscriptSoftWrap(ownerWindow) {
|
|
39462
|
+
return ownerWindow.localStorage.getItem(REASONING_SOFT_WRAP_STORAGE_KEY) === "true";
|
|
39463
|
+
}
|
|
39464
|
+
function setReasoningTranscriptSoftWrap(ownerWindow, enabled) {
|
|
39465
|
+
ownerWindow.localStorage.setItem(REASONING_SOFT_WRAP_STORAGE_KEY, String(enabled));
|
|
39466
|
+
ownerWindow.dispatchEvent(new Event(REASONING_SOFT_WRAP_CHANGE_EVENT));
|
|
39467
|
+
}
|
|
39468
|
+
|
|
38465
39469
|
// src/renderer-idle-release-preference.ts
|
|
38466
39470
|
var IDLE_RELEASE_CHANGE_EVENT = "codexhost:idle-release-changed";
|
|
38467
39471
|
var IDLE_RELEASE_STATUS_EVENT = "codexhost:idle-release-status";
|
|
@@ -38583,12 +39587,24 @@ ${error62.stderrTail}`] : []
|
|
|
38583
39587
|
}
|
|
38584
39588
|
|
|
38585
39589
|
// src/settings/idle-release-controls.ts
|
|
38586
|
-
function mountIdleReleaseControls(context, messages, getLoadedSessionsClient) {
|
|
39590
|
+
function mountIdleReleaseControls(context, messages, getLoadedSessionsClient, options) {
|
|
38587
39591
|
const { content } = context;
|
|
38588
39592
|
const document2 = content.ownerDocument;
|
|
38589
39593
|
const owner = document2.defaultView;
|
|
38590
39594
|
if (!owner) return () => void 0;
|
|
38591
|
-
|
|
39595
|
+
let group;
|
|
39596
|
+
let header;
|
|
39597
|
+
let card;
|
|
39598
|
+
if (options?.headingTarget) {
|
|
39599
|
+
group = document2.createElement("section");
|
|
39600
|
+
group.setAttribute("aria-labelledby", options.headingTarget.headingId);
|
|
39601
|
+
header = options.headingTarget.header;
|
|
39602
|
+
card = document2.createElement("div");
|
|
39603
|
+
card.className = "rounded-[12px] border border-settings-border bg-settings-panel";
|
|
39604
|
+
group.append(card);
|
|
39605
|
+
} else {
|
|
39606
|
+
({ group, header, card } = createPreferenceGroup(document2, messages.idleReleaseSection));
|
|
39607
|
+
}
|
|
38592
39608
|
const status = document2.createElement("div");
|
|
38593
39609
|
status.className = "group/status ml-auto inline-flex items-center gap-1.5 text-xs leading-[18px] text-settings-muted data-[state=failed]:text-settings-danger data-[state=unavailable]:text-settings-warning";
|
|
38594
39610
|
const statusDot = document2.createElement("span");
|
|
@@ -38754,6 +39770,34 @@ ${error62.stderrTail}`] : []
|
|
|
38754
39770
|
ownerWindow.addEventListener(REASONING_SOFT_WRAP_CHANGE_EVENT, sync);
|
|
38755
39771
|
row.item.append(toggle);
|
|
38756
39772
|
card.append(row.item);
|
|
39773
|
+
const groupChatsId = preferenceId("show-group-chats-sidebar");
|
|
39774
|
+
const groupChatsRow = createPreferenceItem(document2, {
|
|
39775
|
+
title: messages.showGroupChatsInSidebarTitle,
|
|
39776
|
+
description: messages.showGroupChatsInSidebarDescription,
|
|
39777
|
+
controlId: groupChatsId
|
|
39778
|
+
});
|
|
39779
|
+
const groupChatsToggle = createPreferenceSwitch(
|
|
39780
|
+
document2,
|
|
39781
|
+
groupChatsId,
|
|
39782
|
+
groupChatsRow.description.id
|
|
39783
|
+
);
|
|
39784
|
+
const readShowGroupChats = () => rendererHarnessPreferences("local")?.values.showGroupChatsInSidebar ?? true;
|
|
39785
|
+
groupChatsToggle.checked = readShowGroupChats();
|
|
39786
|
+
groupChatsToggle.addEventListener("change", () => {
|
|
39787
|
+
const visible = groupChatsToggle.checked;
|
|
39788
|
+
void writeRendererHarnessPreferences(ownerWindow, "local", [
|
|
39789
|
+
{ kind: "groupChatsSidebar", visible }
|
|
39790
|
+
]).catch(() => {
|
|
39791
|
+
groupChatsToggle.checked = readShowGroupChats();
|
|
39792
|
+
});
|
|
39793
|
+
});
|
|
39794
|
+
const syncGroupChats = () => {
|
|
39795
|
+
if (rendererHarnessPreferenceStatus("local") === "pending") return;
|
|
39796
|
+
groupChatsToggle.checked = readShowGroupChats();
|
|
39797
|
+
};
|
|
39798
|
+
ownerWindow.addEventListener(HARNESS_PREFERENCES_UPDATED_EVENT, syncGroupChats);
|
|
39799
|
+
groupChatsRow.item.append(groupChatsToggle);
|
|
39800
|
+
card.append(groupChatsRow.item);
|
|
38757
39801
|
context.content.append(heading, description, ...desktopShell ? [desktopShell] : [], group);
|
|
38758
39802
|
const disposeIdleRelease = mountIdleReleaseControls(
|
|
38759
39803
|
context,
|
|
@@ -38762,6 +39806,7 @@ ${error62.stderrTail}`] : []
|
|
|
38762
39806
|
);
|
|
38763
39807
|
return () => {
|
|
38764
39808
|
ownerWindow.removeEventListener(REASONING_SOFT_WRAP_CHANGE_EVENT, sync);
|
|
39809
|
+
ownerWindow.removeEventListener(HARNESS_PREFERENCES_UPDATED_EVENT, syncGroupChats);
|
|
38765
39810
|
disposeIdleRelease();
|
|
38766
39811
|
};
|
|
38767
39812
|
}
|
|
@@ -39831,6 +40876,7 @@ ${error62.stderrTail}`] : []
|
|
|
39831
40876
|
"desktop",
|
|
39832
40877
|
"backend"
|
|
39833
40878
|
];
|
|
40879
|
+
var SORT_MODE_ORDER = HOST_EXTENSION_MARKETPLACE_SORT_MODES;
|
|
39834
40880
|
var SAFE_SCREENSHOT_DATA_URL_PATTERN = /^data:image\/(?:png|jpeg|webp);base64,[A-Za-z0-9+/]+={0,2}$/u;
|
|
39835
40881
|
var SAFE_ICON_DATA_URL_PATTERN = /^data:image\/(?:png|jpeg|webp|gif|avif);base64,[A-Za-z0-9+/]+={0,2}$/u;
|
|
39836
40882
|
var EXTENSION_CATEGORY_ICON_MAP = Object.freeze({
|
|
@@ -39911,6 +40957,18 @@ ${error62.stderrTail}`] : []
|
|
|
39911
40957
|
return copy.filterBackend;
|
|
39912
40958
|
}
|
|
39913
40959
|
}
|
|
40960
|
+
function sortModeLabel(mode, copy) {
|
|
40961
|
+
switch (mode) {
|
|
40962
|
+
case "recommended":
|
|
40963
|
+
return copy.sortRecommended;
|
|
40964
|
+
case "downloads":
|
|
40965
|
+
return copy.sortDownloads;
|
|
40966
|
+
case "newest":
|
|
40967
|
+
return copy.sortNewest;
|
|
40968
|
+
case "updated":
|
|
40969
|
+
return copy.sortUpdated;
|
|
40970
|
+
}
|
|
40971
|
+
}
|
|
39914
40972
|
function resolveExtensionIconCategory(categories) {
|
|
39915
40973
|
const primary = categories?.[0];
|
|
39916
40974
|
if (primary && Object.hasOwn(EXTENSION_CATEGORY_ICON_MAP, primary)) {
|
|
@@ -39998,32 +41056,8 @@ ${error62.stderrTail}`] : []
|
|
|
39998
41056
|
}
|
|
39999
41057
|
return container;
|
|
40000
41058
|
}
|
|
40001
|
-
function
|
|
40002
|
-
|
|
40003
|
-
if (officialDelta !== 0) return officialDelta;
|
|
40004
|
-
const downloadsDelta = (right.downloads ?? 0) - (left.downloads ?? 0);
|
|
40005
|
-
if (downloadsDelta !== 0) return downloadsDelta;
|
|
40006
|
-
const iconDelta = Number(Boolean(right.icon)) - Number(Boolean(left.icon));
|
|
40007
|
-
if (iconDelta !== 0) return iconDelta;
|
|
40008
|
-
const crossPlatformDelta = Number(right.targets.includes("web") && right.targets.includes("desktop")) - Number(left.targets.includes("web") && left.targets.includes("desktop"));
|
|
40009
|
-
if (crossPlatformDelta !== 0) return crossPlatformDelta;
|
|
40010
|
-
const starsDelta = (right.stars ?? 0) - (left.stars ?? 0);
|
|
40011
|
-
if (starsDelta !== 0) return starsDelta;
|
|
40012
|
-
return left.id.localeCompare(right.id, "en");
|
|
40013
|
-
}
|
|
40014
|
-
var MAX_EXPLICIT_FEATURED_ENTRIES = 12;
|
|
40015
|
-
function selectFeaturedCatalogEntries(entries, limit = 3) {
|
|
40016
|
-
const explicit = entries.filter((entry) => entry.featured === true);
|
|
40017
|
-
if (explicit.length > 0) {
|
|
40018
|
-
return [...explicit].sort((left, right) => {
|
|
40019
|
-
const leftOrder = left.featuredOrder ?? Number.POSITIVE_INFINITY;
|
|
40020
|
-
const rightOrder = right.featuredOrder ?? Number.POSITIVE_INFINITY;
|
|
40021
|
-
if (leftOrder !== rightOrder) return leftOrder - rightOrder;
|
|
40022
|
-
return compareCatalogEntriesByRank(left, right);
|
|
40023
|
-
}).slice(0, MAX_EXPLICIT_FEATURED_ENTRIES);
|
|
40024
|
-
}
|
|
40025
|
-
if (entries.length <= limit) return [...entries].sort(compareCatalogEntriesByRank);
|
|
40026
|
-
return [...entries].sort(compareCatalogEntriesByRank).slice(0, limit);
|
|
41059
|
+
function selectFeaturedCatalogEntries(entries, limit = HOST_EXTENSION_FEATURED_LIMIT) {
|
|
41060
|
+
return selectFeaturedHostExtensions(entries, { host: "desktop", limit });
|
|
40027
41061
|
}
|
|
40028
41062
|
function formatMessage(template, values) {
|
|
40029
41063
|
return template.replace(/\{([a-zA-Z0-9_]+)\}/gu, (match, key2) => values[key2] ?? match);
|
|
@@ -40053,11 +41087,37 @@ ${error62.stderrTail}`] : []
|
|
|
40053
41087
|
if (item.state !== "valid") {
|
|
40054
41088
|
return item.state === "incompatible" ? "incompatible" : "invalid";
|
|
40055
41089
|
}
|
|
40056
|
-
if (item.backendState === "failed") return "failed";
|
|
41090
|
+
if (item.backendState === "failed" || item.operation?.state === "failed") return "failed";
|
|
40057
41091
|
if (item.desktopConflictWith) return "conflict";
|
|
40058
41092
|
if (item.enabled && item.backendState === "starting") return "waiting";
|
|
40059
41093
|
return item.enabled ? "running" : "disabled";
|
|
40060
41094
|
}
|
|
41095
|
+
function localizeHostExtensionErrorMessage(message2, copy) {
|
|
41096
|
+
if (message2 === "Download timed out") {
|
|
41097
|
+
return copy.errorDownloadTimeout;
|
|
41098
|
+
}
|
|
41099
|
+
if (/^Download returned HTTP \d+$/u.test(message2) || message2 === "Download aborted") {
|
|
41100
|
+
return copy.errorDownloadUnavailable;
|
|
41101
|
+
}
|
|
41102
|
+
if (message2 === "Requested extension version is not yet available from the registry; please try again") {
|
|
41103
|
+
return copy.errorVersionNotReady;
|
|
41104
|
+
}
|
|
41105
|
+
if (message2 === "Host extension catalog unavailable") {
|
|
41106
|
+
return copy.errorCatalogUnavailable;
|
|
41107
|
+
}
|
|
41108
|
+
if (message2 === "Extension ZIP SHA-256 mismatch") {
|
|
41109
|
+
return copy.errorChecksumMismatch;
|
|
41110
|
+
}
|
|
41111
|
+
return message2;
|
|
41112
|
+
}
|
|
41113
|
+
function formatHostExtensionOperationError(operation, copy) {
|
|
41114
|
+
if (operation.interruptedByShutdown) {
|
|
41115
|
+
return copy.updateInterruptedNotice;
|
|
41116
|
+
}
|
|
41117
|
+
return formatMessage(copy.updateFailedNotice, {
|
|
41118
|
+
message: localizeHostExtensionErrorMessage(operation.error, copy)
|
|
41119
|
+
});
|
|
41120
|
+
}
|
|
40061
41121
|
function needsAttention(state) {
|
|
40062
41122
|
return state === "failed" || state === "conflict" || state === "invalid" || state === "incompatible";
|
|
40063
41123
|
}
|
|
@@ -40168,6 +41228,12 @@ ${error62.stderrTail}`] : []
|
|
|
40168
41228
|
text: item.backendError || copy.backendFailedNotice
|
|
40169
41229
|
};
|
|
40170
41230
|
}
|
|
41231
|
+
if (item.operation?.state === "failed") {
|
|
41232
|
+
return {
|
|
41233
|
+
tone: "danger",
|
|
41234
|
+
text: formatHostExtensionOperationError(item.operation, copy)
|
|
41235
|
+
};
|
|
41236
|
+
}
|
|
40171
41237
|
if (item.desktopConflictWith) {
|
|
40172
41238
|
const other = describeOtherExtension(item.desktopConflictWith, allExtensions, locale);
|
|
40173
41239
|
const shared = overlappingSlots(item, item.desktopConflictWith, allExtensions);
|
|
@@ -43318,6 +44384,9 @@ ${error62.stderrTail}`] : []
|
|
|
43318
44384
|
installedById,
|
|
43319
44385
|
isDefaultHome = false,
|
|
43320
44386
|
selectedCategory = null,
|
|
44387
|
+
sortMode = "recommended",
|
|
44388
|
+
searchQuery = "",
|
|
44389
|
+
applyDiversity = false,
|
|
43321
44390
|
catalogIconLoader,
|
|
43322
44391
|
canInstall,
|
|
43323
44392
|
pendingMutations,
|
|
@@ -43333,7 +44402,10 @@ ${error62.stderrTail}`] : []
|
|
|
43333
44402
|
const installed = installedById.get(entry.id);
|
|
43334
44403
|
const updateAvailable = hasCatalogUpdate(installed, entry);
|
|
43335
44404
|
const installState = installed ? updateAvailable ? "update" : installed.enabled ? "installed" : "installed-disabled" : "available";
|
|
43336
|
-
const
|
|
44405
|
+
const hostOperation = installed?.state === "valid" ? installed.operation : void 0;
|
|
44406
|
+
const isHostUpdating = hostOperation?.state === "updating";
|
|
44407
|
+
const isHostUpdateFailed = hostOperation?.state === "failed";
|
|
44408
|
+
const entryAction = pendingMutations.get(entry.id) ?? (isHostUpdating ? "update" : null);
|
|
43337
44409
|
const isBusyCard = entryAction !== null;
|
|
43338
44410
|
const controlsDisabled = isBusyCard || globalBusy;
|
|
43339
44411
|
const actionButton = createEl(document2, "button");
|
|
@@ -43357,7 +44429,12 @@ ${error62.stderrTail}`] : []
|
|
|
43357
44429
|
actionButton.append(createRendererSettingsIcon("arrow-up", 11));
|
|
43358
44430
|
}
|
|
43359
44431
|
actionButton.append(
|
|
43360
|
-
createEl(
|
|
44432
|
+
createEl(
|
|
44433
|
+
document2,
|
|
44434
|
+
"span",
|
|
44435
|
+
"",
|
|
44436
|
+
updatingThis ? copy.updating : isHostUpdateFailed ? copy.retryUpdate : copy.update
|
|
44437
|
+
)
|
|
43361
44438
|
);
|
|
43362
44439
|
actionButton.setAttribute("aria-busy", String(updatingThis));
|
|
43363
44440
|
actionButton.disabled = controlsDisabled || !canInstall;
|
|
@@ -43415,7 +44492,11 @@ ${error62.stderrTail}`] : []
|
|
|
43415
44492
|
version: updateAvailable && installed?.state === "valid" ? installed.manifest.version : entry.version,
|
|
43416
44493
|
downloads: entry.downloads,
|
|
43417
44494
|
trustTier: entry.trustTier,
|
|
43418
|
-
statusDotOverride: installState === "update" && installed && !installed.enabled ? { tone: "neutral", label: copy.installedDisabledBadge } : void 0,
|
|
44495
|
+
statusDotOverride: isHostUpdateFailed ? { tone: "danger", label: copy.states.failed } : installState === "update" && installed && !installed.enabled ? { tone: "neutral", label: copy.installedDisabledBadge } : void 0,
|
|
44496
|
+
attention: hostOperation?.state === "failed" ? {
|
|
44497
|
+
tone: "danger",
|
|
44498
|
+
text: formatHostExtensionOperationError(hostOperation, copy)
|
|
44499
|
+
} : void 0,
|
|
43419
44500
|
update: updateAvailable && installed?.state === "valid" ? {
|
|
43420
44501
|
version: entry.version,
|
|
43421
44502
|
label: formatMessage(copy.updateVersionCue, {
|
|
@@ -43437,10 +44518,19 @@ ${error62.stderrTail}`] : []
|
|
|
43437
44518
|
});
|
|
43438
44519
|
};
|
|
43439
44520
|
const hasExplicitFeatured = visibleEntries.some((entry) => entry.featured === true);
|
|
43440
|
-
const
|
|
44521
|
+
const desktopCompatibleCount = visibleEntries.filter(
|
|
44522
|
+
(entry) => isHostExtensionCompatibleWithHost(entry, "desktop")
|
|
44523
|
+
).length;
|
|
44524
|
+
const showFeaturedSection = isDefaultHome && (hasExplicitFeatured || desktopCompatibleCount > 3);
|
|
43441
44525
|
const featuredEntries = showFeaturedSection ? selectFeaturedCatalogEntries(visibleEntries, 3) : [];
|
|
43442
44526
|
const featuredIds = new Set(featuredEntries.map((entry) => entry.id));
|
|
43443
|
-
const
|
|
44527
|
+
const remainingEntries = showFeaturedSection ? visibleEntries.filter((entry) => !featuredIds.has(entry.id)) : visibleEntries;
|
|
44528
|
+
const communityEntries = rankHostExtensionCatalogEntries(remainingEntries, {
|
|
44529
|
+
host: "desktop",
|
|
44530
|
+
sortMode,
|
|
44531
|
+
query: searchQuery,
|
|
44532
|
+
applyDiversity: applyDiversity && !searchQuery && sortMode === "recommended"
|
|
44533
|
+
});
|
|
43444
44534
|
const sections = createEl(document2, "div", "settings-extensions-sections");
|
|
43445
44535
|
sections.setAttribute("aria-label", messages.pageLabels["desktop-extensions"]);
|
|
43446
44536
|
if (featuredEntries.length > 0) {
|
|
@@ -43595,6 +44685,56 @@ ${error62.stderrTail}`] : []
|
|
|
43595
44685
|
clearSearchButton.hidden = true;
|
|
43596
44686
|
clearSearchButton.append(createRendererSettingsIcon("close", 12));
|
|
43597
44687
|
searchBox.append(searchIcon, searchInput, clearSearchButton);
|
|
44688
|
+
const sortWrap = createEl(document2, "div", "settings-extensions__sort");
|
|
44689
|
+
const sortButton = createEl(document2, "button", "settings-extensions__filter-button");
|
|
44690
|
+
sortButton.type = "button";
|
|
44691
|
+
sortButton.dataset.action = "sort-menu";
|
|
44692
|
+
sortButton.title = copy.sortLabel;
|
|
44693
|
+
sortButton.setAttribute("aria-label", copy.sortLabel);
|
|
44694
|
+
sortButton.setAttribute("aria-haspopup", "menu");
|
|
44695
|
+
sortButton.setAttribute("aria-expanded", "false");
|
|
44696
|
+
const sortLabelSpan = createEl(document2, "span", "", copy.sortRecommended);
|
|
44697
|
+
const sortActiveDot = createEl(document2, "span", "settings-extensions__filter-dot");
|
|
44698
|
+
sortActiveDot.hidden = true;
|
|
44699
|
+
sortActiveDot.setAttribute("aria-hidden", "true");
|
|
44700
|
+
sortButton.append(
|
|
44701
|
+
createRendererSettingsIcon("arrow-up-down", 13),
|
|
44702
|
+
sortLabelSpan,
|
|
44703
|
+
sortActiveDot,
|
|
44704
|
+
createRendererSettingsIcon("chevron-down", 11)
|
|
44705
|
+
);
|
|
44706
|
+
const sortMenu = createEl(
|
|
44707
|
+
document2,
|
|
44708
|
+
"div",
|
|
44709
|
+
"settings-extensions-menu settings-extensions-menu--sort"
|
|
44710
|
+
);
|
|
44711
|
+
sortMenu.dataset.menu = "sort";
|
|
44712
|
+
sortMenu.setAttribute("role", "menu");
|
|
44713
|
+
sortMenu.setAttribute("aria-label", copy.sortLabel);
|
|
44714
|
+
sortMenu.hidden = true;
|
|
44715
|
+
const sortOptionButtons = /* @__PURE__ */ new Map();
|
|
44716
|
+
for (const mode of SORT_MODE_ORDER) {
|
|
44717
|
+
const itemButton = createEl(
|
|
44718
|
+
document2,
|
|
44719
|
+
"button",
|
|
44720
|
+
"settings-extensions-menu__item settings-extensions-menu__item--radio"
|
|
44721
|
+
);
|
|
44722
|
+
itemButton.type = "button";
|
|
44723
|
+
itemButton.setAttribute("role", "menuitemradio");
|
|
44724
|
+
itemButton.dataset.sortOption = mode;
|
|
44725
|
+
const labelSpan = createEl(
|
|
44726
|
+
document2,
|
|
44727
|
+
"span",
|
|
44728
|
+
"settings-extensions-menu__item-label",
|
|
44729
|
+
sortModeLabel(mode, copy)
|
|
44730
|
+
);
|
|
44731
|
+
const checkSlot = createEl(document2, "span", "settings-extensions-menu__check");
|
|
44732
|
+
checkSlot.append(createRendererSettingsIcon("check", 13));
|
|
44733
|
+
itemButton.append(labelSpan, checkSlot);
|
|
44734
|
+
sortMenu.append(itemButton);
|
|
44735
|
+
sortOptionButtons.set(mode, { button: itemButton, checkSlot });
|
|
44736
|
+
}
|
|
44737
|
+
sortWrap.append(sortButton, sortMenu);
|
|
43598
44738
|
const filterWrap = createEl(document2, "div", "settings-extensions__filter");
|
|
43599
44739
|
const filterButton = createEl(document2, "button", "settings-extensions__filter-button");
|
|
43600
44740
|
filterButton.type = "button";
|
|
@@ -43747,7 +44887,7 @@ ${error62.stderrTail}`] : []
|
|
|
43747
44887
|
);
|
|
43748
44888
|
moreMenu.append(refreshMenuItem, copyDirectoryMenuItem, menuDivider, recoveryMenuItem);
|
|
43749
44889
|
moreWrap.append(moreButton, moreMenu);
|
|
43750
|
-
barActions.append(searchBox, filterWrap, moreWrap);
|
|
44890
|
+
barActions.append(searchBox, sortWrap, filterWrap, moreWrap);
|
|
43751
44891
|
stickyBar.append(navTabs, barActions);
|
|
43752
44892
|
const banner = createEl(document2, "div", "settings-extensions__banner");
|
|
43753
44893
|
banner.hidden = true;
|
|
@@ -43772,6 +44912,7 @@ ${error62.stderrTail}`] : []
|
|
|
43772
44912
|
let disposed = false;
|
|
43773
44913
|
let moreMenuOpen = false;
|
|
43774
44914
|
let filterMenuOpen = false;
|
|
44915
|
+
let sortMenuOpen = false;
|
|
43775
44916
|
let contentLocalePreference = readContentLocalePreference(ownerWindow);
|
|
43776
44917
|
let activeView = initialHasCatalog ? "all" : "installed";
|
|
43777
44918
|
let listing = null;
|
|
@@ -43791,6 +44932,7 @@ ${error62.stderrTail}`] : []
|
|
|
43791
44932
|
let pollTimer;
|
|
43792
44933
|
let activeRecoveryDialog = null;
|
|
43793
44934
|
let selectedCapability = "all";
|
|
44935
|
+
let selectedSort = "recommended";
|
|
43794
44936
|
let searchQuery = "";
|
|
43795
44937
|
let modalFeedback = null;
|
|
43796
44938
|
const isInstalledView = () => activeView === "installed";
|
|
@@ -43815,6 +44957,21 @@ ${error62.stderrTail}`] : []
|
|
|
43815
44957
|
};
|
|
43816
44958
|
};
|
|
43817
44959
|
const resolveContentLocale = () => contentLocalePreference === "system" ? messages.locale : contentLocalePreference;
|
|
44960
|
+
const syncSortControl = () => {
|
|
44961
|
+
const installed = isInstalledView();
|
|
44962
|
+
sortWrap.hidden = installed;
|
|
44963
|
+
if (installed && sortMenuOpen) setSortMenuOpen(false);
|
|
44964
|
+
const active2 = selectedSort !== "recommended";
|
|
44965
|
+
sortLabelSpan.textContent = sortModeLabel(selectedSort, copy);
|
|
44966
|
+
sortButton.dataset.sortMode = selectedSort;
|
|
44967
|
+
sortButton.dataset.active = active2 ? "true" : "false";
|
|
44968
|
+
sortActiveDot.hidden = !active2;
|
|
44969
|
+
for (const [mode, entry] of sortOptionButtons) {
|
|
44970
|
+
const selected = mode === selectedSort;
|
|
44971
|
+
entry.button.setAttribute("aria-checked", String(selected));
|
|
44972
|
+
entry.checkSlot.hidden = !selected;
|
|
44973
|
+
}
|
|
44974
|
+
};
|
|
43818
44975
|
const syncFilterControl = () => {
|
|
43819
44976
|
const effective = resolveContentLocale();
|
|
43820
44977
|
const capabilityActive = selectedCapability !== "all";
|
|
@@ -43863,6 +45020,17 @@ ${error62.stderrTail}`] : []
|
|
|
43863
45020
|
};
|
|
43864
45021
|
const buildDetailModalState = () => {
|
|
43865
45022
|
const { canInstall, canUninstall } = clientCapabilities();
|
|
45023
|
+
const combinedPending = new Map(pendingMutations);
|
|
45024
|
+
for (const item of listing?.extensions ?? []) {
|
|
45025
|
+
if (item.state === "valid" && item.operation?.state === "updating" && !combinedPending.has(item.id)) {
|
|
45026
|
+
combinedPending.set(item.id, "update");
|
|
45027
|
+
}
|
|
45028
|
+
}
|
|
45029
|
+
const openItem = detailModal.extensionId ? listing?.extensions.find((item) => item.id === detailModal.extensionId) : void 0;
|
|
45030
|
+
const hostFailureFeedback = openItem?.state === "valid" && openItem.operation?.state === "failed" ? {
|
|
45031
|
+
tone: "danger",
|
|
45032
|
+
text: formatHostExtensionOperationError(openItem.operation, copy)
|
|
45033
|
+
} : null;
|
|
43866
45034
|
return {
|
|
43867
45035
|
extensions: listing?.extensions ?? [],
|
|
43868
45036
|
catalogExtensions: catalog?.extensions ?? [],
|
|
@@ -43871,9 +45039,9 @@ ${error62.stderrTail}`] : []
|
|
|
43871
45039
|
unavailable,
|
|
43872
45040
|
canInstall,
|
|
43873
45041
|
canUninstall,
|
|
43874
|
-
pendingMutations:
|
|
45042
|
+
pendingMutations: combinedPending,
|
|
43875
45043
|
globalBusy: recovering,
|
|
43876
|
-
feedback: modalFeedback !== null && modalFeedback.extensionId === detailModal.extensionId ? modalFeedback.feedback :
|
|
45044
|
+
feedback: modalFeedback !== null && modalFeedback.extensionId === detailModal.extensionId ? modalFeedback.feedback : hostFailureFeedback
|
|
43877
45045
|
};
|
|
43878
45046
|
};
|
|
43879
45047
|
const detailModal = createDesktopExtensionDetailModal({
|
|
@@ -44030,6 +45198,7 @@ ${error62.stderrTail}`] : []
|
|
|
44030
45198
|
createButton.disabled = recovering;
|
|
44031
45199
|
recoveryMenuItem.disabled = hasPendingMutations() || !canRecover;
|
|
44032
45200
|
syncNavTabs();
|
|
45201
|
+
syncSortControl();
|
|
44033
45202
|
syncFilterControl();
|
|
44034
45203
|
};
|
|
44035
45204
|
const renderDiagnostics = () => {
|
|
@@ -44107,14 +45276,29 @@ ${error62.stderrTail}`] : []
|
|
|
44107
45276
|
empty.append(copyBox, resetButton);
|
|
44108
45277
|
body.replaceChildren(...prefixNodes, empty);
|
|
44109
45278
|
};
|
|
45279
|
+
const setSortMenuOpen = (open2) => {
|
|
45280
|
+
if (open2) {
|
|
45281
|
+
if (filterMenuOpen) setFilterMenuOpen(false);
|
|
45282
|
+
if (moreMenuOpen) setMoreMenuOpen(false);
|
|
45283
|
+
}
|
|
45284
|
+
sortMenuOpen = open2;
|
|
45285
|
+
sortMenu.hidden = !open2;
|
|
45286
|
+
sortButton.setAttribute("aria-expanded", String(open2));
|
|
45287
|
+
};
|
|
44110
45288
|
const setFilterMenuOpen = (open2) => {
|
|
44111
|
-
if (open2
|
|
45289
|
+
if (open2) {
|
|
45290
|
+
if (sortMenuOpen) setSortMenuOpen(false);
|
|
45291
|
+
if (moreMenuOpen) setMoreMenuOpen(false);
|
|
45292
|
+
}
|
|
44112
45293
|
filterMenuOpen = open2;
|
|
44113
45294
|
filterMenu.hidden = !open2;
|
|
44114
45295
|
filterButton.setAttribute("aria-expanded", String(open2));
|
|
44115
45296
|
};
|
|
44116
45297
|
const setMoreMenuOpen = (open2) => {
|
|
44117
|
-
if (open2
|
|
45298
|
+
if (open2) {
|
|
45299
|
+
if (sortMenuOpen) setSortMenuOpen(false);
|
|
45300
|
+
if (filterMenuOpen) setFilterMenuOpen(false);
|
|
45301
|
+
}
|
|
44118
45302
|
moreMenuOpen = open2;
|
|
44119
45303
|
moreMenu.hidden = !open2;
|
|
44120
45304
|
moreButton.setAttribute("aria-expanded", String(open2));
|
|
@@ -44122,6 +45306,7 @@ ${error62.stderrTail}`] : []
|
|
|
44122
45306
|
const closeHeaderMenus = () => {
|
|
44123
45307
|
if (moreMenuOpen) setMoreMenuOpen(false);
|
|
44124
45308
|
if (filterMenuOpen) setFilterMenuOpen(false);
|
|
45309
|
+
if (sortMenuOpen) setSortMenuOpen(false);
|
|
44125
45310
|
};
|
|
44126
45311
|
const openDetailModal = (extensionId) => {
|
|
44127
45312
|
if (disposed || context.signal.aborted || activeRecoveryDialog || importModal.isOpen) {
|
|
@@ -44140,7 +45325,10 @@ ${error62.stderrTail}`] : []
|
|
|
44140
45325
|
const errorId = preferenceId(`host-ext-error-${item.id}`);
|
|
44141
45326
|
const blocked = isToggleBlocked(item);
|
|
44142
45327
|
const statusState = itemStatusState(item);
|
|
44143
|
-
const
|
|
45328
|
+
const hostOperation = item.state === "valid" ? item.operation : void 0;
|
|
45329
|
+
const isHostUpdating = hostOperation?.state === "updating";
|
|
45330
|
+
const isHostUpdateFailed = hostOperation?.state === "failed";
|
|
45331
|
+
const extAction = pendingMutations.get(item.id) ?? (isHostUpdating ? "update" : null);
|
|
44144
45332
|
const isExtBusy = extAction !== null;
|
|
44145
45333
|
const controlsDisabled = isExtBusy || recovering;
|
|
44146
45334
|
const toggle = createPreferenceSwitch(document2, switchId, errorId);
|
|
@@ -44200,7 +45388,14 @@ ${error62.stderrTail}`] : []
|
|
|
44200
45388
|
if (!updating) {
|
|
44201
45389
|
button2.append(createRendererSettingsIcon("arrow-up", 11));
|
|
44202
45390
|
}
|
|
44203
|
-
button2.append(
|
|
45391
|
+
button2.append(
|
|
45392
|
+
createEl(
|
|
45393
|
+
document2,
|
|
45394
|
+
"span",
|
|
45395
|
+
"",
|
|
45396
|
+
updating ? copy.updating : isHostUpdateFailed ? copy.retryUpdate : copy.update
|
|
45397
|
+
)
|
|
45398
|
+
);
|
|
44204
45399
|
button2.addEventListener("click", (event) => {
|
|
44205
45400
|
event.stopPropagation?.();
|
|
44206
45401
|
if (!button2.disabled) void installFromCatalog(catalogEntry, true);
|
|
@@ -44419,7 +45614,7 @@ ${error62.stderrTail}`] : []
|
|
|
44419
45614
|
for (const item of listing?.extensions ?? []) {
|
|
44420
45615
|
installedById.set(item.id, item);
|
|
44421
45616
|
}
|
|
44422
|
-
const isDefaultHome = activeView === "all" && normalizedQuery === "" && selectedCapability === "all";
|
|
45617
|
+
const isDefaultHome = activeView === "all" && normalizedQuery === "" && selectedCapability === "all" && selectedSort === "recommended";
|
|
44423
45618
|
const { canInstall } = clientCapabilities();
|
|
44424
45619
|
const marketView = renderDesktopExtensionsMarketplaceGrid({
|
|
44425
45620
|
document: document2,
|
|
@@ -44430,6 +45625,9 @@ ${error62.stderrTail}`] : []
|
|
|
44430
45625
|
installedById,
|
|
44431
45626
|
isDefaultHome,
|
|
44432
45627
|
selectedCategory: category,
|
|
45628
|
+
sortMode: selectedSort,
|
|
45629
|
+
searchQuery: normalizedQuery,
|
|
45630
|
+
applyDiversity: activeView === "all" && normalizedQuery === "" && selectedSort === "recommended",
|
|
44433
45631
|
catalogIconLoader,
|
|
44434
45632
|
canInstall,
|
|
44435
45633
|
pendingMutations,
|
|
@@ -44672,6 +45870,7 @@ ${error62.stderrTail}`] : []
|
|
|
44672
45870
|
id: entry.id,
|
|
44673
45871
|
expectedDigest: installedItem.digest,
|
|
44674
45872
|
expectedActivationId: installedItem.activationId,
|
|
45873
|
+
expectedVersion: entry.version,
|
|
44675
45874
|
source: { type: "catalog", id: entry.id }
|
|
44676
45875
|
});
|
|
44677
45876
|
} else if (install) {
|
|
@@ -44688,6 +45887,10 @@ ${error62.stderrTail}`] : []
|
|
|
44688
45887
|
setFeedback(buildInstallFeedback(result, isUpdate, fallbackName), modalTargetId);
|
|
44689
45888
|
} catch (error62) {
|
|
44690
45889
|
if (disposed || context.signal.aborted) return;
|
|
45890
|
+
if (isUpdate) {
|
|
45891
|
+
await refreshInstalledAfterMutation();
|
|
45892
|
+
if (disposed || context.signal.aborted) return;
|
|
45893
|
+
}
|
|
44691
45894
|
const modalTargetId = detailModal.extensionId === entry.id ? entry.id : null;
|
|
44692
45895
|
setFeedback(
|
|
44693
45896
|
{
|
|
@@ -45044,12 +46247,19 @@ ${error62.stderrTail}`] : []
|
|
|
45044
46247
|
if (filterMenuOpen && !(event?.target && isWithinElement(event.target, filterWrap))) {
|
|
45045
46248
|
setFilterMenuOpen(false);
|
|
45046
46249
|
}
|
|
46250
|
+
if (sortMenuOpen && !(event?.target && isWithinElement(event.target, sortWrap))) {
|
|
46251
|
+
setSortMenuOpen(false);
|
|
46252
|
+
}
|
|
45047
46253
|
};
|
|
45048
46254
|
const onDocumentKeyDown = (event) => {
|
|
45049
|
-
if (!moreMenuOpen && !filterMenuOpen) return;
|
|
46255
|
+
if (!moreMenuOpen && !filterMenuOpen && !sortMenuOpen) return;
|
|
45050
46256
|
const key2 = event?.key;
|
|
45051
46257
|
if (key2 !== "Escape") return;
|
|
45052
46258
|
event?.preventDefault?.();
|
|
46259
|
+
if (sortMenuOpen) {
|
|
46260
|
+
setSortMenuOpen(false);
|
|
46261
|
+
sortButton.focus?.();
|
|
46262
|
+
}
|
|
45053
46263
|
if (filterMenuOpen) {
|
|
45054
46264
|
setFilterMenuOpen(false);
|
|
45055
46265
|
filterButton.focus?.();
|
|
@@ -45059,6 +46269,18 @@ ${error62.stderrTail}`] : []
|
|
|
45059
46269
|
moreButton.focus?.();
|
|
45060
46270
|
}
|
|
45061
46271
|
};
|
|
46272
|
+
sortButton.addEventListener("click", (event) => {
|
|
46273
|
+
event.stopPropagation?.();
|
|
46274
|
+
setSortMenuOpen(!sortMenuOpen);
|
|
46275
|
+
});
|
|
46276
|
+
for (const [mode, { button: button2 }] of sortOptionButtons) {
|
|
46277
|
+
button2.addEventListener("click", () => {
|
|
46278
|
+
setSortMenuOpen(false);
|
|
46279
|
+
if (selectedSort === mode) return;
|
|
46280
|
+
selectedSort = mode;
|
|
46281
|
+
render();
|
|
46282
|
+
});
|
|
46283
|
+
}
|
|
45062
46284
|
filterButton.addEventListener("click", (event) => {
|
|
45063
46285
|
event.stopPropagation?.();
|
|
45064
46286
|
setFilterMenuOpen(!filterMenuOpen);
|
|
@@ -46868,7 +48090,10 @@ ${error62.stderrTail}`] : []
|
|
|
46868
48090
|
const heading = document2.createElement("h1");
|
|
46869
48091
|
heading.className = "settings-section-label";
|
|
46870
48092
|
heading.textContent = messages.pageLabels.accounts;
|
|
46871
|
-
|
|
48093
|
+
const description = document2.createElement("p");
|
|
48094
|
+
description.className = "settings-page-description";
|
|
48095
|
+
description.textContent = messages.accountsDescription;
|
|
48096
|
+
copy.append(heading, description);
|
|
46872
48097
|
header.append(copy);
|
|
46873
48098
|
const status = document2.createElement("p");
|
|
46874
48099
|
status.className = "settings-account-status";
|
|
@@ -48653,6 +49878,9 @@ ${error62.stderrTail}`] : []
|
|
|
48653
49878
|
deadline = Date.now() + RENDERER_UPDATE_STATUS_WAIT_MS;
|
|
48654
49879
|
schedule(readStatus, previousStatus);
|
|
48655
49880
|
},
|
|
49881
|
+
stop() {
|
|
49882
|
+
clearTimer();
|
|
49883
|
+
},
|
|
48656
49884
|
dispose() {
|
|
48657
49885
|
disposed = true;
|
|
48658
49886
|
clearTimer();
|
|
@@ -48756,9 +49984,80 @@ ${error62.stderrTail}`] : []
|
|
|
48756
49984
|
return messages.locale === "zh-CN" ? `${reason}${recovery}` : `${reason} ${recovery}`;
|
|
48757
49985
|
}
|
|
48758
49986
|
|
|
48759
|
-
// src/settings/
|
|
49987
|
+
// src/settings/github-star-control.ts
|
|
48760
49988
|
var CODEXHOST_GITHUB_REPOSITORY_URL = "https://github.com/BytePioneer-AI/codex-host";
|
|
48761
|
-
|
|
49989
|
+
function createGitHubStarControl(document2, messages, client, signal, includeRepositoryLink = false) {
|
|
49990
|
+
const actions = document2.createElement("div");
|
|
49991
|
+
actions.className = "settings-github-actions";
|
|
49992
|
+
const repoLink = () => {
|
|
49993
|
+
const link = document2.createElement("a");
|
|
49994
|
+
link.className = "settings-github-pill";
|
|
49995
|
+
link.href = CODEXHOST_GITHUB_REPOSITORY_URL;
|
|
49996
|
+
link.target = "_blank";
|
|
49997
|
+
link.rel = "noopener noreferrer";
|
|
49998
|
+
return link;
|
|
49999
|
+
};
|
|
50000
|
+
if (includeRepositoryLink) {
|
|
50001
|
+
const link = repoLink();
|
|
50002
|
+
link.append(createRendererSettingsIcon("github", 15), "GitHub");
|
|
50003
|
+
actions.append(link);
|
|
50004
|
+
}
|
|
50005
|
+
const starMark = () => {
|
|
50006
|
+
const star = document2.createElement("span");
|
|
50007
|
+
star.className = "settings-github-star-mark";
|
|
50008
|
+
star.setAttribute("aria-hidden", "true");
|
|
50009
|
+
star.textContent = "\u2605";
|
|
50010
|
+
return star;
|
|
50011
|
+
};
|
|
50012
|
+
const fallback = repoLink();
|
|
50013
|
+
fallback.append(starMark(), messages.githubStar, createRendererSettingsIcon("external-link", 13));
|
|
50014
|
+
const button2 = document2.createElement("button");
|
|
50015
|
+
button2.type = "button";
|
|
50016
|
+
button2.className = "settings-github-pill";
|
|
50017
|
+
const label = document2.createElement("span");
|
|
50018
|
+
label.textContent = messages.githubStar;
|
|
50019
|
+
button2.append(starMark(), label);
|
|
50020
|
+
const showStarred = (celebrate) => {
|
|
50021
|
+
label.textContent = messages.githubStarred;
|
|
50022
|
+
button2.disabled = true;
|
|
50023
|
+
button2.classList.add("is-starred");
|
|
50024
|
+
if (celebrate) button2.classList.add("is-celebrating");
|
|
50025
|
+
};
|
|
50026
|
+
const control = document2.createElement("div");
|
|
50027
|
+
control.className = "settings-github-control";
|
|
50028
|
+
control.append(fallback);
|
|
50029
|
+
actions.append(control);
|
|
50030
|
+
const check2 = client?.getGitHubStarStatus?.bind(client);
|
|
50031
|
+
const add = client?.starGitHubRepository?.bind(client);
|
|
50032
|
+
if (!check2 || !add) return actions;
|
|
50033
|
+
void runBoundedRendererUpdateRequest(check2, signal).then((state) => {
|
|
50034
|
+
if (signal.aborted || !state.ghAvailable) return;
|
|
50035
|
+
if (state.starred) showStarred(false);
|
|
50036
|
+
control.replaceChildren(button2);
|
|
50037
|
+
}).catch(() => {
|
|
50038
|
+
});
|
|
50039
|
+
button2.addEventListener("click", async () => {
|
|
50040
|
+
if (signal.aborted || button2.disabled) return;
|
|
50041
|
+
button2.disabled = true;
|
|
50042
|
+
button2.setAttribute("aria-busy", "true");
|
|
50043
|
+
label.textContent = messages.githubStarring;
|
|
50044
|
+
const result = await runBoundedRendererUpdateRequest(add, signal).catch(() => null);
|
|
50045
|
+
button2.removeAttribute("aria-busy");
|
|
50046
|
+
if (signal.aborted) return;
|
|
50047
|
+
if (result?.ghAvailable && result.starred) {
|
|
50048
|
+
showStarred(true);
|
|
50049
|
+
return;
|
|
50050
|
+
}
|
|
50051
|
+
control.replaceChildren(fallback);
|
|
50052
|
+
fallback.click();
|
|
50053
|
+
});
|
|
50054
|
+
return actions;
|
|
50055
|
+
}
|
|
50056
|
+
|
|
50057
|
+
// src/settings/pages.ts
|
|
50058
|
+
var CODEXHOST_RELEASES_URL = `${CODEXHOST_GITHUB_REPOSITORY_URL}/releases`;
|
|
50059
|
+
var CODEXHOST_RELEASES_LATEST_URL = `${CODEXHOST_RELEASES_URL}/latest`;
|
|
50060
|
+
var CODEXHOST_ISSUES_URL = `${CODEXHOST_GITHUB_REPOSITORY_URL}/issues`;
|
|
48762
50061
|
var CODEXHOST_NPM_MANUAL_UPDATE_COMMAND = "npm install -g @codexhost/cli@latest";
|
|
48763
50062
|
function rendererUserAgentData(navigator2) {
|
|
48764
50063
|
return navigator2.userAgentData;
|
|
@@ -48836,17 +50135,25 @@ ${error62.stderrTail}`] : []
|
|
|
48836
50135
|
function consoleSection(document2, messages, client) {
|
|
48837
50136
|
if (!client?.openConsole) return null;
|
|
48838
50137
|
const openConsole = client.openConsole.bind(client);
|
|
48839
|
-
const
|
|
48840
|
-
|
|
50138
|
+
const row = document2.createElement("div");
|
|
50139
|
+
row.className = "settings-about-link-row settings-about-link-row--action";
|
|
50140
|
+
const text2 = document2.createElement("div");
|
|
50141
|
+
text2.className = "settings-about-link-row__text";
|
|
50142
|
+
const title = document2.createElement("span");
|
|
50143
|
+
title.className = "settings-about-link-row__title";
|
|
50144
|
+
title.textContent = messages.aboutConsoleTitle;
|
|
48841
50145
|
const copy = document2.createElement("p");
|
|
50146
|
+
copy.className = "settings-about-link-row__desc";
|
|
48842
50147
|
copy.textContent = messages.aboutConsole;
|
|
50148
|
+
const status = document2.createElement("p");
|
|
50149
|
+
status.className = "settings-update-error";
|
|
50150
|
+
status.setAttribute("role", "status");
|
|
50151
|
+
status.hidden = true;
|
|
50152
|
+
text2.append(title, copy, status);
|
|
48843
50153
|
const button2 = document2.createElement("button");
|
|
48844
50154
|
button2.type = "button";
|
|
48845
50155
|
button2.className = "settings-command-button settings-command-button--secondary";
|
|
48846
50156
|
button2.textContent = messages.aboutConsoleOpen;
|
|
48847
|
-
const status = document2.createElement("p");
|
|
48848
|
-
status.setAttribute("role", "status");
|
|
48849
|
-
status.hidden = true;
|
|
48850
50157
|
button2.addEventListener("click", () => {
|
|
48851
50158
|
button2.disabled = true;
|
|
48852
50159
|
button2.textContent = messages.aboutConsoleOpening;
|
|
@@ -48859,8 +50166,34 @@ ${error62.stderrTail}`] : []
|
|
|
48859
50166
|
button2.textContent = messages.aboutConsoleOpen;
|
|
48860
50167
|
});
|
|
48861
50168
|
});
|
|
48862
|
-
|
|
48863
|
-
return
|
|
50169
|
+
row.append(text2, button2);
|
|
50170
|
+
return row;
|
|
50171
|
+
}
|
|
50172
|
+
function createAboutLinkRow(document2, options) {
|
|
50173
|
+
const link = document2.createElement("a");
|
|
50174
|
+
link.className = "settings-about-link-row settings-about-link-row--interactive";
|
|
50175
|
+
link.href = options.href;
|
|
50176
|
+
link.target = "_blank";
|
|
50177
|
+
link.rel = "noopener noreferrer";
|
|
50178
|
+
const text2 = document2.createElement("div");
|
|
50179
|
+
text2.className = "settings-about-link-row__text";
|
|
50180
|
+
const title = document2.createElement("span");
|
|
50181
|
+
title.className = "settings-about-link-row__title";
|
|
50182
|
+
title.textContent = options.title;
|
|
50183
|
+
const desc = document2.createElement("span");
|
|
50184
|
+
desc.className = "settings-about-link-row__desc";
|
|
50185
|
+
desc.textContent = options.description;
|
|
50186
|
+
text2.append(title, desc);
|
|
50187
|
+
const trailing = document2.createElement("span");
|
|
50188
|
+
trailing.className = "settings-about-link-row__trailing";
|
|
50189
|
+
if (options.meta) {
|
|
50190
|
+
const code = document2.createElement("code");
|
|
50191
|
+
code.textContent = options.meta;
|
|
50192
|
+
trailing.append(code);
|
|
50193
|
+
}
|
|
50194
|
+
trailing.append(createRendererSettingsIcon("external-link", 14));
|
|
50195
|
+
link.append(text2, trailing);
|
|
50196
|
+
return link;
|
|
48864
50197
|
}
|
|
48865
50198
|
function aboutPage(messages, getClient = () => null) {
|
|
48866
50199
|
return Object.freeze({
|
|
@@ -48869,17 +50202,47 @@ ${error62.stderrTail}`] : []
|
|
|
48869
50202
|
icon: "about",
|
|
48870
50203
|
mount(context) {
|
|
48871
50204
|
const document2 = context.content.ownerDocument;
|
|
48872
|
-
const
|
|
50205
|
+
const page = document2.createElement("div");
|
|
50206
|
+
page.className = "settings-about-page";
|
|
50207
|
+
const header = document2.createElement("header");
|
|
50208
|
+
header.className = "settings-about-header";
|
|
50209
|
+
const headerCopy = document2.createElement("div");
|
|
50210
|
+
const heading = document2.createElement("h1");
|
|
48873
50211
|
heading.className = "settings-section-label";
|
|
48874
50212
|
heading.textContent = messages.pageLabels.about;
|
|
50213
|
+
const description = document2.createElement("p");
|
|
50214
|
+
description.className = "settings-page-description";
|
|
50215
|
+
description.textContent = messages.aboutDescription;
|
|
50216
|
+
headerCopy.append(heading, description);
|
|
50217
|
+
header.append(headerCopy);
|
|
48875
50218
|
const panel = document2.createElement("section");
|
|
48876
50219
|
panel.className = "settings-about-panel";
|
|
50220
|
+
const brand = document2.createElement("div");
|
|
50221
|
+
brand.className = "settings-about-brand";
|
|
50222
|
+
const mark = document2.createElement("span");
|
|
50223
|
+
mark.className = "settings-about-brand__mark";
|
|
50224
|
+
mark.append(createRendererSettingsBrandGlyph(24));
|
|
50225
|
+
const brandMeta = document2.createElement("div");
|
|
50226
|
+
brandMeta.className = "settings-about-brand__meta";
|
|
50227
|
+
const titleRow = document2.createElement("div");
|
|
50228
|
+
titleRow.className = "settings-about-brand__title-row";
|
|
48877
50229
|
const product = document2.createElement("strong");
|
|
48878
50230
|
product.className = "settings-about-product";
|
|
48879
50231
|
product.textContent = "CodexHost";
|
|
48880
|
-
const
|
|
50232
|
+
const versionBadge = document2.createElement("span");
|
|
50233
|
+
versionBadge.className = "settings-version-pill";
|
|
50234
|
+
versionBadge.hidden = true;
|
|
50235
|
+
titleRow.append(product, versionBadge);
|
|
50236
|
+
const tagline = document2.createElement("p");
|
|
48881
50237
|
tagline.className = "settings-about-tagline";
|
|
48882
50238
|
tagline.textContent = messages.aboutTagline;
|
|
50239
|
+
brandMeta.append(titleRow, tagline);
|
|
50240
|
+
const client = getClient();
|
|
50241
|
+
brand.append(
|
|
50242
|
+
mark,
|
|
50243
|
+
brandMeta,
|
|
50244
|
+
createGitHubStarControl(document2, messages, client, context.signal, true)
|
|
50245
|
+
);
|
|
48883
50246
|
const introduction = document2.createElement("div");
|
|
48884
50247
|
introduction.className = "settings-about-copy";
|
|
48885
50248
|
for (const paragraphText of messages.aboutParagraphs) {
|
|
@@ -48890,46 +50253,57 @@ ${error62.stderrTail}`] : []
|
|
|
48890
50253
|
const starCallout = document2.createElement("p");
|
|
48891
50254
|
starCallout.className = "settings-about-star-callout";
|
|
48892
50255
|
starCallout.textContent = messages.aboutStarCallout;
|
|
48893
|
-
|
|
48894
|
-
|
|
48895
|
-
|
|
48896
|
-
|
|
48897
|
-
|
|
48898
|
-
|
|
48899
|
-
|
|
48900
|
-
|
|
48901
|
-
|
|
48902
|
-
|
|
48903
|
-
|
|
48904
|
-
|
|
48905
|
-
|
|
48906
|
-
|
|
48907
|
-
|
|
50256
|
+
panel.append(brand, introduction, starCallout);
|
|
50257
|
+
const linksGroup = document2.createElement("section");
|
|
50258
|
+
linksGroup.className = "settings-about-links-section";
|
|
50259
|
+
const linksTitle = document2.createElement("h2");
|
|
50260
|
+
linksTitle.className = "settings-about-links-title";
|
|
50261
|
+
linksTitle.textContent = messages.aboutLinksTitle;
|
|
50262
|
+
const linksCard = document2.createElement("div");
|
|
50263
|
+
linksCard.className = "settings-about-links-card";
|
|
50264
|
+
linksCard.append(
|
|
50265
|
+
createAboutLinkRow(document2, {
|
|
50266
|
+
title: messages.aboutRepository,
|
|
50267
|
+
description: messages.aboutRepositoryDescription,
|
|
50268
|
+
href: CODEXHOST_GITHUB_REPOSITORY_URL,
|
|
50269
|
+
meta: "BytePioneer-AI/codex-host"
|
|
50270
|
+
}),
|
|
50271
|
+
createAboutLinkRow(document2, {
|
|
50272
|
+
title: messages.aboutReleases,
|
|
50273
|
+
description: messages.aboutReleasesDescription,
|
|
50274
|
+
href: CODEXHOST_RELEASES_URL
|
|
50275
|
+
}),
|
|
50276
|
+
createAboutLinkRow(document2, {
|
|
50277
|
+
title: messages.aboutIssues,
|
|
50278
|
+
description: messages.aboutIssuesDescription,
|
|
50279
|
+
href: CODEXHOST_ISSUES_URL
|
|
50280
|
+
})
|
|
48908
50281
|
);
|
|
48909
|
-
|
|
48910
|
-
|
|
48911
|
-
|
|
48912
|
-
|
|
48913
|
-
context.content.append(
|
|
50282
|
+
const consoleEntry = consoleSection(document2, messages, client);
|
|
50283
|
+
if (consoleEntry) linksCard.append(consoleEntry);
|
|
50284
|
+
linksGroup.append(linksTitle, linksCard);
|
|
50285
|
+
page.append(header, panel, linksGroup);
|
|
50286
|
+
context.content.append(page);
|
|
50287
|
+
if (client) {
|
|
50288
|
+
void runBoundedRendererUpdateRequest(() => client.checkUpdate(), context.signal).then((result) => {
|
|
50289
|
+
if (context.signal.aborted || !result?.currentVersion) return;
|
|
50290
|
+
versionBadge.textContent = `v${result.currentVersion}`;
|
|
50291
|
+
versionBadge.hidden = false;
|
|
50292
|
+
}).catch(() => {
|
|
50293
|
+
});
|
|
50294
|
+
}
|
|
48914
50295
|
return void 0;
|
|
48915
50296
|
}
|
|
48916
50297
|
});
|
|
48917
50298
|
}
|
|
48918
|
-
function updateStarBanner(
|
|
50299
|
+
function updateStarBanner(context, messages, client) {
|
|
50300
|
+
const document2 = context.content.ownerDocument;
|
|
48919
50301
|
const banner = document2.createElement("div");
|
|
48920
50302
|
banner.className = "settings-update-star";
|
|
48921
50303
|
const copy = document2.createElement("p");
|
|
48922
50304
|
copy.className = "settings-update-star__copy";
|
|
48923
50305
|
copy.textContent = messages.updateStarCallout;
|
|
48924
|
-
|
|
48925
|
-
link.className = "settings-update-link settings-update-star__link";
|
|
48926
|
-
link.href = CODEXHOST_GITHUB_REPOSITORY_URL;
|
|
48927
|
-
link.target = "_blank";
|
|
48928
|
-
link.rel = "noopener noreferrer";
|
|
48929
|
-
const star = createRendererSettingsIcon("star", 14);
|
|
48930
|
-
star.classList.add("settings-update-star__mark");
|
|
48931
|
-
link.append(createRendererSettingsIcon("github", 15), messages.updateStarLink, star);
|
|
48932
|
-
banner.append(copy, link);
|
|
50306
|
+
banner.append(copy, createGitHubStarControl(document2, messages, client, context.signal));
|
|
48933
50307
|
return banner;
|
|
48934
50308
|
}
|
|
48935
50309
|
function updatesPage(messages, getClient) {
|
|
@@ -48940,11 +50314,18 @@ ${error62.stderrTail}`] : []
|
|
|
48940
50314
|
mount(context) {
|
|
48941
50315
|
const document2 = context.content.ownerDocument;
|
|
48942
50316
|
const windows = isWindowsRenderer(document2.defaultView);
|
|
48943
|
-
const
|
|
50317
|
+
const page = document2.createElement("div");
|
|
50318
|
+
page.className = "settings-update-page";
|
|
50319
|
+
const header = document2.createElement("header");
|
|
48944
50320
|
header.className = "settings-update-header";
|
|
48945
|
-
const
|
|
50321
|
+
const headerCopy = document2.createElement("div");
|
|
50322
|
+
const heading = document2.createElement("h1");
|
|
48946
50323
|
heading.className = "settings-section-label";
|
|
48947
50324
|
heading.textContent = messages.pageLabels.updates;
|
|
50325
|
+
const headerDescription = document2.createElement("p");
|
|
50326
|
+
headerDescription.className = "settings-page-description";
|
|
50327
|
+
headerDescription.textContent = messages.updatesDescription;
|
|
50328
|
+
headerCopy.append(heading, headerDescription);
|
|
48948
50329
|
const announcementButton = document2.createElement("button");
|
|
48949
50330
|
announcementButton.type = "button";
|
|
48950
50331
|
announcementButton.className = "settings-command-button settings-command-button--secondary";
|
|
@@ -48953,7 +50334,7 @@ ${error62.stderrTail}`] : []
|
|
|
48953
50334
|
createRendererSettingsIcon("sparkles", 14),
|
|
48954
50335
|
messages.updateViewAnnouncement
|
|
48955
50336
|
);
|
|
48956
|
-
header.append(
|
|
50337
|
+
header.append(headerCopy, announcementButton);
|
|
48957
50338
|
let currentAnnouncement = null;
|
|
48958
50339
|
let announcementDialog = null;
|
|
48959
50340
|
announcementButton.addEventListener("click", () => {
|
|
@@ -48972,25 +50353,68 @@ ${error62.stderrTail}`] : []
|
|
|
48972
50353
|
}
|
|
48973
50354
|
});
|
|
48974
50355
|
});
|
|
50356
|
+
const heroCard = document2.createElement("div");
|
|
50357
|
+
heroCard.className = "settings-update-card";
|
|
50358
|
+
const heroTop = document2.createElement("div");
|
|
50359
|
+
heroTop.className = "settings-update-card__top";
|
|
50360
|
+
const heroIdentity = document2.createElement("div");
|
|
50361
|
+
heroIdentity.className = "settings-update-card__identity";
|
|
50362
|
+
const brandMark = document2.createElement("span");
|
|
50363
|
+
brandMark.className = "settings-update-card__mark";
|
|
50364
|
+
brandMark.append(createRendererSettingsBrandGlyph(20));
|
|
50365
|
+
const identityCopy = document2.createElement("div");
|
|
50366
|
+
identityCopy.className = "settings-update-card__copy";
|
|
50367
|
+
const productName = document2.createElement("strong");
|
|
50368
|
+
productName.className = "settings-update-card__product";
|
|
50369
|
+
productName.textContent = "CodexHost";
|
|
48975
50370
|
const metadata = document2.createElement("div");
|
|
48976
50371
|
metadata.className = "settings-update-metadata";
|
|
48977
|
-
const
|
|
48978
|
-
|
|
48979
|
-
|
|
48980
|
-
|
|
48981
|
-
|
|
48982
|
-
|
|
48983
|
-
|
|
48984
|
-
|
|
48985
|
-
|
|
48986
|
-
|
|
50372
|
+
const currentVersionValue = document2.createElement("strong");
|
|
50373
|
+
currentVersionValue.className = "settings-version-pill";
|
|
50374
|
+
const installationValue = document2.createElement("span");
|
|
50375
|
+
installationValue.className = "settings-install-pill";
|
|
50376
|
+
const latestVersionValue = document2.createElement("strong");
|
|
50377
|
+
latestVersionValue.className = "settings-version-pill settings-version-pill--latest";
|
|
50378
|
+
latestVersionValue.hidden = true;
|
|
50379
|
+
const versionSkeleton = document2.createElement("span");
|
|
50380
|
+
versionSkeleton.className = "settings-skeleton settings-skeleton--pill";
|
|
50381
|
+
versionSkeleton.setAttribute("aria-hidden", "true");
|
|
50382
|
+
const installSkeleton = document2.createElement("span");
|
|
50383
|
+
installSkeleton.className = "settings-skeleton settings-skeleton--pill-sm";
|
|
50384
|
+
installSkeleton.setAttribute("aria-hidden", "true");
|
|
50385
|
+
metadata.append(
|
|
50386
|
+
versionSkeleton,
|
|
50387
|
+
installSkeleton,
|
|
50388
|
+
currentVersionValue,
|
|
50389
|
+
installationValue,
|
|
50390
|
+
latestVersionValue
|
|
50391
|
+
);
|
|
50392
|
+
identityCopy.append(productName, metadata);
|
|
50393
|
+
heroIdentity.append(brandMark, identityCopy);
|
|
50394
|
+
const checkButton = document2.createElement("button");
|
|
50395
|
+
checkButton.type = "button";
|
|
50396
|
+
checkButton.className = "settings-command-button settings-command-button--secondary";
|
|
50397
|
+
checkButton.append(createRendererSettingsIcon("refresh", 14), messages.updateCheckAction);
|
|
50398
|
+
heroTop.append(heroIdentity, checkButton);
|
|
50399
|
+
const setMetadataLoading = (loadingState) => {
|
|
50400
|
+
versionSkeleton.hidden = !loadingState;
|
|
50401
|
+
installSkeleton.hidden = !loadingState;
|
|
50402
|
+
if (loadingState) {
|
|
50403
|
+
currentVersionValue.hidden = true;
|
|
50404
|
+
installationValue.hidden = true;
|
|
50405
|
+
latestVersionValue.hidden = true;
|
|
50406
|
+
}
|
|
50407
|
+
checkButton.disabled = loadingState;
|
|
50408
|
+
};
|
|
50409
|
+
const restoreMetadata = () => {
|
|
50410
|
+
currentVersionValue.hidden = !currentVersionValue.textContent;
|
|
50411
|
+
installationValue.hidden = !installationValue.textContent;
|
|
50412
|
+
latestVersionValue.hidden = !latestVersionValue.textContent;
|
|
48987
50413
|
};
|
|
48988
|
-
const currentVersionValue = createMetadataItem(messages.updateCurrentVersion);
|
|
48989
|
-
const latestVersionValue = createMetadataItem(messages.updateLatestVersion);
|
|
48990
|
-
const installationValue = createMetadataItem(messages.updateInstallation);
|
|
48991
50414
|
const panel = document2.createElement("section");
|
|
48992
50415
|
panel.className = "settings-update-panel";
|
|
48993
50416
|
panel.setAttribute("aria-live", "polite");
|
|
50417
|
+
heroCard.append(heroTop, panel);
|
|
48994
50418
|
const controls = document2.createElement("div");
|
|
48995
50419
|
controls.className = "settings-update-controls";
|
|
48996
50420
|
const manualTitle = document2.createElement("div");
|
|
@@ -49068,16 +50492,9 @@ ${error62.stderrTail}`] : []
|
|
|
49068
50492
|
const notes = document2.createElement("div");
|
|
49069
50493
|
notes.className = "settings-update-notes-section";
|
|
49070
50494
|
const macosSigning = createMacOsSigningSection(document2, messages, context.signal);
|
|
49071
|
-
const starBanner = updateStarBanner(
|
|
49072
|
-
|
|
49073
|
-
|
|
49074
|
-
metadata,
|
|
49075
|
-
panel,
|
|
49076
|
-
macosSigning.card,
|
|
49077
|
-
controls,
|
|
49078
|
-
starBanner,
|
|
49079
|
-
notes
|
|
49080
|
-
);
|
|
50495
|
+
const starBanner = updateStarBanner(context, messages, getClient());
|
|
50496
|
+
page.append(header, heroCard, macosSigning.card, controls, starBanner, notes);
|
|
50497
|
+
context.content.append(page);
|
|
49081
50498
|
const setManualFallback = (fallback) => {
|
|
49082
50499
|
controls.className = fallback ? "settings-update-controls" : "settings-update-controls is-quiet";
|
|
49083
50500
|
manualNpmDescription.textContent = fallback ? messages.updateManualFallbackDescription : messages.updateManualNpmDescription;
|
|
@@ -49090,8 +50507,12 @@ ${error62.stderrTail}`] : []
|
|
|
49090
50507
|
const message2 = statusMessage(status, messages);
|
|
49091
50508
|
if (message2) renderPendingStatus(status, message2);
|
|
49092
50509
|
if (status?.phase === "succeeded") {
|
|
50510
|
+
setMetadataLoading(false);
|
|
49093
50511
|
currentVersionValue.textContent = `v${status.version}`;
|
|
49094
|
-
|
|
50512
|
+
currentVersionValue.hidden = false;
|
|
50513
|
+
latestVersionValue.textContent = "";
|
|
50514
|
+
latestVersionValue.className = "settings-version-pill settings-version-pill--latest";
|
|
50515
|
+
latestVersionValue.hidden = true;
|
|
49095
50516
|
}
|
|
49096
50517
|
},
|
|
49097
50518
|
reconnecting() {
|
|
@@ -49102,10 +50523,14 @@ ${error62.stderrTail}`] : []
|
|
|
49102
50523
|
}
|
|
49103
50524
|
});
|
|
49104
50525
|
const renderUnavailable = (detail) => {
|
|
49105
|
-
|
|
49106
|
-
|
|
49107
|
-
|
|
49108
|
-
|
|
50526
|
+
setMetadataLoading(false);
|
|
50527
|
+
currentVersionValue.textContent = "";
|
|
50528
|
+
currentVersionValue.hidden = true;
|
|
50529
|
+
latestVersionValue.textContent = "";
|
|
50530
|
+
latestVersionValue.hidden = true;
|
|
50531
|
+
installationValue.textContent = "";
|
|
50532
|
+
installationValue.hidden = true;
|
|
50533
|
+
checkButton.hidden = true;
|
|
49109
50534
|
manualTitle.hidden = false;
|
|
49110
50535
|
manualNpm.hidden = true;
|
|
49111
50536
|
manualWindowsInstaller.hidden = true;
|
|
@@ -49246,11 +50671,30 @@ ${error62.stderrTail}`] : []
|
|
|
49246
50671
|
renderUnavailable(messages.runtimeCapabilityNotInstalled);
|
|
49247
50672
|
return;
|
|
49248
50673
|
}
|
|
50674
|
+
setMetadataLoading(false);
|
|
50675
|
+
checkButton.hidden = false;
|
|
49249
50676
|
checkedStatus = result.status;
|
|
49250
50677
|
currentVersionValue.textContent = `v${result.currentVersion}`;
|
|
49251
|
-
|
|
49252
|
-
|
|
49253
|
-
installationValue.textContent =
|
|
50678
|
+
currentVersionValue.hidden = false;
|
|
50679
|
+
const installText = installationLabel(result.installation, messages);
|
|
50680
|
+
installationValue.textContent = installText;
|
|
50681
|
+
installationValue.hidden = !installText;
|
|
50682
|
+
if (result.latestVersion && result.updateAvailable) {
|
|
50683
|
+
latestVersionValue.textContent = messages.updateLatestBadge.replace(
|
|
50684
|
+
"{version}",
|
|
50685
|
+
result.latestVersion
|
|
50686
|
+
);
|
|
50687
|
+
latestVersionValue.className = "settings-version-pill settings-version-pill--latest settings-update-metadata__value--newer";
|
|
50688
|
+
latestVersionValue.hidden = false;
|
|
50689
|
+
} else if (result.latestVersion && result.error) {
|
|
50690
|
+
latestVersionValue.textContent = `v${result.latestVersion}`;
|
|
50691
|
+
latestVersionValue.className = "settings-version-pill";
|
|
50692
|
+
latestVersionValue.hidden = false;
|
|
50693
|
+
} else {
|
|
50694
|
+
latestVersionValue.textContent = "";
|
|
50695
|
+
latestVersionValue.className = "settings-version-pill settings-version-pill--latest";
|
|
50696
|
+
latestVersionValue.hidden = true;
|
|
50697
|
+
}
|
|
49254
50698
|
macosSigning.sync({
|
|
49255
50699
|
installation: result.installation,
|
|
49256
50700
|
client
|
|
@@ -49390,28 +50834,47 @@ ${error62.stderrTail}`] : []
|
|
|
49390
50834
|
notes.append(createReleaseNotesElement(document2, result.releaseNotes));
|
|
49391
50835
|
}
|
|
49392
50836
|
};
|
|
50837
|
+
let loadToken = 0;
|
|
49393
50838
|
const load = () => {
|
|
49394
50839
|
const client = getClient();
|
|
49395
50840
|
if (!client) {
|
|
49396
50841
|
renderUnavailable(messages.runtimeCapabilityNotInstalled);
|
|
49397
50842
|
return Promise.resolve();
|
|
49398
50843
|
}
|
|
50844
|
+
statusPoll.stop();
|
|
50845
|
+
const token = ++loadToken;
|
|
50846
|
+
let settled = false;
|
|
49399
50847
|
pending = true;
|
|
50848
|
+
setMetadataLoading(true);
|
|
49400
50849
|
renderPendingStatus(null, messages.updateChecking);
|
|
49401
50850
|
return context.runLatest(
|
|
49402
50851
|
(signal) => runBoundedRendererUpdateRequest(() => client.checkUpdate(), signal),
|
|
49403
50852
|
{
|
|
49404
50853
|
success(result) {
|
|
50854
|
+
settled = true;
|
|
49405
50855
|
pending = false;
|
|
49406
50856
|
renderCheck(result, client);
|
|
49407
50857
|
},
|
|
49408
50858
|
failure(error62) {
|
|
50859
|
+
settled = true;
|
|
49409
50860
|
pending = false;
|
|
50861
|
+
setMetadataLoading(false);
|
|
50862
|
+
restoreMetadata();
|
|
49410
50863
|
renderRequestFailure(error62);
|
|
49411
50864
|
}
|
|
49412
50865
|
}
|
|
49413
|
-
)
|
|
50866
|
+
).finally(() => {
|
|
50867
|
+
if (!settled && loadToken === token) {
|
|
50868
|
+
pending = false;
|
|
50869
|
+
setMetadataLoading(false);
|
|
50870
|
+
restoreMetadata();
|
|
50871
|
+
}
|
|
50872
|
+
});
|
|
49414
50873
|
};
|
|
50874
|
+
checkButton.addEventListener("click", () => {
|
|
50875
|
+
if (pending) return;
|
|
50876
|
+
void load();
|
|
50877
|
+
});
|
|
49415
50878
|
const loadAnnouncement = () => {
|
|
49416
50879
|
const client = getClient();
|
|
49417
50880
|
if (!client?.getReleaseAnnouncement) return;
|
|
@@ -51080,38 +52543,105 @@ ${error62.stderrTail}`] : []
|
|
|
51080
52543
|
line-height: 19px;
|
|
51081
52544
|
}
|
|
51082
52545
|
|
|
52546
|
+
.settings-about-page,
|
|
52547
|
+
.settings-update-page {
|
|
52548
|
+
display: flex;
|
|
52549
|
+
flex-direction: column;
|
|
52550
|
+
width: 100%;
|
|
52551
|
+
min-width: 0;
|
|
52552
|
+
}
|
|
52553
|
+
|
|
52554
|
+
.settings-about-header,
|
|
52555
|
+
.settings-update-header,
|
|
52556
|
+
.settings-resources-header {
|
|
52557
|
+
display: flex;
|
|
52558
|
+
align-items: flex-start;
|
|
52559
|
+
justify-content: space-between;
|
|
52560
|
+
gap: 12px 16px;
|
|
52561
|
+
flex-wrap: wrap;
|
|
52562
|
+
margin-bottom: 20px;
|
|
52563
|
+
}
|
|
52564
|
+
|
|
52565
|
+
.settings-about-header .settings-section-label,
|
|
52566
|
+
.settings-update-header .settings-section-label,
|
|
52567
|
+
.settings-resources-header .settings-section-label {
|
|
52568
|
+
padding-bottom: 0;
|
|
52569
|
+
}
|
|
52570
|
+
|
|
52571
|
+
.settings-about-header .settings-page-description,
|
|
52572
|
+
.settings-update-header .settings-page-description,
|
|
52573
|
+
.settings-resources-header .settings-page-description {
|
|
52574
|
+
margin: 4px 0 0;
|
|
52575
|
+
}
|
|
52576
|
+
|
|
51083
52577
|
.settings-about-panel {
|
|
51084
52578
|
display: grid;
|
|
51085
|
-
|
|
51086
|
-
|
|
51087
|
-
padding: 24px;
|
|
52579
|
+
gap: 16px;
|
|
52580
|
+
padding: 20px 22px;
|
|
51088
52581
|
background: var(--settings-panel);
|
|
51089
52582
|
border: 1px solid var(--settings-border);
|
|
51090
52583
|
border-radius: 12px;
|
|
51091
52584
|
}
|
|
51092
52585
|
|
|
51093
|
-
.settings-about-
|
|
52586
|
+
.settings-about-brand {
|
|
52587
|
+
display: flex;
|
|
52588
|
+
flex-wrap: wrap;
|
|
52589
|
+
align-items: center;
|
|
52590
|
+
gap: 14px;
|
|
52591
|
+
min-width: 0;
|
|
52592
|
+
}
|
|
52593
|
+
|
|
52594
|
+
.settings-about-brand__mark {
|
|
52595
|
+
display: inline-flex;
|
|
52596
|
+
align-items: center;
|
|
52597
|
+
justify-content: center;
|
|
52598
|
+
width: 44px;
|
|
52599
|
+
height: 44px;
|
|
52600
|
+
flex: none;
|
|
51094
52601
|
color: var(--settings-text);
|
|
51095
|
-
|
|
51096
|
-
|
|
51097
|
-
|
|
52602
|
+
background: var(--settings-surface);
|
|
52603
|
+
border: 1px solid var(--settings-border);
|
|
52604
|
+
border-radius: 12px;
|
|
51098
52605
|
}
|
|
51099
52606
|
|
|
51100
|
-
.settings-about-
|
|
52607
|
+
.settings-about-brand__meta {
|
|
52608
|
+
display: grid;
|
|
52609
|
+
gap: 4px;
|
|
52610
|
+
min-width: min(100%, 9rem);
|
|
52611
|
+
flex: 1;
|
|
52612
|
+
}
|
|
52613
|
+
|
|
52614
|
+
.settings-about-brand__title-row {
|
|
52615
|
+
display: flex;
|
|
52616
|
+
align-items: center;
|
|
52617
|
+
flex-wrap: wrap;
|
|
52618
|
+
gap: 8px;
|
|
52619
|
+
}
|
|
52620
|
+
|
|
52621
|
+
.settings-about-product {
|
|
51101
52622
|
color: var(--settings-text);
|
|
51102
|
-
font-size:
|
|
52623
|
+
font-size: 18px;
|
|
51103
52624
|
font-weight: 600;
|
|
51104
52625
|
line-height: 24px;
|
|
52626
|
+
letter-spacing: -0.02em;
|
|
52627
|
+
}
|
|
52628
|
+
|
|
52629
|
+
.settings-about-tagline {
|
|
52630
|
+
margin: 0;
|
|
52631
|
+
color: var(--settings-muted);
|
|
52632
|
+
font-size: 13px;
|
|
52633
|
+
font-weight: 500;
|
|
52634
|
+
line-height: 20px;
|
|
51105
52635
|
}
|
|
51106
52636
|
|
|
51107
52637
|
.settings-about-copy {
|
|
51108
52638
|
display: grid;
|
|
51109
|
-
|
|
51110
|
-
|
|
52639
|
+
gap: 10px;
|
|
52640
|
+
padding-top: 14px;
|
|
52641
|
+
border-top: 1px solid var(--settings-divider);
|
|
51111
52642
|
}
|
|
51112
52643
|
|
|
51113
|
-
.settings-about-copy p
|
|
51114
|
-
.settings-about-repository p {
|
|
52644
|
+
.settings-about-copy p {
|
|
51115
52645
|
margin: 0;
|
|
51116
52646
|
color: var(--settings-muted);
|
|
51117
52647
|
font-size: 13px;
|
|
@@ -51119,113 +52649,245 @@ ${error62.stderrTail}`] : []
|
|
|
51119
52649
|
}
|
|
51120
52650
|
|
|
51121
52651
|
.settings-about-star-callout {
|
|
51122
|
-
margin: 2px 0;
|
|
52652
|
+
margin: 2px 0 0;
|
|
51123
52653
|
color: var(--settings-warning);
|
|
51124
52654
|
font-size: 14px;
|
|
51125
52655
|
font-weight: 600;
|
|
51126
52656
|
line-height: 22px;
|
|
51127
52657
|
}
|
|
51128
52658
|
|
|
51129
|
-
.settings-about-
|
|
52659
|
+
.settings-about-links-section {
|
|
51130
52660
|
display: grid;
|
|
51131
|
-
gap:
|
|
51132
|
-
|
|
51133
|
-
|
|
52661
|
+
gap: 8px;
|
|
52662
|
+
margin-top: 22px;
|
|
52663
|
+
}
|
|
52664
|
+
|
|
52665
|
+
.settings-about-links-title {
|
|
52666
|
+
margin: 0;
|
|
52667
|
+
color: var(--settings-muted);
|
|
52668
|
+
font-size: 12.5px;
|
|
52669
|
+
font-weight: 600;
|
|
52670
|
+
line-height: 18px;
|
|
52671
|
+
}
|
|
52672
|
+
|
|
52673
|
+
.settings-about-links-card {
|
|
52674
|
+
display: flex;
|
|
52675
|
+
flex-direction: column;
|
|
52676
|
+
background: var(--settings-panel);
|
|
52677
|
+
border: 1px solid var(--settings-border);
|
|
52678
|
+
border-radius: 12px;
|
|
52679
|
+
overflow: hidden;
|
|
51134
52680
|
}
|
|
51135
52681
|
|
|
51136
|
-
.settings-about-
|
|
52682
|
+
.settings-about-link-row {
|
|
51137
52683
|
display: flex;
|
|
51138
52684
|
align-items: center;
|
|
51139
|
-
|
|
51140
|
-
|
|
51141
|
-
|
|
51142
|
-
|
|
51143
|
-
color: var(--settings-
|
|
51144
|
-
font-size: 13px;
|
|
51145
|
-
font-weight: 600;
|
|
52685
|
+
justify-content: space-between;
|
|
52686
|
+
gap: 14px;
|
|
52687
|
+
min-height: 54px;
|
|
52688
|
+
padding: 12px 18px;
|
|
52689
|
+
color: var(--settings-text);
|
|
51146
52690
|
text-decoration: none;
|
|
52691
|
+
transition: background-color 120ms ease;
|
|
51147
52692
|
}
|
|
51148
52693
|
|
|
51149
|
-
.settings-about-
|
|
51150
|
-
|
|
52694
|
+
.settings-about-link-row + .settings-about-link-row {
|
|
52695
|
+
border-top: 1px solid var(--settings-divider);
|
|
52696
|
+
}
|
|
52697
|
+
|
|
52698
|
+
.settings-about-link-row--interactive:hover {
|
|
52699
|
+
background: var(--settings-hover);
|
|
52700
|
+
}
|
|
52701
|
+
|
|
52702
|
+
.settings-about-link-row--interactive:focus-visible {
|
|
52703
|
+
outline: 2px solid var(--settings-focus);
|
|
52704
|
+
outline-offset: -2px;
|
|
51151
52705
|
}
|
|
51152
52706
|
|
|
51153
|
-
.settings-about-
|
|
52707
|
+
.settings-about-link-row__text {
|
|
52708
|
+
display: grid;
|
|
52709
|
+
gap: 2px;
|
|
51154
52710
|
min-width: 0;
|
|
51155
|
-
|
|
52711
|
+
flex: 1;
|
|
52712
|
+
}
|
|
52713
|
+
|
|
52714
|
+
.settings-about-link-row__title {
|
|
52715
|
+
color: var(--settings-text);
|
|
52716
|
+
font-size: 13.5px;
|
|
52717
|
+
font-weight: 500;
|
|
52718
|
+
line-height: 20px;
|
|
52719
|
+
}
|
|
52720
|
+
|
|
52721
|
+
.settings-about-link-row__desc {
|
|
52722
|
+
margin: 0;
|
|
52723
|
+
color: var(--settings-muted);
|
|
52724
|
+
font-size: 12px;
|
|
52725
|
+
line-height: 18px;
|
|
52726
|
+
}
|
|
52727
|
+
|
|
52728
|
+
.settings-about-link-row__trailing {
|
|
52729
|
+
display: inline-flex;
|
|
52730
|
+
align-items: center;
|
|
52731
|
+
gap: 8px;
|
|
52732
|
+
flex: none;
|
|
52733
|
+
color: var(--settings-subtle);
|
|
52734
|
+
}
|
|
52735
|
+
|
|
52736
|
+
.settings-about-link-row__trailing code {
|
|
51156
52737
|
color: var(--settings-muted);
|
|
51157
52738
|
font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
|
|
51158
|
-
font-size:
|
|
51159
|
-
|
|
51160
|
-
|
|
52739
|
+
font-size: 11.5px;
|
|
52740
|
+
line-height: 16px;
|
|
52741
|
+
}
|
|
52742
|
+
|
|
52743
|
+
.settings-version-pill,
|
|
52744
|
+
.settings-install-pill {
|
|
52745
|
+
display: inline-flex;
|
|
52746
|
+
align-items: center;
|
|
52747
|
+
height: 22px;
|
|
52748
|
+
padding: 0 8px;
|
|
52749
|
+
border-radius: 999px;
|
|
52750
|
+
font-size: 11.5px;
|
|
52751
|
+
font-weight: 500;
|
|
52752
|
+
line-height: 16px;
|
|
52753
|
+
font-variant-numeric: tabular-nums;
|
|
51161
52754
|
white-space: nowrap;
|
|
51162
52755
|
}
|
|
51163
52756
|
|
|
52757
|
+
.settings-version-pill {
|
|
52758
|
+
color: var(--settings-text);
|
|
52759
|
+
background: var(--settings-surface);
|
|
52760
|
+
border: 1px solid var(--settings-border);
|
|
52761
|
+
font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
|
|
52762
|
+
}
|
|
52763
|
+
|
|
52764
|
+
.settings-install-pill {
|
|
52765
|
+
color: var(--settings-muted);
|
|
52766
|
+
background: transparent;
|
|
52767
|
+
border: 1px solid var(--settings-border);
|
|
52768
|
+
}
|
|
52769
|
+
|
|
52770
|
+
.settings-version-pill--latest {
|
|
52771
|
+
color: var(--settings-focus);
|
|
52772
|
+
background: light-dark(rgb(11 117 209 / 8%), rgb(102 170 249 / 14%));
|
|
52773
|
+
border-color: light-dark(rgb(11 117 209 / 24%), rgb(102 170 249 / 34%));
|
|
52774
|
+
}
|
|
52775
|
+
|
|
52776
|
+
@keyframes settings-skeleton-pulse {
|
|
52777
|
+
0%,
|
|
52778
|
+
100% {
|
|
52779
|
+
opacity: 0.45;
|
|
52780
|
+
}
|
|
52781
|
+
50% {
|
|
52782
|
+
opacity: 0.95;
|
|
52783
|
+
}
|
|
52784
|
+
}
|
|
52785
|
+
|
|
52786
|
+
.settings-skeleton {
|
|
52787
|
+
display: inline-block;
|
|
52788
|
+
border-radius: 999px;
|
|
52789
|
+
background: var(--settings-skeleton, var(--settings-surface));
|
|
52790
|
+
animation: settings-skeleton-pulse 1.4s ease-in-out infinite;
|
|
52791
|
+
}
|
|
52792
|
+
|
|
52793
|
+
.settings-skeleton--pill {
|
|
52794
|
+
width: 68px;
|
|
52795
|
+
height: 20px;
|
|
52796
|
+
}
|
|
52797
|
+
|
|
52798
|
+
.settings-skeleton--pill-sm {
|
|
52799
|
+
width: 52px;
|
|
52800
|
+
height: 20px;
|
|
52801
|
+
}
|
|
52802
|
+
|
|
52803
|
+
@media (prefers-reduced-motion: reduce) {
|
|
52804
|
+
.settings-skeleton {
|
|
52805
|
+
animation: none;
|
|
52806
|
+
opacity: 0.7;
|
|
52807
|
+
}
|
|
52808
|
+
}
|
|
52809
|
+
|
|
51164
52810
|
.settings-page-error {
|
|
51165
52811
|
padding: 16px;
|
|
51166
52812
|
color: var(--settings-text);
|
|
51167
52813
|
font-size: 13px;
|
|
51168
52814
|
background: var(--settings-panel);
|
|
51169
52815
|
border: 1px solid var(--settings-border);
|
|
51170
|
-
border-radius:
|
|
52816
|
+
border-radius: 12px;
|
|
52817
|
+
}
|
|
52818
|
+
|
|
52819
|
+
.settings-update-card {
|
|
52820
|
+
display: flex;
|
|
52821
|
+
flex-direction: column;
|
|
52822
|
+
background: var(--settings-panel);
|
|
52823
|
+
border: 1px solid var(--settings-border);
|
|
52824
|
+
border-radius: 12px;
|
|
52825
|
+
overflow: hidden;
|
|
51171
52826
|
}
|
|
51172
52827
|
|
|
51173
|
-
.settings-update-
|
|
52828
|
+
.settings-update-card__top {
|
|
51174
52829
|
display: flex;
|
|
51175
52830
|
align-items: center;
|
|
51176
52831
|
justify-content: space-between;
|
|
51177
|
-
gap: 12px 16px;
|
|
51178
52832
|
flex-wrap: wrap;
|
|
51179
|
-
|
|
52833
|
+
gap: 12px 16px;
|
|
52834
|
+
padding: 16px 18px;
|
|
51180
52835
|
}
|
|
51181
52836
|
|
|
51182
|
-
.settings-update-
|
|
51183
|
-
|
|
52837
|
+
.settings-update-card__identity {
|
|
52838
|
+
display: flex;
|
|
52839
|
+
align-items: center;
|
|
52840
|
+
gap: 12px;
|
|
52841
|
+
min-width: 0;
|
|
52842
|
+
flex: 1 1 220px;
|
|
51184
52843
|
}
|
|
51185
52844
|
|
|
51186
|
-
.settings-update-
|
|
51187
|
-
display: flex;
|
|
51188
|
-
|
|
51189
|
-
|
|
51190
|
-
|
|
52845
|
+
.settings-update-card__mark {
|
|
52846
|
+
display: inline-flex;
|
|
52847
|
+
align-items: center;
|
|
52848
|
+
justify-content: center;
|
|
52849
|
+
width: 38px;
|
|
52850
|
+
height: 38px;
|
|
52851
|
+
flex: none;
|
|
52852
|
+
color: var(--settings-text);
|
|
52853
|
+
background: var(--settings-surface);
|
|
52854
|
+
border: 1px solid var(--settings-border);
|
|
52855
|
+
border-radius: 10px;
|
|
51191
52856
|
}
|
|
51192
52857
|
|
|
51193
|
-
.settings-update-
|
|
52858
|
+
.settings-update-card__copy {
|
|
51194
52859
|
display: grid;
|
|
52860
|
+
gap: 5px;
|
|
51195
52861
|
min-width: 0;
|
|
51196
|
-
gap: 4px;
|
|
51197
|
-
}
|
|
51198
|
-
|
|
51199
|
-
.settings-update-metadata__item span {
|
|
51200
|
-
color: var(--settings-muted);
|
|
51201
|
-
font-size: 12px;
|
|
51202
|
-
line-height: 18px;
|
|
51203
52862
|
}
|
|
51204
52863
|
|
|
51205
|
-
.settings-update-
|
|
51206
|
-
min-width: 0;
|
|
51207
|
-
overflow-wrap: anywhere;
|
|
52864
|
+
.settings-update-card__product {
|
|
51208
52865
|
color: var(--settings-text);
|
|
51209
52866
|
font-size: 15px;
|
|
51210
|
-
font-weight:
|
|
51211
|
-
line-height:
|
|
52867
|
+
font-weight: 600;
|
|
52868
|
+
line-height: 20px;
|
|
52869
|
+
letter-spacing: -0.01em;
|
|
51212
52870
|
}
|
|
51213
52871
|
|
|
51214
|
-
|
|
51215
|
-
|
|
51216
|
-
|
|
52872
|
+
.settings-update-metadata {
|
|
52873
|
+
display: flex;
|
|
52874
|
+
align-items: center;
|
|
52875
|
+
flex-wrap: wrap;
|
|
52876
|
+
gap: 6px;
|
|
52877
|
+
min-height: 22px;
|
|
51217
52878
|
}
|
|
51218
52879
|
|
|
51219
52880
|
.settings-update-panel {
|
|
51220
52881
|
display: grid;
|
|
51221
52882
|
grid-template-columns: minmax(0, 1fr);
|
|
51222
52883
|
min-width: 0;
|
|
51223
|
-
gap:
|
|
51224
|
-
padding:
|
|
52884
|
+
gap: 10px;
|
|
52885
|
+
padding: 14px 18px;
|
|
51225
52886
|
color: var(--settings-text);
|
|
51226
|
-
background:
|
|
51227
|
-
border:
|
|
51228
|
-
border-
|
|
52887
|
+
background: transparent;
|
|
52888
|
+
border: 0;
|
|
52889
|
+
border-top: 1px solid var(--settings-divider);
|
|
52890
|
+
border-radius: 0;
|
|
51229
52891
|
}
|
|
51230
52892
|
|
|
51231
52893
|
/* Update available: status on the left, the one action on the right; wraps cleanly on narrow screens. */
|
|
@@ -51235,7 +52897,7 @@ ${error62.stderrTail}`] : []
|
|
|
51235
52897
|
align-items: center;
|
|
51236
52898
|
justify-content: space-between;
|
|
51237
52899
|
gap: 12px 16px;
|
|
51238
|
-
padding: 14px
|
|
52900
|
+
padding: 14px 18px;
|
|
51239
52901
|
}
|
|
51240
52902
|
|
|
51241
52903
|
.settings-update-panel[data-inline] > .settings-update-panel__head {
|
|
@@ -51534,10 +53196,11 @@ ${error62.stderrTail}`] : []
|
|
|
51534
53196
|
.settings-macos-signing {
|
|
51535
53197
|
display: grid;
|
|
51536
53198
|
gap: 8px;
|
|
51537
|
-
margin-top:
|
|
51538
|
-
padding:
|
|
53199
|
+
margin-top: 14px;
|
|
53200
|
+
padding: 16px 18px;
|
|
53201
|
+
background: var(--settings-panel);
|
|
51539
53202
|
border: 1px solid var(--settings-border);
|
|
51540
|
-
border-radius:
|
|
53203
|
+
border-radius: 12px;
|
|
51541
53204
|
}
|
|
51542
53205
|
|
|
51543
53206
|
.settings-macos-signing[hidden] {
|
|
@@ -51722,17 +53385,18 @@ ${error62.stderrTail}`] : []
|
|
|
51722
53385
|
flex: none;
|
|
51723
53386
|
width: max-content;
|
|
51724
53387
|
max-width: 100%;
|
|
51725
|
-
min-height:
|
|
53388
|
+
min-height: 32px;
|
|
51726
53389
|
gap: 6px;
|
|
51727
|
-
padding:
|
|
53390
|
+
padding: 0 12px;
|
|
51728
53391
|
white-space: nowrap;
|
|
51729
53392
|
color: var(--settings-primary-text);
|
|
51730
53393
|
font: inherit;
|
|
51731
|
-
font-size:
|
|
53394
|
+
font-size: 12.5px;
|
|
53395
|
+
font-weight: 500;
|
|
51732
53396
|
text-decoration: none;
|
|
51733
53397
|
background: var(--settings-primary);
|
|
51734
53398
|
border: 1px solid var(--settings-primary);
|
|
51735
|
-
border-radius:
|
|
53399
|
+
border-radius: 8px;
|
|
51736
53400
|
cursor: pointer;
|
|
51737
53401
|
}
|
|
51738
53402
|
|
|
@@ -51799,27 +53463,74 @@ ${error62.stderrTail}`] : []
|
|
|
51799
53463
|
margin: 0;
|
|
51800
53464
|
min-width: min(100%, 16rem);
|
|
51801
53465
|
flex: 1;
|
|
51802
|
-
color: var(--settings-
|
|
53466
|
+
color: var(--settings-muted);
|
|
51803
53467
|
font-size: 13px;
|
|
51804
|
-
font-weight:
|
|
53468
|
+
font-weight: 500;
|
|
51805
53469
|
line-height: 20px;
|
|
51806
53470
|
}
|
|
51807
53471
|
|
|
51808
|
-
.settings-
|
|
51809
|
-
|
|
51810
|
-
|
|
51811
|
-
|
|
53472
|
+
.settings-github-actions {
|
|
53473
|
+
display: flex;
|
|
53474
|
+
flex-wrap: wrap;
|
|
53475
|
+
justify-content: flex-end;
|
|
53476
|
+
gap: 8px;
|
|
53477
|
+
margin-inline-start: auto;
|
|
53478
|
+
}
|
|
53479
|
+
|
|
53480
|
+
.settings-github-pill {
|
|
53481
|
+
display: inline-flex;
|
|
53482
|
+
align-items: center;
|
|
53483
|
+
justify-content: center;
|
|
53484
|
+
gap: 6px;
|
|
53485
|
+
min-height: 32px;
|
|
53486
|
+
padding: 0 11px;
|
|
53487
|
+
border: 1px solid var(--settings-border);
|
|
53488
|
+
border-radius: 999px;
|
|
53489
|
+
background: var(--settings-surface);
|
|
53490
|
+
color: var(--settings-text);
|
|
53491
|
+
font: inherit;
|
|
53492
|
+
font-size: 12.5px;
|
|
53493
|
+
font-weight: 600;
|
|
53494
|
+
text-decoration: none;
|
|
53495
|
+
white-space: nowrap;
|
|
53496
|
+
cursor: pointer;
|
|
53497
|
+
}
|
|
53498
|
+
|
|
53499
|
+
.settings-github-pill:hover:not(:disabled) {
|
|
53500
|
+
background: var(--settings-surface-hover);
|
|
53501
|
+
}
|
|
53502
|
+
|
|
53503
|
+
.settings-github-pill:focus-visible {
|
|
53504
|
+
outline: 2px solid var(--settings-focus);
|
|
53505
|
+
outline-offset: 2px;
|
|
53506
|
+
}
|
|
53507
|
+
|
|
53508
|
+
.settings-github-pill[aria-busy="true"] {
|
|
53509
|
+
cursor: progress;
|
|
53510
|
+
color: var(--settings-muted);
|
|
53511
|
+
}
|
|
53512
|
+
|
|
53513
|
+
.settings-github-pill.is-starred {
|
|
53514
|
+
cursor: default;
|
|
53515
|
+
color: light-dark(#593100, #ffe5ae);
|
|
53516
|
+
background: light-dark(#ffdf9a, #513317);
|
|
53517
|
+
border-color: light-dark(#e0aa51, #875e2b);
|
|
53518
|
+
}
|
|
53519
|
+
|
|
53520
|
+
.settings-github-star-mark {
|
|
53521
|
+
font-size: 14px;
|
|
51812
53522
|
}
|
|
51813
53523
|
|
|
51814
|
-
|
|
51815
|
-
|
|
51816
|
-
|
|
53524
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
53525
|
+
.settings-github-pill.is-celebrating .settings-github-star-mark {
|
|
53526
|
+
animation: settings-github-star-pop 260ms ease-out;
|
|
53527
|
+
}
|
|
51817
53528
|
}
|
|
51818
53529
|
|
|
51819
|
-
|
|
51820
|
-
|
|
51821
|
-
|
|
51822
|
-
|
|
53530
|
+
@keyframes settings-github-star-pop {
|
|
53531
|
+
50% {
|
|
53532
|
+
transform: scale(1.25) rotate(-10deg);
|
|
53533
|
+
}
|
|
51823
53534
|
}
|
|
51824
53535
|
|
|
51825
53536
|
.codexhost-settings-icon {
|
|
@@ -52544,6 +54255,7 @@ ${error62.stderrTail}`] : []
|
|
|
52544
54255
|
flex: none;
|
|
52545
54256
|
}
|
|
52546
54257
|
|
|
54258
|
+
.settings-extensions__sort,
|
|
52547
54259
|
.settings-extensions__filter,
|
|
52548
54260
|
.settings-extensions__more {
|
|
52549
54261
|
position: relative;
|
|
@@ -52551,6 +54263,10 @@ ${error62.stderrTail}`] : []
|
|
|
52551
54263
|
align-items: center;
|
|
52552
54264
|
}
|
|
52553
54265
|
|
|
54266
|
+
.settings-extensions__sort[hidden] {
|
|
54267
|
+
display: none;
|
|
54268
|
+
}
|
|
54269
|
+
|
|
52554
54270
|
.settings-extensions__filter-button {
|
|
52555
54271
|
display: inline-flex;
|
|
52556
54272
|
align-items: center;
|
|
@@ -52602,6 +54318,10 @@ ${error62.stderrTail}`] : []
|
|
|
52602
54318
|
min-width: 214px;
|
|
52603
54319
|
}
|
|
52604
54320
|
|
|
54321
|
+
.settings-extensions-menu--sort {
|
|
54322
|
+
min-width: 164px;
|
|
54323
|
+
}
|
|
54324
|
+
|
|
52605
54325
|
.settings-extensions-menu__heading {
|
|
52606
54326
|
padding: 6px 9px 4px;
|
|
52607
54327
|
color: var(--settings-subtle);
|
|
@@ -53586,11 +55306,13 @@ ${error62.stderrTail}`] : []
|
|
|
53586
55306
|
.settings-extensions__bar-actions {
|
|
53587
55307
|
width: 100%;
|
|
53588
55308
|
margin-left: 0;
|
|
55309
|
+
flex-wrap: wrap;
|
|
53589
55310
|
}
|
|
53590
55311
|
|
|
53591
55312
|
.settings-extensions__search {
|
|
53592
|
-
flex: 1;
|
|
55313
|
+
flex: 1 1 120px;
|
|
53593
55314
|
width: auto;
|
|
55315
|
+
min-width: 110px;
|
|
53594
55316
|
}
|
|
53595
55317
|
}
|
|
53596
55318
|
|
|
@@ -55656,7 +57378,7 @@ dialog.settings-extensions-lightbox::backdrop {
|
|
|
55656
57378
|
`;
|
|
55657
57379
|
|
|
55658
57380
|
// src/settings/tailwind.css
|
|
55659
|
-
var tailwind_default = '@layer properties, theme, base, components, utilities;\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-content:"";--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:root,:host{--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.top-full{top:100%}.left-0{left:0}.z-20{z-index:20}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:0}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-7{margin-top:calc(var(--spacing) * 7)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-1{margin-left:var(--spacing)}.ml-\\[45px\\]{margin-left:45px}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.list-item{display:list-item}.table{display:table}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-8{height:calc(var(--spacing) * 8)}.min-h-6{min-height:calc(var(--spacing) * 6)}.min-h-\\[60px\\]{min-height:60px}.w-9{width:calc(var(--spacing) * 9)}.w-14{width:calc(var(--spacing) * 14)}.w-80{width:calc(var(--spacing) * 80)}.w-full{width:100%}.w-px{width:1px}.max-w-64{max-width:calc(var(--spacing) * 64)}.min-w-0{min-width:0}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-disc{list-style-type:disc}.appearance-none{appearance:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-settings-border{border-color:var(--settings-border)}.border-settings-divider{border-color:var(--settings-divider)}.bg-settings-panel{background-color:var(--settings-panel)}.bg-settings-subtle{background-color:var(--settings-subtle)}.bg-settings-surface{background-color:var(--settings-surface)}.bg-settings-surface-hover{background-color:var(--settings-surface-hover)}.bg-transparent{background-color:#0000}.p-0{padding:0}.p-4{padding:calc(var(--spacing) * 4)}.\\!px-0{padding-inline:0!important}.px-1{padding-inline:var(--spacing)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pl-4{padding-left:calc(var(--spacing) * 4)}.\\!text-right{text-align:right!important}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-7{--tw-leading:calc(var(--spacing) * 7);line-height:calc(var(--spacing) * 7)}.leading-\\[18px\\]{--tw-leading:18px;line-height:18px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-pre-wrap{white-space:pre-wrap}.text-settings-muted{color:var(--settings-muted)}.text-settings-subtle{color:var(--settings-subtle)}.text-settings-text{color:var(--settings-text)}.lowercase{text-transform:lowercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_10px_30px_rgb\\(0_0_0\\/0\\.22\\)\\]{--tw-shadow:0 10px 30px var(--tw-shadow-color,#00000038);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-settings-border{--tw-ring-color:var(--settings-border)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.outline-none{--tw-outline-style:none;outline-style:none}.ring-inset{--tw-ring-inset:inset}.group-focus-within\\:visible:is(:where(.group):focus-within *){visibility:visible}.group-focus-within\\:opacity-100:is(:where(.group):focus-within *){opacity:1}@media (hover:hover){.group-hover\\:visible:is(:where(.group):hover *){visibility:visible}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-data-\\[state\\=failed\\]\\/status\\:bg-settings-danger:is(:where(.group\\/status)[data-state=failed] *){background-color:var(--settings-danger)}.group-data-\\[state\\=unavailable\\]\\/status\\:bg-settings-warning:is(:where(.group\\/status)[data-state=unavailable] *){background-color:var(--settings-warning)}.marker\\:text-settings-subtle ::marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle::marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle ::-webkit-details-marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle::-webkit-details-marker{color:var(--settings-subtle)}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:top-0\\.5:before{content:var(--tw-content);top:calc(var(--spacing) * .5)}.before\\:left-0\\.5:before{content:var(--tw-content);left:calc(var(--spacing) * .5)}.before\\:size-4:before{content:var(--tw-content);width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.before\\:rounded-full:before{content:var(--tw-content);border-radius:3.40282e38px}.before\\:bg-white:before{content:var(--tw-content);background-color:#fff}.before\\:shadow-\\[0_1px_2px_rgb\\(0_0_0\\/0\\.3\\)\\]:before{content:var(--tw-content);--tw-shadow:0 1px 2px var(--tw-shadow-color,#0000004d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.before\\:transition-transform:before{content:var(--tw-content);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.first\\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.first-of-type\\:mt-0:first-of-type{margin-top:0}.checked\\:bg-settings-focus:checked{background-color:var(--settings-focus)}.checked\\:ring-transparent:checked{--tw-ring-color:transparent}.checked\\:before\\:translate-x-4:checked:before{content:var(--tw-content);--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.focus-within\\:border-settings-focus:focus-within{border-color:var(--settings-focus)}@media (hover:hover){.hover\\:bg-settings-hover:hover{background-color:var(--settings-hover)}.hover\\:text-settings-text:hover{color:var(--settings-text)}}.focus-visible\\:text-settings-text:focus-visible{color:var(--settings-text)}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-settings-focus:focus-visible{outline-color:var(--settings-focus)}.data-\\[invalid\\=true\\]\\:border-settings-danger[data-invalid=true]{border-color:var(--settings-danger)}.data-\\[invalid\\=true\\]\\:text-settings-danger[data-invalid=true],.data-\\[state\\=failed\\]\\:text-settings-danger[data-state=failed]{color:var(--settings-danger)}.data-\\[state\\=unavailable\\]\\:text-settings-warning[data-state=unavailable]{color:var(--settings-warning)}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@layer properties{\n *, ::before, ::after, ::backdrop{--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-alpha:100%;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-drop-shadow-alpha:100%;--tw-content:"";--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}\n';
|
|
57381
|
+
var tailwind_default = '@layer properties, theme, base, components, utilities;\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-content:"";--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:root,:host{--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.top-full{top:100%}.left-0{left:0}.z-20{z-index:20}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:0}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-7{margin-top:calc(var(--spacing) * 7)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-1{margin-left:var(--spacing)}.ml-\\[45px\\]{margin-left:45px}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.list-item{display:list-item}.table{display:table}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-8{height:calc(var(--spacing) * 8)}.min-h-6{min-height:calc(var(--spacing) * 6)}.min-h-\\[60px\\]{min-height:60px}.w-9{width:calc(var(--spacing) * 9)}.w-14{width:calc(var(--spacing) * 14)}.w-80{width:calc(var(--spacing) * 80)}.w-full{width:100%}.w-px{width:1px}.max-w-64{max-width:calc(var(--spacing) * 64)}.min-w-0{min-width:0}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-disc{list-style-type:disc}.appearance-none{appearance:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[12px\\]{border-radius:12px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-settings-border{border-color:var(--settings-border)}.border-settings-divider{border-color:var(--settings-divider)}.bg-settings-panel{background-color:var(--settings-panel)}.bg-settings-subtle{background-color:var(--settings-subtle)}.bg-settings-surface{background-color:var(--settings-surface)}.bg-settings-surface-hover{background-color:var(--settings-surface-hover)}.bg-transparent{background-color:#0000}.p-0{padding:0}.p-4{padding:calc(var(--spacing) * 4)}.\\!px-0{padding-inline:0!important}.px-1{padding-inline:var(--spacing)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pl-4{padding-left:calc(var(--spacing) * 4)}.\\!text-right{text-align:right!important}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-7{--tw-leading:calc(var(--spacing) * 7);line-height:calc(var(--spacing) * 7)}.leading-\\[18px\\]{--tw-leading:18px;line-height:18px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-pre-wrap{white-space:pre-wrap}.text-settings-muted{color:var(--settings-muted)}.text-settings-subtle{color:var(--settings-subtle)}.text-settings-text{color:var(--settings-text)}.lowercase{text-transform:lowercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_10px_30px_rgb\\(0_0_0\\/0\\.22\\)\\]{--tw-shadow:0 10px 30px var(--tw-shadow-color,#00000038);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-settings-border{--tw-ring-color:var(--settings-border)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.outline-none{--tw-outline-style:none;outline-style:none}.ring-inset{--tw-ring-inset:inset}.group-focus-within\\:visible:is(:where(.group):focus-within *){visibility:visible}.group-focus-within\\:opacity-100:is(:where(.group):focus-within *){opacity:1}@media (hover:hover){.group-hover\\:visible:is(:where(.group):hover *){visibility:visible}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-data-\\[state\\=failed\\]\\/status\\:bg-settings-danger:is(:where(.group\\/status)[data-state=failed] *){background-color:var(--settings-danger)}.group-data-\\[state\\=unavailable\\]\\/status\\:bg-settings-warning:is(:where(.group\\/status)[data-state=unavailable] *){background-color:var(--settings-warning)}.marker\\:text-settings-subtle ::marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle::marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle ::-webkit-details-marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle::-webkit-details-marker{color:var(--settings-subtle)}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:top-0\\.5:before{content:var(--tw-content);top:calc(var(--spacing) * .5)}.before\\:left-0\\.5:before{content:var(--tw-content);left:calc(var(--spacing) * .5)}.before\\:size-4:before{content:var(--tw-content);width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.before\\:rounded-full:before{content:var(--tw-content);border-radius:3.40282e38px}.before\\:bg-white:before{content:var(--tw-content);background-color:#fff}.before\\:shadow-\\[0_1px_2px_rgb\\(0_0_0\\/0\\.3\\)\\]:before{content:var(--tw-content);--tw-shadow:0 1px 2px var(--tw-shadow-color,#0000004d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.before\\:transition-transform:before{content:var(--tw-content);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.first\\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.first-of-type\\:mt-0:first-of-type{margin-top:0}.checked\\:bg-settings-focus:checked{background-color:var(--settings-focus)}.checked\\:ring-transparent:checked{--tw-ring-color:transparent}.checked\\:before\\:translate-x-4:checked:before{content:var(--tw-content);--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.focus-within\\:border-settings-focus:focus-within{border-color:var(--settings-focus)}@media (hover:hover){.hover\\:bg-settings-hover:hover{background-color:var(--settings-hover)}.hover\\:text-settings-text:hover{color:var(--settings-text)}}.focus-visible\\:text-settings-text:focus-visible{color:var(--settings-text)}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-settings-focus:focus-visible{outline-color:var(--settings-focus)}.data-\\[invalid\\=true\\]\\:border-settings-danger[data-invalid=true]{border-color:var(--settings-danger)}.data-\\[invalid\\=true\\]\\:text-settings-danger[data-invalid=true],.data-\\[state\\=failed\\]\\:text-settings-danger[data-state=failed]{color:var(--settings-danger)}.data-\\[state\\=unavailable\\]\\:text-settings-warning[data-state=unavailable]{color:var(--settings-warning)}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@layer properties{\n *, ::before, ::after, ::backdrop{--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-alpha:100%;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-drop-shadow-alpha:100%;--tw-content:"";--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}\n';
|
|
55660
57382
|
|
|
55661
57383
|
// src/console/app.ts
|
|
55662
57384
|
function required2(pages, id2) {
|
|
@@ -55946,6 +57668,7 @@ ${connect_devices_default}`
|
|
|
55946
57668
|
|
|
55947
57669
|
lucide/dist/esm/defaultAttributes.mjs:
|
|
55948
57670
|
lucide/dist/esm/createElement.mjs:
|
|
57671
|
+
lucide/dist/esm/icons/arrow-up-down.mjs:
|
|
55949
57672
|
lucide/dist/esm/icons/smartphone.mjs:
|
|
55950
57673
|
lucide/dist/esm/icons/boxes.mjs:
|
|
55951
57674
|
lucide/dist/esm/icons/calendar-clock.mjs:
|