Skip to content

feat(generic): PowerShell breadth tier (.ps1/.psm1) - #774

Merged
shhdwi merged 1 commit into
mainfrom
land/pr-550
Nov 9, 2026
Merged

shhdwi merged 1 commit into
mainfrom
land/pr-550

Conversation

@shhdwi

@shhdwi shhdwi commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Re-lands #550 by @visualzbyvj with its merge conflicts against main resolved.

The fork branch couldn't take the merge commit: merging main into it brings in a newer GitHub workflow file, and our token can't push workflow changes. The commit is authored by @visualzbyvj, so the credit stays theirs.

What was checked before opening this:

  • The diff matches feat(generic): PowerShell breadth tier (.ps1/.psm1) #550 line for line apart from the conflict resolution.
  • npm run build passes, and the tests for the touched files pass (the only local failure is the "graft repo moves to trail" test, which fails the same way on main on a laptop that already has trail installed).
  • The diff was read for security: no shell strings, no writes outside the repo or the agent's own config folder, no secrets or new network calls.

Closes #550.

🤖 Generated with Claude Code

Re-landed from #550 with the conflicts against main resolved; the
contributor's fork couldn't take the merge commit.

Co-Authored-By: Shrish Dwivedi <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@trailhq-graft

trailhq-graft Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

🌱 graft blast radius

1 area changed → 9 areas can be affected. 19 dependent symbols, depth 2.
Tag: @anirudhkumar-nanonets — 7 of 10 areas · @Faeeth — 3 of 10 areas · Rushabh Nagda — Cloud Onboarding

flowchart TB
  A0(("Dependency Graph<br/>9 symbols"))
  A1(("CLI Engine<br/>3 symbols"))
  A2(("Build Context<br/>1 symbol"))
  A3(("Note Overlap Detection<br/>1 symbol"))
  A4(("LSP Enrichment<br/>1 symbol"))
  AX(("4 smaller areas<br/>4 symbols"))
  classDef reached fill:#D9EDF3,stroke:#3AA7C9,stroke-width:1.5px,color:#0E313C;
  class A0,A1,A2,A3,A4 reached;
  classDef tail fill:#EEF2F3,stroke:#9AA4A9,stroke-width:1px,color:#3A4247;
  class AX tail;
Loading
Can be affected Symbols Nearest hop Reached from
Dependency Graph 9 src/graph/build.ts:L1-L484 build.ts — imports, depth 1 Generic Graph
CLI Engine 3 src/cli.ts:L1-L3390 cli.ts — imports, depth 2 Generic Graph
Build Context 1 src/context/build.ts:L1-L511 build.ts — imports, depth 2 Generic Graph
Note Overlap Detection 1 src/notes/edit-overlap.ts:L1-L244 edit-overlap.ts — imports, depth 1 Generic Graph
LSP Enrichment 1 src/graph/lsp/enrich.ts:L1-L145 enrich.ts — imports, depth 1 Generic Graph
Ignored Code Search 1 src/search/ignored-code.ts:L1-L68 ignored-code.ts — imports, depth 2 Generic Graph
3 smaller areas 3 Cloud Onboarding, Code Review, MCP Tools see below
Who knows this code — 6 people across 10 areas
Area Who knows it
Generic Graph · changed @Frankie-Xu — 2 commits, last 3mo ago
Dependency Graph · affected @anirudhkumar-nanonets — 27 commits, last 7d ago
CLI Engine · affected @anirudhkumar-nanonets — 73 commits, last yesterday
Build Context · affected @anirudhkumar-nanonets — 4 commits, last 3mo ago · @qoole — 3 commits, last 18d ago
Note Overlap Detection · affected @Faeeth — 1 commit, last yesterday · @anirudhkumar-nanonets — 1 commit, last 25d ago
LSP Enrichment · affected Mookahfr — 1 commit, last 18d ago
Ignored Code Search · affected @Faeeth — 1 commit, last yesterday · @anirudhkumar-nanonets — 1 commit, last 19d ago
Cloud Onboarding · affected Rushabh Nagda — 3 commits, last 19d ago · @Faeeth — 1 commit, last yesterday
…2 further areas

Ownership is git history over each area's own files, weighted towards recent work (120-day half-life). Merge commits and bots are dropped, and you are dropped from your own PR. A name with no @ has no GitHub handle in its commit email — tag them by hand, or add a .mailmap entry. A suggestion from history, not a CODEOWNERS rule.

All 19 dependent symbols, grouped by area

