@floless/app 0.155.2 → 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.
- package/cli-actions.mjs +376 -0
- package/dist/floless-server.cjs +100135 -86559
- package/dist/skills/floless-app-actions/SKILL.md +137 -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 +30 -13
- package/dist/skills/floless-app-new-workflow/SKILL.md +4 -4
- package/dist/skills/floless-app-onboarding/SKILL.md +1 -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 +13 -10
- package/dist/skills/floless-app-rfi/SKILL.md +59 -68
- package/dist/skills/floless-app-routines/SKILL.md +19 -14
- package/dist/skills/floless-app-routines/references/routines-api.md +8 -2
- package/dist/skills/floless-app-workflows/SKILL.md +5 -4
- package/dist/web/agent-steps.js +933 -0
- package/dist/web/agents.js +5 -0
- package/dist/web/app.css +205 -3
- package/dist/web/app.js +1 -0
- package/dist/web/aware.js +584 -44
- package/dist/web/chat.css +9 -0
- package/dist/web/chat.js +195 -13
- package/dist/web/commands-shell.js +288 -1
- package/dist/web/index.html +52 -1
- package/dist/web/instructor.js +4 -2
- 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-viewport-revit-adapter.js +3 -1
- package/dist/web/pages.js +27 -3
- package/dist/web/panels.js +3 -3
- package/dist/web/project-reconciliation.js +357 -0
- package/dist/web/revit-editor.js +116 -27
- package/dist/web/terminal-requests.js +541 -0
- package/dist/web/tool-updates.js +147 -13
- package/dist/web/workspaces.js +213 -12
- package/launch.mjs +80 -2
- 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.
|
|
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
|
-
`
|
|
36
|
-
|
|
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
|
-
|
|
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
|
-
|
|
63
|
-
<the exact original rfiSelection
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
{ "
|
|
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
|
-
|
|
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.
|
|
129
|
-
|
|
130
|
-
gap, send its `id` and `recordRevision`
|
|
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
|
-
|
|
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
|
-
| `
|
|
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
|
-
|
|
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
|
-
|
|
204
|
-
|
|
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
|
-
|
|
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
|
|
216
|
-
|
|
217
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
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
|
|
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.
|
|
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).
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
|
|
50
|
-
# → {"ok":true,"license":"valid",...}.
|
|
51
|
-
# isn't running — ask the user to start it. If license !=
|
|
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
|
-
`
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
- `
|
|
109
|
-
-
|
|
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.
|
|
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
|
-
|
|
428
|
-
|
|
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
|