@floless/app 0.159.0 → 0.161.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 (43) hide show
  1. package/dist/floless-server.cjs +76823 -65608
  2. package/dist/schemas/steel.model.v2.schema.json +24 -0
  3. package/dist/skills/floless-app-onboarding/SKILL.md +4 -3
  4. package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +1 -2
  5. package/dist/skills/floless-app-rfi/SKILL.md +44 -3
  6. package/dist/skills/floless-app-steel-model/SKILL.md +2 -2
  7. package/dist/skills/floless-app-steel-takeoff/SKILL.md +417 -261
  8. package/dist/templates/steel-model.flo +6 -2
  9. package/dist/templates/viewer-3d-demo.flo +8 -2
  10. package/dist/web/app.css +342 -160
  11. package/dist/web/app.js +17 -51
  12. package/dist/web/aware.js +656 -574
  13. package/dist/web/chat-question-card.js +27 -1
  14. package/dist/web/chat.css +185 -30
  15. package/dist/web/chat.js +2099 -255
  16. package/dist/web/commands-drawing-check.js +1 -0
  17. package/dist/web/commands-filter.js +11 -0
  18. package/dist/web/commands-shell.js +1118 -134
  19. package/dist/web/commands-steel.js +41 -38
  20. package/dist/web/drawing-check-editor.js +76 -3
  21. package/dist/web/guide.js +8 -0
  22. package/dist/web/index.html +68 -42
  23. package/dist/web/instructor.js +17 -6
  24. package/dist/web/pages.js +158 -30
  25. package/dist/web/panels.js +19 -1
  26. package/dist/web/project-history.js +349 -0
  27. package/dist/web/project-reconciliation.js +1 -0
  28. package/dist/web/project-rfis.js +954 -0
  29. package/dist/web/project-workflows.js +236 -4
  30. package/dist/web/run-history.js +198 -0
  31. package/dist/web/run-page-view.js +12 -2
  32. package/dist/web/startup-admission.js +53 -7
  33. package/dist/web/steel-3d-core.js +144 -7
  34. package/dist/web/steel-3d-view.js +61 -5
  35. package/dist/web/steel-editor.html +510 -128
  36. package/dist/web/steel-filter.html +139 -0
  37. package/dist/web/steel-model-v2-commands.js +3 -3
  38. package/dist/web/steel-model-v2-projection.js +139 -4
  39. package/dist/web/steel-plan-transform.js +78 -0
  40. package/dist/web/tool-updates.js +5 -0
  41. package/dist/web/workspaces.js +1438 -159
  42. package/launch.mjs +36 -5
  43. package/package.json +7 -4
@@ -41,6 +41,7 @@
41
41
  "custom_details": { "type": "object", "additionalProperties": { "type": "string" }, "description": "user-created detail name -> base64 JPEG. detailPlacement.detailName keys into this." },
42
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." },
43
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." },
44
+ "ai_decisions": { "type": "array", "description": "Written by the server only, never by a reader or the editor: the AI decisions of Quick model reads this model may rest on (#2521 row 4). A reader leaves it out or copies it unchanged.", "items": { "type": "object", "additionalProperties": false, "required": ["id", "buildId", "channel", "subject", "chosen"], "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{12}$" }, "buildId": { "type": "string", "minLength": 1, "maxLength": 200 }, "channel": { "enum": ["audit-gap", "height", "setup", "connection", "unmodelled-detail", "filter"] }, "subject": { "type": "object" }, "chosen": { "type": "string", "maxLength": 2000 }, "value": { "type": "object" } } } },
44
45
  "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." },
45
46
  "source": { "type": "object", "additionalProperties": true, "description": "Provenance: where this takeoff was read from (name/path/sheet/sha256/read_at)." },
46
47
  "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." },
@@ -330,6 +331,16 @@
330
331
  "type": "object",
331
332
  "required": ["by", "via", "requestId", "questionId", "n", "how", "label", "answeredAt"],
332
333
  "additionalProperties": false,
334
+ "oneOf": [
335
+ {
336
+ "description": "A confirmed proposal: it may say where the proposal came from (proposal), never what was typed.",
337
+ "properties": { "how": { "const": "confirmed" }, "typed": { "type": "null", "const": false } }
338
+ },
339
+ {
340
+ "description": "A typed height: the person's own number, so it carries no proposal, no shown proposal and no reading of their picture.",
341
+ "properties": { "how": { "const": "typed" }, "proposal": { "type": "null", "const": false }, "shownAs": { "type": "null", "const": false }, "basis": { "type": "null", "const": false } }
342
+ }
343
+ ],
333
344
  "properties": {
334
345
  "by": { "const": "person" },
335
346
  "via": { "const": "question-card" },
@@ -364,6 +375,19 @@
364
375
  "observations": { "type": "integer", "minimum": 1 }
365
376
  }
366
377
  },
