@artifactshare/cli 0.11.1 → 0.11.3
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 +9 -0
- package/README.md +14 -2
- package/dist/index.js +622 -101
- package/package.json +1 -1
- package/skills/artifactshare/SKILL.md +13 -5
- package/skills/artifactshare/artifactshare.mdc +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,15 @@ For user-facing announcements, see https://artifactshare.com/updates?product=cli
|
|
|
5
5
|
|
|
6
6
|
## Unreleased
|
|
7
7
|
|
|
8
|
+
## 0.11.3 - 2026-08-20
|
|
9
|
+
|
|
10
|
+
- Support Windows Credential Manager for saved profiles, resolve Windows config homes without `HOME`, and expose token-store diagnostics from `doctor --json`. The explicit plaintext fallback is now limited to POSIX systems with mode `0600` instead of implying Windows protection from ignored mode bits.
|
|
11
|
+
- `profiles import-token` detects workspace-issued bot tokens (`asb_` prefix), imports them as rotating refresh credentials (the first refresh consumes the displayed token; the rotated credential is stored before success is reported), persists `kind: "bot"` in the profile, and adds `--force` to replace an existing profile credential (no-op for API tokens). Rejected bot tokens report `bot_token_invalid`; runtime 401s on bot profiles now point to an admin reissue instead of login/preset/API-token recovery. `profiles list` and `doctor` surface bot profiles.
|
|
12
|
+
|
|
13
|
+
## 0.11.2 - 2026-08-12
|
|
14
|
+
|
|
15
|
+
- Direct agents with a user present to project-scoped browser login, and reserve API-token guidance for unattended CI or scripts without browser approval.
|
|
16
|
+
|
|
8
17
|
## 0.11.1 - 2026-08-12
|
|
9
18
|
|
|
10
19
|
- Warn in `doctor` when an agent credential's approved project differs from the configured default destination, and provide an `init` command to align them.
|
package/README.md
CHANGED
|
@@ -45,7 +45,11 @@ runs add versions to the same file.
|
|
|
45
45
|
|
|
46
46
|
- **Interactive**: run `npx --yes @artifactshare/cli login`, or use `login --preset agent` to authorize a profile for one selected project with restricted agent operations. Running `share`, `update`, or `download` directly also starts sign-in 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.
|
|
47
47
|
- **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.
|
|
48
|
-
- 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. Use `logout --profile <name>` to revoke a device-login credential before removing it locally while keeping profile metadata, or `profiles delete <name>` to remove the profile entry too. API-token profiles are only removed locally.
|
|
48
|
+
- 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. Workspace-issued bot tokens (`asb_` prefix) are imported the same way: the CLI detects the prefix, performs the first rotating refresh (which consumes the displayed token), and stores the rotated credential; replacing an existing profile credential with a bot token requires `--force` (a no-op for API tokens), and a rejected bot token reports `bot_token_invalid` (recovery is an admin reissue). Use `logout --profile <name>` to revoke a device-login credential before removing it locally while keeping profile metadata, or `profiles delete <name>` to remove the profile entry too. API-token profiles are only removed locally.
|
|
49
|
+
|
|
50
|
+
Successful `share --json` output may include `data.warnings`. Surface each
|
|
51
|
+
warning to the user. `slack_reauthorization_required` means the destination
|
|
52
|
+
project's Slack channel must be reauthorized.
|
|
49
53
|
|
|
50
54
|
## Commands
|
|
51
55
|
|
|
@@ -64,7 +68,7 @@ runs add versions to the same file.
|
|
|
64
68
|
| `projects list / create / edit` | List, create, and edit project destinations and audience |
|
|
65
69
|
| `move <target>` | Move an existing file into a project or back home; `edit` is preferred for new automation |
|
|
66
70
|
| `login` / `logout` / `whoami` | Sign in, revoke a device-login credential before removing it locally, and check who you are |
|
|
67
|
-
| `doctor` | Diagnose auth, destination, network, and upload readiness — tells you the next command to run
|
|
71
|
+
| `doctor` | Diagnose token storage, auth, destination, network, and upload readiness — tells you the next command to run |
|
|
68
72
|
| `changelog` | Show the installed version, this release's notes, and the public updates page |
|
|
69
73
|
| `profiles list / use / import-token / delete` | Switch between local account profiles, import an issued token from stdin, and delete profile entries |
|
|
70
74
|
| `init` | Set up this directory: detect Claude Code, Codex, or Cursor and install the skill in user scope, then show next steps; or save defaults with `--profile` / `--project-id` |
|
|
@@ -74,6 +78,14 @@ Public command paths covered by this reference:
|
|
|
74
78
|
|
|
75
79
|
`append`, `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`.
|
|
76
80
|
|
|
81
|
+
Saved credentials use macOS Keychain, Linux Secret Service, or Windows
|
|
82
|
+
Credential Manager. If no native store is available, the explicit
|
|
83
|
+
`--allow-plaintext-token-store` fallback writes under the resolved user config
|
|
84
|
+
directory with mode `0600` on POSIX systems. It is unavailable on Windows,
|
|
85
|
+
where saved profiles require Credential Manager. Run `doctor --json` to inspect
|
|
86
|
+
the resolved config home, available native store, and plaintext credential
|
|
87
|
+
count.
|
|
88
|
+
|
|
77
89
|
## Where shared files are delivered
|
|
78
90
|
|
|
79
91
|
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:
|