@danieljvdm/dev-kit 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/sync.ts +14 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danieljvdm/dev-kit",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "private": false,
5
5
  "description": "Declarative project development toolkit with portable agent skills.",
6
6
  "license": "MIT",
package/src/sync.ts CHANGED
@@ -773,6 +773,7 @@ const renderAgentInstructions = Effect.fn("renderAgentInstructions")(function* (
773
773
  projectDir: string,
774
774
  sourceBySkill: ReadonlyMap<string, ResolvedSkillSource>,
775
775
  managesVitePlusQuality: boolean,
776
+ targets: ReturnType<typeof normalizeManifest>["targets"],
776
777
  ) {
777
778
  const fs = yield* FileSystem.FileSystem;
778
779
  const path = yield* Path.Path;
@@ -797,16 +798,21 @@ const renderAgentInstructions = Effect.fn("renderAgentInstructions")(function* (
797
798
  }
798
799
 
799
800
  const devKitSkill = sourceBySkill.get("dev-kit");
801
+ const devKitTarget = (["agents", "claude", "opencode"] as const)
802
+ .map((name) => targets[name])
803
+ .find((target) => target.enabled);
800
804
  const devKitSkillPath =
801
805
  devKitSkill === undefined
802
806
  ? "node_modules/@danieljvdm/dev-kit/skills/dev-kit/SKILL.md"
803
- : portablePath(
804
- path,
805
- path.relative(
806
- projectDir,
807
- path.join(devKitSkill.linkPath ?? devKitSkill.path, "SKILL.md"),
808
- ),
809
- );
807
+ : devKitTarget !== undefined
808
+ ? portablePath(path, path.join(devKitTarget.path, "dev-kit", "SKILL.md"))
809
+ : portablePath(
810
+ path,
811
+ path.relative(
812
+ projectDir,
813
+ path.join(devKitSkill.linkPath ?? devKitSkill.path, "SKILL.md"),
814
+ ),
815
+ );
810
816
  const usesVitePlus = (yield* readDirectDependencyNames(projectDir)).includes("vite-plus");
811
817
  const projectPackage = yield* readProjectPackage(projectDir).pipe(
812
818
  Effect.catchTag("ProjectPackageError", (error) =>
@@ -860,6 +866,7 @@ const buildDesiredOutputs = Effect.fn("buildDesiredSkillOutputs")(function* (
860
866
  projectDir,
861
867
  sourceBySkill,
862
868
  setup.vitePlus.quality.config.enabled,
869
+ targets,
863
870
  );
864
871
 
865
872
  outputs.push({