storyink 0.2.0 → 0.2.1
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/CHANGELOG.md +27 -0
- package/README.md +9 -2
- package/dist/chunks/{index-xjaczbn5.js → index-1x789mr9.js} +22 -12
- package/dist/chunks/{index-aq1sxjmx.js → index-cbjmgtv7.js} +90 -1
- package/dist/cli.js +115 -13
- package/dist/core/index.js +1 -1
- package/dist/index.js +41 -24
- package/dist/node/index.js +2 -2
- package/dist/types/core/render/App.d.ts +3 -0
- package/dist/types/core/render/Story.d.ts +3 -1
- package/dist/types/generated/meta.d.ts +1 -1
- package/dist/types/generated/viewer.d.ts +1 -1
- package/dist/types/node/snapshot.d.ts +21 -0
- package/dist/types/plugin.d.ts +21 -0
- package/package.json +3 -2
- package/skill/SKILL.md +11 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
- **Fix:** `storyink_snapshot` no longer inlines the full-resolution contact sheet. Tall beat
|
|
6
|
+
sheets (1440 px wide, thousands of px tall) could stall the next model request and bloat
|
|
7
|
+
session context. It now returns **one compact JPEG preview**, with its longest side at most
|
|
8
|
+
1024 px and a 300 KB budget. Beat sheets are reflowed into 3–8 columns so they fit in one
|
|
9
|
+
image.
|
|
10
|
+
- New tool options: `image: "overview" | "full" | "none"` (default `overview`; `full` returns
|
|
11
|
+
at most 3 parts) and `maxImageSize` (default 1024).
|
|
12
|
+
- Full-resolution PNGs stay on disk and are listed in the text result.
|
|
13
|
+
- CLI: `storyink snapshot … --preview out.jpg [--preview-size 1024]` writes the same preview.
|
|
14
|
+
- Snapshot receipts include `previews` (path, size, bytes, what the image shows).
|
|
15
|
+
- The beat-sheet page accepts `#cols=N`, `#range=a-b` and `#zoom=z`.
|
|
16
|
+
- SKILL.md: guidance on keeping image reads few and on using `at` frames for detail.
|
|
17
|
+
|
|
18
|
+
## 0.2.0
|
|
19
|
+
|
|
20
|
+
- Storyboard mode: `story` steps and `"story": "auto"`, the pure `storyState(t)`, the viewer
|
|
21
|
+
transport and counters. Snapshot gets `--at`, `--sheet beats` and the static gates.
|
|
22
|
+
- Fixes: captions belong to their own step, humanised beat titles, warm light-theme glow,
|
|
23
|
+
beat sheets sized to their content.
|
|
24
|
+
|
|
25
|
+
## 0.1.0
|
|
26
|
+
|
|
27
|
+
- First release: spec, validation, Mermaid import, layout, SSR/viewer, CLI, OpenCode plugin.
|
package/README.md
CHANGED
|
@@ -38,6 +38,7 @@ storyink render <in.json|in.mmd|-> [-o out.html] [--svg out.svg] [--theme light|
|
|
|
38
38
|
storyink mermaid <in.mmd> [-o out.json]
|
|
39
39
|
storyink validate <in> [--json]
|
|
40
40
|
storyink snapshot <out.html> [--theme light,dark] [--width N] [--sheet [themes|beats]|--no-sheet] [--at 0.5,1.2,end] [--scale 2] [-o dir] [--json]
|
|
41
|
+
[--preview out.jpg [--preview-size 1024]]
|
|
41
42
|
storyink skill
|
|
42
43
|
```
|
|
43
44
|
|
|
@@ -74,8 +75,14 @@ read `package.json` `main`, which is why the repo ships a root `server.js` that
|
|
|
74
75
|
Rebuild after changes, then restart the server (or touch the config) to reload.
|
|
75
76
|
|
|
76
77
|
This adds the tools `storyink_render`, `storyink_from_mermaid`, `storyink_validate` and
|
|
77
|
-
`storyink_snapshot`. `storyink_snapshot` returns
|
|
78
|
-
|
|
78
|
+
`storyink_snapshot`. `storyink_snapshot` returns **one compact preview image** so the model can see its
|
|
79
|
+
own render: a JPEG no larger than `maxImageSize` (1024 px by default) on its longest side, and
|
|
80
|
+
usually well under 300 KB.
|
|
81
|
+
- Beat sheets are reflowed into more columns so they fit in that single image.
|
|
82
|
+
- Set `image: "full"` to get the normal sheet layout instead, split into at most 3 parts, or
|
|
83
|
+
`image: "none"` to get paths only.
|
|
84
|
+
- Full-resolution PNGs are never inlined; they stay on disk and their paths are listed. The CLI
|
|
85
|
+
equivalent is `--preview out.jpg`. The plugin also adds the `storyink` skill (`skill/SKILL.md`), which covers
|
|
79
86
|
choosing a diagram type, writing the spec, and the render → look → fix loop. If you already have
|
|
80
87
|
a skill with the id `storyink`, yours is kept. Relative paths resolve against the project
|
|
81
88
|
directory.
|