fix(coding-agent): unify source provenance, closes #1734

This commit is contained in:
Mario Zechner
2026-03-23 02:02:42 +01:00
parent 883862a354
commit 4e5af01d73
26 changed files with 340 additions and 157 deletions

View File

@@ -5,7 +5,13 @@
* Discover, filter, merge, or replace them.
*/
import { createAgentSession, DefaultResourceLoader, SessionManager, type Skill } from "@mariozechner/pi-coding-agent";
import {
createAgentSession,
createSyntheticSourceInfo,
DefaultResourceLoader,
SessionManager,
type Skill,
} from "@mariozechner/pi-coding-agent";
// Or define custom skills inline
const customSkill: Skill = {
@@ -13,7 +19,7 @@ const customSkill: Skill = {
description: "Custom project instructions",
filePath: "/virtual/SKILL.md",
baseDir: "/virtual",
source: "path",
sourceInfo: createSyntheticSourceInfo("/virtual/SKILL.md", { source: "sdk" }),
disableModelInvocation: false,
};