@floless/app 0.155.2 → 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 +392 -0
- package/dist/floless-server.cjs +182734 -141519
- 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 +199 -0
- package/dist/skills/floless-app-approval/SKILL.md +8 -5
- package/dist/skills/floless-app-bridge/SKILL.md +12 -9
- package/dist/skills/floless-app-knowledge/SKILL.md +50 -14
- package/dist/skills/floless-app-new-workflow/SKILL.md +26 -10
- package/dist/skills/floless-app-onboarding/SKILL.md +31 -1
- package/dist/skills/floless-app-onboarding/references/aware-runtime.md +4 -4
- package/dist/skills/floless-app-queue/SKILL.md +10 -6
- package/dist/skills/floless-app-report-issue/SKILL.md +15 -12
- package/dist/skills/floless-app-rfi/SKILL.md +98 -73
- package/dist/skills/floless-app-routines/SKILL.md +27 -15
- package/dist/skills/floless-app-routines/references/routines-api.md +8 -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 +50 -13
- package/dist/skills/floless-app-workflows/references/agent-steps.md +119 -0
- package/dist/web/agent-steps.js +1750 -0
- package/dist/web/agents.js +33 -8
- package/dist/web/app.css +681 -4
- package/dist/web/app.js +111 -11
- package/dist/web/aware-update-client.js +1 -0
- package/dist/web/aware.js +1257 -202
- package/dist/web/chat-landing-scene.js +372 -0
- package/dist/web/chat.css +254 -1
- package/dist/web/chat.js +2657 -87
- package/dist/web/commands-drawing-check.js +17 -0
- package/dist/web/commands-shell.js +1108 -4
- 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 +171 -7
- package/dist/web/instructor.js +6 -4
- package/dist/web/leave-guard.js +4 -2
- package/dist/web/left-pane.js +8 -3
- package/dist/web/model-revit-module.js +15 -0
- package/dist/web/model-view-query.js +12 -2
- package/dist/web/model-viewport-revit-adapter.js +3 -1
- package/dist/web/pages.js +891 -36
- package/dist/web/panels.js +8 -5
- package/dist/web/parser-setup-recovery.js +12 -4
- package/dist/web/project-access.js +549 -0
- package/dist/web/project-reconciliation.js +357 -0
- package/dist/web/report-files.js +50 -0
- package/dist/web/revit-editor.js +116 -27
- 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 +590 -0
- package/dist/web/tool-updates.js +148 -13
- package/dist/web/workspace-root-management.js +39 -0
- package/dist/web/workspaces.js +1879 -74
- package/launch.mjs +82 -2
- 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) {
|
|
@@ -847,6 +867,10 @@
|
|
|
847
867
|
el('button', { type: 'button', id: 'ag-schedule', 'data-command-id': 'shell.agents-schedule', text: 'Schedule…',
|
|
848
868
|
'data-tip': state.dirty || !state.agent ? 'Saves your changes, then opens a new routine that runs this agent' : 'Opens a new routine that runs this agent on a schedule',
|
|
849
869
|
onclick: () => void scheduleAgent() }),
|
|
870
|
+
// #2241: asks AI Chat to add this agent to a workflow as a step (the saved version; the UI edits no workflow).
|
|
871
|
+
state.agent && window.flolessAgentSteps?.enabled() ? el('button', { type: 'button', id: 'ag-add-step', 'data-command-id': 'shell.agents-add-step', text: 'Add an Agent step…',
|
|
872
|
+
'data-tip': state.dirty ? 'Asks AI Chat to add the saved version of this agent to a workflow as a step. Your unsaved changes are not included.' : 'Asks AI Chat to add this agent to a workflow as a step. Nothing changes until you send the request.',
|
|
873
|
+
onclick: () => void window.flolessAgentSteps.draftAdd({ agentId: state.agent.agentId, agentName: state.agent.name, revision: state.agent.revision, anyWorkflow: true }) }) : null,
|
|
850
874
|
el('button', { type: 'button', id: 'ag-run', class: 'primary', 'data-command-id': 'shell.agents-run', text: 'Run…',
|
|
851
875
|
'data-tip': state.dirty || !state.agent ? 'Saves your changes, then shows what will start' : 'Shows exactly what will start before anything runs',
|
|
852
876
|
onclick: () => void openRunSheet() }),
|
|
@@ -1085,6 +1109,7 @@
|
|
|
1085
1109
|
if (next === state.open) { if (next && state.view === 'list') void loadAgents(); return; }
|
|
1086
1110
|
state.open = next;
|
|
1087
1111
|
$surface.hidden = !next;
|
|
1112
|
+
if (next) void window.flolessAgentSteps?.probe().then((on) => { if (on && state.open) paint(); }); // #2241: the Add an Agent step button
|
|
1088
1113
|
if (next) {
|
|
1089
1114
|
state.view = 'list'; void loadAgents();
|
|
1090
1115
|
} else {
|