@aisdlc/core 4.5.2 → 4.7.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.
package/dist/index.cjs CHANGED
@@ -1198,30 +1198,61 @@ var DEFAULT_TEST_ARTIFACT_PATTERNS = [
1198
1198
  "**/*.feature",
1199
1199
  ...DEFAULT_UNIT_TEST_PATTERNS
1200
1200
  ];
1201
- var DEFAULT_UI_COMPONENT_PATTERNS = [
1202
- "**/components/**",
1203
- "**/views/**",
1204
- "**/pages/**",
1205
- "**/screens/**",
1206
- "**/windows/**",
1207
- "**/dialogs/**",
1208
- "**/tui/**",
1209
- "**/widgets/**",
1201
+ var WEB_UI_COMPONENT_PATTERNS = [
1210
1202
  "**/*.tsx",
1211
1203
  "**/*.jsx",
1212
1204
  "**/*.vue",
1213
1205
  "**/*.svelte",
1206
+ "**/*.component.ts",
1207
+ "**/*.razor",
1208
+ "**/*.cshtml",
1209
+ "**/components/**",
1210
+ "**/views/**",
1211
+ "**/pages/**",
1212
+ "**/widgets/**"
1213
+ ];
1214
+ var DESKTOP_UI_COMPONENT_PATTERNS = [
1214
1215
  "**/*Window.cs",
1215
1216
  "**/*View.cs",
1216
1217
  "**/*Form.cs",
1217
1218
  "**/*Dialog.cs",
1218
1219
  "**/*Page.cs",
1219
1220
  "**/*UserControl.cs",
1221
+ "**/*.xaml",
1222
+ "**/*.axaml",
1223
+ "**/*.xaml.cs",
1224
+ "**/*.axaml.cs",
1225
+ "**/windows/**",
1226
+ "**/dialogs/**"
1227
+ ];
1228
+ var CONSOLE_UI_COMPONENT_PATTERNS = [
1229
+ "**/tui/**",
1230
+ "**/cli/**",
1231
+ "**/commands/**",
1232
+ "**/console/**",
1233
+ "**/*Command.ts",
1234
+ "**/*Command.js",
1235
+ "**/*Command.cs",
1236
+ "**/*Command.py",
1237
+ "**/*Cli.ts",
1238
+ "**/*Cli.cs"
1239
+ ];
1240
+ var MOBILE_UI_COMPONENT_PATTERNS = [
1220
1241
  "**/*Screen.kt",
1221
1242
  "**/*Activity.kt",
1222
1243
  "**/*Fragment.kt",
1223
1244
  "**/*ViewController.swift",
1224
- "**/*Screen.dart"
1245
+ "**/*View.swift",
1246
+ "**/*Screen.dart",
1247
+ "**/*Page.dart",
1248
+ "**/*Widget.dart",
1249
+ "**/screens/**"
1250
+ ];
1251
+ var DEFAULT_UI_COMPONENT_PATTERNS = [
1252
+ ...WEB_UI_COMPONENT_PATTERNS,
1253
+ ...DESKTOP_UI_COMPONENT_PATTERNS,
1254
+ ...CONSOLE_UI_COMPONENT_PATTERNS,
1255
+ ...MOBILE_UI_COMPONENT_PATTERNS
1225
1256
  ];
1226
1257
  var DEFAULT_UI_TEST_PATTERNS = [
1227
1258
  "tests/e2e/**",
@@ -1229,19 +1260,39 @@ var DEFAULT_UI_TEST_PATTERNS = [
1229
1260
  "tests/desktop/**",
1230
1261
  "tests/mobile/**",
1231
1262
  "tests/cli/**",
1263
+ "tests/console/**",
1264
+ "**/tests/e2e/**",
1265
+ "**/tests/ui/**",
1266
+ "**/tests/desktop/**",
1267
+ "**/tests/mobile/**",
1268
+ "**/tests/cli/**",
1269
+ "**/tests/console/**",
1270
+ "**/cli/tests/**",
1271
+ "**/*.e2e.*",
1232
1272
  "**/*.e2e.ts",
1233
1273
  "**/*.e2e.js",
1234
- "**/*.ui.spec.ts",
1235
- "**/*.ui.test.ts",
1236
- "**/*UiTest.cs",
1237
- "**/*UITest.cs",
1274
+ "**/*.ui.spec.*",
1275
+ "**/*.ui.test.*",
1276
+ "**/*.cli.spec.*",
1277
+ "**/*.cli.test.*",
1278
+ "**/*-cli.spec.*",
1279
+ "**/*-cli.test.*",
1280
+ "**/*Playwright*.*",
1281
+ "**/*FlaUI*.cs",
1282
+ "**/*UiTest*.cs",
1283
+ "**/*UITest*.cs",
1238
1284
  "**/*UiTests.cs",
1239
1285
  "**/*UITests.cs",
1240
- "**/*FlaUI*.cs",
1286
+ "**/*CliTest*.*",
1287
+ "**/*ConsoleTest*.*",
1288
+ "**/*MobileTest*.*",
1289
+ "**/*WidgetTest*.dart",
1241
1290
  "**/*E2ETest.java",
1242
1291
  "**/*UITest.swift",
1292
+ "**/*_ui_test.py",
1243
1293
  "**/test_ui_*.py",
1244
- "**/*_ui_test.py"
1294
+ "**/test_cli_*.py",
1295
+ "**/*_cli_test.py"
1245
1296
  ];
1246
1297
  function escapeRegexChars(raw) {
1247
1298
  return raw.replace(/[.+^${}()|[\]\\]/g, "\\$&");
@@ -1286,18 +1337,138 @@ function compilePatternList(patterns) {
1286
1337
  }
1287
1338
  };
1288
1339
  }
1289
- var NON_COMPONENT_UI_FILES = /(?:^|\/)(?:index|types|constants|styles|main|app|setup)\.[jt]sx?$/i;
1340
+ var NON_COMPONENT_UI_FILES = /(?:^|\/)(?:index|types|constants|styles|main|app|setup|cli)\.[jt]sx?$/i;
1341
+ var MODALITY_PRECEDENCE_RULES = [
1342
+ // Tier 1A: Unambiguous Web extensions/suffixes
1343
+ {
1344
+ modality: "web",
1345
+ matcher: compilePatternList([
1346
+ "**/*.tsx",
1347
+ "**/*.jsx",
1348
+ "**/*.vue",
1349
+ "**/*.svelte",
1350
+ "**/*.component.ts",
1351
+ "**/*.razor",
1352
+ "**/*.cshtml"
1353
+ ])
1354
+ },
1355
+ // Tier 1B: Unambiguous Desktop extensions/suffixes
1356
+ {
1357
+ modality: "desktop",
1358
+ matcher: compilePatternList([
1359
+ "**/*.xaml",
1360
+ "**/*.axaml",
1361
+ "**/*.xaml.cs",
1362
+ "**/*.axaml.cs",
1363
+ "**/*Window.cs",
1364
+ "**/*View.cs",
1365
+ "**/*Form.cs",
1366
+ "**/*Dialog.cs",
1367
+ "**/*Page.cs",
1368
+ "**/*UserControl.cs"
1369
+ ])
1370
+ },
1371
+ // Tier 1C: Unambiguous Mobile extensions
1372
+ {
1373
+ modality: "mobile",
1374
+ matcher: compilePatternList(["**/*.kt", "**/*.swift", "**/*.dart"])
1375
+ },
1376
+ // Tier 1D: Unambiguous Console suffixes
1377
+ {
1378
+ modality: "console",
1379
+ matcher: compilePatternList([
1380
+ "**/*Command.ts",
1381
+ "**/*Command.js",
1382
+ "**/*Command.cs",
1383
+ "**/*Command.py",
1384
+ "**/*Cli.ts",
1385
+ "**/*Cli.cs"
1386
+ ])
1387
+ },
1388
+ // Tier 2: Directory globs for generic extensions
1389
+ {
1390
+ modality: "console",
1391
+ matcher: compilePatternList(["**/tui/**", "**/cli/**", "**/commands/**", "**/console/**"])
1392
+ },
1393
+ {
1394
+ modality: "desktop",
1395
+ matcher: compilePatternList(["**/windows/**", "**/dialogs/**"])
1396
+ },
1397
+ {
1398
+ modality: "mobile",
1399
+ matcher: compilePatternList(["**/screens/**"])
1400
+ },
1401
+ {
1402
+ modality: "web",
1403
+ matcher: compilePatternList(["**/components/**", "**/views/**", "**/pages/**", "**/widgets/**"])
1404
+ }
1405
+ ];
1406
+ var MODALITY_DRIVER_SIGNATURES = {
1407
+ web: /(?:@playwright\/test|\bplaywright\b|\bpage\.(?:goto|locator|getByRole|getByText|getByTestId|getByLabel|click|fill|waitForSelector)\b|\bexpect\(\s*(?:page|locator)\b|\bcypress\b|\bcy\.(?:visit|get|contains|intercept)\b|\brender\s*\(|\bscreen\.(?:getBy|findBy|queryBy)\w*|\bfireEvent\b|\buserEvent\b|\bTestBed\b|\bbUnit\b|\bRenderComponent\b)/,
1408
+ desktop: /(?:\bFlaUI\b|\bUIA3Automation\b|\bUIA2Automation\b|\bApplication\.Launch\b|\bFindFirstDescendant\b|\bAsButton\b|\bAsTextBox\b|\bMainWindowHandle\b|\bWinAppDriver\b|\bWindowsDriver\b|\bAvalonia\.Headless\b|\bAutomationElement\b)/,
1409
+ console: /(?:\bspawn\b|\bspawnSync\b|\bexecFile\b|\bexecFileSync\b|\bexecSync\b|(?<!\.)\bexec\s*\(|\bchild_process\b|\bSpectre\.Console\.Testing\b|\bCommandAppTester\b|\bCliRunner\b|\bclick\.testing\b|\bnode-pty\b|\bpty\b|\bprocess\.stdout\b|\bprocess\.stderr\b|\bConsole\.SetOut\b|\bspyOn\(\s*console\s*,|\bconsole\.(?:log|error|warn)\s*=|\b(?:run|execute)[A-Z]\w*\s*\()/,
1410
+ mobile: /(?:\bWidgetTester\b|\btestWidgets\b|\bfind\.by\w+\b|\btester\.(?:tap|pump|pumpWidget|enterText)\b|\bXCUIApplication\b|\bEspresso\b|\bonView\s*\(|\bcomposeTestRule\b|\bAppium\b|\bMaestro\b|\bappId\s*:|\btapOn\s*:|\bassertVisible\s*:|\bDetox\b|\bdevice\.(?:launchApp|reloadReactNative)\b|\belement\(\s*by\.)/
1411
+ };
1412
+ var DEFAULT_UI_COMPONENT_MATCHER = compilePatternList(DEFAULT_UI_COMPONENT_PATTERNS);
1413
+ var DEFAULT_UI_TEST_MATCHER = compilePatternList(DEFAULT_UI_TEST_PATTERNS);
1414
+ var QUOTE_CHARS = /* @__PURE__ */ new Set(["'", '"', "`"]);
1415
+ function isHashCommentStart(line, idx) {
1416
+ if (line[idx] !== "#") return false;
1417
+ return idx === 0 || line[idx - 1] === " " || line[idx - 1] === " ";
1418
+ }
1419
+ function stripLineHashComment(line) {
1420
+ let quote = "";
1421
+ for (let i = 0; i < line.length; i++) {
1422
+ const ch = line[i];
1423
+ if (quote) {
1424
+ if (ch === "\\") {
1425
+ i++;
1426
+ } else if (ch === quote) {
1427
+ quote = "";
1428
+ }
1429
+ continue;
1430
+ }
1431
+ if (QUOTE_CHARS.has(ch)) {
1432
+ quote = ch;
1433
+ continue;
1434
+ }
1435
+ if (isHashCommentStart(line, i)) return line.slice(0, i);
1436
+ }
1437
+ return line;
1438
+ }
1439
+ function detectUiComponentModality(filePath) {
1440
+ const norm = filePath.replace(/\\/g, "/").replace(/^\.\//, "");
1441
+ for (const rule of MODALITY_PRECEDENCE_RULES) {
1442
+ if (rule.matcher.matches(norm)) return rule.modality;
1443
+ }
1444
+ return null;
1445
+ }
1446
+ function inferFallbackUiModality(filePath) {
1447
+ const lower = filePath.replace(/\\/g, "/").toLowerCase();
1448
+ if (/\.(?:a?xaml(?:\.cs)?|cs)$/.test(lower)) return "desktop";
1449
+ if (/\.(?:py|go|rs)$/.test(lower)) return "console";
1450
+ if (/\.(?:kt|swift|dart)$/.test(lower)) return "mobile";
1451
+ return "web";
1452
+ }
1453
+ function stripTestComments(content) {
1454
+ const withoutBlockAndSlash = content.replace(/\/\*[\s\S]*?\*\//g, " ").replace(/<!--[\s\S]*?-->/g, " ").replace(/(?<!:)\/\/[^\r\n]*/g, " ");
1455
+ return withoutBlockAndSlash.split("\n").map(stripLineHashComment).join("\n");
1456
+ }
1457
+ function hasModalityDriverSignature(content, modality) {
1458
+ const cleaned = stripTestComments(content);
1459
+ return MODALITY_DRIVER_SIGNATURES[modality].test(cleaned);
1460
+ }
1290
1461
  function isUiComponentFile(filePath, customPatterns) {
1291
1462
  const norm = filePath.replace(/\\/g, "/").replace(/^\.\//, "");
1292
1463
  if (isPolyglotUnitTestFile(norm) || norm.endsWith(".d.ts") || NON_COMPONENT_UI_FILES.test(norm)) {
1293
1464
  return false;
1294
1465
  }
1295
- const patterns = customPatterns && customPatterns.length > 0 ? customPatterns : DEFAULT_UI_COMPONENT_PATTERNS;
1296
- return compilePatternList(patterns).matches(norm);
1466
+ const matcher = customPatterns && customPatterns.length > 0 ? compilePatternList(customPatterns) : DEFAULT_UI_COMPONENT_MATCHER;
1467
+ return matcher.matches(norm);
1297
1468
  }
1298
1469
  function isUiTestFile(filePath, customPatterns) {
1299
- const patterns = customPatterns && customPatterns.length > 0 ? [...DEFAULT_UI_TEST_PATTERNS, ...customPatterns] : DEFAULT_UI_TEST_PATTERNS;
1300
- return compilePatternList(patterns).matches(filePath);
1470
+ const matcher = customPatterns && customPatterns.length > 0 ? compilePatternList([...DEFAULT_UI_TEST_PATTERNS, ...customPatterns]) : DEFAULT_UI_TEST_MATCHER;
1471
+ return matcher.matches(filePath);
1301
1472
  }
1302
1473
  var BddStepRegistry = class {
1303
1474
  definitions = [];
@@ -2809,7 +2980,9 @@ function createDefaultQualityPolicy() {
2809
2980
  enforce_mode: "STRICT",
2810
2981
  target_directories: ["src", "lib"],
2811
2982
  supported_extensions: [...DEFAULT_EXTENSIONS],
2812
- exclude_patterns: [...DEFAULT_EXCLUDES]
2983
+ exclude_patterns: [...DEFAULT_EXCLUDES],
2984
+ require_ui_component_tests: true,
2985
+ verify_ui_driver_signatures: true
2813
2986
  };
2814
2987
  }
2815
2988
  function appendUniqueStrings(target, raw) {
@@ -2858,6 +3031,9 @@ function applyTestEnforcement(policy, raw) {
2858
3031
  if (typeof enf.require_ui_component_tests === "boolean") {
2859
3032
  policy.require_ui_component_tests = enf.require_ui_component_tests;
2860
3033
  }
3034
+ if (typeof enf.verify_ui_driver_signatures === "boolean") {
3035
+ policy.verify_ui_driver_signatures = enf.verify_ui_driver_signatures;
3036
+ }
2861
3037
  if (Array.isArray(enf.ui_component_patterns)) {
2862
3038
  policy.ui_component_patterns = enf.ui_component_patterns.map(String);
2863
3039
  }
@@ -3155,6 +3331,10 @@ function auditUnitTestsPerFunction(results, rootDir, testPatterns) {
3155
3331
  }
3156
3332
  var UI_COMPONENT_EXTENSIONS = [
3157
3333
  ...DEFAULT_EXTENSIONS,
3334
+ ".razor",
3335
+ ".cshtml",
3336
+ ".xaml",
3337
+ ".axaml",
3158
3338
  ".vue",
3159
3339
  ".svelte",
3160
3340
  ".kt",
@@ -3181,28 +3361,37 @@ function collectUiTestFiles(rootDir, customPatterns) {
3181
3361
  }
3182
3362
  function extractUiComponentName(relPath) {
3183
3363
  const base = path14__namespace.basename(relPath);
3184
- return base.replace(/\.(?:xaml\.cs|component\.ts|vue|svelte|tsx?|jsx?|py|cs|java|kt|swift|dart)$/i, "");
3364
+ return base.replace(/\.(?:a?xaml\.cs|component\.ts|razor|cshtml|a?xaml|vue|svelte|tsx?|jsx?|py|cs|java|kt|swift|dart)$/i, "");
3185
3365
  }
3186
3366
  function buildComponentNameVariants(componentName) {
3187
3367
  const kebab = componentName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
3188
3368
  const snake = kebab.replace(/-/g, "_");
3189
3369
  return Array.from(/* @__PURE__ */ new Set([componentName, kebab, snake]));
3190
3370
  }
3191
- function isUiComponentTested(componentName, uiTests) {
3371
+ function isUiComponentTested(componentName, uiTests, modality, verifyDriverSignatures = true) {
3192
3372
  const variants = buildComponentNameVariants(componentName);
3193
3373
  const patterns = variants.map((v) => new RegExp(`\\b${v.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}\\b`, "i"));
3194
- return uiTests.some((t) => patterns.some((re) => re.test(t.relPath) || re.test(t.content)));
3374
+ return uiTests.some((t) => {
3375
+ const cleaned = stripTestComments(t.content);
3376
+ if (!patterns.some((re) => re.test(cleaned))) return false;
3377
+ if (verifyDriverSignatures && modality) {
3378
+ return hasModalityDriverSignature(cleaned, modality);
3379
+ }
3380
+ return true;
3381
+ });
3195
3382
  }
3196
- function auditUiComponents(rootDir, policy) {
3383
+ function auditUiComponents(rootDir, policy, verifyDriverOverride) {
3197
3384
  const uiPolicy = { ...policy, supported_extensions: [...UI_COMPONENT_EXTENSIONS] };
3198
3385
  const candidateFiles = collectFilesToScan(rootDir, uiPolicy);
3199
3386
  const uiTests = collectUiTestFiles(rootDir, policy.ui_test_patterns);
3387
+ const verifyDriver = verifyDriverOverride ?? policy.verify_ui_driver_signatures ?? true;
3200
3388
  const untested = [];
3201
3389
  for (const file of candidateFiles) {
3202
3390
  const relPath = path14__namespace.relative(rootDir, file).replace(/\\/g, "/");
3203
3391
  if (!isUiComponentFile(relPath, policy.ui_component_patterns)) continue;
3204
3392
  const componentName = extractUiComponentName(relPath);
3205
- if (!isUiComponentTested(componentName, uiTests)) {
3393
+ const modality = detectUiComponentModality(relPath) ?? inferFallbackUiModality(relPath);
3394
+ if (!isUiComponentTested(componentName, uiTests, modality, verifyDriver)) {
3206
3395
  untested.push({ file: relPath, componentName });
3207
3396
  }
3208
3397
  }
@@ -3393,7 +3582,7 @@ function verifyQualityGate(options = {}) {
3393
3582
  const requireUnitTests = Boolean(options.requireFunctionUnitTests ?? policy.require_function_unit_tests);
3394
3583
  const requireUiTests = Boolean(options.requireUiComponentTests ?? policy.require_ui_component_tests);
3395
3584
  const untestedFunctions = requireUnitTests ? auditUnitTestsPerFunction(results, rootDir, policy.test_patterns) : [];
3396
- const untestedUiComponents = requireUiTests ? auditUiComponents(rootDir, policy) : [];
3585
+ const untestedUiComponents = requireUiTests ? auditUiComponents(rootDir, policy, options.verifyUiDriverSignatures) : [];
3397
3586
  const requireCoverageReport = options.requireCoverageReport ?? policy.enforce_mode === "STRICT";
3398
3587
  const coverageViolations = evaluateCoverageThresholds(rootDir, policy, requireCoverageReport);
3399
3588
  const baselineFile = resolveBaselineFilePath(rootDir, options);
@@ -14084,11 +14273,18 @@ function verifyPrivacy(options = {}) {
14084
14273
  writePrivacyOutputsIfNeeded(result, options, policy, rootDir);
14085
14274
  return result;
14086
14275
  }
14276
+ var VALID_REASONING_EFFORTS = /* @__PURE__ */ new Set(["low", "medium", "high", "max"]);
14277
+ function normalizeReasoningEffort(raw) {
14278
+ if (!raw) return void 0;
14279
+ const normalized = raw.trim().toLowerCase();
14280
+ return VALID_REASONING_EFFORTS.has(normalized) ? normalized : void 0;
14281
+ }
14087
14282
  var TRAILER_REGEXES = {
14088
14283
  taskId: /^\s*Task-ID:\s*(.+)$/im,
14089
14284
  parentRef: /^\s*Parent-Ref:\s*(.+)$/im,
14090
14285
  authorType: /^\s*Author-Type:\s*(human|agent)/im,
14091
14286
  aiModel: /^\s*AI-Model:\s*(.+)$/im,
14287
+ reasoningEffort: /^[ \t]*AI-Reasoning-Effort:[ \t]*([^\r\n]+)$/im,
14092
14288
  promptTokens: /^\s*Prompt-Tokens:\s*([0-9]+)/im,
14093
14289
  completionTokens: /^\s*Completion-Tokens:\s*([0-9]+)/im,
14094
14290
  activeTimeSeconds: /^\s*Active-Time-Seconds:\s*([0-9]+)/im
@@ -14119,11 +14315,14 @@ function parseCommitTrailers(rawMessage) {
14119
14315
  const authorType = resolveAuthorType(authorTypeMatch, aiModelMatch);
14120
14316
  const rawModel = aiModelMatch ? aiModelMatch[1].trim() : void 0;
14121
14317
  const aiModel = rawModel && rawModel !== "n/a" ? rawModel : void 0;
14318
+ const effortMatch = text.match(TRAILER_REGEXES.reasoningEffort);
14319
+ const reasoningEffort = normalizeReasoningEffort(effortMatch ? effortMatch[1] : void 0);
14122
14320
  return {
14123
14321
  taskId: resolveTrailerOrScope(text.match(TRAILER_REGEXES.taskId), text, /\b(TSK-[0-9A-Za-z_-]+)\b/i),
14124
14322
  parentRef: resolveTrailerOrScope(text.match(TRAILER_REGEXES.parentRef), text, /\b((?:CHG|FEAT|BUG|FIX|PATCH)-[0-9A-Za-z_-]+)\b/i),
14125
14323
  authorType,
14126
14324
  aiModel,
14325
+ reasoningEffort,
14127
14326
  promptTokens: parseTrailerInt(text.match(TRAILER_REGEXES.promptTokens)),
14128
14327
  completionTokens: parseTrailerInt(text.match(TRAILER_REGEXES.completionTokens)),
14129
14328
  activeTimeSeconds: parseTrailerInt(text.match(TRAILER_REGEXES.activeTimeSeconds))
@@ -14135,6 +14334,8 @@ function formatCommitTrailers(trailers) {
14135
14334
  if (trailers.parentRef) lines.push(`Parent-Ref: ${trailers.parentRef}`);
14136
14335
  lines.push(`Author-Type: ${trailers.authorType || "human"}`);
14137
14336
  lines.push(`AI-Model: ${trailers.aiModel || "n/a"}`);
14337
+ const normalizedEffort = normalizeReasoningEffort(trailers.reasoningEffort);
14338
+ if (normalizedEffort) lines.push(`AI-Reasoning-Effort: ${normalizedEffort}`);
14138
14339
  lines.push(`Prompt-Tokens: ${trailers.promptTokens ?? 0}`);
14139
14340
  lines.push(`Completion-Tokens: ${trailers.completionTokens ?? 0}`);
14140
14341
  lines.push(`Active-Time-Seconds: ${trailers.activeTimeSeconds ?? 0}`);
@@ -14357,6 +14558,12 @@ function accumulateAuthorSummaries(records, humanSummary, byModel) {
14357
14558
  const modelName = record.trailers.aiModel || "agent-generic";
14358
14559
  if (!byModel[modelName]) byModel[modelName] = createEmptySummary();
14359
14560
  accumulateRecord(byModel[modelName], record);
14561
+ const effortKey = record.trailers.reasoningEffort || "unspecified";
14562
+ if (!byModel[modelName].byEffort) byModel[modelName].byEffort = {};
14563
+ if (!byModel[modelName].byEffort[effortKey]) {
14564
+ byModel[modelName].byEffort[effortKey] = createEmptySummary();
14565
+ }
14566
+ accumulateRecord(byModel[modelName].byEffort[effortKey], record);
14360
14567
  } else {
14361
14568
  accumulateRecord(humanSummary, record);
14362
14569
  }
@@ -15201,9 +15408,9 @@ function checkoutTaskBranch(taskId, options = {}) {
15201
15408
  }
15202
15409
  }
15203
15410
  var AGENT_ENV_MAPPINGS = [
15204
- { envKey: "ANTIGRAVITY_AGENT", defaultModel: "gemini-3.8-flash", source: "antigravity" },
15205
- { envKey: "ANTIGRAVITY_CONVERSATION_ID", defaultModel: "gemini-3.8-flash", source: "antigravity" },
15206
- { envKey: "ANTIGRAVITY_AGENT_ID", defaultModel: "gemini-3.8-flash", source: "antigravity" },
15411
+ { envKey: "ANTIGRAVITY_AGENT", defaultModel: "antigravity-agent", source: "antigravity" },
15412
+ { envKey: "ANTIGRAVITY_CONVERSATION_ID", defaultModel: "antigravity-agent", source: "antigravity" },
15413
+ { envKey: "ANTIGRAVITY_AGENT_ID", defaultModel: "antigravity-agent", source: "antigravity" },
15207
15414
  { envKey: "CORTEX_SESSION_ID", defaultModel: "antigravity-agent", source: "cortex" },
15208
15415
  { envKey: "CLAUDE_CODE", defaultModel: "claude-3-7-sonnet", source: "claude-code" },
15209
15416
  { envKey: "CLAUDE_AGENT", defaultModel: "claude-3-7-sonnet", source: "claude-agent" },
@@ -15287,8 +15494,8 @@ function detectFromGitConfig(cwd) {
15287
15494
  }
15288
15495
  return null;
15289
15496
  }
15290
- function detectFromTelemetry(cwd, env) {
15291
- const telemetry = readSessionTelemetry(cwd);
15497
+ function detectFromTelemetry(cwd, env, preloaded) {
15498
+ const telemetry = preloaded !== void 0 ? preloaded : readSessionTelemetry(cwd);
15292
15499
  if (telemetry) {
15293
15500
  const model = telemetry.model || env.AI_MODEL || "agent-developer";
15294
15501
  return {
@@ -15343,10 +15550,14 @@ function detectFromSignature(env, cwd) {
15343
15550
  }
15344
15551
  return null;
15345
15552
  }
15553
+ function resolveAgentReasoningEffort(cwd, env, telemetry) {
15554
+ return normalizeReasoningEffort(env.AI_REASONING_EFFORT) ?? normalizeReasoningEffort(telemetry?.reasoningEffort) ?? normalizeReasoningEffort(getGitConfigValue("ai-sdlc.reasoning-effort", cwd));
15555
+ }
15346
15556
  function detectAuthorIdentity(options = {}) {
15347
15557
  const env = options.env || process.env;
15348
15558
  const cwd = options.cwd || process.cwd();
15349
- return detectFromEnvOverride(env) || detectFromGitConfig(cwd) || detectFromTelemetry(cwd, env) || detectFromAgentEnv(env) || detectFromSignature(env, cwd) || {
15559
+ const telemetry = readSessionTelemetry(cwd);
15560
+ const identity = detectFromEnvOverride(env) || detectFromGitConfig(cwd) || detectFromTelemetry(cwd, env, telemetry) || detectFromAgentEnv(env) || detectFromSignature(env, cwd) || {
15350
15561
  authorType: "human",
15351
15562
  model: "n/a",
15352
15563
  source: "default-human",
@@ -15355,6 +15566,11 @@ function detectAuthorIdentity(options = {}) {
15355
15566
  completionTokens: 0,
15356
15567
  activeTimeSeconds: 0
15357
15568
  };
15569
+ if (identity.authorType !== "agent") {
15570
+ return identity;
15571
+ }
15572
+ const reasoningEffort = resolveAgentReasoningEffort(cwd, env, telemetry);
15573
+ return reasoningEffort ? { ...identity, reasoningEffort } : identity;
15358
15574
  }
15359
15575
  var PRE_COMMIT_SCRIPT = `#!/usr/bin/env bash
15360
15576
  # ==============================================================================
@@ -15442,24 +15658,33 @@ AI_MODEL_NAME="n/a"
15442
15658
  PROMPT_TOKENS=0
15443
15659
  COMPLETION_TOKENS=0
15444
15660
  ACTIVE_TIME_SEC=0
15661
+ REASONING_EFFORT=""
15445
15662
 
15446
15663
  # Execute universal IDE-agnostic author detection engine
15447
- DETECTED=$(node packages/cli/bin/aisdlc.js git detect-author 2>/dev/null || npx aisdlc git detect-author 2>/dev/null || node -e "try { const { detectAuthorIdentity } = require('@aisdlc/core'); const id = detectAuthorIdentity(); console.log([id.authorType, id.model, id.promptTokens, id.completionTokens, id.activeTimeSeconds].join('|')); } catch {}" 2>/dev/null || echo "")
15664
+ DETECTED=$(node packages/cli/bin/aisdlc.js git detect-author 2>/dev/null || npx aisdlc git detect-author 2>/dev/null || node -e "try { const { detectAuthorIdentity } = require('@aisdlc/core'); const id = detectAuthorIdentity(); console.log([id.authorType, id.model, id.promptTokens, id.completionTokens, id.activeTimeSeconds, id.reasoningEffort || ''].join('|')); } catch {}" 2>/dev/null || echo "")
15448
15665
 
15449
15666
  if [ -n "$DETECTED" ]; then
15450
- IFS='|' read -r DET_AUTHOR DET_MODEL DET_PROMPT DET_COMPL DET_TIME <<< "$DETECTED"
15667
+ IFS='|' read -r DET_AUTHOR DET_MODEL DET_PROMPT DET_COMPL DET_TIME DET_EFFORT <<< "$DETECTED"
15451
15668
  AUTHOR_TYPE="\${DET_AUTHOR:-$AUTHOR_TYPE}"
15452
15669
  AI_MODEL_NAME="\${DET_MODEL:-$AI_MODEL_NAME}"
15453
15670
  PROMPT_TOKENS="\${DET_PROMPT:-$PROMPT_TOKENS}"
15454
15671
  COMPLETION_TOKENS="\${DET_COMPL:-$COMPLETION_TOKENS}"
15455
15672
  ACTIVE_TIME_SEC="\${DET_TIME:-$ACTIVE_TIME_SEC}"
15673
+ REASONING_EFFORT="\${DET_EFFORT:-$AI_REASONING_EFFORT}"
15456
15674
  else
15457
15675
  if [ -n "$AI_MODEL" ] || [ -n "$AI_AGENT_NAME" ] || [ -n "$ANTIGRAVITY_AGENT" ] || [ -n "$ANTIGRAVITY_AGENT_ID" ] || [ -n "$ANTIGRAVITY_CONVERSATION_ID" ] || [ -n "$CLAUDE_CODE" ] || [ -n "$CURSOR_AGENT" ] || [ -n "$WINDSURF_AGENT" ] || [ -n "$AIDER_MODEL" ] || [ -f "$TELEMETRY_FILE" ]; then
15458
15676
  AUTHOR_TYPE="agent"
15459
15677
  AI_MODEL_NAME="\${AI_MODEL:-\${AI_AGENT_NAME:-\${AIDER_MODEL:-agent-developer}}}"
15678
+ REASONING_EFFORT="\${AI_REASONING_EFFORT:-}"
15460
15679
  fi
15461
15680
  fi
15462
15681
 
15682
+ REASONING_EFFORT=$(printf '%s' "$REASONING_EFFORT" | tr -d '\\r[:space:]' | tr '[:upper:]' '[:lower:]')
15683
+ case "$REASONING_EFFORT" in
15684
+ low|medium|high|max) ;;
15685
+ *) REASONING_EFFORT="" ;;
15686
+ esac
15687
+
15463
15688
  # Estimate tokens and active time if not provided for agent
15464
15689
  if [ "$PROMPT_TOKENS" = "0" ] && [ "$AUTHOR_TYPE" = "agent" ]; then
15465
15690
  CHG_LINES=$(git diff --cached --shortstat 2>/dev/null | grep -oE '[0-9]+ (insertion|deletion)' | awk '{s+=$1} END {print s+0}')
@@ -15493,6 +15718,10 @@ if [ "$AUTHOR_TYPE" = "agent" ] && ! grep -qE "^AI-Model:" "$COMMIT_MSG_FILE" 2>
15493
15718
  TRAILERS_TO_ADD="\${TRAILERS_TO_ADD}AI-Model: $AI_MODEL_NAME
15494
15719
  "
15495
15720
  fi
15721
+ if [ "$AUTHOR_TYPE" = "agent" ] && [ -n "$REASONING_EFFORT" ] && ! grep -qiE "^AI-Reasoning-Effort:" "$COMMIT_MSG_FILE" 2>/dev/null; then
15722
+ TRAILERS_TO_ADD="\${TRAILERS_TO_ADD}AI-Reasoning-Effort: $REASONING_EFFORT
15723
+ "
15724
+ fi
15496
15725
  if ! grep -qE "^Prompt-Tokens:" "$COMMIT_MSG_FILE" 2>/dev/null; then
15497
15726
  TRAILERS_TO_ADD="\${TRAILERS_TO_ADD}Prompt-Tokens: $PROMPT_TOKENS
15498
15727
  "
@@ -17590,9 +17819,13 @@ var DASHBOARD_CLIENT_SCRIPT = `
17590
17819
  var tableBranchLabel = document.getElementById('table-branch-label');
17591
17820
  if (tableBranchLabel) tableBranchLabel.textContent = isTotal ? 'Totalizador (Todas las ramas)' : branchKey;
17592
17821
 
17822
+ var escHtml = function(s) {
17823
+ return String(s).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
17824
+ };
17825
+
17593
17826
  var badgeElem = document.getElementById('telemetry-badge-container');
17594
17827
  if (badgeElem) {
17595
- badgeElem.innerHTML = '<span class="badge" style="background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid #38bdf8; font-size: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 4px;">' + badgeText + '</span>';
17828
+ badgeElem.innerHTML = '<span class="badge" style="background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid #38bdf8; font-size: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 4px;">' + escHtml(badgeText) + '</span>';
17596
17829
  }
17597
17830
 
17598
17831
  var elCommits = document.getElementById('card-commits');
@@ -17620,6 +17853,7 @@ var DASHBOARD_CLIENT_SCRIPT = `
17620
17853
  html += '<tr>' +
17621
17854
  '<td><strong>Human (Developer)</strong></td>' +
17622
17855
  '<td><span class="badge" style="background:#334155;">HUMAN</span></td>' +
17856
+ '<td>\u2014</td>' +
17623
17857
  '<td>' + data.humanSummary.commits + '</td>' +
17624
17858
  '<td>+' + data.humanSummary.linesAdded + ' / -' + data.humanSummary.linesDeleted + '</td>' +
17625
17859
  '<td>' + Math.round(data.humanSummary.activeTimeSeconds / 60) + 'm</td>' +
@@ -17627,24 +17861,42 @@ var DASHBOARD_CLIENT_SCRIPT = `
17627
17861
  '</tr>';
17628
17862
  }
17629
17863
  if (data.byModel) {
17864
+ var effortOrder = { low: 0, medium: 1, high: 2, max: 3, unspecified: 4 };
17865
+ var renderRow = function(safeModel, effortKey, s) {
17866
+ var safeEffort = escHtml(effortKey);
17867
+ return '<tr>' +
17868
+ '<td><strong><code>' + safeModel + '</code></strong></td>' +
17869
+ '<td><span class="badge badge-green">AGENT</span></td>' +
17870
+ '<td><span class="badge" style="background:#334155;">' + safeEffort + '</span></td>' +
17871
+ '<td>' + s.commits + '</td>' +
17872
+ '<td>+' + s.linesAdded + ' / -' + s.linesDeleted + '</td>' +
17873
+ '<td>' + Math.round(s.activeTimeSeconds / 60) + 'm</td>' +
17874
+ '<td>' + (s.promptTokens + s.completionTokens).toLocaleString('en-US') + '</td>' +
17875
+ '<td>$' + Number(s.estimatedCostUsd).toFixed(2) + '</td>' +
17876
+ '</tr>';
17877
+ };
17630
17878
  var models = Object.keys(data.byModel);
17631
17879
  for (var i = 0; i < models.length; i++) {
17632
17880
  var m = models[i];
17633
17881
  var summary = data.byModel[m];
17634
- var safeModel = String(m).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
17635
- html += '<tr>' +
17636
- '<td><strong><code>' + safeModel + '</code></strong></td>' +
17637
- '<td><span class="badge badge-green">AGENT</span></td>' +
17638
- '<td>' + summary.commits + '</td>' +
17639
- '<td>+' + summary.linesAdded + ' / -' + summary.linesDeleted + '</td>' +
17640
- '<td>' + Math.round(summary.activeTimeSeconds / 60) + 'm</td>' +
17641
- '<td>' + (summary.promptTokens + summary.completionTokens).toLocaleString('en-US') + '</td>' +
17642
- '<td>$' + Number(summary.estimatedCostUsd).toFixed(2) + '</td>' +
17643
- '</tr>';
17882
+ var safeModel = escHtml(m);
17883
+ var effortKeys = summary.byEffort ? Object.keys(summary.byEffort) : [];
17884
+ if (effortKeys.length === 0) {
17885
+ html += renderRow(safeModel, 'unspecified', summary);
17886
+ } else {
17887
+ effortKeys.sort(function(a, b) {
17888
+ var oa = effortOrder.hasOwnProperty(a) ? effortOrder[a] : 99;
17889
+ var ob = effortOrder.hasOwnProperty(b) ? effortOrder[b] : 99;
17890
+ return oa !== ob ? oa - ob : a.localeCompare(b);
17891
+ });
17892
+ for (var j = 0; j < effortKeys.length; j++) {
17893
+ html += renderRow(safeModel, effortKeys[j], summary.byEffort[effortKeys[j]]);
17894
+ }
17895
+ }
17644
17896
  }
17645
17897
  }
17646
17898
  html += '<tr style="font-weight: bold; background: rgba(255,255,255,0.05);">' +
17647
- '<td>' + (isTotal ? 'TOTAL REPOSITORIO' : 'TOTAL RAMA') + '</td><td>\u2014</td>' +
17899
+ '<td>' + (isTotal ? 'TOTAL REPOSITORIO' : 'TOTAL RAMA') + '</td><td>\u2014</td><td>\u2014</td>' +
17648
17900
  '<td>' + data.totalCommits + '</td>' +
17649
17901
  '<td>+' + data.linesAdded + ' / -' + data.linesDeleted + '</td>' +
17650
17902
  '<td>' + Math.round(data.totalActiveTimeSeconds / 60) + 'm</td>' +
@@ -18088,11 +18340,20 @@ function renderTelemetryCardsHtml(kpi, displayLabel = "Totalizador") {
18088
18340
  `</div>`
18089
18341
  ].join("\n");
18090
18342
  }
18091
- function renderModelRow(model, summary) {
18343
+ var EFFORT_ORDER = { low: 0, medium: 1, high: 2, max: 3, unspecified: 4 };
18344
+ function sortEffortEntries(entries) {
18345
+ return [...entries].sort(([a], [b]) => {
18346
+ const oa = EFFORT_ORDER[a] ?? 99;
18347
+ const ob = EFFORT_ORDER[b] ?? 99;
18348
+ return oa !== ob ? oa - ob : a.localeCompare(b);
18349
+ });
18350
+ }
18351
+ function renderModelEffortRow(model, effort, summary) {
18092
18352
  return [
18093
18353
  `<tr>`,
18094
- ` <td><strong><code>${model}</code></strong></td>`,
18354
+ ` <td><strong><code>${escapeHtml(model)}</code></strong></td>`,
18095
18355
  ` <td><span class="badge badge-green">AGENT</span></td>`,
18356
+ ` <td><span class="badge" style="background:#334155;">${escapeHtml(effort)}</span></td>`,
18096
18357
  ` <td>${summary.commits}</td>`,
18097
18358
  ` <td>+${summary.linesAdded} / -${summary.linesDeleted}</td>`,
18098
18359
  ` <td>${Math.round(summary.activeTimeSeconds / 60)}m</td>`,
@@ -18101,12 +18362,20 @@ function renderModelRow(model, summary) {
18101
18362
  `</tr>`
18102
18363
  ].join("");
18103
18364
  }
18365
+ function renderModelRows(model, summary) {
18366
+ const effortEntries = summary.byEffort ? Object.entries(summary.byEffort) : [];
18367
+ if (effortEntries.length === 0) {
18368
+ return renderModelEffortRow(model, "unspecified", summary);
18369
+ }
18370
+ return sortEffortEntries(effortEntries).map(([effort, effortSummary]) => renderModelEffortRow(model, effort, effortSummary)).join("\n");
18371
+ }
18104
18372
  function renderHumanTelemetryRow(human) {
18105
18373
  if (human.commits <= 0) return "";
18106
18374
  return [
18107
18375
  `<tr>`,
18108
18376
  ` <td><strong>Human (Developer)</strong></td>`,
18109
18377
  ` <td><span class="badge" style="background:#334155;">HUMAN</span></td>`,
18378
+ ` <td>\u2014</td>`,
18110
18379
  ` <td>${human.commits}</td>`,
18111
18380
  ` <td>+${human.linesAdded} / -${human.linesDeleted}</td>`,
18112
18381
  ` <td>${Math.round(human.activeTimeSeconds / 60)}m</td>`,
@@ -18121,20 +18390,20 @@ function renderTotalBranchRow(kpi, isTotal = false) {
18121
18390
  const label = isTotal ? "TOTAL REPOSITORIO" : "TOTAL RAMA";
18122
18391
  return [
18123
18392
  `<tr style="font-weight: bold; background: rgba(255,255,255,0.05);">`,
18124
- ` <td>${label}</td><td>\u2014</td><td>${kpi.totalCommits}</td><td>+${kpi.linesAdded} / -${kpi.linesDeleted}</td>`,
18393
+ ` <td>${label}</td><td>\u2014</td><td>\u2014</td><td>${kpi.totalCommits}</td><td>+${kpi.linesAdded} / -${kpi.linesDeleted}</td>`,
18125
18394
  ` <td>${mins}m</td><td>${tokens}</td><td>$${cost} USD</td>`,
18126
18395
  `</tr>`
18127
18396
  ].join("");
18128
18397
  }
18129
- function renderTelemetryTable(kpi, displayLabel) {
18398
+ function renderModelTelemetryTable(kpi, displayLabel) {
18130
18399
  const humanRow = renderHumanTelemetryRow(kpi.humanSummary);
18131
- const modelRows = Object.entries(kpi.byModel).map(([m, s]) => renderModelRow(m, s)).join("\n");
18400
+ const modelRows = Object.entries(kpi.byModel).map(([m, s]) => renderModelRows(m, s)).join("\n");
18132
18401
  const totalRow = renderTotalBranchRow(kpi, displayLabel === "Totalizador");
18133
18402
  const titleLabel = "Totalizador (Todas las ramas)" ;
18134
18403
  return [
18135
18404
  `<div class="chart-container">`,
18136
18405
  ` <h3>Telemetry Breakdown by Author and Model (<span id="table-branch-label">${escapeHtml(titleLabel)}</span>)</h3>`,
18137
- ` <table class="data-table"><thead><tr><th>Entity / Model</th><th>Type</th><th>Commits</th><th>Lines (+/-)</th><th>Active Time</th><th>Consumed Tokens</th><th>Estimated Cost ($ USD)</th></tr></thead><tbody id="telemetry-table-tbody">`,
18406
+ ` <table class="data-table"><thead><tr><th>Entity / Model</th><th>Type</th><th>Reasoning Effort</th><th>Commits</th><th>Lines (+/-)</th><th>Active Time</th><th>Consumed Tokens</th><th>Estimated Cost ($ USD)</th></tr></thead><tbody id="telemetry-table-tbody">`,
18138
18407
  humanRow,
18139
18408
  modelRows,
18140
18409
  totalRow,
@@ -18145,7 +18414,7 @@ function renderTelemetryTable(kpi, displayLabel) {
18145
18414
  function renderActiveTelemetrySection(kpi, displayLabel, branches, activeBranch) {
18146
18415
  const filterBarHtml = renderTelemetryFilterBarHtml(branches, activeBranch);
18147
18416
  const cardsHtml = renderTelemetryCardsHtml(kpi, displayLabel);
18148
- const tableHtml = renderTelemetryTable(kpi, displayLabel);
18417
+ const tableHtml = renderModelTelemetryTable(kpi, displayLabel);
18149
18418
  return `${filterBarHtml}
18150
18419
  ${cardsHtml}
18151
18420
  ${tableHtml}`;
@@ -19373,10 +19642,11 @@ This file defines the operational rules and specialized role mappings for Google
19373
19642
 
19374
19643
  ## 3. Git 4-Tier Hierarchy and Commit Conventions
19375
19644
  - \`task/<PARENT-ID>/<TSK-ID>-<slug>\` $\\rightarrow$ \`feat/<FEAT-ID>-<slug>\` $\\rightarrow$ \`release/vX.Y.Z\` $\\rightarrow$ \`main\`.
19376
- - Mandatory commit trailers injection:
19645
+ - Mandatory commit trailers injection (always declare your actual active model in \`AI-Model:\` or via \`AI_MODEL=<active-model>\` when running \`git commit\`, so the hook does not fall back to a generic IDE identifier like \`antigravity-agent\`, and include \`AI-Reasoning-Effort: <low|medium|high|max>\` or \`AI_REASONING_EFFORT=<level>\` when applicable):
19377
19646
  \`\`\`text
19378
19647
  Author-Type: agent
19379
- AI-Model: gemini-1.5-pro / gemini-2.0-flash
19648
+ AI-Model: <active-model>
19649
+ AI-Reasoning-Effort: <low|medium|high|max>
19380
19650
  Task-ID: TSK-XXX
19381
19651
  Change-ID: CHG-XXX
19382
19652
  \`\`\`
@@ -19628,6 +19898,7 @@ Body explaining the motivation and technical justification of the change.
19628
19898
 
19629
19899
  Author-Type: agent
19630
19900
  AI-Model: claude-3-7-sonnet
19901
+ AI-Reasoning-Effort: high
19631
19902
  Task-ID: TSK-001
19632
19903
  Change-ID: CHG-026-AGENT-NATIVE-CONFIGS
19633
19904
  \`\`\`
@@ -24864,6 +25135,7 @@ exports.AisdlcVersionCheck = AisdlcVersionCheck;
24864
25135
  exports.BRANCH_PATTERNS = BRANCH_PATTERNS;
24865
25136
  exports.BddStepRegistry = BddStepRegistry;
24866
25137
  exports.BranchSafetyCheck = BranchSafetyCheck;
25138
+ exports.CONSOLE_UI_COMPONENT_PATTERNS = CONSOLE_UI_COMPONENT_PATTERNS;
24867
25139
  exports.CPP_CLANG_TIDY = CPP_CLANG_TIDY;
24868
25140
  exports.CPP_CMAKE_STRICT = CPP_CMAKE_STRICT;
24869
25141
  exports.DEFAULT_DLP_RULES = DEFAULT_DLP_RULES;
@@ -24877,6 +25149,7 @@ exports.DEFAULT_TEST_ARTIFACT_PATTERNS = DEFAULT_TEST_ARTIFACT_PATTERNS;
24877
25149
  exports.DEFAULT_UI_COMPONENT_PATTERNS = DEFAULT_UI_COMPONENT_PATTERNS;
24878
25150
  exports.DEFAULT_UI_TEST_PATTERNS = DEFAULT_UI_TEST_PATTERNS;
24879
25151
  exports.DEFAULT_UNIT_TEST_PATTERNS = DEFAULT_UNIT_TEST_PATTERNS;
25152
+ exports.DESKTOP_UI_COMPONENT_PATTERNS = DESKTOP_UI_COMPONENT_PATTERNS;
24880
25153
  exports.DOTNET_DIRECTORY_BUILD_PROPS = DOTNET_DIRECTORY_BUILD_PROPS;
24881
25154
  exports.DiffDetector = DiffDetector;
24882
25155
  exports.DlpSanitizer = DlpSanitizer;
@@ -24898,6 +25171,7 @@ exports.LIFECYCLE_SKILL_TEMPLATES = LIFECYCLE_SKILL_TEMPLATES;
24898
25171
  exports.MAX_SARIF_BYTES = MAX_SARIF_BYTES;
24899
25172
  exports.MAX_SARIF_JSON_DEPTH = MAX_SARIF_JSON_DEPTH;
24900
25173
  exports.MAX_SARIF_RESULTS = MAX_SARIF_RESULTS;
25174
+ exports.MOBILE_UI_COMPONENT_PATTERNS = MOBILE_UI_COMPONENT_PATTERNS;
24901
25175
  exports.MigrationOrchestrator = MigrationOrchestrator;
24902
25176
  exports.MigrationReporter = MigrationReporter;
24903
25177
  exports.MigrationService = MigrationService;
@@ -25065,6 +25339,7 @@ exports.VALID_AUTONOMY_MODES = VALID_AUTONOMY_MODES;
25065
25339
  exports.VALID_CHANGE_PROFILES = VALID_CHANGE_PROFILES;
25066
25340
  exports.VALID_CI_PROVIDERS = VALID_CI_PROVIDERS;
25067
25341
  exports.VALID_CODING_RULE_STACKS = VALID_CODING_RULE_STACKS;
25342
+ exports.WEB_UI_COMPONENT_PATTERNS = WEB_UI_COMPONENT_PATTERNS;
25068
25343
  exports.WIN_CMD_META_RE = WIN_CMD_META_RE;
25069
25344
  exports.accumulateTaskSummaries = accumulateTaskSummaries;
25070
25345
  exports.aggregateCommitKpiRecords = aggregateCommitKpiRecords;
@@ -25113,6 +25388,7 @@ exports.detectProfileFromChange = detectProfileFromChange;
25113
25388
  exports.detectProjectEcosystems = detectProjectEcosystems;
25114
25389
  exports.detectProjectStacks = detectProjectStacks;
25115
25390
  exports.detectPromptInjection = detectPromptInjection;
25391
+ exports.detectUiComponentModality = detectUiComponentModality;
25116
25392
  exports.emitCiOutput = emitCiOutput;
25117
25393
  exports.ensureToolAvailable = ensureToolAvailable;
25118
25394
  exports.ensureTrivyAvailable = ensureTrivyAvailable;
@@ -25138,6 +25414,7 @@ exports.extractGherkinFeatures = extractGherkinFeatures;
25138
25414
  exports.extractNormativeText = extractNormativeText;
25139
25415
  exports.extractPythonFunctionsPolyglot = extractPythonFunctionsPolyglot;
25140
25416
  exports.extractSemanticContent = extractSemanticContent;
25417
+ exports.extractUiComponentName = extractUiComponentName;
25141
25418
  exports.findChangeWorkspaceDir = findChangeWorkspaceDir;
25142
25419
  exports.findLicenseFile = findLicenseFile;
25143
25420
  exports.formatAgentKpisMarkdownSection = formatAgentKpisMarkdownSection;
@@ -25176,7 +25453,9 @@ exports.getNextCorrelativeNumber = getNextCorrelativeNumber;
25176
25453
  exports.getReferenceCodingRulesTemplates = getReferenceCodingRulesTemplates;
25177
25454
  exports.getSddAdapter = getSddAdapter;
25178
25455
  exports.getToolInstallSpec = getToolInstallSpec;
25456
+ exports.hasModalityDriverSignature = hasModalityDriverSignature;
25179
25457
  exports.inferArtifactTypeFromId = inferArtifactTypeFromId;
25458
+ exports.inferFallbackUiModality = inferFallbackUiModality;
25180
25459
  exports.inferMissingTrailers = inferMissingTrailers;
25181
25460
  exports.ingestSarifFiles = ingestSarifFiles;
25182
25461
  exports.ingestSbomFile = ingestSbomFile;
@@ -25203,6 +25482,7 @@ exports.isSemgrepInstalled = isSemgrepInstalled;
25203
25482
  exports.isToolAvailable = isToolAvailable;
25204
25483
  exports.isToolInstalled = isToolInstalled;
25205
25484
  exports.isUiComponentFile = isUiComponentFile;
25485
+ exports.isUiComponentTested = isUiComponentTested;
25206
25486
  exports.isUiTestFile = isUiTestFile;
25207
25487
  exports.isUncOrEmptyPath = isUncOrEmptyPath;
25208
25488
  exports.loadDlpPolicy = loadDlpPolicy;
@@ -25215,6 +25495,7 @@ exports.maskSecret = maskSecret;
25215
25495
  exports.mergeSbomGaps = mergeSbomGaps;
25216
25496
  exports.normalizeIdentifierToSnakeCase = normalizeIdentifierToSnakeCase;
25217
25497
  exports.normalizePath = normalizePath;
25498
+ exports.normalizeReasoningEffort = normalizeReasoningEffort;
25218
25499
  exports.normalizeScaffoldLanguages = normalizeScaffoldLanguages;
25219
25500
  exports.normalizeSpdxLicense = normalizeSpdxLicense;
25220
25501
  exports.normalizeUri = normalizeUri;
@@ -25317,6 +25598,7 @@ exports.serializeSarifDocument = serializeSarifDocument;
25317
25598
  exports.slugify = slugify2;
25318
25599
  exports.spawnTrustedBinary = spawnTrustedBinary;
25319
25600
  exports.stripMaskingCalls = stripMaskingCalls;
25601
+ exports.stripTestComments = stripTestComments;
25320
25602
  exports.stripVolatileReportMetadata = stripVolatileReportMetadata;
25321
25603
  exports.submitReviewReport = submitReviewReport;
25322
25604
  exports.syncPdacDigests = syncPdacDigests;