René's URL Explorer Experiment


Title: refactor: migrate billing and test files to dependency injection pattern by brandonkachen · Pull Request #408 · CodebuffAI/codebuff · GitHub

Open Graph Title: refactor: migrate billing and test files to dependency injection pattern by brandonkachen · Pull Request #408 · CodebuffAI/codebuff

X Title: refactor: migrate billing and test files to dependency injection pattern by brandonkachen · Pull Request #408 · CodebuffAI/codebuff

Description: Non-Test Files Changed (22 files, +1,393 / -157 lines) File +/- Description TESTING.md +518 New comprehensive testing guide common/src/types/contracts/billing.ts +334 New DI contract types packages/billing/src/auto-topup.ts +128/-40 DI refactor packages/billing/src/grant-credits.ts +84/-39 DI refactor packages/billing/src/billing.knowledge.md +81/-3 Updated docs packages/billing/src/org-billing.ts +54/-13 DI refactor packages/billing/src/stripe-metering.ts +42/-14 DI refactor packages/billing/src/balance-calculator.ts +40/-14 DI refactor packages/internal/src/db/types.ts +39 New transaction types packages/billing/src/usage-service.ts +25/-5 DI refactor packages/billing/src/credit-delegation.ts +16/-4 DI refactor packages/agent-runtime/src/llm-api/linkup-api.ts +10/-2 Minor update web/src/app/api/admin/relabel-for-user/route.ts +4/-6 TEST_USER_ID removal packages/billing/src/org-monitoring.ts +4/-4 Minor update evals/buffbench/main*.ts (4 files) +3 each CI=true env packages/internal/src/db/index.ts +2 Exports common/src/old-constants.ts -1 TEST_USER_ID removal web/src/app/api/v1/agent-runs/[runId]/steps/_post.ts -6 TEST_USER_ID removal web/src/app/api/v1/agent-runs/_post.ts -6 TEST_USER_ID removal Summary This PR refactors billing code and tests to use dependency injection (DI) instead of module mocking, following the patterns outlined in TESTING.md. Changes DI Infrastructure Add DI contract types for billing dependencies (BillingDbConnection, UsageServiceDeps, etc.) Create mock database helpers (createMockDb, createMockTransaction, createTrackedMockDb) Create test fixtures for billing (createMockCreditGrant, createMockUser, etc.) Billing Package Refactor Refactor grant-credits.ts to accept optional deps with transaction for DI Refactor usage-service.ts to accept UsageServiceDeps for testing Update all billing tests to use DI instead of mockModule Add getBillingDbClient() helper for centralized DB client handling Fix transactional consistency in triggerMonthlyResetAndGrant TEST_USER_ID Removal Remove hardcoded TEST_USER_ID bypass from production billing code Remove from balance-calculator.ts, stripe-metering.ts, and agent-runs API endpoints Evals now set CI=true at entry points to skip Stripe billing Test Coverage 158 billing tests passing ~5,300+ lines of new test infrastructure code Zero mockModule usage remains in billing tests Documentation Add TESTING.md with comprehensive DI patterns and test fixture documentation Update billing.knowledge.md with DI patterns reference Validation ✅ All 158 billing tests pass ✅ All 13 packages pass typecheck ✅ All 17 CI jobs pass ✅ Zero mockModule usage remains in billing tests ✅ Reviewed by Gemini CLI, Codex CLI, and Claude Code - all approved

Open Graph Description: Non-Test Files Changed (22 files, +1,393 / -157 lines) File +/- Description TESTING.md +518 New comprehensive testing guide common/src/types/contracts/billing.ts +334 New DI contract types...

X Description: Non-Test Files Changed (22 files, +1,393 / -157 lines) File +/- Description TESTING.md +518 New comprehensive testing guide common/src/types/contracts/billing.ts +334 New DI contract types...

