@ksp-gonogo/sitrep-sdk 1.0.0-rc.47 → 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.
Files changed (234) hide show
  1. package/dist/__generated__/contract.d.ts +232 -79
  2. package/dist/__generated__/contract.d.ts.map +1 -1
  3. package/dist/__generated__/contract.js.map +1 -1
  4. package/dist/__generated__/delay-roles.d.ts +1 -1
  5. package/dist/__generated__/delay-roles.d.ts.map +1 -1
  6. package/dist/__generated__/delay-roles.js +2 -0
  7. package/dist/__generated__/delay-roles.js.map +1 -1
  8. package/dist/__generated__/error-codes.d.ts +11 -11
  9. package/dist/__generated__/error-codes.d.ts.map +1 -1
  10. package/dist/__generated__/error-codes.js +12 -12
  11. package/dist/__generated__/error-codes.js.map +1 -1
  12. package/dist/__generated__/sample-kinds.d.ts +3 -1
  13. package/dist/__generated__/sample-kinds.d.ts.map +1 -1
  14. package/dist/__generated__/sample-kinds.js +3 -1
  15. package/dist/__generated__/sample-kinds.js.map +1 -1
  16. package/dist/__generated__/topic-map.d.ts +15 -11
  17. package/dist/__generated__/topic-map.d.ts.map +1 -1
  18. package/dist/__generated__/topic-map.js +3 -1
  19. package/dist/__generated__/topic-map.js.map +1 -1
  20. package/dist/__generated__/units.d.ts +2 -0
  21. package/dist/__generated__/units.d.ts.map +1 -1
  22. package/dist/__generated__/units.js +66 -35
  23. package/dist/__generated__/units.js.map +1 -1
  24. package/dist/api/contribution-slots.d.ts +28 -30
  25. package/dist/api/contribution-slots.d.ts.map +1 -1
  26. package/dist/api/contribution-slots.js +4 -4
  27. package/dist/api/contribution-slots.js.map +1 -1
  28. package/dist/api/error-codes.d.ts +3 -2
  29. package/dist/api/error-codes.d.ts.map +1 -1
  30. package/dist/api/error-codes.js +3 -2
  31. package/dist/api/error-codes.js.map +1 -1
  32. package/dist/api/index.d.ts +9 -7
  33. package/dist/api/index.d.ts.map +1 -1
  34. package/dist/api/index.js +7 -5
  35. package/dist/api/index.js.map +1 -1
  36. package/dist/api/logger-contract.d.ts +2 -1
  37. package/dist/api/logger-contract.d.ts.map +1 -1
  38. package/dist/api/logger.d.ts +6 -3
  39. package/dist/api/logger.d.ts.map +1 -1
  40. package/dist/api/logger.js +6 -3
  41. package/dist/api/logger.js.map +1 -1
  42. package/dist/api/plot-layers.d.ts +1 -1
  43. package/dist/api/plot-layers.js +1 -1
  44. package/dist/api/registry.d.ts +4 -2
  45. package/dist/api/registry.d.ts.map +1 -1
  46. package/dist/api/registry.js +4 -2
  47. package/dist/api/registry.js.map +1 -1
  48. package/dist/api/slots.d.ts +37 -37
  49. package/dist/api/slots.d.ts.map +1 -1
  50. package/dist/api/station-brokers.d.ts +12 -10
  51. package/dist/api/station-brokers.d.ts.map +1 -1
  52. package/dist/api/station-brokers.js +12 -10
  53. package/dist/api/station-brokers.js.map +1 -1
  54. package/dist/api/tiny-size.d.ts +2 -1
  55. package/dist/api/tiny-size.d.ts.map +1 -1
  56. package/dist/api/tiny-size.js +2 -1
  57. package/dist/api/tiny-size.js.map +1 -1
  58. package/dist/api/tone.d.ts +1 -1
  59. package/dist/api/types.d.ts +26 -21
  60. package/dist/api/types.d.ts.map +1 -1
  61. package/dist/binary-frame.d.ts +4 -4
  62. package/dist/binary-frame.js +2 -2
  63. package/dist/combine-readings.d.ts +4 -3
  64. package/dist/combine-readings.d.ts.map +1 -1
  65. package/dist/combine-readings.js +4 -3
  66. package/dist/combine-readings.js.map +1 -1
  67. package/dist/compat-versions.d.ts +1 -1
  68. package/dist/compat-versions.js +3 -3
  69. package/dist/contract-enum-names.d.ts +2 -2
  70. package/dist/contract-enum-names.js +2 -2
  71. package/dist/delay-roles.d.ts +6 -0
  72. package/dist/delay-roles.d.ts.map +1 -1
  73. package/dist/delay-roles.js +1 -0
  74. package/dist/delay-roles.js.map +1 -1
  75. package/dist/index.js +1 -1
  76. package/dist/index.js.map +1 -1
  77. package/dist/ksp-enum-names.d.ts +4 -3
  78. package/dist/ksp-enum-names.d.ts.map +1 -1
  79. package/dist/ksp-enum-names.js +4 -3
  80. package/dist/ksp-enum-names.js.map +1 -1
  81. package/dist/locked.d.ts +1 -1
  82. package/dist/locked.js +1 -1
  83. package/dist/media/radio-support.d.ts +8 -7
  84. package/dist/media/radio-support.d.ts.map +1 -1
  85. package/dist/media/radio-support.js +5 -6
  86. package/dist/media/radio-support.js.map +1 -1
  87. package/dist/perf/PerfBudget.d.ts +2 -2
  88. package/dist/perf/PerfBudget.js +2 -2
  89. package/dist/raw-field-split.d.ts +1 -1
  90. package/dist/raw-field-split.js +1 -1
  91. package/dist/reading.d.ts +6 -6
  92. package/dist/reading.js +5 -5
  93. package/dist/reads-index.json +28 -0
  94. package/dist/spine/capability-lock.d.ts +1 -1
  95. package/dist/spine/catalog-fallback.d.ts +28 -0
  96. package/dist/spine/catalog-fallback.d.ts.map +1 -0
  97. package/dist/spine/catalog-fallback.js +120 -0
  98. package/dist/spine/catalog-fallback.js.map +1 -0
  99. package/dist/spine/centre-commands.d.ts +4 -0
  100. package/dist/spine/centre-commands.d.ts.map +1 -1
  101. package/dist/spine/centre-commands.js +13 -1
  102. package/dist/spine/centre-commands.js.map +1 -1
  103. package/dist/spine/client-timeline.d.ts +21 -4
  104. package/dist/spine/client-timeline.d.ts.map +1 -1
  105. package/dist/spine/client-timeline.js +69 -7
  106. package/dist/spine/client-timeline.js.map +1 -1
  107. package/dist/spine/client.d.ts +4 -0
  108. package/dist/spine/client.d.ts.map +1 -1
  109. package/dist/spine/client.js +59 -4
  110. package/dist/spine/client.js.map +1 -1
  111. package/dist/spine/command-gate.d.ts +1 -1
  112. package/dist/spine/command-gate.d.ts.map +1 -1
  113. package/dist/spine/command-gate.js +2 -1
  114. package/dist/spine/command-gate.js.map +1 -1
  115. package/dist/spine/command-outcomes.d.ts +13 -0
  116. package/dist/spine/command-outcomes.d.ts.map +1 -1
  117. package/dist/spine/command-outcomes.js +58 -1
  118. package/dist/spine/command-outcomes.js.map +1 -1
  119. package/dist/spine/context.d.ts +19 -1
  120. package/dist/spine/context.d.ts.map +1 -1
  121. package/dist/spine/context.js +26 -0
  122. package/dist/spine/context.js.map +1 -1
  123. package/dist/spine/core-reckoners.d.ts.map +1 -1
  124. package/dist/spine/core-reckoners.js +1 -34
  125. package/dist/spine/core-reckoners.js.map +1 -1
  126. package/dist/spine/delay-estimate.d.ts +41 -0
  127. package/dist/spine/delay-estimate.d.ts.map +1 -0
  128. package/dist/spine/delay-estimate.js +70 -0
  129. package/dist/spine/delay-estimate.js.map +1 -0
  130. package/dist/spine/index.d.ts +1 -0
  131. package/dist/spine/index.d.ts.map +1 -1
  132. package/dist/spine/index.js +1 -0
  133. package/dist/spine/index.js.map +1 -1
  134. package/dist/spine/lock-scope.d.ts +2 -2
  135. package/dist/spine/processors.d.ts +1 -1
  136. package/dist/spine/processors.d.ts.map +1 -1
  137. package/dist/spine/slot-ids.d.ts +1 -1
  138. package/dist/spine/slot-ids.d.ts.map +1 -1
  139. package/dist/spine/slot-ids.js +4 -4
  140. package/dist/spine/slot-ids.js.map +1 -1
  141. package/dist/spine/timeline-store.d.ts +103 -5
  142. package/dist/spine/timeline-store.d.ts.map +1 -1
  143. package/dist/spine/timeline-store.js +392 -21
  144. package/dist/spine/timeline-store.js.map +1 -1
  145. package/dist/spine/uplink-clients.d.ts +1 -1
  146. package/dist/spine/uplink-clients.d.ts.map +1 -1
  147. package/dist/spine/uplink-health.d.ts +15 -4
  148. package/dist/spine/uplink-health.d.ts.map +1 -1
  149. package/dist/spine/uplink-health.js +4 -1
  150. package/dist/spine/uplink-health.js.map +1 -1
  151. package/dist/spine/use-command.d.ts.map +1 -1
  152. package/dist/spine/use-command.js +51 -3
  153. package/dist/spine/use-command.js.map +1 -1
  154. package/dist/testing/install-act-gate-stretch.d.ts +1 -2
  155. package/dist/testing/install-act-gate-stretch.d.ts.map +1 -1
  156. package/dist/testing/install-act-gate-stretch.js +1 -2
  157. package/dist/testing/install-act-gate-stretch.js.map +1 -1
  158. package/dist/testing/render.d.ts +16 -3
  159. package/dist/testing/render.d.ts.map +1 -1
  160. package/dist/testing/render.js +16 -3
  161. package/dist/testing/render.js.map +1 -1
  162. package/dist/topics.d.ts +10 -11
  163. package/dist/topics.d.ts.map +1 -1
  164. package/dist/topics.js +9 -10
  165. package/dist/topics.js.map +1 -1
  166. package/dist/uplink-externals.d.ts +17 -7
  167. package/dist/uplink-externals.d.ts.map +1 -1
  168. package/dist/uplink-externals.js +17 -7
  169. package/dist/uplink-externals.js.map +1 -1
  170. package/dist/uplink-manifest.d.ts +8 -3
  171. package/dist/uplink-manifest.d.ts.map +1 -1
  172. package/dist/uplink-manifest.js +5 -1
  173. package/dist/uplink-manifest.js.map +1 -1
  174. package/package.json +1 -1
  175. package/src/__generated__/contract.ts +230 -76
  176. package/src/__generated__/delay-roles.ts +2 -0
  177. package/src/__generated__/error-codes.ts +13 -13
  178. package/src/__generated__/sample-kinds.ts +3 -1
  179. package/src/__generated__/topic-map.ts +19 -11
  180. package/src/__generated__/units.json +66 -35
  181. package/src/__generated__/units.ts +66 -35
  182. package/src/api/contribution-slots.ts +32 -34
  183. package/src/api/error-codes.ts +3 -2
  184. package/src/api/index.ts +15 -13
  185. package/src/api/logger-contract.ts +2 -1
  186. package/src/api/logger.ts +6 -3
  187. package/src/api/plot-layers.ts +1 -1
  188. package/src/api/registry.ts +4 -2
  189. package/src/api/slots.ts +37 -37
  190. package/src/api/station-brokers.ts +12 -10
  191. package/src/api/tiny-size.ts +2 -1
  192. package/src/api/tone.ts +1 -1
  193. package/src/api/types.ts +26 -21
  194. package/src/binary-frame.ts +4 -4
  195. package/src/combine-readings.ts +4 -3
  196. package/src/compat-versions.ts +3 -3
  197. package/src/contract-enum-names.ts +2 -2
  198. package/src/delay-roles.ts +7 -0
  199. package/src/index.ts +1 -1
  200. package/src/ksp-enum-names.ts +4 -3
  201. package/src/locked.ts +1 -1
  202. package/src/media/radio-support.ts +8 -7
  203. package/src/perf/PerfBudget.ts +2 -2
  204. package/src/raw-field-split.ts +1 -1
  205. package/src/reading.ts +6 -6
  206. package/src/spine/__fixtures__/switch/back-to-craft.jsonl +101 -0
  207. package/src/spine/__fixtures__/switch/late-sent-frame.jsonl +16 -0
  208. package/src/spine/__fixtures__/switch/linked-craft.jsonl +63 -0
  209. package/src/spine/__fixtures__/switch/station-trim.jsonl +229 -0
  210. package/src/spine/__fixtures__/switch/switch-with-scene.jsonl +110 -0
  211. package/src/spine/__fixtures__/switch/unlinked-craft.jsonl +46 -0
  212. package/src/spine/capability-lock.ts +1 -1
  213. package/src/spine/catalog-fallback.ts +152 -0
  214. package/src/spine/centre-commands.ts +25 -1
  215. package/src/spine/client-timeline.ts +73 -7
  216. package/src/spine/client.ts +74 -4
  217. package/src/spine/command-gate.ts +3 -2
  218. package/src/spine/command-outcomes.ts +62 -1
  219. package/src/spine/context.tsx +35 -2
  220. package/src/spine/core-reckoners.ts +1 -40
  221. package/src/spine/delay-estimate.ts +88 -0
  222. package/src/spine/index.ts +1 -0
  223. package/src/spine/lock-scope.ts +2 -2
  224. package/src/spine/processors.ts +1 -1
  225. package/src/spine/slot-ids.ts +4 -4
  226. package/src/spine/timeline-store.ts +461 -18
  227. package/src/spine/uplink-clients.ts +1 -1
  228. package/src/spine/uplink-health.ts +16 -3
  229. package/src/spine/use-command.ts +67 -2
  230. package/src/testing/install-act-gate-stretch.ts +1 -2
  231. package/src/testing/render.tsx +16 -3
  232. package/src/topics.ts +9 -10
  233. package/src/uplink-externals.ts +17 -7
  234. package/src/uplink-manifest.ts +8 -3
