@codexhost/cli-win32-x64 0.31.0 → 0.32.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 (114) hide show
  1. package/README.md +1 -1
  2. package/app/codexhost-distribution.json +1 -1
  3. package/app/console-server.mjs +8 -0
  4. package/app/console-web.js +162 -23
  5. package/app/desktop-controller.mjs +8 -0
  6. package/app/host-runtime.mjs +2286 -814
  7. package/app/plugins/antigravity/plugin.mjs +10 -22
  8. package/app/plugins/claude-code/plugin.mjs +8 -0
  9. package/app/plugins/codebuddy/plugin.mjs +8 -0
  10. package/app/plugins/codex-usage/plugin.mjs +8 -0
  11. package/app/plugins/copilot/plugin.mjs +8 -0
  12. package/app/plugins/cursor-cli/plugin.mjs +8 -0
  13. package/app/plugins/deepseek-harness/plugin.mjs +8 -0
  14. package/app/plugins/devin/plugin.mjs +8 -0
  15. package/app/plugins/grok/plugin.mjs +8 -0
  16. package/app/plugins/hermes/plugin.mjs +8 -0
  17. package/app/plugins/kimi-code/plugin.mjs +8 -0
  18. package/app/plugins/kiro-cli/plugin.mjs +8 -0
  19. package/app/plugins/omp/plugin.mjs +8 -0
  20. package/app/plugins/opencode/plugin.mjs +8 -0
  21. package/app/plugins/pi/plugin.mjs +8 -0
  22. package/app/plugins/qoder/plugin.mjs +8 -0
  23. package/app/plugins/qoder-cn/plugin.mjs +8 -0
  24. package/app/plugins/qwen-code/plugin.mjs +8 -0
  25. package/app/plugins/workbuddy/plugin.mjs +8 -0
  26. package/app/plugins/zcode/plugin.mjs +8 -0
  27. package/app/renderer-extension.js +300 -125
  28. package/app/web/assets/{abnfDiagram-XWFEHMT6-Bqy7uOSy.js → abnfDiagram-XWFEHMT6-CnJyN70L.js} +1 -1
  29. package/app/web/assets/{architectureDiagram-CSQXQB3N-6aaP1YoM.js → architectureDiagram-CSQXQB3N-DH0ITYVE.js} +1 -1
  30. package/app/web/assets/{blockDiagram-BEDRHYPZ-B4QSFXe0.js → blockDiagram-BEDRHYPZ-WL3ZKoKg.js} +1 -1
  31. package/app/web/assets/{c4Diagram-M2UUVUY5-BYE-C8Gq.js → c4Diagram-M2UUVUY5-XwSPKj5H.js} +1 -1
  32. package/app/web/assets/{chunk-2Q5K7J3B-CiEM-GTd.js → chunk-2Q5K7J3B-CKEzexjg.js} +1 -1
  33. package/app/web/assets/{chunk-3GCGMST5-hzY9BiB1.js → chunk-3GCGMST5-BdEgLpab.js} +1 -1
  34. package/app/web/assets/{chunk-5VM5RSS4-DYXznY0H.js → chunk-5VM5RSS4-DyxL5-Ts.js} +1 -1
  35. package/app/web/assets/{chunk-7U7NFRK5-Bzw5MDPr.js → chunk-7U7NFRK5-FXLb4tYa.js} +1 -1
  36. package/app/web/assets/{chunk-CNRTWJTD-DMbxMfi3.js → chunk-CNRTWJTD-DcdC1OYr.js} +1 -1
  37. package/app/web/assets/{chunk-D5HYT7QG-By0ZVBtD.js → chunk-D5HYT7QG-BOz9vBX9.js} +1 -1
  38. package/app/web/assets/{chunk-EBZ3SEQC-Yyu_sMV7.js → chunk-EBZ3SEQC-Dmc_Z53x.js} +2 -2
  39. package/app/web/assets/{chunk-JWPE2WC7-DDzqxIPT.js → chunk-JWPE2WC7-CrFwSwYi.js} +1 -1
  40. package/app/web/assets/{chunk-KTR4FSNJ-GlKqhtpl.js → chunk-KTR4FSNJ-BY3AzFaI.js} +1 -1
  41. package/app/web/assets/{chunk-XXDRQBXY-DNc-CvYu.js → chunk-XXDRQBXY-CHgNy82n.js} +1 -1
  42. package/app/web/assets/{classDiagram-v2-KXABOMEV-4_PFS2N_.js → classDiagram-v2-KXABOMEV-ClM3-y5Z.js} +1 -1
  43. package/app/web/assets/{cose-bilkent-JH36ORCC-BE3foHUY.js → cose-bilkent-JH36ORCC-I7nd8GgO.js} +1 -1
  44. package/app/web/assets/{cynefin-EF2NZ3EQ-D2PqrYZ3.js → cynefin-EF2NZ3EQ-DzsXmyBH.js} +1 -1
  45. package/app/web/assets/{cynefinDiagram-NJNITYFG-DOObpTbq.js → cynefinDiagram-NJNITYFG-DLHq6igy.js} +1 -1
  46. package/app/web/assets/{dagre-KIHZ2IZ3-Znm2jin9.js → dagre-KIHZ2IZ3-BK991Mno.js} +1 -1
  47. package/app/web/assets/{diagram-7YQZDPLS-ByZMD-uA.js → diagram-7YQZDPLS-C4qiWdQU.js} +1 -1
  48. package/app/web/assets/{diagram-QBROCOUO-BiRShpnN.js → diagram-QBROCOUO-C_ZyBohC.js} +1 -1
  49. package/app/web/assets/{diagram-RJJCUUZO-D9wLVoK2.js → diagram-RJJCUUZO-C5Aezm94.js} +1 -1
  50. package/app/web/assets/{diagram-WERXNKYE-BSbIh-yC.js → diagram-WERXNKYE-Ckc_umlF.js} +1 -1
  51. package/app/web/assets/{diagram-YHHI257C-DMWrHMc8.js → diagram-YHHI257C-BHjReoZZ.js} +1 -1
  52. package/app/web/assets/{diagram-YR4HJLHV-C4sBAFb1.js → diagram-YR4HJLHV-DVTGi_y9.js} +1 -1
  53. package/app/web/assets/{ebnfDiagram-N527522P-BZLloaoQ.js → ebnfDiagram-N527522P-getuz1AR.js} +1 -1
  54. package/app/web/assets/{elk-O5DQBFGD-Da3e5tn5.js → elk-O5DQBFGD-C7mhTIuK.js} +1 -1
  55. package/app/web/assets/{erDiagram-K3K3BIDK-B2lKAIZF.js → erDiagram-K3K3BIDK-sV-HZvUV.js} +1 -1
  56. package/app/web/assets/{flowDiagram-Z6JWZHQI-q2EY_kmB.js → flowDiagram-Z6JWZHQI-D0L4wXUs.js} +1 -1
  57. package/app/web/assets/{ganttDiagram-3PRQTZWP-BGrNZ20b.js → ganttDiagram-3PRQTZWP-BNt9Bjjo.js} +1 -1
  58. package/app/web/assets/{gitGraphDiagram-VXDFKS5L-DIZNXREy.js → gitGraphDiagram-VXDFKS5L-BABZzhHw.js} +1 -1
  59. package/app/web/assets/{grid-E2QIVN74-0cUkPG69.js → grid-E2QIVN74-DLe2FQ_d.js} +1 -1
  60. package/app/web/assets/{index-PN7K-15_.js → index-BLmkBEoq.js} +99 -99
  61. package/app/web/assets/index-Dwdnvinl.css +1 -0
  62. package/app/web/assets/{infoDiagram-EZ3ZOAHP-BHhUTQCn.js → infoDiagram-EZ3ZOAHP-BKDuUqcr.js} +1 -1
  63. package/app/web/assets/{ishikawaDiagram-S3EKX5GW-DPOxtl4c.js → ishikawaDiagram-S3EKX5GW-C75EGghg.js} +1 -1
  64. package/app/web/assets/{journeyDiagram-POQNLL5X-D8RyXckG.js → journeyDiagram-POQNLL5X-q7Obruqa.js} +1 -1
  65. package/app/web/assets/{kanban-definition-BH5XI6FM-COJv3Hyh.js → kanban-definition-BH5XI6FM-CzAqhFED.js} +1 -1
  66. package/app/web/assets/{mermaid.core-DYdcDKIt.js → mermaid.core-Bysx44LR.js} +4 -4
  67. package/app/web/assets/{mindmap-definition-WVAN44T4-DnYIM4ja.js → mindmap-definition-WVAN44T4-Ds5rXTrF.js} +1 -1
  68. package/app/web/assets/{pegDiagram-D4NLKWP3-Ds3GAEJ6.js → pegDiagram-D4NLKWP3-hmdERwtT.js} +1 -1
  69. package/app/web/assets/{pieDiagram-36ENHN4W-BhLUJGEB.js → pieDiagram-36ENHN4W-DfTnyG8D.js} +1 -1
  70. package/app/web/assets/{quadrantDiagram-ZQUDMS73-DwtX-IxK.js → quadrantDiagram-ZQUDMS73-CreQWjZQ.js} +1 -1
  71. package/app/web/assets/{railroadDiagram-JIZHGYPL-D2vmTTnJ.js → railroadDiagram-JIZHGYPL-Bhc_eO9G.js} +1 -1
  72. package/app/web/assets/{render-VIF2ZAQL-DGU1ql-Z.js → render-VIF2ZAQL-BS1Zgk8K.js} +2 -2
  73. package/app/web/assets/{requirementDiagram-AXW2TVFA-u3j1sKkI.js → requirementDiagram-AXW2TVFA-Dlp7d6QT.js} +1 -1
  74. package/app/web/assets/{sankeyDiagram-FBCJTAIF-k-An9VHW.js → sankeyDiagram-FBCJTAIF-DGBchL30.js} +1 -1
  75. package/app/web/assets/{sequenceDiagram-3LA2ROMG-DUjbYb4R.js → sequenceDiagram-3LA2ROMG-DauFg5_R.js} +1 -1
  76. package/app/web/assets/{sizeCapture-2Q2CQKSF-DATTL7FZ.js → sizeCapture-2Q2CQKSF-DR-zy7an.js} +1 -1
  77. package/app/web/assets/{stateDiagram-v2-ATKHQDJO-cCJX5M2u.js → stateDiagram-v2-ATKHQDJO-BSRBSGUi.js} +1 -1
  78. package/app/web/assets/{swimlanes-YQL5WMAO-B7grWEWt.js → swimlanes-YQL5WMAO-BwzOr5Dv.js} +1 -1
  79. package/app/web/assets/swimlanesDiagram-UCCPES4V-CNV63-us.js +8 -0
  80. package/app/web/assets/{timeline-definition-7Z437IG3-BhsLa6l1.js → timeline-definition-7Z437IG3-BoZ-mNKc.js} +1 -1
  81. package/app/web/assets/{usecaseDiagram-RDK6N6HP-CkPQYmQw.js → usecaseDiagram-RDK6N6HP-DikhgH2m.js} +1 -1
  82. package/app/web/assets/{vennDiagram-SHRQU5PJ-CufZSwvw.js → vennDiagram-SHRQU5PJ-DY_oIxwl.js} +1 -1
  83. package/app/web/assets/{wardleyDiagram-F3OXNVQS-CSkfpFOA.js → wardleyDiagram-F3OXNVQS-DrRIiB_M.js} +1 -1
  84. package/app/web/assets/{xychartDiagram-GDYJKCDI-BhZf9scK.js → xychartDiagram-GDYJKCDI-CzSPgHV7.js} +1 -1
  85. package/app/web/codexhost-settings.js +118 -50
  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 +2 -2
  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 +71 -71
  93. package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +16 -16
  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 +5 -5
  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 +2 -2
  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 +1101 -179
  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
