@phnx-labs/artifacts-cli 0.8.0 → 0.8.2
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/CHANGELOG.md +49 -1
- package/README.md +35 -105
- package/package.json +16 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,54 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 0.8.2 — 2026-10-08
|
|
4
|
+
|
|
5
|
+
- **The `artifacts` command survives publishing.** `bin` points at `dist/cli.js`
|
|
6
|
+
instead of `./dist/cli.js`; npm 11.6 to 11.13 rewrote the old form by deleting the
|
|
7
|
+
command from the published package. The release dry run now runs
|
|
8
|
+
`npm publish --dry-run` and stops if npm would rewrite `package.json`, and a
|
|
9
|
+
release checks the npm token with `npm whoami` before publishing instead of
|
|
10
|
+
failing with npm's misleading 404.
|
|
11
|
+
|
|
12
|
+
- **A README and npm page for someone deciding whether to try it.** The README is
|
|
13
|
+
short now: the promise, a picture, three commands to try, the reasons to use it,
|
|
14
|
+
and a link to https://artifacts-cli.sh. Its images load from artifacts-cli.sh, so
|
|
15
|
+
they show on npm too (the relative paths rendered as broken images there). The npm
|
|
16
|
+
page gains a homepage link and keywords. The command table and full feature list
|
|
17
|
+
live in `artifacts --help` and `docs/reference.md`; building and releasing moved
|
|
18
|
+
unchanged to `docs/development.md`.
|
|
19
|
+
|
|
20
|
+
- **The sky on artifacts-cli.sh is the visitor's own.** The site's Worker now
|
|
21
|
+
answers `GET /__sky` with Cloudflare's location for the connection (rounded
|
|
22
|
+
to 0.1 degree) and the cloud cover and humidity there from MET Norway,
|
|
23
|
+
fetched by the Worker and cached per location, so no third party sees the
|
|
24
|
+
visitor. The page draws that sun and those clouds; the time zone stands in
|
|
25
|
+
until it answers. `?clouds=0..100` previews a cover. Every other path is
|
|
26
|
+
still a plain static-asset hit.
|
|
27
|
+
- **artifacts-cli.sh sits on the living sky.** The landing page drops the navy
|
|
28
|
+
palette (retired in the Phoenix design system) for the sky getrush.ai uses:
|
|
29
|
+
colors solved from the visitor's sun, drifting clouds, the sun's disc, stars
|
|
30
|
+
after dark, and a descent to the horizon as you scroll. Day or Altitude now
|
|
31
|
+
follows the sun instead of the OS setting; `?sky=dawn|day|dusk|night` previews
|
|
32
|
+
a moment. The 404 page drops navy too.
|
|
33
|
+
- **The page tells the whole loop.** The hero shows a conversation condensing
|
|
34
|
+
into the artifact it produced. Two new scenes follow the human half: answer a
|
|
35
|
+
worksheet field and leave a note, export, and watch `artifacts answers` and
|
|
36
|
+
`artifacts notes` hand them to the agent; then drag through revisions with the
|
|
37
|
+
matching `artifacts history` listing.
|
|
38
|
+
|
|
39
|
+
## 0.8.1 — 2026-10-07
|
|
40
|
+
|
|
41
|
+
- **README rewritten to show the product first.** A Markdown-to-page hero and a
|
|
42
|
+
gallery of real renders from `examples/` open the README. They are followed by
|
|
43
|
+
how it works (what the agent writes vs. what the renderer adds), one checked
|
|
44
|
+
example, the command table, and install. The full behavior reference moved
|
|
45
|
+
unchanged to `docs/reference.md`.
|
|
46
|
+
- **Landing page at https://artifacts-cli.sh.** It is built from `website/` and
|
|
47
|
+
deployed by `scripts/deploy-website.sh`.
|
|
48
|
+
- **Releases.** `scripts/release.sh` takes `x.y.z` or `x.y.z-pre.n`. A
|
|
49
|
+
pre-release publishes to the npm `next` tag (previously `latest`) and skips
|
|
50
|
+
the production deploys. A stable release also redeploys the landing page. No
|
|
51
|
+
change to the CLI itself.
|
|
4
52
|
|
|
5
53
|
## 0.8.0 — 2026-10-06
|
|
6
54
|
|
package/README.md
CHANGED
|
@@ -1,127 +1,57 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Artifacts
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**The chat ends. The artifact stays.**
|
|
4
4
|
|
|
5
|
-
`artifacts`
|
|
6
|
-
charts, drill-downs
|
|
5
|
+
Your coding agent writes a short Markdown file. `artifacts` turns it into one polished
|
|
6
|
+
HTML page, with diagrams, charts, drill-downs and diffs, that you can read, mark up and
|
|
7
|
+
share as a link.
|
|
7
8
|
|
|
8
9
|
<picture>
|
|
9
|
-
<source media="(prefers-color-scheme: dark)" srcset="
|
|
10
|
-
<img alt="A short plan.md on the left; on the right, the rendered page with a branded cover and an interactive explorer" src="
|
|
10
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://artifacts-cli.sh/assets/hero-dark.png">
|
|
11
|
+
<img alt="A short plan.md on the left; on the right, the rendered page with a branded cover and an interactive explorer" src="https://artifacts-cli.sh/assets/hero-light.png">
|
|
11
12
|
</picture>
|
|
12
13
|
|
|
13
|
-
##
|
|
14
|
-
|
|
15
|
-
These are real renders of the files in [`examples/`](examples). Each one is a
|
|
16
|
-
single HTML file that works offline, in light and dark.
|
|
17
|
-
|
|
18
|
-
<picture>
|
|
19
|
-
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/gallery-dark.png">
|
|
20
|
-
<img alt="Rendered components: SVG diagram, explorer, bar chart, source excerpt, diff, worksheet, stat panels and a harness cover" src="docs/assets/gallery-light.png">
|
|
21
|
-
</picture>
|
|
22
|
-
|
|
23
|
-
## Why
|
|
24
|
-
|
|
25
|
-
- **About 90% fewer tokens.** The agent writes content, not CSS. The
|
|
26
|
-
[example plan](examples/plan.md) is 2,391 tokens of Markdown against 25,028
|
|
27
|
-
tokens of equivalent HTML.
|
|
28
|
-
- **One look across every agent.** Claude, Codex and Gemini all render through
|
|
29
|
-
the same design. Set your palette once in `DESIGN.md`.
|
|
30
|
-
- **Components from plain fences.** `explorer`, `bar-chart`, `diff`, `excerpt`
|
|
31
|
-
and `field` take JSON or tables. You don't write any HTML for them.
|
|
32
|
-
- **Built for reading.** Contents rail, collapsible sections, link previews, a
|
|
33
|
-
generated references list, highlights and notes.
|
|
34
|
-
- **Share in one command.** Get a public, org-only or private link with an
|
|
35
|
-
unfurl card. Re-sharing keeps the same URL and saves the old version.
|
|
36
|
-
- **Safe by default.** Embedded HTML and SVG are sanitized. Before publishing,
|
|
37
|
-
the file is scanned for emails and credentials.
|
|
38
|
-
|
|
39
|
-
## How it works
|
|
40
|
-
|
|
41
|
-
**The agent writes the content. The renderer writes the page.** The agent never
|
|
42
|
-
writes component HTML, CSS or JavaScript. It learns the format from the
|
|
43
|
-
`artifacts` skill and `artifacts components --json`. `artifacts check` reports
|
|
44
|
-
mistakes by line number until the source is valid. The renderer then adds the
|
|
45
|
-
layout, theme, components, code highlighting and provenance, and writes one
|
|
46
|
-
self-contained `.html` file.
|
|
47
|
-
|
|
48
|
-
<img alt="How artifacts-cli works: the agent reads the skill and component catalogue and writes plan.md; artifacts check sends errors back; artifacts render combines the Markdown with components, DESIGN.md and git into one HTML file, which is previewed locally, saved to history, or shared as a link" src="docs/assets/how-it-works.png">
|
|
49
|
-
|
|
50
|
-
This is everything the agent writes for an interactive drill-down:
|
|
51
|
-
|
|
52
|
-
````markdown
|
|
53
|
-
---
|
|
54
|
-
kind: visual
|
|
55
|
-
title: Where the dead code is
|
|
56
|
-
summary: Two services carry most of the dead code.
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
## Story
|
|
60
|
-
|
|
61
|
-
Most of the removable code sits in two services.
|
|
62
|
-
|
|
63
|
-
## Figure
|
|
64
|
-
|
|
65
|
-
```explorer
|
|
66
|
-
{ "title": "Removable code", "metric": {"label": "Removable", "unit": "%", "max": 100},
|
|
67
|
-
"items": [{ "label": "Web", "value": 25 }, { "label": "API", "value": 10 }] }
|
|
68
|
-
```
|
|
69
|
-
````
|
|
14
|
+
## Try it
|
|
70
15
|
|
|
71
16
|
```bash
|
|
72
|
-
|
|
73
|
-
artifacts share cleanup.md # https://share.getrush.ai/<you>/where-the-dead-code-is
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
The `.html` file is written next to its Markdown, usually in
|
|
77
|
-
`.agents/artifacts/<date>/` inside your repository. Every render is also saved
|
|
78
|
-
to local history, so earlier versions can be reopened.
|
|
79
|
-
|
|
80
|
-
## Commands
|
|
17
|
+
npm i -g @phnx-labs/artifacts-cli # Node 20 or later
|
|
81
18
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
| `artifacts new <plan\|report\|visual\|worksheet\|design>` | Scaffold an artifact with provenance filled in |
|
|
85
|
-
| `artifacts render file.md [--open]` | Compile to self-contained HTML, optionally serve and watch |
|
|
86
|
-
| `artifacts check file.md` | Validate without rendering |
|
|
87
|
-
| `artifacts components [name]` | List components and their input contracts |
|
|
88
|
-
| `artifacts share file.md [--visibility me\|org] [--unlisted]` | Publish a link (managed, or your own Cloudflare) |
|
|
89
|
-
| `artifacts share list \| revisions \| visibility \| open` | Manage what you've published |
|
|
90
|
-
| `artifacts unshare <slug>` | Take a page down and verify it 404s |
|
|
91
|
-
| `artifacts comments plan.md [--json]` | Read, reply to and resolve a shared page's review threads as your agent |
|
|
92
|
-
| `artifacts answers ws.md` | Read or merge worksheet answers |
|
|
93
|
-
| `artifacts list [--favorites]` | Artifacts known to this machine |
|
|
94
|
-
|
|
95
|
-
Run `artifacts <command> --help` for the workflow and flags. Theming,
|
|
96
|
-
components, embedded HTML classes, sharing, self-hosting the Worker and local
|
|
97
|
-
history are all covered in the [full reference](docs/reference.md).
|
|
98
|
-
|
|
99
|
-
## Install
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
npm i -g @phnx-labs/artifacts-cli # installs the `artifacts` command (Node 20+)
|
|
103
|
-
artifacts auth login # optional, enables managed sharing
|
|
19
|
+
artifacts new report --out report.md # a starter file
|
|
20
|
+
artifacts render report.md --open # the page, re-rendered on every save
|
|
104
21
|
```
|
|
105
22
|
|
|
106
|
-
|
|
107
|
-
[agents-cli](https://github.com/phnx-labs/agents-cli):
|
|
23
|
+
Then give your agents the skill, so they write artifacts for you:
|
|
108
24
|
|
|
109
25
|
```bash
|
|
110
26
|
agents skills add gh:phnx-labs/artifacts-cli --names artifacts --agents claude,codex -y
|
|
111
27
|
```
|
|
112
28
|
|
|
113
|
-
|
|
29
|
+
(That uses [agents-cli](https://agi-cli.sh). Run `artifacts auth login` once to share
|
|
30
|
+
pages as links with `artifacts share report.md`.)
|
|
114
31
|
|
|
115
|
-
##
|
|
32
|
+
## Why
|
|
116
33
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
34
|
+
- **About 90% fewer tokens.** The agent writes content, not HTML and CSS. A plan that
|
|
35
|
+
takes 25,028 tokens as HTML takes 2,391 as Markdown.
|
|
36
|
+
- **Real components from plain text.** Charts, drill-downs, diffs and forms come from a
|
|
37
|
+
few lines of JSON or a table.
|
|
38
|
+
- **The page talks back.** Readers highlight, leave notes and answer worksheet questions
|
|
39
|
+
on the page; your agent reads them with `artifacts notes` and `artifacts answers`.
|
|
40
|
+
- **Every version stays.** Each render is saved locally, so earlier versions reopen with
|
|
41
|
+
`artifacts history`.
|
|
42
|
+
- **One file, safe to send.** The HTML works offline, in light and dark. Embedded HTML is
|
|
43
|
+
sanitized, and a page is checked for credentials before it is shared.
|
|
44
|
+
|
|
45
|
+
<picture>
|
|
46
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://artifacts-cli.sh/assets/gallery-dark.png">
|
|
47
|
+
<img alt="Rendered components: SVG diagram, explorer, bar chart, source excerpt, diff, worksheet, stat panels and a harness cover" src="https://artifacts-cli.sh/assets/gallery-light.png">
|
|
48
|
+
</picture>
|
|
49
|
+
|
|
50
|
+
## Learn more
|
|
122
51
|
|
|
123
|
-
|
|
52
|
+
See the whole loop at **[artifacts-cli.sh](https://artifacts-cli.sh)**. Every command
|
|
53
|
+
explains itself with `artifacts <command> --help`.
|
|
124
54
|
|
|
125
55
|
## License
|
|
126
56
|
|
|
127
|
-
|
|
57
|
+
Apache-2.0
|
package/package.json
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phnx-labs/artifacts-cli",
|
|
3
|
-
"version": "0.8.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.8.2",
|
|
4
|
+
"description": "Your coding agent writes Markdown; artifacts turns it into one polished HTML page you can read, mark up and share as a link.",
|
|
5
|
+
"homepage": "https://artifacts-cli.sh",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"ai-agents",
|
|
8
|
+
"coding-agents",
|
|
9
|
+
"claude-code",
|
|
10
|
+
"codex",
|
|
11
|
+
"markdown",
|
|
12
|
+
"html",
|
|
13
|
+
"artifacts",
|
|
14
|
+
"reports",
|
|
15
|
+
"diagrams",
|
|
16
|
+
"cli"
|
|
17
|
+
],
|
|
5
18
|
"type": "module",
|
|
6
19
|
"bin": {
|
|
7
|
-
"artifacts": "
|
|
20
|
+
"artifacts": "dist/cli.js"
|
|
8
21
|
},
|
|
9
22
|
"files": [
|
|
10
23
|
"dist",
|