@songsid/agend 2.3.5-alpha.8 → 2.3.5-beta.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 +0 -2
- package/README.zh-TW.md +0 -2
- package/THIRD_PARTY_NOTICES.md +0 -67
- package/dist/agent-cli-instructions.md +1 -1
- package/dist/agent-cli.js +5 -2
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-endpoint.d.ts +1 -5
- package/dist/agent-endpoint.js +2 -12
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-file-read.js +1 -1
- package/dist/agent-file-read.js.map +1 -1
- package/dist/agent-whats-new.js +4 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/apply-job.d.ts +0 -5
- package/dist/apply-job.js +3 -10
- package/dist/apply-job.js.map +1 -1
- package/dist/auth-api.d.ts +0 -48
- package/dist/auth-api.js +9 -290
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/web-authority.d.ts +2 -25
- package/dist/authority/web-authority.js +4 -37
- package/dist/authority/web-authority.js.map +1 -1
- package/dist/backend/claude-code.d.ts +13 -15
- package/dist/backend/claude-code.js +141 -152
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/codex-footer-hints.d.ts +0 -3
- package/dist/backend/codex-footer-hints.js +0 -14
- package/dist/backend/codex-footer-hints.js.map +1 -1
- package/dist/backend/codex-package.d.ts +2 -5
- package/dist/backend/codex-package.js +5 -1
- package/dist/backend/codex-package.js.map +1 -1
- package/dist/backend/codex-quota-history.js +19 -4
- package/dist/backend/codex-quota-history.js.map +1 -1
- package/dist/backend/codex.d.ts +115 -142
- package/dist/backend/codex.js +1094 -1188
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/grok.d.ts +0 -2
- package/dist/backend/grok.js +0 -22
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/kiro.js +1 -1
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/types.d.ts +4 -7
- package/dist/backend/types.js.map +1 -1
- package/dist/bundled-tmux-guard.d.ts +2 -0
- package/dist/bundled-tmux-guard.js +23 -10
- package/dist/bundled-tmux-guard.js.map +1 -1
- package/dist/channel/ipc-bridge.d.ts +0 -2
- package/dist/channel/mcp-tools.js +4 -4
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/classic-bindings.d.ts +0 -13
- package/dist/classic-bindings.js +2 -28
- package/dist/classic-bindings.js.map +1 -1
- package/dist/claude-model-minimum.d.ts +7 -0
- package/dist/claude-model-minimum.js +16 -0
- package/dist/claude-model-minimum.js.map +1 -0
- package/dist/cli.js +39 -241
- package/dist/cli.js.map +1 -1
- package/dist/config-validator.js +2 -74
- package/dist/config-validator.js.map +1 -1
- package/dist/config.js +0 -16
- package/dist/config.js.map +1 -1
- package/dist/daemon.d.ts +50 -100
- package/dist/daemon.js +451 -997
- package/dist/daemon.js.map +1 -1
- package/dist/decision-list.d.ts +2 -0
- package/dist/decision-list.js +1 -1
- package/dist/decision-list.js.map +1 -1
- package/dist/delivery-consumed-watch.d.ts +3 -15
- package/dist/delivery-consumed-watch.js +1 -23
- package/dist/delivery-consumed-watch.js.map +1 -1
- package/dist/delivery-outbox.d.ts +0 -5
- package/dist/delivery-outbox.js +4 -32
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/delivery-reconciliation.d.ts +42 -2
- package/dist/delivery-reconciliation.js +164 -2
- package/dist/delivery-reconciliation.js.map +1 -1
- package/dist/doctor.js +9 -19
- package/dist/doctor.js.map +1 -1
- package/dist/e2e-isolation.js +2 -5
- package/dist/e2e-isolation.js.map +1 -1
- package/dist/fleet-context.d.ts +2 -2
- package/dist/fleet-control-audit.d.ts +1 -1
- package/dist/fleet-level-config.d.ts +1 -1
- package/dist/fleet-level-config.js +0 -2
- package/dist/fleet-level-config.js.map +1 -1
- package/dist/fleet-manager.d.ts +31 -706
- package/dist/fleet-manager.js +377 -4062
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-instance.d.ts +0 -7
- package/dist/general-instance.js +3 -20
- package/dist/general-instance.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +36 -72
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +2 -15
- package/dist/general-knowledge/skills/delegation-playbook/SKILL.md +4 -1
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +2 -2
- package/dist/general-knowledge/skills/session-management/SKILL.md +1 -1
- package/dist/general-knowledge/skills/tui-effort/SKILL.md +10 -10
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +13 -23
- package/dist/general-knowledge/steering/core-rules.md +2 -2
- package/dist/instance-config-impact.js +0 -5
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +6 -39
- package/dist/instance-lifecycle.js +179 -429
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.d.ts +0 -2
- package/dist/instructions.js +0 -6
- package/dist/instructions.js.map +1 -1
- package/dist/locale.js +12 -180
- package/dist/locale.js.map +1 -1
- package/dist/login-controller.d.ts +1 -14
- package/dist/login-controller.js +1 -31
- package/dist/login-controller.js.map +1 -1
- package/dist/login-flows.d.ts +7 -8
- package/dist/login-flows.js +3 -28
- package/dist/login-flows.js.map +1 -1
- package/dist/login-window-lock.d.ts +1 -2
- package/dist/login-window-lock.js.map +1 -1
- package/dist/ls-rows.d.ts +1 -1
- package/dist/ls-rows.js +4 -3
- package/dist/ls-rows.js.map +1 -1
- package/dist/needs-you-hub.d.ts +0 -8
- package/dist/needs-you-hub.js +3 -29
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +2 -78
- package/dist/needs-you.js +2 -45
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +3 -3
- package/dist/office-share-page.js.map +1 -1
- package/dist/office-share.d.ts +0 -11
- package/dist/office-share.js +0 -14
- package/dist/office-share.js.map +1 -1
- package/dist/outbound-handlers.d.ts +2 -30
- package/dist/outbound-handlers.js +4 -109
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +3 -71
- package/dist/outbound-schemas.js +18 -38
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/pane-quota-history.d.ts +0 -2
- package/dist/pane-quota-history.js +0 -20
- package/dist/pane-quota-history.js.map +1 -1
- package/dist/pause-marker.d.ts +1 -1
- package/dist/pause-marker.js +1 -1
- package/dist/pause-marker.js.map +1 -1
- package/dist/public-web-gateway.js +0 -16
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +0 -11
- package/dist/public-web-link.js +0 -13
- package/dist/public-web-link.js.map +1 -1
- package/dist/quickstart-api.js +5 -9
- package/dist/quickstart-api.js.map +1 -1
- package/dist/quickstart.d.ts +0 -6
- package/dist/quickstart.js +4 -31
- package/dist/quickstart.js.map +1 -1
- package/dist/scheduler/db.d.ts +10 -0
- package/dist/scheduler/db.js +38 -11
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/task-board-text.js +1 -1
- package/dist/scheduler/task-board-text.js.map +1 -1
- package/dist/scheduler/task-board.d.ts +0 -4
- package/dist/scheduler/task-board.js +3 -9
- package/dist/scheduler/task-board.js.map +1 -1
- package/dist/scheduler/types.d.ts +6 -1
- package/dist/service-installer.d.ts +2 -7
- package/dist/service-installer.js +10 -13
- package/dist/service-installer.js.map +1 -1
- package/dist/settings-api.d.ts +1 -14
- package/dist/settings-api.js +6 -491
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.d.ts +0 -7
- package/dist/settings-baseline.js +1 -3
- package/dist/settings-baseline.js.map +1 -1
- package/dist/settings-change.d.ts +0 -10
- package/dist/settings-change.js +1 -53
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-confirmation.d.ts +2 -41
- package/dist/settings-confirmation.js +12 -58
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.d.ts +0 -17
- package/dist/settings-effect.js +2 -168
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +0 -25
- package/dist/settings-http-confirmation.js +6 -117
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-request-capability.d.ts +0 -2
- package/dist/settings-request-capability.js +0 -4
- package/dist/settings-request-capability.js.map +1 -1
- package/dist/settings-transaction.d.ts +0 -4
- package/dist/settings-transaction.js +0 -9
- package/dist/settings-transaction.js.map +1 -1
- package/dist/setup-form.js +3 -6
- package/dist/setup-form.js.map +1 -1
- package/dist/setup-i18n.js +0 -3
- package/dist/setup-i18n.js.map +1 -1
- package/dist/setup-wizard.js +2 -4
- package/dist/setup-wizard.js.map +1 -1
- package/dist/structured-signin-transport.js +0 -4
- package/dist/structured-signin-transport.js.map +1 -1
- package/dist/structured-signin.d.ts +0 -7
- package/dist/structured-signin.js +1 -1
- package/dist/structured-signin.js.map +1 -1
- package/dist/task-board-tool.d.ts +1 -2
- package/dist/task-board-tool.js +6 -62
- package/dist/task-board-tool.js.map +1 -1
- package/dist/team-membership.d.ts +7 -0
- package/dist/team-membership.js +10 -0
- package/dist/team-membership.js.map +1 -0
- package/dist/tmux-control.d.ts +1 -2
- package/dist/tmux-control.js +4 -4
- package/dist/tmux-control.js.map +1 -1
- package/dist/tmux-exec-helper.js +1 -32
- package/dist/tmux-exec-helper.js.map +1 -1
- package/dist/tmux-manager.d.ts +3 -10
- package/dist/tmux-manager.js +41 -57
- package/dist/tmux-manager.js.map +1 -1
- package/dist/tmux-read.js +3 -4
- package/dist/tmux-read.js.map +1 -1
- package/dist/tool-permissions.js +1 -2
- package/dist/tool-permissions.js.map +1 -1
- package/dist/topic-commands.js +6 -10
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-delta-reader.d.ts +1 -1
- package/dist/transcript-delta-reader.js +1 -1
- package/dist/transcript-delta-reader.js.map +1 -1
- package/dist/transcript-monitor.d.ts +0 -3
- package/dist/transcript-monitor.js +54 -68
- package/dist/transcript-monitor.js.map +1 -1
- package/dist/transcript-sources.d.ts +0 -5
- package/dist/transcript-sources.js +79 -11
- package/dist/transcript-sources.js.map +1 -1
- package/dist/types.d.ts +0 -29
- package/dist/ui/backend-signin.js +24 -60
- package/dist/ui/chat-ambient.js +1 -1
- package/dist/ui/chat-md-strings.js +9 -3
- package/dist/ui/chat-render.js +670 -3
- package/dist/ui/chat-store.js +3 -14
- package/dist/ui/chat-strings.js +285 -3
- package/dist/ui/chat-thread.js +969 -3
- package/dist/ui/chat-time.js +80 -3
- package/dist/ui/chat-tour.js +1 -1
- package/dist/ui/fleet-office-pack.d.ts +0 -9
- package/dist/ui/fleet-office-pack.js +4 -76
- package/dist/ui/fleet-office-skin.js +5 -23
- package/dist/ui/fleet-office-store.js +0 -5
- package/dist/ui/fleet-office.js +6 -173
- package/dist/ui/fleet-task-card.js +4 -8
- package/dist/ui/fleet-task-common.js +2 -2
- package/dist/ui/fleet-tasks.js +39 -125
- package/dist/ui/html-attachment.js +40 -3
- package/dist/ui/office-share-page.js +2 -4
- package/dist/ui/panel-chat.js +75 -90
- package/dist/ui/panel-details.js +2 -3
- package/dist/ui/panel-fleet.js +18 -105
- package/dist/ui/panel-log.js +4 -4
- package/dist/ui/panel-needs.js +6 -170
- package/dist/ui/panel-settings.js +200 -276
- package/dist/ui/preview-pages.js +41 -3
- package/dist/ui/preview-panel-actions.js +161 -3
- package/dist/ui/preview-panel.js +550 -11
- package/dist/ui/preview-versions.js +155 -3
- package/dist/ui/preview.js +476 -3
- package/dist/ui/search-dialog.js +0 -2
- package/dist/ui/settings-appearance.js +23 -122
- package/dist/ui/settings-apply.js +5 -12
- package/dist/ui/settings-catalog.js +10 -37
- package/dist/ui/settings-confirm.js +1 -31
- package/dist/ui/settings-dialogs.js +20 -48
- package/dist/ui/settings-guests.js +11 -25
- package/dist/ui/settings-model.js +1 -10
- package/dist/ui/settings-named-test.js +2 -2
- package/dist/ui/settings-quota-notice.js +3 -3
- package/dist/ui/settings-registry.js +4 -18
- package/dist/ui/settings-strings.js +36 -109
- package/dist/ui/settings-web-authority.js +11 -17
- package/dist/ui/shared/app-i18n.js +2 -5
- package/dist/ui/shared/app-route.js +3 -12
- package/dist/ui/shared/app-session.js +2 -6
- package/dist/ui/shared/app-shell.js +27 -196
- package/dist/ui/shared/app-store.js +0 -1
- package/dist/ui/shared/app-stream.js +1 -3
- package/dist/ui/shared/app.css +3 -1395
- package/dist/ui/shared/app.js +3 -16
- package/dist/ui/shared/header-tools.js +9 -9
- package/dist/ui/shared/instance-nav.js +7 -34
- package/dist/ui/shared/instance-switch.js +3 -4
- package/dist/ui/shared/signin.js +9 -276
- package/dist/ui/shared/tokens.css +0 -1
- package/dist/ui/shared/ui-dialog.js +2 -2
- package/dist/ui/shared/ui-menu.js +10 -30
- package/dist/ui/shared/usage-dialog.js +72 -3
- package/dist/ui/shared/vendor/vendor.json +2 -19
- package/dist/ui/shared/view-strings.js +4 -12
- package/dist/ui/signin.html +0 -22
- package/dist/ui/structured-signin.js +11 -43
- package/dist/unattended-install.js +1 -2
- package/dist/unattended-install.js.map +1 -1
- package/dist/update-dispatch.d.ts +32 -4
- package/dist/update-dispatch.js +146 -16
- package/dist/update-dispatch.js.map +1 -1
- package/dist/update-install.d.ts +0 -7
- package/dist/update-install.js +0 -23
- package/dist/update-install.js.map +1 -1
- package/dist/update-launch.d.ts +1 -1
- package/dist/update-launch.js +2 -2
- package/dist/update-launch.js.map +1 -1
- package/dist/update-marker.d.ts +0 -2
- package/dist/update-marker.js.map +1 -1
- package/dist/usage/providers.js +3 -4
- package/dist/usage/providers.js.map +1 -1
- package/dist/view-api.d.ts +2 -8
- package/dist/view-api.js +10 -14
- package/dist/view-api.js.map +1 -1
- package/dist/web-api.d.ts +2 -122
- package/dist/web-api.js +21 -887
- package/dist/web-api.js.map +1 -1
- package/dist/web-backend-login.d.ts +3 -39
- package/dist/web-backend-login.js +17 -25
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-chat-history.d.ts +2 -19
- package/dist/web-chat-history.js +3 -72
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-login.d.ts +1 -35
- package/dist/web-login.js +5 -51
- package/dist/web-login.js.map +1 -1
- package/dist/web-notices.d.ts +0 -9
- package/dist/web-notices.js +0 -19
- package/dist/web-notices.js.map +1 -1
- package/dist/web-office-skins.d.ts +0 -9
- package/dist/web-office-skins.js +1 -16
- package/dist/web-office-skins.js.map +1 -1
- package/dist/web-only-fleet.d.ts +0 -20
- package/dist/web-only-fleet.js +0 -21
- package/dist/web-only-fleet.js.map +1 -1
- package/dist/web-session.d.ts +0 -53
- package/dist/web-session.js +1 -47
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +1 -3
- package/dist/web-settings-patch.js +1 -4
- package/dist/web-settings-patch.js.map +1 -1
- package/dist/web-shell-routes.d.ts +1 -10
- package/dist/web-shell-routes.js +2 -14
- package/dist/web-shell-routes.js.map +1 -1
- package/dist/web-terminal.d.ts +30 -11
- package/dist/web-terminal.js +8 -23
- package/dist/web-terminal.js.map +1 -1
- package/dist/yaml-shared-nodes.js +3 -8
- package/dist/yaml-shared-nodes.js.map +1 -1
- package/launcher/agend-install.cjs +1 -8
- package/launcher/postinstall.cjs +2 -27
- package/package.json +4 -15
- package/templates/launchd.plist.ejs +1 -3
- package/dist/accounts-profiles.d.ts +0 -96
- package/dist/accounts-profiles.js +0 -178
- package/dist/accounts-profiles.js.map +0 -1
- package/dist/accounts-signout.d.ts +0 -59
- package/dist/accounts-signout.js +0 -184
- package/dist/accounts-signout.js.map +0 -1
- package/dist/accounts-view.d.ts +0 -168
- package/dist/accounts-view.js +0 -187
- package/dist/accounts-view.js.map +0 -1
- package/dist/agent-runtime-api.d.ts +0 -4
- package/dist/agent-runtime-api.js +0 -59
- package/dist/agent-runtime-api.js.map +0 -1
- package/dist/agent-runtime-change.d.ts +0 -76
- package/dist/agent-runtime-change.js +0 -114
- package/dist/agent-runtime-change.js.map +0 -1
- package/dist/agent-workspace.d.ts +0 -104
- package/dist/agent-workspace.js +0 -381
- package/dist/agent-workspace.js.map +0 -1
- package/dist/backend/grok-model-cache.d.ts +0 -7
- package/dist/backend/grok-model-cache.js +0 -65
- package/dist/backend/grok-model-cache.js.map +0 -1
- package/dist/backend/native-pane.d.ts +0 -11
- package/dist/backend/native-pane.js +0 -59
- package/dist/backend/native-pane.js.map +0 -1
- package/dist/build-provenance-cli.d.ts +0 -3
- package/dist/build-provenance-cli.js +0 -11
- package/dist/build-provenance-cli.js.map +0 -1
- package/dist/build-provenance.d.ts +0 -20
- package/dist/build-provenance.js +0 -67
- package/dist/build-provenance.js.map +0 -1
- package/dist/build-provenance.json +0 -1
- package/dist/claude-auth-status.d.ts +0 -48
- package/dist/claude-auth-status.js +0 -149
- package/dist/claude-auth-status.js.map +0 -1
- package/dist/fleet-windows-runtime.d.ts +0 -98
- package/dist/fleet-windows-runtime.js +0 -467
- package/dist/fleet-windows-runtime.js.map +0 -1
- package/dist/general-binding.d.ts +0 -85
- package/dist/general-binding.js +0 -298
- package/dist/general-binding.js.map +0 -1
- package/dist/general-host-owner.d.ts +0 -8
- package/dist/general-host-owner.js +0 -26
- package/dist/general-host-owner.js.map +0 -1
- package/dist/general-role.d.ts +0 -5
- package/dist/general-role.js +0 -27
- package/dist/general-role.js.map +0 -1
- package/dist/hub/admission.d.ts +0 -28
- package/dist/hub/admission.js +0 -62
- package/dist/hub/admission.js.map +0 -1
- package/dist/hub/attachments/limits.d.ts +0 -20
- package/dist/hub/attachments/limits.js +0 -48
- package/dist/hub/attachments/limits.js.map +0 -1
- package/dist/hub/attachments/store.d.ts +0 -116
- package/dist/hub/attachments/store.js +0 -246
- package/dist/hub/attachments/store.js.map +0 -1
- package/dist/hub/audit/index.d.ts +0 -62
- package/dist/hub/audit/index.js +0 -344
- package/dist/hub/audit/index.js.map +0 -1
- package/dist/hub/browser-certificate.d.ts +0 -38
- package/dist/hub/browser-certificate.js +0 -247
- package/dist/hub/browser-certificate.js.map +0 -1
- package/dist/hub/buttons-model.d.ts +0 -9
- package/dist/hub/buttons-model.js +0 -42
- package/dist/hub/buttons-model.js.map +0 -1
- package/dist/hub/buttons.d.ts +0 -54
- package/dist/hub/buttons.js +0 -348
- package/dist/hub/buttons.js.map +0 -1
- package/dist/hub/catalog.d.ts +0 -74
- package/dist/hub/catalog.js +0 -380
- package/dist/hub/catalog.js.map +0 -1
- package/dist/hub/client.d.ts +0 -69
- package/dist/hub/client.js +0 -302
- package/dist/hub/client.js.map +0 -1
- package/dist/hub/compose/member.d.ts +0 -145
- package/dist/hub/compose/member.js +0 -458
- package/dist/hub/compose/member.js.map +0 -1
- package/dist/hub/compose/server.d.ts +0 -87
- package/dist/hub/compose/server.js +0 -417
- package/dist/hub/compose/server.js.map +0 -1
- package/dist/hub/compose/views.d.ts +0 -12
- package/dist/hub/compose/views.js +0 -4
- package/dist/hub/compose/views.js.map +0 -1
- package/dist/hub/db.d.ts +0 -56
- package/dist/hub/db.js +0 -188
- package/dist/hub/db.js.map +0 -1
- package/dist/hub/directory/config.d.ts +0 -39
- package/dist/hub/directory/config.js +0 -108
- package/dist/hub/directory/config.js.map +0 -1
- package/dist/hub/directory/directory.d.ts +0 -18
- package/dist/hub/directory/directory.js +0 -441
- package/dist/hub/directory/directory.js.map +0 -1
- package/dist/hub/directory/groups.d.ts +0 -29
- package/dist/hub/directory/groups.js +0 -29
- package/dist/hub/directory/groups.js.map +0 -1
- package/dist/hub/directory/index.d.ts +0 -8
- package/dist/hub/directory/index.js +0 -4
- package/dist/hub/directory/index.js.map +0 -1
- package/dist/hub/directory/profiles.d.ts +0 -41
- package/dist/hub/directory/profiles.js +0 -90
- package/dist/hub/directory/profiles.js.map +0 -1
- package/dist/hub/directory/types.d.ts +0 -81
- package/dist/hub/directory/types.js +0 -14
- package/dist/hub/directory/types.js.map +0 -1
- package/dist/hub/execution/cli-provider.d.ts +0 -23
- package/dist/hub/execution/cli-provider.js +0 -341
- package/dist/hub/execution/cli-provider.js.map +0 -1
- package/dist/hub/execution/index.d.ts +0 -13
- package/dist/hub/execution/index.js +0 -8
- package/dist/hub/execution/index.js.map +0 -1
- package/dist/hub/execution/model-broker.d.ts +0 -24
- package/dist/hub/execution/model-broker.js +0 -208
- package/dist/hub/execution/model-broker.js.map +0 -1
- package/dist/hub/execution/provider-setup.d.ts +0 -11
- package/dist/hub/execution/provider-setup.js +0 -21
- package/dist/hub/execution/provider-setup.js.map +0 -1
- package/dist/hub/execution/sandbox-runner.d.ts +0 -1
- package/dist/hub/execution/sandbox-runner.js +0 -221
- package/dist/hub/execution/sandbox-runner.js.map +0 -1
- package/dist/hub/execution/service.d.ts +0 -136
- package/dist/hub/execution/service.js +0 -459
- package/dist/hub/execution/service.js.map +0 -1
- package/dist/hub/execution/store.d.ts +0 -61
- package/dist/hub/execution/store.js +0 -182
- package/dist/hub/execution/store.js.map +0 -1
- package/dist/hub/execution/views.d.ts +0 -20
- package/dist/hub/execution/views.js +0 -48
- package/dist/hub/execution/views.js.map +0 -1
- package/dist/hub/group-policy/admin-api.d.ts +0 -30
- package/dist/hub/group-policy/admin-api.js +0 -83
- package/dist/hub/group-policy/admin-api.js.map +0 -1
- package/dist/hub/group-policy/admin-context.d.ts +0 -23
- package/dist/hub/group-policy/admin-context.js +0 -52
- package/dist/hub/group-policy/admin-context.js.map +0 -1
- package/dist/hub/group-policy/admin-control.d.ts +0 -34
- package/dist/hub/group-policy/admin-control.js +0 -258
- package/dist/hub/group-policy/admin-control.js.map +0 -1
- package/dist/hub/group-policy/admin-dto.d.ts +0 -243
- package/dist/hub/group-policy/admin-dto.js +0 -55
- package/dist/hub/group-policy/admin-dto.js.map +0 -1
- package/dist/hub/group-policy/admin-facts.d.ts +0 -17
- package/dist/hub/group-policy/admin-facts.js +0 -33
- package/dist/hub/group-policy/admin-facts.js.map +0 -1
- package/dist/hub/group-policy/admin-impact.d.ts +0 -51
- package/dist/hub/group-policy/admin-impact.js +0 -88
- package/dist/hub/group-policy/admin-impact.js.map +0 -1
- package/dist/hub/group-policy/admin-inventory.d.ts +0 -24
- package/dist/hub/group-policy/admin-inventory.js +0 -72
- package/dist/hub/group-policy/admin-inventory.js.map +0 -1
- package/dist/hub/group-policy/admin-read.d.ts +0 -21
- package/dist/hub/group-policy/admin-read.js +0 -90
- package/dist/hub/group-policy/admin-read.js.map +0 -1
- package/dist/hub/group-policy/authorization.d.ts +0 -60
- package/dist/hub/group-policy/authorization.js +0 -292
- package/dist/hub/group-policy/authorization.js.map +0 -1
- package/dist/hub/group-policy/impact-inventory.d.ts +0 -21
- package/dist/hub/group-policy/impact-inventory.js +0 -75
- package/dist/hub/group-policy/impact-inventory.js.map +0 -1
- package/dist/hub/group-policy/model.d.ts +0 -56
- package/dist/hub/group-policy/model.js +0 -46
- package/dist/hub/group-policy/model.js.map +0 -1
- package/dist/hub/group-policy/resources.d.ts +0 -72
- package/dist/hub/group-policy/resources.js +0 -260
- package/dist/hub/group-policy/resources.js.map +0 -1
- package/dist/hub/group-policy/store.d.ts +0 -69
- package/dist/hub/group-policy/store.js +0 -210
- package/dist/hub/group-policy/store.js.map +0 -1
- package/dist/hub/group-policy/welcome.d.ts +0 -36
- package/dist/hub/group-policy/welcome.js +0 -55
- package/dist/hub/group-policy/welcome.js.map +0 -1
- package/dist/hub/http/compose.d.ts +0 -22
- package/dist/hub/http/compose.js +0 -640
- package/dist/hub/http/compose.js.map +0 -1
- package/dist/hub/http/core.d.ts +0 -69
- package/dist/hub/http/core.js +0 -257
- package/dist/hub/http/core.js.map +0 -1
- package/dist/hub/http/deps.d.ts +0 -71
- package/dist/hub/http/deps.js +0 -2
- package/dist/hub/http/deps.js.map +0 -1
- package/dist/hub/http/schema.d.ts +0 -14
- package/dist/hub/http/schema.js +0 -80
- package/dist/hub/http/schema.js.map +0 -1
- package/dist/hub/identity.d.ts +0 -32
- package/dist/hub/identity.js +0 -80
- package/dist/hub/identity.js.map +0 -1
- package/dist/hub/init/browser-certificate.d.ts +0 -9
- package/dist/hub/init/browser-certificate.js +0 -78
- package/dist/hub/init/browser-certificate.js.map +0 -1
- package/dist/hub/init/browser-tls.d.ts +0 -18
- package/dist/hub/init/browser-tls.js +0 -62
- package/dist/hub/init/browser-tls.js.map +0 -1
- package/dist/hub/init/cli.d.ts +0 -3
- package/dist/hub/init/cli.js +0 -83
- package/dist/hub/init/cli.js.map +0 -1
- package/dist/hub/init/directory-certificate.d.ts +0 -24
- package/dist/hub/init/directory-certificate.js +0 -222
- package/dist/hub/init/directory-certificate.js.map +0 -1
- package/dist/hub/init/existing-fleet.d.ts +0 -6
- package/dist/hub/init/existing-fleet.js +0 -58
- package/dist/hub/init/existing-fleet.js.map +0 -1
- package/dist/hub/init/handoff.d.ts +0 -8
- package/dist/hub/init/handoff.js +0 -36
- package/dist/hub/init/handoff.js.map +0 -1
- package/dist/hub/init/identity.d.ts +0 -5
- package/dist/hub/init/identity.js +0 -24
- package/dist/hub/init/identity.js.map +0 -1
- package/dist/hub/init/initializer.d.ts +0 -24
- package/dist/hub/init/initializer.js +0 -385
- package/dist/hub/init/initializer.js.map +0 -1
- package/dist/hub/init/inventory.d.ts +0 -17
- package/dist/hub/init/inventory.js +0 -33
- package/dist/hub/init/inventory.js.map +0 -1
- package/dist/hub/init/layout.d.ts +0 -32
- package/dist/hub/init/layout.js +0 -53
- package/dist/hub/init/layout.js.map +0 -1
- package/dist/hub/init/network.d.ts +0 -18
- package/dist/hub/init/network.js +0 -104
- package/dist/hub/init/network.js.map +0 -1
- package/dist/hub/init/plan-digest.d.ts +0 -5
- package/dist/hub/init/plan-digest.js +0 -47
- package/dist/hub/init/plan-digest.js.map +0 -1
- package/dist/hub/init/prompt.d.ts +0 -26
- package/dist/hub/init/prompt.js +0 -110
- package/dist/hub/init/prompt.js.map +0 -1
- package/dist/hub/init/secret-file.d.ts +0 -1
- package/dist/hub/init/secret-file.js +0 -59
- package/dist/hub/init/secret-file.js.map +0 -1
- package/dist/hub/init/text.d.ts +0 -127
- package/dist/hub/init/text.js +0 -247
- package/dist/hub/init/text.js.map +0 -1
- package/dist/hub/init/types.d.ts +0 -114
- package/dist/hub/init/types.js +0 -9
- package/dist/hub/init/types.js.map +0 -1
- package/dist/hub/init/wizard.d.ts +0 -34
- package/dist/hub/init/wizard.js +0 -554
- package/dist/hub/init/wizard.js.map +0 -1
- package/dist/hub/initialization.d.ts +0 -23
- package/dist/hub/initialization.js +0 -28
- package/dist/hub/initialization.js.map +0 -1
- package/dist/hub/member/agent-mode.d.ts +0 -6
- package/dist/hub/member/agent-mode.js +0 -23
- package/dist/hub/member/agent-mode.js.map +0 -1
- package/dist/hub/member/attachments.d.ts +0 -29
- package/dist/hub/member/attachments.js +0 -107
- package/dist/hub/member/attachments.js.map +0 -1
- package/dist/hub/member/exposure-api.d.ts +0 -87
- package/dist/hub/member/exposure-api.js +0 -64
- package/dist/hub/member/exposure-api.js.map +0 -1
- package/dist/hub/member/exposures.d.ts +0 -123
- package/dist/hub/member/exposures.js +0 -282
- package/dist/hub/member/exposures.js.map +0 -1
- package/dist/hub/member/pairing-api.d.ts +0 -87
- package/dist/hub/member/pairing-api.js +0 -386
- package/dist/hub/member/pairing-api.js.map +0 -1
- package/dist/hub/member/pairing-notices.d.ts +0 -18
- package/dist/hub/member/pairing-notices.js +0 -58
- package/dist/hub/member/pairing-notices.js.map +0 -1
- package/dist/hub/member/quota.d.ts +0 -20
- package/dist/hub/member/quota.js +0 -98
- package/dist/hub/member/quota.js.map +0 -1
- package/dist/hub/member-journal.d.ts +0 -104
- package/dist/hub/member-journal.js +0 -336
- package/dist/hub/member-journal.js.map +0 -1
- package/dist/hub/member-reconciliation.d.ts +0 -14
- package/dist/hub/member-reconciliation.js +0 -97
- package/dist/hub/member-reconciliation.js.map +0 -1
- package/dist/hub/mount.d.ts +0 -39
- package/dist/hub/mount.js +0 -123
- package/dist/hub/mount.js.map +0 -1
- package/dist/hub/pairing-client.d.ts +0 -17
- package/dist/hub/pairing-client.js +0 -108
- package/dist/hub/pairing-client.js.map +0 -1
- package/dist/hub/pairing-notices.d.ts +0 -47
- package/dist/hub/pairing-notices.js +0 -241
- package/dist/hub/pairing-notices.js.map +0 -1
- package/dist/hub/pairing.d.ts +0 -99
- package/dist/hub/pairing.js +0 -514
- package/dist/hub/pairing.js.map +0 -1
- package/dist/hub/policy.d.ts +0 -65
- package/dist/hub/policy.js +0 -154
- package/dist/hub/policy.js.map +0 -1
- package/dist/hub/preview.d.ts +0 -32
- package/dist/hub/preview.js +0 -64
- package/dist/hub/preview.js.map +0 -1
- package/dist/hub/private-files.d.ts +0 -5
- package/dist/hub/private-files.js +0 -44
- package/dist/hub/private-files.js.map +0 -1
- package/dist/hub/profile.d.ts +0 -59
- package/dist/hub/profile.js +0 -73
- package/dist/hub/profile.js.map +0 -1
- package/dist/hub/protocol.d.ts +0 -811
- package/dist/hub/protocol.js +0 -98
- package/dist/hub/protocol.js.map +0 -1
- package/dist/hub/quota.d.ts +0 -24
- package/dist/hub/quota.js +0 -112
- package/dist/hub/quota.js.map +0 -1
- package/dist/hub/representative.d.ts +0 -141
- package/dist/hub/representative.js +0 -528
- package/dist/hub/representative.js.map +0 -1
- package/dist/hub/retention.d.ts +0 -17
- package/dist/hub/retention.js +0 -45
- package/dist/hub/retention.js.map +0 -1
- package/dist/hub/rooms.d.ts +0 -121
- package/dist/hub/rooms.js +0 -585
- package/dist/hub/rooms.js.map +0 -1
- package/dist/hub/runtime.d.ts +0 -109
- package/dist/hub/runtime.js +0 -309
- package/dist/hub/runtime.js.map +0 -1
- package/dist/hub/server.d.ts +0 -58
- package/dist/hub/server.js +0 -216
- package/dist/hub/server.js.map +0 -1
- package/dist/hub/service-start.d.ts +0 -17
- package/dist/hub/service-start.js +0 -109
- package/dist/hub/service-start.js.map +0 -1
- package/dist/hub/sessions.d.ts +0 -53
- package/dist/hub/sessions.js +0 -197
- package/dist/hub/sessions.js.map +0 -1
- package/dist/hub/socket.d.ts +0 -24
- package/dist/hub/socket.js +0 -79
- package/dist/hub/socket.js.map +0 -1
- package/dist/hub/store.d.ts +0 -86
- package/dist/hub/store.js +0 -91
- package/dist/hub/store.js.map +0 -1
- package/dist/hub/tls.d.ts +0 -31
- package/dist/hub/tls.js +0 -135
- package/dist/hub/tls.js.map +0 -1
- package/dist/hub/types.d.ts +0 -414
- package/dist/hub/types.js +0 -2
- package/dist/hub/types.js.map +0 -1
- package/dist/hub/validation.d.ts +0 -33
- package/dist/hub/validation.js +0 -136
- package/dist/hub/validation.js.map +0 -1
- package/dist/hub/version-floor.d.ts +0 -10
- package/dist/hub/version-floor.js +0 -45
- package/dist/hub/version-floor.js.map +0 -1
- package/dist/hub-browser-certificate-policy.d.ts +0 -31
- package/dist/hub-browser-certificate-policy.js +0 -25
- package/dist/hub-browser-certificate-policy.js.map +0 -1
- package/dist/hub-membership-settings.d.ts +0 -6
- package/dist/hub-membership-settings.js +0 -21
- package/dist/hub-membership-settings.js.map +0 -1
- package/dist/hub-mode.d.ts +0 -15
- package/dist/hub-mode.js +0 -17
- package/dist/hub-mode.js.map +0 -1
- package/dist/hub-pairing-summary.d.ts +0 -48
- package/dist/hub-pairing-summary.js +0 -36
- package/dist/hub-pairing-summary.js.map +0 -1
- package/dist/hub-report-target.d.ts +0 -32
- package/dist/hub-report-target.js +0 -33
- package/dist/hub-report-target.js.map +0 -1
- package/dist/hub-retention-policy.d.ts +0 -14
- package/dist/hub-retention-policy.js +0 -15
- package/dist/hub-retention-policy.js.map +0 -1
- package/dist/launchd-service-domain.d.ts +0 -5
- package/dist/launchd-service-domain.js +0 -21
- package/dist/launchd-service-domain.js.map +0 -1
- package/dist/local-pane-endpoint.d.ts +0 -46
- package/dist/local-pane-endpoint.js +0 -189
- package/dist/local-pane-endpoint.js.map +0 -1
- package/dist/local-pane-launcher.d.ts +0 -2
- package/dist/local-pane-launcher.js +0 -38
- package/dist/local-pane-launcher.js.map +0 -1
- package/dist/local-pane-stage.ps1 +0 -101
- package/dist/machine-accounts.d.ts +0 -110
- package/dist/machine-accounts.js +0 -229
- package/dist/machine-accounts.js.map +0 -1
- package/dist/machine-signins.d.ts +0 -89
- package/dist/machine-signins.js +0 -182
- package/dist/machine-signins.js.map +0 -1
- package/dist/model-catalog-defaults.d.ts +0 -14
- package/dist/model-catalog-defaults.js +0 -20
- package/dist/model-catalog-defaults.js.map +0 -1
- package/dist/native-agent-admission.d.ts +0 -7
- package/dist/native-agent-admission.js +0 -26
- package/dist/native-agent-admission.js.map +0 -1
- package/dist/native-daemon-client.d.ts +0 -13
- package/dist/native-daemon-client.js +0 -28
- package/dist/native-daemon-client.js.map +0 -1
- package/dist/native-instance-api.d.ts +0 -13
- package/dist/native-instance-api.js +0 -217
- package/dist/native-instance-api.js.map +0 -1
- package/dist/native-instance-input.d.ts +0 -87
- package/dist/native-instance-input.js +0 -59
- package/dist/native-instance-input.js.map +0 -1
- package/dist/native-instance-registry.d.ts +0 -38
- package/dist/native-instance-registry.js +0 -129
- package/dist/native-instance-registry.js.map +0 -1
- package/dist/native-mcp.d.ts +0 -43
- package/dist/native-mcp.js +0 -291
- package/dist/native-mcp.js.map +0 -1
- package/dist/native-model-catalog.d.ts +0 -5
- package/dist/native-model-catalog.js +0 -76
- package/dist/native-model-catalog.js.map +0 -1
- package/dist/native-pane-crash-budget.d.ts +0 -20
- package/dist/native-pane-crash-budget.js +0 -60
- package/dist/native-pane-crash-budget.js.map +0 -1
- package/dist/native-pane-create.d.ts +0 -26
- package/dist/native-pane-create.js +0 -53
- package/dist/native-pane-create.js.map +0 -1
- package/dist/native-pane-lifecycle.d.ts +0 -73
- package/dist/native-pane-lifecycle.js +0 -239
- package/dist/native-pane-lifecycle.js.map +0 -1
- package/dist/native-pane-manager.d.ts +0 -59
- package/dist/native-pane-manager.js +0 -592
- package/dist/native-pane-manager.js.map +0 -1
- package/dist/native-pane-output-log.d.ts +0 -15
- package/dist/native-pane-output-log.js +0 -108
- package/dist/native-pane-output-log.js.map +0 -1
- package/dist/native-pane-reconciliation.d.ts +0 -4
- package/dist/native-pane-reconciliation.js +0 -40
- package/dist/native-pane-reconciliation.js.map +0 -1
- package/dist/native-pane-recovery.d.ts +0 -12
- package/dist/native-pane-recovery.js +0 -10
- package/dist/native-pane-recovery.js.map +0 -1
- package/dist/native-pane-tools.d.ts +0 -2
- package/dist/native-pane-tools.js +0 -14
- package/dist/native-pane-tools.js.map +0 -1
- package/dist/office-talk.d.ts +0 -26
- package/dist/office-talk.js +0 -50
- package/dist/office-talk.js.map +0 -1
- package/dist/pane-port.d.ts +0 -118
- package/dist/pane-port.js +0 -2
- package/dist/pane-port.js.map +0 -1
- package/dist/quiet-run.d.ts +0 -31
- package/dist/quiet-run.js +0 -50
- package/dist/quiet-run.js.map +0 -1
- package/dist/runtime-api.d.ts +0 -23
- package/dist/runtime-api.js +0 -321
- package/dist/runtime-api.js.map +0 -1
- package/dist/runtime-assets/@xterm/addon-serialize/LICENSE +0 -21
- package/dist/runtime-assets/@xterm/addon-serialize/lib/addon-serialize.js +0 -2
- package/dist/runtime-assets/@xterm/addon-serialize/lib/addon-serialize.mjs +0 -19
- package/dist/runtime-assets/@xterm/addon-serialize/package.json +0 -29
- package/dist/runtime-assets/@xterm/headless/LICENSE +0 -21
- package/dist/runtime-assets/@xterm/headless/lib-headless/xterm-headless.js +0 -2
- package/dist/runtime-assets/@xterm/headless/lib-headless/xterm-headless.mjs +0 -46
- package/dist/runtime-assets/@xterm/headless/package.json +0 -29
- package/dist/runtime-assets/node-pty/CONPTY-LICENSE +0 -21
- package/dist/runtime-assets/node-pty/CONPTY-NOTICE.md +0 -503
- package/dist/runtime-assets/node-pty/LICENSE +0 -69
- package/dist/runtime-assets/node-pty/lib/conpty_console_list_agent.js +0 -16
- package/dist/runtime-assets/node-pty/lib/eventEmitter2.js +0 -47
- package/dist/runtime-assets/node-pty/lib/index.js +0 -52
- package/dist/runtime-assets/node-pty/lib/interfaces.js +0 -7
- package/dist/runtime-assets/node-pty/lib/shared/conout.js +0 -11
- package/dist/runtime-assets/node-pty/lib/terminal.js +0 -190
- package/dist/runtime-assets/node-pty/lib/types.js +0 -7
- package/dist/runtime-assets/node-pty/lib/unixTerminal.js +0 -346
- package/dist/runtime-assets/node-pty/lib/utils.js +0 -39
- package/dist/runtime-assets/node-pty/lib/windowsConoutConnection.js +0 -125
- package/dist/runtime-assets/node-pty/lib/windowsPtyAgent.js +0 -320
- package/dist/runtime-assets/node-pty/lib/windowsTerminal.js +0 -199
- package/dist/runtime-assets/node-pty/lib/worker/conoutSocketWorker.js +0 -22
- package/dist/runtime-assets/node-pty/package.json +0 -64
- package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty/OpenConsole.exe +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty/conpty.dll +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty.node +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty_console_list.node +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty.node +0 -0
- package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
- package/dist/runtime-build-info.d.ts +0 -10
- package/dist/runtime-build-info.js +0 -63
- package/dist/runtime-build-info.js.map +0 -1
- package/dist/runtime-bundle.d.ts +0 -22
- package/dist/runtime-bundle.js +0 -158
- package/dist/runtime-bundle.js.map +0 -1
- package/dist/runtime-cli-install.d.ts +0 -153
- package/dist/runtime-cli-install.js +0 -675
- package/dist/runtime-cli-install.js.map +0 -1
- package/dist/runtime-cli.d.ts +0 -14
- package/dist/runtime-cli.js +0 -416
- package/dist/runtime-cli.js.map +0 -1
- package/dist/runtime-client-store.d.ts +0 -75
- package/dist/runtime-client-store.js +0 -372
- package/dist/runtime-client-store.js.map +0 -1
- package/dist/runtime-client.d.ts +0 -236
- package/dist/runtime-client.js +0 -1267
- package/dist/runtime-client.js.map +0 -1
- package/dist/runtime-connection.d.ts +0 -22
- package/dist/runtime-connection.js +0 -93
- package/dist/runtime-connection.js.map +0 -1
- package/dist/runtime-coordinator.d.ts +0 -107
- package/dist/runtime-coordinator.js +0 -1180
- package/dist/runtime-coordinator.js.map +0 -1
- package/dist/runtime-credential-profiles.d.ts +0 -87
- package/dist/runtime-credential-profiles.js +0 -304
- package/dist/runtime-credential-profiles.js.map +0 -1
- package/dist/runtime-general-protocol.d.ts +0 -22
- package/dist/runtime-general-protocol.js +0 -57
- package/dist/runtime-general-protocol.js.map +0 -1
- package/dist/runtime-general-workspace.d.ts +0 -17
- package/dist/runtime-general-workspace.js +0 -213
- package/dist/runtime-general-workspace.js.map +0 -1
- package/dist/runtime-install.d.ts +0 -50
- package/dist/runtime-install.js +0 -189
- package/dist/runtime-install.js.map +0 -1
- package/dist/runtime-pane-assets.d.ts +0 -17
- package/dist/runtime-pane-assets.js +0 -23
- package/dist/runtime-pane-assets.js.map +0 -1
- package/dist/runtime-pane-boot.d.ts +0 -9
- package/dist/runtime-pane-boot.js +0 -47
- package/dist/runtime-pane-boot.js.map +0 -1
- package/dist/runtime-pane-codex-index.d.ts +0 -10
- package/dist/runtime-pane-codex-index.js +0 -151
- package/dist/runtime-pane-codex-index.js.map +0 -1
- package/dist/runtime-pane-config.d.ts +0 -16
- package/dist/runtime-pane-config.js +0 -54
- package/dist/runtime-pane-config.js.map +0 -1
- package/dist/runtime-pane-host.d.ts +0 -63
- package/dist/runtime-pane-host.js +0 -467
- package/dist/runtime-pane-host.js.map +0 -1
- package/dist/runtime-pane-job-owner.d.ts +0 -1
- package/dist/runtime-pane-job-owner.js +0 -29
- package/dist/runtime-pane-job-owner.js.map +0 -1
- package/dist/runtime-pane-job.ps1 +0 -116
- package/dist/runtime-pane-link.d.ts +0 -47
- package/dist/runtime-pane-link.js +0 -338
- package/dist/runtime-pane-link.js.map +0 -1
- package/dist/runtime-pane-mcp-protocol.d.ts +0 -32
- package/dist/runtime-pane-mcp-protocol.js +0 -39
- package/dist/runtime-pane-mcp-protocol.js.map +0 -1
- package/dist/runtime-pane-mcp-relay.d.ts +0 -18
- package/dist/runtime-pane-mcp-relay.js +0 -80
- package/dist/runtime-pane-mcp-relay.js.map +0 -1
- package/dist/runtime-pane-mcp.d.ts +0 -55
- package/dist/runtime-pane-mcp.js +0 -153
- package/dist/runtime-pane-mcp.js.map +0 -1
- package/dist/runtime-pane-native.d.ts +0 -75
- package/dist/runtime-pane-native.js +0 -114
- package/dist/runtime-pane-native.js.map +0 -1
- package/dist/runtime-pane-output.d.ts +0 -19
- package/dist/runtime-pane-output.js +0 -53
- package/dist/runtime-pane-output.js.map +0 -1
- package/dist/runtime-pane-port.d.ts +0 -144
- package/dist/runtime-pane-port.js +0 -574
- package/dist/runtime-pane-port.js.map +0 -1
- package/dist/runtime-pane-private.d.ts +0 -14
- package/dist/runtime-pane-private.js +0 -51
- package/dist/runtime-pane-private.js.map +0 -1
- package/dist/runtime-pane-private.ps1 +0 -14
- package/dist/runtime-pane-process.d.ts +0 -4
- package/dist/runtime-pane-process.js +0 -117
- package/dist/runtime-pane-process.js.map +0 -1
- package/dist/runtime-pane-protocol.d.ts +0 -182
- package/dist/runtime-pane-protocol.js +0 -217
- package/dist/runtime-pane-protocol.js.map +0 -1
- package/dist/runtime-pane-quota-history.d.ts +0 -6
- package/dist/runtime-pane-quota-history.js +0 -44
- package/dist/runtime-pane-quota-history.js.map +0 -1
- package/dist/runtime-pane-screen.d.ts +0 -19
- package/dist/runtime-pane-screen.js +0 -76
- package/dist/runtime-pane-screen.js.map +0 -1
- package/dist/runtime-pane-service.d.ts +0 -16
- package/dist/runtime-pane-service.js +0 -256
- package/dist/runtime-pane-service.js.map +0 -1
- package/dist/runtime-pane-stdio-protocol.d.ts +0 -54
- package/dist/runtime-pane-stdio-protocol.js +0 -94
- package/dist/runtime-pane-stdio-protocol.js.map +0 -1
- package/dist/runtime-pane-stdio.d.ts +0 -3
- package/dist/runtime-pane-stdio.js +0 -123
- package/dist/runtime-pane-stdio.js.map +0 -1
- package/dist/runtime-pane-store.d.ts +0 -43
- package/dist/runtime-pane-store.js +0 -176
- package/dist/runtime-pane-store.js.map +0 -1
- package/dist/runtime-pane-transcript-protocol.d.ts +0 -43
- package/dist/runtime-pane-transcript-protocol.js +0 -58
- package/dist/runtime-pane-transcript-protocol.js.map +0 -1
- package/dist/runtime-pane-transcript.d.ts +0 -50
- package/dist/runtime-pane-transcript.js +0 -666
- package/dist/runtime-pane-transcript.js.map +0 -1
- package/dist/runtime-pane-worker.d.ts +0 -1
- package/dist/runtime-pane-worker.js +0 -167
- package/dist/runtime-pane-worker.js.map +0 -1
- package/dist/runtime-profile-ownership.d.ts +0 -66
- package/dist/runtime-profile-ownership.js +0 -391
- package/dist/runtime-profile-ownership.js.map +0 -1
- package/dist/runtime-protocol.d.ts +0 -263
- package/dist/runtime-protocol.js +0 -89
- package/dist/runtime-protocol.js.map +0 -1
- package/dist/runtime-remote-accounts.d.ts +0 -197
- package/dist/runtime-remote-accounts.js +0 -663
- package/dist/runtime-remote-accounts.js.map +0 -1
- package/dist/runtime-remote-setup.d.ts +0 -105
- package/dist/runtime-remote-setup.js +0 -529
- package/dist/runtime-remote-setup.js.map +0 -1
- package/dist/runtime-signin-transport.d.ts +0 -39
- package/dist/runtime-signin-transport.js +0 -110
- package/dist/runtime-signin-transport.js.map +0 -1
- package/dist/runtime-signin.d.ts +0 -132
- package/dist/runtime-signin.js +0 -289
- package/dist/runtime-signin.js.map +0 -1
- package/dist/runtime-switches.d.ts +0 -79
- package/dist/runtime-switches.js +0 -90
- package/dist/runtime-switches.js.map +0 -1
- package/dist/runtime-transcript-delta-reader.d.ts +0 -23
- package/dist/runtime-transcript-delta-reader.js +0 -74
- package/dist/runtime-transcript-delta-reader.js.map +0 -1
- package/dist/runtime-transcript-source.d.ts +0 -36
- package/dist/runtime-transcript-source.js +0 -189
- package/dist/runtime-transcript-source.js.map +0 -1
- package/dist/runtime-update-activity.d.ts +0 -21
- package/dist/runtime-update-activity.js +0 -51
- package/dist/runtime-update-activity.js.map +0 -1
- package/dist/runtime-update-artifact.d.ts +0 -31
- package/dist/runtime-update-artifact.js +0 -252
- package/dist/runtime-update-artifact.js.map +0 -1
- package/dist/runtime-update-attention.d.ts +0 -4
- package/dist/runtime-update-attention.js +0 -11
- package/dist/runtime-update-attention.js.map +0 -1
- package/dist/runtime-update-controller.d.ts +0 -75
- package/dist/runtime-update-controller.js +0 -691
- package/dist/runtime-update-controller.js.map +0 -1
- package/dist/runtime-update-install.d.ts +0 -31
- package/dist/runtime-update-install.js +0 -205
- package/dist/runtime-update-install.js.map +0 -1
- package/dist/runtime-update-ipc.d.ts +0 -42
- package/dist/runtime-update-ipc.js +0 -144
- package/dist/runtime-update-ipc.js.map +0 -1
- package/dist/runtime-update-journal.d.ts +0 -49
- package/dist/runtime-update-journal.js +0 -128
- package/dist/runtime-update-journal.js.map +0 -1
- package/dist/runtime-update-lock.d.ts +0 -48
- package/dist/runtime-update-lock.js +0 -232
- package/dist/runtime-update-lock.js.map +0 -1
- package/dist/runtime-update-owners.d.ts +0 -29
- package/dist/runtime-update-owners.js +0 -240
- package/dist/runtime-update-owners.js.map +0 -1
- package/dist/runtime-update-protocol.d.ts +0 -15
- package/dist/runtime-update-protocol.js +0 -13
- package/dist/runtime-update-protocol.js.map +0 -1
- package/dist/runtime-update-status.d.ts +0 -30
- package/dist/runtime-update-status.js +0 -31
- package/dist/runtime-update-status.js.map +0 -1
- package/dist/runtime-windows-bridge.d.ts +0 -42
- package/dist/runtime-windows-bridge.js +0 -167
- package/dist/runtime-windows-bridge.js.map +0 -1
- package/dist/service-drain.d.ts +0 -19
- package/dist/service-drain.js +0 -64
- package/dist/service-drain.js.map +0 -1
- package/dist/settings-route-lifetime.d.ts +0 -14
- package/dist/settings-route-lifetime.js +0 -48
- package/dist/settings-route-lifetime.js.map +0 -1
- package/dist/signin-keepalive.d.ts +0 -205
- package/dist/signin-keepalive.js +0 -680
- package/dist/signin-keepalive.js.map +0 -1
- package/dist/tmux-binary.d.ts +0 -59
- package/dist/tmux-binary.js +0 -189
- package/dist/tmux-binary.js.map +0 -1
- package/dist/tmux-legacy.d.ts +0 -94
- package/dist/tmux-legacy.js +0 -309
- package/dist/tmux-legacy.js.map +0 -1
- package/dist/tmux-pane-host.d.ts +0 -26
- package/dist/tmux-pane-host.js +0 -25
- package/dist/tmux-pane-host.js.map +0 -1
- package/dist/tmux-rollback.d.ts +0 -31
- package/dist/tmux-rollback.js +0 -72
- package/dist/tmux-rollback.js.map +0 -1
- package/dist/tmux-server.d.ts +0 -102
- package/dist/tmux-server.js +0 -248
- package/dist/tmux-server.js.map +0 -1
- package/dist/transcript-needles.d.ts +0 -42
- package/dist/transcript-needles.js +0 -166
- package/dist/transcript-needles.js.map +0 -1
- package/dist/transcript-records.d.ts +0 -22
- package/dist/transcript-records.js +0 -144
- package/dist/transcript-records.js.map +0 -1
- package/dist/ui/account-identity.js +0 -27
- package/dist/ui/accounts-keepalive.js +0 -118
- package/dist/ui/accounts-manage.js +0 -255
- package/dist/ui/accounts-view.js +0 -416
- package/dist/ui/agent-proposals.js +0 -90
- package/dist/ui/agent-runtime-settings.js +0 -69
- package/dist/ui/agent-runtime.js +0 -124
- package/dist/ui/cli-picker.js +0 -42
- package/dist/ui/credential-profile-select.js +0 -54
- package/dist/ui/fleet-office-dialogue.d.ts +0 -30
- package/dist/ui/fleet-office-dialogue.js +0 -382
- package/dist/ui/fleet-task-menu.js +0 -188
- package/dist/ui/fleet-task-stats.js +0 -124
- package/dist/ui/fleet-task-view.js +0 -340
- package/dist/ui/general-location.js +0 -85
- package/dist/ui/hub-agent-copy.js +0 -23
- package/dist/ui/hub-attachments.js +0 -90
- package/dist/ui/hub-button-actions.js +0 -65
- package/dist/ui/hub-chat-store.js +0 -164
- package/dist/ui/hub-chat-strings.js +0 -77
- package/dist/ui/hub-client.js +0 -388
- package/dist/ui/hub-grant-strings.js +0 -13
- package/dist/ui/hub-group-policy.js +0 -170
- package/dist/ui/hub-group-strings.js +0 -97
- package/dist/ui/hub-owner-strings.js +0 -55
- package/dist/ui/hub-pairing-progress-strings.js +0 -15
- package/dist/ui/hub-preview.js +0 -101
- package/dist/ui/hub-provider-guidance.js +0 -31
- package/dist/ui/hub-quick-pairing.js +0 -202
- package/dist/ui/hub-quick-strings.js +0 -43
- package/dist/ui/hub-quota.js +0 -85
- package/dist/ui/hub-read-strings.js +0 -7
- package/dist/ui/hub-strings.js +0 -164
- package/dist/ui/hub-switcher.js +0 -27
- package/dist/ui/hub-welcome.js +0 -99
- package/dist/ui/machine-signin.js +0 -56
- package/dist/ui/native-instance-settings.js +0 -44
- package/dist/ui/native-pane-recovery.js +0 -45
- package/dist/ui/panel-hub.js +0 -796
- package/dist/ui/panel-runtimes.js +0 -446
- package/dist/ui/panel-windows-agent.js +0 -87
- package/dist/ui/panel-windows-cli.js +0 -189
- package/dist/ui/provider-marks.js +0 -83
- package/dist/ui/runtime-catalog.js +0 -55
- package/dist/ui/runtime-cli-install.js +0 -134
- package/dist/ui/runtime-commands.d.ts +0 -4
- package/dist/ui/runtime-commands.js +0 -59
- package/dist/ui/runtime-update-commands.d.ts +0 -2
- package/dist/ui/runtime-update-commands.js +0 -11
- package/dist/ui/runtime-update-status.js +0 -53
- package/dist/ui/settings-access-strings.js +0 -42
- package/dist/ui/settings-agent-filters.js +0 -94
- package/dist/ui/settings-build-version.js +0 -35
- package/dist/ui/settings-devices.js +0 -249
- package/dist/ui/settings-hub-browser-certificate.js +0 -76
- package/dist/ui/settings-hub-membership.js +0 -92
- package/dist/ui/settings-hub-retention.js +0 -54
- package/dist/ui/settings-hub-section.js +0 -60
- package/dist/ui/settings-hub.js +0 -249
- package/dist/ui/settings-layout.js +0 -246
- package/dist/ui/settings-outside.js +0 -242
- package/dist/ui/settings-restart-strings.js +0 -17
- package/dist/ui/settings-shared-strings.js +0 -143
- package/dist/ui/settings-shared.js +0 -345
- package/dist/ui/settings-shortcuts.js +0 -65
- package/dist/ui/shared/accounts-keepalive.css +0 -12
- package/dist/ui/shared/accounts.css +0 -78
- package/dist/ui/shared/chat-composer.js +0 -68
- package/dist/ui/shared/chat-md-strings.js +0 -9
- package/dist/ui/shared/chat-render.js +0 -682
- package/dist/ui/shared/chat-strings.js +0 -333
- package/dist/ui/shared/chat-thread.js +0 -969
- package/dist/ui/shared/chat-time.js +0 -80
- package/dist/ui/shared/html-attachment.js +0 -42
- package/dist/ui/shared/hub-chat.css +0 -86
- package/dist/ui/shared/hub-groups.css +0 -26
- package/dist/ui/shared/hub-owner.css +0 -33
- package/dist/ui/shared/hub-quota.css +0 -8
- package/dist/ui/shared/hub-signin.css +0 -24
- package/dist/ui/shared/hub.css +0 -72
- package/dist/ui/shared/machine-name.js +0 -13
- package/dist/ui/shared/page-head.js +0 -8
- package/dist/ui/shared/preview-pages.js +0 -41
- package/dist/ui/shared/preview-panel-actions.js +0 -168
- package/dist/ui/shared/preview-panel.js +0 -565
- package/dist/ui/shared/preview-versions.js +0 -155
- package/dist/ui/shared/preview.js +0 -476
- package/dist/ui/shared/qrcode.module.js +0 -2237
- package/dist/ui/shared/runtime-install.css +0 -30
- package/dist/ui/shared/settings-width.js +0 -31
- package/dist/ui/shared/side-rail.js +0 -15
- package/dist/ui/shared/task-board.css +0 -95
- package/dist/ui/shared/usage-meter.js +0 -84
- package/dist/ui/shared/vendor/qrcode-generator.LICENSE +0 -27
- package/dist/ui/shared/workspace-follow.css +0 -19
- package/dist/ui/shared/workspace.css +0 -20
- package/dist/ui/windows-agents-nav.js +0 -2
- package/dist/ui/windows-cli-catalog.js +0 -108
- package/dist/ui/workspace-follow-strings.js +0 -28
- package/dist/ui/workspace-panel.js +0 -378
- package/dist/ui/workspace-strings.js +0 -35
- package/dist/web-device-login.d.ts +0 -153
- package/dist/web-device-login.js +0 -278
- package/dist/web-device-login.js.map +0 -1
- package/dist/web-remote-access.d.ts +0 -158
- package/dist/web-remote-access.js +0 -377
- package/dist/web-remote-access.js.map +0 -1
- package/dist/web-signin-link.d.ts +0 -42
- package/dist/web-signin-link.js +0 -110
- package/dist/web-signin-link.js.map +0 -1
- package/dist/windows-agents.d.ts +0 -127
- package/dist/windows-agents.js +0 -491
- package/dist/windows-agents.js.map +0 -1
- package/dist/windows-cli-api.d.ts +0 -48
- package/dist/windows-cli-api.js +0 -206
- package/dist/windows-cli-api.js.map +0 -1
- package/dist/windows-cli-providers.d.ts +0 -106
- package/dist/windows-cli-providers.js +0 -424
- package/dist/windows-cli-providers.js.map +0 -1
- package/dist/windows-cli-worker.d.ts +0 -85
- package/dist/windows-cli-worker.js +0 -585
- package/dist/windows-cli-worker.js.map +0 -1
- package/dist/windows-cli.d.ts +0 -126
- package/dist/windows-cli.js +0 -416
- package/dist/windows-cli.js.map +0 -1
- package/dist/windows-native-mcp.d.ts +0 -19
- package/dist/windows-native-mcp.js +0 -143
- package/dist/windows-native-mcp.js.map +0 -1
- package/dist/windows-pane-mcp.d.ts +0 -26
- package/dist/windows-pane-mcp.js +0 -187
- package/dist/windows-pane-mcp.js.map +0 -1
- package/dist/workspace-follow-parse.d.ts +0 -36
- package/dist/workspace-follow-parse.js +0 -208
- package/dist/workspace-follow-parse.js.map +0 -1
- package/dist/workspace-follow-records.d.ts +0 -17
- package/dist/workspace-follow-records.js +0 -88
- package/dist/workspace-follow-records.js.map +0 -1
- package/dist/workspace-follow.d.ts +0 -41
- package/dist/workspace-follow.js +0 -143
- package/dist/workspace-follow.js.map +0 -1
- package/dist/wsl-detect.d.ts +0 -1
- package/dist/wsl-detect.js +0 -20
- package/dist/wsl-detect.js.map +0 -1
- package/launcher/launchd-session-type.cjs +0 -14
- package/launcher/tmux-bundle.cjs +0 -263
- package/templates/runtime-assets/conpty-LICENSE +0 -21
- package/templates/runtime-assets/conpty-NOTICE.md +0 -503
- package/templates/runtime-assets/local-pane-stage.ps1 +0 -101
- package/templates/runtime-assets/runtime-pane-job.ps1 +0 -116
- package/templates/runtime-assets/runtime-pane-private.ps1 +0 -14
- package/templates/runtime-assets/xterm-LICENSE +0 -21
- package/templates/runtime-install/install.ps1 +0 -411
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SettingsBuildVersion } from "./settings-build-version.js";
|
|
2
1
|
// #1408 step 3: the Settings panel (/settings[/<section>]) — agents, connections, ClassicBot rooms, general defaults,
|
|
3
2
|
// the developer YAML. Behind the session gate (/ui/js/), loaded the first time it is opened.
|
|
4
3
|
//
|
|
@@ -26,52 +25,35 @@ import { Menu } from "/assets/ui-menu.js";
|
|
|
26
25
|
import { toast } from "/assets/ui-toast.js";
|
|
27
26
|
import { GroupMark, groupLabel, groupOf as navGroupOf, modelText } from "/assets/instance-nav.js";
|
|
28
27
|
import "./settings-strings.js";
|
|
29
|
-
import "./settings-shared-strings.js"; // see settings-shared.js: the words Shared agent settings added, which an older settings-strings.js in an open tab lacks
|
|
30
|
-
import "./settings-restart-strings.js"; // S-92: the restart words for a fleet with no chat connection (a file of its own: an open tab may hold an old settings-strings.js)
|
|
31
|
-
import "./settings-access-strings.js"; // the words Access & security added (settings.webLoginQr…): an older settings-strings.js from a tab that visited Fleet first lacks them (#3061)
|
|
32
28
|
import { api, attach, confirmedWrite, newKey } from "./settings-confirm.js";
|
|
33
29
|
import { dismissOperation, operationActive, restartFleet, startOperation, takeLeftover } from "./settings-apply.js";
|
|
34
30
|
import {
|
|
35
|
-
ACCESS_MODES, DASHBOARD_FEATURES, SEPARATE_FEATURE_KEYS, DEFAULT_SCHEMA, ownChoiceImpact, HANG_TIMEOUT_DEFAULT_MINUTES, TOOL_PROGRESS, TOOL_SETS, VISIBILITY_MODES, batchImpact,
|
|
31
|
+
ACCESS_MODES, AGENT_MODES, DASHBOARD_FEATURES, SEPARATE_FEATURE_KEYS, DEFAULT_SCHEMA, ownChoiceImpact, HANG_TIMEOUT_DEFAULT_MINUTES, LOG_LEVELS, TOOL_PROGRESS, TOOL_SETS, VISIBILITY_MODES, batchImpact,
|
|
36
32
|
changedFields, channelId, channelsOf, chLabel, connectionState, dashboardDefault, effectiveSummary, fleetModel, fromYaml, fullModelRequests, groupAgents,
|
|
37
|
-
hasOwn, impactOf, defaultsImpact, requestImpact, nonNegative, positive, replyGuardSupported, sameValue, shortName, STATUS_ORDER, toYaml,
|
|
38
|
-
visibilityDefault, worstImpact,
|
|
33
|
+
hasOwn, impactOf, localeOptions, defaultsImpact, requestImpact, nonNegative, positive, replyGuardSupported, sameValue, shortName, STATUS_ORDER, toYaml,
|
|
34
|
+
toolSetDefault, visibilityDefault, worstImpact,
|
|
39
35
|
} from "./settings-model.js";
|
|
40
36
|
import {
|
|
41
|
-
AgentDialog, BackendSelect, BotDialog, ChipList, ClassicDialog, DefaultMark, Feedback, Impact, InEffect, Inherited, Label,
|
|
37
|
+
AgentDialog, BackendSelect, BotDialog, ChipList, ClassicDialog, DefaultMark, Drawer, Feedback, Impact, InEffect, Inherited, Label, ModelSelect,
|
|
42
38
|
NewBotDialog, Override, Select, ask, impactText, inAgentDefaults, valueText,
|
|
43
39
|
} from "./settings-dialogs.js";
|
|
44
|
-
import { SharedAgentSettings, sharedNotes } from "./settings-shared.js";
|
|
45
40
|
import { QuotaNoticeSettings, quotaNoticeText } from "./settings-quota-notice.js";
|
|
46
41
|
import { SetupWizard } from "./settings-wizard.js";
|
|
47
42
|
import { CreateInstanceDialog } from "./panel-fleet.js";
|
|
48
|
-
import { RuntimesPanel } from "./panel-runtimes.js";
|
|
49
|
-
import { NativeInstanceSettings } from "./native-instance-settings.js";
|
|
50
43
|
import { FirstRunCard, takeWizardRequest } from "./first-run.js";
|
|
51
44
|
import { takeAgentRequest } from "./settings-request.js";
|
|
52
45
|
// #1604: This device — the preview opt-in (one path: the app's confirm, then preview.js) and the tour, from the chat.
|
|
53
46
|
import { setPreviewOptIn } from "./panel-chat.js";
|
|
54
47
|
import { startTour } from "./chat-tour.js";
|
|
55
|
-
import "
|
|
48
|
+
import "./chat-strings.js";
|
|
56
49
|
import { AppearanceSection } from "./settings-appearance.js";
|
|
57
50
|
import { GuestsCard } from "./settings-guests.js";
|
|
58
51
|
import { OfficeSharesCard } from "./office-share-dialog.js";
|
|
59
52
|
import { PageSharesCard } from "./page-share-dialog.js";
|
|
60
53
|
import { syncStage, useDraft } from "./settings-draft.js";
|
|
61
54
|
import { WebAuthorityCard } from "./settings-web-authority.js";
|
|
62
|
-
import { OutsideCard } from "./settings-outside.js";
|
|
63
|
-
import { DevicesCard } from "./settings-devices.js";
|
|
64
|
-
import { HubSection, hubSectionText } from "./settings-hub-section.js";
|
|
65
55
|
import { NamedLinkTest, setTypedTunnelToken } from "./settings-named-test.js";
|
|
66
56
|
import { SignInList } from "./backend-signin.js";
|
|
67
|
-
import { AccountsView, defaultsBackendOptions } from "./accounts-view.js"; // #3212: SignInList stays exported for a page that still imports it
|
|
68
|
-
import { ProviderMark } from "./provider-marks.js";
|
|
69
|
-
import { CliProductMark, cliLabel } from "./cli-picker.js";
|
|
70
|
-
import { SettingsPageHead, SettingsTabs, SettingsTabPanel, useSettingsTabs, revealSettingsTarget, layoutText } from "./settings-layout.js";
|
|
71
|
-
import { AgentFilters, agentFilterText, agentRuntime, agentRuntimeOffline, agentStatus, filterAgentGroups } from "./settings-agent-filters.js";
|
|
72
|
-
import { useRuntimeCatalog } from "./runtime-catalog.js";
|
|
73
|
-
import { ShortcutsHelpRow } from "./settings-shortcuts.js";
|
|
74
|
-
import { GeneralLocation } from "./general-location.js";
|
|
75
57
|
|
|
76
58
|
const tn = (k, ...v) => k === "sec_notifications" ? quotaNoticeText().title : t(`settings.${k}`, ...v);
|
|
77
59
|
/** What a refused change says to a person: the server's code in words (the code itself only for one not listed). */
|
|
@@ -79,7 +61,8 @@ const APPLY_ERRORS = new Set(["unsupported_sensitive_effect", "confirmation_diff
|
|
|
79
61
|
"request_no_longer_current", "too_many_pending_changes", "fleet_unavailable", "invalid_settings_effect", "settings_confirmation_unavailable", "failed"]);
|
|
80
62
|
// #2726: a code or words of the setup host (the wizard's commit) in the page's language; anything else as it came.
|
|
81
63
|
export const applyErrorText = (code) => (APPLY_ERRORS.has(code) ? tn(`applyError_${code}`) : tn("applyErrorOther", hostText(String(code), lang())));
|
|
82
|
-
const ICONS = { preferences: "user", look: "palette", agents: "bot", notifications: "sliders",
|
|
64
|
+
const ICONS = { preferences: "user", look: "palette", agents: "bot", notifications: "sliders", "agent-defaults": "sliders", chat: "chat", "web-dashboard": "globe", access: "key", advanced: "code" };
|
|
65
|
+
const RELEASES = "https://github.com/songsid/AgEnD/releases";
|
|
83
66
|
|
|
84
67
|
/** GET under the panel's lease → { ok, status, body }. */
|
|
85
68
|
async function read(lease, path) {
|
|
@@ -121,7 +104,7 @@ async function loadLive(lease) {
|
|
|
121
104
|
if (!lease.current()) return null;
|
|
122
105
|
const live = {}, classicLive = {};
|
|
123
106
|
if (f.ok && f.body && Array.isArray(f.body.instances)) for (const i of f.body.instances) {
|
|
124
|
-
live[i.name] = { status: i.status, state: i.state, backend: i.backend, model: i.model, model_display: modelText(i, i.model_display), effort: i.effort, effort_supported: i.effort_supported
|
|
107
|
+
live[i.name] = { status: i.status, state: i.state, backend: i.backend, model: i.model, model_display: modelText(i, i.model_display), effort: i.effort, effort_supported: i.effort_supported };
|
|
125
108
|
if (i.classic) classicLive[i.name] = { status: i.status, state: i.state };
|
|
126
109
|
}
|
|
127
110
|
// /api/fleet carries live state for ClassicBot rooms; the profiles are the fallback for one not listed there yet.
|
|
@@ -129,7 +112,7 @@ async function loadLive(lease) {
|
|
|
129
112
|
if (!lease.current()) return null;
|
|
130
113
|
const classicStatus = {};
|
|
131
114
|
if (pr.ok && Array.isArray(pr.body)) for (const r of pr.body) classicStatus[r.instance_name] = r.status;
|
|
132
|
-
return { live, classicLive, classicStatus, fleetUp: f.ok, version: (f.ok && f.body && f.body.version) || ""
|
|
115
|
+
return { live, classicLive, classicStatus, fleetUp: f.ok, version: (f.ok && f.body && f.body.version) || "" };
|
|
133
116
|
}
|
|
134
117
|
|
|
135
118
|
export function SettingsPanel({ route, navKey }) {
|
|
@@ -395,34 +378,20 @@ export function SettingsPanel({ route, navKey }) {
|
|
|
395
378
|
const formKey = data && !data.error ? `${data.loadedAt}:${draftEpoch}` : "";
|
|
396
379
|
// #2347 regrouping: each card where the person looks for it (the IA in #2347 §3); a form split across sections (the
|
|
397
380
|
// defaults, Web) is one form with one draft, shown a part at a time.
|
|
398
|
-
const sectionBody = section === "preferences" ? html`<${DeviceSection} key=${you.key} />`
|
|
381
|
+
const sectionBody = section === "preferences" ? html`<${DeviceSection} key=${you.key} /><${AppearanceSection} ...${you} part="device" />`
|
|
399
382
|
: section === "look" ? html`<${AppearanceSection} ...${you} part="look" />`
|
|
400
|
-
: section === "runtimes" ? html`<${RuntimesPanel} navKey=${navKey} />`
|
|
401
383
|
: !data ? html`<${Skeleton} lines=${6} />`
|
|
402
384
|
: data.error ? html`<${ErrorState} message=${tn("configLoadFailed")} onRetry=${reload} />`
|
|
403
|
-
: section === "agents" ? html`<${YamlLock} staged=${staged}><${Agents} ctx=${ctx} search=${search}
|
|
404
|
-
|
|
405
|
-
<${AccountsView} instances=${ctx.fleet.instances || {}} stageAgent=${ctx.stageAgent}
|
|
406
|
-
openAgent=${(name) => { const insts = ctx.fleet.instances || {}; if (Object.hasOwn(insts, name)) toDialog({ kind: "agent", name, inst: insts[name] }); }}
|
|
407
|
-
stageDefault=${(backend, profile) => {
|
|
408
|
-
// One change for every CLI's fleet default, carrying the whole map (the write replaces it whole).
|
|
409
|
-
const opts = defaultsBackendOptions((ctx.fleet.defaults || {}).backend_options, stagedRef.current.get("defaults:account")?.request?.body?.backend_options, backend, profile);
|
|
410
|
-
if (!opts) { ctx.unstage("defaults:account"); return; }
|
|
411
|
-
ctx.stage("defaults:account", { label: tn("updateDefaults"), count: 1, impact: defaultsImpact(ctx.schema, "backend_options"),
|
|
412
|
-
request: { method: "PUT", url: "/api/settings/fleet/defaults", body: { backend_options: opts } } });
|
|
413
|
-
}} />${ctx.providerOk ? html`<${ProviderKeys} ctx=${ctx} />` : html`<section class="s-auth-section s-api-unavailable"><header class="s-auth-section-head"><div><h3>${layoutText("apiKeysTitle")}</h3><p>${layoutText("apiKeysHint")}</p></div><span class="s-auth-state">${layoutText("apiKeysUnavailableState")}</span></header><p class="note">${layoutText("apiKeysUnavailable")}</p></section>`}
|
|
414
|
-
</div></details>`
|
|
415
|
-
: section === "agent-defaults" ? html`<${GeneralLocation} /><${YamlLock} staged=${staged}><${General} key=${formKey} ctx=${ctx} part="fleet" />${!SETTINGS_SECTIONS.includes("notifications") ? html`<${QuotaNoticeSettings} key=${`quota:${formKey}`} ctx=${ctx} />` : null}</${YamlLock}>`
|
|
385
|
+
: section === "agents" ? html`<${YamlLock} staged=${staged}><${Agents} ctx=${ctx} search=${search} openDialog=${toDialog} /></${YamlLock}>${ctx.providerOk ? html`<${ProviderKeys} ctx=${ctx} />` : null}`
|
|
386
|
+
: section === "agent-defaults" ? html`<${YamlLock} staged=${staged}><${General} key=${formKey} ctx=${ctx} part="fleet" />${!SETTINGS_SECTIONS.includes("notifications") ? html`<${QuotaNoticeSettings} key=${`quota:${formKey}`} ctx=${ctx} />` : null}</${YamlLock}>`
|
|
416
387
|
: section === "notifications" ? html`<${YamlLock} staged=${staged}><${QuotaNoticeSettings} key=${formKey} ctx=${ctx} /></${YamlLock}>`
|
|
417
388
|
: section === "chat" ? html`<${YamlLock} staged=${staged}><${Bots} ctx=${ctx} search=${search} openDialog=${toDialog} /></${YamlLock}>
|
|
418
389
|
<${WebSection} key=${formKey} ctx=${ctx} staged=${staged} part="chat" />
|
|
419
|
-
<div id="classicbot" class="s-anchor
|
|
420
|
-
|
|
390
|
+
<div id="classicbot" class="s-anchor"><h2 class="s-ap-group">ClassicBot</h2><${Classic} ctx=${ctx} search=${search} openDialog=${toDialog} />
|
|
391
|
+
<${General} key=${formKey} ctx=${ctx} part="classic" /></div>`
|
|
421
392
|
: section === "web-dashboard" ? html`<${WebSection} key=${formKey} ctx=${ctx} staged=${staged} part="dashboard" /><${AppearanceSection} ...${you} part="dashboard" />`
|
|
422
393
|
: section === "access" ? html`<${WebSection} key=${formKey} ctx=${ctx} staged=${staged} part="access" />`
|
|
423
|
-
|
|
424
|
-
: section === "hub" ? html`<${HubSection} overPublicLink=${typeof document !== "undefined" && document.body?.dataset?.publicLink === "1"} hubHost=${!!ctx.fleet.hub?.hubId} hubOrigin=${ctx.fleet.hub?.webOrigin} />`
|
|
425
|
-
: html`<${AdvancedSettings} ctx=${ctx} staged=${staged} formKey=${formKey} draftEpoch=${draftEpoch} />`;
|
|
394
|
+
: html`<${Developer} key=${`dev:${draftEpoch}`} ctx=${ctx} /><${WebSection} key=${formKey} ctx=${ctx} staged=${staged} part="readonly" />`;
|
|
426
395
|
// #2347 §6: the setting a search result opened — brought into view once its section is drawn (its data may still be
|
|
427
396
|
// on its way), focused, and flashed for 2 s.
|
|
428
397
|
const wanted = useRef(null);
|
|
@@ -441,7 +410,6 @@ export function SettingsPanel({ route, navKey }) {
|
|
|
441
410
|
if (++tries < 40) timer = setTimeout(find, 50); else wanted.current = null;
|
|
442
411
|
return;
|
|
443
412
|
}
|
|
444
|
-
if (revealSettingsTarget(el)) { timer = setTimeout(find, 0); return; }
|
|
445
413
|
wanted.current = null;
|
|
446
414
|
// #2347 §10: a setting in a closed drawer (Advanced) is shown — every drawer around it opens first.
|
|
447
415
|
for (let d = el.closest && el.closest("details"); d; d = d.parentElement && d.parentElement.closest("details")) d.open = true;
|
|
@@ -482,14 +450,7 @@ export function SettingsPanel({ route, navKey }) {
|
|
|
482
450
|
if (!id) return;
|
|
483
451
|
let el = null;
|
|
484
452
|
try { el = document.getElementById(decodeURIComponent(id)); } catch { el = null; }
|
|
485
|
-
if (
|
|
486
|
-
const show = () => {
|
|
487
|
-
// Hash links, like settings-search targets, must reveal every enclosing disclosure before scrolling.
|
|
488
|
-
for (let d = el.closest && el.closest("details"); d; d = d.parentElement && d.parentElement.closest("details")) d.open = true;
|
|
489
|
-
if (typeof el.scrollIntoView === "function") el.scrollIntoView({ block: "start" });
|
|
490
|
-
};
|
|
491
|
-
if (revealSettingsTarget(el)) { const timer = setTimeout(show, 0); return () => clearTimeout(timer); }
|
|
492
|
-
show();
|
|
453
|
+
if (el && typeof el.scrollIntoView === "function") el.scrollIntoView({ block: "start" });
|
|
493
454
|
}, [section, navKey, !!data]);
|
|
494
455
|
// A dialog belongs to the navigation that opened it (its draft names one object, never another).
|
|
495
456
|
const open = dialog && dialog.key === navKey ? dialog : null;
|
|
@@ -500,7 +461,7 @@ export function SettingsPanel({ route, navKey }) {
|
|
|
500
461
|
// Which one is shown is the root's data-view: its class stays exactly the effects producer's ("panel p-settings", #1629).
|
|
501
462
|
const atList = typeof location !== "undefined" && location.pathname === "/settings";
|
|
502
463
|
return html`<div data-effect-panel="settings" class="panel p-settings" data-view=${atList ? "index" : "section"}>
|
|
503
|
-
<${PanelHeader} title=${tn("title")} sub=${data ? html
|
|
464
|
+
<${PanelHeader} title=${tn("title")} sub=${data && data.version ? html`<a class="pill ver" href=${data.version.includes("-") ? `${RELEASES}/latest` : `${RELEASES}/tag/v${data.version}`} target="_blank" rel="noopener">v${data.version}</a>` : null}>
|
|
504
465
|
<button type="button" class="btn btn-ghost btn-sm" disabled=${!ctx || yamlStaged(staged)} title=${ctx && yamlStaged(staged) ? tn("yamlUnsaved") : undefined} onClick=${openWizard}><${Icon} name="wand" size=${16} /><span class="hide-narrow">${tn("wizardButton")}</span></button>
|
|
505
466
|
<button type="button" class="icon-btn" aria-label=${tn("helpButton")} title=${tn("helpButton")} onClick=${() => setDialog({ kind: "help", key: navKey })}><${Icon} name="info" /></button>
|
|
506
467
|
</${PanelHeader}>
|
|
@@ -508,15 +469,14 @@ export function SettingsPanel({ route, navKey }) {
|
|
|
508
469
|
<span class="s-nav-head" id=${`s-grp-${g.id}`}>${tn(`grp_${g.id}`)}</span>
|
|
509
470
|
${g.sections.map((k) => html`<a key=${k} href=${sectionPath(k)} class=${`seg-item${k === section ? " active" : ""}`}
|
|
510
471
|
aria-current=${k === section ? "page" : undefined}><${Icon} name=${ICONS[k]} size=${16} /><span>${tn(`sec_${k}`)}</span></a>`)}</div>`)}</div></nav>
|
|
511
|
-
<div data-trust="panel-content" class="panel-body"><div class="col"
|
|
472
|
+
<div data-trust="panel-content" class="panel-body"><div class="col">
|
|
512
473
|
<a class="s-back" href=${settingsPath()}><${Icon} name="back" size=${16} /><span>${tn("title")}</span><span class="s-back-here">${tn(`sec_${section}`)}</span></a>
|
|
513
|
-
${section !== "runtimes" ? html`<${SettingsPageHead} section=${section}>${section === "agents" && ctx ? html`<button type="button" id="newAgentBtn" class="btn btn-primary" disabled=${yamlStaged(staged)} onClick=${() => toDialog({ kind: "create" })}><${Icon} name="plus" size=${16} />${tn("newAgent")}</button>` : null}</${SettingsPageHead}>` : null}
|
|
514
474
|
${searchable ? html`<div class="s-toolbar"><label class="s-search"><${Icon} name="search" size=${14} /><span class="sr-only">${tn("searchAll")}</span>
|
|
515
475
|
<input type="search" value=${search} placeholder=${tn("searchAll")} onInput=${(e) => setSearch(e.target.value)} /></label></div>` : null}
|
|
516
476
|
${op ? html`<${OperationCard} op=${op} schema=${data && data.schema} />` : null}
|
|
517
477
|
<${PendingChanges} inline=${true} />
|
|
518
478
|
${ctx && (section === "agents" || section === "chat") ? html`<${FirstRunCard} onConnect=${openWizard} />` : null}
|
|
519
|
-
|
|
479
|
+
${sectionBody}
|
|
520
480
|
</div></div>
|
|
521
481
|
${staged.size ? html`<${PendingBar} staged=${staged} busy=${opBusy(op)} onApply=${apply} onDiscard=${discard} section=${section} />` : null}
|
|
522
482
|
${open && ctx ? renderDialog(open, ctx, close) : null}
|
|
@@ -524,14 +484,6 @@ export function SettingsPanel({ route, navKey }) {
|
|
|
524
484
|
</div>`;
|
|
525
485
|
}
|
|
526
486
|
|
|
527
|
-
function AdvancedSettings({ ctx, staged, formKey, draftEpoch }) {
|
|
528
|
-
const [tab, setTab] = useSettingsTabs("advanced", "editor");
|
|
529
|
-
return html`<div class="s-advanced-layout"><${SettingsTabs} id="advanced" value=${tab} onChange=${setTab} items=${[{ id: "editor", label: layoutText("editor") }, { id: "effective", label: layoutText("effective") }]} />
|
|
530
|
-
<${SettingsTabPanel} group="advanced" id="editor" active=${tab === "editor"}><${Developer} key=${`dev:${draftEpoch}`} ctx=${ctx} /></${SettingsTabPanel}>
|
|
531
|
-
<${SettingsTabPanel} group="advanced" id="effective" active=${tab === "effective"}><${WebSection} key=${formKey} ctx=${ctx} staged=${staged} part="readonly" /></${SettingsTabPanel}>
|
|
532
|
-
</div>`;
|
|
533
|
-
}
|
|
534
|
-
|
|
535
487
|
/**
|
|
536
488
|
* #1604, #1665: Preferences. Synced across the person's devices (kept on the host, app-prefs.js): theme (theme.js),
|
|
537
489
|
* language (app-i18n.js) and HTML previews (preview.js, through the app's confirm). On the public link they are
|
|
@@ -653,23 +605,17 @@ export function DeviceSection() {
|
|
|
653
605
|
setTimeout(go, 0);
|
|
654
606
|
};
|
|
655
607
|
const publicLink = typeof document !== "undefined" && document.body && document.body.dataset.publicLink === "1";
|
|
656
|
-
return html
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
</
|
|
666
|
-
|
|
667
|
-
<div class="s-pref-help-row"><div><strong>${t("chat.tour")}</strong><p class="sub">${tn("prefsTourHint")}</p></div>
|
|
668
|
-
<button type="button" id="tourBtn" class="btn" title=${t("chat.tourBtnTitle")} onClick=${replay}><${Icon} name="info" size=${16} />${tn("prefsReplayTour")}</button></div>
|
|
669
|
-
<${ShortcutsHelpRow} />
|
|
670
|
-
</section>
|
|
671
|
-
<a class="s-pref-look-link" href=${settingsPath("look")}>${tn("prefsLookHint")}<${Icon} name="chevron" size=${16} /></a>
|
|
672
|
-
</div>`;
|
|
608
|
+
return html`<${ProfileCard} />
|
|
609
|
+
<section class="card s-device s-synced"><h3>${tn("syncedTitle")}</h3>
|
|
610
|
+
<p class="sub">${publicLink ? tn("syncedPublicLink") : tn("syncedLead")}</p>
|
|
611
|
+
<${DevicePrefs} labels=${true} />
|
|
612
|
+
${P() ? html`<label class="check"><input id="pref-previews" type="checkbox" checked=${on} onChange=${(e) => { const want = e.target.checked; setPreviewOptIn(want).then(setOn); }} />
|
|
613
|
+
<span>${t("chat.previews")}</span></label>` : null}
|
|
614
|
+
</section>
|
|
615
|
+
<section class="card s-device s-local"><h3>${tn("deviceTitle")}</h3>
|
|
616
|
+
<p class="sub">${tn("deviceLead")}</p>
|
|
617
|
+
<div class="s-device-row"><button type="button" id="tourBtn" class="btn" title=${t("chat.tourBtnTitle")} onClick=${replay}><${Icon} name="info" size=${16} />${t("chat.tour")}</button></div>
|
|
618
|
+
</section>`;
|
|
673
619
|
}
|
|
674
620
|
|
|
675
621
|
/**
|
|
@@ -679,7 +625,7 @@ export function DeviceSection() {
|
|
|
679
625
|
* refuses one; this only shows what it says.
|
|
680
626
|
*/
|
|
681
627
|
const view = (b) => ({ phase: "ready", name: b.name || "", shown: b.shown || "", id: b.id || "", bound: b.bound === true, platform: b.platform_name || "", error: "" });
|
|
682
|
-
export function ProfileCard(
|
|
628
|
+
export function ProfileCard() {
|
|
683
629
|
const [state, setState] = useState({ phase: "loading", name: "", shown: "", id: "", bound: false, platform: "", error: "" });
|
|
684
630
|
const [draft, setDraft] = useState("");
|
|
685
631
|
const lease = useLease();
|
|
@@ -707,24 +653,18 @@ export function ProfileCard({ embedded = false } = {}) {
|
|
|
707
653
|
const busy = state.phase !== "ready";
|
|
708
654
|
const changed = draft.trim() !== state.name;
|
|
709
655
|
const loading = state.phase === "loading";
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
${
|
|
713
|
-
<
|
|
714
|
-
|
|
656
|
+
return html`<section class="card s-device s-profile"><h3>${tn("profileTitle")}</h3>
|
|
657
|
+
${loading ? html`<div class="sk-profile-cover"><${Skeleton} variant="form" lines=${4} /></div>` : null}
|
|
658
|
+
<div class=${`s-profile-fields${loading ? " sk-reserve" : ""}`} aria-hidden=${loading ? "true" : undefined} inert=${loading || undefined}>
|
|
659
|
+
<p class="sub">${state.bound ? tn("profileLeadBound") : tn("profileLeadUnbound")}</p>
|
|
660
|
+
<div class="field"><label for="profile-name">${tn("profileName")}</label>
|
|
661
|
+
<input id="profile-name" type="text" maxlength="200" autocomplete="nickname" value=${draft} disabled=${busy}
|
|
715
662
|
placeholder=${state.platform || "web-user"} aria-invalid=${state.error ? "true" : "false"} aria-describedby="profile-help"
|
|
716
663
|
onInput=${(e) => setDraft(e.target.value)} onKeyDown=${(e) => { if (e.key === "Enter" && changed && draft.trim()) save(false); }} />
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
${state.name ? html`<div class="s-device-row"><button type="button" class="btn btn-ghost btn-sm" disabled=${busy} onClick=${() => save(true)}>${state.bound ? tn("profileUseAccount", state.platform || "web-user") : tn("profileClear")}</button></div>` : null}
|
|
722
|
-
<details class="s-pref-identity-details"><summary>${layoutText("profileIdentityDetails")}</summary><p class="sub">${state.bound ? tn("profileLeadBound") : tn("profileLeadUnbound")}</p></details>
|
|
723
|
-
</div></div>`;
|
|
724
|
-
const content = html`${loading ? html`<div class="sk-profile-cover"><${Skeleton} variant="form" lines=${4} /></div>` : null}
|
|
725
|
-
${fields}`;
|
|
726
|
-
return embedded ? html`<div class="s-profile s-pref-profile-fields">${content}</div>`
|
|
727
|
-
: html`<section class="card s-device s-profile"><h3>${tn("profileTitle")}</h3>${content}</section>`;
|
|
664
|
+
<p class="sub" id="profile-help">${state.error ? html`<span class="err" role="alert">${state.error}</span>` : tn("profileHelp", state.shown || "web-user", state.id)}</p></div>
|
|
665
|
+
<div class="s-device-row"><button type="button" class="btn primary" disabled=${busy || !changed || !draft.trim()} onClick=${() => save(false)}>${tn("profileSave")}</button>
|
|
666
|
+
${state.name ? html`<button type="button" class="btn" disabled=${busy} onClick=${() => save(true)}>${state.bound ? tn("profileUseAccount", state.platform || "web-user") : tn("profileClear")}</button>` : null}</div>
|
|
667
|
+
</div></section>`;
|
|
728
668
|
}
|
|
729
669
|
|
|
730
670
|
/** The operation in hand still owns Apply: its writes and job, or a restart of AgEnD from the press to its end. */
|
|
@@ -732,7 +672,7 @@ const opBusy = (op) => !!op && (["writing", "posting", "watching"].includes(op.p
|
|
|
732
672
|
function dropSecrets(staged) { for (const c of staged.values()) if (c.connectionSecret) c.connectionSecret.secret = ""; }
|
|
733
673
|
|
|
734
674
|
function renderDialog(d, ctx, close) {
|
|
735
|
-
if (d.kind === "agent") return
|
|
675
|
+
if (d.kind === "agent") return html`<${AgentDialog} name=${d.name} inst=${d.inst} ctx=${ctx} onClose=${close} />`;
|
|
736
676
|
if (d.kind === "bot") return html`<${BotDialog} key=${d.id} id=${d.id} ctx=${ctx} onClose=${close} />`;
|
|
737
677
|
if (d.kind === "newBot") return html`<${NewBotDialog} ctx=${ctx} onClose=${close} />`;
|
|
738
678
|
if (d.kind === "classic") return html`<${ClassicDialog} room=${d.room} ctx=${ctx} onClose=${close} />`;
|
|
@@ -766,17 +706,16 @@ function makeCtx(data, setData, stage, unstage, reload, reloadLive, alive, extra
|
|
|
766
706
|
});
|
|
767
707
|
stage(`agent:${name}`, {
|
|
768
708
|
label: tn("updateAgent", shortName(name, { ...inst, ...patch })),
|
|
769
|
-
impact:
|
|
770
|
-
request: { method: "PATCH", url:
|
|
709
|
+
impact: batchImpact(schema, Object.keys(patch), (k) => impactOf(schema, `instance.${k}`)),
|
|
710
|
+
request: { method: "PATCH", url: `/api/settings/fleet/instances/${encodeURIComponent(name)}`, body: patch },
|
|
771
711
|
});
|
|
772
712
|
},
|
|
773
713
|
async deleteAgent(name) {
|
|
774
714
|
if (!(await ask(tn("deleteAgent", name), { confirmLabel: tn("deleteAgentMenu"), danger: true }))) return;
|
|
775
715
|
if (!alive()) return; // the panel went while it asked: nothing staged, nothing said
|
|
776
|
-
const native = fleet.instances?.[name]?.runtime === "windows";
|
|
777
716
|
edit((d) => { delete d.fleet.instances[name]; });
|
|
778
|
-
stage(`agent:${name}`, { label: tn("deleteAgentLabel", name), impact:
|
|
779
|
-
request: { method: "DELETE", url:
|
|
717
|
+
stage(`agent:${name}`, { label: tn("deleteAgentLabel", name), impact: impactOf(schema, "instance.delete"),
|
|
718
|
+
request: { method: "DELETE", url: `/api/settings/fleet/instances/${encodeURIComponent(name)}` } });
|
|
780
719
|
},
|
|
781
720
|
stageChannels(key, nextChannels, meta) {
|
|
782
721
|
edit((d) => { d.fleet.channels = nextChannels; delete d.fleet.channel; });
|
|
@@ -821,67 +760,58 @@ function agentChannelLabel(inst, chs) {
|
|
|
821
760
|
return idx >= 0 ? `${chs[idx].type} (${chLabel(idx)})` : inst.channel_id;
|
|
822
761
|
}
|
|
823
762
|
|
|
824
|
-
function Agents({ ctx, search,
|
|
763
|
+
function Agents({ ctx, search, openDialog }) {
|
|
825
764
|
const insts = ctx.fleet.instances || {};
|
|
826
765
|
const [collapsed, setCollapsed] = useState(() => new Set());
|
|
827
766
|
const [busy, setBusy] = useState(() => new Map()); // name → the action under way
|
|
828
|
-
const [runtime, setRuntime] = useState("");
|
|
829
|
-
const [status, setStatus] = useState("");
|
|
830
|
-
// The computers' names come from the same list as the Runtime page (revoked ones included, so an Agent still bound to one can say so).
|
|
831
|
-
const catalog = useRuntimeCatalog(Object.values(insts).some((inst) => inst?.machine_id));
|
|
832
|
-
// A fleet with remote Runtimes off answers { enabled: false, machines: [] }: that is no list, not an empty one.
|
|
833
|
-
const machines = catalog.data && catalog.data.enabled !== false ? new Map(catalog.data.machines.map((machine) => [machine.id, { name: machine.name, status: machine.status }])) : null;
|
|
834
767
|
const chs = channelsOf(ctx.fleet);
|
|
835
768
|
// #2172: the sidebar's grouping — an agent in a team under its team, else under its first tag.
|
|
836
769
|
const teamsOf = (name) => Object.keys(ctx.fleet.teams || {}).filter((t) => Array.isArray(ctx.fleet.teams[t]?.members) && ctx.fleet.teams[t].members.includes(name));
|
|
837
|
-
const groups =
|
|
838
|
-
const active = !!(runtime || status || search.trim());
|
|
770
|
+
const groups = groupAgents(insts, ctx.live, search, (name) => navGroupOf({ tags: insts[name]?.tags, teams: teamsOf(name) }), groupLabel);
|
|
839
771
|
// One action per agent at a time: the whole row is off (Settings and ⋯ too), and the pressed button says it is working.
|
|
840
772
|
const run = async (name, action, work) => {
|
|
841
773
|
if (busy.has(name)) return;
|
|
842
774
|
setBusy((b) => new Map(b).set(name, action));
|
|
843
775
|
try { await work(); } finally { setBusy((b) => { const n = new Map(b); n.delete(name); return n; }); }
|
|
844
776
|
};
|
|
845
|
-
const head = html
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
if (!
|
|
850
|
-
return html`${head}
|
|
851
|
-
|
|
852
|
-
const folded = collapsed.has(group) && !
|
|
777
|
+
const head = html`<div class="list-head"><span>${Object.keys(insts).length === 1 ? tn("countAgent") : tn("countAgents", Object.keys(insts).length)}</span>
|
|
778
|
+
<button type="button" id="newAgentBtn" class="btn btn-primary" onClick=${() => openDialog({ kind: "create" })}><${Icon} name="plus" size=${16} />${tn("newAgent")}</button></div>`;
|
|
779
|
+
// #2233: after the agents, each login on this machine with Sign in (backend-signin.js).
|
|
780
|
+
const signIns = html`<${SignInList} />`;
|
|
781
|
+
if (!Object.keys(insts).length) return html`${head}<${Empty} icon="bot" title=${tn("noAgents")} />${signIns}`;
|
|
782
|
+
if (!groups.length) return html`${head}<${Empty} icon="search" title=${tn("noAgentMatch", search.trim())} />${signIns}`;
|
|
783
|
+
return html`${head}<div class="s-list">${groups.map(({ group, names }) => {
|
|
784
|
+
const folded = collapsed.has(group) && !search.trim(); // searching opens every group
|
|
853
785
|
return html`<section key=${group} class="s-group">
|
|
854
786
|
<button type="button" class="s-group-head" aria-expanded=${folded ? "false" : "true"}
|
|
855
787
|
onClick=${() => setCollapsed((c) => { const n = new Set(c); n.has(group) ? n.delete(group) : n.add(group); return n; })}>
|
|
856
788
|
<${Icon} name="chevron" size=${14} cls=${folded ? "caret folded" : "caret"} /><${GroupMark} group=${group} /><span class="grow">${groupLabel(group)}</span><span class="count">${names.length}</span></button>
|
|
857
789
|
${folded ? null : names.map((name) => {
|
|
858
790
|
const inst = insts[name];
|
|
859
|
-
const st =
|
|
791
|
+
const st = (ctx.live[name] && ctx.live[name].status) || "stopped";
|
|
860
792
|
const sum = effectiveSummary(ctx.live[name] || {}, inst, ctx.fleet.defaults || {});
|
|
861
793
|
const ch = agentChannelLabel(inst, chs);
|
|
862
794
|
const working = busy.has(name), doing = busy.get(name);
|
|
863
795
|
const label = (action, text) => (doing === action ? tn("working") : text);
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
<
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
</
|
|
870
|
-
|
|
871
|
-
<
|
|
872
|
-
<span class="s-agent-status"><span class=${dotClass(agentStatus(ctx.live[name]))} aria-hidden="true"></span><span>${agentFilterText(agentStatus(ctx.live[name]))}${agentRuntimeOffline(inst, ctx.live[name]) ? html`<small class="s-agent-runtime-state">${agentFilterText("offline")}</small>` : null}</span></span>
|
|
796
|
+
return html`<div key=${name} class="s-row">
|
|
797
|
+
<span class=${dotClass(st)} title=${tn(STATUS_KEY[st] || "stStopped")} aria-hidden="true"></span>
|
|
798
|
+
<span class="s-name" title=${name}>${shortName(name, inst)}</span>
|
|
799
|
+
<span class="s-meta" title=${sum.backend}>${sum.model}</span>
|
|
800
|
+
<span class="s-br" aria-hidden="true"></span>
|
|
801
|
+
<span class="tag">${tn("effortTag", sum.effort)}</span>
|
|
802
|
+
${ch ? html`<span class=${`tag${ch.includes("persona") ? " persona" : ""}`}>${ch}</span>` : null}
|
|
803
|
+
<span class="sr-only">${tn(STATUS_KEY[st] || "stStopped")}</span>
|
|
873
804
|
<span class="s-actions">
|
|
874
|
-
${inst.runtime === "windows" ? html`<a class="btn btn-sm" href=${chatPath(name)}>${t("app.chat")}</a>` : null}
|
|
875
805
|
<button type="button" class="btn btn-sm" disabled=${working} onClick=${() => openDialog({ kind: "agent", name, inst })}>${tn("settingsButton")}</button>
|
|
876
806
|
${st === "running" ? html`<button type="button" class="btn btn-sm" disabled=${working} onClick=${() => run(name, "pause", () => ctx.pauseWake(name, "pause"))}>${label("pause", tn("pause"))}</button>` : null}
|
|
877
807
|
${st === "paused" ? html`<button type="button" class="btn btn-sm" disabled=${working} onClick=${() => run(name, "wake", () => ctx.pauseWake(name, "wake"))}>${label("wake", tn("wake"))}</button>` : null}
|
|
878
|
-
${
|
|
879
|
-
<${Menu}
|
|
808
|
+
${st !== "paused" ? html`<button type="button" class="btn btn-sm" disabled=${working} onClick=${() => run(name, "startStop", () => ctx.startStop(name, st === "running"))}>${label("startStop", st === "running" ? tn("stop") : tn("start"))}</button>` : null}
|
|
809
|
+
<${Menu} label=${t("app.more")} items=${[{ key: "delete", label: tn("deleteAgentMenu"), icon: "trash", danger: true, disabled: working, onSelect: () => ctx.deleteAgent(name) }]} />
|
|
880
810
|
</span>
|
|
881
811
|
</div>`;
|
|
882
812
|
})}
|
|
883
813
|
</section>`;
|
|
884
|
-
})}</div
|
|
814
|
+
})}</div>${signIns}`;
|
|
885
815
|
}
|
|
886
816
|
|
|
887
817
|
function ConnectionRetry({ id, ctx }) {
|
|
@@ -911,10 +841,10 @@ function Bots({ ctx, search, openDialog }) {
|
|
|
911
841
|
const all = channelsOf(ctx.fleet);
|
|
912
842
|
const needle = search.trim().toLowerCase();
|
|
913
843
|
const rows = all.map((ch, i) => ({ ch, i })).filter(({ ch }) => !needle || [ch.id, ch.type, ch.group_id, ch.bot_token_env].some((v) => String(v ?? "").toLowerCase().includes(needle)));
|
|
914
|
-
const head = html`<div class="list-head
|
|
844
|
+
const head = html`<div class="list-head"><span>${all.length === 1 ? tn("countBot") : tn("countBots", all.length)}</span>
|
|
915
845
|
<button type="button" id="newBotBtn" class="btn btn-primary" onClick=${() => openDialog({ kind: "newBot" })}><${Icon} name="plus" size=${16} />${tn("newBot")}</button></div>`;
|
|
916
|
-
return html
|
|
917
|
-
${!rows.length ? html
|
|
846
|
+
return html`${head}
|
|
847
|
+
${!rows.length ? html`<${Empty} icon="plug" title=${needle ? tn("noAgentMatch", search.trim()) : tn("noBots")} />` : html`<div class="s-list">${rows.map(({ ch, i }) => {
|
|
918
848
|
const users = (ch.access && ch.access.allowed_users) || [];
|
|
919
849
|
const meta = ctx.connections.find((c, j) => channelId(c, j) === channelId(ch, i)) || {};
|
|
920
850
|
const token = meta.token_present;
|
|
@@ -939,7 +869,7 @@ function Bots({ ctx, search, openDialog }) {
|
|
|
939
869
|
${!overPublicLink && ctx.fleetUp && meta.status !== "connected" ? html`<${ConnectionRetry} id=${channelId(ch, i)} ctx=${ctx} />` : null}
|
|
940
870
|
<button type="button" class="btn btn-sm" onClick=${() => openDialog({ kind: "bot", id: channelId(ch, i) })}>${tn("settingsButton")}</button></span>
|
|
941
871
|
</div>`;
|
|
942
|
-
})}</div>`}
|
|
872
|
+
})}</div>`}`;
|
|
943
873
|
}
|
|
944
874
|
|
|
945
875
|
/**
|
|
@@ -989,40 +919,40 @@ function ProviderKeys({ ctx }) {
|
|
|
989
919
|
} catch { say(spec.id, { error: tn("failed") }); }
|
|
990
920
|
finally { inFlight.current.delete(spec.id); if (lease.current()) setBusy(new Set(inFlight.current)); }
|
|
991
921
|
};
|
|
992
|
-
return html`<section class="card s-provider-keys
|
|
993
|
-
${!ctx.providerSecrets.length ? html`<p class="note">${tn("noProviderVerifiers")}</p>` :
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
</div>`;
|
|
1003
|
-
})}</div>`}
|
|
1004
|
-
<p class="note s-api-action-note">${tn("uiProviderKeyActionHint")}</p>
|
|
922
|
+
return html`<section class="card s-provider-keys"><h3>${tn("providerKeys")}</h3>
|
|
923
|
+
${!ctx.providerSecrets.length ? html`<p class="note">${tn("noProviderVerifiers")}</p>` : ctx.providerSecrets.map((spec) => html`<div key=${spec.id} class="s-key">
|
|
924
|
+
<div class="s-key-row"><strong>${spec.display_name}</strong><span class="tag">${spec.token_present ? tn("keyConfigured") : tn("keyNotConfigured")}</span>
|
|
925
|
+
${spec.verifier === "available" ? html`<input type="password" autocomplete="new-password" aria-label=${tn("providerKeyInput", spec.display_name)}
|
|
926
|
+
placeholder=${spec.token_present ? tn("keyConfigured") : tn("keyNotConfigured")} value=${keys[spec.id] || ""} onInput=${(e) => setKeys((k) => ({ ...k, [spec.id]: e.target.value }))} />
|
|
927
|
+
<button type="button" class="btn btn-sm btn-primary" disabled=${busy.has(spec.id)} onClick=${() => go(spec)}>${tn("verifyApply")}</button>`
|
|
928
|
+
: html`<span class="tag">${tn("unsupportedVerifier")}</span>`}</div>
|
|
929
|
+
${spec.verifier === "available" ? null : html`<p class="note">${tn("unsupportedVerifierHint")}</p>`}
|
|
930
|
+
${notes[spec.id] ? html`<p class=${`feedback${notes[spec.id].error ? " error" : ""}`} role="status">${notes[spec.id].error || notes[spec.id].text}</p>` : null}
|
|
931
|
+
</div>`)}
|
|
1005
932
|
</section>`;
|
|
1006
933
|
}
|
|
1007
934
|
|
|
1008
935
|
function Classic({ ctx, search, openDialog }) {
|
|
1009
936
|
const rooms = Object.entries((ctx.classic && ctx.classic.channels) || {}).map(([key, ch]) => ({ key, ...ch }));
|
|
1010
|
-
if (!rooms.length) return html
|
|
937
|
+
if (!rooms.length) return html`<${Empty} icon="room" title=${tn("noClassic")} />`;
|
|
1011
938
|
const needle = search.trim().toLowerCase();
|
|
1012
939
|
const list = rooms.filter((c) => !needle || String(c.name || "").toLowerCase().includes(needle) || String(c.instanceName || "").toLowerCase().includes(needle))
|
|
1013
940
|
.sort((a, b) => ((STATUS_ORDER[ctx.classicRuntime(a.instanceName).status] ?? 9) - (STATUS_ORDER[ctx.classicRuntime(b.instanceName).status] ?? 9))
|
|
1014
941
|
|| String(a.name || "").localeCompare(String(b.name || "")));
|
|
1015
|
-
if (!list.length) return html
|
|
1016
|
-
return html`<div class="list-head
|
|
942
|
+
if (!list.length) return html`<${Empty} icon="search" title=${tn("noAgentMatch", search.trim())} />`;
|
|
943
|
+
return html`<div class="list-head"><span>${rooms.length === 1 ? tn("countRoom") : tn("countRooms", rooms.length)}</span></div><div class="s-list">${list.map((c) => {
|
|
1017
944
|
const rt = ctx.classicRuntime(c.instanceName);
|
|
1018
945
|
const sum = effectiveSummary(ctx.live[c.instanceName] || {}, c, ctx.fleet.defaults || {}, (ctx.classic && ctx.classic.defaults) || {});
|
|
1019
946
|
const adapter = c.adapterId || "discord";
|
|
1020
|
-
return html`<div key=${c.key} class="s-row
|
|
1021
|
-
<
|
|
1022
|
-
|
|
1023
|
-
</
|
|
1024
|
-
<
|
|
1025
|
-
<span class="
|
|
947
|
+
return html`<div key=${c.key} class="s-row">
|
|
948
|
+
<span class=${dotClass(rt.execution)} title=${tn(`exec_${rt.execution}`)} aria-hidden="true"></span>
|
|
949
|
+
<span class="s-name" title=${c.instanceName || ""}>${shortName(c.name || c.instanceName || "?", { display_name: c.display_name })}</span>
|
|
950
|
+
<span class="s-meta" title=${sum.backend}>${sum.model}</span>
|
|
951
|
+
<span class="s-br" aria-hidden="true"></span>
|
|
952
|
+
<span class="tag">${tn("effortTag", sum.effort)}</span>
|
|
953
|
+
<span class=${`tag${adapter !== "discord" ? " persona" : ""}`}>${adapter}</span>
|
|
954
|
+
${c.collab ? html`<span class="tag">collab</span>` : null}
|
|
955
|
+
<span class="tag">${tn(`exec_${rt.execution}`)}</span>
|
|
1026
956
|
<span class="s-actions">
|
|
1027
957
|
<button type="button" class="btn btn-sm" onClick=${() => openDialog({ kind: "classic", room: c })}>${tn("settingsButton")}</button>
|
|
1028
958
|
${rt.status === "running" ? html`<button type="button" class="btn btn-sm" onClick=${() => ctx.pauseWake(c.instanceName, "pause")}>${tn("pause")}</button>` : null}
|
|
@@ -1072,6 +1002,7 @@ function General({ ctx, part = "all" }) {
|
|
|
1072
1002
|
const { schema } = ctx;
|
|
1073
1003
|
const d = ctx.fleet.defaults || {}, c = (ctx.classic && ctx.classic.defaults) || {};
|
|
1074
1004
|
const hang = d.hang_detector || {}, startup = d.startup || {};
|
|
1005
|
+
const primary = channelsOf(ctx.fleet)[0];
|
|
1075
1006
|
const original = useMemo(() => ({ c: structuredClone(c) }), []);
|
|
1076
1007
|
const base = useMemo(() => generalForm(d, c, ctx.fleet, schema), []);
|
|
1077
1008
|
const [f, setF] = useDraft(ctx, "general", () => base);
|
|
@@ -1087,9 +1018,6 @@ function General({ ctx, part = "all" }) {
|
|
|
1087
1018
|
const warnings = { concurrency: f.concurrency.trim() !== "" && num(f.concurrency) > 4 ? "concurrencyWarning" : "", stagger: num(f.stagger) < 100 ? "staggerWarning" : "" };
|
|
1088
1019
|
const ready = !Object.values(errors).some(Boolean);
|
|
1089
1020
|
const firstError = Object.values(errors).find(Boolean);
|
|
1090
|
-
// What saving the edited fields costs (the schema's impact, the agents that set the field themselves): shown under each
|
|
1091
|
-
// edited field, and added up on the Save bar.
|
|
1092
|
-
const notes = sharedNotes({ schema, fleet: ctx.fleet, classic: ctx.classic, classicStatus: (name) => ctx.classicRuntime(name).status, live: ctx.live, fleetUp: ctx.fleetUp, f, base, errors });
|
|
1093
1021
|
// #2347: every edit, staged as it is made (the first render included: a draft kept from before is staged again).
|
|
1094
1022
|
useEffect(() => {
|
|
1095
1023
|
if (!ready) {
|
|
@@ -1136,12 +1064,10 @@ function General({ ctx, part = "all" }) {
|
|
|
1136
1064
|
// that sets it (POST /ui/config; a change to it waits for a fleet admin's OK, as it did there).
|
|
1137
1065
|
const roots = f.roots.map((r) => String(r).trim()).filter(Boolean); // ChipList keeps "2024" as a number; paths are text
|
|
1138
1066
|
syncStage(ctx, "fleet:project_roots", sameValue(roots, base.roots) ? null : { label: tn("projectRootsTitle"), count: 1,
|
|
1139
|
-
impact: impactOf(schema, "fleet.project_roots"),
|
|
1140
|
-
request: { method: "POST", url: "/ui/config", body: { project_roots: roots } } });
|
|
1067
|
+
impact: impactOf(schema, "fleet.project_roots"), request: { method: "POST", url: "/ui/config", body: { project_roots: roots } } });
|
|
1141
1068
|
const dKeys = Object.keys(defaultsPatch), cKeys = Object.keys(classicPatch);
|
|
1142
|
-
// The bar says what this Save costs in the page's own words (how many agents restart), not a bare impact label.
|
|
1143
1069
|
syncStage(ctx, "defaults:fleet", dKeys.length ? { label: tn("updateDefaults"), count: dKeys.length,
|
|
1144
|
-
impact: batchImpact(schema, dKeys, (k) => defaultsImpact(schema, k)),
|
|
1070
|
+
impact: batchImpact(schema, dKeys, (k) => defaultsImpact(schema, k)),
|
|
1145
1071
|
request: { method: "PUT", url: "/api/settings/fleet/defaults", body: defaultsPatch } } : null);
|
|
1146
1072
|
syncStage(ctx, "defaults:classic", cKeys.length ? { label: tn("updateClassicDefaults"), count: cKeys.length,
|
|
1147
1073
|
impact: cKeys.every((k) => impactOf(schema, `classic_defaults.${k}`) === "now") ? "now" : "fleet",
|
|
@@ -1155,17 +1081,39 @@ function General({ ctx, part = "all" }) {
|
|
|
1155
1081
|
log_level: !d.log_level, agent_mode: !d.agent_mode, hangOn: !hasOwn(hang, "enabled"), hang: !hasOwn(hang, "timeout_minutes"),
|
|
1156
1082
|
concurrency: !hasOwn(startup, "concurrency"), stagger: !hasOwn(startup, "stagger_delay_ms"),
|
|
1157
1083
|
};
|
|
1084
|
+
const dm = (k) => (unset[k] && sameValue(f[k], base[k]) ? html`<${DefaultMark} />` : null);
|
|
1158
1085
|
const fromDefaults = (k, value, target) => ({ text: valueText(value), builtin: !hasOwn(d, k), from: inAgentDefaults(target) });
|
|
1159
|
-
const L = (text, field, id) => html`<${Label} text=${text} schema=${schema} field=${field} htmlFor=${id} />`;
|
|
1086
|
+
const L = (text, field, id, k) => html`<${Label} text=${text} schema=${schema} field=${field} htmlFor=${id} mark=${k ? dm(k) : null} />`;
|
|
1160
1087
|
const fleetReply = replyGuardSupported(f.backend, f.agent_mode, d.kiro_ui) ? tn("replyGuardSupported") : tn("replyGuardUnsupported", f.backend, f.agent_mode);
|
|
1161
1088
|
const classicReply = replyGuardSupported(f.classicBackend, f.agent_mode, d.kiro_ui) ? tn("replyGuardSupported") : tn("replyGuardUnsupported", f.classicBackend, f.agent_mode);
|
|
1162
1089
|
// #2347: Agent defaults show the fleet's part; Chat & connections ClassicBot's. One form, one draft either way.
|
|
1163
1090
|
const fleetPart = part !== "classic", classicPart = part !== "fleet";
|
|
1164
|
-
return html`<div class=${
|
|
1165
|
-
${fleetPart ? html
|
|
1166
|
-
${classicPart ? html`<section class="card s-classic-defaults-card"><h3>${tn("classicDefaultsTitle")}</h3>
|
|
1091
|
+
return html`<div class=${`form s-general s-part-${part}`}>
|
|
1092
|
+
${fleetPart ? html`<section class="card"><h3>${tn("defaultsTitle")}</h3>
|
|
1167
1093
|
<div class="grid2">
|
|
1168
|
-
<div class=${fc("field", "
|
|
1094
|
+
<div class=${fc("field", "locale")}>${L(tn("language"), "defaults.locale", "g-locale", "locale")}<${Select} id="g-locale" value=${f.locale} onChange=${set("locale")}
|
|
1095
|
+
options=${localeOptions(f.locale).map((o) => (o.auto ? { value: "", label: tn("localeAuto") } : o))} /></div>
|
|
1096
|
+
<div class=${fc("field", "backend")}>${L(tn("defaultBackend"), "defaults.backend", "g-be", "backend")}<${BackendSelect} id="g-be" value=${f.backend} onChange=${set("backend")} /></div>
|
|
1097
|
+
<div class=${fc("field", "model")}>${L(tn("defaultModel"), "defaults.model", "g-model", "model")}<${ModelSelect} id="g-model" value=${f.model} onChange=${set("model")}
|
|
1098
|
+
backend=${f.backend || "claude-code"} inherit=${tn("modelCliDefault")} /></div>
|
|
1099
|
+
<div class=${fc("field", "auto")}>${L(`${tn("autoPause")} (${tn("minutes")})`, "defaults.auto_pause_after", "g-auto", "auto")}<input id="g-auto" type="number" min="0" step="1" class=${errors.auto ? "invalid" : ""} value=${f.auto} onInput=${(e) => set("auto")(e.target.value)} /><${Feedback} error=${errors.auto} /></div>
|
|
1100
|
+
<div class=${fc("field", "tool_progress")}>${L(tn("toolProgress"), "defaults.tool_progress", "g-tp", "tool_progress")}<${Select} id="g-tp" value=${f.tool_progress} onChange=${set("tool_progress")} options=${TOOL_PROGRESS} /></div>
|
|
1101
|
+
<div class=${fc("field", "visibility")}>${L(tn("crossInstanceVisibility"), "defaults.cross_instance_visibility", "g-vis", "visibility")}<${Select} id="g-vis" value=${f.visibility} onChange=${set("visibility")} options=${VISIBILITY_MODES} />
|
|
1102
|
+
<p class="note">${tn("crossInstanceVisibilityHint")}</p></div>
|
|
1103
|
+
<div class=${fc("field", "tips")}>${L(tn("dailyTips"), "defaults.tips", "g-tips", "tips")}<${Select} id="g-tips" value=${f.tips} onChange=${set("tips")} options=${noticeChoices()} /><${InEffect} text=${noticeLabel(noticeMode(f.tips))} /><p class="note">${tn("dailyTipsHint")}</p></div>
|
|
1104
|
+
<div class=${fc("field", "replyTriggers")}><label class="check"><input id="g-reply-triggers" type="checkbox" checked=${f.replyTriggers} onChange=${(e) => set("replyTriggers")(e.target.checked)} /><span>${tn("replyTriggers")}</span>${dm("replyTriggers")}<${Impact} schema=${schema} field="defaults.reply_triggers" /></label><p class="note">${tn("replyTriggersHint")}</p></div>
|
|
1105
|
+
<div class=${fc("field", "reply")}><label class="check"><input id="g-reply" type="checkbox" checked=${f.reply} onChange=${(e) => set("reply")(e.target.checked)} /><span>${tn("replyCompletionGuard")}</span>${dm("reply")}<${Impact} schema=${schema} field="defaults.reply_completion_guard" /></label>
|
|
1106
|
+
<p class="note">${fleetReply}</p></div>
|
|
1107
|
+
</div>
|
|
1108
|
+
<fieldset id="g-dash" class=${fc("field dash-perms", ...DASHBOARD_FEATURES.map((k) => `dash_${k}`))}><legend>${L(tn("dashboardAccess"), "defaults.dashboard")}</legend>
|
|
1109
|
+
<p class="note">${tn("dashboardDefaultsHint")}</p>
|
|
1110
|
+
${DASHBOARD_FEATURES.map((k) => html`<label key=${k} class="check"><input type="checkbox" checked=${f[`dash_${k}`]}
|
|
1111
|
+
onChange=${(e) => set(`dash_${k}`)(e.target.checked)} /><span>${tn(`dashboard_${k}`)}</span></label>`)}
|
|
1112
|
+
</fieldset>
|
|
1113
|
+
</section>` : null}
|
|
1114
|
+
${classicPart ? html`<section class="card"><h3>${tn("classicDefaultsTitle")}</h3>
|
|
1115
|
+
<div class="grid2">
|
|
1116
|
+
<div class=${fc("field", "classicBackend")}>${L(tn("classicBackend"), "classic_defaults.backend", "g-cbe")}<${BackendSelect} id="g-cbe" value=${f.classicBackend} onChange=${set("classicBackend")} />
|
|
1169
1117
|
${!c.backend && f.classicBackend === base.classicBackend ? html`<${Inherited} text=${valueText(f.classicBackend, "backend")} builtin=${!d.backend} from=${inAgentDefaults("#g-be")} />` : null}</div>
|
|
1170
1118
|
<div class=${fc("field", "classicToolProgress", "classicToolProgressInherit")}>${L(tn("toolProgress"), "classic_defaults.tool_progress", "g-ctp")}
|
|
1171
1119
|
<${Override} inherit=${f.classicToolProgressInherit} onInherit=${set("classicToolProgressInherit")} inherited=${fromDefaults("tool_progress", d.tool_progress ?? "off", "#g-tp")}>
|
|
@@ -1184,7 +1132,31 @@ function General({ ctx, part = "all" }) {
|
|
|
1184
1132
|
<div id="g-guilds" class=${fc("field", "guilds")}>${L(tn("allowedGuilds"), "classic.allowed_guilds")}<${ChipList} items=${f.guilds} onChange=${set("guilds")} placeholder=${tn("guildIdPlaceholder")} label=${tn("allowedGuilds")} /></div>
|
|
1185
1133
|
</div>
|
|
1186
1134
|
</section>` : null}
|
|
1187
|
-
|
|
1135
|
+
${fleetPart ? html`<section class="card" id="project-roots"><h3>${tn("projectRootsTitle")}</h3>
|
|
1136
|
+
<p class="note">${tn("projectRootsHint")}</p>
|
|
1137
|
+
<div id="g-roots" class=${fc("field", "roots")}>${L(tn("projectRootsTitle"), "fleet.project_roots")}<${ChipList} items=${f.roots} onChange=${set("roots")} placeholder="/path/to/projects" label=${tn("projectRootsTitle")} />
|
|
1138
|
+
${f.roots.length ? null : html`<${InEffect} text=${tn("projectRootsAnywhere")} />`}</div>
|
|
1139
|
+
</section>` : null}
|
|
1140
|
+
${fleetPart ? html`<${Drawer} title=${tn("advancedSection")}>
|
|
1141
|
+
<section class="card"><h3>${tn("runtimeResources")}</h3><div class="grid2">
|
|
1142
|
+
<div class=${fc("field", "tool_set")}>${L(tn("toolSet"), "defaults.tool_set", "g-ts", "tool_set")}<${Select} id="g-ts" value=${f.tool_set} onChange=${set("tool_set")}
|
|
1143
|
+
options=${[{ value: "", label: tn("toolSetUnset", toolSetDefault({}, {}), toolSetDefault({}, { general_topic: true })) }, ...TOOL_SETS]} /></div>
|
|
1144
|
+
<div class=${fc("field", "log_level")}>${L(tn("logLevel"), "defaults.log_level", "g-ll", "log_level")}<${Select} id="g-ll" value=${f.log_level} onChange=${set("log_level")} options=${LOG_LEVELS} /></div>
|
|
1145
|
+
<div class=${fc("field", "agent_mode")}>${L(tn("agentMode"), "defaults.agent_mode", "g-am", "agent_mode")}<${Select} id="g-am" value=${f.agent_mode} onChange=${set("agent_mode")} options=${AGENT_MODES} /></div>
|
|
1146
|
+
</div></section>
|
|
1147
|
+
<section class="card"><h3>${tn("detection")}</h3><div class="grid2">
|
|
1148
|
+
<label class=${fc("check", "hangOn")}><input id="g-hang-on" type="checkbox" checked=${f.hangOn} onChange=${(e) => set("hangOn")(e.target.checked)} /><span>${tn("hangEnabled")}</span>${dm("hangOn")}<${Impact} schema=${schema} field="defaults.hang_detector" /></label>
|
|
1149
|
+
<div class=${fc("field", "hang")}>${L(`${tn("hangTimeout")} (${tn("minutes")})`, "defaults.hang_detector", "g-hang", "hang")}<input id="g-hang" type="number" min="0.1" step="0.5" class=${errors.hang ? "invalid" : ""} value=${f.hang} onInput=${(e) => set("hang")(e.target.value)} /><${Feedback} error=${errors.hang} /></div>
|
|
1150
|
+
</div></section>
|
|
1151
|
+
<section class="card"><h3>${tn("startup")}</h3><div class="grid2">
|
|
1152
|
+
<div class=${fc("field", "concurrency")}>${L(tn("concurrency"), "fleet.spawn_concurrency", "g-conc")}<input id="g-conc" type="number" min="1" max="20" step="1" class=${errors.concurrency ? "invalid" : ""} value=${f.concurrency} onInput=${(e) => set("concurrency")(e.target.value)} /><${Feedback} error=${errors.concurrency} warning=${warnings.concurrency} />
|
|
1153
|
+
${f.concurrency.trim() === "" ? html`<${InEffect} text=${tn("concurrencyAuto")} />` : null}</div>
|
|
1154
|
+
<div class=${fc("field", "stagger")}>${L(`${tn("staggerDelay")} (ms)`, "fleet.spawn_stagger_ms", "g-stag", "stagger")}<input id="g-stag" type="number" min="0" max="30000" step="100" class=${errors.stagger ? "invalid" : ""} value=${f.stagger} onInput=${(e) => set("stagger")(e.target.value)} /><${Feedback} error=${errors.stagger} warning=${warnings.stagger} /></div>
|
|
1155
|
+
</div></section>
|
|
1156
|
+
<section class="card"><h3>${tn("accessTitle")}</h3>
|
|
1157
|
+
<p class="note">${primary ? tn("accessMovedHint", primary.id || chLabel(0)) : tn("noBots")}</p></section>
|
|
1158
|
+
</${Drawer}>` : null}
|
|
1159
|
+
</div>`;
|
|
1188
1160
|
}
|
|
1189
1161
|
|
|
1190
1162
|
/**
|
|
@@ -1224,7 +1196,6 @@ export function uploadMbInEffect(web) {
|
|
|
1224
1196
|
}
|
|
1225
1197
|
function WebSection({ ctx, staged, part = "all" }) {
|
|
1226
1198
|
const { schema } = ctx;
|
|
1227
|
-
const [accessTab, setAccessTab] = useSettingsTabs("access", "login");
|
|
1228
1199
|
const web = ctx.fleet.web || {}, local = (web.session && web.session.local) || {}, term = ctx.fleet.web_terminal || {};
|
|
1229
1200
|
// Over the public link the fields read only; the Guests and Web authority cards are not offered (the server never
|
|
1230
1201
|
// serves their reads there).
|
|
@@ -1236,14 +1207,13 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1236
1207
|
usagePub: web.usage_report_on_public_link === true, // #2122: off by default
|
|
1237
1208
|
levels: web.office_levels !== false, // #2661: on by default
|
|
1238
1209
|
cdn: web.preview_cdn === true, // #2911 (7): off by default
|
|
1239
|
-
loginQr: web.login_qr === true, // #3061 (P2b): off by default
|
|
1240
1210
|
pub: { allow_public: (web.public_link && web.public_link.allow_public) ?? true, ttl_minutes: (web.public_link && web.public_link.ttl_minutes) ?? 120, protocol: (web.public_link && web.public_link.protocol) ?? "http2", hostname: (web.public_link && web.public_link.hostname) ?? "", tunnel_token_env: (web.public_link && web.public_link.tunnel_token_env) ?? "", origin_port: (web.public_link && web.public_link.origin_port) ?? 19282, auto_open: (web.public_link && web.public_link.auto_open) ?? false },
|
|
1241
1211
|
session: { absolute_hours: local.absolute_hours ?? null, idle_hours: local.idle_hours ?? null },
|
|
1242
1212
|
terminal: { enabled: term.enabled ?? null, ttl_minutes: term.ttl_minutes ?? null },
|
|
1243
1213
|
}), []);
|
|
1244
1214
|
const text = (v) => (v === null || v === undefined ? "" : String(v));
|
|
1245
1215
|
/** #2347: a field's row class: `s-dirty` while it differs from what is saved (the draft may come from before). */
|
|
1246
|
-
const savedForm = useMemo(() => ({ notify: String(original.notify), echo: original.echo, log: original.log, usagePub: original.usagePub, levels: original.levels, cdn: original.cdn,
|
|
1216
|
+
const savedForm = useMemo(() => ({ notify: String(original.notify), echo: original.echo, log: original.log, usagePub: original.usagePub, levels: original.levels, cdn: original.cdn, pub: original.pub.allow_public,
|
|
1247
1217
|
ttl: String(original.pub.ttl_minutes), protocol: original.pub.protocol, hostname: original.pub.hostname, originPort: String(original.pub.origin_port),
|
|
1248
1218
|
abs: text(original.session.absolute_hours), idle: text(original.session.idle_hours), termOn: original.terminal.enabled !== false,
|
|
1249
1219
|
termTtl: text(original.terminal.ttl_minutes), autoOpen: original.pub.auto_open }), []);
|
|
@@ -1257,7 +1227,7 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1257
1227
|
return {
|
|
1258
1228
|
notify: String(pick(pending, "notify_login", original.notify)),
|
|
1259
1229
|
echo: pick(pending, "echo_to_channel", original.echo), log: pick(pending, "log_tab", original.log), usagePub: pick(pending, "usage_report_on_public_link", original.usagePub),
|
|
1260
|
-
levels: pick(pending, "office_levels", original.levels), cdn: pick(pending, "preview_cdn", original.cdn),
|
|
1230
|
+
levels: pick(pending, "office_levels", original.levels), cdn: pick(pending, "preview_cdn", original.cdn),
|
|
1261
1231
|
pub: pick(pub, "allow_public", original.pub.allow_public), ttl: String(pick(pub, "ttl_minutes", original.pub.ttl_minutes)), protocol: pick(pub, "protocol", original.pub.protocol),
|
|
1262
1232
|
hostname: pick(pub, "hostname", original.pub.hostname), originPort: String(pick(pub, "origin_port", original.pub.origin_port)), autoOpen: pick(pub, "auto_open", original.pub.auto_open),
|
|
1263
1233
|
abs: text(pick(session, "absolute_hours", original.session.absolute_hours)), idle: text(pick(session, "idle_hours", original.session.idle_hours)),
|
|
@@ -1311,7 +1281,6 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1311
1281
|
...(f.usagePub !== original.usagePub ? { usage_report_on_public_link: f.usagePub } : {}),
|
|
1312
1282
|
...(f.levels !== original.levels ? { office_levels: f.levels } : {}),
|
|
1313
1283
|
...(f.cdn !== original.cdn ? { preview_cdn: f.cdn } : {}),
|
|
1314
|
-
...(f.loginQr !== original.loginQr ? { login_qr: f.loginQr } : {}),
|
|
1315
1284
|
...(Object.keys(publicPatch).length ? { public_link: publicPatch } : {}),
|
|
1316
1285
|
...(Object.keys(sessionPatch).length ? { session: { local: sessionPatch } } : {}),
|
|
1317
1286
|
...(Object.keys(terminalPatch).length ? { web_terminal: terminalPatch } : {}),
|
|
@@ -1323,7 +1292,6 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1323
1292
|
...(body.usage_report_on_public_link !== undefined ? ["web.usage_report_on_public_link"] : []),
|
|
1324
1293
|
...(body.office_levels !== undefined ? ["web.office_levels"] : []),
|
|
1325
1294
|
...(body.preview_cdn !== undefined ? ["web.preview_cdn"] : []),
|
|
1326
|
-
...(body.login_qr !== undefined ? ["web.login_qr"] : []),
|
|
1327
1295
|
...Object.keys(publicPatch).map((k) => `web.public_link.${k}`),
|
|
1328
1296
|
...Object.keys(sessionPatch).map((k) => `web.session.local.${k}`),
|
|
1329
1297
|
...Object.keys(terminalPatch).map((k) => `web_terminal.${k}`),
|
|
@@ -1358,35 +1326,17 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1358
1326
|
if (v === undefined) return html`${roText(webReadOnlyDefault(path, ctx.fleet))} <${DefaultMark} />${capped ? html` <span class="tag">${tn("cappedByTotal")}</span>` : null}`;
|
|
1359
1327
|
return applies === v ? roText(v) : html`${roText(v)} <span class="tag">${tn("inEffectShort", roText(applies))}</span>`;
|
|
1360
1328
|
};
|
|
1361
|
-
//
|
|
1362
|
-
//
|
|
1329
|
+
// #2347: one form, one draft, shown where each part belongs — Access & security (sessions, the browser terminal, the
|
|
1330
|
+
// public link and its fixed address, guests, web authority), Chat & connections (web echo), Web dashboard (the Log tab,
|
|
1331
|
+
// usage over the public link), Advanced (what only fleet.yaml sets).
|
|
1363
1332
|
const has = (p) => part === "all" || part === p;
|
|
1364
1333
|
const lock = (body) => html`<fieldset class="s-web-fields" disabled=${overPublicLink}>${body}</fieldset>`;
|
|
1365
|
-
const tabs = [
|
|
1366
|
-
{ id: "login", label: layoutText("accessLogin") },
|
|
1367
|
-
{ id: "guests", label: layoutText("accessGuests") },
|
|
1368
|
-
{ id: "sharing", label: layoutText("accessSharing") },
|
|
1369
|
-
];
|
|
1370
|
-
const toggleRow = (key, id, label, hint, impact) => html`<div class=${fc("s-setting-row", key)}>
|
|
1371
|
-
<div class="s-setting-copy"><label for=${id}>${part === "dashboard" ? layoutText(`revDashboard_${key}`) : tn(label)}<${Impact} schema=${schema} field=${impact} /></label>
|
|
1372
|
-
<p class="note" id=${`${id}-hint`}>${part === "dashboard" ? layoutText(`revDashboardHint_${key}`) : tn(hint)}</p>
|
|
1373
|
-
${part === "dashboard" ? html`<details class="s-setting-details"><summary>${layoutText("revDetails")}</summary><p class="note"><strong>${tn(label)}</strong> ${tn(hint)}</p></details>` : null}
|
|
1374
|
-
</div>
|
|
1375
|
-
<input class="s-ui-toggle" id=${id} type="checkbox" checked=${f[key]} aria-describedby=${`${id}-hint`} onChange=${(e) => set(key)(e.target.checked)} />
|
|
1376
|
-
</div>`;
|
|
1377
|
-
const configured = (path) => { const [top, key] = path.split("."); return (top === "web" ? web : term)[key] !== undefined; };
|
|
1378
1334
|
return html`<div class=${`form s-web s-part-${part}`}>
|
|
1379
|
-
${
|
|
1380
|
-
${
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
${/* #3008: a web-only fleet's connections from outside — changed on this computer only, shown (read-only) elsewhere. */ ""}
|
|
1385
|
-
<${OutsideCard} />
|
|
1386
|
-
${/* Refs #3061 (P2a): sign a new device in with its 8-character code — approved here by the verified owner. */ ""}
|
|
1387
|
-
<${DevicesCard} />
|
|
1388
|
-
${lock(html`<section class="card s-access-session"><h3>${layoutText("revLoginSessions")}</h3>
|
|
1389
|
-
<div class=${fc("field", "notify")}><label for="webNotifyLogin">${tn("webNotifyLogin")}<${Impact} schema=${schema} field="web.notify_login" /></label><${Select} id="webNotifyLogin" value=${f.notify} onChange=${set("notify")} options=${noticeChoices()} /><${InEffect} text=${noticeLabel(noticeMode(f.notify))} /></div>
|
|
1335
|
+
${has("access") ? html`<p class="sub">${tn("webLead")}</p>` : null}
|
|
1336
|
+
${overPublicLink && part !== "readonly" ? html`<p class="note" role="status" id="webPublicRefused">${tn("webPublicRefused")}</p>` : null}
|
|
1337
|
+
${has("access") ? lock(html`<section class="card"><h3>${tn("webSessionTitle")}</h3>
|
|
1338
|
+
<p class="note">${tn("webSessionHint")}</p>
|
|
1339
|
+
<div class=${fc("field", "notify")}><label for="webNotifyLogin">${tn("webNotifyLogin")}<${Impact} schema=${schema} field="web.notify_login" /></label><${Select} id="webNotifyLogin" value=${f.notify} onChange=${set("notify")} options=${noticeChoices()} /><${InEffect} text=${noticeLabel(noticeMode(f.notify))} />${web.notify_login === undefined ? html`<${DefaultMark} />` : null}<p class="note">${tn("webNotifyLoginHint")}</p></div>
|
|
1390
1340
|
<div class="grid2">
|
|
1391
1341
|
<div class=${fc("field", "abs")}><label for="webSessionAbsolute">${tn("sessionAbsolute")}</label><input id="webSessionAbsolute" type="number" min="1" max="720" step="any"
|
|
1392
1342
|
class=${errors.abs ? "invalid" : ""} value=${f.abs} onInput=${(e) => set("abs")(e.target.value)} /><${Feedback} error=${errors.abs} />
|
|
@@ -1395,16 +1345,8 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1395
1345
|
class=${errors.idle ? "invalid" : ""} value=${f.idle} onInput=${(e) => set("idle")(e.target.value)} /><${Feedback} error=${errors.idle} />
|
|
1396
1346
|
${value(f.idle) === null && !errors.abs ? html`<${InEffect} text=${tn("hoursValue", idle)} why=${idle < 48 ? tn("cappedBySession") : null} />` : null}</div>
|
|
1397
1347
|
</div>
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
<label class=${fc("check", "loginQr")}><input id="webLoginQr" type="checkbox" checked=${f.loginQr} aria-describedby="webLoginQr-hint" onChange=${(e) => set("loginQr")(e.target.checked)} /><span>${tn("webLoginQr")}</span><${Impact} schema=${schema} field="web.login_qr" /></label>
|
|
1401
|
-
<p class="note" id="webLoginQr-hint">${tn("webLoginQrHint")}</p>
|
|
1402
|
-
<details class="s-setting-details"><summary>${layoutText("revSessionDetails")}</summary><p class="note">${tn("webSessionHint")}</p><p class="note">${tn("webNotifyLoginHint")}</p></details>
|
|
1403
|
-
</section>`)}
|
|
1404
|
-
${!overPublicLink ? html`<${WebAuthorityCard} ctx=${ctx} staged=${staged} />` : null}
|
|
1405
|
-
${/* A tab whose shell is from before Settings → Hub (its app-route.js has no "hub"): the Hub cards stay here. */ ""}
|
|
1406
|
-
${!SETTINGS_SECTIONS.includes("hub") ? html`<${HubSection} overPublicLink=${overPublicLink} hubHost=${!!ctx.fleet.hub?.hubId} hubOrigin=${ctx.fleet.hub?.webOrigin} />` : null}
|
|
1407
|
-
<details class="drawer s-terminal-disclosure"><summary>${tn("webTerminalTitle")}</summary><div class="drawer-body">${lock(html`<section class="card s-access-terminal"><h3>${tn("webTerminalTitle")}</h3>
|
|
1348
|
+
</section>
|
|
1349
|
+
<section class="card"><h3>${tn("webTerminalTitle")}</h3>
|
|
1408
1350
|
<p class="note">${tn("webTerminalHint")}</p>
|
|
1409
1351
|
<label class=${fc("check", "termOn")}><input id="webTerminalEnabled" type="checkbox" checked=${f.termOn} onChange=${(e) => set("termOn")(e.target.checked)} /><span>${tn("webTerminalEnabled")}</span><${Impact} schema=${schema} field="web_terminal.enabled" /></label>
|
|
1410
1352
|
<div class="grid2">
|
|
@@ -1412,19 +1354,8 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1412
1354
|
class=${errors.termTtl ? "invalid" : ""} value=${f.termTtl} onInput=${(e) => set("termTtl")(e.target.value)} /><${Feedback} error=${errors.termTtl} />
|
|
1413
1355
|
${value(f.termTtl) === null ? html`<${InEffect} text=${tn("minutesValue", 10)} />` : null}</div>
|
|
1414
1356
|
</div>
|
|
1415
|
-
</section
|
|
1416
|
-
|
|
1417
|
-
<button type="button" onClick=${() => setAccessTab("guests")}><${Icon} name="user" size=${18} /><span><strong>${layoutText("accessGuests")}</strong><small>${layoutText("revRelatedGuests")}</small></span><${Icon} name="chevron" size=${16} /></button>
|
|
1418
|
-
<button type="button" onClick=${() => setAccessTab("sharing")}><${Icon} name="globe" size=${18} /><span><strong>${layoutText("accessSharing")}</strong><small>${layoutText("revRelatedSharing")}</small></span><${Icon} name="chevron" size=${16} /></button>
|
|
1419
|
-
${!overPublicLink && SETTINGS_SECTIONS.includes("hub") ? html`<button type="button" onClick=${() => navigate(sectionPath("hub"))}><${Icon} name="plug" size=${18} /><span><strong>${hubSectionText("relatedTitle")}</strong><small>${hubSectionText("relatedHint")}</small></span><${Icon} name="chevron" size=${16} /></button>` : null}
|
|
1420
|
-
</aside></div>
|
|
1421
|
-
</${SettingsTabPanel}>
|
|
1422
|
-
<${SettingsTabPanel} group="access" id="guests" active=${accessTab === "guests"}>
|
|
1423
|
-
${!overPublicLink ? html`<${GuestsCard} ctx=${ctx} staged=${staged} />` : html`<p class="note">${tn("webPublicRefused")}</p>`}
|
|
1424
|
-
</${SettingsTabPanel}>
|
|
1425
|
-
<${SettingsTabPanel} group="access" id="sharing" active=${accessTab === "sharing"}>
|
|
1426
|
-
<div class="s-access-stack">
|
|
1427
|
-
${lock(html`<section class="card s-public-entry"><h3>${layoutText("revPublicEntry")}</h3>
|
|
1357
|
+
</section>
|
|
1358
|
+
<section class="card"><h3>${tn("publicLinkTitle")}</h3>
|
|
1428
1359
|
<label class=${fc("check", "pub")}><input id="publicWebLink" type="checkbox" checked=${f.pub} onChange=${(e) => set("pub")(e.target.checked)} /><span>${tn("publicLink")}</span><${Impact} schema=${schema} field="web.public_link.allow_public" /></label>
|
|
1429
1360
|
<p class="note">${tn("publicLinkHint")}</p>
|
|
1430
1361
|
<div class="grid2">
|
|
@@ -1440,31 +1371,33 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1440
1371
|
${named ? html`<p class="note" id="publicTtlNamedHint">${tn("publicTtlNamedHint")}</p>` : null}
|
|
1441
1372
|
${named || f.autoOpen ? html`<label class=${fc("check", "autoOpen")}><input id="publicAutoOpen" type="checkbox" checked=${f.autoOpen} onChange=${(e) => set("autoOpen")(e.target.checked)} /><span>${tn("publicAutoOpen")}</span><${Impact} schema=${schema} field="web.public_link.auto_open" /></label>
|
|
1442
1373
|
<p class="note">${tn("publicAutoOpenHint")}</p><${Feedback} error=${errors.autoOpen} />` : null}
|
|
1443
|
-
|
|
1444
|
-
${!overPublicLink ? html`<div class="s-public-credentials"><${PublicTunnelToken} /></div>` : null}
|
|
1445
|
-
</section>`)}
|
|
1446
|
-
<div class="s-sharing-list"><h3>${layoutText("revReadOnlySharing")}</h3><p class="note">${layoutText("revSharingOrigin")}</p><${OfficeSharesCard} /><${PageSharesCard} /></div>
|
|
1447
|
-
</div>
|
|
1448
|
-
</${SettingsTabPanel}>` : null}
|
|
1449
|
-
${has("chat") ? lock(html`<section class="card s-web-chat"><h3>${layoutText("messageBehavior")}</h3>
|
|
1450
|
-
${toggleRow("echo", "webEchoToChannel", "webEcho", "webEchoHint", "web.echo_to_channel")}
|
|
1451
1374
|
</section>`) : null}
|
|
1452
|
-
${has("
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1375
|
+
${has("access") && !overPublicLink ? html`<${PublicTunnelToken} />` : null}
|
|
1376
|
+
${has("access") ? html`<${OfficeSharesCard} />` : null}
|
|
1377
|
+
${has("access") ? html`<${PageSharesCard} />` : null}
|
|
1378
|
+
${has("access") && !overPublicLink ? html`<${GuestsCard} ctx=${ctx} staged=${staged} /><${WebAuthorityCard} ctx=${ctx} staged=${staged} />` : null}
|
|
1379
|
+
${has("chat") ? lock(html`<section class="card"><h3>${tn("webChat")}</h3>
|
|
1380
|
+
<label class=${fc("check", "echo")}><input id="webEchoToChannel" type="checkbox" checked=${f.echo} onChange=${(e) => set("echo")(e.target.checked)} /><span>${tn("webEcho")}</span><${Impact} schema=${schema} field="web.echo_to_channel" /></label>
|
|
1381
|
+
<p class="note">${tn("webEchoHint")}</p>
|
|
1457
1382
|
</section>`) : null}
|
|
1458
|
-
${has("
|
|
1459
|
-
<
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
<
|
|
1465
|
-
|
|
1383
|
+
${has("dashboard") ? lock(html`<section class="card"><h3>${tn("webDashboardTitle")}</h3>
|
|
1384
|
+
<label class=${fc("check", "log")}><input id="webLogTab" type="checkbox" checked=${f.log} onChange=${(e) => set("log")(e.target.checked)} /><span>${tn("webLogTab")}</span><${Impact} schema=${schema} field="web.log_tab" /></label>
|
|
1385
|
+
<p class="note">${tn("webLogTabHint")}</p>
|
|
1386
|
+
<label class=${fc("check", "usagePub")}><input id="webUsagePublic" type="checkbox" checked=${f.usagePub} onChange=${(e) => set("usagePub")(e.target.checked)} /><span>${tn("webUsagePublic")}</span><${Impact} schema=${schema} field="web.usage_report_on_public_link" /></label>
|
|
1387
|
+
<p class="note">${tn("webUsagePublicHint")}</p>
|
|
1388
|
+
<label class=${fc("check", "levels")}><input id="webOfficeLevels" type="checkbox" checked=${f.levels} onChange=${(e) => set("levels")(e.target.checked)} /><span>${tn("webOfficeLevels")}</span><${Impact} schema=${schema} field="web.office_levels" /></label>
|
|
1389
|
+
<p class="note">${tn("webOfficeLevelsHint")}</p>
|
|
1390
|
+
<label class=${fc("check", "cdn")}><input id="webPreviewCdn" type="checkbox" checked=${f.cdn} onChange=${(e) => set("cdn")(e.target.checked)} /><span>${tn("webPreviewCdn")}</span><${Impact} schema=${schema} field="web.preview_cdn" /></label>
|
|
1391
|
+
<p class="note">${tn("webPreviewCdnHint")}</p>
|
|
1392
|
+
</section>`) : null}
|
|
1393
|
+
${has("readonly") ? html`<section class="card s-web-readonly"><h3>${tn("webReadOnlyTitle")}</h3>
|
|
1394
|
+
<p class="note">${tn("webReadOnlyLead")}</p>
|
|
1395
|
+
<dl class="s-web-ro">${WEB_READ_ONLY.map((k) => html`<div key=${k}><dt><code>${k}</code></dt><dd>${shown(k)}</dd></div>`)}</dl>
|
|
1396
|
+
<p class="note">${tn("webSearchHint")}</p>
|
|
1397
|
+
</section>` : null}
|
|
1466
1398
|
</div>`;
|
|
1467
1399
|
}
|
|
1400
|
+
|
|
1468
1401
|
/**
|
|
1469
1402
|
* Developer: the fleet model as YAML or JSON, to read, copy, download — or edit. #2347: an edit's Apply stages its
|
|
1470
1403
|
* writes in the Save bar like every form's change (Save writes them, in order, then one apply; Discard drops them),
|
|
@@ -1518,15 +1451,14 @@ function Developer({ ctx }) {
|
|
|
1518
1451
|
return html`<section class="card s-dev">
|
|
1519
1452
|
<div class="s-dev-bar">
|
|
1520
1453
|
<div class="seg-inline" role="group" aria-label=${tn("format")}>
|
|
1521
|
-
${["yaml", "json"].map((k) => html`<button key=${k} type="button" class=${`btn btn-sm${fmt === k ? " on" : ""}`} aria-pressed=${fmt === k ? "true" : "false"} onClick=${() => setFmt(k)}>${k.toUpperCase()}</button>`)}</div
|
|
1522
|
-
<
|
|
1454
|
+
${["yaml", "json"].map((k) => html`<button key=${k} type="button" class=${`btn btn-sm${fmt === k ? " on" : ""}`} aria-pressed=${fmt === k ? "true" : "false"} onClick=${() => setFmt(k)}>${k.toUpperCase()}</button>`)}</div>
|
|
1455
|
+
<button type="button" class="btn btn-sm" disabled=${blocked && !editing} title=${blocked && !editing ? tn("devFormsUnsaved") : undefined} onClick=${() => setEditing(!editing)}>${editing ? tn("viewMode") : tn("editMode")}</button>
|
|
1523
1456
|
<button type="button" class="btn btn-sm" title=${tn("copy")} onClick=${copy}><${Icon} name="copy" size=${14} /><span class="lbl">${tn("copy")}</span></button>
|
|
1524
|
-
<button type="button" class="btn btn-sm" title=${tn("devDownload")} onClick=${download}><${Icon} name="download" size=${14} /><span class="lbl">${tn("devDownload")}</span></button
|
|
1457
|
+
<button type="button" class="btn btn-sm" title=${tn("devDownload")} onClick=${download}><${Icon} name="download" size=${14} /><span class="lbl">${tn("devDownload")}</span></button>
|
|
1525
1458
|
</div>
|
|
1526
1459
|
${editing ? html`<textarea class="s-yaml" aria-label=${tn("devEditor")} spellcheck=${false} wrap="off" value=${draft} onInput=${(e) => setDraft(e.target.value)}></textarea>
|
|
1527
1460
|
<div class="save-row"><button type="button" class="btn btn-primary" disabled=${blocked} onClick=${save}>${tn("devApply")}</button><span class="note">${tn("devApplyHint")}</span></div>`
|
|
1528
|
-
: html`<pre class="s-yaml"
|
|
1529
|
-
<div class="s-dev-state"><span class="s-dev-file">fleet.yaml</span><${Icon} name=${editing ? "edit" : "view"} size=${14} /><span>${layoutText(editing ? "developerEditing" : "developerReadOnly")}</span></div>
|
|
1461
|
+
: html`<pre class="s-yaml">${text}</pre>`}
|
|
1530
1462
|
${blocked ? html`<p class="note s-dev-blocked" role="status">${tn("devFormsUnsaved")}</p>`
|
|
1531
1463
|
: held && !msg ? html`<p class="note s-dev-held" role="status">${tn("devStaged", heldCount)}</p>` : null}
|
|
1532
1464
|
${msg ? html`<p class=${`feedback${msg.error ? " error" : ""}`} role="status">${msg.error || msg.text}</p>` : null}
|
|
@@ -1539,23 +1471,16 @@ function Developer({ ctx }) {
|
|
|
1539
1471
|
*/
|
|
1540
1472
|
function PendingBar({ staged, busy, onApply, onDiscard, section }) {
|
|
1541
1473
|
const changes = [...staged.values()];
|
|
1542
|
-
|
|
1543
|
-
// restart) says them; any other says its impact label.
|
|
1544
|
-
const costs = [];
|
|
1545
|
-
for (const c of changes) {
|
|
1546
|
-
if (c.invalid) continue;
|
|
1547
|
-
for (const line of Array.isArray(c.notes) && c.notes.length ? c.notes : [impactText(c.impact)]) if (!costs.includes(line)) costs.push(line);
|
|
1548
|
-
}
|
|
1474
|
+
const kinds = [...new Set(changes.filter((c) => !c.invalid).map((c) => c.impact))];
|
|
1549
1475
|
const invalid = changes.filter((c) => c.invalid).length;
|
|
1550
1476
|
// #2382 review: a field to fix in another section is named, and the message goes there (its field focused).
|
|
1551
1477
|
const elsewhere = changes.find((c) => c.invalid && c.section && c.section !== section);
|
|
1552
|
-
const problem = elsewhere || changes.find((c) => c.invalid && c.target);
|
|
1553
1478
|
const count = changes.reduce((n, c) => n + (Number.isInteger(c.count) && c.count > 0 ? c.count : 1), 0);
|
|
1554
1479
|
return html`<div data-trust="panel-controls" class="s-pending" role="region" aria-label=${tn("pendingRegion")}>
|
|
1555
1480
|
<strong>${tn("changesPending", count)}</strong>
|
|
1556
|
-
<span class="note">${
|
|
1481
|
+
<span class="note">${kinds.map(impactText).join(" · ")}</span>
|
|
1557
1482
|
<span class="s-pending-actions">
|
|
1558
|
-
${!invalid ? null :
|
|
1483
|
+
${!invalid ? null : elsewhere ? html`<button type="button" class="link-btn feedback error s-fix" role="status" onClick=${() => goToTarget(elsewhere.section, elsewhere.target)}>${tn("fixToSaveIn", invalid, tn(`sec_${elsewhere.section}`))}</button>`
|
|
1559
1484
|
: html`<span class="feedback error s-fix" role="status">${tn("fixToSave", invalid)}</span>`}
|
|
1560
1485
|
<button type="button" class="btn" onClick=${onDiscard} disabled=${busy}>${tn("discard")}</button>
|
|
1561
1486
|
<button type="button" class="btn btn-primary" onClick=${onApply} disabled=${busy || invalid > 0} title=${busy ? tn("applyBusyLocal") : undefined}>${tn("applyChanges")}</button>
|
|
@@ -1575,19 +1500,17 @@ function OperationCard({ op, schema }) {
|
|
|
1575
1500
|
const needsRestart = rows.some((r) => r.status === "restart-required");
|
|
1576
1501
|
const failedRows = rows.some((r) => r.status === "failed");
|
|
1577
1502
|
const mismatch = schema && schema.fleet_signature_mismatch;
|
|
1578
|
-
// S-92: a fleet with no chat connection — its restart is recorded in the dashboard's Notices, not a chat channel.
|
|
1579
|
-
const webOnly = useStore(appStore).connections === 0;
|
|
1580
1503
|
const title = op.phase === "failed" ? tn("applyPartial") : fleetRestarting ? tn("restartFleetTitle") : busy ? tn("applying")
|
|
1581
1504
|
: failedRows ? tn("applyPartial") : needsRestart ? tn("applyRestartNeeded") : tn("applyDone");
|
|
1582
1505
|
const note = op.phase === "failed" ? (op.error === "busy" ? tn("applyBusy") : op.error ? tn("applyStepFailed", applyErrorText(op.error)) : "")
|
|
1583
1506
|
: fleetRestarting ? tn("restartFleetWaiting") : op.lostJob ? tn("applyLostJob")
|
|
1584
1507
|
: job && job.overdue ? tn("applyStillWorking", Math.round((job.elapsed_ms || 0) / 1000))
|
|
1585
|
-
: mismatch && needsRestart ? tn("signatureMismatch", mismatch.join(", ")) : needsRestart ? tn(
|
|
1508
|
+
: mismatch && needsRestart ? tn("signatureMismatch", mismatch.join(", ")) : needsRestart ? tn("applyRestartHint") : "";
|
|
1586
1509
|
const lease = useLease("operation-card");
|
|
1587
1510
|
const restart = async () => {
|
|
1588
1511
|
// The yes is for the job this card shows: it restarts AgEnD for that job only, and only while the card stands.
|
|
1589
1512
|
const forJob = { opId: op.id, jobId: op.job && op.job.id };
|
|
1590
|
-
if (!(await ask(tn(
|
|
1513
|
+
if (!(await ask(tn("restartFleetConfirm"), { title: tn("restartFleetButton"), confirmLabel: tn("restartFleetButton"), danger: true }))) return;
|
|
1591
1514
|
if (!lease.current()) return;
|
|
1592
1515
|
setRestarting(true);
|
|
1593
1516
|
const res = await restartFleet(forJob);
|
|
@@ -1664,11 +1587,12 @@ function PublicTunnelToken() {
|
|
|
1664
1587
|
} catch { if (lease.current()) setMessage(tn("applyFailed")); }
|
|
1665
1588
|
finally { inFlight.current = false; if (lease.current()) setBusy(false); }
|
|
1666
1589
|
};
|
|
1667
|
-
return html`<section class="card
|
|
1590
|
+
return html`<section class="card"><h3>${tn("namedToken")}</h3>
|
|
1668
1591
|
<p class="note">${tn("namedTokenHint")}</p>
|
|
1669
|
-
<
|
|
1670
|
-
<
|
|
1671
|
-
<button type="button" class="btn btn-sm" disabled=${busy || !
|
|
1592
|
+
<span class="tag">${present ? tn("keyConfigured") : tn("keyNotConfigured")}</span>
|
|
1593
|
+
<input id="publicTunnelToken" type="password" autocomplete="new-password" aria-label=${tn("namedToken")} value=${secret} onInput=${e => { setSecret(e.target.value); setTypedTunnelToken(e.target.value); }} />
|
|
1594
|
+
<button type="button" class="btn btn-sm" disabled=${busy || !secret} onClick=${() => go(false)}>${tn("namedTokenSet")}</button>
|
|
1595
|
+
<button type="button" class="btn btn-sm" disabled=${busy || !present} onClick=${() => go(true)}>${tn("namedTokenClear")}</button>
|
|
1672
1596
|
${message ? html`<p class="note" role="status">${message}</p>` : null}
|
|
1673
1597
|
</section>`;
|
|
1674
1598
|
}
|