feat(workspace-terminal): use environment shell command

This commit is contained in:
2026-05-25 06:13:11 +00:00
parent 0eb4611ea6
commit fed3247eea
8 changed files with 1492 additions and 877 deletions
@@ -1,5 +1,11 @@
import * as webcontainer from '@tempfix/webcontainer__api';
import type { IExecutionEnvironment, IFileEntry, IFileWatcher, IProcessHandle } from '../interfaces/IExecutionEnvironment.js';
import type {
IExecutionEnvironment,
IFileEntry,
IFileWatcher,
IProcessHandle,
IShellCommand,
} from '../interfaces/IExecutionEnvironment.js';
/**
* WebContainer-based execution environment.
@@ -154,6 +160,14 @@ export class WebContainerEnvironment implements IExecutionEnvironment {
};
}
public getShellCommand(): IShellCommand {
return {
command: 'jsh',
label: 'jsh',
prompt: '~/',
};
}
// ============ WebContainer-specific methods ============
/**