@artifactshare/cli 0.7.1 → 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,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.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
+
6
10
  ## 0.7.1 - 2026-07-14
7
11
 
8
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`.
package/README.md CHANGED
@@ -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,7 +66,7 @@ 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
 
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({
@@ -5449,7 +5397,7 @@ For repeat jobs, use --key: first share creates the artifact, later runs add ver
5449
5397
 
5450
5398
  Common failures:
5451
5399
  auth_required Set ARTIFACTSHARE_TOKEN before share
5452
- 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
5453
5401
  file_too_large Reduce file or directory size and retry
5454
5402
  validation_failed Check file type (.html / .md for single files) and directory layout
5455
5403
  key_target_moved The artifact for --key moved; update it by ID or use a new key
@@ -5479,7 +5427,7 @@ Common failures:
5479
5427
  auth_required Set ARTIFACTSHARE_TOKEN before update
5480
5428
  target_not_found Retry with an artifact ID, share URL, or sandbox URL
5481
5429
  artifact_kind_mismatch Use a file for single-file artifacts or a directory for static sites
5482
- 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
5483
5431
  file_too_large Reduce file or directory size and retry
5484
5432
  validation_failed Check file type (.html / .md for single files) and directory layout`
5485
5433
  });
@@ -6161,7 +6109,7 @@ The response includes project.id and next_command for share --project-id.
6161
6109
 
6162
6110
  Common failures:
6163
6111
  auth_required Set ARTIFACTSHARE_TOKEN before projects create
6164
- 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
6165
6113
  validation_failed Pass a non-empty name and valid --visibility`
6166
6114
  });
6167
6115
  const projectsEditDefinition = define({
@@ -6401,27 +6349,6 @@ Common failures:
6401
6349
  skill_update_conflict An unmanaged or broken skill file exists; inspect it before overwriting
6402
6350
  profile_not_found Run profiles list to see saved profiles, or login --profile <name>`
6403
6351
  });
6404
- const requestAccessDefinition = define({
6405
- name: "request-access",
6406
- description: "Join the early-access waitlist for sharing.",
6407
- toKebab: true,
6408
- args: {
6409
- ...commonArgs,
6410
- note: {
6411
- type: "string",
6412
- toKebab: true,
6413
- description: "Optional message for the Artifact Share team (max 2000 characters)"
6414
- }
6415
- },
6416
- examples: `npx --yes @artifactshare/cli request-access --json
6417
- npx --yes @artifactshare/cli request-access --note "Sharing weekly reports for my team" --json
6418
-
6419
- Joining the waitlist does not enable sharing immediately; an operator opens it.
6420
- Re-running updates your note without creating a duplicate entry.
6421
-
6422
- Common failures:
6423
- auth_required Set ARTIFACTSHARE_TOKEN, pass --token, or login --profile <name>`
6424
- });
6425
6352
  const whoamiDefinition = define({
6426
6353
  name: "whoami",
6427
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.1",
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",