jupyterlab_claude_code_extension 1.1.14 → 1.1.15
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/widget.js +2 -6
- package/package.json +1 -1
- package/src/widget.ts +2 -9
- package/style/base.css +0 -7
package/lib/widget.js
CHANGED
|
@@ -346,7 +346,7 @@ export class ClaudeCodeSessionsWidget extends Widget {
|
|
|
346
346
|
// via terminal:open. When claude exits, the tab closes. The launch
|
|
347
347
|
// RPC + the WebSocket-resize waiter on the server can take a few
|
|
348
348
|
// seconds, so show a modal spinner for visual feedback.
|
|
349
|
-
const spinner = this._showLaunchSpinner(
|
|
349
|
+
const spinner = this._showLaunchSpinner();
|
|
350
350
|
try {
|
|
351
351
|
const launched = await requestAPI('launch-terminal', this._serverSettings, {
|
|
352
352
|
method: 'POST',
|
|
@@ -455,17 +455,13 @@ export class ClaudeCodeSessionsWidget extends Widget {
|
|
|
455
455
|
* caller must dismiss it via ``.dispose()`` once the work is done - the
|
|
456
456
|
* dialog has no buttons so ``.resolve()`` would be a no-op.
|
|
457
457
|
*/
|
|
458
|
-
_showLaunchSpinner(
|
|
458
|
+
_showLaunchSpinner() {
|
|
459
459
|
const body = new Widget();
|
|
460
460
|
body.node.className = 'jp-ClaudeSessionsPanel-launchOverlay';
|
|
461
461
|
const spinner = document.createElement('div');
|
|
462
462
|
spinner.className =
|
|
463
463
|
'jp-claude-sessions-panel-spinner jp-ClaudeSessionsPanel-launchSpinner';
|
|
464
464
|
body.node.appendChild(spinner);
|
|
465
|
-
const text = document.createElement('div');
|
|
466
|
-
text.className = 'jp-ClaudeSessionsPanel-launchLabel';
|
|
467
|
-
text.textContent = label;
|
|
468
|
-
body.node.appendChild(text);
|
|
469
465
|
const dialog = new Dialog({
|
|
470
466
|
title: 'Opening Claude Code session',
|
|
471
467
|
body,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jupyterlab_claude_code_extension",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.15",
|
|
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/widget.ts
CHANGED
|
@@ -431,9 +431,7 @@ export class ClaudeCodeSessionsWidget extends Widget {
|
|
|
431
431
|
// via terminal:open. When claude exits, the tab closes. The launch
|
|
432
432
|
// RPC + the WebSocket-resize waiter on the server can take a few
|
|
433
433
|
// seconds, so show a modal spinner for visual feedback.
|
|
434
|
-
const spinner = this._showLaunchSpinner(
|
|
435
|
-
`Opening ${this._lookupName(session)}...`
|
|
436
|
-
);
|
|
434
|
+
const spinner = this._showLaunchSpinner();
|
|
437
435
|
try {
|
|
438
436
|
const launched = await requestAPI<ILaunchTerminalResponse>(
|
|
439
437
|
'launch-terminal',
|
|
@@ -548,7 +546,7 @@ export class ClaudeCodeSessionsWidget extends Widget {
|
|
|
548
546
|
* caller must dismiss it via ``.dispose()`` once the work is done - the
|
|
549
547
|
* dialog has no buttons so ``.resolve()`` would be a no-op.
|
|
550
548
|
*/
|
|
551
|
-
private _showLaunchSpinner(
|
|
549
|
+
private _showLaunchSpinner(): Dialog<unknown> {
|
|
552
550
|
const body = new Widget();
|
|
553
551
|
body.node.className = 'jp-ClaudeSessionsPanel-launchOverlay';
|
|
554
552
|
|
|
@@ -557,11 +555,6 @@ export class ClaudeCodeSessionsWidget extends Widget {
|
|
|
557
555
|
'jp-claude-sessions-panel-spinner jp-ClaudeSessionsPanel-launchSpinner';
|
|
558
556
|
body.node.appendChild(spinner);
|
|
559
557
|
|
|
560
|
-
const text = document.createElement('div');
|
|
561
|
-
text.className = 'jp-ClaudeSessionsPanel-launchLabel';
|
|
562
|
-
text.textContent = label;
|
|
563
|
-
body.node.appendChild(text);
|
|
564
|
-
|
|
565
558
|
const dialog = new Dialog<unknown>({
|
|
566
559
|
title: 'Opening Claude Code session',
|
|
567
560
|
body,
|
package/style/base.css
CHANGED
|
@@ -256,13 +256,6 @@
|
|
|
256
256
|
border-width: 3px;
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
.jp-ClaudeSessionsPanel-launchLabel {
|
|
260
|
-
font-size: var(--jp-ui-font-size1);
|
|
261
|
-
color: var(--jp-ui-font-color1);
|
|
262
|
-
text-align: center;
|
|
263
|
-
word-break: break-word;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
259
|
.jp-ClaudeSessionsPanel-row.jp-mod-busy {
|
|
267
260
|
opacity: 0.55;
|
|
268
261
|
pointer-events: none;
|