@cccarv82/freya 2.1.1 → 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 +12 -6
  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');
@@ -881,7 +882,8 @@
881
882
  async function doInit() {
882
883
  try {
883
884
  saveLocal();
884
- $('sidePath').textContent = dirOrDefault();
885
+ const sp = $('sidePath');
886
+ if (sp) sp.textContent = dirOrDefault();
885
887
  setPill('run', 'init…');
886
888
  setOut('');
887
889
  const r = await api('/api/init', { dir: dirOrDefault() });
@@ -901,7 +903,8 @@
901
903
  async function doUpdate() {
902
904
  try {
903
905
  saveLocal();
904
- $('sidePath').textContent = dirOrDefault();
906
+ const sp = $('sidePath');
907
+ if (sp) sp.textContent = dirOrDefault();
905
908
  setPill('run', 'update…');
906
909
  setOut('');
907
910
  const r = await api('/api/update', { dir: dirOrDefault() });
@@ -964,7 +967,8 @@
964
967
  async function doHealth() {
965
968
  try {
966
969
  saveLocal();
967
- $('sidePath').textContent = dirOrDefault();
970
+ const sp = $('sidePath');
971
+ if (sp) sp.textContent = dirOrDefault();
968
972
  setPill('run', 'health…');
969
973
  setOut('');
970
974
  const r = await api('/api/health', { dir: dirOrDefault() });
@@ -989,7 +993,8 @@
989
993
  async function doMigrate() {
990
994
  try {
991
995
  saveLocal();
992
- $('sidePath').textContent = dirOrDefault();
996
+ const sp = $('sidePath');
997
+ if (sp) sp.textContent = dirOrDefault();
993
998
  setPill('run', 'migrate…');
994
999
  setOut('');
995
1000
  const r = await api('/api/migrate', { dir: dirOrDefault() });
@@ -1005,7 +1010,8 @@
1005
1010
  async function runReport(name) {
1006
1011
  try {
1007
1012
  saveLocal();
1008
- $('sidePath').textContent = dirOrDefault();
1013
+ const sp = $('sidePath');
1014
+ if (sp) sp.textContent = dirOrDefault();
1009
1015
  setPill('run', name + '…');
1010
1016
  setOut('');
1011
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.1",
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",