@shelltender/server
Version:
Server-side terminal session management for Shelltender
20 lines • 565 B
TypeScript
import { SessionOptions } from '@shelltender/core';
export declare class RestrictedShell {
private options;
private restrictedPath;
private blockedCommands;
private allowUpward;
constructor(options: SessionOptions);
private addReadOnlyRestrictions;
getInitScript(): string;
validateCommand(command: string): {
allowed: boolean;
reason?: string;
};
getShellCommand(): {
command: string;
args: string[];
env: Record<string, string>;
};
}
//# sourceMappingURL=RestrictedShell.d.ts.map