@floless/app 0.137.4 → 0.138.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 (47) hide show
  1. package/dist/floless-server.cjs +47618 -26808
  2. package/dist/internal-workflows/floless-rfi-gmail-send/.floless-owner.json +1 -0
  3. package/dist/internal-workflows/floless-rfi-gmail-send/floless-rfi-gmail-send.flo +32 -0
  4. package/dist/schemas/steel.model.v2.schema.json +218 -27
  5. package/dist/skills/floless-app-knowledge/SKILL.md +5 -2
  6. package/dist/skills/floless-app-rfi/SKILL.md +410 -0
  7. package/dist/skills/floless-app-routines/SKILL.md +7 -2
  8. package/dist/skills/floless-app-routines/references/routines-api.md +14 -5
  9. package/dist/skills/floless-app-steel-model/SKILL.md +34 -32
  10. package/dist/skills/floless-app-steel-takeoff/SKILL.md +498 -34
  11. package/dist/skills/floless-app-steel-takeoff/references/elevation-registration.md +6 -6
  12. package/dist/skills/floless-app-tweak-contract/SKILL.md +6 -2
  13. package/dist/templates/floless-workspace-knowledge.flo +20 -4
  14. package/dist/templates/steel-model.flo +27 -15
  15. package/dist/web/app.css +559 -131
  16. package/dist/web/app.js +216 -54
  17. package/dist/web/aware.js +982 -128
  18. package/dist/web/checkpoint-standard.js +218 -0
  19. package/dist/web/commands-filter.js +23 -0
  20. package/dist/web/commands-shell.js +237 -5
  21. package/dist/web/commands-steel.js +172 -47
  22. package/dist/web/connection-review-client.js +2 -2
  23. package/dist/web/display-units.js +243 -0
  24. package/dist/web/grid-core.js +470 -56
  25. package/dist/web/grid-display.js +344 -0
  26. package/dist/web/index.html +106 -66
  27. package/dist/web/instructor-reporter.js +5 -0
  28. package/dist/web/instructor.js +175 -33
  29. package/dist/web/json-schema-subset.js +145 -25
  30. package/dist/web/steel-3d-core.js +124 -140
  31. package/dist/web/steel-3d-view.js +352 -100
  32. package/dist/web/steel-catalog-picker.js +98 -15
  33. package/dist/web/steel-detail-refs.js +1 -1
  34. package/dist/web/steel-editor.html +6458 -915
  35. package/dist/web/steel-filter.html +404 -57
  36. package/dist/web/steel-model-adapter.js +1 -1
  37. package/dist/web/steel-model-commands.js +71 -64
  38. package/dist/web/steel-model-v2-client-validation.js +10 -3
  39. package/dist/web/steel-model-v2-commands.js +268 -76
  40. package/dist/web/steel-model-v2-projection.js +18 -17
  41. package/dist/web/steel-plan-transform.js +13 -13
  42. package/dist/web/steel-plan-view-id.js +1 -7
  43. package/dist/web/steel-read-confidence.js +454 -5
  44. package/dist/web/steel-units.js +17 -3
  45. package/dist/web/steel-view-generation.js +21 -7
  46. package/dist/web/workspaces.js +2178 -497
  47. package/package.json +4 -1
