Skip to content

fix(browser): extract web bundle routes declared with template literals - #2823

Closed
Totopo27 wants to merge 12 commits into
morluto:mainfrom
Totopo27:fix/web-bundle-template-literal-routes
Closed

Totopo27 wants to merge 12 commits into
morluto:mainfrom
Totopo27:fix/web-bundle-template-literal-routes

Conversation

@Totopo27

Copy link
Copy Markdown
Contributor

Closes #2805

Summary

In \src/domain/webBundleAnalyzerInspection.ts, \inspectRouteProperty\ checked \ .isStringLiteral(node.value), missing routes when bundlers or minifiers (e.g. rolldown, esbuild, Angular 20) emit route path definitions using expression-free template literals ({ path: \ oo\ }).

Changes

  • In \src/domain/webBundleAnalyzerInspection.ts: use \stringValue(node.value)\ in \inspectRouteProperty\ to extract exact strings from string literals and expression-free template literals.
  • In \src/domain/webBundleAnalyzerAst.ts: update \objectString\ to evaluate values with
    eadExactJavaScriptLiteral.
  • In \src/domain/webBundleAnalyzer.test.ts: add a regression test verifying route extraction for expression-free template literals.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T18:37:10.753957Z ca446b3 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Low impact] This test-only PR appears safe to merge.

Summary

This PR now adds regression tests rather than changing route extraction.

  • Static-analysis tests now cover routes written with template literals.

The review used the full PR diff because the previous and current commits have different merge bases. No previous review threads were supplied. GitHub status could not be checked because authentication was unavailable.

Reviews (8) · Last reviewed commit: "Merge branch 'main' of https://github.co..." · Reviewed by Greptile

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 56f4ca459f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@morluto morluto added bug Something isn't working area: runtime Process capture and runtime observation area: domain Domain logic, errors, and pure functions P2: medium Medium priority issue labels Oct 13, 2026
@morluto

morluto commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Source fixes and publication evidence for the review findings below. Tests and executable checks were skipped at the maintainer's request. Findings that still require a decision or execution evidence remain open.

review thread

The normal static artifact route walk and the captured-bundle route inspector had diverged. The shared exact-string reader in inspectRouteProperty accepts expression-free template literals, and a direct analyzeJavaScriptStaticSource assertion now covers the route finding. Public source is at commit f3706ad. Source inspection and git diff --check only; the new regression was not executed, and no build or CI run was started. No directly related source cleanup remains.

dakjdakd and others added 8 commits October 14, 2026 01:15
* fix(comparison): preserve incomplete function call evidence

Keep missing, unknown, partial and unresolved call relationships unknown in function comparisons and reconstruction claims. Aggregate IDA caller and callee coverage without overwriting uncertainty.

Validate with 144 focused tests, typecheck/lint, docs checks and test discovery. Real providers were not verified; the full headless IDA session suite requires unavailable Windows native controls.

* fix(comparison): recheck historical calls-only changes

---------

Co-authored-by: morluto <[email protected]>
(cherry picked from commit 688defc)
…2895)

* fix: repair the static-check failures on the default branch

The default branch fails its own required `Static checks` job three ways, so
every pull request reports that job as failed regardless of its own change.

- `npm run format:check` reports `src/domain/functionComparison.test.ts` and
  `src/ida/IdaOperationRunner.ts`.
- `npm run lint` reports a duplicate `import { join } from "node:path"` in
  `tests/boundary/mcp/ghidraInventoryMcp.test.ts` (lines 4 and 17).
- `npm run typecheck` reports `format: "devin"` missing from the client format
  union in `src/application/SupportedClients.ts`, and an unchecked index in
  `tests/boundary/cli/clientProfileLifecycle.test.ts`, whose pair array is
  inferred as `string[][]`.

Apply the pinned formatter, drop the duplicate import, list the `"devin"` format
that its own definition already uses, and mark the pair array `as const`.

Validation: `npm run check:fast` and `npm run format:check` pass.

* fix(setup): keep Devin on the JSON configuration dialect

---------

Co-authored-by: 吴佳浩 <[email protected]>
Co-authored-by: morluto <[email protected]>
(cherry picked from commit df3d96d)
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@morluto

morluto commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Superseded by the delivered change on main: 88afcc738. Main has expression-free template route properties and dynamic-import chunk-edge regressions. PR #2963 remains open because its additional tRPC HTTP-link template URL behavior is distinct and still absent. Closing this earlier proposal. Current main qualification passed: https://github.com/morluto/rea/actions/runs/38690953281.

@morluto

morluto commented Oct 15, 2026

Copy link
Copy Markdown
Owner

@Totopo27, thanks for investigating template-based routes and dynamic imports. Main retains the corresponding source evidence through the shared JavaScript parser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: domain Domain logic, errors, and pure functions area: runtime Process capture and runtime observation bug Something isn't working P2: medium Medium priority issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] analyze_web_bundle misses routes declared with template literals (path:x)

5 participants