cc-wrapper 0.1.0 → 0.2.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.
Files changed (2) hide show
  1. package/dist/cli.js +14 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -287,9 +287,20 @@ async function claudeCommand(extraArgs, options) {
287
287
  }
288
288
  const args = buildClaudeArgs(profile.args, extraArgs, !!options.dd);
289
289
  const env = { ...process.env, ...profile.env };
290
- const spinner = ora(`Launching claude (profile: ${profileName})`).start();
291
- console.log(chalk6.dim("env: " + JSON.stringify(maskEnv(profile.env))));
290
+ const spinner = ora("Launching claude...").start();
292
291
  spinner.stop();
292
+ console.log(chalk6.bold.cyan("cc-wrapper") + chalk6.dim(" \u203A ") + chalk6.bold(`profile: ${profileName}`));
293
+ const masked = maskEnv(profile.env);
294
+ const envEntries = Object.entries(masked);
295
+ if (envEntries.length > 0) {
296
+ const keyWidth = Math.max(...envEntries.map(([k]) => k.length));
297
+ for (const [k, v] of envEntries) {
298
+ console.log(
299
+ chalk6.dim(" " + k.padEnd(keyWidth, " ") + " ") + chalk6.yellow(v)
300
+ );
301
+ }
302
+ }
303
+ console.log();
293
304
  const code = await spawnClaude(args, env);
294
305
  process.exit(code);
295
306
  }
@@ -325,5 +336,5 @@ cli.command("claude [...args]", "Run claude with the default profile").option("-
325
336
  return claudeCommand(args, options);
326
337
  });
327
338
  cli.help();
328
- cli.version("0.1.0");
339
+ cli.version("0.2.0");
329
340
  cli.parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-wrapper",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Cross-platform CLI wrapper for claude with reusable environment profiles",
5
5
  "type": "module",
6
6
  "bin": {