@songsid/agend 2.3.0-beta.2 → 2.3.0-beta.21
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 +7 -1
- package/README.zh-TW.md +7 -1
- package/dist/agent-cli-instructions.md +9 -2
- package/dist/agent-cli.js +63 -2
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-endpoint.js +4 -0
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-file-read.d.ts +4 -1
- package/dist/agent-file-read.js +189 -16
- package/dist/agent-file-read.js.map +1 -1
- package/dist/agent-whats-new.d.ts +11 -0
- package/dist/agent-whats-new.js +29 -5
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/auth-api.d.ts +30 -1
- package/dist/auth-api.js +45 -13
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/authority-state.d.ts +38 -0
- package/dist/authority/authority-state.js +114 -0
- package/dist/authority/authority-state.js.map +1 -0
- package/dist/authority/session-authorizations.d.ts +43 -0
- package/dist/authority/session-authorizations.js +102 -0
- package/dist/authority/session-authorizations.js.map +1 -0
- package/dist/authority/web-authority.d.ts +120 -0
- package/dist/authority/web-authority.js +157 -0
- package/dist/authority/web-authority.js.map +1 -0
- package/dist/backend/claude-code.d.ts +2 -2
- package/dist/backend/claude-code.js +18 -8
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/codex-metadata.d.ts +8 -0
- package/dist/backend/codex-metadata.js +74 -17
- package/dist/backend/codex-metadata.js.map +1 -1
- package/dist/backend/codex.js +15 -2
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/credential-profile.d.ts +2 -0
- package/dist/backend/credential-profile.js +2 -0
- package/dist/backend/credential-profile.js.map +1 -1
- package/dist/backend/types.d.ts +6 -0
- package/dist/backend/types.js +15 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-availability.d.ts +120 -0
- package/dist/backend-availability.js +396 -0
- package/dist/backend-availability.js.map +1 -0
- package/dist/backend-command.d.ts +23 -3
- package/dist/backend-command.js +25 -4
- package/dist/backend-command.js.map +1 -1
- package/dist/bug-report-cli.d.ts +30 -0
- package/dist/bug-report-cli.js +138 -0
- package/dist/bug-report-cli.js.map +1 -0
- package/dist/bug-report.d.ts +47 -0
- package/dist/bug-report.js +136 -0
- package/dist/bug-report.js.map +1 -0
- package/dist/bundled-skills.d.ts +14 -0
- package/dist/bundled-skills.js +29 -0
- package/dist/bundled-skills.js.map +1 -0
- package/dist/cache-ledger.d.ts +16 -3
- package/dist/cache-ledger.js +33 -13
- package/dist/cache-ledger.js.map +1 -1
- package/dist/cache-service.d.ts +55 -3
- package/dist/cache-service.js +152 -16
- package/dist/cache-service.js.map +1 -1
- package/dist/channel/adapters/discord-client-retirement.d.ts +5 -0
- package/dist/channel/adapters/discord-client-retirement.js +57 -0
- package/dist/channel/adapters/discord-client-retirement.js.map +1 -0
- package/dist/channel/adapters/discord.d.ts +9 -0
- package/dist/channel/adapters/discord.js +49 -4
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/mcp-tools.js +22 -11
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/channel/types.d.ts +6 -0
- package/dist/classic-channel-manager.d.ts +10 -5
- package/dist/classic-channel-manager.js +12 -9
- package/dist/classic-channel-manager.js.map +1 -1
- package/dist/cli.js +224 -111
- package/dist/cli.js.map +1 -1
- package/dist/config-validator.d.ts +6 -0
- package/dist/config-validator.js +129 -3
- package/dist/config-validator.js.map +1 -1
- package/dist/config.d.ts +13 -1
- package/dist/config.js +14 -5
- package/dist/config.js.map +1 -1
- package/dist/cross-instance-notice.d.ts +7 -0
- package/dist/cross-instance-notice.js +10 -0
- package/dist/cross-instance-notice.js.map +1 -1
- package/dist/daemon.d.ts +24 -1
- package/dist/daemon.js +151 -19
- package/dist/daemon.js.map +1 -1
- package/dist/decision-list.d.ts +25 -0
- package/dist/decision-list.js +30 -0
- package/dist/decision-list.js.map +1 -0
- package/dist/delivery-outbox.d.ts +10 -0
- package/dist/delivery-outbox.js +17 -1
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/diagnostic-redaction.d.ts +10 -0
- package/dist/diagnostic-redaction.js +167 -0
- package/dist/diagnostic-redaction.js.map +1 -0
- package/dist/fleet-context.d.ts +10 -0
- package/dist/fleet-manager.d.ts +505 -15
- package/dist/fleet-manager.js +1870 -204
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-process-handlers.d.ts +18 -0
- package/dist/fleet-process-handlers.js +69 -0
- package/dist/fleet-process-handlers.js.map +1 -0
- package/dist/fleet-traffic.d.ts +74 -0
- package/dist/fleet-traffic.js +196 -0
- package/dist/fleet-traffic.js.map +1 -0
- package/dist/general-knowledge/skills/bug-report/SKILL.md +31 -0
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +17 -6
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +6 -1
- package/dist/general-knowledge/skills/fleet-config/SKILL.md +2 -0
- package/dist/general-knowledge/skills/multi-channel/SKILL.md +3 -2
- package/dist/general-knowledge/skills/persona-emoji/SKILL.md +1 -1
- package/dist/general-knowledge/skills/scheduling/SKILL.md +4 -0
- package/dist/general-knowledge/skills/web-appearance/SKILL.md +190 -47
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +545 -0
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +1 -1
- package/dist/human-delivery-receipts.d.ts +24 -1
- package/dist/human-delivery-receipts.js +64 -11
- package/dist/human-delivery-receipts.js.map +1 -1
- package/dist/instance-config-impact.js +7 -1
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +10 -1
- package/dist/instance-lifecycle.js +79 -18
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instance-names.d.ts +4 -0
- package/dist/instance-names.js +12 -0
- package/dist/instance-names.js.map +1 -0
- package/dist/instructions.d.ts +12 -1
- package/dist/instructions.js +13 -2
- package/dist/instructions.js.map +1 -1
- package/dist/locale.js +173 -12
- package/dist/locale.js.map +1 -1
- package/dist/log-steps.d.ts +1 -0
- package/dist/log-steps.js +15 -0
- package/dist/log-steps.js.map +1 -1
- package/dist/login-controller.d.ts +45 -0
- package/dist/login-controller.js +101 -5
- package/dist/login-controller.js.map +1 -1
- package/dist/ls-attach-resolve.d.ts +96 -0
- package/dist/ls-attach-resolve.js +180 -0
- package/dist/ls-attach-resolve.js.map +1 -0
- package/dist/ls-rows.d.ts +12 -0
- package/dist/ls-rows.js +82 -3
- package/dist/ls-rows.js.map +1 -1
- package/dist/memory-hogs.d.ts +27 -0
- package/dist/memory-hogs.js +124 -0
- package/dist/memory-hogs.js.map +1 -0
- package/dist/needs-you.d.ts +10 -0
- package/dist/needs-you.js +2 -1
- package/dist/needs-you.js.map +1 -1
- package/dist/outbound-handlers.d.ts +11 -0
- package/dist/outbound-handlers.js +139 -11
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +200 -4
- package/dist/outbound-schemas.js +124 -11
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/public-web-gateway.js +17 -4
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +9 -0
- package/dist/public-web-link.js +8 -0
- package/dist/public-web-link.js.map +1 -1
- package/dist/quickstart-api.d.ts +19 -1
- package/dist/quickstart-api.js +94 -4
- package/dist/quickstart-api.js.map +1 -1
- package/dist/reply-buttons-controller.d.ts +4 -0
- package/dist/reply-buttons-controller.js +2 -2
- package/dist/reply-buttons-controller.js.map +1 -1
- package/dist/restart-progress.d.ts +80 -1
- package/dist/restart-progress.js +306 -21
- package/dist/restart-progress.js.map +1 -1
- package/dist/rollout-index.d.ts +5 -0
- package/dist/rollout-index.js +26 -5
- package/dist/rollout-index.js.map +1 -1
- package/dist/scheduler/db.d.ts +40 -13
- package/dist/scheduler/db.js +123 -89
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/task-board-text.d.ts +26 -0
- package/dist/scheduler/task-board-text.js +135 -0
- package/dist/scheduler/task-board-text.js.map +1 -0
- package/dist/scheduler/task-board.d.ts +650 -0
- package/dist/scheduler/task-board.js +1938 -0
- package/dist/scheduler/task-board.js.map +1 -0
- package/dist/scheduler/types.d.ts +6 -1
- package/dist/search/search-docs.d.ts +58 -0
- package/dist/search/search-docs.js +63 -0
- package/dist/search/search-docs.js.map +1 -0
- package/dist/search/search-index.d.ts +141 -0
- package/dist/search/search-index.js +440 -0
- package/dist/search/search-index.js.map +1 -0
- package/dist/search/search-store.d.ts +122 -0
- package/dist/search/search-store.js +236 -0
- package/dist/search/search-store.js.map +1 -0
- package/dist/search/search-worker.d.ts +1 -0
- package/dist/search/search-worker.js +163 -0
- package/dist/search/search-worker.js.map +1 -0
- package/dist/service-installer.js +12 -0
- package/dist/service-installer.js.map +1 -1
- package/dist/settings-api.d.ts +23 -0
- package/dist/settings-api.js +164 -3
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.js +104 -0
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-confirmation.d.ts +3 -1
- package/dist/settings-confirmation.js +2 -0
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.js +34 -3
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +11 -0
- package/dist/settings-http-confirmation.js +10 -0
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/setup-form.d.ts +1 -1
- package/dist/setup-form.js +23 -7
- package/dist/setup-form.js.map +1 -1
- package/dist/spawn-gate.d.ts +1 -0
- package/dist/spawn-gate.js +13 -3
- package/dist/spawn-gate.js.map +1 -1
- package/dist/task-board-tool.d.ts +25 -0
- package/dist/task-board-tool.js +154 -0
- package/dist/task-board-tool.js.map +1 -0
- package/dist/task-board-waker.d.ts +44 -0
- package/dist/task-board-waker.js +128 -0
- package/dist/task-board-waker.js.map +1 -0
- package/dist/tmux-exec-helper.d.ts +94 -0
- package/dist/tmux-exec-helper.js +407 -0
- package/dist/tmux-exec-helper.js.map +1 -0
- package/dist/tmux-manager.d.ts +5 -0
- package/dist/tmux-manager.js +42 -11
- package/dist/tmux-manager.js.map +1 -1
- package/dist/tool-permissions.d.ts +0 -7
- package/dist/tool-permissions.js +44 -5
- package/dist/tool-permissions.js.map +1 -1
- package/dist/topic-commands.d.ts +17 -1
- package/dist/topic-commands.js +45 -19
- package/dist/topic-commands.js.map +1 -1
- package/dist/tunnel/cloudflared.js +37 -2
- package/dist/tunnel/cloudflared.js.map +1 -1
- package/dist/tunnel/types.d.ts +3 -1
- package/dist/tunnel/types.js.map +1 -1
- package/dist/types.d.ts +63 -1
- package/dist/ui/app-effects.js +90 -32
- package/dist/ui/backend-signin.js +297 -0
- package/dist/ui/chat-ambient.js +307 -0
- package/dist/ui/chat-effect-posters.js +8 -8
- package/dist/ui/chat-effects.js +110 -15
- package/dist/ui/chat-msg-actions.js +176 -0
- package/dist/ui/chat-render.js +21 -3
- package/dist/ui/chat-store.js +64 -12
- package/dist/ui/chat-strings.js +85 -8
- package/dist/ui/chat-thread.js +204 -21
- package/dist/ui/effect-trial-controller.js +13 -8
- package/dist/ui/effect-trial-panel.js +19 -16
- package/dist/ui/effects-waker.js +70 -0
- package/dist/ui/fleet-canvas-layout.js +117 -0
- package/dist/ui/fleet-canvas.js +555 -0
- package/dist/ui/fleet-org.js +27 -12
- package/dist/ui/fleet-route-scene.js +207 -0
- package/dist/ui/fleet-route-worker.js +21 -0
- package/dist/ui/fleet-route.js +88 -0
- package/dist/ui/fleet-task-card.js +436 -0
- package/dist/ui/fleet-task-common.js +448 -0
- package/dist/ui/fleet-tasks.js +535 -0
- package/dist/ui/fleet-traffic.js +359 -0
- package/dist/ui/fleet-usage.js +435 -0
- package/dist/ui/panel-chat.js +264 -66
- package/dist/ui/panel-details.js +2 -1
- package/dist/ui/panel-fleet.js +65 -83
- package/dist/ui/panel-needs.js +4 -2
- package/dist/ui/panel-settings.js +56 -11
- package/dist/ui/preview.js +3 -2
- package/dist/ui/search-dialog.js +349 -0
- package/dist/ui/settings-appearance.js +44 -19
- package/dist/ui/settings-apply.js +3 -3
- package/dist/ui/settings-catalog.js +92 -0
- package/dist/ui/settings-confirm.js +7 -2
- package/dist/ui/settings-dialogs.js +40 -12
- package/dist/ui/settings-effects.js +4 -3
- package/dist/ui/settings-guests.js +117 -0
- package/dist/ui/settings-learn.js +25 -0
- package/dist/ui/settings-model.js +15 -6
- package/dist/ui/settings-mods.js +23 -9
- package/dist/ui/settings-owner-effects.js +15 -13
- package/dist/ui/settings-strings.js +122 -42
- package/dist/ui/settings-web-authority.js +91 -0
- package/dist/ui/shared/agend-auth.js +1 -1
- package/dist/ui/shared/app-i18n.js +11 -2
- package/dist/ui/shared/app-prefs.js +17 -4
- package/dist/ui/shared/app-route.js +19 -1
- package/dist/ui/shared/app-session.js +2 -0
- package/dist/ui/shared/app-shell.js +174 -30
- package/dist/ui/shared/app-store.js +26 -1
- package/dist/ui/shared/app-stream.js +5 -1
- package/dist/ui/shared/app-themes.js +140 -7
- package/dist/ui/shared/app.css +705 -20
- package/dist/ui/shared/app.js +26 -15
- package/dist/ui/shared/card-strings.js +8 -0
- package/dist/ui/shared/effect-app-runtime.js +68 -19
- package/dist/ui/shared/effect-chat-runtime.js +16 -3
- package/dist/ui/shared/effect-frame.js +26 -7
- package/dist/ui/shared/effect-geometry.js +24 -9
- package/dist/ui/shared/effect-owner-source.js +8 -1
- package/dist/ui/shared/effect-policy.js +21 -7
- package/dist/ui/shared/effect-profiler.js +31 -9
- package/dist/ui/shared/effect-registry.js +97 -50
- package/dist/ui/shared/effect-stock-snapshot.js +9 -0
- package/dist/ui/shared/effect-stock-trust.js +62 -10
- package/dist/ui/shared/effect-trial-shadow.js +62 -0
- package/dist/ui/shared/effect-trial-source.js +1 -1
- package/dist/ui/shared/effect-trial-stage.js +54 -31
- package/dist/ui/shared/effect-trial.css +40 -0
- package/dist/ui/shared/fx-motion.js +67 -0
- package/dist/ui/shared/identity-card.js +100 -11
- package/dist/ui/shared/identity-color.js +14 -10
- package/dist/ui/shared/instance-nav.js +179 -23
- package/dist/ui/shared/owner-css.js +30 -1
- package/dist/ui/shared/panel-view.js +24 -4
- package/dist/ui/shared/tokens.css +9 -3
- package/dist/ui/shared/ui-icons.js +2 -0
- package/dist/ui/shared/ui-menu.js +20 -7
- package/dist/ui/shared/ui-toast.js +16 -3
- package/dist/ui/shared/usage-dialog.js +34 -3
- package/dist/ui/shared/view-strings.js +72 -0
- package/dist/ui/shared/web-authorize.js +198 -0
- package/dist/ui/web-terminal/terminal.css +4 -4
- package/dist/ui/web-terminal/terminal.html +1 -1
- package/dist/update-launch.d.ts +9 -0
- package/dist/update-launch.js +38 -12
- package/dist/update-launch.js.map +1 -1
- package/dist/usage/format-rich.js +6 -3
- package/dist/usage/format-rich.js.map +1 -1
- package/dist/usage/i18n-keys.d.ts +1 -1
- package/dist/usage/i18n-keys.js +2 -1
- package/dist/usage/i18n-keys.js.map +1 -1
- package/dist/usage/i18n.d.ts +13 -1
- package/dist/usage/i18n.js +29 -0
- package/dist/usage/i18n.js.map +1 -1
- package/dist/usage/providers.d.ts +81 -2
- package/dist/usage/providers.js +240 -38
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/usage-api.d.ts +5 -1
- package/dist/usage/usage-api.js +184 -58
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/usage-report.d.ts +158 -0
- package/dist/usage-report.js +226 -0
- package/dist/usage-report.js.map +1 -0
- package/dist/usage-rollup.d.ts +51 -0
- package/dist/usage-rollup.js +168 -0
- package/dist/usage-rollup.js.map +1 -0
- package/dist/user-systemd.d.ts +24 -0
- package/dist/user-systemd.js +75 -0
- package/dist/user-systemd.js.map +1 -0
- package/dist/view-api.d.ts +39 -0
- package/dist/view-api.js +69 -6
- package/dist/view-api.js.map +1 -1
- package/dist/web-ambient.d.ts +72 -0
- package/dist/web-ambient.js +161 -0
- package/dist/web-ambient.js.map +1 -0
- package/dist/web-api.d.ts +98 -14
- package/dist/web-api.js +1027 -83
- package/dist/web-api.js.map +1 -1
- package/dist/web-appearance-policy.d.ts +4 -6
- package/dist/web-appearance-policy.js +5 -12
- package/dist/web-appearance-policy.js.map +1 -1
- package/dist/web-appearance-tools.d.ts +3 -0
- package/dist/web-appearance-tools.js +22 -3
- package/dist/web-appearance-tools.js.map +1 -1
- package/dist/web-appearance-view.d.ts +27 -2
- package/dist/web-appearance-view.js +129 -14
- package/dist/web-appearance-view.js.map +1 -1
- package/dist/web-appearance.d.ts +17 -3
- package/dist/web-appearance.js +85 -8
- package/dist/web-appearance.js.map +1 -1
- package/dist/web-asset-parts.d.ts +2 -2
- package/dist/web-asset-parts.js +3 -3
- package/dist/web-asset-parts.js.map +1 -1
- package/dist/web-auth.js +3 -1
- package/dist/web-auth.js.map +1 -1
- package/dist/web-backend-login.d.ts +130 -0
- package/dist/web-backend-login.js +225 -0
- package/dist/web-backend-login.js.map +1 -0
- package/dist/web-card.d.ts +14 -0
- package/dist/web-card.js +40 -6
- package/dist/web-card.js.map +1 -1
- package/dist/web-channel-echo.d.ts +7 -1
- package/dist/web-channel-echo.js +6 -2
- package/dist/web-channel-echo.js.map +1 -1
- package/dist/web-chat-history.d.ts +83 -0
- package/dist/web-chat-history.js +137 -5
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-commands.d.ts +6 -1
- package/dist/web-commands.js +1 -1
- package/dist/web-commands.js.map +1 -1
- package/dist/web-effect-bootstrap.d.ts +12 -0
- package/dist/web-effect-bootstrap.js +49 -0
- package/dist/web-effect-bootstrap.js.map +1 -0
- package/dist/web-effect-bundle.js +46 -1
- package/dist/web-effect-bundle.js.map +1 -1
- package/dist/web-effect-playback.d.ts +30 -0
- package/dist/web-effect-playback.js +71 -0
- package/dist/web-effect-playback.js.map +1 -0
- package/dist/web-effect-profiles.d.ts +4 -4
- package/dist/web-effect-service.d.ts +11 -4
- package/dist/web-effect-service.js +25 -4
- package/dist/web-effect-service.js.map +1 -1
- package/dist/web-effect-tools.d.ts +1 -0
- package/dist/web-effect-tools.js +4 -4
- package/dist/web-effect-tools.js.map +1 -1
- package/dist/web-effect-trials.d.ts +2 -2
- package/dist/web-effect-trials.js +3 -3
- package/dist/web-effect-trials.js.map +1 -1
- package/dist/web-effect-upload.js +1 -1
- package/dist/web-effect-upload.js.map +1 -1
- package/dist/web-effect-worker.d.ts +1 -1
- package/dist/web-effect-worker.js +2 -2
- package/dist/web-effect-worker.js.map +1 -1
- package/dist/web-effect.d.ts +1 -1
- package/dist/web-guest-access.d.ts +126 -0
- package/dist/web-guest-access.js +238 -0
- package/dist/web-guest-access.js.map +1 -0
- package/dist/web-guest-rooms.d.ts +82 -0
- package/dist/web-guest-rooms.js +135 -0
- package/dist/web-guest-rooms.js.map +1 -0
- package/dist/web-host-guard.d.ts +11 -0
- package/dist/web-host-guard.js +11 -0
- package/dist/web-host-guard.js.map +1 -1
- package/dist/web-identity-color.d.ts +1 -1
- package/dist/web-identity-color.js +2 -2
- package/dist/web-identity-color.js.map +1 -1
- package/dist/web-identity-palette.d.ts +1 -1
- package/dist/web-identity-palette.js +2 -2
- package/dist/web-identity-palette.js.map +1 -1
- package/dist/web-image-meta.d.ts +13 -0
- package/dist/web-image-meta.js +62 -0
- package/dist/web-image-meta.js.map +1 -1
- package/dist/web-libavoid.d.ts +14 -0
- package/dist/web-libavoid.js +46 -0
- package/dist/web-libavoid.js.map +1 -0
- package/dist/web-login.d.ts +47 -0
- package/dist/web-login.js +115 -0
- package/dist/web-login.js.map +1 -1
- package/dist/web-mod-agent.d.ts +1 -1
- package/dist/web-mod-agent.js +7 -5
- package/dist/web-mod-agent.js.map +1 -1
- package/dist/web-mod-bundle.d.ts +9 -1
- package/dist/web-mod-bundle.js +62 -3
- package/dist/web-mod-bundle.js.map +1 -1
- package/dist/web-mod-export.d.ts +9 -0
- package/dist/web-mod-export.js +21 -0
- package/dist/web-mod-export.js.map +1 -1
- package/dist/web-mod-store.d.ts +7 -1
- package/dist/web-mod-store.js +19 -6
- package/dist/web-mod-store.js.map +1 -1
- package/dist/web-owner-css-store.d.ts +44 -1
- package/dist/web-owner-css-store.js +70 -9
- package/dist/web-owner-css-store.js.map +1 -1
- package/dist/web-prefs.d.ts +14 -0
- package/dist/web-prefs.js +37 -4
- package/dist/web-prefs.js.map +1 -1
- package/dist/web-preview.d.ts +6 -2
- package/dist/web-preview.js +4 -2
- package/dist/web-preview.js.map +1 -1
- package/dist/web-returning-device.d.ts +41 -0
- package/dist/web-returning-device.js +57 -5
- package/dist/web-returning-device.js.map +1 -1
- package/dist/web-session-authorization.d.ts +132 -0
- package/dist/web-session-authorization.js +193 -0
- package/dist/web-session-authorization.js.map +1 -0
- package/dist/web-session.d.ts +70 -10
- package/dist/web-session.js +137 -22
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +49 -2
- package/dist/web-settings-patch.js +145 -1
- package/dist/web-settings-patch.js.map +1 -1
- package/dist/web-settings-tools.d.ts +94 -0
- package/dist/web-settings-tools.js +301 -0
- package/dist/web-settings-tools.js.map +1 -0
- package/dist/web-shell-routes.d.ts +1 -1
- package/dist/web-shell-routes.js +1 -1
- package/dist/web-shell-routes.js.map +1 -1
- package/dist/web-terminal-http.js +15 -2
- package/dist/web-terminal-http.js.map +1 -1
- package/dist/web-theme-store.d.ts +39 -0
- package/dist/web-theme-store.js +122 -11
- package/dist/web-theme-store.js.map +1 -1
- package/dist/web-theme.d.ts +31 -0
- package/dist/web-theme.js +99 -2
- package/dist/web-theme.js.map +1 -1
- package/dist/web-upload.d.ts +13 -0
- package/dist/web-upload.js +39 -3
- package/dist/web-upload.js.map +1 -1
- package/dist/windows-shortcuts.d.ts +78 -0
- package/dist/windows-shortcuts.js +203 -0
- package/dist/windows-shortcuts.js.map +1 -0
- package/dist/workflow-templates/default.md +4 -1
- package/dist/yaml-shared-nodes.d.ts +25 -0
- package/dist/yaml-shared-nodes.js +185 -0
- package/dist/yaml-shared-nodes.js.map +1 -0
- package/launcher/agend-install.cjs +553 -0
- package/launcher/install-admission.cjs +4 -39
- package/launcher/postinstall.cjs +14 -12
- package/package.json +4 -2
- package/scripts/preinstall-guard.cjs +2 -5
- package/templates/windows-shortcuts.ps1 +181 -0
- package/launcher/old-updater-note.cjs +0 -48
package/dist/web-api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type HumanOrigin } from "./human-delivery-receipts.js";
|
|
2
|
+
import { type HumanAuthority, type WebAuthorityResult, type WebPeer } from "./authority/web-authority.js";
|
|
2
3
|
import type { CachedImage } from "./web-images.js";
|
|
3
4
|
import type { SettingsExecution } from "./settings-transaction.js";
|
|
4
5
|
import type { PaneContextSource } from "./pane-context-cache.js";
|
|
@@ -10,20 +11,20 @@ import type { WebAppearance } from "./web-appearance.js";
|
|
|
10
11
|
import type { SendOpts } from "./channel/types.js";
|
|
11
12
|
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
12
13
|
import type { LifecycleCreateArgs } from "./instance-lifecycle.js";
|
|
14
|
+
import { type Actor as BoardActor, type TaskBoard } from "./scheduler/task-board.js";
|
|
13
15
|
import { type PreviewAvailability } from "./web-preview.js";
|
|
14
|
-
import { type WebChatHistory } from "./web-chat-history.js";
|
|
16
|
+
import { type WebChatHistory, type WebChatMessage } from "./web-chat-history.js";
|
|
15
17
|
import { type WebFileLedger } from "./web-upload.js";
|
|
16
|
-
import type { WebSessionStore } from "./web-session.js";
|
|
18
|
+
import type { WebSessionStore, SessionRecord } from "./web-session.js";
|
|
17
19
|
import { type WebPrefsStore } from "./web-prefs.js";
|
|
18
20
|
import { type WebAccount } from "./web-profile.js";
|
|
19
21
|
import { type MentionNames, type MentionQuery } from "./web-mentions.js";
|
|
20
22
|
import type { ExplicitInstanceRemoval } from "./instance-removal.js";
|
|
21
23
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* the eviction the dead entry leaks forever, and without the try/catch a
|
|
25
|
-
* single dead client breaks delivery to every client iterated after it.
|
|
24
|
+
* #1920 §5.2: one event for the guests' streams only, each as projected for it — a message that has just become what
|
|
25
|
+
* its channel saw (an admin's page already has it, unchanged).
|
|
26
26
|
*/
|
|
27
|
+
export declare function broadcastToGuests(clients: Set<ServerResponse>, event: string, data: unknown, onError?: (err: unknown) => void): void;
|
|
27
28
|
export declare function broadcastSseEvent(clients: Set<ServerResponse>, event: string, data: unknown, onError?: (err: unknown) => void, id?: string): void;
|
|
28
29
|
/** One SSE frame; `id` (a chat message's) lets a reconnecting EventSource say what it last saw. */
|
|
29
30
|
export declare function sseFrame(event: string, data: unknown, id?: string): string;
|
|
@@ -32,8 +33,20 @@ export declare const SSE_HEARTBEAT_MS = 10000;
|
|
|
32
33
|
/** Minimal interface — only what web-api needs from FleetManager. */
|
|
33
34
|
export interface WebApiContext {
|
|
34
35
|
readonly webToken: string | null;
|
|
36
|
+
/** #2072: what this host can run (the published snapshot); absent in a hand-built context. */
|
|
37
|
+
backendAvailabilityRows?(): import("./backend-availability.js").BackendAvailability[];
|
|
38
|
+
/** #2072: a backend's cached model catalog, for an instance's own account when one is named; never a probe. */
|
|
39
|
+
modelCatalogFor?(backend: string, instance: string | null): Array<{
|
|
40
|
+
id: string;
|
|
41
|
+
label: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
}>;
|
|
35
44
|
/** Absent in a hand-built context: cookies are then simply not a credential, the header token still is. */
|
|
36
45
|
readonly webSessions?: WebSessionStore | null;
|
|
46
|
+
/** #2233: dashboard-started backend sign-ins (FleetManager); absent in a hand-built context. */
|
|
47
|
+
readonly webBackendLogins?: import("./web-backend-login.js").WebBackendLogins;
|
|
48
|
+
/** #2233: Settings → Agents' sign-in list (FleetManager.backendSignInTargets). */
|
|
49
|
+
backendSignInTargets?(): import("./web-backend-login.js").SignInTarget[];
|
|
37
50
|
readonly dataDir: string;
|
|
38
51
|
readonly sseClients: Set<ServerResponse>;
|
|
39
52
|
readonly fleetConfig: {
|
|
@@ -41,11 +54,16 @@ export interface WebApiContext {
|
|
|
41
54
|
group_id?: number | string;
|
|
42
55
|
mode?: string;
|
|
43
56
|
};
|
|
57
|
+
health_port?: number;
|
|
44
58
|
web?: {
|
|
45
59
|
echo_to_channel?: boolean;
|
|
46
60
|
usage_panel?: boolean;
|
|
61
|
+
usage_report_on_public_link?: boolean;
|
|
47
62
|
upload_max_file_mb?: number;
|
|
48
63
|
upload_max_total_mb?: number;
|
|
64
|
+
search?: {
|
|
65
|
+
enabled?: boolean;
|
|
66
|
+
};
|
|
49
67
|
};
|
|
50
68
|
defaults?: {
|
|
51
69
|
backend?: string;
|
|
@@ -113,13 +131,20 @@ export interface WebApiContext {
|
|
|
113
131
|
* many channels were posted to. Never rejects the web send on failure.
|
|
114
132
|
*/
|
|
115
133
|
sendClassicWebEcho?(instance: string, text: string, sender?: string): Promise<number>;
|
|
134
|
+
/** #1920 §5.2: a web message's channel copy was sent — guests of that channel may see it now. */
|
|
135
|
+
webMessageInChannel?(instance: string, messageId: string): void;
|
|
116
136
|
/** false: definitely not delivered (the instance's IPC is gone, or it was restarted meanwhile). */
|
|
117
|
-
deliverToInstance(instanceName: string, payload: Record<string, unknown
|
|
118
|
-
|
|
137
|
+
deliverToInstance(instanceName: string, payload: Record<string, unknown>, options?: {
|
|
138
|
+
stillCurrent?: () => boolean;
|
|
139
|
+
}): Promise<boolean | void>;
|
|
140
|
+
deliverHumanToInstance?(instanceName: string, payload: Record<string, unknown>, origin: HumanOrigin, originalBody: string, options?: {
|
|
141
|
+
stillCurrent?: () => boolean;
|
|
142
|
+
}): Promise<boolean | void>;
|
|
119
143
|
getUiStatus(): unknown;
|
|
120
144
|
/** Current owned pane reader shared with status; absent means context is unavailable. */
|
|
121
145
|
getPaneContextSource?(name: string): PaneContextSource | null;
|
|
122
146
|
/** #1306: which preview origin this /ui load may frame (Host and the TLS signal only); absent: previews off. */
|
|
147
|
+
readonly effectBoot?: string;
|
|
123
148
|
previewForUi?(hostHeader: string | undefined, secure: boolean): PreviewAvailability & {
|
|
124
149
|
boot: string | null;
|
|
125
150
|
};
|
|
@@ -128,6 +153,10 @@ export interface WebApiContext {
|
|
|
128
153
|
emitSseEvent(event: string, data: unknown): void;
|
|
129
154
|
/** The web chat's recent messages (history + SSE replay); absent in contexts that have no chat. */
|
|
130
155
|
readonly webChatHistory?: WebChatHistory;
|
|
156
|
+
/** #2293: the global search index (null or absent: off — web.search.enabled false — or not started). */
|
|
157
|
+
readonly searchIndex?: Pick<import("./search/search-index.js").SearchIndex, "query" | "context" | "status"> | null;
|
|
158
|
+
/** #2293: whose cross-instance messages search leaves out now (cross_instance_visibility "hidden"; see searchVisibility). */
|
|
159
|
+
searchVisibility?(): import("./search/search-docs.js").XmsgVisibility;
|
|
131
160
|
/** Uploads and the files the dashboard may fetch back (web track C2); absent: no file routes. */
|
|
132
161
|
readonly webFiles?: WebFileLedger;
|
|
133
162
|
/** #1630: a cached avatar (an own bot's, or the picture uploaded in View) — never a fetch; null when there is none. */
|
|
@@ -177,10 +206,21 @@ export interface WebApiContext {
|
|
|
177
206
|
needsYouItems?(): unknown[];
|
|
178
207
|
/** #1389: the org chart's structure (fleet.yaml's teams, General, descriptions, thread links); absent: an empty chart. */
|
|
179
208
|
orgChart?(): unknown;
|
|
209
|
+
/** #1918: in-flight and recently finished cross-instance traffic, bounded (fleet-traffic.ts). */
|
|
210
|
+
trafficSnapshot?(): {
|
|
211
|
+
now: string;
|
|
212
|
+
items: unknown[];
|
|
213
|
+
delegations?: unknown[];
|
|
214
|
+
};
|
|
180
215
|
/** #1218: an instance's Log steps, read on demand (null: no such instance; `{ enabled: false }`: the Log is off). */
|
|
181
216
|
logSteps?(name: string, q: import("./log-service.js").LogQuery): Promise<unknown>;
|
|
182
217
|
/** #1468: the prompt-cache expiry analysis for a window ("24h" | "7d" | "30d"); absent: not offered. */
|
|
183
218
|
cacheReport?(window: string): Promise<unknown>;
|
|
219
|
+
/** #2122: the usage report (Fleet → Usage); absent: not offered. */
|
|
220
|
+
usageReport?(params: {
|
|
221
|
+
range: import("./usage-report.js").UsageRange;
|
|
222
|
+
group: import("./usage-report.js").UsageGroup;
|
|
223
|
+
}): Promise<unknown>;
|
|
184
224
|
/** #1269: an instance's chat command from the web chat (web-commands.ts); absent: not offered. */
|
|
185
225
|
webCommand?(input: {
|
|
186
226
|
instance: string;
|
|
@@ -190,10 +230,41 @@ export interface WebApiContext {
|
|
|
190
230
|
}, opts: {
|
|
191
231
|
publicLink: boolean;
|
|
192
232
|
person?: WebPerson;
|
|
233
|
+
authority?: HumanAuthority;
|
|
193
234
|
}): Promise<{
|
|
194
235
|
status: number;
|
|
195
236
|
body: unknown;
|
|
196
237
|
}>;
|
|
238
|
+
/** #1939 S2b: "Authorize this browser" — the Confirm card in the account's DM; and what the app shows for this browser. */
|
|
239
|
+
requestSessionAuthorization?(input: {
|
|
240
|
+
session: SessionRecord | null;
|
|
241
|
+
gateway: boolean;
|
|
242
|
+
peer: WebPeer;
|
|
243
|
+
}): Promise<{
|
|
244
|
+
ok: true;
|
|
245
|
+
expiresInMs: number;
|
|
246
|
+
} | {
|
|
247
|
+
ok: false;
|
|
248
|
+
refusal: string;
|
|
249
|
+
retryAfterMs?: number;
|
|
250
|
+
}>;
|
|
251
|
+
webSessionAuthorization?(input: {
|
|
252
|
+
session: SessionRecord | null;
|
|
253
|
+
gateway: boolean;
|
|
254
|
+
peer: WebPeer;
|
|
255
|
+
}): {
|
|
256
|
+
state: string;
|
|
257
|
+
until?: number;
|
|
258
|
+
expiresInMs?: number;
|
|
259
|
+
reason?: string;
|
|
260
|
+
};
|
|
261
|
+
/** #1939 S1: the design's §3 for one request (`instance` once the body names it); absent: web carries no authority. */
|
|
262
|
+
webAuthority?(input: {
|
|
263
|
+
session: SessionRecord | null;
|
|
264
|
+
gateway: boolean;
|
|
265
|
+
peer: WebPeer;
|
|
266
|
+
instance?: string;
|
|
267
|
+
}): WebAuthorityResult;
|
|
197
268
|
/**
|
|
198
269
|
* #1827: a web person — for the account a session is bound to (none: the operator) — as agents and chats see them.
|
|
199
270
|
* Absent: everyone is "web-user", as before.
|
|
@@ -223,6 +294,8 @@ export interface WebApiContext {
|
|
|
223
294
|
key: string;
|
|
224
295
|
userId: string;
|
|
225
296
|
name: string;
|
|
297
|
+
guest?: true;
|
|
298
|
+
authority?: HumanAuthority;
|
|
226
299
|
}): Promise<{
|
|
227
300
|
status: number;
|
|
228
301
|
error?: string;
|
|
@@ -267,10 +340,12 @@ export interface WebApiContext {
|
|
|
267
340
|
priority?: string;
|
|
268
341
|
assignee?: string;
|
|
269
342
|
created_by: string;
|
|
270
|
-
}): unknown;
|
|
271
|
-
updateTask(id: string, params: Record<string, unknown
|
|
272
|
-
claimTask(id: string, assignee: string): unknown;
|
|
273
|
-
completeTask(id: string, result?: string): unknown;
|
|
343
|
+
}, by?: BoardActor): unknown;
|
|
344
|
+
updateTask(id: string, params: Record<string, unknown>, by?: BoardActor): unknown;
|
|
345
|
+
claimTask(id: string, assignee: string, by?: BoardActor): unknown;
|
|
346
|
+
completeTask(id: string, result?: string, by?: BoardActor): unknown;
|
|
347
|
+
/** The task board on the same table (scheduler/task-board.ts); absent in a hand-built context. */
|
|
348
|
+
board?: TaskBoard;
|
|
274
349
|
};
|
|
275
350
|
list(target?: string): unknown[];
|
|
276
351
|
create(params: unknown): unknown;
|
|
@@ -310,10 +385,12 @@ export interface WebPerson {
|
|
|
310
385
|
/** Their account's name at sign-in, made safe (bound only). */
|
|
311
386
|
readonly platformName?: string;
|
|
312
387
|
}
|
|
388
|
+
export declare function handleWebRequest(req: IncomingMessage, res: ServerResponse, url: URL, ctx: WebApiContext): boolean;
|
|
313
389
|
/**
|
|
314
|
-
*
|
|
390
|
+
* #2272: the line a web reply's channel copy opens with — the quoted sender and first words when that message reached
|
|
391
|
+
* the channel (its members saw it); a web-only one is only named, never copied out to the channel.
|
|
315
392
|
*/
|
|
316
|
-
export declare function
|
|
393
|
+
export declare function webReplyEchoLine(quoted: WebChatMessage): string;
|
|
317
394
|
/**
|
|
318
395
|
* #1723: a public-link page's preview: where it may frame from (`frameSrc` — the quick-tunnel wildcard while its own
|
|
319
396
|
* preview tunnel is starting or up, the exact origin for a configured web.preview_origin, null for none) and, once
|
|
@@ -325,6 +402,8 @@ export type PublicPreviewForUi = PreviewAvailability & {
|
|
|
325
402
|
detail?: string;
|
|
326
403
|
};
|
|
327
404
|
export interface AppShellContext {
|
|
405
|
+
/** #2118: independent trusted opaque effect document, never HTML-preview consent or listener state. */
|
|
406
|
+
readonly effectBoot?: string;
|
|
328
407
|
previewForUi?(hostHeader: string | undefined, secure: boolean): (PreviewAvailability & {
|
|
329
408
|
boot: string | null;
|
|
330
409
|
}) | null;
|
|
@@ -344,6 +423,11 @@ export interface AppShellContext {
|
|
|
344
423
|
readonly ownerCss?: OwnerCssStore;
|
|
345
424
|
readonly webToken?: string | null;
|
|
346
425
|
readonly webSessions?: WebApiContext["webSessions"];
|
|
426
|
+
/** #1920 phase 3: a guest's page says who it is signed in as (its web name and platform), for its "Guest" chip. */
|
|
427
|
+
guestBadge?(owner: WebAccount): {
|
|
428
|
+
name: string;
|
|
429
|
+
platform: string;
|
|
430
|
+
};
|
|
347
431
|
}
|
|
348
432
|
export type AppShellMode = "full" | "view-only";
|
|
349
433
|
/** The app shell page for one entry, under the panels' CSP; it may frame exactly <preview origin>/frame, and only
|