@karlorz/codexhost-cli-win32-x64 0.18.0-0 → 0.18.0-1
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 +258 -57
- package/app/console-web.js +1813 -137
- package/app/cpa-live-voice-hook.js +1879 -426
- package/app/desktop-controller.mjs +1783 -192
- package/app/host-runtime.mjs +2595 -1088
- package/app/overlay-voice-bootstrap.js +1616 -0
- package/app/plugins/antigravity/plugin.mjs +257 -56
- package/app/plugins/claude-code/plugin.mjs +257 -56
- package/app/plugins/codebuddy/plugin.mjs +257 -56
- package/app/plugins/codex-usage/plugin.mjs +257 -56
- package/app/plugins/copilot/plugin.mjs +257 -56
- package/app/plugins/cursor-cli/plugin.mjs +257 -56
- package/app/plugins/deepseek-harness/plugin.mjs +257 -56
- package/app/plugins/devin/plugin.mjs +257 -56
- package/app/plugins/grok/plugin.mjs +257 -56
- package/app/plugins/hermes/plugin.mjs +257 -56
- package/app/plugins/kimi-code/plugin.mjs +257 -56
- package/app/plugins/kiro-cli/plugin.mjs +257 -56
- package/app/plugins/omp/plugin.mjs +257 -56
- package/app/plugins/opencode/plugin.mjs +257 -56
- package/app/plugins/pi/plugin.mjs +257 -56
- package/app/plugins/qoder/plugin.mjs +257 -56
- package/app/plugins/qoder-cn/plugin.mjs +257 -56
- package/app/plugins/qwen-code/plugin.mjs +257 -56
- package/app/plugins/workbuddy/plugin.mjs +257 -56
- package/app/plugins/zcode/plugin.mjs +257 -56
- package/app/renderer-extension.js +22195 -19283
- package/app/voice-profile-pins.json +25 -0
- package/app/voice-qualification.json +4 -0
- package/app/web/assets/index-py6Ho-Dy.js +199 -0
- package/app/web/codexhost-settings.js +1762 -129
- package/app/web/index.html +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-remotes/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-session-controller/client.js +69 -69
- package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +63 -63
- package/app/web/plugins/deepseek-ai__dsh-client-ui-tool/client.js +79 -79
- package/app/web-modules/server.mjs +956 -180
- 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/console-web.js
CHANGED
|
@@ -3319,7 +3319,7 @@
|
|
|
3319
3319
|
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
|
|
3320
3320
|
defineLazy(inst._zod, "values", () => {
|
|
3321
3321
|
if (def.options.every((o) => o._zod.values)) {
|
|
3322
|
-
return new Set(def.options.flatMap((
|
|
3322
|
+
return new Set(def.options.flatMap((option2) => Array.from(option2._zod.values)));
|
|
3323
3323
|
}
|
|
3324
3324
|
return void 0;
|
|
3325
3325
|
});
|
|
@@ -3337,8 +3337,8 @@
|
|
|
3337
3337
|
}
|
|
3338
3338
|
let async = false;
|
|
3339
3339
|
const results = [];
|
|
3340
|
-
for (const
|
|
3341
|
-
const result =
|
|
3340
|
+
for (const option2 of def.options) {
|
|
3341
|
+
const result = option2._zod.run({
|
|
3342
3342
|
value: payload.value,
|
|
3343
3343
|
issues: []
|
|
3344
3344
|
}, ctx);
|
|
@@ -3392,8 +3392,8 @@
|
|
|
3392
3392
|
}
|
|
3393
3393
|
let async = false;
|
|
3394
3394
|
const results = [];
|
|
3395
|
-
for (const
|
|
3396
|
-
const result =
|
|
3395
|
+
for (const option2 of def.options) {
|
|
3396
|
+
const result = option2._zod.run({
|
|
3397
3397
|
value: payload.value,
|
|
3398
3398
|
issues: []
|
|
3399
3399
|
}, ctx);
|
|
@@ -3417,10 +3417,10 @@
|
|
|
3417
3417
|
const _super = inst._zod.parse;
|
|
3418
3418
|
defineLazy(inst._zod, "propValues", () => {
|
|
3419
3419
|
const propValues = {};
|
|
3420
|
-
for (const
|
|
3421
|
-
const pv =
|
|
3420
|
+
for (const option2 of def.options) {
|
|
3421
|
+
const pv = option2._zod.propValues;
|
|
3422
3422
|
if (!pv || Object.keys(pv).length === 0)
|
|
3423
|
-
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(
|
|
3423
|
+
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option2)}"`);
|
|
3424
3424
|
for (const [k, v] of Object.entries(pv)) {
|
|
3425
3425
|
if (!propValues[k])
|
|
3426
3426
|
propValues[k] = /* @__PURE__ */ new Set();
|
|
@@ -11830,8 +11830,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11830
11830
|
return false;
|
|
11831
11831
|
}
|
|
11832
11832
|
if (def.type === "union") {
|
|
11833
|
-
for (const
|
|
11834
|
-
if (isTransforming(
|
|
11833
|
+
for (const option2 of def.options) {
|
|
11834
|
+
if (isTransforming(option2, ctx))
|
|
11835
11835
|
return true;
|
|
11836
11836
|
}
|
|
11837
11837
|
return false;
|
|
@@ -14634,7 +14634,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14634
14634
|
origin: goalOriginSchema
|
|
14635
14635
|
});
|
|
14636
14636
|
|
|
14637
|
-
// ../shared-contracts/dist/realtime-call.js
|
|
14637
|
+
// ../shared-contracts/dist/realtime-call-core.js
|
|
14638
14638
|
var REALTIME_CALL_FORWARDED_HEADERS = [
|
|
14639
14639
|
"openai-alpha",
|
|
14640
14640
|
"thread-id",
|
|
@@ -14643,7 +14643,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14643
14643
|
"x-codex-turn-metadata"
|
|
14644
14644
|
];
|
|
14645
14645
|
var FORWARDED_HEADERS = new Set(REALTIME_CALL_FORWARDED_HEADERS);
|
|
14646
|
-
var REALTIME_CALL_ID_PATTERN = /^
|
|
14646
|
+
var REALTIME_CALL_ID_PATTERN = /^[A-Za-z0-9_-]{1,128}$/u;
|
|
14647
|
+
|
|
14648
|
+
// ../shared-contracts/dist/realtime-call.js
|
|
14647
14649
|
var requestId = external_exports.string().min(1).max(128);
|
|
14648
14650
|
var realtimeCallParamsSchema = external_exports.discriminatedUnion("operation", [
|
|
14649
14651
|
external_exports.object({
|
|
@@ -14700,12 +14702,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14700
14702
|
var RELAY_PUBLIC_RESOURCE = `${RELAY_PUBLIC_ORIGIN}/mcp`;
|
|
14701
14703
|
var RELAY_WAIT_TIMEOUT_MAX_MS = 25e3;
|
|
14702
14704
|
var RELAY_MAX_BODY_BYTES = 2 * 1024 * 1024;
|
|
14703
|
-
var RELAY_ALLOWED_ROUTES = [
|
|
14704
|
-
"/v1/enroll/status",
|
|
14705
|
-
"/v1/thread/read",
|
|
14706
|
-
"/v1/thread/wait",
|
|
14707
|
-
"/v1/thread/send"
|
|
14708
|
-
];
|
|
14709
14705
|
var relayLinkHelloSchema = external_exports.strictObject({
|
|
14710
14706
|
v: external_exports.literal(RELAY_LINK_PROTOCOL_VERSION),
|
|
14711
14707
|
secret: external_exports.string().min(1).max(4096)
|
|
@@ -14717,8 +14713,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14717
14713
|
var relayLinkRequestSchema = external_exports.strictObject({
|
|
14718
14714
|
requestId: external_exports.string().min(1).max(128),
|
|
14719
14715
|
deadlineMs: external_exports.number().int().positive(),
|
|
14720
|
-
route: external_exports.
|
|
14721
|
-
body: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
14716
|
+
route: external_exports.string().min(1).max(128),
|
|
14717
|
+
body: external_exports.record(external_exports.string(), external_exports.unknown()),
|
|
14718
|
+
operationalClient: external_exports.string().min(1).max(64).optional(),
|
|
14719
|
+
oauthClientId: external_exports.string().min(1).max(128).optional(),
|
|
14720
|
+
dispatchGrant: external_exports.enum(["legacy-four", "full-dispatch"]).optional()
|
|
14722
14721
|
});
|
|
14723
14722
|
var relayLinkErrorSchema = external_exports.strictObject({
|
|
14724
14723
|
code: external_exports.string().min(1).max(64),
|
|
@@ -14762,6 +14761,208 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14762
14761
|
runtime: external_exports.enum(["reachable", "unreachable"])
|
|
14763
14762
|
});
|
|
14764
14763
|
|
|
14764
|
+
// ../shared-contracts/dist/external-clients.js
|
|
14765
|
+
var EXTERNAL_CLIENT_LIST_METHOD = "codexhost/external-clients/list";
|
|
14766
|
+
var EXTERNAL_CLIENT_CREATE_METHOD = "codexhost/external-clients/create";
|
|
14767
|
+
var EXTERNAL_CLIENT_UPDATE_METHOD = "codexhost/external-clients/update";
|
|
14768
|
+
var EXTERNAL_CLIENT_REVOKE_METHOD = "codexhost/external-clients/revoke";
|
|
14769
|
+
var EXTERNAL_CLIENT_NAME_PATTERN = /^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$/u;
|
|
14770
|
+
var externalClientNameSchema = external_exports.string().trim().min(1).max(64).regex(EXTERNAL_CLIENT_NAME_PATTERN);
|
|
14771
|
+
var externalClientAccessSchema = external_exports.enum(["all-threads", "selected-workspaces"]);
|
|
14772
|
+
var externalClientConnectionModeSchema = external_exports.enum(["public-relay", "local", "direct"]);
|
|
14773
|
+
var externalClientDispatchGrantSchema = external_exports.enum(["legacy-four", "full-dispatch"]);
|
|
14774
|
+
var workspacePathSchema = external_exports.string().trim().min(1).max(4096);
|
|
14775
|
+
var directUrlSchema = external_exports.string().trim().max(2048);
|
|
14776
|
+
var externalClientPublicViewSchema = external_exports.strictObject({
|
|
14777
|
+
name: externalClientNameSchema,
|
|
14778
|
+
createdAt: external_exports.string().min(1).max(64),
|
|
14779
|
+
access: externalClientAccessSchema,
|
|
14780
|
+
workspaces: external_exports.array(workspacePathSchema).max(64),
|
|
14781
|
+
connectionMode: externalClientConnectionModeSchema,
|
|
14782
|
+
dispatchGrant: externalClientDispatchGrantSchema,
|
|
14783
|
+
oauthClientId: external_exports.string().trim().min(1).max(128).optional(),
|
|
14784
|
+
directUrl: directUrlSchema.optional(),
|
|
14785
|
+
mcpUrl: external_exports.string().min(1).max(2048).optional(),
|
|
14786
|
+
mcpUrlNote: external_exports.string().min(1).max(512).optional()
|
|
14787
|
+
});
|
|
14788
|
+
var externalClientListParamsSchema = external_exports.strictObject({});
|
|
14789
|
+
var externalClientListResultSchema = external_exports.strictObject({
|
|
14790
|
+
clients: external_exports.array(externalClientPublicViewSchema).max(256)
|
|
14791
|
+
});
|
|
14792
|
+
var externalClientWriteFieldsSchema = external_exports.strictObject({
|
|
14793
|
+
access: externalClientAccessSchema.optional(),
|
|
14794
|
+
workspaces: external_exports.array(workspacePathSchema).max(64).optional(),
|
|
14795
|
+
connectionMode: externalClientConnectionModeSchema.optional(),
|
|
14796
|
+
dispatchGrant: externalClientDispatchGrantSchema.optional(),
|
|
14797
|
+
oauthClientId: external_exports.string().trim().min(1).max(128).optional(),
|
|
14798
|
+
directUrl: directUrlSchema.optional()
|
|
14799
|
+
});
|
|
14800
|
+
var externalClientCreateParamsSchema = externalClientWriteFieldsSchema.extend({
|
|
14801
|
+
name: externalClientNameSchema
|
|
14802
|
+
});
|
|
14803
|
+
var externalClientCreateResultSchema = externalClientPublicViewSchema.extend({
|
|
14804
|
+
token: external_exports.string().min(1).max(256).optional()
|
|
14805
|
+
});
|
|
14806
|
+
var externalClientUpdateParamsSchema = externalClientWriteFieldsSchema.extend({
|
|
14807
|
+
name: externalClientNameSchema,
|
|
14808
|
+
clearOauthClientId: external_exports.literal(true).optional()
|
|
14809
|
+
});
|
|
14810
|
+
var externalClientRevokeParamsSchema = external_exports.strictObject({
|
|
14811
|
+
name: externalClientNameSchema
|
|
14812
|
+
});
|
|
14813
|
+
var externalClientRevokeResultSchema = external_exports.strictObject({
|
|
14814
|
+
name: externalClientNameSchema,
|
|
14815
|
+
revoked: external_exports.literal(true)
|
|
14816
|
+
});
|
|
14817
|
+
var stringProp = (description) => ({ type: "string", description });
|
|
14818
|
+
var integerProp = (description) => ({
|
|
14819
|
+
type: "integer",
|
|
14820
|
+
minimum: 0,
|
|
14821
|
+
description
|
|
14822
|
+
});
|
|
14823
|
+
var threadProp = stringProp("Thread id or codex://threads/<id> link");
|
|
14824
|
+
var EXTERNAL_MCP_TOOL_DESCRIPTORS = [
|
|
14825
|
+
{
|
|
14826
|
+
name: "harness_list",
|
|
14827
|
+
description: "List the Harnesses this codexhost can delegate to.",
|
|
14828
|
+
inputSchema: { type: "object", properties: {} }
|
|
14829
|
+
},
|
|
14830
|
+
{
|
|
14831
|
+
name: "harness_inspect",
|
|
14832
|
+
description: "Read a Harness's Models, Thinking options and defaults; use the returned ids when delegating.",
|
|
14833
|
+
inputSchema: {
|
|
14834
|
+
type: "object",
|
|
14835
|
+
properties: {
|
|
14836
|
+
harnessId: stringProp("Harness id from harness_list"),
|
|
14837
|
+
cwd: stringProp("Absolute workspace path"),
|
|
14838
|
+
refresh: { type: "boolean" }
|
|
14839
|
+
},
|
|
14840
|
+
required: ["harnessId"]
|
|
14841
|
+
}
|
|
14842
|
+
},
|
|
14843
|
+
{
|
|
14844
|
+
name: "delegate_start",
|
|
14845
|
+
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).",
|
|
14846
|
+
inputSchema: {
|
|
14847
|
+
type: "object",
|
|
14848
|
+
properties: {
|
|
14849
|
+
harnessId: stringProp("Harness id from harness_list"),
|
|
14850
|
+
task: stringProp("The full task text"),
|
|
14851
|
+
taskName: stringProp("Short display name"),
|
|
14852
|
+
cwd: stringProp("Absolute workspace path"),
|
|
14853
|
+
model: stringProp("Model id from harness_inspect"),
|
|
14854
|
+
thinking: stringProp("Thinking option id from harness_inspect"),
|
|
14855
|
+
parentThread: stringProp("Optional parent Thread"),
|
|
14856
|
+
requestId: stringProp("Reuse to retry idempotently"),
|
|
14857
|
+
refs: {
|
|
14858
|
+
type: "array",
|
|
14859
|
+
items: { type: "string" },
|
|
14860
|
+
description: "Absolute URIs of where the work came from"
|
|
14861
|
+
},
|
|
14862
|
+
watch: { type: "boolean", description: "Record an event when the Thread stops" },
|
|
14863
|
+
watchTimeoutMs: integerProp("How long to watch; default 29 minutes")
|
|
14864
|
+
},
|
|
14865
|
+
required: ["harnessId", "task"]
|
|
14866
|
+
}
|
|
14867
|
+
},
|
|
14868
|
+
{
|
|
14869
|
+
name: "thread_read",
|
|
14870
|
+
description: "Read a Thread's status and latest result, or page its visible messages (view=messages). Never changes the Thread.",
|
|
14871
|
+
inputSchema: {
|
|
14872
|
+
type: "object",
|
|
14873
|
+
properties: {
|
|
14874
|
+
thread: threadProp,
|
|
14875
|
+
view: { type: "string", enum: ["result", "messages"] },
|
|
14876
|
+
cursor: stringProp("Message cursor"),
|
|
14877
|
+
limit: integerProp("Messages per page, at most 100")
|
|
14878
|
+
},
|
|
14879
|
+
required: ["thread"]
|
|
14880
|
+
}
|
|
14881
|
+
},
|
|
14882
|
+
{
|
|
14883
|
+
name: "thread_wait",
|
|
14884
|
+
description: "Wait up to timeoutMs (at most 60000) for a Thread to stop, then return the same snapshot as thread_read plus timedOut.",
|
|
14885
|
+
inputSchema: {
|
|
14886
|
+
type: "object",
|
|
14887
|
+
properties: {
|
|
14888
|
+
thread: threadProp,
|
|
14889
|
+
timeoutMs: integerProp("At most 60000; default 30000"),
|
|
14890
|
+
view: { type: "string", enum: ["result", "messages"] }
|
|
14891
|
+
},
|
|
14892
|
+
required: ["thread"]
|
|
14893
|
+
}
|
|
14894
|
+
},
|
|
14895
|
+
{
|
|
14896
|
+
name: "thread_list",
|
|
14897
|
+
description: "List Threads: by workspace (cwd), by parent Thread, by the client that started them, or by reference.",
|
|
14898
|
+
inputSchema: {
|
|
14899
|
+
type: "object",
|
|
14900
|
+
properties: {
|
|
14901
|
+
cwd: stringProp("Absolute workspace path"),
|
|
14902
|
+
parent: stringProp("Parent Thread"),
|
|
14903
|
+
client: stringProp("Client name"),
|
|
14904
|
+
ref: stringProp("Reference URI"),
|
|
14905
|
+
limit: integerProp("At most 100; default 25"),
|
|
14906
|
+
cursor: stringProp("Cursor from a previous page"),
|
|
14907
|
+
sort: {
|
|
14908
|
+
type: "string",
|
|
14909
|
+
enum: [
|
|
14910
|
+
"created-asc",
|
|
14911
|
+
"created-desc",
|
|
14912
|
+
"updated-asc",
|
|
14913
|
+
"updated-desc",
|
|
14914
|
+
"recency-asc",
|
|
14915
|
+
"recency-desc"
|
|
14916
|
+
]
|
|
14917
|
+
}
|
|
14918
|
+
}
|
|
14919
|
+
}
|
|
14920
|
+
},
|
|
14921
|
+
{
|
|
14922
|
+
name: "thread_send",
|
|
14923
|
+
description: "Start a new Turn in an idle Thread. THREAD_BUSY means its current Turn is still running; messages are not queued.",
|
|
14924
|
+
inputSchema: {
|
|
14925
|
+
type: "object",
|
|
14926
|
+
properties: { thread: threadProp, message: stringProp("Message text") },
|
|
14927
|
+
required: ["thread", "message"]
|
|
14928
|
+
}
|
|
14929
|
+
},
|
|
14930
|
+
{
|
|
14931
|
+
name: "thread_cancel",
|
|
14932
|
+
description: "Cancel a Thread's active Turn, keeping the Thread and its history.",
|
|
14933
|
+
inputSchema: { type: "object", properties: { thread: threadProp }, required: ["thread"] }
|
|
14934
|
+
},
|
|
14935
|
+
{
|
|
14936
|
+
name: "thread_watch",
|
|
14937
|
+
description: "Record one event for this client when the Thread stops or the watch expires.",
|
|
14938
|
+
inputSchema: {
|
|
14939
|
+
type: "object",
|
|
14940
|
+
properties: { thread: threadProp, timeoutMs: integerProp("Default 29 minutes") },
|
|
14941
|
+
required: ["thread"]
|
|
14942
|
+
}
|
|
14943
|
+
},
|
|
14944
|
+
{
|
|
14945
|
+
name: "thread_watches",
|
|
14946
|
+
description: "List watches that have not been delivered yet.",
|
|
14947
|
+
inputSchema: { type: "object", properties: {} }
|
|
14948
|
+
},
|
|
14949
|
+
{
|
|
14950
|
+
name: "events_poll",
|
|
14951
|
+
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>.",
|
|
14952
|
+
inputSchema: {
|
|
14953
|
+
type: "object",
|
|
14954
|
+
properties: {
|
|
14955
|
+
after: integerProp("Cursor; 0 for all retained"),
|
|
14956
|
+
timeoutMs: integerProp("At most 60000; default 0"),
|
|
14957
|
+
limit: integerProp("At most 100")
|
|
14958
|
+
}
|
|
14959
|
+
}
|
|
14960
|
+
}
|
|
14961
|
+
];
|
|
14962
|
+
|
|
14963
|
+
// ../shared-contracts/dist/external-mcp-map.js
|
|
14964
|
+
var DEFAULT_WATCH_MS = 29 * 6e4;
|
|
14965
|
+
|
|
14765
14966
|
// ../shared-contracts/dist/grok-computer-use.js
|
|
14766
14967
|
var GROK_COMPUTER_USE_GET_METHOD = "codexhost/harness/grok-computer-use/get";
|
|
14767
14968
|
var GROK_COMPUTER_USE_SET_METHOD = "codexhost/harness/grok-computer-use/set";
|
|
@@ -15120,15 +15321,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15120
15321
|
}).strict();
|
|
15121
15322
|
var harnessThinkingOptionsSchema = external_exports.array(harnessThinkingOptionSchema).superRefine((options, context) => {
|
|
15122
15323
|
const ids = /* @__PURE__ */ new Set();
|
|
15123
|
-
for (const [index,
|
|
15124
|
-
if (ids.has(
|
|
15324
|
+
for (const [index, option2] of options.entries()) {
|
|
15325
|
+
if (ids.has(option2.id)) {
|
|
15125
15326
|
context.addIssue({
|
|
15126
15327
|
code: "custom",
|
|
15127
15328
|
message: "Thinking option IDs must be unique",
|
|
15128
15329
|
path: [index, "id"]
|
|
15129
15330
|
});
|
|
15130
15331
|
}
|
|
15131
|
-
ids.add(
|
|
15332
|
+
ids.add(option2.id);
|
|
15132
15333
|
}
|
|
15133
15334
|
});
|
|
15134
15335
|
var harnessModelCatalogSchema = external_exports.object({
|
|
@@ -15382,6 +15583,52 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15382
15583
|
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15383
15584
|
}).strict();
|
|
15384
15585
|
|
|
15586
|
+
// ../shared-contracts/dist/voice-settings.js
|
|
15587
|
+
var voiceRoutesSchema = external_exports.strictObject({
|
|
15588
|
+
chatExperience: external_exports.enum(["chatgpt", "codex"]),
|
|
15589
|
+
chatConnection: external_exports.enum(["desktop", "gateway"]),
|
|
15590
|
+
workConnection: external_exports.enum(["desktop", "gateway"])
|
|
15591
|
+
});
|
|
15592
|
+
var DEFAULT_VOICE_ROUTES = Object.freeze({
|
|
15593
|
+
chatExperience: "chatgpt",
|
|
15594
|
+
chatConnection: "desktop",
|
|
15595
|
+
workConnection: "gateway"
|
|
15596
|
+
});
|
|
15597
|
+
var voiceSettingsSchema = voiceRoutesSchema.extend({ inject: external_exports.boolean() });
|
|
15598
|
+
var voiceSettingsRequestSchema = external_exports.discriminatedUnion("operation", [
|
|
15599
|
+
external_exports.strictObject({
|
|
15600
|
+
operation: external_exports.literal("get"),
|
|
15601
|
+
runtime: external_exports.strictObject({
|
|
15602
|
+
id: external_exports.string().uuid(),
|
|
15603
|
+
revision: external_exports.string().max(64),
|
|
15604
|
+
activeCall: external_exports.boolean()
|
|
15605
|
+
}).optional()
|
|
15606
|
+
}),
|
|
15607
|
+
external_exports.strictObject({ operation: external_exports.literal("migrate"), routes: voiceRoutesSchema }),
|
|
15608
|
+
external_exports.strictObject({
|
|
15609
|
+
operation: external_exports.literal("set"),
|
|
15610
|
+
settings: voiceSettingsSchema,
|
|
15611
|
+
revision: external_exports.string().max(64)
|
|
15612
|
+
}),
|
|
15613
|
+
external_exports.strictObject({ operation: external_exports.literal("restart"), confirm: external_exports.literal(true) })
|
|
15614
|
+
]);
|
|
15615
|
+
var voiceSettingsStateSchema = external_exports.strictObject({
|
|
15616
|
+
settings: voiceSettingsSchema,
|
|
15617
|
+
initialized: external_exports.boolean(),
|
|
15618
|
+
revision: external_exports.string(),
|
|
15619
|
+
activeInject: external_exports.boolean().nullable(),
|
|
15620
|
+
envOverride: external_exports.enum(["0", "1"]).nullable(),
|
|
15621
|
+
activeEnvOverride: external_exports.enum(["0", "1"]).nullable(),
|
|
15622
|
+
routesActive: external_exports.boolean().nullable(),
|
|
15623
|
+
activeCall: external_exports.boolean().nullable(),
|
|
15624
|
+
gatewayReady: external_exports.boolean().nullable(),
|
|
15625
|
+
restartAvailable: external_exports.boolean(),
|
|
15626
|
+
restart: external_exports.strictObject({
|
|
15627
|
+
phase: external_exports.enum(["idle", "restarting", "succeeded", "failed"]),
|
|
15628
|
+
error: external_exports.string().nullable()
|
|
15629
|
+
})
|
|
15630
|
+
});
|
|
15631
|
+
|
|
15385
15632
|
// ../shared-contracts/dist/client-channel.js
|
|
15386
15633
|
var CLIENT_CHANNEL_VERSION = 1;
|
|
15387
15634
|
var CLIENT_REQUEST_LIMIT_BYTES = 128 * 1024 * 1024;
|
|
@@ -16204,6 +16451,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16204
16451
|
"codexhost/voice/gateway-status",
|
|
16205
16452
|
"codexhost/enrollment/list",
|
|
16206
16453
|
"codexhost/enrollment/revoke",
|
|
16454
|
+
"codexhost/external-clients/list",
|
|
16455
|
+
"codexhost/external-clients/create",
|
|
16456
|
+
"codexhost/external-clients/update",
|
|
16457
|
+
"codexhost/external-clients/revoke",
|
|
16207
16458
|
"codexhost/console/remote-connections",
|
|
16208
16459
|
"codexhost/runtime/status",
|
|
16209
16460
|
"codexhost/remote/ssh-setup",
|
|
@@ -16915,52 +17166,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16915
17166
|
var webUiExtensionEnabledSchema = external_exports.object({ id: webUiExtensionIdSchema, enabled: external_exports.boolean() }).strict();
|
|
16916
17167
|
var webUiExtensionRemoveSchema = external_exports.object({ id: webUiExtensionIdSchema }).strict();
|
|
16917
17168
|
|
|
16918
|
-
// ../shared-contracts/dist/voice-settings.js
|
|
16919
|
-
var voiceRoutesSchema = external_exports.strictObject({
|
|
16920
|
-
chatExperience: external_exports.enum(["chatgpt", "codex"]),
|
|
16921
|
-
chatConnection: external_exports.enum(["desktop", "gateway"]),
|
|
16922
|
-
workConnection: external_exports.enum(["desktop", "gateway"])
|
|
16923
|
-
});
|
|
16924
|
-
var DEFAULT_VOICE_ROUTES = Object.freeze({
|
|
16925
|
-
chatExperience: "chatgpt",
|
|
16926
|
-
chatConnection: "desktop",
|
|
16927
|
-
workConnection: "gateway"
|
|
16928
|
-
});
|
|
16929
|
-
var voiceSettingsSchema = voiceRoutesSchema.extend({ inject: external_exports.boolean() });
|
|
16930
|
-
var voiceSettingsRequestSchema = external_exports.discriminatedUnion("operation", [
|
|
16931
|
-
external_exports.strictObject({
|
|
16932
|
-
operation: external_exports.literal("get"),
|
|
16933
|
-
runtime: external_exports.strictObject({
|
|
16934
|
-
id: external_exports.string().uuid(),
|
|
16935
|
-
revision: external_exports.string().max(64),
|
|
16936
|
-
activeCall: external_exports.boolean()
|
|
16937
|
-
}).optional()
|
|
16938
|
-
}),
|
|
16939
|
-
external_exports.strictObject({ operation: external_exports.literal("migrate"), routes: voiceRoutesSchema }),
|
|
16940
|
-
external_exports.strictObject({
|
|
16941
|
-
operation: external_exports.literal("set"),
|
|
16942
|
-
settings: voiceSettingsSchema,
|
|
16943
|
-
revision: external_exports.string().max(64)
|
|
16944
|
-
}),
|
|
16945
|
-
external_exports.strictObject({ operation: external_exports.literal("restart"), confirm: external_exports.literal(true) })
|
|
16946
|
-
]);
|
|
16947
|
-
var voiceSettingsStateSchema = external_exports.strictObject({
|
|
16948
|
-
settings: voiceSettingsSchema,
|
|
16949
|
-
initialized: external_exports.boolean(),
|
|
16950
|
-
revision: external_exports.string(),
|
|
16951
|
-
activeInject: external_exports.boolean().nullable(),
|
|
16952
|
-
envOverride: external_exports.enum(["0", "1"]).nullable(),
|
|
16953
|
-
activeEnvOverride: external_exports.enum(["0", "1"]).nullable(),
|
|
16954
|
-
routesActive: external_exports.boolean().nullable(),
|
|
16955
|
-
activeCall: external_exports.boolean().nullable(),
|
|
16956
|
-
gatewayReady: external_exports.boolean().nullable(),
|
|
16957
|
-
restartAvailable: external_exports.boolean(),
|
|
16958
|
-
restart: external_exports.strictObject({
|
|
16959
|
-
phase: external_exports.enum(["idle", "restarting", "succeeded", "failed"]),
|
|
16960
|
-
error: external_exports.string().nullable()
|
|
16961
|
-
})
|
|
16962
|
-
});
|
|
16963
|
-
|
|
16964
17169
|
// ../shared-contracts/dist/background-activity.js
|
|
16965
17170
|
var backgroundActivitySchema = external_exports.strictObject({
|
|
16966
17171
|
id: external_exports.string().min(1),
|
|
@@ -17382,6 +17587,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17382
17587
|
["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor" }]
|
|
17383
17588
|
];
|
|
17384
17589
|
|
|
17590
|
+
// ../../node_modules/lucide/dist/esm/icons/bot.mjs
|
|
17591
|
+
var Bot = [
|
|
17592
|
+
["path", { d: "M12 8V4H8" }],
|
|
17593
|
+
["rect", { width: "16", height: "12", x: "4", y: "8", rx: "2" }],
|
|
17594
|
+
["path", { d: "M2 14h2" }],
|
|
17595
|
+
["path", { d: "M20 14h2" }],
|
|
17596
|
+
["path", { d: "M15 13v2" }],
|
|
17597
|
+
["path", { d: "M9 13v2" }]
|
|
17598
|
+
];
|
|
17599
|
+
|
|
17385
17600
|
// src/settings/icons.ts
|
|
17386
17601
|
var iconNodes = {
|
|
17387
17602
|
settings: Settings,
|
|
@@ -17400,6 +17615,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17400
17615
|
language: Languages,
|
|
17401
17616
|
connections: PlugZap,
|
|
17402
17617
|
enrollment: KeyRound,
|
|
17618
|
+
"mcp-clients": Bot,
|
|
17403
17619
|
accounts: Users,
|
|
17404
17620
|
"session-import": FolderInput,
|
|
17405
17621
|
add: Plus,
|
|
@@ -19973,12 +20189,22 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
19973
20189
|
});
|
|
19974
20190
|
}
|
|
19975
20191
|
|
|
19976
|
-
// src/renderer-
|
|
19977
|
-
var
|
|
19978
|
-
var
|
|
19979
|
-
|
|
19980
|
-
|
|
19981
|
-
|
|
20192
|
+
// src/renderer-chat-voice-debug.ts
|
|
20193
|
+
var CHAT_VOICE_DEBUG_GLOBAL = "__codexhostChatVoiceDebug";
|
|
20194
|
+
var CHAT_VOICE_DEBUG_STORAGE_KEY = "codexhost.chat-voice-debug.v1";
|
|
20195
|
+
function chatVoiceDebug(event, detail = {}) {
|
|
20196
|
+
const entry = { t: Date.now(), event, ...detail };
|
|
20197
|
+
const owner = globalThis;
|
|
20198
|
+
const log = Array.isArray(owner[CHAT_VOICE_DEBUG_GLOBAL]) ? owner[CHAT_VOICE_DEBUG_GLOBAL] : [];
|
|
20199
|
+
log.push(entry);
|
|
20200
|
+
while (log.length > 40) log.shift();
|
|
20201
|
+
owner[CHAT_VOICE_DEBUG_GLOBAL] = log;
|
|
20202
|
+
try {
|
|
20203
|
+
owner.localStorage?.setItem(CHAT_VOICE_DEBUG_STORAGE_KEY, JSON.stringify(log));
|
|
20204
|
+
} catch {
|
|
20205
|
+
}
|
|
20206
|
+
owner.console?.info?.("[codexhost-chat-voice]", event, detail);
|
|
20207
|
+
}
|
|
19982
20208
|
|
|
19983
20209
|
// src/voice-settings-sync.ts
|
|
19984
20210
|
function desktopVoiceCallActive(owner) {
|
|
@@ -20119,6 +20345,12 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20119
20345
|
hookUnsupported: "This Desktop build is not supported for gateway voice",
|
|
20120
20346
|
hookPending: "Attaching\u2026",
|
|
20121
20347
|
hookDisabled: "Off",
|
|
20348
|
+
available: "Available",
|
|
20349
|
+
desktopSelected: "Desktop default selected",
|
|
20350
|
+
routeAllowed: "Allowed on this Desktop",
|
|
20351
|
+
pathUnavailable: "Not available on this Desktop.",
|
|
20352
|
+
chatUnavailableFooter: "Chat voice is not available on this Desktop.",
|
|
20353
|
+
workUnavailableFooter: "Work voice is not available on this Desktop.",
|
|
20122
20354
|
configure: "Configure",
|
|
20123
20355
|
setup: "Gateway setup",
|
|
20124
20356
|
setupHint: "Gateway settings use your local Codex configuration and the selected provider\u2019s credential. End voice before editing configuration. Never paste credentials here.",
|
|
@@ -20178,6 +20410,12 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20178
20410
|
hookUnsupported: "\u5F53\u524D Desktop \u7248\u672C\u4E0D\u652F\u6301\u7F51\u5173\u8BED\u97F3",
|
|
20179
20411
|
hookPending: "\u6B63\u5728\u63A5\u5165\u2026",
|
|
20180
20412
|
hookDisabled: "\u5DF2\u5173\u95ED",
|
|
20413
|
+
available: "\u53EF\u7528",
|
|
20414
|
+
desktopSelected: "\u5DF2\u9009\u62E9 Desktop \u9ED8\u8BA4",
|
|
20415
|
+
routeAllowed: "\u6B64 Desktop \u5DF2\u5141\u8BB8",
|
|
20416
|
+
pathUnavailable: "\u6B64 Desktop \u4E0A\u4E0D\u53EF\u7528\u3002",
|
|
20417
|
+
chatUnavailableFooter: "\u6B64 Desktop \u4E0A Chat \u8BED\u97F3\u4E0D\u53EF\u7528\u3002",
|
|
20418
|
+
workUnavailableFooter: "\u6B64 Desktop \u4E0A Work \u8BED\u97F3\u4E0D\u53EF\u7528\u3002",
|
|
20181
20419
|
configure: "\u914D\u7F6E",
|
|
20182
20420
|
setup: "\u7F51\u5173\u914D\u7F6E",
|
|
20183
20421
|
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",
|
|
@@ -20211,6 +20449,955 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20211
20449
|
};
|
|
20212
20450
|
}
|
|
20213
20451
|
|
|
20452
|
+
// src/renderer-cpa-live-voice-config.ts
|
|
20453
|
+
var CPA_LIVE_VOICE_HOOK_GLOBAL = "__codexhostCpaLiveVoiceHookV1";
|
|
20454
|
+
var ISOLATED_VOICE_PATHS = ["chat", "work-codex", "work-grok"];
|
|
20455
|
+
var PRODUCTION_DESKTOP_APP_PATH = "/Applications/ChatGPT.app";
|
|
20456
|
+
var PRODUCTION_WINDOWS_APPX_PATH = /(?:^|[\\/])WindowsApps[\\/]OpenAI\.(?:Codex|ChatGPT)_/i;
|
|
20457
|
+
function isProductionDesktopAppPath(appPath) {
|
|
20458
|
+
if (typeof appPath !== "string" || appPath.length === 0) return false;
|
|
20459
|
+
if (appPath === PRODUCTION_DESKTOP_APP_PATH) return true;
|
|
20460
|
+
return PRODUCTION_WINDOWS_APPX_PATH.test(appPath);
|
|
20461
|
+
}
|
|
20462
|
+
function isRecord(value) {
|
|
20463
|
+
return typeof value === "object" && value !== null;
|
|
20464
|
+
}
|
|
20465
|
+
function readCpaLiveVoiceHookConfig(globalObject) {
|
|
20466
|
+
const value = globalObject[CPA_LIVE_VOICE_HOOK_GLOBAL];
|
|
20467
|
+
if (!isRecord(value) || value.enabled !== true) return null;
|
|
20468
|
+
if (typeof value.auditedDesktopVersion !== "string" || typeof value.auditedAppInitialAsset !== "string") {
|
|
20469
|
+
return null;
|
|
20470
|
+
}
|
|
20471
|
+
return {
|
|
20472
|
+
enabled: true,
|
|
20473
|
+
auditedDesktopVersion: value.auditedDesktopVersion,
|
|
20474
|
+
auditedAppInitialAsset: value.auditedAppInitialAsset,
|
|
20475
|
+
...typeof value.desktopPlatform === "string" ? { desktopPlatform: value.desktopPlatform } : {},
|
|
20476
|
+
...typeof value.desktopVersion === "string" ? { desktopVersion: value.desktopVersion } : {},
|
|
20477
|
+
...typeof value.desktopBuild === "string" ? { desktopBuild: value.desktopBuild } : {},
|
|
20478
|
+
...typeof value.asarDigest === "string" ? { asarDigest: value.asarDigest } : {},
|
|
20479
|
+
...typeof value.implementationRevision === "string" ? { implementationRevision: value.implementationRevision } : {},
|
|
20480
|
+
...typeof value.desktopAppPath === "string" ? { desktopAppPath: value.desktopAppPath } : {},
|
|
20481
|
+
...Array.isArray(value.voiceEvidence) ? { voiceEvidence: value.voiceEvidence } : {},
|
|
20482
|
+
...isIsolatedVoiceQualification(value.isolatedQualification) ? { isolatedQualification: value.isolatedQualification } : {}
|
|
20483
|
+
};
|
|
20484
|
+
}
|
|
20485
|
+
function isIsolatedVoicePath(value) {
|
|
20486
|
+
return value === "chat" || value === "work-codex" || value === "work-grok";
|
|
20487
|
+
}
|
|
20488
|
+
function isIsolatedDesktopPlatform(value) {
|
|
20489
|
+
return value === "darwin" || value === "win32" || value === "linux";
|
|
20490
|
+
}
|
|
20491
|
+
function isolatedQualificationExpiresAtMs(expiresAt) {
|
|
20492
|
+
if (typeof expiresAt !== "string" || expiresAt.length === 0) return void 0;
|
|
20493
|
+
const parsed = Date.parse(expiresAt);
|
|
20494
|
+
return Number.isFinite(parsed) ? parsed : void 0;
|
|
20495
|
+
}
|
|
20496
|
+
function isolatedQualificationPathSet(value) {
|
|
20497
|
+
if (!isRecord(value)) return void 0;
|
|
20498
|
+
const pathsPresent = value.paths !== void 0;
|
|
20499
|
+
const pathPresent = value.path !== void 0;
|
|
20500
|
+
let listed;
|
|
20501
|
+
if (pathsPresent) {
|
|
20502
|
+
if (!Array.isArray(value.paths) || value.paths.length === 0) return void 0;
|
|
20503
|
+
if (value.paths.some((path) => !isIsolatedVoicePath(path))) return void 0;
|
|
20504
|
+
if (new Set(value.paths).size !== value.paths.length) return void 0;
|
|
20505
|
+
listed = ISOLATED_VOICE_PATHS.filter((path) => value.paths.includes(path));
|
|
20506
|
+
if (listed.length !== value.paths.length) return void 0;
|
|
20507
|
+
} else if (pathPresent) {
|
|
20508
|
+
if (!isIsolatedVoicePath(value.path)) return void 0;
|
|
20509
|
+
listed = [value.path];
|
|
20510
|
+
} else {
|
|
20511
|
+
return void 0;
|
|
20512
|
+
}
|
|
20513
|
+
if (pathPresent) {
|
|
20514
|
+
if (!isIsolatedVoicePath(value.path) || !listed.includes(value.path)) return void 0;
|
|
20515
|
+
}
|
|
20516
|
+
return listed;
|
|
20517
|
+
}
|
|
20518
|
+
function isolatedQualificationPaths(isolated) {
|
|
20519
|
+
return isolatedQualificationPathSet(isolated) ?? [];
|
|
20520
|
+
}
|
|
20521
|
+
function isIsolatedVoiceQualification(value, now = Date.now()) {
|
|
20522
|
+
if (!isRecord(value)) return false;
|
|
20523
|
+
const paths = isolatedQualificationPathSet(value);
|
|
20524
|
+
if (!paths || paths.length === 0) return false;
|
|
20525
|
+
if (typeof value.appPath === "string" && isProductionDesktopAppPath(value.appPath)) return false;
|
|
20526
|
+
const expiresAtMs = isolatedQualificationExpiresAtMs(value.expiresAt);
|
|
20527
|
+
if (expiresAtMs === void 0 || expiresAtMs <= now) return false;
|
|
20528
|
+
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";
|
|
20529
|
+
}
|
|
20530
|
+
|
|
20531
|
+
// src/renderer-voice-implementation-revision.generated.ts
|
|
20532
|
+
var VOICE_IMPLEMENTATION_REVISION = "0a2ee1b441686523";
|
|
20533
|
+
|
|
20534
|
+
// src/renderer-voice-profiles.ts
|
|
20535
|
+
var NATIVE_CHAT_VOICE_VERSION = "26.1027.61615";
|
|
20536
|
+
var NATIVE_CHAT_INITIAL_ASSET = "app-initial-18b189e867e7.js";
|
|
20537
|
+
var START_ASSET = "start-voice-221a396d38a5.js";
|
|
20538
|
+
var BASELINE_NAMED_CHAT_ROLES = {
|
|
20539
|
+
initializeFrom: "initial",
|
|
20540
|
+
initialize: "oT",
|
|
20541
|
+
startShape: "module",
|
|
20542
|
+
voiceSessionSelector: "SPn",
|
|
20543
|
+
reactFactory: "FBt",
|
|
20544
|
+
reactDomFactory: "PNt",
|
|
20545
|
+
prewarmController: "VoiceInstantConnectCacheController",
|
|
20546
|
+
initial: {
|
|
20547
|
+
MOr: "MOr",
|
|
20548
|
+
CDr: "CDr",
|
|
20549
|
+
B1n: "B1n",
|
|
20550
|
+
SPn: "SPn",
|
|
20551
|
+
oTFrom: "initial",
|
|
20552
|
+
oT: "oT",
|
|
20553
|
+
aTFrom: "initial",
|
|
20554
|
+
aT: "aT",
|
|
20555
|
+
Ycr: "Ycr",
|
|
20556
|
+
Nir: "Nir",
|
|
20557
|
+
n0n: "n0n",
|
|
20558
|
+
Y1n: "Y1n",
|
|
20559
|
+
HJt: "HJt"
|
|
20560
|
+
},
|
|
20561
|
+
shared: { Qst: "Qst", FBt: "FBt", PNt: "PNt", Vot: "Vot" }
|
|
20562
|
+
};
|
|
20563
|
+
var NAMED_CHAT_ROLES_26_1027_61615 = {
|
|
20564
|
+
initializeFrom: "primary",
|
|
20565
|
+
initialize: "Qp",
|
|
20566
|
+
startShape: "module",
|
|
20567
|
+
voiceSessionSelector: "etn",
|
|
20568
|
+
reactFactory: "pWt",
|
|
20569
|
+
reactDomFactory: "GFt",
|
|
20570
|
+
prewarmController: "VoiceInstantConnectCacheController",
|
|
20571
|
+
initial: {
|
|
20572
|
+
MOr: "p5n",
|
|
20573
|
+
CDr: "w6n",
|
|
20574
|
+
B1n: "_On",
|
|
20575
|
+
SPn: "etn",
|
|
20576
|
+
oTFrom: "primary",
|
|
20577
|
+
oT: "Qp",
|
|
20578
|
+
aTFrom: "primary",
|
|
20579
|
+
aT: "Zp",
|
|
20580
|
+
Ycr: "ofr",
|
|
20581
|
+
Nir: "yEn",
|
|
20582
|
+
n0n: "FOn",
|
|
20583
|
+
Y1n: "JOn",
|
|
20584
|
+
HJt: "Z6"
|
|
20585
|
+
},
|
|
20586
|
+
shared: { Qst: "klt", FBt: "pWt", PNt: "GFt", Vot: "_ct" }
|
|
20587
|
+
};
|
|
20588
|
+
var NAMED_CHAT_ROLES_26_1027_30824 = {
|
|
20589
|
+
initializeFrom: "primary",
|
|
20590
|
+
initialize: "Yp",
|
|
20591
|
+
startShape: "module",
|
|
20592
|
+
voiceSessionSelector: "Xen",
|
|
20593
|
+
reactFactory: "pWt",
|
|
20594
|
+
reactDomFactory: "GFt",
|
|
20595
|
+
prewarmController: "VoiceInstantConnectCacheController",
|
|
20596
|
+
initial: {
|
|
20597
|
+
MOr: "l5n",
|
|
20598
|
+
CDr: "b6n",
|
|
20599
|
+
B1n: "pOn",
|
|
20600
|
+
SPn: "Xen",
|
|
20601
|
+
oTFrom: "primary",
|
|
20602
|
+
oT: "Yp",
|
|
20603
|
+
aTFrom: "primary",
|
|
20604
|
+
aT: "Jp",
|
|
20605
|
+
Ycr: "nfr",
|
|
20606
|
+
Nir: "hEn",
|
|
20607
|
+
n0n: "jOn",
|
|
20608
|
+
Y1n: "wOn",
|
|
20609
|
+
HJt: "J6"
|
|
20610
|
+
},
|
|
20611
|
+
shared: { Qst: "klt", FBt: "pWt", PNt: "GFt", Vot: "_ct" }
|
|
20612
|
+
};
|
|
20613
|
+
var NAMED_CHAT_ROLES_26_1023_51421 = {
|
|
20614
|
+
initializeFrom: "primary",
|
|
20615
|
+
initialize: "gm",
|
|
20616
|
+
startShape: "module",
|
|
20617
|
+
voiceSessionSelector: "s$t",
|
|
20618
|
+
reactFactory: "OHt",
|
|
20619
|
+
reactDomFactory: "wPt",
|
|
20620
|
+
prewarmController: "VoiceInstantConnectCacheController",
|
|
20621
|
+
initial: {
|
|
20622
|
+
MOr: "x1n",
|
|
20623
|
+
CDr: "MQn",
|
|
20624
|
+
B1n: "Opn",
|
|
20625
|
+
SPn: "s$t",
|
|
20626
|
+
oTFrom: "primary",
|
|
20627
|
+
oT: "gm",
|
|
20628
|
+
aTFrom: "primary",
|
|
20629
|
+
aT: "hm",
|
|
20630
|
+
Ycr: "Zir",
|
|
20631
|
+
Nir: "ejn",
|
|
20632
|
+
n0n: "Kpn",
|
|
20633
|
+
Y1n: "zpn",
|
|
20634
|
+
HJt: "k3"
|
|
20635
|
+
},
|
|
20636
|
+
shared: { Qst: "uct", FBt: "OHt", PNt: "wPt", Vot: "ast" }
|
|
20637
|
+
};
|
|
20638
|
+
var NAMED_CHAT_ROLES_26_1021_31345 = {
|
|
20639
|
+
initializeFrom: "primary",
|
|
20640
|
+
initialize: "um",
|
|
20641
|
+
startShape: "entityBusiness",
|
|
20642
|
+
startT: "r",
|
|
20643
|
+
startN: "i",
|
|
20644
|
+
voiceSessionSelector: "qXt",
|
|
20645
|
+
reactFactory: "XVt",
|
|
20646
|
+
reactDomFactory: "KNt",
|
|
20647
|
+
prewarmController: "VoiceInstantConnectCacheController",
|
|
20648
|
+
initial: {
|
|
20649
|
+
MOr: "CQn",
|
|
20650
|
+
CDr: "PXn",
|
|
20651
|
+
B1n: "tdn",
|
|
20652
|
+
SPn: "qXt",
|
|
20653
|
+
oTFrom: "primary",
|
|
20654
|
+
oT: "um",
|
|
20655
|
+
aTFrom: "primary",
|
|
20656
|
+
aT: "lm",
|
|
20657
|
+
Ycr: "Xkn",
|
|
20658
|
+
Nir: "yAn",
|
|
20659
|
+
n0n: "ydn",
|
|
20660
|
+
Y1n: "fdn",
|
|
20661
|
+
HJt: "R2"
|
|
20662
|
+
},
|
|
20663
|
+
shared: { Qst: "Bst", FBt: "XVt", PNt: "KNt", Vot: "Fot" }
|
|
20664
|
+
};
|
|
20665
|
+
var NATIVE_CHAT_VOICE_ASSETS = [
|
|
20666
|
+
{
|
|
20667
|
+
platform: "darwin",
|
|
20668
|
+
version: NATIVE_CHAT_VOICE_VERSION,
|
|
20669
|
+
initial: NATIVE_CHAT_INITIAL_ASSET,
|
|
20670
|
+
shared: "app-shared-601019a330d7.js",
|
|
20671
|
+
primary: "app-primary-75d53eef2374.js",
|
|
20672
|
+
start: START_ASSET,
|
|
20673
|
+
prewarm: "voice-prewarm-a7cd5160219e.js",
|
|
20674
|
+
settings: "voice-settings-320cf1212f2c.js",
|
|
20675
|
+
roles: NAMED_CHAT_ROLES_26_1027_61615
|
|
20676
|
+
},
|
|
20677
|
+
{
|
|
20678
|
+
platform: "darwin",
|
|
20679
|
+
version: "26.1027.30824",
|
|
20680
|
+
initial: "app-initial-60f141238751.js",
|
|
20681
|
+
shared: "app-shared-7815d5a1a42a.js",
|
|
20682
|
+
primary: "app-primary-95a0e6d83f1e.js",
|
|
20683
|
+
start: "start-voice-4c77215aa289.js",
|
|
20684
|
+
prewarm: "voice-prewarm-e49220ad61bd.js",
|
|
20685
|
+
roles: NAMED_CHAT_ROLES_26_1027_30824
|
|
20686
|
+
},
|
|
20687
|
+
{
|
|
20688
|
+
platform: "darwin",
|
|
20689
|
+
version: "26.1023.51421",
|
|
20690
|
+
initial: "app-initial-bc8256c3cccb.js",
|
|
20691
|
+
shared: "app-shared-e9f258fd3588.js",
|
|
20692
|
+
primary: "app-primary-b7f335b763ca.js",
|
|
20693
|
+
start: "start-voice-a0564cefdc95.js",
|
|
20694
|
+
prewarm: "voice-prewarm-53aefded152c.js",
|
|
20695
|
+
settings: "voice-settings-1a9f68eb7ae8.js",
|
|
20696
|
+
roles: NAMED_CHAT_ROLES_26_1023_51421
|
|
20697
|
+
},
|
|
20698
|
+
{
|
|
20699
|
+
platform: "darwin",
|
|
20700
|
+
version: "26.1021.31345",
|
|
20701
|
+
initial: "app-initial-feb30b196d11.js",
|
|
20702
|
+
shared: "app-shared-2cae01273bae.js",
|
|
20703
|
+
primary: "app-primary-7d7313419f84.js",
|
|
20704
|
+
start: "entity-business-profile-reference-b68063dfc05d.js",
|
|
20705
|
+
prewarm: "voice-prewarm-d672f1245523.js",
|
|
20706
|
+
settings: "voice-settings-14000f5c9fc2.js",
|
|
20707
|
+
roles: NAMED_CHAT_ROLES_26_1021_31345
|
|
20708
|
+
},
|
|
20709
|
+
{
|
|
20710
|
+
platform: "win32",
|
|
20711
|
+
version: "26.1021.31345",
|
|
20712
|
+
initial: "app-initial-438d1df57f70.js",
|
|
20713
|
+
shared: "app-shared-955d52676f9c.js",
|
|
20714
|
+
primary: "app-primary-844e405f2b90.js",
|
|
20715
|
+
start: "entity-business-profile-reference-241c52d811f4.js",
|
|
20716
|
+
prewarm: "voice-prewarm-8b47c50a17ae.js",
|
|
20717
|
+
settings: "voice-settings-b1c1633136a5.js",
|
|
20718
|
+
roles: NAMED_CHAT_ROLES_26_1021_31345
|
|
20719
|
+
},
|
|
20720
|
+
{
|
|
20721
|
+
platform: "darwin",
|
|
20722
|
+
version: "26.1016.62342",
|
|
20723
|
+
initial: "app-initial-dddef47d6ef6.js",
|
|
20724
|
+
shared: "app-shared-fc3316d48427.js",
|
|
20725
|
+
start: "start-voice-7cbf0a39d53b.js",
|
|
20726
|
+
prewarm: "voice-prewarm-5d107129ac1c.js",
|
|
20727
|
+
roles: BASELINE_NAMED_CHAT_ROLES
|
|
20728
|
+
},
|
|
20729
|
+
{
|
|
20730
|
+
platform: "darwin",
|
|
20731
|
+
version: "26.1016.61520",
|
|
20732
|
+
initial: "app-initial-c95ddb62696e.js",
|
|
20733
|
+
shared: "app-shared-2eda13eb7044.js",
|
|
20734
|
+
start: "start-voice-18b08f0acdd7.js",
|
|
20735
|
+
prewarm: "voice-prewarm-94271e581c1b.js",
|
|
20736
|
+
roles: BASELINE_NAMED_CHAT_ROLES
|
|
20737
|
+
}
|
|
20738
|
+
];
|
|
20739
|
+
var CLIENT_OWNED_VOICE_VERSION = "26.1027.61615";
|
|
20740
|
+
var CLIENT_OWNED_VOICE_INITIAL_ASSET = "app-initial-18b189e867e7.js";
|
|
20741
|
+
var CLIENT_OWNED_VOICE_SHARED_ASSET = "app-shared-601019a330d7.js";
|
|
20742
|
+
var CLIENT_OWNED_VOICE_OVERLAY_ASSET = "avatar-overlay-native-page-920d05377bbe.js";
|
|
20743
|
+
var CLIENT_OWNED_VOICE_ASSETS = [
|
|
20744
|
+
{
|
|
20745
|
+
platform: "darwin",
|
|
20746
|
+
version: CLIENT_OWNED_VOICE_VERSION,
|
|
20747
|
+
initial: CLIENT_OWNED_VOICE_INITIAL_ASSET,
|
|
20748
|
+
shared: CLIENT_OWNED_VOICE_SHARED_ASSET,
|
|
20749
|
+
overlay: CLIENT_OWNED_VOICE_OVERLAY_ASSET,
|
|
20750
|
+
init: "Adr",
|
|
20751
|
+
fetch: "Odr",
|
|
20752
|
+
fetchFrom: "initial",
|
|
20753
|
+
bridge: "LRt",
|
|
20754
|
+
services: "Vct",
|
|
20755
|
+
responseError: "Pdr",
|
|
20756
|
+
responseErrorFrom: "initial",
|
|
20757
|
+
capabilityInit: "Ler",
|
|
20758
|
+
capabilityFamily: "Ier",
|
|
20759
|
+
inferenceGateFamily: "Vfr"
|
|
20760
|
+
},
|
|
20761
|
+
{
|
|
20762
|
+
platform: "darwin",
|
|
20763
|
+
version: "26.1027.30824",
|
|
20764
|
+
initial: "app-initial-60f141238751.js",
|
|
20765
|
+
shared: "app-shared-7815d5a1a42a.js",
|
|
20766
|
+
overlay: "avatar-overlay-native-page-d9d400e751cd.js",
|
|
20767
|
+
init: "Edr",
|
|
20768
|
+
fetch: "wdr",
|
|
20769
|
+
fetchFrom: "initial",
|
|
20770
|
+
bridge: "LRt",
|
|
20771
|
+
services: "Vct",
|
|
20772
|
+
responseError: "Adr",
|
|
20773
|
+
responseErrorFrom: "initial",
|
|
20774
|
+
capabilityInit: "Ner",
|
|
20775
|
+
capabilityFamily: "Mer",
|
|
20776
|
+
inferenceGateFamily: "Lfr"
|
|
20777
|
+
},
|
|
20778
|
+
{
|
|
20779
|
+
platform: "darwin",
|
|
20780
|
+
version: "26.1023.51421",
|
|
20781
|
+
initial: "app-initial-bc8256c3cccb.js",
|
|
20782
|
+
shared: "app-shared-e9f258fd3588.js",
|
|
20783
|
+
overlay: "avatar-overlay-native-page-af6c3662f64f.js",
|
|
20784
|
+
init: "xir",
|
|
20785
|
+
fetch: "yir",
|
|
20786
|
+
fetchFrom: "initial",
|
|
20787
|
+
bridge: "QIt",
|
|
20788
|
+
services: "Sst",
|
|
20789
|
+
capabilityInit: "N4n",
|
|
20790
|
+
capabilityFamily: "M4n",
|
|
20791
|
+
inferenceGateFamily: "Par"
|
|
20792
|
+
},
|
|
20793
|
+
{
|
|
20794
|
+
platform: "darwin",
|
|
20795
|
+
version: "26.1021.31345",
|
|
20796
|
+
initial: "app-initial-feb30b196d11.js",
|
|
20797
|
+
shared: "app-shared-2cae01273bae.js",
|
|
20798
|
+
overlay: "avatar-overlay-native-page-d549db3706f1.js",
|
|
20799
|
+
fetch: "Htr",
|
|
20800
|
+
fetchFrom: "initial",
|
|
20801
|
+
bridge: "bIt",
|
|
20802
|
+
services: "Qot",
|
|
20803
|
+
capabilityInit: "l0n",
|
|
20804
|
+
capabilityFamily: "c0n",
|
|
20805
|
+
inferenceGateFamily: "Cnr"
|
|
20806
|
+
},
|
|
20807
|
+
{
|
|
20808
|
+
platform: "win32",
|
|
20809
|
+
version: "26.1021.31345",
|
|
20810
|
+
initial: "app-initial-438d1df57f70.js",
|
|
20811
|
+
shared: "app-shared-955d52676f9c.js",
|
|
20812
|
+
overlay: "avatar-overlay-native-page-1549fe5955e1.js",
|
|
20813
|
+
fetch: "Htr",
|
|
20814
|
+
fetchFrom: "initial",
|
|
20815
|
+
bridge: "bIt",
|
|
20816
|
+
services: "Qot",
|
|
20817
|
+
capabilityInit: "l0n",
|
|
20818
|
+
capabilityFamily: "c0n",
|
|
20819
|
+
inferenceGateFamily: "Cnr"
|
|
20820
|
+
},
|
|
20821
|
+
{
|
|
20822
|
+
platform: "darwin",
|
|
20823
|
+
version: "26.1016.62342",
|
|
20824
|
+
initial: "app-initial-dddef47d6ef6.js",
|
|
20825
|
+
shared: "app-shared-fc3316d48427.js",
|
|
20826
|
+
overlay: "avatar-overlay-native-page-ef8332c6a2fb.js",
|
|
20827
|
+
init: "Oit",
|
|
20828
|
+
fetch: "Eit",
|
|
20829
|
+
bridge: "AFt",
|
|
20830
|
+
responseError: "Mit",
|
|
20831
|
+
services: "ist",
|
|
20832
|
+
capabilityInit: "njr",
|
|
20833
|
+
capabilityFamily: "tjr",
|
|
20834
|
+
inferenceGateFamily: "uBr"
|
|
20835
|
+
},
|
|
20836
|
+
{
|
|
20837
|
+
platform: "darwin",
|
|
20838
|
+
version: "26.1016.61520",
|
|
20839
|
+
initial: "app-initial-c95ddb62696e.js",
|
|
20840
|
+
shared: "app-shared-2eda13eb7044.js",
|
|
20841
|
+
overlay: "avatar-overlay-native-page-fcc17283519a.js",
|
|
20842
|
+
init: "Oit",
|
|
20843
|
+
fetch: "Eit",
|
|
20844
|
+
bridge: "AFt",
|
|
20845
|
+
responseError: "Mit",
|
|
20846
|
+
services: "ist",
|
|
20847
|
+
capabilityInit: "njr",
|
|
20848
|
+
capabilityFamily: "tjr",
|
|
20849
|
+
inferenceGateFamily: "uBr"
|
|
20850
|
+
}
|
|
20851
|
+
];
|
|
20852
|
+
var HISTORICAL_CPA_LIVE_VOICE_DESKTOP_VERSION = "26.1007.30912";
|
|
20853
|
+
var HISTORICAL_CPA_LIVE_VOICE_APP_INITIAL_ASSET = "app-initial-6350d04672d0.js";
|
|
20854
|
+
var HASHED_WEBPACK_VOICE_VERSION = "26.1106.51428";
|
|
20855
|
+
var HASHED_WEBPACK_VOICE_RUNTIME_ASSET = "348410.1a97dde15f.js";
|
|
20856
|
+
var HASHED_NATIVE_CHAT_START_ASSET = "530142.1e51e7f4b2.js";
|
|
20857
|
+
var HASHED_NATIVE_CHAT_PREWARM_ASSET = "586788.c871bb9b7d.js";
|
|
20858
|
+
var NATIVE_CHAT_VOICE_CHUNKS = [
|
|
20859
|
+
157963,
|
|
20860
|
+
74692,
|
|
20861
|
+
198336,
|
|
20862
|
+
543449,
|
|
20863
|
+
904485,
|
|
20864
|
+
459859,
|
|
20865
|
+
822019,
|
|
20866
|
+
431137,
|
|
20867
|
+
108823,
|
|
20868
|
+
208490,
|
|
20869
|
+
384218,
|
|
20870
|
+
843292,
|
|
20871
|
+
652289,
|
|
20872
|
+
907652,
|
|
20873
|
+
796195,
|
|
20874
|
+
144338,
|
|
20875
|
+
140959,
|
|
20876
|
+
587936,
|
|
20877
|
+
904817,
|
|
20878
|
+
426774,
|
|
20879
|
+
452048,
|
|
20880
|
+
490954,
|
|
20881
|
+
445991,
|
|
20882
|
+
612928,
|
|
20883
|
+
42903,
|
|
20884
|
+
363341,
|
|
20885
|
+
997826,
|
|
20886
|
+
223736,
|
|
20887
|
+
21878,
|
|
20888
|
+
89655,
|
|
20889
|
+
333490,
|
|
20890
|
+
422391,
|
|
20891
|
+
792483,
|
|
20892
|
+
530142
|
|
20893
|
+
];
|
|
20894
|
+
var HASHED_NATIVE_CHAT_ROLES = {
|
|
20895
|
+
startModuleId: "j9r7",
|
|
20896
|
+
prewarmModuleId: "oWM3",
|
|
20897
|
+
appScopeModuleId: "OWtl",
|
|
20898
|
+
appScopeExport: "u",
|
|
20899
|
+
routeScopeModuleId: "Oj9r",
|
|
20900
|
+
routeScopeExport: "GD",
|
|
20901
|
+
composerScopeModuleId: "Sd8U",
|
|
20902
|
+
composerScopeExport: "PR",
|
|
20903
|
+
storeModuleId: "bgok",
|
|
20904
|
+
storeExport: "MH",
|
|
20905
|
+
runtimeModuleId: "cY1t",
|
|
20906
|
+
runtimeEnableExport: "Iy",
|
|
20907
|
+
runtimeLoaderExport: "Re",
|
|
20908
|
+
reactModuleId: "zd8w",
|
|
20909
|
+
reactDomModuleId: "CE87",
|
|
20910
|
+
startInitializeExport: "initializeVoiceSession",
|
|
20911
|
+
prewarmControllerExport: "VoiceInstantConnectCacheController",
|
|
20912
|
+
/** Conversation store: adopted backend ID, transcript mapping, current node. */
|
|
20913
|
+
conversationModuleId: "MrGp",
|
|
20914
|
+
backendConversationExport: "jS",
|
|
20915
|
+
transcriptMappingExport: "Jv",
|
|
20916
|
+
currentNodeExport: "Od",
|
|
20917
|
+
/** App location atom used as the draft-selection origin. */
|
|
20918
|
+
locationModuleId: "nlNF",
|
|
20919
|
+
locationExport: "x2",
|
|
20920
|
+
/** AppNavigation.navigate(scope, location). */
|
|
20921
|
+
navigationModuleId: "E8Sp",
|
|
20922
|
+
navigationExport: "oo",
|
|
20923
|
+
/** `/c/:conversationId` builder; not a GPT `/g/` path. */
|
|
20924
|
+
conversationPathModuleId: "jAnS",
|
|
20925
|
+
conversationPathExport: "mv"
|
|
20926
|
+
};
|
|
20927
|
+
var HASHED_OVERLAY_VOICE_ROLES = {
|
|
20928
|
+
fetchFactoryId: "GDNt",
|
|
20929
|
+
fetchExport: "_n",
|
|
20930
|
+
bridgeModuleId: "TL6G",
|
|
20931
|
+
bridgeExport: "O1",
|
|
20932
|
+
responseErrorModuleId: "eShZ",
|
|
20933
|
+
responseErrorExport: "s1",
|
|
20934
|
+
capabilityModuleId: "ChYf",
|
|
20935
|
+
capabilityExport: "G",
|
|
20936
|
+
inferenceGateModuleId: "OMIV",
|
|
20937
|
+
inferenceGateExport: "JW",
|
|
20938
|
+
/** Workspace voice access derived atom `P` via `zTeN.un`; Instant Connect ANDs `Y3.status`. */
|
|
20939
|
+
voiceAccessModuleId: "eFn4",
|
|
20940
|
+
voiceAccessExport: "Y3"
|
|
20941
|
+
};
|
|
20942
|
+
function hashedVoiceCandidateOwner(config2) {
|
|
20943
|
+
return config2.desktopVersion === HASHED_WEBPACK_VOICE_VERSION && (config2.desktopPlatform === "darwin" || config2.desktopPlatform === "win32");
|
|
20944
|
+
}
|
|
20945
|
+
function hashedVoiceProfileSupported(config2) {
|
|
20946
|
+
return config2.desktopVersion === HASHED_WEBPACK_VOICE_VERSION && config2.desktopPlatform === "darwin";
|
|
20947
|
+
}
|
|
20948
|
+
function reviewedOverlayHookDesktopVersions() {
|
|
20949
|
+
const versions = /* @__PURE__ */ new Set([
|
|
20950
|
+
HISTORICAL_CPA_LIVE_VOICE_DESKTOP_VERSION,
|
|
20951
|
+
HASHED_WEBPACK_VOICE_VERSION
|
|
20952
|
+
]);
|
|
20953
|
+
for (const profile of NATIVE_CHAT_VOICE_ASSETS) versions.add(profile.version);
|
|
20954
|
+
for (const profile of CLIENT_OWNED_VOICE_ASSETS) versions.add(profile.version);
|
|
20955
|
+
return [...versions].sort();
|
|
20956
|
+
}
|
|
20957
|
+
var VOICE_PROFILE_PINS = {
|
|
20958
|
+
workVersion: CLIENT_OWNED_VOICE_VERSION,
|
|
20959
|
+
workInitial: CLIENT_OWNED_VOICE_INITIAL_ASSET,
|
|
20960
|
+
workShared: CLIENT_OWNED_VOICE_SHARED_ASSET,
|
|
20961
|
+
overlayAsset: CLIENT_OWNED_VOICE_OVERLAY_ASSET,
|
|
20962
|
+
chatVersion: NATIVE_CHAT_VOICE_VERSION,
|
|
20963
|
+
chatInitial: NATIVE_CHAT_INITIAL_ASSET,
|
|
20964
|
+
chatStart: START_ASSET,
|
|
20965
|
+
hashedVersion: HASHED_WEBPACK_VOICE_VERSION,
|
|
20966
|
+
hashedRuntimeAsset: HASHED_WEBPACK_VOICE_RUNTIME_ASSET,
|
|
20967
|
+
hashedStartAsset: HASHED_NATIVE_CHAT_START_ASSET,
|
|
20968
|
+
hashedPrewarmAsset: HASHED_NATIVE_CHAT_PREWARM_ASSET,
|
|
20969
|
+
historicalCpaVersion: HISTORICAL_CPA_LIVE_VOICE_DESKTOP_VERSION,
|
|
20970
|
+
historicalCpaInitial: HISTORICAL_CPA_LIVE_VOICE_APP_INITIAL_ASSET
|
|
20971
|
+
};
|
|
20972
|
+
var voiceProfilePins = {
|
|
20973
|
+
...VOICE_PROFILE_PINS,
|
|
20974
|
+
overlayHookDesktopVersions: reviewedOverlayHookDesktopVersions()
|
|
20975
|
+
};
|
|
20976
|
+
function nativeChatVoiceKind(config2) {
|
|
20977
|
+
if (!config2.desktopVersion) return void 0;
|
|
20978
|
+
if (hashedVoiceProfileSupported(config2)) return "hashed";
|
|
20979
|
+
if (NATIVE_CHAT_VOICE_ASSETS.some(
|
|
20980
|
+
(profile) => profile.version === config2.desktopVersion && (config2.desktopPlatform === void 0 || profile.platform === config2.desktopPlatform)
|
|
20981
|
+
)) {
|
|
20982
|
+
return "named";
|
|
20983
|
+
}
|
|
20984
|
+
return void 0;
|
|
20985
|
+
}
|
|
20986
|
+
function nativeChatVoiceUnavailableReason(config2) {
|
|
20987
|
+
if (nativeChatVoiceKind(config2)) return void 0;
|
|
20988
|
+
if (!config2.desktopVersion) return "Chat voice is waiting for Desktop identity.";
|
|
20989
|
+
if (config2.desktopVersion === HASHED_WEBPACK_VOICE_VERSION && config2.desktopPlatform === "win32") {
|
|
20990
|
+
return "Chat voice is not qualified on this Windows Desktop.";
|
|
20991
|
+
}
|
|
20992
|
+
return "Chat voice is not qualified on this Desktop.";
|
|
20993
|
+
}
|
|
20994
|
+
function workVoiceUnavailableReason(config2) {
|
|
20995
|
+
if (hashedVoiceProfileSupported(config2)) return void 0;
|
|
20996
|
+
if (config2.desktopVersion !== void 0 && CLIENT_OWNED_VOICE_ASSETS.some(
|
|
20997
|
+
(profile) => profile.version === config2.desktopVersion && (config2.desktopPlatform === void 0 || profile.platform === config2.desktopPlatform)
|
|
20998
|
+
)) {
|
|
20999
|
+
return void 0;
|
|
21000
|
+
}
|
|
21001
|
+
if (!config2.desktopVersion) return "Work voice is waiting for Desktop identity.";
|
|
21002
|
+
if (config2.desktopVersion === HASHED_WEBPACK_VOICE_VERSION && config2.desktopPlatform === "win32") {
|
|
21003
|
+
return "Work voice is not qualified on this Windows Desktop.";
|
|
21004
|
+
}
|
|
21005
|
+
return "Work voice is not qualified on this Desktop.";
|
|
21006
|
+
}
|
|
21007
|
+
function profileIdentityKey(product, platform, version2) {
|
|
21008
|
+
return `${product}:${platform ?? "unknown"}:${version2 ?? "unknown"}`;
|
|
21009
|
+
}
|
|
21010
|
+
function fnv1aHex(value) {
|
|
21011
|
+
let hash2 = 0xcbf29ce484222325n;
|
|
21012
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
21013
|
+
hash2 ^= BigInt(value.charCodeAt(index));
|
|
21014
|
+
hash2 = hash2 * 0x100000001b3n & 0xffffffffffffffffn;
|
|
21015
|
+
}
|
|
21016
|
+
return hash2.toString(16).padStart(16, "0");
|
|
21017
|
+
}
|
|
21018
|
+
function digestJson(value) {
|
|
21019
|
+
return fnv1aHex(JSON.stringify(value));
|
|
21020
|
+
}
|
|
21021
|
+
function legacyRetainedVoiceLanes() {
|
|
21022
|
+
return [
|
|
21023
|
+
...NATIVE_CHAT_VOICE_ASSETS.map((profile) => ({
|
|
21024
|
+
path: "chat",
|
|
21025
|
+
platform: profile.platform,
|
|
21026
|
+
version: profile.version
|
|
21027
|
+
})),
|
|
21028
|
+
...CLIENT_OWNED_VOICE_ASSETS.map((profile) => ({
|
|
21029
|
+
path: "work-codex",
|
|
21030
|
+
platform: profile.platform,
|
|
21031
|
+
version: profile.version
|
|
21032
|
+
}))
|
|
21033
|
+
];
|
|
21034
|
+
}
|
|
21035
|
+
function voiceProfileOwner(product, platform, version2) {
|
|
21036
|
+
if (product === "chat") {
|
|
21037
|
+
if (hashedVoiceCandidateOwner({ desktopVersion: version2, desktopPlatform: platform })) {
|
|
21038
|
+
return {
|
|
21039
|
+
kind: "hashed-chat",
|
|
21040
|
+
platform,
|
|
21041
|
+
version: version2,
|
|
21042
|
+
roles: HASHED_NATIVE_CHAT_ROLES,
|
|
21043
|
+
chunks: [...NATIVE_CHAT_VOICE_CHUNKS],
|
|
21044
|
+
webpack: HASHED_WEBPACK_VOICE_RUNTIME_ASSET,
|
|
21045
|
+
start: HASHED_NATIVE_CHAT_START_ASSET,
|
|
21046
|
+
prewarm: HASHED_NATIVE_CHAT_PREWARM_ASSET
|
|
21047
|
+
};
|
|
21048
|
+
}
|
|
21049
|
+
const named = NATIVE_CHAT_VOICE_ASSETS.find(
|
|
21050
|
+
(profile) => profile.platform === platform && profile.version === version2
|
|
21051
|
+
);
|
|
21052
|
+
if (!named) return void 0;
|
|
21053
|
+
return {
|
|
21054
|
+
kind: "named-chat",
|
|
21055
|
+
platform: named.platform,
|
|
21056
|
+
version: named.version,
|
|
21057
|
+
initial: named.initial,
|
|
21058
|
+
shared: named.shared,
|
|
21059
|
+
primary: named.primary ?? null,
|
|
21060
|
+
start: named.start,
|
|
21061
|
+
prewarm: named.prewarm,
|
|
21062
|
+
settings: named.settings ?? null,
|
|
21063
|
+
roles: named.roles
|
|
21064
|
+
};
|
|
21065
|
+
}
|
|
21066
|
+
const namedWork = CLIENT_OWNED_VOICE_ASSETS.find(
|
|
21067
|
+
(profile) => profile.platform === platform && profile.version === version2
|
|
21068
|
+
);
|
|
21069
|
+
if (namedWork) {
|
|
21070
|
+
return {
|
|
21071
|
+
kind: "named-work",
|
|
21072
|
+
platform: namedWork.platform,
|
|
21073
|
+
version: namedWork.version,
|
|
21074
|
+
initial: namedWork.initial,
|
|
21075
|
+
shared: namedWork.shared,
|
|
21076
|
+
overlay: namedWork.overlay,
|
|
21077
|
+
init: namedWork.init ?? null,
|
|
21078
|
+
fetch: namedWork.fetch,
|
|
21079
|
+
fetchFrom: namedWork.fetchFrom ?? null,
|
|
21080
|
+
bridge: namedWork.bridge,
|
|
21081
|
+
services: namedWork.services,
|
|
21082
|
+
responseError: namedWork.responseError ?? null,
|
|
21083
|
+
responseErrorFrom: namedWork.responseErrorFrom ?? null,
|
|
21084
|
+
capabilityInit: namedWork.capabilityInit,
|
|
21085
|
+
capabilityFamily: namedWork.capabilityFamily,
|
|
21086
|
+
inferenceGateFamily: namedWork.inferenceGateFamily
|
|
21087
|
+
};
|
|
21088
|
+
}
|
|
21089
|
+
if (hashedVoiceCandidateOwner({ desktopVersion: version2, desktopPlatform: platform })) {
|
|
21090
|
+
return {
|
|
21091
|
+
kind: "hashed-work",
|
|
21092
|
+
platform,
|
|
21093
|
+
version: version2,
|
|
21094
|
+
overlay: HASHED_OVERLAY_VOICE_ROLES,
|
|
21095
|
+
webpack: HASHED_WEBPACK_VOICE_RUNTIME_ASSET
|
|
21096
|
+
};
|
|
21097
|
+
}
|
|
21098
|
+
return void 0;
|
|
21099
|
+
}
|
|
21100
|
+
function voiceProfileDigest(product, platform, version2) {
|
|
21101
|
+
const owner = voiceProfileOwner(product, platform, version2);
|
|
21102
|
+
return owner ? digestJson(owner) : void 0;
|
|
21103
|
+
}
|
|
21104
|
+
function voiceImplementationRevision() {
|
|
21105
|
+
return VOICE_IMPLEMENTATION_REVISION;
|
|
21106
|
+
}
|
|
21107
|
+
|
|
21108
|
+
// src/renderer-voice-evidence.ts
|
|
21109
|
+
var VOICE_EVIDENCE_STAGES = [
|
|
21110
|
+
"structural",
|
|
21111
|
+
"activation",
|
|
21112
|
+
"connection",
|
|
21113
|
+
"identity",
|
|
21114
|
+
"speech",
|
|
21115
|
+
"cleanup"
|
|
21116
|
+
];
|
|
21117
|
+
var REQUIRED_STAGES = VOICE_EVIDENCE_STAGES;
|
|
21118
|
+
function recordObject(value) {
|
|
21119
|
+
return value !== null && typeof value === "object";
|
|
21120
|
+
}
|
|
21121
|
+
function missingStages(record3) {
|
|
21122
|
+
return REQUIRED_STAGES.filter((stage) => record3.stages[stage] !== true);
|
|
21123
|
+
}
|
|
21124
|
+
function productForPath(path) {
|
|
21125
|
+
return path === "chat" ? "chat" : "work";
|
|
21126
|
+
}
|
|
21127
|
+
function evaluateVoiceEvidence(record3) {
|
|
21128
|
+
const expectedKey = profileIdentityKey(
|
|
21129
|
+
productForPath(record3.path),
|
|
21130
|
+
record3.platform,
|
|
21131
|
+
record3.desktopVersion
|
|
21132
|
+
);
|
|
21133
|
+
if (record3.profileKey !== expectedKey) {
|
|
21134
|
+
return {
|
|
21135
|
+
outcome: "mismatch",
|
|
21136
|
+
qualified: false,
|
|
21137
|
+
missing: missingStages(record3),
|
|
21138
|
+
reason: "evidence-profile-mismatch"
|
|
21139
|
+
};
|
|
21140
|
+
}
|
|
21141
|
+
if (typeof record3.implementationRevision !== "string" || record3.implementationRevision === "") {
|
|
21142
|
+
return {
|
|
21143
|
+
outcome: "mismatch",
|
|
21144
|
+
qualified: false,
|
|
21145
|
+
missing: missingStages(record3),
|
|
21146
|
+
reason: "missing-implementation-revision"
|
|
21147
|
+
};
|
|
21148
|
+
}
|
|
21149
|
+
if (record3.policy !== "legacy-retained" && record3.implementationRevision !== voiceImplementationRevision()) {
|
|
21150
|
+
return {
|
|
21151
|
+
outcome: "mismatch",
|
|
21152
|
+
qualified: false,
|
|
21153
|
+
missing: missingStages(record3),
|
|
21154
|
+
reason: "implementation-revision-mismatch"
|
|
21155
|
+
};
|
|
21156
|
+
}
|
|
21157
|
+
if (record3.policy !== "legacy-retained") {
|
|
21158
|
+
if (typeof record3.desktopBuild !== "string" || record3.desktopBuild === "" || typeof record3.asarDigest !== "string" || record3.asarDigest === "") {
|
|
21159
|
+
return {
|
|
21160
|
+
outcome: "mismatch",
|
|
21161
|
+
qualified: false,
|
|
21162
|
+
missing: missingStages(record3),
|
|
21163
|
+
reason: "missing-native-identity"
|
|
21164
|
+
};
|
|
21165
|
+
}
|
|
21166
|
+
}
|
|
21167
|
+
if (typeof record3.profileDigest !== "string" || record3.profileDigest === "") {
|
|
21168
|
+
return {
|
|
21169
|
+
outcome: "mismatch",
|
|
21170
|
+
qualified: false,
|
|
21171
|
+
missing: missingStages(record3),
|
|
21172
|
+
reason: "missing-profile-digest"
|
|
21173
|
+
};
|
|
21174
|
+
}
|
|
21175
|
+
const expectedDigest = voiceProfileDigest(
|
|
21176
|
+
productForPath(record3.path),
|
|
21177
|
+
record3.platform,
|
|
21178
|
+
record3.desktopVersion
|
|
21179
|
+
);
|
|
21180
|
+
if (!expectedDigest || record3.profileDigest !== expectedDigest) {
|
|
21181
|
+
return {
|
|
21182
|
+
outcome: "mismatch",
|
|
21183
|
+
qualified: false,
|
|
21184
|
+
missing: missingStages(record3),
|
|
21185
|
+
reason: "stale-profile-digest"
|
|
21186
|
+
};
|
|
21187
|
+
}
|
|
21188
|
+
if (record3.startAcknowledged === true && record3.connected !== true) {
|
|
21189
|
+
return {
|
|
21190
|
+
outcome: "incomplete",
|
|
21191
|
+
qualified: false,
|
|
21192
|
+
missing: missingStages(record3).length > 0 ? missingStages(record3) : ["connection"],
|
|
21193
|
+
reason: "start-acknowledged-without-connection"
|
|
21194
|
+
};
|
|
21195
|
+
}
|
|
21196
|
+
if (record3.path !== "chat" && record3.gatewayOwned !== true && record3.stages.connection === true) {
|
|
21197
|
+
return {
|
|
21198
|
+
outcome: "incomplete",
|
|
21199
|
+
qualified: false,
|
|
21200
|
+
missing: missingStages(record3).length > 0 ? missingStages(record3) : ["connection"],
|
|
21201
|
+
reason: "route-only-without-connected-gateway"
|
|
21202
|
+
};
|
|
21203
|
+
}
|
|
21204
|
+
if (record3.speech?.attended === true && (!record3.speech.witness || !record3.speech.run)) {
|
|
21205
|
+
return {
|
|
21206
|
+
outcome: "incomplete",
|
|
21207
|
+
qualified: false,
|
|
21208
|
+
missing: missingStages(record3).includes("speech") ? missingStages(record3) : ["speech"],
|
|
21209
|
+
reason: "attended-speech-missing-provenance"
|
|
21210
|
+
};
|
|
21211
|
+
}
|
|
21212
|
+
if (record3.speech && record3.speech.attended !== true) {
|
|
21213
|
+
return {
|
|
21214
|
+
outcome: "incomplete",
|
|
21215
|
+
qualified: false,
|
|
21216
|
+
missing: missingStages(record3),
|
|
21217
|
+
reason: "synthetic-speech-is-not-qualification"
|
|
21218
|
+
};
|
|
21219
|
+
}
|
|
21220
|
+
const missing = missingStages(record3);
|
|
21221
|
+
if (missing.length > 0) {
|
|
21222
|
+
return {
|
|
21223
|
+
outcome: "incomplete",
|
|
21224
|
+
qualified: false,
|
|
21225
|
+
missing,
|
|
21226
|
+
reason: `missing:${missing.join(",")}`
|
|
21227
|
+
};
|
|
21228
|
+
}
|
|
21229
|
+
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) {
|
|
21230
|
+
return {
|
|
21231
|
+
outcome: "fail",
|
|
21232
|
+
qualified: false,
|
|
21233
|
+
missing: [],
|
|
21234
|
+
reason: "required-assertions-failed"
|
|
21235
|
+
};
|
|
21236
|
+
}
|
|
21237
|
+
return { outcome: "pass", qualified: true, missing: [], reason: "qualified" };
|
|
21238
|
+
}
|
|
21239
|
+
function evidenceMatchesRuntime(record3, config2) {
|
|
21240
|
+
if (record3.platform !== config2.desktopPlatform) return false;
|
|
21241
|
+
if (record3.desktopVersion !== config2.desktopVersion) return false;
|
|
21242
|
+
if (record3.implementationRevision !== config2.implementationRevision) return false;
|
|
21243
|
+
if (record3.policy === "legacy-retained") return true;
|
|
21244
|
+
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 === "") {
|
|
21245
|
+
return false;
|
|
21246
|
+
}
|
|
21247
|
+
return record3.desktopBuild === config2.desktopBuild && record3.asarDigest === config2.asarDigest;
|
|
21248
|
+
}
|
|
21249
|
+
function isolatedQualificationMatches(path, config2) {
|
|
21250
|
+
const isolated = config2.isolatedQualification;
|
|
21251
|
+
if (!isIsolatedVoiceQualification(isolated)) return false;
|
|
21252
|
+
if (!isolatedQualificationPaths(isolated).includes(path)) return false;
|
|
21253
|
+
if (isProductionDesktopAppPath(isolated.appPath) || isProductionDesktopAppPath(config2.desktopAppPath))
|
|
21254
|
+
return false;
|
|
21255
|
+
if (isolated.desktopPlatform !== config2.desktopPlatform) return false;
|
|
21256
|
+
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 !== "";
|
|
21257
|
+
}
|
|
21258
|
+
function unsupportedReason(path, config2) {
|
|
21259
|
+
if (path === "chat") {
|
|
21260
|
+
return nativeChatVoiceUnavailableReason(config2) ?? "Chat voice is not qualified on this Desktop.";
|
|
21261
|
+
}
|
|
21262
|
+
return workVoiceUnavailableReason(config2) ?? "Work voice is not qualified on this Desktop.";
|
|
21263
|
+
}
|
|
21264
|
+
function decidePath(path, config2, records) {
|
|
21265
|
+
if (!config2.desktopVersion || !config2.desktopPlatform) {
|
|
21266
|
+
return { enabled: false, policy: "unreviewed", reason: "waiting-for-identity" };
|
|
21267
|
+
}
|
|
21268
|
+
const pathRecords = records.filter((record3) => record3.path === path);
|
|
21269
|
+
if (pathRecords.length > 0) {
|
|
21270
|
+
const matching = pathRecords.filter((record4) => evidenceMatchesRuntime(record4, config2));
|
|
21271
|
+
if (matching.length === 0) {
|
|
21272
|
+
return { enabled: false, policy: "unreviewed", reason: "stale-or-wrong-platform-evidence" };
|
|
21273
|
+
}
|
|
21274
|
+
for (const record4 of matching) {
|
|
21275
|
+
const evaluation = evaluateVoiceEvidence(record4);
|
|
21276
|
+
if (!evaluation.qualified) {
|
|
21277
|
+
return { enabled: false, policy: "unreviewed", reason: evaluation.reason };
|
|
21278
|
+
}
|
|
21279
|
+
}
|
|
21280
|
+
const record3 = matching[0];
|
|
21281
|
+
if (!record3) {
|
|
21282
|
+
return { enabled: false, policy: "unreviewed", reason: "missing-evidence" };
|
|
21283
|
+
}
|
|
21284
|
+
if (hashedVoiceCandidateOwner(config2) && !hashedVoiceProfileSupported(config2)) {
|
|
21285
|
+
} else {
|
|
21286
|
+
return {
|
|
21287
|
+
enabled: true,
|
|
21288
|
+
policy: record3.policy === "legacy-retained" ? "legacy-retained" : "reviewed"
|
|
21289
|
+
};
|
|
21290
|
+
}
|
|
21291
|
+
}
|
|
21292
|
+
const digest = voiceProfileDigest(
|
|
21293
|
+
productForPath(path),
|
|
21294
|
+
config2.desktopPlatform,
|
|
21295
|
+
config2.desktopVersion
|
|
21296
|
+
);
|
|
21297
|
+
if (!digest) {
|
|
21298
|
+
return { enabled: false, policy: "unreviewed", reason: unsupportedReason(path, config2) };
|
|
21299
|
+
}
|
|
21300
|
+
const legacy = legacyRetainedVoiceLanes().find(
|
|
21301
|
+
(lane) => lane.path === path && lane.platform === config2.desktopPlatform && lane.version === config2.desktopVersion
|
|
21302
|
+
);
|
|
21303
|
+
if (legacy) {
|
|
21304
|
+
return {
|
|
21305
|
+
enabled: true,
|
|
21306
|
+
policy: "legacy-retained",
|
|
21307
|
+
reason: "legacy-retained-named-profile"
|
|
21308
|
+
};
|
|
21309
|
+
}
|
|
21310
|
+
if (isolatedQualificationMatches(path, config2)) {
|
|
21311
|
+
return {
|
|
21312
|
+
enabled: true,
|
|
21313
|
+
policy: "unreviewed",
|
|
21314
|
+
reason: "isolated-qualification"
|
|
21315
|
+
};
|
|
21316
|
+
}
|
|
21317
|
+
return { enabled: false, policy: "unreviewed", reason: "missing-evidence" };
|
|
21318
|
+
}
|
|
21319
|
+
function isVoiceEvidenceRecord(value) {
|
|
21320
|
+
if (!recordObject(value)) return false;
|
|
21321
|
+
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);
|
|
21322
|
+
}
|
|
21323
|
+
function voiceEvidenceRecordsFromConfig(config2) {
|
|
21324
|
+
return (config2.voiceEvidence ?? []).filter(isVoiceEvidenceRecord);
|
|
21325
|
+
}
|
|
21326
|
+
function startupVoiceGate(config2) {
|
|
21327
|
+
const records = [
|
|
21328
|
+
...voiceEvidenceRecordsFromConfig(config2),
|
|
21329
|
+
...config2.evidence && isVoiceEvidenceRecord(config2.evidence) ? [config2.evidence] : []
|
|
21330
|
+
];
|
|
21331
|
+
const chat = decidePath("chat", config2, records);
|
|
21332
|
+
const workCodex = decidePath("work-codex", config2, records);
|
|
21333
|
+
const workGrok = decidePath("work-grok", config2, records);
|
|
21334
|
+
return {
|
|
21335
|
+
chat,
|
|
21336
|
+
"work-codex": workCodex,
|
|
21337
|
+
"work-grok": workGrok,
|
|
21338
|
+
work: workCodex
|
|
21339
|
+
};
|
|
21340
|
+
}
|
|
21341
|
+
function chatVoiceQualified(config2) {
|
|
21342
|
+
return startupVoiceGate(config2).chat.enabled;
|
|
21343
|
+
}
|
|
21344
|
+
function workVoiceLaneEnabled(owner, path) {
|
|
21345
|
+
return workVoicePathDecision(owner, path).enabled;
|
|
21346
|
+
}
|
|
21347
|
+
function workVoicePathDecision(owner, path) {
|
|
21348
|
+
const config2 = readCpaLiveVoiceHookConfig(owner);
|
|
21349
|
+
if (!config2) {
|
|
21350
|
+
return {
|
|
21351
|
+
enabled: false,
|
|
21352
|
+
policy: "unreviewed",
|
|
21353
|
+
reason: workVoiceUnavailableReason({}) ?? "Work voice is not qualified on this Desktop."
|
|
21354
|
+
};
|
|
21355
|
+
}
|
|
21356
|
+
return startupVoiceGate(config2)[path];
|
|
21357
|
+
}
|
|
21358
|
+
function chatVoiceQualifiedOnOwner(owner) {
|
|
21359
|
+
const config2 = readCpaLiveVoiceHookConfig(owner);
|
|
21360
|
+
return config2 ? chatVoiceQualified(config2) : false;
|
|
21361
|
+
}
|
|
21362
|
+
|
|
21363
|
+
// src/settings/voice-status.ts
|
|
21364
|
+
function chatLabel(settings) {
|
|
21365
|
+
if (settings.chatExperience === "chatgpt") return "ChatGPT Chat";
|
|
21366
|
+
return settings.chatConnection === "gateway" ? "Codex Chat gateway" : "Codex Chat Desktop default";
|
|
21367
|
+
}
|
|
21368
|
+
function workLabel(settings) {
|
|
21369
|
+
return settings.workConnection === "gateway" ? "Work gateway" : "Work Desktop default";
|
|
21370
|
+
}
|
|
21371
|
+
function voiceSettingsEffectiveStatus(owner, settings) {
|
|
21372
|
+
const chatDesktopDefault = settings.chatExperience === "codex" && settings.chatConnection === "desktop";
|
|
21373
|
+
const workDesktopDefault = settings.workConnection === "desktop";
|
|
21374
|
+
const chatAvailable = chatDesktopDefault ? true : chatVoiceQualifiedOnOwner(owner);
|
|
21375
|
+
const workAvailable = workDesktopDefault ? true : workVoiceLaneEnabled(owner, "work-codex");
|
|
21376
|
+
return {
|
|
21377
|
+
chatAvailable,
|
|
21378
|
+
workAvailable,
|
|
21379
|
+
chatDesktopDefault,
|
|
21380
|
+
workDesktopDefault,
|
|
21381
|
+
chatLabel: chatLabel(settings),
|
|
21382
|
+
workLabel: workLabel(settings)
|
|
21383
|
+
};
|
|
21384
|
+
}
|
|
21385
|
+
function voiceSettingsEffectiveStatusKey(owner, settings) {
|
|
21386
|
+
return JSON.stringify(voiceSettingsEffectiveStatus(owner, settings));
|
|
21387
|
+
}
|
|
21388
|
+
function voiceSettingsRouteStatus(available, desktopDefault, copy) {
|
|
21389
|
+
if (desktopDefault) return copy.desktopSelected;
|
|
21390
|
+
return available ? copy.routeAllowed : copy.pathUnavailable;
|
|
21391
|
+
}
|
|
21392
|
+
function voiceSettingsAvailabilityFooter(settings, effective) {
|
|
21393
|
+
if (settings.chatExperience === "chatgpt" && !effective.chatAvailable)
|
|
21394
|
+
return "Chat voice is not available on this Desktop.";
|
|
21395
|
+
if (settings.chatExperience === "codex" && settings.chatConnection === "gateway" && !effective.chatAvailable)
|
|
21396
|
+
return "Chat voice is not available on this Desktop.";
|
|
21397
|
+
if (settings.workConnection === "gateway" && !effective.workAvailable)
|
|
21398
|
+
return "Work voice is not available on this Desktop.";
|
|
21399
|
+
}
|
|
21400
|
+
|
|
20214
21401
|
// src/settings/voice-page.ts
|
|
20215
21402
|
function createVoiceSettingsPage(locale, request, options = {}) {
|
|
20216
21403
|
const m = voiceMessages(locale);
|
|
@@ -20232,6 +21419,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20232
21419
|
let advanced = false;
|
|
20233
21420
|
let setup = false;
|
|
20234
21421
|
let error51 = null;
|
|
21422
|
+
let availabilityKey = "";
|
|
20235
21423
|
const ids = /* @__PURE__ */ new Map();
|
|
20236
21424
|
const controlId = (key) => {
|
|
20237
21425
|
const existing = ids.get(key);
|
|
@@ -20250,8 +21438,11 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20250
21438
|
try {
|
|
20251
21439
|
const next = voiceSettingsStateSchema.parse(await request({ operation: "get" }));
|
|
20252
21440
|
if (disposed || generation !== currentGeneration) return;
|
|
20253
|
-
const
|
|
20254
|
-
|
|
21441
|
+
const keepDraft = !reset && dirty();
|
|
21442
|
+
const displayedSettings = keepDraft && draft ? draft : next.settings;
|
|
21443
|
+
const nextAvailabilityKey = options.desktop && doc.defaultView ? voiceSettingsEffectiveStatusKey(doc.defaultView, displayedSettings) : "";
|
|
21444
|
+
const changed = JSON.stringify(state) !== JSON.stringify(next) || offline || reset || nextAvailabilityKey !== availabilityKey;
|
|
21445
|
+
if (!keepDraft) {
|
|
20255
21446
|
base = next;
|
|
20256
21447
|
draft = { ...next.settings };
|
|
20257
21448
|
}
|
|
@@ -20262,8 +21453,14 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20262
21453
|
confirm = false;
|
|
20263
21454
|
}
|
|
20264
21455
|
if (changed) render();
|
|
20265
|
-
} catch {
|
|
21456
|
+
} catch (failure) {
|
|
20266
21457
|
if (!disposed && generation === currentGeneration) {
|
|
21458
|
+
const hostUnavailable = failure instanceof Error && failure.message === "Local Host connection is unavailable";
|
|
21459
|
+
const invalid = failure instanceof Error && failure.name === "ZodError";
|
|
21460
|
+
chatVoiceDebug("voice-settings-load", {
|
|
21461
|
+
stage: hostUnavailable ? "rpc" : invalid ? "response" : "rpc",
|
|
21462
|
+
cause: hostUnavailable ? "host-unavailable" : invalid ? "invalid" : "failed"
|
|
21463
|
+
});
|
|
20267
21464
|
offline = true;
|
|
20268
21465
|
render();
|
|
20269
21466
|
}
|
|
@@ -20387,19 +21584,46 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20387
21584
|
);
|
|
20388
21585
|
gateway.item.append(gatewayActions);
|
|
20389
21586
|
config2.card.append(gateway.item);
|
|
20390
|
-
const
|
|
21587
|
+
const view = doc.defaultView;
|
|
21588
|
+
const hook = options.desktop ? desktopVoiceHookStatus(view) : "unknown";
|
|
20391
21589
|
const hookLabel = hook === "active" ? m.hookSupported : hook === "pending" ? m.hookPending : hook === "unsupported" ? m.hookUnsupported : hook === "disabled" ? m.hookDisabled : m.unknown;
|
|
21590
|
+
const effective = options.desktop && view ? voiceSettingsEffectiveStatus(view, draft) : void 0;
|
|
21591
|
+
if (effective && view) availabilityKey = voiceSettingsEffectiveStatusKey(view, draft);
|
|
21592
|
+
const preferencesLabel = state.routesActive === true ? m.preferencesOn : state.routesActive === false ? m.preferencesOff : m.unknown;
|
|
20392
21593
|
const health = h(doc, "div", { className: "settings-voice__health" });
|
|
20393
|
-
health.append(
|
|
20394
|
-
|
|
20395
|
-
|
|
20396
|
-
|
|
20397
|
-
|
|
20398
|
-
|
|
20399
|
-
|
|
20400
|
-
|
|
20401
|
-
|
|
20402
|
-
|
|
21594
|
+
health.append(h(doc, "p", {}, `${m.gatewayStatus}: ${gatewayReadyLabel}`));
|
|
21595
|
+
health.append(h(doc, "p", {}, `${m.preferencesStatus}: ${preferencesLabel}`));
|
|
21596
|
+
if (effective) {
|
|
21597
|
+
const copy = {
|
|
21598
|
+
desktopSelected: m.desktopSelected,
|
|
21599
|
+
routeAllowed: m.routeAllowed,
|
|
21600
|
+
pathUnavailable: m.pathUnavailable
|
|
21601
|
+
};
|
|
21602
|
+
health.append(
|
|
21603
|
+
h(
|
|
21604
|
+
doc,
|
|
21605
|
+
"p",
|
|
21606
|
+
{},
|
|
21607
|
+
`${effective.chatLabel}: ${voiceSettingsRouteStatus(
|
|
21608
|
+
effective.chatAvailable,
|
|
21609
|
+
effective.chatDesktopDefault,
|
|
21610
|
+
copy
|
|
21611
|
+
)}`
|
|
21612
|
+
),
|
|
21613
|
+
h(
|
|
21614
|
+
doc,
|
|
21615
|
+
"p",
|
|
21616
|
+
{},
|
|
21617
|
+
`${effective.workLabel}: ${voiceSettingsRouteStatus(
|
|
21618
|
+
effective.workAvailable,
|
|
21619
|
+
effective.workDesktopDefault,
|
|
21620
|
+
copy
|
|
21621
|
+
)}`
|
|
21622
|
+
)
|
|
21623
|
+
);
|
|
21624
|
+
} else {
|
|
21625
|
+
health.append(h(doc, "p", {}, `${m.hookStatus}: ${hookLabel}`));
|
|
21626
|
+
}
|
|
20403
21627
|
config2.card.append(health);
|
|
20404
21628
|
if (setup) {
|
|
20405
21629
|
const details = h(
|
|
@@ -20460,7 +21684,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20460
21684
|
root.append(chat.group, work.group, config2.group);
|
|
20461
21685
|
const restarting = state.restart.phase === "restarting";
|
|
20462
21686
|
const failed = state.restart.phase === "failed";
|
|
20463
|
-
const
|
|
21687
|
+
const availabilityFooter = effective ? voiceSettingsAvailabilityFooter(draft, effective) : void 0;
|
|
21688
|
+
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;
|
|
20464
21689
|
const footer = h(
|
|
20465
21690
|
doc,
|
|
20466
21691
|
"div",
|
|
@@ -21249,13 +22474,13 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21249
22474
|
}
|
|
21250
22475
|
|
|
21251
22476
|
// src/renderer-native-thread.ts
|
|
21252
|
-
function
|
|
22477
|
+
function isRecord2(value) {
|
|
21253
22478
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
21254
22479
|
}
|
|
21255
22480
|
async function verifyNativeCodexThread(sendRequest, threadId) {
|
|
21256
22481
|
const native = await sendRequest("thread/read", { threadId, includeTurns: false });
|
|
21257
|
-
const thread2 =
|
|
21258
|
-
if (!
|
|
22482
|
+
const thread2 = isRecord2(native) ? native.thread : null;
|
|
22483
|
+
if (!isRecord2(thread2) || thread2.id !== threadId || typeof thread2.modelProvider !== "string" || !thread2.modelProvider || thread2.modelProvider === "codexhost" || typeof thread2.cliVersion !== "string" || !thread2.cliVersion || thread2.cliVersion === "codexhost") {
|
|
21259
22484
|
throw new Error("Native Thread response cannot establish Codex ownership");
|
|
21260
22485
|
}
|
|
21261
22486
|
}
|
|
@@ -21334,15 +22559,15 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21334
22559
|
var CODEX_ACCOUNT_LIST_METHOD = "codexhost/account/list";
|
|
21335
22560
|
var CODEX_ACCOUNT_REFRESH_METHOD = "codexhost/account/refresh";
|
|
21336
22561
|
var CODEX_ACCOUNT_CHANGED_METHOD = "codexhost/account/changed";
|
|
21337
|
-
function
|
|
22562
|
+
function isRecord3(value) {
|
|
21338
22563
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
21339
22564
|
}
|
|
21340
22565
|
function notifiedThreadId(notification) {
|
|
21341
|
-
if (!
|
|
22566
|
+
if (!isRecord3(notification) || !THREAD_USAGE_REFRESH_METHODS.includes(notification.method)) {
|
|
21342
22567
|
return null;
|
|
21343
22568
|
}
|
|
21344
22569
|
const params = notification.params;
|
|
21345
|
-
if (!
|
|
22570
|
+
if (!isRecord3(params)) return null;
|
|
21346
22571
|
const parsed = hostThreadIdSchema.safeParse(params.threadId);
|
|
21347
22572
|
return parsed.success ? parsed.data : null;
|
|
21348
22573
|
}
|
|
@@ -21674,7 +22899,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21674
22899
|
throw new Error("Renderer Account notification callback is unavailable");
|
|
21675
22900
|
}
|
|
21676
22901
|
return notifications.addNotificationCallback(CODEX_ACCOUNT_CHANGED_METHOD, (notification) => {
|
|
21677
|
-
if (!
|
|
22902
|
+
if (!isRecord3(notification) || notification.method !== CODEX_ACCOUNT_CHANGED_METHOD) return;
|
|
21678
22903
|
const state = codexAccountChangedSchema.safeParse(notification.params);
|
|
21679
22904
|
if (state.success) listener(state.data);
|
|
21680
22905
|
});
|
|
@@ -21713,6 +22938,48 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21713
22938
|
};
|
|
21714
22939
|
}
|
|
21715
22940
|
|
|
22941
|
+
// src/renderer-external-clients-client.ts
|
|
22942
|
+
var RendererExternalClientsUnavailableError = class extends Error {
|
|
22943
|
+
constructor() {
|
|
22944
|
+
super("MCP clients are unavailable");
|
|
22945
|
+
this.name = "RendererExternalClientsUnavailableError";
|
|
22946
|
+
}
|
|
22947
|
+
};
|
|
22948
|
+
function createRendererExternalClientsClient(send) {
|
|
22949
|
+
const request = async (method, params) => {
|
|
22950
|
+
try {
|
|
22951
|
+
return await send(method, params);
|
|
22952
|
+
} catch (error51) {
|
|
22953
|
+
const code = typeof error51 === "object" && error51 !== null && "code" in error51 ? error51.code : void 0;
|
|
22954
|
+
if (code === -32601 || code === -32076) throw new RendererExternalClientsUnavailableError();
|
|
22955
|
+
throw error51;
|
|
22956
|
+
}
|
|
22957
|
+
};
|
|
22958
|
+
return {
|
|
22959
|
+
async listClients() {
|
|
22960
|
+
return externalClientListResultSchema.parse(await request(EXTERNAL_CLIENT_LIST_METHOD, {}));
|
|
22961
|
+
},
|
|
22962
|
+
async createClient(input) {
|
|
22963
|
+
const params = externalClientCreateParamsSchema.parse(input);
|
|
22964
|
+
return externalClientCreateResultSchema.parse(
|
|
22965
|
+
await request(EXTERNAL_CLIENT_CREATE_METHOD, params)
|
|
22966
|
+
);
|
|
22967
|
+
},
|
|
22968
|
+
async updateClient(input) {
|
|
22969
|
+
const params = externalClientUpdateParamsSchema.parse(input);
|
|
22970
|
+
return externalClientPublicViewSchema.parse(
|
|
22971
|
+
await request(EXTERNAL_CLIENT_UPDATE_METHOD, params)
|
|
22972
|
+
);
|
|
22973
|
+
},
|
|
22974
|
+
async revokeClient(name) {
|
|
22975
|
+
const params = externalClientRevokeParamsSchema.parse({ name });
|
|
22976
|
+
return externalClientRevokeResultSchema.parse(
|
|
22977
|
+
await request(EXTERNAL_CLIENT_REVOKE_METHOD, params)
|
|
22978
|
+
);
|
|
22979
|
+
}
|
|
22980
|
+
};
|
|
22981
|
+
}
|
|
22982
|
+
|
|
21716
22983
|
// ../../node_modules/uqr/dist/index.mjs
|
|
21717
22984
|
var QrCodeDataType = /* @__PURE__ */ ((QrCodeDataType2) => {
|
|
21718
22985
|
QrCodeDataType2[QrCodeDataType2["Border"] = -1] = "Border";
|
|
@@ -23886,6 +25153,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
23886
25153
|
harnessQuestionInChatHelp: Object.freeze([
|
|
23887
25154
|
"Codex's own questions always use the Codex Desktop layout.",
|
|
23888
25155
|
"Some single-choice and text questions still use the Desktop card.",
|
|
25156
|
+
"In-chat cards grow with the conversation and do not scroll inside the card. Overlay cards keep a height limit above the message box.",
|
|
23889
25157
|
"Answered questions remain after reopening a chat only if the Harness's own history records them.",
|
|
23890
25158
|
"Desktop still folds thinking and tool calls. The answered card stays visible as full-width history during the turn, then with the visible reply.",
|
|
23891
25159
|
"Update both the Host and the Desktop extension, including remote Hosts."
|
|
@@ -24198,11 +25466,55 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
24198
25466
|
revoke: "Revoke",
|
|
24199
25467
|
revoking: "Revoking\u2026"
|
|
24200
25468
|
}),
|
|
25469
|
+
mcpClients: Object.freeze({
|
|
25470
|
+
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.",
|
|
25471
|
+
helpLabel: "About MCP clients",
|
|
25472
|
+
help: Object.freeze([
|
|
25473
|
+
"Muse and Grok Bot share the same 11-tool Host catalog. Each client has its own identity, access, and revocation.",
|
|
25474
|
+
"All Host Threads is the default. Selected workspaces limits reads, writes, listings, waits, events, watches, and new delegation destinations in those roots.",
|
|
25475
|
+
"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.",
|
|
25476
|
+
"Revoke immediately ends later API use, including established sessions. Already-started tasks keep running. Cancellation is separate."
|
|
25477
|
+
]),
|
|
25478
|
+
columns: Object.freeze(["Client", "Access", "Connection", "Grant", "URL", "Actions"]),
|
|
25479
|
+
empty: "No MCP clients. Add muse or grok-bot here before connecting OAuth.",
|
|
25480
|
+
unavailable: "MCP clients require the local Host.",
|
|
25481
|
+
failed: "Could not load MCP clients.",
|
|
25482
|
+
loading: "Loading MCP clients\u2026",
|
|
25483
|
+
refresh: "Refresh",
|
|
25484
|
+
add: "Add client",
|
|
25485
|
+
adding: "Adding\u2026",
|
|
25486
|
+
name: "Client name",
|
|
25487
|
+
access: "Thread access",
|
|
25488
|
+
accessAll: "All Host Threads",
|
|
25489
|
+
accessSelected: "Selected workspaces",
|
|
25490
|
+
workspaces: "Workspace roots",
|
|
25491
|
+
workspacesHint: "One absolute path per line. Symlinks are resolved. Unresolved paths are denied.",
|
|
25492
|
+
connection: "Connection",
|
|
25493
|
+
connectionPublic: "Public relay (default)",
|
|
25494
|
+
connectionLocal: "Local loopback",
|
|
25495
|
+
connectionDirect: "Direct / already reachable",
|
|
25496
|
+
grant: "Dispatch grant",
|
|
25497
|
+
grantLegacy: "Legacy four tools (Muse staging)",
|
|
25498
|
+
grantFull: "Full Host dispatch",
|
|
25499
|
+
oauthClientId: "Bound OAuth client id (optional)",
|
|
25500
|
+
directUrl: "Direct MCP URL",
|
|
25501
|
+
directUrlHint: "https://host/mcp or http://100.x.x.x/mcp on Tailscale. Host does not open a listener.",
|
|
25502
|
+
connectOAuth: "Connect OAuth at this URL after the Host record exists.",
|
|
25503
|
+
copyUrl: "Copy URL",
|
|
25504
|
+
copied: "Copied",
|
|
25505
|
+
tokenOnce: "Same-Mac token (shown once). Store it privately; it is not listed again.",
|
|
25506
|
+
confirmRevoke: "Confirm revoke",
|
|
25507
|
+
revoke: "Revoke",
|
|
25508
|
+
revoking: "Revoking\u2026",
|
|
25509
|
+
save: "Save",
|
|
25510
|
+
saving: "Saving\u2026"
|
|
25511
|
+
}),
|
|
24201
25512
|
pageLabels: Object.freeze({
|
|
24202
25513
|
connections: "Connections",
|
|
24203
25514
|
"mobile-web": "Phone & browser",
|
|
24204
25515
|
"remote-connections": "Other computers (SSH)",
|
|
24205
25516
|
enrollment: "Enrollment",
|
|
25517
|
+
"mcp-clients": "MCP clients",
|
|
24206
25518
|
appearance: "General",
|
|
24207
25519
|
voice: "Voice",
|
|
24208
25520
|
accounts: "Accounts",
|
|
@@ -24237,6 +25549,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
24237
25549
|
harnessQuestionInChatHelp: Object.freeze([
|
|
24238
25550
|
"Codex \u81EA\u5DF1\u7684\u63D0\u95EE\u59CB\u7EC8\u4F7F\u7528 Codex Desktop \u7684\u5E03\u5C40\u3002",
|
|
24239
25551
|
"\u90E8\u5206\u5355\u9009\u548C\u6587\u672C\u63D0\u95EE\u4ECD\u4F7F\u7528 Desktop \u5361\u7247\u3002",
|
|
25552
|
+
"\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",
|
|
24240
25553
|
"\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",
|
|
24241
25554
|
"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",
|
|
24242
25555
|
"Host \u548C Desktop \u6269\u5C55\u9700\u8981\u4E00\u8D77\u66F4\u65B0\uFF0C\u5305\u62EC\u8FDC\u7A0B Host\u3002"
|
|
@@ -24549,11 +25862,55 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
24549
25862
|
revoke: "\u64A4\u9500",
|
|
24550
25863
|
revoking: "\u6B63\u5728\u64A4\u9500\u2026"
|
|
24551
25864
|
}),
|
|
25865
|
+
mcpClients: Object.freeze({
|
|
25866
|
+
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",
|
|
25867
|
+
helpLabel: "\u5173\u4E8E MCP \u5BA2\u6237\u7AEF",
|
|
25868
|
+
help: Object.freeze([
|
|
25869
|
+
"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",
|
|
25870
|
+
"\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",
|
|
25871
|
+
"\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",
|
|
25872
|
+
"\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"
|
|
25873
|
+
]),
|
|
25874
|
+
columns: Object.freeze(["\u5BA2\u6237\u7AEF", "\u8BBF\u95EE", "\u8FDE\u63A5", "\u6388\u6743", "URL", "\u64CD\u4F5C"]),
|
|
25875
|
+
empty: "\u6682\u65E0 MCP \u5BA2\u6237\u7AEF\u3002\u8FDE\u63A5 OAuth \u524D\u8BF7\u5148\u5728\u6B64\u6DFB\u52A0 muse \u6216 grok-bot\u3002",
|
|
25876
|
+
unavailable: "MCP \u5BA2\u6237\u7AEF\u9700\u8981\u6B63\u5728\u8FD0\u884C\u7684\u672C\u5730 Host\u3002",
|
|
25877
|
+
failed: "\u65E0\u6CD5\u52A0\u8F7D MCP \u5BA2\u6237\u7AEF\u3002",
|
|
25878
|
+
loading: "\u6B63\u5728\u52A0\u8F7D MCP \u5BA2\u6237\u7AEF\u2026",
|
|
25879
|
+
refresh: "\u5237\u65B0",
|
|
25880
|
+
add: "\u6DFB\u52A0\u5BA2\u6237\u7AEF",
|
|
25881
|
+
adding: "\u6B63\u5728\u6DFB\u52A0\u2026",
|
|
25882
|
+
name: "\u5BA2\u6237\u7AEF\u540D\u79F0",
|
|
25883
|
+
access: "Thread \u8BBF\u95EE",
|
|
25884
|
+
accessAll: "\u5168\u90E8 Host Thread",
|
|
25885
|
+
accessSelected: "\u9009\u5B9A\u5DE5\u4F5C\u533A",
|
|
25886
|
+
workspaces: "\u5DE5\u4F5C\u533A\u6839\u76EE\u5F55",
|
|
25887
|
+
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",
|
|
25888
|
+
connection: "\u8FDE\u63A5",
|
|
25889
|
+
connectionPublic: "\u516C\u7F51\u4E2D\u7EE7\uFF08\u9ED8\u8BA4\uFF09",
|
|
25890
|
+
connectionLocal: "\u672C\u673A\u56DE\u73AF",
|
|
25891
|
+
connectionDirect: "Direct / \u5DF2\u53EF\u8FBE",
|
|
25892
|
+
grant: "\u8C03\u5EA6\u6388\u6743",
|
|
25893
|
+
grantLegacy: "\u65E7\u7248\u56DB\u5DE5\u5177\uFF08Muse \u8FC7\u6E21\uFF09",
|
|
25894
|
+
grantFull: "\u5B8C\u6574 Host \u8C03\u5EA6",
|
|
25895
|
+
oauthClientId: "\u7ED1\u5B9A\u7684 OAuth client id\uFF08\u53EF\u9009\uFF09",
|
|
25896
|
+
directUrl: "Direct MCP URL",
|
|
25897
|
+
directUrlHint: "https://host/mcp\uFF0C\u6216 Tailscale \u4E0A\u7684 http://100.x.x.x/mcp\u3002Host \u4E0D\u4F1A\u65B0\u5F00\u76D1\u542C\u3002",
|
|
25898
|
+
connectOAuth: "Host \u8BB0\u5F55\u5B58\u5728\u540E\u518D\u7528\u6B64 URL \u8FDE\u63A5 OAuth\u3002",
|
|
25899
|
+
copyUrl: "\u590D\u5236 URL",
|
|
25900
|
+
copied: "\u5DF2\u590D\u5236",
|
|
25901
|
+
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",
|
|
25902
|
+
confirmRevoke: "\u786E\u8BA4\u64A4\u9500",
|
|
25903
|
+
revoke: "\u64A4\u9500",
|
|
25904
|
+
revoking: "\u6B63\u5728\u64A4\u9500\u2026",
|
|
25905
|
+
save: "\u4FDD\u5B58",
|
|
25906
|
+
saving: "\u6B63\u5728\u4FDD\u5B58\u2026"
|
|
25907
|
+
}),
|
|
24552
25908
|
pageLabels: Object.freeze({
|
|
24553
25909
|
connections: "\u8FDE\u63A5",
|
|
24554
25910
|
"mobile-web": "\u624B\u673A\u4E0E\u6D4F\u89C8\u5668",
|
|
24555
25911
|
"remote-connections": "\u5176\u4ED6\u7535\u8111\uFF08SSH\uFF09",
|
|
24556
25912
|
enrollment: "\u5BA2\u6237\u7AEF\u767B\u8BB0",
|
|
25913
|
+
"mcp-clients": "MCP \u5BA2\u6237\u7AEF",
|
|
24557
25914
|
appearance: "\u901A\u7528",
|
|
24558
25915
|
voice: "\u8BED\u97F3",
|
|
24559
25916
|
accounts: "\u8D26\u53F7",
|
|
@@ -25282,22 +26639,22 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
25282
26639
|
document2,
|
|
25283
26640
|
"div",
|
|
25284
26641
|
{ className: "console-usage-segmented", role: "group", "aria-label": label },
|
|
25285
|
-
...options.map((
|
|
26642
|
+
...options.map((option2) => {
|
|
25286
26643
|
const item = h(
|
|
25287
26644
|
document2,
|
|
25288
26645
|
"button",
|
|
25289
26646
|
{
|
|
25290
26647
|
type: "button",
|
|
25291
26648
|
className: "console-usage-segment",
|
|
25292
|
-
"aria-pressed":
|
|
25293
|
-
title:
|
|
26649
|
+
"aria-pressed": option2.value === value ? "true" : "false",
|
|
26650
|
+
title: option2.title
|
|
25294
26651
|
},
|
|
25295
|
-
|
|
26652
|
+
option2.label
|
|
25296
26653
|
);
|
|
25297
26654
|
item.addEventListener("click", () => {
|
|
25298
|
-
if (
|
|
26655
|
+
if (option2.value !== value) onChange(option2.value);
|
|
25299
26656
|
});
|
|
25300
|
-
return focusKey(item, `${key}:${
|
|
26657
|
+
return focusKey(item, `${key}:${option2.value}`);
|
|
25301
26658
|
})
|
|
25302
26659
|
);
|
|
25303
26660
|
}
|
|
@@ -25391,7 +26748,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
25391
26748
|
update(options, value) {
|
|
25392
26749
|
this.#options = options;
|
|
25393
26750
|
this.#value = value;
|
|
25394
|
-
const current = options.find((
|
|
26751
|
+
const current = options.find((option2) => option2.key === value);
|
|
25395
26752
|
const shown = current ?? options[0];
|
|
25396
26753
|
this.#button.textContent = shown ? this.#display?.(shown) ?? shown.label : "";
|
|
25397
26754
|
this.#button.title = current?.detail ?? "";
|
|
@@ -25404,7 +26761,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
25404
26761
|
this.#search.value = "";
|
|
25405
26762
|
this.#active = Math.max(
|
|
25406
26763
|
0,
|
|
25407
|
-
this.#options.findIndex((
|
|
26764
|
+
this.#options.findIndex((option2) => option2.key === this.#value)
|
|
25408
26765
|
);
|
|
25409
26766
|
this.#renderList();
|
|
25410
26767
|
this.#keys.focus();
|
|
@@ -25415,10 +26772,10 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
25415
26772
|
this.#button.setAttribute("aria-expanded", "false");
|
|
25416
26773
|
if (restoreFocus) this.#button.focus();
|
|
25417
26774
|
}
|
|
25418
|
-
#choose(
|
|
25419
|
-
if (!
|
|
26775
|
+
#choose(option2) {
|
|
26776
|
+
if (!option2) return;
|
|
25420
26777
|
this.close();
|
|
25421
|
-
if (
|
|
26778
|
+
if (option2.key !== this.#value) this.#onChange(option2.key);
|
|
25422
26779
|
}
|
|
25423
26780
|
#key(event) {
|
|
25424
26781
|
if (event.key === "Escape") {
|
|
@@ -25437,7 +26794,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
25437
26794
|
#renderList() {
|
|
25438
26795
|
const query = this.#search.value.trim().toLocaleLowerCase();
|
|
25439
26796
|
this.#visible = this.#options.filter(
|
|
25440
|
-
(
|
|
26797
|
+
(option2) => !query || option2.label.toLocaleLowerCase().includes(query) || option2.detail?.toLocaleLowerCase().includes(query)
|
|
25441
26798
|
);
|
|
25442
26799
|
this.#active = Math.min(this.#active, Math.max(0, this.#visible.length - 1));
|
|
25443
26800
|
if (this.#visible.length === 0) {
|
|
@@ -25449,7 +26806,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
25449
26806
|
}
|
|
25450
26807
|
const id = this.#list.id;
|
|
25451
26808
|
this.#list.replaceChildren(
|
|
25452
|
-
...this.#visible.map((
|
|
26809
|
+
...this.#visible.map((option2, index) => {
|
|
25453
26810
|
const item = h(
|
|
25454
26811
|
this.#document,
|
|
25455
26812
|
"li",
|
|
@@ -25457,13 +26814,13 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
25457
26814
|
id: `${id}-${index}`,
|
|
25458
26815
|
role: "option",
|
|
25459
26816
|
className: index === this.#active ? "is-active" : void 0,
|
|
25460
|
-
"aria-selected":
|
|
26817
|
+
"aria-selected": option2.key === this.#value ? "true" : "false"
|
|
25461
26818
|
},
|
|
25462
|
-
h(this.#document, "span", {},
|
|
25463
|
-
|
|
26819
|
+
h(this.#document, "span", {}, option2.label),
|
|
26820
|
+
option2.detail ? h(this.#document, "small", { className: "console-muted" }, option2.detail) : null
|
|
25464
26821
|
);
|
|
25465
26822
|
item.addEventListener("pointerdown", (event) => event.preventDefault());
|
|
25466
|
-
item.addEventListener("click", () => this.#choose(
|
|
26823
|
+
item.addEventListener("click", () => this.#choose(option2));
|
|
25467
26824
|
return item;
|
|
25468
26825
|
})
|
|
25469
26826
|
);
|
|
@@ -26106,7 +27463,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
26106
27463
|
emptyLabel: messages.noMatches,
|
|
26107
27464
|
signal: context.signal,
|
|
26108
27465
|
searchable: false,
|
|
26109
|
-
display: (
|
|
27466
|
+
display: (option2) => `${messages.host} \xB7 ${option2.label}`,
|
|
26110
27467
|
onChange: (key) => {
|
|
26111
27468
|
if (key === view.hostId) return;
|
|
26112
27469
|
view.hostId = key;
|
|
@@ -26162,7 +27519,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
26162
27519
|
emptyLabel: messages.noMatches,
|
|
26163
27520
|
signal: context.signal,
|
|
26164
27521
|
searchable: false,
|
|
26165
|
-
display: (
|
|
27522
|
+
display: (option2) => `${messages.autoRefresh} \xB7 ${option2.label}`,
|
|
26166
27523
|
onChange: (key) => {
|
|
26167
27524
|
view.autoRefreshMs = Number(key) || 0;
|
|
26168
27525
|
save();
|
|
@@ -29930,10 +31287,10 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
29930
31287
|
pageSize.dataset.sessionImportAction = "page-size";
|
|
29931
31288
|
pageSize.setAttribute("aria-label", messages.sessionImportPageSize);
|
|
29932
31289
|
for (const size of [20, 50, 100]) {
|
|
29933
|
-
const
|
|
29934
|
-
|
|
29935
|
-
|
|
29936
|
-
pageSize.append(
|
|
31290
|
+
const option2 = document2.createElement("option");
|
|
31291
|
+
option2.value = String(size);
|
|
31292
|
+
option2.textContent = String(size);
|
|
31293
|
+
pageSize.append(option2);
|
|
29937
31294
|
}
|
|
29938
31295
|
pageSize.value = String(limit);
|
|
29939
31296
|
pageSizeLabel.append(pageSize);
|
|
@@ -30141,22 +31498,22 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
30141
31498
|
harnessOptions.replaceChildren();
|
|
30142
31499
|
sourceButtons.length = 0;
|
|
30143
31500
|
for (const source of sources) {
|
|
30144
|
-
const
|
|
30145
|
-
|
|
30146
|
-
|
|
30147
|
-
|
|
30148
|
-
|
|
30149
|
-
|
|
30150
|
-
|
|
30151
|
-
if (
|
|
31501
|
+
const option2 = document2.createElement("button");
|
|
31502
|
+
option2.type = "button";
|
|
31503
|
+
option2.className = "settings-session-import-harness__option";
|
|
31504
|
+
option2.dataset.sessionImportHarnessOption = source.harnessId;
|
|
31505
|
+
option2.textContent = source.name;
|
|
31506
|
+
option2.setAttribute("aria-pressed", String(source.harnessId === selectedHarness));
|
|
31507
|
+
option2.addEventListener("click", () => {
|
|
31508
|
+
if (option2.disabled || importingId !== null || source.harnessId === selectedHarness)
|
|
30152
31509
|
return;
|
|
30153
31510
|
selectedHarness = source.harnessId;
|
|
30154
31511
|
listControls.reset();
|
|
30155
31512
|
renderHarnessOptions();
|
|
30156
31513
|
load();
|
|
30157
31514
|
});
|
|
30158
|
-
sourceButtons.push(
|
|
30159
|
-
harnessOptions.append(
|
|
31515
|
+
sourceButtons.push(option2);
|
|
31516
|
+
harnessOptions.append(option2);
|
|
30160
31517
|
}
|
|
30161
31518
|
harnessOptions.scrollLeft = scrolled;
|
|
30162
31519
|
harnessOptions.querySelector('[aria-pressed="true"]')?.scrollIntoView?.({ block: "nearest", inline: "nearest" });
|
|
@@ -31341,8 +32698,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
31341
32698
|
legend.textContent = messages.source;
|
|
31342
32699
|
group.append(legend);
|
|
31343
32700
|
for (const choice of choices) {
|
|
31344
|
-
const
|
|
31345
|
-
|
|
32701
|
+
const option2 = document2.createElement("label");
|
|
32702
|
+
option2.className = "settings-credential-dialog__source";
|
|
31346
32703
|
const radio = document2.createElement("input");
|
|
31347
32704
|
radio.type = "radio";
|
|
31348
32705
|
radio.name = "settings-credential-source";
|
|
@@ -31369,8 +32726,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
31369
32726
|
}
|
|
31370
32727
|
refreshPreview();
|
|
31371
32728
|
});
|
|
31372
|
-
|
|
31373
|
-
group.append(
|
|
32729
|
+
option2.append(radio, copy);
|
|
32730
|
+
group.append(option2);
|
|
31374
32731
|
}
|
|
31375
32732
|
return group;
|
|
31376
32733
|
};
|
|
@@ -32817,6 +34174,318 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
32817
34174
|
});
|
|
32818
34175
|
}
|
|
32819
34176
|
|
|
34177
|
+
// src/settings/mcp-clients-page.ts
|
|
34178
|
+
function errorMessage5(error51, fallback) {
|
|
34179
|
+
if (error51 instanceof RendererExternalClientsUnavailableError) return fallback;
|
|
34180
|
+
return error51 instanceof Error && error51.message ? error51.message : fallback;
|
|
34181
|
+
}
|
|
34182
|
+
function accessLabel(view, copy) {
|
|
34183
|
+
if (view.access === "selected-workspaces") {
|
|
34184
|
+
return `${copy.accessSelected}: ${view.workspaces.join(", ") || "\u2014"}`;
|
|
34185
|
+
}
|
|
34186
|
+
return copy.accessAll;
|
|
34187
|
+
}
|
|
34188
|
+
function connectionLabel(mode, copy) {
|
|
34189
|
+
if (mode === "local") return copy.connectionLocal;
|
|
34190
|
+
if (mode === "direct") return copy.connectionDirect;
|
|
34191
|
+
return copy.connectionPublic;
|
|
34192
|
+
}
|
|
34193
|
+
function grantLabel(grant, copy) {
|
|
34194
|
+
return grant === "full-dispatch" ? copy.grantFull : copy.grantLegacy;
|
|
34195
|
+
}
|
|
34196
|
+
function option(document2, label, value) {
|
|
34197
|
+
const node = document2.createElement("option");
|
|
34198
|
+
node.value = value;
|
|
34199
|
+
node.textContent = label;
|
|
34200
|
+
return node;
|
|
34201
|
+
}
|
|
34202
|
+
function createMcpClientsSettingsPage(messages, getClient) {
|
|
34203
|
+
return Object.freeze({
|
|
34204
|
+
id: "mcp-clients",
|
|
34205
|
+
label: messages.pageLabels["mcp-clients"],
|
|
34206
|
+
icon: "mcp-clients",
|
|
34207
|
+
mount(context) {
|
|
34208
|
+
const document2 = context.content.ownerDocument;
|
|
34209
|
+
const copy = messages.mcpClients;
|
|
34210
|
+
const header = document2.createElement("div");
|
|
34211
|
+
header.className = "settings-enrollment-header";
|
|
34212
|
+
const copyBlock = document2.createElement("div");
|
|
34213
|
+
copyBlock.className = "settings-enrollment-copy";
|
|
34214
|
+
const title = document2.createElement("div");
|
|
34215
|
+
title.className = "settings-enrollment-title";
|
|
34216
|
+
const heading = document2.createElement("h1");
|
|
34217
|
+
heading.className = "settings-section-label";
|
|
34218
|
+
heading.textContent = messages.pageLabels["mcp-clients"];
|
|
34219
|
+
title.append(heading, createHelpTooltip(document2, copy.helpLabel, copy.help));
|
|
34220
|
+
const description = document2.createElement("p");
|
|
34221
|
+
description.className = "settings-page-description";
|
|
34222
|
+
description.textContent = copy.description;
|
|
34223
|
+
copyBlock.append(title, description);
|
|
34224
|
+
const refresh = document2.createElement("button");
|
|
34225
|
+
refresh.type = "button";
|
|
34226
|
+
refresh.className = "settings-icon-button";
|
|
34227
|
+
refresh.title = copy.refresh;
|
|
34228
|
+
refresh.setAttribute("aria-label", copy.refresh);
|
|
34229
|
+
refresh.append(createRendererSettingsIcon("refresh", 16));
|
|
34230
|
+
header.append(copyBlock, refresh);
|
|
34231
|
+
const status = document2.createElement("p");
|
|
34232
|
+
status.className = "settings-enrollment-status";
|
|
34233
|
+
status.setAttribute("aria-live", "polite");
|
|
34234
|
+
const setStatus = (message2, kind) => {
|
|
34235
|
+
status.className = kind === "error" ? "settings-enrollment-status is-error" : "settings-enrollment-status";
|
|
34236
|
+
status.textContent = message2;
|
|
34237
|
+
};
|
|
34238
|
+
const form = document2.createElement("form");
|
|
34239
|
+
form.className = "settings-enrollment-copy";
|
|
34240
|
+
const nameInput = document2.createElement("input");
|
|
34241
|
+
nameInput.type = "text";
|
|
34242
|
+
nameInput.required = true;
|
|
34243
|
+
nameInput.placeholder = copy.name;
|
|
34244
|
+
nameInput.setAttribute("aria-label", copy.name);
|
|
34245
|
+
const accessSelect = document2.createElement("select");
|
|
34246
|
+
accessSelect.setAttribute("aria-label", copy.access);
|
|
34247
|
+
accessSelect.append(
|
|
34248
|
+
option(document2, copy.accessAll, "all-threads"),
|
|
34249
|
+
option(document2, copy.accessSelected, "selected-workspaces")
|
|
34250
|
+
);
|
|
34251
|
+
const workspaces = document2.createElement("textarea");
|
|
34252
|
+
workspaces.rows = 3;
|
|
34253
|
+
workspaces.placeholder = copy.workspacesHint;
|
|
34254
|
+
workspaces.setAttribute("aria-label", copy.workspaces);
|
|
34255
|
+
const connectionSelect = document2.createElement("select");
|
|
34256
|
+
connectionSelect.setAttribute("aria-label", copy.connection);
|
|
34257
|
+
connectionSelect.append(
|
|
34258
|
+
option(document2, copy.connectionPublic, "public-relay"),
|
|
34259
|
+
option(document2, copy.connectionLocal, "local"),
|
|
34260
|
+
option(document2, copy.connectionDirect, "direct")
|
|
34261
|
+
);
|
|
34262
|
+
const grantSelect = document2.createElement("select");
|
|
34263
|
+
grantSelect.setAttribute("aria-label", copy.grant);
|
|
34264
|
+
grantSelect.append(
|
|
34265
|
+
option(document2, copy.grantFull, "full-dispatch"),
|
|
34266
|
+
option(document2, copy.grantLegacy, "legacy-four")
|
|
34267
|
+
);
|
|
34268
|
+
const directUrlInput = document2.createElement("input");
|
|
34269
|
+
directUrlInput.type = "url";
|
|
34270
|
+
directUrlInput.placeholder = copy.directUrlHint;
|
|
34271
|
+
directUrlInput.setAttribute("aria-label", copy.directUrl);
|
|
34272
|
+
const oauthInput = document2.createElement("input");
|
|
34273
|
+
oauthInput.type = "text";
|
|
34274
|
+
oauthInput.placeholder = copy.oauthClientId;
|
|
34275
|
+
oauthInput.setAttribute("aria-label", copy.oauthClientId);
|
|
34276
|
+
const add = document2.createElement("button");
|
|
34277
|
+
add.type = "submit";
|
|
34278
|
+
add.className = "settings-command-button";
|
|
34279
|
+
add.textContent = copy.add;
|
|
34280
|
+
form.append(
|
|
34281
|
+
nameInput,
|
|
34282
|
+
accessSelect,
|
|
34283
|
+
workspaces,
|
|
34284
|
+
connectionSelect,
|
|
34285
|
+
grantSelect,
|
|
34286
|
+
directUrlInput,
|
|
34287
|
+
oauthInput,
|
|
34288
|
+
add
|
|
34289
|
+
);
|
|
34290
|
+
const tableWrap = document2.createElement("div");
|
|
34291
|
+
tableWrap.className = "settings-enrollment-table-wrap";
|
|
34292
|
+
const table = document2.createElement("table");
|
|
34293
|
+
table.className = "settings-enrollment-table";
|
|
34294
|
+
table.setAttribute("aria-label", messages.pageLabels["mcp-clients"]);
|
|
34295
|
+
const thead = document2.createElement("thead");
|
|
34296
|
+
const headerRow = document2.createElement("tr");
|
|
34297
|
+
for (const label of copy.columns) {
|
|
34298
|
+
const cell = document2.createElement("th");
|
|
34299
|
+
cell.textContent = label;
|
|
34300
|
+
headerRow.append(cell);
|
|
34301
|
+
}
|
|
34302
|
+
thead.append(headerRow);
|
|
34303
|
+
const tbody = document2.createElement("tbody");
|
|
34304
|
+
table.append(thead, tbody);
|
|
34305
|
+
tableWrap.append(table);
|
|
34306
|
+
context.content.append(header, status, form, tableWrap);
|
|
34307
|
+
const client = getClient();
|
|
34308
|
+
const renderEmpty = (message2) => {
|
|
34309
|
+
tbody.replaceChildren();
|
|
34310
|
+
const row = document2.createElement("tr");
|
|
34311
|
+
const cell = document2.createElement("td");
|
|
34312
|
+
cell.setAttribute("colspan", String(copy.columns.length));
|
|
34313
|
+
cell.className = "settings-enrollment-empty";
|
|
34314
|
+
cell.textContent = message2;
|
|
34315
|
+
row.append(cell);
|
|
34316
|
+
tbody.append(row);
|
|
34317
|
+
};
|
|
34318
|
+
const copyUrl = async (url2) => {
|
|
34319
|
+
if (!url2) return;
|
|
34320
|
+
try {
|
|
34321
|
+
await navigator.clipboard.writeText(url2);
|
|
34322
|
+
setStatus(copy.copied, "idle");
|
|
34323
|
+
} catch {
|
|
34324
|
+
setStatus(copy.failed, "error");
|
|
34325
|
+
}
|
|
34326
|
+
};
|
|
34327
|
+
const renderRows = (clients) => {
|
|
34328
|
+
tbody.replaceChildren();
|
|
34329
|
+
if (clients.length === 0) {
|
|
34330
|
+
renderEmpty(copy.empty);
|
|
34331
|
+
return;
|
|
34332
|
+
}
|
|
34333
|
+
for (const view of clients) {
|
|
34334
|
+
const row = document2.createElement("tr");
|
|
34335
|
+
row.className = "settings-enrollment-row";
|
|
34336
|
+
const nameCell = document2.createElement("td");
|
|
34337
|
+
const strong = document2.createElement("strong");
|
|
34338
|
+
strong.textContent = view.name;
|
|
34339
|
+
nameCell.append(strong);
|
|
34340
|
+
const accessCell = document2.createElement("td");
|
|
34341
|
+
accessCell.textContent = accessLabel(view, copy);
|
|
34342
|
+
const connectionCell = document2.createElement("td");
|
|
34343
|
+
connectionCell.textContent = connectionLabel(view.connectionMode, copy);
|
|
34344
|
+
const grantCell = document2.createElement("td");
|
|
34345
|
+
grantCell.textContent = grantLabel(view.dispatchGrant, copy);
|
|
34346
|
+
const urlCell = document2.createElement("td");
|
|
34347
|
+
urlCell.textContent = view.mcpUrl ?? view.mcpUrlNote ?? "\u2014";
|
|
34348
|
+
const actions = document2.createElement("td");
|
|
34349
|
+
actions.className = "settings-enrollment-actions";
|
|
34350
|
+
if (view.mcpUrl) {
|
|
34351
|
+
const copyButton = document2.createElement("button");
|
|
34352
|
+
copyButton.type = "button";
|
|
34353
|
+
copyButton.className = "settings-command-button settings-command-button--secondary";
|
|
34354
|
+
copyButton.textContent = copy.copyUrl;
|
|
34355
|
+
copyButton.addEventListener("click", () => void copyUrl(view.mcpUrl));
|
|
34356
|
+
actions.append(copyButton);
|
|
34357
|
+
}
|
|
34358
|
+
const full = document2.createElement("button");
|
|
34359
|
+
full.type = "button";
|
|
34360
|
+
full.className = "settings-command-button settings-command-button--secondary";
|
|
34361
|
+
full.textContent = copy.grantFull;
|
|
34362
|
+
full.disabled = view.dispatchGrant === "full-dispatch" || !client;
|
|
34363
|
+
full.addEventListener("click", () => {
|
|
34364
|
+
if (!client) return;
|
|
34365
|
+
full.disabled = true;
|
|
34366
|
+
void context.runLatest(
|
|
34367
|
+
() => client.updateClient({ name: view.name, dispatchGrant: "full-dispatch" }).then(() => client.listClients()),
|
|
34368
|
+
{
|
|
34369
|
+
success(result) {
|
|
34370
|
+
setStatus("", "idle");
|
|
34371
|
+
renderRows(result.clients);
|
|
34372
|
+
},
|
|
34373
|
+
failure(error51) {
|
|
34374
|
+
full.disabled = false;
|
|
34375
|
+
setStatus(errorMessage5(error51, copy.failed), "error");
|
|
34376
|
+
}
|
|
34377
|
+
}
|
|
34378
|
+
);
|
|
34379
|
+
});
|
|
34380
|
+
const revoke = document2.createElement("button");
|
|
34381
|
+
revoke.type = "button";
|
|
34382
|
+
revoke.className = "settings-command-button settings-command-button--secondary";
|
|
34383
|
+
revoke.setAttribute("aria-label", `${copy.revoke} ${view.name}`);
|
|
34384
|
+
const revokeLabel = document2.createElement("span");
|
|
34385
|
+
revokeLabel.textContent = copy.revoke;
|
|
34386
|
+
revoke.append(createRendererSettingsIcon("trash", 14), revokeLabel);
|
|
34387
|
+
revoke.addEventListener("click", () => {
|
|
34388
|
+
if (!client || revoke.disabled) return;
|
|
34389
|
+
if (revoke.dataset.armed !== "true") {
|
|
34390
|
+
revoke.dataset.armed = "true";
|
|
34391
|
+
revokeLabel.textContent = copy.confirmRevoke;
|
|
34392
|
+
return;
|
|
34393
|
+
}
|
|
34394
|
+
revoke.disabled = true;
|
|
34395
|
+
revokeLabel.textContent = copy.revoking;
|
|
34396
|
+
void context.runLatest(
|
|
34397
|
+
() => client.revokeClient(view.name).then(() => client.listClients()),
|
|
34398
|
+
{
|
|
34399
|
+
success(result) {
|
|
34400
|
+
setStatus("", "idle");
|
|
34401
|
+
renderRows(result.clients);
|
|
34402
|
+
},
|
|
34403
|
+
failure(error51) {
|
|
34404
|
+
revoke.disabled = false;
|
|
34405
|
+
revoke.dataset.armed = "true";
|
|
34406
|
+
revokeLabel.textContent = copy.confirmRevoke;
|
|
34407
|
+
setStatus(errorMessage5(error51, copy.failed), "error");
|
|
34408
|
+
}
|
|
34409
|
+
}
|
|
34410
|
+
);
|
|
34411
|
+
});
|
|
34412
|
+
actions.append(full, revoke);
|
|
34413
|
+
row.append(nameCell, accessCell, connectionCell, grantCell, urlCell, actions);
|
|
34414
|
+
tbody.append(row);
|
|
34415
|
+
}
|
|
34416
|
+
};
|
|
34417
|
+
const load = () => {
|
|
34418
|
+
if (!client) {
|
|
34419
|
+
renderEmpty(copy.unavailable);
|
|
34420
|
+
return;
|
|
34421
|
+
}
|
|
34422
|
+
setStatus(copy.loading, "idle");
|
|
34423
|
+
void context.runLatest(() => client.listClients(), {
|
|
34424
|
+
success(result) {
|
|
34425
|
+
setStatus("", "idle");
|
|
34426
|
+
renderRows(result.clients);
|
|
34427
|
+
},
|
|
34428
|
+
failure(error51) {
|
|
34429
|
+
setStatus("", "idle");
|
|
34430
|
+
renderEmpty(
|
|
34431
|
+
error51 instanceof RendererExternalClientsUnavailableError ? copy.unavailable : errorMessage5(error51, copy.failed)
|
|
34432
|
+
);
|
|
34433
|
+
}
|
|
34434
|
+
});
|
|
34435
|
+
};
|
|
34436
|
+
form.addEventListener("submit", (event) => {
|
|
34437
|
+
event.preventDefault();
|
|
34438
|
+
if (!client || add.disabled) return;
|
|
34439
|
+
const name = nameInput.value.trim();
|
|
34440
|
+
const access = accessSelect.value;
|
|
34441
|
+
const connectionMode = connectionSelect.value;
|
|
34442
|
+
const dispatchGrant = grantSelect.value;
|
|
34443
|
+
const roots = workspaces.value.split("\n").map((line) => line.trim()).filter(Boolean);
|
|
34444
|
+
const directUrl = directUrlInput.value.trim();
|
|
34445
|
+
const oauthClientId = oauthInput.value.trim();
|
|
34446
|
+
add.disabled = true;
|
|
34447
|
+
add.textContent = copy.adding;
|
|
34448
|
+
void context.runLatest(
|
|
34449
|
+
() => client.createClient({
|
|
34450
|
+
name,
|
|
34451
|
+
access,
|
|
34452
|
+
connectionMode,
|
|
34453
|
+
dispatchGrant,
|
|
34454
|
+
...access === "selected-workspaces" ? { workspaces: roots } : {},
|
|
34455
|
+
...directUrl ? { directUrl } : {},
|
|
34456
|
+
...oauthClientId ? { oauthClientId } : {}
|
|
34457
|
+
}).then(async (created) => {
|
|
34458
|
+
const listed = await client.listClients();
|
|
34459
|
+
return { created, listed };
|
|
34460
|
+
}),
|
|
34461
|
+
{
|
|
34462
|
+
success({ created, listed }) {
|
|
34463
|
+
add.disabled = false;
|
|
34464
|
+
add.textContent = copy.add;
|
|
34465
|
+
nameInput.value = "";
|
|
34466
|
+
directUrlInput.value = "";
|
|
34467
|
+
oauthInput.value = "";
|
|
34468
|
+
renderRows(listed.clients);
|
|
34469
|
+
setStatus(
|
|
34470
|
+
created.token ? `${copy.tokenOnce} ${created.token}` : copy.connectOAuth,
|
|
34471
|
+
"idle"
|
|
34472
|
+
);
|
|
34473
|
+
},
|
|
34474
|
+
failure(error51) {
|
|
34475
|
+
add.disabled = false;
|
|
34476
|
+
add.textContent = copy.add;
|
|
34477
|
+
setStatus(errorMessage5(error51, copy.failed), "error");
|
|
34478
|
+
}
|
|
34479
|
+
}
|
|
34480
|
+
);
|
|
34481
|
+
});
|
|
34482
|
+
refresh.addEventListener("click", load);
|
|
34483
|
+
load();
|
|
34484
|
+
return void 0;
|
|
34485
|
+
}
|
|
34486
|
+
});
|
|
34487
|
+
}
|
|
34488
|
+
|
|
32820
34489
|
// src/settings/update-request.ts
|
|
32821
34490
|
var RENDERER_UPDATE_REQUEST_TIMEOUT_MS = 15e3;
|
|
32822
34491
|
var RendererUpdateRequestTimeoutError = class extends Error {
|
|
@@ -33425,7 +35094,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
33425
35094
|
}
|
|
33426
35095
|
});
|
|
33427
35096
|
}
|
|
33428
|
-
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) {
|
|
35097
|
+
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) {
|
|
33429
35098
|
return Object.freeze([
|
|
33430
35099
|
createConnectionsSettingsPage(messages, getDiagnostics, void 0, getRemoteConnections),
|
|
33431
35100
|
createMobileWebPage(messages, () => {
|
|
@@ -33434,6 +35103,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
33434
35103
|
}),
|
|
33435
35104
|
createRemoteConnectionsPage(messages, getRemoteConnections),
|
|
33436
35105
|
createEnrollmentSettingsPage(messages, getEnrollmentClient),
|
|
35106
|
+
createMcpClientsSettingsPage(messages, getExternalClientsClient),
|
|
33437
35107
|
createAccountsSettingsPage(messages, getAccountClient),
|
|
33438
35108
|
...harnessSchedules ? [createHarnessSchedulesPage(messages, harnessSchedules)] : [],
|
|
33439
35109
|
createSessionImportSettingsPage(
|
|
@@ -36237,7 +37907,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
36237
37907
|
`;
|
|
36238
37908
|
|
|
36239
37909
|
// src/settings/tailwind.css
|
|
36240
|
-
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';
|
|
37910
|
+
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';
|
|
36241
37911
|
|
|
36242
37912
|
// src/console/app.ts
|
|
36243
37913
|
function required2(pages, id) {
|
|
@@ -36311,6 +37981,9 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
36311
37981
|
const enrollmentClient = createRendererEnrollmentClient(
|
|
36312
37982
|
(method, params) => manager.sendRequest(method, params)
|
|
36313
37983
|
);
|
|
37984
|
+
const externalClientsClient = createRendererExternalClientsClient(
|
|
37985
|
+
(method, params) => manager.sendRequest(method, params)
|
|
37986
|
+
);
|
|
36314
37987
|
const updateClient = consoleUpdateClient();
|
|
36315
37988
|
const remoteConnections = createConsoleRemoteConnections(manager);
|
|
36316
37989
|
const settingsPages = createDefaultRendererSettingsPages(
|
|
@@ -36326,7 +37999,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
36326
37999
|
void 0,
|
|
36327
38000
|
void 0,
|
|
36328
38001
|
void 0,
|
|
36329
|
-
() => enrollmentClient
|
|
38002
|
+
() => enrollmentClient,
|
|
38003
|
+
() => externalClientsClient
|
|
36330
38004
|
);
|
|
36331
38005
|
const navigate = (pageId) => {
|
|
36332
38006
|
navigation.classList.remove("is-open");
|
|
@@ -36353,6 +38027,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
|
|
|
36353
38027
|
),
|
|
36354
38028
|
hostPage(required2(settingsPages, "remote-connections"), messages, state),
|
|
36355
38029
|
hostPage(required2(settingsPages, "enrollment"), messages, state),
|
|
38030
|
+
hostPage(required2(settingsPages, "mcp-clients"), messages, state),
|
|
36356
38031
|
hostPage(required2(settingsPages, "accounts"), messages, state),
|
|
36357
38032
|
hostPage(required2(settingsPages, "session-import"), messages, state),
|
|
36358
38033
|
createConnectDevicesPage(locale),
|
|
@@ -36615,6 +38290,7 @@ lucide/dist/esm/icons/x.mjs:
|
|
|
36615
38290
|
lucide/dist/esm/icons/users.mjs:
|
|
36616
38291
|
lucide/dist/esm/icons/plus.mjs:
|
|
36617
38292
|
lucide/dist/esm/icons/key-round.mjs:
|
|
38293
|
+
lucide/dist/esm/icons/bot.mjs:
|
|
36618
38294
|
(**
|
|
36619
38295
|
* @license lucide v1.28.0 - ISC
|
|
36620
38296
|
*
|