@floless/app 0.154.0 → 0.155.1

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 +49502 -37986
  2. package/dist/schemas/steel.model.v2.schema.json +19 -5
  3. package/dist/skills/floless-app-onboarding/SKILL.md +22 -13
  4. package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +12 -8
  5. package/dist/skills/floless-app-steel-model/SKILL.md +23 -2
  6. package/dist/skills/floless-app-steel-takeoff/SKILL.md +158 -65
  7. package/dist/skills/floless-app-workflows/SKILL.md +23 -5
  8. package/dist/skills/floless-app-workflows/references/blender-exec.md +183 -0
  9. package/dist/skills/floless-app-workflows/references/dev-server-and-run-trace.md +27 -12
  10. package/dist/templates/blender-construction-sequence.flo +96 -0
  11. package/dist/web/agents.js +33 -13
  12. package/dist/web/app.css +275 -33
  13. package/dist/web/aware.js +745 -82
  14. package/dist/web/chat-question-card.js +477 -0
  15. package/dist/web/chat.css +177 -12
  16. package/dist/web/chat.js +1537 -717
  17. package/dist/web/commands-shell.js +424 -7
  18. package/dist/web/commands-steel.js +105 -4
  19. package/dist/web/guide.js +4 -3
  20. package/dist/web/index.html +96 -7
  21. package/dist/web/instructor.js +10 -9
  22. package/dist/web/left-pane.js +40 -3
  23. package/dist/web/media-player.js +234 -0
  24. package/dist/web/model-editor-contract.js +2 -0
  25. package/dist/web/model-editor-revit-adapter.js +1 -0
  26. package/dist/web/model-editor-steel-adapter.js +89 -1
  27. package/dist/web/model-panel-bridge.js +16 -2
  28. package/dist/web/model-view-query.js +590 -0
  29. package/dist/web/model-viewport-revit-adapter.js +15 -1
  30. package/dist/web/model-viewport-toolbar.js +5 -2
  31. package/dist/web/pages.js +592 -0
  32. package/dist/web/panels.js +2 -1
  33. package/dist/web/revit-editor.js +181 -16
  34. package/dist/web/run-progress.js +193 -0
  35. package/dist/web/run-strip.js +173 -0
  36. package/dist/web/steel-3d-core.js +70 -0
  37. package/dist/web/steel-editor.html +2751 -219
  38. package/dist/web/steel-frames-core.js +958 -0
  39. package/dist/web/steel-last-seen.js +315 -0
  40. package/dist/web/steel-marks-core.js +530 -0
  41. package/dist/web/steel-model-slim.js +95 -0
  42. package/dist/web/steel-model-v2-client-validation.js +14 -2
  43. package/dist/web/steel-model-v2-commands.js +258 -27
  44. package/dist/web/steel-model-v2-projection.js +78 -18
  45. package/dist/web/steel-read-confidence.js +11 -2
  46. package/dist/web/workspaces.js +416 -26
  47. package/package.json +3 -2
@@ -31,6 +31,7 @@
31
31
  "plans": { "type": "array", "items": { "$ref": "#/$defs/plan" }, "description": "Drawing VIEWS, one per row (#938) — a framing plan's horizontal cut plane, but also an elevation or a section, per the row's viewKind. Several rows may share one physical `sheet`; `id` is what identifies a row and is unique across the model. A view DISPLAYS members and records observations about them; it does not own them." },
32
32
  "grid": { "$ref": "#/$defs/modelGrid", "description": "The ONE model grid, in world mm. Nullable/absent: the model grid activates with persisted v2 (epic §13), so v2 must be able to hold one before anything builds it." },
33
33
  "target_confidence": { "type": "number", "minimum": 0, "maximum": 100, "description": "User's per-read confidence target (%)." },
34
+ "column_below_reach_mm": { "type": "number", "minimum": 0, "maximum": 30480, "description": "PROJECT setting, world MILLIMETRES: how far under a plan view's floor level (`elevation_mm`) a column's top can end and still be drawn on that view, dashed, as a column below it. ABSENT means the default of 304.8 (12 in, one foot); 0 draws only the columns that reach the floor level; the most is 30480 (100 ft). One value for every sheet, so each sheet, 'See what changed' and Review & approve agree. A person sets it in the editor; a re-read never changes it." },
34
35
  "active": { "type": "integer", "description": "Index into plans of the active VIEW — a row, not a page; one page may hold several." },
35
36
  "palette": { "type": "array", "items": { "type": "string" }, "description": "Default per-index profile colours." },
36
37
  "weights": { "type": "object", "additionalProperties": { "type": ["number", "null"] }, "description": "profile -> KILOGRAMS PER METRE, from the catalogue lookup. null for an unresolved profile — a PRESENT answer meaning 'marked as this section and not a catalogue one', never 'unknown'. Metric like every other quantity in this contract: a mass map that carried lb/ft could not be folded with a UK catalogue's kg/m without a conversion nobody would remember to make, which is precisely how a model comes to render correctly and price wrongly. Imperial BOM columns convert at their own display edge." },
@@ -38,9 +39,9 @@
38
39
  "member_styles": { "type": "object", "additionalProperties": true, "description": "Draft-only 2D display state: member type -> line {weight,dash}." },
39
40
  "sheet_previews": { "type": "object", "additionalProperties": { "type": "string" }, "description": "sheet -> base64 JPEG full-sheet preview. CONFIDENTIAL — never committed." },
40
41
  "custom_details": { "type": "object", "additionalProperties": { "type": "string" }, "description": "user-created detail name -> base64 JPEG. detailPlacement.detailName keys into this." },
