Skip to content

feat(discovery): add Phase 1 shared discovery layer and discover CLI command#149

Open
yu-iskw wants to merge 2 commits intomainfrom
claude/discovery-intent-phase-1-XaiWj
Open

feat(discovery): add Phase 1 shared discovery layer and discover CLI command#149
yu-iskw wants to merge 2 commits intomainfrom
claude/discovery-intent-phase-1-XaiWj

Conversation

@yu-iskw
Copy link
Copy Markdown
Owner

@yu-iskw yu-iskw commented Apr 19, 2026

Implements the discovery/query layer from the product Phase 1 strategy.

Changes:

  • core/src/discovery/discovery-types.ts: New DiscoveryOutput schema with
    scored matches, confidence, reasons, disambiguation, related resources,
    and next_actions fields
  • core/src/discovery/discovery-service.ts: DiscoveryService.query() — weighted
    ranking (exact/prefix/contains/tag/path/description/fuzzy), Levenshtein
    tolerance (edit distance ≤ 2), dependency centrality bonus, disambiguation
    for close candidates, depth-1 related resources, next-action suggestions
  • core/src/discovery/discovery-service.test.ts: 12 fixture-based tests covering
    exact match, prefix, typo tolerance, type filter, no-match, disambiguation,
    related resources, next_actions, centrality bonus, inline token parsing
  • core/src/index.ts + browser.ts: Export discovery types and DiscoveryService
  • core/src/introspection/schema-generator.ts: Register discover command schema
  • cli/src/discover-action.ts: New CLI action with human and JSON output
  • cli/src/cli-actions.ts: Export discoverAction
  • cli/src/cli.ts: Register dbt-tools discover "<query>" command with --type,
    --limit, --fields, --json, --no-json, --dbt-target flags

Quality gates: lint score 100, all 409 tests pass, coverage above thresholds,
knip clean.

https://claude.ai/code/session_01B9YSAvBqrwo9Ber77Dp7Zp

claude added 2 commits April 19, 2026 00:29
…command

Implements the discovery/query layer from the product Phase 1 strategy.

Changes:
- core/src/discovery/discovery-types.ts: New DiscoveryOutput schema with
  scored matches, confidence, reasons, disambiguation, related resources,
  and next_actions fields
- core/src/discovery/discovery-service.ts: DiscoveryService.query() — weighted
  ranking (exact/prefix/contains/tag/path/description/fuzzy), Levenshtein
  tolerance (edit distance ≤ 2), dependency centrality bonus, disambiguation
  for close candidates, depth-1 related resources, next-action suggestions
- core/src/discovery/discovery-service.test.ts: 12 fixture-based tests covering
  exact match, prefix, typo tolerance, type filter, no-match, disambiguation,
  related resources, next_actions, centrality bonus, inline token parsing
- core/src/index.ts + browser.ts: Export discovery types and DiscoveryService
- core/src/introspection/schema-generator.ts: Register discover command schema
- cli/src/discover-action.ts: New CLI action with human and JSON output
- cli/src/cli-actions.ts: Export discoverAction
- cli/src/cli.ts: Register `dbt-tools discover "<query>"` command with --type,
  --limit, --fields, --json, --no-json, --dbt-target flags

Quality gates: lint score 100, all 409 tests pass, coverage above thresholds,
knip clean.

https://claude.ai/code/session_01B9YSAvBqrwo9Ber77Dp7Zp
Fix Trunk Check CI failures caused by prettier formatting differences
in the four new discovery files.

https://claude.ai/code/session_01B9YSAvBqrwo9Ber77Dp7Zp
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