@artifactshare/cli 0.7.0 → 0.7.1
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/CHANGELOG.md +4 -0
- package/README.md +9 -7
- package/dist/index.js +16 -8
- package/package.json +1 -1
- package/skills/artifactshare/SKILL.md +19 -9
- package/skills/artifactshare/artifactshare.mdc +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to `@artifactshare/cli` are documented here.
|
|
4
4
|
For user-facing announcements, see https://artifactshare.com/updates?product=cli.
|
|
5
5
|
|
|
6
|
+
## 0.7.1 - 2026-07-14
|
|
7
|
+
|
|
8
|
+
- Rework `home_audience` guidance in command help and the bundled skill: purpose-based examples for user and repository scopes, the `--visibility` one-time override, and checking the resolved audience with `--scope effective`.
|
|
9
|
+
|
|
6
10
|
## 0.7.0 - 2026-07-13
|
|
7
11
|
|
|
8
12
|
- Share without a destination now posts to home, so agents and automation have a predictable first destination.
|
package/README.md
CHANGED
|
@@ -26,8 +26,8 @@ npx --yes @artifactshare/cli edit <artifact-id-or-url> --visibility private --gr
|
|
|
26
26
|
npx --yes @artifactshare/cli update <artifact-id-or-url> ./dist
|
|
27
27
|
npx --yes @artifactshare/cli delete <artifact-id-or-url> --json
|
|
28
28
|
npx --yes @artifactshare/cli logout --profile default --json
|
|
29
|
-
npx --yes @artifactshare/cli config
|
|
30
|
-
npx --yes @artifactshare/cli config
|
|
29
|
+
npx --yes @artifactshare/cli config set home_audience private --scope user --json
|
|
30
|
+
npx --yes @artifactshare/cli config get home_audience --scope effective --json
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
To keep an existing share URL, update it with
|
|
@@ -71,16 +71,18 @@ Public command paths covered by this reference:
|
|
|
71
71
|
|
|
72
72
|
## Where shared files are delivered
|
|
73
73
|
|
|
74
|
-
Posting to a project delivers to the audience defined by that project. With no destination, `share` posts to home.
|
|
74
|
+
Posting to a project delivers to the audience defined by that project. With no destination, `share` posts to home. Choose the home audience by purpose:
|
|
75
75
|
|
|
76
76
|
```sh
|
|
77
|
-
npx --yes @artifactshare/cli config
|
|
78
|
-
npx --yes @artifactshare/cli config set home_audience
|
|
77
|
+
npx --yes @artifactshare/cli config set home_audience private --scope user --json
|
|
78
|
+
npx --yes @artifactshare/cli config set home_audience workspace --scope repository --json
|
|
79
|
+
npx --yes @artifactshare/cli share ./report.html --visibility private --json
|
|
80
|
+
npx --yes @artifactshare/cli config get home_audience --scope effective --json
|
|
79
81
|
```
|
|
80
82
|
|
|
81
|
-
|
|
83
|
+
Use `--scope repository` only for a policy agreed by all repository participants, and pass `--visibility private|workspace` for a one-time home override. For project creation, pass `projects create <name> --visibility private|workspace`; persistent project defaults are documented in `projects create --help`.
|
|
82
84
|
|
|
83
|
-
For the complete settings reference, `home_audience` is the canonical home key. `default_artifact_visibility` remains a compatibility alias, and `default_project_visibility` is the advanced default for `projects create`. User and repository settings are resolved with repository taking precedence, followed by user and product default `workspace`; home also checks the compatibility alias at each scope. Keyless `config get --json` returns only `home_audience`; pass an explicit key to read either other setting. These settings only affect new home posts and project creation; update, edit, Web, and MCP defaults are unchanged.
|
|
85
|
+
For the complete settings reference, `home_audience` is the canonical home key. `default_artifact_visibility` remains a compatibility alias, and `default_project_visibility` is the advanced default for `projects create`. User and repository settings are resolved with repository taking precedence, followed by user and product default `workspace`; home also checks the compatibility alias at each scope. Use `config get home_audience --scope effective --json` to confirm the resolved audience. Keyless `config get --json` returns only `home_audience`; pass an explicit key to read either other setting. These settings only affect new home posts and project creation; update, edit, Web, and MCP defaults are unchanged.
|
|
84
86
|
|
|
85
87
|
## For AI agents
|
|
86
88
|
|
package/dist/index.js
CHANGED
|
@@ -5433,11 +5433,14 @@ const shareDefinition = define({
|
|
|
5433
5433
|
npx --yes @artifactshare/cli share report.html --project-id <id> --key nightly-report --json
|
|
5434
5434
|
|
|
5435
5435
|
Posting to a project delivers to the audience defined by that project.
|
|
5436
|
-
With no destination, share posts to home.
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5436
|
+
With no destination, share posts to home. Choose the setting by purpose:
|
|
5437
|
+
Personal safe default (this CLI environment only):
|
|
5438
|
+
npx --yes @artifactshare/cli config set home_audience private --scope user --json
|
|
5439
|
+
Shared policy agreed by all repository participants:
|
|
5440
|
+
npx --yes @artifactshare/cli config set home_audience workspace --scope repository --json
|
|
5441
|
+
One-time audience for a single post: pass --visibility private|workspace.
|
|
5442
|
+
Check the resolved audience before posting:
|
|
5443
|
+
npx --yes @artifactshare/cli config get home_audience --scope effective --json
|
|
5441
5444
|
|
|
5442
5445
|
To keep an existing share URL, use update:
|
|
5443
5446
|
npx --yes @artifactshare/cli update <artifact-id-or-url> <path> --json
|
|
@@ -6082,9 +6085,14 @@ const configDefinition = define({
|
|
|
6082
6085
|
unset: lazyCommand(configUnsetDefinition, configUnsetRunner)
|
|
6083
6086
|
},
|
|
6084
6087
|
examples: `Posting to a project delivers to that project's audience. Without a destination, share posts to home.
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
+
Choose the home audience by purpose:
|
|
6089
|
+
Personal safe default (this CLI environment only):
|
|
6090
|
+
npx --yes @artifactshare/cli config set home_audience private --scope user --json
|
|
6091
|
+
Shared policy agreed by all repository participants:
|
|
6092
|
+
npx --yes @artifactshare/cli config set home_audience workspace --scope repository --json
|
|
6093
|
+
One-time audience for a single post: pass --visibility private|workspace.
|
|
6094
|
+
Check the resolved audience with:
|
|
6095
|
+
npx --yes @artifactshare/cli config get home_audience --scope effective --json
|
|
6088
6096
|
|
|
6089
6097
|
Keys:
|
|
6090
6098
|
home_audience Canonical home-post audience.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artifactshare/cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
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: Share, publish, upload, host, update, open, or read back existing f
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- artifactshare-skill
|
|
7
|
-
version:
|
|
7
|
+
version: 27
|
|
8
8
|
managed: true
|
|
9
9
|
-->
|
|
10
10
|
|
|
@@ -94,10 +94,12 @@ npx --yes @artifactshare/cli share ./site-dir --project-id <id> --json
|
|
|
94
94
|
name, no prior `resolve` needed), the saved default from `init`, or `--home`.
|
|
95
95
|
Posting to a project delivers to the audience defined by that project.
|
|
96
96
|
Without any destination it posts to home.
|
|
97
|
-
-
|
|
98
|
-
|
|
99
|
-
`
|
|
100
|
-
|
|
97
|
+
- Choose `home_audience` by purpose: use `config set home_audience private
|
|
98
|
+
--scope user --json` for a personal safe default in this CLI environment,
|
|
99
|
+
use `--scope repository` only for a policy agreed by all participants, and
|
|
100
|
+
use `--visibility private|workspace` for one home post.
|
|
101
|
+
- Confirm the resolved home audience before posting with
|
|
102
|
+
`config get home_audience --scope effective --json`.
|
|
101
103
|
- Set visibility at share time with `--visibility private|workspace|project`.
|
|
102
104
|
This is a per-post override; `--grant-email` does not change the resolved
|
|
103
105
|
default visibility.
|
|
@@ -109,10 +111,18 @@ npx --yes @artifactshare/cli share ./site-dir --project-id <id> --json
|
|
|
109
111
|
## Audience and visibility settings
|
|
110
112
|
|
|
111
113
|
Posting to a project delivers to the audience defined by that project. Without
|
|
112
|
-
a destination, `share` posts to home
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
a destination, `share` posts to home. Choose the home audience by purpose:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
npx --yes @artifactshare/cli config set home_audience private --scope user --json
|
|
118
|
+
npx --yes @artifactshare/cli config set home_audience workspace --scope repository --json
|
|
119
|
+
npx --yes @artifactshare/cli share ./report.html --visibility private --json
|
|
120
|
+
npx --yes @artifactshare/cli config get home_audience --scope effective --json
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Use the user scope for a personal safe default in this CLI environment, the
|
|
124
|
+
repository scope only for a policy agreed by all participants, and
|
|
125
|
+
`--visibility` for a one-time audience.
|
|
116
126
|
|
|
117
127
|
Use `--visibility private|workspace|project` as a per-post override. For new
|
|
118
128
|
projects, pass `projects create --visibility private|workspace`; persistent
|
|
@@ -4,7 +4,7 @@ alwaysApply: false
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- artifactshare-skill
|
|
7
|
-
version:
|
|
7
|
+
version: 27
|
|
8
8
|
managed: true
|
|
9
9
|
-->
|
|
10
10
|
|
|
@@ -43,7 +43,7 @@ contain `$`, spaces, `*`, or `?`; use single quotes such as
|
|
|
43
43
|
- Remove a saved local credential with `logout --profile <name> --json`; this keeps profile metadata and does not revoke API tokens on the server.
|
|
44
44
|
- Switch profiles with `profiles use <name> --json`; list with `profiles list --json`; remove a profile entry and its credential with `profiles delete <name> --json`.
|
|
45
45
|
- 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.
|
|
46
|
-
- Share with `share <path> --json`. In JSON output, give the user `data.artifact.url`; the artifact ID is `data.artifact.id`. Do not rerun `share` just to inspect the JSON shape: without `--key`, each successful run creates a new artifact. Posting to a project delivers to the audience defined by that project. Pick it with `--project-id <id>` or `--project <name>` (by exact name), or use the saved default. With no destination, share posts to home.
|
|
46
|
+
- Share with `share <path> --json`. In JSON output, give the user `data.artifact.url`; the artifact ID is `data.artifact.id`. Do not rerun `share` just to inspect the JSON shape: without `--key`, each successful run creates a new artifact. Posting to a project delivers to the audience defined by that project. Pick it with `--project-id <id>` or `--project <name>` (by exact name), or use the saved default. With no destination, share posts to home. Choose `home_audience` by purpose: use `config set home_audience private --scope user --json` for a personal safe default in this CLI environment, use `--scope repository` only for a policy agreed by all participants, and use `--visibility private|workspace` for one home post. Confirm the resolved audience with `config get home_audience --scope effective --json`; `--grant-email` does not change the resolved default.
|
|
47
47
|
- For new projects, pass `projects create <name> --visibility private|workspace`; persistent project defaults are documented in `projects create --help`. The complete `config --help` reference covers the canonical `home_audience`, user/repository/effective scopes, and resolution. `default_artifact_visibility` is a compatibility alias; `default_project_visibility` is the advanced project-creation default. Home resolution checks repository then user settings, including the alias at each scope, then product default `workspace`. Keyless `config get --json` returns only `home_audience`; pass an explicit key for either other setting. These settings do not change update, edit, Web, or MCP defaults.
|
|
48
48
|
- 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.
|
|
49
49
|
- 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.
|