PromptShield logo PromptShield
PromptShield WorkspaceAPI DocsFunctions

runWorkspaceScan()

runWorkspaceScan(patterns, root, config): AsyncGenerator<ScanEvent>

Defined in: workspace.ts:309

Internal workspace pipeline engine.

Responsibilities:

  • Resolve file globs
  • Initialize cache strategy
  • Enforce bounded concurrency
  • Stream scan events

Results are yielded in task creation order (not completion order).

Parameters

patterns

string[]

root

string

config

WorkspaceScanConfig

Returns

AsyncGenerator<ScanEvent>

On this page