@cccarv82/freya 2.1.2 → 2.1.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 (2) hide show
  1. package/cli/web-ui.js +10 -5
  2. package/package.json +1 -1
package/cli/web-ui.js CHANGED
@@ -868,7 +868,8 @@
868
868
  const r = await api('/api/pick-dir', {});
869
869
  if (r && r.dir) {
870
870
  $('dir').value = r.dir;
871
- $('sidePath').textContent = r.dir;
871
+ const sp = $('sidePath');
872
+ if (sp) sp.textContent = r.dir;
872
873
  }
873
874
  saveLocal();
874
875
  setPill('ok', 'ready');
@@ -902,7 +903,8 @@
902
903
  async function doUpdate() {
903
904
  try {
904
905
  saveLocal();
905
- $('sidePath').textContent = dirOrDefault();
906
+ const sp = $('sidePath');
907
+ if (sp) sp.textContent = dirOrDefault();
906
908
  setPill('run', 'update…');
907
909
  setOut('');
908
910
  const r = await api('/api/update', { dir: dirOrDefault() });
@@ -965,7 +967,8 @@
965
967
  async function doHealth() {
966
968
  try {
967
969
  saveLocal();
968
- $('sidePath').textContent = dirOrDefault();
970
+ const sp = $('sidePath');
971
+ if (sp) sp.textContent = dirOrDefault();
969
972
  setPill('run', 'health…');
970
973
  setOut('');
971
974
  const r = await api('/api/health', { dir: dirOrDefault() });
@@ -990,7 +993,8 @@
990
993
  async function doMigrate() {
991
994
  try {
992
995
  saveLocal();
993
- $('sidePath').textContent = dirOrDefault();
996
+ const sp = $('sidePath');
997
+ if (sp) sp.textContent = dirOrDefault();
994
998
  setPill('run', 'migrate…');
995
999
  setOut('');
996
1000
  const r = await api('/api/migrate', { dir: dirOrDefault() });
@@ -1006,7 +1010,8 @@
1006
1010
  async function runReport(name) {
1007
1011
  try {
1008
1012
  saveLocal();
1009
- $('sidePath').textContent = dirOrDefault();
1013
+ const sp = $('sidePath');
1014
+ if (sp) sp.textContent = dirOrDefault();
1010
1015
  setPill('run', name + '…');
1011
1016
  setOut('');
1012
1017
  const r = await api('/api/report', { dir: dirOrDefault(), script: name });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cccarv82/freya",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Personal AI Assistant with local-first persistence",
5
5
  "scripts": {
6
6
  "health": "node scripts/validate-data.js",