@contractspec/example.video-docs-terminal 2.4.0 → 2.6.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.
@@ -3,7 +3,7 @@ $ bun run prebuild && bun run build:bundle && bun run build:types
3
3
  $ contractspec-bun-build prebuild
4
4
  $ contractspec-bun-build transpile
5
5
  [contractspec-bun-build] transpile target=bun root=src entries=7
6
- Bundled 7 modules in 52ms
6
+ Bundled 7 modules in 30ms
7
7
 
8
8
  ./build-tutorial.js 1.87 KB (entry point)
9
9
  ./index.js 14.53 KB (entry point)
@@ -14,7 +14,7 @@ Bundled 7 modules in 52ms
14
14
  ./sample-tutorials.js 7.26 KB (entry point)
15
15
 
16
16
  [contractspec-bun-build] transpile target=node root=src entries=7
17
- Bundled 7 modules in 25ms
17
+ Bundled 7 modules in 19ms
18
18
 
19
19
  ./build-tutorial.js 1.86 KB (entry point)
20
20
  ./index.js 14.42 KB (entry point)
@@ -25,7 +25,7 @@ Bundled 7 modules in 25ms
25
25
  ./sample-tutorials.js 7.15 KB (entry point)
26
26
 
27
27
  [contractspec-bun-build] transpile target=browser root=src entries=7
28
- Bundled 7 modules in 23ms
28
+ Bundled 7 modules in 22ms
29
29
 
30
30
  ./build-tutorial.js 1.86 KB (entry point)
31
31
  ./index.js 14.42 KB (entry point)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # @contractspec/example.video-docs-terminal
2
2
 
3
+ ## 2.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - bae3db1: fix: build issues
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [bae3db1]
12
+ - @contractspec/lib.video-gen@1.47.0
13
+ - @contractspec/lib.content-gen@2.6.0
14
+ - @contractspec/lib.contracts-spec@2.6.0
15
+
16
+ ## 2.5.0
17
+
18
+ ### Minor Changes
19
+
20
+ - c83c323: feat: major change to content generation
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [4fa3bd4]
25
+ - Updated dependencies [63eee9b]
26
+ - Updated dependencies [284cbe2]
27
+ - Updated dependencies [c83c323]
28
+ - Updated dependencies [397b7c0]
29
+ - Updated dependencies [4d19382]
30
+ - @contractspec/lib.contracts-spec@2.5.0
31
+ - @contractspec/lib.video-gen@1.46.0
32
+ - @contractspec/lib.content-gen@2.5.0
33
+
3
34
  ## 2.4.0
4
35
 
5
36
  ### Minor Changes
package/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # @contractspec/example.video-docs-terminal
2
+
3
+ Website: https://contractspec.io/
4
+
5
+ Generate terminal demo videos from CLI walkthroughs using the `TerminalDemo` composition and `ScriptGenerator`.
6
+
7
+ This package demonstrates:
8
+
9
+ - Defining `CliTutorial` objects that combine terminal lines with content briefs
10
+ - Building single-scene and multi-scene `VideoProject` instances from tutorials
11
+ - Generating deterministic narration scripts from content briefs using `ScriptGenerator`
12
+ - Composing a full tutorial suite (init, build, validate, deploy) into one video
13
+
14
+ ## Quickstart
15
+
16
+ ```typescript
17
+ import { buildTutorialVideo, buildTutorialSuite } from "@contractspec/example.video-docs-terminal";
18
+ import { initTutorial, allTutorials } from "@contractspec/example.video-docs-terminal";
19
+
20
+ // Build a single tutorial video
21
+ const project = buildTutorialVideo(initTutorial);
22
+
23
+ // Build a multi-scene suite from all tutorials
24
+ const suite = buildTutorialSuite(allTutorials);
25
+ ```
26
+
27
+ ```typescript
28
+ import { generateTutorialNarration } from "@contractspec/example.video-docs-terminal";
29
+
30
+ // Generate narration for a tutorial (deterministic, no LLM needed)
31
+ const narration = await generateTutorialNarration(initTutorial);
32
+ ```
33
+
34
+ Four sample tutorials are included: project initialization, build and code generation, contract validation, and deployment. The entire pipeline is fully deterministic -- no LLM or voice provider required.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.video-docs-terminal",
3
- "version": "2.4.0",
3
+ "version": "2.6.0",
4
4
  "description": "Generate terminal demo videos from CLI walkthroughs using the TerminalDemo composition and ScriptGenerator.",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -78,13 +78,13 @@
78
78
  "typecheck": "tsc --noEmit"
79
79
  },
80
80
  "dependencies": {
81
- "@contractspec/lib.contracts-spec": "2.4.0",
82
- "@contractspec/lib.video-gen": "1.45.0",
83
- "@contractspec/lib.content-gen": "2.4.0"
81
+ "@contractspec/lib.contracts-spec": "2.6.0",
82
+ "@contractspec/lib.video-gen": "1.47.0",
83
+ "@contractspec/lib.content-gen": "2.6.0"
84
84
  },
85
85
  "devDependencies": {
86
- "@contractspec/tool.typescript": "2.4.0",
87
- "@contractspec/tool.bun": "2.4.0",
86
+ "@contractspec/tool.typescript": "2.6.0",
87
+ "@contractspec/tool.bun": "2.6.0",
88
88
  "typescript": "^5.9.3"
89
89
  },
90
90
  "publishConfig": {