@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artifactshare/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Upload and share HTML, Markdown, folders, and static sites from terminals, AI agents, automation, and CI.",
|
|
5
5
|
"homepage": "https://artifactshare.com/connect",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -4,7 +4,7 @@ description: Open, share, update, and read back shared files with the Artifact S
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- artifactshare-skill
|
|
7
|
-
version:
|
|
7
|
+
version: 18
|
|
8
8
|
managed: true
|
|
9
9
|
-->
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ files and folders, and is designed for agents: every command supports `--json`
|
|
|
16
16
|
with a stable contract.
|
|
17
17
|
|
|
18
18
|
Run commands with `npx --yes @artifactshare/cli`. When unsure about a
|
|
19
|
-
command or flag,
|
|
19
|
+
command or flag, run `npx --yes @artifactshare/cli <command> --help` first.
|
|
20
20
|
|
|
21
21
|
Use the CLI whenever the file already exists locally as a file or folder.
|
|
22
22
|
The remote MCP tools accept HTML or Markdown source strings; they cannot read
|
|
@@ -26,10 +26,22 @@ When passing paths or free-form text through a shell, quote them. Paths may
|
|
|
26
26
|
contain `$`, spaces, `*`, or `?`; use single quotes such as
|
|
27
27
|
`'apps/web/app/routes/a.$id/index.tsx'` so the shell does not expand them.
|
|
28
28
|
|
|
29
|
-
##
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
## Quick reference
|
|
30
|
+
|
|
31
|
+
| Task | Command |
|
|
32
|
+
| ----------------------- | ----------------------------------------------- |
|
|
33
|
+
| Share a file or folder | `share <path> --json` |
|
|
34
|
+
| Replace with same URL | `update <target> <path> --json` |
|
|
35
|
+
| Read back source | `artifacts get <target> --json` |
|
|
36
|
+
| Download a site bundle | `download <target> --output ./out --json` |
|
|
37
|
+
| List your artifacts | `artifacts list --json` |
|
|
38
|
+
| Post a comment | `comments post <target> --body '<text>' --json` |
|
|
39
|
+
| Read comments | `comments list <target> --json` |
|
|
40
|
+
| Change title or sharing | `edit <target> --title 'New' --json` |
|
|
41
|
+
| Move to a project | `edit <target> --project-id <id> --json` |
|
|
42
|
+
| Create a project | `projects create 'Name' --json` |
|
|
43
|
+
| Find an ID from a title | `resolve <value> --json` |
|
|
44
|
+
| Open a share URL | `open <url> --json` |
|
|
33
45
|
|
|
34
46
|
## Authentication
|
|
35
47
|
|
|
@@ -38,63 +50,182 @@ contain `$`, spaces, `*`, or `?`; use single quotes such as
|
|
|
38
50
|
`ARTIFACTSHARE_TOKEN` or `--token` for normal commands.
|
|
39
51
|
- `login --profile <name>` prints a sign-in URL and code (device flow); only
|
|
40
52
|
suggest it in interactive sessions. Do not pass API tokens to `login`.
|
|
53
|
+
Profiles created by `login` renew expired CLI sessions automatically.
|
|
41
54
|
- To keep using an issued token as a named profile without TTY or browser
|
|
42
55
|
login, pipe it on standard input:
|
|
43
56
|
`printf '%s' "$TOKEN" | npx --yes @artifactshare/cli profiles import-token --profile <name> --json`.
|
|
57
|
+
Imported API-token profiles are not renewed by the CLI.
|
|
44
58
|
Use `--allow-plaintext-token-store` only on a trusted machine without a native token store.
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
## Choosing the destination
|
|
49
|
-
|
|
50
|
-
1. `projects list --json` shows the projects this account can share into; `is_default` marks the working-directory default.
|
|
51
|
-
2. `projects create <name> --json` creates a project and returns `project.id` plus a `next_command` using `share --project-id <id>`.
|
|
52
|
-
3. `projects edit <id> --name 'New name' --json`, `projects edit <id> --visibility private --json`, `projects edit <id> --add-email person@example.com --json`, `projects edit <id> --remove-email person@example.com --json`, `projects edit <id> --archive --json`, and `projects edit <id> --unarchive --json` change the project settings and audience.
|
|
53
|
-
4. `init --project-id <id> --json` saves a default project for the working directory.
|
|
54
|
-
5. `share` resolves the destination from `--project-id`, then the saved default, then `--home` (the home destination for files not placed in a project). Without any of these it fails with `destination_required`.
|
|
55
|
-
6. `edit <artifact-id-or-url> --project-id <id> --json` moves an existing file into a project; `edit <artifact-id-or-url> --home --json` moves it back home.
|
|
56
|
-
7. `edit <artifact-id-or-url> --title 'New title' --json`, `edit <artifact-id-or-url> --visibility private --json`, `edit <artifact-id-or-url> --grant-email person@example.com --json`, and `edit <artifact-id-or-url> --revoke-email person@example.com --json` change post-share settings.
|
|
59
|
+
- Check the current state with `whoami --json`, or `doctor --json` for
|
|
60
|
+
authentication, destination, network, upload access, and skill update status.
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
visibility artifact home makes it `private`, because home has no project
|
|
60
|
-
audience. The older `move` command remains available for placement-only
|
|
61
|
-
automation, but prefer `edit` for new flows.
|
|
62
|
+
## Share
|
|
62
63
|
|
|
63
|
-
|
|
64
|
+
Use `share` for new files. Use `update` to replace an existing artifact.
|
|
64
65
|
|
|
65
66
|
```bash
|
|
66
|
-
npx --yes @artifactshare/cli open <artifact-id-or-url> --json
|
|
67
67
|
npx --yes @artifactshare/cli share ./report.html --json
|
|
68
68
|
npx --yes @artifactshare/cli share ./site-dir --project-id <id> --json
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
- `share` accepts a single `.html` / `.md` file or a static-site directory.
|
|
72
|
+
The returned `share_url` is the link to give the user.
|
|
73
|
+
- Pick the destination with `--project-id <id>`, `--project <name>` (by exact
|
|
74
|
+
name, no prior `resolve` needed), the saved default from `init`, or `--home`.
|
|
75
|
+
Without any of these it fails with `destination_required`.
|
|
76
|
+
- Set visibility at share time with `--visibility private|workspace|project`.
|
|
77
|
+
When `--grant-email` is passed, the default becomes `private`.
|
|
78
|
+
- For repeat jobs with a stable caller-owned name, use
|
|
79
|
+
`share <path> --key <key> --json`: the first run creates the artifact, later
|
|
80
|
+
runs add versions to the same artifact.
|
|
81
|
+
- Run `share --help` for all flags.
|
|
82
|
+
|
|
83
|
+
## Update
|
|
84
|
+
|
|
85
|
+
Use `update` to add a new version to an existing artifact while keeping its URL.
|
|
86
|
+
|
|
87
|
+
```bash
|
|
73
88
|
npx --yes @artifactshare/cli update <artifact-id-or-url> ./report.html --json
|
|
74
|
-
|
|
75
|
-
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
- To keep an existing share URL, do not run `share --artifact-id`; use `update`.
|
|
92
|
+
- Pass the same kind of input (single file vs directory) it was created with.
|
|
93
|
+
- `update` does not change title, visibility, viewers, or placement. Use `edit`
|
|
94
|
+
for those.
|
|
95
|
+
- Run `update --help` for all flags.
|
|
96
|
+
|
|
97
|
+
## Read back and download
|
|
98
|
+
|
|
99
|
+
Use `artifacts get` for single-file sources. Use `download` for static sites.
|
|
100
|
+
|
|
101
|
+
```bash
|
|
76
102
|
npx --yes @artifactshare/cli artifacts get <artifact-id-or-url> --json
|
|
103
|
+
npx --yes @artifactshare/cli artifacts get <artifact-id-or-url> --include versions --include comments --json
|
|
77
104
|
npx --yes @artifactshare/cli download <artifact-id-or-url> --output ./out --json
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
- If `artifacts get` returns `truncated: true`, call again with `--offset` set
|
|
108
|
+
to `next_offset`.
|
|
109
|
+
- `--include versions` and `--include comments` fetch version history or
|
|
110
|
+
inline comments in one call.
|
|
111
|
+
- `download` saves static-site bundles. Pass `--force` to overwrite an existing
|
|
112
|
+
output directory.
|
|
113
|
+
- Find artifact IDs with `artifacts list --json`. Filter with `--project-id`,
|
|
114
|
+
`--home`, or `--query <text>`.
|
|
115
|
+
- When the user gives a title, project name, or URL instead of an ID, run
|
|
116
|
+
`resolve <value> --json` first and use the returned ID.
|
|
117
|
+
- Run `artifacts get --help` or `download --help` for all flags.
|
|
118
|
+
|
|
119
|
+
## Comment
|
|
120
|
+
|
|
121
|
+
Use `comments list` to read, `comments post` to write. IDs from `list` feed
|
|
122
|
+
into `edit`, `resolve`, `reopen`, and `delete`.
|
|
123
|
+
|
|
124
|
+
```bash
|
|
78
125
|
npx --yes @artifactshare/cli comments list <artifact-id-or-url> --json
|
|
79
126
|
npx --yes @artifactshare/cli comments post <artifact-id-or-url> --body '<text>' --json
|
|
80
|
-
npx --yes @artifactshare/cli comments
|
|
81
|
-
npx --yes @artifactshare/cli comments
|
|
82
|
-
npx --yes @artifactshare/cli comments
|
|
83
|
-
|
|
127
|
+
npx --yes @artifactshare/cli comments post <artifact-id-or-url> --body '<text>' --reply-to <thread-id> --json
|
|
128
|
+
npx --yes @artifactshare/cli comments post <artifact-id-or-url> --body '<text>' --quote 'exact text' --json
|
|
129
|
+
npx --yes @artifactshare/cli comments post <artifact-id-or-url> --body '<text>' --agent 'Claude' --json
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
- `--reply-to <thread-id>` replies to an existing thread from `comments list`.
|
|
133
|
+
- `--quote <text>` anchors a new thread to the quoted text. Copy the text from
|
|
134
|
+
`artifacts get` so it matches exactly. When the same text appears more than
|
|
135
|
+
once, add `--quote-before` and/or `--quote-after` to pick the right one.
|
|
136
|
+
Do not combine `--quote` with `--reply-to`.
|
|
137
|
+
- `--agent <name>` declares the posting agent (e.g. `Claude`, `Cursor`).
|
|
138
|
+
The comment shows an agent badge in the viewer. Omit to post without a badge.
|
|
139
|
+
`comments list` returns an `agent` field on messages posted with this flag.
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
npx --yes @artifactshare/cli comments edit <artifact-id-or-url> --message-id <id> --body '<text>' --json
|
|
143
|
+
npx --yes @artifactshare/cli comments resolve <artifact-id-or-url> --thread-id <id> --json
|
|
144
|
+
npx --yes @artifactshare/cli comments reopen <artifact-id-or-url> --thread-id <id> --json
|
|
145
|
+
npx --yes @artifactshare/cli comments delete <artifact-id-or-url> --thread-id <id> --message-id <id> --json
|
|
84
146
|
```
|
|
85
147
|
|
|
86
|
-
-
|
|
87
|
-
|
|
88
|
-
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
148
|
+
- Comment deletion cannot be undone. Omit `--message-id` only when the user
|
|
149
|
+
wants the whole thread deleted.
|
|
150
|
+
- Run `comments post --help` for all flags.
|
|
151
|
+
|
|
152
|
+
## Organize and settings
|
|
153
|
+
|
|
154
|
+
Use `edit` for post-share changes. Use `projects list/create/edit` for
|
|
155
|
+
project management.
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
npx --yes @artifactshare/cli edit <artifact-id-or-url> --title 'New title' --json
|
|
159
|
+
npx --yes @artifactshare/cli edit <artifact-id-or-url> --visibility private --grant-email viewer@example.com --json
|
|
160
|
+
npx --yes @artifactshare/cli edit <artifact-id-or-url> --project-id <id> --json
|
|
161
|
+
npx --yes @artifactshare/cli edit <artifact-id-or-url> --home --json
|
|
162
|
+
npx --yes @artifactshare/cli delete <artifact-id-or-url> --json
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
- `edit` changes title, visibility, explicit viewers, or project placement
|
|
166
|
+
without adding a new version.
|
|
167
|
+
- Moving a `project` visibility artifact home makes it `private`, because home
|
|
168
|
+
has no project audience.
|
|
169
|
+
- The older `move` command remains available for placement-only automation, but
|
|
170
|
+
prefer `edit` for new flows.
|
|
171
|
+
- `delete` permanently removes an artifact and its version history. Use only
|
|
172
|
+
when the user explicitly asks.
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
npx --yes @artifactshare/cli projects list --json
|
|
176
|
+
npx --yes @artifactshare/cli projects create 'Client reports' --json
|
|
177
|
+
npx --yes @artifactshare/cli projects create 'Internal' --visibility private --json
|
|
178
|
+
npx --yes @artifactshare/cli projects edit <id> --add-email viewer@example.com --json
|
|
179
|
+
npx --yes @artifactshare/cli projects edit <id> --archive --json
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
- `projects create` defaults to `--visibility workspace`. Pass
|
|
183
|
+
`--visibility private` for confidential projects.
|
|
184
|
+
- `projects edit` changes name, description, visibility, audience
|
|
185
|
+
(`--add-email` / `--remove-email`), and archive state (`--archive` /
|
|
186
|
+
`--unarchive`).
|
|
187
|
+
- `init --project-id <id> --json` saves a default project for the working
|
|
188
|
+
directory. `init --dry-run --json` previews the setup without side effects.
|
|
189
|
+
- Run `edit --help`, `projects create --help`, or `projects edit --help` for
|
|
190
|
+
all flags.
|
|
191
|
+
|
|
192
|
+
## Profiles
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
npx --yes @artifactshare/cli profiles list --json
|
|
196
|
+
npx --yes @artifactshare/cli profiles use <name> --json
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
- `profiles list` shows saved profiles and the default.
|
|
200
|
+
- `profiles use` switches the default profile.
|
|
201
|
+
- To create a profile, use `login --profile <name>` (interactive) or
|
|
202
|
+
`profiles import-token` (non-interactive, see Authentication).
|
|
203
|
+
|
|
204
|
+
## Skills
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
npx --yes @artifactshare/cli skills ensure --tool auto --json
|
|
208
|
+
npx --yes @artifactshare/cli skills update --json
|
|
209
|
+
npx --yes @artifactshare/cli skills list --json
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
- `skills ensure --tool auto` detects the agent (Claude Code, Codex, Cursor)
|
|
213
|
+
and installs this skill if missing, or reports when an update is available.
|
|
214
|
+
- `skills update` updates installed skills to the bundled version.
|
|
215
|
+
- `skills install --tool <name> --scope user` installs the skill at the user
|
|
216
|
+
level instead of the project. `--force` overwrites an unmanaged file.
|
|
217
|
+
- Run `skills --help` for all subcommands.
|
|
218
|
+
|
|
219
|
+
## Output contract
|
|
220
|
+
|
|
221
|
+
- Always pass `--json`. Success prints
|
|
222
|
+
`{"schema_version":2,"ok":true,"command":...,"data":...}` to stdout; failure
|
|
223
|
+
prints `{"schema_version":2,"ok":false,"error":...}` to stderr with exit
|
|
224
|
+
code 1.
|
|
225
|
+
- On failure, read `error.code`, `error.hint`, and `error.recovery`.
|
|
226
|
+
`recovery.kind` is one of `change_input`, `run_command`, `retry_later`,
|
|
227
|
+
`ask_human`, `report_issue`. When `error.requires_human` is true, report to
|
|
228
|
+
the user instead of retrying.
|
|
98
229
|
|
|
99
230
|
## Upload access
|
|
100
231
|
|
|
@@ -102,3 +233,11 @@ If `share` or `update` fails with `upload_not_allowed`, run
|
|
|
102
233
|
`request-access --note '<why>' --json` to join the waitlist, then tell the
|
|
103
234
|
user that sharing stays closed until an operator opens it. Do not retry
|
|
104
235
|
share in a loop.
|
|
236
|
+
|
|
237
|
+
## First-time setup
|
|
238
|
+
|
|
239
|
+
`npx --yes @artifactshare/cli init` detects the agent, installs or updates
|
|
240
|
+
this skill, and reports the next steps (sign in, then share). When you receive
|
|
241
|
+
a share URL instead, start with `open <artifact-id-or-url> --json`. It ensures
|
|
242
|
+
this skill is installed or updated, then reads single-file artifacts or returns
|
|
243
|
+
a `download` next command for static sites and multi-file artifacts.
|
|
@@ -4,7 +4,7 @@ alwaysApply: false
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- artifactshare-skill
|
|
7
|
-
version:
|
|
7
|
+
version: 18
|
|
8
8
|
managed: true
|
|
9
9
|
-->
|
|
10
10
|
|
|
@@ -12,8 +12,8 @@ managed: true
|
|
|
12
12
|
|
|
13
13
|
Artifact Share hosts shared files (HTML pages, Markdown documents, static
|
|
14
14
|
sites) with versions and comments. Use `npx --yes @artifactshare/cli` to
|
|
15
|
-
open shared URLs and
|
|
16
|
-
`npx --yes @artifactshare/cli --help` before choosing a command.
|
|
15
|
+
share local files, open shared URLs, and manage artifacts from the terminal.
|
|
16
|
+
Run `npx --yes @artifactshare/cli <command> --help` before choosing a command.
|
|
17
17
|
|
|
18
18
|
Use the CLI for local files and folders. The remote MCP tools accept HTML or
|
|
19
19
|
Markdown source strings; they cannot read paths like `/Users/.../report.html`
|
|
@@ -25,18 +25,23 @@ contain `$`, spaces, `*`, or `?`; use single quotes such as
|
|
|
25
25
|
|
|
26
26
|
- Always pass `--json`; on failure read `error.code`, `error.hint`, and `error.recovery`.
|
|
27
27
|
- In agents, CI, or scripts, ask the user to issue an API token at `https://artifactshare.com/settings/tokens`, then run normal commands with `ARTIFACTSHARE_TOKEN` or `--token`; do not pass API tokens to `login`.
|
|
28
|
-
- To save that token as a named profile without TTY or browser login, pipe it on standard input: `printf '%s' "$TOKEN" | npx --yes @artifactshare/cli profiles import-token --profile <name> --json`. Add `--allow-plaintext-token-store` only on a trusted machine without a native token store.
|
|
29
|
-
- Use `login --profile <name>` only in an interactive terminal where the user can approve the browser device flow.
|
|
28
|
+
- To save that token as a named profile without TTY or browser login, pipe it on standard input: `printf '%s' "$TOKEN" | npx --yes @artifactshare/cli profiles import-token --profile <name> --json`. Imported API-token profiles are not renewed by the CLI. Add `--allow-plaintext-token-store` only on a trusted machine without a native token store.
|
|
29
|
+
- Use `login --profile <name>` only in an interactive terminal where the user can approve the browser device flow. Profiles created by `login` renew expired CLI sessions automatically.
|
|
30
|
+
- Switch profiles with `profiles use <name> --json`; list with `profiles list --json`.
|
|
30
31
|
- When the user gives an Artifact Share URL, start with `open <artifact-id-or-url> --json`. It ensures this rule is installed or updated, then reads single-file artifacts or returns a `download` next command for static sites and multi-file artifacts.
|
|
31
|
-
-
|
|
32
|
-
- Change project settings with `projects edit <id> --name 'New name' --json`, `projects edit <id> --visibility private --json`, `projects edit <id> --add-email person@example.com --json`, `projects edit <id> --remove-email person@example.com --json`, `projects edit <id> --archive --json`, or `projects edit <id> --unarchive --json`.
|
|
33
|
-
- Change post-share settings with `edit <artifact-id-or-url> --title 'New title' --json`, `edit <artifact-id-or-url> --visibility private --json`, `edit <artifact-id-or-url> --grant-email person@example.com --json`, `edit <artifact-id-or-url> --revoke-email person@example.com --json`, `edit <artifact-id-or-url> --project-id <id> --json`, or `edit <artifact-id-or-url> --home --json`. Moving a `project` visibility file home makes it `private`.
|
|
34
|
-
- `move <artifact-id-or-url> --project-id <id> --json` and `move <artifact-id-or-url> --home --json` remain available for placement-only automation, but prefer `edit` for new flows.
|
|
35
|
-
- Share with `share <path> --json`. To keep an existing share URL, do not use `share --artifact-id`; add a version with `update <artifact-id-or-url> <path> --json`.
|
|
32
|
+
- Share with `share <path> --json`. Pick the destination with `--project-id <id>`, `--project <name>` (by exact name), the saved default, or `--home`. Set visibility with `--visibility private|workspace|project`; when `--grant-email` is passed the default becomes `private`.
|
|
36
33
|
- For repeat jobs with a stable caller-owned name, use `share <path> --key <key> --json`: the first run creates the artifact, later runs add versions to the same artifact.
|
|
34
|
+
- To keep an existing share URL, do not use `share --artifact-id`; add a version with `update <artifact-id-or-url> <path> --json`. `update` does not change title, visibility, viewers, or placement.
|
|
35
|
+
- Read back with `artifacts get <target> --json`. Pass `--include versions` or `--include comments` to fetch history or comments in one call. If truncated, call again with `--offset` set to `next_offset`.
|
|
36
|
+
- Download static-site bundles with `download <target> --output ./out --json`. Pass `--force` to overwrite an existing output directory.
|
|
37
|
+
- Find artifact IDs with `artifacts list --json`; filter with `--project-id <id>`, `--home`, or `--query <text>`. Resolve titles, project names, and URLs to IDs with `resolve <value> --json`.
|
|
38
|
+
- Comment with `comments post <target> --body '<text>' --json`. Reply with `--reply-to <thread-id>`. Anchor to quoted text with `--quote '<text>'`; add `--quote-before`/`--quote-after` to disambiguate. Declare the posting agent with `--agent '<name>'` (e.g. `Claude`); omit for no badge. `comments list` returns an `agent` field on agent-posted messages.
|
|
39
|
+
- Edit, resolve, reopen, and delete comments with `comments edit`, `comments resolve`, `comments reopen`, and `comments delete` using IDs from `comments list`. Comment deletion cannot be undone; omit `--message-id` from `comments delete` only when the user wants the whole thread deleted.
|
|
40
|
+
- Change post-share settings with `edit <target>`: `--title`, `--visibility`, `--grant-email`, `--revoke-email`, `--project-id`, `--home`. Moving a `project` visibility file home makes it `private`. `move` remains for placement-only automation; prefer `edit`.
|
|
37
41
|
- Permanently remove an artifact only when the user explicitly asks with `delete <artifact-id-or-url> --json`.
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
- Comment deletion cannot be undone. Omit `--message-id` from `comments delete` only when the user wants the whole thread deleted.
|
|
42
|
+
- Manage projects: `projects list --json`, `projects create <name> --json` (defaults to `--visibility workspace`; pass `--visibility private` for confidential projects), `projects edit <id>` for name, description, visibility, audience (`--add-email`/`--remove-email`), and archive state (`--archive`/`--unarchive`).
|
|
43
|
+
- Save a default project with `init --project-id <id> --json`. Preview setup with `init --dry-run --json`.
|
|
44
|
+
- Manage skills: `skills ensure --tool auto --json` detects the agent and installs or reports updates; `skills update --json` updates installed skills to the bundled version; `skills install --tool <name> --scope user --json` installs at the user level (`--force` overwrites unmanaged files).
|
|
42
45
|
- On `upload_not_allowed`, run `request-access --note '<why>' --json` and tell the user an operator opens sharing; do not retry in a loop.
|
|
46
|
+
- Check the current state with `whoami --json` or `doctor --json` for authentication, destination, network, upload access, and skill update status.
|
|
47
|
+
- First-time setup: `npx --yes @artifactshare/cli init` detects the agent, installs or updates this rule, and reports the next steps (sign in, then share).
|