@@ -0,0 +1,218 @@
1
+ /*
2
+ * checkpoint-standard.js — the ONE boundary between a project's stored steel catalogue and the
3
+ * sentence the Drawing Filter checkpoint shows a person before they press Save.
4
+ *
5
+ * WHY THIS IS A MODULE AND NOT THREE LINES IN THE PAGE. Two reasons, both paid for elsewhere in this
6
+ * epic.
7
+ *
8
+ * 1. `web/steel-filter.html`'s Save round-trips the WHOLE contract: `save()` assigns `C.filter = F`
9
+ * and then PUTs `JSON.stringify(C)`. So anything that touches `C` on the way to the screen is a
10
+ * storage write. The obvious convenience — `C.environment = C.environment || 'US'`, to save a
11
+ * branch here — would persist `US` permanently and IMMUTABLY: with nothing stored, `US` stated and
12
+ * no project, `assertSteelEnvironmentUnchanged` returns at its `stated === undefined` check without
13
+ * firing, `owned` is undefined, and no guard throws. A user who never chose a catalogue would be
14
+ * given one, for the life of the job, by a label. This function therefore takes SCALARS and never
15
+ * receives `C`, which makes that mistake impossible rather than merely discouraged.
16
+ *
17
+ * 2. Slice 5 made eight render sites units-aware individually and spent three review rounds on it —
18
+ * 1 defect, then 5, then 3, each round finding defects in the previous round's fixes, every one the
19
+ * same class: a display value reaching somewhere it should not. `web/grid-display.js` was the answer
20
+ * there and states the rule as a direction of travel. The same rule holds here:
21
+ *
22
+ * DOWN What this returns may be assigned to `textContent` or an attribute, and NOTHING else. It
23
+ * is never parsed, never compared against stored data, never written back to the contract.
24
+ * UP Nothing. This module has no UP. It reads scalars and produces text; it is not part of any
25
+ * path that commits a value.
26
+ *
27
+ * WHAT THE SENTENCE HAS TO GET RIGHT, and it is subtler than "print the field".
28
+ *
29
+ * There are FOUR states, not two, and three of them are easy to get wrong:
30
+ *
31
+ * - The contract may not be LOADED. The checkpoint header is a sibling of the stage, so it stays on
32
+ * screen through every early return — a 204 before the first bake, a 402 when a subscription
33
+ * lapses, a 500. `environment` is `undefined` on all of them for reasons that say nothing about
34
+ * the project. Printing "not stated" there would tell a UK customer their job has no catalogue
35
+ * because their card expired. So absence of KNOWLEDGE and absence of a CHOICE are different
36
+ * inputs here, and only the second one is a fact about the project.
37
+ *
38
+ * - There may be no PROJECT. `web/aware.js` opens this page app-keyed, with no project at all, and
39
+ * `stampSteelEnvironment` returns early without a `projectId` — so that surface's contract has no
40
+ * environment permanently. It is not a gap: with no project there was never a choice to make and
41
+ * no way to make one. A warning that can never be acted on, shown forever on a routine surface, is
42
+ * the "looks actionable, isn't" trap this repo has already shipped once. It renders nothing.
43
+ *
44
+ * - The environment may be genuinely ABSENT on a real project, and this is the case the whole
45
+ * feature exists for. Two statements in this repo look contradictory about it and are not. The
46
+ * schema says "Absent means US" (`server/steel-model-v2.ts`), and `catalogProviderFor` calls the
47
+ * absence "meaningful rather than forgetful". Meanwhile `server/steel-environment.ts` says there
48
+ * is NO default as a matter of product policy and that "anything user-facing must make the choice
49
+ * explicit". Both are true of different halves: absence has a defined MACHINE meaning (resolve as
50
+ * US) and no USER meaning (nobody chose it). The sentence states both — "not stated" is the fact
51
+ * about the person, "resolves as US · AISC/ASTM" is the fact about the machine — which is why it
52
+ * satisfies the policy without contradicting the schema.
53
+ *
54
+ * NO COUNTRY, NO REGION, NO FLAG. §4.6 of the epic settled this and it is not stylistic: the reference
55
+ * job is British-standards work in Abu Dhabi. "Standard" is what varies; where the job is does not
56
+ * appear, because it is not one of the two axes.
57
+ */
58
+
59
+ import { MM, normalizeDisplayUnits } from './display-units.js';
60
+
61
+ /**
62
+ * How each catalogue names itself to a person. Not a country — the standards body.
63
+ *
64
+ * A `Map`, because a plain object indexed by an untrusted value is two different holes and this
65
+ * module's whole job is to not invent a standard. Both were found by this file's own capability-gate
66
+ * test rather than reasoned about:
67
+ *
68
+ * - `({ UK: … })[['UK']]` RESOLVES. A property key is coerced to a string, so the ARRAY `['UK']`
69
+ * reads the `UK` entry and an untrusted document field renders as a stated British standard.
70
+ * - `({ UK: … })['constructor']` returns the `Object` constructor — truthy, and not a string — so a
71
+ * document stating `environment: 'constructor'` would have printed a function into the header.
72
+ *
73
+ * `Map.get` closes both at once: it compares keys by identity rather than coercing them, and it has no
74
+ * prototype chain to inherit through. A `typeof environment === 'string'` guard stood here too until a
75
+ * mutation sweep showed it was unreachable belt-and-braces — with the `Map` in place neither mutant
76
+ * could be killed, because each survived on the other's defence. One total defence that a test can
77
+ * prove beats two that hide each other.
78
+ */
79
+ export const STANDARD_LABEL = new Map([['US', 'US · AISC/ASTM'], ['UK', 'UK · BS/EN']]);
80
+
81
+ /**
82
+ * The catalogue an unstated environment resolves against, spelled for a reader.
83
+ *
84
+ * Deliberately derived from the same table rather than written out again: if a future environment ever
85
+ * became the compatibility fallback, a second spelling here would keep saying AISC while the resolver
86
+ * said something else — and the sentence would be confidently wrong in the one state it exists to
87
+ * explain. `FALLBACK_ENVIRONMENT` in `server/steel-environment.ts` is the authority for WHICH; this is
88
+ * only how to say it.
89
+ */
90
+ export const FALLBACK_LABEL = STANDARD_LABEL.get('US');
91
+
92
+ /**
93
+ * What an absent — or unresolvable — standard is called. A constant so the editor chip and the
94
+ * checkpoint sentence cannot drift into two spellings of the same absence.
95
+ */
96
+ const UNSTATED_LABEL = 'not stated';
97
+
98
+ /**
99
+ * How a project's stated standard reads on screen, in ONE spelling, for every surface that names one.
100
+ *
101
+ * The checkpoint sentence below is built from this, and so is the steel editor's header chip — which is
102
+ * the whole reason it is exported rather than inlined. That chip used to render `'Catalogue ' + (env ||
103
+ * 'US')`, so a project that never stated a standard was told, on the screen where the modelling
104
+ * happens, that it had chosen the American one; one screen earlier the checkpoint said `not stated`
105
+ * about the same project. Two label tables, two nouns, one fact (#1154).
106
+ *
107
+ * `unstated` rides along because it is not derivable from the text without re-parsing it, and both
108
+ * callers need it: it is what colours the value amber (`.stat.unstated b`) so an absent choice does not
109
+ * read as a made one.
110
+ *
111
+ * DOWN-ONLY, like everything else here — `label` may be assigned to `textContent` and nothing else.
112
+ *
113
+ * WHAT THE CALLER STILL OWES, because this signature cannot carry it. `checkpointStandard` below takes
114
+ * `hasProject` and `contractLoaded` for a reason the header spells out at length: there are FOUR states,
115
+ * and absence of KNOWLEDGE, absence of a PROJECT and absence of a CHOICE are three different inputs of
116
+ * which only the last is a fact about the job. This function collapses that to one scalar, so a caller
117
+ * that renders `unstated: true` as a WARNING must first have established both — a loaded contract and a
118
+ * real project. The steel editor's chip does exactly that (it returns early on `!C`, and withholds the
119
+ * amber when there is no `PROJECT`); a caller that skips either shows a permanent alarm about something
120
+ * nobody could ever have chosen, which is the trap this module exists to avoid.
121
+ *
122
+ * @param {unknown} environment `C.environment` — a stated 'US'/'UK', or absent, or anything at all.
123
+ * @returns {{ label: string, unstated: boolean }}
124
+ */
125
+ export function standardLabel(environment) {
126
+ const stated = STANDARD_LABEL.get(environment);
127
+ return stated === undefined
128
+ ? { label: UNSTATED_LABEL, unstated: true }
129
+ : { label: stated, unstated: false };
130
+ }
131
+
132
+ /**
133
+ * The one sentence a reader needs that the visible line does not carry, offered SEPARATELY from the
134
+ * tooltip.
135
+ *
136
+ * `data-tip` fires on `pointerover` only and this chip is not focusable, so for a keyboard or
137
+ * screen-reader user the tooltip does not exist. The visible text carries the load-bearing half ("not
138
+ * stated — resolves as …"); the answer to the obvious next question, "then how do I change it?",
139
+ * lived only in the tooltip. The page renders this into an `.sr-only` span so that answer reaches
140
+ * everyone, without adding a permanent second sentence to a crowded header.
141
+ */
142
+ const NOTE = 'A steel standard is set once, when a project is created, and cannot be changed here.';
143
+
144
+ /**
145
+ * What the checkpoint should say, or `null` when it should say nothing.
146
+ *
147
+ * Every input is a scalar read off somewhere else — never the contract itself (see the header).
148
+ *
149
+ * @param {object} state
150
+ * @param {boolean} state.hasProject whether this page was opened for a project at all.
151
+ * @param {boolean} state.contractLoaded whether the contract read actually returned a document.
152
+ * @param {unknown} state.environment `C.environment` — a stated 'US'/'UK', or absent.
153
+ * @param {unknown} state.displayUnits the project's display-unit preference.
154
+ * @returns {null | { unstated: boolean, lead: string, emphasis: string, tail: string, tip: string, note: string }}
155
+ * `lead` + `emphasis` + `tail` is the whole sentence; `emphasis` is the span the page bolds, and
156
+ * `unstated` is what colours it. Returned in parts because the page assembles this from DOM nodes
157
+ * rather than innerHTML, which is how it already builds its other stats.
158
+ */
159
+ export function checkpointStandard({ hasProject, contractLoaded, environment, displayUnits } = {}) {
160
+ // No project, or nothing read yet: two different reasons to say nothing, and neither is a claim
161
+ // about a catalogue. Kept as one branch because the OUTPUT is identical and a reader should not have
162
+ // to wonder whether the two cases differ downstream — they do not.
163
+ if (!hasProject || !contractLoaded) return null;
164
+
165
+ // UNITS ARE TRI-STATE, and that is the whole point of this line.
166
+ //
167
+ // `null`/`undefined` here means "the preference has not been read yet, or the read failed" -- NOT
168
+ // "feet and inches". `normalizeDisplayUnits` answers an unknown with the ft-in default, which is
169
+ // right for a formatter that must produce a number and wrong for a sentence that is allowed to stay
170
+ // quiet. Routing an unknown through it made every metric project claim `Units: ft-in` for the length
171
+ // of a round trip on every single load, and forever when the fetch failed.
172
+ //
173
+ // That is the exact failure this epic exists to stop, so the module that argues "absence of
174
+ // KNOWLEDGE and absence of a CHOICE are different inputs" for the standard half cannot then guess on
175
+ // the units half. An unknown omits the clause; the standard half -- the one that matters before a
176
+ // read -- is unaffected.
177
+ const units = displayUnits == null ? null
178
+ : (normalizeDisplayUnits(displayUnits) === MM ? 'mm' : 'ft-in');
179
+ const unitsClause = units === null ? '' : ` — Units: ${units}`;
180
+ const { label, unstated } = standardLabel(environment);
181
+
182
+ // An `environment` that is neither 'US' nor 'UK' — absent, or a value from an older or hand-edited
183
+ // document — is UNSTATED rather than invented. `STANDARD_LABEL` is the only place a standard is
184
+ // named, so there is no path by which this function can print a catalogue that does not exist.
185
+ if (unstated) {
186
+ return {
187
+ unstated: true,
188
+ lead: 'Standard: ',
189
+ emphasis: label,
190
+ tail: ` — resolves as ${FALLBACK_LABEL}${unitsClause}`,
191
+ // "does not state ... this app can resolve" rather than "was never stated", because both reach
192
+ // this arm and the narrower sentence is false for one of them: a document carrying an
193
+ // environment this build has no catalogue for (`EU` today) HAS stated a standard. Telling that
194
+ // user nobody ever chose one is a wrong claim on the screen whose job is to be the last chance
195
+ // to notice. The call site logs that case so it leaves a trace as well.
196
+ note: NOTE,
197
+ tip: 'This project does not state a steel standard this app can resolve, so it resolves as '
198
+ + `${FALLBACK_LABEL} as a compatibility default — not a choice anyone made. `
199
+ + 'A standard is set once, when a project is created, and cannot be changed here.',
200
+ };
201
+ }
202
+
203
+ return {
204
+ unstated: false,
205
+ lead: 'Standard: ',
206
+ emphasis: label,
207
+ tail: unitsClause,
208
+ note: NOTE,
209
+ tip: `This project's steel designations resolve against the ${label} catalogue — `
210
+ + 'set once, when the project was created, and fixed for its life.',
211
+ };
212
+ }
213
+
214
+ /** The whole sentence as one string. For tests, and for anything that wants it unstyled. */
215
+ export function checkpointStandardText(state) {
216
+ const line = checkpointStandard(state);
217
+ return line === null ? null : line.lead + line.emphasis + line.tail;
218
+ }
@@ -44,6 +44,29 @@
44
44
  why: 'Only appears when the set has more than one sheet. Your filter is shared across sheets — switching changes what you are looking at, not what is selected.',
