From 8eab02ab288ed6cb18a4d2aff2fe2b37f1367db2 Mon Sep 17 00:00:00 2001 From: yiling Date: Mon, 22 Jun 2026 15:13:56 +0800 Subject: [PATCH 1/2] fix(webui): truncate long folder, collection, and share link names in sidebar --- packages/webui/components/folder-tree.tsx | 27 +++++++++++++---------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/packages/webui/components/folder-tree.tsx b/packages/webui/components/folder-tree.tsx index 002820f9..2ebf5ae6 100644 --- a/packages/webui/components/folder-tree.tsx +++ b/packages/webui/components/folder-tree.tsx @@ -469,7 +469,7 @@ export function FolderTree({ div>div]:block!', isAssetsExpanded ? 'opacity-100 visible pointer-events-auto' : 'opacity-0 invisible pointer-events-none h-0', @@ -569,7 +569,7 @@ export function FolderTree({ div>div]:block!', isCollectionsExpanded ? 'opacity-100 visible pointer-events-auto' : 'opacity-0 invisible pointer-events-none h-0', @@ -599,7 +599,7 @@ export function FolderTree({
@@ -620,7 +620,7 @@ export function FolderTree({ {canEdit && (
e.stopPropagation()} > @@ -705,7 +705,7 @@ export function FolderTree({ div>div]:block!', isSharesExpanded ? 'opacity-100 visible pointer-events-auto' : 'opacity-0 invisible pointer-events-none h-0', @@ -958,7 +958,7 @@ function ShareLinkItem({
e.stopPropagation()} > @@ -1176,7 +1176,7 @@ function FolderTreeItem({
{!isRoot && ( - )} {isRoot ? ( - + ) : ( - + )} {folder.name} {canEdit && !isRoot && (
e.stopPropagation()} > From 5e70b6f3eeebf9cf54a79a284e566105b6561fa4 Mon Sep 17 00:00:00 2001 From: yiling Date: Mon, 22 Jun 2026 15:39:47 +0800 Subject: [PATCH 2/2] docs: add note blocks for running binaries under Bun runtime --- README.md | 3 +++ apps/cli/README.md | 3 +++ docs/configuration/temporal.mdx | 3 +++ docs/getting-started/quickstart.mdx | 5 +++++ 4 files changed, 14 insertions(+) diff --git a/README.md b/README.md index 665969d8..931f96ba 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,9 @@ AWS_ENDPOINT_URL_S3=http://localhost #### Step 6: Run Shumai +> [!IMPORTANT] +> **For Bun Users:** Since the published package binaries contain a `#!/usr/bin/env node` shebang, running the global command directly (e.g., `shumai`) will execute under Node.js. If you installed with Bun and want to run under the Bun runtime, you must prefix all commands with `bun run --bun` (e.g., `bun run --bun shumai`, `bun run --bun shumai -d`, `bun run --bun shumai stop`). + Start the application from your workspace folder: ```bash diff --git a/apps/cli/README.md b/apps/cli/README.md index fddc7f05..92dfb742 100644 --- a/apps/cli/README.md +++ b/apps/cli/README.md @@ -26,6 +26,9 @@ export SHUMAI_API_KEY="your-developer-api-token" ## Usage +> [!IMPORTANT] +> **For Bun Users:** Since the package binary contains a `#!/usr/bin/env node` shebang, running `shumai-cli` directly will run under Node.js. If you wish to run it using Bun, prefix the command with `bun run --bun` (e.g., `bun run --bun shumai-cli project ls`). + Run `shumai-cli` or query specific commands: ```bash diff --git a/docs/configuration/temporal.mdx b/docs/configuration/temporal.mdx index f50da97c..365bc4bd 100644 --- a/docs/configuration/temporal.mdx +++ b/docs/configuration/temporal.mdx @@ -80,3 +80,6 @@ Run this on your sandboxed agent execution nodes (requires sandbox dependencies npm install -g @shumai-one/shumai-agent shumai-agent ``` + +> [!IMPORTANT] +> **For Bun Users:** Since the worker package binaries contain a `#!/usr/bin/env node` shebang, running `shumai-transcode` or `shumai-agent` directly will run under Node.js. If you wish to run them using Bun, prefix the commands with `bun run --bun` (e.g., `bun run --bun shumai-transcode` or `bun run --bun shumai-agent`). diff --git a/docs/getting-started/quickstart.mdx b/docs/getting-started/quickstart.mdx index cd46802a..a15e548d 100644 --- a/docs/getting-started/quickstart.mdx +++ b/docs/getting-started/quickstart.mdx @@ -72,9 +72,14 @@ To handle media processing and security isolation, the host machine must have th AWS_ENDPOINT_URL_S3=http://localhost ``` 4. **Start Shumai**: + + > [!IMPORTANT] + > **For Bun Users:** Since the published package binaries contain a `#!/usr/bin/env node` shebang, running `shumai` directly will execute under Node.js. If you installed using Bun and want to run it under the Bun runtime, prefix the command with `bun run --bun` (e.g., `bun run --bun shumai`). + ```bash shumai ``` + Open your browser to `http://localhost:3000`. ---