dlw-machine-setup 0.5.9 → 0.5.10
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 +16 -16
- package/package.json +1 -1
package/bin/installer.js
CHANGED
|
@@ -3886,6 +3886,14 @@ async function fetchFactory(token, repo, targetDir) {
|
|
|
3886
3886
|
copyDirectory2(workflowSrc, (0, import_path3.join)(factoryDir, "workflow"));
|
|
3887
3887
|
result.filesInstalled.push("factory/workflow/");
|
|
3888
3888
|
}
|
|
3889
|
+
const rootEntries = (0, import_fs3.readdirSync)(extractedPath, { withFileTypes: true });
|
|
3890
|
+
for (const entry of rootEntries) {
|
|
3891
|
+
if (entry.isFile()) {
|
|
3892
|
+
if (!(0, import_fs3.existsSync)(factoryDir)) (0, import_fs3.mkdirSync)(factoryDir, { recursive: true });
|
|
3893
|
+
(0, import_fs3.copyFileSync)((0, import_path3.join)(extractedPath, entry.name), (0, import_path3.join)(factoryDir, entry.name));
|
|
3894
|
+
result.filesInstalled.push(`factory/${entry.name}`);
|
|
3895
|
+
}
|
|
3896
|
+
}
|
|
3889
3897
|
configureSettings(claudeDir);
|
|
3890
3898
|
result.filesInstalled.push(".claude/settings.json");
|
|
3891
3899
|
result.success = true;
|
|
@@ -4026,17 +4034,9 @@ var write_instructions_default = defineStep({
|
|
|
4026
4034
|
break;
|
|
4027
4035
|
}
|
|
4028
4036
|
case "github-copilot": {
|
|
4029
|
-
const
|
|
4030
|
-
if (!(0, import_fs4.existsSync)(
|
|
4031
|
-
|
|
4032
|
-
if (!(0, import_fs4.existsSync)(filePath)) {
|
|
4033
|
-
(0, import_fs4.writeFileSync)(filePath, `---
|
|
4034
|
-
applyTo: "**"
|
|
4035
|
-
---
|
|
4036
|
-
|
|
4037
|
-
`, "utf-8");
|
|
4038
|
-
}
|
|
4039
|
-
upsertBlock(filePath, content);
|
|
4037
|
+
const githubDir = (0, import_path4.join)(projectPath, ".github");
|
|
4038
|
+
if (!(0, import_fs4.existsSync)(githubDir)) (0, import_fs4.mkdirSync)(githubDir, { recursive: true });
|
|
4039
|
+
upsertBlock((0, import_path4.join)(githubDir, "copilot-instructions.md"), content);
|
|
4040
4040
|
break;
|
|
4041
4041
|
}
|
|
4042
4042
|
case "cursor": {
|
|
@@ -4063,7 +4063,7 @@ function getInstructionFilePath(agent) {
|
|
|
4063
4063
|
case "claude-code":
|
|
4064
4064
|
return "CLAUDE.md";
|
|
4065
4065
|
case "github-copilot":
|
|
4066
|
-
return ".github/
|
|
4066
|
+
return ".github/copilot-instructions.md";
|
|
4067
4067
|
case "cursor":
|
|
4068
4068
|
return ".cursor/rules/instructions.mdc";
|
|
4069
4069
|
default:
|
|
@@ -4132,7 +4132,7 @@ function extractFirstHeading(filePath) {
|
|
|
4132
4132
|
}
|
|
4133
4133
|
function formatPathRef(contextPath, description, agent) {
|
|
4134
4134
|
if (agent === "github-copilot") {
|
|
4135
|
-
return `- [${contextPath}](
|
|
4135
|
+
return `- [${contextPath}](../${contextPath}) \u2014 ${description}`;
|
|
4136
4136
|
}
|
|
4137
4137
|
return `- \`${contextPath}\` \u2014 ${description}`;
|
|
4138
4138
|
}
|
|
@@ -4369,7 +4369,7 @@ var update_gitignore_default = defineStep({
|
|
|
4369
4369
|
var import_fs7 = require("fs");
|
|
4370
4370
|
var import_path7 = require("path");
|
|
4371
4371
|
var import_os2 = require("os");
|
|
4372
|
-
var INSTALLER_VERSION = "0.5.
|
|
4372
|
+
var INSTALLER_VERSION = "0.5.10";
|
|
4373
4373
|
var write_state_default = defineStep({
|
|
4374
4374
|
name: "write-state",
|
|
4375
4375
|
label: "Saving installation state",
|
|
@@ -4407,7 +4407,7 @@ function getInstructionFilePath2(agent) {
|
|
|
4407
4407
|
case "claude-code":
|
|
4408
4408
|
return "CLAUDE.md";
|
|
4409
4409
|
case "github-copilot":
|
|
4410
|
-
return ".github/
|
|
4410
|
+
return ".github/copilot-instructions.md";
|
|
4411
4411
|
case "cursor":
|
|
4412
4412
|
return ".cursor/rules/instructions.mdc";
|
|
4413
4413
|
default:
|
|
@@ -4432,7 +4432,7 @@ function getInstructionFilePath3(agent) {
|
|
|
4432
4432
|
case "claude-code":
|
|
4433
4433
|
return "CLAUDE.md";
|
|
4434
4434
|
case "github-copilot":
|
|
4435
|
-
return ".github/
|
|
4435
|
+
return ".github/copilot-instructions.md";
|
|
4436
4436
|
case "cursor":
|
|
4437
4437
|
return ".cursor/rules/instructions.mdc";
|
|
4438
4438
|
default:
|