@songsid/agend 2.2.0-beta.15 → 2.2.0-beta.16
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/cli.js +19 -0
- package/dist/cli.js.map +1 -1
- package/dist/compact-watch.d.ts +78 -0
- package/dist/compact-watch.js +247 -0
- package/dist/compact-watch.js.map +1 -0
- package/dist/daemon.js +45 -5
- package/dist/daemon.js.map +1 -1
- package/dist/fleet-manager.d.ts +3 -0
- package/dist/fleet-manager.js +47 -2
- package/dist/fleet-manager.js.map +1 -1
- package/dist/service-installer.d.ts +24 -0
- package/dist/service-installer.js +49 -1
- package/dist/service-installer.js.map +1 -1
- package/dist/topic-commands.d.ts +14 -0
- package/dist/topic-commands.js +30 -13
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-jsonl.d.ts +7 -2
- package/dist/transcript-jsonl.js +13 -7
- package/dist/transcript-jsonl.js.map +1 -1
- package/dist/ui/chat-store.js +32 -2
- package/dist/ui/chat-strings.js +8 -2
- package/dist/ui/panel-chat.js +4 -1
- package/dist/ui/shared/app.css +1 -0
- package/dist/usage/providers.d.ts +28 -8
- package/dist/usage/providers.js +96 -41
- package/dist/usage/providers.js.map +1 -1
- package/dist/web-api.js +1 -1
- package/dist/web-api.js.map +1 -1
- package/dist/web-commands.d.ts +14 -1
- package/dist/web-commands.js +6 -3
- package/dist/web-commands.js.map +1 -1
- package/dist/web-upload.d.ts +7 -3
- package/dist/web-upload.js +20 -8
- package/dist/web-upload.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1966,6 +1966,25 @@ program
|
|
|
1966
1966
|
console.log(` ${outcome.message}`);
|
|
1967
1967
|
return;
|
|
1968
1968
|
}
|
|
1969
|
+
// #1884: a legacy system unit is the service a root fleet runs under; the refresh brings its ExecStart to this
|
|
1970
|
+
// install's selection too, or `agend restart` refuses it after an update (see refreshSystemUnitExecStart).
|
|
1971
|
+
const systemUnit = opts.activate === false && detectPlatform() !== "macos" ? getSystemServicePath() : null;
|
|
1972
|
+
if (systemUnit) {
|
|
1973
|
+
const { refreshSystemUnitExecStart } = await import("./service-installer.js");
|
|
1974
|
+
try {
|
|
1975
|
+
const refreshed = refreshSystemUnitExecStart(systemUnit, serviceVars, dirname(dirname(execPath)));
|
|
1976
|
+
if (refreshed.kind === "updated")
|
|
1977
|
+
console.log(` ✓ ${systemUnit}: ExecStart=${refreshed.execStart}`);
|
|
1978
|
+
else if (refreshed.kind === "foreign")
|
|
1979
|
+
console.log(` ℹ ${systemUnit} left as it is: ${refreshed.reason}.`);
|
|
1980
|
+
else if (refreshed.kind === "unreadable")
|
|
1981
|
+
console.log(` ⚠ ${systemUnit} could not be read; left as it is.`);
|
|
1982
|
+
}
|
|
1983
|
+
catch (err) {
|
|
1984
|
+
console.error(` ✗ ${systemUnit} could not be updated (${err.message}); \`agend restart\` will refuse until its ExecStart starts this install. Run the update as root, or: sudo agend install --no-activate`);
|
|
1985
|
+
process.exitCode = 1;
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1969
1988
|
const svcPath = installService(serviceVars);
|
|
1970
1989
|
console.log(t("install.path", svcPath));
|
|
1971
1990
|
if (opts.activate !== false) {
|