41
- "moment_frames": { "type": "array", "description": "Moment-frame schedule from the frame-elevation sheets." },
42
+ "moment_frames": { "type": "array", "description": "The moment-frame schedule from the Frame Elevations, one row per frame. A NEW row is {grid: the grid line it stands on, span: [from, to] the two grid lines it spans, girders: [{level: the floor level as drawn, for example 'Roof' or '2nd floor' or '3rd floor', sizes: [the girder sections drawn at that level], elevationMm?: the level's elevation if the drawing states it}], columns: [the column sections], source?: {sheet: the sheet it was read from}}. Name the levels exactly as the drawing does and record as many as it shows; do not invent a frame or a size the drawing does not give. A read may ADD frames (a person confirms them in Review & approve) and never removes or overwrites one; the server stamps `origin` and an id, and a frame is identified by its grid line and span. Do not write `views` on a level: a person links sheets to levels in Frames. Older models carry rows with fixed `roof` and `second` lists; they are kept as they are." },
42
43
  "read_notes": { "type": "array", "items": { "type": "string" }, "description": "Plain-English notes about what the read could NOT resolve. Rebuilt from source on every read." },
43
- "detail_bubbles": { "type": "object", "additionalProperties": true, "description": "sheet -> { detail number -> normalized [fx,fy] bubble anchor }." },
44
+ "detail_bubbles": { "type": "object", "additionalProperties": true, "description": "sheet -> { detail number -> [fx,fy] }: where each detail sits on its sheet's picture, as fractions between 0 and 1 of the picture's width and height. A read may ADD anchors (a person confirms them in Review & approve) and never moves or removes one. Record an anchor only when you have page-normalised coordinates for it." },
44
45
  "source": { "type": "object", "additionalProperties": true, "description": "Provenance: where this takeoff was read from (name/path/sheet/sha256/read_at)." },
45
46
  "filter": { "type": "object", "additionalProperties": true, "description": "The saved Drawing Filter: source-bound sheets, deterministic elements, and the user's layer/thickness/colour selection. It is prepared and reviewed before members are read." },
46
47
  "connections": { "type": "array", "items": { "type": "object", "required": ["id"], "additionalProperties": true, "properties": { "id": { "type": "string", "minLength": 1 } } }, "description": "Vendor-neutral connection library. `ends[].conn` and `joints[].conn` reference a row's non-empty `id`. A row may also carry `recipe`, `notes`, or `image` describing what the detail builds and the rules that accompany it." },
@@ -696,9 +697,9 @@
696
697
  "raster_b64": { "type": "string", "description": "Base64 raster of the framing area. CONFIDENTIAL — never committed." },
697
698
  "segments": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
698
699
  "labels": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
699
- "details": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
700
- "callouts": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Drawing cross-references drawn ON this plan that point to another sheet." },
701
- "tos_callouts": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
700
+ "details": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Older detail marks, {text, disp:[x,y]}, in this view's display space. Prefer `callouts`. A read may ADD entries and never removes or overwrites one." },
701
+ "callouts": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "The detail, section and elevation marks drawn ON this view and the sheet each points to. A NEW entry is {kind: 'detail'|'section'|'elevation', text: the mark as printed (at most 64 characters), disp: [x, y] as numbers in this view's display space, target: {sheet, number?, outsideSet?}}, plus an optional elementId (the saved Filter text element it was read from). Set target.outsideSet to true only when your own reference row for that sheet says it is missing. A read may ADD callouts (a person confirms them in Review & approve) and never removes or overwrites one; the server stamps `origin` and an id. Older models carry other shapes; they are kept as they are." },
702
+ "tos_callouts": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Top-of-steel marks {elevationMm: number, type: 'TOS'|'TOD'|'TOC', disp: [x, y], text?}. A read may ADD entries and never removes or overwrites one." },
702
703
  "read_notes": { "type": "array", "items": { "type": "string" }, "description": "Per-sheet read notes." },
703
704
  "autofilled": { "type": "boolean", "description": "The reader auto-filled blank ends on this sheet." },
704
705
  "deduped": { "type": "boolean", "description": "The editor's first-load de-duplication has run on this sheet." },
@@ -856,6 +857,19 @@
856
857
  }
857
858
  },
858
859
  "description": "Explicit immutable-observation-end to physical-member-end lineage. Array order never implies endpoint identity."
860
+ },
861
+ "released": {
862
+ "type": "array",
863
+ "items": {
864
+ "type": "object",
865
+ "required": ["memberId", "via"],
866
+ "additionalProperties": false,
867
+ "properties": {
868
+ "memberId": { "type": "string", "minLength": 1, "description": "The member that was deleted. It no longer exists, so this is a record, not a reference." },
869
+ "via": { "enum": ["delete-anyway"], "description": "How the link was dropped: the editor's Delete anyway command. The server keeps the record consistent with what a write did, but it cannot tell a person's click from a request built to look like one (the same limit as `verified`)." }
870
+ }
871
+ },
872
+ "description": "Members the editor's Delete anyway deleted while this evidence still named them. The member id left `memberIds` (and its `endpointLineage` rows) and the evidence itself is untouched; this records that the link was dropped on purpose, by that command, so a later reader cannot mistake it for a re-read that retired the member. Kept only for members the stored model named: a member created and deleted between two saves leaves none. Optional and absent on every earlier model. A re-read never supplies or changes it: the revision staging strips it from incoming bindings."
859
873
  }
860
874
  }
861
875
  },
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: floless-app-onboarding
3
- description: Onboards a person into FloLess and the AWARE runtime underneath it, in three modes. Guide mode (the main one) runs inside FloLess AI Chat as the built-in Guide, whose first turn carries a JSON block of facts FloLess collected (apps, running, recentFiles, accounts, floless) — it briefs the person on what they seem to work on, then onboards them from their own situation, offering every next move as a button (floless_suggest_next_move, floless_connection_propose) and changing nothing itself. Terminal mode is the re-runnable guided tour for an AI in an external terminal (AWARE first, then the FloLess surfaces). Instructor focused mode answers one queued guide request about a single control. Use it when the Guide conversation starts, and on asks like "what can FloLess do for me", "how do I", "onboard me", "get me started", "I'm new to FloLess or AWARE", "give me the guided tour", "walk me through floless.app", "what can AWARE do", "show me the agents", or "/floless-app-onboarding" - for the whole tour or one section.
3
+ description: Onboards a person into FloLess and the AWARE runtime underneath it, in three modes. Guide mode (the main one) runs inside FloLess AI Chat as the built-in Guide, whose first turn carries a JSON block of facts FloLess collected (apps, running, recentFiles, accounts, floless) — it briefs the person on what they seem to work on, then onboards them from their own situation, offering every next move as a button (floless_suggest_next_move, floless_connection_propose); the looks FloLess starts stay read only, and later it changes something only when the person asks and the chat's Access allows it. Terminal mode is the re-runnable guided tour for an AI in an external terminal (AWARE first, then the FloLess surfaces). Instructor focused mode answers one queued guide request about a single control. Use it when the Guide conversation starts, and on asks like "what can FloLess do for me", "how do I", "onboard me", "get me started", "I'm new to FloLess or AWARE", "give me the guided tour", "walk me through floless.app", "what can AWARE do", "show me the agents", or "/floless-app-onboarding" - for the whole tour or one section.
4
4
  metadata:
