@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/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2026 AuraCheck
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/NOTICE
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
NOTICE
|
|
2
|
+
|
|
3
|
+
This package is AuraCheck's own code, licensed under the MIT License in
|
|
4
|
+
LICENSE (Copyright (c) 2026 AuraCheck).
|
|
5
|
+
|
|
6
|
+
Parts of it are derived from Midscene.js (https://github.com/web-infra-dev/midscene),
|
|
7
|
+
for example the YAML flow-item vocabulary and step rules it validates against.
|
|
8
|
+
Those parts remain under Midscene's original MIT License, reproduced below as
|
|
9
|
+
that license requires.
|
|
10
|
+
|
|
11
|
+
--------------------------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
MIT License
|
|
14
|
+
|
|
15
|
+
Copyright (c) 2024-present Bytedance, Inc. and its affiliates.
|
|
16
|
+
|
|
17
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
18
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
19
|
+
in the Software without restriction, including without limitation the rights
|
|
20
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
21
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
22
|
+
furnished to do so, subject to the following conditions:
|
|
23
|
+
|
|
24
|
+
The above copyright notice and this permission notice shall be included in all
|
|
25
|
+
copies or substantial portions of the Software.
|
|
26
|
+
|
|
27
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
28
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
29
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
30
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
31
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
32
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
33
|
+
SOFTWARE.
|
package/dist/bin.js
CHANGED
|
@@ -177,6 +177,10 @@ var AuraCheckApi = class {
|
|
|
177
177
|
const { accounts } = await this.request("GET", `/api/projects/${projectId}/test-accounts`);
|
|
178
178
|
return accounts;
|
|
179
179
|
}
|
|
180
|
+
/** GitLab #174: label (or clear) one account of a role's pool. */
|
|
181
|
+
async setTestAccountLabel(projectId, roleId, accountId, label) {
|
|
182
|
+
return this.request("PATCH", `/api/projects/${projectId}/test-accounts/${roleId}/accounts/${accountId}`, { label });
|
|
183
|
+
}
|
|
180
184
|
async createTestAccountLink(projectId, role, addToPool) {
|
|
181
185
|
return this.request("POST", `/api/projects/${projectId}/test-accounts/mcp-link`, { role, ...addToPool ? { addToPool: true } : {} });
|
|
182
186
|
}
|
|
@@ -318,8 +322,12 @@ var AuraCheckApi = class {
|
|
|
318
322
|
async getReleaseVerdict(runId) {
|
|
319
323
|
return this.request("GET", `/api/runs/${runId}/release-verdict`);
|
|
320
324
|
}
|
|
321
|
-
|
|
322
|
-
|
|
325
|
+
/** MEMORY-VISIBLE: what AuraCheck remembered (lessons, project facts) and used in the run. */
|
|
326
|
+
async getRunMemory(runId) {
|
|
327
|
+
return this.request("GET", `/api/runs/${runId}/memory`);
|
|
328
|
+
}
|
|
329
|
+
async executeRun(runId, opts = {}) {
|
|
330
|
+
return this.request("POST", `/api/runs/${runId}/execute`, opts.accountOverrides ? { accountOverrides: opts.accountOverrides } : {});
|
|
323
331
|
}
|
|
324
332
|
async cancelRun(runId) {
|
|
325
333
|
return this.request("POST", `/api/runs/${runId}/cancel`, {});
|
|
@@ -1207,16 +1215,32 @@ var accountStatus = defineTool({
|
|
|
1207
1215
|
} else if (sub?.inGrace) {
|
|
1208
1216
|
lines.push(graceNotice(sub.graceEnd ?? null, ctx.renewalUrl));
|
|
1209
1217
|
} else if (sub && !sub.readOnly && sub.runUsage) {
|
|
1210
|
-
|
|
1218
|
+
const u = sub.runUsage;
|
|
1219
|
+
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)` : "";
|
|
1220
|
+
lines.push(`Trial: ${sub.daysLeft ?? "?"} days left, ${Math.max(u.dailyLimit - u.dailyCount, 0)} runs left today${longer}.`);
|
|
1211
1221
|
} else if (sub?.readOnly) {
|
|
1212
1222
|
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}`);
|
|
1213
1223
|
}
|
|
1224
|
+
if (account.aiRunQuotaMessage) {
|
|
1225
|
+
lines.push(account.aiRunQuotaMessage);
|
|
1226
|
+
} else if (account.aiRuns && account.aiRuns.limit != null) {
|
|
1227
|
+
const a = account.aiRuns;
|
|
1228
|
+
const weight = a.mobileWeight && a.mobileWeight !== 1 ? ` One Android/iOS case = ${a.mobileWeight} AI runs.` : "";
|
|
1229
|
+
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.` : "";
|
|
1230
|
+
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.`);
|
|
1231
|
+
}
|
|
1232
|
+
const g = account.generateWithAi;
|
|
1233
|
+
if (g) {
|
|
1234
|
+
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." : ""}`);
|
|
1235
|
+
}
|
|
1214
1236
|
return {
|
|
1215
1237
|
user: account.user,
|
|
1216
1238
|
company: account.company,
|
|
1217
1239
|
isPlatformAdmin: account.isPlatformAdmin,
|
|
1218
1240
|
companies: account.companies,
|
|
1219
1241
|
subscription: sub,
|
|
1242
|
+
aiRuns: account.aiRuns ?? null,
|
|
1243
|
+
generateWithAi: account.generateWithAi ?? null,
|
|
1220
1244
|
projects: account.projects,
|
|
1221
1245
|
renewalUrl: ctx.renewalUrl,
|
|
1222
1246
|
minLocalMcp: account.minLocalMcp,
|
|
@@ -1337,12 +1361,13 @@ var setProject = defineTool({
|
|
|
1337
1361
|
var createProjectFromUrl = defineTool({
|
|
1338
1362
|
name: "create_project_from_url",
|
|
1339
1363
|
title: "Create project from URL",
|
|
1340
|
-
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).`,
|
|
1364
|
+
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.`,
|
|
1341
1365
|
input: z.object({
|
|
1342
1366
|
name: z.string().min(1),
|
|
1343
1367
|
targetUrl: z.string().url(),
|
|
1344
1368
|
description: z.string().optional(),
|
|
1345
|
-
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.")
|
|
1369
|
+
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."),
|
|
1370
|
+
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.")
|
|
1346
1371
|
}),
|
|
1347
1372
|
requires: "manageProjectSetup",
|
|
1348
1373
|
billing: "write",
|
|
@@ -1356,13 +1381,17 @@ var createProjectFromUrl = defineTool({
|
|
|
1356
1381
|
openWorldHint: true
|
|
1357
1382
|
},
|
|
1358
1383
|
handler: async (args, ctx) => {
|
|
1384
|
+
if (ctx.account.isPlatformAdmin && !ctx.account.company && !args.companyId) {
|
|
1385
|
+
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.");
|
|
1386
|
+
}
|
|
1359
1387
|
try {
|
|
1360
1388
|
const project = await ctx.api.createProject({
|
|
1361
1389
|
name: args.name,
|
|
1362
1390
|
targetUrl: args.targetUrl,
|
|
1363
1391
|
platforms: ["web"],
|
|
1364
1392
|
description: args.description,
|
|
1365
|
-
defaultAuthoringMethod: args.defaultAuthoringMethod
|
|
1393
|
+
defaultAuthoringMethod: args.defaultAuthoringMethod,
|
|
1394
|
+
companyId: args.companyId
|
|
1366
1395
|
});
|
|
1367
1396
|
await ctx.onSetProject?.(project.id);
|
|
1368
1397
|
return {
|
|
@@ -1497,7 +1526,7 @@ var requestTestAccount = defineTool({
|
|
|
1497
1526
|
var listTestAccountRoles = defineTool({
|
|
1498
1527
|
name: "list_test_account_roles",
|
|
1499
1528
|
title: "List test account roles",
|
|
1500
|
-
description:
|
|
1529
|
+
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).`,
|
|
1501
1530
|
input: z3.object({ projectId: PROJECT_ID2 }),
|
|
1502
1531
|
requires: "viewProject",
|
|
1503
1532
|
billing: "read",
|
|
@@ -1513,7 +1542,35 @@ var listTestAccountRoles = defineTool({
|
|
|
1513
1542
|
return { roles };
|
|
1514
1543
|
}
|
|
1515
1544
|
});
|
|
1516
|
-
var
|
|
1545
|
+
var setTestAccountLabel = defineTool({
|
|
1546
|
+
name: "set_test_account_label",
|
|
1547
|
+
title: "Label a test account",
|
|
1548
|
+
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.',
|
|
1549
|
+
input: z3.object({
|
|
1550
|
+
projectId: PROJECT_ID2,
|
|
1551
|
+
roleId: z3.string().min(1),
|
|
1552
|
+
accountId: z3.string().min(1),
|
|
1553
|
+
label: z3.string().max(60)
|
|
1554
|
+
}),
|
|
1555
|
+
requires: "manageProjectSetup",
|
|
1556
|
+
billing: "write",
|
|
1557
|
+
surfaces: ["remote", "local"],
|
|
1558
|
+
annotations: {
|
|
1559
|
+
readOnlyHint: false,
|
|
1560
|
+
destructiveHint: false,
|
|
1561
|
+
openWorldHint: false
|
|
1562
|
+
},
|
|
1563
|
+
handler: async ({ projectId, roleId, accountId, label }, ctx) => {
|
|
1564
|
+
const pid = requireProjectId(ctx, projectId);
|
|
1565
|
+
const role = await ctx.api.setTestAccountLabel(pid, roleId, accountId, label.trim() ? label : null);
|
|
1566
|
+
return { role };
|
|
1567
|
+
}
|
|
1568
|
+
});
|
|
1569
|
+
var CREDENTIAL_TOOLS = [
|
|
1570
|
+
requestTestAccount,
|
|
1571
|
+
listTestAccountRoles,
|
|
1572
|
+
setTestAccountLabel
|
|
1573
|
+
];
|
|
1517
1574
|
|
|
1518
1575
|
// ../mcp-core/dist/tools/exploration.js
|
|
1519
1576
|
import { z as z4 } from "zod";
|
|
@@ -3220,9 +3277,18 @@ var RUN_LOCALLY_TOOLS = [runLocally];
|
|
|
3220
3277
|
// ../mcp-core/dist/tools/runs.js
|
|
3221
3278
|
import { z as z12 } from "zod";
|
|
3222
3279
|
var PROJECT_ID10 = z12.string().optional().describe("AuraCheck project id (see list_projects). Defaults to the project set for this session.");
|
|
3280
|
+
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).');
|
|
3223
3281
|
function runViewUrl3(appUrl, runId, projectId) {
|
|
3224
3282
|
return projectId ? `${appUrl}/projects/${projectId}/runs/${runId}` : `${appUrl}/runs/${runId}`;
|
|
3225
3283
|
}
|
|
3284
|
+
async function runMemory(ctx, runId) {
|
|
3285
|
+
try {
|
|
3286
|
+
const r = await ctx.api.getRunMemory?.(runId);
|
|
3287
|
+
return r?.summary ?? null;
|
|
3288
|
+
} catch {
|
|
3289
|
+
return null;
|
|
3290
|
+
}
|
|
3291
|
+
}
|
|
3226
3292
|
var listRuns = defineTool({
|
|
3227
3293
|
name: "list_runs",
|
|
3228
3294
|
title: "List runs",
|
|
@@ -3256,7 +3322,9 @@ var createRun = defineTool({
|
|
|
3256
3322
|
milestoneId: z12.string().optional(),
|
|
3257
3323
|
tags: z12.array(z12.string()).optional(),
|
|
3258
3324
|
notes: z12.string().optional(),
|
|
3259
|
-
browserEngine: z12.enum(["chrome", "edge"]).optional()
|
|
3325
|
+
browserEngine: z12.enum(["chrome", "edge"]).optional(),
|
|
3326
|
+
accountOverrides: ACCOUNT_OVERRIDES,
|
|
3327
|
+
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".')
|
|
3260
3328
|
}),
|
|
3261
3329
|
requires: "runTests",
|
|
3262
3330
|
billing: "run",
|
|
@@ -3297,7 +3365,10 @@ var startRun = defineTool({
|
|
|
3297
3365
|
localAlias: "execute_run",
|
|
3298
3366
|
title: "Start run",
|
|
3299
3367
|
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.",
|
|
3300
|
-
input: z12.object({
|
|
3368
|
+
input: z12.object({
|
|
3369
|
+
runId: z12.string().min(1),
|
|
3370
|
+
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.`)
|
|
3371
|
+
}),
|
|
3301
3372
|
requires: "runTests",
|
|
3302
3373
|
billing: "run",
|
|
3303
3374
|
surfaces: ["remote", "local"],
|
|
@@ -3308,7 +3379,7 @@ var startRun = defineTool({
|
|
|
3308
3379
|
destructiveHint: false,
|
|
3309
3380
|
openWorldHint: true
|
|
3310
3381
|
},
|
|
3311
|
-
handler: async ({ runId }, ctx) => {
|
|
3382
|
+
handler: async ({ runId, accountOverrides }, ctx) => {
|
|
3312
3383
|
try {
|
|
3313
3384
|
const run = await ctx.api.getRun(runId).catch(() => null);
|
|
3314
3385
|
if (run) {
|
|
@@ -3317,7 +3388,7 @@ var startRun = defineTool({
|
|
|
3317
3388
|
if (blocked)
|
|
3318
3389
|
return blocked;
|
|
3319
3390
|
}
|
|
3320
|
-
return await ctx.api.executeRun(runId);
|
|
3391
|
+
return await (accountOverrides ? ctx.api.executeRun(runId, { accountOverrides }) : ctx.api.executeRun(runId));
|
|
3321
3392
|
} catch (err) {
|
|
3322
3393
|
if (err instanceof ApiError) {
|
|
3323
3394
|
const answer = runFromDesktopAnswer(err, runId) ?? // ACTIVATION-1: setup (URL/test account/login) isn't ready yet.
|
|
@@ -3380,6 +3451,7 @@ var waitForRun = defineTool({
|
|
|
3380
3451
|
}
|
|
3381
3452
|
const terminal = TERMINAL_RUN_STATUSES.has(last.status);
|
|
3382
3453
|
const attempts = await ctx.api.listRunCaseAttempts(args.runId).catch(() => ({ attempts: [] }));
|
|
3454
|
+
const memory = terminal ? await runMemory(ctx, args.runId) : null;
|
|
3383
3455
|
const summary = attempts.attempts.reduce((acc, a) => {
|
|
3384
3456
|
acc[a.status] = (acc[a.status] ?? 0) + 1;
|
|
3385
3457
|
return acc;
|
|
@@ -3395,6 +3467,7 @@ var waitForRun = defineTool({
|
|
|
3395
3467
|
viewUrl: runViewUrl3(ctx.appUrl, args.runId, last.projectId),
|
|
3396
3468
|
completedAt: last.completedAt ?? null,
|
|
3397
3469
|
caseStatusSummary: summary,
|
|
3470
|
+
...memory ? { memory } : {},
|
|
3398
3471
|
...pendingMobile ? {
|
|
3399
3472
|
message: "Not started yet: Android/iOS runs are started by a person in the AuraCheck desktop app on their own device."
|
|
3400
3473
|
} : {},
|
|
@@ -3476,7 +3549,7 @@ var waitForRuns = defineTool({
|
|
|
3476
3549
|
var getRun = defineTool({
|
|
3477
3550
|
name: "get_run",
|
|
3478
3551
|
title: "Get run",
|
|
3479
|
-
description:
|
|
3552
|
+
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>".',
|
|
3480
3553
|
input: z12.object({ runId: z12.string().min(1) }),
|
|
3481
3554
|
requires: "viewProject",
|
|
3482
3555
|
billing: "read",
|
|
@@ -3487,12 +3560,13 @@ var getRun = defineTool({
|
|
|
3487
3560
|
openWorldHint: false
|
|
3488
3561
|
},
|
|
3489
3562
|
handler: async ({ runId }, ctx) => {
|
|
3490
|
-
const [run, diff, releaseVerdict] = await Promise.all([
|
|
3563
|
+
const [run, diff, releaseVerdict, memory] = await Promise.all([
|
|
3491
3564
|
ctx.api.getRun(runId),
|
|
3492
3565
|
ctx.api.getRunDiff(runId).catch(() => null),
|
|
3493
|
-
ctx.api.getReleaseVerdict(runId).catch(() => null)
|
|
3566
|
+
ctx.api.getReleaseVerdict(runId).catch(() => null),
|
|
3567
|
+
runMemory(ctx, runId)
|
|
3494
3568
|
]);
|
|
3495
|
-
return { ...run, diff, releaseVerdict };
|
|
3569
|
+
return { ...run, diff, releaseVerdict, memory };
|
|
3496
3570
|
}
|
|
3497
3571
|
});
|
|
3498
3572
|
var runSummary = defineTool({
|
|
@@ -3500,7 +3574,7 @@ var runSummary = defineTool({
|
|
|
3500
3574
|
// Existing local CLI name, kept so `auracheck.get_run_report` doesn't break.
|
|
3501
3575
|
localAlias: "get_run_report",
|
|
3502
3576
|
title: "Run summary",
|
|
3503
|
-
description:
|
|
3577
|
+
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.',
|
|
3504
3578
|
input: z12.object({ runId: z12.string().min(1) }),
|
|
3505
3579
|
requires: "viewReports",
|
|
3506
3580
|
billing: "read",
|
|
@@ -3511,12 +3585,13 @@ var runSummary = defineTool({
|
|
|
3511
3585
|
openWorldHint: false
|
|
3512
3586
|
},
|
|
3513
3587
|
handler: async ({ runId }, ctx) => {
|
|
3514
|
-
const [run, counts, buckets, diff, releaseVerdict] = await Promise.all([
|
|
3588
|
+
const [run, counts, buckets, diff, releaseVerdict, memory] = await Promise.all([
|
|
3515
3589
|
ctx.api.getRun(runId),
|
|
3516
3590
|
ctx.api.getRunCaseStatusCounts(runId),
|
|
3517
3591
|
ctx.api.getRunReportBuckets(runId),
|
|
3518
3592
|
ctx.api.getRunDiff(runId).catch(() => null),
|
|
3519
|
-
ctx.api.getReleaseVerdict(runId).catch(() => null)
|
|
3593
|
+
ctx.api.getReleaseVerdict(runId).catch(() => null),
|
|
3594
|
+
runMemory(ctx, runId)
|
|
3520
3595
|
]);
|
|
3521
3596
|
return {
|
|
3522
3597
|
run: {
|
|
@@ -3528,7 +3603,8 @@ var runSummary = defineTool({
|
|
|
3528
3603
|
counts,
|
|
3529
3604
|
...buckets,
|
|
3530
3605
|
diff,
|
|
3531
|
-
releaseVerdict
|
|
3606
|
+
releaseVerdict,
|
|
3607
|
+
memory
|
|
3532
3608
|
};
|
|
3533
3609
|
}
|
|
3534
3610
|
});
|
|
@@ -4333,7 +4409,8 @@ var runSuite = defineTool({
|
|
|
4333
4409
|
projectId: PROJECT_ID13,
|
|
4334
4410
|
suiteId: z16.string().optional(),
|
|
4335
4411
|
caseIds: z16.array(z16.string()).optional(),
|
|
4336
|
-
name: z16.string().optional()
|
|
4412
|
+
name: z16.string().optional(),
|
|
4413
|
+
accountOverrides: ACCOUNT_OVERRIDES
|
|
4337
4414
|
}),
|
|
4338
4415
|
requires: "runTests",
|
|
4339
4416
|
billing: "run",
|
|
@@ -4344,7 +4421,7 @@ var runSuite = defineTool({
|
|
|
4344
4421
|
destructiveHint: false,
|
|
4345
4422
|
openWorldHint: true
|
|
4346
4423
|
},
|
|
4347
|
-
handler: async ({ projectId, suiteId, caseIds, name }, ctx) => {
|
|
4424
|
+
handler: async ({ projectId, suiteId, caseIds, name, accountOverrides }, ctx) => {
|
|
4348
4425
|
const pid = requireProjectId(ctx, projectId);
|
|
4349
4426
|
if (!suiteId && (!caseIds || caseIds.length === 0)) {
|
|
4350
4427
|
throw new Error("Pass either suiteId (from design_test_suite) or a non-empty caseIds list.");
|
|
@@ -4371,7 +4448,8 @@ var runSuite = defineTool({
|
|
|
4371
4448
|
name: name ?? `Suite run (${resolvedCaseIds.length} cases)`,
|
|
4372
4449
|
testCaseIds: resolvedCaseIds,
|
|
4373
4450
|
caseSelectionMode: "select",
|
|
4374
|
-
platform: ctx.defaultPlatform ?? "web"
|
|
4451
|
+
platform: ctx.defaultPlatform ?? "web",
|
|
4452
|
+
...accountOverrides ? { accountOverrides } : {}
|
|
4375
4453
|
});
|
|
4376
4454
|
runId = run.id;
|
|
4377
4455
|
viewUrl = `${ctx.appUrl}/projects/${pid}/runs/${runId}`;
|
|
@@ -5414,6 +5492,12 @@ async function authStatusCommand(opts) {
|
|
|
5414
5492
|
process.stdout.write(
|
|
5415
5493
|
pc3.red(" token: \u2717 not signed in \u2014 run `auracheck login`\n")
|
|
5416
5494
|
);
|
|
5495
|
+
process.stdout.write(
|
|
5496
|
+
pc3.dim(
|
|
5497
|
+
` No account yet? Start free at ${ctx.baseUrl}/sign-up?utm_source=cli
|
|
5498
|
+
`
|
|
5499
|
+
)
|
|
5500
|
+
);
|
|
5417
5501
|
process.exitCode = 1;
|
|
5418
5502
|
return;
|
|
5419
5503
|
}
|
|
@@ -6026,7 +6110,7 @@ var SourceReader = class {
|
|
|
6026
6110
|
};
|
|
6027
6111
|
|
|
6028
6112
|
// src/mcp/server.ts
|
|
6029
|
-
var CLI_VERSION = "0.2.
|
|
6113
|
+
var CLI_VERSION = "0.2.11";
|
|
6030
6114
|
var LOCAL_ALL_CAPABILITIES = [
|
|
6031
6115
|
"viewProject",
|
|
6032
6116
|
"viewReports",
|
|
@@ -6251,10 +6335,13 @@ function logErr(msg) {
|
|
|
6251
6335
|
process.stderr.write(`[auracheck-mcp] ${msg}
|
|
6252
6336
|
`);
|
|
6253
6337
|
}
|
|
6338
|
+
function signUpSentence(baseUrl) {
|
|
6339
|
+
return `No account yet? Start free at ${baseUrl}/sign-up?utm_source=cli`;
|
|
6340
|
+
}
|
|
6254
6341
|
var NotSignedInError = class extends Error {
|
|
6255
6342
|
constructor(baseUrl) {
|
|
6256
6343
|
super(
|
|
6257
|
-
`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
|
|
6344
|
+
`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)}`
|
|
6258
6345
|
);
|
|
6259
6346
|
}
|
|
6260
6347
|
};
|
|
@@ -6466,7 +6553,7 @@ async function runMcpServer(overrides = {}) {
|
|
|
6466
6553
|
}
|
|
6467
6554
|
|
|
6468
6555
|
// src/bin.ts
|
|
6469
|
-
var version = "0.2.
|
|
6556
|
+
var version = "0.2.11";
|
|
6470
6557
|
function invokedCommandName() {
|
|
6471
6558
|
const argv1 = process.argv[1] ?? "";
|
|
6472
6559
|
const base = path5.basename(argv1).replace(/\.(c|m)?js$/, "");
|