@floless/app 0.155.1 → 0.156.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 (46) hide show
  1. package/cli-actions.mjs +376 -0
  2. package/dist/floless-server.cjs +101615 -87681
  3. package/dist/skills/floless-app-actions/SKILL.md +137 -0
  4. package/dist/skills/floless-app-approval/SKILL.md +8 -5
  5. package/dist/skills/floless-app-bridge/SKILL.md +12 -9
  6. package/dist/skills/floless-app-knowledge/SKILL.md +30 -13
  7. package/dist/skills/floless-app-new-workflow/SKILL.md +4 -4
  8. package/dist/skills/floless-app-onboarding/SKILL.md +1 -1
  9. package/dist/skills/floless-app-onboarding/references/aware-runtime.md +4 -4
  10. package/dist/skills/floless-app-queue/SKILL.md +10 -6
  11. package/dist/skills/floless-app-report-issue/SKILL.md +13 -10
  12. package/dist/skills/floless-app-rfi/SKILL.md +59 -68
  13. package/dist/skills/floless-app-routines/SKILL.md +19 -14
  14. package/dist/skills/floless-app-routines/references/routines-api.md +8 -2
  15. package/dist/skills/floless-app-workflows/SKILL.md +5 -4
  16. package/dist/web/agent-steps.js +933 -0
  17. package/dist/web/agents.js +5 -0
  18. package/dist/web/app.css +210 -5
  19. package/dist/web/app.js +1 -0
  20. package/dist/web/aware.js +584 -44
  21. package/dist/web/chat.css +9 -0
  22. package/dist/web/chat.js +195 -13
  23. package/dist/web/commands-shell.js +299 -1
  24. package/dist/web/commands-tekla-parser.js +7 -0
  25. package/dist/web/index.html +52 -1
  26. package/dist/web/instructor.js +5 -3
  27. package/dist/web/leave-guard.js +4 -2
  28. package/dist/web/left-pane.js +145 -42
  29. package/dist/web/model-editor.css +10 -0
  30. package/dist/web/model-group-navigator.js +331 -0
  31. package/dist/web/model-panel-bridge.js +63 -5
  32. package/dist/web/model-pointer-dock.js +55 -5
  33. package/dist/web/model-revit-module.js +15 -0
  34. package/dist/web/model-selection-tools.js +53 -17
  35. package/dist/web/model-tekla-selection.js +75 -2
  36. package/dist/web/model-viewport-revit-adapter.js +17 -10
  37. package/dist/web/pages.js +27 -3
  38. package/dist/web/panels.js +3 -3
  39. package/dist/web/project-reconciliation.js +357 -0
  40. package/dist/web/revit-editor.js +464 -76
  41. package/dist/web/steel-3d-view.js +1 -0
  42. package/dist/web/terminal-requests.js +541 -0
  43. package/dist/web/tool-updates.js +147 -13
  44. package/dist/web/workspaces.js +213 -12
  45. package/launch.mjs +80 -2
  46. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  name: floless-app-rfi
3
3
  description: File, send, and manage RFIs on a floless.app project from the terminal. Use when the user asks to raise an RFI, send it through the connected Gmail account, record a manual send, chase one, record an answer that came back from the engineer, mark an answer as applied, close or reopen an RFI, or asks what questions are still outstanding on a project. Also use when a size the AI could not work out is one the user cannot answer either, so the question has to become a durable record instead of a message that scrolls away.
4
4
  metadata:
5
- version: 0.2.2
5
+ version: 0.3.0
6
6
  ---
7
7
 
8
8
  # File and manage a project's RFIs
@@ -32,8 +32,12 @@ And the user always ends with a model. An RFI carries a question forward; it nev
32
32
 
33
33
  1. Resolve the running FloLess base URL. Prefer the port supplied by the request or context; otherwise
34
34
  read `~/.floless/port`, then try the installed default `http://127.0.0.1:4317`. Confirm with
35
- `GET /api/health`.
36
- 2. Resolve the project with `GET /api/projects`. Keep the returned `id` and `app`; never build an id
35
+ the `app.health` action: `floless-app do app.health --json` in a terminal, or
36
+ `floless_action_read({ id: 'app.health' })` inside a FloLess AI chat (see the `floless-app-actions`
37
+ skill). Every RFI read and write below is an action: use `floless-app do <id>` in a terminal, or
38
+ `floless_action_call` / `floless_action_propose` inside a FloLess AI chat. Do not curl the routes.
39
+ 2. Resolve the project with the `projects.list` action (`floless-app do projects.list --json`; the
40
+ list is in `data`). Keep the returned `id` and `app`; never build an id
37
41
  from a display name. If the name is ambiguous, ask the user to choose.
