CursorAgentAction
in package
Table of Contents
Methods
- call() : CursorAgentResult
- ensureWorkingDirectoryExists() : void
- Ensure the working directory exists, create it if it doesn't
- verifyToken() : void
- Verify that the required token is set in environment variables Note: Token is now set in the main command execution context
Methods
call()
public
call(array<string|int, mixed> $command[, string|null $workingDirectory = null ][, int|null $timeout = 300 ]) : CursorAgentResult
Parameters
- $command : array<string|int, mixed>
- $workingDirectory : string|null = null
- $timeout : int|null = 300
Return values
CursorAgentResultensureWorkingDirectoryExists()
Ensure the working directory exists, create it if it doesn't
protected
ensureWorkingDirectoryExists(string $directory) : void
Parameters
- $directory : string
verifyToken()
Verify that the required token is set in environment variables Note: Token is now set in the main command execution context
protected
verifyToken() : void