great-cto 1.0.143 → 1.0.145
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/main.js +12 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -139,6 +139,18 @@ async function runInit(args) {
|
|
|
139
139
|
log(` ${dim("alternatives:")} ${alternatives.join(", ")}`);
|
|
140
140
|
}
|
|
141
141
|
log(` ${dim("suggested compliance:")} ${compliance.length > 0 ? compliance.join(", ") : "none"}`);
|
|
142
|
+
// v1.0.144+: ask user to confirm archetype if confidence is low
|
|
143
|
+
// OR if alternatives are present and not user-specified
|
|
144
|
+
if (!args.yes && !args.archetype && (confidence === "low" || (confidence === "medium" && alternatives.length >= 2))) {
|
|
145
|
+
log("");
|
|
146
|
+
log(`${bold("⚠ Archetype detection confidence:")} ${cyan(confidence)}`);
|
|
147
|
+
log(` Top candidate: ${cyan(archetype)} — ${dim(rationale)}`);
|
|
148
|
+
if (alternatives.length > 0) {
|
|
149
|
+
log(` Alternatives: ${alternatives.map(a => cyan(a)).join(", ")}`);
|
|
150
|
+
}
|
|
151
|
+
log(` ${dim("If wrong, override with: --archetype " + (alternatives[0] ?? "<name>"))}`);
|
|
152
|
+
log(` ${dim("Or edit .great_cto/PROJECT.md after install — agents read 'archetype:' field.")}`);
|
|
153
|
+
}
|
|
142
154
|
// Confirmation
|
|
143
155
|
if (!args.yes) {
|
|
144
156
|
log("");
|
package/package.json
CHANGED