cc-claw 0.2.2 → 0.2.3
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/dist/cli.js +10 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -48,7 +48,7 @@ var VERSION;
|
|
|
48
48
|
var init_version = __esm({
|
|
49
49
|
"src/version.ts"() {
|
|
50
50
|
"use strict";
|
|
51
|
-
VERSION = true ? "0.2.
|
|
51
|
+
VERSION = true ? "0.2.3" : (() => {
|
|
52
52
|
try {
|
|
53
53
|
return JSON.parse(readFileSync(join2(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
|
|
54
54
|
} catch {
|
|
@@ -13846,17 +13846,21 @@ async function setup() {
|
|
|
13846
13846
|
}
|
|
13847
13847
|
if (!env.CLAUDE_CODE_USE_VERTEX && !env.ANTHROPIC_API_KEY) {
|
|
13848
13848
|
console.log(" How do you access Claude Code?\n");
|
|
13849
|
-
console.log(cyan(" 1.
|
|
13850
|
-
console.log(cyan(" 2.
|
|
13851
|
-
console.log(cyan(" 3.
|
|
13852
|
-
|
|
13849
|
+
console.log(cyan(" 1. Claude Max/Pro subscription (already logged in via 'claude login')"));
|
|
13850
|
+
console.log(cyan(" 2. Anthropic API key"));
|
|
13851
|
+
console.log(cyan(" 3. Google Vertex AI (enterprise)"));
|
|
13852
|
+
console.log(cyan(" 4. Skip Claude for now\n"));
|
|
13853
|
+
const choice = await ask(" Choose [1/2/3/4]: ");
|
|
13853
13854
|
if (choice.trim() === "1") {
|
|
13855
|
+
console.log(green(" No extra config needed \u2014 Claude uses your existing login."));
|
|
13856
|
+
console.log(dim(" Make sure you've run 'claude login' at least once."));
|
|
13857
|
+
} else if (choice.trim() === "2") {
|
|
13854
13858
|
console.log("");
|
|
13855
13859
|
console.log(dim(" Get an API key at: https://console.anthropic.com/settings/keys\n"));
|
|
13856
13860
|
const apiKey = await requiredInput("Anthropic API key", env.ANTHROPIC_API_KEY);
|
|
13857
13861
|
env.ANTHROPIC_API_KEY = apiKey;
|
|
13858
13862
|
console.log(green(" Claude configured with API key."));
|
|
13859
|
-
} else if (choice.trim() === "
|
|
13863
|
+
} else if (choice.trim() === "3") {
|
|
13860
13864
|
console.log("");
|
|
13861
13865
|
console.log(dim(" You need a Google Cloud project with the Vertex AI API enabled."));
|
|
13862
13866
|
console.log(dim(" See: https://docs.anthropic.com/en/docs/build-with-claude/vertex-ai\n"));
|
package/package.json
CHANGED