@floless/app 0.155.1 → 0.156.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.
Files changed (46) hide show
  1. package/cli-actions.mjs +376 -0
  2. package/dist/floless-server.cjs +101615 -87681
  3. package/dist/skills/floless-app-actions/SKILL.md +137 -0
  4. package/dist/skills/floless-app-approval/SKILL.md +8 -5
  5. package/dist/skills/floless-app-bridge/SKILL.md +12 -9
  6. package/dist/skills/floless-app-knowledge/SKILL.md +30 -13
  7. package/dist/skills/floless-app-new-workflow/SKILL.md +4 -4
  8. package/dist/skills/floless-app-onboarding/SKILL.md +1 -1
  9. package/dist/skills/floless-app-onboarding/references/aware-runtime.md +4 -4
  10. package/dist/skills/floless-app-queue/SKILL.md +10 -6
  11. package/dist/skills/floless-app-report-issue/SKILL.md +13 -10
  12. package/dist/skills/floless-app-rfi/SKILL.md +59 -68
  13. package/dist/skills/floless-app-routines/SKILL.md +19 -14
  14. package/dist/skills/floless-app-routines/references/routines-api.md +8 -2
  15. package/dist/skills/floless-app-workflows/SKILL.md +5 -4
  16. package/dist/web/agent-steps.js +933 -0
  17. package/dist/web/agents.js +5 -0
  18. package/dist/web/app.css +210 -5
  19. package/dist/web/app.js +1 -0
  20. package/dist/web/aware.js +584 -44
  21. package/dist/web/chat.css +9 -0
  22. package/dist/web/chat.js +195 -13
  23. package/dist/web/commands-shell.js +299 -1
  24. package/dist/web/commands-tekla-parser.js +7 -0
  25. package/dist/web/index.html +52 -1
  26. package/dist/web/instructor.js +5 -3
  27. package/dist/web/leave-guard.js +4 -2
  28. package/dist/web/left-pane.js +145 -42
  29. package/dist/web/model-editor.css +10 -0
  30. package/dist/web/model-group-navigator.js +331 -0
  31. package/dist/web/model-panel-bridge.js +63 -5
  32. package/dist/web/model-pointer-dock.js +55 -5
  33. package/dist/web/model-revit-module.js +15 -0
  34. package/dist/web/model-selection-tools.js +53 -17
  35. package/dist/web/model-tekla-selection.js +75 -2
  36. package/dist/web/model-viewport-revit-adapter.js +17 -10
  37. package/dist/web/pages.js +27 -3
  38. package/dist/web/panels.js +3 -3
  39. package/dist/web/project-reconciliation.js +357 -0
  40. package/dist/web/revit-editor.js +464 -76
  41. package/dist/web/steel-3d-view.js +1 -0
  42. package/dist/web/terminal-requests.js +541 -0
  43. package/dist/web/tool-updates.js +147 -13
  44. package/dist/web/workspaces.js +213 -12
  45. package/launch.mjs +80 -2
  46. package/package.json +1 -1
@@ -847,6 +847,10 @@
847
847
  el('button', { type: 'button', id: 'ag-schedule', 'data-command-id': 'shell.agents-schedule', text: 'Schedule…',
848
848
  'data-tip': state.dirty || !state.agent ? 'Saves your changes, then opens a new routine that runs this agent' : 'Opens a new routine that runs this agent on a schedule',
849
849
  onclick: () => void scheduleAgent() }),
850
+ // #2241: asks AI Chat to add this agent to a workflow as a step (the saved version; the UI edits no workflow).
851
+ state.agent && window.flolessAgentSteps?.enabled() ? el('button', { type: 'button', id: 'ag-add-step', 'data-command-id': 'shell.agents-add-step', text: 'Add an Agent step…',
852
+ 'data-tip': state.dirty ? 'Asks AI Chat to add the saved version of this agent to a workflow as a step. Your unsaved changes are not included.' : 'Asks AI Chat to add this agent to a workflow as a step. Nothing changes until you send the request.',
853
+ onclick: () => void window.flolessAgentSteps.draftAdd({ agentId: state.agent.agentId, agentName: state.agent.name, revision: state.agent.revision, anyWorkflow: true }) }) : null,
850
854
  el('button', { type: 'button', id: 'ag-run', class: 'primary', 'data-command-id': 'shell.agents-run', text: 'Run…',
851
855
  'data-tip': state.dirty || !state.agent ? 'Saves your changes, then shows what will start' : 'Shows exactly what will start before anything runs',
852
856
  onclick: () => void openRunSheet() }),
