claude-use 12.0.0 → 12.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.
@@ -6129,9 +6129,15 @@ interface RunResult {
6129
6129
  readonly stderr: string;
6130
6130
  }
6131
6131
  /** Runs an external command and captures its output, injected so no test ever shells out for real. Not used by this phase's own modules yet — declared here so every later module (branch-conditioned `when` evaluation, `check.ts`'s Keychain lookup) shares one injectable shape rather than each inventing its own. */
6132
+ interface RunOptions {
6133
+ /** The child's whole environment, replacing the parent's; a variable mapped to undefined is left out. Omitted: the child inherits this process's environment. */
6134
+ readonly env?: Readonly<Record<string, string | undefined>>;
6135
+ /** Kill the child after this many milliseconds. Omitted: it may run as long as it likes. */
6136
+ readonly timeoutMs?: number;
6137
+ }
6132
6138
  interface RunPort {
6133
6139
  /** `input`, when given, is written to the child's standard input and then closed: the way to hand a command a secret without putting it in the argument list, which any local process can read from the process table. */
6134
- readonly run: (command: string, args: readonly string[], input?: string) => RunResult;
6140
+ readonly run: (command: string, args: readonly string[], input?: string, options?: RunOptions) => RunResult;
6135
6141
  }
6136
6142
  /**
6137
6143
  * The running process itself: its environment, its logical argv, and the ability to terminate with an exit code.
@@ -15195,6 +15201,8 @@ interface PrepareLaunchParams {
15195
15201
  readonly hold?: HoldPort;
15196
15202
  /** Whether an identity has a stored login Claude Code can use (a Keychain item or a credentials file). Absent when the caller cannot ask, in which case a launch assumes it does. */
15197
15203
  readonly hasStoredLogin?: (identity: string) => boolean;
15204
+ /** Whether Claude Code can authenticate with the login an identity has stored, asked only for an identity that has one (`claudeBin` is the binary the launch would run). Undefined when it cannot be determined, and then the stored login is assumed good. Absent when the caller cannot ask. */
15205
+ readonly hasUsableLogin?: (identity: string, claudeBin: string) => boolean | undefined;
15198
15206
  }
15199
15207
  /** Inputs to `runLauncher`: a launch's inputs plus the port that spawns the child. */
15200
15208
  interface RunLauncherParams extends PrepareLaunchParams {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-use",
3
- "version": "12.0.0",
3
+ "version": "12.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": "MIT",
6
6
  "author": "Joseph Mearman <joseph@mearman.co.uk>",