Skip to main content

FileRule

@a16njs/models


@a16njs/models / FileRule

Interface: FileRule

Defined in: types.ts:101

A rule that is triggered by file patterns. Examples: Cursor rules with globs

Extends

Properties

id

id: string

Defined in: types.ts:26

Unique identifier for this item

Inherited from

AgentCustomization.id


sourcePath

sourcePath: string

Defined in: types.ts:30

Original file path where this was discovered

Inherited from

AgentCustomization.sourcePath


content

content: string

Defined in: types.ts:32

The actual prompt/rule content

Inherited from

AgentCustomization.content


metadata

metadata: Record<string, unknown>

Defined in: types.ts:34

Tool-specific extras that don't fit the standard model

Inherited from

AgentCustomization.metadata


type

type: FileRule

Defined in: types.ts:102

The type of customization

Overrides

AgentCustomization.type


globs

globs: string[]

Defined in: types.ts:104

File patterns that trigger this rule