From 8f7185e667264dcb7ba00f7500108927a7bf8e42 Mon Sep 17 00:00:00 2001 From: Mikey-Ku Date: Sat, 24 Oct 2026 17:12:55 -0400 Subject: [PATCH] docs: ready for strangers: every env name the code reads, the pnpm and Node versions, no private references --- .env.example | 3 +++ CLAUDE.md | 4 ++-- README.md | 4 ++-- package.json | 1 + 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index 3f2b71b..d7ec7ac 100644 --- a/.env.example +++ b/.env.example @@ -2,10 +2,12 @@ # Turns on the AI pre-fill, plan explanations, the evals and the source checker. Claude is the default. ANTHROPIC_API_KEY= +# ANTHROPIC_AUTH_TOKEN= also works in its place. # Optional: OpenAI or Gemini as the built-in AI instead, picked in Connect or the Ask panel. OPENAI_API_KEY= GEMINI_API_KEY= +# GOOGLE_API_KEY= also works for Gemini. # OPENAI_MODEL=gpt-6-luna # GEMINI_MODEL=gemini-3.8-flash @@ -17,6 +19,7 @@ GEMINI_API_KEY= # STACKWISE_EFFORT=low # STACKWISE_AI_LIMIT_PER_HOUR=30 # STACKWISE_AI=off +# STACKWISE_PAIRING=off turns off pairing with coding agents and everything that writes files. # Pairing with a coding agent: how long one wait_for_message call waits (max 240 seconds), and # how many quiet minutes before the agent stops listening. # STACKWISE_PAIR_WAIT_S=240 diff --git a/CLAUDE.md b/CLAUDE.md index aa77db7..1b75074 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,10 +1,10 @@ # StackWise: orientation for Claude sessions -Planning tool for beginners building web apps with AI builders. A deterministic rules engine checks every connection in a stack against sourced facts, ranks what works, and hands the plan to coding agents over MCP (build tasks, test plans, a project pack). Optional Claude features read descriptions, explain plans and keep facts fresh. It runs on this computer only: a web app on 127.0.0.1:4310, wrapped as a Mac app by `electron/`, with plans and the profile in `~/.stackwise`. Next.js 16 + React 19 + React Flow 12, TypeScript, Zod 4, Vitest 4, Anthropic SDK 0.125, pnpm 12. Styles come from Michael's mk-ui (`src/styles/mk-ui.css`, copied from `Projects/mk-ui`), re-themed to an Apple look by `src/styles/theme-apple.css` (system font, glass, light and dark from the system). +Planning tool for beginners building web apps with AI builders. A deterministic rules engine checks every connection in a stack against sourced facts, ranks what works, and hands the plan to coding agents over MCP (build tasks, test plans, a project pack). Optional Claude features read descriptions, explain plans and keep facts fresh. It runs on this computer only: a web app on 127.0.0.1:4310, wrapped as a Mac app by `electron/`, with plans and the profile in `~/.stackwise`. Next.js 16 + React 19 + React Flow 12, TypeScript, Zod 4, Vitest 4, Anthropic SDK 0.125, pnpm 12. Styles come from Michael's mk-ui (`src/styles/mk-ui.css`, copied from the mk-ui design system), re-themed to an Apple look by `src/styles/theme-apple.css` (system font, glass, light and dark from the system). ## Commands -- `pnpm dev` runs on port 4310 (hub launch config name: `stackwise`) +- `pnpm dev` runs on port 4310 (`.claude/launch.json` config: `stackwise`) - `pnpm test`, `pnpm check:data`, `pnpm typecheck`, `pnpm lint`, `pnpm build` - `pnpm check:options -- --id ` checks single option files without loading the catalog (safe while others write data) - `pnpm eval:prefill`, `pnpm eval:plain-llm`, `pnpm check:sources [--apply]`, `pnpm draft:option -- ...` (these call Claude; they read `.env.local`) diff --git a/README.md b/README.md index 4e53d4d..4809f4f 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ StackWise lives in the menu bar. Its server runs at `http://127.0.0.1:4310` whil ### From source -You need Node 22.9 or newer and pnpm. +You need Node 22.9 or newer and pnpm 12 (`corepack enable` sets it up from `package.json`). ```bash git clone https://github.com/Mikey-Ku/StackWise.git stackwise && cd stackwise @@ -47,7 +47,7 @@ pnpm dev Open http://localhost:4310. Then, if you like: ```bash -pnpm link --global # adds the `stackwise` command +pnpm link --global # adds the `stackwise` command (run `pnpm setup` once first on a new machine) stackwise setup # once: connects Claude Code to StackWise stackwise # in any project folder: starts StackWise in the background and opens that project's plan stackwise stop diff --git a/package.json b/package.json index c246f11..939f868 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "vitest": "^4.1.11" }, "packageManager": "pnpm@12.3.4", + "engines": { "node": ">=22.9" }, "bin": { "stackwise": "bin/stackwise" },