@lumo-app/office 0.0.0-stage → 0.3.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/REACT-LICENSE.txt +21 -0
- package/README.md +26 -2
- package/THIRD_PARTY_NOTICES.md +52 -0
- package/THREE-LICENSE.txt +21 -0
- package/icon.svg +1 -0
- package/index.js +4046 -0
- package/lumo.plugin.json +13 -0
- package/package.json +53 -3
- package/panel.html +2 -0
package/lumo.plugin.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apiVersion": 1,
|
|
3
|
+
"id": "lumo.office",
|
|
4
|
+
"name": "协作办公室",
|
|
5
|
+
"version": "0.3.1",
|
|
6
|
+
"description": "在温暖的立体办公室中观察 Agent 工作、交接与交流,回放执行过程并查看每位成员的任务详情。",
|
|
7
|
+
"permissions": ["session.read"],
|
|
8
|
+
"panel": "panel.html",
|
|
9
|
+
"entry": "index.js",
|
|
10
|
+
"icon": "icon.svg",
|
|
11
|
+
"contributes": {"tool": {"id": "office", "label": "协作办公室", "description": "Agent 的实时工作空间与执行回放"}},
|
|
12
|
+
"minimumClientVersion": "0.1.29"
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumo-app/office",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Lumo 协作办公室:可回放的立体 Agent 工作空间",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"files": [
|
|
8
|
+
"lumo.plugin.json",
|
|
9
|
+
"panel.html",
|
|
10
|
+
"index.js",
|
|
11
|
+
"icon.svg",
|
|
12
|
+
"README.md",
|
|
13
|
+
"THIRD_PARTY_NOTICES.md",
|
|
14
|
+
"THREE-LICENSE.txt",
|
|
15
|
+
"REACT-LICENSE.txt"
|
|
16
|
+
],
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"esbuild": "^0.28.1",
|
|
19
|
+
"@react-three/fiber": "^9.4.0",
|
|
20
|
+
"gsap": "^3.14.0",
|
|
21
|
+
"lucide-react": "^0.468.0",
|
|
22
|
+
"react": "19.1.0",
|
|
23
|
+
"react-dom": "19.1.0",
|
|
24
|
+
"three": "^0.180.0",
|
|
25
|
+
"@lumo/plugin-build": "0.1.0",
|
|
26
|
+
"@lumo/ui": "0.1.0"
|
|
27
|
+
},
|
|
28
|
+
"lumo": {
|
|
29
|
+
"publisherId": "sfBTRy3PY3BEaVay6vAk7w",
|
|
30
|
+
"manifest": {
|
|
31
|
+
"apiVersion": 1,
|
|
32
|
+
"id": "lumo.office",
|
|
33
|
+
"name": "协作办公室",
|
|
34
|
+
"version": "0.3.1",
|
|
35
|
+
"description": "在温暖的立体办公室中观察 Agent 工作、交接与交流,回放执行过程并查看每位成员的任务详情。",
|
|
36
|
+
"permissions": [
|
|
37
|
+
"session.read"
|
|
38
|
+
],
|
|
39
|
+
"panel": "panel.html",
|
|
40
|
+
"entry": "index.js",
|
|
41
|
+
"icon": "icon.svg",
|
|
42
|
+
"contributes": {
|
|
43
|
+
"tool": {
|
|
44
|
+
"id": "office",
|
|
45
|
+
"label": "协作办公室",
|
|
46
|
+
"description": "Agent 的实时工作空间与执行回放"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"minimumClientVersion": "0.1.29"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"build": "node build.mjs",
|
|
54
|
+
"test": "node --test tests/*.test.mjs"
|
|
55
|
+
}
|
|
6
56
|
}
|
package/panel.html
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<style data-lumo-ui>:where(body){--ui-radius:8px;--ui-focus:var(--accent,#596b80);-webkit-user-select:none;user-select:none}:where(button,[role=button],[role=tab],label,nav,header,footer){-webkit-user-select:none;user-select:none}:where(input,textarea,[contenteditable=true],[data-selectable=true],.md-preview,.markdown,.cm-content){-webkit-user-select:text;user-select:text}:where(button,input,textarea,select){font:inherit;box-sizing:border-box;color:var(--text,#34383e);-webkit-tap-highlight-color:transparent}:where(button){border:0;background:none;border-radius:var(--ui-radius);cursor:pointer}:where(button svg){flex-shrink:0;pointer-events:none}:where(input,textarea,select){border:1px solid var(--input-border,var(--border,#dce0e5));border-radius:var(--ui-radius);background:var(--surface,#fff);padding:10px 12px;outline:none;caret-color:var(--text,#34383e)}:where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),textarea){appearance:none;-webkit-appearance:none}:where(input,textarea,select):focus{box-shadow:none}:where(button,[role=button]):focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px}:where(button):disabled{opacity:.45;cursor:default}.lumo-button.primary{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--accent,#4d5968);color:var(--on-accent,#fff);border:0;border-radius:var(--ui-radius);padding:9px 14px}.lumo-button.secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--soft,#f5f6f7);color:var(--text,#34383e);border:1px solid var(--border,#dce0e5);border-radius:var(--ui-radius);padding:9px 14px}.lumo-messages{position:fixed;top:24px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:10px;z-index:2147483647;width:min(560px,calc(100vw - 32px));pointer-events:none}.lumo-message{display:flex;align-items:center;gap:10px;max-width:100%;padding:11px 12px 11px 16px;border:1px solid var(--border,#dce0e5);border-radius:10px;background:var(--surface,#fff);color:var(--text,#34383e);box-shadow:0 6px 24px #00000018;font:13px/1.6 -apple-system,BlinkMacSystemFont,sans-serif;pointer-events:auto;overflow-wrap:anywhere}.lumo-message>span:nth-child(2){min-width:0;white-space:pre-wrap;-webkit-user-select:text;user-select:text}.lumo-message-symbol{flex-shrink:0;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--soft,#f5f6f7);color:var(--accent,#596b80);font-weight:700}.lumo-message-error .lumo-message-symbol{background:#bd544c18;color:#bd544c}.lumo-message-success .lumo-message-symbol{background:#39856618;color:#398566}.lumo-message-warning .lumo-message-symbol{color:#a66a16}.lumo-message .lumo-message-close{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted,#757b84);font-size:19px;cursor:pointer}.lumo-message-close:hover{background:var(--soft,#f5f6f7)}.lumo-confirm{width:min(420px,calc(100vw - 32px));padding:24px;border:1px solid var(--border,#dce0e5);border-radius:14px;background:var(--surface,#fff);color:var(--text,#34383e);box-shadow:0 20px 80px #0003}.lumo-confirm::backdrop{background:#0005}.lumo-confirm h2{font-size:17px;margin:0 0 12px}.lumo-confirm p{font-size:13px;line-height:1.7;color:var(--muted,#757b84)}.lumo-confirm footer{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.lumo-confirm .danger{background:#b44942}.lumo-select-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;border:1px solid var(--border,#ddd);border-radius:var(--ui-radius);background:var(--surface,#fff);padding:8px 12px;color:var(--text,#34383e)}.lumo-select-trigger>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.lumo-select-trigger>.lumo-select-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;line-height:0}.lumo-select-icon>svg{display:block}.lumo-select-menu{z-index:10000;min-width:var(--radix-select-trigger-width);max-width:calc(100vw - 24px);box-sizing:border-box;padding:5px;border:1px solid var(--border,#ddd);border-radius:var(--ui-radius);background:var(--surface,#fff);color:var(--text,#34383e);box-shadow:0 6px 24px #0002;max-height:var(--radix-select-content-available-height);overflow:auto}.lumo-select-option{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:7px 10px;border-radius:5px;cursor:pointer;outline:none;-webkit-user-select:none;user-select:none}.lumo-select-option[data-highlighted]{background:var(--soft,#f5f6f7)}.lumo-select-option[data-disabled]{opacity:.4;pointer-events:none}input.lumo-checkbox{appearance:none;-webkit-appearance:none;display:inline-block;vertical-align:middle;flex-shrink:0;box-sizing:border-box;width:16px;height:16px;min-height:0;margin:0;padding:0;border:1px solid var(--input-border,var(--border,#b8bdc5));border-radius:4px;background-color:var(--surface,#fff);cursor:pointer}input.lumo-checkbox:checked{border-color:var(--accent,#596b80);background-color:var(--accent,#596b80);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8 3 3 6-6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-size:100% 100%}input.lumo-checkbox:disabled{opacity:.45;cursor:default}.lumo-empty{--empty-title:var(--text,#34383e);--empty-description:var(--muted,#747b85);--empty-art-surface:color-mix(in srgb,var(--accent,#8e9bc0) 7%,transparent);box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;width:100%;min-width:0;min-height:280px;padding:32px 20px;text-align:center;color:var(--empty-title);font-family:inherit}.lumo-empty-art{position:relative;display:grid;place-items:center;isolation:isolate;width:180px;height:160px;flex-shrink:0;margin-bottom:6px;pointer-events:none;-webkit-user-select:none;user-select:none}.lumo-empty-art:before{content:"";position:absolute;z-index:-1;inset:20px 0 0;border-radius:50%;background:radial-gradient(ellipse at center,var(--empty-art-surface),transparent 72%)}.lumo-empty-art img{display:block;width:160px;height:160px;max-width:100%;object-fit:contain;filter:drop-shadow(0 6px 8px #27334b0b)}.lumo-empty-title{max-width:480px;font-size:14px;line-height:1.6;font-weight:550;overflow-wrap:anywhere}.lumo-empty-description{max-width:360px;font-size:12px;line-height:1.7;color:var(--empty-description);overflow-wrap:anywhere}.lumo-empty-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;max-width:100%;margin-top:9px}.lumo-empty--compact{min-height:150px;padding:20px 12px;gap:6px}.lumo-empty--compact .lumo-empty-art{width:94px;height:80px;margin-bottom:3px}.lumo-empty--compact .lumo-empty-art img{width:80px;height:80px}.lumo-empty--compact .lumo-empty-title{font-size:12px}.lumo-empty--compact .lumo-empty-description{font-size:11px;max-width:280px}@media(max-width:480px){.lumo-empty{min-height:240px;padding:24px 16px}.lumo-empty--compact{min-height:150px;padding:16px 10px}}input.lumo-slider{appearance:none;-webkit-appearance:none;display:block;width:100%;height:5px;min-height:0;padding:0;border:0;border-radius:99px;background:var(--border,#dce0e5);cursor:pointer;accent-color:var(--accent,#596b80)}input.lumo-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:14px;height:14px;border:2px solid var(--surface,#fff);border-radius:50%;background:var(--accent,#596b80);box-shadow:0 1px 4px #0002}input.lumo-slider::-moz-range-thumb{width:11px;height:11px;border:2px solid var(--surface,#fff);border-radius:50%;background:var(--accent,#596b80);box-shadow:0 1px 4px #0002}input.lumo-slider:disabled{opacity:.45;cursor:default}.lumo-confirm .lumo-button.secondary{color:var(--text,#34383e);background:var(--soft,#f5f6f7);border:1px solid var(--border,#dce0e5)}.lumo-confirm .lumo-button:focus-visible{outline:2px solid var(--ui-focus,#596b80);outline-offset:2px}:is(input,textarea,select,[contenteditable=true],[role=combobox],[role=checkbox],[role=radio],[role=switch],[role=slider],.lumo-select-trigger,.lumo-field-trigger):is(:focus,:focus-visible){outline:none!important;box-shadow:none!important}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;overflow:hidden}body{margin:0!important;padding:0!important;font:13px/1.6 -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--text,#514b45);background:var(--surface,#fffdf8)}button,select,input{font:inherit}button{color:inherit;background:transparent;border:1px solid transparent;border-radius:10px;padding:7px 10px;cursor:pointer}button:hover{background:var(--soft,#eee5d7)}button:disabled{opacity:.4;cursor:default}button:not([role=combobox]):focus-visible,summary:focus-visible{outline:2px solid #a4815c;outline-offset:2px}h1,h2,h3,p{margin:0}h1{font-size:14px;letter-spacing:.3px;font-weight:650}h2{font-size:18px}h3{font-size:14px}.office-app{position:relative;width:100%;height:100%;overflow:hidden}.office-stage{position:absolute;inset:0;background:radial-gradient(ellipse at 45% 40%,#fcf8ee,#e7dfd1)}.office-stage canvas{touch-action:none;outline:none}.glass{background:var(--surface,#fffcf6);background:color-mix(in srgb,var(--surface,#fffcf6) 92%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border:1px solid var(--border,#e4dbcd);box-shadow:0 5px 24px #47351d0a;border-radius:15px}.heading{position:absolute;top:20px;left:20px;display:flex;align-items:center;gap:12px;padding:11px 15px;max-width:calc(100% - 290px);pointer-events:auto}.brand-mark{font-size:29px;color:#b99b72;line-height:1}.heading p{font-size:11px;color:var(--muted,#857764);max-width:220px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.status{font-size:11px;white-space:nowrap;border-left:1px solid var(--border,#e8dfd1);padding-left:12px}.status i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8ba588;margin-right:5px}.top-actions{position:absolute;right:20px;top:20px;display:flex;gap:8px}.top-actions button{font-size:12px;padding:12px}.camera-controls{position:absolute;bottom:20px;right:20px;display:flex;gap:5px;align-items:center;padding:4px 6px 4px 12px;font-size:10px;color:var(--muted,#857764)}.camera-controls button{font-size:20px;line-height:1}.replay{position:absolute;bottom:20px;left:20px;width:max-content;max-width:calc(100% - 300px);padding:7px}.replay-toolbar{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.replay-toolbar button{font-size:12px}.primary{background:#79664e!important;color:#fff8e9!important;border-color:transparent!important}.replay-expanded{padding:10px;width:430px;max-width:100%}.speed{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted,#857764);margin-left:auto}select{background:var(--surface,#fffdf8);color:inherit;border:1px solid var(--border,#e8dfd1);border-radius:7px;padding:5px}.live.active{color:#7b9472}input[type=range]{width:100%;margin:16px 0 7px;accent-color:#ab8c64}.event-caption{font-size:11px;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}.event-caption small,.approximate{color:var(--muted,#857764)}.approximate{display:block;font-size:10px;margin-top:7px}.members{position:absolute;right:20px;top:78px;width:270px;max-height:calc(100% - 160px);overflow:auto;padding:14px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.section-heading>span{font-size:11px;color:var(--muted,#857764)}.members h2{font-size:13px}.member-list{display:flex;flex-direction:column;gap:5px}.member{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:10px 5px}.member.selected{background:var(--soft,#f3eadc)}.member>span:nth-child(2){min-width:0}.member strong{display:block;font-size:12px;overflow-wrap:anywhere}.member small{display:block;font-size:11px;color:var(--muted,#857764)}.member-count{margin-left:auto;font-size:10px;color:var(--muted,#857764)}.avatar{flex:none;display:flex;align-items:center;justify-content:center;gap:8px;width:34px;height:35px;border-radius:16px 16px 12px 12px;background:var(--member);box-shadow:inset 0 -7px #ffffff40}.avatar i{display:block;width:3px;height:5px;border-radius:4px;background:#554a40}.detail{position:absolute;right:0;top:0;bottom:0;width:min(390px,88%);border-radius:20px 0 0 20px;padding:24px;overflow:auto;box-shadow:-8px 0 40px #44331c12;animation:drawer-in .28s cubic-bezier(.2,.7,.2,1)}.detail .section-heading{position:sticky;top:-24px;z-index:1;background:var(--surface,#fffcf6);padding:18px 0;margin-top:-18px}.eyebrow{font-size:9px;letter-spacing:2px;color:var(--muted,#857764)}.detail-status{color:var(--muted,#857764);font-size:12px}.task{padding:16px 0;border-top:1px solid var(--border,#e8dfd1);margin-top:16px;overflow-wrap:anywhere}.task h3{margin-top:9px}.task small{font-size:11px;color:var(--muted,#857764)}.task-status{display:inline-block;font-size:10px;padding:2px 7px;border-radius:5px;background:var(--soft,#f3eadc)}.task-status.error{color:#b24949}.task p{margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}details{margin-top:12px}summary{cursor:pointer;font-size:12px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.8 -apple-system,sans-serif;background:var(--soft,#f3eadc);padding:12px;border-radius:9px;max-height:350px;overflow:auto}.empty{height:100%;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;text-align:center;padding:30px;color:var(--muted,#857764)}.empty-house{font-size:60px;color:#b49d7e}.empty h1{font-size:20px;color:var(--text,#514b45)}@keyframes drawer-in{0%{transform:translate(100%);opacity:.6}to{transform:translate(0);opacity:1}}@media(max-width:650px){.heading{top:12px;left:12px;max-width:calc(100% - 24px);padding:8px 12px}.heading p{max-width:175px}.status{font-size:10px}.top-actions{top:88px;right:12px}.top-actions button{padding:8px 10px}.members{top:135px;right:12px;max-height:calc(100% - 240px)}.replay{left:12px;bottom:12px;max-width:calc(100% - 70px)}.camera-controls{right:12px;bottom:12px;padding:5px}.camera-controls span{display:none}.replay-expanded{width:290px}.replay-toolbar{gap:2px}.replay-toolbar button{padding:6px 8px}.detail{padding:20px}.brand-mark{font-size:24px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}.icon-button{display:inline-grid;place-items:center;width:32px;height:32px;padding:0;flex-shrink:0}.speed .lumo-select-trigger{min-height:29px;padding:4px 8px;font-size:11px}.office-app input.lumo-slider{margin:20px 0 14px}.scene-accessibility{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}.top-actions .lumo-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:20px;white-space:nowrap}.top-actions .lumo-button>svg{display:block;flex:none}.top-actions .lumo-button>span{display:block;line-height:20px}.office-stage{z-index:0}.heading,.top-actions,.replay{z-index:1}.members{z-index:2}.detail{z-index:3}</style>
|
|
2
|
+
<div id="root"></div>
|