@floless/app 0.149.0 → 0.150.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 (48) hide show
  1. package/dist/floless-server.cjs +102295 -88314
  2. package/dist/schemas/drawing-check.profile.v1.schema.json +45 -2
  3. package/dist/schemas/steel.model.v2.schema.json +9 -0
  4. package/dist/skills/floless-app-approval/SKILL.md +79 -4
  5. package/dist/skills/floless-app-onboarding/SKILL.md +4 -4
  6. package/dist/skills/floless-app-onboarding/references/aware-runtime.md +1 -1
  7. package/dist/skills/floless-app-onboarding/references/floless-app-tour.md +15 -13
  8. package/dist/skills/floless-app-routines/SKILL.md +4 -1
  9. package/dist/skills/floless-app-routines/references/routines-api.md +14 -2
  10. package/dist/skills/floless-app-steel-model/SKILL.md +4 -2
  11. package/dist/skills/floless-app-steel-takeoff/SKILL.md +14 -9
  12. package/dist/skills/floless-app-workflows/SKILL.md +2 -2
  13. package/dist/templates/tekla-parser.flo +13 -3
  14. package/dist/web/agents.js +887 -0
  15. package/dist/web/app.css +458 -23
  16. package/dist/web/app.js +20 -5
  17. package/dist/web/aware.js +1339 -134
  18. package/dist/web/chat.css +68 -4
  19. package/dist/web/chat.js +1770 -55
  20. package/dist/web/commands-drawing-check.js +15 -0
  21. package/dist/web/commands-revit.js +5 -0
  22. package/dist/web/commands-shell.js +785 -50
  23. package/dist/web/commands-tekla-parser.js +8 -1
  24. package/dist/web/connections.js +57 -14
  25. package/dist/web/drawing-check-editor.html +10 -2
  26. package/dist/web/drawing-check-editor.js +569 -40
  27. package/dist/web/drawing-check-overlay.js +45 -2
  28. package/dist/web/index.html +102 -27
  29. package/dist/web/instructor.js +85 -8
  30. package/dist/web/leave-guard.js +1 -0
  31. package/dist/web/left-pane.js +20 -1
  32. package/dist/web/local-discovery.js +12 -2
  33. package/dist/web/model-editor.css +32 -32
  34. package/dist/web/model-panel-bridge.js +11 -3
  35. package/dist/web/model-viewport-lighting.js +4 -2
  36. package/dist/web/model-viewport-revit-adapter.js +3 -0
  37. package/dist/web/model-viewport-toolbar.js +6 -3
  38. package/dist/web/model-viewport.js +11 -1
  39. package/dist/web/revit-editor.css +14 -14
  40. package/dist/web/revit-editor.js +64 -12
  41. package/dist/web/steel-3d-core.js +133 -0
  42. package/dist/web/steel-3d-view.js +10 -0
  43. package/dist/web/steel-editor.html +171 -39
  44. package/dist/web/steel-model-v2-client-validation.js +11 -0
  45. package/dist/web/steel-model-v2-commands.js +80 -5
  46. package/dist/web/tool-updates.js +367 -0
  47. package/dist/web/workspaces.js +679 -59
  48. package/package.json +1 -1
@@ -13,7 +13,10 @@
13
13
  "producers": { "type": "array", "items": { "type": "string" } },
14
14
  "references": { "type": "array", "items": { "$ref": "#/$defs/reference" } },
15
15
  "items": { "type": "array", "items": { "$ref": "#/$defs/item" } },
16
- "titleBlock": { "$ref": "#/$defs/titleBlock" }
16
+ "titleBlock": { "$ref": "#/$defs/titleBlock" },
17
+ "lengths": { "$ref": "#/$defs/lengths" },
18
+ "drafting": { "$ref": "#/$defs/drafting" },
19
+ "touched": { "type": "array", "maxItems": 256, "items": { "type": "string", "pattern": "^(lengths|drafting)\\.[a-zA-Z]+$|^item:[a-z][a-z0-9-]{0,63}\\.[a-zA-Z]+$" } }
17
20
  },
18
21
  "$defs": {
19
22
  "relBox": {
@@ -76,6 +79,26 @@
76
79
  }
77
80
  }
78
81
  },
