@codexhost/cli-linux-arm64 0.18.0-beta.4 → 0.18.0-beta.5
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 +1 -1
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +93 -53
- package/app/console-web.js +159 -119
- package/app/desktop-controller.mjs +283 -113
- package/app/host-runtime.mjs +2129 -1529
- package/app/plugins/antigravity/plugin.mjs +787 -303
- package/app/plugins/claude-code/plugin.mjs +85 -45
- package/app/plugins/codebuddy/plugin.mjs +99 -59
- package/app/plugins/codex-usage/plugin.mjs +85 -45
- package/app/plugins/copilot/plugin.mjs +90 -50
- package/app/plugins/cursor-cli/plugin.mjs +113 -73
- package/app/plugins/deepseek-harness/plugin.mjs +116 -76
- package/app/plugins/devin/plugin.mjs +90 -50
- package/app/plugins/grok/plugin.mjs +96 -56
- package/app/plugins/hermes/plugin.mjs +77 -37
- package/app/plugins/kimi-code/plugin.mjs +94 -54
- package/app/plugins/kiro-cli/plugin.mjs +90 -50
- package/app/plugins/omp/plugin.mjs +81 -41
- package/app/plugins/opencode/plugin.mjs +78 -38
- package/app/plugins/pi/plugin.mjs +94 -54
- package/app/plugins/qoder/plugin.mjs +106 -66
- package/app/plugins/qoder-cn/plugin.mjs +106 -66
- package/app/plugins/qwen-code/plugin.mjs +101 -61
- package/app/plugins/workbuddy/plugin.mjs +99 -59
- package/app/plugins/zcode/plugin.mjs +82 -42
- package/app/renderer-extension.js +353 -295
- package/app/web/assets/{index-D1dOzBMI.js → index-C0aXz2jD.js} +63 -63
- package/app/web/codex-agent.png +0 -0
- package/app/web/codexhost-settings.js +154 -114
- package/app/web/index.html +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-remotes/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-session-controller/client.js +61 -61
- package/app/web/plugins/deepseek-ai__dsh-client-ui-chat/client.js +8 -8
- package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +2 -2
- package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +12 -12
- package/app/web/plugins/deepseek-ai__dsh-client-ui-permission-presets/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-settings/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-tool/client.js +18 -18
- package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +8 -8
- package/app/web/sw.js +1 -6
- package/app/web-modules/server.mjs +2079 -1201
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(() => {
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
-
var __export = (
|
|
4
|
+
var __export = (target2, all) => {
|
|
5
5
|
for (var name in all)
|
|
6
|
-
__defProp(
|
|
6
|
+
__defProp(target2, name, { get: all[name], enumerable: true });
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
// ../../node_modules/zod/v4/classic/external.js
|
|
@@ -753,8 +753,8 @@
|
|
|
753
753
|
function objectClone(obj) {
|
|
754
754
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
755
755
|
}
|
|
756
|
-
function assignProp(
|
|
757
|
-
Object.defineProperty(
|
|
756
|
+
function assignProp(target2, prop, value) {
|
|
757
|
+
Object.defineProperty(target2, prop, {
|
|
758
758
|
value,
|
|
759
759
|
writable: true,
|
|
760
760
|
enumerable: true,
|
|
@@ -937,35 +937,35 @@
|
|
|
937
937
|
return params;
|
|
938
938
|
}
|
|
939
939
|
function createTransparentProxy(getter) {
|
|
940
|
-
let
|
|
940
|
+
let target2;
|
|
941
941
|
return new Proxy({}, {
|
|
942
942
|
get(_, prop, receiver) {
|
|
943
|
-
|
|
944
|
-
return Reflect.get(
|
|
943
|
+
target2 ?? (target2 = getter());
|
|
944
|
+
return Reflect.get(target2, prop, receiver);
|
|
945
945
|
},
|
|
946
946
|
set(_, prop, value, receiver) {
|
|
947
|
-
|
|
948
|
-
return Reflect.set(
|
|
947
|
+
target2 ?? (target2 = getter());
|
|
948
|
+
return Reflect.set(target2, prop, value, receiver);
|
|
949
949
|
},
|
|
950
950
|
has(_, prop) {
|
|
951
|
-
|
|
952
|
-
return Reflect.has(
|
|
951
|
+
target2 ?? (target2 = getter());
|
|
952
|
+
return Reflect.has(target2, prop);
|
|
953
953
|
},
|
|
954
954
|
deleteProperty(_, prop) {
|
|
955
|
-
|
|
956
|
-
return Reflect.deleteProperty(
|
|
955
|
+
target2 ?? (target2 = getter());
|
|
956
|
+
return Reflect.deleteProperty(target2, prop);
|
|
957
957
|
},
|
|
958
958
|
ownKeys(_) {
|
|
959
|
-
|
|
960
|
-
return Reflect.ownKeys(
|
|
959
|
+
target2 ?? (target2 = getter());
|
|
960
|
+
return Reflect.ownKeys(target2);
|
|
961
961
|
},
|
|
962
962
|
getOwnPropertyDescriptor(_, prop) {
|
|
963
|
-
|
|
964
|
-
return Reflect.getOwnPropertyDescriptor(
|
|
963
|
+
target2 ?? (target2 = getter());
|
|
964
|
+
return Reflect.getOwnPropertyDescriptor(target2, prop);
|
|
965
965
|
},
|
|
966
966
|
defineProperty(_, prop, descriptor) {
|
|
967
|
-
|
|
968
|
-
return Reflect.defineProperty(
|
|
967
|
+
target2 ?? (target2 = getter());
|
|
968
|
+
return Reflect.defineProperty(target2, prop, descriptor);
|
|
969
969
|
}
|
|
970
970
|
});
|
|
971
971
|
}
|
|
@@ -11417,15 +11417,15 @@
|
|
|
11417
11417
|
|
|
11418
11418
|
// ../../node_modules/zod/v4/core/to-json-schema.js
|
|
11419
11419
|
function initializeContext(params) {
|
|
11420
|
-
let
|
|
11421
|
-
if (
|
|
11422
|
-
|
|
11423
|
-
if (
|
|
11424
|
-
|
|
11420
|
+
let target2 = params?.target ?? "draft-2020-12";
|
|
11421
|
+
if (target2 === "draft-4")
|
|
11422
|
+
target2 = "draft-04";
|
|
11423
|
+
if (target2 === "draft-7")
|
|
11424
|
+
target2 = "draft-07";
|
|
11425
11425
|
return {
|
|
11426
11426
|
processors: params.processors ?? {},
|
|
11427
11427
|
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
11428
|
-
target,
|
|
11428
|
+
target: target2,
|
|
11429
11429
|
unrepresentable: params?.unrepresentable ?? "throw",
|
|
11430
11430
|
override: params?.override ?? (() => {
|
|
11431
11431
|
}),
|
|
@@ -11767,8 +11767,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11767
11767
|
return finalize(ctx, schema);
|
|
11768
11768
|
};
|
|
11769
11769
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
11770
|
-
const { libraryOptions, target } = params ?? {};
|
|
11771
|
-
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
11770
|
+
const { libraryOptions, target: target2 } = params ?? {};
|
|
11771
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io, processors });
|
|
11772
11772
|
process(schema, ctx);
|
|
11773
11773
|
extractDefs(ctx, schema);
|
|
11774
11774
|
return finalize(ctx, schema);
|
|
@@ -12827,8 +12827,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12827
12827
|
catch(params) {
|
|
12828
12828
|
return _catch2(this, params);
|
|
12829
12829
|
},
|
|
12830
|
-
pipe(
|
|
12831
|
-
return pipe(this,
|
|
12830
|
+
pipe(target2) {
|
|
12831
|
+
return pipe(this, target2);
|
|
12832
12832
|
},
|
|
12833
12833
|
readonly() {
|
|
12834
12834
|
return readonly(this);
|
|
@@ -15080,15 +15080,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15080
15080
|
threads: external_exports.array(threadOwnershipSchema).min(1).max(THREAD_OWNERSHIP_LIST_MAX_LENGTH)
|
|
15081
15081
|
}).strict().superRefine(({ threads }, context) => {
|
|
15082
15082
|
const seen = /* @__PURE__ */ new Set();
|
|
15083
|
-
for (const [index,
|
|
15084
|
-
if (seen.has(
|
|
15083
|
+
for (const [index, thread2] of threads.entries()) {
|
|
15084
|
+
if (seen.has(thread2.threadId)) {
|
|
15085
15085
|
context.addIssue({
|
|
15086
15086
|
code: "custom",
|
|
15087
15087
|
message: "Thread ownership-list results must be unique",
|
|
15088
15088
|
path: ["threads", index, "threadId"]
|
|
15089
15089
|
});
|
|
15090
15090
|
}
|
|
15091
|
-
seen.add(
|
|
15091
|
+
seen.add(thread2.threadId);
|
|
15092
15092
|
}
|
|
15093
15093
|
});
|
|
15094
15094
|
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
@@ -16477,6 +16477,44 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16477
16477
|
}).strict();
|
|
16478
16478
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
16479
16479
|
|
|
16480
|
+
// ../shared-contracts/dist/remote-sessions.js
|
|
16481
|
+
var REMOTE_CONTROLLER_REQUEST_MAX_BYTES = 16 * 1024;
|
|
16482
|
+
var identity = external_exports.string().min(1).max(1024);
|
|
16483
|
+
var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
16484
|
+
var thread = { ...target, threadId: identity };
|
|
16485
|
+
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16486
|
+
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16487
|
+
external_exports.strictObject({
|
|
16488
|
+
kind: external_exports.literal("list"),
|
|
16489
|
+
...target,
|
|
16490
|
+
cursor: external_exports.string().nullable(),
|
|
16491
|
+
archived: external_exports.boolean()
|
|
16492
|
+
}),
|
|
16493
|
+
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
16494
|
+
external_exports.strictObject({
|
|
16495
|
+
kind: external_exports.literal("prompt"),
|
|
16496
|
+
...thread,
|
|
16497
|
+
epoch: identity,
|
|
16498
|
+
text: external_exports.string().min(1).max(8e3),
|
|
16499
|
+
requestId: identity.optional()
|
|
16500
|
+
}),
|
|
16501
|
+
external_exports.strictObject({ kind: external_exports.literal("interrupt"), ...thread, epoch: identity, turnId: identity }),
|
|
16502
|
+
external_exports.strictObject({
|
|
16503
|
+
kind: external_exports.literal("rename"),
|
|
16504
|
+
...thread,
|
|
16505
|
+
epoch: identity,
|
|
16506
|
+
name: external_exports.string().min(1).max(512)
|
|
16507
|
+
}),
|
|
16508
|
+
external_exports.strictObject({ kind: external_exports.literal("archive"), ...thread, epoch: identity, archived: external_exports.boolean() }),
|
|
16509
|
+
external_exports.strictObject({
|
|
16510
|
+
kind: external_exports.literal("respond"),
|
|
16511
|
+
...thread,
|
|
16512
|
+
epoch: identity,
|
|
16513
|
+
requestId: external_exports.union([identity, external_exports.number().int()]),
|
|
16514
|
+
result: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
16515
|
+
})
|
|
16516
|
+
]);
|
|
16517
|
+
|
|
16480
16518
|
// ../shared-contracts/dist/remote-connections.js
|
|
16481
16519
|
var hostId = external_exports.string().min(1).max(1024);
|
|
16482
16520
|
var codexSshConnectionSchema = external_exports.object({
|
|
@@ -16497,7 +16535,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16497
16535
|
identity: external_exports.string().max(4096).nullable()
|
|
16498
16536
|
});
|
|
16499
16537
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
16538
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
16500
16539
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
16540
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
16501
16541
|
external_exports.strictObject({
|
|
16502
16542
|
action: external_exports.literal("read-thread"),
|
|
16503
16543
|
hostId: hostId.refine((id) => id !== "local"),
|
|
@@ -18444,8 +18484,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
18444
18484
|
}
|
|
18445
18485
|
async function verifyNativeCodexThread(sendRequest, threadId) {
|
|
18446
18486
|
const native = await sendRequest("thread/read", { threadId, includeTurns: false });
|
|
18447
|
-
const
|
|
18448
|
-
if (!isRecord(
|
|
18487
|
+
const thread2 = isRecord(native) ? native.thread : null;
|
|
18488
|
+
if (!isRecord(thread2) || thread2.id !== threadId || typeof thread2.modelProvider !== "string" || !thread2.modelProvider || thread2.modelProvider === "codexhost" || typeof thread2.cliVersion !== "string" || !thread2.cliVersion || thread2.cliVersion === "codexhost") {
|
|
18449
18489
|
throw new Error("Native Thread response cannot establish Codex ownership");
|
|
18450
18490
|
}
|
|
18451
18491
|
}
|
|
@@ -18713,7 +18753,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
18713
18753
|
const params = threadOwnershipListParamsSchema.parse(input);
|
|
18714
18754
|
const value = await manager.sendRequest(THREAD_OWNERSHIP_LIST_METHOD, params);
|
|
18715
18755
|
const result = threadOwnershipListResultSchema.parse(value);
|
|
18716
|
-
if (result.threads.length !== params.threadIds.length || result.threads.some((
|
|
18756
|
+
if (result.threads.length !== params.threadIds.length || result.threads.some((thread2, index) => thread2.threadId !== params.threadIds[index])) {
|
|
18717
18757
|
throw new Error("Thread ownership-list result does not match the requested IDs");
|
|
18718
18758
|
}
|
|
18719
18759
|
return result;
|
|
@@ -21339,20 +21379,20 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21339
21379
|
unmeteredRequests: 0
|
|
21340
21380
|
};
|
|
21341
21381
|
}
|
|
21342
|
-
function addTotals(
|
|
21343
|
-
|
|
21344
|
-
|
|
21345
|
-
|
|
21346
|
-
|
|
21347
|
-
|
|
21348
|
-
|
|
21349
|
-
|
|
21350
|
-
|
|
21351
|
-
|
|
21352
|
-
|
|
21353
|
-
|
|
21354
|
-
|
|
21355
|
-
return
|
|
21382
|
+
function addTotals(target2, source) {
|
|
21383
|
+
target2.requests += source.requests;
|
|
21384
|
+
target2.inputTokens += source.inputTokens;
|
|
21385
|
+
target2.cachedInputTokens += source.cachedInputTokens;
|
|
21386
|
+
target2.cacheWriteInputTokens += source.cacheWriteInputTokens;
|
|
21387
|
+
target2.cacheKnownInputTokens += source.cacheKnownInputTokens;
|
|
21388
|
+
target2.cacheHitCachedInputTokens += source.cacheHitCachedInputTokens;
|
|
21389
|
+
target2.cacheHitInputTokens += source.cacheHitInputTokens;
|
|
21390
|
+
target2.outputTokens += source.outputTokens;
|
|
21391
|
+
target2.reasoningOutputTokens += source.reasoningOutputTokens;
|
|
21392
|
+
target2.costUsd += source.costUsd;
|
|
21393
|
+
target2.unpricedRequests += source.unpricedRequests;
|
|
21394
|
+
target2.unmeteredRequests += source.unmeteredRequests;
|
|
21395
|
+
return target2;
|
|
21356
21396
|
}
|
|
21357
21397
|
function inputWithoutCache(totals2) {
|
|
21358
21398
|
return totals2.inputTokens - totals2.cachedInputTokens - totals2.cacheWriteInputTokens;
|
|
@@ -24325,7 +24365,7 @@ ${detail}` : ""}`
|
|
|
24325
24365
|
card.setAttribute("aria-label", connection.displayName);
|
|
24326
24366
|
card.setAttribute("aria-busy", String(locked));
|
|
24327
24367
|
const head = remoteElement(document2, "div", "settings-remote-card__head");
|
|
24328
|
-
const
|
|
24368
|
+
const identity2 = remoteElement(document2, "div", "settings-remote-card__identity");
|
|
24329
24369
|
const titleLine = remoteElement(document2, "div", "settings-remote-card__title");
|
|
24330
24370
|
const [tone, stateLabel] = connectionState(row, t);
|
|
24331
24371
|
const state = remoteElement(document2, "span", "settings-remote-card__state", stateLabel);
|
|
@@ -24338,7 +24378,7 @@ ${detail}` : ""}`
|
|
|
24338
24378
|
addressLine.append(
|
|
24339
24379
|
remoteElement(document2, "span", "settings-status-badge", t("SSH \u914D\u7F6E", "SSH config"))
|
|
24340
24380
|
);
|
|
24341
|
-
|
|
24381
|
+
identity2.append(titleLine, addressLine);
|
|
24342
24382
|
const headActions = remoteElement(document2, "div", "settings-remote-card__actions");
|
|
24343
24383
|
if (row.installation !== "not-installed" && !row.probing) {
|
|
24344
24384
|
if (row.state === "error" && connection.autoConnect)
|
|
@@ -24361,7 +24401,7 @@ ${detail}` : ""}`
|
|
|
24361
24401
|
remove.append(createRendererSettingsIcon("trash", 15));
|
|
24362
24402
|
remove.addEventListener("click", () => onAction("remove"));
|
|
24363
24403
|
headActions.append(remove);
|
|
24364
|
-
head.append(
|
|
24404
|
+
head.append(identity2, headActions);
|
|
24365
24405
|
card.append(head);
|
|
24366
24406
|
if (row.stateError) {
|
|
24367
24407
|
const detail = remoteElement(
|
|
@@ -24413,15 +24453,15 @@ ${detail}` : ""}`
|
|
|
24413
24453
|
}
|
|
24414
24454
|
if (!remote) serviceActions.append(command("recheck", t("\u91CD\u65B0\u68C0\u6D4B", "Check again")));
|
|
24415
24455
|
}
|
|
24416
|
-
const
|
|
24456
|
+
const target2 = remote ? remoteMaintenanceTarget(local, remote) : null;
|
|
24417
24457
|
if (row.installation === "not-installed") {
|
|
24418
24458
|
const install = command("install", t("\u5B89\u88C5\u5E76\u8FDE\u63A5", "Install and connect"), true);
|
|
24419
24459
|
install.disabled ||= !remoteInstallVersion(local);
|
|
24420
24460
|
serviceActions.append(install);
|
|
24421
|
-
} else if (remote &&
|
|
24461
|
+
} else if (remote && target2 && !remoteBusy(remote)) {
|
|
24422
24462
|
const update = command(
|
|
24423
24463
|
"update",
|
|
24424
|
-
|
|
24464
|
+
target2 === remote.installedVersion ? t("\u91CD\u542F\u5E76\u8FDE\u63A5", "Restart and connect") : t("\u66F4\u65B0\u5230\u672C\u673A\u7248\u672C", "Match local version"),
|
|
24425
24465
|
true
|
|
24426
24466
|
);
|
|
24427
24467
|
serviceActions.append(update);
|
|
@@ -24557,13 +24597,13 @@ ${detail}` : ""}`
|
|
|
24557
24597
|
port.min = "1";
|
|
24558
24598
|
port.max = "65535";
|
|
24559
24599
|
port.step = "1";
|
|
24560
|
-
const
|
|
24600
|
+
const identity2 = field2(
|
|
24561
24601
|
t("\u79C1\u94A5\u8DEF\u5F84\uFF08\u53EF\u9009\uFF09", "Identity file (optional)"),
|
|
24562
24602
|
previous?.identity ?? "",
|
|
24563
24603
|
"~/.ssh/id_ed25519"
|
|
24564
24604
|
);
|
|
24565
24605
|
if (previous?.source === "discovered") {
|
|
24566
|
-
hostname3.disabled = port.disabled =
|
|
24606
|
+
hostname3.disabled = port.disabled = identity2.disabled = true;
|
|
24567
24607
|
dialog.body.append(
|
|
24568
24608
|
remoteElement(
|
|
24569
24609
|
document2,
|
|
@@ -24583,7 +24623,7 @@ ${detail}` : ""}`
|
|
|
24583
24623
|
displayName: name.value,
|
|
24584
24624
|
hostname: hostname3.value,
|
|
24585
24625
|
sshPort: port.value ? Number(port.value) : null,
|
|
24586
|
-
identity:
|
|
24626
|
+
identity: identity2.value.trim() || null
|
|
24587
24627
|
})
|
|
24588
24628
|
);
|
|
24589
24629
|
});
|
|
@@ -24904,8 +24944,8 @@ ${detail}` : ""}`
|
|
|
24904
24944
|
});
|
|
24905
24945
|
}
|
|
24906
24946
|
function focusAction(card, action) {
|
|
24907
|
-
const
|
|
24908
|
-
|
|
24947
|
+
const target2 = card.querySelector(`[data-action="${action}"]:not(:disabled)`) ?? card.querySelector("button:not(:disabled)");
|
|
24948
|
+
target2?.focus();
|
|
24909
24949
|
}
|
|
24910
24950
|
async function probe(row) {
|
|
24911
24951
|
const { hostId: hostId2 } = row.connection;
|
|
@@ -25186,15 +25226,15 @@ ${detail}` : ""}`
|
|
|
25186
25226
|
});
|
|
25187
25227
|
break;
|
|
25188
25228
|
case "update": {
|
|
25189
|
-
const
|
|
25190
|
-
if (!
|
|
25191
|
-
const restart =
|
|
25229
|
+
const target2 = row.remote ? remoteMaintenanceTarget(local, row.remote) : null;
|
|
25230
|
+
if (!target2) break;
|
|
25231
|
+
const restart = target2 === row.remote?.installedVersion;
|
|
25192
25232
|
void act(
|
|
25193
25233
|
row,
|
|
25194
25234
|
action,
|
|
25195
25235
|
restart ? t("\u6B63\u5728\u91CD\u542F\u8FDC\u7A0B\u670D\u52A1\u2026", "Restarting remote service\u2026") : t("\u6B63\u5728\u63D0\u4EA4\u66F4\u65B0\u2026", "Starting update\u2026"),
|
|
25196
25236
|
async () => {
|
|
25197
|
-
await control.update(hostId2,
|
|
25237
|
+
await control.update(hostId2, target2);
|
|
25198
25238
|
await setConnected(true);
|
|
25199
25239
|
}
|
|
25200
25240
|
);
|
|
@@ -25874,20 +25914,20 @@ ${error51.stderrTail}`] : []
|
|
|
25874
25914
|
row.dataset.connectionSelected = String(selected);
|
|
25875
25915
|
row.tabIndex = selected ? 0 : -1;
|
|
25876
25916
|
row.setAttribute("role", "row");
|
|
25877
|
-
const
|
|
25878
|
-
|
|
25879
|
-
|
|
25917
|
+
const identity2 = document2.createElement("div");
|
|
25918
|
+
identity2.className = "settings-connection-row__identity";
|
|
25919
|
+
identity2.setAttribute("role", "cell");
|
|
25880
25920
|
if (group) {
|
|
25881
25921
|
const handle = document2.createElement("span");
|
|
25882
25922
|
handle.className = "settings-connection-row__handle";
|
|
25883
25923
|
handle.setAttribute("aria-hidden", "true");
|
|
25884
25924
|
handle.title = group.dragHandleTitle;
|
|
25885
25925
|
handle.append(createRendererSettingsIcon("grip-vertical", 15));
|
|
25886
|
-
|
|
25926
|
+
identity2.append(handle);
|
|
25887
25927
|
}
|
|
25888
25928
|
const label = document2.createElement("strong");
|
|
25889
25929
|
label.textContent = item.name;
|
|
25890
|
-
|
|
25930
|
+
identity2.append(createConnectionIdentityIcon(document2, item, 19), label);
|
|
25891
25931
|
const status = document2.createElement("span");
|
|
25892
25932
|
status.className = "settings-connection-row__status";
|
|
25893
25933
|
status.dataset.connectionTone = connectionStatusTone(item.availability, item.error !== null);
|
|
@@ -25965,8 +26005,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
25965
26005
|
action.append(toggle);
|
|
25966
26006
|
}
|
|
25967
26007
|
row.addEventListener("click", (event) => {
|
|
25968
|
-
const
|
|
25969
|
-
if (
|
|
26008
|
+
const target2 = event.target;
|
|
26009
|
+
if (target2?.closest?.("a")) return;
|
|
25970
26010
|
select();
|
|
25971
26011
|
});
|
|
25972
26012
|
row.addEventListener("keydown", (event) => {
|
|
@@ -25984,17 +26024,17 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
25984
26024
|
row.addEventListener("drop", group.onDrop);
|
|
25985
26025
|
row.addEventListener("dragend", group.onDragEnd);
|
|
25986
26026
|
}
|
|
25987
|
-
row.append(
|
|
26027
|
+
row.append(identity2, status, action);
|
|
25988
26028
|
return row;
|
|
25989
26029
|
}
|
|
25990
26030
|
function createInspectorHeader(document2, item, messages) {
|
|
25991
26031
|
const header = document2.createElement("header");
|
|
25992
26032
|
header.className = "settings-connection-inspector__header";
|
|
25993
|
-
const
|
|
25994
|
-
|
|
26033
|
+
const identity2 = document2.createElement("div");
|
|
26034
|
+
identity2.className = "settings-connection-inspector__identity";
|
|
25995
26035
|
const title = document2.createElement("strong");
|
|
25996
26036
|
title.textContent = item.name;
|
|
25997
|
-
|
|
26037
|
+
identity2.append(createConnectionIdentityIcon(document2, item, 20), title);
|
|
25998
26038
|
const websiteUrl = item.agentSnapshot?.plugin?.links?.website ?? item.agentSnapshot?.plugin?.links?.documentation;
|
|
25999
26039
|
if (websiteUrl) {
|
|
26000
26040
|
const website = document2.createElement("a");
|
|
@@ -26006,13 +26046,13 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
26006
26046
|
website.setAttribute("aria-label", `${messages.connectionOfficialWebsite}: ${item.name}`);
|
|
26007
26047
|
website.append(createRendererSettingsIcon("external-link", 13));
|
|
26008
26048
|
website.addEventListener("click", (event) => event.stopPropagation());
|
|
26009
|
-
|
|
26049
|
+
identity2.append(website);
|
|
26010
26050
|
}
|
|
26011
26051
|
const status = document2.createElement("span");
|
|
26012
26052
|
status.className = "settings-connection-row__status";
|
|
26013
26053
|
status.dataset.connectionTone = connectionStatusTone(item.availability, item.error !== null);
|
|
26014
26054
|
status.textContent = item.error?.code === "authenticationRequired" ? messages.connectionLoginRequired : item.error?.code === "configurationRequired" ? messages.connectionConfigurationRequired : item.agentSnapshot && item.availability === "ready" && !item.error ? messages.connectionStatusConnected : connectionStatusLabel(item.availability, messages, item.error !== null);
|
|
26015
|
-
header.append(
|
|
26055
|
+
header.append(identity2, status);
|
|
26016
26056
|
return header;
|
|
26017
26057
|
}
|
|
26018
26058
|
function renderConnectionInspector(document2, inspector, item, hostId2, messages, diagnostics, existingLaunchControls, refresh) {
|
|
@@ -27199,15 +27239,15 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27199
27239
|
cwd.className = "settings-session-import-row__cwd";
|
|
27200
27240
|
cwd.textContent = candidate.cwd;
|
|
27201
27241
|
cwd.title = candidate.cwd;
|
|
27202
|
-
const
|
|
27203
|
-
|
|
27204
|
-
|
|
27205
|
-
|
|
27242
|
+
const identity2 = document2.createElement("span");
|
|
27243
|
+
identity2.textContent = `${messages.sessionImportSessionId}: ${shortSessionId(candidate.nativeSessionId)}`;
|
|
27244
|
+
identity2.title = candidate.nativeSessionId;
|
|
27245
|
+
identity2.setAttribute("aria-hidden", "true");
|
|
27206
27246
|
copy.append(
|
|
27207
27247
|
title,
|
|
27208
27248
|
metadata,
|
|
27209
27249
|
cwd,
|
|
27210
|
-
|
|
27250
|
+
identity2,
|
|
27211
27251
|
createAccessibleText(
|
|
27212
27252
|
document2,
|
|
27213
27253
|
`${messages.sessionImportSessionId}: ${candidate.nativeSessionId}`
|
|
@@ -27677,12 +27717,12 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27677
27717
|
let hideEmails = false;
|
|
27678
27718
|
const shown = (text) => accountDisplayText(text, hideEmails);
|
|
27679
27719
|
const targetButtons = /* @__PURE__ */ new Map();
|
|
27680
|
-
const importedRecords = () => snapshot.targets.find((
|
|
27720
|
+
const importedRecords = () => snapshot.targets.find((target2) => target2.harnessId === TARGET_HARNESS_ID)?.imports ?? [];
|
|
27681
27721
|
const sourceOf = (record3) => snapshot.sources.find((source) => source.id === record3.source.id);
|
|
27682
27722
|
const piTarget = () => snapshot.targets.find((candidate) => candidate.harnessId === TARGET_HARNESS_ID);
|
|
27683
27723
|
const compatibleSources = () => {
|
|
27684
|
-
const
|
|
27685
|
-
return
|
|
27724
|
+
const target2 = piTarget();
|
|
27725
|
+
return target2 ? snapshot.sources.filter((source) => target2.providers.includes(source.provider)) : [];
|
|
27686
27726
|
};
|
|
27687
27727
|
const section = document2.createElement("section");
|
|
27688
27728
|
section.className = "settings-pi-accounts";
|
|
@@ -27774,8 +27814,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27774
27814
|
row.setAttribute("aria-label", shown(record3.source.label));
|
|
27775
27815
|
const agent = record3.source.harnessId;
|
|
27776
27816
|
const mark = createMark(agent);
|
|
27777
|
-
const
|
|
27778
|
-
|
|
27817
|
+
const identity2 = document2.createElement("div");
|
|
27818
|
+
identity2.className = "settings-pi-accounts__identity";
|
|
27779
27819
|
const label = document2.createElement("strong");
|
|
27780
27820
|
label.className = "settings-account-email";
|
|
27781
27821
|
label.textContent = shown(record3.source.label);
|
|
@@ -27799,7 +27839,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27799
27839
|
}
|
|
27800
27840
|
meta3.append(part);
|
|
27801
27841
|
});
|
|
27802
|
-
|
|
27842
|
+
identity2.append(label, meta3);
|
|
27803
27843
|
const actions = document2.createElement("div");
|
|
27804
27844
|
actions.className = "settings-pi-accounts__actions";
|
|
27805
27845
|
const reimport = document2.createElement("button");
|
|
@@ -27821,7 +27861,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27821
27861
|
remove.addEventListener("click", () => openDialog("remove", { record: record3 }, `row:${record3.name}`));
|
|
27822
27862
|
if (source) actions.append(reimport);
|
|
27823
27863
|
actions.append(remove);
|
|
27824
|
-
row.append(mark,
|
|
27864
|
+
row.append(mark, identity2, actions);
|
|
27825
27865
|
rows.set(record3.name, row);
|
|
27826
27866
|
return row;
|
|
27827
27867
|
};
|
|
@@ -27835,8 +27875,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27835
27875
|
[shown(login.label ?? login.provider), agent && rendererAgentLabel(agent, pluginFor(agent))].filter(Boolean).join(" \xB7 ")
|
|
27836
27876
|
);
|
|
27837
27877
|
const mark = createMark(agent);
|
|
27838
|
-
const
|
|
27839
|
-
|
|
27878
|
+
const identity2 = document2.createElement("div");
|
|
27879
|
+
identity2.className = "settings-pi-accounts__identity";
|
|
27840
27880
|
const title = document2.createElement("strong");
|
|
27841
27881
|
title.className = "settings-account-email";
|
|
27842
27882
|
title.textContent = shown(login.label ?? login.provider);
|
|
@@ -27855,15 +27895,15 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27855
27895
|
}
|
|
27856
27896
|
meta3.append(part);
|
|
27857
27897
|
});
|
|
27858
|
-
|
|
27859
|
-
row.append(mark,
|
|
27898
|
+
identity2.append(title, meta3);
|
|
27899
|
+
row.append(mark, identity2);
|
|
27860
27900
|
return row;
|
|
27861
27901
|
};
|
|
27862
27902
|
const renderSection = () => {
|
|
27863
|
-
const
|
|
27864
|
-
section.hidden = !
|
|
27903
|
+
const target2 = piTarget();
|
|
27904
|
+
section.hidden = !target2;
|
|
27865
27905
|
const records = importedRecords();
|
|
27866
|
-
const others =
|
|
27906
|
+
const others = target2?.others ?? [];
|
|
27867
27907
|
sectionCount.textContent = String(records.length + others.length);
|
|
27868
27908
|
card.hidden = !sectionExpanded;
|
|
27869
27909
|
sectionImport.hidden = compatibleSources().length === 0;
|
|
@@ -28120,8 +28160,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28120
28160
|
modal.addEventListener("close", () => {
|
|
28121
28161
|
modal.remove();
|
|
28122
28162
|
dialog = void 0;
|
|
28123
|
-
const
|
|
28124
|
-
(
|
|
28163
|
+
const target2 = returnKey ? returnKey === SECTION_IMPORT_KEY ? sectionImport : targetButtons.get(returnKey) ?? rows.get(returnKey.replace(/^row:/, "")) : void 0;
|
|
28164
|
+
(target2?.isConnected ? target2 : section).focus();
|
|
28125
28165
|
});
|
|
28126
28166
|
show(initialMode);
|
|
28127
28167
|
root.append(modal);
|
|
@@ -28149,11 +28189,11 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28149
28189
|
const source = snapshot.sources.find(
|
|
28150
28190
|
(candidate) => candidate.harnessId === harnessId && candidate.label === accountLabel
|
|
28151
28191
|
);
|
|
28152
|
-
const
|
|
28192
|
+
const target2 = snapshot.targets.find(
|
|
28153
28193
|
(candidate) => candidate.harnessId === TARGET_HARNESS_ID && source && candidate.providers.includes(source.provider)
|
|
28154
28194
|
);
|
|
28155
|
-
if (!source || !
|
|
28156
|
-
const record3 =
|
|
28195
|
+
if (!source || !target2) return null;
|
|
28196
|
+
const record3 = target2.imports.find((candidate) => candidate.source.id === source.id);
|
|
28157
28197
|
const key = `${harnessId}:${accountLabel}:import`;
|
|
28158
28198
|
const button2 = document2.createElement("button");
|
|
28159
28199
|
button2.type = "button";
|
|
@@ -28600,11 +28640,11 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28600
28640
|
const key = active.getAttribute("data-account-focus");
|
|
28601
28641
|
const accountId = active.closest(".settings-account-row")?.dataset.accountId;
|
|
28602
28642
|
return () => {
|
|
28603
|
-
const
|
|
28604
|
-
if (
|
|
28605
|
-
const dialog =
|
|
28643
|
+
const target2 = key ? list.querySelector(`[data-account-focus="${CSS.escape(key)}"]`) : null;
|
|
28644
|
+
if (target2 && !target2.matches(":disabled")) {
|
|
28645
|
+
const dialog = target2.closest("dialog");
|
|
28606
28646
|
if (dialog && !dialog.open) dialog.showModal();
|
|
28607
|
-
|
|
28647
|
+
target2.focus({ preventScroll: true });
|
|
28608
28648
|
return;
|
|
28609
28649
|
}
|
|
28610
28650
|
const row = accountId ? list.querySelector(
|
|
@@ -28647,8 +28687,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28647
28687
|
function createAccountPerson(document2, messages, input) {
|
|
28648
28688
|
const person = document2.createElement("div");
|
|
28649
28689
|
person.className = "settings-account-row__person";
|
|
28650
|
-
const
|
|
28651
|
-
|
|
28690
|
+
const identity2 = document2.createElement("div");
|
|
28691
|
+
identity2.className = "settings-account-row__identity";
|
|
28652
28692
|
const title = document2.createElement("strong");
|
|
28653
28693
|
title.className = "settings-account-email";
|
|
28654
28694
|
title.textContent = input.name;
|
|
@@ -28680,9 +28720,9 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28680
28720
|
badge.title = messages.accountDefaultHint;
|
|
28681
28721
|
metadata.append(badge);
|
|
28682
28722
|
}
|
|
28683
|
-
|
|
28684
|
-
if (metadata.childElementCount)
|
|
28685
|
-
person.append(input.mark,
|
|
28723
|
+
identity2.append(title);
|
|
28724
|
+
if (metadata.childElementCount) identity2.append(metadata);
|
|
28725
|
+
person.append(input.mark, identity2);
|
|
28686
28726
|
return person;
|
|
28687
28727
|
}
|
|
28688
28728
|
function appendAccountExtras(cell, items) {
|
|
@@ -29389,14 +29429,14 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
29389
29429
|
function isWindowsRenderer(window2) {
|
|
29390
29430
|
const navigator2 = window2?.navigator;
|
|
29391
29431
|
if (!navigator2) return false;
|
|
29392
|
-
const
|
|
29393
|
-
return /windows|win32|win64/iu.test(
|
|
29432
|
+
const identity2 = `${rendererUserAgentData(navigator2)?.platform ?? ""} ${navigator2.platform ?? ""} ${navigator2.userAgent}`;
|
|
29433
|
+
return /windows|win32|win64/iu.test(identity2);
|
|
29394
29434
|
}
|
|
29395
29435
|
function windowsInstallerDownloadUrl(window2, version2) {
|
|
29396
29436
|
const navigator2 = window2?.navigator;
|
|
29397
29437
|
const hints = navigator2 ? rendererUserAgentData(navigator2) : void 0;
|
|
29398
|
-
const
|
|
29399
|
-
const architecture = /arm64|aarch64|\barm\b/iu.test(
|
|
29438
|
+
const identity2 = `${hints?.architecture ?? ""} ${hints?.platform ?? ""} ${navigator2?.platform ?? ""} ${navigator2?.userAgent ?? ""}`;
|
|
29439
|
+
const architecture = /arm64|aarch64|\barm\b/iu.test(identity2) ? "arm64" : "x64";
|
|
29400
29440
|
return `https://github.com/BytePioneer-AI/codex-host/releases/download/v${version2}/codexhost-${version2}-windows-${architecture}.exe`;
|
|
29401
29441
|
}
|
|
29402
29442
|
function panelIconName(view) {
|
package/app/web/index.html
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
media="(prefers-color-scheme: light)"
|
|
27
27
|
/>
|
|
28
28
|
<title>CodexHost</title>
|
|
29
|
-
<script type="module" crossorigin src="./assets/index-
|
|
29
|
+
<script type="module" crossorigin src="./assets/index-C0aXz2jD.js"></script>
|
|
30
30
|
<link rel="modulepreload" crossorigin href="./assets/vendor-dSL872WO.js">
|
|
31
31
|
<link rel="stylesheet" crossorigin href="./assets/vendor-BNsW4eBh.css">
|
|
32
32
|
<link rel="stylesheet" crossorigin href="./assets/index-C3lniEH1.css">
|