@artis-lab/cli 0.12.0 → 0.13.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 CHANGED
@@ -21,8 +21,8 @@ Requires Node.js 20 or newer. Upgrade with
21
21
  ## Quick start
22
22
 
23
23
  Publishing requires authentication. `artis login` runs a device-code flow: it
24
- opens a browser for approval and stores the resulting API key at
25
- `~/.artis/config.json`.
24
+ opens a browser for approval and stores the resulting OAuth tokens at
25
+ `~/.artis/config.json`, refreshing them as they expire.
26
26
 
27
27
  ```bash
28
28
  artis login
@@ -42,7 +42,6 @@ Defaults:
42
42
  - Host: `--host`, then `ARTIS_URL`, then saved config, then
43
43
  `https://artis.xiispace.eu.org`
44
44
  - `visibility=unlisted`
45
- - `kind=custom-html`
46
45
  - `author=Artis CLI`
47
46
 
48
47
  ## Collaboration commands
@@ -60,6 +59,18 @@ artis annotate 4kq9Zt2LmX8vRbP3nWc7Hy --comment "Tighten this heading" --quote "
60
59
  artis reply annotation-123 --comment "Fixed in revision 2."
61
60
  ```
62
61
 
62
+ ## Assets
63
+
64
+ Images, fonts, media and other files an artifact keeps across revisions
65
+ (ADR 0023). A page shows one at `/_blob/<id>` on its own host.
66
+
67
+ ```bash
68
+ artis asset upload 4kq9Zt2LmX8vRbP3nWc7Hy chart.png # prints the asset, with its id and url
69
+ artis asset list 4kq9Zt2LmX8vRbP3nWc7Hy
70
+ artis asset get 4kq9Zt2LmX8vRbP3nWc7Hy <asset-id> --output chart.png
71
+ artis asset rm 4kq9Zt2LmX8vRbP3nWc7Hy <asset-id>
72
+ ```
73
+
63
74
  ## Check a page before publishing
64
75
 
65
76
  ```bash
