@floless/app 0.141.1 → 0.143.0

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/dist/web/app.css CHANGED
@@ -2461,6 +2461,7 @@
2461
2461
  border-radius: 4px; font-size: 13px; line-height: 1;
2462
2462
  }
2463
2463
  .req-copy:hover { color: var(--text); background: var(--surface); }
2464
+ .req-copy:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
2464
2465
  .req-del:hover { color: var(--err); border-color: var(--err); }
2465
2466
  /* Brief highlight for the SPECIFIC row "Open Requests" hands off to — the request the user just
2466
2467
  queued, which in an oldest-first list is at the bottom and usually below the fold.
package/dist/web/app.js CHANGED
@@ -1657,7 +1657,7 @@ function userSafeToastMessage(msg, type) {
1657
1657
  return text || 'We couldn’t finish that. Your work is still here. Try again.';
1658
1658
  }
1659
1659
 
1660
- function showToast(msg, type) {
1660
+ function showToast(msg, type, options) {
1661
1661
  const c = document.getElementById('toast-container');
1662
1662
  const t = document.createElement('div');
1663
1663
  t.className = `toast ${type || 'info'}`;
@@ -1680,9 +1680,10 @@ function showToast(msg, type) {
1680
1680
  t.style.transform = 'translateY(8px)';
1681
1681
  setTimeout(() => t.remove(), 300);
1682
1682
  };
1683
- // Errors stay until dismissed (they carry an action to read); warnings linger
1684
- // longer; info/ok auto-dismiss. warn/err get an × so they can be closed early.
1685
- const ms = { ok: 2500, info: 2500, warn: 5000, err: 0, progress: 0 }[type] ?? 2500;
1683
+ // Errors stay until dismissed; most warnings linger longer than confirmations.
1684
+ // A warning carrying the only next step may opt into persistence while keeping
1685
+ // warn styling. warn/err get an × so they can always be closed early.
1686
+ const ms = options?.persistent ? 0 : ({ ok: 2500, info: 2500, warn: 5000, err: 0, progress: 0 }[type] ?? 2500);
1686
1687
  if (type === 'warn' || type === 'err') {
1687
1688
  const x = document.createElement('button');
1688
1689
  x.className = 'toast-close';
package/dist/web/aware.js CHANGED
@@ -9200,6 +9200,16 @@
9200
9200
  showToast(err.body.error, err.body.runtime && err.body.runtime.state === 'failed' ? 'err' : 'warn');
9201
9201
  return null;
9202
9202
  }
9203
+ // No background run can open this change's screenshots, so nothing started (#1670 for Codex,
9204
+ // #1693 for Claude). An expected limit, not a failure: say the server's sentence and put the
9205
+ // person on the row's Copy. Only a tweak is refused this way, and a tweak never opens the
9206
+ // request-queued modal.
9207
+ if (code === 'needs-screenshots' && typeof err.body.error === 'string') {
9208
+ dismissScreenshotRefusal(req.id);
9209
+ screenshotRefusalDismissals.set(req.id, showToast(err.body.error, 'warn', { persistent: true }));
9210
+ focusRequestContinuation(req.id);
9211
+ return null;
9212
+ }
9203
9213
  showToast('We couldn’t start this run because FloLess could not reach the workflow. Check your connection, then try again.', 'err');
9204
9214
  return null;
9205
9215
  }
@@ -9210,7 +9220,7 @@
9210
9220
  const row = Array.from(list?.querySelectorAll('.req-item') || [])
9211
9221
  .find((candidate) => candidate.dataset.id === requestId);
9212
9222
  if (!row) return;
9213
- const continuation = row.querySelector('.req-app-handoff, .req-app-copy, .req-run-resume-command');
9223
+ const continuation = row.querySelector('.req-app-handoff, .req-app-copy, .req-run-resume-command, .req-copy');
9214
9224
  if (continuation) { continuation.focus(); return; }
9215
9225
  row.setAttribute('tabindex', '-1');
9216
9226
  row.focus();
@@ -9647,6 +9657,19 @@
9647
9657
  }
9648
9658
 
9649
9659
  let pendingRequests = [];
9660
+ const screenshotRefusalDismissals = new Map();
9661
+ function dismissScreenshotRefusal(requestId) {
9662
+ const dismiss = screenshotRefusalDismissals.get(requestId);
9663
+ if (!dismiss) return;
9664
+ screenshotRefusalDismissals.delete(requestId);
9665
+ dismiss();
9666
+ }
9667
+ function dismissRefusalsWithoutRows(list) {
9668
+ const visibleIds = new Set(Array.from(list.querySelectorAll('.req-item'), (row) => row.dataset.id));
9669
+ for (const requestId of screenshotRefusalDismissals.keys()) {
9670
+ if (!visibleIds.has(requestId)) dismissScreenshotRefusal(requestId);
9671
+ }
9672
+ }
9650
9673
  // The Workspaces project the Requests window scopes to, pushed by workspaces.js's applyMode()
9651
9674
  // (null in Workflows mode, or on the Workspaces landing). Non-null ⇒ Workspaces with a project
9652
9675
  // open, which is why activeRequestScope() can pick between the two modes from this alone.
@@ -10602,6 +10625,7 @@
10602
10625
  ? `No request matches “${escapeHtml(normalizedRequestQuery)}”.${!requestScopeAll && inScope.length < pendingRequests.length ? ' Try All to search everything.' : ''}`
10603
10626
  : `Nothing queued for ${escapeHtml(scope ? scope.label : 'this')} — ${pendingRequests.length} item${pendingRequests.length === 1 ? '' : 's'} waiting elsewhere. <button type="button" class="req-showall">Show all</button>`;
10604
10627
  paintRequestList($list, `<div class="empty-state">${msg}</div>`, normalizedRequestQuery);
10628
+ dismissRefusalsWithoutRows($list);
10605
10629
  const $showAll = $list.querySelector('.req-showall');
10606
10630
  if ($showAll) $showAll.onclick = () => setRequestScopeAll(true);
10607
10631
  return;
@@ -10728,6 +10752,7 @@
10728
10752
  </div>`;
10729
10753
  }).join('');
10730
10754
  paintRequestList($list, queuedHtml, normalizedRequestQuery);
10755
+ dismissRefusalsWithoutRows($list);
10731
10756
  const paintOwner = $list.__requestPaintOwner;
10732
10757
  $list.querySelectorAll('[data-request-chat]').forEach((button) => {
10733
10758
  button.onclick = async () => {
@@ -10813,6 +10838,7 @@
10813
10838
  });
10814
10839
  $list.querySelectorAll('.req-copy').forEach((b) => {
10815
10840
  b.onclick = async () => {
10841
+ dismissScreenshotRefusal(b.dataset.id);
10816
10842
  const r = pendingRequests.find((x) => x.id === b.dataset.id);
10817
10843
  if (!r) return;
10818
10844
  const modal = document.getElementById('requests-modal');
@@ -11527,7 +11553,6 @@
11527
11553
  const VENDOR_ICON = { microsoft: '▦', google: 'G', trimble: '◬', autodesk: 'A' };
11528
11554
  let integrations = [];
11529
11555
  let integrationsLoadState = 'idle';
11530
- let integrationsLoadError = '';
11531
11556
  let runtimeSectionExpanded = false;
11532
11557
  let pendingIntegrationFocus = '';
11533
11558
 
@@ -11859,7 +11884,6 @@
11859
11884
  // open window flips to Connected the moment `aware connect` writes the token.
11860
11885
  function refreshIntegrations(announcement = '') {
11861
11886
  integrationsLoadState = 'loading';
11862
- integrationsLoadError = '';
11863
11887
  if ($integrationsModal.classList.contains('show')) renderIntegrations();
11864
11888
  return api('/api/integrations')
11865
11889
  .then(({ integrations: list }) => {
@@ -11873,7 +11897,6 @@
11873
11897
  })
11874
11898
  .catch((error) => {
11875
11899
  integrationsLoadState = 'failed';
11876
- integrationsLoadError = error instanceof Error ? error.message : String(error);
11877
11900
  if ($integrationsModal.classList.contains('show')) renderIntegrations();
11878
11901
  reportErr(error);
11879
11902
  });
@@ -12441,7 +12464,6 @@
12441
12464
  paintForegroundListening();
12442
12465
  appendNarration(`Live session started for <strong>${escapeHtml(id)}</strong> — the report updates on every event. Click <strong>■ Stop run</strong> (top right) to end it.`);
12443
12466
  } catch (e) {
12444
- const msg = (e && e.message) ? e.message : String(e);
12445
12467
  // A refusal (a watcher already holds this host) names the concrete path back —
12446
12468
  // never a dead end. Other failures are recoverable; the server returns them
12447
12469
  // in-band, so a failed start is a viewer message + toast, not a console fault.
package/dist/web/chat.css CHANGED
@@ -765,6 +765,8 @@
765
765
  .ai-chat-event strong { color: var(--text); font-weight: 500; }
766
766
  .ai-chat-event.error { border-color: color-mix(in srgb, var(--err) 42%, var(--border)); color: var(--err); }
767
767
  .ai-chat-event.knowledge { border-color: color-mix(in srgb, var(--accent) 36%, var(--border)); }
768
+ /* The chat model's object links (#1653): a quiet receipt under its answer. */
769
+ .ai-chat-event.links { border-color: color-mix(in srgb, var(--accent) 24%, var(--border)); }
768
770
  .ai-chat-live-status {
769
771
  align-self: flex-start;
770
772
  display: inline-flex;
@@ -903,6 +905,14 @@
903
905
  .ai-chat-attachment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
904
906
  .ai-chat-attachment img { width: 24px; height: 24px; object-fit: cover; border-radius: 3px; background: var(--surface-3); }
905
907
  .ai-chat-attachment button { width: 18px; height: 18px; padding: 0; flex: none; }
908
+ /* #1653: the selected Steel objects that go with the next question. The label is the chip's own text made
909
+ focusable (so its tooltip reaches a keyboard), not a second button look. */
910
+ .ai-chat-attachment .ai-chat-subjects-label {
911
+ width: auto; height: auto; min-width: 0; padding: 0 2px; border: 0; background: transparent; color: var(--text);
912
+ font: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
913
+ }
914
+ .ai-chat-attachment .ai-chat-subjects-label:hover { background: transparent; color: var(--text); text-decoration: underline; }
915
+ .ai-chat-message-subjects { align-self: flex-end; max-width: min(100%, 360px); color: var(--text-dim); font: 11px/1.4 var(--ui); text-align: right; overflow-wrap: anywhere; }
906
916
 
907
917
  /* The Tekla model library carried over from a Graft receipt. It sits in the composer's rigid row,
908
918
  above the input, and wraps rather than ellipsising: it states exactly what the binding permits,
@@ -924,6 +934,19 @@
924
934
  .ai-chat-tekla-chip-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
925
935
  .ai-chat-tekla-chip-copy strong { color: var(--text); font-weight: 600; }
926
936
  .ai-chat-tekla-chip-state { color: var(--text-dim); }
937
+ /* The chat's standing Tekla read allowance (#1689): a small pill, revoked by the button beside it. */
938
+ .ai-chat-tekla-allowed {
939
+ display: inline-block;
940
+ padding: 0 6px;
941
+ border: 1px solid var(--accent);
942
+ border-radius: 999px;
943
+ color: var(--text);
944
+ font-size: 10px;
945
+ line-height: 15px;
946
+ white-space: nowrap;
947
+ }
948
+ .ai-chat-tekla-chip-copy:focus { outline: none; }
949
+ .ai-chat-tekla-chip-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
927
950
  .ai-chat-tekla-remove {
928
951
  flex: none;
929
952
  appearance: none;