@floless/app 0.157.0 → 0.159.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/cli-actions.mjs +7 -0
- package/dist/floless-server.cjs +188306 -155284
- package/dist/schemas/drawing-check.profile.v1.schema.json +33 -1
- package/dist/skills/floless-app-actions/SKILL.md +26 -5
- package/dist/skills/floless-app-bridge/SKILL.md +5 -3
- package/dist/skills/floless-app-knowledge/SKILL.md +14 -1
- package/dist/skills/floless-app-knowledge/references/schema.md +4 -1
- package/dist/skills/floless-app-onboarding/SKILL.md +67 -4
- package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +7 -4
- package/dist/skills/floless-app-queue/SKILL.md +3 -1
- package/dist/skills/floless-app-steel-model/SKILL.md +41 -1
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +71 -1
- package/dist/skills/floless-app-workflows/SKILL.md +6 -3
- package/dist/web/agents.js +12 -5
- package/dist/web/app.css +229 -27
- package/dist/web/app.js +6 -0
- package/dist/web/aware.js +275 -64
- package/dist/web/chat.css +60 -22
- package/dist/web/chat.js +396 -59
- package/dist/web/commands-shell.js +546 -11
- package/dist/web/commands-steel.js +1 -0
- package/dist/web/drawing-check-editor.html +10 -0
- package/dist/web/drawing-check-editor.js +44 -0
- package/dist/web/guide.js +4 -2
- package/dist/web/index.html +66 -12
- package/dist/web/instructor.js +21 -9
- package/dist/web/kb-categories.js +351 -0
- package/dist/web/kb-graph-worker.js +73 -0
- package/dist/web/pages.js +185 -19
- package/dist/web/project-access.js +67 -8
- package/dist/web/project-modules.js +474 -0
- package/dist/web/project-workflows.js +274 -0
- package/dist/web/run-page-view.js +353 -0
- package/dist/web/steel-3d-core.js +46 -0
- package/dist/web/steel-3d-view.js +8 -38
- package/dist/web/steel-editor.html +225 -43
- package/dist/web/tab-signal.js +323 -0
- package/dist/web/terminal-requests.js +48 -7
- package/dist/web/workspace-root-recovery.js +119 -0
- package/dist/web/workspaces.js +1597 -220
- package/launch-starting-page.mjs +184 -0
- package/launch.mjs +214 -73
- package/package.json +7 -1
- package/dist/web/report-files.js +0 -50
package/dist/web/report-files.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A report that carries files (`report_folder`, #2262 slice 3c) refers to them as `assets/…`. Those resolve only inside
|
|
3
|
-
* the report's Page version (its isolated /pages-content frame); in the run's HTML Viewer — a srcdoc frame on FloLess's
|
|
4
|
-
* own origin — they would ask FloLess for files it does not serve, show broken pictures and log failed requests. So the
|
|
5
|
-
* viewer shows a copy in which every reference to the report's own files is made inert, with a short note pointing to
|
|
6
|
-
* the Page version, where the files are.
|
|
7
|
-
*
|
|
8
|
-
* The copy is PARSED, never run (DOMParser), and only references to `assets/…` change: src/href/poster/data/srcset,
|
|
9
|
-
* CSS url(…) in <style> and style="…", and any @import that would load from FloLess's origin. A <base> is dropped, since
|
|
10
|
-
* it would turn ordinary relative names into requests to FloLess. Everything else is kept as the run made it.
|
|
11
|
-
*
|
|
12
|
-
* Loaded as a classic script before aware.js; tested by server/report-files-web.test.ts with linkedom's DOMParser.
|
|
13
|
-
*/
|
|
14
|
-
(function (root) {
|
|
15
|
-
var ASSET = /^\s*(?:\.\/|\/)?assets\//i;
|
|
16
|
-
/** An @import that stays outside FloLess's origin (https or data) can't ask FloLess for anything; others are dropped. */
|
|
17
|
-
function cssClean(css) {
|
|
18
|
-
return String(css)
|
|
19
|
-
.replace(/@import[^;]*;?/gi, function (rule) { return /^@import\s+(?:url\(\s*)?['"]?\s*(?:https:|data:)/i.test(rule) ? rule : ''; })
|
|
20
|
-
.replace(/url\(\s*(['"]?)\s*(?:\.\/|\/)?assets\/[^)]*\)/gi, 'url("data:,")');
|
|
21
|
-
}
|
|
22
|
-
/** The report with every reference to its own files made inert, and `note` (if any) shown first. */
|
|
23
|
-
function neutralize(html, Parser, note) {
|
|
24
|
-
var P = Parser || root.DOMParser;
|
|
25
|
-
var doc = new P().parseFromString(String(html || ''), 'text/html');
|
|
26
|
-
doc.querySelectorAll('base').forEach(function (b) { b.remove(); });
|
|
27
|
-
doc.querySelectorAll('*').forEach(function (el) {
|
|
28
|
-
['src', 'href', 'poster', 'data', 'xlink:href'].forEach(function (name) {
|
|
29
|
-
var v = el.getAttribute(name);
|
|
30
|
-
if (v !== null && ASSET.test(v)) { el.setAttribute('data-floless-' + name.replace(':', '-'), v); el.removeAttribute(name); }
|
|
31
|
-
});
|
|
32
|
-
var srcset = el.getAttribute('srcset');
|
|
33
|
-
if (srcset !== null && srcset.split(',').some(function (c) { return ASSET.test(c); })) {
|
|
34
|
-
el.setAttribute('data-floless-srcset', srcset); el.removeAttribute('srcset');
|
|
35
|
-
}
|
|
36
|
-
var style = el.getAttribute('style');
|
|
37
|
-
if (style && /assets\/|@import/i.test(style)) el.setAttribute('style', cssClean(style));
|
|
38
|
-
if (String(el.tagName).toUpperCase() === 'STYLE') el.textContent = cssClean(el.textContent);
|
|
39
|
-
});
|
|
40
|
-
if (note && doc.body) {
|
|
41
|
-
var p = doc.createElement('p');
|
|
42
|
-
p.setAttribute('data-floless-files-note', '');
|
|
43
|
-
p.setAttribute('style', 'margin:0;padding:.6rem 1rem;font:13px/1.5 system-ui,sans-serif;background:#111c33;color:#e2e8f0;border-left:3px solid #fbbf24');
|
|
44
|
-
p.textContent = note;
|
|
45
|
-
doc.body.insertBefore(p, doc.body.firstChild);
|
|
46
|
-
}
|
|
47
|
-
return '<!doctype html>' + doc.documentElement.outerHTML;
|
|
48
|
-
}
|
|
49
|
-
root.FlolessReportFiles = { neutralize: neutralize };
|
|
50
|
-
})(typeof window !== 'undefined' ? window : globalThis);
|