@contractspec/example.video-docs-terminal 2.3.0 → 2.5.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 50ms
6
+ Bundled 7 modules in 9ms
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 50ms
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 26ms
17
+ Bundled 7 modules in 34ms
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 26ms
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 22ms
28
+ Bundled 7 modules in 34ms
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.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c83c323: feat: major change to content generation
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [4fa3bd4]
12
+ - Updated dependencies [63eee9b]
13
+ - Updated dependencies [284cbe2]
14
+ - Updated dependencies [c83c323]
15
+ - Updated dependencies [397b7c0]
16
+ - Updated dependencies [4d19382]
17
+ - @contractspec/lib.contracts-spec@2.5.0
18
+ - @contractspec/lib.video-gen@1.46.0
19
+ - @contractspec/lib.content-gen@2.5.0
20
+
21
+ ## 2.4.0
22
+
23
+ ### Minor Changes
24
+
25
+ - chore: improve documentation
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies
30
+ - @contractspec/lib.contracts-spec@2.4.0
31
+ - @contractspec/lib.content-gen@2.4.0
32
+ - @contractspec/lib.video-gen@1.45.0
33
+
3
34
  ## 2.3.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.3.0",
3
+ "version": "2.5.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.3.0",
82
- "@contractspec/lib.video-gen": "1.44.0",
83
- "@contractspec/lib.content-gen": "2.3.0"
81
+ "@contractspec/lib.contracts-spec": "2.5.0",
82
+ "@contractspec/lib.video-gen": "1.46.0",
83
+ "@contractspec/lib.content-gen": "2.5.0"
84
84
  },
85
85
  "devDependencies": {
86
- "@contractspec/tool.typescript": "2.3.0",
87
- "@contractspec/tool.bun": "2.3.0",
86
+ "@contractspec/tool.typescript": "2.5.0",
87
+ "@contractspec/tool.bun": "2.5.0",
88
88
  "typescript": "^5.9.3"
89
89
  },
90
90
  "publishConfig": {