@amd-gaia/agent-ui 0.25.4-rc.3 → 0.25.4-rc.6

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 (51) hide show
  1. package/bin/gaia-ui.cjs +2 -23
  2. package/dist/assets/AdvancedSettings-3RM8Obyx.js +1 -0
  3. package/dist/assets/ConnectorsPane-C2ErbEHk.js +1 -0
  4. package/dist/assets/ConnectorsPane-CzLYXGMl.css +1 -0
  5. package/dist/assets/DocumentLibrary-BUUeUqKi.js +4 -0
  6. package/dist/assets/FileBrowser-BGVQQMFv.js +4 -0
  7. package/dist/assets/MemoryDashboard-DkvaokBj.js +1 -0
  8. package/dist/assets/MemoryDashboard-DwrWAXi6.css +1 -0
  9. package/dist/assets/MobileAccessModal-BkVDm3YG.css +1 -0
  10. package/dist/assets/MobileAccessModal-C8L7ZA2z.js +2 -0
  11. package/dist/assets/ScheduleManager-CjHJ4NbD.css +1 -0
  12. package/dist/assets/ScheduleManager-FRIPnQnw.js +1 -0
  13. package/dist/assets/api-By968363.js +4 -0
  14. package/dist/assets/apiBase-DSN0u9ls.js +3 -0
  15. package/dist/assets/index-8uiHNHOH.js +78 -0
  16. package/dist/assets/index-CNhwlnjv.css +1 -0
  17. package/dist/assets/{zap-BdhDcjhB.js → zap-B97NJZKh.js} +1 -1
  18. package/dist/icons/apple-touch-icon.png +0 -0
  19. package/dist/icons/icon-192.png +0 -0
  20. package/dist/icons/icon-512.png +0 -0
  21. package/dist/icons/icon-maskable-192.png +0 -0
  22. package/dist/icons/icon-maskable-512.png +0 -0
  23. package/dist/index.html +8 -3
  24. package/dist/manifest.json +16 -0
  25. package/dist/sw.js +49 -0
  26. package/main-safety-net.cjs +106 -8
  27. package/main.cjs +139 -159
  28. package/package.json +2 -1
  29. package/preload.cjs +19 -9
  30. package/services/auto-updater.cjs +780 -216
  31. package/services/backend-installer.cjs +349 -351
  32. package/services/engine-install.cjs +214 -0
  33. package/services/index-query.cjs +7 -1
  34. package/services/lock-holders.cjs +200 -0
  35. package/services/quit-guard.cjs +10 -3
  36. package/services/tray-manager.cjs +12 -7
  37. package/dist/assets/AdvancedSettings-CHxpG8nH.js +0 -1
  38. package/dist/assets/ConnectorsPane-CLQK0rsX.js +0 -1
  39. package/dist/assets/ConnectorsPane-Dzu2DRTc.css +0 -1
  40. package/dist/assets/DocumentLibrary-hSat3aHA.js +0 -4
  41. package/dist/assets/FileBrowser-BneKS6fe.js +0 -4
  42. package/dist/assets/MemoryDashboard-D5NugQoq.js +0 -1
  43. package/dist/assets/MemoryDashboard-Dt6zI60b.css +0 -1
  44. package/dist/assets/MobileAccessModal-Cl7eErMB.js +0 -2
  45. package/dist/assets/MobileAccessModal-DuVy9F1u.css +0 -1
  46. package/dist/assets/ScheduleManager-CkYWygZG.js +0 -2
  47. package/dist/assets/ScheduleManager-D5c4gVIt.css +0 -1
  48. package/dist/assets/apiBase-DRtaTd8u.js +0 -1
  49. package/dist/assets/index-BxdoiGm5.js +0 -78
  50. package/dist/assets/index-C9zLn8zo.css +0 -1
  51. package/services/backend-installer-progress-dialog.cjs +0 -510
package/preload.cjs CHANGED
@@ -11,7 +11,7 @@
11
11
  * agent:* — Agent process management (T2)
12
12
  * tray:* — Tray icon/config (T1)
13
13
  * notification:* — Desktop notifications & permission prompts (T5)
14
- * install:* — First-run backend install progress (Phase A)
14
+ * install:* — Backend install status, retry and log (Phase A)
15
15
  * gaia:update:* — Auto-update status & manual check (Phase F)
16
16
  * system:* — System metrics for the observability dashboard (#2007)
17
17
  * power:* — Keep the PC awake while a chat turn runs (#5226)
@@ -105,19 +105,26 @@ contextBridge.exposeInMainWorld("gaiaWindow", {
105
105
  setColors: (colors) => ipcRenderer.invoke("window:set-titlebar-colors", colors),
106
106
  });
107
107
 
108
- // ── Install progress (Phase A) ──────────────────────────────────────────
109
- // Exposed as a separate global so the progress window can use it without
110
- // pulling in the full gaiaAPI surface (and so it keeps working if an
111
- // install dialog runs before the main window is ready).
108
+ // ── Backend install (Phase A) ───────────────────────────────────────────
109
+ // EngineInstallScreen runs with no backend, so this stands apart from gaiaAPI.
112
110
  contextBridge.exposeInMainWorld("gaiaInstall", {
113
- // Subscribe to progress updates. Returns an unsubscribe function.
111
+ // Subscribe to status updates. Returns an unsubscribe function.
114
112
  onProgress: (cb) => onEvent("install:progress", cb),
115
113
 
116
- // Query the current install state (state machine + log/state paths).
114
+ // The current status: { phase, stage, percent, message, error, logPath }.
117
115
  status: () => ipcRenderer.invoke("install:status"),
118
116
 
119
- // Copy the log file path to the clipboard.
120
- copyLogPath: () => ipcRenderer.invoke("install:copy-log-path"),
117
+ // After a failure, install again. Resolves false when none is waiting.
118
+ retry: () => ipcRenderer.invoke("install:retry"),
119
+
120
+ // Goes on past a failed agent update; the next launch tries it again.
121
+ continueWithoutAgentUpdate: () => ipcRenderer.invoke("install:continue"),
122
+
123
+ // After a failed update, go back to the version before it; the app restarts into it.
124
+ revert: () => ipcRenderer.invoke("install:revert"),
125
+
126
+ // After a 'locked' failure held only by GAIA processes: ends those and installs again.
127
+ closeLockingPrograms: () => ipcRenderer.invoke("install:close-lockers"),
121
128
 
122
129
  // Open the log file in the OS's default viewer.
123
130
  openLogFile: () => ipcRenderer.invoke("install:open-log-file"),
@@ -159,6 +166,9 @@ contextBridge.exposeInMainWorld("gaiaUpdater", {
159
166
  */
160
167
  installVersion: (tag) => ipcRenderer.invoke("gaia:update:install-version", tag),
161
168
 
169
+ /** Go back to the version before the last update, and pin it. */
170
+ revertUpdate: () => ipcRenderer.invoke("gaia:update:revert"),
171
+
162
172
  /**
163
173
  * Resume normal auto-updates — clears the version pin set by installVersion.
164
174
  * Resolves with the updated state.