@karlorz/codexhost-cli-win32-x64 0.18.0-0 → 0.19.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +1 -1
  2. package/app/codexhost-distribution.json +1 -1
  3. package/app/console-server.mjs +317 -59
  4. package/app/console-web.js +1889 -141
  5. package/app/cpa-live-voice-hook.js +1938 -428
  6. package/app/desktop-controller.mjs +2081 -212
  7. package/app/host-runtime.mjs +14818 -3381
  8. package/app/overlay-voice-bootstrap.js +1616 -0
  9. package/app/plugins/antigravity/plugin.mjs +963 -324
  10. package/app/plugins/claude-code/plugin.mjs +395 -67
  11. package/app/plugins/codebuddy/plugin.mjs +409 -76
  12. package/app/plugins/codex-usage/plugin.mjs +316 -58
  13. package/app/plugins/copilot/plugin.mjs +316 -58
  14. package/app/plugins/cursor-cli/plugin.mjs +391 -68
  15. package/app/plugins/deepseek-harness/manifest.json +2 -2
  16. package/app/plugins/deepseek-harness/plugin.mjs +343 -63
  17. package/app/plugins/devin/plugin.mjs +316 -58
  18. package/app/plugins/grok/plugin.mjs +1350 -1026
  19. package/app/plugins/hermes/plugin.mjs +395 -70
  20. package/app/plugins/kimi-code/plugin.mjs +316 -58
  21. package/app/plugins/kiro-cli/plugin.mjs +544 -74
  22. package/app/plugins/omp/plugin.mjs +1264 -902
  23. package/app/plugins/opencode/plugin.mjs +316 -58
  24. package/app/plugins/pi/plugin.mjs +1189 -862
  25. package/app/plugins/qoder/plugin.mjs +318 -62
  26. package/app/plugins/qoder-cn/plugin.mjs +318 -62
  27. package/app/plugins/qwen-code/plugin.mjs +425 -150
  28. package/app/plugins/workbuddy/plugin.mjs +409 -76
  29. package/app/plugins/zcode/plugin.mjs +389 -61
  30. package/app/renderer-extension.js +11830 -8531
  31. package/app/voice-profile-pins.json +25 -0
  32. package/app/voice-qualification.json +4 -0
  33. package/app/web/assets/index-BCyiiDDL.js +199 -0
  34. package/app/web/assets/index-BNQIOOHE.css +1 -0
  35. package/app/web/codexhost-settings.js +1895 -190
  36. package/app/web/index.html +2 -2
  37. package/app/web/plugins/deepseek-ai__dsh-api-remotes/client.js +1 -1
  38. package/app/web/plugins/deepseek-ai__dsh-api-session-controller/client.js +69 -69
  39. package/app/web/plugins/deepseek-ai__dsh-client-file-upload/client.js +1 -1
  40. package/app/web/plugins/deepseek-ai__dsh-client-locale/client.js +3 -3
  41. package/app/web/plugins/deepseek-ai__dsh-client-ui-attachment/client.js +1 -1
  42. package/app/web/plugins/deepseek-ai__dsh-client-ui-chat/client.js +129 -8
  43. package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +65 -63
  44. package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +95 -93
  45. package/app/web/plugins/deepseek-ai__dsh-client-ui-input-trigger/client.js +1 -1
  46. package/app/web/plugins/deepseek-ai__dsh-client-ui-layout/client.js +2 -2
  47. package/app/web/plugins/deepseek-ai__dsh-client-ui-model-selection/client.js +1 -1
  48. package/app/web/plugins/deepseek-ai__dsh-client-ui-settings-general/client.js +1 -1
  49. package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar-documentpreview/client.excel.js +1 -1
  50. package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar-files/client.js +1 -1
  51. package/app/web/plugins/deepseek-ai__dsh-client-ui-tool/client.js +79 -79
  52. package/app/web/plugins/deepseek-ai__dsh-client-ui-user-questions/client.js +1 -1
  53. package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +11 -11
  54. package/app/web-modules/server.mjs +3279 -1676
  55. package/bin/codexhost.exe +0 -0
  56. package/libexec/codexhost-node-repl.exe +0 -0
  57. package/libexec/codexhost-shim.exe +0 -0
  58. package/libexec/codexhost-updater.exe +0 -0
  59. package/package.json +1 -1
  60. package/app/web/assets/index-Bs17Kuah.js +0 -199
  61. package/app/web/assets/index-C3lniEH1.css +0 -1
