Skip to content

Commit 3d7799a

Browse files
committed
🔧 update: replace @tinyclaw/ui with @tinyclaw/web in setup commands
1 parent 67a516e commit 3d7799a

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/cli/src/commands/setup-web.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { homedir } from 'os';
1111
import { logger, setLogMode } from '@tinyclaw/logger';
1212
import { SecretsManager } from '@tinyclaw/secrets';
1313
import { ConfigManager } from '@tinyclaw/config';
14-
import { createWebUI } from '@tinyclaw/ui';
14+
import { createWebUI } from '@tinyclaw/web';
1515
import type { StreamCallback } from '@tinyclaw/types';
1616
import { theme } from '../ui/theme.js';
1717
import { RESTART_EXIT_CODE } from '../supervisor.js';

src/cli/src/commands/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import {
4949
BACKUP_CODES_COUNT,
5050
} from '@tinyclaw/core';
5151
import { logger, setLogMode } from '@tinyclaw/logger';
52-
import { createWebUI } from '@tinyclaw/ui';
52+
import { createWebUI } from '@tinyclaw/web';
5353
import type { StreamCallback } from '@tinyclaw/types';
5454
import { showBanner } from '../ui/banner.js';
5555
import { theme } from '../ui/theme.js';

src/cli/src/commands/start.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { createShieldEngine } from '@tinyclaw/shield';
3838
import { createCompactor } from '@tinyclaw/compactor';
3939
import { createShellEngine, createShellTools } from '@tinyclaw/shell';
4040
import type { ChannelPlugin, Provider, StreamCallback, Tool } from '@tinyclaw/types';
41-
import { createWebUI } from '@tinyclaw/ui';
41+
import { createWebUI } from '@tinyclaw/web';
4242
import { theme } from '../ui/theme.js';
4343
import { RESTART_EXIT_CODE } from '../supervisor.js';
4444

@@ -930,11 +930,11 @@ export async function startCommand(): Promise<void> {
930930

931931
// --- Auto-build Web UI if needed --------------------------------------
932932

933-
// Resolve web package root by finding @tinyclaw/ui's entry point
934-
// @tinyclaw/ui exports src/server.ts → its parent dir is src/web/
933+
// Resolve web package root by finding @tinyclaw/web's entry point
934+
// @tinyclaw/web exports src/server.ts → its parent dir is src/web/
935935
let webRoot: string;
936936
try {
937-
const uiEntry = require.resolve('@tinyclaw/ui');
937+
const uiEntry = require.resolve('@tinyclaw/web');
938938
webRoot = resolve(uiEntry, '..', '..');
939939
} catch {
940940
// Fallback: resolve relative to this file (src/cli/src/commands/ → src/web/)

src/cli/tests/commands/start.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,14 @@ mock.module('@tinyclaw/shell', () => ({
247247

248248
mock.module('@tinyclaw/types', () => ({}));
249249

250-
// ── Mock @tinyclaw/ui ───────────────────────────────────────────────
250+
// ── Mock @tinyclaw/web ───────────────────────────────────────────────
251251

252252
const mockWebUIStart = mock(() => Promise.resolve());
253253
const mockWebUIStop = mock(() => Promise.resolve());
254254

255-
// ── Mock @tinyclaw/ui ────────────────────────────────────────────────
255+
// ── Mock @tinyclaw/web ────────────────────────────────────────────────
256256

257-
mock.module('@tinyclaw/ui', () => ({
257+
mock.module('@tinyclaw/web', () => ({
258258
createWebUI: mock(() => ({
259259
start: mockWebUIStart,
260260
stop: mockWebUIStop,

0 commit comments

Comments
 (0)