dlw-machine-setup 0.2.5 → 0.2.6
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.
- package/bin/installer.js +4 -4
- package/package.json +1 -1
package/bin/installer.js
CHANGED
|
@@ -3868,15 +3868,15 @@ async function setupInstructions(config) {
|
|
|
3868
3868
|
break;
|
|
3869
3869
|
}
|
|
3870
3870
|
case "github-copilot": {
|
|
3871
|
-
const
|
|
3872
|
-
if (!(0, import_fs4.existsSync)(
|
|
3871
|
+
const agentsDir = (0, import_path4.join)(process.cwd(), ".github", "agents");
|
|
3872
|
+
if (!(0, import_fs4.existsSync)(agentsDir)) (0, import_fs4.mkdirSync)(agentsDir, { recursive: true });
|
|
3873
3873
|
const body = buildCombinedInstructions(domains, mcpConfig);
|
|
3874
3874
|
const withFrontmatter = `---
|
|
3875
3875
|
applyTo: "**"
|
|
3876
3876
|
---
|
|
3877
3877
|
|
|
3878
3878
|
${body}`;
|
|
3879
|
-
upsertBlock((0, import_path4.join)(
|
|
3879
|
+
upsertBlock((0, import_path4.join)(agentsDir, `instructions.md`), withFrontmatter);
|
|
3880
3880
|
break;
|
|
3881
3881
|
}
|
|
3882
3882
|
case "cursor": {
|
|
@@ -3902,7 +3902,7 @@ function getInstructionFilePath(agent) {
|
|
|
3902
3902
|
case "claude-code":
|
|
3903
3903
|
return "CLAUDE.md";
|
|
3904
3904
|
case "github-copilot":
|
|
3905
|
-
return ".github/
|
|
3905
|
+
return ".github/agents/instructions.md";
|
|
3906
3906
|
case "cursor":
|
|
3907
3907
|
return ".cursor/rules/instructions.mdc";
|
|
3908
3908
|
default:
|