@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/bin.js
CHANGED
|
@@ -177,8 +177,8 @@ var AuraCheckApi = class {
|
|
|
177
177
|
const { accounts } = await this.request("GET", `/api/projects/${projectId}/test-accounts`);
|
|
178
178
|
return accounts;
|
|
179
179
|
}
|
|
180
|
-
async createTestAccountLink(projectId, role) {
|
|
181
|
-
return this.request("POST", `/api/projects/${projectId}/test-accounts/mcp-link`, { role });
|
|
180
|
+
async createTestAccountLink(projectId, role, addToPool) {
|
|
181
|
+
return this.request("POST", `/api/projects/${projectId}/test-accounts/mcp-link`, { role, ...addToPool ? { addToPool: true } : {} });
|
|
182
182
|
}
|
|
183
183
|
// --- Features ---
|
|
184
184
|
async listFeatures(projectId) {
|
|
@@ -1464,11 +1464,12 @@ var PROJECT_ID2 = z3.string().optional().describe("AuraCheck project id (see lis
|
|
|
1464
1464
|
var requestTestAccount = defineTool({
|
|
1465
1465
|
name: "request_test_account",
|
|
1466
1466
|
title: "Request test account",
|
|
1467
|
-
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
|
|
1467
|
+
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.',
|
|
1468
1468
|
input: z3.object({
|
|
1469
1469
|
projectId: PROJECT_ID2,
|
|
1470
1470
|
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.'),
|
|
1471
|
-
loginUrl: z3.string().url().optional().describe("The page this account signs into, shown to the person for context.")
|
|
1471
|
+
loginUrl: z3.string().url().optional().describe("The page this account signs into, shown to the person for context."),
|
|
1472
|
+
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.")
|
|
1472
1473
|
}),
|
|
1473
1474
|
requires: "manageProjectSetup",
|
|
1474
1475
|
billing: "write",
|
|
@@ -1478,16 +1479,17 @@ var requestTestAccount = defineTool({
|
|
|
1478
1479
|
destructiveHint: false,
|
|
1479
1480
|
openWorldHint: false
|
|
1480
1481
|
},
|
|
1481
|
-
handler: async ({ projectId, role, loginUrl }, ctx) => {
|
|
1482
|
+
handler: async ({ projectId, role, loginUrl, addToPool }, ctx) => {
|
|
1482
1483
|
const pid = requireProjectId(ctx, projectId);
|
|
1483
|
-
const { url, expiresAt } = await ctx.api.createTestAccountLink(pid, role);
|
|
1484
|
+
const { url, expiresAt } = await ctx.api.createTestAccountLink(pid, role, addToPool);
|
|
1484
1485
|
return {
|
|
1485
1486
|
url,
|
|
1486
1487
|
expiresAt,
|
|
1487
1488
|
role,
|
|
1488
1489
|
projectId: pid,
|
|
1489
1490
|
loginUrl: loginUrl ?? null,
|
|
1490
|
-
|
|
1491
|
+
addToPool: !!addToPool,
|
|
1492
|
+
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}`,
|
|
1491
1493
|
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).`
|
|
1492
1494
|
};
|
|
1493
1495
|
}
|
|
@@ -6024,7 +6026,7 @@ var SourceReader = class {
|
|
|
6024
6026
|
};
|
|
6025
6027
|
|
|
6026
6028
|
// src/mcp/server.ts
|
|
6027
|
-
var CLI_VERSION = "0.2.
|
|
6029
|
+
var CLI_VERSION = "0.2.9";
|
|
6028
6030
|
var LOCAL_ALL_CAPABILITIES = [
|
|
6029
6031
|
"viewProject",
|
|
6030
6032
|
"viewReports",
|
|
@@ -6464,7 +6466,7 @@ async function runMcpServer(overrides = {}) {
|
|
|
6464
6466
|
}
|
|
6465
6467
|
|
|
6466
6468
|
// src/bin.ts
|
|
6467
|
-
var version = "0.2.
|
|
6469
|
+
var version = "0.2.9";
|
|
6468
6470
|
function invokedCommandName() {
|
|
6469
6471
|
const argv1 = process.argv[1] ?? "";
|
|
6470
6472
|
const base = path5.basename(argv1).replace(/\.(c|m)?js$/, "");
|