claude-use 1.5.0 → 2.0.1
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 +2 -2
- package/dist/cli.cjs +18 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -146,11 +146,11 @@ Every top-level entry in `~/.claude` is classified into one of five categories,
|
|
|
146
146
|
|---|---|---|
|
|
147
147
|
| `secret` | **Never** — hardcoded, cannot be overridden by any configuration layer | `.credentials.json`, `backups` |
|
|
148
148
|
| `runtime` | No | `daemon*`, `.git*`, `.DS_Store`, `mcp-needs-auth-cache.json`, `shell-snapshots`, `statsig`, `telemetry`, `stats-cache.json`, `usage-data`, `ide`, `cache`, `scheduled_tasks.lock` |
|
|
149
|
-
| `history` |
|
|
149
|
+
| `history` | Yes | `projects`, `sessions`, `session-env`, `teams`, `tasks`, `todos`, `history.jsonl`, `transcripts`, `paste-cache`, `file-history`, `plans`, `workflows`, `jobs`, `debug`, `downloads`, `chrome` |
|
|
150
150
|
| `knowledge` | Yes | `skills`, `agents`, `rules`, `memory`, `commands`, `plugins`, `hooks`, `AGENTS.md`, `CLAUDE.md`, `README.md` |
|
|
151
151
|
| `settings` | Yes | `settings.json`, `settings.local.json` |
|
|
152
152
|
|
|
153
|
-
|
|
153
|
+
The default posture is "identities differ only in credentials": `knowledge`, `settings`, and `history` are all shared out of the box, and only `runtime` stays closed — not as a confidentiality boundary, but because daemon locks, PIDs, `.git` state, and IDE/shell snapshots are live per-process or per-machine artifacts that make no sense symlinked across two separate running identities. A configuration profile can close `history` (or `runtime`, or anything else) wholesale for a specific identity or directory — e.g. to keep a client engagement's sessions from leaking into a personal or internal identity — or share/hide individual items within an otherwise-closed category.
|
|
154
154
|
|
|
155
155
|
**`all` is shorthand for every overridable category at once**, for a profile that wants "share everything except credentials" without hand-listing `runtime`, `history`, `knowledge`, and `settings` individually — `{ "categories": { "all": true } }` expands to exactly those four set to `true`. `secret` can never be included, by construction: `all` only ever expands over the four categories a configuration layer is allowed to toggle in the first place, the same restriction a hand-written `categories` object is already under. An explicit named category always wins over `all` in the same object regardless of which one is written first, so `{ "all": true, "runtime": false }` means "share everything except runtime" — the general `all` setting, narrowed by the specific override, matching how a more specific layer already beats a less specific one everywhere else in this cascade. The same shorthand works identically from `--category all=true`/`CLAUDE_USE_CATEGORY_OVERRIDE=all=true` and `claude-use profile set <name> --category all=true`, not just profile JSON files — one expansion, shared by all three input paths.
|
|
156
156
|
|
package/dist/cli.cjs
CHANGED
|
@@ -221857,7 +221857,7 @@ var categories_default_default = {
|
|
|
221857
221857
|
// package.json
|
|
221858
221858
|
var package_default = {
|
|
221859
221859
|
name: "claude-use",
|
|
221860
|
-
version: "
|
|
221860
|
+
version: "2.0.1",
|
|
221861
221861
|
description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
|
|
221862
221862
|
license: "Apache-2.0",
|
|
221863
221863
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -236628,7 +236628,7 @@ var CategoryClassificationOverlaySchema = external_exports.strictObject({
|
|
|
236628
236628
|
var SHIPPED_CATEGORY_DEFAULTS = Object.freeze({
|
|
236629
236629
|
secret: false,
|
|
236630
236630
|
runtime: false,
|
|
236631
|
-
history:
|
|
236631
|
+
history: true,
|
|
236632
236632
|
knowledge: true,
|
|
236633
236633
|
settings: true
|
|
236634
236634
|
});
|
|
@@ -240502,6 +240502,16 @@ var IdentityAlreadyExistsError = class extends CliError {
|
|
|
240502
240502
|
}
|
|
240503
240503
|
identityName;
|
|
240504
240504
|
};
|
|
240505
|
+
var InvalidIdentityNameError = class extends CliError {
|
|
240506
|
+
constructor(attemptedName) {
|
|
240507
|
+
super(
|
|
240508
|
+
`"${attemptedName}" is not a valid identity name \u2014 identity names must start with a letter or number and may only contain letters, numbers, dots, hyphens, and underscores.`
|
|
240509
|
+
);
|
|
240510
|
+
this.attemptedName = attemptedName;
|
|
240511
|
+
this.name = "InvalidIdentityNameError";
|
|
240512
|
+
}
|
|
240513
|
+
attemptedName;
|
|
240514
|
+
};
|
|
240505
240515
|
function identityJsonPath(paths, name) {
|
|
240506
240516
|
return import_node_path16.default.join(paths.identitiesDir, name, "identity.json");
|
|
240507
240517
|
}
|
|
@@ -240515,9 +240525,12 @@ function addIdentity(paths, name) {
|
|
|
240515
240525
|
if (identityExists(paths, name)) {
|
|
240516
240526
|
throw new IdentityAlreadyExistsError(name);
|
|
240517
240527
|
}
|
|
240518
|
-
const
|
|
240519
|
-
|
|
240520
|
-
|
|
240528
|
+
const parsed = IdentitySchema.safeParse({ name, allowAmbientCredential: false });
|
|
240529
|
+
if (!parsed.success) {
|
|
240530
|
+
throw new InvalidIdentityNameError(name);
|
|
240531
|
+
}
|
|
240532
|
+
writeJsonAtomic(identityJsonPath(paths, name), parsed.data);
|
|
240533
|
+
return parsed.data;
|
|
240521
240534
|
}
|
|
240522
240535
|
function useIdentity(paths, name) {
|
|
240523
240536
|
if (!identityExists(paths, name)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Joseph Mearman <joseph@mearman.co.uk>",
|