45
45
  });
46
46
 
47
+ def('filter.panel-collapse', {
48
+ label: 'Filters panel',
49
+ actsOn: 'Folds the Filters panel away, or brings it back',
50
+ group: 'In the Drawing Filter panel',
51
+ persistence: 'local',
52
+ interaction: 'instant',
53
+ risk: [],
54
+ guidance: 'on-demand',
55
+ why: 'It folds within this step, so the drawing gets the width. Your selections are untouched — this only changes what you can see of them.',
56
+ });
57
+
58
+ def('filter.panel-resize', {
59
+ label: 'Resize Filters panel',
60
+ actsOn: 'Resizes the Filters panel',
61
+ group: 'In the Drawing Filter panel',
62
+ key: 'Also: Arrow Left / Right · hold Shift for a larger step · Enter resets',
63
+ persistence: 'local',
64
+ interaction: 'gesture',
65
+ risk: [],
66
+ guidance: 'on-demand',
67
+ why: 'Drag the divider or use its arrow keys to give the drawing or the filters more room; press Enter or double-click to restore the default width. Your selections are untouched.',
68
+ });
69
+
47
70
  def('filter.save', {
48
71
  label: 'Save filter',
49
72
  actsOn: 'Writes the filter onto this app’s contract',
@@ -510,6 +510,28 @@
510
510
  guidance: 'on-demand',
511
511
  });
