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