/** * Vendored from pi-mono — DO NOT EDIT BEHAVIOUR HERE. * Source: packages/coding-agent/examples/extensions/subagent/index.ts * Repo: https://github.com/badlogic/pi-mono (local clone) * SHA: 3e5ad67e0f325d4888f82f9b82966218eb4407f5 * Date: 2026-05-07 * License: MIT (Copyright (c) 2025 Mario Zechner) — see pi-mono/LICENSE * Notes: Imports rewritten @entelligentsia/* → @entelligentsia/*. * Upstream promotion: see forge-cli/architectural-review.md §R2. * * Forge-cli divergence (FORGE-S20-T11, must be re-applied on every pi-mono sync): * - The local `shortenPath` helper inside `formatToolCall` is replaced * by `shortenPath` imported from `../paths/paths.js` so every * home-prefix replacement in forge-cli funnels through the central * resolver (AC #1: no `os.homedir()` outside the resolver). * - This is a pure implementation refactor — behaviour is unchanged. * - The `os` import is dropped because the only consumer was that helper. * - See `forge-cli/vendor-pi/DIVERGENCE.md` (sync-pi-upstream picks it up). */ import { type ExtensionAPI } from "@earendil-works/pi-coding-agent"; export default function (pi: ExtensionAPI): void; export { discoverAgents } from "./agents.js";