@@ -1085,6 +1089,7 @@
1085
1089
  if (next === state.open) { if (next && state.view === 'list') void loadAgents(); return; }
1086
1090
  state.open = next;
1087
1091
  $surface.hidden = !next;
1092
+ if (next) void window.flolessAgentSteps?.probe().then((on) => { if (on && state.open) paint(); }); // #2241: the Add an Agent step button
1088
1093
  if (next) {
1089
1094
  state.view = 'list'; void loadAgents();
1090
1095
  } else {
package/dist/web/app.css CHANGED
@@ -728,8 +728,11 @@
728
728
  .left-model-row:hover { background: var(--accent-soft); }
729
729
  .left-model-row.selected { box-shadow: inset 2px 0 0 var(--accent); background: var(--accent-soft); }
730
730
  .left-model-row .row-label { unicode-bidi: plaintext; }
731
- .left-model-row[aria-expanded]::before { content: "›"; width: 9px; flex: none; color: var(--text-dim); }
732
- .left-model-row[aria-expanded="true"]::before { transform: rotate(90deg); }
731
+ .left-model-disclosure { width: 22px; height: 22px; margin: -1px -4px -1px -3px; display: inline-grid; place-items: center;
732
+ flex: none; color: var(--text-dim); border-radius: 4px; cursor: pointer; }
733
+ .left-model-disclosure::before { content: "›"; transition: transform 120ms ease; }
734
+ .left-model-row[aria-expanded="true"] > .left-model-disclosure::before { transform: rotate(90deg); }
735
+ .left-model-disclosure:hover { color: var(--text); background: var(--accent-soft); }
733
736
  .left-model-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
734
737
  .left-model-row .row-label { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
735
738
  .left-model-row .explorer-count { margin-left: auto; flex: none; color: var(--text-dim); font: 10px var(--mono); }
@@ -1326,6 +1329,11 @@
1326
1329
  border: 1px solid var(--border-strong); border-radius: 999px;
1327
1330
  cursor: help;
1328
1331
  }
1332
+ /* #2241: an Agent step. The same accent pill as the run-time-model badge, solid (never dashed), no new colour. The text carries
1333
+ the meaning; the colour only says "this one is different". */
1334
+ .agent-card .rt-model-badge.is-agent { cursor: help; }
1335
+ .agent-card .as-attn { display: block; margin-top: 4px; font-size: 10.5px; color: var(--text-dim); }
1336
+
1329
1337
  .agent-card .footer-row {
1330
1338
  display: flex;
1331
1339
  justify-content: space-between;
@@ -1884,6 +1892,23 @@
1884
1892
  font-size:11px; line-height:1.45; }
1885
1893
  .workspace-root-error[hidden] { display:none; }
1886
1894
  .workspace-root-management { margin:12px 0; border-top:1px solid var(--border); padding-top:12px; }
1895
+ .project-reconciliation, .project-reconciliation * { scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
1896
+ .project-reconciliation ::-webkit-scrollbar { width:6px; height:6px; }
1897
+ .project-reconciliation ::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:3px; }
1898
+ .project-reconciliation-list { max-height:200px; overflow:auto; }
1899
+ .project-reconciliation-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
1900
+ .project-reconciliation-choice { display:flex; align-items:flex-start; gap:8px; margin:10px 0; font-size:11px; line-height:1.5; color:var(--text-muted); }
1901
+ .project-reconciliation-choice input { appearance:none; flex:none; width:14px; height:14px; border:1px solid var(--border-strong); border-radius:3px; background:var(--surface-2); margin-top:2px; }
1902
+ .project-reconciliation-choice input:checked { background:var(--accent); border-color:var(--accent); }
1903
+ .project-reconciliation-choice input:checked::after { content:'✓'; display:block; color:var(--bg); font-size:11px; text-align:center; line-height:12px; }
1904
+ .project-reconciliation input:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
1905
+ .project-reconciliation .project-setup-field { margin-top:10px; }
1906
+ .ws-folder-review-note { margin:0 0 12px; color:var(--text-muted); font-size:11px; }
1907
+ .ws-folder-review-note button { font:inherit; color:var(--accent); background:transparent; border:0; padding:3px 5px; cursor:pointer; }
1908
+ .ws-folder-review-note button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:3px; }
1909
+ .ws-registration-status { color:var(--warn); }
1910
+ .ws-registration-location-note { display:block; color:var(--text-muted); font-size:11px; line-height:1.45; overflow-wrap:anywhere; }
1911
+ .ws-project-location-warning { padding:8px 12px; border-bottom:1px solid var(--border); background:var(--surface-2); color:var(--text-muted); font-size:11px; line-height:1.45; }
1887
1912
  .workspace-root-management h3, .workspace-root-management h4 { margin:0 0 9px; font-size:12px; color:var(--text); }
