artes 1.7.1 → 1.7.2
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
|
@@ -148,7 +148,7 @@ async function callLocalAI({ prompt, url, apiKey }) {
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
|
|
151
|
-
async function generateFailedBugReport({ resultCtx, pickleCtx, response, language, aiFlag, apiKey, url }) {
|
|
151
|
+
async function generateFailedBugReport({ resultCtx, pickleCtx, response, language, aiFlag, apiKey, url, maxTokens }) {
|
|
152
152
|
|
|
153
153
|
const nameInstruction = pickleCtx.useMeaningfulName
|
|
154
154
|
? `The test case is named "${pickleCtx.scenarioName}" — use this as context for the bug report title.`
|
|
@@ -215,7 +215,7 @@ if (url) {
|
|
|
215
215
|
return callAI({ prompt, aiFlag, apiKey, maxTokens });
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
async function generatePassedSummary({ pickleCtx, response, language, aiFlag, apiKey, url }) {
|
|
218
|
+
async function generatePassedSummary({ pickleCtx, response, language, aiFlag, apiKey, url, maxTokens }) {
|
|
219
219
|
const lang = language ?? "English";
|
|
220
220
|
|
|
221
221
|
const prompt = [
|
|
@@ -56,12 +56,12 @@ async function getEnvInfo() {
|
|
|
56
56
|
Timeout: cucumberConfig.default.timeout ?? "N/A",
|
|
57
57
|
|
|
58
58
|
// ── AI Config ─────────────────────────
|
|
59
|
-
AI_Enabled: cucumberConfig.
|
|
60
|
-
AI_URL: cucumberConfig.
|
|
61
|
-
AI_Model: cucumberConfig.
|
|
62
|
-
AI_Language: cucumberConfig.
|
|
63
|
-
AI_Max_Tokens: cucumberConfig.
|
|
64
|
-
AI_Max_Reports: cucumberConfig.
|
|
59
|
+
AI_Enabled: cucumberConfig.ai.ai ?? false,
|
|
60
|
+
AI_URL: cucumberConfig.ai.url || "N/A",
|
|
61
|
+
AI_Model: cucumberConfig.ai.model || "N/A",
|
|
62
|
+
AI_Language: cucumberConfig.ai.language || "English",
|
|
63
|
+
AI_Max_Tokens: cucumberConfig.ai.maxTokens ?? "4000",
|
|
64
|
+
AI_Max_Reports: cucumberConfig.ai.maxReports ?? 10,
|
|
65
65
|
|
|
66
66
|
// ── Git ─────────────────────────────────
|
|
67
67
|
Git_Branch: process.env.GIT_BRANCH ?? process.env.BRANCH_NAME ?? "N/A",
|