aifastdb-devplan 1.6.2 → 1.6.3

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 (57) hide show
  1. package/dist/dev-plan-factory.d.ts.map +1 -1
  2. package/dist/dev-plan-factory.js +2 -1
  3. package/dist/dev-plan-factory.js.map +1 -1
  4. package/dist/dev-plan-graph-store.d.ts +278 -9
  5. package/dist/dev-plan-graph-store.d.ts.map +1 -1
  6. package/dist/dev-plan-graph-store.js +2057 -215
  7. package/dist/dev-plan-graph-store.js.map +1 -1
  8. package/dist/dev-plan-interface.d.ts +96 -1
  9. package/dist/dev-plan-interface.d.ts.map +1 -1
  10. package/dist/mcp-server/index.js +533 -0
  11. package/dist/mcp-server/index.js.map +1 -1
  12. package/dist/shard-config.d.ts +64 -0
  13. package/dist/shard-config.d.ts.map +1 -0
  14. package/dist/shard-config.js +109 -0
  15. package/dist/shard-config.js.map +1 -0
  16. package/dist/types.d.ts +218 -2
  17. package/dist/types.d.ts.map +1 -1
  18. package/dist/types.js.map +1 -1
  19. package/dist/visualize/graph-canvas/styles.d.ts.map +1 -1
  20. package/dist/visualize/graph-canvas/styles.js +10 -0
  21. package/dist/visualize/graph-canvas/styles.js.map +1 -1
  22. package/dist/visualize/server.js +222 -0
  23. package/dist/visualize/server.js.map +1 -1
  24. package/dist/visualize/template-core.d.ts.map +1 -1
  25. package/dist/visualize/template-core.js +13 -6
  26. package/dist/visualize/template-core.js.map +1 -1
  27. package/dist/visualize/template-detail-panel.d.ts.map +1 -1
  28. package/dist/visualize/template-detail-panel.js +74 -3
  29. package/dist/visualize/template-detail-panel.js.map +1 -1
  30. package/dist/visualize/template-graph-3d.d.ts.map +1 -1
  31. package/dist/visualize/template-graph-3d.js +4 -2
  32. package/dist/visualize/template-graph-3d.js.map +1 -1
  33. package/dist/visualize/template-graph-vis.d.ts.map +1 -1
  34. package/dist/visualize/template-graph-vis.js +13 -2
  35. package/dist/visualize/template-graph-vis.js.map +1 -1
  36. package/dist/visualize/template-html.d.ts +1 -1
  37. package/dist/visualize/template-html.d.ts.map +1 -1
  38. package/dist/visualize/template-html.js +153 -2
  39. package/dist/visualize/template-html.js.map +1 -1
  40. package/dist/visualize/template-md-viewer.d.ts +11 -0
  41. package/dist/visualize/template-md-viewer.d.ts.map +1 -0
  42. package/dist/visualize/template-md-viewer.js +806 -0
  43. package/dist/visualize/template-md-viewer.js.map +1 -0
  44. package/dist/visualize/template-pages.d.ts.map +1 -1
  45. package/dist/visualize/template-pages.js +1087 -1
  46. package/dist/visualize/template-pages.js.map +1 -1
  47. package/dist/visualize/template-stats-modal.d.ts.map +1 -1
  48. package/dist/visualize/template-stats-modal.js +70 -10
  49. package/dist/visualize/template-stats-modal.js.map +1 -1
  50. package/dist/visualize/template-styles.d.ts.map +1 -1
  51. package/dist/visualize/template-styles.js +137 -1
  52. package/dist/visualize/template-styles.js.map +1 -1
  53. package/dist/visualize/template.d.ts +1 -0
  54. package/dist/visualize/template.d.ts.map +1 -1
  55. package/dist/visualize/template.js +6 -0
  56. package/dist/visualize/template.js.map +1 -1
  57. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"template-pages.js","sourceRoot":"","sources":["../../src/visualize/template-pages.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAEH,wCA4xBC;AA5xBD,SAAgB,cAAc;IAC5B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAw1DR,CAAC;AACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"template-stats-modal.d.ts","sourceRoot":"","sources":["../../src/visualize/template-stats-modal.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wBAAgB,mBAAmB,IAAI,MAAM,CA4Y5C"}
1
+ {"version":3,"file":"template-stats-modal.d.ts","sourceRoot":"","sources":["../../src/visualize/template-stats-modal.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wBAAgB,mBAAmB,IAAI,MAAM,CAwc5C"}
@@ -186,14 +186,22 @@ function showPromptModal() {
186
186
 
187
187
  // 唯一展开 ID
188
188
  var expandId = 'prompt-expand-' + date + '-' + ii;
189
+ var chevronId = 'prompt-chevron-' + date + '-' + ii;
190
+ // 用于复制的数据 ID
191
+ var rawDataId = 'prompt-raw-' + date + '-' + ii;
192
+ var aiDataId = 'prompt-ai-' + date + '-' + ii;
189
193
 
190
- html += '<div class="stats-modal-item" style="flex-direction:column;align-items:flex-start;gap:4px;padding:10px 20px;cursor:pointer;" onclick="togglePromptExpand(\\'' + expandId + '\\')">';
194
+ html += '<div class="stats-modal-item" style="flex-direction:column;align-items:flex-start;gap:4px;padding:0;cursor:default;">';
191
195
 
192
- // 第一行:序号 + 摘要/预览 + 时间
196
+ // 可点击的头部区域(点击 toggle 折叠/展开)
197
+ html += '<div class="prompt-item-header" style="display:flex;flex-direction:column;gap:4px;width:100%;padding:10px 20px;cursor:pointer;" onclick="togglePromptExpand(\\'' + expandId + '\\',\\'' + chevronId + '\\')">';
198
+
199
+ // 第一行:序号 + 摘要/预览 + 时间 + 折叠指示器
193
200
  html += '<div style="display:flex;align-items:center;gap:8px;width:100%;">';
194
201
  html += '<span style="font-size:12px;font-weight:700;color:#ec4899;flex-shrink:0;">#' + (p.promptIndex || (ii + 1)) + '</span>';
195
202
  html += '<span class="stats-modal-item-name" title="' + escHtml(summaryText || contentPreview) + '" style="font-size:13px;">' + escHtml(summaryText || contentPreview) + '</span>';
196
203
  html += '<span style="font-size:10px;color:#6b7280;flex-shrink:0;margin-left:auto;white-space:nowrap;">' + timeStr + '</span>';
204
+ html += '<span id="' + chevronId + '" style="font-size:10px;color:#6b7280;flex-shrink:0;transition:transform 0.2s;display:inline-block;">▶</span>';
197
205
  html += '</div>';
198
206
 
199
207
  // 标签行
@@ -206,20 +214,26 @@ function showPromptModal() {
206
214
  html += '</div>';
207
215
  }
208
216
 
209
- // 展开区域(默认隐藏)— 用户原始输入 + AI 理解
210
- html += '<div id="' + expandId + '" style="display:none;width:100%;padding-top:6px;border-top:1px solid rgba(75,85,99,0.3);margin-top:4px;">';
217
+ html += '</div>'; // end header
218
+
219
+ // 展开区域(默认隐藏)— 用户原始输入 + AI 理解(点击内容区域不折叠)
220
+ html += '<div id="' + expandId + '" style="display:none;width:100%;padding:6px 20px 10px;border-top:1px solid rgba(75,85,99,0.3);">';
211
221
 
212
222
  // 用户原始输入
213
223
  html += '<div style="margin-bottom:8px;">';
214
- html += '<div style="font-size:10px;font-weight:600;color:#9ca3af;margin-bottom:3px;display:flex;align-items:center;gap:4px;">💬 用户原始输入</div>';
215
- html += '<div style="font-size:12px;color:#d1d5db;background:rgba(31,41,55,0.5);padding:8px 10px;border-radius:6px;border:1px solid rgba(75,85,99,0.3);white-space:pre-wrap;word-break:break-word;max-height:200px;overflow-y:auto;line-height:1.5;">' + escHtml(rawContent || '(未记录)') + '</div>';
224
+ html += '<div style="font-size:10px;font-weight:600;color:#9ca3af;margin-bottom:3px;display:flex;align-items:center;gap:4px;">💬 用户原始输入';
225
+ html += '<button class="prompt-copy-btn" onclick="event.stopPropagation();copyPromptText(\\'' + rawDataId + '\\')" title="复制原始输入" style="margin-left:auto;background:none;border:1px solid rgba(107,114,128,0.4);border-radius:4px;padding:1px 6px;cursor:pointer;color:#9ca3af;font-size:10px;display:flex;align-items:center;gap:3px;transition:all 0.15s;"><span style="font-size:11px;">📋</span> 复制</button>';
226
+ html += '</div>';
227
+ html += '<div id="' + rawDataId + '" style="font-size:12px;color:#d1d5db;background:rgba(31,41,55,0.5);padding:8px 10px;border-radius:6px;border:1px solid rgba(75,85,99,0.3);white-space:pre-wrap;word-break:break-word;max-height:200px;overflow-y:auto;line-height:1.5;">' + escHtml(rawContent || '(未记录)') + '</div>';
216
228
  html += '</div>';
217
229
 
218
230
  // AI 理解
219
231
  if (aiText) {
220
232
  html += '<div style="margin-bottom:4px;">';
221
- html += '<div style="font-size:10px;font-weight:600;color:#9ca3af;margin-bottom:3px;display:flex;align-items:center;gap:4px;">🤖 AI 理解</div>';
222
- html += '<div style="font-size:12px;color:#a5b4fc;background:rgba(67,56,202,0.12);padding:8px 10px;border-radius:6px;border:1px solid rgba(99,102,241,0.2);white-space:pre-wrap;word-break:break-word;max-height:200px;overflow-y:auto;line-height:1.5;">' + escHtml(aiText) + '</div>';
233
+ html += '<div style="font-size:10px;font-weight:600;color:#9ca3af;margin-bottom:3px;display:flex;align-items:center;gap:4px;">🤖 AI 理解';
234
+ html += '<button class="prompt-copy-btn" onclick="event.stopPropagation();copyPromptText(\\'' + aiDataId + '\\')" title="复制 AI 理解" style="margin-left:auto;background:none;border:1px solid rgba(107,114,128,0.4);border-radius:4px;padding:1px 6px;cursor:pointer;color:#9ca3af;font-size:10px;display:flex;align-items:center;gap:3px;transition:all 0.15s;"><span style="font-size:11px;">📋</span> 复制</button>';
235
+ html += '</div>';
236
+ html += '<div id="' + aiDataId + '" style="font-size:12px;color:#a5b4fc;background:rgba(67,56,202,0.12);padding:8px 10px;border-radius:6px;border:1px solid rgba(99,102,241,0.2);white-space:pre-wrap;word-break:break-word;max-height:200px;overflow-y:auto;line-height:1.5;">' + escHtml(aiText) + '</div>';
223
237
  html += '</div>';
224
238
  }
225
239
 
@@ -234,17 +248,63 @@ function showPromptModal() {
234
248
  });
235
249
  }
236
250
 
237
- /** 切换 Prompt 展开/折叠 */
238
- function togglePromptExpand(expandId) {
251
+ /** 切换 Prompt 展开/折叠(带 chevron 旋转指示) */
252
+ function togglePromptExpand(expandId, chevronId) {
239
253
  var el = document.getElementById(expandId);
240
254
  if (!el) return;
255
+ var chevron = chevronId ? document.getElementById(chevronId) : null;
241
256
  if (el.style.display === 'none') {
242
257
  el.style.display = 'block';
258
+ if (chevron) chevron.style.transform = 'rotate(90deg)';
243
259
  } else {
244
260
  el.style.display = 'none';
261
+ if (chevron) chevron.style.transform = 'rotate(0deg)';
262
+ }
263
+ }
264
+
265
+ /** 复制 Prompt 文本到剪贴板(用户原始输入 / AI 理解) */
266
+ function copyPromptText(elId) {
267
+ var el = document.getElementById(elId);
268
+ if (!el) return;
269
+ var text = el.textContent || el.innerText || '';
270
+ if (!text.trim()) return;
271
+
272
+ if (navigator.clipboard && navigator.clipboard.writeText) {
273
+ navigator.clipboard.writeText(text).then(function() {
274
+ showCopyFeedback(elId);
275
+ }).catch(function() {
276
+ fallbackCopy(text, elId);
277
+ });
278
+ } else {
279
+ fallbackCopy(text, elId);
245
280
  }
246
281
  }
247
282
 
283
+ /** 剪贴板 fallback(兼容旧浏览器) */
284
+ function fallbackCopy(text, elId) {
285
+ var ta = document.createElement('textarea');
286
+ ta.value = text;
287
+ ta.style.position = 'fixed';
288
+ ta.style.left = '-9999px';
289
+ document.body.appendChild(ta);
290
+ ta.select();
291
+ try { document.execCommand('copy'); showCopyFeedback(elId); } catch(e) {}
292
+ document.body.removeChild(ta);
293
+ }
294
+
295
+ /** 复制成功提示:短暂高亮边框 */
296
+ function showCopyFeedback(elId) {
297
+ var el = document.getElementById(elId);
298
+ if (!el) return;
299
+ var origBorder = el.style.borderColor;
300
+ el.style.borderColor = '#34d399';
301
+ el.style.boxShadow = '0 0 0 1px rgba(52,211,153,0.3)';
302
+ setTimeout(function() {
303
+ el.style.borderColor = origBorder;
304
+ el.style.boxShadow = 'none';
305
+ }, 800);
306
+ }
307
+
248
308
  function closeStatsModal() {
249
309
  document.getElementById('statsModalOverlay').classList.remove('active');
250
310
  }
@@ -1 +1 @@
1
- {"version":3,"file":"template-stats-modal.js","sourceRoot":"","sources":["../../src/visualize/template-stats-modal.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAEH,kDA4YC;AA5YD,SAAgB,mBAAmB;IACjC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0YR,CAAC;AACF,CAAC"}
1
+ {"version":3,"file":"template-stats-modal.js","sourceRoot":"","sources":["../../src/visualize/template-stats-modal.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAEH,kDAwcC;AAxcD,SAAgB,mBAAmB;IACjC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAscR,CAAC;AACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"template-styles.d.ts","sourceRoot":"","sources":["../../src/visualize/template-styles.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,wBAAgB,SAAS,IAAI,MAAM,CA2dlC"}
1
+ {"version":3,"file":"template-styles.d.ts","sourceRoot":"","sources":["../../src/visualize/template-styles.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,wBAAgB,SAAS,IAAI,MAAM,CAmmBlC"}
@@ -104,6 +104,7 @@ function getStyles() {
104
104
  .panel-header.main-task { background: linear-gradient(135deg, #4f46e5, #6366f1); }
105
105
  .panel-header.sub-task { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
106
106
  .panel-header.document { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
107
+ .panel-header.memory { background: linear-gradient(135deg, #a21caf, #e879f9); }
107
108
  .panel-title { font-weight: 600; font-size: 14px; color: #fff; pointer-events: none; }
108
109
  .panel-close { background: rgba(255,255,255,0.2); border: none; color: #fff; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
109
110
  .panel-close:hover { background: rgba(255,255,255,0.3); }
@@ -165,6 +166,7 @@ function getStyles() {
165
166
  .legend-icon.circle { background: #22c55e; border-radius: 50%; }
166
167
  .legend-icon.dot { background: #047857; border-radius: 50%; width: 8px; height: 8px; }
167
168
  .legend-icon.square { background: #3b82f6; border-radius: 2px; width: 10px; height: 10px; }
169
+ .legend-icon.hexagon { background: #e879f9; clip-path: polygon(25% 0%,75% 0%,100% 50%,75% 100%,25% 100%,0% 50%); }
168
170
  .legend-line { width: 24px; height: 2px; }
169
171
  .legend-line.solid { background: #6b7280; }
170
172
  .legend-line.thin { background: #6b7280; height: 1px; }
@@ -209,7 +211,8 @@ function getStyles() {
209
211
  .page-graph.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
210
212
 
211
213
  /* Settings Page */
212
- .settings-page { padding: 32px 48px; overflow-y: auto; background: #111827; flex: 1; width: 100%; }
214
+ .settings-page { padding: 32px 48px; overflow-y: auto; background: #111827; flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; }
215
+ .settings-page > h2, .settings-page > p, .settings-page > .settings-grid { width: 800px; max-width: 100%; }
213
216
  .settings-page h2 { font-size: 22px; font-weight: 700; color: #f3f4f6; margin-bottom: 4px; }
214
217
  .settings-page .settings-subtitle { font-size: 13px; color: #6b7280; margin-bottom: 28px; }
215
218
  .settings-grid { display: flex; flex-direction: column; gap: 28px; }
@@ -263,6 +266,135 @@ function getStyles() {
263
266
  .s3d-reset-btn { margin-top: 8px; padding: 6px 14px; border: 1px solid #374151; border-radius: 6px; background: transparent; color: #9ca3af; font-size: 11px; cursor: pointer; transition: all 0.2s; align-self: flex-start; }
264
267
  .s3d-reset-btn:hover { background: #1e293b; color: #e5e7eb; border-color: #4b5563; }
265
268
 
269
+ /* ===== Memory Browser ===== */
270
+ .memory-page { padding: 24px 32px; overflow-y: auto; background: #111827; flex: 1; display: flex; flex-direction: column; }
271
+ .memory-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
272
+ .memory-header-left h2 { font-size: 22px; font-weight: 700; color: #f3f4f6; margin-bottom: 4px; }
273
+ .memory-header-desc { font-size: 13px; color: #6b7280; }
274
+ .memory-count { font-size: 13px; color: #9ca3af; background: #1f2937; border: 1px solid #374151; border-radius: 8px; padding: 6px 14px; white-space: nowrap; }
275
+ .memory-filters { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
276
+ .memory-filter-btn { background: #1f2937; border: 1px solid #374151; border-radius: 8px; padding: 6px 14px; color: #9ca3af; font-size: 12px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
277
+ .memory-filter-btn:hover { background: #374151; color: #e5e7eb; }
278
+ .memory-filter-btn.active { background: #312e81; border-color: #6366f1; color: #a5b4fc; }
279
+ /* Memory View Toggle */
280
+ .memory-view-toggle { display: flex; gap: 2px; background: #1f2937; border: 1px solid #374151; border-radius: 8px; padding: 2px; margin-right: 12px; }
281
+ .memory-view-btn { background: transparent; border: none; border-radius: 6px; padding: 5px 12px; color: #9ca3af; font-size: 12px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
282
+ .memory-view-btn:hover { color: #e5e7eb; background: #374151; }
283
+ .memory-view-btn.active { background: #312e81; color: #a5b4fc; }
284
+ .memory-header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
285
+
286
+ /* Memory Graph Container */
287
+ .memory-graph-container { flex: 1; position: relative; border-radius: 12px; overflow: hidden; background: #0f172a; border: 1px solid #1e293b; min-height: 400px; }
288
+ .memory-graph-loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #6b7280; font-size: 13px; z-index: 10; }
289
+ .memory-graph-legend { position: absolute; bottom: 16px; left: 16px; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(8px); border: 1px solid #1e293b; border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; z-index: 10; }
290
+ .mg-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #9ca3af; }
291
+ .mg-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
292
+ .memory-graph-stats { position: absolute; top: 16px; right: 16px; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(8px); border: 1px solid #1e293b; border-radius: 10px; padding: 8px 14px; font-size: 11px; color: #9ca3af; z-index: 10; }
293
+
294
+ .memory-list { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
295
+ .memory-card { background: #1f2937; border: 1px solid #374151; border-radius: 10px; padding: 16px 20px; transition: all 0.2s; position: relative; overflow: hidden; }
296
+ .memory-card:hover { border-color: #4b5563; background: #1e293b; }
297
+ .memory-card::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; }
298
+ .memory-card.type-decision::before { background: linear-gradient(180deg, #6366f1, #818cf8); }
299
+ .memory-card.type-bugfix::before { background: linear-gradient(180deg, #ef4444, #f87171); }
300
+ .memory-card.type-pattern::before { background: linear-gradient(180deg, #06b6d4, #22d3ee); }
301
+ .memory-card.type-insight::before { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
302
+ .memory-card.type-preference::before { background: linear-gradient(180deg, #8b5cf6, #a78bfa); }
303
+ .memory-card.type-summary::before { background: linear-gradient(180deg, #10b981, #34d399); }
304
+ .memory-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
305
+ .memory-type-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
306
+ .memory-type-badge.decision { background: #312e81; color: #a5b4fc; }
307
+ .memory-type-badge.bugfix { background: #7f1d1d; color: #fca5a5; }
308
+ .memory-type-badge.pattern { background: #164e63; color: #67e8f9; }
309
+ .memory-type-badge.insight { background: #78350f; color: #fde68a; }
310
+ .memory-type-badge.preference { background: #4c1d95; color: #c4b5fd; }
311
+ .memory-type-badge.summary { background: #064e3b; color: #6ee7b7; }
312
+ .memory-importance { display: flex; align-items: center; gap: 3px; font-size: 10px; color: #6b7280; margin-left: auto; }
313
+ .memory-importance-bar { width: 40px; height: 4px; background: #374151; border-radius: 2px; overflow: hidden; }
314
+ .memory-importance-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, #6366f1, #a78bfa); }
315
+ .memory-card-content { font-size: 13px; color: #d1d5db; line-height: 1.6; word-break: break-word; }
316
+ .memory-card-footer { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
317
+ .memory-tag { font-size: 10px; padding: 2px 8px; border-radius: 4px; background: #1e293b; color: #64748b; border: 1px solid #334155; }
318
+ .memory-meta { font-size: 10px; color: #4b5563; margin-left: auto; display: flex; gap: 12px; }
319
+ .memory-empty { text-align: center; padding: 60px; color: #6b7280; font-size: 13px; }
320
+ .memory-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
321
+
322
+ /* Memory Generate Button Group */
323
+ .memory-generate-group { display: inline-flex; position: relative; margin-right: 10px; }
324
+ .memory-generate-btn { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border: none; border-radius: 8px 0 0 8px; padding: 7px 16px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
325
+ .memory-generate-btn:hover { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 0 16px rgba(99, 102, 241, 0.4); }
326
+ .memory-generate-dropdown-btn { background: #4f46e5; color: #c7d2fe; border: none; border-left: 1px solid rgba(255,255,255,0.15); border-radius: 0 8px 8px 0; padding: 7px 8px; font-size: 10px; cursor: pointer; transition: all 0.2s; }
327
+ .memory-generate-dropdown-btn:hover { background: #4338ca; }
328
+ .memory-generate-dropdown { display: none; position: absolute; top: 100%; right: 0; margin-top: 4px; min-width: 220px; background: #1f2937; border: 1px solid #374151; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); z-index: 200; overflow: hidden; }
329
+ .memory-generate-dropdown.show { display: block; }
330
+ .memory-generate-dropdown-item { padding: 10px 16px; font-size: 12px; color: #d1d5db; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.15s; }
331
+ .memory-generate-dropdown-item:hover { background: #374151; }
332
+ .memory-generate-dropdown-item .mg-icon { font-size: 14px; width: 18px; text-align: center; }
333
+ .memory-generate-dropdown-sep { height: 1px; background: #374151; margin: 2px 0; }
334
+
335
+ /* Memory Generate Overlay (Candidate Preview Modal) */
336
+ .mem-gen-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; }
337
+ .mem-gen-modal { background: #111827; border: 1px solid #374151; border-radius: 16px; width: 90%; max-width: 900px; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 24px 80px rgba(0,0,0,0.6); }
338
+ .mem-gen-modal-header { display: flex; align-items: center; gap: 12px; padding: 20px 24px 12px; border-bottom: 1px solid #1f2937; }
339
+ .mem-gen-modal-header h3 { font-size: 18px; font-weight: 700; color: #f3f4f6; margin: 0; }
340
+ .mem-gen-modal-stats { font-size: 11px; color: #6b7280; margin-left: auto; }
341
+ .mem-gen-close-btn { background: none; border: none; color: #6b7280; font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: all 0.2s; margin-left: 8px; }
342
+ .mem-gen-close-btn:hover { background: #1f2937; color: #f87171; }
343
+ .mem-gen-modal-actions { display: flex; gap: 8px; padding: 12px 24px; border-bottom: 1px solid #1f2937; flex-wrap: wrap; }
344
+ .mem-gen-action-btn { background: #1f2937; border: 1px solid #374151; border-radius: 8px; padding: 6px 14px; color: #9ca3af; font-size: 11px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
345
+ .mem-gen-action-btn:hover { background: #374151; color: #e5e7eb; }
346
+ .mem-gen-action-btn.primary { background: linear-gradient(135deg, #059669, #10b981); border-color: transparent; color: #fff; font-weight: 600; }
347
+ .mem-gen-action-btn.primary:hover { background: linear-gradient(135deg, #047857, #059669); box-shadow: 0 0 12px rgba(16, 185, 129, 0.3); }
348
+ .mem-gen-action-btn.primary:disabled { opacity: 0.5; cursor: default; box-shadow: none; }
349
+ .mem-gen-sep { width: 1px; height: 20px; background: #374151; margin: 0 4px; }
350
+ .mem-gen-limit-label { display: flex; align-items: center; gap: 4px; color: #9ca3af; font-size: 11px; white-space: nowrap; }
351
+ .mem-gen-limit-label input[type="checkbox"] { accent-color: #10b981; width: 14px; height: 14px; cursor: pointer; }
352
+ .mem-gen-limit-select { background: #1f2937; border: 1px solid #374151; border-radius: 6px; color: #e5e7eb; font-size: 11px; padding: 3px 6px; cursor: pointer; outline: none; }
353
+ .mem-gen-limit-select:focus { border-color: #6366f1; }
354
+ .mem-gen-candidate-list { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 8px; }
355
+
356
+ /* Candidate Card */
357
+ .mem-gen-candidate { background: #1f2937; border: 1px solid #374151; border-radius: 10px; padding: 14px 16px; display: flex; gap: 12px; transition: all 0.2s; cursor: pointer; }
358
+ .mem-gen-candidate:hover { border-color: #4b5563; background: #1e293b; }
359
+ .mem-gen-candidate.selected { border-color: #6366f1; background: #1e1b4b; }
360
+ .mem-gen-candidate.has-memory { opacity: 0.5; }
361
+ .mem-gen-candidate.has-memory.selected { opacity: 1; }
362
+ .mem-gen-candidate-check { flex-shrink: 0; width: 20px; height: 20px; border-radius: 5px; border: 2px solid #4b5563; display: flex; align-items: center; justify-content: center; font-size: 12px; transition: all 0.2s; margin-top: 2px; }
363
+ .mem-gen-candidate.selected .mem-gen-candidate-check { background: #6366f1; border-color: #6366f1; color: #fff; }
364
+ .mem-gen-candidate-body { flex: 1; min-width: 0; }
365
+ .mem-gen-candidate-title { font-size: 13px; font-weight: 600; color: #e5e7eb; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
366
+ .mem-gen-candidate-source { font-size: 10px; padding: 1px 6px; border-radius: 3px; }
367
+ .mem-gen-candidate-source.task { background: #064e3b; color: #6ee7b7; }
368
+ .mem-gen-candidate-source.document { background: #1e3a5f; color: #93c5fd; }
369
+ .mem-gen-candidate-preview { font-size: 11px; color: #9ca3af; line-height: 1.5; max-height: 60px; overflow: hidden; word-break: break-word; }
370
+ .mem-gen-candidate-meta { display: flex; gap: 8px; margin-top: 6px; align-items: center; flex-wrap: wrap; }
371
+ .mem-gen-candidate-type { font-size: 10px; padding: 1px 6px; border-radius: 3px; }
372
+ .mem-gen-candidate-type.decision { background: #312e81; color: #a5b4fc; }
373
+ .mem-gen-candidate-type.bugfix { background: #7f1d1d; color: #fca5a5; }
374
+ .mem-gen-candidate-type.pattern { background: #164e63; color: #67e8f9; }
375
+ .mem-gen-candidate-type.insight { background: #78350f; color: #fde68a; }
376
+ .mem-gen-candidate-type.preference { background: #4c1d95; color: #c4b5fd; }
377
+ .mem-gen-candidate-type.summary { background: #064e3b; color: #6ee7b7; }
378
+ .mem-gen-candidate-existing { font-size: 9px; color: #f59e0b; }
379
+ .mem-gen-candidate-importance { font-size: 10px; color: #6b7280; }
380
+
381
+ /* Auto-import dropdown highlight */
382
+ .memory-generate-dropdown-item.auto-import { background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(16,185,129,0.08)); }
383
+ .memory-generate-dropdown-item.auto-import:hover { background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(16,185,129,0.18)); }
384
+
385
+ /* Auto-import overlay */
386
+ .mem-auto-import-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); z-index: 1001; display: flex; align-items: center; justify-content: center; }
387
+ .mem-auto-import-card { background: #1f2937; border: 1px solid #374151; border-radius: 16px; padding: 36px 48px; text-align: center; min-width: 360px; max-width: 460px; box-shadow: 0 24px 48px rgba(0,0,0,0.4); }
388
+ .mem-auto-import-icon { font-size: 40px; margin-bottom: 12px; }
389
+ .mem-auto-import-title { font-size: 18px; font-weight: 700; color: #f3f4f6; margin-bottom: 20px; }
390
+ .mem-auto-import-progress-bar { width: 100%; height: 8px; background: #111827; border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
391
+ .mem-auto-import-progress-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #10b981); border-radius: 4px; transition: width 0.3s ease; }
392
+ .mem-auto-import-status { font-size: 14px; color: #e5e7eb; margin-bottom: 6px; font-weight: 500; }
393
+ .mem-auto-import-detail { font-size: 11px; color: #6b7280; margin-bottom: 20px; min-height: 16px; }
394
+ .mem-auto-import-cancel { background: #374151; border: 1px solid #4b5563; border-radius: 8px; padding: 8px 24px; color: #9ca3af; font-size: 12px; cursor: pointer; transition: all 0.2s; }
395
+ .mem-auto-import-cancel:hover { background: #4b5563; color: #e5e7eb; }
396
+ .mem-auto-import-cancel:disabled { opacity: 0.4; cursor: default; }
397
+
266
398
  /* Stats Dashboard */
267
399
  .stats-page { padding: 24px; overflow-y: auto; background: #111827; flex: 1; }
268
400
  .stats-header { margin-bottom: 24px; }
@@ -482,6 +614,10 @@ function getStyles() {
482
614
  .stats-modal-item-badge.cancelled { background: rgba(146,64,14,0.15); color: #fbbf24; }
483
615
  .stats-modal-item-badge.active { background: rgba(16,185,129,0.15); color: #6ee7b7; }
484
616
  .stats-modal-item-sub { font-size: 11px; color: #6b7280; flex-shrink: 0; font-family: monospace; }
617
+
618
+ /* Prompt 日志弹层 — 头部 hover + 复制按钮 */
619
+ .prompt-item-header:hover { background: rgba(40,51,68,0.6); }
620
+ .prompt-copy-btn:hover { background: rgba(107,114,128,0.25) !important; color: #d1d5db !important; border-color: rgba(107,114,128,0.6) !important; }
485
621
  `;
486
622
  }
487
623
  //# sourceMappingURL=template-styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"template-styles.js","sourceRoot":"","sources":["../../src/visualize/template-styles.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAEH,8BA2dC;AA3dD,SAAgB,SAAS;IACvB,OAAO;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAimBR,CAAC;AACF,CAAC"}
@@ -14,6 +14,7 @@
14
14
  * - template-detail-panel.ts — 共享详情面板、Markdown 渲染
15
15
  * - template-stats-modal.ts — 统计弹层、手动刷新
16
16
  * - template-pages.ts — 文档浏览、RAG 聊天、统计仪表盘
17
+ * - template-md-viewer.ts — Markdown 预览器(CDN marked.js + highlight.js)
17
18
  */
18
19
  export declare function getVisualizationHTML(projectName: string): string;
19
20
  //# sourceMappingURL=template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/visualize/template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAYH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAqChE"}
1
+ {"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/visualize/template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAaH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAyChE"}
@@ -15,6 +15,7 @@
15
15
  * - template-detail-panel.ts — 共享详情面板、Markdown 渲染
16
16
  * - template-stats-modal.ts — 统计弹层、手动刷新
17
17
  * - template-pages.ts — 文档浏览、RAG 聊天、统计仪表盘
18
+ * - template-md-viewer.ts — Markdown 预览器(CDN marked.js + highlight.js)
18
19
  */
19
20
  Object.defineProperty(exports, "__esModule", { value: true });
20
21
  exports.getVisualizationHTML = getVisualizationHTML;
@@ -27,6 +28,7 @@ const template_graph_3d_1 = require("./template-graph-3d");
27
28
  const template_detail_panel_1 = require("./template-detail-panel");
28
29
  const template_stats_modal_1 = require("./template-stats-modal");
29
30
  const template_pages_1 = require("./template-pages");
31
+ const template_md_viewer_1 = require("./template-md-viewer");
30
32
  function getVisualizationHTML(projectName) {
31
33
  return `<!DOCTYPE html>
32
34
  <html lang="zh-CN">
@@ -36,6 +38,7 @@ function getVisualizationHTML(projectName) {
36
38
  <title>DevPlan - ${projectName}</title>
37
39
  <style>
38
40
  ${(0, template_styles_1.getStyles)()}
41
+ ${(0, template_md_viewer_1.getMdViewerStyles)()}
39
42
  </style>
40
43
  </head>
41
44
  ${(0, template_html_1.getHTML)(projectName)}
@@ -47,6 +50,7 @@ ${(0, template_graph_3d_1.getGraph3DScript)()}
47
50
  ${(0, template_detail_panel_1.getDetailPanelScript)()}
48
51
  ${(0, template_stats_modal_1.getStatsModalScript)()}
49
52
  ${(0, template_pages_1.getPagesScript)()}
53
+ ${(0, template_md_viewer_1.getMdViewerScript)()}
50
54
 
51
55
  // ========== App Start ==========
52
56
  function startApp() {
@@ -56,6 +60,8 @@ function startApp() {
56
60
  log('vis-network 就绪, 开始加载数据...', true);
57
61
  }
58
62
  loadData();
63
+ // 预加载 Markdown 渲染引擎 (marked.js + hljs),供文档库/详情面板使用
64
+ if (typeof mdvLoadCDN === 'function') mdvLoadCDN();
59
65
  }
60
66
 
61
67
 
@@ -1 +1 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../../src/visualize/template.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAYH,oDAqCC;AA/CD,uDAA8C;AAC9C,mDAA0C;AAC1C,mDAAgD;AAChD,6DAAyD;AACzD,mEAA+D;AAC/D,2DAAuD;AACvD,mEAA+D;AAC/D,iEAA6D;AAC7D,qDAAkD;AAElD,SAAgB,oBAAoB,CAAC,WAAmB;IACtD,OAAO;;;;;qBAKY,WAAW;;EAE9B,IAAA,2BAAS,GAAE;;;EAGX,IAAA,uBAAO,EAAC,WAAW,CAAC;;EAEpB,IAAA,6BAAa,GAAE;EACf,IAAA,sCAAiB,GAAE;EACnB,IAAA,4CAAoB,GAAE;EACtB,IAAA,oCAAgB,GAAE;EAClB,IAAA,4CAAoB,GAAE;EACtB,IAAA,0CAAmB,GAAE;EACrB,IAAA,+BAAc,GAAE;;;;;;;;;;;;;;;;;QAiBV,CAAC;AACT,CAAC"}
1
+ {"version":3,"file":"template.js","sourceRoot":"","sources":["../../src/visualize/template.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAaH,oDAyCC;AApDD,uDAA8C;AAC9C,mDAA0C;AAC1C,mDAAgD;AAChD,6DAAyD;AACzD,mEAA+D;AAC/D,2DAAuD;AACvD,mEAA+D;AAC/D,iEAA6D;AAC7D,qDAAkD;AAClD,6DAA4E;AAE5E,SAAgB,oBAAoB,CAAC,WAAmB;IACtD,OAAO;;;;;qBAKY,WAAW;;EAE9B,IAAA,2BAAS,GAAE;EACX,IAAA,sCAAiB,GAAE;;;EAGnB,IAAA,uBAAO,EAAC,WAAW,CAAC;;EAEpB,IAAA,6BAAa,GAAE;EACf,IAAA,sCAAiB,GAAE;EACnB,IAAA,4CAAoB,GAAE;EACtB,IAAA,oCAAgB,GAAE;EAClB,IAAA,4CAAoB,GAAE;EACtB,IAAA,0CAAmB,GAAE;EACrB,IAAA,+BAAc,GAAE;EAChB,IAAA,sCAAiB,GAAE;;;;;;;;;;;;;;;;;;;QAmBb,CAAC;AACT,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aifastdb-devplan",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "DevPlan — AI-powered development plan management MCP server, powered by aifastdb",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@modelcontextprotocol/sdk": "^1.0.0",
26
- "aifastdb": "^2.5.1"
26
+ "aifastdb": "^2.7.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^20.11.0",