tui: shared terminal-UI kernel as nested module yetano.dev/yetano/core/tui
Themes (slate/dialog/midnight) and their lipgloss styles, Paint/Outer, ListState and the text helpers that yet, yavebu and yalsh menuconfig each carried as a hand-kept copy (yavebu's had already drifted). Values are yet's (grey slate); Paint is menuconfig's profile-aware version. Own go.mod and tui/vX.Y.Z tags keep Charm out of the main module. Programs are not switched yet; tui/README.md has the steps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8c63d42a27
commit
88d37410f7
11 files changed
+729
-7
No files matched your search
@@ -13,10 +13,11 @@ every Yetano program offers (`core/manual`, `core/completion`,
|
||||
docs/program-conventions.md in the meta-repository), and secret
|
||||
references in configuration (`core/secretref`).
|
||||
|
||||
The native WebView GUI host is a **separate, nested module**,
|
||||
`yetano.dev/yetano/core/gui` (tags `gui/vX.Y.Z`), so this module keeps
|
||||
its single dependency and stays free of cgo -- see
|
||||
[gui/README.md](gui/README.md).
|
||||
Two **separate, nested modules** keep this module at its single
|
||||
dependency: the native WebView GUI host `yetano.dev/yetano/core/gui`
|
||||
(tags `gui/vX.Y.Z`, cgo, see [gui/README.md](gui/README.md)) and the
|
||||
shared terminal-UI kernel `yetano.dev/yetano/core/tui` (tags
|
||||
`tui/vX.Y.Z`, Charm lipgloss v2, see [tui/README.md](tui/README.md)).
|
||||
|
||||
```text
|
||||
yetano.dev/yetano/core
|
||||
@@ -34,6 +35,7 @@ yetano.dev/yetano/core/gui/assets
|
||||
yetano.dev/yetano/core/gui/document
|
||||
yetano.dev/yetano/core/gui/bridge
|
||||
yetano.dev/yetano/core/gui/window
|
||||
yetano.dev/yetano/core/tui (own module, tags tui/vX.Y.Z)
|
||||
```
|
||||
|
||||
Target platforms: Linux, FreeBSD, macOS, Windows. No Unix assumptions
|
||||
@@ -360,9 +362,9 @@ one-line form for log lines and web UI footers.
|
||||
|
||||
Tagged as plain semver on this repository (`v0.1.0`, ...), per the
|
||||
meta-repo `AGENTS.md`'s versioning rules: an existing tag is never
|
||||
force-moved to a different commit. The nested `gui` module has its own
|
||||
prefixed tags (`gui/v0.1.0`, ...); a change there needs no main-module
|
||||
tag and vice versa.
|
||||
force-moved to a different commit. The nested `gui` and `tui` modules
|
||||
have their own prefixed tags (`gui/v0.1.0`, `tui/v0.1.0`, ...); a change
|
||||
there needs no main-module tag and vice versa.
|
||||
|
||||
## core/secretref
|
||||
|
||||
@@ -397,3 +399,11 @@ streaming, abort and reload handling -- never a local HTTP listener or
|
||||
port. Packages `assets`, `document`, `bridge`, `window`; extracted from
|
||||
`prototypes/yetano-webview` (AP1). Details, invariants, measured platform
|
||||
pitfalls and the yet-gui migration: [gui/README.md](gui/README.md).
|
||||
|
||||
## core/tui (separate module)
|
||||
|
||||
`yetano.dev/yetano/core/tui` is the kernel the Charm-v2 terminal UIs
|
||||
(yet, yavebu, yalsh menuconfig) had as hand-kept copies: the themes
|
||||
`slate`/`dialog`/`midnight` and their lipgloss styles, `Paint`/`Outer`,
|
||||
`ListState` and text helpers. No app shell or screens yet -- see
|
||||
[tui/README.md](tui/README.md), which also has the migration steps.
|
||||
Reference in new issue
Block a user