aired 1.9.0 → 1.10.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/README.md +4 -1
- package/dist/cli.cjs +177 -163
- package/dist/mcp.cjs +9 -9
- package/package.json +1 -1
- package/skills/aired/references/cli.md +19 -1
- package/skills/aired/references/mcp.md +3 -1
|
@@ -8,7 +8,10 @@ Run it with `npx aired` (no install) or install it with `npm install -g aired`.
|
|
|
8
8
|
|---|---|
|
|
9
9
|
| `aired [file]` | Publish an HTML or Markdown file, a folder with `index.html`, or stdin (the default command) |
|
|
10
10
|
| `aired new [template]` | Write a starter to fill in: `deck`, `deck-html`, `report`, `one-pager` (no name lists them) |
|
|
11
|
-
| `aired update <id> <file>` | Replace a page's content at the same link (`-m "note"` labels the version) |
|
|
11
|
+
| `aired update <id> <file>` | Replace a page's content at the same link (`-m "note"` labels the version). Open tabs reload by themselves |
|
|
12
|
+
| `aired list` | Your pages: id, title, link, last update, views (`--project`, `--limit`, `--json`; signed out: pages you have tokens for) |
|
|
13
|
+
| `aired pull <id>` | Download a page's current source to edit: `<id>.md` for Markdown pages, else `<id>.html` (`-o file`, `-o -` prints it) |
|
|
14
|
+
| `aired watch <path>` | Publish a file or folder, then update the page on every save (`--id` to update an existing page) |
|
|
12
15
|
| `aired versions <id>` | A page's history: every version kept, newest first |
|
|
13
16
|
| `aired restore <id> <version>` | Put an earlier version back (it goes live as a new version) |
|
|
14
17
|
| `aired set <id>` | Change who can open it, its expiry, view limit or title without uploading again |
|
|
@@ -39,6 +42,21 @@ Run it with `npx aired` (no install) or install it with `npm install -g aired`.
|
|
|
39
42
|
|
|
40
43
|
`aired update` takes `-t`, `--deck`, `--markdown` and `-m, --message`.
|
|
41
44
|
|
|
45
|
+
## Pick up where you left off
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
aired list # find the page
|
|
49
|
+
aired pull abc123 # abc123.md (or .html), as it was last published
|
|
50
|
+
# edit abc123.md
|
|
51
|
+
aired update abc123 abc123.md # a deck: add --deck
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
`aired pull` works for your own pages (signed in or `AIRED_API_KEY`) and pages you have the update token for on this machine; nobody else can read a page's source, PIN or not. It won't overwrite a file unless you pass `--force`. Its `--json` says the `version` you pulled: if `aired versions <id>` shows a newer one before you update, someone changed it since.
|
|
55
|
+
|
|
56
|
+
Anyone who has the page open sees the update without reloading (within about 5 seconds if they opened it in the last 2 minutes, then within 15 seconds, then within a minute): a deck stays on its slide and a long page keeps its scroll position. If they've typed into the page, they get a "Reload" button instead, so nothing they typed is lost.
|
|
57
|
+
|
|
58
|
+
`aired watch page.html` publishes once and then updates the page every time you save (a folder is bundled again each time). Each save is kept as a version, so Free's last 5 turn over quickly. With `--json` it prints one line per publish or update.
|
|
59
|
+
|
|
42
60
|
## aired set
|
|
43
61
|
|
|
44
62
|
```bash
|
|
@@ -16,7 +16,7 @@
|
|
|
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`; `include_source` adds the Markdown or HTML as published and a deck's notes |
|
|
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
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` |
|
|
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 |
|
|
@@ -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 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
|
+
|
|
32
34
|
`set_options` with `access`:
|
|
33
35
|
|
|
34
36
|
```json
|