fraim-hub 2.0.223 → 2.0.225

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.
@@ -203,6 +203,12 @@ async function createWindow(url) {
203
203
  webPreferences: { contextIsolation: true, nodeIntegration: false, sandbox: true },
204
204
  });
205
205
  electron_1.Menu.setApplicationMenu(null);
206
+ try {
207
+ await mainWindow.webContents.session.clearCache();
208
+ }
209
+ catch (err) {
210
+ console.warn('[fraim] Could not clear Electron renderer cache:', err);
211
+ }
206
212
  // Keep the Windows titlebar control glyphs readable when the OS theme flips
207
213
  // between light and dark while the window is open.
208
214
  if (isWin) {
@@ -1596,6 +1596,12 @@ class AiHubServer {
1596
1596
  // Stripe webhook; the Hub re-reads status via the remote gateway on the next bootstrap.
1597
1597
  res.redirect('/ai-hub/?hired=1');
1598
1598
  });
1599
+ this.app.use('/ai-hub', (_req, res, next) => {
1600
+ res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, proxy-revalidate');
1601
+ res.setHeader('Pragma', 'no-cache');
1602
+ res.setHeader('Expires', '0');
1603
+ next();
1604
+ });
1599
1605
  this.app.use('/ai-hub', express_1.default.static(resolveAiHubPublicDir()));
1600
1606
  // Issue #489: Serve the Word task pane assets at /word-taskpane/*.
1601
1607
  // Office JS appends ?_host_Info=Word$Win32$... to every request — we must
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fraim-hub",
3
- "version": "2.0.223",
3
+ "version": "2.0.225",
4
4
  "description": "FRAIM Hub local companion package.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -93,7 +93,7 @@
93
93
  "dotenv": "^16.4.7",
94
94
  "electron": "^41.2.2",
95
95
  "express": "^5.2.1",
96
- "fraim": "2.0.223",
96
+ "fraim": "2.0.225",
97
97
  "mongodb": "^7.0.0",
98
98
  "node-cron": "4.2.1",
99
99
  "node-edge-tts": "^1.2.10",
@@ -121,11 +121,19 @@ html.electron[data-theme="dark"] .conversation {
121
121
  border-color: rgba(255, 255, 255, 0.08);
122
122
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.20);
123
123
  }
124
- html.electron[data-theme="dark"] .modal {
125
- background: rgba(30, 30, 30, 0.94);
126
- border-color: rgba(255, 255, 255, 0.10);
127
- box-shadow: 0 4px 32px rgba(0, 0, 0, 0.40);
128
- }
124
+ html.electron[data-theme="dark"] .modal {
125
+ background: rgba(30, 30, 30, 0.94);
126
+ border-color: rgba(255, 255, 255, 0.10);
127
+ box-shadow: 0 4px 32px rgba(0, 0, 0, 0.40);
128
+ }
129
+ html.electron[data-theme="dark"] body.hub-shell,
130
+ html.electron[data-theme="dark"] .hub-area,
131
+ html.electron[data-theme="dark"] .area-main,
132
+ html.electron[data-theme="dark"] .hub-area-page,
133
+ html.electron[data-theme="dark"] #proj-overview,
134
+ html.electron[data-theme="dark"] #proj-workspace {
135
+ background: var(--bg);
136
+ }
129
137
 
130
138
  /* ── Native platform feel ───────────────────────────────────────────────────
131
139
  html.mac / html.win / html.linux are set pre-paint (see index.html). macOS