|
8 | 8 | } from "node:fs"; |
9 | 9 | import { createHash } from "node:crypto"; |
10 | 10 | import { join } from "node:path"; |
11 | | -import { AuthStorage } from "@mariozechner/pi-coding-agent"; |
| 11 | +import { AuthStorage } from "@earendil-works/pi-coding-agent"; |
12 | 12 |
|
13 | 13 | import { loadConfig, DEFAULT_CONFIG } from "../config.js"; |
14 | 14 | import type { InstalledSkill, ProjectEntry } from "../types.js"; |
@@ -325,8 +325,8 @@ async function analyzeProject( |
325 | 325 |
|
326 | 326 | let installedSkills: InstalledSkill[] = []; |
327 | 327 | try { |
328 | | - const { loadSkills } = await import("@mariozechner/pi-coding-agent"); |
329 | | - const result = loadSkills({ cwd: project.root }); |
| 328 | + const { loadSkills, getAgentDir } = await import("@earendil-works/pi-coding-agent"); |
| 329 | + const result = loadSkills({ cwd: project.root, agentDir: getAgentDir(), skillPaths: [], includeDefaults: true }); |
330 | 330 | installedSkills = result.skills.map( |
331 | 331 | (s: { name: string; description: string }) => ({ |
332 | 332 | name: s.name, |
@@ -645,8 +645,8 @@ async function consolidateProject( |
645 | 645 |
|
646 | 646 | let installedSkills: InstalledSkill[] = []; |
647 | 647 | try { |
648 | | - const { loadSkills } = await import("@mariozechner/pi-coding-agent"); |
649 | | - const result = loadSkills({ cwd: project.root }); |
| 648 | + const { loadSkills, getAgentDir } = await import("@earendil-works/pi-coding-agent"); |
| 649 | + const result = loadSkills({ cwd: project.root, agentDir: getAgentDir(), skillPaths: [], includeDefaults: true }); |
650 | 650 | installedSkills = result.skills.map( |
651 | 651 | (s: { name: string; description: string }) => ({ |
652 | 652 | name: s.name, |
|
0 commit comments