Appearance
Function: initSkill()
ts
function initSkill(
ctx: Context,
indexStep: CallableFunction,
options?: {
hotReload?: boolean;
}): Promise<void>;Defined in: src/hot-reload/core/init.ts:269
Initialize the skill with hot-reload support. Call this from background.tsx.
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | Context | The skill context. |
indexStep | CallableFunction | The entry function that runs the skill logic (e.g. startStep). |
options? | { hotReload?: boolean; } | Optional overrides. Set hotReload to force the mode on or off. |
options.hotReload? | boolean | - |
Returns
Promise<void>
A promise that resolves when the skill finishes.
Example
ts
await initSkill(ctx, startStep);
// or force hot reload off
await initSkill(ctx, startStep, { hotReload: false });