@floless/app 0.115.0 → 0.117.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.
@@ -0,0 +1,263 @@
1
+ {
2
+ "schemaId": "https://floless.app/schemas/steel.takeoff/v1",
3
+ "propertyPaths": [
4
+ "$.$defs.callout.properties.disp",
5
+ "$.$defs.callout.properties.kind",
6
+ "$.$defs.callout.properties.target",
7
+ "$.$defs.callout.properties.target.properties.number",
8
+ "$.$defs.callout.properties.target.properties.sheet",
9
+ "$.$defs.callout.properties.text",
10
+ "$.$defs.col.properties.bos",
11
+ "$.$defs.col.properties.conn",
12
+ "$.$defs.col.properties.connVerified",
13
+ "$.$defs.col.properties.detail",
14
+ "$.$defs.col.properties.note",
15
+ "$.$defs.col.properties.tos",
16
+ "$.$defs.connection.properties.detail",
17
+ "$.$defs.connection.properties.id",
18
+ "$.$defs.connection.properties.image",
19
+ "$.$defs.connection.properties.notes",
20
+ "$.$defs.connection.properties.notes.items.properties.source",
21
+ "$.$defs.connection.properties.notes.items.properties.text",
22
+ "$.$defs.connection.properties.recipe",
23
+ "$.$defs.connection.properties.source",
24
+ "$.$defs.connection.properties.targets",
25
+ "$.$defs.connection.properties.type",
26
+ "$.$defs.connectionRecipe.properties.kind",
27
+ "$.$defs.connectionRecipe.properties.params",
28
+ "$.$defs.connectionRecipe.properties.schedule",
29
+ "$.$defs.connectionScheduleRow.properties.match",
30
+ "$.$defs.connectionScheduleRow.properties.match.properties.depth",
31
+ "$.$defs.connectionScheduleRow.properties.match.properties.depth.properties.max",
32
+ "$.$defs.connectionScheduleRow.properties.match.properties.depth.properties.min",
33
+ "$.$defs.connectionScheduleRow.properties.match.properties.depth.properties.unit",
34
+ "$.$defs.connectionScheduleRow.properties.match.properties.profile",
35
+ "$.$defs.connectionScheduleRow.properties.match.properties.profilePrefix",
36
+ "$.$defs.connectionScheduleRow.properties.match.properties.role",
37
+ "$.$defs.connectionScheduleRow.properties.params",
38
+ "$.$defs.detail.properties.disp",
39
+ "$.$defs.detail.properties.text",
40
+ "$.$defs.detailPlacement.properties.anchorId",
41
+ "$.$defs.detailPlacement.properties.detailName",
42
+ "$.$defs.detailPlacement.properties.id",
43
+ "$.$defs.detailPlacement.properties.n",
44
+ "$.$defs.detailPlacement.properties.opacity",
45
+ "$.$defs.detailPlacement.properties.pos",
46
+ "$.$defs.detailPlacement.properties.rotZ",
47
+ "$.$defs.detailPlacement.properties.sheet",
48
+ "$.$defs.detailPlacement.properties.size",
49
+ "$.$defs.detailPlacement.properties.u",
50
+ "$.$defs.dim.properties.a",
51
+ "$.$defs.dim.properties.aRef",
52
+ "$.$defs.dim.properties.axis",
53
+ "$.$defs.dim.properties.b",
54
+ "$.$defs.dim.properties.bRef",
55
+ "$.$defs.dim.properties.id",
56
+ "$.$defs.dim.properties.off",
57
+ "$.$defs.dim.properties.pin",
58
+ "$.$defs.dim.properties.rot",
59
+ "$.$defs.dim3.properties.a",
60
+ "$.$defs.dim3.properties.axis",
61
+ "$.$defs.dim3.properties.axisDir",
62
+ "$.$defs.dim3.properties.b",
63
+ "$.$defs.dim3.properties.id",
64
+ "$.$defs.dimRef.properties.g",
65
+ "$.$defs.dimRef.properties.m",
66
+ "$.$defs.dimRef.properties.pt",
67
+ "$.$defs.end.properties.conn",
68
+ "$.$defs.end.properties.connVerified",
69
+ "$.$defs.end.properties.detail",
70
+ "$.$defs.end.properties.note",
71
+ "$.$defs.end.properties.tos",
72
+ "$.$defs.end.properties.tosDef",
73
+ "$.$defs.filter.properties.active",
74
+ "$.$defs.filter.properties.colors",
75
+ "$.$defs.filter.properties.colors.items.properties.count",
76
+ "$.$defs.filter.properties.colors.items.properties.hex",
77
+ "$.$defs.filter.properties.colors.items.properties.on",
78
+ "$.$defs.filter.properties.elements",
79
+ "$.$defs.filter.properties.elements.items.properties.bbox",
80
+ "$.$defs.filter.properties.elements.items.properties.color",
81
+ "$.$defs.filter.properties.elements.items.properties.cx",
82
+ "$.$defs.filter.properties.elements.items.properties.cy",
83
+ "$.$defs.filter.properties.elements.items.properties.d",
84
+ "$.$defs.filter.properties.elements.items.properties.dashed",
85
+ "$.$defs.filter.properties.elements.items.properties.kind",
86
+ "$.$defs.filter.properties.elements.items.properties.layer",
87
+ "$.$defs.filter.properties.elements.items.properties.r",
88
+ "$.$defs.filter.properties.elements.items.properties.text",
89
+ "$.$defs.filter.properties.elements.items.properties.w",
90
+ "$.$defs.filter.properties.hide_title_block",
91
+ "$.$defs.filter.properties.layers",
92
+ "$.$defs.filter.properties.layers.items.properties.count",
93
+ "$.$defs.filter.properties.layers.items.properties.drawable",
94
+ "$.$defs.filter.properties.layers.items.properties.name",
95
+ "$.$defs.filter.properties.layers.items.properties.on",
96
+ "$.$defs.filter.properties.layers.items.properties.steel",
97
+ "$.$defs.filter.properties.mode",
98
+ "$.$defs.filter.properties.page",
99
+ "$.$defs.filter.properties.page.properties.bg_b64",
100
+ "$.$defs.filter.properties.page.properties.h",
101
+ "$.$defs.filter.properties.page.properties.rect",
102
+ "$.$defs.filter.properties.page.properties.w",
103
+ "$.$defs.filter.properties.sheets",
104
+ "$.$defs.filter.properties.steelBbox",
105
+ "$.$defs.filter.properties.thicknesses",
106
+ "$.$defs.filter.properties.thicknesses.items.properties.count",
107
+ "$.$defs.filter.properties.thicknesses.items.properties.on",
108
+ "$.$defs.filter.properties.thicknesses.items.properties.w",
109
+ "$.$defs.filterSheet.properties.elements",
110
+ "$.$defs.filterSheet.properties.elements.items.properties.bbox",
111
+ "$.$defs.filterSheet.properties.elements.items.properties.color",
112
+ "$.$defs.filterSheet.properties.elements.items.properties.cx",
113
+ "$.$defs.filterSheet.properties.elements.items.properties.cy",
114
+ "$.$defs.filterSheet.properties.elements.items.properties.d",
115
+ "$.$defs.filterSheet.properties.elements.items.properties.dashed",
116
+ "$.$defs.filterSheet.properties.elements.items.properties.kind",
117
+ "$.$defs.filterSheet.properties.elements.items.properties.layer",
118
+ "$.$defs.filterSheet.properties.elements.items.properties.r",
119
+ "$.$defs.filterSheet.properties.elements.items.properties.text",
120
+ "$.$defs.filterSheet.properties.elements.items.properties.w",
121
+ "$.$defs.filterSheet.properties.page",
122
+ "$.$defs.filterSheet.properties.page.properties.bg_b64",
123
+ "$.$defs.filterSheet.properties.page.properties.h",
124
+ "$.$defs.filterSheet.properties.page.properties.rect",
125
+ "$.$defs.filterSheet.properties.page.properties.w",
126
+ "$.$defs.filterSheet.properties.sheet",
127
+ "$.$defs.filterSheet.properties.steelBbox",
128
+ "$.$defs.filterSheet.properties.title",
129
+ "$.$defs.frame.properties.o",
130
+ "$.$defs.frame.properties.u",
131
+ "$.$defs.grid.properties.ends_x",
132
+ "$.$defs.grid.properties.ends_y",
133
+ "$.$defs.grid.properties.ext",
134
+ "$.$defs.grid.properties.hidden_z",
135
+ "$.$defs.grid.properties.labels_x",
136
+ "$.$defs.grid.properties.labels_y",
137
+ "$.$defs.grid.properties.labels_z",
138
+ "$.$defs.grid.properties.lines",
139
+ "$.$defs.grid.properties.on",
140
+ "$.$defs.grid.properties.origin",
141
+ "$.$defs.grid.properties.x",
142
+ "$.$defs.grid.properties.y",
143
+ "$.$defs.grid.properties.z",
144
+ "$.$defs.gridLine.properties.a",
145
+ "$.$defs.gridLine.properties.b",
146
+ "$.$defs.gridLine.properties.id",
147
+ "$.$defs.gridLine.properties.label",
148
+ "$.$defs.joint.properties.at",
149
+ "$.$defs.joint.properties.conn",
150
+ "$.$defs.joint.properties.geometry",
151
+ "$.$defs.joint.properties.id",
152
+ "$.$defs.joint.properties.kind",
153
+ "$.$defs.joint.properties.main",
154
+ "$.$defs.joint.properties.name",
155
+ "$.$defs.joint.properties.params",
156
+ "$.$defs.joint.properties.place",
157
+ "$.$defs.joint.properties.secondaries",
158
+ "$.$defs.joint.properties.source",
159
+ "$.$defs.joint.properties.verified",
160
+ "$.$defs.label.properties.disp",
161
+ "$.$defs.label.properties.text",
162
+ "$.$defs.member.properties.angle",
163
+ "$.$defs.member.properties.brace",
164
+ "$.$defs.member.properties.brace.properties.floor",
165
+ "$.$defs.member.properties.brace.properties.lowerEnd",
166
+ "$.$defs.member.properties.brace.properties.offset",
167
+ "$.$defs.member.properties.brace.properties.type",
168
+ "$.$defs.member.properties.col",
169
+ "$.$defs.member.properties.ends",
170
+ "$.$defs.member.properties.id",
171
+ "$.$defs.member.properties.material",
172
+ "$.$defs.member.properties.memberType",
173
+ "$.$defs.member.properties.mf",
174
+ "$.$defs.member.properties.position",
175
+ "$.$defs.member.properties.profile",
176
+ "$.$defs.member.properties.rfi",
177
+ "$.$defs.member.properties.role",
178
+ "$.$defs.member.properties.wp",
179
+ "$.$defs.meshPart.properties.id",
180
+ "$.$defs.meshPart.properties.indices",
181
+ "$.$defs.meshPart.properties.positions",
182
+ "$.$defs.meshPart.properties.role",
183
+ "$.$defs.plan.properties.callouts",
184
+ "$.$defs.plan.properties.clip",
185
+ "$.$defs.plan.properties.default_tos",
186
+ "$.$defs.plan.properties.details",
187
+ "$.$defs.plan.properties.dims",
188
+ "$.$defs.plan.properties.frame",
189
+ "$.$defs.plan.properties.grid",
190
+ "$.$defs.plan.properties.labels",
191
+ "$.$defs.plan.properties.members",
192
+ "$.$defs.plan.properties.pt_per_ft",
193
+ "$.$defs.plan.properties.raster_b64",
194
+ "$.$defs.plan.properties.segments",
195
+ "$.$defs.plan.properties.sheet",
196
+ "$.$defs.plan.properties.title",
197
+ "$.$defs.plan.properties.tos_callouts",
198
+ "$.$defs.segment.properties.a",
199
+ "$.$defs.segment.properties.b",
200
+ "$.$defs.segment.properties.id",
201
+ "$.$defs.segment.properties.o",
202
+ "$.$defs.tos_callout.properties.disp",
203
+ "$.$defs.tos_callout.properties.elev_in",
204
+ "$.$defs.tos_callout.properties.type",
205
+ "$.properties.active",
206
+ "$.properties.connections",
207
+ "$.properties.custom_details",
208
+ "$.properties.detail_bubbles",
209
+ "$.properties.detail_placements",
210
+ "$.properties.dims3d",
211
+ "$.properties.filter",
212
+ "$.properties.joints",
213
+ "$.properties.member_styles",
214
+ "$.properties.member_styles.additionalProperties.properties.dash",
215
+ "$.properties.member_styles.additionalProperties.properties.weight",
216
+ "$.properties.moment_frames",
217
+ "$.properties.palette",
218
+ "$.properties.plans",
219
+ "$.properties.profile_colors",
220
+ "$.properties.prop_labels",
221
+ "$.properties.prop_labels.properties.ids",
222
+ "$.properties.prop_labels.properties.placement",
223
+ "$.properties.prop_labels.properties.props",
224
+ "$.properties.prop_labels.properties.selected_only",
225
+ "$.properties.read_notes",
226
+ "$.properties.sheet_previews",
227
+ "$.properties.source",
228
+ "$.properties.source.properties.name",
229
+ "$.properties.source.properties.path",
230
+ "$.properties.source.properties.read_at",
231
+ "$.properties.source.properties.sha256",
232
+ "$.properties.source.properties.sheet",
233
+ "$.properties.target_confidence",
234
+ "$.properties.type",
235
+ "$.properties.views",
236
+ "$.properties.views.items.properties.camera",
237
+ "$.properties.views.items.properties.clips",
238
+ "$.properties.views.items.properties.generated",
239
+ "$.properties.views.items.properties.generated.oneOf[0].properties.ahead",
240
+ "$.properties.views.items.properties.generated.oneOf[0].properties.at",
241
+ "$.properties.views.items.properties.generated.oneOf[0].properties.behind",
242
+ "$.properties.views.items.properties.generated.oneOf[0].properties.kind",
243
+ "$.properties.views.items.properties.generated.oneOf[0].properties.label",
244
+ "$.properties.views.items.properties.generated.oneOf[0].properties.look",
245
+ "$.properties.views.items.properties.generated.oneOf[0].properties.sheet",
246
+ "$.properties.views.items.properties.generated.oneOf[0].properties.v",
247
+ "$.properties.views.items.properties.generated.oneOf[1].properties.above",
248
+ "$.properties.views.items.properties.generated.oneOf[1].properties.at",
249
+ "$.properties.views.items.properties.generated.oneOf[1].properties.below",
250
+ "$.properties.views.items.properties.generated.oneOf[1].properties.kind",
251
+ "$.properties.views.items.properties.generated.oneOf[1].properties.label",
252
+ "$.properties.views.items.properties.generated.oneOf[1].properties.look",
253
+ "$.properties.views.items.properties.generated.oneOf[1].properties.sheet",
254
+ "$.properties.views.items.properties.generated.oneOf[1].properties.v",
255
+ "$.properties.views.items.properties.id",
256
+ "$.properties.views.items.properties.mode",
257
+ "$.properties.views.items.properties.name",
258
+ "$.properties.views.items.properties.objects",
259
+ "$.properties.views.items.properties.order",
260
+ "$.properties.views.items.properties.projection",
261
+ "$.properties.weights"
262
+ ]
263
+ }
@@ -2,7 +2,7 @@
2
2
  name: floless-app-bridge
