gigabuddy 0.3.1 → 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 CHANGED
@@ -15,25 +15,51 @@ npx gigabuddy login
15
15
  ## Usage
16
16
 
17
17
  ```bash
18
- gigabuddy login
18
+ gigabuddy setup # put Gigabuddy into Claude Code
19
+ gigabuddy login # sign in + set npm up for @gigabuddy packages
19
20
  npm install @gigabuddy/app-kit
20
21
  ```
21
22
 
22
- `login` opens your browser to sign in (device flow), stores your credential,
23
- and configures `~/.npmrc` for the `@gigabuddy` registry.
23
+ `setup` installs the [Gigabuddy plugin](https://github.com/gigabuddy/claude-plugin)
24
+ into Claude Code for you (it runs Claude Code's own `claude plugin` commands;
25
+ if `claude` isn't on your PATH it prints the `/plugin` commands to run
26
+ yourself). `login` opens your browser to sign in (device flow), stores your
27
+ credential, and configures `~/.npmrc` for the `@gigabuddy` registry.
24
28
 
25
29
  ## Commands
26
30
 
27
31
  | Command | Description |
28
32
  | ------------------ | -------------------------------------------------------------- |
33
+ | `setup` | Install the Gigabuddy plugin into Claude Code |
29
34
  | `login` | Sign in and configure `~/.npmrc` for the `@gigabuddy` registry |
30
- | `login --npm` | Refresh only the npm registry credential |
31
- | `status` | Show the signed-in account |
32
- | `doctor [package]` | Diagnose sign-in, npm config, and registry access |
33
- | `logout` | Sign out (`--npm` removes only the npm credential) |
35
+ | `login --npm` | Refresh only the npm registry credential |
36
+ | `status` | Show the signed-in account |
37
+ | `accounts` | List accounts on this machine and which is active here |
38
+ | `use <name>` | Use an account for this repo (`--default`: machine-wide) |
39
+ | `doctor [package]` | Diagnose sign-in, npm config, and registry access |
40
+ | `logout` | Sign out (`--npm` removes only the npm credential) |
34
41
 
35
- **Options:** `--no-npm` signs in without modifying `~/.npmrc`. `--staging`
36
- targets the staging environment; staging credentials are stored separately.
42
+ **Options:** `--account <name>` acts as a specific account. `--no-npm` signs in
43
+ without modifying `~/.npmrc`. `--staging` targets the staging environment;
44
+ staging credentials are stored separately.
45
+
46
+ ## Multiple accounts
47
+
48
+ Sign in more than one identity (say, personal and work) and choose which one a
49
+ repository uses:
50
+
51
+ ```bash
52
+ gigabuddy login --account work # sign a second identity in
53
+ gigabuddy use work # this repo (worktrees included) acts as it
54
+ gigabuddy use --default work # or make it the machine-wide default
55
+ gigabuddy accounts # who is signed in, and which is active here
56
+ ```
57
+
58
+ Which account is active resolves as: the `GIGABUDDY_ACCOUNT` environment
59
+ variable, then the closest repo pin (set by `gigabuddy use`), then your
60
+ default account. Each account keeps its own credentials under `~/.gigabuddy`;
61
+ the npm credential in `~/.npmrc` is machine-wide and follows whichever
62
+ account ran `login` last.
37
63
 
38
64
  ## Credentials
39
65