dlw-machine-setup 0.5.10 → 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.
- package/bin/installer.js +31 -25
- 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)(
|
|
3871
|
-
|
|
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,16 @@ 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
|
+
}
|
|
3893
|
+
const docsSrc = (0, import_path3.join)(extractedPath, "docs");
|
|
3894
|
+
if ((0, import_fs3.existsSync)(docsSrc)) {
|
|
3895
|
+
copyDirectory2(docsSrc, (0, import_path3.join)(factoryDir, "docs"));
|
|
3896
|
+
result.filesInstalled.push("factory/docs/");
|
|
3897
|
+
}
|
|
3889
3898
|
const rootEntries = (0, import_fs3.readdirSync)(extractedPath, { withFileTypes: true });
|
|
3890
3899
|
for (const entry of rootEntries) {
|
|
3891
3900
|
if (entry.isFile()) {
|
|
@@ -3968,18 +3977,6 @@ function configureSettings(claudeDir) {
|
|
|
3968
3977
|
if (!(0, import_fs3.existsSync)(claudeDir)) (0, import_fs3.mkdirSync)(claudeDir, { recursive: true });
|
|
3969
3978
|
(0, import_fs3.writeFileSync)(settingsPath, JSON.stringify(settings, null, 2) + "\n");
|
|
3970
3979
|
}
|
|
3971
|
-
function copyAgentStubs(source, target) {
|
|
3972
|
-
if (!(0, import_fs3.existsSync)(target)) (0, import_fs3.mkdirSync)(target, { recursive: true });
|
|
3973
|
-
const entries = (0, import_fs3.readdirSync)(source, { withFileTypes: true });
|
|
3974
|
-
for (const entry of entries) {
|
|
3975
|
-
if (entry.isDirectory() || !entry.name.endsWith(".md")) continue;
|
|
3976
|
-
const content = (0, import_fs3.readFileSync)((0, import_path3.join)(source, entry.name), "utf8");
|
|
3977
|
-
const frontmatterMatch = content.match(/^---\r?\n([\s\S]*?\r?\n)---/);
|
|
3978
|
-
if (frontmatterMatch) {
|
|
3979
|
-
(0, import_fs3.writeFileSync)((0, import_path3.join)(target, entry.name), frontmatterMatch[0] + "\n");
|
|
3980
|
-
}
|
|
3981
|
-
}
|
|
3982
|
-
}
|
|
3983
3980
|
function copyDirectory2(source, target) {
|
|
3984
3981
|
if (!(0, import_fs3.existsSync)(target)) (0, import_fs3.mkdirSync)(target, { recursive: true });
|
|
3985
3982
|
const entries = (0, import_fs3.readdirSync)(source, { withFileTypes: true });
|
|
@@ -4221,17 +4218,26 @@ function buildFactorySection() {
|
|
|
4221
4218
|
return [
|
|
4222
4219
|
`## Factory Dev Workflow`,
|
|
4223
4220
|
``,
|
|
4224
|
-
`Factory is installed. Use \`/factory
|
|
4221
|
+
`Factory is installed. Use \`/factory-advisor\` to start or resume the workflow.`,
|
|
4225
4222
|
``,
|
|
4226
4223
|
`Available commands:`,
|
|
4227
|
-
`- \`/factory
|
|
4228
|
-
`- \`/factory
|
|
4229
|
-
`- \`/factory
|
|
4230
|
-
`- \`/factory
|
|
4231
|
-
`- \`/factory
|
|
4232
|
-
`- \`/factory
|
|
4233
|
-
`- \`/factory
|
|
4234
|
-
`- \`/factory
|
|
4224
|
+
`- \`/factory-advisor\` \u2014 start or resume the workflow (main entry point)`,
|
|
4225
|
+
`- \`/factory-flow\` \u2014 guided workflow execution`,
|
|
4226
|
+
`- \`/factory-feature-dev\` \u2014 add a feature to an existing project`,
|
|
4227
|
+
`- \`/factory-dev\` \u2014 execute development tasks`,
|
|
4228
|
+
`- \`/factory-progress\` \u2014 check status`,
|
|
4229
|
+
`- \`/factory-init-state\` \u2014 initialize state for a brownfield project`,
|
|
4230
|
+
`- \`/factory-analyst\` \u2014 validate requirements`,
|
|
4231
|
+
`- \`/factory-architect\` \u2014 design architecture`,
|
|
4232
|
+
`- \`/factory-planner\` \u2014 create story plan`,
|
|
4233
|
+
`- \`/factory-verifier\` \u2014 code review`,
|
|
4234
|
+
`- \`/factory-security\` \u2014 OWASP security review`,
|
|
4235
|
+
`- \`/factory-test-analyst\` \u2014 test quality review`,
|
|
4236
|
+
`- \`/factory-explorer\` \u2014 explore and understand code`,
|
|
4237
|
+
`- \`/factory-docs\` \u2014 documentation hub`,
|
|
4238
|
+
`- \`/factory-docs-generate\` \u2014 auto-generate documentation`,
|
|
4239
|
+
`- \`/factory-docs-manual\` \u2014 manual documentation workflow`,
|
|
4240
|
+
`- \`/factory-office\` \u2014 office mode discussion`,
|
|
4235
4241
|
``
|
|
4236
4242
|
].join("\n");
|
|
4237
4243
|
}
|
|
@@ -4369,7 +4375,7 @@ var update_gitignore_default = defineStep({
|
|
|
4369
4375
|
var import_fs7 = require("fs");
|
|
4370
4376
|
var import_path7 = require("path");
|
|
4371
4377
|
var import_os2 = require("os");
|
|
4372
|
-
var INSTALLER_VERSION = "0.5.
|
|
4378
|
+
var INSTALLER_VERSION = "0.5.12";
|
|
4373
4379
|
var write_state_default = defineStep({
|
|
4374
4380
|
name: "write-state",
|
|
4375
4381
|
label: "Saving installation state",
|