3
3
  description: This skill should be used when the user is driving the floless.app web UI (the local prompt-native front door at http://127.0.0.1:4317) and wants the terminal AI to act on what they did there — picking up queued Tweak requests, "use this template" requests, or the context of a node they selected/edited on the canvas. Use it when the user says things like "apply the tweak I just queued", "I clicked Tweak on the bom node — make that change", "pick up my floless request", "what's pending in floless", or after they double-click/Tweak a node in the UI. ALSO use it the moment the user pastes a message that begins with a `[floless-request type=… id=…]` marker — that is a request copied from the FloLess Dashboard, NOT a literal instruction to run; resolve it via the API. It reads the floless.app local API, applies the change to the app's .flo, recompiles, and clears the request.
4
4
  metadata:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  ---
7
7
 
8
8
  # floless.app ↔ terminal bridge
@@ -2,7 +2,7 @@
2
2
  name: floless-app-onboarding
3
3
  description: This skill should be used to onboard a user into floless.app and its AWARE runtime as a guided, re-runnable walkthrough. 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.
4
4
  metadata:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  ---
7
7
 
8
8
  # Onboarding a user into floless.app + AWARE
@@ -2,7 +2,7 @@
2
2
  name: floless-app-queue
3
3
  description: This skill should be used when the user has MULTIPLE floless.app requests queued from the Dashboard and wants to see them and choose which to process, rather than the AI just picking up the oldest one. Use it when the user says things like "what's in my floless queue", "list my queued floless requests", "show me the pending requests and let me pick", "I queued a few tweaks — which should I apply?", "let me choose what to process", or "pick from the floless queue". It lists the pending requests from GET /api/requests in plain language (type, which app/node, the instruction), asks the user which one(s) to apply, then hands each chosen request to the owning skill (floless-app-workflows / -tweak-contract / -ui / -rebake) which applies it and clears it. It is the interactive picker that sits in front of floless-app-bridge (which is the actual pull-apply-clear engine).
4
4
  metadata:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  ---
7
7
 
8
8
  # floless.app queue picker
@@ -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.0
5
+ version: 0.1.1
6
6
  ---
7
7
 
8
8
  # Setting up floless.app routines (automatic .flo runs)
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: floless-app-steel-model
3
- description: The front-door guide for turning a structural steel drawing SET into an editable model in floless.app — the "Steel Model" flow. This skill orchestrates the whole pipeline — set up a project folder, learn the set into plain-English knowledge files, provision the right AWARE agents (region-specific steel detailer plus any bake targets), confirm which sheets are plans / elevations / details, then hand off to the Steel Takeoff reader to read each plan into a steel.takeoff/v1 contract — with explicit confirm gates between stages. Use it when a user wants to model steel from a drawing SET or asks things like "model this steel job from the drawings", "take off this whole set", "start a steel takeoff project", "turn these structural drawings into a model", "I have a PDF set of framing plans", or "/floless-app-steel-model". It is re-runnable — resume at any stage. For a single already-isolated framing plan the Steel Takeoff reader (floless-app-steel-takeoff) can be used directly; this guide is for driving a real job end to end.
3
+ description: The front-door guide for turning a structural steel drawing SET into an editable steel.model/v2 model in floless.app — the "Steel Model" flow. This skill orchestrates the whole pipeline — set up a project folder, learn the set into plain-English knowledge files, provision the right AWARE agents (region-specific steel detailer plus any bake targets), confirm which sheets are plans / elevations / details, then hand off to the Steel Takeoff reader. The reader composes steel.takeoff/v1 only as internal first-read staging; floless.app converts it transactionally so a new project is born steel.model/v2. Use it when a user wants to model steel from a drawing SET or asks things like "model this steel job from the drawings", "take off this whole set", "start a steel takeoff project", "turn these structural drawings into a model", "I have a PDF set of framing plans", or "/floless-app-steel-model". It is re-runnable — resume at any stage. For a single already-isolated framing plan the Steel Takeoff reader (floless-app-steel-takeoff) can be used directly; this guide is for driving a real job end to end.
4
4
  metadata:
5
- version: 0.3.0
5
+ version: 0.5.0
6
6
  ---
7
7
 
8
8
  # Steel Model — guide a steel drawing set into an editable model
@@ -12,7 +12,7 @@ metadata:
12
12
  The **front door** to floless.app's steel pipeline. A real steel job arrives as a *set* of PDFs
13
13
  (framing plans, elevations, sections, details, schedules) plus firm conventions — not a single
14
14
  clean plan. This guide drives that whole job: project setup → learn the set → provision agents →
15
- classify the sheets → read each framing plan into an editable **steel.takeoff/v1 contract**, then
15
+ classify the sheets → read each framing plan into an editable **steel.model/v2 model**, then
16
16
  point the user at the on-canvas tools (filter, 3D, IFC/Tekla export, BOM, the connection library,
17
17
  clickable callouts).
18
18
 
@@ -142,9 +142,12 @@ the user at the editor:
142
142
 
143
143
  - **Read each framing plan** via **`floless-app-steel-takeoff`** — it runs the filter pre-stage
144
144
  (isolate the steel linework by layer/thickness/colour), the vision read, the AISC/EN/BS lookup
145
- via the detailer, honors `target_confidence`, writes the `steel.takeoff/v1` contract, and opens
146
- the overlay editor. One contract per `steel-model` app; multi-sheet sets ride the filter's
147
- `sheets[]` + the editor's plan switcher.
145
+ via the detailer, authors the model datum plus two labelled registration controls per plan,
146
+ honors `target_confidence`, composes the internal `steel.takeoff/v1` reader staging document, and
147
+ submits it through the project revision-read endpoint. The server converts and atomically
148
+ publishes **`steel.model/v2`** — so a new project is *born* v2, not migrated into it later. The
149
+ filter-only pre-read state is provisional; the completed model is v2. One contract per
150
+ `steel-model` app; multi-sheet sets ride the model's plan views and switcher.
148
151
  - **Pre-fill the connection library** from `company-rules.md` (stage 2): emit the firm's rows into
149
152
  the contract's `connections[]` with `source:"company-rules"`; the user reviews/assigns them per
150
153
  member end in the editor's **Connections** panel (the per-end picker + confidence card).
@@ -2,7 +2,7 @@
2
2
  name: floless-app-steel-takeoff
3
3
  description: Read a structural steel drawing into an editable steel.takeoff/v1 contract in floless.app — the "Steel Takeoff" reader. Triggers on a pending floless `rebake` request for the `steel-model` app (queued from its "Re-read & re-bake ▸" button), or asks like "read this framing plan into a takeoff", "turn this structural drawing into a takeoff", "bake my drawing into steel-model", "extract members from this PDF". Teaches the host AI to READ a steel drawing (PDF/image) with its own vision at COMPOSE time, build a steel.takeoff/v1 contract (members + profiles + elevations + weights from AISC lookup), write it to the contract store, and hand control to the editor — no model in the run path, no API key.
4
4
  metadata:
5
- version: 0.10.0
5
+ version: 0.12.0
6
6
  ---
7
7
 
8
8
  # Steel Takeoff — read a drawing into a steel.takeoff/v1 contract
@@ -251,7 +251,12 @@ native/display coords):
251
251
  - **The GET returned a contract** → send only the pre-read blocks to
