@adhdev/daemon-core 0.5.26 → 0.5.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.5.26",
3
+ "version": "0.5.27",
4
4
  "description": "ADHDev daemon core — CDP, IDE detection, providers, command execution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -55,7 +55,7 @@
55
55
  editor.dispatchEvent(enterEvent);
56
56
  }, 100);
57
57
 
58
- return JSON.stringify({ success: true, message: message.substring(0, 100) });
58
+ return JSON.stringify({ sent: true, success: true, message: message.substring(0, 100) });
59
59
  } catch (e) {
60
60
  return JSON.stringify({ error: e.message || String(e) });
61
61
  }
@@ -30,7 +30,8 @@
30
30
  if (animMarkdown && animMarkdown.offsetWidth > 0) status = 'generating';
31
31
  }
32
32
 
33
- const title = document.title.split(' \u2014 ')[0].trim() || 'Active Session';
33
+ const titleParts = document.title.split(' \u2014 ');
34
+ const title = (titleParts.length >= 2 ? titleParts[titleParts.length - 1] : titleParts[0] || '').trim() || 'Active Session';
34
35
 
35
36
  // ─── HTML → Markdown 변환기 (대시보드가 ReactMarkdown+remarkGfm 사용) ───
36
37
  // extractCodeText: layout-independent code text extraction
@@ -30,7 +30,8 @@
30
30
  if (animMarkdown && animMarkdown.offsetWidth > 0) status = 'generating';
31
31
  }
32
32
 
33
- const title = document.title.split(' \u2014 ')[0].trim() || 'Active Session';
33
+ const titleParts = document.title.split(' \u2014 ');
34
+ const title = (titleParts.length >= 2 ? titleParts[titleParts.length - 1] : titleParts[0] || '').trim() || 'Active Session';
34
35
 
35
36
  // ─── HTML → Markdown 변환기 (대시보드가 ReactMarkdown+remarkGfm 사용) ───
36
37
  // extractCodeText: layout-independent code text extraction
@@ -30,7 +30,7 @@
30
30
  if (sessions.length === 0 && activeComposer) {
31
31
  sessions.push({
32
32
  id: activeId,
33
- title: document.title.split(' — ')[0],
33
+ title: (() => { const p = document.title.split(' — '); return p.length >= 2 ? p[p.length - 1] : p[0]; })(),
34
34
  active: true,
35
35
  index: 0,
36
36
  });
@@ -309,7 +309,7 @@
309
309
 
310
310
  // ─── Title ───
311
311
  const titleParts = document.title.split(' — ');
312
- const projectTitle = (titleParts.length >= 2 ? titleParts[titleParts.length - 2] : titleParts[0] || '').trim();
312
+ const projectTitle = (titleParts.length >= 2 ? titleParts[titleParts.length - 1] : titleParts[0] || '').trim();
313
313
 
314
314
  return JSON.stringify({ id, status, title: projectTitle, messages, inputContent, activeModal });
315
315
  } catch(e) {
@@ -83,7 +83,8 @@
83
83
  }
84
84
  }
85
85
 
86
- const title = document.title.split(' \u2014 ')[0].trim() || 'Cascade';
86
+ const titleParts = document.title.split(' \u2014 ');
87
+ const title = (titleParts.length >= 2 ? titleParts[titleParts.length - 1] : titleParts[0] || '').trim() || 'Cascade';
87
88
 
88
89
  // ─── 4. HTML → Markdown 변환기 ───
89
90
  const BLOCK_TAGS = new Set(['DIV', 'P', 'BR', 'LI', 'TR', 'SECTION', 'ARTICLE', 'HEADER', 'FOOTER']);
@@ -221,17 +221,6 @@
221
221
  }
222
222
  ]
223
223
  },
224
- "cursor": {
225
- "providerVersion": "1.0.0",
226
- "category": "ide",
227
- "name": "Cursor",
228
- "compatibility": [
229
- {
230
- "ideVersion": ">=0.49.0",
231
- "scriptDir": "scripts/0.49"
232
- }
233
- ]
234
- },
235
224
  "kiro": {
236
225
  "providerVersion": "0.0.0",
237
226
  "category": "ide",