@adhdev/daemon-core 0.6.58 → 0.6.60

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 (245) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +87 -89
  3. package/dist/index.js.map +1 -1
  4. package/package.json +1 -1
  5. package/src/detection/ide-detector.ts +1 -1
  6. package/src/providers/provider-loader.ts +3 -6
  7. package/providers/_builtin/.github/workflows/generate-registry.yml +0 -76
  8. package/providers/_builtin/COMPATIBILITY.md +0 -217
  9. package/providers/_builtin/CONTRIBUTING.md +0 -200
  10. package/providers/_builtin/README.md +0 -119
  11. package/providers/_builtin/_helpers/index.js +0 -188
  12. package/providers/_builtin/acp/agentpool/provider.json +0 -54
  13. package/providers/_builtin/acp/amp/provider.json +0 -52
  14. package/providers/_builtin/acp/auggie/provider.json +0 -57
  15. package/providers/_builtin/acp/autodev/provider.json +0 -54
  16. package/providers/_builtin/acp/autohand/provider.json +0 -52
  17. package/providers/_builtin/acp/blackbox-ai/provider.json +0 -54
  18. package/providers/_builtin/acp/claude-agent/provider.json +0 -57
  19. package/providers/_builtin/acp/cline-acp/provider.json +0 -54
  20. package/providers/_builtin/acp/codebuddy/provider.json +0 -54
  21. package/providers/_builtin/acp/codex-cli/provider.json +0 -57
  22. package/providers/_builtin/acp/corust-agent/provider.json +0 -52
  23. package/providers/_builtin/acp/crow-cli/provider.json +0 -54
  24. package/providers/_builtin/acp/cursor-acp/provider.json +0 -54
  25. package/providers/_builtin/acp/deepagents/provider.json +0 -52
  26. package/providers/_builtin/acp/dimcode/provider.json +0 -54
  27. package/providers/_builtin/acp/docker-cagent/provider.json +0 -57
  28. package/providers/_builtin/acp/factory-droid/provider.json +0 -60
  29. package/providers/_builtin/acp/fast-agent/provider.json +0 -52
  30. package/providers/_builtin/acp/gemini-cli/provider.json +0 -114
  31. package/providers/_builtin/acp/github-copilot/provider.json +0 -54
  32. package/providers/_builtin/acp/goose/provider.json +0 -57
  33. package/providers/_builtin/acp/junie/provider.json +0 -52
  34. package/providers/_builtin/acp/kilo/provider.json +0 -54
  35. package/providers/_builtin/acp/kimi-cli/provider.json +0 -57
  36. package/providers/_builtin/acp/minion-code/provider.json +0 -52
  37. package/providers/_builtin/acp/mistral-vibe/provider.json +0 -57
  38. package/providers/_builtin/acp/nova/provider.json +0 -54
  39. package/providers/_builtin/acp/openclaw/provider.json +0 -54
  40. package/providers/_builtin/acp/opencode/provider.json +0 -52
  41. package/providers/_builtin/acp/openhands/provider.json +0 -54
  42. package/providers/_builtin/acp/pi-acp/provider.json +0 -52
  43. package/providers/_builtin/acp/qoder/provider.json +0 -54
  44. package/providers/_builtin/acp/qwen-code/provider.json +0 -60
  45. package/providers/_builtin/acp/stakpak/provider.json +0 -54
  46. package/providers/_builtin/acp/vtcode/provider.json +0 -54
  47. package/providers/_builtin/cli/aider-cli/provider.json +0 -37
  48. package/providers/_builtin/cli/aider-cli/scripts/1.0/detect_status.js +0 -20
  49. package/providers/_builtin/cli/aider-cli/scripts/1.0/parse_approval.js +0 -10
  50. package/providers/_builtin/cli/aider-cli/scripts/1.0/parse_output.js +0 -97
  51. package/providers/_builtin/cli/aider-cli/scripts/1.0/scripts.js +0 -7
  52. package/providers/_builtin/cli/claude-cli/provider.json +0 -121
  53. package/providers/_builtin/cli/claude-cli/scripts/1.0/detect_status.js +0 -83
  54. package/providers/_builtin/cli/claude-cli/scripts/1.0/parse_approval.js +0 -97
  55. package/providers/_builtin/cli/claude-cli/scripts/1.0/parse_output.js +0 -417
  56. package/providers/_builtin/cli/claude-cli/scripts/1.0/scripts.js +0 -42
  57. package/providers/_builtin/cli/codex-cli/provider.json +0 -90
  58. package/providers/_builtin/cli/codex-cli/scripts/1.0/detect_status.js +0 -54
  59. package/providers/_builtin/cli/codex-cli/scripts/1.0/parse_approval.js +0 -91
  60. package/providers/_builtin/cli/codex-cli/scripts/1.0/parse_output.js +0 -522
  61. package/providers/_builtin/cli/codex-cli/scripts/1.0/scripts.js +0 -11
  62. package/providers/_builtin/cli/cursor-cli/provider.json +0 -37
  63. package/providers/_builtin/cli/cursor-cli/scripts/1.0/detect_status.js +0 -19
  64. package/providers/_builtin/cli/cursor-cli/scripts/1.0/parse_approval.js +0 -10
  65. package/providers/_builtin/cli/cursor-cli/scripts/1.0/parse_output.js +0 -48
  66. package/providers/_builtin/cli/cursor-cli/scripts/1.0/scripts.js +0 -7
  67. package/providers/_builtin/cli/gemini-cli/provider.json +0 -109
  68. package/providers/_builtin/cli/gemini-cli/scripts/1.0/detect_status.js +0 -26
  69. package/providers/_builtin/cli/gemini-cli/scripts/1.0/parse_approval.js +0 -22
  70. package/providers/_builtin/cli/gemini-cli/scripts/1.0/parse_output.js +0 -71
  71. package/providers/_builtin/cli/gemini-cli/scripts/1.0/scripts.js +0 -12
  72. package/providers/_builtin/cli/github-copilot-cli/provider.json +0 -37
  73. package/providers/_builtin/cli/github-copilot-cli/scripts/1.0/detect_status.js +0 -19
  74. package/providers/_builtin/cli/github-copilot-cli/scripts/1.0/parse_approval.js +0 -9
  75. package/providers/_builtin/cli/github-copilot-cli/scripts/1.0/parse_output.js +0 -48
  76. package/providers/_builtin/cli/github-copilot-cli/scripts/1.0/scripts.js +0 -7
  77. package/providers/_builtin/cli/goose-cli/provider.json +0 -37
  78. package/providers/_builtin/cli/goose-cli/scripts/1.0/detect_status.js +0 -20
  79. package/providers/_builtin/cli/goose-cli/scripts/1.0/parse_approval.js +0 -10
  80. package/providers/_builtin/cli/goose-cli/scripts/1.0/parse_output.js +0 -48
  81. package/providers/_builtin/cli/goose-cli/scripts/1.0/scripts.js +0 -7
  82. package/providers/_builtin/cli/opencode-cli/provider.json +0 -37
  83. package/providers/_builtin/cli/opencode-cli/scripts/1.0/detect_status.js +0 -15
  84. package/providers/_builtin/cli/opencode-cli/scripts/1.0/parse_approval.js +0 -9
  85. package/providers/_builtin/cli/opencode-cli/scripts/1.0/parse_output.js +0 -48
  86. package/providers/_builtin/cli/opencode-cli/scripts/1.0/scripts.js +0 -7
  87. package/providers/_builtin/docs/CDP_SELECTOR_GUIDE.md +0 -370
  88. package/providers/_builtin/docs/PROVIDER_GUIDE.md +0 -916
  89. package/providers/_builtin/extension/cline/provider.json +0 -37
  90. package/providers/_builtin/extension/cline/scripts/1.0/focus_editor.js +0 -48
  91. package/providers/_builtin/extension/cline/scripts/1.0/list_chats.js +0 -100
  92. package/providers/_builtin/extension/cline/scripts/1.0/list_models.js +0 -43
  93. package/providers/_builtin/extension/cline/scripts/1.0/list_modes.js +0 -35
  94. package/providers/_builtin/extension/cline/scripts/1.0/new_session.js +0 -85
  95. package/providers/_builtin/extension/cline/scripts/1.0/open_panel.js +0 -25
  96. package/providers/_builtin/extension/cline/scripts/1.0/read_chat.js +0 -270
  97. package/providers/_builtin/extension/cline/scripts/1.0/resolve_action.js +0 -83
  98. package/providers/_builtin/extension/cline/scripts/1.0/scripts.js +0 -82
  99. package/providers/_builtin/extension/cline/scripts/1.0/send_message.js +0 -95
  100. package/providers/_builtin/extension/cline/scripts/1.0/set_mode.js +0 -36
  101. package/providers/_builtin/extension/cline/scripts/1.0/set_model.js +0 -36
  102. package/providers/_builtin/extension/cline/scripts/1.0/switch_session.js +0 -206
  103. package/providers/_builtin/extension/codex/provider.json +0 -38
  104. package/providers/_builtin/extension/codex/scripts/1.0/click_conversation_webview.js +0 -24
  105. package/providers/_builtin/extension/codex/scripts/1.0/explore_chat_webview.js +0 -110
  106. package/providers/_builtin/extension/codex/scripts/1.0/explore_controls_webview.js +0 -75
  107. package/providers/_builtin/extension/codex/scripts/1.0/explore_dom.js +0 -58
  108. package/providers/_builtin/extension/codex/scripts/1.0/explore_dropdown_webview.js +0 -64
  109. package/providers/_builtin/extension/codex/scripts/1.0/inspect_code_webview.js +0 -55
  110. package/providers/_builtin/extension/codex/scripts/1.0/list_models.js +0 -63
  111. package/providers/_builtin/extension/codex/scripts/1.0/list_modes.js +0 -140
  112. package/providers/_builtin/extension/codex/scripts/1.0/message_structure_webview.js +0 -79
  113. package/providers/_builtin/extension/codex/scripts/1.0/new_session.js +0 -26
  114. package/providers/_builtin/extension/codex/scripts/1.0/read_chat.js +0 -516
  115. package/providers/_builtin/extension/codex/scripts/1.0/resolve_action.js +0 -82
  116. package/providers/_builtin/extension/codex/scripts/1.0/send_message.js +0 -42
  117. package/providers/_builtin/extension/codex/scripts/1.0/set_mode.js +0 -165
  118. package/providers/_builtin/extension/codex/scripts/1.0/set_model.js +0 -86
  119. package/providers/_builtin/extension/roo-code/provider.json +0 -37
  120. package/providers/_builtin/extension/roo-code/scripts/1.0/scripts.js +0 -82
  121. package/providers/_builtin/ide/antigravity/provider.json +0 -88
  122. package/providers/_builtin/ide/antigravity/scripts/1.0/focus_editor.js +0 -20
  123. package/providers/_builtin/ide/antigravity/scripts/1.0/list_chats.js +0 -137
  124. package/providers/_builtin/ide/antigravity/scripts/1.0/list_models.js +0 -61
  125. package/providers/_builtin/ide/antigravity/scripts/1.0/list_modes.js +0 -72
  126. package/providers/_builtin/ide/antigravity/scripts/1.0/new_session.js +0 -75
  127. package/providers/_builtin/ide/antigravity/scripts/1.0/read_chat.js +0 -352
  128. package/providers/_builtin/ide/antigravity/scripts/1.0/resolve_action.js +0 -63
  129. package/providers/_builtin/ide/antigravity/scripts/1.0/scripts.js +0 -67
  130. package/providers/_builtin/ide/antigravity/scripts/1.0/send_message.js +0 -56
  131. package/providers/_builtin/ide/antigravity/scripts/1.0/set_mode.js +0 -67
  132. package/providers/_builtin/ide/antigravity/scripts/1.0/set_model.js +0 -72
  133. package/providers/_builtin/ide/antigravity/scripts/1.0/switch_session.js +0 -114
  134. package/providers/_builtin/ide/cursor/provider.json +0 -70
  135. package/providers/_builtin/ide/cursor/scripts/1.0/dismiss_notification.js +0 -30
  136. package/providers/_builtin/ide/cursor/scripts/1.0/focus_editor.js +0 -13
  137. package/providers/_builtin/ide/cursor/scripts/1.0/list_models.js +0 -78
  138. package/providers/_builtin/ide/cursor/scripts/1.0/list_modes.js +0 -40
  139. package/providers/_builtin/ide/cursor/scripts/1.0/list_notifications.js +0 -23
  140. package/providers/_builtin/ide/cursor/scripts/1.0/list_sessions.js +0 -42
  141. package/providers/_builtin/ide/cursor/scripts/1.0/new_session.js +0 -20
  142. package/providers/_builtin/ide/cursor/scripts/1.0/open_panel.js +0 -23
  143. package/providers/_builtin/ide/cursor/scripts/1.0/read_chat.js +0 -318
  144. package/providers/_builtin/ide/cursor/scripts/1.0/resolve_action.js +0 -19
  145. package/providers/_builtin/ide/cursor/scripts/1.0/scripts.js +0 -78
  146. package/providers/_builtin/ide/cursor/scripts/1.0/send_message.js +0 -23
  147. package/providers/_builtin/ide/cursor/scripts/1.0/set_mode.js +0 -38
  148. package/providers/_builtin/ide/cursor/scripts/1.0/set_model.js +0 -81
  149. package/providers/_builtin/ide/cursor/scripts/1.0/switch_session.js +0 -28
  150. package/providers/_builtin/ide/kiro/provider.json +0 -68
  151. package/providers/_builtin/ide/kiro/scripts/1.0/focus_editor.js +0 -20
  152. package/providers/_builtin/ide/kiro/scripts/1.0/open_panel.js +0 -47
  153. package/providers/_builtin/ide/kiro/scripts/1.0/resolve_action.js +0 -54
  154. package/providers/_builtin/ide/kiro/scripts/1.0/send_message.js +0 -29
  155. package/providers/_builtin/ide/kiro/scripts/1.0/webview_dump_html.js +0 -1
  156. package/providers/_builtin/ide/kiro/scripts/1.0/webview_list_models.js +0 -42
  157. package/providers/_builtin/ide/kiro/scripts/1.0/webview_list_modes.js +0 -22
  158. package/providers/_builtin/ide/kiro/scripts/1.0/webview_list_sessions.js +0 -21
  159. package/providers/_builtin/ide/kiro/scripts/1.0/webview_new_session.js +0 -34
  160. package/providers/_builtin/ide/kiro/scripts/1.0/webview_read_chat.js +0 -161
  161. package/providers/_builtin/ide/kiro/scripts/1.0/webview_resolve_action.js +0 -62
  162. package/providers/_builtin/ide/kiro/scripts/1.0/webview_send_message.js +0 -94
  163. package/providers/_builtin/ide/kiro/scripts/1.0/webview_set_mode.js +0 -34
  164. package/providers/_builtin/ide/kiro/scripts/1.0/webview_set_model.js +0 -47
  165. package/providers/_builtin/ide/kiro/scripts/1.0/webview_switch_session.js +0 -26
  166. package/providers/_builtin/ide/pearai/.tmp/after_rich.json +0 -157
  167. package/providers/_builtin/ide/pearai/.tmp/after_rich_raw.json +0 -161
  168. package/providers/_builtin/ide/pearai/.tmp/after_switch.json +0 -592
  169. package/providers/_builtin/ide/pearai/.tmp/after_switch_raw.json +0 -596
  170. package/providers/_builtin/ide/pearai/.tmp/home_dump_raw.json +0 -176
  171. package/providers/_builtin/ide/pearai/.tmp/items_raw.json +0 -778
  172. package/providers/_builtin/ide/pearai/.tmp/webview_dump.json +0 -157
  173. package/providers/_builtin/ide/pearai/.tmp/webview_dump_raw.json +0 -161
  174. package/providers/_builtin/ide/pearai/provider.json +0 -71
  175. package/providers/_builtin/ide/pearai/scripts/1.0/focus_editor.js +0 -16
  176. package/providers/_builtin/ide/pearai/scripts/1.0/list_models.js +0 -45
  177. package/providers/_builtin/ide/pearai/scripts/1.0/list_modes.js +0 -44
  178. package/providers/_builtin/ide/pearai/scripts/1.0/list_sessions.js +0 -93
  179. package/providers/_builtin/ide/pearai/scripts/1.0/new_session.js +0 -38
  180. package/providers/_builtin/ide/pearai/scripts/1.0/open_panel.js +0 -23
  181. package/providers/_builtin/ide/pearai/scripts/1.0/read_chat.js +0 -169
  182. package/providers/_builtin/ide/pearai/scripts/1.0/resolve_action.js +0 -60
  183. package/providers/_builtin/ide/pearai/scripts/1.0/scripts.js +0 -111
  184. package/providers/_builtin/ide/pearai/scripts/1.0/send_message.js +0 -104
  185. package/providers/_builtin/ide/pearai/scripts/1.0/set_mode.js +0 -51
  186. package/providers/_builtin/ide/pearai/scripts/1.0/set_model.js +0 -54
  187. package/providers/_builtin/ide/pearai/scripts/1.0/switch_session.js +0 -81
  188. package/providers/_builtin/ide/trae/provider.json +0 -72
  189. package/providers/_builtin/ide/trae/scripts/1.0/focus_editor.js +0 -20
  190. package/providers/_builtin/ide/trae/scripts/1.0/list_chats.js +0 -24
  191. package/providers/_builtin/ide/trae/scripts/1.0/list_models.js +0 -39
  192. package/providers/_builtin/ide/trae/scripts/1.0/list_modes.js +0 -39
  193. package/providers/_builtin/ide/trae/scripts/1.0/new_session.js +0 -30
  194. package/providers/_builtin/ide/trae/scripts/1.0/open_panel.js +0 -44
  195. package/providers/_builtin/ide/trae/scripts/1.0/read_chat.js +0 -113
  196. package/providers/_builtin/ide/trae/scripts/1.0/resolve_action.js +0 -54
  197. package/providers/_builtin/ide/trae/scripts/1.0/scripts.js +0 -82
  198. package/providers/_builtin/ide/trae/scripts/1.0/send_message.js +0 -69
  199. package/providers/_builtin/ide/trae/scripts/1.0/set_mode.js +0 -15
  200. package/providers/_builtin/ide/trae/scripts/1.0/set_model.js +0 -15
  201. package/providers/_builtin/ide/trae/scripts/1.0/switch_session.js +0 -23
  202. package/providers/_builtin/ide/vscode/provider.json +0 -74
  203. package/providers/_builtin/ide/vscode/scripts/1.0/focus_editor.js +0 -1
  204. package/providers/_builtin/ide/vscode/scripts/1.0/list_models.js +0 -1
  205. package/providers/_builtin/ide/vscode/scripts/1.0/list_sessions.js +0 -1
  206. package/providers/_builtin/ide/vscode/scripts/1.0/new_session.js +0 -1
  207. package/providers/_builtin/ide/vscode/scripts/1.0/open_panel.js +0 -1
  208. package/providers/_builtin/ide/vscode/scripts/1.0/read_chat.js +0 -1
  209. package/providers/_builtin/ide/vscode/scripts/1.0/resolve_action.js +0 -1
  210. package/providers/_builtin/ide/vscode/scripts/1.0/scripts.js +0 -25
  211. package/providers/_builtin/ide/vscode/scripts/1.0/send_message.js +0 -1
  212. package/providers/_builtin/ide/vscode/scripts/1.0/set_model.js +0 -1
  213. package/providers/_builtin/ide/vscode/scripts/1.0/switch_session.js +0 -1
  214. package/providers/_builtin/ide/vscode-insiders/provider.json +0 -68
  215. package/providers/_builtin/ide/vscodium/provider.json +0 -69
  216. package/providers/_builtin/ide/windsurf/provider.json +0 -57
  217. package/providers/_builtin/ide/windsurf/scripts/1.0/focus_editor.js +0 -36
  218. package/providers/_builtin/ide/windsurf/scripts/1.0/list_chats.js +0 -23
  219. package/providers/_builtin/ide/windsurf/scripts/1.0/list_models.js +0 -56
  220. package/providers/_builtin/ide/windsurf/scripts/1.0/list_modes.js +0 -63
  221. package/providers/_builtin/ide/windsurf/scripts/1.0/list_sessions.js +0 -79
  222. package/providers/_builtin/ide/windsurf/scripts/1.0/new_session.js +0 -58
  223. package/providers/_builtin/ide/windsurf/scripts/1.0/open_panel.js +0 -67
  224. package/providers/_builtin/ide/windsurf/scripts/1.0/read_chat.js +0 -253
  225. package/providers/_builtin/ide/windsurf/scripts/1.0/resolve_action.js +0 -82
  226. package/providers/_builtin/ide/windsurf/scripts/1.0/scripts.js +0 -82
  227. package/providers/_builtin/ide/windsurf/scripts/1.0/send_message.js +0 -20
  228. package/providers/_builtin/ide/windsurf/scripts/1.0/set_mode.js +0 -43
  229. package/providers/_builtin/ide/windsurf/scripts/1.0/set_model.js +0 -49
  230. package/providers/_builtin/ide/windsurf/scripts/1.0/switch_session.js +0 -82
  231. package/providers/_builtin/ide/windsurf/scripts/1.0.bak/focus_editor.js +0 -30
  232. package/providers/_builtin/ide/windsurf/scripts/1.0.bak/list_chats.js +0 -117
  233. package/providers/_builtin/ide/windsurf/scripts/1.0.bak/list_models.js +0 -39
  234. package/providers/_builtin/ide/windsurf/scripts/1.0.bak/list_modes.js +0 -39
  235. package/providers/_builtin/ide/windsurf/scripts/1.0.bak/new_session.js +0 -69
  236. package/providers/_builtin/ide/windsurf/scripts/1.0.bak/open_panel.js +0 -58
  237. package/providers/_builtin/ide/windsurf/scripts/1.0.bak/read_chat.js +0 -315
  238. package/providers/_builtin/ide/windsurf/scripts/1.0.bak/resolve_action.js +0 -68
  239. package/providers/_builtin/ide/windsurf/scripts/1.0.bak/scripts.js +0 -82
  240. package/providers/_builtin/ide/windsurf/scripts/1.0.bak/send_message.js +0 -87
  241. package/providers/_builtin/ide/windsurf/scripts/1.0.bak/set_mode.js +0 -15
  242. package/providers/_builtin/ide/windsurf/scripts/1.0.bak/set_model.js +0 -15
  243. package/providers/_builtin/ide/windsurf/scripts/1.0.bak/switch_session.js +0 -58
  244. package/providers/_builtin/registry.json +0 -376
  245. package/providers/_builtin/validate.js +0 -156