252
252
  **`PUT /api/projects/<projectId>/steel-prepass`** with `{ filter }` and `If-Match: <that ETag>`.
253
253
  - **The GET returned nothing** (a project created by dropping a drawing) → this is the create case,
254
- so compose the whole document and `PUT /api/contract/steel-model` with `If-None-Match: *`.
254
+ so compose the whole document and
255
+ `PUT /api/contract/steel-model?project=<projectId>` with `If-None-Match: *`.
256
+ **`?project=` is not optional here.** The contract route scopes a write to a project ONLY through
257
+ that query parameter; without it you write the app-scoped draft instead — the project's pre-read
258
+ filter never lands, and `If-None-Match: *` can come back `412` against an unrelated draft that
259
+ happens to exist on the app.
255
260
 
256
261
  The prepass verb takes `filter`, `datum` and per-sheet `{ grid, datum_at, datum_ref, control2_at,
257
262
  control2_ref, elevation_in }` and **refuses `members`, `connections` and `joints` by name**, so it
@@ -1041,8 +1046,32 @@ Key field rules:
1041
1046
  |---|---|
1042
1047
  | the pre-read blocks — §1b `filter`, §1c `grid`, §1d `datum` + the per-sheet registration keys | **`PUT /api/projects/<projectId>/steel-prepass`** |
