@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.
- package/cli-actions.mjs +21 -5
- package/dist/floless-server.cjs +70965 -43326
- package/dist/schemas/drawing-check.profile.v1.schema.json +15 -2
- package/dist/schemas/steel.model.v2.schema.json +25 -1
- package/dist/skills/floless-app-actions/SKILL.md +79 -17
- package/dist/skills/floless-app-knowledge/SKILL.md +21 -2
- package/dist/skills/floless-app-new-workflow/SKILL.md +23 -7
- package/dist/skills/floless-app-onboarding/SKILL.md +31 -1
- package/dist/skills/floless-app-report-issue/SKILL.md +3 -3
- package/dist/skills/floless-app-rfi/SKILL.md +40 -6
- package/dist/skills/floless-app-routines/SKILL.md +9 -2
- package/dist/skills/floless-app-steel-model/SKILL.md +1 -1
- package/dist/skills/floless-app-steel-model/references/detail-from-a-screenshot.md +4 -2
- package/dist/skills/floless-app-tweak-contract/SKILL.md +25 -5
- package/dist/skills/floless-app-workflows/SKILL.md +46 -10
- package/dist/skills/floless-app-workflows/references/agent-steps.md +119 -0
- package/dist/web/agent-steps.js +864 -47
- package/dist/web/agents.js +28 -8
- package/dist/web/app.css +478 -3
- package/dist/web/app.js +110 -11
- package/dist/web/aware-update-client.js +1 -0
- package/dist/web/aware.js +685 -170
- package/dist/web/chat-landing-scene.js +372 -0
- package/dist/web/chat.css +245 -1
- package/dist/web/chat.js +2466 -78
- package/dist/web/commands-drawing-check.js +17 -0
- package/dist/web/commands-shell.js +820 -3
- package/dist/web/commands-steel.js +6 -0
- package/dist/web/connections.js +1 -0
- package/dist/web/drawing-check-editor.html +33 -5
- package/dist/web/drawing-check-editor.js +538 -22
- package/dist/web/drawing-check-overlay.js +13 -0
- package/dist/web/flo-avatar.js +28 -3
- package/dist/web/guide.js +7 -2
- package/dist/web/index.html +119 -6
- package/dist/web/instructor.js +3 -3
- package/dist/web/model-view-query.js +12 -2
- package/dist/web/pages.js +865 -34
- package/dist/web/panels.js +5 -2
- package/dist/web/parser-setup-recovery.js +12 -4
- package/dist/web/project-access.js +549 -0
- package/dist/web/report-files.js +50 -0
- package/dist/web/startup-admission.js +132 -0
- package/dist/web/steel-3d-core.js +9 -0
- package/dist/web/steel-editor.html +642 -22
- package/dist/web/steel-model-v2-commands.js +63 -5
- package/dist/web/step-rename.js +287 -0
- package/dist/web/terminal-requests.js +59 -10
- package/dist/web/tool-updates.js +1 -0
- package/dist/web/workspace-root-management.js +39 -0
- package/dist/web/workspaces.js +1667 -63
- package/launch.mjs +9 -7
- package/package.json +3 -1
package/dist/web/agents.js
CHANGED
|
@@ -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 {
|
|
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
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
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) {
|