ID:WORK-108Status:donePriority:mediumComplexity:simpleMilestone:v1.0.0
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.
Acceptance Criteria
packages/cli/src/commands/inspect.tsusesrune.typeNameinstead ofrune.type?.namerefrakt inspect hint --type=alloutput is identical before and afterrefrakt inspect --listoutput is identical before and afterrefrakt inspect hint --auditoutput is identical before and after- Any other tooling that reads
rune.typeis 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 inspectorpackages/vscode/src/inspector.ts— VSCode extension inspector
Approach
- Search for all usages of
rune.type?.name,rune.type?.schemaOrgType, andrune.typeacross the codebase - Replace with
rune.typeNameandrune.schemaOrgTyperespectively - Verify inspect output is unchanged
References
- ADR-005 (Phase 2)
- WORK-105 (dependency — dual-signature support)