cc-claw 0.2.2 → 0.2.4
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 +5 -7
- package/dist/cli.js +11 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,19 +61,17 @@ Config saved to `~/.cc-claw/.env`.
|
|
|
61
61
|
|
|
62
62
|
## Run
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
# Background service (recommended)
|
|
66
|
-
cc-claw service install
|
|
64
|
+
The setup wizard offers to install CC-Claw as a background service. If you skipped that step:
|
|
67
65
|
|
|
68
|
-
|
|
69
|
-
cc-claw start
|
|
66
|
+
```bash
|
|
67
|
+
cc-claw service install # Install + start as background service
|
|
70
68
|
```
|
|
71
69
|
|
|
72
70
|
```bash
|
|
73
|
-
cc-claw service start # Start
|
|
74
|
-
cc-claw service stop # Stop
|
|
75
71
|
cc-claw service restart # Restart (pick up config changes)
|
|
72
|
+
cc-claw service stop # Stop the daemon
|
|
76
73
|
cc-claw service status # Check if running
|
|
74
|
+
cc-claw start # Run in foreground (for debugging)
|
|
77
75
|
```
|
|
78
76
|
|
|
79
77
|
## CLI
|
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.4" : (() => {
|
|
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"));
|
|
@@ -13891,11 +13895,7 @@ async function setup() {
|
|
|
13891
13895
|
console.log(dim(" Voice replies will use macOS text-to-speech as fallback."));
|
|
13892
13896
|
}
|
|
13893
13897
|
}
|
|
13894
|
-
|
|
13895
|
-
if (await confirm("Enable web dashboard? (local status page on port 3141)")) {
|
|
13896
|
-
env.DASHBOARD_ENABLED = "1";
|
|
13897
|
-
console.log(green(" Dashboard will be available at http://localhost:3141"));
|
|
13898
|
-
}
|
|
13898
|
+
env.DASHBOARD_ENABLED = "1";
|
|
13899
13899
|
console.log("");
|
|
13900
13900
|
if (await confirm("Enable video analysis? (requires Google Gemini API key)")) {
|
|
13901
13901
|
console.log(dim(" Get a Gemini key at: https://aistudio.google.com/apikey\n"));
|
package/package.json
CHANGED