@ksp-gonogo/sitrep-sdk 1.0.0-rc.45 → 1.0.0
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 +3062 -352
- 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 +12 -0
- package/dist/__generated__/delay-roles.js.map +1 -1
- package/dist/__generated__/error-codes.d.ts +11 -11
- package/dist/__generated__/error-codes.d.ts.map +1 -1
- package/dist/__generated__/error-codes.js +12 -12
- package/dist/__generated__/error-codes.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 +18 -2
- package/dist/__generated__/sample-kinds.d.ts.map +1 -1
- package/dist/__generated__/sample-kinds.js +18 -2
- package/dist/__generated__/sample-kinds.js.map +1 -1
- package/dist/__generated__/topic-map.d.ts +41 -17
- package/dist/__generated__/topic-map.d.ts.map +1 -1
- package/dist/__generated__/topic-map.js +16 -3
- package/dist/__generated__/topic-map.js.map +1 -1
- package/dist/__generated__/units.d.ts +247 -6
- package/dist/__generated__/units.d.ts.map +1 -1
- package/dist/__generated__/units.js +949 -76
- 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 +122 -21
- package/dist/api/contribution-slots.d.ts.map +1 -1
- package/dist/api/contribution-slots.js +4 -4
- package/dist/api/contribution-slots.js.map +1 -1
- package/dist/api/error-codes.d.ts +3 -2
- package/dist/api/error-codes.d.ts.map +1 -1
- package/dist/api/error-codes.js +3 -2
- package/dist/api/error-codes.js.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 +70 -60
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +66 -54
- package/dist/api/index.js.map +1 -1
- package/dist/api/logger-contract.d.ts +2 -1
- package/dist/api/logger-contract.d.ts.map +1 -1
- package/dist/api/logger.d.ts +6 -3
- package/dist/api/logger.d.ts.map +1 -1
- package/dist/api/logger.js +6 -3
- package/dist/api/logger.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/plot-layers.d.ts +1 -1
- package/dist/api/plot-layers.js +1 -1
- package/dist/api/registry.d.ts +4 -2
- package/dist/api/registry.d.ts.map +1 -1
- package/dist/api/registry.js +4 -2
- package/dist/api/registry.js.map +1 -1
- 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 +150 -70
- package/dist/api/slots.d.ts.map +1 -1
- package/dist/api/station-brokers.d.ts +24 -15
- package/dist/api/station-brokers.d.ts.map +1 -1
- package/dist/api/station-brokers.js +24 -15
- package/dist/api/station-brokers.js.map +1 -1
- package/dist/api/tiny-size.d.ts +2 -1
- package/dist/api/tiny-size.d.ts.map +1 -1
- package/dist/api/tiny-size.js +2 -1
- package/dist/api/tiny-size.js.map +1 -1
- package/dist/api/tone.d.ts +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 +356 -68
- 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/binary-frame.d.ts +4 -4
- package/dist/binary-frame.js +2 -2
- package/dist/combine-readings.d.ts +4 -3
- package/dist/combine-readings.d.ts.map +1 -1
- package/dist/combine-readings.js +4 -3
- package/dist/combine-readings.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 +3 -3
- package/dist/compat-versions.js.map +1 -1
- package/dist/contract-enum-names.d.ts +2 -2
- package/dist/contract-enum-names.js +2 -2
- 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 +14 -1
- package/dist/delay-roles.d.ts.map +1 -1
- package/dist/delay-roles.js +5 -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 +14 -4
- package/dist/index.js.map +1 -1
- package/dist/ksp-enum-names.d.ts +35 -4
- package/dist/ksp-enum-names.d.ts.map +1 -1
- package/dist/ksp-enum-names.js +31 -4
- package/dist/ksp-enum-names.js.map +1 -1
- package/dist/locked.d.ts +1 -1
- package/dist/locked.js +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/radio-support.d.ts +8 -7
- package/dist/media/radio-support.d.ts.map +1 -1
- package/dist/media/radio-support.js +5 -6
- package/dist/media/radio-support.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/perf/PerfBudget.d.ts +2 -2
- package/dist/perf/PerfBudget.js +2 -2
- 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/raw-field-split.d.ts +1 -1
- package/dist/raw-field-split.js +1 -1
- package/dist/reading.d.ts +6 -6
- package/dist/reading.js +5 -5
- package/dist/reads-index.json +446 -37
- 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 +6 -1
- 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/catalog-fallback.d.ts +28 -0
- package/dist/spine/catalog-fallback.d.ts.map +1 -0
- package/dist/spine/catalog-fallback.js +120 -0
- package/dist/spine/catalog-fallback.js.map +1 -0
- 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 +84 -0
- package/dist/spine/centre-commands.d.ts.map +1 -0
- package/dist/spine/centre-commands.js +236 -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 +48 -1
- package/dist/spine/client-timeline.d.ts.map +1 -1
- package/dist/spine/client-timeline.js +151 -3
- package/dist/spine/client-timeline.js.map +1 -1
- package/dist/spine/client.d.ts +154 -4
- package/dist/spine/client.d.ts.map +1 -1
- package/dist/spine/client.js +530 -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 +36 -3
- package/dist/spine/command-gate.js.map +1 -1
- package/dist/spine/command-outcomes.d.ts +60 -0
- package/dist/spine/command-outcomes.d.ts.map +1 -0
- package/dist/spine/command-outcomes.js +256 -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 +62 -11
- package/dist/spine/context.d.ts.map +1 -1
- package/dist/spine/context.js +125 -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 +16 -39
- 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/delay-estimate.d.ts +41 -0
- package/dist/spine/delay-estimate.d.ts.map +1 -0
- package/dist/spine/delay-estimate.js +70 -0
- package/dist/spine/delay-estimate.js.map +1 -0
- 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 +7 -1
- package/dist/spine/index.d.ts.map +1 -1
- package/dist/spine/index.js +11 -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/lock-scope.d.ts +2 -2
- 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 +56 -4
- 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 +6 -3
- 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 +304 -113
- package/dist/spine/timeline-store.d.ts.map +1 -1
- package/dist/spine/timeline-store.js +921 -223
- package/dist/spine/timeline-store.js.map +1 -1
- package/dist/spine/uplink-clients.d.ts +32 -16
- 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 +109 -14
- package/dist/spine/uplink-health.d.ts.map +1 -1
- package/dist/spine/uplink-health.js +21 -17
- 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 +409 -197
- 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-act-gate-stretch.d.ts +1 -2
- package/dist/testing/install-act-gate-stretch.d.ts.map +1 -1
- package/dist/testing/install-act-gate-stretch.js +1 -2
- package/dist/testing/install-act-gate-stretch.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/render.d.ts +16 -3
- package/dist/testing/render.d.ts.map +1 -1
- package/dist/testing/render.js +16 -3
- package/dist/testing/render.js.map +1 -1
- 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 +68 -28
- package/dist/topics.d.ts.map +1 -1
- package/dist/topics.js +21 -18
- 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-externals.d.ts +17 -7
- package/dist/uplink-externals.d.ts.map +1 -1
- package/dist/uplink-externals.js +17 -7
- package/dist/uplink-externals.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/uplink-manifest.d.ts +8 -3
- package/dist/uplink-manifest.d.ts.map +1 -1
- package/dist/uplink-manifest.js +5 -1
- package/dist/uplink-manifest.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 +3102 -330
- package/src/__generated__/delay-roles.ts +12 -0
- package/src/__generated__/error-codes.ts +13 -13
- package/src/__generated__/frames.ts +20 -4
- package/src/__generated__/reckonability.ts +3 -1
- package/src/__generated__/sample-kinds.ts +18 -2
- package/src/__generated__/topic-map.ts +68 -19
- package/src/__generated__/units.json +958 -94
- package/src/__generated__/units.ts +949 -76
- package/src/api/command-rejection.ts +2 -2
- package/src/api/contribution-slots.ts +128 -25
- package/src/api/error-codes.ts +3 -2
- package/src/api/framework-reads.ts +6 -1
- package/src/api/host.ts +14 -6
- package/src/api/index.ts +127 -67
- package/src/api/logger-contract.ts +2 -1
- package/src/api/logger.ts +6 -3
- package/src/api/part-panels.ts +221 -0
- package/src/api/plot-layers.ts +1 -1
- package/src/api/registry.ts +4 -2
- package/src/api/settings/store.ts +7 -2
- package/src/api/slots.ts +153 -70
- package/src/api/station-brokers.ts +24 -15
- package/src/api/tiny-size.ts +2 -1
- package/src/api/tone.ts +1 -1
- package/src/api/transport.ts +13 -0
- package/src/api/types.ts +388 -68
- package/src/api/uplink-banner.ts +128 -0
- package/src/api/uplink-handles.ts +4 -1
- package/src/binary-frame.ts +4 -4
- package/src/combine-readings.ts +4 -3
- package/src/command-delay.ts +144 -11
- package/src/command-value.ts +181 -0
- package/src/compat-versions.ts +3 -3
- package/src/contract-enum-names.ts +2 -2
- package/src/contract-tags.ts +67 -5
- package/src/data-rate.ts +178 -0
- package/src/delay-roles.ts +19 -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 +64 -4
- package/src/ksp-enum-names.ts +48 -3
- package/src/locked.ts +1 -1
- 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/radio-support.ts +8 -7
- 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/perf/PerfBudget.ts +2 -2
- package/src/rail-tags.ts +8 -0
- package/src/raw-field-split.ts +1 -1
- package/src/reading.ts +6 -6
- 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/__fixtures__/switch/back-to-craft.jsonl +101 -0
- package/src/spine/__fixtures__/switch/late-sent-frame.jsonl +16 -0
- package/src/spine/__fixtures__/switch/linked-craft.jsonl +63 -0
- package/src/spine/__fixtures__/switch/station-trim.jsonl +229 -0
- package/src/spine/__fixtures__/switch/switch-with-scene.jsonl +110 -0
- package/src/spine/__fixtures__/switch/unlinked-craft.jsonl +46 -0
- package/src/spine/arrival-deadline.ts +15 -0
- package/src/spine/bound-command.ts +243 -0
- package/src/spine/capability-lock.ts +65 -6
- package/src/spine/catalog-fallback.ts +152 -0
- package/src/spine/celestial-facts.ts +4 -2
- package/src/spine/centre-commands.ts +314 -0
- package/src/spine/client-reading.ts +1 -1
- package/src/spine/client-timeline.ts +165 -4
- package/src/spine/client.ts +615 -32
- package/src/spine/command-gate.ts +44 -3
- package/src/spine/command-outcomes.ts +303 -0
- package/src/spine/connectivity-history.ts +5 -3
- package/src/spine/context.tsx +154 -50
- package/src/spine/core-reckoners.ts +31 -50
- package/src/spine/delay-authority-context.ts +9 -0
- package/src/spine/delay-authority.ts +227 -3
- package/src/spine/delay-estimate.ts +88 -0
- package/src/spine/delta-v-budget.ts +2 -2
- package/src/spine/dv-stage-resources.ts +55 -43
- package/src/spine/index.ts +11 -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/lock-scope.ts +2 -2
- 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 +144 -4
- 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 +6 -3
- 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 +1119 -247
- package/src/spine/uplink-clients.ts +44 -22
- package/src/spine/uplink-delays.ts +57 -0
- package/src/spine/uplink-health.ts +59 -27
- package/src/spine/use-action-input.ts +13 -9
- package/src/spine/use-body-states.ts +5 -4
- package/src/spine/use-command.ts +620 -239
- 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-act-gate-stretch.ts +1 -2
- 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/render.tsx +16 -3
- 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 +87 -26
- 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-externals.ts +17 -7
- package/src/uplink-load.ts +9 -8
- package/src/uplink-manifest.ts +8 -3
- 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
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { useEffect, useReducer, useSyncExternalStore } from "react";
|
|
2
|
+
import {
|
|
3
|
+
stageCountdownNow,
|
|
4
|
+
stageCountdownStore,
|
|
5
|
+
} from "./spine/stage-countdown-store";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* How a countdown finished: the poll said go and the countdown ran out, or somebody aborted it.
|
|
9
|
+
*
|
|
10
|
+
* @category Mission control
|
|
11
|
+
*/
|
|
12
|
+
export type GoNoGoCountdownEnd = "go" | "aborted";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The countdown of a GO/NO-GO poll.
|
|
16
|
+
*
|
|
17
|
+
* @category Mission control
|
|
18
|
+
*/
|
|
19
|
+
export interface GoNoGoCountdown {
|
|
20
|
+
/** True while the countdown is running. */
|
|
21
|
+
running: boolean;
|
|
22
|
+
/** Seconds left until T-0, 0 once it has ended. */
|
|
23
|
+
remainingSeconds: number;
|
|
24
|
+
/** The whole length of the countdown, in seconds. */
|
|
25
|
+
lengthSeconds: number;
|
|
26
|
+
/** How it finished, or null while it is running. */
|
|
27
|
+
ended: GoNoGoCountdownEnd | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The countdown to the liftoff of the active craft from the launch pad.
|
|
32
|
+
*
|
|
33
|
+
* @category Mission control
|
|
34
|
+
*/
|
|
35
|
+
export interface LiftoffCountdown {
|
|
36
|
+
/** Seconds left until T-0, 0 from T-0 on. */
|
|
37
|
+
remainingSeconds: number;
|
|
38
|
+
/** The whole length of the countdown, in seconds. */
|
|
39
|
+
lengthSeconds: number;
|
|
40
|
+
/** True once the craft has lifted off, that is once the mission clock has started. */
|
|
41
|
+
liftedOff: boolean;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const TICK_MS = 100;
|
|
45
|
+
|
|
46
|
+
function useStageCountdownRecord() {
|
|
47
|
+
const record = useSyncExternalStore(
|
|
48
|
+
stageCountdownStore.subscribe,
|
|
49
|
+
stageCountdownStore.get,
|
|
50
|
+
);
|
|
51
|
+
const [, tick] = useReducer((n: number) => n + 1, 0);
|
|
52
|
+
const running = record !== null && record.ended === null;
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
if (!running) return;
|
|
55
|
+
const id = setInterval(tick, TICK_MS);
|
|
56
|
+
return () => clearInterval(id);
|
|
57
|
+
}, [running]);
|
|
58
|
+
return record;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function remainingOf(t0: number, ended: GoNoGoCountdownEnd | null): number {
|
|
62
|
+
return ended === null ? Math.max(0, t0 - stageCountdownNow()) : 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The countdown of the GO/NO-GO poll the command centre is running: whether it is
|
|
67
|
+
* running, how many seconds are left, how long it is, and how it ended ("go" or
|
|
68
|
+
* aborted). Useful for showing the operator how close the next stage is, or for
|
|
69
|
+
* preparing a view or a readout for the moment the countdown runs out. Used by
|
|
70
|
+
* {@link useLiftoffCountdown}.
|
|
71
|
+
*
|
|
72
|
+
* `null` until a countdown has started since the poll was last reset, and when no
|
|
73
|
+
* poll is running on this screen. Remaining seconds are measured on this screen's
|
|
74
|
+
* own clock, so they agree with the main screen's to within a frame.
|
|
75
|
+
*
|
|
76
|
+
* @category Mission control
|
|
77
|
+
*/
|
|
78
|
+
export function useGoNoGoCountdown(): GoNoGoCountdown | null {
|
|
79
|
+
// gonogo:reads none
|
|
80
|
+
const record = useStageCountdownRecord();
|
|
81
|
+
if (record === null) return null;
|
|
82
|
+
return {
|
|
83
|
+
running: record.ended === null,
|
|
84
|
+
remainingSeconds: remainingOf(record.t0, record.ended),
|
|
85
|
+
lengthSeconds: record.lengthSeconds,
|
|
86
|
+
ended: record.ended,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The countdown to the liftoff of the active craft from the launch pad: how many
|
|
92
|
+
* seconds are left, how long the countdown is, and whether the craft has lifted
|
|
93
|
+
* off yet. Useful for preparing a view or a readout for the moment of liftoff
|
|
94
|
+
* without checking the poll, the craft's phase and the stage action separately.
|
|
95
|
+
* Used alongside {@link useGoNoGoCountdown}, which reports every countdown.
|
|
96
|
+
*
|
|
97
|
+
* Non-null only while a countdown is running that will stage the active craft
|
|
98
|
+
* from the pad (the active craft is on the launch pad and the poll fires Stage at
|
|
99
|
+
* T-0), and from T-0 until the poll is reset or the craft is reverted to the pad.
|
|
100
|
+
* An abort or NO-GO makes it `null` again, as does a countdown that fires any
|
|
101
|
+
* other action group or nothing, and a craft that is already flying.
|
|
102
|
+
*
|
|
103
|
+
* @category Mission control
|
|
104
|
+
*/
|
|
105
|
+
export function useLiftoffCountdown(): LiftoffCountdown | null {
|
|
106
|
+
// gonogo:reads none
|
|
107
|
+
const record = useStageCountdownRecord();
|
|
108
|
+
if (record === null || !record.liftsOff || record.ended === "aborted") {
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
remainingSeconds: remainingOf(record.t0, record.ended),
|
|
113
|
+
lengthSeconds: record.lengthSeconds,
|
|
114
|
+
liftedOff: record.liftedOff,
|
|
115
|
+
};
|
|
116
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -55,6 +55,7 @@ export * from "./combine-readings";
|
|
|
55
55
|
// Uplink rendering its own command surface needs the same mode/phase vocabulary
|
|
56
56
|
// the app's rail uses, and there is nothing app-specific in deriving it.
|
|
57
57
|
export type {
|
|
58
|
+
CommandHold,
|
|
58
59
|
CommsDelayLike,
|
|
59
60
|
DelayMode,
|
|
60
61
|
InFlightCommand,
|
|
@@ -62,6 +63,7 @@ export type {
|
|
|
62
63
|
PendingEntry,
|
|
63
64
|
PredictedPhase,
|
|
64
65
|
RailCrossing,
|
|
66
|
+
SettledEntry,
|
|
65
67
|
} from "./command-delay";
|
|
66
68
|
export {
|
|
67
69
|
classifyRetained,
|
|
@@ -73,6 +75,15 @@ export {
|
|
|
73
75
|
pendingCrossing,
|
|
74
76
|
ZERO_DELAY_DEAD_ZONE_SECONDS,
|
|
75
77
|
} from "./command-delay";
|
|
78
|
+
export {
|
|
79
|
+
expectedAtCraft,
|
|
80
|
+
useValueCommand,
|
|
81
|
+
type ValueCommandInFlight,
|
|
82
|
+
type ValueCommandOptions,
|
|
83
|
+
type ValueCommandQueueLike,
|
|
84
|
+
type ValueCommandState,
|
|
85
|
+
valueCommandState,
|
|
86
|
+
} from "./command-value";
|
|
76
87
|
/*
|
|
77
88
|
* The typed command vocabulary: the write-side twin of the Topic registry below.
|
|
78
89
|
* `useCommand` is keyed on `CommandId`, and an Uplink declaring its own commands
|
|
@@ -121,6 +132,11 @@ export type {
|
|
|
121
132
|
SampleKind,
|
|
122
133
|
ValueTags,
|
|
123
134
|
} from "./contract-tags";
|
|
135
|
+
export {
|
|
136
|
+
contractTagsGeneration,
|
|
137
|
+
fieldDisplayNameOf,
|
|
138
|
+
topicDisplayNameOf,
|
|
139
|
+
} from "./contract-tags";
|
|
124
140
|
export {
|
|
125
141
|
type ControlChannelHandle,
|
|
126
142
|
type ControlChannelId,
|
|
@@ -140,6 +156,15 @@ export {
|
|
|
140
156
|
crewUnavailableSentence,
|
|
141
157
|
isFatality,
|
|
142
158
|
} from "./crew-standing";
|
|
159
|
+
export {
|
|
160
|
+
type DataRateTier,
|
|
161
|
+
fieldsSentOnChange,
|
|
162
|
+
hasSupersededFields,
|
|
163
|
+
samplesPerSecondOf,
|
|
164
|
+
supersededPayload,
|
|
165
|
+
tierSamplesPerSecondOf,
|
|
166
|
+
type WidgetDataRates,
|
|
167
|
+
} from "./data-rate";
|
|
143
168
|
// Whether a Topic's value is entitled to be read as of TRUE NOW, or only as of
|
|
144
169
|
// now minus the light-time to the craft. Published for the same reason
|
|
145
170
|
// reckonability is: an Uplink declaring a ground-side channel of its own needs
|
|
@@ -167,10 +192,22 @@ export {
|
|
|
167
192
|
relativeDensityCurve,
|
|
168
193
|
terminalVelocityCurve,
|
|
169
194
|
} from "./descent";
|
|
195
|
+
// The four triangles around a docking port: the look rules and the shape, shared by a camera picture's markers and the drawn view.
|
|
196
|
+
export {
|
|
197
|
+
DOCK_LINED_UP_DEG,
|
|
198
|
+
DOCK_MARK_CAMERA_FLOORS,
|
|
199
|
+
type DockMarkGeometry,
|
|
200
|
+
type DockMarkInput,
|
|
201
|
+
type DockMarkSide,
|
|
202
|
+
type DockMarkStyle,
|
|
203
|
+
dockMarkGeometry,
|
|
204
|
+
dockMarkPath,
|
|
205
|
+
dockMarkStyles,
|
|
206
|
+
} from "./dock-markers";
|
|
170
207
|
// Ordinal->name tables and closed name unions for the contract's enums. On the
|
|
171
208
|
// root barrel rather than in the spine because an Uplink needs them as much as
|
|
172
209
|
// the app does: KSP's ResourceFlowMode reaches the Kerbalism Uplink and its
|
|
173
|
-
// PartCategories reach
|
|
210
|
+
// PartCategories reach VesselSchematic, and an Uplink that had to transcribe the member
|
|
174
211
|
// set beside its own switch is back to the defect these tables exist to end.
|
|
175
212
|
// Derived from the generated contract and nothing else, so they carry no spine
|
|
176
213
|
// weight into the SDK.
|
|
@@ -261,6 +298,12 @@ export type {
|
|
|
261
298
|
UnitHint,
|
|
262
299
|
} from "./flight/types";
|
|
263
300
|
export { seriesKeyOf } from "./flight/types";
|
|
301
|
+
export type {
|
|
302
|
+
GoNoGoCountdown,
|
|
303
|
+
GoNoGoCountdownEnd,
|
|
304
|
+
LiftoffCountdown,
|
|
305
|
+
} from "./go-no-go-countdown";
|
|
306
|
+
export { useGoNoGoCountdown, useLiftoffCountdown } from "./go-no-go-countdown";
|
|
264
307
|
export * from "./ksp-enum-names";
|
|
265
308
|
export { isLocked, unlessLocked } from "./locked";
|
|
266
309
|
// The magnitude unwrap, beside `Value` because that is what it unwraps. ui-kit re-exports these three, so no call site moved.
|
|
@@ -325,6 +368,8 @@ export {
|
|
|
325
368
|
reckonableInputsOf,
|
|
326
369
|
reckonableValuesOf,
|
|
327
370
|
} from "./reckonability";
|
|
371
|
+
// Offering a resource transfer: the one rule for what can be picked, and the hook widgets share.
|
|
372
|
+
export * from "./resource-transfer";
|
|
328
373
|
// Which Topics a client package has registered at runtime, and a subscription
|
|
329
374
|
// to that answer changing. Read by the app's field catalogue; an Uplink author
|
|
330
375
|
// registers the way they already do and never calls these.
|
|
@@ -359,6 +404,13 @@ export {
|
|
|
359
404
|
type SystemPoses,
|
|
360
405
|
systemPosesAt,
|
|
361
406
|
} from "./spine/body-pose";
|
|
407
|
+
export {
|
|
408
|
+
argsOf,
|
|
409
|
+
bindCommand,
|
|
410
|
+
bindValue,
|
|
411
|
+
commandSet,
|
|
412
|
+
runSet,
|
|
413
|
+
} from "./spine/bound-command";
|
|
362
414
|
// What a locked `LockScope` hands its fallback, which ui-kit publishes.
|
|
363
415
|
export type { CapabilityLock } from "./spine/capability-lock";
|
|
364
416
|
// ---------------------------------------------------------------------------
|
|
@@ -434,12 +486,14 @@ export {
|
|
|
434
486
|
buildElements,
|
|
435
487
|
type ConicBodiesInput,
|
|
436
488
|
type ConicOrbitInput,
|
|
489
|
+
type ConicPatchInput,
|
|
437
490
|
type ConicPendingInput,
|
|
438
491
|
type ConicThrustInput,
|
|
439
492
|
entryInterfaceRadius,
|
|
440
493
|
isHyperbolic,
|
|
441
494
|
isUnderThrust,
|
|
442
495
|
keplerAdmissibility,
|
|
496
|
+
keplerAdmissibilityAcrossPatches,
|
|
443
497
|
type LoadedCoastEvidence,
|
|
444
498
|
loadedCoastEvidence,
|
|
445
499
|
propagateVesselOrbit,
|
|
@@ -510,6 +564,11 @@ export type {
|
|
|
510
564
|
UplinkHealthStateName,
|
|
511
565
|
} from "./spine/uplink-health";
|
|
512
566
|
export { HEALTH_STATE_NAMES } from "./spine/uplink-health";
|
|
567
|
+
export {
|
|
568
|
+
LAST_KNOWN_PATH_COMMAND,
|
|
569
|
+
type LastKnownPathQuery,
|
|
570
|
+
useLastKnownPath,
|
|
571
|
+
} from "./spine/use-last-known-path";
|
|
513
572
|
export { useSystemInstant } from "./system-instant";
|
|
514
573
|
export * from "./timeline";
|
|
515
574
|
export {
|
|
@@ -520,14 +579,13 @@ export {
|
|
|
520
579
|
} from "./topic-fields";
|
|
521
580
|
export {
|
|
522
581
|
type ChannelFamily,
|
|
523
|
-
DERIVED_CHANNEL_IDS,
|
|
524
|
-
type DerivedChannelId,
|
|
525
582
|
familyPrefix,
|
|
526
583
|
getAllKnownTopicIds,
|
|
527
584
|
isCollectionTopic,
|
|
528
|
-
isDerivedChannelId,
|
|
529
585
|
isTopicId,
|
|
530
586
|
isWidgetChannelId,
|
|
587
|
+
PUBLISHED_TOPIC_IDS,
|
|
588
|
+
type PublishedTopicId,
|
|
531
589
|
registerCollectionTopic,
|
|
532
590
|
registerUplinkTopic,
|
|
533
591
|
TOPIC_IDS,
|
|
@@ -552,12 +610,14 @@ export {
|
|
|
552
610
|
asDeterministic,
|
|
553
611
|
asStatic,
|
|
554
612
|
assertGuardsRegistered,
|
|
613
|
+
type CheckedUnit,
|
|
555
614
|
calendarRatio,
|
|
556
615
|
carryDeterminism,
|
|
557
616
|
type DeclaredUnit,
|
|
558
617
|
Dimension,
|
|
559
618
|
declaredUnitFor,
|
|
560
619
|
displaySymbol,
|
|
620
|
+
dynamicValue,
|
|
561
621
|
hydrate,
|
|
562
622
|
isCalendarUnit,
|
|
563
623
|
isDeterministicValue,
|
package/src/ksp-enum-names.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
KspActionGroup,
|
|
3
|
+
KspContractPrestige,
|
|
3
4
|
KspEditorFacility,
|
|
4
5
|
KspParameterState,
|
|
5
6
|
KspPartCategory,
|
|
6
7
|
KspResourceFlowMode,
|
|
7
8
|
KspRosterStatus,
|
|
8
9
|
KspSpaceCenterFacility,
|
|
10
|
+
KspTankFlowMode,
|
|
9
11
|
} from "./__generated__/contract";
|
|
10
12
|
import { namesByValue } from "./enum-names";
|
|
11
13
|
|
|
@@ -34,8 +36,9 @@ import { namesByValue } from "./enum-names";
|
|
|
34
36
|
*/
|
|
35
37
|
|
|
36
38
|
/**
|
|
37
|
-
* KSP's `ProtoCrewMember.RosterStatus`, as the `situationOrdinal` of a
|
|
38
|
-
* `spaceCenter.crewRoster[]` entry carries it
|
|
39
|
+
* KSP's `ProtoCrewMember.RosterStatus`, as the `situationOrdinal` field of a
|
|
40
|
+
* `spaceCenter.crewRoster[]` entry carries it, which despite its name holds a
|
|
41
|
+
* roster status. A map from each value to its
|
|
39
42
|
* member name: `KSP_ROSTER_STATUS_NAMES.get(0)` is `"Available"`, and a value the
|
|
40
43
|
* table does not know gives `undefined`. `situationOrdinal` reads `Available`
|
|
41
44
|
* for a kerbal who is resting after a flight, so do not branch on it to decide
|
|
@@ -69,6 +72,21 @@ export const KSP_PARAMETER_STATE_NAMES = namesByValue(KspParameterState);
|
|
|
69
72
|
*/
|
|
70
73
|
export type KspParameterStateName = keyof typeof KspParameterState;
|
|
71
74
|
|
|
75
|
+
/**
|
|
76
|
+
* KSP's `Contract.ContractPrestige`, as a contract entry carries it. A map from each value
|
|
77
|
+
* to its member name. Useful for showing the operator how demanding a contract is.
|
|
78
|
+
*
|
|
79
|
+
* @category Enum names
|
|
80
|
+
*/
|
|
81
|
+
export const KSP_CONTRACT_PRESTIGE_NAMES = namesByValue(KspContractPrestige);
|
|
82
|
+
/**
|
|
83
|
+
* The name of a `KspContractPrestige` member. Useful for typing a comparison
|
|
84
|
+
* against a contract's prestige.
|
|
85
|
+
*
|
|
86
|
+
* @category Enum names
|
|
87
|
+
*/
|
|
88
|
+
export type KspContractPrestigeName = keyof typeof KspContractPrestige;
|
|
89
|
+
|
|
72
90
|
/**
|
|
73
91
|
* KSP's `PartCategories`, as `vessel.parts[]` entries carry it. A map from each value
|
|
74
92
|
* to its member name; it includes `none = -1`. Useful for showing the operator which category a part
|
|
@@ -156,7 +174,24 @@ export const KSP_RESOURCE_FLOW_MODE_NAMES = namesByValue(KspResourceFlowMode);
|
|
|
156
174
|
export type KspResourceFlowModeName = keyof typeof KspResourceFlowMode;
|
|
157
175
|
|
|
158
176
|
/**
|
|
159
|
-
*
|
|
177
|
+
* KSP's `PartResource.FlowMode`, as a tank row of `vessel.parts` carries it. A map from each value to
|
|
178
|
+
* its member name. Useful for showing the operator which way a tank lets a
|
|
179
|
+
* resource move.
|
|
180
|
+
*
|
|
181
|
+
* @intent an Uplink showing a tank's direction limit names it with this
|
|
182
|
+
* @category Enum names
|
|
183
|
+
*/
|
|
184
|
+
export const KSP_TANK_FLOW_MODE_NAMES = namesByValue(KspTankFlowMode);
|
|
185
|
+
/**
|
|
186
|
+
* The name of a `KspTankFlowMode` member. Useful for typing a comparison
|
|
187
|
+
* against a tank's direction limit.
|
|
188
|
+
*
|
|
189
|
+
* @category Enum names
|
|
190
|
+
*/
|
|
191
|
+
export type KspTankFlowModeName = keyof typeof KspTankFlowMode;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Every name table for one of KSP's own enums, such as
|
|
160
195
|
* {@link KSP_ROSTER_STATUS_NAMES}, each with the enum it names. Useful for code that checks or lists all the
|
|
161
196
|
* tables at once.
|
|
162
197
|
*
|
|
@@ -181,6 +216,11 @@ export const KSP_ENUM_NAME_TABLES: ReadonlyArray<{
|
|
|
181
216
|
members: KspParameterState,
|
|
182
217
|
names: KSP_PARAMETER_STATE_NAMES,
|
|
183
218
|
},
|
|
219
|
+
{
|
|
220
|
+
label: "KSP_CONTRACT_PRESTIGE_NAMES",
|
|
221
|
+
members: KspContractPrestige,
|
|
222
|
+
names: KSP_CONTRACT_PRESTIGE_NAMES,
|
|
223
|
+
},
|
|
184
224
|
{
|
|
185
225
|
label: "KSP_PART_CATEGORY_NAMES",
|
|
186
226
|
members: KspPartCategory,
|
|
@@ -206,6 +246,11 @@ export const KSP_ENUM_NAME_TABLES: ReadonlyArray<{
|
|
|
206
246
|
members: KspResourceFlowMode,
|
|
207
247
|
names: KSP_RESOURCE_FLOW_MODE_NAMES,
|
|
208
248
|
},
|
|
249
|
+
{
|
|
250
|
+
label: "KSP_TANK_FLOW_MODE_NAMES",
|
|
251
|
+
members: KspTankFlowMode,
|
|
252
|
+
names: KSP_TANK_FLOW_MODE_NAMES,
|
|
253
|
+
},
|
|
209
254
|
];
|
|
210
255
|
|
|
211
256
|
/**
|
package/src/locked.ts
CHANGED
|
@@ -27,7 +27,7 @@ export function isLocked(value: unknown): value is LockedValue {
|
|
|
27
27
|
* in calculations, where a locked field and a missing one both mean there is
|
|
28
28
|
* nothing to work with. To show the field, use {@link isLocked} instead, so
|
|
29
29
|
* the operator sees why it is empty. Used by the maneuver planner, which
|
|
30
|
-
* plans burns, and by the
|
|
30
|
+
* plans burns, and by the Tracking Station widget.
|
|
31
31
|
*
|
|
32
32
|
* @typeParam Value - The type of the field itself. It is a type parameter of
|
|
33
33
|
* this function, not the SDK's `Value` quantity type.
|