Skip to content

[CLOSED][APPS] Folded into #349: Refactor connection ID extraction modules#352

Closed
sdkennedy2 wants to merge 1 commit intosdkennedy2/poc-eslint-scope-walkerfrom
sdkennedy2/refactor-connection-id-extraction-modules
Closed

[CLOSED][APPS] Folded into #349: Refactor connection ID extraction modules#352
sdkennedy2 wants to merge 1 commit intosdkennedy2/poc-eslint-scope-walkerfrom
sdkennedy2/refactor-connection-id-extraction-modules

Conversation

@sdkennedy2
Copy link
Copy Markdown
Collaborator

@sdkennedy2 sdkennedy2 commented May 8, 2026

Motivation

This prepares the connection ID extraction stack for same-module and module-graph resolution work by separating the current inline extractor into smaller responsibility-focused modules. The goal of this PR is reviewability: move existing behavior into clearer boundaries before adding new resolver semantics in the next PR.

Changes

This is intended to be behavior-neutral relative to #349.

The existing extractor code is split under packages/plugins/apps/src/backend/ast-parsing/:

  • action-catalog-imports.ts owns action-catalog import detection and type-only import filtering.
  • action-catalog-call-sites.ts owns eslint-scope analysis, shadow-safe action-catalog call classification, and unsupported action alias detection.
  • connection-id-values.ts owns connectionId property lookup and inline string literal extraction.
  • extract-connection-ids.ts remains the public orchestration entrypoint that validates the AST, finds action-catalog calls, extracts IDs, and returns the sorted/deduped file-level union.

This PR should preserve #349 behavior: inline string literal connectionId values are supported, and non-inline values still fail closed for known action-catalog calls.

QA Instructions

The existing extractor tests continue to cover the behavior moved into the new modules. CI/CD will run lint, typecheck, and the test suite for this stack.

Blast Radius

This affects Apps backend function connection ID extraction internals only. It should not change the generated manifest behavior or runtime backend execution.

Documentation

Copy link
Copy Markdown
Collaborator Author

sdkennedy2 commented May 8, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@sdkennedy2 sdkennedy2 changed the title Refactor connection ID extraction modules [APPS] Refactor connection ID extraction modules May 8, 2026
@sdkennedy2 sdkennedy2 changed the title [APPS] Refactor connection ID extraction modules [APPS][Connections Part 3] Refactor connection ID extraction modules May 8, 2026
@sdkennedy2 sdkennedy2 marked this pull request as ready for review May 8, 2026 17:54
@sdkennedy2 sdkennedy2 requested review from a team and yoannmoinet as code owners May 8, 2026 17:54
@sdkennedy2 sdkennedy2 closed this May 8, 2026
@sdkennedy2 sdkennedy2 changed the title [APPS][Connections Part 3] Refactor connection ID extraction modules [CLOSED][APPS] Folded into #349: Refactor connection ID extraction modules May 8, 2026
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.

1 participant