archbyte 0.2.7 → 0.2.8
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 +2 -2
- package/dist/cli/setup.js +5 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ archbyte login
|
|
|
14
14
|
# Configure your AI provider (BYOK)
|
|
15
15
|
archbyte init
|
|
16
16
|
|
|
17
|
-
#
|
|
17
|
+
# Using Claude Code / Codex? Install the MCP server too:
|
|
18
18
|
archbyte mcp install
|
|
19
19
|
```
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Your API keys stay on your machine. ArchByte never stores or transmits your prov
|
|
|
22
22
|
|
|
23
23
|
### Setup with Claude Code
|
|
24
24
|
|
|
25
|
-
**Option A: MCP
|
|
25
|
+
**Option A: MCP** — use ArchByte tools directly in Claude Code. You still need to sign in and configure a provider first:
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
28
|
archbyte mcp install
|
package/dist/cli/setup.js
CHANGED
|
@@ -132,26 +132,7 @@ export async function handleSetup() {
|
|
|
132
132
|
if (hasClaude || hasCodex) {
|
|
133
133
|
const tools = [hasClaude && "Claude Code", hasCodex && "Codex CLI"].filter(Boolean).join(" and ");
|
|
134
134
|
console.log(chalk.cyan(` Detected ${tools} on this machine.`));
|
|
135
|
-
console.log(chalk.white(`
|
|
136
|
-
console.log(chalk.white(` Your AI tool already provides the model, so you skip the BYOK step.`));
|
|
137
|
-
console.log();
|
|
138
|
-
console.log(chalk.white(` Run: `) + chalk.bold.cyan(`archbyte mcp install`));
|
|
139
|
-
console.log();
|
|
140
|
-
const continueIdx = await select("Continue with BYOK setup anyway?", [
|
|
141
|
-
`Skip ${chalk.gray("(use MCP instead, recommended)")}`,
|
|
142
|
-
`Continue ${chalk.gray("(set up your own API key)")}`,
|
|
143
|
-
]);
|
|
144
|
-
if (continueIdx === 0) {
|
|
145
|
-
console.log();
|
|
146
|
-
console.log(chalk.gray(" Run `archbyte mcp install` to configure MCP for your AI tool."));
|
|
147
|
-
console.log();
|
|
148
|
-
console.log(chalk.gray(" Then open your AI tool and try:"));
|
|
149
|
-
console.log(chalk.cyan(' "Analyze the architecture of this project"'));
|
|
150
|
-
console.log(chalk.cyan(' "Export the architecture as a Mermaid diagram"'));
|
|
151
|
-
console.log(chalk.cyan(' "Show me the architecture stats"'));
|
|
152
|
-
console.log();
|
|
153
|
-
return;
|
|
154
|
-
}
|
|
135
|
+
console.log(chalk.white(` After setup, run `) + chalk.bold.cyan(`archbyte mcp install`) + chalk.white(` to use ArchByte from your AI tool.`));
|
|
155
136
|
console.log();
|
|
156
137
|
}
|
|
157
138
|
const config = loadConfig();
|
|
@@ -319,6 +300,10 @@ export async function handleSetup() {
|
|
|
319
300
|
console.log();
|
|
320
301
|
console.log(chalk.bold(" Next: ") + chalk.cyan("archbyte run") + chalk.bold(" to analyze your codebase."));
|
|
321
302
|
console.log(chalk.gray(" Run from your project root, or use ") + chalk.cyan("archbyte run -d /path/to/project"));
|
|
303
|
+
if (hasClaude || hasCodex) {
|
|
304
|
+
console.log();
|
|
305
|
+
console.log(chalk.bold(" MCP: ") + chalk.cyan("archbyte mcp install") + chalk.bold(" to use ArchByte from your AI tool."));
|
|
306
|
+
}
|
|
322
307
|
console.log();
|
|
323
308
|
}
|
|
324
309
|
function writeArchbyteReadme(archbyteDir) {
|