@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
@@ -0,0 +1,137 @@
1
+ ---
2
+ name: floless-app-actions
3
+ description: Drive floless.app from the terminal through its action catalog — the same live list of everything the FloLess UI can do that the in-app AI chat uses. Use this skill whenever the user asks you (an AI working in their terminal) to do something IN FloLess — list projects or workflows, check a workflow's last run, run a workflow, run a routine now, archive or bring back a project, check queued requests, check tool updates — or says "use floless-app do", "what can floless do from here", "run my dummy-report workflow", "archive that project". It teaches the three verbs (`floless-app actions` to discover, `floless-app actions describe <id>` for the input, `floless-app do <id>` to act), how to read AWARE's JSON envelope and the exit codes, and that anything destructive or only-a-person (a real run, an approval) becomes a request the person answers in FloLess — never something you confirm. Prefer an action over calling FloLess's HTTP API with curl whenever an action exists.
4
+ metadata:
5
+ version: 0.2.1
6
+ ---
7
+
8
+ # floless.app — actions from the terminal
9
+
10
+ FloLess keeps ONE catalog of what its UI can do. The in-app AI chat, the `/api/actions` HTTP face and
11
+ this CLI all read it live from the running app, so what you discover here is exactly what this
12
+ install can do — nothing written down here can go stale. Each action runs the UI's own route, so every
13
+ gate the UI has (sign-in, AWARE readiness, the Run drift gate) applies to you too.
14
+
15
+ The `floless-app` command is the FloLess launcher. It talks to the local FloLess server (port 4317, or
16
+ `PORT` when set) and **starts it if it is not running**. Always pass `--json` when you will read the
17
+ answer yourself.
18
+
19
+ - **Installed with npm** (`npm i -g @floless/app`): `floless-app` is on the PATH.
20
+ - **The desktop app** takes the same verbs on its own exe:
21
+ `& "$env:LOCALAPPDATA\FlolessApp\current\FlolessApp.exe" do projects.list --json` (PowerShell).
22
+ Read its stdout through your shell tool as usual; a desktop exe prints nothing to a bare console
23
+ window.
24
+ - **Inside a FloLess AI chat** you already have the same catalog as tools — `floless_actions_list`,
25
+ `floless_action_describe`, `floless_action_read`, `floless_action_call`, `floless_action_propose` —
26
+ and the card appears in that conversation. Use those there instead of this CLI.
27
+ - **Inside a FloLess background request run** (FloLess started you to work a queued request, and told
28
+ you which calls that run may make): use only those calls. Actions are not offered there, and this
29
+ CLI must not be used to step around what the run allows; if the run cannot do a step, hand it back
30
+ to the person as the run's instructions say.
31
+
32
+ ## 1. Discover — `floless-app actions [area] --json`
33
+
34
+ Lists every action: `id`, `area`, `title`, `risk`, `scope`. Areas today include `app`, `projects`,
35
+ `workflows`, `requests`, `routines`, `rfis`, `knowledge`, `tools` — but read the list, do not assume it.
36
+ More appear as FloLess grows; an id you have not seen before is normal.
37
+
38
+ `risk` tells you what will happen when you `do` it:
39
+
40
+ | risk | from the terminal |
41
+ |---|---|
42
+ | `read` | runs at once, changes nothing |
43
+ | `write` | runs at once; a reversible change |
44
+ | `destructive` | **does not run.** FloLess asks the person, in FloLess, to confirm it |
45
+ | `human-only` | **never runs.** FloLess opens the screen where the person does it themselves (approve, compile, seal, issue) |
46
+
47
+ ## 2. Describe — `floless-app actions describe <id> --json`
48
+
49
+ Gives the plain-English description, why it has its risk, and `inputSchema` (a JSON Schema). Build
50
+ the input from the schema; never guess field names. Ids for the input (a `workflowId`, a
51
+ `projectId`) come from a read action first — e.g. `workflows.list` or `projects.list`.
52
+
53
+ ## 3. Do — `floless-app do <id> --input '<json>' --json`
54
+
55
+ Or `--input-file <file>` for a larger input (no input at all means `{}`). Windows shells mangle
56
+ quotes: in PowerShell write the JSON to a file and use `--input-file`.
57
+
58
+ ```bash
59
+ floless-app do projects.list --json
60
+ floless-app do workflows.latest-run --input '{"workflowId":"dummy-report"}' --json
61
+ floless-app do workflows.run --input '{"workflowId":"dummy-report"}' --wait --json
62
+ ```
63
+
64
+ ### Reading the answer
65
+
66
+ `--json` prints exactly one envelope on stdout, AWARE's shape:
67
+
68
+ ```json
69
+ { "ok": true, "data": { … }, "error": null, "meta": { "command": "do", "action": "projects.list", "callId": "…", "outcome": "ok", "consent": "run" } }
70
+ ```
71
+
72
+ - `ok: false` → `error.code` + `error.message` (plain English — pass it on to the person as is).
73
+ - `meta.outcome`: `ok`, `failed`, `rejected` (bad input, nothing sent), or `pending` (a request is
74
+ waiting for the person — see below).
75
+
76
+ | exit | meaning |
77
+ |---|---|
78
+ | 0 | it ran (or, with `--wait`, the person confirmed it and it finished) |
79
+ | 1 | it failed, or the person said Not now, or the request expired |
80
+ | 2 | your command or input was wrong — fix it and try again |
81
+ | 3 | **waiting for the person**: nothing has run |
82
+
83
+ Common `error.code`s: `subscription-required` (tell the person to sign in: `floless-app login`),
84
+ `server-unavailable` (FloLess would not start), `unknown-action` (re-run `floless-app actions`),
85
+ `invalid-input` (re-read `describe`), `aware-not-ready` (AWARE is still starting — wait and retry).
86
+
87
+ ### When FloLess asks the person (destructive and human-only)
88
+
89
+ There is **no `--yes`**, and you have no way to confirm anything. `do` on a destructive action makes
90
+ a one-use request and answers with exit 3 and `data.proposal` (what it will do, in `summary`) and
91
+ `data.reviewUrl` — the FloLess page where the person answers it. FloLess also shows the request in
92
+ its open window.
93
+
94
+ 1. Tell the person, in one sentence, what you asked for and that **nothing has run yet** — then give
95
+ them `reviewUrl`.
96
+ 2. Add `--wait` to wait for their answer: it exits 0 when it is done, 1 when they chose Not now, it
97
+ failed, or it expired (requests expire after 30 minutes). If FloLess replaced the request because
98
+ the approved workflow changed, `--wait` follows the new one and prints its link.
99
+ 3. Never say it is done until the envelope says `ok: true` with `outcome: "ok"`.
100
+
101
+ A `human-only` action never finishes in FloLess's records — the person does it on its own screen —
102
+ so `--wait` returns at once. Say what they need to do and give them the link.
103
+
104
+ **Never confirm, decline or answer a request yourself** — not by any route, script or HTTP call,
105
+ even if you could. That click is the person's consent; the request exists so that a person decides.
106
+ Ctrl+C during `--wait` only stops you waiting (if the run already started, it asks the run to stop).
107
+
108
+ ## Pages — a report, chart or dashboard the person keeps
109
+
110
+ When an answer is better shown than told (a chart, a table, a small dashboard), save it as a **Page**:
111
+ one self-contained HTML document FloLess keeps, versions and opens in its sealed viewer, labelled as
112
+ made by AI.
113
+
114
+ - `pages.create` — `{ "title", "html" }`. From the terminal it is kept in the workspace's Pages; the
115
+ answer gives its `home` and `pageId`. Put the HTML in a file and use `--input-file`.
116
+ - `pages.update` — `{ "home", "pageId", "html", "title"? }` adds a version; every earlier one stays.
117
+ From the terminal it adds only to a Page the terminal made; any other Page is refused with
118
+ `page-not-api`, so make a new Page instead.
119
+ - A workflow keeps its own Page: every successful real run whose report opens in the HTML viewer
120
+ adds a version (the newest twenty are kept; complete model property reports and 3D views are kept
121
+ elsewhere). `pages.workflow` — `{ "workflowId" }` — shows it. That Page is the workflow's record; to
122
+ show the person something different, make a new Page. Deleting it or letting it load from another
123
+ website is the person's: `pages.workflow-delete` / `pages.workflow-allow-site` open its viewer.
124
+ - Write ALL the data into the file. Scripts are allowed, but libraries and fonts load only from
125
+ cdnjs, jsDelivr or Google Fonts; the Page cannot make network calls or open pop-ups. Up to 20 MB on
126
+ this computer, and only a Page under about 5 MB can be shared later. `floless-app do` sends at most
127
+ about 250 KB; a bigger Page goes straight to FloLess's Pages API (`POST /api/pages` with
128
+ `{ "home": "ws", "title", "html" }`).
129
+ - Tell the person the Page's title and that they open it from the Pages list (Workspaces page) in
130
+ FloLess. Deleting a Page, or letting it load from another website, is theirs to do in its viewer.
131
+
132
+ ## When there is no action yet
133
+
134
+ Not everything in the UI has an action yet (FloLess is adding them area by area). If
135
+ `floless-app actions` has nothing for what you need, use the skill for that job (for example
136
+ `floless-app-routines` to create a routine) and its documented HTTP calls. Never invent an action id:
137
+ `floless-app do` rejects an unknown one with `unknown-action`.
@@ -2,7 +2,7 @@
2
2
  name: floless-app-approval
