shiply-cli 0.12.0 → 0.12.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/skill/SKILL.md +13 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shiply-cli",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
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",
package/skill/SKILL.md CHANGED
@@ -126,11 +126,23 @@ lines for automation; exit code 0 = ready.
126
126
  ### 3. Raw HTTP (no installs)
127
127
  ```
128
128
  1. POST https://shiply.now/api/v1/publish
129
- {"files":[{"path":"index.html","size":<bytes>,"contentType":"text/html","hash":"<sha256, optional>"}]}
129
+ {
130
+ "agentName": "<your tool name, e.g. Claude Code, Cursor, Codex>",
131
+ "files": [{"path":"index.html","size":<bytes>,"contentType":"text/html","hash":"<sha256, optional>"}]
132
+ }
130
133
  (+ "Authorization: Bearer shp_…" for permanent owned sites)
131
134
  2. PUT each file's bytes to response upload.uploads[].url
132
135
  3. POST upload.finalizeUrl with {"versionId":"..."}
133
136
  ```
137
+
138
+ **ALWAYS include `agentName` on anonymous publishes.** The response then
139
+ carries `deviceAuth` ({user_code, verification_url, poll_url, device_code,
140
+ expires_in, interval}) alongside `claimUrl`. Show the user `verification_url`,
141
+ poll `poll_url` every `interval` seconds with the `device_code`, and on
142
+ `{status:"approved"}` you get a permanent `api_key` PLUS the linked site
143
+ is claimed in the same Allow click. Without `agentName` the user has to
144
+ do a separate manual claim step every time.
145
+
134
146
  **Updates:** anonymous → include `"claimToken":"..."` (returned ONCE by the
135
147
  first publish — save it); owned → include `"slug":"..."`. Hashes make updates
136
148
  cheap: unchanged files are skipped server-side.