refactor: backend-focused cleanup — remove hardcoded paths, garbage files, frontend deps - #3
Merged
Merged
Conversation
…iles, frontend deps 1. Fix .env: relative DATABASE_URL, create .env.example with all vars documented 2. Fix hardcoded paths: commandRunner.ts and codelens-ws/index.ts now require CODELENS_PYTHON and CODELENS_SCRIPT env vars with clear error messages 3. Cleanup: delete agent-ctx/, upload/, archive worklog.md and components.json 4. Add .zscripts/dev.pid and .zscripts/*.log to .gitignore 5. Rewrite README.md: backend-only focus with API docs, WebSocket events, 39 CLI commands table, setup guide, env vars reference 6. Add CHANGELOG.md (v1.0.0 through v5.1.0) 7. Audit package.json: remove 40+ unused frontend deps (radix-ui, d3-force, recharts, framer-motion, etc.), keep only backend essentials 8. Rename package from nextjs_tailwind_shadcn_ts to codelens 9. Add ws:dev and ws:start scripts for WebSocket server
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Wolfvin
pushed a commit
that referenced
this pull request
Jun 11, 2026
Elimination #3: Dataclass refactor, O(n log n) Gini, framework detection upgrades - registry.py: +72 lines FrontendRegistryInput dataclass (replaces 9-param function) - search_engine.py: +102 lines improved search - normalizer.ts: +33 lines new normalization support - healthScore.ts: O(n log n) Gini algorithm - WebSocket: improved connection handling - Version synced to 5.7.1
This was referenced Jun 28, 2026
Merged
This was referenced Jul 12, 2026
fix(api-map): detect router.use() middleware to fix auth_protected false-negative (closes #214)
#226
Closed
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.




Changes
1. Fix .env
DATABASE_URLfrom hardcoded/home/z/my-project/db/custom.dbto relative./db/custom.db.env.exampledocumenting all env vars:CODELENS_PYTHON,CODELENS_SCRIPT,CODELENS_WS_PORT,CORS_ORIGIN,DATABASE_URL2. Fix hardcoded paths
src/lib/commandRunner.ts: Removed hardcoded fallbacks forCODELENS_PYTHONandCODELENS_SCRIPT. Now throws a clear error if env vars are not set.mini-services/codelens-ws/index.ts: Same — removed hardcoded paths, added validation withprocess.exit(1)on missing env vars.3. Cleanup garbage
agent-ctx/(old agent context files)upload/(old screenshots and specs)worklog.mdto_archive/worklog.mdcomponents.json(shadcn config) to_archive/components.json.zscripts/dev.pidand.zscripts/*.logto.gitignore4. Rewrite README.md
5. Add CHANGELOG.md
skills/codelens/CHANGELOG.md6. Audit package.json
nextjs_tailwind_shadcn_tstocodelens5.1.0ws:devandws:startscriptsbun.lockNot touched
src/lib/(except commandRunner.ts for path fix)src/app/api/src/types/mini-services/codelens-ws/(except index.ts for path fix)skills/codelens/codelens-watch.py__tests__/