dlw-machine-setup 0.4.8 → 0.4.9

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 +11 -2
  2. package/package.json +1 -1
package/bin/installer.js CHANGED
@@ -3990,8 +3990,17 @@ applyTo: "**"
3990
3990
  case "cursor": {
3991
3991
  const cursorDir = (0, import_path4.join)(projectPath, ".cursor", "rules");
3992
3992
  if (!(0, import_fs4.existsSync)(cursorDir)) (0, import_fs4.mkdirSync)(cursorDir, { recursive: true });
3993
+ const filePath = (0, import_path4.join)(cursorDir, "instructions.mdc");
3994
+ if (!(0, import_fs4.existsSync)(filePath)) {
3995
+ (0, import_fs4.writeFileSync)(filePath, `---
3996
+ description: AI development instructions from One-Shot Installer
3997
+ alwaysApply: true
3998
+ ---
3999
+
4000
+ `, "utf-8");
4001
+ }
3993
4002
  const body = buildCombinedInstructions(domains, mcpConfig, agent, projectPath);
3994
- upsertBlock((0, import_path4.join)(cursorDir, `instructions.mdc`), body);
4003
+ upsertBlock(filePath, body);
3995
4004
  break;
3996
4005
  }
3997
4006
  default:
@@ -4019,7 +4028,7 @@ async function loadWizardOptions(token, repo) {
4019
4028
  }
4020
4029
 
4021
4030
  // src/index.ts
4022
- var INSTALLER_VERSION = "0.4.8";
4031
+ var INSTALLER_VERSION = "0.4.9";
4023
4032
  function getInstructionFilePath(agent) {
4024
4033
  switch (agent) {
4025
4034
  case "claude-code":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dlw-machine-setup",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "One-shot installer for The Machine toolchain",
5
5
  "bin": {
6
6
  "dlw-machine-setup": "bin/installer.js"