512
512
 
513
+ def('shell.project-import', {
514
+ label: 'Import project',
515
+ actsOn: 'Restores a project archive even when RFIs cannot be carried safely, leaves out RFIs whose links no longer work, and reports what was carried',
516
+ group: 'In the project list',
517
+ persistence: 'working',
518
+ interaction: 'instant',
519
+ risk: [],
520
+ guidance: 'on-demand',
521
+ why: 'The project is still restored when its RFIs cannot be carried safely; the result message says exactly what crossed.',
522
+ });
523
+
524
+ def('shell.project-duplicate', {
525
+ label: 'Duplicate project',
526
+ actsOn: 'Copies {instance}, leaves out RFIs whose links no longer work, and reports what was carried',
527
+ group: 'In the project list',
528
+ persistence: 'working',
529
+ interaction: 'instant',
530
+ risk: [],
531
+ guidance: 'on-demand',
532
+ why: 'The copy is still created when its RFIs cannot be carried safely; the result message says exactly what crossed.',
533
+ });
534
+
513
535
  /* ── the panels ─────────────────────────────────────────────────────────── */
514
536
 
515
537
  def('shell.narrative-panel', {
@@ -532,6 +554,41 @@
532
554
  guidance: 'on-demand',
533
555
  });
534
556
 
