feat: implement workspace insights and wiki links - #44
Conversation
Greptile SummaryThis PR specifies the architecture and implementation plan for Workspace Insights and Wiki Links, then establishes the initial shared contracts, configuration, path matching, YAML frontmatter parsing, and anchor generation primitives.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| docs/workspace-insights-design.md | Defines the approved cross-runtime Workspace Insights and Wiki Links architecture, including metadata-only resource probes and reliable host-backed external checks. |
| docs/superpowers/plans/2026-08-27-workspace-insights-wiki-links.md | Breaks the design into staged implementation and verification tasks across shared UI modules and runtime hosts. |
| ui/src/insights/contracts.ts | Adds shared scan, source-read, resource-probe, filesystem-delta, capability, and external-link result contracts. |
| ui/src/insights/config.ts | Adds Insights defaults and normalization for limits, external checks, graph sizing, cache capacity, relationships, and lint settings. |
| ui/src/insights/patterns.ts | Implements ordered gitignore-style exclusions, user overrides, and non-overridable internal-path exclusions. |
| ui/src/markdown/frontmatter.ts | Adds YAML frontmatter parsing, typed Insights metadata, diagnostics, and body-to-source mappings. |
| ui/src/markdown/anchors.ts | Centralizes duplicate-aware heading IDs and static HTML anchor extraction for renderer and analysis consistency. |
| ui/src/markdown/renderer.ts | Refactors rendering to use the shared heading-ID allocator without changing intended anchor semantics. |
| ui/src/markdown/sourceMapping.ts | Delegates frontmatter extraction to the shared YAML-aware parser while retaining the existing compatibility interface. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
Host[Runtime host capabilities] --> Session[Insights session coordinator]
Session --> Worker[Insights worker and index]
Markdown[Shared Markdown parser] --> Worker
Markdown --> Renderer[Renderer and Wiki navigation]
Frontmatter[YAML frontmatter metadata] --> Markdown
Anchors[Shared anchor allocator] --> Renderer
Anchors --> Worker
Patterns[Path exclusion matcher] --> Host
Worker --> Views[Gallery, Links, Lint, Duplicates, Graph, Related]
Reviews (10): Last reviewed commit: "feat: share markdown metadata and anchor..." | Re-trigger Greptile
7ef2d82 to
c9a883f
Compare
c9a883f to
c9f64ab
Compare
There was a problem hiding this comment.
the-long-ride has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
There was a problem hiding this comment.
the-long-ride has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
There was a problem hiding this comment.
the-long-ride has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
There was a problem hiding this comment.
the-long-ride has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
There was a problem hiding this comment.
the-long-ride has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
fc031d6 to
1fa91bc
Compare
There was a problem hiding this comment.
the-long-ride has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
There was a problem hiding this comment.
the-long-ride has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
There was a problem hiding this comment.
the-long-ride has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
f54e292 to
a18956e
Compare
There was a problem hiding this comment.
the-long-ride has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
There was a problem hiding this comment.
the-long-ride has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
There was a problem hiding this comment.
the-long-ride has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
Summary
Cache and privacy
Verification
Exact head
42841a7381558503dc85368afebf52f409c06a34passed workflow run #504 (33272202798):forksVitest shards, 3,112 tests passed totalThe four UI shards intentionally preserve the normal Vitest runtime semantics while giving each shard a fresh heap.