my-durable 0.0.99 → 0.0.100

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.
@@ -7,8 +7,8 @@
7
7
  <meta name="referrer" content="no-referrer" />
8
8
  <link rel="icon" type="image/svg+xml" href="/icons/durable-pi.svg" />
9
9
  <title>Durable Pi | Network</title>
10
- <script type="module" crossorigin src="/assets/index-CG14fSPe.js"></script>
11
- <link rel="stylesheet" crossorigin href="/assets/index-BRW4XEPC.css">
10
+ <script type="module" crossorigin src="/assets/index-DKyfqrbX.js"></script>
11
+ <link rel="stylesheet" crossorigin href="/assets/index-BJPl06Xx.css">
12
12
  </head>
13
13
  <body>
14
14
  <div id="app"></div>
@@ -3504,3 +3504,47 @@ select:focus {
3504
3504
  height: 10px;
3505
3505
  }
3506
3506
  }
3507
+
3508
+ /* ── Compact band, second pass (from the user's actual screenshots) ────────
3509
+ What the phone shows that no probe caught:
3510
+ 1. The Inspector's collapsed icon RAIL renders inline on phones, eating
3511
+ ~100px of a 800px screen and pushing the chat into a sliver. On the
3512
+ compact band the rail is HIDDEN — the Details tab opens the inspector
3513
+ as the overlay it already is. The chat gets the full width.
3514
+ 2. The chat-header crumbs (device/workspace names) rendered 1.0625rem —
3515
+ larger than the bar itself, hence the truncated 'PhuongNB-Laptop > New
3516
+ s…' row.
3517
+ 3. The markdown chat body is 1rem with 1.85 line-height — desktop reading
3518
+ measure. On the compact band it reads as body text, not a document. */
3519
+ @media (max-width: 780px), (max-width: 1100px) and (pointer: coarse) {
3520
+ /* 1. the inspector rail: hidden — Details opens the overlay */
3521
+ .net-workspace > .inspector {
3522
+ display: none;
3523
+ }
3524
+ .net-workspace > .inspector.overlay {
3525
+ display: flex;
3526
+ }
3527
+ /* 2. the chat header crumbs: same optical size as the bar */
3528
+ .crumb-main {
3529
+ font-size: 0.875rem;
3530
+ gap: 5px;
3531
+ }
3532
+ .crumb .device-chip,
3533
+ .crumb-name {
3534
+ font-size: 0.875rem;
3535
+ }
3536
+ /* 3. the chat body reads as text, not a document */
3537
+ .markdown {
3538
+ font-size: 0.9375rem;
3539
+ line-height: 1.6;
3540
+ }
3541
+ .markdown ul,
3542
+ .markdown ol {
3543
+ padding-left: 18px;
3544
+ margin: 8px 0;
3545
+ }
3546
+ .message-label {
3547
+ font-size: 0.8125rem;
3548
+ margin-bottom: 6px;
3549
+ }
3550
+ }
@@ -0,0 +1,37 @@
1
+ import { chromium } from "playwright-core";
2
+ const b = await chromium.launch({ executablePath: "/usr/bin/google-chrome", args: ["--no-sandbox"] });
3
+ // 800×1900 ≈ Samsung Internet CSS viewport của ảnh user; touch
4
+ const pg = await b.newPage({ viewport: { width: 800, height: 1700 }, hasTouch: true, isMobile: true });
5
+ await pg.goto("http://127.0.0.1:4203/", { waitUntil: "networkidle" });
6
+ // dựng đúng cấu trúc màn session: rail inspector + chat markdown
7
+ await pg.evaluate(() => {
8
+ const ws = document.querySelector(".net-workspace");
9
+ ws.innerHTML = `
10
+ <aside class="inspector collapsed"><div class="panel-rail"><button class="rail-tab">A</button></div></aside>
11
+ <section class="chat-panel">
12
+ <header class="chat-header">
13
+ <div class="lineage-picker"><nav class="crumbs conversation-lineage">
14
+ <button class="crumb"><span class="crumb-main"><span class="device-chip">PhuongNB-Laptop</span></span></button>
15
+ </nav></div>
16
+ <div class="chat-header-actions"><button class="icon-button">✎</button></div>
17
+ </header>
18
+ <div class="chat-scroll"><div class="markdown"><p><strong>Worktree chính</strong> đã chuyển từ <code>master</code> sang <code>hotfix/phuongnb/261026-clp-14419</code> — đang làm hotfix CLP-14419</p></div></div>
19
+ </section>`;
20
+ });
21
+ const r = await pg.evaluate(() => {
22
+ const rail = document.querySelector(".inspector");
23
+ const railR = rail.getBoundingClientRect();
24
+ const crumb = document.querySelector(".crumb-main");
25
+ const md = document.querySelector(".markdown p");
26
+ const chat = document.querySelector(".chat-scroll");
27
+ return {
28
+ railVisible: rail.getClientRects().length > 0 && getComputedStyle(rail).display !== "none",
29
+ railWidth: Math.round(railR.width),
30
+ crumbPx: Math.round(parseFloat(getComputedStyle(crumb).fontSize)),
31
+ mdPx: Math.round(parseFloat(getComputedStyle(md).fontSize) * 10) / 10,
32
+ chatWidth: Math.round(chat.getBoundingClientRect().width),
33
+ };
34
+ });
35
+ console.log(`800px touch: rail visible=${r.railVisible} (${r.railWidth}px) | crumb ${r.crumbPx}px | markdown ${r.mdPx}px | chat rộng ${r.chatWidth}px`);
36
+ await pg.screenshot({ path: "/tmp/fe-shot/session-800-fixed.png" });
37
+ await b.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-durable",
3
- "version": "0.0.99",
3
+ "version": "0.0.100",
4
4
  "description": "Durable Pi — the durable agent network: hub web UI, device backend daemon, TUI admin and the shared SDK, packaged as one runnable monorepo install",
5
5
  "license": "MIT",
6
6
  "repository": {