claude-use 4.4.0 → 4.5.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
@@ -138,6 +138,7 @@ src/
138
138
  configure.ts, check.ts, doctor.ts, claudeShim.ts # interactive picker, dry-run inspector, whole-tree audit, `claude` shim
139
139
  resolve/ # the pure cascade resolver: flatten, decide, extends, walk, plan, reconcile
140
140
  config/ # Zod schemas, cosmiconfig loading, category classification, atomic JSON store
141
+ index.ts # the library surface (see below): resolver, farm sync, headroom routing, the ambient-credential guard
141
142
  schema/ # published JSON Schemas, generated by `pnpm schema`
142
143
  scripts/build.mts # esbuild bundle, then `node --build-sea`
143
144
  install.sh # downloads, verifies, and installs the latest release binary
@@ -145,6 +146,8 @@ install.sh # downloads, verifies, and installs the latest releas
145
146
 
146
147
  Every custom error extends `CliError`; `main()`'s top-level catch prints its message alone for an expected failure and a full stack trace for anything else. Config validation is Zod throughout, with `categories` a closed shape and `entries` an open, glob-capable record, since the two fields have opposite key cardinality. The resolver itself is pure: it takes filesystem, git, and environment facts as an injected parameter rather than reading them itself, which is what makes it unit-testable with fakes.
147
148
 
149
+ The package also publishes a library surface alongside the binary: `import { resolveDecisions, resyncFarm, startMitmServer, runSupervisor, detectAmbientCredential } from "claude-use"` (ESM or CJS, with type declarations). It re-exports only the pure, port-injected modules, so another tool can resolve identities, sync a farm, run the headroom MITM proxy and supervisor, or check the ambient-credential guard in process without the CLI installed. Nothing reachable from it imports `commander` or `@clack/prompts`, and the build fails if that stops being true. Its dependencies stay external, installed through the package's own `dependencies`.
150
+
148
151
  The full source layout with per-file responsibilities, the schema design rationale, why config loading uses cosmiconfig's `load()` rather than `search()`, and the resolver's merge and materialisation mechanics are in [docs/architecture.md](docs/architecture.md).
149
152
 
150
153
  ## Releases and builds
package/dist/cli.cjs CHANGED
@@ -265539,6 +265539,8 @@ var PromptCancelledError = class extends CliError {
265539
265539
  this.name = "PromptCancelledError";
265540
265540
  }
265541
265541
  };
265542
+
265543
+ // src/cliReport.ts
265542
265544
  function reportFatalError(error62, io) {
265543
265545
  if (error62 instanceof CommanderError) {
265544
265546
  return error62.exitCode === 0 ? 0 : EXIT_USAGE;
@@ -291237,7 +291239,7 @@ function resolveLaunchIdentity(paths, cwd) {
291237
291239
  // package.json
291238
291240
  var package_default = {
291239
291241
  name: "claude-use",
291240
- version: "4.4.0",
291242
+ version: "4.5.0",
291241
291243
  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.",
291242
291244
  license: "Apache-2.0",
291243
291245
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -291261,7 +291263,10 @@ var package_default = {
291261
291263
  "claude-use": "dist/cli.cjs"
291262
291264
  },
291263
291265
  files: [
291264
- "dist/cli.cjs"
291266
+ "dist/cli.cjs",
291267
+ "dist/index.mjs",
291268
+ "dist/index.cjs",
291269
+ "dist/types"
291265
291270
  ],
291266
291271
  scripts: {
291267
291272
  prepare: "husky && node scripts/build.mts --bundle-only",
@@ -291314,6 +291319,17 @@ var package_default = {
291314
291319
  typescript: "^6.0.3",
291315
291320
  "typescript-eslint": "^8.70.0",
291316
291321
  vitest: "^4.1.11"
291322
+ },
291323
+ main: "dist/index.cjs",
291324
+ module: "dist/index.mjs",
291325
+ types: "dist/types/index.d.ts",
291326
+ exports: {
291327
+ ".": {
291328
+ types: "./dist/types/index.d.ts",
291329
+ import: "./dist/index.mjs",
291330
+ require: "./dist/index.cjs"
291331
+ },
291332
+ "./package.json": "./package.json"
291317
291333
  }
291318
291334
  };
291319
291335