Skip to content

refactor(cli): drop the artifacts command#2

Merged
robertDurst merged 1 commit into
mainfrom
drop-artifacts-command
May 10, 2026
Merged

refactor(cli): drop the artifacts command#2
robertDurst merged 1 commit into
mainfrom
drop-artifacts-command

Conversation

@robertDurst
Copy link
Copy Markdown
Contributor

Summary

  • Removes the caffeine artifacts CLI command, a vestigial pre-v5 surface that listed a single-entry "catalog" (SLO params) — the architectural concept it implied was abandoned in v5.0.0 ("Artifacts Be Gone").
  • Strips the four references to caffeine artifacts from explanations.gleam error prose (E301, E402, E500). Surrounding "artifact" / "standard-library artifact" / "artifact call" concept words are preserved — only the dead command pointer is gone.
  • Drops pretty_print_slo_params (and its test) from display.gleam since the removed handler was its only caller.

The discovery job this command performed — "what fields does an SLO take?" — is already covered by the LSP, the tour, and compile errors.

Adjacent commands (compile, format, types, explain) are unchanged.

Test plan

  • gleam build clean in caffeine_cli/
  • gleam test — 145 tests pass
  • Manually run caffeine artifacts and confirm the unknown-command did-you-mean kicks in (expect a suggestion of types since it's the closest known command at edit distance 6 — likely no suggestion, just the known-commands list)
  • caffeine --help and caffeine help <cmd> render without artifacts

🤖 Generated with Claude Code

The `artifacts` command listed a single-entry "catalog" (SLO params), a
vestigial pre-v5 surface from when the language was meant to grow more
artifact types. Since v5.0.0 closed that direction ("Artifacts Be Gone"),
the command perpetuates a deprecated mental model — discovery of SLO
fields is already covered by the LSP, the tour, and compile errors.

Removes the CommandSpec, dispatcher arm, handler, the only-caller
`pretty_print_slo_params` display helper, and tests. Strips the four
references to `caffeine artifacts` from `explanations.gleam` error
prose; keeps surrounding "artifact" concept words intact since the
internal compiler ontology is unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@robertDurst robertDurst merged commit 7de4bf5 into main May 10, 2026
3 checks passed
@robertDurst robertDurst deleted the drop-artifacts-command branch May 10, 2026 19:07
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.

1 participant