package/dist/index.d.ts CHANGED
@@ -948,7 +948,7 @@ declare function detectAllVersions(loader: ProviderLoader, archive?: VersionArch
948
948
  * ProviderLoader — Provider discovery + OS/version override resolution
949
949
  *
950
950
  * Role:
951
- * 1. Load provider.js from _builtin/ directory
951
+ * 1. Load providers from upstream auto-download (~/.adhdev/providers/.upstream/)
952
952
  * 2. Load user custom from ~/.adhdev/providers/ (overrides)
953
953
  * 3. Apply OS/version overrides (process.platform + detected IDE version)
954
954
  * 4. Hot-reload support (fs.watch)
package/dist/index.js CHANGED
@@ -1391,7 +1391,7 @@ ${data.message || ""}`.trim();
1391
1391
  if (this.startupParseGate) {
1392
1392
  const deadline = Date.now() + 1e4;
1393
1393
  while (this.startupParseGate && Date.now() < deadline) {
1394
- await new Promise((resolve8) => setTimeout(resolve8, 50));
1394
+ await new Promise((resolve7) => setTimeout(resolve7, 50));
1395
1395
  }
1396
1396
  }
1397
1397
  if (!this.ready) throw new Error(`${this.cliName} not ready (status: ${this.currentStatus})`);
@@ -1850,15 +1850,15 @@ async function detectIDEs() {
1850
1850
  var import_child_process2 = require("child_process");
1851
1851
  var os2 = __toESM(require("os"));
1852
1852
  function execAsync(cmd, timeoutMs = 5e3) {
1853
- return new Promise((resolve8) => {
1853
+ return new Promise((resolve7) => {
1854
1854
  const child = (0, import_child_process2.exec)(cmd, { encoding: "utf-8", timeout: timeoutMs }, (err, stdout) => {
1855
1855
  if (err || !stdout?.trim()) {
1856
- resolve8(null);
1856
+ resolve7(null);
1857
1857
  } else {
1858
- resolve8(stdout.trim());
1858
+ resolve7(stdout.trim());
1859
1859
  }
1860
1860
  });
1861
- child.on("error", () => resolve8(null));
1861
+ child.on("error", () => resolve7(null));
1862
1862
  });
1863
1863
  }
1864
1864
  async function detectCLIs(providerLoader) {
@@ -2013,7 +2013,7 @@ var DaemonCdpManager = class {
2013
2013
  * Returns multiple entries if multiple IDE windows are open on same port
2014
2014
  */
2015
2015
  static listAllTargets(port) {
2016
- return new Promise((resolve8) => {
2016
+ return new Promise((resolve7) => {
2017
2017
  const req = http.get(`http://127.0.0.1:${port}/json`, (res) => {
2018
2018
  let data = "";
2019
2019
  res.on("data", (chunk) => data += chunk.toString());
@@ -2029,16 +2029,16 @@ var DaemonCdpManager = class {
2029
2029
  (t) => !isNonMain(t.title || "") && t.url?.includes("workbench.html") && !t.url?.includes("agent")
2030
2030
  );
2031
2031
  const fallbackPages = pages.filter((t) => !isNonMain(t.title || ""));
2032
- resolve8(mainPages.length > 0 ? mainPages : fallbackPages);
2032
+ resolve7(mainPages.length > 0 ? mainPages : fallbackPages);
2033
2033
  } catch {
2034
- resolve8([]);
2034
+ resolve7([]);
2035
2035
  }
