great-cto 1.0.147 → 1.0.149
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/main.js +14 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -237,6 +237,20 @@ async function runInit(args) {
|
|
|
237
237
|
const { spawnSync } = await import("node:child_process");
|
|
238
238
|
const greatCtoDir = join(homedir(), ".great_cto");
|
|
239
239
|
mkdirSync(greatCtoDir, { recursive: true });
|
|
240
|
+
// Create secrets.env template if missing — used by llm-router MCP server.
|
|
241
|
+
// Never overwrite an existing file (user may have real keys in there).
|
|
242
|
+
const { writeFileSync: wf } = await import("node:fs");
|
|
243
|
+
const secretsPath = join(greatCtoDir, "secrets.env");
|
|
244
|
+
if (!existsSync(secretsPath)) {
|
|
245
|
+
wf(secretsPath, "# great_cto secrets — never commit this file\n" +
|
|
246
|
+
"# LLM router (optional, ~25% cost reduction on non-critical tasks):\n" +
|
|
247
|
+
"# Get a key at https://openrouter.ai/keys\n" +
|
|
248
|
+
"#OPENROUTER_API_KEY=sk-or-v1-...\n" +
|
|
249
|
+
"\n" +
|
|
250
|
+
"# Override default routing model (default: moonshotai/kimi-k2):\n" +
|
|
251
|
+
"#GREAT_CTO_ROUTER_MODEL=moonshotai/kimi-k2\n", "utf-8");
|
|
252
|
+
log(` ${dim("created ~/.great_cto/secrets.env (add OPENROUTER_API_KEY for LLM router)")}`);
|
|
253
|
+
}
|
|
240
254
|
const skillSources = [
|
|
241
255
|
{ name: "anthropic-skills", url: "https://github.com/anthropics/skills.git" },
|
|
242
256
|
{ name: "personal-skills", url: "https://github.com/avelikiy/ai-agent-skills.git" },
|
package/package.json
CHANGED