dlw-machine-setup 0.4.0 → 0.4.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.
- package/bin/installer.js +7 -4
- package/package.json +1 -1
package/bin/installer.js
CHANGED
|
@@ -3916,13 +3916,16 @@ async function setupInstructions(config) {
|
|
|
3916
3916
|
case "github-copilot": {
|
|
3917
3917
|
const agentsDir = (0, import_path4.join)(process.cwd(), ".github", "agents");
|
|
3918
3918
|
if (!(0, import_fs4.existsSync)(agentsDir)) (0, import_fs4.mkdirSync)(agentsDir, { recursive: true });
|
|
3919
|
-
const
|
|
3920
|
-
|
|
3919
|
+
const filePath = (0, import_path4.join)(agentsDir, "instructions.md");
|
|
3920
|
+
if (!(0, import_fs4.existsSync)(filePath)) {
|
|
3921
|
+
(0, import_fs4.writeFileSync)(filePath, `---
|
|
3921
3922
|
applyTo: "**"
|
|
3922
3923
|
---
|
|
3923
3924
|
|
|
3924
|
-
|
|
3925
|
-
|
|
3925
|
+
`, "utf-8");
|
|
3926
|
+
}
|
|
3927
|
+
const body = buildCombinedInstructions(domains, mcpConfig);
|
|
3928
|
+
upsertBlock(filePath, body);
|
|
3926
3929
|
cleanupWorkflowSnippets(domains);
|
|
3927
3930
|
break;
|
|
3928
3931
|
}
|