moi-computer 0.10.1-next.0 → 0.10.1-next.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.
Files changed (49) hide show
  1. package/client/app/shell/SidebarLayout.tsx +3 -3
  2. package/client/components/shared/AgentBlobatar.tsx +93 -0
  3. package/client/features/chat/ChatEmptyState.tsx +122 -77
  4. package/client/features/chat/ChatPanel.tsx +22 -11
  5. package/client/features/chat/ChatPopup.tsx +23 -11
  6. package/client/features/chat/ChatPromptBubbles.tsx +1 -1
  7. package/client/features/chat/TurnView.tsx +0 -17
  8. package/client/features/chat/useChat.ts +10 -2
  9. package/client/features/chat/useStickToBottom.ts +1 -1
  10. package/client/features/dev/ChatStatesPage.tsx +17 -9
  11. package/client/features/workspace/CustomizePanel.tsx +33 -4
  12. package/client/features/workspace/WorkspaceScreen.tsx +17 -7
  13. package/client/features/workspace/WorkspaceTabs.tsx +5 -8
  14. package/client/index.css +22 -12
  15. package/client/index.tsx +1 -0
  16. package/client/theme.css +9 -0
  17. package/dist/{chunk-efdyz6xp.js → chunk-0pcdwjkp.js} +1 -1
  18. package/dist/chunk-4xmcsjjv.js +1 -0
  19. package/dist/{chunk-5t06zksf.js → chunk-8jh75pjg.js} +2 -2
  20. package/dist/{chunk-97eg9mjn.js → chunk-9y2zbzqz.js} +1 -1
  21. package/dist/chunk-dfs36zgc.js +1 -0
  22. package/dist/chunk-e4e993yf.js +83 -0
  23. package/dist/chunk-ek8w9tsp.css +1 -0
  24. package/dist/chunk-vq8ga42s.js +1 -0
  25. package/dist/{chunk-ht1f95h9.js → chunk-yhj9bg1s.js} +2 -2
  26. package/dist/{chunk-0set7tmf.js → chunk-yt2qjn3m.js} +2 -2
  27. package/dist/chunk-yz743a75.js +10 -0
  28. package/dist/index.html +1 -1
  29. package/lib/themes.ts +21 -3
  30. package/lib/types.ts +1 -1
  31. package/package.json +4 -2
  32. package/server/bundler/build-applet.ts +30 -0
  33. package/server/cli-ui-components.ts +258 -0
  34. package/server/cli.ts +48 -5
  35. package/server/control.ts +5 -3
  36. package/server/moi-scaffold.ts +9 -1
  37. package/server/skills-template.ts +5 -0
  38. package/server/theme.ts +17 -5
  39. package/server/ui-components.ts +545 -0
  40. package/workspace/.claude/skills/moi-workspace/SKILL.md +27 -6
  41. package/workspace/.claude/skills/moi-workspace/references/DESIGN.md +10 -2
  42. package/workspace/.claude/skills/moi-workspace/references/UI-COMPONENTS.md +211 -0
  43. package/client/components/shared/IconGhost.tsx +0 -127
  44. package/dist/chunk-4057kxht.css +0 -1
  45. package/dist/chunk-b5c62p8h.js +0 -1
  46. package/dist/chunk-dfe7qnrp.js +0 -1
  47. package/dist/chunk-f6xmz3tn.js +0 -83
  48. package/dist/chunk-h2kj1ysj.js +0 -1
  49. package/dist/chunk-qtc5a8qa.js +0 -10
@@ -0,0 +1 @@
1
+ import{Xc as r}from"/chunk-9y2zbzqz.js";if(typeof globalThis.structuredClone==="function")globalThis.structuredClone=globalThis.structuredClone.bind(globalThis);async function o(a){let[{mount:t}]=await Promise.all([import("/chunk-e4e993yf.js"),import("/chunk-4xmcsjjv.js").then((e)=>e.loadAppConfig())]);t(a)}globalThis.__init=o;
@@ -1,2 +1,2 @@
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};
1
+ import{Uc as H,Vc as w}from"/chunk-9y2zbzqz.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 Qc,y as Rc,B as Sc,P as Tc};
@@ -1,2 +1,2 @@
1
- import{Sc as w,Uc as s}from"/chunk-ht1f95h9.js";import{Wc as q}from"/chunk-97eg9mjn.js";var R=q(w(),1);async function i(o,t){let a=await o.text();return Error(a||t)}async function u(o,t,a="Request failed"){let n=await fetch(o,t);if(!n.ok)throw await i(n,a);return n.json()}async function T(o,t,a="Request failed"){let n=await fetch(o,t);if(!n.ok)throw await i(n,a)}function y(o,t){return{method:o,headers:{"Content-Type":"application/json"},body:t===void 0?void 0:JSON.stringify(t)}}var r={cloudDemo:!1,experiments:[],demoInstallUrl:"https://moi.computer"},d=r,e=new Set;function I(o){return e.add(o),()=>{e.delete(o)}}async function f(){try{d=await u("/api/config");for(let o of e)o()}catch{}}async function c(){await f(),s(()=>{f()})}function h(){return R.useSyncExternalStore(I,()=>d)}
2
- export{u as Nc,T as Oc,y as Pc,c as Qc,h as Rc};
1
+ import{Qc as w,Sc as s}from"/chunk-yhj9bg1s.js";import{Uc as q}from"/chunk-9y2zbzqz.js";var R=q(w(),1);async function i(o,t){let a=await o.text();return Error(a||t)}async function u(o,t,a="Request failed"){let n=await fetch(o,t);if(!n.ok)throw await i(n,a);return n.json()}async function T(o,t,a="Request failed"){let n=await fetch(o,t);if(!n.ok)throw await i(n,a)}function y(o,t){return{method:o,headers:{"Content-Type":"application/json"},body:t===void 0?void 0:JSON.stringify(t)}}var r={cloudDemo:!1,experiments:[],demoInstallUrl:"https://moi.computer"},d=r,e=new Set;function I(o){return e.add(o),()=>{e.delete(o)}}async function f(){try{d=await u("/api/config");for(let o of e)o()}catch{}}async function c(){await f(),s(()=>{f()})}function h(){return R.useSyncExternalStore(I,()=>d)}
2
+ export{u as Lc,T as Mc,y as Nc,c as Oc,h as Pc};