@floless/app 0.139.1 → 0.140.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 +4899 -3518
- package/dist/skills/floless-app-vectorize/SKILL.md +1 -1
- package/dist/skills/floless-app-vectorize/scripts/extract_pdf.py +7 -1
- package/dist/skills/floless-app-vectorize/scripts/vision_to_contract.py +7 -1
- package/dist/web/app.css +139 -1
- package/dist/web/aware.js +363 -31
- package/dist/web/chat.css +79 -5
- package/dist/web/chat.js +449 -52
- package/dist/web/commands-revit.js +2 -1
- package/dist/web/commands-shell.js +188 -7
- package/dist/web/commands-steel.js +12 -10
- package/dist/web/index.html +48 -2
- package/dist/web/instructor.js +26 -4
- package/dist/web/local-discovery.js +250 -0
- package/dist/web/model-editor-revit-adapter.js +3 -1
- package/dist/web/model-editor-steel-adapter.js +3 -1
- package/dist/web/model-viewport-toolbar.js +13 -1
- package/dist/web/model-viewport.js +16 -1
- package/dist/web/revit-editor.html +5 -5
- package/dist/web/revit-editor.js +3 -3
- package/dist/web/steel-detail-refs.js +0 -69
- package/dist/web/steel-editor.html +83 -261
- package/dist/web/steel-filter.html +43 -16
- package/dist/web/steel-split-view.js +1 -1
- package/dist/web/vector-editor.html +6 -1
- package/dist/web/workspaces.js +150 -16
- package/package.json +2 -1
|
@@ -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 by MEASURING its ink with a deterministic OpenCV centerline tracer for geometry plus AWARE's fenced vision.extract for the text (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.8.
|
|
5
|
+
version: 0.8.1
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Vectorize — read a drawing into a drawing.vector/v1 contract
|
|
@@ -28,7 +28,13 @@ import os
|
|
|
28
28
|
import sys
|
|
29
29
|
from datetime import datetime, timezone
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
try:
|
|
32
|
+
import pymupdf as fitz
|
|
33
|
+
except ImportError:
|
|
34
|
+
import sys
|
|
35
|
+
from contextlib import redirect_stdout
|
|
36
|
+
with redirect_stdout(sys.stderr):
|
|
37
|
+
import fitz
|
|
32
38
|
|
|
33
39
|
|
|
34
40
|
def fmt(v):
|
|
@@ -32,7 +32,13 @@ import os
|
|
|
32
32
|
import sys
|
|
33
33
|
from datetime import datetime, timezone
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
try:
|
|
36
|
+
import pymupdf as fitz
|
|
37
|
+
except ImportError:
|
|
38
|
+
import sys
|
|
39
|
+
from contextlib import redirect_stdout
|
|
40
|
+
with redirect_stdout(sys.stderr):
|
|
41
|
+
import fitz
|
|
36
42
|
|
|
37
43
|
|
|
38
44
|
def unwrap(payload):
|
package/dist/web/app.css
CHANGED
|
@@ -1617,6 +1617,24 @@
|
|
|
1617
1617
|
justify-content: center;
|
|
1618
1618
|
}
|
|
1619
1619
|
.modal-backdrop.show { display: flex; animation: fade-in 0.15s ease-out; }
|
|
1620
|
+
/* Keep F1's read-only Instructor narration visible while reviewing a Graft source.
|
|
1621
|
+
Reserve space for the strip so it cannot cover the modal actions or scroll area. */
|
|
1622
|
+
body:has(.app.has-instructor) #graft-modal.show {
|
|
1623
|
+
box-sizing: border-box;
|
|
1624
|
+
padding-bottom: 78px;
|
|
1625
|
+
}
|
|
1626
|
+
body:has(.app.has-instructor) #graft-modal.show .modal.graft {
|
|
1627
|
+
max-height: min(86vh, calc(100dvh - 102px));
|
|
1628
|
+
}
|
|
1629
|
+
body:has(#graft-modal.show) .app.has-instructor #instructor {
|
|
1630
|
+
position: relative;
|
|
1631
|
+
z-index: 101;
|
|
1632
|
+
pointer-events: auto;
|
|
1633
|
+
}
|
|
1634
|
+
body:has(#graft-modal.show) #instructor button,
|
|
1635
|
+
body:has(#graft-modal.show) #instructor .ix-hint,
|
|
1636
|
+
body:has(#graft-modal.show) #instructor .ix-ask-split { display: none; }
|
|
1637
|
+
#graft-instructor-note { display: none; }
|
|
1620
1638
|
/* The shared form and confirmation modals are the ones OTHER modals open on top of themselves —
|
|
1621
1639
|
run options and desktop-claim release over Requests, the folder over Integrations — so they
|
|
1622
1640
|
cannot share their z-index. Every backdrop
|
|
@@ -2121,6 +2139,15 @@
|
|
|
2121
2139
|
text-overflow: ellipsis;
|
|
2122
2140
|
white-space: nowrap;
|
|
2123
2141
|
}
|
|
2142
|
+
.int-scopes.int-setup-detail {
|
|
2143
|
+
color: var(--text-muted);
|
|
2144
|
+
white-space: normal;
|
|
2145
|
+
overflow: visible;
|
|
2146
|
+
text-overflow: clip;
|
|
2147
|
+
overflow-wrap: anywhere;
|
|
2148
|
+
line-height: 1.5;
|
|
2149
|
+
margin: 4px 0 8px;
|
|
2150
|
+
}
|
|
2124
2151
|
.int-meta { font-size: 10px; color: var(--text-dim); font-style: italic; margin-bottom: 8px; }
|
|
2125
2152
|
.int-flow {
|
|
2126
2153
|
display: inline-flex;
|
|
@@ -2160,6 +2187,7 @@
|
|
|
2160
2187
|
margin-top: 4px;
|
|
2161
2188
|
gap: 6px;
|
|
2162
2189
|
}
|
|
2190
|
+
.int-recovery-actions { display: inline-flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
|
|
2163
2191
|
.int-badge {
|
|
2164
2192
|
font-size: 9px;
|
|
2165
2193
|
text-transform: uppercase;
|
|
@@ -2182,7 +2210,10 @@
|
|
|
2182
2210
|
cursor: pointer;
|
|
2183
2211
|
font-family: var(--ui);
|
|
2184
2212
|
}
|
|
2185
|
-
.int-action:hover { color: var(--text); border-color: var(--accent-dim); background: var(--surface-2); }
|
|
2213
|
+
.int-action:not(:disabled):hover { color: var(--text); border-color: var(--accent-dim); background: var(--surface-2); }
|
|
2214
|
+
/* A waiting action must not light up under the pointer like a live one. Mirrors the chat
|
|
2215
|
+
Provider row's `.ai-chat-provider-switch:disabled` so the two sign-in surfaces read alike. */
|
|
2216
|
+
.int-action:disabled { cursor: default; color: var(--text-dim); border-color: var(--border); background: var(--surface); }
|
|
2186
2217
|
|
|
2187
2218
|
/* ========== FOOTER ========== */
|
|
2188
2219
|
footer {
|
|
@@ -2684,8 +2715,18 @@
|
|
|
2684
2715
|
padding: 1px 6px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-bright); }
|
|
2685
2716
|
.int-rt-blurb { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
|
|
2686
2717
|
.int-rt-blurb code { font-family: var(--mono); color: var(--text-dim); }
|
|
2718
|
+
/* The text column must be allowed to shrink, or the nowrap lines below (path, account) size the
|
|
2719
|
+
1fr track to their full width and never truncate. */
|
|
2720
|
+
.int-rt-main { min-width: 0; }
|
|
2687
2721
|
.int-rt-where { font-family: var(--mono); font-size: 9.5px; color: var(--text-dim); margin-top: 3px;
|
|
2688
2722
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2723
|
+
/* `flex-wrap` rather than a viewport media query: what runs out is the CARD's width, which a
|
|
2724
|
+
narrow modal reaches before any breakpoint. Without it the account line (min-width: 0) is
|
|
2725
|
+
squeezed to nothing while the button keeps its width and clips against .int-section's
|
|
2726
|
+
overflow — the feature's whole payload disappears. It only wraps when there is no room. */
|
|
2727
|
+
.int-rt-signin { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; min-width: 0; flex-wrap: wrap; }
|
|
2728
|
+
.int-rt-account { font-size: 10px; color: var(--text-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2729
|
+
.int-rt.is-missing .int-rt-account { color: var(--text-dim); }
|
|
2689
2730
|
/* NEUTRAL on purpose, both of them — see point 2 in this block's header. */
|
|
2690
2731
|
.int-rt-badge { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
|
|
2691
2732
|
padding: 2px 8px; border-radius: 10px; background: var(--surface-3); color: var(--text-muted); }
|
|
@@ -2826,6 +2867,14 @@
|
|
|
2826
2867
|
.graft-success { text-align: center; padding: 26px 8px; }
|
|
2827
2868
|
.graft-success .gs-icon { font-size: 30px; color: var(--ok); }
|
|
2828
2869
|
.graft-success .gs-msg { margin-top: 8px; font-size: 13px; color: var(--text); }
|
|
2870
|
+
.graft-read-review { display: flex; flex-direction: column; gap: 9px; padding: 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-2); font-size: 12px; color: var(--text); }
|
|
2871
|
+
.graft-read-review p { margin: 0; color: var(--text-muted); line-height: 1.45; }
|
|
2872
|
+
.graft-read-review .graft-identity { overflow-wrap: anywhere; }
|
|
2873
|
+
.graft-verify-button { align-self: flex-start; padding: 7px 12px; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--surface-3); color: var(--text); font: inherit; cursor: pointer; }
|
|
2874
|
+
.graft-verify-button:hover:not(:disabled) { border-color: var(--accent); }
|
|
2875
|
+
.graft-verify-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
2876
|
+
.graft-verify-button:disabled { cursor: wait; opacity: .65; }
|
|
2877
|
+
.graft-read-verified { display: flex; flex-direction: column; gap: 8px; padding: 9px; border-left: 3px solid var(--ok); background: rgba(34, 197, 94, .08); }
|
|
2829
2878
|
.graft-err { color: var(--err); font-size: 12px; margin-top: 6px; }
|
|
2830
2879
|
|
|
2831
2880
|
/* ===== App self-update tag (footer) — accent pill, reuses tokens ===== */
|
|
@@ -5080,6 +5129,40 @@ body {
|
|
|
5080
5129
|
.app.has-instructor { grid-template-rows: auto 1fr auto 44px; }
|
|
5081
5130
|
.app.has-instructor.has-whats-new { grid-template-rows: auto 1fr auto auto 44px; }
|
|
5082
5131
|
.app.has-whats-new { grid-template-rows: auto 1fr auto 44px; }
|
|
5132
|
+
/* Keep mobile F1 guidance inside the dialog's focus and scroll area. */
|
|
5133
|
+
body:has(#graft-modal.show) .app.has-instructor #instructor {
|
|
5134
|
+
z-index: auto;
|
|
5135
|
+
}
|
|
5136
|
+
body:has(.app.has-instructor) #graft-modal.show {
|
|
5137
|
+
padding-bottom: 0;
|
|
5138
|
+
}
|
|
5139
|
+
body:has(.app.has-instructor) #graft-modal.show .modal.graft {
|
|
5140
|
+
max-height: calc(100dvh - 32px);
|
|
5141
|
+
}
|
|
5142
|
+
#graft-instructor-note:not([hidden]) {
|
|
5143
|
+
display: block;
|
|
5144
|
+
flex: none;
|
|
5145
|
+
min-height: 0;
|
|
5146
|
+
max-height: min(22dvh, 132px);
|
|
5147
|
+
margin-top: 12px;
|
|
5148
|
+
padding: 8px 10px;
|
|
5149
|
+
overflow-y: auto;
|
|
5150
|
+
border: 1px solid var(--border-strong);
|
|
5151
|
+
border-radius: 5px;
|
|
5152
|
+
background: var(--surface-2);
|
|
5153
|
+
color: var(--text-muted);
|
|
5154
|
+
font-size: 12px;
|
|
5155
|
+
line-height: 1.45;
|
|
5156
|
+
white-space: normal;
|
|
5157
|
+
scrollbar-width: thin;
|
|
5158
|
+
scrollbar-color: var(--border-strong) transparent;
|
|
5159
|
+
}
|
|
5160
|
+
#graft-instructor-note::-webkit-scrollbar { width: 7px; }
|
|
5161
|
+
#graft-instructor-note::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 7px; }
|
|
5162
|
+
#graft-instructor-note::-webkit-scrollbar-track { background: transparent; }
|
|
5163
|
+
#graft-instructor-note:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
5164
|
+
#graft-instructor-note .ix-chip { display: inline-block; margin-bottom: 4px; }
|
|
5165
|
+
#graft-instructor-note .graft-instructor-parts { overflow-wrap: anywhere; }
|
|
5083
5166
|
header { flex-wrap: wrap; gap: 8px; padding: 8px 14px; }
|
|
5084
5167
|
select, .wf-combo { min-width: 0; }
|
|
5085
5168
|
}
|
|
@@ -5135,6 +5218,48 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
|
|
|
5135
5218
|
.app.mode-workspaces { --right-width:0px !important; }
|
|
5136
5219
|
.app.mode-workspaces .inspect { display:none; }
|
|
5137
5220
|
.app.mode-workspaces .canvas { cursor:default; touch-action:auto; }
|
|
5221
|
+
|
|
5222
|
+
/* Local discovery shares the approved dark shell palette and dialog spacing. */
|
|
5223
|
+
.modal.local-discovery { width: 700px; max-height: min(86vh, 760px); display:flex; flex-direction:column; }
|
|
5224
|
+
.local-discovery-body { overflow-y:auto; min-height:0; padding-right:5px; scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
|
|
5225
|
+
.local-discovery-body::-webkit-scrollbar { width:8px; }
|
|
5226
|
+
.local-discovery-body::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:8px; }
|
|
5227
|
+
.local-discovery-body::-webkit-scrollbar-track { background:transparent; }
|
|
5228
|
+
.local-discovery-scope { padding:12px 14px; background:var(--surface-2); border:1px solid var(--border-strong); border-radius:6px; }
|
|
5229
|
+
.local-discovery-scope strong { display:block; font-size:12px; color:var(--text); margin-bottom:4px; }
|
|
5230
|
+
.local-discovery-scope p { color:var(--text-muted); font-size:12px; line-height:1.45; margin-bottom:10px; }
|
|
5231
|
+
.local-discovery-folders { display:grid; gap:6px; margin-bottom:8px; }
|
|
5232
|
+
.local-discovery-folder { display:flex; align-items:center; gap:8px; padding:5px 7px; border:1px solid var(--border); border-radius:4px; color:var(--text-muted); font:11px var(--mono); }
|
|
5233
|
+
.local-discovery-folder span { overflow-wrap:anywhere; flex:1; }
|
|
5234
|
+
.local-discovery button { color:var(--text); background:var(--surface-3); border:1px solid var(--border-strong); border-radius:5px; padding:6px 10px; cursor:pointer; font:inherit; }
|
|
5235
|
+
.local-discovery button:hover:not(:disabled) { border-color:var(--accent-dim); color:var(--accent-bright); }
|
|
5236
|
+
.local-discovery button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
|
|
5237
|
+
.local-discovery button:disabled { opacity:.55; cursor:default; }
|
|
5238
|
+
.local-discovery .modal-actions button.primary { background:var(--accent); color:white; border-color:var(--accent); }
|
|
5239
|
+
.local-discovery-status { color:var(--text-muted); font-size:12px; padding:12px 2px; }
|
|
5240
|
+
.local-discovery-errors { border-left:3px solid var(--warn); background:rgba(251,191,36,.07); padding:9px 12px; border-radius:0 4px 4px 0; font-size:12px; margin-bottom:10px; }
|
|
5241
|
+
.local-discovery-errors strong { color:var(--text); }
|
|
5242
|
+
.local-discovery-errors p { color:var(--text-muted); margin-top:4px; overflow-wrap:anywhere; }
|
|
5243
|
+
.local-discovery-browse { display:grid; gap:7px; margin:0 0 10px; }
|
|
5244
|
+
.local-discovery-browse[hidden] { display:none; }
|
|
5245
|
+
.local-discovery-browse p { color:var(--text-muted); font-size:11px; margin:0; }
|
|
5246
|
+
.local-discovery-browse label { color:var(--text-muted); font-size:11px; }
|
|
5247
|
+
.local-discovery-browse input { width:100%; box-sizing:border-box; color:var(--text); background:var(--surface-2); border:1px solid var(--border-strong); border-radius:5px; padding:7px 10px; font:12px var(--ui); }
|
|
5248
|
+
.local-discovery-browse input::placeholder { color:var(--text-dim); }
|
|
5249
|
+
.local-discovery-browse input:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
|
|
5250
|
+
.local-discovery-page-row { display:flex; align-items:center; justify-content:flex-end; gap:7px; color:var(--text-muted); font-size:11px; }
|
|
5251
|
+
.local-discovery-page-row span { margin-right:auto; }
|
|
5252
|
+
.local-discovery-no-filter-match { color:var(--text-muted); font-size:12px; padding:8px 2px; }
|
|
5253
|
+
.local-discovery-results { display:grid; gap:8px; }
|
|
5254
|
+
.local-discovery-card { border:1px solid var(--border-strong); border-radius:6px; background:var(--surface-2); padding:12px 14px; }
|
|
5255
|
+
.local-discovery-card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
|
|
5256
|
+
.local-discovery-card-head strong { font-size:13px; }
|
|
5257
|
+
.local-discovery-found { color:var(--text-muted); background:var(--surface-3); border:1px solid var(--border-strong); padding:2px 7px; border-radius:999px; font-size:10px; }
|
|
5258
|
+
.local-discovery-facts { display:grid; grid-template-columns:70px minmax(0,1fr); gap:3px 10px; margin:9px 0 11px; font-size:11px; }
|
|
5259
|
+
.local-discovery-facts dt { color:var(--text-dim); }
|
|
5260
|
+
.local-discovery-facts dd { color:var(--text-muted); overflow-wrap:anywhere; }
|
|
5261
|
+
.local-discovery-card-actions { display:flex; flex-wrap:wrap; gap:7px; }
|
|
5262
|
+
#lib-discover-local { margin-right:0 !important; }
|
|
5138
5263
|
.ws-spine { display:flex; align-items:center; gap:10px; }
|
|
5139
5264
|
#ws-proj-name { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
5140
5265
|
#ws-proj-trigger { display:inline-flex; align-items:center; gap:8px; }
|
|
@@ -5388,8 +5513,21 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
|
|
|
5388
5513
|
.ws-source-ico { font-size:34px; color:var(--accent); display:block; margin-bottom:12px; line-height:1; }
|
|
5389
5514
|
.ws-source-title { font-size:14px; font-weight:600; color:var(--text); margin-bottom:6px; }
|
|
5390
5515
|
.ws-source-sub { font-size:12px; color:var(--text-dim); line-height:1.55; }
|
|
5516
|
+
/* Import in flight: paintRevitSourceActions sets data-importing="true" on the pane, and the glyph
|
|
5517
|
+
gives way to a ring spinner — the editor's own .state-spinner recipe (revit-editor.css), reduced
|
|
5518
|
+
motion keeps the ring and drops the spin, like .kb-view-spin. The hook is data-importing rather
|
|
5519
|
+
than aria-busy because this pane is also the import's live region: see paintRevitSourceActions. */
|
|
5520
|
+
.ws-source-spin { display:none; width:24px; height:24px; margin:0 auto 14px; border:2px solid var(--border-strong); border-top-color:var(--accent); border-radius:50%; animation:spin .8s linear infinite; }
|
|
5521
|
+
.ws-source-placeholder[data-importing="true"] .ws-source-ico { display:none; }
|
|
5522
|
+
.ws-source-placeholder[data-importing="true"] .ws-source-spin { display:block; }
|
|
5523
|
+
@media (prefers-reduced-motion: reduce) { .ws-source-spin { animation:none; } }
|
|
5391
5524
|
.ws-source-actions { display:flex; justify-content:center; gap:8px; margin-top:16px; }
|
|
5392
5525
|
.ws-source-actions[hidden] { display:none; }
|
|
5526
|
+
/* Scoped .primary, as .kb-view-host and .modal-actions do: the one filled button after an import
|
|
5527
|
+
lands is "Open Model tab"; Replace RVT keeps the global surface-2 button look and reads as secondary. */
|
|
5528
|
+
.ws-source-actions .primary { background:var(--accent); color:#fff; border-color:var(--accent); font-weight:600; }
|
|
5529
|
+
.ws-source-actions .primary:hover { background:var(--accent-bright); border-color:var(--accent-bright); box-shadow:0 0 14px var(--accent-glow); }
|
|
5530
|
+
.ws-source-actions .primary:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
|
|
5393
5531
|
.ws-source-reassure { margin-top:10px; font-size:11px; color:var(--text-muted); line-height:1.45; }
|
|
5394
5532
|
.ws-source-reassure[hidden] { display:none; }
|
|
5395
5533
|
/* The step tabs and the attach button share ONE row, which is the whole project header now — the 45px
|