@floless/app 0.156.0 → 0.157.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.
Files changed (53) hide show
  1. package/cli-actions.mjs +21 -5
  2. package/dist/floless-server.cjs +70965 -43326
  3. package/dist/schemas/drawing-check.profile.v1.schema.json +15 -2
  4. package/dist/schemas/steel.model.v2.schema.json +25 -1
  5. package/dist/skills/floless-app-actions/SKILL.md +79 -17
  6. package/dist/skills/floless-app-knowledge/SKILL.md +21 -2
  7. package/dist/skills/floless-app-new-workflow/SKILL.md +23 -7
  8. package/dist/skills/floless-app-onboarding/SKILL.md +31 -1
  9. package/dist/skills/floless-app-report-issue/SKILL.md +3 -3
  10. package/dist/skills/floless-app-rfi/SKILL.md +40 -6
  11. package/dist/skills/floless-app-routines/SKILL.md +9 -2
  12. package/dist/skills/floless-app-steel-model/SKILL.md +1 -1
  13. package/dist/skills/floless-app-steel-model/references/detail-from-a-screenshot.md +4 -2
  14. package/dist/skills/floless-app-tweak-contract/SKILL.md +25 -5
  15. package/dist/skills/floless-app-workflows/SKILL.md +46 -10
  16. package/dist/skills/floless-app-workflows/references/agent-steps.md +119 -0
  17. package/dist/web/agent-steps.js +864 -47
  18. package/dist/web/agents.js +28 -8
  19. package/dist/web/app.css +478 -3
  20. package/dist/web/app.js +110 -11
  21. package/dist/web/aware-update-client.js +1 -0
  22. package/dist/web/aware.js +685 -170
  23. package/dist/web/chat-landing-scene.js +372 -0
  24. package/dist/web/chat.css +245 -1
  25. package/dist/web/chat.js +2466 -78
  26. package/dist/web/commands-drawing-check.js +17 -0
  27. package/dist/web/commands-shell.js +820 -3
  28. package/dist/web/commands-steel.js +6 -0
  29. package/dist/web/connections.js +1 -0
  30. package/dist/web/drawing-check-editor.html +33 -5
  31. package/dist/web/drawing-check-editor.js +538 -22
  32. package/dist/web/drawing-check-overlay.js +13 -0
  33. package/dist/web/flo-avatar.js +28 -3
  34. package/dist/web/guide.js +7 -2
  35. package/dist/web/index.html +119 -6
  36. package/dist/web/instructor.js +3 -3
  37. package/dist/web/model-view-query.js +12 -2
  38. package/dist/web/pages.js +865 -34
  39. package/dist/web/panels.js +5 -2
  40. package/dist/web/parser-setup-recovery.js +12 -4
  41. package/dist/web/project-access.js +549 -0
  42. package/dist/web/report-files.js +50 -0
  43. package/dist/web/startup-admission.js +132 -0
  44. package/dist/web/steel-3d-core.js +9 -0
  45. package/dist/web/steel-editor.html +642 -22
  46. package/dist/web/steel-model-v2-commands.js +63 -5
  47. package/dist/web/step-rename.js +287 -0
  48. package/dist/web/terminal-requests.js +59 -10
  49. package/dist/web/tool-updates.js +1 -0
  50. package/dist/web/workspace-root-management.js +39 -0
  51. package/dist/web/workspaces.js +1667 -63
  52. package/launch.mjs +9 -7
  53. package/package.json +3 -1
package/launch.mjs CHANGED
@@ -640,12 +640,15 @@ export async function cmdUninstall(flags = {}) {
640
640
  log('done. Finally, remove floless.app itself with: npm uninstall -g @floless/app');
641
641
  }
642
642
 
643
- // One JSON request to the local server for the actions CLI: { status, body } (body parsed, or null). Throws only
644
- // when the server cannot be reached at all. A generous timeout: a read action runs the UI's own route in full.
645
- function apiRequest(method, path, body) {
643
+ const API_SNIPPET_CHARS = 300;
644
+
645
+ // One JSON request to the local server for the actions CLI: { status, body } (body parsed, or null), plus the start of
646
+ // the raw answer as `text` when it was not JSON (#2320: a 5xx HTML page is then reported, not just "not understood").
647
+ // Throws only when the server cannot be reached at all. A generous timeout: a read action runs the UI's own route in full.
648
+ export function apiRequest(method, path, body, { base = `http://127.0.0.1:${PORT}` } = {}) {
646
649
  return new Promise((resolve, reject) => {
647
650
  const payload = body === undefined ? undefined : JSON.stringify(body);
648
- const req = http.request(`http://127.0.0.1:${PORT}${path}`, {
651
+ const req = http.request(`${base}${path}`, {
649
652
  method, timeout: 120000,
650
653
  headers: payload === undefined ? {} : { 'content-type': 'application/json', 'content-length': Buffer.byteLength(payload) },
651
654
  }, (res) => {
@@ -653,9 +656,8 @@ function apiRequest(method, path, body) {
653
656
  res.setEncoding('utf8');
654
657
  res.on('data', (c) => (text += c));
655
658
  res.on('end', () => {
656
- let parsed = null;
657
- try { parsed = text ? JSON.parse(text) : null; } catch { parsed = null; }
658
- resolve({ status: res.statusCode ?? 0, body: parsed });
659
+ try { resolve({ status: res.statusCode ?? 0, body: text ? JSON.parse(text) : null }); }
660
+ catch { resolve({ status: res.statusCode ?? 0, body: null, text: text.slice(0, API_SNIPPET_CHARS) }); }
659
661
  });
660
662
  });
661
663
  req.on('error', reject);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floless/app",
3
- "version": "0.156.0",
3
+ "version": "0.157.0",
4
4
  "type": "module",
5
5
  "description": "Thin localhost host for floless.app — serves web/ and shells the aware CLI. No engine, no LLM.",
6
6
  "bin": {
@@ -27,6 +27,7 @@
27
27
  "test:drawing-check": "tsx --test drawing-check.required.ts",
28
28
  "test:project-import-pdf": "node build/run-required-tests.mjs projects-store.test.ts rfi-import.test.ts",
29
29
  "test:platform": "node build/run-tests.mjs --platform-only",
30
+ "test:clock-skew": "node build/run-clock-skew-tests.mjs",
30
31
  "build": "node build/bundle.mjs",
31
32
  "build:exe": "node build/build-production.mjs",
32
33
  "build:exe:app": "node build/bundle.mjs && node build/make-sea.mjs",
@@ -42,6 +43,7 @@
42
43
  "verify:flo-naming": "node build/verify-flo-naming.mjs",
43
44
  "verify:forward-merge": "node build/verify-forward-merge.mjs",
44
45
  "verify:no-title": "node build/verify-no-title.mjs",
46
+ "verify:no-wallclock-asserts": "node build/verify-no-wallclock-asserts.mjs",
45
47
  "verify:windows-hide": "node build/verify-windows-hide.mjs",
46
48
  "verify:css-vars": "node build/verify-css-vars.mjs",
47
49
  "verify:runtime-pins": "node build/verify-runtime-pins.mjs",