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.
Files changed (2) hide show
  1. package/bin/installer.js +7 -4
  2. 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 body = buildCombinedInstructions(domains, mcpConfig);
3920
- const withFrontmatter = `---
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
- ${body}`;
3925
- upsertBlock((0, import_path4.join)(agentsDir, `instructions.md`), withFrontmatter);
3925
+ `, "utf-8");
3926
+ }
3927
+ const body = buildCombinedInstructions(domains, mcpConfig);
3928
+ upsertBlock(filePath, body);
3926
3929
  cleanupWorkflowSnippets(domains);
3927
3930
  break;
3928
3931
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dlw-machine-setup",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "One-shot installer for The Machine toolchain",
5
5
  "bin": {
6
6
  "dlw-machine-setup": "bin/installer.js"