38
42
 
39
43
  **A healthy server is not a usable one.** The workspace API is behind a subscription gate. Any RFI call
@@ -43,10 +47,12 @@ can answer `402 {ok:false, error:"subscription required", state, reason, signInU
43
47
  ## Read the list before writing anything
44
48
 
45
49
  ```
46
- GET /api/projects/<projectId>/rfis
47
- -> { ok, fileRevision, sizeTruth, sizeTruthDetail?, rfis: [ … ] }
50
+ floless-app do rfis.list --input '{"projectId":"<projectId>"}' --json
51
+ -> { ok, data: { ok, fileRevision, sizeTruth, sizeTruthDetail?, rfis: [ … ] }, … }
48
52
  ```
49
53
 
54
+ Inside a FloLess AI chat: `floless_action_read({ id: 'rfis.list', input: { projectId } })`, same `data`.
55
+
50
56
  Newest first. Each row carries `id` (`RFI-001`, `RFI-002`, …), `seq`, `recordRevision`, `kind`,
51
57
  `status` (`open` | `sent` | `answered` | `closed`), `disposition`, `question`, `subjects`, `targets`,
52
58
  `raisedAt`, `raisedBy`, and — for the current cycle only — `answer`, `sent`, `applied`, `closed`.
@@ -56,11 +62,12 @@ compose, so check for it rather than sending an empty message.
56
62
  ### Recover a drawing read whose model published but whose RFI filing failed
57
63
 
58
64
  When a drawing-read response contains `rfiFailure`, the model and its History version already exist.
59
- Do not re-read the drawings and do not re-submit the model. Retry only the failed sidecar write:
65
+ Do not re-read the drawings and do not re-submit the model. Retry only the failed sidecar write with
66
+ the `rfis.recover-filing` action:
60
67
 
61
68
  ```
62
- POST /api/projects/<projectId>/versions/<versionN>/rfis
63
- <the exact original rfiSelection body>
69
+ floless-app do rfis.recover-filing --input-file recover.json --json
70
+ recover.json = { "projectId": "<projectId>", "versionN": <versionN>, "selection": <the exact original rfiSelection> }
64
71
  ```
65
72
 
66
73
  Use the exact `requestId`, gap order, `gapKey`, `proposed`, and `tried` values originally submitted.
@@ -102,33 +109,25 @@ more than one member fits. The server arbitrates — it refuses an id the model
102
109
  create-then-send that fails halfway leaves an open record with no date and no recipient.
103
110
 
104
111
  ```
105
- POST /api/projects/<projectId>/rfis
106
- {
107
- "operationKey": "<unique for this intent>",
108
- "memberId": "<model member id>",
109
- "action": "send",
110
- "expectedRfiId": null,
111
- "expectedRfiRevision": null,
112
- "to": "<who it goes to>"
113
- }
112
+ floless-app do rfis.file-and-mark-sent --input '{"projectId":"<projectId>","memberId":"<model member id>","to":"<who it goes to>"}' --json
114
113
  ```
115
114
 
116
- `action` is `send` or `answer` and nothing else. To file with an answer already in hand:
115
+ That records that the question was sent outside FloLess. It emails nothing, and it is rated
116
+ `destructive`, so the person confirms it on a card. To file with an answer already in hand, use
117
+ `rfis.file-with-answer`:
117
118
 
118
119
  ```
