@norskvideo/ctl-test-harness 0.1.60 → 0.1.62
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/demo/harness.d.ts +2 -0
- package/demo/harness.js +2 -0
- package/demo/spec.d.ts +2 -0
- package/demo/spec.js +1 -0
- package/package.json +4 -4
package/demo/harness.d.ts
CHANGED
|
@@ -43,6 +43,8 @@ export interface LaunchOverrides {
|
|
|
43
43
|
/** Merged over the spec's `launch.params`. */
|
|
44
44
|
params?: Record<string, string | number>;
|
|
45
45
|
hardware?: "nvidia" | "none";
|
|
46
|
+
/** Replaces the spec's `launch.st2110Nics`. */
|
|
47
|
+
st2110Nics?: string[];
|
|
46
48
|
workingDirectory?: string;
|
|
47
49
|
}
|
|
48
50
|
/** An instance `launch()` brought to running: its resolved ports and URLs,
|
package/demo/harness.js
CHANGED
|
@@ -139,6 +139,8 @@ export class ProductHarness {
|
|
|
139
139
|
const hardware = overrides.hardware ?? spec.launch?.hardware;
|
|
140
140
|
if (hardware)
|
|
141
141
|
launchArgv.push("--hardware", hardware);
|
|
142
|
+
for (const nic of overrides.st2110Nics ?? spec.launch?.st2110Nics ?? [])
|
|
143
|
+
launchArgv.push("--st2110-nics", nic);
|
|
142
144
|
const workingDirectory = overrides.workingDirectory ?? spec.launch?.workingDirectory;
|
|
143
145
|
if (this.action === "up" && workingDirectory) {
|
|
144
146
|
launchArgv.push("--working-directory", expandHome(workingDirectory));
|
package/demo/spec.d.ts
CHANGED
|
@@ -119,6 +119,8 @@ export interface DemoSpec {
|
|
|
119
119
|
launch?: {
|
|
120
120
|
hardware?: "nvidia" | "none";
|
|
121
121
|
params?: Record<string, string | number>;
|
|
122
|
+
/** Host NICs to claim for an ST 2110 template; one `--st2110-nics` each. */
|
|
123
|
+
st2110Nics?: string[];
|
|
122
124
|
/** `up` only; `check` launches without it (05-demo s5 playout). */
|
|
123
125
|
workingDirectory?: string;
|
|
124
126
|
};
|
package/demo/spec.js
CHANGED
|
@@ -67,6 +67,7 @@ export const DemoSpecSchema = z
|
|
|
67
67
|
.strictObject({
|
|
68
68
|
hardware: z.enum(["nvidia", "none"]).optional(),
|
|
69
69
|
params: Params.optional(),
|
|
70
|
+
st2110Nics: z.array(z.string().min(1)).min(1).optional(),
|
|
70
71
|
workingDirectory: z.string().min(1).optional(),
|
|
71
72
|
})
|
|
72
73
|
.optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@norskvideo/ctl-test-harness",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.62",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@types/bun": "latest",
|
|
87
87
|
"@types/node": "^22.10.0",
|
|
88
|
-
"@norskvideo/norsk-studio": "1.30.0-2026-09-
|
|
89
|
-
"@norskvideo/norsk-studio-built-ins": "1.30.0-2026-09-
|
|
90
|
-
"@norskvideo/norsk-sdk": "1.3.1-2026-09-
|
|
88
|
+
"@norskvideo/norsk-studio": "1.30.0-2026-09-28-b92e8139",
|
|
89
|
+
"@norskvideo/norsk-studio-built-ins": "1.30.0-2026-09-28-b92e8139",
|
|
90
|
+
"@norskvideo/norsk-sdk": "1.3.1-2026-09-30-acca6a9d"
|
|
91
91
|
},
|
|
92
92
|
"peerDependenciesMeta": {
|
|
93
93
|
"@norskvideo/norsk-studio": {
|