Add TypeScript contracts for custom statusline providers (#62034)

## What changed

Bundle a generated `statusline.d.ts` reference with the `create-statusline` skill, covering status snapshots, UI trees, colors, and canonical statusline item IDs. Add test-only `ts-rs` derives and an `UPDATE_STATUSLINE_TYPES` regeneration path.

Clarify that rate-limit usage percentages can exceed 100.

## Testing

Add a Rust test that checks key type exports in the installed skill and a strict TypeScript fixture covering provider rendering and invalid item IDs, row props, and colors.

GitOrigin-RevId: f615e0b3c2cd3d0d95a75de36ce0a84467ecd5b6
This commit is contained in:
Joe Savona
2026-11-17 11:58:26 +00:00
committed by copyberry
parent 59ac39addb
commit 7df454ceb5
17 changed files with 414 additions and 2 deletions
+1 -1
View File
@@ -2710,7 +2710,7 @@ impl FromStr for RateLimitReachedType {
#[derive(Debug, Clone, PartialEq, Deserialize, Serialize, JsonSchema, TS)]
pub struct RateLimitWindow {
/// Percentage (0-100) of the window that has been consumed.
/// Percentage of the allowance consumed during the window. Can exceed 100.
pub used_percent: f64,
/// Rolling window duration, in minutes.
#[ts(type = "number | null")]