@floless/app 0.113.6 → 0.113.7

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.
@@ -54472,7 +54472,7 @@ function appVersion() {
54472
54472
  return resolveVersion({
54473
54473
  isSea: isSea2(),
54474
54474
  sqVersionXml: readSqVersionXml(),
54475
- define: true ? "0.113.6" : void 0,
54475
+ define: true ? "0.113.7" : void 0,
54476
54476
  pkgVersion: readPkgVersion()
54477
54477
  });
54478
54478
  }
@@ -54488,7 +54488,7 @@ function resolveChannel(s) {
54488
54488
  function appChannel() {
54489
54489
  return resolveChannel({
54490
54490
  isSea: isSea2(),
54491
- define: true ? "0.113.6" : void 0,
54491
+ define: true ? "0.113.7" : void 0,
54492
54492
  // argv[1] is the entry the runtime actually loaded (…/dist/floless-server.cjs), which is what
54493
54493
  // carries the npx cache prefix. Absent under the SEA exe, which never reaches the npx branch.
54494
54494
  modulePath: process.argv[1]
package/dist/web/app.css CHANGED
@@ -221,26 +221,39 @@
221
221
  gap: 10px;
222
222
  }
223
223
  .panel-toggle {
224
- background: transparent;
225
- border: 1px solid var(--border-strong);
226
- color: var(--text-dim);
227
- width: 22px;
228
- height: 22px;
229
- font-size: 13px;
224
+ position: absolute;
225
+ top: 50%;
226
+ z-index: 12;
227
+ transform: translateY(-50%);
228
+ background: var(--surface-2);
229
+ border: 1px solid #334155;
230
+ color: var(--text);
231
+ width: 28px;
232
+ height: 42px;
233
+ font-size: 18px;
230
234
  line-height: 1;
231
235
  padding: 0;
232
236
  display: flex;
233
237
  align-items: center;
234
238
  justify-content: center;
235
239
  cursor: pointer;
236
- border-radius: 3px;
240
+ border-radius: 6px;
237
241
  font-family: var(--ui);
242
+ box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
243
+ }
244
+ .panel-toggle[data-side="left"] { right: 4px; }
245
+ .panel-toggle[data-side="right"] { left: 4px; }
246
+ .panel-toggle::before {
247
+ content: "";
248
+ position: absolute;
249
+ inset: -1px -8px;
238
250
  }
239
251
  .panel-toggle:hover {
240
- color: var(--accent);
241
- border-color: var(--accent-dim);
242
- background: var(--accent-soft);
252
+ color: var(--text);
253
+ border-color: var(--accent);
254
+ background: #475569;
243
255
  }
256
+ .panel-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
244
257
 
245
258
  /* ========== CHAT (LEFT) ========== */
246
259
  .chat {
package/dist/web/app.js CHANGED
@@ -777,9 +777,28 @@ function renderLibrary() {
777
777
 
778
778
  /* ============= COLLAPSE ============= */
779
779
 
780
- function applyCollapse() {
780
+ function applyCollapse(focusSide = null) {
781
781
  $app.classList.toggle('left-collapsed', state.collapse.left);
782
782
  $app.classList.toggle('right-collapsed', state.collapse.right);
783
+ document.querySelectorAll('.panel-toggle').forEach(btn => {
784
+ const side = btn.dataset.side;
785
+ const collapsed = state.collapse[side];
786
+ const panelName = side === 'left' ? 'Narrative' : 'Inspect';
787
+ const label = collapsed ? `Expand ${panelName} panel` : `Collapse ${panelName} panel`;
788
+ btn.textContent = side === 'left'
789
+ ? (collapsed ? '›' : '‹')
790
+ : (collapsed ? '‹' : '›');
791
+ btn.setAttribute('aria-label', label);
792
+ btn.setAttribute('aria-expanded', String(!collapsed));
793
+ btn.dataset.tip = label;
794
+ });
795
+ if (focusSide) {
796
+ requestAnimationFrame(() => {
797
+ const collapsed = state.collapse[focusSide];
798
+ const host = collapsed ? '.collapsed-stub' : '.panel-label';
799
+ document.querySelector(`${host} .panel-toggle[data-side="${focusSide}"]`)?.focus();
800
+ });
801
+ }
783
802
  // redraw DAG wires after layout changes
784
803
  if (isDag()) {
785
804
  const svg = document.getElementById('wires-svg');
@@ -791,7 +810,7 @@ function applyCollapse() {
791
810
 
792
811
  function toggleCollapse(side) {
793
812
  state.collapse[side] = !state.collapse[side];
794
- applyCollapse();
813
+ applyCollapse(side);
795
814
  saveCollapse();
796
815
  }
797
816
 
@@ -121,11 +121,11 @@
121
121
  <span>Narrative</span>
122
122
  <span class="label-end">
123
123
  <span class="role">curated · full chat in your terminal</span>
124
- <button class="panel-toggle" data-side="left" data-tip="Collapse panel">‹</button>
124
+ <button type="button" class="panel-toggle" data-side="left" aria-label="Collapse Narrative panel" aria-controls="chat-panel" aria-expanded="true" data-tip="Collapse Narrative panel">‹</button>
125
125
  </span>
126
126
  </div>
127
127
  <div class="collapsed-stub">
128
- <button class="panel-toggle" data-side="left" data-tip="Expand">›</button>
128
+ <button type="button" class="panel-toggle" data-side="left" aria-label="Expand Narrative panel" aria-controls="chat-panel" aria-expanded="false" data-tip="Expand Narrative panel">›</button>
129
129
  <div class="vertical-label">Narrative</div>
130
130
  <div class="stub-icon">💬</div>
131
131
  </div>
@@ -244,11 +244,11 @@
244
244
  <span class="role" id="inspect-role">click an agent</span>
245
245
  <button id="debug-btn" class="tweak-btn" data-tip="Re-run this exec node with the .NET debugger attached (Visual Studio)" hidden>⊟ Debug in VS</button>
246
246
  <button id="tweak-btn" class="tweak-btn" data-tip="Ask the terminal AI to change just this node" hidden>✎ Tweak</button>
247
- <button class="panel-toggle" data-side="right" data-tip="Collapse panel">›</button>
247
+ <button type="button" class="panel-toggle" data-side="right" aria-label="Collapse Inspect panel" aria-controls="inspect-panel" aria-expanded="true" data-tip="Collapse Inspect panel">›</button>
248
248
  </span>
249
249
  </div>
250
250
  <div class="collapsed-stub">
251
- <button class="panel-toggle" data-side="right" data-tip="Expand">‹</button>
251
+ <button type="button" class="panel-toggle" data-side="right" aria-label="Expand Inspect panel" aria-controls="inspect-panel" aria-expanded="false" data-tip="Expand Inspect panel">‹</button>
252
252
  <div class="vertical-label">Inspect</div>
253
253
  <div class="stub-icon">⌕</div>
254
254
  </div>
@@ -66,6 +66,7 @@
66
66
  #panelResizer:focus-visible{outline:none} #panelResizer:focus-visible::before{background:var(--brand)}
67
67
  #panelToggle{position:absolute;right:calc(var(--panelw,240px) - 14px);top:50%;transform:translateY(-50%);z-index:12;width:28px;height:42px;padding:0;display:flex;align-items:center;justify-content:center;background:var(--panel);border-color:var(--line);box-shadow:0 4px 14px rgba(0,0,0,.45);font-size:18px;line-height:1}
68
68
  #panelToggle:hover{border-color:var(--brand)}
69
+ #panelToggle::before,#m3dLegendCollapse::before,#m3dLegendLauncher::before{content:"";position:absolute;inset:-1px -8px}
69
70
  #panelToggle:focus-visible,#m3dLegendCollapse:focus-visible,#m3dLegendLauncher:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
70
71
  body.panel-collapsed #panel,body.panel-collapsed #panelResizer{display:none}
71
72
  body.panel-collapsed #panelToggle{right:4px}
@@ -704,11 +705,10 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
704
705
  /* Panel shell (Objects | Views | Favourites tabs). The OUTER panel no longer scrolls — it caps the height and
705
706
  lays out [tab strip][active body]; each tab body is its own scroll container (themed by the global * rule). */
706
707
  #m3dLegend{position:absolute;left:12px;bottom:64px;display:none;flex-direction:column;max-height:min(52vh,calc(100% - var(--m3d-legend-clearance,184px)));min-width:210px;max-width:min(340px,92vw);background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:0;z-index:6;box-shadow:0 4px 14px rgba(0,0,0,.45);font-size:12px} /* the measured clearance tracks however many rows the narrow toolbar wraps onto */
707
- #m3dLegendCollapse{flex:none;width:28px;padding:0;border:1px solid #475569;border-radius:6px;background:transparent;color:var(--mut);box-shadow:none;font-size:15px}
708
- #m3dLegendCollapse:hover{color:var(--text);background:#334155}
709
- #m3dLegendLauncher{position:absolute;left:12px;bottom:12px;z-index:12;width:34px;height:34px;display:none;align-items:center;justify-content:center;padding:0;background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 4px 14px rgba(0,0,0,.45);color:var(--mut)}
710
- #m3dLegendLauncher:hover{color:var(--text);border-color:var(--brand)}
711
- #m3dLegendLauncher svg{display:block}
708
+ #m3dLegendCollapse{position:absolute;right:-14px;top:50%;transform:translateY(-50%);z-index:12;width:28px;height:42px;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--text);box-shadow:0 4px 14px rgba(0,0,0,.45);font-size:18px;line-height:1}
709
+ #m3dLegendCollapse:hover{color:var(--text);background:#475569;border-color:var(--brand)}
710
+ #m3dLegendLauncher{position:absolute;left:4px;bottom:12px;z-index:12;width:28px;height:42px;display:none;align-items:center;justify-content:center;padding:0;background:var(--panel);border:1px solid var(--line);border-radius:6px;box-shadow:0 4px 14px rgba(0,0,0,.45);color:var(--text);font-size:18px;line-height:1}
711
+ #m3dLegendLauncher:hover{color:var(--text);background:#475569;border-color:var(--brand)}
712
712
  /* Tab strip — the .seg-group segmented look, full-width across the panel top; sticky so it never scrolls away. */
713
713
  #m3dPanelHeader{display:flex;flex:none;align-items:stretch;gap:6px;border-bottom:1px solid var(--line);padding:7px 8px 6px}
714
714
  #m3dTabs{display:flex;flex:1;min-width:0;gap:0}
@@ -1129,13 +1129,13 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
1129
1129
  <button class=m3dtab role=tab data-tab=views aria-selected=false data-tip="Saved views — save, switch, and manage named viewpoints">Views</button>
1130
1130
  <button class=m3dtab role=tab data-tab=fav aria-selected=false data-tip="Favourite connections — save and re-apply detailed connections">Favourites</button>
1131
1131
  </div>
1132
- <button id=m3dLegendCollapse aria-label="Collapse 3D panel" aria-controls="m3dLegendBody m3dViewsBody m3dFavBody" aria-expanded=true data-tip="Collapse Objects, Views, and Favourites to the bottom-left corner">⌄</button>
1132
+ <button type=button id=m3dLegendCollapse aria-label="Collapse 3D panel" aria-controls=m3dLegend aria-expanded=true data-tip="Collapse Objects, Views, and Favourites to the bottom-left corner">‹</button>
1133
1133
  </div>
1134
1134
  <div id=m3dLegendBody class="m3dbody on" role=tabpanel aria-label=Objects></div>
1135
1135
  <div id=m3dViewsBody class=m3dbody role=tabpanel aria-label=Views></div>
1136
1136
  <div id=m3dFavBody class=m3dbody role=tabpanel aria-label=Favourites></div>
1137
1137
  </div>
1138
- <button id=m3dLegendLauncher aria-label="Open 3D panel" aria-controls=m3dLegend aria-expanded=false data-tip="Open Objects, Views, and Favourites"><svg width=17 height=17 viewBox="0 0 17 17" fill=none stroke=currentColor stroke-width=1.4 aria-hidden=true><rect x=2.5 y=2.5 width=12 height=12 rx=2></rect><path d="M6.5 3v11M7 6h7M7 10h7"></path></svg></button>
1138
+ <button type=button id=m3dLegendLauncher aria-label="Expand 3D panel" aria-controls=m3dLegend aria-expanded=false data-tip="Expand Objects, Views, and Favourites">›</button>
1139
1139
  <div id=m3dCube data-tip="Click a face for that view · right-drag to orbit"></div>
1140
1140
  <div id=m3dAxes></div>
1141
1141
  <div id=zoombar>
@@ -1175,7 +1175,7 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
1175
1175
  <div id=panelResizer role=separator aria-orientation=vertical aria-label="Resize properties panel" tabindex=0 data-tip="Drag to resize · double-click to reset"></div>
1176
1176
  <span id=connectionTruthStatus class=sr-only role=status aria-live=polite aria-atomic=true></span>
1177
1177
  <aside id=panel></aside>
1178
- <button id=panelToggle aria-label="Collapse properties panel" aria-controls=panel aria-expanded=true data-tip="Collapse properties panel">›</button>
1178
+ <button type=button id=panelToggle aria-label="Collapse properties panel" aria-controls=panel aria-expanded=true data-tip="Collapse properties panel">›</button>
1179
1179
  </main>
1180
1180
  <datalist id=conntypes><option>moment</option><option>drag</option><option>shear</option><option>braced</option><option>pinned</option><option>fixed</option></datalist>
1181
1181
  <datalist id=profiles></datalist>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floless/app",
3
- "version": "0.113.6",
3
+ "version": "0.113.7",
4
4
  "type": "module",
5
5
  "description": "Thin localhost host for floless.app — serves web/ and shells the aware CLI. No engine, no LLM.",
6
6
  "bin": {