119
- { "operationKey": "…", "memberId": "…", "action": "answer",
120
- "expectedRfiId": null, "expectedRfiRevision": null,
121
- "answer": { "form": "profile", "profile": "<section designation>" } }
120
+ { "projectId": "…", "memberId": "…", "answer": { "form": "profile", "profile": "<section designation>" } }
122
121
  ```
123
122
 
124
- Answers `200 { ok, replayed, fileRevision, rfi }`. **You do not write the question or its location** —
123
+ When the list already shows an RFI for that question, also pass `expectedRfiId` and
124
+ `expectedRfiRevision` from its row (both, or neither). Both answer `{ ok, replayed, fileRevision, rfi }`. **You do not write the question or its location** —
125
125
  the server composes both from what the read already recorded about that member, and always ties the
126
126
  record to the member itself.
127
127
 
128
- The two `expected…` fields are the gap-head precondition from the RFI list you just read. Use both
129
- `null` when that member has no current record. If the list already has the current record for this
130
- gap, send its `id` and `recordRevision` instead. Keep those exact two values with the same
131
- `operationKey` when retrying the same intent; re-read and mint a new key only for a new intent.
128
+ The two `expected…` fields are the gap-head precondition from the RFI list you just read. Leave both
129
+ out when that member has no current record. If the list already has the current record for this
130
+ gap, send its `id` and `recordRevision` as `expectedRfiId` and `expectedRfiRevision` instead.
132
131
 
133
132
  **It is not always a NEW record.** The server matches on the member's gap, so if a record for that member
134
133
  already exists it is re-observed, or reopened, or superseded by a linked replacement — and the `rfi` you
@@ -167,18 +166,20 @@ call for it.
167
166
 
168
167
  ## Acting on a record
169
168
 
170
- ```
171
- POST /api/projects/<projectId>/rfis/<rfiId>/<action>
172
- { "operationKey": "<unique for this intent>", "recordRevision": <from the row you just read>, … }
173
- ```
169
+ Every action takes `projectId`, `rfiId` and `recordRevision` (from the row you just read). The
170
+ operation key is supplied by FloLess itself, one per confirmed intent, so you never write one.
174
171
 
175
- | action | legal while | extra fields |
176
- |---|---|---|
177
- | `send` | `open` | `to` — required, ≤200 chars. The server records the manual transport as `email`; callers cannot choose it. **This is Mark sent: it records that somebody sent it outside FloLess. It does not deliver mail.** Never tell the user it went out on the strength of this route's 200 |
178
- | `answer` | `open` or `sent` | `answer` — `{ "form": "profile", "profile": "…" }` for a size question, `{ "form": "prose", "text": "…" }` for every other kind |
179
- | `apply` | `answered`, **size questions only** | none — the server mints the receipt itself |
180
- | `close` | not already closed | `disposition`, and `note` for every disposition except `resolved` |
181
- | `reopen` | `closed` | `why` |
172
+ | action | verb | legal while | extra fields |
173
+ |---|---|---|---|
174
+ | `rfis.mark-sent` | send | `open` | `to` — required, ≤200 chars. The server records the manual transport as `email`; callers cannot choose it. **This is Mark sent: it records that somebody sent it outside FloLess. It does not deliver mail.** Never tell the user it went out on the strength of its success. Rated `destructive` (a card) |
175
+ | `rfis.answer` | answer | `open` or `sent` | `answer` — `{ "form": "profile", "profile": "…" }` for a size question, `{ "form": "prose", "text": "…" }` for every other kind |
176
+ | `rfis.apply` | apply | `answered`, **size questions only** | none — the server mints the receipt itself |
177
+ | `rfis.close` | close | not already closed | `disposition`, and `note` for every disposition except `resolved` |
178
+ | `rfis.reopen` | reopen | `closed` | `why` |
179
+
180
+ A grouped RFI also takes `scope` (`{"kind":"group"}` or `{"kind":"occurrence","occurrenceIndex":n}`) on
181
+ answer, close and reopen, and `occurrenceIndex` on apply. The rest of this skill calls the verbs by
182
+ their plain names (`send`, `answer`, and so on). Each is the action in this table.
182
183
 
183
184
  ## Sending through the connected Gmail account
184
185
 
@@ -189,8 +190,8 @@ attachments, HTML, replies, and editable subject/body are deliberate carve-outs.
189
190
  Read readiness first:
190
191
 
191
192
  ```
192
- GET /api/projects/<projectId>/rfis/gmail-readiness
193
- -> { ok, readiness: { status, message, generation? } }
193
+ floless-app do rfis.gmail-readiness --input '{"projectId":"<projectId>"}' --json
194
+ -> data: { ok, readiness: { status, message, generation? } }
194
195
  ```
195
196
 
196
197
  `ready` is the only sendable state. For `connect-google`, direct the user to connect Google Workspace
@@ -200,22 +201,17 @@ stop. The feature is pinned to the AWARE and Google Workspace agent versions it
200
201
  never work around a version or provenance refusal.
201
202
 
202
203
  Before the irreversible call, show the exact single recipient and ask the user to confirm this send.
203
- The browser or terminal supplies only the recipient, the current record revision, and a one-time key.
204
- The server owns the subject and complete body:
204
+ `rfis.deliver` is `destructive`, so the person confirms it on a card in FloLess and nothing is sent
205
+ before they do. You supply only the recipient and the current record revision. The server owns the
206
+ subject and complete body:
205
207
 
206
208
  ```
