@songsid/agend 2.4.0-beta.26 → 2.4.0-beta.27
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-endpoint.d.ts +1 -0
- package/dist/agent-endpoint.js +5 -0
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-whats-new.js +4 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/backend/kiro-auth-store.d.ts +15 -2
- package/dist/backend/kiro-auth-store.js +64 -0
- package/dist/backend/kiro-auth-store.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/adapters/discord.js +4 -4
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/adapters/telegram.js +3 -3
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/ipc-bridge.d.ts +7 -0
- package/dist/channel/ipc-bridge.js +45 -11
- package/dist/channel/ipc-bridge.js.map +1 -1
- package/dist/channel/mcp-server.js +3 -1
- package/dist/channel/mcp-server.js.map +1 -1
- package/dist/channel/mcp-tools.js +5 -3
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/cli.js +35 -2
- package/dist/cli.js.map +1 -1
- package/dist/daemon.d.ts +64 -3
- package/dist/daemon.js +497 -102
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-outbox.d.ts +107 -7
- package/dist/delivery-outbox.js +293 -8
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/detached-fleet-stop.d.ts +40 -0
- package/dist/detached-fleet-stop.js +126 -0
- package/dist/detached-fleet-stop.js.map +1 -0
- package/dist/fleet-lock.d.ts +5 -0
- package/dist/fleet-lock.js +21 -2
- package/dist/fleet-lock.js.map +1 -1
- package/dist/fleet-manager.d.ts +482 -4
- package/dist/fleet-manager.js +2692 -215
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-windows-runtime.d.ts +39 -3
- package/dist/fleet-windows-runtime.js +208 -30
- package/dist/fleet-windows-runtime.js.map +1 -1
- package/dist/general-knowledge/skills/hub/SKILL.md +5 -1
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +95 -25
- package/dist/hub/admin-dashboard.js +1 -1
- package/dist/hub/admin-dashboard.js.map +1 -1
- package/dist/hub/agent-catalog.d.ts +1 -1
- package/dist/hub/agent-catalog.js +4 -3
- package/dist/hub/agent-catalog.js.map +1 -1
- package/dist/hub/agent-intro.d.ts +1 -1
- package/dist/hub/agent-intro.js +1 -1
- package/dist/hub/agent-intro.js.map +1 -1
- package/dist/hub/agent-pictures.d.ts +1 -1
- package/dist/hub/agent-pictures.js +4 -3
- package/dist/hub/agent-pictures.js.map +1 -1
- package/dist/hub/catalog.d.ts +2 -2
- package/dist/hub/catalog.js +16 -13
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.js +9 -2
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.js +8 -1
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.js +4 -2
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/fleet-updates.d.ts +2 -2
- package/dist/hub/fleet-updates.js +7 -5
- package/dist/hub/fleet-updates.js.map +1 -1
- package/dist/hub/fleet-versions.d.ts +1 -1
- package/dist/hub/fleet-versions.js +3 -2
- package/dist/hub/fleet-versions.js.map +1 -1
- package/dist/hub/group-policy/resources.d.ts +1 -1
- package/dist/hub/http/compose.js +57 -30
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/schema.js +4 -1
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/join/service.d.ts +6 -0
- package/dist/hub/join/service.js +10 -0
- package/dist/hub/join/service.js.map +1 -1
- package/dist/hub/member/room-ask.js +2 -0
- package/dist/hub/member/room-ask.js.map +1 -1
- package/dist/hub/member/room-post.d.ts +4 -0
- package/dist/hub/member/room-post.js +26 -1
- package/dist/hub/member/room-post.js.map +1 -1
- package/dist/hub/protocol.d.ts +58 -0
- package/dist/hub/protocol.js +3 -2
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/quota.d.ts +2 -2
- package/dist/hub/quota.js +6 -4
- package/dist/hub/quota.js.map +1 -1
- package/dist/hub/read-statement.d.ts +6 -0
- package/dist/hub/read-statement.js +33 -0
- package/dist/hub/read-statement.js.map +1 -0
- package/dist/hub/recommendations.d.ts +1 -1
- package/dist/hub/recommendations.js +3 -2
- package/dist/hub/recommendations.js.map +1 -1
- package/dist/hub/representative.d.ts +2 -0
- package/dist/hub/representative.js +8 -4
- package/dist/hub/representative.js.map +1 -1
- package/dist/hub/roles/clock.js +6 -5
- package/dist/hub/roles/clock.js.map +1 -1
- package/dist/hub/roles/read.d.ts +2 -0
- package/dist/hub/roles/read.js +27 -6
- package/dist/hub/roles/read.js.map +1 -1
- package/dist/hub/room-history-model.d.ts +87 -0
- package/dist/hub/room-history-model.js +14 -0
- package/dist/hub/room-history-model.js.map +1 -0
- package/dist/hub/rooms/agents.d.ts +1 -1
- package/dist/hub/rooms/agents.js +3 -2
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms/history.d.ts +8 -0
- package/dist/hub/rooms/history.js +31 -0
- package/dist/hub/rooms/history.js.map +1 -0
- package/dist/hub/rooms/schema.d.ts +2 -0
- package/dist/hub/rooms/schema.js +4 -0
- package/dist/hub/rooms/schema.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +35 -19
- package/dist/hub/rooms/service.js +105 -26
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/server.js +10 -3
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/session-epoch.js +2 -1
- package/dist/hub/session-epoch.js.map +1 -1
- package/dist/hub/settings-directory-decision.js +3 -2
- package/dist/hub/settings-directory-decision.js.map +1 -1
- package/dist/hub/settings-member-address-decision.js +2 -1
- package/dist/hub/settings-member-address-decision.js.map +1 -1
- package/dist/hub/settings-web-address-decision.js +2 -1
- package/dist/hub/settings-web-address-decision.js.map +1 -1
- package/dist/hub/store.d.ts +1 -0
- package/dist/hub/store.js +12 -4
- package/dist/hub/store.js.map +1 -1
- package/dist/hub/types.d.ts +2 -2
- package/dist/hub-agent-incarnation-record.d.ts +24 -0
- package/dist/hub-agent-incarnation-record.js +46 -0
- package/dist/hub-agent-incarnation-record.js.map +1 -0
- package/dist/human-delivery-receipts.d.ts +16 -4
- package/dist/human-delivery-receipts.js +26 -5
- package/dist/human-delivery-receipts.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +9 -3
- package/dist/instance-lifecycle.js +27 -10
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.d.ts +1 -1
- package/dist/local-pane-endpoint.d.ts +14 -0
- package/dist/local-pane-endpoint.js +32 -0
- package/dist/local-pane-endpoint.js.map +1 -1
- package/dist/locale.js +52 -4
- package/dist/locale.js.map +1 -1
- package/dist/native-agent-admission.js +9 -0
- package/dist/native-agent-admission.js.map +1 -1
- package/dist/native-exec-context.d.ts +11 -0
- package/dist/native-exec-context.js +18 -0
- package/dist/native-exec-context.js.map +1 -0
- package/dist/native-exec-input.d.ts +56 -0
- package/dist/native-exec-input.js +89 -0
- package/dist/native-exec-input.js.map +1 -0
- package/dist/native-mcp.d.ts +9 -1
- package/dist/native-mcp.js +29 -7
- package/dist/native-mcp.js.map +1 -1
- package/dist/native-pane-lifecycle.d.ts +3 -0
- package/dist/native-pane-lifecycle.js +2 -0
- package/dist/native-pane-lifecycle.js.map +1 -1
- package/dist/native-pane-manager.d.ts +18 -0
- package/dist/native-pane-manager.js +85 -8
- package/dist/native-pane-manager.js.map +1 -1
- package/dist/needs-you.d.ts +2 -1
- package/dist/needs-you.js.map +1 -1
- package/dist/outbound-handlers.d.ts +1 -0
- package/dist/outbound-handlers.js +9 -3
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +5 -0
- package/dist/outbound-schemas.js +2 -0
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/public-web-gateway.js +3 -1
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/recover.cjs +1 -0
- package/dist/reply-buttons-controller.d.ts +1 -0
- package/dist/reply-buttons-controller.js +1 -1
- package/dist/reply-buttons-controller.js.map +1 -1
- package/dist/request-contact-gate.d.ts +2 -0
- package/dist/request-contact-gate.js +8 -3
- package/dist/request-contact-gate.js.map +1 -1
- package/dist/request-context-activation.d.ts +29 -0
- package/dist/request-context-activation.js +74 -0
- package/dist/request-context-activation.js.map +1 -0
- package/dist/request-context-admission.d.ts +22 -0
- package/dist/request-context-admission.js +12 -0
- package/dist/request-context-admission.js.map +1 -0
- package/dist/request-context-boot.d.ts +35 -0
- package/dist/request-context-boot.js +97 -0
- package/dist/request-context-boot.js.map +1 -0
- package/dist/request-context-call.d.ts +2 -0
- package/dist/request-context-call.js.map +1 -1
- package/dist/request-context-continuation.d.ts +6 -0
- package/dist/request-context-continuation.js +24 -0
- package/dist/request-context-continuation.js.map +1 -0
- package/dist/request-context-control-api.d.ts +101 -0
- package/dist/request-context-control-api.js +177 -0
- package/dist/request-context-control-api.js.map +1 -0
- package/dist/request-context-control-copy.d.ts +3 -0
- package/dist/request-context-control-copy.js +7 -0
- package/dist/request-context-control-copy.js.map +1 -0
- package/dist/request-context-controller.d.ts +44 -0
- package/dist/request-context-controller.js +129 -0
- package/dist/request-context-controller.js.map +1 -0
- package/dist/request-context-delivery-resolver.d.ts +13 -0
- package/dist/request-context-delivery-resolver.js +30 -0
- package/dist/request-context-delivery-resolver.js.map +1 -0
- package/dist/request-context-drain.d.ts +13 -0
- package/dist/request-context-drain.js +79 -6
- package/dist/request-context-drain.js.map +1 -1
- package/dist/request-context-enable-offer.d.ts +13 -0
- package/dist/request-context-enable-offer.js +31 -0
- package/dist/request-context-enable-offer.js.map +1 -0
- package/dist/request-context-exec-owner.d.ts +39 -0
- package/dist/request-context-exec-owner.js +128 -0
- package/dist/request-context-exec-owner.js.map +1 -0
- package/dist/request-context-go-back-view.d.ts +1 -0
- package/dist/request-context-go-back-view.js +17 -0
- package/dist/request-context-go-back-view.js.map +1 -0
- package/dist/request-context-helper-readiness.d.ts +14 -0
- package/dist/request-context-helper-readiness.js +23 -0
- package/dist/request-context-helper-readiness.js.map +1 -0
- package/dist/request-context-helper.d.ts +20 -0
- package/dist/request-context-helper.js +41 -0
- package/dist/request-context-helper.js.map +1 -0
- package/dist/request-context-hub-resolver.d.ts +29 -0
- package/dist/request-context-hub-resolver.js +90 -0
- package/dist/request-context-hub-resolver.js.map +1 -0
- package/dist/request-context-human-resolver.d.ts +20 -0
- package/dist/request-context-human-resolver.js +77 -0
- package/dist/request-context-human-resolver.js.map +1 -0
- package/dist/request-context-human.d.ts +106 -0
- package/dist/request-context-human.js +153 -0
- package/dist/request-context-human.js.map +1 -0
- package/dist/request-context-inputs.d.ts +21 -0
- package/dist/request-context-inputs.js +63 -0
- package/dist/request-context-inputs.js.map +1 -0
- package/dist/request-context-installation.d.ts +117 -0
- package/dist/request-context-installation.js +328 -0
- package/dist/request-context-installation.js.map +1 -0
- package/dist/request-context-knowledge.d.ts +5 -0
- package/dist/request-context-knowledge.js +32 -0
- package/dist/request-context-knowledge.js.map +1 -0
- package/dist/request-context-native-human.d.ts +20 -0
- package/dist/request-context-native-human.js +91 -0
- package/dist/request-context-native-human.js.map +1 -0
- package/dist/request-context-native-output.d.ts +15 -0
- package/dist/request-context-native-output.js +46 -0
- package/dist/request-context-native-output.js.map +1 -0
- package/dist/request-context-native-result.d.ts +15 -0
- package/dist/request-context-native-result.js +46 -0
- package/dist/request-context-native-result.js.map +1 -0
- package/dist/request-context-off.d.ts +22 -0
- package/dist/request-context-off.js +77 -0
- package/dist/request-context-off.js.map +1 -0
- package/dist/request-context-outside-label.d.ts +5 -0
- package/dist/request-context-outside-label.js +28 -0
- package/dist/request-context-outside-label.js.map +1 -0
- package/dist/request-context-pane.d.ts +8 -0
- package/dist/request-context-pane.js +19 -0
- package/dist/request-context-pane.js.map +1 -1
- package/dist/request-context-pending-work.d.ts +11 -0
- package/dist/request-context-pending-work.js +43 -0
- package/dist/request-context-pending-work.js.map +1 -0
- package/dist/request-context-policy.d.ts +17 -1
- package/dist/request-context-policy.js +84 -6
- package/dist/request-context-policy.js.map +1 -1
- package/dist/request-context-readiness.d.ts +49 -0
- package/dist/request-context-readiness.js +64 -0
- package/dist/request-context-readiness.js.map +1 -0
- package/dist/request-context-recovery.d.ts +6 -2
- package/dist/request-context-recovery.js +25 -0
- package/dist/request-context-recovery.js.map +1 -1
- package/dist/request-context-relay.d.ts +2 -2
- package/dist/request-context-relay.js +10 -10
- package/dist/request-context-relay.js.map +1 -1
- package/dist/request-context-retirement.d.ts +19 -0
- package/dist/request-context-retirement.js +16 -0
- package/dist/request-context-retirement.js.map +1 -0
- package/dist/request-context-start.d.ts +15 -0
- package/dist/request-context-start.js +2 -0
- package/dist/request-context-start.js.map +1 -0
- package/dist/request-context-turns.d.ts +1 -1
- package/dist/request-context-turns.js +3 -2
- package/dist/request-context-turns.js.map +1 -1
- package/dist/request-context-unproved-label.d.ts +4 -0
- package/dist/request-context-unproved-label.js +25 -0
- package/dist/request-context-unproved-label.js.map +1 -0
- package/dist/request-context-update-guard.d.ts +15 -0
- package/dist/request-context-update-guard.js +54 -0
- package/dist/request-context-update-guard.js.map +1 -0
- package/dist/request-context-work.d.ts +50 -0
- package/dist/request-context-work.js +178 -0
- package/dist/request-context-work.js.map +1 -0
- package/dist/request-hub-context.d.ts +1 -0
- package/dist/request-hub-output.d.ts +2 -0
- package/dist/request-hub-output.js +12 -0
- package/dist/request-hub-output.js.map +1 -1
- package/dist/retained-human-control.d.ts +11 -0
- package/dist/retained-human-control.js +11 -0
- package/dist/retained-human-control.js.map +1 -0
- package/dist/runtime-build-info.js +1 -1
- package/dist/runtime-build-info.js.map +1 -1
- package/dist/runtime-cli.js +1 -1
- package/dist/runtime-cli.js.map +1 -1
- package/dist/runtime-client-store.js +7 -1
- package/dist/runtime-client-store.js.map +1 -1
- package/dist/runtime-client.js +15 -3
- package/dist/runtime-client.js.map +1 -1
- package/dist/runtime-coordinator.d.ts +23 -0
- package/dist/runtime-coordinator.js +103 -4
- package/dist/runtime-coordinator.js.map +1 -1
- package/dist/runtime-pane-mcp.d.ts +9 -0
- package/dist/runtime-pane-mcp.js +22 -2
- package/dist/runtime-pane-mcp.js.map +1 -1
- package/dist/runtime-protocol.d.ts +2 -0
- package/dist/runtime-protocol.js.map +1 -1
- package/dist/runtime-update-controller.js +1 -1
- package/dist/runtime-update-controller.js.map +1 -1
- package/dist/runtime-windows-bridge.d.ts +8 -0
- package/dist/runtime-windows-bridge.js +50 -3
- package/dist/runtime-windows-bridge.js.map +1 -1
- package/dist/service-install-handover.d.ts +52 -0
- package/dist/service-install-handover.js +50 -0
- package/dist/service-install-handover.js.map +1 -0
- package/dist/service-installer.d.ts +12 -0
- package/dist/service-installer.js +24 -10
- package/dist/service-installer.js.map +1 -1
- package/dist/settings-api.d.ts +2 -0
- package/dist/settings-api.js +4 -0
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.d.ts +1 -0
- package/dist/settings-baseline.js +5 -4
- package/dist/settings-baseline.js.map +1 -1
- package/dist/settings-confirmation.d.ts +2 -0
- package/dist/settings-confirmation.js +6 -0
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.d.ts +2 -0
- package/dist/settings-effect.js +44 -1
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +3 -0
- package/dist/settings-http-confirmation.js +29 -0
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-route-lifetime.d.ts +3 -1
- package/dist/settings-route-lifetime.js +15 -5
- package/dist/settings-route-lifetime.js.map +1 -1
- package/dist/settings-transaction.d.ts +3 -2
- package/dist/settings-transaction.js.map +1 -1
- package/dist/tips.js +1 -1
- package/dist/tips.js.map +1 -1
- package/dist/tool-permissions.js +3 -3
- package/dist/tool-permissions.js.map +1 -1
- package/dist/tool-receipt-output.d.ts +6 -6
- package/dist/turn-reply-guard.d.ts +16 -1
- package/dist/turn-reply-guard.js +20 -2
- package/dist/turn-reply-guard.js.map +1 -1
- package/dist/ui/app.html +2 -2
- package/dist/ui/contact-auth-strings.js +6 -6
- package/dist/ui/contact-authorizations.js +19 -1
- package/dist/ui/contact-grant-editor.js +71 -11
- package/dist/ui/contact-needs.js +27 -8
- package/dist/ui/contact-permissions.js +25 -8
- package/dist/ui/contact-tool-groups.js +1 -1
- package/dist/ui/hub-client.js +3 -0
- package/dist/ui/hub-room-members.js +4 -2
- package/dist/ui/hub-room-settings-strings.js +8 -0
- package/dist/ui/hub-room-settings.js +32 -0
- package/dist/ui/hub-room-thread.js +7 -1
- package/dist/ui/icons/hub-apple-touch-icon.png +0 -0
- package/dist/ui/icons/hub-favicon.ico +0 -0
- package/dist/ui/icons/hub-favicon.svg +10 -0
- package/dist/ui/icons/hub-icon-192.png +0 -0
- package/dist/ui/icons/hub-icon-512.png +0 -0
- package/dist/ui/icons/hub-icon-maskable-192.png +0 -0
- package/dist/ui/icons/hub-icon-maskable-512.png +0 -0
- package/dist/ui/icons/hub-maskable.svg +12 -0
- package/dist/ui/panel-hub.js +14 -3
- package/dist/ui/panel-needs.js +2 -1
- package/dist/ui/panel-settings.js +2 -1
- package/dist/ui/request-contact-card.js +287 -0
- package/dist/ui/request-contact-client.js +83 -0
- package/dist/ui/request-contact-page.js +78 -0
- package/dist/ui/request-context-control.js +171 -0
- package/dist/ui/settings-registry.js +2 -0
- package/dist/ui/settings-update.js +3 -2
- package/dist/ui/shared/app-install.js +2 -2
- package/dist/ui/shared/app-shell.js +13 -3
- package/dist/ui/shared/app-stream.js +1 -0
- package/dist/ui/shared/app-update.js +2 -1
- package/dist/ui/shared/app.css +93 -8
- package/dist/ui/shared/app.js +16 -2
- package/dist/ui/shared/ui-states.js +6 -0
- package/dist/ui/shared/update-card-ui.js +178 -11
- package/dist/ui/shared/view-strings.js +18 -0
- package/dist/ui/shared/web-authorize.js +1 -1
- package/dist/update-card.d.ts +1 -1
- package/dist/update-card.js +7 -7
- package/dist/update-card.js.map +1 -1
- package/dist/update-fix.d.ts +66 -0
- package/dist/update-fix.js +67 -0
- package/dist/update-fix.js.map +1 -0
- package/dist/update-goback.js +12 -2
- package/dist/update-goback.js.map +1 -1
- package/dist/update-readiness.d.ts +2 -0
- package/dist/update-readiness.js +5 -1
- package/dist/update-readiness.js.map +1 -1
- package/dist/update-snapshot-scope.js +1 -0
- package/dist/update-snapshot-scope.js.map +1 -1
- package/dist/usage/i18n-keys.d.ts +1 -1
- package/dist/usage/i18n-keys.js +9 -0
- package/dist/usage/i18n-keys.js.map +1 -1
- package/dist/usage/providers.d.ts +3 -11
- package/dist/usage/providers.js +93 -131
- package/dist/usage/providers.js.map +1 -1
- package/dist/web-api.d.ts +4 -0
- package/dist/web-api.js +50 -7
- package/dist/web-api.js.map +1 -1
- package/dist/web-chat-history.d.ts +2 -0
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-icons.d.ts +9 -3
- package/dist/web-icons.js +62 -5
- package/dist/web-icons.js.map +1 -1
- package/dist/web-update.d.ts +9 -0
- package/dist/windows-agents.d.ts +24 -2
- package/dist/windows-agents.js +110 -4
- package/dist/windows-agents.js.map +1 -1
- package/dist/windows-cli-worker.js +9 -1
- package/dist/windows-cli-worker.js.map +1 -1
- package/dist/windows-cli.d.ts +15 -0
- package/dist/windows-cli.js +54 -6
- package/dist/windows-cli.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/** Accepted human ingress is retained separately from the strict receipt format, before input intent. */
|
|
2
|
+
import type Database from "better-sqlite3";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { type RequestContextActorV1, type RequestContextV1 } from "./request-context-protocol.js";
|
|
5
|
+
declare const steerSchema: z.ZodObject<{
|
|
6
|
+
parentContextId: z.ZodUUID;
|
|
7
|
+
rootContextId: z.ZodUUID;
|
|
8
|
+
parentSha256: z.ZodString;
|
|
9
|
+
workGeneration: z.ZodString;
|
|
10
|
+
actor: z.ZodUnion<readonly [z.ZodObject<{
|
|
11
|
+
kind: z.ZodLiteral<"person">;
|
|
12
|
+
platform: z.ZodEnum<{
|
|
13
|
+
discord: "discord";
|
|
14
|
+
host: "host";
|
|
15
|
+
telegram: "telegram";
|
|
16
|
+
}>;
|
|
17
|
+
userId: z.ZodString;
|
|
18
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
20
|
+
kind: z.ZodEnum<{
|
|
21
|
+
agent: "agent";
|
|
22
|
+
assistant: "assistant";
|
|
23
|
+
person: "person";
|
|
24
|
+
}>;
|
|
25
|
+
platform: z.ZodLiteral<"hub">;
|
|
26
|
+
hubId: z.ZodString;
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30
|
+
kind: z.ZodLiteral<"unknown">;
|
|
31
|
+
reason: z.ZodEnum<{
|
|
32
|
+
"legacy-operation": "legacy-operation";
|
|
33
|
+
unidentified: "unidentified";
|
|
34
|
+
"unproved-recovery": "unproved-recovery";
|
|
35
|
+
}>;
|
|
36
|
+
}, z.core.$strict>]>;
|
|
37
|
+
}, z.core.$strict>;
|
|
38
|
+
export type RequestHumanSteer = Readonly<z.infer<typeof steerSchema>>;
|
|
39
|
+
type CapturedHuman = Readonly<{
|
|
40
|
+
context: RequestContextV1;
|
|
41
|
+
route: RequestHumanRoute;
|
|
42
|
+
steer?: RequestHumanSteer;
|
|
43
|
+
}>;
|
|
44
|
+
declare const routeSchema: z.ZodObject<{
|
|
45
|
+
kind: z.ZodEnum<{
|
|
46
|
+
instance: "instance";
|
|
47
|
+
room: "room";
|
|
48
|
+
web: "web";
|
|
49
|
+
}>;
|
|
50
|
+
adapterId: z.ZodOptional<z.ZodString>;
|
|
51
|
+
chatId: z.ZodOptional<z.ZodString>;
|
|
52
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
53
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
54
|
+
sessionHandle: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
declare const classicSchema: z.ZodObject<{
|
|
57
|
+
adapterId: z.ZodString;
|
|
58
|
+
roomId: z.ZodString;
|
|
59
|
+
kind: z.ZodEnum<{
|
|
60
|
+
group: "group";
|
|
61
|
+
guild: "guild";
|
|
62
|
+
user: "user";
|
|
63
|
+
}>;
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
restrictedAtAdmission: z.ZodBoolean;
|
|
66
|
+
path: z.ZodLiteral<"registered-room">;
|
|
67
|
+
}, z.core.$strict>;
|
|
68
|
+
export type RequestHumanClassicBasis = Readonly<z.infer<typeof classicSchema>>;
|
|
69
|
+
export type RequestHumanRoute = Readonly<z.infer<typeof routeSchema>>;
|
|
70
|
+
export interface RequestHumanAdmissionFacts {
|
|
71
|
+
readonly incarnation: string;
|
|
72
|
+
/** Exact C parent captured at receipt admission. Never supplied by a body, history pointer or later lookup. */
|
|
73
|
+
readonly steer?: {
|
|
74
|
+
parent: import("./request-context-turns.js").RequestContextTurnSnapshot;
|
|
75
|
+
current(): boolean;
|
|
76
|
+
canManage(actor: RequestContextActorV1): boolean;
|
|
77
|
+
};
|
|
78
|
+
/** Actual accepted room policy, not a field from the incoming body or agent metadata. Null is ordinary Fleet ingress. */
|
|
79
|
+
readonly room: Readonly<{
|
|
80
|
+
restricted: boolean;
|
|
81
|
+
}> | null;
|
|
82
|
+
/** Required for web input, captured from the admitted SessionRecord by its producer. */
|
|
83
|
+
readonly web: Readonly<{
|
|
84
|
+
guest: boolean;
|
|
85
|
+
}> | null;
|
|
86
|
+
readonly route: RequestHumanRoute;
|
|
87
|
+
readonly classic?: Readonly<Omit<RequestHumanClassicBasis, "restrictedAtAdmission" | "path">> | null;
|
|
88
|
+
/** Resolve only configured/live platform namespaces, never parse an adapter's display name. */
|
|
89
|
+
platform(adapterId: string): "discord" | "telegram" | null;
|
|
90
|
+
}
|
|
91
|
+
export declare function requestHumanContextId(receiptId: string, kind?: "root" | "audience"): string;
|
|
92
|
+
export declare class RequestHumanInputStore {
|
|
93
|
+
private readonly db;
|
|
94
|
+
private readonly writable;
|
|
95
|
+
constructor(db: Database.Database, writable: () => void);
|
|
96
|
+
read(receiptId: string): CapturedHuman | null;
|
|
97
|
+
/** Historical SDK basis; like read(), this is evidence, never current membership or an active lease. */
|
|
98
|
+
classicBasis(receiptId: string): RequestHumanClassicBasis | null;
|
|
99
|
+
/** The owning outbox wraps receipt creation and this capture in one transaction. */
|
|
100
|
+
record(receiptId: string, facts: RequestHumanAdmissionFacts): CapturedHuman;
|
|
101
|
+
}
|
|
102
|
+
/** An accepted but unproven human input is a durable work reference; an age timer never settles it. */
|
|
103
|
+
export declare function requestHumanInputBlockers(db: Database.Database, rootId: string): string[];
|
|
104
|
+
/** Untouched ingress is parked input, not work already executing. Any other durable reference keeps its root. */
|
|
105
|
+
export declare function requestUnstartedHumanRoots(db: Database.Database): ReadonlySet<string>;
|
|
106
|
+
export {};
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { getHumanReceipt, humanBodyHash, isWebSessionIdentity } from "./human-delivery-receipts.js";
|
|
3
|
+
import { RequestContextV1Schema, RequestContextActorV1Schema } from "./request-context-protocol.js";
|
|
4
|
+
import { RequestContextStore, requestContextDigest, requestContextJson } from "./request-context-store.js";
|
|
5
|
+
const TABLE = "request_context_human_inputs_v1";
|
|
6
|
+
const steerSchema = z.strictObject({ parentContextId: z.uuid(), rootContextId: z.uuid(), parentSha256: z.string().regex(/^[a-f0-9]{64}$/), workGeneration: z.string().min(1).max(256), actor: RequestContextActorV1Schema });
|
|
7
|
+
const routeSchema = z.strictObject({ kind: z.enum(["room", "web", "instance"]), adapterId: z.string().max(256).optional(), chatId: z.string().max(256).optional(), threadId: z.string().max(256).optional(), messageId: z.string().max(256).optional(), sessionHandle: z.string().regex(/^[a-f0-9]{16}$/).optional() });
|
|
8
|
+
const classicSchema = z.strictObject({ adapterId: z.string().min(1).max(256), roomId: z.string().min(1).max(256), kind: z.enum(["guild", "group", "user"]), id: z.string().min(1).max(256), restrictedAtAdmission: z.boolean(), path: z.literal("registered-room") });
|
|
9
|
+
export function requestHumanContextId(receiptId, kind = "root") {
|
|
10
|
+
z.uuid().parse(receiptId);
|
|
11
|
+
const chars = requestContextDigest(["human-input-v1", kind, receiptId]).slice(0, 32).split("");
|
|
12
|
+
chars[12] = "8";
|
|
13
|
+
chars[16] = ((parseInt(chars[16], 16) & 3) | 8).toString(16);
|
|
14
|
+
const s = chars.join("");
|
|
15
|
+
return `${s.slice(0, 8)}-${s.slice(8, 12)}-${s.slice(12, 16)}-${s.slice(16, 20)}-${s.slice(20)}`;
|
|
16
|
+
}
|
|
17
|
+
function evidence(row) {
|
|
18
|
+
return requestContextDigest([row.receipt_id, row.message_id, row.target_instance, row.original_sha256, row.origin_json, row.authority_json, row.input_kind]);
|
|
19
|
+
}
|
|
20
|
+
export class RequestHumanInputStore {
|
|
21
|
+
db;
|
|
22
|
+
writable;
|
|
23
|
+
constructor(db, writable) {
|
|
24
|
+
this.db = db;
|
|
25
|
+
this.writable = writable;
|
|
26
|
+
}
|
|
27
|
+
read(receiptId) {
|
|
28
|
+
z.uuid().parse(receiptId);
|
|
29
|
+
if (!this.db.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name=?").get(TABLE))
|
|
30
|
+
return null;
|
|
31
|
+
const saved = this.db.prepare(`SELECT root_id,image_json,image_sha256 FROM ${TABLE} WHERE receipt_id=?`).get(receiptId);
|
|
32
|
+
if (!saved)
|
|
33
|
+
return null;
|
|
34
|
+
const receipt = getHumanReceipt(this.db, receiptId), image = z.strictObject({ receiptEvidence: z.string(), context: RequestContextV1Schema, route: routeSchema, classic: classicSchema.nullable(), steer: steerSchema.optional() }).parse(JSON.parse(saved.image_json));
|
|
35
|
+
const retained = new RequestContextStore(this.db).context(image.context.ref.contextId);
|
|
36
|
+
if (saved.root_id !== image.context.ref.rootContextId || !receipt || evidence(receipt) !== image.receiptEvidence || humanBodyHash(receipt.original_body) !== receipt.original_sha256
|
|
37
|
+
|| requestContextDigest(image) !== saved.image_sha256 || !retained || requestContextJson(retained) !== requestContextJson(image.context)
|
|
38
|
+
|| image.context.rootEvidenceRef !== `human:${receipt.message_id}` || image.context.ref.contextId !== requestHumanContextId(receiptId)
|
|
39
|
+
|| image.context.source.instance !== receipt.target_instance || image.context.sourceAudience.ref !== requestHumanContextId(receiptId, "audience")
|
|
40
|
+
|| image.context.sourceAudience.kind !== image.route.kind)
|
|
41
|
+
throw Error("Accepted human input evidence is unavailable");
|
|
42
|
+
if (image.steer) {
|
|
43
|
+
const parent = new RequestContextStore(this.db).context(image.steer.parentContextId);
|
|
44
|
+
if (!parent || parent.ref.rootContextId !== image.steer.rootContextId || requestContextDigest(parent) !== image.steer.parentSha256
|
|
45
|
+
|| parent.source.instance !== retained.source.instance || parent.source.incarnation !== retained.source.incarnation
|
|
46
|
+
|| requestContextDigest(image.steer.actor) !== requestContextDigest(retained.initiatingActor) || !["steer", "btw"].includes(receipt.input_kind)
|
|
47
|
+
|| retained.ingress === "guest" || retained.ingress === "hub")
|
|
48
|
+
throw Error("Accepted steer evidence is unavailable");
|
|
49
|
+
}
|
|
50
|
+
return Object.freeze({ context: retained, route: Object.freeze(image.route), ...(image.steer ? { steer: Object.freeze(image.steer) } : {}) });
|
|
51
|
+
}
|
|
52
|
+
/** Historical SDK basis; like read(), this is evidence, never current membership or an active lease. */
|
|
53
|
+
classicBasis(receiptId) {
|
|
54
|
+
if (!this.read(receiptId))
|
|
55
|
+
return null;
|
|
56
|
+
const row = this.db.prepare(`SELECT image_json FROM ${TABLE} WHERE receipt_id=?`).get(receiptId);
|
|
57
|
+
const classic = JSON.parse(row.image_json).classic;
|
|
58
|
+
return classic === null ? null : Object.freeze(classicSchema.parse(classic));
|
|
59
|
+
}
|
|
60
|
+
/** The owning outbox wraps receipt creation and this capture in one transaction. */
|
|
61
|
+
record(receiptId, facts) {
|
|
62
|
+
this.writable();
|
|
63
|
+
return this.db.transaction(() => {
|
|
64
|
+
const receipt = getHumanReceipt(this.db, receiptId);
|
|
65
|
+
if (!receipt)
|
|
66
|
+
throw Error("Accepted human receipt is unavailable");
|
|
67
|
+
const origin = JSON.parse(receipt.origin_json), authority = receipt.authority_json ? JSON.parse(receipt.authority_json) : null, route = routeSchema.parse(facts.route);
|
|
68
|
+
if (origin.platform === "web" && (!facts.web || route.kind !== "web") || origin.platform !== "web" && facts.web !== null)
|
|
69
|
+
throw Error("Accepted human ingress is unavailable");
|
|
70
|
+
const classic = facts.classic ? classicSchema.parse({ ...facts.classic, restrictedAtAdmission: facts.room?.restricted, path: "registered-room" }) : null;
|
|
71
|
+
if (origin.platform !== "web" && facts.room && !classic || classic && (!facts.room || origin.platform === "web" || classic.adapterId !== origin.adapter_id
|
|
72
|
+
|| (origin.platform === "discord" ? classic.kind !== "guild" : classic.kind === "guild") || classic.kind === "user" && classic.id !== origin.user_id))
|
|
73
|
+
throw Error("Accepted Classic admission basis is unavailable");
|
|
74
|
+
let actor = { kind: "unknown", reason: "unidentified" };
|
|
75
|
+
const identity = origin.platform === "web" && isWebSessionIdentity(origin.web_identity) ? origin.web_identity : null;
|
|
76
|
+
const native = origin.platform !== "web" && origin.adapter_id && origin.user_id ? { platform: origin.platform, userId: origin.user_id } : null;
|
|
77
|
+
const webActor = identity ? { platform: identity.platform, userId: identity.user_id }
|
|
78
|
+
: origin.platform === "web" && ["web-verified", "web-guest"].includes(authority?.kind) && authority.actor
|
|
79
|
+
? { platform: authority.actor.adapter_id === "host" && authority.actor.user_id === "operator" ? "host" : facts.platform(authority.actor.adapter_id), userId: authority.actor.user_id } : null;
|
|
80
|
+
const person = native ?? webActor;
|
|
81
|
+
if (person?.platform)
|
|
82
|
+
actor = { kind: "person", platform: person.platform, userId: person.userId };
|
|
83
|
+
const ingress = (facts.web?.guest || authority?.kind === "web-guest") ? "guest" : actor.kind === "unknown" ? "restricted-room" : facts.room ? facts.room.restricted ? "restricted-room" : "free-room" : "owner";
|
|
84
|
+
const id = requestHumanContextId(receiptId), context = RequestContextV1Schema.parse({ ref: { version: 1, contextId: id, rootContextId: id }, rootEvidenceRef: `human:${receipt.message_id}`, initiatingActor: actor, ingress,
|
|
85
|
+
source: { instance: receipt.target_instance, incarnation: facts.incarnation }, sourceAudience: { kind: route.kind, ref: requestHumanContextId(receiptId, "audience") } });
|
|
86
|
+
let steer;
|
|
87
|
+
if (facts.steer && ["steer", "btw"].includes(receipt.input_kind) && ingress !== "guest" && actor.kind === "person" && facts.steer.canManage(actor)) {
|
|
88
|
+
const captured = facts.steer, parent = captured.parent, stored = new RequestContextStore(this.db).context(parent.context.ref.contextId);
|
|
89
|
+
if (!captured.current() || !stored || requestContextDigest(stored) !== requestContextDigest(parent.context) || parent.owner.instance !== receipt.target_instance
|
|
90
|
+
|| parent.owner.incarnation !== facts.incarnation || parent.context.source.instance !== receipt.target_instance || parent.context.source.incarnation !== facts.incarnation)
|
|
91
|
+
throw Error("Steer admission parent changed");
|
|
92
|
+
steer = steerSchema.parse({ parentContextId: stored.ref.contextId, rootContextId: stored.ref.rootContextId, parentSha256: requestContextDigest(stored), workGeneration: parent.owner.workGeneration, actor });
|
|
93
|
+
if (!captured.current() || !captured.canManage(actor))
|
|
94
|
+
throw Error("Steer admission parent changed");
|
|
95
|
+
}
|
|
96
|
+
const image = { receiptEvidence: evidence(receipt), context, route, classic, ...(steer ? { steer } : {}) }, previous = this.read(receiptId);
|
|
97
|
+
if (previous) {
|
|
98
|
+
const saved = this.db.prepare(`SELECT image_sha256 FROM ${TABLE} WHERE receipt_id=?`).get(receiptId);
|
|
99
|
+
if (saved.image_sha256 !== requestContextDigest(image))
|
|
100
|
+
throw Error("Accepted human input changed");
|
|
101
|
+
return previous;
|
|
102
|
+
}
|
|
103
|
+
if (receipt.state !== "queued" || receipt.owner_key !== null || receipt.wire_body !== null || receipt.proof_tag !== null)
|
|
104
|
+
throw Error("Human ingress must be captured before input");
|
|
105
|
+
new RequestContextStore(this.db).recordContext(context);
|
|
106
|
+
this.db.exec(`CREATE TABLE IF NOT EXISTS ${TABLE}(receipt_id TEXT PRIMARY KEY REFERENCES human_delivery_receipts(receipt_id) ON DELETE CASCADE,root_id TEXT NOT NULL UNIQUE REFERENCES request_contexts_v1(context_id),image_json TEXT NOT NULL,image_sha256 TEXT NOT NULL)`);
|
|
107
|
+
this.db.prepare(`INSERT INTO ${TABLE} VALUES (?,?,?,?)`).run(receiptId, context.ref.rootContextId, requestContextJson(image), requestContextDigest(image));
|
|
108
|
+
this.writable();
|
|
109
|
+
return this.read(receiptId);
|
|
110
|
+
})();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/** An accepted but unproven human input is a durable work reference; an age timer never settles it. */
|
|
114
|
+
export function requestHumanInputBlockers(db, rootId) {
|
|
115
|
+
if (!db.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name=?").get(TABLE))
|
|
116
|
+
return [];
|
|
117
|
+
const rows = db.prepare(`SELECT receipt_id FROM ${TABLE} WHERE root_id=? OR json_extract(image_json,'$.steer.rootContextId')=? LIMIT 65`).all(rootId, rootId);
|
|
118
|
+
const store = new RequestHumanInputStore(db, () => { throw Error("Read-only human input inspection"); });
|
|
119
|
+
return rows.flatMap(row => {
|
|
120
|
+
const input = store.read(row.receipt_id), receipt = getHumanReceipt(db, row.receipt_id);
|
|
121
|
+
if (!input || !receipt)
|
|
122
|
+
throw Error("Accepted human input evidence is unavailable");
|
|
123
|
+
return receipt.state === "delivered" ? [] : [`human-input:${receipt.message_id}`];
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/** Untouched ingress is parked input, not work already executing. Any other durable reference keeps its root. */
|
|
127
|
+
export function requestUnstartedHumanRoots(db) {
|
|
128
|
+
if (!db.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name=?").get(TABLE))
|
|
129
|
+
return new Set();
|
|
130
|
+
const rows = db.prepare(`SELECT h.receipt_id,h.root_id,r.state,r.owner_key,r.wire_body,r.wire_sha256,r.proof_tag,r.proof_mode,r.delivered_at
|
|
131
|
+
FROM ${TABLE} h LEFT JOIN human_delivery_receipts r ON r.receipt_id=h.receipt_id`).all();
|
|
132
|
+
const store = new RequestHumanInputStore(db, () => { throw Error("Read-only ingress inspection"); }), roots = new Set();
|
|
133
|
+
const exists = (table) => !!db.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name=?").get(table);
|
|
134
|
+
for (const row of rows) {
|
|
135
|
+
const input = store.read(row.receipt_id);
|
|
136
|
+
if (!input || input.context.ref.rootContextId !== row.root_id)
|
|
137
|
+
throw Error("Unstarted ingress evidence unavailable");
|
|
138
|
+
if (row.state !== "queued" || [row.owner_key, row.wire_body, row.wire_sha256, row.proof_tag, row.proof_mode, row.delivered_at].some(value => value !== null))
|
|
139
|
+
continue;
|
|
140
|
+
const root = row.root_id, contexts = "SELECT context_id FROM request_contexts_v1 WHERE json_extract(context_json,'$.ref.rootContextId')=?";
|
|
141
|
+
if (db.prepare("SELECT 1 FROM request_contexts_v1 WHERE json_extract(context_json,'$.ref.rootContextId')=? AND context_id!=? LIMIT 1").get(root, root))
|
|
142
|
+
continue;
|
|
143
|
+
if (db.prepare(`SELECT 1 FROM request_context_operations_v1 WHERE context_id IN (${contexts}) LIMIT 1`).get(root))
|
|
144
|
+
continue;
|
|
145
|
+
if (exists("request_context_contacts_v1") && db.prepare("SELECT 1 FROM request_context_contacts_v1 WHERE root_id=? LIMIT 1").get(root))
|
|
146
|
+
continue;
|
|
147
|
+
if (exists("request_context_recovery_v1") && db.prepare(`SELECT 1 FROM request_context_recovery_v1 WHERE json_extract(pointer_json,'$.contextId') IN (${contexts}) LIMIT 1`).get(root))
|
|
148
|
+
continue;
|
|
149
|
+
roots.add(root);
|
|
150
|
+
}
|
|
151
|
+
return roots;
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=request-context-human.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-context-human.js","sourceR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C,GAAG,CAAC,UAAU,EAAC,GAAG,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,KAAK,CAAA,EAAE,CAAA,KAAK,KAAG,IAAI,CAAC;YAAC,SAAS;QACxJ,MAAM,IAAI,GAAC,GAAG,CAAC,OAAO,EAAC,QAAQ,GAAC,qGAAqG,CAAC;QACtI,IAAG,EAAE,CAAC,OAAO,CAAC,sHAAsH,CAAC,CAAC,GAAG,CAAC,IAAI,EAAC,IAAI,CAAC;YAAC,SAAS;QAC9J,IAAG,EAAE,CAAC,OAAO,CAAC,oEAAoE,QAAQ,WAAW,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;YAAC,SAAS;QAC1H,IAAG,MAAM,CAAC,6BAA6B,CAAC,IAAE,EAAE,CAAC,OAAO,CAAC,mEAAmE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;YAAC,SAAS;QAC7I,IAAG,MAAM,CAAC,6BAA6B,CAAC,IAAE,EAAE,CAAC,OAAO,CAAC,gGAAgG,QAAQ,WAAW,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;YAAC,SAAS;QAC7L,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACjB,CAAC;IACD,OAAO,KAAK,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { RequestContextV1 } from "./request-context-protocol.js";
|
|
2
|
+
import type { RequestContextRegistrationGate } from "./request-context-fence.js";
|
|
3
|
+
import type { PreparedRequestContextInput, RequestContextInputProof, RequestContextRuntimeOwner } from "./request-context-turns.js";
|
|
4
|
+
interface AdmittedInput {
|
|
5
|
+
readonly context: RequestContextV1;
|
|
6
|
+
readonly proof: RequestContextInputProof;
|
|
7
|
+
/** Must check the actual receipt/attempt, generation and launch immediately under the write lock. */
|
|
8
|
+
current(owner: Readonly<RequestContextRuntimeOwner>, wireSha256: string): boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class RequestContextInputs {
|
|
11
|
+
private readonly capacity;
|
|
12
|
+
private readonly entries;
|
|
13
|
+
constructor(registration: RequestContextRegistrationGate, capacity?: number);
|
|
14
|
+
get registrationGate(): RequestContextRegistrationGate | null;
|
|
15
|
+
get drainRevision(): string;
|
|
16
|
+
drainView(rootId: string): import("./request-context-fence.js").RequestContextDrainView;
|
|
17
|
+
register(inputId: string, input: AdmittedInput): () => void;
|
|
18
|
+
/** Only called by C at its final write, with its final formatted digest and exact owned launch. */
|
|
19
|
+
prepare(inputId: string, wireSha256: string, owner: Readonly<RequestContextRuntimeOwner>): PreparedRequestContextInput | null;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/** L's private final-write resolver. Registration is by the owning admission path, never a tool argument. */
|
|
2
|
+
import { requestContextDigest } from "./request-context-store.js";
|
|
3
|
+
import { RequestContextV1Schema } from "./request-context-protocol.js";
|
|
4
|
+
import { RequestContextReferenceMap } from "./request-context-fence.js";
|
|
5
|
+
function freeze(value) {
|
|
6
|
+
if (value && typeof value === "object") {
|
|
7
|
+
for (const child of Object.values(value))
|
|
8
|
+
freeze(child);
|
|
9
|
+
Object.freeze(value);
|
|
10
|
+
}
|
|
11
|
+
return value;
|
|
12
|
+
}
|
|
13
|
+
export class RequestContextInputs {
|
|
14
|
+
capacity;
|
|
15
|
+
entries = new RequestContextReferenceMap(row => row.admitted.context.ref.rootContextId, (_row, key) => `input:${key}`);
|
|
16
|
+
constructor(registration, capacity = 4096) {
|
|
17
|
+
this.capacity = capacity;
|
|
18
|
+
if (!Number.isSafeInteger(capacity) || capacity < 1 || capacity > 10000)
|
|
19
|
+
throw Error("Invalid request input bound");
|
|
20
|
+
this.entries.installRegistration(registration);
|
|
21
|
+
}
|
|
22
|
+
get registrationGate() { return this.entries.registrationGate; }
|
|
23
|
+
get drainRevision() { return this.entries.revision; }
|
|
24
|
+
drainView(rootId) { return this.entries.view(rootId); }
|
|
25
|
+
register(inputId, input) {
|
|
26
|
+
if (!inputId || inputId.length > 512 || /[\x00-\x1f\x7f]/.test(inputId))
|
|
27
|
+
throw Error("Invalid admitted input id");
|
|
28
|
+
if (this.entries.has(inputId))
|
|
29
|
+
throw Error("Request input already registered");
|
|
30
|
+
if (this.entries.size >= this.capacity)
|
|
31
|
+
throw Error("Request input backlog is full");
|
|
32
|
+
const context = freeze(RequestContextV1Schema.parse(structuredClone(input.context)));
|
|
33
|
+
const proof = freeze(structuredClone(input.proof));
|
|
34
|
+
const entry = { admitted: Object.freeze({ context, proof, current: input.current }) };
|
|
35
|
+
this.entries.set(inputId, entry);
|
|
36
|
+
return () => { if (this.entries.get(inputId) === entry)
|
|
37
|
+
this.entries.delete(inputId); };
|
|
38
|
+
}
|
|
39
|
+
/** Only called by C at its final write, with its final formatted digest and exact owned launch. */
|
|
40
|
+
prepare(inputId, wireSha256, owner) {
|
|
41
|
+
const entry = this.entries.get(inputId);
|
|
42
|
+
if (!entry)
|
|
43
|
+
return null;
|
|
44
|
+
const { admitted } = entry;
|
|
45
|
+
if (!/^[a-f0-9]{64}$/.test(wireSha256) || admitted.context.source.instance !== owner.instance
|
|
46
|
+
|| admitted.context.source.incarnation !== owner.incarnation || !admitted.current(owner, wireSha256)) {
|
|
47
|
+
throw Error("Admitted request input is no longer current");
|
|
48
|
+
}
|
|
49
|
+
// A formatting retry can never adopt a later launch, proof or wire image under the same input key.
|
|
50
|
+
if (entry.prepared) {
|
|
51
|
+
if (entry.prepared.wireSha256 !== wireSha256 || requestContextDigest(entry.prepared.owner) !== requestContextDigest(owner)) {
|
|
52
|
+
throw Error("Admitted request input changed during retry");
|
|
53
|
+
}
|
|
54
|
+
return entry.prepared;
|
|
55
|
+
}
|
|
56
|
+
const prepared = freeze({ inputId, wireSha256, owner: structuredClone(owner), context: admitted.context, proof: admitted.proof });
|
|
57
|
+
// Re-registering the row bumps its drain revision and rechecks the root fence before publication.
|
|
58
|
+
this.entries.set(inputId, entry);
|
|
59
|
+
entry.prepared = prepared;
|
|
60
|
+
return prepared;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=request-context-inputs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-context-inputs.js","sourceRoot":"","sources":["../src/request-context-inputs.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAC7G,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAcxE,SAAS,MAAM,CAAI,KAAQ;IACzB,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACvC,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;YAAE,MAAM,CAAC,KAAK,CAAC,CAAC;QACxD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AACD,MAAM,OAAO,oBAAoB;IAG4C,QAAQ;IAFlE,OAAO,GAAG,IAAI,0BAA0B,CACvD,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,SAAS,GAAG,EAAE,CAAC,CAAC;IAChF,YAAY,YAA4C,EAAmB,QAAQ,GAAG,IAAI;wBAAf,QAAQ;QACjF,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,QAAQ,GAAG,CAAC,IAAI,QAAQ,GAAG,KAAK;YAAE,MAAM,KAAK,CAAC,6BAA6B,CAAC,CAAC;QACpH,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;IACjD,CAAC;IACD,IAAI,gBAAgB,KAAK,OAAO,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC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AClB,CAAC;CACF"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/** Durable installation intent. Runtime publication is separate: a committed row never means serving is installed. */
|
|
2
|
+
import type Database from "better-sqlite3";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { type RequestContextActivationRecord } from "./request-context-activation.js";
|
|
5
|
+
import type { RequestContextActivationLease } from "./request-context-update-guard.js";
|
|
6
|
+
import type { RequestContextAdmissionPort, RequestContextContinuation } from "./request-context-admission.js";
|
|
7
|
+
declare const State: z.ZodObject<{
|
|
8
|
+
revision: z.ZodNumber;
|
|
9
|
+
epoch: z.ZodString;
|
|
10
|
+
owner: z.ZodString;
|
|
11
|
+
mode: z.ZodEnum<{
|
|
12
|
+
active: "active";
|
|
13
|
+
draining: "draining";
|
|
14
|
+
off: "off";
|
|
15
|
+
}>;
|
|
16
|
+
drainRootsSha256: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
export type RequestContextInstallationState = z.infer<typeof State>;
|
|
19
|
+
export interface RequestContextInstallationOwner {
|
|
20
|
+
readonly owner: string;
|
|
21
|
+
current(): boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface RequestContextOffProof {
|
|
24
|
+
readonly epoch: string;
|
|
25
|
+
readonly revision: number;
|
|
26
|
+
current(): boolean;
|
|
27
|
+
}
|
|
28
|
+
/** Pure reader for startup, before recovery. Missing state under an active floor is never treated as legacy. */
|
|
29
|
+
export declare function readRequestContextInstallation(db: Database.Database): RequestContextInstallationState | null;
|
|
30
|
+
export declare class RequestContextInstallationStore {
|
|
31
|
+
private readonly db;
|
|
32
|
+
constructor(db: Database.Database);
|
|
33
|
+
read(): RequestContextInstallationState | null;
|
|
34
|
+
/** Validated immutable record for the currently installed epoch, including inside its activation transaction. */
|
|
35
|
+
activation(): RequestContextActivationRecord | null;
|
|
36
|
+
private requireOwner;
|
|
37
|
+
private write;
|
|
38
|
+
/** Floor, history (including Go back), active epoch and desired mode have one outer COMMIT. */
|
|
39
|
+
activate(record: RequestContextActivationRecord, owner: RequestContextInstallationOwner, update: RequestContextActivationLease, readyAndSameOffer: () => boolean, expectedRevision: number, initialize?: () => unknown): RequestContextInstallationState;
|
|
40
|
+
/** Exact pre-drain roots, not a clock cutoff. New child contexts may continue these roots.
|
|
41
|
+
* The digest makes a missing/partial snapshot fail closed after restart; no lifetime origin is consulted.
|
|
42
|
+
*/
|
|
43
|
+
drainRoots(): ReadonlySet<string>;
|
|
44
|
+
/** Persist desired Off and its old-root set together. Restart resumes this exact mode. */
|
|
45
|
+
beginOff(expectedRevision: number, owner: RequestContextInstallationOwner): RequestContextInstallationState;
|
|
46
|
+
/** The assessor is independent of the runtime installer; failed installation cannot make empty-work Off deadlock. */
|
|
47
|
+
finishOff(expectedRevision: number, owner: RequestContextInstallationOwner, proof: RequestContextOffProof): RequestContextInstallationState;
|
|
48
|
+
}
|
|
49
|
+
export interface RequestContextPublishedInstallation<T> {
|
|
50
|
+
readonly state: Readonly<RequestContextInstallationState>;
|
|
51
|
+
readonly ports: Readonly<T>;
|
|
52
|
+
current(): boolean;
|
|
53
|
+
/** Existing tracked execution may finish during a preparation fence or same-epoch drain. */
|
|
54
|
+
executionCurrent(): boolean;
|
|
55
|
+
/** Exact installed owner/ports, independent of this publication's execution membership. Mode changes reuse it. */
|
|
56
|
+
portsCurrent(): boolean;
|
|
57
|
+
continuationAllowed?(rootContextId: string): boolean;
|
|
58
|
+
}
|
|
59
|
+
/** One process-owned publication reference. Every ingress captures it, never a desired config flag. */
|
|
60
|
+
export declare class RequestContextPublication<T extends object> {
|
|
61
|
+
private readonly owner;
|
|
62
|
+
private published;
|
|
63
|
+
private readonly executions;
|
|
64
|
+
private required;
|
|
65
|
+
private fenced;
|
|
66
|
+
private fenceSerial;
|
|
67
|
+
private arrivals;
|
|
68
|
+
private readonly waiting;
|
|
69
|
+
private readonly continuations;
|
|
70
|
+
private readonly admissionListeners;
|
|
71
|
+
readonly admission: RequestContextAdmissionPort;
|
|
72
|
+
constructor(owner: RequestContextInstallationOwner, previouslyActivated: boolean);
|
|
73
|
+
/**
|
|
74
|
+
* Policy/instruction mode for the published executions, retained while their owner/ports remain current even
|
|
75
|
+
* under a recovery or preparation fence. This does NOT mean admission is open: ingress must use capture(),
|
|
76
|
+
* which refuses under the fence. Before the first publication (including startup recovery), this is null.
|
|
77
|
+
*/
|
|
78
|
+
installedMode(): RequestContextInstallationState["mode"] | null;
|
|
79
|
+
installed(): boolean;
|
|
80
|
+
/** No execution has ever been published in this process; only a real staged capable bridge may use this. */
|
|
81
|
+
heldUnpublished(): boolean;
|
|
82
|
+
/** Startup recovery can mutate only behind the current owner's held admission fence. */
|
|
83
|
+
recoveryAvailable(): boolean;
|
|
84
|
+
/** A valid B/C owner supplies the proof callback; a root id, reply pointer or body cannot construct this lease. */
|
|
85
|
+
continuation(rootContextId: string, current: () => boolean): RequestContextContinuation;
|
|
86
|
+
private dispatchAvailable;
|
|
87
|
+
private admissionAvailable;
|
|
88
|
+
private producerCurrent;
|
|
89
|
+
private waitForAdmission;
|
|
90
|
+
private refreshAdmission;
|
|
91
|
+
/** A remote/local producer arriving under preparation invalidates its exact proof, without starting input. */
|
|
92
|
+
ingressAvailable(): boolean;
|
|
93
|
+
fence(): {
|
|
94
|
+
current(): boolean;
|
|
95
|
+
owned(): boolean;
|
|
96
|
+
};
|
|
97
|
+
/** Call only after durable state commits, all nine ports are staged, and readiness is revalidated. */
|
|
98
|
+
publish(state: RequestContextInstallationState, ports: T, fence: {
|
|
99
|
+
current(): boolean;
|
|
100
|
+
}, ready: () => boolean, durable: () => RequestContextInstallationState | null, executionPortsCurrent: () => boolean, continuationAllowed?: (rootContextId: string) => boolean): void;
|
|
101
|
+
/** Existing covered execution only. Admission fences/readiness do not discard owned in-flight work. */
|
|
102
|
+
captureExecution(): RequestContextPublishedInstallation<T>;
|
|
103
|
+
/** Activated-but-fenced or lost-owner never falls through to the lifetime dispatcher. */
|
|
104
|
+
capture(continuation?: RequestContextContinuation): RequestContextPublishedInstallation<T> | null;
|
|
105
|
+
/** A failed synchronous mode transition may reopen the exact prior publication, preserving its executions.
|
|
106
|
+
* Producer arrivals invalidate preparation but cannot prevent safe return to unchanged durable state.
|
|
107
|
+
*/
|
|
108
|
+
resume(fence: {
|
|
109
|
+
owned(): boolean;
|
|
110
|
+
}, durable: () => RequestContextInstallationState | null): void;
|
|
111
|
+
/** Failed first preparation can resume legacy only when no durable activation committed. */
|
|
112
|
+
abandon(fence: {
|
|
113
|
+
current(): boolean;
|
|
114
|
+
owned?(): boolean;
|
|
115
|
+
}, durable: () => RequestContextInstallationState | null): void;
|
|
116
|
+
}
|
|
117
|
+
export {};
|