@artifactshare/cli 0.1.6 → 0.1.7
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 +20 -5
- package/dist/index.js +762 -544
- package/package.json +1 -1
- package/skills/artifactshare/SKILL.md +6 -2
- package/skills/artifactshare/artifactshare.mdc +5 -2
package/README.md
CHANGED
|
@@ -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:
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
npx --yes @artifactshare/cli agent open <artifact-id-or-url> --json
|
|
69
|
+
```
|
|
70
|
+
|
|
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:
|
|
59
74
|
|
|
60
75
|
```sh
|
|
61
|
-
npx --yes @artifactshare/cli skills
|
|
76
|
+
npx --yes @artifactshare/cli skills ensure --tool auto --scope project --json
|
|
62
77
|
```
|
|
63
78
|
|
|
64
|
-
|
|
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
|
|