@norskvideo/ctl-product-template-schema 0.1.13 → 0.1.15
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/index.d.ts +2 -0
- package/index.js +3 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -115,6 +115,7 @@ export declare const ProductTemplateManifestSchema: z.ZodObject<{
|
|
|
115
115
|
healthy: "healthy";
|
|
116
116
|
never: "never";
|
|
117
117
|
}>>;
|
|
118
|
+
runtimeReadyPath: z.ZodOptional<z.ZodString>;
|
|
118
119
|
}, z.core.$strip>>;
|
|
119
120
|
debug: z.ZodOptional<z.ZodObject<{
|
|
120
121
|
studio: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -282,6 +283,7 @@ export declare const ProductTemplateMaterialsSchema: z.ZodObject<{
|
|
|
282
283
|
healthy: "healthy";
|
|
283
284
|
never: "never";
|
|
284
285
|
}>>;
|
|
286
|
+
runtimeReadyPath: z.ZodOptional<z.ZodString>;
|
|
285
287
|
}, z.core.$strip>>;
|
|
286
288
|
debug: z.ZodOptional<z.ZodObject<{
|
|
287
289
|
studio: z.ZodOptional<z.ZodBoolean>;
|
package/index.js
CHANGED
|
@@ -34,6 +34,9 @@ const ProductTemplateUiSchema = z.object({
|
|
|
34
34
|
runtimeScreenReadyWhen: z.enum(["running", "healthy", "never"]).optional().meta({
|
|
35
35
|
description: "When the runner may offer the runtime-screen link, judged on `runtimeScreenService`'s own container state. Omit for the default `running` — the link goes live as soon as the service is up, which is the only state a service without a healthcheck ever reaches. `healthy` holds it back until the service's healthcheck passes, for a product whose screen 404s or misbehaves before it is fully warm. `never` suppresses the link entirely.",
|
|
36
36
|
}),
|
|
37
|
+
runtimeReadyPath: z.string().startsWith("/").optional().meta({
|
|
38
|
+
description: "HTTP path on `runtimeScreenService` that answers 2xx only once the product's workflow is actually running — for a Studio-hosted product, `/live/api/components`, which 503s until the runner is up. Container health cannot tell: Studio's web server stays healthy after its runner has exited, so a workflow refused at start reads as `healthy` without this. The runner polls the path into the instance's `workflow` facet (`starting` | `running` | `refused`). Omit and the facet is absent — never guessed.",
|
|
39
|
+
}),
|
|
37
40
|
});
|
|
38
41
|
// Per-instance Debug menu toggles. The runner always offers raw Studio +
|
|
39
42
|
// Visualiser debug surfaces for an instance; a product opts a link out when
|