1043
1048
  | the same, on a **`steel.model/v2`** model — `filter` + the per-sheet registration keys ONLY, no `grid`, no `datum` | the same verb; it refuses the other two by name |
1044
- | the finished takeoff (§4's whole document: `members`, profiles, elevations) | `PUT /api/contract/steel-model` |
1045
- | a project's FIRST document, when the `GET` returned nothing at all | `PUT /api/contract/steel-model` with `If-None-Match: *` |
1049
+ | the finished takeoff (§4's whole document: `members`, profiles, elevations) **into a Workspaces project** — including the project's FIRST one | **`POST /api/projects/<projectId>/revision-requests`** then **`POST /api/projects/<projectId>/revision-read`** (§9) |
1050
+ | the finished takeoff when there is **no project** (a plain app-scoped contract) | `PUT /api/contract/steel-model` (add `If-None-Match: *` when the `GET` returned no ETag) |
1051
+
1052
+ **A finished takeoff into a project goes through `revision-read`, never the contract PUT — and "it is the
1053
+ first document" does not change that** (#492). Both routes store the members, so the contract PUT looks
1054
+ like it worked: `200`, an ETag, and a project the user can open. What it silently skips is everything that
1055
+ makes the read a *version*:
1056
+
1057
+ - **No entry in the ledger.** An ordinary contract PUT calls `createVersion` nowhere — only rollback,
1058
+ Approve, `revision-read` and the v2 migration commit do. The project's History reads *"No versions
1059
+ yet"* over a document that plainly exists, so there is nothing to compare, roll back to, or sign off.
1060
+ - **No provenance.** `revision-read` records the drawing files the read came from (`source.files`) and the
1061
+ request it answered. A contract PUT records that the document changed, and nothing about where it came from.
1062
+ - **The Steel Filter checkpoint does not run.** `revisionReadContractError` is wired into `revision-read`
1063
+ only. It is what refuses a member read whose work-points are not backed by the saved filter selection —
1064
+ the check that catches a mis-registered read *before* it becomes the model.
1065
+
1066
+ So the create case belongs to `revision-read` too: queue the request with the drawing snapshots, then post
1067
+ the contract against that `requestId`. §9 has the call shape and the identity rules.
1068
+
1069
+ The one create that **is** the contract route's is the **pre-read** document in §1b — the prepass verb
1070
+ cannot create a document, so a project whose `GET` returned nothing needs the contract PUT to bring the
1071
+ `filter` blocks into being. That is staging, not a read: it carries no members, and the member read that
1072
+ follows still goes through `revision-read`. **That read is what makes the project a `steel.model/v2`
1073
+ model** — the provisional filter-only v1 document at history head 0 is consumed by the conversion, not
1074
+ kept. See §9.
1046
1075
 
1047
1076
  The prepass verb exists because the pre-read pass used to GET the contract and PUT the **whole document**
1048
1077
  back. That is a full-document replacement: it can overwrite members, joints and connections that the
@@ -1052,11 +1081,18 @@ control2_ref, elevation_in }`, and refuses everything else **by name** with a `4
1052
1081
  `steel.model/v2` model the accepted set is narrower** — `filter` plus the per-sheet registration keys,
1053
1082
  with `grid` and `datum` refused (§1c, §1d), because a v2 grid is model-global canonical structure rather
1054
1083
  than a pre-read block. It cannot create a
1055
- document and it cannot add a sheet (an unknown sheet is a `400`, never a new plan), so the create case
1056
- above genuinely does belong to the contract route.
1084
+ document and it cannot add a sheet (an unknown sheet is a `400`, never a new plan), which is why the
1085
+ **§1b pre-read** create — and only that one — belongs to the contract route.
1057
1086
 
1058
- Both routes take the same preconditions, the same `412`/`428` answers, and the same lock — they share one
1059
- implementation, so the rules below apply to whichever you use.
1087
+ The two **contract-store** routes (the prepass verb and `PUT /api/contract/steel-model`) share one
1088
+ implementation, so the `412`/`428` answers and the lock below apply to whichever you use — **with one
1089
+ deliberate exception**: the prepass verb refuses `If-Match: *` with its own `428`. It patches the
1090
+ document you read, and `*` cannot detect a write that landed since your GET, so it demands the EXACT
1091
+ ETag (§1b). `If-None-Match: *` is no use there either, since that verb cannot create a document. In
1092
+ short: on the prepass verb, always send the exact ETag.
1093
+
1094
+ `revision-read` is a different shape again and is covered in §9: it carries no ETag at all, because the
1095
+ AI composed that document from the drawing set rather than from one it read here.
1060
1096
 
1061
1097
  **Read first, then write.** `GET` the contract before you write and keep its `ETag` response header —
1062
1098
  that tag is what makes the write safe, and you need it even when you are replacing the document
@@ -1066,7 +1102,7 @@ wholesale.
1066
1102
  header depends on what that `GET` returned:
1067
1103
 
1068
1104
  ```
1069
- PUT http://localhost:<port>/api/contract/steel-model
1105
+ PUT http://localhost:<port>/api/contract/steel-model?project=<projectId> # ?project= = which store
1070
1106
  Content-Type: application/json
1071
1107
  If-Match: <the ETag from your GET> # replacing — the usual case
1072
1108
  If-None-Match: * # ONLY if the GET returned no ETag at all (no draft yet)
@@ -1074,6 +1110,11 @@ If-None-Match: * # ONLY if the GET returned no ETag at
1074
1110
  <contract JSON body>
1075
1111
  ```
1076
1112
 
1113
+ **Drop `?project=` and you have written a different document.** It is the only thing that scopes this
1114
+ route to a project; without it the write lands on the app-scoped draft. Omit it *only* for a genuinely
1115
+ app-scoped contract (no project involved) — and keep it on the `GET` too, so the ETag you send back
1116
+ belongs to the store you are writing.
1117
+
1077
1118
  The server schema-validates the body. Responses that need action:
1078
1119
 
1079
1120
  - **`400`** — schema-invalid. Read the error, fix the offending fields, and re-PUT.
@@ -1084,7 +1125,9 @@ The server schema-validates the body. Responses that need action:
1084
1125
  ETag) and retry.
