@karlorz/codexhost-cli-win32-x64 0.18.0-0 → 0.19.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +317 -59
- package/app/console-web.js +1889 -141
- package/app/cpa-live-voice-hook.js +1938 -428
- package/app/desktop-controller.mjs +2081 -212
- package/app/host-runtime.mjs +14818 -3381
- package/app/overlay-voice-bootstrap.js +1616 -0
- package/app/plugins/antigravity/plugin.mjs +963 -324
- package/app/plugins/claude-code/plugin.mjs +395 -67
- package/app/plugins/codebuddy/plugin.mjs +409 -76
- package/app/plugins/codex-usage/plugin.mjs +316 -58
- package/app/plugins/copilot/plugin.mjs +316 -58
- package/app/plugins/cursor-cli/plugin.mjs +391 -68
- package/app/plugins/deepseek-harness/manifest.json +2 -2
- package/app/plugins/deepseek-harness/plugin.mjs +343 -63
- package/app/plugins/devin/plugin.mjs +316 -58
- package/app/plugins/grok/plugin.mjs +1350 -1026
- package/app/plugins/hermes/plugin.mjs +395 -70
- package/app/plugins/kimi-code/plugin.mjs +316 -58
- package/app/plugins/kiro-cli/plugin.mjs +544 -74
- package/app/plugins/omp/plugin.mjs +1264 -902
- package/app/plugins/opencode/plugin.mjs +316 -58
- package/app/plugins/pi/plugin.mjs +1189 -862
- package/app/plugins/qoder/plugin.mjs +318 -62
- package/app/plugins/qoder-cn/plugin.mjs +318 -62
- package/app/plugins/qwen-code/plugin.mjs +425 -150
- package/app/plugins/workbuddy/plugin.mjs +409 -76
- package/app/plugins/zcode/plugin.mjs +389 -61
- package/app/renderer-extension.js +11830 -8531
- package/app/voice-profile-pins.json +25 -0
- package/app/voice-qualification.json +4 -0
- package/app/web/assets/index-BCyiiDDL.js +199 -0
- package/app/web/assets/index-BNQIOOHE.css +1 -0
- package/app/web/codexhost-settings.js +1895 -190
- package/app/web/index.html +2 -2
- package/app/web/plugins/deepseek-ai__dsh-api-remotes/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-session-controller/client.js +69 -69
- package/app/web/plugins/deepseek-ai__dsh-client-file-upload/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-locale/client.js +3 -3
- package/app/web/plugins/deepseek-ai__dsh-client-ui-attachment/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-chat/client.js +129 -8
- package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +65 -63
- package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +95 -93
- package/app/web/plugins/deepseek-ai__dsh-client-ui-input-trigger/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-layout/client.js +2 -2
- package/app/web/plugins/deepseek-ai__dsh-client-ui-model-selection/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-settings-general/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar-documentpreview/client.excel.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar-files/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-tool/client.js +79 -79
- package/app/web/plugins/deepseek-ai__dsh-client-ui-user-questions/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +11 -11
- package/app/web-modules/server.mjs +3279 -1676
- package/bin/codexhost.exe +0 -0
- package/libexec/codexhost-node-repl.exe +0 -0
- package/libexec/codexhost-shim.exe +0 -0
- package/libexec/codexhost-updater.exe +0 -0
- package/package.json +1 -1
- package/app/web/assets/index-Bs17Kuah.js +0 -199
- package/app/web/assets/index-C3lniEH1.css +0 -1
|
@@ -3232,7 +3232,7 @@
|
|
|
3232
3232
|
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
|
|
3233
3233
|
defineLazy(inst._zod, "values", () => {
|
|
3234
3234
|
if (def.options.every((o) => o._zod.values)) {
|
|
3235
|
-
return new Set(def.options.flatMap((
|
|
3235
|
+
return new Set(def.options.flatMap((option2) => Array.from(option2._zod.values)));
|
|
3236
3236
|
}
|
|
3237
3237
|
return void 0;
|
|
3238
3238
|
});
|
|
@@ -3250,8 +3250,8 @@
|
|
|
3250
3250
|
}
|
|
3251
3251
|
let async = false;
|
|
3252
3252
|
const results = [];
|
|
3253
|
-
for (const
|
|
3254
|
-
const result =
|
|
3253
|
+
for (const option2 of def.options) {
|
|
3254
|
+
const result = option2._zod.run({
|
|
3255
3255
|
value: payload.value,
|
|
3256
3256
|
issues: []
|
|
3257
3257
|
}, ctx);
|
|
@@ -3305,8 +3305,8 @@
|
|
|
3305
3305
|
}
|
|
3306
3306
|
let async = false;
|
|
3307
3307
|
const results = [];
|
|
3308
|
-
for (const
|
|
3309
|
-
const result =
|
|
3308
|
+
for (const option2 of def.options) {
|
|
3309
|
+
const result = option2._zod.run({
|
|
3310
3310
|
value: payload.value,
|
|
3311
3311
|
issues: []
|
|
3312
3312
|
}, ctx);
|
|
@@ -3330,10 +3330,10 @@
|
|
|
3330
3330
|
const _super = inst._zod.parse;
|
|
3331
3331
|
defineLazy(inst._zod, "propValues", () => {
|
|
3332
3332
|
const propValues = {};
|
|
3333
|
-
for (const
|
|
3334
|
-
const pv =
|
|
3333
|
+
for (const option2 of def.options) {
|
|
3334
|
+
const pv = option2._zod.propValues;
|
|
3335
3335
|
if (!pv || Object.keys(pv).length === 0)
|
|
3336
|
-
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(
|
|
3336
|
+
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option2)}"`);
|
|
3337
3337
|
for (const [k, v] of Object.entries(pv)) {
|
|
3338
3338
|
if (!propValues[k])
|
|
3339
3339
|
propValues[k] = /* @__PURE__ */ new Set();
|
|
@@ -11743,8 +11743,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11743
11743
|
return false;
|
|
11744
11744
|
}
|
|
11745
11745
|
if (def.type === "union") {
|
|
11746
|
-
for (const
|
|
11747
|
-
if (isTransforming(
|
|
11746
|
+
for (const option2 of def.options) {
|
|
11747
|
+
if (isTransforming(option2, ctx))
|
|
11748
11748
|
return true;
|
|
11749
11749
|
}
|
|
11750
11750
|
return false;
|
|
@@ -14547,7 +14547,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14547
14547
|
origin: goalOriginSchema
|
|
14548
14548
|
});
|
|
14549
14549
|
|
|
14550
|
-
// ../shared-contracts/dist/realtime-call.js
|
|
14550
|
+
// ../shared-contracts/dist/realtime-call-core.js
|
|
14551
14551
|
var REALTIME_CALL_FORWARDED_HEADERS = [
|
|
14552
14552
|
"openai-alpha",
|
|
14553
14553
|
"thread-id",
|
|
@@ -14556,7 +14556,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14556
14556
|
"x-codex-turn-metadata"
|
|
14557
14557
|
];
|
|
14558
14558
|
var FORWARDED_HEADERS = new Set(REALTIME_CALL_FORWARDED_HEADERS);
|
|
14559
|
-
var REALTIME_CALL_ID_PATTERN = /^
|
|
14559
|
+
var REALTIME_CALL_ID_PATTERN = /^[A-Za-z0-9_-]{1,128}$/u;
|
|
14560
|
+
|
|
14561
|
+
// ../shared-contracts/dist/realtime-call.js
|
|
14560
14562
|
var requestId = external_exports.string().min(1).max(128);
|
|
14561
14563
|
var realtimeCallParamsSchema = external_exports.discriminatedUnion("operation", [
|
|
14562
14564
|
external_exports.object({
|
|
@@ -14611,12 +14613,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14611
14613
|
var RELAY_PUBLIC_RESOURCE = `${RELAY_PUBLIC_ORIGIN}/mcp`;
|
|
14612
14614
|
var RELAY_WAIT_TIMEOUT_MAX_MS = 25e3;
|
|
14613
14615
|
var RELAY_MAX_BODY_BYTES = 2 * 1024 * 1024;
|
|
14614
|
-
var RELAY_ALLOWED_ROUTES = [
|
|
14615
|
-
"/v1/enroll/status",
|
|
14616
|
-
"/v1/thread/read",
|
|
14617
|
-
"/v1/thread/wait",
|
|
14618
|
-
"/v1/thread/send"
|
|
14619
|
-
];
|
|
14620
14616
|
var relayLinkHelloSchema = external_exports.strictObject({
|
|
14621
14617
|
v: external_exports.literal(RELAY_LINK_PROTOCOL_VERSION),
|
|
14622
14618
|
secret: external_exports.string().min(1).max(4096)
|
|
@@ -14628,8 +14624,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14628
14624
|
var relayLinkRequestSchema = external_exports.strictObject({
|
|
14629
14625
|
requestId: external_exports.string().min(1).max(128),
|
|
14630
14626
|
deadlineMs: external_exports.number().int().positive(),
|
|
14631
|
-
route: external_exports.
|
|
14632
|
-
body: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
14627
|
+
route: external_exports.string().min(1).max(128),
|
|
14628
|
+
body: external_exports.record(external_exports.string(), external_exports.unknown()),
|
|
14629
|
+
operationalClient: external_exports.string().min(1).max(64).optional(),
|
|
14630
|
+
oauthClientId: external_exports.string().min(1).max(128).optional(),
|
|
14631
|
+
dispatchGrant: external_exports.enum(["legacy-four", "full-dispatch"]).optional()
|
|
14633
14632
|
});
|
|
14634
14633
|
var relayLinkErrorSchema = external_exports.strictObject({
|
|
14635
14634
|
code: external_exports.string().min(1).max(64),
|
|
@@ -14673,6 +14672,204 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14673
14672
|
runtime: external_exports.enum(["reachable", "unreachable"])
|
|
14674
14673
|
});
|
|
14675
14674
|
|
|
14675
|
+
// ../shared-contracts/dist/external-clients.js
|
|
14676
|
+
var EXTERNAL_CLIENT_NAME_PATTERN = /^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$/u;
|
|
14677
|
+
var externalClientNameSchema = external_exports.string().trim().min(1).max(64).regex(EXTERNAL_CLIENT_NAME_PATTERN);
|
|
14678
|
+
var externalClientAccessSchema = external_exports.enum(["all-threads", "selected-workspaces"]);
|
|
14679
|
+
var externalClientConnectionModeSchema = external_exports.enum(["public-relay", "local", "direct"]);
|
|
14680
|
+
var externalClientDispatchGrantSchema = external_exports.enum(["legacy-four", "full-dispatch"]);
|
|
14681
|
+
var workspacePathSchema = external_exports.string().trim().min(1).max(4096);
|
|
14682
|
+
var directUrlSchema = external_exports.string().trim().max(2048);
|
|
14683
|
+
var externalClientPublicViewSchema = external_exports.strictObject({
|
|
14684
|
+
name: externalClientNameSchema,
|
|
14685
|
+
createdAt: external_exports.string().min(1).max(64),
|
|
14686
|
+
access: externalClientAccessSchema,
|
|
14687
|
+
workspaces: external_exports.array(workspacePathSchema).max(64),
|
|
14688
|
+
connectionMode: externalClientConnectionModeSchema,
|
|
14689
|
+
dispatchGrant: externalClientDispatchGrantSchema,
|
|
14690
|
+
oauthClientId: external_exports.string().trim().min(1).max(128).optional(),
|
|
14691
|
+
directUrl: directUrlSchema.optional(),
|
|
14692
|
+
mcpUrl: external_exports.string().min(1).max(2048).optional(),
|
|
14693
|
+
mcpUrlNote: external_exports.string().min(1).max(512).optional()
|
|
14694
|
+
});
|
|
14695
|
+
var externalClientListParamsSchema = external_exports.strictObject({});
|
|
14696
|
+
var externalClientListResultSchema = external_exports.strictObject({
|
|
14697
|
+
clients: external_exports.array(externalClientPublicViewSchema).max(256)
|
|
14698
|
+
});
|
|
14699
|
+
var externalClientWriteFieldsSchema = external_exports.strictObject({
|
|
14700
|
+
access: externalClientAccessSchema.optional(),
|
|
14701
|
+
workspaces: external_exports.array(workspacePathSchema).max(64).optional(),
|
|
14702
|
+
connectionMode: externalClientConnectionModeSchema.optional(),
|
|
14703
|
+
dispatchGrant: externalClientDispatchGrantSchema.optional(),
|
|
14704
|
+
oauthClientId: external_exports.string().trim().min(1).max(128).optional(),
|
|
14705
|
+
directUrl: directUrlSchema.optional()
|
|
14706
|
+
});
|
|
14707
|
+
var externalClientCreateParamsSchema = externalClientWriteFieldsSchema.extend({
|
|
14708
|
+
name: externalClientNameSchema
|
|
14709
|
+
});
|
|
14710
|
+
var externalClientCreateResultSchema = externalClientPublicViewSchema.extend({
|
|
14711
|
+
token: external_exports.string().min(1).max(256).optional()
|
|
14712
|
+
});
|
|
14713
|
+
var externalClientUpdateParamsSchema = externalClientWriteFieldsSchema.extend({
|
|
14714
|
+
name: externalClientNameSchema,
|
|
14715
|
+
clearOauthClientId: external_exports.literal(true).optional()
|
|
14716
|
+
});
|
|
14717
|
+
var externalClientRevokeParamsSchema = external_exports.strictObject({
|
|
14718
|
+
name: externalClientNameSchema
|
|
14719
|
+
});
|
|
14720
|
+
var externalClientRevokeResultSchema = external_exports.strictObject({
|
|
14721
|
+
name: externalClientNameSchema,
|
|
14722
|
+
revoked: external_exports.literal(true)
|
|
14723
|
+
});
|
|
14724
|
+
var stringProp = (description) => ({ type: "string", description });
|
|
14725
|
+
var integerProp = (description) => ({
|
|
14726
|
+
type: "integer",
|
|
14727
|
+
minimum: 0,
|
|
14728
|
+
description
|
|
14729
|
+
});
|
|
14730
|
+
var threadProp = stringProp("Thread id or codex://threads/<id> link");
|
|
14731
|
+
var EXTERNAL_MCP_TOOL_DESCRIPTORS = [
|
|
14732
|
+
{
|
|
14733
|
+
name: "harness_list",
|
|
14734
|
+
description: "List the Harnesses this codexhost can delegate to.",
|
|
14735
|
+
inputSchema: { type: "object", properties: {} }
|
|
14736
|
+
},
|
|
14737
|
+
{
|
|
14738
|
+
name: "harness_inspect",
|
|
14739
|
+
description: "Read a Harness's Models, Thinking options and defaults; use the returned ids when delegating.",
|
|
14740
|
+
inputSchema: {
|
|
14741
|
+
type: "object",
|
|
14742
|
+
properties: {
|
|
14743
|
+
harnessId: stringProp("Harness id from harness_list"),
|
|
14744
|
+
cwd: stringProp("Absolute workspace path"),
|
|
14745
|
+
refresh: { type: "boolean" }
|
|
14746
|
+
},
|
|
14747
|
+
required: ["harnessId"]
|
|
14748
|
+
}
|
|
14749
|
+
},
|
|
14750
|
+
{
|
|
14751
|
+
name: "delegate_start",
|
|
14752
|
+
description: "Start a task in a new Thread and return at once. Without parentThread the work belongs to this client and cwd is required. watch=true records an event for this client when the Thread stops (read it with events_poll or the SSE stream).",
|
|
14753
|
+
inputSchema: {
|
|
14754
|
+
type: "object",
|
|
14755
|
+
properties: {
|
|
14756
|
+
harnessId: stringProp("Harness id from harness_list"),
|
|
14757
|
+
task: stringProp("The full task text"),
|
|
14758
|
+
taskName: stringProp("Short display name"),
|
|
14759
|
+
cwd: stringProp("Absolute workspace path"),
|
|
14760
|
+
model: stringProp("Model id from harness_inspect"),
|
|
14761
|
+
thinking: stringProp("Thinking option id from harness_inspect"),
|
|
14762
|
+
parentThread: stringProp("Optional parent Thread"),
|
|
14763
|
+
requestId: stringProp("Reuse to retry idempotently"),
|
|
14764
|
+
refs: {
|
|
14765
|
+
type: "array",
|
|
14766
|
+
items: { type: "string" },
|
|
14767
|
+
description: "Absolute URIs of where the work came from"
|
|
14768
|
+
},
|
|
14769
|
+
watch: { type: "boolean", description: "Record an event when the Thread stops" },
|
|
14770
|
+
watchTimeoutMs: integerProp("How long to watch; default 29 minutes")
|
|
14771
|
+
},
|
|
14772
|
+
required: ["harnessId", "task"]
|
|
14773
|
+
}
|
|
14774
|
+
},
|
|
14775
|
+
{
|
|
14776
|
+
name: "thread_read",
|
|
14777
|
+
description: "Read a Thread's status and latest result, or page its visible messages (view=messages). Never changes the Thread.",
|
|
14778
|
+
inputSchema: {
|
|
14779
|
+
type: "object",
|
|
14780
|
+
properties: {
|
|
14781
|
+
thread: threadProp,
|
|
14782
|
+
view: { type: "string", enum: ["result", "messages"] },
|
|
14783
|
+
cursor: stringProp("Message cursor"),
|
|
14784
|
+
limit: integerProp("Messages per page, at most 100")
|
|
14785
|
+
},
|
|
14786
|
+
required: ["thread"]
|
|
14787
|
+
}
|
|
14788
|
+
},
|
|
14789
|
+
{
|
|
14790
|
+
name: "thread_wait",
|
|
14791
|
+
description: "Wait up to timeoutMs (at most 60000) for a Thread to stop, then return the same snapshot as thread_read plus timedOut.",
|
|
14792
|
+
inputSchema: {
|
|
14793
|
+
type: "object",
|
|
14794
|
+
properties: {
|
|
14795
|
+
thread: threadProp,
|
|
14796
|
+
timeoutMs: integerProp("At most 60000; default 30000"),
|
|
14797
|
+
view: { type: "string", enum: ["result", "messages"] }
|
|
14798
|
+
},
|
|
14799
|
+
required: ["thread"]
|
|
14800
|
+
}
|
|
14801
|
+
},
|
|
14802
|
+
{
|
|
14803
|
+
name: "thread_list",
|
|
14804
|
+
description: "List Threads: by workspace (cwd), by parent Thread, by the client that started them, or by reference.",
|
|
14805
|
+
inputSchema: {
|
|
14806
|
+
type: "object",
|
|
14807
|
+
properties: {
|
|
14808
|
+
cwd: stringProp("Absolute workspace path"),
|
|
14809
|
+
parent: stringProp("Parent Thread"),
|
|
14810
|
+
client: stringProp("Client name"),
|
|
14811
|
+
ref: stringProp("Reference URI"),
|
|
14812
|
+
limit: integerProp("At most 100; default 25"),
|
|
14813
|
+
cursor: stringProp("Cursor from a previous page"),
|
|
14814
|
+
sort: {
|
|
14815
|
+
type: "string",
|
|
14816
|
+
enum: [
|
|
14817
|
+
"created-asc",
|
|
14818
|
+
"created-desc",
|
|
14819
|
+
"updated-asc",
|
|
14820
|
+
"updated-desc",
|
|
14821
|
+
"recency-asc",
|
|
14822
|
+
"recency-desc"
|
|
14823
|
+
]
|
|
14824
|
+
}
|
|
14825
|
+
}
|
|
14826
|
+
}
|
|
14827
|
+
},
|
|
14828
|
+
{
|
|
14829
|
+
name: "thread_send",
|
|
14830
|
+
description: "Start a new Turn in an idle Thread. THREAD_BUSY means its current Turn is still running; messages are not queued.",
|
|
14831
|
+
inputSchema: {
|
|
14832
|
+
type: "object",
|
|
14833
|
+
properties: { thread: threadProp, message: stringProp("Message text") },
|
|
14834
|
+
required: ["thread", "message"]
|
|
14835
|
+
}
|
|
14836
|
+
},
|
|
14837
|
+
{
|
|
14838
|
+
name: "thread_cancel",
|
|
14839
|
+
description: "Cancel a Thread's active Turn, keeping the Thread and its history.",
|
|
14840
|
+
inputSchema: { type: "object", properties: { thread: threadProp }, required: ["thread"] }
|
|
14841
|
+
},
|
|
14842
|
+
{
|
|
14843
|
+
name: "thread_watch",
|
|
14844
|
+
description: "Record one event for this client when the Thread stops or the watch expires.",
|
|
14845
|
+
inputSchema: {
|
|
14846
|
+
type: "object",
|
|
14847
|
+
properties: { thread: threadProp, timeoutMs: integerProp("Default 29 minutes") },
|
|
14848
|
+
required: ["thread"]
|
|
14849
|
+
}
|
|
14850
|
+
},
|
|
14851
|
+
{
|
|
14852
|
+
name: "thread_watches",
|
|
14853
|
+
description: "List watches that have not been delivered yet.",
|
|
14854
|
+
inputSchema: { type: "object", properties: {} }
|
|
14855
|
+
},
|
|
14856
|
+
{
|
|
14857
|
+
name: "events_poll",
|
|
14858
|
+
description: "Read this client's events after a cursor (0 for all retained). Waits up to timeoutMs (at most 60000) for the first one. Pass the returned cursor back next time. CURSOR_EXPIRED: reconcile with thread_list client=<this client>.",
|
|
14859
|
+
inputSchema: {
|
|
14860
|
+
type: "object",
|
|
14861
|
+
properties: {
|
|
14862
|
+
after: integerProp("Cursor; 0 for all retained"),
|
|
14863
|
+
timeoutMs: integerProp("At most 60000; default 0"),
|
|
14864
|
+
limit: integerProp("At most 100")
|
|
14865
|
+
}
|
|
14866
|
+
}
|
|
14867
|
+
}
|
|
14868
|
+
];
|
|
14869
|
+
|
|
14870
|
+
// ../shared-contracts/dist/external-mcp-map.js
|
|
14871
|
+
var DEFAULT_WATCH_MS = 29 * 6e4;
|
|
14872
|
+
|
|
14676
14873
|
// ../shared-contracts/dist/grok-computer-use.js
|
|
14677
14874
|
var GROK_COMPUTER_USE_GET_METHOD = "codexhost/harness/grok-computer-use/get";
|
|
14678
14875
|
var GROK_COMPUTER_USE_SET_METHOD = "codexhost/harness/grok-computer-use/set";
|
|
@@ -15031,15 +15228,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15031
15228
|
}).strict();
|
|
15032
15229
|
var harnessThinkingOptionsSchema = external_exports.array(harnessThinkingOptionSchema).superRefine((options, context) => {
|
|
15033
15230
|
const ids = /* @__PURE__ */ new Set();
|
|
15034
|
-
for (const [index,
|
|
15035
|
-
if (ids.has(
|
|
15231
|
+
for (const [index, option2] of options.entries()) {
|
|
15232
|
+
if (ids.has(option2.id)) {
|
|
15036
15233
|
context.addIssue({
|
|
15037
15234
|
code: "custom",
|
|
15038
15235
|
message: "Thinking option IDs must be unique",
|
|
15039
15236
|
path: [index, "id"]
|
|
15040
15237
|
});
|
|
15041
15238
|
}
|
|
15042
|
-
ids.add(
|
|
15239
|
+
ids.add(option2.id);
|
|
15043
15240
|
}
|
|
15044
15241
|
});
|
|
15045
15242
|
var harnessModelCatalogSchema = external_exports.object({
|
|
@@ -15293,11 +15490,61 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15293
15490
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15294
15491
|
}).strict();
|
|
15295
15492
|
|
|
15493
|
+
// ../shared-contracts/dist/voice-settings.js
|
|
15494
|
+
var voiceRoutesSchema = external_exports.strictObject({
|
|
15495
|
+
chatExperience: external_exports.enum(["chatgpt", "codex"]),
|
|
15496
|
+
chatConnection: external_exports.enum(["desktop", "gateway"]),
|
|
15497
|
+
workConnection: external_exports.enum(["desktop", "gateway"])
|
|
15498
|
+
});
|
|
15499
|
+
var DEFAULT_VOICE_ROUTES = Object.freeze({
|
|
15500
|
+
chatExperience: "chatgpt",
|
|
15501
|
+
chatConnection: "desktop",
|
|
15502
|
+
workConnection: "gateway"
|
|
15503
|
+
});
|
|
15504
|
+
var voiceSettingsSchema = voiceRoutesSchema.extend({ inject: external_exports.boolean() });
|
|
15505
|
+
var voiceSettingsRequestSchema = external_exports.discriminatedUnion("operation", [
|
|
15506
|
+
external_exports.strictObject({
|
|
15507
|
+
operation: external_exports.literal("get"),
|
|
15508
|
+
runtime: external_exports.strictObject({
|
|
15509
|
+
id: external_exports.string().uuid(),
|
|
15510
|
+
revision: external_exports.string().max(64),
|
|
15511
|
+
activeCall: external_exports.boolean()
|
|
15512
|
+
}).optional()
|
|
15513
|
+
}),
|
|
15514
|
+
external_exports.strictObject({ operation: external_exports.literal("migrate"), routes: voiceRoutesSchema }),
|
|
15515
|
+
external_exports.strictObject({
|
|
15516
|
+
operation: external_exports.literal("set"),
|
|
15517
|
+
settings: voiceSettingsSchema,
|
|
15518
|
+
revision: external_exports.string().max(64)
|
|
15519
|
+
}),
|
|
15520
|
+
external_exports.strictObject({ operation: external_exports.literal("restart"), confirm: external_exports.literal(true) })
|
|
15521
|
+
]);
|
|
15522
|
+
var voiceSettingsStateSchema = external_exports.strictObject({
|
|
15523
|
+
settings: voiceSettingsSchema,
|
|
15524
|
+
initialized: external_exports.boolean(),
|
|
15525
|
+
revision: external_exports.string(),
|
|
15526
|
+
activeInject: external_exports.boolean().nullable(),
|
|
15527
|
+
envOverride: external_exports.enum(["0", "1"]).nullable(),
|
|
15528
|
+
activeEnvOverride: external_exports.enum(["0", "1"]).nullable(),
|
|
15529
|
+
routesActive: external_exports.boolean().nullable(),
|
|
15530
|
+
activeCall: external_exports.boolean().nullable(),
|
|
15531
|
+
gatewayReady: external_exports.boolean().nullable(),
|
|
15532
|
+
restartAvailable: external_exports.boolean(),
|
|
15533
|
+
restart: external_exports.strictObject({
|
|
15534
|
+
phase: external_exports.enum(["idle", "restarting", "succeeded", "failed"]),
|
|
15535
|
+
error: external_exports.string().nullable()
|
|
15536
|
+
})
|
|
15537
|
+
});
|
|
15538
|
+
|
|
15296
15539
|
// ../shared-contracts/dist/client-channel.js
|
|
15297
15540
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15298
15541
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
15299
15542
|
var clientThreadPinsSchema = external_exports.object({ threadIds: external_exports.array(external_exports.string().min(1)) }).strict();
|
|
15300
15543
|
var clientThreadPinParamsSchema = external_exports.object({ threadId: external_exports.string().min(1).max(1024), pinned: external_exports.boolean() }).strict();
|
|
15544
|
+
var clientThreadTreeReadParamsSchema = external_exports.object({}).strict();
|
|
15545
|
+
var clientThreadTreeSchema = external_exports.object({
|
|
15546
|
+
parents: external_exports.record(external_exports.string().min(1), external_exports.string().min(1))
|
|
15547
|
+
}).strict();
|
|
15301
15548
|
var clientProjectlessWorkspaceSchema = external_exports.object({
|
|
15302
15549
|
prompt: external_exports.string().max(16384).optional()
|
|
15303
15550
|
}).strict();
|
|
@@ -15314,6 +15561,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15314
15561
|
sequence: external_exports.number().int().nonnegative()
|
|
15315
15562
|
});
|
|
15316
15563
|
var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
|
|
15564
|
+
external_exports.object({
|
|
15565
|
+
type: external_exports.literal("skills-changed"),
|
|
15566
|
+
cursor: clientChannelCursorSchema,
|
|
15567
|
+
cwd: external_exports.string().optional()
|
|
15568
|
+
}),
|
|
15317
15569
|
external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
|
|
15318
15570
|
external_exports.object({
|
|
15319
15571
|
type: external_exports.literal("preferences-changed"),
|
|
@@ -15511,6 +15763,30 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15511
15763
|
external_exports.object({ ok: external_exports.literal(false), error: external_exports.object({ code: voiceErrorCodeSchema }).strict() }).strict()
|
|
15512
15764
|
]);
|
|
15513
15765
|
|
|
15766
|
+
// ../shared-contracts/dist/skills.js
|
|
15767
|
+
var SKILLS_LIST_METHOD = "codexhost/skills/list";
|
|
15768
|
+
var SKILLS_CHANGED_METHOD = "codexhost/skills/changed";
|
|
15769
|
+
var skillsListParamsSchema = external_exports.object({
|
|
15770
|
+
threadId: hostThreadIdSchema.optional(),
|
|
15771
|
+
cwd: external_exports.string().min(1).optional()
|
|
15772
|
+
}).strict().refine((params) => !(params.threadId && params.cwd), {
|
|
15773
|
+
message: "Specify threadId or cwd, not both"
|
|
15774
|
+
});
|
|
15775
|
+
var librarySkillSchema = external_exports.object({
|
|
15776
|
+
name: external_exports.string().min(1).regex(/^[^\s[\]]+$/u),
|
|
15777
|
+
description: external_exports.string().optional(),
|
|
15778
|
+
path: external_exports.string().min(1),
|
|
15779
|
+
scope: external_exports.enum(["project", "global"]),
|
|
15780
|
+
source: external_exports.string().min(1)
|
|
15781
|
+
}).strict();
|
|
15782
|
+
var skillsListResultSchema = external_exports.object({
|
|
15783
|
+
revision: external_exports.number().int().nonnegative(),
|
|
15784
|
+
complete: external_exports.boolean(),
|
|
15785
|
+
skills: external_exports.array(librarySkillSchema),
|
|
15786
|
+
warnings: external_exports.array(external_exports.string()).optional()
|
|
15787
|
+
}).strict();
|
|
15788
|
+
var skillsChangedParamsSchema = external_exports.object({ cwd: external_exports.string().min(1).optional() }).strict();
|
|
15789
|
+
|
|
15514
15790
|
// ../shared-contracts/dist/web-access-tokens.js
|
|
15515
15791
|
var webNetworkAccessUrlSchema = external_exports.object({
|
|
15516
15792
|
/**
|
|
@@ -15617,8 +15893,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15617
15893
|
var delegationReadParamsSchema = external_exports.strictObject({
|
|
15618
15894
|
threadId: external_exports.string().min(1).max(1024),
|
|
15619
15895
|
view: external_exports.enum(["result", "messages"]),
|
|
15620
|
-
|
|
15621
|
-
|
|
15896
|
+
from: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional(),
|
|
15897
|
+
to: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional()
|
|
15622
15898
|
});
|
|
15623
15899
|
|
|
15624
15900
|
// ../shared-contracts/dist/credential-imports.js
|
|
@@ -16115,6 +16391,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16115
16391
|
"codexhost/voice/gateway-status",
|
|
16116
16392
|
"codexhost/enrollment/list",
|
|
16117
16393
|
"codexhost/enrollment/revoke",
|
|
16394
|
+
"codexhost/external-clients/list",
|
|
16395
|
+
"codexhost/external-clients/create",
|
|
16396
|
+
"codexhost/external-clients/update",
|
|
16397
|
+
"codexhost/external-clients/revoke",
|
|
16118
16398
|
"codexhost/console/remote-connections",
|
|
16119
16399
|
"codexhost/runtime/status",
|
|
16120
16400
|
"codexhost/remote/ssh-setup",
|
|
@@ -16663,6 +16943,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16663
16943
|
status: updateStatusSchema.nullable()
|
|
16664
16944
|
});
|
|
16665
16945
|
|
|
16946
|
+
// ../shared-contracts/dist/thread-watch-notice.js
|
|
16947
|
+
var THREAD_WATCH_NOTICE_OUTCOMES = [
|
|
16948
|
+
"completed",
|
|
16949
|
+
"failed",
|
|
16950
|
+
"interrupted",
|
|
16951
|
+
"timedOut",
|
|
16952
|
+
"unreadable",
|
|
16953
|
+
"notFound"
|
|
16954
|
+
];
|
|
16955
|
+
var ENTRY_PATTERN = new RegExp(String.raw`^- \[([^\]\n]+)\]\(thread://([^\s()<>"?#/]+)\): ` + `(${THREAD_WATCH_NOTICE_OUTCOMES.join("|")})(?:. (.+))?$`, "u");
|
|
16956
|
+
|
|
16666
16957
|
// ../shared-contracts/dist/remote-runtime.js
|
|
16667
16958
|
var RUNTIME_STATUS_METHOD = "codexhost/runtime/status";
|
|
16668
16959
|
var REMOTE_UPDATE_METHOD = "codexhost/remote/update";
|
|
@@ -16713,6 +17004,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16713
17004
|
archived: external_exports.boolean()
|
|
16714
17005
|
}),
|
|
16715
17006
|
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
17007
|
+
external_exports.strictObject({
|
|
17008
|
+
kind: external_exports.literal("configure"),
|
|
17009
|
+
...thread,
|
|
17010
|
+
epoch: identity,
|
|
17011
|
+
modelId: identity.optional(),
|
|
17012
|
+
thinkingOptionId: identity.optional(),
|
|
17013
|
+
permissionModeId: identity.optional()
|
|
17014
|
+
}).refine((value) => [value.modelId, value.thinkingOptionId, value.permissionModeId].filter((v) => v !== void 0).length === 1, "Select exactly one remote setting"),
|
|
16716
17015
|
external_exports.strictObject({
|
|
16717
17016
|
kind: external_exports.literal("prompt"),
|
|
16718
17017
|
...thread,
|
|
@@ -16785,6 +17084,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16785
17084
|
external_exports.strictObject({ error: external_exports.strictObject({ code: external_exports.number().int(), message: external_exports.string() }) })
|
|
16786
17085
|
]);
|
|
16787
17086
|
|
|
17087
|
+
// ../shared-contracts/dist/thread-title.js
|
|
17088
|
+
var threadTitleInputSchema = external_exports.strictObject({
|
|
17089
|
+
prompt: external_exports.string().trim().min(1).max(2e3),
|
|
17090
|
+
cwd: external_exports.string().max(4096).nullable()
|
|
17091
|
+
});
|
|
17092
|
+
var threadTitleResultSchema = external_exports.string().trim().min(1).max(60).nullable();
|
|
17093
|
+
|
|
16788
17094
|
// ../shared-contracts/dist/web-ui-extensions.js
|
|
16789
17095
|
var webUiExtensionIdSchema = external_exports.string().max(214).regex(/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/u);
|
|
16790
17096
|
var localizedTextSchema2 = external_exports.union([
|
|
@@ -16825,52 +17131,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16825
17131
|
var webUiExtensionEnabledSchema = external_exports.object({ id: webUiExtensionIdSchema, enabled: external_exports.boolean() }).strict();
|
|
16826
17132
|
var webUiExtensionRemoveSchema = external_exports.object({ id: webUiExtensionIdSchema }).strict();
|
|
16827
17133
|
|
|
16828
|
-
// ../shared-contracts/dist/voice-settings.js
|
|
16829
|
-
var voiceRoutesSchema = external_exports.strictObject({
|
|
16830
|
-
chatExperience: external_exports.enum(["chatgpt", "codex"]),
|
|
16831
|
-
chatConnection: external_exports.enum(["desktop", "gateway"]),
|
|
16832
|
-
workConnection: external_exports.enum(["desktop", "gateway"])
|
|
16833
|
-
});
|
|
16834
|
-
var DEFAULT_VOICE_ROUTES = Object.freeze({
|
|
16835
|
-
chatExperience: "chatgpt",
|
|
16836
|
-
chatConnection: "desktop",
|
|
16837
|
-
workConnection: "gateway"
|
|
16838
|
-
});
|
|
16839
|
-
var voiceSettingsSchema = voiceRoutesSchema.extend({ inject: external_exports.boolean() });
|
|
16840
|
-
var voiceSettingsRequestSchema = external_exports.discriminatedUnion("operation", [
|
|
16841
|
-
external_exports.strictObject({
|
|
16842
|
-
operation: external_exports.literal("get"),
|
|
16843
|
-
runtime: external_exports.strictObject({
|
|
16844
|
-
id: external_exports.string().uuid(),
|
|
16845
|
-
revision: external_exports.string().max(64),
|
|
16846
|
-
activeCall: external_exports.boolean()
|
|
16847
|
-
}).optional()
|
|
16848
|
-
}),
|
|
16849
|
-
external_exports.strictObject({ operation: external_exports.literal("migrate"), routes: voiceRoutesSchema }),
|
|
16850
|
-
external_exports.strictObject({
|
|
16851
|
-
operation: external_exports.literal("set"),
|
|
16852
|
-
settings: voiceSettingsSchema,
|
|
16853
|
-
revision: external_exports.string().max(64)
|
|
16854
|
-
}),
|
|
16855
|
-
external_exports.strictObject({ operation: external_exports.literal("restart"), confirm: external_exports.literal(true) })
|
|
16856
|
-
]);
|
|
16857
|
-
var voiceSettingsStateSchema = external_exports.strictObject({
|
|
16858
|
-
settings: voiceSettingsSchema,
|
|
16859
|
-
initialized: external_exports.boolean(),
|
|
16860
|
-
revision: external_exports.string(),
|
|
16861
|
-
activeInject: external_exports.boolean().nullable(),
|
|
16862
|
-
envOverride: external_exports.enum(["0", "1"]).nullable(),
|
|
16863
|
-
activeEnvOverride: external_exports.enum(["0", "1"]).nullable(),
|
|
16864
|
-
routesActive: external_exports.boolean().nullable(),
|
|
16865
|
-
activeCall: external_exports.boolean().nullable(),
|
|
16866
|
-
gatewayReady: external_exports.boolean().nullable(),
|
|
16867
|
-
restartAvailable: external_exports.boolean(),
|
|
16868
|
-
restart: external_exports.strictObject({
|
|
16869
|
-
phase: external_exports.enum(["idle", "restarting", "succeeded", "failed"]),
|
|
16870
|
-
error: external_exports.string().nullable()
|
|
16871
|
-
})
|
|
16872
|
-
});
|
|
16873
|
-
|
|
16874
17134
|
// ../shared-contracts/dist/background-activity.js
|
|
16875
17135
|
var backgroundActivitySchema = external_exports.strictObject({
|
|
16876
17136
|
id: external_exports.string().min(1),
|
|
@@ -19055,6 +19315,19 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
19055
19315
|
return externalThreadForkResultSchema.parse(result);
|
|
19056
19316
|
},
|
|
19057
19317
|
inspectHarness,
|
|
19318
|
+
async listSkills(params) {
|
|
19319
|
+
return skillsListResultSchema.parse(
|
|
19320
|
+
await manager.sendRequest(SKILLS_LIST_METHOD, skillsListParamsSchema.parse(params))
|
|
19321
|
+
);
|
|
19322
|
+
},
|
|
19323
|
+
subscribeSkillsChanged(listener) {
|
|
19324
|
+
return notificationTarget(source)?.addNotificationCallback?.(SKILLS_CHANGED_METHOD, (value) => {
|
|
19325
|
+
if (!isRecord2(value) || value.method !== SKILLS_CHANGED_METHOD) return;
|
|
19326
|
+
const parsed = skillsChangedParamsSchema.safeParse(value.params);
|
|
19327
|
+
if (parsed.success) listener(parsed.data);
|
|
19328
|
+
}) ?? (() => {
|
|
19329
|
+
});
|
|
19330
|
+
},
|
|
19058
19331
|
async listHarnessPlugins() {
|
|
19059
19332
|
return harnessPluginListResultSchema.parse(
|
|
19060
19333
|
await manager.sendRequest(HARNESS_PLUGIN_LIST_METHOD, {})
|
|
@@ -20475,6 +20748,16 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20475
20748
|
["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor" }]
|
|
20476
20749
|
];
|
|
20477
20750
|
|
|
20751
|
+
// ../../node_modules/lucide/dist/esm/icons/bot.mjs
|
|
20752
|
+
var Bot = [
|
|
20753
|
+
["path", { d: "M12 8V4H8" }],
|
|
20754
|
+
["rect", { width: "16", height: "12", x: "4", y: "8", rx: "2" }],
|
|
20755
|
+
["path", { d: "M2 14h2" }],
|
|
20756
|
+
["path", { d: "M20 14h2" }],
|
|
20757
|
+
["path", { d: "M15 13v2" }],
|
|
20758
|
+
["path", { d: "M9 13v2" }]
|
|
20759
|
+
];
|
|
20760
|
+
|
|
20478
20761
|
// src/settings/icons.ts
|
|
20479
20762
|
var iconNodes = {
|
|
20480
20763
|
settings: Settings,
|
|
@@ -20493,6 +20776,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20493
20776
|
language: Languages,
|
|
20494
20777
|
connections: PlugZap,
|
|
20495
20778
|
enrollment: KeyRound,
|
|
20779
|
+
"mcp-clients": Bot,
|
|
20496
20780
|
accounts: Users,
|
|
20497
20781
|
"session-import": FolderInput,
|
|
20498
20782
|
add: Plus,
|
|
@@ -21014,6 +21298,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21014
21298
|
harnessQuestionInChatHelp: Object.freeze([
|
|
21015
21299
|
"Codex's own questions always use the Codex Desktop layout.",
|
|
21016
21300
|
"Some single-choice and text questions still use the Desktop card.",
|
|
21301
|
+
"In-chat cards grow with the conversation and do not scroll inside the card. Overlay cards keep a height limit above the message box.",
|
|
21017
21302
|
"Answered questions remain after reopening a chat only if the Harness's own history records them.",
|
|
21018
21303
|
"Desktop still folds thinking and tool calls. The answered card stays visible as full-width history during the turn, then with the visible reply.",
|
|
21019
21304
|
"Update both the Host and the Desktop extension, including remote Hosts."
|
|
@@ -21209,7 +21494,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21209
21494
|
grokComputerUseApplyFailed: "Could not apply the saved setting to Grok config.",
|
|
21210
21495
|
connectionOfficialWebsite: "Visit official website",
|
|
21211
21496
|
connectionOpenHarnessWeb: "Open DeepSeek Harness Web",
|
|
21212
|
-
connectionDeepSeekTestedVersions: "Supported DSH versions: 0.1.7-rc.1, 0.1.7-rc.2, 0.2.0-rc.1, 0.2.0-rc.2, 0.2.1-rc.1, 0.2.1-rc.2, 0.2.1-rc.3, 0.2.1-rc.4, 0.2.1-rc.5 and 0.2.2-rc.
|
|
21497
|
+
connectionDeepSeekTestedVersions: "Supported DSH versions: 0.1.7-rc.1, 0.1.7-rc.2, 0.2.0-rc.1, 0.2.0-rc.2, 0.2.1-rc.1, 0.2.1-rc.2, 0.2.1-rc.3, 0.2.1-rc.4, 0.2.1-rc.5, 0.2.2-rc.1 and 0.2.2-rc.2. Versions newer than 0.2.2-rc.2 can be tried, but compatibility may be limited; versions older than 0.1.7-rc.1 must be upgraded first.",
|
|
21213
21498
|
connectionInstall: "Install",
|
|
21214
21499
|
connectionInstallDescription: "This Harness was not detected.",
|
|
21215
21500
|
connectionInstallRunning: "Installing on the selected Host. You can leave this page; login or setup may still be required afterward.",
|
|
@@ -21326,11 +21611,55 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21326
21611
|
revoke: "Revoke",
|
|
21327
21612
|
revoking: "Revoking\u2026"
|
|
21328
21613
|
}),
|
|
21614
|
+
mcpClients: Object.freeze({
|
|
21615
|
+
description: "Trusted operational MCP clients. Add a client, choose Thread access, then connect OAuth. An OAuth app name is not Host authority. Muse uses the public relay, never loopback.",
|
|
21616
|
+
helpLabel: "About MCP clients",
|
|
21617
|
+
help: Object.freeze([
|
|
21618
|
+
"Muse and Grok Bot share the same 11-tool Host catalog. Each client has its own identity, access, and revocation.",
|
|
21619
|
+
"All Host Threads is the default. Selected workspaces limits reads, writes, listings, waits, events, watches, and new delegation destinations in those roots.",
|
|
21620
|
+
"Public relay is the default connector URL. Local is loopback :4398 on this Mac. Direct uses a path that already reaches this Mac; Host does not open a new public listener.",
|
|
21621
|
+
"Revoke immediately ends later API use, including established sessions. Already-started tasks keep running. Cancellation is separate."
|
|
21622
|
+
]),
|
|
21623
|
+
columns: Object.freeze(["Client", "Access", "Connection", "Grant", "URL", "Actions"]),
|
|
21624
|
+
empty: "No MCP clients. Add muse or grok-bot here before connecting OAuth.",
|
|
21625
|
+
unavailable: "MCP clients require the local Host.",
|
|
21626
|
+
failed: "Could not load MCP clients.",
|
|
21627
|
+
loading: "Loading MCP clients\u2026",
|
|
21628
|
+
refresh: "Refresh",
|
|
21629
|
+
add: "Add client",
|
|
21630
|
+
adding: "Adding\u2026",
|
|
21631
|
+
name: "Client name",
|
|
21632
|
+
access: "Thread access",
|
|
21633
|
+
accessAll: "All Host Threads",
|
|
21634
|
+
accessSelected: "Selected workspaces",
|
|
21635
|
+
workspaces: "Workspace roots",
|
|
21636
|
+
workspacesHint: "One absolute path per line. Symlinks are resolved. Unresolved paths are denied.",
|
|
21637
|
+
connection: "Connection",
|
|
21638
|
+
connectionPublic: "Public relay (default)",
|
|
21639
|
+
connectionLocal: "Local loopback",
|
|
21640
|
+
connectionDirect: "Direct / already reachable",
|
|
21641
|
+
grant: "Dispatch grant",
|
|
21642
|
+
grantLegacy: "Legacy four tools (Muse staging)",
|
|
21643
|
+
grantFull: "Full Host dispatch",
|
|
21644
|
+
oauthClientId: "Bound OAuth client id (optional)",
|
|
21645
|
+
directUrl: "Direct MCP URL",
|
|
21646
|
+
directUrlHint: "https://host/mcp or http://100.x.x.x/mcp on Tailscale. Host does not open a listener.",
|
|
21647
|
+
connectOAuth: "Connect OAuth at this URL after the Host record exists.",
|
|
21648
|
+
copyUrl: "Copy URL",
|
|
21649
|
+
copied: "Copied",
|
|
21650
|
+
tokenOnce: "Same-Mac token (shown once). Store it privately; it is not listed again.",
|
|
21651
|
+
confirmRevoke: "Confirm revoke",
|
|
21652
|
+
revoke: "Revoke",
|
|
21653
|
+
revoking: "Revoking\u2026",
|
|
21654
|
+
save: "Save",
|
|
21655
|
+
saving: "Saving\u2026"
|
|
21656
|
+
}),
|
|
21329
21657
|
pageLabels: Object.freeze({
|
|
21330
21658
|
connections: "Connections",
|
|
21331
21659
|
"mobile-web": "Phone & browser",
|
|
21332
21660
|
"remote-connections": "Other computers (SSH)",
|
|
21333
21661
|
enrollment: "Enrollment",
|
|
21662
|
+
"mcp-clients": "MCP clients",
|
|
21334
21663
|
appearance: "General",
|
|
21335
21664
|
voice: "Voice",
|
|
21336
21665
|
accounts: "Accounts",
|
|
@@ -21365,6 +21694,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21365
21694
|
harnessQuestionInChatHelp: Object.freeze([
|
|
21366
21695
|
"Codex \u81EA\u5DF1\u7684\u63D0\u95EE\u59CB\u7EC8\u4F7F\u7528 Codex Desktop \u7684\u5E03\u5C40\u3002",
|
|
21367
21696
|
"\u90E8\u5206\u5355\u9009\u548C\u6587\u672C\u63D0\u95EE\u4ECD\u4F7F\u7528 Desktop \u5361\u7247\u3002",
|
|
21697
|
+
"\u5BF9\u8BDD\u4E2D\u7684\u63D0\u95EE\u5361\u7247\u968F\u4F1A\u8BDD\u53D8\u9AD8\uFF0C\u4E0D\u5728\u5361\u7247\u5185\u6EDA\u52A8\u3002\u53E0\u52A0\u5728\u8F93\u5165\u6846\u4E0A\u65B9\u65F6\u4ECD\u6709\u9AD8\u5EA6\u9650\u5236\u3002",
|
|
21368
21698
|
"\u53EA\u6709 Harness \u81EA\u5DF1\u7684\u5386\u53F2\u8BB0\u5F55\u4E86\u63D0\u95EE\u548C\u7B54\u6848\u65F6\uFF0C\u91CD\u65B0\u6253\u5F00\u4F1A\u8BDD\u624D\u4F1A\u518D\u6B21\u663E\u793A\u5DF2\u56DE\u7B54\u7684\u63D0\u95EE\u3002",
|
|
21369
21699
|
"Desktop \u4ECD\u4F1A\u6298\u53E0\u601D\u8003\u548C\u5DE5\u5177\u8C03\u7528\u3002\u5DF2\u56DE\u7B54\u7684\u5361\u7247\u5728\u56DE\u5408\u8FDB\u884C\u4E2D\u4E5F\u4FDD\u6301\u5168\u5BBD\u5386\u53F2\uFF0C\u968F\u540E\u7559\u5728\u53EF\u89C1\u56DE\u590D\u5904\u3002",
|
|
21370
21700
|
"Host \u548C Desktop \u6269\u5C55\u9700\u8981\u4E00\u8D77\u66F4\u65B0\uFF0C\u5305\u62EC\u8FDC\u7A0B Host\u3002"
|
|
@@ -21560,7 +21890,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21560
21890
|
grokComputerUseApplyFailed: "\u65E0\u6CD5\u5C06\u5DF2\u4FDD\u5B58\u7684\u8BBE\u7F6E\u5199\u5165 Grok \u914D\u7F6E\u3002",
|
|
21561
21891
|
connectionOfficialWebsite: "\u8BBF\u95EE\u5B98\u7F51",
|
|
21562
21892
|
connectionOpenHarnessWeb: "\u6253\u5F00 DeepSeek Harness Web",
|
|
21563
|
-
connectionDeepSeekTestedVersions: "\u652F\u6301 DSH \u7248\u672C\uFF1A0.1.7-rc.1\u30010.1.7-rc.2\u30010.2.0-rc.1\u30010.2.0-rc.2\u30010.2.1-rc.1\u30010.2.1-rc.2\u30010.2.1-rc.3\u30010.2.1-rc.4\u30010.2.1-rc.5 \u548C 0.2.2-rc.
|
|
21893
|
+
connectionDeepSeekTestedVersions: "\u652F\u6301 DSH \u7248\u672C\uFF1A0.1.7-rc.1\u30010.1.7-rc.2\u30010.2.0-rc.1\u30010.2.0-rc.2\u30010.2.1-rc.1\u30010.2.1-rc.2\u30010.2.1-rc.3\u30010.2.1-rc.4\u30010.2.1-rc.5\u30010.2.2-rc.1 \u548C 0.2.2-rc.2\u3002\u9AD8\u4E8E 0.2.2-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",
|
|
21564
21894
|
connectionInstall: "\u5B89\u88C5",
|
|
21565
21895
|
connectionInstallDescription: "\u5C1A\u672A\u68C0\u6D4B\u5230\u8BE5 Harness\u3002",
|
|
21566
21896
|
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",
|
|
@@ -21677,11 +22007,55 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21677
22007
|
revoke: "\u64A4\u9500",
|
|
21678
22008
|
revoking: "\u6B63\u5728\u64A4\u9500\u2026"
|
|
21679
22009
|
}),
|
|
22010
|
+
mcpClients: Object.freeze({
|
|
22011
|
+
description: "\u53D7\u4FE1\u4EFB\u7684\u8FD0\u8425 MCP \u5BA2\u6237\u7AEF\u3002\u5148\u6DFB\u52A0\u5BA2\u6237\u7AEF\u3001\u9009\u62E9 Thread \u8BBF\u95EE\u8303\u56F4\uFF0C\u518D\u8FDE\u63A5 OAuth\u3002\u4EC5\u6709 OAuth \u5E94\u7528\u540D\u79F0\u4E0D\u80FD\u83B7\u5F97 Host \u6743\u9650\u3002Muse \u4F7F\u7528\u516C\u7F51\u4E2D\u7EE7\uFF0C\u4E0D\u5F97\u6307\u5411\u56DE\u73AF\u5730\u5740\u3002",
|
|
22012
|
+
helpLabel: "\u5173\u4E8E MCP \u5BA2\u6237\u7AEF",
|
|
22013
|
+
help: Object.freeze([
|
|
22014
|
+
"Muse \u4E0E Grok Bot \u5171\u7528\u540C\u4E00\u5957 11 \u4E2A Host \u5DE5\u5177\u3002\u6BCF\u4E2A\u5BA2\u6237\u7AEF\u6709\u72EC\u7ACB\u8EAB\u4EFD\u3001\u8BBF\u95EE\u8303\u56F4\u548C\u64A4\u9500\u3002",
|
|
22015
|
+
"\u9ED8\u8BA4\u53EF\u8BBF\u95EE\u5168\u90E8 Host Thread\u3002\u9009\u5B9A\u5DE5\u4F5C\u533A\u4F1A\u9650\u5236\u8FD9\u4E9B\u6839\u76EE\u5F55\u5185\u7684\u8BFB\u5199\u3001\u5217\u8868\u3001\u7B49\u5F85\u3001\u4E8B\u4EF6\u3001\u76D1\u89C6\u4EE5\u53CA\u65B0\u7684\u59D4\u6D3E\u76EE\u6807\u3002",
|
|
22016
|
+
"\u9ED8\u8BA4\u8FDE\u63A5\u662F\u516C\u7F51\u4E2D\u7EE7\u3002\u672C\u673A\u4E3A\u56DE\u73AF :4398\u3002Direct \u4F7F\u7528\u5DF2\u7ECF\u80FD\u5230\u8FBE\u672C\u673A\u7684\u8DEF\u5F84\uFF1BHost \u4E0D\u4F1A\u65B0\u5F00\u516C\u7F51\u76D1\u542C\u3002",
|
|
22017
|
+
"\u64A4\u9500\u4F1A\u7ACB\u5373\u7981\u6B62\u540E\u7EED API \u4F7F\u7528\uFF0C\u5305\u62EC\u5DF2\u5EFA\u7ACB\u7684\u4F1A\u8BDD\u3002\u5DF2\u7ECF\u5F00\u59CB\u7684\u4EFB\u52A1\u7EE7\u7EED\u8FD0\u884C\u3002\u53D6\u6D88\u4EFB\u52A1\u662F\u5355\u72EC\u64CD\u4F5C\u3002"
|
|
22018
|
+
]),
|
|
22019
|
+
columns: Object.freeze(["\u5BA2\u6237\u7AEF", "\u8BBF\u95EE", "\u8FDE\u63A5", "\u6388\u6743", "URL", "\u64CD\u4F5C"]),
|
|
22020
|
+
empty: "\u6682\u65E0 MCP \u5BA2\u6237\u7AEF\u3002\u8FDE\u63A5 OAuth \u524D\u8BF7\u5148\u5728\u6B64\u6DFB\u52A0 muse \u6216 grok-bot\u3002",
|
|
22021
|
+
unavailable: "MCP \u5BA2\u6237\u7AEF\u9700\u8981\u6B63\u5728\u8FD0\u884C\u7684\u672C\u5730 Host\u3002",
|
|
22022
|
+
failed: "\u65E0\u6CD5\u52A0\u8F7D MCP \u5BA2\u6237\u7AEF\u3002",
|
|
22023
|
+
loading: "\u6B63\u5728\u52A0\u8F7D MCP \u5BA2\u6237\u7AEF\u2026",
|
|
22024
|
+
refresh: "\u5237\u65B0",
|
|
22025
|
+
add: "\u6DFB\u52A0\u5BA2\u6237\u7AEF",
|
|
22026
|
+
adding: "\u6B63\u5728\u6DFB\u52A0\u2026",
|
|
22027
|
+
name: "\u5BA2\u6237\u7AEF\u540D\u79F0",
|
|
22028
|
+
access: "Thread \u8BBF\u95EE",
|
|
22029
|
+
accessAll: "\u5168\u90E8 Host Thread",
|
|
22030
|
+
accessSelected: "\u9009\u5B9A\u5DE5\u4F5C\u533A",
|
|
22031
|
+
workspaces: "\u5DE5\u4F5C\u533A\u6839\u76EE\u5F55",
|
|
22032
|
+
workspacesHint: "\u6BCF\u884C\u4E00\u4E2A\u7EDD\u5BF9\u8DEF\u5F84\u3002\u7B26\u53F7\u94FE\u63A5\u4F1A\u88AB\u89E3\u6790\u3002\u65E0\u6CD5\u89E3\u6790\u7684\u8DEF\u5F84\u4F1A\u88AB\u62D2\u7EDD\u3002",
|
|
22033
|
+
connection: "\u8FDE\u63A5",
|
|
22034
|
+
connectionPublic: "\u516C\u7F51\u4E2D\u7EE7\uFF08\u9ED8\u8BA4\uFF09",
|
|
22035
|
+
connectionLocal: "\u672C\u673A\u56DE\u73AF",
|
|
22036
|
+
connectionDirect: "Direct / \u5DF2\u53EF\u8FBE",
|
|
22037
|
+
grant: "\u8C03\u5EA6\u6388\u6743",
|
|
22038
|
+
grantLegacy: "\u65E7\u7248\u56DB\u5DE5\u5177\uFF08Muse \u8FC7\u6E21\uFF09",
|
|
22039
|
+
grantFull: "\u5B8C\u6574 Host \u8C03\u5EA6",
|
|
22040
|
+
oauthClientId: "\u7ED1\u5B9A\u7684 OAuth client id\uFF08\u53EF\u9009\uFF09",
|
|
22041
|
+
directUrl: "Direct MCP URL",
|
|
22042
|
+
directUrlHint: "https://host/mcp\uFF0C\u6216 Tailscale \u4E0A\u7684 http://100.x.x.x/mcp\u3002Host \u4E0D\u4F1A\u65B0\u5F00\u76D1\u542C\u3002",
|
|
22043
|
+
connectOAuth: "Host \u8BB0\u5F55\u5B58\u5728\u540E\u518D\u7528\u6B64 URL \u8FDE\u63A5 OAuth\u3002",
|
|
22044
|
+
copyUrl: "\u590D\u5236 URL",
|
|
22045
|
+
copied: "\u5DF2\u590D\u5236",
|
|
22046
|
+
tokenOnce: "\u672C\u673A\u4EE4\u724C\uFF08\u53EA\u663E\u793A\u4E00\u6B21\uFF09\u3002\u8BF7\u79C1\u4E0B\u4FDD\u5B58\uFF1B\u5217\u8868\u4E0D\u4F1A\u518D\u6B21\u663E\u793A\u3002",
|
|
22047
|
+
confirmRevoke: "\u786E\u8BA4\u64A4\u9500",
|
|
22048
|
+
revoke: "\u64A4\u9500",
|
|
22049
|
+
revoking: "\u6B63\u5728\u64A4\u9500\u2026",
|
|
22050
|
+
save: "\u4FDD\u5B58",
|
|
22051
|
+
saving: "\u6B63\u5728\u4FDD\u5B58\u2026"
|
|
22052
|
+
}),
|
|
21680
22053
|
pageLabels: Object.freeze({
|
|
21681
22054
|
connections: "\u8FDE\u63A5",
|
|
21682
22055
|
"mobile-web": "\u624B\u673A\u4E0E\u6D4F\u89C8\u5668",
|
|
21683
22056
|
"remote-connections": "\u5176\u4ED6\u7535\u8111\uFF08SSH\uFF09",
|
|
21684
22057
|
enrollment: "\u5BA2\u6237\u7AEF\u767B\u8BB0",
|
|
22058
|
+
"mcp-clients": "MCP \u5BA2\u6237\u7AEF",
|
|
21685
22059
|
appearance: "\u901A\u7528",
|
|
21686
22060
|
voice: "\u8BED\u97F3",
|
|
21687
22061
|
accounts: "\u8D26\u53F7",
|
|
@@ -21711,12 +22085,22 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21711
22085
|
return locale === "zh-CN" ? CHINESE_MESSAGES : ENGLISH_MESSAGES;
|
|
21712
22086
|
}
|
|
21713
22087
|
|
|
21714
|
-
// src/renderer-
|
|
21715
|
-
var
|
|
21716
|
-
var
|
|
21717
|
-
|
|
21718
|
-
|
|
21719
|
-
|
|
22088
|
+
// src/renderer-chat-voice-debug.ts
|
|
22089
|
+
var CHAT_VOICE_DEBUG_GLOBAL = "__codexhostChatVoiceDebug";
|
|
22090
|
+
var CHAT_VOICE_DEBUG_STORAGE_KEY = "codexhost.chat-voice-debug.v1";
|
|
22091
|
+
function chatVoiceDebug(event, detail = {}) {
|
|
22092
|
+
const entry = { t: Date.now(), event, ...detail };
|
|
22093
|
+
const owner = globalThis;
|
|
22094
|
+
const log = Array.isArray(owner[CHAT_VOICE_DEBUG_GLOBAL]) ? owner[CHAT_VOICE_DEBUG_GLOBAL] : [];
|
|
22095
|
+
log.push(entry);
|
|
22096
|
+
while (log.length > 40) log.shift();
|
|
22097
|
+
owner[CHAT_VOICE_DEBUG_GLOBAL] = log;
|
|
22098
|
+
try {
|
|
22099
|
+
owner.localStorage?.setItem(CHAT_VOICE_DEBUG_STORAGE_KEY, JSON.stringify(log));
|
|
22100
|
+
} catch {
|
|
22101
|
+
}
|
|
22102
|
+
owner.console?.info?.("[codexhost-chat-voice]", event, detail);
|
|
22103
|
+
}
|
|
21720
22104
|
|
|
21721
22105
|
// src/voice-settings-sync.ts
|
|
21722
22106
|
function desktopVoiceCallActive(owner) {
|
|
@@ -21785,6 +22169,12 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21785
22169
|
hookUnsupported: "This Desktop build is not supported for gateway voice",
|
|
21786
22170
|
hookPending: "Attaching\u2026",
|
|
21787
22171
|
hookDisabled: "Off",
|
|
22172
|
+
available: "Available",
|
|
22173
|
+
desktopSelected: "Desktop default selected",
|
|
22174
|
+
routeAllowed: "Allowed on this Desktop",
|
|
22175
|
+
pathUnavailable: "Not available on this Desktop.",
|
|
22176
|
+
chatUnavailableFooter: "Chat voice is not available on this Desktop.",
|
|
22177
|
+
workUnavailableFooter: "Work voice is not available on this Desktop.",
|
|
21788
22178
|
configure: "Configure",
|
|
21789
22179
|
setup: "Gateway setup",
|
|
21790
22180
|
setupHint: "Gateway settings use your local Codex configuration and the selected provider\u2019s credential. End voice before editing configuration. Never paste credentials here.",
|
|
@@ -21816,66 +22206,1021 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21816
22206
|
conflict: "Settings changed in another window. Reload before applying.",
|
|
21817
22207
|
gatewayWarning: "The selected gateway needs setup before voice can connect."
|
|
21818
22208
|
};
|
|
21819
|
-
if (locale !== "zh-CN") return en;
|
|
22209
|
+
if (locale !== "zh-CN") return en;
|
|
22210
|
+
return {
|
|
22211
|
+
...en,
|
|
22212
|
+
title: "\u8BED\u97F3",
|
|
22213
|
+
description: "\u9009\u62E9 Chat \u548C Work \u7684\u8BED\u97F3\u65B9\u5F0F\u3002\u5728\u6B64 Mac \u4E0A\u5171\u4EAB\u3002",
|
|
22214
|
+
experience: "\u8BED\u97F3\u4F53\u9A8C",
|
|
22215
|
+
chatHint: "ChatGPT \u8BED\u97F3\u4FDD\u7559\u5728\u5F53\u524D Chat \u5BF9\u8BDD\u4E2D\u3002",
|
|
22216
|
+
codexConnection: "Codex \u8FDE\u63A5",
|
|
22217
|
+
codexHint: "\u9009\u62E9 Codex \u8BED\u97F3\u540E\u53EF\u7528\u3002",
|
|
22218
|
+
connection: "\u8BED\u97F3\u8FDE\u63A5",
|
|
22219
|
+
workHint: "Desktop \u9ED8\u8BA4\u9002\u7528\u4E8E Codex Work\u3002\u5916\u90E8 Harness \u8BED\u97F3\u4F7F\u7528\u5DF2\u914D\u7F6E\u7684\u7F51\u5173\u3002",
|
|
22220
|
+
desktop: "Desktop \u9ED8\u8BA4",
|
|
22221
|
+
gateway: "\u5DF2\u914D\u7F6E\u7684\u7F51\u5173",
|
|
22222
|
+
configuration: "\u914D\u7F6E",
|
|
22223
|
+
gatewayTitle: "\u7F51\u5173",
|
|
22224
|
+
gatewayHint: "\u4EC5\u5728\u9009\u62E9\u5DF2\u914D\u7F6E\u7684\u7F51\u5173\u65F6\u4F7F\u7528\u3002",
|
|
22225
|
+
configured: "\u5DF2\u914D\u7F6E",
|
|
22226
|
+
needsSetup: "\u9700\u8981\u914D\u7F6E",
|
|
22227
|
+
unknown: "\u672A\u68C0\u67E5",
|
|
22228
|
+
gatewayStatus: "\u7F51\u5173\u914D\u7F6E",
|
|
22229
|
+
preferencesStatus: "\u504F\u597D\u662F\u5426\u5DF2\u5E94\u7528",
|
|
22230
|
+
hookStatus: "Desktop \u7F51\u5173\u8BED\u97F3\u96C6\u6210",
|
|
22231
|
+
preferencesOn: "\u5DF2\u5E94\u7528",
|
|
22232
|
+
preferencesOff: "\u5C1A\u672A\u5E94\u7528",
|
|
22233
|
+
hookSupported: "\u652F\u6301",
|
|
22234
|
+
hookUnsupported: "\u5F53\u524D Desktop \u7248\u672C\u4E0D\u652F\u6301\u7F51\u5173\u8BED\u97F3",
|
|
22235
|
+
hookPending: "\u6B63\u5728\u63A5\u5165\u2026",
|
|
22236
|
+
hookDisabled: "\u5DF2\u5173\u95ED",
|
|
22237
|
+
available: "\u53EF\u7528",
|
|
22238
|
+
desktopSelected: "\u5DF2\u9009\u62E9 Desktop \u9ED8\u8BA4",
|
|
22239
|
+
routeAllowed: "\u6B64 Desktop \u5DF2\u5141\u8BB8",
|
|
22240
|
+
pathUnavailable: "\u6B64 Desktop \u4E0A\u4E0D\u53EF\u7528\u3002",
|
|
22241
|
+
chatUnavailableFooter: "\u6B64 Desktop \u4E0A Chat \u8BED\u97F3\u4E0D\u53EF\u7528\u3002",
|
|
22242
|
+
workUnavailableFooter: "\u6B64 Desktop \u4E0A Work \u8BED\u97F3\u4E0D\u53EF\u7528\u3002",
|
|
22243
|
+
configure: "\u914D\u7F6E",
|
|
22244
|
+
setup: "\u7F51\u5173\u914D\u7F6E",
|
|
22245
|
+
setupHint: "\u7F51\u5173\u4F7F\u7528\u672C\u5730 Codex \u914D\u7F6E\u53CA\u6240\u9009 Provider \u7684\u51ED\u636E\u3002\u7F16\u8F91\u524D\u8BF7\u7ED3\u675F\u8BED\u97F3\u3002\u8BF7\u52FF\u5728\u6B64\u7C98\u8D34\u51ED\u636E\u3002",
|
|
22246
|
+
advanced: "\u9AD8\u7EA7",
|
|
22247
|
+
advancedHint: "\u8BED\u97F3\u96C6\u6210\u4E0E\u8BCA\u65AD\u3002",
|
|
22248
|
+
inject: "\u542F\u7528\u8BED\u97F3\u96C6\u6210",
|
|
22249
|
+
injectHint: "\u542F\u7528 ChatGPT \u8BED\u97F3\u6309\u94AE\u4E0E\u7F51\u5173\u8DEF\u7531\u3002\u66F4\u6539\u6B64\u9879\u9700\u8981\u91CD\u542F codexhost\u3002",
|
|
22250
|
+
environment: "\u5F53\u524D\u542F\u52A8\u73AF\u5883\u63A7\u5236\u8BED\u97F3\u96C6\u6210\u3002",
|
|
22251
|
+
loading: "\u6B63\u5728\u52A0\u8F7D\u8BED\u97F3\u8BBE\u7F6E\u2026",
|
|
22252
|
+
unavailable: "\u8BED\u97F3\u8BBE\u7F6E\u4E0D\u53EF\u7528\uFF0C\u8BF7\u68C0\u67E5\u672C\u5730 Host \u8FDE\u63A5\u3002",
|
|
22253
|
+
retry: "\u91CD\u65B0\u52A0\u8F7D",
|
|
22254
|
+
cancel: "\u53D6\u6D88",
|
|
22255
|
+
apply: "\u5E94\u7528\u66F4\u6539",
|
|
22256
|
+
applyRestart: "\u5E94\u7528\u5E76\u91CD\u542F codexhost",
|
|
22257
|
+
retryRestart: "\u91CD\u8BD5\u91CD\u542F",
|
|
22258
|
+
saving: "\u6B63\u5728\u4FDD\u5B58\u8BBE\u7F6E\u2026",
|
|
22259
|
+
restarting: "\u6B63\u5728\u91CD\u542F codexhost\u2026",
|
|
22260
|
+
ready: "\u6CA1\u6709\u5F85\u5E94\u7528\u7684\u66F4\u6539",
|
|
22261
|
+
edited: "\u66F4\u6539\u5C1A\u672A\u4FDD\u5B58",
|
|
22262
|
+
nextCall: "\u8BED\u97F3\u9009\u62E9\u4ECE\u4E0B\u6B21\u901A\u8BDD\u751F\u6548\u3002",
|
|
22263
|
+
pending: "\u5DF2\u4FDD\u5B58\uFF0C\u7B49\u5F85 Desktop \u5E94\u7528\u8BED\u97F3\u9009\u62E9\u3002",
|
|
22264
|
+
restartNeeded: "\u5DF2\u4FDD\u5B58\uFF0C\u9700\u8981\u91CD\u542F",
|
|
22265
|
+
activeUnknown: "\u5DF2\u4FDD\u5B58\uFF0C\u5F53\u524D\u751F\u6548\u72B6\u6001\u672A\u77E5\u3002",
|
|
22266
|
+
activeCall: "\u8BF7\u7ED3\u675F\u8BED\u97F3\u540E\u518D\u5E94\u7528\u66F4\u6539\u3002",
|
|
22267
|
+
integrationOff: "\u8BED\u97F3\u96C6\u6210\u5DF2\u5173\u95ED\uFF0C\u8BF7\u5728\u9AD8\u7EA7\u8BBE\u7F6E\u4E2D\u542F\u7528\u540E\u4F7F\u7528\u8FD9\u4E9B\u9009\u9879\u3002",
|
|
22268
|
+
restartWarning: "\u91CD\u542F codexhost \u4EE5\u5E94\u7528\u8BED\u97F3\u96C6\u6210\uFF1F\u8FD9\u53EF\u80FD\u4E2D\u65AD\u8FD0\u884C\u4E2D\u7684\u4EFB\u52A1\uFF0C\u8BF7\u5148\u7ED3\u675F\u8BED\u97F3\u3002",
|
|
22269
|
+
confirm: "\u5E94\u7528\u5E76\u91CD\u542F",
|
|
22270
|
+
restartFailed: "\u8BBE\u7F6E\u5DF2\u4FDD\u5B58\uFF0C\u4F46\u91CD\u542F\u5931\u8D25\u3002",
|
|
22271
|
+
conflict: "\u5176\u4ED6\u7A97\u53E3\u66F4\u6539\u4E86\u8BBE\u7F6E\uFF0C\u8BF7\u91CD\u65B0\u52A0\u8F7D\u540E\u518D\u5E94\u7528\u3002",
|
|
22272
|
+
gatewayWarning: "\u6240\u9009\u7F51\u5173\u9700\u8981\u914D\u7F6E\u540E\u624D\u80FD\u8FDE\u63A5\u8BED\u97F3\u3002"
|
|
22273
|
+
};
|
|
22274
|
+
}
|
|
22275
|
+
|
|
22276
|
+
// src/renderer-cpa-live-voice-config.ts
|
|
22277
|
+
var CPA_LIVE_VOICE_HOOK_GLOBAL = "__codexhostCpaLiveVoiceHookV1";
|
|
22278
|
+
var ISOLATED_VOICE_PATHS = ["chat", "work-codex", "work-grok"];
|
|
22279
|
+
var PRODUCTION_DESKTOP_APP_PATH = "/Applications/ChatGPT.app";
|
|
22280
|
+
var PRODUCTION_WINDOWS_APPX_PATH = /(?:^|[\\/])WindowsApps[\\/]OpenAI\.(?:Codex|ChatGPT)_/i;
|
|
22281
|
+
function isProductionDesktopAppPath(appPath) {
|
|
22282
|
+
if (typeof appPath !== "string" || appPath.length === 0) return false;
|
|
22283
|
+
if (appPath === PRODUCTION_DESKTOP_APP_PATH) return true;
|
|
22284
|
+
return PRODUCTION_WINDOWS_APPX_PATH.test(appPath);
|
|
22285
|
+
}
|
|
22286
|
+
function isRecord3(value) {
|
|
22287
|
+
return typeof value === "object" && value !== null;
|
|
22288
|
+
}
|
|
22289
|
+
function readCpaLiveVoiceHookConfig(globalObject) {
|
|
22290
|
+
const value = globalObject[CPA_LIVE_VOICE_HOOK_GLOBAL];
|
|
22291
|
+
if (!isRecord3(value) || value.enabled !== true) return null;
|
|
22292
|
+
if (typeof value.auditedDesktopVersion !== "string" || typeof value.auditedAppInitialAsset !== "string") {
|
|
22293
|
+
return null;
|
|
22294
|
+
}
|
|
22295
|
+
return {
|
|
22296
|
+
enabled: true,
|
|
22297
|
+
auditedDesktopVersion: value.auditedDesktopVersion,
|
|
22298
|
+
auditedAppInitialAsset: value.auditedAppInitialAsset,
|
|
22299
|
+
...typeof value.desktopPlatform === "string" ? { desktopPlatform: value.desktopPlatform } : {},
|
|
22300
|
+
...typeof value.desktopVersion === "string" ? { desktopVersion: value.desktopVersion } : {},
|
|
22301
|
+
...typeof value.desktopBuild === "string" ? { desktopBuild: value.desktopBuild } : {},
|
|
22302
|
+
...typeof value.asarDigest === "string" ? { asarDigest: value.asarDigest } : {},
|
|
22303
|
+
...typeof value.implementationRevision === "string" ? { implementationRevision: value.implementationRevision } : {},
|
|
22304
|
+
...typeof value.desktopAppPath === "string" ? { desktopAppPath: value.desktopAppPath } : {},
|
|
22305
|
+
...Array.isArray(value.voiceEvidence) ? { voiceEvidence: value.voiceEvidence } : {},
|
|
22306
|
+
...isIsolatedVoiceQualification(value.isolatedQualification) ? { isolatedQualification: value.isolatedQualification } : {}
|
|
22307
|
+
};
|
|
22308
|
+
}
|
|
22309
|
+
function isIsolatedVoicePath(value) {
|
|
22310
|
+
return value === "chat" || value === "work-codex" || value === "work-grok";
|
|
22311
|
+
}
|
|
22312
|
+
function isIsolatedDesktopPlatform(value) {
|
|
22313
|
+
return value === "darwin" || value === "win32" || value === "linux";
|
|
22314
|
+
}
|
|
22315
|
+
function isolatedQualificationExpiresAtMs(expiresAt) {
|
|
22316
|
+
if (typeof expiresAt !== "string" || expiresAt.length === 0) return void 0;
|
|
22317
|
+
const parsed = Date.parse(expiresAt);
|
|
22318
|
+
return Number.isFinite(parsed) ? parsed : void 0;
|
|
22319
|
+
}
|
|
22320
|
+
function isolatedQualificationPathSet(value) {
|
|
22321
|
+
if (!isRecord3(value)) return void 0;
|
|
22322
|
+
const pathsPresent = value.paths !== void 0;
|
|
22323
|
+
const pathPresent = value.path !== void 0;
|
|
22324
|
+
let listed;
|
|
22325
|
+
if (pathsPresent) {
|
|
22326
|
+
if (!Array.isArray(value.paths) || value.paths.length === 0) return void 0;
|
|
22327
|
+
if (value.paths.some((path) => !isIsolatedVoicePath(path))) return void 0;
|
|
22328
|
+
if (new Set(value.paths).size !== value.paths.length) return void 0;
|
|
22329
|
+
listed = ISOLATED_VOICE_PATHS.filter((path) => value.paths.includes(path));
|
|
22330
|
+
if (listed.length !== value.paths.length) return void 0;
|
|
22331
|
+
} else if (pathPresent) {
|
|
22332
|
+
if (!isIsolatedVoicePath(value.path)) return void 0;
|
|
22333
|
+
listed = [value.path];
|
|
22334
|
+
} else {
|
|
22335
|
+
return void 0;
|
|
22336
|
+
}
|
|
22337
|
+
if (pathPresent) {
|
|
22338
|
+
if (!isIsolatedVoicePath(value.path) || !listed.includes(value.path)) return void 0;
|
|
22339
|
+
}
|
|
22340
|
+
return listed;
|
|
22341
|
+
}
|
|
22342
|
+
function isolatedQualificationPaths(isolated) {
|
|
22343
|
+
return isolatedQualificationPathSet(isolated) ?? [];
|
|
22344
|
+
}
|
|
22345
|
+
function isIsolatedVoiceQualification(value, now = Date.now()) {
|
|
22346
|
+
if (!isRecord3(value)) return false;
|
|
22347
|
+
const paths = isolatedQualificationPathSet(value);
|
|
22348
|
+
if (!paths || paths.length === 0) return false;
|
|
22349
|
+
if (typeof value.appPath === "string" && isProductionDesktopAppPath(value.appPath)) return false;
|
|
22350
|
+
const expiresAtMs = isolatedQualificationExpiresAtMs(value.expiresAt);
|
|
22351
|
+
if (expiresAtMs === void 0 || expiresAtMs <= now) return false;
|
|
22352
|
+
return typeof value.run === "string" && value.run.length > 0 && isIsolatedDesktopPlatform(value.desktopPlatform) && typeof value.desktopVersion === "string" && typeof value.desktopBuild === "string" && typeof value.asarDigest === "string" && typeof value.appPath === "string" && typeof value.implementationRevision === "string" && value.label === "unqualified-isolated";
|
|
22353
|
+
}
|
|
22354
|
+
|
|
22355
|
+
// src/renderer-voice-implementation-revision.generated.ts
|
|
22356
|
+
var VOICE_IMPLEMENTATION_REVISION = "0a2ee1b441686523";
|
|
22357
|
+
|
|
22358
|
+
// src/renderer-voice-profiles.ts
|
|
22359
|
+
var NATIVE_CHAT_VOICE_VERSION = "26.1027.61615";
|
|
22360
|
+
var NATIVE_CHAT_INITIAL_ASSET = "app-initial-18b189e867e7.js";
|
|
22361
|
+
var START_ASSET = "start-voice-221a396d38a5.js";
|
|
22362
|
+
var BASELINE_NAMED_CHAT_ROLES = {
|
|
22363
|
+
initializeFrom: "initial",
|
|
22364
|
+
initialize: "oT",
|
|
22365
|
+
startShape: "module",
|
|
22366
|
+
voiceSessionSelector: "SPn",
|
|
22367
|
+
reactFactory: "FBt",
|
|
22368
|
+
reactDomFactory: "PNt",
|
|
22369
|
+
prewarmController: "VoiceInstantConnectCacheController",
|
|
22370
|
+
initial: {
|
|
22371
|
+
MOr: "MOr",
|
|
22372
|
+
CDr: "CDr",
|
|
22373
|
+
B1n: "B1n",
|
|
22374
|
+
SPn: "SPn",
|
|
22375
|
+
oTFrom: "initial",
|
|
22376
|
+
oT: "oT",
|
|
22377
|
+
aTFrom: "initial",
|
|
22378
|
+
aT: "aT",
|
|
22379
|
+
Ycr: "Ycr",
|
|
22380
|
+
Nir: "Nir",
|
|
22381
|
+
n0n: "n0n",
|
|
22382
|
+
Y1n: "Y1n",
|
|
22383
|
+
HJt: "HJt"
|
|
22384
|
+
},
|
|
22385
|
+
shared: { Qst: "Qst", FBt: "FBt", PNt: "PNt", Vot: "Vot" }
|
|
22386
|
+
};
|
|
22387
|
+
var NAMED_CHAT_ROLES_26_1027_61615 = {
|
|
22388
|
+
initializeFrom: "primary",
|
|
22389
|
+
initialize: "Qp",
|
|
22390
|
+
startShape: "module",
|
|
22391
|
+
voiceSessionSelector: "etn",
|
|
22392
|
+
reactFactory: "pWt",
|
|
22393
|
+
reactDomFactory: "GFt",
|
|
22394
|
+
prewarmController: "VoiceInstantConnectCacheController",
|
|
22395
|
+
initial: {
|
|
22396
|
+
MOr: "p5n",
|
|
22397
|
+
CDr: "w6n",
|
|
22398
|
+
B1n: "_On",
|
|
22399
|
+
SPn: "etn",
|
|
22400
|
+
oTFrom: "primary",
|
|
22401
|
+
oT: "Qp",
|
|
22402
|
+
aTFrom: "primary",
|
|
22403
|
+
aT: "Zp",
|
|
22404
|
+
Ycr: "ofr",
|
|
22405
|
+
Nir: "yEn",
|
|
22406
|
+
n0n: "FOn",
|
|
22407
|
+
Y1n: "JOn",
|
|
22408
|
+
HJt: "Z6"
|
|
22409
|
+
},
|
|
22410
|
+
shared: { Qst: "klt", FBt: "pWt", PNt: "GFt", Vot: "_ct" }
|
|
22411
|
+
};
|
|
22412
|
+
var NAMED_CHAT_ROLES_26_1027_30824 = {
|
|
22413
|
+
initializeFrom: "primary",
|
|
22414
|
+
initialize: "Yp",
|
|
22415
|
+
startShape: "module",
|
|
22416
|
+
voiceSessionSelector: "Xen",
|
|
22417
|
+
reactFactory: "pWt",
|
|
22418
|
+
reactDomFactory: "GFt",
|
|
22419
|
+
prewarmController: "VoiceInstantConnectCacheController",
|
|
22420
|
+
initial: {
|
|
22421
|
+
MOr: "l5n",
|
|
22422
|
+
CDr: "b6n",
|
|
22423
|
+
B1n: "pOn",
|
|
22424
|
+
SPn: "Xen",
|
|
22425
|
+
oTFrom: "primary",
|
|
22426
|
+
oT: "Yp",
|
|
22427
|
+
aTFrom: "primary",
|
|
22428
|
+
aT: "Jp",
|
|
22429
|
+
Ycr: "nfr",
|
|
22430
|
+
Nir: "hEn",
|
|
22431
|
+
n0n: "jOn",
|
|
22432
|
+
Y1n: "wOn",
|
|
22433
|
+
HJt: "J6"
|
|
22434
|
+
},
|
|
22435
|
+
shared: { Qst: "klt", FBt: "pWt", PNt: "GFt", Vot: "_ct" }
|
|
22436
|
+
};
|
|
22437
|
+
var NAMED_CHAT_ROLES_26_1023_51421 = {
|
|
22438
|
+
initializeFrom: "primary",
|
|
22439
|
+
initialize: "gm",
|
|
22440
|
+
startShape: "module",
|
|
22441
|
+
voiceSessionSelector: "s$t",
|
|
22442
|
+
reactFactory: "OHt",
|
|
22443
|
+
reactDomFactory: "wPt",
|
|
22444
|
+
prewarmController: "VoiceInstantConnectCacheController",
|
|
22445
|
+
initial: {
|
|
22446
|
+
MOr: "x1n",
|
|
22447
|
+
CDr: "MQn",
|
|
22448
|
+
B1n: "Opn",
|
|
22449
|
+
SPn: "s$t",
|
|
22450
|
+
oTFrom: "primary",
|
|
22451
|
+
oT: "gm",
|
|
22452
|
+
aTFrom: "primary",
|
|
22453
|
+
aT: "hm",
|
|
22454
|
+
Ycr: "Zir",
|
|
22455
|
+
Nir: "ejn",
|
|
22456
|
+
n0n: "Kpn",
|
|
22457
|
+
Y1n: "zpn",
|
|
22458
|
+
HJt: "k3"
|
|
22459
|
+
},
|
|
22460
|
+
shared: { Qst: "uct", FBt: "OHt", PNt: "wPt", Vot: "ast" }
|
|
22461
|
+
};
|
|
22462
|
+
var NAMED_CHAT_ROLES_26_1021_31345 = {
|
|
22463
|
+
initializeFrom: "primary",
|
|
22464
|
+
initialize: "um",
|
|
22465
|
+
startShape: "entityBusiness",
|
|
22466
|
+
startT: "r",
|
|
22467
|
+
startN: "i",
|
|
22468
|
+
voiceSessionSelector: "qXt",
|
|
22469
|
+
reactFactory: "XVt",
|
|
22470
|
+
reactDomFactory: "KNt",
|
|
22471
|
+
prewarmController: "VoiceInstantConnectCacheController",
|
|
22472
|
+
initial: {
|
|
22473
|
+
MOr: "CQn",
|
|
22474
|
+
CDr: "PXn",
|
|
22475
|
+
B1n: "tdn",
|
|
22476
|
+
SPn: "qXt",
|
|
22477
|
+
oTFrom: "primary",
|
|
22478
|
+
oT: "um",
|
|
22479
|
+
aTFrom: "primary",
|
|
22480
|
+
aT: "lm",
|
|
22481
|
+
Ycr: "Xkn",
|
|
22482
|
+
Nir: "yAn",
|
|
22483
|
+
n0n: "ydn",
|
|
22484
|
+
Y1n: "fdn",
|
|
22485
|
+
HJt: "R2"
|
|
22486
|
+
},
|
|
22487
|
+
shared: { Qst: "Bst", FBt: "XVt", PNt: "KNt", Vot: "Fot" }
|
|
22488
|
+
};
|
|
22489
|
+
var NATIVE_CHAT_VOICE_ASSETS = [
|
|
22490
|
+
{
|
|
22491
|
+
platform: "darwin",
|
|
22492
|
+
version: NATIVE_CHAT_VOICE_VERSION,
|
|
22493
|
+
initial: NATIVE_CHAT_INITIAL_ASSET,
|
|
22494
|
+
shared: "app-shared-601019a330d7.js",
|
|
22495
|
+
primary: "app-primary-75d53eef2374.js",
|
|
22496
|
+
start: START_ASSET,
|
|
22497
|
+
prewarm: "voice-prewarm-a7cd5160219e.js",
|
|
22498
|
+
settings: "voice-settings-320cf1212f2c.js",
|
|
22499
|
+
roles: NAMED_CHAT_ROLES_26_1027_61615
|
|
22500
|
+
},
|
|
22501
|
+
{
|
|
22502
|
+
platform: "darwin",
|
|
22503
|
+
version: "26.1027.30824",
|
|
22504
|
+
initial: "app-initial-60f141238751.js",
|
|
22505
|
+
shared: "app-shared-7815d5a1a42a.js",
|
|
22506
|
+
primary: "app-primary-95a0e6d83f1e.js",
|
|
22507
|
+
start: "start-voice-4c77215aa289.js",
|
|
22508
|
+
prewarm: "voice-prewarm-e49220ad61bd.js",
|
|
22509
|
+
roles: NAMED_CHAT_ROLES_26_1027_30824
|
|
22510
|
+
},
|
|
22511
|
+
{
|
|
22512
|
+
platform: "darwin",
|
|
22513
|
+
version: "26.1023.51421",
|
|
22514
|
+
initial: "app-initial-bc8256c3cccb.js",
|
|
22515
|
+
shared: "app-shared-e9f258fd3588.js",
|
|
22516
|
+
primary: "app-primary-b7f335b763ca.js",
|
|
22517
|
+
start: "start-voice-a0564cefdc95.js",
|
|
22518
|
+
prewarm: "voice-prewarm-53aefded152c.js",
|
|
22519
|
+
settings: "voice-settings-1a9f68eb7ae8.js",
|
|
22520
|
+
roles: NAMED_CHAT_ROLES_26_1023_51421
|
|
22521
|
+
},
|
|
22522
|
+
{
|
|
22523
|
+
platform: "darwin",
|
|
22524
|
+
version: "26.1021.31345",
|
|
22525
|
+
initial: "app-initial-feb30b196d11.js",
|
|
22526
|
+
shared: "app-shared-2cae01273bae.js",
|
|
22527
|
+
primary: "app-primary-7d7313419f84.js",
|
|
22528
|
+
start: "entity-business-profile-reference-b68063dfc05d.js",
|
|
22529
|
+
prewarm: "voice-prewarm-d672f1245523.js",
|
|
22530
|
+
settings: "voice-settings-14000f5c9fc2.js",
|
|
22531
|
+
roles: NAMED_CHAT_ROLES_26_1021_31345
|
|
22532
|
+
},
|
|
22533
|
+
{
|
|
22534
|
+
platform: "win32",
|
|
22535
|
+
version: "26.1021.31345",
|
|
22536
|
+
initial: "app-initial-438d1df57f70.js",
|
|
22537
|
+
shared: "app-shared-955d52676f9c.js",
|
|
22538
|
+
primary: "app-primary-844e405f2b90.js",
|
|
22539
|
+
start: "entity-business-profile-reference-241c52d811f4.js",
|
|
22540
|
+
prewarm: "voice-prewarm-8b47c50a17ae.js",
|
|
22541
|
+
settings: "voice-settings-b1c1633136a5.js",
|
|
22542
|
+
roles: NAMED_CHAT_ROLES_26_1021_31345
|
|
22543
|
+
},
|
|
22544
|
+
{
|
|
22545
|
+
platform: "darwin",
|
|
22546
|
+
version: "26.1016.62342",
|
|
22547
|
+
initial: "app-initial-dddef47d6ef6.js",
|
|
22548
|
+
shared: "app-shared-fc3316d48427.js",
|
|
22549
|
+
start: "start-voice-7cbf0a39d53b.js",
|
|
22550
|
+
prewarm: "voice-prewarm-5d107129ac1c.js",
|
|
22551
|
+
roles: BASELINE_NAMED_CHAT_ROLES
|
|
22552
|
+
},
|
|
22553
|
+
{
|
|
22554
|
+
platform: "darwin",
|
|
22555
|
+
version: "26.1016.61520",
|
|
22556
|
+
initial: "app-initial-c95ddb62696e.js",
|
|
22557
|
+
shared: "app-shared-2eda13eb7044.js",
|
|
22558
|
+
start: "start-voice-18b08f0acdd7.js",
|
|
22559
|
+
prewarm: "voice-prewarm-94271e581c1b.js",
|
|
22560
|
+
roles: BASELINE_NAMED_CHAT_ROLES
|
|
22561
|
+
}
|
|
22562
|
+
];
|
|
22563
|
+
var CLIENT_OWNED_VOICE_VERSION = "26.1027.61615";
|
|
22564
|
+
var CLIENT_OWNED_VOICE_INITIAL_ASSET = "app-initial-18b189e867e7.js";
|
|
22565
|
+
var CLIENT_OWNED_VOICE_SHARED_ASSET = "app-shared-601019a330d7.js";
|
|
22566
|
+
var CLIENT_OWNED_VOICE_OVERLAY_ASSET = "avatar-overlay-native-page-920d05377bbe.js";
|
|
22567
|
+
var CLIENT_OWNED_VOICE_ASSETS = [
|
|
22568
|
+
{
|
|
22569
|
+
platform: "darwin",
|
|
22570
|
+
version: CLIENT_OWNED_VOICE_VERSION,
|
|
22571
|
+
initial: CLIENT_OWNED_VOICE_INITIAL_ASSET,
|
|
22572
|
+
shared: CLIENT_OWNED_VOICE_SHARED_ASSET,
|
|
22573
|
+
overlay: CLIENT_OWNED_VOICE_OVERLAY_ASSET,
|
|
22574
|
+
init: "Adr",
|
|
22575
|
+
fetch: "Odr",
|
|
22576
|
+
fetchFrom: "initial",
|
|
22577
|
+
bridge: "LRt",
|
|
22578
|
+
services: "Vct",
|
|
22579
|
+
responseError: "Pdr",
|
|
22580
|
+
responseErrorFrom: "initial",
|
|
22581
|
+
capabilityInit: "Ler",
|
|
22582
|
+
capabilityFamily: "Ier",
|
|
22583
|
+
inferenceGateFamily: "Vfr"
|
|
22584
|
+
},
|
|
22585
|
+
{
|
|
22586
|
+
platform: "darwin",
|
|
22587
|
+
version: "26.1027.30824",
|
|
22588
|
+
initial: "app-initial-60f141238751.js",
|
|
22589
|
+
shared: "app-shared-7815d5a1a42a.js",
|
|
22590
|
+
overlay: "avatar-overlay-native-page-d9d400e751cd.js",
|
|
22591
|
+
init: "Edr",
|
|
22592
|
+
fetch: "wdr",
|
|
22593
|
+
fetchFrom: "initial",
|
|
22594
|
+
bridge: "LRt",
|
|
22595
|
+
services: "Vct",
|
|
22596
|
+
responseError: "Adr",
|
|
22597
|
+
responseErrorFrom: "initial",
|
|
22598
|
+
capabilityInit: "Ner",
|
|
22599
|
+
capabilityFamily: "Mer",
|
|
22600
|
+
inferenceGateFamily: "Lfr"
|
|
22601
|
+
},
|
|
22602
|
+
{
|
|
22603
|
+
platform: "darwin",
|
|
22604
|
+
version: "26.1023.51421",
|
|
22605
|
+
initial: "app-initial-bc8256c3cccb.js",
|
|
22606
|
+
shared: "app-shared-e9f258fd3588.js",
|
|
22607
|
+
overlay: "avatar-overlay-native-page-af6c3662f64f.js",
|
|
22608
|
+
init: "xir",
|
|
22609
|
+
fetch: "yir",
|
|
22610
|
+
fetchFrom: "initial",
|
|
22611
|
+
bridge: "QIt",
|
|
22612
|
+
services: "Sst",
|
|
22613
|
+
capabilityInit: "N4n",
|
|
22614
|
+
capabilityFamily: "M4n",
|
|
22615
|
+
inferenceGateFamily: "Par"
|
|
22616
|
+
},
|
|
22617
|
+
{
|
|
22618
|
+
platform: "darwin",
|
|
22619
|
+
version: "26.1021.31345",
|
|
22620
|
+
initial: "app-initial-feb30b196d11.js",
|
|
22621
|
+
shared: "app-shared-2cae01273bae.js",
|
|
22622
|
+
overlay: "avatar-overlay-native-page-d549db3706f1.js",
|
|
22623
|
+
fetch: "Htr",
|
|
22624
|
+
fetchFrom: "initial",
|
|
22625
|
+
bridge: "bIt",
|
|
22626
|
+
services: "Qot",
|
|
22627
|
+
capabilityInit: "l0n",
|
|
22628
|
+
capabilityFamily: "c0n",
|
|
22629
|
+
inferenceGateFamily: "Cnr"
|
|
22630
|
+
},
|
|
22631
|
+
{
|
|
22632
|
+
platform: "win32",
|
|
22633
|
+
version: "26.1021.31345",
|
|
22634
|
+
initial: "app-initial-438d1df57f70.js",
|
|
22635
|
+
shared: "app-shared-955d52676f9c.js",
|
|
22636
|
+
overlay: "avatar-overlay-native-page-1549fe5955e1.js",
|
|
22637
|
+
fetch: "Htr",
|
|
22638
|
+
fetchFrom: "initial",
|
|
22639
|
+
bridge: "bIt",
|
|
22640
|
+
services: "Qot",
|
|
22641
|
+
capabilityInit: "l0n",
|
|
22642
|
+
capabilityFamily: "c0n",
|
|
22643
|
+
inferenceGateFamily: "Cnr"
|
|
22644
|
+
},
|
|
22645
|
+
{
|
|
22646
|
+
platform: "darwin",
|
|
22647
|
+
version: "26.1016.62342",
|
|
22648
|
+
initial: "app-initial-dddef47d6ef6.js",
|
|
22649
|
+
shared: "app-shared-fc3316d48427.js",
|
|
22650
|
+
overlay: "avatar-overlay-native-page-ef8332c6a2fb.js",
|
|
22651
|
+
init: "Oit",
|
|
22652
|
+
fetch: "Eit",
|
|
22653
|
+
bridge: "AFt",
|
|
22654
|
+
responseError: "Mit",
|
|
22655
|
+
services: "ist",
|
|
22656
|
+
capabilityInit: "njr",
|
|
22657
|
+
capabilityFamily: "tjr",
|
|
22658
|
+
inferenceGateFamily: "uBr"
|
|
22659
|
+
},
|
|
22660
|
+
{
|
|
22661
|
+
platform: "darwin",
|
|
22662
|
+
version: "26.1016.61520",
|
|
22663
|
+
initial: "app-initial-c95ddb62696e.js",
|
|
22664
|
+
shared: "app-shared-2eda13eb7044.js",
|
|
22665
|
+
overlay: "avatar-overlay-native-page-fcc17283519a.js",
|
|
22666
|
+
init: "Oit",
|
|
22667
|
+
fetch: "Eit",
|
|
22668
|
+
bridge: "AFt",
|
|
22669
|
+
responseError: "Mit",
|
|
22670
|
+
services: "ist",
|
|
22671
|
+
capabilityInit: "njr",
|
|
22672
|
+
capabilityFamily: "tjr",
|
|
22673
|
+
inferenceGateFamily: "uBr"
|
|
22674
|
+
}
|
|
22675
|
+
];
|
|
22676
|
+
var HISTORICAL_CPA_LIVE_VOICE_DESKTOP_VERSION = "26.1007.30912";
|
|
22677
|
+
var HISTORICAL_CPA_LIVE_VOICE_APP_INITIAL_ASSET = "app-initial-6350d04672d0.js";
|
|
22678
|
+
var HASHED_WEBPACK_VOICE_VERSION = "26.1106.51428";
|
|
22679
|
+
var HASHED_WEBPACK_VOICE_RUNTIME_ASSET = "348410.1a97dde15f.js";
|
|
22680
|
+
var HASHED_NATIVE_CHAT_START_ASSET = "530142.1e51e7f4b2.js";
|
|
22681
|
+
var HASHED_NATIVE_CHAT_PREWARM_ASSET = "586788.c871bb9b7d.js";
|
|
22682
|
+
var NATIVE_CHAT_VOICE_CHUNKS = [
|
|
22683
|
+
157963,
|
|
22684
|
+
74692,
|
|
22685
|
+
198336,
|
|
22686
|
+
543449,
|
|
22687
|
+
904485,
|
|
22688
|
+
459859,
|
|
22689
|
+
822019,
|
|
22690
|
+
431137,
|
|
22691
|
+
108823,
|
|
22692
|
+
208490,
|
|
22693
|
+
384218,
|
|
22694
|
+
843292,
|
|
22695
|
+
652289,
|
|
22696
|
+
907652,
|
|
22697
|
+
796195,
|
|
22698
|
+
144338,
|
|
22699
|
+
140959,
|
|
22700
|
+
587936,
|
|
22701
|
+
904817,
|
|
22702
|
+
426774,
|
|
22703
|
+
452048,
|
|
22704
|
+
490954,
|
|
22705
|
+
445991,
|
|
22706
|
+
612928,
|
|
22707
|
+
42903,
|
|
22708
|
+
363341,
|
|
22709
|
+
997826,
|
|
22710
|
+
223736,
|
|
22711
|
+
21878,
|
|
22712
|
+
89655,
|
|
22713
|
+
333490,
|
|
22714
|
+
422391,
|
|
22715
|
+
792483,
|
|
22716
|
+
530142
|
|
22717
|
+
];
|
|
22718
|
+
var HASHED_NATIVE_CHAT_ROLES = {
|
|
22719
|
+
startModuleId: "j9r7",
|
|
22720
|
+
prewarmModuleId: "oWM3",
|
|
22721
|
+
appScopeModuleId: "OWtl",
|
|
22722
|
+
appScopeExport: "u",
|
|
22723
|
+
routeScopeModuleId: "Oj9r",
|
|
22724
|
+
routeScopeExport: "GD",
|
|
22725
|
+
composerScopeModuleId: "Sd8U",
|
|
22726
|
+
composerScopeExport: "PR",
|
|
22727
|
+
storeModuleId: "bgok",
|
|
22728
|
+
storeExport: "MH",
|
|
22729
|
+
runtimeModuleId: "cY1t",
|
|
22730
|
+
runtimeEnableExport: "Iy",
|
|
22731
|
+
runtimeLoaderExport: "Re",
|
|
22732
|
+
reactModuleId: "zd8w",
|
|
22733
|
+
reactDomModuleId: "CE87",
|
|
22734
|
+
startInitializeExport: "initializeVoiceSession",
|
|
22735
|
+
prewarmControllerExport: "VoiceInstantConnectCacheController",
|
|
22736
|
+
/** Conversation store: adopted backend ID, transcript mapping, current node. */
|
|
22737
|
+
conversationModuleId: "MrGp",
|
|
22738
|
+
backendConversationExport: "jS",
|
|
22739
|
+
transcriptMappingExport: "Jv",
|
|
22740
|
+
currentNodeExport: "Od",
|
|
22741
|
+
/** App location atom used as the draft-selection origin. */
|
|
22742
|
+
locationModuleId: "nlNF",
|
|
22743
|
+
locationExport: "x2",
|
|
22744
|
+
/** AppNavigation.navigate(scope, location). */
|
|
22745
|
+
navigationModuleId: "E8Sp",
|
|
22746
|
+
navigationExport: "oo",
|
|
22747
|
+
/** `/c/:conversationId` builder; not a GPT `/g/` path. */
|
|
22748
|
+
conversationPathModuleId: "jAnS",
|
|
22749
|
+
conversationPathExport: "mv"
|
|
22750
|
+
};
|
|
22751
|
+
var HASHED_OVERLAY_VOICE_ROLES = {
|
|
22752
|
+
fetchFactoryId: "GDNt",
|
|
22753
|
+
fetchExport: "_n",
|
|
22754
|
+
bridgeModuleId: "TL6G",
|
|
22755
|
+
bridgeExport: "O1",
|
|
22756
|
+
responseErrorModuleId: "eShZ",
|
|
22757
|
+
responseErrorExport: "s1",
|
|
22758
|
+
capabilityModuleId: "ChYf",
|
|
22759
|
+
capabilityExport: "G",
|
|
22760
|
+
inferenceGateModuleId: "OMIV",
|
|
22761
|
+
inferenceGateExport: "JW",
|
|
22762
|
+
/** Workspace voice access derived atom `P` via `zTeN.un`; Instant Connect ANDs `Y3.status`. */
|
|
22763
|
+
voiceAccessModuleId: "eFn4",
|
|
22764
|
+
voiceAccessExport: "Y3"
|
|
22765
|
+
};
|
|
22766
|
+
function hashedVoiceCandidateOwner(config2) {
|
|
22767
|
+
return config2.desktopVersion === HASHED_WEBPACK_VOICE_VERSION && (config2.desktopPlatform === "darwin" || config2.desktopPlatform === "win32");
|
|
22768
|
+
}
|
|
22769
|
+
function hashedVoiceProfileSupported(config2) {
|
|
22770
|
+
return config2.desktopVersion === HASHED_WEBPACK_VOICE_VERSION && config2.desktopPlatform === "darwin";
|
|
22771
|
+
}
|
|
22772
|
+
function reviewedOverlayHookDesktopVersions() {
|
|
22773
|
+
const versions = /* @__PURE__ */ new Set([
|
|
22774
|
+
HISTORICAL_CPA_LIVE_VOICE_DESKTOP_VERSION,
|
|
22775
|
+
HASHED_WEBPACK_VOICE_VERSION
|
|
22776
|
+
]);
|
|
22777
|
+
for (const profile of NATIVE_CHAT_VOICE_ASSETS) versions.add(profile.version);
|
|
22778
|
+
for (const profile of CLIENT_OWNED_VOICE_ASSETS) versions.add(profile.version);
|
|
22779
|
+
return [...versions].sort();
|
|
22780
|
+
}
|
|
22781
|
+
var VOICE_PROFILE_PINS = {
|
|
22782
|
+
workVersion: CLIENT_OWNED_VOICE_VERSION,
|
|
22783
|
+
workInitial: CLIENT_OWNED_VOICE_INITIAL_ASSET,
|
|
22784
|
+
workShared: CLIENT_OWNED_VOICE_SHARED_ASSET,
|
|
22785
|
+
overlayAsset: CLIENT_OWNED_VOICE_OVERLAY_ASSET,
|
|
22786
|
+
chatVersion: NATIVE_CHAT_VOICE_VERSION,
|
|
22787
|
+
chatInitial: NATIVE_CHAT_INITIAL_ASSET,
|
|
22788
|
+
chatStart: START_ASSET,
|
|
22789
|
+
hashedVersion: HASHED_WEBPACK_VOICE_VERSION,
|
|
22790
|
+
hashedRuntimeAsset: HASHED_WEBPACK_VOICE_RUNTIME_ASSET,
|
|
22791
|
+
hashedStartAsset: HASHED_NATIVE_CHAT_START_ASSET,
|
|
22792
|
+
hashedPrewarmAsset: HASHED_NATIVE_CHAT_PREWARM_ASSET,
|
|
22793
|
+
historicalCpaVersion: HISTORICAL_CPA_LIVE_VOICE_DESKTOP_VERSION,
|
|
22794
|
+
historicalCpaInitial: HISTORICAL_CPA_LIVE_VOICE_APP_INITIAL_ASSET
|
|
22795
|
+
};
|
|
22796
|
+
var voiceProfilePins = {
|
|
22797
|
+
...VOICE_PROFILE_PINS,
|
|
22798
|
+
overlayHookDesktopVersions: reviewedOverlayHookDesktopVersions()
|
|
22799
|
+
};
|
|
22800
|
+
function nativeChatVoiceKind(config2) {
|
|
22801
|
+
if (!config2.desktopVersion) return void 0;
|
|
22802
|
+
if (hashedVoiceProfileSupported(config2)) return "hashed";
|
|
22803
|
+
if (NATIVE_CHAT_VOICE_ASSETS.some(
|
|
22804
|
+
(profile) => profile.version === config2.desktopVersion && (config2.desktopPlatform === void 0 || profile.platform === config2.desktopPlatform)
|
|
22805
|
+
)) {
|
|
22806
|
+
return "named";
|
|
22807
|
+
}
|
|
22808
|
+
return void 0;
|
|
22809
|
+
}
|
|
22810
|
+
function nativeChatVoiceUnavailableReason(config2) {
|
|
22811
|
+
if (nativeChatVoiceKind(config2)) return void 0;
|
|
22812
|
+
if (!config2.desktopVersion) return "Chat voice is waiting for Desktop identity.";
|
|
22813
|
+
if (config2.desktopVersion === HASHED_WEBPACK_VOICE_VERSION && config2.desktopPlatform === "win32") {
|
|
22814
|
+
return "Chat voice is not qualified on this Windows Desktop.";
|
|
22815
|
+
}
|
|
22816
|
+
return "Chat voice is not qualified on this Desktop.";
|
|
22817
|
+
}
|
|
22818
|
+
function workVoiceUnavailableReason(config2) {
|
|
22819
|
+
if (hashedVoiceProfileSupported(config2)) return void 0;
|
|
22820
|
+
if (config2.desktopVersion !== void 0 && CLIENT_OWNED_VOICE_ASSETS.some(
|
|
22821
|
+
(profile) => profile.version === config2.desktopVersion && (config2.desktopPlatform === void 0 || profile.platform === config2.desktopPlatform)
|
|
22822
|
+
)) {
|
|
22823
|
+
return void 0;
|
|
22824
|
+
}
|
|
22825
|
+
if (!config2.desktopVersion) return "Work voice is waiting for Desktop identity.";
|
|
22826
|
+
if (config2.desktopVersion === HASHED_WEBPACK_VOICE_VERSION && config2.desktopPlatform === "win32") {
|
|
22827
|
+
return "Work voice is not qualified on this Windows Desktop.";
|
|
22828
|
+
}
|
|
22829
|
+
return "Work voice is not qualified on this Desktop.";
|
|
22830
|
+
}
|
|
22831
|
+
function profileIdentityKey(product, platform, version2) {
|
|
22832
|
+
return `${product}:${platform ?? "unknown"}:${version2 ?? "unknown"}`;
|
|
22833
|
+
}
|
|
22834
|
+
function fnv1aHex(value) {
|
|
22835
|
+
let hash2 = 0xcbf29ce484222325n;
|
|
22836
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
22837
|
+
hash2 ^= BigInt(value.charCodeAt(index));
|
|
22838
|
+
hash2 = hash2 * 0x100000001b3n & 0xffffffffffffffffn;
|
|
22839
|
+
}
|
|
22840
|
+
return hash2.toString(16).padStart(16, "0");
|
|
22841
|
+
}
|
|
22842
|
+
function digestJson(value) {
|
|
22843
|
+
return fnv1aHex(JSON.stringify(value));
|
|
22844
|
+
}
|
|
22845
|
+
function legacyRetainedVoiceLanes() {
|
|
22846
|
+
return [
|
|
22847
|
+
...NATIVE_CHAT_VOICE_ASSETS.map((profile) => ({
|
|
22848
|
+
path: "chat",
|
|
22849
|
+
platform: profile.platform,
|
|
22850
|
+
version: profile.version
|
|
22851
|
+
})),
|
|
22852
|
+
...CLIENT_OWNED_VOICE_ASSETS.map((profile) => ({
|
|
22853
|
+
path: "work-codex",
|
|
22854
|
+
platform: profile.platform,
|
|
22855
|
+
version: profile.version
|
|
22856
|
+
}))
|
|
22857
|
+
];
|
|
22858
|
+
}
|
|
22859
|
+
function voiceProfileOwner(product, platform, version2) {
|
|
22860
|
+
if (product === "chat") {
|
|
22861
|
+
if (hashedVoiceCandidateOwner({ desktopVersion: version2, desktopPlatform: platform })) {
|
|
22862
|
+
return {
|
|
22863
|
+
kind: "hashed-chat",
|
|
22864
|
+
platform,
|
|
22865
|
+
version: version2,
|
|
22866
|
+
roles: HASHED_NATIVE_CHAT_ROLES,
|
|
22867
|
+
chunks: [...NATIVE_CHAT_VOICE_CHUNKS],
|
|
22868
|
+
webpack: HASHED_WEBPACK_VOICE_RUNTIME_ASSET,
|
|
22869
|
+
start: HASHED_NATIVE_CHAT_START_ASSET,
|
|
22870
|
+
prewarm: HASHED_NATIVE_CHAT_PREWARM_ASSET
|
|
22871
|
+
};
|
|
22872
|
+
}
|
|
22873
|
+
const named = NATIVE_CHAT_VOICE_ASSETS.find(
|
|
22874
|
+
(profile) => profile.platform === platform && profile.version === version2
|
|
22875
|
+
);
|
|
22876
|
+
if (!named) return void 0;
|
|
22877
|
+
return {
|
|
22878
|
+
kind: "named-chat",
|
|
22879
|
+
platform: named.platform,
|
|
22880
|
+
version: named.version,
|
|
22881
|
+
initial: named.initial,
|
|
22882
|
+
shared: named.shared,
|
|
22883
|
+
primary: named.primary ?? null,
|
|
22884
|
+
start: named.start,
|
|
22885
|
+
prewarm: named.prewarm,
|
|
22886
|
+
settings: named.settings ?? null,
|
|
22887
|
+
roles: named.roles
|
|
22888
|
+
};
|
|
22889
|
+
}
|
|
22890
|
+
const namedWork = CLIENT_OWNED_VOICE_ASSETS.find(
|
|
22891
|
+
(profile) => profile.platform === platform && profile.version === version2
|
|
22892
|
+
);
|
|
22893
|
+
if (namedWork) {
|
|
22894
|
+
return {
|
|
22895
|
+
kind: "named-work",
|
|
22896
|
+
platform: namedWork.platform,
|
|
22897
|
+
version: namedWork.version,
|
|
22898
|
+
initial: namedWork.initial,
|
|
22899
|
+
shared: namedWork.shared,
|
|
22900
|
+
overlay: namedWork.overlay,
|
|
22901
|
+
init: namedWork.init ?? null,
|
|
22902
|
+
fetch: namedWork.fetch,
|
|
22903
|
+
fetchFrom: namedWork.fetchFrom ?? null,
|
|
22904
|
+
bridge: namedWork.bridge,
|
|
22905
|
+
services: namedWork.services,
|
|
22906
|
+
responseError: namedWork.responseError ?? null,
|
|
22907
|
+
responseErrorFrom: namedWork.responseErrorFrom ?? null,
|
|
22908
|
+
capabilityInit: namedWork.capabilityInit,
|
|
22909
|
+
capabilityFamily: namedWork.capabilityFamily,
|
|
22910
|
+
inferenceGateFamily: namedWork.inferenceGateFamily
|
|
22911
|
+
};
|
|
22912
|
+
}
|
|
22913
|
+
if (hashedVoiceCandidateOwner({ desktopVersion: version2, desktopPlatform: platform })) {
|
|
22914
|
+
return {
|
|
22915
|
+
kind: "hashed-work",
|
|
22916
|
+
platform,
|
|
22917
|
+
version: version2,
|
|
22918
|
+
overlay: HASHED_OVERLAY_VOICE_ROLES,
|
|
22919
|
+
webpack: HASHED_WEBPACK_VOICE_RUNTIME_ASSET
|
|
22920
|
+
};
|
|
22921
|
+
}
|
|
22922
|
+
return void 0;
|
|
22923
|
+
}
|
|
22924
|
+
function voiceProfileDigest(product, platform, version2) {
|
|
22925
|
+
const owner = voiceProfileOwner(product, platform, version2);
|
|
22926
|
+
return owner ? digestJson(owner) : void 0;
|
|
22927
|
+
}
|
|
22928
|
+
function voiceImplementationRevision() {
|
|
22929
|
+
return VOICE_IMPLEMENTATION_REVISION;
|
|
22930
|
+
}
|
|
22931
|
+
|
|
22932
|
+
// src/renderer-voice-evidence.ts
|
|
22933
|
+
var VOICE_EVIDENCE_STAGES = [
|
|
22934
|
+
"structural",
|
|
22935
|
+
"activation",
|
|
22936
|
+
"connection",
|
|
22937
|
+
"identity",
|
|
22938
|
+
"speech",
|
|
22939
|
+
"cleanup"
|
|
22940
|
+
];
|
|
22941
|
+
var REQUIRED_STAGES = VOICE_EVIDENCE_STAGES;
|
|
22942
|
+
function recordObject(value) {
|
|
22943
|
+
return value !== null && typeof value === "object";
|
|
22944
|
+
}
|
|
22945
|
+
function missingStages(record3) {
|
|
22946
|
+
return REQUIRED_STAGES.filter((stage) => record3.stages[stage] !== true);
|
|
22947
|
+
}
|
|
22948
|
+
function productForPath(path) {
|
|
22949
|
+
return path === "chat" ? "chat" : "work";
|
|
22950
|
+
}
|
|
22951
|
+
function evaluateVoiceEvidence(record3) {
|
|
22952
|
+
const expectedKey = profileIdentityKey(
|
|
22953
|
+
productForPath(record3.path),
|
|
22954
|
+
record3.platform,
|
|
22955
|
+
record3.desktopVersion
|
|
22956
|
+
);
|
|
22957
|
+
if (record3.profileKey !== expectedKey) {
|
|
22958
|
+
return {
|
|
22959
|
+
outcome: "mismatch",
|
|
22960
|
+
qualified: false,
|
|
22961
|
+
missing: missingStages(record3),
|
|
22962
|
+
reason: "evidence-profile-mismatch"
|
|
22963
|
+
};
|
|
22964
|
+
}
|
|
22965
|
+
if (typeof record3.implementationRevision !== "string" || record3.implementationRevision === "") {
|
|
22966
|
+
return {
|
|
22967
|
+
outcome: "mismatch",
|
|
22968
|
+
qualified: false,
|
|
22969
|
+
missing: missingStages(record3),
|
|
22970
|
+
reason: "missing-implementation-revision"
|
|
22971
|
+
};
|
|
22972
|
+
}
|
|
22973
|
+
if (record3.policy !== "legacy-retained" && record3.implementationRevision !== voiceImplementationRevision()) {
|
|
22974
|
+
return {
|
|
22975
|
+
outcome: "mismatch",
|
|
22976
|
+
qualified: false,
|
|
22977
|
+
missing: missingStages(record3),
|
|
22978
|
+
reason: "implementation-revision-mismatch"
|
|
22979
|
+
};
|
|
22980
|
+
}
|
|
22981
|
+
if (record3.policy !== "legacy-retained") {
|
|
22982
|
+
if (typeof record3.desktopBuild !== "string" || record3.desktopBuild === "" || typeof record3.asarDigest !== "string" || record3.asarDigest === "") {
|
|
22983
|
+
return {
|
|
22984
|
+
outcome: "mismatch",
|
|
22985
|
+
qualified: false,
|
|
22986
|
+
missing: missingStages(record3),
|
|
22987
|
+
reason: "missing-native-identity"
|
|
22988
|
+
};
|
|
22989
|
+
}
|
|
22990
|
+
}
|
|
22991
|
+
if (typeof record3.profileDigest !== "string" || record3.profileDigest === "") {
|
|
22992
|
+
return {
|
|
22993
|
+
outcome: "mismatch",
|
|
22994
|
+
qualified: false,
|
|
22995
|
+
missing: missingStages(record3),
|
|
22996
|
+
reason: "missing-profile-digest"
|
|
22997
|
+
};
|
|
22998
|
+
}
|
|
22999
|
+
const expectedDigest = voiceProfileDigest(
|
|
23000
|
+
productForPath(record3.path),
|
|
23001
|
+
record3.platform,
|
|
23002
|
+
record3.desktopVersion
|
|
23003
|
+
);
|
|
23004
|
+
if (!expectedDigest || record3.profileDigest !== expectedDigest) {
|
|
23005
|
+
return {
|
|
23006
|
+
outcome: "mismatch",
|
|
23007
|
+
qualified: false,
|
|
23008
|
+
missing: missingStages(record3),
|
|
23009
|
+
reason: "stale-profile-digest"
|
|
23010
|
+
};
|
|
23011
|
+
}
|
|
23012
|
+
if (record3.startAcknowledged === true && record3.connected !== true) {
|
|
23013
|
+
return {
|
|
23014
|
+
outcome: "incomplete",
|
|
23015
|
+
qualified: false,
|
|
23016
|
+
missing: missingStages(record3).length > 0 ? missingStages(record3) : ["connection"],
|
|
23017
|
+
reason: "start-acknowledged-without-connection"
|
|
23018
|
+
};
|
|
23019
|
+
}
|
|
23020
|
+
if (record3.path !== "chat" && record3.gatewayOwned !== true && record3.stages.connection === true) {
|
|
23021
|
+
return {
|
|
23022
|
+
outcome: "incomplete",
|
|
23023
|
+
qualified: false,
|
|
23024
|
+
missing: missingStages(record3).length > 0 ? missingStages(record3) : ["connection"],
|
|
23025
|
+
reason: "route-only-without-connected-gateway"
|
|
23026
|
+
};
|
|
23027
|
+
}
|
|
23028
|
+
if (record3.speech?.attended === true && (!record3.speech.witness || !record3.speech.run)) {
|
|
23029
|
+
return {
|
|
23030
|
+
outcome: "incomplete",
|
|
23031
|
+
qualified: false,
|
|
23032
|
+
missing: missingStages(record3).includes("speech") ? missingStages(record3) : ["speech"],
|
|
23033
|
+
reason: "attended-speech-missing-provenance"
|
|
23034
|
+
};
|
|
23035
|
+
}
|
|
23036
|
+
if (record3.speech && record3.speech.attended !== true) {
|
|
23037
|
+
return {
|
|
23038
|
+
outcome: "incomplete",
|
|
23039
|
+
qualified: false,
|
|
23040
|
+
missing: missingStages(record3),
|
|
23041
|
+
reason: "synthetic-speech-is-not-qualification"
|
|
23042
|
+
};
|
|
23043
|
+
}
|
|
23044
|
+
const missing = missingStages(record3);
|
|
23045
|
+
if (missing.length > 0) {
|
|
23046
|
+
return {
|
|
23047
|
+
outcome: "incomplete",
|
|
23048
|
+
qualified: false,
|
|
23049
|
+
missing,
|
|
23050
|
+
reason: `missing:${missing.join(",")}`
|
|
23051
|
+
};
|
|
23052
|
+
}
|
|
23053
|
+
if (record3.connected !== true || record3.conversationMatched !== true || (record3.path === "chat" ? record3.harnessMatched !== void 0 && record3.harnessMatched !== true : record3.harnessMatched !== true) || record3.speech?.attended !== true || record3.speech.bothDirections !== true || record3.cleanup?.ended !== true || record3.cleanup.microphoneReleased !== true) {
|
|
23054
|
+
return {
|
|
23055
|
+
outcome: "fail",
|
|
23056
|
+
qualified: false,
|
|
23057
|
+
missing: [],
|
|
23058
|
+
reason: "required-assertions-failed"
|
|
23059
|
+
};
|
|
23060
|
+
}
|
|
23061
|
+
return { outcome: "pass", qualified: true, missing: [], reason: "qualified" };
|
|
23062
|
+
}
|
|
23063
|
+
function evidenceMatchesRuntime(record3, config2) {
|
|
23064
|
+
if (record3.platform !== config2.desktopPlatform) return false;
|
|
23065
|
+
if (record3.desktopVersion !== config2.desktopVersion) return false;
|
|
23066
|
+
if (record3.implementationRevision !== config2.implementationRevision) return false;
|
|
23067
|
+
if (record3.policy === "legacy-retained") return true;
|
|
23068
|
+
if (typeof record3.desktopBuild !== "string" || record3.desktopBuild === "" || typeof record3.asarDigest !== "string" || record3.asarDigest === "" || typeof config2.desktopBuild !== "string" || config2.desktopBuild === "" || typeof config2.asarDigest !== "string" || config2.asarDigest === "" || typeof config2.implementationRevision !== "string" || config2.implementationRevision === "") {
|
|
23069
|
+
return false;
|
|
23070
|
+
}
|
|
23071
|
+
return record3.desktopBuild === config2.desktopBuild && record3.asarDigest === config2.asarDigest;
|
|
23072
|
+
}
|
|
23073
|
+
function isolatedQualificationMatches(path, config2) {
|
|
23074
|
+
const isolated = config2.isolatedQualification;
|
|
23075
|
+
if (!isIsolatedVoiceQualification(isolated)) return false;
|
|
23076
|
+
if (!isolatedQualificationPaths(isolated).includes(path)) return false;
|
|
23077
|
+
if (isProductionDesktopAppPath(isolated.appPath) || isProductionDesktopAppPath(config2.desktopAppPath))
|
|
23078
|
+
return false;
|
|
23079
|
+
if (isolated.desktopPlatform !== config2.desktopPlatform) return false;
|
|
23080
|
+
return isolated.desktopVersion === config2.desktopVersion && isolated.desktopBuild === config2.desktopBuild && isolated.asarDigest === config2.asarDigest && isolated.appPath === config2.desktopAppPath && isolated.implementationRevision === config2.implementationRevision && typeof config2.desktopBuild === "string" && config2.desktopBuild !== "" && typeof config2.asarDigest === "string" && config2.asarDigest !== "" && typeof config2.desktopAppPath === "string" && config2.desktopAppPath !== "" && typeof config2.implementationRevision === "string" && config2.implementationRevision !== "";
|
|
23081
|
+
}
|
|
23082
|
+
function unsupportedReason(path, config2) {
|
|
23083
|
+
if (path === "chat") {
|
|
23084
|
+
return nativeChatVoiceUnavailableReason(config2) ?? "Chat voice is not qualified on this Desktop.";
|
|
23085
|
+
}
|
|
23086
|
+
return workVoiceUnavailableReason(config2) ?? "Work voice is not qualified on this Desktop.";
|
|
23087
|
+
}
|
|
23088
|
+
function decidePath(path, config2, records) {
|
|
23089
|
+
if (!config2.desktopVersion || !config2.desktopPlatform) {
|
|
23090
|
+
return { enabled: false, policy: "unreviewed", reason: "waiting-for-identity" };
|
|
23091
|
+
}
|
|
23092
|
+
const pathRecords = records.filter((record3) => record3.path === path);
|
|
23093
|
+
if (pathRecords.length > 0) {
|
|
23094
|
+
const matching = pathRecords.filter((record4) => evidenceMatchesRuntime(record4, config2));
|
|
23095
|
+
if (matching.length === 0) {
|
|
23096
|
+
return { enabled: false, policy: "unreviewed", reason: "stale-or-wrong-platform-evidence" };
|
|
23097
|
+
}
|
|
23098
|
+
for (const record4 of matching) {
|
|
23099
|
+
const evaluation = evaluateVoiceEvidence(record4);
|
|
23100
|
+
if (!evaluation.qualified) {
|
|
23101
|
+
return { enabled: false, policy: "unreviewed", reason: evaluation.reason };
|
|
23102
|
+
}
|
|
23103
|
+
}
|
|
23104
|
+
const record3 = matching[0];
|
|
23105
|
+
if (!record3) {
|
|
23106
|
+
return { enabled: false, policy: "unreviewed", reason: "missing-evidence" };
|
|
23107
|
+
}
|
|
23108
|
+
if (hashedVoiceCandidateOwner(config2) && !hashedVoiceProfileSupported(config2)) {
|
|
23109
|
+
} else {
|
|
23110
|
+
return {
|
|
23111
|
+
enabled: true,
|
|
23112
|
+
policy: record3.policy === "legacy-retained" ? "legacy-retained" : "reviewed"
|
|
23113
|
+
};
|
|
23114
|
+
}
|
|
23115
|
+
}
|
|
23116
|
+
const digest = voiceProfileDigest(
|
|
23117
|
+
productForPath(path),
|
|
23118
|
+
config2.desktopPlatform,
|
|
23119
|
+
config2.desktopVersion
|
|
23120
|
+
);
|
|
23121
|
+
if (!digest) {
|
|
23122
|
+
return { enabled: false, policy: "unreviewed", reason: unsupportedReason(path, config2) };
|
|
23123
|
+
}
|
|
23124
|
+
const legacy = legacyRetainedVoiceLanes().find(
|
|
23125
|
+
(lane) => lane.path === path && lane.platform === config2.desktopPlatform && lane.version === config2.desktopVersion
|
|
23126
|
+
);
|
|
23127
|
+
if (legacy) {
|
|
23128
|
+
return {
|
|
23129
|
+
enabled: true,
|
|
23130
|
+
policy: "legacy-retained",
|
|
23131
|
+
reason: "legacy-retained-named-profile"
|
|
23132
|
+
};
|
|
23133
|
+
}
|
|
23134
|
+
if (isolatedQualificationMatches(path, config2)) {
|
|
23135
|
+
return {
|
|
23136
|
+
enabled: true,
|
|
23137
|
+
policy: "unreviewed",
|
|
23138
|
+
reason: "isolated-qualification"
|
|
23139
|
+
};
|
|
23140
|
+
}
|
|
23141
|
+
return { enabled: false, policy: "unreviewed", reason: "missing-evidence" };
|
|
23142
|
+
}
|
|
23143
|
+
function isVoiceEvidenceRecord(value) {
|
|
23144
|
+
if (!recordObject(value)) return false;
|
|
23145
|
+
return typeof value.profileKey === "string" && typeof value.platform === "string" && typeof value.desktopVersion === "string" && typeof value.implementationRevision === "string" && typeof value.profileDigest === "string" && (value.path === "chat" || value.path === "work-codex" || value.path === "work-grok") && recordObject(value.stages);
|
|
23146
|
+
}
|
|
23147
|
+
function voiceEvidenceRecordsFromConfig(config2) {
|
|
23148
|
+
return (config2.voiceEvidence ?? []).filter(isVoiceEvidenceRecord);
|
|
23149
|
+
}
|
|
23150
|
+
function startupVoiceGate(config2) {
|
|
23151
|
+
const records = [
|
|
23152
|
+
...voiceEvidenceRecordsFromConfig(config2),
|
|
23153
|
+
...config2.evidence && isVoiceEvidenceRecord(config2.evidence) ? [config2.evidence] : []
|
|
23154
|
+
];
|
|
23155
|
+
const chat = decidePath("chat", config2, records);
|
|
23156
|
+
const workCodex = decidePath("work-codex", config2, records);
|
|
23157
|
+
const workGrok = decidePath("work-grok", config2, records);
|
|
23158
|
+
return {
|
|
23159
|
+
chat,
|
|
23160
|
+
"work-codex": workCodex,
|
|
23161
|
+
"work-grok": workGrok,
|
|
23162
|
+
work: workCodex
|
|
23163
|
+
};
|
|
23164
|
+
}
|
|
23165
|
+
function chatVoiceQualified(config2) {
|
|
23166
|
+
return startupVoiceGate(config2).chat.enabled;
|
|
23167
|
+
}
|
|
23168
|
+
function workVoiceLaneEnabled(owner, path) {
|
|
23169
|
+
return workVoicePathDecision(owner, path).enabled;
|
|
23170
|
+
}
|
|
23171
|
+
function workVoicePathDecision(owner, path) {
|
|
23172
|
+
const config2 = readCpaLiveVoiceHookConfig(owner);
|
|
23173
|
+
if (!config2) {
|
|
23174
|
+
return {
|
|
23175
|
+
enabled: false,
|
|
23176
|
+
policy: "unreviewed",
|
|
23177
|
+
reason: workVoiceUnavailableReason({}) ?? "Work voice is not qualified on this Desktop."
|
|
23178
|
+
};
|
|
23179
|
+
}
|
|
23180
|
+
return startupVoiceGate(config2)[path];
|
|
23181
|
+
}
|
|
23182
|
+
function chatVoiceQualifiedOnOwner(owner) {
|
|
23183
|
+
const config2 = readCpaLiveVoiceHookConfig(owner);
|
|
23184
|
+
return config2 ? chatVoiceQualified(config2) : false;
|
|
23185
|
+
}
|
|
23186
|
+
|
|
23187
|
+
// src/settings/voice-status.ts
|
|
23188
|
+
function chatLabel(settings) {
|
|
23189
|
+
if (settings.chatExperience === "chatgpt") return "ChatGPT Chat";
|
|
23190
|
+
return settings.chatConnection === "gateway" ? "Codex Chat gateway" : "Codex Chat Desktop default";
|
|
23191
|
+
}
|
|
23192
|
+
function workLabel(settings) {
|
|
23193
|
+
return settings.workConnection === "gateway" ? "Work gateway" : "Work Desktop default";
|
|
23194
|
+
}
|
|
23195
|
+
function voiceSettingsEffectiveStatus(owner, settings) {
|
|
23196
|
+
const chatDesktopDefault = settings.chatExperience === "codex" && settings.chatConnection === "desktop";
|
|
23197
|
+
const workDesktopDefault = settings.workConnection === "desktop";
|
|
23198
|
+
const chatAvailable = chatDesktopDefault ? true : chatVoiceQualifiedOnOwner(owner);
|
|
23199
|
+
const workAvailable = workDesktopDefault ? true : workVoiceLaneEnabled(owner, "work-codex");
|
|
21820
23200
|
return {
|
|
21821
|
-
|
|
21822
|
-
|
|
21823
|
-
|
|
21824
|
-
|
|
21825
|
-
|
|
21826
|
-
|
|
21827
|
-
codexHint: "\u9009\u62E9 Codex \u8BED\u97F3\u540E\u53EF\u7528\u3002",
|
|
21828
|
-
connection: "\u8BED\u97F3\u8FDE\u63A5",
|
|
21829
|
-
workHint: "Desktop \u9ED8\u8BA4\u9002\u7528\u4E8E Codex Work\u3002\u5916\u90E8 Harness \u8BED\u97F3\u4F7F\u7528\u5DF2\u914D\u7F6E\u7684\u7F51\u5173\u3002",
|
|
21830
|
-
desktop: "Desktop \u9ED8\u8BA4",
|
|
21831
|
-
gateway: "\u5DF2\u914D\u7F6E\u7684\u7F51\u5173",
|
|
21832
|
-
configuration: "\u914D\u7F6E",
|
|
21833
|
-
gatewayTitle: "\u7F51\u5173",
|
|
21834
|
-
gatewayHint: "\u4EC5\u5728\u9009\u62E9\u5DF2\u914D\u7F6E\u7684\u7F51\u5173\u65F6\u4F7F\u7528\u3002",
|
|
21835
|
-
configured: "\u5DF2\u914D\u7F6E",
|
|
21836
|
-
needsSetup: "\u9700\u8981\u914D\u7F6E",
|
|
21837
|
-
unknown: "\u672A\u68C0\u67E5",
|
|
21838
|
-
gatewayStatus: "\u7F51\u5173\u914D\u7F6E",
|
|
21839
|
-
preferencesStatus: "\u504F\u597D\u662F\u5426\u5DF2\u5E94\u7528",
|
|
21840
|
-
hookStatus: "Desktop \u7F51\u5173\u8BED\u97F3\u96C6\u6210",
|
|
21841
|
-
preferencesOn: "\u5DF2\u5E94\u7528",
|
|
21842
|
-
preferencesOff: "\u5C1A\u672A\u5E94\u7528",
|
|
21843
|
-
hookSupported: "\u652F\u6301",
|
|
21844
|
-
hookUnsupported: "\u5F53\u524D Desktop \u7248\u672C\u4E0D\u652F\u6301\u7F51\u5173\u8BED\u97F3",
|
|
21845
|
-
hookPending: "\u6B63\u5728\u63A5\u5165\u2026",
|
|
21846
|
-
hookDisabled: "\u5DF2\u5173\u95ED",
|
|
21847
|
-
configure: "\u914D\u7F6E",
|
|
21848
|
-
setup: "\u7F51\u5173\u914D\u7F6E",
|
|
21849
|
-
setupHint: "\u7F51\u5173\u4F7F\u7528\u672C\u5730 Codex \u914D\u7F6E\u53CA\u6240\u9009 Provider \u7684\u51ED\u636E\u3002\u7F16\u8F91\u524D\u8BF7\u7ED3\u675F\u8BED\u97F3\u3002\u8BF7\u52FF\u5728\u6B64\u7C98\u8D34\u51ED\u636E\u3002",
|
|
21850
|
-
advanced: "\u9AD8\u7EA7",
|
|
21851
|
-
advancedHint: "\u8BED\u97F3\u96C6\u6210\u4E0E\u8BCA\u65AD\u3002",
|
|
21852
|
-
inject: "\u542F\u7528\u8BED\u97F3\u96C6\u6210",
|
|
21853
|
-
injectHint: "\u542F\u7528 ChatGPT \u8BED\u97F3\u6309\u94AE\u4E0E\u7F51\u5173\u8DEF\u7531\u3002\u66F4\u6539\u6B64\u9879\u9700\u8981\u91CD\u542F codexhost\u3002",
|
|
21854
|
-
environment: "\u5F53\u524D\u542F\u52A8\u73AF\u5883\u63A7\u5236\u8BED\u97F3\u96C6\u6210\u3002",
|
|
21855
|
-
loading: "\u6B63\u5728\u52A0\u8F7D\u8BED\u97F3\u8BBE\u7F6E\u2026",
|
|
21856
|
-
unavailable: "\u8BED\u97F3\u8BBE\u7F6E\u4E0D\u53EF\u7528\uFF0C\u8BF7\u68C0\u67E5\u672C\u5730 Host \u8FDE\u63A5\u3002",
|
|
21857
|
-
retry: "\u91CD\u65B0\u52A0\u8F7D",
|
|
21858
|
-
cancel: "\u53D6\u6D88",
|
|
21859
|
-
apply: "\u5E94\u7528\u66F4\u6539",
|
|
21860
|
-
applyRestart: "\u5E94\u7528\u5E76\u91CD\u542F codexhost",
|
|
21861
|
-
retryRestart: "\u91CD\u8BD5\u91CD\u542F",
|
|
21862
|
-
saving: "\u6B63\u5728\u4FDD\u5B58\u8BBE\u7F6E\u2026",
|
|
21863
|
-
restarting: "\u6B63\u5728\u91CD\u542F codexhost\u2026",
|
|
21864
|
-
ready: "\u6CA1\u6709\u5F85\u5E94\u7528\u7684\u66F4\u6539",
|
|
21865
|
-
edited: "\u66F4\u6539\u5C1A\u672A\u4FDD\u5B58",
|
|
21866
|
-
nextCall: "\u8BED\u97F3\u9009\u62E9\u4ECE\u4E0B\u6B21\u901A\u8BDD\u751F\u6548\u3002",
|
|
21867
|
-
pending: "\u5DF2\u4FDD\u5B58\uFF0C\u7B49\u5F85 Desktop \u5E94\u7528\u8BED\u97F3\u9009\u62E9\u3002",
|
|
21868
|
-
restartNeeded: "\u5DF2\u4FDD\u5B58\uFF0C\u9700\u8981\u91CD\u542F",
|
|
21869
|
-
activeUnknown: "\u5DF2\u4FDD\u5B58\uFF0C\u5F53\u524D\u751F\u6548\u72B6\u6001\u672A\u77E5\u3002",
|
|
21870
|
-
activeCall: "\u8BF7\u7ED3\u675F\u8BED\u97F3\u540E\u518D\u5E94\u7528\u66F4\u6539\u3002",
|
|
21871
|
-
integrationOff: "\u8BED\u97F3\u96C6\u6210\u5DF2\u5173\u95ED\uFF0C\u8BF7\u5728\u9AD8\u7EA7\u8BBE\u7F6E\u4E2D\u542F\u7528\u540E\u4F7F\u7528\u8FD9\u4E9B\u9009\u9879\u3002",
|
|
21872
|
-
restartWarning: "\u91CD\u542F codexhost \u4EE5\u5E94\u7528\u8BED\u97F3\u96C6\u6210\uFF1F\u8FD9\u53EF\u80FD\u4E2D\u65AD\u8FD0\u884C\u4E2D\u7684\u4EFB\u52A1\uFF0C\u8BF7\u5148\u7ED3\u675F\u8BED\u97F3\u3002",
|
|
21873
|
-
confirm: "\u5E94\u7528\u5E76\u91CD\u542F",
|
|
21874
|
-
restartFailed: "\u8BBE\u7F6E\u5DF2\u4FDD\u5B58\uFF0C\u4F46\u91CD\u542F\u5931\u8D25\u3002",
|
|
21875
|
-
conflict: "\u5176\u4ED6\u7A97\u53E3\u66F4\u6539\u4E86\u8BBE\u7F6E\uFF0C\u8BF7\u91CD\u65B0\u52A0\u8F7D\u540E\u518D\u5E94\u7528\u3002",
|
|
21876
|
-
gatewayWarning: "\u6240\u9009\u7F51\u5173\u9700\u8981\u914D\u7F6E\u540E\u624D\u80FD\u8FDE\u63A5\u8BED\u97F3\u3002"
|
|
23201
|
+
chatAvailable,
|
|
23202
|
+
workAvailable,
|
|
23203
|
+
chatDesktopDefault,
|
|
23204
|
+
workDesktopDefault,
|
|
23205
|
+
chatLabel: chatLabel(settings),
|
|
23206
|
+
workLabel: workLabel(settings)
|
|
21877
23207
|
};
|
|
21878
23208
|
}
|
|
23209
|
+
function voiceSettingsEffectiveStatusKey(owner, settings) {
|
|
23210
|
+
return JSON.stringify(voiceSettingsEffectiveStatus(owner, settings));
|
|
23211
|
+
}
|
|
23212
|
+
function voiceSettingsRouteStatus(available, desktopDefault, copy) {
|
|
23213
|
+
if (desktopDefault) return copy.desktopSelected;
|
|
23214
|
+
return available ? copy.routeAllowed : copy.pathUnavailable;
|
|
23215
|
+
}
|
|
23216
|
+
function voiceSettingsAvailabilityFooter(settings, effective) {
|
|
23217
|
+
if (settings.chatExperience === "chatgpt" && !effective.chatAvailable)
|
|
23218
|
+
return "Chat voice is not available on this Desktop.";
|
|
23219
|
+
if (settings.chatExperience === "codex" && settings.chatConnection === "gateway" && !effective.chatAvailable)
|
|
23220
|
+
return "Chat voice is not available on this Desktop.";
|
|
23221
|
+
if (settings.workConnection === "gateway" && !effective.workAvailable)
|
|
23222
|
+
return "Work voice is not available on this Desktop.";
|
|
23223
|
+
}
|
|
21879
23224
|
|
|
21880
23225
|
// src/settings/voice-page.ts
|
|
21881
23226
|
function createVoiceSettingsPage(locale, request, options = {}) {
|
|
@@ -21898,6 +23243,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21898
23243
|
let advanced = false;
|
|
21899
23244
|
let setup = false;
|
|
21900
23245
|
let error51 = null;
|
|
23246
|
+
let availabilityKey = "";
|
|
21901
23247
|
const ids = /* @__PURE__ */ new Map();
|
|
21902
23248
|
const controlId = (key) => {
|
|
21903
23249
|
const existing = ids.get(key);
|
|
@@ -21916,8 +23262,11 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21916
23262
|
try {
|
|
21917
23263
|
const next = voiceSettingsStateSchema.parse(await request({ operation: "get" }));
|
|
21918
23264
|
if (disposed || generation !== currentGeneration) return;
|
|
21919
|
-
const
|
|
21920
|
-
|
|
23265
|
+
const keepDraft = !reset && dirty();
|
|
23266
|
+
const displayedSettings = keepDraft && draft ? draft : next.settings;
|
|
23267
|
+
const nextAvailabilityKey = options.desktop && doc.defaultView ? voiceSettingsEffectiveStatusKey(doc.defaultView, displayedSettings) : "";
|
|
23268
|
+
const changed = JSON.stringify(state) !== JSON.stringify(next) || offline || reset || nextAvailabilityKey !== availabilityKey;
|
|
23269
|
+
if (!keepDraft) {
|
|
21921
23270
|
base = next;
|
|
21922
23271
|
draft = { ...next.settings };
|
|
21923
23272
|
}
|
|
@@ -21928,8 +23277,14 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21928
23277
|
confirm = false;
|
|
21929
23278
|
}
|
|
21930
23279
|
if (changed) render();
|
|
21931
|
-
} catch {
|
|
23280
|
+
} catch (failure) {
|
|
21932
23281
|
if (!disposed && generation === currentGeneration) {
|
|
23282
|
+
const hostUnavailable = failure instanceof Error && failure.message === "Local Host connection is unavailable";
|
|
23283
|
+
const invalid = failure instanceof Error && failure.name === "ZodError";
|
|
23284
|
+
chatVoiceDebug("voice-settings-load", {
|
|
23285
|
+
stage: hostUnavailable ? "rpc" : invalid ? "response" : "rpc",
|
|
23286
|
+
cause: hostUnavailable ? "host-unavailable" : invalid ? "invalid" : "failed"
|
|
23287
|
+
});
|
|
21933
23288
|
offline = true;
|
|
21934
23289
|
render();
|
|
21935
23290
|
}
|
|
@@ -22053,19 +23408,46 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22053
23408
|
);
|
|
22054
23409
|
gateway.item.append(gatewayActions);
|
|
22055
23410
|
config2.card.append(gateway.item);
|
|
22056
|
-
const
|
|
23411
|
+
const view = doc.defaultView;
|
|
23412
|
+
const hook = options.desktop ? desktopVoiceHookStatus(view) : "unknown";
|
|
22057
23413
|
const hookLabel = hook === "active" ? m.hookSupported : hook === "pending" ? m.hookPending : hook === "unsupported" ? m.hookUnsupported : hook === "disabled" ? m.hookDisabled : m.unknown;
|
|
23414
|
+
const effective = options.desktop && view ? voiceSettingsEffectiveStatus(view, draft) : void 0;
|
|
23415
|
+
if (effective && view) availabilityKey = voiceSettingsEffectiveStatusKey(view, draft);
|
|
23416
|
+
const preferencesLabel = state.routesActive === true ? m.preferencesOn : state.routesActive === false ? m.preferencesOff : m.unknown;
|
|
22058
23417
|
const health = h(doc, "div", { className: "settings-voice__health" });
|
|
22059
|
-
health.append(
|
|
22060
|
-
|
|
22061
|
-
|
|
22062
|
-
|
|
22063
|
-
|
|
22064
|
-
|
|
22065
|
-
|
|
22066
|
-
|
|
22067
|
-
|
|
22068
|
-
|
|
23418
|
+
health.append(h(doc, "p", {}, `${m.gatewayStatus}: ${gatewayReadyLabel}`));
|
|
23419
|
+
health.append(h(doc, "p", {}, `${m.preferencesStatus}: ${preferencesLabel}`));
|
|
23420
|
+
if (effective) {
|
|
23421
|
+
const copy = {
|
|
23422
|
+
desktopSelected: m.desktopSelected,
|
|
23423
|
+
routeAllowed: m.routeAllowed,
|
|
23424
|
+
pathUnavailable: m.pathUnavailable
|
|
23425
|
+
};
|
|
23426
|
+
health.append(
|
|
23427
|
+
h(
|
|
23428
|
+
doc,
|
|
23429
|
+
"p",
|
|
23430
|
+
{},
|
|
23431
|
+
`${effective.chatLabel}: ${voiceSettingsRouteStatus(
|
|
23432
|
+
effective.chatAvailable,
|
|
23433
|
+
effective.chatDesktopDefault,
|
|
23434
|
+
copy
|
|
23435
|
+
)}`
|
|
23436
|
+
),
|
|
23437
|
+
h(
|
|
23438
|
+
doc,
|
|
23439
|
+
"p",
|
|
23440
|
+
{},
|
|
23441
|
+
`${effective.workLabel}: ${voiceSettingsRouteStatus(
|
|
23442
|
+
effective.workAvailable,
|
|
23443
|
+
effective.workDesktopDefault,
|
|
23444
|
+
copy
|
|
23445
|
+
)}`
|
|
23446
|
+
)
|
|
23447
|
+
);
|
|
23448
|
+
} else {
|
|
23449
|
+
health.append(h(doc, "p", {}, `${m.hookStatus}: ${hookLabel}`));
|
|
23450
|
+
}
|
|
22069
23451
|
config2.card.append(health);
|
|
22070
23452
|
if (setup) {
|
|
22071
23453
|
const details = h(
|
|
@@ -22126,7 +23508,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22126
23508
|
root.append(chat.group, work.group, config2.group);
|
|
22127
23509
|
const restarting = state.restart.phase === "restarting";
|
|
22128
23510
|
const failed = state.restart.phase === "failed";
|
|
22129
|
-
const
|
|
23511
|
+
const availabilityFooter = effective ? voiceSettingsAvailabilityFooter(draft, effective) : void 0;
|
|
23512
|
+
const status = busy ? m.saving : restarting ? m.restarting : isActiveCall() ? m.activeCall : offline ? m.unavailable : dirty() ? m.edited : needsRestart() ? m.restartNeeded : availabilityFooter ? availabilityFooter : state.routesActive === false ? m.pending : state.routesActive === true ? m.ready : state.activeInject === null || state.routesActive === null ? m.activeUnknown : m.ready;
|
|
22130
23513
|
const footer = h(
|
|
22131
23514
|
doc,
|
|
22132
23515
|
"div",
|
|
@@ -22905,22 +24288,22 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22905
24288
|
document2,
|
|
22906
24289
|
"div",
|
|
22907
24290
|
{ className: "console-usage-segmented", role: "group", "aria-label": label },
|
|
22908
|
-
...options.map((
|
|
24291
|
+
...options.map((option2) => {
|
|
22909
24292
|
const item = h(
|
|
22910
24293
|
document2,
|
|
22911
24294
|
"button",
|
|
22912
24295
|
{
|
|
22913
24296
|
type: "button",
|
|
22914
24297
|
className: "console-usage-segment",
|
|
22915
|
-
"aria-pressed":
|
|
22916
|
-
title:
|
|
24298
|
+
"aria-pressed": option2.value === value ? "true" : "false",
|
|
24299
|
+
title: option2.title
|
|
22917
24300
|
},
|
|
22918
|
-
|
|
24301
|
+
option2.label
|
|
22919
24302
|
);
|
|
22920
24303
|
item.addEventListener("click", () => {
|
|
22921
|
-
if (
|
|
24304
|
+
if (option2.value !== value) onChange(option2.value);
|
|
22922
24305
|
});
|
|
22923
|
-
return focusKey(item, `${key}:${
|
|
24306
|
+
return focusKey(item, `${key}:${option2.value}`);
|
|
22924
24307
|
})
|
|
22925
24308
|
);
|
|
22926
24309
|
}
|
|
@@ -23014,7 +24397,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
23014
24397
|
update(options, value) {
|
|
23015
24398
|
this.#options = options;
|
|
23016
24399
|
this.#value = value;
|
|
23017
|
-
const current = options.find((
|
|
24400
|
+
const current = options.find((option2) => option2.key === value);
|
|
23018
24401
|
const shown = current ?? options[0];
|
|
23019
24402
|
this.#button.textContent = shown ? this.#display?.(shown) ?? shown.label : "";
|
|
23020
24403
|
this.#button.title = current?.detail ?? "";
|
|
@@ -23027,7 +24410,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
23027
24410
|
this.#search.value = "";
|
|
23028
24411
|
this.#active = Math.max(
|
|
23029
24412
|
0,
|
|
23030
|
-
this.#options.findIndex((
|
|
24413
|
+
this.#options.findIndex((option2) => option2.key === this.#value)
|
|
23031
24414
|
);
|
|
23032
24415
|
this.#renderList();
|
|
23033
24416
|
this.#keys.focus();
|
|
@@ -23038,10 +24421,10 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
23038
24421
|
this.#button.setAttribute("aria-expanded", "false");
|
|
23039
24422
|
if (restoreFocus) this.#button.focus();
|
|
23040
24423
|
}
|
|
23041
|
-
#choose(
|
|
23042
|
-
if (!
|
|
24424
|
+
#choose(option2) {
|
|
24425
|
+
if (!option2) return;
|
|
23043
24426
|
this.close();
|
|
23044
|
-
if (
|
|
24427
|
+
if (option2.key !== this.#value) this.#onChange(option2.key);
|
|
23045
24428
|
}
|
|
23046
24429
|
#key(event) {
|
|
23047
24430
|
if (event.key === "Escape") {
|
|
@@ -23060,7 +24443,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
23060
24443
|
#renderList() {
|
|
23061
24444
|
const query = this.#search.value.trim().toLocaleLowerCase();
|
|
23062
24445
|
this.#visible = this.#options.filter(
|
|
23063
|
-
(
|
|
24446
|
+
(option2) => !query || option2.label.toLocaleLowerCase().includes(query) || option2.detail?.toLocaleLowerCase().includes(query)
|
|
23064
24447
|
);
|
|
23065
24448
|
this.#active = Math.min(this.#active, Math.max(0, this.#visible.length - 1));
|
|
23066
24449
|
if (this.#visible.length === 0) {
|
|
@@ -23072,7 +24455,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
23072
24455
|
}
|
|
23073
24456
|
const id = this.#list.id;
|
|
23074
24457
|
this.#list.replaceChildren(
|
|
23075
|
-
...this.#visible.map((
|
|
24458
|
+
...this.#visible.map((option2, index) => {
|
|
23076
24459
|
const item = h(
|
|
23077
24460
|
this.#document,
|
|
23078
24461
|
"li",
|
|
@@ -23080,13 +24463,13 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
23080
24463
|
id: `${id}-${index}`,
|
|
23081
24464
|
role: "option",
|
|
23082
24465
|
className: index === this.#active ? "is-active" : void 0,
|
|
23083
|
-
"aria-selected":
|
|
24466
|
+
"aria-selected": option2.key === this.#value ? "true" : "false"
|
|
23084
24467
|
},
|
|
23085
|
-
h(this.#document, "span", {},
|
|
23086
|
-
|
|
24468
|
+
h(this.#document, "span", {}, option2.label),
|
|
24469
|
+
option2.detail ? h(this.#document, "small", { className: "console-muted" }, option2.detail) : null
|
|
23087
24470
|
);
|
|
23088
24471
|
item.addEventListener("pointerdown", (event) => event.preventDefault());
|
|
23089
|
-
item.addEventListener("click", () => this.#choose(
|
|
24472
|
+
item.addEventListener("click", () => this.#choose(option2));
|
|
23090
24473
|
return item;
|
|
23091
24474
|
})
|
|
23092
24475
|
);
|
|
@@ -23729,7 +25112,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
23729
25112
|
emptyLabel: messages.noMatches,
|
|
23730
25113
|
signal: context.signal,
|
|
23731
25114
|
searchable: false,
|
|
23732
|
-
display: (
|
|
25115
|
+
display: (option2) => `${messages.host} \xB7 ${option2.label}`,
|
|
23733
25116
|
onChange: (key) => {
|
|
23734
25117
|
if (key === view.hostId) return;
|
|
23735
25118
|
view.hostId = key;
|
|
@@ -23785,7 +25168,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
23785
25168
|
emptyLabel: messages.noMatches,
|
|
23786
25169
|
signal: context.signal,
|
|
23787
25170
|
searchable: false,
|
|
23788
|
-
display: (
|
|
25171
|
+
display: (option2) => `${messages.autoRefresh} \xB7 ${option2.label}`,
|
|
23789
25172
|
onChange: (key) => {
|
|
23790
25173
|
view.autoRefreshMs = Number(key) || 0;
|
|
23791
25174
|
save();
|
|
@@ -27954,10 +29337,10 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
27954
29337
|
pageSize.dataset.sessionImportAction = "page-size";
|
|
27955
29338
|
pageSize.setAttribute("aria-label", messages.sessionImportPageSize);
|
|
27956
29339
|
for (const size of [20, 50, 100]) {
|
|
27957
|
-
const
|
|
27958
|
-
|
|
27959
|
-
|
|
27960
|
-
pageSize.append(
|
|
29340
|
+
const option2 = document2.createElement("option");
|
|
29341
|
+
option2.value = String(size);
|
|
29342
|
+
option2.textContent = String(size);
|
|
29343
|
+
pageSize.append(option2);
|
|
27961
29344
|
}
|
|
27962
29345
|
pageSize.value = String(limit);
|
|
27963
29346
|
pageSizeLabel.append(pageSize);
|
|
@@ -28165,22 +29548,22 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
28165
29548
|
harnessOptions.replaceChildren();
|
|
28166
29549
|
sourceButtons.length = 0;
|
|
28167
29550
|
for (const source of sources) {
|
|
28168
|
-
const
|
|
28169
|
-
|
|
28170
|
-
|
|
28171
|
-
|
|
28172
|
-
|
|
28173
|
-
|
|
28174
|
-
|
|
28175
|
-
if (
|
|
29551
|
+
const option2 = document2.createElement("button");
|
|
29552
|
+
option2.type = "button";
|
|
29553
|
+
option2.className = "settings-session-import-harness__option";
|
|
29554
|
+
option2.dataset.sessionImportHarnessOption = source.harnessId;
|
|
29555
|
+
option2.textContent = source.name;
|
|
29556
|
+
option2.setAttribute("aria-pressed", String(source.harnessId === selectedHarness));
|
|
29557
|
+
option2.addEventListener("click", () => {
|
|
29558
|
+
if (option2.disabled || importingId !== null || source.harnessId === selectedHarness)
|
|
28176
29559
|
return;
|
|
28177
29560
|
selectedHarness = source.harnessId;
|
|
28178
29561
|
listControls.reset();
|
|
28179
29562
|
renderHarnessOptions();
|
|
28180
29563
|
load();
|
|
28181
29564
|
});
|
|
28182
|
-
sourceButtons.push(
|
|
28183
|
-
harnessOptions.append(
|
|
29565
|
+
sourceButtons.push(option2);
|
|
29566
|
+
harnessOptions.append(option2);
|
|
28184
29567
|
}
|
|
28185
29568
|
harnessOptions.scrollLeft = scrolled;
|
|
28186
29569
|
harnessOptions.querySelector('[aria-pressed="true"]')?.scrollIntoView?.({ block: "nearest", inline: "nearest" });
|
|
@@ -29278,8 +30661,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
29278
30661
|
legend.textContent = messages.source;
|
|
29279
30662
|
group.append(legend);
|
|
29280
30663
|
for (const choice of choices) {
|
|
29281
|
-
const
|
|
29282
|
-
|
|
30664
|
+
const option2 = document2.createElement("label");
|
|
30665
|
+
option2.className = "settings-credential-dialog__source";
|
|
29283
30666
|
const radio = document2.createElement("input");
|
|
29284
30667
|
radio.type = "radio";
|
|
29285
30668
|
radio.name = "settings-credential-source";
|
|
@@ -29306,8 +30689,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
29306
30689
|
}
|
|
29307
30690
|
refreshPreview();
|
|
29308
30691
|
});
|
|
29309
|
-
|
|
29310
|
-
group.append(
|
|
30692
|
+
option2.append(radio, copy);
|
|
30693
|
+
group.append(option2);
|
|
29311
30694
|
}
|
|
29312
30695
|
return group;
|
|
29313
30696
|
};
|
|
@@ -30762,6 +32145,326 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
30762
32145
|
});
|
|
30763
32146
|
}
|
|
30764
32147
|
|
|
32148
|
+
// src/renderer-external-clients-client.ts
|
|
32149
|
+
var RendererExternalClientsUnavailableError = class extends Error {
|
|
32150
|
+
constructor() {
|
|
32151
|
+
super("MCP clients are unavailable");
|
|
32152
|
+
this.name = "RendererExternalClientsUnavailableError";
|
|
32153
|
+
}
|
|
32154
|
+
};
|
|
32155
|
+
|
|
32156
|
+
// src/settings/mcp-clients-page.ts
|
|
32157
|
+
function errorMessage4(error51, fallback) {
|
|
32158
|
+
if (error51 instanceof RendererExternalClientsUnavailableError) return fallback;
|
|
32159
|
+
return error51 instanceof Error && error51.message ? error51.message : fallback;
|
|
32160
|
+
}
|
|
32161
|
+
function accessLabel(view, copy) {
|
|
32162
|
+
if (view.access === "selected-workspaces") {
|
|
32163
|
+
return `${copy.accessSelected}: ${view.workspaces.join(", ") || "\u2014"}`;
|
|
32164
|
+
}
|
|
32165
|
+
return copy.accessAll;
|
|
32166
|
+
}
|
|
32167
|
+
function connectionLabel(mode, copy) {
|
|
32168
|
+
if (mode === "local") return copy.connectionLocal;
|
|
32169
|
+
if (mode === "direct") return copy.connectionDirect;
|
|
32170
|
+
return copy.connectionPublic;
|
|
32171
|
+
}
|
|
32172
|
+
function grantLabel(grant, copy) {
|
|
32173
|
+
return grant === "full-dispatch" ? copy.grantFull : copy.grantLegacy;
|
|
32174
|
+
}
|
|
32175
|
+
function option(document2, label, value) {
|
|
32176
|
+
const node = document2.createElement("option");
|
|
32177
|
+
node.value = value;
|
|
32178
|
+
node.textContent = label;
|
|
32179
|
+
return node;
|
|
32180
|
+
}
|
|
32181
|
+
function createMcpClientsSettingsPage(messages, getClient) {
|
|
32182
|
+
return Object.freeze({
|
|
32183
|
+
id: "mcp-clients",
|
|
32184
|
+
label: messages.pageLabels["mcp-clients"],
|
|
32185
|
+
icon: "mcp-clients",
|
|
32186
|
+
mount(context) {
|
|
32187
|
+
const document2 = context.content.ownerDocument;
|
|
32188
|
+
const copy = messages.mcpClients;
|
|
32189
|
+
const header = document2.createElement("div");
|
|
32190
|
+
header.className = "settings-enrollment-header";
|
|
32191
|
+
const copyBlock = document2.createElement("div");
|
|
32192
|
+
copyBlock.className = "settings-enrollment-copy";
|
|
32193
|
+
const title = document2.createElement("div");
|
|
32194
|
+
title.className = "settings-enrollment-title";
|
|
32195
|
+
const heading = document2.createElement("h1");
|
|
32196
|
+
heading.className = "settings-section-label";
|
|
32197
|
+
heading.textContent = messages.pageLabels["mcp-clients"];
|
|
32198
|
+
title.append(heading, createHelpTooltip(document2, copy.helpLabel, copy.help));
|
|
32199
|
+
const description = document2.createElement("p");
|
|
32200
|
+
description.className = "settings-page-description";
|
|
32201
|
+
description.textContent = copy.description;
|
|
32202
|
+
copyBlock.append(title, description);
|
|
32203
|
+
const refresh = document2.createElement("button");
|
|
32204
|
+
refresh.type = "button";
|
|
32205
|
+
refresh.className = "settings-icon-button";
|
|
32206
|
+
refresh.title = copy.refresh;
|
|
32207
|
+
refresh.setAttribute("aria-label", copy.refresh);
|
|
32208
|
+
refresh.append(createRendererSettingsIcon("refresh", 16));
|
|
32209
|
+
header.append(copyBlock, refresh);
|
|
32210
|
+
const status = document2.createElement("p");
|
|
32211
|
+
status.className = "settings-enrollment-status";
|
|
32212
|
+
status.setAttribute("aria-live", "polite");
|
|
32213
|
+
const setStatus = (message2, kind) => {
|
|
32214
|
+
status.className = kind === "error" ? "settings-enrollment-status is-error" : "settings-enrollment-status";
|
|
32215
|
+
status.textContent = message2;
|
|
32216
|
+
};
|
|
32217
|
+
const form = document2.createElement("form");
|
|
32218
|
+
form.className = "settings-enrollment-copy";
|
|
32219
|
+
const nameInput = document2.createElement("input");
|
|
32220
|
+
nameInput.type = "text";
|
|
32221
|
+
nameInput.required = true;
|
|
32222
|
+
nameInput.placeholder = copy.name;
|
|
32223
|
+
nameInput.setAttribute("aria-label", copy.name);
|
|
32224
|
+
const accessSelect = document2.createElement("select");
|
|
32225
|
+
accessSelect.setAttribute("aria-label", copy.access);
|
|
32226
|
+
accessSelect.append(
|
|
32227
|
+
option(document2, copy.accessAll, "all-threads"),
|
|
32228
|
+
option(document2, copy.accessSelected, "selected-workspaces")
|
|
32229
|
+
);
|
|
32230
|
+
const workspaces = document2.createElement("textarea");
|
|
32231
|
+
workspaces.rows = 3;
|
|
32232
|
+
workspaces.placeholder = copy.workspacesHint;
|
|
32233
|
+
workspaces.setAttribute("aria-label", copy.workspaces);
|
|
32234
|
+
const connectionSelect = document2.createElement("select");
|
|
32235
|
+
connectionSelect.setAttribute("aria-label", copy.connection);
|
|
32236
|
+
connectionSelect.append(
|
|
32237
|
+
option(document2, copy.connectionPublic, "public-relay"),
|
|
32238
|
+
option(document2, copy.connectionLocal, "local"),
|
|
32239
|
+
option(document2, copy.connectionDirect, "direct")
|
|
32240
|
+
);
|
|
32241
|
+
const grantSelect = document2.createElement("select");
|
|
32242
|
+
grantSelect.setAttribute("aria-label", copy.grant);
|
|
32243
|
+
grantSelect.append(
|
|
32244
|
+
option(document2, copy.grantFull, "full-dispatch"),
|
|
32245
|
+
option(document2, copy.grantLegacy, "legacy-four")
|
|
32246
|
+
);
|
|
32247
|
+
const directUrlInput = document2.createElement("input");
|
|
32248
|
+
directUrlInput.type = "url";
|
|
32249
|
+
directUrlInput.placeholder = copy.directUrlHint;
|
|
32250
|
+
directUrlInput.setAttribute("aria-label", copy.directUrl);
|
|
32251
|
+
const oauthInput = document2.createElement("input");
|
|
32252
|
+
oauthInput.type = "text";
|
|
32253
|
+
oauthInput.placeholder = copy.oauthClientId;
|
|
32254
|
+
oauthInput.setAttribute("aria-label", copy.oauthClientId);
|
|
32255
|
+
const add = document2.createElement("button");
|
|
32256
|
+
add.type = "submit";
|
|
32257
|
+
add.className = "settings-command-button";
|
|
32258
|
+
add.textContent = copy.add;
|
|
32259
|
+
form.append(
|
|
32260
|
+
nameInput,
|
|
32261
|
+
accessSelect,
|
|
32262
|
+
workspaces,
|
|
32263
|
+
connectionSelect,
|
|
32264
|
+
grantSelect,
|
|
32265
|
+
directUrlInput,
|
|
32266
|
+
oauthInput,
|
|
32267
|
+
add
|
|
32268
|
+
);
|
|
32269
|
+
const tableWrap = document2.createElement("div");
|
|
32270
|
+
tableWrap.className = "settings-enrollment-table-wrap";
|
|
32271
|
+
const table = document2.createElement("table");
|
|
32272
|
+
table.className = "settings-enrollment-table";
|
|
32273
|
+
table.setAttribute("aria-label", messages.pageLabels["mcp-clients"]);
|
|
32274
|
+
const thead = document2.createElement("thead");
|
|
32275
|
+
const headerRow = document2.createElement("tr");
|
|
32276
|
+
for (const label of copy.columns) {
|
|
32277
|
+
const cell = document2.createElement("th");
|
|
32278
|
+
cell.textContent = label;
|
|
32279
|
+
headerRow.append(cell);
|
|
32280
|
+
}
|
|
32281
|
+
thead.append(headerRow);
|
|
32282
|
+
const tbody = document2.createElement("tbody");
|
|
32283
|
+
table.append(thead, tbody);
|
|
32284
|
+
tableWrap.append(table);
|
|
32285
|
+
context.content.append(header, status, form, tableWrap);
|
|
32286
|
+
const client = getClient();
|
|
32287
|
+
const renderEmpty = (message2) => {
|
|
32288
|
+
tbody.replaceChildren();
|
|
32289
|
+
const row = document2.createElement("tr");
|
|
32290
|
+
const cell = document2.createElement("td");
|
|
32291
|
+
cell.setAttribute("colspan", String(copy.columns.length));
|
|
32292
|
+
cell.className = "settings-enrollment-empty";
|
|
32293
|
+
cell.textContent = message2;
|
|
32294
|
+
row.append(cell);
|
|
32295
|
+
tbody.append(row);
|
|
32296
|
+
};
|
|
32297
|
+
const copyUrl = async (url2) => {
|
|
32298
|
+
if (!url2) return;
|
|
32299
|
+
try {
|
|
32300
|
+
await navigator.clipboard.writeText(url2);
|
|
32301
|
+
setStatus(copy.copied, "idle");
|
|
32302
|
+
} catch {
|
|
32303
|
+
setStatus(copy.failed, "error");
|
|
32304
|
+
}
|
|
32305
|
+
};
|
|
32306
|
+
const renderRows = (clients) => {
|
|
32307
|
+
tbody.replaceChildren();
|
|
32308
|
+
if (clients.length === 0) {
|
|
32309
|
+
renderEmpty(copy.empty);
|
|
32310
|
+
return;
|
|
32311
|
+
}
|
|
32312
|
+
for (const view of clients) {
|
|
32313
|
+
const row = document2.createElement("tr");
|
|
32314
|
+
row.className = "settings-enrollment-row";
|
|
32315
|
+
const nameCell = document2.createElement("td");
|
|
32316
|
+
const strong = document2.createElement("strong");
|
|
32317
|
+
strong.textContent = view.name;
|
|
32318
|
+
nameCell.append(strong);
|
|
32319
|
+
const accessCell = document2.createElement("td");
|
|
32320
|
+
accessCell.textContent = accessLabel(view, copy);
|
|
32321
|
+
const connectionCell = document2.createElement("td");
|
|
32322
|
+
connectionCell.textContent = connectionLabel(view.connectionMode, copy);
|
|
32323
|
+
const grantCell = document2.createElement("td");
|
|
32324
|
+
grantCell.textContent = grantLabel(view.dispatchGrant, copy);
|
|
32325
|
+
const urlCell = document2.createElement("td");
|
|
32326
|
+
urlCell.textContent = view.mcpUrl ?? view.mcpUrlNote ?? "\u2014";
|
|
32327
|
+
const actions = document2.createElement("td");
|
|
32328
|
+
actions.className = "settings-enrollment-actions";
|
|
32329
|
+
if (view.mcpUrl) {
|
|
32330
|
+
const copyButton = document2.createElement("button");
|
|
32331
|
+
copyButton.type = "button";
|
|
32332
|
+
copyButton.className = "settings-command-button settings-command-button--secondary";
|
|
32333
|
+
copyButton.textContent = copy.copyUrl;
|
|
32334
|
+
copyButton.addEventListener("click", () => void copyUrl(view.mcpUrl));
|
|
32335
|
+
actions.append(copyButton);
|
|
32336
|
+
}
|
|
32337
|
+
const full = document2.createElement("button");
|
|
32338
|
+
full.type = "button";
|
|
32339
|
+
full.className = "settings-command-button settings-command-button--secondary";
|
|
32340
|
+
full.textContent = copy.grantFull;
|
|
32341
|
+
full.disabled = view.dispatchGrant === "full-dispatch" || !client;
|
|
32342
|
+
full.addEventListener("click", () => {
|
|
32343
|
+
if (!client) return;
|
|
32344
|
+
full.disabled = true;
|
|
32345
|
+
void context.runLatest(
|
|
32346
|
+
() => client.updateClient({ name: view.name, dispatchGrant: "full-dispatch" }).then(() => client.listClients()),
|
|
32347
|
+
{
|
|
32348
|
+
success(result) {
|
|
32349
|
+
setStatus("", "idle");
|
|
32350
|
+
renderRows(result.clients);
|
|
32351
|
+
},
|
|
32352
|
+
failure(error51) {
|
|
32353
|
+
full.disabled = false;
|
|
32354
|
+
setStatus(errorMessage4(error51, copy.failed), "error");
|
|
32355
|
+
}
|
|
32356
|
+
}
|
|
32357
|
+
);
|
|
32358
|
+
});
|
|
32359
|
+
const revoke = document2.createElement("button");
|
|
32360
|
+
revoke.type = "button";
|
|
32361
|
+
revoke.className = "settings-command-button settings-command-button--secondary";
|
|
32362
|
+
revoke.setAttribute("aria-label", `${copy.revoke} ${view.name}`);
|
|
32363
|
+
const revokeLabel = document2.createElement("span");
|
|
32364
|
+
revokeLabel.textContent = copy.revoke;
|
|
32365
|
+
revoke.append(createRendererSettingsIcon("trash", 14), revokeLabel);
|
|
32366
|
+
revoke.addEventListener("click", () => {
|
|
32367
|
+
if (!client || revoke.disabled) return;
|
|
32368
|
+
if (revoke.dataset.armed !== "true") {
|
|
32369
|
+
revoke.dataset.armed = "true";
|
|
32370
|
+
revokeLabel.textContent = copy.confirmRevoke;
|
|
32371
|
+
return;
|
|
32372
|
+
}
|
|
32373
|
+
revoke.disabled = true;
|
|
32374
|
+
revokeLabel.textContent = copy.revoking;
|
|
32375
|
+
void context.runLatest(
|
|
32376
|
+
() => client.revokeClient(view.name).then(() => client.listClients()),
|
|
32377
|
+
{
|
|
32378
|
+
success(result) {
|
|
32379
|
+
setStatus("", "idle");
|
|
32380
|
+
renderRows(result.clients);
|
|
32381
|
+
},
|
|
32382
|
+
failure(error51) {
|
|
32383
|
+
revoke.disabled = false;
|
|
32384
|
+
revoke.dataset.armed = "true";
|
|
32385
|
+
revokeLabel.textContent = copy.confirmRevoke;
|
|
32386
|
+
setStatus(errorMessage4(error51, copy.failed), "error");
|
|
32387
|
+
}
|
|
32388
|
+
}
|
|
32389
|
+
);
|
|
32390
|
+
});
|
|
32391
|
+
actions.append(full, revoke);
|
|
32392
|
+
row.append(nameCell, accessCell, connectionCell, grantCell, urlCell, actions);
|
|
32393
|
+
tbody.append(row);
|
|
32394
|
+
}
|
|
32395
|
+
};
|
|
32396
|
+
const load = () => {
|
|
32397
|
+
if (!client) {
|
|
32398
|
+
renderEmpty(copy.unavailable);
|
|
32399
|
+
return;
|
|
32400
|
+
}
|
|
32401
|
+
setStatus(copy.loading, "idle");
|
|
32402
|
+
void context.runLatest(() => client.listClients(), {
|
|
32403
|
+
success(result) {
|
|
32404
|
+
setStatus("", "idle");
|
|
32405
|
+
renderRows(result.clients);
|
|
32406
|
+
},
|
|
32407
|
+
failure(error51) {
|
|
32408
|
+
setStatus("", "idle");
|
|
32409
|
+
renderEmpty(
|
|
32410
|
+
error51 instanceof RendererExternalClientsUnavailableError ? copy.unavailable : errorMessage4(error51, copy.failed)
|
|
32411
|
+
);
|
|
32412
|
+
}
|
|
32413
|
+
});
|
|
32414
|
+
};
|
|
32415
|
+
form.addEventListener("submit", (event) => {
|
|
32416
|
+
event.preventDefault();
|
|
32417
|
+
if (!client || add.disabled) return;
|
|
32418
|
+
const name = nameInput.value.trim();
|
|
32419
|
+
const access = accessSelect.value;
|
|
32420
|
+
const connectionMode = connectionSelect.value;
|
|
32421
|
+
const dispatchGrant = grantSelect.value;
|
|
32422
|
+
const roots = workspaces.value.split("\n").map((line) => line.trim()).filter(Boolean);
|
|
32423
|
+
const directUrl = directUrlInput.value.trim();
|
|
32424
|
+
const oauthClientId = oauthInput.value.trim();
|
|
32425
|
+
add.disabled = true;
|
|
32426
|
+
add.textContent = copy.adding;
|
|
32427
|
+
void context.runLatest(
|
|
32428
|
+
() => client.createClient({
|
|
32429
|
+
name,
|
|
32430
|
+
access,
|
|
32431
|
+
connectionMode,
|
|
32432
|
+
dispatchGrant,
|
|
32433
|
+
...access === "selected-workspaces" ? { workspaces: roots } : {},
|
|
32434
|
+
...directUrl ? { directUrl } : {},
|
|
32435
|
+
...oauthClientId ? { oauthClientId } : {}
|
|
32436
|
+
}).then(async (created) => {
|
|
32437
|
+
const listed = await client.listClients();
|
|
32438
|
+
return { created, listed };
|
|
32439
|
+
}),
|
|
32440
|
+
{
|
|
32441
|
+
success({ created, listed }) {
|
|
32442
|
+
add.disabled = false;
|
|
32443
|
+
add.textContent = copy.add;
|
|
32444
|
+
nameInput.value = "";
|
|
32445
|
+
directUrlInput.value = "";
|
|
32446
|
+
oauthInput.value = "";
|
|
32447
|
+
renderRows(listed.clients);
|
|
32448
|
+
setStatus(
|
|
32449
|
+
created.token ? `${copy.tokenOnce} ${created.token}` : copy.connectOAuth,
|
|
32450
|
+
"idle"
|
|
32451
|
+
);
|
|
32452
|
+
},
|
|
32453
|
+
failure(error51) {
|
|
32454
|
+
add.disabled = false;
|
|
32455
|
+
add.textContent = copy.add;
|
|
32456
|
+
setStatus(errorMessage4(error51, copy.failed), "error");
|
|
32457
|
+
}
|
|
32458
|
+
}
|
|
32459
|
+
);
|
|
32460
|
+
});
|
|
32461
|
+
refresh.addEventListener("click", load);
|
|
32462
|
+
load();
|
|
32463
|
+
return void 0;
|
|
32464
|
+
}
|
|
32465
|
+
});
|
|
32466
|
+
}
|
|
32467
|
+
|
|
30765
32468
|
// src/settings/update-request.ts
|
|
30766
32469
|
var RENDERER_UPDATE_REQUEST_TIMEOUT_MS = 15e3;
|
|
30767
32470
|
var RendererUpdateRequestTimeoutError = class extends Error {
|
|
@@ -31370,7 +33073,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
31370
33073
|
}
|
|
31371
33074
|
});
|
|
31372
33075
|
}
|
|
31373
|
-
function createDefaultRendererSettingsPages(messages = DEFAULT_RENDERER_SETTINGS_MESSAGES, getUpdateClient = () => null, getDiagnostics = () => null, getAccountClient = () => null, getSessionImportClient = () => null, openImportedThread = () => Promise.reject(new Error("Imported Thread navigation is unavailable")), getLoadedSessionsClient = () => null, getRemoteConnections = () => null, requestUsageStatistics = () => Promise.reject(new Error("Local Host connection is unavailable")), usageStatisticsHosts, requestVoiceSettings = () => Promise.reject(new Error("Local Host connection is unavailable")), harnessSchedules, getEnrollmentClient = () => null) {
|
|
33076
|
+
function createDefaultRendererSettingsPages(messages = DEFAULT_RENDERER_SETTINGS_MESSAGES, getUpdateClient = () => null, getDiagnostics = () => null, getAccountClient = () => null, getSessionImportClient = () => null, openImportedThread = () => Promise.reject(new Error("Imported Thread navigation is unavailable")), getLoadedSessionsClient = () => null, getRemoteConnections = () => null, requestUsageStatistics = () => Promise.reject(new Error("Local Host connection is unavailable")), usageStatisticsHosts, requestVoiceSettings = () => Promise.reject(new Error("Local Host connection is unavailable")), harnessSchedules, getEnrollmentClient = () => null, getExternalClientsClient = () => null) {
|
|
31374
33077
|
return Object.freeze([
|
|
31375
33078
|
createConnectionsSettingsPage(messages, getDiagnostics, void 0, getRemoteConnections),
|
|
31376
33079
|
createMobileWebPage(messages, () => {
|
|
@@ -31379,6 +33082,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
31379
33082
|
}),
|
|
31380
33083
|
createRemoteConnectionsPage(messages, getRemoteConnections),
|
|
31381
33084
|
createEnrollmentSettingsPage(messages, getEnrollmentClient),
|
|
33085
|
+
createMcpClientsSettingsPage(messages, getExternalClientsClient),
|
|
31382
33086
|
createAccountsSettingsPage(messages, getAccountClient),
|
|
31383
33087
|
...harnessSchedules ? [createHarnessSchedulesPage(messages, harnessSchedules)] : [],
|
|
31384
33088
|
createSessionImportSettingsPage(
|
|
@@ -34182,7 +35886,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
34182
35886
|
`;
|
|
34183
35887
|
|
|
34184
35888
|
// src/settings/tailwind.css
|
|
34185
|
-
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,.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}.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\\:bg-settings-hover:hover{background-color:var(--settings-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';
|
|
35889
|
+
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}.grow{flex-grow:1}.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,.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}.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\\:bg-settings-hover:hover{background-color:var(--settings-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';
|
|
34186
35890
|
|
|
34187
35891
|
// src/web-request-manager.ts
|
|
34188
35892
|
function webRequestManager() {
|
|
@@ -34360,6 +36064,7 @@ lucide/dist/esm/icons/x.mjs:
|
|
|
34360
36064
|
lucide/dist/esm/icons/users.mjs:
|
|
34361
36065
|
lucide/dist/esm/icons/plus.mjs:
|
|
34362
36066
|
lucide/dist/esm/icons/key-round.mjs:
|
|
36067
|
+
lucide/dist/esm/icons/bot.mjs:
|
|
34363
36068
|
(**
|
|
34364
36069
|
* @license lucide v1.28.0 - ISC
|
|
34365
36070
|
*
|