@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
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
// What the agent is doing on a card (Fleet › Tasks). The board knows a card's assignee and its status; the
|
|
2
|
+
// dashboard already knows each instance's state (working, waiting for you, stuck, idle) and, for an admin, its steps (the
|
|
3
|
+
// chat's activity block). This puts them side by side: a card in progress whose assignee is working is "running".
|
|
4
|
+
//
|
|
5
|
+
// The match is an INFERENCE, not a record: AgEnD has no run per card — an instance is one continuing session. A card in
|
|
6
|
+
// `claimed` and its assignee working are taken for one thing, which is exact while the assignee has that one card in
|
|
7
|
+
// progress (the default, `board_cards_at_once: 1`). With several in progress (a higher limit, or a person dragged some
|
|
8
|
+
// there) nothing says which one the assignee is on: each of them says "busy, N cards" and none says "running". Nothing is
|
|
9
|
+
// stored and nothing is added to the API; an instance the viewer cannot see, a card nobody has, or steps that are not
|
|
10
|
+
// offered show nothing (or the state alone). The board reads the dashboard's store ONCE (useRunContext), only for the
|
|
11
|
+
// instances that have a card in progress, and redraws only when one of THEIR states changes — a tile and a row never
|
|
12
|
+
// subscribe to the store themselves. No style attribute anywhere (the CSP).
|
|
13
|
+
import { html, useEffect, useMemo, useRef, useState } from "/assets/app-html.js";
|
|
14
|
+
import { t, register } from "/assets/app-i18n.js";
|
|
15
|
+
import { appStore, useStore } from "/assets/app-store.js";
|
|
16
|
+
import { dotState } from "/assets/instance-nav.js";
|
|
17
|
+
import { chatPath, detailsPath } from "/assets/app-route.js";
|
|
18
|
+
import { Icon } from "/assets/ui-icons.js";
|
|
19
|
+
import { ActivityBlock, activityDrawCtx, activityOffered, activityPrefs, activitySnapshot, observeActivity } from "./chat-activity.js";
|
|
20
|
+
import { SHOWN, TIME_SLACK_MS, hasSubstance } from "./chat-activity-groups.js";
|
|
21
|
+
import { Who } from "./fleet-task-common.js";
|
|
22
|
+
|
|
23
|
+
register("taskrun", {
|
|
24
|
+
en: {
|
|
25
|
+
title: "Agent activity", running: "Running", needs: "Needs you", stuck: "Looks stuck", idle: "Idle", sharedMark: "Busy · {0} cards", byAgent: "Agent", byAgentTip: "Made by an agent",
|
|
26
|
+
openChat: "Open conversation", openChatTip: "{0}'s conversation: its replies and, where shown, its steps",
|
|
27
|
+
idleNote: "{0} has this card in progress but is idle right now.",
|
|
28
|
+
sharedNote: "{0} has {1} cards in progress, so what it is doing now may belong to another of them.",
|
|
29
|
+
stepsOff: "{0}'s tool progress is off, so its steps are not shown here.", stepsOffLink: "Turn it on in its settings",
|
|
30
|
+
noSteps: "This agent's runtime does not offer its steps.",
|
|
31
|
+
waiting: "Not started: {0} will update this once it takes the card", waitingNobody: "Not started: whoever takes the card will update this",
|
|
32
|
+
viaSubs: "The work is in its sub tasks: each one's agent updates its own card", nothingYet: "No state or result written yet",
|
|
33
|
+
},
|
|
34
|
+
"zh-TW": {
|
|
35
|
+
title: "Agent 活動", running: "執行中", needs: "等你回應", stuck: "似乎卡住", idle: "閒置", sharedMark: "忙碌中 · {0} 張卡", byAgent: "Agent", byAgentTip: "由 Agent 做的",
|
|
36
|
+
openChat: "開啟對話", openChatTip: "{0} 的對話:它的回覆,以及(有顯示時)它的步驟",
|
|
37
|
+
idleNote: "{0} 手上有這張進行中的卡,但目前閒置。",
|
|
38
|
+
sharedNote: "{0} 同時有 {1} 張卡在進行中,目前的動作可能屬於其中另一張。",
|
|
39
|
+
stepsOff: "{0} 的工具進度是關閉的,所以這裡不顯示它的步驟。", stepsOffLink: "到它的設定開啟",
|
|
40
|
+
noSteps: "這個 Agent 的執行環境沒有提供步驟。",
|
|
41
|
+
waiting: "待啟動:{0} 接手後會在這裡更新", waitingNobody: "待啟動:有人接手後會在這裡更新",
|
|
42
|
+
viaSubs: "工作在子任務裡:各子任務的 Agent 會在自己的卡上更新", nothingYet: "還沒有目前狀態或產出",
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
// ── What is running (pure: tests import these) ───────────────
|
|
47
|
+
|
|
48
|
+
/** The states a card shows, strongest first: working, then waiting for the person, then stuck, then idle. */
|
|
49
|
+
export const RUN_RANK = { working: 0, needs: 1, stuck: 2, idle: 3 };
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* How many board cards each instance has in progress, by name — what `task mine` counts: cards in `claimed`, a main task
|
|
53
|
+
* that follows its sub tasks aside (its sub tasks are the work).
|
|
54
|
+
*/
|
|
55
|
+
export function inProgressBy(cards) {
|
|
56
|
+
const out = new Map();
|
|
57
|
+
for (const c of Array.isArray(cards) ? cards : []) {
|
|
58
|
+
if (!c || c.status !== "claimed" || !c.assignee) continue;
|
|
59
|
+
if (c.kind === "main" && c.progress && c.progress.total > 0) continue;
|
|
60
|
+
out.set(c.assignee, (out.get(c.assignee) || 0) + 1);
|
|
61
|
+
}
|
|
62
|
+
return out;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The state of each named instance the viewer sees (`dotState`: working, needs, stuck, idle, stopped…), as a map by name —
|
|
67
|
+
* read from the dashboard's store state `{ instances, exec, awaiting }`. A name the viewer does not see is not in it.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceStates(store, names) {
|
|
70
|
+
const out = new Map();
|
|
71
|
+
const instances = (store && store.instances) || [];
|
|
72
|
+
for (const name of names) {
|
|
73
|
+
const it = instances.find((i) => i.name === name);
|
|
74
|
+
if (it) out.set(name, dotState(it, ((store && store.exec) || {})[name], ((store && store.awaiting) || {})[name]));
|
|
75
|
+
}
|
|
76
|
+
return out;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* What a card's assignee is doing on it, or null (nothing to say): { instance, state: working | needs | stuck | idle, shared }
|
|
81
|
+
* — `shared`: how many cards the assignee has in progress when that is more than this one (then which one it is on is
|
|
82
|
+
* not known), else 0. Only a card in progress has one, and only while its assignee is an instance the viewer sees, running.
|
|
83
|
+
* A main task that follows its sub tasks has its running sub tasks' (the strongest); `subs`: the ones the page shows.
|
|
84
|
+
* `ctx`: { states, doing } — `instanceStates` of the instances with a card in progress, and `inProgressBy` of the board.
|
|
85
|
+
*/
|
|
86
|
+
export function runOf(card, ctx, subs = []) {
|
|
87
|
+
if (!card || card.status !== "claimed") return null;
|
|
88
|
+
if (card.kind === "main" && card.progress && card.progress.total > 0) {
|
|
89
|
+
const runs = (subs || []).map((s) => runOf(s, ctx)).filter(Boolean).sort((a, b) => RUN_RANK[a.state] - RUN_RANK[b.state]);
|
|
90
|
+
return runs[0] || null;
|
|
91
|
+
}
|
|
92
|
+
const name = card.assignee;
|
|
93
|
+
if (!name || !ctx) return null;
|
|
94
|
+
const state = ctx.states && ctx.states.get(name);
|
|
95
|
+
if (!(state in RUN_RANK)) return null;
|
|
96
|
+
const n = (ctx.doing && ctx.doing.get(name)) || 0;
|
|
97
|
+
return { instance: name, state, shared: n > 1 ? n : 0 };
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** A signature of some states, to tell whether any changed. */
|
|
101
|
+
const signature = (states) => [...states].map(([name, state]) => `${name}\u0000${state}`).sort().join("\u0001");
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* What the board needs to say "running" on every tile and row: `{ states, doing }` for `runOf`. ONE read of the dashboard's
|
|
105
|
+
* store for the whole board, and only of the instances that have a card in progress (the only ones a mark can name):
|
|
106
|
+
* it redraws when one of THOSE states changes, not on every store change (a status poll, a message) — a tile or a row
|
|
107
|
+
* subscribes to nothing. Computed from the store as it is at each draw, so a card that came in progress is never drawn
|
|
108
|
+
* with a state from before.
|
|
109
|
+
*/
|
|
110
|
+
export function useRunContext(cards) {
|
|
111
|
+
const doing = useMemo(() => inProgressBy(cards), [cards]);
|
|
112
|
+
const [, redraw] = useState(0);
|
|
113
|
+
const states = instanceStates(appStore.get(), doing.keys());
|
|
114
|
+
const drawn = useRef("");
|
|
115
|
+
drawn.current = signature(states);
|
|
116
|
+
useEffect(() => {
|
|
117
|
+
const changed = () => signature(instanceStates(appStore.get(), doing.keys())) !== drawn.current;
|
|
118
|
+
if (changed()) redraw((n) => n + 1); // moved between the draw and this subscription
|
|
119
|
+
return appStore.subscribe(() => { if (changed()) redraw((n) => n + 1); });
|
|
120
|
+
}, [doing]);
|
|
121
|
+
return useMemo(() => ({ states, doing }), [doing, drawn.current]);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* When the card was last put in progress, in epoch ms (0: unknown): its newest move to `claimed` in the history, else
|
|
126
|
+
* the time it first started. Steps older than this are not this card's.
|
|
127
|
+
*/
|
|
128
|
+
export function claimedSince(detail) {
|
|
129
|
+
let at = 0;
|
|
130
|
+
for (const ev of (detail && detail.history) || []) {
|
|
131
|
+
if (ev && ev.type === "moved" && ev.data && ev.data.to === "claimed") at = Math.max(at, Date.parse(ev.at) || 0);
|
|
132
|
+
}
|
|
133
|
+
return at || Date.parse((detail && detail.card && detail.card.startedAt) || "") || 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* The live group the chat's ActivityBlock draws, from the steps an instance's feed holds: those since `since` (the
|
|
138
|
+
* newest turn's, when it is not known), thinking left to the block's own switch. Null when there is nothing to draw
|
|
139
|
+
* from: no answer yet, the server offers nothing for good, the agent's tool_progress is off, or its backend has no steps.
|
|
140
|
+
*/
|
|
141
|
+
export function liveGroupOf(snap, { since = 0, busy = true } = {}) {
|
|
142
|
+
if (!snap || snap.dead || !snap.info || snap.info.level === "off" || snap.info.supported === false) return null;
|
|
143
|
+
const shown = (snap.steps || []).filter((s) => SHOWN.has(s.kind) && hasSubstance(s));
|
|
144
|
+
let items;
|
|
145
|
+
if (since) items = shown.filter((s) => !s.ts || s.ts >= since - TIME_SLACK_MS);
|
|
146
|
+
else {
|
|
147
|
+
const last = shown[shown.length - 1];
|
|
148
|
+
items = last ? shown.filter((s) => s.turn === last.turn) : [];
|
|
149
|
+
}
|
|
150
|
+
const from = (items[0] && items[0].ts) || since || 0;
|
|
151
|
+
const first = (snap.steps || [])[0];
|
|
152
|
+
const partial = !!since && !snap.complete && !!first && Number.isFinite(first.ts) && first.ts > since;
|
|
153
|
+
return {
|
|
154
|
+
key: "act:card", turn: "card", n: 0, level: "live", rowKey: null, items, trailing: [], ts: from, from, to: 0, ended: false, turnEnded: false,
|
|
155
|
+
busy, atEnd: true, ...(snap.phase ? { phase: snap.phase } : {}), ...(partial ? { partial: true } : {}),
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// ── What is drawn ─────────────────────────────────────────
|
|
160
|
+
|
|
161
|
+
/** A state in words, capitalised for a chip ("needs you" is the dashboard's own wording). */
|
|
162
|
+
const stateWord = (state) => t(`taskrun.${state === "working" ? "running" : state}`);
|
|
163
|
+
|
|
164
|
+
/** "Running" (or "Busy · N cards", "Needs you", "Looks stuck") beside a tile's or a row's number; idle says nothing there. */
|
|
165
|
+
export function RunMark({ run }) {
|
|
166
|
+
if (!run || run.state === "idle") return null;
|
|
167
|
+
const word = run.state === "working" && run.shared ? t("taskrun.sharedMark", run.shared) : stateWord(run.state);
|
|
168
|
+
return html`<span class=${`tr-mark s-${run.state}${run.shared ? " shared" : ""}`} title=${`${run.instance}: ${word}`}>
|
|
169
|
+
<span class="tr-dot" aria-hidden="true"></span>${word}</span>`;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/** A timeline entry's "Agent" tag: made by an instance (the entry says so; an older one that does not gets none). */
|
|
173
|
+
export function AgentTag() {
|
|
174
|
+
return html`<span class="tb-tag tr-by" title=${t("taskrun.byAgentTip")}><${Icon} name="bot" size=${12} />${t("taskrun.byAgent")}</span>`;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/** The feed of `name`'s steps (the chat's own read, live by `steps_tick`), held while `on`; redraws when it changes. */
|
|
178
|
+
function useFeed(name, on, busy) {
|
|
179
|
+
const [, bump] = useState(0);
|
|
180
|
+
const working = useRef(busy);
|
|
181
|
+
working.current = busy;
|
|
182
|
+
useEffect(() => {
|
|
183
|
+
if (!on || !name) return undefined;
|
|
184
|
+
const feed = observeActivity(name, {
|
|
185
|
+
changed: () => bump((n) => n + 1),
|
|
186
|
+
streamOn: appStore.get().streamOn,
|
|
187
|
+
polling: () => globalThis.document?.body?.dataset?.webTransport === "poll" || appStore.get().connection === "polling",
|
|
188
|
+
wantThinking: () => activityPrefs.get().thinking,
|
|
189
|
+
working: () => working.current,
|
|
190
|
+
});
|
|
191
|
+
feed.start();
|
|
192
|
+
return () => feed.stop();
|
|
193
|
+
}, [name, on]);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* What a card's agent block says when there is nothing to show yet (pure: tests import it): waiting for someone to take the
|
|
198
|
+
* card, work that lives in its sub tasks, or just that nothing is written. `run`: this card's `runOf`, if any — an assignee
|
|
199
|
+
* that has the card in progress and is idle says so (the one thing it can know).
|
|
200
|
+
*/
|
|
201
|
+
export function handoffNote(card, { derived = false, run = null } = {}) {
|
|
202
|
+
if (run && run.state === "idle") return t("taskrun.idleNote", run.instance);
|
|
203
|
+
if (card.status === "open") return card.assignee ? t("taskrun.waiting", card.assignee) : t("taskrun.waitingNobody");
|
|
204
|
+
return derived ? t("taskrun.viaSubs") : t("taskrun.nothingYet");
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* A card's agent block (Fleet › Tasks › a card's page): everything an agent writes or does on the card, apart from the
|
|
209
|
+
* people's spec above it. With nothing to show — no state or result written (`shown` is empty), the agent not running — it is
|
|
210
|
+
* one quiet line saying so (`adders`: the buttons that open the empty fields, a writer's way in; the way to the assignee's
|
|
211
|
+
* conversation stays). With a state or result, or while the assignee is working, it opens up: who, their state, the way to their
|
|
212
|
+
* conversation, the live steps (an admin, tool progress on), then the fields (`shown`) and the buttons for the empty ones.
|
|
213
|
+
* `doing`: `inProgressBy` of the board. `derived`: a main task that follows its sub tasks has no agent of its own (its sub
|
|
214
|
+
* tasks' pages do), whatever its assignee field says.
|
|
215
|
+
*/
|
|
216
|
+
export function AgentRun({ card, detail, doing, derived = false, shown = [], adders = [] }) {
|
|
217
|
+
const store = useStore(appStore); // one card's page: one subscription
|
|
218
|
+
useStore(activityPrefs);
|
|
219
|
+
const name = !derived && card.assignee ? card.assignee : null;
|
|
220
|
+
const it = name ? (store.instances || []).find((i) => i.name === name) : null;
|
|
221
|
+
const run = it ? runOf(card, { states: instanceStates(store, [name]), doing }) : null;
|
|
222
|
+
const live = !!run && run.state !== "idle";
|
|
223
|
+
const offered = live && activityOffered() && activityPrefs.get().on;
|
|
224
|
+
useFeed(name, offered, live);
|
|
225
|
+
const chat = it ? html`<a class="btn btn-sm tr-open" href=${chatPath(name)} title=${t("taskrun.openChatTip", name)}><${Icon} name="chat" size=${14} />${t("taskrun.openChat")}</a>` : null;
|
|
226
|
+
const extras = adders.length ? html`<span class="tp-adders">${adders}</span>` : null;
|
|
227
|
+
if (!live && !shown.length) {
|
|
228
|
+
return html`<section class="tr-run tp-agent is-strip" aria-label=${t("taskrun.title")}>
|
|
229
|
+
<span class="tp-agent-icon" aria-hidden="true"><${Icon} name="bot" size=${16} /></span>
|
|
230
|
+
<span class="tr-title">${t("taskrun.title")}</span>
|
|
231
|
+
<span class="tp-agent-note">${handoffNote(card, { derived, run })}</span>
|
|
232
|
+
<span class="tb-grow"></span>${extras}${chat}
|
|
233
|
+
</section>`;
|
|
234
|
+
}
|
|
235
|
+
const snap = offered ? activitySnapshot(name) : null;
|
|
236
|
+
const group = snap ? liveGroupOf(snap, { since: claimedSince(detail), busy: live }) : null;
|
|
237
|
+
const off = snap && !snap.dead && snap.info && snap.info.level === "off";
|
|
238
|
+
const none = snap && snap.info && snap.info.supported === false; // (the feed then holds nothing for good: dead)
|
|
239
|
+
const word = run ? stateWord(run.state) : "";
|
|
240
|
+
return html`<section class="card lbar tr-run tp-agent" aria-label=${t("taskrun.title")}>
|
|
241
|
+
<div class="tr-head">
|
|
242
|
+
<span class="tp-agent-icon" aria-hidden="true"><${Icon} name="bot" size=${16} /></span>
|
|
243
|
+
<h3 class="tr-title">${t("taskrun.title")}</h3>
|
|
244
|
+
${it ? html`<${Who} name=${name} />` : null}
|
|
245
|
+
${run ? html`<span class=${`tr-state s-${run.state}`}><span class="tr-dot" aria-hidden="true"></span>${word}</span>` : null}
|
|
246
|
+
<span class="tb-grow"></span>
|
|
247
|
+
${chat}
|
|
248
|
+
</div>
|
|
249
|
+
${run && run.state === "idle" ? html`<p class="muted tr-note">${t("taskrun.idleNote", name)}</p>` : null}
|
|
250
|
+
${run && run.shared ? html`<p class="muted tr-note">${t("taskrun.sharedNote", name, run.shared)}</p>` : null}
|
|
251
|
+
${group ? html`<${ActivityBlock} group=${group} ctx=${activityDrawCtx(name)} />` : null}
|
|
252
|
+
${off ? html`<p class="muted tr-note">${t("taskrun.stepsOff", name)} <a class="link" href=${detailsPath(name)}>${t("taskrun.stepsOffLink")}</a></p>` : null}
|
|
253
|
+
${none ? html`<p class="muted tr-note">${t("taskrun.noSteps")}</p>` : null}
|
|
254
|
+
${shown.length ? html`<div class="tp-agent-fields">${shown}</div>` : null}
|
|
255
|
+
${extras ? html`<div class="tp-agent-add">${extras}</div>` : null}
|
|
256
|
+
</section>`;
|
|
257
|
+
}
|