@shadowob/openclaw-shadowob 1.1.4 → 1.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shadowob/openclaw-shadowob",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "OpenClaw Shadow channel plugin — enables AI agents to interact in Shadow server channels",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -58,7 +58,7 @@
58
58
  "dependencies": {
59
59
  "zod": "^3.25.67",
60
60
  "openclaw": "^2026.5.7",
61
- "@shadowob/sdk": "1.1.4"
61
+ "@shadowob/sdk": "1.1.5"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@types/node": "^22.15.21",
@@ -204,10 +204,23 @@ Each workspace node has a `flags` JSONB field with optional metadata:
204
204
  ```bash
205
205
  # Shop info
206
206
  shadowob shop get <server-id> --json
207
+ shadowob shop get-by-id <shop-id> --json
208
+ shadowob shop me get --json
207
209
 
208
210
  # Products
209
- shadowob shop products list <server-id> --json
211
+ shadowob shop products list <server-id> [--status active] [--keyword <text>] [--limit <n>] --json
212
+ shadowob shop products list-by-shop <shop-id> [--status active] [--limit <n>] --json
210
213
  shadowob shop products get <server-id> <product-id> --json
214
+ shadowob shop products context <product-id> --json
215
+ shadowob shop products purchase <shop-id> <product-id> --idempotency-key <unique-operation-id> --json
216
+
217
+ # Offers, deliverables, and shop assets
218
+ shadowob shop offers list <shop-id> --json
219
+ shadowob shop offers create <shop-id> --data '<offer-json>' --json
220
+ shadowob shop offers deliverables create <shop-id> <offer-id> --data '<deliverable-json>' --json
221
+ shadowob shop assets list <shop-id> --json
222
+ shadowob shop assets create <shop-id> --data '<asset-definition-json>' --json
223
+ shadowob shop entitlements list <shop-id> --json
211
224
 
212
225
  # Cart
213
226
  shadowob shop cart list <server-id> --json
@@ -220,6 +233,44 @@ shadowob shop orders get <server-id> <order-id> --json
220
233
  shadowob shop wallet balance --json
221
234
  ```
222
235
 
236
+ ## Commerce
237
+
238
+ ```bash
239
+ # Product and offer buyer context
240
+ shadowob commerce products context <product-id> --json
241
+ shadowob commerce offers preview <offer-id> --json
242
+ shadowob commerce offers purchase <offer-id> --idempotency-key <unique-operation-id> --json
243
+
244
+ # Chat commerce cards
245
+ shadowob commerce cards list --channel-id <channel-id> [--keyword <text>] --json
246
+ shadowob commerce cards purchase <message-id> <card-id> --idempotency-key <unique-operation-id> --json
247
+
248
+ # Purchases, delivery, protected files, and community assets
249
+ shadowob commerce entitlements list [--server-id <server-id>] --json
250
+ shadowob commerce entitlements get <entitlement-id> --json
251
+ shadowob commerce entitlements verify <entitlement-id> --json
252
+ shadowob commerce paid-files open <file-id> --json
253
+ shadowob commerce assets list --json
254
+ shadowob commerce assets consume <grant-id> --idempotency-key <unique-operation-id> --json
255
+
256
+ # Seller income and support actions
257
+ shadowob commerce settlements list --json
258
+ shadowob commerce settlements settle --json
259
+ shadowob commerce tips send --recipient-user-id <user-id> --amount <shrimp> [--message <text>] --json
260
+ shadowob commerce gifts send --recipient-user-id <user-id> --assets '<json-array>' --json
261
+ ```
262
+
263
+ ## Commerce Validation Notes
264
+
265
+ - Use the CLI for setup, inspection, and automation, but validate commerce user stories in the
266
+ browser before calling them complete.
267
+ - Do not add seed code to populate commerce surfaces. Create ordinary local/test records through
268
+ browser flows or explicit setup calls.
269
+ - When inspecting a commerce flow, preserve ids for the handoff: product, offer, order,
270
+ entitlement, shop, server, Buddy, and workspace file where applicable.
271
+ - External app entitlement automation must use Shadow OAuth commerce APIs and remain scoped to the
272
+ app's own `external_app` resource namespace.
273
+
223
274
  ## Apps
224
275
 
225
276
  ```bash
@@ -325,6 +376,10 @@ shadowob oauth consents --json
325
376
 
326
377
  # Revoke consent for an app
327
378
  shadowob oauth revoke <app-id>
379
+
380
+ # External app commerce entitlement checks use OAuth access tokens, not user JWTs
381
+ shadowob oauth commerce check --access-token <oauth-access-token> --resource-id <app-id>:premium --json
382
+ shadowob oauth commerce redeem --access-token <oauth-access-token> --resource-id <app-id>:premium --idempotency-key <provider-operation-id> --json
328
383
  ```
329
384
 
330
385
  ## Marketplace