1888
1913
  .workspace-root-management-list, .workspace-root-management-destinations { max-height:180px; overflow:auto;
1889
1914
  scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
@@ -3397,6 +3422,12 @@
3397
3422
  .tool-updates-needs-name { color: var(--text); font-size: 12px; font-weight: 600; }
3398
3423
  .tool-updates-needs-sentence { color: var(--text-muted); font-size: 11.5px; line-height: 1.4; }
3399
3424
  .tool-updates-open { flex: none; font-size: 11px; padding: 3px 9px; background: transparent; }
3425
+ .tool-updates-group > .tool-updates-open { margin: 6px 0 8px; border: 1px solid var(--accent); color: var(--accent); }
3426
+ .tool-updates-summary p { margin: 0; }
3427
+ .tool-updates-summary p + p { margin-top: 8px; color: var(--text-muted); }
3428
+ .tool-updates-body > .primary { margin-top: 12px; background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
3429
+ .tool-updates-body > .primary:hover { background: var(--accent-bright); }
3430
+ .tool-updates-body > .primary:disabled { opacity: 0.5; }
3400
3431
  /* Needs-you groups (#2180): one plain explanation per reason, the workflows listed under it. */
3401
3432
  .tool-updates-group { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-left: 3px solid var(--warn); border-radius: 6px; background: var(--surface-2); }
3402
3433
  .tool-updates-section-head + .tool-updates-group { margin-top: 0; }
@@ -3426,7 +3457,8 @@
3426
3457
  .tool-updates-result[data-outcome="not-moved"],
3427
3458
  .tool-updates-result[data-outcome="moved-needs-you"] { border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
3428
3459
  .tool-updates-result-mark { flex: none; width: 14px; text-align: center; font-weight: 700; color: var(--warn); }
3429
- .tool-updates-result[data-outcome="moved"] .tool-updates-result-mark { color: var(--ok); }
3460
+ .tool-updates-result[data-outcome="moved"] .tool-updates-result-mark,
3461
+ .tool-updates-result[data-outcome="compiled"] .tool-updates-result-mark { color: var(--ok); }
3430
3462
  .tool-updates-result-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
3431
3463
  .tool-updates-result-name { color: var(--text); font-size: 12px; font-weight: 600; }
3432
3464
  .tool-updates-result-sentence { color: var(--text); font-size: 11.5px; line-height: 1.4; }
@@ -4174,6 +4206,8 @@
4174
4206
  z-index: 200;
4175
4207
  pointer-events: none;
4176
4208
  }
4209
+ /* The Go fullscreen nudge shares this corner and sits above toasts: lift them over it so none is ever covered. */
4210
+ body:has(.fullscreen-nudge:not([hidden])) .toast-container { bottom: 190px; }
4177
4211
  .toast {
4178
4212
  background: var(--surface);
4179
4213
  border: 1px solid var(--border-strong);
@@ -4990,6 +5024,10 @@ input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offs
4990
5024
  }
4991
5025
  .report-head .modal-sub { margin-bottom: 0; }
4992
5026
  .report-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
5027
+ #report-overlay .report-latest-page { padding: 6px 12px; background: var(--surface-3); color: var(--text); }
5028
+ #report-overlay .report-latest-page:hover { border-color: var(--accent-dim); }
5029
+ #report-overlay .report-latest-page[hidden] { display: none; }
5030
+ #report-overlay .report-empty-hint { margin-top: 4px; font-size: 12px; color: var(--text-dim); }
4993
5031
  .report-actions button { padding: 6px 12px; }
4994
5032
  .report-actions button.ghost { background: var(--surface-3); color: var(--text-muted); }
4995
5033
  .report-actions button.ghost:hover { color: var(--text); border-color: var(--accent-dim); }
@@ -6054,7 +6092,7 @@ input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offs
6054
6092
  /* #wf-combo (by ID, not .wf-combo by class): the project picker below reuses the
6055
6093
  .wf-combo/.wf-popover/etc classes for visual parity and must NOT be caught by this
6056
6094
  rule — it's already hidden in Workflows mode via #ws-spine's own `hidden` attribute. */
6057
- .app.mode-workspaces #wf-combo, .app.mode-workspaces #wf-update, .app.mode-workspaces #wf-forked,
6095
+ .app.mode-workspaces #wf-combo, .app.mode-workspaces #wf-update, .app.mode-workspaces #wf-forked, .app.mode-workspaces #wf-agent-step,
6058
6096
  .app.mode-workspaces #run-state,
6059
6097
  .app.mode-workspaces #restore-btn, .app.mode-workspaces #customize-btn,
6060
6098
  .app.mode-workspaces #compile-btn, .app.mode-workspaces #sim-btn,
@@ -7652,7 +7690,7 @@ tr.hist-diff-row[hidden] { display:none; }
7652
7690
  html.mode-agents-boot .app { --right-width:0px !important; }
7653
7691
  html.mode-agents-boot .inspect, html.mode-agents-boot .pane-rail-right { display:none; }
7654
7692
  .app.mode-agents .controls > label,
7655
- .app.mode-agents #wf-combo, .app.mode-agents #wf-update, .app.mode-agents #wf-forked,
7693
+ .app.mode-agents #wf-combo, .app.mode-agents #wf-update, .app.mode-agents #wf-forked, .app.mode-agents #wf-agent-step,
7656
7694
  .app.mode-agents #run-state, .app.mode-agents #restore-btn, .app.mode-agents #customize-btn,
7657
7695
  .app.mode-agents #compile-btn, .app.mode-agents #sim-btn, .app.mode-agents #run-btn, .app.mode-agents #stop-run-btn,
7658
7696
  .app.mode-agents #ext-badge, .app.mode-agents #guide-beacon,
@@ -7871,6 +7909,24 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
7871
7909
  .hist-revision-note-meta { color: var(--text-dim); font-size: 11px; margin-bottom: 6px; }
7872
7910
  .hist-note-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
7873
7911
 
7912
+ /* #2248: requests from the terminal. The dialog reuses .modal and the chat's action card; only its list scrolls. */
7913
+ .modal.terminal-requests { width: 540px; display: flex; flex-direction: column; max-height: min(86vh, calc(100dvh - 48px)); }
7914
+ .terminal-requests-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; min-height: 0; overflow-y: auto;
7915
+ scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
7916
+ .terminal-requests-list::-webkit-scrollbar { width: 8px; }
7917
+ .terminal-requests-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
7918
+ .terminal-requests-list::-webkit-scrollbar-track { background: transparent; }
7919
+ .terminal-requests-list .ai-chat-filter-card { margin: 0; }
7920
+ .terminal-request.is-linked { outline: 2px solid var(--accent); outline-offset: 1px; }
7921
+ .terminal-request-title:focus { outline: none; }
7922
+ .terminal-request-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
7923
+ .terminal-request.is-collapsed .terminal-request-title { display: block; font-size: 12px; margin-bottom: 2px; }
7924
+ .terminal-requests-empty { margin: 0; color: var(--text-muted); font-size: 12px; }
7925
+ .terminal-requests-foot { align-items: center; }
7926
+ .terminal-requests-hint { margin-right: auto; color: var(--text-dim); font-size: 11px; }
7927
+ .toast.terminal-request-notice { pointer-events: auto; }
7928
+ @media (prefers-reduced-motion: reduce) { .modal.terminal-requests { animation: none; } }
7929
+
7874
7930
  /* ── Pages (#2262): the Pages lists and the Page viewer ─────────────────────────
7875
7931
  Same chrome as History/Exports and the report viewer — tokens only, both themes. */
7876
7932
  .ws-pages { flex:1; min-height:0; position:relative; overflow-y:auto; padding:16px 20px;
@@ -7885,6 +7941,8 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
7885
7941
  .pg-empty p { margin:0; }
7886
7942
  .pg-empty .pg-empty-title { color:var(--text); font-weight:600; margin-bottom:4px; }
7887
7943
  .pg-list { display:flex; flex-direction:column; gap:6px; max-width:880px; }
7944
+ .pg-group-label { font-size:11px; text-transform:uppercase; letter-spacing:0.08em; font-weight:600; color:var(--text-dim); margin:14px 0 6px; }
7945
+ .pg-group-label:first-child { margin-top:0; }
7888
7946
  .pg-row { display:flex; align-items:center; gap:8px; background:var(--surface-2); border:1px solid var(--border); border-radius:6px; }
7889
7947
  .pg-row-open { flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:3px;
7890
7948
  padding:9px 12px; background:transparent; border:0; border-radius:6px; text-align:left; cursor:pointer; color:var(--text); font:inherit; }
@@ -7970,3 +8028,150 @@ body:has(#page-viewer.show) #instructor .ix-parts { display:block; flex:1 1 auto
7970
8028
  .pv-stage.is-loading #pv-frame { opacity:.55; }
7971
8029
  .pv-loading { position:absolute; inset:0; display:grid; place-items:center; font-size:12.5px; color:var(--text-muted); pointer-events:none; z-index:1; }
7972
8030
  .pv-loading[hidden] { display:none; }
8031
+
8032
+
8033
+ /* ===== Agents as workflow steps (#2241, S3b): Inspect blocks, banner, header/picker marks, the canvas chooser ===== */
8034
+ .inspect-content .as-banner {
8035
+ margin: 0 0 14px; padding: 10px 12px;
8036
+ background: var(--accent-soft); border: 1px solid var(--accent-dim); border-radius: 6px;
8037
+ }
8038
+ .inspect-content .as-banner p { margin: 0 0 6px; color: var(--text); font-size: 12px; line-height: 1.5; }
8039
+ .as-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
8040
+ .as-btn {
8041
+ font: 500 12px/1.3 var(--ui); padding: 5px 10px; border-radius: 4px; cursor: pointer;
8042
+ color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong);
8043
+ }
8044
+ .as-btn:hover { border-color: var(--accent-dim); }
8045
+ .as-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
8046
+ .as-btn.primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
8047
+ .as-btn.as-link { background: transparent; border-color: transparent; color: var(--accent); padding-left: 2px; padding-right: 2px; }
8048
+ .as-btn.as-link:hover { text-decoration: underline; }
8049
+ .as-btn:focus-visible, .tb-btn.tb-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
8050
+ .inspect-content .as-standing { color: var(--text-muted); font-size: 12px; }
8051
+ .as-instructions {
8052
+ margin: 0 0 12px; padding: 10px 12px; max-height: 180px; overflow: auto; white-space: pre-wrap; word-break: break-word;
8053
+ background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 6px;
8054
+ font: 11.5px/1.6 var(--mono); color: var(--text);
8055
+ }
8056
+ .as-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 12px; }
8057
+ .as-facts dt { color: var(--text-dim); }
8058
+ .as-facts dd { margin: 0; color: var(--text); word-break: break-word; }
8059
+ .tb-btn.tb-text { width: auto; padding: 0 10px; font-size: 12px; font-weight: 500; white-space: nowrap; }
8060
+ .as-add-group { position: relative; }
8061
+ .wf-ai-pill { border-color: var(--accent-dim); background: var(--accent-soft); color: var(--accent); }
8062
+ .wf-ai-badge { color: var(--text-muted); border-color: var(--border-strong); }
8063
+ .as-popover { top: auto; bottom: calc(100% + 6px); left: 0; min-width: 260px; max-width: 360px; }
8064
+ .as-popover .wf-empty-search { text-align: left; font-style: normal; padding: 12px; }
8065
+ .as-popover .wf-option { flex-direction: row; }
8066
+ .as-empty-actions { padding: 0 12px 12px; }
8067
+
8068
+ /* ── Agent step confirmation dialog (#2241 S4). Built on the shared .modal; tokens only, themed scroll areas, both themes. ── */
8069
+ .ac-dialog { width: 540px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; }
8070
+ .ac-dialog .modal-sub { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
8071
+ .ac-body { overflow-y: auto; min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; padding-right: 2px; }
8072
+ .ac-dialog, .ac-dialog * { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
8073
+ .ac-dialog ::-webkit-scrollbar { width: 7px; height: 7px; }
8074
+ .ac-dialog ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 7px; }
8075
+ .ac-dialog ::-webkit-scrollbar-track { background: transparent; }
8076
+ .ac-step { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; }
8077
+ .ac-step-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
8078
+ .ac-step-name { font-weight: 600; color: var(--text); font-size: 13px; }
8079
+ .ac-step-rev { color: var(--text-muted); font-size: 11.5px; }
8080
+ .ac-facts { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 8px 0 0; font-size: 12px; }
8081
+ .ac-facts dt { color: var(--text-dim); }
8082
+ .ac-facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
8083
+ .ac-first { margin: 8px 0 0; color: var(--text); font-size: 12px; line-height: 1.5; border-left: 2px solid var(--border-strong); padding-left: 8px; overflow-wrap: anywhere; }
8084
+ .ac-more { margin-top: 6px; background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; }
8085
+ .ac-more:hover { text-decoration: underline; }
8086
+ .ac-more:focus-visible, .ac-pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
8087
+ .ac-pre { margin: 6px 0 0; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--text-muted); max-height: 200px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
8088
+ .ac-pre.ac-diff { max-height: 260px; white-space: pre-wrap; padding: 6px 0; }
8089
+ .ac-line { display: block; padding: 0 10px 0 0; }
8090
+ .ac-line.add { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--text); }
8091
+ .ac-line.del { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--text); }
8092
+ .ac-glyph { display: inline-block; width: 22px; text-align: center; color: var(--text-dim); user-select: none; }
8093
+ .ac-line.add .ac-glyph { color: var(--ok); }
8094
+ .ac-line.del .ac-glyph { color: var(--err); }
8095
+ .ac-rows { margin: 8px 0 0; font-size: 12px; display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; }
8096
+ .ac-rows .ac-was { color: var(--text-dim); text-decoration: line-through; }
8097
+ .ac-rows .ac-arrow { color: var(--text-dim); }
8098
+ .ac-unchanged { color: var(--text-muted); font-size: 12px; }
8099
+ .ac-warning { border-left: 2px solid var(--warn); background: var(--surface-2); color: var(--text); font-size: 12.5px; line-height: 1.5; padding: 8px 12px; border-radius: 0 6px 6px 0; margin-bottom: 12px; overflow-wrap: anywhere; }
8100
+ .ac-warning b { color: var(--warn); font-weight: 600; }
8101
+ .ac-hint { font-size: 11.5px; color: var(--text-dim); margin: 2px 0 10px; min-height: 16px; }
8102
+ .ac-hint.nudge { color: var(--warn); }
8103
+ .ac-error { border: 1px solid var(--err); border-radius: 6px; color: var(--text); font-size: 12.5px; line-height: 1.5; padding: 8px 12px; margin: 0 0 10px; }
8104
+ .ac-dialog .modal-actions button[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
8105
+ .ac-dialog .modal-actions button.primary[aria-disabled="true"]:hover { background: var(--accent); box-shadow: none; }
8106
+ .ac-dialog .modal-actions { flex: none; flex-wrap: wrap; }
8107
+ .ac-dialog .modal-actions #ac-cancel { margin-right: auto; }
8108
+ .ac-vis { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
8109
+
8110
+ /* ── Agents as workflow steps, S5 (#2241): the AI-produced label, the last run's AI steps with "Questions for you", the held-change card.
8111
+ Tokens only, themed scroll areas, both themes. ── */
8112
+ .ai-pill {
8113
+ display: inline-block; margin-left: 6px; padding: 1px 7px; vertical-align: middle; cursor: help;
8114
+ font: 600 10px/1.5 var(--ui); letter-spacing: 0.01em; white-space: nowrap;
8115
+ color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-dim); border-radius: 999px;
8116
+ }
8117
+ .as-run { margin: 0 0 8px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-2); font-size: 12px; color: var(--text); }
8118
+ .as-run[hidden] { display: none; }
8119
+ .as-run > summary { display: flex; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer; list-style: none; }
8120
+ .as-run > summary::-webkit-details-marker { display: none; }
8121
+ .as-run > summary::after { content: '▸'; margin-left: auto; color: var(--text-dim); }
8122
+ .as-run[open] > summary::after { content: '▾'; }
8123
+ .as-run > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
8124
+ .as-run-sum-text { color: var(--text); }
8125
+ .as-run > summary .ai-pill { margin-left: 0; }
8126
+ .as-run-body { padding: 0 10px 10px; max-height: 150px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
8127
+ .as-run-body::-webkit-scrollbar { width: 7px; height: 7px; }
8128
+ .as-run-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 7px; }
8129
+ .as-run-body::-webkit-scrollbar-track { background: transparent; }
8130
+ .as-run-step { margin-top: 8px; }
8131
+ .as-run-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
8132
+ .as-run-line .ai-pill { margin-left: 0; }
8133
+ .as-run-out { margin-left: auto; font-weight: 500; }
8134
+ .as-run-out.ok { color: var(--ok); }
8135
+ .as-run-out.warn { color: var(--warn); }
8136
+ .as-run-who { margin-top: 2px; color: var(--text-muted); }
8137
+ .as-needs { margin-top: 10px; padding: 8px 10px; border-left: 2px solid var(--warn); border-radius: 0 6px 6px 0; background: var(--surface); }
8138
+ .as-needs-title { font-weight: 600; color: var(--text); }
8139
+ .as-needs-group { margin-top: 6px; }
8140
+ .as-needs-kind { color: var(--text-dim); font-size: 11.5px; }
8141
+ .as-needs ul { margin: 2px 0 0; padding-left: 18px; }
8142
+ .as-needs li { margin: 2px 0; line-height: 1.5; overflow-wrap: anywhere; }
8143
+ .msg .ai-pill { margin-left: 8px; }
8144
+
8145
+ .as-gate {
8146
+ position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 120;
8147
+ width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow-y: auto; box-sizing: border-box;
8148
+ padding: 12px 14px; background: var(--surface); color: var(--text);
8149
+ border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); border-radius: 8px;
8150
+ box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); font-size: 12.5px; line-height: 1.5;
8151
+ scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
8152
+ }
8153
+ .as-gate[hidden] { display: none; }
8154
+ .as-gate:focus { outline: none; }
8155
+ .as-gate:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
8156
+ .as-gate-live b { color: var(--text); }
8157
+ .as-gate-label { margin-top: 10px; color: var(--text-dim); font-size: 11.5px; }
8158
+ .as-gate-label[hidden], .as-gate-values[hidden], .as-gate-error[hidden] { display: none; }
8159
+ .as-gate-values {
8160
+ margin: 4px 0 0; padding: 8px 10px; max-height: 160px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
8161
+ background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px;
8162
+ font: 11.5px/1.5 var(--mono); color: var(--text-muted);
8163
+ scrollbar-width: thin; scrollbar-color: var(--text-dim) transparent;
8164
+ }
8165
+ .as-gate-values::-webkit-scrollbar, .as-gate::-webkit-scrollbar { width: 7px; height: 7px; }
8166
+ .as-gate-values::-webkit-scrollbar-thumb, .as-gate::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 7px; }
8167
+ .as-gate-values::-webkit-scrollbar-track, .as-gate::-webkit-scrollbar-track { background: transparent; }
8168
+ .as-gate-values:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
8169
+ .as-gate-time { margin-top: 8px; color: var(--text-muted); }
8170
+ .as-gate-error { margin-top: 8px; padding: 6px 10px; border: 1px solid var(--err); border-radius: 6px; color: var(--text); }
8171
+ .as-gate-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
8172
+ .as-gate-actions .as-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
8173
+ .as-gate-queue { margin-top: 8px; color: var(--text-dim); font-size: 11.5px; }
8174
+ .rtn-ai { color: var(--text-muted); cursor: help; }
8175
+ .rtn-ai-q { color: var(--warn); cursor: help; }
8176
+ /* The last-run panel belongs to the open workflow's canvas: the landing, a draft view and Workspaces step it aside like the other canvas strips. */
8177
+ :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .as-run, body.mode-workspaces .as-run { display: none !important; }
package/dist/web/app.js CHANGED
@@ -372,6 +372,7 @@ function cardEl(id, ports) {
372
372
  </div>
373
373
  <div class="title">${a.title}</div>
374
374
  <div class="subtitle">${a.subtitle}</div>
375
+ ${a._aiStep ? `<div class="rt-model-badge is-agent" role="note" aria-label="${escapeAttr(a._aiStep.badge.aria)}" data-tip="${escapeAttr(a._aiStep.badge.tip)}">${escapeHtml(a._aiStep.badge.text)}</div>` : ''}
375
376
  ${a._runtimeModel ? '<div class="rt-model-badge" data-tip="This node calls a model at run time (vision.extract). Output is content-cached and sits behind an approve gate — review the extraction before any write.">⚡ calls a model at run time</div>' : ''}
376
377
  ${a._frozen ? '<div class="frozen-badge" data-tip="Frozen — its last result is pinned and Run skips this node. Right-click to unfreeze.">❄ Frozen</div>' : ''}
377
378
  <div class="blurb">${a.blurb}</div>