shiply-cli 0.25.0 → 0.25.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/dist/data.js CHANGED
@@ -74,7 +74,7 @@ export async function dataInsert(ctx, slug, collection, body, sitesDomain) {
74
74
  });
75
75
  const json = (await res.json().catch(() => ({})));
76
76
  if (!res.ok)
77
- throw new Error(json.message ?? `HTTP ${res.status}`);
77
+ throw new Error(json.error?.message ?? json.message ?? `HTTP ${res.status}`);
78
78
  console.log(`✔ inserted ${json.id ?? ''} at ${json.createdAt ?? ''}`);
79
79
  }
80
80
  export async function dataExport(ctx, slug, collection, opts) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shiply-cli",
3
- "version": "0.25.0",
4
- "description": "Publish static sites to shiply.now from the command line \u00e2\u20ac\u201d instant web hosting for agents.",
3
+ "version": "0.25.1",
4
+ "description": "Publish static sites to shiply.now from the command line — instant web hosting for agents.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "bin": {
@@ -8,6 +8,13 @@ the npm package changelog.)
8
8
 
9
9
  ## 2026-07-04
10
10
 
11
+ - **Update** — the site-relative endpoints (`POST /.shiply/data/<collection>`,
12
+ `POST /.shiply/email`) now return the same nested error envelope as
13
+ `/api/v1/*`: `{"error":{"code","message"}}` (previously a flat
14
+ `{"error":"<code>","message":"..."}`). A top-level `message` mirror is kept
15
+ for older inline JS — read `body.error.code` / `body.error.message` going
16
+ forward. Codes `data_requires_account` / `email_requires_account` (403 on
17
+ unclaimed sites) are now in the documented error list.
11
18
  - **Update** — the skill was restructured for progressive disclosure: a slim
12
19
  core `SKILL.md` (publish → authorize → update → claim → verify) plus
13
20
  per-topic files under `references/` (publishing, ssr-frameworks,
@@ -11,7 +11,7 @@ Part of the shiply skill (see SKILL.md for publish basics). Every owned site
11
11
  has a real email address and can send, receive, capture signups, and broadcast
12
12
  — in one line. Like AgentMail, built into the site.
13
13
 
14
- ## Capture (public, zero-config)
14
+ ## Capture (public form, zero-config — but the SITE must be owned)
15
15
 
16
16
  ```
17
17
  POST /.shiply/email { "email": "user@example.com", ...anyExtraFields }