@codexhost/cli-linux-arm64 0.18.0-beta.4 → 0.18.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 +1 -1
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +98 -55
- package/app/console-web.js +276 -188
- 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 +435 -361
- 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 +229 -175
- 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-settings-general/client.js +3 -3
- package/app/web/plugins/deepseek-ai__dsh-client-ui-theme/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 +41 -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
|
@@ -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;
|
|
@@ -19753,6 +19793,12 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
19753
19793
|
return createSVGElement([tag, attrs, iconNode]);
|
|
19754
19794
|
};
|
|
19755
19795
|
|
|
19796
|
+
// ../../node_modules/lucide/dist/esm/icons/smartphone.mjs
|
|
19797
|
+
var Smartphone = [
|
|
19798
|
+
["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2" }],
|
|
19799
|
+
["path", { d: "M12 18h.01" }]
|
|
19800
|
+
];
|
|
19801
|
+
|
|
19756
19802
|
// ../../node_modules/lucide/dist/esm/icons/boxes.mjs
|
|
19757
19803
|
var Boxes = [
|
|
19758
19804
|
[
|
|
@@ -20110,6 +20156,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20110
20156
|
"model-pool": Boxes,
|
|
20111
20157
|
routes: Route,
|
|
20112
20158
|
gateway: Network,
|
|
20159
|
+
mobile: Smartphone,
|
|
20113
20160
|
updates: CircleArrowUp,
|
|
20114
20161
|
schedules: CalendarClock,
|
|
20115
20162
|
about: Info,
|
|
@@ -20871,7 +20918,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20871
20918
|
aboutConsoleFailed: "The console could not be opened",
|
|
20872
20919
|
pageLabels: Object.freeze({
|
|
20873
20920
|
connections: "Connections",
|
|
20874
|
-
"
|
|
20921
|
+
"mobile-web": "Phone & browser",
|
|
20922
|
+
"remote-connections": "Other computers (SSH)",
|
|
20875
20923
|
appearance: "General",
|
|
20876
20924
|
accounts: "Accounts",
|
|
20877
20925
|
"session-import": "Session Import",
|
|
@@ -21152,7 +21200,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21152
21200
|
aboutConsoleFailed: "\u63A7\u5236\u53F0\u6253\u5F00\u5931\u8D25",
|
|
21153
21201
|
pageLabels: Object.freeze({
|
|
21154
21202
|
connections: "\u8FDE\u63A5",
|
|
21155
|
-
"
|
|
21203
|
+
"mobile-web": "\u624B\u673A\u4E0E\u6D4F\u89C8\u5668",
|
|
21204
|
+
"remote-connections": "\u5176\u4ED6\u7535\u8111\uFF08SSH\uFF09",
|
|
21156
21205
|
appearance: "\u901A\u7528",
|
|
21157
21206
|
accounts: "\u8D26\u53F7",
|
|
21158
21207
|
"session-import": "\u4F1A\u8BDD\u5BFC\u5165",
|
|
@@ -21339,20 +21388,20 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21339
21388
|
unmeteredRequests: 0
|
|
21340
21389
|
};
|
|
21341
21390
|
}
|
|
21342
|
-
function addTotals(
|
|
21343
|
-
|
|
21344
|
-
|
|
21345
|
-
|
|
21346
|
-
|
|
21347
|
-
|
|
21348
|
-
|
|
21349
|
-
|
|
21350
|
-
|
|
21351
|
-
|
|
21352
|
-
|
|
21353
|
-
|
|
21354
|
-
|
|
21355
|
-
return
|
|
21391
|
+
function addTotals(target2, source) {
|
|
21392
|
+
target2.requests += source.requests;
|
|
21393
|
+
target2.inputTokens += source.inputTokens;
|
|
21394
|
+
target2.cachedInputTokens += source.cachedInputTokens;
|
|
21395
|
+
target2.cacheWriteInputTokens += source.cacheWriteInputTokens;
|
|
21396
|
+
target2.cacheKnownInputTokens += source.cacheKnownInputTokens;
|
|
21397
|
+
target2.cacheHitCachedInputTokens += source.cacheHitCachedInputTokens;
|
|
21398
|
+
target2.cacheHitInputTokens += source.cacheHitInputTokens;
|
|
21399
|
+
target2.outputTokens += source.outputTokens;
|
|
21400
|
+
target2.reasoningOutputTokens += source.reasoningOutputTokens;
|
|
21401
|
+
target2.costUsd += source.costUsd;
|
|
21402
|
+
target2.unpricedRequests += source.unpricedRequests;
|
|
21403
|
+
target2.unmeteredRequests += source.unmeteredRequests;
|
|
21404
|
+
return target2;
|
|
21356
21405
|
}
|
|
21357
21406
|
function inputWithoutCache(totals2) {
|
|
21358
21407
|
return totals2.inputTokens - totals2.cachedInputTokens - totals2.cacheWriteInputTokens;
|
|
@@ -24325,7 +24374,7 @@ ${detail}` : ""}`
|
|
|
24325
24374
|
card.setAttribute("aria-label", connection.displayName);
|
|
24326
24375
|
card.setAttribute("aria-busy", String(locked));
|
|
24327
24376
|
const head = remoteElement(document2, "div", "settings-remote-card__head");
|
|
24328
|
-
const
|
|
24377
|
+
const identity2 = remoteElement(document2, "div", "settings-remote-card__identity");
|
|
24329
24378
|
const titleLine = remoteElement(document2, "div", "settings-remote-card__title");
|
|
24330
24379
|
const [tone, stateLabel] = connectionState(row, t);
|
|
24331
24380
|
const state = remoteElement(document2, "span", "settings-remote-card__state", stateLabel);
|
|
@@ -24338,7 +24387,7 @@ ${detail}` : ""}`
|
|
|
24338
24387
|
addressLine.append(
|
|
24339
24388
|
remoteElement(document2, "span", "settings-status-badge", t("SSH \u914D\u7F6E", "SSH config"))
|
|
24340
24389
|
);
|
|
24341
|
-
|
|
24390
|
+
identity2.append(titleLine, addressLine);
|
|
24342
24391
|
const headActions = remoteElement(document2, "div", "settings-remote-card__actions");
|
|
24343
24392
|
if (row.installation !== "not-installed" && !row.probing) {
|
|
24344
24393
|
if (row.state === "error" && connection.autoConnect)
|
|
@@ -24361,7 +24410,7 @@ ${detail}` : ""}`
|
|
|
24361
24410
|
remove.append(createRendererSettingsIcon("trash", 15));
|
|
24362
24411
|
remove.addEventListener("click", () => onAction("remove"));
|
|
24363
24412
|
headActions.append(remove);
|
|
24364
|
-
head.append(
|
|
24413
|
+
head.append(identity2, headActions);
|
|
24365
24414
|
card.append(head);
|
|
24366
24415
|
if (row.stateError) {
|
|
24367
24416
|
const detail = remoteElement(
|
|
@@ -24413,15 +24462,15 @@ ${detail}` : ""}`
|
|
|
24413
24462
|
}
|
|
24414
24463
|
if (!remote) serviceActions.append(command("recheck", t("\u91CD\u65B0\u68C0\u6D4B", "Check again")));
|
|
24415
24464
|
}
|
|
24416
|
-
const
|
|
24465
|
+
const target2 = remote ? remoteMaintenanceTarget(local, remote) : null;
|
|
24417
24466
|
if (row.installation === "not-installed") {
|
|
24418
24467
|
const install = command("install", t("\u5B89\u88C5\u5E76\u8FDE\u63A5", "Install and connect"), true);
|
|
24419
24468
|
install.disabled ||= !remoteInstallVersion(local);
|
|
24420
24469
|
serviceActions.append(install);
|
|
24421
|
-
} else if (remote &&
|
|
24470
|
+
} else if (remote && target2 && !remoteBusy(remote)) {
|
|
24422
24471
|
const update = command(
|
|
24423
24472
|
"update",
|
|
24424
|
-
|
|
24473
|
+
target2 === remote.installedVersion ? t("\u91CD\u542F\u5E76\u8FDE\u63A5", "Restart and connect") : t("\u66F4\u65B0\u5230\u672C\u673A\u7248\u672C", "Match local version"),
|
|
24425
24474
|
true
|
|
24426
24475
|
);
|
|
24427
24476
|
serviceActions.append(update);
|
|
@@ -24557,13 +24606,13 @@ ${detail}` : ""}`
|
|
|
24557
24606
|
port.min = "1";
|
|
24558
24607
|
port.max = "65535";
|
|
24559
24608
|
port.step = "1";
|
|
24560
|
-
const
|
|
24609
|
+
const identity2 = field2(
|
|
24561
24610
|
t("\u79C1\u94A5\u8DEF\u5F84\uFF08\u53EF\u9009\uFF09", "Identity file (optional)"),
|
|
24562
24611
|
previous?.identity ?? "",
|
|
24563
24612
|
"~/.ssh/id_ed25519"
|
|
24564
24613
|
);
|
|
24565
24614
|
if (previous?.source === "discovered") {
|
|
24566
|
-
hostname3.disabled = port.disabled =
|
|
24615
|
+
hostname3.disabled = port.disabled = identity2.disabled = true;
|
|
24567
24616
|
dialog.body.append(
|
|
24568
24617
|
remoteElement(
|
|
24569
24618
|
document2,
|
|
@@ -24583,7 +24632,7 @@ ${detail}` : ""}`
|
|
|
24583
24632
|
displayName: name.value,
|
|
24584
24633
|
hostname: hostname3.value,
|
|
24585
24634
|
sshPort: port.value ? Number(port.value) : null,
|
|
24586
|
-
identity:
|
|
24635
|
+
identity: identity2.value.trim() || null
|
|
24587
24636
|
})
|
|
24588
24637
|
);
|
|
24589
24638
|
});
|
|
@@ -24678,7 +24727,7 @@ ${detail}` : ""}`
|
|
|
24678
24727
|
var INSPECT_RETRY_MS = 6e4;
|
|
24679
24728
|
var RESTART_GRACE_MS = 9e4;
|
|
24680
24729
|
var CONNECT_REQUEST_WAIT_MS = 3e3;
|
|
24681
|
-
function createRemoteConnectionsPage(messages, getControl
|
|
24730
|
+
function createRemoteConnectionsPage(messages, getControl) {
|
|
24682
24731
|
const zh = messages.locale === "zh-CN";
|
|
24683
24732
|
const t = (cn, en) => zh ? cn : en;
|
|
24684
24733
|
return Object.freeze({
|
|
@@ -24697,72 +24746,17 @@ ${detail}` : ""}`
|
|
|
24697
24746
|
return panel;
|
|
24698
24747
|
};
|
|
24699
24748
|
const root = el("div", "settings-remote");
|
|
24700
|
-
const openWeb = getOpenWeb();
|
|
24701
|
-
if (openWeb) {
|
|
24702
|
-
root.append(el("h1", "settings-section-label", messages.pageLabels["remote-connections"]));
|
|
24703
|
-
const web = el("section", "settings-remote");
|
|
24704
|
-
const webHeader = el("div", "settings-remote__header");
|
|
24705
|
-
const webCopy = el("div");
|
|
24706
|
-
webCopy.append(
|
|
24707
|
-
el(
|
|
24708
|
-
"h2",
|
|
24709
|
-
"settings-section-label",
|
|
24710
|
-
t("\u624B\u673A\u548C\u5176\u4ED6\u8BBE\u5907\uFF08Web\uFF09", "Phones and other devices (Web)")
|
|
24711
|
-
),
|
|
24712
|
-
el(
|
|
24713
|
-
"p",
|
|
24714
|
-
"settings-page-description",
|
|
24715
|
-
t(
|
|
24716
|
-
"\u5728\u624B\u673A\u6216\u5176\u4ED6\u8BBE\u5907\u7684\u6D4F\u89C8\u5668\u4E0A\u4F7F\u7528\u8FD9\u53F0\u7535\u8111\u7684 CodexHost\uFF0C\u8FD9\u53F0\u7535\u8111\u9700\u8981\u4FDD\u6301\u5F00\u673A\u548C\u8054\u7F51\u3002",
|
|
24717
|
-
"Use this computer's CodexHost from a browser on your phone or another device. This computer must stay on and connected to the network."
|
|
24718
|
-
)
|
|
24719
|
-
)
|
|
24720
|
-
);
|
|
24721
|
-
webHeader.append(webCopy);
|
|
24722
|
-
const actions = el("div", "settings-remote__toolbar");
|
|
24723
|
-
const button2 = el(
|
|
24724
|
-
"button",
|
|
24725
|
-
"settings-command-button settings-command-button--secondary",
|
|
24726
|
-
t("\u6253\u5F00\u8FDE\u63A5\u8BBE\u5907\u9875", "Open Connect devices")
|
|
24727
|
-
);
|
|
24728
|
-
button2.type = "button";
|
|
24729
|
-
const status = el("div", "settings-remote__banner");
|
|
24730
|
-
status.setAttribute("role", "alert");
|
|
24731
|
-
status.hidden = true;
|
|
24732
|
-
button2.addEventListener("click", () => {
|
|
24733
|
-
button2.disabled = true;
|
|
24734
|
-
button2.textContent = t("\u6B63\u5728\u6253\u5F00\u2026", "Opening\u2026");
|
|
24735
|
-
status.hidden = true;
|
|
24736
|
-
void openWeb().catch((error51) => {
|
|
24737
|
-
status.textContent = `${t("Web \u6253\u5F00\u5931\u8D25", "Web could not be opened")}: ${remoteErrorMessage(error51)}`;
|
|
24738
|
-
status.hidden = false;
|
|
24739
|
-
}).finally(() => {
|
|
24740
|
-
button2.disabled = false;
|
|
24741
|
-
button2.textContent = t("\u6253\u5F00\u8FDE\u63A5\u8BBE\u5907\u9875", "Open Connect devices");
|
|
24742
|
-
});
|
|
24743
|
-
});
|
|
24744
|
-
actions.append(button2);
|
|
24745
|
-
web.append(webHeader, actions, status);
|
|
24746
|
-
root.append(web);
|
|
24747
|
-
}
|
|
24748
24749
|
const header = el("div", "settings-remote__header");
|
|
24749
24750
|
const headerCopy = el("div");
|
|
24750
24751
|
const localVersion = el("p", "settings-remote__meta");
|
|
24751
24752
|
headerCopy.append(
|
|
24752
|
-
el(
|
|
24753
|
-
openWeb ? "h2" : "h1",
|
|
24754
|
-
"settings-section-label",
|
|
24755
|
-
openWeb ? t("\u5176\u4ED6\u7535\u8111\uFF08SSH\uFF09", "Other computers (SSH)") : messages.pageLabels["remote-connections"]
|
|
24756
|
-
),
|
|
24753
|
+
el("h1", "settings-section-label", messages.pageLabels["remote-connections"]),
|
|
24757
24754
|
el(
|
|
24758
24755
|
"p",
|
|
24759
24756
|
"settings-page-description",
|
|
24760
|
-
|
|
24757
|
+
t(
|
|
24761
24758
|
"\u8FD9\u53F0\u7535\u8111\u901A\u8FC7 SSH \u8FDE\u63A5\u53E6\u4E00\u53F0 Mac \u6216 Linux \u7535\u8111\u3002\u8FDE\u63A5\u914D\u7F6E\u4E0E Codex \u5171\u7528\u3002",
|
|
24762
24759
|
"This computer connects to another Mac or Linux computer over SSH. Connection settings are shared with Codex."
|
|
24763
|
-
) : t(
|
|
24764
|
-
"\u901A\u8FC7 SSH \u8FDE\u63A5\u4F60\u7684 Mac \u6216 Linux \u7535\u8111\u3002\u8FDE\u63A5\u914D\u7F6E\u4E0E Codex \u5171\u7528\u3002",
|
|
24765
|
-
"Connect to a Mac or Linux computer over SSH. Connection settings are shared with Codex."
|
|
24766
24760
|
)
|
|
24767
24761
|
),
|
|
24768
24762
|
localVersion
|
|
@@ -24904,8 +24898,8 @@ ${detail}` : ""}`
|
|
|
24904
24898
|
});
|
|
24905
24899
|
}
|
|
24906
24900
|
function focusAction(card, action) {
|
|
24907
|
-
const
|
|
24908
|
-
|
|
24901
|
+
const target2 = card.querySelector(`[data-action="${action}"]:not(:disabled)`) ?? card.querySelector("button:not(:disabled)");
|
|
24902
|
+
target2?.focus();
|
|
24909
24903
|
}
|
|
24910
24904
|
async function probe(row) {
|
|
24911
24905
|
const { hostId: hostId2 } = row.connection;
|
|
@@ -25186,15 +25180,15 @@ ${detail}` : ""}`
|
|
|
25186
25180
|
});
|
|
25187
25181
|
break;
|
|
25188
25182
|
case "update": {
|
|
25189
|
-
const
|
|
25190
|
-
if (!
|
|
25191
|
-
const restart =
|
|
25183
|
+
const target2 = row.remote ? remoteMaintenanceTarget(local, row.remote) : null;
|
|
25184
|
+
if (!target2) break;
|
|
25185
|
+
const restart = target2 === row.remote?.installedVersion;
|
|
25192
25186
|
void act(
|
|
25193
25187
|
row,
|
|
25194
25188
|
action,
|
|
25195
25189
|
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
25190
|
async () => {
|
|
25197
|
-
await control.update(hostId2,
|
|
25191
|
+
await control.update(hostId2, target2);
|
|
25198
25192
|
await setConnected(true);
|
|
25199
25193
|
}
|
|
25200
25194
|
);
|
|
@@ -25233,6 +25227,64 @@ ${detail}` : ""}`
|
|
|
25233
25227
|
});
|
|
25234
25228
|
}
|
|
25235
25229
|
|
|
25230
|
+
// src/settings/mobile-web-page.ts
|
|
25231
|
+
function createMobileWebPage(messages, getOpenWeb) {
|
|
25232
|
+
const zh = messages.locale === "zh-CN";
|
|
25233
|
+
const t = (cn, en) => zh ? cn : en;
|
|
25234
|
+
return Object.freeze({
|
|
25235
|
+
id: "mobile-web",
|
|
25236
|
+
label: messages.pageLabels["mobile-web"],
|
|
25237
|
+
icon: "mobile",
|
|
25238
|
+
mount({ content }) {
|
|
25239
|
+
const document2 = content.ownerDocument;
|
|
25240
|
+
const el = (tag, className = "", text = "") => remoteElement(document2, tag, className, text);
|
|
25241
|
+
const root = el("div", "settings-remote");
|
|
25242
|
+
const header = el("div", "settings-remote__header");
|
|
25243
|
+
const copy = el("div");
|
|
25244
|
+
copy.append(
|
|
25245
|
+
el("h1", "settings-section-label", messages.pageLabels["mobile-web"]),
|
|
25246
|
+
el(
|
|
25247
|
+
"p",
|
|
25248
|
+
"settings-page-description",
|
|
25249
|
+
t(
|
|
25250
|
+
"\u5728\u624B\u673A\u6216\u5176\u4ED6\u8BBE\u5907\u7684\u6D4F\u89C8\u5668\u4E0A\u4F7F\u7528\u8FD9\u53F0\u7535\u8111\u7684 CodexHost\uFF0C\u8FD9\u53F0\u7535\u8111\u9700\u8981\u4FDD\u6301\u5F00\u673A\u548C\u8054\u7F51\u3002",
|
|
25251
|
+
"Use this computer's CodexHost from a browser on your phone or another device. This computer must stay on and connected to the network."
|
|
25252
|
+
)
|
|
25253
|
+
)
|
|
25254
|
+
);
|
|
25255
|
+
header.append(copy);
|
|
25256
|
+
const label = t("\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u8FDE\u63A5\u8BBE\u7F6E", "Open connection settings in browser");
|
|
25257
|
+
const button2 = el("button", "settings-command-button", "");
|
|
25258
|
+
button2.type = "button";
|
|
25259
|
+
button2.textContent = label;
|
|
25260
|
+
const status = el("div", "settings-remote__banner");
|
|
25261
|
+
status.setAttribute("role", "alert");
|
|
25262
|
+
status.hidden = true;
|
|
25263
|
+
const openWeb = getOpenWeb();
|
|
25264
|
+
if (!openWeb) {
|
|
25265
|
+
button2.disabled = true;
|
|
25266
|
+
status.textContent = t("\u6B64\u7A97\u53E3\u65E0\u6CD5\u6253\u5F00 Web\u3002", "Web cannot be opened from this window.");
|
|
25267
|
+
status.hidden = false;
|
|
25268
|
+
}
|
|
25269
|
+
button2.addEventListener("click", () => {
|
|
25270
|
+
if (!openWeb) return;
|
|
25271
|
+
button2.disabled = true;
|
|
25272
|
+
status.hidden = true;
|
|
25273
|
+
void openWeb().catch((error51) => {
|
|
25274
|
+
status.textContent = `${t("Web \u6253\u5F00\u5931\u8D25", "Web could not be opened")}: ${remoteErrorMessage(error51)}`;
|
|
25275
|
+
status.hidden = false;
|
|
25276
|
+
}).finally(() => {
|
|
25277
|
+
button2.disabled = false;
|
|
25278
|
+
});
|
|
25279
|
+
});
|
|
25280
|
+
const actions = el("div", "settings-remote__toolbar");
|
|
25281
|
+
actions.append(button2);
|
|
25282
|
+
root.append(header, actions, status);
|
|
25283
|
+
content.append(root);
|
|
25284
|
+
}
|
|
25285
|
+
});
|
|
25286
|
+
}
|
|
25287
|
+
|
|
25236
25288
|
// src/assets/codex-agent.png
|
|
25237
25289
|
var codex_agent_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAYAAAAdHLWhAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAJnFJREFUeAHtfQuYFdWV7tpVdc7pprvpppvuhm4ejQ9AQQFFUEEUfAUVH4k448TRuT4y0UnumGiSm0y8YuZO8jlXRx0fMXGi5rtqfIyj8YWiKCoEQcGAgAEabZAG+km/+/Q5VXvfvXftvWtV9ek3oM7X6/uqq07Vrl1V699rrX+vvasaYFiGZViGZViGZViGZViG5VAKUUs3YYyRPs77byNftYf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2sTEP0USU5sY9/VEtm7fFcqvFIp3VrNyeSPnYDbUg9vWwd0K6U4IensKEt2IkIBu+wB1aAQ4uen0zDNjMc9pvfWen4y8Gw7xf3nsSw4nQPga5pkXXHTfseMrzvtWUdnES4vys6ekk5BP03wkwFU9X/BjlQAIsiHZlUxv9cDrSjZmnb5ljZtqbXPilPQwObGPGKaLQAamiPdTNcBYyC1n1gI71mG1/MsDP83/ORyhuBO5tSN+LeO7p01bGi+ecEbJiPyC8lQ6OY55bjaxbEosp97OGr37i4/fqN669SH5X0Ou+2ntP5eUFP/8zyuYW1tHLFdMCOoP6YA+yqDjmjk6FtCSkjSbtTBmt3W1c8vJFZZzxMGR9wZfnuDw3lc5oZz0dT88cPbYo0vfqlxPYe8uSLd1WDFRgWX3DYKpLML0hGj6L3bnZUNqwmQanzbfoutWrz/3hf+Y+zYcYbeG5csEaKAilXTa0n8rPO/cH7yZrIGTdm6itLbGYu0dYIuevhWZS9CbmHEg8CN+Tja4xWOZddwpnMDE2MZ333hq4brlV7XAlwiOkK8TQELU+9FAl9667cLpk4/7bfN+KNu/E6C+htHWNkKSKU42aNC97yknKGbEikns+XlA84uYJTqgiVGsZuum1dc8//CCN3Qx+BLcWvRev24SUtyV39+0pHzCsXfk5GTPauHssKGGQWsjYZ1JIGIypP6Yhuwo22ICv/xHVCyvAEh+KUBBGTCbuB99uP79O179/aJX1TUO+bDBYOXrCJCWEDucNe/OsqOOn3Hh6DFzLiguGXUSTUGhzSCLCmWLORM+rB4vnWRxVt/U3PnnlprNr1ZVvvPi+8t/VqfqxBN6vxLydQZISzd2KOTkk5eMyCu7ckSnW5/lxDpzWJq4+bkVLU1717atXXtPEpXXZKW/pGVYhij9bXT/HRrnsAzLsAzLsAzLsAzLsHwl5f8DGzhXq3EeY8wAAAAASUVORK5CYII=";
|
|
25238
25290
|
|
|
@@ -25874,20 +25926,20 @@ ${error51.stderrTail}`] : []
|
|
|
25874
25926
|
row.dataset.connectionSelected = String(selected);
|
|
25875
25927
|
row.tabIndex = selected ? 0 : -1;
|
|
25876
25928
|
row.setAttribute("role", "row");
|
|
25877
|
-
const
|
|
25878
|
-
|
|
25879
|
-
|
|
25929
|
+
const identity2 = document2.createElement("div");
|
|
25930
|
+
identity2.className = "settings-connection-row__identity";
|
|
25931
|
+
identity2.setAttribute("role", "cell");
|
|
25880
25932
|
if (group) {
|
|
25881
25933
|
const handle = document2.createElement("span");
|
|
25882
25934
|
handle.className = "settings-connection-row__handle";
|
|
25883
25935
|
handle.setAttribute("aria-hidden", "true");
|
|
25884
25936
|
handle.title = group.dragHandleTitle;
|
|
25885
25937
|
handle.append(createRendererSettingsIcon("grip-vertical", 15));
|
|
25886
|
-
|
|
25938
|
+
identity2.append(handle);
|
|
25887
25939
|
}
|
|
25888
25940
|
const label = document2.createElement("strong");
|
|
25889
25941
|
label.textContent = item.name;
|
|
25890
|
-
|
|
25942
|
+
identity2.append(createConnectionIdentityIcon(document2, item, 19), label);
|
|
25891
25943
|
const status = document2.createElement("span");
|
|
25892
25944
|
status.className = "settings-connection-row__status";
|
|
25893
25945
|
status.dataset.connectionTone = connectionStatusTone(item.availability, item.error !== null);
|
|
@@ -25965,8 +26017,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
25965
26017
|
action.append(toggle);
|
|
25966
26018
|
}
|
|
25967
26019
|
row.addEventListener("click", (event) => {
|
|
25968
|
-
const
|
|
25969
|
-
if (
|
|
26020
|
+
const target2 = event.target;
|
|
26021
|
+
if (target2?.closest?.("a")) return;
|
|
25970
26022
|
select();
|
|
25971
26023
|
});
|
|
25972
26024
|
row.addEventListener("keydown", (event) => {
|
|
@@ -25984,17 +26036,17 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
25984
26036
|
row.addEventListener("drop", group.onDrop);
|
|
25985
26037
|
row.addEventListener("dragend", group.onDragEnd);
|
|
25986
26038
|
}
|
|
25987
|
-
row.append(
|
|
26039
|
+
row.append(identity2, status, action);
|
|
25988
26040
|
return row;
|
|
25989
26041
|
}
|
|
25990
26042
|
function createInspectorHeader(document2, item, messages) {
|
|
25991
26043
|
const header = document2.createElement("header");
|
|
25992
26044
|
header.className = "settings-connection-inspector__header";
|
|
25993
|
-
const
|
|
25994
|
-
|
|
26045
|
+
const identity2 = document2.createElement("div");
|
|
26046
|
+
identity2.className = "settings-connection-inspector__identity";
|
|
25995
26047
|
const title = document2.createElement("strong");
|
|
25996
26048
|
title.textContent = item.name;
|
|
25997
|
-
|
|
26049
|
+
identity2.append(createConnectionIdentityIcon(document2, item, 20), title);
|
|
25998
26050
|
const websiteUrl = item.agentSnapshot?.plugin?.links?.website ?? item.agentSnapshot?.plugin?.links?.documentation;
|
|
25999
26051
|
if (websiteUrl) {
|
|
26000
26052
|
const website = document2.createElement("a");
|
|
@@ -26006,13 +26058,13 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
26006
26058
|
website.setAttribute("aria-label", `${messages.connectionOfficialWebsite}: ${item.name}`);
|
|
26007
26059
|
website.append(createRendererSettingsIcon("external-link", 13));
|
|
26008
26060
|
website.addEventListener("click", (event) => event.stopPropagation());
|
|
26009
|
-
|
|
26061
|
+
identity2.append(website);
|
|
26010
26062
|
}
|
|
26011
26063
|
const status = document2.createElement("span");
|
|
26012
26064
|
status.className = "settings-connection-row__status";
|
|
26013
26065
|
status.dataset.connectionTone = connectionStatusTone(item.availability, item.error !== null);
|
|
26014
26066
|
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(
|
|
26067
|
+
header.append(identity2, status);
|
|
26016
26068
|
return header;
|
|
26017
26069
|
}
|
|
26018
26070
|
function renderConnectionInspector(document2, inspector, item, hostId2, messages, diagnostics, existingLaunchControls, refresh) {
|
|
@@ -27199,15 +27251,15 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27199
27251
|
cwd.className = "settings-session-import-row__cwd";
|
|
27200
27252
|
cwd.textContent = candidate.cwd;
|
|
27201
27253
|
cwd.title = candidate.cwd;
|
|
27202
|
-
const
|
|
27203
|
-
|
|
27204
|
-
|
|
27205
|
-
|
|
27254
|
+
const identity2 = document2.createElement("span");
|
|
27255
|
+
identity2.textContent = `${messages.sessionImportSessionId}: ${shortSessionId(candidate.nativeSessionId)}`;
|
|
27256
|
+
identity2.title = candidate.nativeSessionId;
|
|
27257
|
+
identity2.setAttribute("aria-hidden", "true");
|
|
27206
27258
|
copy.append(
|
|
27207
27259
|
title,
|
|
27208
27260
|
metadata,
|
|
27209
27261
|
cwd,
|
|
27210
|
-
|
|
27262
|
+
identity2,
|
|
27211
27263
|
createAccessibleText(
|
|
27212
27264
|
document2,
|
|
27213
27265
|
`${messages.sessionImportSessionId}: ${candidate.nativeSessionId}`
|
|
@@ -27677,12 +27729,12 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27677
27729
|
let hideEmails = false;
|
|
27678
27730
|
const shown = (text) => accountDisplayText(text, hideEmails);
|
|
27679
27731
|
const targetButtons = /* @__PURE__ */ new Map();
|
|
27680
|
-
const importedRecords = () => snapshot.targets.find((
|
|
27732
|
+
const importedRecords = () => snapshot.targets.find((target2) => target2.harnessId === TARGET_HARNESS_ID)?.imports ?? [];
|
|
27681
27733
|
const sourceOf = (record3) => snapshot.sources.find((source) => source.id === record3.source.id);
|
|
27682
27734
|
const piTarget = () => snapshot.targets.find((candidate) => candidate.harnessId === TARGET_HARNESS_ID);
|
|
27683
27735
|
const compatibleSources = () => {
|
|
27684
|
-
const
|
|
27685
|
-
return
|
|
27736
|
+
const target2 = piTarget();
|
|
27737
|
+
return target2 ? snapshot.sources.filter((source) => target2.providers.includes(source.provider)) : [];
|
|
27686
27738
|
};
|
|
27687
27739
|
const section = document2.createElement("section");
|
|
27688
27740
|
section.className = "settings-pi-accounts";
|
|
@@ -27774,8 +27826,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27774
27826
|
row.setAttribute("aria-label", shown(record3.source.label));
|
|
27775
27827
|
const agent = record3.source.harnessId;
|
|
27776
27828
|
const mark = createMark(agent);
|
|
27777
|
-
const
|
|
27778
|
-
|
|
27829
|
+
const identity2 = document2.createElement("div");
|
|
27830
|
+
identity2.className = "settings-pi-accounts__identity";
|
|
27779
27831
|
const label = document2.createElement("strong");
|
|
27780
27832
|
label.className = "settings-account-email";
|
|
27781
27833
|
label.textContent = shown(record3.source.label);
|
|
@@ -27799,7 +27851,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27799
27851
|
}
|
|
27800
27852
|
meta3.append(part);
|
|
27801
27853
|
});
|
|
27802
|
-
|
|
27854
|
+
identity2.append(label, meta3);
|
|
27803
27855
|
const actions = document2.createElement("div");
|
|
27804
27856
|
actions.className = "settings-pi-accounts__actions";
|
|
27805
27857
|
const reimport = document2.createElement("button");
|
|
@@ -27821,7 +27873,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27821
27873
|
remove.addEventListener("click", () => openDialog("remove", { record: record3 }, `row:${record3.name}`));
|
|
27822
27874
|
if (source) actions.append(reimport);
|
|
27823
27875
|
actions.append(remove);
|
|
27824
|
-
row.append(mark,
|
|
27876
|
+
row.append(mark, identity2, actions);
|
|
27825
27877
|
rows.set(record3.name, row);
|
|
27826
27878
|
return row;
|
|
27827
27879
|
};
|
|
@@ -27835,8 +27887,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27835
27887
|
[shown(login.label ?? login.provider), agent && rendererAgentLabel(agent, pluginFor(agent))].filter(Boolean).join(" \xB7 ")
|
|
27836
27888
|
);
|
|
27837
27889
|
const mark = createMark(agent);
|
|
27838
|
-
const
|
|
27839
|
-
|
|
27890
|
+
const identity2 = document2.createElement("div");
|
|
27891
|
+
identity2.className = "settings-pi-accounts__identity";
|
|
27840
27892
|
const title = document2.createElement("strong");
|
|
27841
27893
|
title.className = "settings-account-email";
|
|
27842
27894
|
title.textContent = shown(login.label ?? login.provider);
|
|
@@ -27855,15 +27907,15 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27855
27907
|
}
|
|
27856
27908
|
meta3.append(part);
|
|
27857
27909
|
});
|
|
27858
|
-
|
|
27859
|
-
row.append(mark,
|
|
27910
|
+
identity2.append(title, meta3);
|
|
27911
|
+
row.append(mark, identity2);
|
|
27860
27912
|
return row;
|
|
27861
27913
|
};
|
|
27862
27914
|
const renderSection = () => {
|
|
27863
|
-
const
|
|
27864
|
-
section.hidden = !
|
|
27915
|
+
const target2 = piTarget();
|
|
27916
|
+
section.hidden = !target2;
|
|
27865
27917
|
const records = importedRecords();
|
|
27866
|
-
const others =
|
|
27918
|
+
const others = target2?.others ?? [];
|
|
27867
27919
|
sectionCount.textContent = String(records.length + others.length);
|
|
27868
27920
|
card.hidden = !sectionExpanded;
|
|
27869
27921
|
sectionImport.hidden = compatibleSources().length === 0;
|
|
@@ -28120,8 +28172,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28120
28172
|
modal.addEventListener("close", () => {
|
|
28121
28173
|
modal.remove();
|
|
28122
28174
|
dialog = void 0;
|
|
28123
|
-
const
|
|
28124
|
-
(
|
|
28175
|
+
const target2 = returnKey ? returnKey === SECTION_IMPORT_KEY ? sectionImport : targetButtons.get(returnKey) ?? rows.get(returnKey.replace(/^row:/, "")) : void 0;
|
|
28176
|
+
(target2?.isConnected ? target2 : section).focus();
|
|
28125
28177
|
});
|
|
28126
28178
|
show(initialMode);
|
|
28127
28179
|
root.append(modal);
|
|
@@ -28149,11 +28201,11 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28149
28201
|
const source = snapshot.sources.find(
|
|
28150
28202
|
(candidate) => candidate.harnessId === harnessId && candidate.label === accountLabel
|
|
28151
28203
|
);
|
|
28152
|
-
const
|
|
28204
|
+
const target2 = snapshot.targets.find(
|
|
28153
28205
|
(candidate) => candidate.harnessId === TARGET_HARNESS_ID && source && candidate.providers.includes(source.provider)
|
|
28154
28206
|
);
|
|
28155
|
-
if (!source || !
|
|
28156
|
-
const record3 =
|
|
28207
|
+
if (!source || !target2) return null;
|
|
28208
|
+
const record3 = target2.imports.find((candidate) => candidate.source.id === source.id);
|
|
28157
28209
|
const key = `${harnessId}:${accountLabel}:import`;
|
|
28158
28210
|
const button2 = document2.createElement("button");
|
|
28159
28211
|
button2.type = "button";
|
|
@@ -28600,11 +28652,11 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28600
28652
|
const key = active.getAttribute("data-account-focus");
|
|
28601
28653
|
const accountId = active.closest(".settings-account-row")?.dataset.accountId;
|
|
28602
28654
|
return () => {
|
|
28603
|
-
const
|
|
28604
|
-
if (
|
|
28605
|
-
const dialog =
|
|
28655
|
+
const target2 = key ? list.querySelector(`[data-account-focus="${CSS.escape(key)}"]`) : null;
|
|
28656
|
+
if (target2 && !target2.matches(":disabled")) {
|
|
28657
|
+
const dialog = target2.closest("dialog");
|
|
28606
28658
|
if (dialog && !dialog.open) dialog.showModal();
|
|
28607
|
-
|
|
28659
|
+
target2.focus({ preventScroll: true });
|
|
28608
28660
|
return;
|
|
28609
28661
|
}
|
|
28610
28662
|
const row = accountId ? list.querySelector(
|
|
@@ -28647,8 +28699,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28647
28699
|
function createAccountPerson(document2, messages, input) {
|
|
28648
28700
|
const person = document2.createElement("div");
|
|
28649
28701
|
person.className = "settings-account-row__person";
|
|
28650
|
-
const
|
|
28651
|
-
|
|
28702
|
+
const identity2 = document2.createElement("div");
|
|
28703
|
+
identity2.className = "settings-account-row__identity";
|
|
28652
28704
|
const title = document2.createElement("strong");
|
|
28653
28705
|
title.className = "settings-account-email";
|
|
28654
28706
|
title.textContent = input.name;
|
|
@@ -28680,9 +28732,9 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28680
28732
|
badge.title = messages.accountDefaultHint;
|
|
28681
28733
|
metadata.append(badge);
|
|
28682
28734
|
}
|
|
28683
|
-
|
|
28684
|
-
if (metadata.childElementCount)
|
|
28685
|
-
person.append(input.mark,
|
|
28735
|
+
identity2.append(title);
|
|
28736
|
+
if (metadata.childElementCount) identity2.append(metadata);
|
|
28737
|
+
person.append(input.mark, identity2);
|
|
28686
28738
|
return person;
|
|
28687
28739
|
}
|
|
28688
28740
|
function appendAccountExtras(cell, items) {
|
|
@@ -29389,14 +29441,14 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
29389
29441
|
function isWindowsRenderer(window2) {
|
|
29390
29442
|
const navigator2 = window2?.navigator;
|
|
29391
29443
|
if (!navigator2) return false;
|
|
29392
|
-
const
|
|
29393
|
-
return /windows|win32|win64/iu.test(
|
|
29444
|
+
const identity2 = `${rendererUserAgentData(navigator2)?.platform ?? ""} ${navigator2.platform ?? ""} ${navigator2.userAgent}`;
|
|
29445
|
+
return /windows|win32|win64/iu.test(identity2);
|
|
29394
29446
|
}
|
|
29395
29447
|
function windowsInstallerDownloadUrl(window2, version2) {
|
|
29396
29448
|
const navigator2 = window2?.navigator;
|
|
29397
29449
|
const hints = navigator2 ? rendererUserAgentData(navigator2) : void 0;
|
|
29398
|
-
const
|
|
29399
|
-
const architecture = /arm64|aarch64|\barm\b/iu.test(
|
|
29450
|
+
const identity2 = `${hints?.architecture ?? ""} ${hints?.platform ?? ""} ${navigator2?.platform ?? ""} ${navigator2?.userAgent ?? ""}`;
|
|
29451
|
+
const architecture = /arm64|aarch64|\barm\b/iu.test(identity2) ? "arm64" : "x64";
|
|
29400
29452
|
return `https://github.com/BytePioneer-AI/codex-host/releases/download/v${version2}/codexhost-${version2}-windows-${architecture}.exe`;
|
|
29401
29453
|
}
|
|
29402
29454
|
function panelIconName(view) {
|
|
@@ -29880,10 +29932,11 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
29880
29932
|
function createDefaultRendererSettingsPages(messages = DEFAULT_RENDERER_SETTINGS_MESSAGES, getUpdateClient = () => null, getDiagnostics = () => null, getAccountClient = () => null, getSessionImportClient = () => null, openImportedThread = () => Promise.reject(new Error("Imported Thread navigation is unavailable")), getLoadedSessionsClient = () => null, getRemoteConnections = () => null, requestUsageStatistics = () => Promise.reject(new Error("Local Host connection is unavailable")), usageStatisticsHosts, harnessSchedules) {
|
|
29881
29933
|
return Object.freeze([
|
|
29882
29934
|
createConnectionsSettingsPage(messages, getDiagnostics, void 0, getRemoteConnections),
|
|
29883
|
-
|
|
29935
|
+
createMobileWebPage(messages, () => {
|
|
29884
29936
|
const client = getUpdateClient();
|
|
29885
29937
|
return client?.openWeb?.bind(client);
|
|
29886
29938
|
}),
|
|
29939
|
+
createRemoteConnectionsPage(messages, getRemoteConnections),
|
|
29887
29940
|
createAccountsSettingsPage(messages, getAccountClient),
|
|
29888
29941
|
...harnessSchedules ? [createHarnessSchedulesPage(messages, harnessSchedules)] : [],
|
|
29889
29942
|
createSessionImportSettingsPage(
|
|
@@ -32656,6 +32709,7 @@ ${WEB_LAYOUT_CSS}`
|
|
|
32656
32709
|
|
|
32657
32710
|
lucide/dist/esm/defaultAttributes.mjs:
|
|
32658
32711
|
lucide/dist/esm/createElement.mjs:
|
|
32712
|
+
lucide/dist/esm/icons/smartphone.mjs:
|
|
32659
32713
|
lucide/dist/esm/icons/boxes.mjs:
|
|
32660
32714
|
lucide/dist/esm/icons/calendar-clock.mjs:
|
|
32661
32715
|
lucide/dist/esm/icons/circle-check.mjs:
|