showpiece 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +385 -2
- package/assets/fonts/Inter-Bold.woff2 +0 -0
- package/assets/fonts/Inter-Regular.woff2 +0 -0
- package/assets/fonts/LICENSE-Inter.txt +93 -0
- package/assets/fonts/LICENSE-Metropolis.txt +24 -0
- package/assets/fonts/Metropolis-Medium.woff2 +0 -0
- package/assets/fonts/Metropolis-Regular.woff2 +0 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +2250 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +358 -0
- package/dist/index.js +2 -0
- package/dist/load-ESj2HkO6.js +238 -0
- package/dist/load-ESj2HkO6.js.map +1 -0
- package/package.json +71 -4
- package/skills/showpiece-flows/SKILL.md +229 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Fernando
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,386 @@
|
|
|
1
|
-
|
|
1
|
+
<h1 align="center">showpiece</h1>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<p align="center">
|
|
4
|
+
<strong>Your app changed. Your Play Store screenshots did not.</strong><br/>
|
|
5
|
+
Capture, frame and publish them from the terminal, with one config file. 📸
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<p align="center">
|
|
9
|
+
<a href="https://github.com/MrCordeiro/showpiece/actions/workflows/ci.yml"><img src="https://github.com/MrCordeiro/showpiece/actions/workflows/ci.yml/badge.svg" alt="CI"/></a>
|
|
10
|
+
<a href="https://www.npmjs.com/package/showpiece"><img src="https://img.shields.io/npm/v/showpiece" alt="npm"/></a>
|
|
11
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT License"/></a>
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+

