Skip to content

Interface: OsfqlCatalogEntry

@kortexya/reasoninglayer


@kortexya/reasoninglayer / OsfqlCatalogEntry

Defined in: src/types/osfql.ts:939

One entry of the OSFQL statement catalog — the engine’s own description of a statement it implements.

⚠️ The enum-valued fields mix casing deliberately, and the SDK preserves it verbatim. risk is snake_case (additive_write) because it is the same value the generative-UI action surface reads back; family, category, returns and both halves of uiAffinity are PascalCase (Query, Read, Bindings, Table). Comparing them case-insensitively is safer than assuming one convention.

brief: string

Defined in: src/types/osfql.ts:951

Summary of at most 120 characters.


category: string

Defined in: src/types/osfql.ts:947

Read | Write | Control | Meta (PascalCase).


examples: string[]

Defined in: src/types/osfql.ts:957

Parse-tested example(s).


execution: OsfqlCatalogExecution

Defined in: src/types/osfql.ts:975

How far the engine executes this statement.


family: string

Defined in: src/types/osfql.ts:945

Functional family, PascalCase (e.g. Query, Schema, Logic).


full: string

Defined in: src/types/osfql.ts:953

Deeper description.


id: string

Defined in: src/types/osfql.ts:941

Stable snake_case id, e.g. match, insert_bulk.


mutates: string

Defined in: src/types/osfql.ts:973

Whether this statement writes the store: never, always, or depends when only the authored arguments can decide.

category cannot answer this. CHAIN and RELEASE RESIDUATIONS are Control and both write; MATCH is Read and writes whenever it carries an inline clause. Read this field instead of keeping a table of which process-control statements write.

depends is resolved by OsfqlClient.preview, whose per-statement mutates is a concrete boolean. Copied verbatim, like risk.


needs: string[]

Defined in: src/types/osfql.ts:985

Grounding ingredients the authoring stage must supply (e.g. Sort, Features, Pattern). Empty means the statement genuinely needs none — it is not a stand-in for “unknown”.


pitfalls: string[]

Defined in: src/types/osfql.ts:987

Known gotchas and engine caveats for this statement.


returns: string

Defined in: src/types/osfql.ts:979

Result shape, PascalCase (e.g. Bindings, Scalar, Path).


risk: string

Defined in: src/types/osfql.ts:959

Safety tier, snake_case (e.g. read, additive_write).


statement: string

Defined in: src/types/osfql.ts:943

Exact AST variant name, e.g. Match, Bulk.


subOps: string[]

Defined in: src/types/osfql.ts:949

Sub-variant/operation names folded under this entry.


syntax: string

Defined in: src/types/osfql.ts:955

Canonical shape from the grammar.


uiAffinity: OsfqlCatalogUiAffinity

Defined in: src/types/osfql.ts:977

UI role — display and/or action.