|
|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import fs from "node:fs/promises";
|
|
|
|
|
import os from "node:os";
|
|
|
|
|
import path from "node:path";
|
|
|
|
|
import { createSyntheticSourceInfo } from "@mariozechner/pi-coding-agent";
|
|
|
|
|
import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
|
|
|
|
import { installDownloadSpec } from "./skills-install-download.js";
|
|
|
|
|
import { setTempStateDir } from "./skills-install.download-test-utils.js";
|
|
|
|
|
@ -73,16 +74,14 @@ function createFixtureSkill(params: {
|
|
|
|
|
baseDir: string;
|
|
|
|
|
source: string;
|
|
|
|
|
}): SkillEntry["skill"] {
|
|
|
|
|
const skill = {
|
|
|
|
|
return {
|
|
|
|
|
name: params.name,
|
|
|
|
|
description: params.description,
|
|
|
|
|
filePath: params.filePath,
|
|
|
|
|
baseDir: params.baseDir,
|
|
|
|
|
source: params.source,
|
|
|
|
|
sourceInfo: { source: params.source },
|
|
|
|
|
sourceInfo: createSyntheticSourceInfo(params.filePath, { source: params.source }),
|
|
|
|
|
disableModelInvocation: false,
|
|
|
|
|
};
|
|
|
|
|
return skill as unknown as SkillEntry["skill"];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function buildDownloadSpec(params: {
|
|
|
|
|
|