moi-computer 0.9.1-next.4 → 0.10.0

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.
Files changed (62) hide show
  1. package/README.md +124 -58
  2. package/client/app/shell/SidebarLayout.tsx +114 -69
  3. package/client/assets/floppy-disk.webp +0 -0
  4. package/client/assets.d.ts +5 -0
  5. package/client/components/ui/button.tsx +2 -1
  6. package/client/features/chat/ChatEmptyState.tsx +70 -34
  7. package/client/features/chat/ChatPanel.tsx +8 -1
  8. package/client/features/chat/chat-store.ts +4 -0
  9. package/client/features/chat/tool-group/format/claude.ts +2 -1
  10. package/client/features/chat/tool-group/format/codex.ts +2 -1
  11. package/client/features/chat/tool-group/format/hermes.ts +2 -1
  12. package/client/features/chat/tool-group/format/mcp.ts +7 -3
  13. package/client/features/chat/tool-group/format/openclaw.ts +6 -2
  14. package/client/features/chat/tool-group/format/shell.ts +162 -0
  15. package/client/features/dev/DevIndexPage.tsx +5 -0
  16. package/client/features/dev/DevRoutes.tsx +2 -0
  17. package/client/features/dev/TextureLabPage.tsx +149 -0
  18. package/client/features/home/HomePage.tsx +5 -5
  19. package/client/features/home/workspace-setup/CreateWorkspaceDialog.tsx +3 -3
  20. package/client/features/home/workspace-setup/DemoDialog.tsx +239 -0
  21. package/client/features/home/workspace-setup/WorkspaceAgentStep.tsx +22 -5
  22. package/client/features/settings/GeneralSettings.tsx +27 -23
  23. package/client/features/update/Update.tsx +78 -0
  24. package/client/features/update/api.ts +35 -0
  25. package/client/features/widgets/WidgetFrame.tsx +1 -0
  26. package/client/features/workspace/WorkspaceScreen.tsx +15 -0
  27. package/client/index.css +2 -2
  28. package/client/runtime/workspace-theme.ts +12 -4
  29. package/client/theme.css +26 -22
  30. package/dist/{chunk-zbt8emsw.js → chunk-0set7tmf.js} +2 -2
  31. package/dist/chunk-4057kxht.css +1 -0
  32. package/dist/{chunk-zcyvyebg.js → chunk-5t06zksf.js} +2 -2
  33. package/dist/{chunk-zbeq02yc.js → chunk-97eg9mjn.js} +1 -1
  34. package/dist/chunk-b5c62p8h.js +1 -0
  35. package/dist/chunk-dfe7qnrp.js +1 -0
  36. package/dist/{chunk-b959mdkj.js → chunk-efdyz6xp.js} +1 -1
  37. package/dist/chunk-f6xmz3tn.js +83 -0
  38. package/dist/chunk-h2kj1ysj.js +1 -0
  39. package/dist/{chunk-zfz3b4xg.js → chunk-ht1f95h9.js} +2 -2
  40. package/dist/chunk-qtc5a8qa.js +10 -0
  41. package/dist/floppy-disk-wmjs0n85.webp +0 -0
  42. package/dist/index.html +1 -1
  43. package/lib/ids.ts +27 -0
  44. package/lib/themes.ts +12 -12
  45. package/lib/types.ts +11 -2
  46. package/lib/update.ts +2 -0
  47. package/package.json +2 -1
  48. package/server/api.ts +47 -1
  49. package/server/app-config.ts +2 -2
  50. package/server/bundler/build-applet.ts +2 -3
  51. package/server/cli.ts +30 -7
  52. package/server/constants.ts +4 -2
  53. package/server/registry.ts +37 -2
  54. package/server/update.ts +293 -5
  55. package/server/web.ts +1 -1
  56. package/client/features/home/workspace-setup/InstallMoiDialog.tsx +0 -245
  57. package/dist/chunk-87q78504.js +0 -1
  58. package/dist/chunk-8s41nd3g.js +0 -1
  59. package/dist/chunk-cagtq45k.js +0 -1
  60. package/dist/chunk-ek6zde7t.js +0 -10
  61. package/dist/chunk-n8tq2494.js +0 -82
  62. package/dist/chunk-v82nefjq.css +0 -1
@@ -0,0 +1 @@
1
+ import{a}from"/chunk-pcnahct1.js";import"/chunk-97eg9mjn.js";export{a as sanitizeSvg};
@@ -1,2 +1,2 @@
1
- import{Sc as H,Tc as w}from"/chunk-zbeq02yc.js";var t=w((S,b)=>{b.exports=globalThis.__esm.react});var a=H(t(),1);function y(o){return`${location.protocol==="https:"?"wss":"ws"}://${location.host}${o}`}var i=new Set,T=new Set,$=!1,p=null,h=!1;function u(){if(p||h)return;h=!0;let o=new WebSocket(y("/api/workspaces/ws"));o.onopen=()=>{if(p=o,h=!1,$)for(let m of T)m();$=!0},o.onmessage=(m)=>{try{let g=JSON.parse(m.data);for(let x of i)x(g)}catch{}},o.onclose=()=>{if(p=null,h=!1,i.size>0)setTimeout(u,2000)},o.onerror=()=>{o.close()}}function B(o){return T.add(o),()=>{T.delete(o)}}function P(o){let m=a.useRef(o);m.current=o,a.useEffect(()=>{let g=(x)=>m.current(x);return i.add(g),u(),()=>{if(i.delete(g),i.size===0&&p)p.close(),p=null}},[])}
2
- export{t as Oc,y as Pc,B as Qc,P as Rc};
1
+ import{Wc as H,Xc as w}from"/chunk-97eg9mjn.js";var t=w((S,b)=>{b.exports=globalThis.__esm.react});var a=H(t(),1);function y(o){return`${location.protocol==="https:"?"wss":"ws"}://${location.host}${o}`}var i=new Set,T=new Set,$=!1,p=null,h=!1;function u(){if(p||h)return;h=!0;let o=new WebSocket(y("/api/workspaces/ws"));o.onopen=()=>{if(p=o,h=!1,$)for(let m of T)m();$=!0},o.onmessage=(m)=>{try{let g=JSON.parse(m.data);for(let x of i)x(g)}catch{}},o.onclose=()=>{if(p=null,h=!1,i.size>0)setTimeout(u,2000)},o.onerror=()=>{o.close()}}function B(o){return T.add(o),()=>{T.delete(o)}}function P(o){let m=a.useRef(o);m.current=o,a.useEffect(()=>{let g=(x)=>m.current(x);return i.add(g),u(),()=>{if(i.delete(g),i.size===0&&p)p.close(),p=null}},[])}
2
+ export{t as Sc,y as Tc,B as Uc,P as Vc};