Files
moeka-project/packages/plugin-sdk/src/extension/define.ts
T
Nekoandautofix-ci[bot] 668440a732 refactor(extension-*,stage-tamagotchi,stage-ui,server-*): rename to extension, improve DX (#1892)
---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by-agent: Codex
2026-06-12 02:03:42 +08:00

20 lines
555 B
TypeScript

import type { Extension } from './shared'
/**
* Defines an AIRI extension entrypoint.
*
* Use when:
* - Authoring an extension package that runs setup code and may use host-provided kits
* - Keeping extension metadata and setup logic in one explicit export
*
* Expects:
* - `id` matches `extension.airi.json`
* - `setup` uses `ctx.kits` for the common kit authoring path
*
* Returns:
* - The extension definition consumed by an extension host loader
*/
export function defineExtension(extension: Extension): Extension {
return extension
}