video-director 1.0.0-alpha.3 → 1.0.0-alpha.4
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/README.md +1 -1
- package/package.json +1 -1
- package/skills/vdr-setup/assets/setup.toml +1 -1
- package/tools/install-skills.mjs +10 -9
package/README.md
CHANGED
|
@@ -146,7 +146,7 @@ To skip the questions (for a script, or to have your assistant run it), pass the
|
|
|
146
146
|
npx video-director --provider claude --project /path/to/your-project
|
|
147
147
|
```
|
|
148
148
|
|
|
149
|
-
The crew is copied into your project. To get a newer version later, run the same command with
|
|
149
|
+
The crew is copied into your project. To get a newer version later, run the same command again: it replaces the crew's skills with the new version and leaves your project files (`project.md`, `bible/`, `episodes/`, `.vdr/`) alone. Running from a download of this repo instead? Run `npm install` once in it, then `node tools/install-skills.mjs`, and add `--link` to point your project at the download rather than copy. Claude Code users can alternatively install it as a plugin from this repository. Other assistants that read skill folders work the same way, using their own skills folder.
|
|
150
150
|
|
|
151
151
|
> Install **all** the skills together. They find each other by sitting side by side, so leaving one out will break the others.
|
|
152
152
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "video-director",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.4",
|
|
4
4
|
"description": "Video Director: an AI film crew (Screenwriter, Production Designer, Editor) as agent skills. Run `npx video-director` to install it into a video project.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Video Director setup questions and module metadata.
|
|
2
2
|
# Read by scripts/write-config.py. The version line is bumped by .github/scripts/set-version.mjs.
|
|
3
3
|
|
|
4
|
-
version = "1.0.0-alpha.
|
|
4
|
+
version = "1.0.0-alpha.4"
|
|
5
5
|
|
|
6
6
|
greeting = """
|
|
7
7
|
Your Video Director crew is ready. Start with the Screenwriter
|
package/tools/install-skills.mjs
CHANGED
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
// From a download: npm install (once, in the download), then
|
|
8
8
|
// node tools/install-skills.mjs [--provider ... --project <folder>] [--link]
|
|
9
9
|
//
|
|
10
|
-
// Copies the skills by default, so it works from npx's temporary cache
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
10
|
+
// Copies the skills by default, so it works from npx's temporary cache. Re-running it
|
|
11
|
+
// replaces the crew's own skill folders with the version you run, so an upgrade needs no
|
|
12
|
+
// flag. A symlink (a developer's checkout) is never replaced, and nothing outside the
|
|
13
|
+
// skill folders is touched: project.md, bible/, episodes/ and .vdr/ stay as they are.
|
|
14
|
+
// --link points at the download instead, so updating the download updates every project.
|
|
15
|
+
// Also creates the project folders the crew expects, so there is nothing to create by hand.
|
|
15
16
|
|
|
16
17
|
import fs from 'node:fs';
|
|
17
18
|
import os from 'node:os';
|
|
@@ -46,7 +47,7 @@ export function ensureLayout(projectRoot) {
|
|
|
46
47
|
for (const dir of LAYOUT) fs.mkdirSync(path.join(projectRoot, ...dir.split('/')), { recursive: true });
|
|
47
48
|
}
|
|
48
49
|
|
|
49
|
-
export function linkSkills(provider, projectRoot, { link = false
|
|
50
|
+
export function linkSkills(provider, projectRoot, { link = false } = {}) {
|
|
50
51
|
const destination = path.join(projectRoot, PROVIDERS[provider].skillsDir);
|
|
51
52
|
fs.mkdirSync(destination, { recursive: true });
|
|
52
53
|
const linked = [];
|
|
@@ -57,8 +58,8 @@ export function linkSkills(provider, projectRoot, { link = false, update = false
|
|
|
57
58
|
const to = path.join(destination, name);
|
|
58
59
|
let stat = null;
|
|
59
60
|
try { stat = fs.lstatSync(to); } catch { /* not there yet */ }
|
|
60
|
-
//
|
|
61
|
-
if (stat &&
|
|
61
|
+
// Our own copies are replaced on every run; a symlink (a developer's checkout) always wins.
|
|
62
|
+
if (stat && (link || stat.isSymbolicLink() || !stat.isDirectory())) { skipped.push(name); continue; }
|
|
62
63
|
if (stat) fs.rmSync(to, { recursive: true, force: true });
|
|
63
64
|
if (link) fs.symlinkSync(from, to, process.platform === 'win32' ? 'junction' : 'dir');
|
|
64
65
|
else fs.cpSync(from, to, { recursive: true, filter: (src) => !/(^|[\\/])__pycache__([\\/]|$)/.test(src) });
|
|
@@ -77,7 +78,7 @@ function parseArgs(argv) {
|
|
|
77
78
|
for (let i = 0; i < argv.length; i++) {
|
|
78
79
|
if (argv[i] === '--yes' || argv[i] === '-y') out.yes = true;
|
|
79
80
|
else if (argv[i] === '--link') out.link = true;
|
|
80
|
-
else if (argv[i] === '--update') out.update = true;
|
|
81
|
+
else if (argv[i] === '--update') out.update = true; // accepted for older scripts: re-running always updates
|
|
81
82
|
else if (argv[i] === '--provider') out.provider = argv[++i];
|
|
82
83
|
else if (argv[i] === '--project') out.project = argv[++i];
|
|
83
84
|
else fail(`Unknown option: ${argv[i]}`);
|