207
- POST /api/projects/<projectId>/rfis/<rfiId>/deliver
208
- {
209
- "operationKey": "<unique for this delivery intent>",
210
- "recordRevision": <from the row you just read>,
211
- "to": "engineer@example.com"
212
- }
209
+ floless-app do rfis.deliver --input '{"projectId":"<projectId>","rfiId":"<rfiId>","recordRevision":<from the row you just read>,"to":"engineer@example.com"}' --json
213
210
  ```
214
211
 
215
- Accept one plain ASCII mailbox only—no display name, recipient list, line break, CC, or Bcc. Never add
216
- `subject`, `body`, `sender`, or provider credentials: unknown fields are refused, and OAuth tokens never
217
- cross FloLess. Repeating the same immutable delivery intent uses the same operation key; a different
218
- recipient or revision is a new intent and needs a new key.
212
+ Accept one plain ASCII mailbox only: no display name, recipient list, line break, CC, or Bcc. There is
213
+ no subject, body, sender or credential field, and OAuth tokens never cross FloLess. A different
214
+ recipient or revision is a new intent and a new card.
219
215
 
220
216
  Read `attempt.status` (or the RFI row's `delivery.status`) rather than inferring success from HTTP 200:
221
217
 
@@ -227,8 +223,7 @@ Read `attempt.status` (or the RFI row's `delivery.status`) rather than inferring
227
223
  Continue only that attempt:
228
224
 
229
225
  ```
230
- POST /api/projects/<projectId>/rfis/<rfiId>/delivery-attempts/<attemptId>/continue
231
- { "operationKey": "<unique recovery key>" }
226
+ rfis.deliver-continue { "projectId": "…", "rfiId": "…", "attemptId": "…" }
232
227
  ```
233
228
 
234
229
  - `outcome-unknown` means Gmail may have accepted it. **Never send it again.** Ask the user to search
@@ -237,10 +232,12 @@ Read `attempt.status` (or the RFI row's `delivery.status`) rather than inferring
237
232
  attempt. If the user positively finds the exact message and marker, record that fact with:
238
233
 
239
234
  ```
