@artifactshare/cli 0.7.0 → 0.8.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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.8.0 - 2026-07-15
7
+
8
+ - Remove the `request-access` command. Sharing is open to everyone at sign-up, so there is no waitlist to join.
9
+
10
+ ## 0.7.1 - 2026-07-14
11
+
12
+ - 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`.
13
+
6
14
  ## 0.7.0 - 2026-07-13
7
15
 
8
16
  - 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 get home_audience --json
30
- npx --yes @artifactshare/cli config set home_audience private --scope repository --json
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
@@ -57,7 +57,6 @@ runs add versions to the same file.
57
57
  | `comments list / post / edit / resolve / reopen / delete <target>` | Read, write, edit, resolve, reopen, and permanently delete comments |
58
58
  | `projects list / create / edit` | List, create, and edit project destinations and audience |
59
59
  | `move <target>` | Move an existing file into a project or back home; `edit` is preferred for new automation |
60
- | `request-access` | Join the waitlist when sharing is not enabled yet |
61
60
  | `login` / `logout` / `whoami` | Sign in, remove a saved local credential, and check who you are |
62
61
  | `doctor` | Diagnose auth, destination, network, and upload readiness — tells you the next command to run |
63
62
  | `changelog` | Show the installed version, this release's notes, and the public updates page |
@@ -67,20 +66,22 @@ runs add versions to the same file.
67
66
 
68
67
  Public command paths covered by this reference:
69
68
 
70
- `artifacts`, `artifacts get`, `artifacts list`, `changelog`, `comments`, `comments delete`, `comments edit`, `comments list`, `comments post`, `comments reopen`, `comments resolve`, `config`, `config get`, `config set`, `config unset`, `delete`, `doctor`, `download`, `edit`, `init`, `login`, `logout`, `move`, `open`, `profiles`, `profiles delete`, `profiles import-token`, `profiles list`, `profiles use`, `projects`, `projects create`, `projects edit`, `projects list`, `request-access`, `resolve`, `share`, `skills`, `skills ensure`, `skills install`, `skills list`, `skills remove`, `skills update`, `update`, `whoami`.
69
+ `artifacts`, `artifacts get`, `artifacts list`, `changelog`, `comments`, `comments delete`, `comments edit`, `comments list`, `comments post`, `comments reopen`, `comments resolve`, `config`, `config get`, `config set`, `config unset`, `delete`, `doctor`, `download`, `edit`, `init`, `login`, `logout`, `move`, `open`, `profiles`, `profiles delete`, `profiles import-token`, `profiles list`, `profiles use`, `projects`, `projects create`, `projects edit`, `projects list`, `resolve`, `share`, `skills`, `skills ensure`, `skills install`, `skills list`, `skills remove`, `skills update`, `update`, `whoami`.
71
70
 
72
71
  ## Where shared files are delivered
73
72
 
74
- Posting to a project delivers to the audience defined by that project. With no destination, `share` posts to home. The repository `home_audience` selects `private` (only you) or `workspace` (everyone in the workspace/company):
73
+ 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
74
 
76
75
  ```sh
