@ossclip/core 0.1.13 → 0.1.14

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/overrides.ts +13 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossclip/core",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "ossclip's framework-free pipeline: schema, transcription, analysis, cutlist, captions, framing, and the LLM producer",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/overrides.ts CHANGED
@@ -171,6 +171,19 @@ export function captionEditWas(
171
171
  export const OverrideDocSchema = z.object({
172
172
  /** Global style tokens — the look is a system, so these are not per-element. */
173
173
  theme: ThemeSchema.partial().default({}),
174
+ /**
175
+ * Captions OFF for the whole video. Doc-global like `theme`, deliberately
176
+ * NOT a per-scene key: visibility is one decision about the output —
177
+ * `captionY`/`captionScale` (per scene, above) style captions, this one
178
+ * removes the track. Optional with NO default so every overrides.json
179
+ * written before the key existed parses byte-identically; absent means
180
+ * visible, and the editor DELETES the key rather than writing `false`
181
+ * (the clearVideo/restoreScene rule — an explicit false is still an
182
+ * override with nothing to say). Produce ORs this with `--no-captions`
183
+ * (`resolveCaptionsHidden`, apps/cli/src/produce.ts): either surface can
184
+ * hide, neither can force captions back on over the other.
185
+ */
186
+ captionsHidden: z.boolean().optional(),
174
187
  scenes: z.record(z.string(), SceneOverrideSchema).default({}),
175
188
  /** Retyped caption words, keyed by caption-stream word index. */
176
189
  captions: z.record(z.string(), CaptionEditSchema).default({}),