@sixsevenai/ai-dlc-installer 1.1.0 → 1.2.0
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/dist/cli.js +72 -8
- package/dist/cli.js.map +1 -1
- package/library/ai-dlc/workflows/schemas/template-schema.json +544 -0
- package/library/ai-dlc/workflows/template-registry.yaml +962 -0
- package/library/ai-dlc/workflows/templates/README.md +837 -0
- package/library/ai-dlc/workflows/templates/csharp/brownfield/api-integration.yaml +814 -0
- package/library/ai-dlc/workflows/templates/csharp/brownfield/azure-integration.yaml +821 -0
- package/library/ai-dlc/workflows/templates/csharp/brownfield/legacy-migration.yaml +714 -0
- package/library/ai-dlc/workflows/templates/csharp/brownfield/nuget-package.yaml +790 -0
- package/library/ai-dlc/workflows/templates/csharp/defect-fix/hotfix-deployment.yaml +747 -0
- package/library/ai-dlc/workflows/templates/csharp/defect-fix/performance-fix.yaml +956 -0
- package/library/ai-dlc/workflows/templates/csharp/defect-fix/security-patch.yaml +852 -0
- package/library/ai-dlc/workflows/templates/csharp/greenfield/aspnetcore-webapi.yaml +776 -0
- package/library/ai-dlc/workflows/templates/csharp/greenfield/blazor-app.yaml +648 -0
- package/library/ai-dlc/workflows/templates/csharp/greenfield/console-app.yaml +979 -0
- package/library/ai-dlc/workflows/templates/csharp/greenfield/microservice.yaml +780 -0
- package/library/ai-dlc/workflows/templates/csharp/infrastructure/azure-deployment.yaml +867 -0
- package/library/ai-dlc/workflows/templates/csharp/infrastructure/cicd-pipeline.yaml +1170 -0
- package/library/ai-dlc/workflows/templates/csharp/infrastructure/docker-containerization.yaml +872 -0
- package/library/ai-dlc/workflows/templates/csharp/testing/integration-test-suite.yaml +851 -0
- package/library/ai-dlc/workflows/templates/csharp/testing/performance-testing.yaml +922 -0
- package/library/ai-dlc/workflows/templates/csharp/testing/unit-test-suite.yaml +721 -0
- package/library/ai-dlc/workflows/templates/full-lifecycle-with-refinement.yaml +612 -0
- package/library/ai-dlc/workflows/templates/parallel-ui-test-generation.yaml +187 -0
- package/library/ai-dlc/workflows/templates/python/brownfield/api-integration.yaml +746 -0
- package/library/ai-dlc/workflows/templates/python/brownfield/aws-integration.yaml +846 -0
- package/library/ai-dlc/workflows/templates/python/brownfield/legacy-migration.yaml +807 -0
- package/library/ai-dlc/workflows/templates/python/brownfield/pypi-package.yaml +858 -0
- package/library/ai-dlc/workflows/templates/python/defect-fix/dependency-update.yaml +955 -0
- package/library/ai-dlc/workflows/templates/python/defect-fix/hotfix-deployment.yaml +875 -0
- package/library/ai-dlc/workflows/templates/python/defect-fix/security-patch.yaml +1073 -0
- package/library/ai-dlc/workflows/templates/python/greenfield/cli-tool.yaml +937 -0
- package/library/ai-dlc/workflows/templates/python/greenfield/data-pipeline.yaml +873 -0
- package/library/ai-dlc/workflows/templates/python/greenfield/django-app.yaml +1012 -0
- package/library/ai-dlc/workflows/templates/python/greenfield/fastapi-app.yaml +956 -0
- package/library/ai-dlc/workflows/templates/python/infrastructure/aws-deployment.yaml +1344 -0
- package/library/ai-dlc/workflows/templates/python/infrastructure/cicd-pipeline.yaml +1205 -0
- package/library/ai-dlc/workflows/templates/python/infrastructure/docker-containerization.yaml +1221 -0
- package/library/ai-dlc/workflows/templates/python/testing/integration-tests.yaml +843 -0
- package/library/ai-dlc/workflows/templates/python/testing/load-testing.yaml +975 -0
- package/library/ai-dlc/workflows/templates/python/testing/pytest-suite.yaml +820 -0
- package/library/ai-dlc/workflows/templates/test-simple-workflow.yaml +44 -0
- package/library/ai-dlc/workflows/templates/ui-design-to-tests.yaml +138 -0
- package/library/ai-dlc/workflows/templates/unit-to-production-example.yaml +251 -0
- package/library/duplicate-ignore.yaml +55 -0
- package/library/log-file-reads.ps1 +52 -0
- package/library/memory/agents/api-designer.md +21 -0
- package/library/memory/agents/blazor-component-designer.md +21 -0
- package/library/memory/agents/code-generator.md +21 -0
- package/library/memory/agents/code-reviewer.md +21 -0
- package/library/memory/agents/database-designer.md +21 -0
- package/library/memory/agents/documentation-generator.md +21 -0
- package/library/memory/agents/domain-modeler.md +21 -0
- package/library/memory/agents/logical-designer.md +21 -0
- package/library/memory/agents/ui-designer.md +21 -0
- package/library/memory/agents/unit-test-builder.md +21 -0
- package/library/memory/spec/constitution.md +50 -0
- package/library/scripts/intelligent-commit.ps1 +472 -0
- package/library/scripts/intelligent-commit.sh +346 -0
- package/library/statusline-command.ps1 +56 -0
- package/library/templates/spec/checklist-template.md +40 -0
- package/library/templates/spec/plan-template.md +104 -0
- package/library/templates/spec/spec-template.md +115 -0
- package/library/templates/spec/tasks-template.md +251 -0
- package/library-aidlc/ai-dlc-installation.json +159 -0
- package/library-aidlc/governance.json +29 -0
- package/library-aidlc/hooks/HOOKS-SUMMARY.md +303 -0
- package/library-aidlc/hooks/INTEGRATION-GUIDE.md +456 -0
- package/library-aidlc/hooks/README.md +372 -0
- package/library-aidlc/hooks/hook-config-example.json +72 -0
- package/library-aidlc/hooks/settings.example.json +177 -0
- package/library-aidlc/hooks/workflow-advance.ps1 +141 -0
- package/library-aidlc/library-catalog.json +2228 -0
- package/library-aidlc/metadata/items/artifact-review.yaml +285 -0
- package/library-aidlc/metadata/memory/ai-dlc-framework-knowledge-base.md +230 -0
- package/library-aidlc/metadata/schema.yaml +250 -0
- package/package.json +2 -1
package/dist/cli.js
CHANGED
|
@@ -48,6 +48,31 @@ async function resolveSourceDirectory() {
|
|
|
48
48
|
"Cannot locate AI-DLC library source directory. Set the AIDLC_SOURCE_DIR environment variable to the library path, or ensure the library/ directory exists in the package root."
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
+
async function resolveAiDlcSourceDirectory() {
|
|
52
|
+
const envSource = process.env["AIDLC_FRAMEWORK_DIR"];
|
|
53
|
+
if (envSource) {
|
|
54
|
+
try {
|
|
55
|
+
const stat5 = await fs.stat(envSource);
|
|
56
|
+
if (stat5.isDirectory()) return path.resolve(envSource);
|
|
57
|
+
} catch {
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
const thisFile = fileURLToPath(import.meta.url);
|
|
61
|
+
const thisDir = path.dirname(thisFile);
|
|
62
|
+
const resolved = path.resolve(thisDir, "../library-aidlc");
|
|
63
|
+
try {
|
|
64
|
+
const stat5 = await fs.stat(resolved);
|
|
65
|
+
if (stat5.isDirectory()) return resolved;
|
|
66
|
+
} catch {
|
|
67
|
+
}
|
|
68
|
+
const cwdFallback = path.resolve(process.cwd(), "src", "installer", "library-aidlc");
|
|
69
|
+
try {
|
|
70
|
+
const stat5 = await fs.stat(cwdFallback);
|
|
71
|
+
if (stat5.isDirectory()) return cwdFallback;
|
|
72
|
+
} catch {
|
|
73
|
+
}
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
51
76
|
var WORKFLOW_STEPS = [
|
|
52
77
|
{ id: "detect-platform", name: "Detect Platform", order: 1, isSkippable: false },
|
|
53
78
|
{ id: "check-prerequisites", name: "Check Prerequisites", order: 2, isSkippable: false },
|
|
@@ -3878,26 +3903,65 @@ async function executeInstallFiles(ctx, options, theme) {
|
|
|
3878
3903
|
);
|
|
3879
3904
|
}
|
|
3880
3905
|
});
|
|
3881
|
-
|
|
3906
|
+
let totalCopied = result.copiedCount;
|
|
3907
|
+
let totalSkipped = result.skippedCount;
|
|
3908
|
+
const allErrors = [...result.errors];
|
|
3909
|
+
let overallSuccess = result.success;
|
|
3910
|
+
const aiDlcSourceDir = await resolveAiDlcSourceDirectory();
|
|
3911
|
+
if (aiDlcSourceDir) {
|
|
3912
|
+
const targetRoot = path6.dirname(ctx.claudeDirectory);
|
|
3913
|
+
const aiDlcTargetDir = path6.join(targetRoot, ".ai-dlc");
|
|
3914
|
+
const aiDlcManifest = await scanSourceDirectory(aiDlcSourceDir);
|
|
3915
|
+
const aiDlcMappings = aiDlcManifest.entries.map((entry) => ({
|
|
3916
|
+
relativePath: entry.relativePath,
|
|
3917
|
+
sourcePath: path6.join(aiDlcSourceDir, entry.relativePath),
|
|
3918
|
+
destinationPath: path6.join(aiDlcTargetDir, entry.relativePath),
|
|
3919
|
+
componentType: entry.componentType,
|
|
3920
|
+
fileName: entry.fileName,
|
|
3921
|
+
sizeBytes: entry.sizeBytes
|
|
3922
|
+
}));
|
|
3923
|
+
const aiDlcResult = await copyFiles(aiDlcMappings, {
|
|
3924
|
+
concurrency: 16,
|
|
3925
|
+
onProgress: (event) => {
|
|
3926
|
+
verboseLog(options.verbose, ` [ai-dlc ${event.current}/${event.total}] ${event.fileName}`);
|
|
3927
|
+
}
|
|
3928
|
+
});
|
|
3929
|
+
totalCopied += aiDlcResult.copiedCount;
|
|
3930
|
+
totalSkipped += aiDlcResult.skippedCount;
|
|
3931
|
+
allErrors.push(...aiDlcResult.errors);
|
|
3932
|
+
if (!aiDlcResult.success) {
|
|
3933
|
+
overallSuccess = false;
|
|
3934
|
+
}
|
|
3935
|
+
ctx.fileMappings.push(...aiDlcMappings);
|
|
3936
|
+
}
|
|
3937
|
+
ctx.installationResult = {
|
|
3938
|
+
success: overallSuccess,
|
|
3939
|
+
copiedCount: totalCopied,
|
|
3940
|
+
skippedCount: totalSkipped,
|
|
3941
|
+
warnings: result.warnings,
|
|
3942
|
+
errors: allErrors,
|
|
3943
|
+
durationMs: result.durationMs,
|
|
3944
|
+
componentCounts: result.componentCounts
|
|
3945
|
+
};
|
|
3882
3946
|
if (progressTracker) {
|
|
3883
|
-
if (
|
|
3947
|
+
if (overallSuccess) {
|
|
3884
3948
|
progressTracker.completeStep("copy-files");
|
|
3885
3949
|
} else {
|
|
3886
3950
|
progressTracker.failStep("copy-files", { message: "File copy failed", cause: null });
|
|
3887
3951
|
}
|
|
3888
3952
|
progressTracker.finish();
|
|
3889
3953
|
}
|
|
3890
|
-
if (!
|
|
3891
|
-
const errorMessages =
|
|
3954
|
+
if (!overallSuccess) {
|
|
3955
|
+
const errorMessages = allErrors.map((e) => e.message).join("; ");
|
|
3892
3956
|
throw new Error(`File installation failed: ${errorMessages}`);
|
|
3893
3957
|
}
|
|
3894
3958
|
return {
|
|
3895
3959
|
data: {
|
|
3896
|
-
copiedCount:
|
|
3897
|
-
skippedCount:
|
|
3898
|
-
errorCount:
|
|
3960
|
+
copiedCount: totalCopied,
|
|
3961
|
+
skippedCount: totalSkipped,
|
|
3962
|
+
errorCount: allErrors.length
|
|
3899
3963
|
},
|
|
3900
|
-
summary: `${
|
|
3964
|
+
summary: `${totalCopied} files installed, ${totalSkipped} skipped`
|
|
3901
3965
|
};
|
|
3902
3966
|
}
|
|
3903
3967
|
async function executeValidateInstallation(ctx, options) {
|