Skip to content

Commit 3ca28a5

Browse files
committed
minor cleanup.
1 parent 58cd964 commit 3ca28a5

File tree

3 files changed

+5
-175
lines changed

3 files changed

+5
-175
lines changed

BROWSER_AUTOMATION.md

Lines changed: 0 additions & 173 deletions
This file was deleted.

src/tools/system/shellMessage.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,9 @@ export const shellMessageTool: Tool<Parameters, ReturnType> = {
162162
},
163163

164164
logParameters: (input, { logger }) => {
165-
logger.info(
166-
`Interacting with process ${input.instanceId}, ${input.description}`,
165+
const processState = processStates.get(input.instanceId);
166+
logger.info(
167+
`Interacting with shell command "${processState ? processState.command : "<unknown instanceId>"}", ${input.description}`,
167168
);
168169
},
169170
logReturns: () => {},

src/tools/system/shellStart.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { errorToString } from '../../utils/errorToString.js';
99
// Define ProcessState type
1010
type ProcessState = {
1111
process: ChildProcess;
12+
command: string;
1213
stdout: string[];
1314
stderr: string[];
1415
state: {
@@ -86,6 +87,7 @@ export const shellStartTool: Tool<Parameters, ReturnType> = {
8687
const process = spawn(command, [], { shell: true });
8788

8889
const processState: ProcessState = {
90+
command,
8991
process,
9092
stdout: [],
9193
stderr: [],

0 commit comments

Comments
 (0)