@songsid/agend 2.2.0-alpha.9 → 2.2.0-beta.10
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 +1 -1
- package/README.zh-TW.md +1 -1
- package/dist/agent-cli-instructions.md +16 -9
- package/dist/agent-cli.js +15 -7
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-endpoint.js +21 -9
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-whats-new.d.ts +47 -0
- package/dist/agent-whats-new.js +147 -0
- package/dist/agent-whats-new.js.map +1 -0
- package/dist/auth-api.d.ts +2 -2
- package/dist/auth-api.js +4 -2
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/antigravity.d.ts +3 -0
- package/dist/backend/antigravity.js +9 -0
- package/dist/backend/antigravity.js.map +1 -1
- package/dist/backend/claude-carry.d.ts +22 -0
- package/dist/backend/claude-carry.js +170 -0
- package/dist/backend/claude-carry.js.map +1 -0
- package/dist/backend/claude-code.d.ts +65 -2
- package/dist/backend/claude-code.js +226 -33
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/codex-metadata.d.ts +33 -0
- package/dist/backend/codex-metadata.js +122 -18
- package/dist/backend/codex-metadata.js.map +1 -1
- package/dist/backend/codex.d.ts +3 -0
- package/dist/backend/codex.js +17 -1
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/credential-profile.d.ts +40 -3
- package/dist/backend/credential-profile.js +113 -5
- package/dist/backend/credential-profile.js.map +1 -1
- package/dist/backend/effort-metadata.d.ts +1 -1
- package/dist/backend/effort-metadata.js +3 -2
- package/dist/backend/effort-metadata.js.map +1 -1
- package/dist/backend/grok.d.ts +4 -0
- package/dist/backend/grok.js +14 -0
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/kiro-engine-ledger.d.ts +5 -0
- package/dist/backend/kiro-engine-ledger.js +20 -0
- package/dist/backend/kiro-engine-ledger.js.map +1 -1
- package/dist/backend/kiro-identity.d.ts +6 -0
- package/dist/backend/kiro-identity.js +19 -5
- package/dist/backend/kiro-identity.js.map +1 -1
- package/dist/backend/kiro.d.ts +39 -3
- package/dist/backend/kiro.js +143 -19
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/launch-effort.d.ts +33 -0
- package/dist/backend/launch-effort.js +123 -0
- package/dist/backend/launch-effort.js.map +1 -0
- package/dist/backend/muse.d.ts +84 -0
- package/dist/backend/muse.js +449 -53
- package/dist/backend/muse.js.map +1 -1
- package/dist/backend/types.d.ts +33 -4
- package/dist/backend/types.js +2 -1
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-command.d.ts +91 -0
- package/dist/backend-command.js +122 -0
- package/dist/backend-command.js.map +1 -0
- package/dist/background-work-ended.d.ts +18 -0
- package/dist/background-work-ended.js +30 -0
- package/dist/background-work-ended.js.map +1 -0
- package/dist/cache-service.d.ts +2 -0
- package/dist/cache-service.js +2 -1
- package/dist/cache-service.js.map +1 -1
- package/dist/channel/adapters/discord.d.ts +26 -1
- package/dist/channel/adapters/discord.js +98 -3
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/adapters/telegram.d.ts +26 -2
- package/dist/channel/adapters/telegram.js +123 -19
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/mcp-server.js +9 -1
- package/dist/channel/mcp-server.js.map +1 -1
- package/dist/channel/mcp-tools.d.ts +11 -0
- package/dist/channel/mcp-tools.js +24 -13
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/channel/message-edit-errors.d.ts +5 -0
- package/dist/channel/message-edit-errors.js +24 -0
- package/dist/channel/message-edit-errors.js.map +1 -0
- package/dist/channel/telegram-markdown.d.ts +6 -0
- package/dist/channel/telegram-markdown.js +104 -0
- package/dist/channel/telegram-markdown.js.map +1 -0
- package/dist/channel/tool-router.js +9 -3
- package/dist/channel/tool-router.js.map +1 -1
- package/dist/channel/types.d.ts +41 -3
- package/dist/cli.js +133 -28
- package/dist/cli.js.map +1 -1
- package/dist/command-table.d.ts +2 -2
- package/dist/command-table.js +6 -3
- package/dist/command-table.js.map +1 -1
- package/dist/config-validator.js +59 -0
- package/dist/config-validator.js.map +1 -1
- package/dist/cross-instance-envelope.d.ts +15 -2
- package/dist/cross-instance-envelope.js +29 -5
- package/dist/cross-instance-envelope.js.map +1 -1
- package/dist/daemon.d.ts +156 -1
- package/dist/daemon.js +764 -89
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-outbox.d.ts +62 -7
- package/dist/delivery-outbox.js +309 -22
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/delivery-reconciliation.d.ts +18 -1
- package/dist/delivery-reconciliation.js +67 -2
- package/dist/delivery-reconciliation.js.map +1 -1
- package/dist/fleet-context.d.ts +10 -1
- package/dist/fleet-manager.d.ts +352 -10
- package/dist/fleet-manager.js +1925 -175
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/backend-providers/SKILL.md +1 -1
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +92 -21
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +27 -3
- package/dist/general-knowledge/skills/delegation-playbook/SKILL.md +8 -8
- package/dist/general-knowledge/skills/fleet-config/SKILL.md +5 -5
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +4 -4
- package/dist/general-knowledge/skills/fleet-restart/SKILL.md +13 -13
- package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +3 -2
- package/dist/general-knowledge/skills/kiro-engine-migration/SKILL.md +6 -0
- package/dist/general-knowledge/skills/model-discovery/SKILL.md +9 -9
- package/dist/general-knowledge/skills/multi-channel/SKILL.md +8 -2
- package/dist/general-knowledge/skills/scheduling/SKILL.md +5 -3
- package/dist/general-knowledge/skills/session-management/SKILL.md +6 -5
- package/dist/general-knowledge/skills/tui-effort/SKILL.md +2 -2
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +8 -3
- package/dist/general-knowledge/steering/core-rules.md +8 -7
- package/dist/host-memory.d.ts +10 -0
- package/dist/host-memory.js +33 -1
- package/dist/host-memory.js.map +1 -1
- package/dist/human-delivery-receipts.d.ts +83 -0
- package/dist/human-delivery-receipts.js +194 -0
- package/dist/human-delivery-receipts.js.map +1 -0
- package/dist/instance-avatar.d.ts +36 -0
- package/dist/instance-avatar.js +57 -0
- package/dist/instance-avatar.js.map +1 -0
- package/dist/instance-config-impact.js +6 -0
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +29 -6
- package/dist/instance-lifecycle.js +79 -28
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.d.ts +3 -1
- package/dist/instructions.js +11 -8
- package/dist/instructions.js.map +1 -1
- package/dist/kiro-log-gate.d.ts +42 -0
- package/dist/kiro-log-gate.js +39 -0
- package/dist/kiro-log-gate.js.map +1 -0
- package/dist/locale.js +204 -44
- package/dist/locale.js.map +1 -1
- package/dist/log-service.d.ts +99 -0
- package/dist/log-service.js +243 -0
- package/dist/log-service.js.map +1 -0
- package/dist/log-steps.d.ts +169 -0
- package/dist/log-steps.js +858 -0
- package/dist/log-steps.js.map +1 -0
- package/dist/login-controller.d.ts +20 -3
- package/dist/login-controller.js +71 -19
- package/dist/login-controller.js.map +1 -1
- package/dist/login-flows.d.ts +5 -2
- package/dist/login-flows.js +5 -4
- package/dist/login-flows.js.map +1 -1
- package/dist/memory-pressure.d.ts +13 -1
- package/dist/memory-pressure.js +50 -10
- package/dist/memory-pressure.js.map +1 -1
- package/dist/needs-you-hub.js +2 -0
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you-live.d.ts +6 -0
- package/dist/needs-you-live.js +23 -3
- package/dist/needs-you-live.js.map +1 -1
- package/dist/next-steps.js +1 -1
- package/dist/next-steps.js.map +1 -1
- package/dist/outbound-handlers.d.ts +100 -0
- package/dist/outbound-handlers.js +263 -96
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +26 -15
- package/dist/outbound-schemas.js +24 -7
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/public-link-progress.d.ts +1 -1
- package/dist/public-link-progress.js +8 -2
- package/dist/public-link-progress.js.map +1 -1
- package/dist/public-preview.d.ts +101 -0
- package/dist/public-preview.js +236 -0
- package/dist/public-preview.js.map +1 -0
- package/dist/public-web-gateway.js +11 -4
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +24 -1
- package/dist/public-web-link.js +63 -9
- package/dist/public-web-link.js.map +1 -1
- package/dist/reply-buttons-controller.d.ts +3 -0
- package/dist/reply-buttons-controller.js +3 -2
- package/dist/reply-buttons-controller.js.map +1 -1
- package/dist/restart-guard.d.ts +6 -3
- package/dist/restart-guard.js +6 -3
- package/dist/restart-guard.js.map +1 -1
- package/dist/restart-progress.d.ts +33 -0
- package/dist/restart-progress.js +30 -0
- package/dist/restart-progress.js.map +1 -1
- package/dist/service-activation.d.ts +15 -7
- package/dist/service-activation.js +46 -29
- package/dist/service-activation.js.map +1 -1
- package/dist/service-installer.d.ts +31 -0
- package/dist/service-installer.js +41 -2
- package/dist/service-installer.js.map +1 -1
- package/dist/settings-api.js +85 -25
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.js +72 -1
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-effect.js +28 -4
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.js +7 -0
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/setup-form.d.ts +1 -1
- package/dist/setup-form.js +1 -1
- package/dist/spawn-gate.js +5 -1
- package/dist/spawn-gate.js.map +1 -1
- package/dist/spawn-hold-reply.d.ts +12 -0
- package/dist/spawn-hold-reply.js +39 -0
- package/dist/spawn-hold-reply.js.map +1 -0
- package/dist/status-emojis.d.ts +10 -3
- package/dist/status-emojis.js +11 -2
- package/dist/status-emojis.js.map +1 -1
- package/dist/systemd-peer-bus.d.ts +95 -0
- package/dist/systemd-peer-bus.js +430 -0
- package/dist/systemd-peer-bus.js.map +1 -0
- package/dist/systemd-runtime.d.ts +27 -1
- package/dist/systemd-runtime.js +69 -7
- package/dist/systemd-runtime.js.map +1 -1
- package/dist/tips.js +4 -4
- package/dist/tips.js.map +1 -1
- package/dist/tool-progress.js +3 -2
- package/dist/tool-progress.js.map +1 -1
- package/dist/topic-commands.d.ts +42 -2
- package/dist/topic-commands.js +92 -7
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-delta-reader.d.ts +3 -3
- package/dist/transcript-delta-reader.js +8 -8
- package/dist/transcript-delta-reader.js.map +1 -1
- package/dist/transcript-jsonl.d.ts +80 -3
- package/dist/transcript-jsonl.js +147 -10
- package/dist/transcript-jsonl.js.map +1 -1
- package/dist/transcript-monitor.d.ts +19 -0
- package/dist/transcript-monitor.js +87 -15
- package/dist/transcript-monitor.js.map +1 -1
- package/dist/transcript-sources.d.ts +78 -0
- package/dist/transcript-sources.js +375 -64
- package/dist/transcript-sources.js.map +1 -1
- package/dist/transcript-turns.d.ts +15 -2
- package/dist/transcript-turns.js +15 -2
- package/dist/transcript-turns.js.map +1 -1
- package/dist/tunnel/cloudflared.d.ts +7 -15
- package/dist/tunnel/cloudflared.js +36 -1
- package/dist/tunnel/cloudflared.js.map +1 -1
- package/dist/tunnel/purpose-lane.d.ts +5 -1
- package/dist/tunnel/purpose-lane.js +14 -7
- package/dist/tunnel/purpose-lane.js.map +1 -1
- package/dist/tunnel/types.d.ts +5 -1
- package/dist/tunnel/types.js.map +1 -1
- package/dist/turn-resume.d.ts +2 -0
- package/dist/turn-resume.js +1 -1
- package/dist/turn-resume.js.map +1 -1
- package/dist/types.d.ts +25 -0
- package/dist/ui/chat-commands.js +1 -0
- package/dist/ui/chat-emojis.js +33 -0
- package/dist/ui/chat-mentions.js +63 -0
- package/dist/ui/chat-render.js +42 -2
- package/dist/ui/chat-store.js +2 -2
- package/dist/ui/chat-strings.js +38 -20
- package/dist/ui/chat-thread.js +69 -12
- package/dist/ui/chat-time.js +80 -0
- package/dist/ui/panel-chat.js +39 -10
- package/dist/ui/panel-details.js +2 -0
- package/dist/ui/panel-fleet.js +199 -57
- package/dist/ui/panel-log.js +428 -0
- package/dist/ui/panel-needs.js +6 -2
- package/dist/ui/panel-settings.js +137 -32
- package/dist/ui/preview-panel.js +55 -15
- package/dist/ui/preview-status.js +28 -0
- package/dist/ui/preview.js +44 -3
- package/dist/ui/settings-dialogs.js +7 -2
- package/dist/ui/settings-model.js +2 -1
- package/dist/ui/settings-strings.js +46 -4
- package/dist/ui/settings-token.js +1 -1
- package/dist/ui/shared/app-i18n.js +43 -17
- package/dist/ui/shared/app-prefs.js +250 -0
- package/dist/ui/shared/app-route.js +7 -2
- package/dist/ui/shared/app-shell.js +165 -8
- package/dist/ui/shared/app-store.js +5 -1
- package/dist/ui/shared/app-stream.js +23 -5
- package/dist/ui/shared/app.css +159 -23
- package/dist/ui/shared/app.js +11 -1
- package/dist/ui/shared/fonts/README.md +1 -1
- package/dist/ui/shared/header-tools.js +55 -5
- package/dist/ui/shared/instance-nav.js +241 -45
- package/dist/ui/shared/instance-switch.js +4 -4
- package/dist/ui/shared/panel-view.js +6 -0
- package/dist/ui/shared/signin.js +7 -7
- package/dist/ui/shared/theme.js +39 -7
- package/dist/ui/shared/tokens.css +10 -1
- package/dist/ui/shared/ui-icons.js +1 -0
- package/dist/ui/shared/usage-dialog.js +23 -5
- package/dist/ui/shared/view-strings.js +32 -4
- package/dist/ui/signin.html +1 -1
- package/dist/unrecognised-prompt.d.ts +23 -0
- package/dist/unrecognised-prompt.js +74 -0
- package/dist/unrecognised-prompt.js.map +1 -0
- package/dist/update-install.d.ts +28 -2
- package/dist/update-install.js +22 -4
- package/dist/update-install.js.map +1 -1
- package/dist/update-marker.d.ts +51 -0
- package/dist/update-marker.js +61 -0
- package/dist/update-marker.js.map +1 -1
- package/dist/update-preflight.d.ts +100 -0
- package/dist/update-preflight.js +264 -0
- package/dist/update-preflight.js.map +1 -0
- package/dist/updater-caller.d.ts +31 -0
- package/dist/updater-caller.js +109 -0
- package/dist/updater-caller.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/providers.d.ts +34 -5
- package/dist/usage/providers.js +160 -27
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/statusline-usage.d.ts +6 -2
- package/dist/usage/statusline-usage.js +10 -4
- package/dist/usage/statusline-usage.js.map +1 -1
- package/dist/view-api.d.ts +1 -1
- package/dist/view-api.js +38 -8
- package/dist/view-api.js.map +1 -1
- package/dist/wake-coordinator.d.ts +11 -0
- package/dist/wake-coordinator.js +38 -4
- package/dist/wake-coordinator.js.map +1 -1
- package/dist/web-api.d.ts +49 -2
- package/dist/web-api.js +421 -31
- package/dist/web-api.js.map +1 -1
- package/dist/web-auth.d.ts +2 -2
- package/dist/web-auth.js +9 -4
- package/dist/web-auth.js.map +1 -1
- package/dist/web-commands.d.ts +27 -4
- package/dist/web-commands.js +19 -4
- package/dist/web-commands.js.map +1 -1
- package/dist/web-host-guard.d.ts +3 -11
- package/dist/web-host-guard.js +3 -12
- package/dist/web-host-guard.js.map +1 -1
- package/dist/web-images.d.ts +47 -0
- package/dist/web-images.js +169 -0
- package/dist/web-images.js.map +1 -0
- package/dist/web-mentions.d.ts +44 -0
- package/dist/web-mentions.js +75 -0
- package/dist/web-mentions.js.map +1 -0
- package/dist/web-prefs.d.ts +63 -0
- package/dist/web-prefs.js +265 -0
- package/dist/web-prefs.js.map +1 -0
- package/dist/web-preview.d.ts +14 -1
- package/dist/web-preview.js +35 -13
- package/dist/web-preview.js.map +1 -1
- package/dist/web-reply-files.d.ts +45 -0
- package/dist/web-reply-files.js +223 -0
- package/dist/web-reply-files.js.map +1 -0
- package/dist/web-schedules.d.ts +12 -0
- package/dist/web-schedules.js +34 -0
- package/dist/web-schedules.js.map +1 -0
- package/dist/web-server-drain.d.ts +10 -0
- package/dist/web-server-drain.js +50 -0
- package/dist/web-server-drain.js.map +1 -0
- package/dist/web-session.d.ts +36 -1
- package/dist/web-session.js +53 -6
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +23 -0
- package/dist/web-settings-patch.js +77 -0
- package/dist/web-settings-patch.js.map +1 -0
- package/dist/web-shell-routes.d.ts +5 -1
- package/dist/web-shell-routes.js +10 -1
- package/dist/web-shell-routes.js.map +1 -1
- package/dist/web-upload.d.ts +17 -4
- package/dist/web-upload.js +64 -13
- package/dist/web-upload.js.map +1 -1
- package/dist/workflow-templates/default.md +1 -1
- package/package.json +1 -1
- package/templates/launchd.plist.ejs +3 -1
- package/templates/systemd.service.ejs +2 -1
package/dist/daemon.d.ts
CHANGED
|
@@ -13,6 +13,13 @@ import type { StormWindow } from "./storm-window.js";
|
|
|
13
13
|
import type { BackendOutageView } from "./backend-outage.js";
|
|
14
14
|
import { type DaemonDeliveryPort } from "./delivery-outbox.js";
|
|
15
15
|
import type { InteractionSnapshot } from "./backend/types.js";
|
|
16
|
+
import type { KiroLogLaunch } from "./kiro-log-gate.js";
|
|
17
|
+
/**
|
|
18
|
+
* #1641: an open turn in the CLI's transcript holds the instance busy (no paste, whatever the pane shows) only while the
|
|
19
|
+
* transcript is still moving: a turn whose end was missed must not pin the instance busy forever. A live turn writes
|
|
20
|
+
* often; a long silent tool run shows its own busy row on the pane.
|
|
21
|
+
*/
|
|
22
|
+
export declare const TRANSCRIPT_OPEN_TURN_QUIET_MS: number;
|
|
16
23
|
export declare function buildInstructionReloadNotice(binaryName: string, instanceName: string, instanceDir: string, backendSource?: string | null): string;
|
|
17
24
|
/**
|
|
18
25
|
* Whether this backend has to be told in its pane that its instructions moved.
|
|
@@ -224,6 +231,25 @@ export declare class PendingWorkTracker {
|
|
|
224
231
|
recordIdle(now?: number): boolean;
|
|
225
232
|
hasPendingWork(): boolean;
|
|
226
233
|
}
|
|
234
|
+
/** #1690: after AgEnD's own `/model`, how long the pane is read for claude's "Switch model?" or its result. */
|
|
235
|
+
export declare const OWN_SWITCH_WAIT_MS = 6000;
|
|
236
|
+
/** #1690: what AgEnD's own runtime switch came to — sent back to the fleet (IPC runtime_switch_result). */
|
|
237
|
+
export type OwnSwitchOutcome = {
|
|
238
|
+
outcome: "switched";
|
|
239
|
+
confirmed: boolean;
|
|
240
|
+
shown?: string;
|
|
241
|
+
} | {
|
|
242
|
+
outcome: "mismatch";
|
|
243
|
+
shown: string;
|
|
244
|
+
answered: boolean;
|
|
245
|
+
} | {
|
|
246
|
+
outcome: "not_confirmed";
|
|
247
|
+
shown?: string;
|
|
248
|
+
} | {
|
|
249
|
+
outcome: "not_sent";
|
|
250
|
+
};
|
|
251
|
+
/** #1691: a prompt no table knows must sit unchanged this long (monotonic) before it holds deliveries and is reported. */
|
|
252
|
+
export declare const UNRECOGNISED_PROMPT_STABLE_MS = 60000;
|
|
227
253
|
/**
|
|
228
254
|
* Startup failed because the CLI's backend is unreachable (see backend-outage.ts).
|
|
229
255
|
* The session-id is deliberately KEPT; the fleet schedules a delayed retry.
|
|
@@ -422,6 +448,10 @@ export declare class Daemon extends EventEmitter {
|
|
|
422
448
|
private ipcServer;
|
|
423
449
|
private messageBus;
|
|
424
450
|
private transcriptMonitor;
|
|
451
|
+
/** #1218: the transcript this instance's monitor follows now (the Log tab reads it on demand; nothing runs for it here). */
|
|
452
|
+
logTranscriptPath(): string | null;
|
|
453
|
+
/** #1218 (kiro): the launch this daemon's backend last built, for the Log's reason only (kiro-log-gate.ts). */
|
|
454
|
+
logLaunch(): KiroLogLaunch | null;
|
|
425
455
|
private guardian;
|
|
426
456
|
private adapter;
|
|
427
457
|
private pendingIpcRequests;
|
|
@@ -503,6 +533,27 @@ export declare class Daemon extends EventEmitter {
|
|
|
503
533
|
private dialogParkedKey;
|
|
504
534
|
private dialogParkedInteractionEpisode;
|
|
505
535
|
private dialogParkedReported;
|
|
536
|
+
/**
|
|
537
|
+
* #1691: the prompt at the bottom of the pane that no backend table knows — its block, since when (performance.now)
|
|
538
|
+
* it has been unchanged, and whether that has lasted UNRECOGNISED_PROMPT_STABLE_MS. Updated by the runtime scan.
|
|
539
|
+
*/
|
|
540
|
+
private unrecognisedPrompt;
|
|
541
|
+
/**
|
|
542
|
+
* #1691: when (performance.now) the newest pane read that decided the evidence above was taken — a scan or a fresh
|
|
543
|
+
* read, confirming, restarting or ending it. A read taken before it finishes late and says nothing about now: it may
|
|
544
|
+
* neither clear, restart nor confirm (#1695 r4).
|
|
545
|
+
*/
|
|
546
|
+
private unrecognisedPromptReadAt;
|
|
547
|
+
/**
|
|
548
|
+
* #1691: the catch-all for that prompt, as a hold-only runtime dialog — so the delivery hold, awaiting_input, the
|
|
549
|
+
* Needs-you item and the single parked report are the existing ones. Never answered (hold-only, no keys).
|
|
550
|
+
*/
|
|
551
|
+
private readonly unrecognisedPromptDialog;
|
|
552
|
+
/**
|
|
553
|
+
* #1690: AgEnD's own runtime `/model` in flight — from the moment its paste went in until its "Switch model?" dialog
|
|
554
|
+
* (if any) is answered. Every delivery is held meanwhile: the dialog's default cursor is Yes, a stray Enter confirms it.
|
|
555
|
+
*/
|
|
556
|
+
private ownSwitch;
|
|
506
557
|
/**
|
|
507
558
|
* The runtime dialog the monitor is answering, and how many of its answers in a row did nothing (the dialog was
|
|
508
559
|
* still on screen right after the keys). Not the on-screen duration: a burst of FRESH prompts, each answered, has a
|
|
@@ -592,6 +643,11 @@ export declare class Daemon extends EventEmitter {
|
|
|
592
643
|
private turnReplyGuard;
|
|
593
644
|
/** #1510: turn boundaries from the CLI's transcript, for a backend whose guard reads its turn end there. */
|
|
594
645
|
private transcriptTurns;
|
|
646
|
+
/** #1641: when this launch's transcript monitor last read anything (a turn boundary, a tool, assistant text); performance.now(). */
|
|
647
|
+
private transcriptActivityAt;
|
|
648
|
+
/** #1641: the launch and composer a stuck pane's idle evidence is about, and since when (performance.now()); see recoverStuck. */
|
|
649
|
+
private stuckRecoveryKey;
|
|
650
|
+
private stuckRecoverySince;
|
|
595
651
|
/** #1510: since when (monotonic) this generation has been held as running in the transcript. */
|
|
596
652
|
private transcriptRunningSince;
|
|
597
653
|
/** Prevent a visible stale XML fragment from being recovered on later turns. */
|
|
@@ -714,6 +770,8 @@ export declare class Daemon extends EventEmitter {
|
|
|
714
770
|
private recentPastes;
|
|
715
771
|
private pendingInstructionsUpdate;
|
|
716
772
|
private pendingInstructionsNotice;
|
|
773
|
+
/** #1633: the one-time "what's new for you" notice, pasted before the next real delivery; recorded once pasted. */
|
|
774
|
+
private pendingWhatsNew;
|
|
717
775
|
private warmupNeeded;
|
|
718
776
|
private lastBuiltInstructions;
|
|
719
777
|
private pasteQueueDepth;
|
|
@@ -1137,6 +1195,20 @@ export declare class Daemon extends EventEmitter {
|
|
|
1137
1195
|
private queueRawPaste;
|
|
1138
1196
|
/** Keep the IPC raw route's durable mode attached to the parsed attempt. */
|
|
1139
1197
|
private handleRawPasteIpcMessage;
|
|
1198
|
+
/**
|
|
1199
|
+
* #1690 (the user's choice A): after AgEnD's own `/model <name>`, claude may ask "Switch model?" (a warm cache for
|
|
1200
|
+
* another model). When the model it names is the one asked for, answer Yes; otherwise No (Escape — `Kept model as …`),
|
|
1201
|
+
* and say so. Every key goes on a freshly read, verified dialog under the pane write lock: the same target, and for
|
|
1202
|
+
* Enter the cursor on "1. Yes"; the cursor is walked there with Up, one verified step at a time, never a blind key.
|
|
1203
|
+
* Without the dialog, claude's own "Set model to …" line after the command is the result.
|
|
1204
|
+
*/
|
|
1205
|
+
private answerOwnSwitchDialog;
|
|
1206
|
+
/**
|
|
1207
|
+
* #1690: claude's "Set model to …" line under our `/model <requested>` (no dialog was needed). Only the newest command
|
|
1208
|
+
* on the pane counts: an older identical `/model` with its result further up (switched away and back) must not pass
|
|
1209
|
+
* for this one before it has even painted — that left its dialog unanswered (live, 2.1.296).
|
|
1210
|
+
*/
|
|
1211
|
+
static switchResultAfterCommand(pane: string, requested: string): boolean;
|
|
1140
1212
|
/**
|
|
1141
1213
|
* Confirm a backend's terminal-level /clear prompt after the channel-level
|
|
1142
1214
|
* admin confirmation has already succeeded. Poll instead of pasting `/clear\ny`
|
|
@@ -1297,6 +1369,19 @@ export declare class Daemon extends EventEmitter {
|
|
|
1297
1369
|
* with it — a new monitor re-baselines at the transcript's end, so nothing the old one read can be attributed.
|
|
1298
1370
|
*/
|
|
1299
1371
|
private buildTranscriptMonitor;
|
|
1372
|
+
/**
|
|
1373
|
+
* #1641: what the CLI's own transcript (codex's rollout) says about its turn. `open`: a turn started and has not ended,
|
|
1374
|
+
* and the transcript moved within TRANSCRIPT_OPEN_TURN_QUIET_MS. `closed`: every turn read since this launch's monitor
|
|
1375
|
+
* began has ended. `unknown`: not a transcript backend, nothing followed, or an open turn gone quiet (a missed end).
|
|
1376
|
+
*/
|
|
1377
|
+
private transcriptTurnState;
|
|
1378
|
+
/**
|
|
1379
|
+
* #1641: a stuck pane that is in fact an idle CLI (a footer this build cannot read) must not stay stuck for hours with
|
|
1380
|
+
* every delivery parked behind it. It recovers when the backend sees its own live, EMPTY composer with no busy, queued
|
|
1381
|
+
* or dialog marker (isStableUnknownLayoutIdlePane) AND the transcript shows no open turn — or, with no transcript to
|
|
1382
|
+
* ask, that same composer held unchanged for UNKNOWN_LAYOUT_STABLE_MS (#978's rule). An open turn never recovers.
|
|
1383
|
+
*/
|
|
1384
|
+
private recoverStuck;
|
|
1300
1385
|
private replyCompletionGuardEnabled;
|
|
1301
1386
|
private startReplyRecovery;
|
|
1302
1387
|
private reportReplyDropWithoutRetry;
|
|
@@ -1401,7 +1486,15 @@ export declare class Daemon extends EventEmitter {
|
|
|
1401
1486
|
* here — a steered message must read EXACTLY like a queued one to the
|
|
1402
1487
|
* agent, or the two drift apart in what the agent is told about replying.
|
|
1403
1488
|
*/
|
|
1489
|
+
/** #1650: how this instance talks to the fleet — MCP tools, or agend-agent commands (agent_mode: cli). */
|
|
1490
|
+
private agentMode;
|
|
1404
1491
|
private formatInboundMessage;
|
|
1492
|
+
/** Pure cached owner: no pane/process query on ingress. */
|
|
1493
|
+
captureHumanReceiptOwner(): string | null;
|
|
1494
|
+
/** The same formatter/sanitizer used by the actual write; snapshot only. */
|
|
1495
|
+
humanReceiptWire(content: string, meta: Record<string, string>, kind: string): string;
|
|
1496
|
+
private humanReceiptAttempt;
|
|
1497
|
+
private finishHumanReceipt;
|
|
1405
1498
|
/**
|
|
1406
1499
|
* Whether ONE delivery reached a verdict, carried by that delivery.
|
|
1407
1500
|
*
|
|
@@ -1476,6 +1569,44 @@ export declare class Daemon extends EventEmitter {
|
|
|
1476
1569
|
* on purpose ("I trust", "Yes, continue") and would match ordinary prose.
|
|
1477
1570
|
*/
|
|
1478
1571
|
private deliveryBlockingDialogs;
|
|
1572
|
+
/**
|
|
1573
|
+
* The backend's runtime dialogs, then #1691's catch-all for a prompt none of them knows (last: known ones win). The
|
|
1574
|
+
* catch-all is listed only while such a prompt is active: otherwise it could match nothing, and a backend with no
|
|
1575
|
+
* dialogs keeps its empty list (its delivery path skips the dialog probe, as before).
|
|
1576
|
+
*/
|
|
1577
|
+
private runtimeDialogs;
|
|
1578
|
+
/**
|
|
1579
|
+
* #1691: is the pane at the CLI's own idle composer? Then whatever looks like a prompt above it is transcript output
|
|
1580
|
+
* (an agent's numbered list, a quoted "[y/n]"), not a prompt. The backend's own reading, most specific first.
|
|
1581
|
+
*/
|
|
1582
|
+
private cliComposerShowing;
|
|
1583
|
+
/**
|
|
1584
|
+
* #1691: the prompt shape this pane shows, when nothing else explains it (no known dialog, login, idle composer, and
|
|
1585
|
+
* the CLI is not showing its busy indicator).
|
|
1586
|
+
*/
|
|
1587
|
+
private unrecognisedPromptCandidate;
|
|
1588
|
+
/**
|
|
1589
|
+
* #1691, from each runtime scan: the same unexplained prompt block unchanged for UNRECOGNISED_PROMPT_STABLE_MS
|
|
1590
|
+
* becomes active (held, awaiting_input, reported once by trackDialogParked). Any other screen ends it. A turn keeps
|
|
1591
|
+
* changing the pane (spinner, timer, streamed text), so its clock never completes mid-turn.
|
|
1592
|
+
*/
|
|
1593
|
+
private trackUnrecognisedPrompt;
|
|
1594
|
+
/** #1691: the tracked evidence, if it still belongs to this launch (else it is dropped). */
|
|
1595
|
+
private unrecognisedPromptCurrent;
|
|
1596
|
+
/**
|
|
1597
|
+
* #1691: the catch-all's predicate — the tracked prompt is active and this pane still shows exactly it (any reader:
|
|
1598
|
+
* the scan, a probe, an interaction re-capture). Ending the evidence on a read without it is noteFreshPaneRead's.
|
|
1599
|
+
*/
|
|
1600
|
+
private unrecognisedPromptActive;
|
|
1601
|
+
/**
|
|
1602
|
+
* #1691: a fresh pane read outside the scan (a delivery probe, an accepted state re-capture), taken at `mono`. When it
|
|
1603
|
+
* no longer shows exactly the tracked prompt, the evidence ends — counting or active, so a return needs a fresh minute
|
|
1604
|
+
* (#1695 r2). When it does, it is the newest confirmation. Either way only a read newer than the newest read that
|
|
1605
|
+
* decided the evidence counts: an older one, finishing late, says nothing about now (#1695 r3, r4).
|
|
1606
|
+
*/
|
|
1607
|
+
private noteFreshPaneRead;
|
|
1608
|
+
/** #1691: the screen as the stability clock compares it (trailing blanks are not motion). */
|
|
1609
|
+
private static stableScreen;
|
|
1479
1610
|
/** Passive input-unavailable phases relevant to the current spawn only. */
|
|
1480
1611
|
private guardedInputTransients;
|
|
1481
1612
|
/** Stop honouring passive transients for the current spawn. */
|
|
@@ -1743,6 +1874,18 @@ export declare class Daemon extends EventEmitter {
|
|
|
1743
1874
|
* (dropped) Enter — and an unreadable pane is not a verified absence either.
|
|
1744
1875
|
*/
|
|
1745
1876
|
private confirmSubmittedAfterEnter;
|
|
1877
|
+
/**
|
|
1878
|
+
* #1647: whether a raw paste on a pane with no transcript (kiro) was taken: its text gone from the input row (or the
|
|
1879
|
+
* CLI's own busy marker shown instead — pasteResidue's rule) with output after the Enter. That is the confirmation's
|
|
1880
|
+
* own rule, looked at more than once: kiro repaints its composer late, so the single look right after Enter misread
|
|
1881
|
+
* pastes it took. A generic `working` reading is not evidence (#1663 P1-3: a repaint looks like work).
|
|
1882
|
+
*
|
|
1883
|
+
* Bounded by the budget that confirmation already has, measured from the Enter (#1663 P2-1): the busy wait plus the
|
|
1884
|
+
* post-Enter proof window. Every reading is asked again after its await — still this write's owner (`current`: the
|
|
1885
|
+
* caller's fence, no stop, the same tmux and spawn, #1663 P2-2) and still inside the budget — before it counts; a late
|
|
1886
|
+
* or fenced answer proves nothing. Null: not shown — the caller settles uncertain, never a second Enter.
|
|
1887
|
+
*/
|
|
1888
|
+
private rawPasteTakenOnPane;
|
|
1746
1889
|
/** Once Kiro returns to its prompt, its unique envelope id in history proves submission. */
|
|
1747
1890
|
private kiroSubmissionEvidence;
|
|
1748
1891
|
/** Observe the Kiro paste outside paneWriteLock; a long agent turn must not block dialog handling. */
|
|
@@ -2039,7 +2182,7 @@ export declare class Daemon extends EventEmitter {
|
|
|
2039
2182
|
* the same tmux window, not aborted, writes not stopping — re-checked after every await, and between the paste and
|
|
2040
2183
|
* its Enter. The whole step, every await included, ends at one monotonic deadline: a late capture never confirms
|
|
2041
2184
|
* and a late admission never writes; a paste whose Enter would land past it is taken back. Not confirmed in time:
|
|
2042
|
-
* the old setup stays, a launch warning
|
|
2185
|
+
* the old setup stays, the next launch tries again, and a quiet launch warning (#1794: logged and on the Log tab, not posted) says so. A stop, pause or respawn ends it
|
|
2043
2186
|
* silently, confirming and removing nothing. Never throws into the spawn.
|
|
2044
2187
|
*/
|
|
2045
2188
|
private ensureBackendAgent;
|
|
@@ -2130,6 +2273,14 @@ export declare class Daemon extends EventEmitter {
|
|
|
2130
2273
|
* Never throws: a missed reload notice must not fail a spawn.
|
|
2131
2274
|
*/
|
|
2132
2275
|
private runWarmupInstructionNotice;
|
|
2276
|
+
/**
|
|
2277
|
+
* #1633 (#1639 review): the pending notice as the record stands NOW, just before the paste — it was decided at launch,
|
|
2278
|
+
* and the record may have changed while the delivery waited. Unreadable → nothing is sent (and nothing pending);
|
|
2279
|
+
* entries recorded meanwhile are dropped from it; none left → nothing.
|
|
2280
|
+
*/
|
|
2281
|
+
private currentWhatsNew;
|
|
2282
|
+
/** #1633: what this instance has not been told about its AgEnD version yet (see agent-whats-new.ts). */
|
|
2283
|
+
private prepareWhatsNew;
|
|
2133
2284
|
private trySpawnInsideGate;
|
|
2134
2285
|
/**
|
|
2135
2286
|
* The last leg of a spawn: confirm the pane is not positively dead, then run
|
|
@@ -2207,6 +2358,10 @@ export declare class Daemon extends EventEmitter {
|
|
|
2207
2358
|
private recordRecentEvent;
|
|
2208
2359
|
private recordRecentToolActivity;
|
|
2209
2360
|
writeRotationSnapshot(reason: string): RotationSnapshot;
|
|
2361
|
+
/** #1699: the claude config dir this instance's CLI uses — its credential profile's, else exactly as before. */
|
|
2362
|
+
private claudeConfigDir;
|
|
2363
|
+
/** Where this instance's CLI keeps the conversation a turn resume is judged on (#1699: claude's follows the profile). */
|
|
2364
|
+
private resumeRoots;
|
|
2210
2365
|
/**
|
|
2211
2366
|
* The credential profile's store this instance's CLI writes to, if any.
|
|
2212
2367
|
*
|