@phnx-labs/artifacts-cli 0.6.1 → 0.8.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/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ ## 0.8.0 — 2026-10-06
6
+
7
+ - **`artifacts comments` (PHNX-3835, Phase 2).** Agents read, answer and resolve
8
+ a shared page's review threads from the CLI: `artifacts comments <file|url>
9
+ [--open|--resolved|--all] [--after <cursor>] [--json]`, `comments reply
10
+ <file|url> <thread> <text>` (or `--body-file`), and `comments resolve|reopen`.
11
+ It calls the page's own `/__collab/*` routes with your Phoenix login, labelled
12
+ as your agent (`AGENTS_AGENT_NAME`, else `AGENT_HARNESS`, else `agent`), with
13
+ an `Idempotency-Key` on every write. A file resolves to its URL through your
14
+ share listing. No server change.
15
+ - Thread text an agent reads in the terminal is inert: comment bodies, quotes,
16
+ section and author names, and server error details drop control characters
17
+ (newlines kept), DEL, and bidirectional and line separators before printing.
18
+ `--json` keeps thread data raw. A write that hits a network error or 5xx is
19
+ retried once with the same `Idempotency-Key`, which the server uses to apply
20
+ it only once.
21
+
22
+ ## 0.7.0 — 2026-10-06
23
+
24
+ - **Hosted review threads through the share Worker (PHNX-3835, Phase 1).** With
25
+ `COLLAB_API_BASE` and `COLLAB_SERVICE_TOKEN` bound, the Worker answers
26
+ `/__collab/*`. It answers context itself, enforces read by the page's own
27
+ visibility and write by its comment policy, and forwards everything else to
28
+ Rush Cloud's `/internal/artifact-collab` with its service token, relaying event
29
+ streams as they arrive. Publishing stamps the page's body revision and
30
+ registers the share. A visibility or policy change re-registers it. A delete
31
+ purges its threads, and a new page at a free address clears any left behind,
32
+ so a reused slug never inherits old comments. With either value unbound
33
+ nothing changes, and `/__collab` still `404`s.
34
+ - `artifacts share --comments off|audience|signed-in` sets who may comment. The
35
+ default is `audience` for `me`/`org`, `signed-in` for unlisted and protected
36
+ links, and `off` for public pages. A page that published but could not be
37
+ registered prints a warning with the reason.
38
+ - `artifacts share setup|update --collab-api <origin>` binds both review-thread
39
+ values, reading the token from `ARTIFACT_COLLAB_SERVICE_TOKEN`. Later updates
40
+ keep an existing pair.
41
+ - Only the share owner's Phoenix bearer may comment as an agent
42
+ (`x-collab-actor-kind: agent`). Browser cookies cannot. Review bylines use the
43
+ Phoenix account name, now carried in the share sign-in cookie.
44
+ - The share page's attribution bar no longer covers the review rail's header.
45
+
3
46
  ## 0.6.1 — 2026-10-05
4
47
 
5
48
  - Add a runnable gallery for the five reusable components, including their input