Skip to content

v0.3.0 — Context, DI, and AOP inspection

Choose a tag to compare

@suzumaze suzumaze released this 29 Sep 07:02
ca558b7

BEAR context, DI, and AOP inspection from saved source is now available through Phpactor's read-only semantic requests.

  • Discover application-context candidates with their entry-point locations (bear/app/contexts).
  • Explain a binding for an explicit context with its declaration, Module import path, and retained/discarded decisions (bear/di/bindingLookup). Unknown composition is reported as provisional.
  • Inspect workspace Module relationships and direct binding/AOP declarations with file and line (bear/di/moduleGraph, bear/di/moduleDeclarations).
  • Find PHP attribute definitions and source-matched Resource interceptor chains (bear/attribute/catalog, bear/aop/applications).
  • Compose a bounded, source-derived DI container from supported application and installed vendor Module source (bear/di/container).

These queries do not execute application PHP or prove runtime dependency resolution or AOP weaving. Instance values are not returned. The Module map and direct-declaration view do not expand vendor Modules; binding composition has a separate, broader read boundary.

Validated with 676 PHPUnit tests, PHP_CodeSniffer, PHPStan, PHP 8.2–8.5 CI, the BEAR.Kata/Ray oracle test, and MCP end-to-end integration against BEAR.Kata.