mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 09:07:18 +00:00
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
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',
|
||||
@@ -90,6 +91,7 @@ export async function buildCliRelease(outdir: string, targets = cliTargetNames)
|
||||
entrypoints: [join(repoRoot, 'apps/cli/src/index.ts')],
|
||||
target: 'bun',
|
||||
minify: true,
|
||||
plugins: [srtBundlePlugin(...target.split('-'))],
|
||||
compile: {
|
||||
target: cliTargets[target],
|
||||
outfile: binary,
|
||||
|
||||
Reference in New Issue
Block a user