claude-use 1.4.0 → 2.0.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 +2 -2
- package/dist/cli.cjs +108 -60
- 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
|
@@ -973,9 +973,9 @@ var require_parse_json = __commonJS({
|
|
|
973
973
|
}
|
|
974
974
|
});
|
|
975
975
|
|
|
976
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
976
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/common.js
|
|
977
977
|
var require_common = __commonJS({
|
|
978
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
978
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/common.js"(exports2, module2) {
|
|
979
979
|
"use strict";
|
|
980
980
|
function isNothing(subject) {
|
|
981
981
|
return typeof subject === "undefined" || subject === null;
|
|
@@ -1017,9 +1017,9 @@ var require_common = __commonJS({
|
|
|
1017
1017
|
}
|
|
1018
1018
|
});
|
|
1019
1019
|
|
|
1020
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1020
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/exception.js
|
|
1021
1021
|
var require_exception = __commonJS({
|
|
1022
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1022
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/exception.js"(exports2, module2) {
|
|
1023
1023
|
"use strict";
|
|
1024
1024
|
function formatError2(exception, compact) {
|
|
1025
1025
|
let where = "";
|
|
@@ -1055,9 +1055,9 @@ var require_exception = __commonJS({
|
|
|
1055
1055
|
}
|
|
1056
1056
|
});
|
|
1057
1057
|
|
|
1058
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1058
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/snippet.js
|
|
1059
1059
|
var require_snippet = __commonJS({
|
|
1060
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1060
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/snippet.js"(exports2, module2) {
|
|
1061
1061
|
"use strict";
|
|
1062
1062
|
var common = require_common();
|
|
1063
1063
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
@@ -1135,9 +1135,9 @@ var require_snippet = __commonJS({
|
|
|
1135
1135
|
}
|
|
1136
1136
|
});
|
|
1137
1137
|
|
|
1138
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1138
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type.js
|
|
1139
1139
|
var require_type = __commonJS({
|
|
1140
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1140
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type.js"(exports2, module2) {
|
|
1141
1141
|
"use strict";
|
|
1142
1142
|
var YAMLException = require_exception();
|
|
1143
1143
|
var TYPE_CONSTRUCTOR_OPTIONS = [
|
|
@@ -1199,9 +1199,9 @@ var require_type = __commonJS({
|
|
|
1199
1199
|
}
|
|
1200
1200
|
});
|
|
1201
1201
|
|
|
1202
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1202
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema.js
|
|
1203
1203
|
var require_schema = __commonJS({
|
|
1204
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1204
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema.js"(exports2, module2) {
|
|
1205
1205
|
"use strict";
|
|
1206
1206
|
var YAMLException = require_exception();
|
|
1207
1207
|
var Type = require_type();
|
|
@@ -1288,9 +1288,9 @@ var require_schema = __commonJS({
|
|
|
1288
1288
|
}
|
|
1289
1289
|
});
|
|
1290
1290
|
|
|
1291
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1291
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/str.js
|
|
1292
1292
|
var require_str = __commonJS({
|
|
1293
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1293
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/str.js"(exports2, module2) {
|
|
1294
1294
|
"use strict";
|
|
1295
1295
|
var Type = require_type();
|
|
1296
1296
|
module2.exports = new Type("tag:yaml.org,2002:str", {
|
|
@@ -1302,9 +1302,9 @@ var require_str = __commonJS({
|
|
|
1302
1302
|
}
|
|
1303
1303
|
});
|
|
1304
1304
|
|
|
1305
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1305
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/seq.js
|
|
1306
1306
|
var require_seq = __commonJS({
|
|
1307
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1307
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/seq.js"(exports2, module2) {
|
|
1308
1308
|
"use strict";
|
|
1309
1309
|
var Type = require_type();
|
|
1310
1310
|
module2.exports = new Type("tag:yaml.org,2002:seq", {
|
|
@@ -1316,9 +1316,9 @@ var require_seq = __commonJS({
|
|
|
1316
1316
|
}
|
|
1317
1317
|
});
|
|
1318
1318
|
|
|
1319
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1319
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/map.js
|
|
1320
1320
|
var require_map = __commonJS({
|
|
1321
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1321
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/map.js"(exports2, module2) {
|
|
1322
1322
|
"use strict";
|
|
1323
1323
|
var Type = require_type();
|
|
1324
1324
|
module2.exports = new Type("tag:yaml.org,2002:map", {
|
|
@@ -1330,9 +1330,9 @@ var require_map = __commonJS({
|
|
|
1330
1330
|
}
|
|
1331
1331
|
});
|
|
1332
1332
|
|
|
1333
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1333
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/failsafe.js
|
|
1334
1334
|
var require_failsafe = __commonJS({
|
|
1335
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1335
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/failsafe.js"(exports2, module2) {
|
|
1336
1336
|
"use strict";
|
|
1337
1337
|
var Schema = require_schema();
|
|
1338
1338
|
module2.exports = new Schema({
|
|
@@ -1345,9 +1345,9 @@ var require_failsafe = __commonJS({
|
|
|
1345
1345
|
}
|
|
1346
1346
|
});
|
|
1347
1347
|
|
|
1348
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1348
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/null.js
|
|
1349
1349
|
var require_null = __commonJS({
|
|
1350
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1350
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/null.js"(exports2, module2) {
|
|
1351
1351
|
"use strict";
|
|
1352
1352
|
var Type = require_type();
|
|
1353
1353
|
function resolveYamlNull(data) {
|
|
@@ -1388,9 +1388,9 @@ var require_null = __commonJS({
|
|
|
1388
1388
|
}
|
|
1389
1389
|
});
|
|
1390
1390
|
|
|
1391
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1391
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/bool.js
|
|
1392
1392
|
var require_bool = __commonJS({
|
|
1393
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1393
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/bool.js"(exports2, module2) {
|
|
1394
1394
|
"use strict";
|
|
1395
1395
|
var Type = require_type();
|
|
1396
1396
|
function resolveYamlBoolean(data) {
|
|
@@ -1425,9 +1425,9 @@ var require_bool = __commonJS({
|
|
|
1425
1425
|
}
|
|
1426
1426
|
});
|
|
1427
1427
|
|
|
1428
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1428
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/int.js
|
|
1429
1429
|
var require_int = __commonJS({
|
|
1430
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1430
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/int.js"(exports2, module2) {
|
|
1431
1431
|
"use strict";
|
|
1432
1432
|
var common = require_common();
|
|
1433
1433
|
var Type = require_type();
|
|
@@ -1541,9 +1541,9 @@ var require_int = __commonJS({
|
|
|
1541
1541
|
}
|
|
1542
1542
|
});
|
|
1543
1543
|
|
|
1544
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1544
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/float.js
|
|
1545
1545
|
var require_float = __commonJS({
|
|
1546
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1546
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/float.js"(exports2, module2) {
|
|
1547
1547
|
"use strict";
|
|
1548
1548
|
var common = require_common();
|
|
1549
1549
|
var Type = require_type();
|
|
@@ -1626,9 +1626,9 @@ var require_float = __commonJS({
|
|
|
1626
1626
|
}
|
|
1627
1627
|
});
|
|
1628
1628
|
|
|
1629
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1629
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/json.js
|
|
1630
1630
|
var require_json = __commonJS({
|
|
1631
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1631
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/json.js"(exports2, module2) {
|
|
1632
1632
|
"use strict";
|
|
1633
1633
|
module2.exports = require_failsafe().extend({
|
|
1634
1634
|
implicit: [
|
|
@@ -1641,17 +1641,17 @@ var require_json = __commonJS({
|
|
|
1641
1641
|
}
|
|
1642
1642
|
});
|
|
1643
1643
|
|
|
1644
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1644
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/core.js
|
|
1645
1645
|
var require_core = __commonJS({
|
|
1646
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1646
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/core.js"(exports2, module2) {
|
|
1647
1647
|
"use strict";
|
|
1648
1648
|
module2.exports = require_json();
|
|
1649
1649
|
}
|
|
1650
1650
|
});
|
|
1651
1651
|
|
|
1652
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1652
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/timestamp.js
|
|
1653
1653
|
var require_timestamp = __commonJS({
|
|
1654
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1654
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/timestamp.js"(exports2, module2) {
|
|
1655
1655
|
"use strict";
|
|
1656
1656
|
var Type = require_type();
|
|
1657
1657
|
var YAML_DATE_REGEXP = new RegExp(
|
|
@@ -1711,9 +1711,9 @@ var require_timestamp = __commonJS({
|
|
|
1711
1711
|
}
|
|
1712
1712
|
});
|
|
1713
1713
|
|
|
1714
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1714
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/merge.js
|
|
1715
1715
|
var require_merge = __commonJS({
|
|
1716
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1716
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/merge.js"(exports2, module2) {
|
|
1717
1717
|
"use strict";
|
|
1718
1718
|
var Type = require_type();
|
|
1719
1719
|
function resolveYamlMerge(data) {
|
|
@@ -1726,9 +1726,9 @@ var require_merge = __commonJS({
|
|
|
1726
1726
|
}
|
|
1727
1727
|
});
|
|
1728
1728
|
|
|
1729
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1729
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/binary.js
|
|
1730
1730
|
var require_binary = __commonJS({
|
|
1731
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1731
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/binary.js"(exports2, module2) {
|
|
1732
1732
|
"use strict";
|
|
1733
1733
|
var Type = require_type();
|
|
1734
1734
|
var BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
@@ -1818,16 +1818,16 @@ var require_binary = __commonJS({
|
|
|
1818
1818
|
}
|
|
1819
1819
|
});
|
|
1820
1820
|
|
|
1821
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1821
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/omap.js
|
|
1822
1822
|
var require_omap = __commonJS({
|
|
1823
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1823
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/omap.js"(exports2, module2) {
|
|
1824
1824
|
"use strict";
|
|
1825
1825
|
var Type = require_type();
|
|
1826
1826
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1827
1827
|
var _toString = Object.prototype.toString;
|
|
1828
1828
|
function resolveYamlOmap(data) {
|
|
1829
1829
|
if (data === null) return true;
|
|
1830
|
-
const objectKeys =
|
|
1830
|
+
const objectKeys = {};
|
|
1831
1831
|
const object2 = data;
|
|
1832
1832
|
for (let index = 0, length = object2.length; index < length; index += 1) {
|
|
1833
1833
|
const pair = object2[index];
|
|
@@ -1841,8 +1841,8 @@ var require_omap = __commonJS({
|
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
1843
|
if (!pairHasKey) return false;
|
|
1844
|
-
if (
|
|
1845
|
-
|
|
1844
|
+
if (_hasOwnProperty.call(objectKeys, pairKey)) return false;
|
|
1845
|
+
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
1846
1846
|
}
|
|
1847
1847
|
return true;
|
|
1848
1848
|
}
|
|
@@ -1857,9 +1857,9 @@ var require_omap = __commonJS({
|
|
|
1857
1857
|
}
|
|
1858
1858
|
});
|
|
1859
1859
|
|
|
1860
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1860
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/pairs.js
|
|
1861
1861
|
var require_pairs = __commonJS({
|
|
1862
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1862
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/pairs.js"(exports2, module2) {
|
|
1863
1863
|
"use strict";
|
|
1864
1864
|
var Type = require_type();
|
|
1865
1865
|
var _toString = Object.prototype.toString;
|
|
@@ -1895,9 +1895,9 @@ var require_pairs = __commonJS({
|
|
|
1895
1895
|
}
|
|
1896
1896
|
});
|
|
1897
1897
|
|
|
1898
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1898
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/set.js
|
|
1899
1899
|
var require_set = __commonJS({
|
|
1900
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1900
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/set.js"(exports2, module2) {
|
|
1901
1901
|
"use strict";
|
|
1902
1902
|
var Type = require_type();
|
|
1903
1903
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -1922,9 +1922,9 @@ var require_set = __commonJS({
|
|
|
1922
1922
|
}
|
|
1923
1923
|
});
|
|
1924
1924
|
|
|
1925
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1925
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/default.js
|
|
1926
1926
|
var require_default = __commonJS({
|
|
1927
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1927
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/default.js"(exports2, module2) {
|
|
1928
1928
|
"use strict";
|
|
1929
1929
|
module2.exports = require_core().extend({
|
|
1930
1930
|
implicit: [
|
|
@@ -1941,9 +1941,9 @@ var require_default = __commonJS({
|
|
|
1941
1941
|
}
|
|
1942
1942
|
});
|
|
1943
1943
|
|
|
1944
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
1944
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/loader.js
|
|
1945
1945
|
var require_loader = __commonJS({
|
|
1946
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
1946
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/loader.js"(exports2, module2) {
|
|
1947
1947
|
"use strict";
|
|
1948
1948
|
var common = require_common();
|
|
1949
1949
|
var YAMLException = require_exception();
|
|
@@ -3313,9 +3313,9 @@ var require_loader = __commonJS({
|
|
|
3313
3313
|
}
|
|
3314
3314
|
});
|
|
3315
3315
|
|
|
3316
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
3316
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/dumper.js
|
|
3317
3317
|
var require_dumper = __commonJS({
|
|
3318
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
3318
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/dumper.js"(exports2, module2) {
|
|
3319
3319
|
"use strict";
|
|
3320
3320
|
var common = require_common();
|
|
3321
3321
|
var YAMLException = require_exception();
|
|
@@ -3966,9 +3966,9 @@ var require_dumper = __commonJS({
|
|
|
3966
3966
|
}
|
|
3967
3967
|
});
|
|
3968
3968
|
|
|
3969
|
-
// node_modules/.pnpm/js-yaml@4.3.
|
|
3969
|
+
// node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/index.js
|
|
3970
3970
|
var require_js_yaml = __commonJS({
|
|
3971
|
-
"node_modules/.pnpm/js-yaml@4.3.
|
|
3971
|
+
"node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/index.js"(exports2, module2) {
|
|
3972
3972
|
"use strict";
|
|
3973
3973
|
var loader = require_loader();
|
|
3974
3974
|
var dumper = require_dumper();
|
|
@@ -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.0",
|
|
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
|
});
|
|
@@ -240526,7 +240526,37 @@ function useIdentity(paths, name) {
|
|
|
240526
240526
|
writeTextAtomic(paths.activeIdentityFile, `${name}
|
|
240527
240527
|
`);
|
|
240528
240528
|
}
|
|
240529
|
-
function
|
|
240529
|
+
async function runIdentityWizard(prompts, paths, name) {
|
|
240530
|
+
const choice = await prompts.select({
|
|
240531
|
+
message: `No identity named "${name}" exists yet. Create it now?`,
|
|
240532
|
+
options: [
|
|
240533
|
+
{ value: "create", label: "Create it" },
|
|
240534
|
+
{ value: "cancel", label: "Cancel" }
|
|
240535
|
+
]
|
|
240536
|
+
});
|
|
240537
|
+
if (prompts.isCancel(choice) || choice === "cancel") {
|
|
240538
|
+
prompts.cancel("Cancelled.");
|
|
240539
|
+
return false;
|
|
240540
|
+
}
|
|
240541
|
+
addIdentity(paths, name);
|
|
240542
|
+
const profileChoice = await prompts.select({
|
|
240543
|
+
message: `Create a default configuration profile for "${name}"?`,
|
|
240544
|
+
options: [
|
|
240545
|
+
{ value: "create", label: "Create and configure a profile" },
|
|
240546
|
+
{ value: "skip", label: "Skip for now" }
|
|
240547
|
+
]
|
|
240548
|
+
});
|
|
240549
|
+
if (!prompts.isCancel(profileChoice) && profileChoice === "create") {
|
|
240550
|
+
const result = await runProfileWizard(prompts, { paths, defaultNewName: name });
|
|
240551
|
+
if (result !== void 0) {
|
|
240552
|
+
setDefaultConfigProfile(paths, name, result.name);
|
|
240553
|
+
}
|
|
240554
|
+
}
|
|
240555
|
+
useIdentity(paths, name);
|
|
240556
|
+
prompts.outro(`Identity "${name}" is set up and active.`);
|
|
240557
|
+
return true;
|
|
240558
|
+
}
|
|
240559
|
+
async function tryRunAtIdentityShortcut(paths, argv) {
|
|
240530
240560
|
if (argv.length !== 1) {
|
|
240531
240561
|
return false;
|
|
240532
240562
|
}
|
|
@@ -240535,7 +240565,18 @@ function tryRunAtIdentityShortcut(paths, argv) {
|
|
|
240535
240565
|
return false;
|
|
240536
240566
|
}
|
|
240537
240567
|
const name = token.slice(1);
|
|
240538
|
-
|
|
240568
|
+
if (!identityExists(paths, name)) {
|
|
240569
|
+
if (process.stdin.isTTY) {
|
|
240570
|
+
const created = await runIdentityWizard(realPromptsPort, paths, name);
|
|
240571
|
+
if (!created) {
|
|
240572
|
+
return true;
|
|
240573
|
+
}
|
|
240574
|
+
} else {
|
|
240575
|
+
useIdentity(paths, name);
|
|
240576
|
+
}
|
|
240577
|
+
} else {
|
|
240578
|
+
useIdentity(paths, name);
|
|
240579
|
+
}
|
|
240539
240580
|
console.log(`Active identity is now "${name}".`);
|
|
240540
240581
|
return true;
|
|
240541
240582
|
}
|
|
@@ -240583,8 +240624,15 @@ function registerIdentityCommand(program2, paths) {
|
|
|
240583
240624
|
addIdentity(paths, name);
|
|
240584
240625
|
console.log(`Created identity "${name}".`);
|
|
240585
240626
|
});
|
|
240586
|
-
identity.command("use <name>").description("Persistently select the active identity.").action((name) => {
|
|
240587
|
-
|
|
240627
|
+
identity.command("use <name>").description("Persistently select the active identity.").action(async (name) => {
|
|
240628
|
+
if (!identityExists(paths, name) && process.stdin.isTTY) {
|
|
240629
|
+
const created = await runIdentityWizard(realPromptsPort, paths, name);
|
|
240630
|
+
if (!created) {
|
|
240631
|
+
return;
|
|
240632
|
+
}
|
|
240633
|
+
} else {
|
|
240634
|
+
useIdentity(paths, name);
|
|
240635
|
+
}
|
|
240588
240636
|
console.log(`Active identity is now "${name}".`);
|
|
240589
240637
|
});
|
|
240590
240638
|
identity.command("resolve <name>").description("Interactively resolve a superseded farm's colliding data left behind by a prior launch.").action(async (name) => {
|
|
@@ -242107,7 +242155,7 @@ async function main() {
|
|
|
242107
242155
|
await runClaude();
|
|
242108
242156
|
return;
|
|
242109
242157
|
}
|
|
242110
|
-
if (tryRunAtIdentityShortcut(resolveLayoutPaths(), process.argv.slice(2))) {
|
|
242158
|
+
if (await tryRunAtIdentityShortcut(resolveLayoutPaths(), process.argv.slice(2))) {
|
|
242111
242159
|
return;
|
|
242112
242160
|
}
|
|
242113
242161
|
await buildClaudeUseProgram().parseAsync(process.argv);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
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>",
|