INNER CODE UNIT · TypeScript
getWorkspace
openai/codex-security · plugins/codex-security/mcp-app/server.ts:2083
async function getWorkspace(
workspaceId: string,
threadId?: string,
): Promise<WorkspaceState> {
return (await runWorkbench([
"get-workspace",
"--workspace-id",
workspaceId,
...optionalArg("--thread-id", threadId),
])) as WorkspaceState;
}
async function startPromptOnlyScan(
input: PromptOnlyScanInput,
threadId: string,
modelSettings: { model?: string; reasoningEffort?: string } = {},
): Promise<JsonObject> {
const { mode, targetPath, scope, targetSummary, userContext, diffTarget } =