@mestreyoda/fabrica 0.1.5 → 0.1.6
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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -111329,8 +111329,8 @@ import fsSync from "node:fs";
|
|
|
111329
111329
|
import path5 from "node:path";
|
|
111330
111330
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
111331
111331
|
function getCurrentVersion() {
|
|
111332
|
-
if ("0.1.
|
|
111333
|
-
return "0.1.
|
|
111332
|
+
if ("0.1.6") {
|
|
111333
|
+
return "0.1.6";
|
|
111334
111334
|
}
|
|
111335
111335
|
try {
|
|
111336
111336
|
const pkgPath = path5.join(THIS_DIR, "..", "..", "package.json");
|
|
@@ -116096,6 +116096,7 @@ Produce a concise JSON spec. The title should be a SHORT name (3-5 words, suitab
|
|
|
116096
116096
|
|
|
116097
116097
|
Return ONLY valid JSON (no markdown fences):
|
|
116098
116098
|
{
|
|
116099
|
+
"project_slug": "<kebab-case repo name, 2-4 words, e.g. email-validator-cli>",
|
|
116099
116100
|
"title": "<short project name, 3-5 words, max 60 chars>",
|
|
116100
116101
|
"objective": "<1-2 sentence objective>",
|
|
116101
116102
|
"scope_v1": ["<concrete deliverable 1>", "<concrete deliverable 2>"],
|
|
@@ -118017,6 +118018,7 @@ function deriveRepoName(payload, explicitRepoName) {
|
|
|
118017
118018
|
return deriveRepoNameFromCandidates([
|
|
118018
118019
|
{ value: explicitRepoName, source: "metadata.repo_url" },
|
|
118019
118020
|
{ value: payload.metadata.project_name, source: "metadata.project_name" },
|
|
118021
|
+
{ value: payload.spec_data?.project_slug, source: "spec_data.project_slug" },
|
|
118020
118022
|
{ value: payload.project_map?.project_slug, source: "project_map.project_slug" },
|
|
118021
118023
|
{ value: payload.project_map?.project, source: "project_map.project" },
|
|
118022
118024
|
{ value: payload.spec?.title, source: "spec.title" },
|
|
@@ -142264,9 +142266,12 @@ function parseClarificationResponse(text, session) {
|
|
|
142264
142266
|
}
|
|
142265
142267
|
function buildClarificationMessage(parsed, pendingClarification) {
|
|
142266
142268
|
if (pendingClarification === "stack_and_name" || !parsed.stackHint && !parsed.projectName) {
|
|
142267
|
-
return `
|
|
142269
|
+
return `Beleza! S\xF3 preciso de duas coisas pra criar:
|
|
142270
|
+
|
|
142271
|
+
1. Qual stack? (Python, Node.js, Go, Java...)
|
|
142272
|
+
2. Quer dar um nome pro projeto? Se n\xE3o, eu invento um.`;
|
|
142268
142273
|
}
|
|
142269
|
-
return `Qual stack voc\xEA quer usar
|
|
142274
|
+
return `Qual stack voc\xEA quer usar? (Python, Node.js, Go, Java...)`;
|
|
142270
142275
|
}
|
|
142271
142276
|
function buildFollowUpClarification(session) {
|
|
142272
142277
|
if (!session.stackHint) {
|