77
- npx --yes @artifactshare/cli config get home_audience --json
78
- npx --yes @artifactshare/cli config set home_audience private --scope repository --json
76
+ npx --yes @artifactshare/cli config set home_audience private --scope user --json
77
+ npx --yes @artifactshare/cli config set home_audience workspace --scope repository --json
78
+ npx --yes @artifactshare/cli share ./report.html --visibility private --json
79
+ npx --yes @artifactshare/cli config get home_audience --scope effective --json
79
80
  ```
80
81
 
81
- Pass `--visibility` to override the destination default for that post only. For project creation, pass `projects create <name> --visibility private|workspace`; persistent project defaults are documented in `projects create --help`.
82
+ 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
83
 
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.
84
+ 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
85
 
85
86
  ## For AI agents
86
87
 
package/dist/index.js CHANGED
@@ -81,7 +81,6 @@ const COMMAND_NAMES = /* @__PURE__ */ new Set([
81
81
  "move",
82
82
  "artifacts",
83
83
  "comments",
84
- "request-access",
85
84
  "whoami",
86
85
  "doctor",
87
86
  "profiles",
@@ -144,7 +143,6 @@ function isProfileCredentialSource(source) {
144
143
  }
145
144
  //#endregion
146
145
  //#region src/errors.ts
147
- const REQUEST_ACCESS_COMMAND$1 = `${CLI_INVOCATION} request-access --json`;
148
146
  const PROJECTS_LIST_COMMAND = `${CLI_INVOCATION} projects list --json`;
149
147
  function apiError(body) {
150
148
  const error = body?.error;
@@ -168,19 +166,13 @@ function mapApiError(status, body, options = {}) {
168
166
  }
169
167
  if (apiCode === "upload-not-allowed") return cliError({
170
168
  code: "upload_not_allowed",
171
- message: "This account cannot share yet.",
172
- why: "Artifact Share is currently limiting who can share.",
173
- hint: `Run ${REQUEST_ACCESS_COMMAND$1} to join the early-access waitlist; an operator opens sharing afterwards.`,
169
+ message: "Sharing is temporarily unavailable.",
170
+ why: "Artifact Share has paused sharing for now.",
171
+ hint: "Contact Artifact Share support if you need sharing enabled.",
174
172
  agentRecoverable: false,
175
173
  requiresHuman: true,
176
- recovery: {
177
- kind: "run_command",
178
- command: REQUEST_ACCESS_COMMAND$1
179
- },
180
- details: {
181
- limit: "upload_access",
182
- suggested_command: REQUEST_ACCESS_COMMAND$1
183
- }
174
+ recovery: { kind: "ask_human" },
175
+ details: { limit: "upload_access" }
184
176
  });
185
177
  if (apiCode === "self-upload-disabled") return cliError({
186
178
  code: "self_upload_disabled",
@@ -203,9 +195,9 @@ function mapApiError(status, body, options = {}) {
203
195
  });
204
196
  if (apiCode === "contributor-limit-exceeded") return cliError({
205
197
  code: "contributor_limit_exceeded",
206
- message: apiMessage ?? "Contributor limit exceeded.",
207
- why: "This workspace reached the contributor limit for uploads.",
208
- hint: "Ask an administrator to adjust workspace limits, then retry.",
198
+ message: apiMessage ?? "This workspace cannot add more contributors. Contact the Artifact Share team.",
199
+ why: "This workspace cannot add more contributors.",
200
+ hint: "Contact the Artifact Share team, then retry.",
209
201
  agentRecoverable: false,
210
202
  requiresHuman: true,
211
203
  recovery: { kind: "ask_human" }
@@ -684,7 +676,7 @@ function normalizeApiCode(value) {
684
676
  }
685
677
  function uploadBlockedHint(code) {
686
678
  if (code === "self-upload-disabled") return "Sign in with Google or Microsoft on the Artifact Share website, then retry share.";
687
- if (code === "upload-not-allowed") return `Run ${REQUEST_ACCESS_COMMAND$1} to join the waitlist, then retry share once an operator opens sharing.`;
679
+ if (code === "upload-not-allowed") return "Contact Artifact Share support; sharing is temporarily unavailable.";
688
680
  if (code === "upload-policy-unavailable") return "Retry doctor later; upload permission could not be checked.";
689
681
  return "Resolve the upload issue, then retry share.";
690
682
  }
@@ -3419,7 +3411,6 @@ async function runDelete(parsed, mode) {
3419
3411
  //#endregion
3420
3412
  //#region src/command-runners/doctor.ts
3421
3413
  const LOGIN_COMMAND = `${CLI_INVOCATION} login`;
3422
- const REQUEST_ACCESS_COMMAND = `${CLI_INVOCATION} request-access`;
3423
3414
  function bearerTokenBlocksLogin(data) {
3424
3415
  return data.auth.credential_source === "env" || data.auth.credential_source === "token_option";
3425
3416
  }
@@ -3433,11 +3424,6 @@ function resolveDoctorNextCommand(data) {
3433
3424
  return LOGIN_COMMAND;
3434
3425
  }
3435
3426
  if ((data.auth.code === "auth_required" || data.auth.code === "token_invalid") && !bearerTokenBlocksLogin(data)) return data.auth.profile ? `${LOGIN_COMMAND} --profile ${data.auth.profile}` : LOGIN_COMMAND;
3436
- if (!data.network.ok) return null;
3437
- if (data.upload.checked && !data.upload.ok) {
3438
- if (data.upload.code === "upload-not-allowed") return REQUEST_ACCESS_COMMAND;
3439
- return null;
3440
- }
3441
3427
  return null;
3442
3428
  }
3443
3429
  function authRecovery(data, nextCommand) {
@@ -4666,38 +4652,6 @@ async function resolveProjectIdByName(projectName, token, options, init, errorOp
4666
4652
  return { projectId: candidates[0].project_id };
4667
4653
  }
4668
4654
  //#endregion
4669
- //#region src/command-runners/request-access.ts
4670
- const NOTE_MAX = 2e3;
4671
- async function runRequestAccess(parsed, mode) {
4672
- const command = "request-access";
4673
- const note = parsed.options.note;
4674
- if (note !== void 0 && note.length > NOTE_MAX) return writeFailure(command, validationError(`A note can be at most ${NOTE_MAX} characters.`, "Shorten --note and retry."), mode, 1);
4675
- const credential = await resolveCredential(parsed.options, await resolveProjectConfig());
4676
- if (!credential.ok) return writeFailure(command, credential.error, mode, 1);
4677
- const request = await requestConfig(parsed.options);
4678
- if (request.error) return writeFailure(command, request.error, mode, 1);
4679
- const result = await runAuthenticatedApi(credential, parsed.options, async (current) => {
4680
- const requested = await apiPost("/api/cli/request-access", current.token, { note }, parsed.options, request.init, {
4681
- credentialSource: current.source,
4682
- profile: current.profile,
4683
- profileCredentialKind: current.profileCredentialKind
4684
- });
4685
- return requested.error ? { error: requested.error } : { data: requested.body };
4686
- });
4687
- if (result.error) return writeFailure(command, result.error, mode, 1);
4688
- const body = result.data;
4689
- const data = {
4690
- requested: body?.requested === true,
4691
- already_enabled: body?.already_enabled === true,
4692
- status: typeof body?.status === "string" ? body.status : null,
4693
- created: body?.created === true,
4694
- requires_operator_action: body?.requires_operator_action === true,
4695
- message: typeof body?.message === "string" ? body.message : ""
4696
- };
4697
- writeSuccess(command, data, mode);
4698
- if (!mode.json && data.message) writeText(`${data.message}\n`);
4699
- }
4700
- //#endregion
4701
4655
  //#region src/command-runners/resolve.ts
4702
4656
  async function runResolve(parsed, mode) {
4703
4657
  const command = "resolve";
@@ -5082,10 +5036,6 @@ async function commentsDeleteRunner(ctx) {
5082
5036
  const parsed = parsedArgsFromContext("comments delete", ctx);
5083
5037
  return await runWithSkillAutoUpdate(parsed, () => runCommentsDelete(parsed, outputMode(parsed.options)));
5084
5038
  }
5085
- async function requestAccessRunner(ctx) {
5086
- const parsed = parsedArgsFromContext("request-access", ctx);
5087
- return await runWithSkillAutoUpdate(parsed, () => runRequestAccess(parsed, outputMode(parsed.options)));
5088
- }
5089
5039
  async function whoamiRunner(ctx) {
5090
5040
  const parsed = parsedArgsFromContext("whoami", ctx);
5091
5041
  return await runWithSkillAutoUpdate(parsed, () => runWhoami(parsed, outputMode(parsed.options)));
@@ -5260,7 +5210,6 @@ async function runGunshi(argv) {
5260
5210
  move: lazyCommand(moveDefinition, moveRunner),
5261
5211
  artifacts: artifactsDefinition,
5262
5212
  comments: commentsDefinition,
5263
- "request-access": lazyCommand(requestAccessDefinition, requestAccessRunner),
5264
5213
  whoami: lazyCommand(whoamiDefinition, whoamiRunner),
5265
5214
  doctor: lazyCommand(doctorDefinition, doctorRunner),
5266
5215
  changelog: lazyCommand(changelogDefinition, changelogRunner),
@@ -5340,7 +5289,6 @@ npx --yes @artifactshare/cli skills install --tool codex --json
5340
5289
  npx --yes @artifactshare/cli skills list --json
5341
5290
  npx --yes @artifactshare/cli init --profile <name> --project-id <id> --json
5342
5291
  npx --yes @artifactshare/cli share <path> --home --json
5343
- npx --yes @artifactshare/cli request-access --json
5344
5292
  npx --yes @artifactshare/cli whoami --json
5345
5293
  npx --yes @artifactshare/cli doctor --json
5346
5294
 
@@ -5352,7 +5300,7 @@ Common failures:
5352
5300
  auth_required Use ${TOKEN_ENV_VAR} or ${TOKEN_OPTION}; tokens are issued at ${DEFAULT_BASE_URL}/settings/tokens
5353
5301
  invalid_destination Choose --project-id <id> or --home
5354
5302
  target_not_found Use an artifact ID, share URL, or sandbox URL
5355
- upload_not_allowed Upload access is limited; run request-access to join the waitlist`,
5303
+ upload_not_allowed Sharing is temporarily unavailable; contact Artifact Share support`,
5356
5304
  run: () => {}
5357
5305
  });
5358
5306
  const loginDefinition = define({
@@ -5433,11 +5381,14 @@ const shareDefinition = define({
5433
5381
  npx --yes @artifactshare/cli share report.html --project-id <id> --key nightly-report --json
5434
5382
 
5435
5383
  Posting to a project delivers to the audience defined by that project.
5436
- With no destination, share posts to home. The repository home_audience selects
5437
- private (only you) or workspace (everyone in the workspace/company):
5438
- npx --yes @artifactshare/cli config get home_audience --json
5439
- npx --yes @artifactshare/cli config set home_audience private --scope repository --json
5440
- Use --visibility as a per-post override of the destination default.
5384
+ With no destination, share posts to home. Choose the setting by purpose:
5385
+ Personal safe default (this CLI environment only):
5386
+ npx --yes @artifactshare/cli config set home_audience private --scope user --json
5387
+ Shared policy agreed by all repository participants:
5388
+ npx --yes @artifactshare/cli config set home_audience workspace --scope repository --json
5389
+ One-time audience for a single post: pass --visibility private|workspace.
5390
+ Check the resolved audience before posting:
5391
+ npx --yes @artifactshare/cli config get home_audience --scope effective --json
5441
5392
 
5442
5393
  To keep an existing share URL, use update:
5443
5394
  npx --yes @artifactshare/cli update <artifact-id-or-url> <path> --json
@@ -5446,7 +5397,7 @@ For repeat jobs, use --key: first share creates the artifact, later runs add ver
5446
5397
 
5447
5398
  Common failures:
5448
5399
  auth_required Set ARTIFACTSHARE_TOKEN before share
5449
- upload_not_allowed Your account cannot share yet; request access from an operator
5400
+ upload_not_allowed Publishing is temporarily unavailable; contact Artifact Share support
5450
5401
  file_too_large Reduce file or directory size and retry
5451
5402
  validation_failed Check file type (.html / .md for single files) and directory layout
5452
5403
  key_target_moved The artifact for --key moved; update it by ID or use a new key
@@ -5476,7 +5427,7 @@ Common failures:
5476
5427
  auth_required Set ARTIFACTSHARE_TOKEN before update
5477
5428
  target_not_found Retry with an artifact ID, share URL, or sandbox URL
5478
5429
  artifact_kind_mismatch Use a file for single-file artifacts or a directory for static sites
5479
- upload_not_allowed Your account cannot share yet; request access from an operator
5430
+ upload_not_allowed Publishing is temporarily unavailable; contact Artifact Share support
5480
5431
  file_too_large Reduce file or directory size and retry
5481
5432
  validation_failed Check file type (.html / .md for single files) and directory layout`
