@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
package/app/console-web.js
CHANGED
|
@@ -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
|
// src/console/api.ts
|
|
@@ -840,8 +840,8 @@
|
|
|
840
840
|
function objectClone(obj) {
|
|
841
841
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
842
842
|
}
|
|
843
|
-
function assignProp(
|
|
844
|
-
Object.defineProperty(
|
|
843
|
+
function assignProp(target2, prop, value) {
|
|
844
|
+
Object.defineProperty(target2, prop, {
|
|
845
845
|
value,
|
|
846
846
|
writable: true,
|
|
847
847
|
enumerable: true,
|
|
@@ -1024,35 +1024,35 @@
|
|
|
1024
1024
|
return params;
|
|
1025
1025
|
}
|
|
1026
1026
|
function createTransparentProxy(getter) {
|
|
1027
|
-
let
|
|
1027
|
+
let target2;
|
|
1028
1028
|
return new Proxy({}, {
|
|
1029
1029
|
get(_, prop, receiver) {
|
|
1030
|
-
|
|
1031
|
-
return Reflect.get(
|
|
1030
|
+
target2 ?? (target2 = getter());
|
|
1031
|
+
return Reflect.get(target2, prop, receiver);
|
|
1032
1032
|
},
|
|
1033
1033
|
set(_, prop, value, receiver) {
|
|
1034
|
-
|
|
1035
|
-
return Reflect.set(
|
|
1034
|
+
target2 ?? (target2 = getter());
|
|
1035
|
+
return Reflect.set(target2, prop, value, receiver);
|
|
1036
1036
|
},
|
|
1037
1037
|
has(_, prop) {
|
|
1038
|
-
|
|
1039
|
-
return Reflect.has(
|
|
1038
|
+
target2 ?? (target2 = getter());
|
|
1039
|
+
return Reflect.has(target2, prop);
|
|
1040
1040
|
},
|
|
1041
1041
|
deleteProperty(_, prop) {
|
|
1042
|
-
|
|
1043
|
-
return Reflect.deleteProperty(
|
|
1042
|
+
target2 ?? (target2 = getter());
|
|
1043
|
+
return Reflect.deleteProperty(target2, prop);
|
|
1044
1044
|
},
|
|
1045
1045
|
ownKeys(_) {
|
|
1046
|
-
|
|
1047
|
-
return Reflect.ownKeys(
|
|
1046
|
+
target2 ?? (target2 = getter());
|
|
1047
|
+
return Reflect.ownKeys(target2);
|
|
1048
1048
|
},
|
|
1049
1049
|
getOwnPropertyDescriptor(_, prop) {
|
|
1050
|
-
|
|
1051
|
-
return Reflect.getOwnPropertyDescriptor(
|
|
1050
|
+
target2 ?? (target2 = getter());
|
|
1051
|
+
return Reflect.getOwnPropertyDescriptor(target2, prop);
|
|
1052
1052
|
},
|
|
1053
1053
|
defineProperty(_, prop, descriptor) {
|
|
1054
|
-
|
|
1055
|
-
return Reflect.defineProperty(
|
|
1054
|
+
target2 ?? (target2 = getter());
|
|
1055
|
+
return Reflect.defineProperty(target2, prop, descriptor);
|
|
1056
1056
|
}
|
|
1057
1057
|
});
|
|
1058
1058
|
}
|
|
@@ -11504,15 +11504,15 @@
|
|
|
11504
11504
|
|
|
11505
11505
|
// ../../node_modules/zod/v4/core/to-json-schema.js
|
|
11506
11506
|
function initializeContext(params) {
|
|
11507
|
-
let
|
|
11508
|
-
if (
|
|
11509
|
-
|
|
11510
|
-
if (
|
|
11511
|
-
|
|
11507
|
+
let target2 = params?.target ?? "draft-2020-12";
|
|
11508
|
+
if (target2 === "draft-4")
|
|
11509
|
+
target2 = "draft-04";
|
|
11510
|
+
if (target2 === "draft-7")
|
|
11511
|
+
target2 = "draft-07";
|
|
11512
11512
|
return {
|
|
11513
11513
|
processors: params.processors ?? {},
|
|
11514
11514
|
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
11515
|
-
target,
|
|
11515
|
+
target: target2,
|
|
11516
11516
|
unrepresentable: params?.unrepresentable ?? "throw",
|
|
11517
11517
|
override: params?.override ?? (() => {
|
|
11518
11518
|
}),
|
|
@@ -11854,8 +11854,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11854
11854
|
return finalize(ctx, schema);
|
|
11855
11855
|
};
|
|
11856
11856
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
11857
|
-
const { libraryOptions, target } = params ?? {};
|
|
11858
|
-
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
11857
|
+
const { libraryOptions, target: target2 } = params ?? {};
|
|
11858
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io, processors });
|
|
11859
11859
|
process(schema, ctx);
|
|
11860
11860
|
extractDefs(ctx, schema);
|
|
11861
11861
|
return finalize(ctx, schema);
|
|
@@ -12914,8 +12914,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12914
12914
|
catch(params) {
|
|
12915
12915
|
return _catch2(this, params);
|
|
12916
12916
|
},
|
|
12917
|
-
pipe(
|
|
12918
|
-
return pipe(this,
|
|
12917
|
+
pipe(target2) {
|
|
12918
|
+
return pipe(this, target2);
|
|
12919
12919
|
},
|
|
12920
12920
|
readonly() {
|
|
12921
12921
|
return readonly(this);
|
|
@@ -15167,15 +15167,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15167
15167
|
threads: external_exports.array(threadOwnershipSchema).min(1).max(THREAD_OWNERSHIP_LIST_MAX_LENGTH)
|
|
15168
15168
|
}).strict().superRefine(({ threads }, context) => {
|
|
15169
15169
|
const seen = /* @__PURE__ */ new Set();
|
|
15170
|
-
for (const [index,
|
|
15171
|
-
if (seen.has(
|
|
15170
|
+
for (const [index, thread2] of threads.entries()) {
|
|
15171
|
+
if (seen.has(thread2.threadId)) {
|
|
15172
15172
|
context.addIssue({
|
|
15173
15173
|
code: "custom",
|
|
15174
15174
|
message: "Thread ownership-list results must be unique",
|
|
15175
15175
|
path: ["threads", index, "threadId"]
|
|
15176
15176
|
});
|
|
15177
15177
|
}
|
|
15178
|
-
seen.add(
|
|
15178
|
+
seen.add(thread2.threadId);
|
|
15179
15179
|
}
|
|
15180
15180
|
});
|
|
15181
15181
|
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
@@ -16564,6 +16564,44 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16564
16564
|
}).strict();
|
|
16565
16565
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
16566
16566
|
|
|
16567
|
+
// ../shared-contracts/dist/remote-sessions.js
|
|
16568
|
+
var REMOTE_CONTROLLER_REQUEST_MAX_BYTES = 16 * 1024;
|
|
16569
|
+
var identity = external_exports.string().min(1).max(1024);
|
|
16570
|
+
var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
16571
|
+
var thread = { ...target, threadId: identity };
|
|
16572
|
+
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16573
|
+
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16574
|
+
external_exports.strictObject({
|
|
16575
|
+
kind: external_exports.literal("list"),
|
|
16576
|
+
...target,
|
|
16577
|
+
cursor: external_exports.string().nullable(),
|
|
16578
|
+
archived: external_exports.boolean()
|
|
16579
|
+
}),
|
|
16580
|
+
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
16581
|
+
external_exports.strictObject({
|
|
16582
|
+
kind: external_exports.literal("prompt"),
|
|
16583
|
+
...thread,
|
|
16584
|
+
epoch: identity,
|
|
16585
|
+
text: external_exports.string().min(1).max(8e3),
|
|
16586
|
+
requestId: identity.optional()
|
|
16587
|
+
}),
|
|
16588
|
+
external_exports.strictObject({ kind: external_exports.literal("interrupt"), ...thread, epoch: identity, turnId: identity }),
|
|
16589
|
+
external_exports.strictObject({
|
|
16590
|
+
kind: external_exports.literal("rename"),
|
|
16591
|
+
...thread,
|
|
16592
|
+
epoch: identity,
|
|
16593
|
+
name: external_exports.string().min(1).max(512)
|
|
16594
|
+
}),
|
|
16595
|
+
external_exports.strictObject({ kind: external_exports.literal("archive"), ...thread, epoch: identity, archived: external_exports.boolean() }),
|
|
16596
|
+
external_exports.strictObject({
|
|
16597
|
+
kind: external_exports.literal("respond"),
|
|
16598
|
+
...thread,
|
|
16599
|
+
epoch: identity,
|
|
16600
|
+
requestId: external_exports.union([identity, external_exports.number().int()]),
|
|
16601
|
+
result: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
16602
|
+
})
|
|
16603
|
+
]);
|
|
16604
|
+
|
|
16567
16605
|
// ../shared-contracts/dist/remote-connections.js
|
|
16568
16606
|
var CONSOLE_REMOTE_CONNECTIONS_METHOD = "codexhost/console/remote-connections";
|
|
16569
16607
|
var hostId = external_exports.string().min(1).max(1024);
|
|
@@ -16585,7 +16623,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16585
16623
|
identity: external_exports.string().max(4096).nullable()
|
|
16586
16624
|
});
|
|
16587
16625
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
16626
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
16588
16627
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
16628
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
16589
16629
|
external_exports.strictObject({
|
|
16590
16630
|
action: external_exports.literal("read-thread"),
|
|
16591
16631
|
hostId: hostId.refine((id) => id !== "local"),
|
|
@@ -16690,6 +16730,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16690
16730
|
return createSVGElement([tag, attrs, iconNode]);
|
|
16691
16731
|
};
|
|
16692
16732
|
|
|
16733
|
+
// ../../node_modules/lucide/dist/esm/icons/smartphone.mjs
|
|
16734
|
+
var Smartphone = [
|
|
16735
|
+
["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2" }],
|
|
16736
|
+
["path", { d: "M12 18h.01" }]
|
|
16737
|
+
];
|
|
16738
|
+
|
|
16693
16739
|
// ../../node_modules/lucide/dist/esm/icons/boxes.mjs
|
|
16694
16740
|
var Boxes = [
|
|
16695
16741
|
[
|
|
@@ -17047,6 +17093,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17047
17093
|
"model-pool": Boxes,
|
|
17048
17094
|
routes: Route,
|
|
17049
17095
|
gateway: Network,
|
|
17096
|
+
mobile: Smartphone,
|
|
17050
17097
|
updates: CircleArrowUp,
|
|
17051
17098
|
schedules: CalendarClock,
|
|
17052
17099
|
about: Info,
|
|
@@ -17696,7 +17743,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17696
17743
|
}
|
|
17697
17744
|
|
|
17698
17745
|
// src/console/console.css
|
|
17699
|
-
var console_default = '/*\n * Standalone console layout. Colors and components come from the settings\n * design tokens (shell.css) so reused settings pages and console pages match.\n */\n\n:host {\n position: fixed;\n inset: 0;\n display: block;\n}\n\n.console-app {\n display: grid;\n grid-template-columns: 248px minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n background: var(--settings-bg);\n color: var(--settings-text);\n}\n\n.console-sidebar {\n padding-top: 0;\n}\n\n.console-sidebar .settings-nav {\n padding-top: 4px;\n}\n\n.console-brand {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 18px 16px 16px;\n}\n\n.console-brand__copy {\n display: flex;\n min-width: 0;\n flex-direction: column;\n line-height: 18px;\n}\n\n.console-brand__name {\n font-size: 14px;\n font-weight: 650;\n letter-spacing: -0.01em;\n}\n\n.console-brand__subtitle {\n color: var(--settings-muted);\n font-size: 12px;\n}\n\n.console-status-card {\n display: grid;\n gap: 4px;\n margin: 8px 10px 14px;\n padding: 11px 12px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 10px;\n}\n\n.console-status-card__row {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.console-status-card__title {\n font-size: 12px;\n font-weight: 600;\n}\n\n.console-status-card__meta {\n overflow: hidden;\n color: var(--settings-muted);\n font-size: 11px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.console-dot {\n width: 8px;\n height: 8px;\n flex: none;\n background: var(--settings-subtle);\n border-radius: 50%;\n}\n\n.console-dot.is-ok {\n background: var(--settings-success);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--settings-success) 18%, transparent);\n}\n\n.console-dot.is-warn {\n background: var(--settings-warning);\n}\n\n.console-dot.is-bad {\n background: var(--settings-danger);\n}\n\n.console-main {\n position: relative;\n}\n\n.console-announcement {\n display: flex;\n align-items: flex-start;\n gap: 12px;\n width: min(930px, calc(100% - 80px));\n margin: 28px auto 0;\n padding: 14px 16px;\n font-size: 13px;\n line-height: 20px;\n color: var(--settings-warning);\n background: var(--settings-warning-bg);\n border: 1px solid var(--settings-warning-border);\n border-radius: 12px;\n overflow-wrap: anywhere;\n}\n\n.console-announcement[data-type="info"] {\n color: var(--settings-focus);\n background: color-mix(in srgb, var(--settings-focus) 7%, var(--settings-bg));\n border-color: color-mix(in srgb, var(--settings-focus) 24%, var(--settings-bg));\n}\n\n.console-announcement[data-type="danger"] {\n color: var(--settings-danger);\n background: var(--settings-danger-bg);\n border-color: var(--settings-danger-border);\n}\n\n.console-announcement > svg {\n flex: none;\n margin-top: 2px;\n}\n\n.console-announcement[hidden] {\n display: none;\n}\n\n.console-announcement > div {\n min-width: 0;\n}\n\n.console-announcement .settings-update-notes {\n margin-top: 4px;\n color: inherit;\n font: inherit;\n}\n\n.console-announcement a {\n color: inherit;\n}\n\n.console-offline {\n display: flex;\n align-items: center;\n gap: 8px;\n margin: 16px auto 0;\n width: min(930px, calc(100% - 80px));\n padding: 10px 12px;\n color: var(--settings-danger);\n font-size: 12px;\n background: var(--settings-danger-bg);\n border: 1px solid var(--settings-danger-border);\n border-radius: 10px;\n}\n\n.console-offline[hidden] {\n display: none;\n}\n\n/* Overview */\n\n.console-hero {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 16px;\n padding: 20px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 14px;\n}\n\n.console-hero__icon {\n display: grid;\n width: 44px;\n height: 44px;\n place-items: center;\n color: var(--settings-muted);\n background: var(--settings-surface);\n border-radius: 12px;\n}\n\n.console-hero[data-tone="ok"] .console-hero__icon {\n color: var(--settings-success);\n background: color-mix(in srgb, var(--settings-success) 12%, transparent);\n}\n\n.console-hero[data-tone="warn"] .console-hero__icon {\n color: var(--settings-warning);\n background: var(--settings-warning-bg);\n}\n\n.console-hero[data-tone="bad"] .console-hero__icon {\n color: var(--settings-danger);\n background: var(--settings-danger-bg);\n}\n\n.console-hero__title {\n font-size: 16px;\n font-weight: 600;\n line-height: 24px;\n}\n\n.console-hero__detail {\n margin-top: 2px;\n color: var(--settings-muted);\n font-size: 13px;\n line-height: 20px;\n white-space: pre-wrap;\n word-break: break-word;\n}\n\n.console-versions {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));\n gap: 12px;\n margin: 12px 0;\n}\n\n.console-version-card {\n min-width: 0;\n padding: 14px 16px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 12px;\n}\n\n.console-version-card dt {\n color: var(--settings-muted);\n font-size: 12px;\n line-height: 18px;\n}\n\n.console-version-card dd {\n margin: 6px 0 0;\n font-size: 14px;\n font-weight: 600;\n line-height: 22px;\n overflow-wrap: anywhere;\n}\n\n.console-lead {\n margin: 0;\n font-size: 13px;\n line-height: 20px;\n}\n\n.console-details summary {\n color: var(--settings-muted);\n font-size: 12px;\n cursor: pointer;\n}\n\n.console-details[open] summary {\n margin-bottom: 12px;\n}\n\n.console-details .console-facts {\n margin-bottom: 12px;\n}\n\n.console-section-title {\n margin: 28px 0 10px;\n font-size: 13px;\n font-weight: 600;\n}\n\n/* Startup timeline */\n\n.console-timeline {\n display: grid;\n gap: 0;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.console-timeline li {\n display: flex;\n align-items: center;\n gap: 10px;\n position: relative;\n min-height: 30px;\n padding-left: 22px;\n font-size: 13px;\n}\n\n.console-timeline li::before {\n content: "";\n position: absolute;\n top: 11px;\n left: 4px;\n width: 8px;\n height: 8px;\n background: var(--settings-success);\n border-radius: 50%;\n}\n\n.console-timeline li:not(:last-child)::after {\n content: "";\n position: absolute;\n top: 21px;\n bottom: -9px;\n left: 7.5px;\n width: 1px;\n background: var(--settings-divider);\n}\n\n.console-timeline li.is-stopped::before {\n background: var(--settings-danger);\n box-shadow: 0 0 0 3px var(--settings-danger-bg);\n}\n\n.console-timeline__time {\n color: var(--settings-subtle);\n font:\n 11px ui-monospace,\n "SFMono-Regular",\n Consolas,\n monospace;\n}\n\n/* Empty states */\n\n.console-empty {\n display: grid;\n justify-items: center;\n gap: 10px;\n padding: 56px 24px;\n text-align: center;\n background: var(--settings-panel);\n border: 1px dashed var(--settings-border);\n border-radius: 14px;\n}\n\n.console-empty__icon {\n display: grid;\n width: 48px;\n height: 48px;\n place-items: center;\n color: var(--settings-muted);\n background: var(--settings-surface);\n border-radius: 14px;\n}\n\n.console-empty__title {\n font-size: 15px;\n font-weight: 600;\n}\n\n.console-empty__body {\n max-width: 440px;\n margin: 0 0 6px;\n color: var(--settings-muted);\n font-size: 13px;\n line-height: 20px;\n}\n\n/* Offline Harness list */\n\n.console-harness-list {\n display: grid;\n gap: 8px;\n}\n\n.console-harness {\n display: grid;\n gap: 10px;\n padding: 14px 16px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 12px;\n}\n\n.console-harness__identity {\n display: flex;\n align-items: center;\n gap: 12px;\n min-width: 0;\n}\n\n.console-harness__icon {\n width: 28px;\n height: 28px;\n flex: none;\n object-fit: contain;\n border-radius: 8px;\n}\n\n.console-harness__icon.is-placeholder {\n background: var(--settings-surface);\n}\n\n.console-harness__name {\n font-size: 13px;\n font-weight: 600;\n}\n\n.console-harness__path {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.console-harness__path .console-input {\n flex: 1;\n}\n\n@media (max-width: 760px) {\n .console-app {\n grid-template-columns: 1fr;\n grid-template-rows: auto minmax(0, 1fr);\n }\n\n .console-sidebar {\n border-right: 0;\n border-bottom: 1px solid var(--settings-border);\n }\n\n .console-sidebar .settings-nav {\n flex-direction: row;\n overflow-x: auto;\n }\n\n .console-sidebar .settings-nav-section-label,\n .console-status-card {\n display: none;\n }\n\n .console-hero {\n grid-template-columns: 1fr;\n }\n\n .settings-page__content,\n .console-announcement,\n .console-offline {\n width: calc(100% - 32px);\n }\n}\n';
|
|
17746
|
+
var console_default = '/*\n * Standalone console layout. Colors and components come from the settings\n * design tokens (shell.css) so reused settings pages and console pages match.\n */\n\n:host {\n position: fixed;\n inset: 0;\n display: block;\n}\n\n.console-app {\n display: grid;\n grid-template-columns: 248px minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n background: var(--settings-bg);\n color: var(--settings-text);\n}\n\n.console-sidebar {\n padding-top: 0;\n}\n\n.console-sidebar .settings-nav {\n padding-top: 4px;\n}\n\n.console-brand {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 18px 16px 16px;\n}\n\n.console-brand__copy {\n display: flex;\n min-width: 0;\n flex-direction: column;\n line-height: 18px;\n}\n\n.console-brand__name {\n font-size: 14px;\n font-weight: 650;\n letter-spacing: -0.01em;\n}\n\n.console-brand__subtitle {\n color: var(--settings-muted);\n font-size: 12px;\n}\n\n.console-status-card {\n display: grid;\n gap: 4px;\n margin: 8px 10px 14px;\n padding: 11px 12px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 10px;\n}\n\n.console-status-card__row {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.console-status-card__title {\n font-size: 12px;\n font-weight: 600;\n}\n\n.console-status-card__meta {\n overflow: hidden;\n color: var(--settings-muted);\n font-size: 11px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.console-dot {\n width: 8px;\n height: 8px;\n flex: none;\n background: var(--settings-subtle);\n border-radius: 50%;\n}\n\n.console-dot.is-ok {\n background: var(--settings-success);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--settings-success) 18%, transparent);\n}\n\n.console-dot.is-warn {\n background: var(--settings-warning);\n}\n\n.console-dot.is-bad {\n background: var(--settings-danger);\n}\n\n.console-main {\n position: relative;\n}\n\n.console-announcement {\n display: flex;\n align-items: flex-start;\n gap: 12px;\n width: min(930px, calc(100% - 80px));\n margin: 28px auto 0;\n padding: 14px 16px;\n font-size: 13px;\n line-height: 20px;\n color: var(--settings-warning);\n background: var(--settings-warning-bg);\n border: 1px solid var(--settings-warning-border);\n border-radius: 12px;\n overflow-wrap: anywhere;\n}\n\n.console-announcement[data-type="info"] {\n color: var(--settings-focus);\n background: color-mix(in srgb, var(--settings-focus) 7%, var(--settings-bg));\n border-color: color-mix(in srgb, var(--settings-focus) 24%, var(--settings-bg));\n}\n\n.console-announcement[data-type="danger"] {\n color: var(--settings-danger);\n background: var(--settings-danger-bg);\n border-color: var(--settings-danger-border);\n}\n\n.console-announcement > svg {\n flex: none;\n margin-top: 2px;\n}\n\n.console-announcement[hidden] {\n display: none;\n}\n\n.console-announcement > div {\n min-width: 0;\n}\n\n.console-announcement .settings-update-notes {\n margin-top: 4px;\n color: inherit;\n font: inherit;\n}\n\n.console-announcement a {\n color: inherit;\n}\n\n.console-offline {\n display: flex;\n align-items: center;\n gap: 8px;\n margin: 16px auto 0;\n width: min(930px, calc(100% - 80px));\n padding: 10px 12px;\n color: var(--settings-danger);\n font-size: 12px;\n background: var(--settings-danger-bg);\n border: 1px solid var(--settings-danger-border);\n border-radius: 10px;\n}\n\n.console-offline[hidden] {\n display: none;\n}\n\n/* Overview */\n\n.console-hero {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 16px;\n padding: 20px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 14px;\n}\n\n.console-hero__icon {\n display: grid;\n width: 44px;\n height: 44px;\n place-items: center;\n color: var(--settings-muted);\n background: var(--settings-surface);\n border-radius: 12px;\n}\n\n.console-hero[data-tone="ok"] .console-hero__icon {\n color: var(--settings-success);\n background: color-mix(in srgb, var(--settings-success) 12%, transparent);\n}\n\n.console-hero[data-tone="warn"] .console-hero__icon {\n color: var(--settings-warning);\n background: var(--settings-warning-bg);\n}\n\n.console-hero[data-tone="bad"] .console-hero__icon {\n color: var(--settings-danger);\n background: var(--settings-danger-bg);\n}\n\n.console-hero__title {\n font-size: 16px;\n font-weight: 600;\n line-height: 24px;\n}\n\n.console-hero__detail {\n margin-top: 2px;\n color: var(--settings-muted);\n font-size: 13px;\n line-height: 20px;\n white-space: pre-wrap;\n word-break: break-word;\n}\n\n.console-web {\n display: grid;\n gap: 16px;\n margin-top: 12px;\n padding: 20px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 14px;\n}\n\n.console-web__buttons {\n display: flex;\n flex-wrap: wrap;\n gap: 12px;\n}\n\n.console-web__open,\n.console-web__remote {\n min-height: 44px;\n padding-inline: 24px;\n font-size: 15px;\n}\n\n.console-versions {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));\n gap: 12px;\n margin: 12px 0;\n}\n\n.console-version-card {\n min-width: 0;\n padding: 14px 16px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 12px;\n}\n\n.console-version-card dt {\n color: var(--settings-muted);\n font-size: 12px;\n line-height: 18px;\n}\n\n.console-version-card dd {\n margin: 6px 0 0;\n font-size: 14px;\n font-weight: 600;\n line-height: 22px;\n overflow-wrap: anywhere;\n}\n\n.console-lead {\n margin: 0;\n font-size: 13px;\n line-height: 20px;\n}\n\n.console-details summary {\n color: var(--settings-muted);\n font-size: 12px;\n cursor: pointer;\n}\n\n.console-details[open] summary {\n margin-bottom: 12px;\n}\n\n.console-details .console-facts {\n margin-bottom: 12px;\n}\n\n.console-section-title {\n margin: 28px 0 10px;\n font-size: 13px;\n font-weight: 600;\n}\n\n/* Startup timeline */\n\n.console-timeline {\n display: grid;\n gap: 0;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.console-timeline li {\n display: flex;\n align-items: center;\n gap: 10px;\n position: relative;\n min-height: 30px;\n padding-left: 22px;\n font-size: 13px;\n}\n\n.console-timeline li::before {\n content: "";\n position: absolute;\n top: 11px;\n left: 4px;\n width: 8px;\n height: 8px;\n background: var(--settings-success);\n border-radius: 50%;\n}\n\n.console-timeline li:not(:last-child)::after {\n content: "";\n position: absolute;\n top: 21px;\n bottom: -9px;\n left: 7.5px;\n width: 1px;\n background: var(--settings-divider);\n}\n\n.console-timeline li.is-stopped::before {\n background: var(--settings-danger);\n box-shadow: 0 0 0 3px var(--settings-danger-bg);\n}\n\n.console-timeline__time {\n color: var(--settings-subtle);\n font:\n 11px ui-monospace,\n "SFMono-Regular",\n Consolas,\n monospace;\n}\n\n/* Empty states */\n\n.console-empty {\n display: grid;\n justify-items: center;\n gap: 10px;\n padding: 56px 24px;\n text-align: center;\n background: var(--settings-panel);\n border: 1px dashed var(--settings-border);\n border-radius: 14px;\n}\n\n.console-empty__icon {\n display: grid;\n width: 48px;\n height: 48px;\n place-items: center;\n color: var(--settings-muted);\n background: var(--settings-surface);\n border-radius: 14px;\n}\n\n.console-empty__title {\n font-size: 15px;\n font-weight: 600;\n}\n\n.console-empty__body {\n max-width: 440px;\n margin: 0 0 6px;\n color: var(--settings-muted);\n font-size: 13px;\n line-height: 20px;\n}\n\n/* Offline Harness list */\n\n.console-harness-list {\n display: grid;\n gap: 8px;\n}\n\n.console-harness {\n display: grid;\n gap: 10px;\n padding: 14px 16px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 12px;\n}\n\n.console-harness__identity {\n display: flex;\n align-items: center;\n gap: 12px;\n min-width: 0;\n}\n\n.console-harness__icon {\n width: 28px;\n height: 28px;\n flex: none;\n object-fit: contain;\n border-radius: 8px;\n}\n\n.console-harness__icon.is-placeholder {\n background: var(--settings-surface);\n}\n\n.console-harness__name {\n font-size: 13px;\n font-weight: 600;\n}\n\n.console-harness__path {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.console-harness__path .console-input {\n flex: 1;\n}\n\n@media (max-width: 760px) {\n .console-app {\n grid-template-columns: 1fr;\n grid-template-rows: auto minmax(0, 1fr);\n }\n\n .console-sidebar {\n border-right: 0;\n border-bottom: 1px solid var(--settings-border);\n }\n\n .console-sidebar .settings-nav {\n flex-direction: row;\n overflow-x: auto;\n }\n\n .console-sidebar .settings-nav-section-label,\n .console-status-card {\n display: none;\n }\n\n .console-hero {\n grid-template-columns: 1fr;\n }\n\n .settings-page__content,\n .console-announcement,\n .console-offline {\n width: calc(100% - 32px);\n }\n}\n';
|
|
17700
17747
|
|
|
17701
17748
|
// src/console/components.css
|
|
17702
17749
|
var components_default = `/* Shared blocks */
|
|
@@ -19290,7 +19337,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
19290
19337
|
list.replaceChildren(
|
|
19291
19338
|
...harnesses.map((harness2) => {
|
|
19292
19339
|
const guide = harness2.links?.installation ?? harness2.links?.documentation;
|
|
19293
|
-
const
|
|
19340
|
+
const identity2 = h(
|
|
19294
19341
|
document2,
|
|
19295
19342
|
"div",
|
|
19296
19343
|
{ className: "console-harness__identity" },
|
|
@@ -19318,7 +19365,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
19318
19365
|
harness2.enabled ? messages.enabled : messages.disabled
|
|
19319
19366
|
)
|
|
19320
19367
|
);
|
|
19321
|
-
const row = h(document2, "div", { className: "console-harness" },
|
|
19368
|
+
const row = h(document2, "div", { className: "console-harness" }, identity2);
|
|
19322
19369
|
if (harness2.launchCommand) {
|
|
19323
19370
|
const input = h(document2, "input", {
|
|
19324
19371
|
type: "text",
|
|
@@ -19355,7 +19402,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
19355
19402
|
}
|
|
19356
19403
|
}
|
|
19357
19404
|
if (guide) {
|
|
19358
|
-
|
|
19405
|
+
identity2.append(
|
|
19359
19406
|
h(
|
|
19360
19407
|
document2,
|
|
19361
19408
|
"a",
|
|
@@ -19822,16 +19869,32 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
19822
19869
|
}
|
|
19823
19870
|
const chinese = locale.startsWith("zh");
|
|
19824
19871
|
const actionError = h(document2, "p", { role: "alert" });
|
|
19825
|
-
const
|
|
19826
|
-
|
|
19827
|
-
|
|
19872
|
+
const openWeb = (target2, connectDevices) => {
|
|
19873
|
+
target2.disabled = true;
|
|
19874
|
+
actionError.textContent = "";
|
|
19875
|
+
void consolePost("/api/web/open", { connectDevices }).catch((cause) => {
|
|
19828
19876
|
actionError.textContent = cause instanceof Error ? cause.message : String(cause);
|
|
19829
19877
|
}).finally(() => {
|
|
19830
|
-
|
|
19878
|
+
target2.disabled = false;
|
|
19831
19879
|
});
|
|
19832
|
-
}
|
|
19880
|
+
};
|
|
19881
|
+
const web = button(
|
|
19882
|
+
document2,
|
|
19883
|
+
chinese ? "\u6253\u5F00 Web" : "Open Web",
|
|
19884
|
+
() => openWeb(web, false),
|
|
19885
|
+
"primary"
|
|
19886
|
+
);
|
|
19887
|
+
const remote = button(
|
|
19888
|
+
document2,
|
|
19889
|
+
[
|
|
19890
|
+
createRendererSettingsIcon("mobile", 14),
|
|
19891
|
+
chinese ? "\u8FDC\u7A0B\u8BBF\u95EE\uFF08\u624B\u673A / \u5176\u4ED6\u7535\u8111\uFF09" : "Remote access (phone / other computers)"
|
|
19892
|
+
],
|
|
19893
|
+
() => openWeb(remote, true)
|
|
19894
|
+
);
|
|
19895
|
+
web.className += " console-web__open";
|
|
19896
|
+
remote.className += " console-web__remote";
|
|
19833
19897
|
actions.append(
|
|
19834
|
-
web,
|
|
19835
19898
|
button(document2, chinese ? "\u505C\u6B62" : "Stop", () => {
|
|
19836
19899
|
confirmAction(
|
|
19837
19900
|
context.content,
|
|
@@ -19899,6 +19962,24 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
19899
19962
|
),
|
|
19900
19963
|
actions
|
|
19901
19964
|
),
|
|
19965
|
+
h(
|
|
19966
|
+
document2,
|
|
19967
|
+
"section",
|
|
19968
|
+
{ className: "console-web" },
|
|
19969
|
+
h(
|
|
19970
|
+
document2,
|
|
19971
|
+
"div",
|
|
19972
|
+
{ className: "console-web__copy" },
|
|
19973
|
+
h(document2, "div", { className: "console-hero__title" }, "Web"),
|
|
19974
|
+
h(
|
|
19975
|
+
document2,
|
|
19976
|
+
"div",
|
|
19977
|
+
{ className: "console-hero__detail" },
|
|
19978
|
+
chinese ? "\u5728\u6D4F\u89C8\u5668\u91CC\u4F7F\u7528\u540C\u6837\u7684\u754C\u9762\uFF0C\u4E5F\u53EF\u4EE5\u7528\u624B\u673A\u6216\u5176\u4ED6\u7535\u8111\u8FDC\u7A0B\u8BBF\u95EE\u672C\u673A\u7684\u6240\u6709 Agent\u3002" : "Use the same interface in a browser, or reach every local Agent from a phone or another computer."
|
|
19979
|
+
)
|
|
19980
|
+
),
|
|
19981
|
+
h(document2, "div", { className: "console-web__buttons" }, web, remote)
|
|
19982
|
+
),
|
|
19902
19983
|
actionError,
|
|
19903
19984
|
versions,
|
|
19904
19985
|
...renderStartupDiagnostics(document2, messages, overview, locale),
|
|
@@ -20126,8 +20207,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20126
20207
|
}
|
|
20127
20208
|
async function verifyNativeCodexThread(sendRequest, threadId) {
|
|
20128
20209
|
const native = await sendRequest("thread/read", { threadId, includeTurns: false });
|
|
20129
|
-
const
|
|
20130
|
-
if (!isRecord(
|
|
20210
|
+
const thread2 = isRecord(native) ? native.thread : null;
|
|
20211
|
+
if (!isRecord(thread2) || thread2.id !== threadId || typeof thread2.modelProvider !== "string" || !thread2.modelProvider || thread2.modelProvider === "codexhost" || typeof thread2.cliVersion !== "string" || !thread2.cliVersion || thread2.cliVersion === "codexhost") {
|
|
20131
20212
|
throw new Error("Native Thread response cannot establish Codex ownership");
|
|
20132
20213
|
}
|
|
20133
20214
|
}
|
|
@@ -20395,7 +20476,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20395
20476
|
const params = threadOwnershipListParamsSchema.parse(input);
|
|
20396
20477
|
const value = await manager.sendRequest(THREAD_OWNERSHIP_LIST_METHOD, params);
|
|
20397
20478
|
const result = threadOwnershipListResultSchema.parse(value);
|
|
20398
|
-
if (result.threads.length !== params.threadIds.length || result.threads.some((
|
|
20479
|
+
if (result.threads.length !== params.threadIds.length || result.threads.some((thread2, index) => thread2.threadId !== params.threadIds[index])) {
|
|
20399
20480
|
throw new Error("Thread ownership-list result does not match the requested IDs");
|
|
20400
20481
|
}
|
|
20401
20482
|
return result;
|
|
@@ -21247,7 +21328,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21247
21328
|
return {
|
|
21248
21329
|
id: "connect-devices",
|
|
21249
21330
|
label: t("\u8FDE\u63A5\u8BBE\u5907", "Connect devices"),
|
|
21250
|
-
icon: "
|
|
21331
|
+
icon: "mobile",
|
|
21251
21332
|
mount({ content, signal }) {
|
|
21252
21333
|
const document2 = content.ownerDocument;
|
|
21253
21334
|
const body = h(document2, "section", { className: "console-panel console-connect" });
|
|
@@ -21292,13 +21373,13 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21292
21373
|
"\u6B63\u5728\u91CD\u542F Web\u2026 \u7B49\u5F85\u6062\u590D\u8FDE\u63A5\u3002",
|
|
21293
21374
|
"Restarting Web\u2026 waiting for reconnection."
|
|
21294
21375
|
);
|
|
21295
|
-
const
|
|
21376
|
+
const target2 = params.enabled;
|
|
21296
21377
|
const deadline = Date.now() + 6e4;
|
|
21297
21378
|
while (!signal.aborted) {
|
|
21298
21379
|
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
21299
21380
|
try {
|
|
21300
21381
|
await load();
|
|
21301
|
-
if (state?.background?.lan ===
|
|
21382
|
+
if (state?.background?.lan === target2) break;
|
|
21302
21383
|
} catch {
|
|
21303
21384
|
}
|
|
21304
21385
|
if (Date.now() >= deadline)
|
|
@@ -22961,7 +23042,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22961
23042
|
aboutConsoleFailed: "The console could not be opened",
|
|
22962
23043
|
pageLabels: Object.freeze({
|
|
22963
23044
|
connections: "Connections",
|
|
22964
|
-
"
|
|
23045
|
+
"mobile-web": "Phone & browser",
|
|
23046
|
+
"remote-connections": "Other computers (SSH)",
|
|
22965
23047
|
appearance: "General",
|
|
22966
23048
|
accounts: "Accounts",
|
|
22967
23049
|
"session-import": "Session Import",
|
|
@@ -23242,7 +23324,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
23242
23324
|
aboutConsoleFailed: "\u63A7\u5236\u53F0\u6253\u5F00\u5931\u8D25",
|
|
23243
23325
|
pageLabels: Object.freeze({
|
|
23244
23326
|
connections: "\u8FDE\u63A5",
|
|
23245
|
-
"
|
|
23327
|
+
"mobile-web": "\u624B\u673A\u4E0E\u6D4F\u89C8\u5668",
|
|
23328
|
+
"remote-connections": "\u5176\u4ED6\u7535\u8111\uFF08SSH\uFF09",
|
|
23246
23329
|
appearance: "\u901A\u7528",
|
|
23247
23330
|
accounts: "\u8D26\u53F7",
|
|
23248
23331
|
"session-import": "\u4F1A\u8BDD\u5BFC\u5165",
|
|
@@ -23403,20 +23486,20 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
23403
23486
|
unmeteredRequests: 0
|
|
23404
23487
|
};
|
|
23405
23488
|
}
|
|
23406
|
-
function addTotals(
|
|
23407
|
-
|
|
23408
|
-
|
|
23409
|
-
|
|
23410
|
-
|
|
23411
|
-
|
|
23412
|
-
|
|
23413
|
-
|
|
23414
|
-
|
|
23415
|
-
|
|
23416
|
-
|
|
23417
|
-
|
|
23418
|
-
|
|
23419
|
-
return
|
|
23489
|
+
function addTotals(target2, source) {
|
|
23490
|
+
target2.requests += source.requests;
|
|
23491
|
+
target2.inputTokens += source.inputTokens;
|
|
23492
|
+
target2.cachedInputTokens += source.cachedInputTokens;
|
|
23493
|
+
target2.cacheWriteInputTokens += source.cacheWriteInputTokens;
|
|
23494
|
+
target2.cacheKnownInputTokens += source.cacheKnownInputTokens;
|
|
23495
|
+
target2.cacheHitCachedInputTokens += source.cacheHitCachedInputTokens;
|
|
23496
|
+
target2.cacheHitInputTokens += source.cacheHitInputTokens;
|
|
23497
|
+
target2.outputTokens += source.outputTokens;
|
|
23498
|
+
target2.reasoningOutputTokens += source.reasoningOutputTokens;
|
|
23499
|
+
target2.costUsd += source.costUsd;
|
|
23500
|
+
target2.unpricedRequests += source.unpricedRequests;
|
|
23501
|
+
target2.unmeteredRequests += source.unmeteredRequests;
|
|
23502
|
+
return target2;
|
|
23420
23503
|
}
|
|
23421
23504
|
function inputWithoutCache(totals2) {
|
|
23422
23505
|
return totals2.inputTokens - totals2.cachedInputTokens - totals2.cacheWriteInputTokens;
|
|
@@ -26014,7 +26097,7 @@ ${detail}` : ""}`
|
|
|
26014
26097
|
card.setAttribute("aria-label", connection.displayName);
|
|
26015
26098
|
card.setAttribute("aria-busy", String(locked));
|
|
26016
26099
|
const head = remoteElement(document2, "div", "settings-remote-card__head");
|
|
26017
|
-
const
|
|
26100
|
+
const identity2 = remoteElement(document2, "div", "settings-remote-card__identity");
|
|
26018
26101
|
const titleLine = remoteElement(document2, "div", "settings-remote-card__title");
|
|
26019
26102
|
const [tone, stateLabel] = connectionState(row, t);
|
|
26020
26103
|
const state = remoteElement(document2, "span", "settings-remote-card__state", stateLabel);
|
|
@@ -26027,7 +26110,7 @@ ${detail}` : ""}`
|
|
|
26027
26110
|
addressLine.append(
|
|
26028
26111
|
remoteElement(document2, "span", "settings-status-badge", t("SSH \u914D\u7F6E", "SSH config"))
|
|
26029
26112
|
);
|
|
26030
|
-
|
|
26113
|
+
identity2.append(titleLine, addressLine);
|
|
26031
26114
|
const headActions = remoteElement(document2, "div", "settings-remote-card__actions");
|
|
26032
26115
|
if (row.installation !== "not-installed" && !row.probing) {
|
|
26033
26116
|
if (row.state === "error" && connection.autoConnect)
|
|
@@ -26050,7 +26133,7 @@ ${detail}` : ""}`
|
|
|
26050
26133
|
remove.append(createRendererSettingsIcon("trash", 15));
|
|
26051
26134
|
remove.addEventListener("click", () => onAction("remove"));
|
|
26052
26135
|
headActions.append(remove);
|
|
26053
|
-
head.append(
|
|
26136
|
+
head.append(identity2, headActions);
|
|
26054
26137
|
card.append(head);
|
|
26055
26138
|
if (row.stateError) {
|
|
26056
26139
|
const detail = remoteElement(
|
|
@@ -26102,15 +26185,15 @@ ${detail}` : ""}`
|
|
|
26102
26185
|
}
|
|
26103
26186
|
if (!remote) serviceActions.append(command("recheck", t("\u91CD\u65B0\u68C0\u6D4B", "Check again")));
|
|
26104
26187
|
}
|
|
26105
|
-
const
|
|
26188
|
+
const target2 = remote ? remoteMaintenanceTarget(local, remote) : null;
|
|
26106
26189
|
if (row.installation === "not-installed") {
|
|
26107
26190
|
const install = command("install", t("\u5B89\u88C5\u5E76\u8FDE\u63A5", "Install and connect"), true);
|
|
26108
26191
|
install.disabled ||= !remoteInstallVersion(local);
|
|
26109
26192
|
serviceActions.append(install);
|
|
26110
|
-
} else if (remote &&
|
|
26193
|
+
} else if (remote && target2 && !remoteBusy(remote)) {
|
|
26111
26194
|
const update = command(
|
|
26112
26195
|
"update",
|
|
26113
|
-
|
|
26196
|
+
target2 === remote.installedVersion ? t("\u91CD\u542F\u5E76\u8FDE\u63A5", "Restart and connect") : t("\u66F4\u65B0\u5230\u672C\u673A\u7248\u672C", "Match local version"),
|
|
26114
26197
|
true
|
|
26115
26198
|
);
|
|
26116
26199
|
serviceActions.append(update);
|
|
@@ -26344,13 +26427,13 @@ ${detail}` : ""}`
|
|
|
26344
26427
|
port.min = "1";
|
|
26345
26428
|
port.max = "65535";
|
|
26346
26429
|
port.step = "1";
|
|
26347
|
-
const
|
|
26430
|
+
const identity2 = field2(
|
|
26348
26431
|
t("\u79C1\u94A5\u8DEF\u5F84\uFF08\u53EF\u9009\uFF09", "Identity file (optional)"),
|
|
26349
26432
|
previous?.identity ?? "",
|
|
26350
26433
|
"~/.ssh/id_ed25519"
|
|
26351
26434
|
);
|
|
26352
26435
|
if (previous?.source === "discovered") {
|
|
26353
|
-
hostname3.disabled = port.disabled =
|
|
26436
|
+
hostname3.disabled = port.disabled = identity2.disabled = true;
|
|
26354
26437
|
dialog.body.append(
|
|
26355
26438
|
remoteElement(
|
|
26356
26439
|
document2,
|
|
@@ -26370,7 +26453,7 @@ ${detail}` : ""}`
|
|
|
26370
26453
|
displayName: name.value,
|
|
26371
26454
|
hostname: hostname3.value,
|
|
26372
26455
|
sshPort: port.value ? Number(port.value) : null,
|
|
26373
|
-
identity:
|
|
26456
|
+
identity: identity2.value.trim() || null
|
|
26374
26457
|
})
|
|
26375
26458
|
);
|
|
26376
26459
|
});
|
|
@@ -26465,7 +26548,7 @@ ${detail}` : ""}`
|
|
|
26465
26548
|
var INSPECT_RETRY_MS = 6e4;
|
|
26466
26549
|
var RESTART_GRACE_MS = 9e4;
|
|
26467
26550
|
var CONNECT_REQUEST_WAIT_MS = 3e3;
|
|
26468
|
-
function createRemoteConnectionsPage(messages, getControl
|
|
26551
|
+
function createRemoteConnectionsPage(messages, getControl) {
|
|
26469
26552
|
const zh = messages.locale === "zh-CN";
|
|
26470
26553
|
const t = (cn, en) => zh ? cn : en;
|
|
26471
26554
|
return Object.freeze({
|
|
@@ -26484,72 +26567,17 @@ ${detail}` : ""}`
|
|
|
26484
26567
|
return panel;
|
|
26485
26568
|
};
|
|
26486
26569
|
const root = el("div", "settings-remote");
|
|
26487
|
-
const openWeb = getOpenWeb();
|
|
26488
|
-
if (openWeb) {
|
|
26489
|
-
root.append(el("h1", "settings-section-label", messages.pageLabels["remote-connections"]));
|
|
26490
|
-
const web = el("section", "settings-remote");
|
|
26491
|
-
const webHeader = el("div", "settings-remote__header");
|
|
26492
|
-
const webCopy = el("div");
|
|
26493
|
-
webCopy.append(
|
|
26494
|
-
el(
|
|
26495
|
-
"h2",
|
|
26496
|
-
"settings-section-label",
|
|
26497
|
-
t("\u624B\u673A\u548C\u5176\u4ED6\u8BBE\u5907\uFF08Web\uFF09", "Phones and other devices (Web)")
|
|
26498
|
-
),
|
|
26499
|
-
el(
|
|
26500
|
-
"p",
|
|
26501
|
-
"settings-page-description",
|
|
26502
|
-
t(
|
|
26503
|
-
"\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",
|
|
26504
|
-
"Use this computer's CodexHost from a browser on your phone or another device. This computer must stay on and connected to the network."
|
|
26505
|
-
)
|
|
26506
|
-
)
|
|
26507
|
-
);
|
|
26508
|
-
webHeader.append(webCopy);
|
|
26509
|
-
const actions = el("div", "settings-remote__toolbar");
|
|
26510
|
-
const button2 = el(
|
|
26511
|
-
"button",
|
|
26512
|
-
"settings-command-button settings-command-button--secondary",
|
|
26513
|
-
t("\u6253\u5F00\u8FDE\u63A5\u8BBE\u5907\u9875", "Open Connect devices")
|
|
26514
|
-
);
|
|
26515
|
-
button2.type = "button";
|
|
26516
|
-
const status = el("div", "settings-remote__banner");
|
|
26517
|
-
status.setAttribute("role", "alert");
|
|
26518
|
-
status.hidden = true;
|
|
26519
|
-
button2.addEventListener("click", () => {
|
|
26520
|
-
button2.disabled = true;
|
|
26521
|
-
button2.textContent = t("\u6B63\u5728\u6253\u5F00\u2026", "Opening\u2026");
|
|
26522
|
-
status.hidden = true;
|
|
26523
|
-
void openWeb().catch((error51) => {
|
|
26524
|
-
status.textContent = `${t("Web \u6253\u5F00\u5931\u8D25", "Web could not be opened")}: ${remoteErrorMessage(error51)}`;
|
|
26525
|
-
status.hidden = false;
|
|
26526
|
-
}).finally(() => {
|
|
26527
|
-
button2.disabled = false;
|
|
26528
|
-
button2.textContent = t("\u6253\u5F00\u8FDE\u63A5\u8BBE\u5907\u9875", "Open Connect devices");
|
|
26529
|
-
});
|
|
26530
|
-
});
|
|
26531
|
-
actions.append(button2);
|
|
26532
|
-
web.append(webHeader, actions, status);
|
|
26533
|
-
root.append(web);
|
|
26534
|
-
}
|
|
26535
26570
|
const header = el("div", "settings-remote__header");
|
|
26536
26571
|
const headerCopy = el("div");
|
|
26537
26572
|
const localVersion = el("p", "settings-remote__meta");
|
|
26538
26573
|
headerCopy.append(
|
|
26539
|
-
el(
|
|
26540
|
-
openWeb ? "h2" : "h1",
|
|
26541
|
-
"settings-section-label",
|
|
26542
|
-
openWeb ? t("\u5176\u4ED6\u7535\u8111\uFF08SSH\uFF09", "Other computers (SSH)") : messages.pageLabels["remote-connections"]
|
|
26543
|
-
),
|
|
26574
|
+
el("h1", "settings-section-label", messages.pageLabels["remote-connections"]),
|
|
26544
26575
|
el(
|
|
26545
26576
|
"p",
|
|
26546
26577
|
"settings-page-description",
|
|
26547
|
-
|
|
26578
|
+
t(
|
|
26548
26579
|
"\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",
|
|
26549
26580
|
"This computer connects to another Mac or Linux computer over SSH. Connection settings are shared with Codex."
|
|
26550
|
-
) : t(
|
|
26551
|
-
"\u901A\u8FC7 SSH \u8FDE\u63A5\u4F60\u7684 Mac \u6216 Linux \u7535\u8111\u3002\u8FDE\u63A5\u914D\u7F6E\u4E0E Codex \u5171\u7528\u3002",
|
|
26552
|
-
"Connect to a Mac or Linux computer over SSH. Connection settings are shared with Codex."
|
|
26553
26581
|
)
|
|
26554
26582
|
),
|
|
26555
26583
|
localVersion
|
|
@@ -26691,8 +26719,8 @@ ${detail}` : ""}`
|
|
|
26691
26719
|
});
|
|
26692
26720
|
}
|
|
26693
26721
|
function focusAction(card, action) {
|
|
26694
|
-
const
|
|
26695
|
-
|
|
26722
|
+
const target2 = card.querySelector(`[data-action="${action}"]:not(:disabled)`) ?? card.querySelector("button:not(:disabled)");
|
|
26723
|
+
target2?.focus();
|
|
26696
26724
|
}
|
|
26697
26725
|
async function probe(row) {
|
|
26698
26726
|
const { hostId: hostId2 } = row.connection;
|
|
@@ -26973,15 +27001,15 @@ ${detail}` : ""}`
|
|
|
26973
27001
|
});
|
|
26974
27002
|
break;
|
|
26975
27003
|
case "update": {
|
|
26976
|
-
const
|
|
26977
|
-
if (!
|
|
26978
|
-
const restart =
|
|
27004
|
+
const target2 = row.remote ? remoteMaintenanceTarget(local, row.remote) : null;
|
|
27005
|
+
if (!target2) break;
|
|
27006
|
+
const restart = target2 === row.remote?.installedVersion;
|
|
26979
27007
|
void act(
|
|
26980
27008
|
row,
|
|
26981
27009
|
action,
|
|
26982
27010
|
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"),
|
|
26983
27011
|
async () => {
|
|
26984
|
-
await control.update(hostId2,
|
|
27012
|
+
await control.update(hostId2, target2);
|
|
26985
27013
|
await setConnected(true);
|
|
26986
27014
|
}
|
|
26987
27015
|
);
|
|
@@ -27020,6 +27048,64 @@ ${detail}` : ""}`
|
|
|
27020
27048
|
});
|
|
27021
27049
|
}
|
|
27022
27050
|
|
|
27051
|
+
// src/settings/mobile-web-page.ts
|
|
27052
|
+
function createMobileWebPage(messages, getOpenWeb) {
|
|
27053
|
+
const zh = messages.locale === "zh-CN";
|
|
27054
|
+
const t = (cn, en) => zh ? cn : en;
|
|
27055
|
+
return Object.freeze({
|
|
27056
|
+
id: "mobile-web",
|
|
27057
|
+
label: messages.pageLabels["mobile-web"],
|
|
27058
|
+
icon: "mobile",
|
|
27059
|
+
mount({ content }) {
|
|
27060
|
+
const document2 = content.ownerDocument;
|
|
27061
|
+
const el = (tag, className = "", text = "") => remoteElement(document2, tag, className, text);
|
|
27062
|
+
const root = el("div", "settings-remote");
|
|
27063
|
+
const header = el("div", "settings-remote__header");
|
|
27064
|
+
const copy = el("div");
|
|
27065
|
+
copy.append(
|
|
27066
|
+
el("h1", "settings-section-label", messages.pageLabels["mobile-web"]),
|
|
27067
|
+
el(
|
|
27068
|
+
"p",
|
|
27069
|
+
"settings-page-description",
|
|
27070
|
+
t(
|
|
27071
|
+
"\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",
|
|
27072
|
+
"Use this computer's CodexHost from a browser on your phone or another device. This computer must stay on and connected to the network."
|
|
27073
|
+
)
|
|
27074
|
+
)
|
|
27075
|
+
);
|
|
27076
|
+
header.append(copy);
|
|
27077
|
+
const label = t("\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u8FDE\u63A5\u8BBE\u7F6E", "Open connection settings in browser");
|
|
27078
|
+
const button2 = el("button", "settings-command-button", "");
|
|
27079
|
+
button2.type = "button";
|
|
27080
|
+
button2.textContent = label;
|
|
27081
|
+
const status = el("div", "settings-remote__banner");
|
|
27082
|
+
status.setAttribute("role", "alert");
|
|
27083
|
+
status.hidden = true;
|
|
27084
|
+
const openWeb = getOpenWeb();
|
|
27085
|
+
if (!openWeb) {
|
|
27086
|
+
button2.disabled = true;
|
|
27087
|
+
status.textContent = t("\u6B64\u7A97\u53E3\u65E0\u6CD5\u6253\u5F00 Web\u3002", "Web cannot be opened from this window.");
|
|
27088
|
+
status.hidden = false;
|
|
27089
|
+
}
|
|
27090
|
+
button2.addEventListener("click", () => {
|
|
27091
|
+
if (!openWeb) return;
|
|
27092
|
+
button2.disabled = true;
|
|
27093
|
+
status.hidden = true;
|
|
27094
|
+
void openWeb().catch((error51) => {
|
|
27095
|
+
status.textContent = `${t("Web \u6253\u5F00\u5931\u8D25", "Web could not be opened")}: ${remoteErrorMessage(error51)}`;
|
|
27096
|
+
status.hidden = false;
|
|
27097
|
+
}).finally(() => {
|
|
27098
|
+
button2.disabled = false;
|
|
27099
|
+
});
|
|
27100
|
+
});
|
|
27101
|
+
const actions = el("div", "settings-remote__toolbar");
|
|
27102
|
+
actions.append(button2);
|
|
27103
|
+
root.append(header, actions, status);
|
|
27104
|
+
content.append(root);
|
|
27105
|
+
}
|
|
27106
|
+
});
|
|
27107
|
+
}
|
|
27108
|
+
|
|
27023
27109
|
// src/assets/codex-agent.png
|
|
27024
27110
|
var codex_agent_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAYAAAAdHLWhAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAJnFJREFUeAHtfQuYFdWV7tpVdc7pprvpppvuhm4ejQ9AQQFFUEEUfAUVH4k448TRuT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sAzLsAzLsAzLsHwl5f8DGzhXq3EeY8wAAAAASUVORK5CYII=";
|
|
27025
27111
|
|
|
@@ -27661,20 +27747,20 @@ ${error51.stderrTail}`] : []
|
|
|
27661
27747
|
row.dataset.connectionSelected = String(selected);
|
|
27662
27748
|
row.tabIndex = selected ? 0 : -1;
|
|
27663
27749
|
row.setAttribute("role", "row");
|
|
27664
|
-
const
|
|
27665
|
-
|
|
27666
|
-
|
|
27750
|
+
const identity2 = document2.createElement("div");
|
|
27751
|
+
identity2.className = "settings-connection-row__identity";
|
|
27752
|
+
identity2.setAttribute("role", "cell");
|
|
27667
27753
|
if (group) {
|
|
27668
27754
|
const handle = document2.createElement("span");
|
|
27669
27755
|
handle.className = "settings-connection-row__handle";
|
|
27670
27756
|
handle.setAttribute("aria-hidden", "true");
|
|
27671
27757
|
handle.title = group.dragHandleTitle;
|
|
27672
27758
|
handle.append(createRendererSettingsIcon("grip-vertical", 15));
|
|
27673
|
-
|
|
27759
|
+
identity2.append(handle);
|
|
27674
27760
|
}
|
|
27675
27761
|
const label = document2.createElement("strong");
|
|
27676
27762
|
label.textContent = item.name;
|
|
27677
|
-
|
|
27763
|
+
identity2.append(createConnectionIdentityIcon(document2, item, 19), label);
|
|
27678
27764
|
const status = document2.createElement("span");
|
|
27679
27765
|
status.className = "settings-connection-row__status";
|
|
27680
27766
|
status.dataset.connectionTone = connectionStatusTone(item.availability, item.error !== null);
|
|
@@ -27752,8 +27838,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27752
27838
|
action.append(toggle);
|
|
27753
27839
|
}
|
|
27754
27840
|
row.addEventListener("click", (event) => {
|
|
27755
|
-
const
|
|
27756
|
-
if (
|
|
27841
|
+
const target2 = event.target;
|
|
27842
|
+
if (target2?.closest?.("a")) return;
|
|
27757
27843
|
select();
|
|
27758
27844
|
});
|
|
27759
27845
|
row.addEventListener("keydown", (event) => {
|
|
@@ -27771,17 +27857,17 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27771
27857
|
row.addEventListener("drop", group.onDrop);
|
|
27772
27858
|
row.addEventListener("dragend", group.onDragEnd);
|
|
27773
27859
|
}
|
|
27774
|
-
row.append(
|
|
27860
|
+
row.append(identity2, status, action);
|
|
27775
27861
|
return row;
|
|
27776
27862
|
}
|
|
27777
27863
|
function createInspectorHeader(document2, item, messages) {
|
|
27778
27864
|
const header = document2.createElement("header");
|
|
27779
27865
|
header.className = "settings-connection-inspector__header";
|
|
27780
|
-
const
|
|
27781
|
-
|
|
27866
|
+
const identity2 = document2.createElement("div");
|
|
27867
|
+
identity2.className = "settings-connection-inspector__identity";
|
|
27782
27868
|
const title = document2.createElement("strong");
|
|
27783
27869
|
title.textContent = item.name;
|
|
27784
|
-
|
|
27870
|
+
identity2.append(createConnectionIdentityIcon(document2, item, 20), title);
|
|
27785
27871
|
const websiteUrl = item.agentSnapshot?.plugin?.links?.website ?? item.agentSnapshot?.plugin?.links?.documentation;
|
|
27786
27872
|
if (websiteUrl) {
|
|
27787
27873
|
const website = document2.createElement("a");
|
|
@@ -27793,13 +27879,13 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27793
27879
|
website.setAttribute("aria-label", `${messages.connectionOfficialWebsite}: ${item.name}`);
|
|
27794
27880
|
website.append(createRendererSettingsIcon("external-link", 13));
|
|
27795
27881
|
website.addEventListener("click", (event) => event.stopPropagation());
|
|
27796
|
-
|
|
27882
|
+
identity2.append(website);
|
|
27797
27883
|
}
|
|
27798
27884
|
const status = document2.createElement("span");
|
|
27799
27885
|
status.className = "settings-connection-row__status";
|
|
27800
27886
|
status.dataset.connectionTone = connectionStatusTone(item.availability, item.error !== null);
|
|
27801
27887
|
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);
|
|
27802
|
-
header.append(
|
|
27888
|
+
header.append(identity2, status);
|
|
27803
27889
|
return header;
|
|
27804
27890
|
}
|
|
27805
27891
|
function renderConnectionInspector(document2, inspector, item, hostId2, messages, diagnostics, existingLaunchControls, refresh) {
|
|
@@ -28986,15 +29072,15 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28986
29072
|
cwd.className = "settings-session-import-row__cwd";
|
|
28987
29073
|
cwd.textContent = candidate.cwd;
|
|
28988
29074
|
cwd.title = candidate.cwd;
|
|
28989
|
-
const
|
|
28990
|
-
|
|
28991
|
-
|
|
28992
|
-
|
|
29075
|
+
const identity2 = document2.createElement("span");
|
|
29076
|
+
identity2.textContent = `${messages.sessionImportSessionId}: ${shortSessionId(candidate.nativeSessionId)}`;
|
|
29077
|
+
identity2.title = candidate.nativeSessionId;
|
|
29078
|
+
identity2.setAttribute("aria-hidden", "true");
|
|
28993
29079
|
copy.append(
|
|
28994
29080
|
title,
|
|
28995
29081
|
metadata,
|
|
28996
29082
|
cwd,
|
|
28997
|
-
|
|
29083
|
+
identity2,
|
|
28998
29084
|
createAccessibleText(
|
|
28999
29085
|
document2,
|
|
29000
29086
|
`${messages.sessionImportSessionId}: ${candidate.nativeSessionId}`
|
|
@@ -29551,12 +29637,12 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
29551
29637
|
let hideEmails = false;
|
|
29552
29638
|
const shown = (text) => accountDisplayText(text, hideEmails);
|
|
29553
29639
|
const targetButtons = /* @__PURE__ */ new Map();
|
|
29554
|
-
const importedRecords = () => snapshot.targets.find((
|
|
29640
|
+
const importedRecords = () => snapshot.targets.find((target2) => target2.harnessId === TARGET_HARNESS_ID)?.imports ?? [];
|
|
29555
29641
|
const sourceOf = (record3) => snapshot.sources.find((source) => source.id === record3.source.id);
|
|
29556
29642
|
const piTarget = () => snapshot.targets.find((candidate) => candidate.harnessId === TARGET_HARNESS_ID);
|
|
29557
29643
|
const compatibleSources = () => {
|
|
29558
|
-
const
|
|
29559
|
-
return
|
|
29644
|
+
const target2 = piTarget();
|
|
29645
|
+
return target2 ? snapshot.sources.filter((source) => target2.providers.includes(source.provider)) : [];
|
|
29560
29646
|
};
|
|
29561
29647
|
const section = document2.createElement("section");
|
|
29562
29648
|
section.className = "settings-pi-accounts";
|
|
@@ -29648,8 +29734,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
29648
29734
|
row.setAttribute("aria-label", shown(record3.source.label));
|
|
29649
29735
|
const agent = record3.source.harnessId;
|
|
29650
29736
|
const mark = createMark(agent);
|
|
29651
|
-
const
|
|
29652
|
-
|
|
29737
|
+
const identity2 = document2.createElement("div");
|
|
29738
|
+
identity2.className = "settings-pi-accounts__identity";
|
|
29653
29739
|
const label = document2.createElement("strong");
|
|
29654
29740
|
label.className = "settings-account-email";
|
|
29655
29741
|
label.textContent = shown(record3.source.label);
|
|
@@ -29673,7 +29759,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
29673
29759
|
}
|
|
29674
29760
|
meta3.append(part);
|
|
29675
29761
|
});
|
|
29676
|
-
|
|
29762
|
+
identity2.append(label, meta3);
|
|
29677
29763
|
const actions = document2.createElement("div");
|
|
29678
29764
|
actions.className = "settings-pi-accounts__actions";
|
|
29679
29765
|
const reimport = document2.createElement("button");
|
|
@@ -29695,7 +29781,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
29695
29781
|
remove.addEventListener("click", () => openDialog("remove", { record: record3 }, `row:${record3.name}`));
|
|
29696
29782
|
if (source) actions.append(reimport);
|
|
29697
29783
|
actions.append(remove);
|
|
29698
|
-
row.append(mark,
|
|
29784
|
+
row.append(mark, identity2, actions);
|
|
29699
29785
|
rows.set(record3.name, row);
|
|
29700
29786
|
return row;
|
|
29701
29787
|
};
|
|
@@ -29709,8 +29795,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
29709
29795
|
[shown(login.label ?? login.provider), agent && rendererAgentLabel(agent, pluginFor(agent))].filter(Boolean).join(" \xB7 ")
|
|
29710
29796
|
);
|
|
29711
29797
|
const mark = createMark(agent);
|
|
29712
|
-
const
|
|
29713
|
-
|
|
29798
|
+
const identity2 = document2.createElement("div");
|
|
29799
|
+
identity2.className = "settings-pi-accounts__identity";
|
|
29714
29800
|
const title = document2.createElement("strong");
|
|
29715
29801
|
title.className = "settings-account-email";
|
|
29716
29802
|
title.textContent = shown(login.label ?? login.provider);
|
|
@@ -29729,15 +29815,15 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
29729
29815
|
}
|
|
29730
29816
|
meta3.append(part);
|
|
29731
29817
|
});
|
|
29732
|
-
|
|
29733
|
-
row.append(mark,
|
|
29818
|
+
identity2.append(title, meta3);
|
|
29819
|
+
row.append(mark, identity2);
|
|
29734
29820
|
return row;
|
|
29735
29821
|
};
|
|
29736
29822
|
const renderSection = () => {
|
|
29737
|
-
const
|
|
29738
|
-
section.hidden = !
|
|
29823
|
+
const target2 = piTarget();
|
|
29824
|
+
section.hidden = !target2;
|
|
29739
29825
|
const records = importedRecords();
|
|
29740
|
-
const others =
|
|
29826
|
+
const others = target2?.others ?? [];
|
|
29741
29827
|
sectionCount.textContent = String(records.length + others.length);
|
|
29742
29828
|
card.hidden = !sectionExpanded;
|
|
29743
29829
|
sectionImport.hidden = compatibleSources().length === 0;
|
|
@@ -29994,8 +30080,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
29994
30080
|
modal.addEventListener("close", () => {
|
|
29995
30081
|
modal.remove();
|
|
29996
30082
|
dialog = void 0;
|
|
29997
|
-
const
|
|
29998
|
-
(
|
|
30083
|
+
const target2 = returnKey ? returnKey === SECTION_IMPORT_KEY ? sectionImport : targetButtons.get(returnKey) ?? rows.get(returnKey.replace(/^row:/, "")) : void 0;
|
|
30084
|
+
(target2?.isConnected ? target2 : section).focus();
|
|
29999
30085
|
});
|
|
30000
30086
|
show(initialMode);
|
|
30001
30087
|
root.append(modal);
|
|
@@ -30023,11 +30109,11 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
30023
30109
|
const source = snapshot.sources.find(
|
|
30024
30110
|
(candidate) => candidate.harnessId === harnessId && candidate.label === accountLabel
|
|
30025
30111
|
);
|
|
30026
|
-
const
|
|
30112
|
+
const target2 = snapshot.targets.find(
|
|
30027
30113
|
(candidate) => candidate.harnessId === TARGET_HARNESS_ID && source && candidate.providers.includes(source.provider)
|
|
30028
30114
|
);
|
|
30029
|
-
if (!source || !
|
|
30030
|
-
const record3 =
|
|
30115
|
+
if (!source || !target2) return null;
|
|
30116
|
+
const record3 = target2.imports.find((candidate) => candidate.source.id === source.id);
|
|
30031
30117
|
const key = `${harnessId}:${accountLabel}:import`;
|
|
30032
30118
|
const button2 = document2.createElement("button");
|
|
30033
30119
|
button2.type = "button";
|
|
@@ -30474,11 +30560,11 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
30474
30560
|
const key = active.getAttribute("data-account-focus");
|
|
30475
30561
|
const accountId = active.closest(".settings-account-row")?.dataset.accountId;
|
|
30476
30562
|
return () => {
|
|
30477
|
-
const
|
|
30478
|
-
if (
|
|
30479
|
-
const dialog =
|
|
30563
|
+
const target2 = key ? list.querySelector(`[data-account-focus="${CSS.escape(key)}"]`) : null;
|
|
30564
|
+
if (target2 && !target2.matches(":disabled")) {
|
|
30565
|
+
const dialog = target2.closest("dialog");
|
|
30480
30566
|
if (dialog && !dialog.open) dialog.showModal();
|
|
30481
|
-
|
|
30567
|
+
target2.focus({ preventScroll: true });
|
|
30482
30568
|
return;
|
|
30483
30569
|
}
|
|
30484
30570
|
const row = accountId ? list.querySelector(
|
|
@@ -30521,8 +30607,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
30521
30607
|
function createAccountPerson(document2, messages, input) {
|
|
30522
30608
|
const person = document2.createElement("div");
|
|
30523
30609
|
person.className = "settings-account-row__person";
|
|
30524
|
-
const
|
|
30525
|
-
|
|
30610
|
+
const identity2 = document2.createElement("div");
|
|
30611
|
+
identity2.className = "settings-account-row__identity";
|
|
30526
30612
|
const title = document2.createElement("strong");
|
|
30527
30613
|
title.className = "settings-account-email";
|
|
30528
30614
|
title.textContent = input.name;
|
|
@@ -30554,9 +30640,9 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
30554
30640
|
badge.title = messages.accountDefaultHint;
|
|
30555
30641
|
metadata.append(badge);
|
|
30556
30642
|
}
|
|
30557
|
-
|
|
30558
|
-
if (metadata.childElementCount)
|
|
30559
|
-
person.append(input.mark,
|
|
30643
|
+
identity2.append(title);
|
|
30644
|
+
if (metadata.childElementCount) identity2.append(metadata);
|
|
30645
|
+
person.append(input.mark, identity2);
|
|
30560
30646
|
return person;
|
|
30561
30647
|
}
|
|
30562
30648
|
function appendAccountExtras(cell, items) {
|
|
@@ -31263,14 +31349,14 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
31263
31349
|
function isWindowsRenderer(window2) {
|
|
31264
31350
|
const navigator2 = window2?.navigator;
|
|
31265
31351
|
if (!navigator2) return false;
|
|
31266
|
-
const
|
|
31267
|
-
return /windows|win32|win64/iu.test(
|
|
31352
|
+
const identity2 = `${rendererUserAgentData(navigator2)?.platform ?? ""} ${navigator2.platform ?? ""} ${navigator2.userAgent}`;
|
|
31353
|
+
return /windows|win32|win64/iu.test(identity2);
|
|
31268
31354
|
}
|
|
31269
31355
|
function windowsInstallerDownloadUrl(window2, version2) {
|
|
31270
31356
|
const navigator2 = window2?.navigator;
|
|
31271
31357
|
const hints = navigator2 ? rendererUserAgentData(navigator2) : void 0;
|
|
31272
|
-
const
|
|
31273
|
-
const architecture = /arm64|aarch64|\barm\b/iu.test(
|
|
31358
|
+
const identity2 = `${hints?.architecture ?? ""} ${hints?.platform ?? ""} ${navigator2?.platform ?? ""} ${navigator2?.userAgent ?? ""}`;
|
|
31359
|
+
const architecture = /arm64|aarch64|\barm\b/iu.test(identity2) ? "arm64" : "x64";
|
|
31274
31360
|
return `https://github.com/BytePioneer-AI/codex-host/releases/download/v${version2}/codexhost-${version2}-windows-${architecture}.exe`;
|
|
31275
31361
|
}
|
|
31276
31362
|
function panelIconName(view) {
|
|
@@ -31754,10 +31840,11 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
31754
31840
|
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) {
|
|
31755
31841
|
return Object.freeze([
|
|
31756
31842
|
createConnectionsSettingsPage(messages, getDiagnostics, void 0, getRemoteConnections),
|
|
31757
|
-
|
|
31843
|
+
createMobileWebPage(messages, () => {
|
|
31758
31844
|
const client = getUpdateClient();
|
|
31759
31845
|
return client?.openWeb?.bind(client);
|
|
31760
31846
|
}),
|
|
31847
|
+
createRemoteConnectionsPage(messages, getRemoteConnections),
|
|
31761
31848
|
createAccountsSettingsPage(messages, getAccountClient),
|
|
31762
31849
|
...harnessSchedules ? [createHarnessSchedulesPage(messages, harnessSchedules)] : [],
|
|
31763
31850
|
createSessionImportSettingsPage(
|
|
@@ -34682,6 +34769,7 @@ ${connect_devices_default}`
|
|
|
34682
34769
|
|
|
34683
34770
|
lucide/dist/esm/defaultAttributes.mjs:
|
|
34684
34771
|
lucide/dist/esm/createElement.mjs:
|
|
34772
|
+
lucide/dist/esm/icons/smartphone.mjs:
|
|
34685
34773
|
lucide/dist/esm/icons/boxes.mjs:
|
|
34686
34774
|
lucide/dist/esm/icons/calendar-clock.mjs:
|
|
34687
34775
|
lucide/dist/esm/icons/circle-check.mjs:
|