@t3lnet/sceneforge 1.0.9 → 1.0.10

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 (32) hide show
  1. package/README.md +57 -0
  2. package/cli/cli.js +6 -0
  3. package/cli/commands/context.js +791 -0
  4. package/context/context-builder.ts +318 -0
  5. package/context/index.ts +52 -0
  6. package/context/template-loader.ts +161 -0
  7. package/context/templates/base/actions-reference.md +299 -0
  8. package/context/templates/base/cli-reference.md +236 -0
  9. package/context/templates/base/project-overview.md +58 -0
  10. package/context/templates/base/selectors-guide.md +233 -0
  11. package/context/templates/base/yaml-schema.md +210 -0
  12. package/context/templates/skills/balance-timing.md +136 -0
  13. package/context/templates/skills/debug-selector.md +193 -0
  14. package/context/templates/skills/generate-actions.md +94 -0
  15. package/context/templates/skills/optimize-demo.md +218 -0
  16. package/context/templates/skills/review-demo-yaml.md +164 -0
  17. package/context/templates/skills/write-step-script.md +136 -0
  18. package/context/templates/stages/stage1-actions.md +236 -0
  19. package/context/templates/stages/stage2-scripts.md +197 -0
  20. package/context/templates/stages/stage3-balancing.md +229 -0
  21. package/context/templates/stages/stage4-rebalancing.md +228 -0
  22. package/context/tests/context-builder.test.ts +237 -0
  23. package/context/tests/template-loader.test.ts +181 -0
  24. package/context/tests/tool-formatter.test.ts +198 -0
  25. package/context/tool-formatter.ts +189 -0
  26. package/dist/index.cjs +416 -11
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +182 -1
  29. package/dist/index.d.ts +182 -1
  30. package/dist/index.js +391 -11
  31. package/dist/index.js.map +1 -1
  32. package/package.json +2 -1
package/README.md CHANGED
@@ -78,6 +78,63 @@ Cache is stored in `.voice-cache/` in your project root.
78
78
  - Voice cache reduces API costs by reusing previously synthesized audio.
79
79
  - Video pipeline steps require FFmpeg installed locally.
80
80
 
81
+ ## LLM Context Tooling
82
+
83
+ SceneForge includes tooling to deploy instruction files for AI coding assistants, helping them understand your project and assist with demo creation.
84
+
85
+ ### Supported AI Tools
86
+
87
+ | Tool | File | Description |
88
+ |------|------|-------------|
89
+ | Cursor | `.cursorrules` | Cursor AI IDE |
90
+ | GitHub Copilot | `.github/copilot-instructions.md` | GitHub Copilot |
91
+ | Claude Code | `CLAUDE.md` | Claude Code CLI |
92
+ | Codex | `AGENTS.md` | OpenAI Codex |
93
+
94
+ ### Deploy Context Files
95
+
96
+ ```bash
97
+ # Interactive wizard (recommended)
98
+ npx sceneforge context deploy
99
+
100
+ # Or with options
101
+ npx sceneforge context deploy --target claude
102
+ npx sceneforge context deploy --target all --format split
103
+ ```
104
+
105
+ ### Available Skills
106
+
107
+ Skills are prompt templates for specific tasks:
108
+
109
+ ```bash
110
+ # List available skills
111
+ npx sceneforge context skill --list
112
+
113
+ # View a skill
114
+ npx sceneforge context skill --show generate-actions
115
+
116
+ # Copy skill to clipboard
117
+ npx sceneforge context skill --copy debug-selector
118
+ ```
119
+
120
+ Available skills:
121
+ - `generate-actions` - Generate demo actions for a page
122
+ - `write-step-script` - Write voiceover scripts
123
+ - `balance-timing` - Analyze and balance timing
124
+ - `review-demo-yaml` - Review demo definitions
125
+ - `debug-selector` - Debug failing selectors
126
+ - `optimize-demo` - Optimize demo flow
127
+
128
+ ### Context Commands
129
+
130
+ ```bash
131
+ sceneforge context deploy # Deploy context files
132
+ sceneforge context list # List deployed files
133
+ sceneforge context remove # Remove context files
134
+ sceneforge context preview # Preview content
135
+ sceneforge context skill # Manage skills
136
+ ```
137
+
81
138
  ## Repository
82
139
 
83
140
  https://github.com/jhandel/sceneforge
package/cli/cli.js CHANGED
@@ -7,6 +7,7 @@ import { runRecordDemoCommand } from "./commands/record-demo.js";
7
7
  import { runPipelineCommand } from "./commands/pipeline.js";
8
8
  import { runDoctorCommand } from "./commands/doctor.js";
9
9
  import { runSetupCommand } from "./commands/setup.js";
10
+ import { runContextCommand } from "./commands/context.js";
10
11
 
11
12
  function printHelp() {
12
13
  console.log(`
@@ -24,6 +25,7 @@ Commands:
24
25
  add-audio Add audio tracks to per-step clips
25
26
  concat Concatenate clips into final demo videos
26
27
  doctor Run diagnostics for ffmpeg/ffprobe/env
28
+ context Manage LLM context files for AI coding assistants
27
29
 
28
30
  Run "sceneforge <command> --help" for command-specific options.
29
31
  `);
@@ -73,6 +75,10 @@ switch (normalized) {
73
75
  case "diagnostics":
74
76
  await runDoctorCommand(rest);
75
77
  break;
78
+ case "context":
79
+ case "ctx":
80
+ await runContextCommand(rest);
81
+ break;
76
82
  default:
77
83
  console.error(`[error] Unknown command: ${command}`);
78
84
  printHelp();