@ksp-gonogo/kerbcast 1.5.1 → 1.6.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jon Pepler
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -141,8 +141,12 @@ hand-written shim.
141
141
 
142
142
  ## License
143
143
 
144
+ [MIT](./LICENSE). This SDK is the interface to kerbcast, so it is permissive:
145
+ build what you like against it. The kerbcast mod itself is
144
146
  [CC BY-NC-SA 4.0](https://github.com/ksp-gonogo/kerbcast/blob/main/LICENSE).
145
147
 
148
+ Versions published before 1.6.0 carry the older CC BY-NC-SA 4.0 licence.
149
+
146
150
  ## Versioning
147
151
 
148
152
  [SemVer](https://semver.org/) against the wire format and client
@@ -103,10 +103,10 @@ export interface CameraState {
103
103
  fovMin: number;
104
104
  fovMax: number;
105
105
  /**
106
- * Whether the part supports pan/tilt (kerbcast-side mod extension —
107
- * no stock Hullcam parts are steerable, but the extended mod adds
108
- * pan to specific parts). False on every shipping part today;
109
- * clients should hide pan controls until this flips true.
106
+ * Whether the part supports pan/tilt. True on parts with a steerable
107
+ * mount in the plugin's `PartCapabilities` table (today: `DC.TurretCam`,
108
+ * yaw-only; `hc.launchcam`, yaw+pitch); false on fixed-mount parts, which
109
+ * are the majority. Clients hide pan controls when false.
110
110
  */
111
111
  supportsPan: boolean;
112
112
  panYaw: number;
@@ -341,10 +341,10 @@ export type ClientMessage =
341
341
  }
342
342
  /**
343
343
  * Pan/tilt the camera (yaw and pitch, both degrees from the
344
- * part's resting forward). No stock Hullcam parts support this
345
- * yet — the message is ignored until the planned mod extension
346
- * adds steerable mounts to specific parts. Clients should hide
347
- * pan controls until `supportsPan == true` for the camera.
344
+ * part's resting forward). Honored by parts with a steerable mount
345
+ * (`supportsPan == true`, e.g. `DC.TurretCam` / `hc.launchcam`);
346
+ * silently ignored for fixed-mount parts. Clients should hide pan
347
+ * controls until `supportsPan == true` for the camera.
348
348
  */
349
349
  | {
350
350
  type: "set-pan";
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@ksp-gonogo/kerbcast",
3
- "version": "1.5.1",
3
+ "version": "1.6.1",
4
4
  "description": "TypeScript client for the kerbcast KSP camera-streaming sidecar. KerbcastClient wraps the WebRTC peer + control channel; wire-format types are typeshare-generated from the sidecar's Rust protocol module.",
5
- "license": "CC-BY-NC-SA-4.0",
5
+ "license": "MIT",
6
6
  "author": "Jon Pepler",
7
7
  "homepage": "https://github.com/ksp-gonogo/kerbcast#readme",
8
8
  "bugs": {
@@ -111,10 +111,10 @@ export interface CameraState {
111
111
  fovMin: number;
112
112
  fovMax: number;
113
113
  /**
114
- * Whether the part supports pan/tilt (kerbcast-side mod extension —
115
- * no stock Hullcam parts are steerable, but the extended mod adds
116
- * pan to specific parts). False on every shipping part today;
117
- * clients should hide pan controls until this flips true.
114
+ * Whether the part supports pan/tilt. True on parts with a steerable
115
+ * mount in the plugin's `PartCapabilities` table (today: `DC.TurretCam`,
116
+ * yaw-only; `hc.launchcam`, yaw+pitch); false on fixed-mount parts, which
117
+ * are the majority. Clients hide pan controls when false.
118
118
  */
119
119
  supportsPan: boolean;
120
120
  panYaw: number;
@@ -356,10 +356,10 @@ export type ClientMessage =
356
356
  | { type: "set-fov", content: SetFovPayload }
357
357
  /**
358
358
  * Pan/tilt the camera (yaw and pitch, both degrees from the
359
- * part's resting forward). No stock Hullcam parts support this
360
- * yet — the message is ignored until the planned mod extension
361
- * adds steerable mounts to specific parts. Clients should hide
362
- * pan controls until `supportsPan == true` for the camera.
359
+ * part's resting forward). Honored by parts with a steerable mount
360
+ * (`supportsPan == true`, e.g. `DC.TurretCam` / `hc.launchcam`);
361
+ * silently ignored for fixed-mount parts. Clients should hide pan
362
+ * controls until `supportsPan == true` for the camera.
363
363
  */
364
364
  | { type: "set-pan", content: SetPanPayload }
365
365
  /**