adhdev 0.2.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/dist/cli-entrypoint.js +18710 -1198
  2. package/dist/cli-entrypoint.js.map +1 -1
  3. package/dist/index.js +18720 -1228
  4. package/dist/index.js.map +1 -1
  5. package/package.json +2 -2
  6. package/providers/_builtin/CONTRIBUTING.md +0 -141
  7. package/providers/_builtin/README.md +0 -51
  8. package/providers/_builtin/_helpers/index.js +0 -188
  9. package/providers/_builtin/acp/agentpool/provider.json +0 -47
  10. package/providers/_builtin/acp/amp/provider.json +0 -45
  11. package/providers/_builtin/acp/auggie/provider.json +0 -50
  12. package/providers/_builtin/acp/autodev/provider.json +0 -47
  13. package/providers/_builtin/acp/autohand/provider.json +0 -45
  14. package/providers/_builtin/acp/blackbox-ai/provider.json +0 -47
  15. package/providers/_builtin/acp/claude-agent/provider.json +0 -50
  16. package/providers/_builtin/acp/cline-acp/provider.json +0 -47
  17. package/providers/_builtin/acp/code-assistant/provider.json +0 -47
  18. package/providers/_builtin/acp/codebuddy/provider.json +0 -47
  19. package/providers/_builtin/acp/codex-cli/provider.json +0 -50
  20. package/providers/_builtin/acp/corust-agent/provider.json +0 -45
  21. package/providers/_builtin/acp/crow-cli/provider.json +0 -47
  22. package/providers/_builtin/acp/cursor-acp/provider.json +0 -47
  23. package/providers/_builtin/acp/deepagents/provider.json +0 -45
  24. package/providers/_builtin/acp/dimcode/provider.json +0 -47
  25. package/providers/_builtin/acp/docker-cagent/provider.json +0 -50
  26. package/providers/_builtin/acp/factory-droid/provider.json +0 -53
  27. package/providers/_builtin/acp/fast-agent/provider.json +0 -45
  28. package/providers/_builtin/acp/fount/provider.json +0 -47
  29. package/providers/_builtin/acp/gemini-cli/provider.json +0 -107
  30. package/providers/_builtin/acp/github-copilot/provider.json +0 -47
  31. package/providers/_builtin/acp/goose/provider.json +0 -50
  32. package/providers/_builtin/acp/junie/provider.json +0 -45
  33. package/providers/_builtin/acp/kilo/provider.json +0 -45
  34. package/providers/_builtin/acp/kimi-cli/provider.json +0 -50
  35. package/providers/_builtin/acp/kiro-cli/provider.json +0 -47
  36. package/providers/_builtin/acp/minion-code/provider.json +0 -45
  37. package/providers/_builtin/acp/mistral-vibe/provider.json +0 -50
  38. package/providers/_builtin/acp/nova/provider.json +0 -47
  39. package/providers/_builtin/acp/openclaw/provider.json +0 -47
  40. package/providers/_builtin/acp/opencode/provider.json +0 -45
  41. package/providers/_builtin/acp/openhands/provider.json +0 -47
  42. package/providers/_builtin/acp/pi-acp/provider.json +0 -45
  43. package/providers/_builtin/acp/qoder/provider.json +0 -47
  44. package/providers/_builtin/acp/qwen-code/provider.json +0 -53
  45. package/providers/_builtin/acp/stakpak/provider.json +0 -47
  46. package/providers/_builtin/acp/vtcode/provider.json +0 -47
  47. package/providers/_builtin/cli/claude-cli/provider.json +0 -78
  48. package/providers/_builtin/cli/codex-cli/provider.json +0 -60
  49. package/providers/_builtin/cli/gemini-cli/provider.json +0 -64
  50. package/providers/_builtin/extension/cline/provider.json +0 -11
  51. package/providers/_builtin/extension/cline/scripts/focus_editor.js +0 -48
  52. package/providers/_builtin/extension/cline/scripts/list_chats.js +0 -100
  53. package/providers/_builtin/extension/cline/scripts/list_models.js +0 -43
  54. package/providers/_builtin/extension/cline/scripts/list_modes.js +0 -35
  55. package/providers/_builtin/extension/cline/scripts/new_session.js +0 -85
  56. package/providers/_builtin/extension/cline/scripts/open_panel.js +0 -25
  57. package/providers/_builtin/extension/cline/scripts/read_chat.js +0 -257
  58. package/providers/_builtin/extension/cline/scripts/resolve_action.js +0 -83
  59. package/providers/_builtin/extension/cline/scripts/send_message.js +0 -95
  60. package/providers/_builtin/extension/cline/scripts/set_mode.js +0 -36
  61. package/providers/_builtin/extension/cline/scripts/set_model.js +0 -36
  62. package/providers/_builtin/extension/cline/scripts/switch_session.js +0 -206
  63. package/providers/_builtin/extension/cline/scripts.js +0 -73
  64. package/providers/_builtin/extension/roo-code/provider.json +0 -11
  65. package/providers/_builtin/extension/roo-code/scripts.js +0 -659
  66. package/providers/_builtin/ide/antigravity/provider.json +0 -32
  67. package/providers/_builtin/ide/antigravity/scripts/focus_editor.js +0 -20
  68. package/providers/_builtin/ide/antigravity/scripts/list_chats.js +0 -137
  69. package/providers/_builtin/ide/antigravity/scripts/list_models.js +0 -38
  70. package/providers/_builtin/ide/antigravity/scripts/list_modes.js +0 -48
  71. package/providers/_builtin/ide/antigravity/scripts/new_session.js +0 -75
  72. package/providers/_builtin/ide/antigravity/scripts/read_chat.js +0 -262
  73. package/providers/_builtin/ide/antigravity/scripts/resolve_action.js +0 -68
  74. package/providers/_builtin/ide/antigravity/scripts/send_message.js +0 -56
  75. package/providers/_builtin/ide/antigravity/scripts/set_mode.js +0 -34
  76. package/providers/_builtin/ide/antigravity/scripts/set_model.js +0 -47
  77. package/providers/_builtin/ide/antigravity/scripts/switch_session.js +0 -114
  78. package/providers/_builtin/ide/antigravity/scripts.js +0 -73
  79. package/providers/_builtin/ide/cursor/provider.json +0 -35
  80. package/providers/_builtin/ide/cursor/scripts.js +0 -452
  81. package/providers/_builtin/ide/kiro/provider.json +0 -36
  82. package/providers/_builtin/ide/kiro/scripts/focus_editor.js +0 -20
  83. package/providers/_builtin/ide/kiro/scripts/open_panel.js +0 -47
  84. package/providers/_builtin/ide/kiro/scripts/resolve_action.js +0 -54
  85. package/providers/_builtin/ide/kiro/scripts/send_message.js +0 -29
  86. package/providers/_builtin/ide/kiro/scripts/webview_list_models.js +0 -39
  87. package/providers/_builtin/ide/kiro/scripts/webview_list_modes.js +0 -39
  88. package/providers/_builtin/ide/kiro/scripts/webview_list_sessions.js +0 -21
  89. package/providers/_builtin/ide/kiro/scripts/webview_new_session.js +0 -34
  90. package/providers/_builtin/ide/kiro/scripts/webview_read_chat.js +0 -68
  91. package/providers/_builtin/ide/kiro/scripts/webview_send_message.js +0 -72
  92. package/providers/_builtin/ide/kiro/scripts/webview_set_mode.js +0 -15
  93. package/providers/_builtin/ide/kiro/scripts/webview_set_model.js +0 -15
  94. package/providers/_builtin/ide/kiro/scripts/webview_switch_session.js +0 -26
  95. package/providers/_builtin/ide/kiro/scripts.js +0 -62
  96. package/providers/_builtin/ide/pearai/provider.json +0 -36
  97. package/providers/_builtin/ide/pearai/scripts/focus_editor.js +0 -20
  98. package/providers/_builtin/ide/pearai/scripts/list_sessions.js +0 -38
  99. package/providers/_builtin/ide/pearai/scripts/new_session.js +0 -55
  100. package/providers/_builtin/ide/pearai/scripts/open_panel.js +0 -46
  101. package/providers/_builtin/ide/pearai/scripts/resolve_action.js +0 -54
  102. package/providers/_builtin/ide/pearai/scripts/send_message.js +0 -29
  103. package/providers/_builtin/ide/pearai/scripts/webview_list_models.js +0 -43
  104. package/providers/_builtin/ide/pearai/scripts/webview_list_modes.js +0 -35
  105. package/providers/_builtin/ide/pearai/scripts/webview_list_sessions.js +0 -62
  106. package/providers/_builtin/ide/pearai/scripts/webview_new_session.js +0 -49
  107. package/providers/_builtin/ide/pearai/scripts/webview_read_chat.js +0 -92
  108. package/providers/_builtin/ide/pearai/scripts/webview_resolve_action.js +0 -59
  109. package/providers/_builtin/ide/pearai/scripts/webview_send_message.js +0 -72
  110. package/providers/_builtin/ide/pearai/scripts/webview_set_mode.js +0 -36
  111. package/providers/_builtin/ide/pearai/scripts/webview_set_model.js +0 -36
  112. package/providers/_builtin/ide/pearai/scripts/webview_switch_session.js +0 -34
  113. package/providers/_builtin/ide/pearai/scripts.js +0 -74
  114. package/providers/_builtin/ide/trae/provider.json +0 -35
  115. package/providers/_builtin/ide/trae/scripts/focus_editor.js +0 -20
  116. package/providers/_builtin/ide/trae/scripts/list_chats.js +0 -24
  117. package/providers/_builtin/ide/trae/scripts/list_models.js +0 -39
  118. package/providers/_builtin/ide/trae/scripts/list_modes.js +0 -39
  119. package/providers/_builtin/ide/trae/scripts/new_session.js +0 -30
  120. package/providers/_builtin/ide/trae/scripts/open_panel.js +0 -44
  121. package/providers/_builtin/ide/trae/scripts/read_chat.js +0 -113
  122. package/providers/_builtin/ide/trae/scripts/resolve_action.js +0 -54
  123. package/providers/_builtin/ide/trae/scripts/send_message.js +0 -69
  124. package/providers/_builtin/ide/trae/scripts/set_mode.js +0 -15
  125. package/providers/_builtin/ide/trae/scripts/set_model.js +0 -15
  126. package/providers/_builtin/ide/trae/scripts/switch_session.js +0 -23
  127. package/providers/_builtin/ide/trae/scripts.js +0 -57
  128. package/providers/_builtin/ide/vscode/provider.json +0 -33
  129. package/providers/_builtin/ide/vscode-insiders/provider.json +0 -31
  130. package/providers/_builtin/ide/vscodium/provider.json +0 -32
  131. package/providers/_builtin/ide/windsurf/provider.json +0 -22
  132. package/providers/_builtin/ide/windsurf/scripts/focus_editor.js +0 -30
  133. package/providers/_builtin/ide/windsurf/scripts/list_chats.js +0 -117
  134. package/providers/_builtin/ide/windsurf/scripts/list_models.js +0 -39
  135. package/providers/_builtin/ide/windsurf/scripts/list_modes.js +0 -39
  136. package/providers/_builtin/ide/windsurf/scripts/new_session.js +0 -69
  137. package/providers/_builtin/ide/windsurf/scripts/open_panel.js +0 -58
  138. package/providers/_builtin/ide/windsurf/scripts/read_chat.js +0 -297
  139. package/providers/_builtin/ide/windsurf/scripts/resolve_action.js +0 -68
  140. package/providers/_builtin/ide/windsurf/scripts/send_message.js +0 -87
  141. package/providers/_builtin/ide/windsurf/scripts/set_mode.js +0 -15
  142. package/providers/_builtin/ide/windsurf/scripts/set_model.js +0 -15
  143. package/providers/_builtin/ide/windsurf/scripts/switch_session.js +0 -58
  144. package/providers/_builtin/ide/windsurf/scripts.js +0 -57
  145. package/providers/_builtin/validate.js +0 -156
