@floless/app 0.138.0 → 0.138.2

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,7 +7,7 @@ description: >-
7
7
  two-phase Drawing Filter process: first prepare and save the deterministic Filter, then read only the
8
8
  selected evidence into model-global members, registered plan views, observations, and revision history.
9
9
  metadata:
10
- version: 0.50.0
10
+ version: 0.51.0
11
11
  ---
12
12
 
13
13
  # Steel Takeoff — read drawings into `steel.model/v2`
@@ -84,6 +84,10 @@ Do not read members before the user saves the Drawing Filter.
84
84
  1. POST the request's `/steel-manifest` route. The server rehashes every attached PDF, inventories
85
85
  every page, and mints the Filter geometry and element identities. If sheet identity is ambiguous,
86
86
  inspect only the pages named by `sheet-identification-required` and retry with explicit bindings.
87
+ If preparation returns `steel-manifest-preparation-busy`, `steel-manifest-inspection-interrupted`,
88
+ or `steel-manifest-extraction-interrupted`, wait at least `retryAfterMs` and retry this same request.
89
+ The drawings and completed page identification remain attached; never replace or split the set merely
90
+ because a preparation worker exceeded one attempt window.
87
91
  Never build, rename, or replace server-owned Filter geometry yourself.
88
92
  2. Stop and ask the user to review the Filter in **Drawing Filter** and press **Save filter** in the
89
93
  top-right corner.
package/dist/web/aware.js CHANGED
@@ -9373,6 +9373,9 @@
9373
9373
  // original request would launch a second reader against the same project. The existing terminal
9374
9374
  // session owns the continuation; Requests must point the user back to that checkpoint instead.
9375
9375
  function requestCanCopy(r) {
9376
+ // Current servers own this lifecycle decision together with automatic Retry and the manifest
9377
+ // route. The fallback is only for an older server response already cached in this tab.
9378
+ if (typeof r?.canCopy === 'boolean') return r.canCopy;
9376
9379
  // A terminal revision state is an outcome, never a queued instruction. This also covers a read
9377
9380
  // that failed before its prepass checkpoint existed: its card says attach again, so offering Copy
9378
9381
  // beside it would be a contradictory retry path.
@@ -9396,8 +9399,17 @@
9396
9399
  // the user it needs review/reattachment while its terminal AI is visibly working is the wrong
9397
9400
  // lifecycle. Keep these categories disjoint so the bulk result names the immediate truth.
9398
9401
  const activeSkipped = shown.filter(requestHasActiveRun).length;
9399
- const drawingSkipped = shown.filter((r) => !requestHasActiveRun(r) && revisionReadCannotRestart(r)).length;
9400
- return { lines, dropped, drawingSkipped, activeSkipped, incompleteSkipped: dropped - drawingSkipped - activeSkipped };
9402
+ const preparationBlockedSkipped = shown.filter((r) => !requestHasActiveRun(r) && r?.preparationState === 'blocked').length;
9403
+ const preparationPublishedSkipped = shown.filter((r) => !requestHasActiveRun(r)
9404
+ && r?.preparationState === 'manifest-published' && !r?.prepassReady).length;
9405
+ const drawingSkipped = shown.filter((r) => !requestHasActiveRun(r)
9406
+ && r?.preparationState !== 'blocked'
9407
+ && !(r?.preparationState === 'manifest-published' && !r?.prepassReady)
9408
+ && revisionReadCannotRestart(r)).length;
9409
+ return {
9410
+ lines, dropped, drawingSkipped, activeSkipped, preparationBlockedSkipped, preparationPublishedSkipped,
9411
+ incompleteSkipped: dropped - drawingSkipped - activeSkipped - preparationBlockedSkipped - preparationPublishedSkipped,
9412
+ };
9401
9413
  }
9402
9414
 