3
3
  description: Review and act on FloLess Workspace approval state through the local server API. Use when the user asks what changed or is pending, wants to approve selected changes, leave changes pending, discard a change, inspect approved history or saved checkpoints, start from an older approved version, resume or move saved work forward, or export the latest approved version, an older version, the working DRAFT, or a checkpoint DRAFT.
4
4
  metadata:
5
- version: 0.6.0
5
+ version: 0.7.0
6
6
  ---
7
7
 
8
8
  # FloLess Workspace approval
@@ -166,13 +166,16 @@ three-way conflict by guessing; use only a server-offered destructive action and
166
166
 
167
167
  ## History and saved work
168
168
 
169
- - List approved history with `GET /api/projects/:id/versions`.
170
- - List immutable saved work with `GET /api/projects/:id/checkpoints`; present server lineage,
169
+ - Prefer the FloLess action named in brackets (`floless-app do <id>`) over its raw route: same route, same checks.
170
+ Start and resume replace the working copy, so the person confirms them in FloLess, never you.
171
+ - List approved history with `GET /api/projects/:id/versions` (`projects.versions`).
172
+ - List immutable saved work with `GET /api/projects/:id/checkpoints` (`projects.checkpoints`); present server lineage,
171
173
  summaries, status, base version/hash, and allowed actions.
