@floless/app 0.126.1 → 0.126.3

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.
@@ -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.0
5
+ version: 0.3.1
6
6
  ---
7
7
 
8
8
  # floless.app ↔ terminal bridge
@@ -97,7 +97,7 @@ digraph { "GET /api/requests" -> "for each pending" -> "read app .flo + node" ->
97
97
  the user wants to choose which to apply (not just the oldest), use the `floless-app-queue` skill** —
98
98
  it lists the queue in plain English and asks which to process, then routes each pick to the owning
99
99
  authoring skill. Its §2 table is where the whole type→skill routing is written out in prose (the
100
- authority itself is `REQUEST_SKILL` in `web/aware.js`, which that table restates).
100
+ authority itself is `REQUEST_SKILL` in `server/request-instruction.ts`, which that table restates).
101
101
  2. **Locate the app source.** The editable `.flo` is the repo copy `demos/<appId>/<appId>.flo`
102
102
  (preferred — it's version-controlled); the installed copy is `~/.aware/apps/<appId>/<appId>.flo`.
103
103
  Edit the **repo** copy. `GET /api/app/<appId>` returns the parsed nodes + each node's
@@ -131,7 +131,7 @@ resolved by their own POST, and the marker the Dashboard copies says so in its o
131
131
  | `knowledge-organize` | `POST /api/projects/<project>/knowledge/requests/<id>/finish` (or `…/fail`) — after claiming the pass with `…/start` | the lock you took at `…/start` is only reclaimable after `LOCK_STALE_MS` (**10 minutes**), and the leftover `organize.json` leaves the Knowledge pane showing "Organizing…" with Organize **disabled indefinitely** |
132
132
 
133
133
  This is the same per-type rule the UI encodes in `markedInstruction()`'s `clears` branch
134
- (`web/aware.js`) — and the reason `clearAllRequests()` there refuses to include an organize in its
134
+ (`server/request-instruction.ts`) — and the reason `clearAllRequests()` in `web/aware.js` refuses to include an organize in its
135
135
  bulk clear. `floless-app-queue` §4 carries the same table.
136
136
 
137
137
  ## Guardrails
@@ -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 — interviewing the user about what they want, checking that the AWARE agents the workflow needs are installed (installing an available one on consent, or reporting a not-yet-existing agent as an idea), then authoring the .flo node by node and verifying each step with the real toolchain (plain-English descriptions, aware app validate, aware app compile, a real run) before installing it so it appears in the floless.app picker for Compile and Run. 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.1.0
5
+ version: 0.2.0
6
6
  ---
7
7
 
8
8
  # Build a new floless.app workflow from scratch
@@ -64,6 +64,43 @@ Pull the goal out in **one or two questions at a time**, plain English — never
64
64
  Restate it in one sentence and get a nod before authoring. Keep it small — the first version should
65
65
  **run**; extend it after. (Laziness: ship the one-node version that works, then grow it.)
66
66
 
67
+ ### Ask which project's standards apply — then read them
68
+
69
+ **One more question belongs in this interview: "should this follow a particular project's
70
+ standards?"** A firm's own shop standards, RFIs and spec notes live in a Workspace project's
71
+ **knowledge base**, and a workflow built without them encodes the model's defaults instead of the
72
+ user's practice — a plausible bolt spacing rather than *their* bolt spacing.
73
+
74
+ 1. **`GET <base>/api/workspace-projects`** — every live project, with `hasKnowledge` flagging which
75
+ have a published knowledge base. **Do not reach for the approved list**
76
+ (`/api/workspace-projects/approved`): it gates on an approved Model, which is orthogonal to having
77
+ knowledge, so it will hide exactly the project you want.
78
+
79
+ `<base>` is the same floless origin Step 0 used — from the request marker, else
80
+ `transport.rest.base` in `~/.aware/agents/floless-workspace/manifest.yaml`, which the server writes
81
+ with its own real origin. `http://127.0.0.1:4317` is the common default, not a guarantee: the
82
+ server honors `PORT`.
83
+
84
+ > Call the **route**, not the agent. `floless-workspace` is a `rest` agent, and `aware agent
85
+ > invoke` is builtin-only — it refuses a rest transport outright ("compose it in a .flo app and
86
+ > `aware app run` it"). The agent's `list-projects` command is how a **running workflow** reaches
87
+ > the same data; you, authoring, use plain HTTP.
88
+ 2. If the user names one (or exactly one has knowledge and it obviously fits — confirm, don't
89
+ assume), consult it **before authoring any node**, per `floless-app-knowledge`
90
+ § "Consulting the KB from other work (the Feed)" → "Required first step".
91
+ 3. **Bake what it says in as literal values, and cite the page** in the node's plain-English
92
+ Description — e.g. "Spacing per `shop-standard-bolts`." That is what makes the decision traceable
93
+ to the firm's own document instead of looking like your preference.
94
+
95
+ `hasKnowledge: true` only means a knowledge base was published, not that it covers your subject. If
96
+ nothing relevant comes back, **say so and proceed on stated assumptions** — never invent a standard.
97
+ A project with no knowledge is a normal answer, not a blocker.
98
+
99
+ This is compose-time only: what you learn is **baked into the `.flo`**. Never add a node that
100
+ consults a model at run time — AWARE refuses it (`E_APP_RUNTIME_MODEL_FORBIDDEN`), and it would void
101
+ "build once, run forever". (AWARE admits exactly one fenced exception, the curated `vision.extract`,
102
+ which extracts but never decides — it is not a way to reach knowledge at run time.)
103
+
67
104
  ## Step 2 — Agent preflight (before writing any node)
68
105
 
69
106
  A node references an `agent` (e.g. `tekla`, `file`). **Confirm each one exists before authoring it** —
@@ -2,7 +2,7 @@
2
2
  name: floless-app-queue
3
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).
4
4
  metadata:
5
- version: 0.2.1
5
+ version: 0.2.2
6
6
  ---
7
7
 
8
8
  # floless.app queue picker
@@ -60,7 +60,7 @@ map to:
60
60
 
61
61
  The type union itself is `FlolessRequest` in `server/floless-store.ts` — a type in the union with no row
62
62
  above means this table is stale, and the union is right. The routing is `REQUEST_SKILL` in
63
- `web/aware.js`, with the `revision-read` app-aware override right below it; it now covers every member
63
+ `server/request-instruction.ts`, with the `revision-read` app-aware override in `markerFor()` below it; it now covers every member
64
64
  of the union, so if it and this table disagree, the code is right and this table is stale — say so.
65
65
 
66
66
  Note the count of screenshots for requests that carry `snapshots`. If a request has an unfamiliar
@@ -92,7 +92,7 @@ curl -s -X DELETE http://127.0.0.1:4317/api/requests/<id> # the UI's "requests
92
92
  | `knowledge-organize` | `POST /api/projects/<project>/knowledge/requests/<id>/finish` (or `…/fail`) — after claiming the pass with `…/start` | the lock you took at `…/start` is only reclaimable after `LOCK_STALE_MS` (**10 minutes**) — and the leftover `organize.json`, which only finish/fail removes, leaves the Knowledge pane showing "Organizing…" with Organize **disabled indefinitely**, so the user cannot even re-queue |
93
93
 
94
94
  Every other type is applied-then-`DELETE`d as above. This is the same per-type rule the UI encodes in
95
- `markedInstruction()`'s `clears` branch (`web/aware.js`) — check there if a type's ending is unclear.
95
+ `markerFor()`'s `clears` branch (`server/request-instruction.ts`) — check there if a type's ending is unclear.
96
96
 
97
97
  Process the picks in the order the user gave (or oldest-first if they said "all"). Re-run the
98
98
  owning skill's normal verification before reporting each one done.
@@ -2,7 +2,7 @@
2
2
  name: floless-app-tweak-contract
3
3
  description: This skill should be used when there is a pending floless `tweak-contract` request — the user typed an instruction in the Steel Model contract editor and clicked Send (Ask AI). Also triggers on asks like "edit the steel takeoff contract via AI", "adjust the steel takeoff in the contract editor", "the user asked me to change the steel contract", "pick up my tweak-contract request", "update the member profile in the contract". It teaches the host AI to read the request, fetch the current steel.takeoff/v1 contract, apply the instruction (and any pasted screenshots), PUT the updated contract back, and resolve the request.
4
4
  metadata:
5
- version: 0.4.0
5
+ version: 0.5.0
6
6
  ---
7
7
 
8
8
  # Handle a `tweak-contract` request (Slice 2 AI round-trip)
@@ -98,6 +98,20 @@ the server; a 400 means invalid — fix and retry.
98
98
  beam") only resolves with the visual context ("this beam" = the one circled in red on the
99
99
  screenshot).
