dlw-machine-setup 0.5.11 → 0.5.12

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 +8 -16
  2. package/package.json +1 -1
package/bin/installer.js CHANGED
@@ -3867,9 +3867,8 @@ async function fetchFactory(token, repo, targetDir) {
3867
3867
  const factoryDir = (0, import_path3.join)(targetDir, "factory");
3868
3868
  const agentsSrc = (0, import_path3.join)(extractedPath, "agents");
3869
3869
  if ((0, import_fs3.existsSync)(agentsSrc)) {
3870
- copyDirectory2(agentsSrc, (0, import_path3.join)(factoryDir, "agents"));
3871
- copyAgentStubs(agentsSrc, (0, import_path3.join)(claudeDir, "agents"));
3872
- result.filesInstalled.push(".claude/agents/", "factory/agents/");
3870
+ copyDirectory2(agentsSrc, (0, import_path3.join)(claudeDir, "agents"));
3871
+ result.filesInstalled.push(".claude/agents/");
3873
3872
  }
3874
3873
  const hooksSrc = (0, import_path3.join)(extractedPath, "hooks");
3875
3874
  if ((0, import_fs3.existsSync)(hooksSrc)) {
@@ -3886,6 +3885,11 @@ async function fetchFactory(token, repo, targetDir) {
3886
3885
  copyDirectory2(workflowSrc, (0, import_path3.join)(factoryDir, "workflow"));
3887
3886
  result.filesInstalled.push("factory/workflow/");
3888
3887
  }
3888
+ const utilsSrc = (0, import_path3.join)(extractedPath, "utils");
3889
+ if ((0, import_fs3.existsSync)(utilsSrc)) {
3890
+ copyDirectory2(utilsSrc, (0, import_path3.join)(factoryDir, "utils"));
3891
+ result.filesInstalled.push("factory/utils/");
3892
+ }
3889
3893
  const docsSrc = (0, import_path3.join)(extractedPath, "docs");
3890
3894
  if ((0, import_fs3.existsSync)(docsSrc)) {
3891
3895
  copyDirectory2(docsSrc, (0, import_path3.join)(factoryDir, "docs"));
@@ -3973,18 +3977,6 @@ function configureSettings(claudeDir) {
3973
3977
  if (!(0, import_fs3.existsSync)(claudeDir)) (0, import_fs3.mkdirSync)(claudeDir, { recursive: true });
3974
3978
  (0, import_fs3.writeFileSync)(settingsPath, JSON.stringify(settings, null, 2) + "\n");
3975
3979
  }
3976
- function copyAgentStubs(source, target) {
3977
- if (!(0, import_fs3.existsSync)(target)) (0, import_fs3.mkdirSync)(target, { recursive: true });
3978
- const entries = (0, import_fs3.readdirSync)(source, { withFileTypes: true });
3979
- for (const entry of entries) {
3980
- if (entry.isDirectory() || !entry.name.endsWith(".md")) continue;
3981
- const content = (0, import_fs3.readFileSync)((0, import_path3.join)(source, entry.name), "utf8");
3982
- const frontmatterMatch = content.match(/^---\r?\n([\s\S]*?\r?\n)---/);
3983
- if (frontmatterMatch) {
3984
- (0, import_fs3.writeFileSync)((0, import_path3.join)(target, entry.name), frontmatterMatch[0] + "\n");
3985
- }
3986
- }
3987
- }
3988
3980
  function copyDirectory2(source, target) {
3989
3981
  if (!(0, import_fs3.existsSync)(target)) (0, import_fs3.mkdirSync)(target, { recursive: true });
3990
3982
  const entries = (0, import_fs3.readdirSync)(source, { withFileTypes: true });
@@ -4383,7 +4375,7 @@ var update_gitignore_default = defineStep({
4383
4375
  var import_fs7 = require("fs");
4384
4376
  var import_path7 = require("path");
4385
4377
  var import_os2 = require("os");
4386
- var INSTALLER_VERSION = "0.5.11";
4378
+ var INSTALLER_VERSION = "0.5.12";
4387
4379
  var write_state_default = defineStep({
4388
4380
  name: "write-state",
4389
4381
  label: "Saving installation state",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dlw-machine-setup",
3
- "version": "0.5.11",
3
+ "version": "0.5.12",
4
4
  "description": "One-shot installer for The Machine toolchain",
5
5
  "bin": {
6
6
  "dlw-machine-setup": "bin/installer.js"