moi-computer 0.12.1-next.3 → 0.12.1-next.4
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/bunfig.toml +1 -5
- package/client/api/app-config.ts +1 -2
- package/client/api/app-ui-keys.ts +3 -1
- package/client/api/http.ts +4 -1
- package/client/api/workspace-keys.ts +3 -3
- package/client/app/app-provider.tsx +22 -2
- package/client/app/app-router.tsx +4 -0
- package/client/app/routes/home-route.tsx +14 -0
- package/client/app/routes/onboarding-route.tsx +11 -0
- package/client/app/routes/settings-route.tsx +1 -1
- package/client/app/routes/workspace-route.tsx +21 -19
- package/client/components/shared/screen-shell.tsx +23 -0
- package/client/components/shared/ultrafast-icon.tsx +61 -0
- package/client/components/shared/workspace-icon.tsx +2 -2
- package/client/features/account/account-test-utils.tsx +4 -3
- package/client/features/app-settings/api.ts +33 -0
- package/client/features/app-settings/general-settings.tsx +39 -0
- package/client/features/{settings → app-settings}/settings-page.tsx +5 -1
- package/client/features/chat/applet-chat-intents.ts +4 -20
- package/client/features/chat/chat-send.ts +17 -13
- package/client/features/chat/composer/model-order.ts +8 -4
- package/client/features/chat/composer/model-picker.tsx +88 -34
- package/client/features/chat/composer/use-workspace-composer-state.tsx +11 -3
- package/client/features/chat/composer/use-workspace-skill-updates.ts +1 -1
- package/client/features/chat/connection/chat-frames.ts +3 -15
- package/client/features/chat/messages/chat-empty-state.tsx +1 -4
- package/client/features/chat/messages/fork-history.ts +5 -5
- package/client/features/chat/messages/turn-view.tsx +3 -12
- package/client/features/chat/messages/user-message-bubble.tsx +63 -0
- package/client/features/chat/sessions/api.ts +121 -80
- package/client/features/chat/sessions/browser-tab-state.ts +14 -12
- package/client/features/chat/sessions/chat-selector.tsx +5 -6
- package/client/features/chat/sessions/use-selected-session.ts +172 -257
- package/client/features/chat/use-chat.ts +14 -19
- package/client/features/collab/workspace-users-menu.tsx +1 -1
- package/client/features/demo/demo-dialog.tsx +11 -3
- package/client/features/dev/dev-index-page.tsx +5 -0
- package/client/features/dev/dev-routes.tsx +2 -0
- package/client/features/dev/harness-debug-page.tsx +3 -3
- package/client/features/dev/onboarding-preview-page.tsx +76 -0
- package/client/features/dev/workspace-setup-mocks.ts +16 -14
- package/client/features/dev/workspace-setup-preview.tsx +11 -17
- package/client/features/harness/api.ts +45 -15
- package/client/features/harness/device-login-steps.tsx +9 -3
- package/client/features/harness/harness-login-panel.tsx +228 -0
- package/client/features/harness/harness-presentation.ts +15 -0
- package/client/features/harness/harness-selector.tsx +119 -0
- package/client/features/harness/use-harness-login.ts +77 -0
- package/client/features/home/home-page.tsx +7 -7
- package/client/features/onboarding/agent-setup-step.tsx +57 -0
- package/client/features/onboarding/api.ts +42 -0
- package/client/features/onboarding/onboarding-idea-disk.tsx +129 -0
- package/client/features/onboarding/onboarding-page.tsx +32 -0
- package/client/features/onboarding/onboarding-screen.tsx +20 -0
- package/client/features/onboarding/onboarding-status.tsx +24 -0
- package/client/features/onboarding/workspace-setup-step.tsx +239 -0
- package/client/features/overview/default/registry.tsx +2 -2
- package/client/features/overview/default/views-widget.tsx +6 -5
- package/client/features/overview/overview.tsx +9 -11
- package/client/features/overview/widget-canvas.tsx +1 -1
- package/client/features/overview/workspace-name.tsx +2 -2
- package/client/features/views/api.ts +69 -16
- package/client/features/views/pending-view-screen.tsx +30 -9
- package/client/features/views/use-view-actions.ts +19 -20
- package/client/features/views/view-presentation.ts +2 -2
- package/client/features/views/view-submission.ts +28 -41
- package/client/features/workspace/add/api.ts +3 -23
- package/client/features/workspace/add/create-workspace-dialog.tsx +6 -5
- package/client/features/workspace/add/import-workspace-dialog.tsx +3 -3
- package/client/features/workspace/add/workspace-agent-options.ts +11 -12
- package/client/features/workspace/add/workspace-agent-selector.tsx +3 -132
- package/client/features/workspace/api.ts +32 -36
- package/client/features/workspace/harness-transition.ts +88 -0
- package/client/features/{settings → workspace/settings}/api.ts +1 -34
- package/client/features/{settings → workspace/settings}/general-settings.tsx +76 -2
- package/client/features/{settings → workspace/settings}/use-env-vars.ts +1 -1
- package/client/features/{settings → workspace/settings}/workspace-icon-picker.tsx +3 -3
- package/client/features/workspace/setup/workspace-login-state.tsx +37 -156
- package/client/features/workspace/setup/workspace-recovery-states.tsx +0 -12
- package/client/features/workspace/setup/workspace-setup.tsx +34 -14
- package/client/features/workspace/setup/workspace-welcome-state.tsx +2 -2
- package/client/features/workspace/use-workspace-navigation.ts +25 -9
- package/client/features/workspace/workspace-content.tsx +11 -8
- package/client/features/workspace/workspace-frame.tsx +2 -1
- package/client/features/workspace/workspace-layout-context.tsx +5 -2
- package/client/features/workspace/workspace-menu.tsx +12 -8
- package/client/features/workspace/workspace-pending-screen.tsx +10 -10
- package/client/features/workspace/workspace-presentation.tsx +5 -13
- package/client/features/workspace/workspace-state.ts +169 -0
- package/client/features/workspace/workspace-tabs.tsx +22 -2
- package/client/index.css +2 -0
- package/client/index.tsx +3 -3
- package/client/lib/flags.ts +1 -1
- package/client/lib/{app-icon-registry.ts → identity-icon-registry.ts} +10 -14
- package/client/runtime/workspace-events.ts +21 -4
- package/client/runtime/workspace-theme.ts +9 -0
- package/client/tailwind-config.ts +43 -0
- package/dist/chunk-0mjzg20x.js +2 -0
- package/dist/chunk-2y59vrxg.js +5 -0
- package/dist/chunk-58dyt9bk.js +2 -0
- package/dist/chunk-5aj040e5.css +1 -0
- package/dist/{chunk-tqd3pkg8.css → chunk-60q353jq.css} +1 -1
- package/dist/chunk-71fn6rmj.js +546 -0
- package/dist/chunk-7yg1m8hx.js +2 -0
- package/dist/chunk-825hys3h.js +1 -0
- package/dist/chunk-9bb8m9rx.js +2 -0
- package/dist/{chunk-11cab5dq.css → chunk-cq2r11fg.css} +1 -1
- package/dist/chunk-g0tcwqxc.js +1 -0
- package/dist/chunk-n0nab26d.js +1 -0
- package/dist/chunk-nf2wkvf9.js +14 -0
- package/dist/chunk-v88n1bay.js +74 -0
- package/dist/index.html +1 -1
- package/lib/harness-instructions.ts +1 -1
- package/lib/{app-icons.ts → identity-icons.ts} +6 -7
- package/lib/onboarding.ts +41 -0
- package/lib/speed-mode.ts +5 -0
- package/lib/types.ts +71 -62
- package/lib/view-build-directives.ts +1 -2
- package/lib/workspace-icon.ts +2 -2
- package/lib/workspace-layout.ts +1 -1
- package/lib/workspace-name.ts +15 -12
- package/package.json +9 -8
- package/server/README.md +27 -25
- package/server/api/harnesses.ts +31 -8
- package/server/api/index.ts +163 -126
- package/server/api/onboarding.ts +46 -0
- package/server/app-config.ts +16 -24
- package/server/app-settings.ts +6 -2
- package/server/applets/config.ts +5 -5
- package/server/applets/views.ts +19 -17
- package/server/cli/commands/init.ts +3 -3
- package/server/cli/commands/skill.ts +16 -17
- package/server/cli/commands/start.ts +8 -34
- package/server/cli/server.ts +18 -6
- package/server/collab/config.ts +1 -2
- package/server/collab/manager.ts +4 -1
- package/server/collab/skill/index.ts +1 -1
- package/server/control.ts +3 -3
- package/server/data-dir.ts +1 -1
- package/server/harness/README.md +24 -8
- package/server/harness/acp/session.ts +8 -4
- package/server/harness/auth.ts +14 -17
- package/server/harness/claude-code/NOTES.md +4 -3
- package/server/harness/claude-code/index.ts +2 -0
- package/server/harness/claude-code/models.ts +2 -20
- package/server/harness/claude-code/run-action.ts +123 -0
- package/server/harness/claude-code/session-title.ts +5 -7
- package/server/harness/claude-code/session.ts +24 -16
- package/server/harness/codex/NOTES.md +14 -9
- package/server/harness/codex/adapter.ts +14 -17
- package/server/harness/codex/index.ts +2 -0
- package/server/harness/codex/run-action.ts +93 -0
- package/server/harness/codex/session-title.ts +6 -8
- package/server/harness/codex/session.ts +11 -11
- package/server/harness/command.ts +45 -0
- package/server/harness/executable.ts +5 -0
- package/server/harness/fork.ts +6 -4
- package/server/harness/install.ts +49 -0
- package/server/harness/openclaw/session.ts +1 -2
- package/server/harness/run-action.ts +85 -0
- package/server/harness/session-title.ts +0 -46
- package/server/harness/types.ts +26 -2
- package/server/onboarding/brief.ts +29 -0
- package/server/onboarding/ideas.ts +48 -0
- package/server/onboarding/jobs.ts +291 -0
- package/server/onboarding/prompt.md +49 -0
- package/server/sessions/archive.ts +5 -14
- package/server/sessions/config.ts +17 -16
- package/server/sessions/lifecycle.ts +15 -13
- package/server/sessions/pending-views.ts +79 -108
- package/server/sessions/selected.ts +75 -161
- package/server/sessions/store.ts +40 -113
- package/server/sessions/view-sessions.ts +128 -111
- package/server/skills/locations.ts +82 -0
- package/server/skills/lock.ts +29 -0
- package/server/skills/template.ts +36 -25
- package/server/skills/update.ts +52 -5
- package/server/skills/version.ts +17 -22
- package/server/skills/workspace.ts +121 -0
- package/server/web.ts +22 -8
- package/server/workspace-state/file.ts +177 -0
- package/server/workspace-state/index.ts +162 -0
- package/server/workspace-state/legacy-migration.ts +79 -0
- package/server/workspace-state/lock.ts +42 -0
- package/server/workspace-state/types.ts +16 -0
- package/server/workspaces/change-harness.ts +88 -0
- package/server/workspaces/harness-transition.ts +29 -0
- package/server/workspaces/init.ts +29 -6
- package/server/workspaces/layout.ts +3 -0
- package/server/workspaces/registry.ts +27 -1
- package/{workspace/.claude/skills/moi-workspace → skill}/SKILL.md +7 -5
- package/{workspace/.claude/skills/moi-workspace → skill}/references/COLLAB.md +4 -8
- package/skill/references/DESIGN.md +148 -0
- package/{workspace/.claude/skills/moi-workspace → skill}/references/SCRATCHPAD.md +2 -2
- package/{workspace/.claude/skills/moi-workspace → skill}/references/UI-COMPONENTS.md +3 -0
- package/ui-components/badge.tsx +1 -1
- package/client/accept-hmr-dependencies.ts +0 -22
- package/client/features/workspace/setup/workspace-setup-panel.tsx +0 -18
- package/dist/chunk-20ynagd4.js +0 -2
- package/dist/chunk-42tde9a6.js +0 -1
- package/dist/chunk-9w543s0r.js +0 -2
- package/dist/chunk-a5372n61.js +0 -546
- package/dist/chunk-aja9y1vn.js +0 -68
- package/dist/chunk-fvcvrh3d.css +0 -1
- package/dist/chunk-gtfjw3nx.js +0 -1
- package/dist/chunk-j39y2aky.js +0 -14
- package/dist/chunk-pcnahct1.js +0 -5
- package/dist/chunk-pja30km3.js +0 -1
- package/dist/chunk-rm894bc2.js +0 -2
- package/dist/chunk-tevvtfbk.js +0 -10
- package/dist/chunk-tgt9zd0r.js +0 -2
- package/dist/chunk-tv5k5z00.js +0 -1
- package/dist/chunk-zq2ae5dx.js +0 -2
- package/lib/experimental.ts +0 -14
- package/workspace/.claude/skills/moi-workspace/references/DESIGN.md +0 -157
- /package/client/features/{settings → app-settings}/profile-settings.tsx +0 -0
- /package/client/features/{settings → app-settings}/settings-section.tsx +0 -0
- /package/client/features/{settings → app-settings}/users-settings.tsx +0 -0
- /package/client/features/{settings → workspace/settings}/connectors-settings.tsx +0 -0
- /package/client/features/{settings → workspace/settings}/environment-settings.tsx +0 -0
- /package/client/features/{settings → workspace/settings}/icon-picker-options.ts +0 -0
- /package/client/features/{settings → workspace/settings}/settings-layout.tsx +0 -0
- /package/client/features/{settings → workspace/settings}/workspace-settings-dialog.tsx +0 -0
- /package/{workspace/.claude/skills/moi-workspace → skill}/references/INTENTS.md +0 -0
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { BunPlugin } from 'bun'
|
|
2
|
-
|
|
3
|
-
// Bun's Tailwind rebuild can re-emit these package entrypoints even when their
|
|
4
|
-
// source did not change. Without an HMR boundary the update reaches main.tsx,
|
|
5
|
-
// where TanStack's re-export graph may be observed halfway through replacement.
|
|
6
|
-
// Self-accepting the stable entrypoints keeps the existing QueryClient alive and
|
|
7
|
-
// lets the actual React component update stop at its Fast Refresh boundary.
|
|
8
|
-
const stableDependencyEntry =
|
|
9
|
-
/[\\/]node_modules[\\/]@tanstack[\\/](?:react-query|query-core)[\\/]build[\\/]modern[\\/]index\.js$/
|
|
10
|
-
|
|
11
|
-
const acceptHmrDependencies: BunPlugin = {
|
|
12
|
-
name: 'accept-hmr-dependencies',
|
|
13
|
-
setup(build) {
|
|
14
|
-
build.onLoad({ filter: stableDependencyEntry }, async args => ({
|
|
15
|
-
contents:
|
|
16
|
-
(await Bun.file(args.path).text()) + '\nif (import.meta.hot) import.meta.hot.accept();\n',
|
|
17
|
-
loader: 'js'
|
|
18
|
-
}))
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export default acceptHmrDependencies
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react'
|
|
2
|
-
|
|
3
|
-
type WorkspaceSetupPanelProps = {
|
|
4
|
-
children: ReactNode
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export function WorkspaceSetupPanel({ children }: WorkspaceSetupPanelProps) {
|
|
8
|
-
return (
|
|
9
|
-
<section
|
|
10
|
-
aria-label="Workspace setup"
|
|
11
|
-
className="flex min-h-0 flex-1 flex-col overflow-y-auto bg-muted texture-checker-20"
|
|
12
|
-
>
|
|
13
|
-
<div className="flex flex-1 flex-col bg-radial from-background from-25% to-transparent">
|
|
14
|
-
{children}
|
|
15
|
-
</div>
|
|
16
|
-
</section>
|
|
17
|
-
)
|
|
18
|
-
}
|
package/dist/chunk-20ynagd4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Oc as r}from"/chunk-zq2ae5dx.js";import{cd as E}from"/chunk-tgt9zd0r.js";import{fd as x}from"/chunk-rm894bc2.js";var p=x(r(),1);var a={collab:!1},F=Object.keys(a);var f={environment:"local",demo:!1,experimental:{...a},demoInstallUrl:"https://moi.computer"},o=f,t=new Set;function y(e){return t.add(e),()=>{t.delete(e)}}async function m(){try{o=await E("/api/config");for(let e of t)e();return o}catch{}}async function A(){return m()}function L(){return p.useSyncExternalStore(y,()=>o)}
|
|
2
|
-
export{A as Mc,L as Nc};
|
package/dist/chunk-42tde9a6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"/chunk-pcnahct1.js";import"/chunk-rm894bc2.js";export{a as sanitizeSvg};
|
package/dist/chunk-9w543s0r.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var T=["pink","orange","amber","lime","emerald","cyan","blue","violet"];function _(A){return typeof A==="string"&&T.includes(A)}function V(A){let C=2166136261;for(let f=0;f<A.length;f++)C^=A.charCodeAt(f),C=Math.imul(C,16777619);return T[(C>>>0)%T.length]??T[0]}var o=1;var D=8192,H=320;function Q(A){return typeof A==="object"&&A!==null&&!Array.isArray(A)}function y(A,C=256){return typeof A==="string"&&A.length>0&&!A.includes("\x00")&&new TextEncoder().encode(A).length<=C}function j(A){return Q(A)&&y(A.id,240)&&A.id.trim().length>0&&(A.name===void 0||y(A.name)&&A.name.trim().length>0)&&_(A.color)&&(A.avatar===void 0||y(A.avatar,D))&&(A.email===void 0||y(A.email,H))}var W=["Curious Kiwi","Cheerful Cherry","Sleepy Peach","Excited Banana","Cosmic Mango","Velvet Lemon","Electric Plum","Wandering Pear","Dramatic Papaya","Suspicious Pineapple","Confused Coconut","Sneaky Tangerine","Gentle Fig","Quiet Apricot","Mellow Melon","Dreamy Guava"];function I(A,C){let f=A.filter((n)=>n!==C);return f[Math.floor(Math.random()*f.length)]??A[0]}function Z(A){return{name:I(W,A?.name),color:I(T,A?.color)}}function $(A,C){let f=C.name.trim();return{id:A,...f?{name:f}:{},color:C.color}}function G(){return $(`local-${crypto.randomUUID().slice(0,8)}`,Z())}var k="moi:local-profile",L=Object.freeze([]),B,g,Y,p=!1,w=new Set,X=new Set;function J(A,C){return JSON.stringify(A)===JSON.stringify(C)}function N(A){if(!A||typeof A.id!=="string"||!A.id.trim())throw Error("A user profile needs an id.");if(A.name!==void 0&&typeof A.name!=="string")throw Error("A user profile name must be a string when provided.");if(A.color!==void 0&&!_(A.color))throw Error("A user profile color must be one of the user palette names.");let C=A.id.trim(),f=A.name?.trim(),n={id:C,...f?{name:f}:{},color:A.color??V(C),...A.avatar!==void 0?{avatar:A.avatar}:{},...A.email!==void 0?{email:A.email}:{}};if(!j(n))throw Error("Invalid user profile.");return Object.freeze(n)}function b(A){if(!Array.isArray(A))throw Error("Users must be an array.");let C=new Set,f=A.map((n)=>{let M=N(n);if(C.has(M.id))throw Error("Users must have unique ids.");return C.add(M.id),M});return Object.freeze(f)}function F(A){if(!A||typeof A!=="object")throw Error("Users must be published as an object.");let C=b(A.users),f;if(A.me!==void 0&&A.me!==null){if(typeof A.me!=="string")throw Error("The current user id must be a string.");let M=A.me.trim();if(f=C.find((q)=>q.id===M),!f)throw Error("The current user must be listed in users.")}let n=g!=="external"||!J(B,f);if(g="external",n)B=f;if(Y=f?C:L,n)w.forEach((M)=>M());X.forEach((M)=>M())}function i(){return Y}function d(A){return X.add(A),()=>{X.delete(A)}}function c(){return B}function U(A){return w.add(A),()=>{w.delete(A)}}function a(){return g}function u({provider:A,profile:C}){if(g==="external")return;if(A===void 0){if(g===void 0||g==="local")return;g=void 0,B=void 0}else{let f=C===void 0?void 0:N(C);if(g===A&&J(B,f))return;g=A,B=f}w.forEach((f)=>f())}function K(){try{localStorage.setItem(k,JSON.stringify(B))}catch{}}function E(A){if(g!==void 0&&g!=="local")return;let C=N(A);g="local",B=C,K(),w.forEach((f)=>f())}function v(A,C){if(!A||!C||C.provider!==void 0||g!==void 0)return;try{let f=localStorage.getItem(k);if(f){E(JSON.parse(f));return}}catch{}E(G())}function s(){if(typeof window>"u"||p)return;p=!0;let A=window;A.moi??={};let C={publishUsers:F};A.moi.collab=C}function O(A){if(A.key!==k||!A.newValue||g!=="local")return;try{let C=N(JSON.parse(A.newValue));if(J(C,B))return;B=C,w.forEach((f)=>f())}catch{}}function l(){return window.addEventListener("storage",O),()=>window.removeEventListener("storage",O)}
|
|
2
|
-
export{o as Pc,Q as Qc,j as Rc,N as Sc,F as Tc,i as Uc,d as Vc,c as Wc,U as Xc,a as Yc,u as Zc,E as _c,v as $c,s as ad,l as bd};
|