dlw-machine-setup 0.5.9 → 0.5.11

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 +39 -25
  2. package/package.json +1 -1
package/bin/installer.js CHANGED
@@ -3886,6 +3886,19 @@ 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 docsSrc = (0, import_path3.join)(extractedPath, "docs");
3890
+ if ((0, import_fs3.existsSync)(docsSrc)) {
3891
+ copyDirectory2(docsSrc, (0, import_path3.join)(factoryDir, "docs"));
3892
+ result.filesInstalled.push("factory/docs/");
3893
+ }
3894
+ const rootEntries = (0, import_fs3.readdirSync)(extractedPath, { withFileTypes: true });
3895
+ for (const entry of rootEntries) {
3896
+ if (entry.isFile()) {
3897
+ if (!(0, import_fs3.existsSync)(factoryDir)) (0, import_fs3.mkdirSync)(factoryDir, { recursive: true });
3898
+ (0, import_fs3.copyFileSync)((0, import_path3.join)(extractedPath, entry.name), (0, import_path3.join)(factoryDir, entry.name));
3899
+ result.filesInstalled.push(`factory/${entry.name}`);
3900
+ }
3901
+ }
3889
3902
  configureSettings(claudeDir);
3890
3903
  result.filesInstalled.push(".claude/settings.json");
3891
3904
  result.success = true;
@@ -4026,17 +4039,9 @@ var write_instructions_default = defineStep({
4026
4039
  break;
4027
4040
  }
4028
4041
  case "github-copilot": {
4029
- const agentsDir = (0, import_path4.join)(projectPath, ".github", "agents");
4030
- if (!(0, import_fs4.existsSync)(agentsDir)) (0, import_fs4.mkdirSync)(agentsDir, { recursive: true });
4031
- const filePath = (0, import_path4.join)(agentsDir, "instructions.md");
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);
4042
+ const githubDir = (0, import_path4.join)(projectPath, ".github");
4043
+ if (!(0, import_fs4.existsSync)(githubDir)) (0, import_fs4.mkdirSync)(githubDir, { recursive: true });
4044
+ upsertBlock((0, import_path4.join)(githubDir, "copilot-instructions.md"), content);
4040
4045
  break;
4041
4046
  }
4042
4047
  case "cursor": {
@@ -4063,7 +4068,7 @@ function getInstructionFilePath(agent) {
4063
4068
  case "claude-code":
4064
4069
  return "CLAUDE.md";
4065
4070
  case "github-copilot":
4066
- return ".github/agents/instructions.md";
4071
+ return ".github/copilot-instructions.md";
4067
4072
  case "cursor":
4068
4073
  return ".cursor/rules/instructions.mdc";
4069
4074
  default:
@@ -4132,7 +4137,7 @@ function extractFirstHeading(filePath) {
4132
4137
  }
4133
4138
  function formatPathRef(contextPath, description, agent) {
4134
4139
  if (agent === "github-copilot") {
4135
- return `- [${contextPath}](../../${contextPath}) \u2014 ${description}`;
4140
+ return `- [${contextPath}](../${contextPath}) \u2014 ${description}`;
4136
4141
  }
4137
4142
  return `- \`${contextPath}\` \u2014 ${description}`;
4138
4143
  }
@@ -4221,17 +4226,26 @@ function buildFactorySection() {
4221
4226
  return [
4222
4227
  `## Factory Dev Workflow`,
4223
4228
  ``,
4224
- `Factory is installed. Use \`/factory:dev-plan\` to start or resume the workflow.`,
4229
+ `Factory is installed. Use \`/factory-advisor\` to start or resume the workflow.`,
4225
4230
  ``,
4226
4231
  `Available commands:`,
4227
- `- \`/factory:dev-plan\` \u2014 start or resume the workflow`,
4228
- `- \`/factory:progress\` \u2014 check status`,
4229
- `- \`/factory:analyst\` \u2014 validate a story`,
4230
- `- \`/factory:architect\` \u2014 design architecture`,
4231
- `- \`/factory:planner\` \u2014 create story plan`,
4232
- `- \`/factory:verifier\` \u2014 code review`,
4233
- `- \`/factory:security\` \u2014 OWASP security review`,
4234
- `- \`/factory:test-analyst\` \u2014 test quality review`,
4232
+ `- \`/factory-advisor\` \u2014 start or resume the workflow (main entry point)`,
4233
+ `- \`/factory-flow\` \u2014 guided workflow execution`,
4234
+ `- \`/factory-feature-dev\` \u2014 add a feature to an existing project`,
4235
+ `- \`/factory-dev\` \u2014 execute development tasks`,
4236
+ `- \`/factory-progress\` \u2014 check status`,
4237
+ `- \`/factory-init-state\` \u2014 initialize state for a brownfield project`,
4238
+ `- \`/factory-analyst\` \u2014 validate requirements`,
4239
+ `- \`/factory-architect\` \u2014 design architecture`,
4240
+ `- \`/factory-planner\` \u2014 create story plan`,
4241
+ `- \`/factory-verifier\` \u2014 code review`,
4242
+ `- \`/factory-security\` \u2014 OWASP security review`,
4243
+ `- \`/factory-test-analyst\` \u2014 test quality review`,
4244
+ `- \`/factory-explorer\` \u2014 explore and understand code`,
4245
+ `- \`/factory-docs\` \u2014 documentation hub`,
4246
+ `- \`/factory-docs-generate\` \u2014 auto-generate documentation`,
4247
+ `- \`/factory-docs-manual\` \u2014 manual documentation workflow`,
4248
+ `- \`/factory-office\` \u2014 office mode discussion`,
4235
4249
  ``
4236
4250
  ].join("\n");
4237
4251
  }
@@ -4369,7 +4383,7 @@ var update_gitignore_default = defineStep({
4369
4383
  var import_fs7 = require("fs");
4370
4384
  var import_path7 = require("path");
4371
4385
  var import_os2 = require("os");
4372
- var INSTALLER_VERSION = "0.5.9";
4386
+ var INSTALLER_VERSION = "0.5.11";
4373
4387
  var write_state_default = defineStep({
4374
4388
  name: "write-state",
4375
4389
  label: "Saving installation state",
@@ -4407,7 +4421,7 @@ function getInstructionFilePath2(agent) {
4407
4421
  case "claude-code":
4408
4422
  return "CLAUDE.md";
4409
4423
  case "github-copilot":
4410
- return ".github/agents/instructions.md";
4424
+ return ".github/copilot-instructions.md";
4411
4425
  case "cursor":
4412
4426
  return ".cursor/rules/instructions.mdc";
4413
4427
  default:
@@ -4432,7 +4446,7 @@ function getInstructionFilePath3(agent) {
4432
4446
  case "claude-code":
4433
4447
  return "CLAUDE.md";
4434
4448
  case "github-copilot":
4435
- return ".github/agents/instructions.md";
4449
+ return ".github/copilot-instructions.md";
4436
4450
  case "cursor":
4437
4451
  return ".cursor/rules/instructions.mdc";
4438
4452
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dlw-machine-setup",
3
- "version": "0.5.9",
3
+ "version": "0.5.11",
4
4
  "description": "One-shot installer for The Machine toolchain",
5
5
  "bin": {
6
6
  "dlw-machine-setup": "bin/installer.js"