Skip to content

PromptScript API


Variable: CURSOR_VERSIONS

const CURSOR_VERSIONS: object

Defined in: formatters/src/formatters/cursor.ts:13

Cursor formatter version information.

Type Declaration

frontmatter

readonly frontmatter: object

frontmatter.cursorVersion

readonly cursorVersion: "0.45+" = '0.45+'

frontmatter.description

readonly description: "Alias for modern format (MDC with YAML frontmatter)" = 'Alias for modern format (MDC with YAML frontmatter)'

frontmatter.introduced

readonly introduced: "2024-12" = '2024-12'

frontmatter.name

readonly name: "frontmatter" = 'frontmatter'

frontmatter.outputPath

readonly outputPath: ".cursor/rules/project.mdc" = '.cursor/rules/project.mdc'

legacy

readonly legacy: object

legacy.cursorVersion

readonly cursorVersion: "< 0.45" = '< 0.45'

legacy.deprecated

readonly deprecated: true = true

legacy.deprecatedSince

readonly deprecatedSince: "2024-12" = '2024-12'

legacy.description

readonly description: "Plain text format (.cursorrules) - DEPRECATED" = 'Plain text format (.cursorrules) - DEPRECATED'

legacy.name

readonly name: "legacy" = 'legacy'

legacy.outputPath

readonly outputPath: ".cursorrules" = '.cursorrules'

modern

readonly modern: object

modern.cursorVersion

readonly cursorVersion: "0.45+" = '0.45+'

modern.description

readonly description: "MDC format with YAML frontmatter (.cursor/rules/project.mdc)" = 'MDC format with YAML frontmatter (.cursor/rules/project.mdc)'

modern.introduced

readonly introduced: "2024-12" = '2024-12'

modern.name

readonly name: "modern" = 'modern'

modern.outputPath

readonly outputPath: ".cursor/rules/project.mdc" = '.cursor/rules/project.mdc'

multifile

readonly multifile: object

multifile.cursorVersion

readonly cursorVersion: "0.45+" = '0.45+'

multifile.description

readonly description: "Multiple MDC files with glob-based targeting" = 'Multiple MDC files with glob-based targeting'

multifile.introduced

readonly introduced: "2024-12" = '2024-12'

multifile.name

readonly name: "multifile" = 'multifile'

multifile.outputPath

readonly outputPath: ".cursor/rules/project.mdc" = '.cursor/rules/project.mdc'