1085
1126
 
1086
1127
  Sending a precondition is not optional politeness: without it a slow edit silently overwrites whatever
1087
- landed while you were working. Read back the current contract with `GET /api/contract/steel-model`.
1128
+ landed while you were working. Read back the current contract with
1129
+ `GET /api/contract/steel-model?project=<projectId>` — same `?project=` rule as the write, or you read
1130
+ one store and precondition the other.
1088
1131
 
1089
1132
  ### 6. Hand off to the user
1090
1133
 
@@ -1124,19 +1167,43 @@ contract carries the source path in `source.path` and an embedded raster in `ras
1124
1167
  are machine-local (stored under `~/.floless/contracts/steel-model.json` by the server and
1125
1168
  never committed). Clip title blocks from any embedded preview.
1126
1169
 
1127
- ### 9. Revision re-read — preserve member identity (Slice 5)
1170
+ ### 9. Reading into a project — the `revision-read` route (Slice 5)
1171
+
1172
+ **This is the route for EVERY member read into a Workspaces project — the first one and every re-read**
1173
+ (§5). The two differ only in how much of the section below applies: a first read has no prior members,
1174
+ so the identity rules are vacuous and you can skip to *"No request queued yet"* at the end.
1128
1175
 
1129
- When the trigger is a **`revision-read`** request (a REVISED drawing set attached to an *existing*
1130
- project), the Workspaces **History → "What changed"** compare matches members between versions by
1131
- their `id`, scoped per `sheet`. So the re-read must keep identity stable:
1176
+ On a **re-read** (a REVISED drawing set attached to a project that already has versions) the Workspaces
1177
+ **History → "What changed"** compare matches members between versions by their `id`, scoped per `sheet`.
1178
+ So the re-read must keep identity stable:
1132
1179
 
1133
- 1. **Fetch the current contract first** — `GET /api/contract/steel-model?project=<projectId>` (the
1134
- project id is in the request body). That is the previous version's working tree.
1180
+ 1. **Fetch the current contract first** — `GET /api/contract/steel-model?project=<projectId>`. (When a
1181
+ queued request triggered you, the project id is in that request's body; on a first read you queued
1182
+ the request yourself, so you already have it.) That is the previous version's working tree.
1135
1183
  2. **Carry ids + sheets forward** — for every member that still exists in the revised set, reuse its
1136
1184
  existing `id` and keep it on the same `sheet` label (e.g. `S-201` stays `S-201`). Mint a NEW id
1137
1185
  only for a genuinely new member; simply drop the id of a member the revision deleted.
1138
1186
  3. Then compose the updated `steel.takeoff/v1` and `POST /api/projects/<projectId>/revision-read
