import type { WorkspacePlugin } from "../plugin.js"; /** * Generate the `.omp/extensions/skaile.ts` file content for a given project. * * Stateless — accepts only `projectDir` and embeds it as a JSON string * literal in the generated TypeScript source. No `boot()` or plugin instance * is required; this function is safe to call from install commands. * * The generated file exports `onInit`, `tools`, and `slashCommands` as * required by the OMP extension API. * * @param projectDir - Absolute path to the skaile project root (embedded in * the generated source). * @returns A TypeScript source string ready to be written to * `.omp/extensions/skaile.ts`. * * @docLink packages/workspace-plugin/concepts#adapters */ export declare function buildOmpExtensionSource(projectDir: string): string; /** * Build the OMP-native tool set for a booted `WorkspacePlugin`. * * Returns 13 tool objects in OMP's `{ name, description, parameters, handler }` * shape — a high-frequency subset of the 28 MCP tools. The full tool surface * is available via the MCP adapter. * * Included tools: `mount_list`, `mount_sync`, `flow_list`, `flow_list_sessions`, * `skill_list`, `skill_search`, `skill_show`, `connector_list`, `connector_read`, * `connector_exec`, `session_list`, `workspace_validate`, `workspace_info`. * * @param plugin - A booted `WorkspacePlugin` instance. * @returns Array of OMP tool definition objects. * * @docLink packages/workspace-plugin/concepts#adapters */ export declare function buildOmpToolSet(plugin: WorkspacePlugin): unknown[]; /** * Dispatch an OMP slash command to the appropriate tool group. * * Routes the command group string to the corresponding tool functions. * Supported groups: `"flow"`, `"connector"`, `"skill"`, `"mounts"`, * `"validate"`. Returns a human-readable string for display in the OMP * terminal. * * Sub-commands per group: * - `flow`: `list` | `show ` | `sessions` | `session ` * - `connector`: `list` | `read ` | `exec [json-args]` | `describe ` * - `skill`: `list [domain]` | `show ` | `search ` | `run ` * - `mounts`: `list` | `sync ` | `status ` * - `validate`: (no sub-commands) * * @param plugin - A booted `WorkspacePlugin` instance. * @param group - Slash command group name (without the leading `/`). * @param args - Tokenised arguments following the group name. * @returns Plain-text result string for the OMP terminal. * * @docLink packages/workspace-plugin/concepts#adapters */ export declare function handleSlashCommand(plugin: WorkspacePlugin, group: string, args: string[]): Promise; //# sourceMappingURL=omp.d.ts.map