@floless/app 0.134.0 → 0.134.1
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 +4995 -2851
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +93 -6
- package/dist/web/app.css +34 -8
- package/dist/web/aware.js +590 -102
- package/dist/web/commands-filter.js +79 -5
- package/dist/web/commands-shell.js +98 -11
- package/dist/web/commands-steel.js +7 -7
- package/dist/web/index.html +17 -15
- package/dist/web/instructor.js +89 -34
- package/dist/web/steel-3d-core.js +242 -3
- package/dist/web/steel-3d-view.js +261 -13
- package/dist/web/steel-editor.html +230 -11
- package/dist/web/steel-filter-core.js +189 -16
- package/dist/web/steel-filter.html +865 -46
- package/dist/web/steel-model-commands.js +23 -2
- package/dist/web/steel-model-v2-commands.js +124 -0
- package/dist/web/workspaces.js +369 -69
- package/package.json +1 -1
|
@@ -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.23.1
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
# Steel Takeoff — read drawings into `steel.model/v2`
|
|
@@ -24,7 +24,8 @@ Do not read members before the user saves the Drawing Filter.
|
|
|
24
24
|
every page, and mints the Filter geometry and element identities. If sheet identity is ambiguous,
|
|
25
25
|
inspect only the pages named by `sheet-identification-required` and retry with explicit bindings.
|
|
26
26
|
Never build, rename, or replace server-owned Filter geometry yourself.
|
|
27
|
-
2. Stop and ask the user to review the Filter in
|
|
27
|
+
2. Stop and ask the user to review the Filter in **Drawing Filter** and press **Save filter** in the
|
|
28
|
+
top-right corner.
|
|
28
29
|
3. Only after Save, fetch the request and its saved Filter again, pin its ETag, and read members from
|
|
29
30
|
elements that the saved selection keeps.
|
|
30
31
|
|
|
@@ -52,7 +53,8 @@ A later instruction adds or changes work; it does not erase the primary requirem
|
|
|
52
53
|
|
|
53
54
|
The ledger must close all of these inventories:
|
|
54
55
|
|
|
55
|
-
- every attached source and every manifest page was rehashed and visually reviewed over its whole bounds
|
|
56
|
+
- every attached source and every manifest page was rehashed and visually reviewed over its whole bounds,
|
|
57
|
+
and each page's review carries that page's server-computed `candidateShardHash`;
|
|
56
58
|
- building massing and coordinate frames were stated before members were interpreted;
|
|
57
59
|
- every Filter layer was classified;
|
|
58
60
|
- every manifest line is either supported by an active observation or has a reviewed `lineDisposition`;
|
|
@@ -64,12 +66,97 @@ The ledger must close all of these inventories:
|
|
|
64
66
|
- the final selected candidate is schema-valid, uses the exact saved Filter, stays within work limits,
|
|
65
67
|
resolves member profiles/elevations honestly, and contains no unaccounted source evidence.
|
|
66
68
|
|
|
67
|
-
Encode that ledger as the closed `steel-read/
|
|
69
|
+
Encode that ledger as the closed `steel-read/v2` attestation fields: `massing`, `layers`,
|
|
68
70
|
`lineDispositions`, `pageReviews`, `references`, `candidateDispositions`, and `jointReviews`. POST it with
|
|
69
71
|
the candidate to `/revision-read/audit`. Treat every blocked check and sample id as mandatory remaining
|
|
70
72
|
work, then repeat until `status: "read-complete"`. Never edit or fabricate a receipt: the server creates
|
|
71
73
|
it from the exact manifest, saved Filter, candidate, proof, project incarnation, base, and generation.
|
|
72
74
|
|
|
75
|
+
### What `steel-read/v2` requires
|
|
76
|
+
|
|
77
|
+
The manifest GET returns two derived fields you cannot compute yourself. Copy them exactly; do not
|
|
78
|
+
guess, recompute, or omit them.
|
|
79
|
+
|
|
80
|
+
- **`pageShards`** — one `{ pageId, candidateShardHash, candidateCount }` per manifest page. Give every
|
|
81
|
+
page **exactly one** review: `{ pageId, kind: "whole", candidateShardHash, note }`. There is no
|
|
82
|
+
second review per page, no `bbox`, and no `elementIds` — the server binds the page's own bounds and
|
|
83
|
+
its whole candidate set into the shard, so echoing candidate ids proves nothing and the fields are
|
|
84
|
+
gone. A missing page, a duplicate `pageId`, a foreign `pageId`, or a hash from another page or an
|
|
85
|
+
older manifest blocks `visual-coverage`.
|
|
86
|
+
- **`layerLineCounts`** — each `layers[]` row carries `lineCounts: { model, evidence }`, the number of
|
|
87
|
+
ledger lines that layer holds on model pages and on evidence-only pages. The server recomputes both
|
|
88
|
+
and `layer-census` blocks on any mismatch. A layer with non-zero counts on **both** roles means one
|
|
89
|
+
layer name is doing two jobs across sheets — attest it `mixed`, which requires an explicit
|
|
90
|
+
disposition for every one of its lines.
|
|
91
|
+
|
|
92
|
+
A `steel-read/v1` attestation is refused outright with no migration: re-run the read.
|
|
93
|
+
|
|
94
|
+
The whole closed shape, with every optional field shown (the two 64-hex placeholders below stand for
|
|
95
|
+
the real `candidateShardHash` from `pageShards` and the real joint `dependencyHash`):
|
|
96
|
+
|
|
97
|
+
```json
|
|
98
|
+
{
|
|
99
|
+
"version": 2,
|
|
100
|
+
"massing": { "buildingCount": 1, "summary": "One two-storey steel-framed building." },
|
|
101
|
+
"layers": [
|
|
102
|
+
{ "layer": "S-BEAM", "disposition": "member", "note": "Primary framing linework.", "lineCounts": { "model": 128, "evidence": 0 } }
|
|
103
|
+
],
|
|
104
|
+
"lineDispositions": [
|
|
105
|
+
{ "elementId": "<line id A>", "disposition": "annotation", "reason": "Dimension leader." },
|
|
106
|
+
{ "elementId": "<line id B>", "disposition": "duplicate", "reason": "Same member drawn twice.", "duplicateOf": "<line id A>" }
|
|
107
|
+
],
|
|
108
|
+
"pageReviews": [
|
|
109
|
+
{ "pageId": "<manifest page id>", "kind": "whole", "candidateShardHash": "0000000000000000000000000000000000000000000000000000000000000000", "note": "Reviewed the whole sheet against its candidate shard." }
|
|
110
|
+
],
|
|
111
|
+
"references": [
|
|
112
|
+
{ "elementId": "<marker id A>", "status": "resolved", "targetPageId": "<manifest page id>" },
|
|
113
|
+
{ "elementId": "<marker id B>", "status": "missing", "reason": "Sheet S-503 is not in the set." }
|
|
114
|
+
],
|
|
115
|
+
"candidateDispositions": [
|
|
116
|
+
{ "elementId": "<marker id C>", "disposition": "modeled", "reason": "Built as a shear tab.", "jointId": "j-1" },
|
|
117
|
+
{ "elementId": "<marker id D>", "disposition": "unresolved", "reason": "Detail shown without a host location." }
|
|
118
|
+
],
|
|
119
|
+
"jointReviews": [
|
|
120
|
+
{ "jointId": "j-1", "dependencyHash": "1111111111111111111111111111111111111111111111111111111111111111", "note": "Checked members, recipe and parameters." }
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### When a line needs no `lineDisposition`
|
|
126
|
+
|
|
127
|
+
Lines on a layer that is switched **off** in the saved Drawing Filter **and** covered by the human's
|
|
128
|
+
recorded layer approval need no per-line row, provided you attest that layer `annotation`, `existing`
|
|
129
|
+
or `other`. That is the only shorthand, and it is deliberately narrow:
|
|
130
|
+
|
|
131
|
+
- `member` and `mixed` are never dismissed wholesale — every line needs its own row;
|
|
132
|
+
- a layer left **on** is selected, so each of its lines still needs an observation or a disposition;
|
|
133
|
+
- a thickness or colour exclusion **inside** an enabled layer is not a layer decision — those lines
|
|
134
|
+
still need explicit rows;
|
|
135
|
+
- if the saved Filter checkpoint fails, or the human never approved the layer list, no shorthand
|
|
136
|
+
applies at all and every unselected line needs a row. The `source-ledger` block detail says so
|
|
137
|
+
when that is what is holding the read up.
|
|
138
|
+
|
|
139
|
+
### An observation only ever accounts for a line you can MODEL from
|
|
140
|
+
|
|
141
|
+
A line is accounted for by an observation **only** when it sits on a bound model sheet. For every
|
|
142
|
+
other line — anything on an evidence-only page (a detail sheet, a schedule, a notes sheet), and any
|
|
143
|
+
manifest candidate the saved Filter does not carry — an observation does **not** discharge the
|
|
144
|
+
obligation: `source-ledger` reports it as `excluded-but-modeled` and **blocks**. Only a
|
|
145
|
+
`lineDisposition` (or the layer shorthand above) accounts for those.
|
|
146
|
+
|
|
147
|
+
That is deliberate, not a limitation to work around. Detail and schedule linework is schematic,
|
|
148
|
+
unregistered and not to scale; letting an observation over it stand in for member geometry is exactly
|
|
149
|
+
the confusion the split exists to prevent. So:
|
|
150
|
+
|
|
151
|
+
- **model-sheet line, layer on** → an observation **or** a disposition;
|
|
152
|
+
- **evidence-page line** (any layer state) → a **disposition**, or the layer shorthand. Never an
|
|
153
|
+
observation. If you find yourself wanting to observe one, the member belongs to a model sheet and
|
|
154
|
+
you should be observing it there.
|
|
155
|
+
|
|
156
|
+
Every use of the shorthand makes `source-ledger` a **warning** naming the dismissed layers and their
|
|
157
|
+
counts. That is expected, not a defect — but check the named layers really are non-steel before
|
|
158
|
+
publishing.
|
|
159
|
+
|
|
73
160
|
## Find the active request
|
|
74
161
|
|
|
75
162
|
Use the local request API described by `floless-app-queue`. Read the request's `project`, `appId`,
|
|
@@ -155,7 +242,7 @@ Show the verified overlap to the user before submitting the full read.
|
|
|
155
242
|
|
|
156
243
|
**Narrow headless revision exception.** When floless.app's server-owned headless preamble explicitly
|
|
157
244
|
says this is a phase-one-only `revision-read`, exposes only the immutable leased PDF sources plus the
|
|
158
|
-
request-scoped contract/prepass calls, and requires the exact
|
|
245
|
+
request-scoped contract/prepass calls, and requires the exact Drawing Filter save question, do not
|
|
159
246
|
create an earlier plan-confirmation checkpoint. Match framing pages only to the plan sheet names
|
|
160
247
|
already present in that project's current contract; if the match is absent or ambiguous, stop with
|
|
161
248
|
`needs-you` instead of inventing a plan name. This exception never applies to an initial read, an
|
|
@@ -356,7 +443,7 @@ same literal contract and attestation to `revision-read` with:
|
|
|
356
443
|
- the queued `requestId` and base ledger head;
|
|
357
444
|
- the pinned contract and Filter ETags required by the route;
|
|
358
445
|
- the complete native candidate;
|
|
359
|
-
- the complete closed `steel-read/
|
|
446
|
+
- the complete closed `steel-read/v2` attestation;
|
|
360
447
|
- source snapshots for every queued drawing;
|
|
361
448
|
- a concise read summary and unresolved notes.
|
|
362
449
|
|
package/dist/web/app.css
CHANGED
|
@@ -2000,6 +2000,9 @@
|
|
|
2000
2000
|
.req-scope .req-scope-n { color: var(--text-muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
|
|
2001
2001
|
.req-scope button.active .req-scope-n { color: var(--accent-dim); }
|
|
2002
2002
|
.req-search { margin-bottom: 10px; flex: 0 0 auto; }
|
|
2003
|
+
.req-guidance { margin: -2px 0 10px; padding: 9px 10px; border-left: 2px solid var(--accent);
|
|
2004
|
+
background: var(--accent-soft); color: var(--text); font-size: 11.5px; line-height: 1.5; }
|
|
2005
|
+
.req-guidance[hidden] { display: none; }
|
|
2003
2006
|
/* Flexes against .modal.requests' 86vh cap rather than declaring its own 52vh — see the note
|
|
2004
2007
|
there. min-height:0 is what lets a flex child actually shrink and scroll. */
|
|
2005
2008
|
/* scroll-behavior lives here, not in revealRequestRow's scrollIntoView call: an omitted `behavior`
|
|
@@ -2052,6 +2055,21 @@
|
|
|
2052
2055
|
.req-instruction::-webkit-scrollbar { width: 7px; }
|
|
2053
2056
|
.req-instruction::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
|
|
2054
2057
|
.req-instruction::-webkit-scrollbar-track { background: transparent; }
|
|
2058
|
+
.req-summary { max-height: none; font-size: 13px; line-height: 1.5; }
|
|
2059
|
+
.req-technical { margin-top: 6px; font-size: 10.5px; }
|
|
2060
|
+
.req-technical > summary { color: var(--text-dim); cursor: pointer; user-select: none; list-style: none; }
|
|
2061
|
+
.req-technical > summary::-webkit-details-marker { display: none; }
|
|
2062
|
+
.req-technical > summary::before { content: '▸'; margin-right: 6px; color: var(--text-dim); }
|
|
2063
|
+
.req-technical[open] > summary::before { content: '▾'; }
|
|
2064
|
+
.req-technical > summary:hover { color: var(--text-muted); }
|
|
2065
|
+
.req-technical > summary:focus-visible { color: var(--text); outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
|
|
2066
|
+
.req-technical-body { max-height: 150px; overflow: auto; margin-top: 5px; padding: 7px 8px;
|
|
2067
|
+
border: 1px solid var(--border); border-radius: 4px; background: var(--surface);
|
|
2068
|
+
color: var(--text-muted); white-space: pre-wrap; word-break: break-word; line-height: 1.45;
|
|
2069
|
+
scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
|
|
2070
|
+
.req-technical-body::-webkit-scrollbar { width: 7px; }
|
|
2071
|
+
.req-technical-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
|
|
2072
|
+
.req-technical-body::-webkit-scrollbar-track { background: transparent; }
|
|
2055
2073
|
/* The search hit, highlighted where it sits — in the instruction AND in the name, since a query
|
|
2056
2074
|
often matches the project rather than the wording. With several near-identical queued tweaks,
|
|
2057
2075
|
"which one matched?" is otherwise guesswork. Tinted text, not a block highlight: a filled
|
|
@@ -2926,11 +2944,12 @@
|
|
|
2926
2944
|
|
|
2927
2945
|
/* ── The `?` command sheet ──────────────────────────────────────────────────
|
|
2928
2946
|
Built on .modal-backdrop/.modal rather than a new overlay: same backdrop,
|
|
2929
|
-
blur
|
|
2930
|
-
|
|
2947
|
+
blur and fade, with an explicit upper tier because Requests is the one dialog
|
|
2948
|
+
whose exact runtime controls this sheet can browse. Only the size and the list are new — this one is a browsable inventory,
|
|
2931
2949
|
not a 480px confirmation. And .modal-backdrop is display:flex when shown, so
|
|
2932
2950
|
it needs the same explicit [hidden] rule the Instructor band does. */
|
|
2933
2951
|
#command-sheet[hidden] { display: none; }
|
|
2952
|
+
#command-sheet { z-index: 110; }
|
|
2934
2953
|
.cmd-sheet-backdrop.show { display: flex; }
|
|
2935
2954
|
.cmd-sheet {
|
|
2936
2955
|
width: 620px;
|
|
@@ -3609,6 +3628,7 @@ body {
|
|
|
3609
3628
|
|
|
3610
3629
|
/* Footer "requests" pill — lights up when intents are waiting for the AI. */
|
|
3611
3630
|
.stat-requests { cursor: pointer; border-radius: 4px; }
|
|
3631
|
+
.stat-requests:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
3612
3632
|
.stat-requests.has-pending .stat-val { color: var(--warn); font-weight: 600; }
|
|
3613
3633
|
.stat-requests.has-pending { text-shadow: 0 0 8px color-mix(in srgb, var(--warn) 40%, transparent); }
|
|
3614
3634
|
/* A landed request needs to be noticeable for long enough to teach the footer
|
|
@@ -4948,6 +4968,13 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
|
|
|
4948
4968
|
.ws-status { font-size:10px; color:var(--text-dim); font-style:italic; }
|
|
4949
4969
|
.tabs.ws-step-tabs { background:transparent; padding:0 6px; }
|
|
4950
4970
|
.tabs.ws-step-tabs button { flex:0 0 auto; padding:11px 16px; }
|
|
4971
|
+
.tabs.ws-step-tabs button.ws-step-locked { color:var(--text-dim); cursor:not-allowed; opacity:.62; }
|
|
4972
|
+
.tabs.ws-step-tabs button.ws-step-locked::before { content:'·'; color:var(--border-strong); margin-right:5px; }
|
|
4973
|
+
.tabs.ws-step-tabs button.ws-step-locked:hover { color:var(--text-muted); border-bottom-color:transparent; }
|
|
4974
|
+
.ws-stage-guidance { flex:none; margin:0 14px 8px; padding:8px 11px; border:1px solid var(--border);
|
|
4975
|
+
border-left:3px solid var(--accent-dim); border-radius:6px; background:var(--surface-2);
|
|
4976
|
+
color:var(--text-muted); font-size:11.5px; line-height:1.45; }
|
|
4977
|
+
.ws-stage-guidance[hidden] { display:none; }
|
|
4951
4978
|
.ws-frame { flex:1; min-height:0; width:100%; border:none; background:var(--bg); }
|
|
4952
4979
|
|
|
4953
4980
|
/* ── Workspaces ▸ Exports step (shell-rendered pane; export cards over the project's OWN
|
|
@@ -5282,16 +5309,15 @@ table.hist tr.current td { background:var(--accent-soft); }
|
|
|
5282
5309
|
.ws-revision-card[hidden] { display:none !important; }
|
|
5283
5310
|
.ws-revision-card b { color:var(--text); font-weight:600; }
|
|
5284
5311
|
.ws-revision-card .wrc-text { flex:1; min-width:0; }
|
|
5285
|
-
.ws-revision-card .wrc-
|
|
5286
|
-
border-top-color:var(--accent); border-radius:50%; animation:spin .8s linear infinite; }
|
|
5312
|
+
.ws-revision-card .wrc-dot { flex:none; width:8px; height:8px; border-radius:50%; background:var(--text-dim); }
|
|
5287
5313
|
.ws-revision-card.state-failed { border-left:3px solid var(--err); }
|
|
5288
5314
|
.ws-revision-card.state-failed .wrc-err-ico { color:var(--err); flex:none; }
|
|
5289
5315
|
.ws-revision-card.state-failed .wrc-err-detail { color:var(--text-dim); }
|
|
5290
|
-
.ws-revision-card.state-
|
|
5291
|
-
.ws-revision-card.state-
|
|
5292
|
-
|
|
5316
|
+
.ws-revision-card.state-unavailable { border-left:3px solid var(--warn); }
|
|
5317
|
+
.ws-revision-card.state-unavailable .wrc-warn-ico { color:var(--warn); flex:none; }
|
|
5318
|
+
.ws-revision-card.state-staged, .ws-revision-card.state-filter-ready, .ws-revision-card.state-filter-saved { border-left:3px solid var(--accent); }
|
|
5319
|
+
.ws-revision-card.state-staged .wrc-dot, .ws-revision-card.state-filter-ready .wrc-dot, .ws-revision-card.state-filter-saved .wrc-dot { background:var(--accent); }
|
|
5293
5320
|
.ws-revision-card .wrc-actions { display:flex; gap:6px; flex:none; }
|
|
5294
|
-
@media (prefers-reduced-motion: reduce) { .ws-revision-card .wrc-spin { animation:none; } }
|
|
5295
5321
|
.hist .gate-badge.ai-read { background:var(--accent-soft); border-color:var(--accent-dim); color:var(--accent-bright); }
|
|
5296
5322
|
|
|
5297
5323
|
/* History rollback and Knowledge remove confirmation share this themed anchored popover. */
|