aired 1.10.0 → 1.11.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/dist/cli.cjs +185 -164
- package/dist/mcp.cjs +46 -46
- package/package.json +1 -1
- package/skills/aired/references/cli.md +14 -2
- package/skills/aired/references/mcp.md +4 -2
- package/skills/aired/references/troubleshooting.md +1 -1
- package/skills/aired-slides/SKILL.md +10 -0
package/package.json
CHANGED
|
@@ -17,7 +17,8 @@ Run it with `npx aired` (no install) or install it with `npm install -g aired`.
|
|
|
17
17
|
| `aired set <id>` | Change who can open it, its expiry, view limit or title without uploading again |
|
|
18
18
|
| `aired check <id>` | Open the page in a real browser and report errors (exits 1 if broken) |
|
|
19
19
|
| `aired pdf <id>` | Download the page as a PDF (a deck: one slide per page) |
|
|
20
|
-
| `aired
|
|
20
|
+
| `aired embed <id>` | Print the code to show the page on another site: the embed link, an `<iframe>`, and a linked preview image for READMEs |
|
|
21
|
+
| `aired info <id>` | Title, size, views and expiry; `--slides` (your own deck, Pro, signed in) adds per slide how many reached it, the typical time and where people stopped (`--days 7\|30\|90`) |
|
|
21
22
|
| `aired delete <id>` | Delete a page |
|
|
22
23
|
| `aired feedback` | Report a bug, friction or idea in aired itself |
|
|
23
24
|
| `aired tokens` | List stored update tokens (`aired tokens prune` removes ones for pages that are gone) |
|
|
@@ -67,7 +68,18 @@ aired set abc123 --only alice@client.com,@client.com # only these people (each
|
|
|
67
68
|
aired set abc123 --public # anyone with the link again
|
|
68
69
|
```
|
|
69
70
|
|
|
70
|
-
Also `--clear-title` and `--clear-reads`,
|
|
71
|
+
Also `--clear-title` and `--clear-reads`, `--allow-pdf` / `--no-allow-pdf` to give viewers a Download PDF button or take it away (off by default; not on pages with a view limit), and `--no-allow-embed` / `--allow-embed` to stop or allow other sites framing the page (on by default; see `aired embed`). 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). `--only` needs sign-in and a page in your account.
|
|
72
|
+
|
|
73
|
+
## aired embed
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
aired embed abc123 # the embed link, the <iframe> and a Markdown image link
|
|
77
|
+
aired embed abc123 --iframe # just the <iframe>, to paste into a site or docs
|
|
78
|
+
aired embed abc123 --markdown # just the README snippet: GitHub strips iframes
|
|
79
|
+
aired embed abc123 --url # just https://aired.sh/embed/abc123
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
The frame is `https://aired.sh/embed/<id>`: a deck keeps its slide controls, a doc or page scrolls. Only pages anyone can open embed: a PIN, `--only`, a view limit or `--no-allow-embed` makes it fail (exit 1), and an existing embed shows a "can't be shown here" card linking to the page. Free and anonymous embeds show a small "Made with aired" link; Pro embeds show nothing. Embeds count views like the page, with the site they're on as the referrer. Pasting the `/p/` link works in tools that read oEmbed from any site (WordPress); Notion, Ghost and Medium don't expand pasted aired links yet.
|
|
71
83
|
|
|
72
84
|
## aired check
|
|
73
85
|
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
|---|---|---|
|
|
17
17
|
| `publish_html` | nothing | Publish `html` or `markdown`, with `deck`, `title`, `pin`, `ttl_seconds`, `permanent`; `id` + `update_token` to update (owner: `id` alone); `message` labels the version; `file_path` and `project` on the local server |
|
|
18
18
|
| `get_template` | nothing | Starters: `deck`, `deck-html`, `report`, `one-pager` (no name lists them) |
|
|
19
|
-
| `get_page` | owner, or the `update_token` | Title, URL, size, views, view limit, expiry, project, PIN on or off, doc or deck, live `version`, `updated_at`; `include_source` adds the Markdown or HTML as published and a deck's notes, so you can edit it and update the page from anywhere |
|
|
20
|
-
| `set_options` | owner, or the `update_token` | Change `pin` (null removes), `ttl_seconds` or `permanent`, `view_limit` (null removes), `title`, `allow_pdf` (viewers can download a PDF); signed in: `access`, `public_results`, `accept_responses` |
|
|
19
|
+
| `get_page` | owner, or the `update_token` | Title, URL, size, views, view limit, expiry, project, PIN on or off, doc or deck, live `version`, `updated_at`; `include_source` adds the Markdown or HTML as published and a deck's notes, so you can edit it and update the page from anywhere. On your own deck, signed in: `slide_stats` (Pro: per slide `reached`, `median_seconds`, `drop_off`, last 30 days) or `slide_stats_upgrade_url` (Free) |
|
|
20
|
+
| `set_options` | owner, or the `update_token` | Change `pin` (null removes), `ttl_seconds` or `permanent`, `view_limit` (null removes), `title`, `allow_pdf` (viewers can download a PDF), `allow_embed` (false stops other sites framing it); signed in: `access`, `public_results`, `accept_responses` |
|
|
21
21
|
| `list_versions` | owner, or the `update_token` | Every version kept, newest first, with who made it, when, size and note |
|
|
22
22
|
| `restore_version` | owner, or the `update_token` | Put `version` back as a new version; a page with responses needs the owner |
|
|
23
23
|
| `check_page` | owner, or the `update_token` | Render the page in a browser: errors, failed files, blank screen, screenshot; `viewport` `desktop` or `mobile` |
|
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
|
|
30
30
|
Every tool returns `structuredContent` that matches its `outputSchema`, next to the text. Read `url`, `id`, `update_token` and `expires_at` from there.
|
|
31
31
|
|
|
32
|
+
To put a page on another site, use `embed_url` from `publish_html` or `get_page` (`https://aired.sh/embed/<id>`; null or absent when the page has a PIN, named people, a view limit or `allow_embed` off). Give the user `<iframe src="<embed_url>" width="800" height="600" style="border:0;width:100%" allowfullscreen></iframe>` for a site or docs (a deck: `width="960" height="540"`), or for a GitHub README, which strips iframes, `[](https://aired.sh/p/<id>)`. Free embeds show a small "Made with aired" link; Pro ones nothing.
|
|
33
|
+
|
|
32
34
|
To pick up a page where you left off: `list_pages` (signed in; each has `updated_at`), then `get_page` with `include_source: true`, edit `source`, and send it back with `update_page` or `publish_html` (`id` + `update_token`), with `deck: true` for a deck. Anyone who has the page open sees the new version without reloading: within about 5 seconds if they opened it in the last 2 minutes, then within 15 seconds, then within a minute.
|
|
33
35
|
|
|
34
36
|
`set_options` with `access`:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# When something goes wrong
|
|
2
2
|
|
|
3
|
-
API errors are JSON: `{ "error": "...", "
|
|
3
|
+
API errors are JSON: `{ "error": { "code": "...", "message": "..." } }`. Act on `code`; `message` is for people.
|
|
4
4
|
|
|
5
5
|
| Status and code | What it means | What to do |
|
|
6
6
|
|---|---|---|
|
|
@@ -107,6 +107,16 @@ Over MCP: `export_pdf` with `{ "id": "<id>" }`, or `{ "id": "<id>", "notes": tru
|
|
|
107
107
|
- Free PDFs carry a small "Made with aired" mark in the corner of each slide; Pro PDFs don't.
|
|
108
108
|
- Printing from the browser (Save as PDF) also gives one slide per page.
|
|
109
109
|
|
|
110
|
+
## See how far people get (Pro)
|
|
111
|
+
|
|
112
|
+
For your own decks, aired counts per slide how many people reached it (on screen for a second or more), the typical time on it, and where they stopped. Your own views don't count, and nothing about viewers is kept (no cookies, IP or viewer id).
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
aired info <id> --slides # last 30 days; --days 7 or 90
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Over MCP: `get_page` on your deck, signed in, has `slide_stats`. In the dashboard: the deck's Views page. Use the biggest drop to suggest which slide to fix. On Free you get an upgrade link instead, and nothing is collected.
|
|
119
|
+
|
|
110
120
|
## Check before sharing
|
|
111
121
|
|
|
112
122
|
```bash
|