aired 1.6.0 → 1.7.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 +24 -4
- package/dist/cli.cjs +156 -145
- package/dist/mcp.cjs +39 -38
- package/package.json +1 -1
package/SKILL.md
CHANGED
|
@@ -35,10 +35,12 @@ npx aired new deck && npx aired deck.md
|
|
|
35
35
|
|---------|-------------|
|
|
36
36
|
| `aired [file]` | Publish an HTML or Markdown file, directory, or stdin (default command) |
|
|
37
37
|
| `aired new [template]` | Write a starter to fill in: `deck`, `deck-html`, `report`, `one-pager` (no name lists them) |
|
|
38
|
-
| `aired update <id> <file>` | Update an existing page |
|
|
38
|
+
| `aired update <id> <file>` | Update an existing page (`-m "note"` labels the version) |
|
|
39
|
+
| `aired versions <id>` | List a page's history: every version kept, newest first |
|
|
40
|
+
| `aired restore <id> <version>` | Put an earlier version back (it goes live as a new version) |
|
|
39
41
|
| `aired delete <id>` | Delete a page |
|
|
40
42
|
| `aired info <id>` | Show page metadata |
|
|
41
|
-
| `aired set <id>` | Change PIN, expiry, view limit or title without re-uploading |
|
|
43
|
+
| `aired set <id>` | Change who can open it (PIN, or only named people), expiry, view limit or title without re-uploading |
|
|
42
44
|
| `aired check <id>` | Open the page in a real browser and report errors (exits 1 if broken) |
|
|
43
45
|
| `aired feedback` | Report a bug, friction or idea in aired itself |
|
|
44
46
|
| `aired tokens` | List stored update tokens |
|
|
@@ -115,10 +117,26 @@ No need to publish again to add a PIN, extend expiry or rename a page:
|
|
|
115
117
|
aired set abc123 --pin 4821 --ttl 24h # PIN on, expires a day from now
|
|
116
118
|
aired set abc123 --reads 50 --title "Q4" # view limit and title
|
|
117
119
|
aired set abc123 --clear-pin --permanent # PIN off, never expires
|
|
120
|
+
aired set abc123 --only alice@client.com,@client.com # only these people (each gets an email code)
|
|
121
|
+
aired set abc123 --public # anyone with the link again
|
|
118
122
|
```
|
|
119
123
|
|
|
124
|
+
`--only` takes emails and whole domains (`@client.com`, Pro), comma-separated, and replaces the list. It needs sign-in (`aired login` or `AIRED_API_KEY`) and a page in your account. Free lists 3 people per page.
|
|
125
|
+
|
|
120
126
|
`--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).
|
|
121
127
|
|
|
128
|
+
## History and undo
|
|
129
|
+
|
|
130
|
+
Every update keeps the content it replaces, so a bad update is never final:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
aired update abc123 report.html -m "New Q4 numbers" # the note shows in the history
|
|
134
|
+
aired versions abc123 # v4 live, v3, v2, v1 … who, when, size, note
|
|
135
|
+
aired restore abc123 2 # v2's content goes live as v5
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
A restore never rewrites history: the old content goes live as a new version, and the one it replaced stays, so `aired restore abc123 4` undoes it. Updates from the dashboard, the CLI, the API and MCP all count, and each version records who made it: `owner` (signed in), `token` (the update token) or `agent` (through MCP). Over MCP it's `list_versions` and `restore_version`; `get_page` shows the live version number and how many there are. Same owner rule as `aired set`, except that a page that has collected responses can be restored only by its owner, signed in. Free keeps the last 5 earlier versions; Pro the last 50, each for 90 days (the newest 5 stay however old). Deleting the page deletes its history.
|
|
139
|
+
|
|
122
140
|
## Check that the page works
|
|
123
141
|
|
|
124
142
|
After publishing or updating, open it in aired's browser and see what a visitor would hit:
|
|
@@ -199,10 +217,12 @@ https://aired.sh/mcp/account
|
|
|
199
217
|
|
|
200
218
|
| Tool | Needs | Does |
|
|
201
219
|
|---|---|---|
|
|
202
|
-
| `publish_html` | nothing | Publish; `html` or `markdown`, `deck`, `file_path` (STDIO only; `.md` is Markdown), `title`, `pin`, `ttl_seconds`, `permanent`; `id` + `update_token` to update |
|
|
203
|
-
| `get_page` | owner, or the page's `update_token` | Title, URL, size, views, view limit, expiry, project, PIN on/off, doc or deck
|
|
220
|
+
| `publish_html` | nothing | Publish; `html` or `markdown`, `deck`, `file_path` (STDIO only; `.md` is Markdown), `title`, `pin`, `ttl_seconds`, `permanent`; `id` + `update_token` to update, `message` to label the version |
|
|
221
|
+
| `get_page` | owner, or the page's `update_token` | Title, URL, size, views, view limit, expiry, project, PIN on/off, doc or deck, live `version` and how many `versions`; `include_source` adds the Markdown/HTML as published and a deck's notes |
|
|
204
222
|
| `get_template` | nothing | Starters: `deck`, `deck-html`, `report`, `one-pager` (no name lists them) |
|
|
205
223
|
| `set_options` | owner, or the page's `update_token` | Change `pin` (null removes), `ttl_seconds` or `permanent`, `view_limit` (null removes), `title`; signed in, `public_results` and `accept_responses` |
|
|
224
|
+
| `list_versions` | owner, or the page's `update_token` | The page's history: every version kept, newest first, with who made it, when, size and note |
|
|
225
|
+
| `restore_version` | owner, or the page's `update_token` | Put version `version` back; it goes live as a new version, so it can be undone. `message` labels it |
|
|
206
226
|
| `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` |
|
|
207
227
|
| `send_feedback` | nothing | Report a bug, friction or idea in aired (see Feedback) |
|
|
208
228
|
| `get_responses` | sign-in, the page's owner | What viewers saved with `aired.collect`: entries, settings, limits; `format: "csv"` adds CSV |
|