@codexhost/cli-win32-x64 0.31.0 → 0.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/README.md +1 -1
  2. package/app/codexhost-distribution.json +1 -1
  3. package/app/console-server.mjs +225 -20
  4. package/app/console-web.js +285 -25
  5. package/app/desktop-controller.mjs +534 -143
  6. package/app/host-runtime.mjs +2651 -913
  7. package/app/plugins/antigravity/plugin.mjs +20 -22
  8. package/app/plugins/claude-code/plugin.mjs +21 -0
  9. package/app/plugins/codebuddy/plugin.mjs +29 -2
  10. package/app/plugins/codex-usage/plugin.mjs +18 -0
  11. package/app/plugins/copilot/plugin.mjs +18 -0
  12. package/app/plugins/cursor-cli/plugin.mjs +18 -0
  13. package/app/plugins/deepseek-harness/plugin.mjs +18 -0
  14. package/app/plugins/devin/plugin.mjs +18 -0
  15. package/app/plugins/grok/plugin.mjs +18 -0
  16. package/app/plugins/hermes/plugin.mjs +18 -0
  17. package/app/plugins/kimi-code/plugin.mjs +18 -0
  18. package/app/plugins/kiro-cli/plugin.mjs +18 -0
  19. package/app/plugins/omp/plugin.mjs +18 -0
  20. package/app/plugins/opencode/plugin.mjs +18 -0
  21. package/app/plugins/pi/plugin.mjs +18 -0
  22. package/app/plugins/qoder/plugin.mjs +18 -0
  23. package/app/plugins/qoder-cn/plugin.mjs +18 -0
  24. package/app/plugins/qwen-code/plugin.mjs +18 -0
  25. package/app/plugins/workbuddy/plugin.mjs +29 -2
  26. package/app/plugins/zcode/plugin.mjs +18 -0
  27. package/app/renderer-extension.js +424 -129
  28. package/app/web/assets/{abnfDiagram-XWFEHMT6-Bqy7uOSy.js → abnfDiagram-XWFEHMT6-7XITZmBH.js} +1 -1
  29. package/app/web/assets/{architectureDiagram-CSQXQB3N-6aaP1YoM.js → architectureDiagram-CSQXQB3N-C8Usdzd8.js} +1 -1
  30. package/app/web/assets/{blockDiagram-BEDRHYPZ-B4QSFXe0.js → blockDiagram-BEDRHYPZ-CyN9yE_Q.js} +1 -1
  31. package/app/web/assets/{c4Diagram-M2UUVUY5-BYE-C8Gq.js → c4Diagram-M2UUVUY5-CjhY1l3g.js} +1 -1
  32. package/app/web/assets/{chunk-2Q5K7J3B-CiEM-GTd.js → chunk-2Q5K7J3B-o24_rh4_.js} +1 -1
  33. package/app/web/assets/{chunk-3GCGMST5-hzY9BiB1.js → chunk-3GCGMST5-D7bw3E1a.js} +1 -1
  34. package/app/web/assets/{chunk-5VM5RSS4-DYXznY0H.js → chunk-5VM5RSS4-D0v4acf7.js} +1 -1
  35. package/app/web/assets/{chunk-7U7NFRK5-Bzw5MDPr.js → chunk-7U7NFRK5-CYJxP4rV.js} +1 -1
  36. package/app/web/assets/{chunk-CNRTWJTD-DMbxMfi3.js → chunk-CNRTWJTD-DTgCtcCl.js} +1 -1
  37. package/app/web/assets/{chunk-D5HYT7QG-By0ZVBtD.js → chunk-D5HYT7QG-qRNelehW.js} +1 -1
  38. package/app/web/assets/{chunk-EBZ3SEQC-Yyu_sMV7.js → chunk-EBZ3SEQC-BgJPPYdu.js} +2 -2
  39. package/app/web/assets/{chunk-JWPE2WC7-DDzqxIPT.js → chunk-JWPE2WC7-C50ZnSQQ.js} +1 -1
  40. package/app/web/assets/{chunk-KTR4FSNJ-GlKqhtpl.js → chunk-KTR4FSNJ-Cifh4XHc.js} +1 -1
  41. package/app/web/assets/{chunk-XXDRQBXY-DNc-CvYu.js → chunk-XXDRQBXY-D23WAHPW.js} +1 -1
  42. package/app/web/assets/{classDiagram-v2-KXABOMEV-4_PFS2N_.js → classDiagram-v2-KXABOMEV-B3cezFGj.js} +1 -1
  43. package/app/web/assets/{cose-bilkent-JH36ORCC-BE3foHUY.js → cose-bilkent-JH36ORCC-VSMi4La2.js} +1 -1
  44. package/app/web/assets/{cynefin-EF2NZ3EQ-D2PqrYZ3.js → cynefin-EF2NZ3EQ-qQnfHq16.js} +1 -1
  45. package/app/web/assets/{cynefinDiagram-NJNITYFG-DOObpTbq.js → cynefinDiagram-NJNITYFG-BJELApXD.js} +1 -1
  46. package/app/web/assets/{dagre-KIHZ2IZ3-Znm2jin9.js → dagre-KIHZ2IZ3-C8B5ZMVs.js} +1 -1
  47. package/app/web/assets/{diagram-7YQZDPLS-ByZMD-uA.js → diagram-7YQZDPLS-HIWoNpzV.js} +1 -1
  48. package/app/web/assets/{diagram-QBROCOUO-BiRShpnN.js → diagram-QBROCOUO-3_vS1jbp.js} +1 -1
  49. package/app/web/assets/{diagram-RJJCUUZO-D9wLVoK2.js → diagram-RJJCUUZO-C_Kndn_e.js} +1 -1
  50. package/app/web/assets/{diagram-WERXNKYE-BSbIh-yC.js → diagram-WERXNKYE-BLWdOwya.js} +1 -1
  51. package/app/web/assets/{diagram-YHHI257C-DMWrHMc8.js → diagram-YHHI257C-DJeOs6eS.js} +1 -1
  52. package/app/web/assets/{diagram-YR4HJLHV-C4sBAFb1.js → diagram-YR4HJLHV-BKNULu-g.js} +1 -1
  53. package/app/web/assets/{ebnfDiagram-N527522P-BZLloaoQ.js → ebnfDiagram-N527522P-Bu8aReoF.js} +1 -1
  54. package/app/web/assets/{elk-O5DQBFGD-Da3e5tn5.js → elk-O5DQBFGD-CIp7Z0ER.js} +1 -1
  55. package/app/web/assets/{erDiagram-K3K3BIDK-B2lKAIZF.js → erDiagram-K3K3BIDK-BTsor1Lp.js} +1 -1
  56. package/app/web/assets/{flowDiagram-Z6JWZHQI-q2EY_kmB.js → flowDiagram-Z6JWZHQI-p_h5PKQr.js} +1 -1
  57. package/app/web/assets/{ganttDiagram-3PRQTZWP-BGrNZ20b.js → ganttDiagram-3PRQTZWP-DKjfPPJ1.js} +1 -1
  58. package/app/web/assets/{gitGraphDiagram-VXDFKS5L-DIZNXREy.js → gitGraphDiagram-VXDFKS5L-RnPOf2fj.js} +1 -1
  59. package/app/web/assets/{grid-E2QIVN74-0cUkPG69.js → grid-E2QIVN74-C96GnBO1.js} +1 -1
  60. package/app/web/assets/{index-PN7K-15_.js → index-CDRWzs-u.js} +99 -99
  61. package/app/web/assets/index-Dwdnvinl.css +1 -0
  62. package/app/web/assets/{infoDiagram-EZ3ZOAHP-BHhUTQCn.js → infoDiagram-EZ3ZOAHP-B68eZHsb.js} +1 -1
  63. package/app/web/assets/{ishikawaDiagram-S3EKX5GW-DPOxtl4c.js → ishikawaDiagram-S3EKX5GW-BLj7PFLt.js} +1 -1
  64. package/app/web/assets/{journeyDiagram-POQNLL5X-D8RyXckG.js → journeyDiagram-POQNLL5X-Bo-_In0d.js} +1 -1
  65. package/app/web/assets/{kanban-definition-BH5XI6FM-COJv3Hyh.js → kanban-definition-BH5XI6FM-BpHvxprW.js} +1 -1
  66. package/app/web/assets/{mermaid.core-DYdcDKIt.js → mermaid.core-COb9i2Gl.js} +4 -4
  67. package/app/web/assets/{mindmap-definition-WVAN44T4-DnYIM4ja.js → mindmap-definition-WVAN44T4-DG15AlXd.js} +1 -1
  68. package/app/web/assets/{pegDiagram-D4NLKWP3-Ds3GAEJ6.js → pegDiagram-D4NLKWP3-GMBk8RM6.js} +1 -1
  69. package/app/web/assets/{pieDiagram-36ENHN4W-BhLUJGEB.js → pieDiagram-36ENHN4W-BzeJgVnn.js} +1 -1
  70. package/app/web/assets/{quadrantDiagram-ZQUDMS73-DwtX-IxK.js → quadrantDiagram-ZQUDMS73-C--Kif6a.js} +1 -1
  71. package/app/web/assets/{railroadDiagram-JIZHGYPL-D2vmTTnJ.js → railroadDiagram-JIZHGYPL-NPLVu_R7.js} +1 -1
  72. package/app/web/assets/{render-VIF2ZAQL-DGU1ql-Z.js → render-VIF2ZAQL-DdpQ8E0J.js} +2 -2
  73. package/app/web/assets/{requirementDiagram-AXW2TVFA-u3j1sKkI.js → requirementDiagram-AXW2TVFA-WWRwRbkA.js} +1 -1
  74. package/app/web/assets/{sankeyDiagram-FBCJTAIF-k-An9VHW.js → sankeyDiagram-FBCJTAIF-hBr6pZ0V.js} +1 -1
  75. package/app/web/assets/{sequenceDiagram-3LA2ROMG-DUjbYb4R.js → sequenceDiagram-3LA2ROMG-DvzZWy5J.js} +1 -1
  76. package/app/web/assets/{sizeCapture-2Q2CQKSF-DATTL7FZ.js → sizeCapture-2Q2CQKSF-C2B86W70.js} +1 -1
  77. package/app/web/assets/{stateDiagram-v2-ATKHQDJO-cCJX5M2u.js → stateDiagram-v2-ATKHQDJO-Jwj3XqMx.js} +1 -1
  78. package/app/web/assets/{swimlanes-YQL5WMAO-B7grWEWt.js → swimlanes-YQL5WMAO-DxI0hC09.js} +1 -1
  79. package/app/web/assets/swimlanesDiagram-UCCPES4V-CR0nv8kJ.js +8 -0
  80. package/app/web/assets/{timeline-definition-7Z437IG3-BhsLa6l1.js → timeline-definition-7Z437IG3-m8Ew8iuN.js} +1 -1
  81. package/app/web/assets/{usecaseDiagram-RDK6N6HP-CkPQYmQw.js → usecaseDiagram-RDK6N6HP-BsiPSzIT.js} +1 -1
  82. package/app/web/assets/{vennDiagram-SHRQU5PJ-CufZSwvw.js → vennDiagram-SHRQU5PJ-yYfXhiGp.js} +1 -1
  83. package/app/web/assets/{wardleyDiagram-F3OXNVQS-CSkfpFOA.js → wardleyDiagram-F3OXNVQS-DHLEfnsg.js} +1 -1
  84. package/app/web/assets/{xychartDiagram-GDYJKCDI-BhZf9scK.js → xychartDiagram-GDYJKCDI-Drn_UxYt.js} +1 -1
  85. package/app/web/codexhost-settings.js +123 -55
  86. package/app/web/index.html +2 -2
  87. package/app/web/plugins/deepseek-ai__dsh-api-gateway/client.js +1 -1
  88. package/app/web/plugins/deepseek-ai__dsh-api-remotes/client.js +1 -1
  89. package/app/web/plugins/deepseek-ai__dsh-api-session-controller/client.js +8 -8
  90. package/app/web/plugins/deepseek-ai__dsh-client-locale/client.js +1 -1
  91. package/app/web/plugins/deepseek-ai__dsh-client-ui-attachment/client.js +1 -1
  92. package/app/web/plugins/deepseek-ai__dsh-client-ui-chat/client.js +75 -75
  93. package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +65 -65
  94. package/app/web/plugins/deepseek-ai__dsh-client-ui-commands/client.js +1 -1
  95. package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +18 -18
  96. package/app/web/plugins/deepseek-ai__dsh-client-ui-plan/client.js +1 -1
  97. package/app/web/plugins/deepseek-ai__dsh-client-ui-settings-general/client.js +1 -1
  98. package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar-documentpreview/client.js +7 -7
  99. package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar-right/client.js +2 -2
  100. package/app/web/plugins/deepseek-ai__dsh-client-ui-tool/client.js +18 -18
  101. package/app/web/plugins/deepseek-ai__dsh-client-ui-user-questions/client.js +1 -1
  102. package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +69 -69
  103. package/app/web/sw.js +230 -16
  104. package/app/web-modules/node_modules/@deepseek-ai/dsh-client-modules/index.js +7 -7
  105. package/app/web-modules/server.mjs +1144 -185
  106. package/bin/codexhost.exe +0 -0
  107. package/libexec/codexhost-node-repl.exe +0 -0
  108. package/libexec/codexhost-screenshot.exe +0 -0
  109. package/libexec/codexhost-shell.exe +0 -0
  110. package/libexec/codexhost-shim.exe +0 -0
  111. package/libexec/codexhost-updater.exe +0 -0
  112. package/package.json +1 -1
  113. package/app/web/assets/index-BbmB5VLj.css +0 -1
  114. package/app/web/assets/swimlanesDiagram-UCCPES4V-B8Jem9gq.js +0 -8