378
+ "proposal": {
379
+ "description": "#2788: confirmed answers only: where the proposal the person confirmed came from. read: off a drawing; measured: on one; derived: worked out from other values, with basis saying how. Still the person's answer. Server-written.",
380
+ "oneOf": [
381
+ {
382
+ "type": "object", "required": ["how", "basis"], "additionalProperties": false,
383
+ "properties": { "how": { "const": "derived" }, "basis": { "type": "string", "minLength": 1, "maxLength": 160, "pattern": "^(?=.*\\S)[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]+$" } }
384
+ },
385
+ {
386
+ "type": "object", "required": ["how"], "additionalProperties": false,
387
+ "properties": { "how": { "enum": ["read", "measured"] }, "basis": { "type": "string", "minLength": 1, "maxLength": 160, "pattern": "^(?=.*\\S)[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]+$" } }
388
+ }
389
+ ]
390
+ },
367
391
  "answeredAt": { "type": "string", "minLength": 1, "maxLength": 40 }
368
392
  }
369
393
  }
@@ -2,7 +2,7 @@
2
2
  name: floless-app-onboarding
3
3
  description: Onboards a person into FloLess and the AWARE runtime underneath it, in four 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. Project kickoff mode sets up a General project the person just created, from a project-kickoff request whose first turn carries a kickoff facts block (project, companyLibrary, projectKnowledge, modules, nextSteps) - one question on the question tool, company knowledge first (offered), then project knowledge, connections and at most two next steps, every change a card the person confirms. Use it when the Guide conversation or a project kickoff 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.5.3
5
+ version: 0.5.5
6
6
  ---
7
7
 
8
8
  # Onboarding a person into FloLess + AWARE
@@ -205,7 +205,8 @@ The connections block that every chat carries lists the person's accounts and to
205
205
  project yet.
206
206
 
207
207
  Look things up with `floless_action_read` when you need to (for example `knowledge.company-library` or
208
- `knowledge.status` after the person added files). `floless_action_call` is not available in this conversation.
208
+ `knowledge.status` after the person added files). Do not use `floless_action_call` here: every change is a card the
209
+ person confirms, through `floless_action_propose`.
209
210
 
210
211
  ### Rules
211
212
 
@@ -298,7 +299,7 @@ For an AI working in a terminal next to FloLess (the `claude` or `codex` CLI). T
298
299
  - **B4 · Workflows and the gate** — Compile → Approve → Run, Simulate, inputs, Inspect, Tweak, Requests.
299
300
  - **B5 · Agents and Routines** — hand over a repeat check; run by hand, or on a schedule with nobody watching.
300
301
  - **B6 · Tools, Discover, Graft, Bake, Integrations** — what FloLess can reach and how it grows.
301
- - **B7 · Help where you are** — the Instructor strip, `?`/F1, Ask AI now, the workflow walkthrough.
302
+ - **B7 · Help where you are** — the Instructor strip, `?`/F1, Ask AI now, the Guide.
302
303
  - **B8 · Keeping current** — AWARE and FloLess updates, tool updates, reinstalling the approved version.
303
304
  - **B9 · The skills and the everyday loop** — which skill does what, and the habits that keep runs trustworthy.
304
305
 
@@ -105,8 +105,7 @@ A workflow is a FloLess `.flo` file — steps (nodes) and the links between them
105
105
  choose where it belongs, then the AI builds it with you — depth: **floless-app-new-workflow**). A
106
106
  draft that hasn't compiled shows **Compile** and **Ask AI to fix**.
107
107
  - **Canvas:** the open workflow's steps. Click a node to inspect it; **Fit to window**, zoom, find.
108
- The **workflow picker** switches workflows (Ctrl+O). For a published workflow, a small beacon in the
109
- header ("New here? See what this workflow does and how to run it.") walks through that one workflow.
108
+ The **workflow picker** switches workflows (Ctrl+O).
110
109
  - **Set inputs:** the values this workflow runs with (**Save inputs**).
111
110
  - **The gate — Compile → Approve → Run:**
112
111
  - **Compile** freezes the current `.flo` into its `.lock`, the approved version. That is the
@@ -2,7 +2,7 @@
2
2
  name: floless-app-rfi
3
3
  description: File, send, and manage RFIs on a floless.app project from the terminal. Use when the user asks to raise an RFI, send it through the connected Gmail account, record a manual send, chase one, record an answer that came back from the engineer, mark an answer as applied, close or reopen an RFI, or asks what questions are still outstanding on a project. Also use when a size the AI could not work out is one the user cannot answer either, so the question has to become a durable record instead of a message that scrolls away.
4
4
  metadata:
5
- version: 0.4.0
5
+ version: 0.6.0
6
6
  ---
7
7
 
8
8
  # File and manage a project's RFIs
@@ -311,8 +311,9 @@ drifts. Flat-stock product names (`PL`, `PLATE`, `BAR`, `FB`, or `FLAT`) are not
311
311
 
312
312
  Two paths put the answered size into the steel, and both belong to the user:
313
313
 
314
- 1. **The size box on that RFI row in the Steel editor** — the designed path. It exists only when the
315
- editor can place the member; where it cannot, the row says so instead and there is no box.
314
+ 1. **The size box on that RFI row in the project's RFIs step** (a Steel Model project's step right after Model;
315
+ it used to be a window inside the Steel editor) — the designed path. It exists only when the editor can place
316
+ the member; where it cannot, the row says so instead and there is no box.
316
317
  2. **The editor's Ask AI box**, which queues a contract-edit request you then handle with
