storymaps 1.2.8 → 1.2.9
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 +30 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,12 @@ Story maps are structured data. The CLI lets you export the structure behind the
|
|
|
23
23
|
npm install -g storymaps
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
+
Or run it without installing, the way the Build with AI command on storymaps.io does:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npx storymaps pull storymaps.io/abc123
|
|
30
|
+
```
|
|
31
|
+
|
|
26
32
|
Or clone and link locally:
|
|
27
33
|
|
|
28
34
|
```bash
|
|
@@ -43,6 +49,7 @@ Or pull an existing map:
|
|
|
43
49
|
|
|
44
50
|
```bash
|
|
45
51
|
storymaps pull storymaps.io/abc123 # download as YAML
|
|
52
|
+
storymaps pull storymaps.io/p/k8f2m9xq/abc123 # a map inside a project link works too
|
|
46
53
|
```
|
|
47
54
|
|
|
48
55
|
Edit the YAML, then push it back:
|
|
@@ -104,17 +111,19 @@ storymaps open storymaps.io/abc123 # open a specific remote map
|
|
|
104
111
|
```bash
|
|
105
112
|
storymaps pull # uses id/site from storymap.yml
|
|
106
113
|
storymaps pull storymaps.io/abc123 # pull a specific map
|
|
114
|
+
storymaps pull --force # overwrite the local file without asking
|
|
107
115
|
```
|
|
108
116
|
|
|
109
|
-
Shows a summary of changes before overwriting
|
|
117
|
+
Shows a summary of changes and asks before overwriting the local file, unless you pass `--force`.
|
|
110
118
|
|
|
111
119
|
### `push`
|
|
112
120
|
|
|
113
121
|
```bash
|
|
114
122
|
storymaps push # push local changes to the server
|
|
123
|
+
storymaps push --force # skip the conflict check and overwrite the server copy
|
|
115
124
|
```
|
|
116
125
|
|
|
117
|
-
If the file has no `id`, a new map is created on the server. Conflicts are detected using ETags. If the remote has changed since your last pull, you'll be prompted to pull first. Locked maps prompt for the password.
|
|
126
|
+
If the file has no `id`, a new map is created on the server. Conflicts are detected using ETags. If the remote has changed since your last pull, you'll be prompted to pull first; `--force` pushes anyway and replaces whatever changed on the server. Locked maps prompt for the password.
|
|
118
127
|
|
|
119
128
|
### `diff`
|
|
120
129
|
|
|
@@ -156,6 +165,12 @@ storymaps unlock --remove # permanently remove the lock
|
|
|
156
165
|
storymaps validate storymap.yml # check YAML structure
|
|
157
166
|
```
|
|
158
167
|
|
|
168
|
+
### Options
|
|
169
|
+
|
|
170
|
+
A target can be a map ID, `domain/id`, or a full URL, including a map inside a project link (`storymaps.io/p/<project>/<map>`).
|
|
171
|
+
|
|
172
|
+
`pull`, `push`, `open`, `lock`, `unlock`, `status` and `log` take `-f, --file <path>` to use a file other than `storymap.yml`.
|
|
173
|
+
|
|
159
174
|
### `convert`
|
|
160
175
|
|
|
161
176
|
```bash
|
|
@@ -259,6 +274,16 @@ Cards support: `name`, `body`, `color`, `status` (done / in-progress / planned /
|
|
|
259
274
|
|
|
260
275
|
Slices support: `name`, `stories`, `goal` (up to 200 characters), `targetDate` (`YYYY-MM-DD`), and `collapsed` with `closedReason` (complete / closed).
|
|
261
276
|
|
|
277
|
+
## Use with AI Coding Agents
|
|
278
|
+
|
|
279
|
+
A story map makes a good specification for an AI coding agent: the YAML lists every step of the journey and the cards under each one, slice by slice. **Build with AI** on storymaps.io writes the command for you:
|
|
280
|
+
|
|
281
|
+
```bash
|
|
282
|
+
npx storymaps pull --force storymaps.io/abc123 && claude "The storymap file @storymap.yml describes a product plan in user story map format. Use it as a structured specification. Your task: build a functional prototype of the features listed in the 'MVP' slice."
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
From there you steer the agent a slice or a feature at a time ("now build search from the V1 slice"). When a feature has been through QA, set its cards to `status: done` in `storymap.yml` and `storymaps push`, so the map shows the progress to everyone else. Pull again before the next round to pick up changes made in the browser.
|
|
286
|
+
|
|
262
287
|
## Self-Hosting
|
|
263
288
|
|
|
264
289
|
The CLI works with any storymaps.io instance:
|
|
@@ -269,6 +294,8 @@ storymaps init --site storymaps.yourcompany.com
|
|
|
269
294
|
|
|
270
295
|
See the [main project README](https://github.com/jackgleeson/storymaps.io#self-hosting) for setup instructions.
|
|
271
296
|
|
|
297
|
+
Every request names the CLI and its version in the User-Agent header (`storymaps-cli/<version>`), so CLI use shows up as such in your server logs.
|
|
298
|
+
|
|
272
299
|
## Development
|
|
273
300
|
|
|
274
301
|
```bash
|
|
@@ -283,7 +310,7 @@ To try a change against a local storymaps.io server, run the CLI from the repo,
|
|
|
283
310
|
### Releasing
|
|
284
311
|
|
|
285
312
|
1. Commit your changes on `main`.
|
|
286
|
-
2. Bump the version in `package.json` and commit it as "Bump version to x.y.z". Use a patch for fixes and a minor version for new features.
|
|
313
|
+
2. Bump the version in `package.json` and in both places near the top of `package-lock.json`, and commit it as "Bump version to x.y.z". Use a patch for fixes and a minor version for new features.
|
|
287
314
|
3. Tag the commit and push both:
|
|
288
315
|
```bash
|
|
289
316
|
git tag vx.y.z
|