gsd-opencode 1.3.31
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/bin/install.js +222 -0
- package/command/gsd/add-phase.md +207 -0
- package/command/gsd/complete-milestone.md +105 -0
- package/command/gsd/consider-issues.md +201 -0
- package/command/gsd/create-roadmap.md +115 -0
- package/command/gsd/discuss-milestone.md +47 -0
- package/command/gsd/discuss-phase.md +60 -0
- package/command/gsd/execute-plan.md +128 -0
- package/command/gsd/help.md +315 -0
- package/command/gsd/insert-phase.md +227 -0
- package/command/gsd/list-phase-assumptions.md +50 -0
- package/command/gsd/map-codebase.md +84 -0
- package/command/gsd/new-milestone.md +59 -0
- package/command/gsd/new-project.md +316 -0
- package/command/gsd/pause-work.md +122 -0
- package/command/gsd/plan-fix.md +205 -0
- package/command/gsd/plan-phase.md +67 -0
- package/command/gsd/progress.md +316 -0
- package/command/gsd/remove-phase.md +338 -0
- package/command/gsd/research-phase.md +91 -0
- package/command/gsd/resume-work.md +40 -0
- package/command/gsd/verify-work.md +71 -0
- package/get-shit-done/references/checkpoints.md +287 -0
- package/get-shit-done/references/continuation-format.md +255 -0
- package/get-shit-done/references/git-integration.md +254 -0
- package/get-shit-done/references/plan-format.md +428 -0
- package/get-shit-done/references/principles.md +157 -0
- package/get-shit-done/references/questioning.md +162 -0
- package/get-shit-done/references/research-pitfalls.md +215 -0
- package/get-shit-done/references/scope-estimation.md +172 -0
- package/get-shit-done/references/tdd.md +263 -0
- package/get-shit-done/templates/codebase/architecture.md +255 -0
- package/get-shit-done/templates/codebase/concerns.md +310 -0
- package/get-shit-done/templates/codebase/conventions.md +307 -0
- package/get-shit-done/templates/codebase/integrations.md +280 -0
- package/get-shit-done/templates/codebase/stack.md +186 -0
- package/get-shit-done/templates/codebase/structure.md +285 -0
- package/get-shit-done/templates/codebase/testing.md +480 -0
- package/get-shit-done/templates/config.json +18 -0
- package/get-shit-done/templates/context.md +161 -0
- package/get-shit-done/templates/continue-here.md +78 -0
- package/get-shit-done/templates/discovery.md +146 -0
- package/get-shit-done/templates/issues.md +32 -0
- package/get-shit-done/templates/milestone-archive.md +123 -0
- package/get-shit-done/templates/milestone-context.md +93 -0
- package/get-shit-done/templates/milestone.md +115 -0
- package/get-shit-done/templates/phase-prompt.md +303 -0
- package/get-shit-done/templates/project.md +184 -0
- package/get-shit-done/templates/research.md +529 -0
- package/get-shit-done/templates/roadmap.md +196 -0
- package/get-shit-done/templates/state.md +210 -0
- package/get-shit-done/templates/summary.md +273 -0
- package/get-shit-done/templates/uat-issues.md +143 -0
- package/get-shit-done/workflows/complete-milestone.md +643 -0
- package/get-shit-done/workflows/create-milestone.md +416 -0
- package/get-shit-done/workflows/create-roadmap.md +481 -0
- package/get-shit-done/workflows/discovery-phase.md +293 -0
- package/get-shit-done/workflows/discuss-milestone.md +236 -0
- package/get-shit-done/workflows/discuss-phase.md +247 -0
- package/get-shit-done/workflows/execute-phase.md +1625 -0
- package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
- package/get-shit-done/workflows/map-codebase.md +434 -0
- package/get-shit-done/workflows/plan-phase.md +488 -0
- package/get-shit-done/workflows/research-phase.md +436 -0
- package/get-shit-done/workflows/resume-project.md +287 -0
- package/get-shit-done/workflows/transition.md +580 -0
- package/get-shit-done/workflows/verify-work.md +202 -0
- package/package.json +38 -0
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
# External Integrations Template
|
|
2
|
+
|
|
3
|
+
Template for `.planning/codebase/INTEGRATIONS.md` - captures external service dependencies.
|
|
4
|
+
|
|
5
|
+
**Purpose:** Document what external systems this codebase communicates with. Focused on "what lives outside our code that we depend on."
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## File Template
|
|
10
|
+
|
|
11
|
+
```markdown
|
|
12
|
+
# External Integrations
|
|
13
|
+
|
|
14
|
+
**Analysis Date:** [YYYY-MM-DD]
|
|
15
|
+
|
|
16
|
+
## APIs & External Services
|
|
17
|
+
|
|
18
|
+
**Payment Processing:**
|
|
19
|
+
- [Service] - [What it's used for: e.g., "subscription billing, one-time payments"]
|
|
20
|
+
- SDK/Client: [e.g., "stripe npm package v14.x"]
|
|
21
|
+
- Auth: [e.g., "API key in STRIPE_SECRET_KEY env var"]
|
|
22
|
+
- Endpoints used: [e.g., "checkout sessions, webhooks"]
|
|
23
|
+
|
|
24
|
+
**Email/SMS:**
|
|
25
|
+
- [Service] - [What it's used for: e.g., "transactional emails"]
|
|
26
|
+
- SDK/Client: [e.g., "sendgrid/mail v8.x"]
|
|
27
|
+
- Auth: [e.g., "API key in SENDGRID_API_KEY env var"]
|
|
28
|
+
- Templates: [e.g., "managed in SendGrid dashboard"]
|
|
29
|
+
|
|
30
|
+
**External APIs:**
|
|
31
|
+
- [Service] - [What it's used for]
|
|
32
|
+
- Integration method: [e.g., "REST API via fetch", "GraphQL client"]
|
|
33
|
+
- Auth: [e.g., "OAuth2 token in AUTH_TOKEN env var"]
|
|
34
|
+
- Rate limits: [if applicable]
|
|
35
|
+
|
|
36
|
+
## Data Storage
|
|
37
|
+
|
|
38
|
+
**Databases:**
|
|
39
|
+
- [Type/Provider] - [e.g., "PostgreSQL on Supabase"]
|
|
40
|
+
- Connection: [e.g., "via DATABASE_URL env var"]
|
|
41
|
+
- Client: [e.g., "Prisma ORM v5.x"]
|
|
42
|
+
- Migrations: [e.g., "prisma migrate in migrations/"]
|
|
43
|
+
|
|
44
|
+
**File Storage:**
|
|
45
|
+
- [Service] - [e.g., "AWS S3 for user uploads"]
|
|
46
|
+
- SDK/Client: [e.g., "@aws-sdk/client-s3"]
|
|
47
|
+
- Auth: [e.g., "IAM credentials in AWS_* env vars"]
|
|
48
|
+
- Buckets: [e.g., "prod-uploads, dev-uploads"]
|
|
49
|
+
|
|
50
|
+
**Caching:**
|
|
51
|
+
- [Service] - [e.g., "Redis for session storage"]
|
|
52
|
+
- Connection: [e.g., "REDIS_URL env var"]
|
|
53
|
+
- Client: [e.g., "ioredis v5.x"]
|
|
54
|
+
|
|
55
|
+
## Authentication & Identity
|
|
56
|
+
|
|
57
|
+
**Auth Provider:**
|
|
58
|
+
- [Service] - [e.g., "Supabase Auth", "Auth0", "custom JWT"]
|
|
59
|
+
- Implementation: [e.g., "Supabase client SDK"]
|
|
60
|
+
- Token storage: [e.g., "httpOnly cookies", "localStorage"]
|
|
61
|
+
- Session management: [e.g., "JWT refresh tokens"]
|
|
62
|
+
|
|
63
|
+
**OAuth Integrations:**
|
|
64
|
+
- [Provider] - [e.g., "Google OAuth for sign-in"]
|
|
65
|
+
- Credentials: [e.g., "GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET"]
|
|
66
|
+
- Scopes: [e.g., "email, profile"]
|
|
67
|
+
|
|
68
|
+
## Monitoring & Observability
|
|
69
|
+
|
|
70
|
+
**Error Tracking:**
|
|
71
|
+
- [Service] - [e.g., "Sentry"]
|
|
72
|
+
- DSN: [e.g., "SENTRY_DSN env var"]
|
|
73
|
+
- Release tracking: [e.g., "via SENTRY_RELEASE"]
|
|
74
|
+
|
|
75
|
+
**Analytics:**
|
|
76
|
+
- [Service] - [e.g., "Mixpanel for product analytics"]
|
|
77
|
+
- Token: [e.g., "MIXPANEL_TOKEN env var"]
|
|
78
|
+
- Events tracked: [e.g., "user actions, page views"]
|
|
79
|
+
|
|
80
|
+
**Logs:**
|
|
81
|
+
- [Service] - [e.g., "CloudWatch", "Datadog", "none (stdout only)"]
|
|
82
|
+
- Integration: [e.g., "AWS Lambda built-in"]
|
|
83
|
+
|
|
84
|
+
## CI/CD & Deployment
|
|
85
|
+
|
|
86
|
+
**Hosting:**
|
|
87
|
+
- [Platform] - [e.g., "Vercel", "AWS Lambda", "Docker on ECS"]
|
|
88
|
+
- Deployment: [e.g., "automatic on main branch push"]
|
|
89
|
+
- Environment vars: [e.g., "configured in Vercel dashboard"]
|
|
90
|
+
|
|
91
|
+
**CI Pipeline:**
|
|
92
|
+
- [Service] - [e.g., "GitHub Actions"]
|
|
93
|
+
- Workflows: [e.g., "test.yml, deploy.yml"]
|
|
94
|
+
- Secrets: [e.g., "stored in GitHub repo secrets"]
|
|
95
|
+
|
|
96
|
+
## Environment Configuration
|
|
97
|
+
|
|
98
|
+
**Development:**
|
|
99
|
+
- Required env vars: [List critical vars]
|
|
100
|
+
- Secrets location: [e.g., ".env.local (gitignored)", "1Password vault"]
|
|
101
|
+
- Mock/stub services: [e.g., "Stripe test mode", "local PostgreSQL"]
|
|
102
|
+
|
|
103
|
+
**Staging:**
|
|
104
|
+
- Environment-specific differences: [e.g., "uses staging Stripe account"]
|
|
105
|
+
- Data: [e.g., "separate staging database"]
|
|
106
|
+
|
|
107
|
+
**Production:**
|
|
108
|
+
- Secrets management: [e.g., "Vercel environment variables"]
|
|
109
|
+
- Failover/redundancy: [e.g., "multi-region DB replication"]
|
|
110
|
+
|
|
111
|
+
## Webhooks & Callbacks
|
|
112
|
+
|
|
113
|
+
**Incoming:**
|
|
114
|
+
- [Service] - [Endpoint: e.g., "/api/webhooks/stripe"]
|
|
115
|
+
- Verification: [e.g., "signature validation via stripe.webhooks.constructEvent"]
|
|
116
|
+
- Events: [e.g., "payment_intent.succeeded, customer.subscription.updated"]
|
|
117
|
+
|
|
118
|
+
**Outgoing:**
|
|
119
|
+
- [Service] - [What triggers it]
|
|
120
|
+
- Endpoint: [e.g., "external CRM webhook on user signup"]
|
|
121
|
+
- Retry logic: [if applicable]
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
*Integration audit: [date]*
|
|
126
|
+
*Update when adding/removing external services*
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
<good_examples>
|
|
130
|
+
```markdown
|
|
131
|
+
# External Integrations
|
|
132
|
+
|
|
133
|
+
**Analysis Date:** 2025-01-20
|
|
134
|
+
|
|
135
|
+
## APIs & External Services
|
|
136
|
+
|
|
137
|
+
**Payment Processing:**
|
|
138
|
+
- Stripe - Subscription billing and one-time course payments
|
|
139
|
+
- SDK/Client: stripe npm package v14.8
|
|
140
|
+
- Auth: API key in STRIPE_SECRET_KEY env var
|
|
141
|
+
- Endpoints used: checkout sessions, customer portal, webhooks
|
|
142
|
+
|
|
143
|
+
**Email/SMS:**
|
|
144
|
+
- SendGrid - Transactional emails (receipts, password resets)
|
|
145
|
+
- SDK/Client: @sendgrid/mail v8.1
|
|
146
|
+
- Auth: API key in SENDGRID_API_KEY env var
|
|
147
|
+
- Templates: Managed in SendGrid dashboard (template IDs in code)
|
|
148
|
+
|
|
149
|
+
**External APIs:**
|
|
150
|
+
- OpenAI API - Course content generation
|
|
151
|
+
- Integration method: REST API via openai npm package v4.x
|
|
152
|
+
- Auth: Bearer token in OPENAI_API_KEY env var
|
|
153
|
+
- Rate limits: 3500 requests/min (tier 3)
|
|
154
|
+
|
|
155
|
+
## Data Storage
|
|
156
|
+
|
|
157
|
+
**Databases:**
|
|
158
|
+
- PostgreSQL on Supabase - Primary data store
|
|
159
|
+
- Connection: via DATABASE_URL env var
|
|
160
|
+
- Client: Prisma ORM v5.8
|
|
161
|
+
- Migrations: prisma migrate in prisma/migrations/
|
|
162
|
+
|
|
163
|
+
**File Storage:**
|
|
164
|
+
- Supabase Storage - User uploads (profile images, course materials)
|
|
165
|
+
- SDK/Client: @supabase/supabase-js v2.x
|
|
166
|
+
- Auth: Service role key in SUPABASE_SERVICE_ROLE_KEY
|
|
167
|
+
- Buckets: avatars (public), course-materials (private)
|
|
168
|
+
|
|
169
|
+
**Caching:**
|
|
170
|
+
- None currently (all database queries, no Redis)
|
|
171
|
+
|
|
172
|
+
## Authentication & Identity
|
|
173
|
+
|
|
174
|
+
**Auth Provider:**
|
|
175
|
+
- Supabase Auth - Email/password + OAuth
|
|
176
|
+
- Implementation: Supabase client SDK with server-side session management
|
|
177
|
+
- Token storage: httpOnly cookies via @supabase/ssr
|
|
178
|
+
- Session management: JWT refresh tokens handled by Supabase
|
|
179
|
+
|
|
180
|
+
**OAuth Integrations:**
|
|
181
|
+
- Google OAuth - Social sign-in
|
|
182
|
+
- Credentials: GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET (Supabase dashboard)
|
|
183
|
+
- Scopes: email, profile
|
|
184
|
+
|
|
185
|
+
## Monitoring & Observability
|
|
186
|
+
|
|
187
|
+
**Error Tracking:**
|
|
188
|
+
- Sentry - Server and client errors
|
|
189
|
+
- DSN: SENTRY_DSN env var
|
|
190
|
+
- Release tracking: Git commit SHA via SENTRY_RELEASE
|
|
191
|
+
|
|
192
|
+
**Analytics:**
|
|
193
|
+
- None (planned: Mixpanel)
|
|
194
|
+
|
|
195
|
+
**Logs:**
|
|
196
|
+
- Vercel logs - stdout/stderr only
|
|
197
|
+
- Retention: 7 days on Pro plan
|
|
198
|
+
|
|
199
|
+
## CI/CD & Deployment
|
|
200
|
+
|
|
201
|
+
**Hosting:**
|
|
202
|
+
- Vercel - Next.js app hosting
|
|
203
|
+
- Deployment: Automatic on main branch push
|
|
204
|
+
- Environment vars: Configured in Vercel dashboard (synced to .env.example)
|
|
205
|
+
|
|
206
|
+
**CI Pipeline:**
|
|
207
|
+
- GitHub Actions - Tests and type checking
|
|
208
|
+
- Workflows: .github/workflows/ci.yml
|
|
209
|
+
- Secrets: None needed (public repo tests only)
|
|
210
|
+
|
|
211
|
+
## Environment Configuration
|
|
212
|
+
|
|
213
|
+
**Development:**
|
|
214
|
+
- Required env vars: DATABASE_URL, NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY
|
|
215
|
+
- Secrets location: .env.local (gitignored), team shared via 1Password vault
|
|
216
|
+
- Mock/stub services: Stripe test mode, Supabase local dev project
|
|
217
|
+
|
|
218
|
+
**Staging:**
|
|
219
|
+
- Uses separate Supabase staging project
|
|
220
|
+
- Stripe test mode
|
|
221
|
+
- Same Vercel account, different environment
|
|
222
|
+
|
|
223
|
+
**Production:**
|
|
224
|
+
- Secrets management: Vercel environment variables
|
|
225
|
+
- Database: Supabase production project with daily backups
|
|
226
|
+
|
|
227
|
+
## Webhooks & Callbacks
|
|
228
|
+
|
|
229
|
+
**Incoming:**
|
|
230
|
+
- Stripe - /api/webhooks/stripe
|
|
231
|
+
- Verification: Signature validation via stripe.webhooks.constructEvent
|
|
232
|
+
- Events: payment_intent.succeeded, customer.subscription.updated, customer.subscription.deleted
|
|
233
|
+
|
|
234
|
+
**Outgoing:**
|
|
235
|
+
- None
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
*Integration audit: 2025-01-20*
|
|
240
|
+
*Update when adding/removing external services*
|
|
241
|
+
```
|
|
242
|
+
</good_examples>
|
|
243
|
+
|
|
244
|
+
<guidelines>
|
|
245
|
+
**What belongs in INTEGRATIONS.md:**
|
|
246
|
+
- External services the code communicates with
|
|
247
|
+
- Authentication patterns (where secrets live, not the secrets themselves)
|
|
248
|
+
- SDKs and client libraries used
|
|
249
|
+
- Environment variable names (not values)
|
|
250
|
+
- Webhook endpoints and verification methods
|
|
251
|
+
- Database connection patterns
|
|
252
|
+
- File storage locations
|
|
253
|
+
- Monitoring and logging services
|
|
254
|
+
|
|
255
|
+
**What does NOT belong here:**
|
|
256
|
+
- Actual API keys or secrets (NEVER write these)
|
|
257
|
+
- Internal architecture (that's ARCHITECTURE.md)
|
|
258
|
+
- Code patterns (that's PATTERNS.md)
|
|
259
|
+
- Technology choices (that's STACK.md)
|
|
260
|
+
- Performance issues (that's CONCERNS.md)
|
|
261
|
+
|
|
262
|
+
**When filling this template:**
|
|
263
|
+
- Check .env.example or .env.template for required env vars
|
|
264
|
+
- Look for SDK imports (stripe, @sendgrid/mail, etc.)
|
|
265
|
+
- Check for webhook handlers in routes/endpoints
|
|
266
|
+
- Note where secrets are managed (not the secrets)
|
|
267
|
+
- Document environment-specific differences (dev/staging/prod)
|
|
268
|
+
- Include auth patterns for each service
|
|
269
|
+
|
|
270
|
+
**Useful for phase planning when:**
|
|
271
|
+
- Adding new external service integrations
|
|
272
|
+
- Debugging authentication issues
|
|
273
|
+
- Understanding data flow outside the application
|
|
274
|
+
- Setting up new environments
|
|
275
|
+
- Auditing third-party dependencies
|
|
276
|
+
- Planning for service outages or migrations
|
|
277
|
+
|
|
278
|
+
**Security note:**
|
|
279
|
+
Document WHERE secrets live (env vars, Vercel dashboard, 1Password), never WHAT the secrets are.
|
|
280
|
+
</guidelines>
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# Technology Stack Template
|
|
2
|
+
|
|
3
|
+
Template for `.planning/codebase/STACK.md` - captures the technology foundation.
|
|
4
|
+
|
|
5
|
+
**Purpose:** Document what technologies run this codebase. Focused on "what executes when you run the code."
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## File Template
|
|
10
|
+
|
|
11
|
+
```markdown
|
|
12
|
+
# Technology Stack
|
|
13
|
+
|
|
14
|
+
**Analysis Date:** [YYYY-MM-DD]
|
|
15
|
+
|
|
16
|
+
## Languages
|
|
17
|
+
|
|
18
|
+
**Primary:**
|
|
19
|
+
- [Language] [Version] - [Where used: e.g., "all application code"]
|
|
20
|
+
|
|
21
|
+
**Secondary:**
|
|
22
|
+
- [Language] [Version] - [Where used: e.g., "build scripts, tooling"]
|
|
23
|
+
|
|
24
|
+
## Runtime
|
|
25
|
+
|
|
26
|
+
**Environment:**
|
|
27
|
+
- [Runtime] [Version] - [e.g., "Node.js 20.x"]
|
|
28
|
+
- [Additional requirements if any]
|
|
29
|
+
|
|
30
|
+
**Package Manager:**
|
|
31
|
+
- [Manager] [Version] - [e.g., "npm 10.x"]
|
|
32
|
+
- Lockfile: [e.g., "package-lock.json present"]
|
|
33
|
+
|
|
34
|
+
## Frameworks
|
|
35
|
+
|
|
36
|
+
**Core:**
|
|
37
|
+
- [Framework] [Version] - [Purpose: e.g., "web server", "UI framework"]
|
|
38
|
+
|
|
39
|
+
**Testing:**
|
|
40
|
+
- [Framework] [Version] - [e.g., "Jest for unit tests"]
|
|
41
|
+
- [Framework] [Version] - [e.g., "Playwright for E2E"]
|
|
42
|
+
|
|
43
|
+
**Build/Dev:**
|
|
44
|
+
- [Tool] [Version] - [e.g., "Vite for bundling"]
|
|
45
|
+
- [Tool] [Version] - [e.g., "TypeScript compiler"]
|
|
46
|
+
|
|
47
|
+
## Key Dependencies
|
|
48
|
+
|
|
49
|
+
[Only include dependencies critical to understanding the stack - limit to 5-10 most important]
|
|
50
|
+
|
|
51
|
+
**Critical:**
|
|
52
|
+
- [Package] [Version] - [Why it matters: e.g., "authentication", "database access"]
|
|
53
|
+
- [Package] [Version] - [Why it matters]
|
|
54
|
+
|
|
55
|
+
**Infrastructure:**
|
|
56
|
+
- [Package] [Version] - [e.g., "Express for HTTP routing"]
|
|
57
|
+
- [Package] [Version] - [e.g., "PostgreSQL client"]
|
|
58
|
+
|
|
59
|
+
## Configuration
|
|
60
|
+
|
|
61
|
+
**Environment:**
|
|
62
|
+
- [How configured: e.g., ".env files", "environment variables"]
|
|
63
|
+
- [Key configs: e.g., "DATABASE_URL, API_KEY required"]
|
|
64
|
+
|
|
65
|
+
**Build:**
|
|
66
|
+
- [Build config files: e.g., "vite.config.ts, tsconfig.json"]
|
|
67
|
+
|
|
68
|
+
## Platform Requirements
|
|
69
|
+
|
|
70
|
+
**Development:**
|
|
71
|
+
- [OS requirements or "any platform"]
|
|
72
|
+
- [Additional tooling: e.g., "Docker for local DB"]
|
|
73
|
+
|
|
74
|
+
**Production:**
|
|
75
|
+
- [Deployment target: e.g., "Vercel", "AWS Lambda", "Docker container"]
|
|
76
|
+
- [Version requirements]
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
*Stack analysis: [date]*
|
|
81
|
+
*Update after major dependency changes*
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
<good_examples>
|
|
85
|
+
```markdown
|
|
86
|
+
# Technology Stack
|
|
87
|
+
|
|
88
|
+
**Analysis Date:** 2025-01-20
|
|
89
|
+
|
|
90
|
+
## Languages
|
|
91
|
+
|
|
92
|
+
**Primary:**
|
|
93
|
+
- TypeScript 5.3 - All application code
|
|
94
|
+
|
|
95
|
+
**Secondary:**
|
|
96
|
+
- JavaScript - Build scripts, config files
|
|
97
|
+
|
|
98
|
+
## Runtime
|
|
99
|
+
|
|
100
|
+
**Environment:**
|
|
101
|
+
- Node.js 20.x (LTS)
|
|
102
|
+
- No browser runtime (CLI tool only)
|
|
103
|
+
|
|
104
|
+
**Package Manager:**
|
|
105
|
+
- npm 10.x
|
|
106
|
+
- Lockfile: `package-lock.json` present
|
|
107
|
+
|
|
108
|
+
## Frameworks
|
|
109
|
+
|
|
110
|
+
**Core:**
|
|
111
|
+
- None (vanilla Node.js CLI)
|
|
112
|
+
|
|
113
|
+
**Testing:**
|
|
114
|
+
- Vitest 1.0 - Unit tests
|
|
115
|
+
- tsx - TypeScript execution without build step
|
|
116
|
+
|
|
117
|
+
**Build/Dev:**
|
|
118
|
+
- TypeScript 5.3 - Compilation to JavaScript
|
|
119
|
+
- esbuild - Used by Vitest for fast transforms
|
|
120
|
+
|
|
121
|
+
## Key Dependencies
|
|
122
|
+
|
|
123
|
+
**Critical:**
|
|
124
|
+
- commander 11.x - CLI argument parsing and command structure
|
|
125
|
+
- chalk 5.x - Terminal output styling
|
|
126
|
+
- fs-extra 11.x - Extended file system operations
|
|
127
|
+
|
|
128
|
+
**Infrastructure:**
|
|
129
|
+
- Node.js built-ins - fs, path, child_process for file operations
|
|
130
|
+
|
|
131
|
+
## Configuration
|
|
132
|
+
|
|
133
|
+
**Environment:**
|
|
134
|
+
- No environment variables required
|
|
135
|
+
- Configuration via CLI flags only
|
|
136
|
+
|
|
137
|
+
**Build:**
|
|
138
|
+
- `tsconfig.json` - TypeScript compiler options
|
|
139
|
+
- `vitest.config.ts` - Test runner configuration
|
|
140
|
+
|
|
141
|
+
## Platform Requirements
|
|
142
|
+
|
|
143
|
+
**Development:**
|
|
144
|
+
- macOS/Linux/Windows (any platform with Node.js)
|
|
145
|
+
- No external dependencies
|
|
146
|
+
|
|
147
|
+
**Production:**
|
|
148
|
+
- Distributed as npm package
|
|
149
|
+
- Installed globally via npm install -g
|
|
150
|
+
- Runs on user's Node.js installation
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
*Stack analysis: 2025-01-20*
|
|
155
|
+
*Update after major dependency changes*
|
|
156
|
+
```
|
|
157
|
+
</good_examples>
|
|
158
|
+
|
|
159
|
+
<guidelines>
|
|
160
|
+
**What belongs in STACK.md:**
|
|
161
|
+
- Languages and versions
|
|
162
|
+
- Runtime requirements (Node, Bun, Deno, browser)
|
|
163
|
+
- Package manager and lockfile
|
|
164
|
+
- Framework choices
|
|
165
|
+
- Critical dependencies (limit to 5-10 most important)
|
|
166
|
+
- Build tooling
|
|
167
|
+
- Platform/deployment requirements
|
|
168
|
+
|
|
169
|
+
**What does NOT belong here:**
|
|
170
|
+
- File structure (that's STRUCTURE.md)
|
|
171
|
+
- Architectural patterns (that's ARCHITECTURE.md)
|
|
172
|
+
- Every dependency in package.json (only critical ones)
|
|
173
|
+
- Implementation details (defer to code)
|
|
174
|
+
|
|
175
|
+
**When filling this template:**
|
|
176
|
+
- Check package.json for dependencies
|
|
177
|
+
- Note runtime version from .nvmrc or package.json engines
|
|
178
|
+
- Include only dependencies that affect understanding (not every utility)
|
|
179
|
+
- Specify versions only when version matters (breaking changes, compatibility)
|
|
180
|
+
|
|
181
|
+
**Useful for phase planning when:**
|
|
182
|
+
- Adding new dependencies (check compatibility)
|
|
183
|
+
- Upgrading frameworks (know what's in use)
|
|
184
|
+
- Choosing implementation approach (must work with existing stack)
|
|
185
|
+
- Understanding build requirements
|
|
186
|
+
</guidelines>
|