9403
9415
  async function revalidateBulkCopyRequests(shown) {
@@ -9428,25 +9440,39 @@
9428
9440
  // request with no instruction body, and reporting the list length over that is the
9429
9441
  // original bug wearing a bulk hat: the user pastes, the AI applies the ones that copied, and the
9430
9442
  // dropped request never reaches the terminal while the toast said it did.
9431
- const { lines, dropped, drawingSkipped, activeSkipped, incompleteSkipped } = bulkCopyPlan(current);
9443
+ const { lines, dropped, drawingSkipped, activeSkipped, preparationBlockedSkipped, preparationPublishedSkipped, incompleteSkipped } = bulkCopyPlan(current);
9432
9444
  if (!lines.length) {
9433
- showToast(bulkCopyEmptyMessage({ drawingSkipped, activeSkipped }, shown.length), 'warn');
9445
+ showToast(bulkCopyEmptyMessage({ drawingSkipped, activeSkipped, preparationBlockedSkipped, preparationPublishedSkipped, incompleteSkipped }, shown.length), 'warn');
9434
9446
  return;
9435
9447
  }
9436
9448
  const copied = await copyToClipboard(lines.join('\n\n'));
9437
9449
  if (!copied) { showToast('copy failed', 'err'); return; }
9438
9450
  showToast(
9439
- bulkCopySuccessMessage({ lines, dropped, drawingSkipped, activeSkipped, incompleteSkipped }, shown.length),
9451
+ bulkCopySuccessMessage({ lines, dropped, drawingSkipped, activeSkipped, preparationBlockedSkipped, preparationPublishedSkipped, incompleteSkipped }, shown.length),
9440
9452
  dropped ? 'warn' : 'ok',
9441
9453
  );
9442
9454
  }
9443
9455
 
9444
9456
  function bulkCopyEmptyMessage(plan, total) {
9445
- return plan.drawingSkipped === total
9446
- ? 'Nothing to copy — these drawing reads need review, continuation, or reattachment'
9447
- : plan.activeSkipped === total
9448
- ? 'Nothing to copy — these requests are already running'
9449
- : 'Nothing to copy — these requests are already running, need drawing review, or have no complete terminal instruction';
9457
+ if (plan.preparationBlockedSkipped === total) return 'Nothing to copy — drawing preparation needs operator repair';
9458
+ if (plan.preparationPublishedSkipped === total) return 'Nothing to copy — drawing preparation is complete; continue in the same terminal AI';
9459
+ if (plan.drawingSkipped === total) return 'Nothing to copy — these drawing reads need review, continuation, or reattachment';
9460
+ if (plan.activeSkipped === total) return 'Nothing to copy — these requests are already running';
9461
+ const blocked = plan.preparationBlockedSkipped
9462
+ ? `${plan.preparationBlockedSkipped} drawing preparation${plan.preparationBlockedSkipped === 1 ? ' needs' : 's need'} operator repair`
9463
+ : '';
9464
+ const published = plan.preparationPublishedSkipped
9465
+ ? `${plan.preparationPublishedSkipped} drawing preparation${plan.preparationPublishedSkipped === 1 ? ' is' : 's are'} complete and need${plan.preparationPublishedSkipped === 1 ? 's' : ''} terminal continuation`
9466
+ : '';
9467
+ const drawing = plan.drawingSkipped
9468
+ ? `${plan.drawingSkipped} drawing read${plan.drawingSkipped === 1 ? ' needs' : 's need'} review, continuation, or reattachment`
9469
+ : '';
9470
+ const active = plan.activeSkipped ? `${plan.activeSkipped} already running` : '';
9471
+ const incomplete = plan.incompleteSkipped ? `${plan.incompleteSkipped} had no complete terminal instruction` : '';
9472
+ const reasons = [blocked, published, drawing, active, incomplete].filter(Boolean);
9473
+ return reasons.length
9474
+ ? `Nothing to copy — ${reasons.join(', ')}`
9475
+ : 'Nothing to copy — no complete terminal instruction is available';
9450
9476
  }
9451
9477
 
9452
9478
  function bulkCopySuccessMessage(plan, total) {
@@ -9455,13 +9481,38 @@
9455
9481
  ? `${plan.drawingSkipped} drawing read${plan.drawingSkipped === 1 ? ' needs' : 's need'} review, continuation, or reattachment`
9456
9482
  : '';
9457
9483
  const active = plan.activeSkipped ? `${plan.activeSkipped} already running` : '';
9484
+ const blocked = plan.preparationBlockedSkipped
9485
+ ? `${plan.preparationBlockedSkipped} drawing preparation${plan.preparationBlockedSkipped === 1 ? ' needs' : 's need'} operator repair`
9486
+ : '';
9487
+ const published = plan.preparationPublishedSkipped
9488
+ ? `${plan.preparationPublishedSkipped} drawing preparation${plan.preparationPublishedSkipped === 1 ? ' is' : 's are'} complete and need${plan.preparationPublishedSkipped === 1 ? 's' : ''} terminal continuation`
9489
+ : '';
9458
9490
  const incomplete = plan.incompleteSkipped ? `${plan.incompleteSkipped} had no complete instruction` : '';
9459
- return `Copied ${plan.lines.length} of ${total} — ${[drawing, active, incomplete].filter(Boolean).join(', ')}`;
9491
+ return `Copied ${plan.lines.length} of ${total} — ${[drawing, active, blocked, published, incomplete].filter(Boolean).join(', ')}`;
9460
9492
  }
