@remeic/ccm 0.5.0 → 0.5.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 CHANGED
@@ -18,7 +18,7 @@
18
18
  [![npm version](https://img.shields.io/npm/v/%40remeic%2Fccm.svg)](https://www.npmjs.com/package/@remeic/ccm)
19
19
  [![Homebrew tap](https://img.shields.io/badge/Homebrew-tap-FBB040?logo=homebrew&logoColor=white)](https://github.com/Remeic/homebrew-tap)
20
20
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
21
- [![Node.js](https://img.shields.io/badge/node-%3E%3D18-brightgreen)](https://nodejs.org)
21
+ [![Node.js](https://img.shields.io/badge/node-%3E%3D24-brightgreen)](https://nodejs.org)
22
22
  [![codecov](https://codecov.io/github/Remeic/ccm/graph/badge.svg?token=E16LCLDHYV)](https://codecov.io/github/Remeic/ccm)
23
23
  [![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FRemeic%2Fccm%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/Remeic/ccm/main)
24
24
 
@@ -86,7 +86,7 @@ Claude Code stores authentication in a single config directory. If you use multi
86
86
 
87
87
  ## Prerequisites
88
88
 
89
- - [Node.js](https://nodejs.org) >= 18
89
+ - [Node.js](https://nodejs.org) >= 24
90
90
  - [Claude Code](https://docs.anthropic.com/en/docs/claude-code) installed and available on your `PATH`
91
91
 
92
92
  ## Install
@@ -136,7 +136,7 @@ $ ccm use work
136
136
  | `ccm create <name> [-l label] [-b browser] [--from p]` | Create a profile. `--from` seeds non-auth config |
137
137
  | `ccm compliance` / `ccm tos` | Show the compliance notice, disclaimer, and official sources |
138
138
  | `ccm list` | List all profiles with auth status, including drifted entries |
139
- | `ccm use <name> [-- args]` | Launch Claude Code. Args after `--` are passed to Claude |
139
+ | `ccm use <name> [args...]` | Launch Claude Code. Extra args are passed to Claude |
140
140
  | `ccm login <name> [--console] [-b browser] [--url-only]` | Authenticate a profile |
141
141
  | `ccm status [name]` | Show auth status and storage state for one or all profiles |
142
142
  | `ccm rename <old-name> <new-name>` | Rename a profile (config, directory, and browser wrapper) |
@@ -163,10 +163,13 @@ The notice is intentionally conservative:
163
163
 
164
164
  ## Passing Flags and Environment Variables
165
165
 
166
- Everything after `--` in `ccm use` is forwarded to `claude`. Env vars from your shell are inherited.
166
+ Extra args in `ccm use` are forwarded to `claude` (with or without the `--` separator). Env vars from your shell are inherited.
167
167
 
168
168
  ```bash
169
169
  # Pass flags
170
+ ccm use work --resume e56f8bd7-a2bb-4c0e-9aa0-3eb7f717bf6a
171
+
172
+ # Pass flags (explicit separator)
170
173
  ccm use work -- --dangerously-skip-permissions
171
174
 
172
175
  # Env vars + flags
package/dist/index.js CHANGED
@@ -980,14 +980,13 @@ function registerStatus(program2) {
980
980
 
981
981
  // src/commands/use.ts
982
982
  function registerUse(program2) {
983
- program2.command("use <name>").description("Launch Claude Code with a profile").allowUnknownOption().helpOption(false).action((name, _opts, cmd) => {
983
+ program2.command("use <name> [args...]").description("Launch Claude Code with a profile").allowUnknownOption().helpOption(false).action((name, args) => {
984
984
  try {
985
985
  if (!profileExists(name)) {
986
986
  throw new Error(`Profile "${name}" does not exist. Create it first: ccm create ${name}`);
987
987
  }
988
988
  const dir = getProfileDir(name);
989
- const passthroughArgs = cmd.args.slice(1);
990
- const child = spawnClaude(dir, passthroughArgs);
989
+ const child = spawnClaude(dir, args);
991
990
  child.on("close", (code) => process.exit(code ?? 0));
992
991
  } catch (e) {
993
992
  console.error(`\x1B[31m\u2717\x1B[0m ${e instanceof Error ? e.message : String(e)}`);
@@ -997,7 +996,7 @@ function registerUse(program2) {
997
996
  }
998
997
 
999
998
  // src/index.ts
1000
- var program = new Command().name("ccm").version("0.5.0").description("Manage multiple Claude Code profiles");
999
+ var program = new Command().name("ccm").version("0.5.1").description("Manage multiple Claude Code profiles");
1001
1000
  registerCreate(program);
1002
1001
  registerCopyConfig(program);
1003
1002
  registerCompliance(program);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remeic/ccm",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "nvm-like manager for Claude Code profiles",
5
5
  "license": "MIT",
6
6
  "author": "Giulio Fagioli",
@@ -42,7 +42,7 @@
42
42
  "prepare": "husky"
43
43
  },
44
44
  "engines": {
45
- "node": ">=18"
45
+ "node": ">=24"
46
46
  },
47
47
  "dependencies": {
48
48
  "commander": "^13.1.0",
@@ -55,11 +55,11 @@
55
55
  "@stryker-mutator/core": "^9.6.0",
56
56
  "@stryker-mutator/typescript-checker": "^9.6.0",
57
57
  "@stryker-mutator/vitest-runner": "^9.6.0",
58
- "@vitest/coverage-v8": "^3.1.1",
58
+ "@vitest/coverage-v8": "^4.1.4",
59
59
  "husky": "^9.1.7",
60
60
  "lint-staged": "^16.4.0",
61
61
  "tsup": "^8.4.0",
62
62
  "typescript": "^5.8.3",
63
- "vitest": "^3.1.1"
63
+ "vitest": "^4.1.4"
64
64
  }
65
65
  }