@craftrpgs/cli 0.1.6 → 0.1.8

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 (3) hide show
  1. package/README.md +26 -10
  2. package/dist/bin.js +3932 -1452
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -44,7 +44,7 @@ know how to work with the project the moment you open it.
44
44
  | `craft type new <Name>` | Author a new file type locally |
45
45
  | `craft image generate/upload` | Generate (including local or workspace reference images; opt-in in Settings) or upload images |
46
46
  | `craft image expressions/cutouts` | Preflight and persist character expression or cutout assets |
47
- | `craft env [name]` | Show or pin the environment for a directory |
47
+ | `craft vn create/pull/push/publish` | Write visual novels: pull a story to one JSON file, edit it, push it back, publish it for readers (`craft help vn`) |
48
48
 
49
49
  Every command takes `--json` for machine-readable output. Auth is via
50
50
  `craft login` (browser OAuth); credentials are stored locally and refreshed
@@ -52,16 +52,32 @@ automatically.
52
52
 
53
53
  Run `craft help <command>` for details on any of them.
54
54
 
55
- ## Environments
55
+ ## Visual novels
56
56
 
57
- The CLI talks to production (`craftrpgs.com`) by default. `craft env <name-or-url>`
58
- pins the current directory tree to another server via a one-line
59
- `.craft-env` file — handy for keeping a testing folder pointed at a dev
60
- server while the rest of your machine uses production. `--remote` and
61
- `CRAFT_REMOTE` accept an environment name or any origin URL. A cloned
62
- workspace always syncs with the server it was cloned from. (Craft
63
- developers: set `CRAFT_DEV=1` to enable the internal `local` and `staging`
64
- environment names.)
57
+ A visual novel is a paged story readers click through: a backdrop, a text
58
+ box, and the speaker's cutout on the stage. Each story is one JSON document,
59
+ so it syncs as a single file rather than with the workspace:
60
+
61
+ ```sh
62
+ craft vn create "Lanterns Over Kestrel Bay" # in this workspace's project
63
+ # edit .craft/visual-novels/lanterns-over-kestrel-bay.vn.json, then:
64
+ craft vn check .craft/visual-novels/lanterns-over-kestrel-bay.vn.json
65
+ craft vn push .craft/visual-novels/lanterns-over-kestrel-bay.vn.json
66
+ craft vn publish .craft/visual-novels/lanterns-over-kestrel-bay.vn.json --unlisted
67
+ ```
68
+
69
+ `craft vn assets <file>` prints the project's cast and backdrops and your
70
+ studio music as entries ready to paste into the story. Inside a workspace,
71
+ `.craft/instructions/authoring-visual-novels.md` documents the format.
72
+
73
+ ## Staying up to date
74
+
75
+ The server only accepts the latest published version of the CLI. When a
76
+ command is refused with a `cli_outdated` error, update and retry:
77
+
78
+ ```bash
79
+ npm install -g @craftrpgs/cli@latest
80
+ ```
65
81
 
66
82
  ## Requirements
67
83