9461
9493
 
9462
9494
  /** The sentence a steel detailer needs first; the exact API handoff stays available below it. */
9463
9495
  function requestSummary(r) {
9464
9496
  if (!r || r.type !== 'revision-read') return '';
9497
+ if (r.preparationState === 'blocked') {
9498
+ return 'Steel drawing preparation needs operator repair. FloLess could not verify that the earlier extractor stopped. Your drawings are still attached. Restart FloLess; if this remains blocked, follow the operator repair in Technical details.';
9499
+ }
9500
+ if (r.preparationState === 'manifest-published' && !r.prepassReady) {
9501
+ return 'Drawing preparation is complete and the prepared data is saved. Return to the same terminal AI session and tell it to continue creating the Drawing Filter. Do not start or copy this request again.';
9502
+ }
9503
+ if (r.status === 'pending' && r.prepassReady) {
9504
+ return r.filterCheckpointCurrent
9505
+ ? 'Drawing Filter saved. Return to the same terminal AI session that prepared it and tell it to continue the drawing read.'
9506
+ : 'Drawing Filter ready. Review the selected lines, then press Save filter in the top-right corner.';
9507
+ }
9508
+ if (r.preparationRetryable) {
9509
+ const active = r.run && (r.run.state === 'queued' || r.run.state === 'running');
9510
+ return active
9511
+ ? 'Retrying Steel Filter preparation with the attached drawings.'
9512
+ : r.canRun
9513
+ ? 'Steel Filter preparation was interrupted. Your drawings are still attached. Choose Retry preparation to continue this same request.'
9514
+ : 'Steel Filter preparation was interrupted. Your drawings are still attached. Return to the same terminal AI and retry preparation for this same request.';
9515
+ }
9465
9516
  // A durable terminal attempt can own a pending row while automatic start is intentionally
9466
9517
  // unavailable. Its server-owned recovery is the primary summary; generic "read the drawing"
9467
9518
  // copy would hide the reason and invite the exact retry the server refused.
@@ -9488,9 +9539,6 @@
9488
9539
  if (r.filterCheckpointCurrent) {
9489
9540
  return 'Drawing Filter saved. Return to the same terminal AI session that prepared it and tell it to continue the drawing read.';
9490
9541
  }
9491
- if (r.prepassReady) {
9492
- return 'Drawing Filter ready. Review the selected lines, then press Save filter in the top-right corner.';
9493
- }
9494
9542
  return (!r.baseVersion || r.baseVersion <= 0)
9495
9543
  ? 'Read the attached drawing and create the first steel model for this project.'
9496
9544
  : 'Read the updated drawing and apply the changes to this steel model.';
@@ -9614,14 +9662,26 @@
9614
9662
  function drawingRequestGuidance(r) {
9615
9663
  if (!r) return '';
9616
9664
  if (r.status && r.status !== 'pending') return '';
9617
- if (r.refusalCode === 'steel-manifest-extraction-timeout'
9618
- || r.run?.refusalCode === 'steel-manifest-extraction-timeout') return '';
9665
+ if (r.preparationState === 'blocked') {
9666
+ return 'Steel drawing preparation needs operator repair. Restart FloLess; if this remains blocked, open Technical details for the operator repair. Your drawings are still attached. Do not retry, copy, clear, or attach them again.';
9667
+ }
9668
+ if (r.preparationState === 'manifest-published' && !r.prepassReady) {
9669
+ return 'Drawing preparation is complete and saved. Return to the same terminal AI session and tell it to continue creating the Drawing Filter. Do not start or copy this request again.';
9670
+ }
9619
9671
  if (r.filterCheckpointCurrent) {
9620
9672
  return 'Next step: return to the same terminal AI session that prepared this Drawing Filter and tell it to continue the drawing read. Do not start the request again.';
9621
9673
  }
9622
9674
  if (r.prepassReady) {
9623
9675
  return 'Next step: return to Drawing Filter, review the selected lines, then press Save filter in the top-right corner. After Save, return to the terminal AI that prepared it and tell it to continue. Do not start the drawing read again.';
9624
9676
  }
9677
+ if (r.preparationRetryable) {
9678
+ const active = r.run && (r.run.state === 'queued' || r.run.state === 'running');
9679
+ return active
9680
+ ? 'Steel Filter preparation is retrying with the attached drawings. Progress appears here.'
9681
+ : r.canRun && headlessReady()
9682
+ ? 'Next step: choose Retry preparation on this request. FloLess kept the attached drawings and will continue the same request.'
9683
+ : 'Next step: return to the same terminal AI and retry preparation for this same request, or copy the retry request here. FloLess kept the attached drawings.';
9684
+ }
9625
9685
  const start = r.canRun && headlessReady()
9626
9686
  ? 'copy this request into Claude Code, Codex, or OpenCode, or press Start'
9627
9687
  : 'copy this request into Claude Code, Codex, or OpenCode';
@@ -9631,9 +9691,12 @@
9631
9691
  /** Prefer an active checkpoint, then an initial read, while skipping terminal rows in either group. */
9632
9692
  function drawingRequestGuidanceForRequests(requests) {
9633
9693
  return [
9694
+ ...requests.filter((request) => request.status === 'pending'
9695
+ && (request.preparationState === 'blocked' || request.preparationState === 'manifest-published')),
9696
+ ...requests.filter((request) => request.status === 'pending' && request.preparationRetryable),
9634
9697
  ...requests.filter(revisionReadAwaitsUser),
9635
9698
  ...requests.filter((request) => request.status === 'pending' && isInitialDrawingRead(request)),
9636
- ].map(drawingRequestGuidance).find(Boolean) || '';
9699
+ ].filter((request, index, all) => all.indexOf(request) === index).map(drawingRequestGuidance).find(Boolean) || '';
9637
9700
  }
9638
9701
 
9639
9702
  // Escape `text`, wrapping every case-insensitive occurrence of `q` in <mark>. Splits the RAW
@@ -9879,14 +9942,16 @@
9879
9942
  const runBtn = inFlight
9880
9943
  ? `<button class="req-stop" data-id="${escapeAttr(r.id)}" data-command-id="shell.requests-stop#${escapeAttr(r.id)}" data-command-instance-label="${escapeAttr(commandInstance)}" data-tip="Stop this run" aria-label="Stop this run">■</button>`
9881
9944
  : canRunNow
9882
- ? `<button class="req-run" data-id="${escapeAttr(r.id)}" data-command-id="shell.requests-run#${escapeAttr(r.id)}" data-command-instance-label="${escapeAttr(commandInstance)}" aria-label="Start this request automatically" data-tip="${run ? 'Start it again automatically in your terminal AI' : 'Start this request automatically in your terminal AI'}">▶</button>`
9945
+ ? r.preparationRetryable
9946
+ ? `<button class="req-run" data-id="${escapeAttr(r.id)}" data-command-id="shell.requests-retry#${escapeAttr(r.id)}" data-command-instance-label="${escapeAttr(commandInstance)}" aria-label="Retry preparation" data-tip="Retry Steel Filter preparation with the attached drawings">▶</button>`
9947
+ : `<button class="req-run" data-id="${escapeAttr(r.id)}" data-command-id="shell.requests-run#${escapeAttr(r.id)}" data-command-instance-label="${escapeAttr(commandInstance)}" aria-label="Start this request automatically" data-tip="${run ? 'Start it again automatically in your terminal AI' : 'Start this request automatically in your terminal AI'}">▶</button>`
9883
9948
  : '';
9884
9949
  return `
9885
9950
  <div class="req-item" data-id="${escapeAttr(r.id)}">
9886
9951
  <div class="req-info">
9887
9952
  <div class="req-head"><span class="${badgeCls}">${label}</span> ${owner ? `<span class="req-owner">${highlightQuery(owner, normalizedRequestQuery)}</span>` : ''}${time}</div>
9888
9953
  ${r.type === 'revision-read'
9889
- ? `<div class="req-instruction req-summary">${highlightQuery(requestSummary(r), normalizedRequestQuery)}</div><details class="req-technical"${normalizedRequestQuery && instructionFor(r).toLowerCase().includes(normalizedRequestQuery.toLowerCase()) ? ' open' : ''}><summary data-command-id="shell.requests-technical#${escapeAttr(r.id)}" data-command-instance-label="${escapeAttr(commandInstance)}">Show technical instructions</summary><div class="req-technical-body">${highlightQuery(instructionFor(r), normalizedRequestQuery)}</div></details>`
9954
+ ? `<div class="req-instruction req-summary">${highlightQuery(requestSummary(r), normalizedRequestQuery)}</div><details class="req-technical"${normalizedRequestQuery && `${instructionFor(r)} ${r.preparationDiagnostic || ''}`.toLowerCase().includes(normalizedRequestQuery.toLowerCase()) ? ' open' : ''}><summary data-command-id="shell.requests-technical#${escapeAttr(r.id)}" data-command-instance-label="${escapeAttr(commandInstance)}">Show technical instructions</summary><div class="req-technical-body">${highlightQuery(`${instructionFor(r)}${r.preparationDiagnostic ? `\n\n${r.preparationDiagnostic}` : ''}`, normalizedRequestQuery)}</div></details>`
9890
9955
  : `<div class="req-instruction">${highlightQuery(instructionFor(r), normalizedRequestQuery) || 'This request has no instruction, so it can’t be handed to your terminal AI. Clear it and queue it again.'}</div>`}
9891
9956
  ${r.snapshots && r.snapshots.length ? `<div class="req-thumbs">${r.snapshots.map((sp, i) => { const pdf = /\.pdf$/i.test(String(sp)); return `<button type="button" class="req-thumb" data-id="${escapeAttr(r.id)}" data-n="${i}" aria-label="View ${pdf ? 'PDF' : 'screenshot'} ${i + 1}">${pdf ? '<span class="req-thumb-pdf">PDF</span>' : `<img src="/api/requests/${encodeURIComponent(r.id)}/snapshot/${i}" alt="">`}</button>`; }).join('')}</div>` : ''}
9892
9957
  ${runStatusHtml(run, resumeCommand, desktopHandoffs, r.id, commandInstance, ownRecoverySurface)}
@@ -9895,7 +9960,7 @@
9895
9960
  </div>
9896
9961
  <div class="req-actions">
9897
9962
  ${runBtn}
9898
- ${desktopHandoffs || resumeCommand || !requestCanCopy(r) ? '' : `<button class="req-copy" data-id="${escapeAttr(r.id)}" data-command-id="shell.requests-copy#${escapeAttr(r.id)}" data-command-instance-label="${escapeAttr(commandInstance)}" data-tip="Copy this request for your terminal AI" aria-label="Copy this request for your terminal AI">⧉</button>`}
9963
+ ${desktopHandoffs || resumeCommand || !requestCanCopy(r) ? '' : `<button class="req-copy" data-id="${escapeAttr(r.id)}" data-command-id="shell.requests-copy#${escapeAttr(r.id)}" data-command-instance-label="${escapeAttr(commandInstance)}" data-tip="${r.preparationRetryable ? 'Copy this retry request for your terminal AI' : 'Copy this request for your terminal AI'}" aria-label="${r.preparationRetryable ? 'Copy retry request' : 'Copy this request for your terminal AI'}">⧉</button>`}
9899
9964
  ${del.replace('<button class="req-del"', '<button aria-label="Clear this request" class="req-del"')}
9900
9965
  </div>
9901
9966
  </div>`;
@@ -894,6 +894,11 @@
894
894
  group: 'In the requests list', persistence: 'external', interaction: 'instant', risk: ['costs-time'], guidance: 'on-demand',
895
895
  });