82
+ "len": { "type": "object", "additionalProperties": false, "required": ["unit", "num", "den"],
83
+ "properties": { "unit": { "enum": ["in", "mm"] }, "num": { "type": "integer" }, "den": { "type": "integer", "minimum": 1 } } },
84
+ "step": { "type": "object", "additionalProperties": false, "required": ["unit", "num", "den"],
85
+ "properties": { "unit": { "enum": ["in", "mm"] }, "num": { "type": "integer", "minimum": 1 }, "den": { "type": "integer", "minimum": 1 } } },
86
+ "lengths": { "type": "object", "additionalProperties": false, "required": ["system", "unitless", "feetInchesWithoutPrimes", "inchMarkOptional", "joinGapPt"],
87
+ "properties": { "system": { "enum": ["imperial", "metric"] }, "unitless": { "enum": ["mm", "inch", "feet", null] },
88
+ "feetInchesWithoutPrimes": { "type": "boolean" }, "inchMarkOptional": { "type": "boolean" }, "joinGapPt": { "type": "number", "minimum": 0, "maximum": 72 },
89
+ "charMap": { "type": "object", "maxProperties": 256, "additionalProperties": { "type": "string", "maxLength": 4 } },
90
+ "displayStep": { "$ref": "#/$defs/step" } } },
91
+ "drafting": { "type": "object", "additionalProperties": false, "required": ["terminators", "arrowSizePt", "extGapPt", "pairMarginPt", "viewGapPt"],
92
+ "properties": { "terminators": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "enum": ["arrow", "tick", "dot"] } },
93
+ "arrowSizePt": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "type": "number", "minimum": 0, "maximum": 72 } },
94
+ "extGapPt": { "type": "number", "minimum": 0, "maximum": 72 }, "pairMarginPt": { "type": "number", "minimum": 1, "maximum": 72 },
95
+ "viewGapPt": { "type": "number", "minimum": 1, "maximum": 288 } } },
96
+ "clearanceRow": { "type": "object", "additionalProperties": false, "required": ["boltFrom", "boltTo", "kind", "clearance", "source"],
97
+ "properties": { "boltFrom": { "$ref": "#/$defs/len" }, "boltTo": { "$ref": "#/$defs/len" }, "kind": { "enum": ["standard", "oversize", "short-slot", "long-slot"] },
98
+ "clearance": { "oneOf": [ { "$ref": "#/$defs/len" }, { "type": "object", "additionalProperties": false, "required": ["width", "length"],
99
+ "properties": { "width": { "$ref": "#/$defs/len" }, "length": { "$ref": "#/$defs/len" } } } ] },
100
+ "source": { "enum": ["learned", "person", "standard"] }, "standard": { "type": "string", "maxLength": 120 }, "support": { "type": "number", "minimum": 0, "maximum": 1 } } },
101
+ "words": { "type": "array", "maxItems": 64, "items": { "type": "string", "minLength": 1, "maxLength": 40 } },
79
102
  "reference": {
80
103
  "type": "object", "additionalProperties": false,
81
104
  "required": ["sha256", "name", "ext", "pages"],
@@ -104,6 +127,8 @@
104
127
  "rule": { "$ref": "#/$defs/rule" },
105
128
  "origin": { "enum": ["frequency", "client-standard", "redline"] },
106
129
  "frequency": { "type": "number", "minimum": 0, "maximum": 1 },
130
+ "readability": { "type": "number", "minimum": 0, "maximum": 1 },
131
+ "wrongFails": { "type": "integer", "minimum": 0 },
107
132
  "enabled": { "type": "boolean" }
108
133
  }
109
134
  },
@@ -149,7 +174,25 @@
149
174
  "pattern": { "type": "string", "minLength": 1 },
150
175
  "display": { "type": "string", "minLength": 1 }
151
176
  }
152
- }
177
+ },
178
+ { "type": "object", "additionalProperties": false, "required": ["type", "forms", "countMeans", "checkCount"],
179
+ "properties": { "type": { "const": "repeat-spacing" }, "forms": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "enum": ["at-equals", "spa-at-equals", "x-equals", "eq-spa"] } },
180
+ "countMeans": { "enum": ["spaces", "pieces", null] }, "checkCount": { "type": "boolean" } } },
181
+ { "type": "object", "additionalProperties": false, "required": ["type", "tolerance", "openChain", "ntsTokens"],
182
+ "properties": { "type": { "const": "dimension-chain" }, "tolerance": { "type": "number", "minimum": 0 }, "openChain": { "enum": ["ask", "fail"] }, "ntsTokens": { "$ref": "#/$defs/words" } } },
183
+ { "type": "object", "additionalProperties": false, "required": ["type", "clearances", "boltSource", "excludeWords", "rodWords", "unlabelledHoleIs"],
184
+ "properties": { "type": { "const": "hole-bolt" }, "clearances": { "type": "array", "maxItems": 64, "items": { "$ref": "#/$defs/clearanceRow" } },
185
+ "boltSource": { "type": "array", "uniqueItems": true, "items": { "enum": ["callout", "leader", "view-note", "general-note"] } },
186
+ "excludeWords": { "$ref": "#/$defs/words" }, "rodWords": { "$ref": "#/$defs/words" }, "unlabelledHoleIs": { "enum": ["standard", "ask"] } } },
187
+ { "type": "object", "additionalProperties": false, "required": ["type", "markerForms", "titleForms", "shopSetPattern", "designSetPattern", "requireMarkerForEveryView"],
188
+ "properties": { "type": { "const": "references-resolve" }, "markerForms": { "$ref": "#/$defs/words" }, "titleForms": { "$ref": "#/$defs/words" },
189
+ "shopSetPattern": { "type": ["string", "null"], "maxLength": 200 }, "designSetPattern": { "type": ["string", "null"], "maxLength": 200 },
190
+ "requireMarkerForEveryView": { "type": "boolean" } } },
191
+ { "type": "object", "additionalProperties": false, "required": ["type", "datums", "axes", "byReference", "exempt", "workPointTokens", "noteTokens", "faceBounds", "holeGroups"],
192
+ "properties": { "type": { "const": "parts-located" }, "datums": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "enum": ["member-end", "work-point", "centreline", "main-part-edge"] } },
193
+ "axes": { "enum": ["both", "along-member"] }, "byReference": { "type": "boolean" }, "exempt": { "$ref": "#/$defs/words" },
194
+ "workPointTokens": { "$ref": "#/$defs/words" }, "noteTokens": { "$ref": "#/$defs/words" },
195
+ "faceBounds": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "type": "number", "minimum": 0 } }, "holeGroups": { "type": "boolean" } } }
153
196
  ]
