@danypops/pi-packed 0.19.0 → 0.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,7 +10,7 @@ The extension connects to Packed's authenticated user daemon and starts the pack
10
10
 
11
11
  ## Commands
12
12
 
13
- - `/packed` -- one floating overlay, four tabs (Packages/Find/Config/Settings), always shown in a persistent tab bar at the top: the focused tab is inverted (a background highlight, no explicit foreground color), unfocused tabs show only a foreground color, and each label's own first letter is highlighted as its mnemonic on both. `Tab`/`Shift-Tab` (or `←`/`→`) sweep between them -- recognized under legacy CSI, xterm's modifyOtherKeys, and the Kitty keyboard protocol alike, not just one hardcoded encoding; from any tab other than Packages, `p`/`f`/`c`/`s` also jump straight to the matching one (never stolen while that tab's own filter/query box is capturing text). `Esc` returns to Packages from anywhere else, or closes the panel from Packages itself. Every approval and reload confirmation, on any tab, renders inline on this same panel (`y`/`n` keys), never a separate popup or native dialog. A standing test (`keymap.test.ts`, using Malevich's tree-style `findMnemonicConflicts`) verifies no two actions genuinely reachable at once share a key.
13
+ - `/packed` -- one floating overlay, four tabs (Packages/Find/Config/Settings), always shown in a persistent tab bar at the top: the focused tab is real reverse-video (guaranteed visible contrast on any theme, unlike a specific configured background color), unfocused tabs show only a foreground color, and each label's own first letter is highlighted as its mnemonic on both. `Tab`/`Shift-Tab` (or `←`/`→`) sweep between them -- recognized under legacy CSI, xterm's modifyOtherKeys, and the Kitty keyboard protocol alike, not just one hardcoded encoding; from any tab other than Packages, `p`/`f`/`c`/`s` also jump straight to the matching one (never stolen while that tab's own filter/query box is capturing text). `Esc` returns to Packages from anywhere else, or closes the panel from Packages itself. Every approval and reload confirmation, on any tab, renders inline on this same panel (`y`/`n` keys), never a separate popup or native dialog. A standing test (`keymap.test.ts`, using Malevich's tree-style `findMnemonicConflicts`) verifies no two actions genuinely reachable at once share a key.
14
14
  - **Packages** (the default tab) -- every installed Pi package, with update availability. Mnemonics follow lazy.nvim's own convention (uppercase acts on every row, lowercase on the one under the cursor):
15
15
  - `u` / `U` -- update the selected package / update every outdated package, one combined confirmation and one reload. `U` shows a spinner inline next to the package currently updating, settling into a real ✓ or ✗ plus a short tail of that update's own captured output once it finishes -- the list stays visible throughout, nothing swaps to a separate screen. A reload is confirmed separately from the update itself -- decline it to defer: the update already happened, only picking it up in this Pi session is deferred until `/reload`.
16
16
  - `x` -- remove the selected package.
@@ -31,12 +31,14 @@ export function dialogTheme(theme: Theme): DialogTheme {
31
31
  * overlay, replacing what used to be four separately-opened screens. */
32
32
  export function tabBarTheme(theme: Theme): TabBarTheme {
33
33
  return {
34
- // Unfocused: foreground color, no background. Focused: inverted --
35
- // a background color and no explicit foreground, so it reads as a
36
- // real highlighted/selected tab rather than just a differently
37
- // colored label.
38
- tab: (s) => theme.fg("muted", s),
39
- activeTab: (s) => theme.bold(theme.bg("selectedBg", s)),
34
+ // Matches pi-tickets' own TabMenu convention (tab/activeTab, same
35
+ // reverse-video choice) rather than inventing a new one: real ANSI
36
+ // reverse-video for the focused tab, since a theme's own selectedBg
37
+ // can be too close in luminance to the surrounding UI to read as a
38
+ // highlight at all -- reverse video swaps whatever foreground and
39
+ // background are already in effect, guaranteeing contrast on any theme.
40
+ tab: (s) => theme.fg("dim", s),
41
+ activeTab: (s) => theme.inverse(s),
40
42
  // Every tab's first letter is a jump mnemonic (p/f/c/s) -- a distinct
41
43
  // warning-colored bold, so it reads as "press this letter" on both the
42
44
  // active and inactive tabs alike, not just whichever style tab/activeTab
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danypops/pi-packed",
3
- "version": "0.19.0",
3
+ "version": "0.19.2",
4
4
  "description": "Pi package tools, commands, profiles, and TUI for the Packed daemon",
5
5
  "type": "module",
6
6
  "keywords": ["pi-package"],