feat(app): add Settings view, configurable claude dir, and recap docs refactor
Introduce a Settings view for configuring the Claude data directory (with WSL auto-detection on Windows), sidebar project grouping module, and an empty-state onboarding screen for SessionList. Refactor recap-patterns.md into per-card reference files under references/recap/ with separate retrieval and writing guides. Remove the legacy panel.html. On the data layer: incremental indexing via changedPaths, per-session live-update IPC (obelisk:session-updated), and session dirty-tracking in the renderer.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
const path = require('path');
|
||||
|
||||
function cleanRecapFilename(filename) {
|
||||
if (!filename) return '';
|
||||
return path.basename(String(filename));
|
||||
}
|
||||
|
||||
function buildRecapExportQuery({ cardIdx = 0, archetype = '', filename = '' } = {}) {
|
||||
const params = new URLSearchParams();
|
||||
const cardNumber = Number(cardIdx);
|
||||
params.set('card', Number.isFinite(cardNumber) ? String(cardNumber) : '0');
|
||||
if (archetype) params.set('arch', String(archetype));
|
||||
const safeFilename = cleanRecapFilename(filename);
|
||||
if (safeFilename) params.set('file', safeFilename);
|
||||
return params.toString();
|
||||
}
|
||||
|
||||
module.exports = { buildRecapExportQuery, cleanRecapFilename };
|
||||
Reference in New Issue
Block a user