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.
43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
// Vue 3 application entry point for Obelisk.
|
|
|
|
import { createApp } from 'vue';
|
|
import App from './App.vue';
|
|
import router from './router.js';
|
|
import { loadInitialData } from './data.js';
|
|
import { noteSessionUpdated, sessionLiveState } from './session-live.mjs';
|
|
|
|
// Import all original CSS globally
|
|
import '../styles/base.css';
|
|
import '../styles/sidebar.css';
|
|
import '../styles/toolbar.css';
|
|
import '../styles/list.css';
|
|
import '../styles/detail.css';
|
|
|
|
const app = createApp(App);
|
|
|
|
app.use(router);
|
|
|
|
// Load data on startup
|
|
router.isReady().then(() => {
|
|
loadInitialData();
|
|
});
|
|
|
|
// Refresh data when window regains focus
|
|
document.addEventListener('visibilitychange', () => {
|
|
if (document.visibilityState === 'visible') {
|
|
loadInitialData();
|
|
}
|
|
});
|
|
|
|
window.obelisk?.onIndexUpdated?.(() => {
|
|
loadInitialData();
|
|
});
|
|
|
|
window.obelisk?.onSessionUpdated?.(({ sessionId } = {}) => {
|
|
const route = router.currentRoute.value;
|
|
const currentSessionId = route.name === 'SessionDetail' ? String(route.params.id || '') : null;
|
|
noteSessionUpdated(sessionLiveState, sessionId, currentSessionId);
|
|
});
|
|
|
|
app.mount('#app');
|