import type { Config, RunnerName } from "./config.js"; import type { Secrets } from "./env.js"; import type { JobRecord, JobStore } from "./jobs.js"; import type { WebhookEvent } from "./payload.js"; import { type BuiltPrompt } from "./prompt.js"; import { type RunContext, type Runner, type RunnerInvocation } from "./runners/index.js"; import type { Skill } from "./skills.js"; /** The name the agent sees the job API under (`--mcp-config` / `mcp_servers.skillhook_job`). */ export declare const AGENT_API_SERVER_NAME = "skillhook-job"; /** * How to start this very CLI from a child process: `SKILLHOOK_BIN` in the server's environment (a command line, used * by tests and unusual installs), else `node /dist/cli.js` when the compiled CLI exists. Undefined when * running from source without a build: the job API is then reachable only through `skillhook` on PATH. */ export declare function resolveSkillhookBin(processEnv?: NodeJS.ProcessEnv): { command: string; args: string[]; } | undefined; export interface RunSettings { runner: RunnerName; model?: string; effort?: string; timeoutSeconds: number; cwd: string; } export interface RunOverrides { runner?: RunnerName; /** An account (`skillhook accounts`) instead of the skill's pool; its runner unless `runner` says otherwise. */ account?: string; model?: string; effort?: string; cwd?: string; } /** Skill config wins over server defaults; explicit CLI/API overrides win over both. */ export declare function resolveRunSettings(skill: Skill, config: Config, overrides?: RunOverrides): RunSettings; export interface PreparedRun { runner: Runner; ctx: RunContext; invocation: RunnerInvocation; built: BuiltPrompt; } export interface PrepareRunInput { skill: Skill; config: Config; secrets: Secrets; /** Secrets from the .env file only (see buildRunEnv). */ fileSecrets?: Secrets; store: JobStore; job: JobRecord; event: WebhookEvent; cwd?: string; /** When false (dry runs) prompt.md is not written. */ writePrompt?: boolean; /** The server's environment (default `process.env`); tests pass their own. */ processEnv?: NodeJS.ProcessEnv; } export declare function prepareRun(input: PrepareRunInput): PreparedRun;