@songsid/agend 2.1.12 → 2.2.0-alpha.2
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 +4 -2
- package/README.zh-TW.md +4 -2
- package/dist/agent-cli.js +6 -1
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-endpoint.js +68 -12
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-token-header.d.ts +13 -0
- package/dist/agent-token-header.js +16 -0
- package/dist/agent-token-header.js.map +1 -0
- 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/antigravity.js +4 -3
- package/dist/backend/antigravity.js.map +1 -1
- 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/grok.js +1 -1
- package/dist/backend/grok.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 +90 -7
- package/dist/backend/kiro.js +500 -124
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/muse.js +1 -1
- package/dist/backend/muse.js.map +1 -1
- package/dist/backend/types.d.ts +51 -3
- package/dist/backend/types.js.map +1 -1
- package/dist/cache-analysis.d.ts +92 -0
- package/dist/cache-analysis.js +147 -0
- package/dist/cache-analysis.js.map +1 -0
- package/dist/cache-ledger.d.ts +108 -0
- package/dist/cache-ledger.js +230 -0
- package/dist/cache-ledger.js.map +1 -0
- package/dist/cache-prices.d.ts +32 -0
- package/dist/cache-prices.js +73 -0
- package/dist/cache-prices.js.map +1 -0
- package/dist/cache-scan.d.ts +39 -0
- package/dist/cache-scan.js +115 -0
- package/dist/cache-scan.js.map +1 -0
- package/dist/cache-service.d.ts +115 -0
- package/dist/cache-service.js +417 -0
- package/dist/cache-service.js.map +1 -0
- 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-entry.d.ts +19 -0
- package/dist/cli-entry.js +36 -0
- package/dist/cli-entry.js.map +1 -0
- package/dist/cli.js +471 -146
- 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 +95 -4
- package/dist/daemon.js +748 -111
- 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-log.d.ts +4 -1
- package/dist/event-log.js +6 -3
- package/dist/event-log.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-control-audit.d.ts +5 -0
- package/dist/fleet-control-audit.js +7 -0
- package/dist/fleet-control-audit.js.map +1 -1
- package/dist/fleet-level-config.d.ts +2 -2
- package/dist/fleet-level-config.js +28 -1
- package/dist/fleet-level-config.js.map +1 -1
- package/dist/fleet-manager.d.ts +339 -12
- package/dist/fleet-manager.js +2623 -461
- package/dist/fleet-manager.js.map +1 -1
- package/dist/full-restart.js +2 -3
- package/dist/full-restart.js.map +1 -1
- package/dist/general-knowledge/skills/persona-emoji/SKILL.md +3 -1
- package/dist/host-memory.d.ts +4 -0
- package/dist/host-memory.js.map +1 -1
- package/dist/install-lock.d.ts +49 -0
- package/dist/install-lock.js +200 -0
- package/dist/install-lock.js.map +1 -0
- package/dist/instance-config-impact.js +8 -2
- 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 +164 -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/outbound-schemas.js +1 -1
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/package-preimage.d.ts +26 -0
- package/dist/package-preimage.js +96 -0
- package/dist/package-preimage.js.map +1 -0
- 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 +16 -6
- package/dist/quickstart.js.map +1 -1
- package/dist/restart-guard.d.ts +52 -0
- package/dist/restart-guard.js +109 -0
- package/dist/restart-guard.js.map +1 -0
- package/dist/scheduler/db.d.ts +7 -1
- package/dist/scheduler/db.js +44 -2
- 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 +152 -0
- package/dist/service-activation.js +407 -0
- package/dist/service-activation.js.map +1 -0
- package/dist/service-installer.d.ts +63 -1
- package/dist/service-installer.js +141 -16
- package/dist/service-installer.js.map +1 -1
- package/dist/service-plan.d.ts +65 -0
- package/dist/service-plan.js +108 -0
- package/dist/service-plan.js.map +1 -0
- 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 +216 -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 +161 -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 +199 -35
- package/dist/setup-host.js.map +1 -1
- package/dist/setup-wizard.js +5 -1
- 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/sqlite-open-errors.d.ts +12 -0
- package/dist/sqlite-open-errors.js +13 -0
- package/dist/sqlite-open-errors.js.map +1 -0
- 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 +57 -5
- package/dist/tmux-control.js +379 -61
- 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 +205 -63
- 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-commands.js +43 -0
- package/dist/ui/chat-render.js +478 -0
- package/dist/ui/chat-store.js +318 -0
- package/dist/ui/chat-strings.js +89 -0
- package/dist/ui/chat-thread.js +246 -0
- package/dist/ui/chat-tour.js +116 -0
- package/dist/ui/fleet-cache.js +168 -0
- package/dist/ui/fleet-org.js +142 -0
- package/dist/ui/panel-chat.js +504 -0
- package/dist/ui/panel-fleet.js +427 -0
- package/dist/ui/panel-needs.js +202 -0
- package/dist/ui/panel-settings.js +754 -0
- package/dist/ui/preview-panel.js +202 -0
- package/dist/ui/preview.js +270 -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 +654 -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 +346 -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 +820 -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 +142 -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 +63 -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 +52 -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-dispatch.d.ts +28 -0
- package/dist/update-dispatch.js +73 -0
- package/dist/update-dispatch.js.map +1 -0
- package/dist/update-install.d.ts +129 -0
- package/dist/update-install.js +262 -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 +85 -14
- package/dist/web-api.js +557 -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-commands.d.ts +77 -0
- package/dist/web-commands.js +81 -0
- package/dist/web-commands.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/launcher/agend +110 -0
- package/launcher/agend-agent +110 -0
- package/launcher/agend-agent.cjs +4 -0
- package/launcher/agend.cjs +4 -0
- package/launcher/install-admission.cjs +105 -0
- package/launcher/launch.cjs +64 -0
- package/launcher/postinstall.cjs +114 -0
- package/launcher/run-in-process.cjs +13 -0
- package/launcher/runtime-platform.cjs +86 -0
- package/launcher/runtime-select.cjs +217 -0
- package/package.json +18 -7
- package/scripts/preinstall-guard.cjs +55 -0
- package/templates/launchd.plist.ejs +2 -2
- package/templates/systemd.service.ejs +1 -1
- 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.
|
|
@@ -523,6 +536,8 @@ export declare class Daemon extends EventEmitter {
|
|
|
523
536
|
/** Generation/signature fence for safety dialogs while their screen is still visible. */
|
|
524
537
|
private autoResolvedDialogKey;
|
|
525
538
|
private autoResolvedDialogGeneration;
|
|
539
|
+
/** Per-launch safety phases survive startup handoff, redraws and failed/uncertain key ACKs. */
|
|
540
|
+
private launchDialogClaims;
|
|
526
541
|
/**
|
|
527
542
|
* (#1103) Proof that THIS spawn's Codex went onto Luna Reserve: AgEnD saw (and
|
|
528
543
|
* answered) the usage-limit menu that codex shows when it switches itself to
|
|
@@ -874,6 +889,13 @@ export declare class Daemon extends EventEmitter {
|
|
|
874
889
|
private abortDurableDelivery;
|
|
875
890
|
private retryDurableDeliveryBeforeBegin;
|
|
876
891
|
private finishDurableDelivery;
|
|
892
|
+
/**
|
|
893
|
+
* #1201: a steer or a native-queue hand-off was accepted into the CLI's input (or may have been) — not read. Watch
|
|
894
|
+
* the transcript from this attempt's checkpoint for the moment the CLI takes it, and record that on the delivery;
|
|
895
|
+
* an `uncertain` row becomes `delivered` then. Only claude-code and codex write a transcript AgEnD can read. The
|
|
896
|
+
* watch belongs to this CLI: a stop, pause or respawn ends it (restart reconciliation owns the row after that).
|
|
897
|
+
*/
|
|
898
|
+
private startConsumedWatch;
|
|
877
899
|
private finishDurableSubmission;
|
|
878
900
|
/**
|
|
879
901
|
* Finish a delivery that only the output edge vouched for, by the delivery's own marker in the CLI's transcript (#758).
|
|
@@ -901,6 +923,12 @@ export declare class Daemon extends EventEmitter {
|
|
|
901
923
|
* one second after it became ready.
|
|
902
924
|
*/
|
|
903
925
|
seedActivityNow(now?: number): void;
|
|
926
|
+
/**
|
|
927
|
+
* Whether this launch takes a steer into a running turn, for a backend that answers per launch (kiro's TUI vs its
|
|
928
|
+
* legacy UI, #1405); undefined for every other backend, whose name decides (steer-capability.ts). The backend reads
|
|
929
|
+
* what it last launched — no probe, no fork, safe on the fleet loop.
|
|
930
|
+
*/
|
|
931
|
+
launchSupportsSteer(): boolean | undefined;
|
|
904
932
|
/**
|
|
905
933
|
* Phase 2b (design §1.4): why this awake instance is not taking input, in
|
|
906
934
|
* words for a notice, or null when nothing known holds it. Read from the
|
|
@@ -918,7 +946,9 @@ export declare class Daemon extends EventEmitter {
|
|
|
918
946
|
* without driving the real lifecycle.
|
|
919
947
|
*/
|
|
920
948
|
private attachPipePaneLog;
|
|
921
|
-
|
|
949
|
+
private startupAdmission;
|
|
950
|
+
start(admission?: () => void): Promise<void>;
|
|
951
|
+
private startAdmitted;
|
|
922
952
|
/**
|
|
923
953
|
* Detect a CRASHED MCP server and report it once.
|
|
924
954
|
*
|
|
@@ -1465,6 +1495,8 @@ export declare class Daemon extends EventEmitter {
|
|
|
1465
1495
|
private static dialogMatches;
|
|
1466
1496
|
/** Refresh the separate stdin-blocked observation from one pane capture. */
|
|
1467
1497
|
private updateInputBlockedState;
|
|
1498
|
+
private hasAutoDialogClaim;
|
|
1499
|
+
private claimAutoDialog;
|
|
1468
1500
|
/** Whether a runtime prompt currently owns the pane's stdin. */
|
|
1469
1501
|
isInputBlocked(): boolean;
|
|
1470
1502
|
/**
|
|
@@ -1553,6 +1585,34 @@ export declare class Daemon extends EventEmitter {
|
|
|
1553
1585
|
* reporting idle after 10s only to make that gate wait another 10s (#1035).
|
|
1554
1586
|
*/
|
|
1555
1587
|
private probeDeliveryIdleFallback;
|
|
1588
|
+
/**
|
|
1589
|
+
* #1405: a steer is handed to the busy pane only if THIS launch takes one — asked of the backend again at delivery,
|
|
1590
|
+
* not just by the hub when it was sent: a durable steer can outlive the launch it was meant for (a restart onto a
|
|
1591
|
+
* legacy UI or an unverified version), and must then wait for the idle prompt like any message. Backends that do not
|
|
1592
|
+
* answer per launch leave it to the hub's name table.
|
|
1593
|
+
*/
|
|
1594
|
+
private launchTakesSteer;
|
|
1595
|
+
/**
|
|
1596
|
+
* #1405: a steer into a CLI whose busy input steers or queues by a mode the user switches (kiro TUI) goes in only
|
|
1597
|
+
* while a fresh capture reads its composer as "steer" — or "idle" once the turn has ended (`allowIdle`, the pre-write
|
|
1598
|
+
* re-check). "queue" (the user's choice), text in the box, or a screen it cannot read: not now — the caller waits for
|
|
1599
|
+
* the idle prompt as for any message. AgEnD never switches the mode. Backends without the reader are not asked.
|
|
1600
|
+
*/
|
|
1601
|
+
private steerComposerAdmits;
|
|
1602
|
+
/**
|
|
1603
|
+
* #1405: one look at a mode-switched composer for a steer's own proof: on the tmux of this write, inside `deadline`
|
|
1604
|
+
* (monotonic) — the capture is raced against the time left and a late answer dropped — and `current` asked after the
|
|
1605
|
+
* await. Null when unreadable, late or no longer this write's: never evidence of an empty or a full box. The pane
|
|
1606
|
+
* comes back with the mode, so what follows judges the same capture.
|
|
1607
|
+
*/
|
|
1608
|
+
private steerComposerWithin;
|
|
1609
|
+
/**
|
|
1610
|
+
* #1405: the composer's text is THIS delivery's paste. kiro paints a multi-line paste's first line on the `›` row (live,
|
|
1611
|
+
* 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
|
|
1612
|
+
* is its `[agend-delivery-id:<this attempt's id>]` marker, so a draft, someone else's paste, our paste appended to a
|
|
1613
|
+
* draft, or a marker cut short (wrapped, collapsed, truncated) is never taken for it: not attributable, no Enter.
|
|
1614
|
+
*/
|
|
1615
|
+
private steerPasteIsOurs;
|
|
1556
1616
|
/**
|
|
1557
1617
|
* Codex can paint a prompt before the TTY enters raw mode. Both are required.
|
|
1558
1618
|
*
|
|
@@ -1711,6 +1771,8 @@ export declare class Daemon extends EventEmitter {
|
|
|
1711
1771
|
* an invariant maintained by comments.
|
|
1712
1772
|
*/
|
|
1713
1773
|
private sendDeliveryEnter;
|
|
1774
|
+
/** Write half only: callers must finish the availability wait before any final recovery ownership proof. */
|
|
1775
|
+
private sendDeliveryEnterAfterAvailability;
|
|
1714
1776
|
private writeMessageToPane;
|
|
1715
1777
|
/**
|
|
1716
1778
|
* The single place a pasted message is judged submitted, shared by the
|
|
@@ -1759,8 +1821,8 @@ export declare class Daemon extends EventEmitter {
|
|
|
1759
1821
|
private confirmAfterEnter;
|
|
1760
1822
|
private confirmSubmitted;
|
|
1761
1823
|
/**
|
|
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).
|
|
1824
|
+
* The CLI's transcript, from this attempt's checkpoint, holds this delivery's exact marker: a user entry (read), an
|
|
1825
|
+
* entry Claude absorbed mid-turn, or one it queued (taken into its queue). Any of them is the CLI having taken the
|
|
1764
1826
|
* message, so it outranks the pane — including a box that still shows the paste a moment after Enter (Claude paints
|
|
1765
1827
|
* the submit late, captured live on 2.1.293), which on its own reads as a strand. Positive only; never a downgrade.
|
|
1766
1828
|
*/
|
|
@@ -1941,6 +2003,34 @@ export declare class Daemon extends EventEmitter {
|
|
|
1941
2003
|
/** Keep the newest few set-aside sessions; they are insurance, not an archive. */
|
|
1942
2004
|
private pruneAbandonedSessions;
|
|
1943
2005
|
private spawnClaudeWindow;
|
|
2006
|
+
/** The whole agent switch after a resume, on the monotonic clock (#906 §3). */
|
|
2007
|
+
private static readonly AGENT_SWITCH_BUDGET_MS;
|
|
2008
|
+
private static readonly AGENT_SWITCH_POLL_MS;
|
|
2009
|
+
/** Each tmux call of the write (load, paste, Enter, take-back) is bounded by this. */
|
|
2010
|
+
private static readonly AGENT_SWITCH_TMUX_OP_MS;
|
|
2011
|
+
/**
|
|
2012
|
+
* The paste is started only with this much budget left, checked at the paste itself: the load and the paste, the
|
|
2013
|
+
* settle, the Enter — each bounded by AGENT_SWITCH_TMUX_OP_MS — fit in it.
|
|
2014
|
+
*/
|
|
2015
|
+
private static readonly AGENT_SWITCH_WRITE_RESERVE_MS;
|
|
2016
|
+
/** Between the paste and its Enter, as tmux pastes elsewhere (pasteText). */
|
|
2017
|
+
private static readonly AGENT_SWITCH_PASTE_SETTLE_MS;
|
|
2018
|
+
/**
|
|
2019
|
+
* #906 §3: after a resume, make the CLI run as this instance's own agent. Reads the agent off the live layout
|
|
2020
|
+
* (backend.agentSwitch().readActive — the supported bottom layout only, never a name quoted in the conversation);
|
|
2021
|
+
* when it is another one, types the switch command ONCE, under the pane-write lock, and only when ONE final capture
|
|
2022
|
+
* taken there shows the live layout naming another agent AND an idle, input-ready pane (ready, not busy, no
|
|
2023
|
+
* blocking dialog, no input transient) — after the delivery path's own readiness check. It confirms only on a
|
|
2024
|
+
* later capture of the live layout naming ours.
|
|
2025
|
+
*
|
|
2026
|
+
* Fenced like a delivery, from entry on: the spawn generation, launch fence, the pause/wake phase it started in,
|
|
2027
|
+
* the same tmux window, not aborted, writes not stopping — re-checked after every await, and between the paste and
|
|
2028
|
+
* its Enter. The whole step, every await included, ends at one monotonic deadline: a late capture never confirms
|
|
2029
|
+
* and a late admission never writes; a paste whose Enter would land past it is taken back. Not confirmed in time:
|
|
2030
|
+
* the old setup stays, a launch warning says so, the next launch tries again. A stop, pause or respawn ends it
|
|
2031
|
+
* silently, confirming and removing nothing. Never throws into the spawn.
|
|
2032
|
+
*/
|
|
2033
|
+
private ensureBackendAgent;
|
|
1944
2034
|
/**
|
|
1945
2035
|
* Startup budget for this launch: the backend's override (resume-aware), never
|
|
1946
2036
|
* below a user-configured startup_timeout_ms; undefined = trySpawn's default.
|
|
@@ -2123,3 +2213,4 @@ export declare class Daemon extends EventEmitter {
|
|
|
2123
2213
|
private handleReleaseRepo;
|
|
2124
2214
|
private buildSnapshotPrompt;
|
|
2125
2215
|
}
|
|
2216
|
+
export {};
|