100
100
 
101
+ **When the request carries a `project`, consult that project's knowledge base too — before you
102
+ decide anything.** `floless-app-knowledge` § "Consulting the KB from other work (the Feed)" →
103
+ "Required first step" owns that rule; follow it there rather than a summary here. The short of it:
104
+ `GET /api/workspace-projects/<project>/knowledge?q=<subject>&app=<appId>` — `<subject>` being what
105
+ you are about to change, url-encoded so it stays one URL token — returns ranked summaries of the
106
+ firm's own standards, shop preferences, RFIs and spec notes, and
107
+ `GET /api/projects/<project>/knowledge/page/<slug>` reads a decisive one in full.
108
+
109
+ This is what makes the edit derive from the **user's** knowledge instead of your priors. A shop
110
+ standard that fixes a bolt spacing, an RFI that governs a connection, a fabricator's stated
111
+ preference — these beat any default you would otherwise reach for. **Cite the `slug` you relied
112
+ on** in your step-6 summary so the user can trace the decision. If nothing relevant matches, say
113
+ so plainly rather than inventing a standard; an empty result is a normal outcome, not a failure.
114
+
101
115
  4. **Produce the edit.** Modify the contract JSON to satisfy the instruction. The bullets below are
102
116
  the **`steel.takeoff/v1`** field map; for `steel.model/v2` work from its own schema per step 2:
103
117
  - Profile changes: update `members[j].profile`; if the new profile resolves in the AISC
@@ -136,7 +150,9 @@ the server; a 400 means invalid — fix and retry.
136
150
  event; the editor picks it up and prompts to reload.
137
151
 
138
152
  6. **Tell the user.** Summarize what you changed (e.g. "Updated W12X26 → W14X30 on 4 beams
139
- in sheet S-202; updated `weights` entry to 30 plf"). Tell them to click **↻ Reload** in the
153
+ in sheet S-202; updated `weights` entry to 30 plf"). **If a knowledge-base page steered the
154
+ change, name it** — "per `shop-standard-bolts`" — so the decision is traceable back to the firm's
155
+ own document rather than looking like your preference. Tell them to click **↻ Reload** in the
140
156
  editor (or accept the reload banner) to see the change. Then resolve the request:
141
157
 
142
158
  `DELETE http://localhost:<port>/api/requests/<id>`
@@ -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, 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 an approved Workspace project's data from a running workflow via the floless-workspace REST seam plus its workspace-project input picker, and the server seams (aware-adapter, app-reader, index).
4
4
  metadata:
5
- version: 0.3.2
5
+ version: 0.4.0
6
6
  ---
7
7
 
8
8
  # Building reusable .flo workflows in floless.app
@@ -316,6 +316,39 @@ Let the user **pick** the project (never type an opaque id): flag the input
316
316
  (by name, searchable) and stores the opaque id. Client-only hint, never sent to `aware`
317
317
  (like `widget: file`); optional `workspaceApp:` pre-filters to one app. See `references/workspace-data.md`.
318
318
 
319
+ ## Author against the project's knowledge, not your priors — COMPOSE TIME
320
+
321
+ The section above is the workflow reading project data **at run time**. This is a different thing:
322
+ **you**, before writing a node, reading the project's **knowledge base** — the firm's own shop
323
+ standards, RFIs and spec notes — so the values you bake in are *theirs*.
324
+
325
+ When work is tied to a Workspace project (the user names one, or a queued request carries one):
326
+
327
+ 1. **`GET <base>/api/workspace-projects`** — every live project, with `hasKnowledge` flagging a
328
+ published knowledge base. **The approved list is not a project list**:
329
+ `/api/workspace-projects/approved` gates on an approved Model, which is orthogonal to knowledge,
330
+ so it will hide the project you want.
331
+
332
+ `<base>` is the floless origin from the **request marker** you were handed, else
333
+ `transport.rest.base` in `~/.aware/agents/floless-workspace/manifest.yaml` — the server writes its
334
+ own real origin there. `http://127.0.0.1:4317` is only the common default: the server honors
335
+ `PORT`, so a hard-coded 4317 talks to the wrong host on any non-default instance.
336
+
337
+ > Call the **route**, not the agent. `floless-workspace` has a `rest` transport and `aware agent
338
+ > invoke` is builtin-only, so it cannot be driven directly from the terminal. Its `list-projects`
339
+ > command is the **run-path** equivalent, for a `.flo` node — see the section above.
340
+ 2. Consult it per `floless-app-knowledge` § "Consulting the KB from other work (the Feed)" →
341
+ "Required first step", which owns the consult-and-cite rule — follow it there.
342
+ 3. **Bake what it says in as literal values and cite the page** in the node's plain-English
343
+ Description ("Spacing per `shop-standard-bolts`"), so the choice is traceable to the firm's
344
+ document rather than to you. If nothing relevant matches, say so — never invent a standard.
345
+
346
+ Compose time only: what you learn is baked into the `.flo`. A model in the run path is refused by
347
+ AWARE (`E_APP_RUNTIME_MODEL_FORBIDDEN`) and would void "build once, run forever" — **outside the one
348
+ curated carve-out**, `vision.extract`, which is admitted only because it is `category: curated` and
349
+ declares `capabilities.runtime-model-extraction: true`, and which extracts but never decides. See
350
+ `references/visual-inputs.md`. Nothing you author for knowledge belongs in that carve-out.
351
+
319
352
  ## How the UI surfaces map to AWARE state
320
353
 
321
354
  - **Code tab** shows the node's real source: `node.config.code` (the exec C#), not lockfile
@@ -11,13 +11,25 @@ Design: `docs/superpowers/specs/2026-07-06-workspaces-slice-6.5-workflow-data-se
11
11
  `floless-workspace` is written to `~/.aware/agents/floless-workspace/manifest.yaml` by the FloLess
12
12
  server **at startup** (`server/workspace-agent-manifest.ts`, `transport.rest.base =
13
13
  http://127.0.0.1:<PORT>`) — so a terminal-only `aware app run` depends on the FloLess server being
14
- up. Two `mode: read` commands:
15
-
16
- - **`list-approved`** — discover durable project ids (`app` optional query filter). Body:
17
- `{ ok, projects: [{ id, name, app, currentApprovedAt, latestApprovedVersion }] }`.
14
+ up. Four `mode: read` commands:
15
+
16
+ - **`list-projects`** — **every live project**, which is what you want when you are choosing a project
17
+ to work against. Body: `{ ok, projects: [{ id, name, app, templateId, hasKnowledge }] }`.
18
+ `hasKnowledge` flags a published knowledge base. **Do not use `list-approved` for discovery** — see
19
+ the warning below.
20
+ - **`list-approved`** — only projects with an approved Model version (`app` optional query filter).
21
+ Body: `{ ok, projects: [{ id, name, app, templateId, currentApprovedAt, latestApprovedVersion }] }`.
22
+ Use it when you specifically need approved data, never as "list the projects".
18
23
  - **`read-approved`** — one project's signed snapshot. Path param `project-id`; query `app` (guard —
19
24
  mismatch 404), `version` (pin; omit = latest approved), `include` (`contract` default, `exports`
20
25
  opt-in), `export-kind`, `export-contents`, `include-paths`, `max-bytes`.
