greatstore 0.2.24 → 0.3.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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to `@greatstore/cli` are recorded here. The format
4
4
  follows [Keep a Changelog](https://keepachangelog.com/).
5
5
 
6
+ ## 0.3.0 — 2026-11-13
7
+
8
+ ### Added
9
+ - `knowledge` (alias `kb`) manages what the store's assistant knows and follows,
10
+ like the dashboard's Knowledge panel: list sources and their status, add files,
11
+ web pages and notes (`--wait` blocks until they're ready), show, edit, rename,
12
+ reindex and remove them, and read and edit the agent instructions. Uploading
13
+ a local file, or replacing a source's text or the instructions with one,
14
+ needs `--unsafe-upload`, since the assistant shares its contents with
15
+ shoppers or follows them.
16
+ - `knowledge edit` and `knowledge instructions edit` replace exact text, and are
17
+ refused when that text no longer matches, so an edit made from an outdated
18
+ copy never overwrites newer changes.
19
+ - `knowledge ask` chats with the store's live assistant to check how it answers.
20
+ It uses the store's credits, up to 100 every 6 hours for test chats, shows
21
+ how much of that is left after each reply, and never counts as a shopper
22
+ conversation.
23
+ - The skill has a guide to making the assistant smarter: what goes in agent
24
+ instructions and what goes in the knowledge base, how to audit and
25
+ reorganise the knowledge base, and what to do when the assistant doesn't
26
+ follow an instruction.
27
+ - `login` suggests installing the agent skill with `npx greatstore skill`
28
+ until it has been set up on that computer.
29
+
30
+ ### Changed
31
+ - Help and messages for in-chat apps call them apps throughout.
32
+
6
33
  ## 0.2.24 — 2026-11-11
7
34
 
8
35
  ### Added
package/README.md CHANGED
@@ -18,8 +18,8 @@ gs apps publish my-widget
18
18
  ```
19
19
 
20
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.
21
+ `gs knowledge` and `gs apps` correspond to the Configure, Connectors,
22
+ Knowledge and Apps panels, with the same field names and behaviour.
23
23
 
24
24
  ## Commands
25
25
 
@@ -53,32 +53,52 @@ with the same field names and behaviour.
53
53
  | `gs connectors tools <name\|id\|maker> [<tool>] [--json]` | A connector's tools in full: group, whether the assistant may call them, description and every input with its constraints. Name a tool for just that one. |
54
54
  | `gs connectors errors [--days N] [--tool <name>] [--json]` | The store's most frequent tool errors over the last N days (default 7, up to 120), as in the dashboard's Usage → Tools. |
55
55
 
56
+ ### Knowledge
57
+
58
+ `gs kb` is an alias. `<source>` is a source's id or its exact name.
59
+
60
+ | Command | What it does |
61
+ | ------------------------------------------------------------ | ------------------------------------------------------ |
62
+ | `gs knowledge [list] [--json]` | List knowledge sources with their status. |
63
+ | `gs knowledge status [<source>] [--wait] [--json]` | Processing status. `--wait` blocks until each is ready or failed, and exits 1 if any failed. |
64
+ | `gs knowledge add <file> --name <name> --unsafe-upload [--wait]` | Upload a PDF, Word, text, Markdown, CSV or HTML file (up to 4 MB). Several files at once are each named after their file. `--unsafe-upload` confirms the file belongs where the assistant can share it with shoppers. |
65
+ | `gs knowledge add --url <url> --name <name> [--wait]` | Add a web page. |
66
+ | `gs knowledge add --text <text> --name <name> [--wait]` | Add a note (or `--text-file <path> --unsafe-upload`). |
67
+ | `gs knowledge show <source> [--json]` | Print a source's text. Its hash goes to stderr. |
68
+ | `gs knowledge edit <source> --old <text> --new <text> [--wait]` | Replace text that occurs exactly once; refused if it no longer matches. |
69
+ | `gs knowledge edit <source> --file <path> --expect <hash> --unsafe-upload [--wait]` | Replace the whole text, only if it still has the hash `show` printed. |
70
+ | `gs knowledge rename <source> <name>` | Rename a source. |
71
+ | `gs knowledge reindex <source> [--wait]` | Process a source again; a web page is re-read. |
72
+ | `gs knowledge remove <source> [--yes]` | Delete a source. |
73
+ | `gs knowledge instructions [show\|edit\|set]` | The agent instructions: print them, `edit --old/--new`, or `set --file <path> --expect <hash> --unsafe-upload`. |
74
+ | `gs knowledge ask "<message>" [--conversation <id>] [--json]` | Chat with the store's live assistant to check how it answers. Uses the store's credits; test chats share 100 credits every 6 hours, and each reply shows how much is left. |
75
+
56
76
  ### Apps
57
77
 
58
- Custom in-chat app (remote component) commands. Each also works at the
78
+ Custom in-chat app commands. Each also works at the
59
79
  top level (`gs push` == `gs apps push`), so existing scripts keep
60
80
  working.
61
81
 
62
82
  | Command | What it does |
63
83
  | ------------------------------------------------------ | -------------------------------------------------- |
64
- | `gs apps init <name> [--out <dir>] [--store <s>]` | Scaffold a working component project. |
65
- | `gs apps build [<name>...]` | Check and build component bundle(s); no args = all. |
66
- | `gs apps list [--json]` | List components in the current store. |
67
- | `gs apps pull <name> [--draft\|--live\|--version N] [-o <dir>]` | Download a component to disk. |
84
+ | `gs apps init <name> [--out <dir>] [--store <s>]` | Scaffold a working app project. |
85
+ | `gs apps build [<name>...]` | Check and build apps; no args = all. |
86
+ | `gs apps list [--json]` | List the apps in the current store. |
87
+ | `gs apps pull <name> [--draft\|--live\|--version N] [-o <dir>]` | Download an app to disk. |
68
88
  | `gs apps push [<name>] [--manifest path] [--bundle path]` | Upload local changes. |
69
- | `gs apps publish <name> [--version N]` | Ship a component (optionally a previous version). |
70
- | `gs apps unpublish <name>` | Hide a published component. |
71
- | `gs apps rename <old> <new>` | Rename a component, keeping its versions and live state. |
72
- | `gs apps delete <name> [--yes]` | Remove the component. |
89
+ | `gs apps publish <name> [--version N]` | Ship an app (optionally a previous version). |
90
+ | `gs apps unpublish <name>` | Take a published app down. |
91
+ | `gs apps rename <old> <new>` | Rename an app, keeping its versions and live state. |
92
+ | `gs apps delete <name> [--yes]` | Remove the app. |
73
93
 
74
- ### Component checks
94
+ ### App checks
75
95
 
76
- `gs apps build` and `gs apps push` check each component before they do
96
+ `gs apps build` and `gs apps push` check each app before they do
77
97
  their work, and report what they find as either:
78
98
 
79
- - **error** — a blocker. The component isn't built or uploaded until it's
99
+ - **error** — a blocker. The app isn't built or uploaded until it's
80
100
  fixed.
81
- - **warning** — the component builds and is ready to publish, but
101
+ - **warning** — the app builds and is ready to publish, but
82
102
  something is worth improving.
83
103
 
84
104
  The checks cover the manifest (valid JSON, a `name` matching the folder,
@@ -90,7 +110,7 @@ field the component doesn't accept is an error, and so is a schema field
90
110
  named `$`. A component still declaring the props `$` replaced
91
111
  (`onSendMessage`, `onClose`, …) gets one warning with the line that
92
112
  replaces them; one still declaring `onError` gets a warning pointing at
93
- async components, which replaced it.
113
+ async apps, which replaced it.
94
114
 
95
115
  ### Agent skill
96
116
 
@@ -103,7 +123,7 @@ async components, which replaced it.
103
123
  The GreatStore agent skill is a guide AI coding agents (Claude Code and
104
124
  friends) use to build with GreatStore: AI content for your own UI, chat
105
125
  entry points, page tools the agent can call, custom in-chat
106
- components, push notifications, and the store's MCP endpoints.
126
+ apps, push notifications, and the store's MCP endpoints.
107
127
 
108
128
  `gs skill` prints the steps to install it, addressed to the agent that
109
129
  ran it — the agent knows its own skills directory, so it can set the
@@ -122,5 +142,5 @@ store.
122
142
  - App commands read the slug from a `.gsrc` in the current directory or
123
143
  any ancestor: `{"store":"demo"}`. `gs apps init --store <slug>` writes
124
144
  it for you, so commands inside a scaffolded project don't need a flag.
125
- - Admin commands (`configure`, `connectors`) also accept
145
+ - Admin commands (`configure`, `connectors`, `knowledge`) also accept
126
146
  `--store <slug>` directly, so they work outside a scaffolded project.