@liberseek/boft-cli-win32-arm64 0.7.6 → 0.7.7
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 +69 -53
- package/app/console-web.js +563 -96
- package/app/desktop-controller.mjs +68 -20
- package/app/host-runtime.mjs +523 -124
- package/app/plugins/antigravity/plugin.mjs +804 -716
- package/app/plugins/claude-code/plugin.mjs +275 -115
- package/app/plugins/codebuddy/plugin.mjs +733 -662
- package/app/plugins/cursor-cli/plugin.mjs +446 -357
- package/app/plugins/deepseek-harness/plugin.mjs +25471 -26253
- package/app/plugins/grok/plugin.mjs +1398 -1309
- package/app/plugins/hermes/plugin.mjs +524 -435
- package/app/plugins/kimi-code/plugin.mjs +745 -671
- package/app/plugins/kiro-cli/plugin.mjs +15822 -15731
- package/app/plugins/muse/plugin.mjs +69 -53
- package/app/plugins/omp/plugin.mjs +1639 -1547
- package/app/plugins/opencode/plugin.mjs +736 -665
- package/app/plugins/pi/plugin.mjs +15771 -15663
- package/app/plugins/qoder/plugin.mjs +479 -390
- package/app/plugins/qoder-cn/plugin.mjs +145 -54
- package/app/plugins/workbuddy/plugin.mjs +69 -53
- package/app/renderer-extension.js +695 -212
- package/bin/boft.exe +0 -0
- package/libexec/boft-node-repl.exe +0 -0
- package/libexec/boft-shim.exe +0 -0
- package/libexec/boft-updater.exe +0 -0
- package/package.json +2 -2
|
@@ -15040,6 +15040,71 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15040
15040
|
initializeOnly: external_exports.boolean().optional()
|
|
15041
15041
|
});
|
|
15042
15042
|
|
|
15043
|
+
// ../shared-contracts/dist/ids.js
|
|
15044
|
+
var opaqueIdSchema = external_exports.string().refine((value) => value.trim().length > 0, {
|
|
15045
|
+
message: "Identifier must not be empty or whitespace"
|
|
15046
|
+
});
|
|
15047
|
+
var harnessIdSchema = opaqueIdSchema.brand();
|
|
15048
|
+
var hostThreadIdSchema = opaqueIdSchema.brand();
|
|
15049
|
+
var hostTurnIdSchema = opaqueIdSchema.brand();
|
|
15050
|
+
var hostItemIdSchema = opaqueIdSchema.brand();
|
|
15051
|
+
var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
15052
|
+
|
|
15053
|
+
// ../shared-contracts/dist/harness-plugins.js
|
|
15054
|
+
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
15055
|
+
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
15056
|
+
var HARNESS_PLUGIN_LIMIT = 128;
|
|
15057
|
+
var harnessPluginIdSchema = external_exports.string().min(1).max(128).regex(/^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/u).refine((id) => id !== "codex", "The official Codex identity is reserved").pipe(harnessIdSchema);
|
|
15058
|
+
var relativeResourceSchema = external_exports.string().min(1).max(512).refine((value) => !/[\\\u0000:#?]/u.test(value) && !value.startsWith("/") && !value.split("/").some((part) => part === ".." || part === ""), "Plugin resources must be relative paths inside the plugin");
|
|
15059
|
+
var documentationUrlSchema = external_exports.url().refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Plugin documentation links must be credential-free HTTPS URLs");
|
|
15060
|
+
var pluginPresentationShape = {
|
|
15061
|
+
id: harnessPluginIdSchema,
|
|
15062
|
+
name: external_exports.string().trim().min(1).max(128),
|
|
15063
|
+
version: external_exports.string().min(1).max(128),
|
|
15064
|
+
/** The factory accepts a persisted local entrypoint through its construction context. */
|
|
15065
|
+
launchCommand: external_exports.literal(true).optional(),
|
|
15066
|
+
links: external_exports.object({
|
|
15067
|
+
documentation: documentationUrlSchema.optional(),
|
|
15068
|
+
installation: documentationUrlSchema.optional()
|
|
15069
|
+
}).strict().optional()
|
|
15070
|
+
};
|
|
15071
|
+
var harnessPluginManifestSchema = external_exports.object({
|
|
15072
|
+
manifestVersion: external_exports.literal(1),
|
|
15073
|
+
...pluginPresentationShape,
|
|
15074
|
+
adapterApiVersion: external_exports.number().int().positive(),
|
|
15075
|
+
entry: relativeResourceSchema,
|
|
15076
|
+
icon: relativeResourceSchema.optional()
|
|
15077
|
+
}).strict();
|
|
15078
|
+
var harnessPluginIconSchema = external_exports.string().max(Math.ceil(HARNESS_PLUGIN_ICON_MAX_BYTES / 3) * 4 + 64).regex(/^data:image\/(?:png|jpeg|webp|svg\+xml);base64,[A-Za-z0-9+/]+={0,2}$/u);
|
|
15079
|
+
var harnessPluginDescriptorSchema = external_exports.object({
|
|
15080
|
+
...pluginPresentationShape,
|
|
15081
|
+
icon: harnessPluginIconSchema.optional()
|
|
15082
|
+
}).strict();
|
|
15083
|
+
var harnessPluginListParamsSchema = external_exports.object({}).strict();
|
|
15084
|
+
var harnessPluginListResultSchema = external_exports.object({
|
|
15085
|
+
plugins: external_exports.array(harnessPluginDescriptorSchema).max(HARNESS_PLUGIN_LIMIT)
|
|
15086
|
+
}).strict();
|
|
15087
|
+
var harnessPluginConfigurationSchema = external_exports.object({
|
|
15088
|
+
version: external_exports.literal(1),
|
|
15089
|
+
enabled: external_exports.array(harnessPluginIdSchema).max(HARNESS_PLUGIN_LIMIT)
|
|
15090
|
+
}).strict().refine((value) => new Set(value.enabled).size === value.enabled.length, {
|
|
15091
|
+
message: "Enabled plugin IDs must be unique",
|
|
15092
|
+
path: ["enabled"]
|
|
15093
|
+
});
|
|
15094
|
+
|
|
15095
|
+
// ../shared-contracts/dist/harness-long-context.js
|
|
15096
|
+
var HARNESS_LONG_CONTEXT_GET_METHOD = "codexhost/harness/long-context/get";
|
|
15097
|
+
var HARNESS_LONG_CONTEXT_SET_METHOD = "codexhost/harness/long-context/set";
|
|
15098
|
+
var harnessLongContextGetSchema = external_exports.object({
|
|
15099
|
+
harnessId: harnessPluginIdSchema
|
|
15100
|
+
}).strict();
|
|
15101
|
+
var harnessLongContextSetSchema = harnessLongContextGetSchema.extend({
|
|
15102
|
+
enabled: external_exports.boolean()
|
|
15103
|
+
});
|
|
15104
|
+
var harnessLongContextSchema = external_exports.object({
|
|
15105
|
+
enabled: external_exports.boolean()
|
|
15106
|
+
}).strict();
|
|
15107
|
+
|
|
15043
15108
|
// ../shared-contracts/dist/console.js
|
|
15044
15109
|
var consoleAnnouncementSchema = external_exports.strictObject({
|
|
15045
15110
|
title: external_exports.string().trim().min(1).max(200),
|
|
@@ -15057,8 +15122,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15057
15122
|
"codexhost/harness/display-settings/get",
|
|
15058
15123
|
"codexhost/harness/display-settings/set",
|
|
15059
15124
|
"codexhost/harness/inspect",
|
|
15125
|
+
"codexhost/harness/installation",
|
|
15060
15126
|
"codexhost/harness/launch-settings/get",
|
|
15061
15127
|
"codexhost/harness/launch-settings/set",
|
|
15128
|
+
HARNESS_LONG_CONTEXT_GET_METHOD,
|
|
15129
|
+
HARNESS_LONG_CONTEXT_SET_METHOD,
|
|
15062
15130
|
"codexhost/harness/web-ui/open",
|
|
15063
15131
|
"codexhost/harness/accounts/sources",
|
|
15064
15132
|
"codexhost/harness/accounts/list",
|
|
@@ -15120,16 +15188,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15120
15188
|
inactiveMs: external_exports.number().nonnegative()
|
|
15121
15189
|
}));
|
|
15122
15190
|
|
|
15123
|
-
// ../shared-contracts/dist/ids.js
|
|
15124
|
-
var opaqueIdSchema = external_exports.string().refine((value) => value.trim().length > 0, {
|
|
15125
|
-
message: "Identifier must not be empty or whitespace"
|
|
15126
|
-
});
|
|
15127
|
-
var harnessIdSchema = opaqueIdSchema.brand();
|
|
15128
|
-
var hostThreadIdSchema = opaqueIdSchema.brand();
|
|
15129
|
-
var hostTurnIdSchema = opaqueIdSchema.brand();
|
|
15130
|
-
var hostItemIdSchema = opaqueIdSchema.brand();
|
|
15131
|
-
var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
15132
|
-
|
|
15133
15191
|
// ../shared-contracts/dist/manual-compaction.js
|
|
15134
15192
|
var THREAD_MANUAL_COMPACTION_STARTED_METHOD = "codexhost/thread/manual-compaction/started";
|
|
15135
15193
|
var threadManualCompactionStartedSchema = external_exports.strictObject({
|
|
@@ -15669,48 +15727,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15669
15727
|
}
|
|
15670
15728
|
});
|
|
15671
15729
|
|
|
15672
|
-
// ../shared-contracts/dist/harness-plugins.js
|
|
15673
|
-
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
15674
|
-
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
15675
|
-
var HARNESS_PLUGIN_LIMIT = 128;
|
|
15676
|
-
var harnessPluginIdSchema = external_exports.string().min(1).max(128).regex(/^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/u).refine((id) => id !== "codex", "The official Codex identity is reserved").pipe(harnessIdSchema);
|
|
15677
|
-
var relativeResourceSchema = external_exports.string().min(1).max(512).refine((value) => !/[\\\u0000:#?]/u.test(value) && !value.startsWith("/") && !value.split("/").some((part) => part === ".." || part === ""), "Plugin resources must be relative paths inside the plugin");
|
|
15678
|
-
var documentationUrlSchema = external_exports.url().refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Plugin documentation links must be credential-free HTTPS URLs");
|
|
15679
|
-
var pluginPresentationShape = {
|
|
15680
|
-
id: harnessPluginIdSchema,
|
|
15681
|
-
name: external_exports.string().trim().min(1).max(128),
|
|
15682
|
-
version: external_exports.string().min(1).max(128),
|
|
15683
|
-
/** The factory accepts a persisted local entrypoint through its construction context. */
|
|
15684
|
-
launchCommand: external_exports.literal(true).optional(),
|
|
15685
|
-
links: external_exports.object({
|
|
15686
|
-
documentation: documentationUrlSchema.optional(),
|
|
15687
|
-
installation: documentationUrlSchema.optional()
|
|
15688
|
-
}).strict().optional()
|
|
15689
|
-
};
|
|
15690
|
-
var harnessPluginManifestSchema = external_exports.object({
|
|
15691
|
-
manifestVersion: external_exports.literal(1),
|
|
15692
|
-
...pluginPresentationShape,
|
|
15693
|
-
adapterApiVersion: external_exports.number().int().positive(),
|
|
15694
|
-
entry: relativeResourceSchema,
|
|
15695
|
-
icon: relativeResourceSchema.optional()
|
|
15696
|
-
}).strict();
|
|
15697
|
-
var harnessPluginIconSchema = external_exports.string().max(Math.ceil(HARNESS_PLUGIN_ICON_MAX_BYTES / 3) * 4 + 64).regex(/^data:image\/(?:png|jpeg|webp|svg\+xml);base64,[A-Za-z0-9+/]+={0,2}$/u);
|
|
15698
|
-
var harnessPluginDescriptorSchema = external_exports.object({
|
|
15699
|
-
...pluginPresentationShape,
|
|
15700
|
-
icon: harnessPluginIconSchema.optional()
|
|
15701
|
-
}).strict();
|
|
15702
|
-
var harnessPluginListParamsSchema = external_exports.object({}).strict();
|
|
15703
|
-
var harnessPluginListResultSchema = external_exports.object({
|
|
15704
|
-
plugins: external_exports.array(harnessPluginDescriptorSchema).max(HARNESS_PLUGIN_LIMIT)
|
|
15705
|
-
}).strict();
|
|
15706
|
-
var harnessPluginConfigurationSchema = external_exports.object({
|
|
15707
|
-
version: external_exports.literal(1),
|
|
15708
|
-
enabled: external_exports.array(harnessPluginIdSchema).max(HARNESS_PLUGIN_LIMIT)
|
|
15709
|
-
}).strict().refine((value) => new Set(value.enabled).size === value.enabled.length, {
|
|
15710
|
-
message: "Enabled plugin IDs must be unique",
|
|
15711
|
-
path: ["enabled"]
|
|
15712
|
-
});
|
|
15713
|
-
|
|
15714
15730
|
// ../shared-contracts/dist/harness-route.js
|
|
15715
15731
|
var HARNESS_PLUGIN_ROUTE_PREFIX = "codexhost/plugin-v1@";
|
|
15716
15732
|
var MAX_ROUTE_LENGTH = 4096;
|
|
@@ -15762,7 +15778,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15762
15778
|
var HARNESS_INSTALLATION_METHOD = "codexhost/harness/installation";
|
|
15763
15779
|
var harnessInstallationParamsSchema = external_exports.object({
|
|
15764
15780
|
harnessId: harnessIdSchema,
|
|
15765
|
-
action: external_exports.enum(["check", "update"])
|
|
15781
|
+
action: external_exports.enum(["check", "update", "install"])
|
|
15766
15782
|
}).strict();
|
|
15767
15783
|
var harnessInstallationStateSchema = external_exports.object({
|
|
15768
15784
|
currentVersion: external_exports.string().min(1).max(128),
|
|
@@ -17220,11 +17236,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17220
17236
|
},
|
|
17221
17237
|
"deepseek-harness": {
|
|
17222
17238
|
url: "https://github.com/deepseek-ai/deepseek-harness#run",
|
|
17223
|
-
|
|
17224
|
-
commands: npm("@deepseek-ai/dsh@0.1.5-rc.1"),
|
|
17239
|
+
commands: npm("@deepseek-ai/dsh@latest"),
|
|
17225
17240
|
before: [
|
|
17226
|
-
"Requires Node.js. Installs
|
|
17227
|
-
"\u9700\u5148\u5B89\u88C5 Node.js\u3002\
|
|
17241
|
+
"Requires Node.js. Installs npm's latest version; connection still requires native protocol validation.",
|
|
17242
|
+
"\u9700\u5148\u5B89\u88C5 Node.js\u3002\u5B89\u88C5 npm \u6700\u65B0\u7248\u672C\uFF1B\u8FDE\u63A5\u4ECD\u9700\u901A\u8FC7\u539F\u751F\u534F\u8BAE\u6821\u9A8C\u3002"
|
|
17228
17243
|
],
|
|
17229
17244
|
after: [
|
|
17230
17245
|
"Check again, then open Web UI to configure your provider. Stop any manually started dsh web first.",
|
|
@@ -17283,17 +17298,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17283
17298
|
url: "https://www.workbuddy.ai/docs/workbuddy/Quickstart",
|
|
17284
17299
|
commands: [],
|
|
17285
17300
|
before: [
|
|
17286
|
-
"
|
|
17287
|
-
"\u8BF7\u5B89\u88C5 WorkBuddy \u684C\u9762\u5E94\u7528\
|
|
17301
|
+
"Download and install the WorkBuddy desktop app.",
|
|
17302
|
+
"\u8BF7\u4E0B\u8F7D\u5E76\u5B89\u88C5 WorkBuddy \u684C\u9762\u5E94\u7528\u3002"
|
|
17288
17303
|
],
|
|
17289
17304
|
downloads: [
|
|
17290
17305
|
{
|
|
17291
|
-
label: "
|
|
17292
|
-
url: "https://www.workbuddy.ai/
|
|
17293
|
-
},
|
|
17294
|
-
{
|
|
17295
|
-
label: "Windows",
|
|
17296
|
-
url: "https://www.workbuddy.ai/docs/workbuddy/From-Beginner-to-Expert-Guide/Installation-Win-Guide"
|
|
17306
|
+
label: "WorkBuddy",
|
|
17307
|
+
url: "https://www.workbuddy.ai/"
|
|
17297
17308
|
}
|
|
17298
17309
|
],
|
|
17299
17310
|
after: [
|
|
@@ -17427,6 +17438,64 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17427
17438
|
return panel;
|
|
17428
17439
|
}
|
|
17429
17440
|
|
|
17441
|
+
// src/settings/harness-install-store.ts
|
|
17442
|
+
function errorMessage(error51) {
|
|
17443
|
+
return typeof error51 === "object" && error51 !== null && "message" in error51 && typeof error51.message === "string" ? error51.message.slice(0, 2048) : "Could not install the Harness. Check the official installation guide and retry.";
|
|
17444
|
+
}
|
|
17445
|
+
var stores = /* @__PURE__ */ new WeakMap();
|
|
17446
|
+
function createStore(diagnostics) {
|
|
17447
|
+
const states = /* @__PURE__ */ new Map();
|
|
17448
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
17449
|
+
const key = (host, agent) => JSON.stringify([host, agent]);
|
|
17450
|
+
const notify = () => listeners.forEach((listener) => listener());
|
|
17451
|
+
return {
|
|
17452
|
+
get: (host, agent) => states.get(key(host, agent)),
|
|
17453
|
+
clearErrors() {
|
|
17454
|
+
for (const [id, state] of states) if (state.status === "error") states.delete(id);
|
|
17455
|
+
notify();
|
|
17456
|
+
},
|
|
17457
|
+
subscribe(listener) {
|
|
17458
|
+
listeners.add(listener);
|
|
17459
|
+
return () => {
|
|
17460
|
+
listeners.delete(listener);
|
|
17461
|
+
};
|
|
17462
|
+
},
|
|
17463
|
+
async install(host, agent) {
|
|
17464
|
+
const id = key(host, agent);
|
|
17465
|
+
const previous = states.get(id);
|
|
17466
|
+
if (!diagnostics.installation || previous && previous.status !== "error") return;
|
|
17467
|
+
states.set(id, { status: "installing" });
|
|
17468
|
+
notify();
|
|
17469
|
+
let failure;
|
|
17470
|
+
try {
|
|
17471
|
+
await diagnostics.installation(host, agent, "install");
|
|
17472
|
+
states.set(id, { status: "checking" });
|
|
17473
|
+
notify();
|
|
17474
|
+
} catch (error51) {
|
|
17475
|
+
failure = errorMessage(error51);
|
|
17476
|
+
}
|
|
17477
|
+
try {
|
|
17478
|
+
await diagnostics.refresh(host);
|
|
17479
|
+
const refreshed = diagnostics.snapshot().hosts.find((candidate) => candidate.hostId === host)?.agents.find((candidate) => candidate.agent === agent);
|
|
17480
|
+
if (refreshed?.availability === "ready") failure = void 0;
|
|
17481
|
+
} catch (error51) {
|
|
17482
|
+
failure ??= errorMessage(error51);
|
|
17483
|
+
}
|
|
17484
|
+
if (failure) states.set(id, { status: "error", error: failure });
|
|
17485
|
+
else states.delete(id);
|
|
17486
|
+
notify();
|
|
17487
|
+
}
|
|
17488
|
+
};
|
|
17489
|
+
}
|
|
17490
|
+
function harnessInstallStore(diagnostics) {
|
|
17491
|
+
let store = stores.get(diagnostics);
|
|
17492
|
+
if (!store) {
|
|
17493
|
+
store = createStore(diagnostics);
|
|
17494
|
+
stores.set(diagnostics, store);
|
|
17495
|
+
}
|
|
17496
|
+
return store;
|
|
17497
|
+
}
|
|
17498
|
+
|
|
17430
17499
|
// src/settings/harness-launch-controls.ts
|
|
17431
17500
|
function createHarnessLaunchControls(document2, messages, agent, settings) {
|
|
17432
17501
|
const section = document2.createElement("section");
|
|
@@ -17504,6 +17573,164 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17504
17573
|
return section;
|
|
17505
17574
|
}
|
|
17506
17575
|
|
|
17576
|
+
// src/settings/claude-long-context-control.ts
|
|
17577
|
+
var CLAUDE_LONG_CONTEXT_MODELS = [{ id: "claude-opus-5-5", window: "1M" }];
|
|
17578
|
+
var tooltipSequence = 0;
|
|
17579
|
+
function popoverOpen(tooltip) {
|
|
17580
|
+
try {
|
|
17581
|
+
return tooltip.matches(":popover-open");
|
|
17582
|
+
} catch {
|
|
17583
|
+
return false;
|
|
17584
|
+
}
|
|
17585
|
+
}
|
|
17586
|
+
function createClaudeLongContextControl(document2, messages, actions) {
|
|
17587
|
+
const control = document2.createElement("span");
|
|
17588
|
+
control.className = "settings-connection-long-context";
|
|
17589
|
+
const label = document2.createElement("label");
|
|
17590
|
+
label.className = "settings-connection-long-context__control";
|
|
17591
|
+
const text = document2.createElement("span");
|
|
17592
|
+
text.textContent = messages.connectionLongContextLabel;
|
|
17593
|
+
const input = document2.createElement("input");
|
|
17594
|
+
input.type = "checkbox";
|
|
17595
|
+
input.checked = true;
|
|
17596
|
+
input.setAttribute("role", "switch");
|
|
17597
|
+
input.setAttribute("aria-checked", "true");
|
|
17598
|
+
input.setAttribute("aria-label", messages.connectionLongContextLabel);
|
|
17599
|
+
input.dataset.connectionAction = "long-context";
|
|
17600
|
+
const tooltip = document2.createElement("div");
|
|
17601
|
+
tooltip.id = `settings-long-context-tooltip-${++tooltipSequence}`;
|
|
17602
|
+
tooltip.className = "settings-connection-long-context__tooltip";
|
|
17603
|
+
tooltip.setAttribute("role", "tooltip");
|
|
17604
|
+
tooltip.setAttribute("popover", "manual");
|
|
17605
|
+
tooltip.hidden = true;
|
|
17606
|
+
const on = document2.createElement("p");
|
|
17607
|
+
on.textContent = messages.connectionLongContextOn;
|
|
17608
|
+
const off = document2.createElement("p");
|
|
17609
|
+
off.textContent = messages.connectionLongContextOff;
|
|
17610
|
+
const modelsLabel = document2.createElement("p");
|
|
17611
|
+
modelsLabel.textContent = messages.connectionLongContextModelsLabel;
|
|
17612
|
+
const models = document2.createElement("ul");
|
|
17613
|
+
for (const model of CLAUDE_LONG_CONTEXT_MODELS) {
|
|
17614
|
+
const item = document2.createElement("li");
|
|
17615
|
+
item.textContent = `${model.id} (${model.window})`;
|
|
17616
|
+
models.append(item);
|
|
17617
|
+
}
|
|
17618
|
+
tooltip.append(on, off, modelsLabel, models);
|
|
17619
|
+
input.setAttribute("aria-describedby", tooltip.id);
|
|
17620
|
+
const stop = (event) => {
|
|
17621
|
+
event.stopPropagation();
|
|
17622
|
+
};
|
|
17623
|
+
control.addEventListener("click", stop);
|
|
17624
|
+
label.addEventListener("click", stop);
|
|
17625
|
+
input.addEventListener("click", stop);
|
|
17626
|
+
let surfaceReady = false;
|
|
17627
|
+
const applyTooltipSurface = () => {
|
|
17628
|
+
if (surfaceReady) return;
|
|
17629
|
+
const probe = document2.createElement("span");
|
|
17630
|
+
probe.style.cssText = "position:absolute;visibility:hidden;color:var(--settings-text);background-color:var(--settings-elevated);border-top-color:var(--settings-border)";
|
|
17631
|
+
control.append(probe);
|
|
17632
|
+
const computed = document2.defaultView?.getComputedStyle(probe);
|
|
17633
|
+
const color = computed?.color;
|
|
17634
|
+
const background = computed?.backgroundColor;
|
|
17635
|
+
const borderColor = computed?.borderTopColor;
|
|
17636
|
+
probe.remove();
|
|
17637
|
+
if (color) tooltip.style.color = color;
|
|
17638
|
+
if (background && background !== "rgba(0, 0, 0, 0)") tooltip.style.backgroundColor = background;
|
|
17639
|
+
if (borderColor) tooltip.style.border = `1px solid ${borderColor}`;
|
|
17640
|
+
surfaceReady = true;
|
|
17641
|
+
};
|
|
17642
|
+
const showTooltip = () => {
|
|
17643
|
+
const root = control.getRootNode();
|
|
17644
|
+
const host = root instanceof ShadowRoot ? root : document2.body ?? control;
|
|
17645
|
+
if (tooltip.parentNode !== host) host.append(tooltip);
|
|
17646
|
+
applyTooltipSurface();
|
|
17647
|
+
tooltip.hidden = false;
|
|
17648
|
+
if (typeof tooltip.showPopover === "function" && !popoverOpen(tooltip)) {
|
|
17649
|
+
try {
|
|
17650
|
+
tooltip.showPopover();
|
|
17651
|
+
} catch {
|
|
17652
|
+
tooltip.removeAttribute("popover");
|
|
17653
|
+
}
|
|
17654
|
+
}
|
|
17655
|
+
tooltip.style.position = "fixed";
|
|
17656
|
+
tooltip.style.inset = "auto";
|
|
17657
|
+
tooltip.style.zIndex = "80";
|
|
17658
|
+
tooltip.style.margin = "0";
|
|
17659
|
+
tooltip.style.height = "auto";
|
|
17660
|
+
tooltip.style.overflow = "visible";
|
|
17661
|
+
const rect = control.getBoundingClientRect();
|
|
17662
|
+
const margin = 8;
|
|
17663
|
+
const width = Math.min(280, Math.max(160, window.innerWidth - margin * 2));
|
|
17664
|
+
tooltip.style.width = `${width}px`;
|
|
17665
|
+
const preferredLeft = Math.min(
|
|
17666
|
+
Math.max(margin, rect.right - width),
|
|
17667
|
+
window.innerWidth - width - margin
|
|
17668
|
+
);
|
|
17669
|
+
const height = tooltip.offsetHeight;
|
|
17670
|
+
const below = rect.bottom + 8;
|
|
17671
|
+
const preferredTop = below + height <= window.innerHeight - margin ? below : Math.max(margin, rect.top - height - 8);
|
|
17672
|
+
tooltip.style.left = `${preferredLeft}px`;
|
|
17673
|
+
tooltip.style.top = `${preferredTop}px`;
|
|
17674
|
+
const placed = tooltip.getBoundingClientRect();
|
|
17675
|
+
const shiftX = preferredLeft - placed.left;
|
|
17676
|
+
const shiftY = preferredTop - placed.top;
|
|
17677
|
+
if (Math.abs(shiftX) > 0.5 || Math.abs(shiftY) > 0.5) {
|
|
17678
|
+
tooltip.style.left = `${preferredLeft + shiftX}px`;
|
|
17679
|
+
tooltip.style.top = `${preferredTop + shiftY}px`;
|
|
17680
|
+
}
|
|
17681
|
+
};
|
|
17682
|
+
const hideTooltip = () => {
|
|
17683
|
+
if (typeof tooltip.hidePopover === "function" && popoverOpen(tooltip)) {
|
|
17684
|
+
try {
|
|
17685
|
+
tooltip.hidePopover();
|
|
17686
|
+
} catch {
|
|
17687
|
+
}
|
|
17688
|
+
}
|
|
17689
|
+
tooltip.hidden = true;
|
|
17690
|
+
};
|
|
17691
|
+
control.addEventListener("mouseenter", showTooltip);
|
|
17692
|
+
control.addEventListener("mouseleave", hideTooltip);
|
|
17693
|
+
control.addEventListener("focusin", showTooltip);
|
|
17694
|
+
control.addEventListener("focusout", (event) => {
|
|
17695
|
+
const next = event.relatedTarget;
|
|
17696
|
+
if (next instanceof Node && control.contains(next)) return;
|
|
17697
|
+
hideTooltip();
|
|
17698
|
+
});
|
|
17699
|
+
let generation = 0;
|
|
17700
|
+
input.addEventListener("change", () => {
|
|
17701
|
+
const next = input.checked;
|
|
17702
|
+
generation += 1;
|
|
17703
|
+
const request = generation;
|
|
17704
|
+
input.disabled = true;
|
|
17705
|
+
input.setAttribute("aria-checked", String(next));
|
|
17706
|
+
void actions.set(next).then(
|
|
17707
|
+
(result) => {
|
|
17708
|
+
if (request !== generation) return;
|
|
17709
|
+
input.checked = result.enabled;
|
|
17710
|
+
input.setAttribute("aria-checked", String(result.enabled));
|
|
17711
|
+
input.disabled = false;
|
|
17712
|
+
},
|
|
17713
|
+
() => {
|
|
17714
|
+
if (request !== generation) return;
|
|
17715
|
+
input.checked = !next;
|
|
17716
|
+
input.setAttribute("aria-checked", String(!next));
|
|
17717
|
+
input.disabled = false;
|
|
17718
|
+
}
|
|
17719
|
+
);
|
|
17720
|
+
});
|
|
17721
|
+
void actions.get().then(
|
|
17722
|
+
(result) => {
|
|
17723
|
+
if (generation !== 0) return;
|
|
17724
|
+
input.checked = result.enabled;
|
|
17725
|
+
input.setAttribute("aria-checked", String(result.enabled));
|
|
17726
|
+
},
|
|
17727
|
+
() => void 0
|
|
17728
|
+
);
|
|
17729
|
+
label.append(text, input);
|
|
17730
|
+
control.append(label, tooltip);
|
|
17731
|
+
return control;
|
|
17732
|
+
}
|
|
17733
|
+
|
|
17507
17734
|
// src/settings/harness-version-panel.ts
|
|
17508
17735
|
function createHarnessVersionPanel(document2, messages, signal, agent, client) {
|
|
17509
17736
|
const panel = document2.createElement("section");
|
|
@@ -17524,19 +17751,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17524
17751
|
update.type = "button";
|
|
17525
17752
|
update.className = "settings-command-button settings-command-button--secondary";
|
|
17526
17753
|
update.dataset.harnessVersionAction = "update";
|
|
17527
|
-
const guide = document2.createElement("a");
|
|
17528
|
-
guide.className = update.className;
|
|
17529
|
-
guide.href = harnessInstallationGuide(agent, messages.locale).url;
|
|
17530
|
-
guide.target = "_blank";
|
|
17531
|
-
guide.rel = "noopener noreferrer";
|
|
17532
|
-
guide.append(
|
|
17533
|
-
messages.connectionOpenInstallation,
|
|
17534
|
-
createRendererSettingsIcon("external-link", 14)
|
|
17535
|
-
);
|
|
17536
17754
|
const note = document2.createElement("p");
|
|
17537
17755
|
note.className = "settings-connection-issue-note";
|
|
17538
17756
|
note.textContent = messages.harnessVersionNote;
|
|
17539
|
-
actions.append(update
|
|
17757
|
+
actions.append(update);
|
|
17540
17758
|
panel.append(heading, versions, status, actions, note);
|
|
17541
17759
|
let state;
|
|
17542
17760
|
let busy = false;
|
|
@@ -17870,7 +18088,7 @@ ${error51.stderrTail}`] : []
|
|
|
17870
18088
|
body.append(summary, metadata, logHeader, log, actions, issueNote);
|
|
17871
18089
|
return body;
|
|
17872
18090
|
}
|
|
17873
|
-
function createConnectionBlock(document2, item, hostId, messages, expanded, toggleExpand, group = null, launchControls = null, versionCapable = false, detailNodes = []) {
|
|
18091
|
+
function createConnectionBlock(document2, item, hostId, messages, expanded, toggleExpand, group = null, launchControls = null, versionCapable = false, detailNodes = [], longContext = null) {
|
|
17874
18092
|
const block = document2.createElement("div");
|
|
17875
18093
|
block.className = "settings-connection-block";
|
|
17876
18094
|
block.dataset.connectionItem = item.key;
|
|
@@ -17929,6 +18147,7 @@ ${error51.stderrTail}`] : []
|
|
|
17929
18147
|
});
|
|
17930
18148
|
action.append(viewError);
|
|
17931
18149
|
}
|
|
18150
|
+
if (longContext) action.append(longContext);
|
|
17932
18151
|
if (group) {
|
|
17933
18152
|
const toggle = document2.createElement("button");
|
|
17934
18153
|
toggle.type = "button";
|
|
@@ -17947,6 +18166,8 @@ ${error51.stderrTail}`] : []
|
|
|
17947
18166
|
}
|
|
17948
18167
|
row.addEventListener("keydown", (event) => {
|
|
17949
18168
|
if (event.key !== "Enter" && event.key !== " ") return;
|
|
18169
|
+
const keyTarget = event.target;
|
|
18170
|
+
if (keyTarget?.closest?.("a, button, label, input")) return;
|
|
17950
18171
|
if (!canExpand) return;
|
|
17951
18172
|
event.preventDefault();
|
|
17952
18173
|
toggleExpand();
|
|
@@ -17970,7 +18191,7 @@ ${error51.stderrTail}`] : []
|
|
|
17970
18191
|
}
|
|
17971
18192
|
block.addEventListener("click", (event) => {
|
|
17972
18193
|
const target = event.target;
|
|
17973
|
-
if (target?.closest?.("a, button")) return;
|
|
18194
|
+
if (target?.closest?.("a, button, label, input")) return;
|
|
17974
18195
|
if (!canExpand) return;
|
|
17975
18196
|
toggleExpand();
|
|
17976
18197
|
});
|
|
@@ -18053,6 +18274,7 @@ ${error51.stderrTail}`] : []
|
|
|
18053
18274
|
let latestSnapshot = null;
|
|
18054
18275
|
let launchControls = null;
|
|
18055
18276
|
const versionPanels = /* @__PURE__ */ new Map();
|
|
18277
|
+
const longContextControls = /* @__PURE__ */ new Map();
|
|
18056
18278
|
const launchControlsFor = (hostId, item) => {
|
|
18057
18279
|
const getLaunchSettings = diagnostics?.getLaunchSettings;
|
|
18058
18280
|
const setLaunchSettings = diagnostics?.setLaunchSettings;
|
|
@@ -18069,7 +18291,26 @@ ${error51.stderrTail}`] : []
|
|
|
18069
18291
|
launchControls = { hostId, itemKey: item.key, element };
|
|
18070
18292
|
return element;
|
|
18071
18293
|
};
|
|
18294
|
+
const longContextControlFor = (hostId, item) => {
|
|
18295
|
+
const agent = item.agentSnapshot?.agent;
|
|
18296
|
+
const availability = item.agentSnapshot?.availability;
|
|
18297
|
+
const getLongContext = diagnostics?.getLongContext;
|
|
18298
|
+
const setLongContext = diagnostics?.setLongContext;
|
|
18299
|
+
if (agent !== "claude-code" || availability === "notInstalled" || availability === "checking" || !getLongContext || !setLongContext) {
|
|
18300
|
+
return null;
|
|
18301
|
+
}
|
|
18302
|
+
const key = JSON.stringify([hostId, agent]);
|
|
18303
|
+
const cached2 = longContextControls.get(key);
|
|
18304
|
+
if (cached2) return cached2;
|
|
18305
|
+
const element = createClaudeLongContextControl(document2, messages, {
|
|
18306
|
+
get: () => getLongContext(hostId, agent),
|
|
18307
|
+
set: (enabled) => setLongContext(hostId, agent, enabled)
|
|
18308
|
+
});
|
|
18309
|
+
longContextControls.set(key, element);
|
|
18310
|
+
return element;
|
|
18311
|
+
};
|
|
18072
18312
|
const diagnostics = getDiagnostics();
|
|
18313
|
+
const installs = diagnostics ? harnessInstallStore(diagnostics) : null;
|
|
18073
18314
|
const runRefresh = () => {
|
|
18074
18315
|
if (pending || !diagnostics) return;
|
|
18075
18316
|
pending = true;
|
|
@@ -18080,6 +18321,7 @@ ${error51.stderrTail}`] : []
|
|
|
18080
18321
|
);
|
|
18081
18322
|
void context.runLatest(() => diagnostics.refresh(), {
|
|
18082
18323
|
success() {
|
|
18324
|
+
installs?.clearErrors();
|
|
18083
18325
|
pending = false;
|
|
18084
18326
|
refresh.disabled = false;
|
|
18085
18327
|
refresh.replaceChildren(
|
|
@@ -18191,6 +18433,33 @@ ${error51.stderrTail}`] : []
|
|
|
18191
18433
|
runRefresh
|
|
18192
18434
|
)
|
|
18193
18435
|
);
|
|
18436
|
+
const installState = installs?.get(selectedHost.hostId, agent);
|
|
18437
|
+
const canInstall = selectedHost.hostId === "local" && agent !== "workbuddy" && diagnostics?.installation !== void 0;
|
|
18438
|
+
if (canInstall) {
|
|
18439
|
+
const busy = installState?.status === "installing" || installState?.status === "checking";
|
|
18440
|
+
if (installState?.error) {
|
|
18441
|
+
const error51 = document2.createElement("p");
|
|
18442
|
+
error51.className = "settings-connection-install-error";
|
|
18443
|
+
error51.setAttribute("role", "alert");
|
|
18444
|
+
error51.textContent = installState.error;
|
|
18445
|
+
nodes.push(error51);
|
|
18446
|
+
}
|
|
18447
|
+
if (busy) {
|
|
18448
|
+
const note = document2.createElement("p");
|
|
18449
|
+
note.textContent = messages.connectionInstallRunning;
|
|
18450
|
+
nodes.push(note);
|
|
18451
|
+
}
|
|
18452
|
+
const installNow = document2.createElement("button");
|
|
18453
|
+
installNow.type = "button";
|
|
18454
|
+
installNow.className = "settings-command-button";
|
|
18455
|
+
installNow.dataset.connectionAction = "run-install";
|
|
18456
|
+
installNow.disabled = busy;
|
|
18457
|
+
installNow.textContent = busy ? messages.connectionInstallRunning : messages.connectionInstall;
|
|
18458
|
+
installNow.addEventListener("click", () => {
|
|
18459
|
+
void installs?.install(selectedHost.hostId, agent);
|
|
18460
|
+
});
|
|
18461
|
+
nodes.push(installNow);
|
|
18462
|
+
}
|
|
18194
18463
|
}
|
|
18195
18464
|
const installation = diagnostics?.installation?.bind(diagnostics);
|
|
18196
18465
|
const versionCapable = Boolean(
|
|
@@ -18351,7 +18620,8 @@ ${error51.stderrTail}`] : []
|
|
|
18351
18620
|
createGroupController(agent, section),
|
|
18352
18621
|
launchControlsFor(selectedHost.hostId, item),
|
|
18353
18622
|
supplements.versionCapable,
|
|
18354
|
-
supplements.nodes
|
|
18623
|
+
supplements.nodes,
|
|
18624
|
+
longContextControlFor(selectedHost.hostId, item)
|
|
18355
18625
|
);
|
|
18356
18626
|
rowElements.set(item.key, row);
|
|
18357
18627
|
rows.append(block);
|
|
@@ -18426,7 +18696,8 @@ ${error51.stderrTail}`] : []
|
|
|
18426
18696
|
createGroupController(entry.agent, "more"),
|
|
18427
18697
|
launchControlsFor(selectedHost.hostId, item),
|
|
18428
18698
|
supplements.versionCapable,
|
|
18429
|
-
supplements.nodes
|
|
18699
|
+
supplements.nodes,
|
|
18700
|
+
longContextControlFor(selectedHost.hostId, item)
|
|
18430
18701
|
);
|
|
18431
18702
|
rowElements.set(item.key, row);
|
|
18432
18703
|
zone.append(block);
|
|
@@ -18446,10 +18717,14 @@ ${error51.stderrTail}`] : []
|
|
|
18446
18717
|
const unsubscribeGroup = groupPreference.subscribe(
|
|
18447
18718
|
() => render(diagnostics?.snapshot() ?? latestSnapshot)
|
|
18448
18719
|
);
|
|
18720
|
+
const unsubscribeInstalls = installs?.subscribe(
|
|
18721
|
+
() => render(diagnostics?.snapshot() ?? latestSnapshot)
|
|
18722
|
+
);
|
|
18449
18723
|
if (!diagnostics) {
|
|
18450
18724
|
refresh.disabled = true;
|
|
18451
18725
|
return () => {
|
|
18452
18726
|
unsubscribeGroup();
|
|
18727
|
+
unsubscribeInstalls?.();
|
|
18453
18728
|
};
|
|
18454
18729
|
}
|
|
18455
18730
|
refresh.addEventListener("click", runRefresh);
|
|
@@ -18457,6 +18732,7 @@ ${error51.stderrTail}`] : []
|
|
|
18457
18732
|
return () => {
|
|
18458
18733
|
unsubscribe();
|
|
18459
18734
|
unsubscribeGroup();
|
|
18735
|
+
unsubscribeInstalls?.();
|
|
18460
18736
|
};
|
|
18461
18737
|
}
|
|
18462
18738
|
});
|
|
@@ -18682,11 +18958,13 @@ ${error51.stderrTail}`] : []
|
|
|
18682
18958
|
connectionDiagnostic: "Diagnostic",
|
|
18683
18959
|
connectionNoRuntime: "The renderer request bridge is not available yet.",
|
|
18684
18960
|
connectionStatusReady: "Ready",
|
|
18961
|
+
connectionStatusConnected: "Connected",
|
|
18685
18962
|
connectionStatusChecking: "Checking",
|
|
18686
18963
|
connectionStatusNotInstalled: "Not installed",
|
|
18687
18964
|
connectionStatusUnavailable: "Unavailable",
|
|
18688
18965
|
connectionStatusError: "Error",
|
|
18689
18966
|
connectionStatusInstalling: "Installing",
|
|
18967
|
+
connectionStatusUpdating: "Updating",
|
|
18690
18968
|
connectionStatusUnsupported: "Unsupported",
|
|
18691
18969
|
connectionComponent: "Component",
|
|
18692
18970
|
connectionStatus: "Status",
|
|
@@ -18705,14 +18983,20 @@ ${error51.stderrTail}`] : []
|
|
|
18705
18983
|
launchPathLoading: "Loading launch settings\u2026",
|
|
18706
18984
|
launchPathLoadError: "Could not load launch settings. Reopen this detail panel to retry.",
|
|
18707
18985
|
launchPathSaveError: "Could not save. Enter an existing absolute installation folder on this Host and check configuration permissions.",
|
|
18986
|
+
connectionOfficialWebsite: "Visit official website",
|
|
18708
18987
|
connectionOpenInstallation: "Open official installation page",
|
|
18709
18988
|
connectionOpenHarnessWeb: "Open DeepSeek Harness Web",
|
|
18710
|
-
connectionDeepSeekTestedVersions: "Supported DSH versions: 0.1.
|
|
18989
|
+
connectionDeepSeekTestedVersions: "Supported DSH versions: 0.1.7-rc.1, 0.1.7-rc.2, 0.2.0-rc.1 and 0.2.0-rc.2. Versions newer than 0.2.0-rc.2 can be tried, but compatibility may be limited; versions older than 0.1.7-rc.1 must be upgraded first.",
|
|
18711
18990
|
connectionInstall: "Install",
|
|
18991
|
+
connectionLongContextLabel: "1M",
|
|
18992
|
+
connectionLongContextOn: "On: Claude models use a 1M context window. Claude CLI uses that larger window locally.",
|
|
18993
|
+
connectionLongContextOff: "Off: Claude models use the 200k window.",
|
|
18994
|
+
connectionLongContextModelsLabel: "Models:",
|
|
18712
18995
|
connectionInstallDescription: "This Harness was not detected. Copy the official install command, copy an install prompt for another Agent, or open the official installation page. After installing, return here and run the check again.",
|
|
18713
18996
|
connectionInstallCommand: "Install command",
|
|
18714
18997
|
connectionCopyPrompt: "Copy prompt",
|
|
18715
18998
|
connectionInstallPrompt: "Please install {name} (CLI command: {binary}) on this machine.\n\nUse the official install method and run:\n{command}\n\nOfficial installation page: {url}\n\nAfter installation, verify that `{binary}` is available in the terminal and report the result.",
|
|
18999
|
+
connectionInstallRunning: "Installing on the selected Host. You can leave this page; login or setup may still be required afterward.",
|
|
18716
19000
|
harnessVersionTitle: "Harness CLI version",
|
|
18717
19001
|
harnessVersionCurrent: "Current version",
|
|
18718
19002
|
harnessVersionLatest: "Latest version",
|
|
@@ -18976,11 +19260,13 @@ ${error51.stderrTail}`] : []
|
|
|
18976
19260
|
connectionDiagnostic: "\u8BCA\u65AD\u4FE1\u606F",
|
|
18977
19261
|
connectionNoRuntime: "Renderer \u8BF7\u6C42\u6865\u5C1A\u672A\u53EF\u7528\u3002",
|
|
18978
19262
|
connectionStatusReady: "\u6B63\u5E38",
|
|
19263
|
+
connectionStatusConnected: "\u5DF2\u8FDE\u63A5",
|
|
18979
19264
|
connectionStatusChecking: "\u68C0\u67E5\u4E2D",
|
|
18980
19265
|
connectionStatusNotInstalled: "\u672A\u5B89\u88C5",
|
|
18981
19266
|
connectionStatusUnavailable: "\u4E0D\u53EF\u7528",
|
|
18982
19267
|
connectionStatusError: "\u9519\u8BEF",
|
|
18983
19268
|
connectionStatusInstalling: "\u5B89\u88C5\u4E2D",
|
|
19269
|
+
connectionStatusUpdating: "\u66F4\u65B0\u4E2D",
|
|
18984
19270
|
connectionStatusUnsupported: "\u4E0D\u652F\u6301",
|
|
18985
19271
|
connectionComponent: "\u7EC4\u4EF6",
|
|
18986
19272
|
connectionStatus: "\u72B6\u6001",
|
|
@@ -18999,14 +19285,20 @@ ${error51.stderrTail}`] : []
|
|
|
18999
19285
|
launchPathLoading: "\u6B63\u5728\u8BFB\u53D6\u542F\u52A8\u8BBE\u7F6E\u2026",
|
|
19000
19286
|
launchPathLoadError: "\u65E0\u6CD5\u8BFB\u53D6\u542F\u52A8\u8BBE\u7F6E\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u6B64\u8BE6\u60C5\u9762\u677F\u91CD\u8BD5\u3002",
|
|
19001
19287
|
launchPathSaveError: "\u4FDD\u5B58\u5931\u8D25\u3002\u8BF7\u586B\u5199\u6B64 Host \u4E0A\u5B9E\u9645\u5B58\u5728\u7684\u5B89\u88C5\u76EE\u5F55\u7EDD\u5BF9\u8DEF\u5F84\uFF0C\u5E76\u786E\u8BA4\u914D\u7F6E\u76EE\u5F55\u53EF\u5199\u3002",
|
|
19288
|
+
connectionOfficialWebsite: "\u8BBF\u95EE\u5B98\u7F51",
|
|
19002
19289
|
connectionOpenInstallation: "\u524D\u5F80\u5B98\u65B9\u5B89\u88C5\u9875\u9762",
|
|
19003
19290
|
connectionOpenHarnessWeb: "\u6253\u5F00 DeepSeek Harness Web",
|
|
19004
|
-
connectionDeepSeekTestedVersions: "\u652F\u6301 DSH \u7248\u672C\uFF1A0.1.
|
|
19291
|
+
connectionDeepSeekTestedVersions: "\u652F\u6301 DSH \u7248\u672C\uFF1A0.1.7-rc.1\u30010.1.7-rc.2\u30010.2.0-rc.1 \u548C 0.2.0-rc.2\u3002\u9AD8\u4E8E 0.2.0-rc.2 \u7684\u7248\u672C\u53EF\u4EE5\u5C1D\u8BD5\u8FDE\u63A5\uFF0C\u4F46\u9002\u914D\u5EA6\u53EF\u80FD\u6709\u9650\uFF1B\u4F4E\u4E8E 0.1.7-rc.1 \u7684\u7248\u672C\u9700\u8981\u5148\u5347\u7EA7\u3002",
|
|
19005
19292
|
connectionInstall: "\u5B89\u88C5",
|
|
19293
|
+
connectionLongContextLabel: "1M",
|
|
19294
|
+
connectionLongContextOn: "\u5F00\u542F\u540E: Claude \u6A21\u578B\u4F7F\u7528 1M \u4E0A\u4E0B\u6587\u3002Claude CLI \u4F1A\u5728\u672C\u5730\u6309\u8FD9\u4E2A\u66F4\u5927\u7684\u7A97\u53E3\u5DE5\u4F5C\u3002",
|
|
19295
|
+
connectionLongContextOff: "\u5173\u95ED\u540E: Claude \u6A21\u578B\u5C06\u4F7F\u7528 200k \u7A97\u53E3\u3002",
|
|
19296
|
+
connectionLongContextModelsLabel: "\u9002\u914D\u6A21\u578B:",
|
|
19006
19297
|
connectionInstallDescription: "\u5C1A\u672A\u68C0\u6D4B\u5230\u8BE5 Harness\u3002\u53EF\u4EE5\u590D\u5236\u5B98\u65B9\u5B89\u88C5\u547D\u4EE4\u3001\u590D\u5236\u5B89\u88C5 Prompt \u4EA4\u7ED9\u5176\u4ED6 Agent \u6267\u884C\uFF0C\u6216\u524D\u5F80\u5B98\u65B9\u5B89\u88C5\u9875\u9762\u3002\u5B89\u88C5\u5B8C\u6210\u540E\u8BF7\u8FD4\u56DE\u6B64\u9875\u9762\u91CD\u65B0\u68C0\u67E5\u3002",
|
|
19007
19298
|
connectionInstallCommand: "\u5B89\u88C5\u547D\u4EE4",
|
|
19008
19299
|
connectionCopyPrompt: "\u590D\u5236 Prompt",
|
|
19009
19300
|
connectionInstallPrompt: "\u8BF7\u5E2E\u6211\u5728\u672C\u673A\u5B89\u88C5 {name}\uFF08CLI \u547D\u4EE4\uFF1A{binary}\uFF09\u3002\n\n\u8BF7\u6309\u5B98\u65B9\u5B89\u88C5\u65B9\u5F0F\u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\uFF0C\u5E76\u5904\u7406 PATH\u3001\u6743\u9650\u548C\u4F9D\u8D56\u95EE\u9898\uFF1A\n{command}\n\n\u5B98\u65B9\u5B89\u88C5\u9875\u9762\uFF1A{url}\n\n\u5B89\u88C5\u5B8C\u6210\u540E\u8BF7\u9A8C\u8BC1 `{binary}` \u53EF\u4EE5\u5728\u7EC8\u7AEF\u4E2D\u8FD0\u884C\uFF0C\u5E76\u544A\u8BC9\u6211\u7ED3\u679C\u3002",
|
|
19301
|
+
connectionInstallRunning: "\u6B63\u5728\u6240\u9009 Host \u4E0A\u5B89\u88C5\uFF0C\u79BB\u5F00\u9875\u9762\u4E0D\u4F1A\u4E2D\u65AD\u3002\u5B89\u88C5\u540E\u53EF\u80FD\u4ECD\u9700\u767B\u5F55\u6216\u914D\u7F6E\u3002",
|
|
19010
19302
|
harnessVersionTitle: "Harness CLI \u7248\u672C",
|
|
19011
19303
|
harnessVersionCurrent: "\u5F53\u524D\u7248\u672C",
|
|
19012
19304
|
harnessVersionLatest: "\u6700\u65B0\u7248\u672C",
|
|
@@ -19209,7 +19501,7 @@ ${error51.stderrTail}`] : []
|
|
|
19209
19501
|
control.menu.style.left = `${placement.left}px`;
|
|
19210
19502
|
control.menu.style.bottom = `${placement.bottom}px`;
|
|
19211
19503
|
}
|
|
19212
|
-
function
|
|
19504
|
+
function popoverOpen2(menu) {
|
|
19213
19505
|
try {
|
|
19214
19506
|
return menu.matches(":popover-open");
|
|
19215
19507
|
} catch {
|
|
@@ -19294,7 +19586,7 @@ ${error51.stderrTail}`] : []
|
|
|
19294
19586
|
const rowsByAgent = /* @__PURE__ */ new Map();
|
|
19295
19587
|
const groupMessages = pickerGroupMessages();
|
|
19296
19588
|
const close = () => {
|
|
19297
|
-
if (!
|
|
19589
|
+
if (!popoverOpen2(menu)) return;
|
|
19298
19590
|
if (typeof menu.hidePopover === "function") menu.hidePopover();
|
|
19299
19591
|
else menu.hidden = true;
|
|
19300
19592
|
trigger.setAttribute("aria-expanded", "false");
|
|
@@ -19308,7 +19600,7 @@ ${error51.stderrTail}`] : []
|
|
|
19308
19600
|
target?.focus();
|
|
19309
19601
|
};
|
|
19310
19602
|
const open = (focus = "selected") => {
|
|
19311
|
-
if (trigger.disabled ||
|
|
19603
|
+
if (trigger.disabled || popoverOpen2(menu)) return;
|
|
19312
19604
|
setMenuPosition(control);
|
|
19313
19605
|
if (typeof menu.showPopover === "function") menu.showPopover();
|
|
19314
19606
|
else menu.hidden = false;
|
|
@@ -19589,7 +19881,7 @@ ${error51.stderrTail}`] : []
|
|
|
19589
19881
|
menu.append(mainGroup, morePanel, moreRow, cta);
|
|
19590
19882
|
root.append(trigger, menu);
|
|
19591
19883
|
const onTriggerClick = () => {
|
|
19592
|
-
if (
|
|
19884
|
+
if (popoverOpen2(menu)) close();
|
|
19593
19885
|
else open();
|
|
19594
19886
|
};
|
|
19595
19887
|
const onTriggerKeyDown = (event) => {
|
|
@@ -19618,10 +19910,10 @@ ${error51.stderrTail}`] : []
|
|
|
19618
19910
|
target?.focus();
|
|
19619
19911
|
};
|
|
19620
19912
|
const onToggle = () => {
|
|
19621
|
-
trigger.setAttribute("aria-expanded", String(
|
|
19913
|
+
trigger.setAttribute("aria-expanded", String(popoverOpen2(menu)));
|
|
19622
19914
|
};
|
|
19623
19915
|
const onViewportChange = () => {
|
|
19624
|
-
if (
|
|
19916
|
+
if (popoverOpen2(menu)) setMenuPosition(control);
|
|
19625
19917
|
};
|
|
19626
19918
|
trigger.addEventListener("click", onTriggerClick);
|
|
19627
19919
|
trigger.addEventListener("keydown", onTriggerKeyDown);
|
|
@@ -20562,7 +20854,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
20562
20854
|
var OPTION_CLASSES = "flex w-full cursor-interaction items-center gap-2 rounded-lg px-2 py-2 text-left text-sm text-token-foreground outline-none enabled:hover:bg-token-list-hover-background enabled:active:bg-token-foreground/15 disabled:cursor-not-allowed disabled:opacity-40";
|
|
20563
20855
|
var HEADING_CLASSES = "px-2 pb-1 pt-1.5 text-sm text-token-text-tertiary";
|
|
20564
20856
|
var MODEL_SCROLLBAR_STYLE_ATTRIBUTE = "data-codexhost-model-picker-scrollbar";
|
|
20565
|
-
function
|
|
20857
|
+
function popoverOpen3(menu) {
|
|
20566
20858
|
return menu.matches(":popover-open");
|
|
20567
20859
|
}
|
|
20568
20860
|
function ensureModelScrollbarStyle(ownerDocument) {
|
|
@@ -20836,31 +21128,31 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
20836
21128
|
searchInput.addEventListener(type, silenceForHarness);
|
|
20837
21129
|
}
|
|
20838
21130
|
const onSearchBlur = () => {
|
|
20839
|
-
if (!
|
|
21131
|
+
if (!popoverOpen3(modelMenu)) return;
|
|
20840
21132
|
const active = document.activeElement;
|
|
20841
21133
|
const movedToComposer = active === document.body || active instanceof Element && (active.matches('textarea, [contenteditable="true"], [role="textbox"]') || active.closest('textarea, [contenteditable="true"], [role="textbox"]') !== null);
|
|
20842
21134
|
if (!movedToComposer) return;
|
|
20843
21135
|
requestAnimationFrame(() => {
|
|
20844
|
-
if (
|
|
21136
|
+
if (popoverOpen3(modelMenu) && searchInput.isConnected && !modelMenu.contains(document.activeElement))
|
|
20845
21137
|
searchInput.focus();
|
|
20846
21138
|
});
|
|
20847
21139
|
};
|
|
20848
21140
|
searchInput.addEventListener("blur", onSearchBlur);
|
|
20849
21141
|
const closeModelMenu = () => {
|
|
20850
|
-
if (
|
|
21142
|
+
if (popoverOpen3(modelMenu)) modelMenu.hidePopover();
|
|
20851
21143
|
modelButton.setAttribute("aria-expanded", "false");
|
|
20852
21144
|
if (searchInput.value !== "") {
|
|
20853
21145
|
searchInput.value = "";
|
|
20854
21146
|
applyModelSearchFilter(control);
|
|
20855
21147
|
}
|
|
20856
21148
|
};
|
|
20857
|
-
const pickerOpen = () =>
|
|
21149
|
+
const pickerOpen = () => popoverOpen3(menu) || popoverOpen3(modelMenu);
|
|
20858
21150
|
const close = () => {
|
|
20859
21151
|
closeModelMenu();
|
|
20860
|
-
if (
|
|
21152
|
+
if (popoverOpen3(menu)) menu.hidePopover();
|
|
20861
21153
|
};
|
|
20862
21154
|
const openModelMenu = (standalone = false) => {
|
|
20863
|
-
if (!standalone && !
|
|
21155
|
+
if (!standalone && !popoverOpen3(menu) || popoverOpen3(modelMenu)) return;
|
|
20864
21156
|
control.favorites = readModelFavorites(control.harnessId);
|
|
20865
21157
|
orderModelFavorites(control);
|
|
20866
21158
|
modelMenu.scrollTop = 0;
|
|
@@ -20882,16 +21174,16 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
20882
21174
|
else open();
|
|
20883
21175
|
};
|
|
20884
21176
|
const onToggle = () => {
|
|
20885
|
-
const openState =
|
|
20886
|
-
trigger.setAttribute("aria-expanded", String(openState ||
|
|
21177
|
+
const openState = popoverOpen3(menu);
|
|
21178
|
+
trigger.setAttribute("aria-expanded", String(openState || popoverOpen3(modelMenu)));
|
|
20887
21179
|
trigger.setAttribute("data-state", openState ? "open" : "closed");
|
|
20888
21180
|
if (!openState) closeModelMenu();
|
|
20889
21181
|
};
|
|
20890
21182
|
const onModelToggle = () => {
|
|
20891
|
-
const openState =
|
|
21183
|
+
const openState = popoverOpen3(modelMenu);
|
|
20892
21184
|
modelButton.setAttribute("aria-expanded", String(openState));
|
|
20893
|
-
trigger.setAttribute("aria-expanded", String(openState ||
|
|
20894
|
-
trigger.setAttribute("data-state", openState ||
|
|
21185
|
+
trigger.setAttribute("aria-expanded", String(openState || popoverOpen3(menu)));
|
|
21186
|
+
trigger.setAttribute("data-state", openState || popoverOpen3(menu) ? "open" : "closed");
|
|
20895
21187
|
};
|
|
20896
21188
|
const onRootClick = (event) => {
|
|
20897
21189
|
const target = event.target instanceof Element ? event.target.closest("button") : null;
|
|
@@ -20931,7 +21223,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
20931
21223
|
};
|
|
20932
21224
|
const onModelHover = () => openModelMenu();
|
|
20933
21225
|
const onDocumentPointerDown = (event) => {
|
|
20934
|
-
if (!
|
|
21226
|
+
if (!popoverOpen3(menu) && !popoverOpen3(modelMenu)) return;
|
|
20935
21227
|
const target = event.target instanceof Node ? event.target : null;
|
|
20936
21228
|
if (target && (root.contains(target) || menu.contains(target) || modelMenu.contains(target))) {
|
|
20937
21229
|
return;
|
|
@@ -20940,14 +21232,14 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
20940
21232
|
};
|
|
20941
21233
|
const onDocumentKeyDown = (event) => {
|
|
20942
21234
|
if (event.key !== "Escape") return;
|
|
20943
|
-
if (!
|
|
21235
|
+
if (!popoverOpen3(menu) && !popoverOpen3(modelMenu)) return;
|
|
20944
21236
|
event.preventDefault();
|
|
20945
21237
|
close();
|
|
20946
21238
|
trigger.focus();
|
|
20947
21239
|
};
|
|
20948
21240
|
const onViewportChange = () => {
|
|
20949
|
-
if (
|
|
20950
|
-
else if (
|
|
21241
|
+
if (popoverOpen3(menu)) positionAdvancedMenus(control);
|
|
21242
|
+
else if (popoverOpen3(modelMenu)) positionModelMenu(control, true);
|
|
20951
21243
|
};
|
|
20952
21244
|
trigger.addEventListener("click", onTriggerClick);
|
|
20953
21245
|
menu.addEventListener("toggle", onToggle);
|
|
@@ -21081,7 +21373,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
21081
21373
|
}
|
|
21082
21374
|
orderModelFavorites(control);
|
|
21083
21375
|
applyModelSearchFilter(control);
|
|
21084
|
-
if (
|
|
21376
|
+
if (popoverOpen3(control.modelMenu)) control.searchInput.focus();
|
|
21085
21377
|
}
|
|
21086
21378
|
function renderRendererModelPicker(control, view, visible, harnessId = "", locale = "en") {
|
|
21087
21379
|
if (control.harnessId !== harnessId) {
|
|
@@ -21108,7 +21400,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
21108
21400
|
showThinkingSection: presentation.showThinkingSection,
|
|
21109
21401
|
modelLabel: presentation.modelLabel
|
|
21110
21402
|
});
|
|
21111
|
-
const keepOpenMenu =
|
|
21403
|
+
const keepOpenMenu = popoverOpen3(control.menu) && isTransientPickerState(view);
|
|
21112
21404
|
if (control.root.dataset.catalogSignature !== catalogSignature && !keepOpenMenu) {
|
|
21113
21405
|
rebuildOptions(control, view);
|
|
21114
21406
|
control.root.dataset.catalogSignature = catalogSignature;
|
|
@@ -21352,7 +21644,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
21352
21644
|
strokeWidth: 1.8
|
|
21353
21645
|
});
|
|
21354
21646
|
}
|
|
21355
|
-
function
|
|
21647
|
+
function popoverOpen4(menu) {
|
|
21356
21648
|
try {
|
|
21357
21649
|
return menu.matches(":popover-open");
|
|
21358
21650
|
} catch {
|
|
@@ -21467,7 +21759,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
21467
21759
|
trigger.setAttribute("aria-controls", menu.id);
|
|
21468
21760
|
const options = /* @__PURE__ */ new Map();
|
|
21469
21761
|
const close = () => {
|
|
21470
|
-
if (!
|
|
21762
|
+
if (!popoverOpen4(menu)) return;
|
|
21471
21763
|
if (typeof menu.hidePopover === "function") menu.hidePopover();
|
|
21472
21764
|
else menu.hidden = true;
|
|
21473
21765
|
trigger.setAttribute("aria-expanded", "false");
|
|
@@ -21480,7 +21772,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
21480
21772
|
target?.focus();
|
|
21481
21773
|
};
|
|
21482
21774
|
const open = (focus = "selected") => {
|
|
21483
|
-
if (trigger.disabled ||
|
|
21775
|
+
if (trigger.disabled || popoverOpen4(menu)) return;
|
|
21484
21776
|
positionMenu(control);
|
|
21485
21777
|
if (typeof menu.showPopover === "function") menu.showPopover();
|
|
21486
21778
|
else menu.hidden = false;
|
|
@@ -21489,7 +21781,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
21489
21781
|
queueMicrotask(() => focusOption(focus));
|
|
21490
21782
|
};
|
|
21491
21783
|
const onTriggerClick = () => {
|
|
21492
|
-
if (
|
|
21784
|
+
if (popoverOpen4(menu)) close();
|
|
21493
21785
|
else open();
|
|
21494
21786
|
};
|
|
21495
21787
|
const onTriggerKeyDown = (event) => {
|
|
@@ -21524,12 +21816,12 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
21524
21816
|
target?.focus();
|
|
21525
21817
|
};
|
|
21526
21818
|
const onToggle = () => {
|
|
21527
|
-
const openState =
|
|
21819
|
+
const openState = popoverOpen4(menu);
|
|
21528
21820
|
trigger.setAttribute("aria-expanded", String(openState));
|
|
21529
21821
|
trigger.setAttribute("data-state", openState ? "open" : "closed");
|
|
21530
21822
|
};
|
|
21531
21823
|
const onViewportChange = () => {
|
|
21532
|
-
if (
|
|
21824
|
+
if (popoverOpen4(menu)) positionMenu(control);
|
|
21533
21825
|
};
|
|
21534
21826
|
trigger.addEventListener("click", onTriggerClick);
|
|
21535
21827
|
trigger.addEventListener("keydown", onTriggerKeyDown);
|
|
@@ -23282,6 +23574,18 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
23282
23574
|
};
|
|
23283
23575
|
}
|
|
23284
23576
|
|
|
23577
|
+
// src/renderer-native-thread.ts
|
|
23578
|
+
function isRecord3(value) {
|
|
23579
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
23580
|
+
}
|
|
23581
|
+
async function verifyNativeCodexThread(sendRequest, threadId) {
|
|
23582
|
+
const native = await sendRequest("thread/read", { threadId, includeTurns: false });
|
|
23583
|
+
const thread = isRecord3(native) ? native.thread : null;
|
|
23584
|
+
if (!isRecord3(thread) || thread.id !== threadId || typeof thread.modelProvider !== "string" || !thread.modelProvider || thread.modelProvider === "codexhost" || typeof thread.cliVersion !== "string" || !thread.cliVersion || thread.cliVersion === "codexhost") {
|
|
23585
|
+
throw new Error("Native Thread response cannot establish Codex ownership");
|
|
23586
|
+
}
|
|
23587
|
+
}
|
|
23588
|
+
|
|
23285
23589
|
// src/renderer-session-import-client.ts
|
|
23286
23590
|
var RendererSessionImportUnavailableError = class extends Error {
|
|
23287
23591
|
constructor() {
|
|
@@ -23357,15 +23661,15 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
23357
23661
|
var CODEX_ACCOUNT_LIST_METHOD = "codexhost/account/list";
|
|
23358
23662
|
var CODEX_ACCOUNT_REFRESH_METHOD = "codexhost/account/refresh";
|
|
23359
23663
|
var CODEX_ACCOUNT_CHANGED_METHOD = "codexhost/account/changed";
|
|
23360
|
-
function
|
|
23664
|
+
function isRecord4(value) {
|
|
23361
23665
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
23362
23666
|
}
|
|
23363
23667
|
function notifiedThreadId(notification) {
|
|
23364
|
-
if (!
|
|
23668
|
+
if (!isRecord4(notification) || !THREAD_USAGE_REFRESH_METHODS.includes(notification.method)) {
|
|
23365
23669
|
return null;
|
|
23366
23670
|
}
|
|
23367
23671
|
const params = notification.params;
|
|
23368
|
-
if (!
|
|
23672
|
+
if (!isRecord4(params)) return null;
|
|
23369
23673
|
const parsed = hostThreadIdSchema.safeParse(params.threadId);
|
|
23370
23674
|
return parsed.success ? parsed.data : null;
|
|
23371
23675
|
}
|
|
@@ -23502,6 +23806,22 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
23502
23806
|
)
|
|
23503
23807
|
);
|
|
23504
23808
|
},
|
|
23809
|
+
async getHarnessLongContext(input) {
|
|
23810
|
+
return harnessLongContextSchema.parse(
|
|
23811
|
+
await manager.sendRequest(
|
|
23812
|
+
HARNESS_LONG_CONTEXT_GET_METHOD,
|
|
23813
|
+
harnessLongContextGetSchema.parse(input)
|
|
23814
|
+
)
|
|
23815
|
+
);
|
|
23816
|
+
},
|
|
23817
|
+
async setHarnessLongContext(input) {
|
|
23818
|
+
return harnessLongContextSchema.parse(
|
|
23819
|
+
await manager.sendRequest(
|
|
23820
|
+
HARNESS_LONG_CONTEXT_SET_METHOD,
|
|
23821
|
+
harnessLongContextSetSchema.parse(input)
|
|
23822
|
+
)
|
|
23823
|
+
);
|
|
23824
|
+
},
|
|
23505
23825
|
async listLoadedSessions() {
|
|
23506
23826
|
return loadedSessionsSchema.parse(await manager.sendRequest(LOADED_SESSIONS_METHOD, {}));
|
|
23507
23827
|
},
|
|
@@ -23537,14 +23857,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
23537
23857
|
result = await manager.sendRequest(THREAD_INSPECT_METHOD, params);
|
|
23538
23858
|
} catch (error51) {
|
|
23539
23859
|
if (!(error51 instanceof RendererMethodUnavailableError)) throw error51;
|
|
23540
|
-
|
|
23541
|
-
threadId: params.threadId,
|
|
23542
|
-
includeTurns: false
|
|
23543
|
-
});
|
|
23544
|
-
const thread = isRecord3(native) ? native.thread : null;
|
|
23545
|
-
if (!isRecord3(thread) || thread.id !== params.threadId || typeof thread.modelProvider !== "string" || !thread.modelProvider || thread.modelProvider === "codexhost" || typeof thread.cliVersion !== "string" || !thread.cliVersion || thread.cliVersion === "codexhost") {
|
|
23546
|
-
throw new Error("Native Thread response cannot establish Codex ownership");
|
|
23547
|
-
}
|
|
23860
|
+
await verifyNativeCodexThread(manager.sendRequest, params.threadId);
|
|
23548
23861
|
return { owner: "codex", locked: true };
|
|
23549
23862
|
}
|
|
23550
23863
|
return threadInspectionSchema.parse(result);
|
|
@@ -23682,7 +23995,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
23682
23995
|
throw new Error("Renderer Account notification callback is unavailable");
|
|
23683
23996
|
}
|
|
23684
23997
|
return notifications.addNotificationCallback(CODEX_ACCOUNT_CHANGED_METHOD, (notification) => {
|
|
23685
|
-
if (!
|
|
23998
|
+
if (!isRecord4(notification) || notification.method !== CODEX_ACCOUNT_CHANGED_METHOD) return;
|
|
23686
23999
|
const state = codexAccountChangedSchema.safeParse(notification.params);
|
|
23687
24000
|
if (state.success) listener(state.data);
|
|
23688
24001
|
});
|
|
@@ -23691,16 +24004,16 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
23691
24004
|
}
|
|
23692
24005
|
|
|
23693
24006
|
// src/renderer-external-queue.ts
|
|
23694
|
-
function
|
|
24007
|
+
function isRecord5(value) {
|
|
23695
24008
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
23696
24009
|
}
|
|
23697
24010
|
function installRendererExternalQueue(target) {
|
|
23698
|
-
if (!
|
|
24011
|
+
if (!isRecord5(target) || typeof target.getTurnCoordinator !== "function" || typeof target.getConversation !== "function") {
|
|
23699
24012
|
return null;
|
|
23700
24013
|
}
|
|
23701
24014
|
const coordinator = target.getTurnCoordinator();
|
|
23702
|
-
const queue =
|
|
23703
|
-
if (!
|
|
24015
|
+
const queue = isRecord5(coordinator) ? coordinator.serverQueue : null;
|
|
24016
|
+
if (!isRecord5(queue) || typeof queue.isEnabled !== "function") return null;
|
|
23704
24017
|
const descriptor = Object.getOwnPropertyDescriptor(queue, "isEnabled");
|
|
23705
24018
|
if (!descriptor?.writable) return null;
|
|
23706
24019
|
const original = queue.isEnabled;
|
|
@@ -23709,7 +24022,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
23709
24022
|
const threadId = args[0];
|
|
23710
24023
|
if (typeof threadId === "string") {
|
|
23711
24024
|
const conversation = getConversation.call(target, threadId);
|
|
23712
|
-
if (
|
|
24025
|
+
if (isRecord5(conversation) && conversation.id === threadId && // Reserved transport marker from externalThreadValue, retained by
|
|
23713
24026
|
// Desktop in both newly created and hydrated conversation metadata.
|
|
23714
24027
|
conversation.modelProvider === "codexhost") {
|
|
23715
24028
|
return false;
|
|
@@ -23724,19 +24037,20 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
23724
24037
|
}
|
|
23725
24038
|
|
|
23726
24039
|
// src/renderer-external-steering.ts
|
|
23727
|
-
|
|
24040
|
+
var THREAD_OWNERSHIP_LIST_METHOD2 = "codexhost/thread/ownership/list";
|
|
24041
|
+
function isRecord6(value) {
|
|
23728
24042
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
23729
24043
|
}
|
|
23730
24044
|
function isManager(value) {
|
|
23731
|
-
return
|
|
24045
|
+
return isRecord6(value) && ["sendRequest", "steerTurn", "startTurn", "getTurnCoordinator"].every(
|
|
23732
24046
|
(key) => typeof value[key] === "function"
|
|
23733
24047
|
);
|
|
23734
24048
|
}
|
|
23735
24049
|
function submissionHost(manager) {
|
|
23736
24050
|
const coordinator = manager.getTurnCoordinator();
|
|
23737
|
-
const options =
|
|
23738
|
-
const host =
|
|
23739
|
-
if (!
|
|
24051
|
+
const options = isRecord6(coordinator) ? coordinator.options : null;
|
|
24052
|
+
const host = isRecord6(options) ? options.submissionHost : null;
|
|
24053
|
+
if (!isRecord6(host) || typeof host.getActiveTurnId !== "function" || typeof host.hasPendingTurnStart !== "function") {
|
|
23740
24054
|
throw new Error("Desktop turn submission binding is unavailable");
|
|
23741
24055
|
}
|
|
23742
24056
|
return {
|
|
@@ -23778,20 +24092,20 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
23778
24092
|
var INTERRUPTED_QUEUE_REASON = "Interrupted before the steer was accepted.";
|
|
23779
24093
|
async function preserveQueuedFollowUps(manager, threadId) {
|
|
23780
24094
|
const coordinator = manager.getTurnCoordinator();
|
|
23781
|
-
if (!
|
|
24095
|
+
if (!isRecord6(coordinator) || typeof coordinator.loadMessages !== "function" || typeof coordinator.readMessages !== "function" || typeof coordinator.mutate !== "function") {
|
|
23782
24096
|
throw new Error("Desktop follow-up queue binding is unavailable");
|
|
23783
24097
|
}
|
|
23784
24098
|
await coordinator.loadMessages.call(coordinator, threadId);
|
|
23785
24099
|
const messages = coordinator.readMessages.call(coordinator, threadId);
|
|
23786
24100
|
if (!Array.isArray(messages)) throw new Error("Desktop follow-up queue is unavailable");
|
|
23787
24101
|
const alreadyPaused = new Set(
|
|
23788
|
-
messages.filter((message) =>
|
|
24102
|
+
messages.filter((message) => isRecord6(message) && message.pausedReason != null).map((message) => message.id)
|
|
23789
24103
|
);
|
|
23790
24104
|
return () => {
|
|
23791
24105
|
coordinator.mutate.call(coordinator, threadId, (current) => {
|
|
23792
24106
|
if (!Array.isArray(current)) return current;
|
|
23793
24107
|
return current.map((message) => {
|
|
23794
|
-
if (!
|
|
24108
|
+
if (!isRecord6(message) || alreadyPaused.has(message.id) || message.pausedReason !== INTERRUPTED_QUEUE_REASON)
|
|
23795
24109
|
return message;
|
|
23796
24110
|
const resumed = { ...message };
|
|
23797
24111
|
delete resumed.pausedReason;
|
|
@@ -23809,9 +24123,9 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
23809
24123
|
const pending = /* @__PURE__ */ new Map();
|
|
23810
24124
|
let disposed = false;
|
|
23811
24125
|
const send = function(method, params, options) {
|
|
23812
|
-
const messageId =
|
|
23813
|
-
const route = typeof messageId === "string" &&
|
|
23814
|
-
if (method !== "turn/start" || !
|
|
24126
|
+
const messageId = isRecord6(params) ? params.clientUserMessageId : null;
|
|
24127
|
+
const route = typeof messageId === "string" && isRecord6(params) ? routes.get(`${params.threadId}\0${messageId}`) : void 0;
|
|
24128
|
+
if (method !== "turn/start" || !isRecord6(params) || !route || route.threadId !== params.threadId) {
|
|
23815
24129
|
return originalSend.call(manager, method, params, options);
|
|
23816
24130
|
}
|
|
23817
24131
|
if (disposed) return Promise.reject(new Error("External steering binding was disposed"));
|
|
@@ -23830,7 +24144,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
23830
24144
|
options
|
|
23831
24145
|
)
|
|
23832
24146
|
).then((response) => {
|
|
23833
|
-
if (!
|
|
24147
|
+
if (!isRecord6(response) || typeof response.turnId !== "string" || !response.turnId) {
|
|
23834
24148
|
throw new Error("External steering returned no replacement Turn identity");
|
|
23835
24149
|
}
|
|
23836
24150
|
return {
|
|
@@ -23861,7 +24175,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
23861
24175
|
] = args;
|
|
23862
24176
|
if (typeof threadId !== "string") return originalSteer.apply(manager, args);
|
|
23863
24177
|
const role = manager.getStreamRole?.(threadId);
|
|
23864
|
-
if (
|
|
24178
|
+
if (isRecord6(role) && role.role === "follower") return originalSteer.apply(manager, args);
|
|
23865
24179
|
let host = null;
|
|
23866
24180
|
let expectedTurnId;
|
|
23867
24181
|
try {
|
|
@@ -23869,26 +24183,36 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
23869
24183
|
expectedTurnId = host.getActiveTurnId(threadId);
|
|
23870
24184
|
} catch {
|
|
23871
24185
|
}
|
|
23872
|
-
|
|
23873
|
-
|
|
24186
|
+
let ownershipResponse;
|
|
24187
|
+
try {
|
|
24188
|
+
ownershipResponse = await originalSend.call(manager, THREAD_OWNERSHIP_LIST_METHOD2, {
|
|
23874
24189
|
threadIds: [threadId]
|
|
23875
|
-
})
|
|
23876
|
-
)
|
|
24190
|
+
});
|
|
24191
|
+
} catch (error51) {
|
|
24192
|
+
if (!isUnsupportedMethod(error51, THREAD_OWNERSHIP_LIST_METHOD2)) throw error51;
|
|
24193
|
+
await verifyNativeCodexThread(
|
|
24194
|
+
(method, params) => originalSend.call(manager, method, params),
|
|
24195
|
+
threadId
|
|
24196
|
+
);
|
|
24197
|
+
if (disposed) throw new Error("External steering binding was disposed");
|
|
24198
|
+
return originalSteer.apply(manager, args);
|
|
24199
|
+
}
|
|
24200
|
+
const ownership = threadOwnershipListResultSchema.parse(ownershipResponse);
|
|
23877
24201
|
const owner = ownership.threads.find((thread) => thread.threadId === threadId)?.owner;
|
|
23878
24202
|
if (!owner) throw new Error("Thread ownership could not be resolved for steering");
|
|
23879
24203
|
if (disposed) throw new Error("External steering binding was disposed");
|
|
23880
24204
|
if (owner === "codex") return originalSteer.apply(manager, args);
|
|
23881
24205
|
if (!host) throw new Error("Desktop turn submission binding is unavailable");
|
|
23882
24206
|
const currentRole = manager.getStreamRole?.(threadId);
|
|
23883
|
-
if (
|
|
24207
|
+
if (isRecord6(currentRole) && currentRole.role === "follower")
|
|
23884
24208
|
return originalSteer.apply(manager, args);
|
|
23885
24209
|
if (!Array.isArray(input) || input.length === 0 || input.some(
|
|
23886
|
-
(item) => !
|
|
23887
|
-
) || !input.some((item) =>
|
|
24210
|
+
(item) => !isRecord6(item) || item.type !== "text" || typeof item.text !== "string"
|
|
24211
|
+
) || !input.some((item) => isRecord6(item) && typeof item.text === "string" && item.text.trim())) {
|
|
23888
24212
|
throw new Error("External steering requires non-empty text input");
|
|
23889
24213
|
}
|
|
23890
24214
|
if (toolOutput != null) throw new Error("External steering cannot replace a tool response");
|
|
23891
|
-
if (!
|
|
24215
|
+
if (!isRecord6(restoreMessage) || !isRecord6(restoreMessage.context)) {
|
|
23892
24216
|
throw new Error("Desktop steering message context is unavailable");
|
|
23893
24217
|
}
|
|
23894
24218
|
const messageId = typeof clientUserMessageId === "string" && clientUserMessageId ? clientUserMessageId : typeof restoreMessage.id === "string" && restoreMessage.id ? restoreMessage.id : crypto.randomUUID();
|
|
@@ -23936,7 +24260,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
23936
24260
|
},
|
|
23937
24261
|
onMessageAdded
|
|
23938
24262
|
);
|
|
23939
|
-
if (!
|
|
24263
|
+
if (!isRecord6(response) || !isRecord6(response.turn) || typeof response.turn.id !== "string") {
|
|
23940
24264
|
throw new Error("Desktop returned no replacement Turn identity");
|
|
23941
24265
|
}
|
|
23942
24266
|
try {
|
|
@@ -24004,11 +24328,11 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
24004
24328
|
}
|
|
24005
24329
|
|
|
24006
24330
|
// src/renderer-manual-compaction.ts
|
|
24007
|
-
function
|
|
24331
|
+
function isRecord7(value) {
|
|
24008
24332
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
24009
24333
|
}
|
|
24010
24334
|
function installRendererManualCompaction(target, hostId, messages) {
|
|
24011
|
-
if (!messages || typeof messages.addEventListener !== "function" || typeof messages.removeEventListener !== "function" || !
|
|
24335
|
+
if (!messages || typeof messages.addEventListener !== "function" || typeof messages.removeEventListener !== "function" || !isRecord7(target) || typeof target.registerPendingManualContextCompaction !== "function" || typeof target.getConversation !== "function") {
|
|
24012
24336
|
return null;
|
|
24013
24337
|
}
|
|
24014
24338
|
const register = target.registerPendingManualContextCompaction;
|
|
@@ -24017,18 +24341,18 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
24017
24341
|
const listener = (event) => {
|
|
24018
24342
|
if (event.source != null && event.source !== messages) return;
|
|
24019
24343
|
const message = event.data;
|
|
24020
|
-
if (!
|
|
24344
|
+
if (!isRecord7(message) || message.type !== "mcp-notification" || message.hostId !== hostId || message.method !== THREAD_MANUAL_COMPACTION_STARTED_METHOD) {
|
|
24021
24345
|
return;
|
|
24022
24346
|
}
|
|
24023
24347
|
const params = threadManualCompactionStartedSchema.safeParse(message.params);
|
|
24024
24348
|
if (!params.success) return;
|
|
24025
24349
|
const { threadId } = params.data;
|
|
24026
24350
|
const conversation = getConversation.call(target, threadId);
|
|
24027
|
-
if (!
|
|
24351
|
+
if (!isRecord7(conversation) || conversation.id !== threadId || conversation.modelProvider !== "codexhost") {
|
|
24028
24352
|
return;
|
|
24029
24353
|
}
|
|
24030
24354
|
const role = getStreamRole?.call(target, threadId);
|
|
24031
|
-
if (
|
|
24355
|
+
if (isRecord7(role) && role.role === "follower") return;
|
|
24032
24356
|
register.call(target, threadId);
|
|
24033
24357
|
};
|
|
24034
24358
|
messages.addEventListener("message", listener);
|
|
@@ -24208,7 +24532,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
24208
24532
|
var SIDEBAR_EXTERNAL_THREAD_ATTRIBUTE = "data-codexhost-sidebar-external-thread";
|
|
24209
24533
|
var OWNERSHIP_RETRY_DELAYS_MS = [100, 300, 800, 1500, 3e3];
|
|
24210
24534
|
var PIN_REPLAY_RETRY_DELAYS_MS = [50, 150, 300];
|
|
24211
|
-
function
|
|
24535
|
+
function isRecord8(value) {
|
|
24212
24536
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
24213
24537
|
}
|
|
24214
24538
|
function sidebarThreadAttributes(element) {
|
|
@@ -24235,19 +24559,19 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
24235
24559
|
const fiberName = fiberNames[0];
|
|
24236
24560
|
if (fiberNames.length !== 1 || !fiberName) return null;
|
|
24237
24561
|
const firstFiber2 = Object.getOwnPropertyDescriptor(element, fiberName)?.value;
|
|
24238
|
-
if (!
|
|
24562
|
+
if (!isRecord8(firstFiber2)) return null;
|
|
24239
24563
|
const candidates = /* @__PURE__ */ new Set();
|
|
24240
24564
|
let fiber = firstFiber2;
|
|
24241
24565
|
for (let depth = 0; fiber && depth < 12; depth += 1) {
|
|
24242
24566
|
const props = fiber.memoizedProps;
|
|
24243
|
-
if (
|
|
24567
|
+
if (isRecord8(props) && isRecord8(props.dataAttributes)) {
|
|
24244
24568
|
const dataAttributes = props.dataAttributes;
|
|
24245
24569
|
const threadId = hostThreadIdSchema.safeParse(props.conversationId);
|
|
24246
24570
|
if (threadId.success && dataAttributes[SIDEBAR_THREAD_ROW_ATTRIBUTE] === rowMarker && dataAttributes[SIDEBAR_THREAD_ID_ATTRIBUTE] === taskKey && dataAttributes[SIDEBAR_THREAD_HOST_ID_ATTRIBUTE] === hostId) {
|
|
24247
24571
|
candidates.add(threadId.data);
|
|
24248
24572
|
}
|
|
24249
24573
|
}
|
|
24250
|
-
fiber =
|
|
24574
|
+
fiber = isRecord8(fiber.return) ? fiber.return : null;
|
|
24251
24575
|
}
|
|
24252
24576
|
return candidates.size === 1 ? candidates.values().next().value ?? null : null;
|
|
24253
24577
|
}
|
|
@@ -24676,7 +25000,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
24676
25000
|
if (row) finish(row);
|
|
24677
25001
|
});
|
|
24678
25002
|
}
|
|
24679
|
-
function
|
|
25003
|
+
function isRecord9(value) {
|
|
24680
25004
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
24681
25005
|
}
|
|
24682
25006
|
function firstFiber(element) {
|
|
@@ -24686,7 +25010,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
24686
25010
|
const name = names[0];
|
|
24687
25011
|
if (names.length !== 1 || !name) return null;
|
|
24688
25012
|
const value = Object.getOwnPropertyDescriptor(element, name)?.value;
|
|
24689
|
-
return
|
|
25013
|
+
return isRecord9(value) ? value : null;
|
|
24690
25014
|
}
|
|
24691
25015
|
function directForkAncestors(first) {
|
|
24692
25016
|
const ancestors = [];
|
|
@@ -24696,7 +25020,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
24696
25020
|
if (seen.has(fiber)) return [];
|
|
24697
25021
|
seen.add(fiber);
|
|
24698
25022
|
ancestors.push(fiber);
|
|
24699
|
-
fiber =
|
|
25023
|
+
fiber = isRecord9(fiber.return) ? fiber.return : null;
|
|
24700
25024
|
}
|
|
24701
25025
|
return ancestors;
|
|
24702
25026
|
}
|
|
@@ -24714,7 +25038,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
24714
25038
|
let hasForkCallback = false;
|
|
24715
25039
|
for (const fiber of ancestors) {
|
|
24716
25040
|
const props = fiber.memoizedProps;
|
|
24717
|
-
if (!
|
|
25041
|
+
if (!isRecord9(props)) continue;
|
|
24718
25042
|
if (!hasForkCallback && typeof props.onFork !== "function" && ownsOtherCallback(fiber, props)) {
|
|
24719
25043
|
return null;
|
|
24720
25044
|
}
|
|
@@ -24746,7 +25070,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
24746
25070
|
if (!threadId.success || !turnId.success) return null;
|
|
24747
25071
|
const fiber = firstFiber(button);
|
|
24748
25072
|
const buttonProps = fiber?.memoizedProps;
|
|
24749
|
-
if (!fiber || !
|
|
25073
|
+
if (!fiber || !isRecord9(buttonProps) || !Object.hasOwn(buttonProps, "aria-busy")) return null;
|
|
24750
25074
|
return forkTargetFromAncestors(button, threadId.data, turnId.data, directForkAncestors(fiber)) ?? forkTargetFromAncestors(button, threadId.data, turnId.data, committedReactAncestors(fiber));
|
|
24751
25075
|
}
|
|
24752
25076
|
var BrowserRendererForkDom = class {
|
|
@@ -24854,7 +25178,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
24854
25178
|
if (agent === "codex") return null;
|
|
24855
25179
|
return encodeHarnessPluginRoute({ harnessId: harnessPluginIdSchema.parse(agent) });
|
|
24856
25180
|
}
|
|
24857
|
-
function
|
|
25181
|
+
function isRecord10(value) {
|
|
24858
25182
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
24859
25183
|
}
|
|
24860
25184
|
function piTransportModelId(model, thinkingOptionId) {
|
|
@@ -25113,7 +25437,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
25113
25437
|
let fiber = findComposerFiber(composer);
|
|
25114
25438
|
for (let depth = 0; fiber && depth < 120; depth += 1) {
|
|
25115
25439
|
const props = fiber.memoizedProps;
|
|
25116
|
-
if (
|
|
25440
|
+
if (isRecord10(props) && "conversationId" in props && props.conversationId != null) {
|
|
25117
25441
|
const candidate = hostThreadIdSchema.safeParse(props.conversationId);
|
|
25118
25442
|
if (!candidate.success || threadId !== void 0 && threadId !== candidate.data) {
|
|
25119
25443
|
return null;
|
|
@@ -25126,12 +25450,12 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
25126
25450
|
return threadId;
|
|
25127
25451
|
}
|
|
25128
25452
|
function isLegacySevenSlotDraftWrapper(value) {
|
|
25129
|
-
if (!Array.isArray(value) || value.length !== 7 || value[3] !== value[5] || value[3] !== value[6] || !
|
|
25453
|
+
if (!Array.isArray(value) || value.length !== 7 || value[3] !== value[5] || value[3] !== value[6] || !isRecord10(value[3]) || typeof value[3].get !== "function" || typeof value[2] !== "string" && value[2] !== null) {
|
|
25130
25454
|
return false;
|
|
25131
25455
|
}
|
|
25132
25456
|
try {
|
|
25133
25457
|
const draft = value[3].get();
|
|
25134
|
-
return
|
|
25458
|
+
return isRecord10(draft) && "modelSettings" in draft && "isManuallyChanged" in draft;
|
|
25135
25459
|
} catch {
|
|
25136
25460
|
return false;
|
|
25137
25461
|
}
|
|
@@ -25165,8 +25489,8 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
25165
25489
|
let fiber = findComposerFiber(composer);
|
|
25166
25490
|
for (let depth = 0; fiber && depth < 120; depth += 1) {
|
|
25167
25491
|
const updateQueue = fiber.updateQueue;
|
|
25168
|
-
const memoCache =
|
|
25169
|
-
const data =
|
|
25492
|
+
const memoCache = isRecord10(updateQueue) ? updateQueue.memoCache : null;
|
|
25493
|
+
const data = isRecord10(memoCache) && Array.isArray(memoCache.data) ? memoCache.data : [];
|
|
25170
25494
|
for (const value of data) {
|
|
25171
25495
|
const draftId = draftIdFromMemoValue(value);
|
|
25172
25496
|
if (draftId) draftIds.add(draftId);
|
|
@@ -25193,7 +25517,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
25193
25517
|
return ["default", draftIds.values().next().value];
|
|
25194
25518
|
}
|
|
25195
25519
|
function isDraftPrewarmPolicyReady(value) {
|
|
25196
|
-
return
|
|
25520
|
+
return isRecord10(value) && value.state === "ready" && typeof value.hostId === "string" && value.hostId.length > 0 && typeof value.select === "function" && typeof value.clear === "function";
|
|
25197
25521
|
}
|
|
25198
25522
|
async function waitForRendererDraftPrewarmPolicy(target, composer) {
|
|
25199
25523
|
const deadline = Date.now() + DRAFT_PREWARM_POLICY_WAIT_TIMEOUT_MS;
|
|
@@ -25437,16 +25761,16 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
25437
25761
|
}
|
|
25438
25762
|
|
|
25439
25763
|
// src/renderer-subagent-thread-model.ts
|
|
25440
|
-
function
|
|
25764
|
+
function isRecord11(value) {
|
|
25441
25765
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
25442
25766
|
}
|
|
25443
25767
|
function nonBlank(value) {
|
|
25444
25768
|
return typeof value === "string" && value.trim().length > 0;
|
|
25445
25769
|
}
|
|
25446
25770
|
function threadFromReadResult(value, expectedThreadId) {
|
|
25447
|
-
if (!
|
|
25448
|
-
const directThread =
|
|
25449
|
-
const nestedThread =
|
|
25771
|
+
if (!isRecord11(value)) return null;
|
|
25772
|
+
const directThread = isRecord11(value.thread) ? value.thread : null;
|
|
25773
|
+
const nestedThread = isRecord11(value.result) && isRecord11(value.result.thread) ? value.result.thread : null;
|
|
25450
25774
|
const thread = directThread ?? nestedThread;
|
|
25451
25775
|
if (!thread) return null;
|
|
25452
25776
|
if (expectedThreadId && (!nonBlank(thread.id) || thread.id.trim() !== expectedThreadId)) {
|
|
@@ -25460,7 +25784,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
25460
25784
|
if (typeof policy?.requestTarget !== "function") return null;
|
|
25461
25785
|
try {
|
|
25462
25786
|
const target = policy.requestTarget();
|
|
25463
|
-
return
|
|
25787
|
+
return isRecord11(target) && typeof target.sendRequest === "function" ? target : null;
|
|
25464
25788
|
} catch {
|
|
25465
25789
|
return null;
|
|
25466
25790
|
}
|
|
@@ -25501,10 +25825,10 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
25501
25825
|
function subagentStatusFromReadResult(value, expectedThreadId) {
|
|
25502
25826
|
const thread = threadFromReadResult(value, expectedThreadId);
|
|
25503
25827
|
if (!thread) return null;
|
|
25504
|
-
const threadStatus =
|
|
25828
|
+
const threadStatus = isRecord11(thread.status) && nonBlank(thread.status.type) ? thread.status.type : void 0;
|
|
25505
25829
|
if (threadStatus === "systemError") return "failed";
|
|
25506
25830
|
const turns = Array.isArray(thread.turns) ? thread.turns : [];
|
|
25507
|
-
const lastTurn = [...turns].reverse().find(
|
|
25831
|
+
const lastTurn = [...turns].reverse().find(isRecord11);
|
|
25508
25832
|
const turnStatus = lastTurn && nonBlank(lastTurn.status) ? lastTurn.status : void 0;
|
|
25509
25833
|
if (turnStatus === "completed") return "completed";
|
|
25510
25834
|
if (turnStatus === "failed") return "failed";
|
|
@@ -25648,7 +25972,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
25648
25972
|
var SUBAGENT_ROW_COPY_ATTRIBUTE = "data-codexhost-subagent-copy";
|
|
25649
25973
|
var SUBAGENT_ITEM_BUTTON_SELECTOR = 'button[data-slot="thread-summary-panel-item-button"]';
|
|
25650
25974
|
var SUBAGENT_ITEM_LABEL_SELECTOR = '[data-slot="thread-summary-panel-item-label"]';
|
|
25651
|
-
function
|
|
25975
|
+
function isRecord12(value) {
|
|
25652
25976
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
25653
25977
|
}
|
|
25654
25978
|
function nonBlank2(value) {
|
|
@@ -25766,12 +26090,12 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
25766
26090
|
if (nonBlank2(source.status) && !target.status) {
|
|
25767
26091
|
target.status = source.status.trim();
|
|
25768
26092
|
}
|
|
25769
|
-
if (
|
|
26093
|
+
if (isRecord12(source.agentState) && nonBlank2(source.agentState.status) && !target.status) {
|
|
25770
26094
|
target.status = source.agentState.status.trim();
|
|
25771
26095
|
}
|
|
25772
|
-
if (
|
|
26096
|
+
if (isRecord12(source.agentsStates) && target.conversationId) {
|
|
25773
26097
|
const state = source.agentsStates[target.conversationId];
|
|
25774
|
-
if (
|
|
26098
|
+
if (isRecord12(state) && nonBlank2(state.status) && !target.status) {
|
|
25775
26099
|
target.status = state.status.trim();
|
|
25776
26100
|
}
|
|
25777
26101
|
}
|
|
@@ -25782,28 +26106,28 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
25782
26106
|
if (Array.isArray(item.receiverThreadIds) && item.receiverThreadIds.includes(conversationId)) {
|
|
25783
26107
|
return true;
|
|
25784
26108
|
}
|
|
25785
|
-
return
|
|
26109
|
+
return isRecord12(item.agentsStates) && conversationId in item.agentsStates;
|
|
25786
26110
|
}
|
|
25787
26111
|
function harvestFromValue(value, target) {
|
|
25788
|
-
if (!
|
|
26112
|
+
if (!isRecord12(value)) return;
|
|
25789
26113
|
contribute(target, value);
|
|
25790
26114
|
const nested = [
|
|
25791
|
-
|
|
25792
|
-
|
|
25793
|
-
|
|
25794
|
-
|
|
25795
|
-
|
|
25796
|
-
|
|
26115
|
+
isRecord12(value.row) ? value.row : null,
|
|
26116
|
+
isRecord12(value.backgroundAgent) ? value.backgroundAgent : null,
|
|
26117
|
+
isRecord12(value.item) ? value.item : null,
|
|
26118
|
+
isRecord12(value.item) && isRecord12(value.item.backgroundAgent) ? value.item.backgroundAgent : null,
|
|
26119
|
+
isRecord12(value.thread) && (!target.conversationId || nonBlank2(value.thread.id) && value.thread.id.trim() === target.conversationId) ? value.thread : null,
|
|
26120
|
+
isRecord12(value.childConversation) ? value.childConversation : null
|
|
25797
26121
|
];
|
|
25798
26122
|
for (const source of nested) {
|
|
25799
26123
|
if (source) contribute(target, source);
|
|
25800
26124
|
}
|
|
25801
26125
|
if (!target.conversationId) return;
|
|
25802
26126
|
const items = Array.isArray(value.items) ? value.items : Array.isArray(value.turns) ? value.turns.flatMap(
|
|
25803
|
-
(turn) =>
|
|
26127
|
+
(turn) => isRecord12(turn) && Array.isArray(turn.items) ? turn.items : []
|
|
25804
26128
|
) : [];
|
|
25805
26129
|
for (const item of items) {
|
|
25806
|
-
if (!
|
|
26130
|
+
if (!isRecord12(item)) continue;
|
|
25807
26131
|
if (collabMatches(item, target.conversationId)) contribute(target, item, true);
|
|
25808
26132
|
}
|
|
25809
26133
|
}
|
|
@@ -25870,7 +26194,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
25870
26194
|
const name = names[0];
|
|
25871
26195
|
if (!name) return null;
|
|
25872
26196
|
const fiber = Object.getOwnPropertyDescriptor(element, name)?.value ?? element[name];
|
|
25873
|
-
return
|
|
26197
|
+
return isRecord12(fiber) ? fiber : null;
|
|
25874
26198
|
}
|
|
25875
26199
|
function metaFromFiberProps(fiber) {
|
|
25876
26200
|
if (!fiber) return null;
|
|
@@ -25899,7 +26223,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
25899
26223
|
};
|
|
25900
26224
|
}
|
|
25901
26225
|
function metaFromDescendants(start2) {
|
|
25902
|
-
if (!start2 || !
|
|
26226
|
+
if (!start2 || !isRecord12(start2.child)) return null;
|
|
25903
26227
|
const stack = [start2.child];
|
|
25904
26228
|
const seen = /* @__PURE__ */ new Set();
|
|
25905
26229
|
let found = null;
|
|
@@ -25910,8 +26234,8 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
25910
26234
|
seen.add(fiber);
|
|
25911
26235
|
steps += 1;
|
|
25912
26236
|
found = mergeRow(found, metaFromFiberProps(fiber));
|
|
25913
|
-
if (
|
|
25914
|
-
if (
|
|
26237
|
+
if (isRecord12(fiber.child)) stack.push(fiber.child);
|
|
26238
|
+
if (isRecord12(fiber.sibling)) stack.push(fiber.sibling);
|
|
25915
26239
|
}
|
|
25916
26240
|
return found;
|
|
25917
26241
|
}
|
|
@@ -25920,7 +26244,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
25920
26244
|
let found = metaFromDescendants(fiber);
|
|
25921
26245
|
for (let depth = 0; fiber && depth < 12; depth += 1) {
|
|
25922
26246
|
found = mergeRow(found, metaFromFiberProps(fiber));
|
|
25923
|
-
fiber =
|
|
26247
|
+
fiber = isRecord12(fiber.return) ? fiber.return : null;
|
|
25924
26248
|
}
|
|
25925
26249
|
return found;
|
|
25926
26250
|
}
|
|
@@ -26107,11 +26431,11 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
26107
26431
|
return null;
|
|
26108
26432
|
}
|
|
26109
26433
|
}
|
|
26110
|
-
function
|
|
26434
|
+
function isRecord13(value) {
|
|
26111
26435
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
26112
26436
|
}
|
|
26113
26437
|
function parseExternalConfiguration(value) {
|
|
26114
|
-
if (!
|
|
26438
|
+
if (!isRecord13(value)) return void 0;
|
|
26115
26439
|
const model = harnessModelRefSchema.safeParse(value.model);
|
|
26116
26440
|
if (!model.success) return void 0;
|
|
26117
26441
|
const thinkingOptionId = harnessThinkingOptionIdSchema.safeParse(value.thinkingOptionId);
|
|
@@ -26128,9 +26452,9 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
26128
26452
|
const raw = storage.getItem(RENDERER_NEW_THREAD_PREFERENCE_KEY);
|
|
26129
26453
|
if (!raw) return void 0;
|
|
26130
26454
|
const parsed = JSON.parse(raw);
|
|
26131
|
-
if (!
|
|
26455
|
+
if (!isRecord13(parsed) || parsed.version !== 1) return void 0;
|
|
26132
26456
|
if (!KNOWN_RENDERER_AGENTS.some((agent) => agent === parsed.lastAgent)) return void 0;
|
|
26133
|
-
const externalByAgent =
|
|
26457
|
+
const externalByAgent = isRecord13(parsed.externalByAgent) ? parsed.externalByAgent : {};
|
|
26134
26458
|
const parsedExternal = Object.fromEntries(
|
|
26135
26459
|
KNOWN_RENDERER_AGENTS.filter(
|
|
26136
26460
|
(agent) => agent !== "codex"
|
|
@@ -26258,7 +26582,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
26258
26582
|
var GET_LOCALE_OVERRIDE_URL = "vscode://codex/get-setting";
|
|
26259
26583
|
var GET_LOCALE_INFO_URL = "vscode://codex/locale-info";
|
|
26260
26584
|
var DEFAULT_LOCALE_REQUEST_TIMEOUT_MS = 750;
|
|
26261
|
-
function
|
|
26585
|
+
function isRecord14(value) {
|
|
26262
26586
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
26263
26587
|
}
|
|
26264
26588
|
function canonicalLocale(value) {
|
|
@@ -26280,7 +26604,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
26280
26604
|
return new DOMException("The operation was aborted", "AbortError");
|
|
26281
26605
|
}
|
|
26282
26606
|
function parseLocaleOverride(value) {
|
|
26283
|
-
if (!
|
|
26607
|
+
if (!isRecord14(value) || !("value" in value)) {
|
|
26284
26608
|
throw new Error("Codex locale override response is malformed");
|
|
26285
26609
|
}
|
|
26286
26610
|
if (value.value === null) return { value: null };
|
|
@@ -26295,7 +26619,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
26295
26619
|
return locale;
|
|
26296
26620
|
}
|
|
26297
26621
|
function parseLocaleInfo(value) {
|
|
26298
|
-
if (!
|
|
26622
|
+
if (!isRecord14(value)) throw new Error("Codex locale info response is malformed");
|
|
26299
26623
|
return {
|
|
26300
26624
|
ideLocale: optionalLocale(value.ideLocale, "IDE locale"),
|
|
26301
26625
|
systemLocale: optionalLocale(value.systemLocale, "system locale")
|
|
@@ -26324,7 +26648,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
26324
26648
|
const onAbort = () => settle(() => reject(abortError2()));
|
|
26325
26649
|
const onMessage = (event) => {
|
|
26326
26650
|
const message2 = event.data;
|
|
26327
|
-
if (!
|
|
26651
|
+
if (!isRecord14(message2) || message2.type !== "fetch-response") return;
|
|
26328
26652
|
if (message2.requestId !== requestId) return;
|
|
26329
26653
|
if (message2.responseType !== "success" || typeof message2.status !== "number" || message2.status < 200 || message2.status >= 300 || typeof message2.bodyJsonString !== "string") {
|
|
26330
26654
|
settle(() => reject(new Error("Codex locale request failed")));
|
|
@@ -28972,7 +29296,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
28972
29296
|
}
|
|
28973
29297
|
|
|
28974
29298
|
// src/settings/accounts-page.ts
|
|
28975
|
-
function
|
|
29299
|
+
function errorMessage2(error51, fallback) {
|
|
28976
29300
|
return error51 instanceof Error && error51.message ? error51.message : fallback;
|
|
28977
29301
|
}
|
|
28978
29302
|
function createAccountsSettingsPage(messages, getClient) {
|
|
@@ -29272,7 +29596,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
29272
29596
|
refreshInBackground();
|
|
29273
29597
|
},
|
|
29274
29598
|
failure(error51) {
|
|
29275
|
-
loadMessage =
|
|
29599
|
+
loadMessage = errorMessage2(error51, messages.accountLoadFailed);
|
|
29276
29600
|
render();
|
|
29277
29601
|
}
|
|
29278
29602
|
});
|
|
@@ -31069,6 +31393,27 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
31069
31393
|
font-size: 12px;
|
|
31070
31394
|
}
|
|
31071
31395
|
|
|
31396
|
+
.settings-connection-website {
|
|
31397
|
+
display: inline-flex;
|
|
31398
|
+
align-items: center;
|
|
31399
|
+
justify-content: center;
|
|
31400
|
+
flex: none;
|
|
31401
|
+
width: 22px;
|
|
31402
|
+
height: 22px;
|
|
31403
|
+
color: var(--settings-muted);
|
|
31404
|
+
border-radius: 4px;
|
|
31405
|
+
}
|
|
31406
|
+
|
|
31407
|
+
.settings-connection-website:hover {
|
|
31408
|
+
color: var(--settings-focus);
|
|
31409
|
+
background: var(--settings-hover);
|
|
31410
|
+
}
|
|
31411
|
+
|
|
31412
|
+
.settings-connection-website:focus-visible {
|
|
31413
|
+
outline: 2px solid var(--settings-focus);
|
|
31414
|
+
outline-offset: 1px;
|
|
31415
|
+
}
|
|
31416
|
+
|
|
31072
31417
|
.settings-connection-install-link {
|
|
31073
31418
|
display: inline-flex;
|
|
31074
31419
|
align-items: center;
|
|
@@ -31085,6 +31430,11 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
31085
31430
|
cursor: pointer;
|
|
31086
31431
|
}
|
|
31087
31432
|
|
|
31433
|
+
.settings-connection-install-link:disabled {
|
|
31434
|
+
opacity: 0.45;
|
|
31435
|
+
cursor: wait;
|
|
31436
|
+
}
|
|
31437
|
+
|
|
31088
31438
|
.settings-connection-install-link:hover,
|
|
31089
31439
|
.settings-connection-install-link:focus-visible {
|
|
31090
31440
|
color: var(--settings-focus);
|
|
@@ -31092,6 +31442,113 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
31092
31442
|
border-color: var(--settings-border);
|
|
31093
31443
|
}
|
|
31094
31444
|
|
|
31445
|
+
.settings-connection-long-context {
|
|
31446
|
+
position: relative;
|
|
31447
|
+
display: inline-flex;
|
|
31448
|
+
}
|
|
31449
|
+
|
|
31450
|
+
.settings-connection-long-context__control {
|
|
31451
|
+
display: inline-flex;
|
|
31452
|
+
align-items: center;
|
|
31453
|
+
gap: 6px;
|
|
31454
|
+
margin: 0;
|
|
31455
|
+
color: var(--settings-text);
|
|
31456
|
+
font-size: 12px;
|
|
31457
|
+
font-weight: 600;
|
|
31458
|
+
line-height: 1;
|
|
31459
|
+
cursor: pointer;
|
|
31460
|
+
user-select: none;
|
|
31461
|
+
background: transparent;
|
|
31462
|
+
border: 0;
|
|
31463
|
+
}
|
|
31464
|
+
|
|
31465
|
+
.settings-connection-long-context__tooltip {
|
|
31466
|
+
position: fixed;
|
|
31467
|
+
inset: auto;
|
|
31468
|
+
z-index: 80;
|
|
31469
|
+
box-sizing: border-box;
|
|
31470
|
+
width: min(280px, calc(100vw - 16px));
|
|
31471
|
+
height: auto;
|
|
31472
|
+
max-height: none;
|
|
31473
|
+
margin: 0;
|
|
31474
|
+
overflow: visible;
|
|
31475
|
+
padding: 8px 10px;
|
|
31476
|
+
color: var(--settings-text);
|
|
31477
|
+
font-size: 12px;
|
|
31478
|
+
font-weight: 400;
|
|
31479
|
+
line-height: 1.45;
|
|
31480
|
+
text-align: left;
|
|
31481
|
+
white-space: normal;
|
|
31482
|
+
display: grid;
|
|
31483
|
+
gap: 6px;
|
|
31484
|
+
background: var(--settings-elevated);
|
|
31485
|
+
border: 1px solid var(--settings-border);
|
|
31486
|
+
border-radius: 8px;
|
|
31487
|
+
box-shadow: 0 10px 24px rgb(0 0 0 / 28%);
|
|
31488
|
+
pointer-events: none;
|
|
31489
|
+
}
|
|
31490
|
+
|
|
31491
|
+
.settings-connection-long-context__tooltip p,
|
|
31492
|
+
.settings-connection-long-context__tooltip ul {
|
|
31493
|
+
margin: 0;
|
|
31494
|
+
}
|
|
31495
|
+
|
|
31496
|
+
.settings-connection-long-context__tooltip ul {
|
|
31497
|
+
padding-left: 0;
|
|
31498
|
+
list-style: none;
|
|
31499
|
+
}
|
|
31500
|
+
|
|
31501
|
+
.settings-connection-long-context__tooltip li + li {
|
|
31502
|
+
margin-top: 2px;
|
|
31503
|
+
}
|
|
31504
|
+
|
|
31505
|
+
.settings-connection-long-context__tooltip li::before {
|
|
31506
|
+
content: "- ";
|
|
31507
|
+
}
|
|
31508
|
+
|
|
31509
|
+
.settings-connection-long-context input {
|
|
31510
|
+
position: relative;
|
|
31511
|
+
flex: none;
|
|
31512
|
+
width: 32px;
|
|
31513
|
+
height: 18px;
|
|
31514
|
+
margin: 0;
|
|
31515
|
+
appearance: none;
|
|
31516
|
+
background: var(--settings-surface-hover);
|
|
31517
|
+
border: 0;
|
|
31518
|
+
border-radius: 999px;
|
|
31519
|
+
cursor: pointer;
|
|
31520
|
+
}
|
|
31521
|
+
|
|
31522
|
+
.settings-connection-long-context input::before {
|
|
31523
|
+
position: absolute;
|
|
31524
|
+
top: 2px;
|
|
31525
|
+
left: 2px;
|
|
31526
|
+
width: 14px;
|
|
31527
|
+
height: 14px;
|
|
31528
|
+
content: "";
|
|
31529
|
+
background: #fff;
|
|
31530
|
+
border-radius: 50%;
|
|
31531
|
+
box-shadow: 0 1px 2px rgb(0 0 0 / 30%);
|
|
31532
|
+
}
|
|
31533
|
+
|
|
31534
|
+
.settings-connection-long-context input:checked {
|
|
31535
|
+
background: var(--settings-focus);
|
|
31536
|
+
}
|
|
31537
|
+
|
|
31538
|
+
.settings-connection-long-context input:checked::before {
|
|
31539
|
+
transform: translateX(14px);
|
|
31540
|
+
}
|
|
31541
|
+
|
|
31542
|
+
.settings-connection-long-context input:focus-visible {
|
|
31543
|
+
outline: 2px solid var(--settings-focus);
|
|
31544
|
+
outline-offset: 2px;
|
|
31545
|
+
}
|
|
31546
|
+
|
|
31547
|
+
.settings-connection-long-context input:disabled {
|
|
31548
|
+
cursor: default;
|
|
31549
|
+
opacity: 0.6;
|
|
31550
|
+
}
|
|
31551
|
+
|
|
31095
31552
|
.settings-connection-row__group-toggle {
|
|
31096
31553
|
display: inline-flex;
|
|
31097
31554
|
align-items: center;
|
|
@@ -31159,6 +31616,10 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
31159
31616
|
padding: 12px;
|
|
31160
31617
|
}
|
|
31161
31618
|
|
|
31619
|
+
.settings-connection-inspector__body:empty {
|
|
31620
|
+
display: none;
|
|
31621
|
+
}
|
|
31622
|
+
|
|
31162
31623
|
.settings-harness-version {
|
|
31163
31624
|
display: grid;
|
|
31164
31625
|
gap: 10px;
|
|
@@ -33118,7 +33579,7 @@ Codex Fast mode prioritizes requests and may increase usage.`
|
|
|
33118
33579
|
`;
|
|
33119
33580
|
|
|
33120
33581
|
// src/settings/tailwind.css
|
|
33121
|
-
var tailwind_default = '@layer properties, theme, base, components, utilities;\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-content:"";--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:root,:host{--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.relative{position:relative}.top-full{top:100%}.left-0{left:0}.z-20{z-index:20}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:0}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-7{margin-top:calc(var(--spacing) * 7)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-1{margin-left:var(--spacing)}.ml-\\[45px\\]{margin-left:45px}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.list-item{display:list-item}.table{display:table}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-8{height:calc(var(--spacing) * 8)}.min-h-6{min-height:calc(var(--spacing) * 6)}.min-h-\\[60px\\]{min-height:60px}.w-9{width:calc(var(--spacing) * 9)}.w-14{width:calc(var(--spacing) * 14)}.w-80{width:calc(var(--spacing) * 80)}.w-full{width:100%}.w-px{width:1px}.max-w-64{max-width:calc(var(--spacing) * 64)}.min-w-0{min-width:0}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-disc{list-style-type:disc}.appearance-none{appearance:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.overflow-x-auto{overflow-x:auto}.rounded-\\[10px\\]{border-radius:10px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-settings-border{border-color:var(--settings-border)}.border-settings-divider{border-color:var(--settings-divider)}.bg-settings-panel{background-color:var(--settings-panel)}.bg-settings-subtle{background-color:var(--settings-subtle)}.bg-settings-surface{background-color:var(--settings-surface)}.bg-settings-surface-hover{background-color:var(--settings-surface-hover)}.bg-transparent{background-color:#0000}.p-0{padding:0}.p-4{padding:calc(var(--spacing) * 4)}.\\!px-0{padding-inline:0!important}.px-1{padding-inline:var(--spacing)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pl-4{padding-left:calc(var(--spacing) * 4)}.\\!text-right{text-align:right!important}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-7{--tw-leading:calc(var(--spacing) * 7);line-height:calc(var(--spacing) * 7)}.leading-\\[18px\\]{--tw-leading:18px;line-height:18px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-pre-wrap{white-space:pre-wrap}.text-settings-muted{color:var(--settings-muted)}.text-settings-subtle{color:var(--settings-subtle)}.text-settings-text{color:var(--settings-text)}.lowercase{text-transform:lowercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_10px_30px_rgb\\(0_0_0\\/0\\.22\\)\\]{--tw-shadow:0 10px 30px var(--tw-shadow-color,#00000038);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-settings-border{--tw-ring-color:var(--settings-border)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.outline-none{--tw-outline-style:none;outline-style:none}.ring-inset{--tw-ring-inset:inset}.group-focus-within\\:visible:is(:where(.group):focus-within *){visibility:visible}.group-focus-within\\:opacity-100:is(:where(.group):focus-within *){opacity:1}@media (hover:hover){.group-hover\\:visible:is(:where(.group):hover *){visibility:visible}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-data-\\[state\\=failed\\]\\/status\\:bg-settings-danger:is(:where(.group\\/status)[data-state=failed] *){background-color:var(--settings-danger)}.group-data-\\[state\\=unavailable\\]\\/status\\:bg-settings-warning:is(:where(.group\\/status)[data-state=unavailable] *){background-color:var(--settings-warning)}.marker\\:text-settings-subtle ::marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle::marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle ::-webkit-details-marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle::-webkit-details-marker{color:var(--settings-subtle)}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:top-0\\.5:before{content:var(--tw-content);top:calc(var(--spacing) * .5)}.before\\:left-0\\.5:before{content:var(--tw-content);left:calc(var(--spacing) * .5)}.before\\:size-4:before{content:var(--tw-content);width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.before\\:rounded-full:before{content:var(--tw-content);border-radius:3.40282e38px}.before\\:bg-white:before{content:var(--tw-content);background-color:#fff}.before\\:shadow-\\[0_1px_2px_rgb\\(0_0_0\\/0\\.3\\)\\]:before{content:var(--tw-content);--tw-shadow:0 1px 2px var(--tw-shadow-color,#0000004d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.before\\:transition-transform:before{content:var(--tw-content);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.first\\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.first-of-type\\:mt-0:first-of-type{margin-top:0}.checked\\:bg-settings-focus:checked{background-color:var(--settings-focus)}.checked\\:ring-transparent:checked{--tw-ring-color:transparent}.checked\\:before\\:translate-x-4:checked:before{content:var(--tw-content);--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.focus-within\\:border-settings-focus:focus-within{border-color:var(--settings-focus)}@media (hover:hover){.hover\\:text-settings-text:hover{color:var(--settings-text)}}.focus-visible\\:text-settings-text:focus-visible{color:var(--settings-text)}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-settings-focus:focus-visible{outline-color:var(--settings-focus)}.data-\\[invalid\\=true\\]\\:border-settings-danger[data-invalid=true]{border-color:var(--settings-danger)}.data-\\[invalid\\=true\\]\\:text-settings-danger[data-invalid=true],.data-\\[state\\=failed\\]\\:text-settings-danger[data-state=failed]{color:var(--settings-danger)}.data-\\[state\\=unavailable\\]\\:text-settings-warning[data-state=unavailable]{color:var(--settings-warning)}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@layer properties{\n *, ::before, ::after, ::backdrop{--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-alpha:100%;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-drop-shadow-alpha:100%;--tw-content:"";--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}\n';
|
|
33582
|
+
var tailwind_default = '@layer properties, theme, base, components, utilities;\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-content:"";--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:root,:host{--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.top-full{top:100%}.left-0{left:0}.z-20{z-index:20}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:0}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-7{margin-top:calc(var(--spacing) * 7)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-1{margin-left:var(--spacing)}.ml-\\[45px\\]{margin-left:45px}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.list-item{display:list-item}.table{display:table}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-8{height:calc(var(--spacing) * 8)}.min-h-6{min-height:calc(var(--spacing) * 6)}.min-h-\\[60px\\]{min-height:60px}.w-9{width:calc(var(--spacing) * 9)}.w-14{width:calc(var(--spacing) * 14)}.w-80{width:calc(var(--spacing) * 80)}.w-full{width:100%}.w-px{width:1px}.max-w-64{max-width:calc(var(--spacing) * 64)}.min-w-0{min-width:0}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-disc{list-style-type:disc}.appearance-none{appearance:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.overflow-x-auto{overflow-x:auto}.rounded-\\[10px\\]{border-radius:10px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-settings-border{border-color:var(--settings-border)}.border-settings-divider{border-color:var(--settings-divider)}.bg-settings-panel{background-color:var(--settings-panel)}.bg-settings-subtle{background-color:var(--settings-subtle)}.bg-settings-surface{background-color:var(--settings-surface)}.bg-settings-surface-hover{background-color:var(--settings-surface-hover)}.bg-transparent{background-color:#0000}.p-0{padding:0}.p-4{padding:calc(var(--spacing) * 4)}.\\!px-0{padding-inline:0!important}.px-1{padding-inline:var(--spacing)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pl-4{padding-left:calc(var(--spacing) * 4)}.\\!text-right{text-align:right!important}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-7{--tw-leading:calc(var(--spacing) * 7);line-height:calc(var(--spacing) * 7)}.leading-\\[18px\\]{--tw-leading:18px;line-height:18px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-pre-wrap{white-space:pre-wrap}.text-settings-muted{color:var(--settings-muted)}.text-settings-subtle{color:var(--settings-subtle)}.text-settings-text{color:var(--settings-text)}.lowercase{text-transform:lowercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_10px_30px_rgb\\(0_0_0\\/0\\.22\\)\\]{--tw-shadow:0 10px 30px var(--tw-shadow-color,#00000038);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-settings-border{--tw-ring-color:var(--settings-border)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.outline-none{--tw-outline-style:none;outline-style:none}.ring-inset{--tw-ring-inset:inset}.group-focus-within\\:visible:is(:where(.group):focus-within *){visibility:visible}.group-focus-within\\:opacity-100:is(:where(.group):focus-within *){opacity:1}@media (hover:hover){.group-hover\\:visible:is(:where(.group):hover *){visibility:visible}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-data-\\[state\\=failed\\]\\/status\\:bg-settings-danger:is(:where(.group\\/status)[data-state=failed] *){background-color:var(--settings-danger)}.group-data-\\[state\\=unavailable\\]\\/status\\:bg-settings-warning:is(:where(.group\\/status)[data-state=unavailable] *){background-color:var(--settings-warning)}.marker\\:text-settings-subtle ::marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle::marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle ::-webkit-details-marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle::-webkit-details-marker{color:var(--settings-subtle)}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:top-0\\.5:before{content:var(--tw-content);top:calc(var(--spacing) * .5)}.before\\:left-0\\.5:before{content:var(--tw-content);left:calc(var(--spacing) * .5)}.before\\:size-4:before{content:var(--tw-content);width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.before\\:rounded-full:before{content:var(--tw-content);border-radius:3.40282e38px}.before\\:bg-white:before{content:var(--tw-content);background-color:#fff}.before\\:shadow-\\[0_1px_2px_rgb\\(0_0_0\\/0\\.3\\)\\]:before{content:var(--tw-content);--tw-shadow:0 1px 2px var(--tw-shadow-color,#0000004d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.before\\:transition-transform:before{content:var(--tw-content);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.first\\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.first-of-type\\:mt-0:first-of-type{margin-top:0}.checked\\:bg-settings-focus:checked{background-color:var(--settings-focus)}.checked\\:ring-transparent:checked{--tw-ring-color:transparent}.checked\\:before\\:translate-x-4:checked:before{content:var(--tw-content);--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.focus-within\\:border-settings-focus:focus-within{border-color:var(--settings-focus)}@media (hover:hover){.hover\\:text-settings-text:hover{color:var(--settings-text)}}.focus-visible\\:text-settings-text:focus-visible{color:var(--settings-text)}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-settings-focus:focus-visible{outline-color:var(--settings-focus)}.data-\\[invalid\\=true\\]\\:border-settings-danger[data-invalid=true]{border-color:var(--settings-danger)}.data-\\[invalid\\=true\\]\\:text-settings-danger[data-invalid=true],.data-\\[state\\=failed\\]\\:text-settings-danger[data-state=failed]{color:var(--settings-danger)}.data-\\[state\\=unavailable\\]\\:text-settings-warning[data-state=unavailable]{color:var(--settings-warning)}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@layer properties{\n *, ::before, ::after, ::backdrop{--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-alpha:100%;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-drop-shadow-alpha:100%;--tw-content:"";--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}\n';
|
|
33122
33583
|
|
|
33123
33584
|
// src/settings/trigger.ts
|
|
33124
33585
|
var SETTINGS_TRIGGER_ATTRIBUTE = "data-codexhost-settings-trigger";
|
|
@@ -34662,8 +35123,13 @@ ${accounts_default}`;
|
|
|
34662
35123
|
return state === "ready";
|
|
34663
35124
|
}
|
|
34664
35125
|
var rendererUsageRefreshDelays = [250, 500, 1e3, 2e3, 4e3, 8e3];
|
|
34665
|
-
function refreshConnectionHosts(hostIds, refreshHost) {
|
|
34666
|
-
return Promise.all(
|
|
35126
|
+
function refreshConnectionHosts(hostIds, refreshHost, pendingHost) {
|
|
35127
|
+
return Promise.all(
|
|
35128
|
+
[...hostIds].map(async (hostId) => {
|
|
35129
|
+
if (pendingHost) await pendingHost(hostId)?.catch(() => void 0);
|
|
35130
|
+
await refreshHost(hostId);
|
|
35131
|
+
})
|
|
35132
|
+
).then(() => void 0);
|
|
34667
35133
|
}
|
|
34668
35134
|
function rendererUsageRefreshDelay(attempt) {
|
|
34669
35135
|
const index = Math.max(0, Math.min(Math.trunc(attempt), rendererUsageRefreshDelays.length - 1));
|
|
@@ -36326,11 +36792,18 @@ ${accounts_default}`;
|
|
|
36326
36792
|
})
|
|
36327
36793
|
};
|
|
36328
36794
|
},
|
|
36329
|
-
refresh() {
|
|
36795
|
+
refresh(hostId) {
|
|
36796
|
+
if (hostId !== void 0) {
|
|
36797
|
+
return refreshConnectionHosts(
|
|
36798
|
+
[hostId],
|
|
36799
|
+
(target) => refreshHarnessAvailabilityForHost(target, true, false, true),
|
|
36800
|
+
(target) => hostHarnessAvailabilityState(target).request?.promise
|
|
36801
|
+
);
|
|
36802
|
+
}
|
|
36330
36803
|
reconcileHarnessAvailabilityHost();
|
|
36331
36804
|
return refreshConnectionHosts(
|
|
36332
36805
|
harnessAvailabilityByHost.keys(),
|
|
36333
|
-
(
|
|
36806
|
+
(target) => refreshHarnessAvailabilityForHost(target, true, false, true)
|
|
36334
36807
|
);
|
|
36335
36808
|
},
|
|
36336
36809
|
async installation(hostId, agent, action) {
|
|
@@ -36349,6 +36822,16 @@ ${accounts_default}`;
|
|
|
36349
36822
|
if (!client?.setHarnessLaunchSettings) throw new Error("Launch settings are unavailable");
|
|
36350
36823
|
return client.setHarnessLaunchSettings({ harnessId: externalHarnessIds[agent], path });
|
|
36351
36824
|
},
|
|
36825
|
+
async getLongContext(hostId, agent) {
|
|
36826
|
+
const client = modelClientForHost(hostId);
|
|
36827
|
+
if (!client?.getHarnessLongContext) throw new Error("1M context is unavailable");
|
|
36828
|
+
return client.getHarnessLongContext({ harnessId: externalHarnessIds[agent] });
|
|
36829
|
+
},
|
|
36830
|
+
async setLongContext(hostId, agent, enabled) {
|
|
36831
|
+
const client = modelClientForHost(hostId);
|
|
36832
|
+
if (!client?.setHarnessLongContext) throw new Error("1M context is unavailable");
|
|
36833
|
+
return client.setHarnessLongContext({ harnessId: externalHarnessIds[agent], enabled });
|
|
36834
|
+
},
|
|
36352
36835
|
async openWebUi(hostId, agent) {
|
|
36353
36836
|
const state = hostHarnessAvailabilityState(hostId);
|
|
36354
36837
|
const client = hostId === "local" ? modelClientForHost(hostId) : null;
|