getaura 0.1.2 → 0.1.3
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/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20421,7 +20421,7 @@ function pmCommands(pm) {
|
|
|
20421
20421
|
// package.json
|
|
20422
20422
|
var package_default = {
|
|
20423
20423
|
name: "getaura",
|
|
20424
|
-
version: "0.1.
|
|
20424
|
+
version: "0.1.3",
|
|
20425
20425
|
description: "Aura helps you and your coding agent follow best practices while you vibe code.",
|
|
20426
20426
|
type: "module",
|
|
20427
20427
|
bin: {
|
|
@@ -24196,6 +24196,8 @@ async function initCommand(flags) {
|
|
|
24196
24196
|
required: true
|
|
24197
24197
|
})
|
|
24198
24198
|
) : detected.length ? detected : ["claude"];
|
|
24199
|
+
} else {
|
|
24200
|
+
agents = [.../* @__PURE__ */ new Set([...config2.agents, ...agents])];
|
|
24199
24201
|
}
|
|
24200
24202
|
config2.agents = agents;
|
|
24201
24203
|
let key = flags.key ?? getApiKey();
|
|
@@ -24231,10 +24233,11 @@ async function initCommand(flags) {
|
|
|
24231
24233
|
const ctx = await buildContext(root, { fast: true, noDownload: true }, config2);
|
|
24232
24234
|
const briefPath = auraPath(root, "brief.md");
|
|
24233
24235
|
let brief2 = null;
|
|
24236
|
+
let keptBrief = false;
|
|
24234
24237
|
if (flags.briefFile) {
|
|
24235
24238
|
brief2 = readFileSync15(flags.briefFile, "utf8");
|
|
24236
|
-
} else if (existsSync16(briefPath) && !(tty && unwrap(await p.confirm({ message: "A product brief already exists. Draft a new one?", initialValue: false })))) {
|
|
24237
|
-
|
|
24239
|
+
} else if (!flags.answers && existsSync16(briefPath) && !(tty && unwrap(await p.confirm({ message: "A product brief already exists. Draft a new one?", initialValue: false })))) {
|
|
24240
|
+
keptBrief = true;
|
|
24238
24241
|
} else {
|
|
24239
24242
|
let answers = null;
|
|
24240
24243
|
if (flags.answers) {
|
|
@@ -24286,7 +24289,9 @@ async function initCommand(flags) {
|
|
|
24286
24289
|
console.log(briefHandoff());
|
|
24287
24290
|
}
|
|
24288
24291
|
}
|
|
24289
|
-
if (
|
|
24292
|
+
if (keptBrief) {
|
|
24293
|
+
say.ok("Kept your existing product brief (.aura/brief.md).");
|
|
24294
|
+
} else if (brief2) {
|
|
24290
24295
|
writeAuraFile(root, "brief.md", brief2);
|
|
24291
24296
|
if (tty) {
|
|
24292
24297
|
p.note(brief2.split("\n").slice(0, 24).join("\n") + (brief2.split("\n").length > 24 ? "\n\u2026" : ""), "Product brief draft");
|