|
|
15
|
+
|
|
16
|
+
<!-- TODO: demo GIF of capture → frame → publish --dry-run -->
|
|
17
|
+
|
|
18
|
+
| | showpiece |
|
|
19
|
+
| -- | --------- |
|
|
20
|
+
| 📱 | **Works with the build you already have.** Use a debug build, an Expo dev client, or last month's APK. |
|
|
21
|
+
| 🖼️ | **Frames screenshots automatically.** Add a caption, phone, and your colors without maintaining a Figma file. |
|
|
22
|
+
| 🚀 | **Publishes to Google Play.** Replace your listing screenshots directly from the terminal. Use `--dry-run` to validate everything without making changes. |
|
|
23
|
+
| 🎯 | **Produces identical output every time.** Your laptop and CI generate byte-identical images. |
|
|
24
|
+
| 🩺 | **Explains failed flows.** Get per-screen diagnostics, plus an agent skill that can read them and repair the flow. |
|
|
25
|
+
| 🛡️ | **Never cancels a review.** Your Play Store's pending release are never impacted. |
|
|
26
|
+
|
|
27
|
+
## Why showpiece?
|
|
28
|
+
|
|
29
|
+
Every release ended with the same tedious routine: open the emulator, navigate to each screen, take screenshots, drop them into a design tool, export them, and upload them to Play Console. Then the app changed again, and the screenshots were out of date again.
|
|
30
|
+
|
|
31
|
+
Most screenshot workflows require a production build, a design tool, or fastlane and Ruby. My production builds take 30 minutes, so I wanted something that could work with whatever build was already running on the emulator.
|
|
32
|
+
|
|
33
|
+
showpiece uses [Maestro](https://maestro.mobile.dev) to navigate to each screen, [sharp](https://sharp.pixelplumbing.com) to frame the screenshots, and the Play Developer API to publish them. A single config file defines the screens you want and the captions for each one.
|
|
34
|
+
|
|
35
|
+
## Quickstart
|
|
36
|
+
|
|
37
|
+
You need Node.js 22.12+, [Maestro](https://maestro.mobile.dev/getting-started/installing-maestro) and `adb` on your PATH, and an Android emulator.
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npm install --save-dev showpiece
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Create `showpiece.config.ts` at the root of your app repo:
|
|
44
|
+
|
|
45
|
+
```ts
|
|
46
|
+
import { defineConfig } from "showpiece";
|
|
47
|
+
|
|
48
|
+
export default defineConfig({
|
|
49
|
+
app: { packageName: "com.example.myapp" },
|
|
50
|
+
device: { avd: "Pixel_7_API_34" },
|
|
51
|
+
frame: {
|
|
52
|
+
template: "gradient",
|
|
53
|
+
background: ["#1a1a2e", "#16213e"],
|
|
54
|
+
textColor: "#ffffff",
|
|
55
|
+
},
|
|
56
|
+
publish: { serviceAccountKeyPath: "./.envs/play-service-account.json" },
|
|
57
|
+
screens: [
|
|
58
|
+
{
|
|
59
|
+
id: "home",
|
|
60
|
+
flow: ".showpiece/flows/home.yaml",
|
|
61
|
+
caption: "Track everything in one place",
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
});
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Add one Maestro flow per screen. It ends with `takeScreenshot`, named after the screen `id`:
|
|
68
|
+
|
|
69
|
+
```yaml
|
|
70
|
+
# .showpiece/flows/home.yaml
|
|
71
|
+
appId: com.example.myapp
|
|
72
|
+
---
|
|
73
|
+
- launchApp
|
|
74
|
+
- extendedWaitUntil:
|
|
75
|
+
visible: "Home"
|
|
76
|
+
timeout: 60000
|
|
77
|
+
- takeScreenshot: home
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Start Metro (`npx expo start`) if you use a debug build or a dev client, then:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
npx showpiece capture # screenshots → .showpiece/screenshots/raw/
|
|
84
|
+
npx showpiece frame # framed images → .showpiece/screenshots/framed/
|
|
85
|
+
npx showpiece publish --dry-run # validate on Google Play, change nothing
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
`publish` needs a service account first: see [Publish setup](#publish-setup). The [`example/`](example/) folder has a complete config and three flows.
|
|
89
|
+
|
|
90
|
+
## Help shape showpiece
|
|
91
|
+
|
|
92
|
+
showpiece is young, and what we build next depends on how you make store screenshots today. Maybe you use showpiece every week, maybe you tried it once, or maybe you are only curious. I would like to hear from you either way.
|
|
93
|
+
|
|
94
|
+
- **A 15-min call:** [book a time](https://cal.com/fernando-cordeiro/how-you-make-store-screenshots-showpiece). These calls decide the roadmap. As thanks, I email you a one-page summary of what I learn: how other teams make their store screenshots, and what I build next.
|
|
95
|
+
- **No time for a call?** Tell me in [Discussions](https://github.com/MrCordeiro/showpiece/discussions).
|
|
96
|
+
|
|
97
|
+
## Configuration
|
|
98
|
+
|
|
99
|
+
```ts
|
|
100
|
+
import { defineConfig } from "showpiece";
|
|
101
|
+
|
|
102
|
+
export default defineConfig({
|
|
103
|
+
app: {
|
|
104
|
+
packageName: "com.example.myapp",
|
|
105
|
+
// apkPath: "./builds/app-release.apk", // optional; omit it if the app is already installed
|
|
106
|
+
},
|
|
107
|
+
device: {
|
|
108
|
+
avd: "Pixel_7_API_34",
|
|
109
|
+
locale: "en-US",
|
|
110
|
+
devServer: true, // Metro-backed dev build; false for a standalone APK
|
|
111
|
+
metroPort: 8081,
|
|
112
|
+
},
|
|
113
|
+
frame: {
|
|
114
|
+
template: "gradient",
|
|
115
|
+
background: ["#1a1a2e", "#16213e"],
|
|
116
|
+
textColor: "#ffffff",
|
|
117
|
+
font: "Metropolis", // or "Inter"
|
|
118
|
+
},
|
|
119
|
+
publish: {
|
|
120
|
+
serviceAccountKeyPath: "./.envs/play-service-account.json",
|
|
121
|
+
track: "listing",
|
|
122
|
+
listing: ["profile.png", "home.png"], // optional; see Publish
|
|
123
|
+
},
|
|
124
|
+
appearance: "light",
|
|
125
|
+
screenshotsDir: ".showpiece/screenshots", // optional; this is the default
|
|
126
|
+
screens: [
|
|
127
|
+
{
|
|
128
|
+
id: "home",
|
|
129
|
+
flow: ".showpiece/flows/home.yaml",
|
|
130
|
+
caption: "Track everything in one place",
|
|
131
|
+
subtitle: "Every account, one screen", // optional
|
|
132
|
+
background: "#3ccf91", // optional; overrides frame.background
|
|
133
|
+
textColor: "#1a1a1a", // optional; overrides frame.textColor
|
|
134
|
+
},
|
|
135
|
+
{ id: "profile", flow: ".showpiece/flows/profile.yaml", caption: "Your data, your way" },
|
|
136
|
+
],
|
|
137
|
+
});
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Config files can be `.ts`, `.js`, `.mjs` or `.json`. Paths are relative to the config file.
|
|
141
|
+
|
|
142
|
+
Commit `.showpiece/flows/`, and ignore the generated output:
|
|
143
|
+
|
|
144
|
+
```gitignore
|
|
145
|
+
.showpiece/screenshots/
|
|
146
|
+
.showpiece/diagnostics/
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
## Writing flows
|
|
150
|
+
|
|
151
|
+
Each screenshot gets its own flow. The one required rule is that the `takeScreenshot` name must match the screen `id`.
|
|
152
|
+
|
|
153
|
+
>[!note]
|
|
154
|
+
> We recommend using fixed demo data for consistent screenshots.
|
|
155
|
+
|
|
156
|
+
`frame` shows only the top ~70% of each screenshot, so keep the important content in the top two-thirds.
|
|
157
|
+
|
|
158
|
+
**Debug builds and dev clients:**
|
|
159
|
+
|
|
160
|
+
- Use a plain `- launchApp`, not `clearState: true`. `clearState` deletes the saved Metro URL and your login state.
|
|
161
|
+
- Wait for an element of your app, with a long timeout (`60000`). The first bundle load can take a minute.
|
|
162
|
+
- If a dev client opens its launcher, use `- openLink: "myapp://expo-development-client/?url=http://localhost:8081"` instead of `launchApp`.
|
|
163
|
+
|
|
164
|
+
**Standalone APKs:** set `device.devServer: false`. Then `clearState: true` is safe to use.
|
|
165
|
+
|
|
166
|
+
### Expo Router: deep-link to screens
|
|
167
|
+
|
|
168
|
+
With [Expo Router](https://docs.expo.dev/router/introduction/), every route is a URL, and a deep link is more reliable than taps through the UI. Set a scheme in `app.json` (`{ "expo": { "scheme": "myapp" } }`), and Expo Router makes the links from your file routes:
|
|
169
|
+
|
|
170
|
+
| Route file | Deep link |
|
|
171
|
+
| --- | --- |
|
|
172
|
+
| `app/index.tsx` | `myapp://` |
|
|
173
|
+
| `app/(tabs)/home.tsx` | `myapp://home` *(the `(tabs)` group is omitted)* |
|
|
174
|
+
| `app/settings/account.tsx` | `myapp://settings/account` |
|
|
175
|
+
| `app/user/[id].tsx` | `myapp://user/42` |
|
|
176
|
+
| `app/search.tsx` | `myapp://search?q=trees` |
|
|
177
|
+
|
|
178
|
+
```yaml
|
|
179
|
+
# .showpiece/flows/profile.yaml
|
|
180
|
+
appId: com.example.myapp
|
|
181
|
+
---
|
|
182
|
+
- launchApp
|
|
183
|
+
- openLink: myapp://profile
|
|
184
|
+
- extendedWaitUntil:
|
|
185
|
+
visible: "Your data, your way"
|
|
186
|
+
timeout: 10000
|
|
187
|
+
- takeScreenshot: profile
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
- Test a link once with `adb shell am start -a android.intent.action.VIEW -d "myapp://profile" com.example.myapp`. Expo Go (`exp://`) is not supported; use a dev client.
|
|
191
|
+
- Put ids in the URL (`myapp://user/42`) to show the same demo data on every run.
|
|
192
|
+
- For modals and bottom sheets, use `tapOn: { id: "your-testID" }`.
|
|
193
|
+
- If a screen animates in, add `waitForAnimationToEnd` before `takeScreenshot`.
|
|
194
|
+
|
|
195
|
+
`example/.showpiece/flows/` has a deep link (`profile.yaml`), a nested route (`settings.yaml`) and a flow that starts from `launchApp` (`home.yaml`).
|
|
196
|
+
|
|
197
|
+
## Capture
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
npx showpiece capture # every configured screen
|
|
201
|
+
npx showpiece capture --only home,profile # a subset
|
|
202
|
+
npx showpiece capture --serial emulator-5554 # a specific device
|
|
203
|
+
npx showpiece capture --appearance dark # dark mode
|
|
204
|
+
npx showpiece capture --clean # empty raw/ first
|
|
205
|
+
npx showpiece capture --config ./path/to/showpiece.config.ts
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
`capture` boots the AVD if no emulator runs, installs `apkPath` if you set one, and connects the app to Metro. It sets a clean status bar (9:30, full battery), runs each flow in config order, and prints a summary. It exits with a non-zero code if a screen failed.
|
|
209
|
+
|
|
210
|
+
For a debug build or a dev client, start Metro first:
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
# terminal 1, in your app repo
|
|
214
|
+
npx expo start
|
|
215
|
+
|
|
216
|
+
# terminal 2
|
|
217
|
+
npx showpiece capture
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
## Frame
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
npx showpiece frame # every configured screen
|
|
224
|
+
npx showpiece frame --only home,profile # a subset
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
`frame` makes a 1080×1920 PNG for each raw screenshot: your caption and optional `subtitle` at the top, and a large phone below them. Three templates (`frame.template`):
|
|
228
|
+
|
|
229
|
+
| Template | Look |
|
|
230
|
+
| --- | --- |
|
|
231
|
+
| `gradient` | A flat phone outline on a two-stop gradient. |
|
|
232
|
+
| `solid` | The same, on a flat colour. |
|
|
233
|
+
| `minimal` | No phone outline: the screenshot with rounded corners and a soft shadow. |
|
|
234
|
+
|
|
235
|
+
`screens[].background` and `screens[].textColor` override the colours for one screen. The fonts are Metropolis (default) and Inter, bundled with showpiece.
|
|
236
|
+
|
|
237
|
+
## Dark mode
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
npx showpiece capture --appearance dark # or set appearance: "dark" in the config
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
Dark screenshots get a `-dark` suffix (`home-dark.png`), so a light run and a dark run can share one folder. `frame` and `publish` use the same names.
|
|
244
|
+
|
|
245
|
+
>[!warning]
|
|
246
|
+
> **Your app must follow the system appearance.** In Expo, set `"userInterfaceStyle": "automatic"` in `app.json`. Otherwise you get light screenshots with `-dark` names.
|
|
247
|
+
|
|
248
|
+
## Publish
|
|
249
|
+
|
|
250
|
+
### Publish setup
|
|
251
|
+
|
|
252
|
+
`publish` uses a Google Cloud service account with a JSON key. Do this once per app:
|
|
253
|
+
|
|
254
|
+
1. In a Google Cloud project, enable the **Google Play Android Developer API**.
|
|
255
|
+
2. Create a service account with no IAM roles, and create a JSON key for it.
|
|
256
|
+
3. Save the key at `publish.serviceAccountKeyPath`, and add its folder to `.gitignore`.
|
|
257
|
+
4. In Play Console → **Users and permissions**, invite the service account's email and give it **Manage store presence** for the app.
|
|
258
|
+
5. Wait a few minutes, then run `npx showpiece publish --dry-run`.
|
|
259
|
+
|
|
260
|
+
<details>
|
|
261
|
+
<summary>Steps 1–3 with OpenTofu or Terraform</summary>
|
|
262
|
+
|
|
263
|
+
The state file of this configuration contains the private key. Do not commit or share the state file.
|
|
264
|
+
|
|
265
|
+
```hcl
|
|
266
|
+
terraform {
|
|
267
|
+
required_providers {
|
|
268
|
+
google = { source = "hashicorp/google", version = "~> 6.0" }
|
|
269
|
+
local = { source = "hashicorp/local", version = "~> 2.5" }
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
variable "project_id" { type = string }
|
|
274
|
+
|
|
275
|
+
provider "google" {
|
|
276
|
+
project = var.project_id
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
resource "google_project_service" "androidpublisher" {
|
|
280
|
+
service = "androidpublisher.googleapis.com"
|
|
281
|
+
disable_on_destroy = false
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
resource "google_service_account" "showpiece" {
|
|
285
|
+
account_id = "showpiece-publisher"
|
|
286
|
+
display_name = "showpiece Play listing publisher"
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
resource "google_service_account_key" "showpiece" {
|
|
290
|
+
service_account_id = google_service_account.showpiece.name
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
resource "local_sensitive_file" "key" {
|
|
294
|
+
content_base64 = google_service_account_key.showpiece.private_key
|
|
295
|
+
filename = "${path.root}/../.envs/play-service-account.json"
|
|
296
|
+
file_permission = "0600"
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
output "service_account_email" {
|
|
300
|
+
value = google_service_account.showpiece.email
|
|
301
|
+
}
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
</details>
|
|
305
|
+
|
|
306
|
+
### Commands
|
|
307
|
+
|
|
308
|
+
```bash
|
|
309
|
+
npx showpiece publish --dry-run # upload and validate, then delete the change
|
|
310
|
+
npx showpiece publish # show the listing, ask, then commit
|
|
311
|
+
npx showpiece publish --yes # commit without asking (for scripts)
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
`publish.listing` sets which images go to the store, in order:
|
|
315
|
+
|
|
316
|
+
```ts
|
|
317
|
+
publish: {
|
|
318
|
+
serviceAccountKeyPath: "./.envs/play-service-account.json",
|
|
319
|
+
listing: [
|
|
320
|
+
"home.png", // a framed screen
|
|
321
|
+
"budget-dark.png", // light or dark, per entry
|
|
322
|
+
"./marketing/budget-highlighted.png", // any image of your own, uploaded as it is
|
|
323
|
+
],
|
|
324
|
+
},
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
Without `listing`, `publish` uses every screen in config order. If your dev build has its own package name (for example `com.example.myapp.dev`), set `publish.packageName` to the app on Google Play.
|
|
328
|
+
|
|
329
|
+
Before it uploads, `publish` prints the listing with a status for each image:
|
|
330
|
+
|
|
331
|
+
| Status | Meaning | Stops the run |
|
|
332
|
+
| ----------- | ------- | ------------- |
|
|
333
|
+
| `ok` | Ready to upload. | No |
|
|
334
|
+
| `stale` | The raw screenshot or the config changed after `frame`, or someone edited the framed file. Run `showpiece frame` to update it. | No |
|
|
335
|
+
| `missing` | The file does not exist, or the name does not match a screen. The table suggests a similar name. | Yes |
|
|
336
|
+
| `too large` | The file is larger than 8 MB. | Yes |
|
|
337
|
+
| `invalid` | The file is not PNG or JPEG, has an alpha channel, or has incorrect dimensions. | Yes |
|
|
338
|
+
|
|
339
|
+
If your release or an earlier listing change is still in review, `publish` stops with `E_PUBLISH_IN_REVIEW` and changes nothing. Run it again after Google approves the change.
|
|
340
|
+
|
|
341
|
+
## Troubleshooting
|
|
342
|
+
|
|
343
|
+
Every capture writes evidence for each screen to `.showpiece/diagnostics/`:
|
|
344
|
+
|
|
345
|
+
```txt
|
|
346
|
+
.showpiece/diagnostics/
|
|
347
|
+
last-run.json status and error code of each screen in the last run
|
|
348
|
+
home/
|
|
349
|
+
context.json flow, device, exit code, status
|
|
350
|
+
commands.json Maestro's log of each step
|
|
351
|
+
failure-screenshot.png the screen at the failed step
|
|
352
|
+
hierarchy.json the view hierarchy at the end
|
|
353
|
+
maestro.log Maestro's own log
|
|
354
|
+
maestro-stdout.log Maestro's output
|
|
355
|
+
crash-signals.log crashes and process deaths from logcat
|
|
356
|
+
logcat.txt the full device log
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
Each failure has an error code (`E_FLOW_FAILED`, `E_APP_CRASHED`, `E_METRO_UNREACHABLE`, …) in the summary and in `last-run.json`.
|
|
360
|
+
|
|
361
|
+
### Let an agent fix failed flows
|
|
362
|
+
|
|
363
|
+
The `showpiece-flows` skill teaches a coding agent the flow rules, the diagnostics layout and the fix for each error code.
|
|
364
|
+
|
|
365
|
+
```bash
|
|
366
|
+
npx showpiece skill install # writes .claude/skills/showpiece-flows/SKILL.md
|
|
367
|
+
npx showpiece skill install --force # replaces an installed copy
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
Claude Code finds the skill automatically, but I haven't tested this extensively. Run the command again after you upgrade showpiece, to get the new version of the skill.
|
|
371
|
+
|
|
372
|
+
**Other agents (Codex, Cursor, Copilot and others).** The skill is at `node_modules/showpiece/skills/showpiece-flows/SKILL.md`. You may need to add a line to the agent's instruction file (for example `AGENTS.md`, or a rule in `.cursor/rules/`):
|
|
373
|
+
|
|
374
|
+
```md
|
|
375
|
+
When `showpiece capture` fails, read node_modules/showpiece/skills/showpiece-flows/SKILL.md before you change a flow.
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
This path always refers to the installed version, so the agent gets the new skill when you upgrade showpiece.
|
|
379
|
+
|
|
380
|
+
## Contributing
|
|
381
|
+
|
|
382
|
+
Bug reports, feature requests and pull requests are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
383
|
+
|
|
384
|
+
## License
|
|
385
|
+
|
|
386
|
+
MIT
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
This is free and unencumbered software released into the public domain.
|
|
2
|
+
|
|
3
|
+
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
4
|
+
distribute this software, either in source code form or as a compiled
|
|
5
|
+
binary, for any purpose, commercial or non-commercial, and by any
|
|
6
|
+
means.
|
|
7
|
+
|
|
8
|
+
In jurisdictions that recognize copyright laws, the author or authors
|
|
9
|
+
of this software dedicate any and all copyright interest in the
|
|
10
|
+
software to the public domain. We make this dedication for the benefit
|
|
11
|
+
of the public at large and to the detriment of our heirs and
|
|
12
|
+
successors. We intend this dedication to be an overt act of
|
|
13
|
+
relinquishment in perpetuity of all present and future rights to this
|
|
14
|
+
software under copyright law.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
20
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
+
|
|
24
|
+
For more information, please refer to <http://unlicense.org/>
|
|
Binary file
|
|
Binary file
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|