@amd-gaia/agent-ui 0.27.0-rc.2 → 0.27.0-rc.21

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 (57) hide show
  1. package/bin/gaia-ui.cjs +57 -3
  2. package/dist/assets/AdvancedSettings-DD-RVnWp.js +1 -0
  3. package/dist/assets/AutomationsSettings-rLo6mWU6.js +1 -0
  4. package/dist/assets/ConnectorsPane-BxG6qzLb.css +1 -0
  5. package/dist/assets/ConnectorsPane-DdYiHRhD.js +1 -0
  6. package/dist/assets/DocumentLibrary-BY3B6vwk.js +5 -0
  7. package/dist/assets/{DocumentLibrary-fEMoY7lH.css → DocumentLibrary-Ctwq2m2t.css} +1 -1
  8. package/dist/assets/FileBrowser-DZVXejEq.js +4 -0
  9. package/dist/assets/FileBrowser-DxS29ShT.css +1 -0
  10. package/dist/assets/MemoryDashboard-Bfy9g6TS.css +1 -0
  11. package/dist/assets/MemoryDashboard-BlNGTH6-.js +1 -0
  12. package/dist/assets/MessagingSettings-BHd7ftWx.js +1 -0
  13. package/dist/assets/{MobileAccessModal-BrZMaERi.css → MobileAccessModal-DSFjH6di.css} +1 -1
  14. package/dist/assets/MobileAccessModal-DbSJ06l7.js +2 -0
  15. package/dist/assets/ScheduleManager-CEBoBLPV.css +1 -0
  16. package/dist/assets/ScheduleManager-ClE3JXAN.js +1 -0
  17. package/dist/assets/folderIndexResult-BIoxqF5I.js +1 -0
  18. package/dist/assets/index-DDO2kO5x.js +226 -0
  19. package/dist/assets/index-DXyVxzzC.css +1 -0
  20. package/dist/assets/useFocusTrap-Cy_PGcml.js +6 -0
  21. package/dist/index.html +3 -3
  22. package/dist/sw.js +1 -1
  23. package/main-safety-net.cjs +26 -2
  24. package/main.cjs +226 -122
  25. package/package.json +2 -2
  26. package/preload.cjs +6 -0
  27. package/services/auto-updater.cjs +99 -0
  28. package/services/backend-crash-dialog.cjs +19 -5
  29. package/services/backend-health-monitor.cjs +86 -0
  30. package/services/backend-installer.cjs +1 -0
  31. package/services/backend-orphan.cjs +162 -1
  32. package/services/backend-supervisor.cjs +35 -9
  33. package/services/browser-pane/dev-servers.cjs +44 -1
  34. package/services/browser-pane/listen-addresses.cjs +140 -0
  35. package/services/context-menu.cjs +79 -0
  36. package/services/link-policy.cjs +78 -7
  37. package/services/port-manager.cjs +2 -3
  38. package/services/process-tree.cjs +84 -14
  39. package/services/quit-guard.cjs +8 -4
  40. package/services/ui-token.cjs +156 -0
  41. package/dist/assets/AdvancedSettings-DHERtrno.js +0 -1
  42. package/dist/assets/AutomationsSettings-4FWcRau9.js +0 -1
  43. package/dist/assets/ConnectorsPane-BGI8nBUb.css +0 -1
  44. package/dist/assets/ConnectorsPane-Dkat1zLC.js +0 -1
  45. package/dist/assets/DocumentLibrary-Dll55N7l.js +0 -5
  46. package/dist/assets/FileBrowser-1goNp4CP.css +0 -1
  47. package/dist/assets/FileBrowser-wFHqH6K_.js +0 -4
  48. package/dist/assets/MemoryDashboard-BuUBoNq8.js +0 -1
  49. package/dist/assets/MemoryDashboard-RpfLag-v.css +0 -1
  50. package/dist/assets/MessagingSettings-DomiT2rX.js +0 -1
  51. package/dist/assets/MobileAccessModal-B2gaE8nk.js +0 -2
  52. package/dist/assets/ScheduleManager-8UE81KlQ.js +0 -1
  53. package/dist/assets/ScheduleManager-BZzEH2-W.css +0 -1
  54. package/dist/assets/index-BiETDNik.css +0 -1
  55. package/dist/assets/index-HCZ86cyP.js +0 -220
  56. package/dist/assets/useFocusTrap-BFi0chLf.js +0 -6
  57. package/dist/assets/zap-DjkIffnX.js +0 -1
package/dist/index.html CHANGED
@@ -26,10 +26,10 @@
26
26
  // main.tsx applies the theme again and reports why it could not read the saved one.
27
27
  }
28
28
  </script>