Opengraph URL: https://github.com/CodebuffAI/codebuff/pull/408

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:7b45fd46-7ad6-6e07-0c73-b8c92305cac2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB34E:BA2A1:30196F:3CAF90:697FB3A0
html-safe-nonce2c318009f9570b1ca655dd85f4e92f7cd9cc1f59f5542bdcc7baa55622a6fcee
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzRFOkJBMkExOjMwMTk2RjozQ0FGOTA6Njk3RkIzQTAiLCJ2aXNpdG9yX2lkIjoiOTEzMzk5MTE3MDczOTc3ODQ2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6abcb5f522f0fe8dbda36c671d935f72dd99603c68ec89df3cbbb32343fd7993
hovercard-subject-tagpull_request:3167609605
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/CodebuffAI/codebuff/pull/408/files
twitter:imagehttps://avatars.githubusercontent.com/u/9735006?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/9735006?s=400&v=4
og:image:altNon-Test Files Changed (22 files, +1,393 / -157 lines) File +/- Description TESTING.md +518 New comprehensive testing guide common/src/types/contracts/billing.ts +334 New DI contract types...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/CodebuffAI/codebuff git https://github.com/CodebuffAI/codebuff.git
octolytics-dimension-user_id189203002
octolytics-dimension-user_loginCodebuffAI
octolytics-dimension-repository_id826515105
octolytics-dimension-repository_nwoCodebuffAI/codebuff
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id826515105
octolytics-dimension-repository_network_root_nwoCodebuffAI/codebuff
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FCodebuffAI%2Fcodebuff%2Fpull%2F408%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FCodebuffAI%2Fcodebuff%2Fpull%2F408%2Ffiles
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=CodebuffAI%2Fcodebuff
Reloadhttps://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes
Reloadhttps://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes
Reloadhttps://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes
CodebuffAI https://patch-diff.githubusercontent.com/CodebuffAI
codebuffhttps://patch-diff.githubusercontent.com/CodebuffAI/codebuff
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FCodebuffAI%2Fcodebuff
Fork 351 https://patch-diff.githubusercontent.com/login?return_to=%2FCodebuffAI%2Fcodebuff
Star 2.7k https://patch-diff.githubusercontent.com/login?return_to=%2FCodebuffAI%2Fcodebuff
Code https://patch-diff.githubusercontent.com/CodebuffAI/codebuff
Issues 27 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/issues
Pull requests 7 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pulls
Discussions https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/discussions
Actions https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/actions
Projects 0 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/projects
Security 0 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/security
Insights https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pulse
Code https://patch-diff.githubusercontent.com/CodebuffAI/codebuff
Issues https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/issues
Pull requests https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pulls
Discussions https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/discussions
Actions https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/actions
Projects https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/projects
Security https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/security
Insights https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2FCodebuffAI%2Fcodebuff%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2FCodebuffAI%2Fcodebuff%2Fissues%2Fnew%2Fchoose
brandonkachenhttps://patch-diff.githubusercontent.com/brandonkachen
mainhttps://patch-diff.githubusercontent.com/CodebuffAI/codebuff/tree/main
billing-di-refactor-v2https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/tree/billing-di-refactor-v2
Conversation 0 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408
Commits 34 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits
Checks 26 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/checks
Files changed https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/files
Please reload this pagehttps://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes
refactor: migrate billing and test files to dependency injection pattern https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#top
Show all changes 34 commits https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/files
88ddefb refactor: migrate billing and test files to dependency injection pattern brandonkachen Jan 12, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/88ddefbcd6bf78f64a14a47db973cb25059c15b0
6da0a4d refactor: remove TEST_USER_ID from production code entirely brandonkachen Jan 12, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/6da0a4d6dde7aa32bbfbd0f8b7374cc475968c86
44aede8 test: remove obsolete test user handling tests brandonkachen Jan 12, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/44aede8379af646608854fd03921b0dc18ed1f38
a5345cc feat: skip Stripe billing in evals by setting CI=true brandonkachen Jan 12, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/a5345cc8416f2f31e8ab9751057afcd991857a40
414f0ed test: add comprehensive unit tests for billing DI patterns brandonkachen Jan 12, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/414f0ed1a1ae6893e4700da4d5d74ec94a01c43e
3fd62df docs: remove TEST_USER_ID references from TESTING.md brandonkachen Jan 12, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/3fd62dfce0fee5a7df9eb588896e73d33b783ca5
cc429e9 test: add comprehensive integration tests for billing DI patterns brandonkachen Jan 12, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/cc429e92f55f456fe496f78e5c31a511f424ce7f
6d1e9ee fix: address PR review feedback brandonkachen Jan 12, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/6d1e9eeb0e2ca6a4c6b7da7d53ab375476865fdb
4b0916e feat: add DI support to organization billing functions with tests brandonkachen Jan 12, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/4b0916ed6eb0a216b4e5ff1a351e8d31894b2738
8b59c4b refactor: add stricter TypeScript types to mock-db helpers brandonkachen Jan 13, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/8b59c4b966f4f45fa4e801aeb2e854cfb7ceece5
1156896 docs: add JSDoc explaining why BillingTransactionFn uses any brandonkachen Jan 13, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/115689646e24270cc02629952f5d4447224c59c8
11ea354 refactor: replace any types with unknown and proper types in billing brandonkachen Jan 13, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/11ea3547b5c1ab4e21b09c05cd1ce0cc20f176be
a9f3556 chore: remove billing-di-refactor plan files after completion brandonkachen Jan 13, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/a9f35567d689fb74475bcb0c2cb50b80451ec089
44f246c refactor: remove non-billing DI changes to keep PR focused brandonkachen Jan 13, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/44f246cb0ff20e85bd5970680fbdf23b89db6ca8
c7bc739 feat: add DI support and tests for remaining billing functions brandonkachen Jan 13, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/c7bc739cecdd0821d0f205681e5a4608b70b61f9
9ee0194 feat: add DI support to org-billing functions brandonkachen Jan 13, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/9ee01945f2d69820283a5b58fc273909f70839ad
907be38 feat: add DI support to consumeCreditsAndAddAgentStep and calculateUs… brandonkachen Jan 13, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/907be38279d82280a991a811793be5e72003e5af
80d5a92 docs: update billing knowledge with comprehensive DI testing document… brandonkachen Jan 13, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/80d5a920b982d34aff36e79cb12c6f561b952859
972244d feat(cli): add Clickable component and fix button text selection brandonkachen Jan 13, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/972244da1f1828d9766c732840c5189870beb184
ea1be56 Merge main to get latest tooling brandonkachen Jan 13, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/ea1be56b27ea468fd984afc2f40b3e02d23b2e7d
85d87d7 feat: add CodebuffTransactionFn type and improve BillingTransactionFn… brandonkachen Jan 13, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/85d87d7cf9dcfa5b2d3d3c9b43122ec678d786cb
9c2a4d2 refactor: improve type safety by replacing any with unknown and prope… brandonkachen Jan 13, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/9c2a4d272dfedc486962894f68b8a6aafd133dec
d56740c Merge origin/main into billing-di-refactor-v2 brandonkachen Jan 14, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/d56740c47cf92401fe1504cd107d5a4c7e56b966
6b294b2 refactor: trim verbose JSDoc comments and use CodebuffTransaction type brandonkachen Jan 14, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/6b294b27b5413c8d5f0a1e1ac30d50062eeeaf45
a3457b4 revert: reset non-billing files back to main brandonkachen Jan 14, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/a3457b4f52bad18bfd831cfea1ac93420478919f
ebccd29 fix: reset local-agents.test.ts to match main (was accidentally modif… brandonkachen Jan 14, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/ebccd29c45746976e9674566c3cb40ec145e9553
a0d6953 ci: re-run CI to verify billing tests pass brandonkachen Jan 14, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/a0d69538f7b9324f91421281ace4cb0aff5cecf7
3c2592c fix: replace thenable array patterns with proper Promises in grant-cr… brandonkachen Jan 14, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/3c2592cc4ec2b1eca8f662bd12291dc98d8f2d85
41217c1 chore: address reviewer feedback - fix import spacing and document mo… brandonkachen Jan 14, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/41217c1b428c90f1cd10239dc8c6788f97faf79c
c28dcd1 fix: address code review issues from codex and claude CLI reviews brandonkachen Jan 15, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/c28dcd17691f7981f5ba4218afbff519a0a09051
2eb1bd9 fix: replace typeof db with BillingDbConnection in all billing depend… brandonkachen Jan 16, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/2eb1bd91f28ac1e0b1fae83794f6f415039f659b
28923bc refactor: clean up ugly type casting patterns in billing package brandonkachen Jan 16, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/28923bc09c608fd49f4a53aca405e203f1b7858c
0af83cf refactor: clean up grant-credits.ts type patterns and fix transaction… brandonkachen Jan 16, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/0af83cf0b15132e78aafb0cf98c1c843c1ff1921
1bca1eb refactor: standardize getBillingDbClient helper across all billing files brandonkachen Jan 16, 2026 https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/commits/1bca1eba55243af81a31e75e81ca88f80572ccee
Clear filters https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/files
Please reload this pagehttps://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes
Please reload this pagehttps://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes
TESTING.md https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-4da5f2fd7bc2f11672282410e99aad91d422f9f4fb6c723abc7ef29ee5cb6906
local-agents.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-d1d5b3ddb05302b150c462134d08237bf4b4157ea88cd495642c067df99d8419
old-constants.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-7cb6a9343793e855cc70e743e324ad3c194265526129313aa50e0e941c1c1ec1
fixtures.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-d501ce837c2dc214fff7cf8b016437fd82b52706f9fa2fb6f7a514787cf3c299
billing.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-1a7d88c6e63ebb2de9fe7202cd00420db47d12d4faa774c95a86872026318ab6
index.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-2118c94ff2a366664247b258f53d27a76e610da8233cab689a46a0abb64089b0
mock-db.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-f36e09f86c0d6912873929ec42301a6423965844aeaf2ddb7823ecd10404b061
billing.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-ba0c4fd8aa9779403e765159992c4684a79257d09b785c7a302f52b334f48dca
main-hard-tasks.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-b7bf77356fd434f45b80ef399338b312ee01ffa04efd74ed0d3f9bffe0436dd3
main-nightly.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-dba6a4b113370ca1790372b67c33838d3441d702871f4762be3b18aeef0002e1
main-single-eval.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-6794b2827794f8af6a7d1ef6eaed1ab04f9dd20c4ad73e3f3456a3c43f838a6c
main.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-3cd624f10d7a3ff7d503e9f54d08098980d32f9210d7442f5d4397db7958314c
fast-rewrite.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-7b443d14dd775770bad0a729349c14b2d46ef8e2fb9e5a35ea2308345597d9b5
loop-agent-steps.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-a90898561d11b0135f494b7b292cda9d3b5fc0e015f4e93c55f4b72418e5c784
main-prompt.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-1c8866428362f41111a268760b187ec63765d7374d7f8ce04d535c34d194d721
n-parameter.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-9cb471c3e0903daeab0fb766cb1398e3a92a512a5778a1634d42fa4eababbec5
process-file-block.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-abc18a713398ff83e494c85fe65146a9f9ef2f446bb5685937fd257e8271480d
prompt-caching-subagents.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-e3dea7b0f4562c71b24bb39b39ec1796f1b722a12a0d152afd50d3d319b91c34
propose-tools.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-bbdcb3a695abf71a9eb8b1628ed683fa7f2f0e3aa29aeaf6b507cc61c98fd1ca
read-docs-tool.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-bca41a73f278a7066ee47835696a8e1e09fee939ee2bba478c61b86c36bf9a69
run-agent-step-tools.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-56aa72eb795554c435f2d4aa23d269f66d0d0a76a292ee8b36f5b1727d20d9b1
run-programmatic-step.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-0656dd9f476abd72bf88d8541f4f40bae22792f98a788e84119e3ffd7edd8b6b
spawn-agents-image-content.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-e61f27ea442253ed7d89ac993f814cc11a88af7dbb9398d32468f8bfba3a3063
spawn-agents-message-history.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-9c0a661deeef2f12e29b2934a452a6a53041512f60ad6798391a3db1f9681a6a
spawn-agents-permissions.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-0b9986af3195b1bf0c98ea11f35e6c583004c6cca992040f9426855e8bea9fba
subagent-streaming.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-9d0ee2d440536732a677e64d0b60588db9b35b05b895a0b69c2c6316cf2a99eb
web-search-tool.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-982a73b247e9b063afd71d8babc72680c3d9d2ae18ca845a1f7d53b983bfce49
linkup-api.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-21efaef5cf62a7b5e8304b05d12d3455dd6153f5d0ed23fa3c1956df26f5b14c
linkup-api.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-526bf6b6454ff157f6edfafcf752bfe5e493e467129e4f2a95fe7128bbbb51fe
auto-topup.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-fa3aedc0dcb04d7e017ca7a3417979bf0338214b121cfb293001a36595257201
balance-calculator.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-07e144974a801bb239d328c89c87abbdd5ab66be626867b242c8e42882d2f1bd
billing-integration.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-259f8a2f9f8418dfc92008823fba7cf52bc953d841bfcf3d5d9192a96dcd1401
credit-delegation.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-703c21530288b8853180c3cbdd9b45ad04992c183a087602f754af0e2907e92f
grant-credits.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-9668b6b207875572de315b010f2b6c1d75ad8c5a1344bbcf1ba4ca3230ee705f
org-billing.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-754ed215ab93783f75276bd854d3f3900269454b4d1dd38e2e53723a50fab252
stripe-metering.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-f475f9da1427880d8ce1bf08ade701843accaece1d9e489f0f69724e636c0fae
usage-service.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-56a059d0f78f170d5602531b0075a3813522ba87b0bcea664dfe234fc1f0116d
auto-topup.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-984a3673bc4c4d5f196ab6d8e4d1df125d84c57ec3ecf2f5516bf7d487188ba7
balance-calculator.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-3302508cb2bebddd8c8da857eed3c30aac5bd7b369caf018ec6ab222174cec05
billing.knowledge.md https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-7cd2905948f59c5d750a52d47bb58a01a8e36b9abc9298a9137a29efcdf64851
credit-delegation.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-b7cdad9848216b5b4a6a20ddc26248dd8814ddf24683361b43e82b854881e725
grant-credits.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-28a30c45d204dad797ea8d65c92dd5483959df27a5f464a8a1d2dfd0be79f177
org-billing.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-39bf8e88c5c39f92266b2938942c4a7bbf34b8a0eda2e28158486bcca0f37b4b
org-monitoring.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-e8d90e9bfc325a88cfa3b288e7aa7bd2d0f952e4912a69106a3807225647d87b
stripe-metering.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-de14d28bcc3013691104d89815652398283bd09193f087b8d72c5ee260b99f39
usage-service.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-a245273bac5d1051a9508bcec43e047893bb5c3021bb383e90fc6ed24ac17828
index.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-b4a6f35f425e03e47d473d8957740b3c9868fc969a8076778a7283951aa09a3d
types.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-670d48524ca379e03b6ba48e7b14db821e698abbfb3c9d3ed6bafbb7039f0826
route.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-12af4d4a17d2db2778c8c5b12a93e18dc1c177a51974622b555011626682ba5b
steps.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-16234c225d49bfb4ff38355e06ab925bb3f63060725e90409b1a5dad9141c537
_post.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-46d29442d964b380a8eba00901ef2648ea9887819997d0f5ef9031a13fc05157
agent-runs.test.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-6e9101d98373a67ecb71d15c28a5708004758b82ec292b96ca3649a15176156a
_post.ts https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-deed08a33bfa42970fca8985a3afd9670a4cf06578ba60aa0ae6883b5fdf7ca2
https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/blob/main/.github/CODEOWNERS#L1
TESTING.mdhttps://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-4da5f2fd7bc2f11672282410e99aad91d422f9f4fb6c723abc7ef29ee5cb6906
View file https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/blob/1bca1eba55243af81a31e75e81ca88f80572ccee/TESTING.md
Open in desktop https://desktop.github.com
Please reload this pagehttps://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes
https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/blob/main/.github/CODEOWNERS#L1
cli/src/__tests__/integration/local-agents.test.tshttps://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-d1d5b3ddb05302b150c462134d08237bf4b4157ea88cd495642c067df99d8419
View file https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/blob/1bca1eba55243af81a31e75e81ca88f80572ccee/cli/src/__tests__/integration/local-agents.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-d1d5b3ddb05302b150c462134d08237bf4b4157ea88cd495642c067df99d8419
https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-d1d5b3ddb05302b150c462134d08237bf4b4157ea88cd495642c067df99d8419
https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-d1d5b3ddb05302b150c462134d08237bf4b4157ea88cd495642c067df99d8419
https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/blob/main/.github/CODEOWNERS#L1
common/src/old-constants.tshttps://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-7cb6a9343793e855cc70e743e324ad3c194265526129313aa50e0e941c1c1ec1
View file https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/blob/1bca1eba55243af81a31e75e81ca88f80572ccee/common/src/old-constants.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-7cb6a9343793e855cc70e743e324ad3c194265526129313aa50e0e941c1c1ec1
https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-7cb6a9343793e855cc70e743e324ad3c194265526129313aa50e0e941c1c1ec1
https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/blob/main/.github/CODEOWNERS#L1
common/src/testing/fixtures.tshttps://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-d501ce837c2dc214fff7cf8b016437fd82b52706f9fa2fb6f7a514787cf3c299
View file https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/blob/1bca1eba55243af81a31e75e81ca88f80572ccee/common/src/testing/fixtures.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/blob/main/.github/CODEOWNERS#L1
common/src/testing/fixtures/billing.tshttps://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-1a7d88c6e63ebb2de9fe7202cd00420db47d12d4faa774c95a86872026318ab6
View file https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/blob/1bca1eba55243af81a31e75e81ca88f80572ccee/common/src/testing/fixtures/billing.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/blob/main/.github/CODEOWNERS#L1
common/src/testing/fixtures/index.tshttps://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes#diff-2118c94ff2a366664247b258f53d27a76e610da8233cab689a46a0abb64089b0
View file https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/blob/1bca1eba55243af81a31e75e81ca88f80572ccee/common/src/testing/fixtures/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/{{ revealButtonHref }}
Please reload this pagehttps://patch-diff.githubusercontent.com/CodebuffAI/codebuff/pull/408/changes
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.