240
- POST /api/projects/<projectId>/rfis/<rfiId>/delivery-attempts/<attemptId>/confirm-sent
241
- { "operationKey": "<unique confirmation key>" }
235
+ rfis.deliver-confirm-sent { "projectId": "…", "rfiId": "…", "attemptId": "…" }
242
236
  ```
243
237
 
238
+ Both of these are `destructive` and ask the person on a card. Only the person can say they found the
239
+ marker, so never offer `rfis.deliver-confirm-sent` on a guess.
240
+
244
241
  There is deliberately no “not found, resend” action. A search miss cannot prove Gmail did not accept
245
242
  the message. While a delivery is `prepared` or `outcome-unknown`, ordinary RFI mutations—including
246
243
  Mark sent—stay blocked so the record cannot tell two incompatible stories.
@@ -292,18 +289,12 @@ that is read as kilograms per metre prices the model about a third light, with n
292
289
 
293
290
  ## Retries, revisions and refusals
294
291
 
295
- - **`operationKey`** goes on every write. One key per intent. Retry the *same* intent with the *same*
296
- key — the server performs no second mutation and answers `replayed: true` with the record's **current**
297
- view, which may have moved on since. A **different** payload under a key already used is
298
- `rfi-operation-key-conflict` (409); mint a new key for a new intent.
299
- **Two reasons a retry may not replay.** Promotion checks the model *before* it looks the key up, so
300
- replaying a promotion whose member has since been given a size answers `409 rfi-member-resolved` rather
301
- than `replayed: true` — and that refusal does **not** tell you whether the first call landed, because it
302
- is decided before the ledger is ever consulted. And the ledger is a bounded retry **cache**, not a
303
- history: it keeps the most recent 1,000 keys per project and trims the oldest, so a retry of a
304
- long-superseded operation is treated as a fresh one and can act a second time. Retry promptly, and on
305
- any refusal — or any retry of something old — re-fetch the list and read what the record actually says
306
- instead of assuming the write was lost.
292
+ - **The operation key** is FloLess's: every action call carries its own, one per confirmed intent, so a
293
+ card clicked twice acts once. A **new** call is a new intent, so a call you repeat after a timeout is
294
+ not a replay. Before retrying anything that may have landed, re-fetch the list and read what the
295
+ record actually says instead of assuming the write was lost. The server's own ledger is a bounded
296
+ cache of recent keys, not a history, and a promotion whose member has since been given a size answers
297
+ `409 rfi-member-resolved` without telling you whether the first call landed.
307
298
  - **`recordRevision`** comes from the row you just read, never from memory.
308
299
 
309
300
  ### What is legal, by `kind` and `status`
@@ -404,7 +395,7 @@ steel.
404
395
  - **Distinguish delivery from bookkeeping.** Only a connected-Gmail attempt ending `recorded` proves
405
396
  Gmail accepted the message for delivery. Mark sent merely records an external send. Neither proves
406
397
  inbox delivery, and FloLess still does not set sizes.
407
- - **One key per intent**, and never reuse a key for different content.
398
+ - **One call per intent.** Read the list again before repeating a write that may have landed.
408
399
  - **Never fabricate a recipient or a channel** to get past `send` — ask who it goes to.
409
400
  - **Do not treat a question as a reason to withhold the model.** State what was assumed in the meantime,
410
401
  and file the question beside it.
@@ -2,7 +2,7 @@
2
2
  name: floless-app-routines
3
3
  description: This skill should be used when the user wants to set up a floless.app workflow (.flo app) to run automatically — "routines" — either on a timer (schedule) or on a live event (trigger). Triggers on requests like "schedule tekla-bom-by-phase every weekday at 7am", "run this workflow every 2 hours", "run my BOM whenever the Tekla model changes", "watch the model and run X on each change", "set up a trigger routine", "list my routines", "disable the morning routine", "delete that routine". Covers the floless.app routines REST API (create / list / edit / enable-disable / delete / run-now), the schedule presets, the event-trigger kind, the confirm-first rule, and the runnable gate.
4
4
  metadata:
5
- version: 0.1.6
5
+ version: 0.1.7
6
6
  ---
7
7
 
8
8
  # Setting up floless.app routines (automatic .flo runs)
@@ -39,23 +39,26 @@ workflow below); if it isn't, say so and offer a schedule instead. When unsure,
39
39
 
40
40
  ## The base URL + preflight
41
41
 
42
- The server is at **`http://127.0.0.1:4317`** (the fixed floless.app port). Call it from the
43
- terminal with `curl` (a non-browser caller sends no `Origin`, which the server's cross-origin
44
- guard allows).
42
+ The server is at **`http://127.0.0.1:4317`** (the fixed floless.app port). Reads, and run-now, go
43
+ through FloLess actions: in a terminal `floless-app do <id> --json` (it starts FloLess if needed),
44
+ inside a FloLess AI chat `floless_action_read({ id: 'routines.list' })` and friends — see the
45
+ `floless-app-actions` skill. Creating, changing and deleting a routine have no action yet: call
46
+ those from the terminal with `curl` (a non-browser caller sends no `Origin`, which the server's
47
+ cross-origin guard allows).
45
48
 
46
49
  Before any routine call, confirm the server is up and licensed:
47
50
 
48
51
  ```bash
49
- curl -s http://127.0.0.1:4317/api/health
50
- # → {"ok":true,"license":"valid",...}. If it doesn't respond, the floless.app desktop app
51
- # isn't running — ask the user to start it. If license != valid/offline-grace, /api/routines
52
- # returns 402; the user must sign in (the app surfaces a sign-in gate).
52
+ floless-app do app.health --json
53
+ # → {"ok":true,"data":{"ok":true,"license":"valid",...}}. ok:false with server-unavailable → the
54
+ # floless.app desktop app isn't running — ask the user to start it. If data.license !=
55
+ # valid/offline-grace, /api/routines returns 402; the user must sign in (the app surfaces a sign-in gate).
53
56
  ```
54
57
 
55
58
  ## The SCHEDULE workflow (always, in order)
56
59
 
57
60
  1. **Resolve + verify the workflow.** List installed apps and confirm the target exists:
