great-cto 1.0.148 → 1.0.150

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/main.js +14 -0
  2. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "great-cto",
3
- "version": "1.0.148",
3
+ "version": "1.0.150",
4
4
  "description": "One command install for the great_cto Claude Code plugin. Auto-detects your stack, picks the right archetype, bootstraps PROJECT.md.",
5
5
  "keywords": [
6
6
  "claude-code",