SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Module @sheetxl/query

    @sheetxl/query

    The workbook read surface — capabilities declared once, as descriptors any surface adapts mechanically. Designed so an agent can use it well; built for anyone.

    @sheetxl/sdk       engine + analysis → typed results
    ↓
    @sheetxl/query capabilities + renderers ← this package
    ↓
    host surfaces command flags · tool schemas · embedding hosts
    Capabilities grep — search cell contents by pattern across a workbook
    The value encoding the ' string prefix, TRUE/FALSE, error literals — the presentation contract every read shares
    Renderers typed result → the aligned listing or table a reader consumes
    • No file I/O. Every capability takes an IWorkbook. A host may hold a workbook with unsaved edits and no file behind it — a path-shaped entry point would exclude that host or make it read stale data. Loading belongs to the caller.
    • No argument parsing. Argument syntax — flag grammar, schema dialects — belongs to the surface that owns it.
    • Nothing UI. No consumer above the grid depends on this package.

    A capability is declared once, as a Tool.Descriptor, and each surface generates its own registration from it:

    import { TOOLS } from '@sheetxl/query';

    for (const descriptor of TOOLS) {
    // a flag parser: descriptor.params → options
    // a tool registry: descriptor.params → inputSchema
    }

    Adding a capability here adds it to every surface with no edit in any of them. Affordances — how you name a workbook, how a result reaches its reader — are expected to differ and stay with the surface that owns them. The divergence worth preventing is two hand-written copies of one capability.

    Portability is the defining property of a macro, and the SDK is the portability boundary. A macro that imported @sheetxl/query would work in one host and fail in another — an environment-dependent cliff that passes every test you would think to write. A macro returns data; the layer above renders it.

    ApiLookup
    CellEncoding
    Renderer
    Tool
    MarkdownBuilder
    MarkdownFrameSection
    NoRendererError
    ApiArgs
    AppendDependencyOptions
    AppendFeatureOptions
    AppendNamesOptions
    DependencyContext
    DependencySource
    GrepArgs
    GrepMatch
    GrepMatchContext
    GrepResult
    GrepSheetMatches
    ProfileRegionOptions
    RegionPayload
    RegionProfile
    RenderCellRangeOptions
    RenderedResult
    RenderFormulaOptions
    RenderModulesOptions
    RenderNamesOptions
    RenderRangesOptions
    RenderRecordsOptions
    RenderRegionsOptions
    RenderSheetOptions
    RenderValuesOptions
    RenderWorkbookOptions
    ShapeTextEntry
    Totals
    TotalsLine
    TotalsSums
    GrepContext
    GrepField
    GrepOutput
    ProfileSource
    RegionShape
    TableCellDetails
    API_ENTRY_POINTS
    apiTool
    GREP_FIELDS
    GREP_FIELDS_DEFAULT
    GrepField
    grepTool
    REFERENCES
    RENDER_OPTION_KEYS
    RENDERABLE_KINDS
    RENDERERS
    REPORTED_FEATURES
    TOOLS
    apiPointerFor
    apiSuggestionsFor
    apiTypeOf
    appendDependencies
    appendGroupFacts
    appendGroupMembers
    appendKinds
    appendModules
    appendMovables
    appendNames
    appendRegionList
    appendRegions
    appendRules
    appendShapeFacts
    appendSheetObjects
    appendSheetProtection
    appendTables
    collectModules
    collectShapeText
    contentfulBlocks
    countDates
    describeAlignment
    describeAllowedValues
    describeAnchor
    describeApi
    describeBorder
    describeBorderParts
    describeCellProtection
    describeColor
    describeConditionalFormat
    describeDataValidation
    describeExtent
    describeFill
    describeFont
    describeLock
    describeMovableSummary
    describeNode
    describeNodeLabel
    describeNodeLabels
    describeNumberFormat
    describeOutline
    describeQualifiedExtent
    describeQualifiedName
    describeQualifiedRanges
    describeRangeProtection
    describeRanges
    describeRules
    describeRuleStyle
    describeScale
    describeShapeText
    describeSheetCall
    describeSheetName
    describeSums
    describeTypeHeading
    describeWorkbookProtection
    detectTotals
    encodeCell
    encodeFormattedNumber
    encodeNumber
    encodeScalar
    findNames
    grep
    groupMovables
    groupOf
    isPlainRecord
    lookupApi
    parseFeatures
    parseRenderOptions
    profileKinds
    profileRegion
    protectionPointerFor
    quoteShapeText
    readShapeText
    regionPayload
    regionPayloads
    renderApi
    renderCell
    renderCellRange
    renderConditionalFormat
    renderCounts
    renderDataValidation
    renderFormula
    renderGrep
    renderMarkdown
    renderModule
    renderModules
    renderMovable
    renderNames
    renderProtectedRange
    renderProtection
    renderRanges
    renderRecords
    renderRegions
    renderResult
    renderShape
    renderSheet
    renderStats
    renderStyle
    renderTable
    renderValues
    renderWorkbook
    resolveRenderer
    summarizeSheetProtection