Problem
charter context on the charter repo (a TypeScript monorepo with 12 packages) reports:
## Identity
- **Stack**: unknown
- **Preset**: default
## Surface
0 routes across 0 frameworks · 0 D1 tables
_No routes or D1 tables detected._
## Hotspots
Hotspots: analysis unavailable
All three key fields (Stack, Surface, Hotspots) are blank/unavailable for a TypeScript-heavy monorepo.
Expected
- Stack should detect TypeScript monorepo structure (presence of
packages/*/package.json, root tsconfig.json, multiple index.ts entry points)
- Hotspot analysis should fall back to git-frequency analysis when static route extraction isn't applicable (CLI tools have no HTTP routes)
- Surface output should at minimum enumerate public package entry points / exported CLI commands for CLI-type repos
Why it matters
charter context is the primary AI-agent injection point — Claude Code reads it as a pre-digested repo brief. Returning "unknown" / "unavailable" means agents onboarding to charter itself get no structural signal from the tool.
Suggested detection additions
- Monorepo indicator: root
package.json workspaces field present → preset = monorepo
- CLI indicator:
bin field in package.json → surface = CLI commands (list them)
- Hotspot fallback: when static analysis produces 0 results, run
git log --numstat over the last 90 days and surface top-10 most-changed files
Problem
charter contexton the charter repo (a TypeScript monorepo with 12 packages) reports:All three key fields (Stack, Surface, Hotspots) are blank/unavailable for a TypeScript-heavy monorepo.
Expected
packages/*/package.json, roottsconfig.json, multipleindex.tsentry points)Why it matters
charter contextis the primary AI-agent injection point — Claude Code reads it as a pre-digested repo brief. Returning "unknown" / "unavailable" means agents onboarding to charter itself get no structural signal from the tool.Suggested detection additions
package.jsonworkspacesfield present → preset =monorepobinfield in package.json → surface = CLI commands (list them)git log --numstatover the last 90 days and surface top-10 most-changed files