@floless/app 0.126.3 → 0.126.5

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-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.2.0
5
+ version: 0.3.0
6
6
  ---
7
7
 
8
8
  # Build a new floless.app workflow from scratch
@@ -91,6 +91,23 @@ user's practice — a plausible bolt spacing rather than *their* bolt spacing.
91
91
  3. **Bake what it says in as literal values, and cite the page** in the node's plain-English
92
92
  Description — e.g. "Spacing per `shop-standard-bolts`." That is what makes the decision traceable
93
93
  to the firm's own document instead of looking like your preference.
94
+ 4. **Record what you built from**, once the workflow is installed and has an `<appId>`:
95
+
96
+ ```
97
+ PUT <base>/api/kb-pin/<appId>
98
+ { "projectId": "<project>",
99
+ "generationId": "<the generation.generationId the feed returned>",
100
+ "pages": [{ "slug": "shop-standard-bolts", "title": "Shop Standard Bolts" }] }
101
+ ```
102
+
103
+ Only the pages you actually relied on (at most 20). The app renders this as "Informed by …" and
104
+ tells the user when that knowledge has changed since.
105
+
106
+ **Send the generation id you READ, not whatever is current when you finish.** If the knowledge
107
+ base is re-organized mid-build, the generation you actually read is still the right thing to
108
+ record and the route accepts it — this is a record of what the workflow was built from, not a
109
+ claim about what is current. Pinning "the latest" instead would record a generation whose
110
+ contents never touched your work.
94
111
 
95
112
  `hasKnowledge: true` only means a knowledge base was published, not that it covers your subject. If
96
113
  nothing relevant comes back, **say so and proceed on stated assumptions** — never invent a standard.
@@ -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.4.0
5
+ version: 0.5.0
6
6
  ---
7
7
 
8
8
  # Building reusable .flo workflows in floless.app