@@ -21235,6 +21235,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
21235
21235
  snapshot: "codexhost/extensions/snapshot",
21236
21236
  catalog: "codexhost/extensions/catalog",
21237
21237
  catalogIcon: "codexhost/extensions/catalogIcon",
21238
+ catalogScreenshot: "codexhost/extensions/catalogScreenshot",
21238
21239
  install: "codexhost/extensions/install",
21239
21240
  update: "codexhost/extensions/update",
21240
21241
  enable: "codexhost/extensions/enable",
@@ -21271,6 +21272,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
21271
21272
  mimeType: external_exports.enum(["image/png", "image/jpeg", "image/webp"]),
21272
21273
  base64: base643(DESKTOP_EXTENSION_ICON_MAX_BYTES)
21273
21274
  });
21275
+ var hostExtensionCatalogScreenshotIndexSchema = external_exports.int().min(0).max(DESKTOP_EXTENSION_SCREENSHOT_LIMIT - 1);
21276
+ var hostExtensionsCatalogScreenshotResultSchema = external_exports.strictObject({
21277
+ mimeType: external_exports.enum(["image/png", "image/jpeg", "image/webp"]),
21278
+ base64: base643(DESKTOP_EXTENSION_SCREENSHOT_MAX_BYTES)
21279
+ });
21274
21280
  var hostExtensionSettingsSchema = external_exports.strictObject({
21275
21281
  settingsRevision: hostExtensionRevisionSchema,
21276
21282
  values: jsonObjectSchema
@@ -21289,6 +21295,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
21289
21295
  params: external_exports.strictObject({ ...id }),
21290
21296
  result: hostExtensionsCatalogIconResultSchema
21291
21297
  },
21298
+ [HOST_EXTENSIONS_RPC.catalogScreenshot]: {
21299
+ params: external_exports.strictObject({ ...id, index: hostExtensionCatalogScreenshotIndexSchema }),
21300
+ result: hostExtensionsCatalogScreenshotResultSchema
21301
+ },
21292
21302
  [HOST_EXTENSIONS_RPC.install]: {
21293
21303
  params: external_exports.strictObject({ source: hostExtensionInstallSourceSchema }),
21294
21304
  result: installationResult
@@ -21524,6 +21534,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
21524
21534
  "codexhost/harness/preferences/get",
21525
21535
  "codexhost/harness/preferences/patch",
21526
21536
  "experimentalFeature/list",
21537
+ "collaborationMode/list",
21538
+ "codexhost/thread/collaboration-mode/select",
21527
21539
  "thread/list",
21528
21540
  "thread/metadata/update",
21529
21541
  "codexhost/thread/catalog/read",
@@ -21816,6 +21828,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
21816
21828
  nextCursor: external_exports.string().nullable()
21817
21829
  }),
