@auracheck-ai/cli 0.2.9 → 0.2.11
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/LICENSE +1 -1
- package/NOTICE +33 -0
- package/dist/bin.js +113 -26
- package/dist/mcp/server.js +106 -25
- package/package.json +6 -11
- package/dist/bin.js.map +0 -1
- package/dist/mcp/server.js.map +0 -1
package/dist/mcp/server.js
CHANGED
|
@@ -169,6 +169,10 @@ var AuraCheckApi = class {
|
|
|
169
169
|
const { accounts } = await this.request("GET", `/api/projects/${projectId}/test-accounts`);
|
|
170
170
|
return accounts;
|
|
171
171
|
}
|
|
172
|
+
/** GitLab #174: label (or clear) one account of a role's pool. */
|
|
173
|
+
async setTestAccountLabel(projectId, roleId, accountId, label) {
|
|
174
|
+
return this.request("PATCH", `/api/projects/${projectId}/test-accounts/${roleId}/accounts/${accountId}`, { label });
|
|
175
|
+
}
|
|
172
176
|
async createTestAccountLink(projectId, role, addToPool) {
|
|
173
177
|
return this.request("POST", `/api/projects/${projectId}/test-accounts/mcp-link`, { role, ...addToPool ? { addToPool: true } : {} });
|
|
174
178
|
}
|
|
@@ -310,8 +314,12 @@ var AuraCheckApi = class {
|
|
|
310
314
|
async getReleaseVerdict(runId) {
|
|
311
315
|
return this.request("GET", `/api/runs/${runId}/release-verdict`);
|
|
312
316
|
}
|
|
313
|
-
|
|
314
|
-
|
|
317
|
+
/** MEMORY-VISIBLE: what AuraCheck remembered (lessons, project facts) and used in the run. */
|
|
318
|
+
async getRunMemory(runId) {
|
|
319
|
+
return this.request("GET", `/api/runs/${runId}/memory`);
|
|
320
|
+
}
|
|
321
|
+
async executeRun(runId, opts = {}) {
|
|
322
|
+
return this.request("POST", `/api/runs/${runId}/execute`, opts.accountOverrides ? { accountOverrides: opts.accountOverrides } : {});
|
|
315
323
|
}
|
|
316
324
|
async cancelRun(runId) {
|
|
317
325
|
return this.request("POST", `/api/runs/${runId}/cancel`, {});
|
|
@@ -1199,16 +1207,32 @@ var accountStatus = defineTool({
|
|
|
1199
1207
|
} else if (sub?.inGrace) {
|
|
1200
1208
|
lines.push(graceNotice(sub.graceEnd ?? null, ctx.renewalUrl));
|
|
1201
1209
|
} else if (sub && !sub.readOnly && sub.runUsage) {
|
|
1202
|
-
|
|
1210
|
+
const u = sub.runUsage;
|
|
1211
|
+
const longer = u.monthlyLimit != null && u.monthlyCount != null ? ` (${Math.max(u.monthlyLimit - u.monthlyCount, 0)} this month)` : u.totalLimit != null && u.totalCount != null ? ` (${Math.max(u.totalLimit - u.totalCount, 0)} left in the trial)` : "";
|
|
1212
|
+
lines.push(`Trial: ${sub.daysLeft ?? "?"} days left, ${Math.max(u.dailyLimit - u.dailyCount, 0)} runs left today${longer}.`);
|
|
1203
1213
|
} else if (sub?.readOnly) {
|
|
1204
1214
|
lines.push(account.adminContact ? `Your company's AuraCheck plan has ended, so new runs are paused. Please ask your admin ${account.adminContact.name ?? account.adminContact.email} (${account.adminContact.email}) to renew. Existing results are still available.` : `Your AuraCheck plan has ended, so new runs are paused. Existing results are still available. Renew here: ${ctx.renewalUrl}`);
|
|
1205
1215
|
}
|
|
1216
|
+
if (account.aiRunQuotaMessage) {
|
|
1217
|
+
lines.push(account.aiRunQuotaMessage);
|
|
1218
|
+
} else if (account.aiRuns && account.aiRuns.limit != null) {
|
|
1219
|
+
const a = account.aiRuns;
|
|
1220
|
+
const weight = a.mobileWeight && a.mobileWeight !== 1 ? ` One Android/iOS case = ${a.mobileWeight} AI runs.` : "";
|
|
1221
|
+
const rerun = a.freeRerunShare != null ? ` Re-running a FAILED case within 24h is free (up to ${Math.round(a.freeRerunShare * 100)}% of the monthly allowance); re-running a passed case counts.` : "";
|
|
1222
|
+
lines.push(`AI runs: ${a.used} of ${a.limit} used this period, ${a.remaining ?? 0} left${a.topUpBalance > 0 ? ` (incl. ${a.topUpBalance} top-up)` : ""}; resets ${a.resetsAt}. 1 AI run = 1 test case executed by AI.${weight}${rerun} Manual results and record_result do not use AI runs.`);
|
|
1223
|
+
}
|
|
1224
|
+
const g = account.generateWithAi;
|
|
1225
|
+
if (g) {
|
|
1226
|
+
lines.push(g.limit == null ? `Generate with AI: ${g.used} this month (no monthly cap on this account); it does not use AI runs.` : `Generate with AI: ${g.used} of ${g.limit} used this month, resets ${g.resetsAt}; it does not use AI runs.${g.used >= g.limit ? " The allowance is used up: write cases yourself (create_testcase) or ask an admin to upgrade." : ""}`);
|
|
1227
|
+
}
|
|
1206
1228
|
return {
|
|
1207
1229
|
user: account.user,
|
|
1208
1230
|
company: account.company,
|
|
1209
1231
|
isPlatformAdmin: account.isPlatformAdmin,
|
|
1210
1232
|
companies: account.companies,
|
|
1211
1233
|
subscription: sub,
|
|
1234
|
+
aiRuns: account.aiRuns ?? null,
|
|
1235
|
+
generateWithAi: account.generateWithAi ?? null,
|
|
1212
1236
|
projects: account.projects,
|
|
1213
1237
|
renewalUrl: ctx.renewalUrl,
|
|
1214
1238
|
minLocalMcp: account.minLocalMcp,
|
|
@@ -1329,12 +1353,13 @@ var setProject = defineTool({
|
|
|
1329
1353
|
var createProjectFromUrl = defineTool({
|
|
1330
1354
|
name: "create_project_from_url",
|
|
1331
1355
|
title: "Create project from URL",
|
|
1332
|
-
description: `"Start testing my website": create a new AuraCheck project with the given URL as its web environment. Needs the manageProjectSetup permission. Optionally pass defaultAuthoringMethod when you already know the answer (e.g. the user already said "Gherkin" earlier in this conversation) \u2014 otherwise the response carries an ask-once instruction for create_testcase/design_test_suite/import_feature_file's authoring method (steps vs Gherkin).`,
|
|
1356
|
+
description: `"Start testing my website": create a new AuraCheck project with the given URL as its web environment. Needs the manageProjectSetup permission. Optionally pass defaultAuthoringMethod when you already know the answer (e.g. the user already said "Gherkin" earlier in this conversation) \u2014 otherwise the response carries an ask-once instruction for create_testcase/design_test_suite/import_feature_file's authoring method (steps vs Gherkin). A platform admin with no company selected must pass companyId (from set_company) \u2014 omitting it fails with a clear instruction to call list_companies/set_company first.`,
|
|
1333
1357
|
input: z.object({
|
|
1334
1358
|
name: z.string().min(1),
|
|
1335
1359
|
targetUrl: z.string().url(),
|
|
1336
1360
|
description: z.string().optional(),
|
|
1337
|
-
defaultAuthoringMethod: z.enum(["steps", "gherkin"]).optional().describe("Set this project's authoring-method default at create time, skipping the ask-once prompt. Omit it to let the next authoring tool call surface the ask-once instruction instead.")
|
|
1361
|
+
defaultAuthoringMethod: z.enum(["steps", "gherkin"]).optional().describe("Set this project's authoring-method default at create time, skipping the ask-once prompt. Omit it to let the next authoring tool call surface the ask-once instruction instead."),
|
|
1362
|
+
companyId: z.string().optional().describe("Only meaningful for a platform admin acting with no company selected \u2014 the companyId from set_company. Required in that case; the server rejects project creation without it.")
|
|
1338
1363
|
}),
|
|
1339
1364
|
requires: "manageProjectSetup",
|
|
1340
1365
|
billing: "write",
|
|
@@ -1348,13 +1373,17 @@ var createProjectFromUrl = defineTool({
|
|
|
1348
1373
|
openWorldHint: true
|
|
1349
1374
|
},
|
|
1350
1375
|
handler: async (args, ctx) => {
|
|
1376
|
+
if (ctx.account.isPlatformAdmin && !ctx.account.company && !args.companyId) {
|
|
1377
|
+
throw new Error("companyId is required to create a project as a platform admin with no company selected. Call list_companies, then set_company, then retry with that companyId.");
|
|
1378
|
+
}
|
|
1351
1379
|
try {
|
|
1352
1380
|
const project = await ctx.api.createProject({
|
|
1353
1381
|
name: args.name,
|
|
1354
1382
|
targetUrl: args.targetUrl,
|
|
1355
1383
|
platforms: ["web"],
|
|
1356
1384
|
description: args.description,
|
|
1357
|
-
defaultAuthoringMethod: args.defaultAuthoringMethod
|
|
1385
|
+
defaultAuthoringMethod: args.defaultAuthoringMethod,
|
|
1386
|
+
companyId: args.companyId
|
|
1358
1387
|
});
|
|
1359
1388
|
await ctx.onSetProject?.(project.id);
|
|
1360
1389
|
return {
|
|
@@ -1489,7 +1518,7 @@ var requestTestAccount = defineTool({
|
|
|
1489
1518
|
var listTestAccountRoles = defineTool({
|
|
1490
1519
|
name: "list_test_account_roles",
|
|
1491
1520
|
title: "List test account roles",
|
|
1492
|
-
description:
|
|
1521
|
+
description: `List a project's saved Test Account roles (slug, name, which of password/pin/otp are set, and every account in the role's pool as accounts[] {id, label, display: "label \xB7 masked login"}) \u2014 never the credential values themselves. Use to check whether a role already exists before calling request_test_account, to poll whether a person finished the secure-link setup it started, or to find the accountId for create_run/start_run/run_suite accountOverrides (sign in as a specific user).`,
|
|
1493
1522
|
input: z3.object({ projectId: PROJECT_ID2 }),
|
|
1494
1523
|
requires: "viewProject",
|
|
1495
1524
|
billing: "read",
|
|
@@ -1505,7 +1534,35 @@ var listTestAccountRoles = defineTool({
|
|
|
1505
1534
|
return { roles };
|
|
1506
1535
|
}
|
|
1507
1536
|
});
|
|
1508
|
-
var
|
|
1537
|
+
var setTestAccountLabel = defineTool({
|
|
1538
|
+
name: "set_test_account_label",
|
|
1539
|
+
title: "Label a test account",
|
|
1540
|
+
description: 'Give one account in a Test Account role a short label (e.g. "User baru", "Premium", "Saldo nol") so people can choose it before a run \u2014 shown as "label \xB7 masked login". Pass an empty label to clear it. Get roleId and accountId from list_test_account_roles. Never touches the credential values.',
|
|
1541
|
+
input: z3.object({
|
|
1542
|
+
projectId: PROJECT_ID2,
|
|
1543
|
+
roleId: z3.string().min(1),
|
|
1544
|
+
accountId: z3.string().min(1),
|
|
1545
|
+
label: z3.string().max(60)
|
|
1546
|
+
}),
|
|
1547
|
+
requires: "manageProjectSetup",
|
|
1548
|
+
billing: "write",
|
|
1549
|
+
surfaces: ["remote", "local"],
|
|
1550
|
+
annotations: {
|
|
1551
|
+
readOnlyHint: false,
|
|
1552
|
+
destructiveHint: false,
|
|
1553
|
+
openWorldHint: false
|
|
1554
|
+
},
|
|
1555
|
+
handler: async ({ projectId, roleId, accountId, label }, ctx) => {
|
|
1556
|
+
const pid = requireProjectId(ctx, projectId);
|
|
1557
|
+
const role = await ctx.api.setTestAccountLabel(pid, roleId, accountId, label.trim() ? label : null);
|
|
1558
|
+
return { role };
|
|
1559
|
+
}
|
|
1560
|
+
});
|
|
1561
|
+
var CREDENTIAL_TOOLS = [
|
|
1562
|
+
requestTestAccount,
|
|
1563
|
+
listTestAccountRoles,
|
|
1564
|
+
setTestAccountLabel
|
|
1565
|
+
];
|
|
1509
1566
|
|
|
1510
1567
|
// ../mcp-core/dist/tools/exploration.js
|
|
1511
1568
|
import { z as z4 } from "zod";
|
|
@@ -3212,9 +3269,18 @@ var RUN_LOCALLY_TOOLS = [runLocally];
|
|
|
3212
3269
|
// ../mcp-core/dist/tools/runs.js
|
|
3213
3270
|
import { z as z12 } from "zod";
|
|
3214
3271
|
var PROJECT_ID10 = z12.string().optional().describe("AuraCheck project id (see list_projects). Defaults to the project set for this session.");
|
|
3272
|
+
var ACCOUNT_OVERRIDES = z12.record(z12.string().regex(/^[a-z][a-z0-9_]{1,39}$/, "a Test Account role slug"), z12.string().min(1)).optional().describe('Optional: sign in as a SPECIFIC Test Account per role, e.g. {"buyer": "<accountId>"} \u2014 accountId from list_test_account_roles (roles[].accounts[].id, shown as "label \xB7 masked login"). A role left out (or "auto") is Otomatis: AuraCheck picks a free account from the pool, same as before. Pinning one account makes the cases that use it run one after another. Only use when the person asked to test as a particular user (new user, premium, zero balance\u2026).');
|
|
3215
3273
|
function runViewUrl3(appUrl, runId, projectId) {
|
|
3216
3274
|
return projectId ? `${appUrl}/projects/${projectId}/runs/${runId}` : `${appUrl}/runs/${runId}`;
|
|
3217
3275
|
}
|
|
3276
|
+
async function runMemory(ctx, runId) {
|
|
3277
|
+
try {
|
|
3278
|
+
const r = await ctx.api.getRunMemory?.(runId);
|
|
3279
|
+
return r?.summary ?? null;
|
|
3280
|
+
} catch {
|
|
3281
|
+
return null;
|
|
3282
|
+
}
|
|
3283
|
+
}
|
|
3218
3284
|
var listRuns = defineTool({
|
|
3219
3285
|
name: "list_runs",
|
|
3220
3286
|
title: "List runs",
|
|
@@ -3248,7 +3314,9 @@ var createRun = defineTool({
|
|
|
3248
3314
|
milestoneId: z12.string().optional(),
|
|
3249
3315
|
tags: z12.array(z12.string()).optional(),
|
|
3250
3316
|
notes: z12.string().optional(),
|
|
3251
|
-
browserEngine: z12.enum(["chrome", "edge"]).optional()
|
|
3317
|
+
browserEngine: z12.enum(["chrome", "edge"]).optional(),
|
|
3318
|
+
accountOverrides: ACCOUNT_OVERRIDES,
|
|
3319
|
+
caseExecution: z12.enum(["parallel", "sequential"]).optional().describe('"sequential" runs the cases one at a time (slower; use it when the site blocks many logins or requests at once). Default "parallel".')
|
|
3252
3320
|
}),
|
|
3253
3321
|
requires: "runTests",
|
|
3254
3322
|
billing: "run",
|
|
@@ -3289,7 +3357,10 @@ var startRun = defineTool({
|
|
|
3289
3357
|
localAlias: "execute_run",
|
|
3290
3358
|
title: "Start run",
|
|
3291
3359
|
description: "Trigger execution of an existing WEB run. Fire-and-forget: the runner state lives in AuraCheck. Use wait_for_run to await terminal status. Android/iOS runs never execute on AuraCheck's servers: for those this returns a blocked result telling the person to open the run in the desktop app and click Run on local / Run on iOS.",
|
|
3292
|
-
input: z12.object({
|
|
3360
|
+
input: z12.object({
|
|
3361
|
+
runId: z12.string().min(1),
|
|
3362
|
+
accountOverrides: ACCOUNT_OVERRIDES.describe(`Optional, only for a run that has not started yet: sign in as a specific Test Account per role ({"<roleSlug>": "<accountId>" | "auto"}, ids from list_test_account_roles). Omit to keep what the run was created with. A re-run always keeps the run's own choice.`)
|
|
3363
|
+
}),
|
|
3293
3364
|
requires: "runTests",
|
|
3294
3365
|
billing: "run",
|
|
3295
3366
|
surfaces: ["remote", "local"],
|
|
@@ -3300,7 +3371,7 @@ var startRun = defineTool({
|
|
|
3300
3371
|
destructiveHint: false,
|
|
3301
3372
|
openWorldHint: true
|
|
3302
3373
|
},
|
|
3303
|
-
handler: async ({ runId }, ctx) => {
|
|
3374
|
+
handler: async ({ runId, accountOverrides }, ctx) => {
|
|
3304
3375
|
try {
|
|
3305
3376
|
const run = await ctx.api.getRun(runId).catch(() => null);
|
|
3306
3377
|
if (run) {
|
|
@@ -3309,7 +3380,7 @@ var startRun = defineTool({
|
|
|
3309
3380
|
if (blocked)
|
|
3310
3381
|
return blocked;
|
|
3311
3382
|
}
|
|
3312
|
-
return await ctx.api.executeRun(runId);
|
|
3383
|
+
return await (accountOverrides ? ctx.api.executeRun(runId, { accountOverrides }) : ctx.api.executeRun(runId));
|
|
3313
3384
|
} catch (err) {
|
|
3314
3385
|
if (err instanceof ApiError) {
|
|
3315
3386
|
const answer = runFromDesktopAnswer(err, runId) ?? // ACTIVATION-1: setup (URL/test account/login) isn't ready yet.
|
|
@@ -3372,6 +3443,7 @@ var waitForRun = defineTool({
|
|
|
3372
3443
|
}
|
|
3373
3444
|
const terminal = TERMINAL_RUN_STATUSES.has(last.status);
|
|
3374
3445
|
const attempts = await ctx.api.listRunCaseAttempts(args.runId).catch(() => ({ attempts: [] }));
|
|
3446
|
+
const memory = terminal ? await runMemory(ctx, args.runId) : null;
|
|
3375
3447
|
const summary = attempts.attempts.reduce((acc, a) => {
|
|
3376
3448
|
acc[a.status] = (acc[a.status] ?? 0) + 1;
|
|
3377
3449
|
return acc;
|
|
@@ -3387,6 +3459,7 @@ var waitForRun = defineTool({
|
|
|
3387
3459
|
viewUrl: runViewUrl3(ctx.appUrl, args.runId, last.projectId),
|
|
3388
3460
|
completedAt: last.completedAt ?? null,
|
|
3389
3461
|
caseStatusSummary: summary,
|
|
3462
|
+
...memory ? { memory } : {},
|
|
3390
3463
|
...pendingMobile ? {
|
|
3391
3464
|
message: "Not started yet: Android/iOS runs are started by a person in the AuraCheck desktop app on their own device."
|
|
3392
3465
|
} : {},
|
|
@@ -3468,7 +3541,7 @@ var waitForRuns = defineTool({
|
|
|
3468
3541
|
var getRun = defineTool({
|
|
3469
3542
|
name: "get_run",
|
|
3470
3543
|
title: "Get run",
|
|
3471
|
-
description:
|
|
3544
|
+
description: 'Fetch a single run by id including current status, started/completed timestamps, reportUrl when available, the run diff vs the previous comparable run (newlyFailing/fixed/stillFailing/newCases), and the release verdict (Ready based on tested coverage / Needs review / Blocked, with reasons and coverage). Also `memory`: what AuraCheck remembered and used in this run (project facts, lessons from past failures); when `memory.count > 0`, tell the person in one line, e.g. "AuraCheck ingat: <text>".',
|
|
3472
3545
|
input: z12.object({ runId: z12.string().min(1) }),
|
|
3473
3546
|
requires: "viewProject",
|
|
3474
3547
|
billing: "read",
|
|
@@ -3479,12 +3552,13 @@ var getRun = defineTool({
|
|
|
3479
3552
|
openWorldHint: false
|
|
3480
3553
|
},
|
|
3481
3554
|
handler: async ({ runId }, ctx) => {
|
|
3482
|
-
const [run, diff, releaseVerdict] = await Promise.all([
|
|
3555
|
+
const [run, diff, releaseVerdict, memory] = await Promise.all([
|
|
3483
3556
|
ctx.api.getRun(runId),
|
|
3484
3557
|
ctx.api.getRunDiff(runId).catch(() => null),
|
|
3485
|
-
ctx.api.getReleaseVerdict(runId).catch(() => null)
|
|
3558
|
+
ctx.api.getReleaseVerdict(runId).catch(() => null),
|
|
3559
|
+
runMemory(ctx, runId)
|
|
3486
3560
|
]);
|
|
3487
|
-
return { ...run, diff, releaseVerdict };
|
|
3561
|
+
return { ...run, diff, releaseVerdict, memory };
|
|
3488
3562
|
}
|
|
3489
3563
|
});
|
|
3490
3564
|
var runSummary = defineTool({
|
|
@@ -3492,7 +3566,7 @@ var runSummary = defineTool({
|
|
|
3492
3566
|
// Existing local CLI name, kept so `auracheck.get_run_report` doesn't break.
|
|
3493
3567
|
localAlias: "get_run_report",
|
|
3494
3568
|
title: "Run summary",
|
|
3495
|
-
description:
|
|
3569
|
+
description: 'Results of a run as the Run Report groups them: case counts (passed/failed/skipped/pending) plus buckets \u2014 potential bugs (with bug report, severity), script issues, blocked cases and passed cases. Also includes the run diff vs the previous comparable run and the release verdict (Ready based on tested coverage / Needs review / Blocked, with reasons, coverage and evidence links). Also `memory`: what AuraCheck remembered and used in this run (project facts, lessons from past failures); when `memory.count > 0`, tell the person in one line, e.g. "AuraCheck ingat: <text>". Read-only.',
|
|
3496
3570
|
input: z12.object({ runId: z12.string().min(1) }),
|
|
3497
3571
|
requires: "viewReports",
|
|
3498
3572
|
billing: "read",
|
|
@@ -3503,12 +3577,13 @@ var runSummary = defineTool({
|
|
|
3503
3577
|
openWorldHint: false
|
|
3504
3578
|
},
|
|
3505
3579
|
handler: async ({ runId }, ctx) => {
|
|
3506
|
-
const [run, counts, buckets, diff, releaseVerdict] = await Promise.all([
|
|
3580
|
+
const [run, counts, buckets, diff, releaseVerdict, memory] = await Promise.all([
|
|
3507
3581
|
ctx.api.getRun(runId),
|
|
3508
3582
|
ctx.api.getRunCaseStatusCounts(runId),
|
|
3509
3583
|
ctx.api.getRunReportBuckets(runId),
|
|
3510
3584
|
ctx.api.getRunDiff(runId).catch(() => null),
|
|
3511
|
-
ctx.api.getReleaseVerdict(runId).catch(() => null)
|
|
3585
|
+
ctx.api.getReleaseVerdict(runId).catch(() => null),
|
|
3586
|
+
runMemory(ctx, runId)
|
|
3512
3587
|
]);
|
|
3513
3588
|
return {
|
|
3514
3589
|
run: {
|
|
@@ -3520,7 +3595,8 @@ var runSummary = defineTool({
|
|
|
3520
3595
|
counts,
|
|
3521
3596
|
...buckets,
|
|
3522
3597
|
diff,
|
|
3523
|
-
releaseVerdict
|
|
3598
|
+
releaseVerdict,
|
|
3599
|
+
memory
|
|
3524
3600
|
};
|
|
3525
3601
|
}
|
|
3526
3602
|
});
|
|
@@ -4325,7 +4401,8 @@ var runSuite = defineTool({
|
|
|
4325
4401
|
projectId: PROJECT_ID13,
|
|
4326
4402
|
suiteId: z16.string().optional(),
|
|
4327
4403
|
caseIds: z16.array(z16.string()).optional(),
|
|
4328
|
-
name: z16.string().optional()
|
|
4404
|
+
name: z16.string().optional(),
|
|
4405
|
+
accountOverrides: ACCOUNT_OVERRIDES
|
|
4329
4406
|
}),
|
|
4330
4407
|
requires: "runTests",
|
|
4331
4408
|
billing: "run",
|
|
@@ -4336,7 +4413,7 @@ var runSuite = defineTool({
|
|
|
4336
4413
|
destructiveHint: false,
|
|
4337
4414
|
openWorldHint: true
|
|
4338
4415
|
},
|
|
4339
|
-
handler: async ({ projectId, suiteId, caseIds, name }, ctx) => {
|
|
4416
|
+
handler: async ({ projectId, suiteId, caseIds, name, accountOverrides }, ctx) => {
|
|
4340
4417
|
const pid = requireProjectId(ctx, projectId);
|
|
4341
4418
|
if (!suiteId && (!caseIds || caseIds.length === 0)) {
|
|
4342
4419
|
throw new Error("Pass either suiteId (from design_test_suite) or a non-empty caseIds list.");
|
|
@@ -4363,7 +4440,8 @@ var runSuite = defineTool({
|
|
|
4363
4440
|
name: name ?? `Suite run (${resolvedCaseIds.length} cases)`,
|
|
4364
4441
|
testCaseIds: resolvedCaseIds,
|
|
4365
4442
|
caseSelectionMode: "select",
|
|
4366
|
-
platform: ctx.defaultPlatform ?? "web"
|
|
4443
|
+
platform: ctx.defaultPlatform ?? "web",
|
|
4444
|
+
...accountOverrides ? { accountOverrides } : {}
|
|
4367
4445
|
});
|
|
4368
4446
|
runId = run.id;
|
|
4369
4447
|
viewUrl = `${ctx.appUrl}/projects/${pid}/runs/${runId}`;
|
|
@@ -5285,7 +5363,7 @@ var SourceReader = class {
|
|
|
5285
5363
|
};
|
|
5286
5364
|
|
|
5287
5365
|
// src/mcp/server.ts
|
|
5288
|
-
var CLI_VERSION = "0.2.
|
|
5366
|
+
var CLI_VERSION = "0.2.11";
|
|
5289
5367
|
var LOCAL_ALL_CAPABILITIES = [
|
|
5290
5368
|
"viewProject",
|
|
5291
5369
|
"viewReports",
|
|
@@ -5511,10 +5589,13 @@ function logErr(msg) {
|
|
|
5511
5589
|
process.stderr.write(`[auracheck-mcp] ${msg}
|
|
5512
5590
|
`);
|
|
5513
5591
|
}
|
|
5592
|
+
function signUpSentence(baseUrl) {
|
|
5593
|
+
return `No account yet? Start free at ${baseUrl}/sign-up?utm_source=cli`;
|
|
5594
|
+
}
|
|
5514
5595
|
var NotSignedInError = class extends Error {
|
|
5515
5596
|
constructor(baseUrl) {
|
|
5516
5597
|
super(
|
|
5517
|
-
`Not signed in to AuraCheck (${baseUrl}). Call auracheck.login (or run \`auracheck login\` in a terminal) \u2014 the MCP server picks up the new sign-in on the next call, no restart needed
|
|
5598
|
+
`Not signed in to AuraCheck (${baseUrl}). Call auracheck.login (or run \`auracheck login\` in a terminal) \u2014 the MCP server picks up the new sign-in on the next call, no restart needed. ${signUpSentence(baseUrl)}`
|
|
5518
5599
|
);
|
|
5519
5600
|
}
|
|
5520
5601
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auracheck-ai/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.11",
|
|
4
4
|
"description": "AuraCheck CLI + MCP server for AI-driven whitebox testcase generation",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -17,22 +17,17 @@
|
|
|
17
17
|
"claude-code",
|
|
18
18
|
"ai-testing"
|
|
19
19
|
],
|
|
20
|
-
"homepage": "https://
|
|
21
|
-
"repository": {
|
|
22
|
-
"type": "git",
|
|
23
|
-
"url": "https://gitlab.sprout.co.id/sixseven/sixseven-ai.git",
|
|
24
|
-
"directory": "packages/cli"
|
|
25
|
-
},
|
|
26
|
-
"bugs": {
|
|
27
|
-
"url": "https://gitlab.sprout.co.id/sixseven/sixseven-ai/issues"
|
|
28
|
-
},
|
|
20
|
+
"homepage": "https://www.auracheck.ai.id/docs/mcp",
|
|
29
21
|
"bin": {
|
|
30
22
|
"auracheck": "dist/bin.js"
|
|
31
23
|
},
|
|
32
24
|
"files": [
|
|
33
25
|
"dist",
|
|
26
|
+
"!dist/**/*.map",
|
|
34
27
|
"README.md",
|
|
35
|
-
"USAGE.md"
|
|
28
|
+
"USAGE.md",
|
|
29
|
+
"LICENSE",
|
|
30
|
+
"NOTICE"
|
|
36
31
|
],
|
|
37
32
|
"publishConfig": {
|
|
38
33
|
"access": "public"
|