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:
1 parent
7937879ace
commit
5f3ff481b4
24 files changed
+232
-240
No files matched your search
@@ -5,7 +5,7 @@ import type { WebSocket } from 'ws';
|
||||
import { TokenBucket } from './throttle.ts';
|
||||
|
||||
export type Spawner = {
|
||||
spawn(sessionId: string, expiresAt: number): Promise<string>;
|
||||
spawn(sessionId: string, expiresAt: number, size: TerminalSize): Promise<string>;
|
||||
attach(containerId: string): Promise<Duplex>;
|
||||
resize(containerId: string, cols: number, rows: number): Promise<void>;
|
||||
kill(containerId: string): Promise<void>;
|
||||
@@ -72,7 +72,7 @@ export class Session
|
||||
async start(socket: WebSocket, size: TerminalSize): Promise<void>
|
||||
{
|
||||
this.socket = socket;
|
||||
this.containerId = await this.spawner.spawn(this.id, this.expiresAt);
|
||||
this.containerId = await this.spawner.spawn(this.id, this.expiresAt, size);
|
||||
if (this.ended) return this.release();
|
||||
|
||||
const stream = await this.spawner.attach(this.containerId);
|
||||
|
||||
Reference in new issue
Block a user