import { Sandbox } from 'novita-sandbox/code-interpreter'
const sandbox = await Sandbox.create()
// Create test file
const filePathInSandbox = '/tmp/test-file'
await sandbox.files.write(filePathInSandbox, 'test-file-content')
// Get file metadata
const info = await sandbox.files.getInfo(filePathInSandbox)
console.log(info)
// {
// name: 'test-file',
// type: 'file',
// path: '/tmp/test-file',
// size: 17,
// mode: 420,
// permissions: '-rw-r--r--',
// owner: 'user',
// group: 'user',
// modifiedTime: 2026-06-03T12:12:23.964Z,
// symlinkTarget: undefined
// }
await sandbox.kill()