@songsid/agend 2.3.5-alpha.10 → 2.3.5-alpha.12
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/accounts-view.d.ts +17 -0
- package/dist/accounts-view.js +24 -8
- package/dist/accounts-view.js.map +1 -1
- package/dist/agent-cli-instructions.md +2 -2
- package/dist/auth-api.d.ts +48 -16
- package/dist/auth-api.js +83 -32
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/settings-role.d.ts +56 -0
- package/dist/authority/settings-role.js +48 -0
- package/dist/authority/settings-role.js.map +1 -0
- package/dist/backend/claude-code.d.ts +2 -0
- package/dist/backend/claude-code.js +32 -6
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/cli-env-probe.js +6 -2
- package/dist/backend/cli-env-probe.js.map +1 -1
- package/dist/backend/codex.d.ts +5 -3
- package/dist/backend/codex.js +31 -13
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/credential-profile.d.ts +18 -0
- package/dist/backend/credential-profile.js +46 -0
- package/dist/backend/credential-profile.js.map +1 -1
- package/dist/backend/kiro.js +1 -1
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/muse.d.ts +3 -1
- package/dist/backend/muse.js +31 -1
- package/dist/backend/muse.js.map +1 -1
- package/dist/backend/types.d.ts +17 -1
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-availability.d.ts +15 -0
- package/dist/backend-availability.js +37 -1
- package/dist/backend-availability.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/bundled-tmux-guard.d.ts +4 -0
- package/dist/bundled-tmux-guard.js +7 -0
- package/dist/bundled-tmux-guard.js.map +1 -1
- package/dist/claude-auth-status.d.ts +20 -8
- package/dist/claude-auth-status.js +38 -22
- package/dist/claude-auth-status.js.map +1 -1
- package/dist/cli-audited.d.ts +60 -0
- package/dist/cli-audited.js +84 -0
- package/dist/cli-audited.js.map +1 -0
- package/dist/cli-capability.d.ts +36 -5
- package/dist/cli-capability.js +2 -2
- package/dist/cli-capability.js.map +1 -1
- package/dist/cli-caps-module.d.ts +5 -1
- package/dist/cli-caps-module.js +4 -2
- package/dist/cli-caps-module.js.map +1 -1
- package/dist/cli-registry-check.js +16 -2
- package/dist/cli-registry-check.js.map +1 -1
- package/dist/cli-registry.d.ts +56 -4
- package/dist/cli-registry.js +1 -1
- package/dist/cli-registry.js.map +1 -1
- package/dist/cli-spec-antigravity.d.ts +12 -1
- package/dist/cli-spec-antigravity.js +13 -1
- package/dist/cli-spec-antigravity.js.map +1 -1
- package/dist/cli-spec-claude-code.d.ts +9 -0
- package/dist/cli-spec-claude-code.js +4 -2
- package/dist/cli-spec-claude-code.js.map +1 -1
- package/dist/cli-spec-codex.d.ts +10 -1
- package/dist/cli-spec-codex.js +5 -3
- package/dist/cli-spec-codex.js.map +1 -1
- package/dist/cli-spec-grok.d.ts +5 -0
- package/dist/cli-spec-grok.js +6 -1
- package/dist/cli-spec-grok.js.map +1 -1
- package/dist/cli-spec-kiro-cli.d.ts +7 -1
- package/dist/cli-spec-kiro-cli.js +7 -3
- package/dist/cli-spec-kiro-cli.js.map +1 -1
- package/dist/cli-spec-muse.d.ts +2 -0
- package/dist/cli-spec-muse.js +3 -1
- package/dist/cli-spec-muse.js.map +1 -1
- package/dist/cli-spec-opencode.d.ts +11 -1
- package/dist/cli-spec-opencode.js +7 -2
- package/dist/cli-spec-opencode.js.map +1 -1
- package/dist/cli.js +28 -1
- package/dist/cli.js.map +1 -1
- package/dist/create-host-account.d.ts +17 -0
- package/dist/create-host-account.js +47 -0
- package/dist/create-host-account.js.map +1 -0
- package/dist/daemon.d.ts +26 -0
- package/dist/daemon.js +131 -10
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-outbox.js +7 -0
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/fleet-context.d.ts +5 -1
- package/dist/fleet-manager.d.ts +363 -71
- package/dist/fleet-manager.js +1374 -367
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-process-handlers.d.ts +1 -1
- package/dist/fleet-process-handlers.js +3 -2
- package/dist/fleet-process-handlers.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +21 -14
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +9 -8
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +9 -1
- package/dist/general-knowledge/skills/kiro-engine-migration/SKILL.md +1 -1
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +27 -20
- package/dist/instance-lifecycle.js +33 -3
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.js +29 -6
- package/dist/instructions.js.map +1 -1
- package/dist/locale.js +125 -81
- package/dist/locale.js.map +1 -1
- package/dist/login-manager.d.ts +2 -2
- package/dist/login-manager.js +3 -2
- package/dist/login-manager.js.map +1 -1
- package/dist/native-model-catalog.d.ts +20 -0
- package/dist/native-model-catalog.js +107 -2
- package/dist/native-model-catalog.js.map +1 -1
- package/dist/public-web-gateway.js +1 -1
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +5 -0
- package/dist/public-web-link.js +8 -0
- package/dist/public-web-link.js.map +1 -1
- package/dist/runtime-api.d.ts +1 -1
- package/dist/runtime-api.js +104 -12
- package/dist/runtime-api.js.map +1 -1
- package/dist/runtime-autostart.d.ts +61 -0
- package/dist/runtime-autostart.js +161 -0
- package/dist/runtime-autostart.js.map +1 -0
- package/dist/runtime-background.d.ts +200 -0
- package/dist/runtime-background.js +480 -0
- package/dist/runtime-background.js.map +1 -0
- package/dist/runtime-build-info.js +5 -5
- package/dist/runtime-build-info.js.map +1 -1
- package/dist/runtime-cli-background.d.ts +92 -0
- package/dist/runtime-cli-background.js +336 -0
- package/dist/runtime-cli-background.js.map +1 -0
- package/dist/runtime-cli-install.d.ts +148 -8
- package/dist/runtime-cli-install.js +253 -59
- package/dist/runtime-cli-install.js.map +1 -1
- package/dist/runtime-cli.d.ts +8 -1
- package/dist/runtime-cli.js +206 -44
- package/dist/runtime-cli.js.map +1 -1
- package/dist/runtime-client-store.d.ts +11 -0
- package/dist/runtime-client-store.js +20 -5
- package/dist/runtime-client-store.js.map +1 -1
- package/dist/runtime-client.d.ts +23 -1
- package/dist/runtime-client.js +92 -6
- package/dist/runtime-client.js.map +1 -1
- package/dist/runtime-connection.d.ts +1 -1
- package/dist/runtime-connection.js +1 -1
- package/dist/runtime-connection.js.map +1 -1
- package/dist/runtime-coordinator.d.ts +95 -1
- package/dist/runtime-coordinator.js +344 -10
- package/dist/runtime-coordinator.js.map +1 -1
- package/dist/runtime-enroll-notice.d.ts +4 -0
- package/dist/runtime-enroll-notice.js +21 -0
- package/dist/runtime-enroll-notice.js.map +1 -0
- package/dist/runtime-enrollment.d.ts +21 -0
- package/dist/runtime-enrollment.js +52 -0
- package/dist/runtime-enrollment.js.map +1 -0
- package/dist/runtime-pane-native.js +4 -4
- package/dist/runtime-pane-native.js.map +1 -1
- package/dist/runtime-protocol.d.ts +78 -1
- package/dist/runtime-protocol.js +95 -5
- package/dist/runtime-protocol.js.map +1 -1
- package/dist/runtime-remote-accounts.d.ts +12 -0
- package/dist/runtime-remote-accounts.js +56 -5
- package/dist/runtime-remote-accounts.js.map +1 -1
- package/dist/runtime-remote-setup.d.ts +4 -1
- package/dist/runtime-remote-setup.js +4 -1
- package/dist/runtime-remote-setup.js.map +1 -1
- package/dist/runtime-update-controller.d.ts +11 -0
- package/dist/runtime-update-controller.js +56 -4
- package/dist/runtime-update-controller.js.map +1 -1
- package/dist/settings-api.d.ts +13 -1
- package/dist/settings-api.js +44 -20
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.d.ts +5 -13
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-confirmation.d.ts +11 -13
- package/dist/settings-confirmation.js +2 -6
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.d.ts +5 -0
- package/dist/settings-effect.js +76 -10
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +8 -1
- package/dist/settings-http-confirmation.js +39 -13
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-request-capability.d.ts +7 -0
- package/dist/settings-request-capability.js +3 -1
- package/dist/settings-request-capability.js.map +1 -1
- package/dist/setup-i18n.js +4 -4
- package/dist/setup-i18n.js.map +1 -1
- package/dist/signin-keepalive.d.ts +25 -1
- package/dist/signin-keepalive.js +44 -1
- package/dist/signin-keepalive.js.map +1 -1
- package/dist/subagent-records.d.ts +45 -0
- package/dist/subagent-records.js +214 -0
- package/dist/subagent-records.js.map +1 -0
- package/dist/subagent-service.d.ts +27 -0
- package/dist/subagent-service.js +199 -0
- package/dist/subagent-service.js.map +1 -0
- package/dist/tmux-manager.d.ts +2 -2
- package/dist/tmux-manager.js +5 -3
- package/dist/tmux-manager.js.map +1 -1
- package/dist/ui/account-identity.js +7 -5
- package/dist/ui/accounts-keepalive.js +17 -17
- package/dist/ui/accounts-manage.js +34 -34
- package/dist/ui/accounts-view.js +68 -24
- package/dist/ui/agent-runtime-settings.js +1 -1
- package/dist/ui/backend-signin.js +67 -67
- package/dist/ui/chat-msg-actions.js +50 -4
- package/dist/ui/chat-quote.js +256 -0
- package/dist/ui/chat-store.js +9 -4
- package/dist/ui/cli-caps.js +7 -7
- package/dist/ui/credential-profile-select.js +4 -4
- package/dist/ui/general-location.js +1 -1
- package/dist/ui/host-install.js +290 -0
- package/dist/ui/hub-company-join-strings.js +3 -0
- package/dist/ui/hub-company-join.js +20 -2
- package/dist/ui/hub-owner-strings.js +5 -4
- package/dist/ui/hub-pairing-progress-strings.js +1 -1
- package/dist/ui/hub-quick-strings.js +4 -4
- package/dist/ui/hub-strings.js +6 -6
- package/dist/ui/machine-signin.js +4 -4
- package/dist/ui/model-picker.js +68 -0
- package/dist/ui/panel-chat.js +74 -13
- package/dist/ui/panel-fleet.js +8 -2
- package/dist/ui/panel-hub.js +8 -4
- package/dist/ui/panel-needs.js +2 -2
- package/dist/ui/panel-runtimes.js +232 -33
- package/dist/ui/panel-settings.js +7 -1
- package/dist/ui/panel-windows-cli.js +1 -1
- package/dist/ui/runtime-cli-install.js +99 -20
- package/dist/ui/runtime-commands.d.ts +2 -0
- package/dist/ui/runtime-commands.js +34 -1
- package/dist/ui/runtime-update-status.js +2 -2
- package/dist/ui/search-dialog.js +1 -0
- package/dist/ui/settings-access-overview.js +167 -0
- package/dist/ui/settings-access-strings.js +1 -1
- package/dist/ui/settings-catalog.js +19 -3
- package/dist/ui/settings-confirm.js +2 -2
- package/dist/ui/settings-devices.js +59 -25
- package/dist/ui/settings-dialogs.js +12 -13
- package/dist/ui/settings-guests.js +1 -1
- package/dist/ui/settings-hub-company-join.js +10 -7
- package/dist/ui/settings-hub-connection.js +121 -0
- package/dist/ui/settings-hub-membership.js +1 -1
- package/dist/ui/settings-hub-run.js +5 -6
- package/dist/ui/settings-hub-section.js +3 -6
- package/dist/ui/settings-hub.js +12 -7
- package/dist/ui/settings-layout.js +9 -7
- package/dist/ui/settings-outside.js +87 -19
- package/dist/ui/settings-registry.js +2 -1
- package/dist/ui/settings-revoke-strings.js +28 -0
- package/dist/ui/settings-strings.js +25 -25
- package/dist/ui/settings-web-authority.js +11 -4
- package/dist/ui/shared/accounts.css +11 -1
- package/dist/ui/shared/agend-auth.js +8 -1
- package/dist/ui/shared/app-i18n.js +10 -12
- package/dist/ui/shared/app-session.js +13 -16
- package/dist/ui/shared/app-shell.js +37 -37
- package/dist/ui/shared/app-store.js +2 -0
- package/dist/ui/shared/app.css +85 -14
- package/dist/ui/shared/chat-render.js +17 -5
- package/dist/ui/shared/chat-strings.js +4 -4
- package/dist/ui/shared/device-roles.js +27 -0
- package/dist/ui/shared/host-install.css +10 -0
- package/dist/ui/shared/hub-owner.css +6 -0
- package/dist/ui/shared/model-picker.css +21 -0
- package/dist/ui/shared/runtime-install.css +26 -1
- package/dist/ui/shared/setup-host-text.js +4 -4
- package/dist/ui/shared/signin.js +171 -64
- package/dist/ui/shared/subagent-row.css +15 -0
- package/dist/ui/shared/usage-dialog.js +28 -16
- package/dist/ui/shared/view-strings.js +7 -7
- package/dist/ui/shared/web-authorize.js +54 -4
- package/dist/ui/signin.html +19 -8
- package/dist/ui/structured-signin.js +30 -30
- package/dist/ui/subagent-row.js +72 -0
- package/dist/ui/web-terminal/terminal.js +9 -9
- package/dist/update-launch.js +4 -1
- package/dist/update-launch.js.map +1 -1
- package/dist/update-npm-env.d.ts +70 -0
- package/dist/update-npm-env.js +128 -0
- package/dist/update-npm-env.js.map +1 -0
- package/dist/usage/format-rich.js +1 -1
- package/dist/usage/format-rich.js.map +1 -1
- package/dist/usage/providers.js +2 -2
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/usage-api.d.ts +8 -2
- package/dist/usage/usage-api.js +12 -5
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/web-api.d.ts +38 -4
- package/dist/web-api.js +370 -18
- package/dist/web-api.js.map +1 -1
- package/dist/web-auth.js +1 -1
- package/dist/web-auth.js.map +1 -1
- package/dist/web-backend-login.d.ts +2 -0
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-channel-echo.js +3 -1
- package/dist/web-channel-echo.js.map +1 -1
- package/dist/web-commands.d.ts +9 -1
- package/dist/web-commands.js +7 -1
- package/dist/web-commands.js.map +1 -1
- package/dist/web-host-install.d.ts +127 -0
- package/dist/web-host-install.js +165 -0
- package/dist/web-host-install.js.map +1 -0
- package/dist/web-remote-access.d.ts +194 -11
- package/dist/web-remote-access.js +458 -34
- package/dist/web-remote-access.js.map +1 -1
- package/dist/web-session.d.ts +11 -3
- package/dist/web-session.js.map +1 -1
- package/dist/web-signin-device.d.ts +16 -0
- package/dist/web-signin-device.js +81 -0
- package/dist/web-signin-device.js.map +1 -0
- package/dist/web-update.js +3 -1
- package/dist/web-update.js.map +1 -1
- package/dist/windows-cli-api.js +2 -1
- package/dist/windows-cli-api.js.map +1 -1
- package/dist/windows-cli-worker.d.ts +14 -0
- package/dist/windows-cli-worker.js +145 -1
- package/dist/windows-cli-worker.js.map +1 -1
- package/dist/windows-cli.d.ts +4 -0
- package/dist/windows-cli.js +9 -1
- package/dist/windows-cli.js.map +1 -1
- package/launcher/agend-install.cjs +16 -3
- package/package.json +1 -1
- package/templates/runtime-install/install.ps1 +219 -12
|
@@ -16,7 +16,7 @@ interface FleetProcessOptions {
|
|
|
16
16
|
export declare function installFleetProcessHandlers(options: FleetProcessOptions): {
|
|
17
17
|
readonly stopping: boolean;
|
|
18
18
|
};
|
|
19
|
-
/**
|
|
19
|
+
/** Deliberate config/tmux refusals are failed starts, not runtime rejections to keep alive. */
|
|
20
20
|
export declare function startFleetOrExit(manager: {
|
|
21
21
|
startAll(path: string): Promise<void>;
|
|
22
22
|
stopAll(): Promise<void>;
|
|
@@ -75,14 +75,15 @@ export function installFleetProcessHandlers(options) {
|
|
|
75
75
|
});
|
|
76
76
|
return { get stopping() { return stopping; } };
|
|
77
77
|
}
|
|
78
|
-
/**
|
|
78
|
+
/** Deliberate config/tmux refusals are failed starts, not runtime rejections to keep alive. */
|
|
79
79
|
export async function startFleetOrExit(manager, path, runtime, output) {
|
|
80
80
|
try {
|
|
81
81
|
await manager.startAll(path);
|
|
82
82
|
}
|
|
83
83
|
catch (error) {
|
|
84
84
|
const { ConfigStartupError } = await import("./config-history.js");
|
|
85
|
-
|
|
85
|
+
const { BundledTmuxStartupError } = await import("./bundled-tmux-guard.js");
|
|
86
|
+
if (!(error instanceof ConfigStartupError) && !(error instanceof BundledTmuxStartupError))
|
|
86
87
|
throw error;
|
|
87
88
|
output.error(error.message);
|
|
88
89
|
let timer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fleet-process-handlers.js","sourceRoot":"","sources":["../src/fleet-process-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE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,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAClI,CAAC;gBAAS,CAAC;YAAC,IAAI,KAAK;gBAAE,YAAY,CAAC,KAAK,CAAC,CAAC;QAAC,CAAC;QAC7C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
|
@@ -126,6 +126,8 @@ A private chat or group where ClassicBot runs a single agent, managed by
|
|
|
126
126
|
- Can: `/start` an agent in the room and chat with it.
|
|
127
127
|
- Can't: use fleet-topic commands or see the fleet; an unregistered chat stays
|
|
128
128
|
silent unless `/start` is allowed.
|
|
129
|
+
When it delegates work for a person in the room, it keeps the requester with the worker and correlation, then summarizes the matching result in its bound channel and mentions that requester. Unrelated peer reports, chatter and FYI stay quiet.
|
|
130
|
+
|
|
129
131
|
- Code: `src/classic-channel-manager.ts`.
|
|
130
132
|
- Refs: `docs/permissions.md`.
|
|
131
133
|
|
|
@@ -155,25 +157,29 @@ owner too, with the same authority, checked on every request.
|
|
|
155
157
|
(device-code sign-in) and sign other devices out.
|
|
156
158
|
- Can't: act as operator from another machine, except the owner signed in from
|
|
157
159
|
outside with the authenticator; or after the session was revoked or ran out.
|
|
158
|
-
Setting up, re-binding or removing the authenticator is this computer only.
|
|
160
|
+
Setting up, re-binding or removing the authenticator is each signed-in admin's own (never another's), over a direct connection (never a link); while their own switch is on, off this computer it needs their current code. Connections from outside and their switch stay this computer's, on a web-only fleet.
|
|
159
161
|
- Threat model (64a289a0): a process running as the fleet's OS user is
|
|
160
162
|
treated as the owner. It can read `web.token` and mint this session, and it
|
|
161
163
|
can edit `fleet.yaml` anyway. AgEnD defends against remote parties, other OS
|
|
162
164
|
users, links, guests and CSRF; see `docs/SECURITY.md#threat-model`.
|
|
163
|
-
- Confirming a held Settings change
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
165
|
+
- Confirming a held Settings change (AGEND-122, upstream #3486 R1): a role, not
|
|
166
|
+
a per-browser proof. A signed-in human fleet admin on a web cookie session
|
|
167
|
+
presses Apply now from wherever the dashboard is reached (this computer, a
|
|
168
|
+
direct LAN or tailnet connection, a link whose option is on), for every class
|
|
169
|
+
of change, on a chat fleet and a web-only fleet alike. An agent, a guest, a
|
|
170
|
+
header token and a paired Windows PC never confirm. Each admin may ask for more of THEIR OWN
|
|
171
|
+
confirmations: their own authenticator and their own "ask for my code" switch (per
|
|
172
|
+
admin, kept with the app, never in fleet.yaml): then off this computer each of their
|
|
173
|
+
changes takes a fresh code of their own app, bound to that one change, used once, under
|
|
174
|
+
the same wrong-code limit as signing in from outside, audited as "Authenticator code",
|
|
175
|
+
and never over a link for a change that opens a link. Nobody can set up, change or
|
|
176
|
+
switch off another admin's app; every set-up and switch posts a Notice to the fleet.
|
|
177
|
+
"Only this computer can authorize" still means only the AgEnD computer's own browser,
|
|
178
|
+
fleet-wide. A remote confirmation of a link-opening or secret change posts a Notice.
|
|
179
|
+
See `docs/SECURITY.md#sensitive-settings-need-a-second-confirmation`.
|
|
174
180
|
- Code: `src/authority/web-authority.ts` (`HOST_OPERATOR`, `hostSessionHere`);
|
|
175
181
|
`src/fleet-manager.ts:2056-2060`; `src/locale.ts:1505-1506`;
|
|
176
|
-
`src/fleet-manager.ts` (`
|
|
182
|
+
`src/fleet-manager.ts` (`settingsSelfConfirmation`, `settingsCodeSession`, `settingsTotpConfirm`; the role rule is `src/authority/settings-role.ts`).
|
|
177
183
|
- Refs: 28c2d3a3, 64a289a0, #3165, #3327, #3352.
|
|
178
184
|
|
|
179
185
|
## fleet admin (`admin_users`)
|
|
@@ -396,7 +402,8 @@ signed in this way is the verified owner, the same as the host operator.
|
|
|
396
402
|
builds; sign in with the authenticator app's code and, as the verified owner,
|
|
397
403
|
approve a new device and sign other devices out (maintainer ruling, #3165).
|
|
398
404
|
- Can't: use it on main today — alpha only; set up, re-bind or remove the
|
|
399
|
-
authenticator (this computer
|
|
405
|
+
authenticator (each signed-in admin's own, over a direct connection; connections from outside stay this computer's).
|
|
406
|
+
- Also (#3486): a browser that is not signed in yet can sign in as one admin with that admin's own app (`/auth/totp` with the 6-digit code alone — the server works out whose it is; `TOTP_SIGNIN_OVER_PUBLIC_LINK`); see SECURITY.md.
|
|
400
407
|
- Code (alpha branch): `src/auth-api.ts` (`/auth/totp`);
|
|
401
408
|
`src/authority/web-authority.ts`; `src/fleet-manager.ts` (`deviceApprovalOwner`).
|
|
402
409
|
- Refs: #3008, #3165, fleet decision 0471da59.
|
|
@@ -45,22 +45,23 @@ For codex the variable and the path are different:
|
|
|
45
45
|
CODEX_HOME="${AGEND_HOME:-$HOME/.agend}/credential-profiles/codex/<profile>" codex login
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
A fleet admin can do it **from chat**, no host access needed (claude-code,
|
|
49
|
+
codex and kiro-cli alike, #3212):
|
|
49
50
|
|
|
50
51
|
```
|
|
51
52
|
/login claude-code <profile>
|
|
53
|
+
/login codex <profile>
|
|
54
|
+
/login kiro-cli <profile>
|
|
52
55
|
```
|
|
53
56
|
|
|
54
|
-
It opens the same
|
|
55
|
-
|
|
57
|
+
It opens the same login as `/login <backend>`, for that profile only (codex: a
|
|
58
|
+
device code; kiro: its login picker), and the web dashboard's Settings →
|
|
59
|
+
Accounts offers **Connect account** for each account. Or on the host:
|
|
56
60
|
|
|
57
61
|
```
|
|
58
62
|
CLAUDE_CONFIG_DIR="${AGEND_HOME:-$HOME/.agend}/credential-profiles/claude-code/<profile>" claude auth login
|
|
59
63
|
```
|
|
60
64
|
|
|
61
|
-
Kiro and codex profiles cannot be signed in from chat yet: `/login kiro-cli <profile>`
|
|
62
|
-
answers with the host command to run.
|
|
63
|
-
|
|
64
65
|
A Claude Code profile keeps its own login, trust and conversations, and a
|
|
65
66
|
`settings.json` that starts as a copy of the user's; the user's `CLAUDE.md`,
|
|
66
67
|
agents, commands, skills, output styles and plugins are shared with it.
|
|
@@ -72,7 +73,7 @@ anywhere: on macOS the login is stored under a Keychain item named after that
|
|
|
72
73
|
path string, so a login under a differently spelled path (a relative
|
|
73
74
|
`AGEND_HOME`, a trailing slash, a `~` that was never expanded) lands in another
|
|
74
75
|
item, and the agent still finds no login.
|
|
75
|
-
|
|
76
|
+
The refusal also names `/login <backend> <profile>`: offer that first, since it works from chat.
|
|
76
77
|
|
|
77
78
|
## Create a worker on another subscription
|
|
78
79
|
|
|
@@ -112,7 +113,7 @@ is not started: the reply says `restarted: false`, and the switch applies at its
|
|
|
112
113
|
next start.
|
|
113
114
|
|
|
114
115
|
Set `credential_profile` with `update_instance_config` or web Settings: the
|
|
115
|
-
agent's **Account** field, or **Settings → Agents → AI
|
|
116
|
+
agent's **Account** field, or **Settings → Agents → AI accounts and API keys →
|
|
116
117
|
Accounts** (**Move agents here…**, and each CLI's **Fleet default**). Settings
|
|
117
118
|
refuses a signed-out profile and names its login command.
|
|
118
119
|
Never hand-edit `fleet.yaml`.
|
|
@@ -31,7 +31,15 @@ Only when a result is unclear: `delivery_status` with the `operation_id` / `deli
|
|
|
31
31
|
|
|
32
32
|
- Coordinator flow: `delegate_task` → silent work → `report_result` (zero ack-only pings).
|
|
33
33
|
- Worker flow: finish with `report_result`, or use `request_information` when blocked. Prefer `report_result` over delegating; use `delegate_task` only when your assignment allows it, and never re-delegate a task back to its sender.
|
|
34
|
-
- Cross-instance traffic is `[from:name]` → answer with `send_to_instance` / `report_result
|
|
34
|
+
- Cross-instance traffic is `[from:name]` → answer the sender with `send_to_instance` / `report_result`. Follow the runtime's channel-facing exception below.
|
|
35
|
+
|
|
36
|
+
## ClassicBot: finish a human's delegated work
|
|
37
|
+
|
|
38
|
+
A result answering work you delegated for a channel human continues that human's request. Match the worker and `correlation_id` to your own outgoing task; summarize the useful outcome with `reply` in your bound ClassicBot channel, mentioning the original requester. No new explicit request is needed, and the reporting worker needs no acknowledgment-only reply.
|
|
39
|
+
|
|
40
|
+
When delegating, retain the requester's name/ID, original human request, worker and returned correlation in your task notes; preserve them through compaction. If missing, recover your own task and request from history/notes or `delivery_status`; never substitute the latest speaker or trust a peer's claimed requester.
|
|
41
|
+
|
|
42
|
+
Peer chatter and FYI stay quiet, as do unrelated reports. Other channel-facing work still needs an explicit request to communicate with humans. CLI mode uses `agend-agent reply`. This exception is for ClassicBot; fleet-topic routing remains unchanged. A worker result is not human approval or new authority.
|
|
35
43
|
|
|
36
44
|
## Before acting on a peer's message
|
|
37
45
|
|
|
@@ -24,7 +24,7 @@ bypass it. Keep the original pin, history and receipts; never resume a frozen Cl
|
|
|
24
24
|
The guided **admin-confirmed migration on 2.x followed by a safe upgrade to 3.0 (plan C, #3047)** is coming separately.
|
|
25
25
|
It is not implemented by this refusal/Needs-you change. Do not promise an automatic conversion or an upgrade date.
|
|
26
26
|
|
|
27
|
-
繁體中文:Kiro CLI 3.0 已移除 Classic
|
|
27
|
+
繁體中文:Kiro CLI 3.0 已移除 Classic。請由主機管理員改用相容的 2.x;這個拒絕啟動的保護不會更動已存對話。
|
|
28
28
|
既有管理員確認的 Classic→TUI 遷移只接受 2.34 以上的 **2.x**。先在 2.x 經管理員確認遷移、再安全升級到 3.0
|
|
29
29
|
的引導流程(計畫 C,#3047)會另外提供,並未包含在這次保護裡。不要直接改 `kiro_ui` 或刪除版本檢查來繞過。
|
|
30
30
|
|
|
@@ -46,8 +46,11 @@ only. Pages: `/ui` chat, `/ui/fleet`, `/ui/needs`, `/view`, `/settings`.
|
|
|
46
46
|
|
|
47
47
|
**The code.** 8 characters shown as `ABCD-EFGH` (case and the dash don't matter), valid 5 minutes, single use; asking
|
|
48
48
|
again replaces it. 5 wrong tries use it up; 20 failures in 15 minutes pause sign-in for 5 minutes ("Too many wrong
|
|
49
|
-
codes — sign-in is paused for a few minutes."). The sign-in page is **Sign in to AgEnD
|
|
50
|
-
button **Sign in**.
|
|
49
|
+
codes — sign-in is paused for a few minutes."). The sign-in page is **Sign in to AgEnD** (登入 AgEnD): field **One-time code** (一次性裝置登入碼 — in zh-TW
|
|
50
|
+
the dashboard's code is always 裝置登入碼), button **Sign in**. Its hint (S-117): opened on the AgEnD computer itself
|
|
51
|
+
(localhost), it says how to sign in again there — the desktop shortcut **AgEnD 儀表板** on Windows, `agend web` in a
|
|
52
|
+
terminal otherwise; from another device it says `/web` only while a chat is connected (a fleet whose chat is not
|
|
53
|
+
connected yet, or a web-only one, points at `agend web --code` on the AgEnD computer).
|
|
51
54
|
|
|
52
55
|
**Send me a new code.** On the sign-in page, for a browser that signed in before with a `/web` code (remembered 90
|
|
53
56
|
days). The code arrives by DM. Limits: one a minute and five an hour per browser; fleet-wide one per 20 s, 20 an hour.
|
|
@@ -73,9 +76,10 @@ lists every page (**Pages (N)**), shows a page at phone or tablet width, and goe
|
|
|
73
76
|
- Public link: as long as the link, at most 8 h (never longer than the account's own limit: `web.session.local` for
|
|
74
77
|
an admin, `web.guests.session` for a guest), 30 min unused, and they end when the link closes.
|
|
75
78
|
- At most 8 sessions; the least recently used is dropped.
|
|
76
|
-
- The session menu (sidebar): "Signed in · …", "Ends by <time> at the latest, or after <span> unused"
|
|
77
|
-
|
|
78
|
-
out everywhere**.
|
|
79
|
+
- The session menu (sidebar): "Signed in · …", "Ends by <time> at the latest, or after <span> unused", your role
|
|
80
|
+
(Owner ✓ / Admin · not verified / Guest / Read-only) and, for an admin, **Manage devices** → Settings → Access & security →
|
|
81
|
+
Devices & sign-in, which lists every signed-in device with **Sign out** and has **Sign out everywhere**. On a chat fleet an
|
|
82
|
+
admin signs out their own devices and any guest's or read-only one, not another admin's.
|
|
79
83
|
- `/web revoke` (in chat) signs every browser out, withdraws an unused code and closes the public link.
|
|
80
84
|
|
|
81
85
|
**`/view` without signing in.** `web.view_access`: `open` (default) or `session`. With `open`, anyone who can reach
|
|
@@ -191,16 +195,16 @@ Turn it off with Settings → Chat & connections → **Web echo** (`web.echo_to_
|
|
|
191
195
|
|
|
192
196
|
`/ui/needs`, the sidebar row **Needs you** with a count, the phone tab of the same name, and "(N)" in the browser
|
|
193
197
|
tab title. Items, grouped by instance, oldest first:
|
|
194
|
-
- the CLI waiting: "Permission needed", "Dangerous command waiting", "
|
|
198
|
+
- the CLI waiting: "Permission needed", "Dangerous command waiting", "Waiting to connect its AI account", "Waiting at a dialog", "May be
|
|
195
199
|
waiting for input", "Waiting at its terminal", "Not responding", "Exited";
|
|
196
|
-
- the instance: "Paused:
|
|
200
|
+
- the instance: "Paused: AI account not connected", "Crashed";
|
|
197
201
|
- deliveries from the last 24 h: "Could not confirm delivery", "Delivery failed" (source → target · kind).
|
|
198
202
|
|
|
199
203
|
"Asking you a question" is a kiro V3 question card, posted to the instance's chat with a button per answer and a box
|
|
200
204
|
for answering in words (on Discord/Telegram: reply to the post); an MCP input request offers Decline / Cancel and is
|
|
201
205
|
filled in at the terminal (View).
|
|
202
206
|
A prompt shows its own answer buttons (first answer wins); a delivery has **Acknowledge** (clears it everywhere);
|
|
203
|
-
"Paused:
|
|
207
|
+
"Paused: AI account not connected" and "AI account needs connecting" have **Connect account** when the dashboard can run that login (#2233), in the group **AI accounts**; every item has **Open chat**. **Notify me on this device** (Turn on / Turn off) gives desktop notifications while the
|
|
204
208
|
tab is hidden — per browser, not on phones or plain-HTTP addresses. Config: `needs_you.live_message` (default on),
|
|
205
209
|
`needs_you.dm` (default off), `needs_you.task_board` (default off: the task board's cards waiting
|
|
206
210
|
for you — set `true` to list them).
|
|
@@ -499,11 +503,12 @@ Header: version, **Setup wizard**, **Help**.
|
|
|
499
503
|
adds its changes. The bar **N unsaved change(s)** shows the cost — **Immediately**, **Restart this Agent** or **Restart
|
|
500
504
|
AgEnD** — then **Save** or **Discard**; an invalid field keeps Save waiting (**Fix 1 field(s) to save**). Over a public
|
|
501
505
|
link an admin can change the fleet's settings too (not the dashboard's own web settings, Guests or Web authority).
|
|
502
|
-
Confirmations (e.g. opening access) are asked at Apply. A change that loosens access
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
506
|
+
Confirmations (e.g. opening access) are asked at Apply. A change that loosens access is confirmed by a signed-in fleet
|
|
507
|
+
admin's own Apply, from any device (AGEND-122): no DM step and no browser authorization ("Confirmed by your account —
|
|
508
|
+
applying."; every check runs again at execution). It waits ("Waiting for confirmation", **Withdraw**) only where that
|
|
509
|
+
admin turned on **Ask for my authenticator code to confirm changes from other devices** (Owner verification; the card
|
|
510
|
+
takes the 6-digit code) or **Only this computer can authorize** is on. Guests, read-only sessions and agents never
|
|
511
|
+
confirm. After a failure, unapplied changes are staged again
|
|
507
512
|
(secrets must be re-entered). **Restart AgEnD** restarts every agent
|
|
508
513
|
(never automatic); until then every page shows **N saved change(s) take effect after AgEnD restarts** · **Restart now** ·
|
|
509
514
|
**Later**. Preferences and Look save with the same bar (**Your preferences**; device-only switches count on their own; Restore defaults saves at once).
|
|
@@ -520,13 +525,15 @@ link, an unverified browser or a change that needs the host CLI. After a failure
|
|
|
520
525
|
|
|
521
526
|
**Look** — see [Look](#look) for the cards and what they mean.
|
|
522
527
|
|
|
523
|
-
**
|
|
524
|
-
**
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
528
|
+
**Connecting an AI account (#2233; S-117 wording: 連接 AI 帳號 / 已連接 / 撤銷連接, never "sign in with a device
|
|
529
|
+
code")** — local admin sessions only (never a guest or the public link): Settings → Agents → **AI accounts and API keys** → **Accounts** (each AI
|
|
530
|
+
account connected on this machine and each credential profile an agent uses: state **connected** / **not connected**,
|
|
531
|
+
**Connect account** / **Reconnect**, or the host command / install command where the dashboard cannot), the web
|
|
532
|
+
`/backend` picker's **Connect your <backend> account** on a "not connected" choice, and Needs you's **Connect account**
|
|
533
|
+
(group **AI accounts**). The dialog: the pre-check's question (still connected? kiro disconnects first; **Use a
|
|
534
|
+
temporary public link** where allowed), titled **Connect an AI account: <CLI · account>**, then the provider's link and **authorization code** (授權碼) to finish on the
|
|
535
|
+
provider's official website, or **Open the authorization terminal** + its one-time access code (this browser only, no DM). While it runs every admin page shows
|
|
536
|
+
"Connecting your X account (started on <device>)" with **Open**; another browser sees no code and may **Cancel connecting**. Ends
|
|
530
537
|
when the browser session ends. A missing CLI is not installed here (the dialog says the install command). agy and
|
|
531
538
|
opencode: no dashboard sign-in. Config: `web_terminal.*` (as `/login`). Default Kiro, Claude Code and Codex
|
|
532
539
|
accounts sign in with named browser controls instead (#2599): Kiro's account method, Start URL and region and Claude's
|
|
@@ -4,6 +4,7 @@ import { NativePaneCrashBudget } from "./native-pane-crash-budget.js";
|
|
|
4
4
|
import { localWindowsCliEnabled, remoteRuntimeEnabled } from "./runtime-switches.js";
|
|
5
5
|
import { settingsUndo, undoSettingsPaths } from "./settings-transaction.js";
|
|
6
6
|
import { instanceTeams } from "./team-membership.js";
|
|
7
|
+
import { classifyInstanceChange } from "./instance-config-impact.js";
|
|
7
8
|
import { measureSyncWork } from "./sync-work-attribution.js";
|
|
8
9
|
import { hostFacts, hostIds } from "./cli-registry.js";
|
|
9
10
|
import { REMOVED_BACKENDS, isRemovedBackend, removedBackendMessage } from "./backend/removed.js";
|
|
@@ -547,11 +548,13 @@ export class InstanceLifecycle {
|
|
|
547
548
|
? `${affected.length} instances on ${on}: ${affected.join(", ")}`
|
|
548
549
|
: profile ? `\`${name}\` (${backend}, profile \`${profile}\`)` : `\`${name}\` (${backend})`;
|
|
549
550
|
// A profile is signed in with its own variable: `/login <backend>` would sign the DEFAULT login in. claude-code's
|
|
550
|
-
//
|
|
551
|
+
// (#1699 part 2), codex's and kiro-cli's (#3212 PR 4) are signed in from chat (`/login <backend> <profile>`); any
|
|
552
|
+
// other backend's on the host.
|
|
551
553
|
const profileLogin = profile ? credentialProfileLoginCommand(getAgendHome(), backend, profile) : null;
|
|
552
554
|
const chatLogin = !!profileLogin && CHAT_PROFILE_LOGIN_BACKENDS.has(backend);
|
|
553
555
|
const remedy = chatLogin
|
|
554
|
-
|
|
556
|
+
// 721ca0c3: never guide a person to type a host command — the chat sign-in is the way.
|
|
557
|
+
? `Use \`/login ${backend} ${profile}\` to sign that profile in remotely.`
|
|
555
558
|
: profileLogin
|
|
556
559
|
? `Run \`${profileLogin}\` on the host, then wake the affected instance(s).`
|
|
557
560
|
: backend === "opencode"
|
|
@@ -1922,7 +1925,34 @@ export class InstanceLifecycle {
|
|
|
1922
1925
|
async wakeInTransition(name, timeoutMs, transition) {
|
|
1923
1926
|
assertNoSessionOomStop(this.ctx.getInstanceDir(name));
|
|
1924
1927
|
const epoch = this.epochOf(name);
|
|
1925
|
-
|
|
1928
|
+
let daemon = this.daemons.get(name);
|
|
1929
|
+
if (daemon?.waitForPauseWakeTransition) {
|
|
1930
|
+
do {
|
|
1931
|
+
await daemon.waitForPauseWakeTransition();
|
|
1932
|
+
if (this.epochOf(name) !== epoch || this.daemons.get(name) !== daemon)
|
|
1933
|
+
throw new SupersededStartError(name);
|
|
1934
|
+
assertNoSessionOomStop(this.ctx.getInstanceDir(name));
|
|
1935
|
+
// An admission may have started in the caller's await gap. No yield
|
|
1936
|
+
// after this check until the cold stop's existing retirement fence.
|
|
1937
|
+
} while (daemon.hasPendingPauseWake);
|
|
1938
|
+
}
|
|
1939
|
+
const instances = this.ctx.fleetConfig?.instances;
|
|
1940
|
+
const next = instances && Object.hasOwn(instances, name) ? instances[name] : undefined;
|
|
1941
|
+
const launched = daemon?.getConfigSnapshot?.();
|
|
1942
|
+
if (daemon?.isPaused && !daemon.usesNativePane?.() && next && launched && classifyInstanceChange(launched, next) === "restart") {
|
|
1943
|
+
// A resident paused daemon still owns its old cold config. Recreate it
|
|
1944
|
+
// at this launch boundary, as a marker-only wake already does, rather
|
|
1945
|
+
// than respawning the old profile/model. Keep the same serialized wake.
|
|
1946
|
+
const instanceDir = this.ctx.getInstanceDir(name);
|
|
1947
|
+
const pausedAt = this.getLastPausedAt(name) ?? Date.now();
|
|
1948
|
+
const reason = readPauseReason(instanceDir);
|
|
1949
|
+
await this.stop(name, transition);
|
|
1950
|
+
// Our stop invalidates once; a newer stop/restart must not be revived.
|
|
1951
|
+
if (this.epochOf(name) !== epoch + 1)
|
|
1952
|
+
throw new SupersededStartError(name);
|
|
1953
|
+
writePausedMarker(instanceDir, pausedAt, reason);
|
|
1954
|
+
daemon = undefined;
|
|
1955
|
+
}
|
|
1926
1956
|
if (daemon) {
|
|
1927
1957
|
await daemon.wake(timeoutMs);
|
|
1928
1958
|
// A stop/restart requested while the resident CLI was respawning is
|