@songsid/agend 2.4.0-beta.7 → 2.4.0-beta.9
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/dist/auth-api.js +4 -0
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/antigravity.d.ts +9 -2
- package/dist/backend/antigravity.js +24 -6
- package/dist/backend/antigravity.js.map +1 -1
- package/dist/backend/cli-env-probe.js +1 -1
- package/dist/backend/cli-env-probe.js.map +1 -1
- package/dist/backend/cli-runtime-switch.js +1 -26
- package/dist/backend/cli-runtime-switch.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/connect/mcp.d.ts +9 -0
- package/dist/connect/mcp.js +10 -0
- package/dist/connect/mcp.js.map +1 -0
- package/dist/connect/stdio.d.ts +1 -1
- package/dist/connect/stdio.js +22 -28
- package/dist/connect/stdio.js.map +1 -1
- package/dist/daemon.d.ts +13 -0
- package/dist/daemon.js +64 -1
- package/dist/daemon.js.map +1 -1
- package/dist/dispatcher-liveness.d.ts +51 -1
- package/dist/dispatcher-liveness.js +92 -2
- package/dist/dispatcher-liveness.js.map +1 -1
- package/dist/fleet-manager.d.ts +56 -1
- package/dist/fleet-manager.js +243 -32
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/hub/SKILL.md +83 -3
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +10 -2
- package/dist/hub/admin-dashboard.js +17 -1
- package/dist/hub/admin-dashboard.js.map +1 -1
- package/dist/hub/audit/index.d.ts +2 -0
- package/dist/hub/audit/index.js +8 -0
- package/dist/hub/audit/index.js.map +1 -1
- package/dist/hub/buttons.js +3 -1
- package/dist/hub/buttons.js.map +1 -1
- package/dist/hub/catalog.d.ts +7 -4
- package/dist/hub/catalog.js +19 -10
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.d.ts +3 -0
- package/dist/hub/client.js +14 -2
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.js +28 -11
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +5 -0
- package/dist/hub/compose/server.js +91 -10
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/group-policy/admin-api.d.ts +1 -0
- package/dist/hub/group-policy/admin-api.js +1 -1
- package/dist/hub/group-policy/admin-api.js.map +1 -1
- package/dist/hub/group-policy/admin-dto.d.ts +2 -1
- package/dist/hub/group-policy/admin-impact.d.ts +32 -3
- package/dist/hub/group-policy/admin-impact.js +14 -2
- package/dist/hub/group-policy/admin-impact.js.map +1 -1
- package/dist/hub/group-policy/admin-inventory.d.ts +2 -0
- package/dist/hub/group-policy/admin-inventory.js +13 -4
- package/dist/hub/group-policy/admin-inventory.js.map +1 -1
- package/dist/hub/group-policy/authorization.d.ts +2 -0
- package/dist/hub/group-policy/authorization.js +7 -2
- package/dist/hub/group-policy/authorization.js.map +1 -1
- package/dist/hub/group-policy/impact-inventory.d.ts +1 -1
- package/dist/hub/group-policy/impact-inventory.js.map +1 -1
- package/dist/hub/group-policy/resources.d.ts +2 -0
- package/dist/hub/group-policy/resources.js +12 -1
- package/dist/hub/group-policy/resources.js.map +1 -1
- package/dist/hub/http/compose.js +164 -23
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/core.js +27 -0
- package/dist/hub/http/core.js.map +1 -1
- package/dist/hub/http/deps.d.ts +12 -0
- package/dist/hub/http/schema.js +6 -0
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/join/service.d.ts +1 -1
- package/dist/hub/join/service.js.map +1 -1
- package/dist/hub/mcp/auth-schema.d.ts +7 -0
- package/dist/hub/mcp/auth-schema.js +31 -0
- package/dist/hub/mcp/auth-schema.js.map +1 -0
- package/dist/hub/mcp/auth.d.ts +89 -0
- package/dist/hub/mcp/auth.js +374 -0
- package/dist/hub/mcp/auth.js.map +1 -0
- package/dist/hub/mcp/catalog.d.ts +44 -0
- package/dist/hub/mcp/catalog.js +31 -0
- package/dist/hub/mcp/catalog.js.map +1 -0
- package/dist/hub/mcp/door-schema.d.ts +7 -0
- package/dist/hub/mcp/door-schema.js +20 -0
- package/dist/hub/mcp/door-schema.js.map +1 -0
- package/dist/hub/mcp/http.d.ts +25 -0
- package/dist/hub/mcp/http.js +259 -0
- package/dist/hub/mcp/http.js.map +1 -0
- package/dist/hub/mcp/policy.d.ts +65 -0
- package/dist/hub/mcp/policy.js +153 -0
- package/dist/hub/mcp/policy.js.map +1 -0
- package/dist/hub/mcp/server.d.ts +3 -0
- package/dist/hub/mcp/server.js +32 -0
- package/dist/hub/mcp/server.js.map +1 -0
- package/dist/hub/mcp/tools.d.ts +31 -0
- package/dist/hub/mcp/tools.js +176 -0
- package/dist/hub/mcp/tools.js.map +1 -0
- package/dist/hub/member/room-ask.d.ts +4 -4
- package/dist/hub/member/room-ask.js +12 -0
- package/dist/hub/member/room-ask.js.map +1 -1
- package/dist/hub/member/room-mention-feedback.d.ts +44 -0
- package/dist/hub/member/room-mention-feedback.js +121 -0
- package/dist/hub/member/room-mention-feedback.js.map +1 -0
- package/dist/hub/member/room-notification.d.ts +9 -0
- package/dist/hub/member/room-notification.js +2 -0
- package/dist/hub/member/room-notification.js.map +1 -0
- package/dist/hub/member/room-post-answers.d.ts +1 -7
- package/dist/hub/member/room-post-answers.js.map +1 -1
- package/dist/hub/member/room-post.d.ts +3 -0
- package/dist/hub/member/room-post.js +9 -1
- package/dist/hub/member/room-post.js.map +1 -1
- package/dist/hub/pairing.d.ts +15 -1
- package/dist/hub/pairing.js +33 -2
- package/dist/hub/pairing.js.map +1 -1
- package/dist/hub/personal/owner-host.d.ts +140 -0
- package/dist/hub/personal/owner-host.js +287 -0
- package/dist/hub/personal/owner-host.js.map +1 -0
- package/dist/hub/personal/refusals.d.ts +11 -0
- package/dist/hub/personal/refusals.js +33 -0
- package/dist/hub/personal/refusals.js.map +1 -0
- package/dist/hub/personal/runtime-host.d.ts +26 -0
- package/dist/hub/personal/runtime-host.js +51 -0
- package/dist/hub/personal/runtime-host.js.map +1 -0
- package/dist/hub/personal/schema.d.ts +4 -0
- package/dist/hub/personal/schema.js +54 -0
- package/dist/hub/personal/schema.js.map +1 -0
- package/dist/hub/personal/turns.d.ts +39 -0
- package/dist/hub/personal/turns.js +221 -0
- package/dist/hub/personal/turns.js.map +1 -0
- package/dist/hub/personal/types.d.ts +42 -0
- package/dist/hub/personal/types.js +2 -0
- package/dist/hub/personal/types.js.map +1 -0
- package/dist/hub/policy.d.ts +1 -1
- package/dist/hub/policy.js +2 -0
- package/dist/hub/policy.js.map +1 -1
- package/dist/hub/protocol.d.ts +43 -0
- package/dist/hub/protocol.js +16 -4
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/quota.js +3 -1
- package/dist/hub/quota.js.map +1 -1
- package/dist/hub/roles/admin-control.d.ts +29 -0
- package/dist/hub/roles/admin-control.js +187 -0
- package/dist/hub/roles/admin-control.js.map +1 -0
- package/dist/hub/roles/admin-types.d.ts +72 -0
- package/dist/hub/roles/admin-types.js +2 -0
- package/dist/hub/roles/admin-types.js.map +1 -0
- package/dist/hub/roles/allowed-list-control.d.ts +34 -0
- package/dist/hub/roles/allowed-list-control.js +179 -0
- package/dist/hub/roles/allowed-list-control.js.map +1 -0
- package/dist/hub/roles/allowed-list.d.ts +8 -0
- package/dist/hub/roles/allowed-list.js +49 -0
- package/dist/hub/roles/allowed-list.js.map +1 -0
- package/dist/hub/roles/audit-details.d.ts +144 -0
- package/dist/hub/roles/audit-details.js +26 -0
- package/dist/hub/roles/audit-details.js.map +1 -0
- package/dist/hub/roles/authority.d.ts +12 -0
- package/dist/hub/roles/authority.js +39 -3
- package/dist/hub/roles/authority.js.map +1 -1
- package/dist/hub/roles/change.d.ts +3 -1
- package/dist/hub/roles/change.js +4 -3
- package/dist/hub/roles/change.js.map +1 -1
- package/dist/hub/roles/clock.d.ts +3 -0
- package/dist/hub/roles/clock.js +1 -1
- package/dist/hub/roles/clock.js.map +1 -1
- package/dist/hub/roles/cutover-inventory.d.ts +2 -0
- package/dist/hub/roles/cutover-inventory.js +8 -1
- package/dist/hub/roles/cutover-inventory.js.map +1 -1
- package/dist/hub/roles/cutover.d.ts +2 -2
- package/dist/hub/roles/cutover.js +3 -4
- package/dist/hub/roles/cutover.js.map +1 -1
- package/dist/hub/roles/delegation.d.ts +4 -1
- package/dist/hub/roles/delegation.js +3 -2
- package/dist/hub/roles/delegation.js.map +1 -1
- package/dist/hub/roles/expiry-effects.d.ts +8 -0
- package/dist/hub/roles/expiry-effects.js +50 -0
- package/dist/hub/roles/expiry-effects.js.map +1 -0
- package/dist/hub/roles/migrations.d.ts +7 -0
- package/dist/hub/roles/migrations.js +44 -0
- package/dist/hub/roles/migrations.js.map +1 -0
- package/dist/hub/roles/model.d.ts +2 -0
- package/dist/hub/roles/model.js +2 -1
- package/dist/hub/roles/model.js.map +1 -1
- package/dist/hub/roles/overview.d.ts +8 -0
- package/dist/hub/roles/overview.js +15 -0
- package/dist/hub/roles/overview.js.map +1 -0
- package/dist/hub/roles/resource-effects.d.ts +17 -0
- package/dist/hub/roles/resource-effects.js +62 -0
- package/dist/hub/roles/resource-effects.js.map +1 -0
- package/dist/hub/roles/review.d.ts +16 -0
- package/dist/hub/roles/review.js +42 -0
- package/dist/hub/roles/review.js.map +1 -0
- package/dist/hub/roles/writer.d.ts +14 -3
- package/dist/hub/roles/writer.js +64 -16
- package/dist/hub/roles/writer.js.map +1 -1
- package/dist/hub/room-mention-feedback-model.d.ts +12 -0
- package/dist/hub/room-mention-feedback-model.js +12 -0
- package/dist/hub/room-mention-feedback-model.js.map +1 -0
- package/dist/hub/rooms/agents.d.ts +3 -1
- package/dist/hub/rooms/agents.js +96 -11
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms/direct-view.d.ts +6 -2
- package/dist/hub/rooms/direct-view.js +3 -3
- package/dist/hub/rooms/direct-view.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +27 -3
- package/dist/hub/rooms/service.js +74 -13
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +3 -1
- package/dist/hub/rooms.d.ts +12 -2
- package/dist/hub/rooms.js +87 -17
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/runtime.js +1 -1
- package/dist/hub/runtime.js.map +1 -1
- package/dist/hub/server.d.ts +2 -0
- package/dist/hub/server.js +19 -3
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/session-directory-transition.d.ts +2 -1
- package/dist/hub/session-directory-transition.js +10 -3
- package/dist/hub/session-directory-transition.js.map +1 -1
- package/dist/hub/sessions.d.ts +1 -1
- package/dist/hub/sessions.js +26 -4
- package/dist/hub/sessions.js.map +1 -1
- package/dist/hub/settings-commit.d.ts +32 -1
- package/dist/hub/settings-commit.js +11 -4
- package/dist/hub/settings-commit.js.map +1 -1
- package/dist/hub/settings-directory-ca.js +1 -1
- package/dist/hub/settings-directory-ca.js.map +1 -1
- package/dist/hub/settings-directory-control.js +7 -7
- package/dist/hub/settings-directory-control.js.map +1 -1
- package/dist/hub/settings-directory-http.d.ts +2 -0
- package/dist/hub/settings-directory-http.js +21 -6
- package/dist/hub/settings-directory-http.js.map +1 -1
- package/dist/hub/settings-directory-proof.d.ts +5 -1
- package/dist/hub/settings-directory-proof.js +27 -9
- package/dist/hub/settings-directory-proof.js.map +1 -1
- package/dist/hub/settings-directory-recovery.js +2 -1
- package/dist/hub/settings-directory-recovery.js.map +1 -1
- package/dist/hub/settings-directory-save.d.ts +2 -0
- package/dist/hub/settings-directory-save.js +9 -6
- package/dist/hub/settings-directory-save.js.map +1 -1
- package/dist/hub/sharing.js +2 -2
- package/dist/hub/sharing.js.map +1 -1
- package/dist/hub/types.d.ts +26 -3
- package/dist/locale.js +13 -10
- package/dist/locale.js.map +1 -1
- package/dist/login-controller.d.ts +19 -2
- package/dist/login-controller.js +26 -8
- package/dist/login-controller.js.map +1 -1
- package/dist/native-model-catalog.d.ts +15 -0
- package/dist/native-model-catalog.js +43 -3
- package/dist/native-model-catalog.js.map +1 -1
- package/dist/runtime-build-info.js +1 -0
- package/dist/runtime-build-info.js.map +1 -1
- package/dist/runtime-cli.js +31 -5
- package/dist/runtime-cli.js.map +1 -1
- package/dist/runtime-client-store.d.ts +5 -0
- package/dist/runtime-client-store.js +28 -0
- package/dist/runtime-client-store.js.map +1 -1
- package/dist/runtime-client.d.ts +4 -0
- package/dist/runtime-client.js +33 -10
- package/dist/runtime-client.js.map +1 -1
- package/dist/runtime-coordinator.d.ts +4 -2
- package/dist/runtime-coordinator.js +33 -6
- package/dist/runtime-coordinator.js.map +1 -1
- package/dist/runtime-install.d.ts +6 -1
- package/dist/runtime-install.js +12 -4
- package/dist/runtime-install.js.map +1 -1
- package/dist/runtime-personal-answer-only-probe.d.ts +3 -0
- package/dist/runtime-personal-answer-only-probe.js +134 -0
- package/dist/runtime-personal-answer-only-probe.js.map +1 -0
- package/dist/runtime-personal-answer-only.d.ts +16 -0
- package/dist/runtime-personal-answer-only.js +54 -0
- package/dist/runtime-personal-answer-only.js.map +1 -0
- package/dist/runtime-personal-answer.d.ts +7 -2
- package/dist/runtime-personal-answer.js +12 -3
- package/dist/runtime-personal-answer.js.map +1 -1
- package/dist/runtime-personal-preflight.d.ts +8 -0
- package/dist/runtime-personal-preflight.js +103 -0
- package/dist/runtime-personal-preflight.js.map +1 -0
- package/dist/runtime-personal-profile.d.ts +7 -1
- package/dist/runtime-personal-profile.js +24 -4
- package/dist/runtime-personal-profile.js.map +1 -1
- package/dist/runtime-personal-protocol.d.ts +10 -0
- package/dist/runtime-personal-protocol.js +15 -0
- package/dist/runtime-personal-protocol.js.map +1 -0
- package/dist/runtime-personal-stage.d.ts +37 -0
- package/dist/runtime-personal-stage.js +167 -0
- package/dist/runtime-personal-stage.js.map +1 -0
- package/dist/runtime-protocol.d.ts +2 -0
- package/dist/setup-form.js +10 -0
- package/dist/setup-form.js.map +1 -1
- package/dist/tunnel/lease.d.ts +14 -0
- package/dist/tunnel/lease.js +23 -0
- package/dist/tunnel/lease.js.map +1 -1
- package/dist/ui/backend-signin.js +86 -20
- package/dist/ui/chat-activity-groups.js +41 -8
- package/dist/ui/chat-activity.js +3 -1
- package/dist/ui/chat-store.js +39 -2
- package/dist/ui/chat-tour.js +1 -1
- package/dist/ui/fleet-canvas.js +10 -5
- package/dist/ui/fleet-office.js +73 -7
- package/dist/ui/hub-ai-apps-strings.js +6 -0
- package/dist/ui/hub-ai-apps.js +83 -0
- package/dist/ui/hub-client.js +32 -1
- package/dist/ui/hub-directory-editor-strings.js +2 -2
- package/dist/ui/hub-directory-editor.js +1 -0
- package/dist/ui/hub-group-policy.js +4 -3
- package/dist/ui/hub-group-strings.js +2 -2
- package/dist/ui/hub-personal-agent-strings.js +160 -0
- package/dist/ui/hub-personal-agent.js +94 -0
- package/dist/ui/hub-role-audit.js +39 -0
- package/dist/ui/hub-role-forms.js +99 -0
- package/dist/ui/hub-role-notices.js +11 -0
- package/dist/ui/hub-role-view.js +86 -0
- package/dist/ui/hub-roles-strings.js +439 -0
- package/dist/ui/hub-roles.js +83 -0
- package/dist/ui/hub-room-composer.js +3 -2
- package/dist/ui/hub-room-list.js +4 -3
- package/dist/ui/hub-room-members.js +4 -2
- package/dist/ui/hub-room-settings.js +6 -0
- package/dist/ui/hub-room-source-strings.js +17 -0
- package/dist/ui/hub-room-source.js +34 -0
- package/dist/ui/hub-room-thread.js +10 -4
- package/dist/ui/hub-switcher.js +2 -2
- package/dist/ui/hub-this-hub.js +2 -2
- package/dist/ui/model-picker.js +4 -1
- package/dist/ui/panel-chat.js +4 -4
- package/dist/ui/panel-fleet.js +3 -3
- package/dist/ui/panel-hub.js +51 -31
- package/dist/ui/panel-settings.js +2 -3
- package/dist/ui/runtime-commands.d.ts +2 -2
- package/dist/ui/runtime-commands.js +7 -4
- package/dist/ui/settings-build-version.js +2 -2
- package/dist/ui/settings-catalog.js +22 -0
- package/dist/ui/settings-hub-setup.js +2 -1
- package/dist/ui/settings-strings.js +2 -0
- package/dist/ui/shared/access-overview.css +1 -1
- package/dist/ui/shared/accounts-keepalive.css +1 -1
- package/dist/ui/shared/accounts.css +1 -1
- package/dist/ui/shared/agent-sheet.js +2 -2
- package/dist/ui/shared/app-prefs.js +5 -2
- package/dist/ui/shared/app-shell.js +20 -8
- package/dist/ui/shared/app-stream.js +3 -1
- package/dist/ui/shared/app-swipe.js +3 -1
- package/dist/ui/shared/app.css +142 -48
- package/dist/ui/shared/app.js +1 -1
- package/dist/ui/shared/chat-thread.js +5 -1
- package/dist/ui/shared/chat-work-bar.css +5 -5
- package/dist/ui/shared/connector-prompt.d.ts +1 -0
- package/dist/ui/shared/connector-prompt.js +10 -0
- package/dist/ui/shared/hub-ai-apps.css +12 -0
- package/dist/ui/shared/hub-chat.css +9 -2
- package/dist/ui/shared/hub-groups.css +1 -1
- package/dist/ui/shared/hub-owner.css +5 -5
- package/dist/ui/shared/hub-roles.css +99 -0
- package/dist/ui/shared/hub-rooms-u2.css +14 -0
- package/dist/ui/shared/hub.css +13 -5
- package/dist/ui/shared/instance-nav.js +24 -9
- package/dist/ui/shared/loading.css +1 -1
- package/dist/ui/shared/model-picker.css +2 -2
- package/dist/ui/shared/preview-panel-actions.js +1 -1
- package/dist/ui/shared/preview-panel.js +2 -2
- package/dist/ui/shared/signin.js +27 -12
- package/dist/ui/shared/task-board.css +2 -2
- package/dist/ui/shared/tokens.css +1 -1
- package/dist/ui/shared/ui-toast.js +4 -4
- package/dist/ui/shared/usage-dialog.js +110 -16
- package/dist/ui/shared/view-strings.js +8 -0
- package/dist/ui/signin.html +4 -2
- package/dist/ui/structured-signin.js +64 -12
- package/dist/ui/web-terminal/terminal.css +1 -1
- package/dist/web-api.d.ts +4 -0
- package/dist/web-api.js +39 -23
- package/dist/web-api.js.map +1 -1
- package/dist/web-backend-login.d.ts +5 -1
- package/dist/web-backend-login.js +8 -2
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-prefs.js +2 -0
- package/dist/web-prefs.js.map +1 -1
- package/dist/windows-cli-worker.d.ts +10 -0
- package/dist/windows-cli-worker.js +109 -14
- package/dist/windows-cli-worker.js.map +1 -1
- package/dist/windows-cli.d.ts +10 -1
- package/dist/windows-cli.js +47 -13
- package/dist/windows-cli.js.map +1 -1
- package/package.json +1 -1
- package/templates/runtime-install/install.ps1 +24 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function safeRuntimeOrigin(server: unknown): string;
|
|
2
2
|
export function runtimeConnectCommand(server: unknown): string;
|
|
3
|
-
export function runtimeInstallCommand(server: unknown, scriptSha256: unknown): string;
|
|
4
|
-
export function runtimeEnrollCommand(server: unknown, scriptSha256: unknown, token: unknown, fingerprint: unknown): string;
|
|
3
|
+
export function runtimeInstallCommand(server: unknown, scriptSha256: unknown, mode?: "personal"): string;
|
|
4
|
+
export function runtimeEnrollCommand(server: unknown, scriptSha256: unknown, token: unknown, fingerprint: unknown, mode?: "personal"): string;
|
|
5
5
|
export function runtimeInstallOnlyCommand(server: unknown, scriptSha256: unknown): string;
|
|
6
6
|
export function runtimeWindowsConnectCommand(server: unknown): string;
|
|
@@ -49,15 +49,18 @@ export function runtimeConnectCommand(server) {
|
|
|
49
49
|
* window; anywhere else (a redirected stdin or stdout, -NonInteractive, an AI agent, CI) it only installs and prints the connect command.
|
|
50
50
|
* Nothing about that decision is in this command, so the hash pin covers all of it. The pairing code is never part of a command.
|
|
51
51
|
*/
|
|
52
|
-
export function runtimeInstallCommand(server, scriptSha256) {
|
|
52
|
+
export function runtimeInstallCommand(server, scriptSha256, mode = "") {
|
|
53
53
|
const origin = safeRuntimeOrigin(server);
|
|
54
54
|
if (!origin || typeof scriptSha256 !== "string" || !/^[a-f0-9]{64}$/.test(scriptSha256)) return "";
|
|
55
|
+
const failed = mode === "personal"
|
|
56
|
+
? "An error about a certificate or trust means this computer doesn't trust this Hub yet. Ask your Hub administrator. Don't change security settings to get past it. If this was not a certificate error, get a new command and try again."
|
|
57
|
+
: "install.ps1 could not be verified against the hash on the AgEnD page (a certificate or download error above is the usual cause: trust this AgEnD certificate, or use the ZIP; otherwise reload the page and copy the command again)";
|
|
55
58
|
return `[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor 3072; `
|
|
56
59
|
+ `$agend = '${origin}'; $s = $null; $h = $null; `
|
|
57
60
|
+ `$s = (iwr "$agend/runtime/install.ps1" -UseBasicParsing).Content; `
|
|
58
61
|
+ `$h = (-join ([Security.Cryptography.SHA256]::Create().ComputeHash([Text.Encoding]::UTF8.GetBytes($s)) | % { $_.ToString('x2') })); `
|
|
59
62
|
+ `if ($s -and $h -eq '${scriptSha256}') { iex $s } `
|
|
60
|
-
+ `else { Write-Host '
|
|
63
|
+
+ `else { Write-Host '${failed.replaceAll("'", "''")}' -ForegroundColor Red; throw 'install.ps1 was not run' }`;
|
|
61
64
|
}
|
|
62
65
|
/**
|
|
63
66
|
* The install command with a ONE-TIME enrollment token inside: pasted on ANY computer, or handed to an AI agent running there, it installs the
|
|
@@ -67,8 +70,8 @@ export function runtimeInstallCommand(server, scriptSha256) {
|
|
|
67
70
|
* its standard input; it is never a command-line argument. The token works once, for 15 minutes, and is revoked from this page; anyone who gets this text
|
|
68
71
|
* while it is valid can connect THEIR computer as your Runtime, so treat it like a password: do not paste it into chats or tickets.
|
|
69
72
|
*/
|
|
70
|
-
export function runtimeEnrollCommand(server, scriptSha256, token, fingerprint) {
|
|
71
|
-
const body = runtimeInstallCommand(server, scriptSha256);
|
|
73
|
+
export function runtimeEnrollCommand(server, scriptSha256, token, fingerprint, mode = "") {
|
|
74
|
+
const body = runtimeInstallCommand(server, scriptSha256, mode);
|
|
72
75
|
if (!body || typeof token !== "string" || !ENROLL_TOKEN.test(token) || typeof fingerprint !== "string" || !SERVER_FINGERPRINT.test(fingerprint)) return "";
|
|
73
76
|
// `$LASTEXITCODE` is reset first (a stale value from an earlier command must not look like a failure) and checked last: `powershell -Command` returns 1 only when
|
|
74
77
|
// its last statement failed, so an AI agent or CI step sees a non-zero exit status when the install or the connection did not succeed. Silent and harmless at a prompt.
|
|
@@ -8,9 +8,9 @@ register("installedBuild", {
|
|
|
8
8
|
const copy = (key, ...args) => t(`installedBuild.${key}`, ...args);
|
|
9
9
|
const releases = "https://github.com/songsid/AgEnD/releases";
|
|
10
10
|
export function SettingsBuildVersion({ version, build }) {
|
|
11
|
-
const [narrow, setNarrow] = useState(() => globalThis.matchMedia?.("(max-width: 899px)").matches ?? false);
|
|
11
|
+
const [narrow, setNarrow] = useState(() => globalThis.matchMedia?.("(max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px)").matches ?? false);
|
|
12
12
|
useEffect(() => {
|
|
13
|
-
const media = globalThis.matchMedia?.("(max-width: 899px)"); if (!media) return;
|
|
13
|
+
const media = globalThis.matchMedia?.("(max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px)"); if (!media) return;
|
|
14
14
|
const sync = () => setNarrow(media.matches); media.addEventListener("change", sync); sync();
|
|
15
15
|
return () => media.removeEventListener("change", sync);
|
|
16
16
|
}, []);
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// Both answers are the server's cached ones; nothing here makes the server probe. A page asks once and reuses the answer
|
|
4
4
|
// for a short while, so opening several dialogs costs one request each.
|
|
5
5
|
import { useEffect, useRef, useState } from "/assets/app-html.js";
|
|
6
|
+
import { appStore } from "/assets/app-store.js";
|
|
6
7
|
|
|
7
8
|
const TTL_MS = 30_000;
|
|
8
9
|
const cache = new Map(); // url → { at, value, pending }
|
|
@@ -32,6 +33,26 @@ function cached(url, force = false) {
|
|
|
32
33
|
*/
|
|
33
34
|
export function forgetCatalogs() { cache.clear(); }
|
|
34
35
|
|
|
36
|
+
/**
|
|
37
|
+
* The server says a backend's model list changed (`models`: a sign-in ended, a discovery finished). Calls `onChange`
|
|
38
|
+
* for the backend asked about (or for any, when the event names none), with the shared answers dropped so the read is fresh.
|
|
39
|
+
* Nothing is listened to without a stream (a poll page, a test); the page then shows the list at its next read, as before.
|
|
40
|
+
*/
|
|
41
|
+
export function useModelsEvent(backend, onChange) {
|
|
42
|
+
const latest = useRef(onChange);
|
|
43
|
+
latest.current = onChange;
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
const on = appStore.get().streamOn;
|
|
46
|
+
if (!backend || typeof on !== "function") return undefined;
|
|
47
|
+
const off = on("models", (event) => {
|
|
48
|
+
if (event && typeof event.backend === "string" && event.backend !== backend) return;
|
|
49
|
+
cache.clear();
|
|
50
|
+
latest.current?.();
|
|
51
|
+
});
|
|
52
|
+
return typeof off === "function" ? off : undefined;
|
|
53
|
+
}, [backend]);
|
|
54
|
+
}
|
|
55
|
+
|
|
35
56
|
function useAnswer(url) {
|
|
36
57
|
const [value, setValue] = useState(undefined); // undefined: loading; null: unavailable
|
|
37
58
|
useEffect(() => {
|
|
@@ -68,6 +89,7 @@ export function useModelCatalogState(backend, instance, runtime, machineId) {
|
|
|
68
89
|
if (url) load();
|
|
69
90
|
return () => { generation.current++; };
|
|
70
91
|
}, [url]);
|
|
92
|
+
useModelsEvent(backend, () => load(true));
|
|
71
93
|
const current = state.url === url ? state : { answer:null, loading:!!url };
|
|
72
94
|
const valid = current.answer && Array.isArray(current.answer.models);
|
|
73
95
|
return {
|
|
@@ -4,6 +4,7 @@ import { register, t } from "/assets/app-i18n.js";
|
|
|
4
4
|
import { Skeleton, ErrorState } from "/assets/ui-states.js";
|
|
5
5
|
import { api } from "./settings-confirm.js";
|
|
6
6
|
import { hs, setupError } from "./settings-hub-setup-strings.js";
|
|
7
|
+
import { HUB_NAME_MAX } from "./hub-client.js"; // M-3235: the one Hub-name maximum (what the brand shows)
|
|
7
8
|
// These words travel with the new renderer, even when the tab retains the setup dictionary.
|
|
8
9
|
register("hubSetupReady", {
|
|
9
10
|
en: {
|
|
@@ -195,7 +196,7 @@ export function HubSetupSettings() {
|
|
|
195
196
|
<p class="note" role="status">${step} / 4 · ${hs(titles[step])}</p>
|
|
196
197
|
<form class="form" onSubmit=${step === 3 ? prepare : step === 4 ? e => e.preventDefault() : next}>
|
|
197
198
|
<fieldset class="form" disabled=${busy}>
|
|
198
|
-
${step === 1 ? html`${field("name", { required: false, max:
|
|
199
|
+
${step === 1 ? html`${field("name", { required: false, max: HUB_NAME_MAX, hint: "nameHint" })}<div class="grid2">${field("webOrigin", { type: "url" })}${field("memberOrigin", { type: "url" })}</div><p class="note">${hs("addressHint")}</p>
|
|
199
200
|
<div class="grid2">${field("webHost")}${field("webPort", { type: "number", min: 1, maxNumber: 65535 })}${field("memberHost")}${field("memberPort", { type: "number", min: 1, maxNumber: 65535 })}</div><p class="note">${hs("listenHint")}</p>
|
|
200
201
|
${select("coexistence", [["", "choose"], ["dedicated", "dedicated"], ["same-user-pilot", "shared"]], "coexistenceHint")}
|
|
201
202
|
${select("certificate", [["generate", "generate"], ["import", "import"]], "certificateHint")}
|
|
@@ -8,6 +8,7 @@ register("settings", {
|
|
|
8
8
|
webNotifyLogin: "Web sign-in notices",
|
|
9
9
|
webNotifyLoginHint: "Posted in the topic. Off suppresses operator notices only; guest and public-link security notices still post. Default: Topic.",
|
|
10
10
|
title: "Settings",
|
|
11
|
+
backToSettings: "Back to Settings",
|
|
11
12
|
myAgents: "My Agents",
|
|
12
13
|
bots: "Bots",
|
|
13
14
|
classicChannels: "ClassicBot Channels",
|
|
@@ -694,6 +695,7 @@ register("settings", {
|
|
|
694
695
|
webNotifyLogin: "網頁登入通知",
|
|
695
696
|
webNotifyLoginHint: "發在頻道。關閉只停用管理員登入通知;訪客與公開連結安全通知仍會發出。預設:頻道。",
|
|
696
697
|
title: "設定",
|
|
698
|
+
backToSettings: "回到設定",
|
|
697
699
|
myAgents: "我的 Agent",
|
|
698
700
|
bots: "機器人",
|
|
699
701
|
classicChannels: "ClassicBot 頻道",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
.p-settings .s-ov { display: flex; flex-direction: column; gap: var(--s-5); }
|
|
12
12
|
.p-settings .s-ov-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-4); align-items: stretch; } /* S-120: card bottoms (their footers) aligned */
|
|
13
13
|
.p-settings .s-ov-devices { grid-row: span 2; }
|
|
14
|
-
@media (max-width:
|
|
14
|
+
@media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) { .p-settings .s-ov-grid { grid-template-columns: minmax(0, 1fr); } .p-settings .s-ov-devices { grid-row: auto; } }
|
|
15
15
|
.p-settings .s-ov-card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
|
|
16
16
|
.p-settings .s-ov-title { display: flex; align-items: center; gap: 8px; margin: 0; }
|
|
17
17
|
.p-settings .s-ov-title > svg { color: var(--accent); flex: none; }
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
.s-account-keepalive .s-keepalive-fallback { display: flex; align-items: center; gap: var(--s-2); }
|
|
13
13
|
|
|
14
14
|
/* AGEND-250 (UI gate, rule 7): on a phone the switch is tapped through its label, which is --tap high, and the ⓘ is a --tap box whose 18px circle is drawn inside it (the gate measures the element's own box, so the circle is a pseudo-element). */
|
|
15
|
-
@media (max-width: 899px) {
|
|
15
|
+
@media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
|
|
16
16
|
.s-account-keepalive .check { min-height: var(--tap); }
|
|
17
17
|
.s-account-keepalive .s-i .s-tipbtn { position: relative; width: var(--tap); height: var(--tap); border-color: transparent; }
|
|
18
18
|
.s-account-keepalive .s-i .s-tipbtn::before { content: ""; position: absolute; inset: calc((var(--tap) - 18px) / 2); border: 1px solid var(--border-strong); border-radius: var(--r-full); }
|
|
@@ -91,7 +91,7 @@ button.s-account-used { display: inline-flex; align-items: center; gap: var(--s-
|
|
|
91
91
|
|
|
92
92
|
/* AGEND-250 (#3771 review; UI gate, style guide rule 7): on a phone every control of the account cards is a tap target (--tap high). Antigravity made a fourth card with an Add account button and a Fleet-default select; the
|
|
93
93
|
gate's ratchet lets no small control be added, so these are made tap-high for every card (the three listed allowances for them are gone from ui-gate-tap-allowlist.json). The buttons of one kind share one height, so all of them grow. */
|
|
94
|
-
@media (max-width: 899px) {
|
|
94
|
+
@media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
|
|
95
95
|
.s-account-head .s-account-add, .s-account-machine-head .s-account-add { min-height: var(--tap); min-width: var(--tap); }
|
|
96
96
|
.s-accounts .s-account-default select { min-height: var(--tap); }
|
|
97
97
|
}
|
|
@@ -43,11 +43,11 @@ register("agentSheet", {
|
|
|
43
43
|
|
|
44
44
|
/** A phone's width (the shell's own: max-width 899 px), kept current as the window is resized. */
|
|
45
45
|
export function usePhone() {
|
|
46
|
-
const read = () => typeof matchMedia === "function" && matchMedia("(max-width: 899px)").matches;
|
|
46
|
+
const read = () => typeof matchMedia === "function" && matchMedia("(max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px)").matches;
|
|
47
47
|
const [on, setOn] = useState(read);
|
|
48
48
|
useEffect(() => {
|
|
49
49
|
if (typeof matchMedia !== "function") return undefined;
|
|
50
|
-
const mq = matchMedia("(max-width: 899px)"), changed = () => setOn(mq.matches);
|
|
50
|
+
const mq = matchMedia("(max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px)"), changed = () => setOn(mq.matches);
|
|
51
51
|
changed(); mq.addEventListener?.("change", changed);
|
|
52
52
|
return () => mq.removeEventListener?.("change", changed);
|
|
53
53
|
}, []);
|
|
@@ -31,7 +31,10 @@ export const SYNCED = {
|
|
|
31
31
|
"nav.collapsed": { ls: "agend_instance_collapsed", ...json },
|
|
32
32
|
"nav.filter": { ls: "agend_instance_filter", ...json },
|
|
33
33
|
"nav.favorites": { ls: "agend_favorites", ...json }, // #1664
|
|
34
|
-
|
|
34
|
+
// M-3252: the desktop sidebar's density, and the phone drawer's own. Both values are cached: a choice is not the same as
|
|
35
|
+
// none (none: the layout's default — the desktop 精簡, the phone 詳細).
|
|
36
|
+
"nav.density": { ls: "agend_nav_density", toLocal: (v) => (v === "compact" || v === "detailed" ? v : null), fromLocal: (s) => (s === "compact" || s === "detailed" ? s : undefined) },
|
|
37
|
+
"nav.densityPhone": { ls: "agend_nav_density_phone", toLocal: (v) => (v === "compact" || v === "detailed" ? v : null), fromLocal: (s) => (s === "compact" || s === "detailed" ? s : undefined) },
|
|
35
38
|
"nav.sort": { ls: "agend_nav_sort", ...json }, // #2179
|
|
36
39
|
"preview.optIn": { ls: "agend_html_preview", toLocal: (v) => (v ? "on" : null), fromLocal: (s) => (s === "on" ? true : undefined) },
|
|
37
40
|
"names.primary": { ls: "agend_names_primary", toLocal: (v) => (v === "instance" ? v : null), fromLocal: (s) => (s === "instance" ? s : undefined) }, // #1722
|
|
@@ -87,7 +90,7 @@ const listeners = new Set();
|
|
|
87
90
|
// this page's own in prefInForce) but not sent: `held` keeps it until savePrefsHeld sends them all, or discardHeldPrefs
|
|
88
91
|
// puts back what the host has (the same path as another device's change: apply and onPrefsChanged).
|
|
89
92
|
// Only keys Settings itself changes (a card's own size, card.sizeByInstance, is set from the card, outside Settings).
|
|
90
|
-
export const HELD_KEYS = Object.freeze(new Set(["theme", "lang", "names.primary", "nav.density", "preview.optIn", "fx.show", "color.show", "color.off", "card.size"]));
|
|
93
|
+
export const HELD_KEYS = Object.freeze(new Set(["theme", "lang", "names.primary", "nav.density", "nav.densityPhone", "preview.optIn", "fx.show", "color.show", "color.off", "card.size"]));
|
|
91
94
|
let holding = 0;
|
|
92
95
|
const held = new Map(); // key → value chosen in Settings, shown here, not saved yet
|
|
93
96
|
const heldFrom = new Map(); // key → its cached form before it was held (a choice back to it is no change)
|
|
@@ -124,7 +124,7 @@ const searchRow = () => html`<button type="button" class="side-row side-search"
|
|
|
124
124
|
aria-keyshortcuts=${isMacLike() ? "Meta+K" : "Control+K"}><${Icon} name="search" /><span class="grow">${t("app.search")}</span><kbd class="kbd-hint" aria-hidden="true">${searchShortcut()}</kbd></button>`;
|
|
125
125
|
|
|
126
126
|
function readCollapsed() { try { return localStorage.getItem("agend_sidebar") === "hidden"; } catch { return false; } }
|
|
127
|
-
const narrow = () => typeof matchMedia === "function" && matchMedia("(max-width: 899px)").matches;
|
|
127
|
+
const narrow = () => typeof matchMedia === "function" && matchMedia("(max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px)").matches;
|
|
128
128
|
|
|
129
129
|
// ── #1722: the sidebar's width — this device's (the #1665 split: a width depends on the screen), through the CSSOM ──
|
|
130
130
|
export const SIDEBAR_W = { min: 200, max: 480, def: 260, step: 16, mainMin: 480 };
|
|
@@ -460,7 +460,7 @@ function Sidebar({ route, onNewInstance, viewOnly }) {
|
|
|
460
460
|
return html`<aside id="sidebar" class=${`sidebar fleet-side${narrowDrawer ? " drawer-narrow" : ""}`} aria-label=${t("app.menu")}>
|
|
461
461
|
<div class="side-head" data-trust="navigation">
|
|
462
462
|
<a class="brand" href="/ui" onClick=${closeDrawer}>${t("app.brand")}</a>
|
|
463
|
-
<button type="button" class="icon-btn side-collapse" onClick=${toggleSidebar} aria-label=${narrow() ? t("app.closeMenu") : t("app.collapse")} title=${narrow() ? t("app.closeMenu") : t("app.collapse")} aria-controls="sidebar"><${Icon} name="sidebar" cls="ic-sidebar" /><${Icon} name="
|
|
463
|
+
<button type="button" class="icon-btn side-collapse" onClick=${toggleSidebar} aria-label=${narrow() ? t("app.closeMenu") : t("app.collapse")} title=${narrow() ? t("app.closeMenu") : t("app.collapse")} aria-controls="sidebar"><${Icon} name="sidebar" cls="ic-sidebar" /><${Icon} name="close" cls="ic-close" /></button>
|
|
464
464
|
</div>
|
|
465
465
|
${/* AgEnD Hub P1: a member fleet's "My fleet ↔ Hub" (shown once paired; nothing loads when the switch is off) */ hubMarks().member ? html`<${HubSwitcherSlot} />` : null}
|
|
466
466
|
<nav data-trust="navigation" class="side-nav" aria-label=${t("app.menu")}>
|
|
@@ -547,6 +547,9 @@ function PrefsPopover() {
|
|
|
547
547
|
*/
|
|
548
548
|
// M-3115 (phone v2): inside an agent's pages a phone has no bottom tabs; the header's first button goes back to the
|
|
549
549
|
// agents (the drawer) — with no count since M-3166. Kept beside its caller: a retained dictionary has no such word.
|
|
550
|
+
// M-3245 (the user, beta.7: 「左箭頭和漢堡選單 icon 意義不明」): one rule for a phone's top-left button. ☰ opens the agents
|
|
551
|
+
// (the drawer) on a page with nothing above it; ← goes back one level (an agent's pages → the agents; a Settings section →
|
|
552
|
+
// Settings); ✕ closes the drawer. A page with a level above passes `back` ({ href, label }) to PanelHeader.
|
|
550
553
|
register("phoneNav", {
|
|
551
554
|
en: { back: "Back to your agents" },
|
|
552
555
|
"zh-TW": { back: "回到 Agent 清單" },
|
|
@@ -554,7 +557,7 @@ register("phoneNav", {
|
|
|
554
557
|
/** What Needs you counts: its items and the agents' proposals (the tab's badge, the sidebar's). */
|
|
555
558
|
export function needsCount(app) { return (app.needs || []).length + (app.proposals || []).length; }
|
|
556
559
|
|
|
557
|
-
export function PanelHeader({ title, sub, children, headingRef, nav, notice, pageControls, pageActions }) {
|
|
560
|
+
export function PanelHeader({ title, sub, children, headingRef, nav, notice, pageControls, pageActions, back = null }) {
|
|
558
561
|
const shell = useStore(shellStore);
|
|
559
562
|
const { route } = useStore(navStore);
|
|
560
563
|
// M-3166 (the user, round 2): no counts or badges on the Fleet side — ← goes back to the agents without a number.
|
|
@@ -567,10 +570,12 @@ export function PanelHeader({ title, sub, children, headingRef, nav, notice, pag
|
|
|
567
570
|
if (pane?.Header) return html`<${pane.Header} title=${title} sub=${sub} headingRef=${headingRef} nav=${nav} notice=${notice}
|
|
568
571
|
pageControls=${pageControls} pageActions=${pageActions} />`;
|
|
569
572
|
return html`<header data-trust="header" class=${`panel-head${shell.collapsed ? " collapsed" : ""}`}>
|
|
570
|
-
|
|
573
|
+
${back && narrow() && !agent ? html`<a id="sbOpen" class="icon-btn sb-open sb-back sb-up" href=${back.href} aria-label=${back.label} title=${back.label}
|
|
574
|
+
><${Icon} name="menu" cls="ic-menu" /><${Icon} name="back" cls="ic-back" /></a>`
|
|
575
|
+
: html`<button type="button" id="sbOpen" class=${`icon-btn sb-open${agent ? " sb-back" : ""}`} onClick=${() => (narrow() ? openDrawer() : toggleSidebar())}
|
|
571
576
|
aria-label=${narrow() ? agent ? t("phoneNav.back") : t("app.openMenu") : t("app.expand")}
|
|
572
577
|
title=${narrow() ? agent ? t("phoneNav.back") : t("app.openMenu") : t("app.expand")} aria-controls="sidebar" aria-expanded=${shell.drawer ? "true" : "false"}><${Icon} name="menu" cls="ic-menu" />${agent
|
|
573
|
-
? html`<${Icon} name="back" cls="ic-back" />` : null}</button
|
|
578
|
+
? html`<${Icon} name="back" cls="ic-back" />` : null}</button>`}
|
|
574
579
|
${canCreate && shell.collapsed ? html`<button type="button" class="icon-btn sb-new" onClick=${requestNewInstance} aria-label=${t("app.newAgent")} title=${t("app.newAgent")}><${Icon} name="plus" /></button>` : null}
|
|
575
580
|
${searchOffered(admin) ? html`<button type="button" class="icon-btn sb-search" onClick=${() => openSearch()} aria-label=${t("app.search")} title=${t("app.searchTitle", searchShortcut())}><${Icon} name="search" /></button>` : null}
|
|
576
581
|
<div class="panel-title"><h1 ref=${headingRef} tabindex="-1">${title}</h1>${sub ? html`<div class="panel-sub">${sub}</div>` : null}</div>
|
|
@@ -1237,7 +1242,8 @@ export function Shell({ panels, onNewInstance, viewOnly = false }) {
|
|
|
1237
1242
|
// Once up, the keyboard stays up while the field keeps focus: an IME's candidate bar (or the predictive row) coming and
|
|
1238
1243
|
// going moves the view by tens of px on every keystroke, and must never take the tabs out and back. Only leaving the
|
|
1239
1244
|
// field, or the view growing from its lowest by more than a keyboard (put away), takes it down. While an IME composes
|
|
1240
|
-
//
|
|
1245
|
+
// the keyboard's state does not change (the shell's height still follows a view that got shorter: M-3244, in fit);
|
|
1246
|
+
// what the view says then is applied at compositionend — or as soon as the field it composes
|
|
1241
1247
|
// in has lost focus or left the page (a composition can end without its compositionend: #2517 review).
|
|
1242
1248
|
let width = -1, tallest = 0, held = false, lowest = 0, upLowest = 0, composing = null, downSince = 0, downTimer = 0;
|
|
1243
1249
|
// beta.4 (the user, iPhone): a keystroke can move the view (the predictive or candidate bar, the caret panned into view)
|
|
@@ -1273,7 +1279,13 @@ export function Shell({ panels, onNewInstance, viewOnly = false }) {
|
|
|
1273
1279
|
const typingNow = coarse() && isTextEntry(document.activeElement);
|
|
1274
1280
|
const on = coarse() && (shellStore.get().keyboard || typingNow || now() < followUntil) && Math.abs((Number(vv.scale) || 1) - 1) < 0.01;
|
|
1275
1281
|
if (!on) { unfit(el); fitH = 0; fitTop = 0; fitW = -1; moveSince = 0; return; }
|
|
1276
|
-
|
|
1282
|
+
// M-3244 (the user, iPhone, Zhuyin): while an IME composes, the keyboard's state waits for compositionend (check) — the
|
|
1283
|
+
// shell's height does not. The keyboard coming up, or its candidate bar, mid-composition made the view shorter while the
|
|
1284
|
+
// shell kept the height it had (the whole screen, or the view before the bar), and the box sat under the keyboard for
|
|
1285
|
+
// the whole composition. Composing, the shell follows a view that got shorter; it grows back only once the IME is done.
|
|
1286
|
+
const composingNow = !!composing && composing.isConnected !== false && document.activeElement === composing;
|
|
1287
|
+
const seen = Math.round(vv.height), top = Math.max(0, Math.round(Number(vv.offsetTop) || 0)), w = Math.round(vv.width);
|
|
1288
|
+
const h = composingNow && fitH && w === fitW && seen > fitH ? fitH : seen;
|
|
1277
1289
|
const settled = fitH && typingNow && w === fitW && now() >= followUntil;
|
|
1278
1290
|
if (settled && (h !== fitH || top !== fitTop) && !(fitH - h > KEYBOARD_MIN_PX)) {
|
|
1279
1291
|
if (!moveSince) moveSince = now();
|
|
@@ -1300,7 +1312,7 @@ export function Shell({ panels, onNewInstance, viewOnly = false }) {
|
|
|
1300
1312
|
raf = frame(step);
|
|
1301
1313
|
};
|
|
1302
1314
|
const check = () => {
|
|
1303
|
-
if (composing && composing.isConnected !== false && document.activeElement === composing) return;
|
|
1315
|
+
if (composing && composing.isConnected !== false && document.activeElement === composing) { fit(); return; }
|
|
1304
1316
|
composing = null;
|
|
1305
1317
|
const w = Math.round(vv.width), h = vv.height;
|
|
1306
1318
|
const typing = coarse() && isTextEntry(document.activeElement);
|
|
@@ -36,13 +36,15 @@
|
|
|
36
36
|
// #1918: traffic — a message between instances moved; delegation — a task opened, or its report closed it (SSE only: the
|
|
37
37
|
// org canvas reads /ui/traffic when it has no stream).
|
|
38
38
|
// #2233: backend_login — a dashboard sign-in started, moved or ended (no details: the page reads its own view).
|
|
39
|
+
// models — a backend's model list changed (a sign-in ended, a discovery finished): `{ backend }`, SSE only; an open
|
|
40
|
+
// /model menu or Settings model field reads its list again.
|
|
39
41
|
// alpha.2 (M-2300): agent_proposals — an agent's Windows request came or was decided (no details: a web-only fleet's
|
|
40
42
|
// owner reads GET /ui/agent-proposals).
|
|
41
43
|
// tasks — the task board changed: the card numbers a write touched (SSE only: the board reads again when it is shown).
|
|
42
44
|
// offices — the stored offices changed ({ rev }; SSE only: the Office view reads /ui/offices again).
|
|
43
45
|
// office_skins — a skin pack was uploaded or deleted ({ rev }; SSE only: the Office view reads /ui/office-skins again).
|
|
44
46
|
// office_acts — the agents' live acts in the Office view changed ({ acts }, #2578; a poll page reads /ui/office-acts).
|
|
45
|
-
const EVENTS = ["status", "message", "agent_reply_live", "delivery", "deliveries", "prompt", "prompts", "prompt_resolved", "activity", "needs", "reply_buttons", "reactions", "steps_tick", "clock", "traffic", "delegation", "backend_login", "tasks", "offices", "office_skins", "office_acts", "office_pack_changes", "agent_proposals", "notice"];
|
|
47
|
+
const EVENTS = ["status", "message", "agent_reply_live", "delivery", "deliveries", "prompt", "prompts", "prompt_resolved", "activity", "needs", "reply_buttons", "reactions", "steps_tick", "clock", "traffic", "delegation", "backend_login", "models", "tasks", "offices", "office_skins", "office_acts", "office_pack_changes", "agent_proposals", "notice"];
|
|
46
48
|
const MAX_HELD = 1000; // live events held during one catch-up read; more → read again afterwards
|
|
47
49
|
const RETRY_DELAYS = [1000, 2000, 4000]; // after the first failed catch-up read; then it waits for Retry
|
|
48
50
|
const POLL_LIMIT_MS = 10000; // a poll that has not answered by then counts as failed
|
|
@@ -18,7 +18,9 @@ function owns(el) {
|
|
|
18
18
|
if (el.isContentEditable || (el.getAttribute && el.getAttribute("contenteditable") === "true")) return true;
|
|
19
19
|
const cl = el.classList;
|
|
20
20
|
return !!cl && (cl.contains("xterm") || cl.contains("composer") || cl.contains("composer-box") || cl.contains("pv-panel")
|
|
21
|
-
|| cl.contains("lb") || cl.contains("csv-card") || cl.contains("codeblock")
|
|
21
|
+
|| cl.contains("lb") || cl.contains("csv-card") || cl.contains("codeblock")
|
|
22
|
+
// M-3253: the Office's and the org chart's stages pan themselves (with their canvas, controls and the Office's card inside).
|
|
23
|
+
|| cl.contains("oo-stage") || cl.contains("oc-stage"));
|
|
22
24
|
}
|
|
23
25
|
/** Scrolls sideways (and has room to): the gesture is the content's. */
|
|
24
26
|
function scrollsSideways(el, win) {
|