58
- `curl -s http://127.0.0.1:4317/api/apps`. Then confirm it is **runnable** (compiled, fresh
61
+ `floless-app do workflows.list --json` (`data.apps`). Then confirm it is **runnable** (compiled, fresh
59
62
  lock) — only runnable apps fire cleanly:
60
63
  `curl -s http://127.0.0.1:4317/api/app/<id>` → check `app.runnable === true`. If it is not
61
64
  runnable, tell the user it needs Compile first (don't schedule a broken app — the scheduler
@@ -128,8 +131,8 @@ curl -s -X POST http://127.0.0.1:4317/api/routines -H 'content-type: application
128
131
  curl -s -X POST http://127.0.0.1:4317/api/routines -H 'content-type: application/json' -d '{
129
132
  "kind":"trigger","name":"Watch model","workflow":"tekla-watch-smoke","enabled":true}'
130
133
 
131
- # List (trigger routines carry a live `session`; schedule routines carry `nextFireAt`)
132
- curl -s http://127.0.0.1:4317/api/routines
134
+ # List (data.routines; trigger routines carry a live `session`; schedule routines carry `nextFireAt`)
135
+ floless-app do routines.list --json
133
136
 
134
137
  # Disable (or re-enable) — for a TRIGGER this STOPS / STARTS the live watcher
135
138
  curl -s -X PATCH http://127.0.0.1:4317/api/routines/<id> -H 'content-type: application/json' -d '{"enabled":false}'
@@ -138,8 +141,10 @@ curl -s -X PATCH http://127.0.0.1:4317/api/routines/<id> -H 'content-type: appli
138
141
  curl -s -X PATCH http://127.0.0.1:4317/api/routines/<id> -H 'content-type: application/json' -d '{"schedule":{"kind":"daily","time":"06:30"}}'
139
142
 
140
143
  # Run now — SCHEDULE kind only (a trigger 400s: its control is enable/disable).
144
+ # A real run, so this only ASKS: nothing runs until the person confirms it in FloLess. Tell them
145
+ # so, and never say it started until the envelope says ok:true.
141
146
  # 409 `{"running":true}` while that routine is already queued or mid-run: nothing was started.
142
- curl -s -X POST http://127.0.0.1:4317/api/routines/<id>/run
147
+ floless-app do routines.run --input '{"routineId":"<id>"}' --wait --json
143
148
 
144
149
  # Delete (a trigger's live watcher is stopped first)
145
150
  curl -s -X DELETE http://127.0.0.1:4317/api/routines/<id>
@@ -156,11 +161,11 @@ curl -s -X DELETE http://127.0.0.1:4317/api/routines/<id>
156
161
  - **A FloLess-owned workflow follows its publication.** A FloLess-owned workflow is scheduled by its
157
162
  current `activePublication.runtimeAppId`; the routine follows every later publish on its own — never
158
163
  delete and recreate a routine after publishing.
159
- - **Run-now is schedule-only.** `POST /api/routines/:id/run` on a trigger returns **400**
164
+ - **Run-now is schedule-only.** `routines.run` (`POST /api/routines/:id/run`) on a trigger returns **400**
160
165
  ("a trigger routine runs on its event — enable/disable it instead"). Don't offer run-now for a
161
166
  trigger; the control is the enable/disable toggle (start/stop the live watcher).
162
167
  - **Run-now while that routine is already queued or running is a 409, not a second run.** The
163
- response carries `running: true` — nothing was started. Tell the user it is already running (or
168
+ envelope comes back `ok: false` — nothing was started. Tell the user it is already running (or
164
169
  waiting its turn behind another routine); never report "started". A scheduled fire that lands in
165
170
  the same window is dropped the same way — the server logs it, and the next fire is recomputed.
166
171
  - **The server runs it, not Claude.** Once created, floless.app runs the routine locally — the
@@ -96,6 +96,12 @@ bounded by the ~1-minute scheduler tick. Supports `* , - /` and lists.
96
96
 
97
97
  ## Endpoints
98
98
 
99
+ Two of these have a FloLess action — use it instead of the raw call: the list is `routines.list`
100
+ (`floless-app do routines.list --json`, or `floless_action_read({ id: 'routines.list' })` in a FloLess
101
+ AI chat; `data` is the body below) and run-now is `routines.run` (input `{ routineId }`), which only
102
+ asks — the person confirms it in FloLess before anything runs. Create, change and delete have no
103
+ action yet; call them directly.
104
+
99
105
  | Method | Path | Body | Result |
100
106
  |---|---|---|---|
101
107
  | GET | `/api/routines` | — | `{ ok, routines: Routine[], max: 15 }` (trigger routines include a live `session`) |
@@ -105,8 +111,8 @@ bounded by the ~1-minute scheduler tick. Supports `* , - /` and lists.
105
111
  | POST | `/api/routines/:id/run` | — | `{ ok }` (schedule: enqueues a real run now) · `400` for a **trigger** · `404` · `409 { running: true }` if that routine is already queued or mid-run |
106
112
 
107
113
  Supporting reads (same server):
108
- - `GET /api/health` → `{ ok, license, ... }` — preflight.
109
- - `GET /api/apps` → `{ ok, apps: [{ id, nodes, layout, provider }] }` — does the workflow exist?
114
+ - the `app.health` action → `data`: `{ ok, license, ... }` — preflight.
115
+ - the `workflows.list` action → `data`: `{ ok, apps: [{ id, nodes, layout, provider }] }` — does the workflow exist?
110
116
  - `GET /api/app/:id` → `{ ok, app }` — `app.runnable` (compiled+fresh) and `app.inputs`
111
117
  (`[{ name, type, default, description }]`) to seed/validate routine inputs, **plus
112
118
  `app.triggerSource`** (`{ nodeId, agent, command, inputs } | null`) — non-null = trigger-eligible.
@@ -2,7 +2,7 @@
2
2
  name: floless-app-workflows
3
3
  description: This skill should be used when building, modifying, or reasoning about FloLess .flo workflows for floless.app — especially reusable apps that take inputs (e.g. a phase number) and run across different Tekla models, exec nodes that run Roslyn C# against the live model, Blender animations of a building (blender/exec Python rendered headlessly — construction sequence, fly-through, sun study), the in-app HTML Viewer, the Code tab, or "Debug in VS". Covers the exec contract, the install→validate→compile→run loop, app inputs templating, reading approved Workspace project data and immutable approved Revit model snapshots through the floless-workspace REST seam plus its themed pickers, and the server seams (aware-adapter, app-reader, index).
4
4
  metadata:
5
- version: 0.7.0
5
+ version: 0.7.2
6
6
  ---
7
7
 
8
8
  # Building reusable .flo workflows in floless.app
@@ -245,6 +245,7 @@ Resolve the `aware` CLI the same way the adapter does: prefer the npm global
245
245
  (`aware app compile ./demos/<id>`) and copy the `.lock` across. If the `.lock` is missing/stale
246
246
  in `~/.aware/apps/<id>/`, app-reader reports `uncompiled` and the UI Run gate stays disabled.
247
247
  (Older docs said `compile <id>` resolved relative to CWD — stale; it's a `<PATH>` arg now.)
248
+ If a workflow has an Agent step, the person confirms in FloLess's approval dialog that its answer may differ each run; you never confirm that for them. Hand them the dialog (the human-only `agent-steps.confirm` action opens it). Do add the top-level line `nondeterministic-output: acknowledged` to the source yourself (the pinned step block returns it as `acknowledgement.line`): it is only a marker AWARE needs before it will install or compile an Agent step, so you can author, install and compile freely. It is not consent; the person's confirmation in FloLess is what lets the workflow be approved and run.
248
249
  4. **Run for real — MANDATORY before calling ANY `.flo` change done.** `aware app run <id> --input
249
250
  k=v --json` (`run` takes the app **id**, unlike `validate`/`compile` which take a path). The
250
251
  trace lands at `~/.aware/logs/<id>/<instance>/<run>.jsonl`; the exec result is at `data.result`
@@ -424,10 +425,10 @@ When work is tied to a Workspace project (the user names one, or a queued reques
424
425
  later changes:
425
426
 
426
427
  ```
427
- PUT <base>/api/kb-pin/<appId>
428
- { "projectId": "<project>",
428
+ floless-app do knowledge.record-workflow-source --json --input '{
429
+ "workflowId": "<appId>", "projectId": "<project>",
429
430
  "generationId": "<the generation.generationId the feed returned>",
430
- "pages": [{ "slug": "shop-standard-bolts", "title": "Shop Standard Bolts" }] }
431
+ "pages": [{ "slug": "shop-standard-bolts", "title": "Shop Standard Bolts" }] }'
431
432
  ```
432
433
 
433
434
  Only the pages you actually relied on (at most 20). Consulting the KB and finding nothing