@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.
Files changed (139) hide show
  1. package/THIRD_PARTY_NOTICES.md +4 -0
  2. package/dist/agent-export.d.ts +74 -0
  3. package/dist/agent-export.js +362 -0
  4. package/dist/agent-export.js.map +1 -0
  5. package/dist/agent-workspace.d.ts +1 -2
  6. package/dist/agent-workspace.js +8 -29
  7. package/dist/agent-workspace.js.map +1 -1
  8. package/dist/auth-api.js +3 -1
  9. package/dist/auth-api.js.map +1 -1
  10. package/dist/backend/codex.d.ts +7 -14
  11. package/dist/backend/codex.js +25 -29
  12. package/dist/backend/codex.js.map +1 -1
  13. package/dist/backend/grok-mcp.d.ts +5 -0
  14. package/dist/backend/grok-mcp.js +221 -0
  15. package/dist/backend/grok-mcp.js.map +1 -0
  16. package/dist/backend/grok.d.ts +0 -10
  17. package/dist/backend/grok.js +5 -82
  18. package/dist/backend/grok.js.map +1 -1
  19. package/dist/backend/types.d.ts +6 -1
  20. package/dist/backend/types.js.map +1 -1
  21. package/dist/build-provenance.json +1 -1
  22. package/dist/cli.js +45 -12
  23. package/dist/cli.js.map +1 -1
  24. package/dist/codex-pane-ownership.d.ts +13 -0
  25. package/dist/codex-pane-ownership.js +192 -0
  26. package/dist/codex-pane-ownership.js.map +1 -0
  27. package/dist/daemon.d.ts +2 -0
  28. package/dist/daemon.js +89 -8
  29. package/dist/daemon.js.map +1 -1
  30. package/dist/fleet-manager.d.ts +15 -1
  31. package/dist/fleet-manager.js +72 -17
  32. package/dist/fleet-manager.js.map +1 -1
  33. package/dist/hub/client.d.ts +1 -1
  34. package/dist/hub/client.js +11 -0
  35. package/dist/hub/client.js.map +1 -1
  36. package/dist/hub/compose/member.d.ts +2 -2
  37. package/dist/hub/compose/member.js +11 -3
  38. package/dist/hub/compose/member.js.map +1 -1
  39. package/dist/hub/join/local.d.ts +1 -0
  40. package/dist/hub/join/local.js +8 -3
  41. package/dist/hub/join/local.js.map +1 -1
  42. package/dist/hub/member/exposure-api.d.ts +2 -0
  43. package/dist/hub/member/exposure-api.js +4 -2
  44. package/dist/hub/member/exposure-api.js.map +1 -1
  45. package/dist/hub/member/pairing-api.d.ts +2 -2
  46. package/dist/hub/member/pairing-api.js +2 -2
  47. package/dist/hub/member/pairing-api.js.map +1 -1
  48. package/dist/hub/server.js +8 -0
  49. package/dist/hub/server.js.map +1 -1
  50. package/dist/hub-pairing-summary.d.ts +3 -1
  51. package/dist/hub-pairing-summary.js +6 -3
  52. package/dist/hub-pairing-summary.js.map +1 -1
  53. package/dist/install-user-systemd.d.ts +20 -0
  54. package/dist/install-user-systemd.js +55 -0
  55. package/dist/install-user-systemd.js.map +1 -0
  56. package/dist/linux-launchers.d.ts +88 -0
  57. package/dist/linux-launchers.js +296 -0
  58. package/dist/linux-launchers.js.map +1 -0
  59. package/dist/locale.js +91 -4
  60. package/dist/locale.js.map +1 -1
  61. package/dist/runtime-client-store.js +5 -0
  62. package/dist/runtime-client-store.js.map +1 -1
  63. package/dist/runtime-pane-private.d.ts +2 -0
  64. package/dist/runtime-pane-private.js +25 -0
  65. package/dist/runtime-pane-private.js.map +1 -1
  66. package/dist/runtime-pane-private.ps1 +74 -7
  67. package/dist/selection-card.d.ts +4 -3
  68. package/dist/selection-card.js +2 -1
  69. package/dist/selection-card.js.map +1 -1
  70. package/dist/service-installer.js +11 -2
  71. package/dist/service-installer.js.map +1 -1
  72. package/dist/settings-change.d.ts +2 -0
  73. package/dist/settings-change.js +74 -31
  74. package/dist/settings-change.js.map +1 -1
  75. package/dist/settings-confirmation.d.ts +23 -0
  76. package/dist/settings-confirmation.js +13 -2
  77. package/dist/settings-confirmation.js.map +1 -1
  78. package/dist/settings-effect.d.ts +4 -0
  79. package/dist/settings-effect.js +14 -14
  80. package/dist/settings-effect.js.map +1 -1
  81. package/dist/settings-http-confirmation.d.ts +3 -1
  82. package/dist/settings-http-confirmation.js +12 -7
  83. package/dist/settings-http-confirmation.js.map +1 -1
  84. package/dist/settings-summary.d.ts +24 -0
  85. package/dist/settings-summary.js +42 -0
  86. package/dist/settings-summary.js.map +1 -0
  87. package/dist/transcript-delta-reader.d.ts +9 -1
  88. package/dist/transcript-delta-reader.js +37 -8
  89. package/dist/transcript-delta-reader.js.map +1 -1
  90. package/dist/ui/agent-details-settings.js +253 -0
  91. package/dist/ui/agent-export-dialog.js +169 -0
  92. package/dist/ui/agent-export-strings.js +81 -0
  93. package/dist/ui/agent-instructions-field.js +69 -0
  94. package/dist/ui/agent-page-strings.js +148 -0
  95. package/dist/ui/chat-quote.js +12 -17
  96. package/dist/ui/hub-client.js +1 -1
  97. package/dist/ui/hub-company-join-strings.js +1 -1
  98. package/dist/ui/hub-company-join.js +7 -0
  99. package/dist/ui/hub-strings.js +4 -0
  100. package/dist/ui/native-instance-settings.js +47 -14
  101. package/dist/ui/panel-details.js +38 -14
  102. package/dist/ui/panel-fleet.js +2 -2
  103. package/dist/ui/panel-settings.js +12 -9
  104. package/dist/ui/settings-access-overview.js +24 -3
  105. package/dist/ui/settings-confirm.js +5 -5
  106. package/dist/ui/settings-dialogs.js +210 -100
  107. package/dist/ui/settings-hub-company-join.js +69 -14
  108. package/dist/ui/settings-hub.js +13 -5
  109. package/dist/ui/settings-layout.js +0 -2
  110. package/dist/ui/settings-model.js +15 -0
  111. package/dist/ui/shared/access-overview.css +48 -0
  112. package/dist/ui/shared/app-i18n.js +2 -2
  113. package/dist/ui/shared/app-shell.js +144 -3
  114. package/dist/ui/shared/app.css +74 -50
  115. package/dist/ui/shared/instance-nav.js +5 -1
  116. package/dist/ui/shared/view-strings.js +2 -0
  117. package/dist/update-dispatch.d.ts +62 -0
  118. package/dist/update-dispatch.js +69 -2
  119. package/dist/update-dispatch.js.map +1 -1
  120. package/dist/web-api.d.ts +2 -0
  121. package/dist/web-api.js +49 -0
  122. package/dist/web-api.js.map +1 -1
  123. package/dist/web-session.d.ts +4 -2
  124. package/dist/web-session.js +5 -2
  125. package/dist/web-session.js.map +1 -1
  126. package/dist/windows-shortcuts.d.ts +29 -5
  127. package/dist/windows-shortcuts.js +52 -9
  128. package/dist/windows-shortcuts.js.map +1 -1
  129. package/dist/workspace-file-policy.d.ts +2 -0
  130. package/dist/workspace-file-policy.js +31 -0
  131. package/dist/workspace-file-policy.js.map +1 -0
  132. package/dist/workspace-follow.js +2 -1
  133. package/dist/workspace-follow.js.map +1 -1
  134. package/launcher/agend-install.cjs +7 -1
  135. package/package.json +2 -2
  136. package/templates/icons/agend-restart.ico +0 -0
  137. package/templates/icons/agend.ico +0 -0
  138. package/templates/runtime-assets/runtime-pane-private.ps1 +74 -7
  139. 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 plat = detectPlatform();
2013
- if (plat === "macos") {
2014
- console.error(`Run manually: launchctl load ${svcPath}`);
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("WSL: create or update the Windows desktop shortcuts (the dashboard and restart)")
2029
- .action(async () => {
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
- const r = spawnSync(command, args, { encoding: "utf-8", timeout: 120_000, stdio: ["ignore", "pipe", "pipe"] });
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
  });