@songsid/agend 2.4.0-beta.24 → 2.4.0-beta.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/README.zh-TW.md +1 -1
- package/dist/agend-home.js +5 -5
- package/dist/agend-home.js.map +1 -1
- package/dist/agent-endpoint.js +10 -0
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-file-read.js +1 -1
- package/dist/agent-file-read.js.map +1 -1
- package/dist/agent-workspace.d.ts +18 -2
- package/dist/agent-workspace.js +15 -4
- package/dist/agent-workspace.js.map +1 -1
- package/dist/auth-api.js +3 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/antigravity.js +8 -6
- package/dist/backend/antigravity.js.map +1 -1
- package/dist/backend/claude-code.js +17 -0
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/claude-usage-credits.d.ts +8 -0
- package/dist/backend/claude-usage-credits.js +121 -0
- package/dist/backend/claude-usage-credits.js.map +1 -0
- package/dist/backend/types.d.ts +30 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/adapters/discord.js +7 -1
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/mcp-tools.js +1 -1
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/channel/tool-router.js +1 -0
- package/dist/channel/tool-router.js.map +1 -1
- package/dist/cli-audited.js +9 -4
- package/dist/cli-audited.js.map +1 -1
- package/dist/cli.js +184 -21
- package/dist/cli.js.map +1 -1
- package/dist/config-validator.js +11 -1
- package/dist/config-validator.js.map +1 -1
- package/dist/config.js +2 -0
- package/dist/config.js.map +1 -1
- package/dist/contact-auth-store.d.ts +18 -0
- package/dist/contact-auth-store.js +55 -8
- package/dist/contact-auth-store.js.map +1 -1
- package/dist/contact-auth-types.d.ts +3 -0
- package/dist/contact-auth-types.js.map +1 -1
- package/dist/contact-change-proposals.d.ts +34 -0
- package/dist/contact-change-proposals.js +1 -1
- package/dist/contact-change-proposals.js.map +1 -1
- package/dist/cross-instance-notice.d.ts +1 -0
- package/dist/cross-instance-notice.js +9 -8
- package/dist/cross-instance-notice.js.map +1 -1
- package/dist/daemon.d.ts +35 -0
- package/dist/daemon.js +234 -19
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-outbox.d.ts +42 -1
- package/dist/delivery-outbox.js +198 -21
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/fleet-context.d.ts +8 -0
- package/dist/fleet-lock.d.ts +83 -2
- package/dist/fleet-lock.js +276 -2
- package/dist/fleet-lock.js.map +1 -1
- package/dist/fleet-manager.d.ts +183 -7
- package/dist/fleet-manager.js +1279 -78
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-windows-runtime.d.ts +20 -1
- package/dist/fleet-windows-runtime.js +98 -18
- package/dist/fleet-windows-runtime.js.map +1 -1
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +13 -1
- package/dist/general-knowledge/skills/hub/SKILL.md +12 -1
- package/dist/general-knowledge/skills/web-appearance/SKILL.md +3 -1
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +21 -4
- package/dist/home-update-lock.d.ts +35 -0
- package/dist/home-update-lock.js +81 -0
- package/dist/home-update-lock.js.map +1 -0
- package/dist/hub/client.js +7 -0
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +5 -1
- package/dist/hub/compose/member.js +15 -6
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +1 -0
- package/dist/hub/compose/server.js +3 -2
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/http/compose.js +3 -2
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/deps.d.ts +1 -0
- package/dist/hub/member/room-ask.d.ts +12 -8
- package/dist/hub/member/room-ask.js +95 -29
- package/dist/hub/member/room-ask.js.map +1 -1
- package/dist/hub/member/room-mention-feedback.d.ts +2 -0
- package/dist/hub/member/room-mention-feedback.js +1 -1
- package/dist/hub/member/room-mention-feedback.js.map +1 -1
- package/dist/hub/member/room-post-answers.d.ts +2 -0
- package/dist/hub/member/room-post-answers.js +1 -1
- package/dist/hub/member/room-post-answers.js.map +1 -1
- package/dist/hub/member/room-post.d.ts +5 -0
- package/dist/hub/member/room-post.js +4 -1
- package/dist/hub/member/room-post.js.map +1 -1
- package/dist/hub/member/room-reaction-acks.d.ts +12 -0
- package/dist/hub/member/room-reaction-acks.js +44 -0
- package/dist/hub/member/room-reaction-acks.js.map +1 -0
- package/dist/hub/member/updates.d.ts +7 -1
- package/dist/hub/member/updates.js +7 -1
- package/dist/hub/member/updates.js.map +1 -1
- package/dist/hub/protocol.d.ts +4 -0
- package/dist/hub/protocol.js +2 -2
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/representative.d.ts +7 -0
- package/dist/hub/representative.js +38 -5
- package/dist/hub/representative.js.map +1 -1
- package/dist/hub/roles/audit-details.d.ts +2 -0
- package/dist/hub/roles/audit-details.js +1 -1
- package/dist/hub/roles/audit-details.js.map +1 -1
- package/dist/hub/roles/authority.d.ts +8 -3
- package/dist/hub/roles/authority.js +144 -102
- package/dist/hub/roles/authority.js.map +1 -1
- package/dist/hub/roles/delegation.js +2 -2
- package/dist/hub/roles/delegation.js.map +1 -1
- package/dist/hub/roles/model.d.ts +5 -2
- package/dist/hub/roles/model.js +5 -4
- package/dist/hub/roles/model.js.map +1 -1
- package/dist/hub/roles/review.js +2 -2
- package/dist/hub/roles/review.js.map +1 -1
- package/dist/hub/room-react-ack-model.d.ts +2 -0
- package/dist/hub/room-react-ack-model.js +3 -0
- package/dist/hub/room-react-ack-model.js.map +1 -0
- package/dist/hub/rooms/admin.d.ts +6 -0
- package/dist/hub/rooms/admin.js +33 -0
- package/dist/hub/rooms/admin.js.map +1 -1
- package/dist/hub/rooms/agents.d.ts +2 -0
- package/dist/hub/rooms/agents.js +44 -3
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +5 -1
- package/dist/hub/rooms/service.js +76 -24
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +2 -0
- package/dist/hub/server.js +6 -1
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/types.d.ts +2 -0
- package/dist/install-lock.d.ts +15 -1
- package/dist/install-lock.js +16 -8
- package/dist/install-lock.js.map +1 -1
- package/dist/install-ownership.d.ts +165 -0
- package/dist/install-ownership.js +404 -0
- package/dist/install-ownership.js.map +1 -0
- package/dist/instance-config-impact.js +2 -0
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instructions.d.ts +4 -0
- package/dist/instructions.js +4 -0
- package/dist/instructions.js.map +1 -1
- package/dist/local-pane-endpoint.d.ts +4 -1
- package/dist/local-pane-endpoint.js +12 -2
- package/dist/local-pane-endpoint.js.map +1 -1
- package/dist/locale.js +162 -6
- package/dist/locale.js.map +1 -1
- package/dist/native-agent-admission.d.ts +7 -0
- package/dist/native-agent-admission.js +46 -3
- package/dist/native-agent-admission.js.map +1 -1
- package/dist/native-mcp.d.ts +16 -1
- package/dist/native-mcp.js +38 -5
- package/dist/native-mcp.js.map +1 -1
- package/dist/native-pane-lifecycle.d.ts +9 -0
- package/dist/native-pane-lifecycle.js +23 -0
- package/dist/native-pane-lifecycle.js.map +1 -1
- package/dist/native-pane-manager.d.ts +19 -6
- package/dist/native-pane-manager.js +79 -4
- package/dist/native-pane-manager.js.map +1 -1
- package/dist/needs-you.d.ts +8 -0
- package/dist/needs-you.js +1 -0
- package/dist/needs-you.js.map +1 -1
- package/dist/outbound-handlers.d.ts +12 -0
- package/dist/outbound-handlers.js +30 -2
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/package-preimage.js +4 -0
- package/dist/package-preimage.js.map +1 -1
- package/dist/pane-port.d.ts +1 -0
- package/dist/plist-args.d.ts +9 -0
- package/dist/plist-args.js +22 -0
- package/dist/plist-args.js.map +1 -0
- package/dist/public-preview.d.ts +4 -6
- package/dist/public-preview.js +5 -2
- package/dist/public-preview.js.map +1 -1
- package/dist/public-web-gateway.js +10 -3
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +13 -1
- package/dist/public-web-link.js +28 -1
- package/dist/public-web-link.js.map +1 -1
- package/dist/recover.cjs +2638 -0
- package/dist/remote-card-prompt.d.ts +6 -2
- package/dist/remote-card-prompt.js +12 -3
- package/dist/remote-card-prompt.js.map +1 -1
- package/dist/reply-draft.d.ts +12 -0
- package/dist/reply-draft.js +81 -0
- package/dist/reply-draft.js.map +1 -0
- package/dist/request-contact-api.d.ts +15 -0
- package/dist/request-contact-api.js +120 -0
- package/dist/request-contact-api.js.map +1 -0
- package/dist/request-contact-card.d.ts +36 -0
- package/dist/request-contact-card.js +206 -0
- package/dist/request-contact-card.js.map +1 -0
- package/dist/request-contact-gate.d.ts +79 -0
- package/dist/request-contact-gate.js +262 -0
- package/dist/request-contact-gate.js.map +1 -0
- package/dist/request-contact-native.d.ts +52 -0
- package/dist/request-contact-native.js +87 -0
- package/dist/request-contact-native.js.map +1 -0
- package/dist/request-contact-types.d.ts +86 -0
- package/dist/request-contact-types.js +7 -0
- package/dist/request-contact-types.js.map +1 -0
- package/dist/request-context-call-protocol.d.ts +12 -0
- package/dist/request-context-call-protocol.js +14 -0
- package/dist/request-context-call-protocol.js.map +1 -0
- package/dist/request-context-call.d.ts +22 -0
- package/dist/request-context-call.js +35 -0
- package/dist/request-context-call.js.map +1 -0
- package/dist/request-context-drain.d.ts +39 -0
- package/dist/request-context-drain.js +159 -0
- package/dist/request-context-drain.js.map +1 -0
- package/dist/request-context-fence.d.ts +28 -0
- package/dist/request-context-fence.js +58 -0
- package/dist/request-context-fence.js.map +1 -0
- package/dist/request-context-migration.d.ts +64 -0
- package/dist/request-context-migration.js +158 -0
- package/dist/request-context-migration.js.map +1 -0
- package/dist/request-context-pane.d.ts +25 -0
- package/dist/request-context-pane.js +48 -0
- package/dist/request-context-pane.js.map +1 -0
- package/dist/request-context-policy.d.ts +74 -0
- package/dist/request-context-policy.js +116 -0
- package/dist/request-context-policy.js.map +1 -0
- package/dist/request-context-recovery.d.ts +14 -0
- package/dist/request-context-recovery.js +56 -0
- package/dist/request-context-recovery.js.map +1 -0
- package/dist/request-context-relay.d.ts +19 -0
- package/dist/request-context-relay.js +63 -0
- package/dist/request-context-relay.js.map +1 -0
- package/dist/request-context-returns.d.ts +67 -0
- package/dist/request-context-returns.js +211 -0
- package/dist/request-context-returns.js.map +1 -0
- package/dist/request-context-store.d.ts +2 -1
- package/dist/request-context-store.js +8 -1
- package/dist/request-context-store.js.map +1 -1
- package/dist/request-context-turns.d.ts +99 -0
- package/dist/request-context-turns.js +215 -0
- package/dist/request-context-turns.js.map +1 -0
- package/dist/request-context-view.d.ts +33 -0
- package/dist/request-context-view.js +36 -0
- package/dist/request-context-view.js.map +1 -0
- package/dist/request-hub-context.d.ts +130 -0
- package/dist/request-hub-context.js +89 -0
- package/dist/request-hub-context.js.map +1 -0
- package/dist/request-hub-output.d.ts +11 -0
- package/dist/request-hub-output.js +21 -0
- package/dist/request-hub-output.js.map +1 -0
- package/dist/runtime-cli-install.js +13 -11
- package/dist/runtime-cli-install.js.map +1 -1
- package/dist/runtime-client.d.ts +2 -0
- package/dist/runtime-client.js +17 -4
- package/dist/runtime-client.js.map +1 -1
- package/dist/runtime-coordinator.d.ts +4 -1
- package/dist/runtime-coordinator.js +10 -3
- package/dist/runtime-coordinator.js.map +1 -1
- package/dist/runtime-pane-assets.d.ts +1 -1
- package/dist/runtime-pane-assets.js +1 -1
- package/dist/runtime-pane-assets.js.map +1 -1
- package/dist/runtime-pane-host.d.ts +3 -0
- package/dist/runtime-pane-host.js +39 -21
- package/dist/runtime-pane-host.js.map +1 -1
- package/dist/runtime-pane-link.d.ts +6 -2
- package/dist/runtime-pane-link.js +17 -4
- package/dist/runtime-pane-link.js.map +1 -1
- package/dist/runtime-pane-mcp-relay.d.ts +11 -1
- package/dist/runtime-pane-mcp-relay.js +69 -3
- package/dist/runtime-pane-mcp-relay.js.map +1 -1
- package/dist/runtime-pane-mcp.d.ts +28 -1
- package/dist/runtime-pane-mcp.js +92 -15
- package/dist/runtime-pane-mcp.js.map +1 -1
- package/dist/runtime-pane-port.d.ts +6 -0
- package/dist/runtime-pane-port.js +23 -4
- package/dist/runtime-pane-port.js.map +1 -1
- package/dist/runtime-pane-protocol.d.ts +4 -0
- package/dist/runtime-pane-protocol.js +11 -4
- package/dist/runtime-pane-protocol.js.map +1 -1
- package/dist/runtime-pane-service.d.ts +1 -0
- package/dist/runtime-pane-service.js +25 -9
- package/dist/runtime-pane-service.js.map +1 -1
- package/dist/runtime-pane-stdio-protocol.d.ts +4 -0
- package/dist/runtime-pane-stdio-protocol.js +12 -5
- package/dist/runtime-pane-stdio-protocol.js.map +1 -1
- package/dist/runtime-pane-stdio.js +5 -5
- package/dist/runtime-pane-stdio.js.map +1 -1
- package/dist/runtime-protocol.d.ts +3 -0
- package/dist/runtime-protocol.js.map +1 -1
- package/dist/scheduler/scheduler.d.ts +15 -0
- package/dist/scheduler/scheduler.js +45 -1
- package/dist/scheduler/scheduler.js.map +1 -1
- package/dist/scheduler/scheduler.test.js +17 -0
- package/dist/scheduler/scheduler.test.js.map +1 -1
- package/dist/scheduler/task-board.d.ts +4 -0
- package/dist/scheduler/task-board.js +6 -0
- package/dist/scheduler/task-board.js.map +1 -1
- package/dist/scheduler/types.d.ts +1 -1
- package/dist/service-activation.js +3 -13
- package/dist/service-activation.js.map +1 -1
- package/dist/service-lock.d.ts +28 -0
- package/dist/service-lock.js +85 -0
- package/dist/service-lock.js.map +1 -0
- package/dist/settings-api.d.ts +6 -0
- package/dist/settings-api.js +107 -0
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.js +14 -1
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-effect.js +11 -1
- package/dist/settings-effect.js.map +1 -1
- package/dist/state-lease.d.ts +24 -0
- package/dist/state-lease.js +103 -0
- package/dist/state-lease.js.map +1 -0
- package/dist/tmux-binary.js +1 -1
- package/dist/tmux-binary.js.map +1 -1
- package/dist/tool-receipt-output.d.ts +2 -0
- package/dist/topic-commands.js +21 -1
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-monitor.js +3 -0
- package/dist/transcript-monitor.js.map +1 -1
- package/dist/tunnel/named-link-test.d.ts +27 -0
- package/dist/tunnel/named-link-test.js +41 -0
- package/dist/tunnel/named-link-test.js.map +1 -1
- package/dist/types.d.ts +7 -0
- package/dist/ui/chat-store.js +5 -4
- package/dist/ui/contact-auth-strings.js +7 -2
- package/dist/ui/contact-permissions.js +10 -2
- package/dist/ui/fleet-office-card.js +15 -2
- package/dist/ui/fleet-office-pack.d.ts +2 -2
- package/dist/ui/fleet-office-pack.js +25 -8
- package/dist/ui/fleet-office-skin.js +33 -9
- package/dist/ui/fleet-office-vehicles.js +28 -11
- package/dist/ui/fleet-office-zones.js +10 -5
- package/dist/ui/fleet-office.js +158 -20
- package/dist/ui/fleet-task-files.js +1 -1
- package/dist/ui/hub-admin-rooms-strings.js +6 -2
- package/dist/ui/hub-admin-rooms.js +3 -1
- package/dist/ui/hub-group-search.js +2 -2
- package/dist/ui/hub-notify-keep.js +49 -0
- package/dist/ui/hub-role-view.js +1 -1
- package/dist/ui/hub-roles-strings.js +14 -10
- package/dist/ui/hub-roles.js +1 -1
- package/dist/ui/hub-room-notify.js +2 -1
- package/dist/ui/hub-room-strings.js +3 -3
- package/dist/ui/hub-room-thread.js +9 -4
- package/dist/ui/panel-chat.js +15 -2
- package/dist/ui/panel-hub.js +3 -2
- package/dist/ui/panel-needs.js +35 -7
- package/dist/ui/panel-settings.js +22 -8
- package/dist/ui/settings-preview-address.js +156 -0
- package/dist/ui/settings-registry.js +2 -0
- package/dist/ui/settings-strings.js +6 -6
- package/dist/ui/settings-update.js +13 -0
- package/dist/ui/shared/app-install.js +123 -0
- package/dist/ui/shared/app-shell.js +4 -2
- package/dist/ui/shared/app-update.js +16 -2
- package/dist/ui/shared/app.css +119 -2
- package/dist/ui/shared/app.js +3 -0
- package/dist/ui/shared/chat-strings.js +6 -2
- package/dist/ui/shared/chat-thread.js +7 -1
- package/dist/ui/shared/hub-chat.css +6 -0
- package/dist/ui/shared/preview-panel.js +1 -1
- package/dist/ui/shared/preview.js +11 -2
- package/dist/ui/shared/tokens.css +18 -3
- package/dist/ui/shared/ui-confirm.js +7 -5
- package/dist/ui/shared/ui-icons.js +2 -0
- package/dist/ui/shared/update-card-ui.js +419 -0
- package/dist/ui/shared/workspace.css +7 -0
- package/dist/ui/usage-credits-card.js +84 -0
- package/dist/ui/workspace-ignored-strings.js +16 -0
- package/dist/ui/workspace-panel.js +15 -6
- package/dist/update-abandon.d.ts +26 -0
- package/dist/update-abandon.js +111 -0
- package/dist/update-abandon.js.map +1 -0
- package/dist/update-card.d.ts +193 -0
- package/dist/update-card.js +620 -0
- package/dist/update-card.js.map +1 -0
- package/dist/update-dispatch.d.ts +16 -1
- package/dist/update-dispatch.js +12 -4
- package/dist/update-dispatch.js.map +1 -1
- package/dist/update-forward.d.ts +59 -0
- package/dist/update-forward.js +227 -0
- package/dist/update-forward.js.map +1 -0
- package/dist/update-goback.d.ts +90 -0
- package/dist/update-goback.js +260 -0
- package/dist/update-goback.js.map +1 -0
- package/dist/update-idle.d.ts +1 -0
- package/dist/update-idle.js +12 -3
- package/dist/update-idle.js.map +1 -1
- package/dist/update-install.d.ts +2 -1
- package/dist/update-install.js +18 -10
- package/dist/update-install.js.map +1 -1
- package/dist/update-journal.d.ts +359 -0
- package/dist/update-journal.js +723 -0
- package/dist/update-journal.js.map +1 -0
- package/dist/update-launch.js +1 -1
- package/dist/update-launch.js.map +1 -1
- package/dist/update-npm-env.d.ts +45 -12
- package/dist/update-npm-env.js +48 -0
- package/dist/update-npm-env.js.map +1 -1
- package/dist/update-package-restore.d.ts +84 -0
- package/dist/update-package-restore.js +329 -0
- package/dist/update-package-restore.js.map +1 -0
- package/dist/update-quiescence.d.ts +221 -0
- package/dist/update-quiescence.js +370 -0
- package/dist/update-quiescence.js.map +1 -0
- package/dist/update-readiness-host.d.ts +61 -0
- package/dist/update-readiness-host.js +297 -0
- package/dist/update-readiness-host.js.map +1 -0
- package/dist/update-readiness.d.ts +83 -0
- package/dist/update-readiness.js +459 -0
- package/dist/update-readiness.js.map +1 -0
- package/dist/update-recovery/kit.d.ts +35 -0
- package/dist/update-recovery/kit.js +99 -0
- package/dist/update-recovery/kit.js.map +1 -0
- package/dist/update-recovery/pre-start.d.ts +34 -0
- package/dist/update-recovery/pre-start.js +103 -0
- package/dist/update-recovery/pre-start.js.map +1 -0
- package/dist/update-recovery/recover-main.d.ts +1 -0
- package/dist/update-recovery/recover-main.js +4 -0
- package/dist/update-recovery/recover-main.js.map +1 -0
- package/dist/update-recovery/recover.d.ts +22 -0
- package/dist/update-recovery/recover.js +134 -0
- package/dist/update-recovery/recover.js.map +1 -0
- package/dist/update-recovery/route.d.ts +53 -0
- package/dist/update-recovery/route.js +262 -0
- package/dist/update-recovery/route.js.map +1 -0
- package/dist/update-recovery/runner.d.ts +62 -0
- package/dist/update-recovery/runner.js +229 -0
- package/dist/update-recovery/runner.js.map +1 -0
- package/dist/update-recovery/service-manager.d.ts +39 -0
- package/dist/update-recovery/service-manager.js +57 -0
- package/dist/update-recovery/service-manager.js.map +1 -0
- package/dist/update-restore.d.ts +50 -0
- package/dist/update-restore.js +360 -0
- package/dist/update-restore.js.map +1 -0
- package/dist/update-retained.d.ts +65 -0
- package/dist/update-retained.js +116 -0
- package/dist/update-retained.js.map +1 -0
- package/dist/update-rollback.d.ts +74 -0
- package/dist/update-rollback.js +221 -0
- package/dist/update-rollback.js.map +1 -0
- package/dist/update-settings.d.ts +63 -0
- package/dist/update-settings.js +162 -0
- package/dist/update-settings.js.map +1 -0
- package/dist/update-snapshot-manifest.d.ts +32 -0
- package/dist/update-snapshot-manifest.js +65 -0
- package/dist/update-snapshot-manifest.js.map +1 -0
- package/dist/update-snapshot-scope.d.ts +67 -0
- package/dist/update-snapshot-scope.js +173 -0
- package/dist/update-snapshot-scope.js.map +1 -0
- package/dist/update-snapshot.d.ts +34 -0
- package/dist/update-snapshot.js +246 -0
- package/dist/update-snapshot.js.map +1 -0
- package/dist/update-writers.d.ts +71 -0
- package/dist/update-writers.js +235 -0
- package/dist/update-writers.js.map +1 -0
- package/dist/web-api.d.ts +3 -0
- package/dist/web-api.js +43 -8
- package/dist/web-api.js.map +1 -1
- package/dist/web-chat-history.d.ts +7 -0
- package/dist/web-chat-history.js +15 -0
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-icons.d.ts +11 -0
- package/dist/web-icons.js +14 -2
- package/dist/web-icons.js.map +1 -1
- package/dist/web-mentions.d.ts +27 -8
- package/dist/web-mentions.js +108 -1
- package/dist/web-mentions.js.map +1 -1
- package/dist/web-office-acts.js +3 -0
- package/dist/web-office-acts.js.map +1 -1
- package/dist/web-preview.d.ts +5 -0
- package/dist/web-preview.js +1 -1
- package/dist/web-preview.js.map +1 -1
- package/dist/web-update.d.ts +6 -0
- package/dist/windows-agents.d.ts +12 -0
- package/dist/windows-agents.js +5 -0
- package/dist/windows-agents.js.map +1 -1
- package/launcher/agend +4 -1
- package/launcher/agend-agent +4 -1
- package/launcher/agend-install.cjs +16 -8
- package/launcher/install-admission.d.cts +8 -0
- package/launcher/npm-allow-scripts.cjs +72 -0
- package/launcher/npm-global-prefix.cjs +81 -0
- package/launcher/postinstall.cjs +9 -8
- package/launcher/runtime-select.cjs +8 -2
- package/package.json +4 -3
- package/scripts/preinstall-guard.cjs +1 -1
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// M-3806: npm 11 and 12 redact UUID-like text in everything they print (@npmcli/redact). For a global prefix whose
|
|
3
|
+
// path contains a UUID, `npm prefix -g` and `npm root -g` print `***` in its place, and a caller then checks, locks or
|
|
4
|
+
// creates a folder that doesn't exist. `npm config get prefix` refuses outright ("The prefix option is protected"),
|
|
5
|
+
// on npm 10 too (callers then read `npm prefix -g`). npm has no option to print unredacted. A program npm starts still
|
|
6
|
+
// gets the real path, in `npm_config_global_prefix`. So when an answer is redacted, ask that way, and take the answer
|
|
7
|
+
// only if npm, redacting it, would print exactly what it printed (Fable #4526 F2). The ask runs from the filesystem
|
|
8
|
+
// root (`neutralCwd`): from inside a project npm puts its node_modules/.bin first on PATH, and a project's own `node`
|
|
9
|
+
// would answer (and run).
|
|
10
|
+
// Shared by the release's installer and the compiled CLI: keep syntax usable by old npm's Node.
|
|
11
|
+
var path = require("path");
|
|
12
|
+
|
|
13
|
+
/** npm's redaction marker (@npmcli/redact's REPLACE). No real path contains it. */
|
|
14
|
+
var MASK = "***";
|
|
15
|
+
|
|
16
|
+
/** `npm exec -c` runs this in a shell (sh or cmd.exe) with npm's environment; no quoting needed in either. */
|
|
17
|
+
var PRINT = "node -p process.env.npm_config_global_prefix";
|
|
18
|
+
|
|
19
|
+
/** The arguments (after the npm binary) that print npm's global prefix as a child sees it: never redacted. */
|
|
20
|
+
var ASK = ["exec", "-c", PRINT];
|
|
21
|
+
|
|
22
|
+
/** @npmcli/redact's UUID matcher: what npm 11/12 replace with `***`. */
|
|
23
|
+
var UUID = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi;
|
|
24
|
+
|
|
25
|
+
/** What npm 11/12 would print for this text. */
|
|
26
|
+
function redact(text) {
|
|
27
|
+
return String(text).replace(UUID, MASK);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** Where the ask runs: the filesystem (drive) root, an ancestor of no project, so no project's .bin is on npm's PATH. */
|
|
31
|
+
function neutralCwd() {
|
|
32
|
+
return path.parse(process.cwd()).root || path.sep;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** True when npm redacted part of this answer. */
|
|
36
|
+
function masked(text) {
|
|
37
|
+
return typeof text === "string" && text.indexOf(MASK) !== -1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** The last non-empty line of npm's output, trimmed ("" for none). */
|
|
41
|
+
function lastLine(text) {
|
|
42
|
+
var lines = String(text == null ? "" : text).split(/\r?\n/).map(function (l) { return l.trim(); }).filter(Boolean);
|
|
43
|
+
return lines.length ? lines[lines.length - 1] : "";
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** npm's global node_modules for a prefix, as npm lays it out: `<prefix>/node_modules` on Windows, else `<prefix>/lib/node_modules`. */
|
|
47
|
+
function rootOf(prefix, platform) {
|
|
48
|
+
var p = (platform || process.platform) === "win32" ? path.win32 : path.posix;
|
|
49
|
+
return (platform || process.platform) === "win32" ? p.join(prefix, "node_modules") : p.join(prefix, "lib", "node_modules");
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The real answer for what npm printed as `seen` (redacted), or "": an absolute path that npm, redacting it, prints
|
|
54
|
+
* exactly as `seen` — each `***` stood for a UUID, and nothing else differs.
|
|
55
|
+
*/
|
|
56
|
+
function confirmed(seen, real, platform) {
|
|
57
|
+
var p = (platform || process.platform) === "win32" ? path.win32 : path.posix;
|
|
58
|
+
return real && !masked(real) && p.isAbsolute(real) && redact(real) === seen ? real : "";
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The global prefix and root from npm's answers (`npm prefix -g`, `npm root -g`), unmasked. `ask()` runs npm with
|
|
63
|
+
* `ASK` from `neutralCwd()` and returns its stdout; it is called only when an answer was redacted. Returns
|
|
64
|
+
* { prefix, root } (both "" when there is no confirmed answer). A redacted root becomes npm's layout under the real
|
|
65
|
+
* prefix, which must redact to what npm printed too.
|
|
66
|
+
*/
|
|
67
|
+
function resolve(prefixOut, rootOut, ask, platform) {
|
|
68
|
+
var prefix = lastLine(prefixOut);
|
|
69
|
+
var root = rootOut === undefined ? undefined : lastLine(rootOut);
|
|
70
|
+
if (masked(prefix) || (root !== undefined && masked(root))) {
|
|
71
|
+
var real = "";
|
|
72
|
+
try { real = lastLine(ask()); } catch (e) { real = ""; }
|
|
73
|
+
prefix = masked(prefix) ? confirmed(prefix, real, platform) : (prefix === real ? real : "");
|
|
74
|
+
if (root !== undefined && masked(root)) root = prefix ? confirmed(root, rootOf(prefix, platform), platform) : "";
|
|
75
|
+
if (root !== undefined && !root) prefix = "";
|
|
76
|
+
if (!prefix && root !== undefined) root = "";
|
|
77
|
+
}
|
|
78
|
+
return root === undefined ? { prefix: prefix } : { prefix: prefix, root: root };
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
module.exports = { MASK: MASK, PRINT: PRINT, ASK: ASK, masked: masked, redact: redact, neutralCwd: neutralCwd, lastLine: lastLine, rootOf: rootOf, confirmed: confirmed, resolve: resolve };
|
package/launcher/postinstall.cjs
CHANGED
|
@@ -15,6 +15,7 @@ var childProcess = require("child_process");
|
|
|
15
15
|
var platform = require("./runtime-platform.cjs");
|
|
16
16
|
var select = require("./runtime-select.cjs");
|
|
17
17
|
var tmuxBundle = require("./tmux-bundle.cjs");
|
|
18
|
+
var allowScripts = require("./npm-allow-scripts.cjs");
|
|
18
19
|
|
|
19
20
|
/** Runs on the candidate Node with argv[1] = the package dir: version, N-API, and a real DB open in both threads. */
|
|
20
21
|
var PROOF = [
|
|
@@ -59,7 +60,7 @@ function checkBundledTmux(pkg, host, log, d) {
|
|
|
59
60
|
return;
|
|
60
61
|
}
|
|
61
62
|
var proved = tmuxBundle.verifyTmux(candidate, pin, d.tmuxDeps);
|
|
62
|
-
if (!proved.ok) refuse(proved.reason, "
|
|
63
|
+
if (!proved.ok) refuse(proved.reason, allowScripts.installCommand("@songsid/agend@" + pkg.manifest.version) + " (if it fails again, report it: the tmux package did not pass its check here)");
|
|
63
64
|
try {
|
|
64
65
|
tmuxBundle.writeReceipt(pkg.dir, pin, proved, host);
|
|
65
66
|
} catch (e) {
|
|
@@ -71,14 +72,14 @@ function checkBundledTmux(pkg, host, log, d) {
|
|
|
71
72
|
function main(deps) {
|
|
72
73
|
var d = deps || {};
|
|
73
74
|
var pkg = select.packageDir(d.launcherDir || __dirname);
|
|
74
|
-
if (!pkg) refuse("the installed package is not @songsid/agend", "
|
|
75
|
+
if (!pkg) refuse("the installed package is not @songsid/agend", allowScripts.installCommand("@songsid/agend"));
|
|
75
76
|
// A receipt describes THIS install's verification and nothing else: whatever is there now (one npm left behind, one
|
|
76
77
|
// copied in) goes first, so selection and installation see the same state (runtime-select.cjs).
|
|
77
78
|
[select.KEY, select.RECEIPT, tmuxBundle.RECEIPT].forEach(function (name) {
|
|
78
79
|
var file = path.join(pkg.dir, name);
|
|
79
80
|
if (select.absent(file)) return;
|
|
80
81
|
try { fs.unlinkSync(file); } catch (e) { /* checked below */ }
|
|
81
|
-
if (!select.absent(file)) refuse("an old runtime receipt at " + file + " cannot be removed", "remove it, then:
|
|
82
|
+
if (!select.absent(file)) refuse("an old runtime receipt at " + file + " cannot be removed", "remove it, then: " + allowScripts.installCommand("@songsid/agend@" + pkg.manifest.version));
|
|
82
83
|
});
|
|
83
84
|
// #2264: no install lock is consulted here. A manual `npm install -g` is never refused because of one (a lock that
|
|
84
85
|
// could not be read used to block every install until removed by hand); only two installers exclude each other.
|
|
@@ -104,17 +105,17 @@ function main(deps) {
|
|
|
104
105
|
var candidate = select.runtimeCandidate(pkg.dir, pin);
|
|
105
106
|
if (candidate.exists) {
|
|
106
107
|
if (!candidate.manifest || candidate.manifest.name !== pin.name || candidate.manifest.version !== pin.version) {
|
|
107
|
-
refuse("the bundled Node package is not " + pin.name + "@" + pin.version, "
|
|
108
|
+
refuse("the bundled Node package is not " + pin.name + "@" + pin.version, allowScripts.installCommand("@songsid/agend@" + pkg.manifest.version));
|
|
108
109
|
}
|
|
109
110
|
var st;
|
|
110
111
|
try { st = fs.lstatSync(candidate.node); } catch (e) { st = null; }
|
|
111
|
-
if (!st || !st.isFile()) refuse("the bundled Node binary is missing or not a regular file", "
|
|
112
|
+
if (!st || !st.isFile()) refuse("the bundled Node binary is missing or not a regular file", allowScripts.installCommand("@songsid/agend@" + pkg.manifest.version));
|
|
112
113
|
var r = childProcess.spawnSync(candidate.node, ["-e", PROOF, pkg.dir], { encoding: "utf8", timeout: 30000, stdio: ["ignore", "pipe", "pipe"] });
|
|
113
114
|
var seen = null;
|
|
114
115
|
try { seen = r.status === 0 ? JSON.parse(String(r.stdout).trim()) : null; } catch (e) { seen = null; }
|
|
115
116
|
var wantNode = pin.version.replace(/-agend\.\d+$/, "");
|
|
116
117
|
if (!seen || seen.node !== wantNode || !(seen.napi >= select.MIN_NAPI) || seen.platform !== host.platform || seen.arch !== host.arch) {
|
|
117
|
-
refuse("the bundled Node did not pass its check (" + (seen ? "Node " + seen.node + ", N-API " + seen.napi + ", " + seen.platform + "-" + seen.arch : "exit " + (r.status === null ? r.signal : r.status) + ": " + String(r.stderr || "").trim().split("\n").pop()) + ")", "
|
|
118
|
+
refuse("the bundled Node did not pass its check (" + (seen ? "Node " + seen.node + ", N-API " + seen.napi + ", " + seen.platform + "-" + seen.arch : "exit " + (r.status === null ? r.signal : r.status) + ": " + String(r.stderr || "").trim().split("\n").pop()) + ")", allowScripts.installCommand("@songsid/agend@" + pkg.manifest.version));
|
|
118
119
|
}
|
|
119
120
|
var real = fs.realpathSync(candidate.node);
|
|
120
121
|
// The receipt contract (runtime-select.cjs) keeps every string plain, so a shell can check it exactly too.
|
|
@@ -129,7 +130,7 @@ function main(deps) {
|
|
|
129
130
|
fs.renameSync(tmp, path.join(pkg.dir, select.RECEIPT));
|
|
130
131
|
// The admission key goes LAST: it binds the receipt just written (runtime-select.cjs).
|
|
131
132
|
var key = select.runtimeKey(pkg.dir, candidate, host);
|
|
132
|
-
if (key === null) refuse("the bundled Node's admission key cannot be computed", "
|
|
133
|
+
if (key === null) refuse("the bundled Node's admission key cannot be computed", allowScripts.installCommand("@songsid/agend@" + pkg.manifest.version));
|
|
133
134
|
var keyTmp = path.join(pkg.dir, select.KEY + "." + process.pid + ".tmp");
|
|
134
135
|
fs.writeFileSync(keyTmp, key);
|
|
135
136
|
fs.renameSync(keyTmp, path.join(pkg.dir, select.KEY));
|
|
@@ -145,7 +146,7 @@ function main(deps) {
|
|
|
145
146
|
}
|
|
146
147
|
if (select.qualifies(running, engines)) return installed();
|
|
147
148
|
refuse((pin ? support.reason : "this release bundles no Node") + ", and this Node " + running.node + " is older than AgEnD needs (" + engines + ")",
|
|
148
|
-
"Install Node " + engines + ", then:
|
|
149
|
+
"Install Node " + engines + ", then: " + allowScripts.installCommand("@songsid/agend@" + pkg.manifest.version));
|
|
149
150
|
}
|
|
150
151
|
|
|
151
152
|
module.exports = { main: main, PROOF: PROOF, NEXT_STEP: NEXT_STEP };
|
|
@@ -6,6 +6,7 @@ var fs = require("fs");
|
|
|
6
6
|
var path = require("path");
|
|
7
7
|
var childProcess = require("child_process");
|
|
8
8
|
var platform = require("./runtime-platform.cjs");
|
|
9
|
+
var allowScripts = require("./npm-allow-scripts.cjs");
|
|
9
10
|
|
|
10
11
|
var RECEIPT = ".agend-runtime.json";
|
|
11
12
|
var KEY = ".agend-runtime.key";
|
|
@@ -173,9 +174,9 @@ function selectRuntime(launcherDir, deps) {
|
|
|
173
174
|
var host = d.host || platform.hostPlatform();
|
|
174
175
|
var probe = d.probe || probeNode;
|
|
175
176
|
var pkg = packageDir(launcherDir);
|
|
176
|
-
if (!pkg) return { ok: false, reason: "this launcher is not inside an @songsid/agend package", recovery: "
|
|
177
|
+
if (!pkg) return { ok: false, reason: "this launcher is not inside an @songsid/agend package", recovery: allowScripts.installCommand("@songsid/agend") };
|
|
177
178
|
var engines = (pkg.manifest.engines && pkg.manifest.engines.node) || ">=22.14.0";
|
|
178
|
-
var recovery = "
|
|
179
|
+
var recovery = allowScripts.installCommand("@songsid/agend@" + pkg.manifest.version); // M-3805: also on npm 12
|
|
179
180
|
|
|
180
181
|
// 1. An explicit override: absolute, executable, and passes the probe — or a clear failure, never a fallback.
|
|
181
182
|
if (env.AGEND_NODE) {
|
|
@@ -200,6 +201,11 @@ function selectRuntime(launcherDir, deps) {
|
|
|
200
201
|
// an install where the runtime was skipped altogether — PHYSICALLY nothing there, no directory (not even a
|
|
201
202
|
// dangling link) and no receipt file (--ignore-scripts or --omit=optional) — which may use a qualifying system
|
|
202
203
|
// Node, with a warning.
|
|
204
|
+
// M-3805: the runtime package is there but neither the receipt nor the key is: AgEnD's install step never ran
|
|
205
|
+
// (npm 12 skips install scripts it was not told to allow; or --ignore-scripts). Name that, not "changed".
|
|
206
|
+
if (candidate.exists && candidate.manifest && receipt.state === "absent" && absent(path.join(pkg.dir, KEY))) {
|
|
207
|
+
return { ok: false, reason: "AgEnD's install step did not run, so its bundled Node (" + pin.name + "@" + pin.version + ") was never verified. npm 12 skips a package's install scripts unless they are allowed (--ignore-scripts skips them on any npm)", recovery: recovery };
|
|
208
|
+
}
|
|
203
209
|
if (candidate.exists || receipt.state !== "absent" || !absent(path.join(pkg.dir, KEY))) {
|
|
204
210
|
return { ok: false, reason: "the bundled Node (" + pin.name + "@" + pin.version + ") is missing, incomplete or changed since it was verified", recovery: recovery };
|
|
205
211
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@songsid/agend",
|
|
3
|
-
"version": "2.4.0-beta.
|
|
3
|
+
"version": "2.4.0-beta.26",
|
|
4
4
|
"description": "Multi-agent fleet daemon — run coding CLIs (Claude, Muse, Codex, OpenCode) from Discord or Telegram",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"./types": "./dist/types.js"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "tsc",
|
|
19
|
+
"build": "tsc && node scripts/build-recover.mjs",
|
|
20
20
|
"postbuild": "node scripts/write-build-provenance.mjs && node scripts/build-runtime-assets.mjs && node scripts/generate-tips-html.mjs && cp -r src/plugin dist/ && cp -r src/workflow-templates dist/ && cp src/agent-cli-instructions.md dist/ && cp -r src/ui dist/ && cp -r src/general-knowledge dist/ && chmod +x dist/cli.js && cd dist/plugin/agend && ln -sf ../../channel/mcp-server.js server.js",
|
|
21
21
|
"start": "tsx src/cli.ts start",
|
|
22
22
|
"dev": "tsx src/cli.ts",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
66
66
|
"better-sqlite3": "^13.0.3",
|
|
67
67
|
"commander": "^14.0.3",
|
|
68
|
-
"croner": "^
|
|
68
|
+
"croner": "^11.0.0",
|
|
69
69
|
"discord.js": "^14.27.0",
|
|
70
70
|
"ejs": "^5.0.1",
|
|
71
71
|
"grammy": "^1.44.0",
|
|
@@ -99,6 +99,7 @@
|
|
|
99
99
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
100
100
|
"@xterm/addon-serialize": "0.14.0",
|
|
101
101
|
"@xterm/headless": "6.0.0",
|
|
102
|
+
"esbuild": "^0.28.2",
|
|
102
103
|
"node-pty": "file:vendor/node-pty",
|
|
103
104
|
"playwright-core": "1.64.0",
|
|
104
105
|
"tsx": "^4.23.15",
|
|
@@ -49,7 +49,7 @@ process.stderr.write(
|
|
|
49
49
|
(pinned ? " " + support.reason + ", so AgEnD's bundled Node cannot be used here either.\n" : "") +
|
|
50
50
|
"\n" +
|
|
51
51
|
" Update Node to a compatible version, then retry:\n" +
|
|
52
|
-
" npm install -g @songsid/agend\n" +
|
|
52
|
+
" npm install -g --allow-scripts=@songsid/agend @songsid/agend\n" +
|
|
53
53
|
"\n"
|
|
54
54
|
);
|
|
55
55
|
process.exit(1);
|