@@ -2,6 +2,31 @@ import { Value, Vec3Of } from '../value.js';
2
2
  import { ProviderExtensions } from '../extensions.js';
3
3
  import { CommandErrorCode, FaultCode } from './error-codes.js';
4
4
  /**
5
+ * Which vessel the game is flying right now: its id and name, and nothing of
6
+ * where it is or how it is doing. Changing the active vessel is a change of
7
+ * scene that every command centre can see whatever the radio link to the new
8
+ * vessel, so this is read with no signal delay and does not depend on a link.
9
+ * Useful for naming the craft the operator is flying while its telemetry has
10
+ * not arrived. Used by the dashboard header.
11
+ *
12
+ * The payload is `null` (no key emitted) outside the flight scene. It carries
13
+ * no per-payload `Meta` of its own (the envelope's applies). Position,
14
+ * situation, distance and link state of the vessel are not here and reach a
15
+ * centre only through `vessel.identity` and the other `vessel.*` Topics,
16
+ * delayed.
17
+ *
18
+ * @category Flights
19
+ */
20
+ export interface ActiveVessel {
21
+ /**
22
+ * The vessel's stable guid, the same id `vessel.identity` carries once its
23
+ * telemetry arrives.
24
+ */
25
+ vesselId: string;
26
+ /** The vessel's display name. */
27
+ name: string;
28
+ }
29
+ /**
5
30
  * The JSON header of a binary frame: everything about the delivery except the
6
31
  * bytes themselves.
7
32
  *
@@ -1266,6 +1291,14 @@ export interface CommandCentreEntry {
1266
1291
  * no delay to quote.
1267
1292
  */