1139
- { contract, message, requestId }` (that POST clears the request — do **not** DELETE it).
1187
+ { contract, message, requestId }`. **Which of three arms answers depends on the project's state, and
1188
+ they do not answer alike — read the STATUS and the `contractType`, never just `ok`:**
1189
+
1190
+ | project state | what the POST does | answer |
1191
+ |---|---|---|
1192
+ | **first read** — no versions yet, store empty or holding only the §1b filter-only pre-read | converts your v1 staging and atomically publishes the completed model + activation + version 1 | `200` `{ ok: true, version, contractType: "steel.model/v2" }` — the request is cleared for you |
1193
+ | **already a `steel.model/v2` model** | *stages* the read for human confirmation; nothing is written | `202` `{ ok: true, … }` — the request stays queued as `staged` |
1194
+ | **legacy v1** (has versions, never migrated) | commits a v1 version in one step | `200` — the request is cleared for you |
1195
+
1196
+ Do **not** DELETE the request in any of the three: the two committing arms clear it themselves, and
1197
+ the staged arm needs it to stay queued (see "Notes that bite" below).
1198
+
1199
+ > **A first read is where a project is BORN `steel.model/v2`.** You still compose
1200
+ > `steel.takeoff/v1` — that is the reader's internal staging shape, and the route requires a declared
1201
+ > v1 document on this arm — but what lands is v2: one root `members[]` in world millimetres, a
1202
+ > model-global `grid`, and the plans reduced to registered views. Confirm it by reading back
1203
+ > `contractType` (or `GET`-ing the contract) rather than assuming the shape you sent is the shape
1204
+ > that was stored. If the staging cannot be converted the answer is a `400` naming the reason
1205
+ > (`v1-staging-exit`, e.g. `grid-lines-unmigrated` or `plan-uneditable:registration-incomplete`) and
1206
+ > **nothing is published** — no contract, no activation, no version. Fix the read and re-post.
1140
1207
 
