Cell API
    Preparing search index...

    Module @celljs/kit

    @celljs/kit

    Cell 4 工具链的共享类型,供 @celljs/cli、@celljs/vite 和 toolchain 模块、preset 作者使用,没有运行时依赖。

    • CellError:所有工具链错误的形状 { code, message, file?, line?, column?, hint, docs };CellError.is(e) 按名字判断,跨包副本也能识别;format() 是 CLI 的输出格式,toJSON() 是 --json 的格式。
    • 事件:CELL_EVENTS、EVENT_RULES(每个事件固定的组合规则:notify / mutate / gate)、HOOKABLE_EVENTS(项目 hooks 可以订阅的事件)。
    • Preset 与 definePreset。
    • ComponentManifest:组件 package.json 的 cell 字段(modules、staticModules、targets、entries、optionalDependencies、toolchain)。
    • ProjectModel / TargetModel:@celljs/vite 产出的项目模型。
    • CellModuleOptions:toolchain 模块通过扩充它为 cell.config.ts 声明选项类型。
    declare module '@celljs/kit' {
    interface CellModuleOptions {
    audit?: { url: string };
    }
    }
    CellError
    CellAPI
    CellComponent
    CellErrorOptions
    CellLogger
    CellModuleMeta
    CellModuleOptions
    CheckContext
    CheckDefinition
    CheckIssue
    ComponentInfo
    ComponentManifest
    DeployContext
    Deployer
    Deployment
    DeployPlan
    DeployResource
    EnvOverrideReport
    GateResult
    McpToolDefinition
    ModuleRef
    OutputManifest
    Preset
    PresetOutputContext
    PresetPreviewContext
    PreviewProcess
    ProjectModel
    StandardSchema
    TargetModel
    VitePluginLike
    CellEventName
    CellModuleFactory
    DevHandler
    EventRule
    HookableEventName
    ServerRuntime
    Target
    CELL_EVENTS
    EVENT_RULES
    HOOKABLE_EVENTS
    defineCellModule
    defineDeployer
    definePreset