@lumo-app/office 0.0.0-stage → 0.3.2

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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Meta Platforms, Inc. and affiliates.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,27 @@
1
- # Temporary Holding Version
1
+ # 协作办公室
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 可按需安装的 Lumo 群聊协作可视化插件。整个工具窗口是无围墙、无房间边界的开放办公空间,连续地面铺满视口。包含工位区、会议桌与白板、统筹沙发区、书架、咖啡台、打印收纳区和灵感站。台灯、笔筒、便签、时钟、绿植、落地灯、脚凳、补给推车与猫窝丰富各个区域。六类统一风格的员工通过耳形、体型、毛色、眼镜、耳机、贝雷帽、棒球帽、围巾及背包区分。模型与骨架由 Three.js 原创程序化构建,无需额外下载模型。
4
+
5
+ 拖动场景旋转,滚轮缩放,右键拖动平移,右下角还原视角。点击立体员工,从右侧抽屉查看任务、等待原因、前置依赖及执行输出;右上角成员列表默认折叠,也可用于选择员工。按 Escape 收起详情和浮层。底部的回放胶囊可以展开时间轴,提供播放、暂停、逐事件前进/后退、进度拖动、0.5–4 倍速度及回到实时。
6
+
7
+ 统领者按宿主 run.coordinatorId 识别并常驻沙发区。开始执行时,成员先去统领者处领取任务,再回到自己的电脑椅工作;完成任务时,先去沙发旁提交交付,再回工位休息。规划、协调、讨论和分析前往会议区,评审前往白板,@ 统领者的消息在沙发旁交流,其余 @ 交流前往会议桌。等待、完成和空闲的普通员工坐在自己的工位。
8
+
9
+ 每段动作保留完整的「行走 → 抵达 → 停留交流 → 返回」过程。后续事件进入队列,不会中途换目标;交流停留从抵达目的地开始计时。实时批次内的任务事件按宿主顺序逐一接收,回放会等本段动作完成再进入下一个事件,0.5–4 倍速度同时影响行走和停留。暂停回放冻结当前姿态,进度定位按所选记录重建状态。角色动作是事件状态的艺术表达,不是对真实操作的逐帧录像。关闭动作或面板不可见时停止动画,系统减少动态效果时默认关闭动作。
10
+
11
+ 所有 Three.js / React Three Fiber / GSAP 依赖离线打包在插件中,不进入客户端内置资源,不使用 CDN。
12
+
13
+ 只申请 `session.read`,通过 `collaboration.snapshot` 读取当前群聊。读取不到其他会话、模型凭据、角色身份提示词、思考块或工具完整参数;文本执行输出属于当前会话内容。插件没有运行控制权限,暂停回放不会暂停真实任务。真实团队暂停/继续仍由客户端执行控制负责。
14
+
15
+ 回放使用宿主记录的任务事件和消息中的 @ 身份。旧会话缺少事件时按消息起止时间近似还原,并提示精度限制。历史回放不会用最终任务说明或尚未完成的回答补齐过去的画面。历史记录仍遵循客户端原本的保存范围,无法还原未记录的动作。
16
+
17
+ ## 构建与安装
18
+
19
+ ```sh
20
+ pnpm --filter @lumo-app/office build
21
+ pnpm --filter @lumo-app/office test
22
+ pnpm --filter @lumo-app/office pack --pack-destination work
23
+ ```
24
+
25
+ 在 Lumo「工具配置 → 插件」中导入此目录,确认 `session.read` 权限并启用。未安装或停用时工具列表不会出现办公室。客户端保留群聊运行、状态及事件记录,旧的内置关系图工作台已移除。
26
+
27
+ Star-Office-UI 仅作为办公室隐喻参考;本插件的几何、场景和角色为代码原创,未使用其像素素材。Three.js、React Three Fiber、React、GSAP 的版权声明随构建脚本保留在 `index.js` 中;GSAP 遵循其标准许可。
@@ -0,0 +1,52 @@
1
+ # Third party notices
2
+
3
+ The office scene and character geometry are original code. No Star-Office-UI graphics or code are bundled.
4
+
5
+ - React and React DOM: Copyright Meta Platforms, Inc. and affiliates. MIT.
6
+ - React Three Fiber and its dependencies: MIT; license headers are retained in the bundled index.js.
7
+ - Three.js: Copyright three.js authors. MIT.
8
+ - GSAP: Copyright GreenSock / Webflow, Inc. Used under the GSAP Standard License: https://gsap.com/standard-license/ . Its copyright and license URL are retained in the bundled code.
9
+
10
+ The plugin's MIT license applies to original plugin code, not to third party dependencies under their own terms.
11
+
12
+ Radix UI (Select and supporting primitives), MIT:
13
+
14
+ MIT License
15
+
16
+ Copyright (c) 2022 WorkOS
17
+
18
+ Permission is hereby granted, free of charge, to any person obtaining a copy
19
+ of this software and associated documentation files (the "Software"), to deal
20
+ in the Software without restriction, including without limitation the rights
21
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
22
+ copies of the Software, and to permit persons to whom the Software is
23
+ furnished to do so, subject to the following conditions:
24
+
25
+ The above copyright notice and this permission notice shall be included in all
26
+ copies or substantial portions of the Software.
27
+
28
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
29
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
30
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
31
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
32
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
33
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34
+ SOFTWARE.
35
+
36
+ Lucide icons, ISC (including Feather-derived MIT portions):
37
+
38
+ ISC License
39
+
40
+ Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
41
+
42
+ Permission to use, copy, modify, and/or distribute this software for any
43
+ purpose with or without fee is hereby granted, provided that the above
44
+ copyright notice and this permission notice appear in all copies.
45
+
46
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
47
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
48
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
49
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
50
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
51
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
52
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright © 2010-2025 three.js authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/icon.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect x="3" y="5" width="26" height="23" rx="8" fill="#eddbc4"/><path d="M8 22v-7h16v7M10 22v4m12-4v4" fill="none" stroke="#776553" stroke-width="2.5" stroke-linecap="round"/><rect x="12" y="9" width="8" height="8" rx="3" fill="#fffaf0"/><circle cx="14.5" cy="12.5" r=".8" fill="#514339"/><circle cx="17.5" cy="12.5" r=".8" fill="#514339"/></svg>