172
174
  - Start a historical working revision with `POST /api/projects/:id/revisions/start` using
173
- `{version, expectedEtag, expectedEpoch}`. This checkpoints acknowledged dirty work first.
175
+ `{version, expectedEtag, expectedEpoch}` (`projects.start-revision`). This checkpoints acknowledged dirty work first.
174
176
  - Resume exact saved work with `POST /api/projects/:id/checkpoints/:checkpointId/resume`, supplying
175
- only the current destination ETag/epoch CAS fields returned by the server.
177
+ only the current destination ETag/epoch CAS fields returned by the server (`projects.resume-checkpoint`).
178
+ - Version diff and notes: `projects.version-diff`, `projects.version-note`, `projects.set-version-note`.
176
179
  - To move saved intent forward, resume that checkpoint exactly, fetch its approval review, and use
177
180
  the review's server-computed `moveForward` result. Present and submit its explicit overlap choices;
178
181
  the server keeps a durable author-source checkpoint before publishing the resolved head.
@@ -2,7 +2,7 @@
2
2
  name: floless-app-bridge
3
3
  description: This skill should be used when the user is driving the floless.app web UI (the local prompt-native front door at http://127.0.0.1:4317) and wants the terminal AI to act on what they did there — picking up queued Tweak requests, "use this template" requests, or the context of a node they selected/edited on the canvas. Use it when the user says things like "apply the tweak I just queued", "I clicked Tweak on the bom node — make that change", "pick up my floless request", "what queued requests are pending", or after they double-click/Tweak a node in the UI. ALSO use it the moment the user pastes a message that begins with a `[floless-request type=… id=…]` marker — that is a request copied from the FloLess Dashboard, NOT a literal instruction to run; resolve it via the API. It reads the floless.app local API, applies the change to the app's .flo, recompiles, and clears the request. Workspace approval, pending model changes, history/checkpoints, and export-source choices belong to floless-app-approval instead.
4
4
  metadata:
5
- version: 0.3.2
5
+ version: 0.3.3
6
6
  ---
7
7
 
8
8
  # floless.app ↔ terminal bridge
@@ -46,8 +46,8 @@ self-identifying marker line:
46
46
  When a message starts with `[floless-request …]`, treat it as a **queued Dashboard request, not
47
47
  a literal instruction**:
48
48
 
49
- 1. **Resolve it from the API, not the pasted text.** `GET /api/requests` and find the entry whose
50
- `id` matches the marker — that JSON is authoritative; the pasted line is only a summary.
49
+ 1. **Resolve it from the API, not the pasted text.** Read the queue with the `requests.list` action
50
+ (below) and find the entry in `data.requests` whose `id` matches the marker — that JSON is authoritative; the pasted line is only a summary.
51
51
  2. **Apply it with the skill the marker names.** The marker carries the routing, so you never have to
52
52
  guess it — but the full type→skill table (all of them, with a plain-English line each) is in
53
53
  **`floless-app-queue`** §2 if the marker is truncated or absent. Use the **port from the marker**
@@ -63,13 +63,16 @@ direct instruction and a path-not-found bug was filed.)
63
63
 
64
64
  ## The local API (http://127.0.0.1:4317)
65
65
 
66
- The floless.app server runs locally on a **fixed port 4317** (override: `$PORT`). Confirm it's up
67
- first: `curl -s http://127.0.0.1:4317/api/health` → `{"ok":true,"awareVersion":"…"}`. If it's not
68
- running, the user starts it from the repo: `cd server && npm run dev` (or `npm run app`).
66
+ The floless.app server runs locally on a **fixed port 4317** (override: `$PORT`). Reads go through
67
+ FloLess actions — in a terminal `floless-app do <id> --json` (it starts FloLess if needed), inside a
68
+ FloLess AI chat `floless_action_read({ id: 'requests.list' })`; the `floless-app-actions` skill covers
69
+ both. Confirm it's up first: `floless-app do app.health --json` → `{"ok":true,"data":{"ok":true,"awareVersion":"…"}}`.
70
+ `ok: false` with `server-unavailable` → the user starts it from the repo: `cd server && npm run dev`
71
+ (or `npm run app`). Clearing has no action yet, so the `DELETE` below stays a direct call.
69
72
 