2036
2036
  });
2037
2037
  });
2038
- req.on("error", () => resolve8([]));
2038
+ req.on("error", () => resolve7([]));
2039
2039
  req.setTimeout(2e3, () => {
2040
2040
  req.destroy();
2041
- resolve8([]);
2041
+ resolve7([]);
2042
2042
  });
2043
2043
  });
2044
2044
  }
@@ -2078,7 +2078,7 @@ var DaemonCdpManager = class {
2078
2078
  }
2079
2079
  }
2080
2080
  findTargetOnPort(port) {
2081
- return new Promise((resolve8) => {
2081
+ return new Promise((resolve7) => {
2082
2082
  const req = http.get(`http://127.0.0.1:${port}/json`, (res) => {
2083
2083
  let data = "";
2084
2084
  res.on("data", (chunk) => data += chunk.toString());
@@ -2089,7 +2089,7 @@ var DaemonCdpManager = class {
2089
2089
  (t) => (t.type === "page" || t.type === "browser" || t.type === "Page") && t.webSocketDebuggerUrl
2090
2090
  );
2091
2091
  if (pages.length === 0) {
2092
- resolve8(targets.find((t) => t.webSocketDebuggerUrl) || null);
2092
+ resolve7(targets.find((t) => t.webSocketDebuggerUrl) || null);
2093
2093
  return;
2094
2094
  }
2095
2095
  const mainPages = pages.filter((t) => !this.isNonMainTitle(t.title || ""));
@@ -2099,24 +2099,24 @@ var DaemonCdpManager = class {
2099
2099
  const specific = list.find((t) => t.id === this._targetId);
2100
2100
  if (specific) {
2101
2101
  this._pageTitle = specific.title || "";
2102
- resolve8(specific);
2102
+ resolve7(specific);
2103
2103
  } else {
2104
2104
  this.log(`[CDP] Target ${this._targetId} not found in page list`);
2105
- resolve8(null);
2105
+ resolve7(null);
2106
2106
  }
2107
2107
  return;
2108
2108
  }
2109
2109
  this._pageTitle = list[0]?.title || "";
2110
- resolve8(list[0]);
2110
+ resolve7(list[0]);
2111
2111
  } catch {
2112
- resolve8(null);
2112
+ resolve7(null);
2113
2113
  }
2114
2114
  });
2115
2115
  });
2116
- req.on("error", () => resolve8(null));
2116
+ req.on("error", () => resolve7(null));
2117
2117
  req.setTimeout(2e3, () => {
2118
2118
  req.destroy();
2119
- resolve8(null);
2119
+ resolve7(null);
2120
2120
  });
2121
2121
  });
