/**
 * Shared installation prompt utilities used by both macOS and Windows prompts.
 *
 * Contains the general rules section, preflight log formatter, and the
 * completion instructions that finalize installation across platforms.
 */
/** Format preflight log entries into a human-readable block with level icons. */
export function formatPreflightLog(log) {
    if (log.length === 0)
        return '(no preflight log available)';
    const icons = { info: '[INFO]', ok: '[ OK ]', warn: '[WARN]' };
    return log.map((e) => `${icons[e.level]} [${e.step}] ${e.message}`).join('\n');
}
export const GENERAL_RULES = `\
**General rules:**
- Check what's already in place before doing anything. If a step passed in preflight, verify it quickly and move on.
- Focus your effort on steps that preflight flagged as warnings or failures.
- ALWAYS ask for user permission before installing anything. If something fails, troubleshoot with the user before continuing.
- Be conversational — confirm each step succeeds before moving on.
- Tool descriptions (the "description" field on tool calls) are visible to the user in the UI. Write them in plain English that a non-technical user would understand. Never reference internal implementation details like "marker files", "registry keys", or file paths.`;
/** Build the prompt section that tells the agent how to finalize installation. */
export function buildCompletionSection(installedMarker) {
    return `\
## Completion

Save setup as complete (write the marker file \`${installedMarker}\`), then use switch_from_installation_mode(mode: "action") to enter action mode. Use a friendly description like "Saving setup as complete".

Tell the user what to expect going forward:
- **From now on, just run \`shortcut\`** — everything starts automatically. No manual setup needed again.
- Tell the user that they can either ask to do things in their spreadsheet right away — reading, writing, sensitivity tables, multi-workbook workflows, etc... AND / OR
- Explore capabilities and extensibility — the user can ask the agent to build custom tools, connect to APIs (e.g. internal databases, Daloopa, Bloomberg, etc.), and add integrations. The agent can modify itself to add new capabilities on demand.
- Ask what they'd like to do first!`;
}
//# sourceMappingURL=prompt-shared.js.map