storymode-cli 1.2.1 → 1.2.2
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 +14 -12
- package/package.json +1 -1
- package/src/cli.mjs +5 -7
package/README.md
CHANGED
|
@@ -3,29 +3,31 @@
|
|
|
3
3
|
AI-animated pixel art companions for your terminal. Reacts to Claude Code in real time.
|
|
4
4
|
|
|
5
5
|
```
|
|
6
|
-
npx storymode-cli play
|
|
6
|
+
npx storymode-cli play
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
## Quick Start
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
|
|
13
|
-
npx storymode-cli browse
|
|
14
|
-
|
|
15
|
-
# Run a companion alongside Claude Code
|
|
16
|
-
npx storymode-cli play 3
|
|
12
|
+
npx storymode-cli play
|
|
17
13
|
```
|
|
18
14
|
|
|
19
|
-
|
|
15
|
+
That's it. A companion opens in a tmux side pane and reacts to what Claude Code is doing — switching animations when it reads files, writes code, hits errors, etc.
|
|
16
|
+
|
|
17
|
+
Use `browse` to switch characters or visit [storymode.fixmy.codes](https://storymode.fixmy.codes) to see the full gallery.
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npx storymode-cli browse
|
|
21
|
+
```
|
|
20
22
|
|
|
21
23
|
## Options
|
|
22
24
|
|
|
23
25
|
```bash
|
|
24
|
-
npx storymode-cli play
|
|
25
|
-
npx storymode-cli play
|
|
26
|
-
npx storymode-cli play
|
|
27
|
-
npx storymode-cli play
|
|
28
|
-
npx storymode-cli play
|
|
26
|
+
npx storymode-cli play # full size (default)
|
|
27
|
+
npx storymode-cli play --compact # smaller pane
|
|
28
|
+
npx storymode-cli play --tiny # tiny pane
|
|
29
|
+
npx storymode-cli play --no-ai # disable AI personality
|
|
30
|
+
npx storymode-cli play --classic # full-screen animation viewer
|
|
29
31
|
```
|
|
30
32
|
|
|
31
33
|
**Keyboard:** `a` add API key (enables AI personality), `q` quit.
|
package/package.json
CHANGED
package/src/cli.mjs
CHANGED
|
@@ -78,8 +78,8 @@ const HELP = `
|
|
|
78
78
|
storymode-cli — AI-animated pixel art companions for your terminal
|
|
79
79
|
|
|
80
80
|
Usage:
|
|
81
|
-
storymode play
|
|
82
|
-
storymode browse Browse the gallery and
|
|
81
|
+
storymode play Run a reactive companion alongside Claude Code
|
|
82
|
+
storymode browse Browse the gallery and switch characters
|
|
83
83
|
|
|
84
84
|
Options:
|
|
85
85
|
--compact Smaller companion pane (default: full)
|
|
@@ -110,19 +110,17 @@ function parseFlags(args) {
|
|
|
110
110
|
return { flags, positional };
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
const DEFAULT_CHARACTER = 3; // Zephyr
|
|
114
|
+
|
|
113
115
|
export async function run(args) {
|
|
114
116
|
const cmd = args[0];
|
|
115
117
|
const { flags, positional } = parseFlags(args.slice(1));
|
|
116
|
-
const id = positional[0];
|
|
118
|
+
const id = positional[0] || (cmd === 'play' || cmd === 'companion' ? DEFAULT_CHARACTER : undefined);
|
|
117
119
|
|
|
118
120
|
switch (cmd) {
|
|
119
121
|
// --- Main command: reactive companion ---
|
|
120
122
|
case 'play':
|
|
121
123
|
case 'companion': {
|
|
122
|
-
if (!id) {
|
|
123
|
-
console.error('Usage: storymode play <id>');
|
|
124
|
-
process.exit(1);
|
|
125
|
-
}
|
|
126
124
|
|
|
127
125
|
// --classic: old full-screen animation viewer
|
|
128
126
|
if (flags.classic) {
|