@auracheck-ai/cli 0.2.10 → 0.3.0-next.0

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.
@@ -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
  }
@@ -314,8 +318,8 @@ var AuraCheckApi = class {
314
318
  async getRunMemory(runId) {
315
319
  return this.request("GET", `/api/runs/${runId}/memory`);
316
320
  }
317
- async executeRun(runId) {
318
- return this.request("POST", `/api/runs/${runId}/execute`, {});
321
+ async executeRun(runId, opts = {}) {
322
+ return this.request("POST", `/api/runs/${runId}/execute`, opts.accountOverrides ? { accountOverrides: opts.accountOverrides } : {});
319
323
  }
320
324
  async cancelRun(runId) {
321
325
  return this.request("POST", `/api/runs/${runId}/cancel`, {});
@@ -478,6 +482,20 @@ function requireProjectId(ctx, explicit) {
478
482
  }
479
483
 
480
484
  // ../mcp-core/dist/errors.js
485
+ function resetClause(resetsAt) {
486
+ if (!resetsAt)
487
+ return "";
488
+ const d = new Date(resetsAt);
489
+ if (Number.isNaN(d.getTime()))
490
+ return "";
491
+ const day = new Intl.DateTimeFormat("en-GB", {
492
+ day: "numeric",
493
+ month: "short",
494
+ year: "numeric",
495
+ timeZone: "Asia/Jakarta"
496
+ }).format(d);
497
+ return ` It resets on ${day}.`;
498
+ }
481
499
  function parseBody(bodyText) {
482
500
  try {
483
501
  return JSON.parse(bodyText);
@@ -513,7 +531,7 @@ function mapApiError(err, ctx, requiresCapability) {
513
531
  const actionClause = isAdmin ? `Upgrade your plan or buy an AI-run top-up: ${ctx.renewalUrl}` : contact2 ? `Ask ${contactName(contact2)} to upgrade or buy a top-up.` : "Ask your admin to upgrade or buy a top-up.";
514
532
  return {
515
533
  blocked: true,
516
- message: `This month's AI test run quota (${body.limit}/mo) is used up. You can still run this case manually. ${actionClause}`
534
+ message: `The AI test run quota for this period (${body.limit} per month) is used up.${resetClause(body.resetsAt)} You can still run this case manually. ${actionClause}`
517
535
  };
518
536
  }
519
537
  if (body.isCompanyAdmin ?? isCompanyAdminRole(account)) {
@@ -1155,6 +1173,9 @@ function stripSecrets(value, depth = 0) {
1155
1173
  if (depth > MAX_DEPTH || value === null || value === void 0) {
1156
1174
  return value;
1157
1175
  }
1176
+ if (value instanceof Uint8Array) {
1177
+ return value;
1178
+ }
1158
1179
  if (Array.isArray(value)) {
1159
1180
  return value.map((v) => stripSecrets(v, depth + 1));
1160
1181
  }
@@ -1203,12 +1224,23 @@ var accountStatus = defineTool({
1203
1224
  } else if (sub?.inGrace) {
1204
1225
  lines.push(graceNotice(sub.graceEnd ?? null, ctx.renewalUrl));
1205
1226
  } else if (sub && !sub.readOnly && sub.runUsage) {
1206
- lines.push(`Trial: ${sub.daysLeft ?? "?"} days left, ${Math.max(sub.runUsage.dailyLimit - sub.runUsage.dailyCount, 0)} runs left today (${Math.max(sub.runUsage.monthlyLimit - sub.runUsage.monthlyCount, 0)} this month).`);
1227
+ const u = sub.runUsage;
1228
+ 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)` : "";
1229
+ lines.push(`Trial: ${sub.daysLeft ?? "?"} days left, ${Math.max(u.dailyLimit - u.dailyCount, 0)} runs left today${longer}.`);
1207
1230
  } else if (sub?.readOnly) {
1208
1231
  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}`);
1209
1232
  }
1210
1233
  if (account.aiRunQuotaMessage) {
1211
1234
  lines.push(account.aiRunQuotaMessage);
1235
+ } else if (account.aiRuns && account.aiRuns.limit != null) {
1236
+ const a = account.aiRuns;
1237
+ const weight = a.mobileWeight && a.mobileWeight !== 1 ? ` One Android/iOS case = ${a.mobileWeight} AI runs.` : "";
1238
+ 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.` : "";
1239
+ 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.`);
1240
+ }
1241
+ const g = account.generateWithAi;
1242
+ if (g) {
1243
+ 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." : ""}`);
1212
1244
  }
1213
1245
  return {
1214
1246
  user: account.user,
@@ -1216,6 +1248,8 @@ var accountStatus = defineTool({
1216
1248
  isPlatformAdmin: account.isPlatformAdmin,
1217
1249
  companies: account.companies,
1218
1250
  subscription: sub,
1251
+ aiRuns: account.aiRuns ?? null,
1252
+ generateWithAi: account.generateWithAi ?? null,
1219
1253
  projects: account.projects,
1220
1254
  renewalUrl: ctx.renewalUrl,
1221
1255
  minLocalMcp: account.minLocalMcp,
@@ -1501,7 +1535,7 @@ var requestTestAccount = defineTool({
1501
1535
  var listTestAccountRoles = defineTool({
1502
1536
  name: "list_test_account_roles",
1503
1537
  title: "List test account roles",
1504
- description: "List a project's saved Test Account roles (slug, name, which of password/pin/otp are set) \u2014 never the credential values themselves. Use to check whether a role already exists before calling request_test_account, or to poll whether a person finished the secure-link setup it started.",
1538
+ 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).`,
1505
1539
  input: z3.object({ projectId: PROJECT_ID2 }),
1506
1540
  requires: "viewProject",
1507
1541
  billing: "read",
@@ -1517,7 +1551,35 @@ var listTestAccountRoles = defineTool({
1517
1551
  return { roles };
1518
1552
  }
1519
1553
  });
1520
- var CREDENTIAL_TOOLS = [requestTestAccount, listTestAccountRoles];
1554
+ var setTestAccountLabel = defineTool({
1555
+ name: "set_test_account_label",
1556
+ title: "Label a test account",
1557
+ 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.',
1558
+ input: z3.object({
1559
+ projectId: PROJECT_ID2,
1560
+ roleId: z3.string().min(1),
1561
+ accountId: z3.string().min(1),
1562
+ label: z3.string().max(60)
1563
+ }),
1564
+ requires: "manageProjectSetup",
1565
+ billing: "write",
1566
+ surfaces: ["remote", "local"],
1567
+ annotations: {
1568
+ readOnlyHint: false,
1569
+ destructiveHint: false,
1570
+ openWorldHint: false
1571
+ },
1572
+ handler: async ({ projectId, roleId, accountId, label }, ctx) => {
1573
+ const pid = requireProjectId(ctx, projectId);
1574
+ const role = await ctx.api.setTestAccountLabel(pid, roleId, accountId, label.trim() ? label : null);
1575
+ return { role };
1576
+ }
1577
+ });
1578
+ var CREDENTIAL_TOOLS = [
1579
+ requestTestAccount,
1580
+ listTestAccountRoles,
1581
+ setTestAccountLabel
1582
+ ];
1521
1583
 
1522
1584
  // ../mcp-core/dist/tools/exploration.js
1523
1585
  import { z as z4 } from "zod";
@@ -3224,6 +3286,7 @@ var RUN_LOCALLY_TOOLS = [runLocally];
3224
3286
  // ../mcp-core/dist/tools/runs.js
3225
3287
  import { z as z12 } from "zod";
3226
3288
  var PROJECT_ID10 = z12.string().optional().describe("AuraCheck project id (see list_projects). Defaults to the project set for this session.");
3289
+ 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).');
3227
3290
  function runViewUrl3(appUrl, runId, projectId) {
3228
3291
  return projectId ? `${appUrl}/projects/${projectId}/runs/${runId}` : `${appUrl}/runs/${runId}`;
3229
3292
  }
@@ -3268,7 +3331,9 @@ var createRun = defineTool({
3268
3331
  milestoneId: z12.string().optional(),
3269
3332
  tags: z12.array(z12.string()).optional(),
3270
3333
  notes: z12.string().optional(),
3271
- browserEngine: z12.enum(["chrome", "edge"]).optional()
3334
+ browserEngine: z12.enum(["chrome", "edge"]).optional(),
3335
+ accountOverrides: ACCOUNT_OVERRIDES,
3336
+ 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".')
3272
3337
  }),
3273
3338
  requires: "runTests",
3274
3339
  billing: "run",
@@ -3309,7 +3374,10 @@ var startRun = defineTool({
3309
3374
  localAlias: "execute_run",
3310
3375
  title: "Start run",
3311
3376
  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.",
3312
- input: z12.object({ runId: z12.string().min(1) }),
3377
+ input: z12.object({
3378
+ runId: z12.string().min(1),
3379
+ 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.`)
3380
+ }),
3313
3381
  requires: "runTests",
3314
3382
  billing: "run",
3315
3383
  surfaces: ["remote", "local"],
@@ -3320,7 +3388,7 @@ var startRun = defineTool({
3320
3388
  destructiveHint: false,
3321
3389
  openWorldHint: true
3322
3390
  },
3323
- handler: async ({ runId }, ctx) => {
3391
+ handler: async ({ runId, accountOverrides }, ctx) => {
3324
3392
  try {
3325
3393
  const run = await ctx.api.getRun(runId).catch(() => null);
3326
3394
  if (run) {
@@ -3329,7 +3397,7 @@ var startRun = defineTool({
3329
3397
  if (blocked)
3330
3398
  return blocked;
3331
3399
  }
3332
- return await ctx.api.executeRun(runId);
3400
+ return await (accountOverrides ? ctx.api.executeRun(runId, { accountOverrides }) : ctx.api.executeRun(runId));
3333
3401
  } catch (err) {
3334
3402
  if (err instanceof ApiError) {
3335
3403
  const answer = runFromDesktopAnswer(err, runId) ?? // ACTIVATION-1: setup (URL/test account/login) isn't ready yet.
@@ -4350,7 +4418,8 @@ var runSuite = defineTool({
4350
4418
  projectId: PROJECT_ID13,
4351
4419
  suiteId: z16.string().optional(),
4352
4420
  caseIds: z16.array(z16.string()).optional(),
4353
- name: z16.string().optional()
4421
+ name: z16.string().optional(),
4422
+ accountOverrides: ACCOUNT_OVERRIDES
4354
4423
  }),
4355
4424
  requires: "runTests",
4356
4425
  billing: "run",
@@ -4361,7 +4430,7 @@ var runSuite = defineTool({
4361
4430
  destructiveHint: false,
4362
4431
  openWorldHint: true
4363
4432
  },
4364
- handler: async ({ projectId, suiteId, caseIds, name }, ctx) => {
4433
+ handler: async ({ projectId, suiteId, caseIds, name, accountOverrides }, ctx) => {
4365
4434
  const pid = requireProjectId(ctx, projectId);
4366
4435
  if (!suiteId && (!caseIds || caseIds.length === 0)) {
4367
4436
  throw new Error("Pass either suiteId (from design_test_suite) or a non-empty caseIds list.");
@@ -4388,7 +4457,8 @@ var runSuite = defineTool({
4388
4457
  name: name ?? `Suite run (${resolvedCaseIds.length} cases)`,
4389
4458
  testCaseIds: resolvedCaseIds,
4390
4459
  caseSelectionMode: "select",
4391
- platform: ctx.defaultPlatform ?? "web"
4460
+ platform: ctx.defaultPlatform ?? "web",
4461
+ ...accountOverrides ? { accountOverrides } : {}
4392
4462
  });
4393
4463
  runId = run.id;
4394
4464
  viewUrl = `${ctx.appUrl}/projects/${pid}/runs/${runId}`;
@@ -5310,7 +5380,7 @@ var SourceReader = class {
5310
5380
  };
5311
5381
 
5312
5382
  // src/mcp/server.ts
5313
- var CLI_VERSION = "0.2.10";
5383
+ var CLI_VERSION = "0.3.0-next.0";
5314
5384
  var LOCAL_ALL_CAPABILITIES = [
5315
5385
  "viewProject",
5316
5386
  "viewReports",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auracheck-ai/cli",
3
- "version": "0.2.10",
3
+ "version": "0.3.0-next.0",
4
4
  "description": "AuraCheck CLI + MCP server for AI-driven whitebox testcase generation",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -17,23 +17,29 @@
17
17
  "claude-code",
18
18
  "ai-testing"
19
19
  ],
20
- "homepage": "https://gitlab.sprout.co.id/sixseven/sixseven-ai/tree/main/packages/cli",
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",
27
+ "schema",
34
28
  "README.md",
35
- "USAGE.md"
29
+ "USAGE.md",
30
+ "LICENSE",
31
+ "NOTICE"
36
32
  ],
33
+ "scripts": {
34
+ "build": "tsup && chmod +x dist/bin.js",
35
+ "dev": "tsup --watch",
36
+ "start": "node dist/bin.js",
37
+ "typecheck": "tsc -p tsconfig.json --noEmit",
38
+ "prepack": "pnpm run build",
39
+ "test": "vitest --run",
40
+ "test:watch": "vitest",
41
+ "schema": "tsx scripts/gen-schema.ts"
42
+ },
37
43
  "publishConfig": {
38
44
  "access": "public"
39
45
  },
@@ -43,27 +49,21 @@
43
49
  "picocolors": "^1.1.1",
44
50
  "prompts": "^2.4.2",
45
51
  "undici": "^7.28.0",
52
+ "yaml": "^2.9.1",
46
53
  "zod": "^3.25.0",
47
54
  "zod-to-json-schema": "^3.25.2"
48
55
  },
49
56
  "devDependencies": {
57
+ "@auracheck-ai/mcp-apps-ui": "workspace:*",
58
+ "@auracheck-ai/mcp-core": "workspace:*",
50
59
  "@types/node": "^18.0.0",
51
60
  "@types/prompts": "^2.4.9",
52
61
  "tsup": "^8.3.5",
62
+ "tsx": "^4.19.2",
53
63
  "typescript": "^5.8.3",
54
- "vitest": "3.0.5",
55
- "@auracheck-ai/mcp-core": "0.1.0",
56
- "@auracheck-ai/mcp-apps-ui": "0.1.0"
64
+ "vitest": "3.0.5"
57
65
  },
58
66
  "engines": {
59
67
  "node": ">=18.19.0"
60
- },
61
- "scripts": {
62
- "build": "tsup && chmod +x dist/bin.js",
63
- "dev": "tsup --watch",
64
- "start": "node dist/bin.js",
65
- "typecheck": "tsc -p tsconfig.json --noEmit",
66
- "test": "vitest --run",
67
- "test:watch": "vitest"
68
68
  }
69
- }
69
+ }
@@ -0,0 +1,295 @@
1
+ {
2
+ "$id": "https://unpkg.com/@auracheck-ai/cli/schema/auracheck.schema.json",
3
+ "title": "AuraCheck PR review config",
4
+ "type": "object",
5
+ "properties": {
6
+ "language": {
7
+ "type": "string",
8
+ "default": "en",
9
+ "description": "Language of the review prose, e.g. \"en\" or \"id\"."
10
+ },
11
+ "tone_instructions": {
12
+ "type": "string",
13
+ "maxLength": 250,
14
+ "description": "Extra instructions for the tone of the review comments."
15
+ },
16
+ "reviews": {
17
+ "type": "object",
18
+ "properties": {
19
+ "profile": {
20
+ "type": "string",
21
+ "enum": ["quiet", "chill", "assertive"],
22
+ "default": "chill",
23
+ "description": "quiet: only likely bugs and security; chill: balanced; assertive: also nitpicks."
24
+ },
25
+ "high_level_summary": {
26
+ "type": "boolean",
27
+ "default": true,
28
+ "description": "Write the \"what this MR changes\" summary into the MR description in place of the placeholder."
29
+ },
30
+ "high_level_summary_placeholder": {
31
+ "type": "string",
32
+ "default": "@auracheck summary",
33
+ "description": "Text in the MR description that the summary replaces (once; later runs update the block)."
34
+ },
35
+ "changed_files_summary": {
36
+ "type": "boolean",
37
+ "default": true
38
+ },
39
+ "estimate_code_review_effort": {
40
+ "type": "boolean",
41
+ "default": true
42
+ },
43
+ "assess_linked_issues": {
44
+ "type": "boolean",
45
+ "default": true
46
+ },
47
+ "collapse_walkthrough": {
48
+ "type": "boolean",
49
+ "default": false
50
+ },
51
+ "commit_status": {
52
+ "type": "boolean",
53
+ "default": true,
54
+ "description": "Set an \"AuraCheck review\" commit status on the MR head."
55
+ },
56
+ "fail_commit_status": {
57
+ "type": "boolean",
58
+ "default": false,
59
+ "description": "Mark that commit status failed when the review errors."
60
+ },
61
+ "enable_prompt_for_ai_agents": {
62
+ "type": "boolean",
63
+ "default": true
64
+ },
65
+ "max_inline_comments": {
66
+ "type": "integer",
67
+ "minimum": 0,
68
+ "maximum": 50,
69
+ "default": 8,
70
+ "description": "At most this many inline discussions per run."
71
+ },
72
+ "path_filters": {
73
+ "type": "array",
74
+ "items": {
75
+ "type": "string"
76
+ },
77
+ "default": [],
78
+ "description": "Globs. \"!glob\" excludes matching files; plain globs keep only matching files."
79
+ },
80
+ "path_instructions": {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "object",
84
+ "properties": {
85
+ "path": {
86
+ "type": "string"
87
+ },
88
+ "instructions": {
89
+ "type": "string"
90
+ }
91
+ },
92
+ "required": ["path", "instructions"],
93
+ "additionalProperties": true
94
+ },
95
+ "default": []
96
+ },
97
+ "merge_risk_instructions": {
98
+ "type": "string"
99
+ },
100
+ "security_risk_instructions": {
101
+ "type": "string"
102
+ },
103
+ "auto_review": {
104
+ "type": "object",
105
+ "properties": {
106
+ "enabled": {
107
+ "type": "boolean",
108
+ "default": true
109
+ },
110
+ "auto_incremental_review": {
111
+ "type": "boolean",
112
+ "default": true,
113
+ "description": "Review only the files changed since the last reviewed commit."
114
+ },
115
+ "drafts": {
116
+ "type": "boolean",
117
+ "default": false
118
+ },
119
+ "base_branches": {
120
+ "type": "array",
121
+ "items": {
122
+ "type": "string"
123
+ },
124
+ "default": [],
125
+ "description": "Regexes of target branches to review besides the default branch."
126
+ },
127
+ "ignore_title_keywords": {
128
+ "type": "array",
129
+ "items": {
130
+ "type": "string"
131
+ },
132
+ "default": ["[skip review]"]
133
+ },
134
+ "labels": {
135
+ "type": "array",
136
+ "items": {
137
+ "type": "string"
138
+ },
139
+ "default": [],
140
+ "description": "\"!label\" skips MRs with that label; plain entries review only MRs with one of them."
141
+ },
142
+ "ignore_usernames": {
143
+ "type": "array",
144
+ "items": {
145
+ "type": "string"
146
+ },
147
+ "default": []
148
+ }
149
+ },
150
+ "additionalProperties": true,
151
+ "default": {}
152
+ },
153
+ "pre_merge_checks": {
154
+ "type": "object",
155
+ "properties": {
156
+ "title": {
157
+ "type": "object",
158
+ "properties": {
159
+ "mode": {
160
+ "type": "string",
161
+ "enum": ["off", "warning", "error"],
162
+ "default": "warning"
163
+ },
164
+ "requirements": {
165
+ "type": "string",
166
+ "description": "A regex the title must match, written as /pattern/flags or starting with ^."
167
+ }
168
+ },
169
+ "additionalProperties": true,
170
+ "default": {}
171
+ },
172
+ "description": {
173
+ "type": "object",
174
+ "properties": {
175
+ "mode": {
176
+ "type": "string",
177
+ "enum": ["off", "warning", "error"],
178
+ "default": "warning"
179
+ }
180
+ },
181
+ "additionalProperties": true,
182
+ "default": {}
183
+ },
184
+ "issue_assessment": {
185
+ "type": "object",
186
+ "properties": {
187
+ "mode": {
188
+ "type": "string",
189
+ "enum": ["off", "warning", "error"],
190
+ "default": "warning"
191
+ }
192
+ },
193
+ "additionalProperties": true,
194
+ "default": {}
195
+ }
196
+ },
197
+ "additionalProperties": true,
198
+ "default": {}
199
+ },
200
+ "tools": {
201
+ "type": "object",
202
+ "properties": {
203
+ "biome": {
204
+ "type": "object",
205
+ "properties": {
206
+ "enabled": {
207
+ "type": "boolean",
208
+ "default": true
209
+ }
210
+ },
211
+ "additionalProperties": true,
212
+ "default": {}
213
+ },
214
+ "eslint": {
215
+ "type": "object",
216
+ "properties": {
217
+ "enabled": {
218
+ "type": "boolean",
219
+ "default": true
220
+ }
221
+ },
222
+ "additionalProperties": true,
223
+ "default": {}
224
+ },
225
+ "gitleaks": {
226
+ "type": "object",
227
+ "properties": {
228
+ "enabled": {
229
+ "type": "boolean",
230
+ "default": true
231
+ }
232
+ },
233
+ "additionalProperties": true,
234
+ "default": {}
235
+ },
236
+ "osv": {
237
+ "type": "object",
238
+ "properties": {
239
+ "enabled": {
240
+ "type": "boolean",
241
+ "default": true
242
+ }
243
+ },
244
+ "additionalProperties": true,
245
+ "default": {}
246
+ }
247
+ },
248
+ "additionalProperties": true,
249
+ "default": {}
250
+ }
251
+ },
252
+ "additionalProperties": true,
253
+ "default": {}
254
+ },
255
+ "knowledge_base": {
256
+ "type": "object",
257
+ "properties": {
258
+ "opt_out": {
259
+ "type": "boolean",
260
+ "default": false,
261
+ "description": "Keep nothing beyond usage counters on the server."
262
+ },
263
+ "code_guidelines": {
264
+ "type": "object",
265
+ "properties": {
266
+ "enabled": {
267
+ "type": "boolean",
268
+ "default": true
269
+ },
270
+ "file_patterns": {
271
+ "type": "array",
272
+ "items": {
273
+ "type": "string"
274
+ },
275
+ "default": [
276
+ "AGENTS.md",
277
+ "CLAUDE.md",
278
+ "CONTRIBUTING.md",
279
+ ".cursorrules",
280
+ ".github/copilot-instructions.md"
281
+ ]
282
+ }
283
+ },
284
+ "additionalProperties": true,
285
+ "default": {}
286
+ }
287
+ },
288
+ "additionalProperties": true,
289
+ "default": {}
290
+ }
291
+ },
292
+ "additionalProperties": true,
293
+ "description": "AuraCheck PR review configuration (.auracheck.yaml)",
294
+ "$schema": "http://json-schema.org/draft-07/schema#"
295
+ }