aired 1.4.0 → 1.5.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.
Files changed (4) hide show
  1. package/SKILL.md +23 -3
  2. package/dist/cli.cjs +147 -137
  3. package/dist/mcp.cjs +33 -28
  4. package/package.json +1 -1
package/SKILL.md CHANGED
@@ -32,6 +32,7 @@ npx aired report.html --ttl 24h --pin secret123
32
32
  | `aired delete <id>` | Delete a page |
33
33
  | `aired info <id>` | Show page metadata |
34
34
  | `aired set <id>` | Change PIN, expiry, view limit or title without re-uploading |
35
+ | `aired check <id>` | Open the page in a real browser and report errors (exits 1 if broken) |
35
36
  | `aired feedback` | Report a bug, friction or idea in aired itself |
36
37
  | `aired tokens` | List stored update tokens |
37
38
  | `aired tokens prune` | Remove tokens for expired pages |
@@ -66,9 +67,9 @@ JSON output is automatic when stdout is piped — no flag needed.
66
67
  | Code | Meaning |
67
68
  |------|---------|
68
69
  | 0 | Success |
69
- | 1 | API error |
70
- | 2 | Validation error (bad input, missing file, no token) |
71
- | 3 | Rate limited (see Limits) |
70
+ | 1 | API error; for `aired check`, only "the page is broken" |
71
+ | 2 | Validation error (bad input, missing file, no token); for `aired check`, also no access to the page |
72
+ | 3 | Rate limited (see Limits); for `aired check`, also "the check didn't run, try later" (daily budget, browser busy) |
72
73
 
73
74
  ## Accounts, API keys and limits
74
75
 
@@ -94,6 +95,20 @@ aired set abc123 --clear-pin --permanent # PIN off, never expires
94
95
 
95
96
  `--clear-title` and `--clear-reads` remove those. PINs are 4–64 characters, TTLs a minute to a year (use `--permanent` beyond that), titles up to 200 characters. It uses the stored update token, else your sign-in or `AIRED_API_KEY` (your own pages only). Over MCP it's `set_options`; `get_page` reads a page's settings back (whether a PIN is on, never the PIN).
96
97
 
98
+ ## Check that the page works
99
+
100
+ After publishing or updating, open it in aired's browser and see what a visitor would hit:
101
+
102
+ ```bash
103
+ aired check abc123 # desktop, 1280×800
104
+ aired check abc123 --mobile # phone, 390×844
105
+ aired check abc123 --screenshot shot.jpg --json
106
+ ```
107
+
108
+ It reports script and console errors, files that didn't load (404s, blocked CDNs), broken images, a blank screen, and warnings for slow, heavy (over 1 MB of HTML or 5 MB of files), very tall or sideways-scrolling pages, with a screenshot URL that works for 24 hours (or until the page is updated or deleted). Relative files (`app.js`, `data.json`) show up as failed: a page is one file. `ok` is true when nothing is broken; warnings don't count (`--strict` fails on them too). It exits 1 only when the page is broken, 3 when the check couldn't run, so it fits in CI. Over MCP it's `check_page`, which also attaches the screenshot as an image.
109
+
110
+ The loop: publish → check → fix what it reports → update the same id → check once more. Checks share a small daily browser budget: 3 minutes a day across everyone, and each caller's share is 2 minutes signed in or 1 minute per IP without an account (a check takes about 10–15 seconds), plus 20 an hour and 3 a minute: check once per change, not in a loop. When the budget is spent you get HTTP 429 (exit 3) until 00:00 UTC. Same owner rule as `aired set`.
111
+
97
112
  ## Feedback
98
113
 
99
114
  When aired itself gets in the way (a result surprised you, a limit blocked you, these docs were wrong, or a feature is missing), send one note:
@@ -141,6 +156,7 @@ https://aired.sh/mcp/account
141
156
  | `publish_html` | nothing | Publish; `html`, `file_path` (STDIO only), `title`, `pin`, `ttl_seconds`, `permanent`; `id` + `update_token` to update |
142
157
  | `get_page` | owner, or the page's `update_token` | Title, URL, size, views, view limit, expiry, project, PIN on/off |
143
158
  | `set_options` | owner, or the page's `update_token` | Change `pin` (null removes), `ttl_seconds` or `permanent`, `view_limit` (null removes), `title` |
159
+ | `check_page` | owner, or the page's `update_token` | Render the page in a browser: errors, failed files, blank screen, screenshot; `viewport` `desktop` or `mobile` |
144
160
  | `send_feedback` | nothing | Report a bug, friction or idea in aired (see Feedback) |
145
161
  | `list_pages`, `update_page`, `delete_page`, `get_account` | sign-in (remote only) | Your pages and account |
146
162
 
@@ -148,6 +164,10 @@ https://aired.sh/mcp/account
148
164
 
149
165
  Every tool returns `structuredContent` (matching its `outputSchema`) next to the text, so read fields like `url`, `id`, `update_token` and `expires_at` from there rather than parsing the text.
150
166
 
167
+ **Prompts** (slash commands in clients that show them): `publish_report`, `make_slide_deck`, `share_privately` (PIN and expiry, PIN sent separately) and `check_and_fix`.
168
+
169
+ **Resources:** `skill://aired/SKILL.md` is this skill, for any connected agent. Signed-in callers also get their pages as `aired://page/{id}` (the newest 50 listed); reading one returns its HTML. Only your own pages: another account's page, or an anonymous one, is refused.
170
+
151
171
  ## Gotchas
152
172
 
153
173
  - **Anonymous rate limit is 5 publishes/hour per IP.** The API returns 429 and the CLI exits with code 3. Sign in or set `AIRED_API_KEY` for 30/hour (500/day on Pro).