896
896
 
897
+ def('shell.requests-retry', {
898
+ label: 'Retry preparation', actsOn: 'Continues the same interrupted drawing preparation for {instance} with its attached drawings',
899
+ group: 'In the requests list', persistence: 'external', interaction: 'instant', risk: ['costs-time'], guidance: 'on-demand',
900
+ });
901
+
897
902
  def('shell.requests-stop', {
898
903
  label: 'Stop this run', actsOn: 'Stops the terminal AI currently working on {instance}',
899
904
  group: 'In the requests list', persistence: 'external', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand',
@@ -2393,8 +2393,11 @@
2393
2393
  // stages until this probe produces a real lifecycle answer.
2394
2394
  if (projectContractLifecycle === 'unknown') return '';
2395
2395
  if (step === 'model') {
2396
+ if (waitingForInitial && revCardReq?.preparationState === 'blocked') return 'Steel drawing preparation needs operator repair. Restart FloLess, then open Requests and follow Technical details if it remains blocked.';
2397
+ if (waitingForInitial && revCardReq?.preparationState === 'manifest-published' && !revCardReq?.prepassReady) return 'Drawing preparation is complete and saved. Return to the same terminal AI session and tell it to continue creating the Drawing Filter.';
2396
2398
  if (waitingForInitial && revCardReq?.filterCheckpointCurrent) return 'The Drawing Filter is saved. Return to the same terminal AI session that prepared it and tell it to continue the drawing read.';
2397
2399
  if (waitingForInitial && revCardReq?.prepassReady) return 'Review the selected lines, then press Save filter. After Save, return to the terminal AI that prepared it and tell it to continue.';
2400
+ if (waitingForInitial && revCardReq?.preparationRetryable) return 'Steel Filter preparation was interrupted. Your drawings are still attached. Return to the same terminal AI and retry preparation for this same request.';
2398
2401
  if (waitingForInitial) return 'The initial drawing read is waiting for your terminal AI. The model unlocks after you review the Drawing Filter and press Save filter.';
2399
2402
  if (projectContractLifecycle === 'filter-checkpoint') return 'Attach the drawing set again in Drawing Filter to restart the read. The earlier request is no longer available to receive a saved filter.';
2400
2403
  return 'Read and save a Drawing Filter first. The model will unlock after the first drawing read.';
@@ -2469,10 +2472,16 @@
2469
2472
  : `The drawing read failed · ${revCardReq?.clearWhy || 'FloLess cannot safely release this drawing read yet.'} Open Requests for the available recovery.`)
2470
2473
  : unavailableInitial
2471
2474
  ? 'This drawing read uses a status this version of FloLess does not recognize · Open Requests for details and update FloLess before continuing.'
2475
+ : waitingForInitial && revCardReq?.preparationState === 'blocked'
2476
+ ? 'Stage 1 of 4 · Steel drawing preparation needs operator repair. Restart FloLess, then open Requests and follow Technical details if it remains blocked. Your drawings are still attached.'
2477
+ : waitingForInitial && revCardReq?.preparationState === 'manifest-published' && !revCardReq?.prepassReady
2478
+ ? 'Stage 1 of 4 · Drawing preparation is complete and saved. Return to the same terminal AI session and tell it to continue creating the Drawing Filter. Do not start or copy this request again.'
2472
2479
  : waitingForInitial && revCardReq?.filterCheckpointCurrent
2473
2480
  ? 'Stage 1 of 4 complete · The Drawing Filter is saved. Return to the same terminal AI session that prepared it and tell it to continue the drawing read. Model, Exports, and History unlock when it finishes.'
2474
2481
  : waitingForInitial && revCardReq?.prepassReady
2475
2482
  ? 'Stage 1 of 4 · Review the selected layers, line weights, and colours below. Then press Save filter in the top-right corner, return to the terminal AI that prepared it, and tell it to continue. Model, Exports, and History unlock when the read finishes.'
2483
+ : waitingForInitial && revCardReq?.preparationRetryable
2484
+ ? 'Stage 1 of 4 · Steel Filter preparation was interrupted. Your drawings are still attached. Return to the same terminal AI and retry preparation for this same request. Model, Exports, and History unlock afterward.'
2476
2485
  : waitingForInitial
2477
2486
  ? 'Stage 1 of 4 · Your initial drawing read is waiting for your terminal AI. Open Requests, copy it into Claude Code, Codex, or OpenCode, then return to review and save the Drawing Filter. Model, Exports, and History unlock afterward.'
2478
2487
  : projectContractLifecycle === 'filter-checkpoint'
@@ -6924,6 +6933,20 @@
6924
6933
 
6925
6934
  function buildPendingCard(req) {
6926
6935
  const n = (req.sourceRefs && req.sourceRefs.length) || (req.snapshots && req.snapshots.length) || 1;
6936
+ if (req.preparationState === 'blocked') {
6937
+ const dot = revEl('span', 'wrc-warn-ico', '⚠'); dot.setAttribute('aria-hidden', 'true');
6938
+ const txt = revEl('span', 'wrc-text');
6939
+ txt.appendChild(revEl('b', null, 'Steel drawing preparation needs operator repair.'));
6940
+ txt.appendChild(document.createTextNode(' FloLess could not verify that the earlier extractor stopped. Your drawings are still attached. Restart FloLess; if this remains blocked, open Requests and follow the operator repair in Technical details.'));
6941
+ return [dot, txt];
6942
+ }
6943
+ if (req.preparationState === 'manifest-published' && !req.prepassReady) {
6944
+ const dot = revEl('span', 'wrc-dot'); dot.setAttribute('aria-hidden', 'true');
6945
+ const txt = revEl('span', 'wrc-text');
6946
+ txt.appendChild(revEl('b', null, 'Drawing preparation is complete and saved.'));
6947
+ txt.appendChild(document.createTextNode(' Return to the same terminal AI session and tell it to continue creating the Drawing Filter. Do not start or copy this request again.'));
6948
+ return [dot, txt];
6949
+ }
6927
6950
  if (req.prepassReady && req.filterCheckpointCurrent) {
6928
6951
  const dot = revEl('span', 'wrc-dot'); dot.setAttribute('aria-hidden', 'true');
6929
6952
  const txt = revEl('span', 'wrc-text');
@@ -6945,6 +6968,24 @@
6945
6968
  return [dot, txt, review];
6946
6969
  }
6947
6970
  const runState = req.run && req.run.state;
6971
+ if (req.preparationRetryable) {
6972
+ const dot = revEl('span', 'wrc-warn-ico', '⚠'); dot.setAttribute('aria-hidden', 'true');
6973
+ const txt = revEl('span', 'wrc-text');
6974
+ const active = runState === 'queued' || runState === 'running';
6975
+ txt.appendChild(revEl('b', null, active ? 'Retrying Steel Filter preparation.' : 'Steel Filter preparation was interrupted.'));
6976
+ txt.appendChild(document.createTextNode(active
6977
+ ? ' FloLess is continuing this same request with the attached drawings.'
6978
+ : req.canRun
6979
+ ? ' Your drawings are still attached. Open Requests and choose Retry preparation to continue this same request.'
6980
+ : ' Your drawings are still attached. Return to the same terminal AI and retry preparation for this same request, or copy the retry request from here.'));
6981
+ if (!active && !req.canRun) {
6982
+ const copy = revEl('button', 'btn-mini', '⧉ Copy retry');
6983
+ copy.type = 'button'; copy.dataset.revcopy = ''; copy.dataset.commandId = 'shell.revision-request-copy';
6984
+ copy.setAttribute('data-tip', 'Copy the retained request to retry preparation');
6985
+ return [dot, txt, copy];
6986
+ }
6987
+ return [dot, txt];
6988
+ }
6948
6989
  if (runState === 'queued' || runState === 'running') {
6949
6990
  // The terminal AI already owns this request. Do not offer Copy here: a second handoff is not a
6950
6991
  // useful fallback while the first one is active, and the Requests window carries the real Stop.
@@ -7198,6 +7239,7 @@
7198
7239
  // paints the truth.
7199
7240
  if (revReviewState || revDiscardState) return;
7200
7241
  const cardKey = `${state}:${revCardReq ? revCardReq.id : ''}:${pending && pending.filterCheckpointCurrent ? 'filter-saved' : pending && pending.prepassReady ? 'filter-ready' : 'read-pending'}:${pending && pending.run ? pending.run.state || '' : ''}`
7242
+ + (pending ? `:${pending.preparationState || ''}:${pending.preparationRetryable === true}:${pending.canRun === true}:${pending.canCopy === true}:${pending.canClear === true}:${pending.clearWhy || ''}` : '')
7201
7243
  + (staged ? `:${staged.baseVersion}:${staged.headVersion}:${staged.stageId || ''}:${staged.canDiscardRevision === true}:${staged.discardState || ''}:${staged.discardWhy || ''}:${staged.canClear === true}:${staged.clearWhy || ''}:${unavailableRevisionReviewStages.has(staged.stageId)}` : '');
7202
7244
  if ($revisionCard._renderKey === cardKey && !$revisionCard.hidden) return; // preserve focus across the 3 s poll
7203
7245
  const restoreFocus = typeof document !== 'undefined' && $revisionCard.contains(document.activeElement);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floless/app",
3
- "version": "0.138.0",
3
+ "version": "0.138.2",
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": {