@@ -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((option) => Array.from(option._zod.values)));
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 option of def.options) {
3341
- const result = option._zod.run({
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 option of def.options) {
3396
- const result = option._zod.run({
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 option of def.options) {
3421
- const pv = option._zod.propValues;
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(option)}"`);
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 option of def.options) {
11834
- if (isTransforming(option, ctx))
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 = /^rtc_[A-Za-z0-9_-]{1,128}$/u;
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.enum(RELAY_ALLOWED_ROUTES),
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, option] of options.entries()) {
15124
- if (ids.has(option.id)) {
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(option.id);
15332
+ ids.add(option2.id);
15132
15333
  }
15133
15334
  });
15134
15335
  var harnessModelCatalogSchema = external_exports.object({
@@ -15382,11 +15583,61 @@ 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;
15388
15635
  var clientThreadPinsSchema = external_exports.object({ threadIds: external_exports.array(external_exports.string().min(1)) }).strict();
15389
15636
  var clientThreadPinParamsSchema = external_exports.object({ threadId: external_exports.string().min(1).max(1024), pinned: external_exports.boolean() }).strict();
15637
+ var clientThreadTreeReadParamsSchema = external_exports.object({}).strict();
15638
+ var clientThreadTreeSchema = external_exports.object({
15639
+ parents: external_exports.record(external_exports.string().min(1), external_exports.string().min(1))
15640
+ }).strict();
15390
15641
  var clientProjectlessWorkspaceSchema = external_exports.object({
15391
15642
  prompt: external_exports.string().max(16384).optional()
15392
15643
  }).strict();
@@ -15403,6 +15654,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15403
15654
  sequence: external_exports.number().int().nonnegative()
15404
15655
  });
15405
15656
  var clientChannelEventSchema = external_exports.discriminatedUnion("type", [
15657
+ external_exports.object({
15658
+ type: external_exports.literal("skills-changed"),
15659
+ cursor: clientChannelCursorSchema,
15660
+ cwd: external_exports.string().optional()
15661
+ }),
15406
15662
  external_exports.object({ type: external_exports.literal("display-settings-changed"), cursor: clientChannelCursorSchema }),
15407
15663
  external_exports.object({
15408
15664
  type: external_exports.literal("preferences-changed"),
@@ -15600,6 +15856,30 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15600
15856
  external_exports.object({ ok: external_exports.literal(false), error: external_exports.object({ code: voiceErrorCodeSchema }).strict() }).strict()
15601
15857
  ]);
15602
15858
 
15859
+ // ../shared-contracts/dist/skills.js
15860
+ var SKILLS_LIST_METHOD = "codexhost/skills/list";
15861
+ var SKILLS_CHANGED_METHOD = "codexhost/skills/changed";
15862
+ var skillsListParamsSchema = external_exports.object({
15863
+ threadId: hostThreadIdSchema.optional(),
15864
+ cwd: external_exports.string().min(1).optional()
15865
+ }).strict().refine((params) => !(params.threadId && params.cwd), {
15866
+ message: "Specify threadId or cwd, not both"
15867
+ });
15868
+ var librarySkillSchema = external_exports.object({
15869
+ name: external_exports.string().min(1).regex(/^[^\s[\]]+$/u),
15870
+ description: external_exports.string().optional(),
15871
+ path: external_exports.string().min(1),
15872
+ scope: external_exports.enum(["project", "global"]),
15873
+ source: external_exports.string().min(1)
15874
+ }).strict();
15875
+ var skillsListResultSchema = external_exports.object({
15876
+ revision: external_exports.number().int().nonnegative(),
15877
+ complete: external_exports.boolean(),
15878
+ skills: external_exports.array(librarySkillSchema),
15879
+ warnings: external_exports.array(external_exports.string()).optional()
15880
+ }).strict();
15881
+ var skillsChangedParamsSchema = external_exports.object({ cwd: external_exports.string().min(1).optional() }).strict();
15882
+
15603
15883
  // ../shared-contracts/dist/web-access-tokens.js
15604
15884
  var webNetworkAccessUrlSchema = external_exports.object({
15605
15885
  /**
@@ -15706,8 +15986,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15706
15986
  var delegationReadParamsSchema = external_exports.strictObject({
15707
15987
  threadId: external_exports.string().min(1).max(1024),
15708
15988
  view: external_exports.enum(["result", "messages"]),
15709
- cursor: external_exports.string().min(1).max(8192).optional(),
15710
- limit: external_exports.number().int().min(1).max(100).optional()
15989
+ from: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional(),
15990
+ to: external_exports.number().int().min(1).max(Number.MAX_SAFE_INTEGER).optional()
15711
15991
  });
15712
15992
 
15713
15993
  // ../shared-contracts/dist/credential-imports.js
@@ -16204,6 +16484,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16204
16484
  "codexhost/voice/gateway-status",
16205
16485
  "codexhost/enrollment/list",
16206
16486
  "codexhost/enrollment/revoke",
16487
+ "codexhost/external-clients/list",
16488
+ "codexhost/external-clients/create",
16489
+ "codexhost/external-clients/update",
16490
+ "codexhost/external-clients/revoke",
16207
16491
  "codexhost/console/remote-connections",
16208
16492
  "codexhost/runtime/status",
16209
16493
  "codexhost/remote/ssh-setup",
@@ -16752,6 +17036,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16752
17036
  status: updateStatusSchema.nullable()
16753
17037
  });
16754
17038
 
17039
+ // ../shared-contracts/dist/thread-watch-notice.js
17040
+ var THREAD_WATCH_NOTICE_OUTCOMES = [
17041
+ "completed",
17042
+ "failed",
17043
+ "interrupted",
17044
+ "timedOut",
17045
+ "unreadable",
17046
+ "notFound"
17047
+ ];
17048
+ var ENTRY_PATTERN = new RegExp(String.raw`^- \[([^\]\n]+)\]\(thread://([^\s()<>"?#/]+)\): ` + `(${THREAD_WATCH_NOTICE_OUTCOMES.join("|")})(?:. (.+))?$`, "u");
17049
+
16755
17050
  // ../shared-contracts/dist/remote-runtime.js
16756
17051
  var RUNTIME_STATUS_METHOD = "codexhost/runtime/status";
16757
17052
  var REMOTE_UPDATE_METHOD = "codexhost/remote/update";
@@ -16802,6 +17097,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16802
17097
  archived: external_exports.boolean()
16803
17098
  }),
16804
17099
  external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
17100
+ external_exports.strictObject({
17101
+ kind: external_exports.literal("configure"),
17102
+ ...thread,
17103
+ epoch: identity,
17104
+ modelId: identity.optional(),
17105
+ thinkingOptionId: identity.optional(),
17106
+ permissionModeId: identity.optional()
17107
+ }).refine((value) => [value.modelId, value.thinkingOptionId, value.permissionModeId].filter((v) => v !== void 0).length === 1, "Select exactly one remote setting"),
16805
17108
  external_exports.strictObject({
16806
17109
  kind: external_exports.literal("prompt"),
16807
17110
  ...thread,
@@ -16875,6 +17178,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16875
17178
  external_exports.strictObject({ error: external_exports.strictObject({ code: external_exports.number().int(), message: external_exports.string() }) })
16876
17179
  ]);
16877
17180
 
17181
+ // ../shared-contracts/dist/thread-title.js
17182
+ var threadTitleInputSchema = external_exports.strictObject({
17183
+ prompt: external_exports.string().trim().min(1).max(2e3),
17184
+ cwd: external_exports.string().max(4096).nullable()
17185
+ });
17186
+ var threadTitleResultSchema = external_exports.string().trim().min(1).max(60).nullable();
17187
+
16878
17188
  // ../shared-contracts/dist/web-ui-extensions.js
16879
17189
  var webUiExtensionIdSchema = external_exports.string().max(214).regex(/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/u);
16880
17190
  var localizedTextSchema2 = external_exports.union([
@@ -16915,52 +17225,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16915
17225
  var webUiExtensionEnabledSchema = external_exports.object({ id: webUiExtensionIdSchema, enabled: external_exports.boolean() }).strict();
16916
17226
  var webUiExtensionRemoveSchema = external_exports.object({ id: webUiExtensionIdSchema }).strict();
16917
17227
 
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
17228
  // ../shared-contracts/dist/background-activity.js
16965
17229
  var backgroundActivitySchema = external_exports.strictObject({
16966
17230
  id: external_exports.string().min(1),
@@ -17382,6 +17646,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17382
17646
  ["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor" }]
17383
17647
  ];
17384
17648
 
17649
+ // ../../node_modules/lucide/dist/esm/icons/bot.mjs
17650
+ var Bot = [
17651
+ ["path", { d: "M12 8V4H8" }],
17652
+ ["rect", { width: "16", height: "12", x: "4", y: "8", rx: "2" }],
17653
+ ["path", { d: "M2 14h2" }],
17654
+ ["path", { d: "M20 14h2" }],
17655
+ ["path", { d: "M15 13v2" }],
17656
+ ["path", { d: "M9 13v2" }]
17657
+ ];
17658
+
17385
17659
  // src/settings/icons.ts
17386
17660
  var iconNodes = {
17387
17661
  settings: Settings,
@@ -17400,6 +17674,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17400
17674
  language: Languages,
17401
17675
  connections: PlugZap,
17402
17676
  enrollment: KeyRound,
17677
+ "mcp-clients": Bot,
17403
17678
  accounts: Users,
17404
17679
  "session-import": FolderInput,
17405
17680
  add: Plus,
@@ -19973,12 +20248,22 @@ th[aria-sort] .console-usage-sort__mark {
19973
20248
  });
19974
20249
  }
19975
20250
 
19976
- // src/renderer-cpa-live-voice-preference.ts
19977
- var voiceStateOwner = globalThis;
19978
- var { sharedRoutes, gatewayReady } = voiceStateOwner.__codexhostVoicePreferenceStateV1 ??= {
19979
- sharedRoutes: /* @__PURE__ */ new WeakMap(),
19980
- gatewayReady: /* @__PURE__ */ new WeakMap()
19981
- };
20251
+ // src/renderer-chat-voice-debug.ts
20252
+ var CHAT_VOICE_DEBUG_GLOBAL = "__codexhostChatVoiceDebug";
20253
+ var CHAT_VOICE_DEBUG_STORAGE_KEY = "codexhost.chat-voice-debug.v1";
20254
+ function chatVoiceDebug(event, detail = {}) {
20255
+ const entry = { t: Date.now(), event, ...detail };
20256
+ const owner = globalThis;
20257
+ const log = Array.isArray(owner[CHAT_VOICE_DEBUG_GLOBAL]) ? owner[CHAT_VOICE_DEBUG_GLOBAL] : [];
20258
+ log.push(entry);
20259
+ while (log.length > 40) log.shift();
20260
+ owner[CHAT_VOICE_DEBUG_GLOBAL] = log;
20261
+ try {
20262
+ owner.localStorage?.setItem(CHAT_VOICE_DEBUG_STORAGE_KEY, JSON.stringify(log));
20263
+ } catch {
20264
+ }
20265
+ owner.console?.info?.("[codexhost-chat-voice]", event, detail);
20266
+ }
19982
20267
 
19983
20268
  // src/voice-settings-sync.ts
19984
20269
  function desktopVoiceCallActive(owner) {
@@ -20119,6 +20404,12 @@ th[aria-sort] .console-usage-sort__mark {
20119
20404
  hookUnsupported: "This Desktop build is not supported for gateway voice",
20120
20405
  hookPending: "Attaching\u2026",
20121
20406
  hookDisabled: "Off",
20407
+ available: "Available",
20408
+ desktopSelected: "Desktop default selected",
20409
+ routeAllowed: "Allowed on this Desktop",
20410
+ pathUnavailable: "Not available on this Desktop.",
20411
+ chatUnavailableFooter: "Chat voice is not available on this Desktop.",
20412
+ workUnavailableFooter: "Work voice is not available on this Desktop.",
20122
20413
  configure: "Configure",
20123
20414
  setup: "Gateway setup",
20124
20415
  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 +20469,12 @@ th[aria-sort] .console-usage-sort__mark {
20178
20469
  hookUnsupported: "\u5F53\u524D Desktop \u7248\u672C\u4E0D\u652F\u6301\u7F51\u5173\u8BED\u97F3",
20179
20470
  hookPending: "\u6B63\u5728\u63A5\u5165\u2026",
20180
20471
  hookDisabled: "\u5DF2\u5173\u95ED",
20472
+ available: "\u53EF\u7528",
20473
+ desktopSelected: "\u5DF2\u9009\u62E9 Desktop \u9ED8\u8BA4",
20474
+ routeAllowed: "\u6B64 Desktop \u5DF2\u5141\u8BB8",
20475
+ pathUnavailable: "\u6B64 Desktop \u4E0A\u4E0D\u53EF\u7528\u3002",
20476
+ chatUnavailableFooter: "\u6B64 Desktop \u4E0A Chat \u8BED\u97F3\u4E0D\u53EF\u7528\u3002",
20477
+ workUnavailableFooter: "\u6B64 Desktop \u4E0A Work \u8BED\u97F3\u4E0D\u53EF\u7528\u3002",
20181
20478
  configure: "\u914D\u7F6E",
20182
20479
  setup: "\u7F51\u5173\u914D\u7F6E",
20183
20480
  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 +20508,955 @@ th[aria-sort] .console-usage-sort__mark {
20211
20508
  };
20212
20509
  }
20213
20510
 
20511
+ // src/renderer-cpa-live-voice-config.ts
20512
+ var CPA_LIVE_VOICE_HOOK_GLOBAL = "__codexhostCpaLiveVoiceHookV1";
20513
+ var ISOLATED_VOICE_PATHS = ["chat", "work-codex", "work-grok"];
20514
+ var PRODUCTION_DESKTOP_APP_PATH = "/Applications/ChatGPT.app";
20515
+ var PRODUCTION_WINDOWS_APPX_PATH = /(?:^|[\\/])WindowsApps[\\/]OpenAI\.(?:Codex|ChatGPT)_/i;
20516
+ function isProductionDesktopAppPath(appPath) {
20517
+ if (typeof appPath !== "string" || appPath.length === 0) return false;
20518
+ if (appPath === PRODUCTION_DESKTOP_APP_PATH) return true;
20519
+ return PRODUCTION_WINDOWS_APPX_PATH.test(appPath);
20520
+ }
20521
+ function isRecord(value) {
20522
+ return typeof value === "object" && value !== null;
20523
+ }
20524
+ function readCpaLiveVoiceHookConfig(globalObject) {
20525
+ const value = globalObject[CPA_LIVE_VOICE_HOOK_GLOBAL];
20526
+ if (!isRecord(value) || value.enabled !== true) return null;
20527
+ if (typeof value.auditedDesktopVersion !== "string" || typeof value.auditedAppInitialAsset !== "string") {
20528
+ return null;
20529
+ }
20530
+ return {
20531
+ enabled: true,
20532
+ auditedDesktopVersion: value.auditedDesktopVersion,
20533
+ auditedAppInitialAsset: value.auditedAppInitialAsset,
20534
+ ...typeof value.desktopPlatform === "string" ? { desktopPlatform: value.desktopPlatform } : {},
20535
+ ...typeof value.desktopVersion === "string" ? { desktopVersion: value.desktopVersion } : {},
20536
+ ...typeof value.desktopBuild === "string" ? { desktopBuild: value.desktopBuild } : {},
20537
+ ...typeof value.asarDigest === "string" ? { asarDigest: value.asarDigest } : {},
20538
+ ...typeof value.implementationRevision === "string" ? { implementationRevision: value.implementationRevision } : {},
20539
+ ...typeof value.desktopAppPath === "string" ? { desktopAppPath: value.desktopAppPath } : {},
20540
+ ...Array.isArray(value.voiceEvidence) ? { voiceEvidence: value.voiceEvidence } : {},
20541
+ ...isIsolatedVoiceQualification(value.isolatedQualification) ? { isolatedQualification: value.isolatedQualification } : {}
20542
+ };
20543
+ }
20544
+ function isIsolatedVoicePath(value) {
20545
+ return value === "chat" || value === "work-codex" || value === "work-grok";
20546
+ }
20547
+ function isIsolatedDesktopPlatform(value) {
20548
+ return value === "darwin" || value === "win32" || value === "linux";
20549
+ }
20550
+ function isolatedQualificationExpiresAtMs(expiresAt) {
20551
+ if (typeof expiresAt !== "string" || expiresAt.length === 0) return void 0;
20552
+ const parsed = Date.parse(expiresAt);
20553
+ return Number.isFinite(parsed) ? parsed : void 0;
20554
+ }
20555
+ function isolatedQualificationPathSet(value) {
20556
+ if (!isRecord(value)) return void 0;
20557
+ const pathsPresent = value.paths !== void 0;
20558
+ const pathPresent = value.path !== void 0;
20559
+ let listed;
20560
+ if (pathsPresent) {
20561
+ if (!Array.isArray(value.paths) || value.paths.length === 0) return void 0;
20562
+ if (value.paths.some((path) => !isIsolatedVoicePath(path))) return void 0;
20563
+ if (new Set(value.paths).size !== value.paths.length) return void 0;
20564
+ listed = ISOLATED_VOICE_PATHS.filter((path) => value.paths.includes(path));
20565
+ if (listed.length !== value.paths.length) return void 0;
20566
+ } else if (pathPresent) {
20567
+ if (!isIsolatedVoicePath(value.path)) return void 0;
20568
+ listed = [value.path];
20569
+ } else {
20570
+ return void 0;
20571
+ }
20572
+ if (pathPresent) {
20573
+ if (!isIsolatedVoicePath(value.path) || !listed.includes(value.path)) return void 0;
20574
+ }
20575
+ return listed;
20576
+ }
20577
+ function isolatedQualificationPaths(isolated) {
20578
+ return isolatedQualificationPathSet(isolated) ?? [];
20579
+ }
20580
+ function isIsolatedVoiceQualification(value, now = Date.now()) {
20581
+ if (!isRecord(value)) return false;
20582
+ const paths = isolatedQualificationPathSet(value);
20583
+ if (!paths || paths.length === 0) return false;
20584
+ if (typeof value.appPath === "string" && isProductionDesktopAppPath(value.appPath)) return false;
20585
+ const expiresAtMs = isolatedQualificationExpiresAtMs(value.expiresAt);
20586
+ if (expiresAtMs === void 0 || expiresAtMs <= now) return false;
20587
+ 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";
20588
+ }
20589
+
20590
+ // src/renderer-voice-implementation-revision.generated.ts
20591
+ var VOICE_IMPLEMENTATION_REVISION = "0a2ee1b441686523";
20592
+
20593
+ // src/renderer-voice-profiles.ts
20594
+ var NATIVE_CHAT_VOICE_VERSION = "26.1027.61615";
20595
+ var NATIVE_CHAT_INITIAL_ASSET = "app-initial-18b189e867e7.js";
20596
+ var START_ASSET = "start-voice-221a396d38a5.js";
20597
+ var BASELINE_NAMED_CHAT_ROLES = {
20598
+ initializeFrom: "initial",
20599
+ initialize: "oT",
20600
+ startShape: "module",
20601
+ voiceSessionSelector: "SPn",
20602
+ reactFactory: "FBt",
20603
+ reactDomFactory: "PNt",
20604
+ prewarmController: "VoiceInstantConnectCacheController",
20605
+ initial: {
20606
+ MOr: "MOr",
20607
+ CDr: "CDr",
20608
+ B1n: "B1n",
20609
+ SPn: "SPn",
20610
+ oTFrom: "initial",
20611
+ oT: "oT",
20612
+ aTFrom: "initial",
20613
+ aT: "aT",
20614
+ Ycr: "Ycr",
20615
+ Nir: "Nir",
20616
+ n0n: "n0n",
20617
+ Y1n: "Y1n",
20618
+ HJt: "HJt"
20619
+ },
20620
+ shared: { Qst: "Qst", FBt: "FBt", PNt: "PNt", Vot: "Vot" }
20621
+ };
20622
+ var NAMED_CHAT_ROLES_26_1027_61615 = {
20623
+ initializeFrom: "primary",
20624
+ initialize: "Qp",
20625
+ startShape: "module",
20626
+ voiceSessionSelector: "etn",
20627
+ reactFactory: "pWt",
20628
+ reactDomFactory: "GFt",
20629
+ prewarmController: "VoiceInstantConnectCacheController",
20630
+ initial: {
20631
+ MOr: "p5n",
20632
+ CDr: "w6n",
20633
+ B1n: "_On",
20634
+ SPn: "etn",
20635
+ oTFrom: "primary",
20636
+ oT: "Qp",
20637
+ aTFrom: "primary",
20638
+ aT: "Zp",
20639
+ Ycr: "ofr",
20640
+ Nir: "yEn",
20641
+ n0n: "FOn",
20642
+ Y1n: "JOn",
20643
+ HJt: "Z6"
20644
+ },
20645
+ shared: { Qst: "klt", FBt: "pWt", PNt: "GFt", Vot: "_ct" }
20646
+ };
20647
+ var NAMED_CHAT_ROLES_26_1027_30824 = {
20648
+ initializeFrom: "primary",
20649
+ initialize: "Yp",
20650
+ startShape: "module",
20651
+ voiceSessionSelector: "Xen",
20652
+ reactFactory: "pWt",
20653
+ reactDomFactory: "GFt",
20654
+ prewarmController: "VoiceInstantConnectCacheController",
20655
+ initial: {
20656
+ MOr: "l5n",
20657
+ CDr: "b6n",
20658
+ B1n: "pOn",
20659
+ SPn: "Xen",
20660
+ oTFrom: "primary",
20661
+ oT: "Yp",
20662
+ aTFrom: "primary",
20663
+ aT: "Jp",
20664
+ Ycr: "nfr",
20665
+ Nir: "hEn",
20666
+ n0n: "jOn",
20667
+ Y1n: "wOn",
20668
+ HJt: "J6"
20669
+ },
20670
+ shared: { Qst: "klt", FBt: "pWt", PNt: "GFt", Vot: "_ct" }
20671
+ };
20672
+ var NAMED_CHAT_ROLES_26_1023_51421 = {
20673
+ initializeFrom: "primary",
20674
+ initialize: "gm",
20675
+ startShape: "module",
20676
+ voiceSessionSelector: "s$t",
20677
+ reactFactory: "OHt",
20678
+ reactDomFactory: "wPt",
20679
+ prewarmController: "VoiceInstantConnectCacheController",
20680
+ initial: {
20681
+ MOr: "x1n",
20682
+ CDr: "MQn",
20683
+ B1n: "Opn",
20684
+ SPn: "s$t",
20685
+ oTFrom: "primary",
20686
+ oT: "gm",
20687
+ aTFrom: "primary",
20688
+ aT: "hm",
20689
+ Ycr: "Zir",
20690
+ Nir: "ejn",
20691
+ n0n: "Kpn",
20692
+ Y1n: "zpn",
20693
+ HJt: "k3"
20694
+ },
20695
+ shared: { Qst: "uct", FBt: "OHt", PNt: "wPt", Vot: "ast" }
20696
+ };
20697
+ var NAMED_CHAT_ROLES_26_1021_31345 = {
20698
+ initializeFrom: "primary",
20699
+ initialize: "um",
20700
+ startShape: "entityBusiness",
20701
+ startT: "r",
20702
+ startN: "i",
20703
+ voiceSessionSelector: "qXt",
20704
+ reactFactory: "XVt",
20705
+ reactDomFactory: "KNt",
20706
+ prewarmController: "VoiceInstantConnectCacheController",
20707
+ initial: {
20708
+ MOr: "CQn",
20709
+ CDr: "PXn",
20710
+ B1n: "tdn",
20711
+ SPn: "qXt",
20712
+ oTFrom: "primary",
20713
+ oT: "um",
20714
+ aTFrom: "primary",
20715
+ aT: "lm",
20716
+ Ycr: "Xkn",
20717
+ Nir: "yAn",
20718
+ n0n: "ydn",
20719
+ Y1n: "fdn",
20720
+ HJt: "R2"
20721
+ },
20722
+ shared: { Qst: "Bst", FBt: "XVt", PNt: "KNt", Vot: "Fot" }
20723
+ };
20724
+ var NATIVE_CHAT_VOICE_ASSETS = [
20725
+ {
20726
+ platform: "darwin",
20727
+ version: NATIVE_CHAT_VOICE_VERSION,
20728
+ initial: NATIVE_CHAT_INITIAL_ASSET,
20729
+ shared: "app-shared-601019a330d7.js",
20730
+ primary: "app-primary-75d53eef2374.js",
20731
+ start: START_ASSET,
20732
+ prewarm: "voice-prewarm-a7cd5160219e.js",
20733
+ settings: "voice-settings-320cf1212f2c.js",
20734
+ roles: NAMED_CHAT_ROLES_26_1027_61615
20735
+ },
20736
+ {
20737
+ platform: "darwin",
20738
+ version: "26.1027.30824",
20739
+ initial: "app-initial-60f141238751.js",
20740
+ shared: "app-shared-7815d5a1a42a.js",
20741
+ primary: "app-primary-95a0e6d83f1e.js",
20742
+ start: "start-voice-4c77215aa289.js",
20743
+ prewarm: "voice-prewarm-e49220ad61bd.js",
20744
+ roles: NAMED_CHAT_ROLES_26_1027_30824
20745
+ },
20746
+ {
20747
+ platform: "darwin",
20748
+ version: "26.1023.51421",
20749
+ initial: "app-initial-bc8256c3cccb.js",
20750
+ shared: "app-shared-e9f258fd3588.js",
20751
+ primary: "app-primary-b7f335b763ca.js",
20752
+ start: "start-voice-a0564cefdc95.js",
20753
+ prewarm: "voice-prewarm-53aefded152c.js",
20754
+ settings: "voice-settings-1a9f68eb7ae8.js",
20755
+ roles: NAMED_CHAT_ROLES_26_1023_51421
20756
+ },
20757
+ {
20758
+ platform: "darwin",
20759
+ version: "26.1021.31345",
20760
+ initial: "app-initial-feb30b196d11.js",
20761
+ shared: "app-shared-2cae01273bae.js",
20762
+ primary: "app-primary-7d7313419f84.js",
20763
+ start: "entity-business-profile-reference-b68063dfc05d.js",
20764
+ prewarm: "voice-prewarm-d672f1245523.js",
20765
+ settings: "voice-settings-14000f5c9fc2.js",
20766
+ roles: NAMED_CHAT_ROLES_26_1021_31345
20767
+ },
20768
+ {
20769
+ platform: "win32",
20770
+ version: "26.1021.31345",
20771
+ initial: "app-initial-438d1df57f70.js",
20772
+ shared: "app-shared-955d52676f9c.js",
20773
+ primary: "app-primary-844e405f2b90.js",
20774
+ start: "entity-business-profile-reference-241c52d811f4.js",
20775
+ prewarm: "voice-prewarm-8b47c50a17ae.js",
20776
+ settings: "voice-settings-b1c1633136a5.js",
20777
+ roles: NAMED_CHAT_ROLES_26_1021_31345
20778
+ },
20779
+ {
20780
+ platform: "darwin",
20781
+ version: "26.1016.62342",
20782
+ initial: "app-initial-dddef47d6ef6.js",
20783
+ shared: "app-shared-fc3316d48427.js",
20784
+ start: "start-voice-7cbf0a39d53b.js",
20785
+ prewarm: "voice-prewarm-5d107129ac1c.js",
20786
+ roles: BASELINE_NAMED_CHAT_ROLES
20787
+ },
20788
+ {
20789
+ platform: "darwin",
20790
+ version: "26.1016.61520",
20791
+ initial: "app-initial-c95ddb62696e.js",
20792
+ shared: "app-shared-2eda13eb7044.js",
20793
+ start: "start-voice-18b08f0acdd7.js",
20794
+ prewarm: "voice-prewarm-94271e581c1b.js",
20795
+ roles: BASELINE_NAMED_CHAT_ROLES
20796
+ }
20797
+ ];
20798
+ var CLIENT_OWNED_VOICE_VERSION = "26.1027.61615";
20799
+ var CLIENT_OWNED_VOICE_INITIAL_ASSET = "app-initial-18b189e867e7.js";
20800
+ var CLIENT_OWNED_VOICE_SHARED_ASSET = "app-shared-601019a330d7.js";
20801
+ var CLIENT_OWNED_VOICE_OVERLAY_ASSET = "avatar-overlay-native-page-920d05377bbe.js";
20802
+ var CLIENT_OWNED_VOICE_ASSETS = [
20803
+ {
20804
+ platform: "darwin",
20805
+ version: CLIENT_OWNED_VOICE_VERSION,
20806
+ initial: CLIENT_OWNED_VOICE_INITIAL_ASSET,
20807
+ shared: CLIENT_OWNED_VOICE_SHARED_ASSET,
20808
+ overlay: CLIENT_OWNED_VOICE_OVERLAY_ASSET,
20809
+ init: "Adr",
20810
+ fetch: "Odr",
20811
+ fetchFrom: "initial",
20812
+ bridge: "LRt",
20813
+ services: "Vct",
20814
+ responseError: "Pdr",
20815
+ responseErrorFrom: "initial",
20816
+ capabilityInit: "Ler",
20817
+ capabilityFamily: "Ier",
20818
+ inferenceGateFamily: "Vfr"
20819
+ },
20820
+ {
20821
+ platform: "darwin",
20822
+ version: "26.1027.30824",
20823
+ initial: "app-initial-60f141238751.js",
20824
+ shared: "app-shared-7815d5a1a42a.js",
20825
+ overlay: "avatar-overlay-native-page-d9d400e751cd.js",
20826
+ init: "Edr",
20827
+ fetch: "wdr",
20828
+ fetchFrom: "initial",
20829
+ bridge: "LRt",
20830
+ services: "Vct",
20831
+ responseError: "Adr",
20832
+ responseErrorFrom: "initial",
20833
+ capabilityInit: "Ner",
20834
+ capabilityFamily: "Mer",
20835
+ inferenceGateFamily: "Lfr"
20836
+ },
20837
+ {
20838
+ platform: "darwin",
20839
+ version: "26.1023.51421",
20840
+ initial: "app-initial-bc8256c3cccb.js",
20841
+ shared: "app-shared-e9f258fd3588.js",
20842
+ overlay: "avatar-overlay-native-page-af6c3662f64f.js",
20843
+ init: "xir",
20844
+ fetch: "yir",
20845
+ fetchFrom: "initial",
20846
+ bridge: "QIt",
20847
+ services: "Sst",
20848
+ capabilityInit: "N4n",
20849
+ capabilityFamily: "M4n",
20850
+ inferenceGateFamily: "Par"
20851
+ },
20852
+ {
20853
+ platform: "darwin",
20854
+ version: "26.1021.31345",
20855
+ initial: "app-initial-feb30b196d11.js",
20856
+ shared: "app-shared-2cae01273bae.js",
20857
+ overlay: "avatar-overlay-native-page-d549db3706f1.js",
20858
+ fetch: "Htr",
20859
+ fetchFrom: "initial",
20860
+ bridge: "bIt",
20861
+ services: "Qot",
20862
+ capabilityInit: "l0n",
20863
+ capabilityFamily: "c0n",
20864
+ inferenceGateFamily: "Cnr"
20865
+ },
20866
+ {
20867
+ platform: "win32",
20868
+ version: "26.1021.31345",
20869
+ initial: "app-initial-438d1df57f70.js",
20870
+ shared: "app-shared-955d52676f9c.js",
20871
+ overlay: "avatar-overlay-native-page-1549fe5955e1.js",
20872
+ fetch: "Htr",
20873
+ fetchFrom: "initial",
20874
+ bridge: "bIt",
20875
+ services: "Qot",
20876
+ capabilityInit: "l0n",
20877
+ capabilityFamily: "c0n",
20878
+ inferenceGateFamily: "Cnr"
20879
+ },
20880
+ {
20881
+ platform: "darwin",
20882
+ version: "26.1016.62342",
20883
+ initial: "app-initial-dddef47d6ef6.js",
20884
+ shared: "app-shared-fc3316d48427.js",
20885
+ overlay: "avatar-overlay-native-page-ef8332c6a2fb.js",
20886
+ init: "Oit",
20887
+ fetch: "Eit",
20888
+ bridge: "AFt",
20889
+ responseError: "Mit",
20890
+ services: "ist",
20891
+ capabilityInit: "njr",
20892
+ capabilityFamily: "tjr",
20893
+ inferenceGateFamily: "uBr"
20894
+ },
20895
+ {
20896
+ platform: "darwin",
20897
+ version: "26.1016.61520",
20898
+ initial: "app-initial-c95ddb62696e.js",
20899
+ shared: "app-shared-2eda13eb7044.js",
20900
+ overlay: "avatar-overlay-native-page-fcc17283519a.js",
20901
+ init: "Oit",
20902
+ fetch: "Eit",
20903
+ bridge: "AFt",
20904
+ responseError: "Mit",
20905
+ services: "ist",
20906
+ capabilityInit: "njr",
20907
+ capabilityFamily: "tjr",
20908
+ inferenceGateFamily: "uBr"
20909
+ }
20910
+ ];
20911
+ var HISTORICAL_CPA_LIVE_VOICE_DESKTOP_VERSION = "26.1007.30912";
20912
+ var HISTORICAL_CPA_LIVE_VOICE_APP_INITIAL_ASSET = "app-initial-6350d04672d0.js";
20913
+ var HASHED_WEBPACK_VOICE_VERSION = "26.1106.51428";
20914
+ var HASHED_WEBPACK_VOICE_RUNTIME_ASSET = "348410.1a97dde15f.js";
20915
+ var HASHED_NATIVE_CHAT_START_ASSET = "530142.1e51e7f4b2.js";
20916
+ var HASHED_NATIVE_CHAT_PREWARM_ASSET = "586788.c871bb9b7d.js";
20917
+ var NATIVE_CHAT_VOICE_CHUNKS = [
20918
+ 157963,
20919
+ 74692,
20920
+ 198336,
20921
+ 543449,
20922
+ 904485,
20923
+ 459859,
20924
+ 822019,
20925
+ 431137,
20926
+ 108823,
20927
+ 208490,
20928
+ 384218,
20929
+ 843292,
20930
+ 652289,
20931
+ 907652,
20932
+ 796195,
20933
+ 144338,
20934
+ 140959,
20935
+ 587936,
20936
+ 904817,
20937
+ 426774,
20938
+ 452048,
20939
+ 490954,
20940
+ 445991,
20941
+ 612928,
20942
+ 42903,
20943
+ 363341,
20944
+ 997826,
20945
+ 223736,
20946
+ 21878,
20947
+ 89655,
20948
+ 333490,
20949
+ 422391,
20950
+ 792483,
20951
+ 530142
20952
+ ];
20953
+ var HASHED_NATIVE_CHAT_ROLES = {
20954
+ startModuleId: "j9r7",
20955
+ prewarmModuleId: "oWM3",
20956
+ appScopeModuleId: "OWtl",
20957
+ appScopeExport: "u",
20958
+ routeScopeModuleId: "Oj9r",
20959
+ routeScopeExport: "GD",
20960
+ composerScopeModuleId: "Sd8U",
20961
+ composerScopeExport: "PR",
20962
+ storeModuleId: "bgok",
20963
+ storeExport: "MH",
20964
+ runtimeModuleId: "cY1t",
20965
+ runtimeEnableExport: "Iy",
20966
+ runtimeLoaderExport: "Re",
20967
+ reactModuleId: "zd8w",
20968
+ reactDomModuleId: "CE87",
20969
+ startInitializeExport: "initializeVoiceSession",
20970
+ prewarmControllerExport: "VoiceInstantConnectCacheController",
20971
+ /** Conversation store: adopted backend ID, transcript mapping, current node. */
20972
+ conversationModuleId: "MrGp",
20973
+ backendConversationExport: "jS",
20974
+ transcriptMappingExport: "Jv",
20975
+ currentNodeExport: "Od",
20976
+ /** App location atom used as the draft-selection origin. */
20977
+ locationModuleId: "nlNF",
20978
+ locationExport: "x2",
20979
+ /** AppNavigation.navigate(scope, location). */
20980
+ navigationModuleId: "E8Sp",
20981
+ navigationExport: "oo",
20982
+ /** `/c/:conversationId` builder; not a GPT `/g/` path. */
20983
+ conversationPathModuleId: "jAnS",
20984
+ conversationPathExport: "mv"
20985
+ };
20986
+ var HASHED_OVERLAY_VOICE_ROLES = {
20987
+ fetchFactoryId: "GDNt",
20988
+ fetchExport: "_n",
20989
+ bridgeModuleId: "TL6G",
20990
+ bridgeExport: "O1",
20991
+ responseErrorModuleId: "eShZ",
20992
+ responseErrorExport: "s1",
20993
+ capabilityModuleId: "ChYf",
20994
+ capabilityExport: "G",
20995
+ inferenceGateModuleId: "OMIV",
20996
+ inferenceGateExport: "JW",
20997
+ /** Workspace voice access derived atom `P` via `zTeN.un`; Instant Connect ANDs `Y3.status`. */
20998
+ voiceAccessModuleId: "eFn4",
20999
+ voiceAccessExport: "Y3"
21000
+ };
21001
+ function hashedVoiceCandidateOwner(config2) {
21002
+ return config2.desktopVersion === HASHED_WEBPACK_VOICE_VERSION && (config2.desktopPlatform === "darwin" || config2.desktopPlatform === "win32");
21003
+ }
21004
+ function hashedVoiceProfileSupported(config2) {
21005
+ return config2.desktopVersion === HASHED_WEBPACK_VOICE_VERSION && config2.desktopPlatform === "darwin";
21006
+ }
21007
+ function reviewedOverlayHookDesktopVersions() {
21008
+ const versions = /* @__PURE__ */ new Set([
21009
+ HISTORICAL_CPA_LIVE_VOICE_DESKTOP_VERSION,
21010
+ HASHED_WEBPACK_VOICE_VERSION
21011
+ ]);
21012
+ for (const profile of NATIVE_CHAT_VOICE_ASSETS) versions.add(profile.version);
21013
+ for (const profile of CLIENT_OWNED_VOICE_ASSETS) versions.add(profile.version);
21014
+ return [...versions].sort();
21015
+ }
21016
+ var VOICE_PROFILE_PINS = {
21017
+ workVersion: CLIENT_OWNED_VOICE_VERSION,
21018
+ workInitial: CLIENT_OWNED_VOICE_INITIAL_ASSET,
21019
+ workShared: CLIENT_OWNED_VOICE_SHARED_ASSET,
21020
+ overlayAsset: CLIENT_OWNED_VOICE_OVERLAY_ASSET,
21021
+ chatVersion: NATIVE_CHAT_VOICE_VERSION,
21022
+ chatInitial: NATIVE_CHAT_INITIAL_ASSET,
21023
+ chatStart: START_ASSET,
21024
+ hashedVersion: HASHED_WEBPACK_VOICE_VERSION,
21025
+ hashedRuntimeAsset: HASHED_WEBPACK_VOICE_RUNTIME_ASSET,
21026
+ hashedStartAsset: HASHED_NATIVE_CHAT_START_ASSET,
21027
+ hashedPrewarmAsset: HASHED_NATIVE_CHAT_PREWARM_ASSET,
21028
+ historicalCpaVersion: HISTORICAL_CPA_LIVE_VOICE_DESKTOP_VERSION,
21029
+ historicalCpaInitial: HISTORICAL_CPA_LIVE_VOICE_APP_INITIAL_ASSET
21030
+ };
21031
+ var voiceProfilePins = {
21032
+ ...VOICE_PROFILE_PINS,
21033
+ overlayHookDesktopVersions: reviewedOverlayHookDesktopVersions()
21034
+ };
21035
+ function nativeChatVoiceKind(config2) {
21036
+ if (!config2.desktopVersion) return void 0;
21037
+ if (hashedVoiceProfileSupported(config2)) return "hashed";
21038
+ if (NATIVE_CHAT_VOICE_ASSETS.some(
21039
+ (profile) => profile.version === config2.desktopVersion && (config2.desktopPlatform === void 0 || profile.platform === config2.desktopPlatform)
21040
+ )) {
21041
+ return "named";
21042
+ }
21043
+ return void 0;
21044
+ }
21045
+ function nativeChatVoiceUnavailableReason(config2) {
21046
+ if (nativeChatVoiceKind(config2)) return void 0;
21047
+ if (!config2.desktopVersion) return "Chat voice is waiting for Desktop identity.";
21048
+ if (config2.desktopVersion === HASHED_WEBPACK_VOICE_VERSION && config2.desktopPlatform === "win32") {
21049
+ return "Chat voice is not qualified on this Windows Desktop.";
21050
+ }
21051
+ return "Chat voice is not qualified on this Desktop.";
21052
+ }
21053
+ function workVoiceUnavailableReason(config2) {
21054
+ if (hashedVoiceProfileSupported(config2)) return void 0;
21055
+ if (config2.desktopVersion !== void 0 && CLIENT_OWNED_VOICE_ASSETS.some(
21056
+ (profile) => profile.version === config2.desktopVersion && (config2.desktopPlatform === void 0 || profile.platform === config2.desktopPlatform)
21057
+ )) {
21058
+ return void 0;
21059
+ }
21060
+ if (!config2.desktopVersion) return "Work voice is waiting for Desktop identity.";
21061
+ if (config2.desktopVersion === HASHED_WEBPACK_VOICE_VERSION && config2.desktopPlatform === "win32") {
21062
+ return "Work voice is not qualified on this Windows Desktop.";
21063
+ }
21064
+ return "Work voice is not qualified on this Desktop.";
21065
+ }
21066
+ function profileIdentityKey(product, platform, version2) {
21067
+ return `${product}:${platform ?? "unknown"}:${version2 ?? "unknown"}`;
21068
+ }
21069
+ function fnv1aHex(value) {
21070
+ let hash2 = 0xcbf29ce484222325n;
21071
+ for (let index = 0; index < value.length; index += 1) {
21072
+ hash2 ^= BigInt(value.charCodeAt(index));
21073
+ hash2 = hash2 * 0x100000001b3n & 0xffffffffffffffffn;
21074
+ }
21075
+ return hash2.toString(16).padStart(16, "0");
21076
+ }
21077
+ function digestJson(value) {
21078
+ return fnv1aHex(JSON.stringify(value));
21079
+ }
21080
+ function legacyRetainedVoiceLanes() {
21081
+ return [
21082
+ ...NATIVE_CHAT_VOICE_ASSETS.map((profile) => ({
21083
+ path: "chat",
21084
+ platform: profile.platform,
21085
+ version: profile.version
21086
+ })),
21087
+ ...CLIENT_OWNED_VOICE_ASSETS.map((profile) => ({
21088
+ path: "work-codex",
21089
+ platform: profile.platform,
21090
+ version: profile.version
21091
+ }))
21092
+ ];
21093
+ }
21094
+ function voiceProfileOwner(product, platform, version2) {
21095
+ if (product === "chat") {
21096
+ if (hashedVoiceCandidateOwner({ desktopVersion: version2, desktopPlatform: platform })) {
21097
+ return {
21098
+ kind: "hashed-chat",
21099
+ platform,
21100
+ version: version2,
21101
+ roles: HASHED_NATIVE_CHAT_ROLES,
21102
+ chunks: [...NATIVE_CHAT_VOICE_CHUNKS],
21103
+ webpack: HASHED_WEBPACK_VOICE_RUNTIME_ASSET,
21104
+ start: HASHED_NATIVE_CHAT_START_ASSET,
21105
+ prewarm: HASHED_NATIVE_CHAT_PREWARM_ASSET
21106
+ };
21107
+ }
21108
+ const named = NATIVE_CHAT_VOICE_ASSETS.find(
21109
+ (profile) => profile.platform === platform && profile.version === version2
21110
+ );
21111
+ if (!named) return void 0;
21112
+ return {
21113
+ kind: "named-chat",
21114
+ platform: named.platform,
21115
+ version: named.version,
21116
+ initial: named.initial,
21117
+ shared: named.shared,
21118
+ primary: named.primary ?? null,
21119
+ start: named.start,
21120
+ prewarm: named.prewarm,
21121
+ settings: named.settings ?? null,
21122
+ roles: named.roles
21123
+ };
21124
+ }
21125
+ const namedWork = CLIENT_OWNED_VOICE_ASSETS.find(
21126
+ (profile) => profile.platform === platform && profile.version === version2
21127
+ );
21128
+ if (namedWork) {
21129
+ return {
21130
+ kind: "named-work",
21131
+ platform: namedWork.platform,
21132
+ version: namedWork.version,
21133
+ initial: namedWork.initial,
21134
+ shared: namedWork.shared,
21135
+ overlay: namedWork.overlay,
21136
+ init: namedWork.init ?? null,
21137
+ fetch: namedWork.fetch,
21138
+ fetchFrom: namedWork.fetchFrom ?? null,
21139
+ bridge: namedWork.bridge,
21140
+ services: namedWork.services,
21141
+ responseError: namedWork.responseError ?? null,
21142
+ responseErrorFrom: namedWork.responseErrorFrom ?? null,
21143
+ capabilityInit: namedWork.capabilityInit,
21144
+ capabilityFamily: namedWork.capabilityFamily,
21145
+ inferenceGateFamily: namedWork.inferenceGateFamily
21146
+ };
21147
+ }
21148
+ if (hashedVoiceCandidateOwner({ desktopVersion: version2, desktopPlatform: platform })) {
21149
+ return {
21150
+ kind: "hashed-work",
21151
+ platform,
21152
+ version: version2,
21153
+ overlay: HASHED_OVERLAY_VOICE_ROLES,
21154
+ webpack: HASHED_WEBPACK_VOICE_RUNTIME_ASSET
21155
+ };
21156
+ }
21157
+ return void 0;
21158
+ }
21159
+ function voiceProfileDigest(product, platform, version2) {
21160
+ const owner = voiceProfileOwner(product, platform, version2);
21161
+ return owner ? digestJson(owner) : void 0;
21162
+ }
21163
+ function voiceImplementationRevision() {
21164
+ return VOICE_IMPLEMENTATION_REVISION;
21165
+ }
21166
+
21167
+ // src/renderer-voice-evidence.ts
21168
+ var VOICE_EVIDENCE_STAGES = [
21169
+ "structural",
21170
+ "activation",
21171
+ "connection",
21172
+ "identity",
21173
+ "speech",
21174
+ "cleanup"
21175
+ ];
21176
+ var REQUIRED_STAGES = VOICE_EVIDENCE_STAGES;
21177
+ function recordObject(value) {
21178
+ return value !== null && typeof value === "object";
21179
+ }
21180
+ function missingStages(record3) {
21181
+ return REQUIRED_STAGES.filter((stage) => record3.stages[stage] !== true);
21182
+ }
21183
+ function productForPath(path) {
21184
+ return path === "chat" ? "chat" : "work";
21185
+ }
21186
+ function evaluateVoiceEvidence(record3) {
21187
+ const expectedKey = profileIdentityKey(
21188
+ productForPath(record3.path),
21189
+ record3.platform,
21190
+ record3.desktopVersion
21191
+ );
21192
+ if (record3.profileKey !== expectedKey) {
21193
+ return {
21194
+ outcome: "mismatch",
21195
+ qualified: false,
21196
+ missing: missingStages(record3),
21197
+ reason: "evidence-profile-mismatch"
21198
+ };
21199
+ }
21200
+ if (typeof record3.implementationRevision !== "string" || record3.implementationRevision === "") {
21201
+ return {
21202
+ outcome: "mismatch",
21203
+ qualified: false,
21204
+ missing: missingStages(record3),
21205
+ reason: "missing-implementation-revision"
21206
+ };
21207
+ }
21208
+ if (record3.policy !== "legacy-retained" && record3.implementationRevision !== voiceImplementationRevision()) {
21209
+ return {
21210
+ outcome: "mismatch",
21211
+ qualified: false,
21212
+ missing: missingStages(record3),
21213
+ reason: "implementation-revision-mismatch"
21214
+ };
21215
+ }
21216
+ if (record3.policy !== "legacy-retained") {
21217
+ if (typeof record3.desktopBuild !== "string" || record3.desktopBuild === "" || typeof record3.asarDigest !== "string" || record3.asarDigest === "") {
21218
+ return {
21219
+ outcome: "mismatch",
21220
+ qualified: false,
21221
+ missing: missingStages(record3),
21222
+ reason: "missing-native-identity"
21223
+ };
21224
+ }
21225
+ }
21226
+ if (typeof record3.profileDigest !== "string" || record3.profileDigest === "") {
21227
+ return {
21228
+ outcome: "mismatch",
21229
+ qualified: false,
21230
+ missing: missingStages(record3),
21231
+ reason: "missing-profile-digest"
21232
+ };
21233
+ }
21234
+ const expectedDigest = voiceProfileDigest(
21235
+ productForPath(record3.path),
21236
+ record3.platform,
21237
+ record3.desktopVersion
21238
+ );
21239
+ if (!expectedDigest || record3.profileDigest !== expectedDigest) {
21240
+ return {
21241
+ outcome: "mismatch",
21242
+ qualified: false,
21243
+ missing: missingStages(record3),
21244
+ reason: "stale-profile-digest"
21245
+ };
21246
+ }
21247
+ if (record3.startAcknowledged === true && record3.connected !== true) {
21248
+ return {
21249
+ outcome: "incomplete",
21250
+ qualified: false,
21251
+ missing: missingStages(record3).length > 0 ? missingStages(record3) : ["connection"],
21252
+ reason: "start-acknowledged-without-connection"
21253
+ };
21254
+ }
21255
+ if (record3.path !== "chat" && record3.gatewayOwned !== true && record3.stages.connection === true) {
21256
+ return {
21257
+ outcome: "incomplete",
21258
+ qualified: false,
21259
+ missing: missingStages(record3).length > 0 ? missingStages(record3) : ["connection"],
21260
+ reason: "route-only-without-connected-gateway"
21261
+ };
21262
+ }
21263
+ if (record3.speech?.attended === true && (!record3.speech.witness || !record3.speech.run)) {
21264
+ return {
21265
+ outcome: "incomplete",
21266
+ qualified: false,
21267
+ missing: missingStages(record3).includes("speech") ? missingStages(record3) : ["speech"],
21268
+ reason: "attended-speech-missing-provenance"
21269
+ };
21270
+ }
21271
+ if (record3.speech && record3.speech.attended !== true) {
21272
+ return {
21273
+ outcome: "incomplete",
21274
+ qualified: false,
21275
+ missing: missingStages(record3),
21276
+ reason: "synthetic-speech-is-not-qualification"
21277
+ };
21278
+ }
21279
+ const missing = missingStages(record3);
21280
+ if (missing.length > 0) {
21281
+ return {
21282
+ outcome: "incomplete",
21283
+ qualified: false,
21284
+ missing,
21285
+ reason: `missing:${missing.join(",")}`
21286
+ };
21287
+ }
21288
+ 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) {
21289
+ return {
21290
+ outcome: "fail",
21291
+ qualified: false,
21292
+ missing: [],
21293
+ reason: "required-assertions-failed"
21294
+ };
21295
+ }
21296
+ return { outcome: "pass", qualified: true, missing: [], reason: "qualified" };
21297
+ }
21298
+ function evidenceMatchesRuntime(record3, config2) {
21299
+ if (record3.platform !== config2.desktopPlatform) return false;
21300
+ if (record3.desktopVersion !== config2.desktopVersion) return false;
21301
+ if (record3.implementationRevision !== config2.implementationRevision) return false;
21302
+ if (record3.policy === "legacy-retained") return true;
21303
+ 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 === "") {
21304
+ return false;
21305
+ }
21306
+ return record3.desktopBuild === config2.desktopBuild && record3.asarDigest === config2.asarDigest;
21307
+ }
21308
+ function isolatedQualificationMatches(path, config2) {
21309
+ const isolated = config2.isolatedQualification;
21310
+ if (!isIsolatedVoiceQualification(isolated)) return false;
21311
+ if (!isolatedQualificationPaths(isolated).includes(path)) return false;
21312
+ if (isProductionDesktopAppPath(isolated.appPath) || isProductionDesktopAppPath(config2.desktopAppPath))
21313
+ return false;
21314
+ if (isolated.desktopPlatform !== config2.desktopPlatform) return false;
21315
+ 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 !== "";
21316
+ }
21317
+ function unsupportedReason(path, config2) {
21318
+ if (path === "chat") {
21319
+ return nativeChatVoiceUnavailableReason(config2) ?? "Chat voice is not qualified on this Desktop.";
21320
+ }
21321
+ return workVoiceUnavailableReason(config2) ?? "Work voice is not qualified on this Desktop.";
21322
+ }
21323
+ function decidePath(path, config2, records) {
21324
+ if (!config2.desktopVersion || !config2.desktopPlatform) {
21325
+ return { enabled: false, policy: "unreviewed", reason: "waiting-for-identity" };
21326
+ }
21327
+ const pathRecords = records.filter((record3) => record3.path === path);
21328
+ if (pathRecords.length > 0) {
21329
+ const matching = pathRecords.filter((record4) => evidenceMatchesRuntime(record4, config2));
21330
+ if (matching.length === 0) {
21331
+ return { enabled: false, policy: "unreviewed", reason: "stale-or-wrong-platform-evidence" };
21332
+ }
21333
+ for (const record4 of matching) {
21334
+ const evaluation = evaluateVoiceEvidence(record4);
21335
+ if (!evaluation.qualified) {
21336
+ return { enabled: false, policy: "unreviewed", reason: evaluation.reason };
21337
+ }
21338
+ }
21339
+ const record3 = matching[0];
21340
+ if (!record3) {
21341
+ return { enabled: false, policy: "unreviewed", reason: "missing-evidence" };
21342
+ }
21343
+ if (hashedVoiceCandidateOwner(config2) && !hashedVoiceProfileSupported(config2)) {
21344
+ } else {
21345
+ return {
21346
+ enabled: true,
21347
+ policy: record3.policy === "legacy-retained" ? "legacy-retained" : "reviewed"
21348
+ };
21349
+ }
21350
+ }
21351
+ const digest = voiceProfileDigest(
21352
+ productForPath(path),
21353
+ config2.desktopPlatform,
21354
+ config2.desktopVersion
21355
+ );
21356
+ if (!digest) {
21357
+ return { enabled: false, policy: "unreviewed", reason: unsupportedReason(path, config2) };
21358
+ }
21359
+ const legacy = legacyRetainedVoiceLanes().find(
21360
+ (lane) => lane.path === path && lane.platform === config2.desktopPlatform && lane.version === config2.desktopVersion
21361
+ );
21362
+ if (legacy) {
21363
+ return {
21364
+ enabled: true,
21365
+ policy: "legacy-retained",
21366
+ reason: "legacy-retained-named-profile"
21367
+ };
21368
+ }
21369
+ if (isolatedQualificationMatches(path, config2)) {
21370
+ return {
21371
+ enabled: true,
21372
+ policy: "unreviewed",
21373
+ reason: "isolated-qualification"
21374
+ };
21375
+ }
21376
+ return { enabled: false, policy: "unreviewed", reason: "missing-evidence" };
21377
+ }
21378
+ function isVoiceEvidenceRecord(value) {
21379
+ if (!recordObject(value)) return false;
21380
+ 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);
21381
+ }
21382
+ function voiceEvidenceRecordsFromConfig(config2) {
21383
+ return (config2.voiceEvidence ?? []).filter(isVoiceEvidenceRecord);
21384
+ }
21385
+ function startupVoiceGate(config2) {
21386
+ const records = [
21387
+ ...voiceEvidenceRecordsFromConfig(config2),
21388
+ ...config2.evidence && isVoiceEvidenceRecord(config2.evidence) ? [config2.evidence] : []
21389
+ ];
21390
+ const chat = decidePath("chat", config2, records);
21391
+ const workCodex = decidePath("work-codex", config2, records);
21392
+ const workGrok = decidePath("work-grok", config2, records);
21393
+ return {
21394
+ chat,
21395
+ "work-codex": workCodex,
21396
+ "work-grok": workGrok,
21397
+ work: workCodex
21398
+ };
21399
+ }
21400
+ function chatVoiceQualified(config2) {
21401
+ return startupVoiceGate(config2).chat.enabled;
21402
+ }
21403
+ function workVoiceLaneEnabled(owner, path) {
21404
+ return workVoicePathDecision(owner, path).enabled;
21405
+ }
21406
+ function workVoicePathDecision(owner, path) {
21407
+ const config2 = readCpaLiveVoiceHookConfig(owner);
21408
+ if (!config2) {
21409
+ return {
21410
+ enabled: false,
21411
+ policy: "unreviewed",
21412
+ reason: workVoiceUnavailableReason({}) ?? "Work voice is not qualified on this Desktop."
21413
+ };
21414
+ }
21415
+ return startupVoiceGate(config2)[path];
21416
+ }
21417
+ function chatVoiceQualifiedOnOwner(owner) {
21418
+ const config2 = readCpaLiveVoiceHookConfig(owner);
21419
+ return config2 ? chatVoiceQualified(config2) : false;
21420
+ }
21421
+
21422
+ // src/settings/voice-status.ts
21423
+ function chatLabel(settings) {
21424
+ if (settings.chatExperience === "chatgpt") return "ChatGPT Chat";
21425
+ return settings.chatConnection === "gateway" ? "Codex Chat gateway" : "Codex Chat Desktop default";
21426
+ }
21427
+ function workLabel(settings) {
21428
+ return settings.workConnection === "gateway" ? "Work gateway" : "Work Desktop default";
21429
+ }
21430
+ function voiceSettingsEffectiveStatus(owner, settings) {
21431
+ const chatDesktopDefault = settings.chatExperience === "codex" && settings.chatConnection === "desktop";
21432
+ const workDesktopDefault = settings.workConnection === "desktop";
21433
+ const chatAvailable = chatDesktopDefault ? true : chatVoiceQualifiedOnOwner(owner);
21434
+ const workAvailable = workDesktopDefault ? true : workVoiceLaneEnabled(owner, "work-codex");
21435
+ return {
21436
+ chatAvailable,
21437
+ workAvailable,
21438
+ chatDesktopDefault,
21439
+ workDesktopDefault,
21440
+ chatLabel: chatLabel(settings),
21441
+ workLabel: workLabel(settings)
21442
+ };
21443
+ }
21444
+ function voiceSettingsEffectiveStatusKey(owner, settings) {
21445
+ return JSON.stringify(voiceSettingsEffectiveStatus(owner, settings));
21446
+ }
21447
+ function voiceSettingsRouteStatus(available, desktopDefault, copy) {
21448
+ if (desktopDefault) return copy.desktopSelected;
21449
+ return available ? copy.routeAllowed : copy.pathUnavailable;
21450
+ }
21451
+ function voiceSettingsAvailabilityFooter(settings, effective) {
21452
+ if (settings.chatExperience === "chatgpt" && !effective.chatAvailable)
21453
+ return "Chat voice is not available on this Desktop.";
21454
+ if (settings.chatExperience === "codex" && settings.chatConnection === "gateway" && !effective.chatAvailable)
21455
+ return "Chat voice is not available on this Desktop.";
21456
+ if (settings.workConnection === "gateway" && !effective.workAvailable)
21457
+ return "Work voice is not available on this Desktop.";
21458
+ }
21459
+
20214
21460
  // src/settings/voice-page.ts
20215
21461
  function createVoiceSettingsPage(locale, request, options = {}) {
20216
21462
  const m = voiceMessages(locale);
@@ -20232,6 +21478,7 @@ th[aria-sort] .console-usage-sort__mark {
20232
21478
  let advanced = false;
20233
21479
  let setup = false;
20234
21480
  let error51 = null;
21481
+ let availabilityKey = "";
20235
21482
  const ids = /* @__PURE__ */ new Map();
20236
21483
  const controlId = (key) => {
20237
21484
  const existing = ids.get(key);
@@ -20250,8 +21497,11 @@ th[aria-sort] .console-usage-sort__mark {
20250
21497
  try {
20251
21498
  const next = voiceSettingsStateSchema.parse(await request({ operation: "get" }));
20252
21499
  if (disposed || generation !== currentGeneration) return;
20253
- const changed = JSON.stringify(state) !== JSON.stringify(next) || offline || reset;
20254
- if (reset || !dirty()) {
21500
+ const keepDraft = !reset && dirty();
21501
+ const displayedSettings = keepDraft && draft ? draft : next.settings;
21502
+ const nextAvailabilityKey = options.desktop && doc.defaultView ? voiceSettingsEffectiveStatusKey(doc.defaultView, displayedSettings) : "";
21503
+ const changed = JSON.stringify(state) !== JSON.stringify(next) || offline || reset || nextAvailabilityKey !== availabilityKey;
21504
+ if (!keepDraft) {
20255
21505
  base = next;
20256
21506
  draft = { ...next.settings };
20257
21507
  }
@@ -20262,8 +21512,14 @@ th[aria-sort] .console-usage-sort__mark {
20262
21512
  confirm = false;
20263
21513
  }
20264
21514
  if (changed) render();
20265
- } catch {
21515
+ } catch (failure) {
20266
21516
  if (!disposed && generation === currentGeneration) {
21517
+ const hostUnavailable = failure instanceof Error && failure.message === "Local Host connection is unavailable";
21518
+ const invalid = failure instanceof Error && failure.name === "ZodError";
21519
+ chatVoiceDebug("voice-settings-load", {
21520
+ stage: hostUnavailable ? "rpc" : invalid ? "response" : "rpc",
21521
+ cause: hostUnavailable ? "host-unavailable" : invalid ? "invalid" : "failed"
21522
+ });
20267
21523
  offline = true;
20268
21524
  render();
20269
21525
  }
@@ -20387,19 +21643,46 @@ th[aria-sort] .console-usage-sort__mark {
20387
21643
  );
20388
21644
  gateway.item.append(gatewayActions);
20389
21645
  config2.card.append(gateway.item);
20390
- const hook = options.desktop ? desktopVoiceHookStatus(doc.defaultView) : "unknown";
21646
+ const view = doc.defaultView;
21647
+ const hook = options.desktop ? desktopVoiceHookStatus(view) : "unknown";
20391
21648
  const hookLabel = hook === "active" ? m.hookSupported : hook === "pending" ? m.hookPending : hook === "unsupported" ? m.hookUnsupported : hook === "disabled" ? m.hookDisabled : m.unknown;
21649
+ const effective = options.desktop && view ? voiceSettingsEffectiveStatus(view, draft) : void 0;
21650
+ if (effective && view) availabilityKey = voiceSettingsEffectiveStatusKey(view, draft);
21651
+ const preferencesLabel = state.routesActive === true ? m.preferencesOn : state.routesActive === false ? m.preferencesOff : m.unknown;
20392
21652
  const health = h(doc, "div", { className: "settings-voice__health" });
20393
- health.append(
20394
- h(doc, "p", {}, `${m.gatewayStatus}: ${gatewayReadyLabel}`),
20395
- h(
20396
- doc,
20397
- "p",
20398
- {},
20399
- `${m.preferencesStatus}: ${state.routesActive === true ? m.preferencesOn : state.routesActive === false ? m.preferencesOff : m.unknown}`
20400
- ),
20401
- h(doc, "p", {}, `${m.hookStatus}: ${hookLabel}`)
20402
- );
21653
+ health.append(h(doc, "p", {}, `${m.gatewayStatus}: ${gatewayReadyLabel}`));
21654
+ health.append(h(doc, "p", {}, `${m.preferencesStatus}: ${preferencesLabel}`));
21655
+ if (effective) {
21656
+ const copy = {
21657
+ desktopSelected: m.desktopSelected,
21658
+ routeAllowed: m.routeAllowed,
21659
+ pathUnavailable: m.pathUnavailable
21660
+ };
21661
+ health.append(
21662
+ h(
21663
+ doc,
21664
+ "p",
21665
+ {},
21666
+ `${effective.chatLabel}: ${voiceSettingsRouteStatus(
21667
+ effective.chatAvailable,
21668
+ effective.chatDesktopDefault,
21669
+ copy
21670
+ )}`
21671
+ ),
21672
+ h(
21673
+ doc,
21674
+ "p",
21675
+ {},
21676
+ `${effective.workLabel}: ${voiceSettingsRouteStatus(
21677
+ effective.workAvailable,
21678
+ effective.workDesktopDefault,
21679
+ copy
21680
+ )}`
21681
+ )
21682
+ );
21683
+ } else {
21684
+ health.append(h(doc, "p", {}, `${m.hookStatus}: ${hookLabel}`));
21685
+ }
20403
21686
  config2.card.append(health);
20404
21687
  if (setup) {
20405
21688
  const details = h(
@@ -20460,7 +21743,8 @@ th[aria-sort] .console-usage-sort__mark {
20460
21743
  root.append(chat.group, work.group, config2.group);
20461
21744
  const restarting = state.restart.phase === "restarting";
20462
21745
  const failed = state.restart.phase === "failed";
20463
- const status = busy ? m.saving : restarting ? m.restarting : isActiveCall() ? m.activeCall : offline ? m.unavailable : dirty() ? m.edited : needsRestart() ? m.restartNeeded : state.activeInject === null ? m.activeUnknown : state.routesActive === false ? m.pending : state.routesActive === null ? m.activeUnknown : m.ready;
21746
+ const availabilityFooter = effective ? voiceSettingsAvailabilityFooter(draft, effective) : void 0;
21747
+ 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
21748
  const footer = h(
20465
21749
  doc,
20466
21750
  "div",
@@ -21249,13 +22533,13 @@ th[aria-sort] .console-usage-sort__mark {
21249
22533
  }
21250
22534
 
21251
22535
  // src/renderer-native-thread.ts
21252
- function isRecord(value) {
22536
+ function isRecord2(value) {
21253
22537
  return typeof value === "object" && value !== null && !Array.isArray(value);
21254
22538
  }
21255
22539
  async function verifyNativeCodexThread(sendRequest, threadId) {
21256
22540
  const native = await sendRequest("thread/read", { threadId, includeTurns: false });
21257
- const thread2 = isRecord(native) ? native.thread : null;
21258
- if (!isRecord(thread2) || thread2.id !== threadId || typeof thread2.modelProvider !== "string" || !thread2.modelProvider || thread2.modelProvider === "codexhost" || typeof thread2.cliVersion !== "string" || !thread2.cliVersion || thread2.cliVersion === "codexhost") {
22541
+ const thread2 = isRecord2(native) ? native.thread : null;
22542
+ 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
22543
  throw new Error("Native Thread response cannot establish Codex ownership");
21260
22544
  }
21261
22545
  }
@@ -21334,15 +22618,15 @@ th[aria-sort] .console-usage-sort__mark {
21334
22618
  var CODEX_ACCOUNT_LIST_METHOD = "codexhost/account/list";
21335
22619
  var CODEX_ACCOUNT_REFRESH_METHOD = "codexhost/account/refresh";
21336
22620
  var CODEX_ACCOUNT_CHANGED_METHOD = "codexhost/account/changed";
21337
- function isRecord2(value) {
22621
+ function isRecord3(value) {
21338
22622
  return typeof value === "object" && value !== null && !Array.isArray(value);
21339
22623
  }
21340
22624
  function notifiedThreadId(notification) {
21341
- if (!isRecord2(notification) || !THREAD_USAGE_REFRESH_METHODS.includes(notification.method)) {
22625
+ if (!isRecord3(notification) || !THREAD_USAGE_REFRESH_METHODS.includes(notification.method)) {
21342
22626
  return null;
21343
22627
  }
21344
22628
  const params = notification.params;
21345
- if (!isRecord2(params)) return null;
22629
+ if (!isRecord3(params)) return null;
21346
22630
  const parsed = hostThreadIdSchema.safeParse(params.threadId);
21347
22631
  return parsed.success ? parsed.data : null;
21348
22632
  }
@@ -21507,6 +22791,19 @@ th[aria-sort] .console-usage-sort__mark {
21507
22791
  return externalThreadForkResultSchema.parse(result);
21508
22792
  },
21509
22793
  inspectHarness,
22794
+ async listSkills(params) {
22795
+ return skillsListResultSchema.parse(
22796
+ await manager.sendRequest(SKILLS_LIST_METHOD, skillsListParamsSchema.parse(params))
22797
+ );
22798
+ },
22799
+ subscribeSkillsChanged(listener) {
22800
+ return notificationTarget(source)?.addNotificationCallback?.(SKILLS_CHANGED_METHOD, (value) => {
22801
+ if (!isRecord3(value) || value.method !== SKILLS_CHANGED_METHOD) return;
22802
+ const parsed = skillsChangedParamsSchema.safeParse(value.params);
22803
+ if (parsed.success) listener(parsed.data);
22804
+ }) ?? (() => {
22805
+ });
22806
+ },
21510
22807
  async listHarnessPlugins() {
21511
22808
  return harnessPluginListResultSchema.parse(
21512
22809
  await manager.sendRequest(HARNESS_PLUGIN_LIST_METHOD, {})
@@ -21674,7 +22971,7 @@ th[aria-sort] .console-usage-sort__mark {
21674
22971
  throw new Error("Renderer Account notification callback is unavailable");
21675
22972
  }
21676
22973
  return notifications.addNotificationCallback(CODEX_ACCOUNT_CHANGED_METHOD, (notification) => {
21677
- if (!isRecord2(notification) || notification.method !== CODEX_ACCOUNT_CHANGED_METHOD) return;
22974
+ if (!isRecord3(notification) || notification.method !== CODEX_ACCOUNT_CHANGED_METHOD) return;
21678
22975
  const state = codexAccountChangedSchema.safeParse(notification.params);
21679
22976
  if (state.success) listener(state.data);
21680
22977
  });
@@ -21713,6 +23010,48 @@ th[aria-sort] .console-usage-sort__mark {
21713
23010
  };
21714
23011
  }
21715
23012
 
23013
+ // src/renderer-external-clients-client.ts
23014
+ var RendererExternalClientsUnavailableError = class extends Error {
23015
+ constructor() {
23016
+ super("MCP clients are unavailable");
23017
+ this.name = "RendererExternalClientsUnavailableError";
23018
+ }
23019
+ };
23020
+ function createRendererExternalClientsClient(send) {
23021
+ const request = async (method, params) => {
23022
+ try {
23023
+ return await send(method, params);
23024
+ } catch (error51) {
23025
+ const code = typeof error51 === "object" && error51 !== null && "code" in error51 ? error51.code : void 0;
23026
+ if (code === -32601 || code === -32076) throw new RendererExternalClientsUnavailableError();
23027
+ throw error51;
23028
+ }
23029
+ };
23030
+ return {
23031
+ async listClients() {
23032
+ return externalClientListResultSchema.parse(await request(EXTERNAL_CLIENT_LIST_METHOD, {}));
23033
+ },
23034
+ async createClient(input) {
23035
+ const params = externalClientCreateParamsSchema.parse(input);
23036
+ return externalClientCreateResultSchema.parse(
23037
+ await request(EXTERNAL_CLIENT_CREATE_METHOD, params)
23038
+ );
23039
+ },
23040
+ async updateClient(input) {
23041
+ const params = externalClientUpdateParamsSchema.parse(input);
23042
+ return externalClientPublicViewSchema.parse(
23043
+ await request(EXTERNAL_CLIENT_UPDATE_METHOD, params)
23044
+ );
23045
+ },
23046
+ async revokeClient(name) {
23047
+ const params = externalClientRevokeParamsSchema.parse({ name });
23048
+ return externalClientRevokeResultSchema.parse(
23049
+ await request(EXTERNAL_CLIENT_REVOKE_METHOD, params)
23050
+ );
23051
+ }
23052
+ };
23053
+ }
23054
+
21716
23055
  // ../../node_modules/uqr/dist/index.mjs
21717
23056
  var QrCodeDataType = /* @__PURE__ */ ((QrCodeDataType2) => {
21718
23057
  QrCodeDataType2[QrCodeDataType2["Border"] = -1] = "Border";
@@ -23886,6 +25225,7 @@ th[aria-sort] .console-usage-sort__mark {
23886
25225
  harnessQuestionInChatHelp: Object.freeze([
23887
25226
  "Codex's own questions always use the Codex Desktop layout.",
23888
25227
  "Some single-choice and text questions still use the Desktop card.",
25228
+ "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
25229
  "Answered questions remain after reopening a chat only if the Harness's own history records them.",
23890
25230
  "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
25231
  "Update both the Host and the Desktop extension, including remote Hosts."
@@ -24081,7 +25421,7 @@ th[aria-sort] .console-usage-sort__mark {
24081
25421
  grokComputerUseApplyFailed: "Could not apply the saved setting to Grok config.",
24082
25422
  connectionOfficialWebsite: "Visit official website",
24083
25423
  connectionOpenHarnessWeb: "Open DeepSeek Harness Web",
24084
- connectionDeepSeekTestedVersions: "Supported DSH versions: 0.1.7-rc.1, 0.1.7-rc.2, 0.2.0-rc.1, 0.2.0-rc.2, 0.2.1-rc.1, 0.2.1-rc.2, 0.2.1-rc.3, 0.2.1-rc.4, 0.2.1-rc.5 and 0.2.2-rc.1. Versions newer than 0.2.2-rc.1 can be tried, but compatibility may be limited; versions older than 0.1.7-rc.1 must be upgraded first.",
25424
+ connectionDeepSeekTestedVersions: "Supported DSH versions: 0.1.7-rc.1, 0.1.7-rc.2, 0.2.0-rc.1, 0.2.0-rc.2, 0.2.1-rc.1, 0.2.1-rc.2, 0.2.1-rc.3, 0.2.1-rc.4, 0.2.1-rc.5, 0.2.2-rc.1 and 0.2.2-rc.2. Versions newer than 0.2.2-rc.2 can be tried, but compatibility may be limited; versions older than 0.1.7-rc.1 must be upgraded first.",
24085
25425
  connectionInstall: "Install",
24086
25426
  connectionInstallDescription: "This Harness was not detected.",
24087
25427
  connectionInstallRunning: "Installing on the selected Host. You can leave this page; login or setup may still be required afterward.",
@@ -24198,11 +25538,55 @@ th[aria-sort] .console-usage-sort__mark {
24198
25538
  revoke: "Revoke",
24199
25539
  revoking: "Revoking\u2026"
24200
25540
  }),
25541
+ mcpClients: Object.freeze({
25542
+ 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.",
25543
+ helpLabel: "About MCP clients",
25544
+ help: Object.freeze([
25545
+ "Muse and Grok Bot share the same 11-tool Host catalog. Each client has its own identity, access, and revocation.",
25546
+ "All Host Threads is the default. Selected workspaces limits reads, writes, listings, waits, events, watches, and new delegation destinations in those roots.",
25547
+ "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.",
25548
+ "Revoke immediately ends later API use, including established sessions. Already-started tasks keep running. Cancellation is separate."
25549
+ ]),
25550
+ columns: Object.freeze(["Client", "Access", "Connection", "Grant", "URL", "Actions"]),
25551
+ empty: "No MCP clients. Add muse or grok-bot here before connecting OAuth.",
25552
+ unavailable: "MCP clients require the local Host.",
25553
+ failed: "Could not load MCP clients.",
25554
+ loading: "Loading MCP clients\u2026",
25555
+ refresh: "Refresh",
25556
+ add: "Add client",
25557
+ adding: "Adding\u2026",
25558
+ name: "Client name",
25559
+ access: "Thread access",
25560
+ accessAll: "All Host Threads",
25561
+ accessSelected: "Selected workspaces",
25562
+ workspaces: "Workspace roots",
25563
+ workspacesHint: "One absolute path per line. Symlinks are resolved. Unresolved paths are denied.",
25564
+ connection: "Connection",
25565
+ connectionPublic: "Public relay (default)",
25566
+ connectionLocal: "Local loopback",
25567
+ connectionDirect: "Direct / already reachable",
25568
+ grant: "Dispatch grant",
25569
+ grantLegacy: "Legacy four tools (Muse staging)",
25570
+ grantFull: "Full Host dispatch",
25571
+ oauthClientId: "Bound OAuth client id (optional)",
25572
+ directUrl: "Direct MCP URL",
25573
+ directUrlHint: "https://host/mcp or http://100.x.x.x/mcp on Tailscale. Host does not open a listener.",
25574
+ connectOAuth: "Connect OAuth at this URL after the Host record exists.",
25575
+ copyUrl: "Copy URL",
25576
+ copied: "Copied",
25577
+ tokenOnce: "Same-Mac token (shown once). Store it privately; it is not listed again.",
25578
+ confirmRevoke: "Confirm revoke",
25579
+ revoke: "Revoke",
25580
+ revoking: "Revoking\u2026",
25581
+ save: "Save",
25582
+ saving: "Saving\u2026"
25583
+ }),
24201
25584
  pageLabels: Object.freeze({
24202
25585
  connections: "Connections",
24203
25586
  "mobile-web": "Phone & browser",
24204
25587
  "remote-connections": "Other computers (SSH)",
24205
25588
  enrollment: "Enrollment",
25589
+ "mcp-clients": "MCP clients",
24206
25590
  appearance: "General",
24207
25591
  voice: "Voice",
24208
25592
  accounts: "Accounts",
@@ -24237,6 +25621,7 @@ th[aria-sort] .console-usage-sort__mark {
24237
25621
  harnessQuestionInChatHelp: Object.freeze([
24238
25622
  "Codex \u81EA\u5DF1\u7684\u63D0\u95EE\u59CB\u7EC8\u4F7F\u7528 Codex Desktop \u7684\u5E03\u5C40\u3002",
24239
25623
  "\u90E8\u5206\u5355\u9009\u548C\u6587\u672C\u63D0\u95EE\u4ECD\u4F7F\u7528 Desktop \u5361\u7247\u3002",
25624
+ "\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
25625
  "\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
25626
  "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
25627
  "Host \u548C Desktop \u6269\u5C55\u9700\u8981\u4E00\u8D77\u66F4\u65B0\uFF0C\u5305\u62EC\u8FDC\u7A0B Host\u3002"
@@ -24432,7 +25817,7 @@ th[aria-sort] .console-usage-sort__mark {
24432
25817
  grokComputerUseApplyFailed: "\u65E0\u6CD5\u5C06\u5DF2\u4FDD\u5B58\u7684\u8BBE\u7F6E\u5199\u5165 Grok \u914D\u7F6E\u3002",
24433
25818
  connectionOfficialWebsite: "\u8BBF\u95EE\u5B98\u7F51",
24434
25819
  connectionOpenHarnessWeb: "\u6253\u5F00 DeepSeek Harness Web",
24435
- connectionDeepSeekTestedVersions: "\u652F\u6301 DSH \u7248\u672C\uFF1A0.1.7-rc.1\u30010.1.7-rc.2\u30010.2.0-rc.1\u30010.2.0-rc.2\u30010.2.1-rc.1\u30010.2.1-rc.2\u30010.2.1-rc.3\u30010.2.1-rc.4\u30010.2.1-rc.5 \u548C 0.2.2-rc.1\u3002\u9AD8\u4E8E 0.2.2-rc.1 \u7684\u7248\u672C\u53EF\u4EE5\u5C1D\u8BD5\u8FDE\u63A5\uFF0C\u4F46\u9002\u914D\u5EA6\u53EF\u80FD\u6709\u9650\uFF1B\u4F4E\u4E8E 0.1.7-rc.1 \u7684\u7248\u672C\u9700\u8981\u5148\u5347\u7EA7\u3002",
25820
+ connectionDeepSeekTestedVersions: "\u652F\u6301 DSH \u7248\u672C\uFF1A0.1.7-rc.1\u30010.1.7-rc.2\u30010.2.0-rc.1\u30010.2.0-rc.2\u30010.2.1-rc.1\u30010.2.1-rc.2\u30010.2.1-rc.3\u30010.2.1-rc.4\u30010.2.1-rc.5\u30010.2.2-rc.1 \u548C 0.2.2-rc.2\u3002\u9AD8\u4E8E 0.2.2-rc.2 \u7684\u7248\u672C\u53EF\u4EE5\u5C1D\u8BD5\u8FDE\u63A5\uFF0C\u4F46\u9002\u914D\u5EA6\u53EF\u80FD\u6709\u9650\uFF1B\u4F4E\u4E8E 0.1.7-rc.1 \u7684\u7248\u672C\u9700\u8981\u5148\u5347\u7EA7\u3002",
24436
25821
  connectionInstall: "\u5B89\u88C5",
24437
25822
  connectionInstallDescription: "\u5C1A\u672A\u68C0\u6D4B\u5230\u8BE5 Harness\u3002",
24438
25823
  connectionInstallRunning: "\u6B63\u5728\u6240\u9009 Host \u4E0A\u5B89\u88C5\uFF0C\u79BB\u5F00\u9875\u9762\u4E0D\u4F1A\u4E2D\u65AD\u3002\u5B89\u88C5\u540E\u53EF\u80FD\u4ECD\u9700\u767B\u5F55\u6216\u914D\u7F6E\u3002",
@@ -24549,11 +25934,55 @@ th[aria-sort] .console-usage-sort__mark {
24549
25934
  revoke: "\u64A4\u9500",
24550
25935
  revoking: "\u6B63\u5728\u64A4\u9500\u2026"
24551
25936
  }),
25937
+ mcpClients: Object.freeze({
25938
+ 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",
25939
+ helpLabel: "\u5173\u4E8E MCP \u5BA2\u6237\u7AEF",
25940
+ help: Object.freeze([
25941
+ "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",
25942
+ "\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",
25943
+ "\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",
25944
+ "\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"
25945
+ ]),
25946
+ columns: Object.freeze(["\u5BA2\u6237\u7AEF", "\u8BBF\u95EE", "\u8FDE\u63A5", "\u6388\u6743", "URL", "\u64CD\u4F5C"]),
25947
+ empty: "\u6682\u65E0 MCP \u5BA2\u6237\u7AEF\u3002\u8FDE\u63A5 OAuth \u524D\u8BF7\u5148\u5728\u6B64\u6DFB\u52A0 muse \u6216 grok-bot\u3002",
25948
+ unavailable: "MCP \u5BA2\u6237\u7AEF\u9700\u8981\u6B63\u5728\u8FD0\u884C\u7684\u672C\u5730 Host\u3002",
25949
+ failed: "\u65E0\u6CD5\u52A0\u8F7D MCP \u5BA2\u6237\u7AEF\u3002",
25950
+ loading: "\u6B63\u5728\u52A0\u8F7D MCP \u5BA2\u6237\u7AEF\u2026",
25951
+ refresh: "\u5237\u65B0",
25952
+ add: "\u6DFB\u52A0\u5BA2\u6237\u7AEF",
25953
+ adding: "\u6B63\u5728\u6DFB\u52A0\u2026",
25954
+ name: "\u5BA2\u6237\u7AEF\u540D\u79F0",
25955
+ access: "Thread \u8BBF\u95EE",
25956
+ accessAll: "\u5168\u90E8 Host Thread",
25957
+ accessSelected: "\u9009\u5B9A\u5DE5\u4F5C\u533A",
25958
+ workspaces: "\u5DE5\u4F5C\u533A\u6839\u76EE\u5F55",
25959
+ 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",
25960
+ connection: "\u8FDE\u63A5",
25961
+ connectionPublic: "\u516C\u7F51\u4E2D\u7EE7\uFF08\u9ED8\u8BA4\uFF09",
25962
+ connectionLocal: "\u672C\u673A\u56DE\u73AF",
25963
+ connectionDirect: "Direct / \u5DF2\u53EF\u8FBE",
25964
+ grant: "\u8C03\u5EA6\u6388\u6743",
25965
+ grantLegacy: "\u65E7\u7248\u56DB\u5DE5\u5177\uFF08Muse \u8FC7\u6E21\uFF09",
25966
+ grantFull: "\u5B8C\u6574 Host \u8C03\u5EA6",
25967
+ oauthClientId: "\u7ED1\u5B9A\u7684 OAuth client id\uFF08\u53EF\u9009\uFF09",
25968
+ directUrl: "Direct MCP URL",
25969
+ directUrlHint: "https://host/mcp\uFF0C\u6216 Tailscale \u4E0A\u7684 http://100.x.x.x/mcp\u3002Host \u4E0D\u4F1A\u65B0\u5F00\u76D1\u542C\u3002",
25970
+ connectOAuth: "Host \u8BB0\u5F55\u5B58\u5728\u540E\u518D\u7528\u6B64 URL \u8FDE\u63A5 OAuth\u3002",
25971
+ copyUrl: "\u590D\u5236 URL",
25972
+ copied: "\u5DF2\u590D\u5236",
25973
+ 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",
25974
+ confirmRevoke: "\u786E\u8BA4\u64A4\u9500",
25975
+ revoke: "\u64A4\u9500",
25976
+ revoking: "\u6B63\u5728\u64A4\u9500\u2026",
25977
+ save: "\u4FDD\u5B58",
25978
+ saving: "\u6B63\u5728\u4FDD\u5B58\u2026"
25979
+ }),
24552
25980
  pageLabels: Object.freeze({
24553
25981
  connections: "\u8FDE\u63A5",
24554
25982
  "mobile-web": "\u624B\u673A\u4E0E\u6D4F\u89C8\u5668",
24555
25983
  "remote-connections": "\u5176\u4ED6\u7535\u8111\uFF08SSH\uFF09",
24556
25984
  enrollment: "\u5BA2\u6237\u7AEF\u767B\u8BB0",
25985
+ "mcp-clients": "MCP \u5BA2\u6237\u7AEF",
24557
25986
  appearance: "\u901A\u7528",
24558
25987
  voice: "\u8BED\u97F3",
24559
25988
  accounts: "\u8D26\u53F7",
@@ -25282,22 +26711,22 @@ th[aria-sort] .console-usage-sort__mark {
25282
26711
  document2,
25283
26712
  "div",
25284
26713
  { className: "console-usage-segmented", role: "group", "aria-label": label },
25285
- ...options.map((option) => {
26714
+ ...options.map((option2) => {
25286
26715
  const item = h(
25287
26716
  document2,
25288
26717
  "button",
25289
26718
  {
25290
26719
  type: "button",
25291
26720
  className: "console-usage-segment",
25292
- "aria-pressed": option.value === value ? "true" : "false",
25293
- title: option.title
26721
+ "aria-pressed": option2.value === value ? "true" : "false",
26722
+ title: option2.title
25294
26723
  },
25295
- option.label
26724
+ option2.label
25296
26725
  );
25297
26726
  item.addEventListener("click", () => {
25298
- if (option.value !== value) onChange(option.value);
26727
+ if (option2.value !== value) onChange(option2.value);
25299
26728
  });
25300
- return focusKey(item, `${key}:${option.value}`);
26729
+ return focusKey(item, `${key}:${option2.value}`);
25301
26730
  })
25302
26731
  );
25303
26732
  }
@@ -25391,7 +26820,7 @@ th[aria-sort] .console-usage-sort__mark {
25391
26820
  update(options, value) {
25392
26821
  this.#options = options;
25393
26822
  this.#value = value;
25394
- const current = options.find((option) => option.key === value);
26823
+ const current = options.find((option2) => option2.key === value);
25395
26824
  const shown = current ?? options[0];
25396
26825
  this.#button.textContent = shown ? this.#display?.(shown) ?? shown.label : "";
25397
26826
  this.#button.title = current?.detail ?? "";
@@ -25404,7 +26833,7 @@ th[aria-sort] .console-usage-sort__mark {
25404
26833
  this.#search.value = "";
25405
26834
  this.#active = Math.max(
25406
26835
  0,
25407
- this.#options.findIndex((option) => option.key === this.#value)
26836
+ this.#options.findIndex((option2) => option2.key === this.#value)
25408
26837
  );
25409
26838
  this.#renderList();
25410
26839
  this.#keys.focus();
@@ -25415,10 +26844,10 @@ th[aria-sort] .console-usage-sort__mark {
25415
26844
  this.#button.setAttribute("aria-expanded", "false");
25416
26845
  if (restoreFocus) this.#button.focus();
25417
26846
  }
25418
- #choose(option) {
25419
- if (!option) return;
26847
+ #choose(option2) {
26848
+ if (!option2) return;
25420
26849
  this.close();
25421
- if (option.key !== this.#value) this.#onChange(option.key);
26850
+ if (option2.key !== this.#value) this.#onChange(option2.key);
25422
26851
  }
25423
26852
  #key(event) {
25424
26853
  if (event.key === "Escape") {
@@ -25437,7 +26866,7 @@ th[aria-sort] .console-usage-sort__mark {
25437
26866
  #renderList() {
25438
26867
  const query = this.#search.value.trim().toLocaleLowerCase();
25439
26868
  this.#visible = this.#options.filter(
25440
- (option) => !query || option.label.toLocaleLowerCase().includes(query) || option.detail?.toLocaleLowerCase().includes(query)
26869
+ (option2) => !query || option2.label.toLocaleLowerCase().includes(query) || option2.detail?.toLocaleLowerCase().includes(query)
25441
26870
  );
25442
26871
  this.#active = Math.min(this.#active, Math.max(0, this.#visible.length - 1));
25443
26872
  if (this.#visible.length === 0) {
@@ -25449,7 +26878,7 @@ th[aria-sort] .console-usage-sort__mark {
25449
26878
  }
25450
26879
  const id = this.#list.id;
25451
26880
  this.#list.replaceChildren(
25452
- ...this.#visible.map((option, index) => {
26881
+ ...this.#visible.map((option2, index) => {
25453
26882
  const item = h(
25454
26883
  this.#document,
25455
26884
  "li",
@@ -25457,13 +26886,13 @@ th[aria-sort] .console-usage-sort__mark {
25457
26886
  id: `${id}-${index}`,
25458
26887
  role: "option",
25459
26888
  className: index === this.#active ? "is-active" : void 0,
25460
- "aria-selected": option.key === this.#value ? "true" : "false"
26889
+ "aria-selected": option2.key === this.#value ? "true" : "false"
25461
26890
  },
25462
- h(this.#document, "span", {}, option.label),
25463
- option.detail ? h(this.#document, "small", { className: "console-muted" }, option.detail) : null
26891
+ h(this.#document, "span", {}, option2.label),
26892
+ option2.detail ? h(this.#document, "small", { className: "console-muted" }, option2.detail) : null
25464
26893
  );
25465
26894
  item.addEventListener("pointerdown", (event) => event.preventDefault());
25466
- item.addEventListener("click", () => this.#choose(option));
26895
+ item.addEventListener("click", () => this.#choose(option2));
25467
26896
  return item;
25468
26897
  })
25469
26898
  );
@@ -26106,7 +27535,7 @@ th[aria-sort] .console-usage-sort__mark {
26106
27535
  emptyLabel: messages.noMatches,
26107
27536
  signal: context.signal,
26108
27537
  searchable: false,
26109
- display: (option) => `${messages.host} \xB7 ${option.label}`,
27538
+ display: (option2) => `${messages.host} \xB7 ${option2.label}`,
26110
27539
  onChange: (key) => {
26111
27540
  if (key === view.hostId) return;
26112
27541
  view.hostId = key;
@@ -26162,7 +27591,7 @@ th[aria-sort] .console-usage-sort__mark {
26162
27591
  emptyLabel: messages.noMatches,
26163
27592
  signal: context.signal,
26164
27593
  searchable: false,
26165
- display: (option) => `${messages.autoRefresh} \xB7 ${option.label}`,
27594
+ display: (option2) => `${messages.autoRefresh} \xB7 ${option2.label}`,
26166
27595
  onChange: (key) => {
26167
27596
  view.autoRefreshMs = Number(key) || 0;
26168
27597
  save();
@@ -29930,10 +31359,10 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
29930
31359
  pageSize.dataset.sessionImportAction = "page-size";
29931
31360
  pageSize.setAttribute("aria-label", messages.sessionImportPageSize);
29932
31361
  for (const size of [20, 50, 100]) {
29933
- const option = document2.createElement("option");
29934
- option.value = String(size);
29935
- option.textContent = String(size);
29936
- pageSize.append(option);
31362
+ const option2 = document2.createElement("option");
31363
+ option2.value = String(size);
31364
+ option2.textContent = String(size);
31365
+ pageSize.append(option2);
29937
31366
  }
29938
31367
  pageSize.value = String(limit);
29939
31368
  pageSizeLabel.append(pageSize);
@@ -30141,22 +31570,22 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
30141
31570
  harnessOptions.replaceChildren();
30142
31571
  sourceButtons.length = 0;
30143
31572
  for (const source of sources) {
30144
- const option = document2.createElement("button");
30145
- option.type = "button";
30146
- option.className = "settings-session-import-harness__option";
30147
- option.dataset.sessionImportHarnessOption = source.harnessId;
30148
- option.textContent = source.name;
30149
- option.setAttribute("aria-pressed", String(source.harnessId === selectedHarness));
30150
- option.addEventListener("click", () => {
30151
- if (option.disabled || importingId !== null || source.harnessId === selectedHarness)
31573
+ const option2 = document2.createElement("button");
31574
+ option2.type = "button";
31575
+ option2.className = "settings-session-import-harness__option";
31576
+ option2.dataset.sessionImportHarnessOption = source.harnessId;
31577
+ option2.textContent = source.name;
31578
+ option2.setAttribute("aria-pressed", String(source.harnessId === selectedHarness));
31579
+ option2.addEventListener("click", () => {
31580
+ if (option2.disabled || importingId !== null || source.harnessId === selectedHarness)
30152
31581
  return;
30153
31582
  selectedHarness = source.harnessId;
30154
31583
  listControls.reset();
30155
31584
  renderHarnessOptions();
30156
31585
  load();
30157
31586
  });
30158
- sourceButtons.push(option);
30159
- harnessOptions.append(option);
31587
+ sourceButtons.push(option2);
31588
+ harnessOptions.append(option2);
30160
31589
  }
30161
31590
  harnessOptions.scrollLeft = scrolled;
30162
31591
  harnessOptions.querySelector('[aria-pressed="true"]')?.scrollIntoView?.({ block: "nearest", inline: "nearest" });
@@ -31341,8 +32770,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
31341
32770
  legend.textContent = messages.source;
31342
32771
  group.append(legend);
31343
32772
  for (const choice of choices) {
31344
- const option = document2.createElement("label");
31345
- option.className = "settings-credential-dialog__source";
32773
+ const option2 = document2.createElement("label");
32774
+ option2.className = "settings-credential-dialog__source";
31346
32775
  const radio = document2.createElement("input");
31347
32776
  radio.type = "radio";
31348
32777
  radio.name = "settings-credential-source";
@@ -31369,8 +32798,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
31369
32798
  }
31370
32799
  refreshPreview();
31371
32800
  });
31372
- option.append(radio, copy);
31373
- group.append(option);
32801
+ option2.append(radio, copy);
32802
+ group.append(option2);
31374
32803
  }
31375
32804
  return group;
31376
32805
  };
@@ -32817,6 +34246,318 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
32817
34246
  });
32818
34247
  }
32819
34248
 
34249
+ // src/settings/mcp-clients-page.ts
34250
+ function errorMessage5(error51, fallback) {
34251
+ if (error51 instanceof RendererExternalClientsUnavailableError) return fallback;
34252
+ return error51 instanceof Error && error51.message ? error51.message : fallback;
34253
+ }
34254
+ function accessLabel(view, copy) {
34255
+ if (view.access === "selected-workspaces") {
34256
+ return `${copy.accessSelected}: ${view.workspaces.join(", ") || "\u2014"}`;
34257
+ }
34258
+ return copy.accessAll;
34259
+ }
34260
+ function connectionLabel(mode, copy) {
34261
+ if (mode === "local") return copy.connectionLocal;
34262
+ if (mode === "direct") return copy.connectionDirect;
34263
+ return copy.connectionPublic;
34264
+ }
34265
+ function grantLabel(grant, copy) {
34266
+ return grant === "full-dispatch" ? copy.grantFull : copy.grantLegacy;
34267
+ }
34268
+ function option(document2, label, value) {
34269
+ const node = document2.createElement("option");
34270
+ node.value = value;
34271
+ node.textContent = label;
34272
+ return node;
34273
+ }
34274
+ function createMcpClientsSettingsPage(messages, getClient) {
34275
+ return Object.freeze({
34276
+ id: "mcp-clients",
34277
+ label: messages.pageLabels["mcp-clients"],
34278
+ icon: "mcp-clients",
34279
+ mount(context) {
34280
+ const document2 = context.content.ownerDocument;
34281
+ const copy = messages.mcpClients;
34282
+ const header = document2.createElement("div");
34283
+ header.className = "settings-enrollment-header";
34284
+ const copyBlock = document2.createElement("div");
34285
+ copyBlock.className = "settings-enrollment-copy";
34286
+ const title = document2.createElement("div");
34287
+ title.className = "settings-enrollment-title";
34288
+ const heading = document2.createElement("h1");
34289
+ heading.className = "settings-section-label";
34290
+ heading.textContent = messages.pageLabels["mcp-clients"];
34291
+ title.append(heading, createHelpTooltip(document2, copy.helpLabel, copy.help));
34292
+ const description = document2.createElement("p");
34293
+ description.className = "settings-page-description";
34294
+ description.textContent = copy.description;
34295
+ copyBlock.append(title, description);
34296
+ const refresh = document2.createElement("button");
34297
+ refresh.type = "button";
34298
+ refresh.className = "settings-icon-button";
34299
+ refresh.title = copy.refresh;
34300
+ refresh.setAttribute("aria-label", copy.refresh);
34301
+ refresh.append(createRendererSettingsIcon("refresh", 16));
34302
+ header.append(copyBlock, refresh);
34303
+ const status = document2.createElement("p");
34304
+ status.className = "settings-enrollment-status";
34305
+ status.setAttribute("aria-live", "polite");
34306
+ const setStatus = (message2, kind) => {
34307
+ status.className = kind === "error" ? "settings-enrollment-status is-error" : "settings-enrollment-status";
34308
+ status.textContent = message2;
34309
+ };
34310
+ const form = document2.createElement("form");
34311
+ form.className = "settings-enrollment-copy";
34312
+ const nameInput = document2.createElement("input");
34313
+ nameInput.type = "text";
34314
+ nameInput.required = true;
34315
+ nameInput.placeholder = copy.name;
34316
+ nameInput.setAttribute("aria-label", copy.name);
34317
+ const accessSelect = document2.createElement("select");
34318
+ accessSelect.setAttribute("aria-label", copy.access);
34319
+ accessSelect.append(
34320
+ option(document2, copy.accessAll, "all-threads"),
34321
+ option(document2, copy.accessSelected, "selected-workspaces")
34322
+ );
34323
+ const workspaces = document2.createElement("textarea");
34324
+ workspaces.rows = 3;
34325
+ workspaces.placeholder = copy.workspacesHint;
34326
+ workspaces.setAttribute("aria-label", copy.workspaces);
34327
+ const connectionSelect = document2.createElement("select");
34328
+ connectionSelect.setAttribute("aria-label", copy.connection);
34329
+ connectionSelect.append(
34330
+ option(document2, copy.connectionPublic, "public-relay"),
34331
+ option(document2, copy.connectionLocal, "local"),
34332
+ option(document2, copy.connectionDirect, "direct")
34333
+ );
34334
+ const grantSelect = document2.createElement("select");
34335
+ grantSelect.setAttribute("aria-label", copy.grant);
34336
+ grantSelect.append(
34337
+ option(document2, copy.grantFull, "full-dispatch"),
34338
+ option(document2, copy.grantLegacy, "legacy-four")
34339
+ );
34340
+ const directUrlInput = document2.createElement("input");
34341
+ directUrlInput.type = "url";
34342
+ directUrlInput.placeholder = copy.directUrlHint;
34343
+ directUrlInput.setAttribute("aria-label", copy.directUrl);
34344
+ const oauthInput = document2.createElement("input");
34345
+ oauthInput.type = "text";
34346
+ oauthInput.placeholder = copy.oauthClientId;
34347
+ oauthInput.setAttribute("aria-label", copy.oauthClientId);
34348
+ const add = document2.createElement("button");
34349
+ add.type = "submit";
34350
+ add.className = "settings-command-button";
34351
+ add.textContent = copy.add;
34352
+ form.append(
34353
+ nameInput,
34354
+ accessSelect,
34355
+ workspaces,
34356
+ connectionSelect,
34357
+ grantSelect,
34358
+ directUrlInput,
34359
+ oauthInput,
34360
+ add
34361
+ );
34362
+ const tableWrap = document2.createElement("div");
34363
+ tableWrap.className = "settings-enrollment-table-wrap";
34364
+ const table = document2.createElement("table");
34365
+ table.className = "settings-enrollment-table";
34366
+ table.setAttribute("aria-label", messages.pageLabels["mcp-clients"]);
34367
+ const thead = document2.createElement("thead");
34368
+ const headerRow = document2.createElement("tr");
34369
+ for (const label of copy.columns) {
34370
+ const cell = document2.createElement("th");
34371
+ cell.textContent = label;
34372
+ headerRow.append(cell);
34373
+ }
34374
+ thead.append(headerRow);
34375
+ const tbody = document2.createElement("tbody");
34376
+ table.append(thead, tbody);
34377
+ tableWrap.append(table);
34378
+ context.content.append(header, status, form, tableWrap);
34379
+ const client = getClient();
34380
+ const renderEmpty = (message2) => {
34381
+ tbody.replaceChildren();
34382
+ const row = document2.createElement("tr");
34383
+ const cell = document2.createElement("td");
34384
+ cell.setAttribute("colspan", String(copy.columns.length));
34385
+ cell.className = "settings-enrollment-empty";
34386
+ cell.textContent = message2;
34387
+ row.append(cell);
34388
+ tbody.append(row);
34389
+ };
34390
+ const copyUrl = async (url2) => {
34391
+ if (!url2) return;
34392
+ try {
34393
+ await navigator.clipboard.writeText(url2);
34394
+ setStatus(copy.copied, "idle");
34395
+ } catch {
34396
+ setStatus(copy.failed, "error");
34397
+ }
34398
+ };
34399
+ const renderRows = (clients) => {
34400
+ tbody.replaceChildren();
34401
+ if (clients.length === 0) {
34402
+ renderEmpty(copy.empty);
34403
+ return;
34404
+ }
34405
+ for (const view of clients) {
34406
+ const row = document2.createElement("tr");
34407
+ row.className = "settings-enrollment-row";
34408
+ const nameCell = document2.createElement("td");
34409
+ const strong = document2.createElement("strong");
34410
+ strong.textContent = view.name;
34411
+ nameCell.append(strong);
34412
+ const accessCell = document2.createElement("td");
34413
+ accessCell.textContent = accessLabel(view, copy);
34414
+ const connectionCell = document2.createElement("td");
34415
+ connectionCell.textContent = connectionLabel(view.connectionMode, copy);
34416
+ const grantCell = document2.createElement("td");
34417
+ grantCell.textContent = grantLabel(view.dispatchGrant, copy);
34418
+ const urlCell = document2.createElement("td");
34419
+ urlCell.textContent = view.mcpUrl ?? view.mcpUrlNote ?? "\u2014";
34420
+ const actions = document2.createElement("td");
34421
+ actions.className = "settings-enrollment-actions";
34422
+ if (view.mcpUrl) {
34423
+ const copyButton = document2.createElement("button");
34424
+ copyButton.type = "button";
34425
+ copyButton.className = "settings-command-button settings-command-button--secondary";
34426
+ copyButton.textContent = copy.copyUrl;
34427
+ copyButton.addEventListener("click", () => void copyUrl(view.mcpUrl));
34428
+ actions.append(copyButton);
34429
+ }
34430
+ const full = document2.createElement("button");
34431
+ full.type = "button";
34432
+ full.className = "settings-command-button settings-command-button--secondary";
34433
+ full.textContent = copy.grantFull;
34434
+ full.disabled = view.dispatchGrant === "full-dispatch" || !client;
34435
+ full.addEventListener("click", () => {
34436
+ if (!client) return;
34437
+ full.disabled = true;
34438
+ void context.runLatest(
34439
+ () => client.updateClient({ name: view.name, dispatchGrant: "full-dispatch" }).then(() => client.listClients()),
34440
+ {
34441
+ success(result) {
34442
+ setStatus("", "idle");
34443
+ renderRows(result.clients);
34444
+ },
34445
+ failure(error51) {
34446
+ full.disabled = false;
34447
+ setStatus(errorMessage5(error51, copy.failed), "error");
34448
+ }
34449
+ }
34450
+ );
34451
+ });
34452
+ const revoke = document2.createElement("button");
34453
+ revoke.type = "button";
34454
+ revoke.className = "settings-command-button settings-command-button--secondary";
34455
+ revoke.setAttribute("aria-label", `${copy.revoke} ${view.name}`);
34456
+ const revokeLabel = document2.createElement("span");
34457
+ revokeLabel.textContent = copy.revoke;
34458
+ revoke.append(createRendererSettingsIcon("trash", 14), revokeLabel);
34459
+ revoke.addEventListener("click", () => {
34460
+ if (!client || revoke.disabled) return;
34461
+ if (revoke.dataset.armed !== "true") {
34462
+ revoke.dataset.armed = "true";
34463
+ revokeLabel.textContent = copy.confirmRevoke;
34464
+ return;
34465
+ }
34466
+ revoke.disabled = true;
34467
+ revokeLabel.textContent = copy.revoking;
34468
+ void context.runLatest(
34469
+ () => client.revokeClient(view.name).then(() => client.listClients()),
34470
+ {
34471
+ success(result) {
34472
+ setStatus("", "idle");
34473
+ renderRows(result.clients);
34474
+ },
34475
+ failure(error51) {
34476
+ revoke.disabled = false;
34477
+ revoke.dataset.armed = "true";
34478
+ revokeLabel.textContent = copy.confirmRevoke;
34479
+ setStatus(errorMessage5(error51, copy.failed), "error");
34480
+ }
34481
+ }
34482
+ );
34483
+ });
34484
+ actions.append(full, revoke);
34485
+ row.append(nameCell, accessCell, connectionCell, grantCell, urlCell, actions);
34486
+ tbody.append(row);
34487
+ }
34488
+ };
34489
+ const load = () => {
34490
+ if (!client) {
34491
+ renderEmpty(copy.unavailable);
34492
+ return;
34493
+ }
34494
+ setStatus(copy.loading, "idle");
34495
+ void context.runLatest(() => client.listClients(), {
34496
+ success(result) {
34497
+ setStatus("", "idle");
34498
+ renderRows(result.clients);
34499
+ },
34500
+ failure(error51) {
34501
+ setStatus("", "idle");
34502
+ renderEmpty(
34503
+ error51 instanceof RendererExternalClientsUnavailableError ? copy.unavailable : errorMessage5(error51, copy.failed)
34504
+ );
34505
+ }
34506
+ });
34507
+ };
34508
+ form.addEventListener("submit", (event) => {
34509
+ event.preventDefault();
34510
+ if (!client || add.disabled) return;
34511
+ const name = nameInput.value.trim();
34512
+ const access = accessSelect.value;
34513
+ const connectionMode = connectionSelect.value;
34514
+ const dispatchGrant = grantSelect.value;
34515
+ const roots = workspaces.value.split("\n").map((line) => line.trim()).filter(Boolean);
34516
+ const directUrl = directUrlInput.value.trim();
34517
+ const oauthClientId = oauthInput.value.trim();
34518
+ add.disabled = true;
34519
+ add.textContent = copy.adding;
34520
+ void context.runLatest(
34521
+ () => client.createClient({
34522
+ name,
34523
+ access,
34524
+ connectionMode,
34525
+ dispatchGrant,
34526
+ ...access === "selected-workspaces" ? { workspaces: roots } : {},
34527
+ ...directUrl ? { directUrl } : {},
34528
+ ...oauthClientId ? { oauthClientId } : {}
34529
+ }).then(async (created) => {
34530
+ const listed = await client.listClients();
34531
+ return { created, listed };
34532
+ }),
34533
+ {
34534
+ success({ created, listed }) {
34535
+ add.disabled = false;
34536
+ add.textContent = copy.add;
34537
+ nameInput.value = "";
34538
+ directUrlInput.value = "";
34539
+ oauthInput.value = "";
34540
+ renderRows(listed.clients);
34541
+ setStatus(
34542
+ created.token ? `${copy.tokenOnce} ${created.token}` : copy.connectOAuth,
34543
+ "idle"
34544
+ );
34545
+ },
34546
+ failure(error51) {
34547
+ add.disabled = false;
34548
+ add.textContent = copy.add;
34549
+ setStatus(errorMessage5(error51, copy.failed), "error");
34550
+ }
34551
+ }
34552
+ );
34553
+ });
34554
+ refresh.addEventListener("click", load);
34555
+ load();
34556
+ return void 0;
34557
+ }
34558
+ });
34559
+ }
34560
+
32820
34561
  // src/settings/update-request.ts
32821
34562
  var RENDERER_UPDATE_REQUEST_TIMEOUT_MS = 15e3;
32822
34563
  var RendererUpdateRequestTimeoutError = class extends Error {
@@ -33425,7 +35166,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
33425
35166
  }
33426
35167
  });
33427
35168
  }
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) {
35169
+ 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
35170
  return Object.freeze([
33430
35171
  createConnectionsSettingsPage(messages, getDiagnostics, void 0, getRemoteConnections),
33431
35172
  createMobileWebPage(messages, () => {
@@ -33434,6 +35175,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
33434
35175
  }),
33435
35176
  createRemoteConnectionsPage(messages, getRemoteConnections),
33436
35177
  createEnrollmentSettingsPage(messages, getEnrollmentClient),
35178
+ createMcpClientsSettingsPage(messages, getExternalClientsClient),
33437
35179
  createAccountsSettingsPage(messages, getAccountClient),
33438
35180
  ...harnessSchedules ? [createHarnessSchedulesPage(messages, harnessSchedules)] : [],
33439
35181
  createSessionImportSettingsPage(
@@ -36237,7 +37979,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
36237
37979
  `;
36238
37980
 
36239
37981
  // 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';
37982
+ 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
37983
 
36242
37984
  // src/console/app.ts
36243
37985
  function required2(pages, id) {
@@ -36311,6 +38053,9 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
36311
38053
  const enrollmentClient = createRendererEnrollmentClient(
36312
38054
  (method, params) => manager.sendRequest(method, params)
36313
38055
  );
38056
+ const externalClientsClient = createRendererExternalClientsClient(
38057
+ (method, params) => manager.sendRequest(method, params)
38058
+ );
36314
38059
  const updateClient = consoleUpdateClient();
36315
38060
  const remoteConnections = createConsoleRemoteConnections(manager);
36316
38061
  const settingsPages = createDefaultRendererSettingsPages(
@@ -36326,7 +38071,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
36326
38071
  void 0,
36327
38072
  void 0,
36328
38073
  void 0,
36329
- () => enrollmentClient
38074
+ () => enrollmentClient,
38075
+ () => externalClientsClient
36330
38076
  );
36331
38077
  const navigate = (pageId) => {
36332
38078
  navigation.classList.remove("is-open");
@@ -36353,6 +38099,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
36353
38099
  ),
36354
38100
  hostPage(required2(settingsPages, "remote-connections"), messages, state),
36355
38101
  hostPage(required2(settingsPages, "enrollment"), messages, state),
38102
+ hostPage(required2(settingsPages, "mcp-clients"), messages, state),
36356
38103
  hostPage(required2(settingsPages, "accounts"), messages, state),
36357
38104
  hostPage(required2(settingsPages, "session-import"), messages, state),
36358
38105
  createConnectDevicesPage(locale),
@@ -36615,6 +38362,7 @@ lucide/dist/esm/icons/x.mjs:
36615
38362
  lucide/dist/esm/icons/users.mjs:
36616
38363
  lucide/dist/esm/icons/plus.mjs:
36617
38364
  lucide/dist/esm/icons/key-round.mjs:
38365
+ lucide/dist/esm/icons/bot.mjs:
36618
38366
  (**
36619
38367
  * @license lucide v1.28.0 - ISC
36620
38368
  *