@phnx-labs/artifacts-cli 0.4.0 → 0.4.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 +95 -0
- package/README.md +75 -14
- package/dist/cli.js +25 -11
- package/dist/cli.js.map +1 -1
- package/dist/commands/new.js +2 -0
- package/dist/commands/new.js.map +1 -1
- package/dist/lib/agent-assets.d.ts +1 -0
- package/dist/lib/agent-assets.js +15 -0
- package/dist/lib/agent-assets.js.map +1 -0
- package/dist/lib/collab.d.ts +61 -0
- package/dist/lib/collab.js +714 -0
- package/dist/lib/collab.js.map +1 -0
- package/dist/lib/creator-cover.d.ts +7 -0
- package/dist/lib/creator-cover.js +68 -0
- package/dist/lib/creator-cover.js.map +1 -0
- package/dist/lib/fonts.d.ts +3 -0
- package/dist/lib/fonts.js +68 -12
- package/dist/lib/fonts.js.map +1 -1
- package/dist/lib/freshness.d.ts +6 -0
- package/dist/lib/freshness.js +52 -0
- package/dist/lib/freshness.js.map +1 -0
- package/dist/lib/highlights.d.ts +11 -1
- package/dist/lib/highlights.js +38 -71
- package/dist/lib/highlights.js.map +1 -1
- package/dist/lib/icons.js +2 -1
- package/dist/lib/icons.js.map +1 -1
- package/dist/lib/reader-anchors.d.ts +16 -0
- package/dist/lib/reader-anchors.js +146 -0
- package/dist/lib/reader-anchors.js.map +1 -0
- package/dist/lib/render.js +337 -38
- package/dist/lib/render.js.map +1 -1
- package/dist/lib/section-collapse.d.ts +17 -0
- package/dist/lib/section-collapse.js +113 -0
- package/dist/lib/section-collapse.js.map +1 -0
- package/dist/lib/templates.d.ts +5 -3
- package/dist/lib/templates.js +19 -4
- package/dist/lib/templates.js.map +1 -1
- package/dist/lib/tokens.d.ts +2 -0
- package/dist/lib/tokens.js +5 -1
- package/dist/lib/tokens.js.map +1 -1
- package/dist/lib/validate.js +28 -1
- package/dist/lib/validate.js.map +1 -1
- package/fonts/Inter-OFL.txt +92 -0
- package/fonts/InterVariable.woff2 +0 -0
- package/fonts/JetBrainsMono-OFL.txt +93 -0
- package/fonts/JetBrainsMono-wght.woff2 +0 -0
- package/fonts/README.md +16 -0
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,101 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- **Creator covers, project identity, and freshness (PHNX-3978).** Artifacts now
|
|
6
|
+
have a large creator logo, a built-in brand palette and background motif, and
|
|
7
|
+
a matching favicon. Known marks are bundled; unknown harnesses use a neutral
|
|
8
|
+
cover and terminal glyph. A linked project sits above the title. Exact IDs
|
|
9
|
+
from `agents projects` resolve to registered display names without renaming
|
|
10
|
+
the source project; long tab prefixes are bounded while page names stay whole.
|
|
11
|
+
Precise `created` / `updated` timestamps show relative ages with exact-time
|
|
12
|
+
tooltips; date-only values stay absolute. Missing `updated` uses source mtime,
|
|
13
|
+
labeled *Source updated*. New scaffolds record creation time. Detailed source
|
|
14
|
+
context folds behind Details and remains visible in print. Authoring guidance
|
|
15
|
+
preserves the subject repository and creator when output lives elsewhere.
|
|
16
|
+
|
|
17
|
+
- **One full-document update marker (PHNX-3978).** The renderer now stamps the
|
|
18
|
+
same marker previously added by the local preview server, extending update
|
|
19
|
+
detection to standalone HTTP(S)-served renders and metadata-only changes.
|
|
20
|
+
Checks pause in hidden tabs, do not overlap, time out, reject redirects and
|
|
21
|
+
require successful responses. A *New version available · Reload* chip leaves
|
|
22
|
+
unfinished input intact until the reader chooses Reload. `file://` pages do
|
|
23
|
+
not poll; existing `render --open` continues to watch and serve local changes.
|
|
24
|
+
Source: `src/lib/render.ts`, `src/cli.ts`.
|
|
25
|
+
|
|
26
|
+
- **`artifacts render` no longer publishes by default — `--publish` is the
|
|
27
|
+
opt-in.** Every render used to shell out to `agents artifacts share … --expire never`
|
|
28
|
+
and mint a permanent owner-only page on the managed share endpoint, so each plan
|
|
29
|
+
iteration (typically three to five renders) permanently consumed a slot of the
|
|
30
|
+
150-object managed quota; one handle hit `413 storage limit reached` inside two
|
|
31
|
+
weeks with 171 pages, most of them intermediate renders nobody would share. A
|
|
32
|
+
rendered page is a local review surface; a share link is a deliberate act. `render`
|
|
33
|
+
and the hidden `pdf` entry point now write the local file only, and print the
|
|
34
|
+
managed URL + QR only with `--publish`. `ARTIFACTS_NO_PUBLISH=1` still wins over
|
|
35
|
+
`--publish`; the old `--no-publish` is accepted (hidden) so a lagging hook copy keeps
|
|
36
|
+
working. The watch-loop re-render under `--open` was already publish-free.
|
|
37
|
+
Source: `src/cli.ts`, `src/cli.test.ts`.
|
|
38
|
+
|
|
39
|
+
- **Sections collapse independently, with state remembered per browser
|
|
40
|
+
(PHNX-3844).** Every `##`/`###` heading now carries a native disclosure
|
|
41
|
+
button (`aria-expanded`/`aria-controls`, keyboard-operable, visible focus)
|
|
42
|
+
after its title. Collapsing an `##` section takes its nested `###`
|
|
43
|
+
subsections with it; a `###` subsection collapses on its own and ends at the
|
|
44
|
+
next `###` or `##`, whichever comes first. Every section starts expanded and
|
|
45
|
+
the server never hides one — collapsing is entirely client-side, so a reader
|
|
46
|
+
with JavaScript disabled always sees the complete document, and printing
|
|
47
|
+
always shows everything regardless of on-screen state. A reader's collapsed
|
|
48
|
+
sections are saved per browser, per document (the same URL-and-title
|
|
49
|
+
identity the read counter and highlights already use — never synced to an
|
|
50
|
+
account), keyed by each heading's own id so the state survives a re-render of
|
|
51
|
+
the same file as long as its heading text is unchanged; a corrupt or
|
|
52
|
+
unavailable `localStorage` fails open to the fully expanded document instead
|
|
53
|
+
of erroring. Following a heading link, an in-page anchor, or a same-page
|
|
54
|
+
click back to an already-active link reopens every collapsed section between
|
|
55
|
+
the document root and the target, including a permalink `<a id="…">` placed
|
|
56
|
+
immediately before or after the heading it names. The contents rail grows a
|
|
57
|
+
**Collapse all** / **Expand all** pair once a document has more than one
|
|
58
|
+
section. Duplicate heading text (two sibling `### Overview` sections) keeps
|
|
59
|
+
its existing distinct-id behaviour, and each one collapses independently.
|
|
60
|
+
Source: `src/lib/section-collapse.ts` (new), `src/lib/render.ts`
|
|
61
|
+
(`wrapCollapsibleSections`, `findHeadingSpans`, the scroll-spy's now
|
|
62
|
+
visibility-aware active-section tracking).
|
|
63
|
+
|
|
64
|
+
- **Default Inter and JetBrains Mono are bundled and inlined (PHNX-3886).**
|
|
65
|
+
`artifacts render` named those families in CSS but did not ship the faces, so a
|
|
66
|
+
Linux box without `fc-match` / Inter produced HTML with zero `@font-face` and
|
|
67
|
+
the viewing browser fell through to system-ui. The package now carries latin
|
|
68
|
+
variable woff2 cuts and inlines them whenever `DESIGN.md` names Inter or
|
|
69
|
+
JetBrains Mono. A resolvable `fonts.files` path still wins; a CSS stack in
|
|
70
|
+
`fonts.body` (`Inter, system-ui, sans-serif`) uses the first family so it
|
|
71
|
+
still embeds Inter. `artifacts estimate` strips those inlined faces the same
|
|
72
|
+
way it already drops the recovery copy of the Markdown, so the authoring-token
|
|
73
|
+
table stays a comparison of agent-authored HTML. Source: `src/lib/fonts.ts`,
|
|
74
|
+
`src/lib/tokens.ts`, `fonts/`.
|
|
75
|
+
|
|
76
|
+
- **Hosted artifacts carry live review threads (PHNX-3835).** Selecting text on
|
|
77
|
+
a collaboration-enabled host now also offers **Comment**, which opens an
|
|
78
|
+
anchored thread in a right-side review rail with replies, resolve/reopen,
|
|
79
|
+
edit/delete on your own comments, and open/resolved filters; below 980px the
|
|
80
|
+
rail becomes a dismissible bottom sheet. A second reader sees every change
|
|
81
|
+
live over `EventSource`, and a reconnect replays what was missed exactly once
|
|
82
|
+
— deliveries are deduplicated by event cursor and an envelope at or before the
|
|
83
|
+
snapshot the client already loaded is ignored, so a full stream replay cannot
|
|
84
|
+
walk a resolved thread back to open. Threads carry the cursor they were
|
|
85
|
+
written at and never move backwards, so a slow write response overtaken by a
|
|
86
|
+
teammate's newer change cannot revert it. Mutations carry an `Idempotency-Key`
|
|
87
|
+
reused across retries, and a write that fails is rolled back visibly with the
|
|
88
|
+
draft text handed back rather than left on screen. The rendered HTML holds no
|
|
89
|
+
endpoint, token, or account id: the page asks its own origin over
|
|
90
|
+
`/__collab/*`, and when discovery is absent or refuses, `file://`, loopback,
|
|
91
|
+
and BYO shares keep their existing local highlight/note behaviour with no
|
|
92
|
+
collaboration chrome. Comments reuse the local highlight range vocabulary and
|
|
93
|
+
are keyed to a new `<meta name="artifacts-body-revision">` — a SHA-256 over
|
|
94
|
+
the artifact body alone, so a metadata-only re-render keeps every anchor — and
|
|
95
|
+
repaint only on an unambiguous anchor plus an exact quote match, otherwise
|
|
96
|
+
showing **From an earlier revision**. Source: `src/lib/collab.ts` (new),
|
|
97
|
+
`src/lib/reader-anchors.ts` (new — the range vocabulary, extracted so
|
|
98
|
+
highlights and threads share one selector format), `src/lib/highlights.ts`,
|
|
99
|
+
`src/lib/render.ts`.
|
|
5
100
|
- **Auto-publish is opt-in at the render funnel — no double links, no per-save
|
|
6
101
|
URLs.** `artifacts render`/`_pdf` publish the rendered artifact to a durable
|
|
7
102
|
private managed URL (with a terminal QR) by default; `--no-publish` /
|
package/README.md
CHANGED
|
@@ -38,10 +38,40 @@ artifacts new design # project-wide branding (DESIGN.md)
|
|
|
38
38
|
artifacts check plan.md # validate without rendering
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
Provenance (project, repository, branch, harness, agent, human, host, session, date) fills automatically from the current Git checkout and agent environment at render time; any value you declare in frontmatter wins. `project` is never invented: it auto-fills only when the checkout identifies a real project (a `~/.agents/projects/` entry, or the git remote's repository name), and stays empty — with a warning from `artifacts check` — when the file lives somewhere that says nothing about what it is about, like the durable artifact home.
|
|
41
|
+
Provenance (project, repository, branch, harness, agent, human, host, session, date) fills automatically from the current Git checkout and agent environment at render time; any value you declare in frontmatter wins. `project` is never invented: it auto-fills only when the checkout identifies a real project (a `~/.agents/projects/` entry, or the git remote's repository name), and stays empty — with a warning from `artifacts check` — when the file lives somewhere that says nothing about what it is about, like the durable artifact home.
|
|
42
|
+
|
|
43
|
+
**Authoring in the durable home (`~/.agents/artifacts/`) — set project, repository, and harness explicitly.** That directory is not a project checkout, so auto-fill has nothing to detect: `project` stays empty (with a warning) and there is no repository or agent context to read. Declare them in frontmatter so the render still identifies itself — an explicit `project` / `repository` / `harness` always wins and is used verbatim. When `project` is absent the renderer falls back to the repository's bare name, and the project links to `projectUrl` (HTTP(S) only) or, absent that, the repository's own GitHub page.
|
|
44
|
+
|
|
45
|
+
Additional frontmatter carries into the artifact header:
|
|
46
|
+
|
|
47
|
+
The built-in cover shows the creating harness's logo, a brand-colored vector
|
|
48
|
+
background, a linked project, and the title. The same mark becomes the tab's
|
|
49
|
+
favicon, embedded in the HTML for offline use. Known harness aliases resolve to
|
|
50
|
+
the same mark; unknown harnesses use a neutral cover and terminal glyph.
|
|
51
|
+
|
|
52
|
+
When `project` exactly matches a registered `agents projects` ID, the page uses
|
|
53
|
+
its `linear.name` as the readable label and its `linear.url` when available.
|
|
54
|
+
An explicit `projectUrl` wins, otherwise the repository is the link target.
|
|
55
|
+
IDs and authored names are never title-cased or stripped of dots/dashes.
|
|
56
|
+
The full project name wraps on the page; only its tab-title prefix is bounded
|
|
57
|
+
to 24 Unicode code points. Author from the subject checkout using
|
|
58
|
+
`artifacts new visual --project <id> --out <absolute-path>` to keep this context
|
|
59
|
+
when storing the source outside the checkout.
|
|
60
|
+
|
|
61
|
+
`artifacts new` records the real creation instant (except with `--blank`).
|
|
62
|
+
Precise `created`/`updated` timestamps display relative ages and exact-time
|
|
63
|
+
tooltips. Date-only values remain absolute. Without `updated`, the source
|
|
64
|
+
file's modification time is labeled **Source updated**. Opening or re-rendering
|
|
65
|
+
the page does not reset its creation time.
|
|
66
|
+
|
|
67
|
+
`render --open` already watches the source through the local preview server.
|
|
68
|
+
Updated previews and hosted renders offer **New version available · Reload**;
|
|
69
|
+
they never reload automatically beneath unfinished input. `--no-serve` opens
|
|
70
|
+
a static file snapshot, which cannot watch its source on its own.
|
|
42
71
|
|
|
43
72
|
```yaml
|
|
44
73
|
project: agents-cli
|
|
74
|
+
projectUrl: https://github.com/phnx-labs/agents-cli # optional; HTTP(S) only. Links the project name.
|
|
45
75
|
context: session context
|
|
46
76
|
header: Phoenix Labs / Engineering
|
|
47
77
|
footer: Internal planning artifact
|
|
@@ -54,7 +84,9 @@ agent: gpt-5
|
|
|
54
84
|
human: Ada Lovelace
|
|
55
85
|
host: yosemite-s1
|
|
56
86
|
session: fcd64597
|
|
57
|
-
date: "2026-08-03"
|
|
87
|
+
date: "2026-08-03" # date-only, absolute
|
|
88
|
+
created: "2026-08-01T09:00:00Z" # optional ISO 8601 — shown as "Created"
|
|
89
|
+
updated: "2026-08-03T14:30:00Z" # optional ISO 8601 — shown as "Updated"
|
|
58
90
|
facts:
|
|
59
91
|
- 3 delivery tracks
|
|
60
92
|
- 2 repositories
|
|
@@ -81,7 +113,7 @@ Six commands. Everything else is a flag on one of them.
|
|
|
81
113
|
| --- | --- |
|
|
82
114
|
| `artifacts new <plan\|report\|visual\|worksheet\|design> [--out file] [--project name] [--blank] [--stdout]` | Scaffolds an artifact and pre-fills detectable provenance. When the target lands under a committed `.agents/artifacts/` tree it pre-fills anonymized provenance instead (`human: author`, `host: fleet-worker`, no session id) — that directory is published. `project` is detected only when cwd is genuinely inside the project's own checkout (a known `~/.agents/projects/` entry or the git remote's repo name); inside the durable artifact home (`~/.agents/artifacts/`) detection stays empty rather than inventing a name — pass `--project` or fill the frontmatter, and `artifacts check` warns until you do. `--blank` leaves every field empty (an explicit `--project` still pins the project); `--stdout` prints the skeleton without writing; `design` writes a starter `DESIGN.md`; `worksheet` generates a `worksheet_id`. |
|
|
83
115
|
| `artifacts check file.md` | Validates frontmatter metadata, required sections, asset paths, and embedded HTML/SVG safety. |
|
|
84
|
-
| `artifacts render file.md [--out file] [--open] [--no-serve] [--
|
|
116
|
+
| `artifacts render file.md [--out file] [--open] [--no-serve] [--publish]` | Renders Markdown to self-contained HTML next to the source. Local by default: `--publish` additionally publishes it to a durable **private** managed URL and prints the URL plus a terminal QR (every render used to publish, which filled the managed quota with intermediate iterations; `ARTIFACTS_NO_PUBLISH=1` still overrides `--publish`, and the `--open` watch loop re-renders on save but never publishes). `--open` serves on 127.0.0.1, watches the Markdown, and shows it in your browser; `--no-serve` keeps file:// behavior. Embeds the Markdown source for recovery. |
|
|
85
117
|
| `artifacts answers <ws.md> [--from file.json] [--json] [--pending]` | Reads or merges a `worksheet`'s answers. No flag prints a filled/pending table; `--json` emits `id → {label, value, state}`; `--pending` filters to pending fields or worksheets; `--from` merges an exported answers file back into the `.md` (id-matched, dirty-only, atomic). A directory scans for worksheets and lists per-file pending counts. |
|
|
86
118
|
| `artifacts notes <file.md\|file.html> [--from sidecar.json] [--json]` | Reads the adjacent `<basename>.notes.json` review sidecar as a table or JSON, or imports an `artifacts.notes.v1` sidecar. |
|
|
87
119
|
| `artifacts share file.md [--slug slug]` | Renders Markdown when needed and publishes through the configured R2/Worker endpoint. The URL slug is derived from the artifact title (filename for title-less files); `--slug` overrides it. Re-sharing the same title updates the same URL. |
|
|
@@ -149,7 +181,10 @@ Layout numbers are pixels. They control the content measure, horizontal page pad
|
|
|
149
181
|
|
|
150
182
|
Optional `header` and `footer` frontmatter strings add document chrome to HTML and PDF without repeating those values in the Markdown body. The hero is work-first: `status` is a kicker badge, freeform `facts` are a quiet monoline, `links` render under a **Related** label as the only chip row, and provenance is one unlabeled line (`repository` · `branch` · optional `tracking` · combined harness/model display · `human` · `host` · `session` · `date`). An `owner/repo`-shaped `repository` value links to GitHub. Harness + model merge into one display name (e.g. `grok` + `grok-4.5` → **Grok 4.5**). The `human` field is seeded by `artifacts new` from the Git identity (`user.name`, falling back to the OS username) — except under a committed `.agents/artifacts/` tree, where it is seeded as `author` and no host or session is filled, because that directory is published.
|
|
151
183
|
|
|
152
|
-
|
|
184
|
+
The default families — **Inter** (body and display) and **JetBrains Mono**
|
|
185
|
+
(mono) — are bundled in the package and inlined as `@font-face` data URIs, so a
|
|
186
|
+
render is self-contained for type even on a machine that does not have those
|
|
187
|
+
faces installed. A `DESIGN.md` `fonts.files` path still wins when it resolves.
|
|
153
188
|
|
|
154
189
|
```yaml
|
|
155
190
|
fonts:
|
|
@@ -157,12 +192,12 @@ fonts:
|
|
|
157
192
|
mono: JetBrains Mono
|
|
158
193
|
display: Inter
|
|
159
194
|
files:
|
|
160
|
-
Inter: ./fonts/Inter.woff2
|
|
195
|
+
Inter: ./fonts/Inter.woff2 # optional override
|
|
161
196
|
```
|
|
162
197
|
|
|
163
|
-
Font paths resolve relative to the artifact
|
|
164
|
-
|
|
165
|
-
render` warns and emits a fallback stack.
|
|
198
|
+
Font paths resolve relative to the artifact. If an override path is missing, the
|
|
199
|
+
bundled face is used when the family is Inter or JetBrains Mono; otherwise
|
|
200
|
+
`artifacts render` warns and emits a fallback stack.
|
|
166
201
|
|
|
167
202
|
For fonts stored **outside** the project — a shared company font cache, say — add
|
|
168
203
|
the directory to `~/.artifacts/config.json` once. Every later `render` picks it up:
|
|
@@ -175,16 +210,16 @@ the directory to `~/.artifacts/config.json` once. Every later `render` picks it
|
|
|
175
210
|
|
|
176
211
|
## Token Estimate
|
|
177
212
|
|
|
178
|
-
`artifacts estimate` measures the Markdown source against equivalent self-contained HTML generated in memory. It excludes the compiler-only embedded recovery copy of the Markdown so
|
|
213
|
+
`artifacts estimate` measures the Markdown source against equivalent self-contained HTML generated in memory. It excludes the compiler-only embedded recovery copy of the Markdown and inlined `@font-face` data URIs so those payloads are not counted as agent-authored HTML. It uses the exact `o200k_base` tokenizer and names that encoding in its output; model-family token counts can differ.
|
|
179
214
|
|
|
180
215
|
The committed [representative plan](examples/plan.md) measures:
|
|
181
216
|
|
|
182
217
|
| Source | Tokens | Difference from HTML |
|
|
183
218
|
| --- | ---: | ---: |
|
|
184
|
-
| Markdown authored by the agent |
|
|
185
|
-
| Equivalent rendered HTML |
|
|
219
|
+
| Markdown authored by the agent | 2,391 | 22,637 fewer |
|
|
220
|
+
| Equivalent rendered HTML | 25,028 | baseline |
|
|
186
221
|
|
|
187
|
-
That example is
|
|
222
|
+
That example is a **90.4% authoring-token reduction** when the alternative is having the agent emit the same self-contained HTML. It includes complete metadata, ordinary Markdown, a table, embedded layout HTML, inline SVG, theme CSS, responsive rules, print rules, and the theme toggle. Run `artifacts estimate examples/plan.md` to reproduce it — the command is absent from `--help` but still runs.
|
|
188
223
|
|
|
189
224
|
## Links
|
|
190
225
|
|
|
@@ -212,18 +247,44 @@ Brand marks are bundled, so a known host needs no network. Unknown hosts fall ba
|
|
|
212
247
|
|
|
213
248
|
## Reading Surfaces
|
|
214
249
|
|
|
215
|
-
|
|
250
|
+
Five reader affordances are generated from the artifact itself. An agent writes nothing extra for any of them.
|
|
216
251
|
|
|
217
252
|
**References appendix.** Every outbound link in the body is collected into a numbered `References` section at the end — deduped, in order of first appearance, each row carrying the source's mark, its label, and its host. A bare URL lists under its short label (`PR #1914`), not the raw address. Writing your own `References`, `Sources`, `Bibliography`, or `Citations` heading suppresses the generated one.
|
|
218
253
|
|
|
219
254
|
**Contents rail.** The table of contents lists sections and their subsections. At viewports wider than 1380px it becomes a fixed side rail that tracks the section you are reading; below that it stays inline at the top with subsections hidden. Heading ids are unique even when two subsections share a title, so every rail entry addresses its own heading. A heading inside an embedded panel or figure is that block's caption and is deliberately left out of the rail.
|
|
220
255
|
|
|
256
|
+
**Collapsible sections.** Every `##`/`###` heading gets a small toggle after its title — a native `<button>` with `aria-expanded`/`aria-controls`, reachable and operable from the keyboard, with a visible focus ring. Collapsing an `##` section takes its `###` subsections with it; collapsing a `###` subsection leaves its parent and siblings alone. Everything starts expanded and stays that way for a reader with JavaScript disabled — collapsing is a pure client-side enhancement, never a server-side omission. A reader's choices are remembered per browser, per document (not synced to an account), and survive a re-render of the same file as long as a heading's text — and so its id — stays the same. Navigating to a heading, an in-page link, or an anchor tag placed right before or after a heading reopens every collapsed section on the way to it, including a same-page click back to a section you just re-collapsed. The contents rail adds **Collapse all** / **Expand all** once there is more than one section. Printing, and a corrupt or unavailable `localStorage`, both fail open to the full expanded document.
|
|
257
|
+
|
|
221
258
|
**Read count.** Each artifact keeps a per-browser read count in `localStorage`, shown in the document header (`first read`, then `2 reads`). It is scoped to the artifact's own URL and title, so two artifacts published under the same title do not share a counter. Nothing is sent anywhere.
|
|
222
259
|
|
|
223
|
-
**Reader review.** Selecting text always copies it and opens **Copied · Highlight · Note** without clearing the browser selection. **Highlight** explicitly saves the range. **Note** saves it and opens a textarea; clicking an existing highlight opens the same quote/note popover with Copy and Remove. Local state uses the artifact's URL-and-title identity. With `render --open`, notes also autosave after roughly 600 ms to `<basename>.notes.json` beside the Markdown,
|
|
260
|
+
**Reader review.** Selecting text always copies it and opens **Copied · Highlight · Note** without clearing the browser selection. **Highlight** explicitly saves the range. **Note** saves it and opens a textarea; clicking an existing highlight opens the same quote/note popover with Copy and Remove. Local state uses the artifact's URL-and-title identity. With `render --open`, notes also autosave after roughly 600 ms to `<basename>.notes.json` beside the Markdown, and a re-render surfaces a **New version available · Reload** chip. The chip is driven by a single canonical `<meta name="artifacts-content-hash">` marker — a hash over the whole rendered document, so a metadata-only change (a new `updated` stamp, a changed project) is noticed too. The renderer emits that marker itself, so a hosted standalone share detects updates over HTTP(S) the same way the loopback `--open` watch does; the poll runs only over HTTP(S), trusts only a successful same-origin response, and pauses while the tab is hidden. It stays **manual** — the chip appears rather than reloading under the reader — so an unsaved worksheet field or scroll position survives until you choose to reload. A `file://` page has no server to re-serve it, so on-disk changes cannot be watched there and the chip stays hidden. Static/shared pages never post feedback off-box.
|
|
224
261
|
|
|
225
262
|
Themes already follow the reader's system preference and switch live when the OS theme changes, unless the reader picks one explicitly with the in-page toggle.
|
|
226
263
|
|
|
264
|
+
## Hosted Review Threads
|
|
265
|
+
|
|
266
|
+
On a host that serves collaboration, the same artifact also carries human-to-human review threads: select a sentence, press **Comment**, and the thread appears in a right-side rail with replies, resolve/reopen, and edit/delete on your own comments. A second reader sees every change live, without reloading. Below 980px the rail becomes a dismissible bottom sheet instead of a squeezed column. Markers and thread controls are keyboard reachable — <kbd>Enter</kbd> or <kbd>Space</kbd> on a marker opens its thread, <kbd>Escape</kbd> closes the rail and returns focus to the marker — and arriving comments are announced through an `aria-live` region.
|
|
267
|
+
|
|
268
|
+
Nothing about the host is baked into the file. The page asks its **own origin** whether collaboration exists:
|
|
269
|
+
|
|
270
|
+
```
|
|
271
|
+
GET /__collab/context?share=<encoded normalized path>
|
|
272
|
+
GET /__collab/threads?share=<path>[&after=<cursor>]
|
|
273
|
+
POST /__collab/threads { share, anchor, body }
|
|
274
|
+
POST /__collab/threads/:threadId/replies { share, body }
|
|
275
|
+
PATCH /__collab/comments/:commentId { share, body } | { share, deleted: true }
|
|
276
|
+
PATCH /__collab/threads/:threadId { share, status: "open" | "resolved" }
|
|
277
|
+
GET /__collab/events?share=<path> (text/event-stream)
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
There is no endpoint, token, or account id in the rendered HTML. If discovery is absent or answers anything other than an explicit read grant, the page stays exactly what it was — `file://`, a loopback dev server, and a BYO bucket keep their local highlights and notes and show no collaboration chrome at all. Mutations carry an `Idempotency-Key` that is reused across retries, and the client deduplicates stream and catch-up deliveries by event cursor, so a reconnect replays a missed change exactly once.
|
|
281
|
+
|
|
282
|
+
Every response and every event carries a whole thread, and **each thread carries the `cursor` it was last written at**. That is what makes ordering safe without a lock: the client applies a snapshot only when its cursor is newer than the one it already holds for that thread, so a slow write response overtaken by a teammate's newer change cannot revert it.
|
|
283
|
+
|
|
284
|
+
**Anchors and revisions.** A comment stores the same range vocabulary local highlights use — `{ revision, quote, section, start: { anchor, offset }, end: { anchor, offset } }`. The canonical revision is `<meta name="artifacts-body-revision">`: the SHA-256 of the `<article class="artifact-body">` inner HTML and nothing else, so re-rendering with a new `updated` date, session id, or header does not invalidate a single comment. Renderer, Worker, and viewer all read that one value rather than each deriving their own. A thread repaints only when both anchors resolve to exactly one block each *and* the quoted text still matches; otherwise nothing is painted and the thread is listed as **From an earlier revision** rather than decorating the wrong sentence.
|
|
285
|
+
|
|
286
|
+
**Visibility.** The rail labels a share **Only me**, **Company**, **Anyone with link**, or **Public**, mapped from the context's `me`, `org`, `unlisted`/`private`, and `public`. A company share is never shown as public, and an unrecognized visibility is left unlabeled rather than guessed.
|
|
287
|
+
|
|
227
288
|
## Embedded HTML And SVG
|
|
228
289
|
|
|
229
290
|
Use Markdown for prose, lists, tables, and code. When Markdown cannot express a figure or comparison, write semantic HTML directly in the Markdown file. The renderer sanitizes it, applies the active `DESIGN.md` theme, and keeps the output responsive.
|
package/dist/cli.js
CHANGED
|
@@ -3,7 +3,6 @@ import { mkdirSync, readFileSync, watch, writeFileSync } from 'node:fs';
|
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
4
|
import { basename, dirname, join, resolve } from 'node:path';
|
|
5
5
|
import { spawn, spawnSync } from 'node:child_process';
|
|
6
|
-
import { createHash } from 'node:crypto';
|
|
7
6
|
import { createServer } from 'node:http';
|
|
8
7
|
import { Command, Option } from 'commander';
|
|
9
8
|
import chalk from 'chalk';
|
|
@@ -140,10 +139,12 @@ export async function serveArtifact(source, out, options = {}) {
|
|
|
140
139
|
response.writeHead(404).end('not found');
|
|
141
140
|
return;
|
|
142
141
|
}
|
|
142
|
+
// The rendered file already carries the canonical <meta name="artifacts-content-hash">
|
|
143
|
+
// (render.ts hashes the whole document at render time), so the reload poll
|
|
144
|
+
// compares that marker directly. Serve the bytes as-is; a save re-renders the
|
|
145
|
+
// file with a fresh marker and the next poll sees the change.
|
|
143
146
|
const html = readFileSync(outPath, 'utf8');
|
|
144
|
-
|
|
145
|
-
const stamped = html.replace('</head>', `<meta name="artifacts-content-hash" content="${contentHash}">\n</head>`);
|
|
146
|
-
response.writeHead(200, { 'content-type': 'text/html; charset=utf-8', 'cache-control': 'no-store' }).end(stamped);
|
|
147
|
+
response.writeHead(200, { 'content-type': 'text/html; charset=utf-8', 'cache-control': 'no-store' }).end(html);
|
|
147
148
|
});
|
|
148
149
|
await new Promise((ready, reject) => {
|
|
149
150
|
server.once('error', reject);
|
|
@@ -167,7 +168,8 @@ program
|
|
|
167
168
|
Happy path:
|
|
168
169
|
1. artifacts new plan --out <file>.md # kind + title; plans also need surface;
|
|
169
170
|
# provenance auto-fills
|
|
170
|
-
2. artifacts render <file>.md --open #
|
|
171
|
+
2. artifacts render <file>.md --open # <file>.html beside the source, opened locally
|
|
172
|
+
artifacts render <file>.md --publish # ...plus a private managed URL + QR (opt-in)
|
|
171
173
|
|
|
172
174
|
Run artifacts <command> --help for details.
|
|
173
175
|
`);
|
|
@@ -221,12 +223,20 @@ program
|
|
|
221
223
|
});
|
|
222
224
|
program
|
|
223
225
|
.command('render')
|
|
224
|
-
.description('Render Markdown to HTML
|
|
226
|
+
.description('Render Markdown to HTML; --publish also mints a private managed URL.')
|
|
225
227
|
.argument('<file.md|file.html>')
|
|
226
228
|
.option('--out <file>', 'output file')
|
|
227
229
|
.option('--open', 'open the rendered HTML in your default browser')
|
|
228
230
|
.option('--no-serve', 'open the rendered file:// URL without watching or notes sync')
|
|
229
|
-
.
|
|
231
|
+
// Publishing is OPT-IN. Every render used to mint a permanent (--expire never)
|
|
232
|
+
// owner-only share object on the managed endpoint, so each plan iteration —
|
|
233
|
+
// typically three to five renders per plan — permanently consumed a slot of
|
|
234
|
+
// the 150-object managed quota and the endpoint hit 413 within two weeks.
|
|
235
|
+
// A rendered page is a local review surface; a share link is a deliberate act.
|
|
236
|
+
.option('--publish', 'also publish a private managed URL (owner-only, permanent)')
|
|
237
|
+
// Accepted so a lagging hook copy that still passes the old default-off flag
|
|
238
|
+
// gets the same (now default) behavior instead of a Commander parse error.
|
|
239
|
+
.addOption(new Option('--no-publish', 'deprecated; publishing is already off by default').hideHelp())
|
|
230
240
|
// Deprecated in 0.3.0, removed in 0.4.0. A deployed ExitPlanMode hook copy may
|
|
231
241
|
// still print `artifacts render <file> --format html`, and Commander errors on
|
|
232
242
|
// unknown options — so these exist to hand a lagging caller a migration
|
|
@@ -260,7 +270,10 @@ Notes:
|
|
|
260
270
|
console.error(`${chalk.yellow('warning')} --format is deprecated and ignored; render is HTML-only. It is removed in 0.4.0.`);
|
|
261
271
|
}
|
|
262
272
|
const out = opts.out || defaultOutFor(file, '.html');
|
|
263
|
-
|
|
273
|
+
// With both --publish and the hidden --no-publish declared, Commander leaves
|
|
274
|
+
// the value undefined when neither is passed — only an explicit --publish is true.
|
|
275
|
+
const publish = opts.publish === true;
|
|
276
|
+
const result = await compileArtifact(file, out, { publish });
|
|
264
277
|
printDiagnostics(result.diagnostics);
|
|
265
278
|
if (result.diagnostics.some((diagnostic) => diagnostic.level === 'error')) {
|
|
266
279
|
process.exitCode = 1;
|
|
@@ -273,7 +286,7 @@ Notes:
|
|
|
273
286
|
console.log(chalk.bold('opened locally'));
|
|
274
287
|
}
|
|
275
288
|
else {
|
|
276
|
-
const served = await serveArtifact(file, out, { publish
|
|
289
|
+
const served = await serveArtifact(file, out, { publish });
|
|
277
290
|
openPath(served.url);
|
|
278
291
|
console.log(chalk.bold('served locally'));
|
|
279
292
|
}
|
|
@@ -298,7 +311,8 @@ program
|
|
|
298
311
|
.argument('<file.md|file.html>')
|
|
299
312
|
.requiredOption('--out <file>', 'output PDF file')
|
|
300
313
|
.option('--layout <layout>', 'PDF layout: document or poster', parsePdfLayout, 'document')
|
|
301
|
-
.option('--
|
|
314
|
+
.option('--publish', 'also publish the PDF to a private managed URL (owner-only, permanent)')
|
|
315
|
+
.addOption(new Option('--no-publish', 'deprecated; publishing is already off by default').hideHelp())
|
|
302
316
|
.action(async (file, opts) => {
|
|
303
317
|
const outHtml = /\.md$/i.test(file) ? defaultOutFor(file, '.html') : file;
|
|
304
318
|
if (/\.md$/i.test(file)) {
|
|
@@ -310,7 +324,7 @@ program
|
|
|
310
324
|
}
|
|
311
325
|
}
|
|
312
326
|
await exportPdf(outHtml, opts.out, { layout: opts.layout });
|
|
313
|
-
const published = await publishArtifact(opts.out, { publish: opts.publish });
|
|
327
|
+
const published = await publishArtifact(opts.out, { publish: opts.publish === true });
|
|
314
328
|
printDiagnostics(published.diagnostics);
|
|
315
329
|
await printArtifactResult(published, opts.out);
|
|
316
330
|
});
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAkB,MAAM,cAAc,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAA0C,MAAM,iBAAiB,CAAC;AAC1H,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACpH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,g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C;IACjG,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC"}
|
package/dist/commands/new.js
CHANGED
|
@@ -49,6 +49,8 @@ export function runNewCommand(kind, opts) {
|
|
|
49
49
|
// (~/.agents/artifacts/) instead of the repo they describe, detection comes
|
|
50
50
|
// back empty and this flag is how the real project gets named.
|
|
51
51
|
const context = opts.blank ? {} : detected;
|
|
52
|
+
if (!opts.blank)
|
|
53
|
+
context.created = new Date().toISOString();
|
|
52
54
|
if (opts.project?.trim())
|
|
53
55
|
context.project = opts.project.trim();
|
|
54
56
|
const content = templateFor(artifactKind, context);
|
package/dist/commands/new.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"new.js","sourceRoot":"","sources":["../../src/commands/new.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEpD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,cAAc,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAwB,MAAM,qBAAqB,CAAC;AAUlM,MAAM,UAAU,aAAa,CAAC,IAAY,EAAE,IAAgB;IAC1D,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;IAC9E,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,GAAG;QAAE,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;IACxF,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;IAE5F,2EAA2E;IAC3E,wEAAwE;IACxE,MAAM,aAAa,GAAG,CAAC,GAAW,E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