@artis-lab/cli 0.14.0 → 0.16.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 +28 -21
- package/package.json +3 -7
- package/src/bin.js +13 -4
- package/src/lib/app.js +13 -4
- package/src/lib/chunk-2GXGXTAO.js +1229 -0
- package/src/lib/{chunk-CT5TD6L2.js → chunk-2LRPXCLL.js} +24 -47
- package/src/lib/chunk-4O5BCFCD.js +60 -0
- package/src/lib/chunk-6PK46UOP.js +1804 -0
- package/src/lib/{chunk-MEPQKMK5.js → chunk-FSJVBXCW.js} +4 -32
- package/src/lib/{chunk-H32QAUSA.js → chunk-HUWOFEEU.js} +7 -0
- package/src/lib/chunk-I5P3FLKO.js +929 -0
- package/src/lib/chunk-IKQ5U3DH.js +146 -0
- package/src/lib/chunk-XZYT3B5O.js +113 -0
- package/src/lib/cli.js +87 -61
- package/src/lib/commands.js +25 -0
- package/src/lib/exit-codes.js +5 -3
- package/src/lib/files.js +3 -2
- package/src/lib/next-actions.js +12 -5
- package/src/lib/skill-install.js +9 -4
- package/src/lib/verify.js +2 -3
- package/src/bin.d.ts +0 -2
- package/src/index.d.ts +0 -1
- package/src/index.js +0 -76
- package/src/lib/app.d.ts +0 -3
- package/src/lib/args.d.ts +0 -4
- package/src/lib/args.js +0 -12
- package/src/lib/chunk-CCCATRMP.js +0 -591
- package/src/lib/chunk-KJV7R7DE.js +0 -82
- package/src/lib/chunk-PG7WDW5F.js +0 -2420
- package/src/lib/chunk-Q5KBGVKT.js +0 -155
- package/src/lib/chunk-QZFIUZXT.js +0 -10954
- package/src/lib/cli.d.ts +0 -147
- package/src/lib/config.d.ts +0 -50
- package/src/lib/exit-codes.d.ts +0 -28
- package/src/lib/files.d.ts +0 -19
- package/src/lib/next-actions.d.ts +0 -13
- package/src/lib/oauth.d.ts +0 -45
- package/src/lib/revision-bases.d.ts +0 -9
- package/src/lib/skill-install.d.ts +0 -50
- package/src/lib/verify.d.ts +0 -152
- package/src/lib/version.d.ts +0 -9
package/README.md
CHANGED
|
@@ -6,8 +6,8 @@ for what AI agents build.
|
|
|
6
6
|
|
|
7
7
|
Server commands default to the hosted instance at
|
|
8
8
|
<https://artis.xiispace.eu.org>. Artis is also self-hostable — point the CLI at
|
|
9
|
-
your own deployment
|
|
10
|
-
|
|
9
|
+
your own deployment by signing in to it (`artis login --host <url>`); every
|
|
10
|
+
other command then uses that server until you log in to another.
|
|
11
11
|
|
|
12
12
|
## Install
|
|
13
13
|
|
|
@@ -30,17 +30,20 @@ artis whoami
|
|
|
30
30
|
artis publish artifact.html
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
Against a self-hosted deployment,
|
|
34
|
-
|
|
33
|
+
Against a self-hosted deployment, sign in to it once; the commands after
|
|
34
|
+
that use it:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
artis
|
|
37
|
+
artis login --host https://artis.example.com
|
|
38
|
+
artis publish artifact.html
|
|
38
39
|
```
|
|
39
40
|
|
|
41
|
+
Only `login` and `whoami` take `--host` (alias `--url`).
|
|
42
|
+
|
|
40
43
|
Defaults:
|
|
41
44
|
|
|
42
|
-
- Host:
|
|
43
|
-
`https://artis.xiispace.eu.org`
|
|
45
|
+
- Host: the server `artis login` saved last, then
|
|
46
|
+
`https://artis.xiispace.eu.org` (`login` and `whoami`: `--host` first)
|
|
44
47
|
- `visibility=unlisted`
|
|
45
48
|
- `author=Artis CLI`
|
|
46
49
|
|
|
@@ -86,13 +89,16 @@ violations. It exits 8 when it finds any. It needs the optional
|
|
|
86
89
|
10 MB and no browser binaries) and a
|
|
87
90
|
Chromium-based browser; set `ARTIS_CHROME_PATH` to use a specific one.
|
|
88
91
|
|
|
89
|
-
A slide deck is a directory of files,
|
|
90
|
-
`artis verify --root deck --type slides` (a published
|
|
91
|
-
names its type).
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
A slide deck, or the source of any installed Type, is a directory of files,
|
|
93
|
+
checked as its type: `artis verify --root deck --type slides` (a published
|
|
94
|
+
revision already names its type). The CLI bundles no Type: it reads the
|
|
95
|
+
Type's package (entry page, runtime and format check) from the server
|
|
96
|
+
`artis login` signed in to. It first runs the format check, in the browser
|
|
97
|
+
with the network off, and lists each issue with its level, rule, file and
|
|
98
|
+
line: errors exit 8, hints are reported only. It then serves the files at the
|
|
99
|
+
paths Artis serves them at, with the entry page, runtime and the Google Fonts
|
|
100
|
+
CSP the Type gets, in light and dark themes, adds the issues the runtime
|
|
101
|
+
prints, and for a deck reports every slide whose content runs past its
|
|
96
102
|
1920×1080 (4:3: 1440×1080) canvas. The server never runs these checks, so
|
|
97
103
|
run `verify` before every publish and revise.
|
|
98
104
|
|
|
@@ -103,9 +109,13 @@ artis -h
|
|
|
103
109
|
artis artifact -h
|
|
104
110
|
artis artifact files -h
|
|
105
111
|
artis help data set
|
|
106
|
-
artis help --all #
|
|
112
|
+
artis help --all # every command and flag on one page
|
|
107
113
|
```
|
|
108
114
|
|
|
115
|
+
Each command's flags and arguments are declared once, in the command tree
|
|
116
|
+
(`src/lib/commands.ts`): parsing, validation, `-h` at every level and
|
|
117
|
+
`help --all` all come from it.
|
|
118
|
+
|
|
109
119
|
The CLI prints concise suggested next actions to stderr after publish, revise
|
|
110
120
|
and feedback when applicable (e.g. inspect files when there are open review
|
|
111
121
|
threads, or watch from the returned cursor when there are none). They are optional, not executed automatically. Existing
|
|
@@ -153,9 +163,6 @@ few trivial helpers are inlined rather than imported so nothing resolves the
|
|
|
153
163
|
workspace-only package at runtime. Keep it that way — a runtime import would
|
|
154
164
|
break every installed copy.
|
|
155
165
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
declaration emit leaks the specifier as soon as an sdk-typed symbol reaches an
|
|
160
|
-
_exported_ declaration — which is why `CliArtifactVisibility` is re-declared
|
|
161
|
-
locally and `publishArtifactFromCli` has an explicit return type.
|
|
166
|
+
`npm run test:cli` enforces that rule, not convention: it runs from `dist/`,
|
|
167
|
+
and asserts that no built file imports an `@artis/*` package. The package is
|
|
168
|
+
a command only (`bin`): it exports no library and ships no declarations.
|
package/package.json
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artis-lab/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.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
|
-
"main": "./src/index.js",
|
|
7
|
-
"types": "./src/index.d.ts",
|
|
8
6
|
"bin": {
|
|
9
7
|
"artis": "./src/bin.js"
|
|
10
8
|
},
|
|
11
9
|
"files": [
|
|
12
10
|
"src/**/*.js",
|
|
13
|
-
"src/**/*.d.ts",
|
|
14
11
|
"README.md",
|
|
15
12
|
"LICENSE"
|
|
16
13
|
],
|
|
@@ -21,7 +18,7 @@
|
|
|
21
18
|
"access": "public"
|
|
22
19
|
},
|
|
23
20
|
"scripts": {
|
|
24
|
-
"prepublishOnly": "node -e \"require('node:fs').existsSync('src/
|
|
21
|
+
"prepublishOnly": "node -e \"require('node:fs').existsSync('src/bin.js') || (console.error('Publish the build output: npm run publish:cli'), process.exit(1))\""
|
|
25
22
|
},
|
|
26
23
|
"repository": {
|
|
27
24
|
"type": "git",
|
|
@@ -51,7 +48,6 @@
|
|
|
51
48
|
"devDependencies": {
|
|
52
49
|
"@artis/api-contract": "0.0.1",
|
|
53
50
|
"@artis/sdk": "0.0.1",
|
|
54
|
-
"@artis/slides-format": "0.0.1"
|
|
55
|
-
"@artis/types-slides": "0.0.1"
|
|
51
|
+
"@artis/slides-format": "0.0.1"
|
|
56
52
|
}
|
|
57
53
|
}
|
package/src/bin.js
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runAgentCli
|
|
4
|
-
} from "./lib/chunk-
|
|
5
|
-
import "./lib/chunk-
|
|
6
|
-
import "./lib/chunk-
|
|
4
|
+
} from "./lib/chunk-XZYT3B5O.js";
|
|
5
|
+
import "./lib/chunk-2GXGXTAO.js";
|
|
6
|
+
import "./lib/chunk-I5P3FLKO.js";
|
|
7
|
+
import "./lib/chunk-6PK46UOP.js";
|
|
8
|
+
import "./lib/chunk-43WVFZLO.js";
|
|
9
|
+
import "./lib/chunk-JYMG2Y6C.js";
|
|
10
|
+
import "./lib/chunk-2LRPXCLL.js";
|
|
11
|
+
import "./lib/chunk-IZYFOV2K.js";
|
|
12
|
+
import "./lib/chunk-46DMRA3V.js";
|
|
13
|
+
import "./lib/chunk-FSJVBXCW.js";
|
|
14
|
+
import "./lib/chunk-4O5BCFCD.js";
|
|
15
|
+
import "./lib/chunk-IKQ5U3DH.js";
|
|
7
16
|
import {
|
|
8
17
|
exitCodeFor
|
|
9
|
-
} from "./lib/chunk-
|
|
18
|
+
} from "./lib/chunk-HUWOFEEU.js";
|
|
10
19
|
|
|
11
20
|
// packages/cli/src/bin.ts
|
|
12
21
|
runAgentCli().catch((error) => {
|
package/src/lib/app.js
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runAgentCli
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-XZYT3B5O.js";
|
|
4
|
+
import "./chunk-2GXGXTAO.js";
|
|
5
|
+
import "./chunk-I5P3FLKO.js";
|
|
6
|
+
import "./chunk-6PK46UOP.js";
|
|
7
|
+
import "./chunk-43WVFZLO.js";
|
|
8
|
+
import "./chunk-JYMG2Y6C.js";
|
|
9
|
+
import "./chunk-2LRPXCLL.js";
|
|
10
|
+
import "./chunk-IZYFOV2K.js";
|
|
11
|
+
import "./chunk-46DMRA3V.js";
|
|
12
|
+
import "./chunk-FSJVBXCW.js";
|
|
13
|
+
import "./chunk-4O5BCFCD.js";
|
|
14
|
+
import "./chunk-IKQ5U3DH.js";
|
|
15
|
+
import "./chunk-HUWOFEEU.js";
|
|
7
16
|
export {
|
|
8
17
|
runAgentCli
|
|
9
18
|
};
|