@songsid/agend 2.3.5 → 2.3.6-beta.1
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/README.md +11 -1
- package/README.zh-TW.md +11 -1
- package/dist/agent-cli-instructions.md +15 -9
- package/dist/agent-cli.js +47 -20
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-endpoint.js +23 -8
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-list-output.d.ts +23 -0
- package/dist/agent-list-output.js +53 -0
- package/dist/agent-list-output.js.map +1 -0
- package/dist/agent-whats-new.js +10 -7
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/auth-api.js +3 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/agy-onboarding.d.ts +14 -0
- package/dist/backend/agy-onboarding.js +114 -0
- package/dist/backend/agy-onboarding.js.map +1 -0
- package/dist/backend/antigravity.js +3 -0
- package/dist/backend/antigravity.js.map +1 -1
- package/dist/backend/claude-code.d.ts +8 -0
- package/dist/backend/claude-code.js +11 -4
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/codex.d.ts +7 -14
- package/dist/backend/codex.js +32 -32
- 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 +19 -10
- package/dist/backend/grok.js +117 -83
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/types.d.ts +16 -1
- package/dist/backend/types.js.map +1 -1
- package/dist/channel/mcp-tools.js +10 -10
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/claude-model-observation.d.ts +71 -0
- package/dist/claude-model-observation.js +169 -0
- package/dist/claude-model-observation.js.map +1 -0
- package/dist/cli.js +62 -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/config-validator.js +19 -0
- package/dist/config-validator.js.map +1 -1
- package/dist/cross-instance-envelope.d.ts +4 -1
- package/dist/cross-instance-envelope.js +12 -7
- package/dist/cross-instance-envelope.js.map +1 -1
- package/dist/daemon.d.ts +26 -2
- package/dist/daemon.js +344 -49
- package/dist/daemon.js.map +1 -1
- package/dist/decision-list.d.ts +5 -4
- package/dist/decision-list.js +22 -8
- package/dist/decision-list.js.map +1 -1
- package/dist/delivery-consumed-watch.d.ts +24 -0
- package/dist/delivery-consumed-watch.js +21 -10
- package/dist/delivery-consumed-watch.js.map +1 -1
- package/dist/delivery-outbox.d.ts +9 -1
- package/dist/delivery-outbox.js +16 -0
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/delivery-reconciliation.d.ts +1 -1
- package/dist/delivery-reconciliation.js +1 -1
- package/dist/dispatcher-liveness.d.ts +172 -0
- package/dist/dispatcher-liveness.js +238 -0
- package/dist/dispatcher-liveness.js.map +1 -0
- package/dist/fleet-manager.d.ts +30 -2
- package/dist/fleet-manager.js +195 -22
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +43 -4
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +17 -2
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +18 -8
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +15 -0
- package/dist/general-knowledge/skills/multi-channel/SKILL.md +1 -1
- package/dist/general-knowledge/skills/scheduling/SKILL.md +1 -1
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +63 -17
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +5 -1
- package/dist/grok-delivery-proof.d.ts +24 -0
- package/dist/grok-delivery-proof.js +124 -0
- package/dist/grok-delivery-proof.js.map +1 -0
- package/dist/human-delivery-receipts.d.ts +4 -2
- package/dist/human-delivery-receipts.js +20 -13
- package/dist/human-delivery-receipts.js.map +1 -1
- package/dist/inbound-presentation.d.ts +28 -0
- package/dist/inbound-presentation.js +48 -0
- package/dist/inbound-presentation.js.map +1 -0
- 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/instance-config-impact.js +2 -0
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +2 -0
- package/dist/instance-lifecycle.js +3 -0
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.d.ts +10 -2
- package/dist/instructions.js +32 -7
- package/dist/instructions.js.map +1 -1
- 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 +174 -8
- package/dist/locale.js.map +1 -1
- package/dist/log-steps.d.ts +13 -0
- package/dist/log-steps.js +85 -40
- package/dist/log-steps.js.map +1 -1
- package/dist/needs-you-hub.js +8 -4
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +7 -2
- package/dist/needs-you.js +5 -9
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +1 -1
- package/dist/office-share-page.js.map +1 -1
- package/dist/outbound-handlers.d.ts +1 -0
- package/dist/outbound-handlers.js +25 -19
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +20 -0
- package/dist/outbound-schemas.js +24 -4
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/queued-handoffs.d.ts +3 -1
- package/dist/queued-handoffs.js +1 -1
- package/dist/queued-handoffs.js.map +1 -1
- package/dist/scheduler/db.d.ts +3 -0
- package/dist/scheduler/db.js +4 -0
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/task-board.d.ts +1 -0
- package/dist/scheduler/task-board.js +10 -1
- package/dist/scheduler/task-board.js.map +1 -1
- package/dist/scheduler/task-liveness.d.ts +34 -0
- package/dist/scheduler/task-liveness.js +49 -0
- package/dist/scheduler/task-liveness.js.map +1 -0
- 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 +43 -29
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-confirmation.d.ts +4 -0
- package/dist/settings-confirmation.js +5 -1
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-http-confirmation.js +2 -1
- 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/task-board-tool.d.ts +0 -12
- package/dist/task-board-tool.js +52 -4
- package/dist/task-board-tool.js.map +1 -1
- package/dist/tool-receipt-output.d.ts +151 -0
- package/dist/tool-receipt-output.js +50 -0
- package/dist/tool-receipt-output.js.map +1 -0
- package/dist/topic-commands.js +2 -1
- package/dist/topic-commands.js.map +1 -1
- 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/transcript-monitor.d.ts +5 -1
- package/dist/transcript-monitor.js +66 -4
- package/dist/transcript-monitor.js.map +1 -1
- package/dist/transcript-sources.d.ts +2 -0
- package/dist/transcript-sources.js +2 -0
- package/dist/transcript-sources.js.map +1 -1
- package/dist/types.d.ts +10 -0
- package/dist/ui/chat-quote.js +12 -17
- package/dist/ui/chat-render.js +11 -2
- package/dist/ui/chat-strings.js +4 -4
- package/dist/ui/fleet-canvas.js +5 -2
- package/dist/ui/fleet-office-card.js +4 -2
- package/dist/ui/fleet-org.js +2 -0
- package/dist/ui/panel-chat.js +28 -6
- package/dist/ui/panel-details.js +6 -1
- package/dist/ui/panel-log.js +4 -2
- package/dist/ui/panel-needs.js +2 -0
- package/dist/ui/panel-settings.js +29 -1
- package/dist/ui/settings-registry.js +4 -0
- package/dist/ui/settings-strings.js +14 -0
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app-needs.js +3 -0
- package/dist/ui/shared/app-shell.js +48 -3
- package/dist/ui/shared/app.css +2 -0
- package/dist/ui/shared/chat-work-bar.css +12 -0
- package/dist/ui/shared/model-observation.js +16 -0
- package/dist/ui/shared/usage-dialog.js +2 -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/usage/agent-output.d.ts +144 -0
- package/dist/usage/agent-output.js +76 -0
- package/dist/usage/agent-output.js.map +1 -0
- package/dist/usage/i18n-keys.d.ts +1 -1
- package/dist/usage/i18n-keys.js +1 -1
- package/dist/usage/i18n-keys.js.map +1 -1
- package/dist/usage/i18n.d.ts +1 -1
- package/dist/usage/i18n.js +2 -1
- package/dist/usage/i18n.js.map +1 -1
- package/dist/usage/providers.d.ts +4 -1
- package/dist/usage/providers.js +22 -11
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/usage-api.d.ts +1 -1
- package/dist/usage/usage-api.js +4 -4
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/web-api.d.ts +1 -0
- package/dist/web-api.js +2 -1
- package/dist/web-api.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/workflow-templates/default.md +2 -2
- package/launcher/agend-install.cjs +7 -1
- package/package.json +1 -1
- package/templates/icons/agend-restart.ico +0 -0
- package/templates/icons/agend.ico +0 -0
- package/templates/windows-shortcuts.ps1 +45 -12
package/dist/cli.js
CHANGED
|
@@ -124,6 +124,23 @@ try {
|
|
|
124
124
|
catch { /* malformed or missing config: the zone decides */ }
|
|
125
125
|
setLocale(detectLocale(configForLocale));
|
|
126
126
|
const program = new Command();
|
|
127
|
+
// These read-only entry points need an existing fleet. Check once before any
|
|
128
|
+
// token lookup, YAML read or status probe; setup/help/version remain available.
|
|
129
|
+
program.hook("preAction", (_hooked, action) => {
|
|
130
|
+
const readOnly = action.parent === program && ["ls", "status", "web"].includes(action.name());
|
|
131
|
+
const legacyStatus = action.name() === "status" && action.parent?.name() === "fleet";
|
|
132
|
+
if (!readOnly && !legacyStatus)
|
|
133
|
+
return;
|
|
134
|
+
try {
|
|
135
|
+
statSync(FLEET_CONFIG_PATH);
|
|
136
|
+
}
|
|
137
|
+
catch (error) {
|
|
138
|
+
if (error.code !== "ENOENT")
|
|
139
|
+
throw error;
|
|
140
|
+
console.error(t("cli.setup_required"));
|
|
141
|
+
process.exit(1);
|
|
142
|
+
}
|
|
143
|
+
});
|
|
127
144
|
/**
|
|
128
145
|
* #2481: an installed version whose fleet keeps failing to start is said on every command, with what to run to go back.
|
|
129
146
|
* Not for the fleet process itself (its own `fleet start`/`stop`, whose output is the service's log), completion, or
|
|
@@ -1348,6 +1365,24 @@ program
|
|
|
1348
1365
|
return;
|
|
1349
1366
|
}
|
|
1350
1367
|
const { spawnSync } = await import("node:child_process");
|
|
1368
|
+
// M-2858: every step below runs bare `npm`. With none on this PATH (a service or a runtime that ships Node alone —
|
|
1369
|
+
// AgEnD's bundled Node has no npm), find the npm that manages THIS install (#3440's proof: its global root is the
|
|
1370
|
+
// running package's own) and put its directory first, for this process and every npm and installer it starts; none
|
|
1371
|
+
// → stop before anything is asked or changed, and say what to do.
|
|
1372
|
+
{
|
|
1373
|
+
const { npmForUpdate } = await import("./update-dispatch.js");
|
|
1374
|
+
const found = await npmForUpdate();
|
|
1375
|
+
if (!found.ok) {
|
|
1376
|
+
console.error(`\n ✗ Not updated: ${found.reason}\n`);
|
|
1377
|
+
setUpdateProgressStage(DATA_DIR, "failed", { error: `Not updated: ${found.reason}` });
|
|
1378
|
+
process.exitCode = 1;
|
|
1379
|
+
return;
|
|
1380
|
+
}
|
|
1381
|
+
if (found.path !== null) {
|
|
1382
|
+
process.env.PATH = found.path;
|
|
1383
|
+
console.log(` npm is not on PATH; using the npm that manages this install (${found.npmDir}).`);
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1351
1386
|
// M-2797: from here on, every npm this update starts (the version lookup, the preflight, the release's own installer
|
|
1352
1387
|
// and its `npm install -g`) gives up on a silent connection instead of waiting minutes per try — set once, in this
|
|
1353
1388
|
// process's environment, for each key nobody set (a person's .npmrc, variable or flag is kept, whatever its value).
|
|
@@ -1965,13 +2000,9 @@ program
|
|
|
1965
2000
|
}
|
|
1966
2001
|
catch (err) {
|
|
1967
2002
|
console.error(t("install.start_failed", err.message));
|
|
1968
|
-
const
|
|
1969
|
-
|
|
1970
|
-
console.error(
|
|
1971
|
-
}
|
|
1972
|
-
else {
|
|
1973
|
-
console.error("Run manually: systemctl --user daemon-reload && systemctl --user enable --now com.agend.fleet");
|
|
1974
|
-
}
|
|
2003
|
+
const { installActivationHints } = await import("./install-user-systemd.js");
|
|
2004
|
+
for (const line of installActivationHints(err, detectPlatform(), svcPath))
|
|
2005
|
+
console.error(line);
|
|
1975
2006
|
process.exitCode = 1;
|
|
1976
2007
|
}
|
|
1977
2008
|
}
|
|
@@ -1981,14 +2012,33 @@ program
|
|
|
1981
2012
|
});
|
|
1982
2013
|
program
|
|
1983
2014
|
.command("shortcuts")
|
|
1984
|
-
.description("
|
|
1985
|
-
.
|
|
2015
|
+
.description("Create or update the desktop shortcuts (the dashboard and restart): on Windows from WSL, or on a Linux desktop")
|
|
2016
|
+
.addOption(new Option("--hint", "print the one-time line about them, if it is due (the installer runs this)").hideHelp())
|
|
2017
|
+
.action(async (opts) => {
|
|
1986
2018
|
// #1853: for an install that predates the installer's shortcuts, or that is only ever updated with `agend update`.
|
|
1987
|
-
const { runShortcuts, realShortcutsDeps } = await import("./windows-shortcuts.js");
|
|
2019
|
+
const { runShortcuts, realShortcutsDeps, detectWsl, realHost, printUpdateShortcutsHint } = await import("./windows-shortcuts.js");
|
|
2020
|
+
// M-2885: the installer's last step (launcher/agend-install.cjs) — a hint never fails an install.
|
|
2021
|
+
if (opts.hint) {
|
|
2022
|
+
await printUpdateShortcutsHint(DATA_DIR).catch(() => { });
|
|
2023
|
+
return;
|
|
2024
|
+
}
|
|
1988
2025
|
const { spawnSync } = await import("node:child_process");
|
|
2026
|
+
// M-2885: a Linux desktop (not WSL) gets XDG launchers instead.
|
|
2027
|
+
if (process.platform === "linux" && !detectWsl(realHost()).wsl) {
|
|
2028
|
+
const { runLinuxLaunchers, realLinuxHost, packageIcons } = await import("./linux-launchers.js");
|
|
2029
|
+
process.exitCode = await runLinuxLaunchers({
|
|
2030
|
+
host: realLinuxHost((command, args) => {
|
|
2031
|
+
const r = spawnSync(command, args, { encoding: "utf-8", timeout: 15_000, stdio: ["ignore", "pipe", "ignore"] });
|
|
2032
|
+
return { status: r.status, stdout: r.stdout ?? "" };
|
|
2033
|
+
}),
|
|
2034
|
+
dataDir: DATA_DIR, icons: () => packageIcons(), log: line => console.log(line), now: () => new Date(),
|
|
2035
|
+
});
|
|
2036
|
+
return;
|
|
2037
|
+
}
|
|
1989
2038
|
const { userInfo } = await import("node:os");
|
|
1990
|
-
process.exitCode = await runShortcuts(realShortcutsDeps(DATA_DIR, userInfo().username, (command, args) => {
|
|
1991
|
-
|
|
2039
|
+
process.exitCode = await runShortcuts(realShortcutsDeps(DATA_DIR, userInfo().username, (command, args, input) => {
|
|
2040
|
+
// M-2885: the script (with the icons) goes in on standard input; -EncodedCommand carries only the loader.
|
|
2041
|
+
const r = spawnSync(command, args, { encoding: "utf-8", timeout: 120_000, input, stdio: ["pipe", "pipe", "pipe"] });
|
|
1992
2042
|
return { status: r.status, stdout: r.stdout ?? "", stderr: r.stderr ?? "", error: r.error };
|
|
1993
2043
|
}));
|
|
1994
2044
|
});
|