1141
1208
  > **On a `steel.model/v2` project compose a `steel.model/v2` document instead** — check the `type`
1142
1209
  > of the contract you GET-ed in step 1. Members live in one root `members[]` in world millimetres,
@@ -1144,6 +1211,38 @@ their `id`, scoped per `sheet`. So the re-read must keep identity stable:
1144
1211
  > new place, in which case write the new one and it becomes a proposal the user accepts (§1c).
1145
1212
  > Never drop the `grid` key to mean "unchanged" — a read that omits it is refused.
1146
1213
 
1214
+ **No request queued yet? Queue it yourself — this is also the FIRST read's route** (§5). The two-call
1215
+ shape is the same whether the project already has versions or none at all:
1216
+
1217
+ ```
1218
+ POST http://localhost:<port>/api/projects/<projectId>/revision-requests
1219
+ Content-Type: application/json
1220
+
1221
+ { "snapshots": [ { "name": "S-201.pdf", "dataUrl": "data:application/pdf;base64,…" } ],
1222
+ "message": "First read of the framing plans" }
1223
+ -> { ok: true, request: { id: "<requestId>", … } }
1224
+ ```
1225
+
1226
+ Then post the contract against that id, exactly as step 3 above. Notes that bite:
1227
+
1228
+ - **At least one snapshot is required** (`400` otherwise) — they become the version's durable
1229
+ `source.files` provenance, so this is also how the drawing files get stored, not just how the request
1230
+ gets made. Send the real sheets you read.
1231
+ - **At most EIGHT snapshots** (`400 too many snapshots (max 8)`), each within the per-file byte cap.
1232
+ A real set has more sheets than that, so send the ones this read is actually based on rather than the
1233
+ whole set, and queue a further read for the rest.
1234
+ - **`snapshots[].dataUrl` is a base64 data-URL and the server SNIFFS the bytes** — it accepts PNG, JPEG,
1235
+ WebP and PDF, and `400`s on anything else. A DXF/SVG/TIFF sheet must be rendered to one of those
1236
+ first. `name` is optional but worth sending: it is the durable provenance label stored with the file.
1237
+ (It is not rendered in the History table today — send it because it is the record, not for display.)
1238
+ - **The queue stamps the ledger head as the read's base.** If a version lands between the queue and the
1239
+ post, `revision-read` answers `409` — re-GET and re-read rather than retrying the same body.
1240
+ - **On an already-migrated `steel.model/v2` project the post does NOT commit.** A v2 document is
1241
+ *staged* for human review: the answer is `202` with `ok: true` — so check the STATUS, not `ok` — the
1242
+ request stays queued as `staged`, no version is minted, and nothing is written until the user
1243
+ confirms in Workspaces. Hand off at the `202`; do not treat it as a finished read, and do not delete
1244
+ the request. Only the v1 arm commits in one step and clears the request itself.
1245
+
1147
1246
  If you renumber everything, the diff shows a misleading "all removed + all added" and the app warns