154
197
  }
155
198
  }
@@ -354,6 +354,15 @@
354
354
  }
355
355
  },
356
356
  "basis": { "const": "read-of-your-picture", "description": "#1906: the person confirmed the read's reading of a picture they had sent." },
357
+ "overDrawing": {
358
+ "type": "object", "required": ["low", "high", "observations"], "additionalProperties": false,
359
+ "description": "#1903: on a member ALREADY in the model, the drawing readings of this end stated a height (low..high, in world mm) that differs from the person's answer; the answer was proposed in the staged review with that height beside it and the person accepted it. Server-written.",
360
+ "properties": {
361
+ "low": { "type": "number" },
362
+ "high": { "type": "number" },
363
+ "observations": { "type": "integer", "minimum": 1 }
364
+ }
365
+ },
357
366
  "answeredAt": { "type": "string", "minLength": 1, "maxLength": 40 }
358
367
  }
359
368
  }
@@ -2,7 +2,7 @@
2
2
  name: floless-app-approval
3
3
  description: Review and act on FloLess Workspace approval state through the local server API. Use when the user asks what changed or is pending, wants to approve selected changes, leave changes pending, discard a change, inspect approved history or saved checkpoints, start from an older approved version, resume or move saved work forward, or export the latest approved version, an older version, the working DRAFT, or a checkpoint DRAFT.
4
4
  metadata:
5
- version: 0.5.0
5
+ version: 0.6.0
6
6
  ---
7
7
 
8
8
  # FloLess Workspace approval
@@ -69,9 +69,82 @@ new command. If retrying the POST is necessary, reuse the exact operation ID, op
69
69
  otherwise unchanged body unless the operation is `abandoned`. Never mint a replacement pair while
70
70
  the original operation is pending or its outcome is unknown. On success, report the
71
71
  new approved version, approved count, remaining pending count, and publication or recovery state
