@amd-gaia/agent-ui 0.26.0-rc.17 → 0.26.0-rc.18
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.
- package/dist/assets/AdvancedSettings-Bz3-vkHg.js +1 -0
- package/dist/assets/ConnectorsPane-BZAN-4in.js +1 -0
- package/dist/assets/ConnectorsPane-hmunRyL2.css +1 -0
- package/dist/assets/DocumentLibrary-XhxSDgy3.js +4 -0
- package/dist/assets/FileBrowser-aGXn6FT_.js +4 -0
- package/dist/assets/MemoryDashboard-BDPX8_Oe.js +1 -0
- package/dist/assets/MemoryDashboard-k38iG5mj.css +1 -0
- package/dist/assets/MobileAccessModal-Dl13qVaH.js +2 -0
- package/dist/assets/ScheduleManager-B2uNcCLm.js +1 -0
- package/dist/assets/{browser-KnDALPx_.js → browser-DfYHeeW3.js} +1 -1
- package/dist/assets/index-Bo9WOu4c.css +1 -0
- package/dist/assets/index-_q5MnYHx.js +93 -0
- package/dist/assets/useT-BEuJOsBI.js +3 -0
- package/dist/assets/{zap-BEO_Czil.js → zap-BxzGBs8H.js} +1 -1
- package/dist/index.html +3 -4
- package/dist/sw.js +1 -1
- package/main-safety-net.cjs +8 -1
- package/main.cjs +16 -221
- package/package.json +3 -3
- package/preload.cjs +0 -30
- package/services/agent-process-manager.cjs +3 -411
- package/services/appimage-launcher.cjs +67 -0
- package/services/tray-manager.cjs +3 -1
- package/services/window-reveal.cjs +42 -0
- package/dist/assets/AdvancedSettings-Cg8qHmPA.js +0 -1
- package/dist/assets/ConnectorsPane-B1lwOGL5.css +0 -1
- package/dist/assets/ConnectorsPane-DHTvqAQD.js +0 -1
- package/dist/assets/DocumentLibrary-BLIe8JdD.js +0 -4
- package/dist/assets/FileBrowser-y7SIF7b4.js +0 -4
- package/dist/assets/MemoryDashboard-Bhg3p4mS.js +0 -1
- package/dist/assets/MemoryDashboard-DwrWAXi6.css +0 -1
- package/dist/assets/MobileAccessModal-BEXI8Xyq.js +0 -2
- package/dist/assets/ScheduleManager-CVuPErjW.js +0 -1
- package/dist/assets/api-CW5pA-Zi.js +0 -4
- package/dist/assets/index-CvE1q_in.css +0 -1
- package/dist/assets/index-D2-hgNV8.js +0 -88
- package/dist/assets/useT-DcTv6kAR.js +0 -3
- package/services/deep-link-queue.cjs +0 -77
- package/services/deep-link.cjs +0 -230
- package/services/system-metrics.cjs +0 -154
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Z as e}from"./useT-BEuJOsBI.js";var t={name:`message-square`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]};t.node;var n=e(t),r={name:`zap`,size:24,node:[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`,key:`1v7up4`}]]};r.node;var i=e(r);export{n,i as t};
|
package/dist/index.html
CHANGED
|
@@ -12,11 +12,10 @@
|
|
|
12
12
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
13
13
|
<meta name="apple-mobile-web-app-title" content="GAIA" />
|
|
14
14
|
<title>GAIA Agent UI</title>
|
|
15
|
-
<script type="module" crossorigin src="./assets/index-
|
|
15
|
+
<script type="module" crossorigin src="./assets/index-_q5MnYHx.js"></script>
|
|
16
16
|
<link rel="modulepreload" crossorigin href="./assets/rolldown-runtime-XKyaHtl9.js">
|
|
17
|
-
<link rel="modulepreload" crossorigin href="./assets/useT-
|
|
18
|
-
<link rel="
|
|
19
|
-
<link rel="stylesheet" crossorigin href="./assets/index-CvE1q_in.css">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="./assets/useT-BEuJOsBI.js">
|
|
18
|
+
<link rel="stylesheet" crossorigin href="./assets/index-Bo9WOu4c.css">
|
|
20
19
|
</head>
|
|
21
20
|
<body>
|
|
22
21
|
<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.26.
|
|
12
|
+
const CACHE_NAME = CACHE_PREFIX + '0.26.0rc18-0af54e2439bcb770';
|
|
13
13
|
const ASSETS_PATH = new URL('assets/', self.registration.scope).pathname;
|
|
14
14
|
|
|
15
15
|
self.addEventListener('install', () => {
|
package/main-safety-net.cjs
CHANGED
|
@@ -201,7 +201,14 @@ function installSafetyNet({
|
|
|
201
201
|
// Renderer and GPU-process crashes don't fire uncaughtException — route
|
|
202
202
|
// them through fatal() so they get the same dialog + counter treatment.
|
|
203
203
|
appModule.on("render-process-gone", (_event, _webContents, details) => {
|
|
204
|
-
|
|
204
|
+
const reason = details && details.reason;
|
|
205
|
+
// The renderer exits cleanly when the app is signalled to stop (logout, a
|
|
206
|
+
// stopped app unit); that is a shutdown, not a crash.
|
|
207
|
+
if (reason === "clean-exit") {
|
|
208
|
+
appendLog(logPath, `[${new Date().toISOString()}] RENDER_PROCESS_EXITED reason=${reason}`);
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
fatal(new Error(`render-process-gone: reason=${reason}`));
|
|
205
212
|
});
|
|
206
213
|
|
|
207
214
|
appModule.on("child-process-gone", (_event, details) => {
|
package/main.cjs
CHANGED
|
@@ -87,6 +87,7 @@ const _inSafeMode = _crashCount >= SAFE_MODE_THRESHOLD;
|
|
|
87
87
|
const TrayManager = require("./services/tray-manager.cjs");
|
|
88
88
|
const { probeTrayHost } = require("./services/tray-host.cjs");
|
|
89
89
|
const { installAppImageLauncher } = require("./services/appimage-launcher.cjs");
|
|
90
|
+
const { revealWhenReady } = require("./services/window-reveal.cjs");
|
|
90
91
|
const { appIconPath, appUserModelId } = require("./services/app-icon.cjs");
|
|
91
92
|
const {
|
|
92
93
|
attachWindowGuards,
|
|
@@ -109,20 +110,12 @@ const backendInstaller = require("./services/backend-installer.cjs");
|
|
|
109
110
|
const { createEngineInstall } = require("./services/engine-install.cjs");
|
|
110
111
|
const autoUpdater = require("./services/auto-updater.cjs");
|
|
111
112
|
const agentSeeder = require("./services/agent-seeder.cjs");
|
|
112
|
-
const systemMetrics = require("./services/system-metrics.cjs");
|
|
113
113
|
const folderDialog = require("./services/folder-dialog.cjs");
|
|
114
|
-
const {
|
|
115
|
-
parseDeepLink,
|
|
116
|
-
extractDeepLinkFromArgv,
|
|
117
|
-
dispatchDeepLink,
|
|
118
|
-
buildInstallPrompt,
|
|
119
|
-
} = require("./services/deep-link.cjs");
|
|
120
114
|
const {
|
|
121
115
|
isAllowedExternalUrl,
|
|
122
116
|
isInAppNavigation,
|
|
123
117
|
describeBlockedUrl,
|
|
124
118
|
} = require("./services/link-policy.cjs");
|
|
125
|
-
const { createStartupDeepLinkQueue } = require("./services/deep-link-queue.cjs");
|
|
126
119
|
const { installWindowKeys } = require("./services/window-keys.cjs");
|
|
127
120
|
const { installQuitCleanup } = require("./services/quit-cleanup.cjs");
|
|
128
121
|
const { chromiumSwitches } = require("./services/chromium-switches.cjs");
|
|
@@ -751,8 +744,8 @@ function createWindow() {
|
|
|
751
744
|
});
|
|
752
745
|
|
|
753
746
|
// Show window when ready (unless --minimized or startMinimized config)
|
|
754
|
-
mainWindow
|
|
755
|
-
console.log(
|
|
747
|
+
revealWhenReady(mainWindow, (via) => {
|
|
748
|
+
console.log(`[main] Window ready to show (${via})`);
|
|
756
749
|
Promise.resolve(trayHostReady).then(() => {
|
|
757
750
|
if (!mainWindow || mainWindow.isDestroyed()) return;
|
|
758
751
|
// Never start hidden where no tray icon would bring the window back.
|
|
@@ -846,8 +839,8 @@ async function loadApp() {
|
|
|
846
839
|
function reopenWindow() {
|
|
847
840
|
createWindow();
|
|
848
841
|
// Asked for from the tray or the dock: show it even when starting minimized.
|
|
849
|
-
|
|
850
|
-
|
|
842
|
+
const reopened = mainWindow;
|
|
843
|
+
revealWhenReady(reopened, () => !reopened.isDestroyed() && reopened.show());
|
|
851
844
|
if (trayManager) trayManager.mainWindow = mainWindow;
|
|
852
845
|
if (notificationService) notificationService.mainWindow = mainWindow;
|
|
853
846
|
loadApp().catch((err) => {
|
|
@@ -861,12 +854,7 @@ function initializeServices() {
|
|
|
861
854
|
console.log("[main] Initializing services...");
|
|
862
855
|
|
|
863
856
|
// T2: Agent Process Manager (manages OS agent subprocesses)
|
|
864
|
-
|
|
865
|
-
// Python backend's install runtime (issue #1721) on whatever random port
|
|
866
|
-
// port-manager picked this session.
|
|
867
|
-
agentProcessManager = new AgentProcessManager(mainWindow, {
|
|
868
|
-
getBackendPort: () => backendPort,
|
|
869
|
-
});
|
|
857
|
+
agentProcessManager = new AgentProcessManager();
|
|
870
858
|
|
|
871
859
|
// T1: Tray Manager (system tray icon + context menu)
|
|
872
860
|
trayManager = new TrayManager(mainWindow, {
|
|
@@ -898,9 +886,6 @@ function initializeServices() {
|
|
|
898
886
|
// #5226: hold off idle sleep while a chat turn runs
|
|
899
887
|
keepAwake = new KeepAwake();
|
|
900
888
|
|
|
901
|
-
// #2007: System metrics for the observability dashboard
|
|
902
|
-
systemMetrics.registerIpcHandlers();
|
|
903
|
-
|
|
904
889
|
folderDialog.registerIpcHandlers();
|
|
905
890
|
|
|
906
891
|
console.log("[main] Services initialized");
|
|
@@ -971,194 +956,6 @@ async function goBackToPreviousVersion() {
|
|
|
971
956
|
await autoUpdater.revertUpdate();
|
|
972
957
|
}
|
|
973
958
|
|
|
974
|
-
// ── gaia:// deep-link install bridge (issue #1725) ──────────────────────────
|
|
975
|
-
//
|
|
976
|
-
// The website's "Open in GAIA" button opens a `gaia://hub/install/<id>` URL.
|
|
977
|
-
// The OS routes it to this app (registered as the gaia:// protocol client);
|
|
978
|
-
// we parse it and hand the agent id to the install runtime (issue #1721).
|
|
979
|
-
//
|
|
980
|
-
// Sources of the URL differ per OS:
|
|
981
|
-
// • macOS — the `open-url` app event (registered before whenReady).
|
|
982
|
-
// • Win/Linux — a command-line argument, either at cold start (process.argv)
|
|
983
|
-
// or on a second launch (the `second-instance` event argv).
|
|
984
|
-
// A malformed/unsupported link surfaces a loud error dialog — never a silent
|
|
985
|
-
// no-op (deep-link.cjs throws with an actionable message).
|
|
986
|
-
|
|
987
|
-
// Holds gaia:// links until startup has waited for the backend (the install
|
|
988
|
-
// gate verifies the agent through its catalog API), then dispatches each once.
|
|
989
|
-
const startupDeepLinks = createStartupDeepLinkQueue({
|
|
990
|
-
dispatch: (rawUrl) => {
|
|
991
|
-
void runDeepLink(parseDeepLink(rawUrl));
|
|
992
|
-
},
|
|
993
|
-
reportNotReady: reportDeepLinksNotReady,
|
|
994
|
-
logger: console,
|
|
995
|
-
});
|
|
996
|
-
|
|
997
|
-
/**
|
|
998
|
-
* Register this app as the handler for the gaia:// scheme. In dev (`electron .`)
|
|
999
|
-
* the launcher is Electron itself, so the app path must be threaded through
|
|
1000
|
-
* explicitly; packaged builds register their own executable.
|
|
1001
|
-
*/
|
|
1002
|
-
function registerProtocolHandler() {
|
|
1003
|
-
try {
|
|
1004
|
-
let registered;
|
|
1005
|
-
if (process.defaultApp && process.argv.length >= 2) {
|
|
1006
|
-
// Dev: `electron . <args>` — point the scheme at this script.
|
|
1007
|
-
registered = app.setAsDefaultProtocolClient("gaia", process.execPath, [
|
|
1008
|
-
path.resolve(process.argv[1]),
|
|
1009
|
-
]);
|
|
1010
|
-
} else {
|
|
1011
|
-
registered = app.setAsDefaultProtocolClient("gaia");
|
|
1012
|
-
}
|
|
1013
|
-
if (registered) {
|
|
1014
|
-
console.log("[main] Registered as gaia:// protocol client");
|
|
1015
|
-
} else {
|
|
1016
|
-
console.warn(
|
|
1017
|
-
"[main] Could not register gaia:// protocol client — deep-link installs may not route to this app"
|
|
1018
|
-
);
|
|
1019
|
-
}
|
|
1020
|
-
} catch (err) {
|
|
1021
|
-
console.warn(
|
|
1022
|
-
`[main] setAsDefaultProtocolClient failed: ${err && err.message ? err.message : err}`
|
|
1023
|
-
);
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
|
-
/**
|
|
1028
|
-
* Entry point for any inbound deep link. Validates it now (a bad link is
|
|
1029
|
-
* refused loudly and immediately), then hands it to the startup queue, which
|
|
1030
|
-
* holds it until the backend is ready and dispatches it immediately after.
|
|
1031
|
-
*/
|
|
1032
|
-
function handleDeepLink(rawUrl) {
|
|
1033
|
-
try {
|
|
1034
|
-
parseDeepLink(rawUrl);
|
|
1035
|
-
} catch (err) {
|
|
1036
|
-
const message = err && err.message ? err.message : String(err);
|
|
1037
|
-
console.error(`[main] Rejected deep link: ${message}`);
|
|
1038
|
-
try {
|
|
1039
|
-
dialog.showErrorBox("Invalid GAIA link", message);
|
|
1040
|
-
} catch {
|
|
1041
|
-
/* dialog may be unavailable pre-ready — the log line above still fires */
|
|
1042
|
-
}
|
|
1043
|
-
return;
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
startupDeepLinks.accept(rawUrl);
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
/**
|
|
1050
|
-
* Explicit, INFORMED per-agent confirmation for a web-triggered install. This
|
|
1051
|
-
* is the security gate: the user must confirm the SPECIFIC agent — and see
|
|
1052
|
-
* its real trust tier and permissions, not just its bare id — before any
|
|
1053
|
-
* download happens (issue #2196 review; hardened so the shown facts match
|
|
1054
|
-
* the backend's non-verified gate, which now covers every non-verified
|
|
1055
|
-
* agent, not just native ones). Defaults to the safe (Cancel) option.
|
|
1056
|
-
*
|
|
1057
|
-
* Fails closed: if the agent can't be found in the catalog, or the backend
|
|
1058
|
-
* is unreachable, the install is refused with an explanatory error — never
|
|
1059
|
-
* installed blind.
|
|
1060
|
-
* @returns {Promise<boolean>}
|
|
1061
|
-
*/
|
|
1062
|
-
async function confirmDeepLinkInstall(command) {
|
|
1063
|
-
let entry;
|
|
1064
|
-
try {
|
|
1065
|
-
entry = await agentProcessManager.fetchCatalogEntry(command.agentId);
|
|
1066
|
-
} catch (err) {
|
|
1067
|
-
const message = err && err.message ? err.message : String(err);
|
|
1068
|
-
console.error(
|
|
1069
|
-
`[main] Refusing deep-link install of "${command.agentId}": ${message}`
|
|
1070
|
-
);
|
|
1071
|
-
try {
|
|
1072
|
-
dialog.showErrorBox("Could not verify this agent", message);
|
|
1073
|
-
} catch {
|
|
1074
|
-
/* best-effort */
|
|
1075
|
-
}
|
|
1076
|
-
return false;
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
const prompt = buildInstallPrompt(entry);
|
|
1080
|
-
const choice = await dialog.showMessageBox(
|
|
1081
|
-
mainWindow && !mainWindow.isDestroyed() ? mainWindow : null,
|
|
1082
|
-
{
|
|
1083
|
-
type: "question",
|
|
1084
|
-
buttons: [prompt.requiresTrust ? "Trust & Install" : "Install", "Cancel"],
|
|
1085
|
-
defaultId: 1, // Enter selects the safe option
|
|
1086
|
-
cancelId: 1,
|
|
1087
|
-
title: prompt.title,
|
|
1088
|
-
message: prompt.message,
|
|
1089
|
-
detail: prompt.detail,
|
|
1090
|
-
noLink: true,
|
|
1091
|
-
}
|
|
1092
|
-
);
|
|
1093
|
-
return !!choice && choice.response === 0;
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
/** Wire the injected deep-link dispatcher to this process's runtime effects. */
|
|
1097
|
-
async function runDeepLink(command) {
|
|
1098
|
-
console.log(`[main] Deep-link install request: ${command.agentId}`);
|
|
1099
|
-
try {
|
|
1100
|
-
await dispatchDeepLink(command, {
|
|
1101
|
-
confirm: confirmDeepLinkInstall,
|
|
1102
|
-
installAgent: (agentId, opts) => agentProcessManager.installAgent(agentId, opts),
|
|
1103
|
-
focusWindow: () => {
|
|
1104
|
-
if (mainWindow && !mainWindow.isDestroyed()) {
|
|
1105
|
-
if (mainWindow.isMinimized()) mainWindow.restore();
|
|
1106
|
-
if (!mainWindow.isVisible()) mainWindow.show();
|
|
1107
|
-
mainWindow.focus();
|
|
1108
|
-
}
|
|
1109
|
-
},
|
|
1110
|
-
logger: { log: console.log.bind(console), error: console.error.bind(console) },
|
|
1111
|
-
});
|
|
1112
|
-
} catch (err) {
|
|
1113
|
-
const message = err && err.message ? err.message : String(err);
|
|
1114
|
-
console.error(
|
|
1115
|
-
`[main] Deep-link install of "${command.agentId}" failed: ${message}`
|
|
1116
|
-
);
|
|
1117
|
-
try {
|
|
1118
|
-
dialog.showErrorBox(`Could not install "${command.agentId}"`, message);
|
|
1119
|
-
} catch {
|
|
1120
|
-
/* best-effort */
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
/**
|
|
1126
|
-
* Release queued deep links, plus any gaia:// URL in the cold-start argv. Call
|
|
1127
|
-
* once, after startup has waited for the backend.
|
|
1128
|
-
*
|
|
1129
|
-
* @param {boolean} backendReady Whether the backend API answered its health check.
|
|
1130
|
-
*/
|
|
1131
|
-
function processStartupDeepLinks(backendReady) {
|
|
1132
|
-
startupDeepLinks.drain({ backendReady, argvUrl: extractDeepLinkFromArgv(process.argv) });
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
/** The backend never came up: tell the user instead of dispatching blind. */
|
|
1136
|
-
function reportDeepLinksNotReady(urls) {
|
|
1137
|
-
const why = backendProcess
|
|
1138
|
-
? `did not answer within ${Math.round(STARTUP_TIMEOUT / 1000)}s`
|
|
1139
|
-
: "could not be started";
|
|
1140
|
-
const message =
|
|
1141
|
-
`GAIA could not open ${urls.map((u) => `"${u}"`).join(", ")} because ` +
|
|
1142
|
-
`its backend ${why}, so the agent cannot be verified before install. ` +
|
|
1143
|
-
`Check ${_MAIN_LOG_PATH} for the startup error, then click the link ` +
|
|
1144
|
-
"again once GAIA is running.";
|
|
1145
|
-
console.error(`[main] ${message}`);
|
|
1146
|
-
try {
|
|
1147
|
-
dialog.showErrorBox("GAIA is not ready yet", message);
|
|
1148
|
-
} catch {
|
|
1149
|
-
/* best-effort */
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
|
-
// macOS delivers deep links via this event; it can fire before whenReady, so
|
|
1154
|
-
// register it at module load and let handleDeepLink queue as needed.
|
|
1155
|
-
app.on("open-url", (event, url) => {
|
|
1156
|
-
event.preventDefault();
|
|
1157
|
-
handleDeepLink(url);
|
|
1158
|
-
});
|
|
1159
|
-
|
|
1160
|
-
registerProtocolHandler();
|
|
1161
|
-
|
|
1162
959
|
// ── App Lifecycle ──────────────────────────────────────────────────────────
|
|
1163
960
|
|
|
1164
961
|
// Note: electron-squirrel-startup was removed in Phase C of the
|
|
@@ -1201,7 +998,13 @@ if (process.platform === "win32") {
|
|
|
1201
998
|
app.setAppUserModelId(appUserModelId(app.isPackaged));
|
|
1202
999
|
}
|
|
1203
1000
|
|
|
1204
|
-
|
|
1001
|
+
// Older builds registered gaia:// at runtime; nothing handles it any more.
|
|
1002
|
+
if (app.isPackaged && app.isDefaultProtocolClient("gaia")) {
|
|
1003
|
+
const removed = app.removeAsDefaultProtocolClient("gaia");
|
|
1004
|
+
console.log(`[main] Removed stale gaia:// registration: ${removed}`);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
app.on("second-instance", () => {
|
|
1205
1008
|
// A second launch happened while we were running. Surface our window
|
|
1206
1009
|
// (the user almost certainly wanted to see it).
|
|
1207
1010
|
if (typeof mainWindow !== "undefined" && mainWindow && !mainWindow.isDestroyed()) {
|
|
@@ -1209,11 +1012,6 @@ app.on("second-instance", (_event, argv, _cwd) => {
|
|
|
1209
1012
|
if (!mainWindow.isVisible()) mainWindow.show();
|
|
1210
1013
|
mainWindow.focus();
|
|
1211
1014
|
}
|
|
1212
|
-
|
|
1213
|
-
// Win/Linux: a `gaia://…` deep link from the second launch arrives as an argv
|
|
1214
|
-
// entry. Route it into the already-running first instance (issue #1725).
|
|
1215
|
-
const deepLink = extractDeepLinkFromArgv(argv);
|
|
1216
|
-
if (deepLink) handleDeepLink(deepLink);
|
|
1217
1015
|
});
|
|
1218
1016
|
|
|
1219
1017
|
app.whenReady().then(async () => {
|
|
@@ -1234,7 +1032,9 @@ app.whenReady().then(async () => {
|
|
|
1234
1032
|
if (app.isPackaged) {
|
|
1235
1033
|
try {
|
|
1236
1034
|
const launcher = installAppImageLauncher();
|
|
1237
|
-
if (launcher.status
|
|
1035
|
+
if (launcher.status !== "not-appimage") {
|
|
1036
|
+
console.log(`[main] AppImage launcher ${launcher.status}: ${launcher.entry}`);
|
|
1037
|
+
}
|
|
1238
1038
|
} catch (err) {
|
|
1239
1039
|
console.error(`[main] ${err.message}`);
|
|
1240
1040
|
}
|
|
@@ -1363,11 +1163,6 @@ app.whenReady().then(async () => {
|
|
|
1363
1163
|
if (mainWindow) await loadApp();
|
|
1364
1164
|
}
|
|
1365
1165
|
|
|
1366
|
-
// Act on any gaia:// deep link that arrived during bootstrap or via the
|
|
1367
|
-
// cold-start command line (issue #1725) — after the backend is listening,
|
|
1368
|
-
// because the install gate queries its catalog API.
|
|
1369
|
-
processStartupDeepLinks(backendReady);
|
|
1370
|
-
|
|
1371
1166
|
// Auto-start enabled agents (T2)
|
|
1372
1167
|
if (agentProcessManager) {
|
|
1373
1168
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amd-gaia/agent-ui",
|
|
3
|
-
"version": "0.26.0-rc.
|
|
3
|
+
"version": "0.26.0-rc.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"productName": "GAIA Agent UI",
|
|
6
6
|
"desktopName": "gaia-desktop.desktop",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"electron-updater": "^6.8.3"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@playwright/test": "1.
|
|
72
|
+
"@playwright/test": "1.65.0",
|
|
73
73
|
"@testing-library/jest-dom": "^7.0.0",
|
|
74
74
|
"@testing-library/react": "^16.1.0",
|
|
75
75
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@vitejs/plugin-react": "^6.0.2",
|
|
79
79
|
"electron": "^45.0.0",
|
|
80
80
|
"electron-builder": "^26.8.1",
|
|
81
|
-
"jsdom": "^
|
|
81
|
+
"jsdom": "^31.0.0",
|
|
82
82
|
"json-schema-to-typescript": "16.0.0",
|
|
83
83
|
"lucide-react": "^1.50.0",
|
|
84
84
|
"qrcode": "^1.5.4",
|
package/preload.cjs
CHANGED
|
@@ -8,12 +8,10 @@
|
|
|
8
8
|
* Required because main.cjs uses `contextIsolation: true`.
|
|
9
9
|
*
|
|
10
10
|
* Channels:
|
|
11
|
-
* agent:* — Agent process management (T2)
|
|
12
11
|
* tray:* — Tray icon/config (T1)
|
|
13
12
|
* notification:* — Desktop notifications & permission prompts (T5)
|
|
14
13
|
* install:* — Backend install status, retry and log (Phase A)
|
|
15
14
|
* gaia:update:* — Auto-update status & manual check (Phase F)
|
|
16
|
-
* system:* — System metrics for the observability dashboard (#2007)
|
|
17
15
|
* power:* — Keep the PC awake while a chat turn runs (#5226)
|
|
18
16
|
* dialog:* — The OS folder picker
|
|
19
17
|
* backend:* — Backend restarts after a crash (services/backend-supervisor.cjs)
|
|
@@ -29,29 +27,6 @@ function onEvent(channel, callback) {
|
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
contextBridge.exposeInMainWorld("gaiaAPI", {
|
|
32
|
-
// ── Agent process management (T2) ─────────────────────────────────────
|
|
33
|
-
agent: {
|
|
34
|
-
start: (id) => ipcRenderer.invoke("agent:start", id),
|
|
35
|
-
stop: (id) => ipcRenderer.invoke("agent:stop", id),
|
|
36
|
-
restart: (id) => ipcRenderer.invoke("agent:restart", id),
|
|
37
|
-
status: (id) => ipcRenderer.invoke("agent:status", id),
|
|
38
|
-
statusAll: () => ipcRenderer.invoke("agent:status-all"),
|
|
39
|
-
sendRpc: (id, method, params) =>
|
|
40
|
-
ipcRenderer.invoke("agent:send-rpc", id, method, params),
|
|
41
|
-
getManifest: () => ipcRenderer.invoke("agent:get-manifest"),
|
|
42
|
-
// install(id, opts?) — opts: { trustNative?, version? }. Proxies to the
|
|
43
|
-
// backend install runtime; progress arrives via onInstallProgress (#1721).
|
|
44
|
-
install: (id, opts) => ipcRenderer.invoke("agent:install", id, opts),
|
|
45
|
-
uninstall: (id) => ipcRenderer.invoke("agent:uninstall", id),
|
|
46
|
-
|
|
47
|
-
// Event streams (return unsubscribe functions)
|
|
48
|
-
onStdout: (cb) => onEvent("agent:stdout", cb),
|
|
49
|
-
onStderr: (cb) => onEvent("agent:stderr", cb),
|
|
50
|
-
onStatusChange: (cb) => onEvent("agent:status-change", cb),
|
|
51
|
-
onCrashed: (cb) => onEvent("agent:crashed", cb),
|
|
52
|
-
onInstallProgress: (cb) => onEvent("agent:install-progress", cb),
|
|
53
|
-
},
|
|
54
|
-
|
|
55
30
|
// ── Tray configuration (T1) ───────────────────────────────────────────
|
|
56
31
|
tray: {
|
|
57
32
|
getConfig: () => ipcRenderer.invoke("tray:get-config"),
|
|
@@ -82,11 +57,6 @@ contextBridge.exposeInMainWorld("gaiaAPI", {
|
|
|
82
57
|
setKeepAwake: (on) => ipcRenderer.invoke("power:keep-awake", on),
|
|
83
58
|
},
|
|
84
59
|
|
|
85
|
-
// ── System metrics for the observability dashboard (#2007) ────────────
|
|
86
|
-
system: {
|
|
87
|
-
getMetrics: () => ipcRenderer.invoke("system:get-metrics"),
|
|
88
|
-
},
|
|
89
|
-
|
|
90
60
|
// ── OS folder picker; resolves the chosen path, or null on cancel ─────
|
|
91
61
|
dialog: {
|
|
92
62
|
pickFolder: (defaultPath) => ipcRenderer.invoke("dialog:pick-folder", defaultPath),
|