@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
@@ -61,12 +61,26 @@
61
61
  return node;
62
62
  };
63
63
  // The New agent card shows Flo, hat on, ready to take a job (#2079's Flo); a plain + where flo-avatar.js is absent.
64
+ // With the pointer on the card Flo wakes: it blinks and its eyes follow the pointer (owner, 2026-10-19).
64
65
  const newAgentThumb = () => {
65
66
  const thumb = el('div', { class: 'ws-thumb', 'aria-hidden': 'true' });
66
- if (typeof floAvatar === 'function') floAvatar(thumb, { size: 44, mood: 'idle', hat: true });
67
+ if (typeof floAvatar === 'function') thumb.flo = floAvatar(thumb, { size: 44, mood: 'idle', hat: true });
67
68
  else thumb.textContent = '+';
68
69
  return thumb;
69
70
  };
71
+ // How far the pointer may be from Flo before its eyes reach their edge, in px.
72
+ const FLO_WATCH_REACH = 140;
73
+ const watchPointer = (card, thumb) => {
74
+ const flo = thumb.flo;
75
+ if (!flo?.wake) return card;
76
+ card.addEventListener('pointerenter', () => flo.wake());
77
+ card.addEventListener('pointermove', (e) => {
78
+ const r = flo.canvas.getBoundingClientRect();
79
+ flo.lookAt((e.clientX - (r.left + r.width / 2)) / FLO_WATCH_REACH, (e.clientY - (r.top + r.height / 2)) / FLO_WATCH_REACH);
80
+ });
81
+ card.addEventListener('pointerleave', () => flo.rest());
82
+ return card;
83
+ };
70
84
  const toast = (text, kind) => { try { showToast(text, kind); } catch { /* app.js not ready */ } };
71
85
  const agoText = (iso) => {
72
86
  if (!iso) return '';
@@ -80,7 +94,10 @@
80
94
  async function ensureSession() {
81
95
  if (state.sessionReady) return;
82
96
  let response;
83
- try { response = await fetch('/api/chat/session', { credentials: 'same-origin' }); }
97
+ try {
98
+ await globalThis.flolessStartupAdmission?.admit('/api/chat/session');
99
+ response = await fetch('/api/chat/session', { credentials: 'same-origin' });
100
+ }
84
101
  catch {
85
102
  const failure = new Error('FloLess could not be reached. Make sure it is still running, then try again.');
86
103
  failure.code = 'local-unreachable';
@@ -91,6 +108,7 @@
91
108
  }
92
109
 
93
110
  async function api(path, options = {}) {
111
+ await globalThis.flolessStartupAdmission?.admit(path, { method: options.method, signal: options.signal });
94
112
  await ensureSession();
95
113
  const init = { credentials: 'same-origin', ...options };
96
114
  if (init.body && typeof init.body !== 'string') { init.body = JSON.stringify(init.body); init.headers = { 'content-type': 'application/json' }; }
@@ -149,6 +167,7 @@
149
167
  // A list that could not be read is never shown as an empty one: that would mark every project "Not available".
150
168
  async function loadOptions() {
151
169
  const read = async (path) => {
170
+ await globalThis.flolessStartupAdmission?.admit(path);
152
171
  const response = await fetch(path, { credentials: 'same-origin' });
153
172
  if (!response.ok) throw new Error(`${path} answered ${response.status}`);
154
173
  return response.json();
@@ -789,12 +808,13 @@
789
808
  }
790
809
  wrap.append(head);
791
810
  if (!state.showArchived) {
792
- wrap.append(el('div', { class: 'ws-create-grid' },
793
- el('div', { class: 'ws-card ws-create ws-card-create ag-create', role: 'button', tabindex: '0', 'data-ag-new': '1', 'data-command-id': 'shell.agents-new' },
794
- newAgentThumb(),
795
- el('div', { class: 'ws-body' }, el('div', {},
796
- el('div', { class: 'ws-name', text: 'New agent' }),
797
- el('div', { class: 'ws-meta', text: 'Name it, say what to check and where. Runs show up in AI Chat.' }))))));
811
+ const thumb = newAgentThumb();
812
+ const card = el('div', { class: 'ws-card ws-create ws-card-create ag-create', role: 'button', tabindex: '0', 'data-ag-new': '1', 'data-command-id': 'shell.agents-new' },
813
+ thumb,
814
+ el('div', { class: 'ws-body' }, el('div', {},
815
+ el('div', { class: 'ws-name', text: 'New agent' }),
816
+ el('div', { class: 'ws-meta', text: 'Name it, say what to check and where. Runs show up in AI Chat.' }))));
817
+ wrap.append(el('div', { class: 'ws-create-grid' }, watchPointer(card, thumb)));
798
818
  }
799
819
  if (state.loading && !state.agents.length) wrap.append(el('div', { class: 'ws-empty-note', role: 'status', text: 'Loading agents…' }));
800
820
  else if (state.loadError) {