72
- returned by the server. On a stale-review 409, fetch and present a fresh review; never replay stale
73
- prose or silently change the user's choices. On 428/400/422, report the refusal and remediation without
74
- falling back to the old blind-approval request.
72
+ returned by the server, and when the result (or the `complete` receipt) carries
73
+ `acceptedImportFindingsNote`, state that sentence as part of the result: that approval accepted open
74
+ import findings and is never reported as a plain one. On a stale-review 409, fetch and present a
75
+ fresh review; never replay stale prose or silently change the user's choices. On a 428 `approval-review-required` (no review was
76
+ submitted), a 400 or a 422, report the refusal and remediation without falling back to the old
77
+ blind-approval request. The import-findings codes below have their own rules.
78
+
79
+ ## Open Tekla import findings
80
+
81
+ A Tekla Parser review can carry `importFindings`: the copy's open Audit findings (things FloLess could
82
+ not fully check when it read the model), with `open`, the counts per Audit group, and the
83
+ `contractHash` and `digest` that identify exactly this copy and this audit. Each group's `key` maps to
84
+ the name the Audit tab shows, in this order:
85
+
86
+ | `key` | Audit tab name |
87
+ |---|---|
88
+ | `missing-source-files` | Missing source files |
89
+ | `not-shown` | Not shown |
90
+ | `fit-not-confirmed` | Fit not confirmed |
91
+ | `shape-not-evaluated` | Shape detail not evaluated |
92
+
93
+ When `groups` is `null` the audit could not be grouped; give the total only, and never invent a
94
+ split. Approving such a copy records that the approver accepted those findings as stated assumptions.
95
+ In FloLess, History, the header, the model pickers, the model editor and saved report captions say
96
+ so; rule 7 lists the fields that say it to you. That is a person's sign-off on unverified model
97
+ content, so it follows the same rule as approval itself, only stricter:
98
+
99
+ 1. Present the open count and every group by its Audit name (or the total only, when `groups` is
100
+ `null`) before asking anything. Say that the findings stay open and are listed in the Audit tab;
101
+ never describe them as resolved.
102
+ 2. Accept them only when the user explicitly says, in this conversation, to approve with these
103
+ findings accepted. Approving the change is not enough on its own, and neither is silence, a
104
+ previous approval, or the fact that this AI read or edited the model. The safe default is that
105
+ nothing is approved.
106
+ 3. When the user has accepted them, add the exact values the review returned (never values you
107
+ derived or remembered) to the approval POST:
108
+
109
+ ```json
110
+ "acceptOpenImportFindings": { "contractHash": "<review contractHash>", "digest": "<review digest>", "open": <review open> }
111
+ ```
112
+
113
+ 4. A 428 `import-findings-acceptance-required` or 409 `import-findings-acceptance-stale` is a question
114
+ for the user, not a retry: nothing was approved and no operation was claimed. Show the server's
115
+ sentence and its `importFindings` (they describe the copy that would actually be approved), ask
116
+ again, and send a new operation ID and token if the user then accepts.
117
+ 5. A review that carries `nothingDrawn` (or a 422 `tekla-nothing-drawn`) means nothing in the copy
118
+ could be drawn, so there is nothing to approve yet. Report its sentence, point to the Audit tab,
119
+ and do not offer to approve. A review that carries `unreadableFindings` means the copy declares
120
+ open findings this version of FloLess cannot read, so they can be neither shown nor accepted:
121
+ report its sentence and do not offer to approve.
122
+ 6. These refusals are not questions for the user. Nothing was approved, and none of them is solved by
123
+ resending the same request:
124
+ - A 400 `import-findings-acceptance-invalid`: the `acceptOpenImportFindings` you sent was not in
125
+ the expected shape, so it is your own body that was wrong. Fetch the review again and, only when
126
+ it shows the same findings the user accepted, send its `contractHash`, `digest` and `open`
127
+ exactly as returned, with a new operation ID and token, once. If that is refused again, stop and
128
+ report the server's sentence.
129
+ - A 422 `import-findings-unreadable`: the copy declares open findings FloLess cannot read. Report
130
+ the server's sentence and follow its remedy before starting any new approval.
131
+ - A 422 `tekla-approval-refused`: the server refused the copy itself after the approval started;
132
+ the operation reads `abandoned`. Report the server's sentence and follow its remedy before
133
+ starting any new approval.
134
+ 7. Whenever you summarise History or the approved state, relay the label the server sends, so an
135
+ approval that accepted findings is never presented as a plain one:
136
+ - `acceptedImportFindingsNote` on a History row or an `/approved` read;
137
+ - `acceptedImportFindingsNote` on an approval result and on a `complete` receipt;
138
+ - `latestAcceptedImportFindingsNote` on each project in the approved-projects listing;
139
+ - `omitted` in the approved-projects listing: a project whose approval could not be read or
140
+ verified just now. Relay its `reason`; never report it as a project nobody approved;
141
+ - `approvedHeadImportFindings.note` on the review;
142
+ - `approvedImportFindings.note` on the model editor's state; when that state carries
143
+ `approvalDetailsUnavailable` instead, say the approval details are unavailable, never that it is
144
+ a plain approval.
145
+ 8. A refusal of "Latest approved" (an `/approved` read or a model report) that carries
146
+ `lastVerifiedVersion` names an older approved version that still verifies. Relay the server's
147
+ sentence and let the user choose; never read or report that version, or approve again, yourself.
75
148
 
76
149
  ## Leave pending and discard
77
150
 
@@ -131,6 +204,8 @@ accepted active project.
131
204
  ## Hard boundaries
132
205
 
133
206
  - Never auto-approve because this AI created or edited the contract.
207
+ - Never send `acceptOpenImportFindings` on your own judgment; only the user can accept open import
208
+ findings, after you have shown them.
134
209
  - Never call raw `aware` commands for project approval, history, checkpoints, merges, or exports.
135
210
  - Never edit contract JSON to synthesize a selective approval, discard, rebase, or checkpoint action.
