agent-shim 11.81.0 → 11.83.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 +3 -2
- package/dist/cli.cjs +3686 -1827
- package/dist/index.cjs +1489 -871
- package/dist/index.mjs +1475 -858
- package/dist/types/index.d.ts +170 -99
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -82,13 +82,14 @@ The full mechanics, including the credential block, the merge algorithm, conditi
|
|
|
82
82
|
```
|
|
83
83
|
agent-shim <noun> <verb> [name] [options] # nouns: identity, profile, pool, provider, rule, job
|
|
84
84
|
|
|
85
|
-
agent-shim identity add <name> [--json]
|
|
85
|
+
agent-shim identity add <name> [--keep-keychain-login] [--json] # on macOS refused while the Keychain holds a Claude Code login filed for the directory (left by a renamed or removed identity of that name); --keep-keychain-login creates the identity signed in as that account on purpose, sharing the login with any identity that holds it
|
|
86
86
|
agent-shim identity list [--json]
|
|
87
87
|
agent-shim identity show <name> [--json]
|
|
88
88
|
agent-shim identity set <name> [--label <text> | --no-label] [--default-profile <profile> | --no-default-profile] [--provider <provider> | --no-provider] [--[no-]allow-ambient-credential] [--json]
|
|
89
89
|
agent-shim identity set <name> [--credential <source>]... [--credential-target <bearer|apiKey|oauthToken>] [--no-credential] [--json]
|
|
90
90
|
agent-shim identity set <name> [--anchor <days>@<HH:MM>[/<zone>]]... [--no-anchor] [--json]
|
|
91
91
|
agent-shim identity remove <name> [--yes] [--json]
|
|
92
|
+
agent-shim identity rename <old> <new> [--dry-run | --discard-journal] [--json] # move the directory, carry the login across (a macOS login too large for one `security -i` line is refused with nothing changed) and rewrite every reference to the name; refused while a session is running or starting on the identity, one left unfinished is finished by running it again, and --discard-journal removes the record of one whose identity is under neither name or under both, or under the old name alone with no step recorded as begun or done
|
|
92
93
|
agent-shim identity use <name> [--json]
|
|
93
94
|
agent-shim @<name> # shorthand for `identity use <name>`
|
|
94
95
|
agent-shim identity resolve-conflicts <name> # interactively resolve a retained superseded farm's conflicts
|
|
@@ -205,7 +206,7 @@ agent-shim run [@<identity>] [launch flags] [claude arguments]
|
|
|
205
206
|
claude @<identity> ... # the same, once `agent-shim shim enable` has run
|
|
206
207
|
```
|
|
207
208
|
|
|
208
|
-
Every `list`, `show`, `check`, `doctor` and `headroom status` prints text by default and JSON with `--json`, and so do the mutating commands (`add`, `set`, `remove` and `use` on identities, profiles, providers, pools and rules), which print one object naming the `action`, the `kind`, the `name` and, for a creation or update, the stored `value`. Prompts appear only when standard input is a terminal; without one, a command that needs input fails with the option that supplies it (a `remove` needs `--yes`). Failures print as `agent-shim: <message>` and exit 1, usage errors exit 2, a selected provider or identity whose credential block yields no token exits 64, and `AGENT_SHIM_DEBUG=1` adds stack traces to unexpected errors. `agent-shim completion <bash|zsh|fish>` prints a shell completion script.
|
|
209
|
+
Every `list`, `show`, `check`, `doctor` and `headroom status` prints text by default and JSON with `--json`, and so do the mutating commands (`add`, `set`, `remove` and `use` on identities, profiles, providers, pools and rules), which print one object naming the `action`, the `kind`, the `name` and, for a creation or update, the stored `value`. `identity rename` prints its report of what it moved and rewrote as the `value`, with the `action` `planned` under `--dry-run`. Prompts appear only when standard input is a terminal; without one, a command that needs input fails with the option that supplies it (a `remove` needs `--yes`). Failures print as `agent-shim: <message>` and exit 1, usage errors exit 2, a selected provider or identity whose credential block yields no token exits 64, and `AGENT_SHIM_DEBUG=1` adds stack traces to unexpected errors. `agent-shim completion <bash|zsh|fish>` prints a shell completion script.
|
|
209
210
|
|
|
210
211
|
`agent-shim check [path]` resolves the full cascade for a directory without touching the farm, and is the primary way to answer "why is X shared or hidden here". `agent-shim doctor` audits the whole `~/.agent-shim` config graph at once: every identity, profile, `extends` chain, provider (naming the exact replacement for a file still in the format before the credential block) and directory rule, plus whether the right `agent-shim` is the one actually on `PATH`.
|
|
211
212
|
|