Dependency Graph — 9 symbols in 9 files

  • src/graph/build.ts:L1-L484 — build.ts (imports, depth 1)
    21: import { extractGeneric, fallbackLangOf, genericLangOf, warmGenericGrammars, type GenericLang } from "./generic.js";
  • src/graph/check.ts:L1-L216 — check.ts (imports, depth 1)
    24: import { extractGeneric } from "./generic.js";
  • src/graph/container.ts:L1-L215 — container.ts (imports, depth 1)
    25: import { extractGeneric, fallbackLangOf, loadWasmLanguage, parseWasm, type TsNode } from "./generic.js";
  • src/graph/resolve.ts:L1-L726 — resolve.ts (imports, depth 1)
    19: import { genericLangOf } from "./generic.js";
  • src/graph/source-files.ts:L1-L130 — source-files.ts (imports, depth 1)
    15: import { genericLangOf, genericExtensions } from "./generic.js";
  • src/graph/fingerprint.ts:L1-L201 — fingerprint.ts (imports, depth 2)
  • src/graph/refresh-run.ts:L1-L33 — refresh-run.ts (imports, depth 2)
  • src/graph/refresh.ts:L1-L394 — refresh.ts (imports, depth 2)
  • src/graph/workspace.ts:L1-L726 — workspace.ts (imports, depth 2)

CLI Engine — 3 symbols in 3 files

  • src/cli.ts:L1-L3390 — cli.ts (imports, depth 2)
  • src/engine.ts:L1-L169 — engine.ts (imports, depth 2)
  • src/index.ts:L1-L47 — index.ts (imports, depth 2)

Build Context — 1 symbol in 1 file

  • src/context/build.ts:L1-L511 — build.ts (imports, depth 2)

Note Overlap Detection — 1 symbol in 1 file

  • src/notes/edit-overlap.ts:L1-L244 — edit-overlap.ts (imports, depth 1)
    16: import { extractGeneric } from "../graph/generic.js";

LSP Enrichment — 1 symbol in 1 file

  • src/graph/lsp/enrich.ts:L1-L145 — enrich.ts (imports, depth 1)
    17: import { genericLangOf } from "../generic.js";

Ignored Code Search — 1 symbol in 1 file

  • src/search/ignored-code.ts:L1-L68 — ignored-code.ts (imports, depth 2)

Cloud Onboarding — 1 symbol in 1 file

  • src/cloud/onboarding.ts:L1-L722 — onboarding.ts (imports, depth 2)

Code Review — 1 symbol in 1 file

  • src/app/review.ts:L1-L174 — review.ts (imports, depth 2)

MCP Tools — 1 symbol in 1 file

  • src/mcp/tools.ts:L1-L352 — tools.ts (imports, depth 2)
Test signal per changed area — 1 –

Reached = a node under a test path has a resolved edge into the changed symbol. It undercounts anything called indirectly — through a CLI, a spawned process or a dynamic import — so read a low ratio as “look here”, never as a coverage gate.

  • – Generic Graph — 1 test file changed here: test/generic-extract.test.ts
51 test suites also reference this code

51 symbols, kept out of the diagram and the table so they cannot crowd out the areas a reviewer has to look at.

  • test/ask-index.test.ts
  • test/ask.test.ts
  • test/claude-hooks.test.ts
  • test/claude-prompt-private.test.ts
  • test/container-extract.test.ts
  • test/context-only-dir.test.ts
  • test/context.test.ts
  • test/covers.test.ts
  • test/depth-parity.ts
  • test/generic-node24-probe.ts
  • test/graph-cross-language.test.ts
  • test/graph-enrich-pending.test.ts
  • test/graph-extensions.test.ts
  • test/graph-go.test.ts
  • test/graph-incremental.test.ts
  • test/graph-invariants.test.ts
  • test/graph-java.test.ts
  • test/graph-languages.test.ts
  • test/graph-native-fallback.test.ts
  • test/graph-php.test.ts
  • …31 more

⚠️ 1 changed file not in the graph (src/graph/queries/powershell.scm) — no parser claims the extension, or the index predates the file.

graft blast · origin/main...HEAD · depth 2 · 3 changed files

Open the interactive graph → — click an area to see its dependent symbols at file:line.

github-actions Bot added a commit that referenced this pull request Nov 9, 2026
@shhdwi
shhdwi merged commit d92bcb2 into main Nov 9, 2026
8 checks passed
@shhdwi
shhdwi deleted the land/pr-550 branch November 9, 2026 14:13
github-actions Bot added a commit that referenced this pull request Nov 9, 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.

2 participants