@ksp-gonogo/sitrep-sdk 1.0.0-rc.44 → 1.0.0-rc.47
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 +48 -93
- package/dist/__generated__/command-map.d.ts +247 -2
- package/dist/__generated__/command-map.d.ts.map +1 -1
- package/dist/__generated__/command-map.js +91 -19
- package/dist/__generated__/command-map.js.map +1 -1
- package/dist/__generated__/contract.d.ts +2872 -315
- package/dist/__generated__/contract.d.ts.map +1 -1
- package/dist/__generated__/contract.js +187 -3
- package/dist/__generated__/contract.js.map +1 -1
- package/dist/__generated__/delay-roles.d.ts +2 -2
- package/dist/__generated__/delay-roles.d.ts.map +1 -1
- package/dist/__generated__/delay-roles.js +10 -0
- package/dist/__generated__/delay-roles.js.map +1 -1
- package/dist/__generated__/frames.d.ts +40 -4
- package/dist/__generated__/frames.d.ts.map +1 -1
- package/dist/__generated__/frames.js +20 -4
- package/dist/__generated__/frames.js.map +1 -1
- package/dist/__generated__/reckonability.d.ts +3 -1
- package/dist/__generated__/reckonability.d.ts.map +1 -1
- package/dist/__generated__/reckonability.js +1 -1
- package/dist/__generated__/reckonability.js.map +1 -1
- package/dist/__generated__/sample-kinds.d.ts +15 -1
- package/dist/__generated__/sample-kinds.d.ts.map +1 -1
- package/dist/__generated__/sample-kinds.js +15 -1
- package/dist/__generated__/sample-kinds.js.map +1 -1
- package/dist/__generated__/topic-map.d.ts +29 -9
- package/dist/__generated__/topic-map.d.ts.map +1 -1
- package/dist/__generated__/topic-map.js +13 -2
- package/dist/__generated__/topic-map.js.map +1 -1
- package/dist/__generated__/units.d.ts +245 -6
- package/dist/__generated__/units.d.ts.map +1 -1
- package/dist/__generated__/units.js +885 -43
- package/dist/__generated__/units.js.map +1 -1
- package/dist/api/command-rejection.d.ts +2 -2
- package/dist/api/command-rejection.js +1 -1
- package/dist/api/contribution-slots.d.ts +103 -0
- package/dist/api/contribution-slots.d.ts.map +1 -1
- package/dist/api/framework-reads.d.ts +2 -2
- package/dist/api/framework-reads.d.ts.map +1 -1
- package/dist/api/framework-reads.js +6 -1
- package/dist/api/framework-reads.js.map +1 -1
- package/dist/api/host.d.ts +14 -6
- package/dist/api/host.d.ts.map +1 -1
- package/dist/api/host.js.map +1 -1
- package/dist/api/index.d.ts +63 -55
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +59 -49
- package/dist/api/index.js.map +1 -1
- package/dist/api/part-panels.d.ts +143 -0
- package/dist/api/part-panels.d.ts.map +1 -0
- package/dist/api/part-panels.js +104 -0
- package/dist/api/part-panels.js.map +1 -0
- package/dist/api/settings/store.d.ts +1 -1
- package/dist/api/settings/store.d.ts.map +1 -1
- package/dist/api/settings/store.js +7 -2
- package/dist/api/settings/store.js.map +1 -1
- package/dist/api/slots.d.ts +114 -34
- package/dist/api/slots.d.ts.map +1 -1
- package/dist/api/station-brokers.d.ts +21 -14
- package/dist/api/station-brokers.d.ts.map +1 -1
- package/dist/api/station-brokers.js +21 -14
- package/dist/api/station-brokers.js.map +1 -1
- package/dist/api/transport.d.ts +9 -0
- package/dist/api/transport.d.ts.map +1 -1
- package/dist/api/types.d.ts +335 -52
- package/dist/api/types.d.ts.map +1 -1
- package/dist/api/uplink-banner.d.ts +113 -0
- package/dist/api/uplink-banner.d.ts.map +1 -0
- package/dist/api/uplink-banner.js +69 -0
- package/dist/api/uplink-banner.js.map +1 -0
- package/dist/api/uplink-handles.d.ts +2 -12
- package/dist/api/uplink-handles.d.ts.map +1 -1
- package/dist/api/uplink-handles.js +2 -1
- package/dist/api/uplink-handles.js.map +1 -1
- package/dist/command-delay.d.ts +81 -2
- package/dist/command-delay.d.ts.map +1 -1
- package/dist/command-delay.js +51 -8
- package/dist/command-delay.js.map +1 -1
- package/dist/command-value.d.ts +98 -0
- package/dist/command-value.d.ts.map +1 -0
- package/dist/command-value.js +87 -0
- package/dist/command-value.js.map +1 -0
- package/dist/commands.d.ts +1 -1
- package/dist/commands.d.ts.map +1 -1
- package/dist/compat-versions.d.ts +1 -1
- package/dist/compat-versions.d.ts.map +1 -1
- package/dist/compat-versions.js +2 -2
- package/dist/compat-versions.js.map +1 -1
- package/dist/contract-tags.d.ts +33 -2
- package/dist/contract-tags.d.ts.map +1 -1
- package/dist/contract-tags.js +54 -5
- package/dist/contract-tags.js.map +1 -1
- package/dist/data-rate.d.ts +84 -0
- package/dist/data-rate.d.ts.map +1 -0
- package/dist/data-rate.js +133 -0
- package/dist/data-rate.js.map +1 -0
- package/dist/delay-roles.d.ts +8 -1
- package/dist/delay-roles.d.ts.map +1 -1
- package/dist/delay-roles.js +4 -1
- package/dist/delay-roles.js.map +1 -1
- package/dist/dock-markers.d.ts +126 -0
- package/dist/dock-markers.d.ts.map +1 -0
- package/dist/dock-markers.js +100 -0
- package/dist/dock-markers.js.map +1 -0
- package/dist/envelope.d.ts +2 -2
- package/dist/envelope.d.ts.map +1 -1
- package/dist/flight/types.d.ts +31 -2
- package/dist/flight/types.d.ts.map +1 -1
- package/dist/flight/types.js.map +1 -1
- package/dist/frames/index.d.ts +1 -4
- package/dist/frames/index.d.ts.map +1 -1
- package/dist/frames/index.js +0 -3
- package/dist/frames/index.js.map +1 -1
- package/dist/go-no-go-countdown.d.ts +65 -0
- package/dist/go-no-go-countdown.d.ts.map +1 -0
- package/dist/go-no-go-countdown.js +71 -0
- package/dist/go-no-go-countdown.js.map +1 -0
- package/dist/index.d.ts +13 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/ksp-enum-names.d.ts +31 -1
- package/dist/ksp-enum-names.d.ts.map +1 -1
- package/dist/ksp-enum-names.js +27 -1
- package/dist/ksp-enum-names.js.map +1 -1
- package/dist/media/delayed-playout-buffer.d.ts +29 -4
- package/dist/media/delayed-playout-buffer.d.ts.map +1 -1
- package/dist/media/delayed-playout-buffer.js +12 -5
- package/dist/media/delayed-playout-buffer.js.map +1 -1
- package/dist/media/encoded-frame-delay.d.ts +21 -16
- package/dist/media/encoded-frame-delay.d.ts.map +1 -1
- package/dist/media/encoded-frame-delay.js +21 -14
- package/dist/media/encoded-frame-delay.js.map +1 -1
- package/dist/media/frame-delay.d.ts +119 -5
- package/dist/media/frame-delay.d.ts.map +1 -1
- package/dist/media/frame-delay.js +201 -15
- package/dist/media/frame-delay.js.map +1 -1
- package/dist/media/frame-stamp-timeline.d.ts +119 -0
- package/dist/media/frame-stamp-timeline.d.ts.map +1 -0
- package/dist/media/frame-stamp-timeline.js +194 -0
- package/dist/media/frame-stamp-timeline.js.map +1 -0
- package/dist/media/index.d.ts +4 -3
- package/dist/media/index.d.ts.map +1 -1
- package/dist/media/index.js +1 -1
- package/dist/media/index.js.map +1 -1
- package/dist/media/worker/delay-worker-client.d.ts +27 -1
- package/dist/media/worker/delay-worker-client.d.ts.map +1 -1
- package/dist/media/worker/delay-worker-client.js +53 -5
- package/dist/media/worker/delay-worker-client.js.map +1 -1
- package/dist/media/worker/delay-worker.d.ts +45 -8
- package/dist/media/worker/delay-worker.d.ts.map +1 -1
- package/dist/media/worker/delay-worker.js +644 -56
- package/dist/media/worker/delay-worker.js.map +4 -4
- package/dist/media/worker/frame-delay-report.d.ts +25 -0
- package/dist/media/worker/frame-delay-report.d.ts.map +1 -0
- package/dist/media/worker/frame-delay-report.js +112 -0
- package/dist/media/worker/frame-delay-report.js.map +1 -0
- package/dist/media/worker/lead-limit-report.d.ts +13 -0
- package/dist/media/worker/lead-limit-report.d.ts.map +1 -0
- package/dist/media/worker/lead-limit-report.js +19 -0
- package/dist/media/worker/lead-limit-report.js.map +1 -0
- package/dist/media/worker/presentation-pacer.d.ts +70 -1
- package/dist/media/worker/presentation-pacer.d.ts.map +1 -1
- package/dist/media/worker/presentation-pacer.js +167 -9
- package/dist/media/worker/presentation-pacer.js.map +1 -1
- package/dist/media/worker/worker-delay-clock.d.ts +4 -5
- package/dist/media/worker/worker-delay-clock.d.ts.map +1 -1
- package/dist/media/worker/worker-delay-clock.js +6 -2
- package/dist/media/worker/worker-delay-clock.js.map +1 -1
- package/dist/rail-tags.d.ts +7 -0
- package/dist/rail-tags.d.ts.map +1 -1
- package/dist/rail-tags.js.map +1 -1
- package/dist/reads-index.json +419 -38
- package/dist/resource-transfer.d.ts +177 -0
- package/dist/resource-transfer.d.ts.map +1 -0
- package/dist/resource-transfer.js +190 -0
- package/dist/resource-transfer.js.map +1 -0
- package/dist/runtime-topic-registry.d.ts +2 -2
- package/dist/runtime-topic-registry.d.ts.map +1 -1
- package/dist/runtime-topic-registry.js +23 -2
- package/dist/runtime-topic-registry.js.map +1 -1
- package/dist/sample-step-tracker.d.ts +17 -0
- package/dist/sample-step-tracker.d.ts.map +1 -0
- package/dist/sample-step-tracker.js +38 -0
- package/dist/sample-step-tracker.js.map +1 -0
- package/dist/sha256-fallback.d.ts +6 -0
- package/dist/sha256-fallback.d.ts.map +1 -0
- package/dist/sha256-fallback.js +68 -0
- package/dist/sha256-fallback.js.map +1 -0
- package/dist/spine/arrival-deadline.d.ts +7 -0
- package/dist/spine/arrival-deadline.d.ts.map +1 -1
- package/dist/spine/arrival-deadline.js +12 -0
- package/dist/spine/arrival-deadline.js.map +1 -1
- package/dist/spine/bound-command.d.ts +58 -0
- package/dist/spine/bound-command.d.ts.map +1 -0
- package/dist/spine/bound-command.js +162 -0
- package/dist/spine/bound-command.js.map +1 -0
- package/dist/spine/capability-lock.d.ts +5 -0
- package/dist/spine/capability-lock.d.ts.map +1 -1
- package/dist/spine/capability-lock.js +56 -5
- package/dist/spine/capability-lock.js.map +1 -1
- package/dist/spine/celestial-facts.d.ts.map +1 -1
- package/dist/spine/celestial-facts.js +5 -2
- package/dist/spine/celestial-facts.js.map +1 -1
- package/dist/spine/centre-commands.d.ts +80 -0
- package/dist/spine/centre-commands.d.ts.map +1 -0
- package/dist/spine/centre-commands.js +224 -0
- package/dist/spine/centre-commands.js.map +1 -0
- package/dist/spine/client-reading.js +1 -1
- package/dist/spine/client-timeline.d.ts +31 -1
- package/dist/spine/client-timeline.d.ts.map +1 -1
- package/dist/spine/client-timeline.js +88 -2
- package/dist/spine/client-timeline.js.map +1 -1
- package/dist/spine/client.d.ts +150 -4
- package/dist/spine/client.d.ts.map +1 -1
- package/dist/spine/client.js +475 -34
- package/dist/spine/client.js.map +1 -1
- package/dist/spine/command-gate.d.ts +8 -0
- package/dist/spine/command-gate.d.ts.map +1 -1
- package/dist/spine/command-gate.js +35 -3
- package/dist/spine/command-gate.js.map +1 -1
- package/dist/spine/command-outcomes.d.ts +47 -0
- package/dist/spine/command-outcomes.d.ts.map +1 -0
- package/dist/spine/command-outcomes.js +199 -0
- package/dist/spine/command-outcomes.js.map +1 -0
- package/dist/spine/connectivity-history.d.ts +5 -3
- package/dist/spine/connectivity-history.d.ts.map +1 -1
- package/dist/spine/connectivity-history.js.map +1 -1
- package/dist/spine/context.d.ts +43 -10
- package/dist/spine/context.d.ts.map +1 -1
- package/dist/spine/context.js +99 -39
- package/dist/spine/context.js.map +1 -1
- package/dist/spine/core-reckoners.d.ts.map +1 -1
- package/dist/spine/core-reckoners.js +15 -5
- package/dist/spine/core-reckoners.js.map +1 -1
- package/dist/spine/delay-authority-context.d.ts +5 -0
- package/dist/spine/delay-authority-context.d.ts.map +1 -0
- package/dist/spine/delay-authority-context.js +7 -0
- package/dist/spine/delay-authority-context.js.map +1 -0
- package/dist/spine/delay-authority.d.ts +76 -1
- package/dist/spine/delay-authority.d.ts.map +1 -1
- package/dist/spine/delay-authority.js +217 -3
- package/dist/spine/delay-authority.js.map +1 -1
- package/dist/spine/delta-v-budget.js +2 -2
- package/dist/spine/delta-v-budget.js.map +1 -1
- package/dist/spine/dv-stage-resources.d.ts +32 -17
- package/dist/spine/dv-stage-resources.d.ts.map +1 -1
- package/dist/spine/dv-stage-resources.js +44 -37
- package/dist/spine/dv-stage-resources.js.map +1 -1
- package/dist/spine/index.d.ts +6 -1
- package/dist/spine/index.d.ts.map +1 -1
- package/dist/spine/index.js +10 -5
- package/dist/spine/index.js.map +1 -1
- package/dist/spine/kepler-reckoning.d.ts +56 -0
- package/dist/spine/kepler-reckoning.d.ts.map +1 -1
- package/dist/spine/kepler-reckoning.js +179 -3
- package/dist/spine/kepler-reckoning.js.map +1 -1
- package/dist/spine/kepler.d.ts +1 -1
- package/dist/spine/kepler.js +1 -1
- package/dist/spine/known-holds.d.ts +8 -0
- package/dist/spine/known-holds.d.ts.map +1 -0
- package/dist/spine/known-holds.js +78 -0
- package/dist/spine/known-holds.js.map +1 -0
- package/dist/spine/lagrange.d.ts +9 -34
- package/dist/spine/lagrange.d.ts.map +1 -1
- package/dist/spine/lagrange.js +4 -24
- package/dist/spine/lagrange.js.map +1 -1
- package/dist/spine/lifecycle.d.ts +21 -0
- package/dist/spine/lifecycle.d.ts.map +1 -1
- package/dist/spine/lifecycle.js.map +1 -1
- package/dist/spine/map-topic.d.ts +3 -3
- package/dist/spine/map-topic.js +3 -3
- package/dist/spine/never-reckonable.js +1 -1
- package/dist/spine/never-reckonable.js.map +1 -1
- package/dist/spine/orbit-patches.d.ts +6 -4
- package/dist/spine/orbit-patches.d.ts.map +1 -1
- package/dist/spine/orbit-patches.js +45 -10
- package/dist/spine/orbit-patches.js.map +1 -1
- package/dist/spine/orbital-solve.d.ts +1 -1
- package/dist/spine/orbital-solve.d.ts.map +1 -1
- package/dist/spine/orbital-solve.js +35 -0
- package/dist/spine/orbital-solve.js.map +1 -1
- package/dist/spine/powered-reckoning.d.ts +5 -0
- package/dist/spine/powered-reckoning.d.ts.map +1 -1
- package/dist/spine/powered-reckoning.js.map +1 -1
- package/dist/spine/processorEvaluator.d.ts +29 -0
- package/dist/spine/processorEvaluator.d.ts.map +1 -1
- package/dist/spine/processorEvaluator.js +94 -71
- package/dist/spine/processorEvaluator.js.map +1 -1
- package/dist/spine/processors.d.ts +55 -3
- package/dist/spine/processors.d.ts.map +1 -1
- package/dist/spine/processors.js +110 -0
- package/dist/spine/processors.js.map +1 -1
- package/dist/spine/rail-registry.d.ts +1 -1
- package/dist/spine/rail-registry.d.ts.map +1 -1
- package/dist/spine/reckoner-generation.d.ts +5 -0
- package/dist/spine/reckoner-generation.d.ts.map +1 -0
- package/dist/spine/reckoner-generation.js +10 -0
- package/dist/spine/reckoner-generation.js.map +1 -0
- package/dist/spine/reckoners.d.ts.map +1 -1
- package/dist/spine/reckoners.js +3 -0
- package/dist/spine/reckoners.js.map +1 -1
- package/dist/spine/replay-session-controller.d.ts +1 -1
- package/dist/spine/replay-session-controller.d.ts.map +1 -1
- package/dist/spine/replay-session-controller.js +4 -6
- package/dist/spine/replay-session-controller.js.map +1 -1
- package/dist/spine/resolve-tracked.d.ts +20 -2
- package/dist/spine/resolve-tracked.d.ts.map +1 -1
- package/dist/spine/resolve-tracked.js +32 -2
- package/dist/spine/resolve-tracked.js.map +1 -1
- package/dist/spine/send-status.d.ts +2 -0
- package/dist/spine/send-status.d.ts.map +1 -1
- package/dist/spine/send-status.js.map +1 -1
- package/dist/spine/settings-registry.d.ts +7 -0
- package/dist/spine/settings-registry.d.ts.map +1 -1
- package/dist/spine/settings-registry.js.map +1 -1
- package/dist/spine/slot-ids.d.ts +1 -1
- package/dist/spine/slot-ids.d.ts.map +1 -1
- package/dist/spine/slot-ids.js +3 -0
- package/dist/spine/slot-ids.js.map +1 -1
- package/dist/spine/space-center-state.d.ts +17 -9
- package/dist/spine/space-center-state.d.ts.map +1 -1
- package/dist/spine/space-center-state.js +14 -15
- package/dist/spine/space-center-state.js.map +1 -1
- package/dist/spine/stage-countdown-store.d.ts +38 -0
- package/dist/spine/stage-countdown-store.d.ts.map +1 -0
- package/dist/spine/stage-countdown-store.js +53 -0
- package/dist/spine/stage-countdown-store.js.map +1 -0
- package/dist/spine/stream-status.d.ts +3 -3
- package/dist/spine/stream-status.js +3 -3
- package/dist/spine/subscribe-read.d.ts +1 -1
- package/dist/spine/subscribe-read.js +2 -2
- package/dist/spine/system-state.d.ts +13 -13
- package/dist/spine/system-state.d.ts.map +1 -1
- package/dist/spine/system-state.js +18 -18
- package/dist/spine/system-state.js.map +1 -1
- package/dist/spine/timeline-store.d.ts +205 -112
- package/dist/spine/timeline-store.d.ts.map +1 -1
- package/dist/spine/timeline-store.js +537 -210
- package/dist/spine/timeline-store.js.map +1 -1
- package/dist/spine/uplink-clients.d.ts +31 -15
- package/dist/spine/uplink-clients.d.ts.map +1 -1
- package/dist/spine/uplink-clients.js +8 -4
- package/dist/spine/uplink-clients.js.map +1 -1
- package/dist/spine/uplink-delays.d.ts +31 -0
- package/dist/spine/uplink-delays.d.ts.map +1 -0
- package/dist/spine/uplink-delays.js +46 -0
- package/dist/spine/uplink-delays.js.map +1 -0
- package/dist/spine/uplink-health.d.ts +94 -10
- package/dist/spine/uplink-health.d.ts.map +1 -1
- package/dist/spine/uplink-health.js +17 -16
- package/dist/spine/uplink-health.js.map +1 -1
- package/dist/spine/use-action-input.d.ts.map +1 -1
- package/dist/spine/use-action-input.js +14 -9
- package/dist/spine/use-action-input.js.map +1 -1
- package/dist/spine/use-body-states.d.ts.map +1 -1
- package/dist/spine/use-body-states.js +3 -3
- package/dist/spine/use-body-states.js.map +1 -1
- package/dist/spine/use-command.d.ts +94 -31
- package/dist/spine/use-command.d.ts.map +1 -1
- package/dist/spine/use-command.js +360 -196
- package/dist/spine/use-command.js.map +1 -1
- package/dist/spine/use-last-known-path.d.ts +36 -0
- package/dist/spine/use-last-known-path.d.ts.map +1 -0
- package/dist/spine/use-last-known-path.js +46 -0
- package/dist/spine/use-last-known-path.js.map +1 -0
- package/dist/spine/use-observed-vantage.d.ts +13 -0
- package/dist/spine/use-observed-vantage.d.ts.map +1 -0
- package/dist/spine/use-observed-vantage.js +20 -0
- package/dist/spine/use-observed-vantage.js.map +1 -0
- package/dist/spine/use-orbit-trajectory.d.ts +1 -1
- package/dist/spine/use-orbit-trajectory.d.ts.map +1 -1
- package/dist/spine/use-orbit-trajectory.js +17 -3
- package/dist/spine/use-orbit-trajectory.js.map +1 -1
- package/dist/spine/use-stream-connected.d.ts +8 -0
- package/dist/spine/use-stream-connected.d.ts.map +1 -0
- package/dist/spine/use-stream-connected.js +16 -0
- package/dist/spine/use-stream-connected.js.map +1 -0
- package/dist/spine/use-stream-event.d.ts +6 -1
- package/dist/spine/use-stream-event.d.ts.map +1 -1
- package/dist/spine/use-stream-event.js +5 -1
- package/dist/spine/use-stream-event.js.map +1 -1
- package/dist/spine/use-stream.d.ts +5 -2
- package/dist/spine/use-stream.d.ts.map +1 -1
- package/dist/spine/use-stream.js +7 -4
- package/dist/spine/use-stream.js.map +1 -1
- package/dist/spine/use-telemetry.d.ts +5 -1
- package/dist/spine/use-telemetry.d.ts.map +1 -1
- package/dist/spine/use-telemetry.js.map +1 -1
- package/dist/spine/use-topic-clock.d.ts +54 -0
- package/dist/spine/use-topic-clock.d.ts.map +1 -0
- package/dist/spine/use-topic-clock.js +137 -0
- package/dist/spine/use-topic-clock.js.map +1 -0
- package/dist/spine/use-transmissions.d.ts.map +1 -1
- package/dist/spine/use-transmissions.js +9 -4
- package/dist/spine/use-transmissions.js.map +1 -1
- package/dist/spine/vantage.d.ts +6 -0
- package/dist/spine/vantage.d.ts.map +1 -1
- package/dist/spine/vantage.js +6 -0
- package/dist/spine/vantage.js.map +1 -1
- package/dist/spine/view-clock.d.ts +23 -3
- package/dist/spine/view-clock.d.ts.map +1 -1
- package/dist/spine/view-clock.js +80 -2
- package/dist/spine/view-clock.js.map +1 -1
- package/dist/testing/fake-command.d.ts +48 -0
- package/dist/testing/fake-command.d.ts.map +1 -0
- package/dist/testing/fake-command.js +63 -0
- package/dist/testing/fake-command.js.map +1 -0
- package/dist/testing/index.d.ts +5 -1
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +6 -0
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/install-dom-stubs.d.ts +2 -5
- package/dist/testing/install-dom-stubs.d.ts.map +1 -1
- package/dist/testing/install-dom-stubs.js +2 -34
- package/dist/testing/install-dom-stubs.js.map +1 -1
- package/dist/testing/install-real-test-host.d.ts.map +1 -1
- package/dist/testing/install-real-test-host.js +7 -6
- package/dist/testing/install-real-test-host.js.map +1 -1
- package/dist/testing/recorded-uplink-banners.d.ts +49 -0
- package/dist/testing/recorded-uplink-banners.d.ts.map +1 -0
- package/dist/testing/recorded-uplink-banners.js +45 -0
- package/dist/testing/recorded-uplink-banners.js.map +1 -0
- package/dist/testing/stream-fixture.js +3 -3
- package/dist/testing/stream-fixture.js.map +1 -1
- package/dist/testing/stub-transport.d.ts +6 -0
- package/dist/testing/stub-transport.d.ts.map +1 -1
- package/dist/testing/stub-transport.js +3 -0
- package/dist/testing/stub-transport.js.map +1 -1
- package/dist/timeline.d.ts +2 -98
- package/dist/timeline.d.ts.map +1 -1
- package/dist/topics.d.ts +61 -20
- package/dist/topics.d.ts.map +1 -1
- package/dist/topics.js +14 -10
- package/dist/topics.js.map +1 -1
- package/dist/unit-system/index.d.ts +1 -1
- package/dist/unit-system/index.d.ts.map +1 -1
- package/dist/unit-system/index.js +1 -1
- package/dist/unit-system/index.js.map +1 -1
- package/dist/unit-system/value.d.ts +26 -5
- package/dist/unit-system/value.d.ts.map +1 -1
- package/dist/unit-system/value.js +41 -21
- package/dist/unit-system/value.js.map +1 -1
- package/dist/units.d.ts.map +1 -1
- package/dist/units.js +2 -1
- package/dist/units.js.map +1 -1
- package/dist/uplink-load.d.ts +3 -2
- package/dist/uplink-load.d.ts.map +1 -1
- package/dist/uplink-load.js +9 -6
- package/dist/uplink-load.js.map +1 -1
- package/dist/wrap-units.d.ts.map +1 -1
- package/dist/wrap-units.js +3 -2
- package/dist/wrap-units.js.map +1 -1
- package/package.json +1 -1
- package/src/__generated__/command-map.ts +215 -19
- package/src/__generated__/contract.ts +2902 -284
- package/src/__generated__/delay-roles.ts +10 -0
- package/src/__generated__/frames.ts +20 -4
- package/src/__generated__/reckonability.ts +3 -1
- package/src/__generated__/sample-kinds.ts +15 -1
- package/src/__generated__/topic-map.ts +50 -9
- package/src/__generated__/units.json +894 -61
- package/src/__generated__/units.ts +885 -43
- package/src/api/command-rejection.ts +2 -2
- package/src/api/contribution-slots.ts +105 -0
- package/src/api/framework-reads.ts +6 -1
- package/src/api/host.ts +14 -6
- package/src/api/index.ts +113 -55
- package/src/api/part-panels.ts +221 -0
- package/src/api/settings/store.ts +7 -2
- package/src/api/slots.ts +116 -33
- package/src/api/station-brokers.ts +21 -14
- package/src/api/transport.ts +13 -0
- package/src/api/types.ts +367 -52
- package/src/api/uplink-banner.ts +128 -0
- package/src/api/uplink-handles.ts +4 -1
- package/src/command-delay.ts +144 -11
- package/src/command-value.ts +181 -0
- package/src/compat-versions.ts +2 -2
- package/src/contract-tags.ts +67 -5
- package/src/data-rate.ts +178 -0
- package/src/delay-roles.ts +12 -2
- package/src/dock-markers.ts +182 -0
- package/src/envelope.ts +4 -0
- package/src/flight/types.ts +31 -2
- package/src/frames/index.ts +0 -4
- package/src/go-no-go-countdown.ts +116 -0
- package/src/index.ts +63 -3
- package/src/ksp-enum-names.ts +44 -0
- package/src/media/__fixtures__/hull-after-revert.json +1506 -0
- package/src/media/delayed-playout-buffer.ts +41 -9
- package/src/media/encoded-frame-delay.ts +29 -17
- package/src/media/frame-delay.ts +328 -22
- package/src/media/frame-stamp-timeline.ts +270 -0
- package/src/media/index.ts +5 -0
- package/src/media/worker/delay-worker-client.ts +104 -6
- package/src/media/worker/delay-worker.ts +228 -27
- package/src/media/worker/frame-delay-report.ts +141 -0
- package/src/media/worker/lead-limit-report.ts +27 -0
- package/src/media/worker/presentation-pacer.ts +216 -9
- package/src/media/worker/worker-delay-clock.ts +9 -6
- package/src/rail-tags.ts +8 -0
- package/src/resource-transfer.ts +352 -0
- package/src/runtime-topic-registry.ts +23 -2
- package/src/sample-step-tracker.ts +38 -0
- package/src/sha256-fallback.ts +69 -0
- package/src/spine/__fixtures__/crash/crash-eva.json +224 -0
- package/src/spine/__fixtures__/crash/crash-separated-pod-pod-root.json +144 -0
- package/src/spine/__fixtures__/crash/crash-separated-pod.json +111 -0
- package/src/spine/arrival-deadline.ts +15 -0
- package/src/spine/bound-command.ts +243 -0
- package/src/spine/capability-lock.ts +64 -5
- package/src/spine/celestial-facts.ts +4 -2
- package/src/spine/centre-commands.ts +290 -0
- package/src/spine/client-reading.ts +1 -1
- package/src/spine/client-timeline.ts +98 -3
- package/src/spine/client.ts +545 -32
- package/src/spine/command-gate.ts +43 -3
- package/src/spine/command-outcomes.ts +242 -0
- package/src/spine/connectivity-history.ts +5 -3
- package/src/spine/context.tsx +119 -48
- package/src/spine/core-reckoners.ts +30 -10
- package/src/spine/delay-authority-context.ts +9 -0
- package/src/spine/delay-authority.ts +227 -3
- package/src/spine/delta-v-budget.ts +2 -2
- package/src/spine/dv-stage-resources.ts +55 -43
- package/src/spine/index.ts +10 -5
- package/src/spine/kepler-reckoning.ts +245 -3
- package/src/spine/kepler.ts +1 -1
- package/src/spine/known-holds.ts +96 -0
- package/src/spine/lagrange.ts +10 -46
- package/src/spine/lifecycle.ts +22 -0
- package/src/spine/map-topic.ts +3 -3
- package/src/spine/never-reckonable.ts +1 -1
- package/src/spine/orbit-patches.ts +54 -10
- package/src/spine/orbital-solve.ts +53 -1
- package/src/spine/powered-reckoning.ts +5 -1
- package/src/spine/processorEvaluator.ts +106 -72
- package/src/spine/processors.ts +143 -3
- package/src/spine/rail-registry.ts +1 -1
- package/src/spine/reckoner-generation.ts +11 -0
- package/src/spine/reckoners.ts +3 -0
- package/src/spine/replay-session-controller.ts +4 -6
- package/src/spine/resolve-tracked.ts +50 -1
- package/src/spine/send-status.ts +2 -0
- package/src/spine/settings-registry.ts +7 -0
- package/src/spine/slot-ids.ts +3 -0
- package/src/spine/space-center-state.ts +17 -20
- package/src/spine/stage-countdown-store.ts +76 -0
- package/src/spine/stream-status.ts +4 -4
- package/src/spine/subscribe-read.ts +2 -2
- package/src/spine/system-state.ts +19 -21
- package/src/spine/timeline-store.ts +666 -237
- package/src/spine/uplink-clients.ts +43 -21
- package/src/spine/uplink-delays.ts +57 -0
- package/src/spine/uplink-health.ts +43 -24
- package/src/spine/use-action-input.ts +13 -9
- package/src/spine/use-body-states.ts +5 -4
- package/src/spine/use-command.ts +554 -238
- package/src/spine/use-last-known-path.ts +75 -0
- package/src/spine/use-observed-vantage.ts +24 -0
- package/src/spine/use-orbit-trajectory.ts +22 -3
- package/src/spine/use-stream-connected.ts +23 -0
- package/src/spine/use-stream-event.ts +6 -2
- package/src/spine/use-stream.ts +7 -4
- package/src/spine/use-telemetry.ts +5 -1
- package/src/spine/use-topic-clock.ts +196 -0
- package/src/spine/use-transmissions.ts +37 -18
- package/src/spine/vantage.ts +7 -0
- package/src/spine/view-clock.ts +89 -3
- package/src/testing/fake-command.ts +109 -0
- package/src/testing/index.ts +12 -1
- package/src/testing/install-dom-stubs.ts +2 -38
- package/src/testing/install-real-test-host.ts +10 -6
- package/src/testing/recorded-uplink-banners.ts +71 -0
- package/src/testing/stream-fixture.tsx +3 -3
- package/src/testing/stub-transport.ts +9 -0
- package/src/timeline.ts +2 -103
- package/src/topics.ts +80 -18
- package/src/unit-system/index.ts +2 -0
- package/src/unit-system/value.ts +61 -21
- package/src/units.ts +2 -1
- package/src/uplink-load.ts +9 -8
- package/src/wrap-units.ts +3 -9
- package/dist/spine/contributed-channels.d.ts +0 -56
- package/dist/spine/contributed-channels.d.ts.map +0 -1
- package/dist/spine/contributed-channels.js +0 -108
- package/dist/spine/contributed-channels.js.map +0 -1
- package/src/spine/contributed-channels.ts +0 -134
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @ksp-gonogo/sitrep-sdk
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The TypeScript SDK for the Gonogo telemetry mod, whose engineering codename is Sitrep. It is the package an Uplink's client imports to register widgets, read Topics and send commands: `defineUplinkClient`, `registerComponent`, `useTelemetry`, `useCommand`, the generated types of the wire contract and the unit model. The command line is `@ksp-gonogo/uplink-tools`, and the components are `@ksp-gonogo/ui-kit`.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
**Writing an Uplink? Start with the [Uplink developer docs](https://ksp-gonogo.github.io/uplink-dev-docs/).** The [guide](https://ksp-gonogo.github.io/uplink-dev-docs/guide/) takes you from an empty directory to an Uplink a player can install, and the [reference](https://ksp-gonogo.github.io/uplink-dev-docs/reference/) documents every export of this package. This page does not repeat either.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
8
|
|
|
9
9
|
Until the first release, `latest` is a placeholder, so install the release candidate with `@rc`.
|
|
10
10
|
|
|
@@ -12,110 +12,65 @@ Until the first release, `latest` is a placeholder, so install the release candi
|
|
|
12
12
|
npm install @ksp-gonogo/sitrep-sdk@rc
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
and the unit model; the command line is `@ksp-gonogo/uplink-tools`), but the README below is written for
|
|
19
|
-
a maintainer of this repo: it covers the codegen, the drift gate and the
|
|
20
|
-
hand-owned seams, not how to build anything with the package. Not every subpath
|
|
21
|
-
here is an author surface; the docs site names the ones that are.
|
|
15
|
+
An Uplink installs this package with `@ksp-gonogo/ui-kit` and `@ksp-gonogo/uplink-tools` under the same tag, at one version, because the packages pin each other exactly. `uplink-tools new` writes that set for you, and [Building against a release candidate](https://ksp-gonogo.github.io/uplink-dev-docs/guide/release-candidate) covers adding it by hand. React 18 and styled-components 6 are peer dependencies, and `@testing-library/react` is a peer for `/testing`.
|
|
16
|
+
|
|
17
|
+
## Entry points
|
|
22
18
|
|
|
23
|
-
|
|
19
|
+
| Entry | What it is |
|
|
20
|
+
|---|---|
|
|
21
|
+
| `@ksp-gonogo/sitrep-sdk` | the authoring surface: registration, the read and send hooks, the wire types, the unit model |
|
|
22
|
+
| `@ksp-gonogo/sitrep-sdk/frames` | reference-frame arithmetic |
|
|
23
|
+
| `@ksp-gonogo/sitrep-sdk/media` | delayed media: playout buffers that follow the operator's view of time |
|
|
24
|
+
| `@ksp-gonogo/sitrep-sdk/testing` | rendering and stream fixtures for a client's tests |
|
|
25
|
+
| `@ksp-gonogo/sitrep-sdk/uplink-manifest` | the types of `uplink.json` and of the manifest a client publishes |
|
|
26
|
+
| `@ksp-gonogo/sitrep-sdk/uplink-externals` | the specifiers a client bundle leaves for the app to resolve at load |
|
|
27
|
+
| `@ksp-gonogo/sitrep-sdk/tsconfig.base.json` | the TypeScript baseline an Uplink extends |
|
|
28
|
+
| `@ksp-gonogo/sitrep-sdk/biome` | a Biome config, below |
|
|
24
29
|
|
|
25
|
-
`
|
|
26
|
-
[Reinforced.Typings](https://github.com/reinforced/Reinforced.Typings) from
|
|
27
|
-
the C# source of truth in `mod/Sitrep.Contract/`. The file carries its own
|
|
28
|
-
"generated, changes will be lost" header; treat that as load-bearing, not
|
|
29
|
-
boilerplate. If a type needs to change, change the C# class (or
|
|
30
|
-
`mod/Sitrep.Contract/RtConfig.cs` for export configuration) and regenerate;
|
|
31
|
-
never patch the emitted `.ts` directly.
|
|
30
|
+
`/spine`, `/registry` and `/uplink-load` are exported for the app and the tools and are not an author's surface. The reference names every export that is.
|
|
32
31
|
|
|
33
|
-
|
|
32
|
+
## TypeScript baseline
|
|
34
33
|
|
|
35
|
-
```
|
|
36
|
-
|
|
34
|
+
```json
|
|
35
|
+
{ "extends": "@ksp-gonogo/sitrep-sdk/tsconfig.base.json" }
|
|
37
36
|
```
|
|
38
37
|
|
|
39
|
-
|
|
40
|
-
the `rtcli` tool against the compiled assembly to rewrite
|
|
41
|
-
`src/__generated__/contract.ts`.
|
|
38
|
+
It sets `strict`, the `bundler` module resolution, `react-jsx` and `skipLibCheck`, which is what the scaffold's `tsconfig.json` extends.
|
|
42
39
|
|
|
43
|
-
|
|
44
|
-
hand-owned wrapper beside it that is the surface you actually import:
|
|
40
|
+
## Lint config
|
|
45
41
|
|
|
46
|
-
|
|
47
|
-
| --- | --- | --- |
|
|
48
|
-
| `topic-map.ts` | `src/topics.ts` | which Topics exist, and what each one's payload is |
|
|
49
|
-
| `command-map.ts` | `src/commands.ts` | which commands exist, what each one takes, and what a dispatch resolves with |
|
|
50
|
-
| `units.ts` / `units.json` | `src/units.ts` | which field carries which unit |
|
|
51
|
-
| `control-channels.ts` | `src/control-channels.ts` | which read field pairs with which write command |
|
|
42
|
+
The package ships a Biome config that reports a reach past the supported API as a lint error, so the mistake shows in the editor and not at runtime:
|
|
52
43
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
side.
|
|
44
|
+
```json
|
|
45
|
+
{ "extends": ["@ksp-gonogo/sitrep-sdk/biome"] }
|
|
46
|
+
```
|
|
57
47
|
|
|
58
|
-
|
|
48
|
+
`extends` takes an array and merges from the first entry to the last, so your own config wins and you can combine this one with others. The file is named `biome.shared.json` and not `biome.json` because Biome treats a nested `biome.json` as a project config of its own.
|
|
59
49
|
|
|
60
|
-
|
|
61
|
-
pnpm codegen:check
|
|
62
|
-
```
|
|
50
|
+
## Working on this package
|
|
63
51
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
does, since RT export order is explicit there rather than left to
|
|
72
|
-
`GetProperties()` reflection order.
|
|
73
|
-
|
|
74
|
-
This is the check that should run in CI once dotnet is wired into the CI
|
|
75
|
-
image (tracked separately): for now, run it locally before committing any
|
|
76
|
-
change under `mod/Sitrep.Contract/`.
|
|
77
|
-
|
|
78
|
-
## The hand-owned seams: `envelope.ts` and `client.ts`
|
|
79
|
-
|
|
80
|
-
`src/envelope.ts` defines `ServerMessage` and `ClientMessage` as discriminated
|
|
81
|
-
unions over the generated interfaces (`StreamData<unknown> | EventMsg | ...`).
|
|
82
|
-
Reinforced.Typings emits one interface per C# class, it has no way to know
|
|
83
|
-
which subset of those interfaces the transport layer treats as a "server
|
|
84
|
-
message" versus a "client message," so that grouping is authored by hand in
|
|
85
|
-
this file instead of generated. `envelope.ts` is covered by tests
|
|
86
|
-
(`envelope.test.ts`) and is the only source file in this package that isn't
|
|
87
|
-
derived from `__generated__/contract.ts`; everything else (`client.ts`,
|
|
88
|
-
`index.ts`) is built on top of the generated types plus this one seam.
|
|
89
|
-
|
|
90
|
-
`src/client.ts` has a second, smaller hand-owned seam: `SERVER_TYPE_TAGS`, the
|
|
91
|
-
runtime lookup `parseServerMessage` uses to validate an incoming envelope's
|
|
92
|
-
`type` tag against the `ServerMessage` union. It's a second hand-owned copy of
|
|
93
|
-
the union's membership (a `Set` can't be derived from a type at runtime), but
|
|
94
|
-
it's compile-time-guarded: `SERVER_TYPE_TAGS` is declared `satisfies
|
|
95
|
-
Record<ServerMessage["type"], true>`, so adding a variant to `ServerMessage`
|
|
96
|
-
without adding its tag to `SERVER_TYPE_TAGS` fails `tsc`.
|
|
97
|
-
|
|
98
|
-
## Usage
|
|
99
|
-
|
|
100
|
-
```ts
|
|
101
|
-
import { parseServerMessage, type ServerMessage } from "@ksp-gonogo/sitrep-sdk";
|
|
102
|
-
|
|
103
|
-
const msg: ServerMessage = parseServerMessage(rawJson);
|
|
52
|
+
This section is for a maintainer of the Gonogo repository.
|
|
53
|
+
|
|
54
|
+
`src/__generated__/contract.ts` is written by [Reinforced.Typings](https://github.com/reinforced/Reinforced.Typings) from the C# in `mod/Sitrep.Contract/`, and carries a header saying so. Change the C# class, or `mod/Sitrep.Contract/RtConfig.cs` for what is exported, and regenerate from the repository root:
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
pnpm codegen # rewrites src/__generated__/
|
|
58
|
+
pnpm codegen:check # regenerates, then fails if git sees a difference
|
|
104
59
|
```
|
|
105
60
|
|
|
106
|
-
|
|
61
|
+
`codegen` also writes the topic, command, unit and control-channel maps, each with a hand-owned wrapper beside it that is the surface you import:
|
|
62
|
+
|
|
63
|
+
| Generated | Wrapper | What it answers |
|
|
64
|
+
|---|---|---|
|
|
65
|
+
| `topic-map.ts` | `src/topics.ts` | which Topics exist, and what each one's payload is |
|
|
66
|
+
| `command-map.ts` | `src/commands.ts` | which commands exist, what each one takes, and what a dispatch resolves with |
|
|
67
|
+
| `units.ts` and `units.json` | `src/units.ts` | which field carries which unit |
|
|
68
|
+
| `control-channels.ts` | `src/control-channels.ts` | which read field pairs with which write command |
|
|
107
69
|
|
|
108
|
-
|
|
109
|
-
you have reached past the supported API instead of a runtime surprise later:
|
|
70
|
+
`src/envelope.ts` groups the generated message interfaces into the `ServerMessage` and `ClientMessage` unions, which a generator cannot know. `SERVER_TYPE_TAGS` in `src/client.ts` holds the same membership at runtime, and `satisfies Record<ServerMessage["type"], true>` makes `tsc` fail when a variant is added to the union without it.
|
|
110
71
|
|
|
111
|
-
|
|
112
|
-
{ "extends": ["@ksp-gonogo/sitrep-sdk/biome"] }
|
|
113
|
-
```
|
|
72
|
+
A change to the types this package publishes is declared in `extension-api.ledger.json`, which a test holds to the computed surface.
|
|
114
73
|
|
|
115
|
-
|
|
116
|
-
winning last, so you can combine this with other shared configs and override any
|
|
117
|
-
rule locally.
|
|
74
|
+
## Licence
|
|
118
75
|
|
|
119
|
-
|
|
120
|
-
auto-discovers a nested `biome.json` as a *project* config, and a shipped file
|
|
121
|
-
must stand alone rather than inherit from the repo that publishes it.
|
|
76
|
+
MIT
|