@ksp-gonogo/sitrep-sdk 1.0.0-rc.21 → 2.0.0-rc.23
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 +6 -0
- package/dist/__generated__/command-map.d.ts +140 -11
- package/dist/__generated__/command-map.d.ts.map +1 -1
- package/dist/__generated__/command-map.js +6 -3
- package/dist/__generated__/command-map.js.map +1 -1
- package/dist/__generated__/contract.d.ts +591 -425
- package/dist/__generated__/contract.d.ts.map +1 -1
- package/dist/__generated__/contract.js +34 -4
- package/dist/__generated__/contract.js.map +1 -1
- package/dist/__generated__/error-codes.d.ts +46 -55
- package/dist/__generated__/error-codes.d.ts.map +1 -1
- package/dist/__generated__/error-codes.js +76 -69
- package/dist/__generated__/error-codes.js.map +1 -1
- package/dist/__generated__/test-theme.d.ts +3 -0
- package/dist/__generated__/test-theme.d.ts.map +1 -1
- package/dist/__generated__/test-theme.js +3 -0
- package/dist/__generated__/test-theme.js.map +1 -1
- package/dist/__generated__/topic-map.d.ts +90 -2
- package/dist/__generated__/topic-map.d.ts.map +1 -1
- package/dist/__generated__/topic-map.js +2 -0
- package/dist/__generated__/topic-map.js.map +1 -1
- package/dist/__generated__/units.d.ts.map +1 -1
- package/dist/__generated__/units.js +89 -47
- package/dist/__generated__/units.js.map +1 -1
- package/dist/api/alarm-request.d.ts +6 -1
- package/dist/api/alarm-request.d.ts.map +1 -1
- package/dist/api/alarm-request.js +7 -1
- package/dist/api/alarm-request.js.map +1 -1
- package/dist/api/contribution-slots.d.ts +87 -17
- package/dist/api/contribution-slots.d.ts.map +1 -1
- package/dist/api/coverage/CoverageMaskCache.d.ts +1 -1
- package/dist/api/coverage/CoverageMaskCache.js +1 -1
- package/dist/api/coverage-source.d.ts +3 -1
- package/dist/api/coverage-source.d.ts.map +1 -1
- package/dist/api/coverage-source.js +3 -1
- package/dist/api/coverage-source.js.map +1 -1
- package/dist/api/framework-reads.d.ts +20 -0
- package/dist/api/framework-reads.d.ts.map +1 -0
- package/dist/api/framework-reads.js +30 -0
- package/dist/api/framework-reads.js.map +1 -0
- package/dist/api/host.d.ts +8 -5
- package/dist/api/host.d.ts.map +1 -1
- package/dist/api/host.js.map +1 -1
- package/dist/api/index.d.ts +96 -17
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +91 -10
- package/dist/api/index.js.map +1 -1
- package/dist/api/logger.d.ts +14 -2
- package/dist/api/logger.d.ts.map +1 -1
- package/dist/api/logger.js +14 -2
- package/dist/api/logger.js.map +1 -1
- package/dist/api/plot-layers.d.ts +81 -6
- package/dist/api/plot-layers.d.ts.map +1 -1
- package/dist/api/plot-layers.js +4 -3
- package/dist/api/plot-layers.js.map +1 -1
- package/dist/api/plots.d.ts +19 -0
- package/dist/api/plots.d.ts.map +1 -1
- package/dist/api/registry.d.ts +11 -0
- package/dist/api/registry.d.ts.map +1 -1
- package/dist/api/registry.js.map +1 -1
- package/dist/api/settings/SettingsContext.d.ts +5 -4
- package/dist/api/settings/SettingsContext.d.ts.map +1 -1
- package/dist/api/settings/SettingsContext.js +13 -4
- package/dist/api/settings/SettingsContext.js.map +1 -1
- package/dist/api/settings/SettingsService.d.ts +3 -0
- package/dist/api/settings/SettingsService.d.ts.map +1 -1
- package/dist/api/settings/SettingsService.js +3 -0
- package/dist/api/settings/SettingsService.js.map +1 -1
- package/dist/api/settings/store.d.ts +3 -1
- package/dist/api/settings/store.d.ts.map +1 -1
- package/dist/api/settings/store.js +3 -1
- package/dist/api/settings/store.js.map +1 -1
- package/dist/api/slots.d.ts +94 -17
- package/dist/api/slots.d.ts.map +1 -1
- package/dist/api/station-brokers.d.ts +2 -1
- package/dist/api/station-brokers.d.ts.map +1 -1
- package/dist/api/station-brokers.js +2 -1
- package/dist/api/station-brokers.js.map +1 -1
- package/dist/api/stock-bodies.d.ts.map +1 -1
- package/dist/api/stock-bodies.js +6 -0
- package/dist/api/stock-bodies.js.map +1 -1
- package/dist/api/tiny-size.d.ts +2 -0
- package/dist/api/tiny-size.d.ts.map +1 -1
- package/dist/api/tiny-size.js +6 -1
- package/dist/api/tiny-size.js.map +1 -1
- package/dist/api/tone.d.ts +7 -4
- package/dist/api/tone.d.ts.map +1 -1
- package/dist/api/tone.js.map +1 -1
- package/dist/api/transport.d.ts +10 -2
- package/dist/api/transport.d.ts.map +1 -1
- package/dist/api/types.d.ts +179 -120
- package/dist/api/types.d.ts.map +1 -1
- package/dist/binary-frame.d.ts +26 -25
- package/dist/binary-frame.d.ts.map +1 -1
- package/dist/binary-frame.js +25 -25
- package/dist/binary-frame.js.map +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -0
- package/dist/client.js.map +1 -1
- package/dist/combine-readings.d.ts +8 -4
- package/dist/combine-readings.d.ts.map +1 -1
- package/dist/combine-readings.js +6 -4
- package/dist/combine-readings.js.map +1 -1
- package/dist/command-delay.d.ts +6 -0
- package/dist/command-delay.d.ts.map +1 -1
- package/dist/command-delay.js.map +1 -1
- 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-enum-names.d.ts +2 -3
- package/dist/contract-enum-names.d.ts.map +1 -1
- package/dist/contract-enum-names.js +2 -3
- package/dist/contract-enum-names.js.map +1 -1
- package/dist/enum-names.d.ts +5 -3
- package/dist/enum-names.d.ts.map +1 -1
- package/dist/enum-names.js +5 -3
- package/dist/enum-names.js.map +1 -1
- package/dist/envelope.d.ts +3 -3
- package/dist/envelope.d.ts.map +1 -1
- package/dist/flight/BufferedDataSource.d.ts.map +1 -1
- package/dist/flight/BufferedDataSource.js +4 -2
- package/dist/flight/BufferedDataSource.js.map +1 -1
- package/dist/flight/types.d.ts +3 -2
- package/dist/flight/types.d.ts.map +1 -1
- package/dist/frames/index.d.ts +19 -17
- package/dist/frames/index.d.ts.map +1 -1
- package/dist/frames/index.js +13 -12
- package/dist/frames/index.js.map +1 -1
- package/dist/index.d.ts +20 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/dist/ksp-enum-names.d.ts +23 -8
- package/dist/ksp-enum-names.d.ts.map +1 -1
- package/dist/ksp-enum-names.js +20 -8
- package/dist/ksp-enum-names.js.map +1 -1
- package/dist/media/radio-support.d.ts +12 -3
- package/dist/media/radio-support.d.ts.map +1 -1
- package/dist/media/radio-support.js +12 -3
- package/dist/media/radio-support.js.map +1 -1
- package/dist/perf/PerfBudget.d.ts +7 -5
- package/dist/perf/PerfBudget.d.ts.map +1 -1
- package/dist/perf/PerfBudget.js +8 -6
- package/dist/perf/PerfBudget.js.map +1 -1
- package/dist/reading.d.ts +12 -2
- package/dist/reading.d.ts.map +1 -1
- package/dist/reading.js +7 -2
- package/dist/reading.js.map +1 -1
- package/dist/reads-index.json +3675 -0
- package/dist/spine/body-pose.d.ts +85 -0
- package/dist/spine/body-pose.d.ts.map +1 -0
- package/dist/spine/body-pose.js +166 -0
- package/dist/spine/body-pose.js.map +1 -0
- package/dist/spine/capability-lock.d.ts +6 -2
- package/dist/spine/capability-lock.d.ts.map +1 -1
- package/dist/spine/capability-lock.js +8 -2
- package/dist/spine/capability-lock.js.map +1 -1
- package/dist/spine/catalogue-elements.d.ts +28 -0
- package/dist/spine/catalogue-elements.d.ts.map +1 -0
- package/dist/spine/catalogue-elements.js +63 -0
- package/dist/spine/catalogue-elements.js.map +1 -0
- package/dist/spine/celestial-facts.d.ts +5 -7
- package/dist/spine/celestial-facts.d.ts.map +1 -1
- package/dist/spine/celestial-facts.js +10 -21
- package/dist/spine/celestial-facts.js.map +1 -1
- package/dist/spine/client-timeline.d.ts +10 -12
- package/dist/spine/client-timeline.d.ts.map +1 -1
- package/dist/spine/client-timeline.js.map +1 -1
- package/dist/spine/client.d.ts +31 -0
- package/dist/spine/client.d.ts.map +1 -1
- package/dist/spine/client.js +97 -19
- package/dist/spine/client.js.map +1 -1
- package/dist/spine/command-gate.d.ts +13 -11
- package/dist/spine/command-gate.d.ts.map +1 -1
- package/dist/spine/command-gate.js +2 -2
- package/dist/spine/command-gate.js.map +1 -1
- package/dist/spine/command-group.d.ts +62 -0
- package/dist/spine/command-group.d.ts.map +1 -0
- package/dist/spine/command-group.js +172 -0
- package/dist/spine/command-group.js.map +1 -0
- package/dist/spine/comms-delay-reckoning.js.map +1 -1
- package/dist/spine/comms-journey.d.ts +9 -0
- package/dist/spine/comms-journey.d.ts.map +1 -1
- package/dist/spine/comms-journey.js +27 -0
- package/dist/spine/comms-journey.js.map +1 -1
- package/dist/spine/comms-path-geometry.d.ts +3 -3
- package/dist/spine/comms-path-geometry.d.ts.map +1 -1
- package/dist/spine/comms-path-geometry.js.map +1 -1
- package/dist/spine/connection-error-warning.d.ts +1 -1
- package/dist/spine/connection-error-warning.js +1 -1
- package/dist/spine/context.d.ts.map +1 -1
- package/dist/spine/context.js +4 -0
- package/dist/spine/context.js.map +1 -1
- package/dist/spine/contributions.d.ts +13 -13
- package/dist/spine/contributions.js +13 -13
- package/dist/spine/core-reckoners.d.ts.map +1 -1
- package/dist/spine/core-reckoners.js +2 -2
- package/dist/spine/core-reckoners.js.map +1 -1
- package/dist/spine/held-command-actions.d.ts +3 -0
- package/dist/spine/held-command-actions.d.ts.map +1 -1
- package/dist/spine/held-command-actions.js +12 -7
- package/dist/spine/held-command-actions.js.map +1 -1
- package/dist/spine/impact-point.d.ts.map +1 -1
- package/dist/spine/impact-point.js +6 -29
- package/dist/spine/impact-point.js.map +1 -1
- package/dist/spine/index.d.ts +5 -0
- package/dist/spine/index.d.ts.map +1 -1
- package/dist/spine/index.js +5 -0
- package/dist/spine/index.js.map +1 -1
- package/dist/spine/kepler-reckoning.d.ts +2 -2
- package/dist/spine/kepler-reckoning.d.ts.map +1 -1
- package/dist/spine/kepler-reckoning.js.map +1 -1
- package/dist/spine/kepler.d.ts +8 -6
- package/dist/spine/kepler.d.ts.map +1 -1
- package/dist/spine/kepler.js +3 -1
- package/dist/spine/kepler.js.map +1 -1
- package/dist/spine/lagrange.d.ts +6 -6
- package/dist/spine/lagrange.d.ts.map +1 -1
- package/dist/spine/lagrange.js.map +1 -1
- package/dist/spine/lifecycle.d.ts +14 -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 +11 -1
- package/dist/spine/lock-scope.d.ts.map +1 -1
- package/dist/spine/lock-scope.js.map +1 -1
- package/dist/spine/map-command.d.ts +3 -11
- package/dist/spine/map-command.d.ts.map +1 -1
- package/dist/spine/map-command.js +3 -11
- package/dist/spine/map-command.js.map +1 -1
- package/dist/spine/mod-settings.d.ts.map +1 -1
- package/dist/spine/mod-settings.js +1 -0
- package/dist/spine/mod-settings.js.map +1 -1
- package/dist/spine/never-reckonable.d.ts.map +1 -1
- package/dist/spine/never-reckonable.js +8 -6
- package/dist/spine/never-reckonable.js.map +1 -1
- package/dist/spine/orbit-patches.d.ts +16 -4
- package/dist/spine/orbit-patches.d.ts.map +1 -1
- package/dist/spine/orbit-patches.js +12 -5
- package/dist/spine/orbit-patches.js.map +1 -1
- package/dist/spine/orbit-trajectory.d.ts +60 -3
- package/dist/spine/orbit-trajectory.d.ts.map +1 -1
- package/dist/spine/orbit-trajectory.js +133 -40
- package/dist/spine/orbit-trajectory.js.map +1 -1
- package/dist/spine/orbital-solve.js +1 -1
- package/dist/spine/own-craft-vantage.d.ts.map +1 -1
- package/dist/spine/own-craft-vantage.js +1 -0
- package/dist/spine/own-craft-vantage.js.map +1 -1
- package/dist/spine/past-track.d.ts +7 -7
- package/dist/spine/past-track.js +7 -7
- package/dist/spine/phase-angle.d.ts +19 -0
- package/dist/spine/phase-angle.d.ts.map +1 -0
- package/dist/spine/phase-angle.js +47 -0
- package/dist/spine/phase-angle.js.map +1 -0
- package/dist/spine/powered-reckoning.js.map +1 -1
- package/dist/spine/processors.d.ts +4 -1
- package/dist/spine/processors.d.ts.map +1 -1
- package/dist/spine/processors.js.map +1 -1
- package/dist/spine/reckoners.d.ts +3 -6
- package/dist/spine/reckoners.d.ts.map +1 -1
- package/dist/spine/reckoners.js +3 -6
- package/dist/spine/reckoners.js.map +1 -1
- package/dist/spine/reference-frame.d.ts +14 -14
- package/dist/spine/reference-frame.d.ts.map +1 -1
- package/dist/spine/reference-frame.js +3 -64
- package/dist/spine/reference-frame.js.map +1 -1
- package/dist/spine/settings-registry.d.ts +17 -9
- package/dist/spine/settings-registry.d.ts.map +1 -1
- package/dist/spine/settings-registry.js.map +1 -1
- package/dist/spine/settings-tabs.d.ts +4 -3
- package/dist/spine/settings-tabs.d.ts.map +1 -1
- package/dist/spine/settings-tabs.js.map +1 -1
- package/dist/spine/target-range-reckoning.d.ts.map +1 -1
- package/dist/spine/target-range-reckoning.js.map +1 -1
- package/dist/spine/timeline-store.d.ts +3 -1
- package/dist/spine/timeline-store.d.ts.map +1 -1
- package/dist/spine/timeline-store.js +2 -2
- package/dist/spine/timeline-store.js.map +1 -1
- package/dist/spine/topic-ownership.d.ts +2 -2
- package/dist/spine/topic-ownership.js +2 -2
- package/dist/spine/uplink-clients.d.ts +4 -4
- package/dist/spine/uplink-clients.d.ts.map +1 -1
- package/dist/spine/uplink-clients.js +1 -0
- package/dist/spine/uplink-clients.js.map +1 -1
- package/dist/spine/use-body-states.d.ts +3 -7
- package/dist/spine/use-body-states.d.ts.map +1 -1
- package/dist/spine/use-body-states.js +3 -7
- package/dist/spine/use-body-states.js.map +1 -1
- package/dist/spine/use-command.d.ts.map +1 -1
- package/dist/spine/use-command.js +151 -109
- package/dist/spine/use-command.js.map +1 -1
- package/dist/spine/use-data-sources.d.ts +2 -5
- package/dist/spine/use-data-sources.d.ts.map +1 -1
- package/dist/spine/use-data-sources.js.map +1 -1
- package/dist/spine/use-late-telemetry-subscribe.d.ts.map +1 -1
- package/dist/spine/use-late-telemetry-subscribe.js +1 -0
- package/dist/spine/use-late-telemetry-subscribe.js.map +1 -1
- package/dist/spine/use-orbit-curve.d.ts +33 -0
- package/dist/spine/use-orbit-curve.d.ts.map +1 -0
- package/dist/spine/use-orbit-curve.js +28 -0
- package/dist/spine/use-orbit-curve.js.map +1 -0
- package/dist/spine/use-orbit-trajectory.d.ts +6 -1
- package/dist/spine/use-orbit-trajectory.d.ts.map +1 -1
- package/dist/spine/use-orbit-trajectory.js +44 -2
- package/dist/spine/use-orbit-trajectory.js.map +1 -1
- package/dist/spine/use-selected-vantage.d.ts.map +1 -1
- package/dist/spine/use-selected-vantage.js +1 -0
- package/dist/spine/use-selected-vantage.js.map +1 -1
- package/dist/spine/use-system-instant.d.ts +16 -0
- package/dist/spine/use-system-instant.d.ts.map +1 -0
- package/dist/spine/use-system-instant.js +20 -0
- package/dist/spine/use-system-instant.js.map +1 -0
- package/dist/spine/use-transmissions.d.ts.map +1 -1
- package/dist/spine/use-transmissions.js +1 -0
- package/dist/spine/use-transmissions.js.map +1 -1
- package/dist/spine/view-clock.d.ts +1 -1
- package/dist/spine/view-clock.d.ts.map +1 -1
- package/dist/spine/view-clock.js +13 -3
- package/dist/spine/view-clock.js.map +1 -1
- package/dist/system-instant.d.ts +16 -0
- package/dist/system-instant.d.ts.map +1 -0
- package/dist/system-instant.js +20 -0
- package/dist/system-instant.js.map +1 -0
- package/dist/testing/console-logger.d.ts +3 -3
- package/dist/testing/console-logger.js +3 -3
- package/dist/testing/fake-wall-clock.d.ts +4 -2
- package/dist/testing/fake-wall-clock.d.ts.map +1 -1
- package/dist/testing/fake-wall-clock.js +4 -2
- package/dist/testing/fake-wall-clock.js.map +1 -1
- package/dist/testing/install-act-gate-stretch.d.ts +9 -0
- package/dist/testing/install-act-gate-stretch.d.ts.map +1 -1
- package/dist/testing/install-act-gate-stretch.js +9 -0
- package/dist/testing/install-act-gate-stretch.js.map +1 -1
- package/dist/testing/install-real-test-host.d.ts +4 -1
- package/dist/testing/install-real-test-host.d.ts.map +1 -1
- package/dist/testing/install-real-test-host.js +2 -0
- package/dist/testing/install-real-test-host.js.map +1 -1
- package/dist/testing/memory-storage.d.ts +2 -3
- package/dist/testing/memory-storage.d.ts.map +1 -1
- package/dist/testing/memory-storage.js +6 -5
- package/dist/testing/memory-storage.js.map +1 -1
- package/dist/testing/mock-data-source.d.ts +2 -2
- package/dist/testing/render.d.ts +4 -2
- package/dist/testing/render.d.ts.map +1 -1
- package/dist/testing/render.js +4 -2
- package/dist/testing/render.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 +64 -52
- package/dist/testing/stub-transport.js.map +1 -1
- package/dist/timeline.d.ts +14 -6
- package/dist/timeline.d.ts.map +1 -1
- package/dist/topic-fields.d.ts +1 -0
- package/dist/topic-fields.d.ts.map +1 -1
- package/dist/topic-fields.js.map +1 -1
- package/dist/topics.d.ts +42 -2
- package/dist/topics.d.ts.map +1 -1
- package/dist/topics.js +33 -24
- package/dist/topics.js.map +1 -1
- package/dist/unit-system/registry.d.ts +11 -0
- package/dist/unit-system/registry.d.ts.map +1 -1
- package/dist/unit-system/registry.js.map +1 -1
- package/dist/unit-system/value.d.ts +3 -0
- package/dist/unit-system/value.d.ts.map +1 -1
- package/dist/unit-system/value.js.map +1 -1
- package/dist/units.js +1 -1
- package/dist/uplink-externals.d.ts +9 -4
- package/dist/uplink-externals.d.ts.map +1 -1
- package/dist/uplink-externals.js +9 -4
- package/dist/uplink-externals.js.map +1 -1
- package/dist/uplink-manifest.d.ts +62 -16
- package/dist/uplink-manifest.d.ts.map +1 -1
- package/dist/uplink-manifest.js.map +1 -1
- package/package.json +4 -3
- package/src/__generated__/command-map.ts +140 -10
- package/src/__generated__/contract.ts +598 -429
- package/src/__generated__/error-codes.ts +76 -69
- package/src/__generated__/test-theme.ts +3 -0
- package/src/__generated__/topic-map.ts +92 -0
- package/src/__generated__/units.json +630 -52
- package/src/__generated__/units.ts +89 -47
- package/src/api/alarm-request.ts +7 -1
- package/src/api/contribution-slots.ts +95 -20
- package/src/api/coverage/CoverageMaskCache.ts +1 -1
- package/src/api/coverage-source.ts +3 -1
- package/src/api/framework-reads.ts +29 -0
- package/src/api/host.ts +13 -4
- package/src/api/index.ts +113 -14
- package/src/api/logger.ts +14 -2
- package/src/api/plot-layers.ts +72 -6
- package/src/api/plots.ts +19 -0
- package/src/api/registry.ts +11 -0
- package/src/api/settings/SettingsContext.tsx +17 -5
- package/src/api/settings/SettingsService.ts +3 -0
- package/src/api/settings/store.ts +3 -1
- package/src/api/slots.ts +97 -28
- package/src/api/station-brokers.ts +2 -1
- package/src/api/stock-bodies.ts +6 -0
- package/src/api/tiny-size.ts +6 -1
- package/src/api/tone.ts +7 -4
- package/src/api/transport.ts +13 -2
- package/src/api/types.ts +214 -154
- package/src/binary-frame.ts +26 -25
- package/src/client.ts +2 -0
- package/src/combine-readings.ts +8 -4
- package/src/command-delay.ts +6 -0
- package/src/compat-versions.ts +2 -2
- package/src/contract-enum-names.ts +2 -3
- package/src/enum-names.ts +5 -3
- package/src/envelope.ts +9 -1
- package/src/flight/BufferedDataSource.ts +4 -2
- package/src/flight/types.ts +3 -2
- package/src/frames/index.ts +29 -16
- package/src/index.ts +32 -0
- package/src/ksp-enum-names.ts +23 -8
- package/src/media/radio-support.ts +12 -3
- package/src/perf/PerfBudget.ts +8 -6
- package/src/reading.ts +20 -4
- package/src/spine/body-pose.ts +251 -0
- package/src/spine/capability-lock.ts +17 -4
- package/src/spine/catalogue-elements.ts +75 -0
- package/src/spine/celestial-facts.ts +10 -35
- package/src/spine/client-timeline.ts +10 -12
- package/src/spine/client.ts +127 -19
- package/src/spine/command-gate.ts +13 -11
- package/src/spine/command-group.ts +278 -0
- package/src/spine/comms-delay-reckoning.ts +2 -2
- package/src/spine/comms-journey.ts +29 -0
- package/src/spine/comms-path-geometry.ts +4 -4
- package/src/spine/connection-error-warning.ts +1 -1
- package/src/spine/context.tsx +4 -0
- package/src/spine/contributions.ts +13 -13
- package/src/spine/core-reckoners.ts +2 -5
- package/src/spine/held-command-actions.ts +18 -6
- package/src/spine/impact-point.ts +8 -35
- package/src/spine/index.ts +5 -0
- package/src/spine/kepler-reckoning.ts +2 -2
- package/src/spine/kepler.ts +9 -7
- package/src/spine/lagrange.ts +6 -6
- package/src/spine/lifecycle.ts +14 -0
- package/src/spine/lock-scope.ts +11 -1
- package/src/spine/map-command.ts +3 -11
- package/src/spine/mod-settings.ts +1 -0
- package/src/spine/never-reckonable.ts +8 -6
- package/src/spine/orbit-patches.ts +33 -6
- package/src/spine/orbit-trajectory.ts +172 -57
- package/src/spine/orbital-solve.ts +1 -1
- package/src/spine/own-craft-vantage.tsx +1 -0
- package/src/spine/past-track.ts +7 -7
- package/src/spine/phase-angle.ts +51 -0
- package/src/spine/powered-reckoning.ts +16 -16
- package/src/spine/processors.ts +4 -1
- package/src/spine/reckoners.ts +3 -6
- package/src/spine/reference-frame.ts +49 -115
- package/src/spine/settings-registry.ts +17 -9
- package/src/spine/settings-tabs.ts +4 -3
- package/src/spine/target-range-reckoning.ts +3 -3
- package/src/spine/timeline-store.ts +6 -1
- package/src/spine/topic-ownership.ts +2 -2
- package/src/spine/uplink-clients.ts +5 -4
- package/src/spine/use-body-states.ts +3 -7
- package/src/spine/use-command.ts +167 -125
- package/src/spine/use-data-sources.ts +2 -5
- package/src/spine/use-late-telemetry-subscribe.ts +1 -0
- package/src/spine/use-orbit-curve.ts +49 -0
- package/src/spine/use-orbit-trajectory.ts +54 -2
- package/src/spine/use-selected-vantage.ts +1 -0
- package/src/spine/use-system-instant.ts +20 -0
- package/src/spine/use-transmissions.ts +1 -0
- package/src/spine/view-clock.ts +20 -3
- package/src/system-instant.ts +20 -0
- package/src/testing/console-logger.ts +3 -3
- package/src/testing/fake-wall-clock.ts +4 -2
- package/src/testing/install-act-gate-stretch.ts +9 -0
- package/src/testing/install-real-test-host.ts +6 -1
- package/src/testing/memory-storage.ts +6 -5
- package/src/testing/mock-data-source.ts +2 -2
- package/src/testing/render.tsx +4 -2
- package/src/testing/stub-transport.ts +66 -52
- package/src/timeline.ts +14 -6
- package/src/topic-fields.ts +1 -0
- package/src/topics.ts +59 -26
- package/src/unit-system/registry.ts +11 -0
- package/src/unit-system/value.ts +3 -0
- package/src/units.ts +1 -1
- package/src/uplink-externals.ts +9 -4
- package/src/uplink-manifest.ts +62 -16
|
@@ -60,7 +60,8 @@ export declare const CommandErrorCode: {
|
|
|
60
60
|
* A capacity is full: the Astronaut Complex holds its cap of active crew, a
|
|
61
61
|
* facility holds its cap of anything else countable.
|
|
62
62
|
*
|
|
63
|
-
* A retry succeeds only once something changes, such as
|
|
63
|
+
* A retry succeeds only once something changes, such as a kerbal leaving the
|
|
64
|
+
* active roster.
|
|
64
65
|
*
|
|
65
66
|
* `CommandResult.breach` carries the numbers, so a client can say "16 of 16".
|
|
66
67
|
*/
|
|
@@ -86,20 +87,14 @@ export declare const CommandErrorCode: {
|
|
|
86
87
|
* `CommandErrorCode.InsufficientFunds`, as the game keeps science and funds
|
|
87
88
|
* separate currencies.
|
|
88
89
|
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
* checks, modifiers included.
|
|
90
|
+
* The cost is the one the game itself would charge, with every modifier
|
|
91
|
+
* applied.
|
|
92
92
|
*/
|
|
93
93
|
readonly InsufficientScience: "insufficientScience";
|
|
94
94
|
/**
|
|
95
95
|
* The save is not a career save, so this command's whole subsystem does not
|
|
96
96
|
* exist here.
|
|
97
97
|
*
|
|
98
|
-
* Decided by `HighLogic.CurrentGame.Mode`, and in practice the null `Instance`
|
|
99
|
-
* of the `ScenarioModule` that would have served it (`Funding`,
|
|
100
|
-
* `ContractSystem`, `StrategySystem`, `ResearchAndDevelopment`,
|
|
101
|
-
* `ScenarioUpgradeableFacilities`).
|
|
102
|
-
*
|
|
103
98
|
* A permanent property of the save, not a state that may change, so a client
|
|
104
99
|
* can hide the control rather than show it refused.
|
|
105
100
|
*/
|
|
@@ -107,8 +102,7 @@ export declare const CommandErrorCode: {
|
|
|
107
102
|
/**
|
|
108
103
|
* The game is in a scene this command cannot run from.
|
|
109
104
|
*
|
|
110
|
-
*
|
|
111
|
-
* names the scene when the producer had one.
|
|
105
|
+
* `CommandResult.detail` names the scene when the producer had one.
|
|
112
106
|
*/
|
|
113
107
|
readonly WrongScene: "wrongScene";
|
|
114
108
|
/**
|
|
@@ -117,28 +111,24 @@ export declare const CommandErrorCode: {
|
|
|
117
111
|
* contract asked to accept when it is not offered, an assigned kerbal asked to
|
|
118
112
|
* be sacked, a spent experiment asked to deploy.
|
|
119
113
|
*
|
|
120
|
-
*
|
|
121
|
-
* `RDTech.State`, `Contract.State`, `ProtoCrewMember.RosterStatus`,
|
|
122
|
-
* `ModuleScienceExperiment.Deployed`/`Inoperable`. Every one of those is
|
|
123
|
-
* `[Description]`-tagged or otherwise nameable, so `CommandResult.detail` can
|
|
124
|
-
* carry the state in the game's own words.
|
|
114
|
+
* `CommandResult.detail` can carry the state in the game's own words.
|
|
125
115
|
*/
|
|
126
116
|
readonly WrongState: "wrongState";
|
|
127
117
|
/**
|
|
128
118
|
* Right command, wrong moment: the flight is not in a state that permits it
|
|
129
119
|
* yet, and will be later.
|
|
130
120
|
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
* tracking station. The game's reason is on `CommandResult.detail`.
|
|
121
|
+
* The game gives five such reasons: in atmosphere, under acceleration, moving
|
|
122
|
+
* over the surface, about to crash, on a ladder; and a revert or a scene
|
|
123
|
+
* change can also be switched off by the save's own difficulty settings. The
|
|
124
|
+
* game's reason is on `CommandResult.detail`.
|
|
136
125
|
*
|
|
137
126
|
* Also returned by the SCET alarm command for a vantage it cannot check
|
|
138
127
|
* because no command centre is known to the simulation yet: the main menu, and
|
|
139
|
-
* the ticks before the first capture.
|
|
140
|
-
* `CommandErrorCode.Range` instead, because that
|
|
141
|
-
* waiting.
|
|
128
|
+
* the ticks before the first capture. The same command refuses a vantage that
|
|
129
|
+
* is known and inactive with `CommandErrorCode.Range` instead, because that
|
|
130
|
+
* one does not resolve by waiting. Any other command naming an inactive
|
|
131
|
+
* vantage fails with the `unknownVantage` fault.
|
|
142
132
|
*
|
|
143
133
|
* Distinct from `CommandErrorCode.WrongState`, which is about the entity and
|
|
144
134
|
* does not resolve by waiting.
|
|
@@ -150,11 +140,6 @@ export declare const CommandErrorCode: {
|
|
|
150
140
|
* no such action, an action present but inert, an autopilot mode this craft
|
|
151
141
|
* cannot hold.
|
|
152
142
|
*
|
|
153
|
-
* Decided by the part's own module list and fields
|
|
154
|
-
* (`ModuleRoboticServoRotor`/`Hinge`/`Piston`, `servoIsMotorized`,
|
|
155
|
-
* `BaseEvent.active`, `BaseEvent.EventIsDisabledByVariant`) and
|
|
156
|
-
* `VesselAutopilot.CanSetMode`.
|
|
157
|
-
*
|
|
158
143
|
* Nothing an operator waits for. The craft would have to be different for this
|
|
159
144
|
* to work, which is why it is not `CommandErrorCode.NotClearToProceed` and not
|
|
160
145
|
* `CommandErrorCode.WrongState`.
|
|
@@ -163,49 +148,39 @@ export declare const CommandErrorCode: {
|
|
|
163
148
|
/**
|
|
164
149
|
* There is no usable link for what this command needs to send.
|
|
165
150
|
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
* carry the payload. This is not the comms-loss refusal that stops a command
|
|
169
|
-
* before it reaches the vessel.
|
|
151
|
+
* The vessel has no antenna that can carry the payload, such as a science
|
|
152
|
+
* transmission.
|
|
170
153
|
*/
|
|
171
154
|
readonly NoConnection: "noConnection";
|
|
172
155
|
/**
|
|
173
156
|
* The capability exists in the game but this save has not unlocked it: fuel
|
|
174
157
|
* transfer, custom action groups, flight planning, EVA, the maneuver tool.
|
|
175
158
|
*
|
|
176
|
-
*
|
|
177
|
-
* `UnlockedActionGroupsStock`/`Custom`, `UnlockedFlightPlanning`,
|
|
178
|
-
* `UnlockedEVA`/`Flags`/`Clamber`, `ManeuverToolAvailable`, each read at the
|
|
179
|
-
* owning facility's normalised level.
|
|
159
|
+
* Each switch follows the level of the building that owns it.
|
|
180
160
|
*
|
|
181
161
|
* Distinct from `CommandErrorCode.LimitReached`, which is a number against a
|
|
182
162
|
* number. This is a switch that is off, and the fix is an upgrade rather than
|
|
183
|
-
*
|
|
163
|
+
* making room.
|
|
184
164
|
*/
|
|
185
165
|
readonly NotUnlocked: "notUnlocked";
|
|
186
166
|
/**
|
|
187
167
|
* Another vessel is on the launch site.
|
|
188
168
|
*
|
|
189
|
-
*
|
|
190
|
-
* `GetWarningTitle()`/`GetWarningDescription()` are the game's own words for
|
|
191
|
-
* it and ride on `CommandResult.detail`.
|
|
169
|
+
* The game's own words for it ride on `CommandResult.detail`.
|
|
192
170
|
*/
|
|
193
171
|
readonly SiteOccupied: "siteOccupied";
|
|
194
172
|
/**
|
|
195
173
|
* The facility this command needs is destroyed or damaged.
|
|
196
|
-
*
|
|
197
|
-
* Decided by `PreFlightTests.FacilityOperational`, over
|
|
198
|
-
* `PSystemSetup.Instance.GetSpaceCenterFacility(name).GetFacilityDamage()`.
|
|
199
174
|
*/
|
|
200
175
|
readonly FacilityDamaged: "facilityDamaged";
|
|
201
176
|
/**
|
|
202
177
|
* The command consumes a countable ITEM and there are not enough of them
|
|
203
178
|
* aboard.
|
|
204
179
|
*
|
|
205
|
-
*
|
|
206
|
-
* shows the cost, so the cost shown and the cost taken agree. The item is
|
|
207
|
-
* provider's to name: this code says only that there were too few, never
|
|
208
|
-
* item.
|
|
180
|
+
* The provider decides by its own charge, which it should also state wherever
|
|
181
|
+
* it shows the cost, so the cost shown and the cost taken agree. The item is
|
|
182
|
+
* the provider's to name: this code says only that there were too few, never
|
|
183
|
+
* which item.
|
|
209
184
|
*
|
|
210
185
|
* Separate from `CommandErrorCode.InsufficientFunds` and
|
|
211
186
|
* `CommandErrorCode.InsufficientScience`: a physical item cannot be bought.
|
|
@@ -308,7 +283,8 @@ export declare const FaultCode: {
|
|
|
308
283
|
readonly PayloadSerializationError: "payloadSerializationError";
|
|
309
284
|
/**
|
|
310
285
|
* A `set-vantage`, or a command's `vantage`, naming a command centre that is
|
|
311
|
-
* not active.
|
|
286
|
+
* not active. The SCET alarm command is the exception: it refuses an inactive
|
|
287
|
+
* vantage with the `range` refusal instead.
|
|
312
288
|
*/
|
|
313
289
|
readonly UnknownVantage: "unknownVantage";
|
|
314
290
|
/**
|
|
@@ -316,6 +292,19 @@ export declare const FaultCode: {
|
|
|
316
292
|
* it could run.
|
|
317
293
|
*/
|
|
318
294
|
readonly CommandExpired: "commandExpired";
|
|
295
|
+
/**
|
|
296
|
+
* A command sent in a group was not sent because another command in the same
|
|
297
|
+
* group was refused, or because the group itself could not be sent. A group
|
|
298
|
+
* goes whole or not at all, so every member is refused with this one, and the
|
|
299
|
+
* message names the member that decided it.
|
|
300
|
+
*/
|
|
301
|
+
readonly GroupRefused: "groupRefused";
|
|
302
|
+
/**
|
|
303
|
+
* A command sent in a group did not run because an earlier command in the same
|
|
304
|
+
* group failed at the craft. The earlier commands stay done, since a game
|
|
305
|
+
* action cannot be taken back; the message says which ran.
|
|
306
|
+
*/
|
|
307
|
+
readonly GroupStopped: "groupStopped";
|
|
319
308
|
/**
|
|
320
309
|
* A cancel stopped the command before it ran.
|
|
321
310
|
*/
|
|
@@ -328,12 +317,14 @@ export declare const FaultCode: {
|
|
|
328
317
|
*/
|
|
329
318
|
readonly UndoneByLoad: "undoneByLoad";
|
|
330
319
|
/**
|
|
331
|
-
* A continuous input, a throttle or a control axis, was dropped at a node
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
*
|
|
335
|
-
*
|
|
336
|
-
*
|
|
320
|
+
* A continuous input, a throttle or a control axis, was dropped at a node, a
|
|
321
|
+
* ground station or relay on the route to the craft, because the link onward
|
|
322
|
+
* was down there and it would have had to be held until it came back. Held and
|
|
323
|
+
* sent on later it would arrive as a run of out-of-date values, so a node that
|
|
324
|
+
* cannot send it on at once drops it. It was accepted with a warning when it
|
|
325
|
+
* was sent, and this is the news of its loss, arriving at the command centre
|
|
326
|
+
* that sent it once a report from that node could have reached it at light
|
|
327
|
+
* speed.
|
|
337
328
|
*/
|
|
338
329
|
readonly ContinuousInputWouldWait: "continuousInputWouldWait";
|
|
339
330
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-codes.d.ts","sourceRoot":"","sources":["../../src/__generated__/error-codes.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,uHAAuH;IACvH,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC;IACnC,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,oDAAoD;IACpD,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,QAAQ,GAAG,IAAI,CAAC;IACzC,gGAAgG;IAChG,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,+FAA+F;IAC/F,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB;IAC3B;;OAEG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;;;;;OAOG;;IAEH
|
|
1
|
+
{"version":3,"file":"error-codes.d.ts","sourceRoot":"","sources":["../../src/__generated__/error-codes.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,uHAAuH;IACvH,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC;IACnC,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,oDAAoD;IACpD,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,QAAQ,GAAG,IAAI,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;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAAS,oBAAoB,EAyV3D,CAAC"}
|
|
@@ -45,7 +45,8 @@ export const CommandErrorCode = {
|
|
|
45
45
|
* A capacity is full: the Astronaut Complex holds its cap of active crew, a
|
|
46
46
|
* facility holds its cap of anything else countable.
|
|
47
47
|
*
|
|
48
|
-
* A retry succeeds only once something changes, such as
|
|
48
|
+
* A retry succeeds only once something changes, such as a kerbal leaving the
|
|
49
|
+
* active roster.
|
|
49
50
|
*
|
|
50
51
|
* `CommandResult.breach` carries the numbers, so a client can say "16 of 16".
|
|
51
52
|
*/
|
|
@@ -71,20 +72,14 @@ export const CommandErrorCode = {
|
|
|
71
72
|
* `CommandErrorCode.InsufficientFunds`, as the game keeps science and funds
|
|
72
73
|
* separate currencies.
|
|
73
74
|
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* checks, modifiers included.
|
|
75
|
+
* The cost is the one the game itself would charge, with every modifier
|
|
76
|
+
* applied.
|
|
77
77
|
*/
|
|
78
78
|
InsufficientScience: "insufficientScience",
|
|
79
79
|
/**
|
|
80
80
|
* The save is not a career save, so this command's whole subsystem does not
|
|
81
81
|
* exist here.
|
|
82
82
|
*
|
|
83
|
-
* Decided by `HighLogic.CurrentGame.Mode`, and in practice the null `Instance`
|
|
84
|
-
* of the `ScenarioModule` that would have served it (`Funding`,
|
|
85
|
-
* `ContractSystem`, `StrategySystem`, `ResearchAndDevelopment`,
|
|
86
|
-
* `ScenarioUpgradeableFacilities`).
|
|
87
|
-
*
|
|
88
83
|
* A permanent property of the save, not a state that may change, so a client
|
|
89
84
|
* can hide the control rather than show it refused.
|
|
90
85
|
*/
|
|
@@ -92,8 +87,7 @@ export const CommandErrorCode = {
|
|
|
92
87
|
/**
|
|
93
88
|
* The game is in a scene this command cannot run from.
|
|
94
89
|
*
|
|
95
|
-
*
|
|
96
|
-
* names the scene when the producer had one.
|
|
90
|
+
* `CommandResult.detail` names the scene when the producer had one.
|
|
97
91
|
*/
|
|
98
92
|
WrongScene: "wrongScene",
|
|
99
93
|
/**
|
|
@@ -102,28 +96,24 @@ export const CommandErrorCode = {
|
|
|
102
96
|
* contract asked to accept when it is not offered, an assigned kerbal asked to
|
|
103
97
|
* be sacked, a spent experiment asked to deploy.
|
|
104
98
|
*
|
|
105
|
-
*
|
|
106
|
-
* `RDTech.State`, `Contract.State`, `ProtoCrewMember.RosterStatus`,
|
|
107
|
-
* `ModuleScienceExperiment.Deployed`/`Inoperable`. Every one of those is
|
|
108
|
-
* `[Description]`-tagged or otherwise nameable, so `CommandResult.detail` can
|
|
109
|
-
* carry the state in the game's own words.
|
|
99
|
+
* `CommandResult.detail` can carry the state in the game's own words.
|
|
110
100
|
*/
|
|
111
101
|
WrongState: "wrongState",
|
|
112
102
|
/**
|
|
113
103
|
* Right command, wrong moment: the flight is not in a state that permits it
|
|
114
104
|
* yet, and will be later.
|
|
115
105
|
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
* tracking station. The game's reason is on `CommandResult.detail`.
|
|
106
|
+
* The game gives five such reasons: in atmosphere, under acceleration, moving
|
|
107
|
+
* over the surface, about to crash, on a ladder; and a revert or a scene
|
|
108
|
+
* change can also be switched off by the save's own difficulty settings. The
|
|
109
|
+
* game's reason is on `CommandResult.detail`.
|
|
121
110
|
*
|
|
122
111
|
* Also returned by the SCET alarm command for a vantage it cannot check
|
|
123
112
|
* because no command centre is known to the simulation yet: the main menu, and
|
|
124
|
-
* the ticks before the first capture.
|
|
125
|
-
* `CommandErrorCode.Range` instead, because that
|
|
126
|
-
* waiting.
|
|
113
|
+
* the ticks before the first capture. The same command refuses a vantage that
|
|
114
|
+
* is known and inactive with `CommandErrorCode.Range` instead, because that
|
|
115
|
+
* one does not resolve by waiting. Any other command naming an inactive
|
|
116
|
+
* vantage fails with the `unknownVantage` fault.
|
|
127
117
|
*
|
|
128
118
|
* Distinct from `CommandErrorCode.WrongState`, which is about the entity and
|
|
129
119
|
* does not resolve by waiting.
|
|
@@ -135,11 +125,6 @@ export const CommandErrorCode = {
|
|
|
135
125
|
* no such action, an action present but inert, an autopilot mode this craft
|
|
136
126
|
* cannot hold.
|
|
137
127
|
*
|
|
138
|
-
* Decided by the part's own module list and fields
|
|
139
|
-
* (`ModuleRoboticServoRotor`/`Hinge`/`Piston`, `servoIsMotorized`,
|
|
140
|
-
* `BaseEvent.active`, `BaseEvent.EventIsDisabledByVariant`) and
|
|
141
|
-
* `VesselAutopilot.CanSetMode`.
|
|
142
|
-
*
|
|
143
128
|
* Nothing an operator waits for. The craft would have to be different for this
|
|
144
129
|
* to work, which is why it is not `CommandErrorCode.NotClearToProceed` and not
|
|
145
130
|
* `CommandErrorCode.WrongState`.
|
|
@@ -148,49 +133,39 @@ export const CommandErrorCode = {
|
|
|
148
133
|
/**
|
|
149
134
|
* There is no usable link for what this command needs to send.
|
|
150
135
|
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
* carry the payload. This is not the comms-loss refusal that stops a command
|
|
154
|
-
* before it reaches the vessel.
|
|
136
|
+
* The vessel has no antenna that can carry the payload, such as a science
|
|
137
|
+
* transmission.
|
|
155
138
|
*/
|
|
156
139
|
NoConnection: "noConnection",
|
|
157
140
|
/**
|
|
158
141
|
* The capability exists in the game but this save has not unlocked it: fuel
|
|
159
142
|
* transfer, custom action groups, flight planning, EVA, the maneuver tool.
|
|
160
143
|
*
|
|
161
|
-
*
|
|
162
|
-
* `UnlockedActionGroupsStock`/`Custom`, `UnlockedFlightPlanning`,
|
|
163
|
-
* `UnlockedEVA`/`Flags`/`Clamber`, `ManeuverToolAvailable`, each read at the
|
|
164
|
-
* owning facility's normalised level.
|
|
144
|
+
* Each switch follows the level of the building that owns it.
|
|
165
145
|
*
|
|
166
146
|
* Distinct from `CommandErrorCode.LimitReached`, which is a number against a
|
|
167
147
|
* number. This is a switch that is off, and the fix is an upgrade rather than
|
|
168
|
-
*
|
|
148
|
+
* making room.
|
|
169
149
|
*/
|
|
170
150
|
NotUnlocked: "notUnlocked",
|
|
171
151
|
/**
|
|
172
152
|
* Another vessel is on the launch site.
|
|
173
153
|
*
|
|
174
|
-
*
|
|
175
|
-
* `GetWarningTitle()`/`GetWarningDescription()` are the game's own words for
|
|
176
|
-
* it and ride on `CommandResult.detail`.
|
|
154
|
+
* The game's own words for it ride on `CommandResult.detail`.
|
|
177
155
|
*/
|
|
178
156
|
SiteOccupied: "siteOccupied",
|
|
179
157
|
/**
|
|
180
158
|
* The facility this command needs is destroyed or damaged.
|
|
181
|
-
*
|
|
182
|
-
* Decided by `PreFlightTests.FacilityOperational`, over
|
|
183
|
-
* `PSystemSetup.Instance.GetSpaceCenterFacility(name).GetFacilityDamage()`.
|
|
184
159
|
*/
|
|
185
160
|
FacilityDamaged: "facilityDamaged",
|
|
186
161
|
/**
|
|
187
162
|
* The command consumes a countable ITEM and there are not enough of them
|
|
188
163
|
* aboard.
|
|
189
164
|
*
|
|
190
|
-
*
|
|
191
|
-
* shows the cost, so the cost shown and the cost taken agree. The item is
|
|
192
|
-
* provider's to name: this code says only that there were too few, never
|
|
193
|
-
* item.
|
|
165
|
+
* The provider decides by its own charge, which it should also state wherever
|
|
166
|
+
* it shows the cost, so the cost shown and the cost taken agree. The item is
|
|
167
|
+
* the provider's to name: this code says only that there were too few, never
|
|
168
|
+
* which item.
|
|
194
169
|
*
|
|
195
170
|
* Separate from `CommandErrorCode.InsufficientFunds` and
|
|
196
171
|
* `CommandErrorCode.InsufficientScience`: a physical item cannot be bought.
|
|
@@ -292,7 +267,8 @@ export const FaultCode = {
|
|
|
292
267
|
PayloadSerializationError: "payloadSerializationError",
|
|
293
268
|
/**
|
|
294
269
|
* A `set-vantage`, or a command's `vantage`, naming a command centre that is
|
|
295
|
-
* not active.
|
|
270
|
+
* not active. The SCET alarm command is the exception: it refuses an inactive
|
|
271
|
+
* vantage with the `range` refusal instead.
|
|
296
272
|
*/
|
|
297
273
|
UnknownVantage: "unknownVantage",
|
|
298
274
|
/**
|
|
@@ -300,6 +276,19 @@ export const FaultCode = {
|
|
|
300
276
|
* it could run.
|
|
301
277
|
*/
|
|
302
278
|
CommandExpired: "commandExpired",
|
|
279
|
+
/**
|
|
280
|
+
* A command sent in a group was not sent because another command in the same
|
|
281
|
+
* group was refused, or because the group itself could not be sent. A group
|
|
282
|
+
* goes whole or not at all, so every member is refused with this one, and the
|
|
283
|
+
* message names the member that decided it.
|
|
284
|
+
*/
|
|
285
|
+
GroupRefused: "groupRefused",
|
|
286
|
+
/**
|
|
287
|
+
* A command sent in a group did not run because an earlier command in the same
|
|
288
|
+
* group failed at the craft. The earlier commands stay done, since a game
|
|
289
|
+
* action cannot be taken back; the message says which ran.
|
|
290
|
+
*/
|
|
291
|
+
GroupStopped: "groupStopped",
|
|
303
292
|
/**
|
|
304
293
|
* A cancel stopped the command before it ran.
|
|
305
294
|
*/
|
|
@@ -312,12 +301,14 @@ export const FaultCode = {
|
|
|
312
301
|
*/
|
|
313
302
|
UndoneByLoad: "undoneByLoad",
|
|
314
303
|
/**
|
|
315
|
-
* A continuous input, a throttle or a control axis, was dropped at a node
|
|
316
|
-
*
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
*
|
|
320
|
-
*
|
|
304
|
+
* A continuous input, a throttle or a control axis, was dropped at a node, a
|
|
305
|
+
* ground station or relay on the route to the craft, because the link onward
|
|
306
|
+
* was down there and it would have had to be held until it came back. Held and
|
|
307
|
+
* sent on later it would arrive as a run of out-of-date values, so a node that
|
|
308
|
+
* cannot send it on at once drops it. It was accepted with a warning when it
|
|
309
|
+
* was sent, and this is the news of its loss, arriving at the command centre
|
|
310
|
+
* that sent it once a report from that node could have reached it at light
|
|
311
|
+
* speed.
|
|
321
312
|
*/
|
|
322
313
|
ContinuousInputWouldWait: "continuousInputWouldWait",
|
|
323
314
|
/**
|
|
@@ -401,7 +392,7 @@ export const CORE_ERROR_CODES = [
|
|
|
401
392
|
refines: null,
|
|
402
393
|
origin: null,
|
|
403
394
|
sentence: "a limit has been reached",
|
|
404
|
-
meaning: "A capacity is full: the Astronaut Complex holds its cap of active crew, a facility holds its cap of anything else countable.\n\nA retry succeeds only once something changes, such as
|
|
395
|
+
meaning: "A capacity is full: the Astronaut Complex holds its cap of active crew, a facility holds its cap of anything else countable.\n\nA retry succeeds only once something changes, such as a kerbal leaving the active roster.\n\n`CommandResult.breach` carries the numbers, so a client can say \"16 of 16\".",
|
|
405
396
|
},
|
|
406
397
|
{
|
|
407
398
|
id: "alreadyAtMaximum",
|
|
@@ -425,7 +416,7 @@ export const CORE_ERROR_CODES = [
|
|
|
425
416
|
refines: null,
|
|
426
417
|
origin: null,
|
|
427
418
|
sentence: "there is not enough science",
|
|
428
|
-
meaning: "The command costs more science than is banked. Separate from `CommandErrorCode.InsufficientFunds`, as the game keeps science and funds separate currencies.\n\
|
|
419
|
+
meaning: "The command costs more science than is banked. Separate from `CommandErrorCode.InsufficientFunds`, as the game keeps science and funds separate currencies.\n\nThe cost is the one the game itself would charge, with every modifier applied.",
|
|
429
420
|
},
|
|
430
421
|
{
|
|
431
422
|
id: "careerModeRequired",
|
|
@@ -433,7 +424,7 @@ export const CORE_ERROR_CODES = [
|
|
|
433
424
|
refines: null,
|
|
434
425
|
origin: null,
|
|
435
426
|
sentence: "this save is not a career game",
|
|
436
|
-
meaning: "The save is not a career save, so this command's whole subsystem does not exist here.\n\
|
|
427
|
+
meaning: "The save is not a career save, so this command's whole subsystem does not exist here.\n\nA permanent property of the save, not a state that may change, so a client can hide the control rather than show it refused.",
|
|
437
428
|
},
|
|
438
429
|
{
|
|
439
430
|
id: "wrongScene",
|
|
@@ -441,7 +432,7 @@ export const CORE_ERROR_CODES = [
|
|
|
441
432
|
refines: null,
|
|
442
433
|
origin: null,
|
|
443
434
|
sentence: "the game is not in a scene that allows it",
|
|
444
|
-
meaning: "The game is in a scene this command cannot run from.\n\
|
|
435
|
+
meaning: "The game is in a scene this command cannot run from.\n\n`CommandResult.detail` names the scene when the producer had one.",
|
|
445
436
|
},
|
|
446
437
|
{
|
|
447
438
|
id: "wrongState",
|
|
@@ -449,7 +440,7 @@ export const CORE_ERROR_CODES = [
|
|
|
449
440
|
refines: null,
|
|
450
441
|
origin: null,
|
|
451
442
|
sentence: "it is not in a state that allows it",
|
|
452
|
-
meaning: "The entity is not in a state this transition applies to: an already-active strategy asked to activate, an already-researched node asked to unlock, a contract asked to accept when it is not offered, an assigned kerbal asked to be sacked, a spent experiment asked to deploy.\n\
|
|
443
|
+
meaning: "The entity is not in a state this transition applies to: an already-active strategy asked to activate, an already-researched node asked to unlock, a contract asked to accept when it is not offered, an assigned kerbal asked to be sacked, a spent experiment asked to deploy.\n\n`CommandResult.detail` can carry the state in the game's own words.",
|
|
453
444
|
},
|
|
454
445
|
{
|
|
455
446
|
id: "notClearToProceed",
|
|
@@ -457,7 +448,7 @@ export const CORE_ERROR_CODES = [
|
|
|
457
448
|
refines: null,
|
|
458
449
|
origin: null,
|
|
459
450
|
sentence: "the flight is not clear for it yet",
|
|
460
|
-
meaning: "Right command, wrong moment: the flight is not in a state that permits it yet, and will be later.\n\
|
|
451
|
+
meaning: "Right command, wrong moment: the flight is not in a state that permits it yet, and will be later.\n\nThe game gives five such reasons: in atmosphere, under acceleration, moving over the surface, about to crash, on a ladder; and a revert or a scene change can also be switched off by the save's own difficulty settings. The game's reason is on `CommandResult.detail`.\n\nAlso returned by the SCET alarm command for a vantage it cannot check because no command centre is known to the simulation yet: the main menu, and the ticks before the first capture. The same command refuses a vantage that is known and inactive with `CommandErrorCode.Range` instead, because that one does not resolve by waiting. Any other command naming an inactive vantage fails with the `unknownVantage` fault.\n\nDistinct from `CommandErrorCode.WrongState`, which is about the entity and does not resolve by waiting.",
|
|
461
452
|
},
|
|
462
453
|
{
|
|
463
454
|
id: "capabilityMismatch",
|
|
@@ -465,7 +456,7 @@ export const CORE_ERROR_CODES = [
|
|
|
465
456
|
refines: null,
|
|
466
457
|
origin: null,
|
|
467
458
|
sentence: "this craft cannot do it",
|
|
468
|
-
meaning: "The part or vessel does not have the capability this command needs: a rotor asked for a target angle, an unmotorised servo asked to drive, a part with no such action, an action present but inert, an autopilot mode this craft cannot hold.\n\
|
|
459
|
+
meaning: "The part or vessel does not have the capability this command needs: a rotor asked for a target angle, an unmotorised servo asked to drive, a part with no such action, an action present but inert, an autopilot mode this craft cannot hold.\n\nNothing an operator waits for. The craft would have to be different for this to work, which is why it is not `CommandErrorCode.NotClearToProceed` and not `CommandErrorCode.WrongState`.",
|
|
469
460
|
},
|
|
470
461
|
{
|
|
471
462
|
id: "noConnection",
|
|
@@ -473,7 +464,7 @@ export const CORE_ERROR_CODES = [
|
|
|
473
464
|
refines: null,
|
|
474
465
|
origin: null,
|
|
475
466
|
sentence: "there is no usable link",
|
|
476
|
-
meaning: "There is no usable link for what this command needs to send.\n\
|
|
467
|
+
meaning: "There is no usable link for what this command needs to send.\n\nThe vessel has no antenna that can carry the payload, such as a science transmission.",
|
|
477
468
|
},
|
|
478
469
|
{
|
|
479
470
|
id: "notUnlocked",
|
|
@@ -481,7 +472,7 @@ export const CORE_ERROR_CODES = [
|
|
|
481
472
|
refines: null,
|
|
482
473
|
origin: null,
|
|
483
474
|
sentence: "it has not been unlocked yet",
|
|
484
|
-
meaning: "The capability exists in the game but this save has not unlocked it: fuel transfer, custom action groups, flight planning, EVA, the maneuver tool.\n\
|
|
475
|
+
meaning: "The capability exists in the game but this save has not unlocked it: fuel transfer, custom action groups, flight planning, EVA, the maneuver tool.\n\nEach switch follows the level of the building that owns it.\n\nDistinct from `CommandErrorCode.LimitReached`, which is a number against a number. This is a switch that is off, and the fix is an upgrade rather than making room.",
|
|
485
476
|
},
|
|
486
477
|
{
|
|
487
478
|
id: "siteOccupied",
|
|
@@ -489,7 +480,7 @@ export const CORE_ERROR_CODES = [
|
|
|
489
480
|
refines: null,
|
|
490
481
|
origin: null,
|
|
491
482
|
sentence: "another vessel is on the launch site",
|
|
492
|
-
meaning: "Another vessel is on the launch site.\n\
|
|
483
|
+
meaning: "Another vessel is on the launch site.\n\nThe game's own words for it ride on `CommandResult.detail`.",
|
|
493
484
|
},
|
|
494
485
|
{
|
|
495
486
|
id: "facilityDamaged",
|
|
@@ -497,7 +488,7 @@ export const CORE_ERROR_CODES = [
|
|
|
497
488
|
refines: null,
|
|
498
489
|
origin: null,
|
|
499
490
|
sentence: "the building is out of action",
|
|
500
|
-
meaning: "The facility this command needs is destroyed or damaged
|
|
491
|
+
meaning: "The facility this command needs is destroyed or damaged.",
|
|
501
492
|
},
|
|
502
493
|
{
|
|
503
494
|
id: "insufficientResource",
|
|
@@ -505,7 +496,7 @@ export const CORE_ERROR_CODES = [
|
|
|
505
496
|
refines: null,
|
|
506
497
|
origin: null,
|
|
507
498
|
sentence: "there are not enough of what it uses aboard",
|
|
508
|
-
meaning: "The command consumes a countable ITEM and there are not enough of them aboard.\n\
|
|
499
|
+
meaning: "The command consumes a countable ITEM and there are not enough of them aboard.\n\nThe provider decides by its own charge, which it should also state wherever it shows the cost, so the cost shown and the cost taken agree. The item is the provider's to name: this code says only that there were too few, never which item.\n\nSeparate from `CommandErrorCode.InsufficientFunds` and `CommandErrorCode.InsufficientScience`: a physical item cannot be bought.\n\nNot `CommandErrorCode.LimitReached`, which is a capacity that is full. This is a store that is empty.",
|
|
509
500
|
},
|
|
510
501
|
{
|
|
511
502
|
id: "unreadable",
|
|
@@ -601,7 +592,7 @@ export const CORE_ERROR_CODES = [
|
|
|
601
592
|
refines: null,
|
|
602
593
|
origin: "mod",
|
|
603
594
|
sentence: "that command centre is not active",
|
|
604
|
-
meaning: "A `set-vantage`, or a command's `vantage`, naming a command centre that is not active.",
|
|
595
|
+
meaning: "A `set-vantage`, or a command's `vantage`, naming a command centre that is not active. The SCET alarm command is the exception: it refuses an inactive vantage with the `range` refusal instead.",
|
|
605
596
|
},
|
|
606
597
|
{
|
|
607
598
|
id: "commandExpired",
|
|
@@ -611,6 +602,22 @@ export const CORE_ERROR_CODES = [
|
|
|
611
602
|
sentence: "it expired before it could run",
|
|
612
603
|
meaning: "A held command reached its expiry, or its place on the lane passed, before it could run.",
|
|
613
604
|
},
|
|
605
|
+
{
|
|
606
|
+
id: "groupRefused",
|
|
607
|
+
kind: "fault",
|
|
608
|
+
refines: null,
|
|
609
|
+
origin: "mod",
|
|
610
|
+
sentence: "a command sent with it was refused, so it was not sent or run",
|
|
611
|
+
meaning: "A command sent in a group was not sent because another command in the same group was refused, or because the group itself could not be sent. A group goes whole or not at all, so every member is refused with this one, and the message names the member that decided it.",
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
id: "groupStopped",
|
|
615
|
+
kind: "fault",
|
|
616
|
+
refines: null,
|
|
617
|
+
origin: "mod",
|
|
618
|
+
sentence: "an earlier command sent with it failed, so it did not run",
|
|
619
|
+
meaning: "A command sent in a group did not run because an earlier command in the same group failed at the craft. The earlier commands stay done, since a game action cannot be taken back; the message says which ran.",
|
|
620
|
+
},
|
|
614
621
|
{
|
|
615
622
|
id: "commandCancelled",
|
|
616
623
|
kind: "fault",
|
|
@@ -633,7 +640,7 @@ export const CORE_ERROR_CODES = [
|
|
|
633
640
|
refines: null,
|
|
634
641
|
origin: "mod",
|
|
635
642
|
sentence: "it would wait on its way, and a continuous input cannot",
|
|
636
|
-
meaning: "A continuous input, a throttle or a control axis, was dropped at a node
|
|
643
|
+
meaning: "A continuous input, a throttle or a control axis, was dropped at a node, a ground station or relay on the route to the craft, because the link onward was down there and it would have had to be held until it came back. Held and sent on later it would arrive as a run of out-of-date values, so a node that cannot send it on at once drops it. It was accepted with a warning when it was sent, and this is the news of its loss, arriving at the command centre that sent it once a report from that node could have reached it at light speed.",
|
|
637
644
|
},
|
|
638
645
|
{
|
|
639
646
|
id: "undelivered",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-codes.js","sourceRoot":"","sources":["../../src/__generated__/error-codes.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,gFAAgF;AAChF,4EAA4E;AAC5E,+BAA+B;AAsB/B;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;;OAGG;IACH,eAAe,EAAE,iBAAiB;IAClC;;OAEG;IACH,KAAK,EAAE,OAAO;IACd;;;OAGG;IACH,QAAQ,EAAE,UAAU;IACpB;;;;;;;OAOG;IACH,YAAY,EAAE,cAAc;IAC5B
|
|
1
|
+
{"version":3,"file":"error-codes.js","sourceRoot":"","sources":["../../src/__generated__/error-codes.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,gFAAgF;AAChF,4EAA4E;AAC5E,+BAA+B;AAsB/B;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;;OAGG;IACH,eAAe,EAAE,iBAAiB;IAClC;;OAEG;IACH,KAAK,EAAE,OAAO;IACd;;;OAGG;IACH,QAAQ,EAAE,UAAU;IACpB;;;;;;;OAOG;IACH,YAAY,EAAE,cAAc;IAC5B;;;;;;;;OAQG;IACH,YAAY,EAAE,cAAc;IAC5B;;;;;;OAMG;IACH,gBAAgB,EAAE,kBAAkB;IACpC;;;;;;OAMG;IACH,iBAAiB,EAAE,mBAAmB;IACtC;;;;;;;OAOG;IACH,mBAAmB,EAAE,qBAAqB;IAC1C;;;;;;OAMG;IACH,kBAAkB,EAAE,oBAAoB;IACxC;;;;OAIG;IACH,UAAU,EAAE,YAAY;IACxB;;;;;;;OAOG;IACH,UAAU,EAAE,YAAY;IACxB;;;;;;;;;;;;;;;;;;OAkBG;IACH,iBAAiB,EAAE,mBAAmB;IACtC;;;;;;;;;OASG;IACH,kBAAkB,EAAE,oBAAoB;IACxC;;;;;OAKG;IACH,YAAY,EAAE,cAAc;IAC5B;;;;;;;;;OASG;IACH,WAAW,EAAE,aAAa;IAC1B;;;;OAIG;IACH,YAAY,EAAE,cAAc;IAC5B;;OAEG;IACH,eAAe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6CAA6C;QACvD,OAAO,EAAE,kEAAkE;KAC5E;IACD;QACE,EAAE,EAAE,eAAe;QACnB,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE,4CAA4C;QACtD,OAAO,EAAE,2FAA2F;KACrG;IACD;QACE,EAAE,EAAE,kBAAkB;QACtB,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE,qCAAqC;QAC/C,OAAO,EAAE,0EAA0E;KACpF;IACD;QACE,EAAE,EAAE,UAAU;QACd,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE,8CAA8C;QACxD,OAAO,EAAE,iFAAiF;KAC3F;IACD;QACE,EAAE,EAAE,cAAc;QAClB,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE,sBAAsB;QAChC,OAAO,EAAE,4GAA4G;KACtH;CACF,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const GENERATED_TEST_THEME: {
|
|
2
|
+
/** Colour roles as `var(--color-...)` references: text, surfaces, borders, the accent and the focus ring. */
|
|
2
3
|
readonly colors: {
|
|
3
4
|
readonly text: {
|
|
4
5
|
readonly primary: "var(--color-text-primary)";
|
|
@@ -23,6 +24,7 @@ export declare const GENERATED_TEST_THEME: {
|
|
|
23
24
|
};
|
|
24
25
|
readonly focus: "var(--color-focus)";
|
|
25
26
|
};
|
|
27
|
+
/** The monospace family, font sizes as `var(--font-size-...)` references, weights as numbers and letter spacings in `em`. */
|
|
26
28
|
readonly typography: {
|
|
27
29
|
readonly family: {
|
|
28
30
|
readonly mono: "var(--font-family-mono)";
|
|
@@ -44,6 +46,7 @@ export declare const GENERATED_TEST_THEME: {
|
|
|
44
46
|
readonly body: "0";
|
|
45
47
|
};
|
|
46
48
|
};
|
|
49
|
+
/** Whole CSS border declarations, such as `1px solid var(--color-border-subtle)`. */
|
|
47
50
|
readonly borders: {
|
|
48
51
|
readonly subtle: "1px solid var(--color-border-subtle)";
|
|
49
52
|
readonly strong: "1px solid var(--color-border-strong)";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-theme.d.ts","sourceRoot":"","sources":["../../src/__generated__/test-theme.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"test-theme.d.ts","sourceRoot":"","sources":["../../src/__generated__/test-theme.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,oBAAoB;IAC/B,6GAA6G;;;;;;;;;;;;;;;;;;;;;;;;;IAyB7G,6HAA6H;;;;;;;;;;;;;;;;;;;;;;IAsB7H,qFAAqF;;;;;CAK7E,CAAC"}
|