synabun 2.4.3 → 2.4.4
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/CHANGELOG.md +19 -0
- package/README.md +1 -1
- package/docs/browser-extension-bridge.md +61 -32
- package/mcp-server/dist/http.d.ts.map +1 -1
- package/mcp-server/dist/http.js +8 -1
- package/mcp-server/dist/http.js.map +1 -1
- package/mcp-server/dist/services/identity.d.ts +2 -0
- package/mcp-server/dist/services/identity.d.ts.map +1 -1
- package/mcp-server/dist/services/identity.js +4 -0
- package/mcp-server/dist/services/identity.js.map +1 -1
- package/mcp-server/dist/services/memory-client.d.ts +5 -0
- package/mcp-server/dist/services/memory-client.d.ts.map +1 -1
- package/mcp-server/dist/services/memory-client.js +21 -2
- package/mcp-server/dist/services/memory-client.js.map +1 -1
- package/mcp-server/dist/services/memory-writer.d.ts +3 -0
- package/mcp-server/dist/services/memory-writer.d.ts.map +1 -1
- package/mcp-server/dist/services/memory-writer.js +7 -1
- package/mcp-server/dist/services/memory-writer.js.map +1 -1
- package/mcp-server/dist/services/neural-interface.d.ts +11 -1
- package/mcp-server/dist/services/neural-interface.d.ts.map +1 -1
- package/mcp-server/dist/services/neural-interface.js +67 -17
- package/mcp-server/dist/services/neural-interface.js.map +1 -1
- package/mcp-server/dist/services/typesafe-config.d.ts +38 -2
- package/mcp-server/dist/services/typesafe-config.d.ts.map +1 -1
- package/mcp-server/dist/services/typesafe-config.js +260 -8
- package/mcp-server/dist/services/typesafe-config.js.map +1 -1
- package/mcp-server/dist/tools/agent-definition.d.ts +2 -2
- package/mcp-server/dist/tools/agents.d.ts +3 -1
- package/mcp-server/dist/tools/agents.d.ts.map +1 -1
- package/mcp-server/dist/tools/agents.js +11 -6
- package/mcp-server/dist/tools/agents.js.map +1 -1
- package/mcp-server/dist/tools/browser-observe.d.ts +11 -0
- package/mcp-server/dist/tools/browser-observe.d.ts.map +1 -1
- package/mcp-server/dist/tools/browser-observe.js +113 -27
- package/mcp-server/dist/tools/browser-observe.js.map +1 -1
- package/mcp-server/dist/tools/browser-readers.d.ts +6 -0
- package/mcp-server/dist/tools/browser-readers.d.ts.map +1 -0
- package/mcp-server/dist/tools/browser-readers.js +17 -0
- package/mcp-server/dist/tools/browser-readers.js.map +1 -0
- package/mcp-server/dist/tools/remember.d.ts.map +1 -1
- package/mcp-server/dist/tools/remember.js +6 -2
- package/mcp-server/dist/tools/remember.js.map +1 -1
- package/mcp-server/dist/tools/youtube/analytics.d.ts +4 -0
- package/mcp-server/dist/tools/youtube/analytics.d.ts.map +1 -1
- package/mcp-server/dist/tools/youtube/analytics.js +25 -20
- package/mcp-server/dist/tools/youtube/analytics.js.map +1 -1
- package/mcp-server/dist/tools/youtube/helpers.d.ts +5 -1
- package/mcp-server/dist/tools/youtube/helpers.d.ts.map +1 -1
- package/mcp-server/dist/tools/youtube/helpers.js +7 -3
- package/mcp-server/dist/tools/youtube/helpers.js.map +1 -1
- package/mcp-server/dist/tools/youtube/navigate.d.ts +2 -0
- package/mcp-server/dist/tools/youtube/navigate.d.ts.map +1 -1
- package/mcp-server/dist/tools/youtube/navigate.js +5 -3
- package/mcp-server/dist/tools/youtube/navigate.js.map +1 -1
- package/mcp-server/dist/tools/youtube/playlist.js +2 -2
- package/mcp-server/dist/tools/youtube/playlist.js.map +1 -1
- package/mcp-server/dist/tools/youtube/readers.d.ts +4 -0
- package/mcp-server/dist/tools/youtube/readers.d.ts.map +1 -0
- package/mcp-server/dist/tools/youtube/readers.js +15 -0
- package/mcp-server/dist/tools/youtube/readers.js.map +1 -0
- package/mcp-server/package-lock.json +2 -2
- package/mcp-server/package.json +1 -1
- package/mcp-server/src/http.ts +8 -1
- package/mcp-server/src/services/identity.ts +5 -0
- package/mcp-server/src/services/memory-client.ts +32 -12
- package/mcp-server/src/services/memory-writer.ts +5 -2
- package/mcp-server/src/services/neural-interface.ts +65 -18
- package/mcp-server/src/services/typesafe-config.ts +268 -7
- package/mcp-server/src/tools/agents.ts +12 -6
- package/mcp-server/src/tools/browser-observe.ts +117 -28
- package/mcp-server/src/tools/browser-readers.ts +19 -0
- package/mcp-server/src/tools/remember.ts +6 -1
- package/mcp-server/src/tools/youtube/analytics.ts +26 -28
- package/mcp-server/src/tools/youtube/helpers.ts +8 -2
- package/mcp-server/src/tools/youtube/navigate.ts +6 -7
- package/mcp-server/src/tools/youtube/playlist.ts +2 -2
- package/mcp-server/src/tools/youtube/readers.ts +15 -0
- package/neural-interface/i18n/en.json +139 -0
- package/neural-interface/i18n/pt-BR.json +139 -0
- package/neural-interface/lib/assistant-api.js +90 -0
- package/neural-interface/lib/assistant-brains/claude.js +10 -0
- package/neural-interface/lib/assistant-dispatch.js +276 -42
- package/neural-interface/lib/assistant-memory.js +3 -1
- package/neural-interface/lib/assistant-persona.js +6 -0
- package/neural-interface/lib/assistant-router.js +18 -8
- package/neural-interface/lib/assistant-runtime.js +87 -1
- package/neural-interface/lib/assistant-task-prompt.js +15 -2
- package/neural-interface/lib/browser-connection-state.js +20 -0
- package/neural-interface/lib/browser-extension-adapter.js +221 -15
- package/neural-interface/lib/browser-extension-bridge.js +40 -7
- package/neural-interface/lib/browser-extension-folder.js +50 -11
- package/neural-interface/lib/browser-extension-package.js +6 -5
- package/neural-interface/lib/browser-extension-pin.json +15 -13
- package/neural-interface/lib/browser-extension-protocol.js +111 -13
- package/neural-interface/lib/browser-extension-setup.js +7 -5
- package/neural-interface/lib/browser-extension-update.js +104 -0
- package/neural-interface/lib/browser-extraction.js +38 -14
- package/neural-interface/lib/claude-bg-tasks.js +183 -0
- package/neural-interface/lib/claude-history.js +12 -1
- package/neural-interface/lib/confined-fs.js +25 -0
- package/neural-interface/lib/coordination/operations.js +2 -0
- package/neural-interface/lib/db.js +39 -16
- package/neural-interface/lib/editor-completion-opencode.js +2 -2
- package/neural-interface/lib/git-bash/manager.js +28 -3
- package/neural-interface/lib/git-status-runner.js +31 -3
- package/neural-interface/lib/loop-inventory.js +162 -0
- package/neural-interface/lib/loop-stall.js +74 -4
- package/neural-interface/lib/memory-session-capture.js +157 -66
- package/neural-interface/lib/native-loop-providers.js +73 -13
- package/neural-interface/lib/native-loop-runtime.js +3 -0
- package/neural-interface/lib/opencode-protocol.js +4 -2
- package/neural-interface/lib/peer-identity.js +62 -16
- package/neural-interface/lib/session-cache-builder.js +66 -18
- package/neural-interface/lib/session-capture-gate.js +42 -0
- package/neural-interface/lib/session-indexer.js +28 -20
- package/neural-interface/lib/teams/scheduler.js +3 -2
- package/neural-interface/lib/ui-blob-api.js +14 -5
- package/neural-interface/lib/ui-blob-store.js +302 -39
- package/neural-interface/package-lock.json +2 -2
- package/neural-interface/package.json +1 -1
- package/neural-interface/public/extension-setup.html +1 -0
- package/neural-interface/public/shared/assistant/asst-agents-dock.js +4 -0
- package/neural-interface/public/shared/assistant/asst-api.js +42 -0
- package/neural-interface/public/shared/assistant/asst-composer.js +85 -12
- package/neural-interface/public/shared/assistant/asst-panel.js +285 -10
- package/neural-interface/public/shared/assistant/asst-render.js +205 -4
- package/neural-interface/public/shared/assistant/asst-scenes.js +12 -0
- package/neural-interface/public/shared/assistant/asst-sidepanel.js +18 -1
- package/neural-interface/public/shared/assistant/asst-state.js +241 -2
- package/neural-interface/public/shared/assistant/asst-steer.js +294 -0
- package/neural-interface/public/shared/assistant/asst-styles.js +20 -0
- package/neural-interface/public/shared/bg-tasks/bg-tasks-claude.js +147 -0
- package/neural-interface/public/shared/bg-tasks/bg-tasks-model.js +527 -0
- package/neural-interface/public/shared/bg-tasks/bg-tasks-panel.js +161 -0
- package/neural-interface/public/shared/bg-tasks/bg-tasks-view.js +508 -0
- package/neural-interface/public/shared/browser-extension-updates.js +88 -0
- package/neural-interface/public/shared/cp/cp-bg-tasks.js +130 -0
- package/neural-interface/public/shared/extension-setup/es-page.js +18 -11
- package/neural-interface/public/shared/extension-update-view.js +34 -0
- package/neural-interface/public/shared/ocp-v2/ocp-v2-shell-logic.js +8 -4
- package/neural-interface/public/shared/settings/settings-browser-extension.js +10 -4
- package/neural-interface/public/shared/settings/settings-extension-update.js +114 -0
- package/neural-interface/public/shared/styles.css +4 -0
- package/neural-interface/public/shared/ui-claude-panel.js +110 -1
- package/neural-interface/public/shared/ui-notifications.js +23 -4
- package/neural-interface/public/shared/ui-settings-entry.js +6 -0
- package/neural-interface/public/shared/ui-tray-columns.js +9 -2
- package/neural-interface/public/shared/worker-end.js +18 -0
- package/neural-interface/scripts/patch-node-pty.mjs +151 -0
- package/neural-interface/scripts/rebuild-pty.js +10 -0
- package/neural-interface/server.js +483 -280
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// ═══════════════════════════════════════════
|
|
2
2
|
// SynaBun Assistant — composer
|
|
3
3
|
// ═══════════════════════════════════════════
|
|
4
|
-
// Enter sends
|
|
4
|
+
// Enter sends (while a turn runs: steers it, Alt+Enter queues instead; a run
|
|
5
|
+
// targeted from its card is steered), Shift+Enter inserts a newline, Esc aborts the running turn (or
|
|
5
6
|
// closes the slash menu). Attachments: images (paste / file picker / drop),
|
|
6
7
|
// text files, memory chips (drag from the graph), and any other file — the
|
|
7
8
|
// picker and drop upload it to the server and the prompt carries its path
|
|
@@ -13,6 +14,7 @@
|
|
|
13
14
|
|
|
14
15
|
import { matchSlashCommands, SLASH_COMMANDS } from './asst-slash.js';
|
|
15
16
|
import { isLongPaste, typedText } from './asst-automation.js';
|
|
17
|
+
import { composerKeyIntent, steerTranslator, targetChipText } from './asst-state.js'; // steer's boot part (asst-steer.js loads on demand)
|
|
16
18
|
|
|
17
19
|
const TEXT_EXTENSIONS = new Set([
|
|
18
20
|
'txt', 'md', 'js', 'ts', 'jsx', 'tsx', 'json', 'html', 'css', 'scss', 'less', 'xml', 'svg',
|
|
@@ -121,15 +123,22 @@ export function createComposer(hostEl, hooks = {}) {
|
|
|
121
123
|
return params ? String(fallback).replace(/\{(\w+)\}/g, (_, k) => (params[k] != null ? params[k] : `{${k}}`)) : fallback;
|
|
122
124
|
};
|
|
123
125
|
|
|
126
|
+
// The steer sentences (asst-steer.js): the page's `assistant.steer.*`, else its own English / Portuguese.
|
|
127
|
+
const st8 = steerTranslator(hooks.t, typeof hooks.locale === 'function' ? hooks.locale() : hooks.locale);
|
|
124
128
|
const root = el('div', 'asst-composer');
|
|
125
129
|
root.innerHTML = `
|
|
126
130
|
<div class="asst-slash-menu" role="listbox" id="asst-slash-${Math.random().toString(36).slice(2, 8)}" aria-label="${esc(t('assistant.composer.commands', 'Commands'))}" hidden></div>
|
|
127
131
|
<div class="asst-composer-queue" hidden></div>
|
|
132
|
+
<div class="asst-composer-target" hidden></div>
|
|
128
133
|
<div class="asst-composer-attachments" hidden></div>
|
|
129
134
|
<textarea class="asst-input" rows="1" spellcheck="true" aria-label="${esc(t('assistant.composer.aria', 'Message the assistant'))}" aria-autocomplete="list"></textarea>
|
|
130
135
|
<div class="asst-composer-actions">
|
|
131
136
|
<button type="button" class="asst-tb-btn asst-attach" data-tooltip="${esc(t('assistant.composer.attach', 'Attach files'))}" aria-label="${esc(t('assistant.composer.attach', 'Attach files'))}">${ICON_ATTACH}</button>
|
|
132
137
|
<div class="asst-composer-brain"></div>
|
|
138
|
+
<span class="asst-steer-actions" role="group" aria-label="${esc(st8('steer'))}" hidden>
|
|
139
|
+
<button type="button" class="asst-tb-btn asst-queue-btn" data-tooltip="${esc(st8('queueTip'))}" aria-label="${esc(st8('queueTip'))}">${esc(st8('queue'))}</button>
|
|
140
|
+
<button type="button" class="asst-btn asst-steer-btn" data-tooltip="${esc(st8('steerNow'))}" aria-label="${esc(st8('steerNow'))}">${esc(st8('steer'))}</button>
|
|
141
|
+
</span>
|
|
133
142
|
<button type="button" class="asst-send" data-state="empty" aria-label="${esc(t('assistant.composer.send', 'Send'))}">${ICON_SEND}</button>
|
|
134
143
|
</div>
|
|
135
144
|
<input type="file" class="asst-file-input" multiple hidden tabindex="-1">
|
|
@@ -142,6 +151,10 @@ export function createComposer(hostEl, hooks = {}) {
|
|
|
142
151
|
const fileInput = root.querySelector('.asst-file-input');
|
|
143
152
|
const attachmentsEl = root.querySelector('.asst-composer-attachments');
|
|
144
153
|
const queueEl = root.querySelector('.asst-composer-queue');
|
|
154
|
+
const targetEl = root.querySelector('.asst-composer-target');
|
|
155
|
+
const steerActions = root.querySelector('.asst-steer-actions');
|
|
156
|
+
const queueBtn = root.querySelector('.asst-queue-btn');
|
|
157
|
+
const steerBtn = root.querySelector('.asst-steer-btn');
|
|
145
158
|
const slashMenu = root.querySelector('.asst-slash-menu');
|
|
146
159
|
textarea.setAttribute('aria-controls', slashMenu.id);
|
|
147
160
|
|
|
@@ -160,6 +173,10 @@ export function createComposer(hostEl, hooks = {}) {
|
|
|
160
173
|
// A composer under 300px says the short form, so the placeholder never wraps to three lines.
|
|
161
174
|
placeholderShort: t('assistant.composer.placeholderShort', 'Ask SynaBun…'),
|
|
162
175
|
narrow: false,
|
|
176
|
+
// The run the next message steers ({ runId, title, index }), set from its card; null: the Assistant.
|
|
177
|
+
target: null,
|
|
178
|
+
// The server can steer (an older one cannot: Enter while busy queues, as before).
|
|
179
|
+
steerable: hooks.steerable !== false,
|
|
163
180
|
};
|
|
164
181
|
const placeholderNow = () => (state.narrow ? state.placeholderShort : state.placeholder);
|
|
165
182
|
textarea.placeholder = placeholderNow();
|
|
@@ -199,6 +216,42 @@ export function createComposer(hostEl, hooks = {}) {
|
|
|
199
216
|
sendBtn.setAttribute('aria-label', label);
|
|
200
217
|
sendBtn.setAttribute('data-tooltip', label);
|
|
201
218
|
sendBtn.disabled = mode === 'empty';
|
|
219
|
+
// While a turn runs and there is something to send: Steer (Enter) and Queue (Alt+Enter) beside Stop.
|
|
220
|
+
// A targeted run while busy: Steer only (Queue is for the Assistant's own turn). Not busy with a target:
|
|
221
|
+
// the send button itself steers that run.
|
|
222
|
+
const ready = hasContent() && !state.disabled && !waiting;
|
|
223
|
+
steerActions.hidden = !(ready && state.running && (state.steerable || state.target));
|
|
224
|
+
queueBtn.hidden = !!state.target;
|
|
225
|
+
if (state.target && !state.running) {
|
|
226
|
+
const tip = st8('targetLabel', { title: state.target.title || state.target.runId });
|
|
227
|
+
sendBtn.setAttribute('aria-label', tip);
|
|
228
|
+
sendBtn.setAttribute('data-tooltip', tip);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
function renderTarget() {
|
|
233
|
+
const target = state.target;
|
|
234
|
+
if (!target) {
|
|
235
|
+
targetEl.hidden = true;
|
|
236
|
+
targetEl.innerHTML = '';
|
|
237
|
+
if (!state.disabled) textarea.placeholder = placeholderNow();
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
const label = st8('targetLabel', { title: target.title || target.runId });
|
|
241
|
+
targetEl.innerHTML = `<span class="asst-chip static asst-steer-target" data-run-id="${esc(target.runId)}" aria-label="${esc(label)}"><span class="asst-chip-text">${esc(targetChipText(target, st8))}</span><button type="button" class="asst-chip-x" aria-label="${esc(st8('targetClear'))}" data-tooltip="${esc(st8('targetClear'))}">${ICON_X}</button></span>`;
|
|
242
|
+
targetEl.hidden = false;
|
|
243
|
+
if (!state.disabled) textarea.placeholder = st8('targetPlaceholder', { title: target.title || target.runId });
|
|
244
|
+
}
|
|
245
|
+
targetEl.addEventListener('click', (e) => {
|
|
246
|
+
if (!e.target.closest('.asst-chip-x')) return;
|
|
247
|
+
setSteerTarget(null);
|
|
248
|
+
textarea.focus();
|
|
249
|
+
});
|
|
250
|
+
function setSteerTarget(target) {
|
|
251
|
+
state.target = target && target.runId ? { runId: String(target.runId), title: String(target.title || ''), index: target.index ?? null } : null;
|
|
252
|
+
renderTarget();
|
|
253
|
+
updateSendButton();
|
|
254
|
+
hooks.onTargetChange?.(state.target ? { ...state.target } : null);
|
|
202
255
|
}
|
|
203
256
|
|
|
204
257
|
function renderAttachments() {
|
|
@@ -316,7 +369,7 @@ export function createComposer(hostEl, hooks = {}) {
|
|
|
316
369
|
});
|
|
317
370
|
|
|
318
371
|
// ── Submit ──
|
|
319
|
-
async function submit() {
|
|
372
|
+
async function submit(mode = null) {
|
|
320
373
|
if (state.disabled) return;
|
|
321
374
|
if (uploading()) { hooks.onToast?.(t('assistant.composer.waitUploads', 'Wait for the upload to finish, then send')); return; }
|
|
322
375
|
const text = textarea.value.trim();
|
|
@@ -331,20 +384,30 @@ export function createComposer(hostEl, hooks = {}) {
|
|
|
331
384
|
uploads: state.uploads.map(({ name, size, mime, path }) => ({ name, size, mime, path })),
|
|
332
385
|
memories: state.memories.slice(),
|
|
333
386
|
};
|
|
387
|
+
// 'steer' / 'queue' only when the user chose one (Enter or Alt+Enter while busy, the buttons); a target always steers.
|
|
388
|
+
if (state.target) { payload.mode = 'steer'; payload.steerTarget = { ...state.target }; }
|
|
389
|
+
else if (mode === 'steer' || mode === 'queue') payload.mode = mode;
|
|
390
|
+
// What this send took, by reference: the send is awaited, and the user may type or attach the next message meanwhile.
|
|
391
|
+
const took = { images: state.images.slice(), files: state.files.slice(), uploads: state.uploads.slice(), memories: state.memories.slice(), pastes: state.pastes.slice() };
|
|
334
392
|
let outcome;
|
|
335
393
|
try { outcome = await hooks.onSubmit?.(payload); } catch { outcome = false; }
|
|
336
394
|
if (outcome === false) return;
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
state.
|
|
342
|
-
state.
|
|
395
|
+
// Clear only what went: words typed and attachments added while the send was on its way stay for the next one.
|
|
396
|
+
const textWent = textarea.value.trim() === text;
|
|
397
|
+
if (textWent) textarea.value = '';
|
|
398
|
+
const keep = (list, sent) => list.filter((item) => !sent.includes(item));
|
|
399
|
+
state.images = keep(state.images, took.images);
|
|
400
|
+
state.files = keep(state.files, took.files);
|
|
401
|
+
state.uploads = keep(state.uploads, took.uploads);
|
|
402
|
+
state.memories = keep(state.memories, took.memories);
|
|
403
|
+
state.pastes = textWent ? [] : keep(state.pastes, took.pastes);
|
|
343
404
|
renderAttachments();
|
|
344
|
-
closeSlash();
|
|
405
|
+
if (textWent) closeSlash();
|
|
345
406
|
autoResize();
|
|
346
407
|
updateSendButton();
|
|
347
|
-
hooks.onDraftChange?.('');
|
|
408
|
+
hooks.onDraftChange?.(textWent ? '' : textarea.value);
|
|
409
|
+
// One steer per target: the next message goes to the Assistant again unless a card sets it once more.
|
|
410
|
+
if (outcome === 'steered' && state.target) setSteerTarget(null);
|
|
348
411
|
if (outcome === 'queued') hooks.onToast?.(t('assistant.composer.queued', 'Queued — will send when the current turn finishes'));
|
|
349
412
|
}
|
|
350
413
|
|
|
@@ -352,6 +415,9 @@ export function createComposer(hostEl, hooks = {}) {
|
|
|
352
415
|
if (state.running) { hooks.onAbort?.(); return; }
|
|
353
416
|
submit();
|
|
354
417
|
});
|
|
418
|
+
// Focus stays in (and returns to) the composer after either choice.
|
|
419
|
+
steerBtn.addEventListener('click', () => { Promise.resolve(submit('steer')).finally(() => textarea.focus()); });
|
|
420
|
+
queueBtn.addEventListener('click', () => { Promise.resolve(submit('queue')).finally(() => textarea.focus()); });
|
|
355
421
|
|
|
356
422
|
textarea.addEventListener('keydown', (e) => {
|
|
357
423
|
if (state.slashOpen) {
|
|
@@ -366,9 +432,11 @@ export function createComposer(hostEl, hooks = {}) {
|
|
|
366
432
|
}
|
|
367
433
|
if (e.key === 'Escape') { e.preventDefault(); e.stopPropagation(); closeSlash(); return; }
|
|
368
434
|
}
|
|
369
|
-
|
|
435
|
+
// Enter: send, or Steer while a turn runs (or a run is targeted); Alt+Enter while busy: Queue (asst-steer.js).
|
|
436
|
+
const intent = composerKeyIntent(e, { running: state.running, targeted: !!state.target, steerable: state.steerable });
|
|
437
|
+
if (intent) {
|
|
370
438
|
e.preventDefault();
|
|
371
|
-
submit();
|
|
439
|
+
submit(intent === 'send' ? null : intent);
|
|
372
440
|
return;
|
|
373
441
|
}
|
|
374
442
|
if (e.key === 'Escape') {
|
|
@@ -643,6 +711,11 @@ export function createComposer(hostEl, hooks = {}) {
|
|
|
643
711
|
clearAttachments() { abortUploads(); state.images = []; state.files = []; state.uploads = []; state.memories = []; renderAttachments(); },
|
|
644
712
|
setQueue,
|
|
645
713
|
hasContent,
|
|
714
|
+
/** The run the next message steers ({ runId, title, index }), or null for the Assistant. */
|
|
715
|
+
setSteerTarget,
|
|
716
|
+
getSteerTarget: () => (state.target ? { ...state.target } : null),
|
|
717
|
+
/** Whether the server can steer: without it Enter while busy queues, as before. */
|
|
718
|
+
setSteerable(value) { state.steerable = value !== false; updateSendButton(); },
|
|
646
719
|
destroy() { abortUploads(); closeSlash(); resizeObserver?.disconnect(); root.remove(); },
|
|
647
720
|
};
|
|
648
721
|
}
|