claude-code-kanban 7.30.0 → 7.32.0

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/public/index.html CHANGED
@@ -82,6 +82,19 @@
82
82
  <span class="section-header-label">Sessions</span>
83
83
  <span id="filter-summary" class="filter-summary" title=""></span>
84
84
  <span class="section-header-actions">
85
+ <button
86
+ id="home-btn"
87
+ class="icon-btn section-btn"
88
+ onclick="event.stopPropagation(); goHome()"
89
+ title="Home: close the session (H)"
90
+ aria-label="Home: close the session"
91
+ >
92
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
93
+ <path d="M3 11l9-8 9 8"/>
94
+ <path d="M5 10v10h14V10"/>
95
+ <path d="M10 20v-6h4v6"/>
96
+ </svg>
97
+ </button>
85
98
  <button
86
99
  id="zen-mode-btn"
87
100
  class="icon-btn section-btn"
@@ -227,8 +240,9 @@
227
240
  <div class="idle-clawd" data-hub-part="idle-mascot" aria-hidden="true">
228
241
  <svg class="clawd" viewBox="1 0 16 10" shape-rendering="crispEdges"><use href="#clawd-shape"/></svg>
229
242
  </div>
230
- <p class="idle-title">Select a session to view tasks</p>
231
- <div class="idle-hint sp-hint"><kbd>↑</kbd><kbd>↓</kbd> move <span>·</span> <kbd>Enter</kbd> open <span>·</span> <kbd>?</kbd> shortcuts</div>
243
+ <p class="idle-title">No session open</p>
244
+ <div id="home-keys" class="home-keys"></div>
245
+ <div class="idle-hint sp-hint"><kbd>↑</kbd><kbd>↓</kbd> move <span>·</span> <kbd>Enter</kbd> open</div>
232
246
  </div>
233
247
  </div>
234
248
 
@@ -1002,7 +1016,8 @@
1002
1016
  <div id="session-picker-list" class="sp-list"></div>
1003
1017
  <div id="session-picker-peek" class="sp-peek"></div>
1004
1018
  </div>
1005
- <div class="sp-hint"><kbd>&uarr;</kbd><kbd>&darr;</kbd> move &middot; <kbd>Enter</kbd> open &middot; <kbd>Tab</kbd> board / all &middot; <kbd>Ctrl</kbd><kbd>Space</kbd> peek &middot; <kbd>Esc</kbd> close</div>
1019
+ <div class="sp-hint sp-hint-sessions"><kbd>&uarr;</kbd><kbd>&darr;</kbd> move &middot; <kbd>Enter</kbd> open &middot; <kbd>Tab</kbd> board / all &middot; <kbd>Ctrl</kbd><kbd>Space</kbd> peek &middot; <kbd>&gt;</kbd> commands &middot; <kbd>Esc</kbd> close</div>
1020
+ <div class="sp-hint sp-hint-commands"><kbd>&uarr;</kbd><kbd>&darr;</kbd> move &middot; <kbd>Enter</kbd> run &middot; <kbd>Backspace</kbd> on <kbd>&gt;</kbd> back to sessions &middot; <kbd>Esc</kbd> close</div>
1006
1021
  </div>
1007
1022
  </div>
1008
1023
 
