shopstack 0.3.2 → 0.3.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/README.md +5 -5
- package/SKILL.md +23 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,9 +6,9 @@ guest restaurant reservations.
|
|
|
6
6
|
## Install
|
|
7
7
|
|
|
8
8
|
```bash
|
|
9
|
-
npm install shopstack@0.3.
|
|
9
|
+
npm install shopstack@0.3.3
|
|
10
10
|
# or
|
|
11
|
-
npm install -g shopstack@0.3.
|
|
11
|
+
npm install -g shopstack@0.3.3
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
Node.js 18 or newer is required.
|
|
@@ -18,7 +18,7 @@ WebSocket (Node.js 22 or newer). It reads the authenticated checkout resource
|
|
|
18
18
|
after each notification. Older runtimes, or a failed socket connection, use the
|
|
19
19
|
bounded HTTP update wait. The one-time socket token is never placed in a URL.
|
|
20
20
|
|
|
21
|
-
This preview release pairs `shopstack@0.3.
|
|
21
|
+
This preview release pairs `shopstack@0.3.3` with `shopstack-mcp@0.2.3`.
|
|
22
22
|
Both packages use the `preview` distribution tag. The `latest` versions are
|
|
23
23
|
unchanged. Use the exact versions above to install this release.
|
|
24
24
|
|
|
@@ -79,7 +79,7 @@ Configure any stdio MCP client to run:
|
|
|
79
79
|
"mcpServers": {
|
|
80
80
|
"shopstack": {
|
|
81
81
|
"command": "npx",
|
|
82
|
-
"args": ["-y", "shopstack-mcp@0.2.
|
|
82
|
+
"args": ["-y", "shopstack-mcp@0.2.3"],
|
|
83
83
|
"env": {
|
|
84
84
|
"SHOPSTACK_API_URL": "https://shopstack-release-preview.shopstack.workers.dev/v1",
|
|
85
85
|
"SHOPSTACK_CONFIG_FILE": "/absolute/private/path/shopstack-config.json"
|
|
@@ -110,7 +110,7 @@ one MCP server and three focused skills:
|
|
|
110
110
|
- `shopstack-checkout` for checkout creation and monitoring;
|
|
111
111
|
- `shopstack-onboarding` for verified signup and private local profiles.
|
|
112
112
|
|
|
113
|
-
The plugin pins `shopstack-mcp@0.2.
|
|
113
|
+
The plugin pins `shopstack-mcp@0.2.3`, which installs the matching
|
|
114
114
|
reservation-capable `shopstack` client. Configure the API address
|
|
115
115
|
before starting the plugin or use a profile already bound to that API. The existing top-level
|
|
116
116
|
`SKILL.md` remains in the npm client package for compatibility.
|
package/SKILL.md
CHANGED
|
@@ -19,8 +19,8 @@ chat to fix an environment mismatch.
|
|
|
19
19
|
For the JavaScript client and CLI:
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
npm install shopstack@0.3.
|
|
23
|
-
npm install -g shopstack@0.3.
|
|
22
|
+
npm install shopstack@0.3.3
|
|
23
|
+
npm install -g shopstack@0.3.3
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
For MCP clients, configure the local stdio server:
|
|
@@ -30,7 +30,7 @@ For MCP clients, configure the local stdio server:
|
|
|
30
30
|
"mcpServers": {
|
|
31
31
|
"shopstack": {
|
|
32
32
|
"command": "npx",
|
|
33
|
-
"args": ["-y", "shopstack-mcp@0.2.
|
|
33
|
+
"args": ["-y", "shopstack-mcp@0.2.3"]
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -113,7 +113,18 @@ shopstack connect list
|
|
|
113
113
|
shopstack connect link
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
When the user chooses Link, include `payment_provider: "link"` even if Link is
|
|
117
|
+
not connected. Shopstack prepares the merchant checkout first. At card
|
|
118
|
+
issuance, `required_input.type: "link"` supplies the exact sign-in or approval
|
|
119
|
+
URL, amount, currency, and an optional verification phrase. Show those values
|
|
120
|
+
and keep monitoring. Shopstack polls Link and resumes automatically; never ask
|
|
121
|
+
the user to send a completion message. Link credential approval does not grant
|
|
122
|
+
Shopstack final order approval.
|
|
123
|
+
|
|
124
|
+
Omit `payment_provider` when the user wants to supply a card directly.
|
|
125
|
+
Shopstack then requests protected checkout-scoped card input at the payment
|
|
126
|
+
form through the SDK, CLI prompt, or live viewer. Connecting Link in advance
|
|
127
|
+
with the commands above is optional.
|
|
117
128
|
|
|
118
129
|
Never put card data in MCP arguments, natural-language messages, model output, logs, or ordinary CLI flags.
|
|
119
130
|
|
|
@@ -150,20 +161,25 @@ Run it with:
|
|
|
150
161
|
shopstack checkout run --file checkout.json
|
|
151
162
|
```
|
|
152
163
|
|
|
153
|
-
Or create with MCP,
|
|
164
|
+
Or create with MCP, read with `poll_checkout`, and monitor changes with
|
|
165
|
+
`wait_checkout_update` using the latest `presentation_revision`. Display these
|
|
166
|
+
authoritative fields to the user when they change:
|
|
154
167
|
|
|
155
168
|
- `status`: one of exactly `queued`, `started`, `help_required`, `approval_required`, `submitting`, `complete`, `failed`, `cancelled`;
|
|
156
169
|
- `activity`: bounded present-tense display text;
|
|
157
170
|
- `intent.name`, `intent.phase`, and `intent.updated_at`: bounded mechanical action progress with no arguments or reasoning;
|
|
158
|
-
- `required_input`: a typed handoff
|
|
171
|
+
- `required_input`: a typed handoff for Link or protected payment-card input;
|
|
159
172
|
- `approval`: the exact amount-bound approval request when present.
|
|
160
173
|
|
|
161
|
-
|
|
174
|
+
Keep calling `wait_checkout_update` while Link sign-in or approval is pending;
|
|
175
|
+
an unchanged response is not a failure. Stop at `complete`, `failed`, or
|
|
176
|
+
`cancelled`. The CLI monitor follows changes automatically.
|
|
162
177
|
|
|
163
178
|
## Respond at typed boundaries
|
|
164
179
|
|
|
165
180
|
- Use `GET/POST /v1/checkout/{id}/messages` only for ordinary missing information.
|
|
166
181
|
- Use protected SDK/CLI payment input when `required_input.type` is `payment_card`.
|
|
182
|
+
- Show the exact URL and keep monitoring when `required_input.type` is `link`.
|
|
167
183
|
- Use only the dedicated payment-approval endpoint from a separately scoped trusted backend.
|
|
168
184
|
- MCP and messages cannot approve payment and expose no approval tool.
|
|
169
185
|
- Never infer approval from a user's conversational message.
|