@songsid/agend 2.3.5-alpha.12 → 2.3.5-alpha.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.
- package/THIRD_PARTY_NOTICES.md +4 -0
- package/dist/agent-export.d.ts +74 -0
- package/dist/agent-export.js +362 -0
- package/dist/agent-export.js.map +1 -0
- package/dist/agent-workspace.d.ts +1 -2
- package/dist/agent-workspace.js +8 -29
- package/dist/agent-workspace.js.map +1 -1
- package/dist/auth-api.js +3 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/codex.d.ts +7 -14
- package/dist/backend/codex.js +25 -29
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/grok-mcp.d.ts +5 -0
- package/dist/backend/grok-mcp.js +221 -0
- package/dist/backend/grok-mcp.js.map +1 -0
- package/dist/backend/grok.d.ts +0 -10
- package/dist/backend/grok.js +5 -82
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/types.d.ts +6 -1
- package/dist/backend/types.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/cli.js +45 -12
- package/dist/cli.js.map +1 -1
- package/dist/codex-pane-ownership.d.ts +13 -0
- package/dist/codex-pane-ownership.js +192 -0
- package/dist/codex-pane-ownership.js.map +1 -0
- package/dist/daemon.d.ts +2 -0
- package/dist/daemon.js +89 -8
- package/dist/daemon.js.map +1 -1
- package/dist/fleet-manager.d.ts +15 -1
- package/dist/fleet-manager.js +72 -17
- package/dist/fleet-manager.js.map +1 -1
- package/dist/hub/client.d.ts +1 -1
- package/dist/hub/client.js +11 -0
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +2 -2
- package/dist/hub/compose/member.js +11 -3
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/join/local.d.ts +1 -0
- package/dist/hub/join/local.js +8 -3
- package/dist/hub/join/local.js.map +1 -1
- package/dist/hub/member/exposure-api.d.ts +2 -0
- package/dist/hub/member/exposure-api.js +4 -2
- package/dist/hub/member/exposure-api.js.map +1 -1
- package/dist/hub/member/pairing-api.d.ts +2 -2
- package/dist/hub/member/pairing-api.js +2 -2
- package/dist/hub/member/pairing-api.js.map +1 -1
- package/dist/hub/server.js +8 -0
- package/dist/hub/server.js.map +1 -1
- package/dist/hub-pairing-summary.d.ts +3 -1
- package/dist/hub-pairing-summary.js +6 -3
- package/dist/hub-pairing-summary.js.map +1 -1
- package/dist/install-user-systemd.d.ts +20 -0
- package/dist/install-user-systemd.js +55 -0
- package/dist/install-user-systemd.js.map +1 -0
- package/dist/linux-launchers.d.ts +88 -0
- package/dist/linux-launchers.js +296 -0
- package/dist/linux-launchers.js.map +1 -0
- package/dist/locale.js +91 -4
- package/dist/locale.js.map +1 -1
- package/dist/runtime-client-store.js +5 -0
- package/dist/runtime-client-store.js.map +1 -1
- package/dist/runtime-pane-private.d.ts +2 -0
- package/dist/runtime-pane-private.js +25 -0
- package/dist/runtime-pane-private.js.map +1 -1
- package/dist/runtime-pane-private.ps1 +74 -7
- package/dist/selection-card.d.ts +4 -3
- package/dist/selection-card.js +2 -1
- package/dist/selection-card.js.map +1 -1
- package/dist/service-installer.js +11 -2
- package/dist/service-installer.js.map +1 -1
- package/dist/settings-change.d.ts +2 -0
- package/dist/settings-change.js +74 -31
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-confirmation.d.ts +23 -0
- package/dist/settings-confirmation.js +13 -2
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.d.ts +4 -0
- package/dist/settings-effect.js +14 -14
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +3 -1
- package/dist/settings-http-confirmation.js +12 -7
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-summary.d.ts +24 -0
- package/dist/settings-summary.js +42 -0
- package/dist/settings-summary.js.map +1 -0
- package/dist/transcript-delta-reader.d.ts +9 -1
- package/dist/transcript-delta-reader.js +37 -8
- package/dist/transcript-delta-reader.js.map +1 -1
- package/dist/ui/agent-details-settings.js +253 -0
- package/dist/ui/agent-export-dialog.js +169 -0
- package/dist/ui/agent-export-strings.js +81 -0
- package/dist/ui/agent-instructions-field.js +69 -0
- package/dist/ui/agent-page-strings.js +148 -0
- package/dist/ui/chat-quote.js +12 -17
- package/dist/ui/hub-client.js +1 -1
- package/dist/ui/hub-company-join-strings.js +1 -1
- package/dist/ui/hub-company-join.js +7 -0
- package/dist/ui/hub-strings.js +4 -0
- package/dist/ui/native-instance-settings.js +47 -14
- package/dist/ui/panel-details.js +38 -14
- package/dist/ui/panel-fleet.js +2 -2
- package/dist/ui/panel-settings.js +12 -9
- package/dist/ui/settings-access-overview.js +24 -3
- package/dist/ui/settings-confirm.js +5 -5
- package/dist/ui/settings-dialogs.js +210 -100
- package/dist/ui/settings-hub-company-join.js +69 -14
- package/dist/ui/settings-hub.js +13 -5
- package/dist/ui/settings-layout.js +0 -2
- package/dist/ui/settings-model.js +15 -0
- package/dist/ui/shared/access-overview.css +48 -0
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app-shell.js +144 -3
- package/dist/ui/shared/app.css +74 -50
- package/dist/ui/shared/instance-nav.js +5 -1
- package/dist/ui/shared/view-strings.js +2 -0
- package/dist/update-dispatch.d.ts +62 -0
- package/dist/update-dispatch.js +69 -2
- package/dist/update-dispatch.js.map +1 -1
- package/dist/web-api.d.ts +2 -0
- package/dist/web-api.js +49 -0
- package/dist/web-api.js.map +1 -1
- package/dist/web-session.d.ts +4 -2
- package/dist/web-session.js +5 -2
- package/dist/web-session.js.map +1 -1
- package/dist/windows-shortcuts.d.ts +29 -5
- package/dist/windows-shortcuts.js +52 -9
- package/dist/windows-shortcuts.js.map +1 -1
- package/dist/workspace-file-policy.d.ts +2 -0
- package/dist/workspace-file-policy.js +31 -0
- package/dist/workspace-file-policy.js.map +1 -0
- package/dist/workspace-follow.js +2 -1
- package/dist/workspace-follow.js.map +1 -1
- package/launcher/agend-install.cjs +7 -1
- package/package.json +2 -2
- package/templates/icons/agend-restart.ico +0 -0
- package/templates/icons/agend.ico +0 -0
- package/templates/runtime-assets/runtime-pane-private.ps1 +74 -7
- package/templates/windows-shortcuts.ps1 +45 -12
package/dist/cli.js
CHANGED
|
@@ -1371,6 +1371,24 @@ program
|
|
|
1371
1371
|
return;
|
|
1372
1372
|
}
|
|
1373
1373
|
const { spawnSync } = await import("node:child_process");
|
|
1374
|
+
// M-2858: every step below runs bare `npm`. With none on this PATH (a service or a runtime that ships Node alone —
|
|
1375
|
+
// AgEnD's bundled Node has no npm), find the npm that manages THIS install (#3440's proof: its global root is the
|
|
1376
|
+
// running package's own) and put its directory first, for this process and every npm and installer it starts; none
|
|
1377
|
+
// → stop before anything is asked or changed, and say what to do.
|
|
1378
|
+
{
|
|
1379
|
+
const { npmForUpdate } = await import("./update-dispatch.js");
|
|
1380
|
+
const found = await npmForUpdate();
|
|
1381
|
+
if (!found.ok) {
|
|
1382
|
+
console.error(`\n ✗ Not updated: ${found.reason}\n`);
|
|
1383
|
+
setUpdateProgressStage(DATA_DIR, "failed", { error: `Not updated: ${found.reason}` });
|
|
1384
|
+
process.exitCode = 1;
|
|
1385
|
+
return;
|
|
1386
|
+
}
|
|
1387
|
+
if (found.path !== null) {
|
|
1388
|
+
process.env.PATH = found.path;
|
|
1389
|
+
console.log(` npm is not on PATH; using the npm that manages this install (${found.npmDir}).`);
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1374
1392
|
// M-2797: from here on, every npm this update starts (the version lookup, the preflight, the release's own installer
|
|
1375
1393
|
// and its `npm install -g`) gives up on a silent connection instead of waiting minutes per try — set once, in this
|
|
1376
1394
|
// process's environment, for each key nobody set (a person's .npmrc, variable or flag is kept, whatever its value).
|
|
@@ -2009,13 +2027,9 @@ program
|
|
|
2009
2027
|
}
|
|
2010
2028
|
catch (err) {
|
|
2011
2029
|
console.error(t("install.start_failed", err.message));
|
|
2012
|
-
const
|
|
2013
|
-
|
|
2014
|
-
console.error(
|
|
2015
|
-
}
|
|
2016
|
-
else {
|
|
2017
|
-
console.error("Run manually: systemctl --user daemon-reload && systemctl --user enable --now com.agend.fleet");
|
|
2018
|
-
}
|
|
2030
|
+
const { installActivationHints } = await import("./install-user-systemd.js");
|
|
2031
|
+
for (const line of installActivationHints(err, detectPlatform(), svcPath))
|
|
2032
|
+
console.error(line);
|
|
2019
2033
|
process.exitCode = 1;
|
|
2020
2034
|
}
|
|
2021
2035
|
}
|
|
@@ -2025,14 +2039,33 @@ program
|
|
|
2025
2039
|
});
|
|
2026
2040
|
program
|
|
2027
2041
|
.command("shortcuts")
|
|
2028
|
-
.description("
|
|
2029
|
-
.
|
|
2042
|
+
.description("Create or update the desktop shortcuts (the dashboard and restart): on Windows from WSL, or on a Linux desktop")
|
|
2043
|
+
.addOption(new Option("--hint", "print the one-time line about them, if it is due (the installer runs this)").hideHelp())
|
|
2044
|
+
.action(async (opts) => {
|
|
2030
2045
|
// #1853: for an install that predates the installer's shortcuts, or that is only ever updated with `agend update`.
|
|
2031
|
-
const { runShortcuts, realShortcutsDeps } = await import("./windows-shortcuts.js");
|
|
2046
|
+
const { runShortcuts, realShortcutsDeps, detectWsl, realHost, printUpdateShortcutsHint } = await import("./windows-shortcuts.js");
|
|
2047
|
+
// M-2885: the installer's last step (launcher/agend-install.cjs) — a hint never fails an install.
|
|
2048
|
+
if (opts.hint) {
|
|
2049
|
+
await printUpdateShortcutsHint(DATA_DIR).catch(() => { });
|
|
2050
|
+
return;
|
|
2051
|
+
}
|
|
2032
2052
|
const { spawnSync } = await import("node:child_process");
|
|
2053
|
+
// M-2885: a Linux desktop (not WSL) gets XDG launchers instead.
|
|
2054
|
+
if (process.platform === "linux" && !detectWsl(realHost()).wsl) {
|
|
2055
|
+
const { runLinuxLaunchers, realLinuxHost, packageIcons } = await import("./linux-launchers.js");
|
|
2056
|
+
process.exitCode = await runLinuxLaunchers({
|
|
2057
|
+
host: realLinuxHost((command, args) => {
|
|
2058
|
+
const r = spawnSync(command, args, { encoding: "utf-8", timeout: 15_000, stdio: ["ignore", "pipe", "ignore"] });
|
|
2059
|
+
return { status: r.status, stdout: r.stdout ?? "" };
|
|
2060
|
+
}),
|
|
2061
|
+
dataDir: DATA_DIR, icons: () => packageIcons(), log: line => console.log(line), now: () => new Date(),
|
|
2062
|
+
});
|
|
2063
|
+
return;
|
|
2064
|
+
}
|
|
2033
2065
|
const { userInfo } = await import("node:os");
|
|
2034
|
-
process.exitCode = await runShortcuts(realShortcutsDeps(DATA_DIR, userInfo().username, (command, args) => {
|
|
2035
|
-
|
|
2066
|
+
process.exitCode = await runShortcuts(realShortcutsDeps(DATA_DIR, userInfo().username, (command, args, input) => {
|
|
2067
|
+
// M-2885: the script (with the icons) goes in on standard input; -EncodedCommand carries only the loader.
|
|
2068
|
+
const r = spawnSync(command, args, { encoding: "utf-8", timeout: 120_000, input, stdio: ["pipe", "pipe", "pipe"] });
|
|
2036
2069
|
return { status: r.status, stdout: r.stdout ?? "", stderr: r.stderr ?? "", error: r.error };
|
|
2037
2070
|
}));
|
|
2038
2071
|
});
|