136
211
  - Never use the legacy body-less project approval as a fallback. A 428 is a required review gate.
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: floless-app-onboarding
3
- description: This skill should be used to onboard a user into floless.app and its AWARE runtime as a guided, re-runnable walkthrough, or to answer a focused read-only request queued by the FloLess Instructor strip. It first explains what AWARE is (the runtime), checks the installed AWARE version and offers an update, maps the command surface, and shows the AVAILABLE agents via the `aware agent catalog` command (installing one on request); then it tours floless.app (the 3-column chat/canvas/inspect UI, the Compile-Approve-Run gate, Simulate vs real Run, Templates, Routines, the Agents library, Bake and Graft, the Inspect tabs, the version footer) and the three floless skills (bridge, routines, workflows). Use it when the user is new or wants a refresher, on triggers like "onboard me", "get me started", "I'm new to floless.app or AWARE", "give me a tour", "how do I use this", "walk me through floless.app", "what can AWARE do", "show me the agents", or "/floless-app-onboarding". It can be re-invoked anytime for the whole tour or a single section.
3
+ description: This skill should be used to onboard a user into floless.app and its AWARE runtime as a guided, re-runnable walkthrough, or to answer a focused read-only request queued by the FloLess Instructor strip. It first explains what AWARE is (the runtime), checks the installed AWARE version and offers an update, maps the command surface, and shows the AVAILABLE agents via the `aware agent catalog` command (installing one on request); then it tours floless.app (the 3-column chat/canvas/inspect UI, the Compile-Approve-Run gate, Simulate vs real Run, Templates, Routines, the Tools library, Bake and Graft, the Inspect tabs, the version footer) and the three floless skills (bridge, routines, workflows). Use it when the user is new or wants a refresher, on triggers like "onboard me", "get me started", "I'm new to floless.app or AWARE", "give me a tour", "how do I use this", "walk me through floless.app", "what can AWARE do", "show me the agents", or "/floless-app-onboarding". It can be re-invoked anytime for the whole tour or a single section.
4
4
  metadata:
5
- version: 0.1.3
5
+ version: 0.1.4
6
6
  ---
7
7
 
8
8
  # Onboarding a user into floless.app + AWARE
@@ -79,9 +79,9 @@ Offer this list when the user wants to jump. Each item maps to a section in a re
79
79
  **Arc B — floless.app (the UI)** — `references/floless-app-tour.md`
80
80
  - **B1 · The 3-column window** — chat│canvas│inspect; the app is the prompt, the browser is the window.
81
81
  - **B2 · The gate** — Compile → Approve → Run; the source-hash Run gate; Simulate vs real Run.
82
- - **B3 · Templates, Routines, Agents, Inspect** — the panels and tabs the user will actually click.
82
+ - **B3 · Templates, Routines, Tools, Inspect** — the panels and tabs the user will actually click.
83
83
  - **B4 · The footer** — installed AWARE version + app version; updating AWARE / the app from here.
84
- - **B5 · Bake & Graft** — export a workflow as an agent (Bake); import your own tool as an agent (Graft).
84
+ - **B5 · Bake & Graft** — export a workflow as a tool (Bake); import your own software as a tool (Graft).
85
85
  - **B6 · The floless skills** — bridge / routines / workflows, and how to drive them from the terminal.
86
86
  - **B7 · How to run + best practices** — the everyday loop and the habits that keep it deterministic.
87
87
 
@@ -147,7 +147,7 @@ aware agent has <agent> <capability> # exit 0 if it exposes that capabilit
147
147
  aware agent install <id>