package/README.md CHANGED
@@ -7,7 +7,7 @@ Run Pi and Claude Code as first-class external harnesses inside Codex Desktop.
7
7
  ## Install
8
8
 
9
9
  ```bash
10
- npm install -g @codexhost/cli@0.31.0
10
+ npm install -g @codexhost/cli@0.32.0
11
11
  ```
12
12
 
13
13
  Do not install this package directly. npm selects it through the optional dependencies of `@codexhost/cli`.
@@ -1 +1 @@
1
- {"schemaVersion":1,"version":"0.31.0","distribution":"npm","target":"windows-x64"}
1
+ {"schemaVersion":1,"version":"0.32.0","distribution":"npm","target":"windows-x64"}
@@ -22859,6 +22859,8 @@ var CLIENT_CHANNEL_METHODS = [
22859
22859
  "codexhost/harness/preferences/get",
22860
22860
  "codexhost/harness/preferences/patch",
22861
22861
  "experimentalFeature/list",
22862
+ "collaborationMode/list",
22863
+ "codexhost/thread/collaboration-mode/select",
22862
22864
  "thread/list",
22863
22865
  "thread/metadata/update",
22864
22866
  "codexhost/thread/catalog/read",
@@ -23151,6 +23153,7 @@ var clientThreadSnapshotSchema = external_exports.object({
23151
23153
  nextCursor: external_exports.string().nullable()
23152
23154
  }),
23153
23155
  configuration: external_exports.object({
23156
+ codexCollaborationMode: external_exports.enum(["plan", "default"]).optional(),
23154
23157
  /** Native Codex model names are not external Harness transport refs. */
23155
23158
  native: external_exports.object({
23156
23159
  model: external_exports.string().min(1).max(1024).optional(),
@@ -23848,6 +23851,11 @@ var harnessDefaultConfigurationSchema = external_exports.strictObject({
23848
23851
  thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
23849
23852
  permissionModeId: harnessPermissionModeIdSchema.optional()
23850
23853
  }).refine((value) => Boolean(value.model || value.thinkingOptionId || value.permissionModeId), "A default configuration must contain a preference");
23854
+ var projectHarnessSelectionSchema = external_exports.discriminatedUnion("mode", [
23855
+ external_exports.strictObject({ mode: external_exports.literal("global") }),
23856
+ external_exports.strictObject({ mode: external_exports.literal("last") }),
23857
+ external_exports.strictObject({ mode: external_exports.literal("manual"), harnessId: harnessIdSchema })
23858
+ ]);
23851
23859
  var newThreadDefaultsSchema = external_exports.strictObject({
23852
23860
  lastHarness: harnessIdSchema.optional(),
23853
23861
  byHarness: external_exports.record(preferenceHarnessKey, harnessDefaultConfigurationSchema)
@@ -21369,6 +21369,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
21369
21369
  "codexhost/harness/preferences/get",
21370
21370
  "codexhost/harness/preferences/patch",
21371
21371
  "experimentalFeature/list",
21372
+ "collaborationMode/list",
21373
+ "codexhost/thread/collaboration-mode/select",
21372
21374
  "thread/list",
21373
21375
  "thread/metadata/update",
21374
21376
  "codexhost/thread/catalog/read",
@@ -21661,6 +21663,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
21661
21663
  nextCursor: external_exports.string().nullable()
21662
21664
  }),
21663
21665
  configuration: external_exports.object({
21666
+ codexCollaborationMode: external_exports.enum(["plan", "default"]).optional(),
21664
21667
  /** Native Codex model names are not external Harness transport refs. */
21665
21668
  native: external_exports.object({
21666
21669
  model: external_exports.string().min(1).max(1024).optional(),
@@ -22388,6 +22391,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
22388
22391
  thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
22389
22392
  permissionModeId: harnessPermissionModeIdSchema.optional()
22390
22393
  }).refine((value) => Boolean(value.model || value.thinkingOptionId || value.permissionModeId), "A default configuration must contain a preference");
22394
+ var projectHarnessSelectionSchema = external_exports.discriminatedUnion("mode", [
22395
+ external_exports.strictObject({ mode: external_exports.literal("global") }),
22396
+ external_exports.strictObject({ mode: external_exports.literal("last") }),
22397
+ external_exports.strictObject({ mode: external_exports.literal("manual"), harnessId: harnessIdSchema })
22398
+ ]);
22391
22399
  var newThreadDefaultsSchema = external_exports.strictObject({
22392
22400
  lastHarness: harnessIdSchema.optional(),
22393
22401
  byHarness: external_exports.record(preferenceHarnessKey, harnessDefaultConfigurationSchema)
@@ -30568,6 +30576,7 @@ th[aria-sort] .console-usage-sort__mark {
30568
30576
  updating: "Updating\u2026",
30569
30577
  updateToVersion: "Update to v{version}",
30570
30578
  installedBadge: "Installed",
30579
+ installedDisabledBadge: "Installed \xB7 Off",
30571
30580
  uninstall: "Uninstall",
30572
30581
  uninstalling: "Uninstalling\u2026",
30573
30582
  uninstallConfirmPrompt: "Remove this plugin?",
@@ -30580,7 +30589,9 @@ th[aria-sort] .console-usage-sort__mark {
30580
30589
  marketplaceEmptyDescription: "Refresh to check for newly published plugins, or import one from GitHub, a local .zip package, or a local directory.",
30581
30590
  marketplaceFallbackNotice: "The remote catalog is unreachable. You can still install plugins from GitHub, a ZIP, or a local directory.",
30582
30591
  marketplaceLoadFailed: "Could not load plugin marketplace: {message}",
30583
- installedSuccess: "Installed \u201C{name}\u201D (v{version}). Enable it when ready.",
30592
+ installedSuccess: "Installed and enabled \u201C{name}\u201D (v{version}).",
30593
+ installedSlotConflict: "Installed \u201C{name}\u201D (v{version}), but left it disabled because a Desktop slot conflicts with {other}. Disable {other} first to enable it.",
30594
+ installedDisabled: "Installed \u201C{name}\u201D (v{version}), currently disabled. Review or enable it in Installed.",
30584
30595
  updatedSuccess: "Updated \u201C{name}\u201D to v{version}.",
30585
30596
  uninstalledSuccess: "Uninstalled \u201C{name}\u201D.",
30586
30597
  installFailed: "Could not install plugin: {message}",
@@ -30797,6 +30808,7 @@ th[aria-sort] .console-usage-sort__mark {
30797
30808
  updating: "\u66F4\u65B0\u4E2D\u2026",
30798
30809
  updateToVersion: "\u66F4\u65B0\u5230 v{version}",
30799
30810
  installedBadge: "\u5DF2\u5B89\u88C5",
30811
+ installedDisabledBadge: "\u5DF2\u5B89\u88C5 \xB7 \u672A\u542F\u7528",
30800
30812
  uninstall: "\u5378\u8F7D",
30801
30813
  uninstalling: "\u5378\u8F7D\u4E2D\u2026",
30802
30814
  uninstallConfirmPrompt: "\u786E\u8BA4\u5378\u8F7D\u6B64\u63D2\u4EF6\uFF1F",
@@ -30809,7 +30821,9 @@ th[aria-sort] .console-usage-sort__mark {
30809
30821
  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",
30810
30822
  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",
30811
30823
  marketplaceLoadFailed: "\u65E0\u6CD5\u52A0\u8F7D\u63D2\u4EF6\u5E02\u573A\uFF1A{message}",
30812
- installedSuccess: "\u5DF2\u5B89\u88C5\u201C{name}\u201D\uFF08v{version}\uFF09\uFF0C\u53EF\u6309\u9700\u5F00\u542F\u3002",
30824
+ installedSuccess: "\u5DF2\u5B89\u88C5\u5E76\u542F\u7528\u201C{name}\u201D\uFF08v{version}\uFF09\u3002",
30825
+ 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",
30826
+ 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",
30813
30827
  updatedSuccess: "\u5DF2\u5C06\u201C{name}\u201D\u66F4\u65B0\u81F3 v{version}\u3002",
30814
30828
  uninstalledSuccess: "\u5DF2\u5378\u8F7D\u201C{name}\u201D\u3002",
30815
30829
  installFailed: "\u5B89\u88C5\u63D2\u4EF6\u5931\u8D25\uFF1A{message}",
@@ -39695,6 +39709,17 @@ ${error62.stderrTail}`] : []
39695
39709
  const shared = targetSlots.filter((slot2) => otherSlots.includes(slot2));
39696
39710
  return shared.length > 0 ? shared : targetSlots;
39697
39711
  }
39712
+ function findDesktopSlotConflictForExtension(item, list) {
39713
+ if (item.state !== "valid") return void 0;
39714
+ if (item.desktopConflictWith) return item.desktopConflictWith;
39715
+ if (!item.manifest.desktop || !item.manifest.slots?.length) return void 0;
39716
+ return resolveDesktopExtensionSlots(
39717
+ [...list.configuration.enabled.filter((id2) => id2 !== item.id), item.id],
39718
+ list.extensions.filter(
39719
+ (entry) => entry.state === "valid" && Boolean(entry.manifest.desktop)
39720
+ ).map(({ id: id2, manifest }) => ({ id: id2, slots: manifest.slots ?? [] }))
39721
+ ).conflicts.get(item.id);
39722
+ }
39698
39723
  function isToggleBlocked(item) {
39699
39724
  if (item.enabled) return false;
39700
39725
  return item.state !== "valid";
@@ -40109,6 +40134,8 @@ ${error62.stderrTail}`] : []
40109
40134
  downloads,
40110
40135
  trustTier,
40111
40136
  statusState,
40137
+ statusDotOverride,
40138
+ stateBadge,
40112
40139
  update,
40113
40140
  description,
40114
40141
  attention,
@@ -40170,6 +40197,18 @@ ${error62.stderrTail}`] : []
40170
40197
  dot.setAttribute("aria-label", copy.states[statusState]);
40171
40198
  dot.title = copy.states[statusState];
40172
40199
  titleGroup.append(dot);
40200
+ } else if (statusDotOverride) {
40201
+ const dot = createEl(document2, "span", "settings-extensions-card__status-dot");
40202
+ dot.dataset.tone = statusDotOverride.tone;
40203
+ dot.setAttribute("role", "img");
40204
+ dot.setAttribute("aria-label", statusDotOverride.label);
40205
+ dot.title = statusDotOverride.label;
40206
+ titleGroup.append(dot);
40207
+ }
40208
+ if (stateBadge) {
40209
+ const badge = createEl(document2, "span", "settings-extensions-state-badge", stateBadge.label);
40210
+ badge.dataset.tone = stateBadge.tone;
40211
+ titleGroup.append(badge);
40173
40212
  }
40174
40213
  const compatLabel = incompatiblePlatformLabel ?? (platformBadge?.kind === "web" ? platformBadge.label : void 0);
40175
40214
  if (compatLabel) {
@@ -42773,7 +42812,7 @@ ${error62.stderrTail}`] : []
42773
42812
  const displayName = catalogDisplayName(entry, contentLocale);
42774
42813
  const installed = installedById.get(entry.id);
42775
42814
  const updateAvailable = hasCatalogUpdate(installed, entry);
42776
- const installState = installed ? updateAvailable ? "update" : "installed" : "available";
42815
+ const installState = installed ? updateAvailable ? "update" : installed.enabled ? "installed" : "installed-disabled" : "available";
42777
42816
  const entryAction = pendingMutations.get(entry.id) ?? null;
42778
42817
  const isBusyCard = entryAction !== null;
42779
42818
  const controlsDisabled = isBusyCard || globalBusy;
@@ -42802,6 +42841,15 @@ ${error62.stderrTail}`] : []
42802
42841
  );
42803
42842
  actionButton.setAttribute("aria-busy", String(updatingThis));
42804
42843
  actionButton.disabled = controlsDisabled || !canInstall;
42844
+ } else if (installState === "installed-disabled") {
42845
+ actionButton.className = "settings-extensions-btn-installed-disabled";
42846
+ actionButton.dataset.action = "installed-disabled";
42847
+ actionButton.title = copy.installedDisabledBadge;
42848
+ actionButton.setAttribute("aria-label", copy.installedDisabledBadge);
42849
+ const offDot = createEl(document2, "span", "settings-extensions-btn-installed-disabled__dot");
42850
+ offDot.setAttribute("aria-hidden", "true");
42851
+ actionButton.append(offDot, createEl(document2, "span", "", copy.installedDisabledBadge));
42852
+ actionButton.disabled = controlsDisabled;
42805
42853
  } else {
42806
42854
  const isFeaturedLayout = layout === "featured";
42807
42855
  actionButton.className = isFeaturedLayout ? "settings-extensions-btn-installed settings-extensions-btn-installed--featured" : "settings-extensions-btn-installed";
@@ -42847,6 +42895,7 @@ ${error62.stderrTail}`] : []
42847
42895
  version: updateAvailable && installed?.state === "valid" ? installed.manifest.version : entry.version,
42848
42896
  downloads: entry.downloads,
42849
42897
  trustTier: entry.trustTier,
42898
+ statusDotOverride: installState === "update" && installed && !installed.enabled ? { tone: "neutral", label: copy.installedDisabledBadge } : void 0,
42850
42899
  update: updateAvailable && installed?.state === "valid" ? {
42851
42900
  version: entry.version,
42852
42901
  label: formatMessage(copy.updateVersionCue, {
@@ -43661,6 +43710,7 @@ ${error62.stderrTail}`] : []
43661
43710
  downloads: catalogEntry?.downloads,
43662
43711
  trustTier: catalogEntry?.trustTier,
43663
43712
  statusState,
43713
+ stateBadge: item.state === "valid" && !item.enabled && statusState === "disabled" ? { tone: "neutral", label: copy.states.disabled } : void 0,
43664
43714
  update,
43665
43715
  description: extensionDescription(item, contentLocale),
43666
43716
  attention,
@@ -44041,6 +44091,42 @@ ${error62.stderrTail}`] : []
44041
44091
  render();
44042
44092
  }
44043
44093
  };
44094
+ const buildInstallFeedback = (result, isUpdate, fallbackName) => {
44095
+ const displayName = result.manifest.name[messages.locale] || result.manifest.name.en || fallbackName;
44096
+ const version2 = result.manifest.version.replace(/^v/u, "");
44097
+ if (isUpdate) {
44098
+ return {
44099
+ tone: "success",
44100
+ text: formatMessage(copy.updatedSuccess, { name: displayName, version: version2 })
44101
+ };
44102
+ }
44103
+ const refreshedItem = listing?.extensions.find((item) => item.id === result.id);
44104
+ if (refreshedItem && !refreshedItem.enabled) {
44105
+ const conflictId = listing ? findDesktopSlotConflictForExtension(refreshedItem, listing) : void 0;
44106
+ if (conflictId && listing) {
44107
+ const other = describeOtherExtension(conflictId, listing.extensions, messages.locale);
44108
+ return {
44109
+ tone: "warning",
44110
+ text: formatMessage(copy.installedSlotConflict, {
44111
+ name: displayName,
44112
+ version: version2,
44113
+ other
44114
+ })
44115
+ };
44116
+ }
44117
+ return {
44118
+ tone: "warning",
44119
+ text: formatMessage(copy.installedDisabled, { name: displayName, version: version2 })
44120
+ };
44121
+ }
44122
+ return {
44123
+ tone: "success",
44124
+ text: formatMessage(result.replaced ? copy.updatedSuccess : copy.installedSuccess, {
44125
+ name: displayName,
44126
+ version: version2
44127
+ })
44128
+ };
44129
+ };
44044
44130
  const installFromCatalog = async (entry, isUpdate) => {
44045
44131
  if (recovering || pendingMutations.has(entry.id) || disposed || context.signal.aborted)
44046
44132
  return;
@@ -44071,19 +44157,10 @@ ${error62.stderrTail}`] : []
44071
44157
  return;
44072
44158
  }
44073
44159
  if (disposed || context.signal.aborted) return;
44074
- const displayName = result.manifest.name[messages.locale] || result.manifest.name.en || fallbackName;
44075
- const modalTargetId = detailModal.extensionId === entry.id ? entry.id : null;
44076
- setFeedback(
44077
- {
44078
- tone: "success",
44079
- text: formatMessage(
44080
- result.replaced || isUpdate ? copy.updatedSuccess : copy.installedSuccess,
44081
- { name: displayName, version: result.manifest.version }
44082
- )
44083
- },
44084
- modalTargetId
44085
- );
44086
44160
  await refreshInstalledAfterMutation();
44161
+ if (disposed || context.signal.aborted) return;
44162
+ const modalTargetId = detailModal.extensionId === entry.id ? entry.id : null;
44163
+ setFeedback(buildInstallFeedback(result, isUpdate, fallbackName), modalTargetId);
44087
44164
  } catch (error62) {
44088
44165
  if (disposed || context.signal.aborted) return;
44089
44166
  const modalTargetId = detailModal.extensionId === entry.id ? entry.id : null;
@@ -44120,15 +44197,9 @@ ${error62.stderrTail}`] : []
44120
44197
  searchQuery = "";
44121
44198
  searchInput.value = "";
44122
44199
  clearSearchButton.hidden = true;
44123
- const displayName = result.manifest.name[messages.locale] || result.manifest.name.en || result.id;
44124
- setFeedback({
44125
- tone: "success",
44126
- text: formatMessage(result.replaced ? copy.updatedSuccess : copy.installedSuccess, {
44127
- name: displayName,
44128
- version: result.manifest.version
44129
- })
44130
- });
44131
44200
  await refreshInstalledAfterMutation();
44201
+ if (disposed || context.signal.aborted) return;
44202
+ setFeedback(buildInstallFeedback(result, false, result.id));
44132
44203
  } finally {
44133
44204
  importing = false;
44134
44205
  if (!disposed && !context.signal.aborted) {
@@ -52702,6 +52773,22 @@ ${error62.stderrTail}`] : []
52702
52773
  white-space: nowrap;
52703
52774
  }
52704
52775
 
52776
+ .settings-extensions-state-badge {
52777
+ display: inline-flex;
52778
+ align-items: center;
52779
+ flex: none;
52780
+ height: 18px;
52781
+ padding: 0 6px;
52782
+ border-radius: 5px;
52783
+ background: color-mix(in srgb, var(--settings-muted) 11%, transparent);
52784
+ box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--settings-muted) 22%, transparent);
52785
+ color: var(--settings-muted);
52786
+ font-size: 10.5px;
52787
+ font-weight: 500;
52788
+ line-height: 1;
52789
+ white-space: nowrap;
52790
+ }
52791
+
52705
52792
  .settings-extensions-card__meta-line {
52706
52793
  display: flex;
52707
52794
  align-items: center;
@@ -52846,11 +52933,58 @@ ${error62.stderrTail}`] : []
52846
52933
  }
52847
52934
 
52848
52935
  .settings-extensions-btn-installed--featured:focus-visible,
52936
+ .settings-extensions-btn-installed:focus-visible,
52937
+ .settings-extensions-btn-installed-disabled:focus-visible,
52849
52938
  .settings-extensions-btn-update:focus-visible {
52850
52939
  outline: 2px solid var(--settings-focus);
52851
52940
  outline-offset: 1px;
52852
52941
  }
52853
52942
 
52943
+ .settings-extensions-btn-installed-disabled {
52944
+ display: inline-flex;
52945
+ align-items: center;
52946
+ justify-content: center;
52947
+ gap: 5px;
52948
+ height: 28px;
52949
+ padding: 0 9px;
52950
+ color: var(--settings-muted);
52951
+ font: inherit;
52952
+ font-size: 11.5px;
52953
+ font-weight: 500;
52954
+ line-height: 16px;
52955
+ white-space: nowrap;
52956
+ background: color-mix(in srgb, var(--settings-muted) 9%, transparent);
52957
+ border: 0;
52958
+ border-radius: 6px;
52959
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--settings-muted) 24%, transparent);
52960
+ cursor: pointer;
52961
+ transition:
52962
+ background-color 140ms ease,
52963
+ box-shadow 140ms ease,
52964
+ color 140ms ease;
52965
+ }
52966
+
52967
+ .settings-extensions-btn-installed-disabled:hover:not(:disabled) {
52968
+ color: var(--settings-text);
52969
+ background: color-mix(in srgb, var(--settings-muted) 14%, transparent);
52970
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--settings-muted) 38%, transparent);
52971
+ }
52972
+
52973
+ .settings-extensions-btn-installed-disabled:disabled {
52974
+ opacity: 0.5;
52975
+ cursor: not-allowed;
52976
+ }
52977
+
52978
+ .settings-extensions-btn-installed-disabled__dot {
52979
+ flex: none;
52980
+ width: 6px;
52981
+ height: 6px;
52982
+ box-sizing: border-box;
52983
+ border: 1.5px solid currentColor;
52984
+ border-radius: 50%;
52985
+ opacity: 0.85;
52986
+ }
52987
+
52854
52988
  .settings-extensions-btn-update {
52855
52989
  display: inline-flex;
52856
52990
  align-items: center;
@@ -53094,6 +53228,11 @@ ${error62.stderrTail}`] : []
53094
53228
  background: var(--settings-danger);
53095
53229
  }
53096
53230
 
53231
+ .settings-extensions-card__status-dot[data-tone="neutral"] {
53232
+ background: transparent;
53233
+ box-shadow: inset 0 0 0 1.5px var(--settings-subtle);
53234
+ }
53235
+
53097
53236
  .settings-extensions-card__body {
53098
53237
  display: grid;
53099
53238
  gap: 8px;
@@ -33621,6 +33621,8 @@ var CLIENT_CHANNEL_METHODS = [
33621
33621
  "codexhost/harness/preferences/get",
33622
33622
  "codexhost/harness/preferences/patch",
33623
33623
  "experimentalFeature/list",
33624
+ "collaborationMode/list",
33625
+ "codexhost/thread/collaboration-mode/select",
33624
33626
  "thread/list",
33625
33627
  "thread/metadata/update",
33626
33628
  "codexhost/thread/catalog/read",
@@ -33913,6 +33915,7 @@ var clientThreadSnapshotSchema = external_exports.object({
33913
33915
  nextCursor: external_exports.string().nullable()
33914
33916
  }),
33915
33917
  configuration: external_exports.object({
33918
+ codexCollaborationMode: external_exports.enum(["plan", "default"]).optional(),
33916
33919
  /** Native Codex model names are not external Harness transport refs. */
33917
33920
  native: external_exports.object({
33918
33921
  model: external_exports.string().min(1).max(1024).optional(),
@@ -34611,6 +34614,11 @@ var harnessDefaultConfigurationSchema = external_exports.strictObject({
34611
34614
  thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
34612
34615
  permissionModeId: harnessPermissionModeIdSchema.optional()
34613
34616
  }).refine((value) => Boolean(value.model || value.thinkingOptionId || value.permissionModeId), "A default configuration must contain a preference");
34617
+ var projectHarnessSelectionSchema = external_exports.discriminatedUnion("mode", [
34618
+ external_exports.strictObject({ mode: external_exports.literal("global") }),
34619
+ external_exports.strictObject({ mode: external_exports.literal("last") }),
34620
+ external_exports.strictObject({ mode: external_exports.literal("manual"), harnessId: harnessIdSchema })
34621
+ ]);
34614
34622
  var newThreadDefaultsSchema = external_exports.strictObject({
34615
34623
  lastHarness: harnessIdSchema.optional(),
34616
34624
  byHarness: external_exports.record(preferenceHarnessKey, harnessDefaultConfigurationSchema)