557
+ def('shell.knowledge-refs-panel', {
558
+ label: 'References panel',
559
+ actsOn: 'Folds the References column away, or brings it back',
560
+ group: 'In the project workspace',
561
+ persistence: 'local',
562
+ interaction: 'instant',
563
+ risk: [],
564
+ guidance: 'on-demand',
565
+ why: 'It folds within the Knowledge step, so the graph gets the width without disturbing the rest of the shell.',
566
+ });
567
+
568
+ def('shell.knowledge-refs-resize', {
569
+ label: 'Resize References panel',
570
+ actsOn: 'Resizes the References column',
571
+ group: 'In the project workspace',
572
+ key: 'Also: Arrow Left / Right · hold Shift for a larger step · Enter resets',
573
+ persistence: 'local',
574
+ interaction: 'gesture',
575
+ risk: [],
576
+ guidance: 'on-demand',
577
+ why: 'Drag the divider or use its arrow keys to give the References column more or less room beside the graph; press Enter or double-click to restore the default width.',
578
+ });
579
+
580
+ def('shell.resize-panel', {
581
+ label: 'Resize panel',
582
+ actsOn: 'Resizes the {instance} panel',
583
+ group: 'At the edge of the Narrative or Inspect panel',
584
+ key: 'Also: Arrow Left / Right · hold Shift for a larger step · Enter resets',
585
+ persistence: 'local',
586
+ interaction: 'gesture',
587
+ risk: [],
588
+ guidance: 'on-demand',
589
+ why: 'Drag the divider or use its arrow keys to resize the panel; press Enter or double-click to restore the default width.',
590
+ });
591
+
535
592
  def('shell.inspect-tab', {
536
593
  label: 'Inspect tab',
537
594
  actsOn: 'Shows this node’s {instance}',
@@ -611,6 +668,67 @@
611
668
  why: 'The steps run left to right — what the project knows, what it was drawn from, the model, what comes out, and what happened.',
612
669
  });
