WORK-108
ID:WORK-108Status:done

Update inspect tooling for string-based rune types

Phase 2c of ADR-005. Update refrakt inspect and related tooling to use the Rune.typeName string field instead of rune.type?.name. Small change (~4 lines) but needed before Phase 3 cleanup can remove the Type class.

Depends on WORK-105 (dual-signature support) being complete.

Priority:mediumComplexity:simpleMilestone:v1.0.0Source:ADR-005
changeset-release/main View source

Criteria completion

No incremental history — criteria tracking started on Apr 19.

Branches 2
changeset-release/main current done
main doneclaude/file-naming-convention-LJdwR done
History 6
  1. f2b3512
    Content editedby Claude
    Add {ID}-{slug}.md filename convention + migrate filenames subcommand
  2. 59ded4a
    Content editedby Claude
    Implement SPEC-037 plan package hardening: all 7 work items
  3. f262d7b
    Content editedby Claude
    Backfill source attributes on all 123 work items
  4. f0a845a
    Content editedby Claude
    chore(plan): check off acceptance criteria for 14 completed v1.0.0 work
  5. c87b1c2
    Content editedby Claude
    Implement ADR-005: replace useSchema/Type system with inline rune identi
  6. 721addb
    Created (done)by Claude
    Break ADR-005 into work items (WORK-105 through WORK-109)

Acceptance Criteria

  • packages/cli/src/commands/inspect.ts uses rune.typeName instead of rune.type?.name
  • refrakt inspect hint --type=all output is identical before and after
  • refrakt inspect --list output is identical before and after
  • refrakt inspect hint --audit output is identical before and after
  • Any other tooling that reads rune.type is updated (language server inspector, vscode inspector)

Key Files

  • packages/cli/src/commands/inspect.ts — main inspector (lines 163-164, 222-223, 281-282)
  • packages/language-server/src/providers/inspector.ts — LSP inspector
  • packages/vscode/src/inspector.ts — VSCode extension inspector

Approach

  1. Search for all usages of rune.type?.name, rune.type?.schemaOrgType, and rune.type across the codebase
  2. Replace with rune.typeName and rune.schemaOrgType respectively
  3. Verify inspect output is unchanged

References

  • ADR-005 (Phase 2)
  • WORK-105 (dependency — dual-signature support)