Add Terminal to System Settings

This commit is contained in:
Alex Gleason committed 2025-11-23 11:02:07 -06:00
1 parent 4f73d99f64
commit 199043e4bc
14 files changed
+43 -26

No files matched your search

+1 -1
View File
@@ -609,7 +609,7 @@ Commands are executed through the `ShellTool` which handles:
import { ShellTool } from '@/lib/tools/ShellTool';
// Create shell tool with filesystem and working directory
const shell = new ShellTool(fs, '/project/root');
const shell = new ShellTool(fs, '/project/root', ...rest);
// Execute commands
const result = await shell.execute({ command: 'cat package.json' });
+1 -1
View File
@@ -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', () => {
+1 -3
View File
@@ -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();