5482
5433
  });
@@ -6082,9 +6033,14 @@ const configDefinition = define({
6082
6033
  unset: lazyCommand(configUnsetDefinition, configUnsetRunner)
6083
6034
  },
6084
6035
  examples: `Posting to a project delivers to that project's audience. Without a destination, share posts to home.
6085
- Set the repository home audience to private (only you) or workspace (everyone in the workspace/company):
6086
- npx --yes @artifactshare/cli config get home_audience --json
6087
- npx --yes @artifactshare/cli config set home_audience private --scope repository --json
6036
+ Choose the home audience by purpose:
6037
+ Personal safe default (this CLI environment only):
6038
+ npx --yes @artifactshare/cli config set home_audience private --scope user --json
6039
+ Shared policy agreed by all repository participants:
6040
+ npx --yes @artifactshare/cli config set home_audience workspace --scope repository --json
6041
+ One-time audience for a single post: pass --visibility private|workspace.
6042
+ Check the resolved audience with:
6043
+ npx --yes @artifactshare/cli config get home_audience --scope effective --json
6088
6044
 
6089
6045
  Keys:
6090
6046
  home_audience Canonical home-post audience.
@@ -6153,7 +6109,7 @@ The response includes project.id and next_command for share --project-id.
6153
6109
 
6154
6110
  Common failures:
6155
6111
  auth_required Set ARTIFACTSHARE_TOKEN before projects create
6156
- upload_not_allowed Your account cannot share yet; request access from an operator
6112
+ upload_not_allowed Publishing is temporarily unavailable; contact Artifact Share support
6157
6113
  validation_failed Pass a non-empty name and valid --visibility`
6158
6114
  });