@@ -342,6 +342,25 @@ When work is tied to a Workspace project (the user names one, or a queued reques
342
342
  3. **Bake what it says in as literal values and cite the page** in the node's plain-English
343
343
  Description ("Spacing per `shop-standard-bolts`"), so the choice is traceable to the firm's
344
344
  document rather than to you. If nothing relevant matches, say so — never invent a standard.
345
+ 4. **Record what you built from**, so the app can show it and can warn the user when that knowledge
346
+ later changes:
347
+
348
+ ```
349
+ PUT <base>/api/kb-pin/<appId>
350
+ { "projectId": "<project>",
351
+ "generationId": "<the generation.generationId the feed returned>",
352
+ "pages": [{ "slug": "shop-standard-bolts", "title": "Shop Standard Bolts" }] }
353
+ ```
354
+
355
+ Only the pages you actually relied on (at most 20). Consulting the KB and finding nothing
356
+ relevant is a normal outcome — skip the pin rather than recording an empty list.
357
+
358
+ **Send the generation id you READ, not whatever is current when you finish.** If an Organize pass
359
+ republishes the knowledge base while you are working, the generation you actually read is still
360
+ the correct thing to record, and the route accepts it — the pin is a record of what this workflow
361
+ was built from, not a claim about what is current. The app compares the two itself and tells the
362
+ user when they have diverged. Re-reading the feed to "pin the latest" would record a generation
363
+ whose contents never touched your work, which is the one failure this record exists to prevent.
345
364
 
346
365
  Compose time only: what you learn is baked into the `.flo`. A model in the run path is refused by
347
366
  AWARE (`E_APP_RUNTIME_MODEL_FORBIDDEN`) and would void "build once, run forever" — **outside the one
package/dist/web/app.css CHANGED
@@ -2,6 +2,10 @@
2
2
  /* Block 1: base tokens + full component styling */
3
3
  * { box-sizing: border-box; margin: 0; padding: 0; }
4
4
 
5
+ /* The semantic hidden state must win over every component display declaration.
6
+ Components restore their intended layout by removing the attribute. */
7
+ [hidden] { display: none !important; }
8
+
5
9
  :root {
6
10
  --bg: #070a0f;
7
11
  --surface: #0f141c;
@@ -472,7 +476,8 @@
472
476
  /* fav-bar is already opaque (surface); the notes pill stays translucent by design
473
477
  — both just need to paint ABOVE the panned content (the notes stay readable). */
474
478
  .canvas > .fav-bar,
475
- .canvas > .notes-strip { position: relative; z-index: 6; }
479
+ .canvas > .notes-strip,
480
+ .canvas > .kb-informed { position: relative; z-index: 6; }
476
481
 
477
482
  /* LINEAR */
478
483
  .topology:not(.dag) .agent-card { flex: 0 0 210px; }
@@ -1293,6 +1298,14 @@
1293
1298
  justify-content: center;
1294
1299
  }
1295
1300
  .modal-backdrop.show { display: flex; animation: fade-in 0.15s ease-out; }
1301
+ /* The shared form modal is the one every OTHER modal opens on top of itself — the run options
1302
+ over Requests, the folder over Integrations — so it cannot share their z-index. Every backdrop
1303
+ sitting at 100 means DOM ORDER decides, and #form-modal is declared before #requests-modal:
1304
+ the form painted UNDERNEATH, its buttons swallowed by the .req-item behind it. Not a paint bug
1305
+ you could see, either — the dialog looked fine and simply refused to respond, which is why it
1306
+ is pinned here rather than fixed by moving the element and hoping. Still below toasts (200),
1307
+ which must stay readable over anything. */
1308
+ #form-modal { z-index: 110; }
1296
1309
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
1297
1310
  .modal {
1298
1311
  background: var(--surface);
@@ -1566,6 +1579,12 @@
1566
1579
  .lib-update:hover { color: var(--accent); border-color: var(--accent); }
1567
1580
  .lib-update[aria-busy="true"] { color: var(--text-dim); border-color: var(--border-strong); cursor: default; pointer-events: none; }
1568
1581
  .lib-update .rtn-spinner { width: 11px; height: 11px; border-width: 2px; }
1582
+ /* A background update can finish long after its initiating click. Keep its reason
1583
+ with that agent card, using the existing compact slate surface and a restrained
1584
+ error edge rather than making a transient toast carry essential information. */
1585
+ .lib-update-error { margin: 4px 0 0; padding: 7px 10px; border-left: 2px solid var(--err);
1586
+ background: var(--surface-2); color: var(--text-muted); font-size: 11px; line-height: 1.45; }
1587
+ .lib-update-error strong { color: var(--err); font-weight: 600; }
1569
1588
 
1570
1589
  /* Two-tab Agent Library: the tab bar sits between title and panes; each pane is a
1571
1590
  flex column so its inner .lib-list keeps scrolling within the modal's max-height.
@@ -1795,10 +1814,8 @@
1795
1814
  Warehouse"), and uppercasing those misreads them. Long names ellipsize; the full name
1796
1815
  is on the tab's data-tip. */
1797
1816
  .req-scope { margin: 2px 0 12px; }
1798
- /* `hidden` is a no-op without this. The UA's [hidden]{display:none} loses to .tabs{display:flex}
1799
- on specificity, so `$scope.hidden = true` left the row on screen showing its UNRENDERED
1800
- markup — a blank first tab and the literal "All" placeholder from index.html — whenever there
1801
- was no scope to name (the Workspaces landing, or no workflow open). */
1817
+ /* Component-local backstop for the scope tabs; the base `[hidden]` invariant
1818
+ above is the authoritative semantic hide rule. */
1802
1819
  .req-scope[hidden] { display: none; }
1803
1820
  /* The tab is a flex row, NOT one ellipsizing line, because the count is the trailing child:
1804
1821
  `text-overflow: ellipsis` clips the END, so a long project name would truncate away the very
@@ -1969,6 +1986,119 @@
1969
1986
  padding-left: 10px;
1970
1987
  }
1971
1988
 
1989
+ /* ── Headless runs (#571 slice 3) ─────────────────────────────────────────────
1990
+ floless starting the user's OWN terminal AI on a queued request. Three things this
1991
+ styling is arranged around, all of them honesty constraints rather than taste:
1992
+
1993
+ 1. There is no progress signal — only aliveness. So: a spinner, never a bar and never an
1994
+ elapsed clock, both of which invite reading meaning into a duration that carries none.
1995
+ 2. There is no "ready" state for a runtime. A signed-out CLI resolves to a binary exactly
1996
+ like a working one, so nothing here may be --ok green: green already means "connected and
1997
+ working" on the OAuth cards in the same modal, and borrowing it would assert readiness
1998
+ floless has not earned. Found/not-found are both NEUTRAL.
1999
+ 3. A parked run's question is handed back verbatim and never answered here — so the block
2000
+ that renders it carries no field, no reply box, nothing editable. */
2001
+
2002
+ /* The split: ▶ runs with the current default, ▾ opens the options form. Two buttons sharing one
2003
+ silhouette via joined radii — a real menu popover would need outside-click, focus trapping and
2004
+ its own scroll container for two decisions a themed form already asks better. */
2005
+ /* Component-local backstops retained for the request-help state machine; the
2006
+ base `[hidden]` invariant above protects every future display declaration too. */
2007
+ .run-split[hidden],
2008
+ .request-help-run-status[hidden],
2009
+ .request-help-steps[hidden] { display: none; }
2010
+ .run-split { display: inline-flex; }
2011
+ .run-split-main { border-top-right-radius: 0; border-bottom-right-radius: 0; }
2012
+ .run-split-caret { border-top-left-radius: 0; border-bottom-left-radius: 0; padding: 7px 9px;
2013
+ border-left: 1px solid color-mix(in srgb, var(--bg) 35%, transparent); }
2014
+
2015
+ /* The post-click state of #request-help-modal, standing where the 1-2-3 steps were. */
2016
+ .request-help-run-status { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0;
2017
+ padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); }
2018
+ .rhrs-title { margin: 0; font-size: 12.5px; color: var(--text); line-height: 1.4; }
2019
+ .rhrs-title strong { color: var(--accent-bright); font-weight: 600; }
2020
+ .rhrs-title code { font-family: var(--mono); font-size: 11px; color: var(--text-dim);
2021
+ background: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: 0 4px; }
2022
+ .rhrs-sub { margin: 4px 0 0; font-size: 11px; color: var(--text-dim); line-height: 1.5; }
2023
+
2024
+ /* The row's run/stop glyph — same 26x26 recipe as .req-copy/.req-del so the gutter stays one
2025
+ control language, and NOT a third size just because this one is new. */
2026
+ .req-run, .req-stop {
2027
+ display: inline-flex; align-items: center; justify-content: center; padding: 0;
2028
+ appearance: none; border: 1px solid var(--border-strong); background: transparent;
2029
+ color: var(--text-muted); cursor: pointer; width: 26px; height: 26px;
2030
+ border-radius: 4px; font-size: 11px; line-height: 1;
2031
+ }
2032
+ .req-run:hover { color: var(--accent-bright); border-color: var(--accent-dim); background: var(--accent-soft); }
2033
+ .req-stop:hover { color: var(--err); border-color: var(--err); }
2034
+
2035
+ /* The live status block, under the instruction. */
2036
+ .req-run-status { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--border);
2037
+ border-radius: 6px; background: var(--surface); display: flex; flex-direction: column;
2038
+ gap: 6px; font-size: 11.5px; }
2039
+ .req-run-head { display: flex; align-items: center; gap: 7px; }
2040
+ .req-run-head .rtn-spinner { width: 11px; height: 11px; border-width: 2px; }
2041
+ .req-run-badge { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em;
2042
+ padding: 2px 8px; border-radius: 10px; font-weight: 600; width: fit-content; flex-shrink: 0; }
2043
+ .req-run-badge-active { background: var(--accent-soft); color: var(--accent-bright); }
2044
+ .req-run-badge-warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
2045
+ .req-run-badge-err { background: color-mix(in srgb, var(--err) 15%, transparent); color: var(--err); }
2046
+ .req-run-badge-muted { background: var(--surface-3); color: var(--text-dim); }
2047
+ .req-run-note { margin: 0; color: var(--text-muted); line-height: 1.45; }
2048
+ .req-run-where { font-family: var(--mono); font-size: 10px; color: var(--text-dim);
2049
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2050
+ /* The agent's question, VERBATIM. A quote, deliberately — the warn rule and the italic say
2051
+ "somebody said this to you", where a plain paragraph would read as floless's own prose and a
2052
+ field would read as somewhere to answer. There is nowhere to answer; that is the point. */
2053
+ .req-run-question { margin: 0; color: var(--text); font-style: italic; line-height: 1.45;
2054
+ border-left: 2px solid var(--warn); padding-left: 9px; white-space: pre-wrap; word-break: break-word; }
2055
+ /* The CLI's own tail, collapsed. 4000 chars of raw output expanded by default would swallow the
2056
+ list; <details> is the platform's own disclosure, with only its marker restyled. */
2057
+ .req-run-output { font-size: 11px; }
2058
+ .req-run-output > summary { list-style: none; cursor: pointer; color: var(--text-dim);
2059
+ font-size: 10.5px; user-select: none; }
2060
+ .req-run-output > summary::-webkit-details-marker { display: none; }
2061
+ .req-run-output > summary::before { content: '▸ '; font-size: 9px; }
2062
+ .req-run-output[open] > summary::before { content: '▾ '; }
2063
+ .req-run-output > summary:hover { color: var(--text-muted); }
2064
+ .req-run-output pre {
2065
+ margin: 6px 0 0; padding: 7px 9px; max-height: 120px; overflow: auto;
2066
+ background: var(--bg); border: 1px solid var(--border); border-radius: 4px;
2067
+ font-family: var(--mono); font-size: 10px; line-height: 1.5; color: var(--text-muted);
2068
+ white-space: pre-wrap; word-break: break-word;
2069
+ }
2070
+ /* Why THIS row has no ▶, shown only when a runnable row is on screen beside it (see
2071
+ renderRequests). Metadata at .req-lifecycle's tier — never a greyed-out button. */
2072
+ .req-why-not { margin-top: 6px; font-size: 10.5px; font-style: italic; color: var(--text-dim); line-height: 1.4; }
2073
+
2074
+ /* The Integrations section: which terminal AIs are installed, and the folder runs happen in. */
2075
+ .int-section { border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-2);
2076
+ padding: 12px; margin-bottom: 10px; flex-shrink: 0; }
2077
+ .int-section-title { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
2078
+ .int-section-sub { font-size: 11px; color: var(--text-dim); line-height: 1.5; margin-bottom: 10px; }
2079
+ .int-runtimes { display: flex; flex-direction: column; gap: 6px; }
2080
+ .int-rt { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
2081
+ padding: 8px 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
2082
+ .int-rt.is-default { border-color: var(--accent); background: var(--accent-soft); }
2083
+ .int-rt.is-missing { opacity: 0.72; }
2084
+ .int-rt-name { font-size: 12.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 7px; }
2085
+ .int-rt-pill { font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
2086
+ padding: 1px 6px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-bright); }
2087
+ .int-rt-blurb { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
2088
+ .int-rt-blurb code { font-family: var(--mono); color: var(--text-dim); }
2089
+ .int-rt-where { font-family: var(--mono); font-size: 9.5px; color: var(--text-dim); margin-top: 3px;
2090
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2091
+ /* NEUTRAL on purpose, both of them — see point 2 in this block's header. */
2092
+ .int-rt-badge { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
2093
+ padding: 2px 8px; border-radius: 10px; background: var(--surface-3); color: var(--text-muted); }
2094
+ .int-rt.is-missing .int-rt-badge { color: var(--text-dim); }
2095
+ .int-rt-side { display: flex; align-items: center; gap: 7px; }
2096
+ .int-folder { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
2097
+ display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-muted); }
2098
+ .int-folder-path { font-family: var(--mono); font-size: 10px; color: var(--text); min-width: 0;
2099
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
2100
+ .int-folder-path.is-unset { font-family: var(--ui); font-style: italic; color: var(--text-dim); }
2101
+
1972
2102
  /* "Don't save" in the unsaved-changes dialog: left-pushed, neutral at rest,
1973
2103
  destructive only on hover — same restraint as the Requests "Clear all". */
1974
2104
  #confirm-dont-save { margin-right: auto; }
@@ -3014,6 +3144,54 @@ body {
3014
3144
  /* Collapsed → faint single line; the whole row re-expands on click. */
3015
3145
  .notes-strip.collapsed { background: transparent; border-color: color-mix(in srgb, var(--info) 18%, transparent); cursor: pointer; }
3016
3146
  .notes-strip.collapsed ul { display: none; }
3147
+
3148
+ /* "Informed by …" — which of the firm's own knowledge built this workflow.
3149
+ Box model borrowed from .notes-strip above (same margin/padding/radius, so the two stack as one
3150
+ family) but NEUTRAL, not info-tinted: the notes strip's blue/amber/red ladder means "the compiler
3151
+ has something to say about your nodes", and wearing that costume would make provenance read as a
3152
+ compiler warning about the topology. This is quiet baseline metadata. */
3153
+ .kb-informed {
3154
+ margin: 8px 12px 0;
3155
+ padding: 6px 12px;
3156
+ border: 1px solid var(--border-strong);
3157
+ background: var(--surface-2);
3158
+ border-radius: 6px;
3159
+ color: var(--text-muted);
3160
+ font-size: 12px;
3161
+ line-height: 1.6;
3162
+ /* Wraps rather than scrolls. A pin cites a handful of pages in practice (20 is the store's hard
3163
+ cap, not the shape), so a scroll container would be chrome for a case that does not happen. */
3164
+ display: flex;
3165
+ flex-wrap: wrap;
3166
+ align-items: center;
3167
+ gap: 6px 10px;
3168
+ }
3169
+ .kb-informed[hidden] { display: none; } /* the flex display would otherwise defeat [hidden] */
3170
+ .kb-informed-label { color: var(--text-dim); flex: none; }
3171
+ .kb-informed-pages { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
3172
+ /* A real <button>, so the global button:focus-visible ring already covers keyboard focus. */
3173
+ .kb-page-link {
3174
+ background: none; border: none; padding: 0;
3175
+ font: inherit; color: var(--accent); cursor: pointer;
3176
+ display: inline-flex; align-items: baseline; gap: 3px;
3177
+ }
3178
+ .kb-page-link:hover { color: var(--accent-bright, var(--accent)); text-decoration: underline; }
3179
+ .kb-page-link .kb-page-ico { font-size: 10px; opacity: 0.7; }
3180
+ .kb-informed-sep { color: var(--text-dim); }
3181
+ /* Mirrors .wf-forked-pill's recipe exactly: amber, informational, not a fault. Sits over the canvas,
3182
+ a panel away from the header's run-state pill, so the two ambers never read as one state. */
3183
+ .kb-drift-chip {
3184
+ border: 1px solid var(--warn);
3185
+ background: rgba(251, 191, 36, 0.08);
3186
+ color: var(--warn);
3187
+ font-size: 10px;
3188
+ padding: 1px 8px;
3189
+ border-radius: 999px;
3190
+ line-height: 1.5;
3191
+ white-space: nowrap;
3192
+ cursor: default;
3193
+ }
3194
+ .kb-drift-chip:not([hidden]) { display: inline-flex; align-items: center; }
3017
3195
  .notes-strip.collapsed .notes-head { color: var(--text-dim); margin-bottom: 0; }
3018
3196
  .notes-strip.collapsed .notes-dismiss { display: none; }
3019
3197
  .notes-strip.collapsed .notes-title::after { content: " — show"; color: var(--text-dim); font-weight: 400; }
@@ -3963,7 +4141,7 @@ body.mode-workspaces #menu .menu-item[data-action="graft"],
3963
4141
  body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
3964
4142
  .app.mode-workspaces .topology, .app.mode-workspaces .canvas-toolbar,
3965
4143
  .app.mode-workspaces .hint, .app.mode-workspaces .fav-bar, .app.mode-workspaces .dashboard,
3966
- .app.mode-workspaces .notes-strip, .app.mode-workspaces .find-overlay,
4144
+ .app.mode-workspaces .notes-strip, .app.mode-workspaces .kb-informed, .app.mode-workspaces .find-overlay,
3967
4145
  .app.mode-workspaces #canvas-drop-target, .app.mode-workspaces #wf-templates-stats,
3968
4146
  /* the ws surfaces carry their own headings — hide the canvas's "Canvas · transparency layer" label */
3969
4147
  .app.mode-workspaces .canvas > .panel-label { display:none !important; }