29
- <script type="module" crossorigin src="./assets/index-HCZ86cyP.js"></script>
29
+ <script type="module" crossorigin src="./assets/index-DDO2kO5x.js"></script>
30
30
  <link rel="modulepreload" crossorigin href="./assets/rolldown-runtime-XKyaHtl9.js">
31
- <link rel="modulepreload" crossorigin href="./assets/useFocusTrap-BFi0chLf.js">
32
- <link rel="stylesheet" crossorigin href="./assets/index-BiETDNik.css">
31
+ <link rel="modulepreload" crossorigin href="./assets/useFocusTrap-Cy_PGcml.js">
32
+ <link rel="stylesheet" crossorigin href="./assets/index-DXyVxzzC.css">
33
33
  </head>
34
34
  <body>
35
35
  <div id="root"></div>
package/dist/sw.js CHANGED
@@ -9,7 +9,7 @@
9
9
  // never sees a stale UI or stale data.
10
10
 
11
11
  const CACHE_PREFIX = 'gaia-assets-';
12
- const CACHE_NAME = CACHE_PREFIX + '0.27.0rc2-0aaf94c22e3f4d41';
12
+ const CACHE_NAME = CACHE_PREFIX + '0.27.0rc21-0952546ce6ae5e24';
13
13
  const ASSETS_PATH = new URL('assets/', self.registration.scope).pathname;
14
14
 
15
15
  self.addEventListener('install', () => {
@@ -87,6 +87,9 @@ function appendLog(logPath, msg) {
87
87
  }
88
88
  }
89
89
 
90
+ // Chats live in the backend's database, written as each message is sent.
91
+ const FATAL_MESSAGE = "GAIA ran into a problem and needs to restart. Your chats are saved.";
92
+
90
93
  /** How long a fatal error's quit may take before the process is ended outright (ms). */
91
94
  const FATAL_EXIT_GRACE_MS = 25000;
92
95
 
@@ -107,6 +110,9 @@ const FATAL_EXIT_GRACE_MS = 25000;
107
110
  * when a window's page dies while GAIA runs on, e.g. to offer a reload.
108
111
  * Without it, or if it throws synchronously, the crash is fatal; an async
109
112
  * handler must handle its own failures.
113
+ * @param {Function} [opts.isPanePage] - Called with a webContents whose page
114
+ * died; true means it is a browser-pane tab, which shows its own notice, so
115
+ * the crash is logged only: no dialog, no quit, no crash count.
110
116
  */
111
117
  function installSafetyNet({
112
118
  logPath,
@@ -117,6 +123,7 @@ function installSafetyNet({
117
123
  exitGraceMs = FATAL_EXIT_GRACE_MS,
118
124
  holdCrashCount = () => false,
119
125
  onRendererGone,
126
+ isPanePage,
120
127
  }) {
121
128
  const homedir = homedirFn || (() => os.homedir());
122
129
 
@@ -179,11 +186,12 @@ function installSafetyNet({
179
186
  dialogModule.showMessageBoxSync({
180
187
  type: "error",
181
188
  title: "GAIA crashed",
182
- message: stack,
189
+ message: FATAL_MESSAGE,
190
+ detail: stack,
183
191
  buttons: ["OK"],
184
192
  });
185
193
  } else {
186
- dialogModule.showErrorBox("GAIA failed to start", stack);
194
+ dialogModule.showErrorBox("GAIA failed to start", `${FATAL_MESSAGE}\n\n${stack}`);
187
195
  }
188
196
  } catch { } // intentional: fatal path, no upstream
189
197
 
@@ -214,6 +222,21 @@ function installSafetyNet({
214
222
  appendLog(logPath, `[${new Date().toISOString()}] RENDER_PROCESS_EXITED reason=${reason}`);
215
223
  return;
216
224
  }
225
+ if (typeof isPanePage === "function") {
226
+ let panePage = false;
227
+ try {
228
+ panePage = isPanePage(webContents) === true;
229
+ } catch (err) {
230
+ appendLog(logPath, `[${new Date().toISOString()}] RENDER_PROCESS_GONE pane check failed: ${err.stack || err}`);
231
+ }
232
+ if (panePage) {
233
+ appendLog(
234
+ logPath,
235
+ `[${new Date().toISOString()}] PANE_PAGE_GONE reason=${reason} exitCode=${details && details.exitCode}`
236
+ );
237
+ return;
238
+ }
239
+ }
217
240
  if (typeof onRendererGone === "function") {
218
241
  // Only the page died: the backend and agents still run, so the window can come back.
219
242
  appendLog(
@@ -348,6 +371,7 @@ module.exports = {
348
371
  installSafetyNet,
349
372
  installLogTee,
350
373
  FATAL_EXIT_GRACE_MS,
374
+ FATAL_MESSAGE,
351
375
  readCount,
352
376
  runSafeModePrompt,
353
377
  SAFE_MODE_THRESHOLD,