26
+ - **`read-knowledge`** — the project's compiled knowledge base as ranked summaries (its own standards,
27
+ RFIs and spec notes — **not** approved model data). See `floless-app-knowledge`.
28
+
29
+ > **`list-approved` is not a project list.** Approval and knowledge are orthogonal: a project can hold
30
+ > a full knowledge base and no approved Model. On a real profile 13 projects existed, `list-approved`
31
+ > returned 2, and those 2 included a project with no knowledge while omitting one with 25 pages. Reach
32
+ > for `list-projects` unless you actually mean "approved".
21
33
 
22
34
  ```yaml
23
35
  nodes:
@@ -26,7 +26,7 @@ inputs:
26
26
  widget: workspace-project # client-only UI hint: render the approved-project picker instead of a text box (never sent to aware)
27
27
  description: Approved Workspace project to read.
28
28
  requires:
29
- - floless-workspace@0.1.x
29
+ - floless-workspace@0.2.x
30
30
  - tekla@0.1.x
31
31
  layout: linear
32
32
  nodes:
package/dist/web/app.css CHANGED
@@ -2946,6 +2946,8 @@ body {
2946
2946
  .run-state.ready { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
2947
2947
  .run-state.drift { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
2948
2948
  .run-state.uncompiled { color: var(--text-muted); border-color: var(--border-strong); }
2949
+ .run-state.running { color: var(--accent-bright); border-color: var(--accent-dim); }
2950
+ .run-state.cancelling { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
2949
2951
 
2950
2952
  /* Header Stop — the always-reachable escape hatch during a run, regardless of whether
2951
2953
  the HTML Viewer modal is open or closed (#39). Shown only while a run is in flight.
package/dist/web/app.js CHANGED
@@ -1356,6 +1356,10 @@ function dismissFsNudge(remember) {
1356
1356
  if (remember) { try { localStorage.setItem(FS_NUDGE_KEY, '1'); } catch {} }
1357
1357
  }
1358
1358
 
1359
+ // Passive notices yield to an explicit popup action for the rest of this page session. Do not
1360
+ // persist the seen flag: opening a project menu is not the same as dismissing the suggestion.
1361
+ document.addEventListener('floless:passive-overlay-yield', () => dismissFsNudge(false));
1362
+
1359
1363
  function nudgeAlreadySeen() {
1360
1364
  try { return localStorage.getItem(FS_NUDGE_KEY) === '1'; } catch { return false; }
1361
1365
  }