GitNexus/gitnexus/src
Garrett Griffin-Morales b77cb4ed33 feat(zig): surface staticGated on impact byDepth items; gate if-expressions and negated/parenthesized conditions
Addresses the tri-review on #3161.

- impact: the depth traversal already selected r.staticGated but dropped it
  when building the byDepth item. Forward it (present only when true) and
  document the field on the impact tool's byDepth contract. Traversal and
  ranking still do not act on it; that stays opt-in for consumers.
- zig-static-gating: walk `if_expression` (`const x = if (c) a() else b();`)
  in addition to `if_statement`. The expression form has no field names and
  no else_clause wrapper, so the arms are located positionally
  (`ifExpressionArms`). Labeled-block arms are covered.
- evalCond: `parenthesized_expression` is transparent, so `!(A and B)` and
  `((FLAG))` fold. Prefix `!` has no unary node in tree-sitter-zig; the
  header now says exactly which shapes fold instead of "simple negation".
- fixture + tests: nine new cases (negation x2, parentheses x2,
  if-expression then/else/labeled-block x5). Cross-file `@import` constants
  remain skipped and now cite the tracking issue #3162.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015ciQ3MTjpQXkCoNntZR9zG
2026-09-03 12:57:00 -04:00
..
cli feat: add Zig language support (#1432) 2026-09-03 13:29:42 +01:00
config feat(analyze): add incremental watch mode (#3072) 2026-08-29 10:40:56 +00:00
core feat(zig): surface staticGated on impact byDepth items; gate if-expressions and negated/parenthesized conditions 2026-09-03 12:57:00 -04:00
lib fix(mcp): stop scaling the detect_changes query with the diff's hunk count (#2915) (#2930) 2026-08-12 14:51:17 +01:00
mcp feat(zig): surface staticGated on impact byDepth items; gate if-expressions and negated/parenthesized conditions 2026-09-03 12:57:00 -04:00
server feat(ingestion): mint Destination nodes from AsyncAPI 3.x documents (#3140) 2026-09-02 22:01:15 +00:00
storage feat(zig): stamp static-gated call sites through the scope pipeline 2026-09-03 09:49:31 -04:00
types fix(analyze): make incremental analyze skip the derived layers it can reuse (#3016) (#3102) 2026-08-30 17:07:57 +00:00
utils feat: add gitnexus auto-sync for scheduled remote clone and analyze (#2493) 2026-09-02 19:40:18 +01:00