@floless/app 0.150.0 → 0.151.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.
@@ -1,158 +0,0 @@
1
- # Arc B — floless.app, the UI
2
-
3
- The detail behind Arc B. Walk B1→B7 (or the one section the user picked). Point the user at the
4
- real elements in their browser (floless.app at `http://127.0.0.1:4317`) and, where useful, show the
5
- live state. Keep each section short; check in before moving on. If the app isn't running, ask the
6
- user to start it first.
7
-
8
- Throughout: floless.app is a **thin UI** — it renders AWARE state and triggers `aware` verbs. It
9
- never composes workflows or contains an LLM. FloLess AI Chat relays turns through the local server to
10
- the selected provider runtime; that provider remains the brain.
11
-
12
- ---
13
-
14
- ## B1 · The 3-column window
15
-
16
- The layout is **header / `chat │ canvas │ inspect` / footer**:
17
- - **Left — AI Chat (~340px):** the conversation for this one project or standalone workflow. It keeps
18
- dated history, drafts, attachments, loaded provider skills and model/effort/access settings, and
19
- relays turns to the selected signed-in provider runtime.
20
- - **Center — canvas:** the open workflow's **topology** — nodes and the edges between them, rendered
21
- from the `.flo`. Zoom / fit controls; click a node to inspect it; **star ★** a node to save it as a
22
- reusable Template (B3).
23
- - **Right — inspect (~420px):** details of the selected node (B3).
24
- - **Top-left — the workflow switcher:** pick which installed app is on the canvas. A small dot marks
25
- unsaved edits.
26
-
27
- Have the user pick a workflow from the switcher so there's something real on the canvas to tour.
28
-
29
- Open **Chat settings** and explain its locality statement precisely: project files, chat history,
30
- attachments and Knowledge stay on this computer; messages, images and relevant file content go to the
31
- selected provider service for AI processing; connected integrations contact their services. Desktop
32
- continuation is shown as unavailable unless the exact installed CLI and desktop version has passed the
33
- complete transfer-and-return proof. Never describe that as an offline or on-device model.
34
-
35
- ---
36
-
37
- ## B2 · The gate (Compile → Approve → Run)
38
-
39
- The header carries the run controls and a **state** chip. This is "build once, run forever" (A1)
40
- made visible:
41
-
42
- - **`⎙ Compile`** — freezes the current `.flo` into its **`.lock`**. This *is* "Approve": the lock is
43
- the contract that will run. After any edit, the Run gate **locks** until you Compile again (the
44
- source-hash changed — a "drift").
45
- - **`▶ Run workflow`** — the **real** run: executes the approved app against your live host. Each node
46
- paints progress on the canvas (running → ✓ done / ✗ failed); if the app produces a report, the HTML
47
- Viewer opens with the result. Run always executes the single open workflow against your one live
48
- host — there's no parallel or multi-target run.
49
- - **`Simulate`** — a **composition check**: every node is stubbed from its schema, no host touched.
50
- Great for sanity-checking a workflow's *shape* fast. Caveat to mention: Simulate can't truly run
51
- data-carrying `exec` apps (stubs carry no real values) — for those, use the real Run.
52
- - **state chip** — shows where the gate is (needs compile / ready / running).
53
-
54
- The everyday rhythm: **edit → Compile/Approve → Run**. Run stays disabled on drift until you
55
- re-Compile. That gate is what keeps runs reproducible.
56
-
57
- ---
58
-
59
- ## B3 · Templates, Routines, Tools, Inspect
60
-
61
- The panels and buttons the user will actually click:
62
-
63
- - **Templates (★):** star any node on the canvas — or, inside the Tools library, any command — to
64
- save it as a reusable **Template**. It appears in the template bar and is reusable in **any**
65
- workflow, and persists across projects. The terminal AI is *template-aware*: when a plain-English
66
- request matches a saved Template, it reuses that saved logic instead of rebuilding it.
67
- - **Routines (`⏱ Routines`):** run a workflow **automatically** — on a **schedule** (e.g. weekdays at
68
- 07:00) or on a **trigger** (a live event, e.g. *whenever your Tekla model changes*). Runs happen on
69
- this machine through your live host, exactly like clicking ▶ Run. Authoring path: the
70
- **floless-app-routines** skill (B6).
71
- - **Tools (≡ menu → Tools, or Ctrl+G):** the **Tools library** — every installed AWARE agent, shown
72
- to the user as a *tool*, each command starrable as a Template. Tools you install (A4) show up here.
73
- It's also the entry point to **Graft** (B5). (In FloLess, "Agents" is reserved for delegated
74
- responsibilities; always call the installable AWARE agents **tools** when talking to the user.)
75
- - **Inspect (right panel):** click any node → its details. The tabs surface the node's
76
- **Description / Skill**, its **Code** (the real source — an `exec` node's C#, syntax-highlighted),
77
- and the live **Execution** trace while a run is in flight. A report/viewer node carries a
78
- **"View report ▸"** button that opens the in-app **HTML Viewer** (a sandboxed iframe showing the
79
- last result — load is split from run, so it shows the last report instantly without recomputing).
80
- - **Tweak (✎):** select a node and queue a plain-English change ("also group by assembly"). The
81
- terminal AI picks it up (via **floless-app-bridge**, B6), edits just that one node, and recompiles —
82
- the UI itself never edits the `.flo`.
83
-
84
- ---
85
-
86
- ## B4 · The footer
87
-
88
- The bottom strip shows the **installed AWARE version** and the **floless.app version**.
89
- - On current builds the AWARE version is **live** — it re-stamps if AWARE changes out of band (e.g.
90
- you updated it from the terminal). On older builds it can be a boot-time snapshot, so if it ever
91
- looks off, npm is the source of truth (A2).
92
- - Update affordances live here too: an **app self-update** pill (`↑ Update to v…`) when a newer
93
- floless.app is published, and — on builds that include it — an **`↑ Upgrade AWARE to v…`** pill (the
94
- in-app AWARE update from A2). If you don't see the AWARE pill, your build predates it; the reliable
95
- path is always the CLI (`npm i -g @aware-aeco/cli@latest`).
96
-
97
- ---
98
-
99
- ## B5 · Bake & Graft (the two killer moves)
100
-
101
- A matched pair — the input and output sides of "turn things into tools":
102
-
103
- - **Bake — export a workflow as a tool.** (Reachable from the ≡ menu as **"Bake into
104
- tool"**; the confirm action carries the **⊙ Bake** glyph.) Takes a working multi-node `.flo` and
105
- packages it as a single **callable tool** (an AWARE agent) whose inputs become the tool's parameters. AWARE
106
- reinstalls it with that exposed interface; it then appears in the **Tools library** as one callable
107
- node that other workflows can drop in. (Mechanism: `exposes-as-agent` + `exposed-commands` in the
108
- `.flo`.) Use it to turn a proven workflow into a reusable building block.
109
- - **Graft — import your own software as a tool.** (Reachable from the **Tools** library —
110
- **"⊕ Graft new tool"** — or the ≡ menu as **"Graft into tool"**.) The input-side mirror of Bake. Turn a foreign tool
111
- you already own — a .NET DLL (or a whole folder of them), an OpenAPI spec, a NuGet/npm package, a
112
- COM ProgID, a CLI — into a first-class tool (an AWARE agent) you can compose. The hero case: an in-house Tekla
113
- plugin becomes a headless command you can run across an entire model at 2am. (Mechanism: AWARE's
114
- `aware build agent --from-…`, A3; floless stages a preview of the discovered commands before you
115
- commit.)
116
-
117
- The full arc: **Graft your tool → compose it into a workflow → Bake the workflow → distribute.** That
118
- is how floless.app turns "use the tools we ship" into "any tool you own becomes composable AI
119
- infrastructure." Keep it concept-level here; the deep authoring lives in **floless-app-workflows**.
120
-
121
- ---
122
-
123
- ## B6 · The floless skills (how to drive it from the terminal)
124
-
125
- floless.app ships three skills into the AI terminal — they are how the terminal AI acts on the
126
- user's behalf. When the user wants to *do* something, invoke the matching one:
127
-
128
- - **floless-app-workflows** — build / modify / run `.flo` workflows: the install→validate→compile→run
129
- loop, `exec` nodes (Roslyn C# against a live host), app inputs, the HTML Viewer. The doing-skill for
130
- authoring.
131
- - **floless-app-routines** — set up automatic runs (schedule or trigger) through the Routines API.
132
- - **floless-app-bridge** — pick up what the user did in the UI (a queued **Tweak**, a "use this
133
- Template" request), apply the change to the `.flo`, recompile, and clear the request.
134
-
135
- All three talk to the same local server (port 4317) and preserve the contract: the UI records intent;
136
- the selected provider AI does the real authoring. The user can continue in FloLess AI Chat or use an
137
- external terminal, then watch and approve in the browser.
138
-
139
- ---
140
-
141
- ## B7 · How to run + best practices
142
-
143
- **The everyday loop:** pick a workflow (switcher) → set its inputs (on the input node) →
144
- **`⎙ Compile`/Approve** → **`▶ Run workflow`** → read the result (HTML Viewer, or the Execution tab).
145
- Edit → recompile → run.
146
-
147
- **Habits that keep it good:**
148
- - **Compile after every edit.** Run is gated on a fresh lock — determinism is AWARE's, not the UI's.
149
- - **Trust the real Run, not a clean compile.** `Simulate` checks shape; only a real `▶ Run` proves a
150
- workflow works against the host.
151
- - **Tweak, don't rebuild.** To change one node, select it and **✎ Tweak** — the AI edits just that
152
- node and recompiles.
153
- - **Automate the repeat.** Once a workflow is solid, make it a **Routine** (schedule or trigger).
154
- - **Reuse aggressively.** ★ star nodes/commands as **Templates**; **Bake** proven workflows into
155
- agents; **Graft** your own tools in.
156
- - **Keep AWARE current (A2).** New releases bring new agents and features.
157
- - **Remember who's the brain.** Ask the selected provider AI to build and change things; watch,
158
- approve, and run in the browser. The UI is the window, not the engine.