greatstore 0.0.0-stage → 0.2.3
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 +564 -0
- package/README.md +122 -2
- package/dist/cli.js +795 -0
- package/dist/gs-skill/SKILL.md +82 -0
- package/dist/gs-skill/recipes/ask-about-this.md +31 -0
- package/dist/gs-skill/recipes/campaign-hero.md +48 -0
- package/dist/gs-skill/recipes/comparison-table.md +80 -0
- package/dist/gs-skill/recipes/complete-the-look.md +59 -0
- package/dist/gs-skill/recipes/gift-finder-funnel.md +88 -0
- package/dist/gs-skill/recipes/launchers.md +109 -0
- package/dist/gs-skill/recipes/page-action-suite.md +87 -0
- package/dist/gs-skill/recipes/product-faq.md +58 -0
- package/dist/gs-skill/references/agents-and-mcp.md +35 -0
- package/dist/gs-skill/references/apps.md +339 -0
- package/dist/gs-skill/references/embed-api.md +369 -0
- package/dist/gs-skill/references/push-notifications.md +66 -0
- package/dist/gs-skill/references/store-admin.md +129 -0
- package/dist/gs-skill/references/structured-content.md +296 -0
- package/package.json +29 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,564 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@greatstore/cli` are recorded here. The format
|
|
4
|
+
follows [Keep a Changelog](https://keepachangelog.com/).
|
|
5
|
+
|
|
6
|
+
## 0.2.3 — 2026-10-07
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
- The CLI is also published as `greatstore`, so `npx greatstore <command>`
|
|
10
|
+
works with nothing to install. Help and messages are written that way; `gs` keeps working for anyone who installed
|
|
11
|
+
`@greatstore/cli`.
|
|
12
|
+
- `npx greatstore skill` works without installing the CLI. The skill is
|
|
13
|
+
linked from a copy in `~/.greatstore/skill/`, which any newer version of
|
|
14
|
+
the CLI refreshes when it runs.
|
|
15
|
+
|
|
16
|
+
## 0.2.1 — 2026-09-30
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
- Updated skill and agent documentation.
|
|
20
|
+
|
|
21
|
+
## 0.2.0 — 2026-09-22
|
|
22
|
+
|
|
23
|
+
### Removed
|
|
24
|
+
- `--theme.panelPosition`. The chat is a bar at the bottom of the page on
|
|
25
|
+
every screen size, so there is no side to pick. The field is rejected as
|
|
26
|
+
unknown; drop it from any script that sets it.
|
|
27
|
+
- `--theme.mobileBottomBar`. The chat bar is always shown.
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
- This is the oldest version the server will serve. Earlier ones are refused
|
|
31
|
+
with an upgrade notice — `npm install -g @greatstore/cli@latest`.
|
|
32
|
+
|
|
33
|
+
## 0.1.16 — 2026-09-17
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
- `gs apps init` scaffolds a project that calls custom in-chat UI **apps**
|
|
37
|
+
throughout. The generated `AGENTS.md` walks a coding agent through how an
|
|
38
|
+
app runs — the assistant picks it by the manifest's name and description,
|
|
39
|
+
calls it with the declared props, and from there the app can report what
|
|
40
|
+
the shopper is doing, send a message on their behalf, run a
|
|
41
|
+
catalog-grounded generation of its own, or be called again with revised
|
|
42
|
+
props — and spells out that a name and description should say *when* the
|
|
43
|
+
assistant should reach for the app, not what the app looks like. The
|
|
44
|
+
default `manifest.json` description is a placeholder in that shape.
|
|
45
|
+
|
|
46
|
+
## 0.1.15 — 2026-09-17
|
|
47
|
+
|
|
48
|
+
### Changed
|
|
49
|
+
- The bundled agent skill (`gs skill`) calls custom in-chat UI **apps**
|
|
50
|
+
throughout, matching `gs apps` and the dashboard, and documents the
|
|
51
|
+
lifecycle a coding agent needs: the assistant picks an app and calls it
|
|
52
|
+
with the props the manifest declares, the app renders, and from there it
|
|
53
|
+
can report what the shopper is doing, send a message on their behalf, run
|
|
54
|
+
a catalog-grounded generation of its own for recommendations or a
|
|
55
|
+
personalized summary, or be called again with revised props. Guidance on
|
|
56
|
+
writing a `name` and `description` now spells out that they should say
|
|
57
|
+
*when* the assistant should reach for the app, not what the app looks like.
|
|
58
|
+
|
|
59
|
+
## 0.1.13 — 2026-09-16
|
|
60
|
+
|
|
61
|
+
### Removed
|
|
62
|
+
- Components are no longer passed an `onCallTool` prop. Drop it from your
|
|
63
|
+
component's `Props` — one still declaring it gets an undeclared-prop
|
|
64
|
+
warning from `gs apps validate`. To hand off to another component, call
|
|
65
|
+
`onSendMessage(...)` with the follow-up you want and let the assistant
|
|
66
|
+
take it from there.
|
|
67
|
+
|
|
68
|
+
### Changed
|
|
69
|
+
- This release is the minimum version the server accepts — earlier ones stop
|
|
70
|
+
working. Run `npm install -g @greatstore/cli@latest` to upgrade.
|
|
71
|
+
|
|
72
|
+
## 0.1.12 — 2026-09-14
|
|
73
|
+
|
|
74
|
+
### Changed
|
|
75
|
+
- `gs apps init` scaffolds a `manifest.json` listing every supported field,
|
|
76
|
+
including `"async": false`, and a component exported as `Component`, which
|
|
77
|
+
stays accurate after `gs apps rename`.
|
|
78
|
+
|
|
79
|
+
## 0.1.11 — 2026-09-14
|
|
80
|
+
|
|
81
|
+
### Added
|
|
82
|
+
- `gs apps rename <old> <new>` renames a component without republishing it:
|
|
83
|
+
its versions and live state carry over, and a local `components/<old>/`
|
|
84
|
+
folder is renamed to match.
|
|
85
|
+
|
|
86
|
+
## 0.1.10 — 2026-09-13
|
|
87
|
+
|
|
88
|
+
### Changed
|
|
89
|
+
- This release is the minimum version the server accepts — earlier ones stop
|
|
90
|
+
working. Run `npm install -g @greatstore/cli@latest` to upgrade.
|
|
91
|
+
- The published package is around a third smaller to download.
|
|
92
|
+
|
|
93
|
+
## 0.1.9 — 2026-09-12
|
|
94
|
+
|
|
95
|
+
### Added
|
|
96
|
+
- `gs apps push` stops and asks you to `gs apps pull` first when the store has
|
|
97
|
+
a newer version of a component than the copy you are pushing, instead of
|
|
98
|
+
replacing work you have never seen. Pass `--force` to push over it anyway.
|
|
99
|
+
|
|
100
|
+
### Fixed
|
|
101
|
+
- `gs apps pull` downloads a pre-installed app you have unpublished, instead of
|
|
102
|
+
reporting it as not found.
|
|
103
|
+
|
|
104
|
+
## 0.1.8 — 2026-09-12
|
|
105
|
+
|
|
106
|
+
### Changed
|
|
107
|
+
- When your session has expired, commands now say so and stop, instead of
|
|
108
|
+
opening a browser to sign you back in. Run `gs login` when you're ready.
|
|
109
|
+
|
|
110
|
+
## 0.1.7 — 2026-09-12
|
|
111
|
+
|
|
112
|
+
### Changed
|
|
113
|
+
- Commands no longer check for a new release before running, so they start
|
|
114
|
+
without waiting on the network. Running a supported version is still
|
|
115
|
+
required: the server says so when it isn't, and this release is the minimum
|
|
116
|
+
it accepts — earlier ones stop working. Run
|
|
117
|
+
`npm install -g @greatstore/cli@latest` to upgrade.
|
|
118
|
+
|
|
119
|
+
## 0.1.6 — 2026-09-12
|
|
120
|
+
|
|
121
|
+
### Fixed
|
|
122
|
+
- `gs apps push <name>` skips a component nothing changed in, like a push with
|
|
123
|
+
no arguments does. Naming a component used to upload it regardless, burning
|
|
124
|
+
a version number on identical code. Pass `--force` to upload anyway.
|
|
125
|
+
|
|
126
|
+
## 0.1.5 — 2026-09-12
|
|
127
|
+
|
|
128
|
+
### Fixed
|
|
129
|
+
- `gs apps push` says when a component's source changed but its bundle did
|
|
130
|
+
not — "did you forget to build?" — instead of reporting a successful push
|
|
131
|
+
of code that was never built.
|
|
132
|
+
- A rebuilt bundle is now pushed even when the source is untouched. Such a
|
|
133
|
+
change was reported as "unchanged" and never uploaded.
|
|
134
|
+
|
|
135
|
+
## 0.1.4 — 2026-09-12
|
|
136
|
+
|
|
137
|
+
### Added
|
|
138
|
+
- Edit one theme field at a time: `gs configure set --theme.fontFamily Manrope
|
|
139
|
+
--theme.radius sharp`. Theme writes merge into the stored theme, so a
|
|
140
|
+
one-field change no longer means retyping the whole object (and no longer
|
|
141
|
+
drops the keys you left out). `--replace` writes a theme outright.
|
|
142
|
+
- `gs configure set --help` prints every field it accepts with its type and
|
|
143
|
+
legal values, and a mistyped field name or value is now rejected with the
|
|
144
|
+
valid list before anything is sent.
|
|
145
|
+
|
|
146
|
+
### Changed
|
|
147
|
+
- Rejected configuration writes say what was wrong with them — the field and
|
|
148
|
+
the values it accepts — instead of "Request rejected."
|
|
149
|
+
- Commands no longer wait on a version check every run, which takes about half
|
|
150
|
+
a second off each one.
|
|
151
|
+
|
|
152
|
+
## 0.1.3 — 2026-09-12
|
|
153
|
+
|
|
154
|
+
### Changed
|
|
155
|
+
- `gs skill` prints the steps for installing the GreatStore agent skill
|
|
156
|
+
instead of installing it itself, so any AI coding agent can set it up in
|
|
157
|
+
whichever skills directory it uses — no `--global` or `--dir` to pick.
|
|
158
|
+
- The installed skill is a link to the copy that ships with the CLI, so
|
|
159
|
+
upgrading `@greatstore/cli` keeps it current with nothing to re-run.
|
|
160
|
+
|
|
161
|
+
## 0.1.2 — 2026-09-04
|
|
162
|
+
|
|
163
|
+
### Fixed
|
|
164
|
+
- `gs apps pull` now downloads components that aren't published yet. Pulling
|
|
165
|
+
one used to report that it wasn't found on the server.
|
|
166
|
+
|
|
167
|
+
## 0.1.1 — 2026-08-20
|
|
168
|
+
|
|
169
|
+
### Changed
|
|
170
|
+
- Signing in now asks you to authorize the store you picked before the CLI
|
|
171
|
+
gets access to it, and that access can be ended anytime from **Team → CLI
|
|
172
|
+
access** in the dashboard. Ending it there signs this computer out on its
|
|
173
|
+
next command.
|
|
174
|
+
- For each store, you're signed in on one computer at a time. Signing in to
|
|
175
|
+
that store again from another machine replaces the previous one, which then
|
|
176
|
+
has to sign in again; your other stores are unaffected.
|
|
177
|
+
- This release is required: earlier versions no longer work. Run
|
|
178
|
+
`npm install -g @greatstore/cli` to upgrade.
|
|
179
|
+
|
|
180
|
+
## 0.1.0 — 2026-08-19
|
|
181
|
+
|
|
182
|
+
### Changed
|
|
183
|
+
- When a component's `inputSchema` declares fields the component doesn't
|
|
184
|
+
accept, validation now reports them on a single line — naming the fields
|
|
185
|
+
(capped, with a `(+N more)` count past that) — instead of one error per
|
|
186
|
+
field. A schema/component mismatch stays readable instead of burying the
|
|
187
|
+
other diagnostics.
|
|
188
|
+
|
|
189
|
+
## 0.0.48 — 2026-08-19
|
|
190
|
+
|
|
191
|
+
### Changed
|
|
192
|
+
- Component validation now warns when a component reaches for the page-level
|
|
193
|
+
`window.GreatStore` API. Components should interact with GreatStore through
|
|
194
|
+
the lifecycle props passed into them (`onSendMessage`,
|
|
195
|
+
`onGenerateStructuredContent`, …), which are wired to the surface the
|
|
196
|
+
component is mounted in; the warning points you there. It's a nudge, not a
|
|
197
|
+
build failure.
|
|
198
|
+
|
|
199
|
+
## 0.0.47 — 2026-08-18
|
|
200
|
+
|
|
201
|
+
### Changed
|
|
202
|
+
- `onGenerateStructuredContent` now takes a required third argument,
|
|
203
|
+
`fallback` — a schema-shaped object you supply. The component preview
|
|
204
|
+
renders it (there's no live store to generate against there), so a
|
|
205
|
+
generation-driven component previews as it would live. It's validated
|
|
206
|
+
against the schema and throws if the two don't line up.
|
|
207
|
+
|
|
208
|
+
## 0.0.46 — 2026-08-18
|
|
209
|
+
|
|
210
|
+
### Added
|
|
211
|
+
- Components now receive an `onGenerateStructuredContent(schema, prompt)`
|
|
212
|
+
prop: ask the store's assistant for content matching a JSON Schema (or a
|
|
213
|
+
Zod schema) and render what it returns, personalized to the shopper. It
|
|
214
|
+
works the same in the conversation on the storefront and every embed.
|
|
215
|
+
Added to the component template, the scaffolded `AGENTS.md` reference, and
|
|
216
|
+
prop validation.
|
|
217
|
+
|
|
218
|
+
## 0.0.45 — 2026-08-18
|
|
219
|
+
|
|
220
|
+
### Changed
|
|
221
|
+
- The auto-generated `AGENTS.md` banner now records the CLI version that
|
|
222
|
+
wrote it, so you can tell at a glance when it trails your installed CLI
|
|
223
|
+
and a `gs apps init` refresh is due.
|
|
224
|
+
|
|
225
|
+
## 0.0.44 — 2026-08-18
|
|
226
|
+
|
|
227
|
+
### Added
|
|
228
|
+
- New check: a component that still declares `onError` gets a warning
|
|
229
|
+
pointing at the async-component pattern that replaced it, with the
|
|
230
|
+
throw-vs-fallback caveat (a throw asks the assistant to retry, so
|
|
231
|
+
permanent failures should render a fallback rather than throw). Earlier
|
|
232
|
+
this surfaced as the generic "prop isn't declared in the schema"
|
|
233
|
+
warning, whose suggested fix was wrong for a former lifecycle callback.
|
|
234
|
+
|
|
235
|
+
### Changed
|
|
236
|
+
- `gs apps init` now always refreshes `AGENTS.md` (the agent guidance
|
|
237
|
+
file) so it tracks the installed CLI version instead of going stale.
|
|
238
|
+
The file carries a "do not edit — auto-generated" banner; your own
|
|
239
|
+
project files are still left untouched.
|
|
240
|
+
|
|
241
|
+
## 0.0.43 — 2026-08-18
|
|
242
|
+
|
|
243
|
+
### Added
|
|
244
|
+
- `gs apps build` and `gs apps push` now check each component before
|
|
245
|
+
building or uploading it. Findings are reported as **errors** (a
|
|
246
|
+
blocker — the component isn't built or uploaded) or **warnings** (it
|
|
247
|
+
builds and is ready to publish, but something is worth improving),
|
|
248
|
+
and a single run reports everything it found rather than stopping at
|
|
249
|
+
the first problem.
|
|
250
|
+
- New check: a component's props and its `inputSchema.properties` must
|
|
251
|
+
agree. A schema field the component doesn't accept is an error; a prop
|
|
252
|
+
the schema doesn't declare is a warning, since nothing will ever pass
|
|
253
|
+
it. The props GreatStore injects (`onSendMessage`,
|
|
254
|
+
`onUpdateModelContext`, `onShowLightbox`, `onClose`, `storeData`,
|
|
255
|
+
`Image`) are exempt.
|
|
256
|
+
|
|
257
|
+
## 0.0.42 — 2026-08-15
|
|
258
|
+
|
|
259
|
+
### Changed
|
|
260
|
+
- `gs apps list` now works outside a project. With no `.gsrc` it lists the
|
|
261
|
+
components of the store you're signed in to, instead of erroring. The
|
|
262
|
+
commands that write files or change the store — `push`, `pull`, `publish`,
|
|
263
|
+
`unpublish`, `delete` — still require a project.
|
|
264
|
+
|
|
265
|
+
## 0.0.41 — 2026-08-14
|
|
266
|
+
|
|
267
|
+
### Changed
|
|
268
|
+
- Internal authentication rework. Re-run `gs login` after updating.
|
|
269
|
+
|
|
270
|
+
## 0.0.40 — 2026-07-24
|
|
271
|
+
|
|
272
|
+
### Removed
|
|
273
|
+
- `gs configure set` no longer accepts `--salesGuide` or
|
|
274
|
+
`--salesGuideFile`, and `gs configure show` no longer lists the field.
|
|
275
|
+
|
|
276
|
+
## 0.0.39 — 2026-07-21
|
|
277
|
+
|
|
278
|
+
### Added
|
|
279
|
+
- Components now receive an `Image` prop — a drop-in for `<img>` that
|
|
280
|
+
serves images at the size they're displayed. Render `<Image src=… />`
|
|
281
|
+
instead of `<img>`; pass `Image={"img"}` to preview a component
|
|
282
|
+
outside a store. Scaffolded into `gs apps init` and documented in
|
|
283
|
+
`AGENTS.md`.
|
|
284
|
+
|
|
285
|
+
## 0.0.38 — 2026-07-13
|
|
286
|
+
|
|
287
|
+
### Added
|
|
288
|
+
- `gs login --store <slug>` skips the store picker and signs in
|
|
289
|
+
directly to that store — fails immediately if your account doesn't
|
|
290
|
+
have access to it, instead of falling back to the picker.
|
|
291
|
+
|
|
292
|
+
## 0.0.37 — 2026-07-10
|
|
293
|
+
|
|
294
|
+
### Added
|
|
295
|
+
- Signing in now ends by choosing which store to work on — skipped
|
|
296
|
+
automatically when your account has exactly one. Commands default to
|
|
297
|
+
that store, so `--store` is rarely needed anymore.
|
|
298
|
+
- `gs switch [<slug>]` changes the working store without signing in
|
|
299
|
+
again.
|
|
300
|
+
- `gs apps init` no longer requires `--store` when your sign-in already
|
|
301
|
+
selected a store.
|
|
302
|
+
|
|
303
|
+
### Changed
|
|
304
|
+
- A `--store` flag or project `.gsrc` that names a different store than
|
|
305
|
+
the one you signed in to is now an error, so work can't accidentally
|
|
306
|
+
target the wrong store. Run `gs switch` to change stores.
|
|
307
|
+
|
|
308
|
+
## 0.0.33 — 2026-07-10
|
|
309
|
+
|
|
310
|
+
### Changed
|
|
311
|
+
- `gs apps push` now rejects a component whose `inputSchema` is too
|
|
312
|
+
complex for the assistant to call reliably: union keywords
|
|
313
|
+
(`anyOf`/`oneOf`/`allOf`/`$ref`/`not`), more than 8 KB serialized, or
|
|
314
|
+
more than 50 declared fields. Keep schemas to a small set of flat,
|
|
315
|
+
single-type fields — one canonical name per concept — and handle
|
|
316
|
+
aliases or edge cases in component code instead.
|
|
317
|
+
|
|
318
|
+
## 0.0.32 — 2026-06-18
|
|
319
|
+
|
|
320
|
+
### Added
|
|
321
|
+
- Chat components can expand an image into a full-screen, on-brand
|
|
322
|
+
lightbox via a new `onShowLightbox({ src, originRect })` prop. Wire it
|
|
323
|
+
to an image's `onClick` — pass the image URL and, for a smooth zoom,
|
|
324
|
+
the clicked element's `getBoundingClientRect()`. Use it for product
|
|
325
|
+
photos, swatches, or size charts the shopper may want to inspect up
|
|
326
|
+
close, instead of building your own overlay.
|
|
327
|
+
|
|
328
|
+
## 0.0.31 — 2026-06-18
|
|
329
|
+
|
|
330
|
+
### Added
|
|
331
|
+
- Components can read a secondary brand font from `--font-secondary`,
|
|
332
|
+
for a second layer of typography. Falls back to the primary font.
|
|
333
|
+
|
|
334
|
+
### Changed
|
|
335
|
+
- The brand font variable is now `--font-primary` (was `--font-sans`).
|
|
336
|
+
|
|
337
|
+
## 0.0.30 — 2026-06-17
|
|
338
|
+
|
|
339
|
+
### Added
|
|
340
|
+
- The agent skill documents a new way to give the assistant background
|
|
341
|
+
context without sending a visible message:
|
|
342
|
+
`window.GreatStore.updateModelContext(text)` on the page, and the
|
|
343
|
+
matching `onUpdateModelContext(text)` prop inside a chat component. Use
|
|
344
|
+
it to keep the assistant aware of what the shopper is doing — the
|
|
345
|
+
product they're viewing, what's in their cart, the variant they just
|
|
346
|
+
selected — so its replies stay on point. Each call replaces the previous
|
|
347
|
+
value, and nothing renders in the chat.
|
|
348
|
+
|
|
349
|
+
## 0.0.29 — 2026-06-12
|
|
350
|
+
|
|
351
|
+
### Fixed
|
|
352
|
+
- The "update available" notice actually fires now. It previously raced
|
|
353
|
+
a 1-second timeout against the npm registry and usually lost, so most
|
|
354
|
+
installs never saw it. The notice is now served instantly from a local
|
|
355
|
+
cache, refreshed in the background after each day's first invocation —
|
|
356
|
+
it can lag one run behind a release, but it no longer adds latency or
|
|
357
|
+
goes silent on slow networks.
|
|
358
|
+
|
|
359
|
+
## 0.0.28 — 2026-06-12
|
|
360
|
+
|
|
361
|
+
### Added
|
|
362
|
+
- `gs configure` — view and edit the store configuration from the CLI:
|
|
363
|
+
display name, assistant name, sales guide, store link, extra origins,
|
|
364
|
+
theme, CSP host lists, and icon/logo uploads. Same fields and
|
|
365
|
+
behaviour as the dashboard's Configure panel.
|
|
366
|
+
- `gs connectors` — manage the store's MCP connectors: list, add (with
|
|
367
|
+
a discovery probe before saving), remove, enable/disable, toggle the
|
|
368
|
+
Maker MCP, and health-check. Same behaviour as the dashboard's
|
|
369
|
+
Connectors panel.
|
|
370
|
+
- `--store <slug>` on the new admin commands, so they work outside a
|
|
371
|
+
scaffolded component project (a `.gsrc` is still used when present).
|
|
372
|
+
- The agent skill gains a store-administration reference: coding agents
|
|
373
|
+
can read the store's configuration and connectors to ground their
|
|
374
|
+
work, self-serve additive changes like origin allowlists and CSP
|
|
375
|
+
hosts (read-merge-write), and are told which changes need the
|
|
376
|
+
merchant's go-ahead first.
|
|
377
|
+
|
|
378
|
+
### Changed
|
|
379
|
+
- Component commands now live under `gs apps` (`gs apps push`,
|
|
380
|
+
`gs apps build`, …), matching the dashboard's Apps panel. The old
|
|
381
|
+
top-level forms keep working as aliases, so existing scripts and
|
|
382
|
+
scaffolded projects are unaffected.
|
|
383
|
+
- The skill's structured-content guide now teaches "point, don't
|
|
384
|
+
paste": name the SKU/product/collection and let GreatStore research
|
|
385
|
+
the catalog itself instead of inlining fetched specs; validate with
|
|
386
|
+
`gs connectors` that a connector exists for the data a prompt or
|
|
387
|
+
schema depends on (research can't exceed the wired-up connectors);
|
|
388
|
+
and never put shopper data in prompts — GreatStore already knows the
|
|
389
|
+
shopper, and identified shoppers get per-shopper cached responses.
|
|
390
|
+
|
|
391
|
+
## 0.0.27 — 2026-06-11
|
|
392
|
+
|
|
393
|
+
### Changed
|
|
394
|
+
- Skill code samples now carry an explicit reference-only disclaimer:
|
|
395
|
+
coding agents are told to re-express the logic in the host repo's
|
|
396
|
+
framework (React, Vue, Shopify Liquid, Svelte, …) instead of
|
|
397
|
+
retrofitting the framework-free samples as-is.
|
|
398
|
+
|
|
399
|
+
## 0.0.26 — 2026-06-11
|
|
400
|
+
|
|
401
|
+
### Added
|
|
402
|
+
- The agent skill gains a "GreatStore launchers" recipe: a horizontally
|
|
403
|
+
scrollable row of AI-generated chips, each an engaging first-person
|
|
404
|
+
question about the current page that's sent to the assistant on tap.
|
|
405
|
+
|
|
406
|
+
### Changed
|
|
407
|
+
- Skill recipes are now one file each under `recipes/`, indexed from
|
|
408
|
+
SKILL.md by a table with description and use-case columns.
|
|
409
|
+
|
|
410
|
+
## 0.0.25 — 2026-06-11
|
|
411
|
+
|
|
412
|
+
### Added
|
|
413
|
+
- `gs skill` installs the GreatStore agent skill — a guide AI coding
|
|
414
|
+
agents use to build with GreatStore: AI content for your own UI, chat
|
|
415
|
+
entry points, page tools, custom in-chat components, push
|
|
416
|
+
notifications, and the store's MCP endpoints. Installs into
|
|
417
|
+
`./.claude/skills/`; use `--global` for `~/.claude/skills/`, or
|
|
418
|
+
`--dir <path>` for agents that read skills from somewhere else. Run
|
|
419
|
+
it again any time to update an installed copy.
|
|
420
|
+
|
|
421
|
+
## 0.0.24 — 2026-06-03
|
|
422
|
+
|
|
423
|
+
### Changed
|
|
424
|
+
- `gs init` in an existing project now fills in any scaffold files that
|
|
425
|
+
are missing (for example, the `AGENTS.md` design guide added in
|
|
426
|
+
0.0.23) and leaves your own files alone. Pass `--force` to refresh
|
|
427
|
+
every scaffold file to the latest version. Your pinned store
|
|
428
|
+
(`.gsrc`) is never rewritten either way.
|
|
429
|
+
|
|
430
|
+
## 0.0.23 — 2026-06-03
|
|
431
|
+
|
|
432
|
+
### Added
|
|
433
|
+
- `gs init` now scaffolds an `AGENTS.md` (with `CLAUDE.md` and
|
|
434
|
+
`GEMINI.md` symlinked to it) documenting the design rules every
|
|
435
|
+
component should follow — use `em` rather than `rem` for sizing, and
|
|
436
|
+
style from the provided brand CSS variables so components match the
|
|
437
|
+
store's theme. It doubles as guidance for AI coding agents.
|
|
438
|
+
|
|
439
|
+
## 0.0.22 — 2026-06-02
|
|
440
|
+
|
|
441
|
+
### Added
|
|
442
|
+
- `gs list` now shows a link to each component's page in the dashboard,
|
|
443
|
+
so you can jump straight to a component to preview or publish it. The
|
|
444
|
+
link is also included in `gs list --json`.
|
|
445
|
+
|
|
446
|
+
## 0.0.21 — 2026-05-31
|
|
447
|
+
|
|
448
|
+
### Changed
|
|
449
|
+
- The `gs init` component scaffold now shows how to write **async**
|
|
450
|
+
components that load data before they render — including validating
|
|
451
|
+
inputs up front and signalling a failure by throwing. The scaffolded
|
|
452
|
+
component no longer includes an `onError` prop; throw from an async
|
|
453
|
+
component to report a failure instead.
|
|
454
|
+
|
|
455
|
+
## 0.0.20 — 2026-05-29
|
|
456
|
+
|
|
457
|
+
### Added
|
|
458
|
+
- `gs pull`, `gs push`, and `gs publish` now accept several component
|
|
459
|
+
names at once (e.g. `gs publish header footer cart`). Each component
|
|
460
|
+
is reported on its own line and one failure no longer stops the rest.
|
|
461
|
+
|
|
462
|
+
## 0.0.19 — 2026-05-28
|
|
463
|
+
|
|
464
|
+
### Fixed
|
|
465
|
+
- `gs login` on Windows no longer opens a sign-in URL with parameters
|
|
466
|
+
stripped, which surfaced as a "Missing redirect_uri or state
|
|
467
|
+
parameter" page in the browser.
|
|
468
|
+
|
|
469
|
+
## 0.0.18 — 2026-05-28
|
|
470
|
+
|
|
471
|
+
### Changed
|
|
472
|
+
- Push and publish errors now name the specific reason — including
|
|
473
|
+
every failing field in `manifest.json` — instead of the previous
|
|
474
|
+
generic message.
|
|
475
|
+
|
|
476
|
+
## 0.0.17 — 2026-05-28
|
|
477
|
+
|
|
478
|
+
### Added
|
|
479
|
+
- Each command now prints a one-line upgrade notice when a newer
|
|
480
|
+
`@greatstore/cli` is available on npm.
|
|
481
|
+
|
|
482
|
+
## 0.0.16 — 2026-05-28
|
|
483
|
+
|
|
484
|
+
### Changed
|
|
485
|
+
- Simplified error messages.
|
|
486
|
+
|
|
487
|
+
## 0.0.15 — 2026-05-24
|
|
488
|
+
|
|
489
|
+
### Added
|
|
490
|
+
- Scaffolded `component.tsx` now declares the injected lifecycle
|
|
491
|
+
props (`onSendMessage`, `onClose`, `onError`) on
|
|
492
|
+
`Props`. Use `onError(message)` to report expected failures (failed
|
|
493
|
+
fetch, host action rejected, invalid host state) so the AI can
|
|
494
|
+
recover on its next turn. Render-time crashes are reported for you.
|
|
495
|
+
|
|
496
|
+
## 0.0.14 — 2026-05-24
|
|
497
|
+
|
|
498
|
+
### Changed
|
|
499
|
+
- `gs build` output is now whitespace-minified — typically ~50% smaller.
|
|
500
|
+
|
|
501
|
+
## 0.0.13 — 2026-05-24
|
|
502
|
+
|
|
503
|
+
### Changed
|
|
504
|
+
- `gs build` prints the next-step hint (`gs push`, then `gs publish`).
|
|
505
|
+
|
|
506
|
+
## 0.0.12 — 2026-05-24
|
|
507
|
+
|
|
508
|
+
### Fixed
|
|
509
|
+
- `gs build` failing to load Vite in some setups.
|
|
510
|
+
|
|
511
|
+
## 0.0.11 — 2026-05-24
|
|
512
|
+
|
|
513
|
+
### Added
|
|
514
|
+
- Multi-component projects. `gs init` (no args) scaffolds the project
|
|
515
|
+
root; `gs init <name>` adds a component under `components/<name>/`.
|
|
516
|
+
- `gs build [<name>]` — compiles every `components/<name>/bundle.js`.
|
|
517
|
+
- `gs push` (no args) uploads only the components that changed.
|
|
518
|
+
- `gs pull` (no args, or `*`) downloads every component. Locally
|
|
519
|
+
edited components are skipped; pass `--force` to overwrite.
|
|
520
|
+
- Public `CHANGELOG.md`; `gs --version` prints recent entries.
|
|
521
|
+
|
|
522
|
+
### Changed
|
|
523
|
+
- A project folder ships to exactly one store. Only `gs init` accepts
|
|
524
|
+
`--store`; every other command reads the slug from `.gsrc`. The old
|
|
525
|
+
single-component layout is rejected with a migration hint.
|
|
526
|
+
- `gs init` requires `--store <slug>` for a fresh root, and rejects
|
|
527
|
+
`--store` on an existing root.
|
|
528
|
+
- `gs init` no longer writes `build.mjs` — scripts call `gs build`.
|
|
529
|
+
|
|
530
|
+
## 0.0.10 — 2026-05-23
|
|
531
|
+
|
|
532
|
+
### Changed
|
|
533
|
+
- The sign-in browser tab auto-closes once `gs login` finishes.
|
|
534
|
+
|
|
535
|
+
## 0.0.9 — 2026-05-23
|
|
536
|
+
|
|
537
|
+
### Changed
|
|
538
|
+
- Scaffolded manifests include a `displayName` so the admin UI has a
|
|
539
|
+
friendlier label.
|
|
540
|
+
|
|
541
|
+
## 0.0.8 — 2026-05-23
|
|
542
|
+
|
|
543
|
+
### Changed
|
|
544
|
+
- `gs push` and `gs publish` print a link to view the component.
|
|
545
|
+
|
|
546
|
+
## 0.0.6 — 2026-05-23
|
|
547
|
+
|
|
548
|
+
### Changed
|
|
549
|
+
- `gs --version` reads from the published package version.
|
|
550
|
+
|
|
551
|
+
## 0.0.4 — 2026-05-23
|
|
552
|
+
|
|
553
|
+
### Changed
|
|
554
|
+
- Scaffolded projects produce browser-ready bundles out of the box.
|
|
555
|
+
|
|
556
|
+
## 0.0.3 — 2026-05-23
|
|
557
|
+
|
|
558
|
+
### Changed
|
|
559
|
+
- Trimmed public README to the essentials.
|
|
560
|
+
|
|
561
|
+
## 0.0.2 — 2026-05-23
|
|
562
|
+
|
|
563
|
+
### Fixed
|
|
564
|
+
- Sign-in callback parameter handling.
|
package/README.md
CHANGED
|
@@ -1,3 +1,123 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @greatstore/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Administer your GreatStore from the command line — store configuration,
|
|
4
|
+
MCP connectors, and custom in-chat apps — and set up your AI coding
|
|
5
|
+
agent to build with GreatStore.
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm install -g @greatstore/cli
|
|
9
|
+
gs skill # print how to set up your AI coding agent
|
|
10
|
+
gs login
|
|
11
|
+
gs configure # see your store's configuration
|
|
12
|
+
gs apps init --store <slug>
|
|
13
|
+
cd <project> && npm install
|
|
14
|
+
gs apps init my-widget
|
|
15
|
+
gs apps build
|
|
16
|
+
gs apps push
|
|
17
|
+
gs apps publish my-widget
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The CLI mirrors the admin dashboard: `gs configure`, `gs connectors`,
|
|
21
|
+
and `gs apps` correspond to the Configure, Connectors, and Apps panels,
|
|
22
|
+
with the same field names and behaviour.
|
|
23
|
+
|
|
24
|
+
## Commands
|
|
25
|
+
|
|
26
|
+
### Account
|
|
27
|
+
|
|
28
|
+
| Command | What it does |
|
|
29
|
+
| ----------- | --------------------------------------- |
|
|
30
|
+
| `gs login` | Sign in. |
|
|
31
|
+
| `gs logout` | Sign out. |
|
|
32
|
+
| `gs whoami` | Print the identity you're signed in as. |
|
|
33
|
+
|
|
34
|
+
### Configure
|
|
35
|
+
|
|
36
|
+
| Command | What it does |
|
|
37
|
+
| ---------------------------------------- | ---------------------------------------------------------- |
|
|
38
|
+
| `gs configure [--json]` | Show the store configuration. |
|
|
39
|
+
| `gs configure set --<field> <value>` | Edit it. Same fields as the dashboard: `--displayName`, `--assistantName`, `--storeLink`, `--extraOrigins a,b`, `--theme '<json>'` (or `--themeFile <path>`), `--cspScriptHosts a,b`, `--cspConnectHosts a,b`. Pass `""` to clear a field. |
|
|
40
|
+
| `gs configure upload <kind> <file>` | Upload `icon`, `logoLight`, or `logoDark` (.png/.jpg/.webp). |
|
|
41
|
+
| `gs configure clear <kind>` | Remove an uploaded asset. |
|
|
42
|
+
|
|
43
|
+
### Connectors
|
|
44
|
+
|
|
45
|
+
| Command | What it does |
|
|
46
|
+
| ------------------------------------------------------------ | ------------------------------------------------------ |
|
|
47
|
+
| `gs connectors [--json]` | List the Maker MCP toggle and custom MCP connectors. |
|
|
48
|
+
| `gs connectors add <name> --url <url> [--token <t>] [--profileUrl <u>] [--disabled] [--force]` | Add a connector. It's probed for tool discovery first; `--force` saves it anyway. |
|
|
49
|
+
| `gs connectors remove <name\|id>` | Delete a connector. |
|
|
50
|
+
| `gs connectors enable\|disable <name\|id>` | Toggle a connector without deleting it. |
|
|
51
|
+
| `gs connectors maker on\|off` | Toggle the Maker MCP. |
|
|
52
|
+
| `gs connectors health [<name\|id>] [--json]` | Live-probe saved connectors. |
|
|
53
|
+
|
|
54
|
+
### Apps
|
|
55
|
+
|
|
56
|
+
Custom in-chat app (remote component) commands. Each also works at the
|
|
57
|
+
top level (`gs push` == `gs apps push`), so existing scripts keep
|
|
58
|
+
working.
|
|
59
|
+
|
|
60
|
+
| Command | What it does |
|
|
61
|
+
| ------------------------------------------------------ | -------------------------------------------------- |
|
|
62
|
+
| `gs apps init <name> [--out <dir>] [--store <s>]` | Scaffold a working component project. |
|
|
63
|
+
| `gs apps build [<name>]` | Check and build component bundle(s); no args = all. |
|
|
64
|
+
| `gs apps list [--json]` | List components in the current store. |
|
|
65
|
+
| `gs apps pull <name> [--draft\|--live\|--version N] [-o <dir>]` | Download a component to disk. |
|
|
66
|
+
| `gs apps push [<name>] [--manifest path] [--bundle path]` | Upload local changes. |
|
|
67
|
+
| `gs apps publish <name> [--version N]` | Ship a component (optionally a previous version). |
|
|
68
|
+
| `gs apps unpublish <name>` | Hide a published component. |
|
|
69
|
+
| `gs apps rename <old> <new>` | Rename a component, keeping its versions and live state. |
|
|
70
|
+
| `gs apps delete <name> [--yes]` | Remove the component. |
|
|
71
|
+
|
|
72
|
+
### Component checks
|
|
73
|
+
|
|
74
|
+
`gs apps build` and `gs apps push` check each component before they do
|
|
75
|
+
their work, and report what they find as either:
|
|
76
|
+
|
|
77
|
+
- **error** — a blocker. The component isn't built or uploaded until it's
|
|
78
|
+
fixed.
|
|
79
|
+
- **warning** — the component builds and is ready to publish, but
|
|
80
|
+
something is worth improving.
|
|
81
|
+
|
|
82
|
+
The checks cover the manifest (valid JSON, a `name` matching the folder,
|
|
83
|
+
an `inputSchema` simple enough for the agent to fill reliably) and
|
|
84
|
+
the component's props: every prop it declares should be a field in
|
|
85
|
+
`inputSchema.properties`, apart from the props GreatStore injects
|
|
86
|
+
(`onSendMessage`, `onUpdateModelContext`, `onShowLightbox`,
|
|
87
|
+
`onClose`, `storeData`, `Image`). A prop nothing
|
|
88
|
+
declares is a warning — nothing will ever pass it. A schema field the
|
|
89
|
+
component doesn't accept is an error. A component still declaring
|
|
90
|
+
`onError` gets a warning pointing at async components, which replaced it.
|
|
91
|
+
|
|
92
|
+
### Agent skill
|
|
93
|
+
|
|
94
|
+
| Command | What it does |
|
|
95
|
+
| ---------- | ---------------------------------------------------------------- |
|
|
96
|
+
| `gs skill` | Print how to install the GreatStore agent skill, for the agent to follow. |
|
|
97
|
+
|
|
98
|
+
## Agent skill
|
|
99
|
+
|
|
100
|
+
The GreatStore agent skill is a guide AI coding agents (Claude Code and
|
|
101
|
+
friends) use to build with GreatStore: AI content for your own UI, chat
|
|
102
|
+
entry points, page tools the agent can call, custom in-chat
|
|
103
|
+
components, push notifications, and the store's MCP endpoints.
|
|
104
|
+
|
|
105
|
+
`gs skill` prints the steps to install it, addressed to the agent that
|
|
106
|
+
ran it — the agent knows its own skills directory, so it can set the
|
|
107
|
+
skill up there without the CLI guessing. Ask your agent to run
|
|
108
|
+
`gs skill` and follow what it prints; no sign-in or store needed.
|
|
109
|
+
|
|
110
|
+
The install is a link to a copy the CLI keeps in `~/.greatstore/skill/`,
|
|
111
|
+
which any newer version of the CLI refreshes when it runs, so the skill
|
|
112
|
+
stays current with nothing to re-run.
|
|
113
|
+
|
|
114
|
+
## Store selection
|
|
115
|
+
|
|
116
|
+
Every command except `login`, `logout`, `whoami`, and `skill` needs a
|
|
117
|
+
store.
|
|
118
|
+
|
|
119
|
+
- App commands read the slug from a `.gsrc` in the current directory or
|
|
120
|
+
any ancestor: `{"store":"demo"}`. `gs apps init --store <slug>` writes
|
|
121
|
+
it for you, so commands inside a scaffolded project don't need a flag.
|
|
122
|
+
- Admin commands (`configure`, `connectors`) also accept
|
|
123
|
+
`--store <slug>` directly, so they work outside a scaffolded project.
|