@stage5/lumine 0.2.4 → 0.2.6
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 +26 -0
- package/bin/lumine.js +1 -3158
- package/lib/api.js +445 -0
- package/lib/assets.js +833 -0
- package/lib/auth.js +217 -0
- package/lib/commands.js +1512 -0
- package/lib/constants.js +296 -0
- package/lib/http.js +72 -0
- package/lib/sdk.js +489 -0
- package/lib/thumbnail.js +330 -0
- package/lib/util.js +154 -0
- package/lib/workspace.js +577 -0
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -77,6 +77,32 @@ which can differ from a method's `Twinkle.*` SDK return shape — check
|
|
|
77
77
|
`TWINKLE_BUILD_SDK.md` for SDK return shapes. Methods that change data require
|
|
78
78
|
`--allow-write`.
|
|
79
79
|
|
|
80
|
+
## Assets and AI image generation
|
|
81
|
+
|
|
82
|
+
Binary media never lives in the workspace — assets are uploaded to Twinkle and
|
|
83
|
+
referenced from code by URL. `lumine assets upload <file...>` uploads images or
|
|
84
|
+
audio; `lumine assets list` prints your uploads and refreshes
|
|
85
|
+
`.twinkle/assets.json`.
|
|
86
|
+
|
|
87
|
+
`lumine assets generate "<prompt>" --model <gpt-image-2|nano-banana>` creates
|
|
88
|
+
an AI-generated image asset instead of uploading one. `--model` is required
|
|
89
|
+
(gpt-image-2 = best quality, slower, pricier; nano-banana = Gemini, faster,
|
|
90
|
+
cheaper). Generation spends your Twinkle AI Battery, so the CLI shows the
|
|
91
|
+
estimated cost and asks for confirmation first — non-interactive runs must pass
|
|
92
|
+
`--yes` to consent. `--quality low|medium|high` applies to gpt-image-2 only.
|
|
93
|
+
|
|
94
|
+
## Thumbnails
|
|
95
|
+
|
|
96
|
+
`lumine thumbnail set <file>` uploads a jpg/png/webp (max 8MB) as the build's
|
|
97
|
+
thumbnail. `lumine thumbnail capture` screenshots the running app server-side
|
|
98
|
+
and sets the result (add `--out <file>` to keep a local copy).
|
|
99
|
+
`lumine thumbnail generate ["<prompt>"] --model <gpt-image-2|nano-banana>`
|
|
100
|
+
generates an AI image and sets it as the thumbnail (the image is also kept as a
|
|
101
|
+
normal reusable asset); without a prompt the server composes one from the build
|
|
102
|
+
title and description. Replacing an existing thumbnail asks for confirmation;
|
|
103
|
+
pass `--yes` for non-interactive runs. Thumbnail commands are blocked in
|
|
104
|
+
read-only `pull --main` checkouts.
|
|
105
|
+
|
|
80
106
|
The CLI checks npm for the latest `@stage5/lumine` version on normal commands.
|
|
81
107
|
If the installed copy is outdated, it prints an update warning and records the
|
|
82
108
|
version state in `.twinkle/lumine-project.json` so local agents can tell when
|