package/public/style.css CHANGED
@@ -1689,19 +1689,33 @@ body.booting .boot-splash {
1689
1689
  /* #endregion */
1690
1690
 
1691
1691
  .sidebar-footer .footer-plugin-warning {
1692
- padding: 0;
1693
- border: none;
1694
- background: none;
1692
+ display: inline-flex;
1693
+ align-items: center;
1694
+ gap: 3px;
1695
+ padding: 2px 7px 2px 5px;
1696
+ border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
1697
+ border-radius: 999px;
1698
+ background: var(--warning-dim);
1695
1699
  font: inherit;
1696
- font-size: 11px;
1700
+ font-size: 10.5px;
1697
1701
  line-height: 1;
1698
1702
  color: var(--warning);
1699
1703
  cursor: pointer;
1700
1704
  }
1701
1705
 
1702
- .sidebar-footer .footer-plugin-warning:hover,
1706
+ .sidebar-footer .footer-plugin-warning svg {
1707
+ width: 11px;
1708
+ height: 11px;
1709
+ flex-shrink: 0;
1710
+ }
1711
+
1712
+ .sidebar-footer .footer-plugin-warning[data-state='disabled'] {
1713
+ cursor: default;
1714
+ }
1715
+
1716
+ .sidebar-footer .footer-plugin-warning:not([data-state='disabled']):hover,
1703
1717
  .sidebar-footer .footer-plugin-warning:focus-visible {
1704
- filter: brightness(1.2);
1718
+ background: color-mix(in srgb, var(--warning) 28%, transparent);
1705
1719
  }
1706
1720
 
1707
1721
  .sidebar.collapsed {
@@ -1874,6 +1888,44 @@ body.booting .boot-splash {
1874
1888
  opacity: 0.5;
1875
1889
  }
1876
1890
 
1891
+ .home-keys {
1892
+ display: grid;
1893
+ gap: 2px;
1894
+ width: min(420px, 90%);
1895
+ margin: 6px 0 4px;
1896
+ }
1897
+
1898
+ .home-key {
1899
+ display: flex;
1900
+ align-items: center;
1901
+ justify-content: space-between;
1902
+ gap: 16px;
1903
+ padding: 6px 10px;
1904
+ border: none;
1905
+ border-radius: 6px;
1906
+ background: none;
1907
+ color: var(--text-secondary);
1908
+ font: inherit;
1909
+ font-size: 13px;
1910
+ text-align: left;
1911
+ white-space: nowrap;
1912
+ cursor: pointer;
1913
+ }
1914
+
1915
+ .home-key:hover,
1916
+ .home-key:focus-visible {
1917
+ background: var(--bg-hover);
1918
+ color: var(--text-primary);
1919
+ }
1920
+
1921
+ .home-key-kbd {
1922
+ display: inline-flex;
1923
+ align-items: center;
1924
+ gap: 3px;
1925
+ color: var(--text-muted);
1926
+ font-size: 11px;
1927
+ }
1928
+
1877
1929
  @media (prefers-reduced-motion: reduce) {
1878
1930
  .idle-glow span,
1879
1931
  .idle-clawd .clawd,
@@ -5008,7 +5060,7 @@ body.show-resizing iframe {
5008
5060
  border: 1px solid var(--border);
5009
5061
  border-bottom: 0;
5010
5062
  border-radius: 7px 7px 0 0;
5011
- background: var(--bg-elevated);
5063
+ background: none;
5012
5064
  }
5013
5065
 
5014
5066
  .pane-pair.on {
@@ -9161,6 +9213,8 @@ body.light .msg-assistant .msg-text {
9161
9213
 
9162
9214
  /* keycap chips: elevated fill + thicker bottom border reads as a key */
9163
9215
  .sp-hint kbd,
9216
+ .sp-keys kbd,
9217
+ .home-keys kbd,
9164
9218
  .shortcuts kbd,
9165
9219
  .terminal-boot-slow kbd,
9166
9220
  .review-offer-btn kbd {
@@ -9187,7 +9241,11 @@ body.light .msg-assistant .msg-text {
9187
9241
  }
9188
9242
 
9189
9243
  .shortcuts .sc-plus,
9190
- .shortcuts .sc-or {
9244
+ .shortcuts .sc-or,
9245
+ .home-keys .sc-plus,
9246
+ .home-keys .sc-or,
9247
+ .sp-keys .sc-plus,
9248
+ .sp-keys .sc-or {
9191
9249
  color: var(--text-muted);
9192
9250
  font-size: 11px;
9193
9251
  }
@@ -9948,6 +10006,32 @@ select.form-input option:checked {
9948
10006
  font-size: 11px;
9949
10007
  }
9950
10008
 
10009
+ .modal.session-picker.commands .sp-scope,
10010
+ .modal.session-picker.commands .sp-peek,
10011
+ .modal.session-picker.commands .sp-hint-sessions,
10012
+ .modal.session-picker:not(.commands) .sp-hint-commands {
10013
+ display: none;
10014
+ }
10015
+
10016
+ .sp-target {
10017
+ padding: 2px 8px 4px;
10018
+ color: var(--text-muted);
10019
+ font-family: var(--mono);
10020
+ font-size: 11.5px;
10021
+ }
10022
+
10023
+ .sp-keys {
10024
+ margin-left: auto;
10025
+ display: flex;
10026
+ align-items: center;
10027
+ gap: 3px;
10028
+ }
10029
+
10030
+ .sp-target b {
10031
+ color: var(--text-primary);
10032
+ font-weight: 500;
10033
+ }
10034
+
9951
10035
  .pp-chips {
9952
10036
  display: flex;
9953
10037
  gap: 6px;
@@ -10122,16 +10206,6 @@ select.form-input option:checked {
10122
10206
  color: var(--text-muted);
10123
10207
  }
10124
10208
 
10125
- .ns-empty {
10126
- display: flex;
10127
- align-items: center;
10128
- justify-content: space-between;
10129
- gap: 8px;
10130
- padding: 6px 8px;
10131
- font-size: 12px;
10132
- color: var(--text-muted);
10133
- }
10134
-
10135
10209
  .ns-check {
10136
10210
  display: inline-flex;
10137
10211
  flex: none;
@@ -1,4 +1,4 @@
1
- // claude-hub-sdk 1.11.0 (sha256 841f6c771631). Copied by npm run sdk:sync in claude-code-hub. Do not edit.
1
+ // claude-hub-sdk 1.12.0 (sha256 6fb679e4d801). Copied by npm run sdk:sync in claude-code-hub. Do not edit.
2
2
  // Claude Code Hub SDK: the one rule that names a key press, shared by the hub page, client.js and
3
3
  // stub.js. The hub serves it to its page as /sdk/keys.js; mount() and sdk:sync put it in front of
4
4
  // client.js and stub.js, so an app still loads one file.
@@ -10,19 +10,62 @@ var ClaudeHubKeys = (() => {
10
10
  // Modifiers in ctrl, alt, shift, meta order, joined by '+' to the key. macOS composes
11
11
  // Option+<key> into a character (Option+1 is '¡', Option+P is 'π') and holding Control does not
12
12
  // undo it, so e.key alone cannot name these presses there. e.code is the physical key, which is
13
- // wrong for non-US layouts, hence only as a fallback. No fallback under AltGraph: Chromium sets it
14
- // when AltGr types a character, and that press is text. Takes a real KeyboardEvent or a forwarded
15
- // {key, code} payload; a payload without code degrades to key. A payload needs no AltGraph: the
16
- // SDK forwards only a press whose key already names a bound combo.
17
- // Self-contained on purpose: cck puts its source text into a sandboxed frame.
13
+ // wrong for non-US layouts, hence only as a fallback. A letter or punctuation key falls back to its
14
+ // US character only when e.key is not ASCII (a non-Latin layout, or Option on macOS), so AZERTY's
15
+ // ',' on the M key stays ','. The digit row always falls back, so AZERTY's '&' key is 1, as Windows
16
+ // and VS Code treat it. No fallback under AltGraph: Chromium sets it when AltGr types a character, and that
17
+ // press is text. Takes a real KeyboardEvent or a forwarded {key, code} payload; a payload without
18
+ // code degrades to key. A payload needs no AltGraph: the SDK forwards only a press whose key
19
+ // already names a bound combo.
20
+ // Self-contained on purpose, the table too: cck puts its source text into a sandboxed frame.
21
+ // codeOf() lists the same keys the other way round.
18
22
  function comboOf(e) {
19
- const lower = typeof e.key === 'string' ? e.key.toLowerCase() : '';
20
- const m = !e.getModifierState?.('AltGraph') && /^(?:Key|Digit)([A-Z1-9])$/.exec(e.code || '');
21
- const key = /^[a-z1-9]$/.test(lower) ? lower : m ? m[1].toLowerCase() : e.key === ' ' ? 'Space' : e.key;
23
+ const raw = typeof e.key === 'string' ? e.key : '';
24
+ const lower = raw.toLowerCase();
25
+ const code = e.getModifierState?.('AltGraph') ? '' : e.code || '';
26
+ const latin = !/[^\x20-\x7e]/.test(raw);
27
+ const digit = /^Digit([0-9])$/.exec(code)?.[1];
28
+ const us =
29
+ !latin &&
30
+ (/^Key([A-Z])$/.exec(code)?.[1].toLowerCase() ||
31
+ {
32
+ Minus: '-',
33
+ Equal: '=',
34
+ BracketLeft: '[',
35
+ BracketRight: ']',
36
+ Backslash: '\\',
37
+ Semicolon: ';',
38
+ Quote: "'",
39
+ Backquote: '`',
40
+ Comma: ',',
41
+ Period: '.',
42
+ Slash: '/',
43
+ }[code]);
44
+ const key = /^[a-z0-9]$/.test(lower) ? lower : digit || us || (e.key === ' ' ? 'Space' : e.key);
22
45
  const mods = [e.ctrlKey && 'ctrl', e.altKey && 'alt', e.shiftKey && 'shift', e.metaKey && 'meta'];
23
46
  return [...mods, key].filter(Boolean).join('+');
24
47
  }
25
48
 
49
+ // The physical key (e.code) that types a combo's key on a US layout, or null for a named key.
50
+ function codeOf(key) {
51
+ if (/^[a-z]$/.test(key)) return `Key${key.toUpperCase()}`;
52
+ if (/^[0-9]$/.test(key)) return `Digit${key}`;
53
+ const codes = {
54
+ '-': 'Minus',
55
+ '=': 'Equal',
56
+ '[': 'BracketLeft',
57
+ ']': 'BracketRight',
58
+ '\\': 'Backslash',
59
+ ';': 'Semicolon',
60
+ "'": 'Quote',
61
+ '`': 'Backquote',
62
+ ',': 'Comma',
63
+ '.': 'Period',
64
+ '/': 'Slash',
65
+ };
66
+ return codes[key] ?? null;
67
+ }
68
+
26
69
  // The keys of a combo as a help row shows them: ['Ctrl', 'Alt', 'P'], or ['⌃', '⌥', 'P'] on macOS.
27
70
  // The {n} of a numbered combo reads 1…9.
28
71
  function keyParts(combo, mac) {
@@ -47,7 +90,7 @@ var ClaudeHubKeys = (() => {
47
90
  ].filter(Boolean);
48
91
  }
49
92
 
50
- return { comboOf, keyParts, keySigs };
93
+ return { comboOf, codeOf, keyParts, keySigs };
51
94
  })();
52
95
 
53
96
  if (typeof module === 'object' && module.exports) module.exports = ClaudeHubKeys;
@@ -93,6 +136,7 @@ if (typeof module === 'object' && module.exports) module.exports = ClaudeHubKeys
93
136
  can: (action) => !!standaloneFn(action),
94
137
  forwards: () => false,
95
138
  forwardCombos: () => [],
139
+ onKeys: () => off,
96
140
  keyLabel: () => null,
97
141
  voiceCommands: () => [],
98
142
  closeGuard() {},
package/server.js CHANGED
@@ -3430,6 +3430,14 @@ app.post('/api/terminal/pick-folder', async (req, res) => {
3430
3430
  }
3431
3431
  });
3432
3432
 
3433
+ // The hub's terminalHost setting reaches only the board page, which relays it here.
3434
+ app.post('/api/terminal/options', (req, res) => {
3435
+ if (!terminal.authorized(req.get('x-terminal-token'))) return res.status(401).json({ error: 'invalid terminal token' });
3436
+ if (typeof req.body?.conptyDll !== 'boolean') return res.status(400).json({ error: 'conptyDll must be a boolean' });
3437
+ terminal.setConptyDll(req.body.conptyDll);
3438
+ res.status(204).end();
3439
+ });
3440
+
3433
3441
  // A tab whose terminal is off, or whose token died with an earlier server, ignores
3434
3442
  // `session:launched`, so only a tab that claims the session counts as showing it.
3435
3443
  const LAUNCH_CLAIM_MS = 3000;