1148
1247
  **"identity not preserved."** Carrying ids forward is what makes *"beam B12 was upsized"* come out
1149
1248
  exact instead of a churn of the whole model.
@@ -2,7 +2,7 @@
2
2
  name: floless-app-ui
3
3
  description: This skill should be used when the user wants to customize the floless.app Dashboard — add, change, rearrange, or remove custom panels (stat cards, data tables, report buttons, run buttons) — or when picking up queued 'ui-customize' requests from the floless.app Customize box. Use it when the user says things like "add a panel showing last night's BOM run", "pin a run button to my dashboard", "apply my dashboard change", "customize my floless dashboard", "pick up my floless UI request", after they type into the Dashboard's Customize box, OR when they paste a message beginning with a `[floless-request type=ui-customize id=…]` marker (a request copied from the Dashboard — resolve it via /api/requests, don't run it verbatim). It edits ~/.floless/ui/extensions.json (the declarative UI descriptor), validates with the AWARE ui agent, and the app re-renders live.
4
4
  metadata:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  ---
7
7
 
8
8
  # floless.app Custom Panels — the dashboard descriptor
@@ -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 an approved Workspace project's data from a running workflow via the floless-workspace REST seam plus its workspace-project input picker, and the server seams (aware-adapter, app-reader, index).
4
4
  metadata:
5
- version: 0.3.1
5
+ version: 0.3.2
6
6
  ---
7
7
 
8
8
  # Building reusable .flo workflows in floless.app
@@ -2,7 +2,7 @@
2
2
  name: reading-structural-drawings
3
3
  description: This skill should be used BEFORE modelling anything from a structural/architectural drawing SET (PDF). Use it whenever turning drawings into a 3D frame, takeoff, IFC, or Tekla model — it is the prerequisite reading discipline for the `floless-app-steel-takeoff` reader (and the `floless-app-steel-model` guide that orchestrates the full flow). Triggers on "read this drawing set", "model this structure from the PDF", "take off this steel", "build a model from these drawings", or any pure-PDF → structure task. It encodes the method that stops the classic failures (missing that a set is TWO buildings, missing a curved/sloped roof, conflating grids across sheets, tracing dimension lines as members) — establish MASSING + COORDINATE FRAME first (from the index + elevations + sections), members LAST; deterministic geometry feeds the reasoning; cross-validate every view; verify before presenting.
4
4
  metadata:
5
- version: 0.2.0
5
+ version: 0.2.1
6
6
  ---
7
7
 
8
8
  # Reading a structural drawing set — the discipline (do this BEFORE you model anything)
@@ -2,7 +2,7 @@
2
2
  name: steel-drawing-abbreviations
3
3
  description: Default legend of standard US (AISC, imperial) structural-steel drawing abbreviations, note conventions, and shape designations — the fallback meaning when a drawing set omits or only partially supplies its own abbreviations/legend sheet. This skill should be used while reading a structural steel drawing whenever an abbreviation, note code, or profile designation needs expanding (TYP, TOS, UON, EQ, (E)/(N), SIM, HSS, WT, and so on), or when the steel reader (floless-app-steel-takeoff / floless-app-steel-model) meets a note or label whose meaning is not defined on the supplied sheets. The project's own legend always overrides these defaults.
4
4
  metadata:
5
- version: "0.2.0"
5
+ version: "0.2.1"
6
6
  ---
7
7
 
8
8
  # Steel drawing abbreviations — default legend