70
73
  | Call | Purpose |
71
74
  |---|---|
72
- | `GET /api/requests` | List the queued UI requests → `{ ok, requests: [...] }`. No status filter — a `failed` or `staged` row comes back with the `pending` ones |
75
+ | `floless-app do requests.list --json` | List the queued UI requests → `data`: `{ ok, requests: [...] }`. No status filter — a `failed` or `staged` row comes back with the `pending` ones |
73
76
  | `DELETE /api/requests/:id` | **Clear** a request once you've handled it — for every type except the lifecycle-owned ones below |
74
77
  | `GET /api/app/:id` | The app's normalized topology + source + lock (selected-node context) |
75
78
  | `POST /api/tweak` | (UI uses this to enqueue; you usually only read/clear) |
@@ -101,11 +104,11 @@ what to change.
101
104
  ## Workflow — pull, apply, clear
102
105
 
103
106
  ```dot
104
- digraph { "GET /api/requests" -> "for each pending" -> "read app .flo + node" ->
107
+ digraph { "requests.list" -> "for each pending" -> "read app .flo + node" ->
105
108
  "apply change (edit .flo)" -> "recompile + reinstall" -> "resolve it (DELETE, or its lifecycle POST)" }
106
109
  ```
107
110
 
108
- 1. **Pull**: `curl -s http://127.0.0.1:4317/api/requests` → take the `pending` ones (oldest first).
111
+ 1. **Pull**: `floless-app do requests.list --json` → take the `pending` ones in `data.requests` (oldest first).
109
112
  Summarize them for the user before acting on anything destructive. **When several are queued and
110
113
  the user wants to choose which to apply (not just the oldest), use the `floless-app-queue` skill** —
111
114
  it lists the queue in plain English and asks which to process, then routes each pick to the owning
@@ -2,7 +2,7 @@
2
2
  name: floless-app-knowledge
3
3
  description: This skill should be used when there is a pending floless `knowledge-organize` or `knowledge-adjust` request — the user pressed Organize on a floless.app project's Knowledge step, or asked to reshape that project's knowledge base. Also triggers on asks like "organize my project knowledge base", "compile the project wiki", "drain my knowledge-organize request", or "fold these shop standards into the project's knowledge". It teaches the host AI to claim the server-owned organize lock, project the enabled reference sources into that project's vault, compile a cross-linked LLM-wiki into the server-minted generation directory, and publish it — never writing the server-owned manifest, pointer, or lock.
4
4
  metadata:
5
- version: 0.4.0
5
+ version: 0.5.1
6
6
  ---
7
7
 
8
8
  # Organize a project's Knowledge Base
@@ -57,7 +57,23 @@ Read `references/schema.md` before compiling. It is the **forked** project-KB sc
57
57
  to `<knowledge>/vault/schema.md` on the first pass; read it from there afterwards.
58
58
 
