xtralab 0.5.0 → 0.6.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.
Files changed (71) hide show
  1. package/README.md +110 -78
  2. package/lib/agentSessions.d.ts +50 -0
  3. package/lib/agentSessions.js +45 -0
  4. package/lib/fileBrowser/index.js +5 -1
  5. package/lib/git/imageDiff.js +80 -8
  6. package/lib/index.d.ts +3 -2
  7. package/lib/index.js +11 -6
  8. package/lib/launcher/agents.d.ts +1 -1
  9. package/lib/launcher/agents.js +22 -13
  10. package/lib/launcher/commands.d.ts +32 -6
  11. package/lib/launcher/commands.js +81 -57
  12. package/lib/launcher/dashboard.d.ts +15 -0
  13. package/lib/launcher/dashboard.js +119 -5
  14. package/lib/launcher/editorRegistry.d.ts +43 -0
  15. package/lib/launcher/editorRegistry.js +96 -0
  16. package/lib/launcher/editors.d.ts +78 -0
  17. package/lib/launcher/editors.js +110 -0
  18. package/lib/launcher/icons.d.ts +25 -6
  19. package/lib/launcher/icons.js +116 -19
  20. package/lib/launcher/index.d.ts +2 -22
  21. package/lib/launcher/index.js +48 -25
  22. package/lib/launcher/registry.d.ts +21 -0
  23. package/lib/launcher/registry.js +28 -0
  24. package/lib/launcher/tokens.d.ts +41 -0
  25. package/lib/launcher/tokens.js +17 -0
  26. package/lib/terminals/detection.d.ts +11 -0
  27. package/lib/terminals/detection.js +50 -0
  28. package/lib/terminals/index.d.ts +27 -0
  29. package/lib/terminals/index.js +194 -0
  30. package/lib/terminals/model.d.ts +191 -0
  31. package/lib/terminals/model.js +418 -0
  32. package/lib/terminals/widget.d.ts +72 -0
  33. package/lib/terminals/widget.js +93 -0
  34. package/lib/topBar/icons.d.ts +13 -0
  35. package/lib/topBar/icons.js +27 -0
  36. package/lib/topBar/index.d.ts +16 -0
  37. package/lib/topBar/index.js +86 -0
  38. package/package.json +36 -33
  39. package/schema/launcher.json +56 -1
  40. package/src/agentSessions.ts +94 -0
  41. package/src/fileBrowser/index.ts +5 -1
  42. package/src/git/imageDiff.tsx +127 -26
  43. package/src/index.ts +11 -6
  44. package/src/launcher/agents.ts +23 -14
  45. package/src/launcher/commands.ts +98 -60
  46. package/src/launcher/dashboard.tsx +205 -3
  47. package/src/launcher/editorRegistry.ts +149 -0
  48. package/src/launcher/editors.ts +183 -0
  49. package/src/launcher/icons.ts +120 -20
  50. package/src/launcher/index.ts +62 -27
  51. package/src/launcher/registry.ts +33 -0
  52. package/src/launcher/tokens.ts +51 -0
  53. package/src/terminals/detection.ts +65 -0
  54. package/src/terminals/index.ts +222 -0
  55. package/src/terminals/model.ts +497 -0
  56. package/src/terminals/widget.tsx +240 -0
  57. package/src/topBar/icons.ts +30 -0
  58. package/src/topBar/index.ts +121 -0
  59. package/style/git.css +109 -0
  60. package/style/index.css +2 -1
  61. package/style/index.js +2 -1
  62. package/style/launcher.css +124 -2
  63. package/style/terminals.css +235 -0
  64. package/style/topBar.css +38 -0
  65. package/lib/statusBar/index.d.ts +0 -14
  66. package/lib/statusBar/index.js +0 -89
  67. package/lib/statusBar/widget.d.ts +0 -121
  68. package/lib/statusBar/widget.js +0 -237
  69. package/src/statusBar/index.ts +0 -115
  70. package/src/statusBar/widget.tsx +0 -318
  71. package/style/statusBar.css +0 -95
@@ -1,95 +0,0 @@
1
- /*
2
- * Per-session terminal items on the status bar. Each session gets its
3
- * own item, so the rules below scope tightly under
4
- * `jp-xtralab-StatusBar-Terminal` to avoid leaking into other items
5
- * registered by upstream extensions on the same bar.
6
- *
7
- * Colors and spacing pull from `--jp-*` custom properties so the items
8
- * track the active JupyterLab theme.
9
- */
10
-
11
- .jp-xtralab-StatusBar-Terminal {
12
- /* Each item is a single horizontal capsule. The host element comes
13
- * from the status bar layout — we scope our styles to its inner
14
- * container so the bar's own padding/margins are respected. */
15
- display: flex;
16
- align-items: center;
17
- }
18
-
19
- .jp-xtralab-StatusBar-Terminal-Container {
20
- display: flex;
21
- align-items: stretch;
22
- height: 100%;
23
- }
24
-
25
- /*
26
- * Activate button. Stretches the full row so the icon + label are
27
- * one click target; the close button sits to the right and intercepts
28
- * clicks on its own area via stopPropagation in the React handler.
29
- */
30
- .jp-xtralab-StatusBar-Terminal-Activate {
31
- display: flex;
32
- align-items: center;
33
- gap: 4px;
34
- padding: 0 6px;
35
- background: transparent;
36
- border: none;
37
- color: inherit;
38
- font: inherit;
39
- cursor: pointer;
40
- min-width: 0;
41
- }
42
-
43
- .jp-xtralab-StatusBar-Terminal-Activate:focus-visible {
44
- outline: var(--jp-border-width) solid var(--jp-brand-color1);
45
- outline-offset: -2px;
46
- }
47
-
48
- .jp-xtralab-StatusBar-Terminal-Label {
49
- /* Cap each label so a verbose xterm title (Claude can include the
50
- * cwd, branch, etc.) does not push every other status item off the
51
- * bar. The truncation tooltip falls back to the full label via the
52
- * surrounding container's `title` attribute. */
53
- max-width: 160px;
54
- overflow: hidden;
55
- text-overflow: ellipsis;
56
- white-space: nowrap;
57
- font-size: var(--jp-ui-font-size1);
58
- }
59
-
60
- /*
61
- * Close button. Hidden by default so the row reads as plain text;
62
- * fades in when the row is hovered or the button itself takes focus.
63
- * No background-color change on hover — the outer item already
64
- * shifts to `--jp-layout-color3` via `jp-mod-highlighted:hover`, and
65
- * stacking another shade on top of that produced an unpleasant frame
66
- * around the inner content.
67
- */
68
- .jp-xtralab-StatusBar-Terminal-Close {
69
- display: flex;
70
- align-items: center;
71
- justify-content: center;
72
- width: 18px;
73
- margin-right: 2px;
74
- background: transparent;
75
- border: none;
76
- color: var(--jp-ui-font-color2);
77
- cursor: pointer;
78
- opacity: 0;
79
- transition: opacity 80ms linear;
80
- }
81
-
82
- .jp-xtralab-StatusBar-Terminal-Close:hover {
83
- color: var(--jp-ui-font-color1);
84
- }
85
-
86
- .jp-xtralab-StatusBar-Terminal-Close:focus-visible {
87
- opacity: 1;
88
- outline: var(--jp-border-width) solid var(--jp-brand-color1);
89
- outline-offset: -2px;
90
- }
91
-
92
- .jp-xtralab-StatusBar-Terminal-Container:hover
93
- .jp-xtralab-StatusBar-Terminal-Close {
94
- opacity: 1;
95
- }