@arcadialdev/arcality 2.6.3 → 2.6.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcadialdev/arcality",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.4",
|
|
4
4
|
"description": "El primer ingeniero QA Autónomo integrado al CI/CD. Creado por Arcadial.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -70,4 +70,4 @@
|
|
|
70
70
|
"terminal-image": "^1.1.0",
|
|
71
71
|
"tsx": "^4.21.0"
|
|
72
72
|
}
|
|
73
|
-
}
|
|
73
|
+
}
|
|
@@ -3068,8 +3068,8 @@ function captureValidationRule(errorMessage, context) {
|
|
|
3068
3068
|
const promptKeywords = normalize(prompt);
|
|
3069
3069
|
const patternKeywords = normalize(bestMatch.prompt || bestMatch.original_prompt || bestMatch.originalPrompt || bestMatch.name || "");
|
|
3070
3070
|
const matches = promptKeywords.filter((kw) => patternKeywords.some((pkw) => pkw.includes(kw) || kw.includes(pkw))).length;
|
|
3071
|
-
const
|
|
3072
|
-
if (
|
|
3071
|
+
const isVectorMatch = true;
|
|
3072
|
+
if (isVectorMatch) {
|
|
3073
3073
|
console.log(`>>ARCALITY_STATUS>> \u{1F9E0} Memoria Colectiva detectada (id: ${bestMatch.id}). Descargando a memoria local...`);
|
|
3074
3074
|
reusedPatternId = bestMatch.id || "unknown";
|
|
3075
3075
|
let patternJsonObj = {};
|
|
@@ -3119,7 +3119,7 @@ function captureValidationRule(errorMessage, context) {
|
|
|
3119
3119
|
} catch (err) {
|
|
3120
3120
|
console.warn(`Error al sincronizar memoria local: ${err}`);
|
|
3121
3121
|
}
|
|
3122
|
-
} else if (
|
|
3122
|
+
} else if (!isVectorMatch) {
|
|
3123
3123
|
let patternJsonObj = {};
|
|
3124
3124
|
try {
|
|
3125
3125
|
patternJsonObj = typeof bestMatch.pattern_json === "string" ? JSON.parse(bestMatch.pattern_json) : bestMatch.pattern_json || bestMatch.patternJson || {};
|
|
@@ -3131,7 +3131,7 @@ function captureValidationRule(errorMessage, context) {
|
|
|
3131
3131
|
patternContext = `Existe un patr\xF3n similar previamente aprobado que logr\xF3 el \xE9xito. \xDAsalo como referencia para tu estrategia:
|
|
3132
3132
|
${readableHistory}`;
|
|
3133
3133
|
} else {
|
|
3134
|
-
console.log(`>>ARCALITY_STATUS>> \u2139\uFE0F Patr\xF3n de BD descartado por baja similitud
|
|
3134
|
+
console.log(`>>ARCALITY_STATUS>> \u2139\uFE0F Patr\xF3n de BD descartado por baja similitud.`);
|
|
3135
3135
|
}
|
|
3136
3136
|
} else {
|
|
3137
3137
|
console.log(`>>ARCALITY_STATUS>> \u2139\uFE0F No se encontraron patrones previos (no_match: true).`);
|
|
@@ -3949,13 +3949,14 @@ Acci\xF3n bloqueada: Bucle de tipo ${loopType} sobre los elementos ${Array.from(
|
|
|
3949
3949
|
if (aiMarkedSuccess) {
|
|
3950
3950
|
hasCriticalError = false;
|
|
3951
3951
|
await persistCollectiveMemory();
|
|
3952
|
-
|
|
3952
|
+
const finalUsedDirectReuse = reusedPatternId !== null && guideIdx !== 999999;
|
|
3953
|
+
if (!finalUsedDirectReuse && stepsData.length > 0) {
|
|
3953
3954
|
const normalizedPrompt = prompt.toLowerCase().trim();
|
|
3954
3955
|
const patternKey = crypto2.createHash("sha256").update(normalizedPrompt).digest("hex");
|
|
3955
3956
|
if (!hasCriticalError) {
|
|
3956
|
-
const isDuplicate =
|
|
3957
|
+
const isDuplicate = finalUsedDirectReuse;
|
|
3957
3958
|
if (isDuplicate) {
|
|
3958
|
-
console.log(`>>ARCALITY_STATUS>> \u2139\uFE0F No se guardar\xE1 el patr\xF3n. duplicate_skipped: true (
|
|
3959
|
+
console.log(`>>ARCALITY_STATUS>> \u2139\uFE0F No se guardar\xE1 el patr\xF3n. duplicate_skipped: true (se us\xF3 directamente con \xE9xito)`);
|
|
3959
3960
|
}
|
|
3960
3961
|
const stepsToSave = stepsData.length > 0 ? stepsData : stepsDataBackup;
|
|
3961
3962
|
const hasCompleteSteps = stepsToSave.length >= stepsDataBackup.length;
|