@@ -1,56 +0,0 @@
1
- /**
2
- * Antigravity v1 — send_message
3
- *
4
- * Antigravity는 contenteditable div[role="textbox"]를 사용.
5
- * 여러 개의 contenteditable이 있을 수 있으므로 y좌표가 가장 큰 (메인 채팅) 것을 선택.
6
- *
7
- * ⚠️ Enter 이벤트에 composed: true + which 필수 (Shadow DOM 경계 통과 + React 호환)
8
- * ⚠️ keydown + keypress + keyup 전체 시퀀스 필요
9
- *
10
- * 파라미터: ${ MESSAGE }
11
- * 최종 확인: 2026-03-10
12
- */
13
- (async () => {
14
- try {
15
- const msg = ${ MESSAGE };
16
-
17
- // ─── 1. 메인 채팅 입력 필드 찾기 ───
18
- const editors = document.querySelectorAll('[contenteditable="true"][role="textbox"]');
19
- if (!editors.length) return 'error: no contenteditable textbox found';
20
-
21
- // y좌표가 가장 큰 (화면 아래쪽 = 메인 채팅) 에디터 선택
22
- const editor = [...editors].reduce((a, b) =>
23
- b.getBoundingClientRect().y > a.getBoundingClientRect().y ? b : a
24
- );
25
-
26
- // ─── 2. 텍스트 삽입 ───
27
- editor.focus();
28
-
29
- // 기존 내용 삭제
30
- document.execCommand('selectAll', false, null);
31
- document.execCommand('delete', false, null);
32
-
33
- // 텍스트 삽입
34
- document.execCommand('insertText', false, msg);
35
-
36
- // React에 변경 알림
37
- editor.dispatchEvent(new Event('input', { bubbles: true }));
38
-
39
- await new Promise(r => setTimeout(r, 300));
40
-
41
- // ─── 3. Enter 키 전송 (full sequence) ───
42
- const enterOpts = {
43
- key: 'Enter', code: 'Enter',
44
- keyCode: 13, which: 13,
45
- bubbles: true, cancelable: true, composed: true,
46
- };
47
-
48
- editor.dispatchEvent(new KeyboardEvent('keydown', enterOpts));
49
- editor.dispatchEvent(new KeyboardEvent('keypress', enterOpts));
50
- editor.dispatchEvent(new KeyboardEvent('keyup', enterOpts));
51
-
52
- return 'sent';
53
- } catch (e) {
54
- return 'error: ' + e.message;
55
- }
56
- })()
@@ -1,34 +0,0 @@
1
- /**
2
- * Antigravity — set_mode
3
- * Conversation mode 패널에서 Planning/Fast 클릭
4
- * ${MODE} → JSON.stringify(modeName)
5
- * → { success: boolean, mode?: string }
6
- */
7
- (async () => {
8
- try {
9
- const target = ${MODE};
10
-
11
- // "Conversation mode" 헤더의 부모에서 .font-medium 항목 찾기
12
- const headers = document.querySelectorAll('.text-xs.px-2.pb-1.opacity-80');
13
- for (const header of headers) {
14
- if (header.textContent?.trim() === 'Conversation mode') {
15
- const parent = header.parentElement;
16
- if (!parent) continue;
17
- const items = parent.querySelectorAll('.font-medium');
18
- for (const item of items) {
19
- const text = item.textContent?.trim();
20
- if (text && text.toLowerCase() === target.toLowerCase()) {
21
- item.click();
22
- await new Promise(r => setTimeout(r, 300));
23
- return JSON.stringify({ success: true, mode: text });
24
- }
25
- }
26
- break;
27
- }
28
- }
29
-
30
- return JSON.stringify({ success: false, error: 'mode not found: ' + target });
31
- } catch (e) {
32
- return JSON.stringify({ success: false, error: e.message });
33
- }
34
- })()
@@ -1,47 +0,0 @@
1
- /**
2
- * Antigravity — set_model
3
- * antigravity-agent-side-panel 모델 드롭다운에서 모델 선택
4
- * ${MODEL} → JSON.stringify(modelName)
5
- * → { success: boolean, model?: string }
6
- */
7
- (async () => {
8
- try {
9
- const target = ${MODEL};
10
-
11
- // 1. 모델 드롭다운이 열려 있는 경우 → 직접 선택
12
- const items = document.querySelectorAll('.px-2.py-1.flex.items-center.justify-between.cursor-pointer');
13
- for (const item of items) {
14
- const label = item.querySelector('.text-xs.font-medium');
15
- const text = (label || item).textContent?.trim();
16
- if (text && (text === target || text.toLowerCase().includes(target.toLowerCase()))) {
17
- item.click();
18
- await new Promise(r => setTimeout(r, 200));
19
- return JSON.stringify({ success: true, model: text });
20
- }
21
- }
22
-
23
- // 2. 드롭다운이 닫혀 있으면 → 트리거 버튼 클릭해서 열기
24
- const trigger = document.querySelector('.flex.min-w-0.max-w-full.cursor-pointer.items-center');
25
- if (trigger) {
26
- trigger.click();
27
- await new Promise(r => setTimeout(r, 400));
28
-
29
- // 다시 항목 탐색
30
- const newItems = document.querySelectorAll('.px-2.py-1.flex.items-center.justify-between.cursor-pointer');
31
- for (const item of newItems) {
32
- const label = item.querySelector('.text-xs.font-medium');
33
- const text = (label || item).textContent?.trim();
34
- if (text && (text === target || text.toLowerCase().includes(target.toLowerCase()))) {
35
- item.click();
36
- return JSON.stringify({ success: true, model: text });
37
- }
38
- }
39
- // 못 찾으면 드롭다운 닫기
40
- trigger.click();
41
- }
42
-
43
- return JSON.stringify({ success: false, error: 'model not found: ' + target });
44
- } catch (e) {
45
- return JSON.stringify({ success: false, error: e.message });
46
- }
47
- })()
@@ -1,114 +0,0 @@
1
- /**
2
- * Antigravity v1 — switch_session (v7 — CDP 마우스 클릭 좌표 반환)
3
- *
4
- * ⚠️ 삭제 버튼(trash SVG)에 절대 접근하지 않음.
5
- *
6
- * 두 가지 모드:
7
- * 1) 히스토리 토글을 열고 행 좌표를 찾으면 {clickX, clickY} 반환 → daemon이 CDP 클릭으로 처리
8
- * 2) 워크스페이스 다이얼로그가 뜨면 첫 번째 행 좌표 반환 (자동 선택용)
9
- *
10
- * 파라미터: ${SESSION_ID} — 대화 제목 (문자열)
11
- */
12
- (async () => {
13
- const sleep = (ms) => new Promise(r => setTimeout(r, ms));
14
- const id = ${SESSION_ID};
15
-
16
- try {
17
- // 1. 히스토리 토글 클릭
18
- const toggle = document.querySelector('[data-past-conversations-toggle="true"]');
19
- if (!toggle) return JSON.stringify({ error: 'no_toggle' });
20
- toggle.click();
21
- await sleep(1200);
22
-
23
- // 2. 컨테이너 찾기 (기존 로직: "Current" 텍스트 또는 "Select a conversation" input)
24
- let container = null;
25
-
26
- // 2a. "Current" 텍스트 기반
27
- const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT, null);
28
- while (walker.nextNode()) {
29
- if (walker.currentNode.textContent.trim() === 'Current') {
30
- let el = walker.currentNode.parentElement;
31
- for (let i = 0; i < 10 && el; i++) {
32
- const cls = (el.className || '');
33
- if (typeof cls === 'string' && (cls.includes('overflow-auto') || cls.includes('overflow-y-scroll'))) {
34
- container = el; break;
35
- }
36
- el = el.parentElement;
37
- }
38
- if (!container) {
39
- el = walker.currentNode.parentElement;
40
- let bestEl = null, bestCount = 0;
41
- for (let i = 0; i < 8 && el; i++) {
42
- const rows = el.querySelectorAll('[class*="cursor-pointer"][class*="justify-between"][class*="rounded-md"]');
43
- if (rows.length > bestCount) { bestCount = rows.length; bestEl = el; }
44
- el = el.parentElement;
45
- }
46
- container = bestEl;
47
- }
48
- if (container) break;
49
- }
50
- }
51
-
52
- // 2b. 폴백: "Select a conversation" input 기반
53
- if (!container) {
54
- const searchInput = Array.from(document.querySelectorAll('input[type="text"]'))
55
- .find(i => i.offsetWidth > 0 && (i.placeholder || '').includes('Select a conversation'));
56
- if (searchInput) {
57
- let el = searchInput.parentElement;
58
- for (let i = 0; i < 10 && el; i++) {
59
- const cls = (el.className || '');
60
- if (typeof cls === 'string' && (cls.includes('overflow-auto') || cls.includes('overflow-y-scroll'))) {
61
- container = el; break;
62
- }
63
- const rows = el.querySelectorAll('[class*="cursor-pointer"][class*="justify-between"][class*="rounded-md"]');
64
- if (rows.length > 0 && !container) container = el;
65
- el = el.parentElement;
66
- }
67
- }
68
- }
69
-
70
- if (!container) {
71
- document.dispatchEvent(new KeyboardEvent('keydown', { key: 'Escape', code: 'Escape', bubbles: true }));
72
- return JSON.stringify({ error: 'no_container' });
73
- }
74
-
75
- // 3. 행 매칭
76
- const rows = container.querySelectorAll('[class*="cursor-pointer"][class*="justify-between"][class*="rounded-md"]');
77
- const norm = s => (s || '').trim().toLowerCase().replace(/\s+/g, ' ');
78
- const idNorm = norm(id);
79
- let targetRow = null;
80
-
81
- for (const row of rows) {
82
- // 현재 활성 대화 스킵
83
- if ((row.className || '').includes('focusBackground')) continue;
84
- const titleEl = row.querySelector('span span');
85
- const title = titleEl ? norm(titleEl.textContent) : '';
86
- if (!title) continue;
87
- if (title.includes(idNorm) || idNorm.includes(title)) {
88
- targetRow = row;
89
- break;
90
- }
91
- }
92
-
93
- if (!targetRow) {
94
- document.dispatchEvent(new KeyboardEvent('keydown', { key: 'Escape', code: 'Escape', bubbles: true }));
95
- return JSON.stringify({ error: 'no_match', rowCount: rows.length });
96
- }
97
-
98
- // 4. 행의 좌표 계산 → daemon이 CDP Input.dispatchMouseEvent로 클릭
99
- const rect = targetRow.getBoundingClientRect();
100
- const clickX = Math.round(rect.left + rect.width * 0.3);
101
- const clickY = Math.round(rect.top + rect.height / 2);
102
-
103
- return JSON.stringify({
104
- action: 'click',
105
- clickX,
106
- clickY,
107
- title: (targetRow.querySelector('span span')?.textContent || '').substring(0, 60)
108
- });
109
-
110
- } catch (e) {
111
- try { document.dispatchEvent(new KeyboardEvent('keydown', { key: 'Escape', code: 'Escape', bubbles: true })); } catch (_) { }
112
- return JSON.stringify({ error: e.message });
113
- }
114
- })()
@@ -1,73 +0,0 @@
1
- /**
2
- * CDP Scripts for Antigravity
3
- */
4
-
5
- const fs = require('fs');
6
- const path = require('path');
7
- const SCRIPTS_DIR = path.join(__dirname, 'scripts');
8
- function loadScript(name) {
9
- try { return fs.readFileSync(path.join(SCRIPTS_DIR, name), 'utf8'); }
10
- catch { return null; }
11
- }
12
-
13
-
14
- module.exports.readChat = function readChat() {
15
- return loadScript('read_chat.js');
16
- };
17
-
18
- module.exports.sendMessage = function sendMessage(text) {
19
- const script = loadScript('send_message.js');
20
- if (!script) return null;
21
- // ${ MESSAGE } 템플릿 변수 치환
22
- return script.replace(/\$\{\s*MESSAGE\s*\}/g, JSON.stringify(text));
23
- };
24
-
25
- module.exports.listSessions = function listSessions() {
26
- return loadScript('list_chats.js');
27
- };
28
-
29
- module.exports.switchSession = function switchSession(sessionId) {
30
- const script = loadScript('switch_session.js');
31
- if (!script) return null;
32
- return script.replace(/\$\{\s*SESSION_ID\s*\}/g, JSON.stringify(sessionId));
33
- };
34
-
35
- module.exports.newSession = function newSession() {
36
- return loadScript('new_session.js');
37
- };
38
-
39
- module.exports.resolveAction = function resolveAction(params) {
40
- const action = typeof params === 'string' ? params : params?.action || 'approve';
41
- const buttonText = params?.button || params?.buttonText
42
- || (action === 'approve' ? 'Accept' : action === 'reject' ? 'Reject' : action);
43
- const script = loadScript('resolve_action.js');
44
- if (!script) return null;
45
- return script.replace(/\$\{\s*BUTTON_TEXT\s*\}/g, JSON.stringify(buttonText));
46
- };
47
-
48
- module.exports.focusEditor = function focusEditor() {
49
- return loadScript('focus_editor.js');
50
- };
51
-
52
- module.exports.listModels = function listModels() {
53
- return loadScript('list_models.js');
54
- };
55
-
56
- module.exports.setModel = function setModel(params) {
57
- const model = typeof params === 'string' ? params : params?.model;
58
- const script = loadScript('set_model.js');
59
- if (!script) return null;
60
- return script.replace(/\$\{\s*MODEL\s*\}/g, JSON.stringify(model));
61
- };
62
-
63
- module.exports.listModes = function listModes() {
64
- return loadScript('list_modes.js');
65
- };
66
-
67
- module.exports.setMode = function setMode(params) {
68
- const mode = typeof params === 'string' ? params : params?.mode;
69
- const script = loadScript('set_mode.js');
70
- if (!script) return null;
71
- return script.replace(/\$\{\s*MODE\s*\}/g, JSON.stringify(mode));
72
- };
73
-
@@ -1,35 +0,0 @@
1
- {
2
- "type": "cursor",
3
- "name": "Cursor",
4
- "category": "ide",
5
- "displayName": "Cursor",
6
- "icon": "⚡",
7
- "cli": "cursor",
8
- "cdpPorts": [
9
- 9333,
10
- 9334
11
- ],
12
- "processNames": {
13
- "darwin": "Cursor",
14
- "win32": [
15
- "Cursor.exe"
16
- ]
17
- },
18
- "paths": {
19
- "darwin": [
20
- "/Applications/Cursor.app"
21
- ],
22
- "win32": [
23
- "C:\\Users\\*\\AppData\\Local\\Programs\\cursor\\Cursor.exe"
24
- ],
25
- "linux": [
26
- "/opt/Cursor",
27
- "/usr/share/cursor"
28
- ]
29
- },
30
- "inputMethod": "cdp-type-and-send",
31
- "inputSelector": ".aislash-editor-input[contenteditable=\"true\"]",
32
- "vscodeCommands": {
33
- "changeModel": "cursor.model"
34
- }
35
- }