🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
fix(ruflo-console): run buttons are primary and visible; the text fields stay in reach; a run that waits on a confirm opens its result
ruv0d0ea7e90b6b
diff --git a/plugins/ruflo-console/hooks/views/devtools.ts b/plugins/ruflo-console/hooks/views/devtools.tsindex e7f4ae9836..00f88815ce 100644--- a/plugins/ruflo-console/hooks/views/devtools.ts+++ b/plugins/ruflo-console/hooks/views/devtools.ts@@ -52,8 +52,9 @@ function entryRow(ctx: Ctx, entry: DevEntry, lead: number): RenderElement {ctx.kit.Text({ bold: true, color: isNa ? THEME.info : tag.color(), dimColor: isNa, children: ` ${isNa ? 'n/a ' : tag.text}` }),ctx.kit.Text({ bold: true, color: entry.cost === 'spends' || entry.cost === 'deletes' ? THEME.warn : THEME.head, dimColor: isNa, children: clip(` ${entry.name} `, lead).padEnd(lead, '.') }),ctx.kit.Text({ color: THEME.info, dimColor: isNa || isBlocked, wrap: 'truncate-end', children: clip(` ${entry.about}`, Math.max(4, ctx.columns - lead - 16)) }),- // A blocked row keeps its button: pressing it says which field to fill.- ...(isNa ? [] : [ctx.kit.Button({ key: `dt-${entry.id.slice(3)}`, label: ' ▸ run', plain: true, dimColor: true, onPress: () => void ctx.act.run(entry.id) })]),+ // A blocked row keeps its button: pressing it says which field to fill. The button is primary, the one action on the row.+ ...(isNa ? [] : [ctx.kit.Button({ key: `dt-${entry.id.slice(3)}`, label: ' ▶ run ', variant: 'primary' as const, onPress: () => void ctx.act.run(entry.id) })]),+ ...(isBlocked ? [ctx.kit.Text({ bold: true, color: THEME.warn, children: ' needs input above ↑' })] : []),],`dt-row-${entry.id}`,)@@ -132,13 +133,15 @@ function resultRows(ctx: Ctx): RenderElement[] {export function devtoolsView(ctx: Ctx): RenderElement {const { state } = ctxconst lead = Math.max(16, Math.min(24, ctx.columns - 44))- const hasRun = state.lab.running?.id.startsWith('dt-') === true || state.lab.result?.id.startsWith('dt-') === true+ // The result opens while a run is in flight, has finished, or is waiting for a confirm, so what a press did is always in view.+ const hasRun = state.lab.running?.id.startsWith('dt-') === true || state.lab.result?.id.startsWith('dt-') === true || state.pending !== nullconst rows: RenderElement[] = [text(ctx, ' $0 local read, runs at once · cpu/wr local work or a write · net the network · $$ may spend · del deletes: each of these asks first', { dimColor: true })]DEV_GROUPS.forEach((group, i) => {const entries = DEV.filter(candidate => candidate.group === group.id)- rows.push(...section(ctx, `dt-${group.id}`, group.title, `${entries.length} · ${group.right}`, [...fieldRows(ctx, group.id), ...entries.map(entry => entryRow(ctx, entry, lead))], i === 0))+ // The first group, and every group with a text field, opens: a field folded away could not be typed into, so its runs would refuse.+ rows.push(...section(ctx, `dt-${group.id}`, group.title, `${entries.length} · ${group.right}`, [...fieldRows(ctx, group.id), ...entries.map(entry => entryRow(ctx, entry, lead))], i === 0 || (FIELDS[group.id] ?? []).length > 0))})rows.push(...section(ctx, 'dt-result', 'Result', resultRight(ctx), resultRows(ctx), hasRun))diff --git a/plugins/ruflo-console/hooks/views/secure.ts b/plugins/ruflo-console/hooks/views/secure.tsindex 6b6cb41392..7cd3ee2b19 100644--- a/plugins/ruflo-console/hooks/views/secure.ts+++ b/plugins/ruflo-console/hooks/views/secure.ts@@ -28,7 +28,8 @@ export function entryRow(ctx: Ctx, entry: { id: string; name: string; about: strctx.kit.Text({ bold: true, color: tag.color(), children: ` ${tag.text}` }),ctx.kit.Text({ bold: true, color: THEME.head, children: ` ${entry.name} `.padEnd(lead, '.') }),ctx.kit.Text({ color: THEME.info, wrap: 'truncate-end', children: clip(` ${entry.about}`, Math.max(4, ctx.columns - lead - 18)) }),- ctx.kit.Button({ key: `run-${entry.id}`, label: ' ▸ run', plain: true, dimColor: true, onPress: () => void ctx.act.run(entry.id, textOf?.() ?? '') }),+ // The run is the row's one action, so it is a primary button: it is the first thing the eye finds.+ ctx.kit.Button({ key: `run-${entry.id}`, label: ' ▶ run ', variant: 'primary' as const, onPress: () => void ctx.act.run(entry.id, textOf?.() ?? '') }),],`row-${entry.id}`,)@@ -215,7 +216,8 @@ export function secureView(ctx: Ctx): RenderElement {meterRows(ctx),true,),- ...section(ctx, 'sec-check', 'Check text', 'AIDefence · injection, jailbreak, PII · policy', pasteRows(ctx), false),+ // Open: the text field lives here, and the checks below it read what is typed; folded, the field would be out of reach.+ ...section(ctx, 'sec-check', 'Check text', memo.draft === '' ? 'type or paste text, then run a check' : `${memo.draft.length} characters ready`, pasteRows(ctx), true),...section(ctx, 'sec-scan', 'Scan & inspect', scanBusy ? `${spinAt(nowMs)} ${running?.label ?? 'scanning'}` : 'scans are local; npm audit is the network', scanRows, scanBusy),...section(ctx,