@cccarv82/freya 2.1.4 → 2.1.6

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/cli/web-ui.js CHANGED
@@ -700,7 +700,7 @@
700
700
  }
701
701
  if (health) {
702
702
  health.onclick = () => {
703
- const isHealth = document.body && document.body.dataset && document.body.dataset.page === companion;
703
+ const isHealth = document.body && document.body.dataset && document.body.dataset.page === 'companion';
704
704
  if (!isHealth) window.location.href = '/companion';
705
705
  };
706
706
  }
@@ -971,7 +971,7 @@
971
971
  if (sp) sp.textContent = dirOrDefault();
972
972
  setPill('run', 'health…');
973
973
  setOut('');
974
- const r = await api('/api/companion', { dir: dirOrDefault() });
974
+ const r = await api('/api/health', { dir: dirOrDefault() });
975
975
  if (r && r.needsInit) {
976
976
  setOut(r.error || 'Workspace not initialized');
977
977
  setLast(null);
@@ -1314,7 +1314,7 @@
1314
1314
  } catch {}
1315
1315
 
1316
1316
  const isReportsPage = document.body && document.body.dataset && document.body.dataset.page === 'reports';
1317
- const isCompanionPage = document.body && document.body.dataset && document.body.dataset.page === companion;
1317
+ const isCompanionPage = document.body && document.body.dataset && document.body.dataset.page === 'companion';
1318
1318
 
1319
1319
  // Load persisted settings from the workspace + bootstrap (auto-init + auto-health)
1320
1320
  (async () => {
package/cli/web.js CHANGED
@@ -2409,6 +2409,10 @@ async function cmdWeb({ port, dir, open, dev }) {
2409
2409
  return safeJson(res, 200, { ok: true, task: updated });
2410
2410
  }
2411
2411
 
2412
+ if (req.url === '/api/health/checklist') {
2413
+ req.url = '/api/companion/checklist';
2414
+ }
2415
+
2412
2416
  if (req.url === '/api/companion/checklist') {
2413
2417
  if (!looksLikeFreyaWorkspace(workspaceDir)) {
2414
2418
  return safeJson(res, 200, { ok: false, needsInit: true, error: 'Workspace not initialized', items: [] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cccarv82/freya",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "Personal AI Assistant with local-first persistence",
5
5
  "scripts": {
6
6
  "health": "node scripts/validate-data.js",