Skip to content

Interface: ExtensionBootstrap

Makaio Framework


Makaio Framework / contracts / ExtensionBootstrap

Defined in: ../../../packages/contracts/src/extension/contributions/bootstrap-types.ts:94

Bootstrap capability contributed by an extension.

Participates in project export (discoverExportable + export) and project import (listImportable + import) workflows.

discoverExportable: (ctx) => Promise<BootstrapAsset[]>

Defined in: ../../../packages/contracts/src/extension/contributions/bootstrap-types.ts:109

Discover assets available for export from the current project.

BootstrapDiscoverContext

Discovery context with bus and project info.

Promise<BootstrapAsset[]>

Assets that can be exported.


export: (ctx, asset) => Promise<string>

Defined in: ../../../packages/contracts/src/extension/contributions/bootstrap-types.ts:116

Export a single asset and return its serialized content.

BootstrapDiscoverContext

Export context with bus and project info.

BootstrapAsset

The asset to export.

Promise<string>

Serialized content string written to the bootstrap folder.


folder: string

Defined in: ../../../packages/contracts/src/extension/contributions/bootstrap-types.ts:96

Subfolder name within .makaio/bootstrap/ for this extension’s assets.


import: (ctx, asset, content, action) => Promise<BootstrapImportResult>

Defined in: ../../../packages/contracts/src/extension/contributions/bootstrap-types.ts:125

Import a single asset from its serialized content.

BootstrapImportContext

Import context with bus, project, and bootstrap folder path.

BootstrapAsset

The asset being imported.

string

Serialized content string from the bootstrap folder.

"replace" | "skip"

User-selected conflict resolution action.

Promise<BootstrapImportResult>

Result of the import operation.


listImportable: (ctx, files) => Promise<BootstrapAsset[]>

Defined in: ../../../packages/contracts/src/extension/contributions/bootstrap-types.ts:103

List assets that can be imported from the bootstrap folder.

BootstrapImportContext

Import context with bus, project, and bootstrap folder path.

string[]

Files present in the bootstrap folder.

Promise<BootstrapAsset[]>

Assets available for import.