Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

725 B
Raw Blame
import { FsSafeError } from "./errors.js";
import { canFallbackFromPythonError } from "./pinned-python-config.js";
import { runPinnedHelper } from "./pinned-helper.js";
export function isPinnedPathHelperSpawnError(error) {
    return canFallbackFromPythonError(error);
}
export async function runPinnedPathHelper(params) {
    try {
        await runPinnedHelper(params.operation, params.rootPath, {
            relativePath: params.relativePath,
        });
    }
    catch (error) {
        if (error instanceof FsSafeError) {
            throw error;
        }
        throw new FsSafeError("helper-failed", "pinned path helper failed", {
            cause: error instanceof Error ? error : undefined,
        });
    }
}