@artifactshare/cli 0.2.0 → 0.4.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 +29 -27
- package/dist/index.js +411 -84
- package/package.json +1 -1
- package/skills/artifactshare/SKILL.md +185 -46
- package/skills/artifactshare/artifactshare.mdc +19 -14
package/README.md
CHANGED
|
@@ -35,49 +35,51 @@ runs add versions to the same file.
|
|
|
35
35
|
|
|
36
36
|
## Authentication
|
|
37
37
|
|
|
38
|
-
- **Interactive**: run `npx --yes @artifactshare/cli login`, or run `share`, `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).
|
|
38
|
+
- **Interactive**: run `npx --yes @artifactshare/cli login`, or run `share`, `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). Profiles created by `login` renew expired CLI sessions automatically during normal use.
|
|
39
39
|
- **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.
|
|
40
|
-
- 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.
|
|
40
|
+
- 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 API-token profile without browser login; API-token profiles are not renewed by the CLI.
|
|
41
41
|
|
|
42
42
|
## Commands
|
|
43
43
|
|
|
44
|
-
| Command | What it does
|
|
45
|
-
| ------------------------------------------------------------------ |
|
|
46
|
-
| `open <target>` | First command for agents opening a shared URL; ensures skills, then reads or suggests download
|
|
47
|
-
| `share <path>` | Share a file or folder as a new shared file (`--project`, `--home`, `--visibility`, `--key`)
|
|
48
|
-
| `update <target> <path>` | Add a new version to an existing file (ID or share URL)
|
|
49
|
-
| `edit <target>` | Change title, sharing, explicit viewers, or project placement
|
|
50
|
-
| `delete <target>` | Permanently delete a file you shared
|
|
51
|
-
| `resolve <value>` | Find files by URL, ID, title, or project name
|
|
52
|
-
| `artifacts get <target>` | Read a file's content and metadata back
|
|
53
|
-
| `download <target>` | Save a file or a whole static site locally
|
|
54
|
-
| `comments list / post / edit / resolve / reopen / delete <target>` | Read, write, edit, resolve, reopen, and permanently delete comments
|
|
55
|
-
| `projects list / create / edit` | List, create, and edit project destinations and audience
|
|
56
|
-
| `move <target>` | Move an existing file into a project or back home; `edit` is preferred for new automation
|
|
57
|
-
| `request-access` | Join the waitlist when sharing is not enabled yet
|
|
58
|
-
| `login` / `whoami` | Sign in and check who you are
|
|
59
|
-
| `doctor` | Diagnose auth, destination, network, and upload readiness — tells you the next command to run
|
|
60
|
-
| `profiles list / use / import-token` | Switch between local account profiles and import an issued token from stdin
|
|
61
|
-
| `init` |
|
|
62
|
-
| `skills ensure / install / list / update / remove` | Install or update the bundled usage guide in your AI agent's skills
|
|
44
|
+
| Command | What it does |
|
|
45
|
+
| ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------- |
|
|
46
|
+
| `open <target>` | First command for agents opening a shared URL; ensures skills, then reads or suggests download |
|
|
47
|
+
| `share <path>` | Share a file or folder as a new shared file (`--project`, `--home`, `--visibility`, `--key`) |
|
|
48
|
+
| `update <target> <path>` | Add a new version to an existing file (ID or share URL) |
|
|
49
|
+
| `edit <target>` | Change title, sharing, explicit viewers, or project placement |
|
|
50
|
+
| `delete <target>` | Permanently delete a file you shared |
|
|
51
|
+
| `resolve <value>` | Find files by URL, ID, title, or project name |
|
|
52
|
+
| `artifacts get <target>` | Read a file's content and metadata back |
|
|
53
|
+
| `download <target>` | Save a file or a whole static site locally |
|
|
54
|
+
| `comments list / post / edit / resolve / reopen / delete <target>` | Read, write, edit, resolve, reopen, and permanently delete comments |
|
|
55
|
+
| `projects list / create / edit` | List, create, and edit project destinations and audience |
|
|
56
|
+
| `move <target>` | Move an existing file into a project or back home; `edit` is preferred for new automation |
|
|
57
|
+
| `request-access` | Join the waitlist when sharing is not enabled yet |
|
|
58
|
+
| `login` / `whoami` | Sign in and check who you are |
|
|
59
|
+
| `doctor` | Diagnose auth, destination, network, and upload readiness — tells you the next command to run |
|
|
60
|
+
| `profiles list / use / import-token` | Switch between local account profiles and import an issued token from stdin |
|
|
61
|
+
| `init` | Set up this directory: detect the agent and install the skill, then show next steps; or save defaults with `--profile` / `--project-id` |
|
|
62
|
+
| `skills ensure / install / list / update / remove` | Install or update the bundled usage guide in your AI agent's skills |
|
|
63
63
|
|
|
64
64
|
## For AI agents
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
For first-time setup in a project, start here:
|
|
67
67
|
|
|
68
68
|
```sh
|
|
69
|
-
npx --yes @artifactshare/cli
|
|
69
|
+
npx --yes @artifactshare/cli init --json
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
`init` detects the agent (Claude Code, Codex, Cursor) in the working directory, installs or updates the bundled skill, and reports the next steps (sign in, then share). With no agent detected, it installs the Codex and Claude Code project skills. Add `--dry-run` to preview without writing.
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
When an agent receives an Artifact Share URL instead, start with `open`:
|
|
75
75
|
|
|
76
76
|
```sh
|
|
77
|
-
npx --yes @artifactshare/cli
|
|
77
|
+
npx --yes @artifactshare/cli open <artifact-id-or-url> --json
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
This installs or updates the local skill first, then reads single-file artifacts. Static sites and multi-file artifacts return a `download` next command.
|
|
81
|
+
|
|
82
|
+
To target a specific tool manually, use `skills install --tool <codex|claude|cursor>`; `skills ensure --tool auto` is the same detection `init` uses.
|
|
81
83
|
|
|
82
84
|
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.
|
|
83
85
|
|