148
148
  ```
149
149
  It lands under `~/.aware/agents/<id>/`, then appears in `aware agent list` and is usable as a
150
- workflow node (`agent: <id>`). It also shows up in floless.app's **`⊞ Agents`** library (B3).
150
+ workflow node (`agent: <id>`). It also shows up in floless.app's **Tools** library (≡ menu → Tools, Ctrl+G; B3) — FloLess calls installed AWARE agents *tools* when talking to the user.
151
151
 
152
152
  **Degradation — older AWARE has no catalog (handle this gracefully):**
153
153
  The catalog commands are newer than some installs. If `aware agent catalog` errors, is an unknown
@@ -56,11 +56,11 @@ re-Compile. That gate is what keeps runs reproducible.
56
56
 
57
57
  ---
58
58
 
59
- ## B3 · Templates, Routines, Agents, Inspect
59
+ ## B3 · Templates, Routines, Tools, Inspect
60
60
 
61
61
  The panels and buttons the user will actually click:
62
62
 
63
- - **Templates (★):** star any node on the canvas — or, inside the Agents library, any command — to
63
+ - **Templates (★):** star any node on the canvas — or, inside the Tools library, any command — to
64
64
  save it as a reusable **Template**. It appears in the template bar and is reusable in **any**
65
65
  workflow, and persists across projects. The terminal AI is *template-aware*: when a plain-English
66
66
  request matches a saved Template, it reuses that saved logic instead of rebuilding it.
@@ -68,8 +68,10 @@ The panels and buttons the user will actually click:
68
68
  07:00) or on a **trigger** (a live event, e.g. *whenever your Tekla model changes*). Runs happen on
69
69
  this machine through your live host, exactly like clicking ▶ Run. Authoring path: the
70
70
  **floless-app-routines** skill (B6).
71
- - **Agents (`⊞ Agents`):** the **Agents library** — every installed agent, each command starrable as a
72
- Template. Agents you install (A4) show up here. It's also the entry point to **Graft** (B5).
71
+ - **Tools (≡ menu → Tools, or Ctrl+G):** the **Tools library** — every installed AWARE agent, shown
72
+ to the user as a *tool*, each command starrable as a Template. Tools you install (A4) show up here.
73
+ It's also the entry point to **Graft** (B5). (In FloLess, "Agents" is reserved for delegated
74
+ responsibilities; always call the installable AWARE agents **tools** when talking to the user.)
73
75
  - **Inspect (right panel):** click any node → its details. The tabs surface the node's
74
76
  **Description / Skill**, its **Code** (the real source — an `exec` node's C#, syntax-highlighted),
75
77
  and the live **Execution** trace while a run is in flight. A report/viewer node carries a
@@ -96,24 +98,24 @@ The bottom strip shows the **installed AWARE version** and the **floless.app ver
96
98
 
97
99
  ## B5 · Bake & Graft (the two killer moves)
98
100
 
99
- A matched pair — the input and output sides of "turn things into agents":
101
+ A matched pair — the input and output sides of "turn things into tools":
100
102
 
101
- - **Bake — export a workflow as an agent.** (Reachable from the workflow menu as **"Bake into
102
- agent"**; the confirm action carries the **⊙ Bake** glyph.) Takes a working multi-node `.flo` and
103
- packages it as a single **callable agent** whose inputs become the agent's parameters. AWARE
104
- reinstalls it with that exposed interface; it then appears in the **Agents library** as one callable
103
+ - **Bake — export a workflow as a tool.** (Reachable from the ≡ menu as **"Bake into
104
+ tool"**; the confirm action carries the **⊙ Bake** glyph.) Takes a working multi-node `.flo` and
105
+ packages it as a single **callable tool** (an AWARE agent) whose inputs become the tool's parameters. AWARE
106
+ reinstalls it with that exposed interface; it then appears in the **Tools library** as one callable
105
107
  node that other workflows can drop in. (Mechanism: `exposes-as-agent` + `exposed-commands` in the
106
108
  `.flo`.) Use it to turn a proven workflow into a reusable building block.
107
- - **Graft — import your own tool as an agent.** (Reachable from the **`⊞ Agents`** library —
108
- **"Graft new agent"** — or the workflow menu.) The input-side mirror of Bake. Turn a foreign tool
109
+ - **Graft — import your own software as a tool.** (Reachable from the **Tools** library —
110
+ **"⊕ Graft new tool"** — or the ≡ menu as **"Graft into tool"**.) The input-side mirror of Bake. Turn a foreign tool
109
111
  you already own — a .NET DLL (or a whole folder of them), an OpenAPI spec, a NuGet/npm package, a
110
- COM ProgID, a CLI — into a first-class AWARE agent you can compose. The hero case: an in-house Tekla
112
+ COM ProgID, a CLI — into a first-class tool (an AWARE agent) you can compose. The hero case: an in-house Tekla
111
113
  plugin becomes a headless command you can run across an entire model at 2am. (Mechanism: AWARE's
112
114
  `aware build agent --from-…`, A3; floless stages a preview of the discovered commands before you
113
115
  commit.)
114
116
 
115
117
  The full arc: **Graft your tool → compose it into a workflow → Bake the workflow → distribute.** That
116
- is how floless.app turns "use the agents we ship" into "any tool you own becomes composable AI
118
+ is how floless.app turns "use the tools we ship" into "any tool you own becomes composable AI
117
119
  infrastructure." Keep it concept-level here; the deep authoring lives in **floless-app-workflows**.
118
120
 
119
121
  ---
@@ -2,7 +2,7 @@
2
2
  name: floless-app-routines
3
3
  description: This skill should be used when the user wants to set up a floless.app workflow (.flo app) to run automatically — "routines" — either on a timer (schedule) or on a live event (trigger). Triggers on requests like "schedule tekla-bom-by-phase every weekday at 7am", "run this workflow every 2 hours", "run my BOM whenever the Tekla model changes", "watch the model and run X on each change", "set up a trigger routine", "list my routines", "disable the morning routine", "delete that routine". Covers the floless.app routines REST API (create / list / edit / enable-disable / delete / run-now), the schedule presets, the event-trigger kind, the confirm-first rule, and the runnable gate.
4
4
  metadata:
5
- version: 0.1.2
5
+ version: 0.1.3
6
6
  ---
7
7
 
8
8
  # Setting up floless.app routines (automatic .flo runs)
@@ -153,6 +153,9 @@ curl -s -X DELETE http://127.0.0.1:4317/api/routines/<id>
153
153
  with a clear message — relay it and offer to delete one.
154
154
  - **Workflow is fixed after create** (both kinds). `PATCH` cannot change a routine's workflow or its
155
155
  `kind`. To switch workflows or convert schedule↔trigger, delete and recreate.
156
+ - **A FloLess-owned workflow follows its publication.** A FloLess-owned workflow is scheduled by its
157
+ current `activePublication.runtimeAppId`; the routine follows every later publish on its own — never
158
+ delete and recreate a routine after publishing.
156
159
  - **Run-now is schedule-only.** `POST /api/routines/:id/run` on a trigger returns **400**
157
160
  ("a trigger routine runs on its event — enable/disable it instead"). Don't offer run-now for a
158
161
  trigger; the control is the enable/disable toggle (start/stop the live watcher).
@@ -15,7 +15,7 @@ a `trigger` binding and, in `GET /api/routines`, a live `session` snapshot (no `
15
15
  "id": "morning-bom-export", // slug, generated from the name (unique)
