Compare commits

...
3 Commits
Author SHA1 Message Date
yiling 2be1093b91 fix(cli): explain how to configure the installer PATH 2026-11-13 21:11:18 +08:00
yiling 83e902862c fix(cli): discover draft releases before publishing 2026-11-13 20:37:50 +08:00
yiling 0a66776067 Release v0.6.6 2026-11-13 20:01:51 +08:00
24 changed files with 158 additions and 42 deletions
+12
View File
@@ -8,6 +8,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
### Added
### Fixed
- **cli**: Fix release publication failing to find staged standalone downloads.
### Changed
- **cli**: Show copyable commands and shell configuration instructions when the standalone CLI installation directory is missing from PATH.
## [0.6.6] - 2026-11-13
### Added
- **project**: Support creating new projects via the built-in agent, MCP server, and CLI (`shumai-cli project create`).
- **cli**: Add standalone downloads and one-line installers for macOS, Linux, and Windows without requiring Node.js or Bun, with verified downloads, version selection, and upgrade support.
+3 -1
View File
@@ -32,12 +32,14 @@ powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://github.com/s
Native builds use Bun 1.4.4's runtime; x64 CPUs need SSE4.2. See [Bun's system requirements](https://bun.com/docs/installation). Alpine/musl is not included in these native downloads. Native downloads are available for releases containing the installer assets; use npm for earlier releases.
On macOS/Linux the default directory is `~/.local/bin`. Add it to your shell's PATH if needed:
On macOS/Linux the default directory is `~/.local/bin`. If it is missing from your current PATH, the installer prints a command to run in your current Bash/Zsh terminal:
```sh
export PATH="$HOME/.local/bin:$PATH"
```
To keep the CLI available in future terminals, add the same export line to `~/.bashrc` (Bash) or `~/.zshrc` (Zsh). For Bash login shells, use your existing login profile, such as `~/.bash_profile` or `~/.profile`. Open a new terminal after saving. If you already added it, you do not need to add it again. For a custom installation directory, use the exact command printed by the installer.
On Windows the installer uses `%LOCALAPPDATA%\Shumai\bin` and updates the user PATH. Open a new terminal afterward. Administrator access is not required.
Re-run the installer to upgrade. To pin a version, roll back, or choose an installation directory, download the installer and pass its options (replace `X.Y.Z` with a release containing native binaries):
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/cli",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"type": "module",
"bin": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/premiere-uxp",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"type": "commonjs",
"scripts": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/transcode-app",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"type": "module",
"bin": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/web-app",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"type": "module",
"dependencies": {
+15 -15
View File
@@ -32,7 +32,7 @@
},
"apps/cli": {
"name": "@shumai/cli",
"version": "0.6.5",
"version": "0.6.6",
"bin": {
"shumai-cli": "./src/index.ts",
},
@@ -49,7 +49,7 @@
},
"apps/premiere-uxp": {
"name": "@shumai/premiere-uxp",
"version": "0.6.5",
"version": "0.6.6",
"dependencies": {
"@shumai/api": "workspace:*",
"@shumai/dtos": "workspace:*",
@@ -103,7 +103,7 @@
},
"apps/transcode": {
"name": "@shumai/transcode-app",
"version": "0.6.5",
"version": "0.6.6",
"bin": {
"shumai-transcode": "./src/index.ts",
},
@@ -115,7 +115,7 @@
},
"apps/web": {
"name": "@shumai/web-app",
"version": "0.6.5",
"version": "0.6.6",
"dependencies": {
"@shumai/agent": "workspace:*",
"@shumai/api": "workspace:*",
@@ -135,7 +135,7 @@
},
"packages/agent": {
"name": "@shumai/agent",
"version": "0.6.5",
"version": "0.6.6",
"dependencies": {
"@anthropic-ai/sandbox-runtime": "0.0.74",
"@earendil-works/chord": "1.5.0",
@@ -160,7 +160,7 @@
},
"packages/api": {
"name": "@shumai/api",
"version": "0.6.5",
"version": "0.6.6",
"dependencies": {
"@better-auth/mcp": "1.7.12",
"@earendil-works/pi-durable": "1.5.0",
@@ -181,7 +181,7 @@
},
"packages/core": {
"name": "@shumai/core",
"version": "0.6.5",
"version": "0.6.6",
"dependencies": {
"@ai-sdk/alibaba": "2.0.38",
"@ai-sdk/amazon-bedrock": "5.0.67",
@@ -246,7 +246,7 @@
},
"packages/db": {
"name": "@shumai/db",
"version": "0.6.5",
"version": "0.6.6",
"dependencies": {
"@prisma/adapter-pg": "7.10.0",
"@prisma/client": "7.10.0",
@@ -261,7 +261,7 @@
},
"packages/dtos": {
"name": "@shumai/dtos",
"version": "0.6.5",
"version": "0.6.6",
"dependencies": {
"@earendil-works/pi-ai": "1.5.0",
"@earendil-works/pi-durable": "1.5.0",
@@ -270,7 +270,7 @@
},
"packages/e2e": {
"name": "@shumai/e2e",
"version": "0.6.5",
"version": "0.6.6",
"dependencies": {
"@earendil-works/pi-ai": "1.5.0",
"@earendil-works/pi-durable": "1.5.0",
@@ -286,18 +286,18 @@
},
"packages/operations": {
"name": "@shumai/operations",
"version": "0.6.5",
"version": "0.6.6",
"dependencies": {
"zod": "4.5.4",
},
},
"packages/tableprinter": {
"name": "@shumai/tableprinter",
"version": "0.6.5",
"version": "0.6.6",
},
"packages/transcode": {
"name": "@shumai/transcode",
"version": "0.6.5",
"version": "0.6.6",
"dependencies": {
"@shumai/core": "workspace:*",
"@shumai/db": "workspace:*",
@@ -308,7 +308,7 @@
},
"packages/webui": {
"name": "@shumai/webui",
"version": "0.6.5",
"version": "0.6.6",
"dependencies": {
"@base-ui/react": "1.7.0",
"@better-auth/oauth-provider": "1.7.12",
@@ -413,7 +413,7 @@
},
"packages/workflow-core": {
"name": "@shumai/workflow-core",
"version": "0.6.5",
"version": "0.6.6",
"dependencies": {
"@dbos-inc/dbos-sdk": "5.2.11",
"@shumai/core": "workspace:*",
+17
View File
@@ -3,6 +3,23 @@ title: "Changelog"
description: "Recent updates, new features, and improvements in Shumai"
---
<Update label="v0.6.6" description="November 13, 2026">
### Added
- **project**: Support creating new projects via the built-in agent, MCP server, and CLI (`shumai-cli project create`).
- **cli**: Add standalone downloads and one-line installers for macOS, Linux, and Windows without requiring Node.js or Bun, with verified downloads, version selection, and upgrade support.
### Fixed
- **storage**: Remove empty local folders left behind after generating video search embeddings.
### Changed
- **agent**: Upgrade the agent runtime and automatically migrate existing conversations, keep thread histories independent, prevent duplicate history during simultaneous mentions, improve session log scrolling and readability, and fix authentication for OpenAI and custom providers. Agents now run with the main server; standalone agent workers are no longer supported.
</Update>
<Update label="v0.6.5" description="November 7, 2026">
### Added
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "shumai",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"type": "module",
"repository": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/agent",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"type": "module",
"main": "./src/index.ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/api",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"type": "module",
"main": "./src/index.ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/core",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"type": "module",
"main": "./src/index.ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/db",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"type": "module",
"main": "./src/index.ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/dtos",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"type": "module",
"main": "./src/index.ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/e2e",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"type": "module",
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/operations",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"type": "module",
"main": "./src/index.ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/tableprinter",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"type": "module",
"main": "./src/index.ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/transcode",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"type": "module",
"main": "./src/index.ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/webui",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"type": "module",
"main": "./index.html",
+1 -1
View File
@@ -1 +1 @@
export const APP_VERSION = '0.6.5'
export const APP_VERSION = '0.6.6'
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/workflow-core",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"type": "module",
"main": "./src/index.ts",
+8 -1
View File
@@ -84,7 +84,14 @@ main() {
printf 'Installed shumai-cli %s to %s\n' "$version" "$destination"
case ":${PATH:-}:" in
*":$install_dir:"*) ;;
*) printf 'Add this directory to PATH in your shell configuration: %s\n' "$install_dir" ;;
*)
escaped_install_dir=$(printf '%s' "$install_dir" | sed "s/'/'\\\\''/g")
printf '\nTo use shumai-cli in this terminal (Bash/Zsh), run:\n'
printf " export PATH='%s':\"\$PATH\"\n" "$escaped_install_dir"
printf '\nFor future terminals, add that line to ~/.bashrc (Bash) or ~/.zshrc (Zsh).\n'
printf 'For Bash login shells, use your existing login profile\n(e.g. ~/.bash_profile or ~/.profile).\n'
printf 'Open a new terminal after saving. If already configured, skip this step.\n'
;;
esac
resolved=$(command -v shumai-cli || true)
if [ -n "$resolved" ] && [ "$resolved" != "$destination" ]; then
+54 -1
View File
@@ -16,13 +16,26 @@ describe('CLI release publication', () => {
let manifest: string
let assets: { name: string; digest: string }[]
let draft: boolean | undefined
let releasePages: unknown[][] | undefined
let source = 'release-commit'
const calls: string[][] = []
const releaseEntry = (tag: string, isDraft: boolean) => ({
// GitHub's REST API uses snake_case field names.
// eslint-disable-next-line @typescript-eslint/naming-convention
tag_name: tag,
draft: isDraft,
assets,
})
const run = vi.fn((command: string, args: string[]): string => {
calls.push([command, ...args])
if (command === 'git') return args[1] === 'HEAD' ? source : 'release-commit'
if (args[0] === 'api') {
if (draft === undefined) throw new Error('gh: Not Found (HTTP 404)')
if (args.includes('--paginate'))
return JSON.stringify(
releasePages ?? [draft === undefined ? [] : [releaseEntry(`v${version}`, draft)]],
)
// GitHub's tag endpoint only returns published releases, even with write access.
if (draft !== false) throw new Error('gh: Not Found (HTTP 404)')
return JSON.stringify({ draft, assets })
}
if (args[1] === 'create') draft = true
@@ -51,6 +64,7 @@ describe('CLI release publication', () => {
)
await writeFile(join(directory, 'notes.md'), 'Test release notes')
draft = undefined
releasePages = undefined
source = 'release-commit'
calls.length = 0
run.mockClear()
@@ -88,6 +102,45 @@ describe('CLI release publication', () => {
.filter((call) => call[0] === 'gh')
.every((call) => call[1] === 'api' || call[2] === 'download'),
).toBe(true)
expect(calls.some((call) => call.includes('--paginate'))).toBe(false)
})
it('finds an existing draft on a later release-list page when the tag endpoint returns 404', async () => {
draft = true
releasePages = [[releaseEntry('v0.0.1', true)], [releaseEntry(`v${version}`, true)]]
await publishCliRelease('publish', context(), run)
expect(draft).toBe(false)
expect(calls.some((call) => call.includes('--paginate') && call.includes('--slurp'))).toBe(true)
expect(calls.some((call) => call[2] === 'create' || call[2] === 'upload')).toBe(false)
})
it('does not create a release when the draft-list request fails', async () => {
run
.mockImplementationOnce(() => 'release-commit')
.mockImplementationOnce(() => 'release-commit')
.mockImplementationOnce(() => {
throw new Error('gh: Not Found (HTTP 404)')
})
.mockImplementationOnce(() => {
throw new Error('gh: Forbidden (HTTP 403)')
})
await expect(publishCliRelease('stage', context(), run)).rejects.toThrow('HTTP 403')
expect(
run.mock.calls.filter(([command, args]) => command === 'gh' && args[0] !== 'api'),
).toHaveLength(0)
})
it('rejects malformed or ambiguous release lists before changing GitHub', async () => {
releasePages = [[{ name: 'missing tag' }]]
await expect(publishCliRelease('stage', context(), run)).rejects.toThrow(
'Invalid GitHub release list entry',
)
const release = releaseEntry(`v${version}`, true)
releasePages = [[release], [release]]
await expect(publishCliRelease('stage', context(), run)).rejects.toThrow(
'Multiple GitHub releases',
)
expect(calls.every((call) => call[0] === 'git' || call[1] === 'api')).toBe(true)
})
it('rejects a source/tag mismatch before making any GitHub changes', async () => {
+32 -7
View File
@@ -65,6 +65,37 @@ function parseRelease(value: unknown): Release {
}
}
function findRelease(repository: string, tag: string, run: Runner): Release | undefined {
try {
return parseRelease(JSON.parse(run('gh', ['api', `repos/${repository}/releases/tags/${tag}`])))
} catch (error) {
if (!(error instanceof Error) || !error.message.includes('HTTP 404')) throw error
}
// The tag endpoint only returns published releases. Authenticated release lists include drafts.
const pages: unknown = JSON.parse(
run('gh', ['api', '--paginate', '--slurp', `repos/${repository}/releases?per_page=100`]),
)
assert.ok(Array.isArray(pages), 'Invalid GitHub release list')
let release: Release | undefined
for (const page of pages) {
assert.ok(Array.isArray(page), 'Invalid GitHub release list page')
for (const entry of page as unknown[]) {
assert.ok(
entry &&
typeof entry === 'object' &&
'tag_name' in entry &&
typeof entry.tag_name === 'string',
'Invalid GitHub release list entry',
)
if (entry.tag_name !== tag) continue
assert.ok(!release, 'Multiple GitHub releases found for the release tag')
release = parseRelease(entry)
}
}
return release
}
export async function publishCliRelease(
mode: 'stage' | 'publish',
context: { tag: string; repository: string; outdir: string; notes: string },
@@ -85,13 +116,7 @@ export async function publishCliRelease(
`Local checksum mismatch: ${name}`,
)
const endpoint = `repos/${context.repository}/releases/tags/${context.tag}`
let release: Release | undefined
try {
release = parseRelease(JSON.parse(run('gh', ['api', endpoint])))
} catch (error) {
if (!(error instanceof Error) || !error.message.includes('HTTP 404')) throw error
}
let release = findRelease(context.repository, context.tag, run)
if (!release) {
assert.equal(mode, 'stage', 'Release must be staged before publishing')
run('gh', [