59
59
  The base URL is the floless origin embedded in the copied request marker (typically
60
- `http://127.0.0.1:4317`). Confirm queued work with `GET <base>/api/requests`.
60
+ `http://127.0.0.1:4317`). Confirm queued work with the `requests.list` action.
61
+
62
+ **Reads and the requests you queue go through FloLess actions**, not raw `curl`: in a terminal
63
+ `floless-app do <id> --input '<json>' --json` (it starts FloLess if needed; the route's reply is `data`), and
64
+ inside a FloLess AI chat `floless_action_read` / `floless_action_call` — see the `floless-app-actions` skill.
65
+ The ones used below are `requests.list`, `knowledge.status`, `knowledge.page`, `knowledge.organize`,
66
+ `knowledge.adjust` and `projects.knowledge-feed`.
67
+
68
+ **Point the CLI at the marker's server.** `floless-app do` talks to port 4317 unless `PORT` is set, so when the
69
+ request marker's base URL has another port (a source or UAT server on 4318, say), set `PORT` to it first for every
70
+ `floless-app do` call (bash `PORT=4318 floless-app do …`, PowerShell `$env:PORT = '4318'`). Otherwise you would read
71
+ and queue work on one server while the `curl` lifecycle calls below, which use `<base>`, run on another. Inside a
72
+ FloLess AI chat the action tools are already bound to the right server.
73
+
74
+ The **lifecycle** calls (`start`, `finish`, `fail`) are the one
75
+ thing that stays a direct `curl`: they are this pass's own bookkeeping with the lock, not something a person does,
76
+ so they are not actions.
61
77
 
62
78
  ## The lifecycle — server-owned, do not improvise
63
79
 
@@ -89,7 +105,8 @@ The user toggled or dropped a source while the pass was running, so the publishe
89
105
  reflects the committed source set. The finished request is already consumed, so it cannot be
90
106
  re-driven. Instead:
91
107
 
92
- 1. `POST <base>/api/projects/<projectId>/knowledge/organize` → a **fresh** request.
108
+ 1. `floless-app do knowledge.organize --input '{"projectId":"<projectId>"}' --json` → a **fresh** request
109
+ (`data.request`).
93
110
  2. Run `start` → compile → `finish` on that new id **exactly once**.
94
111
 
95
112
  Do not loop. One re-run settles it; a second `rerun: true` means the user is still editing, so stop
@@ -124,7 +141,7 @@ Any other `409` (an organize already in progress) is unchanged: do not retry it
124
141
 
125
142
  ### 2. Snapshot the source set
126
143
 
127
- `GET <base>/api/projects/<projectId>/knowledge/status`. The rows the store just marked
144
+ `floless-app do knowledge.status --input '{"projectId":"<projectId>"}' --json` (`data.manifest.sources`). The rows the store just marked
128
145
  `state: "organizing"` **are this pass's snapshot** — compile from those, not from a re-read
129
146
  "currently enabled" set that can move underneath the pass. Drift after `start` is handled by
130
147
  `rerun`, not by re-reading.
@@ -194,7 +211,7 @@ The request carries the user's prose in `instruction` — for example "treat RFI
194
211
  "merge the two standards". Apply it by editing the vault, not by arguing with the manifest:
195
212
 
196
213
  - A durable steer belongs in `vault/raw/observations/` so a later recompile cannot lose it.
197
- - Then organize (queue `…/knowledge/organize` and drain it) so the published generation reflects the
214
+ - Then organize (queue it with the `knowledge.organize` action and drain it) so the published generation reflects the
198
215
  change.
199
216
  - A `knowledge-adjust` request is an ordinary request — apply it, then `DELETE
200
217
  <base>/api/requests/<requestId>`. Only `knowledge-organize` is lifecycle-cleared.
@@ -211,20 +228,20 @@ loopback `floless-workspace` agent (and directly on the floless server).
211
228
  Before you act on the project, ask the KB for the summaries relevant to what you're about to do:
212
229
 
213
230
  ```
214
- GET <base>/api/workspace-projects/<projectId>/knowledge?q=<the subject you're about to work on>
231
+ floless-app do projects.knowledge-feed --input '{"projectId":"<projectId>","q":"<the subject you are about to work on>"}' --json
215
232
  ```
216
233
 
217
234
  - `?q=` ranks the pages by your subject (plain lexical match). Omit it only on a small KB to get the
218
235
  whole table of contents — past a threshold the response comes back `{ needsQuery: true }`, asking you
219
236
  to narrow with a `q`.
220
- - The response is **summaries only**: `{ generation, pages: [{ slug, title, type, snippet }], total,
237
+ - The reply (`data`) is **summaries only**: `{ generation, pages: [{ slug, title, type, snippet }], total,
221
238
  truncated, needsQuery? }`. It never returns raw files or filesystem paths.
222
239
  - **Honor and cite.** Let the returned pages steer the decision — a shop standard, an RFI that governs,
223
240
  a fabricator's preference — and cite the `slug`/`title` you relied on so the user can trace it. This
224
241
  is the guardrail: *reliably-consulted context*, not a mechanical run-gate. You must actually consult it.
225
242
  - When a summary looks decisive and you need the full page, read it from the project route
226
- `GET <base>/api/projects/<projectId>/knowledge/page/<slug>?generation=<generationId>` (plain-text
227
- body), passing the same `generation.generationId` the feed returned. Without `?generation=` the
243
+ `knowledge.page` action (`{"projectId":"<projectId>","slug":"<slug>","generation":"<generationId>"}`; the page is
244
+ `data.page`, with its `title`, `type` and plain-text `body`), passing the same `generation.generationId` the feed returned. Without `?generation=` the
228
245
  route serves whatever is current, and an Organize pass that lands mid-task would hand you a page the
229
246
  feed never ranked — the pin you record afterwards would then cite a generation you did not read.
230
247
 
@@ -246,7 +263,7 @@ BASE=http://127.0.0.1:4317
246
263
  P=<projectId>
247
264
 
248
265
  # 0. What is queued? (the Organize button created this)
249
- curl -s $BASE/api/requests | jq '.requests[] | select(.type=="knowledge-organize")'
266
+ floless-app do requests.list --json | jq '.data.requests[] | select(.type=="knowledge-organize")'
250
267
  R=<requestId>
251
268
 
252
269
  # 1. Claim the pass — returns baseRevision, generationId, wikiDir
@@ -255,7 +272,7 @@ R=<requestId>
255
272
  curl -s -X POST $BASE/api/projects/$P/knowledge/requests/$R/start ${FLOLESS_CHAT_ID:+-H "X-FloLess-Chat: $FLOLESS_CHAT_ID"}
256
273
 
257
274
  # 2. Read the snapshot (rows now state:"organizing") and their blobs
258
- curl -s $BASE/api/projects/$P/knowledge/status | jq '.manifest.sources'
275
+ floless-app do knowledge.status --input "{\"projectId\":\"$P\"}" --json | jq '.data.manifest.sources'
259
276
  # bytes live at ~/.floless/projects/$P/knowledge/blobs/<blobSha256>
260
277
 
261
278
  # 3. …drain inbox, rebuild raw/sources, compile the wiki INTO the returned wikiDir…
@@ -264,7 +281,7 @@ curl -s $BASE/api/projects/$P/knowledge/status | jq '.manifest.sources'
264
281
  curl -s -X POST $BASE/api/projects/$P/knowledge/requests/$R/finish \
265
282
  -H 'content-type: application/json' \
266
283
  -d '{"generationId":"<the one start returned>","lintSummary":"12 notes, 8 links"}'
267
- # → { ok: true, rerun: false } ... rerun:true ⇒ POST …/knowledge/organize once and redo
284
+ # → { ok: true, rerun: false } ... rerun:true ⇒ run the knowledge.organize action once and redo
268
285
  #
269
286
  # NOTE: keep an inline -d body ASCII. Some Windows shells re-encode a non-ASCII argument, so the
270
287
  # byte count stops matching Content-Length and the server rejects it with
@@ -277,7 +294,7 @@ curl -s -X POST $BASE/api/projects/$P/knowledge/requests/$R/fail \
277
294
  -H 'content-type: application/json' -d '{"error":"could not read RFI-014.pdf"}'
278
295
 
279
296
  # 5. Confirm: currentGeneration set, sources flipped to "organized"
280
- curl -s $BASE/api/projects/$P/knowledge/status | jq '{gen:.currentGeneration, states:[.manifest.sources[].state]}'
297
+ floless-app do knowledge.status --input "{\"projectId\":\"$P\"}" --json | jq '{gen:.data.currentGeneration, states:[.data.manifest.sources[].state]}'
281
298
  ```
282
299
 
283
300
  Finish by telling the user, in plain English, what was organized — how many notes and links, what the
@@ -2,7 +2,7 @@
2
2
  name: floless-app-new-workflow
3
3
  description: This skill should be used to build a brand-new FloLess .flo workflow from scratch, step by step, as the host terminal AI — honoring the workflow owner and working directory supplied by FloLess, interviewing the user, checking the AWARE agents it needs, then authoring and verifying the owner source before publishing an immutable runtime through FloLess. Use it on triggers like "build a new workflow", "create a workflow from scratch", "build me a workflow", "new workflow", the floless.app "New workflow…" menu item, a queued new-workflow request, or "/floless-app-new-workflow". It leans on floless-app-workflows for the exec contract and hands back a runnable, approved app.
4
4
  metadata:
5
- version: 0.4.2
5
+ version: 0.4.3
6
6
  ---
7
7
 
8
8
  # Build a new floless.app workflow from scratch
@@ -103,10 +103,10 @@ fill the gap.
103
103
  4. **Record what you built from**, once FloLess returns the publication runtime id:
104
104
 
105
105
  ```
106
- PUT <base>/api/kb-pin/<appId>
107
- { "projectId": "<project>",
106
+ floless-app do knowledge.record-workflow-source --json --input '{
107
+ "workflowId": "<appId>", "projectId": "<project>",
108
108
  "generationId": "<the generation.generationId the feed returned>",
109
- "pages": [{ "slug": "shop-standard-bolts", "title": "Shop Standard Bolts" }] }
109
+ "pages": [{ "slug": "shop-standard-bolts", "title": "Shop Standard Bolts" }] }'
110
110
  ```
111
111
 
112
112
  Only the pages you actually relied on (at most 20). The app renders this as "Informed by …" and
@@ -2,7 +2,7 @@
2
2
  name: floless-app-onboarding
3
3
  description: Onboards a person into FloLess and the AWARE runtime underneath it, in three modes. Guide mode (the main one) runs inside FloLess AI Chat as the built-in Guide, whose first turn carries a JSON block of facts FloLess collected (apps, running, recentFiles, accounts, floless) — it briefs the person on what they seem to work on, then onboards them from their own situation, offering every next move as a button (floless_suggest_next_move, floless_connection_propose); the looks FloLess starts stay read only, and later it changes something only when the person asks and the chat's Access allows it. Terminal mode is the re-runnable guided tour for an AI in an external terminal (AWARE first, then the FloLess surfaces). Instructor focused mode answers one queued guide request about a single control. Use it when the Guide conversation starts, and on asks like "what can FloLess do for me", "how do I", "onboard me", "get me started", "I'm new to FloLess or AWARE", "give me the guided tour", "walk me through floless.app", "what can AWARE do", "show me the agents", or "/floless-app-onboarding" - for the whole tour or one section.
4
4
  metadata:
5
- version: 0.4.0
5
+ version: 0.4.1
6
6
  ---
7
7
 
8
8
  # Onboarding a person into FloLess + AWARE
@@ -67,10 +67,10 @@ The reliable path on **every** build is the npm global — lead with it:
67
67
  npm i -g @aware-aeco/cli@latest # always works; no running app required
68
68
  ```
69
69
  **FloLess also has an in-app shortcut:** an **Update AWARE** pill in the footer next to the version
70
- (clicking it reinstalls in place, no relaunch) — programmatically
71
- `GET /api/aware/update` then `POST /api/aware/update/apply`. If that pill isn't there, the app isn't
72
- running, or `GET /api/aware/update` 404s, the build predates the shortcut — just use the npm command
73
- above.
70
+ (clicking it reinstalls in place, no relaunch) — from the terminal,
71
+ `floless-app do updates.aware` then `floless-app do updates.apply-aware` (the second one is a request the person
72
+ answers in FloLess). If that pill isn't there, the app isn't running, or the action is unknown, the build
73
+ predates the shortcut — just use the npm command above.
74
74
 
75
75
  After applying, **re-probe** (`npm ls -g @aware-aeco/cli`) and confirm the new version to the user.
76
76
 
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: floless-app-queue
3
- description: This skill should be used when the user has MULTIPLE floless.app requests queued from the Dashboard and wants to see them and choose which to process, rather than the AI just picking up the oldest one. Use it when the user says things like "what's in my floless queue", "list my queued floless requests", "show me the pending requests and let me pick", "I queued a few tweaks — which should I apply?", "let me choose what to process", or "pick from the floless queue". It lists the pending requests from GET /api/requests in plain language (type, which app/node/project, the instruction), asks the user which one(s) to apply, then hands each chosen request to the owning skill (floless-app-workflows / -tweak-contract / -ui / -rebake / -onboarding / -new-workflow / -steel-takeoff / -vectorize / -knowledge) which applies it and clears it. It is the interactive picker that sits in front of floless-app-bridge (which is the actual pull-apply-clear engine).
3
+ description: This skill should be used when the user has MULTIPLE floless.app requests queued from the Dashboard and wants to see them and choose which to process, rather than the AI just picking up the oldest one. Use it when the user says things like "what's in my floless queue", "list my queued floless requests", "show me the pending requests and let me pick", "I queued a few tweaks — which should I apply?", "let me choose what to process", or "pick from the floless queue". It lists the pending requests (the requests.list action) in plain language (type, which app/node/project, the instruction), asks the user which one(s) to apply, then hands each chosen request to the owning skill (floless-app-workflows / -tweak-contract / -ui / -rebake / -onboarding / -new-workflow / -steel-takeoff / -vectorize / -knowledge) which applies it and clears it. It is the interactive picker that sits in front of floless-app-bridge (which is the actual pull-apply-clear engine).
4
4
  metadata:
5
- version: 0.2.5
5
+ version: 0.2.6
6
6
  ---
7
7
 
8
8
  # floless.app queue picker
@@ -21,14 +21,18 @@ enough.
21
21
 
22
22
  ## 1. Fetch the queue
23
23
 
24
- The server runs locally on **port 4317** (override: `$PORT`). Confirm it's up, then read the queue:
24
+ The server runs locally on **port 4317** (override: `$PORT`). Read the queue with the
25
+ `requests.list` action (`floless-app do` starts FloLess if it isn't running; see the
26
+ `floless-app-actions` skill):
25
27
 
26
28
  ```bash
27
- curl -s http://127.0.0.1:4317/api/health # → {"ok":true,...}; if down, user runs `cd server && npm run dev`
28
- curl -s http://127.0.0.1:4317/api/requests # → { "ok": true, "requests": [ ... ] }
29
+ floless-app do requests.list --json # → { "ok": true, "data": { "ok": true, "requests": [ ... ] }, ... }
30
+ # ok:false with server-unavailable → FloLess would not start; ask the user to start it
29
31
  ```
30
32
 
31
- `requests` is the **actionable** queue, oldest first. If it's empty, tell the user the queue is
33
+ Inside a FloLess AI chat, the same read is `floless_action_read({ id: 'requests.list' })`.
34
+
35
+ `data.requests` is the **actionable** queue, oldest first. If it's empty, tell the user the queue is
32
36
  empty and stop — there is nothing to pick.
33
37
 
34
38
  **A request can be set aside without being deleted.** The person's ✕ (dismissed), 14 days without
@@ -2,7 +2,7 @@
2
2
  name: floless-app-report-issue
3
3
  description: File a diagnosed bug / idea / question from floless.app into the PRIVATE product log via the floless.io relay. Use when the user invokes /floless-app-report-issue, clicks "Report an issue" in the floless.app UI (a queued report or a copied prompt), or says "report this", "file a bug", "something broke in floless", "send feedback / a feature idea". It READS the live run evidence first (latest run trace, failing node + error, the .flo, exec code), offers a workaround grounded in the app's own command registry when another route exists, then composes a maintainer-ready report and sends it — always showing the exact text and confirming first. Read-only — it never re-runs a workflow node.
4
4
  metadata:
5
- version: 0.2.2
5
+ version: 0.2.3
6
6
  ---
7
7
 
8
8
  # floless.app — report an issue
@@ -17,9 +17,11 @@ on their behalf under the signed-in session. You compose + send; you never touch
17
17
 
18
18
  ## Preconditions
19
19
 
20
- - The local server is up: `curl -s http://127.0.0.1:4317/api/health` → `{"ok":true,…}` (fixed port
21
- 4317; override `$PORT`). It returns `appVersion`, `awareVersion`, and `license`. If it's down,
22
- the user starts it from the repo (`cd server && npm run dev`).
20
+ - The local server is up: `floless-app do app.health --json` → `{"ok":true,"data":{…}}` (fixed port
21
+ 4317; override `$PORT`; `floless-app do` starts FloLess if it isn't running). `data` holds
22
+ `appVersion`, `awareVersion`, and `license`. Inside a FloLess AI chat the same read is
23
+ `floless_action_read({ id: 'app.health' })` — the `floless-app-actions` skill covers both forms.
24
+ `ok: false` with `server-unavailable` → the user starts it from the repo (`cd server && npm run dev`).
23
25
  - A signed-in session is required to file (the relay authenticates with it). If a send returns
24
26
  `signed_out`, tell the user to sign in (menu → the license state in the footer) and retry — do
25
27
  not try to work around it.
@@ -33,7 +35,7 @@ Diagnosing must never change the user's model or data.
33
35
  - **Only** offer a *full-workflow* re-run when **all** hold: the user explicitly asks, the app is
34
36
  `runnable`, and the latest trace shows the previous run was **non-mutating** (read-only nodes).
35
37
  Otherwise diagnose from the evidence already on disk.
36
- - Everything below (`/api/health`, `/api/latest-run/:id`, `/api/app/:id`, the shipped `commands-*.js`,
38
+ - Everything below (the `app.health` and `workflows.latest-run` actions, `/api/app/:id`, the shipped `commands-*.js`,
37
39
  reading the `.flo`/exec source) is read-only. Stay there.
38
40
 
39
41
  ## Discriminator + routing — keep the trackers clean
@@ -55,11 +57,12 @@ digraph { "health + identify app" -> "read evidence (READ-ONLY)" -> "root-cause
55
57
  "POST /api/report-issue" -> "report the ref" }
56
58
  ```
57
59
 
58
- 1. **Health + identify the app.** `GET /api/health` for versions + license. Establish which app/
60
+ 1. **Health + identify the app.** The `app.health` action for versions + license. Establish which app/
59
61
  workflow the report is about (ask if unclear, or take it from a queued UI request).
60
62
  2. **Read the evidence (the killer step — READ-ONLY):**
61
- - `GET /api/latest-run/<appId>` → structured trace: `runId`, `status`, `errorNodeId`,
62
- `errorMessage`, `events`. This is the spine of the diagnosis.
63
+ - `floless-app do workflows.latest-run --input '{"workflowId":"<appId>"}' --json` (in a FloLess
64
+ AI chat: `floless_action_read({ id: 'workflows.latest-run', input: { workflowId: '<appId>' } })`)
65
+ → `data` is the structured trace: `runId`, `status`, `errorNodeId`, `errorMessage`, `events`. This is the spine of the diagnosis.
63
66
  - `GET /api/app/<appId>` → the normalized topology + `.flo` source + each node's `config`
64
67
  (incl. exec `code`). Read the failing node's code; pin `file:line`.
65
68
  - **The app's own capability surface** — the shipped command registry, served by the local server.
@@ -123,8 +126,8 @@ digraph { "health + identify app" -> "read evidence (READ-ONLY)" -> "root-cause
123
126
 
124
127
  | Call | Purpose |
125
128
  |---|---|
126
- | `GET /api/health` | versions + license state |
127
- | `GET /api/latest-run/:id` | **read-only** structured trace of the app's most recent run |
129
+ | `floless-app do app.health` | versions + license state (`data`) |
130
+ | `floless-app do workflows.latest-run` (`{ workflowId }`) | **read-only** structured trace of the app's most recent run (`data`) |
128
131
  | `GET /api/app/:id` | normalized topology + `.flo` source + node config/exec code |
129
132
  | `GET /commands-<surface>.js` | the **shipped** command registry (five modules today — discover them, see step 2) — every declared action, with `label` / `group` / `actsOn` / `risk`; `commands.js` holds the closed vocabularies |
130
133
  | `POST /api/report-issue` | send the composed report through the relay → `{ ok, ref }` |