Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 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

feat(ai-team): style board as ruOS desktop workspace (#3546)

rUvf208bdf633ec
diff --git a/plugins/ruflo-ai-team/.claude-plugin/plugin.json b/plugins/ruflo-ai-team/.claude-plugin/plugin.json
index aa3eeeb252..f0de17f1b7 100644
--- a/plugins/ruflo-ai-team/.claude-plugin/plugin.json
+++ b/plugins/ruflo-ai-team/.claude-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "ruflo-ai-team",
"description": "Give Claude a tenant-isolated AI team that divides work, coordinates progress, recalls approved context, and returns evidence-backed results.",
- "version": "0.1.1",
+ "version": "0.1.2",
"author": { "name": "ruvnet", "url": "https://github.com/ruvnet" },
"homepage": "https://team.ruv.io",
"privacyPolicyUrl": "https://team.ruv.io/privacy",
diff --git a/plugins/ruflo-ai-team/README.md b/plugins/ruflo-ai-team/README.md
index 08fb51f0fe..3e5af469ad 100644
--- a/plugins/ruflo-ai-team/README.md
+++ b/plugins/ruflo-ai-team/README.md
@@ -13,7 +13,7 @@ The public v0.1 surface coordinates work; it does not silently send messages, de
- Stored task, memory, and evidence content is provenance-labelled and nonce-fenced as untrusted data.
- Fourteen focused tools, two prompts, a template resource, and a ChatGPT MCP Apps board.
-The read-only `team_board` tool renders a ruOS-inspired, tenant-scoped team/run card in ChatGPT. Its public HTML resource contains no tenant data; the tool requires `team:read`. `run_complete` requires `team:run` and refuses to complete a run until it has at least one task and every task is complete.
+The read-only `team_board` tool renders a compact ruOS-style desktop workspace in ChatGPT, with team/run metrics and task status. Its public HTML resource contains no tenant data; the tool requires `team:read`. The rail is visual context, not clickable navigation. `run_complete` requires `team:run` and refuses to complete a run until it has at least one task and every task is complete.
Memory search reports `lexical-degraded` unless a compatible native RuVector binding passes the startup probe. The pinned `@ruvector/core` 0.1.32 package with its 0.1.30 optional native binding fails that probe in local validation with a dimension mismatch. Do not set `RUFLO_AI_TEAM_VECTOR=native` in production until a compatible binary is verified.
diff --git a/plugins/ruflo-ai-team/RELEASE_NOTES.md b/plugins/ruflo-ai-team/RELEASE_NOTES.md
index adabd167c3..04a8baf0de 100644
--- a/plugins/ruflo-ai-team/RELEASE_NOTES.md
+++ b/plugins/ruflo-ai-team/RELEASE_NOTES.md
@@ -1,3 +1,9 @@
+# 0.1.2 — Desktop-style team workspace
+
+- Reworked the ChatGPT board into a compact ruOS-inspired desktop with window chrome, workspace rail, status indicators, run metrics, task rows, and responsive narrow-width layout.
+- Versioned the MCP Apps resource URI to `ui://ruflo-ai-team/board-v2.html` so hosts refresh the cached UI.
+- Kept all content read-only and rendered with text nodes; no external scripts, frames, or network requests were added.
+
# 0.1.1 — ChatGPT team board and run completion
- Added a read-only ChatGPT team board with ruOS-inspired styling through an MCP Apps HTML resource. Tenant data is returned only by the OAuth-scoped `team_board` tool.
diff --git a/plugins/ruflo-ai-team/deploy/cloud-run.yaml b/plugins/ruflo-ai-team/deploy/cloud-run.yaml
index a5c1621ae5..8d08b69c8d 100644
--- a/plugins/ruflo-ai-team/deploy/cloud-run.yaml
+++ b/plugins/ruflo-ai-team/deploy/cloud-run.yaml
@@ -13,7 +13,7 @@ spec:
timeoutSeconds: 60
serviceAccountName: ruflo-ai-team@PROJECT_ID.iam.gserviceaccount.com
containers:
- - image: REGION-docker.pkg.dev/PROJECT_ID/ruflo/ruflo-ai-team:0.1.1
+ - image: REGION-docker.pkg.dev/PROJECT_ID/ruflo/ruflo-ai-team:0.1.2
ports: [{ containerPort: 8080 }]
resources:
limits: { cpu: "1", memory: 1Gi }
diff --git a/plugins/ruflo-ai-team/package-lock.json b/plugins/ruflo-ai-team/package-lock.json
index 18acf49ea2..7ea9cdc2e4 100644
--- a/plugins/ruflo-ai-team/package-lock.json
+++ b/plugins/ruflo-ai-team/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@ruflo/ai-team-service",
- "version": "0.1.1",
+ "version": "0.1.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@ruflo/ai-team-service",
- "version": "0.1.1",
+ "version": "0.1.2",
"license": "MIT",
"dependencies": {
"@google-cloud/firestore": "^9.2.0",
diff --git a/plugins/ruflo-ai-team/package.json b/plugins/ruflo-ai-team/package.json
index b5f67bbfec..6e79f17ea0 100644
--- a/plugins/ruflo-ai-team/package.json
+++ b/plugins/ruflo-ai-team/package.json
@@ -1,6 +1,6 @@
{
"name": "@ruflo/ai-team-service",
- "version": "0.1.1",
+ "version": "0.1.2",
"private": true,
"type": "module",
"description": "Multi-tenant MCP control plane and Claude plugin for coordinated AI teams.",
diff --git a/plugins/ruflo-ai-team/src/server.mjs b/plugins/ruflo-ai-team/src/server.mjs
index 86fb1e48b4..aab93a9248 100644
--- a/plugins/ruflo-ai-team/src/server.mjs
+++ b/plugins/ruflo-ai-team/src/server.mjs
@@ -11,7 +11,7 @@ import { fenced, scanStoredText } from './untrusted.mjs';
import { privacyPage, supportPage, termsPage } from './public-pages.mjs';
export const VERSION = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8')).version;
-const TEAM_BOARD_URI = 'ui://ruflo-ai-team/board-v1.html';
+const TEAM_BOARD_URI = 'ui://ruflo-ai-team/board-v2.html';
const TEAM_BOARD_HTML = readFileSync(new URL('../ui/team-board.html', import.meta.url), 'utf8');
const MAX_BODY = 512 * 1024;
const TOOL_SCOPES = Object.freeze({
diff --git a/plugins/ruflo-ai-team/test/service.node.mjs b/plugins/ruflo-ai-team/test/service.node.mjs
index 57bb7a9db9..652a372e48 100644
--- a/plugins/ruflo-ai-team/test/service.node.mjs
+++ b/plugins/ruflo-ai-team/test/service.node.mjs
@@ -75,7 +75,7 @@ test('scope checks return HTTP 403 rather than model-level permission errors', a
test('board resource is public but contains no tenant data; board tool remains scoped', async (t) => {
const f=await fixture(); t.after(()=>f.server.close());
- const uri='ui://ruflo-ai-team/board-v1.html';
+ const uri='ui://ruflo-ai-team/board-v2.html';
const listed=await rpc(f.base,{jsonrpc:'2.0',id:1,method:'tools/list',params:{}});
assert.equal(listed.body.result.tools.find(x=>x.name==='team_board')._meta.ui.resourceUri,uri);
const resource=await rpc(f.base,{jsonrpc:'2.0',id:2,method:'resources/read',params:{uri}});
diff --git a/plugins/ruflo-ai-team/ui/team-board.html b/plugins/ruflo-ai-team/ui/team-board.html
index 8d9c36b6af..2e6585b2a7 100644
--- a/plugins/ruflo-ai-team/ui/team-board.html
+++ b/plugins/ruflo-ai-team/ui/team-board.html
@@ -2,41 +2,63 @@
<html lang="en">
<head>
<meta charset="utf-8">
- <meta name="viewport" content="width=device-width,initial-scale=1">
- <title>RuFlo AI Team</title>
+ <meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
+ <title>RuFlo AI Team · Workspace</title>
<style>
- :root{color-scheme:dark;--ink:#eafcff;--muted:#91a8ad;--aqua:#26e9d5;--pink:#ff3b91;--panel:#0a171b}
- *{box-sizing:border-box}body{margin:0;padding:12px;background:#050b0e;color:var(--ink);font:14px/1.4 ui-sans-serif,system-ui,sans-serif}
- main{max-width:720px;margin:auto;border:1px solid #1b3439;border-radius:16px;overflow:hidden;background:var(--panel)}
- header{display:flex;align-items:center;gap:12px;padding:14px;background:linear-gradient(100deg,#0c2023,#11161e 58%,#22101c);border-bottom:1px solid #214048}
- .mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:radial-gradient(circle at 35% 30%,#67fff2,var(--aqua) 38%,#087f86 72%,#071014);color:#041012;font-weight:900}
- h1{margin:0;font-size:16px}small,.muted{color:var(--muted)}section{padding:14px}h2{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--aqua)}
- .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.metric,.row{border:1px solid #204048;border-radius:10px;background:#102429;padding:10px}
- .metric strong{display:block;font-size:19px}.row{margin-top:8px}.row strong{display:block;overflow-wrap:anywhere}.pill{display:inline-block;margin-top:5px;color:var(--aqua);font-size:12px}
- ul{list-style:none;margin:0;padding:0}.task{border-top:1px solid #204048;padding:9px 0}.task:first-child{border-top:0}
- @media(max-width:480px){.grid{grid-template-columns:1fr 1fr}}
+ :root{color-scheme:dark;--ink:#eafcff;--muted:#96afb5;--aqua:#26e9d5;--pink:#ff3b91;--line:#24454b;--panel:#0a171b;--font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
+ *{box-sizing:border-box}html,body{margin:0;min-width:270px}body{padding:8px;background:#050b0e;color:var(--ink);font:13px/1.4 var(--font)}
+ .desktop{max-width:760px;min-height:390px;margin:auto;overflow:hidden;border:1px solid #315158;border-radius:17px;background:radial-gradient(ellipse at 78% 30%,#153841 0,#0a1c22 38%,#050b0e 80%);box-shadow:0 14px 40px #0008,0 0 30px #26e9d512}
+ .topbar{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 12px;background:linear-gradient(105deg,#0c2023,#11161e 55%,#24111e);border-bottom:1px solid #31565d}
+ .mark{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:10px;background:radial-gradient(circle at 35% 27%,#8ffff4,var(--aqua) 37%,#087f86 74%,#071014);box-shadow:0 0 18px #26e9d566;color:#041012;font-weight:900;font-size:20px}
+ .brand{min-width:0;flex:1}.brand strong{display:block;font-size:14px;letter-spacing:.02em}.brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:.05em;text-transform:uppercase}
+ .connection{white-space:nowrap;font-size:11px;color:#b7edcf}.connection::before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#48e9a2;box-shadow:0 0 10px #48e9a2}
+ .workspace{display:grid;grid-template-columns:75px minmax(0,1fr);min-height:325px;background-image:radial-gradient(#91dce111 1px,transparent 1px);background-size:18px 18px}
+ .rail{display:flex;flex-direction:column;align-items:center;gap:14px;padding:18px 6px;background:#081317d9;border-right:1px solid var(--line)}
+ .rail-item{display:grid;justify-items:center;gap:5px;color:var(--muted);font-size:10px;text-align:center}.rail-icon{display:grid;place-items:center;width:38px;height:38px;border:1px solid #315158;border-radius:12px;background:#13262a;color:var(--aqua);font:700 17px var(--font)}.rail-item.active .rail-icon{border-color:var(--aqua);box-shadow:0 0 16px #26e9d52a;background:#173337}
+ .window{align-self:start;min-width:0;margin:15px;border:1px solid #33545a;border-radius:13px;overflow:hidden;background:#0b171ddf;box-shadow:0 16px 28px #0007}
+ .windowbar{display:flex;align-items:center;gap:9px;min-height:34px;padding:7px 11px;border-bottom:1px solid var(--line);background:linear-gradient(90deg,#142a2f,#18232b)}
+ .lights{display:flex;gap:5px}.lights i{display:block;width:7px;height:7px;border-radius:50%;background:#ff567c}.lights i:nth-child(2){background:#ffd16b}.lights i:nth-child(3){background:#43dfa2}.windowbar strong{font-size:11px;font-weight:650;letter-spacing:.04em}.windowbar span{margin-left:auto;color:var(--muted);font:10px ui-monospace,monospace}
+ .content{padding:14px}.eyebrow{margin:0 0 3px;color:var(--aqua);font:10px ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase}.heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}.heading h1{margin:0;font-size:19px;line-height:1.15}.heading p{margin:5px 0 0;color:var(--muted);font-size:11px;overflow-wrap:anywhere}
+ .status{flex:none;display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid #3d6b70;border-radius:20px;color:#9bf5e5;font:10px ui-monospace,monospace;text-transform:uppercase}.status[hidden]{display:none}.status::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--aqua)}.status[data-state="complete"]{color:#abf0ca;border-color:#386753}.status[data-state="complete"]::before{background:#4de59a}.status[data-state="blocked"]{color:#ffd17b;border-color:#786038}.status[data-state="blocked"]::before{background:#ffd17b}
+ .metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 15px}.metric{min-width:0;padding:10px;border:1px solid #24434a;border-radius:10px;background:linear-gradient(150deg,#122b30,#101e25)}.metric small{display:block;color:var(--muted);font-size:10px}.metric strong{display:block;margin-top:3px;font:700 18px ui-monospace,monospace;white-space:nowrap}.metric:nth-child(2) strong{color:var(--aqua)}
+ .section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.section-head h2{margin:0;color:#b9e6e2;font-size:11px;letter-spacing:.12em;text-transform:uppercase}.section-head span{color:var(--muted);font:10px ui-monospace,monospace}
+ .rows{display:grid;gap:7px}.row{display:flex;align-items:center;gap:9px;min-width:0;padding:9px 10px;border:1px solid #25444a;border-radius:9px;background:#11242a}.glyph{display:grid;place-items:center;flex:none;width:27px;height:27px;border-radius:8px;background:#1b3940;color:var(--aqua);font-weight:700}.row-copy{min-width:0;flex:1}.row-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600}.row-copy small{display:block;color:var(--muted);font-size:10px;text-transform:uppercase}.row .state{color:var(--aqua);font:10px ui-monospace,monospace;text-transform:uppercase;white-space:nowrap}.row .state[data-state="complete"]{color:#73e4a3}.row .state[data-state="blocked"]{color:#ffd17b}
+ .empty{padding:16px;border:1px dashed #315158;border-radius:9px;color:var(--muted);text-align:center}.footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 12px;border-top:1px solid var(--line);background:#081317;color:var(--muted);font:10px ui-monospace,monospace}.footer b{color:var(--aqua);font-weight:500}
+ @media(max-width:490px){.workspace{grid-template-columns:48px minmax(0,1fr)}.rail{gap:10px;padding:12px 4px}.rail-icon{width:32px;height:32px;font-size:14px}.rail-item{font-size:0}.window{margin:9px}.content{padding:11px}.metrics{gap:5px}.metric{padding:8px}.metric strong{font-size:15px}.heading h1{font-size:16px}.connection{font-size:0}.connection::before{margin:0}}
</style>
</head>
<body>
-<main aria-label="RuFlo AI Team board">
- <header><span class="mark" aria-hidden="true">r</span><div><h1>RuFlo AI Team</h1><small>Private coordination board</small></div></header>
- <section><div id="summary" class="grid"></div><div id="details" aria-live="polite" class="muted">Loading team status…</div></section>
-</main>
+<div class="desktop" aria-label="RuFlo AI Team workspace">
+ <header class="topbar"><div class="mark" aria-hidden="true">r</div><div class="brand"><strong>RuFlo AI Team</strong><small>Private coordination workspace</small></div><span class="connection">Tenant-scoped</span></header>
+ <div class="workspace">
+ <aside class="rail" aria-label="Workspace sections"><div class="rail-item active"><span class="rail-icon" aria-hidden="true">◈</span><span>Teams</span></div><div class="rail-item"><span class="rail-icon" aria-hidden="true">≡</span><span>Tasks</span></div><div class="rail-item"><span class="rail-icon" aria-hidden="true">◉</span><span>Evidence</span></div></aside>
+ <main class="window"><div class="windowbar"><div class="lights" aria-hidden="true"><i></i><i></i><i></i></div><strong>TEAM CONTROL</strong><span>READ ONLY</span></div>
+ <div class="content"><p class="eyebrow">Workspace overview</p><div class="heading"><div><h1 id="title">Your teams</h1><p id="subtitle">Live coordination records from your account</p></div><span id="run-status" class="status" hidden></span></div>
+ <div id="metrics" class="metrics"></div><div class="section-head"><h2 id="list-heading">Teams</h2><span id="list-count"></span></div><div id="rows" class="rows" aria-live="polite"><div class="empty">Loading team status…</div></div>
+ </div>
+ </main>
+ </div>
+ <footer class="footer"><span>RUFLO / TEAM WORKSPACE</span><span>OAuth <b>●</b> &nbsp; No external actions</span></footer>
+</div>
<script type="module">
- const summary=document.querySelector('#summary'),details=document.querySelector('#details');
- const node=(tag,value,className)=>{const el=document.createElement(tag);el.textContent=String(value??'');if(className)el.className=className;return el};
+ const byId=(id)=>document.getElementById(id);
+ const element=(tag,value,className)=>{const node=document.createElement(tag);node.textContent=String(value??'');if(className)node.className=className;return node};
function render(data){
if(!data||typeof data!=='object')return;
- summary.replaceChildren();details.replaceChildren();
- for(const [label,value] of [['Teams',data.teams?.length??0],['Tasks complete',data.tasks?.filter(x=>x.status==='complete').length??0],['Budget used',`${data.run?.spentUnits??0} / ${data.run?.budgetUnits??0}`]]){
- const card=node('div','', 'metric');card.append(node('small',label),node('strong',value));summary.append(card);
- }
- if(data.run){details.append(node('h2','Run'),node('div',data.run.objective,'row'),node('span',`Status: ${data.run.status}`,'pill'));}
- const heading=node('h2',data.run?'Tasks':'Teams');details.append(heading);
- const items=data.run?data.tasks:data.teams;
- if(!items?.length){details.append(node('p','Nothing to show yet.','muted'));return;}
- for(const item of items){const row=node('div','', 'row');row.append(node('strong',data.run?item.title:item.name),node('span',item.status,'pill'));details.append(row);}
- if(data.vectorBackend)details.append(node('p',`Memory search: ${data.vectorBackend}${data.degraded?' (degraded)':''}`,'muted'));
+ const teams=Array.isArray(data.teams)?data.teams:[];
+ const tasks=Array.isArray(data.tasks)?data.tasks:[];
+ const run=data.run;
+ byId('title').textContent=run?'Run workspace':'Your teams';
+ byId('subtitle').textContent=run?run.objective:'Live coordination records from your account';
+ const status=byId('run-status');status.hidden=!run;
+ if(run){status.textContent=run.status??'unknown';status.dataset.state=run.status??'';}
+ const metrics=byId('metrics');metrics.replaceChildren();
+ const values=run?[['Tasks',tasks.length],['Complete',tasks.filter(task=>task.status==='complete').length],['Units',`${run.spentUnits??0} / ${run.budgetUnits??0}`]]:[['Teams',teams.length],['Active',teams.filter(team=>team.status==='active').length],['Complete',teams.filter(team=>team.status==='complete').length]];
+ for(const [label,value] of values){const card=element('div','', 'metric');card.append(element('small',label),element('strong',value));metrics.append(card);}
+ const items=run?tasks:teams;byId('list-heading').textContent=run?'Run tasks':'Teams';byId('list-count').textContent=`${items.length} ${items.length===1?'item':'items'}`;
+ const rows=byId('rows');rows.replaceChildren();
+ if(!items.length){rows.append(element('div',run?'No tasks recorded for this run.':'No teams yet. Ask ChatGPT to create one.','empty'));return;}
+ for(const item of items){const row=element('div','', 'row');const copy=element('div','', 'row-copy');copy.append(element('strong',run?item.title:item.name),element('small',run?'Task':'AI team'));const state=element('span',item.status??'unknown','state');state.dataset.state=item.status??'';row.append(element('span',run?(item.status==='complete'?'✓':'•'):'◈','glyph'),copy,state);rows.append(row);}
}
function update(result){const data=result?.structuredContent??result;if(data?.teams)render(data);}
let id=0;const pending=new Map();
@@ -47,9 +69,9 @@
if(msg.method==='ui/notifications/tool-result')update(msg.params);
});
const request=(method,params)=>new Promise((resolve,reject)=>{const next=++id;pending.set(next,{resolve,reject});window.parent.postMessage({jsonrpc:'2.0',id:next,method,params},'*')});
- request('ui/initialize',{appInfo:{name:'ruflo-ai-team-board',version:'1.0.0'},appCapabilities:{},protocolVersion:'2026-01-26'})
+ request('ui/initialize',{appInfo:{name:'ruflo-ai-team-board',version:'1.0.2'},appCapabilities:{},protocolVersion:'2026-01-26'})
.then(()=>window.parent.postMessage({jsonrpc:'2.0',method:'ui/notifications/initialized',params:{}},'*'))
- .catch(()=>{details.textContent='The ChatGPT view could not initialize. Team tools remain available in chat.'});
+ .catch(()=>{byId('rows').textContent='The ChatGPT view could not initialize. Team tools remain available in chat.'});
if(window.openai?.toolOutput)update(window.openai.toolOutput);
</script>
</body>