moi-computer 0.3.1-next.0 → 0.3.1-next.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/client/api/workspace-keys.ts +2 -2
- package/client/app/AppRouter.tsx +0 -2
- package/client/app/shell/SidebarLayout.tsx +3 -16
- package/client/assets/openai.svg +1 -3
- package/client/components/shared/Composer.tsx +53 -2
- package/client/components/ui/button.tsx +1 -1
- package/client/components/ui/tooltip.tsx +12 -15
- package/client/features/chat/ChatComposer.tsx +25 -15
- package/client/features/chat/ChatPanel.tsx +5 -2
- package/client/features/chat/MarkdownContent.tsx +20 -2
- package/client/features/chat/ModelPicker.tsx +5 -3
- package/client/features/chat/TurnView.tsx +2 -2
- package/client/features/chat/chat-frames.ts +13 -6
- package/client/features/chat/chat-send.ts +1 -1
- package/client/features/chat/chat-store.ts +22 -17
- package/client/features/chat/tool-group/ToolOutput.tsx +4 -12
- package/client/features/chat/tool-group/format.ts +0 -6
- package/client/features/chat/useChat.ts +11 -2
- package/client/features/connectors/McpServerCards.tsx +95 -0
- package/client/features/connectors/api.ts +0 -11
- package/client/features/home/HomePage.tsx +33 -28
- package/client/features/home/api.ts +24 -12
- package/client/features/home/workspace-presentation.tsx +17 -15
- package/client/features/home/workspace-setup/CreateWorkspaceDialog.tsx +243 -0
- package/client/features/home/workspace-setup/ImportWorkspaceDialog.tsx +95 -0
- package/client/features/home/workspace-setup/WorkspaceAgentStep.tsx +230 -0
- package/client/features/home/workspace-setup/WorkspaceDialogContent.tsx +35 -0
- package/client/features/home/workspace-setup/useWorkspaceImport.ts +61 -0
- package/client/features/settings/ConnectorsSettings.tsx +89 -0
- package/client/features/settings/SettingsLayout.tsx +2 -2
- package/client/features/settings/WorkspaceSettings.tsx +8 -4
- package/client/features/views/ViewBuilderTab.tsx +19 -15
- package/client/features/views/useViewBuilderActions.ts +1 -1
- package/client/features/workspace/WorkspaceLayoutContext.tsx +3 -4
- package/client/features/workspace/WorkspaceScreen.tsx +11 -3
- package/client/features/workspace/api.ts +19 -1
- package/client/features/workspace/moi-context.ts +85 -0
- package/client/main.tsx +7 -4
- package/dist/{chunk-cs8vbert.js → chunk-1dfbr7n2.js} +2 -2
- package/dist/chunk-339jds4x.js +15 -0
- package/dist/chunk-3xsvsnhr.css +1 -0
- package/dist/{chunk-zpxrb1ce.js → chunk-anqmsbjt.js} +2 -2
- package/dist/chunk-hbvfb6sk.js +63 -0
- package/dist/{chunk-kxmvv1ax.js → chunk-qwm5f6qk.js} +1 -1
- package/dist/{chunk-axszxe4c.js → chunk-sxbfh73c.js} +1 -1
- package/dist/chunk-yp4srgqt.js +10 -0
- package/dist/index.html +1 -1
- package/dist/openai-ep9ht2pq.svg +1 -0
- package/lib/ids.ts +15 -0
- package/lib/moi-context.ts +170 -0
- package/lib/types.ts +29 -11
- package/lib/view-builder-directives.ts +16 -0
- package/lib/workspace-types.ts +12 -0
- package/package.json +2 -1
- package/server/api.ts +92 -30
- package/server/harness/README.md +25 -9
- package/server/harness/claude-code/NOTES.md +20 -6
- package/server/harness/claude-code/adapter.ts +2 -2
- package/server/harness/claude-code/git-worktree.ts +32 -0
- package/server/harness/claude-code/index.ts +32 -12
- package/server/harness/claude-code/mcp.ts +16 -65
- package/server/harness/claude-code/models.ts +3 -0
- package/server/harness/claude-code/session.ts +196 -61
- package/server/harness/codex/NOTES.md +41 -11
- package/server/harness/codex/adapter.ts +21 -7
- package/server/harness/codex/client.ts +33 -17
- package/server/harness/codex/discovery.ts +114 -0
- package/server/harness/codex/index.ts +9 -5
- package/server/harness/codex/probe.ts +4 -2
- package/server/harness/codex/session.ts +57 -5
- package/server/harness/executable.ts +82 -0
- package/server/harness/openclaw/adapter.ts +8 -1
- package/server/harness/openclaw/index.ts +8 -14
- package/server/harness/openclaw/session.ts +50 -10
- package/server/harness/openclaw/strip.ts +2 -2
- package/server/harness/shell-path.ts +79 -0
- package/server/harness/types.ts +22 -5
- package/server/registry.ts +57 -12
- package/server/view-builders.ts +3 -2
- package/server/web.ts +24 -8
- package/server/workspace-import.ts +45 -0
- package/workspace/.claude/skills/moi-workspace/SKILL.md +3 -3
- package/client/features/connectors/ConnectorsPage.tsx +0 -92
- package/client/features/connectors/McpMenu.tsx +0 -145
- package/client/features/home/CreateWorkspaceDialog.tsx +0 -130
- package/client/features/home/CreateWorkspaceDialogSteps.tsx +0 -234
- package/dist/chunk-4vf1t6v1.js +0 -10
- package/dist/chunk-b3ynfk4g.js +0 -62
- package/dist/chunk-b4b276wx.js +0 -15
- package/dist/chunk-npwq6jmr.css +0 -1
- package/dist/openai-h13pza4b.svg +0 -3
- package/lib/view-builder-meta.ts +0 -35
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as S,E as Wz,
|
|
1
|
+
import{C as S,E as Wz,aa as H,ba as Az,fa as Kz}from"/chunk-339jds4x.js";import{Da as I,Ea as _z,ga as h,ha as D}from"/chunk-yp4srgqt.js";import{Ec as A}from"/chunk-vkvb3hjm.js";var Y=A(h(),1);var K=A(D(),1),kz=[{label:"Trivial",prompt:"Reply with exactly: pong"},{label:"Reasoning",prompt:"Think carefully: a farmer has 17 sheep, all but 9 run away, then he buys twice as many as remain. How many sheep now? Reason it out before answering."},{label:"Command",prompt:"Run `ls -la` and summarize what you see in one sentence."},{label:"File edit",prompt:"Create or overwrite scratch.txt with three random words, one per line."},{label:"Plan",prompt:"Make a 3-step plan (use your plan tool) for adding a README to this folder, then execute it."},{label:"Subagent",prompt:"Spawn a subagent (collab/agent tool) to count the files in this directory and report back its answer."},{label:"Web search",prompt:"Search the web for the current Bun version and tell me what you find."},{label:"Slow (interrupt me)",prompt:"Run this exact command: sleep 30 && echo done. Nothing else."}];function Iz(_,Z=110){let Q=JSON.stringify(_);if(!Q)return"";return Q.length>Z?Q.slice(0,Z)+"…":Q}function c(_){let Z=_;if(typeof Z?.method==="string")return"id"in Z?`${Z.method} #${Z.id}`:Z.method;if("id"in(Z??{}))return`response #${Z.id}`;if(typeof Z?.kind==="string")return`${Z.kind}`;if(typeof Z?.type==="string")return`${Z.type}`;return"?"}function Cz(_){return new Date(_).toLocaleTimeString("en-GB",{hour12:!1})+"."+String(_%1000).padStart(3,"0")}function i({time:_,badge:Z,badgeClass:Q,label:J,body:X}){return K.jsxs("details",{className:"group border-b border-border/40 px-2 py-1 text-[11px] leading-tight",children:[K.jsxs("summary",{className:"flex cursor-pointer items-baseline gap-2 font-mono whitespace-nowrap",children:[K.jsx("span",{className:"text-muted-foreground/60 tabular-nums",children:Cz(_)}),K.jsx("span",{className:I("rounded px-1 font-semibold",Q),children:Z}),K.jsx("span",{className:"shrink-0 font-semibold",children:J}),K.jsx("span",{className:"truncate text-muted-foreground",children:Iz(X)})]}),K.jsx("pre",{className:"mt-1 max-h-80 overflow-auto rounded bg-muted p-2 text-[10px] whitespace-pre-wrap",children:JSON.stringify(X,null,2)})]})}function l({title:_,hint:Z,onClear:Q,children:J}){let X=Y.useRef(null),[B,U]=Y.useState(!0);return Y.useEffect(()=>{if(B&&X.current)X.current.scrollTop=X.current.scrollHeight}),K.jsxs("div",{className:"flex min-h-0 flex-1 flex-col rounded-lg border border-border bg-background",children:[K.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-2 py-1",children:[K.jsx("span",{className:"text-xs font-semibold",children:_}),Z&&K.jsx("span",{className:"truncate text-[10px] text-muted-foreground",children:Z}),K.jsx("span",{className:"grow"}),K.jsxs("label",{className:"flex items-center gap-1 text-[10px] text-muted-foreground",children:[K.jsx("input",{type:"checkbox",checked:B,onChange:(F)=>U(F.target.checked)}),"follow"]}),Q&&K.jsx(H,{type:"button",variant:"ghost",size:"sm",onClick:Q,children:"Clear"})]}),K.jsx("div",{ref:X,className:"min-h-0 flex-1 overflow-y-auto",children:J})]})}function $z(){let[_,Z]=Y.useState([]),[Q,J]=Y.useState(""),[X,B]=Y.useState([]),[U,F]=Y.useState(""),[L,g]=Y.useState(""),[E,p]=Y.useState(!0),[$,q]=Y.useState(()=>crypto.randomUUID()),[M,G]=Y.useState(!0),[b,C]=Y.useState(""),[m,Nz]=Y.useState(null),[yz,w]=Y.useState([]),[j,Qz]=Y.useState([]),[Yz,x]=Y.useState(null),[d,Bz]=Y.useState(!1),u=Y.useRef(0),P=Y.useRef(null),Fz=Y.useRef(0),k=Y.useRef($);k.current=$,Y.useEffect(()=>{fetch("/api/workspaces").then((z)=>z.json()).then((z)=>{Z(z),J((N)=>N||(z[0]?.id??""))}).catch(()=>{})},[]);let v=_.find((z)=>z.id===Q)?.type??"claude-code";Y.useEffect(()=>{if(!Q)return;fetch(`/api/workspaces/${Q}/models`).then((z)=>z.json()).then((z)=>B(z.models)).catch(()=>B([]))},[Q]),Y.useEffect(()=>{q(crypto.randomUUID()),G(!0),x(null)},[Q]),Y.useEffect(()=>{if(!Q)return;u.current=0,w([]);let z=setInterval(async()=>{try{let N=await fetch(`/api/workspaces/${Q}/harness/debug?sinceWire=${u.current}&sinceBroadcast=-1`);if(!N.ok)return;let O=await N.json();if(Nz(O.process),O.wire.length)u.current=O.wire[O.wire.length-1].seq,w((f)=>[...f,...O.wire].slice(-1000))}catch{}},1000);return()=>clearInterval(z)},[Q]),Y.useEffect(()=>{if(!Q)return;let z=new WebSocket(_z("/ws"));return P.current=z,z.onmessage=(N)=>{try{let O=JSON.parse(String(N.data));if(O.workspaceId&&O.workspaceId!==Q)return;if(O.type==="session_renamed"&&O.from===k.current)q(O.to),G(!1);Qz((f)=>[...f,{seq:++Fz.current,ts:Date.now(),frame:O}].slice(-1000))}catch{}},()=>{P.current=null,z.close()}},[Q]);let Zz=Y.useCallback((z)=>{if(!z.trim()||!P.current||P.current.readyState!==WebSocket.OPEN)return;P.current.send(JSON.stringify({type:"chat",workspaceId:Q,sessionId:k.current,isNew:M,content:z,optimisticId:crypto.randomUUID(),...U?{model:U}:{},...L?{effort:L}:{},stream:E})),G(!1)},[Q,M,U,L,E]),Lz=Y.useCallback(()=>{P.current?.send(JSON.stringify({type:"stop",workspaceId:Q,sessionId:k.current}))},[Q]),Ez=Y.useCallback(()=>{q(crypto.randomUUID()),G(!0),x(null)},[]),Pz=Y.useCallback(async()=>{let z=await fetch(`/api/workspaces/${Q}/sessions/${k.current}/events`);x(z.ok?await z.json():[])},[Q]),Rz=Y.useMemo(()=>X.find((z)=>z.value===U)?.supportedEffortLevels??[],[X,U]),bz=Y.useMemo(()=>d?j.filter((z)=>z.frame.type!=="preview"):j,[j,d]);return K.jsxs("div",{className:"flex h-dvh flex-col gap-2 bg-muted p-2",children:[K.jsxs("div",{className:"flex flex-wrap items-center gap-2 rounded-lg border border-border bg-background px-2 py-1.5 text-xs",children:[K.jsx("span",{className:"font-semibold tracking-widest text-muted-foreground uppercase",children:"Harness debug"}),K.jsxs("select",{className:"rounded border border-border bg-background px-1 py-0.5",value:Q,onChange:(z)=>J(z.target.value),children:[_.length===0&&K.jsx("option",{value:"",children:"no workspaces"}),_.map((z)=>K.jsx("option",{value:z.id,children:`${z.name??z.displayPath??z.path} · ${z.type??"claude-code"}`},z.id))]}),K.jsxs("select",{className:"rounded border border-border bg-background px-1 py-0.5",value:U,onChange:(z)=>F(z.target.value),children:[K.jsx("option",{value:"",children:"default model"}),X.map((z)=>K.jsx("option",{value:z.value,children:z.displayName},z.value))]}),K.jsxs("select",{className:"rounded border border-border bg-background px-1 py-0.5",value:L,onChange:(z)=>g(z.target.value),children:[K.jsx("option",{value:"",children:"default effort"}),Rz.map((z)=>K.jsx("option",{value:z,children:z},z))]}),K.jsxs("label",{className:"flex items-center gap-1",children:[K.jsx("input",{type:"checkbox",checked:E,onChange:(z)=>p(z.target.checked)}),"stream"]}),K.jsx("span",{className:"grow"}),v==="codex"&&K.jsx("span",{className:I("rounded px-1.5 py-0.5 font-mono text-[10px]",m?.running?"bg-green-500/15 text-green-600":"bg-muted text-muted-foreground"),children:m?.running?`app-server pid ${m.pid}`:"app-server not running"}),K.jsxs("span",{className:"max-w-56 truncate font-mono text-[10px] text-muted-foreground",children:["thread ",$]}),K.jsx(H,{type:"button",size:"sm",variant:"outline",onClick:Ez,children:"New thread"}),K.jsx(H,{type:"button",size:"sm",variant:"outline",onClick:Lz,children:"Stop"})]}),K.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 rounded-lg border border-border bg-background px-2 py-1.5",children:[kz.map((z)=>K.jsx(H,{type:"button",size:"sm",variant:"secondary",onClick:()=>Zz(z.prompt),children:z.label},z.label)),K.jsx("input",{className:"min-w-48 grow rounded border border-border bg-background px-2 py-1 text-xs",placeholder:"or type a custom prompt and hit Enter…",value:b,onChange:(z)=>C(z.target.value),onKeyDown:(z)=>{if(z.key==="Enter")Zz(b),C("")}})]}),K.jsxs("div",{className:"flex min-h-0 flex-1 gap-2",children:[K.jsx(l,{title:v==="codex"?"App-server wire":"Harness wire",hint:v==="codex"?"raw JSON-RPC, both directions":v==="openclaw"?"no wire tap for OpenClaw yet":"raw Agent SDK messages + enqueued inputs",onClear:()=>w([]),children:yz.map((z)=>K.jsx(i,{time:z.ts,badge:z.dir==="send"?"→":"←",badgeClass:z.dir==="send"?"bg-blue-500/15 text-blue-600":"bg-amber-500/15 text-amber-600",label:c(z.frame),body:z.frame},z.seq))}),K.jsxs(l,{title:"Client frames",hint:"what the browser receives on /ws",onClear:()=>Qz([]),children:[K.jsx("div",{className:"border-b border-border/40 px-2 py-1",children:K.jsxs("label",{className:"flex items-center gap-1 text-[10px] text-muted-foreground",children:[K.jsx("input",{type:"checkbox",checked:d,onChange:(z)=>Bz(z.target.checked)}),"hide preview frames"]})}),bz.map((z)=>K.jsx(i,{time:z.ts,badge:"ws",badgeClass:"bg-purple-500/15 text-purple-600",label:c(z.frame),body:z.frame},z.seq))]}),K.jsxs(l,{title:"Durable events",hint:"GET /sessions/:id/events replay",children:[K.jsx("div",{className:"border-b border-border/40 px-2 py-1",children:K.jsx(H,{type:"button",size:"sm",variant:"secondary",onClick:Pz,children:"Fetch events"})}),Yz?.map((z,N)=>K.jsx(i,{time:Date.now(),badge:"ev",badgeClass:"bg-teal-500/15 text-teal-600",label:c(z),body:z},N)),Yz?.length===0&&K.jsx("div",{className:"p-2 text-[11px] text-muted-foreground",children:"no events"})]})]})]})}var n=A(h(),1);var y=A(h(),1);var T=A(D(),1),vz=5,hz=5,qz=[".....","####.","#.#.#","#.#.#","#.#.#"];function Jz(_){return _.map((Z)=>[...Z].map((Q)=>Q==="#"))}function Sz(){return Array.from({length:hz},()=>Array.from({length:vz},()=>!1))}function Xz(){let[_,Z]=y.useState(()=>Jz(qz)),[Q,J]=y.useState(!1),X=y.useRef(!0),[B,U]=y.useState(!1);y.useEffect(()=>{let $=()=>J(!1);return window.addEventListener("mouseup",$),()=>window.removeEventListener("mouseup",$)},[]);function F($,q,M){Z((G)=>{if(G[$][q]===M)return G;let b=G.map((C)=>C.slice());return b[$][q]=M,b})}function L($,q){let M=!_[$][q];X.current=M,J(!0),F($,q,M)}function g($,q){if(Q)F($,q,X.current)}let E=_.map(($)=>$.map((q)=>q?"#":".").join("")).join(`
|
|
2
2
|
`);async function p(){await navigator.clipboard.writeText(E),U(!0),setTimeout(()=>U(!1),1200)}return T.jsxs("div",{className:"flex flex-col items-center gap-4",children:[T.jsx("div",{className:"grid w-fit grid-cols-[repeat(5,28px)] gap-px bg-border p-px select-none",children:_.map(($,q)=>$.map((M,G)=>T.jsx("div",{onMouseDown:()=>L(q,G),onMouseEnter:()=>g(q,G),className:I("size-7 cursor-pointer",M?"bg-foreground":"bg-background")},`${q}-${G}`)))}),T.jsx("pre",{className:"rounded-md border border-border bg-card px-3 py-2 text-center font-mono text-sm leading-snug text-card-foreground",children:E}),T.jsxs("div",{className:"flex gap-2",children:[T.jsx(H,{type:"button",size:"sm",onClick:p,children:B?"Copied!":"Copy"}),T.jsx(H,{type:"button",variant:"secondary",size:"sm",onClick:()=>Z(Sz()),children:"Clear"}),T.jsx(H,{type:"button",variant:"secondary",size:"sm",onClick:()=>Z(Jz(qz)),children:"Reset"})]})]})}var V=A(D(),1),gz=[{value:"moi",label:"M"},{value:"moi-full",label:"moi"}],pz=[{value:"none",label:"None"},{value:"wave",label:"Wave"},{value:"chaos",label:"Random"}];function Hz({options:_,value:Z,onChange:Q}){return V.jsx("div",{className:"flex gap-1 rounded-lg bg-accent p-1",children:_.map((J)=>V.jsx(H,{type:"button",variant:Z===J.value?"default":"ghost",size:"sm",onClick:()=>Q(J.value),children:J.label},String(J.value)))})}function Gz(){let[_,Z]=n.useState("moi"),[Q,J]=n.useState("none");return V.jsxs("div",{className:"relative flex min-h-dvh flex-col items-center justify-center gap-8 bg-muted",children:[V.jsx("span",{className:"absolute top-5 left-5 text-[11px] font-medium tracking-widest text-muted-foreground uppercase",children:"Playground"}),V.jsx(Xz,{}),V.jsx(Az,{sprite:_,effect:Q==="none"?void 0:Q,pixelSize:3,gap:0.5}),V.jsxs("div",{className:"flex flex-col items-center gap-2",children:[V.jsx(Hz,{options:gz,value:_,onChange:Z}),V.jsx(Hz,{options:pz,value:Q,onChange:J})]})]})}var Dz=A(h(),1);var r="/Users/kim/git/confetti",Oz={toolCallId:"toolu_fixture_tool_search",name:"ToolSearch",caller:"model",provider:"claude-code",state:"success",input:{query:"select:mcp__notion__notion-search,mcp__notion__notion-get-teams,mcp__notion__notion-get-users",max_results:3},output:`mcp__notion__notion-search
|
|
3
3
|
mcp__notion__notion-get-teams
|
|
4
4
|
mcp__notion__notion-get-users`},Uz={toolCallId:"toolu_fixture_notion_search",name:"mcp__notion__notion-search",caller:"model",provider:"claude-code",state:"success",input:{query:"project notes docs overview",query_type:"internal",page_size:25},output:'{"results":[{"id":"3f1c9a72-0d62-4511-9dc9-5b7f38409a22","title":"Reading List","url":"https://app.notion.com/p/3f1c9a720d6245119dc95b7f38409a22?pvs=1","type":"page","highlight":"Reading List","timestamp":"2024-10-17T13:51:00.000Z"},{"id":"8b2d17aa-6741-4993-88bc-5adf2dabb8da","title":"To-Do","url":"https://app.notion.com/p/8b2d17aa6741499388bc5adf2dabb8da?pvs=1","type":"page","highlight":"canvas-confetti performance notes and particle pooling","timestamp":"2026-06-15T13:14:00.000Z"},{"id":"244536fd-e65b-433f-92bf-aa95efa91f35","title":"Plans & Notes","url":"https://app.notion.com/p/244536fde65b433f92bfaa95efa91f35?pvs=1","type":"database","highlight":"Plans & Notes","timestamp":"2024-02-06T10:02:00.000Z"},{"id":"5a668c31-b678-4035-b58e-d33e3ce86f5e","title":"Animation Research","url":"https://app.notion.com/p/5a668c31b6784035b58ed33e3ce86f5e?pvs=1","type":"page","highlight":"spring easings vs. bezier — generate N particle bursts in parallel and compare frame budgets","timestamp":"2025-11-03T08:07:00.000Z"},{"id":"41c28e19-b678-40df-ade3-dd8cec63de64","title":"Roadmap","url":"https://app.notion.com/p/41c28e19b67840dfade3dd8cec63de64?pvs=1","type":"database","highlight":"Roadmap","timestamp":"2026-06-09T08:00:00.000Z"},{"id":"6d9e2f44-b678-423e-9795-01de5d5f6734","title":"Meeting notes","url":"https://app.notion.com/p/6d9e2f44b678423e979501de5d5f6734?pvs=1","type":"database","highlight":"Meeting notes","timestamp":"2025-11-06T15:22:00.000Z"},{"id":"7fa31c55-b678-401d-948f-c47118e21516","title":"illustrations","url":"https://app.notion.com/p/7fa31c55b678401d948fc47118e21516?pvs=1","type":"page","highlight":"illustrations","timestamp":"2026-06-09T18:01:00.000Z"},{"id":"92e4b5c8-8d50-4938-8808-716a4e89dba6","title":"Weekly Update: March 4","url":"https://app.notion.com/p/92e4b5c88d5049388808716a4e89dba6?pvs=1","type":"page","highlight":"add backlog project for migrating v1 users","timestamp":"2022-07-30T18:34:00.000Z"},{"id":"1c778a02-b678-407b-9340-e1e830e38c50","title":"demo site","url":"https://app.notion.com/p/1c778a02b678407b9340e1e830e38c50?pvs=1","type":"page","highlight":"Interactive playground (CodeSandbox style)","timestamp":"2026-06-15T08:15:00.000Z"},{"id":"e3558d21-b678-406b-9a90-efaac9d864cf","title":"Feature Requests","url":"https://app.notion.com/p/e3558d21b678406b9a90efaac9d864cf?pvs=1","type":"database","highlight":"Feature Requests","timestamp":"2026-03-09T13:03:00.000Z"},{"id":"a91f4c6e-ce16-4002-bcb1-ead4923b9963","title":"Beta feedback","url":"https://app.notion.com/p/a91f4c6ece164002bcb1ead4923b9963?pvs=1","type":"database","highlight":"Beta feedback","timestamp":"2026-04-22T11:56:00.000Z"},{"id":"b0537e88-b678-40f3-8f04-cc7fef16e055","title":"confetti-v2","url":"https://app.notion.com/p/b0537e88b67840f38f04cc7fef16e055?pvs=1","type":"page","highlight":"WebGL renderer spike — offscreen canvas + worker, fall back to 2d context","timestamp":"2026-04-21T09:42:00.000Z"},{"id":"c6b19d34-b678-4145-9023-ffb37c04037d","title":"Physics Notes","url":"https://app.notion.com/p/c6b19d34b67841459023ffb37c04037d?pvs=1","type":"page","highlight":"Physics Notes","timestamp":"2026-04-21T13:07:00.000Z"},{"id":"d84a6f10-b678-41ea-845c-d7cc7c2ad2c4","title":"Docs Outline","url":"https://app.notion.com/p/d84a6f10b67841ea845cd7cc7c2ad2c4?pvs=1","type":"page","highlight":"\uD83D\uDCD8 Getting started — full walkthrough (install, first burst, presets)","timestamp":"2026-06-09T08:44:00.000Z"},{"id":"f2c07b45-b678-402c-a8e7-d897826cf96d","title":"old","url":"https://app.notion.com/p/f2c07b45b678402ca8e7d897826cf96d?pvs=1","type":"page","highlight":"Notes:","timestamp":"2026-03-06T16:31:00.000Z"},{"id":"09d6e2a7-9908-4d54-be46-a974ac5019da","title":"Weekly Update: Jan 28","url":"https://app.notion.com/p/09d6e2a799084d54be46a974ac5019da'},mz={toolCallId:"toolu_fixture_notion_fetch_oss",name:"mcp__notion__notion-fetch",caller:"model",provider:"claude-code",state:"success",input:{id:"55e1c208-1f0f-47cd-9422-bd7dbc54d536"},output:'{"metadata":{"type":"page"},"title":"\uD83D\uDEE5 Open-Source","url":"https://app.notion.com/p/55e1c2081f0f47cd9422bd7dbc54d536","text":"Here is the result of \\"view\\" for the Page with URL https://app.notion.com/p/55e1c2081f0f47cd9422bd7dbc54d536 as of 2026-05-29T13:08:56.275Z:\\n<page url=\\"https://app.notion.com/p/55e1c2081f0f47cd9422bd7dbc54d536\\" icon=\\"\uD83D\uDEE5\\">\\n<ancestor-path></ancestor-path>\\n<properties>\\n{\\"title\\":\\"Open-Source\\"}\\n</properties>\\n<content>\\n<page url=\\"https://app.notion.com/p/71a2b39c6438406fac456aeef33a046d\\">tinyrouter</page>\\n<page url=\\"https://app.notion.com/p/83b4c5de45af40c28a19f635332f9c4c\\">confetti</page>\\n<page url=\\"https://app.notion.com/p/95c6d7f0210d42e0888168401a40345e\\">mdnav</page>\\n<page url=\\"https://app.notion.com/p/07d8e912111a4df295726341c22decbc\\">pixelpad</page>\\n<page url=\\"https://app.notion.com/p/19e0fb3405c743628f0c0b864b4182ee\\">`use-sparkle`</page>\\n<page url=\\"https://app.notion.com/p/2bf21c561e5d4e888f6cdb86e5adcb9d\\">use-hotkey</page>\\n<empty-block/>\\n<empty-block/>\\n</content>\\n</page>"}'},wz={toolCallId:"toolu_fixture_notion_fetch_confetti",name:"mcp__notion__notion-fetch",caller:"model",provider:"claude-code",state:"success",input:{id:"83b4c5de-45af-40c2-8a19-f635332f9c4c"},output:'{"metadata":{"type":"page"},"title":"confetti","url":"https://app.notion.com/p/83b4c5de45af40c28a19f635332f9c4c","text":"Here is the result of \\"view\\" for the Page with URL https://app.notion.com/p/83b4c5de45af40c28a19f635332f9c4c as of 2024-04-19T10:05:10.098Z:\\n<page url=\\"https://app.notion.com/p/83b4c5de45af40c28a19f635332f9c4c\\">\\n<ancestor-path>\\n<parent-page url=\\"https://app.notion.com/p/55e1c2081f0f47cd9422bd7dbc54d536\\" title=\\"Open-Source\\"/>\\n</ancestor-path>\\n<properties>\\n{\\"title\\":\\"confetti\\"}\\n</properties>\\n<content>\\n- [x] Split the physics step from the render step\\n- [x] Basic React API\\n\\t- [x] Controlled/uncontrolled\\n\\t- [x] SSR: ok! No canvas until mount\\n\\t- [x] Detach on unmount\\n\\t- [x] `asChild` prop\\n\\t- [x] Block elements and `tagName`\\n\\t- [x] Fire on `click`\\n\\t- [x] Pass particle options\\n\\t- [x] asChild types\\n\\t- [x] Reduced-motion fallback\\n- [x] Pause bursts when the tab is hidden (VisibilityObserver)\\n- [x] Default burst has no trail. Needs a wrapper that disables the selector via `:has` — but then how do block elements animate? And `asChild` breaks.\\n- [x] Dark/light theme, none, auto, accent color\\n- [x] Demo: light/dark theme\\n- [x] `useIsomorphicLayoutEffect`\\n- [x] Particle pooling (no per-frame allocs)\\n- [x] Build and package\\n- [x] Publish a canary and dogfood it on the demo site\\n- [x] Fallback for Safari + Firefox: pre-rendered sprite sheet, three layers offset by primes 3, 5, 7 — loop four frames\\n- [x] data-active\\n- [x] pixelRatio for the fallback\\n- [x] How should styles load? Ship them separately.\\n- [x] Simple README\\n- [x] Get the easing curve right\\n- [ ] Use inline style in SSR\\n<empty-block/>\\n```javascript\\n// Default confetti: uncontrolled, light theme, fires on click, creates an\\n// inline <span> wrapper, no trail, does not follow the pointer\\n\\n/**\\n * Elements \\n */\\n<Confetti>Party!</Confetti> // <span>Party!</span>\\n<Confetti className=\\"custom\\">Party!</Confetti>\\n\\n// block elements \\n<Confetti block><img /></Confetti> // <div><img /></div>\\n<Confetti tagName=\\"div\\"><img /></Confetti> // alias\\n\\n// advanced\\n<Confetti asChild><button aria-label=\\"celebrate\\" /></Confetti>\\n\\n/**\\n * Controlled/uncontrolled component \\n */\\n\\n<Confetti /> // fires on click, uncontrolled\\n<Confetti fireOn=\\"click\\" />\\n<Confetti fireOn=\\"hover\\" />\\n<Confetti defaultActive={false} onChange={(value) => change} />\\n\\n// when `active` is provided, it becomes controlled and\\n// `fireOn` and `defaultActive` have no effect \\n<Confetti active={true}>Always bursting</Confetti> // controlled\\n<Confetti active={value} onClick={() => setValue()}</Confetti> // controlled\\n\\n/** \\n * Theming \\n */\\n\\n<Confetti /> // default theme is `light`\\n<Confetti theme=\\"dark\\" />\\n<Confetti theme=\\"auto\\" /> // system-defined\\n<Confetti theme=\\"dark\\" accentColor=\\"red\\" /> // use `colord` here\\n\\n/**\\n * Particle options\\n */\\n<Confetti count={120} gravity={0.8} spread={60}>Boom</Confetti>\\n<Confetti preset=\\"fireworks\\">Boom</Confetti>\\n\\n/** \\n * Styling \\n */\\n\\nimport { Confetti } from \\"confetti\\"\\n\\nimport { Confetti } from \\"confetti/unstyled\\"\\nimport \\"confetti/styles.css\\"\\n```\\n<empty-block/>\\n<empty-block/>\\n<page url=\\"https://app.notion.com/p/3dc43e781e5d4e888f6cdb86e5adcb00\\">Confetti: website</page>\\n</content>\\n</page>"}'},Vz={toolCallId:"toolu_fixture_bash_pwd",name:"Bash",caller:"model",provider:"claude-code",state:"success",input:{command:'pwd && echo "---" && ls -la && echo "--- git ---" && git rev-parse --is-inside-work-tree 2>/dev/null && git remote -v 2>/dev/null',description:"Show current directory and git info"},output:`/Users/kim/git/confetti
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Hc as a}from"/chunk-vkvb3hjm.js";if(typeof globalThis.structuredClone==="function")globalThis.structuredClone=globalThis.structuredClone.bind(globalThis);async function e(r){let{mount:t}=await import("/chunk-
|
|
1
|
+
import{Hc as a}from"/chunk-vkvb3hjm.js";if(typeof globalThis.structuredClone==="function")globalThis.structuredClone=globalThis.structuredClone.bind(globalThis);async function e(r){let{mount:t}=await import("/chunk-hbvfb6sk.js");t(r)}globalThis.__init=e;
|