@codexhost/cli-linux-arm64 0.18.0-beta.3 → 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 +102 -57
- package/app/console-web.js +168 -123
- package/app/desktop-controller.mjs +292 -117
- package/app/host-runtime.mjs +5875 -3270
- package/app/plugins/antigravity/plugin.mjs +796 -307
- package/app/plugins/claude-code/plugin.mjs +214 -103
- package/app/plugins/codebuddy/plugin.mjs +108 -63
- package/app/plugins/codex-usage/plugin.mjs +94 -49
- package/app/plugins/copilot/plugin.mjs +99 -54
- package/app/plugins/cursor-cli/plugin.mjs +122 -77
- package/app/plugins/deepseek-harness/plugin.mjs +125 -80
- package/app/plugins/devin/plugin.mjs +99 -54
- package/app/plugins/grok/plugin.mjs +105 -60
- package/app/plugins/hermes/plugin.mjs +86 -41
- package/app/plugins/kimi-code/plugin.mjs +103 -58
- package/app/plugins/kiro-cli/plugin.mjs +99 -54
- package/app/plugins/omp/plugin.mjs +90 -45
- package/app/plugins/opencode/plugin.mjs +87 -42
- package/app/plugins/pi/plugin.mjs +103 -58
- package/app/plugins/qoder/plugin.mjs +115 -70
- package/app/plugins/qoder-cn/plugin.mjs +115 -70
- package/app/plugins/qwen-code/plugin.mjs +110 -65
- package/app/plugins/workbuddy/plugin.mjs +108 -63
- package/app/plugins/zcode/plugin.mjs +91 -46
- package/app/renderer-extension.js +362 -299
- package/app/web/assets/index-C0aXz2jD.js +199 -0
- package/app/web/codex-agent.png +0 -0
- package/app/web/codexhost-settings.js +163 -118
- package/app/web/index.html +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-gateway/client.js +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-connection/client.js +1 -1
- 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 +63 -63
- package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +12 -12
- package/app/web/plugins/deepseek-ai__dsh-client-ui-layout/client.js +2 -2
- 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-settings-general/client.js +2 -2
- package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar/client.js +2 -2
- 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 +9 -13
- package/app/web/plugins.json +4 -0
- package/app/web/sw.js +1 -6
- package/app/web-modules/server.mjs +2443 -1345
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
- package/app/web/assets/index-aKvkfNJN.js +0 -199
|
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({
|
|
@@ -15297,13 +15297,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15297
15297
|
});
|
|
15298
15298
|
|
|
15299
15299
|
// ../shared-contracts/dist/thread-catalog.js
|
|
15300
|
-
var threadCatalogReadParamsSchema = external_exports.object({
|
|
15300
|
+
var threadCatalogReadParamsSchema = external_exports.object({
|
|
15301
|
+
includeArchived: external_exports.boolean().optional(),
|
|
15302
|
+
/** Absent means first page; null means this branch is exhausted. Native cursors only. */
|
|
15303
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
15304
|
+
}).strict();
|
|
15301
15305
|
var threadCatalogReadResultSchema = external_exports.object({
|
|
15302
15306
|
threads: external_exports.array(jsonObjectSchema),
|
|
15303
15307
|
ownership: external_exports.array(threadOwnershipSchema),
|
|
15304
15308
|
/** Known archived IDs, including visible local external records even when their rows are
|
|
15305
|
-
* excluded. Native archived IDs
|
|
15306
|
-
archivedThreadIds: external_exports.array(hostThreadIdSchema)
|
|
15309
|
+
* excluded. Native archived IDs describe only the returned page, never a complete set. */
|
|
15310
|
+
archivedThreadIds: external_exports.array(hostThreadIdSchema),
|
|
15311
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
15307
15312
|
}).strict();
|
|
15308
15313
|
|
|
15309
15314
|
// ../shared-contracts/dist/voice.js
|
|
@@ -15543,7 +15548,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15543
15548
|
});
|
|
15544
15549
|
var DEFAULT_IDLE_RELEASE_SETTINGS = Object.freeze({
|
|
15545
15550
|
enabled: false,
|
|
15546
|
-
timeoutMinutes:
|
|
15551
|
+
timeoutMinutes: 10
|
|
15547
15552
|
});
|
|
15548
15553
|
|
|
15549
15554
|
// ../shared-contracts/dist/harness-preferences.js
|
|
@@ -16472,6 +16477,44 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16472
16477
|
}).strict();
|
|
16473
16478
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
16474
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
|
+
|
|
16475
16518
|
// ../shared-contracts/dist/remote-connections.js
|
|
16476
16519
|
var hostId = external_exports.string().min(1).max(1024);
|
|
16477
16520
|
var codexSshConnectionSchema = external_exports.object({
|
|
@@ -16492,7 +16535,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16492
16535
|
identity: external_exports.string().max(4096).nullable()
|
|
16493
16536
|
});
|
|
16494
16537
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
16538
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
16495
16539
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
16540
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
16496
16541
|
external_exports.strictObject({
|
|
16497
16542
|
action: external_exports.literal("read-thread"),
|
|
16498
16543
|
hostId: hostId.refine((id) => id !== "local"),
|
|
@@ -18439,8 +18484,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
18439
18484
|
}
|
|
18440
18485
|
async function verifyNativeCodexThread(sendRequest, threadId) {
|
|
18441
18486
|
const native = await sendRequest("thread/read", { threadId, includeTurns: false });
|
|
18442
|
-
const
|
|
18443
|
-
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") {
|
|
18444
18489
|
throw new Error("Native Thread response cannot establish Codex ownership");
|
|
18445
18490
|
}
|
|
18446
18491
|
}
|
|
@@ -18708,7 +18753,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
18708
18753
|
const params = threadOwnershipListParamsSchema.parse(input);
|
|
18709
18754
|
const value = await manager.sendRequest(THREAD_OWNERSHIP_LIST_METHOD, params);
|
|
18710
18755
|
const result = threadOwnershipListResultSchema.parse(value);
|
|
18711
|
-
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])) {
|
|
18712
18757
|
throw new Error("Thread ownership-list result does not match the requested IDs");
|
|
18713
18758
|
}
|
|
18714
18759
|
return result;
|
|
@@ -21334,20 +21379,20 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21334
21379
|
unmeteredRequests: 0
|
|
21335
21380
|
};
|
|
21336
21381
|
}
|
|
21337
|
-
function addTotals(
|
|
21338
|
-
|
|
21339
|
-
|
|
21340
|
-
|
|
21341
|
-
|
|
21342
|
-
|
|
21343
|
-
|
|
21344
|
-
|
|
21345
|
-
|
|
21346
|
-
|
|
21347
|
-
|
|
21348
|
-
|
|
21349
|
-
|
|
21350
|
-
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;
|
|
21351
21396
|
}
|
|
21352
21397
|
function inputWithoutCache(totals2) {
|
|
21353
21398
|
return totals2.inputTokens - totals2.cachedInputTokens - totals2.cacheWriteInputTokens;
|
|
@@ -24320,7 +24365,7 @@ ${detail}` : ""}`
|
|
|
24320
24365
|
card.setAttribute("aria-label", connection.displayName);
|
|
24321
24366
|
card.setAttribute("aria-busy", String(locked));
|
|
24322
24367
|
const head = remoteElement(document2, "div", "settings-remote-card__head");
|
|
24323
|
-
const
|
|
24368
|
+
const identity2 = remoteElement(document2, "div", "settings-remote-card__identity");
|
|
24324
24369
|
const titleLine = remoteElement(document2, "div", "settings-remote-card__title");
|
|
24325
24370
|
const [tone, stateLabel] = connectionState(row, t);
|
|
24326
24371
|
const state = remoteElement(document2, "span", "settings-remote-card__state", stateLabel);
|
|
@@ -24333,7 +24378,7 @@ ${detail}` : ""}`
|
|
|
24333
24378
|
addressLine.append(
|
|
24334
24379
|
remoteElement(document2, "span", "settings-status-badge", t("SSH \u914D\u7F6E", "SSH config"))
|
|
24335
24380
|
);
|
|
24336
|
-
|
|
24381
|
+
identity2.append(titleLine, addressLine);
|
|
24337
24382
|
const headActions = remoteElement(document2, "div", "settings-remote-card__actions");
|
|
24338
24383
|
if (row.installation !== "not-installed" && !row.probing) {
|
|
24339
24384
|
if (row.state === "error" && connection.autoConnect)
|
|
@@ -24356,7 +24401,7 @@ ${detail}` : ""}`
|
|
|
24356
24401
|
remove.append(createRendererSettingsIcon("trash", 15));
|
|
24357
24402
|
remove.addEventListener("click", () => onAction("remove"));
|
|
24358
24403
|
headActions.append(remove);
|
|
24359
|
-
head.append(
|
|
24404
|
+
head.append(identity2, headActions);
|
|
24360
24405
|
card.append(head);
|
|
24361
24406
|
if (row.stateError) {
|
|
24362
24407
|
const detail = remoteElement(
|
|
@@ -24408,15 +24453,15 @@ ${detail}` : ""}`
|
|
|
24408
24453
|
}
|
|
24409
24454
|
if (!remote) serviceActions.append(command("recheck", t("\u91CD\u65B0\u68C0\u6D4B", "Check again")));
|
|
24410
24455
|
}
|
|
24411
|
-
const
|
|
24456
|
+
const target2 = remote ? remoteMaintenanceTarget(local, remote) : null;
|
|
24412
24457
|
if (row.installation === "not-installed") {
|
|
24413
24458
|
const install = command("install", t("\u5B89\u88C5\u5E76\u8FDE\u63A5", "Install and connect"), true);
|
|
24414
24459
|
install.disabled ||= !remoteInstallVersion(local);
|
|
24415
24460
|
serviceActions.append(install);
|
|
24416
|
-
} else if (remote &&
|
|
24461
|
+
} else if (remote && target2 && !remoteBusy(remote)) {
|
|
24417
24462
|
const update = command(
|
|
24418
24463
|
"update",
|
|
24419
|
-
|
|
24464
|
+
target2 === remote.installedVersion ? t("\u91CD\u542F\u5E76\u8FDE\u63A5", "Restart and connect") : t("\u66F4\u65B0\u5230\u672C\u673A\u7248\u672C", "Match local version"),
|
|
24420
24465
|
true
|
|
24421
24466
|
);
|
|
24422
24467
|
serviceActions.append(update);
|
|
@@ -24552,13 +24597,13 @@ ${detail}` : ""}`
|
|
|
24552
24597
|
port.min = "1";
|
|
24553
24598
|
port.max = "65535";
|
|
24554
24599
|
port.step = "1";
|
|
24555
|
-
const
|
|
24600
|
+
const identity2 = field2(
|
|
24556
24601
|
t("\u79C1\u94A5\u8DEF\u5F84\uFF08\u53EF\u9009\uFF09", "Identity file (optional)"),
|
|
24557
24602
|
previous?.identity ?? "",
|
|
24558
24603
|
"~/.ssh/id_ed25519"
|
|
24559
24604
|
);
|
|
24560
24605
|
if (previous?.source === "discovered") {
|
|
24561
|
-
hostname3.disabled = port.disabled =
|
|
24606
|
+
hostname3.disabled = port.disabled = identity2.disabled = true;
|
|
24562
24607
|
dialog.body.append(
|
|
24563
24608
|
remoteElement(
|
|
24564
24609
|
document2,
|
|
@@ -24578,7 +24623,7 @@ ${detail}` : ""}`
|
|
|
24578
24623
|
displayName: name.value,
|
|
24579
24624
|
hostname: hostname3.value,
|
|
24580
24625
|
sshPort: port.value ? Number(port.value) : null,
|
|
24581
|
-
identity:
|
|
24626
|
+
identity: identity2.value.trim() || null
|
|
24582
24627
|
})
|
|
24583
24628
|
);
|
|
24584
24629
|
});
|
|
@@ -24899,8 +24944,8 @@ ${detail}` : ""}`
|
|
|
24899
24944
|
});
|
|
24900
24945
|
}
|
|
24901
24946
|
function focusAction(card, action) {
|
|
24902
|
-
const
|
|
24903
|
-
|
|
24947
|
+
const target2 = card.querySelector(`[data-action="${action}"]:not(:disabled)`) ?? card.querySelector("button:not(:disabled)");
|
|
24948
|
+
target2?.focus();
|
|
24904
24949
|
}
|
|
24905
24950
|
async function probe(row) {
|
|
24906
24951
|
const { hostId: hostId2 } = row.connection;
|
|
@@ -25181,15 +25226,15 @@ ${detail}` : ""}`
|
|
|
25181
25226
|
});
|
|
25182
25227
|
break;
|
|
25183
25228
|
case "update": {
|
|
25184
|
-
const
|
|
25185
|
-
if (!
|
|
25186
|
-
const restart =
|
|
25229
|
+
const target2 = row.remote ? remoteMaintenanceTarget(local, row.remote) : null;
|
|
25230
|
+
if (!target2) break;
|
|
25231
|
+
const restart = target2 === row.remote?.installedVersion;
|
|
25187
25232
|
void act(
|
|
25188
25233
|
row,
|
|
25189
25234
|
action,
|
|
25190
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"),
|
|
25191
25236
|
async () => {
|
|
25192
|
-
await control.update(hostId2,
|
|
25237
|
+
await control.update(hostId2, target2);
|
|
25193
25238
|
await setConnected(true);
|
|
25194
25239
|
}
|
|
25195
25240
|
);
|
|
@@ -25869,20 +25914,20 @@ ${error51.stderrTail}`] : []
|
|
|
25869
25914
|
row.dataset.connectionSelected = String(selected);
|
|
25870
25915
|
row.tabIndex = selected ? 0 : -1;
|
|
25871
25916
|
row.setAttribute("role", "row");
|
|
25872
|
-
const
|
|
25873
|
-
|
|
25874
|
-
|
|
25917
|
+
const identity2 = document2.createElement("div");
|
|
25918
|
+
identity2.className = "settings-connection-row__identity";
|
|
25919
|
+
identity2.setAttribute("role", "cell");
|
|
25875
25920
|
if (group) {
|
|
25876
25921
|
const handle = document2.createElement("span");
|
|
25877
25922
|
handle.className = "settings-connection-row__handle";
|
|
25878
25923
|
handle.setAttribute("aria-hidden", "true");
|
|
25879
25924
|
handle.title = group.dragHandleTitle;
|
|
25880
25925
|
handle.append(createRendererSettingsIcon("grip-vertical", 15));
|
|
25881
|
-
|
|
25926
|
+
identity2.append(handle);
|
|
25882
25927
|
}
|
|
25883
25928
|
const label = document2.createElement("strong");
|
|
25884
25929
|
label.textContent = item.name;
|
|
25885
|
-
|
|
25930
|
+
identity2.append(createConnectionIdentityIcon(document2, item, 19), label);
|
|
25886
25931
|
const status = document2.createElement("span");
|
|
25887
25932
|
status.className = "settings-connection-row__status";
|
|
25888
25933
|
status.dataset.connectionTone = connectionStatusTone(item.availability, item.error !== null);
|
|
@@ -25960,8 +26005,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
25960
26005
|
action.append(toggle);
|
|
25961
26006
|
}
|
|
25962
26007
|
row.addEventListener("click", (event) => {
|
|
25963
|
-
const
|
|
25964
|
-
if (
|
|
26008
|
+
const target2 = event.target;
|
|
26009
|
+
if (target2?.closest?.("a")) return;
|
|
25965
26010
|
select();
|
|
25966
26011
|
});
|
|
25967
26012
|
row.addEventListener("keydown", (event) => {
|
|
@@ -25979,17 +26024,17 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
25979
26024
|
row.addEventListener("drop", group.onDrop);
|
|
25980
26025
|
row.addEventListener("dragend", group.onDragEnd);
|
|
25981
26026
|
}
|
|
25982
|
-
row.append(
|
|
26027
|
+
row.append(identity2, status, action);
|
|
25983
26028
|
return row;
|
|
25984
26029
|
}
|
|
25985
26030
|
function createInspectorHeader(document2, item, messages) {
|
|
25986
26031
|
const header = document2.createElement("header");
|
|
25987
26032
|
header.className = "settings-connection-inspector__header";
|
|
25988
|
-
const
|
|
25989
|
-
|
|
26033
|
+
const identity2 = document2.createElement("div");
|
|
26034
|
+
identity2.className = "settings-connection-inspector__identity";
|
|
25990
26035
|
const title = document2.createElement("strong");
|
|
25991
26036
|
title.textContent = item.name;
|
|
25992
|
-
|
|
26037
|
+
identity2.append(createConnectionIdentityIcon(document2, item, 20), title);
|
|
25993
26038
|
const websiteUrl = item.agentSnapshot?.plugin?.links?.website ?? item.agentSnapshot?.plugin?.links?.documentation;
|
|
25994
26039
|
if (websiteUrl) {
|
|
25995
26040
|
const website = document2.createElement("a");
|
|
@@ -26001,13 +26046,13 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
26001
26046
|
website.setAttribute("aria-label", `${messages.connectionOfficialWebsite}: ${item.name}`);
|
|
26002
26047
|
website.append(createRendererSettingsIcon("external-link", 13));
|
|
26003
26048
|
website.addEventListener("click", (event) => event.stopPropagation());
|
|
26004
|
-
|
|
26049
|
+
identity2.append(website);
|
|
26005
26050
|
}
|
|
26006
26051
|
const status = document2.createElement("span");
|
|
26007
26052
|
status.className = "settings-connection-row__status";
|
|
26008
26053
|
status.dataset.connectionTone = connectionStatusTone(item.availability, item.error !== null);
|
|
26009
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);
|
|
26010
|
-
header.append(
|
|
26055
|
+
header.append(identity2, status);
|
|
26011
26056
|
return header;
|
|
26012
26057
|
}
|
|
26013
26058
|
function renderConnectionInspector(document2, inspector, item, hostId2, messages, diagnostics, existingLaunchControls, refresh) {
|
|
@@ -27194,15 +27239,15 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27194
27239
|
cwd.className = "settings-session-import-row__cwd";
|
|
27195
27240
|
cwd.textContent = candidate.cwd;
|
|
27196
27241
|
cwd.title = candidate.cwd;
|
|
27197
|
-
const
|
|
27198
|
-
|
|
27199
|
-
|
|
27200
|
-
|
|
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");
|
|
27201
27246
|
copy.append(
|
|
27202
27247
|
title,
|
|
27203
27248
|
metadata,
|
|
27204
27249
|
cwd,
|
|
27205
|
-
|
|
27250
|
+
identity2,
|
|
27206
27251
|
createAccessibleText(
|
|
27207
27252
|
document2,
|
|
27208
27253
|
`${messages.sessionImportSessionId}: ${candidate.nativeSessionId}`
|
|
@@ -27672,12 +27717,12 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27672
27717
|
let hideEmails = false;
|
|
27673
27718
|
const shown = (text) => accountDisplayText(text, hideEmails);
|
|
27674
27719
|
const targetButtons = /* @__PURE__ */ new Map();
|
|
27675
|
-
const importedRecords = () => snapshot.targets.find((
|
|
27720
|
+
const importedRecords = () => snapshot.targets.find((target2) => target2.harnessId === TARGET_HARNESS_ID)?.imports ?? [];
|
|
27676
27721
|
const sourceOf = (record3) => snapshot.sources.find((source) => source.id === record3.source.id);
|
|
27677
27722
|
const piTarget = () => snapshot.targets.find((candidate) => candidate.harnessId === TARGET_HARNESS_ID);
|
|
27678
27723
|
const compatibleSources = () => {
|
|
27679
|
-
const
|
|
27680
|
-
return
|
|
27724
|
+
const target2 = piTarget();
|
|
27725
|
+
return target2 ? snapshot.sources.filter((source) => target2.providers.includes(source.provider)) : [];
|
|
27681
27726
|
};
|
|
27682
27727
|
const section = document2.createElement("section");
|
|
27683
27728
|
section.className = "settings-pi-accounts";
|
|
@@ -27769,8 +27814,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27769
27814
|
row.setAttribute("aria-label", shown(record3.source.label));
|
|
27770
27815
|
const agent = record3.source.harnessId;
|
|
27771
27816
|
const mark = createMark(agent);
|
|
27772
|
-
const
|
|
27773
|
-
|
|
27817
|
+
const identity2 = document2.createElement("div");
|
|
27818
|
+
identity2.className = "settings-pi-accounts__identity";
|
|
27774
27819
|
const label = document2.createElement("strong");
|
|
27775
27820
|
label.className = "settings-account-email";
|
|
27776
27821
|
label.textContent = shown(record3.source.label);
|
|
@@ -27794,7 +27839,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27794
27839
|
}
|
|
27795
27840
|
meta3.append(part);
|
|
27796
27841
|
});
|
|
27797
|
-
|
|
27842
|
+
identity2.append(label, meta3);
|
|
27798
27843
|
const actions = document2.createElement("div");
|
|
27799
27844
|
actions.className = "settings-pi-accounts__actions";
|
|
27800
27845
|
const reimport = document2.createElement("button");
|
|
@@ -27816,7 +27861,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27816
27861
|
remove.addEventListener("click", () => openDialog("remove", { record: record3 }, `row:${record3.name}`));
|
|
27817
27862
|
if (source) actions.append(reimport);
|
|
27818
27863
|
actions.append(remove);
|
|
27819
|
-
row.append(mark,
|
|
27864
|
+
row.append(mark, identity2, actions);
|
|
27820
27865
|
rows.set(record3.name, row);
|
|
27821
27866
|
return row;
|
|
27822
27867
|
};
|
|
@@ -27830,8 +27875,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27830
27875
|
[shown(login.label ?? login.provider), agent && rendererAgentLabel(agent, pluginFor(agent))].filter(Boolean).join(" \xB7 ")
|
|
27831
27876
|
);
|
|
27832
27877
|
const mark = createMark(agent);
|
|
27833
|
-
const
|
|
27834
|
-
|
|
27878
|
+
const identity2 = document2.createElement("div");
|
|
27879
|
+
identity2.className = "settings-pi-accounts__identity";
|
|
27835
27880
|
const title = document2.createElement("strong");
|
|
27836
27881
|
title.className = "settings-account-email";
|
|
27837
27882
|
title.textContent = shown(login.label ?? login.provider);
|
|
@@ -27850,15 +27895,15 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27850
27895
|
}
|
|
27851
27896
|
meta3.append(part);
|
|
27852
27897
|
});
|
|
27853
|
-
|
|
27854
|
-
row.append(mark,
|
|
27898
|
+
identity2.append(title, meta3);
|
|
27899
|
+
row.append(mark, identity2);
|
|
27855
27900
|
return row;
|
|
27856
27901
|
};
|
|
27857
27902
|
const renderSection = () => {
|
|
27858
|
-
const
|
|
27859
|
-
section.hidden = !
|
|
27903
|
+
const target2 = piTarget();
|
|
27904
|
+
section.hidden = !target2;
|
|
27860
27905
|
const records = importedRecords();
|
|
27861
|
-
const others =
|
|
27906
|
+
const others = target2?.others ?? [];
|
|
27862
27907
|
sectionCount.textContent = String(records.length + others.length);
|
|
27863
27908
|
card.hidden = !sectionExpanded;
|
|
27864
27909
|
sectionImport.hidden = compatibleSources().length === 0;
|
|
@@ -28115,8 +28160,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28115
28160
|
modal.addEventListener("close", () => {
|
|
28116
28161
|
modal.remove();
|
|
28117
28162
|
dialog = void 0;
|
|
28118
|
-
const
|
|
28119
|
-
(
|
|
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();
|
|
28120
28165
|
});
|
|
28121
28166
|
show(initialMode);
|
|
28122
28167
|
root.append(modal);
|
|
@@ -28144,11 +28189,11 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28144
28189
|
const source = snapshot.sources.find(
|
|
28145
28190
|
(candidate) => candidate.harnessId === harnessId && candidate.label === accountLabel
|
|
28146
28191
|
);
|
|
28147
|
-
const
|
|
28192
|
+
const target2 = snapshot.targets.find(
|
|
28148
28193
|
(candidate) => candidate.harnessId === TARGET_HARNESS_ID && source && candidate.providers.includes(source.provider)
|
|
28149
28194
|
);
|
|
28150
|
-
if (!source || !
|
|
28151
|
-
const record3 =
|
|
28195
|
+
if (!source || !target2) return null;
|
|
28196
|
+
const record3 = target2.imports.find((candidate) => candidate.source.id === source.id);
|
|
28152
28197
|
const key = `${harnessId}:${accountLabel}:import`;
|
|
28153
28198
|
const button2 = document2.createElement("button");
|
|
28154
28199
|
button2.type = "button";
|
|
@@ -28595,11 +28640,11 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28595
28640
|
const key = active.getAttribute("data-account-focus");
|
|
28596
28641
|
const accountId = active.closest(".settings-account-row")?.dataset.accountId;
|
|
28597
28642
|
return () => {
|
|
28598
|
-
const
|
|
28599
|
-
if (
|
|
28600
|
-
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");
|
|
28601
28646
|
if (dialog && !dialog.open) dialog.showModal();
|
|
28602
|
-
|
|
28647
|
+
target2.focus({ preventScroll: true });
|
|
28603
28648
|
return;
|
|
28604
28649
|
}
|
|
28605
28650
|
const row = accountId ? list.querySelector(
|
|
@@ -28642,8 +28687,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28642
28687
|
function createAccountPerson(document2, messages, input) {
|
|
28643
28688
|
const person = document2.createElement("div");
|
|
28644
28689
|
person.className = "settings-account-row__person";
|
|
28645
|
-
const
|
|
28646
|
-
|
|
28690
|
+
const identity2 = document2.createElement("div");
|
|
28691
|
+
identity2.className = "settings-account-row__identity";
|
|
28647
28692
|
const title = document2.createElement("strong");
|
|
28648
28693
|
title.className = "settings-account-email";
|
|
28649
28694
|
title.textContent = input.name;
|
|
@@ -28675,9 +28720,9 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28675
28720
|
badge.title = messages.accountDefaultHint;
|
|
28676
28721
|
metadata.append(badge);
|
|
28677
28722
|
}
|
|
28678
|
-
|
|
28679
|
-
if (metadata.childElementCount)
|
|
28680
|
-
person.append(input.mark,
|
|
28723
|
+
identity2.append(title);
|
|
28724
|
+
if (metadata.childElementCount) identity2.append(metadata);
|
|
28725
|
+
person.append(input.mark, identity2);
|
|
28681
28726
|
return person;
|
|
28682
28727
|
}
|
|
28683
28728
|
function appendAccountExtras(cell, items) {
|
|
@@ -29384,14 +29429,14 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
29384
29429
|
function isWindowsRenderer(window2) {
|
|
29385
29430
|
const navigator2 = window2?.navigator;
|
|
29386
29431
|
if (!navigator2) return false;
|
|
29387
|
-
const
|
|
29388
|
-
return /windows|win32|win64/iu.test(
|
|
29432
|
+
const identity2 = `${rendererUserAgentData(navigator2)?.platform ?? ""} ${navigator2.platform ?? ""} ${navigator2.userAgent}`;
|
|
29433
|
+
return /windows|win32|win64/iu.test(identity2);
|
|
29389
29434
|
}
|
|
29390
29435
|
function windowsInstallerDownloadUrl(window2, version2) {
|
|
29391
29436
|
const navigator2 = window2?.navigator;
|
|
29392
29437
|
const hints = navigator2 ? rendererUserAgentData(navigator2) : void 0;
|
|
29393
|
-
const
|
|
29394
|
-
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";
|
|
29395
29440
|
return `https://github.com/BytePioneer-AI/codex-host/releases/download/v${version2}/codexhost-${version2}-windows-${architecture}.exe`;
|
|
29396
29441
|
}
|
|
29397
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">
|