@@ -67,18 +78,20 @@ artis verify artifact.html # or a published artifact: artis verify 4kq9Zt
67
78
  ```
68
79
 
69
80
  `verify` renders the page in your system Chrome (or Edge) at 1280 and 390 px
70
- in light and dark themes, served with the same Content-Security-Policy as
71
- Artis, and reports horizontal overflow, clipped SVG, console errors and CSP
81
+ in light and dark themes, served the way Artis serves it (on an artifact host
82
+ of its own, `<uuid>.localhost`, with the same Content-Security-Policy), and
83
+ reports horizontal overflow, clipped SVG, console errors and CSP
72
84
  violations. It exits 8 when it finds any. It needs the optional
73
85
  `playwright-core` dependency (installed with the CLI by default, about
74
86
  10 MB and no browser binaries) and a
75
87
  Chromium-based browser; set `ARTIS_CHROME_PATH` to use a specific one.
76
88
 
77
- A slide deck is checked as its type: `artis verify deck.html --type slides`
78
- (a published deck's revision already names its type). It first runs the
79
- slides format check and lists each issue with its level, rule, slide and
80
- line: errors exit 8, hints are reported only. It then serves the deck with
81
- the slides runtime and the Google Fonts CSP a typed revision gets, in light
89
+ A slide deck is a directory of files, checked as its type:
90
+ `artis verify --root deck --type slides` (a published deck's revision already
91
+ names its type). It first runs the slides format check and lists each issue
92
+ with its level, rule, slide, file and line: errors exit 8, hints are reported
93
+ only. It then serves the files at the paths Artis serves them at, with the
94
+ slides entry page, runtime and the Google Fonts CSP a typed revision gets, in light
82
95
  and dark themes, and reports every slide whose content runs past its
83
96
  1920×1080 (4:3: 1440×1080) canvas. The server never runs these checks, so
84
97
  run `verify` before every publish and revise.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artis-lab/cli",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Agent-first CLI for creating, sharing and maintaining artifacts on Artis, an open-source, self-hostable place for what AI agents build.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
package/src/bin.js CHANGED
@@ -1,17 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runArtisCli
4
- } from "./lib/chunk-YXGHBN47.js";
5
- import "./lib/chunk-OBEJTKCR.js";
6
- import "./lib/chunk-YAZGW7Y4.js";
4
+ } from "./lib/chunk-2M77TQDV.js";
5
+ import "./lib/chunk-JYMG2Y6C.js";
6
+ import "./lib/chunk-JYLA7E3H.js";
7
+ import "./lib/chunk-QZFIUZXT.js";
7
8
  import "./lib/chunk-IZYFOV2K.js";
8
9
  import "./lib/chunk-U3ZF6SRR.js";
9
- import "./lib/chunk-QDQQASRY.js";
10
+ import "./lib/chunk-46DMRA3V.js";
11
+ import "./lib/chunk-MEPQKMK5.js";
10
12
  import {
11
13
  exitCodeFor
12
14
  } from "./lib/chunk-H32QAUSA.js";
13
- import "./lib/chunk-KY47KP5E.js";
14
- import "./lib/chunk-QNS7GLAA.js";
15
+ import "./lib/chunk-43WVFZLO.js";
15
16
 
16
17
  // packages/cli/src/bin.ts
17
18
  runArtisCli().catch((error) => {
package/src/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  import {
2
2
  assertSafeLoginUrl,
3
+ assetFromCli,
4
+ capabilitiesFromCli,
3
5
  commands,
4
6
  createAnnotationFromCli,
5
7
  dataFromCli,
@@ -8,7 +10,6 @@ import {
8
10
  getArtifactFeedbackFromCli,
9
11
  getArtifactFilesFromCli,
10
12
  getArtifactFromCli,
11
- getArtifactHtmlFromCli,
12
13
  getCliHelp,
13
14
  guidelinesFromCli,
14
15
  listArtifactsFromCli,
@@ -25,22 +26,25 @@ import {
25
26
  verifyFromCli,
26
27
  watchArtifactFromCli,
27
28
  whoamiFromCli
28
- } from "./lib/chunk-YXGHBN47.js";
29
+ } from "./lib/chunk-2M77TQDV.js";
30
+ import "./lib/chunk-JYMG2Y6C.js";
29
31
  import {
30
32
  installSkillFromCli
31
- } from "./lib/chunk-OBEJTKCR.js";
32
- import "./lib/chunk-YAZGW7Y4.js";
33
+ } from "./lib/chunk-JYLA7E3H.js";
34
+ import "./lib/chunk-QZFIUZXT.js";
33
35
  import {
34
36
  artisCliVersion
35
37
  } from "./lib/chunk-IZYFOV2K.js";
36
38
  import "./lib/chunk-U3ZF6SRR.js";
37
- import "./lib/chunk-QDQQASRY.js";
39
+ import "./lib/chunk-46DMRA3V.js";
40
+ import "./lib/chunk-MEPQKMK5.js";
38
41
  import "./lib/chunk-H32QAUSA.js";
39
- import "./lib/chunk-KY47KP5E.js";
40
- import "./lib/chunk-QNS7GLAA.js";
42
+ import "./lib/chunk-43WVFZLO.js";
41
43
  export {
42
44
  artisCliVersion,
43
45
  assertSafeLoginUrl,
46
+ assetFromCli,
47
+ capabilitiesFromCli,
44
48
  commands,
45
49
  createAnnotationFromCli,
46
50
  dataFromCli,
@@ -49,7 +53,6 @@ export {
49
53
  getArtifactFeedbackFromCli,
50
54
  getArtifactFilesFromCli,
51
55
  getArtifactFromCli,
52
- getArtifactHtmlFromCli,
53
56
  getCliHelp,
54
57
  guidelinesFromCli,
55
58
  installSkillFromCli,