mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 02:19:28 +00:00
feat(runner): replace server-side bash sandbox with remote runner (#530)
* feat(runner): replace server-side bash sandbox with remote runner * fix(runner): address review findings for output bounds, key rotation, defaults, and generated uploads * chore(docker): remove sandbox privileges and env vars from remaining compose files * feat(cli): add runner start with bundled SRT sandboxing (#535) * refactor(agent): expose runner bash without skill gating * feat(cli): add runner start with optional SRT sandboxing * refactor(cli): remove runner Python dependency * feat(cli): bundle SRT and use platform-native runner shells * refactor(cli): delegate runner processes to Execa * chore(cli): upgrade @anthropic-ai/sandbox-runtime to 0.0.83 * feat(cli): discover Bash for Windows runners Use Pi-style Bash discovery and launch behavior, exercise the packaged CLI shell, and wait for pending ZIP metadata reads before closing cancelled downloads. * fix(runner): enforce ownership and safe reconnects Gate dispatch on reconciliation, retain cancellations across disconnects, and stop replaced clients. Guard the single-server runner topology with a database lease. Restage missing generated inputs, report signal exits, and bound generated-file cleanup. * feat(webui): add Korean translations for agent runners * feat(cli): add runner event logging and --verbose flag (#536) * feat(cli): add runner event logging and --verbose flag * fix(cli): log runner capacity rejections accurately and use monotonic duration
This commit is contained in:
@@ -6,6 +6,7 @@ import { parseArgs } from 'node:util'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { version } from '../package.json'
|
||||
import { version as cliVersion } from '../apps/cli/package.json'
|
||||
import { srtBundlePlugin } from './srt-bundle'
|
||||
|
||||
export const cliTargets = {
|
||||
'darwin-arm64': 'bun-darwin-arm64',
|
||||
@@ -80,6 +81,7 @@ export async function assembleCliRelease(outdir: string, targets = cliTargetName
|
||||
export async function buildCliRelease(outdir: string, targets = cliTargetNames) {
|
||||
validateCliVersion(version)
|
||||
if (cliVersion !== version) throw new Error('Root and CLI package versions must match')
|
||||
const notices = await readFile(join(repoRoot, 'apps/cli/THIRD-PARTY-NOTICES.txt'), 'utf8')
|
||||
await mkdir(outdir, { recursive: true })
|
||||
const staging = await mkdtemp(join(outdir, '.build-'))
|
||||
try {
|
||||
@@ -90,6 +92,8 @@ export async function buildCliRelease(outdir: string, targets = cliTargetNames)
|
||||
entrypoints: [join(repoRoot, 'apps/cli/src/index.ts')],
|
||||
target: 'bun',
|
||||
minify: true,
|
||||
banner: '/*\n' + notices + '*/',
|
||||
plugins: [srtBundlePlugin(...target.split('-'))],
|
||||
compile: {
|
||||
target: cliTargets[target],
|
||||
outfile: binary,
|
||||
|
||||
Reference in New Issue
Block a user