Simplify boot sequence, remove terminal emblem, and introduce fastfetch script for sandbox login facts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
OverlordandClaude Bot committed 2026-10-13 16:07:41 +02:00
1 parent 7937879ace
commit 5f3ff481b4
24 files changed
+232 -240

No files matched your search

+7 -3
View File
@@ -13,7 +13,7 @@ const config: SpawnerConfig = {
};
describe('containerSpec', () => {
const spec = containerSpec(config, 'session123', 1_800_000_000);
const spec = containerSpec(config, 'session123', 1_800_000_000, { cols: 100, rows: 30 });
const host = spec.HostConfig;
it('isolates the sandbox', () => {
@@ -23,7 +23,7 @@ describe('containerSpec', () => {
expect(spec.NetworkDisabled).toBe(true);
expect(host.CapDrop).toEqual(['ALL']);
expect(host.SecurityOpt).toContain('no-new-privileges');
expect(spec.User).toBe('guest');
expect(spec.User).toBe('agent');
});
it('limits resources', () => {
@@ -35,10 +35,14 @@ describe('containerSpec', () => {
});
it('mounts host paths read only', () => {
expect(host.Binds).toEqual(['/srv/content:/home/guest:ro', '/srv/status:/var/status:ro']);
expect(host.Binds).toEqual(['/srv/content:/home/agent:ro', '/srv/status:/var/status:ro']);
expect(Object.values(host.Tmpfs).every((options) => options.includes('noexec'))).toBe(true);
});
it('starts the terminal at the size of the browser', () => {
expect(host.ConsoleSize).toEqual([30, 100]);
});
it('passes only the session id and expiry into the container', () => {
expect(spec.Env).toEqual(['SESSION_ID=session123', 'SESSION_EXPIRES_AT=1800000000', 'TERM=xterm-256color']);
});