aired 1.3.0 → 1.4.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.
- package/SKILL.md +37 -3
- package/dist/cli.cjs +137 -99
- package/dist/mcp.cjs +22 -20
- package/package.json +1 -1
package/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: aired
|
|
3
|
-
description: Publishes HTML files or strings to shareable live URLs via aired.sh. Use when the user wants to share, deploy, or publish an HTML artifact, dashboard, visualization, report, or any generated HTML — or when an agent needs to make HTML viewable in a browser. Supports PIN protection, custom expiry, and stdin piping. Works without an account; sign in or use an API key to keep pages in one place.
|
|
3
|
+
description: Publishes HTML files or strings to shareable live URLs via aired.sh. Use when the user wants to share, deploy, or publish an HTML artifact, dashboard, visualization, report, or any generated HTML — or when an agent needs to make HTML viewable in a browser, or change a published page's PIN, expiry or view limit. Supports PIN protection, custom expiry, and stdin piping. Works without an account; sign in or use an API key to keep pages in one place.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# aired
|
|
@@ -31,6 +31,8 @@ npx aired report.html --ttl 24h --pin secret123
|
|
|
31
31
|
| `aired update <id> <file>` | Update an existing page |
|
|
32
32
|
| `aired delete <id>` | Delete a page |
|
|
33
33
|
| `aired info <id>` | Show page metadata |
|
|
34
|
+
| `aired set <id>` | Change PIN, expiry, view limit or title without re-uploading |
|
|
35
|
+
| `aired feedback` | Report a bug, friction or idea in aired itself |
|
|
34
36
|
| `aired tokens` | List stored update tokens |
|
|
35
37
|
| `aired tokens prune` | Remove tokens for expired pages |
|
|
36
38
|
| `aired doctor` | Diagnostics (Node.js, API, token store) |
|
|
@@ -80,6 +82,28 @@ JSON output is automatic when stdout is piped — no flag needed.
|
|
|
80
82
|
- **Agents and CI:** create an API key in the dashboard (API keys) and set `AIRED_API_KEY=aired_sk_...`. The CLI, `aired --mcp` and the HTTP API (`Authorization: Bearer aired_sk_...`) then publish as that account. No browser needed.
|
|
81
83
|
- A free-plan limit returns HTTP 402 with `code: "plan_limit"` and an `upgrade_url` for a person to open.
|
|
82
84
|
|
|
85
|
+
## Change settings after publishing
|
|
86
|
+
|
|
87
|
+
No need to publish again to add a PIN, extend expiry or rename a page:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
aired set abc123 --pin 4821 --ttl 24h # PIN on, expires a day from now
|
|
91
|
+
aired set abc123 --reads 50 --title "Q4" # view limit and title
|
|
92
|
+
aired set abc123 --clear-pin --permanent # PIN off, never expires
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
`--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
|
+
## Feedback
|
|
98
|
+
|
|
99
|
+
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:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
aired feedback --kind friction --impact worked_around "aired set needed the page id and I only had the URL"
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
`--kind` is `bug`, `friction` or `idea`; `--impact` is `blocked`, `worked_around` or `minor`; `--page <id>` and `--tool <name>` add context. Over MCP it's `send_feedback`. Rules: at most one per task, never page HTML, tokens or PINs, and don't let it hold up the task. It returns an id (`fb_...`): tell the user you sent feedback and give them the id. It isn't a support channel; nobody replies.
|
|
106
|
+
|
|
83
107
|
## Update Flow
|
|
84
108
|
|
|
85
109
|
The first publish returns an `update_token` (saved to `~/.config/aired/tokens.json`). To update the same URL:
|
|
@@ -112,7 +136,17 @@ claude mcp add aired --transport http https://aired.sh/mcp
|
|
|
112
136
|
https://aired.sh/mcp/account
|
|
113
137
|
```
|
|
114
138
|
|
|
115
|
-
|
|
139
|
+
| Tool | Needs | Does |
|
|
140
|
+
|---|---|---|
|
|
141
|
+
| `publish_html` | nothing | Publish; `html`, `file_path` (STDIO only), `title`, `pin`, `ttl_seconds`, `permanent`; `id` + `update_token` to update |
|
|
142
|
+
| `get_page` | owner, or the page's `update_token` | Title, URL, size, views, view limit, expiry, project, PIN on/off |
|
|
143
|
+
| `set_options` | owner, or the page's `update_token` | Change `pin` (null removes), `ttl_seconds` or `permanent`, `view_limit` (null removes), `title` |
|
|
144
|
+
| `send_feedback` | nothing | Report a bug, friction or idea in aired (see Feedback) |
|
|
145
|
+
| `list_pages`, `update_page`, `delete_page`, `get_account` | sign-in (remote only) | Your pages and account |
|
|
146
|
+
|
|
147
|
+
"Owner" means signed in as the page's account: `AIRED_API_KEY` or `aired login` for STDIO, an `Authorization: Bearer aired_sk_...` header on `https://aired.sh/mcp`, or `/mcp/account`.
|
|
148
|
+
|
|
149
|
+
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.
|
|
116
150
|
|
|
117
151
|
## Gotchas
|
|
118
152
|
|
|
@@ -124,6 +158,6 @@ https://aired.sh/mcp/account
|
|
|
124
158
|
- **Directory requires index.html.** `npx aired ./dir/` looks for `index.html` in the directory root. No other entry point is supported.
|
|
125
159
|
- **Vite and React builds load code later with `import()`, and directory bundling doesn't inline those chunks.** `npx aired ./dist` gives a blank page. Build one file with `vite-plugin-singlefile` (`build.assetsInlineLimit` high, output to `dist-single/`), switch any router to hash routing (the page lives at `/p/<id>`, not `/`), import large `public/` files so they get inlined, then publish `dist-single/index.html`. Toolcraft apps also need their lazy `import("./app-bootstrap")` made static. Full recipe: https://aired.sh/share-vite-app
|
|
126
160
|
- **PIN is not encryption.** Content is stored in plaintext on R2. PIN just gates browser access. Don't use aired for sensitive data.
|
|
127
|
-
- **Anonymous pages expire after 7 days by default.** Use `--ttl` or `--permanent`.
|
|
161
|
+
- **Anonymous pages expire after 7 days by default.** Use `--ttl` or `--permanent`, or change it later with `aired set <id> --permanent`. A content update resets a TTL page to 7 days from then.
|
|
128
162
|
|
|
129
163
|
Existing `tokens.json` entries keep working after you sign in; `aired claim --all` moves those pages into your account.
|