feat(dev-seed): improve local seed scripts#3058
Merged
jeanduplessis merged 2 commits intomainfrom May 6, 2026
Merged
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (10 files)
Reviewed by gpt-5.5-20260423 · 1,954,146 tokens |
eshurakov
approved these changes
May 6, 2026
eshurakov
reviewed
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a reusable local seed runner and development fixtures for app users, credits, and KiloClaw test data.
Why this change is needed
Local setup and debugging need repeatable seed commands that create realistic data without requiring manual database edits or production-like onboarding flows. The KiloClaw fixtures also need to preserve billing/data-model invariants so local debugging does not rely on impossible states.
How this is addressed
pnpm dev:seedrunner that discovers seed topics, supportsscope:topicandscope topicinvocation, and can emit clean JSON for scripts.dev/seedtopic contract for future seed additions.Human Verification
Completed in-session checks
pnpm -s dev:seed app:create-user --helppnpm -s dev:seed kiloclaw:fake-instance --helppnpm -s dev:seed app:add-credits --helpReviewer Notes
Human Reviewer Flags
dev/seedis intentionally outside the main TypeScript project checks and runs throughtsx;dev/seed/AGENTS.mddocuments this workflow.Code Reviewer Agent
Code Reviewer Notes
dev/seed/lib/email.tsto avoid importing fromapps/web/src/...while matching production duplicate-detection behavior.kilocode_users.microdollars_usedin the same transaction as the subscription fixture.