Skip to content

refactor: eliminate code duplication in parse utilities and log formatting#171

Open
rlagentflowbeta[bot] wants to merge 1 commit intomainfrom
agent/fix-code-duplication
Open

refactor: eliminate code duplication in parse utilities and log formatting#171
rlagentflowbeta[bot] wants to merge 1 commit intomainfrom
agent/fix-code-duplication

Conversation

@rlagentflowbeta
Copy link
Contributor

Summary

  • Extract identical parseEnvVars and parseSecrets functions from devbox/create.ts and benchmark-job/run.ts into a new shared src/utils/parse.ts utility
  • Update blueprint/logs.ts to use formatTimestamp and getLogLevelInfo already exported from src/utils/logFormatter.ts, removing ~50 lines of duplicate timestamp/level formatting logic

Test plan

  • rli devbox create still works with --env-vars and --secrets flags
  • rli benchmark-job run still works with --env-vars and --secrets flags
  • rli blueprint logs <id> still formats log output correctly

🤖 Generated with Claude Code

…rmatter

- Add src/utils/parse.ts with shared parseEnvVars and parseSecrets functions
- Remove duplicate definitions from devbox/create.ts and benchmark-job/run.ts
- Replace duplicate formatLogLevel/formatTimestamp in blueprint/logs.ts with
  imports from logFormatter.ts (getLogLevelInfo and formatTimestamp)

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants