@floless/app 0.132.1 → 0.133.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 +6234 -3231
- package/dist/schemas/steel.model.v2.schema.json +216 -3
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +66 -5
- package/dist/templates/steel-model.flo +6 -2
- package/dist/web/app.css +41 -1
- package/dist/web/app.js +3 -2
- package/dist/web/aware.js +291 -12
- package/dist/web/commands-shell.js +40 -2
- package/dist/web/commands-steel.js +148 -3
- package/dist/web/index.html +16 -3
- package/dist/web/instructor.js +110 -27
- package/dist/web/steel-3d-core.js +199 -11
- package/dist/web/steel-3d-view.js +93 -37
- package/dist/web/steel-catalog-picker.js +624 -0
- package/dist/web/steel-editor.html +507 -192
- package/dist/web/steel-model-v2-client-validation.js +6 -0
- package/dist/web/steel-model-v2-commands.js +127 -50
- package/dist/web/steel-model-v2-projection.js +3 -2
- package/package.json +4 -1
|
@@ -139,8 +139,193 @@
|
|
|
139
139
|
"z": { "$ref": "#/$defs/elevation" }
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
|
+
"workPointKnown": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"required": ["x", "y", "z"],
|
|
145
|
+
"additionalProperties": false,
|
|
146
|
+
"description": "A world-mm work point whose elevation is known. Endpoint resolutions and support targets cannot carry an unknown Z.",
|
|
147
|
+
"properties": {
|
|
148
|
+
"x": { "type": "number" },
|
|
149
|
+
"y": { "type": "number" },
|
|
150
|
+
"z": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"required": ["known"],
|
|
153
|
+
"additionalProperties": false,
|
|
154
|
+
"properties": { "known": { "type": "number" } }
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"hash": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"pattern": "^sha256:[0-9a-f]{64}$",
|
|
161
|
+
"description": "Lowercase SHA-256 with an explicit algorithm prefix."
|
|
162
|
+
},
|
|
163
|
+
"endpointScope": {
|
|
164
|
+
"oneOf": [
|
|
165
|
+
{ "type": "object", "required": ["kind", "viewIds"], "additionalProperties": false, "properties": { "kind": { "const": "conversion" }, "viewIds": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1, "maxItems": 16 } } },
|
|
166
|
+
{ "type": "object", "required": ["kind", "viewId"], "additionalProperties": false, "properties": { "kind": { "const": "active-view" }, "viewId": { "type": "string", "minLength": 1 } } },
|
|
167
|
+
{ "type": "object", "required": ["kind"], "additionalProperties": false, "properties": { "kind": { "const": "model-3d" } } }
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
"decisionDrawingOrigin": {
|
|
171
|
+
"type": "object",
|
|
172
|
+
"required": ["observationId", "lineageId", "observedPoint"],
|
|
173
|
+
"additionalProperties": false,
|
|
174
|
+
"properties": {
|
|
175
|
+
"observationId": { "type": "string", "minLength": 1 },
|
|
176
|
+
"lineageId": { "$ref": "#/$defs/hash" },
|
|
177
|
+
"observedPoint": { "$ref": "#/$defs/workPointKnown" }
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"decisionBasis": {
|
|
181
|
+
"oneOf": [
|
|
182
|
+
{
|
|
183
|
+
"type": "object",
|
|
184
|
+
"required": ["kind", "origins", "originSetHash"],
|
|
185
|
+
"additionalProperties": false,
|
|
186
|
+
"properties": {
|
|
187
|
+
"kind": { "const": "drawing" },
|
|
188
|
+
"origins": { "type": "array", "items": { "$ref": "#/$defs/decisionDrawingOrigin" }, "minItems": 1, "maxItems": 16 },
|
|
189
|
+
"originSetHash": { "$ref": "#/$defs/hash" }
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"type": "object",
|
|
194
|
+
"required": ["kind", "reviewedPoint", "reviewedScope", "reviewedModelHash"],
|
|
195
|
+
"additionalProperties": false,
|
|
196
|
+
"properties": {
|
|
197
|
+
"kind": { "const": "geometry-review" },
|
|
198
|
+
"reviewedPoint": { "$ref": "#/$defs/workPointKnown" },
|
|
199
|
+
"reviewedScope": { "$ref": "#/$defs/endpointScope" },
|
|
200
|
+
"reviewedModelHash": { "$ref": "#/$defs/hash" }
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
"memberClusterTarget": {
|
|
206
|
+
"type": "object",
|
|
207
|
+
"required": ["kind", "point", "memberIds"],
|
|
208
|
+
"additionalProperties": false,
|
|
209
|
+
"properties": {
|
|
210
|
+
"kind": { "const": "member-cluster" },
|
|
211
|
+
"point": { "$ref": "#/$defs/workPointKnown" },
|
|
212
|
+
"memberIds": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1, "maxItems": 16 }
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"staleReason": {
|
|
216
|
+
"enum": ["target-moved", "target-deleted", "subject-edited", "evidence-changed", "registration-changed", "binding-changed", "policy-retired", "project-incarnation-changed"]
|
|
217
|
+
},
|
|
218
|
+
"keepShortReason": {
|
|
219
|
+
"enum": ["intentional-free-end", "cantilever", "opening", "connection-detail", "other-reviewed"]
|
|
220
|
+
},
|
|
221
|
+
"alignedDecision": {
|
|
222
|
+
"type": "object",
|
|
223
|
+
"required": ["kind", "by", "policy", "findingId", "contextHash", "basis", "resolvedPoint", "target", "gapMm"],
|
|
224
|
+
"additionalProperties": false,
|
|
225
|
+
"properties": {
|
|
226
|
+
"kind": { "const": "aligned" },
|
|
227
|
+
"by": { "enum": ["reader", "user"] },
|
|
228
|
+
"policy": { "const": "support-centerline/v1" },
|
|
229
|
+
"findingId": { "$ref": "#/$defs/hash" },
|
|
230
|
+
"contextHash": { "$ref": "#/$defs/hash" },
|
|
231
|
+
"basis": { "$ref": "#/$defs/decisionBasis" },
|
|
232
|
+
"resolvedPoint": { "$ref": "#/$defs/workPointKnown" },
|
|
233
|
+
"target": { "$ref": "#/$defs/memberClusterTarget" },
|
|
234
|
+
"gapMm": { "type": "number", "exclusiveMinimum": 0 }
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"keepShortDecision": {
|
|
238
|
+
"type": "object",
|
|
239
|
+
"required": ["kind", "by", "policy", "findingId", "contextHash", "basis", "reason", "candidateSetHash", "candidateCount"],
|
|
240
|
+
"additionalProperties": false,
|
|
241
|
+
"properties": {
|
|
242
|
+
"kind": { "const": "keep-short" },
|
|
243
|
+
"by": { "const": "user" },
|
|
244
|
+
"policy": { "const": "support-centerline/v1" },
|
|
245
|
+
"findingId": { "$ref": "#/$defs/hash" },
|
|
246
|
+
"contextHash": { "$ref": "#/$defs/hash" },
|
|
247
|
+
"basis": { "$ref": "#/$defs/decisionBasis" },
|
|
248
|
+
"reason": { "$ref": "#/$defs/keepShortReason" },
|
|
249
|
+
"candidateSetHash": { "$ref": "#/$defs/hash" },
|
|
250
|
+
"candidateCount": { "type": "integer", "minimum": 0 }
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"staleAlignedDecision": {
|
|
254
|
+
"type": "object",
|
|
255
|
+
"required": ["kind", "by", "policy", "findingId", "contextHash", "basis", "priorResolvedPoint", "gapMm", "targetSnapshot", "staleReasons", "invalidationId"],
|
|
256
|
+
"additionalProperties": false,
|
|
257
|
+
"properties": {
|
|
258
|
+
"kind": { "const": "stale-aligned" },
|
|
259
|
+
"by": { "enum": ["reader", "user"] },
|
|
260
|
+
"policy": { "const": "support-centerline/v1" },
|
|
261
|
+
"findingId": { "$ref": "#/$defs/hash" },
|
|
262
|
+
"contextHash": { "$ref": "#/$defs/hash" },
|
|
263
|
+
"basis": { "$ref": "#/$defs/decisionBasis" },
|
|
264
|
+
"priorResolvedPoint": { "$ref": "#/$defs/workPointKnown" },
|
|
265
|
+
"gapMm": { "type": "number", "exclusiveMinimum": 0 },
|
|
266
|
+
"targetSnapshot": {
|
|
267
|
+
"type": "object",
|
|
268
|
+
"required": ["target", "dependencyHash", "geometryHash"],
|
|
269
|
+
"additionalProperties": false,
|
|
270
|
+
"properties": { "target": { "$ref": "#/$defs/memberClusterTarget" }, "dependencyHash": { "$ref": "#/$defs/hash" }, "geometryHash": { "$ref": "#/$defs/hash" } }
|
|
271
|
+
},
|
|
272
|
+
"staleReasons": { "type": "array", "items": { "$ref": "#/$defs/staleReason" }, "minItems": 1, "maxItems": 8 },
|
|
273
|
+
"invalidationId": { "type": "string", "minLength": 1, "maxLength": 200 }
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"staleKeepShortDecision": {
|
|
277
|
+
"type": "object",
|
|
278
|
+
"required": ["kind", "by", "policy", "findingId", "contextHash", "basis", "reason", "candidateSetHash", "candidateCount", "staleReasons", "invalidationId"],
|
|
279
|
+
"additionalProperties": false,
|
|
280
|
+
"properties": {
|
|
281
|
+
"kind": { "const": "stale-keep-short" },
|
|
282
|
+
"by": { "const": "user" },
|
|
283
|
+
"policy": { "const": "support-centerline/v1" },
|
|
284
|
+
"findingId": { "$ref": "#/$defs/hash" },
|
|
285
|
+
"contextHash": { "$ref": "#/$defs/hash" },
|
|
286
|
+
"basis": { "$ref": "#/$defs/decisionBasis" },
|
|
287
|
+
"reason": { "$ref": "#/$defs/keepShortReason" },
|
|
288
|
+
"candidateSetHash": { "$ref": "#/$defs/hash" },
|
|
289
|
+
"candidateCount": { "type": "integer", "minimum": 0 },
|
|
290
|
+
"staleReasons": { "type": "array", "items": { "$ref": "#/$defs/staleReason" }, "minItems": 1, "maxItems": 8 },
|
|
291
|
+
"invalidationId": { "type": "string", "minLength": 1, "maxLength": 200 }
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"workPointDecision": {
|
|
295
|
+
"oneOf": [
|
|
296
|
+
{ "$ref": "#/$defs/alignedDecision" },
|
|
297
|
+
{ "$ref": "#/$defs/keepShortDecision" },
|
|
298
|
+
{ "$ref": "#/$defs/staleAlignedDecision" },
|
|
299
|
+
{ "$ref": "#/$defs/staleKeepShortDecision" }
|
|
300
|
+
]
|
|
301
|
+
},
|
|
142
302
|
"point2": { "type": "array", "items": { "type": "number" }, "minItems": 2, "maxItems": 2, "description": "An [x,y] pair. Frame stated per use site — display px on a plan, world mm on the model grid." },
|
|
143
303
|
"point3": { "type": "array", "items": { "type": "number" }, "minItems": 3, "maxItems": 3, "description": "An [x,y,z] point in world mm (Z-up)." },
|
|
304
|
+
"sourceRegistrationControl": {
|
|
305
|
+
"type": "object",
|
|
306
|
+
"required": ["kind", "displayPoint", "worldPoint", "sourceElementIds"],
|
|
307
|
+
"additionalProperties": false,
|
|
308
|
+
"properties": {
|
|
309
|
+
"kind": { "enum": ["origin", "u", "v"] },
|
|
310
|
+
"displayPoint": { "$ref": "#/$defs/point2" },
|
|
311
|
+
"worldPoint": { "$ref": "#/$defs/workPointKnown" },
|
|
312
|
+
"sourceElementIds": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1, "maxItems": 16 }
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"sourceRegistration": {
|
|
316
|
+
"type": "object",
|
|
317
|
+
"required": ["version", "displayOrigin", "worldOrigin", "worldU", "worldV", "controls"],
|
|
318
|
+
"additionalProperties": false,
|
|
319
|
+
"description": "Versioned display-to-world frame for a non-plan drawing view. The enclosing view pt_per_ft is the sole scale authority.",
|
|
320
|
+
"properties": {
|
|
321
|
+
"version": { "const": 1 },
|
|
322
|
+
"displayOrigin": { "$ref": "#/$defs/point2" },
|
|
323
|
+
"worldOrigin": { "$ref": "#/$defs/workPointKnown" },
|
|
324
|
+
"worldU": { "$ref": "#/$defs/point3" },
|
|
325
|
+
"worldV": { "$ref": "#/$defs/point3" },
|
|
326
|
+
"controls": { "type": "array", "items": { "$ref": "#/$defs/sourceRegistrationControl" }, "minItems": 3, "maxItems": 3 }
|
|
327
|
+
}
|
|
328
|
+
},
|
|
144
329
|
"intersectionRef": {
|
|
145
330
|
"type": "object",
|
|
146
331
|
"required": ["axis_x", "axis_y"],
|
|
@@ -172,6 +357,16 @@
|
|
|
172
357
|
"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 only when NO section dimensions resolve at all — neither an AISC designation nor a positive explicit `section` — because then there is no face to name. It is NOT ignored for a plumb column or brace: the member frame falls back to the coordinate system's own axes when the member is parallel to its normal, which is Tekla's column convention, so a plumb member has a determinate left and right after all. 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." },
|
|
173
358
|
"positionOffset": { "type": "number", "description": "Millimetres along the section's own DEPTH axis, past the face `position` names. Added to that face's offset BEFORE the section is rolled by `rot`, so it stays measured on the section's own axis at every angle rather than becoming a world-space nudge a roll would send elsewhere. POSITIVE moves the section along its +depth axis — straight up for a level, unrolled member — which puts the reference line inside the steel rather than on the named face. Absent = 0. The named face and this number are ONE placement, not two: swapping the profile re-derives the face and keeps this offset past it, which is the whole reason the face is stored by name rather than as a distance." },
|
|
174
359
|
"positionHOffset": { "type": "number", "description": "Millimetres along the section's own WIDTH axis, past the face `positionH` names — the plan companion to `positionOffset`, with the same rule. POSITIVE moves the section along its +width axis, which is `up x memberAxis`: the member's LEFT, looking from `from` to `to` with Z up. Absent = 0." },
|
|
360
|
+
"positionBasis": {
|
|
361
|
+
"type": "object",
|
|
362
|
+
"required": ["x", "y"],
|
|
363
|
+
"additionalProperties": false,
|
|
364
|
+
"description": "The rotational coordinate-system basis in which Profile Position was authored. Absence means Global. Origin is intentionally not stored; z is derived as x × y.",
|
|
365
|
+
"properties": {
|
|
366
|
+
"x": { "type": "array", "minItems": 3, "maxItems": 3, "items": { "type": "number" }, "description": "Canonical unit X axis of the authoring coordinate system." },
|
|
367
|
+
"y": { "type": "array", "minItems": 3, "maxItems": 3, "items": { "type": "number" }, "description": "Canonical unit Y axis, orthogonal to x." }
|
|
368
|
+
}
|
|
369
|
+
},
|
|
175
370
|
"rot": { "type": "number", "description": "Section rotation about the member axis, degrees." },
|
|
176
371
|
"section": {
|
|
177
372
|
"type": "object",
|
|
@@ -219,7 +414,8 @@
|
|
|
219
414
|
"note": { "type": "string", "description": "Connection note (e.g. moment, shear, braced)." },
|
|
220
415
|
"detail": { "type": "string", "description": "Connection detail reference, e.g. \"5-S504\"." },
|
|
221
416
|
"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." },
|
|
222
|
-
"connVerified": { "type": "boolean", "description": "True = a human confirmed this end's connection." }
|
|
417
|
+
"connVerified": { "type": "boolean", "description": "True = a human confirmed this end's connection." },
|
|
418
|
+
"workPointDecision": { "$ref": "#/$defs/workPointDecision", "description": "Bounded, replayable support-centerline decision for this physical endpoint. It is provenance; canonical from/to remain geometry truth." }
|
|
223
419
|
}
|
|
224
420
|
},
|
|
225
421
|
"plan": {
|
|
@@ -229,7 +425,7 @@
|
|
|
229
425
|
"description": "One framing sheet, as a horizontal CUT PLANE. It no longer owns members: `elevation_in` fixes it in height, the authored controls fix it in plan, `memberObservations` records what its drawing actually showed, and `memberRefs` assigns presentation for members it displays but never observed. Ownership and observation are different things and only ownership disappears (epic §4) — a sheet whose drawing supplied 2 column observations must still DISPLAY the 20 columns crossing its elevation.",
|
|
230
426
|
"properties": {
|
|
231
427
|
"sheet": { "type": "string", "minLength": 1, "description": "Sheet number, e.g. S-202. Unique across plans." },
|
|
232
|
-
"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.
|
|
428
|
+
"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. Plans use datum/control registration; elevation and section views require explicit sourceRegistration before their geometry can be transformed." },
|
|
233
429
|
"title": { "type": "string" },
|
|
234
430
|
"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." },
|
|
235
431
|
"pt_per_ft": { "type": "number", "description": "Display points per foot (the drawing scale). Still needed: observations record local geometry in display px." },
|
|
@@ -237,6 +433,7 @@
|
|
|
237
433
|
"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." },
|
|
238
434
|
"control2_at": { "$ref": "#/$defs/point2", "description": "A SECOND, non-coincident control point, display space. One point fixes only WHERE a sheet sits; the vector between two carries rotation, mirroring and scale (epic §6.2)." },
|
|
239
435
|
"control2_ref": { "$ref": "#/$defs/intersectionRef", "description": "Which labelled intersection `control2_at` is. Required alongside `control2_at` — unlike `datum_ref` it is never omitted, because a second control is never the model origin, so its labels always have to be stated. NOT expressible here (this repo's validator implements no `dependentRequired`), so it is enforced by `checkModelReferences` as `control-pair-incomplete` rather than by this schema." },
|
|
436
|
+
"sourceRegistration": { "$ref": "#/$defs/sourceRegistration", "description": "Geometry-capable elevation/section registration. Forbidden semantically on plan views, which retain their existing plan registration authority." },
|
|
240
437
|
"clip": { "type": "array", "items": { "type": "number" }, "minItems": 4, "maxItems": 4, "description": "[x0,y0,x1,y1] display-space crop of the framing area." },
|
|
241
438
|
"raster_b64": { "type": "string", "description": "Base64 raster of the framing area. CONFIDENTIAL — never committed." },
|
|
242
439
|
"segments": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
|
|
@@ -345,7 +542,23 @@
|
|
|
345
542
|
},
|
|
346
543
|
"status": { "enum": ["active", "superseded", "archived"] },
|
|
347
544
|
"verified": { "type": "boolean", "description": "True = a human confirmed this trace against its source." },
|
|
348
|
-
"inherited": { "type": "boolean", "description": "True when a user split attached this immutable read evidence to both replacement segments." }
|
|
545
|
+
"inherited": { "type": "boolean", "description": "True when a user split attached this immutable read evidence to both replacement segments." },
|
|
546
|
+
"endpointLineage": {
|
|
547
|
+
"type": "array",
|
|
548
|
+
"maxItems": 32,
|
|
549
|
+
"items": {
|
|
550
|
+
"type": "object",
|
|
551
|
+
"required": ["observationEnd", "memberId", "memberEnd", "lineageId"],
|
|
552
|
+
"additionalProperties": false,
|
|
553
|
+
"properties": {
|
|
554
|
+
"observationEnd": { "enum": [0, 1] },
|
|
555
|
+
"memberId": { "type": "string", "minLength": 1 },
|
|
556
|
+
"memberEnd": { "enum": [0, 1] },
|
|
557
|
+
"lineageId": { "$ref": "#/$defs/hash" }
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
"description": "Explicit immutable-observation-end to physical-member-end lineage. Array order never implies endpoint identity."
|
|
561
|
+
}
|
|
349
562
|
}
|
|
350
563
|
},
|
|
351
564
|
"modelGrid": {
|
|
@@ -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.
|
|
10
|
+
version: 0.22.1
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
# Steel Takeoff — read drawings into `steel.model/v2`
|
|
@@ -199,6 +199,22 @@ Store columns base-to-top. Preserve authored endpoint order for every other role
|
|
|
199
199
|
`memberType` are authored facts, never guesses derived from geometry. Resolve section mass through the
|
|
200
200
|
region-appropriate steel detailer and record unresolved marks honestly.
|
|
201
201
|
|
|
202
|
+
Profile Position is authored in a coordinate-system basis. Capability contract
|
|
203
|
+
`POSITION_BASIS_CAPABILITY_VERSION = 1`:
|
|
204
|
+
|
|
205
|
+
- omit `positionBasis` only for Global authoring;
|
|
206
|
+
- for a local frame or working plane, store its origin-free, right-handed orthonormal axes as
|
|
207
|
+
`"positionBasis":{"x":[x,y,z],"y":[x,y,z]}`; the runtime derives `z = normalize(x × y)`;
|
|
208
|
+
- axes must be finite unit vectors with `abs(dot(x,y)) <= 1e-10`; never repair or nearly-global-fold a
|
|
209
|
+
malformed basis;
|
|
210
|
+
- `position`, `positionH`, their millimetre offsets, and `rot` are expressed in that stored basis. If a
|
|
211
|
+
revision changes the basis, re-express the placement through the exact inverse so every world vertex
|
|
212
|
+
stays within 0.001 mm, preserving named faces and offsets; if the section or residual cannot be proven,
|
|
213
|
+
refuse rather than moving the steel;
|
|
214
|
+
- preserve `positionBasis` through splits, copies, sheet moves, reversal, save/reload, and revisions.
|
|
215
|
+
Merge only after the common seam proves the resolved physical section and final axes coincide; matching
|
|
216
|
+
basis bytes or angle spellings is not proof.
|
|
217
|
+
|
|
202
218
|
Elevation is explicit at both endpoints:
|
|
203
219
|
|
|
204
220
|
- known: `{ "known": 5029.2 }`;
|
|
@@ -233,7 +249,21 @@ Each observation is model-globally unique and split into immutable `evidence` an
|
|
|
233
249
|
"binding": {
|
|
234
250
|
"memberIds": ["b-S201-014"],
|
|
235
251
|
"status": "active",
|
|
236
|
-
"verified": false
|
|
252
|
+
"verified": false,
|
|
253
|
+
"endpointLineage": [
|
|
254
|
+
{
|
|
255
|
+
"observationEnd": 0,
|
|
256
|
+
"memberId": "b-S201-014",
|
|
257
|
+
"memberEnd": 0,
|
|
258
|
+
"lineageId": "sha256:f281d6b64b50a245f23135b550371558670fe566cd4005a329512638aef17312"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"observationEnd": 1,
|
|
262
|
+
"memberId": "b-S201-014",
|
|
263
|
+
"memberEnd": 1,
|
|
264
|
+
"lineageId": "sha256:0da8a2c8146740aed193e04b3fcfeda7580560bb3eac669a08d238c1f73ad8ae"
|
|
265
|
+
}
|
|
266
|
+
]
|
|
237
267
|
}
|
|
238
268
|
}
|
|
239
269
|
```
|
|
@@ -247,6 +277,33 @@ Never rewrite old evidence. A re-read mints a new observation with `provenance:
|
|
|
247
277
|
`supersedes: ["old-observation-id"]`. Rebind, supersede, or archive the old observation through its
|
|
248
278
|
binding. A split may bind one observation to both survivors; deletion archives it with no member ids.
|
|
249
279
|
|
|
280
|
+
### Literal endpoints and server-owned centerline normalization
|
|
281
|
+
|
|
282
|
+
Record each selected drawing segment exactly as printed. A beam or brace line that stops at a support
|
|
283
|
+
face stays face-short in both `evidence.local.wp` and the literal candidate's corresponding canonical
|
|
284
|
+
endpoint. Bind each physical observation endpoint explicitly through `binding.endpointLineage`; use the
|
|
285
|
+
following exact algorithm and never guess or reuse the other end's identity:
|
|
286
|
+
|
|
287
|
+
1. JCS-encode the two-item JSON array `[observationId, observationEnd]`, preserving the array order.
|
|
288
|
+
2. Form the byte preimage exactly as `UTF8("floless:endpoint-lineage:v1") || 0x00 ||
|
|
289
|
+
UTF8(JCS([observationId, observationEnd]))`, where `UTF8` means UTF-8 encoding and `||` means byte
|
|
290
|
+
concatenation.
|
|
291
|
+
3. Set `lineageId` to `sha256:` followed by the lowercase hexadecimal SHA-256 digest of that preimage.
|
|
292
|
+
|
|
293
|
+
For the observation id in the example, the JCS payloads are `["obs-S201-b014-r1",0]` and
|
|
294
|
+
`["obs-S201-b014-r1",1]`; they produce the two concrete `lineageId` values shown above. The U+0000
|
|
295
|
+
domain separator is one NUL byte, not the two printable characters backslash and zero.
|
|
296
|
+
|
|
297
|
+
Do **not** extend a member to a support centerline yourself, choose a support target, copy a threshold,
|
|
298
|
+
or author `ends[].workPointDecision`. The FloLess server owns `support-centerline/v1`: it transforms
|
|
299
|
+
registered observation geometry into world millimetres, evaluates real placed target footprints,
|
|
300
|
+
normalizes only deterministic new-member cases, and returns ambiguous or existing endpoints for human
|
|
301
|
+
review. Immutable observation evidence remains the as-drawn fact after the canonical endpoint moves.
|
|
302
|
+
|
|
303
|
+
On a revision, keep every existing member endpoint literal to the reader's composed candidate. Only new
|
|
304
|
+
members are eligible for server automatic alignment; the server routes any proposed change to an
|
|
305
|
+
existing endpoint to review. This boundary protects approved or manually edited geometry.
|
|
306
|
+
|
|
250
307
|
## Confidence and verification
|
|
251
308
|
|
|
252
309
|
Score confidence per observed field, not once per member. Loop until the request's `target_confidence`
|
|
@@ -290,8 +347,11 @@ working project contract; approval and bake strip them from published artifacts.
|
|
|
290
347
|
|
|
291
348
|
## Submit through revision-read
|
|
292
349
|
|
|
293
|
-
First POST `{ requestId, contract, attestation }` to the project's `/revision-read/audit` route
|
|
294
|
-
|
|
350
|
+
First POST `{ requestId, contract, attestation }` to the project's `/revision-read/audit` route, where
|
|
351
|
+
`contract` is the literal candidate described above. The response includes the server-normalized preview,
|
|
352
|
+
its member-end report, and distinct literal/final hashes; inspect those results, but do not copy their
|
|
353
|
+
decisions into the reader-authored document. Only after the audit returns `read-complete`, POST the exact
|
|
354
|
+
same literal contract and attestation to `revision-read` with:
|
|
295
355
|
|
|
296
356
|
- the queued `requestId` and base ledger head;
|
|
297
357
|
- the pinned contract and Filter ETags required by the route;
|
|
@@ -300,7 +360,8 @@ after it returns `read-complete`, POST the exact same contract and attestation t
|
|
|
300
360
|
- source snapshots for every queued drawing;
|
|
301
361
|
- a concise read summary and unresolved notes.
|
|
302
362
|
|
|
303
|
-
The transaction independently reloads and re-evaluates the manifest, Filter, candidate,
|
|
363
|
+
The transaction independently reloads and re-evaluates the manifest, Filter, literal candidate,
|
|
364
|
+
server-normalized final candidate, and attestation;
|
|
304
365
|
the preflight response is guidance, never a capability token. On the first read, a valid candidate is
|
|
305
366
|
journal-published as History version 1 with its audit receipt and the request clears. On a later read,
|
|
306
367
|
the route stages a diff for user review. Do not claim completion until the user confirms the staged
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
app: steel-model
|
|
2
|
-
version: 0.
|
|
2
|
+
version: 0.6.0
|
|
3
3
|
display-name: Steel Model
|
|
4
4
|
publisher: floless
|
|
5
5
|
module: steel-detailer
|
|
@@ -20,6 +20,10 @@ exposes-as-agent: false
|
|
|
20
20
|
# Workflow changelog (FloLess-published). Newest first; the app shows entries newer than the
|
|
21
21
|
# installed version when offering an update. Plain-English — it surfaces to the user.
|
|
22
22
|
changelog:
|
|
23
|
+
- version: 0.6.0
|
|
24
|
+
summary: Profile Position follows the coordinate system in which it was authored
|
|
25
|
+
changes:
|
|
26
|
+
- "Added: Profile Position now keeps its physical placement when you work in Global, 2D local axes, a 3D local frame, or a working plane. The editor shows the active edit frame and refuses an unsafe re-expression instead of moving steel."
|
|
23
27
|
- version: 0.5.0
|
|
24
28
|
summary: Drawing Filter and model reading now stay on the native model contract
|
|
25
29
|
changes:
|
|
@@ -55,7 +59,7 @@ inputs:
|
|
|
55
59
|
description: Minimum aggregate confidence the AI read aims for before handing you the editor (%).
|
|
56
60
|
requires:
|
|
57
61
|
- html-report@0.2.x
|
|
58
|
-
- viewer-3d@0.1.
|
|
62
|
+
- viewer-3d@0.1.0
|
|
59
63
|
- file@1.0.x
|
|
60
64
|
layout: linear
|
|
61
65
|
nodes:
|
package/dist/web/app.css
CHANGED
|
@@ -353,6 +353,19 @@
|
|
|
353
353
|
flex-direction: column;
|
|
354
354
|
gap: 14px;
|
|
355
355
|
}
|
|
356
|
+
.messages[hidden] { display: none; }
|
|
357
|
+
.narrative-tabs { display: inline-flex; align-items: center; gap: 3px; }
|
|
358
|
+
.narrative-tab { border: 0; border-radius: 4px; background: transparent; color: var(--text-dim);
|
|
359
|
+
padding: 2px 6px; font: inherit; cursor: pointer; }
|
|
360
|
+
.narrative-tab:hover { color: var(--text); background: var(--surface-3); }
|
|
361
|
+
.narrative-tab.active { color: var(--text); background: var(--accent-soft); }
|
|
362
|
+
.narrative-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
363
|
+
.answer-unread { display: inline-flex; min-width: 16px; height: 16px; margin-left: 3px; padding: 0 4px;
|
|
364
|
+
align-items: center; justify-content: center; border-radius: 8px; background: var(--accent); color: #fff;
|
|
365
|
+
font-family: var(--mono); font-size: 9px; line-height: 1; box-shadow: 0 0 8px var(--accent-glow); }
|
|
366
|
+
.answer-unread[hidden] { display: none; }
|
|
367
|
+
.narrative-tab.instructor-answer-new { box-shadow: 0 0 0 1px var(--accent), 0 0 14px var(--accent-glow); }
|
|
368
|
+
.ai-answers-empty { color: var(--text-dim); font-size: 12px; line-height: 1.55; padding: 10px 2px; }
|
|
356
369
|
.msg { display: flex; flex-direction: column; gap: 4px; animation: msg-in 0.32s ease-out; }
|
|
357
370
|
.msg .who { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.14em; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
|
|
358
371
|
.msg.user .who { color: var(--accent); }
|
|
@@ -370,6 +383,22 @@
|
|
|
370
383
|
background: linear-gradient(180deg, var(--accent-soft), var(--surface-2));
|
|
371
384
|
}
|
|
372
385
|
.msg.aware .body { border-left-color: var(--text-dim); }
|
|
386
|
+
.msg.instructor-answer .body { border-left-color: var(--accent); }
|
|
387
|
+
.answer-new-badge { display: none; margin-bottom: 6px; color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
|
|
388
|
+
.msg.instructor-answer-new .answer-new-badge { display: block; }
|
|
389
|
+
.msg.instructor-answer-new .body {
|
|
390
|
+
border-left-color: var(--accent);
|
|
391
|
+
background: var(--accent-soft);
|
|
392
|
+
animation: instructor-answer-glow 2.1s ease-out;
|
|
393
|
+
}
|
|
394
|
+
@keyframes instructor-answer-glow {
|
|
395
|
+
0%, 35% { box-shadow: 0 0 0 1px var(--accent), 0 0 18px var(--accent-glow); }
|
|
396
|
+
100% { box-shadow: none; }
|
|
397
|
+
}
|
|
398
|
+
@media (prefers-reduced-motion: reduce) {
|
|
399
|
+
.msg.instructor-answer-new .body { animation: none; box-shadow: 0 0 0 1px var(--accent); }
|
|
400
|
+
.narrative-tab.instructor-answer-new { animation: none; }
|
|
401
|
+
}
|
|
373
402
|
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
|
|
374
403
|
|
|
375
404
|
/* ========== COLLAPSED STUBS ========== */
|
|
@@ -4099,7 +4128,8 @@ body {
|
|
|
4099
4128
|
.instructor.collapsed .ix-chip,
|
|
4100
4129
|
.instructor.collapsed .ix-parts,
|
|
4101
4130
|
.instructor.collapsed .ix-hint,
|
|
4102
|
-
.instructor.collapsed .ix-ask
|
|
4131
|
+
.instructor.collapsed .ix-ask,
|
|
4132
|
+
.instructor.collapsed .ix-ask-split { display: none; }
|
|
4103
4133
|
|
|
4104
4134
|
.instructor.tone-blocked {
|
|
4105
4135
|
background: color-mix(in srgb, var(--err) 8%, var(--surface-2));
|
|
@@ -4184,6 +4214,16 @@ body {
|
|
|
4184
4214
|
}
|
|
4185
4215
|
.ix-ask:hover { border-color: var(--accent-dim); color: var(--accent-bright); }
|
|
4186
4216
|
.ix-ask[hidden] { display: none; }
|
|
4217
|
+
.ix-ask-split { display: inline-flex; flex: none; }
|
|
4218
|
+
.ix-ask-split[hidden] { display: none; }
|
|
4219
|
+
.ix-ask-main { border-top-right-radius: 0; border-bottom-right-radius: 0; }
|
|
4220
|
+
.ix-ask-caret { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 0; padding-left: 7px; padding-right: 7px; }
|
|
4221
|
+
.ix-ask-menu { position: fixed; z-index: 1200; min-width: 190px; padding: 4px; border: 1px solid var(--border-strong);
|
|
4222
|
+
border-radius: 6px; background: var(--surface); box-shadow: 0 10px 28px rgba(0,0,0,.45); }
|
|
4223
|
+
.ix-ask-menu[hidden] { display: none; }
|
|
4224
|
+
.ix-ask-menu button { display: block; width: 100%; border: 0; border-radius: 4px; padding: 7px 9px;
|
|
4225
|
+
background: transparent; color: var(--text-muted); text-align: left; font: inherit; font-size: 11px; cursor: pointer; }
|
|
4226
|
+
.ix-ask-menu button:hover, .ix-ask-menu button:focus-visible { background: var(--accent-soft); color: var(--text); outline: none; }
|
|
4187
4227
|
|
|
4188
4228
|
@media (prefers-reduced-motion: reduce) {
|
|
4189
4229
|
.ix-caret { transition: none; }
|
package/dist/web/app.js
CHANGED
|
@@ -283,10 +283,11 @@ function nowStamp(d = new Date()) {
|
|
|
283
283
|
const p = (n) => String(n).padStart(2, '0');
|
|
284
284
|
return `${d.getFullYear()}-${p(d.getMonth() + 1)}-${p(d.getDate())} ${p(d.getHours())}:${p(d.getMinutes())}:${p(d.getSeconds())}`;
|
|
285
285
|
}
|
|
286
|
-
function msgEl(cls, who, html) {
|
|
286
|
+
function msgEl(cls, who, html, timestamp = new Date()) {
|
|
287
287
|
const div = document.createElement('div');
|
|
288
288
|
div.className = 'msg ' + cls;
|
|
289
|
-
|
|
289
|
+
const when = timestamp instanceof Date ? timestamp : new Date(timestamp);
|
|
290
|
+
div.innerHTML = `<div class="who"><span class="who-name">${who}</span><span class="who-time">${nowStamp(Number.isFinite(when.getTime()) ? when : new Date())}</span></div><div class="body">${html}</div>`;
|
|
290
291
|
return div;
|
|
291
292
|
}
|
|
292
293
|
function mdInline(s) {
|