@cccarv82/freya 1.0.12 → 1.0.14

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.js +16 -1
  2. package/package.json +1 -1
package/cli/web.js CHANGED
@@ -868,7 +868,7 @@ function html(defaultDir) {
868
868
  }
869
869
 
870
870
  function renderMarkdown(md) {
871
- const lines = String(md || '').split(/\r?\n/);
871
+ const lines = String(md || '').split(/\\r?\\n/);
872
872
  let html = '';
873
873
  let inCode = false;
874
874
  let inList = false;
@@ -1191,6 +1191,21 @@ function html(defaultDir) {
1191
1191
  }
1192
1192
  }
1193
1193
 
1194
+ // Expose handlers for inline onclick="..." attributes
1195
+ window.doInit = doInit;
1196
+ window.doUpdate = doUpdate;
1197
+ window.doHealth = doHealth;
1198
+ window.doMigrate = doMigrate;
1199
+ window.pickDir = pickDir;
1200
+ window.runReport = runReport;
1201
+ window.publish = publish;
1202
+ window.saveSettings = saveSettings;
1203
+ window.refreshReports = refreshReports;
1204
+ window.renderReportsList = renderReportsList;
1205
+ window.copyOut = copyOut;
1206
+ window.clearOut = clearOut;
1207
+ window.toggleTheme = toggleTheme;
1208
+
1194
1209
  // init
1195
1210
  applyTheme(localStorage.getItem('freya.theme') || 'light');
1196
1211
  $('chipPort').textContent = location.host;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cccarv82/freya",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "Personal AI Assistant with local-first persistence",
5
5
  "scripts": {
6
6
  "health": "node scripts/validate-data.js",