@auracheck-ai/cli 0.2.8 → 0.2.9
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/bin.js +11 -9
- package/dist/bin.js.map +1 -1
- package/dist/mcp/server.js +10 -8
- package/dist/mcp/server.js.map +1 -1
- package/package.json +3 -3
package/dist/mcp/server.js
CHANGED
|
@@ -169,8 +169,8 @@ var AuraCheckApi = class {
|
|
|
169
169
|
const { accounts } = await this.request("GET", `/api/projects/${projectId}/test-accounts`);
|
|
170
170
|
return accounts;
|
|
171
171
|
}
|
|
172
|
-
async createTestAccountLink(projectId, role) {
|
|
173
|
-
return this.request("POST", `/api/projects/${projectId}/test-accounts/mcp-link`, { role });
|
|
172
|
+
async createTestAccountLink(projectId, role, addToPool) {
|
|
173
|
+
return this.request("POST", `/api/projects/${projectId}/test-accounts/mcp-link`, { role, ...addToPool ? { addToPool: true } : {} });
|
|
174
174
|
}
|
|
175
175
|
// --- Features ---
|
|
176
176
|
async listFeatures(projectId) {
|
|
@@ -1456,11 +1456,12 @@ var PROJECT_ID2 = z3.string().optional().describe("AuraCheck project id (see lis
|
|
|
1456
1456
|
var requestTestAccount = defineTool({
|
|
1457
1457
|
name: "request_test_account",
|
|
1458
1458
|
title: "Request test account",
|
|
1459
|
-
description: 'Ask the person to enter real sign-in credentials for a role (e.g. "standard_user", "admin") on AuraCheck\u2019s own secure page \u2014 never in this chat. Returns a short-lived link (15 min). The credentials never pass through you: they go straight into AuraCheck\u2019s encrypted Test Accounts store, referenced in steps as {{accounts.<slug>.*}}. Call
|
|
1459
|
+
description: 'Ask the person to enter real sign-in credentials for a role (e.g. "standard_user", "admin") on AuraCheck\u2019s own secure page \u2014 never in this chat. Returns a short-lived link (15 min). The credentials never pass through you: they go straight into AuraCheck\u2019s encrypted Test Accounts store, referenced in steps as {{accounts.<slug>.*}}. Call list_test_account_roles first to check whether a matching role already exists (test_my_flow and create_testcase already do this for you). If it DOES exist and you want a login-heavy suite to spread its cases across more than one account instead of queueing them all behind one, call this with addToPool:true instead of skipping it \u2014 it mints a link that ADDS another account to that role instead of replacing it.',
|
|
1460
1460
|
input: z3.object({
|
|
1461
1461
|
projectId: PROJECT_ID2,
|
|
1462
1462
|
role: z3.string().min(1).max(80).describe('A short name for who is logging in, e.g. "standard_user", "admin", "buyer". Becomes the Test Account\u2019s name/slug.'),
|
|
1463
|
-
loginUrl: z3.string().url().optional().describe("The page this account signs into, shown to the person for context.")
|
|
1463
|
+
loginUrl: z3.string().url().optional().describe("The page this account signs into, shown to the person for context."),
|
|
1464
|
+
addToPool: z3.boolean().optional().describe("True when `role` already has credentials and you want ONE MORE account added to its pool (so a cloud run can lease a different one per case), not a fresh setup. Check with list_test_account_roles first.")
|
|
1464
1465
|
}),
|
|
1465
1466
|
requires: "manageProjectSetup",
|
|
1466
1467
|
billing: "write",
|
|
@@ -1470,16 +1471,17 @@ var requestTestAccount = defineTool({
|
|
|
1470
1471
|
destructiveHint: false,
|
|
1471
1472
|
openWorldHint: false
|
|
1472
1473
|
},
|
|
1473
|
-
handler: async ({ projectId, role, loginUrl }, ctx) => {
|
|
1474
|
+
handler: async ({ projectId, role, loginUrl, addToPool }, ctx) => {
|
|
1474
1475
|
const pid = requireProjectId(ctx, projectId);
|
|
1475
|
-
const { url, expiresAt } = await ctx.api.createTestAccountLink(pid, role);
|
|
1476
|
+
const { url, expiresAt } = await ctx.api.createTestAccountLink(pid, role, addToPool);
|
|
1476
1477
|
return {
|
|
1477
1478
|
url,
|
|
1478
1479
|
expiresAt,
|
|
1479
1480
|
role,
|
|
1480
1481
|
projectId: pid,
|
|
1481
1482
|
loginUrl: loginUrl ?? null,
|
|
1482
|
-
|
|
1483
|
+
addToPool: !!addToPool,
|
|
1484
|
+
instructions: addToPool ? `Open this link, enter ANOTHER ${role} sign-in on AuraCheck's own page (adds to the pool, doesn't replace the existing one), save it, then tell me "done": ${url}` : `Open this link, enter the ${role} sign-in on AuraCheck's own page, save it, then tell me "done": ${url}`,
|
|
1483
1485
|
note: `The person's username/password/PIN/OTP never passes through this conversation \u2014 they're entered directly on AuraCheck and stored encrypted. Once they say "done", retry with the matching {{accounts.*}} placeholder (test_my_flow / create_testcase will pick it up automatically).`
|
|
1484
1486
|
};
|
|
1485
1487
|
}
|
|
@@ -5283,7 +5285,7 @@ var SourceReader = class {
|
|
|
5283
5285
|
};
|
|
5284
5286
|
|
|
5285
5287
|
// src/mcp/server.ts
|
|
5286
|
-
var CLI_VERSION = "0.2.
|
|
5288
|
+
var CLI_VERSION = "0.2.9";
|
|
5287
5289
|
var LOCAL_ALL_CAPABILITIES = [
|
|
5288
5290
|
"viewProject",
|
|
5289
5291
|
"viewReports",
|