21818
21830
  configuration: external_exports.object({
21831
+ codexCollaborationMode: external_exports.enum(["plan", "default"]).optional(),
21819
21832
  /** Native Codex model names are not external Harness transport refs. */
21820
21833
  native: external_exports.object({
21821
21834
  model: external_exports.string().min(1).max(1024).optional(),
@@ -22590,6 +22603,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
22590
22603
  thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
22591
22604
  permissionModeId: harnessPermissionModeIdSchema.optional()
22592
22605
  }).refine((value) => Boolean(value.model || value.thinkingOptionId || value.permissionModeId), "A default configuration must contain a preference");
22606
+ var projectHarnessSelectionSchema = external_exports.discriminatedUnion("mode", [
22607
+ external_exports.strictObject({ mode: external_exports.literal("global") }),
22608
+ external_exports.strictObject({ mode: external_exports.literal("last") }),
22609
+ external_exports.strictObject({ mode: external_exports.literal("manual"), harnessId: harnessIdSchema })
22610
+ ]);
22593
22611
  var newThreadDefaultsSchema = external_exports.strictObject({
22594
22612
  lastHarness: harnessIdSchema.optional(),
22595
22613
  byHarness: external_exports.record(preferenceHarnessKey, harnessDefaultConfigurationSchema)
@@ -30756,6 +30774,7 @@ ${error62.stderrTail}`] : []
30756
30774
  updating: "Updating\u2026",
30757
30775
  updateToVersion: "Update to v{version}",
30758
30776
  installedBadge: "Installed",
30777
+ installedDisabledBadge: "Installed \xB7 Off",
30759
30778
  uninstall: "Uninstall",
30760
30779
  uninstalling: "Uninstalling\u2026",
30761
30780
  uninstallConfirmPrompt: "Remove this plugin?",
@@ -30768,7 +30787,9 @@ ${error62.stderrTail}`] : []
30768
30787
  marketplaceEmptyDescription: "Refresh to check for newly published plugins, or import one from GitHub, a local .zip package, or a local directory.",
30769
30788
  marketplaceFallbackNotice: "The remote catalog is unreachable. You can still install plugins from GitHub, a ZIP, or a local directory.",
30770
30789
  marketplaceLoadFailed: "Could not load plugin marketplace: {message}",
30771
- installedSuccess: "Installed \u201C{name}\u201D (v{version}). Enable it when ready.",
30790
+ installedSuccess: "Installed and enabled \u201C{name}\u201D (v{version}).",
30791
+ installedSlotConflict: "Installed \u201C{name}\u201D (v{version}), but left it disabled because a Desktop slot conflicts with {other}. Disable {other} first to enable it.",
30792
+ installedDisabled: "Installed \u201C{name}\u201D (v{version}), currently disabled. Review or enable it in Installed.",
30772
30793
  updatedSuccess: "Updated \u201C{name}\u201D to v{version}.",
30773
30794
  uninstalledSuccess: "Uninstalled \u201C{name}\u201D.",
30774
30795
  installFailed: "Could not install plugin: {message}",
@@ -30985,6 +31006,7 @@ ${error62.stderrTail}`] : []
30985
31006
  updating: "\u66F4\u65B0\u4E2D\u2026",
30986
31007
  updateToVersion: "\u66F4\u65B0\u5230 v{version}",
30987
31008
  installedBadge: "\u5DF2\u5B89\u88C5",
31009
+ installedDisabledBadge: "\u5DF2\u5B89\u88C5 \xB7 \u672A\u542F\u7528",
30988
31010
  uninstall: "\u5378\u8F7D",
30989
31011
  uninstalling: "\u5378\u8F7D\u4E2D\u2026",
30990
31012
  uninstallConfirmPrompt: "\u786E\u8BA4\u5378\u8F7D\u6B64\u63D2\u4EF6\uFF1F",
@@ -30997,7 +31019,9 @@ ${error62.stderrTail}`] : []
30997
31019
  marketplaceEmptyDescription: "\u53EF\u70B9\u51FB\u5237\u65B0\u83B7\u53D6\u6700\u65B0\u76EE\u5F55\uFF0C\u6216\u901A\u8FC7 GitHub\u3001\u672C\u5730 .zip \u5305\u6216\u672C\u5730\u76EE\u5F55\u5BFC\u5165\u3002",
30998
31020
  marketplaceFallbackNotice: "\u8FDC\u7AEF\u5E02\u573A\u76EE\u5F55\u6682\u4E0D\u53EF\u8FBE\u3002\u4F60\u4ECD\u53EF\u901A\u8FC7 GitHub\u3001ZIP \u6216\u672C\u5730\u76EE\u5F55\u5B89\u88C5\u63D2\u4EF6\u3002",
30999
31021
  marketplaceLoadFailed: "\u65E0\u6CD5\u52A0\u8F7D\u63D2\u4EF6\u5E02\u573A\uFF1A{message}",
31000
- installedSuccess: "\u5DF2\u5B89\u88C5\u201C{name}\u201D\uFF08v{version}\uFF09\uFF0C\u53EF\u6309\u9700\u5F00\u542F\u3002",
31022
+ installedSuccess: "\u5DF2\u5B89\u88C5\u5E76\u542F\u7528\u201C{name}\u201D\uFF08v{version}\uFF09\u3002",
31023
+ installedSlotConflict: "\u5DF2\u5B89\u88C5\u201C{name}\u201D\uFF08v{version}\uFF09\uFF0C\u4F46\u56E0\u4E0E {other} \u5B58\u5728 Desktop \u69FD\u4F4D\u51B2\u7A81\u6682\u672A\u542F\u7528\uFF0C\u8BF7\u5148\u7981\u7528 {other} \u540E\u518D\u542F\u7528\u3002",
31024
+ installedDisabled: "\u5DF2\u5B89\u88C5\u201C{name}\u201D\uFF08v{version}\uFF09\uFF0C\u5F53\u524D\u672A\u542F\u7528\uFF0C\u53EF\u524D\u5F80\u300C\u5DF2\u5B89\u88C5\u300D\u67E5\u770B\u6216\u624B\u52A8\u542F\u7528\u3002",
31001
31025
  updatedSuccess: "\u5DF2\u5C06\u201C{name}\u201D\u66F4\u65B0\u81F3 v{version}\u3002",
31002
31026
  uninstalledSuccess: "\u5DF2\u5378\u8F7D\u201C{name}\u201D\u3002",
31003
31027
  installFailed: "\u5B89\u88C5\u63D2\u4EF6\u5931\u8D25\uFF1A{message}",
@@ -34770,9 +34794,11 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
34770
34794
  }
34771
34795
 
34772
34796
  // src/renderer-native-model-loading.ts
34773
- function isNativeModelCarrierLoadingButton(button2) {
34774
- if (!button2.disabled || button2.getAttribute("data-composer-navigation-target") !== "reasoning" || button2.getAttribute("aria-busy") !== "true" || button2.hasAttribute("aria-haspopup"))
34775
- return false;
34797
+ var NATIVE_MODEL_LOADING_FIBER_WALK_DEPTH = 120;
34798
+ function isRecord(value) {
34799
+ return typeof value === "object" && value !== null && !Array.isArray(value);
34800
+ }
34801
+ function hasCarrierLabel(button2) {
34776
34802
  for (const label of button2.children) {
34777
34803
  const text2 = label.firstChild;
34778
34804
  if (label.localName !== "span" || text2?.nodeName !== "#text") continue;
@@ -34783,6 +34809,40 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
34783
34809
  }
34784
34810
  return false;
34785
34811
  }
34812
+ function hasSkeletonPlaceholder(button2) {
34813
+ if (!button2.getAttribute("aria-label")?.trim() || button2.children.length !== 1) return false;
34814
+ const placeholder = button2.children[0];
34815
+ return placeholder?.localName === "span" && placeholder.getAttribute("aria-hidden") === "true" && Boolean(placeholder.getAttribute("data-size")?.trim()) && (placeholder.children?.length ?? 0) === 0 && (placeholder.textContent ?? "").trim() === "";
34816
+ }
34817
+ function hasNativeModelPickerLoadingOwner(button2, composer) {
34818
+ const fiberKey = Object.getOwnPropertyNames(button2).find(
34819
+ (key2) => key2.startsWith("__reactFiber$")
34820
+ );
34821
+ if (!fiberKey) return false;
34822
+ const ancestors2 = committedReactAncestors(
34823
+ Object.getOwnPropertyDescriptor(button2, fiberKey)?.value
34824
+ );
34825
+ const host = ancestors2[0];
34826
+ const hostProps = isRecord(host?.memoizedProps) ? host.memoizedProps : void 0;
34827
+ if (host?.stateNode !== button2 || hostProps?.["data-composer-navigation-target"] !== "reasoning" || hostProps?.["aria-busy"] !== true || hostProps?.disabled !== true) {
34828
+ return false;
34829
+ }
34830
+ for (const owner of ancestors2.slice(1, NATIVE_MODEL_LOADING_FIBER_WALK_DEPTH)) {
34831
+ if (owner.stateNode === composer) break;
34832
+ const props = isRecord(owner.memoizedProps) ? owner.memoizedProps : void 0;
34833
+ if (!props) continue;
34834
+ if ("conversationId" in props && "permissionsHostId" in props && "permissionsCwdOverride" in props && ("hasThreadResumeFailed" in props || "serviceTierDefaults" in props || isRecord(props.home))) {
34835
+ return true;
34836
+ }
34837
+ }
34838
+ return false;
34839
+ }
34840
+ function isNativeModelLoadingButton(button2, composer) {
34841
+ if (!button2.disabled || button2.getAttribute("data-composer-navigation-target") !== "reasoning" || button2.getAttribute("aria-busy") !== "true" || button2.hasAttribute("aria-haspopup"))
34842
+ return false;
34843
+ if (hasCarrierLabel(button2)) return true;
34844
+ return hasSkeletonPlaceholder(button2) && hasNativeModelPickerLoadingOwner(button2, composer);
34845
+ }
34786
34846
 
34787
34847
  // src/renderer-native-model-retry.ts
34788
34848
  function record10(value) {
@@ -34922,7 +34982,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
34922
34982
  const composer = element.closest(CODEX_COMPOSER_SELECTOR);
34923
34983
  return composer && !hasNativeComposerRequest(composer) && !isOrbitComposer(composer) ? composer : null;
34924
34984
  }
34925
- function isRecord(value) {
34985
+ function isRecord2(value) {
34926
34986
  return typeof value === "object" && value !== null && !Array.isArray(value);
34927
34987
  }
34928
34988
  var NATIVE_CONTROL_FIBER_WALK_DEPTH = 120;
@@ -34939,7 +34999,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
34939
34999
  let fiber = fiberName ? Object.getOwnPropertyDescriptor(element, fiberName)?.value : null;
34940
35000
  for (let depth = 0; fiber && depth < NATIVE_CONTROL_FIBER_WALK_DEPTH; depth += 1) {
34941
35001
  const props = fiber.memoizedProps;
34942
- if (isRecord(props) && typeof props.onSelectModel === "function" && "reasoningEffort" in props && (typeof props.onSelectReasoningEffort === "function" && isRecord(props.fallbackPowerSelection) || element.getAttribute("data-composer-navigation-target") === "reasoning" && typeof props.onCommitPower === "function" && Array.isArray(props.powerSelections))) {
35002
+ if (isRecord2(props) && typeof props.onSelectModel === "function" && "reasoningEffort" in props && (typeof props.onSelectReasoningEffort === "function" && isRecord2(props.fallbackPowerSelection) || element.getAttribute("data-composer-navigation-target") === "reasoning" && typeof props.onCommitPower === "function" && Array.isArray(props.powerSelections))) {
34943
35003
  return true;
34944
35004
  }
34945
35005
  const parent = fiber.return;
@@ -34959,7 +35019,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
34959
35019
  let ownsComposerPermissionState = false;
34960
35020
  for (let depth = 0; fiber && depth < NATIVE_CONTROL_FIBER_WALK_DEPTH; depth += 1) {
34961
35021
  const props = fiber.memoizedProps;
34962
- if (isRecord(props)) {
35022
+ if (isRecord2(props)) {
34963
35023
  if (props["data-composer-navigation-target"] === "permissions" && props["aria-haspopup"] === "menu") {
34964
35024
  ownsTrigger = true;
34965
35025
  }
@@ -34990,7 +35050,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
34990
35050
  'button[aria-haspopup="menu"], button[data-composer-navigation-target="reasoning"]'
34991
35051
  )
34992
35052
  ].filter(
34993
- (button2) => !isOwnedRendererControl(button2) && button2.closest(CODEX_COMPOSER_SELECTOR) === composer && (isNativeModelControlCandidate(button2) || isNativeModelRetryButton(button2, composer) || isNativeModelCarrierLoadingButton(button2))
35053
+ (button2) => !isOwnedRendererControl(button2) && button2.closest(CODEX_COMPOSER_SELECTOR) === composer && (isNativeModelControlCandidate(button2) || isNativeModelRetryButton(button2, composer) || isNativeModelLoadingButton(button2, composer))
34994
35054
  );
34995
35055
  return candidates.length === 1 ? candidates[0] ?? null : null;
34996
35056
  }
@@ -35449,19 +35509,19 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
35449
35509
 
35450
35510
  // src/renderer-codex-usage-banner.ts
35451
35511
  var MAX_FIBERS = 2e4;
35452
- function isRecord2(value) {
35512
+ function isRecord3(value) {
35453
35513
  return typeof value === "object" && value !== null && !Array.isArray(value);
35454
35514
  }
35455
35515
  function isUsageBanner(props) {
35456
- return isRecord2(props) && "banner" in props && "rateLimitStatus" in props && typeof props.sendBlocked === "boolean";
35516
+ return isRecord3(props) && "banner" in props && "rateLimitStatus" in props && typeof props.sendBlocked === "boolean";
35457
35517
  }
35458
35518
  function isElement(value) {
35459
- return isRecord2(value) && typeof value.setAttribute === "function" && isRecord2(value.style);
35519
+ return isRecord3(value) && typeof value.setAttribute === "function" && isRecord3(value.style);
35460
35520
  }
35461
35521
  function hostElements(fiber, budget) {
35462
35522
  const result = [];
35463
35523
  const visit2 = (node2) => {
35464
- for (let current = node2; isRecord2(current); current = current.sibling) {
35524
+ for (let current = node2; isRecord3(current); current = current.sibling) {
35465
35525
  if (budget.remaining-- <= 0) return;
35466
35526
  const { stateNode } = current;
35467
35527
  if (isElement(stateNode)) result.push(stateNode);
@@ -35472,13 +35532,13 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
35472
35532
  return result;
35473
35533
  }
35474
35534
  function findCodexUsageBannerElements(owner) {
35475
- if (!isRecord2(owner)) return [];
35535
+ if (!isRecord3(owner)) return [];
35476
35536
  const budget = { remaining: MAX_FIBERS };
35477
35537
  const found = [];
35478
35538
  const stack = [owner.child];
35479
35539
  while (stack.length > 0 && budget.remaining > 0) {
35480
35540
  const node2 = stack.pop();
35481
- if (!isRecord2(node2)) continue;
35541
+ if (!isRecord3(node2)) continue;
35482
35542
  budget.remaining -= 1;
35483
35543
  const fiber = node2;
35484
35544
  stack.push(fiber.sibling);
@@ -35524,13 +35584,13 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
35524
35584
  var MAX_HOOKS = 4096;
35525
35585
  var MAX_DOM_DEPTH = 12;
35526
35586
  var RETRY_DELAY_MS = 1e3;
35527
- function isRecord3(value) {
35587
+ function isRecord4(value) {
35528
35588
  return typeof value === "object" && value !== null && !Array.isArray(value);
35529
35589
  }
35530
35590
  function hooksOf(fiber) {
35531
35591
  const result = [];
35532
- let hook = isRecord3(fiber) ? fiber.memoizedState : null;
35533
- while (isRecord3(hook) && result.length < MAX_HOOKS) {
35592
+ let hook = isRecord4(fiber) ? fiber.memoizedState : null;
35593
+ while (isRecord4(hook) && result.length < MAX_HOOKS) {
35534
35594
  result.push(hook);
35535
35595
  hook = hook.next;
35536
35596
  }
@@ -35547,7 +35607,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
35547
35607
  Object.getOwnPropertyDescriptor(element, key2)?.value
35548
35608
  );
35549
35609
  const consumers = ancestors2.filter(
35550
- ({ memoizedProps: props }) => isRecord3(props) && typeof props.submitDisabledReasons === "string" && typeof props.onSubmitLocal === "function"
35610
+ ({ memoizedProps: props }) => isRecord4(props) && typeof props.submitDisabledReasons === "string" && typeof props.onSubmitLocal === "function"
35551
35611
  );
35552
35612
  if (consumers.length > 0) {
35553
35613
  const consumer = consumers.length === 1 ? consumers[0] : void 0;
@@ -35556,7 +35616,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
35556
35616
  }
35557
35617
  const scopes = [];
35558
35618
  ancestors2.forEach(({ memoizedProps: props }, index) => {
35559
- if (isRecord3(props) && "onLocalSubmitStart" in props && typeof props.submitDisabled === "boolean") {
35619
+ if (isRecord4(props) && "onLocalSubmitStart" in props && typeof props.submitDisabled === "boolean") {
35560
35620
  scopes.push({ owner: ancestors2[index], fibers: ancestors2.slice(0, index + 1) });
35561
35621
  }
35562
35622
  });
@@ -35581,11 +35641,11 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
35581
35641
  if (!Array.isArray(memo2) || !Array.isArray(memo2[1])) return null;
35582
35642
  const [subscriber, dependencies] = memo2;
35583
35643
  const signal = dependencies[0];
35584
- const adapted = isRecord3(signal) && typeof signal.get === "function" && typeof signal.subscribe === "function";
35644
+ const adapted = isRecord4(signal) && typeof signal.get === "function" && typeof signal.subscribe === "function";
35585
35645
  const [store, atom] = adapted ? [signal.store, signal.atom] : dependencies;
35586
35646
  const instance = hook.next?.queue;
35587
35647
  const effect = hook.next?.next?.memoizedState;
35588
- if (!isRecord3(subscriber) || typeof subscriber.getSnapshot !== "function" || typeof subscriber.subscribe !== "function" || !isRecord3(store) || typeof store.get !== "function" || typeof store.sub !== "function" || !isRecord3(atom) || typeof atom.read !== "function" || "write" in atom || !isRecord3(instance) || typeof instance.value !== "boolean" && typeof instance.value !== "string" || typeof instance.getSnapshot !== "function" || !isRecord3(effect) || typeof effect.create !== "function" || !Array.isArray(effect.deps) || effect.deps[0] !== subscriber.subscribe) {
35648
+ if (!isRecord4(subscriber) || typeof subscriber.getSnapshot !== "function" || typeof subscriber.subscribe !== "function" || !isRecord4(store) || typeof store.get !== "function" || typeof store.sub !== "function" || !isRecord4(atom) || typeof atom.read !== "function" || "write" in atom || !isRecord4(instance) || typeof instance.value !== "boolean" && typeof instance.value !== "string" || typeof instance.getSnapshot !== "function" || !isRecord4(effect) || typeof effect.create !== "function" || !Array.isArray(effect.deps) || effect.deps[0] !== subscriber.subscribe) {
35589
35649
  return null;
35590
35650
  }
35591
35651
  return {
@@ -35630,10 +35690,10 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
35630
35690
  visiting.delete(dependency);
35631
35691
  }
35632
35692
  }
35633
- if (!isRecord3(value)) return value;
35693
+ if (!isRecord4(value)) return value;
35634
35694
  if (typeof value.hardBlocked === "boolean") return trace(value, "reserve");
35635
35695
  if ("authMethod" in value) return trace(value, "auth");
35636
- if (isRecord3(value.data) && isRecord3(value.data.rate_limit)) {
35696
+ if (isRecord4(value.data) && isRecord4(value.data.rate_limit)) {
35637
35697
  return {
35638
35698
  ...value,
35639
35699
  data: { ...value.data, rate_limit: trace(value.data.rate_limit, "limit") }
@@ -35698,9 +35758,9 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
35698
35758
  const type = consumer.elementType ?? consumer.type;
35699
35759
  if (type == null) return null;
35700
35760
  const producers = ancestors2.slice(ancestors2.indexOf(consumer) + 1).filter(({ updateQueue }) => {
35701
- const cache = isRecord3(updateQueue) ? updateQueue.memoCache : null;
35702
- return isRecord3(cache) && Array.isArray(cache.data) && cache.data.some(
35703
- (row) => Array.isArray(row) && row.some((node2) => isRecord3(node2) && node2.props === props && node2.type === type)
35761
+ const cache = isRecord4(updateQueue) ? updateQueue.memoCache : null;
35762
+ return isRecord4(cache) && Array.isArray(cache.data) && cache.data.some(
35763
+ (row) => Array.isArray(row) && row.some((node2) => isRecord4(node2) && node2.props === props && node2.type === type)
35704
35764
  );
35705
35765
  });
35706
35766
  const producer = producers[0];
@@ -35815,7 +35875,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
35815
35875
  }
35816
35876
  function isBound(projections) {
35817
35877
  return [...projections].every(({ fiber, subscriber, instance }) => {
35818
- const alternate = isRecord3(fiber.alternate) ? fiber.alternate : null;
35878
+ const alternate = isRecord4(fiber.alternate) ? fiber.alternate : null;
35819
35879
  return [fiber, alternate].some(
35820
35880
  (candidate) => hooksOf(candidate).some(
35821
35881
  (hook) => Array.isArray(hook.memoizedState) && hook.memoizedState[0] === subscriber && hook.next?.queue === instance
@@ -35900,7 +35960,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
35900
35960
 
35901
35961
  // src/renderer-native-provider-usage-banner.ts
35902
35962
  var COMPOSER_SELECTOR = "[data-codex-composer-root]";
35903
- function isRecord4(value) {
35963
+ function isRecord5(value) {
35904
35964
  return typeof value === "object" && value !== null && !Array.isArray(value);
35905
35965
  }
35906
35966
  function isCodexUsageBanner(element, composer) {
@@ -35910,7 +35970,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
35910
35970
  for (const { memoizedProps: props } of committedReactAncestors(
35911
35971
  Object.getOwnPropertyDescriptor(element, key2)?.value
35912
35972
  )) {
35913
- if (!isRecord4(props) || !isRecord4(props.banner)) continue;
35973
+ if (!isRecord5(props) || !isRecord5(props.banner)) continue;
35914
35974
  const type = props.banner.banner_type;
35915
35975
  return typeof type === "string" && /^(?:[a-z0-9]+_)*rate_limit_reached$/u.test(type);
35916
35976
  }
@@ -36307,18 +36367,18 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
36307
36367
  }
36308
36368
 
36309
36369
  // src/renderer-native-thread.ts
36310
- function isRecord5(value) {
36370
+ function isRecord6(value) {
36311
36371
  return typeof value === "object" && value !== null && !Array.isArray(value);
36312
36372
  }
36313
36373
  function usesIndependentNativeInference(value, modelProvider) {
36314
- const config2 = isRecord5(value) ? value.config : null;
36315
- if (!isRecord5(config2)) return false;
36374
+ const config2 = isRecord6(value) ? value.config : null;
36375
+ if (!isRecord6(config2)) return false;
36316
36376
  const providerId = modelProvider ?? config2.model_provider;
36317
36377
  if (typeof providerId !== "string") return false;
36318
36378
  if (["openai", "cc-switch-official", "codexhost"].includes(providerId)) return false;
36319
36379
  const providers = config2.model_providers;
36320
- const provider = isRecord5(providers) ? providers[providerId] : null;
36321
- if (!isRecord5(provider) || typeof provider.base_url !== "string") return false;
36380
+ const provider = isRecord6(providers) ? providers[providerId] : null;
36381
+ if (!isRecord6(provider) || typeof provider.base_url !== "string") return false;
36322
36382
  if (!URL.canParse(provider.base_url)) return false;
36323
36383
  const endpoint = new URL(provider.base_url);
36324
36384
  if (!["http:", "https:"].includes(endpoint.protocol)) return false;
@@ -36332,8 +36392,8 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
36332
36392
  }
36333
36393
  async function readNativeCodexThread(sendRequest, threadId) {
36334
36394
  const native = await sendRequest("thread/read", { threadId, includeTurns: false });
36335
- const thread3 = isRecord5(native) ? native.thread : null;
36336
- if (!isRecord5(thread3) || thread3.id !== threadId || typeof thread3.modelProvider !== "string" || !thread3.modelProvider || thread3.modelProvider === "codexhost" || typeof thread3.cliVersion !== "string" || !thread3.cliVersion || thread3.cliVersion === "codexhost") {
36395
+ const thread3 = isRecord6(native) ? native.thread : null;
36396
+ if (!isRecord6(thread3) || thread3.id !== threadId || typeof thread3.modelProvider !== "string" || !thread3.modelProvider || thread3.modelProvider === "codexhost" || typeof thread3.cliVersion !== "string" || !thread3.cliVersion || thread3.cliVersion === "codexhost") {
36337
36397
  throw new Error("Native Thread response cannot establish Codex ownership");
36338
36398
  }
36339
36399
  return {
@@ -36422,15 +36482,15 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
36422
36482
  var CODEX_ACCOUNT_LIST_METHOD = "codexhost/account/list";
36423
36483
  var CODEX_ACCOUNT_REFRESH_METHOD = "codexhost/account/refresh";
36424
36484
  var CODEX_ACCOUNT_CHANGED_METHOD = "codexhost/account/changed";
36425
- function isRecord6(value) {
36485
+ function isRecord7(value) {
36426
36486
  return typeof value === "object" && value !== null && !Array.isArray(value);
36427
36487
  }
36428
36488
  function notifiedThreadId(notification) {
36429
- if (!isRecord6(notification) || !THREAD_USAGE_REFRESH_METHODS.includes(notification.method)) {
36489
+ if (!isRecord7(notification) || !THREAD_USAGE_REFRESH_METHODS.includes(notification.method)) {
36430
36490
  return null;
36431
36491
  }
36432
36492
  const params = notification.params;
36433
- if (!isRecord6(params)) return null;
36493
+ if (!isRecord7(params)) return null;
36434
36494
  const parsed = hostThreadIdSchema.safeParse(params.threadId);
36435
36495
  return parsed.success ? parsed.data : null;
36436
36496
  }
@@ -36510,7 +36570,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
36510
36570
  THREAD_TREE_SNAPSHOT_METHOD,
36511
36571
  (message2) => {
36512
36572
  const result = threadTreeWatchResultSchema.safeParse(
36513
- isRecord6(message2) ? message2.params : void 0
36573
+ isRecord7(message2) ? message2.params : void 0
36514
36574
  );
36515
36575
  if (!closed && result.success && subscriptionId2 === result.data.subscriptionId && result.data.snapshot.revision > revision) {
36516
36576
  revision = result.data.snapshot.revision;
@@ -36630,7 +36690,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
36630
36690
  watchThreadTree,
36631
36691
  async hasDesktopThread(threadId) {
36632
36692
  const result = await manager.sendRequest("thread/read", { threadId, includeTurns: false });
36633
- return isRecord6(result) && isRecord6(result.thread) && result.thread.id === threadId;
36693
+ return isRecord7(result) && isRecord7(result.thread) && result.thread.id === threadId;
36634
36694
  },
36635
36695
  subscribeHarnessPreferences(listener) {
36636
36696
  return notificationTarget(source)?.addNotificationCallback?.(
@@ -36711,7 +36771,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
36711
36771
  },
36712
36772
  subscribeSkillsChanged(listener) {
36713
36773
  return notificationTarget(source)?.addNotificationCallback?.(SKILLS_CHANGED_METHOD, (value) => {
36714
- if (!isRecord6(value) || value.method !== SKILLS_CHANGED_METHOD) return;
36774
+ if (!isRecord7(value) || value.method !== SKILLS_CHANGED_METHOD) return;
36715
36775
  const parsed = skillsChangedParamsSchema.safeParse(value.params);
36716
36776
  if (parsed.success) listener(parsed.data);
36717
36777
  }) ?? (() => {
@@ -36832,6 +36892,15 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
36832
36892
  await manager.sendRequest(HOST_EXTENSIONS_RPC.catalogIcon, schema.params.parse(input3))
36833
36893
  );
36834
36894
  },
36895
+ async readHostExtensionCatalogScreenshot(input3) {
36896
+ const schema = hostExtensionsRpcSchemas[HOST_EXTENSIONS_RPC.catalogScreenshot];
36897
+ return schema.result.parse(
36898
+ await manager.sendRequest(
36899
+ HOST_EXTENSIONS_RPC.catalogScreenshot,
36900
+ schema.params.parse(input3)
36901
+ )
36902
+ );
36903
+ },
36835
36904
  async installHostExtension(input3) {
36836
36905
  const schema = hostExtensionsRpcSchemas[HOST_EXTENSIONS_RPC.install];
36837
36906
  return extensionsChanged(
@@ -37018,7 +37087,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
37018
37087
  throw new Error("Renderer Account notification callback is unavailable");
37019
37088
  }
37020
37089
  return notifications.addNotificationCallback(CODEX_ACCOUNT_CHANGED_METHOD, (notification) => {
37021
- if (!isRecord6(notification) || notification.method !== CODEX_ACCOUNT_CHANGED_METHOD) return;
37090
+ if (!isRecord7(notification) || notification.method !== CODEX_ACCOUNT_CHANGED_METHOD) return;
37022
37091
  const state = codexAccountChangedSchema.safeParse(notification.params);
37023
37092
  if (state.success) listener(state.data);
37024
37093
  });
@@ -37030,14 +37099,14 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
37030
37099
  }
37031
37100
 
37032
37101
  // src/renderer-external-queue.ts
37033
- function isRecord7(value) {
37102
+ function isRecord8(value) {
37034
37103
  return value !== null && typeof value === "object" && !Array.isArray(value);
37035
37104
  }
37036
37105
  function installRendererExternalQueue(target2) {
37037
- if (!isRecord7(target2) || typeof target2.getTurnCoordinator !== "function") return null;
37106
+ if (!isRecord8(target2) || typeof target2.getTurnCoordinator !== "function") return null;
37038
37107
  const coordinator = target2.getTurnCoordinator();
37039
- const queue = isRecord7(coordinator) ? coordinator.serverQueue : null;
37040
- if (!isRecord7(queue) || typeof queue.isEnabled !== "function") return null;
37108
+ const queue = isRecord8(coordinator) ? coordinator.serverQueue : null;
37109
+ if (!isRecord8(queue) || typeof queue.isEnabled !== "function") return null;
37041
37110
  return () => void 0;
37042
37111
  }
37043
37112
 
@@ -37066,19 +37135,19 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
37066
37135
  }
37067
37136
 
37068
37137
  // src/renderer-external-steering.ts
37069
- function isRecord8(value) {
37138
+ function isRecord9(value) {
37070
37139
  return value !== null && typeof value === "object" && !Array.isArray(value);
37071
37140
  }
37072
37141
  function isManager(value) {
37073
- return isRecord8(value) && ["sendRequest", "steerTurn", "startTurn", "getTurnCoordinator"].every(
37142
+ return isRecord9(value) && ["sendRequest", "steerTurn", "startTurn", "getTurnCoordinator"].every(
37074
37143
  (key2) => typeof value[key2] === "function"
37075
37144
  );
37076
37145
  }
37077
37146
  function submissionHost(manager) {
37078
37147
  const coordinator = manager.getTurnCoordinator();
37079
- const options = isRecord8(coordinator) ? coordinator.options : null;
37080
- const host = isRecord8(options) ? options.submissionHost : null;
37081
- if (!isRecord8(host) || typeof host.getActiveTurnId !== "function" || typeof host.hasPendingTurnStart !== "function") {
37148
+ const options = isRecord9(coordinator) ? coordinator.options : null;
37149
+ const host = isRecord9(options) ? options.submissionHost : null;
37150
+ if (!isRecord9(host) || typeof host.getActiveTurnId !== "function" || typeof host.hasPendingTurnStart !== "function") {
37082
37151
  throw new Error("Desktop turn submission binding is unavailable");
37083
37152
  }
37084
37153
  return {
@@ -37120,20 +37189,20 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
37120
37189
  var INTERRUPTED_QUEUE_REASON = "Interrupted before the steer was accepted.";
37121
37190
  async function preserveQueuedFollowUps(manager, threadId) {
37122
37191
  const coordinator = manager.getTurnCoordinator();
37123
- if (!isRecord8(coordinator) || typeof coordinator.loadMessages !== "function" || typeof coordinator.readMessages !== "function" || typeof coordinator.mutate !== "function") {
37192
+ if (!isRecord9(coordinator) || typeof coordinator.loadMessages !== "function" || typeof coordinator.readMessages !== "function" || typeof coordinator.mutate !== "function") {
37124
37193
  throw new Error("Desktop follow-up queue binding is unavailable");
37125
37194
  }
37126
37195
  await coordinator.loadMessages.call(coordinator, threadId);
37127
37196
  const messages = coordinator.readMessages.call(coordinator, threadId);
37128
37197
  if (!Array.isArray(messages)) throw new Error("Desktop follow-up queue is unavailable");
37129
37198
  const alreadyPaused = new Set(
37130
- messages.filter((message2) => isRecord8(message2) && message2.pausedReason != null).map((message2) => message2.id)
37199
+ messages.filter((message2) => isRecord9(message2) && message2.pausedReason != null).map((message2) => message2.id)
37131
37200
  );
37132
37201
  return () => {
37133
37202
  coordinator.mutate.call(coordinator, threadId, (current) => {
37134
37203
  if (!Array.isArray(current)) return current;
37135
37204
  return current.map((message2) => {
37136
- if (!isRecord8(message2) || alreadyPaused.has(message2.id) || message2.pausedReason !== INTERRUPTED_QUEUE_REASON)
37205
+ if (!isRecord9(message2) || alreadyPaused.has(message2.id) || message2.pausedReason !== INTERRUPTED_QUEUE_REASON)
37137
37206
  return message2;
37138
37207
  const resumed = { ...message2 };
37139
37208
  delete resumed.pausedReason;
@@ -37152,16 +37221,16 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
37152
37221
  const pending2 = /* @__PURE__ */ new Map();
37153
37222
  let disposed = false;
37154
37223
  const sendPrepared = function(method, params, options) {
37155
- const messageId = isRecord8(params) ? params.clientUserMessageId : null;
37156
- const route = typeof messageId === "string" && isRecord8(params) ? routes.get(`${params.threadId}\0${messageId}`) : void 0;
37157
- if (method !== "turn/start" || !isRecord8(params) || !route || route.threadId !== params.threadId) {
37224
+ const messageId = isRecord9(params) ? params.clientUserMessageId : null;
37225
+ const route = typeof messageId === "string" && isRecord9(params) ? routes.get(`${params.threadId}\0${messageId}`) : void 0;
37226
+ if (method !== "turn/start" || !isRecord9(params) || !route || route.threadId !== params.threadId) {
37158
37227
  if (method === "turn/start" && sendTurnStart) {
37159
37228
  return sendTurnStart(params, (input3) => {
37160
37229
  if (disposed) throw new Error("External submission binding was disposed");
37161
37230
  return originalSend.call(manager, method, input3, options);
37162
37231
  });
37163
37232
  }
37164
- if (method === "turn/steer" && isRecord8(params) && typeof params.threadId === "string" && activeTurnSteers.has(params.threadId)) {
37233
+ if (method === "turn/steer" && isRecord9(params) && typeof params.threadId === "string" && activeTurnSteers.has(params.threadId)) {
37165
37234
  params = { ...params, [THREAD_STEER_DELIVERY_PARAM]: "activeTurn" };
37166
37235
  }
37167
37236
  return originalSend.call(manager, method, params, options);
@@ -37184,7 +37253,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
37184
37253
  options
37185
37254
  )
37186
37255
  ).then((response) => {
37187
- if (!isRecord8(response) || typeof response.turnId !== "string" || !response.turnId) {
37256
+ if (!isRecord9(response) || typeof response.turnId !== "string" || !response.turnId) {
37188
37257
  throw new Error("External steering returned no replacement Turn identity");
37189
37258
  }
37190
37259
  return {
@@ -37225,7 +37294,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
37225
37294
  ] = args;
37226
37295
  if (typeof threadId !== "string") return originalSteer.apply(manager, args);
37227
37296
  const role = manager.getStreamRole?.(threadId);
37228
- if (isRecord8(role) && role.role === "follower") return originalSteer.apply(manager, args);
37297
+ if (isRecord9(role) && role.role === "follower") return originalSteer.apply(manager, args);
37229
37298
  let host = null;
37230
37299
  let expectedTurnId;
37231
37300
  try {
@@ -37233,7 +37302,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
37233
37302
  expectedTurnId = host.getActiveTurnId(threadId);
37234
37303
  } catch {
37235
37304
  }
37236
- const text2 = Array.isArray(input3) ? input3.filter((item) => isRecord8(item) && typeof item.text === "string").map((item) => item.text).join("\n") : void 0;
37305
+ const text2 = Array.isArray(input3) ? input3.filter((item) => isRecord9(item) && typeof item.text === "string").map((item) => item.text).join("\n") : void 0;
37237
37306
  const delivery = await inspectDelivery(threadId, text2);
37238
37307
  if (disposed) throw new Error("External steering binding was disposed");
37239
37308
  if (delivery === "official") return originalSteer.apply(manager, args);
@@ -37249,21 +37318,21 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
37249
37318
  }
37250
37319
  if (!host) throw new Error("Desktop turn submission binding is unavailable");
37251
37320
  const currentRole = manager.getStreamRole?.(threadId);
37252
- if (isRecord8(currentRole) && currentRole.role === "follower")
37321
+ if (isRecord9(currentRole) && currentRole.role === "follower")
37253
37322
  return originalSteer.apply(manager, args);
37254
37323
  if (!Array.isArray(input3) || input3.length === 0 || input3.some((item) => {
37255
- if (!isRecord8(item)) return true;
37324
+ if (!isRecord9(item)) return true;
37256
37325
  if (item.type === "text") return typeof item.text !== "string";
37257
37326
  if (item.type === "localImage") return typeof item.path !== "string" || !item.path;
37258
37327
  if (item.type === "image") return typeof item.url !== "string" || !item.url;
37259
37328
  return true;
37260
37329
  }) || !input3.some(
37261
- (item) => isRecord8(item) && (item.type !== "text" || typeof item.text === "string" && item.text.trim())
37330
+ (item) => isRecord9(item) && (item.type !== "text" || typeof item.text === "string" && item.text.trim())
37262
37331
  )) {
37263
37332
  throw new Error("External steering requires non-empty text or image input");
37264
37333
  }
37265
37334
  if (toolOutput != null) throw new Error("External steering cannot replace a tool response");
37266
- if (!isRecord8(restoreMessage) || !isRecord8(restoreMessage.context)) {
37335
+ if (!isRecord9(restoreMessage) || !isRecord9(restoreMessage.context)) {
37267
37336
  throw new Error("Desktop steering message context is unavailable");
37268
37337
  }
37269
37338
  const messageId = typeof clientUserMessageId === "string" && clientUserMessageId ? clientUserMessageId : typeof restoreMessage.id === "string" && restoreMessage.id ? restoreMessage.id : crypto.randomUUID();
@@ -37313,7 +37382,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
37313
37382
  },
37314
37383
  onMessageAdded
37315
37384
  );
37316
- if (!isRecord8(response) || !isRecord8(response.turn) || typeof response.turn.id !== "string") {
37385
+ if (!isRecord9(response) || !isRecord9(response.turn) || typeof response.turn.id !== "string") {
37317
37386
  throw new Error("Desktop returned no replacement Turn identity");
37318
37387
  }
37319
37388
  try {
@@ -37344,7 +37413,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
37344
37413
  }
37345
37414
 
37346
37415
  // src/renderer-remote-attachments.ts
37347
- function isRecord9(value) {
37416
+ function isRecord10(value) {
37348
37417
  return value !== null && typeof value === "object" && !Array.isArray(value);
37349
37418
  }
37350
37419
  var MAX_IMAGE_BYTES = 20 * 1024 * 1024;
@@ -37386,14 +37455,14 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
37386
37455
  function createRemoteAttachmentSender(target2, hostId2, isCurrent) {
37387
37456
  const prepared = /* @__PURE__ */ new WeakMap();
37388
37457
  return (params, send) => {
37389
- if (hostId2 === "local" || !isRecord9(target2) || !isRecord9(params) || typeof params.threadId !== "string" || !Array.isArray(params.input) || typeof target2.getConversation !== "function")
37458
+ if (hostId2 === "local" || !isRecord10(target2) || !isRecord10(params) || typeof params.threadId !== "string" || !Array.isArray(params.input) || typeof target2.getConversation !== "function")
37390
37459
  return send(params);
37391
37460
  const images = params.input.filter(
37392
- (item) => isRecord9(item) && (item.type === "image" || item.type === "localImage")
37461
+ (item) => isRecord10(item) && (item.type === "image" || item.type === "localImage")
37393
37462
  );
37394
37463
  if (images.length === 0) return send(params);
37395
37464
  const conversation = target2.getConversation.call(target2, params.threadId);
37396
- if (!isRecord9(conversation) || conversation.id !== params.threadId || conversation.modelProvider !== "codexhost")
37465
+ if (!isRecord10(conversation) || conversation.id !== params.threadId || conversation.modelProvider !== "codexhost")
37397
37466
  return send(params);
37398
37467
  const assertCurrent = () => {
37399
37468
  if (!isCurrent()) throw new Error("Remote attachment connection is no longer available");
@@ -37406,7 +37475,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
37406
37475
  const cached2 = prepared.get(params);
37407
37476
  if (cached2) return cached2.then(dispatch);
37408
37477
  const input3 = params.input;
37409
- const text2 = input3.filter((item) => isRecord9(item) && item.type === "text").map((item) => isRecord9(item) && typeof item.text === "string" ? item.text : "").join("\n");
37478
+ const text2 = input3.filter((item) => isRecord10(item) && item.type === "text").map((item) => isRecord10(item) && typeof item.text === "string" ? item.text : "").join("\n");
37410
37479
  const existingPaths = desktopImageAttachmentPaths(text2);
37411
37480
  const prepare = async () => {
37412
37481
  if (existingPaths.length === images.length) return params;
@@ -37438,7 +37507,7 @@ ${messages.refreshModels}` : view.error ?? accessibleLabel;
37438
37507
  contents: file2.contents,
37439
37508
  label: `image-${index + 1}.${file2.extension}`
37440
37509
  });
37441
- if (!isRecord9(saved) || !filePath2(saved.path) || saved.fsPath !== saved.path) {
37510
+ if (!isRecord10(saved) || !filePath2(saved.path) || saved.fsPath !== saved.path) {
37442
37511
  throw new Error("Desktop returned an invalid remote attachment path");
37443
37512
  }
37444
37513
  created.push(saved.path);
@@ -37642,11 +37711,11 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
37642
37711
  }
37643
37712
 
37644
37713
  // src/renderer-manual-compaction.ts
37645
- function isRecord10(value) {
37714
+ function isRecord11(value) {
37646
37715
  return value !== null && typeof value === "object" && !Array.isArray(value);
37647
37716
  }
37648
37717
  function installRendererManualCompaction(target2, hostId2, messages) {
37649
- if (!messages || typeof messages.addEventListener !== "function" || typeof messages.removeEventListener !== "function" || !isRecord10(target2) || typeof target2.registerPendingManualContextCompaction !== "function" || typeof target2.getConversation !== "function") {
37718
+ if (!messages || typeof messages.addEventListener !== "function" || typeof messages.removeEventListener !== "function" || !isRecord11(target2) || typeof target2.registerPendingManualContextCompaction !== "function" || typeof target2.getConversation !== "function") {
37650
37719
  return null;
37651
37720
  }
37652
37721
  const register2 = target2.registerPendingManualContextCompaction;
@@ -37655,18 +37724,18 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
37655
37724
  const listener = (event) => {
37656
37725
  if (event.source != null && event.source !== messages) return;
37657
37726
  const message2 = event.data;
37658
- if (!isRecord10(message2) || message2.type !== "mcp-notification" || message2.hostId !== hostId2 || message2.method !== THREAD_MANUAL_COMPACTION_STARTED_METHOD) {
37727
+ if (!isRecord11(message2) || message2.type !== "mcp-notification" || message2.hostId !== hostId2 || message2.method !== THREAD_MANUAL_COMPACTION_STARTED_METHOD) {
37659
37728
  return;
37660
37729
  }
37661
37730
  const params = threadManualCompactionStartedSchema.safeParse(message2.params);
37662
37731
  if (!params.success) return;
37663
37732
  const { threadId } = params.data;
37664
37733
  const conversation = getConversation.call(target2, threadId);
37665
- if (!isRecord10(conversation) || conversation.id !== threadId || conversation.modelProvider !== "codexhost") {
37734
+ if (!isRecord11(conversation) || conversation.id !== threadId || conversation.modelProvider !== "codexhost") {
37666
37735
  return;
37667
37736
  }
37668
37737
  const role = getStreamRole?.call(target2, threadId);
37669
- if (isRecord10(role) && role.role === "follower") return;
37738
+ if (isRecord11(role) && role.role === "follower") return;
37670
37739
  register2.call(target2, threadId);
37671
37740
  };
37672
37741
  messages.addEventListener("message", listener);
@@ -37844,7 +37913,7 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
37844
37913
  var SIDEBAR_AGENT_ICON_ATTRIBUTE = "data-codexhost-sidebar-agent-icon";
37845
37914
  var SIDEBAR_AGENT_ICON_ROW_SELECTOR = `${SIDEBAR_THREAD_ROW_SELECTOR}, ${NATIVE_SCHEDULE_SIDEBAR_ROW_SELECTOR}`;
37846
37915
  var OWNERSHIP_RETRY_DELAYS_MS = [100, 300, 800, 1500, 3e3];
37847
- function isRecord11(value) {
37916
+ function isRecord12(value) {
37848
37917
  return typeof value === "object" && value !== null && !Array.isArray(value);
37849
37918
  }
37850
37919
  function sidebarThreadAttributes(element) {
@@ -37871,19 +37940,19 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
37871
37940
  const fiberName = fiberNames[0];
37872
37941
  if (fiberNames.length !== 1 || !fiberName) return null;
37873
37942
  const firstFiber2 = Object.getOwnPropertyDescriptor(element, fiberName)?.value;
37874
- if (!isRecord11(firstFiber2)) return null;
37943
+ if (!isRecord12(firstFiber2)) return null;
37875
37944
  const candidates = /* @__PURE__ */ new Set();
37876
37945
  let fiber = firstFiber2;
37877
37946
  for (let depth = 0; fiber && depth < 12; depth += 1) {
37878
37947
  const props = fiber.memoizedProps;
37879
- if (isRecord11(props) && isRecord11(props.dataAttributes)) {
37948
+ if (isRecord12(props) && isRecord12(props.dataAttributes)) {
37880
37949
  const dataAttributes = props.dataAttributes;
37881
37950
  const threadId = hostThreadIdSchema.safeParse(props.conversationId);
37882
37951
  if (threadId.success && dataAttributes[SIDEBAR_THREAD_ROW_ATTRIBUTE] === rowMarker && dataAttributes[SIDEBAR_THREAD_ID_ATTRIBUTE] === taskKey && dataAttributes[SIDEBAR_THREAD_HOST_ID_ATTRIBUTE] === hostId2) {
37883
37952
  candidates.add(threadId.data);
37884
37953
  }
37885
37954
  }
37886
- fiber = isRecord11(fiber.return) ? fiber.return : null;
37955
+ fiber = isRecord12(fiber.return) ? fiber.return : null;
37887
37956
  }
37888
37957
  return candidates.size === 1 ? candidates.values().next().value ?? null : null;
37889
37958
  }
@@ -38380,7 +38449,7 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
38380
38449
  if (row) finish(row);
38381
38450
  });
38382
38451
  }
38383
- function isRecord12(value) {
38452
+ function isRecord13(value) {
38384
38453
  return typeof value === "object" && value !== null && !Array.isArray(value);
38385
38454
  }
38386
38455
  function firstFiber(element) {
@@ -38390,7 +38459,7 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
38390
38459
  const name = names[0];
38391
38460
  if (names.length !== 1 || !name) return null;
38392
38461
  const value = Object.getOwnPropertyDescriptor(element, name)?.value;
38393
- return isRecord12(value) ? value : null;
38462
+ return isRecord13(value) ? value : null;
38394
38463
  }
38395
38464
  function directForkAncestors(first) {
38396
38465
  const ancestors2 = [];
@@ -38400,7 +38469,7 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
38400
38469
  if (seen.has(fiber)) return [];
38401
38470
  seen.add(fiber);
38402
38471
  ancestors2.push(fiber);
38403
- fiber = isRecord12(fiber.return) ? fiber.return : null;
38472
+ fiber = isRecord13(fiber.return) ? fiber.return : null;
38404
38473
  }
38405
38474
  return ancestors2;
38406
38475
  }
@@ -38418,7 +38487,7 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
38418
38487
  let hasForkCallback = false;
38419
38488
  for (const fiber of ancestors2) {
38420
38489
  const props = fiber.memoizedProps;
38421
- if (!isRecord12(props)) continue;
38490
+ if (!isRecord13(props)) continue;
38422
38491
  if (!hasForkCallback && typeof props.onFork !== "function" && ownsOtherCallback(fiber, props)) {
38423
38492
  return null;
38424
38493
  }
@@ -38450,7 +38519,7 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
38450
38519
  if (!threadId.success || !turnId.success) return null;
38451
38520
  const fiber = firstFiber(button2);
38452
38521
  const buttonProps = fiber?.memoizedProps;
38453
- if (!fiber || !isRecord12(buttonProps) || !Object.hasOwn(buttonProps, "aria-busy")) return null;
38522
+ if (!fiber || !isRecord13(buttonProps) || !Object.hasOwn(buttonProps, "aria-busy")) return null;
38454
38523
  return forkTargetFromAncestors(button2, threadId.data, turnId.data, directForkAncestors(fiber)) ?? forkTargetFromAncestors(button2, threadId.data, turnId.data, committedReactAncestors(fiber));
38455
38524
  }
38456
38525
  var BrowserRendererForkDom = class {
@@ -38516,16 +38585,16 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
38516
38585
  // src/codex-locale-adapter.ts
38517
38586
  var DEFAULT_LOCALE_REQUEST_TIMEOUT_MS = 750;
38518
38587
  function isNativeLocaleServices(value) {
38519
- if (!isRecord13(value) || !Object.hasOwn(value, "appInfo")) return false;
38588
+ if (!isRecord14(value) || !Object.hasOwn(value, "appInfo")) return false;
38520
38589
  const appInfo = value.appInfo;
38521
38590
  return appInfo != null && typeof appInfo.getLocaleInfo === "function";
38522
38591
  }
38523
38592
  function isNativeSettingsServices(value) {
38524
- if (!isRecord13(value) || !Object.hasOwn(value, "settings")) return false;
38593
+ if (!isRecord14(value) || !Object.hasOwn(value, "settings")) return false;
38525
38594
  const settings = value.settings;
38526
38595
  return typeof settings?.read === "function" && typeof settings?.write === "function";
38527
38596
  }
38528
- function isRecord13(value) {
38597
+ function isRecord14(value) {
38529
38598
  return typeof value === "object" && value !== null && !Array.isArray(value);
38530
38599
  }
38531
38600
  function canonicalLocale(value) {
@@ -38547,7 +38616,7 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
38547
38616
  return new DOMException("The operation was aborted", "AbortError");
38548
38617
  }
38549
38618
  function parseLocaleOverride(response) {
38550
- if (!isRecord13(response) || !Object.hasOwn(response, "effective")) {
38619
+ if (!isRecord14(response) || !Object.hasOwn(response, "effective")) {
38551
38620
  throw new Error("Codex native locale override response is malformed");
38552
38621
  }
38553
38622
  if (response.effective === null) return null;
@@ -38562,7 +38631,7 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
38562
38631
  return locale;
38563
38632
  }
38564
38633
  function parseLocaleInfo(value) {
38565
- if (!isRecord13(value)) throw new Error("Codex locale info response is malformed");
38634
+ if (!isRecord14(value)) throw new Error("Codex locale info response is malformed");
38566
38635
  return {
38567
38636
  ideLocale: optionalLocale(value.ideLocale, "IDE locale"),
38568
38637
  systemLocale: optionalLocale(value.systemLocale, "system locale")
@@ -39069,8 +39138,7 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
39069
39138
  });
39070
39139
  };
39071
39140
  const canOpenForComposer = (composer) => {
39072
- const sendButton = sendButtonWithin(composer);
39073
- if (disposed || orbitComposerKind(composer) !== "codex" || hasNativeComposerRequest(composer) || !isComposerVisible(composer, ownerWindow) || !sendButton || !isComposerVisible(sendButton, ownerWindow) || !resolveThreadId(composer))
39141
+ if (disposed || orbitComposerKind(composer) !== "codex" || hasNativeComposerRequest(composer) || !isComposerVisible(composer, ownerWindow) || !resolveThreadId(composer))
39074
39142
  return false;
39075
39143
  const hasStop = [...composer.querySelectorAll("button")].some(
39076
39144
  (button2) => isComposerVisible(button2, ownerWindow) && /^(stop|stop generating|stop streaming|停止|停止生成|停止响应)$/iu.test(
@@ -39380,7 +39448,7 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
39380
39448
  }
39381
39449
  var DRAFT_PREWARM_POLICY_WAIT_TIMEOUT_MS = 1e4;
39382
39450
  var DRAFT_PREWARM_POLICY_POLL_INTERVAL_MS = 25;
39383
- function isRecord14(value) {
39451
+ function isRecord15(value) {
39384
39452
  return typeof value === "object" && value !== null && !Array.isArray(value);
39385
39453
  }
39386
39454
  function decodeOpenCodeTransportModelId(value) {
@@ -39545,7 +39613,7 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
39545
39613
  let fiber = findComposerFiber(composer);
39546
39614
  for (let depth = 0; fiber && depth < 120; depth += 1) {
39547
39615
  const props = fiber.memoizedProps;
39548
- if (isRecord14(props) && "conversationId" in props && props.conversationId != null) {
39616
+ if (isRecord15(props) && "conversationId" in props && props.conversationId != null) {
39549
39617
  const candidate = hostThreadIdSchema.safeParse(props.conversationId);
39550
39618
  if (!candidate.success || threadId !== void 0 && threadId !== candidate.data) {
39551
39619
  return null;
@@ -39558,12 +39626,12 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
39558
39626
  return threadId;
39559
39627
  }
39560
39628
  function isLegacySevenSlotDraftWrapper(value) {
39561
- if (!Array.isArray(value) || value.length !== 7 || value[3] !== value[5] || value[3] !== value[6] || !isRecord14(value[3]) || typeof value[3].get !== "function" || typeof value[2] !== "string" && value[2] !== null) {
39629
+ if (!Array.isArray(value) || value.length !== 7 || value[3] !== value[5] || value[3] !== value[6] || !isRecord15(value[3]) || typeof value[3].get !== "function" || typeof value[2] !== "string" && value[2] !== null) {
39562
39630
  return false;
39563
39631
  }
39564
39632
  try {
39565
39633
  const draft = value[3].get();
39566
- return isRecord14(draft) && "modelSettings" in draft && "isManuallyChanged" in draft;
39634
+ return isRecord15(draft) && "modelSettings" in draft && "isManuallyChanged" in draft;
39567
39635
  } catch {
39568
39636
  return false;
39569
39637
  }
@@ -39597,8 +39665,8 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
39597
39665
  let fiber = findComposerFiber(composer);
39598
39666
  for (let depth = 0; fiber && depth < 120; depth += 1) {
39599
39667
  const updateQueue = fiber.updateQueue;
39600
- const memoCache = isRecord14(updateQueue) ? updateQueue.memoCache : null;
39601
- const data = isRecord14(memoCache) && Array.isArray(memoCache.data) ? memoCache.data : [];
39668
+ const memoCache = isRecord15(updateQueue) ? updateQueue.memoCache : null;
39669
+ const data = isRecord15(memoCache) && Array.isArray(memoCache.data) ? memoCache.data : [];
39602
39670
  for (const value of data) {
39603
39671
  const draftId = draftIdFromMemoValue(value);
39604
39672
  if (draftId) draftIds.add(draftId);
@@ -39626,7 +39694,7 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
39626
39694
  return ["default", draftIds.values().next().value];
39627
39695
  }
39628
39696
  function isDraftPrewarmPolicyReady(value) {
39629
- return isRecord14(value) && value.state === "ready" && typeof value.hostId === "string" && value.hostId.length > 0 && typeof value.select === "function" && typeof value.clear === "function";
39697
+ return isRecord15(value) && value.state === "ready" && typeof value.hostId === "string" && value.hostId.length > 0 && typeof value.select === "function" && typeof value.clear === "function";
39630
39698
  }
39631
39699
  async function waitForRendererDraftPrewarmPolicy(target2, composer) {
39632
39700
  const deadline = Date.now() + DRAFT_PREWARM_POLICY_WAIT_TIMEOUT_MS;
@@ -39944,11 +40012,11 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
39944
40012
  return null;
39945
40013
  }
39946
40014
  }
39947
- function isRecord15(value) {
40015
+ function isRecord16(value) {
39948
40016
  return typeof value === "object" && value !== null && !Array.isArray(value);
39949
40017
  }
39950
40018
  function parseExternalConfiguration(value) {
39951
- if (!isRecord15(value)) return void 0;
40019
+ if (!isRecord16(value)) return void 0;
39952
40020
  const model2 = harnessModelRefSchema.safeParse(value.model);
39953
40021
  if (!model2.success) return void 0;
39954
40022
  const thinkingOptionId = harnessThinkingOptionIdSchema.safeParse(value.thinkingOptionId);
@@ -39965,10 +40033,10 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
39965
40033
  const raw = storage.getItem(RENDERER_NEW_THREAD_PREFERENCE_KEY);
39966
40034
  if (!raw) return void 0;
39967
40035
  const parsed = JSON.parse(raw);
39968
- if (!isRecord15(parsed) || parsed.version !== 1) return void 0;
40036
+ if (!isRecord16(parsed) || parsed.version !== 1) return void 0;
39969
40037
  if (parsed.lastAgent !== "codex" && !harnessPluginIdSchema.safeParse(parsed.lastAgent).success)
39970
40038
  return void 0;
39971
- const externalByAgent = isRecord15(parsed.externalByAgent) ? parsed.externalByAgent : {};
40039
+ const externalByAgent = isRecord16(parsed.externalByAgent) ? parsed.externalByAgent : {};
39972
40040
  const parsedExternal = Object.fromEntries(
39973
40041
  Object.keys(externalByAgent).filter((agent) => harnessPluginIdSchema.safeParse(agent).success).flatMap((agent) => {
39974
40042
  const configuration = parseExternalConfiguration(externalByAgent[agent]);
@@ -41521,6 +41589,17 @@ ${text2.includes("## My request:") ? "" : "\n## My request:\n"}`,
41521
41589
  const shared = targetSlots.filter((slot2) => otherSlots.includes(slot2));
41522
41590
  return shared.length > 0 ? shared : targetSlots;
41523
41591
  }
41592
+ function findDesktopSlotConflictForExtension(item, list) {
41593
+ if (item.state !== "valid") return void 0;
41594
+ if (item.desktopConflictWith) return item.desktopConflictWith;
41595
+ if (!item.manifest.desktop || !item.manifest.slots?.length) return void 0;
41596
+ return resolveDesktopExtensionSlots(
41597
+ [...list.configuration.enabled.filter((id2) => id2 !== item.id), item.id],
41598
+ list.extensions.filter(
41599
+ (entry) => entry.state === "valid" && Boolean(entry.manifest.desktop)
41600
+ ).map(({ id: id2, manifest }) => ({ id: id2, slots: manifest.slots ?? [] }))
41601
+ ).conflicts.get(item.id);
41602
+ }
41524
41603
  function isToggleBlocked(item) {
41525
41604
  if (item.enabled) return false;
41526
41605
  return item.state !== "valid";
@@ -47167,6 +47246,8 @@ ${detail}` : ""}`
47167
47246
  downloads,
47168
47247
  trustTier,
47169
47248
  statusState,
47249
+ statusDotOverride,
47250
+ stateBadge,
47170
47251
  update,
47171
47252
  description,
47172
47253
  attention,
@@ -47228,6 +47309,18 @@ ${detail}` : ""}`
47228
47309
  dot.setAttribute("aria-label", copy.states[statusState]);
47229
47310
  dot.title = copy.states[statusState];
47230
47311
  titleGroup.append(dot);
47312
+ } else if (statusDotOverride) {
47313
+ const dot = createEl(document2, "span", "settings-extensions-card__status-dot");
47314
+ dot.dataset.tone = statusDotOverride.tone;
47315
+ dot.setAttribute("role", "img");
47316
+ dot.setAttribute("aria-label", statusDotOverride.label);
47317
+ dot.title = statusDotOverride.label;
47318
+ titleGroup.append(dot);
47319
+ }
47320
+ if (stateBadge) {
47321
+ const badge = createEl(document2, "span", "settings-extensions-state-badge", stateBadge.label);
47322
+ badge.dataset.tone = stateBadge.tone;
47323
+ titleGroup.append(badge);
47231
47324
  }
47232
47325
  const compatLabel = incompatiblePlatformLabel ?? (platformBadge?.kind === "web" ? platformBadge.label : void 0);
47233
47326
  if (compatLabel) {
@@ -47435,14 +47528,19 @@ ${detail}` : ""}`
47435
47528
 
47436
47529
  // src/settings/desktop-extensions-catalog-icons.ts
47437
47530
  var MAX_CACHE_ENTRIES = 200;
47531
+ var MAX_SCREENSHOT_CACHE_ENTRIES = 64;
47438
47532
  var FAILED_RETRY_DELAY_MS = 6e4;
47533
+ var SAFE_SCREENSHOT_DATA_URL_PATTERN2 = /^data:image\/(?:png|jpeg|webp);base64,[A-Za-z0-9+/]+={0,2}$/u;
47439
47534
  function iconCacheKey(entry) {
47440
47535
  return `${entry.id}@${entry.version}`;
47441
47536
  }
47442
- function setBounded(map2, key2, value) {
47537
+ function screenshotCacheKey(entry, index) {
47538
+ return `${entry.id}@${entry.version}#${index}`;
47539
+ }
47540
+ function setBounded(map2, key2, value, limit = MAX_CACHE_ENTRIES) {
47443
47541
  if (map2.has(key2)) map2.delete(key2);
47444
47542
  map2.set(key2, value);
47445
- while (map2.size > MAX_CACHE_ENTRIES) {
47543
+ while (map2.size > limit) {
47446
47544
  const oldest = map2.keys().next().value;
47447
47545
  if (oldest === void 0) break;
47448
47546
  map2.delete(oldest);
@@ -47494,6 +47592,51 @@ ${detail}` : ""}`
47494
47592
  }
47495
47593
  };
47496
47594
  }
47595
+ function createDesktopCatalogScreenshotLoader(getReader) {
47596
+ const resolved = /* @__PURE__ */ new Map();
47597
+ const failedAt = /* @__PURE__ */ new Map();
47598
+ const inFlight = /* @__PURE__ */ new Map();
47599
+ return {
47600
+ isAvailable: () => typeof getReader() === "function",
47601
+ getCached(entry, index) {
47602
+ return resolved.get(screenshotCacheKey(entry, index));
47603
+ },
47604
+ async load(entry, index) {
47605
+ if (!entry.screenshots?.[index]) return null;
47606
+ const key2 = screenshotCacheKey(entry, index);
47607
+ const cached2 = resolved.get(key2);
47608
+ if (cached2) return cached2;
47609
+ const lastFailure = failedAt.get(key2);
47610
+ if (lastFailure !== void 0 && Date.now() - lastFailure < FAILED_RETRY_DELAY_MS) {
47611
+ return null;
47612
+ }
47613
+ const existing = inFlight.get(key2);
47614
+ if (existing) return existing;
47615
+ const reader = getReader();
47616
+ if (!reader) return null;
47617
+ const task = (async () => {
47618
+ try {
47619
+ const result = await reader({ id: entry.id, index });
47620
+ const dataUrl = `data:${result.mimeType};base64,${result.base64}`;
47621
+ if (!SAFE_SCREENSHOT_DATA_URL_PATTERN2.test(dataUrl)) {
47622
+ setBounded(failedAt, key2, Date.now(), MAX_SCREENSHOT_CACHE_ENTRIES);
47623
+ return null;
47624
+ }
47625
+ failedAt.delete(key2);
47626
+ setBounded(resolved, key2, dataUrl, MAX_SCREENSHOT_CACHE_ENTRIES);
47627
+ return dataUrl;
47628
+ } catch {
47629
+ setBounded(failedAt, key2, Date.now(), MAX_SCREENSHOT_CACHE_ENTRIES);
47630
+ return null;
47631
+ } finally {
47632
+ inFlight.delete(key2);
47633
+ }
47634
+ })();
47635
+ inFlight.set(key2, task);
47636
+ return task;
47637
+ }
47638
+ };
47639
+ }
47497
47640
 
47498
47641
  // src/settings/desktop-extensions-create-modal.ts
47499
47642
  var DESKTOP_EXTENSION_SKILL_URL = "https://github.com/BytePioneer-AI/codex-host/blob/main/.agents/skills/codexhost-add-desktop-extension/SKILL.md";
@@ -47974,6 +48117,7 @@ ${detail}` : ""}`
47974
48117
  settingsClient,
47975
48118
  assetClient,
47976
48119
  catalogIconLoader,
48120
+ catalogScreenshotLoader,
47977
48121
  onSettingsSaved,
47978
48122
  onToggle,
47979
48123
  onInstall,
@@ -48228,6 +48372,52 @@ ${detail}` : ""}`
48228
48372
  renderScreenshotList(extensionId, fetchedLocalScreenshots, displayName);
48229
48373
  return;
48230
48374
  }
48375
+ const catalogShots = [];
48376
+ if (!inlineLocal && manifestPaths.length === 0 && catalogEntry?.screenshots?.length) {
48377
+ for (let index = 0; index < catalogEntry.screenshots.length; index += 1) {
48378
+ const safe = parseSafeHttpUrl(catalogEntry.screenshots[index]);
48379
+ if (safe) catalogShots.push({ index, fallbackUrl: safe });
48380
+ }
48381
+ }
48382
+ if (catalogEntry && catalogShots.length > 0 && catalogScreenshotLoader?.isAvailable()) {
48383
+ const cachedUrls = catalogShots.map(
48384
+ (shot) => catalogScreenshotLoader.getCached(catalogEntry, shot.index)
48385
+ );
48386
+ if (cachedUrls.every((url2) => typeof url2 === "string")) {
48387
+ screenshotsLoadToken += 1;
48388
+ fetchedScreenshotsKey = "";
48389
+ fetchedLocalScreenshots = [];
48390
+ renderScreenshotList(extensionId, cachedUrls, displayName);
48391
+ return;
48392
+ }
48393
+ const catalogFetchKey = `catalog\0${catalogEntry.id}\0${catalogEntry.version}\0${catalogShots.map((shot) => shot.index).join(",")}`;
48394
+ if (fetchedScreenshotsKey === catalogFetchKey && fetchedLocalScreenshots.length > 0) {
48395
+ renderScreenshotList(extensionId, fetchedLocalScreenshots, displayName);
48396
+ return;
48397
+ }
48398
+ if (fetchedScreenshotsKey !== catalogFetchKey) {
48399
+ fetchedScreenshotsKey = catalogFetchKey;
48400
+ fetchedLocalScreenshots = [];
48401
+ const token = ++screenshotsLoadToken;
48402
+ void Promise.all(
48403
+ catalogShots.map(
48404
+ (shot) => catalogScreenshotLoader.load(catalogEntry, shot.index).then((loaded) => loaded ?? shot.fallbackUrl)
48405
+ )
48406
+ ).then((resolved) => {
48407
+ if (token !== screenshotsLoadToken || signal.aborted || openExtensionId !== extensionId) {
48408
+ return;
48409
+ }
48410
+ fetchedLocalScreenshots = resolved;
48411
+ renderScreenshotList(extensionId, resolved, displayName);
48412
+ });
48413
+ }
48414
+ return;
48415
+ }
48416
+ if (!fetchKey || !assetClient || fetchedScreenshotsKey !== fetchKey) {
48417
+ screenshotsLoadToken += 1;
48418
+ fetchedScreenshotsKey = "";
48419
+ fetchedLocalScreenshots = [];
48420
+ }
48231
48421
  renderScreenshotList(extensionId, safeScreenshotUrls(installed, catalogEntry), displayName);
48232
48422
  if (fetchKey && assetClient && installed?.state === "valid" && fetchedScreenshotsKey !== fetchKey) {
48233
48423
  fetchedScreenshotsKey = fetchKey;
@@ -49831,7 +50021,7 @@ ${detail}` : ""}`
49831
50021
  const displayName = catalogDisplayName(entry, contentLocale);
49832
50022
  const installed = installedById.get(entry.id);
49833
50023
  const updateAvailable = hasCatalogUpdate(installed, entry);
49834
- const installState = installed ? updateAvailable ? "update" : "installed" : "available";
50024
+ const installState = installed ? updateAvailable ? "update" : installed.enabled ? "installed" : "installed-disabled" : "available";
49835
50025
  const entryAction = pendingMutations.get(entry.id) ?? null;
49836
50026
  const isBusyCard = entryAction !== null;
49837
50027
  const controlsDisabled = isBusyCard || globalBusy;
@@ -49860,6 +50050,15 @@ ${detail}` : ""}`
49860
50050
  );
49861
50051
  actionButton.setAttribute("aria-busy", String(updatingThis));
49862
50052
  actionButton.disabled = controlsDisabled || !canInstall;
50053
+ } else if (installState === "installed-disabled") {
50054
+ actionButton.className = "settings-extensions-btn-installed-disabled";
50055
+ actionButton.dataset.action = "installed-disabled";
50056
+ actionButton.title = copy.installedDisabledBadge;
50057
+ actionButton.setAttribute("aria-label", copy.installedDisabledBadge);
50058
+ const offDot = createEl(document2, "span", "settings-extensions-btn-installed-disabled__dot");
50059
+ offDot.setAttribute("aria-hidden", "true");
50060
+ actionButton.append(offDot, createEl(document2, "span", "", copy.installedDisabledBadge));
50061
+ actionButton.disabled = controlsDisabled;
49863
50062
  } else {
49864
50063
  const isFeaturedLayout = layout === "featured";
49865
50064
  actionButton.className = isFeaturedLayout ? "settings-extensions-btn-installed settings-extensions-btn-installed--featured" : "settings-extensions-btn-installed";
@@ -49905,6 +50104,7 @@ ${detail}` : ""}`
49905
50104
  version: updateAvailable && installed?.state === "valid" ? installed.manifest.version : entry.version,
49906
50105
  downloads: entry.downloads,
49907
50106
  trustTier: entry.trustTier,
50107
+ statusDotOverride: installState === "update" && installed && !installed.enabled ? { tone: "neutral", label: copy.installedDisabledBadge } : void 0,
49908
50108
  update: updateAvailable && installed?.state === "valid" ? {
49909
50109
  version: entry.version,
49910
50110
  label: formatMessage(copy.updateVersionCue, {
@@ -50288,6 +50488,10 @@ ${detail}` : ""}`
50288
50488
  const client = resolveAvailableClient(getClient);
50289
50489
  return client?.readHostExtensionCatalogIcon?.bind(client);
50290
50490
  });
50491
+ const catalogScreenshotLoader = createDesktopCatalogScreenshotLoader(() => {
50492
+ const client = resolveAvailableClient(getClient);
50493
+ return client?.readHostExtensionCatalogScreenshot?.bind(client);
50494
+ });
50291
50495
  const hasPendingMutations = () => pendingMutations.size > 0 || importing || recovering;
50292
50496
  const clientCapabilities = () => {
50293
50497
  const client = resolveAvailableClient(getClient);
@@ -50367,6 +50571,7 @@ ${detail}` : ""}`
50367
50571
  signal: context.signal,
50368
50572
  messages,
50369
50573
  catalogIconLoader,
50574
+ catalogScreenshotLoader,
50370
50575
  assetClient: {
50371
50576
  async readAsset(input3) {
50372
50577
  const reader = resolveAvailableClient(getClient)?.readHostExtensionAsset;
@@ -50719,6 +50924,7 @@ ${detail}` : ""}`
50719
50924
  downloads: catalogEntry?.downloads,
50720
50925
  trustTier: catalogEntry?.trustTier,
50721
50926
  statusState,
50927
+ stateBadge: item.state === "valid" && !item.enabled && statusState === "disabled" ? { tone: "neutral", label: copy.states.disabled } : void 0,
50722
50928
  update,
50723
50929
  description: extensionDescription(item, contentLocale),
50724
50930
  attention,
@@ -51099,6 +51305,42 @@ ${detail}` : ""}`
51099
51305
  render();
51100
51306
  }
51101
51307
  };
51308
+ const buildInstallFeedback = (result, isUpdate, fallbackName) => {
51309
+ const displayName = result.manifest.name[messages.locale] || result.manifest.name.en || fallbackName;
51310
+ const version2 = result.manifest.version.replace(/^v/u, "");
51311
+ if (isUpdate) {
51312
+ return {
51313
+ tone: "success",
51314
+ text: formatMessage(copy.updatedSuccess, { name: displayName, version: version2 })
51315
+ };
51316
+ }
51317
+ const refreshedItem = listing?.extensions.find((item) => item.id === result.id);
51318
+ if (refreshedItem && !refreshedItem.enabled) {
51319
+ const conflictId = listing ? findDesktopSlotConflictForExtension(refreshedItem, listing) : void 0;
51320
+ if (conflictId && listing) {
51321
+ const other = describeOtherExtension(conflictId, listing.extensions, messages.locale);
51322
+ return {
51323
+ tone: "warning",
51324
+ text: formatMessage(copy.installedSlotConflict, {
51325
+ name: displayName,
51326
+ version: version2,
51327
+ other
51328
+ })
51329
+ };
51330
+ }
51331
+ return {
51332
+ tone: "warning",
51333
+ text: formatMessage(copy.installedDisabled, { name: displayName, version: version2 })
51334
+ };
51335
+ }
51336
+ return {
51337
+ tone: "success",
51338
+ text: formatMessage(result.replaced ? copy.updatedSuccess : copy.installedSuccess, {
51339
+ name: displayName,
51340
+ version: version2
51341
+ })
51342
+ };
51343
+ };
51102
51344
  const installFromCatalog = async (entry, isUpdate) => {
51103
51345
  if (recovering || pendingMutations.has(entry.id) || disposed || context.signal.aborted)
51104
51346
  return;
@@ -51129,19 +51371,10 @@ ${detail}` : ""}`
51129
51371
  return;
51130
51372
  }
51131
51373
  if (disposed || context.signal.aborted) return;
51132
- const displayName = result.manifest.name[messages.locale] || result.manifest.name.en || fallbackName;
51133
- const modalTargetId = detailModal.extensionId === entry.id ? entry.id : null;
51134
- setFeedback(
51135
- {
51136
- tone: "success",
51137
- text: formatMessage(
51138
- result.replaced || isUpdate ? copy.updatedSuccess : copy.installedSuccess,
51139
- { name: displayName, version: result.manifest.version }
51140
- )
51141
- },
51142
- modalTargetId
51143
- );
51144
51374
  await refreshInstalledAfterMutation();
51375
+ if (disposed || context.signal.aborted) return;
51376
+ const modalTargetId = detailModal.extensionId === entry.id ? entry.id : null;
51377
+ setFeedback(buildInstallFeedback(result, isUpdate, fallbackName), modalTargetId);
51145
51378
  } catch (error62) {
51146
51379
  if (disposed || context.signal.aborted) return;
51147
51380
  const modalTargetId = detailModal.extensionId === entry.id ? entry.id : null;
@@ -51178,15 +51411,9 @@ ${detail}` : ""}`
51178
51411
  searchQuery = "";
51179
51412
  searchInput.value = "";
51180
51413
  clearSearchButton.hidden = true;
51181
- const displayName = result.manifest.name[messages.locale] || result.manifest.name.en || result.id;
51182
- setFeedback({
51183
- tone: "success",
51184
- text: formatMessage(result.replaced ? copy.updatedSuccess : copy.installedSuccess, {
51185
- name: displayName,
51186
- version: result.manifest.version
51187
- })
51188
- });
51189
51414
  await refreshInstalledAfterMutation();
51415
+ if (disposed || context.signal.aborted) return;
51416
+ setFeedback(buildInstallFeedback(result, false, result.id));
51190
51417
  } finally {
51191
51418
  importing = false;
51192
51419
  if (!disposed && !context.signal.aborted) {
@@ -59955,6 +60182,22 @@ ${detail}` : ""}`
59955
60182
  white-space: nowrap;
59956
60183
  }
59957
60184
 
60185
+ .settings-extensions-state-badge {
60186
+ display: inline-flex;
60187
+ align-items: center;
60188
+ flex: none;
60189
+ height: 18px;
60190
+ padding: 0 6px;
60191
+ border-radius: 5px;
60192
+ background: color-mix(in srgb, var(--settings-muted) 11%, transparent);
60193
+ box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--settings-muted) 22%, transparent);
60194
+ color: var(--settings-muted);
60195
+ font-size: 10.5px;
60196
+ font-weight: 500;
60197
+ line-height: 1;
60198
+ white-space: nowrap;
60199
+ }
60200
+
59958
60201
  .settings-extensions-card__meta-line {
59959
60202
  display: flex;
59960
60203
  align-items: center;
@@ -60099,11 +60342,58 @@ ${detail}` : ""}`
60099
60342
  }
60100
60343
 
60101
60344
  .settings-extensions-btn-installed--featured:focus-visible,
60345
+ .settings-extensions-btn-installed:focus-visible,
60346
+ .settings-extensions-btn-installed-disabled:focus-visible,
60102
60347
  .settings-extensions-btn-update:focus-visible {
60103
60348
  outline: 2px solid var(--settings-focus);
60104
60349
  outline-offset: 1px;
60105
60350
  }
60106
60351
 
60352
+ .settings-extensions-btn-installed-disabled {
60353
+ display: inline-flex;
60354
+ align-items: center;
60355
+ justify-content: center;
60356
+ gap: 5px;
60357
+ height: 28px;
60358
+ padding: 0 9px;
60359
+ color: var(--settings-muted);
60360
+ font: inherit;
60361
+ font-size: 11.5px;
60362
+ font-weight: 500;
60363
+ line-height: 16px;
60364
+ white-space: nowrap;
60365
+ background: color-mix(in srgb, var(--settings-muted) 9%, transparent);
60366
+ border: 0;
60367
+ border-radius: 6px;
60368
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--settings-muted) 24%, transparent);
60369
+ cursor: pointer;
60370
+ transition:
60371
+ background-color 140ms ease,
60372
+ box-shadow 140ms ease,
60373
+ color 140ms ease;
60374
+ }
60375
+
60376
+ .settings-extensions-btn-installed-disabled:hover:not(:disabled) {
60377
+ color: var(--settings-text);
60378
+ background: color-mix(in srgb, var(--settings-muted) 14%, transparent);
60379
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--settings-muted) 38%, transparent);
60380
+ }
60381
+
60382
+ .settings-extensions-btn-installed-disabled:disabled {
60383
+ opacity: 0.5;
60384
+ cursor: not-allowed;
60385
+ }
60386
+
60387
+ .settings-extensions-btn-installed-disabled__dot {
60388
+ flex: none;
60389
+ width: 6px;
60390
+ height: 6px;
60391
+ box-sizing: border-box;
60392
+ border: 1.5px solid currentColor;
60393
+ border-radius: 50%;
60394
+ opacity: 0.85;
60395
+ }
60396
+
60107
60397
  .settings-extensions-btn-update {
60108
60398
  display: inline-flex;
60109
60399
  align-items: center;
@@ -60347,6 +60637,11 @@ ${detail}` : ""}`
60347
60637
  background: var(--settings-danger);
60348
60638
  }
60349
60639
 
60640
+ .settings-extensions-card__status-dot[data-tone="neutral"] {
60641
+ background: transparent;
60642
+ box-shadow: inset 0 0 0 1.5px var(--settings-subtle);
60643
+ }
60644
+
60350
60645
  .settings-extensions-card__body {
60351
60646
  display: grid;
60352
60647
  gap: 8px;