@songsid/agend 2.1.12-beta.9 → 2.2.0-alpha.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 +2 -2
- package/README.zh-TW.md +2 -2
- package/dist/auth/one-time-code.d.ts +19 -0
- package/dist/auth/one-time-code.js +49 -0
- package/dist/auth/one-time-code.js.map +1 -0
- package/dist/auth-api.d.ts +52 -0
- package/dist/auth-api.js +346 -0
- package/dist/auth-api.js.map +1 -0
- package/dist/backend/claude-code.d.ts +4 -0
- package/dist/backend/claude-code.js +97 -0
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/codex.js +59 -30
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/kiro-agent.d.ts +66 -0
- package/dist/backend/kiro-agent.js +302 -0
- package/dist/backend/kiro-agent.js.map +1 -0
- package/dist/backend/kiro-identity.d.ts +80 -0
- package/dist/backend/kiro-identity.js +537 -0
- package/dist/backend/kiro-identity.js.map +1 -0
- package/dist/backend/kiro-v2-store-worker.d.ts +1 -0
- package/dist/backend/kiro-v2-store-worker.js +87 -0
- package/dist/backend/kiro-v2-store-worker.js.map +1 -0
- package/dist/backend/kiro-v2-store.d.ts +54 -0
- package/dist/backend/kiro-v2-store.js +131 -0
- package/dist/backend/kiro-v2-store.js.map +1 -0
- package/dist/backend/kiro-v3-identity.d.ts +5 -0
- package/dist/backend/kiro-v3-identity.js +22 -0
- package/dist/backend/kiro-v3-identity.js.map +1 -1
- package/dist/backend/kiro.d.ts +83 -7
- package/dist/backend/kiro.js +418 -91
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/types.d.ts +45 -3
- package/dist/backend/types.js.map +1 -1
- package/dist/channel/adapters/discord.d.ts +1 -0
- package/dist/channel/adapters/discord.js +29 -10
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/adapters/telegram.d.ts +1 -0
- package/dist/channel/adapters/telegram.js +13 -1
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/types.d.ts +9 -1
- package/dist/classic-channel-manager.d.ts +18 -10
- package/dist/classic-channel-manager.js +45 -18
- package/dist/classic-channel-manager.js.map +1 -1
- package/dist/cli.js +225 -127
- package/dist/cli.js.map +1 -1
- package/dist/command-table.d.ts +5 -3
- package/dist/command-table.js +29 -27
- package/dist/command-table.js.map +1 -1
- package/dist/config-validator.js +46 -0
- package/dist/config-validator.js.map +1 -1
- package/dist/config.js +12 -0
- package/dist/config.js.map +1 -1
- package/dist/connection-secrets.d.ts +6 -0
- package/dist/connection-secrets.js +4 -0
- package/dist/connection-secrets.js.map +1 -1
- package/dist/daemon.d.ts +89 -4
- package/dist/daemon.js +661 -77
- package/dist/daemon.js.map +1 -1
- package/dist/darwin-memory.d.ts +6 -1
- package/dist/darwin-memory.js +17 -6
- package/dist/darwin-memory.js.map +1 -1
- package/dist/delivery-consumed-watch.d.ts +85 -0
- package/dist/delivery-consumed-watch.js +244 -0
- package/dist/delivery-consumed-watch.js.map +1 -0
- package/dist/delivery-outbox.d.ts +61 -0
- package/dist/delivery-outbox.js +120 -2
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/delivery-reconciliation.d.ts +14 -5
- package/dist/delivery-reconciliation.js +27 -4
- package/dist/delivery-reconciliation.js.map +1 -1
- package/dist/delivery-reconciliation.test.js +35 -1
- package/dist/delivery-reconciliation.test.js.map +1 -1
- package/dist/event-loop-watch.d.ts +28 -0
- package/dist/event-loop-watch.js +75 -3
- package/dist/event-loop-watch.js.map +1 -1
- package/dist/fleet-context.d.ts +22 -2
- package/dist/fleet-level-config.d.ts +2 -2
- package/dist/fleet-level-config.js +6 -1
- package/dist/fleet-level-config.js.map +1 -1
- package/dist/fleet-manager.d.ts +293 -12
- package/dist/fleet-manager.js +2364 -449
- package/dist/fleet-manager.js.map +1 -1
- package/dist/host-memory.d.ts +4 -0
- package/dist/host-memory.js.map +1 -1
- package/dist/instance-config-impact.js +5 -0
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +10 -5
- package/dist/instance-lifecycle.js +162 -53
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/locale.js +150 -16
- package/dist/locale.js.map +1 -1
- package/dist/login-controller.d.ts +2 -0
- package/dist/login-controller.js +17 -5
- package/dist/login-controller.js.map +1 -1
- package/dist/memory-pressure.d.ts +7 -8
- package/dist/memory-pressure.js +76 -15
- package/dist/memory-pressure.js.map +1 -1
- package/dist/monotonic-budget.d.ts +2 -0
- package/dist/monotonic-budget.js +28 -0
- package/dist/monotonic-budget.js.map +1 -0
- package/dist/needs-you-hub.d.ts +114 -0
- package/dist/needs-you-hub.js +370 -0
- package/dist/needs-you-hub.js.map +1 -0
- package/dist/needs-you-live.d.ts +116 -0
- package/dist/needs-you-live.js +228 -0
- package/dist/needs-you-live.js.map +1 -0
- package/dist/needs-you.d.ts +132 -0
- package/dist/needs-you.js +164 -0
- package/dist/needs-you.js.map +1 -0
- package/dist/node-version-guard.d.ts +30 -0
- package/dist/node-version-guard.js +50 -0
- package/dist/node-version-guard.js.map +1 -0
- package/dist/operator-control-paths.d.ts +4 -0
- package/dist/operator-control-paths.js +24 -0
- package/dist/operator-control-paths.js.map +1 -0
- package/dist/outbound-handlers.d.ts +2 -0
- package/dist/outbound-handlers.js +9 -2
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +5 -5
- package/dist/profile-control.js +4 -20
- package/dist/profile-control.js.map +1 -1
- package/dist/public-web-gateway.d.ts +18 -0
- package/dist/public-web-gateway.js +141 -0
- package/dist/public-web-gateway.js.map +1 -0
- package/dist/public-web-link.d.ts +53 -0
- package/dist/public-web-link.js +175 -0
- package/dist/public-web-link.js.map +1 -0
- package/dist/quickstart-api.d.ts +8 -1
- package/dist/quickstart-api.js +86 -48
- package/dist/quickstart-api.js.map +1 -1
- package/dist/quickstart.d.ts +1 -0
- package/dist/quickstart.js +6 -2
- package/dist/quickstart.js.map +1 -1
- package/dist/scheduler/db.d.ts +7 -1
- package/dist/scheduler/db.js +38 -0
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/index.d.ts +1 -1
- package/dist/scheduler/retry-label.d.ts +11 -0
- package/dist/scheduler/retry-label.js +24 -0
- package/dist/scheduler/retry-label.js.map +1 -0
- package/dist/scheduler/scheduler.d.ts +55 -2
- package/dist/scheduler/scheduler.js +220 -8
- package/dist/scheduler/scheduler.js.map +1 -1
- package/dist/scheduler/types.d.ts +22 -0
- package/dist/scheduler/types.js.map +1 -1
- package/dist/secret-store.d.ts +5 -0
- package/dist/secret-store.js +20 -0
- package/dist/secret-store.js.map +1 -1
- package/dist/service-activation.d.ts +110 -0
- package/dist/service-activation.js +302 -0
- package/dist/service-activation.js.map +1 -0
- package/dist/service-installer.d.ts +7 -0
- package/dist/service-installer.js +7 -4
- package/dist/service-installer.js.map +1 -1
- package/dist/service-restart-selection.d.ts +6 -5
- package/dist/service-restart-selection.js +6 -5
- package/dist/service-restart-selection.js.map +1 -1
- package/dist/settings-api.d.ts +10 -2
- package/dist/settings-api.js +175 -72
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.d.ts +20 -0
- package/dist/settings-baseline.js +104 -0
- package/dist/settings-baseline.js.map +1 -0
- package/dist/settings-change.d.ts +21 -0
- package/dist/settings-change.js +133 -0
- package/dist/settings-change.js.map +1 -0
- package/dist/settings-confirmation.d.ts +105 -0
- package/dist/settings-confirmation.js +232 -0
- package/dist/settings-confirmation.js.map +1 -0
- package/dist/settings-control.d.ts +41 -0
- package/dist/settings-control.js +294 -0
- package/dist/settings-control.js.map +1 -0
- package/dist/settings-effect.d.ts +24 -0
- package/dist/settings-effect.js +169 -0
- package/dist/settings-effect.js.map +1 -0
- package/dist/settings-http-confirmation.d.ts +29 -0
- package/dist/settings-http-confirmation.js +123 -0
- package/dist/settings-http-confirmation.js.map +1 -0
- package/dist/settings-instance-patch.d.ts +4 -0
- package/dist/settings-instance-patch.js +26 -0
- package/dist/settings-instance-patch.js.map +1 -0
- package/dist/settings-request-capability.d.ts +16 -0
- package/dist/settings-request-capability.js +32 -0
- package/dist/settings-request-capability.js.map +1 -0
- package/dist/settings-transaction.d.ts +65 -0
- package/dist/settings-transaction.js +223 -0
- package/dist/settings-transaction.js.map +1 -0
- package/dist/setup-auth.d.ts +10 -18
- package/dist/setup-auth.js +14 -38
- package/dist/setup-auth.js.map +1 -1
- package/dist/setup-form.d.ts +1 -1
- package/dist/setup-form.js +75 -18
- package/dist/setup-form.js.map +1 -1
- package/dist/setup-guide.d.ts +13 -0
- package/dist/setup-guide.js +25 -0
- package/dist/setup-guide.js.map +1 -0
- package/dist/setup-host.d.ts +16 -0
- package/dist/setup-host.js +197 -32
- package/dist/setup-host.js.map +1 -1
- package/dist/setup-wizard.js +3 -0
- package/dist/setup-wizard.js.map +1 -1
- package/dist/slash-authz.d.ts +17 -3
- package/dist/slash-authz.js +5 -0
- package/dist/slash-authz.js.map +1 -1
- package/dist/spawn-gate.js +3 -3
- package/dist/spawn-gate.js.map +1 -1
- package/dist/statusline-watcher.d.ts +5 -0
- package/dist/statusline-watcher.js +2 -0
- package/dist/statusline-watcher.js.map +1 -1
- package/dist/steer-capability.d.ts +6 -0
- package/dist/steer-capability.js +8 -0
- package/dist/steer-capability.js.map +1 -1
- package/dist/sync-work-attribution.d.ts +14 -0
- package/dist/sync-work-attribution.js +43 -8
- package/dist/sync-work-attribution.js.map +1 -1
- package/dist/tips.js +10 -5
- package/dist/tips.js.map +1 -1
- package/dist/tmux-control.d.ts +35 -5
- package/dist/tmux-control.js +291 -57
- package/dist/tmux-control.js.map +1 -1
- package/dist/tmux-manager.d.ts +20 -6
- package/dist/tmux-manager.js +90 -47
- package/dist/tmux-manager.js.map +1 -1
- package/dist/tmux-read.d.ts +59 -0
- package/dist/tmux-read.js +213 -0
- package/dist/tmux-read.js.map +1 -0
- package/dist/topic-commands.d.ts +21 -10
- package/dist/topic-commands.js +191 -58
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-delta-reader.js +2 -1
- package/dist/transcript-delta-reader.js.map +1 -1
- package/dist/tunnel/cloudflared-install.d.ts +2 -0
- package/dist/tunnel/cloudflared-install.js +1 -1
- package/dist/tunnel/cloudflared-install.js.map +1 -1
- package/dist/tunnel/purpose-lane.d.ts +14 -0
- package/dist/tunnel/purpose-lane.js +43 -0
- package/dist/tunnel/purpose-lane.js.map +1 -0
- package/dist/turn-reply-guard.d.ts +2 -0
- package/dist/turn-reply-guard.js +10 -1
- package/dist/turn-reply-guard.js.map +1 -1
- package/dist/types.d.ts +33 -0
- package/dist/ui/app.html +18 -0
- package/dist/ui/chat-render.js +478 -0
- package/dist/ui/chat-store.js +289 -0
- package/dist/ui/chat-strings.js +69 -0
- package/dist/ui/chat-thread.js +209 -0
- package/dist/ui/chat-tour.js +116 -0
- package/dist/ui/fleet-org.js +142 -0
- package/dist/ui/panel-chat.js +418 -0
- package/dist/ui/panel-fleet.js +413 -0
- package/dist/ui/panel-needs.js +202 -0
- package/dist/ui/panel-settings.js +750 -0
- package/dist/ui/preview.js +266 -0
- package/dist/ui/settings-apply.js +239 -0
- package/dist/ui/settings-confirm.js +186 -0
- package/dist/ui/settings-dialogs.js +546 -0
- package/dist/ui/settings-model.js +277 -0
- package/dist/ui/settings-strings.js +652 -0
- package/dist/ui/settings-wizard.js +140 -0
- package/dist/ui/shared/agend-auth.js +93 -0
- package/dist/ui/shared/app-ctx.js +80 -0
- package/dist/ui/shared/app-html.js +9 -0
- package/dist/ui/shared/app-i18n.js +95 -0
- package/dist/ui/shared/app-nav.js +73 -0
- package/dist/ui/shared/app-needs.js +114 -0
- package/dist/ui/shared/app-route.js +73 -0
- package/dist/ui/shared/app-session.js +66 -0
- package/dist/ui/shared/app-shell.js +344 -0
- package/dist/ui/shared/app-store.js +51 -0
- package/dist/ui/shared/app-stream.js +201 -0
- package/dist/ui/shared/app.css +676 -0
- package/dist/ui/shared/app.js +88 -0
- package/dist/ui/shared/fonts/OFL.txt +92 -0
- package/dist/ui/shared/fonts/README.md +21 -0
- package/dist/ui/shared/fonts/inter.woff2 +0 -0
- package/dist/ui/shared/htm.module.js +1 -0
- package/dist/ui/shared/panel-view.js +655 -0
- package/dist/ui/shared/preact-hooks.module.js +2 -0
- package/dist/ui/shared/preact.module.js +2 -0
- package/dist/ui/shared/signin.js +130 -0
- package/dist/ui/shared/theme.js +29 -0
- package/dist/ui/shared/tokens.css +153 -0
- package/dist/ui/shared/ui-confirm.js +43 -0
- package/dist/ui/shared/ui-dialog.js +45 -0
- package/dist/ui/shared/ui-icons.js +61 -0
- package/dist/ui/shared/ui-menu.js +39 -0
- package/dist/ui/shared/ui-states.js +20 -0
- package/dist/ui/shared/ui-toast.js +18 -0
- package/dist/ui/shared/vendor/htm.LICENSE +202 -0
- package/dist/ui/shared/vendor/preact.LICENSE +21 -0
- package/dist/ui/shared/vendor/vendor.json +39 -0
- package/dist/ui/shared/view-strings.js +309 -0
- package/dist/ui/signin.html +51 -0
- package/dist/update-check.d.ts +6 -2
- package/dist/update-check.js +12 -3
- package/dist/update-check.js.map +1 -1
- package/dist/update-install.d.ts +71 -0
- package/dist/update-install.js +162 -0
- package/dist/update-install.js.map +1 -0
- package/dist/upgrade-notices.d.ts +17 -0
- package/dist/upgrade-notices.js +93 -0
- package/dist/upgrade-notices.js.map +1 -0
- package/dist/usage/statusline-usage.d.ts +2 -0
- package/dist/usage/statusline-usage.js +14 -10
- package/dist/usage/statusline-usage.js.map +1 -1
- package/dist/view-api.d.ts +6 -1
- package/dist/view-api.js +62 -51
- package/dist/view-api.js.map +1 -1
- package/dist/web-api.d.ts +71 -14
- package/dist/web-api.js +492 -77
- package/dist/web-api.js.map +1 -1
- package/dist/web-auth.d.ts +71 -27
- package/dist/web-auth.js +169 -69
- package/dist/web-auth.js.map +1 -1
- package/dist/web-body.d.ts +3 -0
- package/dist/web-body.js +55 -0
- package/dist/web-body.js.map +1 -0
- package/dist/web-channel-echo.d.ts +9 -0
- package/dist/web-channel-echo.js +55 -0
- package/dist/web-channel-echo.js.map +1 -0
- package/dist/web-chat-history.d.ts +125 -0
- package/dist/web-chat-history.js +184 -0
- package/dist/web-chat-history.js.map +1 -0
- package/dist/web-continuation.d.ts +7 -0
- package/dist/web-continuation.js +22 -0
- package/dist/web-continuation.js.map +1 -0
- package/dist/web-host-guard.d.ts +34 -0
- package/dist/web-host-guard.js +57 -1
- package/dist/web-host-guard.js.map +1 -1
- package/dist/web-login.d.ts +72 -0
- package/dist/web-login.js +132 -0
- package/dist/web-login.js.map +1 -0
- package/dist/web-org.d.ts +55 -0
- package/dist/web-org.js +67 -0
- package/dist/web-org.js.map +1 -0
- package/dist/web-preview.d.ts +77 -0
- package/dist/web-preview.js +240 -0
- package/dist/web-preview.js.map +1 -0
- package/dist/web-request-context.d.ts +10 -0
- package/dist/web-request-context.js +13 -0
- package/dist/web-request-context.js.map +1 -0
- package/dist/web-session.d.ts +167 -0
- package/dist/web-session.js +389 -0
- package/dist/web-session.js.map +1 -0
- package/dist/web-shell-routes.d.ts +59 -0
- package/dist/web-shell-routes.js +96 -0
- package/dist/web-shell-routes.js.map +1 -0
- package/dist/web-upload.d.ts +183 -0
- package/dist/web-upload.js +468 -0
- package/dist/web-upload.js.map +1 -0
- package/dist/website-tips-renderer.d.ts +2 -2
- package/dist/website-tips-renderer.js +3 -3
- package/dist/website-tips-renderer.js.map +1 -1
- package/package.json +8 -5
- package/scripts/preinstall-guard.cjs +36 -0
- package/dist/ui/dashboard.html +0 -774
- package/dist/ui/settings.html +0 -2165
- package/dist/ui/view.html +0 -1139
package/dist/daemon.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type { StormWindow } from "./storm-window.js";
|
|
|
12
12
|
import type { BackendOutageView } from "./backend-outage.js";
|
|
13
13
|
import { type DaemonDeliveryPort } from "./delivery-outbox.js";
|
|
14
14
|
import type { InteractionSnapshot } from "./backend/types.js";
|
|
15
|
-
export declare function buildInstructionReloadNotice(binaryName: string, instanceName: string, instanceDir: string): string;
|
|
15
|
+
export declare function buildInstructionReloadNotice(binaryName: string, instanceName: string, instanceDir: string, backendSource?: string | null): string;
|
|
16
16
|
/**
|
|
17
17
|
* Whether this backend has to be told in its pane that its instructions moved.
|
|
18
18
|
*
|
|
@@ -231,6 +231,19 @@ export declare class BackendUnreachableStartupError extends Error {
|
|
|
231
231
|
readonly backend: string;
|
|
232
232
|
constructor(backend: string);
|
|
233
233
|
}
|
|
234
|
+
/**
|
|
235
|
+
* Where a delivery-status reaction belongs. chatId is ALWAYS the platform
|
|
236
|
+
* chat (Telegram supergroup id, Discord guild id) — never a forum topic id.
|
|
237
|
+
* threadId carries the topic/thread separately so each adapter can address
|
|
238
|
+
* the message its own way (Telegram ignores it, Discord reacts in the thread).
|
|
239
|
+
*/
|
|
240
|
+
type DeliveryStatus = {
|
|
241
|
+
chatId: string;
|
|
242
|
+
messageId: string;
|
|
243
|
+
threadId?: string;
|
|
244
|
+
};
|
|
245
|
+
/** Build a status holder from channel metadata, keeping chat and thread apart. */
|
|
246
|
+
export declare function channelStatus(meta: Record<string, string>): DeliveryStatus | undefined;
|
|
234
247
|
/**
|
|
235
248
|
* One-shot timing gate for the first paste after a CLI reaches its ready
|
|
236
249
|
* prompt. A TUI that is still completing its first redraw can swallow Enter.
|
|
@@ -874,6 +887,13 @@ export declare class Daemon extends EventEmitter {
|
|
|
874
887
|
private abortDurableDelivery;
|
|
875
888
|
private retryDurableDeliveryBeforeBegin;
|
|
876
889
|
private finishDurableDelivery;
|
|
890
|
+
/**
|
|
891
|
+
* #1201: a steer or a native-queue hand-off was accepted into the CLI's input (or may have been) — not read. Watch
|
|
892
|
+
* the transcript from this attempt's checkpoint for the moment the CLI takes it, and record that on the delivery;
|
|
893
|
+
* an `uncertain` row becomes `delivered` then. Only claude-code and codex write a transcript AgEnD can read. The
|
|
894
|
+
* watch belongs to this CLI: a stop, pause or respawn ends it (restart reconciliation owns the row after that).
|
|
895
|
+
*/
|
|
896
|
+
private startConsumedWatch;
|
|
877
897
|
private finishDurableSubmission;
|
|
878
898
|
/**
|
|
879
899
|
* Finish a delivery that only the output edge vouched for, by the delivery's own marker in the CLI's transcript (#758).
|
|
@@ -901,6 +921,12 @@ export declare class Daemon extends EventEmitter {
|
|
|
901
921
|
* one second after it became ready.
|
|
902
922
|
*/
|
|
903
923
|
seedActivityNow(now?: number): void;
|
|
924
|
+
/**
|
|
925
|
+
* Whether this launch takes a steer into a running turn, for a backend that answers per launch (kiro's TUI vs its
|
|
926
|
+
* legacy UI, #1405); undefined for every other backend, whose name decides (steer-capability.ts). The backend reads
|
|
927
|
+
* what it last launched — no probe, no fork, safe on the fleet loop.
|
|
928
|
+
*/
|
|
929
|
+
launchSupportsSteer(): boolean | undefined;
|
|
904
930
|
/**
|
|
905
931
|
* Phase 2b (design §1.4): why this awake instance is not taking input, in
|
|
906
932
|
* words for a notice, or null when nothing known holds it. Read from the
|
|
@@ -918,7 +944,9 @@ export declare class Daemon extends EventEmitter {
|
|
|
918
944
|
* without driving the real lifecycle.
|
|
919
945
|
*/
|
|
920
946
|
private attachPipePaneLog;
|
|
921
|
-
|
|
947
|
+
private startupAdmission;
|
|
948
|
+
start(admission?: () => void): Promise<void>;
|
|
949
|
+
private startAdmitted;
|
|
922
950
|
/**
|
|
923
951
|
* Detect a CRASHED MCP server and report it once.
|
|
924
952
|
*
|
|
@@ -1553,6 +1581,34 @@ export declare class Daemon extends EventEmitter {
|
|
|
1553
1581
|
* reporting idle after 10s only to make that gate wait another 10s (#1035).
|
|
1554
1582
|
*/
|
|
1555
1583
|
private probeDeliveryIdleFallback;
|
|
1584
|
+
/**
|
|
1585
|
+
* #1405: a steer is handed to the busy pane only if THIS launch takes one — asked of the backend again at delivery,
|
|
1586
|
+
* not just by the hub when it was sent: a durable steer can outlive the launch it was meant for (a restart onto a
|
|
1587
|
+
* legacy UI or an unverified version), and must then wait for the idle prompt like any message. Backends that do not
|
|
1588
|
+
* answer per launch leave it to the hub's name table.
|
|
1589
|
+
*/
|
|
1590
|
+
private launchTakesSteer;
|
|
1591
|
+
/**
|
|
1592
|
+
* #1405: a steer into a CLI whose busy input steers or queues by a mode the user switches (kiro TUI) goes in only
|
|
1593
|
+
* while a fresh capture reads its composer as "steer" — or "idle" once the turn has ended (`allowIdle`, the pre-write
|
|
1594
|
+
* re-check). "queue" (the user's choice), text in the box, or a screen it cannot read: not now — the caller waits for
|
|
1595
|
+
* the idle prompt as for any message. AgEnD never switches the mode. Backends without the reader are not asked.
|
|
1596
|
+
*/
|
|
1597
|
+
private steerComposerAdmits;
|
|
1598
|
+
/**
|
|
1599
|
+
* #1405: one look at a mode-switched composer for a steer's own proof: on the tmux of this write, inside `deadline`
|
|
1600
|
+
* (monotonic) — the capture is raced against the time left and a late answer dropped — and `current` asked after the
|
|
1601
|
+
* await. Null when unreadable, late or no longer this write's: never evidence of an empty or a full box. The pane
|
|
1602
|
+
* comes back with the mode, so what follows judges the same capture.
|
|
1603
|
+
*/
|
|
1604
|
+
private steerComposerWithin;
|
|
1605
|
+
/**
|
|
1606
|
+
* #1405: the composer's text is THIS delivery's paste. kiro paints a multi-line paste's first line on the `›` row (live,
|
|
1607
|
+
* 2.27.1 and 2.28.0, TUI v2 and v3); that row must show the payload's first line COMPLETE — for a durable steer that
|
|
1608
|
+
* is its `[agend-delivery-id:<this attempt's id>]` marker, so a draft, someone else's paste, our paste appended to a
|
|
1609
|
+
* draft, or a marker cut short (wrapped, collapsed, truncated) is never taken for it: not attributable, no Enter.
|
|
1610
|
+
*/
|
|
1611
|
+
private steerPasteIsOurs;
|
|
1556
1612
|
/**
|
|
1557
1613
|
* Codex can paint a prompt before the TTY enters raw mode. Both are required.
|
|
1558
1614
|
*
|
|
@@ -1759,8 +1815,8 @@ export declare class Daemon extends EventEmitter {
|
|
|
1759
1815
|
private confirmAfterEnter;
|
|
1760
1816
|
private confirmSubmitted;
|
|
1761
1817
|
/**
|
|
1762
|
-
* The CLI's transcript, from this attempt's checkpoint, holds this delivery's exact marker: a user entry (read)
|
|
1763
|
-
* one it queued (taken into its queue).
|
|
1818
|
+
* The CLI's transcript, from this attempt's checkpoint, holds this delivery's exact marker: a user entry (read), an
|
|
1819
|
+
* entry Claude absorbed mid-turn, or one it queued (taken into its queue). Any of them is the CLI having taken the
|
|
1764
1820
|
* message, so it outranks the pane — including a box that still shows the paste a moment after Enter (Claude paints
|
|
1765
1821
|
* the submit late, captured live on 2.1.293), which on its own reads as a strand. Positive only; never a downgrade.
|
|
1766
1822
|
*/
|
|
@@ -1941,6 +1997,34 @@ export declare class Daemon extends EventEmitter {
|
|
|
1941
1997
|
/** Keep the newest few set-aside sessions; they are insurance, not an archive. */
|
|
1942
1998
|
private pruneAbandonedSessions;
|
|
1943
1999
|
private spawnClaudeWindow;
|
|
2000
|
+
/** The whole agent switch after a resume, on the monotonic clock (#906 §3). */
|
|
2001
|
+
private static readonly AGENT_SWITCH_BUDGET_MS;
|
|
2002
|
+
private static readonly AGENT_SWITCH_POLL_MS;
|
|
2003
|
+
/** Each tmux call of the write (load, paste, Enter, take-back) is bounded by this. */
|
|
2004
|
+
private static readonly AGENT_SWITCH_TMUX_OP_MS;
|
|
2005
|
+
/**
|
|
2006
|
+
* The paste is started only with this much budget left, checked at the paste itself: the load and the paste, the
|
|
2007
|
+
* settle, the Enter — each bounded by AGENT_SWITCH_TMUX_OP_MS — fit in it.
|
|
2008
|
+
*/
|
|
2009
|
+
private static readonly AGENT_SWITCH_WRITE_RESERVE_MS;
|
|
2010
|
+
/** Between the paste and its Enter, as tmux pastes elsewhere (pasteText). */
|
|
2011
|
+
private static readonly AGENT_SWITCH_PASTE_SETTLE_MS;
|
|
2012
|
+
/**
|
|
2013
|
+
* #906 §3: after a resume, make the CLI run as this instance's own agent. Reads the agent off the live layout
|
|
2014
|
+
* (backend.agentSwitch().readActive — the supported bottom layout only, never a name quoted in the conversation);
|
|
2015
|
+
* when it is another one, types the switch command ONCE, under the pane-write lock, and only when ONE final capture
|
|
2016
|
+
* taken there shows the live layout naming another agent AND an idle, input-ready pane (ready, not busy, no
|
|
2017
|
+
* blocking dialog, no input transient) — after the delivery path's own readiness check. It confirms only on a
|
|
2018
|
+
* later capture of the live layout naming ours.
|
|
2019
|
+
*
|
|
2020
|
+
* Fenced like a delivery, from entry on: the spawn generation, launch fence, the pause/wake phase it started in,
|
|
2021
|
+
* the same tmux window, not aborted, writes not stopping — re-checked after every await, and between the paste and
|
|
2022
|
+
* its Enter. The whole step, every await included, ends at one monotonic deadline: a late capture never confirms
|
|
2023
|
+
* and a late admission never writes; a paste whose Enter would land past it is taken back. Not confirmed in time:
|
|
2024
|
+
* the old setup stays, a launch warning says so, the next launch tries again. A stop, pause or respawn ends it
|
|
2025
|
+
* silently, confirming and removing nothing. Never throws into the spawn.
|
|
2026
|
+
*/
|
|
2027
|
+
private ensureBackendAgent;
|
|
1944
2028
|
/**
|
|
1945
2029
|
* Startup budget for this launch: the backend's override (resume-aware), never
|
|
1946
2030
|
* below a user-configured startup_timeout_ms; undefined = trySpawn's default.
|
|
@@ -2123,3 +2207,4 @@ export declare class Daemon extends EventEmitter {
|
|
|
2123
2207
|
private handleReleaseRepo;
|
|
2124
2208
|
private buildSnapshotPrompt;
|
|
2125
2209
|
}
|
|
2210
|
+
export {};
|