moi-computer 0.7.0 → 0.8.1-next.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.
- package/README.md +2 -2
- package/client/api/workspace-keys.ts +1 -2
- package/client/app/AppRouter.tsx +10 -3
- package/client/app/routes/HomeRoute.tsx +1 -1
- package/client/app/shell/SidebarLayout.tsx +2 -14
- package/client/components/shared/BottomPanel.tsx +2 -1
- package/client/components/shared/Composer.tsx +20 -7
- package/client/components/shared/PanelHeader.tsx +8 -1
- package/client/components/ui/button.tsx +3 -3
- package/client/components/ui/dialog.tsx +1 -1
- package/client/components/ui/dropdown-menu.tsx +2 -2
- package/client/components/ui/hover-card.tsx +1 -1
- package/client/components/ui/popover.tsx +1 -1
- package/client/components/ui/resizable.tsx +40 -0
- package/client/features/applets/AppletMount.tsx +9 -22
- package/client/features/applets/applet-cache.ts +7 -0
- package/client/features/applets/applet-styles.ts +21 -1
- package/client/features/applets/useApplet.ts +1 -1
- package/client/features/chat/ChatEmptyState.tsx +9 -11
- package/client/features/chat/ChatPanel.tsx +76 -48
- package/client/features/chat/ChatPopup.tsx +16 -2
- package/client/features/chat/ChatPromptBubbles.tsx +6 -8
- package/client/features/chat/ChatSelector.tsx +25 -8
- package/client/features/chat/ModelPicker.tsx +5 -4
- package/client/features/chat/TurnView.tsx +108 -13
- package/client/features/chat/api.ts +1 -18
- package/client/features/chat/chat-send.ts +2 -2
- package/client/features/chat/{ChatComposer.tsx → composer/ChatComposer.tsx} +24 -9
- package/client/features/chat/composer/banners/ChatErrorBanner.tsx +28 -0
- package/client/features/chat/composer/banners/ComposerBanner.tsx +30 -0
- package/client/features/chat/composer/banners/WorkspaceAgentAvailabilityBanner.tsx +91 -0
- package/client/features/{workspace → chat/composer/banners}/WorkspaceSkillUpdateBanner.tsx +9 -7
- package/client/features/chat/composer/useWorkspaceComposerState.tsx +74 -0
- package/client/features/{workspace → chat/composer}/useWorkspaceSkillUpdates.ts +1 -1
- package/client/features/chat/group-turns.ts +46 -28
- package/client/features/chat/interleave-notices.ts +84 -0
- package/client/features/chat/model-order.ts +9 -3
- package/client/features/chat/tool-group/TimelineRow.tsx +23 -11
- package/client/features/chat/tool-group/ToolCallGroup.tsx +38 -3
- package/client/features/chat/tool-group/format.ts +23 -7
- package/client/features/chat/useAppletChatMessage.ts +11 -16
- package/client/features/chat/useChat.ts +3 -7
- package/client/features/dev/ChatStatesPage.tsx +428 -0
- package/client/features/dev/DevIndexPage.tsx +52 -0
- package/client/features/dev/DevRoutes.tsx +6 -3
- package/client/features/dev/HarnessDebugPage.tsx +3 -3
- package/client/features/dev/chat-states-fixtures.ts +744 -0
- package/client/features/home/api.ts +0 -10
- package/client/features/home/workspace-setup/CreateWorkspaceDialog.tsx +21 -64
- package/client/features/home/workspace-setup/ImportWorkspaceDialog.tsx +1 -1
- package/client/features/scratchpad/Scratchpad.tsx +5 -3
- package/client/features/scratchpad/scratch-session.ts +71 -0
- package/client/features/views/ViewBuilderTab.tsx +5 -4
- package/client/features/views/ViewManager.tsx +258 -0
- package/client/features/views/useViewBuilderActions.ts +2 -2
- package/client/features/views/view-residency.ts +77 -0
- package/client/features/widgets/WidgetFrame.tsx +6 -2
- package/client/features/workspace/CustomizePanel.tsx +40 -24
- package/client/features/workspace/WorkspaceLayoutContext.tsx +12 -2
- package/client/features/workspace/WorkspaceScreen.tsx +131 -201
- package/client/features/workspace/WorkspaceSplitLayout.tsx +111 -0
- package/client/features/workspace/WorkspaceTabs.tsx +1 -1
- package/client/features/workspace/api.ts +33 -8
- package/client/features/workspace/useFitsSplitLayout.ts +31 -5
- package/client/index.css +5 -2
- package/client/lib/flags.ts +4 -3
- package/client/runtime/useWorkspaceEvents.ts +18 -1
- package/client/runtime/workspace-theme.ts +29 -10
- package/client/store/ui.ts +5 -1
- package/client/theme.css +96 -6
- package/dist/{chunk-0pcdwjkp.js → chunk-2vaafjp4.js} +1 -1
- package/dist/{chunk-9y2zbzqz.js → chunk-35fq49qa.js} +1 -1
- package/dist/chunk-gny990qx.css +1 -0
- package/dist/chunk-gt7n06ef.js +1 -0
- package/dist/{chunk-rxvx4ta9.js → chunk-kkj86722.js} +75 -75
- package/dist/chunk-n7pga5x3.js +80 -0
- package/dist/chunk-xeyxk7ep.js +10 -0
- package/dist/{chunk-w3tnv51j.js → chunk-xzx7c9hq.js} +1 -1
- package/dist/index.html +1 -1
- package/lib/format.ts +17 -1
- package/lib/themes.ts +123 -51
- package/lib/types.ts +40 -13
- package/lib/workspace-layout.ts +2 -2
- package/package.json +6 -4
- package/server/agent.ts +199 -0
- package/server/api.ts +38 -90
- package/server/bundler/build-applet.ts +7 -4
- package/server/cli.ts +46 -15
- package/server/control.ts +13 -6
- package/server/env-apply.ts +4 -0
- package/server/harness/README.md +28 -12
- package/server/harness/claude-code/auth.ts +54 -0
- package/server/harness/claude-code/index.ts +6 -1
- package/server/harness/codex/adapter.ts +9 -1
- package/server/harness/codex/auth.ts +50 -0
- package/server/harness/codex/index.ts +6 -1
- package/server/harness/codex/session.ts +33 -14
- package/server/harness/openclaw/NOTES.md +518 -187
- package/server/harness/openclaw/adapter.ts +125 -31
- package/server/harness/openclaw/compat.ts +99 -0
- package/server/harness/openclaw/cron-view.ts +78 -0
- package/server/harness/openclaw/discovery.ts +145 -52
- package/server/harness/openclaw/gateway.ts +224 -36
- package/server/harness/openclaw/index.ts +56 -21
- package/server/harness/openclaw/session.ts +971 -55
- package/server/harness/openclaw/strip.ts +87 -15
- package/server/harness/openclaw/thinking.ts +198 -0
- package/server/harness/types.ts +10 -5
- package/server/layout.ts +5 -2
- package/server/moi-scaffold.ts +1 -1
- package/server/registry.ts +0 -20
- package/server/theme.ts +24 -27
- package/workspace/.claude/skills/moi-workspace/DESIGN.md +100 -53
- package/workspace/.claude/skills/moi-workspace/SKILL.md +10 -12
- package/client/features/dev/PixelPainter.tsx +0 -94
- package/client/features/dev/PlaygroundPage.tsx +0 -69
- package/dist/chunk-175bm057.js +0 -27
- package/dist/chunk-55sh4dty.js +0 -2
- package/dist/chunk-afgbg75t.js +0 -50
- package/dist/chunk-agtetn7n.css +0 -1
- package/dist/chunk-dfs36zgc.js +0 -1
- package/dist/chunk-exj6hr30.js +0 -9
- package/dist/chunk-m11ckkxd.js +0 -51
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Link } from 'wouter'
|
|
2
|
+
|
|
3
|
+
type DevRouteEntry = {
|
|
4
|
+
path: string
|
|
5
|
+
title: string
|
|
6
|
+
description: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const DEV_ROUTES: DevRouteEntry[] = [
|
|
10
|
+
{
|
|
11
|
+
path: '/dev/chat-states',
|
|
12
|
+
title: 'Chat states',
|
|
13
|
+
description:
|
|
14
|
+
'Every chat state as one continuous conversation, rendered by the production components over fixtures.'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
path: '/dev/tool-calls',
|
|
18
|
+
title: 'Tool calls',
|
|
19
|
+
description: 'Tool-call group fixtures: single and merged runs, live states, subagent traces.'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
path: '/dev/harness',
|
|
23
|
+
title: 'Harness debug',
|
|
24
|
+
description:
|
|
25
|
+
'Drive a workspace over the real chat protocol with wire, client, and durable event logs.'
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
// The /dev index — a plain list of every dev route so pages stay
|
|
30
|
+
// discoverable. Add new entries here when adding a route in DevRoutes.
|
|
31
|
+
export function DevIndexPage() {
|
|
32
|
+
return (
|
|
33
|
+
<div className="mx-auto w-full max-w-xl px-6 py-10">
|
|
34
|
+
<span className="text-[11px] font-medium tracking-widest text-muted-foreground uppercase">
|
|
35
|
+
Playground
|
|
36
|
+
</span>
|
|
37
|
+
<ul className="mt-6 flex flex-col gap-5">
|
|
38
|
+
{DEV_ROUTES.map(route => (
|
|
39
|
+
<li key={route.path}>
|
|
40
|
+
<div className="flex items-baseline gap-2">
|
|
41
|
+
<Link href={route.path} className="underline underline-offset-4">
|
|
42
|
+
{route.title}
|
|
43
|
+
</Link>
|
|
44
|
+
<span className="font-mono text-xs text-muted-foreground">{route.path}</span>
|
|
45
|
+
</div>
|
|
46
|
+
<p className="mt-1 text-sm text-muted-foreground">{route.description}</p>
|
|
47
|
+
</li>
|
|
48
|
+
))}
|
|
49
|
+
</ul>
|
|
50
|
+
</div>
|
|
51
|
+
)
|
|
52
|
+
}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { Route, Switch } from 'wouter'
|
|
2
2
|
|
|
3
|
+
import { ChatStatesPage } from './ChatStatesPage'
|
|
4
|
+
import { DevIndexPage } from './DevIndexPage'
|
|
3
5
|
import { HarnessDebugPage } from './HarnessDebugPage'
|
|
4
|
-
import { PlaygroundPage } from './PlaygroundPage'
|
|
5
6
|
import { ToolCallsPage } from './ToolCallsPage'
|
|
6
7
|
|
|
7
8
|
// All /dev/* routes, colocated with their pages so the whole dev playground
|
|
8
9
|
// (and its dependencies) lives in this folder and loads as one lazy chunk —
|
|
9
|
-
// see the dynamic import in AppRouter.
|
|
10
|
+
// see the dynamic import in AppRouter. /dev itself is the index; list new
|
|
11
|
+
// routes there too.
|
|
10
12
|
export default function DevRoutes() {
|
|
11
13
|
return (
|
|
12
14
|
<Switch>
|
|
13
15
|
<Route path="/dev/harness" component={HarnessDebugPage} />
|
|
16
|
+
<Route path="/dev/chat-states" component={ChatStatesPage} />
|
|
14
17
|
<Route path="/dev/tool-calls" component={ToolCallsPage} />
|
|
15
|
-
<Route path="/dev" component={
|
|
18
|
+
<Route path="/dev" component={DevIndexPage} />
|
|
16
19
|
</Switch>
|
|
17
20
|
)
|
|
18
21
|
}
|
|
@@ -6,7 +6,7 @@ import { useSearchParams } from 'wouter'
|
|
|
6
6
|
import { Button } from '@/client/components/ui/button'
|
|
7
7
|
import { cn } from '@/client/lib/cn'
|
|
8
8
|
import { wsUrl } from '@/client/lib/ws-url'
|
|
9
|
-
import type { Model,
|
|
9
|
+
import type { Model, WorkspaceAgent, WorkspaceEntry } from '@/lib/types'
|
|
10
10
|
|
|
11
11
|
// Scratch route for driving any harness end to end: pick a workspace, fire
|
|
12
12
|
// canned scenarios (or your own prompt), and watch three synchronized logs —
|
|
@@ -235,9 +235,9 @@ export function HarnessDebugPage() {
|
|
|
235
235
|
// Model list for the selected workspace.
|
|
236
236
|
useEffect(() => {
|
|
237
237
|
if (!workspaceId) return
|
|
238
|
-
fetch(`/api/workspaces/${workspaceId}/
|
|
238
|
+
fetch(`/api/workspaces/${workspaceId}/agent`)
|
|
239
239
|
.then(r => r.json())
|
|
240
|
-
.then((m:
|
|
240
|
+
.then((m: WorkspaceAgent) => setModels(m.models))
|
|
241
241
|
.catch(() => setModels([]))
|
|
242
242
|
}, [workspaceId])
|
|
243
243
|
|