@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
@@ -1,109 +0,0 @@
1
- {
2
- "type": "gemini-cli",
3
- "name": "Gemini CLI",
4
- "category": "cli",
5
- "aliases": [
6
- "gemini"
7
- ],
8
- "icon": "♊",
9
- "displayName": "Gemini CLI",
10
- "settings": {
11
- "mode": {
12
- "type": "select",
13
- "default": "chat",
14
- "public": true,
15
- "label": "Display Mode",
16
- "description": "terminal: Native PTY view, chat: Parsed message view",
17
- "options": [
18
- "terminal",
19
- "chat"
20
- ]
21
- },
22
- "notifications": {
23
- "type": "boolean",
24
- "default": true,
25
- "public": true,
26
- "label": "Notifications",
27
- "description": "Display notifications on state changes"
28
- },
29
- "autoApprove": {
30
- "type": "boolean",
31
- "default": false,
32
- "public": true,
33
- "label": "Auto Approve",
34
- "description": "Automatically approve all tool calls without user confirmation"
35
- },
36
- "approvalAlert": {
37
- "type": "boolean",
38
- "default": true,
39
- "public": true,
40
- "label": "Approval Notifications",
41
- "description": "Show notification when approval is needed"
42
- },
43
- "longGeneratingAlert": {
44
- "type": "boolean",
45
- "default": true,
46
- "public": true,
47
- "label": "Long Generation Alert",
48
- "description": "Alert when generation takes too long"
49
- },
50
- "longGeneratingThresholdSec": {
51
- "type": "number",
52
- "default": 180,
53
- "public": true,
54
- "label": "Long Generation Threshold (sec)",
55
- "min": 30,
56
- "max": 600
57
- }
58
- },
59
- "binary": "gemini",
60
- "spawn": {
61
- "command": "gemini",
62
- "args": [
63
- "--yolo"
64
- ],
65
- "shell": true,
66
- "env": {}
67
- },
68
- "patterns": {
69
- "prompt": [
70
- { "source": "\\?\\s*for\\s*shortcuts", "flags": "i" },
71
- { "source": "^>\\s*$", "flags": "m" },
72
- { "source": "[›❯]\\s*$", "flags": "m" },
73
- { "source": "sandbox", "flags": "i" },
74
- { "source": "Type your message", "flags": "i" }
75
- ],
76
- "generating": [
77
- { "source": "[\\u2800-\\u28ff]", "flags": "" },
78
- { "source": "[▀▄▌▐░▒▓█]", "flags": "" },
79
- { "source": "Thinking", "flags": "i" },
80
- { "source": "Generating", "flags": "i" },
81
- { "source": "esc to (cancel|interrupt|stop)", "flags": "i" }
82
- ],
83
- "approval": [
84
- { "source": "Allow\\s*once", "flags": "i" },
85
- { "source": "Always\\s*allow", "flags": "i" },
86
- { "source": "\\(y/n\\)", "flags": "i" },
87
- { "source": "\\[Y/n\\]", "flags": "i" },
88
- { "source": "Run\\s*this\\s*command", "flags": "i" },
89
- { "source": "Deny", "flags": "i" },
90
- { "source": "auto-?approve", "flags": "i" }
91
- ],
92
- "ready": [
93
- { "source": "\\?\\s*for\\s*shortcuts", "flags": "i" },
94
- { "source": "sandbox", "flags": "i" }
95
- ]
96
- },
97
- "approvalKeys": {
98
- "0": "y",
99
- "1": "a",
100
- "2": "n"
101
- },
102
- "compatibility": [
103
- {
104
- "ideVersion": ">=0.35.0",
105
- "scriptDir": "scripts/1.0"
106
- }
107
- ],
108
- "defaultScriptDir": "scripts/1.0"
109
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * Gemini CLI — detect_status
3
- * Input: { tail: string }
4
- * Output: 'idle' | 'generating' | 'waiting_approval'
5
- */
6
- 'use strict';
7
- module.exports = function detectStatus(input) {
8
- const { tail } = input;
9
- if (!tail) return 'idle';
10
-
11
- // waiting_approval
12
- if (/Allow\s*once/i.test(tail) || /Always\s*allow/i.test(tail)) return 'waiting_approval';
13
- if (/\(y\/n\)/i.test(tail) || /\[Y\/n\]/i.test(tail)) return 'waiting_approval';
14
- if (/Run\s*this\s*command/i.test(tail)) return 'waiting_approval';
15
- if (/Deny/i.test(tail) && /Allow/i.test(tail)) return 'waiting_approval';
16
- if (/auto-?approve/i.test(tail) && /Deny/i.test(tail)) return 'waiting_approval';
17
-
18
- // generating
19
- if (/[\u2800-\u28ff]/.test(tail)) return 'generating';
20
- if (/[▀▄▌▐░▒▓█]/.test(tail)) return 'generating';
21
- if (/Thinking/i.test(tail)) return 'generating';
22
- if (/Generating/i.test(tail)) return 'generating';
23
- if (/esc to (cancel|interrupt|stop)/i.test(tail)) return 'generating';
24
-
25
- return 'idle';
26
- };
@@ -1,22 +0,0 @@
1
- /**
2
- * Gemini CLI — parse_approval
3
- * Input: { buffer: string, tail: string }
4
- * Output: { message: string, buttons: string[] } | null
5
- */
6
- 'use strict';
7
- module.exports = function parseApproval(input) {
8
- const { tail } = input;
9
- if (!tail) return null;
10
-
11
- const hasApproval =
12
- /Allow\s*once/i.test(tail) || /Always\s*allow/i.test(tail) ||
13
- /Run\s*this\s*command/i.test(tail) || /Deny/i.test(tail) ||
14
- /\(y\/n\)/i.test(tail) || /\[Y\/n\]/i.test(tail);
15
- if (!hasApproval) return null;
16
-
17
- const lines = tail.split('\n').map(l => l.trim()).filter(l => l && !/^[─═╭╮╰╯│]+$/.test(l));
18
- return {
19
- message: lines.slice(-5).join(' ').slice(0, 200) || 'Approval required',
20
- buttons: ['Allow (y)', 'Always allow (a)', 'Deny (n)'],
21
- };
22
- };
@@ -1,71 +0,0 @@
1
- /**
2
- * Gemini CLI — parse_output
3
- * Input: CliScriptInput
4
- * Output: ReadChatResult
5
- */
6
- 'use strict';
7
- const detectStatus = require('./detect_status.js');
8
- const parseApproval = require('./parse_approval.js');
9
-
10
- function splitTurns(buffer) {
11
- const messages = [];
12
- if (!buffer || buffer.length < 5) return messages;
13
- const lines = buffer.split('\n');
14
- let currentRole = null;
15
- let currentContent = [];
16
- let msgIndex = 0;
17
- let started = false;
18
-
19
- for (const line of lines) {
20
- const trimmed = line.trim();
21
- const userMatch = trimmed.match(/^[❯›>]\s+(.+)$/);
22
- if (userMatch && userMatch[1].length > 1) {
23
- started = true;
24
- if (currentRole && currentContent.length > 0) {
25
- const text = currentContent.join('\n').trim();
26
- if (text.length > 1) {
27
- messages.push({ id: `msg_${msgIndex}`, role: currentRole, content: text.slice(0, 6000), index: msgIndex, kind: 'standard' });
28
- msgIndex++;
29
- }
30
- }
31
- currentRole = 'user';
32
- currentContent = [userMatch[1]];
33
- continue;
34
- }
35
- if (!started) continue;
36
- if (currentRole === 'user' && trimmed && !userMatch) {
37
- const text = currentContent.join('\n').trim();
38
- if (text.length > 1) {
39
- messages.push({ id: `msg_${msgIndex}`, role: 'user', content: text, index: msgIndex, kind: 'standard' });
40
- msgIndex++;
41
- }
42
- currentRole = 'assistant';
43
- currentContent = [];
44
- }
45
- if (!trimmed) continue;
46
- if (/^[─═╭╮╰╯│┌┐└┘├┤┬┴┼]+$/.test(trimmed)) continue;
47
- if (/^[\u2800-\u28ff]+$/.test(trimmed)) continue;
48
- if (/^sandbox/i.test(trimmed)) continue;
49
- if (currentRole) currentContent.push(trimmed);
50
- }
51
- if (currentRole && currentContent.length > 0) {
52
- const text = currentContent.join('\n').trim();
53
- if (text.length > 1) {
54
- messages.push({ id: `msg_${msgIndex}`, role: currentRole, content: text.slice(0, 6000), index: msgIndex, kind: 'standard' });
55
- }
56
- }
57
- return messages.length > 50 ? messages.slice(-50) : messages;
58
- }
59
-
60
- module.exports = function parseOutput(input) {
61
- const { buffer, recentBuffer, partialResponse, screenText } = input;
62
- const transcript = screenText || buffer;
63
- const tail = recentBuffer || (transcript || '').slice(-500);
64
- const status = detectStatus({ tail });
65
- const activeModal = status === 'waiting_approval' ? parseApproval({ buffer: transcript, tail }) : null;
66
- const messages = splitTurns(transcript);
67
- if (status === 'generating' && partialResponse && partialResponse.trim().length > 2) {
68
- messages.push({ id: 'msg_partial', role: 'assistant', content: partialResponse.trim().slice(0, 6000), index: messages.length, kind: 'standard', meta: { streaming: true } });
69
- }
70
- return { id: 'cli_session', status, title: 'Gemini CLI', messages, activeModal };
71
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * Gemini CLI Scripts — v1.0
3
- */
4
- 'use strict';
5
- const fs = require('fs');
6
- const path = require('path');
7
- const DIR = __dirname;
8
- function loadModule(name) { try { return require(path.join(DIR, name)); } catch { return null; } }
9
-
10
- module.exports.parseOutput = (input) => { const m = loadModule('parse_output.js'); return m ? m(input) : null; };
11
- module.exports.detectStatus = (input) => { const m = loadModule('detect_status.js'); return m ? m(input) : null; };
12
- module.exports.parseApproval = (input) => { const m = loadModule('parse_approval.js'); return m ? m(input) : null; };
@@ -1,37 +0,0 @@
1
- {
2
- "type": "github-copilot-cli",
3
- "name": "GitHub Copilot CLI",
4
- "category": "cli",
5
- "aliases": [
6
- "gh-copilot"
7
- ],
8
- "icon": "🤖",
9
- "displayName": "GitHub Copilot CLI",
10
- "settings": {
11
- "mode": {
12
- "type": "select",
13
- "default": "chat",
14
- "public": true,
15
- "label": "Display Mode",
16
- "description": "terminal: Native PTY view, chat: Parsed message view",
17
- "options": [
18
- "terminal",
19
- "chat"
20
- ]
21
- }
22
- },
23
- "binary": "gh",
24
- "spawn": {
25
- "command": "gh",
26
- "args": ["copilot"],
27
- "shell": true,
28
- "env": {}
29
- },
30
- "compatibility": [
31
- {
32
- "ideVersion": ">=1.0.0",
33
- "scriptDir": "scripts/1.0"
34
- }
35
- ],
36
- "defaultScriptDir": "scripts/1.0"
37
- }
@@ -1,19 +0,0 @@
1
- /**
2
- * GitHub Copilot CLI — detect_status
3
- * `gh copilot` uses a conversational interface.
4
- */
5
- 'use strict';
6
- module.exports = function detectStatus(input) {
7
- const { tail } = input;
8
- if (!tail) return 'idle';
9
- // waiting_approval
10
- if (/execute\s*command/i.test(tail) && /\[Y\/n\]/i.test(tail)) return 'waiting_approval';
11
- if (/approve|confirm/i.test(tail) && /\(y\/n\)/i.test(tail)) return 'waiting_approval';
12
- if (/Run\s*this/i.test(tail) && /deny|cancel|no/i.test(tail)) return 'waiting_approval';
13
- // generating
14
- if (/[\u2800-\u28ff]/.test(tail)) return 'generating';
15
- if (/[⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏]/.test(tail)) return 'generating';
16
- if (/thinking|generating|processing/i.test(tail)) return 'generating';
17
- if (/\.{3,}$/.test(tail.trim())) return 'generating';
18
- return 'idle';
19
- };
@@ -1,9 +0,0 @@
1
- 'use strict';
2
- module.exports = function parseApproval(input) {
3
- const { tail } = input;
4
- if (!tail) return null;
5
- const hasApproval = /execute\s*command/i.test(tail) || /\(y\/n\)/i.test(tail) || /\[Y\/n\]/i.test(tail);
6
- if (!hasApproval) return null;
7
- const lines = tail.split('\n').map(l => l.trim()).filter(l => l && !/^[─═╭╮╰╯│]+$/.test(l));
8
- return { message: lines.slice(-5).join(' ').slice(0, 200) || 'Execute command?', buttons: ['Yes', 'No'] };
9
- };
@@ -1,48 +0,0 @@
1
- 'use strict';
2
- const detectStatus = require('./detect_status.js');
3
- const parseApproval = require('./parse_approval.js');
4
-
5
- function splitTurns(buffer) {
6
- const messages = [];
7
- if (!buffer || buffer.length < 5) return messages;
8
- const lines = buffer.split('\n');
9
- let currentRole = null, currentContent = [], msgIndex = 0, started = false;
10
- for (const line of lines) {
11
- const trimmed = line.trim();
12
- const userMatch = trimmed.match(/^[❯›>$?]\s+(.+)$/);
13
- if (userMatch && userMatch[1].length > 1) {
14
- started = true;
15
- if (currentRole && currentContent.length > 0) {
16
- const text = currentContent.join('\n').trim();
17
- if (text.length > 1) { messages.push({ id: `msg_${msgIndex}`, role: currentRole, content: text.slice(0, 6000), index: msgIndex, kind: 'standard' }); msgIndex++; }
18
- }
19
- currentRole = 'user'; currentContent = [userMatch[1]]; continue;
20
- }
21
- if (!started) continue;
22
- if (currentRole === 'user' && trimmed && !userMatch) {
23
- const text = currentContent.join('\n').trim();
24
- if (text.length > 1) { messages.push({ id: `msg_${msgIndex}`, role: 'user', content: text, index: msgIndex, kind: 'standard' }); msgIndex++; }
25
- currentRole = 'assistant'; currentContent = [];
26
- }
27
- if (!trimmed || /^[─═╭╮╰╯│]+$/.test(trimmed) || /^[\u2800-\u28ff]+$/.test(trimmed)) continue;
28
- if (currentRole) currentContent.push(trimmed);
29
- }
30
- if (currentRole && currentContent.length > 0) {
31
- const text = currentContent.join('\n').trim();
32
- if (text.length > 1) messages.push({ id: `msg_${msgIndex}`, role: currentRole, content: text.slice(0, 6000), index: msgIndex, kind: 'standard' });
33
- }
34
- return messages.length > 50 ? messages.slice(-50) : messages;
35
- }
36
-
37
- module.exports = function parseOutput(input) {
38
- const { buffer, recentBuffer, partialResponse, screenText } = input;
39
- const transcript = buffer || screenText;
40
- const tail = recentBuffer || (transcript || '').slice(-500);
41
- const status = detectStatus({ tail });
42
- const activeModal = status === 'waiting_approval' ? parseApproval({ buffer: transcript, tail }) : null;
43
- const messages = splitTurns(transcript);
44
- if (status === 'generating' && partialResponse && partialResponse.trim().length > 2) {
45
- messages.push({ id: 'msg_partial', role: 'assistant', content: partialResponse.trim().slice(0, 6000), index: messages.length, kind: 'standard', meta: { streaming: true } });
46
- }
47
- return { id: 'cli_session', status, title: 'GitHub Copilot CLI', messages, activeModal };
48
- };
@@ -1,7 +0,0 @@
1
- 'use strict';
2
- const path = require('path');
3
- const DIR = __dirname;
4
- function loadModule(name) { try { return require(path.join(DIR, name)); } catch { return null; } }
5
- module.exports.parseOutput = (input) => { const m = loadModule('parse_output.js'); return m ? m(input) : null; };
6
- module.exports.detectStatus = (input) => { const m = loadModule('detect_status.js'); return m ? m(input) : null; };
7
- module.exports.parseApproval = (input) => { const m = loadModule('parse_approval.js'); return m ? m(input) : null; };
@@ -1,37 +0,0 @@
1
- {
2
- "type": "goose-cli",
3
- "name": "Goose",
4
- "category": "cli",
5
- "aliases": [
6
- "goose"
7
- ],
8
- "icon": "🤖",
9
- "displayName": "Goose",
10
- "settings": {
11
- "mode": {
12
- "type": "select",
13
- "default": "chat",
14
- "public": true,
15
- "label": "Display Mode",
16
- "description": "terminal: Native PTY view, chat: Parsed message view",
17
- "options": [
18
- "terminal",
19
- "chat"
20
- ]
21
- }
22
- },
23
- "binary": "goose",
24
- "spawn": {
25
- "command": "goose",
26
- "args": [],
27
- "shell": true,
28
- "env": {}
29
- },
30
- "compatibility": [
31
- {
32
- "ideVersion": ">=3.20.0",
33
- "scriptDir": "scripts/1.0"
34
- }
35
- ],
36
- "defaultScriptDir": "scripts/1.0"
37
- }
@@ -1,20 +0,0 @@
1
- /**
2
- * Goose — detect_status
3
- * Goose is an autonomous AI agent that uses MCP and tools.
4
- * It typically shows 'thinking...' and uses tool calls.
5
- */
6
- 'use strict';
7
- module.exports = function detectStatus(input) {
8
- const { tail } = input;
9
- if (!tail) return 'idle';
10
- // Goose approval
11
- if (/approve|confirm/i.test(tail) && /deny|cancel/i.test(tail)) return 'waiting_approval';
12
- if (/\(y\/n\)/i.test(tail)) return 'waiting_approval';
13
- if (/Allow.*tool/i.test(tail)) return 'waiting_approval';
14
- // generating
15
- if (/[\u2800-\u28ff]/.test(tail)) return 'generating';
16
- if (/[⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏]/.test(tail)) return 'generating';
17
- if (/thinking|processing|working|running/i.test(tail)) return 'generating';
18
- if (/─.*tool.*─/i.test(tail)) return 'generating';
19
- return 'idle';
20
- };
@@ -1,10 +0,0 @@
1
- 'use strict';
2
- module.exports = function parseApproval(input) {
3
- const { tail } = input;
4
- if (!tail) return null;
5
- const hasApproval = (/approve|confirm/i.test(tail) && /deny|cancel/i.test(tail)) ||
6
- /\(y\/n\)/i.test(tail) || /Allow.*tool/i.test(tail);
7
- if (!hasApproval) return null;
8
- const lines = tail.split('\n').map(l => l.trim()).filter(l => l && l.length > 2);
9
- return { message: lines.slice(-5).join(' ').slice(0, 200) || 'Approval required', buttons: ['Approve', 'Deny'] };
10
- };
@@ -1,48 +0,0 @@
1
- 'use strict';
2
- const detectStatus = require('./detect_status.js');
3
- const parseApproval = require('./parse_approval.js');
4
-
5
- function splitTurns(buffer) {
6
- const messages = [];
7
- if (!buffer || buffer.length < 5) return messages;
8
- const lines = buffer.split('\n');
9
- let currentRole = null, currentContent = [], msgIndex = 0, started = false;
10
- for (const line of lines) {
11
- const trimmed = line.trim();
12
- const userMatch = trimmed.match(/^[❯›>$]\s+(.+)$/);
13
- if (userMatch && userMatch[1].length > 1) {
14
- started = true;
15
- if (currentRole && currentContent.length > 0) {
16
- const text = currentContent.join('\n').trim();
17
- if (text.length > 1) { messages.push({ id: `msg_${msgIndex}`, role: currentRole, content: text.slice(0, 6000), index: msgIndex, kind: 'standard' }); msgIndex++; }
18
- }
19
- currentRole = 'user'; currentContent = [userMatch[1]]; continue;
20
- }
21
- if (!started) continue;
22
- if (currentRole === 'user' && trimmed && !userMatch) {
23
- const text = currentContent.join('\n').trim();
24
- if (text.length > 1) { messages.push({ id: `msg_${msgIndex}`, role: 'user', content: text, index: msgIndex, kind: 'standard' }); msgIndex++; }
25
- currentRole = 'assistant'; currentContent = [];
26
- }
27
- if (!trimmed || /^[─═╭╮╰╯│]+$/.test(trimmed) || /^[\u2800-\u28ff]+$/.test(trimmed)) continue;
28
- if (currentRole) currentContent.push(trimmed);
29
- }
30
- if (currentRole && currentContent.length > 0) {
31
- const text = currentContent.join('\n').trim();
32
- if (text.length > 1) messages.push({ id: `msg_${msgIndex}`, role: currentRole, content: text.slice(0, 6000), index: msgIndex, kind: 'standard' });
33
- }
34
- return messages.length > 50 ? messages.slice(-50) : messages;
35
- }
36
-
37
- module.exports = function parseOutput(input) {
38
- const { buffer, recentBuffer, partialResponse, screenText } = input;
39
- const transcript = buffer || screenText;
40
- const tail = recentBuffer || (transcript || '').slice(-500);
41
- const status = detectStatus({ tail });
42
- const activeModal = status === 'waiting_approval' ? parseApproval({ buffer: transcript, tail }) : null;
43
- const messages = splitTurns(transcript);
44
- if (status === 'generating' && partialResponse && partialResponse.trim().length > 2) {
45
- messages.push({ id: 'msg_partial', role: 'assistant', content: partialResponse.trim().slice(0, 6000), index: messages.length, kind: 'standard', meta: { streaming: true } });
46
- }
47
- return { id: 'cli_session', status, title: 'Goose', messages, activeModal };
48
- };
@@ -1,7 +0,0 @@
1
- 'use strict';
2
- const path = require('path');
3
- const DIR = __dirname;
4
- function loadModule(name) { try { return require(path.join(DIR, name)); } catch { return null; } }
5
- module.exports.parseOutput = (input) => { const m = loadModule('parse_output.js'); return m ? m(input) : null; };
6
- module.exports.detectStatus = (input) => { const m = loadModule('detect_status.js'); return m ? m(input) : null; };
7
- module.exports.parseApproval = (input) => { const m = loadModule('parse_approval.js'); return m ? m(input) : null; };
@@ -1,37 +0,0 @@
1
- {
2
- "type": "opencode-cli",
3
- "name": "OpenCode CLI",
4
- "category": "cli",
5
- "aliases": [
6
- "opencode"
7
- ],
8
- "icon": "🤖",
9
- "displayName": "OpenCode CLI",
10
- "settings": {
11
- "mode": {
12
- "type": "select",
13
- "default": "chat",
14
- "public": true,
15
- "label": "Display Mode",
16
- "description": "terminal: Native PTY view, chat: Parsed message view",
17
- "options": [
18
- "terminal",
19
- "chat"
20
- ]
21
- }
22
- },
23
- "binary": "opencode",
24
- "spawn": {
25
- "command": "opencode",
26
- "args": [],
27
- "shell": true,
28
- "env": {}
29
- },
30
- "compatibility": [
31
- {
32
- "ideVersion": ">=1.3.0",
33
- "scriptDir": "scripts/1.0"
34
- }
35
- ],
36
- "defaultScriptDir": "scripts/1.0"
37
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * OpenCode CLI — detect_status
3
- * OpenCode uses a TUI that resembles a chat interface.
4
- */
5
- 'use strict';
6
- module.exports = function detectStatus(input) {
7
- const { tail } = input;
8
- if (!tail) return 'idle';
9
- if (/Allow|Deny|approve|reject/i.test(tail) && /\(y\/n\)|confirm/i.test(tail)) return 'waiting_approval';
10
- if (/[\u2800-\u28ff]/.test(tail)) return 'generating';
11
- if (/[⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏]/.test(tail)) return 'generating';
12
- if (/thinking|generating|processing|running/i.test(tail)) return 'generating';
13
- if (/esc to (cancel|stop)/i.test(tail)) return 'generating';
14
- return 'idle';
15
- };
@@ -1,9 +0,0 @@
1
- 'use strict';
2
- module.exports = function parseApproval(input) {
3
- const { tail } = input;
4
- if (!tail) return null;
5
- const hasApproval = /Allow|approve/i.test(tail) && /Deny|reject/i.test(tail);
6
- if (!hasApproval && !/\(y\/n\)/i.test(tail)) return null;
7
- const lines = tail.split('\n').map(l => l.trim()).filter(l => l && !/^[─═╭╮╰╯│]+$/.test(l));
8
- return { message: lines.slice(-5).join(' ').slice(0, 200) || 'Approval required', buttons: ['Allow', 'Deny'] };
9
- };
@@ -1,48 +0,0 @@
1
- 'use strict';
2
- const detectStatus = require('./detect_status.js');
3
- const parseApproval = require('./parse_approval.js');
4
-
5
- function splitTurns(buffer) {
6
- const messages = [];
7
- if (!buffer || buffer.length < 5) return messages;
8
- const lines = buffer.split('\n');
9
- let currentRole = null, currentContent = [], msgIndex = 0, started = false;
10
- for (const line of lines) {
11
- const trimmed = line.trim();
12
- const userMatch = trimmed.match(/^[❯›>$]\s+(.+)$/);
13
- if (userMatch && userMatch[1].length > 1) {
14
- started = true;
15
- if (currentRole && currentContent.length > 0) {
16
- const text = currentContent.join('\n').trim();
17
- if (text.length > 1) { messages.push({ id: `msg_${msgIndex}`, role: currentRole, content: text.slice(0, 6000), index: msgIndex, kind: 'standard' }); msgIndex++; }
18
- }
19
- currentRole = 'user'; currentContent = [userMatch[1]]; continue;
20
- }
21
- if (!started) continue;
22
- if (currentRole === 'user' && trimmed && !userMatch) {
23
- const text = currentContent.join('\n').trim();
24
- if (text.length > 1) { messages.push({ id: `msg_${msgIndex}`, role: 'user', content: text, index: msgIndex, kind: 'standard' }); msgIndex++; }
25
- currentRole = 'assistant'; currentContent = [];
26
- }
27
- if (!trimmed || /^[─═╭╮╰╯│]+$/.test(trimmed) || /^[\u2800-\u28ff]+$/.test(trimmed)) continue;
28
- if (currentRole) currentContent.push(trimmed);
29
- }
30
- if (currentRole && currentContent.length > 0) {
31
- const text = currentContent.join('\n').trim();
32
- if (text.length > 1) messages.push({ id: `msg_${msgIndex}`, role: currentRole, content: text.slice(0, 6000), index: msgIndex, kind: 'standard' });
33
- }
34
- return messages.length > 50 ? messages.slice(-50) : messages;
35
- }
36
-
37
- module.exports = function parseOutput(input) {
38
- const { buffer, recentBuffer, partialResponse, screenText } = input;
39
- const transcript = buffer || screenText;
40
- const tail = recentBuffer || (transcript || '').slice(-500);
41
- const status = detectStatus({ tail });
42
- const activeModal = status === 'waiting_approval' ? parseApproval({ buffer: transcript, tail }) : null;
43
- const messages = splitTurns(transcript);
44
- if (status === 'generating' && partialResponse && partialResponse.trim().length > 2) {
45
- messages.push({ id: 'msg_partial', role: 'assistant', content: partialResponse.trim().slice(0, 6000), index: messages.length, kind: 'standard', meta: { streaming: true } });
46
- }
47
- return { id: 'cli_session', status, title: 'OpenCode CLI', messages, activeModal };
48
- };
@@ -1,7 +0,0 @@
1
- 'use strict';
2
- const path = require('path');
3
- const DIR = __dirname;
4
- function loadModule(name) { try { return require(path.join(DIR, name)); } catch { return null; } }
5
- module.exports.parseOutput = (input) => { const m = loadModule('parse_output.js'); return m ? m(input) : null; };
6
- module.exports.detectStatus = (input) => { const m = loadModule('detect_status.js'); return m ? m(input) : null; };
7
- module.exports.parseApproval = (input) => { const m = loadModule('parse_approval.js'); return m ? m(input) : null; };