613
670
 
671
+ def('shell.export-run', {
672
+ label: 'Produce an export',
673
+ // "Produces \"{instance}\"", not "Writes the {instance}": the instance is the card's VERB
674
+ // ("Export IFC", "Render image"), so "Writes the Export IFC for the approved model" is what the
675
+ // first cut narrated. Quoting it and using a verb that takes a quoted object keeps the sentence
676
+ // grammatical whatever the card is called, without inventing a second label to maintain.
677
+ actsOn: 'Produces "{instance}" from the approved model as an external file',
678
+ group: 'In the project workspace',
679
+ // `external`, not `approved`: what this writes lands OUTSIDE the contract - a file in the
680
+ // project's exports folder. Host sends use the dedicated destructive command entries below.
681
+ persistence: 'external',
682
+ interaction: 'instant',
683
+ risk: [],
684
+ guidance: 'on-demand',
685
+ why: 'Reads the approved model and produces a file without changing the project model. IFC and render exports build every member they can and report any omissions on the card.',
686
+ });
687
+
688
+ def('shell.host-send-start', {
689
+ label: 'Send to a CAD application',
690
+ actsOn: 'Reviews the approved model, then sends it to the CAD applications you choose',
691
+ group: 'In the project workspace',
692
+ persistence: 'external',
693
+ interaction: 'dialog',
694
+ risk: ['destructive', 'costs-time'],
695
+ guidance: 'on-demand',
696
+ why: 'A whole-model send can replace source-owned parts in each open CAD model. FloLess first shows every member it cannot build and asks before contacting any chosen application.',
697
+ });
698
+
699
+ def('shell.workflow-host-send', {
700
+ label: 'Send to a CAD application',
701
+ actsOn: 'Reviews this workflow model, then sends its buildable members to {instance}',
702
+ group: 'On the workflow canvas',
703
+ persistence: 'external',
704
+ interaction: 'dialog',
705
+ risk: ['destructive', 'costs-time'],
706
+ guidance: 'on-demand',
707
+ why: 'A whole-model send can replace source-owned parts in the open CAD model. FloLess first shows every member it cannot build and asks before contacting the application.',
708
+ });
709
+
710
+ def('shell.export-open', {
711
+ label: 'Open exported file',
712
+ actsOn: 'Opens the exported {instance} in whichever application the system uses for it',
713
+ group: 'In the project workspace',
714
+ persistence: 'none',
715
+ interaction: 'instant',
716
+ risk: [],
717
+ guidance: 'on-demand',
718
+ why: 'Reading a file that is already on disk; nothing about the project changes.',
719
+ });
720
+
721
+ def('shell.export-reveal', {
722
+ label: 'Reveal exported file',
723
+ actsOn: 'Shows the exported {instance} in its folder',
724
+ group: 'In the project workspace',
725
+ persistence: 'none',
726
+ interaction: 'instant',
727
+ risk: [],
728
+ guidance: 'on-demand',
729
+ why: 'Finds the file on disk rather than opening it \u2014 useful when you want to copy it, or when a bill is still in the units the project has since switched away from.',
730
+ });
731
+
614
732
  def('shell.attach-revision', {
615
733
  label: 'Attach a revision',
616
734
  actsOn: 'Adds a revised drawing set to this project',
@@ -746,13 +864,28 @@
746
864
  });
747
865
 