1268
1293
  delayQuality?: string | null;
1294
+ /**
1295
+ * Whether commands can be sent from this centre: absent or true for every
1296
+ * centre that can, false for a craft with a kerbal aboard that is listed only
1297
+ * so a message can be addressed to it. Such an entry is never a vantage to
1298
+ * choose, is not active, and has no command rights; what is said to it waits
1299
+ * in its ledger until a screen sits aboard.
1300
+ */
1301
+ commandable?: boolean | null;
1269
1302
  }
1270
1303
  /**
1271
1304
  * One command centre that was on `commandCentre.roster` earlier in this
@@ -1398,8 +1431,10 @@ export interface CentreDelayEntry {
1398
1431
  * **Sparse.** A centre is listed only when it has a delay of its own. The home
1399
1432
  * centre is never listed: its delay is `comms.delay`, which also carries the
1400
1433
  * hold through a loss of signal. A centre other than home that is not listed
1401
- * has no route to the craft. Neither absence is a zero, so a client must not
1402
- * quote a delay for a centre that is missing from the list.
1434
+ * has either no route to the craft or has not yet heard it, and
1435
+ * `CommandCentreActiveVesselDelay.noRoute` says which for the receiving
1436
+ * centre. Neither absence is a zero, so a client must not quote a delay for a
1437
+ * centre that is missing from the list.
1403
1438
  *
1404
1439
  * A crewed centre that is the active craft is listed at an explicit zero: a
1405
1440
  * craft is no distance from itself.
@@ -1414,6 +1449,15 @@ export interface CentreDelayEntry {
1414
1449
  export interface CommandCentreActiveVesselDelay {
1415
1450
  /** Every centre with a delay of its own to the active craft. */
