返回 CodeWhale
CHANGELOG.md
根目录 / vendor / codewhale-ratatui / CHANGELOG.md
1 # Changelog
2
3 ## Unreleased
4
5 - Added a clock-sampled whale arrival for terminal identities. It poses an existing Braille mark at dot resolution, carries light along the exposed silhouette, and lands on the original poster after 1.44 seconds.
6
7 - Optical craft & perceptual light engine for `0.2.2`:
8 - Perceptual OKLab color engine (`color::mix_oklab`, `color::oklab_ramp`, `color::specular_lift`, `color::depth_shade`, `color::shadow_blend`, `color::contrast_safe_oklab_mix`, `color::tint_keeping_luminance_oklab`, `color::bevel_chip_colors`, `color::paint_sculpted_border_colors`, `color::paint_translucent_shadow`) and `Ombre::perceptual(true)`.
9 - Volumetric ocean sun-shafts and OKLab depth curves (`OceanRamp::color_at_context_oklab`, `OceanRamp::color_at_phase_context_oklab`, `OceanColumn::oklab_depth`, `OceanColumn::apply_volumetric_caustics`, `ocean::ocean_volumetric_caustic`), strictly preserving WCAG contrast floors and `Reduced`/`Still` motion rest states.
10 - Sculpted elevated surfaces & micro-beveled pills (`paint_specular_border`, `paint_drop_shadow`, `Panel::specular`, `Panel::shadow`, `Dialog::specular`, `Dialog::shadow`, `MicroBadge`) with true translucent buffer-blended half-block drop shadows and `▐`/`▌` monospace bevels.
11 - Sub-pixel data & motion instruments: eighth-cell `SegmentedMeter` & `MeterSegment` (with live threshold ticks, OKLab pressure gradient ribbon, specular frontier glow, and legend), translucent OKLab gradient area fill on `DataTrend::area_fill` / `DataSparkline::area_fill` / `DataDisplayView::area_fill`, dual-harmonic luminous border shimmer (`border_shimmer_strength`, `paint_border_shimmer`), perceptual OKLab working glow (`activity_sweep_ink_oklab`, `paint_working_glow_oklab`), and `examples/craft.rs`.
12 - Align `codewhale-ratatui` with Desktop Waves 6–11 and Codewhale design tokens `5.5.0`:
13 - Foundations & primitives: sync `TuiPalette::Whale` and `TuiPalette::WhaleLight` to Design `5.5.0` Obsidian/Porcelain RGBs (preserving terminal-owned grounds and all 14 community themes), add charter `glyphs::MINUS` (`−` → `-`), `State::{Blocked, Resting, Asleep}` (`Ttl::UntilSeen` for `Blocked`), `StatusMark::detail`, 6 v5.5.0 ADE `Icon` variants (`Bolt`, `Cpu`, `Layers`, `Orbit`, `Radar`, `Sparkle`), `Depth::Tonal` / `Panel::tonal()`, Wave 9 `Toast` presets (`success`/`attention`/`error`/`timed_error`/`info`, `TOAST_ERROR_SECONDS = 8`, `Toast::action`), and 4 new Desktop-parity primitives (`Notice`, `Skeleton`, `Count`, `ChecksMark`), plus saturating subtraction in `List::paint`.
14 - Composer, transcript, review & workspace parity: add Title Case `PostureBar` constructors, `.thinking` slot & `MetricKind::Thinking`, `right.ink` preservation, `PendingCardContext::pasted_text` / `ContextPreviewItem::pasted_text` / `native_composer_paste_chip` / `NativeComposer::attachments`, `CodeBlock::docked_header`, `ToolCard::diff_outcome` & `ToolCard::path_subject`, `TurnSummary`, `ArtifactChip` / `ArtifactChipRow`, `ApprovalSubject::path` & `ApprovalCard::diff_preview` & `ApprovalChoice::allow_session`, `NeedsAttentionPill` & `AttentionQueue::next_index`, `VerificationSpinner::detail`, narrow-safe `DockTabs` active-tab retention, semantic `Workbar` prefix styling & `TaskProgressHeader`, `DiffScope` / `DiffReviewFile` / `next_unviewed` / `DiffReviewHeader`, `PaneHeader::count`, `SettingsRail` / `section_match_counts` / `SettingRow::show_default_apply`, `PickerTabs::counts` / `Picker::show_clear_hint`, `SubagentUsage` `format_cost` alignment, `SessionGroupHeader`, and `SubagentViewWords::unified`.
15 - Add `WorkbarPanel::Terminal` between Jobs and Files, matching the Engine's vendored work dock; the gallery and studio show host-supplied terminal rows, and the snapshots, README boards and studio animations are regenerated.
16 - Upgrade to Codewhale design tokens `5.5.0` (Obsidian/Porcelain palette and 6 ADE vector icons): sync `vendor/codewhale-design`, regenerate `src/roles.rs` (keeping derived `Role::Hint` at least 1.1:1 above `Role::Dim` on Obsidian's darker `Hover` ground and recording the 256-color Porcelain `Sidebar`/`Background`/`Surface` collapse), and refresh Insta snapshots, 145 README gallery boards, and 10 README animations.
17 - Mirror generic Engine `0.2.1` adaptations upstream: narrow-terminal `PostureBar` turn clock shedding after hints and counts without being covered by the right notice, `MetricKind::Update` with hover styling, `NativeComposerFrame` bounded non-ASCII wrapping (`native_composer_source_row_count`, `source_plan`, `input_rows_budget`, `plan_with_source`), public `NativeComposerPlan::paint` and full available height without an open menu, `motion` activity sweep helpers (`ACTIVITY_SWEEP_TRAVEL`, `ACTIVITY_SWEEP_PEAK`, `activity_sweep_strength`, `activity_sweep_ink`), and `WorkflowRun` `total: u64`. Bump crate version from `0.1.0` to `0.2.2` so upstream stays ahead of the Engine-published `0.2.1` on crates.io.
18
19 - The habitat now implements the whole Codewhale ocean for the Engine's Underwater field. New `Shoal` (a far shoal of minnows), `MarineSnow` (single braille motes drifting down) and `DistantWhale` (a small whale crossing the deep every few minutes, first about twelve seconds in) join `FishSchool`, `Jellyfish` and `BubbleField`, with `Habitat::shoal`, `snow` and `whale` switches. Every creature now lifts a low, quantised glow out of the water it sits on (`ink` and `presence` builders on each part) on truecolor themes with known grounds, so a frame changes only the cells a creature moves through; the school is slower with tail poses that step with travel, there are six fish at most and one to three bubble streams, the jellyfish pulses in eight poses and visits about a third of the time, it stays away while the whale passes unless held open, and every creature keeps one row and two columns clear of text (including wide graphemes). Adds `color::glow_over`. README boards, the habitat animation and the studio animations are regenerated.
20
21 - Upgrade to Codewhale design tokens 5.4.0 (CURRENT_DECISIONS §226, §228.5): add `Role::Subagent` and `Role::LivePeak` (`Role::COUNT` 19 to 21), resolve the light 256-color `Hover`/`Background` index-255 collision, make `Role::ansi16(appearance)` appearance-aware (`LightBlue`/`LightCyan`/`LightYellow`/`LightRed` on Dark, `Blue`/`Cyan`/`Yellow`/`Red` on Light/Unknown), and update `paint_working_glow` to use the `5.4.0` raised-cosine sweep tokens (`9`-cell half-width, `0.78` strength, `1800ms` active / `600ms` rest).
22
23 - The Ocean column's waiting, approval and failure tints now ease off near the
24 surface where they would push `Hint` below 4.5:1 or `Dim` below 3:1; deeper
25 rows keep the full warm tint. The README boards and animations are
26 regenerated for the current tokens.
27 - Data displays stay honest at the edges. `data_number` no longer prints a
28 small value as `0` or `-0` (`0.0042`, `4.2e-7`) and rounds across a unit
29 (`999950` is `1M`, with a `T` tier). A `DataTrend` with more points than
30 dot columns draws each column from its lowest to its highest value, so a
31 spike is never dropped. A `DataBars` value above zero always draws at least
32 an eighth of a cell, and a narrow row cuts the label before the value.
33 - Add data displays: `DataSparkline`, `DataBars` and `DataTrend` (a braille
34 line chart). The words carry every value; the ink draws in from a caller
35 progress (`MotionStep::drawn`) and is at its end state under reduced or
36 still motion. Bars glide from their previous values.
37 - Add `DataDisplay`, the same displays as JSON an agent can send:
38 `DataDisplay::from_json` validates it (finite numbers, at most 1024 points
39 or 24 bars, labels up to 120 characters), `describe` says the same facts as
40 plain text, and `DATA_DISPLAY_SCHEMA` is its tool schema. Try
41 `cargo run --example data`.
42 - Move to Codewhale design tokens 2.3.0. `Primary` is now the neutral ink of
43 filled actions and switches; a new `Accent` role carries the one quiet blue
44 for links, focus and selection (what 1.x called `primary`), so components
45 that drew links or focus in `Primary` now use `Accent`. The diff tints come
46 from the tokens' `diff_add` / `diff_remove`; `ocean_depth` has no role.
47 `Role::COUNT` is 19. The 16 named TUI palettes give `Primary` and `Accent`
48 the same blue, so a host on a named palette sees no colour change.
49 `ansi16` maps `Accent` to `Blue`. Snapshots, README boards and animations
50 are regenerated.
51 - Keep `DotWhale` dense in large panes. Its scale is capped at 32 braille dots
52 (about four lit dots per cell, as at 80x18), and the whale and caption are
53 centred together. Each cell takes the colour and alpha of its strongest dot
54 instead of an alpha-weighted mean. Hollow (unobserved) frames use
55 the theme's `Muted` ink instead of `DIM`.
56 - `Sprite` scales by one integer factor (n, or 1/n) on both axes, with the
57 same rounding for width and rows. Every source pixel stays whole. A sprite
58 that is slightly too large for its area now shrinks by a whole factor.
59 - `PetMode::style` and `PetMode::cove` reach the `WhalePet` fallback, so a
60 host can force the Braille whale or drop the translucent cove. A forced
61 Braille whale is scheduled at the Terminal cadence.
62 - Known limits: `DotWhale` does not grow past the cap, so a large pane shows a
63 whale of the same size with more space around it. Both painters still assume
64 a 1:2 cell aspect. On profiles without colour, `Muted` falls back to `DIM`.
65 - Add private vulnerability reporting guidance and contributor setup/check
66 instructions; include both guides in the source package.
67 - Feature the animated whale and full pet view in the README and catalogue,
68 with five gallery entries and the current dark/light activity previews.
69 - Simplify the native showcase: concise conversation, sparse ambient life,
70 muted metrics and optional workflow progress, with the original workbar
71 given room for its rows.
72 - Present a still native preview first and organize every dark/light component
73 preview into named collections, with animations available on demand.
74 - Reduce gallery framing and use native terminal palette colors around the
75 unchanged Ratatui buffers.
76
77 - Render themed components by reference, and use `Themed::new` with a
78 heterogeneous collection of `dyn Paint` components.
79 - Render lists and pickers with Ratatui's `StatefulWidget`, persisting the
80 viewport's scroll offset in application-owned state.
81 - Keep backend selection with the consuming application; interactive examples
82 enable Crossterm separately from the library dependency.
83 - Add a small native starter app, a standalone consumer check, rendering
84 benchmarks, public documentation/package gates and Windows test coverage.
85 - Fix incremental Unicode editing and grapheme cursor boundaries after
86 deletion.
87 - Keep modified navigation/activation keys with the host and prevent held-key
88 repeats from submitting, choosing, cancelling or toggling input controls.
89 - Reuse contrast calculations within native ocean text runs while preserving
90 each cell's original color and contrast policy.
91 - Enable the previously exempt whale bounds check now that its renderer clips.
92 - Limit source packages to library sources, examples, documentation and
93 required native assets.
94
95 ## 0.1.0 development baseline
96
97 - Native Codewhale workbar, composer, footer, conversation, instrument surfaces
98 and session list; 16 source palettes and the Underwater ocean column.
99 - Input, navigation, decisions, results, motion and marine-life components,
100 plus optional workspace compositions and additional ombrés.
101 - Source view guide, 195-entry gallery across nine terminal profiles, and
102 generated dark/light README previews and animations.
103
104 This version has not been published to a package registry.
105
105 lines MARKDOWN