Skip to content

Conversation

@brandonkachen
Copy link
Collaborator

No description provided.

@brandonkachen brandonkachen force-pushed the refactor-repo-codex branch 2 times, most recently from 23827b2 to 6fde277 Compare December 4, 2025 20:29
@brandonkachen brandonkachen force-pushed the main branch 2 times, most recently from 2c18ea5 to 08f4c5e Compare December 5, 2025 08:19
@brandonkachen brandonkachen force-pushed the refactor-repo-codex branch 3 times, most recently from 4c77af3 to 8b9ea34 Compare December 10, 2025 00:17
@brandonkachen brandonkachen marked this pull request as ready for review December 10, 2025 00:42
@brandonkachen brandonkachen force-pushed the refactor-repo-codex branch 2 times, most recently from 024fe6b to 133c5ff Compare December 10, 2025 02:39
- Add initializeAgentRegistry() async function called at CLI startup
- Replace sync require-based agent loading with SDK loadLocalAgents()
- Remove dead code: gatherAgentFiles, regex patterns, SKIPPED_DIRECTORIES
- User agents now cached after SDK loads them via esbuild transpilation
- Preserve file paths for user agents (for UI "Open file" links)
- Update tests to work with bundled agents present (use test- prefix)
- Add 24 new tests for loadLocalAgents, handleSteps, utilities, edge cases
- Remove unused files variable in relabelUsingFullFilesForUser
- Add error logging for rejected relabel promises
- Extract FULL_FILE_CONTEXT_SUFFIX constant
- Add warning logging when SDK agent loading fails
- Improve API key error message with details and hint
- Add System type import from agent-runtime
- Add StoredMessage interface for BigQuery trace messages
- Add BigQueryTimestamp interface for timestamp handling
- Replace all as any casts with proper type assertions
- Update common/knowledge.md to reference web, cli, sdk packages
- Update ROADMAP.md with current Dec 2024 status
- Update authentication.knowledge.md to remove npm-app references
- Update packages/internal/src/knowledge.md package list
- Update cli/knowledge.md to remove npm-app reference
- Update knowledge.md referral system section
@brandonkachen brandonkachen force-pushed the refactor-repo-codex branch 2 times, most recently from bdcd694 to 4cf667c Compare December 10, 2025 08:14
- Add webEnv export that omits CODEBUFF_API_KEY (type-level protection)
- Add ESLint rule to catch direct process.env.CODEBUFF_API_KEY in web
- Relabel endpoint extracts API key from Authorization header
- Web imports webEnv to get TypeScript error if accessing CODEBUFF_API_KEY
- Update agent-runtime README paths
- Add ESLint rule to enforce webEnv import instead of env
- Replace all env imports with webEnv in 17 web files
- webEnv omits CODEBUFF_API_KEY for type-level security
- Remove CODEBUFF_API_KEY from typed serverEnvSchema entirely
- Add ciOnlyEnvVars array for CI injection only
- Remove webEnv/webEnvSchema (no longer needed)
- Revert web files from webEnv back to env
- env.CODEBUFF_API_KEY is now a TypeScript error everywhere
- Keep ESLint rule for process.env.CODEBUFF_API_KEY in web
- Wrap ensureEnvDefault calls with isCI check
- Local dev will fail fast on missing env vars
- CI gets safe defaults for tests
- Network errors should fail the test, not be silently ignored
- Remove confusing global loadedAgents export (was mutable state)
- Add proper typing with LoadedAgents and LoadedAgentDefinition types
- Add _sourceFilePath to each loaded agent for debugging
- Add validate option to automatically filter invalid agents
- Update README with comprehensive documentation
- All changes are backwards-compatible
- Add TypeScript overloads so validate: true returns { agents, validationErrors }
- Add AgentValidationError and LoadLocalAgentsResult types
- Export new types from SDK index
- Move validateAgents to static import (fix dynamic import pattern)
- Add comprehensive tests for loadLocalAgents with type safety
- Fix early return to respect validate flag
- Use codebuff/base2@latest for integration tests and e2e examples
- Keep base2 for unit tests that mock the database (agent string never resolves)
- Fixes "Invalid agent ID" errors in tests that hit the production API
@brandonkachen brandonkachen changed the title chore: remove legacy backend and npm-app cleanup: remove legacy backend and npm-app Dec 10, 2025
@brandonkachen brandonkachen merged commit 5f5ede5 into main Dec 10, 2025
30 checks passed
@brandonkachen brandonkachen deleted the refactor-repo-codex branch December 10, 2025 20:02
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.

2 participants