Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# AGENTS.md - ampcode-wrapped

## Commands
- **Start**: `bun start` - Run the CLI tool
- **Dev**: `bun run --watch src/index.ts` - Watch mode for development
- **Build**: `bun build src/index.ts --outdir dist --target bun`
- **Type check**: `bun run typecheck` or `tsc --noEmit`

## CLI Flags
`--year <YYYY>`, `--output/-o <path>`, `--theme <dark|light>`, `--svg`, `--json`, `--yes/-y`, `--quiet/-q`, `--no-clipboard`, `--no-terminal-image`

## Architecture
Spotify Wrapped-style stats visualization for Amp usage. Single-purpose CLI tool.

**Core Flow**: Collector (`collector.ts`) → Stats (`stats.ts`) → Generator (`image/generator.tsx`) → Display/Share
- `types.ts` - Thread/Message data structures, AmpStats interface (includes peakHourPersona, longestThread, avgTokensPerDay)
- `image/` - React template, design-tokens.ts (dark/light themes), heatmap visualization
- `terminal/` - Inline image rendering; `clipboard/` - macOS/Linux clipboard

## Code Style
- **TypeScript**: `strict: true`, no `any` types, ESM imports
- **Naming**: camelCase functions, PascalCase types, SCREAMING_SNAKE_CASE constants
- **Async/IO**: Use async/await with Bun.file(); use native Map for collections
- **React**: JSX with Satori (no hooks), inline style objects, useTheme() for colors
- **Errors**: Throw descriptive errors, let main catch and display
89 changes: 0 additions & 89 deletions README.md

This file was deleted.

Binary file modified assets/images/example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
105 changes: 0 additions & 105 deletions src/image/components/Charts.tsx

This file was deleted.

18 changes: 0 additions & 18 deletions src/image/components/Footer.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions src/image/components/index.ts

This file was deleted.

Loading