@floless/app 0.104.1 → 0.105.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 +9842 -6508
- package/dist/schemas/steel.model.v2.schema.json +652 -0
- package/dist/schemas/steel.takeoff.v1.schema.json +1 -1
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +109 -5
- package/dist/skills/floless-app-tweak-contract/SKILL.md +23 -7
- package/dist/skills/floless-app-vectorize/SKILL.md +21 -5
- package/dist/templates/steel-model.flo +5 -1
- package/dist/templates/vectorize.flo +5 -1
- package/dist/web/app.css +62 -3
- package/dist/web/aware.js +498 -55
- package/dist/web/index.html +28 -1
- package/dist/web/steel-3d-core.js +242 -0
- package/dist/web/steel-3d-view.js +584 -53
- package/dist/web/steel-editor.html +895 -168
- package/dist/web/steel-filter.html +67 -2
- package/dist/web/steel-materials.js +249 -0
- package/dist/web/steel-model-adapter.js +210 -0
- package/dist/web/steel-model-commands.js +691 -0
- package/dist/web/steel-view-generation.js +10 -1
- package/dist/web/vector-editor.html +118 -3
- package/dist/web/vendor/README.md +6 -1
- package/dist/web/vendor/RoomEnvironment.js +185 -0
- package/dist/web/workspaces.js +345 -26
- package/package.json +6 -1
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"joints": { "type": "array", "items": { "$ref": "#/$defs/joint" }, "description": "Placed connections (base plates, …) the connection engine expands into real 3D parts (plate/bolt/weld/cut) bound to their members. A joint may cite a `connections[]` row via `conn` for its type/detail identity; `params` carries the geometry settings (engine defaults when absent)." },
|
|
49
49
|
"dims3d": { "type": "array", "items": { "$ref": "#/$defs/dim3" }, "description": "Draft-only 3D dimensions (editor annotations, model-global). World-scene mm. NOT baked into the lock / 3D scene / IFC / BOM." },
|
|
50
50
|
"detail_placements": { "type": "array", "items": { "$ref": "#/$defs/detailPlacement" }, "description": "Draft-only placed 2D detail images (Slice 4 — insert a vectored detail into the model). Flat image planes the editor renders client-side against the model; metadata only — the image bytes live in custom_details. Model-global. NOT baked into the lock / 3D scene / IFC / BOM." },
|
|
51
|
-
"views": { "type": "array", "description": "Draft-only saved views (Views Organizer, unlimited saved entries): each a named snapshot of the 3D viewpoint (camera + projection + display mode + clip boxes/planes + work area + the objects-list pane's persistent visibility/isolate state). F11-generated grid elevations and level plans also carry closed `generated` provenance so their cut depths remain editable. Editor state, model-global. NOT baked into the lock / 3D scene / IFC / BOM.", "items": { "type": "object", "additionalProperties": true, "required": ["id", "name"], "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "order": { "type": "number" }, "camera": { "type": "object", "additionalProperties": true }, "projection": { "enum": ["persp", "ortho"] }, "mode": { "enum": ["solid", "wire", "xray"] }, "clips": { "type": "object", "additionalProperties": true }, "objects": { "type": "object", "additionalProperties": true }, "generated": { "oneOf": [{ "type": "object", "additionalProperties": false, "required": ["v", "kind", "sheet", "label", "at", "look", "ahead", "behind"], "properties": { "v": { "const": 1 }, "kind": { "enum": ["grid-x", "grid-y"] }, "sheet": { "type": "string" }, "label": { "type": "string" }, "at": { "type": "number" }, "look": { "enum": ["positive", "negative"] }, "ahead": { "type": "number", "exclusiveMinimum": 0 }, "behind": { "type": "number", "exclusiveMinimum": 0 } } }, { "type": "object", "additionalProperties": false, "required": ["v", "kind", "sheet", "label", "at", "look", "above", "below"], "properties": { "v": { "const": 1 }, "kind": { "const": "level" }, "sheet": { "type": "string" }, "label": { "type": "string" }, "at": { "type": "number" }, "look": { "const": "down" }, "above": { "type": "number", "exclusiveMinimum": 0 }, "below": { "type": "number", "exclusiveMinimum": 0 } } }] } } } },
|
|
51
|
+
"views": { "type": "array", "description": "Draft-only saved views (Views Organizer, unlimited saved entries): each a named snapshot of the 3D viewpoint (camera + projection + display mode + clip boxes/planes + work area + the objects-list pane's persistent visibility/isolate state). F11-generated grid elevations and level plans also carry closed `generated` provenance so their cut depths remain editable. Editor state, model-global. NOT baked into the lock / 3D scene / IFC / BOM.", "items": { "type": "object", "additionalProperties": true, "required": ["id", "name"], "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "order": { "type": "number" }, "camera": { "type": "object", "additionalProperties": true }, "projection": { "enum": ["persp", "ortho"] }, "mode": { "enum": ["solid", "wire", "xray", "realistic", "shadowed"] }, "clips": { "type": "object", "additionalProperties": true }, "objects": { "type": "object", "additionalProperties": true }, "generated": { "oneOf": [{ "type": "object", "additionalProperties": false, "required": ["v", "kind", "sheet", "label", "at", "look", "ahead", "behind"], "properties": { "v": { "const": 1 }, "kind": { "enum": ["grid-x", "grid-y"] }, "sheet": { "type": "string" }, "label": { "type": "string" }, "at": { "type": "number" }, "look": { "enum": ["positive", "negative"] }, "ahead": { "type": "number", "exclusiveMinimum": 0 }, "behind": { "type": "number", "exclusiveMinimum": 0 } } }, { "type": "object", "additionalProperties": false, "required": ["v", "kind", "sheet", "label", "at", "look", "above", "below"], "properties": { "v": { "const": 1 }, "kind": { "const": "level" }, "sheet": { "type": "string" }, "label": { "type": "string" }, "at": { "type": "number" }, "look": { "const": "down" }, "above": { "type": "number", "exclusiveMinimum": 0 }, "below": { "type": "number", "exclusiveMinimum": 0 } } }] } } } },
|
|
52
52
|
"prop_labels": {
|
|
53
53
|
"type": "object",
|
|
54
54
|
"additionalProperties": true,
|
|
@@ -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.
|
|
5
|
+
version: 0.10.0
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Steel Takeoff — read a drawing into a steel.takeoff/v1 contract
|
|
@@ -246,7 +246,9 @@ native/display coords):
|
|
|
246
246
|
`*BEAM*STEL*`, `*COL*`, `*BRACE*`, `*JOIST*`) → default **on**; others off. Mark
|
|
247
247
|
`drawable: false` on pure text/dimension/title-block layers.
|
|
248
248
|
5. Set `filter.mode: "layer"`, `filter.active: 0`. **PUT** the contract
|
|
249
|
-
(`PUT /api/contract/steel-model`)
|
|
249
|
+
(`PUT /api/contract/steel-model`) **with a precondition header** — `If-Match: <the ETag from your
|
|
250
|
+
GET>`, or `If-None-Match: *` if the GET returned no ETag (§5 has the full rule). A PUT carrying
|
|
251
|
+
neither is refused with `428`. On a re-read, preserve any existing per-facet `on` flags.
|
|
250
252
|
|
|
251
253
|
### 1c. Grid lines — read the printed grid (quick, per sheet)
|
|
252
254
|
|
|
@@ -273,6 +275,91 @@ text layer. You CAN read them: you already have vision on the sheet. So:
|
|
|
273
275
|
|
|
274
276
|
Skip silently only when the sheet genuinely has no grid bubbles (rare for framing plans); say so.
|
|
275
277
|
|
|
278
|
+
### 1d. Model datum — ASK which grid intersection is global 0,0,0
|
|
279
|
+
|
|
280
|
+
Every sheet is traced in its **own** display space, and nothing ties two sheets to a common frame. The
|
|
281
|
+
same physical grid read from three sheets therefore lands in three different places — measured on a real
|
|
282
|
+
project: **443 mm apart**. That silently mis-registers every member read from those sheets — columns that
|
|
283
|
+
stack in the building end up half a metre apart in the model, and one grid exports as three objects.
|
|
284
|
+
|
|
285
|
+
One authored fact fixes it: a **datum** — the grid intersection that is global 0,0,0 — located on every
|
|
286
|
+
sheet.
|
|
287
|
+
|
|
288
|
+
**ASK the user which intersection is the datum. Never choose it.** Where the model origin sits is a
|
|
289
|
+
project decision (it often matches the surveyor's or erector's control point), not a drafting detail.
|
|
290
|
+
Ask in plain English, naming the likeliest candidate without deciding for them:
|
|
291
|
+
|
|
292
|
+
> "Which grid intersection should be the model origin (0,0)? Most sets use the lowest-left crossing —
|
|
293
|
+
> here that looks like A/1. Tell me a different intersection if this project uses another datum."
|
|
294
|
+
|
|
295
|
+
Record the answer model-level, naming each axis **by its direction, never by whether the label looks like
|
|
296
|
+
a letter or a number**:
|
|
297
|
+
|
|
298
|
+
```json
|
|
299
|
+
"datum": { "axis_x": "A", "axis_y": "1" }
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
`axis_x` is the label of the grid line running in the **X** direction (the `labels_x` list from 1c);
|
|
303
|
+
`axis_y` is the label of the **Y**-direction line (`labels_y`). **Do not infer this from the label's
|
|
304
|
+
appearance.** The editor's default is X = `1 2 3…` and Y = `A B C…`, but real sets frequently invert it —
|
|
305
|
+
this project's own demo labels X as `K J H … A` and Y as `1.1 2 3 … 6`. A user who says "A/1" has not
|
|
306
|
+
told you which axis is which; resolve it against the actual `labels_x` / `labels_y` read in 1c, and
|
|
307
|
+
confirm back which line is which if the set is inverted.
|
|
308
|
+
|
|
309
|
+
**Then locate that intersection on every sheet**, recording it in that sheet's display space as
|
|
310
|
+
`plan.datum_at = [x, y]` — the crossing point of those two grid lines. Each sheet then shifts so its
|
|
311
|
+
`datum_at` lands on the model origin, instead of the model inferring an offset by comparing grid shapes.
|
|
312
|
+
|
|
313
|
+
A sheet that does not print the model-origin intersection (enlarged or partial plans often omit it) may
|
|
314
|
+
instead record **any** labelled intersection it does print, together with which one it is — its global
|
|
315
|
+
position is already known from the grid, so registration still resolves:
|
|
316
|
+
|
|
317
|
+
```json
|
|
318
|
+
"datum_at": [x, y], "datum_ref": { "axis_x": "F", "axis_y": "4" }
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
Omit `datum_ref` when the sheet uses the model origin itself.
|
|
322
|
+
|
|
323
|
+
**Record a SECOND control intersection on every sheet.** One point fixes only where the sheet sits; it
|
|
324
|
+
cannot tell whether the sheet is rotated, mirrored, or drawn at a slightly different scale, because a
|
|
325
|
+
single point has no orientation. Two points do: the vector between them carries the sheet's rotation,
|
|
326
|
+
its handedness, and its true scale, all checkable against the same two labelled lines on other sheets.
|
|
327
|
+
|
|
328
|
+
Same flat shape as the datum above — a point plus which intersection it is:
|
|
329
|
+
|
|
330
|
+
```json
|
|
331
|
+
"control2_at": [x, y], "control2_ref": { "axis_x": "F", "axis_y": "4" }
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
- `control2_ref` is **always** required alongside `control2_at`. Unlike `datum_ref` it is never omitted:
|
|
335
|
+
a second control is never the model origin, so its labels always have to be stated.
|
|
336
|
+
- Pick the intersection **furthest from the datum** that the sheet actually prints — the longer the
|
|
337
|
+
baseline, the smaller the angular error. Diagonally opposite is ideal.
|
|
338
|
+
- Same reading rules as the datum: take the labels from `labels_x` / `labels_y`, never guess from
|
|
339
|
+
appearance, never invent an intersection the sheet does not print.
|
|
340
|
+
- **When the sheet prints only one labelled intersection**, omit both fields and say so. That sheet can
|
|
341
|
+
be positioned but not orientation-checked, and a later step may have to ask for another control.
|
|
342
|
+
- Do NOT ask the user for this one — unlike the datum, it is not a project decision. It is a second
|
|
343
|
+
reading of something already printed, so read it.
|
|
344
|
+
|
|
345
|
+
- **Any intersection is a valid datum** — verified: the choice moves registration by under 1 mm. What
|
|
346
|
+
matters is that **every sheet uses the same one**, not which one gets picked.
|
|
347
|
+
- Never guess a datum. When a sheet prints no labelled intersection at all, leave `datum_at` unset and
|
|
348
|
+
say which sheets are unregistered — do NOT substitute an unlabelled crossing.
|
|
349
|
+
- **Say so when a sheet is rotated or mirrored** relative to the others (a plan drawn at a skew, or a
|
|
350
|
+
reversed-hand view). A datum point fixes translation only; it cannot correct orientation, and
|
|
351
|
+
registering such a sheet as if it were square would silently distort every member read from it.
|
|
352
|
+
- **Record the elevation the sheet CUTS as `plan.elevation_in`** (decimal inches, same convention as
|
|
353
|
+
`default_tos`) — read it off the drawing's level/TOS callouts. Datum + elevation together place the
|
|
354
|
+
sheet as a horizontal cut plane in 3D: datum fixes it in plan, elevation fixes it in height.
|
|
355
|
+
- **`default_tos` is NOT the sheet's cut elevation** — it is the fallback top-of-steel applied to members
|
|
356
|
+
whose ends are blank. The two often carry the same number on a framing plan, which makes conflating
|
|
357
|
+
them easy and wrong: a plan can default its blank ends to one level while cutting at another. Author
|
|
358
|
+
both, independently.
|
|
359
|
+
- **Read the elevation off the drawing; always ASK for the datum.** The elevation is printed and can be
|
|
360
|
+
re-read later; which intersection the project calls 0,0 is the user's intent and cannot be recovered
|
|
361
|
+
after the fact.
|
|
362
|
+
|
|
276
363
|
**Then STOP and hand off — checkpoint before the member read.** Tell the user to open the **Filter**
|
|
277
364
|
node, flip through the sheets, narrow to the steel, and **Save**. The saved `on` flags + `mode` are
|
|
278
365
|
what step 2 reads — **per sheet** (each sheet's elements passing `mode` + the global `on` flags). Only
|
|
@@ -813,16 +900,33 @@ Key field rules:
|
|
|
813
900
|
|
|
814
901
|
### 5. Write to the contract store
|
|
815
902
|
|
|
903
|
+
**Read first, then write.** `GET` the contract before you PUT and keep its `ETag` response header —
|
|
904
|
+
that tag is what makes the write safe, and you need it even when you are replacing the document
|
|
905
|
+
wholesale.
|
|
906
|
+
|
|
907
|
+
**A contract write MUST carry a precondition** — the server refuses one that does not (`428`). Which
|
|
908
|
+
header depends on what that `GET` returned:
|
|
909
|
+
|
|
816
910
|
```
|
|
817
911
|
PUT http://localhost:<port>/api/contract/steel-model
|
|
818
912
|
Content-Type: application/json
|
|
913
|
+
If-Match: <the ETag from your GET> # replacing — the usual case
|
|
914
|
+
If-None-Match: * # ONLY if the GET returned no ETag at all (no draft yet)
|
|
819
915
|
|
|
820
916
|
<contract JSON body>
|
|
821
917
|
```
|
|
822
918
|
|
|
823
|
-
The server schema-validates the body.
|
|
824
|
-
|
|
825
|
-
|
|
919
|
+
The server schema-validates the body. Responses that need action:
|
|
920
|
+
|
|
921
|
+
- **`400`** — schema-invalid. Read the error, fix the offending fields, and re-PUT.
|
|
922
|
+
- **`412`** — someone else (the user in the editor, another tool, a workflow run) wrote to this
|
|
923
|
+
contract after you read it. **Do NOT retry the same body** — that would destroy their change.
|
|
924
|
+
Re-`GET`, re-apply your edit to the NEW document, and write again with the fresh ETag.
|
|
925
|
+
- **`428`** — you sent no precondition. Add `If-Match` (or `If-None-Match: *` if the GET gave you no
|
|
926
|
+
ETag) and retry.
|
|
927
|
+
|
|
928
|
+
Sending a precondition is not optional politeness: without it a slow edit silently overwrites whatever
|
|
929
|
+
landed while you were working. Read back the current contract with `GET /api/contract/steel-model`.
|
|
826
930
|
|
|
827
931
|
### 6. Hand off to the user
|
|
828
932
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: floless-app-tweak-contract
|
|
3
3
|
description: This skill should be used when there is a pending floless `tweak-contract` request — the user typed an instruction in the Steel Model contract editor and clicked Send (Ask AI). Also triggers on asks like "edit the steel takeoff contract via AI", "adjust the steel takeoff in the contract editor", "the user asked me to change the steel contract", "pick up my tweak-contract request", "update the member profile in the contract". It teaches the host AI to read the request, fetch the current steel.takeoff/v1 contract, apply the instruction (and any pasted screenshots), PUT the updated contract back, and resolve the request.
|
|
4
4
|
metadata:
|
|
5
|
-
version: 0.
|
|
5
|
+
version: 0.2.0
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Handle a `tweak-contract` request (Slice 2 AI round-trip)
|
|
@@ -41,8 +41,11 @@ means invalid — fix and retry.
|
|
|
41
41
|
dev server).
|
|
42
42
|
|
|
43
43
|
2. **Read the current contract.** `GET http://localhost:<port>/api/contract/<appId>` returns
|
|
44
|
-
the full `steel.takeoff/v1` JSON document.
|
|
45
|
-
|
|
44
|
+
the full `steel.takeoff/v1` JSON document. **Keep the `ETag` response header** — step 5 sends it
|
|
45
|
+
back so your write cannot silently overwrite someone else's.
|
|
46
|
+
You can also read it directly from `~/.floless/contracts/<appId>.json`, but then you have no
|
|
47
|
+
ETag and **the write in step 5 will be REFUSED (`428`)** — the server requires a precondition.
|
|
48
|
+
Use the HTTP read whenever you intend to write.
|
|
46
49
|
|
|
47
50
|
The schema is at `schemas/steel.takeoff.v1.schema.json` (in the floless.app repo) and the
|
|
48
51
|
field reference is `docs/superpowers/specs/2026-06-17-steel-takeoff-agent-guidance.md` §3.
|
|
@@ -78,10 +81,23 @@ means invalid — fix and retry.
|
|
|
78
81
|
objects are not supported.
|
|
79
82
|
|
|
80
83
|
5. **Write it back.** `PUT http://localhost:<port>/api/contract/<appId>` with the full updated
|
|
81
|
-
document (Content-Type: application/json)
|
|
82
|
-
the
|
|
83
|
-
|
|
84
|
-
|
|
84
|
+
document (Content-Type: application/json) **and a precondition header**:
|
|
85
|
+
- **`If-Match: <the ETag from step 2>`** — the usual case, replacing a contract you read.
|
|
86
|
+
- **`If-None-Match: *`** — ONLY when the GET returned **no** ETag at all. That happens on an app
|
|
87
|
+
whose contract is still the baked example with no saved draft yet; it means "I believe this
|
|
88
|
+
store is empty" and is refused if a draft appeared meanwhile.
|
|
89
|
+
|
|
90
|
+
A PUT carrying neither is refused with **`428`** — the server never accepts a blind write.
|
|
91
|
+
- **400** — schema-invalid. Read the error, fix the structure against
|
|
92
|
+
`schemas/steel.takeoff.v1.schema.json`, and retry.
|
|
93
|
+
- **412** — someone else (the user in the editor, another tool, a workflow run) wrote to this
|
|
94
|
+
contract after you read it. **Do NOT retry the same body**: that would destroy their change.
|
|
95
|
+
Re-read from step 2, re-apply your edit to the NEW document, and write again.
|
|
96
|
+
- **428** — you sent no precondition (or an `If-None-Match` other than `*`, which this server does
|
|
97
|
+
not evaluate). Add `If-Match` — or `If-None-Match: *` if the GET gave you no ETag — and retry.
|
|
98
|
+
Sending a precondition is not optional politeness — without it a slow edit would silently overwrite
|
|
99
|
+
whatever landed while you were working, which is why the server now refuses it outright. On success the server broadcasts a `contract-changed`
|
|
100
|
+
event; the editor picks it up and prompts to reload.
|
|
85
101
|
|
|
86
102
|
6. **Tell the user.** Summarize what you changed (e.g. "Updated W12X26 → W14X30 on 4 beams
|
|
87
103
|
in sheet S-202; updated `weights` entry to 30 plf"). Tell them to click **↻ Reload** in the
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: floless-app-vectorize
|
|
3
3
|
description: Vectorize a drawing into an editable drawing.vector/v1 contract in floless.app — the "Vectorize" reader. Triggers on a pending floless `rebake` request for the `vectorize` app (queued from its "Re-read & re-bake ▸" button), or asks like "vectorize this PDF", "turn my sketch into clean CAD linework", "read this detail into vectors", "trace this photo", "make this drawing 3D". Teaches the host AI to read a drawing at COMPOSE time — a vector PDF via ONE deterministic PyMuPDF pass (no LLM), a scan/photo/hand sketch via AWARE's fenced vision.extract (schema-bound, cached) — emit the drawing.vector/v1 contract, PUT it to the contract store, and hand the 2D vector editor to the user; and, for a multi-view set (plan + elevation), to classify views, read datums, and declare entities so the server reconstructs a viewable 3D model.
|
|
4
4
|
metadata:
|
|
5
|
-
version: 0.
|
|
5
|
+
version: 0.5.0
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Vectorize — read a drawing into a drawing.vector/v1 contract
|
|
@@ -171,17 +171,33 @@ deterministic and **refuses to guess** — anything you leave unresolved lands i
|
|
|
171
171
|
|
|
172
172
|
### 4. Write to the contract store
|
|
173
173
|
|
|
174
|
+
**Read first, then write.** `GET` the contract before you PUT and keep its `ETag` response header —
|
|
175
|
+
that tag is what makes the write safe, and you need it even when you are replacing the document
|
|
176
|
+
wholesale.
|
|
177
|
+
|
|
178
|
+
**A contract write MUST carry a precondition** — the server refuses one that does not (`428`). Which
|
|
179
|
+
header depends on what that `GET` returned:
|
|
180
|
+
|
|
174
181
|
```
|
|
175
182
|
PUT http://localhost:<port>/api/contract/vectorize
|
|
176
183
|
Content-Type: application/json
|
|
184
|
+
If-Match: <the ETag from your GET> # replacing — the usual case
|
|
185
|
+
If-None-Match: * # ONLY if the GET returned no ETag at all (no draft yet)
|
|
177
186
|
|
|
178
187
|
<contract JSON body>
|
|
179
188
|
```
|
|
180
189
|
|
|
181
|
-
The server schema-validates the body
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
190
|
+
The server schema-validates the body. Responses that need action:
|
|
191
|
+
|
|
192
|
+
- **`400`** — schema-invalid. Read the error, fix the offending fields, and re-PUT.
|
|
193
|
+
- **`412`** — someone else wrote to this contract after you read it. **Do NOT retry the same body**;
|
|
194
|
+
re-`GET`, re-apply your edit to the NEW document, and write again with the fresh ETag.
|
|
195
|
+
- **`428`** — you sent no precondition. Add `If-Match` (or `If-None-Match: *` if the GET gave you no
|
|
196
|
+
ETag) and retry.
|
|
197
|
+
|
|
198
|
+
The stored draft **wins over the baked example immediately** — no compile needed for the editor to
|
|
199
|
+
show it. Read back with `GET /api/contract/vectorize` (served through the pure post-processor, so
|
|
200
|
+
ids/layers come back cleaned).
|
|
185
201
|
|
|
186
202
|
### 5. Hand off to the user
|
|
187
203
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
app: steel-model
|
|
2
|
-
version: 0.
|
|
2
|
+
version: 0.4.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.4.0
|
|
24
|
+
summary: Housekeeping — no change to how Steel Model works
|
|
25
|
+
changes:
|
|
26
|
+
- "Changed: nothing you will notice. Steel Model already opened as a Workspaces project and still does; this is internal tidying so it keeps showing up correctly there as more workflows gain the same ability."
|
|
23
27
|
- version: 0.3.0
|
|
24
28
|
summary: Export your bill of materials as CSV and Excel on Run
|
|
25
29
|
changes:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
app: vectorize
|
|
2
|
-
version: 0.
|
|
2
|
+
version: 0.3.0
|
|
3
3
|
display-name: Vectorize
|
|
4
4
|
publisher: floless
|
|
5
5
|
# FloLess-namespaced flag (AWARE ignores it — the .flo is FloLess's authoring format, not AWARE's).
|
|
@@ -21,6 +21,10 @@ exposes-as-agent: false
|
|
|
21
21
|
# Workflow changelog (FloLess-published). Newest first; the app shows entries newer than the installed
|
|
22
22
|
# version when offering an update. Plain-English — it surfaces to the user.
|
|
23
23
|
changelog:
|
|
24
|
+
- version: 0.3.0
|
|
25
|
+
summary: Vectorize now opens as a Workspaces project
|
|
26
|
+
changes:
|
|
27
|
+
- "Added: this workflow now also appears in Workspaces, where it is called \"Trace a drawing\" — start a project from a drawing, then work through Source, Traced, Exports and History, with Approve as the sign-off. It still works exactly as before in Workflows; Workspaces is just a second way to open it."
|
|
24
28
|
- version: 0.2.0
|
|
25
29
|
summary: Photos, scans and hand sketches can now be vectorized too — unsure strokes are flagged for your review
|
|
26
30
|
- version: 0.1.0
|
package/dist/web/app.css
CHANGED
|
@@ -1872,6 +1872,44 @@
|
|
|
1872
1872
|
#wf-update-sub { color: var(--text-muted); }
|
|
1873
1873
|
.wf-update-note { font-size: 11px; color: var(--text-muted); margin: 0 0 16px; line-height: 1.5; padding-top: 12px; border-top: 1px solid var(--border); }
|
|
1874
1874
|
|
|
1875
|
+
/* Import-failed modal (#314). The remedy command is selectable on its own (user-select:all, the
|
|
1876
|
+
.dc-code idiom) AND has a copy button, so either habit works. The raw-stderr disclosure reuses
|
|
1877
|
+
.fm-note verbatim for its themed scrollbar rather than restating that recipe a fourth time, and
|
|
1878
|
+
mirrors .ws-archived's native <details>/<summary> caret-rotate idiom. Existing tokens only. */
|
|
1879
|
+
/* The rows list is the one variable-length region here (one command per unavailable agent), and
|
|
1880
|
+
.modal caps nothing by default — modals that can grow opt in individually (#form-modal, .library,
|
|
1881
|
+
.routines). Without this a multi-agent refusal pushes Close below the fold on a short viewport
|
|
1882
|
+
with no way to reach it. The actions row stays OUTSIDE the scroller so Close is always visible,
|
|
1883
|
+
and the scroller is themed in the same pass (CLAUDE.md — a long modal list is a scroll container). */
|
|
1884
|
+
#import-failed-modal .modal { max-height: 86vh; display: flex; flex-direction: column; }
|
|
1885
|
+
#import-failed-remedy-rows { max-height: 40vh; overflow-y: auto;
|
|
1886
|
+
scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
|
|
1887
|
+
#import-failed-remedy-rows::-webkit-scrollbar { width: 7px; }
|
|
1888
|
+
#import-failed-remedy-rows::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
|
|
1889
|
+
#import-failed-remedy-rows::-webkit-scrollbar-track { background: transparent; }
|
|
1890
|
+
|
|
1891
|
+
.import-failed-remedy { margin: 2px 0 16px; }
|
|
1892
|
+
.import-failed-remedy-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: 6px; }
|
|
1893
|
+
.import-failed-cmd-row { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 6px; padding: 8px 8px 8px 12px; margin-bottom: 6px; }
|
|
1894
|
+
.import-failed-cmd-row:last-child { margin-bottom: 0; }
|
|
1895
|
+
.import-failed-cmd { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12.5px; color: var(--accent-bright); overflow-x: auto; white-space: pre; user-select: all;
|
|
1896
|
+
scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
|
|
1897
|
+
.import-failed-cmd::-webkit-scrollbar { height: 7px; }
|
|
1898
|
+
.import-failed-cmd::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
|
|
1899
|
+
.import-failed-cmd::-webkit-scrollbar-track { background: transparent; }
|
|
1900
|
+
.import-failed-copy { flex: none; display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 1px solid var(--border-strong); color: var(--text-muted); font-family: var(--ui); font-size: 11px; padding: 5px 10px; border-radius: 4px; cursor: pointer; }
|
|
1901
|
+
.import-failed-copy:hover { color: var(--text); border-color: var(--accent-dim); background: var(--surface); }
|
|
1902
|
+
.import-failed-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
1903
|
+
|
|
1904
|
+
.import-failed-detail { margin-top: 2px; }
|
|
1905
|
+
.import-failed-summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-dim); padding: 5px 2px; user-select: none; }
|
|
1906
|
+
.import-failed-summary::-webkit-details-marker { display: none; }
|
|
1907
|
+
.import-failed-summary:hover { color: var(--text-muted); }
|
|
1908
|
+
.import-failed-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
|
|
1909
|
+
.import-failed-caret { display: inline-block; transition: transform 0.15s; }
|
|
1910
|
+
.import-failed-detail[open] > .import-failed-summary .import-failed-caret { transform: rotate(90deg); }
|
|
1911
|
+
#import-failed-raw { margin-top: 6px; max-height: 220px; }
|
|
1912
|
+
|
|
1875
1913
|
/* Add/edit form */
|
|
1876
1914
|
.modal.routine-edit { width: 540px; max-width: 92vw; max-height: 90vh; overflow-y: auto; }
|
|
1877
1915
|
#rtn-workflow, .rtn-kind-select { min-width: 0; width: 100%; }
|
|
@@ -3133,9 +3171,10 @@ body {
|
|
|
3133
3171
|
.relnotes-update:focus-visible,
|
|
3134
3172
|
.relnotes-changelog:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
3135
3173
|
|
|
3136
|
-
/*
|
|
3137
|
-
|
|
3138
|
-
.aware-version.relnotes-reopen
|
|
3174
|
+
/* Either footer version label becomes a notes affordance once its changelog resolves
|
|
3175
|
+
(or, for AWARE, right after an in-place upgrade). */
|
|
3176
|
+
.aware-version.relnotes-reopen, .app-version.relnotes-reopen { cursor: pointer; }
|
|
3177
|
+
.aware-version.relnotes-reopen:hover, .app-version.relnotes-reopen:hover { color: var(--accent-bright); }
|
|
3139
3178
|
|
|
3140
3179
|
/* ── What's-new panel (floless.app post-update) ─────────────────────────────
|
|
3141
3180
|
A 4th grid row above the footer — NOT absolutely positioned. .has-whats-new
|
|
@@ -3573,6 +3612,21 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
|
|
|
3573
3612
|
.ws-seed .ws-seed-sub { font-size:11px; color:var(--text-dim); line-height:1.4; max-width:220px; }
|
|
3574
3613
|
.ws-seed .ws-seed-capability { font-size:11px; font-weight:600; color:var(--text-muted); line-height:1.35; max-width:220px; }
|
|
3575
3614
|
.ws-empty-note { color:var(--text-dim); font-size:12px; margin-top:10px; }
|
|
3615
|
+
/* A FAILED load, not an empty workspace. Same inline-banner recipe as .hist-empty / .hd-warn below
|
|
3616
|
+
(surface-2 + a left rail) so it reads as a sibling of the app's other status banners, railed in
|
|
3617
|
+
--warn: a list that wouldn't load is "needs attention", not the definite operation failure --err
|
|
3618
|
+
marks. Tokens, never hex literals — --warn is redefined per theme, so a literal would stay
|
|
3619
|
+
dark-amber in light mode while every sibling banner shifted. */
|
|
3620
|
+
.ws-empty-note.ws-load-error { margin:10px 0 0; padding:11px 14px; background:var(--surface-2);
|
|
3621
|
+
border:1px solid var(--border); border-left:3px solid var(--warn); border-radius:6px;
|
|
3622
|
+
font-size:12.5px; color:var(--text-muted); line-height:1.55; max-width:640px; }
|
|
3623
|
+
.ws-empty-note.ws-load-error b { color:var(--text); font-weight:600; }
|
|
3624
|
+
/* The raw server string, demoted out of the lead sentence (buildFailedCard's shape). */
|
|
3625
|
+
.ws-empty-note.ws-load-error .ws-load-error-detail { color:var(--text-dim); }
|
|
3626
|
+
/* Inline action, styled like .hist-empty's — the established look for one CTA inside a banner. */
|
|
3627
|
+
.ws-empty-note.ws-load-error button { background:none; border:none; padding:0; font:inherit;
|
|
3628
|
+
color:var(--accent); cursor:pointer; }
|
|
3629
|
+
.ws-empty-note.ws-load-error button:hover { color:var(--accent-bright); text-decoration:underline; }
|
|
3576
3630
|
|
|
3577
3631
|
/* open project */
|
|
3578
3632
|
.ws-project { flex:1; min-height:0; display:flex; flex-direction:column; }
|
|
@@ -3644,6 +3698,11 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
|
|
|
3644
3698
|
.ecard .e-receipt-details:hover { color:var(--text); }
|
|
3645
3699
|
.ecard .e-done .chk { color:var(--ok); } /* the ✓ */
|
|
3646
3700
|
.ecard .e-done .t { color:var(--text-muted); font-family:var(--mono); } /* HH:MM — the scannable datum */
|
|
3701
|
+
/* A share link is far longer than the HH:MM this row was built for, so it has to be allowed to
|
|
3702
|
+
truncate rather than push the Copy button out of the card. The full URL is on the themed tooltip
|
|
3703
|
+
(data-tip, never a native title=). */
|
|
3704
|
+
.ecard .e-done { display:inline-flex; align-items:center; gap:.5ch; min-width:0; max-width:100%; }
|
|
3705
|
+
.ecard .e-sharelink { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
|
|
3647
3706
|
.ecard .e-links { display:flex; align-items:center; gap:8px; flex:none; }
|
|
3648
3707
|
.ecard .e-link { background:none; border:none; padding:0; font:inherit; font-size:11px; color:var(--text-muted); cursor:pointer; }
|
|
3649
3708
|
.ecard .e-link:hover { color:var(--accent); }
|