748
866
  def('shell.ai-answers-tab', {
749
- label: 'AI answers', actsOn: 'Shows durable read-only answers for the visible workflow or project', group: 'In the Narrative panel',
867
+ label: 'AI answers', actsOn: 'Shows pending terminal AI work and durable read-only answers for the visible workflow or project', group: 'In the Narrative panel',
750
868
  persistence: 'none', interaction: 'mode', risk: [], guidance: 'on-demand',
751
- why: 'An answer outlives the run that wrote it, so a question asked once stays readable here instead of scrolling away in the terminal.',
869
+ why: 'A question appears here as soon as work starts, then its answer stays readable after the headless run finishes instead of scrolling away in the terminal.',
870
+ });
871
+
872
+ def('shell.answer-session-open', {
873
+ label: 'Continue in the desktop app', actsOn: 'Opens {instance} in the original desktop AI app',
874
+ group: 'On a saved AI session', persistence: 'external', interaction: 'instant', risk: ['costs-time'], guidance: 'on-demand',
875
+ });
876
+
877
+ def('shell.answer-session-open-again', {
878
+ label: 'Open this session again', actsOn: 'Asks Windows to reopen {instance}',
879
+ group: 'On a saved AI session', persistence: 'external', interaction: 'instant', risk: ['costs-time'], guidance: 'on-demand',
880
+ });
881
+
882
+ def('shell.answer-session-retry-uncertain', {
883
+ label: 'Try opening this session again', actsOn: 'Confirms and retries opening {instance} after an uncertain Windows handoff',
884
+ group: 'On a saved AI session', persistence: 'external', interaction: 'dialog', risk: ['costs-time'], guidance: 'on-demand',
752
885
  });
753
886
 
754
887
  def('shell.requests-open', {
755
- label: 'Open Requests', actsOn: 'Opens the requests waiting for your terminal AI',
888
+ label: 'Open Requests', actsOn: 'Opens queued work and AI answer history, including sessions that can be continued',
756
889
  group: 'In the footer', persistence: 'none', interaction: 'dialog', risk: [], guidance: 'on-demand',
757
890
  });
758
891
 
@@ -877,6 +1010,17 @@
877
1010
  why: 'AWARE is the runtime your workflows execute on. It reinstalls in place — nothing to relaunch.',
878
1011
  });
879
1012
 
1013
+ def('shell.aware-bridge-repair', {
1014
+ label: 'Repair installed bridges',
1015
+ actsOn: 'Opens the repair dialog for installed host bridges that do not match the current AWARE runtime',
1016
+ group: 'In the footer',
1017
+ persistence: 'external',
1018
+ interaction: 'dialog',
1019
+ risk: ['costs-time'],
1020
+ guidance: 'on-demand',
1021
+ why: 'FloLess blocks a bridge whose version does not match the AWARE runtime because it cannot safely run workflows.',
1022
+ });
1023
+
880
1024
  def('shell.app-update', {
881
1025
  label: 'Update FloLess',
882
1026
  actsOn: 'Installs a newer version of FloLess',
@@ -979,6 +1123,36 @@
979
1123
  guidance: 'on-demand',
980
1124
  });
981
1125
 
1126
+ def('shell.headless-runs-toggle', {
1127
+ label: 'Headless run settings',
1128
+ actsOn: 'Shows or hides the terminal AI and folder settings for queued requests',
1129
+ group: 'In the Integrations dialog',
1130
+ persistence: 'none',
1131
+ interaction: 'instant',
1132
+ risk: [],
1133
+ guidance: 'on-demand',
1134
+ });
1135
+
1136
+ def('shell.headless-runtime', {
1137
+ label: 'Use terminal AI',
1138
+ actsOn: 'Makes {instance} the default terminal AI for queued requests',
1139
+ group: 'In the Integrations dialog',
1140
+ persistence: 'local',
1141
+ interaction: 'instant',
1142
+ risk: [],
1143
+ guidance: 'on-demand',
1144
+ });
1145
+
1146
+ def('shell.headless-folder', {
1147
+ label: 'Choose headless run folder',
1148
+ actsOn: 'Opens the folder setting used when queued requests start on this machine',
1149
+ group: 'In the Integrations dialog',
1150
+ persistence: 'local',
1151
+ interaction: 'dialog',
1152
+ risk: [],
1153
+ guidance: 'on-demand',
1154
+ });
1155
+
982
1156
  /* ── updates ────────────────────────────────────────────────────────────── */
983
1157
 
984
1158
  def('shell.aware-update-apply', {
@@ -1101,14 +1275,37 @@
1101
1275
  guidance: 'on-demand',
1102
1276
  });
1103
1277
 