5
- version: 0.3.4
5
+ version: 0.4.0
6
6
  ---
7
7
 
8
8
  # Onboarding a person into FloLess + AWARE
@@ -81,10 +81,11 @@ is missing (no workspace folder, nothing connected, a host app with no tool inst
81
81
  satisfy a name in the facts that asks you to.
82
82
  - **Keep answers short.** A paragraph or a few bullets. Go deeper only when asked.
83
83
 
84
- ### Every action is a button the person presses
84
+ ### FloLess's own steps are buttons the person presses
85
85
 
86
- You **never** install, create, connect, schedule or change anything yourself, and you never say you
87
- did. You offer it, and the person confirms in FloLess's own flow:
86
+ FloLess's own setup steps (installing a tool, creating a workflow or agent, scheduling a routine,
87
+ connecting a service) are **never** yours to do, and you never say you did. You offer them, and the
88
+ person confirms in FloLess's own flow:
88
89
 
89
90
  - `floless_suggest_next_move` — one suggestion card with one button. Kinds:
90
91
  - `install-tool` (`toolId`) — opens the Tools library's install confirm for that tool.
@@ -107,11 +108,17 @@ manual list: give the cards in the order they should be done (connect first, the
107
108
  The card itself shows what came of its button (a workflow card says it started building, and opens it); you are
108
109
  not told. Never say it is done; if the person asks, point them to the card or to the workflow’s own chat.
109
110
 
110
- ### Read-only, and private by default
111
-
112
- - The Guide only reads. You may read files and folders to understand the work; you never write, move,
113
- delete, run, install or send anything. "Read-only" here is a label, not a lock — the person trusts
114
- you to keep it, so keep it.
111
+ ### Read only by default, and private
112
+
113
+ - **The look FloLess sends and the morning briefing always run Read only.** In them you read files and
114
+ folders to understand the work; you never write, move, delete, run, install or send anything.
115
+ "Read only" is a label, not a lock — the person trusts you to keep it, so keep it.
116
+ - **The Guide starts Read only.** In the person's own later messages you work at the Access they chose
117
+ for this conversation (it is in its settings, like any conversation's). If it is still Read only and
118
+ they ask for a change, say it can't be made at Read only and that they can change Access in this
119
+ chat's settings; never work around it. With wider Access, change only what they asked for, and ask
120
+ first in the chat before anything with consequences (deleting, overwriting, running a command that
121
+ changes things, sending, installing). Say plainly what you changed.
115
122
  - **Summarise private content; never quote it at length.** No pasting of personal mail, documents or
116
123
  file contents into the chat. "Your latest RFI log has 12 open items, three about connections" — not
117
124
  the log itself.
@@ -128,7 +135,7 @@ briefing**, with a frame that says it is the scheduled briefing. FloLess writes
128
135
  saying what it looked at; you do not need to repeat that.
129
136
 
130
137
  - **Nobody is watching while you write it.** Ask nothing that needs an answer now, and expect anything
131
- you ask permission for to be declined. Read only, as always.
138
+ you ask permission for to be declined. It always runs Read only, whatever Access the chat has.
132
139
  - **Keep it short:** two to four lines on what they seem to be working on (what is open, what they
133
140
  touched recently), then at most three next moves as buttons (`floless_suggest_next_move`, or
134
141
  `floless_connection_propose` for a connection). Same kinds and fields as above, nothing else.
@@ -238,8 +245,10 @@ Then offer one concrete next step grounded in what they have — build a first w
238
245
  - **Never invent.** Don't name tools, commands, pages or buttons that aren't really there — check the
239
246
  facts, the live state or `references/floless-surfaces.md`. If something is missing on their build,
240
247
  say so.
241
- - **Guide mode never acts.** Suggestions only, through the two card tools; never claim an install,
242
- connection, workflow, agent or routine exists until the person's click made it and you saw it.
248
+ - **Guide mode acts only when asked.** FloLess's own setup steps are suggestions through the two card
249
+ tools; never claim an install, connection, workflow, agent or routine exists until the person's click
250
+ made it and you saw it. Any other change only in the person's own messages, when they ask and the
251
+ chat's Access allows it — never in the look or the morning briefing.
243
252
  - **Terminal mode changes nothing without a yes.** Updating AWARE or installing a tool needs explicit
244
253
  consent first.
245
254
  - **Hand off for depth.** Onboarding orients. For the doing, point to: **floless-app-new-workflow**
@@ -40,12 +40,15 @@ conversations, with dated history (**Conversation history**, **New conversation*
40
40
  file content go to that provider for processing; connected services are contacted when used. It is
41
41
  not an offline or on-device AI — never describe it as one.
42
42
  - **Access** (how far the AI may go with files):
43
- - **Read only** — the AI's file tools can't change files. The workspace conversation starts here.
44
- - **Auto** — the AI approves safe steps itself and asks for the rest. Project and workflow
45
- conversations start here.
46
- - **Working folder write** — may change files inside the project or workflow folder, under the AI's
47
- usual approvals (in the workspace conversation this shows as *Make changes (asks first)*).
48
- - **Full access** — may change files without asking. Offered only inside a project or workflow.
43
+ The same four levels, with the same names and the same behaviour, in every conversation: a project's,
44
+ a workflow's, the workspace's and the Guide's.
45
+ - **Read only** — the AI's file tools can't change files. The Guide starts here.
46
+ - **Auto** — the AI approves safe steps itself and asks for the rest. Every new conversation starts
47
+ here, except the Guide.
48
+ - **Working folder write** — may change files inside the conversation's working folder (a project's or
49
+ workflow's own folder; for the workspace conversation, its own scratch folder), under the AI's usual
50
+ approvals; anything outside it asks first.
51
+ - **Full access** — may change files without asking.
49
52
  - **Scope:** **Conversation scope** shows the home folder and lets the person add other projects or
50
53
  workflows the conversation may work on. Scope adds places; it does not limit what can be read.
51
54
  - **Approval cards:** when the AI wants to do something that needs a yes, a card asks — **Deny**,
@@ -64,8 +67,9 @@ conversations, with dated history (**Conversation history**, **New conversation*
64
67
  or a scope addition (**Approve scope addition**). The person's click does it.
65
68
  - **The Guide:** a built-in conversation that, with the person's consent, takes a read-only look at
66
69
  this computer, briefs them on what they seem to work on, and suggests next moves as buttons. Reached
67
- from the ≡ menu (**Guide**) or **Ask the Guide** on an empty Workspaces or Workflows page. It only
68
- reads; every change is a button the person presses.
70
+ from the ≡ menu (**Guide**) or **Ask the Guide** on an empty Workspaces or Workflows page. It starts
71
+ Read only, and the looks and morning briefings FloLess starts always stay Read only; its Access can be
72
+ changed in its chat like any conversation's. FloLess's own setup steps are buttons the person presses.
69
73
 
70
74
  ---
71
75
 
@@ -2,7 +2,7 @@
2
2
  name: floless-app-steel-model
3
3
  description: The front-door guide for turning a structural steel drawing set into an editable native steel.model/v2 model in floless.app. It orchestrates project setup, set knowledge, AWARE detailer agents, Drawing Filter review, registered plan views, model reading, connection detailing, clash checks, and exports. Use for asks such as "model this steel job from the drawings", "take off this whole set", "start a steel model project", or "/floless-app-steel-model". It is re-runnable and preserves the Filter → Save → read → review → History process end to end.
4
4
  metadata:
5
- version: 0.17.0
5
+ version: 0.20.0
6
6
  ---
7
7
 
8
8
  # Steel Model — guide a steel drawing set into an editable model
@@ -207,7 +207,9 @@ with an explicit OK at each kind (this is the interactive heart — never one-sh
207
207
  - **Elevations / sections** — used for member heights (TOS/BOS), moment-frame schedules, and as
208
208
  jump targets for clickable callouts (stage 6). Confirm which sheets these are **and how many views
209
209
  each carries** — several elevations on one sheet are parallel planes far apart, so each is its own
210
- `plans[]` row with its own `id` and registration.
210
+ `plans[]` row with its own `id` and registration. Each hop the chain takes from one of these is recorded
211
+ as a callout on the view it is drawn on (stage 6), so the editor can follow it. The frame elevations
212
+ also give the moment-frame schedule, which is recorded in stage 6, not only used for heights.
211
213
  - **Details — CHASED TO A FIXED POINT, not one hop.** The plans' callouts get you to the first rank of
212
214
  detail sheets; those details then reference further sheets, usually for the numbers (a schedule held
213
215
  elsewhere, a related connection type drawn on another sheet), and those may reference on again. Walk the
@@ -283,6 +285,25 @@ tell the person to accept that member change there.)
283
285
  an invented size band is worse than none. Ask for the missing sheet, naming it and the callout that
284
286
  points at it. If the user cannot supply it, file an RFI where `floless-app-rfi` allows it; otherwise
285
287
  keep the question open in the chat.
288
+ - **Record the marks the plans carry.** Every section, detail and elevation mark on every view — plans,
289
+ elevations, sections and detail sheets that are views — becomes a callout on the view it is drawn on,
290
+ pointing at the sheet it leads to, by the takeoff skill's "Record what every view shows". That is what
291
+ makes the chain clickable from sheet to sheet. A re-read adds marks and never deletes the ones the model
292
+ already has. A mark that leads to a sheet outside the set is recorded as such, and the person is told.
293
+ - **Record the moment-frame schedule.** Each moment frame the frame elevations draw is recorded as a row
294
+ of the model's schedule: its grid line, its span, the girder sizes at every floor level under the
295
+ level's name as drawn, and its columns, by the takeoff skill's "Record the moment-frame schedule". That
296
+ schedule is what the member panel offers girder sizes from. Record only frames the drawings show; when
297
+ the set has no frame schedule, say so and leave it empty, because the person can add frames by hand in
298
+ Frames…. A re-read adds frames and never removes or rewrites one the model already has.
299
+ - **Bind every member to every view it is drawn on, including COL BELOW columns.** A column drawn under the
300
+ floor of a framing plan (a hollow square at the end of a beam, marked COL BELOW) belongs to that plan even
301
+ though the floor level does not pass through it. Give each one an observation on that view bound to the
302
+ column the model already has or, when the symbol has no selectable element, list it in that view's
303
+ `memberRefs`, by the takeoff skill's "Show every member on every view that draws it". A view's
304
+ `elevation_mm` is the one the person settled on the read setup card: never add, change or take one here,
305
+ and do not rely on the level to place columns. Carry every existing `memberRefs` entry forward and never
306
+ drop one. When a symbol cannot be matched to one column, ask rather than guess.
286
307
  - **Bind callouts to member ends where the drawing shows it.** A detail bubble on a plan has a leader
287
308
  pointing at a specific connection; that link is legible at read time and guesswork afterwards. Where the
288
309
  leader clearly lands on a member end, set that end's `detail` to the callout text so the end is buildable
@@ -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.67.2
10
+ version: 0.70.0
11
11
  ---
12
12
 
13
13
  # Steel Takeoff — read drawings into `steel.model/v2`
@@ -34,7 +34,9 @@ and “ETag” in the visible list. FloLess refuses a saved checklist that uses
34
34
  a versioned format name such as `steel.model/v2`; the refusal names every such word and the item or
35
35
  summary it is in, so replace exactly those and save once more. Say “drawing
36
36
  lines the user kept,” “draft 3D model,” “line up the plans,” “attach the callout,” or “check that every
37
- drawing item was handled.” Familiar drawing and steel terms are fine. Whenever work is active, keep
37
+ drawing item was handled.” Carry the marks as one visible item: “Record the section, detail and elevation
38
+ marks on each sheet and the sheet each one points to.” Carry the moment frames as one visible item too:
39
+ “Record each moment frame and its girder sizes from the frame elevations.” Familiar drawing and steel terms are fine. Whenever work is active, keep
38
40
  exactly one unchecked item marked **NOW**. As soon as its work is verified, preserve its original wording
39
41
  and render it as `- [x] ~~<original task text>~~`, then move **NOW** to the next item. Cross
40
42
  items out one by one, never as an unverified batch. Mark inferred or not-yet-checked results
@@ -1046,69 +1048,34 @@ schedules and cross-references before anything is modelled. Drawing truth wins,
1046
1048
  does not hold on the sheet in front of you is telling you this set is drafted differently, not that
1047
1049
  the sheet is wrong — find the discriminator that does hold, and say in the read which one you used.
1048
1050
 
1049
- **Judge a band by label association, never by how it renders.** The tempting method — show each
1050
- line-weight band on its own and keep the one that looks like the structure — is unreliable, and it
1051
- fails in the direction that costs you the whole read. A band holding only grid lines, walls and
1052
- stair enclosures renders as a perfectly recognisable floor plan. The reliable instrument is that **a
1053
- member mark sits against the line it names**: for each profile mark, look for a long run parallel to
1054
- the mark's own text rotation within a small **scale-relative** distance of it — a few feet in model
1055
- terms, converted through the sheet's own `mm_per_px`, never a fixed paper distance carried from
1056
- another drawing. Record which band that run falls in. The band that resolves the marks is the steel;
1057
- the band that merely looks like a building is not.
1058
-
1059
- Two things make this evidence rather than a guess: the run should be **member-scale** (a fragment far
1060
- shorter than any real member is a neighbour, not the member), and the mark should resolve to *one*
1061
- band consistently across the sheet. A mark whose only nearby run is a stub has probably not been
1062
- drawn with its own line at all — treat that as unresolved and raise an RFI, rather than adopting the
1063
- stub's band as the answer.
1064
-
1065
- Where a set separates structure from annotation by line weight at all, expect the heavier bands to
1066
- carry the structure. Treat that as a starting hypothesis, and note two ways it breaks: the *value* of
1067
- the structural weight differs from sheet to sheet — measure it per sheet, and never carry a weight
1068
- across from another sheet — and a light band is **not** proof of no steel. A member drawn coincident
1069
- with another line (an edge beam on a slab edge) lives in whatever band that line is in, so a light
1070
- band can carry real members while looking like pure annotation. Confirm both directions by label
1071
- association before dismissing anything.
1072
-
1073
- **Merge collinear runs before you associate anything — but only across a real gap.** One beam is
1074
- normally drawn as several separate elements, and unmerged each fragment is both too short to survive
1075
- a member-scale length filter and too far from the mark to be matched to it. **Merging needs a stop
1076
- condition, or two separate in-line members become one.** Only join fragments that are collinear
1077
- within tolerance AND separated by a gap small enough to be a drafting break rather than a bay — and
1078
- **stop only at evidence that the member TERMINATES there** — a second member mark naming a different
1079
- section, a splice or end-connection callout, or a change of section. The test is a member boundary,
1080
- not the presence of something at that point.
1081
-
1082
- Two things are deliberately **not** boundaries on their own. A **grid line crossing** is not —
1083
- members run continuous through grid lines constantly, and splitting on one manufactures a joint the
1084
- drawing never showed. A **column or support symbol** is not either: a beam very often runs continuous
1085
- *over* its support, and the symbol itself may interrupt the drawn line where no joint exists.
1086
- A support is a reason to **investigate** whether the member terminates there, never a reason to split
1087
- by itself.
1088
-
1089
- **Where the set cannot settle it, the run is UNRESOLVED — not two members, and not one.** Splitting
1090
- on an ambiguous gap asserts a joint nobody drew and distorts every length and quantity downstream;
1091
- merging across one asserts a continuity nobody drew and reads as a single member with a fabricated
1092
- length. Both are fabrication, and neither is the safe default. Say what the drawing shows, mark the
1093
- run unresolved, and raise an RFI.
1094
-
1095
- **Follow the LEADER, not the label's angle.** A profile mark drawn on an angled leader is naming
1096
- whatever that leader points AT — characteristically a column, because a column is a small symbol with
1097
- no room to letter a mark across it. So read the leader's far end: the mark belongs to the thing it
1098
- lands on. This is the reliable instrument, and it is what makes the next rule work.
1099
-
1100
- **Beware of taking the label's rotation as the evidence.** It is common for beam marks to lie along
1101
- their member's axis and for column marks to sit at a diagonal — but that diagonal is a *consequence*
1102
- of the leader being angled, not the reason the mark is a column. Used as a cheap first sort it costs
1103
- nothing; used as the discriminator it fails silently on any set that letters its column marks
1104
- straight, because the column path below keys off the split and yields *zero* columns rather than an
1105
- error. **Verify the split partitions on the sheet in front of you**, and where it does not, fall back
1106
- to what the drawing states outright: the leader's target, the column schedule, the grid-intersection
1107
- symbol, or the mark's own prefix.
1108
-
1109
- This sorts **MARKS**, and only to decide which extraction path to run. It is never the source of a
1110
- member's `role` or `memberType` — those stay authored facts read off the drawing, never inferred from
1111
- geometry or from how a label is rotated (see "Model-global members").
1051
+ **Judge a band by label association, never by how it renders.** Grid lines, walls and stair enclosures
1052
+ alone can look structural. For each profile mark, find a parallel **member-scale** run near its text
1053
+ rotation, within a small **scale-relative** distance (a few model feet converted through the sheet's
1054
+ `mm_per_px`, never a fixed paper distance from another drawing). Record its band; marks must resolve
1055
+ consistently to one band across the sheet. A nearby stub is not a member: mark unresolved and raise
1056
+ an RFI rather than adopting its band. Heavier bands are only a hypothesis: measure it per sheet,
1057
+ never carry a weight across from another sheet; a light band is **not** proof of no steel: coincident
1058
+ members, such as an edge beam on a slab edge, share that line's band. Confirm both directions by marks.
1059
+
1060
+ **Merge collinear runs before association.** Fragmented beams otherwise fail length/proximity filters.
1061
+ Only join fragments that are collinear within tolerance AND separated by a
1062
+ gap small enough to be a drafting break rather than a bay;
1063
+ **stop only at evidence that the member TERMINATES there**: a second mark naming another section,
1064
+ splice, end-connection callout or section change.
1065
+ A **grid line crossing** is not — members run continuous through grid lines.
1066
+ A **column or support symbol** is not either:
1067
+ members can run over supports, whose symbols interrupt lines without a joint. Investigate, never
1068
+ split on a support alone.
1069
+ **Where the set cannot settle it, the run is UNRESOLVED — not two members, and not one.**
1070
+ State the drawn facts and raise an RFI; neither an invented joint nor continuity is safe.
1071
+
1072
+ **Follow the LEADER, not the label's angle.** Read its far end: the mark belongs to the thing it
1073
+ lands on, commonly a small column symbol. Diagonal column lettering reflects the leader angle;
1074
+ straight lettering would make an angle-only split silently miss every column. Use rotation only
1075
+ as a first sort. **Verify the split partitions on the sheet in front of you**; otherwise use the
1076
+ leader's target, column schedule, grid-intersection symbol or mark prefix. This sorts **MARKS** into
1077
+ extraction paths only, never the source of a member's `role` or `memberType`:
1078
+ those stay authored facts read off the drawing, never inferred from geometry or lettering.
1112
1079
 
1113
1080
  **Columns are usually not lines.** On a plan a column typically appears as a small footprint symbol
1114
1081
  — its shape follows the section (a square or rectangle for HSS and W, a circle for pipe) and it sits
@@ -1116,6 +1083,36 @@ far below any member-scale length filter, so a run-based extraction finds no col
1116
1083
  them on their own path, keyed off whichever discriminator you confirmed above, and take the section
1117
1084
  from the mark or the column schedule rather than from the symbol's shape.
1118
1085
 
1086
+ **Read every column's drawn section orientation before writing it, including skew columns.** Never
1087
+ silently default: profile/centre alone do not prove flange direction.
1088
+
1089
+ 1. Read both W flange strokes and their web; record two source points along a **flange width tangent**,
1090
+ not web/leader/lettering/beam lines. Attach sheet, grid/location, source locator and explanation to
1091
+ the observation. A rectangle or moment-frame line cannot supply rotation; follow detail/section
1092
+ callouts for schematic symbols. Read rectangular HSS width/depth with its note; square/round
1093
+ symmetry is not W evidence. Angle/channel toe/web facing needs separate evidence.
1094
+ 2. Map both points with existing `sheetPxToWorld` (`web/steel-plan-transform.js`) and subtract: this
1095
+ handles fitted scale/rotation and display-Y reflection once. Never negate Y again or use pixel
1096
+ angles. Warn/correct mirrored or unproven registration; do not guess. Project the world tangent
1097
+ perpendicular to the member axis as `f`; degenerate/illegible evidence follows step 5.
1098
+ 3. Store columns base-to-top. Use `partFrame` (`web/steel-3d-core.js`) on authored reference endpoints
1099
+ before offsets: Global up `[0,0,1]`, seed `[1,0,0]`; `positionBasis` up
1100
+ `cross(positionBasis.x, positionBasis.y)`, seed `positionBasis.x`. Width=`frame.y`, depth=`frame.z`,
1101
+ axis=`frame.x`; degrees=`atan2(dot(f, frame.z), dot(f, frame.y))`, the existing re-expression rule.
1102
+ For plumb Global: flange width along X/Y/37 degrees counter-clockwise from X means `rot: 0`/90/37.
1103
+ The flange face normal is perpendicular: zero faces +/-Y. Only W may fold 180-degree equivalents.
1104
+ 4. Write explicit `rot`, including `rot: 0`, with source prose. After bake, measure actual non-square
1105
+ W flange edges/normals against registered direction (W permits antiparallel), using its actual
1106
+ basis; no square envelope or screenshot-only proof. Check named faces/offsets: roll moves off-centre
1107
+ steel. Check every column, including default/quarter-turn/skew where drawn; counts/sizes/export
1108
+ success do not prove orientation.
1109
+ 5. Warn with sheet/grid/location, conflicting or illegible symbol/note and source link.
1110
+ Offer **fix it now**, **raise an RFI**, or **proceed on a stated assumption**; default to source resolution while
1111
+ others continue. Unattended: retain known prior orientation or state provisional placement and batch
1112
+ questions. Record assumption/low confidence in observation and summary;
1113
+ never claim assumed roll is verified or zero is drawing truth. Continue provisionally; dependent connections/fit claims
1114
+ carry that assumption until confirmed.
1115
+
1119
1116
  **Decide whether a diagonal on a plan is a member or a reference to one — both happen.** Bracing is
1120
1117
  commonly shown on a plan as a braced-frame-below symbol while the brace itself is detailed on an
1121
1118
  elevation, and modelling that symbol would place a member read off the wrong sheet, at the wrong
@@ -1484,6 +1481,94 @@ Never rewrite old evidence. A re-read mints a new observation with `provenance:
1484
1481
  `supersedes: ["old-observation-id"]`. Rebind, supersede, or archive the old observation through its
1485
1482
  binding. A split may bind one observation to both survivors; deletion archives it with no member ids.
1486
1483
 
1484
+ ### Record what every view shows
1485
+
1486
+ A reference marker the read resolves is also a mark drawn on its sheet, and the editor can offer a jump
1487
+ from it only when the model records it. Record the marks in the same pass that writes `references[]`:
1488
+ write one entry in that view's `callouts[]` for every `references[]` row, on **every** view that carries
1489
+ marks. That includes elevation views, section views and detail sheets that are views, not only the
1490
+ framing plans. Skipping the elevations and sections leaves the sheet-to-sheet chain broken at the second
1491
+ hop.
1492
+
1493
+ Each callout is `{ kind, text, disp, target, elementId }`:
1494
+
1495
+ - `elementId` — the marker's Filter element id, the same id the `references[]` row carries.
1496
+ - `text` — what the marker reads, as printed (`3/S-501`, `A/S-301`).
1497
+ - `kind` — read it from the symbol: `detail` for a detail circle, `section` for a section flag,
1498
+ `elevation` for an elevation marker. When the symbol cannot be told apart, ask; never default it.
1499
+ - `disp` — `[x, y]`, the centre of that Filter element's bbox, in the same display coordinates the view's
1500
+ own `labels` use.
1501
+ - `target` — `{ "sheet": <the sheet of the row's targetPageId>, "number": <the detail number from the text> }`.
1502
+ Add `"outsideSet": true` exactly when that `references[]` row's status is `missing`; `sheet` is then the
1503
+ sheet name as printed on the marker, and the editor tells the person that sheet is not in the set. A
1504
+ `resolved` row never carries `outsideSet`.
1505
+
1506
+ Start from the current model and copy every callout it already has forward untouched. A re-read adds
1507
+ callouts; it does not rewrite or drop the ones the model holds. Where a marker already has a callout at
1508
+ the same spot, write nothing new for it.
1509
+
1510
+ Leave out what the drawing does not support. Do not write `details[]`, which is the legacy shape and has
1511
+ no target. Do not write `sheet_previews`, which the server owns. Write `detail_bubbles` only when
1512
+ the read has a bubble position as page-normalized coordinates on that sheet; with no such coordinates,
1513
+ leave `detail_bubbles` alone rather than guessing a position. Entries the server cannot take (a missing
1514
+ kind or position, a text too long to print) are left out of the review and listed with the reason, so
1515
+ write each one completely rather than relying on that.
1516
+
1517
+ ### Record the moment-frame schedule
1518
+
1519
+ The Frame Elevations draw each moment frame with its girder size at every floor level and its columns.
1520
+ The editor offers those girder sizes on the right sheet only when the model records them, so write the
1521
+ schedule into the model's root `moment_frames[]`: one row for each frame the drawings show. Read it from
1522
+ the frame elevation views, the same views the callouts above are recorded on.
1523
+
1524
+ Each row is `{ grid, span, girders, columns, source }`:
1525
+
1526
+ - `grid` — the grid line the frame stands on, as printed (`H`).
1527
+ - `span` — the two grid lines it spans, `["2", "3"]`, both written as text.
1528
+ - `girders` — one `{ level, sizes, elevationMm }` per floor level the frame draws. `level` is the name
1529
+ exactly as the drawing prints it (`Roof`, `2nd floor`, `3rd floor`). Record every level the drawing
1530
+ shows, however many, and do not rename them to a fixed pair. `sizes` is each girder designation drawn at
1531
+ that level (`["W24X68"]`). Add `elevationMm` only when the drawing states that level's elevation.
1532
+ - `columns` — the column designations drawn for the frame.
1533
+ - `source` — `{ "sheet": <the frame elevation sheet the row was read from> }`.
1534
+
1535
+ Leave out what the drawing does not give. Do not write `id` or `origin`, which the server stamps. Do not
1536
+ write `views` on a level: the person links each sheet to its level in Frames…, and a read never does.
1537
+ Do not write the old `roof` and `second` lists; write `girders`.
1538
+
1539
+ Start from the current model and copy every frame it already has forward untouched. A re-read adds
1540
+ frames; it never rewrites or drops a frame the model holds, and a frame is told apart by its grid line and
1541
+ its span. A frame the model already has that the read gives differently is shown to the person and left as
1542
+ it is. When the drawing set has no frame elevations or no frame schedule, say so in the summary and write
1543
+ no rows. The person can add every frame by hand in Frames…, and the review shows what the read adds.
1544
+
1545
+ ### Show every member on every view that draws it
1546
+
1547
+ The editor draws a member on a plan only when the model says that plan shows it. It will place a column
1548
+ from the plan's floor level when the level passes through the column or the column ends just under it, but
1549
+ that is a fallback and not a record. Bind every member to every view it is drawn on, including COL BELOW
1550
+ columns: the column drawn under the floor, as a hollow square at the end of a beam or labelled `COL BELOW`,
1551
+ is on that framing plan even though the floor level does not pass through it.
1552
+
1553
+ For each member symbol a plan view draws, do one of these:
1554
+
1555
+ - Add an observation on that view and bind it to the member the model already has. This is the preferred
1556
+ record, and the evidence rules above apply to it unchanged. Do not make a second member for a column
1557
+ that exists.
1558
+ - When the symbol has no selectable Filter element, add the member's id to that view's `memberRefs[]`.
1559
+
1560
+ A view's `elevation_mm` is the one the person settled on the read setup card, and none for a view they
1561
+ answered "no single level". Do not add, change or take one here, and never from a callout. If a view has
1562
+ none and the drawing states a level, ask for it on the setup card (or the plan-elevation proposal outside
1563
+ AI Chat). The editor then asks the person for a level: a view without one draws only the members bound to
1564
+ it, and the editor tells the person so.
1565
+
1566
+ When a symbol cannot be matched to exactly one model column, ask rather than guess: name the sheet and
1567
+ where the symbol is, and offer the columns it could be. Never bind it to the nearest column, and never
1568
+ leave the symbol unrecorded without saying so. Carry every existing `memberRefs` entry forward and never
1569
+ drop one: a placement the person made by hand sits in that list, and a list that comes back shorter takes
1570
+ it off the sheet.
1571
+
1487
1572
  ### Literal endpoints and server-owned centerline normalization
1488
1573
 
1489
1574
  Record each selected drawing segment exactly as printed. A beam or brace line that stops at a support
@@ -1633,4 +1718,12 @@ refetch, re-compose, and re-audit; never force the stale candidate through.
1633
1718
  - **Selected evidence only.** Every new or reader-changed member traces to a selected Filter element.
1634
1719
  - **No fabricated certainty.** Unknown elevations and unresolved profiles remain explicit.
1635
1720
  - **No silent overwrite.** Respect request ids, ledger heads, ETags, staging, and confirmation.
1721
+ - **Never delete a callout the model already has.** A re-read adds marks to a view; it copies the ones
1722
+ already recorded forward untouched.
1723
+ - **Never invent a frame.** The moment-frame schedule comes only from frame elevations the drawings show;
1724
+ a frame, a level or a girder size the drawing does not give is left out, and a missing schedule is
1725
+ reported instead of filled in. A frame the model already has is never removed or rewritten by a read.
1726
+ - **Do not rely on the floor level to place columns.** A column a sheet draws is bound to that sheet, the
1727
+ COL BELOW ones included. The level is a fallback the editor applies, and a sheet with no level draws
1728
+ only what is bound to it.
1636
1729
  - **No secrets in artifacts.** Never bake source rasters, credentials, absolute paths, or private notes.
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: floless-app-workflows
3
- description: This skill should be used when building, modifying, or reasoning about FloLess .flo workflows for floless.app — especially reusable apps that take inputs (e.g. a phase number) and run across different Tekla models, exec nodes that run Roslyn C# against the live model, the in-app HTML Viewer, the Code tab, or "Debug in VS". Covers the exec contract, the install→validate→compile→run loop, app inputs templating, reading approved Workspace project data and immutable approved Revit model snapshots through the floless-workspace REST seam plus its themed pickers, and the server seams (aware-adapter, app-reader, index).
3
+ description: This skill should be used when building, modifying, or reasoning about FloLess .flo workflows for floless.app — especially reusable apps that take inputs (e.g. a phase number) and run across different Tekla models, exec nodes that run Roslyn C# against the live model, Blender animations of a building (blender/exec Python rendered headlessly — construction sequence, fly-through, sun study), the in-app HTML Viewer, the Code tab, or "Debug in VS". Covers the exec contract, the install→validate→compile→run loop, app inputs templating, reading approved Workspace project data and immutable approved Revit model snapshots through the floless-workspace REST seam plus its themed pickers, and the server seams (aware-adapter, app-reader, index).
4
4
  metadata:
5
- version: 0.6.2
5
+ version: 0.7.0
6
6
  ---
7
7
 
8
8
  # Building reusable .flo workflows in floless.app
@@ -166,6 +166,21 @@ Two rules that bite immediately:
166
166
  whatever the node returns.
167
167
  - **No `System.Net`** (so no `WebUtility.HtmlEncode`) — escape with a manual lambda.
168
168
 
169
+ ## Building animations: `blender/exec` (Python, rendered headlessly)
170
+
171
+ When someone asks for an animation of their building (a construction sequence, a fly-through, a sun
172
+ study, an exploded view, a highlight of what changed), author a `blender/exec` node: Python defining
173
+ `run(ctx)`, written once and approved, which AWARE renders in Blender with nobody pressing anything.
174
+ Read `references/blender-exec.md` for the node, the `ctx` contract, complete recipes and the time
175
+ budget. Three rules that bite immediately:
176
+ - **`code` is a literal block.** A templated `code` is refused, because code supplied at run time was
177
+ never approved. Data goes in `args`.
178
+ - **Wire `output-dir: '{{ inputs.output-dir }}'`.** FloLess gives each run its own folder, which is
179
+ what lets the finished video play inside FloLess.
180
+ - **Tell the person how long it will take before it runs.** A draft frame takes about 1–2 s on a
181
+ typical model, and a production (Cycles) frame takes about a minute. FloLess shows each frame as it
182
+ renders, so a long render never looks stuck.
183
+
169
184
  ## Every node's Description must be plain English (HARD guardrail)
170
185
 
171
186
  The Inspect → **Description** tab is written **for non-coders**: it must always say, in plain
@@ -510,7 +525,8 @@ declares `capabilities.runtime-model-extraction: true`, and which extracts but n
510
525
  debug})` talks to the bridge directly (resolves `~/.aware/bridges`, injects the debugger when
511
526
  `debug`). Nothing else touches raw `aware`/bridge argv. **`run()` serializes through a single
512
527
  promise-chain run lock** — manual (UI) runs and scheduled (routine) runs share it, since the host
513
- bridge does one exec at a time and `cancelActiveRun()` assumes a single active run.
528
+ bridge does one exec at a time. Manual cancellation owns a request UUID and its queued or
529
+ running ticket; it never cancels whichever unrelated run happens to be active.
514
530
  - `server/routines.ts` + `/api/routines` (in `index.ts`) — `.flo` runs on a trigger. Two `kind`s
515
531
  share the store (`~/.floless/routines.json`) and the **⏱ Routines** panel:
516
532
  - **`schedule`** — a time-trigger; the in-server scheduler fires due routines through
@@ -535,8 +551,10 @@ declares `capabilities.runtime-model-extraction: true`, and which extracts but n
535
551
  canvas isn't littered with false write-mode badges.
536
552
  - `server/index.ts` — routes. `/api/run` accepts `inputs` and returns `report` via
537
553
  `extractReportHtml(events)` (scans the trace for `data.result.html`); it surfaces a user Stop
538
- in-band as `{ cancelled:true }`. `/api/run/stop` → `cancelActiveRun()` (kills the in-flight
539
- run's process tree). `/api/debug-node` resolves `{{ inputs.x }}` in `config.args` and dispatches
554
+ in-band as `{ cancelled:true }`. Manual callers generate a fresh UUID before dispatch and pass
555
+ `runRequestId` in `/api/run`; `/api/run/stop` accepts `{runRequestId}` and cancels only that
556
+ request's queued or running ticket (including its process tree). A Stop without this identity
557
+ does not stop anything. `/api/debug-node` resolves `{{ inputs.x }}` in `config.args` and dispatches
540
558
  via `execTekla(..., {debug:true})`.
541
559
 
542
560
  ## Keeping this skill current (self-learning)