317
318
  `floless-app-tweak-contract`.
318
319
 
@@ -405,6 +406,46 @@ record actually says — never retry blind, and never invent a reason of your ow
405
406
  Never paper over a refusal. Quote the sentence the server gave — it is written for the user, and it
406
407
  names the way forward.
407
408
 
409
+ ## A General project's RFIs (correspondence)
410
+
411
+ A **General** project (`app` is `floless-general`) has no model, so its RFIs are questions in words.
412
+ They live in their own store and use their own actions — the steel ones above do not apply to it:
413
+
414
+ - **Read first:** `rfis.correspondence-list` gives `rootId`, `project.uuid` and every RFI with its
415
+ `status` (`open | sent | answered | closed`), `recordRevision`, the `verbs` legal now, and each
416
+ citation's `state`. Every write below names that `rootId` and `projectUuid`; a change to either
417
+ answers `project-changed` — read the list again.
418
+ - **What can be cited:** `rfis.correspondence-citable` lists this project's Knowledge pages (cite one
419
+ by its `generationId` and `slug`) and the saved sheets of the projects linked on its Modules step
420
+ (by `linkedProjectUuid`, `pageId`, `sourceHash`). A linked project outside this chat's scope is
421
+ named but not read: offer to add it to the scope, never work around it. Up to five citations.
422
+ - **Filing:** `rfis.correspondence-file` (title, question, citations) records the question only.
423
+ `rfis.correspondence-file-and-mark-sent` also records who it was sent to and is a card the person
424
+ confirms — use it only after the person sent the email themself.
425
+ - **Sending through Gmail** works as for a steel project (the same delivery engine; the rules in
426
+ *Sending through the connected Gmail account* above hold word for word), with this store's actions:
427
+ `rfis.correspondence-gmail-readiness` first; then `rfis.correspondence-deliver` (one address, the
428
+ `recordRevision` you read, and `rootId` / `projectUuid`) — a card the person confirms, because it
429
+ emails an outside party. The list's `delivery` on each row is its live send: `recorded` (accepted by
430
+ Gmail, not proof of the inbox), `failed` (nothing was sent; offer to send again or copy the text),
431
+ `prepared` (use `rfis.correspondence-deliver-continue` with its `attemptId` — it finishes that one
432
+ send, never a second) and `outcome-unknown` (**never send again**; ask the person to search Sent for
433
+ `reconciliationMarker`, and only when they found it, `rfis.correspondence-deliver-confirm-sent`).
434
+ While a send is `prepared` or `outcome-unknown` the RFI is held: its `verbs` are empty and Mark sent,
435
+ Answer and Close answer `rfi-delivery-recovery-required`. That hold is deliberate (owner ruling
436
+ 2026-10-26) until a later release adds a way out; there is no "not found, resend" action.
437
+ - **Sending yourself:** `rfis.correspondence-text` gives the subject and body to paste into their own
438
+ email; then `rfis.correspondence-mark-sent` (a card) records it.
439
+ - **Answer, close, reopen:** `rfis.correspondence-answer` (open or sent), `rfis.correspondence-close`
440
+ (`answered` only once answered; `withdrawn`, `superseded`, `wont-fix` need a note),
441
+ `rfis.correspondence-reopen` (closed only, with why). Each names the `recordRevision` you read.
442
+ - **Citation states:** `changed` (the page was rewritten — the RFI keeps the text it cited),
443
+ `unavailable`, `link-removed`, `project-unavailable`, `sheet-missing` / `-ambiguous` / `-unusable`,
444
+ `detached` (came with a copy of the project). Say them plainly; the RFI stands as it was filed. To cite
445
+ current items, file a new RFI and close the old one as `superseded`.
446
+ - **A set-aside store:** when the list says the RFI file couldn't be read, the person restores a good
447
+ copy and `rfis.correspondence-repair` checks it. Never edit the file.
448
+
408
449
  ## Say it back
409
450
 
410
451
  An RFI filed in silence is the silence this design exists to delete. After every write, tell the user
@@ -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.25.0
5
+ version: 0.25.1
6
6
  ---
7
7
 
8
8
  # Steel Model — guide a steel drawing set into an editable model
@@ -535,7 +535,7 @@ needs to know what bears and what does not.
535
535
 
536
536
  - **Steel Model is a paid module.** A 403 with a `userMessage` (e.g. `module-inactive`) means the
537
537
  account lacks it: stop, tell the person that sentence word for word, and never retry or work
538
- around it. Stored models stay viewable; reading, editing and exporting need the module.
538
+ around it. Viewing, reading, editing and exporting a stored model all need the module.
539
539
  - **The host AI is the brain; the run is deterministic.** Reading is a compose-time act; never put
540
540
  an LLM or heavy compute in the run path or the server.
541
541
  - **Confidentiality (hard rule).** Never commit or echo `raster_b64` / `bg_b64` page rasters or any