moi-computer 0.11.0 → 0.11.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/AGENTS.md +2 -2
- package/client/components/ui/button.tsx +1 -53
- package/client/components/ui/collapsible.tsx +1 -15
- package/client/components/ui/dialog.tsx +1 -58
- package/client/components/ui/dropdown-menu.tsx +1 -254
- package/client/components/ui/hover-card.tsx +1 -44
- package/client/components/ui/input.tsx +1 -21
- package/client/components/ui/popover.tsx +1 -88
- package/client/components/ui/resizable.tsx +1 -40
- package/client/components/ui/skeleton.tsx +1 -13
- package/client/components/ui/slider.tsx +1 -70
- package/client/components/ui/spinner.tsx +1 -18
- package/client/components/ui/switch.tsx +1 -23
- package/client/components/ui/tabs.tsx +1 -0
- package/client/components/ui/textarea.tsx +1 -18
- package/client/components/ui/tooltip.tsx +1 -51
- package/client/features/chat/ChatPanel.tsx +6 -6
- package/client/features/chat/ChatPopup.tsx +3 -4
- package/client/features/chat/TurnView.tsx +5 -4
- package/client/features/chat/api.ts +5 -14
- package/client/features/chat/chat-frames.ts +5 -2
- package/client/features/chat/composer/ChatComposer.tsx +5 -1
- package/client/features/chat/composer/ModelPicker.tsx +4 -3
- package/client/features/chat/composer/banners/ErrorBanner.tsx +20 -12
- package/client/features/chat/composer/useWorkspaceComposerState.tsx +15 -7
- package/client/features/chat/group-turns.ts +11 -0
- package/client/features/chat/session-view.ts +53 -0
- package/client/features/chat/useChat.ts +5 -1
- package/client/features/dev/ChatStatesPage.tsx +3 -1
- package/client/features/dev/DevIndexPage.tsx +5 -0
- package/client/features/dev/DevRoutes.tsx +2 -0
- package/client/features/dev/HarnessDebugPage.tsx +1 -1
- package/client/features/dev/UiComponentPreviews.tsx +834 -0
- package/client/features/dev/UiComponentsPage.tsx +60 -0
- package/client/features/home/WorkspacePreview.tsx +1 -1
- package/client/features/home/workspace-setup/DemoDialog.tsx +3 -2
- package/client/features/home/workspace-setup/ImportWorkspaceDialog.tsx +5 -8
- package/client/features/home/workspace-setup/WorkspaceDialogContent.tsx +7 -20
- package/client/features/settings/SettingsLayout.tsx +1 -1
- package/client/features/settings/WorkspaceSettings.tsx +4 -1
- package/client/features/views/ViewManager.tsx +14 -9
- package/client/features/widgets/WidgetFrame.tsx +1 -1
- package/client/features/widgets/Widgets.tsx +1 -3
- package/client/features/workspace/WorkspaceScreen.tsx +5 -1
- package/client/features/workspace/WorkspaceSplitLayout.tsx +6 -1
- package/client/features/workspace/api.ts +2 -4
- package/client/index.css +22 -29
- package/dist/{chunk-tny85yt2.js → chunk-4s15axjs.js} +2 -2
- package/dist/{chunk-c9pjqx9m.js → chunk-53a7pxcz.js} +1 -1
- package/dist/chunk-6664vxpk.css +1 -0
- package/dist/{chunk-104m57qw.js → chunk-87thzbtw.js} +2 -2
- package/dist/chunk-a6jad1a6.js +1 -0
- package/dist/chunk-dghwstd2.js +9 -0
- package/dist/chunk-eg120aca.js +1 -0
- package/dist/{chunk-v7wr1df4.js → chunk-j3wvxjr7.js} +1 -1
- package/dist/chunk-vwjeezeb.js +1 -0
- package/dist/chunk-w482ew2c.js +546 -0
- package/dist/chunk-yc471zah.js +70 -0
- package/dist/index.html +1 -1
- package/lib/format.ts +49 -1
- package/lib/themes.ts +6 -6
- package/lib/types.ts +5 -7
- package/package.json +17 -7
- package/registry.json +643 -0
- package/server/AGENTS.md +1 -0
- package/server/agent.ts +1 -1
- package/server/api.ts +25 -29
- package/server/applets.ts +30 -29
- package/server/bundler/applet-css.ts +6 -1
- package/server/bundler/build-applet.ts +5 -1
- package/server/bundler/build-worker.ts +178 -0
- package/server/cli-ui-components.ts +28 -33
- package/server/cli.ts +6 -11
- package/server/data-dir.ts +1 -1
- package/server/harness/README.md +13 -9
- package/server/harness/acp/NOTES.md +426 -0
- package/server/harness/acp/discovery.ts +27 -30
- package/server/harness/acp/model-state.ts +57 -0
- package/server/harness/acp/session.ts +18 -6
- package/server/harness/claude-code/NOTES.md +47 -12
- package/server/harness/claude-code/cli.ts +40 -0
- package/server/harness/claude-code/index.ts +11 -5
- package/server/harness/claude-code/models.ts +72 -19
- package/server/harness/claude-code/session.ts +408 -299
- package/server/harness/hermes/NOTES.md +18 -0
- package/server/harness/hermes/discovery.ts +20 -0
- package/server/harness/hermes/index.ts +9 -0
- package/server/harness/hermes/models.ts +28 -8
- package/server/harness/types.ts +4 -2
- package/server/moi-scaffold.ts +1 -1
- package/server/preview.ts +3 -1
- package/server/registry.ts +63 -41
- package/server/scratchpad-executor.ts +79 -56
- package/server/scratchpad-shape-defaults.ts +82 -0
- package/server/tldraw-package.d.ts +4 -0
- package/server/ui-components.ts +101 -434
- package/server/view-builders.ts +2 -1
- package/server/web.ts +9 -5
- package/server/workspace-env.ts +3 -2
- package/tsconfig.json +0 -1
- package/ui-components/accordion.tsx +71 -0
- package/ui-components/alert-dialog.tsx +165 -0
- package/ui-components/alert.tsx +68 -0
- package/ui-components/attachment.tsx +195 -0
- package/ui-components/avatar.tsx +90 -0
- package/ui-components/badge.tsx +49 -0
- package/ui-components/button-group.tsx +78 -0
- package/ui-components/button.tsx +55 -0
- package/ui-components/calendar.tsx +180 -0
- package/ui-components/card.tsx +84 -0
- package/ui-components/carousel.tsx +235 -0
- package/ui-components/chart.tsx +338 -0
- package/ui-components/checkbox.tsx +27 -0
- package/ui-components/collapsible.tsx +15 -0
- package/ui-components/combobox.tsx +265 -0
- package/ui-components/context-menu.tsx +244 -0
- package/ui-components/dialog.tsx +138 -0
- package/ui-components/docs/accordion.md +463 -0
- package/ui-components/docs/alert-dialog.md +481 -0
- package/ui-components/docs/alert.md +301 -0
- package/ui-components/docs/attachment.md +689 -0
- package/ui-components/docs/avatar.md +495 -0
- package/ui-components/docs/badge.md +258 -0
- package/ui-components/docs/button-group.md +879 -0
- package/ui-components/docs/button.md +26 -0
- package/ui-components/docs/calendar.md +862 -0
- package/ui-components/docs/card.md +265 -0
- package/ui-components/docs/carousel.md +627 -0
- package/ui-components/docs/chart.md +1256 -0
- package/ui-components/docs/checkbox.md +477 -0
- package/ui-components/docs/collapsible.md +446 -0
- package/ui-components/docs/combobox.md +1003 -0
- package/ui-components/docs/context-menu.md +860 -0
- package/ui-components/docs/data-table.md +1580 -0
- package/ui-components/docs/date-picker.md +614 -0
- package/ui-components/docs/dialog.md +414 -0
- package/ui-components/docs/drawer.md +51 -0
- package/ui-components/docs/dropdown-menu.md +1000 -0
- package/ui-components/docs/field.md +1192 -0
- package/ui-components/docs/hover-card.md +275 -0
- package/ui-components/docs/input-group.md +866 -0
- package/ui-components/docs/input.md +456 -0
- package/ui-components/docs/label.md +295 -0
- package/ui-components/docs/pagination.md +416 -0
- package/ui-components/docs/popover.md +348 -0
- package/ui-components/docs/progress.md +214 -0
- package/ui-components/docs/radio-group.md +389 -0
- package/ui-components/docs/resizable.md +265 -0
- package/ui-components/docs/select.md +616 -0
- package/ui-components/docs/separator.md +216 -0
- package/ui-components/docs/skeleton.md +205 -0
- package/ui-components/docs/slider.md +226 -0
- package/ui-components/docs/spinner.md +332 -0
- package/ui-components/docs/switch.md +236 -0
- package/ui-components/docs/table.md +551 -0
- package/ui-components/docs/tabs.md +379 -0
- package/ui-components/docs/textarea.md +187 -0
- package/ui-components/docs/toggle-group.md +370 -0
- package/ui-components/docs/toggle.md +91 -0
- package/ui-components/docs/tooltip.md +290 -0
- package/ui-components/drawer.tsx +213 -0
- package/ui-components/dropdown-menu.tsx +263 -0
- package/ui-components/field.tsx +224 -0
- package/ui-components/hover-card.tsx +46 -0
- package/ui-components/input-group.tsx +146 -0
- package/ui-components/input.tsx +20 -0
- package/ui-components/label.tsx +17 -0
- package/ui-components/pagination.tsx +124 -0
- package/ui-components/popover.tsx +81 -0
- package/ui-components/progress.tsx +63 -0
- package/ui-components/radio-group.tsx +37 -0
- package/ui-components/resizable.tsx +40 -0
- package/ui-components/scoped-portal.tsx +31 -0
- package/ui-components/select.tsx +195 -0
- package/ui-components/separator.tsx +18 -0
- package/ui-components/skeleton.tsx +15 -0
- package/ui-components/slider.tsx +75 -0
- package/ui-components/spinner.tsx +20 -0
- package/ui-components/switch.tsx +26 -0
- package/ui-components/table.tsx +86 -0
- package/ui-components/tabs.tsx +75 -0
- package/ui-components/textarea.tsx +17 -0
- package/ui-components/toggle-group.tsx +85 -0
- package/ui-components/toggle.tsx +42 -0
- package/ui-components/tooltip.tsx +61 -0
- package/ui-components/utils.ts +8 -0
- package/workspace/.claude/skills/moi-workspace/SKILL.md +11 -20
- package/workspace/.claude/skills/moi-workspace/references/DESIGN.md +4 -3
- package/workspace/.claude/skills/moi-workspace/references/UI-COMPONENTS.md +67 -203
- package/dist/chunk-59zf0m6n.js +0 -1
- package/dist/chunk-bj3akjs2.js +0 -1
- package/dist/chunk-j2w2vak4.js +0 -546
- package/dist/chunk-k2r9c95m.js +0 -10
- package/dist/chunk-kmbxhgwv.js +0 -1
- package/dist/chunk-p1yqa71k.js +0 -83
- package/dist/chunk-r5xrenjy.css +0 -1
package/dist/index.html
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
</script>
|
|
38
38
|
|
|
39
|
-
<link rel="stylesheet" crossorigin href="/chunk-
|
|
39
|
+
<link rel="stylesheet" crossorigin href="/chunk-6664vxpk.css"><script type="module" crossorigin src="/chunk-vwjeezeb.js"></script></head>
|
|
40
40
|
<body>
|
|
41
41
|
<div id="root"></div>
|
|
42
42
|
|
package/lib/format.ts
CHANGED
|
@@ -284,5 +284,53 @@ export function applyEvent(state: ViewState, ev: StreamEvent): ViewState {
|
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
export function applyEvents(events: StreamEvent[]): ViewState {
|
|
287
|
-
|
|
287
|
+
// Replay owns these arrays, so it can upsert in place instead of copying the
|
|
288
|
+
// entire transcript per event. The live single-event reducer stays immutable.
|
|
289
|
+
const state = emptyViewState()
|
|
290
|
+
const turnIndexes = new Map<string, number>()
|
|
291
|
+
const notices = new Map<string, SystemNotice>()
|
|
292
|
+
let maxSeq = -Infinity
|
|
293
|
+
|
|
294
|
+
for (const event of events) {
|
|
295
|
+
switch (event.kind) {
|
|
296
|
+
case 'snapshot':
|
|
297
|
+
state.snapshot = event.snapshot
|
|
298
|
+
break
|
|
299
|
+
case 'turn': {
|
|
300
|
+
const turn = event.turn
|
|
301
|
+
const seq = turn.seq
|
|
302
|
+
const existingIndex = turnIndexes.get(turn.id)
|
|
303
|
+
if (existingIndex !== undefined) {
|
|
304
|
+
state.turns[existingIndex] = turn
|
|
305
|
+
} else {
|
|
306
|
+
// Append is the common path, including ordered seq-bearing history.
|
|
307
|
+
// A late turn uses the same insertion rule as applyEvent.
|
|
308
|
+
const before =
|
|
309
|
+
seq !== undefined && seq < maxSeq
|
|
310
|
+
? state.turns.findIndex(t => t.seq !== undefined && t.seq > seq)
|
|
311
|
+
: -1
|
|
312
|
+
if (before < 0) {
|
|
313
|
+
turnIndexes.set(turn.id, state.turns.length)
|
|
314
|
+
state.turns.push(turn)
|
|
315
|
+
} else {
|
|
316
|
+
state.turns.splice(before, 0, turn)
|
|
317
|
+
for (let i = before; i < state.turns.length; i++) {
|
|
318
|
+
turnIndexes.set(state.turns[i].id, i)
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
// Keep an upper bound even if an upsert lowers/removes an earlier seq.
|
|
323
|
+
if (seq !== undefined) maxSeq = Math.max(maxSeq, seq)
|
|
324
|
+
break
|
|
325
|
+
}
|
|
326
|
+
case 'notice':
|
|
327
|
+
notices.set(event.notice.id, event.notice)
|
|
328
|
+
break
|
|
329
|
+
case 'result':
|
|
330
|
+
state.result = event.result
|
|
331
|
+
break
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
state.notices = [...notices.values()]
|
|
335
|
+
return state
|
|
288
336
|
}
|
package/lib/themes.ts
CHANGED
|
@@ -119,11 +119,11 @@ const THEME_COLOR_DERIVATIONS = {
|
|
|
119
119
|
workspace: {
|
|
120
120
|
primary: primary => primary,
|
|
121
121
|
primaryForeground: primary => foregroundForPrimary(primary),
|
|
122
|
-
background: () => 'color-mix(in srgb, var(--primary)
|
|
122
|
+
background: () => 'color-mix(in srgb, var(--primary) 2%, oklch(1 0 0) 98%)',
|
|
123
123
|
foreground: () => 'color-mix(in srgb, var(--primary) 20%, oklch(0 0 0) 80%)',
|
|
124
|
-
muted: () => 'color-mix(in srgb, var(--background)
|
|
124
|
+
muted: () => 'color-mix(in srgb, var(--background) 95%, var(--foreground) 5%)',
|
|
125
125
|
mutedForeground: () => 'color-mix(in srgb, var(--background) 50%, var(--foreground) 50%)',
|
|
126
|
-
accent: () => 'color-mix(in srgb, var(--primary)
|
|
126
|
+
accent: () => 'color-mix(in srgb, var(--primary) 3%, var(--foreground) 4%)',
|
|
127
127
|
accentForeground: () => 'var(--foreground)',
|
|
128
128
|
border: () => 'color-mix(in srgb, var(--foreground) 7%, transparent)',
|
|
129
129
|
ring: () => 'color-mix(in srgb, var(--background) 50%, var(--primary) 50%)'
|
|
@@ -131,11 +131,11 @@ const THEME_COLOR_DERIVATIONS = {
|
|
|
131
131
|
widget: {
|
|
132
132
|
background: primary => primary,
|
|
133
133
|
foreground: primary => foregroundForPrimary(primary),
|
|
134
|
-
primary: () => 'color-mix(in srgb, var(--background)
|
|
134
|
+
primary: () => 'color-mix(in srgb, var(--background) 2%, oklch(1 0 0) 98%)',
|
|
135
135
|
primaryForeground: () => 'color-mix(in srgb, var(--background) 20%, oklch(0 0 0) 80%)',
|
|
136
|
-
muted: () => 'color-mix(in srgb, var(--background)
|
|
136
|
+
muted: () => 'color-mix(in srgb, var(--background) 95%, var(--foreground) 5%)',
|
|
137
137
|
mutedForeground: () => 'color-mix(in srgb, var(--background) 50%, var(--foreground) 50%)',
|
|
138
|
-
accent: () => 'color-mix(in srgb, var(--primary)
|
|
138
|
+
accent: () => 'color-mix(in srgb, var(--primary) 3%, var(--foreground) 4%)',
|
|
139
139
|
accentForeground: () => 'var(--foreground)',
|
|
140
140
|
border: () => 'color-mix(in srgb, var(--foreground) 15%, transparent)',
|
|
141
141
|
ring: () => 'color-mix(in srgb, var(--background) 50%, var(--primary) 50%)'
|
package/lib/types.ts
CHANGED
|
@@ -648,8 +648,9 @@ export type Model = {
|
|
|
648
648
|
// Id used to select the model (Claude `value`; OpenClaw catalog id).
|
|
649
649
|
value: string
|
|
650
650
|
// Canonical wire model id this row resolves to (Claude, e.g. 'default' and
|
|
651
|
-
// 'opus[1m]' both → 'claude-opus-4-8[1m]'
|
|
652
|
-
//
|
|
651
|
+
// 'opus[1m]' both → 'claude-opus-4-8[1m]'; Hermes maps its structured ACP
|
|
652
|
+
// default the same way). Lets the picker map a synthetic "default" entry
|
|
653
|
+
// onto the concrete model it points at.
|
|
653
654
|
resolvedModel?: string
|
|
654
655
|
// Human-readable label (Claude `displayName`; OpenClaw `name`).
|
|
655
656
|
displayName: string
|
|
@@ -677,11 +678,8 @@ export type Model = {
|
|
|
677
678
|
supportsAutoMode?: boolean
|
|
678
679
|
}
|
|
679
680
|
|
|
680
|
-
// GET /api/workspaces/:id/agent
|
|
681
|
-
//
|
|
682
|
-
// `models` and capabilities are stable per process; `availability` and `login`
|
|
683
|
-
// are the volatile part, kept fresh after load by `agent:updated` events
|
|
684
|
-
// instead of refetches.
|
|
681
|
+
// GET /api/workspaces/:id/agent. Model changes arrive on refetch;
|
|
682
|
+
// `agent:updated` events refresh availability and login state.
|
|
685
683
|
export type WorkspaceAgent = {
|
|
686
684
|
// The agent backend that produced this snapshot — matches the workspace
|
|
687
685
|
// provider.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "moi-computer",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1-next.1",
|
|
4
4
|
"description": "Local AI workspace powered by the Claude Agent SDK, Bun, React, and Tailwind. Requires Bun.",
|
|
5
5
|
"license": "Elastic-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -33,6 +33,8 @@
|
|
|
33
33
|
"client",
|
|
34
34
|
"lib",
|
|
35
35
|
"workspace",
|
|
36
|
+
"registry.json",
|
|
37
|
+
"ui-components",
|
|
36
38
|
"bunfig.toml",
|
|
37
39
|
"tsconfig.json",
|
|
38
40
|
"dist",
|
|
@@ -50,21 +52,25 @@
|
|
|
50
52
|
"prepack": "bun scripts/build-client.ts",
|
|
51
53
|
"lint": "oxlint",
|
|
52
54
|
"lint:fix": "oxlint --fix",
|
|
53
|
-
"
|
|
55
|
+
"registry:validate": "shadcn registry validate",
|
|
56
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
54
57
|
"format": "oxfmt",
|
|
55
58
|
"format:check": "oxfmt --check",
|
|
56
59
|
"prepare": "git config core.hooksPath .githooks"
|
|
57
60
|
},
|
|
58
61
|
"dependencies": {
|
|
59
|
-
"@anthropic-ai/claude-agent-sdk": "^0.3.
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk": "^0.3.263",
|
|
60
63
|
"@anthropic-ai/sdk": "^0.109.1",
|
|
61
64
|
"@babel/parser": "^7.29.8",
|
|
62
|
-
"@base-ui/react": "^1.
|
|
65
|
+
"@base-ui/react": "^1.8.0",
|
|
63
66
|
"@blobatar/react": "^2.2.0",
|
|
64
67
|
"@dnd-kit/core": "^6.3.1",
|
|
65
68
|
"@tabler/icons-react": "^3.44.0",
|
|
66
69
|
"@tailwindcss/typography": "^0.5.19",
|
|
67
70
|
"@tanstack/react-query": "^5.100.1",
|
|
71
|
+
"@tldraw/store": "5.2.3",
|
|
72
|
+
"@tldraw/tlschema": "5.2.3",
|
|
73
|
+
"@tldraw/utils": "5.2.3",
|
|
68
74
|
"agentation": "^2.3.3",
|
|
69
75
|
"blobatar": "^2.2.0",
|
|
70
76
|
"bun-plugin-tailwind": "^0.1.2",
|
|
@@ -86,15 +92,15 @@
|
|
|
86
92
|
"pathe": "^2.0.3",
|
|
87
93
|
"picocolors": "^1.1.1",
|
|
88
94
|
"postcss": "^8.5.19",
|
|
89
|
-
"react": "
|
|
90
|
-
"react-dom": "
|
|
95
|
+
"react": "19.2.4",
|
|
96
|
+
"react-dom": "19.2.4",
|
|
91
97
|
"react-grid-layout": "^2.2.3",
|
|
92
98
|
"react-markdown": "^10.1.0",
|
|
93
99
|
"react-resizable": "^3.1.3",
|
|
94
100
|
"react-resizable-panels": "^4.12.2",
|
|
95
101
|
"rehype-highlight": "^7.0.2",
|
|
96
102
|
"remark-gfm": "^4.0.1",
|
|
97
|
-
"shadcn": "4.
|
|
103
|
+
"shadcn": "4.21.0",
|
|
98
104
|
"sharp": "^0.35.1",
|
|
99
105
|
"shell-quote": "^1.10.0",
|
|
100
106
|
"sugar-high": "^1.2.1",
|
|
@@ -116,8 +122,12 @@
|
|
|
116
122
|
"@types/react": "^19",
|
|
117
123
|
"@types/react-dom": "^19",
|
|
118
124
|
"@types/react-grid-layout": "^2.1.0",
|
|
125
|
+
"date-fns": "^4.4.0",
|
|
126
|
+
"embla-carousel-react": "^8.6.0",
|
|
119
127
|
"oxfmt": "^0.54.0",
|
|
120
128
|
"oxlint": "^1.69.0",
|
|
129
|
+
"react-day-picker": "^10.0.1",
|
|
130
|
+
"recharts": "3.8.0",
|
|
121
131
|
"typescript": "^5.9.3"
|
|
122
132
|
}
|
|
123
133
|
}
|