@adhdev/daemon-core 0.6.10 → 0.6.12
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.
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/providers/_builtin/.github/workflows/generate-registry.yml +19 -0
- package/providers/_builtin/cli/claude-cli/provider.json +1 -4
- package/providers/_builtin/{ide/cursor/scripts/0.49 → extension/cline/scripts/1.0}/scripts.js +27 -23
- package/providers/_builtin/extension/roo-code/scripts/1.0/scripts.js +74 -651
- package/providers/_builtin/ide/antigravity/provider.json +2 -3
- package/providers/_builtin/ide/cursor/provider.json +2 -2
- package/providers/_builtin/ide/pearai/provider.json +7 -3
- package/providers/_builtin/ide/pearai/scripts/1.0/scripts.js +82 -0
- package/providers/_builtin/ide/trae/provider.json +7 -3
- package/providers/_builtin/ide/trae/scripts/1.0/scripts.js +82 -0
- package/providers/_builtin/ide/vscode/provider.json +6 -0
- package/providers/_builtin/ide/vscode-insiders/provider.json +6 -0
- package/providers/_builtin/ide/vscodium/provider.json +6 -0
- package/providers/_builtin/ide/windsurf/provider.json +7 -5
- package/providers/_builtin/ide/windsurf/scripts/1.0/scripts.js +82 -0
- package/providers/_builtin/registry.json +44 -8
- package/src/boot/daemon-lifecycle.ts +19 -0
- package/src/daemon/scaffold-template.ts +1 -0
- package/providers/_builtin/ide/antigravity/scripts/1.106/list_models.js +0 -38
- package/providers/_builtin/ide/antigravity/scripts/1.106/list_modes.js +0 -48
- package/providers/_builtin/ide/antigravity/scripts/1.106/read_chat.js +0 -290
- package/providers/_builtin/ide/antigravity/scripts/1.106/scripts.js +0 -57
- package/providers/_builtin/ide/antigravity/scripts/1.106/set_mode.js +0 -34
- package/providers/_builtin/ide/antigravity/scripts/1.106/set_model.js +0 -47
- package/providers/_builtin/ide/antigravity/scripts/1.107/focus_editor.js +0 -20
- package/providers/_builtin/ide/antigravity/scripts/1.107/list_chats.js +0 -137
- package/providers/_builtin/ide/antigravity/scripts/1.107/new_session.js +0 -75
- package/providers/_builtin/ide/antigravity/scripts/1.107/resolve_action.js +0 -63
- package/providers/_builtin/ide/antigravity/scripts/1.107/send_message.js +0 -56
- package/providers/_builtin/ide/antigravity/scripts/1.107/switch_session.js +0 -114
- package/providers/_builtin/ide/cursor/scripts/0.49/dismiss_notification.js +0 -30
- package/providers/_builtin/ide/cursor/scripts/0.49/focus_editor.js +0 -13
- package/providers/_builtin/ide/cursor/scripts/0.49/list_models.js +0 -78
- package/providers/_builtin/ide/cursor/scripts/0.49/list_modes.js +0 -40
- package/providers/_builtin/ide/cursor/scripts/0.49/list_notifications.js +0 -23
- package/providers/_builtin/ide/cursor/scripts/0.49/new_session.js +0 -20
- package/providers/_builtin/ide/cursor/scripts/0.49/open_panel.js +0 -23
- package/providers/_builtin/ide/cursor/scripts/0.49/resolve_action.js +0 -19
- package/providers/_builtin/ide/cursor/scripts/0.49/send_message.js +0 -23
- package/providers/_builtin/ide/cursor/scripts/0.49/set_mode.js +0 -38
- package/providers/_builtin/ide/cursor/scripts/0.49/set_model.js +0 -81
- package/providers/_builtin/ide/cursor/scripts/0.49/switch_session.js +0 -28
- package/providers/_builtin/ide/cursor/scripts/0.49.bak/list_sessions.js +0 -42
- package/providers/_builtin/ide/cursor/scripts/0.49.bak/read_chat.js +0 -79
- /package/providers/_builtin/ide/antigravity/scripts/{1.106 → 1.0}/focus_editor.js +0 -0
- /package/providers/_builtin/ide/antigravity/scripts/{1.106 → 1.0}/list_chats.js +0 -0
- /package/providers/_builtin/ide/antigravity/scripts/{1.107 → 1.0}/list_models.js +0 -0
- /package/providers/_builtin/ide/antigravity/scripts/{1.107 → 1.0}/list_modes.js +0 -0
- /package/providers/_builtin/ide/antigravity/scripts/{1.106 → 1.0}/new_session.js +0 -0
- /package/providers/_builtin/ide/antigravity/scripts/{1.107 → 1.0}/read_chat.js +0 -0
- /package/providers/_builtin/ide/antigravity/scripts/{1.106 → 1.0}/resolve_action.js +0 -0
- /package/providers/_builtin/ide/antigravity/scripts/{1.107 → 1.0}/scripts.js +0 -0
- /package/providers/_builtin/ide/antigravity/scripts/{1.106 → 1.0}/send_message.js +0 -0
- /package/providers/_builtin/ide/antigravity/scripts/{1.107 → 1.0}/set_mode.js +0 -0
- /package/providers/_builtin/ide/antigravity/scripts/{1.107 → 1.0}/set_model.js +0 -0
- /package/providers/_builtin/ide/antigravity/scripts/{1.106 → 1.0}/switch_session.js +0 -0
- /package/providers/_builtin/ide/cursor/scripts/{0.49.bak → 1.0}/dismiss_notification.js +0 -0
- /package/providers/_builtin/ide/cursor/scripts/{0.49.bak → 1.0}/focus_editor.js +0 -0
- /package/providers/_builtin/ide/cursor/scripts/{0.49.bak → 1.0}/list_models.js +0 -0
- /package/providers/_builtin/ide/cursor/scripts/{0.49.bak → 1.0}/list_modes.js +0 -0
- /package/providers/_builtin/ide/cursor/scripts/{0.49.bak → 1.0}/list_notifications.js +0 -0
- /package/providers/_builtin/ide/cursor/scripts/{0.49 → 1.0}/list_sessions.js +0 -0
- /package/providers/_builtin/ide/cursor/scripts/{0.49.bak → 1.0}/new_session.js +0 -0
- /package/providers/_builtin/ide/cursor/scripts/{0.49.bak → 1.0}/open_panel.js +0 -0
- /package/providers/_builtin/ide/cursor/scripts/{0.49 → 1.0}/read_chat.js +0 -0
- /package/providers/_builtin/ide/cursor/scripts/{0.49.bak → 1.0}/resolve_action.js +0 -0
- /package/providers/_builtin/ide/cursor/scripts/{0.49.bak → 1.0}/scripts.js +0 -0
- /package/providers/_builtin/ide/cursor/scripts/{0.49.bak → 1.0}/send_message.js +0 -0
- /package/providers/_builtin/ide/cursor/scripts/{0.49.bak → 1.0}/set_mode.js +0 -0
- /package/providers/_builtin/ide/cursor/scripts/{0.49.bak → 1.0}/set_model.js +0 -0
- /package/providers/_builtin/ide/cursor/scripts/{0.49.bak → 1.0}/switch_session.js +0 -0
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cursor — list_sessions
|
|
3
|
-
*
|
|
4
|
-
* 사이드바 셀 목록에서 세션 파싱:
|
|
5
|
-
* 셀: .agent-sidebar-cell
|
|
6
|
-
* 제목: .agent-sidebar-cell-text
|
|
7
|
-
* 선택 상태: data-selected="true"
|
|
8
|
-
* 활성 ID: [data-composer-id]에서 추출
|
|
9
|
-
*
|
|
10
|
-
* → { sessions: [{ id, title, active, index }] }
|
|
11
|
-
*/
|
|
12
|
-
(() => {
|
|
13
|
-
try {
|
|
14
|
-
const sessions = [];
|
|
15
|
-
const cells = [...document.querySelectorAll('.agent-sidebar-cell')];
|
|
16
|
-
const activeComposer = document.querySelector('[data-composer-id]');
|
|
17
|
-
const activeId = activeComposer?.getAttribute('data-composer-id') || null;
|
|
18
|
-
cells.forEach((cell, i) => {
|
|
19
|
-
const titleEl = cell.querySelector('.agent-sidebar-cell-text');
|
|
20
|
-
const title = titleEl?.textContent?.trim() || 'Untitled';
|
|
21
|
-
const isSelected = cell.getAttribute('data-selected') === 'true';
|
|
22
|
-
sessions.push({
|
|
23
|
-
id: isSelected && activeId ? activeId : 'sidebar-' + i,
|
|
24
|
-
title,
|
|
25
|
-
active: isSelected,
|
|
26
|
-
index: i,
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
// If no sidebar cells, fallback to current composer
|
|
30
|
-
if (sessions.length === 0 && activeComposer) {
|
|
31
|
-
sessions.push({
|
|
32
|
-
id: activeId,
|
|
33
|
-
title: document.title.split(' — ')[0],
|
|
34
|
-
active: true,
|
|
35
|
-
index: 0,
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
return JSON.stringify({ sessions });
|
|
39
|
-
} catch(e) {
|
|
40
|
-
return JSON.stringify({ sessions: [], error: e.message });
|
|
41
|
-
}
|
|
42
|
-
})()
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cursor — read_chat
|
|
3
|
-
*
|
|
4
|
-
* DOM 구조 (v0.49):
|
|
5
|
-
* 컴포저: [data-composer-id] + [data-composer-status]
|
|
6
|
-
* 메시지 쌍: .composer-human-ai-pair-container
|
|
7
|
-
* 사용자: .composer-human-message
|
|
8
|
-
* AI: direct children after first (tool/assistant)
|
|
9
|
-
* 입력: .aislash-editor-input[contenteditable="true"]
|
|
10
|
-
* 승인: .run-command-review-active + button/cursor-pointer 요소
|
|
11
|
-
*
|
|
12
|
-
* → { id, status, title, messages[], inputContent, activeModal }
|
|
13
|
-
*/
|
|
14
|
-
(() => {
|
|
15
|
-
try {
|
|
16
|
-
const c = document.querySelector('[data-composer-id]');
|
|
17
|
-
const id = c?.getAttribute('data-composer-id') || 'active';
|
|
18
|
-
const rawStatus = c?.getAttribute('data-composer-status') || 'idle';
|
|
19
|
-
let status = rawStatus;
|
|
20
|
-
if (rawStatus === 'thinking' || rawStatus === 'streaming') status = 'generating';
|
|
21
|
-
else if (rawStatus === 'completed' || rawStatus === 'idle' || !rawStatus) status = 'idle';
|
|
22
|
-
|
|
23
|
-
// Detect approval dialogs
|
|
24
|
-
let activeModal = null;
|
|
25
|
-
|
|
26
|
-
// Primary signal: Cursor uses .run-command-review-active on conversations container
|
|
27
|
-
const reviewActive = !!document.querySelector('.run-command-review-active');
|
|
28
|
-
|
|
29
|
-
// Also check clickable elements (Cursor uses divs with cursor-pointer, not buttons)
|
|
30
|
-
// Note: Cursor concatenates button text with shortcut key labels (e.g. "SkipEsc", "Run⏎")
|
|
31
|
-
const clickableEls = [...document.querySelectorAll('button, [role="button"], .cursor-pointer')].filter(b =>
|
|
32
|
-
b.offsetWidth > 0 && /^(accept|reject|approve|deny|run|skip|allow|cancel)/i.test((b.textContent || b.getAttribute('aria-label') || '').trim())
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
if (reviewActive || clickableEls.length > 0) {
|
|
36
|
-
status = 'waiting_approval';
|
|
37
|
-
const reviewContainer = document.querySelector('.run-command-review-active');
|
|
38
|
-
const renderedMsgs = reviewContainer?.querySelectorAll('.composer-rendered-message');
|
|
39
|
-
const lastRendered = renderedMsgs?.length ? renderedMsgs[renderedMsgs.length - 1] : null;
|
|
40
|
-
const toolMsg = lastRendered || reviewContainer?.querySelector('.composer-tool-former-message:last-of-type');
|
|
41
|
-
activeModal = {
|
|
42
|
-
message: toolMsg?.textContent?.trim()?.substring(0, 200) || 'Command approval required',
|
|
43
|
-
buttons: clickableEls.map(b => b.textContent.trim().replace(/[⏎↵]/g, '').trim()).filter(Boolean),
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const msgs = [];
|
|
48
|
-
document.querySelectorAll('.composer-human-ai-pair-container').forEach((p, i) => {
|
|
49
|
-
if (p.children.length === 0) return; // skip virtual-scroll placeholders
|
|
50
|
-
const h = p.querySelector('.composer-human-message');
|
|
51
|
-
if (h) {
|
|
52
|
-
const userText = (h.innerText || '').trim().substring(0, 6000);
|
|
53
|
-
if (userText) msgs.push({ role: 'user', content: userText, index: msgs.length });
|
|
54
|
-
}
|
|
55
|
-
// Iterate direct children after the first (user message block)
|
|
56
|
-
for (let ci = 1; ci < p.children.length; ci++) {
|
|
57
|
-
const b = p.children[ci];
|
|
58
|
-
if ((b.className || '').includes('opacity-50')) continue;
|
|
59
|
-
const t = (b.innerText || '').trim();
|
|
60
|
-
if (t.length < 2) continue;
|
|
61
|
-
// Filter noise: "Thought for Xs", "Explored N files", step group timing headers (e.g. "Crafting a minimal response\n1s")
|
|
62
|
-
if (/^Thought\nfor \d+s?$/i.test(t) || /^Explored\n/i.test(t)) continue;
|
|
63
|
-
if (/^.{1,80}\n\d+s$/.test(t) && !t.includes('\n\n')) continue; // step-group collapsible header with timing
|
|
64
|
-
// Skip step-group collapsible headers (e.g. "Crafting a minimal response\n1s")
|
|
65
|
-
if (b.querySelector('.ui-step-group-collapsible, .ui-collapsible-header') &&
|
|
66
|
-
!b.querySelector('.composer-rendered-message, .composer-tool-former-message, .composer-diff-block')) continue;
|
|
67
|
-
const hasTool = b.querySelector('.composer-tool-former-message, .composer-diff-block, .composer-code-block-container');
|
|
68
|
-
msgs.push({ role: hasTool ? 'tool' : 'assistant', content: t.substring(0, 6000), index: msgs.length });
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
const inputEl = document.querySelector('.aislash-editor-input[contenteditable="true"]');
|
|
72
|
-
const inputContent = inputEl?.textContent?.trim() || '';
|
|
73
|
-
const titleParts = document.title.split(' — ');
|
|
74
|
-
const projectTitle = (titleParts.length >= 2 ? titleParts[titleParts.length - 2] : titleParts[0] || '').trim();
|
|
75
|
-
return JSON.stringify({ id, status, title: projectTitle, messages: msgs, inputContent, activeModal });
|
|
76
|
-
} catch(e) {
|
|
77
|
-
return JSON.stringify({ id: '', status: 'error', messages: [] });
|
|
78
|
-
}
|
|
79
|
-
})()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|