feat: tag sync - #1
Merged
Merged
Conversation
- Add tag command with sync subcommand for pulling tag definitions - Read scrawn.config.json for configuration (directory, envFile, envKey, serverUrl) - Walks up directory tree to find config file, uses defaults if absent - Parse .env file to extract SCRAWN_API_KEY - HTTP GET /api/v1/tags with Bearer auth - Generate .scrawn/tags.ts with type-safe ScrawnTag union + typed tag() wrapper
…/envKey - Change default directory from .scrawn to scrawn - Remove envFile/envKey config — read SCRAWN_KEY from OS env directly - Remove readEnvValue/scanEnvValue functions - Generate tags.ts (pure TAGS array + ScrawnTag type) - Generate biller.ts (configured createScrawn instance)
- Rewrite tag.go: no JSON config, spawns bun (or node+tsx) to eval .ts config - Bun auto-loads .env/.env.local (same as drizzle-kit's built-in dotenv) - Node fallback: CLI manually loads env files before spawning tsx - generate only tags.ts (pure data, no wrapper fn) - scrawn.config.ts replaces scrawn.config.json
- Add SpinnerTask to ui package with braille spinner frames - Show step progress: Reading config, Fetching tags, Writing output
Member
Author
|
corresponding implementation |
This was referenced May 10, 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.
No description provided.