@artifactshare/cli 0.1.6 → 0.1.8
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 +24 -7
- package/dist/index.js +2008 -1644
- package/package.json +1 -1
- package/skills/artifactshare/SKILL.md +16 -8
- package/skills/artifactshare/artifactshare.mdc +12 -5
package/README.md
CHANGED
|
@@ -17,8 +17,8 @@ npx --yes @artifactshare/cli publish ./report.html
|
|
|
17
17
|
On the first run in an interactive terminal, the CLI prints a sign-in link — open it in your browser, and the publish completes and prints the share URL. Folders work too:
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
|
-
npx --yes @artifactshare/cli publish ./dist --project
|
|
21
|
-
npx --yes @artifactshare/cli projects create
|
|
20
|
+
npx --yes @artifactshare/cli publish ./dist --project 'Weekly Reports'
|
|
21
|
+
npx --yes @artifactshare/cli projects create 'Client reports' --json
|
|
22
22
|
npx --yes @artifactshare/cli projects edit <id> --add-email viewer@example.com --json
|
|
23
23
|
npx --yes @artifactshare/cli edit <artifact-id-or-url> --project-id <id> --json
|
|
24
24
|
npx --yes @artifactshare/cli edit <artifact-id-or-url> --visibility private --grant-email viewer@example.com --json
|
|
@@ -26,9 +26,15 @@ npx --yes @artifactshare/cli update <artifact-id-or-url> ./dist
|
|
|
26
26
|
npx --yes @artifactshare/cli delete <artifact-id-or-url> --json
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
+
To keep an existing share URL, update it with
|
|
30
|
+
`npx --yes @artifactshare/cli update <artifact-id-or-url> <path>` instead of
|
|
31
|
+
publishing again. For CI, scheduled reports, or other repeat jobs, use
|
|
32
|
+
`publish <path> --key <key>`: the first run creates the shared file, and later
|
|
33
|
+
runs add versions to the same file.
|
|
34
|
+
|
|
29
35
|
## Authentication
|
|
30
36
|
|
|
31
|
-
- **Interactive**: run `npx --yes @artifactshare/cli login`, or
|
|
37
|
+
- **Interactive**: run `npx --yes @artifactshare/cli login`, or run `publish`, `update`, or `download` directly — those commands start sign-in for you when unauthenticated (the CLI prints a link and code to open in your browser).
|
|
32
38
|
- **CI / non-interactive**: issue a token at `https://artifactshare.com/settings/tokens`, then set `ARTIFACTSHARE_TOKEN` (or pass `--token`). Without a token, non-interactive runs fail with `error.code: "auth_required"` instead of hanging.
|
|
33
39
|
- Multiple accounts: keep one local profile per account (`profiles list` / `profiles use <name>`). In non-interactive agents, pipe an issued token into `profiles import-token --profile <name> --json` to create a saved profile without browser login.
|
|
34
40
|
|
|
@@ -41,6 +47,7 @@ npx --yes @artifactshare/cli delete <artifact-id-or-url> --json
|
|
|
41
47
|
| `edit <target>` | Change title, sharing, explicit viewers, or project placement |
|
|
42
48
|
| `delete <target>` | Permanently delete a file you published |
|
|
43
49
|
| `resolve <value>` | Find files by URL, ID, title, or project name |
|
|
50
|
+
| `agent open <target>` | First command for agents opening a shared URL; ensures skills, then reads or suggests download |
|
|
44
51
|
| `artifacts get <target>` | Read a file's content and metadata back |
|
|
45
52
|
| `download <target>` | Save a file or a whole static site locally |
|
|
46
53
|
| `comments list / post / edit / resolve / reopen / delete <target>` | Read, write, edit, resolve, reopen, and permanently delete comments |
|
|
@@ -51,17 +58,25 @@ npx --yes @artifactshare/cli delete <artifact-id-or-url> --json
|
|
|
51
58
|
| `doctor` | Diagnose auth, destination, network, and upload readiness — tells you the next command to run |
|
|
52
59
|
| `profiles list / use / import-token` | Switch between local account profiles and import an issued token from stdin |
|
|
53
60
|
| `init` | Save a default project for the current directory |
|
|
54
|
-
| `skills install / list / update / remove`
|
|
61
|
+
| `skills ensure / install / list / update / remove` | Install or update the bundled usage guide in your AI agent's skills |
|
|
55
62
|
|
|
56
63
|
## For AI agents
|
|
57
64
|
|
|
58
|
-
|
|
65
|
+
When an agent receives an Artifact Share URL, start here:
|
|
59
66
|
|
|
60
67
|
```sh
|
|
61
|
-
npx --yes @artifactshare/cli
|
|
68
|
+
npx --yes @artifactshare/cli agent open <artifact-id-or-url> --json
|
|
62
69
|
```
|
|
63
70
|
|
|
64
|
-
This installs
|
|
71
|
+
This installs or updates the local skill first, then reads single-file artifacts. Static sites and multi-file artifacts return a `download` next command.
|
|
72
|
+
|
|
73
|
+
To prepare the local skills without opening a URL:
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
npx --yes @artifactshare/cli skills ensure --tool auto --scope project --json
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
`skills ensure --tool auto` detects Claude Code, Codex, and Cursor project markers. Use `skills install --tool <codex|claude|cursor>` only when you want to target a specific tool manually.
|
|
65
80
|
|
|
66
81
|
Comment deletion is permanent. Use `comments delete <target> --thread-id <id> --message-id <id> --json` for one message, or omit `--message-id` only when deleting the whole thread.
|
|
67
82
|
|
|
@@ -71,6 +86,8 @@ All commands emit stable JSON when run non-interactively, piped, or with `--json
|
|
|
71
86
|
npx --yes @artifactshare/cli publish ./dist --json
|
|
72
87
|
```
|
|
73
88
|
|
|
89
|
+
Quote paths and free-form text before passing them through a shell. Artifact Share route files and user files can contain `$`, spaces, or glob characters, so prefer single quotes such as `'apps/web/app/routes/a.$id/index.tsx'` and `--body 'Looks good'`.
|
|
90
|
+
|
|
74
91
|
## Links
|
|
75
92
|
|
|
76
93
|
- Setup guide for AI tools and terminals: https://artifactshare.com/connect
|