1416
1451
  centres: CentreDelayEntry[];
1452
+ /**
1453
+ * Whether the command centre this payload is sent to has no route to the
1454
+ * active craft, so nothing the craft sends will ever reach it. False while the
1455
+ * centre has a route, including the first signal delay after a switch to it,
1456
+ * when the craft's first report is still on its way. A screen at a centre with
1457
+ * this set has no link to report on and should say so rather than wait for a
1458
+ * first signal.
1459
+ */
1460
+ noRoute: boolean;
1417
1461
  }
1418
1462
  /**
1419
1463
  * One gated command and what its gate says right now, evaluated with no
@@ -1802,7 +1846,7 @@ export interface CommcastMessageSendArgs {
1802
1846
  /**
1803
1847
  * What `commcast.message.send` (args `CommcastMessageSendArgs`) did with a
1804
1848
  * message: which command centres it left for, and which it could not leave
1805
- * for. `commcast.message.send` is the command, of the core mod's Commcast
1849
+ * for. `commcast.message.send` is the command, of Commcast, the Gonogo mod's
1806
1850
  * group messaging and radio, that sends a text message to a group of command
1807
1851
  * centres. A centre is a `commandCentre.roster` entry, a place commands are
1808
1852
  * sent from. It says nothing of arrival: a listener is a centre that receives
@@ -1822,11 +1866,21 @@ export interface CommcastSendReceipt {
1822
1866
  addressed: string[];
1823
1867
  /**
1824
1868
  * Every member it was meant for that no signal from the speaker could reach
1825
- * when it was said, sorted by id. The message was never sent to these centres,
1826
- * so none of them will ever acknowledge it; to reach them, send it again later
1827
- * naming them in `to`.
1869
+ * when it was said, sorted by id, and that the host cannot keep the message
1870
+ * for either. The message was never sent to these centres, so none of them
1871
+ * will ever acknowledge it; to reach them, send it again later naming them in
1872
+ * `to`. Empty on a host that keeps messages for centres it cannot reach yet,
1873
+ * which lists those in `CommcastSendReceipt.queued` instead.
1828
1874
  */
1829
1875
  unreached: string[];
1876
+ /**
1877
+ * Every member it was meant for that no signal from the speaker could reach
1878
+ * when it was said, and that the host is keeping the message for, sorted by
1879
+ * id. It is carried to each as soon as a path opens, kept with the game until
1880
+ * then, and the member acknowledges it when a screen at its centre reads it.
1881
+ * Absent from a host that keeps nothing.
1882
+ */
1883
+ queued?: string[] | null;
1830
1884
  }
