@floless/app 0.123.2 → 0.124.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 +787 -326
- package/dist/schemas/steel.model.v2.schema.json +10 -0
- package/dist/schemas/steel.takeoff.v1.schema.json +1 -1
- package/dist/skills/floless-app-approval/SKILL.md +7 -1
- package/dist/skills/floless-app-queue/SKILL.md +58 -14
- package/dist/skills/floless-app-steel-model/SKILL.md +30 -1
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +21 -3
- package/dist/skills/floless-app-tweak-contract/SKILL.md +55 -18
- package/dist/web/app.js +3 -3
- package/dist/web/aware.js +132 -17
- package/dist/web/index.html +2 -2
- package/dist/web/steel-3d-view.js +345 -14
- package/dist/web/steel-editor.html +807 -35
- package/dist/web/steel-filter.html +64 -8
- package/dist/web/vector-editor.html +15 -1
- package/dist/web/workspaces.js +333 -9
- package/package.json +2 -1
package/dist/web/aware.js
CHANGED
|
@@ -3254,7 +3254,7 @@
|
|
|
3254
3254
|
: sel ? sel.label + (sel.meta ? ` (${sel.meta})` : '') : (f.placeholder || 'Select…');
|
|
3255
3255
|
const rows = opts.map((o) =>
|
|
3256
3256
|
`<div class="wf-option${isOn(o) ? ' selected' : ''}" role="option" data-id="${escapeAttr(String(o.value))}" data-search="${escapeAttr(String(o.search || o.label).toLowerCase())}" tabindex="-1" aria-selected="${isOn(o) ? 'true' : 'false'}"><span class="wf-option-name">${escapeHtml(o.label)}</span>${o.meta ? `<span class="wf-option-meta">${escapeHtml(o.meta)}</span>` : ''}</div>`).join('');
|
|
3257
|
-
ctl = `<div class="wf-combo fm-select"
|
|
3257
|
+
ctl = `<div class="wf-combo fm-select">
|
|
3258
3258
|
<input type="hidden" data-fm="${escapeHtml(f.name)}" value="${escapeAttr(val)}">
|
|
3259
3259
|
<button type="button" class="wf-trigger fm-select-trigger" aria-haspopup="listbox" aria-expanded="false"${disabled ? ' disabled' : ''}>
|
|
3260
3260
|
<span class="wf-trigger-label fm-select-label"${sel ? '' : ' data-empty="1"'}>${escapeHtml(trigLabel)}</span>
|
|
@@ -6361,7 +6361,29 @@
|
|
|
6361
6361
|
function connectSse() {
|
|
6362
6362
|
const es = new EventSource('/api/events');
|
|
6363
6363
|
let reloadTimer = null;
|
|
6364
|
-
|
|
6364
|
+
let everOpened = false;
|
|
6365
|
+
es.onopen = () => {
|
|
6366
|
+
setServerStatus(true);
|
|
6367
|
+
// A RECONNECT MEANS WE MISSED WHATEVER HAPPENED WHILE WE WERE GONE — and this catches up the
|
|
6368
|
+
// PROJECT half of that, not every arm below (workflow imports, contract writes and the rest
|
|
6369
|
+
// still heal on their next event or a reload). These events are
|
|
6370
|
+
// at-most-once — no `Last-Event-ID`, no replay, and `sse.ts` silently drops a client whose
|
|
6371
|
+
// write throws (backpressure, a slept laptop, AV closing the socket) — so a project renamed
|
|
6372
|
+
// or archived during the gap would leave the Workspaces tab addressing a retired id forever,
|
|
6373
|
+
// with the status dot back to green telling the user everything is fine. Re-announce on
|
|
6374
|
+
// reconnect only (never the first connect, which has nothing to catch up on) and carry NO
|
|
6375
|
+
// payload: workspaces.js answers an empty event by re-reading the live set, which is exactly
|
|
6376
|
+
// the catch-up question. (Found by review.)
|
|
6377
|
+
if (everOpened) {
|
|
6378
|
+
window.dispatchEvent(new CustomEvent('floless:projects-changed', { detail: {} }));
|
|
6379
|
+
// The SAME catch-up for the other half a live `projects-changed` drives (see that arm): the
|
|
6380
|
+
// open workflow's publication availability turns on project state, so a gap leaves the card
|
|
6381
|
+
// asserting a state that may no longer hold. Re-asking for Workspaces but not for Workflows
|
|
6382
|
+
// would fix one stale surface and leave its sibling. (Found by review round 2.)
|
|
6383
|
+
if (currentId) refreshCurrentWorkflowAvailability().catch(reportErr);
|
|
6384
|
+
}
|
|
6385
|
+
everOpened = true;
|
|
6386
|
+
};
|
|
6365
6387
|
es.onmessage = (e) => {
|
|
6366
6388
|
let m;
|
|
6367
6389
|
try { m = JSON.parse(e.data); } catch { return; }
|
|
@@ -6392,9 +6414,19 @@
|
|
|
6392
6414
|
// RE-APPLIED rather than merely left behind. Nothing self-healed until the user switched
|
|
6393
6415
|
// workflows. Re-read the payload rather than guess at the new state.
|
|
6394
6416
|
if (m.appId === currentId) refreshCurrentWorkflowAvailability().catch(reportErr);
|
|
6395
|
-
} else if (m.type === 'projects-changed'
|
|
6396
|
-
|
|
6397
|
-
|
|
6417
|
+
} else if (m.type === 'projects-changed') {
|
|
6418
|
+
// Relayed as a DOM event for the same reason apps-changed is (see that arm below):
|
|
6419
|
+
// workspaces.js owns the project view and is the only listener. It reconciles the project it
|
|
6420
|
+
// has OPEN when another tab — or the terminal AI — renames or archives it; a rename mints a
|
|
6421
|
+
// new project id, and its step frames carry the old one in `?project=`.
|
|
6422
|
+
//
|
|
6423
|
+
// Relayed UNGATED, unlike the availability refresh under it: `appId` scopes the event to a
|
|
6424
|
+
// workflow, and the open PROJECT is a different question — its app need not be the workflow
|
|
6425
|
+
// this tab happens to be showing.
|
|
6426
|
+
window.dispatchEvent(new CustomEvent('floless:projects-changed', { detail: m }));
|
|
6427
|
+
if (typeof m.appId !== 'string' || m.appId === currentId) {
|
|
6428
|
+
refreshCurrentWorkflowAvailability().catch(reportErr);
|
|
6429
|
+
}
|
|
6398
6430
|
} else if (m.type === 'trace' && m.id === currentId) {
|
|
6399
6431
|
pushTrace(m.event);
|
|
6400
6432
|
if (state.currentTab === 'execution') renderInspect();
|
|
@@ -6718,9 +6750,14 @@
|
|
|
6718
6750
|
|
|
6719
6751
|
// ── reverse channel: record intent for the host AI, copy a paste-ready line ──
|
|
6720
6752
|
function instructionFor(req) {
|
|
6753
|
+
// `t.node` guarded, not assumed: a template saved by an older build (or hand-edited in
|
|
6754
|
+
// templates.json) can carry a name and no node, and reading `.agent` off undefined THREW out of
|
|
6755
|
+
// renderRequests' .map(), so `$list.innerHTML` was never assigned and loadRequests' `catch {}`
|
|
6756
|
+
// ate it — the chip kept counting requests over a list that had silently stopped rendering.
|
|
6721
6757
|
if (req.type === 'use-template' && req.template) {
|
|
6722
6758
|
const t = req.template;
|
|
6723
|
-
|
|
6759
|
+
const n = t.node || {};
|
|
6760
|
+
return `In floless app "${req.appId}", add a node from my saved template "${t.name}" (agent ${n.agent || n.kind || 'unspecified — read the template from GET /api/templates'}${n.command ? ' / ' + n.command : ''}, config ${JSON.stringify(n.config || {})}). Edit the .flo, then run \`aware app compile\`.`;
|
|
6724
6761
|
}
|
|
6725
6762
|
if (req.type === 'tweak') {
|
|
6726
6763
|
const base = `In floless app "${req.appId}", change only node "${req.nodeId}": ${req.instruction}. Edit just that node in the .flo, then run \`aware app compile\`.`;
|
|
@@ -6789,6 +6826,29 @@
|
|
|
6789
6826
|
}
|
|
6790
6827
|
return `In floless project "${req.project}" (app "${req.appId}"), a REVISED drawing set was attached — re-read it into the SAME project as a new version (do NOT create a new project). Follow the floless-app-steel-takeoff skill's mandatory two-phase gate. FIRST, GET /api/contract/${req.appId}?project=${req.project} to read the CURRENT contract, then do the deterministic PyMuPDF steel-filter pass only for the revised drawing set: identify the framing-plan sheets, enumerate drawing elements by layer/thickness/color into contract.filter.sheets/facets, preserve any compatible existing filter selections, send ONLY the pre-read blocks to PUT /api/projects/${req.project}/steel-prepass with { filter } and If-Match: <the ETag from the GET you just did> — never the whole contract, because this project already holds a model and a full PUT would replace its members without review. The verb takes filter, datum and per-sheet { grid, datum_at, datum_ref, control2_at, control2_ref, elevation_in } and refuses everything else by name. A write with no precondition is refused with 428, and If-Match must be the exact ETag — If-Match: * is refused, because this verb patches the document you read. On 412 re-GET, re-apply, and retry rather than repeating the same body. Then STOP and tell me to open Drawings → Steel Filter, review/narrow the steel facets, and Save. Do NOT read members, build the model, open 3D, or POST /revision-read until I explicitly come back after saving the filter. AFTER that saved-filter checkpoint, read members from the saved filter selection, compose the updated steel.takeoff/v1 contract, and PRESERVE each still-present member's id AND its sheet label (mint a NEW id only for a genuinely new member; drop the id of a member the revision deleted) so the version comparison matches members — do NOT renumber the whole model. ${post}${snaps}${note}`;
|
|
6791
6828
|
}
|
|
6829
|
+
// The steel-model editor's "Ask AI" box, and the SAME channel its "insert a detail" flow uses.
|
|
6830
|
+
// Deliberately does NOT name a contract shape: this channel serves both steel.takeoff/v1 and
|
|
6831
|
+
// steel.model/v2 projects, and the stored document's own `type` is the authoritative answer the
|
|
6832
|
+
// AI reads in the GET below. Naming a shape here would send a v2 project's edit at a v1 take-off
|
|
6833
|
+
// — the same failure `contractType` exists to prevent on revision-read, solved one rung cheaper
|
|
6834
|
+
// because this verb re-writes the document it just read rather than composing a new one.
|
|
6835
|
+
if (req.type === 'tweak-contract') {
|
|
6836
|
+
const where = req.project ? `?project=${req.project}` : '';
|
|
6837
|
+
const scope = req.project ? `floless project "${req.project}" (app "${req.appId}")` : `floless app "${req.appId}"`;
|
|
6838
|
+
// The insert flow carries a machine-readable intent + target so the AI creates a new detail
|
|
6839
|
+
// rather than editing a placed one (or vice versa) — absent on an ordinary Ask AI request.
|
|
6840
|
+
const detail = req.intent
|
|
6841
|
+
? `\nThis is an insert-a-detail request: intent "${req.intent}"${req.target && req.target.sheet ? ` on sheet "${req.target.sheet}"` : ''}${req.target && req.target.ids && req.target.ids.length ? `, target id(s) ${req.target.ids.join(', ')}` : ''}.`
|
|
6842
|
+
: '';
|
|
6843
|
+
const snaps = req.snapshots && req.snapshots.length
|
|
6844
|
+
? `\nScreenshot${req.snapshots.length > 1 ? 's' : ''} (read these — they show which member or region "this" means): ${req.snapshots.join(', ')}`
|
|
6845
|
+
: '';
|
|
6846
|
+
return `In ${scope}, edit the steel contract per the floless-app-tweak-contract skill: ${req.instruction || 'apply the requested change'}. ` +
|
|
6847
|
+
`GET /api/contract/${req.appId}${where} first and KEEP its ETag — the document's own \`type\` tells you which shape you are editing, and you write back that SAME shape. ` +
|
|
6848
|
+
`Apply the change, preserving every field you are not changing, then PUT the full document to /api/contract/${req.appId}${where} with If-Match: <that ETag> ` +
|
|
6849
|
+
`(If-None-Match: * only when the GET returned no ETag at all). A blind write is refused with 428; on 412 re-GET, re-apply your edit to the NEW document, and retry rather than repeating the same body. ` +
|
|
6850
|
+
`Writing a tweak is not approval — leave the approval gate to the user.${detail}${snaps}`;
|
|
6851
|
+
}
|
|
6792
6852
|
// The Knowledge step's Organize verb. The lifecycle is SERVER-owned: start claims the organize
|
|
6793
6853
|
// lock and mints the generation dir; finish publishes it and clears this request; fail releases
|
|
6794
6854
|
// the lock. Naming the exact project-scoped routes matters — /api/requests/<id> is NOT the
|
|
@@ -6817,6 +6877,7 @@
|
|
|
6817
6877
|
'use-template': 'floless-app-workflows',
|
|
6818
6878
|
tweak: 'floless-app-workflows',
|
|
6819
6879
|
'ui-customize': 'floless-app-ui',
|
|
6880
|
+
'tweak-contract': 'floless-app-tweak-contract',
|
|
6820
6881
|
rebake: 'floless-app-rebake',
|
|
6821
6882
|
'revision-read': 'floless-app-steel-takeoff',
|
|
6822
6883
|
// The guided-tour ask is picked up by onboarding; the instruction body names the
|
|
@@ -6861,9 +6922,36 @@
|
|
|
6861
6922
|
}
|
|
6862
6923
|
|
|
6863
6924
|
async function copyToClipboard(text) {
|
|
6925
|
+
// Nothing in this app ever legitimately copies an empty string — every caller passes a command
|
|
6926
|
+
// or an instruction body. An empty one means the caller has a hole (a request type with no
|
|
6927
|
+
// instructionFor() arm returns '' from markedInstruction), and writing it would still resolve,
|
|
6928
|
+
// so the user gets a green "Copied" over an empty clipboard. Report the failure instead.
|
|
6929
|
+
if (!text) return false;
|
|
6864
6930
|
try { await navigator.clipboard.writeText(text); return true; } catch { return false; }
|
|
6865
6931
|
}
|
|
6866
6932
|
|
|
6933
|
+
// Copy ONE request, distinguishing the two ways it can fail. `copyToClipboard`'s boolean cannot:
|
|
6934
|
+
// "the clipboard API refused" is worth retrying and is usually a permission, while "this type has
|
|
6935
|
+
// no instruction body" will never copy no matter how often it is clicked and needs a developer.
|
|
6936
|
+
// Reporting the second as the first sends the user to debug the wrong thing — and on the
|
|
6937
|
+
// request-help modal it leaves a Copy button offering a retry that cannot succeed.
|
|
6938
|
+
//
|
|
6939
|
+
// WHICH SURFACES MUST USE THIS: every one whose failure message BLAMES a cause — the row ⧉, the
|
|
6940
|
+
// request-help modal, the revision card. The queue-then-best-effort-copy callers (useTemplate,
|
|
6941
|
+
// tweakNode, requestGuide, requestNewWorkflow, panels.js's customize box) say only "queued, not
|
|
6942
|
+
// copied" and name no cause, so they cannot conflate anything and are deliberately left alone. Add
|
|
6943
|
+
// a new surface that names a cause and it belongs here.
|
|
6944
|
+
async function copyRequest(req) {
|
|
6945
|
+
const line = req ? markedInstruction(req) : '';
|
|
6946
|
+
if (!line) return 'empty';
|
|
6947
|
+
return (await copyToClipboard(line)) ? 'ok' : 'denied';
|
|
6948
|
+
}
|
|
6949
|
+
// Total by construction: a lookup miss here would spread `undefined` into showToast and throw inside
|
|
6950
|
+
// an async onclick — silence, which is worse than the wrong message this exists to replace.
|
|
6951
|
+
const copyFailToast = (res) => (res === 'empty'
|
|
6952
|
+
? ['Nothing to copy — this request has no instruction', 'err']
|
|
6953
|
+
: ['copy failed', 'err']);
|
|
6954
|
+
|
|
6867
6955
|
let requestHelpReq = null;
|
|
6868
6956
|
let requestHelpReturnFocus = null;
|
|
6869
6957
|
function closeRequestHelp({ restoreFocus = true } = {}) {
|
|
@@ -6993,13 +7081,19 @@
|
|
|
6993
7081
|
return;
|
|
6994
7082
|
}
|
|
6995
7083
|
$list.innerHTML = pendingRequests.map((r) => {
|
|
6996
|
-
const label = 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' : 'tweak';
|
|
6997
|
-
const badgeCls = r.type === 'tweak' || r.type === 'ui-customize' || r.type === 'rebake' || r.type === 'revision-read' || r.type === 'knowledge-organize' || r.type === 'knowledge-adjust' ? 'req-type req-type-tweak' : 'req-type';
|
|
7084
|
+
const label = 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';
|
|
7085
|
+
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
|
+
// The insert-a-detail sheet earns a chip because instructionFor() appends its intent sentence at
|
|
7087
|
+
// the END of the body, and .req-instruction is 3-line-clamped — on an ordinary-length Ask AI note
|
|
7088
|
+
// that is exactly the part that gets clipped. One identifying field per chip, as node/input do:
|
|
7089
|
+
// target.ids is a list and stays in the copied instruction.
|
|
6998
7090
|
const target = r.type === 'tweak' && r.nodeId
|
|
6999
7091
|
? ` · node <code>${escapeHtml(r.nodeId)}</code>`
|
|
7000
7092
|
: r.type === 'rebake' && r.inputName
|
|
7001
7093
|
? ` · input <code>${escapeHtml(r.inputName)}</code>`
|
|
7002
|
-
: ''
|
|
7094
|
+
: r.type === 'tweak-contract' && r.target && r.target.sheet
|
|
7095
|
+
? ` · sheet <code>${escapeHtml(r.target.sheet)}</code>`
|
|
7096
|
+
: '';
|
|
7003
7097
|
const when = r.createdAt ? new Date(r.createdAt) : null;
|
|
7004
7098
|
const time = when && !isNaN(when) ? `<span class="req-time">${escapeHtml(nowStamp(when))}</span>` : '';
|
|
7005
7099
|
// A knowledge-organize is resolved by its own finish/fail lifecycle POST. Offering a ✕ here
|
|
@@ -7013,7 +7107,7 @@
|
|
|
7013
7107
|
<div class="req-item">
|
|
7014
7108
|
<div class="req-info">
|
|
7015
7109
|
<div class="req-head"><span class="${badgeCls}">${label}</span> ${r.appId ? `<code>${escapeHtml(r.appId)}</code>` : ''}${target}${time}</div>
|
|
7016
|
-
<div class="req-instruction">${escapeHtml(instructionFor(r))}</div>
|
|
7110
|
+
<div class="req-instruction">${escapeHtml(instructionFor(r)) || 'This request has no instruction, so it can’t be handed to your terminal AI. Clear it and queue it again.'}</div>
|
|
7017
7111
|
${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>` : ''}
|
|
7018
7112
|
</div>
|
|
7019
7113
|
<div class="req-actions">
|
|
@@ -7026,8 +7120,9 @@
|
|
|
7026
7120
|
b.onclick = async () => {
|
|
7027
7121
|
const r = pendingRequests.find((x) => x.id === b.dataset.id);
|
|
7028
7122
|
if (!r) return;
|
|
7029
|
-
const
|
|
7030
|
-
|
|
7123
|
+
const res = await copyRequest(r);
|
|
7124
|
+
if (res === 'ok') showToast('Copied — paste it to your terminal AI', 'ok');
|
|
7125
|
+
else showToast(...copyFailToast(res));
|
|
7031
7126
|
};
|
|
7032
7127
|
});
|
|
7033
7128
|
$list.querySelectorAll('.req-del').forEach((b) => { b.onclick = () => deleteOneRequest(b.dataset.id); });
|
|
@@ -8516,9 +8611,21 @@
|
|
|
8516
8611
|
const $reqCopy = document.getElementById('requests-copy');
|
|
8517
8612
|
if ($reqCopy) $reqCopy.onclick = async () => {
|
|
8518
8613
|
if (!pendingRequests.length) return;
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8614
|
+
// Count what actually made it, not what was in the list. `.filter(Boolean)` silently drops a
|
|
8615
|
+
// request with no instruction body, and reporting pendingRequests.length over that is the
|
|
8616
|
+
// original bug wearing a bulk hat: the user pastes, the AI applies the ones that copied, and the
|
|
8617
|
+
// dropped request never reaches the terminal while the toast said it did.
|
|
8618
|
+
const lines = pendingRequests.map(markedInstruction).filter(Boolean);
|
|
8619
|
+
const dropped = pendingRequests.length - lines.length;
|
|
8620
|
+
if (!lines.length) { showToast('Nothing to copy — none of these requests has an instruction', 'err'); return; }
|
|
8621
|
+
const copied = await copyToClipboard(lines.join('\n\n'));
|
|
8622
|
+
if (!copied) { showToast('copy failed', 'err'); return; }
|
|
8623
|
+
showToast(
|
|
8624
|
+
dropped
|
|
8625
|
+
? `Copied ${lines.length} of ${pendingRequests.length} — ${dropped} had no instruction and ${dropped === 1 ? 'was' : 'were'} skipped`
|
|
8626
|
+
: `Copied ${lines.length} request(s) — paste to your terminal AI`,
|
|
8627
|
+
dropped ? 'warn' : 'ok',
|
|
8628
|
+
);
|
|
8522
8629
|
};
|
|
8523
8630
|
const $requestHelpModal = document.getElementById('request-help-modal');
|
|
8524
8631
|
const $requestHelpOpen = document.getElementById('request-help-open');
|
|
@@ -8531,8 +8638,15 @@
|
|
|
8531
8638
|
if ($requestHelpKeep) $requestHelpKeep.onclick = () => closeRequestHelp();
|
|
8532
8639
|
if ($requestHelpCopy) $requestHelpCopy.onclick = async () => {
|
|
8533
8640
|
if (!requestHelpReq) return;
|
|
8534
|
-
|
|
8535
|
-
|
|
8641
|
+
// Via copyRequest, so an instruction-less type says so rather than "copy failed".
|
|
8642
|
+
const res = await copyRequest(requestHelpReq);
|
|
8643
|
+
const copied = res === 'ok';
|
|
8644
|
+
if (copied) showToast('Copied — paste it to your terminal AI', 'ok');
|
|
8645
|
+
else showToast(...copyFailToast(res));
|
|
8646
|
+
// 'denied' keeps the button — a clipboard permission is worth retrying. 'empty' hides it exactly
|
|
8647
|
+
// as success does: there is no instruction body, so no number of clicks will ever produce one, and
|
|
8648
|
+
// leaving Copy there offers a retry that cannot succeed.
|
|
8649
|
+
if (res === 'empty') $requestHelpCopy.hidden = true;
|
|
8536
8650
|
if (copied) {
|
|
8537
8651
|
$requestHelpCopy.hidden = true;
|
|
8538
8652
|
const $sub = document.getElementById('request-help-sub');
|
|
@@ -8735,6 +8849,7 @@
|
|
|
8735
8849
|
copyToClipboard,
|
|
8736
8850
|
instructionFor,
|
|
8737
8851
|
markedInstruction, // marked (paste-safe) form for clipboard copies — panels.js uses it (#73)
|
|
8852
|
+
copyRequest, // copy ONE request, telling "no instruction body" apart from "clipboard refused"
|
|
8738
8853
|
showRequestQueuedModal,
|
|
8739
8854
|
formModal, // the shared styled prompt/form modal — workspaces.js reuses it (never a native prompt)
|
|
8740
8855
|
// One owner for runtime upgrades. Workspaces may open this surface but must
|
package/dist/web/index.html
CHANGED
|
@@ -876,7 +876,7 @@
|
|
|
876
876
|
<label>Days</label>
|
|
877
877
|
<div class="rtn-days" id="rtn-days"></div>
|
|
878
878
|
</div>
|
|
879
|
-
<div class="modal-field" data-sched="daily weekdays weekly"
|
|
879
|
+
<div class="modal-field" data-sched="daily weekdays weekly">
|
|
880
880
|
<label for="rtn-hour">At (local time)</label>
|
|
881
881
|
<div class="rtn-time">
|
|
882
882
|
<select id="rtn-hour" aria-label="Hour"></select>
|
|
@@ -973,7 +973,7 @@
|
|
|
973
973
|
<div class="modal-title" id="graft-title">Graft into agent</div>
|
|
974
974
|
<div class="modal-sub" id="graft-sub">Point at a DLL, package, or API spec — AWARE reads it and builds an agent you can drop into any workflow.</div>
|
|
975
975
|
<div id="graft-body"></div>
|
|
976
|
-
<div class="modal-actions"
|
|
976
|
+
<div class="modal-actions">
|
|
977
977
|
<button id="graft-back" style="margin-right:auto;" hidden>‹ Back</button>
|
|
978
978
|
<button id="graft-cancel">Cancel</button>
|
|
979
979
|
<button id="graft-primary" class="primary" disabled>Introspect</button>
|