16
16
  "name": "Morning BOM export",
17
17
  "kind": "schedule", // "schedule" | "trigger" (defaults to schedule if omitted)
18
- "workflow": "tekla-bom-by-phase", // installed app id (immutable after create)
18
+ "workflow": "tekla-bom-by-phase", // installed app id (immutable after create; an owned workflow's follows its publication)
19
19
  "inputs": { "phase": 3 }, // coerced to the app's declared input types
20
20
  "schedule": { "kind": "weekdays", "time": "07:00" },
21
21
  "enabled": true,
@@ -109,13 +109,16 @@ Supporting reads (same server):
109
109
  or `POST /:id/run` on a **trigger** (`{ "error": "a trigger routine runs on its event — enable/disable it instead" }`).
110
110
  - `402` — no valid subscription (the app must be signed in).
111
111
  - `404` — no routine with that id.
112
- - `409` — **two different refusals; tell them apart by the `running` flag, never by the status alone.**
112
+ - `409` — **different refusals; tell them apart by the `running` flag and the message, never by the status alone.**
113
113
  - On `POST /api/routines` (create): `{ "error": "Routine limit reached (15). Delete one first." }` —
114
114
  the cap (both kinds share it). Relay it and offer to delete an existing routine.
115
115
  - On `POST /:id/run`: `{ "running": true, "error": "this routine is already running or waiting its
116
116
  turn" }` — that routine is already queued or mid-run and **nothing was started**. Say it is
117
117
  already running or waiting; do NOT relay a cap message and do NOT offer to delete anything.
118
118
  Retrying is pointless until that fire completes.
119
+ - On `POST /api/routines` (create), rarely: `{ "error": "this installed workflow is not the owner’s active
120
+ publication" }` — a FloLess-owned workflow was published again while the routine was being created.
121
+ Retry the same request; the server resolves the current publication.
119
122
 
120
123
  ## Notes on behavior (so expectations are right)
121
124
 
@@ -128,6 +131,15 @@ Supporting reads (same server):
128
131
  **dropped**, not queued behind itself: a routine whose run outlasts its interval would otherwise
129
132
  run back-to-back forever. On the scheduled path the drop is silent to the user (the server logs it
130
133
  and `nextFireAt` moves on); on `POST /:id/run` it is the `409 { running: true }` above.
134
+ - **A FloLess-owned workflow follows its publication.** A FloLess-owned workflow is scheduled by its
135
+ current `activePublication.runtimeAppId` (pass that id, or any earlier publication's id — the server
136
+ resolves the current one). The routine follows every later publish on its own: `workflow` changes to
137
+ the new runtime id, a trigger keeps listening on the new version, and its `trigger` binding follows
138
+ the new source. Never delete and recreate a routine after publishing. Archiving the workflow pauses
139
+ the routine (a schedule fire is `skipped`, a trigger is shown `broken`). Restoring resumes it only
140
+ when the publication comes back intact: if the workflow's source was edited since it was published,
141
+ restore leaves the workflow unpublished and the routine stays paused — publish it again and the
142
+ routine follows the new publication.
131
143
  - **Inputs.** Only the app's declared inputs are kept, coerced to their declared type; omit an
132
144
  input to use the app's default. Keys are validated `[A-Za-z0-9._-]`.
133
145
  - **Triggers (event-driven).** A `kind:"trigger"` routine hosts a long-lived `aware app run` of a
@@ -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.16.0
5
+ version: 0.17.0
6
6
  ---
7
7
 
8
8
  # Steel Model — guide a steel drawing set into an editable model
@@ -244,7 +244,9 @@ skill's step 8 has the procedure; group ends answered alike, and read any pictur
244
244
  instead of a number before asking again). The person's click on the card is what makes the height theirs in
245
245
  the model; a "yes" in the chat is indistinguishable from your own guess and is discarded with it. So
246
246
  never finish a read by telling the person to retype heights they already answered — if you asked on a
247
- card, they are already in the model and the question is closed.
247
+ card, they are already in the model and the question is closed. (A member already in the published
248
+ model is the one exception: in a revision read its answered height is proposed in the staged review, so
249
+ tell the person to accept that member change there.)
248
250
 
249
251
  - **Read each framing plan** via **`floless-app-steel-takeoff`** — it runs the filter pre-stage
250
252
  (isolate the steel linework by layer/thickness/colour), the vision read, the AISC/EN/BS lookup
@@ -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.66.0
10
+ version: 0.67.0
11
11
  ---
12
12
 
13
13
  # Steel Takeoff — read drawings into `steel.model/v2`
@@ -1299,14 +1299,19 @@ Work in this order:
1299
1299
  raised again and **you never tell the person to fix an answered height in the editor**.
