Skip to content

chore(deps): the Charm stack moves to v2 under charm.land, and devlore-cli's owed changes land with it - #1102

Merged
David-Noble-at-work merged 16 commits into
developfrom
chore/1101-charm-stack-moves-to-v2-under
Oct 20, 2026
Merged

David-Noble-at-work merged 16 commits into
developfrom
chore/1101-charm-stack-moves-to-v2-under

Conversation

@David-Noble-at-work

@David-Noble-at-work David-Noble-at-work commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The Charm stack moves to v2 (#1101). glamour, Lip Gloss, Bubble Tea and Bubbles move together to their v2 lines under charm.land: glamour v2.0.1, Lip Gloss v2.0.6, Bubble Tea v2.1.0, Bubbles v2.2.1, and colorprofile v0.4.3 direct. No Charm v1 module and no termenv remain in go.mod. goldmark stays on v1, which glamour v2 still parses with. Ruled 2026-10-20: "Whole stack to v2," then "We should do that immediately."

  • --output terminal. glamour v2 always renders full color, so under NO_COLOR the rendering goes through a colorprofile writer set to Ascii, not detected: colors drop, bold, italic and underline stay, and nothing is probed. Compared with the v1 build on star docs starlark and Schedule: the install scripts tell the truth, upgrade fetches, and Windows has an installer #949's schedule report, with and without NO_COLOR:
    • the visible text of the docs page is identical;
    • Lip Gloss v2 sizes table columns slightly differently;
    • glamour v2 makes links in table cells OSC 8 hyperlinks, hashed so two renderings are byte-identical.
    • trimPadding stays, since v2 still pads lines.
  • The console.
    • View() returns tea.View, with the alternate screen on for Run and off for RunInline.
    • Keys come in as tea.KeyPressMsg.
    • Theme colors are color.Color.
    • The removed WithAutoStyle is replaced by asking Bubble Tea for the terminal's background.
    • Writes outside a program go through colorprofile.
  • Found along the way and fixed. The program-level tests and the race detector found three defects already in the console:
    • an input step never took typing;
    • a message after the session ended panicked on a nil step;
    • rendering ran in a command goroutine racing the next update.
  • A regression found and fixed. colorprofile honors NO_COLOR only when strconv.ParseBool reads it as true, where termenv honored any value, so the console now decides NO_COLOR itself.
  • The specification. § 10 says how each path honors NO_COLOR since the move.

The markdown provider's design stub (part of #1100). docs/architecture/3.5.17-markdown-provider.md, its status companion, and a proposed row in the provider catalog: goldmark v1.8.6, the terminal through glamour v2, and what is left to design.

What devlore-cli owed its next pull request. Ruled 2026-10-20: "These go into #1101's PR."

Plan: docs/plans/chore/1101-charm-stack-moves-to-v2.md.

Resolves #1101
Resolves #1060
Part of #1100

Test plan

  • pkg/result/terminal_test.go unchanged and passing on glamour v2; v1 and v2 renderings compared, the differences listed above
  • New console tests:
    • keys (TestModel_Keys, TestModel_Cancel);
    • the alternate screen (TestConsole_AltScreen);
    • the background style (TestModel_StyleFollowsBackground);
    • a resize (TestModel_Resizes);
    • a real Bubble Tea v2 program driven by keystroke bytes (TestConsole_RunsAProgram, TestConsole_CtrlCCancels);
    • NO_COLOR with any value (TestConsole_NoColorAnyValue), which fails with the check disabled.
  • scripts/Test-InstallScript.sh with GH_TOKEN set: every check passed
  • This script's pre-flight: CI's whole quality gate, make test-race and make test-scenario
  • CI on this pull request, every leg, the Installers workflow's Windows legs for install.ps1 among them

Written with AI assistance.

Signed-off-by: David Noble [email protected]
Assisted-by: Claude Code

Time

Marker UTC Elapsed
opened (first commit) 2026-10-20T03:49:43Z —
submitted (PR opened) 2026-10-20T04:33:33Z 0.7 h after opened
merged 2026-10-20T05:33:09Z 1 h after submitted; 1.7 h in all

Computed by the algorithm of noblefactor-ops#188 at merge.

…, and takes typing, survives its end and renders without a race (#1101)
…, and the specification says how each path honors it since the move to v2 (#1101)
…me from writ's layers, and no issue is exempt (#1101)
…s is open, the repeatable flag is a requirement, and star's flag resolution says it is not built (#1101)
…s, and #990 carries the self-copy truncation (#1060)
…the one form GitHub documents for every token, as self upgrade does (#1060)
@David-Noble-at-work
David-Noble-at-work merged commit 5201113 into develop Oct 20, 2026
21 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the chore/1101-charm-stack-moves-to-v2-under branch October 20, 2026 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant