mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Add Terminal to System Settings
This commit is contained in:
14 files changed
+43
-26
No files matched your search
@@ -41,7 +41,7 @@ describe('ShellTool', () => {
|
||||
mockFS = createMockFS();
|
||||
mockNostr = createMockNostr();
|
||||
mockGit = new Git({ fs: mockFS, nostr: mockNostr });
|
||||
shellTool = new ShellTool(mockFS, testCwd, mockGit, '/projects', testCorsProxy);
|
||||
shellTool = new ShellTool(mockFS, testCwd, mockGit, testCorsProxy);
|
||||
});
|
||||
|
||||
it('should have correct tool properties', () => {
|
||||
|
||||
@@ -51,7 +51,6 @@ export class ShellTool implements Tool<ShellToolParams> {
|
||||
private cwd: string;
|
||||
private git: Git;
|
||||
private commands: Map<string, ShellCommand>;
|
||||
private projectsPath: string;
|
||||
private signer?: NostrSigner;
|
||||
private corsProxy: string;
|
||||
|
||||
@@ -63,11 +62,10 @@ export class ShellTool implements Tool<ShellToolParams> {
|
||||
),
|
||||
});
|
||||
|
||||
constructor(fs: JSRuntimeFS, cwd: string, git: Git, projectsPath: string = '/projects', corsProxy: string, signer?: NostrSigner) {
|
||||
constructor(fs: JSRuntimeFS, cwd: string, git: Git, corsProxy: string, signer?: NostrSigner) {
|
||||
this.fs = fs;
|
||||
this.cwd = cwd;
|
||||
this.git = git;
|
||||
this.projectsPath = projectsPath;
|
||||
this.corsProxy = corsProxy;
|
||||
this.signer = signer;
|
||||
this.commands = new Map();
|
||||
|
||||
Reference in new issue
Block a user