@songsid/agend 2.4.0-beta.17 → 2.4.0-beta.19
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/agent-cli-instructions.md +13 -7
- package/dist/agent-cli.js +149 -49
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-export.d.ts +3 -1
- package/dist/agent-export.js +18 -1
- package/dist/agent-export.js.map +1 -1
- package/dist/agent-whats-new.js +9 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/apply-job.d.ts +2 -2
- package/dist/auth-api.js +1 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/claude-code.d.ts +0 -6
- package/dist/backend/claude-code.js +29 -5
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/claude-transcript-errors.d.ts +4 -0
- package/dist/backend/claude-transcript-errors.js +5 -1
- package/dist/backend/claude-transcript-errors.js.map +1 -1
- package/dist/backend/codex-precaution.js +3 -2
- package/dist/backend/codex-precaution.js.map +1 -1
- package/dist/backend/codex.js +1 -1
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/types.d.ts +6 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/mcp-server.js +8 -2
- package/dist/channel/mcp-server.js.map +1 -1
- package/dist/channel/mcp-tools.d.ts +27 -1
- package/dist/channel/mcp-tools.js +77 -7
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/chat-task-refs.d.ts +61 -0
- package/dist/chat-task-refs.js +112 -0
- package/dist/chat-task-refs.js.map +1 -0
- package/dist/classic-channel-manager.d.ts +1 -1
- package/dist/classic-channel-manager.js +6 -2
- package/dist/classic-channel-manager.js.map +1 -1
- package/dist/claude-credential-launch.d.ts +6 -0
- package/dist/claude-credential-launch.js +16 -3
- package/dist/claude-credential-launch.js.map +1 -1
- package/dist/claude-credential-runner.js +3 -1
- package/dist/claude-credential-runner.js.map +1 -1
- package/dist/claude-setup-token-transport.js +25 -3
- package/dist/claude-setup-token-transport.js.map +1 -1
- package/dist/cli-audited.js +9 -8
- package/dist/cli-audited.js.map +1 -1
- package/dist/composite-tools.d.ts +11 -0
- package/dist/composite-tools.js +29 -0
- package/dist/composite-tools.js.map +1 -0
- package/dist/config-validator.js +22 -1
- package/dist/config-validator.js.map +1 -1
- package/dist/config.js +11 -0
- package/dist/config.js.map +1 -1
- package/dist/contact-auth-policy.d.ts +1 -0
- package/dist/contact-auth-policy.js +2 -1
- package/dist/contact-auth-policy.js.map +1 -1
- package/dist/contact-auth-service.js +2 -0
- package/dist/contact-auth-service.js.map +1 -1
- package/dist/contact-auth-store.js +21 -6
- package/dist/contact-auth-store.js.map +1 -1
- package/dist/contact-auth-types.d.ts +2 -0
- package/dist/contact-auth-types.js.map +1 -1
- package/dist/daemon.d.ts +8 -0
- package/dist/daemon.js +66 -13
- package/dist/daemon.js.map +1 -1
- package/dist/darwin-memory.js +2 -1
- package/dist/darwin-memory.js.map +1 -1
- package/dist/dashboard-permissions.d.ts +1 -8
- package/dist/dashboard-permissions.js +8 -9
- package/dist/dashboard-permissions.js.map +1 -1
- package/dist/delivery-outbox.d.ts +0 -6
- package/dist/delivery-outbox.js +0 -25
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/delivery-outbox.test.js +132 -96
- package/dist/delivery-outbox.test.js.map +1 -1
- package/dist/fleet-context.d.ts +1 -0
- package/dist/fleet-manager.d.ts +60 -8
- package/dist/fleet-manager.js +404 -107
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-windows-runtime.d.ts +2 -2
- package/dist/fleet-windows-runtime.js +9 -2
- package/dist/fleet-windows-runtime.js.map +1 -1
- package/dist/fleet-yaml-stringify.d.ts +3 -0
- package/dist/fleet-yaml-stringify.js +132 -0
- package/dist/fleet-yaml-stringify.js.map +1 -0
- package/dist/general-knowledge/skills/concepts/SKILL.md +53 -4
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +4 -0
- package/dist/general-knowledge/skills/fleet-config/SKILL.md +21 -1
- package/dist/general-knowledge/skills/hub/SKILL.md +2 -0
- package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +5 -1
- package/dist/general-knowledge/skills/model-discovery/SKILL.md +3 -2
- package/dist/general-knowledge/skills/persona-emoji/SKILL.md +3 -0
- package/dist/general-knowledge/skills/task-board/SKILL.md +63 -0
- package/dist/general-knowledge/skills/web-appearance/SKILL.md +25 -2
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +48 -11
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +4 -0
- package/dist/general-knowledge/steering/core-rules.md +15 -78
- package/dist/general-role-block.d.ts +19 -0
- package/dist/general-role-block.js +56 -0
- package/dist/general-role-block.js.map +1 -0
- package/dist/general-role.d.ts +1 -1
- package/dist/general-role.js +1 -0
- package/dist/general-role.js.map +1 -1
- package/dist/host-memory.d.ts +3 -0
- package/dist/host-memory.js.map +1 -1
- package/dist/host-monitoring/darwin/collector.d.ts +18 -0
- package/dist/host-monitoring/darwin/collector.js +65 -0
- package/dist/host-monitoring/darwin/collector.js.map +1 -0
- package/dist/host-monitoring/darwin/defaults.d.ts +2 -0
- package/dist/host-monitoring/darwin/defaults.js +9 -0
- package/dist/host-monitoring/darwin/defaults.js.map +1 -0
- package/dist/host-monitoring/darwin/interpretation.d.ts +20 -0
- package/dist/host-monitoring/darwin/interpretation.js +73 -0
- package/dist/host-monitoring/darwin/interpretation.js.map +1 -0
- package/dist/host-monitoring/linux/collector.d.ts +17 -0
- package/dist/host-monitoring/linux/collector.js +55 -0
- package/dist/host-monitoring/linux/collector.js.map +1 -0
- package/dist/host-monitoring/linux/defaults.d.ts +2 -0
- package/dist/host-monitoring/linux/defaults.js +9 -0
- package/dist/host-monitoring/linux/defaults.js.map +1 -0
- package/dist/host-monitoring/linux/interpretation.d.ts +22 -0
- package/dist/host-monitoring/linux/interpretation.js +76 -0
- package/dist/host-monitoring/linux/interpretation.js.map +1 -0
- package/dist/host-monitoring/transport.d.ts +42 -0
- package/dist/host-monitoring/transport.js +101 -0
- package/dist/host-monitoring/transport.js.map +1 -0
- package/dist/host-monitoring/wsl/collector.d.ts +19 -0
- package/dist/host-monitoring/wsl/collector.js +72 -0
- package/dist/host-monitoring/wsl/collector.js.map +1 -0
- package/dist/host-monitoring/wsl/defaults.d.ts +2 -0
- package/dist/host-monitoring/wsl/defaults.js +9 -0
- package/dist/host-monitoring/wsl/defaults.js.map +1 -0
- package/dist/host-monitoring/wsl/interpretation.d.ts +22 -0
- package/dist/host-monitoring/wsl/interpretation.js +77 -0
- package/dist/host-monitoring/wsl/interpretation.js.map +1 -0
- package/dist/host-monitoring-alert-policy.d.ts +73 -0
- package/dist/host-monitoring-alert-policy.js +152 -0
- package/dist/host-monitoring-alert-policy.js.map +1 -0
- package/dist/host-monitoring-alert-resources.d.ts +11 -0
- package/dist/host-monitoring-alert-resources.js +16 -0
- package/dist/host-monitoring-alert-resources.js.map +1 -0
- package/dist/host-monitoring-alert-settings.d.ts +16 -0
- package/dist/host-monitoring-alert-settings.js +68 -0
- package/dist/host-monitoring-alert-settings.js.map +1 -0
- package/dist/host-monitoring-alert-store.d.ts +49 -0
- package/dist/host-monitoring-alert-store.js +228 -0
- package/dist/host-monitoring-alert-store.js.map +1 -0
- package/dist/host-monitoring-alert-text.d.ts +7 -0
- package/dist/host-monitoring-alert-text.js +10 -0
- package/dist/host-monitoring-alert-text.js.map +1 -0
- package/dist/host-monitoring-alerts.d.ts +79 -0
- package/dist/host-monitoring-alerts.js +276 -0
- package/dist/host-monitoring-alerts.js.map +1 -0
- package/dist/host-monitoring-defaults.d.ts +19 -0
- package/dist/host-monitoring-defaults.js +10 -0
- package/dist/host-monitoring-defaults.js.map +1 -0
- package/dist/host-monitoring-footprint-policy.d.ts +45 -0
- package/dist/host-monitoring-footprint-policy.js +150 -0
- package/dist/host-monitoring-footprint-policy.js.map +1 -0
- package/dist/host-monitoring-footprint.d.ts +42 -0
- package/dist/host-monitoring-footprint.js +169 -0
- package/dist/host-monitoring-footprint.js.map +1 -0
- package/dist/host-monitoring-history-policy.d.ts +2 -0
- package/dist/host-monitoring-history-policy.js +16 -2
- package/dist/host-monitoring-history-policy.js.map +1 -1
- package/dist/host-monitoring-history-store.js +8 -6
- package/dist/host-monitoring-history-store.js.map +1 -1
- package/dist/host-monitoring-history-worker.js +19 -3
- package/dist/host-monitoring-history-worker.js.map +1 -1
- package/dist/host-monitoring-history.d.ts +9 -0
- package/dist/host-monitoring-history.js +45 -9
- package/dist/host-monitoring-history.js.map +1 -1
- package/dist/host-monitoring-platform.d.ts +18 -70
- package/dist/host-monitoring-platform.js +14 -269
- package/dist/host-monitoring-platform.js.map +1 -1
- package/dist/host-monitoring-process-identity.d.ts +8 -0
- package/dist/host-monitoring-process-identity.js +81 -0
- package/dist/host-monitoring-process-identity.js.map +1 -0
- package/dist/host-monitoring-runtime.d.ts +8 -0
- package/dist/host-monitoring-runtime.js +18 -3
- package/dist/host-monitoring-runtime.js.map +1 -1
- package/dist/host-monitoring.d.ts +15 -0
- package/dist/host-monitoring.js.map +1 -1
- package/dist/hub/agent-catalog-model.d.ts +21 -0
- package/dist/hub/agent-catalog-model.js +9 -1
- package/dist/hub/agent-catalog-model.js.map +1 -1
- package/dist/hub/agent-catalog.d.ts +4 -1
- package/dist/hub/agent-catalog.js +11 -0
- package/dist/hub/agent-catalog.js.map +1 -1
- package/dist/hub/catalog.js +12 -0
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.js +4 -1
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +5 -0
- package/dist/hub/compose/member.js +25 -5
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +2 -0
- package/dist/hub/compose/server.js +4 -2
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/http/compose.d.ts +5 -0
- package/dist/hub/http/compose.js +25 -2
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/deps.d.ts +2 -0
- package/dist/hub/http/schema.js +4 -0
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/lapse-carry.d.ts +45 -0
- package/dist/hub/lapse-carry.js +62 -0
- package/dist/hub/lapse-carry.js.map +1 -0
- package/dist/hub/member/agent-catalog.d.ts +4 -1
- package/dist/hub/member/agent-catalog.js +15 -4
- package/dist/hub/member/agent-catalog.js.map +1 -1
- package/dist/hub/member/agent-intro.d.ts +4 -3
- package/dist/hub/member/agent-intro.js +7 -0
- package/dist/hub/member/agent-intro.js.map +1 -1
- package/dist/hub/member/exposure-api.d.ts +2 -0
- package/dist/hub/member/exposure-api.js +8 -1
- package/dist/hub/member/exposure-api.js.map +1 -1
- package/dist/hub/member/room-post.d.ts +34 -6
- package/dist/hub/member/room-post.js +30 -0
- package/dist/hub/member/room-post.js.map +1 -1
- package/dist/hub/member/sharing.d.ts +2 -0
- package/dist/hub/member/sharing.js +9 -2
- package/dist/hub/member/sharing.js.map +1 -1
- package/dist/hub/protocol.d.ts +2 -0
- package/dist/hub/room-brief-model.js +2 -1
- package/dist/hub/room-brief-model.js.map +1 -1
- package/dist/hub/rooms/agents.d.ts +2 -0
- package/dist/hub/rooms/agents.js +16 -2
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms/office.d.ts +82 -0
- package/dist/hub/rooms/office.js +46 -0
- package/dist/hub/rooms/office.js.map +1 -0
- package/dist/hub/rooms/service.d.ts +66 -1
- package/dist/hub/rooms/service.js +67 -11
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +4 -0
- package/dist/hub/runtime.d.ts +1 -1
- package/dist/hub/server.js +9 -2
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/sharing-requests.d.ts +5 -2
- package/dist/hub/sharing-requests.js +19 -4
- package/dist/hub/sharing-requests.js.map +1 -1
- package/dist/instance-config-impact.js +1 -1
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.js +8 -9
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instruction-file-sizes.d.ts +46 -0
- package/dist/instruction-file-sizes.js +115 -0
- package/dist/instruction-file-sizes.js.map +1 -0
- package/dist/instructions.d.ts +35 -1
- package/dist/instructions.js +59 -33
- package/dist/instructions.js.map +1 -1
- package/dist/locale.js +16 -4
- package/dist/locale.js.map +1 -1
- package/dist/log-steps.d.ts +5 -0
- package/dist/log-steps.js +6 -2
- package/dist/log-steps.js.map +1 -1
- package/dist/memory-guidance.d.ts +5 -0
- package/dist/memory-guidance.js +14 -0
- package/dist/memory-guidance.js.map +1 -0
- package/dist/model-defaults.d.ts +5 -0
- package/dist/model-defaults.js +6 -0
- package/dist/model-defaults.js.map +1 -0
- package/dist/native-mcp.d.ts +2 -0
- package/dist/native-mcp.js +16 -6
- package/dist/native-mcp.js.map +1 -1
- package/dist/needs-you-hub.d.ts +3 -0
- package/dist/needs-you-hub.js +7 -1
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +15 -2
- package/dist/needs-you.js +6 -0
- package/dist/needs-you.js.map +1 -1
- package/dist/outbound-handlers.d.ts +3 -3
- package/dist/outbound-schemas.d.ts +3 -0
- package/dist/outbound-schemas.js +27 -26
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/public-web-gateway.js +7 -1
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/quickstart.d.ts +1 -1
- package/dist/quickstart.js +2 -3
- package/dist/quickstart.js.map +1 -1
- package/dist/remote-card-prompt.d.ts +1 -0
- package/dist/remote-card-prompt.js +1 -1
- package/dist/remote-card-prompt.js.map +1 -1
- package/dist/runtime-build-info.js +1 -1
- package/dist/runtime-build-info.js.map +1 -1
- package/dist/runtime-cli-install.js +9 -9
- package/dist/runtime-cli-install.js.map +1 -1
- package/dist/runtime-pane-mcp.js +7 -3
- package/dist/runtime-pane-mcp.js.map +1 -1
- package/dist/runtime-pane-native.js +2 -1
- package/dist/runtime-pane-native.js.map +1 -1
- package/dist/scheduler/db.js +2 -0
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/task-board-mentions.d.ts +32 -0
- package/dist/scheduler/task-board-mentions.js +97 -0
- package/dist/scheduler/task-board-mentions.js.map +1 -0
- package/dist/scheduler/task-board-text.js +3 -0
- package/dist/scheduler/task-board-text.js.map +1 -1
- package/dist/scheduler/task-board.d.ts +199 -3
- package/dist/scheduler/task-board.js +492 -7
- package/dist/scheduler/task-board.js.map +1 -1
- package/dist/settings-api.d.ts +5 -1
- package/dist/settings-api.js +77 -2
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.js +5 -4
- package/dist/settings-baseline.js.map +1 -1
- package/dist/settings-change.js +4 -2
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-effect.d.ts +2 -0
- package/dist/settings-effect.js +20 -1
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-instance-patch.js +3 -1
- package/dist/settings-instance-patch.js.map +1 -1
- package/dist/setup-host.d.ts +2 -3
- package/dist/setup-host.js +3 -5
- package/dist/setup-host.js.map +1 -1
- package/dist/setup-wizard.js +0 -2
- package/dist/setup-wizard.js.map +1 -1
- package/dist/shared-default-adoption.d.ts +24 -0
- package/dist/shared-default-adoption.js +73 -0
- package/dist/shared-default-adoption.js.map +1 -0
- package/dist/subagent-records.d.ts +2 -0
- package/dist/subagent-records.js +11 -1
- package/dist/subagent-records.js.map +1 -1
- package/dist/subagent-service.d.ts +3 -0
- package/dist/subagent-service.js +24 -4
- package/dist/subagent-service.js.map +1 -1
- package/dist/task-board-tool.d.ts +31 -0
- package/dist/task-board-tool.js +31 -0
- package/dist/task-board-tool.js.map +1 -1
- package/dist/task-board-waker.d.ts +23 -30
- package/dist/task-board-waker.js +136 -97
- package/dist/task-board-waker.js.map +1 -1
- package/dist/topic-commands.js +4 -0
- package/dist/topic-commands.js.map +1 -1
- package/dist/types.d.ts +23 -0
- package/dist/ui/agent-details-settings.js +2 -2
- package/dist/ui/agent-export-dialog.js +4 -3
- package/dist/ui/agent-export-strings.js +4 -4
- package/dist/ui/agent-page-strings.js +18 -0
- package/dist/ui/chat-activity-groups.js +1 -1
- package/dist/ui/chat-activity.js +17 -0
- package/dist/ui/chat-store.js +34 -8
- package/dist/ui/chat-task-ref-strings.js +24 -0
- package/dist/ui/chat-task-refs.js +129 -0
- package/dist/ui/claude-setup-token.js +3 -3
- package/dist/ui/contact-auth-strings.js +33 -3
- package/dist/ui/contact-authorizations.js +17 -24
- package/dist/ui/contact-grant-editor.js +50 -0
- package/dist/ui/contact-permissions.js +21 -8
- package/dist/ui/fleet-office-card.js +18 -14
- package/dist/ui/fleet-office.js +29 -17
- package/dist/ui/fleet-task-activity.js +362 -0
- package/dist/ui/fleet-task-card.js +317 -314
- package/dist/ui/fleet-task-common.js +99 -9
- package/dist/ui/fleet-task-create.js +67 -0
- package/dist/ui/fleet-task-edit.js +204 -0
- package/dist/ui/fleet-task-follow.js +123 -0
- package/dist/ui/fleet-task-menu.js +1 -1
- package/dist/ui/fleet-task-owner.js +252 -0
- package/dist/ui/fleet-task-run.js +257 -0
- package/dist/ui/fleet-task-view.js +178 -39
- package/dist/ui/fleet-task-work.js +2 -2
- package/dist/ui/fleet-tasks.js +258 -130
- package/dist/ui/host-alerts.js +23 -0
- package/dist/ui/host-footprint.js +17 -0
- package/dist/ui/host-health.js +24 -16
- package/dist/ui/host-monitoring-darwin.js +6 -0
- package/dist/ui/host-monitoring-help.js +7 -0
- package/dist/ui/host-monitoring-linux.js +6 -0
- package/dist/ui/host-monitoring-wsl.js +6 -0
- package/dist/ui/host-time.js +5 -0
- package/dist/ui/hub-agent-copy.js +2 -0
- package/dist/ui/hub-client.js +4 -0
- package/dist/ui/hub-my-agents-strings.js +2 -0
- package/dist/ui/hub-my-agents.js +17 -1
- package/dist/ui/hub-room-composer.js +108 -5
- package/dist/ui/hub-room-members-strings.js +9 -2
- package/dist/ui/hub-room-members.js +72 -15
- package/dist/ui/hub-room-office.js +191 -0
- package/dist/ui/hub-room-purpose.js +18 -2
- package/dist/ui/hub-room-settings.js +8 -1
- package/dist/ui/hub-room-strings.js +15 -0
- package/dist/ui/hub-room-thread.js +51 -15
- package/dist/ui/hub-strings.js +1 -1
- package/dist/ui/log-row.js +7 -5
- package/dist/ui/native-instance-settings.js +4 -2
- package/dist/ui/panel-chat.js +98 -17
- package/dist/ui/panel-details.js +17 -0
- package/dist/ui/panel-fleet.js +1 -1
- package/dist/ui/panel-hub.js +4 -1
- package/dist/ui/panel-needs.js +38 -18
- package/dist/ui/panel-settings.js +58 -13
- package/dist/ui/settings-apply.js +8 -3
- package/dist/ui/settings-default-model-scope.js +40 -0
- package/dist/ui/settings-default-model-strings.js +43 -0
- package/dist/ui/settings-dialogs.js +9 -5
- package/dist/ui/settings-host-alerts.js +23 -0
- package/dist/ui/settings-host-monitoring.js +10 -8
- package/dist/ui/settings-hub.js +1 -1
- package/dist/ui/settings-layout.js +7 -2
- package/dist/ui/settings-model.js +9 -5
- package/dist/ui/settings-quota-notice.js +3 -3
- package/dist/ui/settings-registry.js +3 -0
- package/dist/ui/settings-shared-strings.js +22 -0
- package/dist/ui/settings-shared.js +59 -12
- package/dist/ui/settings-strings.js +2 -4
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app.css +169 -50
- package/dist/ui/shared/chat-composer.js +7 -6
- package/dist/ui/shared/chat-render.js +63 -10
- package/dist/ui/shared/chat-strings.js +2 -2
- package/dist/ui/shared/chat-thread.js +10 -3
- package/dist/ui/shared/composer-focus.js +21 -0
- package/dist/ui/shared/hub-chat.css +30 -2
- package/dist/ui/shared/hub-rooms-u2.css +17 -0
- package/dist/ui/shared/task-board.css +406 -8
- package/dist/ui/trigger-complete.js +71 -0
- package/dist/web-api.d.ts +11 -1
- package/dist/web-api.js +324 -18
- package/dist/web-api.js.map +1 -1
- package/dist/web-chat-history.d.ts +40 -1
- package/dist/web-chat-history.js +131 -9
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-guest-access.js +4 -4
- package/dist/web-guest-access.js.map +1 -1
- package/dist/web-upload.d.ts +1 -1
- package/dist/web-upload.js.map +1 -1
- package/dist/windows-native-mcp.js +5 -2
- package/dist/windows-native-mcp.js.map +1 -1
- package/dist/workflow-templates/default.md +4 -6
- package/package.json +1 -1
|
@@ -40,6 +40,7 @@ export declare class HubRoomRefusal extends Error {
|
|
|
40
40
|
/** People chat first; direct agent conversations remain in HubRoomsService. No timers or I/O on import. */
|
|
41
41
|
export declare class HubGroupRooms {
|
|
42
42
|
private readonly core;
|
|
43
|
+
private readonly office;
|
|
43
44
|
private readonly appPosts;
|
|
44
45
|
private listeners;
|
|
45
46
|
readonly agents: HubRoomAgents;
|
|
@@ -55,7 +56,8 @@ export declare class HubGroupRooms {
|
|
|
55
56
|
private readonly searches;
|
|
56
57
|
private readonly agentSearch;
|
|
57
58
|
private readonly agentReadBuckets;
|
|
58
|
-
|
|
59
|
+
/** M-3533 R1: `office` true once the Hub offers the room office (room-office-v1); until then its field and route are refused. */
|
|
60
|
+
constructor(core: HubCore, office?: boolean);
|
|
59
61
|
has(id: string): boolean;
|
|
60
62
|
subscribe(listener: (event: RoomEvent) => void): () => void;
|
|
61
63
|
/** Cheap queue admission only; event() still freshly authorizes and projects the eventual disclosure. */
|
|
@@ -97,6 +99,8 @@ export declare class HubGroupRooms {
|
|
|
97
99
|
agentPost(input: unknown, link: HubLinkContext): Promise<HubRoomPostResult>;
|
|
98
100
|
private insert;
|
|
99
101
|
private recordPurpose;
|
|
102
|
+
/** M-3533 R1: a manager turned the room office on or off — one line, as a purpose change has (§2.1). */
|
|
103
|
+
private recordOffice;
|
|
100
104
|
private summary;
|
|
101
105
|
private addAssistant;
|
|
102
106
|
private assistantRoom;
|
|
@@ -267,6 +271,8 @@ export declare class HubGroupRooms {
|
|
|
267
271
|
answerOnly?: boolean | undefined;
|
|
268
272
|
owner: {
|
|
269
273
|
name: string;
|
|
274
|
+
id?: string | undefined;
|
|
275
|
+
mine?: boolean | undefined;
|
|
270
276
|
};
|
|
271
277
|
canAsk: boolean;
|
|
272
278
|
signedIn?: undefined;
|
|
@@ -284,6 +290,8 @@ export declare class HubGroupRooms {
|
|
|
284
290
|
answerOnly?: boolean | undefined;
|
|
285
291
|
owner: {
|
|
286
292
|
name: string;
|
|
293
|
+
id?: string | undefined;
|
|
294
|
+
mine?: boolean | undefined;
|
|
287
295
|
};
|
|
288
296
|
canAsk: boolean;
|
|
289
297
|
signedIn?: undefined;
|
|
@@ -302,6 +310,8 @@ export declare class HubGroupRooms {
|
|
|
302
310
|
answerOnly?: boolean | undefined;
|
|
303
311
|
owner: {
|
|
304
312
|
name: string;
|
|
313
|
+
id?: string | undefined;
|
|
314
|
+
mine?: boolean | undefined;
|
|
305
315
|
};
|
|
306
316
|
canAsk: boolean;
|
|
307
317
|
signedIn?: undefined;
|
|
@@ -321,6 +331,10 @@ export declare class HubGroupRooms {
|
|
|
321
331
|
historyForNew: "all" | "since-join";
|
|
322
332
|
aiApps?: boolean | undefined;
|
|
323
333
|
assistant?: boolean | undefined;
|
|
334
|
+
office?: {
|
|
335
|
+
enabled: boolean;
|
|
336
|
+
style: string;
|
|
337
|
+
} | undefined;
|
|
324
338
|
};
|
|
325
339
|
invited: never[];
|
|
326
340
|
}>;
|
|
@@ -382,6 +396,8 @@ export declare class HubGroupRooms {
|
|
|
382
396
|
answerOnly?: boolean | undefined;
|
|
383
397
|
owner: {
|
|
384
398
|
name: string;
|
|
399
|
+
id?: string | undefined;
|
|
400
|
+
mine?: boolean | undefined;
|
|
385
401
|
};
|
|
386
402
|
canAsk: boolean;
|
|
387
403
|
signedIn?: undefined;
|
|
@@ -399,6 +415,8 @@ export declare class HubGroupRooms {
|
|
|
399
415
|
answerOnly?: boolean | undefined;
|
|
400
416
|
owner: {
|
|
401
417
|
name: string;
|
|
418
|
+
id?: string | undefined;
|
|
419
|
+
mine?: boolean | undefined;
|
|
402
420
|
};
|
|
403
421
|
canAsk: boolean;
|
|
404
422
|
signedIn?: undefined;
|
|
@@ -417,6 +435,8 @@ export declare class HubGroupRooms {
|
|
|
417
435
|
answerOnly?: boolean | undefined;
|
|
418
436
|
owner: {
|
|
419
437
|
name: string;
|
|
438
|
+
id?: string | undefined;
|
|
439
|
+
mine?: boolean | undefined;
|
|
420
440
|
};
|
|
421
441
|
canAsk: boolean;
|
|
422
442
|
signedIn?: undefined;
|
|
@@ -436,6 +456,10 @@ export declare class HubGroupRooms {
|
|
|
436
456
|
historyForNew: "all" | "since-join";
|
|
437
457
|
aiApps?: boolean | undefined;
|
|
438
458
|
assistant?: boolean | undefined;
|
|
459
|
+
office?: {
|
|
460
|
+
enabled: boolean;
|
|
461
|
+
style: string;
|
|
462
|
+
} | undefined;
|
|
439
463
|
};
|
|
440
464
|
invited: never[];
|
|
441
465
|
}>;
|
|
@@ -497,6 +521,8 @@ export declare class HubGroupRooms {
|
|
|
497
521
|
answerOnly?: boolean | undefined;
|
|
498
522
|
owner: {
|
|
499
523
|
name: string;
|
|
524
|
+
id?: string | undefined;
|
|
525
|
+
mine?: boolean | undefined;
|
|
500
526
|
};
|
|
501
527
|
canAsk: boolean;
|
|
502
528
|
signedIn?: undefined;
|
|
@@ -514,6 +540,8 @@ export declare class HubGroupRooms {
|
|
|
514
540
|
answerOnly?: boolean | undefined;
|
|
515
541
|
owner: {
|
|
516
542
|
name: string;
|
|
543
|
+
id?: string | undefined;
|
|
544
|
+
mine?: boolean | undefined;
|
|
517
545
|
};
|
|
518
546
|
canAsk: boolean;
|
|
519
547
|
signedIn?: undefined;
|
|
@@ -532,6 +560,8 @@ export declare class HubGroupRooms {
|
|
|
532
560
|
answerOnly?: boolean | undefined;
|
|
533
561
|
owner: {
|
|
534
562
|
name: string;
|
|
563
|
+
id?: string | undefined;
|
|
564
|
+
mine?: boolean | undefined;
|
|
535
565
|
};
|
|
536
566
|
canAsk: boolean;
|
|
537
567
|
signedIn?: undefined;
|
|
@@ -551,6 +581,10 @@ export declare class HubGroupRooms {
|
|
|
551
581
|
historyForNew: "all" | "since-join";
|
|
552
582
|
aiApps?: boolean | undefined;
|
|
553
583
|
assistant?: boolean | undefined;
|
|
584
|
+
office?: {
|
|
585
|
+
enabled: boolean;
|
|
586
|
+
style: string;
|
|
587
|
+
} | undefined;
|
|
554
588
|
};
|
|
555
589
|
invited: never[];
|
|
556
590
|
} | {
|
|
@@ -580,6 +614,37 @@ export declare class HubGroupRooms {
|
|
|
580
614
|
* them now. A pin whose message they can no longer see (it is older than their joining, or its question is not theirs)
|
|
581
615
|
* is left out. Nobody else's pins are ever read, and nobody else learns of these.
|
|
582
616
|
*/
|
|
617
|
+
/**
|
|
618
|
+
* M-3533 R1: the room's office for a member (office.ts roomOfficeView): its agents and assistant, each in the state the
|
|
619
|
+
* member list shows, "answering" while the Hub waits on its answer to a question asked here. 409 office-off when a
|
|
620
|
+
* manager turned it off; a 1:1 assistant chat has none.
|
|
621
|
+
*/
|
|
622
|
+
officeState(ctx: HubRequestContext, id: string): Promise<{
|
|
623
|
+
instances: import("./office.js").RoomOfficeAgent[];
|
|
624
|
+
org: {
|
|
625
|
+
general: never[];
|
|
626
|
+
teams: never[];
|
|
627
|
+
instances: {};
|
|
628
|
+
};
|
|
629
|
+
needs: never[];
|
|
630
|
+
traffic: {
|
|
631
|
+
now: string;
|
|
632
|
+
items: never[];
|
|
633
|
+
delegations: never[];
|
|
634
|
+
};
|
|
635
|
+
text: boolean;
|
|
636
|
+
office: string;
|
|
637
|
+
offices: {
|
|
638
|
+
rev: number;
|
|
639
|
+
readable: boolean;
|
|
640
|
+
offices: {
|
|
641
|
+
id: string;
|
|
642
|
+
name: string;
|
|
643
|
+
skin: string;
|
|
644
|
+
members: string[];
|
|
645
|
+
}[];
|
|
646
|
+
};
|
|
647
|
+
}>;
|
|
583
648
|
pins(ctx: HubRequestContext, id: string): Promise<{
|
|
584
649
|
pins: Array<{
|
|
585
650
|
messageId: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HUB_ROOM_MEMBERS_CAPABILITY } from "../room-members-model.js";
|
|
2
2
|
import { pageRoomMembers } from "./members-page.js";
|
|
3
3
|
import { normalizeRoomPurpose } from "./purpose.js";
|
|
4
|
+
import { newRoomOffice, officeAgent, officeOn, roomOfficeView } from "./office.js";
|
|
4
5
|
import { agentIntro } from "../agent-intro.js";
|
|
5
6
|
import { countChainStop } from "../admin-dashboard.js";
|
|
6
7
|
import { createHash, randomUUID } from "node:crypto";
|
|
@@ -81,7 +82,8 @@ export function validRoomEmoji(s) {
|
|
|
81
82
|
return false;
|
|
82
83
|
return [...new Intl.Segmenter("en", { granularity: "grapheme" }).segment(s)].length === 1;
|
|
83
84
|
}
|
|
84
|
-
const patchSchema = z.strictObject({ name: label.optional(), purpose: purpose.optional(), allMention: z.boolean().optional(), historyForNew: z.enum(["since-join", "all"]).optional(), archived: z.boolean().optional(), assistant: z.boolean().optional()
|
|
85
|
+
const patchSchema = z.strictObject({ name: label.optional(), purpose: purpose.optional(), allMention: z.boolean().optional(), historyForNew: z.enum(["since-join", "all"]).optional(), archived: z.boolean().optional(), assistant: z.boolean().optional(),
|
|
86
|
+
office: z.strictObject({ enabled: z.boolean() }).optional() });
|
|
85
87
|
export class HubRoomRefusal extends Error {
|
|
86
88
|
status;
|
|
87
89
|
code;
|
|
@@ -96,6 +98,7 @@ export class HubRoomRefusal extends Error {
|
|
|
96
98
|
/** People chat first; direct agent conversations remain in HubRoomsService. No timers or I/O on import. */
|
|
97
99
|
export class HubGroupRooms {
|
|
98
100
|
core;
|
|
101
|
+
office;
|
|
99
102
|
appPosts;
|
|
100
103
|
listeners = new Set();
|
|
101
104
|
agents;
|
|
@@ -111,8 +114,10 @@ export class HubGroupRooms {
|
|
|
111
114
|
searches = new Map();
|
|
112
115
|
agentSearch;
|
|
113
116
|
agentReadBuckets = new Map();
|
|
114
|
-
|
|
117
|
+
/** M-3533 R1: `office` true once the Hub offers the room office (room-office-v1); until then its field and route are refused. */
|
|
118
|
+
constructor(core, office = false) {
|
|
115
119
|
this.core = core;
|
|
120
|
+
this.office = office;
|
|
116
121
|
this.appPosts = core.atomic(db => !!db.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='hub_mcp_room_posts'").get());
|
|
117
122
|
this.postReplies = new RoomPostReplies(core);
|
|
118
123
|
this.automation = new RoomAutomation(() => core.now());
|
|
@@ -228,6 +233,11 @@ export class HubGroupRooms {
|
|
|
228
233
|
if (event)
|
|
229
234
|
system = { kind: "purpose-changed", name: row.author_name, purpose: event.purpose };
|
|
230
235
|
}
|
|
236
|
+
if (row.author_kind === "system" && row.author_id === "office-changed") {
|
|
237
|
+
const event = this.core.atomic(db => db.prepare("SELECT enabled FROM hub_room_office_events WHERE post_id=?").get(row.id));
|
|
238
|
+
if (event)
|
|
239
|
+
system = { kind: "office-changed", name: row.author_name, enabled: event.enabled === 1 };
|
|
240
|
+
}
|
|
231
241
|
// Agent rows retain their owner-at-message in author_subject; a later exposure transfer must not relabel history.
|
|
232
242
|
const agent = row.author_kind === "agent" ? this.core.atomic(db => {
|
|
233
243
|
const e = readExposure(db, row.author_id);
|
|
@@ -562,6 +572,14 @@ export class HubGroupRooms {
|
|
|
562
572
|
this.core.audit(tx, { requestId, actor: { kind: "person", person: personFromString(me) }, action: "room.purpose-changed", result: "completed", roomId: id, messageId: post.id, contentRef: post.content_ref });
|
|
563
573
|
return post;
|
|
564
574
|
}
|
|
575
|
+
/** M-3533 R1: a manager turned the room office on or off — one line, as a purpose change has (§2.1). */
|
|
576
|
+
recordOffice(db, tx, id, me, enabled, requestId) {
|
|
577
|
+
const name = this.name(db, me), text = `${name} turned the room office ${enabled ? "on" : "off"}.`;
|
|
578
|
+
const post = this.insert(db, tx, id, { kind: "system", id: "office-changed", subject: me, name }, text);
|
|
579
|
+
db.prepare("INSERT INTO hub_room_office_events VALUES(?,?)").run(post.id, Number(enabled));
|
|
580
|
+
this.core.audit(tx, { requestId, actor: { kind: "person", person: personFromString(me) }, action: "room.office-changed", result: "completed", roomId: id, messageId: post.id, contentRef: post.content_ref });
|
|
581
|
+
return post;
|
|
582
|
+
}
|
|
565
583
|
summary(db, room, member) {
|
|
566
584
|
const counts = db.prepare("SELECT kind,COUNT(*) AS n FROM hub_room_members WHERE room_id=? GROUP BY kind").all(room.id);
|
|
567
585
|
const floor = member.joined_sequence;
|
|
@@ -715,7 +733,7 @@ export class HubGroupRooms {
|
|
|
715
733
|
throw new HubRoomRefusal(403, "denied");
|
|
716
734
|
rememberRoomPeople(db, selectedPeople, this.core.now());
|
|
717
735
|
const id = randomUUID();
|
|
718
|
-
db.prepare("INSERT INTO hub_group_rooms(id,name,purpose,created_by,created_at) VALUES(
|
|
736
|
+
db.prepare("INSERT INTO hub_group_rooms(id,name,purpose,created_by,created_at,office_enabled) VALUES(?,?,?,?,?,?)").run(id, body.name, body.purpose, me, this.core.now(), newRoomOffice());
|
|
719
737
|
for (const person of people)
|
|
720
738
|
db.prepare("INSERT INTO hub_room_members(id,room_id,kind,subject,role,joined_sequence) VALUES(?,?,'person',?,?,0)").run(randomUUID(), id, person, person === me ? "manager" : "member");
|
|
721
739
|
this.insert(db, tx, id, { kind: "system", id: "room-created", subject: me, name: this.name(db, me) }, `${this.name(db, me)} created this room.`);
|
|
@@ -758,7 +776,7 @@ export class HubGroupRooms {
|
|
|
758
776
|
const e = readExposure(db, m.subject);
|
|
759
777
|
return { id: m.subject, kind: m.kind, name: e?.display_name ?? m.subject, ...agentIntro(db, m.subject), role: m.role,
|
|
760
778
|
...(e ? { agentKind: e.source_kind === "personal" ? "personal" : "fleet" } : {}),
|
|
761
|
-
...(e?.answer_only === 1 ? { answerOnly: true } : {}), owner: { name: this.name(db, m.owner_at_join ?? "") }, ...this.agents.presence(m.subject), canAsk: canAsk.has(m.subject) };
|
|
779
|
+
...(e?.answer_only === 1 ? { answerOnly: true } : {}), owner: { name: this.name(db, m.owner_at_join ?? ""), ...(m.owner_at_join ? { id: m.owner_at_join } : {}), ...(m.owner_at_join === me ? { mine: true } : {}) }, ...this.agents.presence(m.subject), canAsk: canAsk.has(m.subject) };
|
|
762
780
|
}
|
|
763
781
|
return { id: m.id, kind: m.kind, name: this.name(db, m.subject), role: m.role,
|
|
764
782
|
signedIn: !!db.prepare("SELECT 1 FROM hub_people WHERE person=?").get(m.subject),
|
|
@@ -768,13 +786,16 @@ export class HubGroupRooms {
|
|
|
768
786
|
return { room: { ...this.summary(db, room, own), ...(this.filesStore() ? { features: ["attachments-v1"] } : {}) }, me: { id: own.id, role: own.role }, members,
|
|
769
787
|
settings: { allMention: room.all_mention === 1, historyForNew: room.history_for_new,
|
|
770
788
|
...(this.appPosts ? { aiApps: db.prepare("SELECT enabled FROM hub_mcp_room_policy WHERE room_id=?").get(id)?.enabled !== 0 } : {}),
|
|
771
|
-
...(members.some(m => m.kind === "assistant") ? { assistant: true } : {})
|
|
789
|
+
...(members.some(m => m.kind === "assistant") ? { assistant: true } : {}),
|
|
790
|
+
...(this.office ? { office: { enabled: officeOn(room.office_enabled), style: room.office_style } } : {}) }, invited: [] };
|
|
772
791
|
}, { assertCurrent: () => { this.fence(ctx).assertCurrent(); for (const proof of directProofs)
|
|
773
792
|
proof.assertCurrent(); } });
|
|
774
793
|
}
|
|
775
794
|
async patch(ctx, id, input) {
|
|
776
795
|
const body = validated(patchSchema, input), me = await this.who(ctx);
|
|
777
|
-
|
|
796
|
+
if (body.office && !this.office)
|
|
797
|
+
throw new HubProtocolError("invalid");
|
|
798
|
+
const posts = this.core.atomic((db, tx) => {
|
|
778
799
|
this.member(db, id, me, true);
|
|
779
800
|
const row = this.room(db, id);
|
|
780
801
|
if (row.assistant_for)
|
|
@@ -783,17 +804,22 @@ export class HubGroupRooms {
|
|
|
783
804
|
this.addAssistant(db, id);
|
|
784
805
|
else if (body.assistant === false)
|
|
785
806
|
db.prepare("DELETE FROM hub_room_members WHERE room_id=? AND kind='assistant'").run(id);
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
807
|
+
const was = officeOn(row.office_enabled), office = body.office === undefined ? row.office_enabled : Number(body.office.enabled);
|
|
808
|
+
db.prepare("UPDATE hub_group_rooms SET name=?,purpose=?,all_mention=?,history_for_new=?,archived=?,office_enabled=? WHERE id=?")
|
|
809
|
+
.run(body.name ?? row.name, body.purpose ?? row.purpose, body.allMention === undefined ? row.all_mention : Number(body.allMention), body.historyForNew ?? row.history_for_new, body.archived === undefined ? row.archived : Number(body.archived), office, id);
|
|
810
|
+
const changed = [];
|
|
811
|
+
if (body.purpose !== undefined && body.purpose !== row.purpose)
|
|
812
|
+
changed.push(this.recordPurpose(db, tx, id, me, body.purpose, ctx.requestId));
|
|
813
|
+
if (body.office && body.office.enabled !== was)
|
|
814
|
+
changed.push(this.recordOffice(db, tx, id, me, body.office.enabled, ctx.requestId));
|
|
789
815
|
this.core.audit(tx, { requestId: ctx.requestId, actor: { kind: "person", person: personFromString(me) }, action: "room.updated", result: "completed", roomId: id });
|
|
790
816
|
return changed;
|
|
791
817
|
}, this.fence(ctx));
|
|
792
818
|
if (body.archived || body.assistant === false)
|
|
793
819
|
this.assistant.forget(id);
|
|
794
820
|
this.agents.sweep(id);
|
|
795
|
-
|
|
796
|
-
this.emit({ type: "message.added", roomId: id, data: { roomId: id, message: this.projection(
|
|
821
|
+
for (const post of posts)
|
|
822
|
+
this.emit({ type: "message.added", roomId: id, data: { roomId: id, message: this.projection(post) }, sequence: post.sequence });
|
|
797
823
|
this.emit({ type: "room.changed", roomId: id, data: { roomId: id } });
|
|
798
824
|
return this.detail(ctx, id);
|
|
799
825
|
}
|
|
@@ -1060,6 +1086,36 @@ export class HubGroupRooms {
|
|
|
1060
1086
|
* them now. A pin whose message they can no longer see (it is older than their joining, or its question is not theirs)
|
|
1061
1087
|
* is left out. Nobody else's pins are ever read, and nobody else learns of these.
|
|
1062
1088
|
*/
|
|
1089
|
+
/**
|
|
1090
|
+
* M-3533 R1: the room's office for a member (office.ts roomOfficeView): its agents and assistant, each in the state the
|
|
1091
|
+
* member list shows, "answering" while the Hub waits on its answer to a question asked here. 409 office-off when a
|
|
1092
|
+
* manager turned it off; a 1:1 assistant chat has none.
|
|
1093
|
+
*/
|
|
1094
|
+
async officeState(ctx, id) {
|
|
1095
|
+
if (!this.office)
|
|
1096
|
+
throw new HubRoomRefusal(404, "not-found");
|
|
1097
|
+
const me = await this.who(ctx);
|
|
1098
|
+
this.agents.sweep(id);
|
|
1099
|
+
return this.core.atomic(db => {
|
|
1100
|
+
this.member(db, id, me);
|
|
1101
|
+
const room = this.room(db, id);
|
|
1102
|
+
if (room.assistant_for)
|
|
1103
|
+
throw new HubRoomRefusal(404, "not-found");
|
|
1104
|
+
if (!officeOn(room.office_enabled))
|
|
1105
|
+
throw new HubRoomRefusal(409, "office-off");
|
|
1106
|
+
// What a message's progress says (agents.ts), so the two never disagree; a wait that ran out was settled by the sweep above.
|
|
1107
|
+
const answering = this.agents.answering(db, id);
|
|
1108
|
+
const agents = db.prepare("SELECT * FROM hub_room_members WHERE room_id=? AND kind IN ('agent','assistant') ORDER BY kind,id").all(id).map(m => {
|
|
1109
|
+
if (m.kind === "assistant") {
|
|
1110
|
+
const p = this.assistant.presence(id);
|
|
1111
|
+
return officeAgent("assistant", "Hub assistant", p, p === "working", true);
|
|
1112
|
+
}
|
|
1113
|
+
const e = readExposure(db, m.subject), p = this.agents.presence(m.subject).presence;
|
|
1114
|
+
return officeAgent(m.subject, e?.display_name ?? m.subject, p, answering.has(m.subject));
|
|
1115
|
+
});
|
|
1116
|
+
return roomOfficeView({ name: room.name, style: room.office_style }, agents, this.core.now());
|
|
1117
|
+
}, this.fence(ctx));
|
|
1118
|
+
}
|
|
1063
1119
|
async pins(ctx, id) {
|
|
1064
1120
|
const me = await this.who(ctx);
|
|
1065
1121
|
return this.core.atomic(db => ({ pins: this.pinList(db, id, this.member(db, id, me), me) }), this.fence(ctx));
|