2122
2122
  }
@@ -2127,7 +2127,7 @@ var DaemonCdpManager = class {
2127
2127
  this.extensionProviders = providers;
2128
2128
  }
2129
2129
  connectToTarget(wsUrl) {
2130
- return new Promise((resolve8) => {
2130
+ return new Promise((resolve7) => {
2131
2131
  this.ws = new import_ws.default(wsUrl);
2132
2132
  this.ws.on("open", async () => {
2133
2133
  this._connected = true;
@@ -2137,17 +2137,17 @@ var DaemonCdpManager = class {
2137
2137
  }
2138
2138
  this.connectBrowserWs().catch(() => {
2139
2139
  });
2140
- resolve8(true);
2140
+ resolve7(true);
2141
2141
  });
2142
2142
  this.ws.on("message", (data) => {
2143
2143
  try {
2144
2144
  const msg = JSON.parse(data.toString());
2145
2145
  if (msg.id && this.pending.has(msg.id)) {
2146
- const { resolve: resolve9, reject } = this.pending.get(msg.id);
2146
+ const { resolve: resolve8, reject } = this.pending.get(msg.id);
2147
2147
  this.pending.delete(msg.id);
2148
2148
  this.failureCount = 0;
2149
2149
  if (msg.error) reject(new Error(msg.error.message));
2150
- else resolve9(msg.result);
2150
+ else resolve8(msg.result);
2151
2151
  } else if (msg.method === "Runtime.executionContextCreated") {
2152
2152
  this.contexts.add(msg.params.context.id);
2153
2153
  } else if (msg.method === "Runtime.executionContextDestroyed") {
@@ -2170,7 +2170,7 @@ var DaemonCdpManager = class {
2170
2170
  this.ws.on("error", (err) => {
2171
2171
  this.log(`[CDP] WebSocket error: ${err.message}`);
2172
2172
  this._connected = false;
2173
- resolve8(false);
2173
+ resolve7(false);
2174
2174
  });
2175
2175
  });
2176
2176
  }
@@ -2184,7 +2184,7 @@ var DaemonCdpManager = class {
2184
2184
  return;
2185
2185
  }
2186
2186
  this.log(`[CDP] Connecting browser WS for target discovery...`);
2187
- await new Promise((resolve8, reject) => {
2187
+ await new Promise((resolve7, reject) => {
2188
2188
  this.browserWs = new import_ws.default(browserWsUrl);
2189
2189
  this.browserWs.on("open", async () => {
2190
2190
  this._browserConnected = true;
@@ -2194,16 +2194,16 @@ var DaemonCdpManager = class {
2194
2194
  } catch (e) {
2195
2195
  this.log(`[CDP] setDiscoverTargets failed: ${e.message}`);
2196
2196
  }
2197
- resolve8();
2197
+ resolve7();
2198
2198
  });
2199
2199
  this.browserWs.on("message", (data) => {
2200
2200
  try {
2201
2201
  const msg = JSON.parse(data.toString());
2202
2202
  if (msg.id && this.browserPending.has(msg.id)) {
2203
- const { resolve: resolve9, reject: reject2 } = this.browserPending.get(msg.id);
2203
+ const { resolve: resolve8, reject: reject2 } = this.browserPending.get(msg.id);
2204
2204
  this.browserPending.delete(msg.id);
2205
2205
  if (msg.error) reject2(new Error(msg.error.message));
2206
- else resolve9(msg.result);
2206
+ else resolve8(msg.result);
2207
2207
  }
2208
2208
  } catch {
2209
2209
  }
@@ -2223,31 +2223,31 @@ var DaemonCdpManager = class {
2223
2223
  }
2224
2224
  }
2225
2225
  getBrowserWsUrl() {
2226
- return new Promise((resolve8) => {
2226
+ return new Promise((resolve7) => {
2227
2227
  const req = http.get(`http://127.0.0.1:${this.port}/json/version`, (res) => {
2228
2228
  let data = "";
2229
2229
  res.on("data", (chunk) => data += chunk.toString());
2230
2230
  res.on("end", () => {
2231
2231
  try {
2232
2232
  const info = JSON.parse(data);
2233
- resolve8(info.webSocketDebuggerUrl || null);
2233
+ resolve7(info.webSocketDebuggerUrl || null);
2234
2234
  } catch {
2235
- resolve8(null);
2235
+ resolve7(null);
2236
2236
  }
2237
2237
  });
2238
2238
  });
2239
- req.on("error", () => resolve8(null));
2239
+ req.on("error", () => resolve7(null));
2240
2240
  req.setTimeout(3e3, () => {
2241
2241
  req.destroy();
2242
- resolve8(null);
2242
+ resolve7(null);
2243
2243
  });
2244
2244
  });
2245
2245
  }
2246
2246
  sendBrowser(method, params = {}, timeoutMs = 15e3) {
2247
- return new Promise((resolve8, reject) => {
2247
+ return new Promise((resolve7, reject) => {
2248
2248
  if (!this.browserWs || !this._browserConnected) return reject(new Error("Browser WS not connected"));
2249
2249
  const id = this.browserMsgId++;
2250
- this.browserPending.set(id, { resolve: resolve8, reject });
2250
+ this.browserPending.set(id, { resolve: resolve7, reject });
2251
2251
  this.browserWs.send(JSON.stringify({ id, method, params }));
2252
2252
  setTimeout(() => {
2253
2253
  if (this.browserPending.has(id)) {
@@ -2287,11 +2287,11 @@ var DaemonCdpManager = class {
2287
2287
  }
2288
2288
  // ─── CDP Protocol ────────────────────────────────────────
2289
2289
  sendInternal(method, params = {}, timeoutMs = 15e3) {
2290
- return new Promise((resolve8, reject) => {
2290
+ return new Promise((resolve7, reject) => {
2291
2291
  if (!this.ws || !this._connected) return reject(new Error("CDP not connected"));
2292
2292
  if (this.ws.readyState !== import_ws.default.OPEN) return reject(new Error("WebSocket not open"));
2293
2293
  const id = this.msgId++;
2294
- this.pending.set(id, { resolve: resolve8, reject });
2294
+ this.pending.set(id, { resolve: resolve7, reject });
2295
2295
  this.ws.send(JSON.stringify({ id, method, params }));
2296
2296
  setTimeout(() => {
2297
2297
  if (this.pending.has(id)) {
@@ -2540,7 +2540,7 @@ var DaemonCdpManager = class {
2540
2540
  const browserWs = this.browserWs;
2541
2541
  let msgId = this.browserMsgId;
2542
2542
  const sendWs = (method, params = {}, sessionId) => {
2543
- return new Promise((resolve8, reject) => {
2543
+ return new Promise((resolve7, reject) => {
2544
2544
  const mid = msgId++;
2545
2545
  this.browserMsgId = msgId;
2546
2546
  const handler = (raw) => {
@@ -2549,7 +2549,7 @@ var DaemonCdpManager = class {
2549
2549
  if (msg.id === mid) {
2550
2550
  browserWs.removeListener("message", handler);
2551
2551
  if (msg.error) reject(new Error(msg.error.message || JSON.stringify(msg.error)));
2552
- else resolve8(msg.result);
2552
+ else resolve7(msg.result);
2553
2553
  }
2554
2554
  } catch {
2555
2555
  }
@@ -2731,14 +2731,14 @@ var DaemonCdpManager = class {
2731
2731
  if (!ws || ws.readyState !== import_ws.default.OPEN) {
2732
2732
  throw new Error("CDP not connected");
2733
2733
  }
2734
- return new Promise((resolve8, reject) => {
2734
+ return new Promise((resolve7, reject) => {
2735
2735
  const id = getNextId();
2736
2736
  pendingMap.set(id, {
2737
2737
  resolve: (result) => {
2738
2738
  if (result?.result?.subtype === "error") {
2739
2739
  reject(new Error(result.result.description));
2740
2740
  } else {
2741
- resolve8(result?.result?.value);
2741
+ resolve7(result?.result?.value);
2742
2742
  }
2743
2743
  },
2744
2744
  reject
@@ -2770,10 +2770,10 @@ var DaemonCdpManager = class {
2770
2770
  throw new Error("CDP not connected");
2771
2771
  }
2772
2772
  const sendViaSession = (method, params = {}) => {
2773
- return new Promise((resolve8, reject) => {
2773
+ return new Promise((resolve7, reject) => {
2774
2774
  const pendingMap = this._browserConnected ? this.browserPending : this.pending;
2775
2775
  const id = this._browserConnected ? this.browserMsgId++ : this.msgId++;
2776
- pendingMap.set(id, { resolve: resolve8, reject });
2776
+ pendingMap.set(id, { resolve: resolve7, reject });
2777
2777
  ws.send(JSON.stringify({ id, sessionId, method, params }));
2778
2778
  setTimeout(() => {
2779
2779
  if (pendingMap.has(id)) {
@@ -6174,7 +6174,7 @@ var DaemonCommandHandler = class {
6174
6174
  try {
6175
6175
  const http3 = await import("http");
6176
6176
  const postData = JSON.stringify(body);
6177
- const result = await new Promise((resolve8, reject) => {
6177
+ const result = await new Promise((resolve7, reject) => {
6178
6178
  const req = http3.request({
6179
6179
  hostname: "127.0.0.1",
6180
6180
  port: 19280,
@@ -6186,9 +6186,9 @@ var DaemonCommandHandler = class {
6186
6186
  res.on("data", (chunk) => data += chunk);
6187
6187
  res.on("end", () => {
6188
6188
  try {
6189
- resolve8(JSON.parse(data));
6189
+ resolve7(JSON.parse(data));
6190
6190
  } catch {
6191
- resolve8({ raw: data });
6191
+ resolve7({ raw: data });
6192
6192
  }
6193
6193
  });
6194
6194
  });
@@ -6206,15 +6206,15 @@ var DaemonCommandHandler = class {
6206
6206
  if (!providerType) return { success: false, error: "providerType required" };
6207
6207
  try {
6208
6208
  const http3 = await import("http");
6209
- const result = await new Promise((resolve8, reject) => {
6209
+ const result = await new Promise((resolve7, reject) => {
6210
6210
  http3.get(`http://127.0.0.1:19280/api/providers/${providerType}/${endpoint}`, (res) => {
6211
6211
  let data = "";
6212
6212
  res.on("data", (chunk) => data += chunk);
6213
6213
  res.on("end", () => {
6214
6214
  try {
6215
- resolve8(JSON.parse(data));
6215
+ resolve7(JSON.parse(data));
6216
6216
  } catch {
6217
- resolve8({ raw: data });
6217
+ resolve7({ raw: data });
6218
6218
  }
6219
6219
  });
6220
6220
  }).on("error", reject);
@@ -6228,7 +6228,7 @@ var DaemonCommandHandler = class {
6228
6228
  try {
6229
6229
  const http3 = await import("http");
6230
6230
  const postData = JSON.stringify(args || {});
6231
- const result = await new Promise((resolve8, reject) => {
6231
+ const result = await new Promise((resolve7, reject) => {
6232
6232
  const req = http3.request({
6233
6233
  hostname: "127.0.0.1",
6234
6234
  port: 19280,
@@ -6240,9 +6240,9 @@ var DaemonCommandHandler = class {
6240
6240
  res.on("data", (chunk) => data += chunk);
6241
6241
  res.on("end", () => {
6242
6242
  try {
6243
- resolve8(JSON.parse(data));
6243
+ resolve7(JSON.parse(data));
6244
6244
  } catch {
6245
- resolve8({ raw: data });
6245
+ resolve7({ raw: data });
6246
6246
  }
6247
6247
  });
6248
6248
  });
@@ -6288,9 +6288,7 @@ var ProviderLoader = class _ProviderLoader {
6288
6288
  if (options?.builtinDir) {
6289
6289
  this.builtinDirs = Array.isArray(options.builtinDir) ? options.builtinDir : [options.builtinDir];
6290
6290
  } else {
6291
- const bundledDir = path6.resolve(__dirname, "../providers/_builtin");
6292
- const devDir = path6.resolve(__dirname, "../../providers/_builtin");
6293
- this.builtinDirs = [fs5.existsSync(devDir) ? devDir : bundledDir];
6291
+ this.builtinDirs = [];
6294
6292
  }
6295
6293
  this.userDir = options?.userDir || path6.join(os7.homedir(), ".adhdev", "providers");
6296
6294
  this.upstreamDir = path6.join(this.userDir, ".upstream");
@@ -6812,7 +6810,7 @@ var ProviderLoader = class _ProviderLoader {
6812
6810
  return { updated: false };
6813
6811
  }
6814
6812
  try {
6815
- const etag = await new Promise((resolve8, reject) => {
6813
+ const etag = await new Promise((resolve7, reject) => {
6816
6814
  const options = {
6817
6815
  method: "HEAD",
6818
6816
  hostname: "github.com",
@@ -6830,7 +6828,7 @@ var ProviderLoader = class _ProviderLoader {
6830
6828
  headers: { "User-Agent": "adhdev-launcher" },
6831
6829
  timeout: 1e4
6832
6830
  }, (res2) => {
6833
- resolve8(res2.headers.etag || res2.headers["last-modified"] || "");
6831
+ resolve7(res2.headers.etag || res2.headers["last-modified"] || "");
6834
6832
  });
6835
6833
  req2.on("error", reject);
6836
6834
  req2.on("timeout", () => {
@@ -6839,7 +6837,7 @@ var ProviderLoader = class _ProviderLoader {
6839
6837
  });
6840
6838
  req2.end();
6841
6839
  } else {
6842
- resolve8(res.headers.etag || res.headers["last-modified"] || "");
6840
+ resolve7(res.headers.etag || res.headers["last-modified"] || "");
6843
6841
  }
6844
6842
  });
6845
6843
  req.on("error", reject);
@@ -6903,7 +6901,7 @@ var ProviderLoader = class _ProviderLoader {
6903
6901
  downloadFile(url, destPath) {
6904
6902
  const https = require("https");
6905
6903
  const http3 = require("http");
6906
- return new Promise((resolve8, reject) => {
6904
+ return new Promise((resolve7, reject) => {
6907
6905
  const doRequest = (reqUrl, redirectCount = 0) => {
6908
6906
  if (redirectCount > 5) {
6909
6907
  reject(new Error("Too many redirects"));
@@ -6923,7 +6921,7 @@ var ProviderLoader = class _ProviderLoader {
6923
6921
  res.pipe(ws);
6924
6922
  ws.on("finish", () => {
6925
6923
  ws.close();
6926
- resolve8();
6924
+ resolve7();
6927
6925
  });
6928
6926
  ws.on("error", reject);
6929
6927
  });
@@ -7288,17 +7286,17 @@ async function findFreePort(ports) {
7288
7286
  throw new Error("No free port found");
7289
7287
  }
7290
7288
  function checkPortFree(port) {
7291
- return new Promise((resolve8) => {
7289
+ return new Promise((resolve7) => {
7292
7290
  const server = net.createServer();
7293
7291
  server.unref();
7294
- server.on("error", () => resolve8(false));
7292
+ server.on("error", () => resolve7(false));
7295
7293
  server.listen(port, "127.0.0.1", () => {
7296
- server.close(() => resolve8(true));
7294
+ server.close(() => resolve7(true));
7297
7295
  });
7298
7296
  });
7299
7297
  }
7300
7298
  async function isCdpActive(port) {
7301
- return new Promise((resolve8) => {
7299
+ return new Promise((resolve7) => {
7302
7300
  const req = require("http").get(`http://127.0.0.1:${port}/json/version`, {
7303
7301
  timeout: 2e3
7304
7302
  }, (res) => {
@@ -7307,16 +7305,16 @@ async function isCdpActive(port) {
7307
7305
  res.on("end", () => {
7308
7306
  try {
7309
7307
  const info = JSON.parse(data);
7310
- resolve8(!!info["WebKit-Version"] || !!info["Browser"]);
7308
+ resolve7(!!info["WebKit-Version"] || !!info["Browser"]);
7311
7309
  } catch {
7312
- resolve8(false);
7310
+ resolve7(false);
7313
7311
  }
7314
7312
  });
7315
7313
  });
7316
- req.on("error", () => resolve8(false));
7314
+ req.on("error", () => resolve7(false));
7317
7315
  req.on("timeout", () => {
7318
7316
  req.destroy();
7319
- resolve8(false);
7317
+ resolve7(false);
7320
7318
  });
7321
7319
  });
7322
7320
  }
@@ -8932,13 +8930,13 @@ var AcpProviderInstance = class {
8932
8930
  }
8933
8931
  this.currentStatus = "waiting_approval";
8934
8932
  this.detectStatusTransition();
8935
- const approved = await new Promise((resolve8) => {
8936
- this.permissionResolvers.push(resolve8);
8933
+ const approved = await new Promise((resolve7) => {
8934
+ this.permissionResolvers.push(resolve7);
8937
8935
  setTimeout(() => {
8938
- const idx = this.permissionResolvers.indexOf(resolve8);
8936
+ const idx = this.permissionResolvers.indexOf(resolve7);
8939
8937
  if (idx >= 0) {
8940
8938
  this.permissionResolvers.splice(idx, 1);
8941
- resolve8(false);
8939
+ resolve7(false);
8942
8940
  }
8943
8941
  }, 3e5);
8944
8942
  });
@@ -11025,15 +11023,15 @@ var DevServer = class _DevServer {
11025
11023
  this.json(res, 500, { error: e.message });
11026
11024
  }
11027
11025
  });
11028
- return new Promise((resolve8, reject) => {
11026
+ return new Promise((resolve7, reject) => {
11029
11027
  this.server.listen(port, "127.0.0.1", () => {
11030
11028
  this.log(`Dev server listening on http://127.0.0.1:${port}`);
11031
- resolve8();
11029
+ resolve7();
11032
11030
  });
11033
11031
  this.server.on("error", (e) => {
11034
11032
  if (e.code === "EADDRINUSE") {
11035
11033
  this.log(`Port ${port} in use, skipping dev server`);
11036
- resolve8();
11034
+ resolve7();
11037
11035
  } else {
11038
11036
  reject(e);
11039
11037
  }
@@ -11116,20 +11114,20 @@ var DevServer = class _DevServer {
11116
11114
  child.stderr?.on("data", (d) => {
11117
11115
  stderr += d.toString().slice(0, 2e3);
11118
11116
  });
11119
- await new Promise((resolve8) => {
11117
+ await new Promise((resolve7) => {
11120
11118
  const timer = setTimeout(() => {
11121
11119
  child.kill();
11122
- resolve8();
11120
+ resolve7();
11123
11121
  }, 3e3);
11124
11122
  child.on("exit", () => {
11125
11123
  clearTimeout(timer);
11126
- resolve8();
11124
+ resolve7();
11127
11125
  });
11128
11126
  child.stdout?.once("data", () => {
11129
11127
  setTimeout(() => {
11130
11128
  child.kill();
11131
11129
  clearTimeout(timer);
11132
- resolve8();
11130
+ resolve7();
11133
11131
  }, 500);
11134
11132
  });
11135
11133
  });
@@ -11873,14 +11871,14 @@ var DevServer = class _DevServer {
11873
11871
  child.stderr?.on("data", (d) => {
11874
11872
  stderr += d.toString();
11875
11873
  });
11876
- await new Promise((resolve8) => {
11874
+ await new Promise((resolve7) => {
11877
11875
  const timer = setTimeout(() => {
11878
11876
  child.kill();
11879
- resolve8();
11877
+ resolve7();
11880
11878
  }, timeout);
11881
11879
  child.on("exit", () => {
11882
11880
  clearTimeout(timer);
11883
- resolve8();
11881
+ resolve7();
11884
11882
  });
11885
11883
  });
11886
11884
  const elapsed = Date.now() - start;
@@ -13582,14 +13580,14 @@ data: ${JSON.stringify(msg.data)}
13582
13580
  res.end(JSON.stringify(data, null, 2));
13583
13581
  }
13584
13582
  async readBody(req) {
13585
- return new Promise((resolve8) => {
13583
+ return new Promise((resolve7) => {
13586
13584
  let body = "";
13587
13585
  req.on("data", (chunk) => body += chunk);
13588
13586
  req.on("end", () => {
13589
13587
  try {
13590
- resolve8(JSON.parse(body));
13588
+ resolve7(JSON.parse(body));
13591
13589
  } catch {
13592
- resolve8({});
13590
+ resolve7({});
13593
13591
  }
13594
13592
  });
13595
13593
  });
@@ -13969,10 +13967,10 @@ async function installExtension(ide, extension) {
13969
13967
  const buffer = Buffer.from(await res.arrayBuffer());
13970
13968
  const fs10 = await import("fs");
13971
13969
  fs10.writeFileSync(vsixPath, buffer);
13972
- return new Promise((resolve8) => {
13970
+ return new Promise((resolve7) => {
13973
13971
  const cmd = `"${ide.cliCommand}" --install-extension "${vsixPath}" --force`;
13974
13972
  (0, import_child_process8.exec)(cmd, { timeout: 6e4 }, (error, _stdout, stderr) => {
13975
- resolve8({
13973
+ resolve7({
13976
13974
  extensionId: extension.id,
13977
13975
  marketplaceId: extension.marketplaceId,
13978
13976
  success: !error,
@@ -13985,11 +13983,11 @@ async function installExtension(ide, extension) {
13985
13983
  } catch (e) {
13986
13984
  }
13987
13985
  }
13988
- return new Promise((resolve8) => {
13986
+ return new Promise((resolve7) => {
13989
13987
  const cmd = `"${ide.cliCommand}" --install-extension ${extension.marketplaceId} --force`;
13990
13988
  (0, import_child_process8.exec)(cmd, { timeout: 6e4 }, (error, stdout, stderr) => {
13991
13989
  if (error) {
13992
- resolve8({
13990
+ resolve7({
13993
13991
  extensionId: extension.id,
13994
13992
  marketplaceId: extension.marketplaceId,
13995
13993
  success: false,
@@ -13997,7 +13995,7 @@ async function installExtension(ide, extension) {
13997
13995
  error: stderr || error.message
13998
13996
  });
13999
13997
  } else {
14000
- resolve8({
13998
+ resolve7({
14001
13999
  extensionId: extension.id,
14002
14000
  marketplaceId: extension.marketplaceId,
14003
14001
  success: true,