6159
6115
  const projectsEditDefinition = define({
@@ -6393,27 +6349,6 @@ Common failures:
6393
6349
  skill_update_conflict An unmanaged or broken skill file exists; inspect it before overwriting
6394
6350
  profile_not_found Run profiles list to see saved profiles, or login --profile <name>`
6395
6351
  });
6396
- const requestAccessDefinition = define({
6397
- name: "request-access",
6398
- description: "Join the early-access waitlist for sharing.",
6399
- toKebab: true,
6400
- args: {
6401
- ...commonArgs,
6402
- note: {
6403
- type: "string",
6404
- toKebab: true,
6405
- description: "Optional message for the Artifact Share team (max 2000 characters)"
6406
- }
6407
- },
6408
- examples: `npx --yes @artifactshare/cli request-access --json
6409
- npx --yes @artifactshare/cli request-access --note "Sharing weekly reports for my team" --json
6410
-
6411
- Joining the waitlist does not enable sharing immediately; an operator opens it.
6412
- Re-running updates your note without creating a duplicate entry.
6413
-
6414
- Common failures:
6415
- auth_required Set ARTIFACTSHARE_TOKEN, pass --token, or login --profile <name>`
6416
- });
6417
6352
  const whoamiDefinition = define({
6418
6353
  name: "whoami",
6419
6354
  description: "Show the authenticated CLI user.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artifactshare/cli",
3
- "version": "0.7.0",
3
+ "version": "0.8.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: Share, publish, upload, host, update, open, or read back existing f
4
4
  ---
5
5
 
6
6
  <!-- artifactshare-skill
7
- version: 26
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
- - The repository `home_audience` selects `private` (only you) or `workspace`
98
- (everyone in the workspace/company). Check or set it with:
99
- `config get home_audience --json` and
100
- `config set home_audience private --scope repository --json`.
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, whose repository `home_audience` is
113
- `private` (only you) or `workspace` (everyone in the workspace/company). Check
114
- or set it with `config get home_audience --json` and
115
- `config set home_audience private --scope repository --json`.
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: 26
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. The repository `home_audience` selects `private` (only you) or `workspace` (everyone in the workspace/company): inspect with `config get home_audience --json` and set with `config set home_audience private --scope repository --json`. Use `--visibility private|workspace|project` as a per-post override; `--grant-email` does not change the resolved default.
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.