jupyterlab_claude_code_extension 1.2.17 → 1.2.19
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/lib/icons.d.ts +1 -0
- package/lib/icons.js +9 -0
- package/lib/widget.js +2 -1
- package/package.json +1 -1
- package/src/icons.ts +11 -0
- package/src/widget.ts +2 -0
package/lib/icons.d.ts
CHANGED
package/lib/icons.js
CHANGED
|
@@ -67,6 +67,15 @@ export const branchIcon = new LabIcon({
|
|
|
67
67
|
name: 'jupyterlab_claude_code_extension:branch',
|
|
68
68
|
svgstr: branchSvgStr
|
|
69
69
|
});
|
|
70
|
+
// Arrow-switch glyph (Octicons arrow-switch-16, MIT) - marks the
|
|
71
|
+
// "Switch and Manage Sessions" submenu.
|
|
72
|
+
const switchSvgStr = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
73
|
+
<path class="jp-icon3" fill="#616161" d="M5.22 14.78a.75.75 0 0 0 1.06-1.06L4.56 12h8.69a.75.75 0 0 0 0-1.5H4.56l1.72-1.72a.75.75 0 0 0-1.06-1.06l-3 3a.75.75 0 0 0 0 1.06l3 3Zm5.56-6.5a.75.75 0 1 1-1.06-1.06l1.72-1.72H2.75a.75.75 0 0 1 0-1.5h8.69L9.72 2.28a.75.75 0 0 1 1.06-1.06l3 3a.75.75 0 0 1 0 1.06l-3 3Z"/>
|
|
74
|
+
</svg>`;
|
|
75
|
+
export const switchIcon = new LabIcon({
|
|
76
|
+
name: 'jupyterlab_claude_code_extension:switch',
|
|
77
|
+
svgstr: switchSvgStr
|
|
78
|
+
});
|
|
70
79
|
// Funnel copied verbatim from @jupyterlab/ui-components'
|
|
71
80
|
// `search/filter.svg` - the same image the file browser's filter
|
|
72
81
|
// toggle uses. The `class="jp-icon3"` lets JupyterLab's theme drive
|
package/lib/widget.js
CHANGED
|
@@ -5,7 +5,7 @@ import { CommandRegistry } from '@lumino/commands';
|
|
|
5
5
|
import { UUID } from '@lumino/coreutils';
|
|
6
6
|
import { Menu, Widget } from '@lumino/widgets';
|
|
7
7
|
import { requestAPI } from './request';
|
|
8
|
-
import { addIcon, branchIcon, claudeIcon, filterIcon, refreshIcon, removeIcon, shieldIcon, starFilledIcon } from './icons';
|
|
8
|
+
import { addIcon, branchIcon, switchIcon, claudeIcon, filterIcon, refreshIcon, removeIcon, shieldIcon, starFilledIcon } from './icons';
|
|
9
9
|
const POLL_INTERVAL_MS = 30000;
|
|
10
10
|
const DEFAULT_RECENT_LIMIT = 10;
|
|
11
11
|
const EXPANDED_STORAGE_KEY = 'jupyterlab_claude_code_extension:expanded';
|
|
@@ -1117,6 +1117,7 @@ export class ClaudeCodeSessionsWidget extends Widget {
|
|
|
1117
1117
|
this._branchSubmenu = new Menu({ commands: this._commands });
|
|
1118
1118
|
this._branchSubmenu.addClass('jp-ClaudeSessionsContextMenu');
|
|
1119
1119
|
this._branchSubmenu.title.label = 'Switch and Manage Sessions';
|
|
1120
|
+
this._branchSubmenu.title.icon = switchIcon;
|
|
1120
1121
|
// Submenu grouping the two branch-session launch modes.
|
|
1121
1122
|
this._branchSessionMenu = new Menu({ commands: this._commands });
|
|
1122
1123
|
this._branchSessionMenu.addClass('jp-ClaudeSessionsContextMenu');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jupyterlab_claude_code_extension",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.19",
|
|
4
4
|
"description": "Browse, resume, and manage your Claude Code CLI sessions from a JupyterLab side panel. One click reactivates the right terminal - no duplicate tabs, live remote-control indicator, and favourites for the projects you keep coming back to.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
package/src/icons.ts
CHANGED
|
@@ -82,6 +82,17 @@ export const branchIcon = new LabIcon({
|
|
|
82
82
|
svgstr: branchSvgStr
|
|
83
83
|
});
|
|
84
84
|
|
|
85
|
+
// Arrow-switch glyph (Octicons arrow-switch-16, MIT) - marks the
|
|
86
|
+
// "Switch and Manage Sessions" submenu.
|
|
87
|
+
const switchSvgStr = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
88
|
+
<path class="jp-icon3" fill="#616161" d="M5.22 14.78a.75.75 0 0 0 1.06-1.06L4.56 12h8.69a.75.75 0 0 0 0-1.5H4.56l1.72-1.72a.75.75 0 0 0-1.06-1.06l-3 3a.75.75 0 0 0 0 1.06l3 3Zm5.56-6.5a.75.75 0 1 1-1.06-1.06l1.72-1.72H2.75a.75.75 0 0 1 0-1.5h8.69L9.72 2.28a.75.75 0 0 1 1.06-1.06l3 3a.75.75 0 0 1 0 1.06l-3 3Z"/>
|
|
89
|
+
</svg>`;
|
|
90
|
+
|
|
91
|
+
export const switchIcon = new LabIcon({
|
|
92
|
+
name: 'jupyterlab_claude_code_extension:switch',
|
|
93
|
+
svgstr: switchSvgStr
|
|
94
|
+
});
|
|
95
|
+
|
|
85
96
|
// Funnel copied verbatim from @jupyterlab/ui-components'
|
|
86
97
|
// `search/filter.svg` - the same image the file browser's filter
|
|
87
98
|
// toggle uses. The `class="jp-icon3"` lets JupyterLab's theme drive
|
package/src/widget.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { requestAPI } from './request';
|
|
|
19
19
|
import {
|
|
20
20
|
addIcon,
|
|
21
21
|
branchIcon,
|
|
22
|
+
switchIcon,
|
|
22
23
|
claudeIcon,
|
|
23
24
|
filterIcon,
|
|
24
25
|
refreshIcon,
|
|
@@ -1302,6 +1303,7 @@ export class ClaudeCodeSessionsWidget extends Widget {
|
|
|
1302
1303
|
this._branchSubmenu = new Menu({ commands: this._commands });
|
|
1303
1304
|
this._branchSubmenu.addClass('jp-ClaudeSessionsContextMenu');
|
|
1304
1305
|
this._branchSubmenu.title.label = 'Switch and Manage Sessions';
|
|
1306
|
+
this._branchSubmenu.title.icon = switchIcon;
|
|
1305
1307
|
|
|
1306
1308
|
// Submenu grouping the two branch-session launch modes.
|
|
1307
1309
|
this._branchSessionMenu = new Menu({ commands: this._commands });
|