Title: feat(forge-analyzer): tsconfig.json path alias resolution, monorepo module boundaries & PHP incremental AST parity · Issue #259 · elcode-id/elcode-forge · GitHub
Open Graph Title: feat(forge-analyzer): tsconfig.json path alias resolution, monorepo module boundaries & PHP incremental AST parity · Issue #259 · elcode-id/elcode-forge
X Title: feat(forge-analyzer): tsconfig.json path alias resolution, monorepo module boundaries & PHP incremental AST parity · Issue #259 · elcode-id/elcode-forge
Description: Part of #256. Scope Add lightweight TsConfigPaths loader (tsconfig.json / jsconfig.json with JSONC comment/trailing-comma stripping) in crates/forge-analyzer/src/ts_imports.rs supporting compilerOptions.baseUrl, compilerOptions.paths, ~/...
Open Graph Description: Part of #256. Scope Add lightweight TsConfigPaths loader (tsconfig.json / jsconfig.json with JSONC comment/trailing-comma stripping) in crates/forge-analyzer/src/ts_imports.rs supporting compilerOp...
X Description: Part of #256. Scope Add lightweight TsConfigPaths loader (tsconfig.json / jsconfig.json with JSONC comment/trailing-comma stripping) in crates/forge-analyzer/src/ts_imports.rs supporting compilerOp...
Opengraph URL: https://github.com/elcode-id/elcode-forge/issues/259
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(forge-analyzer): tsconfig.json path alias resolution, monorepo module boundaries & PHP incremental AST parity","articleBody":"Part of #256.\n\n## Scope\n- Add lightweight `TsConfigPaths` loader (`tsconfig.json` / `jsconfig.json` with JSONC comment/trailing-comma stripping) in `crates/forge-analyzer/src/ts_imports.rs` supporting `compilerOptions.baseUrl`, `compilerOptions.paths`, `~/`, and SvelteKit `$lib/`.\n- Wire `TsConfigPaths` into `build_ts_architecture_graph` (`crates/forge-analyzer/src/graph.rs`) and `assemble_graph_from_cache` (`crates/forge-analyzer/src/incremental.rs`).\n- Improve monorepo module boundary inference (`apps/\u003cpkg>/...`, `packages/\u003cpkg>/...`) in `infer_module_boundary` and `infer_boundary_for_lang` without breaking existing fixture outputs.\n- Add full PHP (`.php`) support to `crates/forge-analyzer/src/incremental.rs` (`is_supported_source_file`, `detect_file_lang`, `parse_single_file_ast`, `assemble_graph_from_cache`, `infer_boundary_for_lang`).\n\n## Out of scope\n- Full TypeScript compiler type-checking or external `node_modules` resolution.\n- Changing expected module boundaries in existing golden test fixtures.\n\n## Acceptance criteria\n- Custom `tsconfig.json` path aliases (e.g. `\"@app/*\": [\"src/app/*\"]`) and SvelteKit `$lib/*` resolve to repository files and create internal module edges.\n- `analyze_architecture_incremental` on `fixtures/laravel-app` produces the exact same `ArchitectureGraph` and circular dependencies as `build_polyglot_architecture_graph`.\n- All existing golden tests across `next-app`, `fastapi-app`, `go-service`, `rust-cli`, and `laravel-app` pass without regression.\n\n## Technical notes\n- Keep `resolve_import_specifier` backwards-compatible by delegating to `resolve_import_specifier_with_paths(..., None)`.\n- Also detect `tsconfig.json` inside monorepo subprojects when resolving paths for files under `apps/\u003cname>/...` or `packages/\u003cname>/...`.\n\n## Dependencies\n- Blocked by: #258\n\n## Definition of Done\n- [ ] Implementation completed in `crates/forge-analyzer/src/{ts_imports.rs,graph.rs,incremental.rs}`.\n- [ ] Unit tests added for `tsconfig.json` aliases, `$lib/` SvelteKit paths, monorepo boundaries, and PHP incremental AST cache parity.\n- [ ] Tier 1 (`forge-analyzer`) and Tier 2 (`forge-cli`) checks pass cleanly.\n- [ ] `docs/ARCHITECTURE_STATE.md` updated and PR squash-merged to `develop` after 100% green CI.\n","author":{"url":"https://github.com/luksluki","@type":"Person","name":"luksluki"},"datePublished":"2026-11-17T05:25:51Z","url":"https://github.com/elcode-id/elcode-forge/issues/259"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f7e1016b-a2b0-9ef2-07f6-2a59c6c60056 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B366:122A95:1BF91DF:265E6E5:6B0593E8 |
| html-safe-nonce | 66ef05b438a2d90194f5ba14123472de3b11a00e4fdcbd5bfdf6e0f12092f6cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzY2OjEyMkE5NToxQkY5MURGOjI2NUU2RTU6NkIwNTkzRTgiLCJ2aXNpdG9yX2lkIjoiNzY5Mzc0NjYxMDQzNzk4NTI1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 528b15523cf764800403c030a71de48526d9dd282b739c7aa8a6ff7f7fab6fe6 |
| hovercard-subject-tag | issue:6438044176 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/elcode-id/elcode-forge/259/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d0586d93ec7094ebfe1410471f543b8e7bd9e269a639461aa5f59e8667b85532/elcode-id/elcode-forge/issues/259 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d0586d93ec7094ebfe1410471f543b8e7bd9e269a639461aa5f59e8667b85532/elcode-id/elcode-forge/issues/259 |
| og:image:alt | Part of #256. Scope Add lightweight TsConfigPaths loader (tsconfig.json / jsconfig.json with JSONC comment/trailing-comma stripping) in crates/forge-analyzer/src/ts_imports.rs supporting compilerOp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | luksluki |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3b72fd2385d76a50ce0fe937d50bb4a81434432c4fd47866074a26f6cd03623f |
| turbo-cache-control | no-preview |
| go-import | github.com/elcode-id/elcode-forge git https://github.com/elcode-id/elcode-forge.git |
| octolytics-dimension-user_id | 337957755 |
| octolytics-dimension-user_login | elcode-id |
| octolytics-dimension-repository_id | 1423983661 |
| octolytics-dimension-repository_nwo | elcode-id/elcode-forge |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1423983661 |
| octolytics-dimension-repository_network_root_nwo | elcode-id/elcode-forge |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 58e2bd32336f3dcee343ec627a4d09c7c444e214 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width