@floless/app 0.127.5 → 0.128.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.
- package/dist/floless-server.cjs +10189 -13091
- package/dist/schemas/drawing.vector.v1.schema.json +1 -1
- package/dist/schemas/steel.model.v2.schema.json +50 -127
- package/dist/skills/floless-app-steel-model/SKILL.md +5 -6
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +172 -1704
- package/dist/skills/floless-app-tweak-contract/SKILL.md +64 -174
- package/dist/skills/reading-structural-drawings/SKILL.md +2 -2
- package/dist/skills/steel-drawing-abbreviations/SKILL.md +2 -2
- package/dist/templates/steel-model.flo +45 -24
- package/dist/web/app.css +18 -92
- package/dist/web/aware.js +7 -1
- package/dist/web/grid-core.js +47 -0
- package/dist/web/index.html +0 -27
- package/dist/web/renderers.js +3 -14
- package/dist/web/steel-3d-view.js +87 -35
- package/dist/web/steel-editor.html +82 -58
- package/dist/web/steel-filter-core.js +7 -26
- package/dist/web/steel-filter.html +7 -7
- package/dist/web/steel-model-adapter.js +19 -250
- package/dist/web/steel-model-v2-commands.js +1 -0
- package/dist/web/workspaces.js +46 -838
- package/package.json +1 -1
- package/dist/schemas/steel.takeoff.v1.schema.json +0 -562
- package/dist/schemas/steel.takeoff.v1.staging-snapshot.json +0 -263
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://floless.app/schemas/drawing.vector/v1",
|
|
4
4
|
"title": "drawing.vector/v1",
|
|
5
|
-
"description": "Vocabulary-free vectorized-drawing contract: clean 2D linework + text extracted from any sketch / PDF / photo, the general 'draw CAD from anything' core.
|
|
5
|
+
"description": "Vocabulary-free vectorized-drawing contract: clean 2D linework + text extracted from any sketch / PDF / photo, the general 'draw CAD from anything' core. Every element and group is ID-bearing so placed or edited details can be targeted. The contract is the single source of truth; the 2D vectorize editor is its view; server/vectorize.ts is the pure post-processor; exporters consume it. Approve bakes the .lock. Coordinates are display space; `sheets[].transform` carries the reader-emitted display-to-world mapping a renderer cannot reconstruct. Confidential rasters ride inside as base64 and are stripped at bake. Design: docs/superpowers/specs/2026-07-01-vectorize-draw-from-anything-design.md.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"required": ["type", "sheets"],
|
|
8
8
|
"additionalProperties": true,
|
|
@@ -2,38 +2,37 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://floless.app/schemas/steel.model/v2",
|
|
4
4
|
"title": "steel.model/v2",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "The native FloLess steel model contract. Members are model-level physical objects in world millimetres; each registered plan is a horizontal cut plane that displays members and records immutable drawing evidence; and one model grid serves every view. Contract-owned objects are closed so misspelled or unsupported fields fail validation instead of being silently ignored.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"required": ["type", "origin", "members", "plans"],
|
|
8
8
|
"additionalProperties": false,
|
|
9
9
|
"properties": {
|
|
10
10
|
"type": { "const": "steel.model/v2", "description": "Renderer-registry discriminator." },
|
|
11
11
|
"origin": {
|
|
12
|
-
"
|
|
13
|
-
"description": "
|
|
12
|
+
"const": "native",
|
|
13
|
+
"description": "All Steel Model contracts are authored natively in this format."
|
|
14
14
|
},
|
|
15
15
|
"members": {
|
|
16
16
|
"type": "array",
|
|
17
17
|
"items": { "$ref": "#/$defs/member" },
|
|
18
|
-
"description": "
|
|
18
|
+
"description": "Model-level physical members in world millimetres. Member ids are unique across the whole model."
|
|
19
19
|
},
|
|
20
20
|
"plans": { "type": "array", "items": { "$ref": "#/$defs/plan" }, "description": "Framing sheets, each a horizontal cut plane. A plan DISPLAYS members and records observations about them; it does not own them." },
|
|
21
21
|
"grid": { "$ref": "#/$defs/modelGrid", "description": "The ONE model grid, in world mm. Nullable/absent: the model grid activates with persisted v2 (epic §13), so v2 must be able to hold one before anything builds it." },
|
|
22
|
-
"
|
|
23
|
-
"target_confidence": { "type": "number", "minimum": 0, "maximum": 100, "description": "User's per-read confidence target (%). Same meaning as v1." },
|
|
22
|
+
"target_confidence": { "type": "number", "minimum": 0, "maximum": 100, "description": "User's per-read confidence target (%)." },
|
|
24
23
|
"active": { "type": "integer", "description": "Index into plans of the active sheet." },
|
|
25
24
|
"palette": { "type": "array", "items": { "type": "string" }, "description": "Default per-index profile colours." },
|
|
26
25
|
"weights": { "type": "object", "additionalProperties": { "type": ["number", "null"] }, "description": "profile -> plf, from the AISC lookup. null for an unresolved profile." },
|
|
27
26
|
"profile_colors": { "type": "object", "additionalProperties": { "type": "string" }, "description": "profile -> #hex user overrides." },
|
|
28
|
-
"member_styles": { "type": "object", "additionalProperties": true, "description": "Draft-only 2D display state: member
|
|
27
|
+
"member_styles": { "type": "object", "additionalProperties": true, "description": "Draft-only 2D display state: member type -> line {weight,dash}." },
|
|
29
28
|
"sheet_previews": { "type": "object", "additionalProperties": { "type": "string" }, "description": "sheet -> base64 JPEG full-sheet preview. CONFIDENTIAL — never committed." },
|
|
30
29
|
"custom_details": { "type": "object", "additionalProperties": { "type": "string" }, "description": "user-created detail name -> base64 JPEG. detailPlacement.detailName keys into this." },
|
|
31
30
|
"moment_frames": { "type": "array", "description": "Moment-frame schedule from the frame-elevation sheets." },
|
|
32
31
|
"read_notes": { "type": "array", "items": { "type": "string" }, "description": "Plain-English notes about what the read could NOT resolve. Rebuilt from source on every read." },
|
|
33
32
|
"detail_bubbles": { "type": "object", "additionalProperties": true, "description": "sheet -> { detail number -> normalized [fx,fy] bubble anchor }." },
|
|
34
33
|
"source": { "type": "object", "additionalProperties": true, "description": "Provenance: where this takeoff was read from (name/path/sheet/sha256/read_at)." },
|
|
35
|
-
"filter": { "type": "object", "additionalProperties": true, "description": "
|
|
36
|
-
"connections": { "type": "array", "items": { "type": "object", "required": ["id"], "additionalProperties": true, "properties": { "id": { "type": "string", "minLength": 1 } } }, "description": "Vendor-neutral connection library. `ends[].conn` and `joints[].conn` reference a row's
|
|
34
|
+
"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." },
|
|
35
|
+
"connections": { "type": "array", "items": { "type": "object", "required": ["id"], "additionalProperties": true, "properties": { "id": { "type": "string", "minLength": 1 } } }, "description": "Vendor-neutral connection library. `ends[].conn` and `joints[].conn` reference a row's non-empty `id`. A row may also carry `recipe`, `notes`, or `image` describing what the detail builds and the rules that accompany it." },
|
|
37
36
|
"joints": { "type": "array", "items": { "$ref": "#/$defs/joint" }, "description": "Placed connections the connection engine expands into real 3D parts." },
|
|
38
37
|
"dims3d": { "type": "array", "items": { "$ref": "#/$defs/dim3" }, "description": "Draft-only 3D dimensions, world mm. Model-global. NOT baked into the lock / IFC / BOM." },
|
|
39
38
|
"detail_placements": { "type": "array", "items": { "$ref": "#/$defs/detailPlacement" }, "description": "Draft-only placed 2D detail images. Ids are SHEET-unique, not global." },
|
|
@@ -100,7 +99,7 @@
|
|
|
100
99
|
},
|
|
101
100
|
"$defs": {
|
|
102
101
|
"elevation": {
|
|
103
|
-
"description": "An endpoint elevation. Unknown is part of the
|
|
102
|
+
"description": "An endpoint elevation. Unknown is part of the type, never an overloaded null. A member with an unknown endpoint is retained and surfaced as an RFI, and refuses to export rather than substituting a guessed elevation. `rfiRef` is optional because the engineering fact can be known before an RFI record exists.",
|
|
104
103
|
"oneOf": [
|
|
105
104
|
{
|
|
106
105
|
"type": "object",
|
|
@@ -114,7 +113,7 @@
|
|
|
114
113
|
"additionalProperties": false,
|
|
115
114
|
"properties": {
|
|
116
115
|
"unknown": { "const": true },
|
|
117
|
-
"rfiRef": { "type": "string", "minLength": 1, "description": "Optional reference to the RFI raised for this unknown.
|
|
116
|
+
"rfiRef": { "type": "string", "minLength": 1, "description": "Optional reference to the RFI raised for this unknown." }
|
|
118
117
|
}
|
|
119
118
|
}
|
|
120
119
|
]
|
|
@@ -136,7 +135,7 @@
|
|
|
136
135
|
"type": "object",
|
|
137
136
|
"required": ["axis_x", "axis_y"],
|
|
138
137
|
"additionalProperties": false,
|
|
139
|
-
"description": "A labelled grid intersection, naming each axis
|
|
138
|
+
"description": "A labelled grid intersection, naming each axis by direction: `axis_x` is the label of the line running in X and `axis_y` the Y-direction line. Never infer direction from whether a label looks like a letter or number; real drawing sets use both conventions.",
|
|
140
139
|
"properties": {
|
|
141
140
|
"axis_x": { "type": "string", "minLength": 1, "description": "Label of the X-direction grid line." },
|
|
142
141
|
"axis_y": { "type": "string", "minLength": 1, "description": "Label of the Y-direction grid line." }
|
|
@@ -146,22 +145,22 @@
|
|
|
146
145
|
"type": "object",
|
|
147
146
|
"required": ["id", "profile", "from", "to", "provenance"],
|
|
148
147
|
"additionalProperties": false,
|
|
149
|
-
"description": "One
|
|
148
|
+
"description": "One physical member in world millimetres. Geometry is uniform for every role: `from` and `to` work-points. `role` and `memberType` remain authored semantic truth and are never derived from geometry. A column is stored base to top; every other role keeps its authored endpoint order so sloped members and end metadata remain stable.",
|
|
150
149
|
"properties": {
|
|
151
|
-
"id": { "type": "string", "minLength": 1, "description": "Model-
|
|
150
|
+
"id": { "type": "string", "minLength": 1, "description": "Model-globally unique member id." },
|
|
152
151
|
"profile": { "type": "string", "description": "AISC designation (e.g. W16X26) or an unresolved mark (e.g. MF). Empty string allowed for an unprofiled member." },
|
|
153
152
|
"from": { "$ref": "#/$defs/workPoint", "description": "Start work-point. For a column this is the BASE (see the ordering rule above)." },
|
|
154
153
|
"to": { "$ref": "#/$defs/workPoint", "description": "End work-point. For a column this is the TOP." },
|
|
155
154
|
"provenance": {
|
|
156
|
-
"enum": ["read", "revision-read", "manual"
|
|
157
|
-
"description": "How this canonical member came to exist. A
|
|
155
|
+
"enum": ["read", "revision-read", "manual"],
|
|
156
|
+
"description": "How this canonical member came to exist. A manually authored member may have no observation and must never be given fabricated drawing evidence."
|
|
158
157
|
},
|
|
159
158
|
"material": { "type": "string", "description": "ASTM grade, e.g. A992 / A572-50 / A500. Absent = derive from the section family." },
|
|
160
159
|
"role": { "enum": ["beam", "column"], "description": "Authored role. Defaults to beam when absent. NOT derived from geometry." },
|
|
161
160
|
"memberType": { "type": "string", "description": "Member category driving the legend (beam, ledger, brace, …). 'brace' is excluded from every beam-only path." },
|
|
162
161
|
"position": { "enum": ["top", "middle", "bottom"], "description": "Profile placement relative to the work-line — the section's depth position." },
|
|
163
162
|
"positionH": { "enum": ["left", "middle", "right"], "description": "Profile placement ACROSS the work-line — the section's plan position, the horizontal companion to `position`. Named for where the LINE sits on the section, exactly as `position` is: left = the section's left face is on the line (so the steel is to its right), right = the mirror, middle = centred (the default, and what every member did before this field existed). Left/right are read looking from `from` to `to` with Z up — the same sense as reading the plan from above. Absent = middle. Ignored for a member with no plan direction (a plumb column or brace has no left or right) and for one with no resolved AISC designation (a CUSTOM / traced `section` box, whose section axes the viewer does not align to the plan). A width the section tables did not supply — a per-series ratio estimate — is NOT ignored: the member is already drawn and exported at that width, so flushing to the face it actually has is self-consistent, and the editor says the width is estimated." },
|
|
164
|
-
"rot": { "type": "number", "description": "Section rotation about the member axis, degrees.
|
|
163
|
+
"rot": { "type": "number", "description": "Section rotation about the member axis, degrees." },
|
|
165
164
|
"section": {
|
|
166
165
|
"type": "object",
|
|
167
166
|
"additionalProperties": false,
|
|
@@ -171,14 +170,14 @@
|
|
|
171
170
|
"d": { "type": "number", "description": "Section depth in mm." }
|
|
172
171
|
}
|
|
173
172
|
},
|
|
174
|
-
"bf": { "type": "boolean", "description": "Bottom-flange flag.
|
|
173
|
+
"bf": { "type": "boolean", "description": "Bottom-flange flag." },
|
|
175
174
|
"rfi": { "type": "boolean", "description": "True when the SIZE is unresolved (excluded from the BOM). A boolean about the profile — unrelated to elevation.rfiRef." },
|
|
176
175
|
"mf": { "type": "boolean", "description": "Moment-frame member (persistent flag)." },
|
|
177
176
|
"verified": { "type": "boolean", "description": "True = a human confirmed this member." },
|
|
178
177
|
"source": {
|
|
179
178
|
"type": "object",
|
|
180
179
|
"additionalProperties": true,
|
|
181
|
-
"description": "How the member was created
|
|
180
|
+
"description": "How the member was created, for example {kind:'steel-filter-segment', layer:'S-BEAM-STEL'}."
|
|
182
181
|
},
|
|
183
182
|
"brace": {
|
|
184
183
|
"type": "object",
|
|
@@ -196,18 +195,18 @@
|
|
|
196
195
|
"items": { "$ref": "#/$defs/end" },
|
|
197
196
|
"minItems": 2,
|
|
198
197
|
"maxItems": 2,
|
|
199
|
-
"description": "Per-end
|
|
198
|
+
"description": "Per-end connection metadata; index 0 matches `from`, index 1 matches `to`. For a column, ends[0] is the base. Elevations live only in from.z and to.z."
|
|
200
199
|
}
|
|
201
200
|
}
|
|
202
201
|
},
|
|
203
202
|
"end": {
|
|
204
203
|
"type": "object",
|
|
205
204
|
"additionalProperties": false,
|
|
206
|
-
"description": "One end's connection metadata.
|
|
205
|
+
"description": "One end's connection metadata. Elevation lives in the work-point so there is no second place for it to disagree.",
|
|
207
206
|
"properties": {
|
|
208
207
|
"note": { "type": "string", "description": "Connection note (e.g. moment, shear, braced)." },
|
|
209
208
|
"detail": { "type": "string", "description": "Connection detail reference, e.g. \"5-S504\"." },
|
|
210
|
-
"conn": { "type": "string", "minLength": 1, "description": "Connection-library row id
|
|
209
|
+
"conn": { "type": "string", "minLength": 1, "description": "Connection-library row id referencing connections[].id. Absent means fall back to note/detail; a present reference is always non-empty." },
|
|
211
210
|
"connVerified": { "type": "boolean", "description": "True = a human confirmed this end's connection." }
|
|
212
211
|
}
|
|
213
212
|
},
|
|
@@ -220,7 +219,7 @@
|
|
|
220
219
|
"sheet": { "type": "string", "minLength": 1, "description": "Sheet number, e.g. S-202. Unique across plans." },
|
|
221
220
|
"viewKind": { "enum": ["plan", "elevation", "section", "unknown"], "description": "The reader's explicit classification of this sheet. `unknown` means the source did not establish a kind; it is not a default. Only `plan` currently has a coordinate transform, so every other value is refused by name instead of being projected heuristically." },
|
|
222
221
|
"title": { "type": "string" },
|
|
223
|
-
"elevation_in": { "type": "number", "description": "This sheet's
|
|
222
|
+
"elevation_in": { "type": "number", "description": "This sheet's horizontal cut elevation, in inches. Member endpoint elevations remain explicit world-millimetre values and are never inferred from this view setting." },
|
|
224
223
|
"pt_per_ft": { "type": "number", "description": "Display points per foot (the drawing scale). Still needed: observations record local geometry in display px." },
|
|
225
224
|
"datum_at": { "$ref": "#/$defs/point2", "description": "Display-space point of the grid intersection that is the model origin on this sheet (authored by the takeoff skill — never chosen by it)." },
|
|
226
225
|
"datum_ref": { "$ref": "#/$defs/intersectionRef", "description": "Which labelled intersection `datum_at` is, when the sheet cannot print the model origin. ABSENT is a statement, not a gap: the takeoff skill omits it precisely when the sheet's datum IS the model origin." },
|
|
@@ -233,9 +232,9 @@
|
|
|
233
232
|
"details": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
|
|
234
233
|
"callouts": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Drawing cross-references drawn ON this plan that point to another sheet." },
|
|
235
234
|
"tos_callouts": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
|
|
236
|
-
"read_notes": { "type": "array", "items": { "type": "string" }, "description": "Per-sheet read notes.
|
|
237
|
-
"autofilled": { "type": "boolean", "description": "The reader auto-filled blank ends on this sheet.
|
|
238
|
-
"deduped": { "type": "boolean", "description": "The editor's first-load de-duplication has run on this sheet.
|
|
235
|
+
"read_notes": { "type": "array", "items": { "type": "string" }, "description": "Per-sheet read notes." },
|
|
236
|
+
"autofilled": { "type": "boolean", "description": "The reader auto-filled blank ends on this sheet." },
|
|
237
|
+
"deduped": { "type": "boolean", "description": "The editor's first-load de-duplication has run on this sheet." },
|
|
239
238
|
"dims": { "type": "array", "items": { "$ref": "#/$defs/dim" }, "description": "Draft-only on-drawing dimensions. Coordinates stay LOCAL to this sheet (epic §10); only the member and grid REFERENCES are remapped." },
|
|
240
239
|
"frame": { "$ref": "#/$defs/frame", "description": "Optional per-plan local coordinate frame for skewed framing. Local coordinates, retained as-is." },
|
|
241
240
|
"memberObservations": { "type": "array", "items": { "$ref": "#/$defs/memberObservation" }, "description": "What THIS sheet's drawing showed about members. Evidence, not ownership." },
|
|
@@ -264,7 +263,7 @@
|
|
|
264
263
|
"type": "object",
|
|
265
264
|
"required": ["wp", "pt_per_ft"],
|
|
266
265
|
"additionalProperties": false,
|
|
267
|
-
"description": "The observed geometry
|
|
266
|
+
"description": "The observed geometry and its units: display pixels plus the sheet scale needed to interpret them.",
|
|
268
267
|
"properties": {
|
|
269
268
|
"wp": { "type": "array", "items": { "$ref": "#/$defs/point2" }, "minItems": 2, "maxItems": 2, "description": "Work-point endpoints in THIS sheet's display space." },
|
|
270
269
|
"pt_per_ft": { "type": "number", "exclusiveMinimum": 0, "description": "The sheet scale the px above are measured in." }
|
|
@@ -311,42 +310,15 @@
|
|
|
311
310
|
}
|
|
312
311
|
},
|
|
313
312
|
"observationSource": {
|
|
314
|
-
"
|
|
315
|
-
"
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
"elementId": { "type": "string", "minLength": 1, "description": "Stable source element id (new reads)." }
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"type": "object",
|
|
328
|
-
"required": ["sourceHash", "sheet", "elementIndex", "geometryHash"],
|
|
329
|
-
"additionalProperties": false,
|
|
330
|
-
"properties": {
|
|
331
|
-
"sourceHash": { "type": "string", "minLength": 1 },
|
|
332
|
-
"sheet": { "type": "string", "minLength": 1 },
|
|
333
|
-
"elementIndex": { "type": "integer", "minimum": 0, "description": "Position in the source sheet's element list (legacy, un-id'd elements)." },
|
|
334
|
-
"geometryHash": { "type": "string", "minLength": 1, "description": "Hash of the element geometry, so a re-ordered element list is detectable." }
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
"type": "object",
|
|
339
|
-
"required": ["contractHash", "sheet", "recordId", "geometryHash"],
|
|
340
|
-
"additionalProperties": false,
|
|
341
|
-
"description": "MIGRATED evidence: a v1 contract record, not a drawing element. A migrated member has no known position in the source sheet's element list, so neither drawing form fits — using `elementIndex` for the record's ordinal would put an unrelated number in a field defined as a filter-element position, and stuffing a prefixed value into `elementId` would pair a contract identity with a drawing `sourceHash`. Re-binding these to real source elements is a later unit's job; until then this form states plainly that the evidence is a contract record.",
|
|
342
|
-
"properties": {
|
|
343
|
-
"contractHash": { "type": "string", "minLength": 1, "description": "Canonical hash of the v1 document this record came from (the same value as `migration.from.hash`)." },
|
|
344
|
-
"sheet": { "type": "string", "minLength": 1, "description": "Plan the record lived on. Must equal the owning plan's `sheet`." },
|
|
345
|
-
"recordId": { "type": "string", "minLength": 1, "description": "The v1 member record's id, sheet-scoped by `sheet` above." },
|
|
346
|
-
"geometryHash": { "type": "string", "minLength": 1, "description": "Hash of the record's work points, so an edited record is detectable." }
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
]
|
|
313
|
+
"type": "object",
|
|
314
|
+
"required": ["sourceHash", "sheet", "elementId"],
|
|
315
|
+
"additionalProperties": false,
|
|
316
|
+
"description": "The exact selected Drawing Filter element that supports this observation.",
|
|
317
|
+
"properties": {
|
|
318
|
+
"sourceHash": { "type": "string", "minLength": 1, "description": "SHA-256 of the attached source document." },
|
|
319
|
+
"sheet": { "type": "string", "minLength": 1, "description": "Sheet the evidence was read from. Must equal the owning plan's `sheet`." },
|
|
320
|
+
"elementId": { "type": "string", "minLength": 1, "description": "Deterministic id of the selected Filter element." }
|
|
321
|
+
}
|
|
350
322
|
},
|
|
351
323
|
"observationBinding": {
|
|
352
324
|
"type": "object",
|
|
@@ -367,10 +339,10 @@
|
|
|
367
339
|
"modelGrid": {
|
|
368
340
|
"type": ["object", "null"],
|
|
369
341
|
"additionalProperties": false,
|
|
370
|
-
"description": "
|
|
342
|
+
"description": "The model grid: one grid in world millimetres, displayed on every sheet. Authoring notation uses relative X/Y spacing strings and absolute Z levels; every stored coordinate here is world millimetres.",
|
|
371
343
|
"properties": {
|
|
372
344
|
"on": { "type": "boolean", "description": "Grid visible (2D + 3D). Default true." },
|
|
373
|
-
"origin": { "$ref": "#/$defs/point2", "description": "The
|
|
345
|
+
"origin": { "$ref": "#/$defs/point2", "description": "The grid origin in world millimetres." },
|
|
374
346
|
"x": { "type": "string", "description": "Relative spacings along +X, comma-separated, e.g. \"0'-0\\\", 3*25'-0\\\"\"." },
|
|
375
347
|
"y": { "type": "string", "description": "Relative spacings along +Y, comma-separated." },
|
|
376
348
|
"z": { "type": "string", "description": "Absolute level elevations, comma-separated." },
|
|
@@ -382,12 +354,12 @@
|
|
|
382
354
|
"axes": {
|
|
383
355
|
"type": "array",
|
|
384
356
|
"items": { "$ref": "#/$defs/gridAxis" },
|
|
385
|
-
"description": "
|
|
357
|
+
"description": "Stable ids for parsed axes, in authored order per direction. `dir:'z'` covers levels, so generated level views reference an id rather than a mutable label."
|
|
386
358
|
},
|
|
387
359
|
"ends": {
|
|
388
360
|
"type": "object",
|
|
389
361
|
"additionalProperties": { "type": "array", "items": { "type": "number" }, "minItems": 2, "maxItems": 2 },
|
|
390
|
-
"description": "Per-axis extent overrides: { \"<axis id>\": [loMm, hiMm] } in
|
|
362
|
+
"description": "Per-axis extent overrides: { \"<axis id>\": [loMm, hiMm] } in world millimetres."
|
|
391
363
|
},
|
|
392
364
|
"lines": { "type": "array", "items": { "$ref": "#/$defs/gridLine" }, "description": "Standalone free-angle grid/reference lines, world mm." }
|
|
393
365
|
}
|
|
@@ -442,14 +414,14 @@
|
|
|
442
414
|
}
|
|
443
415
|
},
|
|
444
416
|
"dimRef": {
|
|
445
|
-
"description": "
|
|
417
|
+
"description": "Exactly one of two shapes: a member reference {m, pt} or a grid reference {g}.",
|
|
446
418
|
"oneOf": [
|
|
447
419
|
{
|
|
448
420
|
"type": "object",
|
|
449
421
|
"required": ["m", "pt"],
|
|
450
422
|
"additionalProperties": false,
|
|
451
423
|
"properties": {
|
|
452
|
-
"m": { "type": "string", "minLength": 1, "description": "A
|
|
424
|
+
"m": { "type": "string", "minLength": 1, "description": "A model-wide member id." },
|
|
453
425
|
"pt": { "enum": ["a", "b", "mid"], "description": "Which of the member's drawn points the anchor tracks." }
|
|
454
426
|
}
|
|
455
427
|
},
|
|
@@ -465,7 +437,7 @@
|
|
|
465
437
|
"type": "object",
|
|
466
438
|
"required": ["id", "a", "b", "axis"],
|
|
467
439
|
"additionalProperties": false,
|
|
468
|
-
"description": "Draft-only 3D dimension
|
|
440
|
+
"description": "Draft-only model-global 3D dimension in world millimetres.",
|
|
469
441
|
"properties": {
|
|
470
442
|
"id": { "type": "string", "minLength": 1 },
|
|
471
443
|
"a": { "$ref": "#/$defs/point3" },
|
|
@@ -503,8 +475,8 @@
|
|
|
503
475
|
"id": { "type": "string", "minLength": 1 },
|
|
504
476
|
"detailName": { "type": "string", "minLength": 1, "description": "Key into custom_details for the image bytes." },
|
|
505
477
|
"sheet": { "type": "string", "minLength": 1, "description": "Sheet the detail was placed against. REQUIRED: placement ids are sheet-unique, so a placement with no sheet cannot be referenced by a detail sceneRef." },
|
|
506
|
-
"anchorId": { "type": ["string", "null"], "minLength": 1, "description": "Host
|
|
507
|
-
"pos": { "$ref": "#/$defs/point3", "description": "World
|
|
478
|
+
"anchorId": { "type": ["string", "null"], "minLength": 1, "description": "Host member id, or null for free placement." },
|
|
479
|
+
"pos": { "$ref": "#/$defs/point3", "description": "World-millimetre centre of the plane." },
|
|
508
480
|
"u": { "$ref": "#/$defs/point3", "description": "In-plane x-axis basis." },
|
|
509
481
|
"n": { "$ref": "#/$defs/point3", "description": "Plane-normal basis." },
|
|
510
482
|
"rotZ": { "type": "number" },
|
|
@@ -513,7 +485,7 @@
|
|
|
513
485
|
}
|
|
514
486
|
},
|
|
515
487
|
"sceneRef": {
|
|
516
|
-
"description": "A
|
|
488
|
+
"description": "A tagged reference to something shown in the 3D scene. Tagged identities keep renderer mesh ids out of contract truth.",
|
|
517
489
|
"oneOf": [
|
|
518
490
|
{ "type": "object", "required": ["kind", "id"], "additionalProperties": false, "properties": { "kind": { "const": "member" }, "id": { "type": "string", "minLength": 1 } } },
|
|
519
491
|
{ "type": "object", "required": ["kind", "id", "part"], "additionalProperties": false, "properties": { "kind": { "const": "joint-part" }, "id": { "type": "string", "minLength": 1, "description": "Joint id." }, "part": { "type": "string", "minLength": 1, "description": "Part within the joint (a recipe part name, or a custom mesh part id)." } } },
|
|
@@ -538,7 +510,7 @@
|
|
|
538
510
|
"name": { "type": "string" },
|
|
539
511
|
"order": { "type": "number" },
|
|
540
512
|
"camera": { "$ref": "#/$defs/viewCamera" },
|
|
541
|
-
"mode": { "enum": ["solid", "wire", "xray"] },
|
|
513
|
+
"mode": { "enum": ["solid", "wire", "xray", "realistic", "shadowed"] },
|
|
542
514
|
"clips": { "$ref": "#/$defs/viewClips" },
|
|
543
515
|
"objects": { "$ref": "#/$defs/viewObjects" },
|
|
544
516
|
"generated": { "$ref": "#/$defs/viewGenerated" }
|
|
@@ -547,7 +519,7 @@
|
|
|
547
519
|
"viewCamera": {
|
|
548
520
|
"type": "object",
|
|
549
521
|
"additionalProperties": false,
|
|
550
|
-
"description": "Camera snapshot
|
|
522
|
+
"description": "Camera snapshot in world millimetres. `camera.proj` is the single authoritative projection setting.",
|
|
551
523
|
"properties": {
|
|
552
524
|
"v": { "type": "integer" },
|
|
553
525
|
"pos": { "$ref": "#/$defs/point3" },
|
|
@@ -560,7 +532,7 @@
|
|
|
560
532
|
"viewClips": {
|
|
561
533
|
"type": "object",
|
|
562
534
|
"additionalProperties": false,
|
|
563
|
-
"description": "Clip boxes
|
|
535
|
+
"description": "Clip boxes, planes, and work area in world millimetres.",
|
|
564
536
|
"properties": {
|
|
565
537
|
"clips": { "type": "array", "items": { "oneOf": [{ "$ref": "#/$defs/clipBox" }, { "$ref": "#/$defs/clipPlane" }] } },
|
|
566
538
|
"workArea": { "$ref": "#/$defs/workArea" },
|
|
@@ -662,64 +634,15 @@
|
|
|
662
634
|
"propLabels": {
|
|
663
635
|
"type": "object",
|
|
664
636
|
"additionalProperties": false,
|
|
665
|
-
"description": "Draft-only display state.
|
|
637
|
+
"description": "Draft-only display state. Closed because `ids` must always reference real model members.",
|
|
666
638
|
"properties": {
|
|
667
639
|
"props": { "type": "array", "items": { "type": "string" }, "description": "Checked property registry keys to show as labels." },
|
|
668
640
|
"placement": { "enum": ["start", "mid", "end"] },
|
|
669
641
|
"selected_only": { "type": "boolean" },
|
|
670
|
-
"vis2d": { "type": "boolean", "description": "Show the label chips on the 2D plan.
|
|
642
|
+
"vis2d": { "type": "boolean", "description": "Show the label chips on the 2D plan. Absent means on. Property selection is shared across 2D and 3D; visibility is per view." },
|
|
671
643
|
"vis3d": { "type": "boolean", "description": "Show the label chips in the 3D view. Absent means on, for the same reason as vis2d." },
|
|
672
644
|
"ids": { "type": "array", "items": { "type": "string", "minLength": 1 }, "description": "Member ids the labels pin to, used only when selected_only is true." }
|
|
673
645
|
}
|
|
674
|
-
},
|
|
675
|
-
"migration": {
|
|
676
|
-
"type": "object",
|
|
677
|
-
"required": ["v", "from", "members"],
|
|
678
|
-
"additionalProperties": false,
|
|
679
|
-
"description": "DURABLE v1->v2 provenance (epic §9) — not a migration-time variable. It must support arbitrary v1<->v2 version comparisons, and rolling a migrated project back to a historical v1 version and migrating it again. Keyed by (sheet, id) because bare v1 ids are not globally unique.",
|
|
680
|
-
"properties": {
|
|
681
|
-
"v": { "const": 1 },
|
|
682
|
-
"from": {
|
|
683
|
-
"type": "object",
|
|
684
|
-
"required": ["type"],
|
|
685
|
-
"additionalProperties": false,
|
|
686
|
-
"description": "The source contract this was migrated from.",
|
|
687
|
-
"properties": {
|
|
688
|
-
"type": { "type": "string", "minLength": 1, "description": "e.g. steel.takeoff/v1." },
|
|
689
|
-
"hash": { "type": "string", "description": "Hash of the source document." },
|
|
690
|
-
"version": { "type": "string", "description": "Project history version the source came from." }
|
|
691
|
-
}
|
|
692
|
-
},
|
|
693
|
-
"members": {
|
|
694
|
-
"type": "array",
|
|
695
|
-
"description": "(v1 sheet, v1 id) -> v2 member id.",
|
|
696
|
-
"items": {
|
|
697
|
-
"type": "object",
|
|
698
|
-
"required": ["sheet", "id", "memberId"],
|
|
699
|
-
"additionalProperties": false,
|
|
700
|
-
"properties": {
|
|
701
|
-
"sheet": { "type": "string", "minLength": 1 },
|
|
702
|
-
"id": { "type": "string", "minLength": 1 },
|
|
703
|
-
"memberId": { "type": "string", "minLength": 1 }
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
},
|
|
707
|
-
"retired": {
|
|
708
|
-
"type": "array",
|
|
709
|
-
"description": "v1 members that did NOT survive (de-duplicated into a survivor, or deleted). Disjoint from `members`.",
|
|
710
|
-
"items": {
|
|
711
|
-
"type": "object",
|
|
712
|
-
"required": ["sheet", "id"],
|
|
713
|
-
"additionalProperties": false,
|
|
714
|
-
"properties": {
|
|
715
|
-
"sheet": { "type": "string", "minLength": 1 },
|
|
716
|
-
"id": { "type": "string", "minLength": 1 },
|
|
717
|
-
"reason": { "type": "string" }
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
},
|
|
721
|
-
"remigratedFrom": { "type": "string", "description": "The prior v2 version this contract was re-migrated from, when a project was rolled back to v1 and migrated again." }
|
|
722
|
-
}
|
|
723
646
|
}
|
|
724
647
|
}
|
|
725
648
|
}
|
|
@@ -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
|
|
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.
|
|
5
|
+
version: 0.8.0
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Steel Model — guide a steel drawing set into an editable model
|
|
@@ -143,10 +143,9 @@ the user at the editor:
|
|
|
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
145
|
via the detailer, authors the model datum plus two labelled registration controls per plan,
|
|
146
|
-
honors `target_confidence`, composes the
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
filter-only pre-read state is provisional; the completed model is v2. One contract per
|
|
146
|
+
honors `target_confidence`, composes the native **`steel.model/v2`** candidate, and submits it
|
|
147
|
+
through the project revision-read endpoint. The filter-only native model is provisional until the
|
|
148
|
+
first completed read publishes History version 1. One contract per
|
|
150
149
|
`steel-model` app; multi-sheet sets ride the model's plan views and switcher.
|
|
151
150
|
- **Pre-fill the connection library** from `company-rules.md` (stage 2): emit the firm's rows into
|
|
152
151
|
the contract's `connections[]` with `source:"company-rules"`; the user reviews/assigns them per
|