mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-28 07:44:56 +00:00
code: sandboxed,nextjs,lua (1 files)
This commit is contained in:
@@ -1,17 +1,13 @@
|
||||
import { LuaEngine } from './lua-engine'
|
||||
import type { LuaExecutionResult } from './lua-engine'
|
||||
import type { SecurityScanResult } from '../security-scanner'
|
||||
import { executeWithSandbox } from './functions/sandbox/execute-with-sandbox'
|
||||
import { executeWithSandbox, type SandboxedLuaResult } from './functions/sandbox/execute-with-sandbox'
|
||||
import { disableDangerousFunctions } from './functions/sandbox/disable-dangerous-functions'
|
||||
import { setupSandboxedEnvironment } from './functions/sandbox/setup-sandboxed-environment'
|
||||
import { executeWithTimeout } from './functions/sandbox/execute-with-timeout'
|
||||
import { setExecutionTimeout } from './functions/sandbox/set-execution-timeout'
|
||||
import { destroy } from './functions/sandbox/destroy'
|
||||
|
||||
export interface SandboxedLuaResult {
|
||||
execution: LuaExecutionResult
|
||||
security: SecurityScanResult
|
||||
}
|
||||
// Re-export the result type
|
||||
export type { SandboxedLuaResult }
|
||||
|
||||
export class SandboxedLuaEngine {
|
||||
engine: LuaEngine | null = null
|
||||
|
||||
Reference in New Issue
Block a user