pi-studio 0.9.0 → 0.9.1
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/CHANGELOG.md +15 -0
- package/README.md +1 -1
- package/client/studio-client.js +408 -116
- package/client/studio.css +133 -33
- package/index.ts +478 -22
- package/package.json +4 -3
package/client/studio.css
CHANGED
|
@@ -2292,7 +2292,8 @@
|
|
|
2292
2292
|
background: var(--error-soft);
|
|
2293
2293
|
}
|
|
2294
2294
|
|
|
2295
|
-
.repl-journal
|
|
2295
|
+
.repl-journal,
|
|
2296
|
+
.repl-mirror {
|
|
2296
2297
|
border: 1px solid var(--panel-border);
|
|
2297
2298
|
border-radius: 10px;
|
|
2298
2299
|
background: var(--panel-2);
|
|
@@ -2302,7 +2303,12 @@
|
|
|
2302
2303
|
gap: 10px;
|
|
2303
2304
|
}
|
|
2304
2305
|
|
|
2305
|
-
.repl-
|
|
2306
|
+
.repl-mirror {
|
|
2307
|
+
background: var(--panel);
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
.repl-journal-compact,
|
|
2311
|
+
.repl-mirror-compact {
|
|
2306
2312
|
padding: 7px 9px;
|
|
2307
2313
|
background: var(--panel);
|
|
2308
2314
|
}
|
|
@@ -2367,65 +2373,159 @@
|
|
|
2367
2373
|
justify-content: flex-end;
|
|
2368
2374
|
}
|
|
2369
2375
|
|
|
2376
|
+
.repl-journal-compact-actions,
|
|
2377
|
+
.repl-studio-below-actions {
|
|
2378
|
+
display: flex;
|
|
2379
|
+
justify-content: flex-end;
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
.repl-studio-below-actions {
|
|
2383
|
+
margin-top: -4px;
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2370
2386
|
.repl-journal-list {
|
|
2387
|
+
--repl-studio-prompt-width: 3.2em;
|
|
2388
|
+
--repl-studio-column-gap: 8px;
|
|
2371
2389
|
display: flex;
|
|
2372
2390
|
flex-direction: column;
|
|
2373
|
-
gap:
|
|
2391
|
+
gap: 0;
|
|
2392
|
+
border: 1px solid var(--panel-border);
|
|
2393
|
+
border-radius: 10px;
|
|
2394
|
+
background: var(--panel);
|
|
2395
|
+
padding: 10px 12px;
|
|
2396
|
+
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
|
|
2374
2397
|
}
|
|
2375
2398
|
|
|
2376
2399
|
.repl-journal-card {
|
|
2377
|
-
border: 1px solid var(--border-subtle);
|
|
2378
|
-
border-radius: 9px;
|
|
2379
|
-
background: var(--panel);
|
|
2380
|
-
padding: 10px;
|
|
2381
2400
|
display: flex;
|
|
2382
2401
|
flex-direction: column;
|
|
2383
|
-
gap:
|
|
2402
|
+
gap: 1px;
|
|
2384
2403
|
}
|
|
2385
2404
|
|
|
2386
|
-
.repl-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
flex-wrap: wrap;
|
|
2405
|
+
.repl-studio-entry {
|
|
2406
|
+
position: relative;
|
|
2407
|
+
padding: 2px 8.5em 6px 0;
|
|
2408
|
+
background: transparent;
|
|
2391
2409
|
}
|
|
2392
2410
|
|
|
2393
|
-
.repl-
|
|
2394
|
-
|
|
2395
|
-
flex-direction: column;
|
|
2396
|
-
gap: 4px;
|
|
2411
|
+
.repl-studio-entry:last-child {
|
|
2412
|
+
padding-bottom: 2px;
|
|
2397
2413
|
}
|
|
2398
2414
|
|
|
2399
|
-
.repl-
|
|
2415
|
+
.repl-studio-entry:has(.repl-studio-output-row) {
|
|
2416
|
+
padding-bottom: 6px;
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2419
|
+
.repl-studio-entry-meta {
|
|
2420
|
+
position: absolute;
|
|
2421
|
+
top: 3px;
|
|
2422
|
+
right: 0;
|
|
2423
|
+
max-width: 8.1em;
|
|
2424
|
+
overflow: hidden;
|
|
2425
|
+
text-overflow: ellipsis;
|
|
2426
|
+
white-space: nowrap;
|
|
2400
2427
|
color: var(--muted);
|
|
2401
2428
|
font-size: 11px;
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2429
|
+
line-height: 1.25;
|
|
2430
|
+
opacity: 0.55;
|
|
2431
|
+
text-align: right;
|
|
2405
2432
|
}
|
|
2406
2433
|
|
|
2407
|
-
.repl-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2434
|
+
.repl-studio-banner {
|
|
2435
|
+
margin: 0 0 8px;
|
|
2436
|
+
padding: 0 0 8px;
|
|
2437
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
2438
|
+
color: var(--muted);
|
|
2439
|
+
font-family: var(--font-mono);
|
|
2440
|
+
font-size: var(--studio-working-font-size);
|
|
2441
|
+
line-height: 1.45;
|
|
2415
2442
|
white-space: pre-wrap;
|
|
2416
|
-
overflow-wrap: anywhere;
|
|
2417
2443
|
}
|
|
2418
2444
|
|
|
2419
|
-
.repl-
|
|
2420
|
-
.repl-
|
|
2445
|
+
.repl-studio-code-row,
|
|
2446
|
+
.repl-studio-output-row {
|
|
2447
|
+
display: grid;
|
|
2448
|
+
grid-template-columns: var(--repl-studio-prompt-width) minmax(0, 1fr);
|
|
2449
|
+
gap: var(--repl-studio-column-gap);
|
|
2450
|
+
align-items: start;
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
.repl-studio-prompt,
|
|
2454
|
+
.repl-studio-output-label {
|
|
2455
|
+
font-family: var(--font-mono);
|
|
2456
|
+
font-size: var(--studio-working-font-size);
|
|
2457
|
+
line-height: 1.45;
|
|
2458
|
+
text-align: right;
|
|
2459
|
+
user-select: none;
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
.repl-studio-output-label {
|
|
2463
|
+
color: var(--muted);
|
|
2464
|
+
opacity: 0.82;
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
.repl-studio-input,
|
|
2468
|
+
.repl-studio-output {
|
|
2469
|
+
margin: 0;
|
|
2470
|
+
padding: 0;
|
|
2471
|
+
border: 0;
|
|
2472
|
+
border-radius: 0;
|
|
2473
|
+
background: transparent;
|
|
2474
|
+
color: var(--text);
|
|
2421
2475
|
font-family: var(--font-mono);
|
|
2422
2476
|
font-size: var(--studio-working-font-size);
|
|
2423
2477
|
line-height: 1.45;
|
|
2478
|
+
white-space: pre-wrap;
|
|
2479
|
+
overflow-wrap: anywhere;
|
|
2480
|
+
box-shadow: none;
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
.repl-studio-output-row {
|
|
2484
|
+
margin-top: 2px;
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
.repl-studio-output {
|
|
2488
|
+
color: var(--text);
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
#rightPane .repl-journal-list .repl-studio-input,
|
|
2492
|
+
#rightPane .repl-journal-list .repl-studio-output,
|
|
2493
|
+
#rightPane .repl-journal-list .repl-studio-code,
|
|
2494
|
+
#rightPane .repl-journal-list .repl-studio-input.response-markdown-highlight,
|
|
2495
|
+
#rightPane .repl-journal-list .repl-studio-code.response-markdown-highlight {
|
|
2496
|
+
margin: 0 !important;
|
|
2497
|
+
padding: 0 !important;
|
|
2498
|
+
border: 0 !important;
|
|
2499
|
+
border-radius: 0 !important;
|
|
2500
|
+
background: transparent !important;
|
|
2501
|
+
box-shadow: none !important;
|
|
2502
|
+
font-size: var(--studio-working-font-size) !important;
|
|
2503
|
+
line-height: 1.45 !important;
|
|
2424
2504
|
}
|
|
2425
2505
|
|
|
2426
|
-
.repl-
|
|
2506
|
+
.repl-studio-note {
|
|
2507
|
+
margin-left: calc(var(--repl-studio-prompt-width) + var(--repl-studio-column-gap));
|
|
2508
|
+
color: var(--text);
|
|
2427
2509
|
font-size: 13px;
|
|
2428
2510
|
line-height: 1.45;
|
|
2511
|
+
white-space: pre-wrap;
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2514
|
+
.repl-studio-empty,
|
|
2515
|
+
.repl-studio-pending {
|
|
2516
|
+
margin-left: calc(var(--repl-studio-prompt-width) + var(--repl-studio-column-gap));
|
|
2517
|
+
color: var(--muted);
|
|
2518
|
+
font-size: 12px;
|
|
2519
|
+
font-style: italic;
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
.repl-journal-card-header,
|
|
2523
|
+
.repl-journal-section,
|
|
2524
|
+
.repl-journal-label,
|
|
2525
|
+
.repl-journal-prose,
|
|
2526
|
+
.repl-journal-code,
|
|
2527
|
+
.repl-journal-output {
|
|
2528
|
+
/* Kept for exported/older markup compatibility. */
|
|
2429
2529
|
}
|
|
2430
2530
|
|
|
2431
2531
|
footer {
|