1831
1885
  /**
1832
1886
  * Tell a message's author it arrived. The acknowledgement travels back to the
@@ -1871,37 +1925,49 @@ export interface CommcastRadioTransmitArgs {
1871
1925
  author: CommcastAuthor;
1872
1926
  }
1873
1927
  /**
1874
- * One item of `commcast.traffic`: something said to a group this vantage
1875
- * belongs to, delivered one signal delay after it was said from where it was
1876
- * said.
1928
+ * One command centre's ledger of messages: what it said, and what reached it,
1929
+ * as the state `commcast.ledger` carries.
1930
+ *
1931
+ * **State, read like telemetry.** A message is a command from one centre to
1932
+ * another. It travels like any command, waiting for a path and cancellable
1933
+ * from the sender's uplink queue, and what it does on arrival is write this
1934
+ * ledger at the recipient. A screen reads the ledger as the latest value of a
1935
+ * state, and a screen that opens at a centre later is told the whole ledger on
1936
+ * connecting.
1877
1937
  *
1878
- * **Addressed, never broadcast.** A connection receives only the items
1879
- * addressed to its own vantage. A group's members are addressed as the speaker
1880
- * could see them when it spoke, so a centre added far away starts receiving
1881
- * once word of it has reached the speaker, and a member with no path from the
1882
- * speaker misses what was said.
1938
+ * **Addressed, never broadcast.** A connection receives only the ledger of its
1939
+ * own vantage.
1883
1940
  *
1884
- * **A stream, not state.** Nothing is replayed to a connection that subscribes
1885
- * after an item reached it, as with anything heard on a radio.
1941
+ * @category Comms
1942
+ */
1943
+ export interface CommcastLedger {
1944
+ /**
1945
+ * Every entry the ledger keeps, oldest first: what this centre said and what
1946
+ * reached it.
1947
+ */
1948
+ items: CommcastLedgerItem[];
1949
+ }
1950
+ /**
1951
+ * One entry of a centre's ledger.
1952
+ *
1953
+ * Two kinds, by `CommcastLedgerItem.kind`:
1886
1954
  *
1887
- * Three kinds, by `CommcastTraffic.kind`:
1955
+ * - `"members"`: a group opened or grew. `CommcastLedgerItem.members` is its
1956
+ * whole membership after the change, `CommcastLedgerItem.added` who came in
1957
+ * - `"text"`: a message, `CommcastLedgerItem.id` and `CommcastLedgerItem.body`
1888
1958
  *
1889
- * - `"members"`: a group opened or grew. `CommcastTraffic.members` is its
1890
- * whole membership after the change, `CommcastTraffic.added` who came in
1891
- * - `"text"`: a message, `CommcastTraffic.id` and `CommcastTraffic.body`. It
1892
- * is also delivered, at once, to the speaker's own centre
1893
- * (`CommcastTraffic.to` names it), where another screen at that centre reads
1894
- * it as an outgoing message rather than a received one
1895
- * - `"ack"`: a member acknowledging `CommcastTraffic.messageId`, addressed to
1896
- * that message's author alone
1959
+ * An entry this centre said has no `CommcastLedgerItem.arrivedUt` and carries
1960
+ * how each recipient stands: `CommcastLedgerItem.delivered`,
1961
+ * `CommcastLedgerItem.ended` and `CommcastLedgerItem.read`. An entry that
1962
+ * reached this centre has `CommcastLedgerItem.arrivedUt` and none of those.
1897
1963
  *
1898
1964
  * @category Comms
1899
1965
  */
