@floless/app 0.124.1 → 0.125.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/floless-server.cjs +190 -76
- package/dist/schemas/steel.model.v2.schema.json +4 -1
- package/dist/skills/floless-app-bridge/SKILL.md +43 -13
- package/dist/skills/floless-app-queue/SKILL.md +2 -2
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +65 -9
- package/dist/web/app.css +136 -11
- package/dist/web/app.js +99 -25
- package/dist/web/aware.js +441 -37
- package/dist/web/index.html +16 -4
- package/dist/web/steel-3d-core.js +29 -0
- package/dist/web/steel-3d-view.js +36 -8
- package/dist/web/steel-editor.html +392 -89
- package/dist/web/steel-model-v2-commands.js +1 -1
- package/dist/web/steel-model-v2-projection.js +1 -1
- package/dist/web/vector-editor.html +43 -1
- package/dist/web/workspaces.js +169 -95
- package/package.json +2 -1
package/dist/web/aware.js
CHANGED
|
@@ -6868,7 +6868,19 @@
|
|
|
6868
6868
|
return `In floless project "${req.project}", reshape the Project Knowledge Base with your floless-app-knowledge skill: ${req.instruction || 'apply the requested change'}. ` +
|
|
6869
6869
|
`Edit the project's wiki notes accordingly, then re-organize so the published generation reflects the change.`;
|
|
6870
6870
|
}
|
|
6871
|
-
|
|
6871
|
+
// No branch matched. Fall back to what the USER typed rather than to nothing.
|
|
6872
|
+
//
|
|
6873
|
+
// Every type in the union has an arm today — 'tweak-contract' was the last one missing and #629
|
|
6874
|
+
// gave it one. This is the floor for the NEXT type added to FlolessRequest before its arm lands,
|
|
6875
|
+
// because of what that gap cost last time: a blank row in the Requests window AND a
|
|
6876
|
+
// markedInstruction() of '', so the ⧉ silently put nothing on the clipboard while still toasting
|
|
6877
|
+
// success. The request was never empty — it carried a real instruction — it was just unreadable
|
|
6878
|
+
// and uncopyable, which reads as noise worth deleting.
|
|
6879
|
+
//
|
|
6880
|
+
// A composed arm is strictly better (it tells the terminal AI the protocol, not just the wish),
|
|
6881
|
+
// so this never competes with one: every arm above returns first. A type that legitimately
|
|
6882
|
+
// carries no instruction still lands on '' here, and the row says so in words.
|
|
6883
|
+
return req.instruction ? String(req.instruction).trim() : '';
|
|
6872
6884
|
}
|
|
6873
6885
|
|
|
6874
6886
|
// Which product skill applies each request type (named in the copied marker so the
|
|
@@ -7033,9 +7045,21 @@
|
|
|
7033
7045
|
}
|
|
7034
7046
|
|
|
7035
7047
|
let pendingRequests = [];
|
|
7048
|
+
// The Workspaces project the Requests window scopes to, pushed by workspaces.js's applyMode()
|
|
7049
|
+
// (null in Workflows mode, or on the Workspaces landing). Non-null ⇒ Workspaces with a project
|
|
7050
|
+
// open, which is why activeRequestScope() can pick between the two modes from this alone.
|
|
7051
|
+
let wsRequestScope = null;
|
|
7052
|
+
let requestScopeAll = false; // the scope tab: false = what's open, true = every queued request
|
|
7053
|
+
let requestQuery = '';
|
|
7036
7054
|
let previousRequestCount = 0;
|
|
7037
7055
|
let previousRequestIds = null;
|
|
7038
7056
|
let reqPulseTimer = null;
|
|
7057
|
+
let revealFlashTimer = null;
|
|
7058
|
+
let revealArriveCleanup = null;
|
|
7059
|
+
// The row still owed a highlight. Survives the list being closed, because a cue the user never saw
|
|
7060
|
+
// has not been delivered — cleared only once it has actually flashed on a visible list, or once the
|
|
7061
|
+
// request it names is gone.
|
|
7062
|
+
let pendingRevealId = null;
|
|
7039
7063
|
async function loadRequests() {
|
|
7040
7064
|
try {
|
|
7041
7065
|
const { requests } = await api('/api/requests');
|
|
@@ -7063,6 +7087,161 @@
|
|
|
7063
7087
|
} catch { /* non-fatal */ }
|
|
7064
7088
|
}
|
|
7065
7089
|
|
|
7090
|
+
// What the Requests window is scoped to right now: the open Workspaces project, else the open
|
|
7091
|
+
// workflow, else nothing (the Workspaces landing / no workflow selected → no filter is offered).
|
|
7092
|
+
function activeRequestScope() {
|
|
7093
|
+
// A Workspaces scope answers for itself, INCLUDING when it says "nothing" ({kind:'none'} —
|
|
7094
|
+
// the landing). Falling through to currentId there would scope the window to a workflow while
|
|
7095
|
+
// the user is looking at project cards: the workflow combo isn't even visible in Workspaces
|
|
7096
|
+
// mode, so the filter would name a surface they can't see. Same inverse-scope trap
|
|
7097
|
+
// workspaces.js's applyMode() documents for the tab title.
|
|
7098
|
+
if (wsRequestScope) return wsRequestScope.kind === 'project' ? wsRequestScope : null;
|
|
7099
|
+
return currentId ? { kind: 'workflow', appId: currentId, label: currentId } : null;
|
|
7100
|
+
}
|
|
7101
|
+
|
|
7102
|
+
/**
|
|
7103
|
+
* Does this queued request belong to what the user has open? (Pure — unit-tested.)
|
|
7104
|
+
*
|
|
7105
|
+
* Three cases, and the middle one is the whole point of the filter:
|
|
7106
|
+
* - A request with NEITHER appId nor project ('ui-customize', 'new-workflow') belongs to no
|
|
7107
|
+
* scope at all, so it is always shown. Hiding it would strand it: it can never match any
|
|
7108
|
+
* scope, and a "New workflow…" you just queued vanishing while the footer counter ticks up
|
|
7109
|
+
* is worse than one extra row.
|
|
7110
|
+
* - A PROJECT scope matches on project id only. A Workspaces tweak-contract carries both a
|
|
7111
|
+
* project and its app, so matching on appId would pull in every OTHER project sharing that
|
|
7112
|
+
* app — six 'steel-model' projects here all bleed into each other.
|
|
7113
|
+
* - A WORKFLOW scope requires `!r.project` for the same reason in reverse: the workflow
|
|
7114
|
+
* `steel-model` is not the Workspaces projects built on it.
|
|
7115
|
+
*/
|
|
7116
|
+
function requestInScope(r, scope) {
|
|
7117
|
+
if (!scope) return true;
|
|
7118
|
+
if (!r) return false;
|
|
7119
|
+
if (!r.appId && !r.project) return true;
|
|
7120
|
+
if (scope.project) return r.project === scope.project;
|
|
7121
|
+
return !r.project && !!scope.appId && r.appId === scope.appId;
|
|
7122
|
+
}
|
|
7123
|
+
|
|
7124
|
+
/** Scope + free-text filter over the queue. `textOf` yields a request's searchable text. (Pure.) */
|
|
7125
|
+
function visibleRequests(list, scope, query, textOf) {
|
|
7126
|
+
const q = String(query || '').trim().toLowerCase();
|
|
7127
|
+
return (list || []).filter((r) => requestInScope(r, scope)
|
|
7128
|
+
&& (!q || String(textOf(r) || '').toLowerCase().includes(q)));
|
|
7129
|
+
}
|
|
7130
|
+
|
|
7131
|
+
/**
|
|
7132
|
+
* WHAT a request belongs to, in the words the user knows it by: the project's name in
|
|
7133
|
+
* Workspaces, the workflow's id in Workflows. (Pure — unit-tested.)
|
|
7134
|
+
*
|
|
7135
|
+
* The project name comes from the server (`projectName` on the request view), because the
|
|
7136
|
+
* request itself only carries the project ID and the id is neither the name nor stable against
|
|
7137
|
+
* a rename. Falls back to the id when the server could resolve no name — a stale id is honest,
|
|
7138
|
+
* an invented name is not. That fallback is reached most often after a RENAME (which mints a new
|
|
7139
|
+
* project id and leaves the queued request on the old one), not a delete; see the note on
|
|
7140
|
+
* requestProjectName in server/index.ts for what the user sees when it happens.
|
|
7141
|
+
*
|
|
7142
|
+
* A project-keyed request must NEVER fall through to appId: every steel-model project carries
|
|
7143
|
+
* `appId: "steel-model"`, so the old head line printed the same word against three unrelated
|
|
7144
|
+
* projects' work. Requests that belong to neither (ui-customize, new-workflow) get a plain-English
|
|
7145
|
+
* stand-in rather than a blank — the row still has to say what it is about.
|
|
7146
|
+
*/
|
|
7147
|
+
function requestOwnerName(r) {
|
|
7148
|
+
if (!r) return '';
|
|
7149
|
+
if (r.project) return r.projectName || r.project;
|
|
7150
|
+
if (r.appId) return r.appId;
|
|
7151
|
+
return r.type === 'ui-customize' ? 'your dashboard' : r.type === 'new-workflow' ? 'a new workflow' : '';
|
|
7152
|
+
}
|
|
7153
|
+
|
|
7154
|
+
// Everything a search should match: the project/workflow the request belongs to, its badge
|
|
7155
|
+
// label, and the instruction the terminal AI would receive.
|
|
7156
|
+
//
|
|
7157
|
+
// `r.instruction` — what the USER actually typed — is searched alongside the composed
|
|
7158
|
+
// instruction, not instead of it. The two usually overlap, but the composed body is only as
|
|
7159
|
+
// complete as instructionFor()'s arms, and a request you can see but cannot find by the words
|
|
7160
|
+
// you wrote in it is the worst kind of search. Same forward-looking floor as the fallback at the
|
|
7161
|
+
// end of instructionFor(): keep this field even though every type has an arm today.
|
|
7162
|
+
//
|
|
7163
|
+
// Both the NAME and the raw ids are searchable: you may know a project as "Cedar Mill Warehouse"
|
|
7164
|
+
// or as the `take-5-6677ee` in its URL, and either should find it.
|
|
7165
|
+
function requestSearchText(r) {
|
|
7166
|
+
return [requestLabel(r), requestOwnerName(r), r.appId, r.project, r.nodeId, r.inputName, r.instruction, instructionFor(r)]
|
|
7167
|
+
.filter(Boolean).join(' ');
|
|
7168
|
+
}
|
|
7169
|
+
|
|
7170
|
+
function requestLabel(r) {
|
|
7171
|
+
return r.type === 'use-template' ? 'template' : r.type === 'ui-customize' ? 'dashboard' : r.type === 'rebake' ? 're-bake' : r.type === 'revision-read' ? 'revision' : r.type === 'guide' ? 'guide' : r.type === 'new-workflow' ? 'new workflow' : r.type === 'knowledge-organize' ? 'organize' : r.type === 'knowledge-adjust' ? 'adjust' : r.type === 'tweak-contract' ? 'contract' : 'tweak';
|
|
7172
|
+
}
|
|
7173
|
+
|
|
7174
|
+
// Escape `text`, wrapping every case-insensitive occurrence of `q` in <mark>. Splits the RAW
|
|
7175
|
+
// string and escapes each piece, so the match offsets stay valid (escaping first would shift
|
|
7176
|
+
// them) and no user text can escape into markup.
|
|
7177
|
+
//
|
|
7178
|
+
// Matches with a case-insensitive RegExp rather than indexOf over a lowercased copy, because
|
|
7179
|
+
// case folding is not length-preserving: 'İ'.toLowerCase() is TWO code units, so every offset
|
|
7180
|
+
// past one would slice the original at the wrong place and garble the text it rendered. The
|
|
7181
|
+
// needle is regex-escaped — a user typing `.` or `(` into the search box is a literal, not a
|
|
7182
|
+
// pattern.
|
|
7183
|
+
function highlightQuery(text, q) {
|
|
7184
|
+
const s = String(text == null ? '' : text);
|
|
7185
|
+
const needle = String(q || '').trim();
|
|
7186
|
+
if (!needle) return escapeHtml(s);
|
|
7187
|
+
const re = new RegExp(needle.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), 'gi');
|
|
7188
|
+
let out = '';
|
|
7189
|
+
let i = 0;
|
|
7190
|
+
for (let m = re.exec(s); m; m = re.exec(s)) {
|
|
7191
|
+
out += `${escapeHtml(s.slice(i, m.index))}<mark>${escapeHtml(m[0])}</mark>`;
|
|
7192
|
+
i = m.index + m[0].length;
|
|
7193
|
+
if (m[0].length === 0) re.lastIndex++; // defensive: an empty match would never advance
|
|
7194
|
+
}
|
|
7195
|
+
return out + escapeHtml(s.slice(i));
|
|
7196
|
+
}
|
|
7197
|
+
|
|
7198
|
+
// The set the window is currently showing — the ONE definition of "these requests", so the
|
|
7199
|
+
// rows and the counts on the scope tabs can never disagree.
|
|
7200
|
+
function shownRequests() {
|
|
7201
|
+
return visibleRequests(pendingRequests, requestScopeAll ? null : activeRequestScope(), requestQuery, requestSearchText);
|
|
7202
|
+
}
|
|
7203
|
+
|
|
7204
|
+
// Exactly what the OPEN window last painted. The bulk actions read THIS, never shownRequests().
|
|
7205
|
+
//
|
|
7206
|
+
// Re-deriving the scope at click time reads module state that changes with no repaint: `loadApps()`
|
|
7207
|
+
// reassigns `currentId` (it falls back to list[0] when the remembered app is gone) and it runs from
|
|
7208
|
+
// the `apps-changed` SSE — so the terminal AI reinstalling a workflow, or another tab deleting one,
|
|
7209
|
+
// silently moves the scope under an open modal. "Clear all" would then delete a set the user was
|
|
7210
|
+
// never shown while the rows and the tab label still named the old one. Before this window could be
|
|
7211
|
+
// scoped, both handlers read `pendingRequests` — the rendered array itself — so a stale `currentId`
|
|
7212
|
+
// was inert; scoping is what promoted it to an input of what a click DELETES.
|
|
7213
|
+
let shownSnapshot = [];
|
|
7214
|
+
|
|
7215
|
+
// The snapshot, re-resolved against the live queue: anything cleared elsewhere since the paint is
|
|
7216
|
+
// dropped rather than re-DELETEd into a 404.
|
|
7217
|
+
function paintedRequests() {
|
|
7218
|
+
const live = new Map(pendingRequests.map((r) => [r.id, r]));
|
|
7219
|
+
return shownSnapshot.map((r) => live.get(r.id)).filter(Boolean);
|
|
7220
|
+
}
|
|
7221
|
+
|
|
7222
|
+
/** Is the window currently narrowing the queue at all? (Pure — unit-tested.) */
|
|
7223
|
+
function requestFilterActive(scopeAll, scope, query) {
|
|
7224
|
+
return (!scopeAll && !!scope) || !!String(query || '').trim();
|
|
7225
|
+
}
|
|
7226
|
+
|
|
7227
|
+
/**
|
|
7228
|
+
* What a bulk clear should actually do. (Pure — unit-tested, because this is the decision that
|
|
7229
|
+
* DELETES.)
|
|
7230
|
+
*
|
|
7231
|
+
* `atomic` fires `DELETE /api/requests`, which wipes the server's whole requests dir — so it is
|
|
7232
|
+
* gated on "no filter is active", NOT on "the counts happened to coincide". A count test is true
|
|
7233
|
+
* for any single-project user whose scope covers the cached queue, which would hand a filtered
|
|
7234
|
+
* clear the delete-everything verb and take out both the requests hidden behind the filter and any
|
|
7235
|
+
* knowledge-organize queued since the paint (404-ing its finish/fail and stranding its lock). The
|
|
7236
|
+
* length check is kept as a second, independent condition, so a stale snapshot also falls to the
|
|
7237
|
+
* per-id loop rather than the atomic verb.
|
|
7238
|
+
*/
|
|
7239
|
+
function bulkClearPlan(painted, all, filterActive) {
|
|
7240
|
+
const keep = painted.filter((r) => r && r.type === 'knowledge-organize');
|
|
7241
|
+
const drop = painted.filter((r) => r && r.type !== 'knowledge-organize');
|
|
7242
|
+
return { atomic: !filterActive && !keep.length && painted.length === all.length, keep, drop };
|
|
7243
|
+
}
|
|
7244
|
+
|
|
7066
7245
|
// The Requests window: every queued change in a list, each copyable + clearable,
|
|
7067
7246
|
// plus copy-all / clear-all. instructionFor() output (which embeds file-derived
|
|
7068
7247
|
// appId/nodeId/instruction) is rendered via textContent-equivalent escaping.
|
|
@@ -7070,30 +7249,77 @@
|
|
|
7070
7249
|
const $list = document.getElementById('requests-list');
|
|
7071
7250
|
const $clear = document.getElementById('requests-clear');
|
|
7072
7251
|
const $copy = document.getElementById('requests-copy');
|
|
7252
|
+
const $search = document.getElementById('requests-search');
|
|
7073
7253
|
if (!$list) return;
|
|
7074
|
-
|
|
7254
|
+
// Search is pointless over an empty queue, and over a single request it is just clutter.
|
|
7255
|
+
// Drop the query WITH the box, and before anything is filtered by it: a hidden filter still
|
|
7256
|
+
// filtering is how a list ends up inexplicably empty (the last two requests clear while a
|
|
7257
|
+
// stale query is still narrowing).
|
|
7258
|
+
if ($search) {
|
|
7259
|
+
$search.hidden = pendingRequests.length < 2;
|
|
7260
|
+
if ($search.hidden && requestQuery) { requestQuery = ''; $search.value = ''; }
|
|
7261
|
+
}
|
|
7262
|
+
const scope = activeRequestScope();
|
|
7263
|
+
const inScope = visibleRequests(pendingRequests, scope, '', requestSearchText);
|
|
7264
|
+
const shown = shownRequests();
|
|
7265
|
+
shownSnapshot = shown; // the bulk actions act on THIS paint — see the note on shownSnapshot
|
|
7266
|
+
const nothingQueued = pendingRequests.length === 0;
|
|
7267
|
+
|
|
7268
|
+
// The scope tabs only earn their space when there is something to scope TO and something
|
|
7269
|
+
// queued to scope. Counts live ON the tabs so requests hidden by the filter are never a
|
|
7270
|
+
// silent omission — "All · 7" beside "Cedar Mill Warehouse · 2" says where the rest went.
|
|
7271
|
+
const $scope = document.getElementById('requests-scope');
|
|
7272
|
+
const $here = document.getElementById('requests-scope-here');
|
|
7273
|
+
const $all = document.getElementById('requests-scope-all');
|
|
7274
|
+
if ($scope) $scope.hidden = !scope || nothingQueued;
|
|
7275
|
+
if (scope && $here && $all) {
|
|
7276
|
+
const kind = scope.kind === 'project' ? 'project' : 'workflow';
|
|
7277
|
+
// The label is the REAL name, so you can see WHICH project you're scoped to — it can
|
|
7278
|
+
// ellipsize, which is why the tip repeats it in full rather than describing it generically.
|
|
7279
|
+
$here.innerHTML = `<span class="req-scope-name">${escapeHtml(scope.label)}</span><span class="req-scope-n">· ${inScope.length}</span>`;
|
|
7280
|
+
$here.setAttribute('data-tip', `Only what's queued for the ${kind} you have open — ${scope.label}`);
|
|
7281
|
+
$all.innerHTML = `<span class="req-scope-name">All requests</span><span class="req-scope-n">· ${pendingRequests.length}</span>`;
|
|
7282
|
+
$all.setAttribute('data-tip', 'Every queued request, including other projects and workflows');
|
|
7283
|
+
$here.classList.toggle('active', !requestScopeAll);
|
|
7284
|
+
$here.setAttribute('aria-selected', String(!requestScopeAll));
|
|
7285
|
+
$all.classList.toggle('active', requestScopeAll);
|
|
7286
|
+
$all.setAttribute('aria-selected', String(requestScopeAll));
|
|
7287
|
+
}
|
|
7288
|
+
|
|
7075
7289
|
// Hide (not just disable) the bulk actions when there's nothing to act on — a
|
|
7076
|
-
// disabled "Clear all"/"Copy all" over an empty list reads as broken UI.
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7290
|
+
// disabled "Clear all"/"Copy all" over an empty list reads as broken UI. They act on
|
|
7291
|
+
// what's SHOWN, so their tooltips say so rather than letting "all" quietly mean "some".
|
|
7292
|
+
const bulkTip = (verb) => (shown.length === pendingRequests.length
|
|
7293
|
+
? `${verb} all ${pendingRequests.length} queued request${pendingRequests.length === 1 ? '' : 's'}`
|
|
7294
|
+
: `${verb} the ${shown.length} request${shown.length === 1 ? '' : 's'} shown here`);
|
|
7295
|
+
if ($clear) { $clear.hidden = shown.length === 0; $clear.setAttribute('data-tip', bulkTip('Clear')); }
|
|
7296
|
+
if ($copy) { $copy.hidden = shown.length === 0; $copy.setAttribute('data-tip', bulkTip('Copy')); }
|
|
7297
|
+
|
|
7298
|
+
if (shown.length === 0) {
|
|
7299
|
+
// Three different nothings, and conflating them is what makes a filter feel broken: an
|
|
7300
|
+
// empty queue, a queue with nothing for THIS project, and a search that missed.
|
|
7301
|
+
const msg = nothingQueued
|
|
7302
|
+
? 'No requests queued. Save a Template or ✎ Tweak a node to send a change to your terminal AI.'
|
|
7303
|
+
: requestQuery.trim()
|
|
7304
|
+
? `No request matches “${escapeHtml(requestQuery.trim())}”.${!requestScopeAll && inScope.length < pendingRequests.length ? ' Try All to search every queued request.' : ''}`
|
|
7305
|
+
: `Nothing queued for ${escapeHtml(scope ? scope.label : 'this')} — ${pendingRequests.length} request${pendingRequests.length === 1 ? '' : 's'} waiting elsewhere. <button type="button" class="req-showall">Show all</button>`;
|
|
7306
|
+
$list.innerHTML = `<div class="empty-state">${msg}</div>`;
|
|
7307
|
+
const $showAll = $list.querySelector('.req-showall');
|
|
7308
|
+
if ($showAll) $showAll.onclick = () => setRequestScopeAll(true);
|
|
7081
7309
|
return;
|
|
7082
7310
|
}
|
|
7083
|
-
$list.innerHTML =
|
|
7084
|
-
const label = r
|
|
7311
|
+
$list.innerHTML = shown.map((r) => {
|
|
7312
|
+
const label = requestLabel(r);
|
|
7085
7313
|
const badgeCls = r.type === 'tweak' || r.type === 'ui-customize' || r.type === 'rebake' || r.type === 'revision-read' || r.type === 'knowledge-organize' || r.type === 'knowledge-adjust' || r.type === 'tweak-contract' ? 'req-type req-type-tweak' : 'req-type';
|
|
7086
|
-
//
|
|
7087
|
-
//
|
|
7088
|
-
//
|
|
7089
|
-
//
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
? ` · sheet <code>${escapeHtml(r.target.sheet)}</code>`
|
|
7096
|
-
: '';
|
|
7314
|
+
// One name, and only the name. The node/input/sheet chips that used to sit here ("· node
|
|
7315
|
+
// render") are already spelled out in the instruction body right below, so they cost a line
|
|
7316
|
+
// of chrome to repeat what the sentence underneath says in English.
|
|
7317
|
+
//
|
|
7318
|
+
// The sheet chip (#629) was justified by .req-instruction's 3-line clamp: it existed because
|
|
7319
|
+
// an Ask AI note's trailing intent sentence got CLIPPED. This change replaces that clamp with
|
|
7320
|
+
// a scroller, so the whole body — intent sentence included — is readable in place and the
|
|
7321
|
+
// chip has nothing left to rescue.
|
|
7322
|
+
const owner = requestOwnerName(r);
|
|
7097
7323
|
const when = r.createdAt ? new Date(r.createdAt) : null;
|
|
7098
7324
|
const time = when && !isNaN(when) ? `<span class="req-time">${escapeHtml(nowStamp(when))}</span>` : '';
|
|
7099
7325
|
// A knowledge-organize is resolved by its own finish/fail lifecycle POST. Offering a ✕ here
|
|
@@ -7104,10 +7330,10 @@
|
|
|
7104
7330
|
? '<span class="req-lifecycle" data-tip="This clears itself when your terminal AI finishes or fails the organize">finishing in your terminal</span>'
|
|
7105
7331
|
: `<button class="req-del" data-id="${escapeAttr(r.id)}" data-tip="Clear this request">×</button>`;
|
|
7106
7332
|
return `
|
|
7107
|
-
<div class="req-item">
|
|
7333
|
+
<div class="req-item" data-id="${escapeAttr(r.id)}">
|
|
7108
7334
|
<div class="req-info">
|
|
7109
|
-
<div class="req-head"><span class="${badgeCls}">${label}</span> ${
|
|
7110
|
-
<div class="req-instruction">${
|
|
7335
|
+
<div class="req-head"><span class="${badgeCls}">${label}</span> ${owner ? `<span class="req-owner">${highlightQuery(owner, requestQuery)}</span>` : ''}${time}</div>
|
|
7336
|
+
<div class="req-instruction">${highlightQuery(instructionFor(r), requestQuery) || 'This request has no instruction, so it can’t be handed to your terminal AI. Clear it and queue it again.'}</div>
|
|
7111
7337
|
${r.snapshots && r.snapshots.length ? `<div class="req-thumbs">${r.snapshots.map((sp, i) => { const pdf = /\.pdf$/i.test(String(sp)); return `<button type="button" class="req-thumb" data-id="${escapeAttr(r.id)}" data-n="${i}" aria-label="View ${pdf ? 'PDF' : 'screenshot'} ${i + 1}">${pdf ? '<span class="req-thumb-pdf">PDF</span>' : `<img src="/api/requests/${encodeURIComponent(r.id)}/snapshot/${i}" alt="">`}</button>`; }).join('')}</div>` : ''}
|
|
7112
7338
|
</div>
|
|
7113
7339
|
<div class="req-actions">
|
|
@@ -7138,33 +7364,183 @@
|
|
|
7138
7364
|
// Clear-all must never take out a knowledge-organize: the bulk DELETE would 404 its finish/fail and
|
|
7139
7365
|
// strand the organize lock until the stale timeout. The request list can't tell "queued" from
|
|
7140
7366
|
// "already started", so ALL organizes are kept — they clear themselves via their lifecycle.
|
|
7367
|
+
//
|
|
7368
|
+
// It acts on the PAINTED requests, never the whole queue and never a freshly re-derived scope.
|
|
7369
|
+
// Once the window can be scoped to one project, a "Clear all" that reached past the filter would
|
|
7370
|
+
// delete other projects' queued work the user cannot even see.
|
|
7141
7371
|
async function clearAllRequests() {
|
|
7142
|
-
|
|
7143
|
-
|
|
7372
|
+
const painted = paintedRequests();
|
|
7373
|
+
if (!painted.length) return;
|
|
7374
|
+
const filterActive = requestFilterActive(requestScopeAll, activeRequestScope(), requestQuery);
|
|
7375
|
+
const { atomic, keep, drop } = bulkClearPlan(painted, pendingRequests, filterActive);
|
|
7144
7376
|
try {
|
|
7145
|
-
if (
|
|
7146
|
-
await api('/api/requests', { method: 'DELETE' }); // nothing lifecycle-owned — the atomic bulk clear is fine
|
|
7377
|
+
if (atomic) {
|
|
7378
|
+
await api('/api/requests', { method: 'DELETE' }); // no filter, nothing lifecycle-owned — the atomic bulk clear is fine
|
|
7147
7379
|
} else {
|
|
7148
|
-
const drop = pendingRequests.filter((r) => r && r.type !== 'knowledge-organize');
|
|
7149
7380
|
for (const r of drop) await api(`/api/requests/${encodeURIComponent(r.id)}`, { method: 'DELETE' });
|
|
7150
7381
|
}
|
|
7151
7382
|
await loadRequests();
|
|
7152
7383
|
renderRequests();
|
|
7153
7384
|
showToast(
|
|
7154
7385
|
keep.length
|
|
7155
|
-
? `Cleared
|
|
7156
|
-
:
|
|
7386
|
+
? `Cleared ${drop.length} request${drop.length === 1 ? '' : 's'} — kept ${keep.length} in-progress organize${keep.length === 1 ? '' : 's'}`
|
|
7387
|
+
: atomic
|
|
7388
|
+
? 'Cleared all requests'
|
|
7389
|
+
: `Cleared ${drop.length} request${drop.length === 1 ? '' : 's'} shown here`,
|
|
7157
7390
|
'ok',
|
|
7158
7391
|
);
|
|
7159
7392
|
} catch (e) { reportErr(e); }
|
|
7160
7393
|
}
|
|
7394
|
+
// Switch the scope tab (or the empty state's "Show all") and repaint.
|
|
7395
|
+
function setRequestScopeAll(all) {
|
|
7396
|
+
requestScopeAll = !!all;
|
|
7397
|
+
renderRequests();
|
|
7398
|
+
}
|
|
7161
7399
|
// Re-fetch before showing: there is no server `request-added` broadcast, so a request queued in
|
|
7162
7400
|
// another tab (or by the Knowledge step) would otherwise render from a stale cache.
|
|
7163
|
-
async function openRequests() {
|
|
7401
|
+
async function openRequests(targetId) {
|
|
7402
|
+
// Open on the scope + a clear search every time. A stuck "All" (or a leftover query) from a
|
|
7403
|
+
// previous visit would silently answer a different question than the one just asked.
|
|
7404
|
+
requestScopeAll = false;
|
|
7405
|
+
requestQuery = '';
|
|
7406
|
+
const $search = document.getElementById('requests-search');
|
|
7407
|
+
if ($search) $search.value = '';
|
|
7164
7408
|
document.getElementById('requests-modal').classList.add('show');
|
|
7165
7409
|
renderRequests(); // paint the cache immediately — no empty flash
|
|
7410
|
+
// Scroll off the CACHED paint, before the refetch. Gating the reveal on `/api/requests` means an
|
|
7411
|
+
// arbitrarily slow response leaves the list sitting at the top — precisely the state this feature
|
|
7412
|
+
// exists to prevent — and then jumping a beat later. Measured land-times ran 125ms to 1738ms, and
|
|
7413
|
+
// in one batch three of four opens had not revealed at all after 4s because the fetch had not
|
|
7414
|
+
// resolved. A long queue is both when the fetch is slowest (a thumbnail request per snapshot row
|
|
7415
|
+
// competes with it over HTTP/1.1's six connections) and when being at the top hurts most.
|
|
7416
|
+
// Scroll only: the flash belongs to the authoritative paint below, or the cached one would flash a
|
|
7417
|
+
// row the refresh is about to replace.
|
|
7418
|
+
revealRequestRow(targetId, true /* scrollOnly */);
|
|
7166
7419
|
await loadRequests();
|
|
7420
|
+
// NOTHING here may touch requestScopeAll. Scoping the window to what you have open is a
|
|
7421
|
+
// deliberate decision (#633), and revealing a row is not a licence to override it: a reveal that
|
|
7422
|
+
// widened would answer a different question than the one asked, and the destructive verb is
|
|
7423
|
+
// downstream — `bulkClearPlan` reads the painted set, and when that set is the whole queue
|
|
7424
|
+
// "Clear all" takes the atomic DELETE /api/requests across every project. If the row we were
|
|
7425
|
+
// asked for is out of scope it simply is not revealed; the user's own scope tab stays the truth.
|
|
7167
7426
|
renderRequests(); // then reconcile with the truth
|
|
7427
|
+
revealRequestRow(targetId); // …then put the row the user came for in view
|
|
7428
|
+
}
|
|
7429
|
+
|
|
7430
|
+
// The list is oldest-first (a contract two shipped skills document, and the order Copy all
|
|
7431
|
+
// concatenates in), so the request a user just queued is at the BOTTOM — measured off-screen past
|
|
7432
|
+
// about six entries. Both entry points therefore have to scroll, but they want different things:
|
|
7433
|
+
// "Open Requests" comes from the just-queued modal and means THAT row, while the requests chip is a
|
|
7434
|
+
// general "show me my queue" and simply wants the freshest activity in view.
|
|
7435
|
+
//
|
|
7436
|
+
// The chip scrolls too, rather than being left alone as "not the reported bug", because
|
|
7437
|
+
// showRequestQueuedModal has exactly one caller — the drawing-attach flow. Every other way to queue
|
|
7438
|
+
// something (the steel editor's Ask AI, ✎ Tweak, use-template) reports inline and never opens that
|
|
7439
|
+
// modal, so for those the chip is the ONLY route to the row you just created.
|
|
7440
|
+
//
|
|
7441
|
+
// targetId is not the same as "the last row": another tab, a poll, or a knowledge-organize can queue
|
|
7442
|
+
// something between the modal opening and the click, and then the last row is somebody else's.
|
|
7443
|
+
function revealRequestRow(targetId, scrollOnly) {
|
|
7444
|
+
const $list = document.getElementById('requests-list');
|
|
7445
|
+
if (!$list) return;
|
|
7446
|
+
const rows = Array.from($list.querySelectorAll('.req-item'));
|
|
7447
|
+
if (!rows.length) return;
|
|
7448
|
+
// An untargeted open (the chip) adopts a target still owed a highlight: closing the list before it
|
|
7449
|
+
// landed leaves pendingRevealId set, and the reopen — whenever it comes — is where the cue is
|
|
7450
|
+
// finally due. Consumed only once it has actually been SHOWN, so it cannot be spent invisibly.
|
|
7451
|
+
const wanted = targetId || pendingRevealId;
|
|
7452
|
+
const target = wanted ? rows.find((el) => el.dataset.id === wanted) : null;
|
|
7453
|
+
// The cached pass positions the list and touches NO state: it must not consume an owed cue, retire
|
|
7454
|
+
// one, or cancel a pending arrival on the strength of a paint that is about to be replaced.
|
|
7455
|
+
if (!scrollOnly) {
|
|
7456
|
+
// Stop owing a highlight for a request that is no longer in the queue at all — applied or cleared
|
|
7457
|
+
// while the list was closed. Without this the variable outlives its meaning, still reading as
|
|
7458
|
+
// "a row is owed" for a row that can never be shown again.
|
|
7459
|
+
if (pendingRevealId && !pendingRequests.some((r) => r && r.id === pendingRevealId)) pendingRevealId = null;
|
|
7460
|
+
// Supersede a reveal still waiting to land ONLY when this one will flash too, so a general
|
|
7461
|
+
// "show me my queue" never cancels a pending "show me THIS row".
|
|
7462
|
+
if (target && revealArriveCleanup) revealArriveCleanup();
|
|
7463
|
+
if (target) pendingRevealId = wanted;
|
|
7464
|
+
}
|
|
7465
|
+
const row = target || rows[rows.length - 1];
|
|
7466
|
+
// Whether a scroll will actually happen has to be decided BEFORE the call: `scroll-behavior:
|
|
7467
|
+
// smooth` makes the offset animate, so reading scrollTop afterwards still reports the old value.
|
|
7468
|
+
const lb = $list.getBoundingClientRect(), rb = row.getBoundingClientRect();
|
|
7469
|
+
// A row TALLER than the scrollport that already spans it counts as visible to Blink's `nearest`,
|
|
7470
|
+
// so scrollIntoView does not move and scrollend never fires — without this the flash would sit out
|
|
7471
|
+
// the full 2s guard on a row that was already showing. Rare: it needs a row of wrapped snapshot
|
|
7472
|
+
// thumbnails deeper than the whole list, and the list now flexes against the modal's 86vh cap.
|
|
7473
|
+
const coversPort = rb.top <= lb.top && rb.bottom >= lb.bottom;
|
|
7474
|
+
const willScroll = !coversPort && (rb.top < lb.top || rb.bottom > lb.bottom);
|
|
7475
|
+
// `block: 'nearest'` is a no-op when the row is already in the scrollport, and there is nothing to
|
|
7476
|
+
// scroll when the list doesn't overflow — so neither case needs a visibility check of its own.
|
|
7477
|
+
row.scrollIntoView({ block: 'nearest' });
|
|
7478
|
+
// Flash ONLY a row we actually found. If the request was applied or cleared between queuing and
|
|
7479
|
+
// clicking, we still scroll to the newest — but flashing it would be pointing at the wrong row.
|
|
7480
|
+
if (scrollOnly || !target) return;
|
|
7481
|
+
|
|
7482
|
+
// Start the flash when the row ARRIVES, not when the scroll starts. Chromium's smooth-scroll
|
|
7483
|
+
// duration grows with distance and is not capped near our 1.2s budget: measured on ~72px rows,
|
|
7484
|
+
// 60 rows takes 1065ms to land (leaving ~135ms of highlight) and 200 rows takes 1514ms, so the
|
|
7485
|
+
// animation is over before the row is on screen. That fails along exactly the axis this feature
|
|
7486
|
+
// exists for — the longer the queue, the more the user needs to be told which row is theirs.
|
|
7487
|
+
const flash = () => {
|
|
7488
|
+
// Re-resolve by id rather than reusing the captured node. Between the scroll starting and
|
|
7489
|
+
// `scrollend` firing, anything that re-renders the list — reopening it from the chip, an SSE
|
|
7490
|
+
// refresh — replaces innerHTML, and the captured row is then detached: the class would land on
|
|
7491
|
+
// an orphan and the user would see nothing at all. (Found by QA: open via Open Requests, Escape
|
|
7492
|
+
// at ~150ms, reopen from the chip — no highlight, 3/3.)
|
|
7493
|
+
// Never spend the cue on a hidden list. Hiding the modal mid-scroll stops `scrollend` from ever
|
|
7494
|
+
// firing, so the 2s guard is what runs — and without this it would flash an invisible row, mark
|
|
7495
|
+
// it delivered, and leave the user who reopens a moment later with nothing. Measured: reopen at
|
|
7496
|
+
// 2.5s saw no highlight. Returning early keeps pendingRevealId set, so the reopen shows it.
|
|
7497
|
+
const $modal = document.getElementById('requests-modal');
|
|
7498
|
+
if (!$modal || !$modal.classList.contains('show')) return;
|
|
7499
|
+
const row = Array.from($list.querySelectorAll('.req-item')).find((el) => el.dataset.id === wanted);
|
|
7500
|
+
if (!row) {
|
|
7501
|
+
// Absent from the PAINTED rows is not the same as gone. A search typed during the glide, or a
|
|
7502
|
+
// scope the row does not belong to, hides it while the request is alive and still owed a cue —
|
|
7503
|
+
// only stop owing it when it has genuinely left the queue.
|
|
7504
|
+
if (!pendingRequests.some((r) => r && r.id === wanted)) pendingRevealId = null;
|
|
7505
|
+
return;
|
|
7506
|
+
}
|
|
7507
|
+
pendingRevealId = null; // delivered — and only now, with the row on a visible list
|
|
7508
|
+
row.classList.remove('req-target-flash');
|
|
7509
|
+
void row.offsetWidth; // restart the animation if the same row is revealed twice
|
|
7510
|
+
row.classList.add('req-target-flash');
|
|
7511
|
+
// One timer, cleared before it is replaced — the same shape as reqPulseTimer above. Two reveals
|
|
7512
|
+
// inside 1.2s would otherwise leave the first timeout to fire against a row that is mid-flash
|
|
7513
|
+
// and cut the second short. Clears whichever row is flashing, not a captured node, because a
|
|
7514
|
+
// live re-render may have replaced it.
|
|
7515
|
+
if (revealFlashTimer) clearTimeout(revealFlashTimer);
|
|
7516
|
+
revealFlashTimer = setTimeout(() => {
|
|
7517
|
+
const still = document.querySelector('.req-item.req-target-flash');
|
|
7518
|
+
if (still) still.classList.remove('req-target-flash');
|
|
7519
|
+
revealFlashTimer = null;
|
|
7520
|
+
}, 1200);
|
|
7521
|
+
};
|
|
7522
|
+
if (!willScroll) { flash(); return; } // already in view — scrollend would never fire
|
|
7523
|
+
// `once` is not enough: scrollend does not fire if the scroll is interrupted (the user grabs the
|
|
7524
|
+
// wheel) or if the engine lacks it, and a highlight that never appears is the bug above again.
|
|
7525
|
+
let armed = true;
|
|
7526
|
+
const arrive = () => {
|
|
7527
|
+
if (!armed) return;
|
|
7528
|
+
armed = false;
|
|
7529
|
+
revealArriveCleanup = null;
|
|
7530
|
+
$list.removeEventListener('scrollend', arrive);
|
|
7531
|
+
clearTimeout(arriveGuard);
|
|
7532
|
+
flash();
|
|
7533
|
+
};
|
|
7534
|
+
$list.addEventListener('scrollend', arrive);
|
|
7535
|
+
const arriveGuard = setTimeout(arrive, 2000);
|
|
7536
|
+
// So a second reveal can drop the first: otherwise the earlier scrollend still fires and flashes
|
|
7537
|
+
// its row after the user has already moved on to another one.
|
|
7538
|
+
revealArriveCleanup = () => {
|
|
7539
|
+
armed = false;
|
|
7540
|
+
revealArriveCleanup = null; // so the variable actually means "a reveal is pending"
|
|
7541
|
+
$list.removeEventListener('scrollend', arrive);
|
|
7542
|
+
clearTimeout(arriveGuard);
|
|
7543
|
+
};
|
|
7168
7544
|
}
|
|
7169
7545
|
|
|
7170
7546
|
// ── Agents library: real installed agents + their commands ───────────────────
|
|
@@ -8610,30 +8986,41 @@
|
|
|
8610
8986
|
if ($reqClear) $reqClear.onclick = () => clearAllRequests();
|
|
8611
8987
|
const $reqCopy = document.getElementById('requests-copy');
|
|
8612
8988
|
if ($reqCopy) $reqCopy.onclick = async () => {
|
|
8613
|
-
|
|
8989
|
+
const shown = paintedRequests(); // what was PAINTED, not a re-derived scope — see shownSnapshot
|
|
8990
|
+
if (!shown.length) return;
|
|
8614
8991
|
// Count what actually made it, not what was in the list. `.filter(Boolean)` silently drops a
|
|
8615
|
-
// request with no instruction body, and reporting
|
|
8992
|
+
// request with no instruction body, and reporting the list length over that is the
|
|
8616
8993
|
// original bug wearing a bulk hat: the user pastes, the AI applies the ones that copied, and the
|
|
8617
8994
|
// dropped request never reaches the terminal while the toast said it did.
|
|
8618
|
-
const lines =
|
|
8619
|
-
const dropped =
|
|
8995
|
+
const lines = shown.map(markedInstruction).filter(Boolean);
|
|
8996
|
+
const dropped = shown.length - lines.length;
|
|
8620
8997
|
if (!lines.length) { showToast('Nothing to copy — none of these requests has an instruction', 'err'); return; }
|
|
8621
8998
|
const copied = await copyToClipboard(lines.join('\n\n'));
|
|
8622
8999
|
if (!copied) { showToast('copy failed', 'err'); return; }
|
|
8623
9000
|
showToast(
|
|
8624
9001
|
dropped
|
|
8625
|
-
? `Copied ${lines.length} of ${
|
|
9002
|
+
? `Copied ${lines.length} of ${shown.length} — ${dropped} had no instruction and ${dropped === 1 ? 'was' : 'were'} skipped`
|
|
8626
9003
|
: `Copied ${lines.length} request(s) — paste to your terminal AI`,
|
|
8627
9004
|
dropped ? 'warn' : 'ok',
|
|
8628
9005
|
);
|
|
8629
9006
|
};
|
|
9007
|
+
const $reqScope = document.getElementById('requests-scope');
|
|
9008
|
+
if ($reqScope) $reqScope.onclick = (e) => {
|
|
9009
|
+
const b = e.target.closest('button[data-reqscope]');
|
|
9010
|
+
if (b) setRequestScopeAll(b.dataset.reqscope === 'all');
|
|
9011
|
+
};
|
|
9012
|
+
const $reqSearch = document.getElementById('requests-search');
|
|
9013
|
+
if ($reqSearch) $reqSearch.oninput = () => { requestQuery = $reqSearch.value; renderRequests(); };
|
|
8630
9014
|
const $requestHelpModal = document.getElementById('request-help-modal');
|
|
8631
9015
|
const $requestHelpOpen = document.getElementById('request-help-open');
|
|
8632
9016
|
const $requestHelpKeep = document.getElementById('request-help-keep');
|
|
8633
9017
|
const $requestHelpCopy = document.getElementById('request-help-copy');
|
|
8634
9018
|
if ($requestHelpOpen) $requestHelpOpen.onclick = () => {
|
|
9019
|
+
// Read the id BEFORE closing — this button means "take me to the one I just queued", and only
|
|
9020
|
+
// this entry point knows which that is.
|
|
9021
|
+
const id = requestHelpReq && requestHelpReq.id;
|
|
8635
9022
|
closeRequestHelp({ restoreFocus: false });
|
|
8636
|
-
openRequests();
|
|
9023
|
+
openRequests(id);
|
|
8637
9024
|
};
|
|
8638
9025
|
if ($requestHelpKeep) $requestHelpKeep.onclick = () => closeRequestHelp();
|
|
8639
9026
|
if ($requestHelpCopy) $requestHelpCopy.onclick = async () => {
|
|
@@ -8843,6 +9230,23 @@
|
|
|
8843
9230
|
},
|
|
8844
9231
|
// Refresh the footer requests counter after the Customize box queues a request.
|
|
8845
9232
|
loadRequests,
|
|
9233
|
+
// Which project the Requests window filters to. workspaces.js owns the open project;
|
|
9234
|
+
// aware.js owns the window. Called from applyMode() — the single funnel every path that
|
|
9235
|
+
// changes the open project (open, close, rename, mode switch, boot) already ends at.
|
|
9236
|
+
//
|
|
9237
|
+
// THREE states, not two, and collapsing the last two is a bug: an open project scopes to it;
|
|
9238
|
+
// the Workspaces LANDING has no scope and must not borrow the open workflow's; Workflows mode
|
|
9239
|
+
// passes null and lets aware.js scope to the open workflow. Pass `{}` (or anything without a
|
|
9240
|
+
// project) for the landing, `null` for Workflows mode.
|
|
9241
|
+
//
|
|
9242
|
+
// Repaints an already-open window so switching underneath it can't leave a stale scope on screen.
|
|
9243
|
+
setRequestScope(scope) {
|
|
9244
|
+
wsRequestScope = scope
|
|
9245
|
+
? (scope.project ? { kind: 'project', ...scope } : { kind: 'none' })
|
|
9246
|
+
: null;
|
|
9247
|
+
const $rm = document.getElementById('requests-modal');
|
|
9248
|
+
if ($rm && $rm.classList.contains('show')) renderRequests();
|
|
9249
|
+
},
|
|
8846
9250
|
refreshCurrentWorkflow() {
|
|
8847
9251
|
return refreshCurrentWorkflowAvailability();
|
|
8848
9252
|
},
|
package/dist/web/index.html
CHANGED
|
@@ -33,12 +33,16 @@
|
|
|
33
33
|
</span>
|
|
34
34
|
<span class="name">FloLess</span>
|
|
35
35
|
</div>
|
|
36
|
-
<!-- Top-level mode switch (
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
<!-- Top-level mode switch (Workspaces = project/document apps, no Run; Workflows = node
|
|
37
|
+
canvas + Run). Segmented control, Ctrl+1/Ctrl+2 — the shortcuts follow POSITION, so
|
|
38
|
+
they swap with the tabs (#623). See docs/superpowers/specs/
|
|
39
|
+
2026-07-03-workspaces-two-mode-shell-design.md.
|
|
40
|
+
Workspaces leads because it is the primary entry point (#623); which mode the app
|
|
41
|
+
OPENS in is unchanged — that is the remembered `floless:mode`, defaulting to
|
|
42
|
+
Workflows. -->
|
|
39
43
|
<div class="mode-switch" id="mode-switch" role="tablist" aria-label="Mode">
|
|
40
|
-
<button type="button" data-mode="workflows" class="active" role="tab" aria-selected="true">Workflows</button>
|
|
41
44
|
<button type="button" data-mode="workspaces" role="tab" aria-selected="false">Workspaces</button>
|
|
45
|
+
<button type="button" data-mode="workflows" class="active" role="tab" aria-selected="true">Workflows</button>
|
|
42
46
|
</div>
|
|
43
47
|
<!-- Workspace view switch (Canvas = the workflow topology; Dashboard = the user's
|
|
44
48
|
custom panels from ~/.floless/ui/extensions.json) moved into the ≡ menu in #149.
|
|
@@ -741,6 +745,14 @@
|
|
|
741
745
|
<div class="modal requests">
|
|
742
746
|
<div class="modal-title">Requests for your terminal AI</div>
|
|
743
747
|
<div class="modal-sub">The UI can’t edit workflows itself — these are the changes it queued for your terminal AI (Claude Code / Codex / OpenCode) to apply. Copy one to paste, or clear ones already handled.</div>
|
|
748
|
+
<!-- Scope + search. The scope row is hidden when nothing is open to scope TO (the
|
|
749
|
+
Workspaces landing, or Workflows with no workflow selected) — a filter with one
|
|
750
|
+
possible answer is noise. Labels/counts are written per-render in aware.js. -->
|
|
751
|
+
<div class="tabs req-scope" id="requests-scope" role="tablist" aria-label="Filter requests by what you have open" hidden>
|
|
752
|
+
<button type="button" data-reqscope="scoped" class="active" role="tab" aria-selected="true" id="requests-scope-here"></button>
|
|
753
|
+
<button type="button" data-reqscope="all" role="tab" aria-selected="false" id="requests-scope-all">All</button>
|
|
754
|
+
</div>
|
|
755
|
+
<input id="requests-search" class="lib-search req-search" type="text" placeholder="Search by project, workflow, or what you asked for" aria-label="Search requests">
|
|
744
756
|
<div class="requests-list" id="requests-list"></div>
|
|
745
757
|
<div class="modal-actions">
|
|
746
758
|
<button id="requests-clear">Clear all</button>
|