1300
1300
  5. The audit and publish responses carry `heightAnswers`: `applied` counts the answers that landed,
1301
1301
  and each `notApplied` row names a member end whose answer did NOT land, with a plain `why` (the
1302
- drawing states that end's height, the member is already in the published model, …). **Relay every
1303
- `why` to the person, naming the member and end** — an answer they gave that did not land is never
1304
- left unsaid.
1305
-
1306
- Asking again about an end suspends its earlier answer until the new card is answered. Ends of a
1307
- member already in the published model are refused — those heights change in the steel editor. A
1308
- read not running in FloLess AI Chat gets `409 height-question-needs-chat`: then ask in the
1309
- conversation, and the end stays a question on the model as before.
1302
+ drawing states that end's height, the read did not submit that member, …). **Relay every `why` to
1303
+ the person, naming the member and end** — an answer they gave that did not land is never left
1304
+ unsaid.
1305
+ 6. **In a revision read you may ask about a member already in the published model too** — a column
1306
+ base or hanger end the person knows has moved. The card shows them what the model held when you
1307
+ asked. Their answer is NOT written straight in: it is **proposed as a member change in the staged
1308
+ review**, and lands only if they accept that row there. `heightAnswers.proposed` lists those ends
1309
+ (`toPropose` on a response that staged nothing yet); relay each `why`, and tell the person to
1310
+ accept the change in the review. Never tell them to retype it in the editor.
1311
+
1312
+ Asking again about an end suspends its earlier answer until the new card is answered. A read not
1313
+ running in FloLess AI Chat gets `409 height-question-needs-chat`: then ask in the conversation, and
1314
+ the end stays a question on the model as before.
1310
1315
 
1311
1316
  **Group ends the person will answer alike.** Give them the same `group` (one line, e.g.
1312
1317
  `"W10x33 column bases"`): the card shows them under one header, and the person can tick the whole
@@ -2,7 +2,7 @@
2
2
  name: floless-app-workflows
3
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).
4
4
  metadata:
5
- version: 0.6.1
5
+ version: 0.6.2
6
6
  ---
7
7
 
8
8
  # Building reusable .flo workflows in floless.app
@@ -286,7 +286,7 @@ Mechanics (all confirmed against the substrate + a real run):
286
286
  without a live Tekla. (An `exec` inner node needs the real host.) Note: an inline predicate sees the
287
287
  upstream *event* as `e.<field>`, NOT `inputs.<field>` — don't assert routing via the predicate body.
288
288
 
289
- floless.app play (designed, now unblocked): a "Bake into agent" affordance that rewrites a working
289
+ floless.app play (designed, now unblocked): a "Bake into tool" affordance (≡ menu) that rewrites a working
290
290
  `.flo` to add `exposes-as-agent` + `exposed-commands` mirroring the app's `inputs:`. Thin-UI: a
291
291
  manifest edit + recompile, no engine. See the design doc for the Stage-1 plan.
292
292
 
@@ -1,5 +1,5 @@
1
1
  app: tekla-parser
2
- version: 0.3.0
2
+ version: 0.3.1
3
3
  display-name: Tekla Parser
4
4
  publisher: floless
5
5
  module: tekla
@@ -12,6 +12,10 @@ description: |
12
12
  never edited, saved, synchronized, or connected to a running Tekla application.
13
13
  exposes-as-agent: false
14
14
  changelog:
15
+ - version: 0.3.1
16
+ summary: Give large models time to finish reading
17
+ changes:
18
+ - "Changed: reading a model may now take up to 30 minutes instead of 10, so a large model on a busy computer can finish instead of being stopped part-way."
15
19
  - version: 0.3.0
16
20
  summary: Open a model even when its Tekla catalogue files are missing
17
21
  changes:
@@ -47,8 +51,9 @@ nodes:
47
51
  command: read-snapshot
48
52
  mode: read
49
53
  description: |
50
- Copy the admitted source closure into AWARE's bounded reader, invoke the exact enrolled read-only
51
- parser with its short-lived authorization, and return only authenticated model artifacts.
54
+ Read the copied Tekla model files with the installed Tekla Parser and return a checked,
55
+ read-only snapshot of the model for review. The parser gets a short-lived permission for this
56
+ one read, and the original model is never changed.
52
57
  config:
53
58
  contract: tekla.model/v2
54
59
  reader-schema-version: model-reference-reader/v3
@@ -63,3 +68,8 @@ nodes:
63
68
  root: "{{ inputs.source_root }}"
64
69
  degraded-mode: allow
65
70
  conversion-settings: {}
71
+ # AWARE stops a provider call after 10 minutes unless told otherwise. A model whose database
72
+ # expands to ~850 MiB reads in about 6 minutes on an idle machine and was stopped at 10 on a
73
+ # busy one (#1974); 30 minutes is AWARE's ceiling for one provider call.
74
+ limits:
75
+ conversionMs: 1800000