Interface: PlanScope
Defined in: core/hooks/planGate.ts:5
What plan mode lets through besides reading: see createPlanGate().
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
projectDir | string | Base for relative paths: the session's cwd. | core/hooks/planGate.ts:7 |
Methods
isPlanFile()?
optional isPlanFile(filePath): boolean;
Defined in: core/hooks/planGate.ts:9
Whether Write/Edit may touch this file (absolute) in plan mode.
Parameters
| Parameter | Type |
|---|---|
filePath | string |
Returns
boolean
isReadOnlyTool()?
optional isReadOnlyTool(toolName, input): boolean;
Defined in: core/hooks/planGate.ts:11
Whether one of the agent's own MCP tools only reads.
Parameters
| Parameter | Type |
|---|---|
toolName | string |
input | Record<string, unknown> |
Returns
boolean