1278
+ def('shell.host-send-continue', {
1279
+ label: 'Continue',
1280
+ actsOn: 'Sends the reviewed buildable members to {instance}',
1281
+ group: 'In the CAD send review',
1282
+ persistence: 'external',
1283
+ interaction: 'instant',
1284
+ risk: ['destructive', 'costs-time'],
1285
+ guidance: 'on-demand',
1286
+ why: 'This confirmation is short-lived and bound to the exact model, destinations and omission list on screen. If any of them change, FloLess stops and asks for a fresh review.',
1287
+ });
1288
+
1289
+ def('shell.host-bake-omissions', {
1290
+ label: 'Members left out',
1291
+ actsOn: 'Lists the members that cannot be sent and the reason for each omission',
1292
+ group: 'In the CAD send review',
1293
+ persistence: 'none',
1294
+ interaction: 'instant',
1295
+ risk: [],
1296
+ guidance: 'on-demand',
1297
+ why: 'The list comes from the exact server-built model bound to this short-lived review. Continue authorizes only that model and omission set.',
1298
+ });
1299
+
1104
1300
  def('shell.revision-confirm', {
1105
- label: 'Accept the revision',
1106
- actsOn: 'Takes the revised drawing set into the project',
1301
+ label: 'Apply selected',
1302
+ actsOn: 'Applies the selected drawing changes and any unanswered-question decision shown in this review to a new project version',
1107
1303
  group: 'In the FloLess dialogs',
1108
1304
  persistence: 'working',
1109
1305
  interaction: 'instant',
1110
1306
  risk: [],
1111
1307
  guidance: 'on-demand',
1308
+ why: 'When an unanswered-question decision is part of this review, its count appears above the changes. After Apply, FloLess reports which RFI records were created or reused, which selected questions left the final report, and which new final questions were not asked or filed.',
1112
1309
  });
1113
1310
 
1114
1311
  def('shell.revision-discard-confirm', {
@@ -1461,6 +1658,17 @@
1461
1658
  guidance: 'on-demand',
1462
1659
  });
1463
1660
 
1661
+ def('shell.routine-run', {
1662
+ label: 'Run now',
1663
+ actsOn: 'Runs {instance} right away, ahead of its schedule',
1664
+ group: 'In the Routines dialog',
1665
+ persistence: 'external', // reaches the live host, exactly like ▶ Run workflow
1666
+ interaction: 'instant',
1667
+ risk: ['costs-time'],
1668
+ guidance: 'on-demand',
1669
+ why: 'Greyed out while that routine is already running: the run in progress is the routine doing its job, so a second start is refused rather than queued behind it.',
1670
+ });
1671
+
1464
1672
  def('shell.routine-delete', {
1465
1673
  label: 'Delete the routine',
1466
1674
  actsOn: 'Removes the routine for good',
@@ -1471,6 +1679,30 @@
1471
1679
  guidance: 'on-demand',
1472
1680
  });
1473
1681
 
1682
+ /* ── the knowledge a workflow was built from ──────────────────────── */
1683
+
1684
+ def('shell.kb-citation', {
1685
+ label: 'Open the cited page',
1686
+ actsOn: 'Opens {instance} in the Knowledge Base, as it was when this workflow was built',
1687
+ group: 'In the Informed by row',
1688
+ persistence: 'none', // reading provenance changes nothing
1689
+ interaction: 'instant',
1690
+ risk: [],
1691
+ guidance: 'on-demand',
1692
+ why: 'Leaves Workflows for the Knowledge Base, and opens the version this workflow was built from — so what you read is what the workflow read. If the Knowledge Base has moved on since, that is an older version and the page says so; if it has not, it is simply the current page.',
1693
+ });
1694
+
1695
+ def('shell.kb-open-current', {
1696
+ label: 'Open the current version',
1697
+ actsOn: 'Opens this page as the Knowledge Base has it now',
1698
+ group: 'In the Knowledge Base viewer',
1699
+ persistence: 'none',
1700
+ interaction: 'instant',
1701
+ risk: [],
1702
+ guidance: 'on-demand',
1703
+ why: 'Offered only when the version a workflow cited is no longer kept. Reading today’s page instead is a choice you make, not a substitution made for you — which is why it is a button and not a silent fallback.',
1704
+ });
1705
+
1474
1706
  /* ── reporting an issue ─────────────────────────────────────────────────── */
1475
1707
 
1476
1708
  def('shell.issue-category', {