1900
- export interface CommcastTraffic {
1901
- /** `"members"`, `"text"` or `"ack"`. */
1966
+ export interface CommcastLedgerItem {
1967
+ /** `"members"` or `"text"`. */
1902
1968
  kind: string;
1903
- /** A text message's own id, or a membership change's. Absent from an ack. */
1904
- id?: string | null;
1969
+ /** A text message's own id, or a membership change's. */
1970
+ id: string;
1905
1971
  /** The group, by the id it was opened with. */
1906
1972
  groupId: string;
1907
1973
  /**
@@ -1911,7 +1977,7 @@ export interface CommcastTraffic {
1911
1977
  from: string;
1912
1978
  /** How the speaker describes itself, for display only. */
1913
1979
  author: CommcastAuthor;
1914
- /** The UT it was said at, which is also this delivery's `meta.validAt`. */
1980
+ /** The UT it was said at. */
1915
1981
  sentUt: Value<"ut">;
1916
1982
  /**
1917
1983
  * Everyone it was addressed to, the speaker included, as the speaker could see
@@ -1924,26 +1990,53 @@ export interface CommcastTraffic {
1924
1990
  added?: string[] | null;
1925
1991
  /** A `"text"` message's words. Absent otherwise. */
1926
1992
  body?: string | null;
1927
- /** The message an `"ack"` acknowledges. Absent otherwise. */
1928
- messageId?: string | null;
1929
- /**
1930
- * A `"text"` message's one-way signal delay from `CommcastTraffic.from` to
1931
- * each other centre in `CommcastTraffic.to`, keyed by that centre's id, as the
1932
- * speaker's connection was delayed when it spoke. The speaker's own centre is
1933
- * not a key. A screen at the speaker's own centre reads it to show the message
1934
- * crossing, and an absent map means the sender did not say. Absent from every
1935
- * other kind.
1936
- */
1937
- oneWaySeconds?: {
1938
- [key: string]: Value<"s">;
1993
+ /** The UT it reached this centre. Absent from an entry this centre said. */
1994
+ arrivedUt?: Value<"ut"> | null;
1995
+ /**
1996
+ * For an entry this centre said: the UT each recipient's copy ran, keyed by
1997
+ * recipient, as the reply reached here. A recipient with no key has not been
1998
+ * heard from.
1999
+ */
2000
+ delivered?: {
2001
+ [key: string]: Value<"ut">;
2002
+ } | null;
2003
+ /**
2004
+ * For an entry this centre said: how a recipient's copy ended without running,
2005
+ * `"cancelled"` or `"expired"`, keyed by recipient.
2006
+ */
2007
+ ended?: {
2008
+ [key: string]: string;
2009
+ } | null;
2010
+ /**
2011
+ * For an entry this centre said: when a screen at each recipient read it,
2012
+ * keyed by recipient, as the notice reached here.
2013
+ */
2014
+ read?: {
2015
+ [key: string]: CommcastRead;
1939
2016
  } | null;
1940
2017
  }
1941
2018
  /**
2019
+ * A recipient's screen reading a message: when, and who read it.
2020
+ *
2021
+ * @category Comms
2022
+ */
2023
+ export interface CommcastRead {
2024
+ /** The UT a screen at the recipient read it. */
2025
+ at: Value<"ut">;
2026
+ /** The reading device's own stable key. */
2027
+ stationKey: string;
2028
+ /**
2029
+ * Which end of the light-path the screen that read it sits at, in the client's
2030
+ * own vocabulary.
2031
+ */
2032
+ seat: string;
2033
+ }
2034
+ /**
1942
2035
  * The first segment of every `commcast.radio` frame, as UTF-8 JSON. The
1943
2036
  * segments after it are that batch's raw Opus packets, 20 ms each, in order.
1944
2037
  *
1945
2038
  * `commcast.radio` is carried in BinaryLane frames and is addressed exactly as
1946
- * `CommcastTraffic` is: a connection hears only transmissions to groups its
2039
+ * CommcastTraffic is: a connection hears only transmissions to groups its
1947
2040
  * vantage belongs to, one signal delay after each batch was spoken. Every
1948
2041
  * frame carries this whole description, so a listener that starts hearing
1949
2042
  * partway through a keying places it from the first frame it gets.
@@ -2479,7 +2572,7 @@ export declare enum CommsDelaySource {
2479
2572
  }
2480
2573
  /**
2481
2574
  * The `comms.delay` payload: the one-way signal delay to the active vessel,
2482
- * gated by the `comms.signalDelay.enabled` setting. `CommsDelay.oneWaySeconds`
2575
+ * gated by the `SIGNAL_DELAY/enabled` setting. `CommsDelay.oneWaySeconds`
2483
2576
  * tells two different "no delay" cases apart by value:
2484
2577
  *
2485
2578
  * - **null**: no measurable `CommsPath` (no path home, or incomplete hop
@@ -2490,11 +2583,10 @@ export declare enum CommsDelaySource {
2490
2583
  * says the vessel is connected; the last figure before that is the one to
2491
2584
  * hold. A route its plan still holds through that stretch is offered as a
2492
2585
  * prediction on `comms.route`, never as this delay.
2493
- * - **0**: the delay feature is disabled (`comms.signalDelay.enabled =
2494
- * false`). A genuine "zero delay applied", not an absence.
2495
- * `CommsDelay.source` is also `CommsDelaySource.None` here: the two cases
2496
- * share the same `Source` and are told apart only by whether the value is
2497
- * null.
2586
+ * - **0**: the delay feature is disabled (`SIGNAL_DELAY/enabled` is false). A
2587
+ * genuine "zero delay applied", not an absence. `CommsDelay.source` is also
2588
+ * `CommsDelaySource.None` here: the two cases share the same `Source` and
2589
+ * are told apart only by whether the value is null.
2498
2590
  * - a real number: `CommsDelay.source` is `CommsDelaySource.SignalDelay`, a
2499
2591
  * signal delay computed over the hop geometry of the comms model in use.
2500
2592
  *
@@ -3859,6 +3951,14 @@ export interface EventMsg {
3859
3951
  * keyframe cadence, and on `timeline-reset`; absent means unknown, never zero.
3860
3952
  */
3861
3953
  keyframeIntervalUt?: number;
3954
+ /**
3955
+ * On `timeline-reset`, the latest game time from before the load that the new
3956
+ * timeline still includes: a reading validated at or before it stands,
3957
+ * anything after it is gone. Absent on a `timeline-reset` means the load kept
3958
+ * no history at all (a different game was loaded). Always absent on
3959
+ * `subscribed`.
3960
+ */
3961
+ keptThroughUt?: number;
3862
3962
  }
3863
3963
  /**
3864
3964
  * A command the client sends: the command id, its arguments, and a request id
@@ -6069,8 +6169,8 @@ export interface MissionObjectiveEntry {
6069
6169
  *
6070
6170
  * @category Missions
6071
6171
  * @categoryDescription Missions
6072
- * A Making History mission in the current game: whether one is running and how
6073
- * far each of its objectives has got.
6172
+ * A mission of KSP's Making History expansion in the current game: whether one
6173
+ * is running and how far each of its objectives has got.
6074
6174
  */
6075
6175
  export interface MissionStatus {
6076
6176
  /** The mission's title, localised. */
@@ -6174,6 +6274,23 @@ export interface ModSettingRow {
6174
6274
  value?: string | null;
6175
6275
  /** Why the value cannot be read right now, or null when it was. */
6176
6276
  unavailable?: string | null;
6277
+ /**
6278
+ * The tags the Uplink gave the setting, such as `setup` for one offered among
6279
+ * the first-run setup's recommended settings. Empty for none; a client ignores
6280
+ * a tag it does not know.
6281
+ */
6282
+ tags: string[];
6283
+ /**
6284
+ * The name of the Uplink holding the value where it is, or null when nothing
6285
+ * locks it. A locked setting cannot be changed, and `settings.mod.write`
6286
+ * refuses it.
6287
+ */
6288
+ lockedBy?: string | null;
6289
+ /**
6290
+ * Why `ModSettingRow.lockedBy` holds the value, for the operator. Null when
6291
+ * nothing locks it.
6292
+ */
6293
+ lockReason?: string | null;
6177
6294
  }
6178
6295
  /**
6179
6296
  * Arguments to `settings.mod.write`: change one of a host mod's own settings
@@ -8932,9 +9049,9 @@ export interface ExperimentBreakdownEntry {
8932
9049
  }
8933
9050
  /**
8934
9051
  * One entry in the `science.archive` Topic payload: a single subject out of
8935
- * the whole-career R&D archive (`ResearchAndDevelopment.GetSubjects()`). That
8936
- * is every subject the career has ever collected or recovered, across every
8937
- * mission and every body, not scoped to the active vessel.
9052
+ * the whole-career R&D archive. That is every subject the career has ever
9053
+ * collected or recovered, across every mission and every body, not scoped to
9054
+ * the active vessel.
8938
9055
  *
8939
9056
  * The Topic payload is a bare array (`ArchiveEntry[]`), or `null` when the
8940
9057
  * save has no R&D to walk (Sandbox mode). A save with R&D but nothing
@@ -9047,8 +9164,9 @@ export interface ScienceArrival {
9047
9164
  *
9048
9165
  * @category Mod settings
9049
9166
  * @categoryDescription Mod settings
9050
- * Settings as the stream carries them, of three kinds that a client reads
9051
- * differently. Gonogo's own settings and its Uplinks' are one Topic, read with
9167
+ * Reading the operator's settings from a client. There are three kinds:
9168
+ * Gonogo's own with its Uplinks', a host mod's, and those that live only in
9169
+ * the browser. Gonogo's own settings and its Uplinks' are one Topic, read with
9052
9170
  * `useTelemetry("settings.gonogo")`. A host mod's own settings, those of the
9053
9171
  * KSP mod an Uplink wraps, are read through that Uplink with
9054
9172
  * `useModSettings(uplinkId)`. A setting that lives only in the browser has no
@@ -9489,8 +9607,7 @@ export interface CrewRosterEntry {
9489
9607
  }
9490
9608
  /**
9491
9609
  * One craft file in the `spaceCenter.savedShips` channel, a saved VAB or SPH
9492
- * design the player can launch, read from the save's craft folders via the
9493
- * stock `CraftProfileInfo` metadata loader.
9610
+ * design the player can launch, read from the save's craft folders.
9494
9611
  *
9495
9612
  * The channel is a bare array of these entries, one per `.craft` file keyed by
9496
9613
  * `SavedShipEntry.file`. The whole payload is `null` (not an empty array) when
@@ -9691,7 +9808,7 @@ export interface AstronautComplexInfo {
9691
9808
  * launch site (`ksc`/`launchSite` kinds, the same sites as `LaunchSiteEntry`,
9692
9809
  * limited to sites with a set spawn-point coordinate) and every surface
9693
9810
  * contract waypoint whose contract is Active or Offered (`contractTarget`
9694
- * kind, from `FinePrint.WaypointManager`).
9811
+ * kind).
9695
9812
  *
9696
9813
  * The channel is a bare array of these entries, one per POI keyed by
9697
9814
  * `SpaceCenterPoiEntry.id`. The whole payload is `null` (not an empty array)
@@ -9815,13 +9932,12 @@ export interface StageDeltaVEntry {
9815
9932
  } | null;
9816
9933
  }
9817
9934
  /**
9818
- * The whole-vessel ΔV rollup the game's own ΔV simulation (`VesselDeltaV`)
9819
- * exposes alongside the per-stage `StageDeltaVEntry` list: the ΔV-producing
9820
- * stage count plus the vacuum, sea-level and current totals and total burn
9821
- * time. A single object, or `null` when the stock simulation is not ready or
9822
- * there is no active vessel. Every field is `null` when its raw value is
9823
- * absent or non-finite. Carries no `meta` of its own: provenance rides the
9824
- * envelope.
9935
+ * The whole-vessel ΔV rollup the game's own ΔV simulation exposes alongside
9936
+ * the per-stage `StageDeltaVEntry` list: the ΔV-producing stage count plus the
9937
+ * vacuum, sea-level and current totals and total burn time. A single object,
9938
+ * or `null` when the stock simulation is not ready or there is no active
9939
+ * vessel. Every field is `null` when its raw value is absent or non-finite.
9940
+ * Carries no `meta` of its own: provenance rides the envelope.
9825
9941
  *
9826
9942
  * @category Vessel
9827
9943
  */
@@ -9844,6 +9960,42 @@ export interface StageDeltaVSummary {
9844
9960
  totalBurnTime?: Value<"s"> | null;
9845
9961
  }
9846
9962
  /**
9963
+ * One vessel of the save the operator can switch to: who it is, and nothing of
9964
+ * where it is or how it is doing.
9965
+ *
9966
+ * @category Flights
9967
+ */
9968
+ export interface SwitchableVessel {
9969
+ /** The vessel's stable guid, the id `ksp.switchVessel` takes. */
9970
+ vesselId: string;
9971
+ /** The vessel's display name. */
9972
+ name: string;
9973
+ /** The vessel's type. */
9974
+ vesselType?: VesselType | null;
9975
+ }
9976
+ /**
9977
+ * The other vessels in the save that the game's own vessel switching offers,
9978
+ * as `{ "entries": [ ... ] }`. Switching to a vessel is a change of scene,
9979
+ * which every command centre can do whatever the radio link to that vessel, so
9980
+ * this list does not depend on one: a vessel with no link to any centre is on
9981
+ * it. It names vessels and carries no position, distance, situation or any
9982
+ * other state of one, which a centre may learn only through delayed telemetry.
9983
+ *
9984
+ * The active vessel is not on the list. The payload is `null` (no key emitted)
9985
+ * outside the flight scene, where there is no vessel to switch from. Not
9986
+ * delayed by signal delay: it is a fact about the save, and carries no
9987
+ * per-payload `Meta` of its own (the envelope's applies).
9988
+ *
9989
+ * @category Flights
9990
+ */
9991
+ export interface SwitchableVessels {
9992
+ /**
9993
+ * Every other vessel of the save the game offers to switch to, in id order.
9994
+ * Empty, never null, when there is none.
9995
+ */
9996
+ entries: SwitchableVessel[];
9997
+ }
9998
+ /**
9847
9999
  * Every celestial body in the game, as a tree, wrapped as `{ "bodies": [ ... ]
9848
10000
  * }`. The whole payload is `null`, not an empty list, when no sample has been
9849
10001
  * taken yet, so "no data yet" and "zero bodies" stay distinct.
@@ -12980,9 +13132,9 @@ export interface OrbitEncounter {
12980
13132
  bodyIndex?: number | null;
12981
13133
  }
12982
13134
  /**
12983
- * KSP's own maintained state vector for the active vessel (`Orbit.pos` and
12984
- * `Orbit.vel`), relative to the body it orbits, in the fixed frame. Read
12985
- * `vessel.orbit` for altitude and velocity.
13135
+ * KSP's own maintained state vector for the active vessel, relative to the
13136
+ * body it orbits, in the fixed frame. Read `vessel.orbit` for altitude and
13137
+ * velocity.
12986
13138
  *
12987
13139
  * Absent when the state vector or the frame flag could not be read.
12988
13140
  *
@@ -13738,9 +13890,9 @@ export interface ClosestApproach {
13738
13890
  trajectoryKind: TrajectoryKind;
13739
13891
  }
13740
13892
  /**
13741
- * The active vessel's current target only.
13742
- * `VesselTarget.relativePosition`/`VesselTarget.relativeVelocity` both use the
13743
- * one `Vec3` shape.
13893
+ * The active vessel's current target, with nothing about any other vessel's
13894
+ * target. `VesselTarget.relativePosition`/`VesselTarget.relativeVelocity` both
13895
+ * use the one `Vec3` shape.
13744
13896
  *
13745
13897
  * `VesselTarget.orbit` reuses `VesselOrbit` itself (not a separate "target
13746
13898
  * orbit" shape), so a client propagates a target the same way as the active
@@ -14006,9 +14158,10 @@ export interface WarpState {
14006
14158
  * when the game has no warp controller to read it off (no scene that can
14007
14159
  * warp).
14008
14160
  *
14009
- * The table is configuration, not a constant: Kopernicus and RealSolarSystem
14010
- * both republish it, so a rung stock runs at 100x may run at 10000x on another
14011
- * install. Read the rate here rather than assuming stock's table.
14161
+ * The table is configuration, not a constant: planet-pack mods such as
14162
+ * Kopernicus and RealSolarSystem republish it, so a rung stock runs at 100x
14163
+ * may run at 10000x on another install. Read the rate here rather than
14164
+ * assuming stock's table.
14012
14165
  */
14013
14166
  warpRates?: Value<"1">[] | null;
14014
14167
  /**
@@ -14046,10 +14199,10 @@ export interface WarpState {
14046
14199
  * finest spacing the record ever has, and `WarpState.observationQuantumUt` at
14047
14200
  * 1x. Constant for the life of the mod.
14048
14201
  *
14049
- * The chord between two samples this far apart is the resolution every channel
14050
- * is sampled at, and a chart can draw it. Where the quantum is wider, the span
14051
- * beyond this is one the sampling skipped because of warp, and a line across
14052
- * it that no model of the value carries asserts a path nothing observed.
14202
+ * A straight line between two samples this far apart is as fine as the record
14203
+ * gets, so a chart can draw it. Where the quantum is wider, the span beyond
14204
+ * this is one the sampling skipped because of warp, and a line across it that
14205
+ * no model of the value carries asserts a path nothing observed.
14053
14206
  */
14054
14207
  sampleIntervalUt: Value<"s">;
14055
14208
  /** The payload's provenance (always `"game"`). */