@aisdlc/core 4.6.0 → 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
@@ -14273,11 +14273,18 @@ function verifyPrivacy(options = {}) {
14273
14273
  writePrivacyOutputsIfNeeded(result, options, policy, rootDir);
14274
14274
  return result;
14275
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
+ }
14276
14282
  var TRAILER_REGEXES = {
14277
14283
  taskId: /^\s*Task-ID:\s*(.+)$/im,
14278
14284
  parentRef: /^\s*Parent-Ref:\s*(.+)$/im,
14279
14285
  authorType: /^\s*Author-Type:\s*(human|agent)/im,
14280
14286
  aiModel: /^\s*AI-Model:\s*(.+)$/im,
14287
+ reasoningEffort: /^[ \t]*AI-Reasoning-Effort:[ \t]*([^\r\n]+)$/im,
14281
14288
  promptTokens: /^\s*Prompt-Tokens:\s*([0-9]+)/im,
14282
14289
  completionTokens: /^\s*Completion-Tokens:\s*([0-9]+)/im,
14283
14290
  activeTimeSeconds: /^\s*Active-Time-Seconds:\s*([0-9]+)/im
@@ -14308,11 +14315,14 @@ function parseCommitTrailers(rawMessage) {
14308
14315
  const authorType = resolveAuthorType(authorTypeMatch, aiModelMatch);
14309
14316
  const rawModel = aiModelMatch ? aiModelMatch[1].trim() : void 0;
14310
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);
14311
14320
  return {
14312
14321
  taskId: resolveTrailerOrScope(text.match(TRAILER_REGEXES.taskId), text, /\b(TSK-[0-9A-Za-z_-]+)\b/i),
14313
14322
  parentRef: resolveTrailerOrScope(text.match(TRAILER_REGEXES.parentRef), text, /\b((?:CHG|FEAT|BUG|FIX|PATCH)-[0-9A-Za-z_-]+)\b/i),
14314
14323
  authorType,
14315
14324
  aiModel,
14325
+ reasoningEffort,
14316
14326
  promptTokens: parseTrailerInt(text.match(TRAILER_REGEXES.promptTokens)),
14317
14327
  completionTokens: parseTrailerInt(text.match(TRAILER_REGEXES.completionTokens)),
14318
14328
  activeTimeSeconds: parseTrailerInt(text.match(TRAILER_REGEXES.activeTimeSeconds))
@@ -14324,6 +14334,8 @@ function formatCommitTrailers(trailers) {
14324
14334
  if (trailers.parentRef) lines.push(`Parent-Ref: ${trailers.parentRef}`);
14325
14335
  lines.push(`Author-Type: ${trailers.authorType || "human"}`);
14326
14336
  lines.push(`AI-Model: ${trailers.aiModel || "n/a"}`);
14337
+ const normalizedEffort = normalizeReasoningEffort(trailers.reasoningEffort);
14338
+ if (normalizedEffort) lines.push(`AI-Reasoning-Effort: ${normalizedEffort}`);
14327
14339
  lines.push(`Prompt-Tokens: ${trailers.promptTokens ?? 0}`);
14328
14340
  lines.push(`Completion-Tokens: ${trailers.completionTokens ?? 0}`);
14329
14341
  lines.push(`Active-Time-Seconds: ${trailers.activeTimeSeconds ?? 0}`);
@@ -14546,6 +14558,12 @@ function accumulateAuthorSummaries(records, humanSummary, byModel) {
14546
14558
  const modelName = record.trailers.aiModel || "agent-generic";
14547
14559
  if (!byModel[modelName]) byModel[modelName] = createEmptySummary();
14548
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);
14549
14567
  } else {
14550
14568
  accumulateRecord(humanSummary, record);
14551
14569
  }
@@ -15476,8 +15494,8 @@ function detectFromGitConfig(cwd) {
15476
15494
  }
15477
15495
  return null;
15478
15496
  }
15479
- function detectFromTelemetry(cwd, env) {
15480
- const telemetry = readSessionTelemetry(cwd);
15497
+ function detectFromTelemetry(cwd, env, preloaded) {
15498
+ const telemetry = preloaded !== void 0 ? preloaded : readSessionTelemetry(cwd);
15481
15499
  if (telemetry) {
15482
15500
  const model = telemetry.model || env.AI_MODEL || "agent-developer";
15483
15501
  return {
@@ -15532,10 +15550,14 @@ function detectFromSignature(env, cwd) {
15532
15550
  }
15533
15551
  return null;
15534
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
+ }
15535
15556
  function detectAuthorIdentity(options = {}) {
15536
15557
  const env = options.env || process.env;
15537
15558
  const cwd = options.cwd || process.cwd();
15538
- 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) || {
15539
15561
  authorType: "human",
15540
15562
  model: "n/a",
15541
15563
  source: "default-human",
@@ -15544,6 +15566,11 @@ function detectAuthorIdentity(options = {}) {
15544
15566
  completionTokens: 0,
15545
15567
  activeTimeSeconds: 0
15546
15568
  };
15569
+ if (identity.authorType !== "agent") {
15570
+ return identity;
15571
+ }
15572
+ const reasoningEffort = resolveAgentReasoningEffort(cwd, env, telemetry);
15573
+ return reasoningEffort ? { ...identity, reasoningEffort } : identity;
15547
15574
  }
15548
15575
  var PRE_COMMIT_SCRIPT = `#!/usr/bin/env bash
15549
15576
  # ==============================================================================
@@ -15631,24 +15658,33 @@ AI_MODEL_NAME="n/a"
15631
15658
  PROMPT_TOKENS=0
15632
15659
  COMPLETION_TOKENS=0
15633
15660
  ACTIVE_TIME_SEC=0
15661
+ REASONING_EFFORT=""
15634
15662
 
15635
15663
  # Execute universal IDE-agnostic author detection engine
15636
- 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 "")
15637
15665
 
15638
15666
  if [ -n "$DETECTED" ]; then
15639
- 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"
15640
15668
  AUTHOR_TYPE="\${DET_AUTHOR:-$AUTHOR_TYPE}"
15641
15669
  AI_MODEL_NAME="\${DET_MODEL:-$AI_MODEL_NAME}"
15642
15670
  PROMPT_TOKENS="\${DET_PROMPT:-$PROMPT_TOKENS}"
15643
15671
  COMPLETION_TOKENS="\${DET_COMPL:-$COMPLETION_TOKENS}"
15644
15672
  ACTIVE_TIME_SEC="\${DET_TIME:-$ACTIVE_TIME_SEC}"
15673
+ REASONING_EFFORT="\${DET_EFFORT:-$AI_REASONING_EFFORT}"
15645
15674
  else
15646
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
15647
15676
  AUTHOR_TYPE="agent"
15648
15677
  AI_MODEL_NAME="\${AI_MODEL:-\${AI_AGENT_NAME:-\${AIDER_MODEL:-agent-developer}}}"
15678
+ REASONING_EFFORT="\${AI_REASONING_EFFORT:-}"
15649
15679
  fi
15650
15680
  fi
15651
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
+
15652
15688
  # Estimate tokens and active time if not provided for agent
15653
15689
  if [ "$PROMPT_TOKENS" = "0" ] && [ "$AUTHOR_TYPE" = "agent" ]; then
15654
15690
  CHG_LINES=$(git diff --cached --shortstat 2>/dev/null | grep -oE '[0-9]+ (insertion|deletion)' | awk '{s+=$1} END {print s+0}')
@@ -15682,6 +15718,10 @@ if [ "$AUTHOR_TYPE" = "agent" ] && ! grep -qE "^AI-Model:" "$COMMIT_MSG_FILE" 2>
15682
15718
  TRAILERS_TO_ADD="\${TRAILERS_TO_ADD}AI-Model: $AI_MODEL_NAME
15683
15719
  "
15684
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
15685
15725
  if ! grep -qE "^Prompt-Tokens:" "$COMMIT_MSG_FILE" 2>/dev/null; then
15686
15726
  TRAILERS_TO_ADD="\${TRAILERS_TO_ADD}Prompt-Tokens: $PROMPT_TOKENS
15687
15727
  "
@@ -17779,9 +17819,13 @@ var DASHBOARD_CLIENT_SCRIPT = `
17779
17819
  var tableBranchLabel = document.getElementById('table-branch-label');
17780
17820
  if (tableBranchLabel) tableBranchLabel.textContent = isTotal ? 'Totalizador (Todas las ramas)' : branchKey;
17781
17821
 
17822
+ var escHtml = function(s) {
17823
+ return String(s).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
17824
+ };
17825
+
17782
17826
  var badgeElem = document.getElementById('telemetry-badge-container');
17783
17827
  if (badgeElem) {
17784
- 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>';
17785
17829
  }
17786
17830
 
17787
17831
  var elCommits = document.getElementById('card-commits');
@@ -17809,6 +17853,7 @@ var DASHBOARD_CLIENT_SCRIPT = `
17809
17853
  html += '<tr>' +
17810
17854
  '<td><strong>Human (Developer)</strong></td>' +
17811
17855
  '<td><span class="badge" style="background:#334155;">HUMAN</span></td>' +
17856
+ '<td>\u2014</td>' +
17812
17857
  '<td>' + data.humanSummary.commits + '</td>' +
17813
17858
  '<td>+' + data.humanSummary.linesAdded + ' / -' + data.humanSummary.linesDeleted + '</td>' +
17814
17859
  '<td>' + Math.round(data.humanSummary.activeTimeSeconds / 60) + 'm</td>' +
@@ -17816,24 +17861,42 @@ var DASHBOARD_CLIENT_SCRIPT = `
17816
17861
  '</tr>';
17817
17862
  }
17818
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
+ };
17819
17878
  var models = Object.keys(data.byModel);
17820
17879
  for (var i = 0; i < models.length; i++) {
17821
17880
  var m = models[i];
17822
17881
  var summary = data.byModel[m];
17823
- var safeModel = String(m).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
17824
- html += '<tr>' +
17825
- '<td><strong><code>' + safeModel + '</code></strong></td>' +
17826
- '<td><span class="badge badge-green">AGENT</span></td>' +
17827
- '<td>' + summary.commits + '</td>' +
17828
- '<td>+' + summary.linesAdded + ' / -' + summary.linesDeleted + '</td>' +
17829
- '<td>' + Math.round(summary.activeTimeSeconds / 60) + 'm</td>' +
17830
- '<td>' + (summary.promptTokens + summary.completionTokens).toLocaleString('en-US') + '</td>' +
17831
- '<td>$' + Number(summary.estimatedCostUsd).toFixed(2) + '</td>' +
17832
- '</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
+ }
17833
17896
  }
17834
17897
  }
17835
17898
  html += '<tr style="font-weight: bold; background: rgba(255,255,255,0.05);">' +
17836
- '<td>' + (isTotal ? 'TOTAL REPOSITORIO' : 'TOTAL RAMA') + '</td><td>\u2014</td>' +
17899
+ '<td>' + (isTotal ? 'TOTAL REPOSITORIO' : 'TOTAL RAMA') + '</td><td>\u2014</td><td>\u2014</td>' +
17837
17900
  '<td>' + data.totalCommits + '</td>' +
17838
17901
  '<td>+' + data.linesAdded + ' / -' + data.linesDeleted + '</td>' +
17839
17902
  '<td>' + Math.round(data.totalActiveTimeSeconds / 60) + 'm</td>' +
@@ -18277,11 +18340,20 @@ function renderTelemetryCardsHtml(kpi, displayLabel = "Totalizador") {
18277
18340
  `</div>`
18278
18341
  ].join("\n");
18279
18342
  }
18280
- 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) {
18281
18352
  return [
18282
18353
  `<tr>`,
18283
- ` <td><strong><code>${model}</code></strong></td>`,
18354
+ ` <td><strong><code>${escapeHtml(model)}</code></strong></td>`,
18284
18355
  ` <td><span class="badge badge-green">AGENT</span></td>`,
18356
+ ` <td><span class="badge" style="background:#334155;">${escapeHtml(effort)}</span></td>`,
18285
18357
  ` <td>${summary.commits}</td>`,
18286
18358
  ` <td>+${summary.linesAdded} / -${summary.linesDeleted}</td>`,
18287
18359
  ` <td>${Math.round(summary.activeTimeSeconds / 60)}m</td>`,
@@ -18290,12 +18362,20 @@ function renderModelRow(model, summary) {
18290
18362
  `</tr>`
18291
18363
  ].join("");
18292
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
+ }
18293
18372
  function renderHumanTelemetryRow(human) {
18294
18373
  if (human.commits <= 0) return "";
18295
18374
  return [
18296
18375
  `<tr>`,
18297
18376
  ` <td><strong>Human (Developer)</strong></td>`,
18298
18377
  ` <td><span class="badge" style="background:#334155;">HUMAN</span></td>`,
18378
+ ` <td>\u2014</td>`,
18299
18379
  ` <td>${human.commits}</td>`,
18300
18380
  ` <td>+${human.linesAdded} / -${human.linesDeleted}</td>`,
18301
18381
  ` <td>${Math.round(human.activeTimeSeconds / 60)}m</td>`,
@@ -18310,20 +18390,20 @@ function renderTotalBranchRow(kpi, isTotal = false) {
18310
18390
  const label = isTotal ? "TOTAL REPOSITORIO" : "TOTAL RAMA";
18311
18391
  return [
18312
18392
  `<tr style="font-weight: bold; background: rgba(255,255,255,0.05);">`,
18313
- ` <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>`,
18314
18394
  ` <td>${mins}m</td><td>${tokens}</td><td>$${cost} USD</td>`,
18315
18395
  `</tr>`
18316
18396
  ].join("");
18317
18397
  }
18318
- function renderTelemetryTable(kpi, displayLabel) {
18398
+ function renderModelTelemetryTable(kpi, displayLabel) {
18319
18399
  const humanRow = renderHumanTelemetryRow(kpi.humanSummary);
18320
- 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");
18321
18401
  const totalRow = renderTotalBranchRow(kpi, displayLabel === "Totalizador");
18322
18402
  const titleLabel = "Totalizador (Todas las ramas)" ;
18323
18403
  return [
18324
18404
  `<div class="chart-container">`,
18325
18405
  ` <h3>Telemetry Breakdown by Author and Model (<span id="table-branch-label">${escapeHtml(titleLabel)}</span>)</h3>`,
18326
- ` <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">`,
18327
18407
  humanRow,
18328
18408
  modelRows,
18329
18409
  totalRow,
@@ -18334,7 +18414,7 @@ function renderTelemetryTable(kpi, displayLabel) {
18334
18414
  function renderActiveTelemetrySection(kpi, displayLabel, branches, activeBranch) {
18335
18415
  const filterBarHtml = renderTelemetryFilterBarHtml(branches, activeBranch);
18336
18416
  const cardsHtml = renderTelemetryCardsHtml(kpi, displayLabel);
18337
- const tableHtml = renderTelemetryTable(kpi, displayLabel);
18417
+ const tableHtml = renderModelTelemetryTable(kpi, displayLabel);
18338
18418
  return `${filterBarHtml}
18339
18419
  ${cardsHtml}
18340
18420
  ${tableHtml}`;
@@ -19562,10 +19642,11 @@ This file defines the operational rules and specialized role mappings for Google
19562
19642
 
19563
19643
  ## 3. Git 4-Tier Hierarchy and Commit Conventions
19564
19644
  - \`task/<PARENT-ID>/<TSK-ID>-<slug>\` $\\rightarrow$ \`feat/<FEAT-ID>-<slug>\` $\\rightarrow$ \`release/vX.Y.Z\` $\\rightarrow$ \`main\`.
19565
- - 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\`):
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):
19566
19646
  \`\`\`text
19567
19647
  Author-Type: agent
19568
19648
  AI-Model: <active-model>
19649
+ AI-Reasoning-Effort: <low|medium|high|max>
19569
19650
  Task-ID: TSK-XXX
19570
19651
  Change-ID: CHG-XXX
19571
19652
  \`\`\`
@@ -19817,6 +19898,7 @@ Body explaining the motivation and technical justification of the change.
19817
19898
 
19818
19899
  Author-Type: agent
19819
19900
  AI-Model: claude-3-7-sonnet
19901
+ AI-Reasoning-Effort: high
19820
19902
  Task-ID: TSK-001
19821
19903
  Change-ID: CHG-026-AGENT-NATIVE-CONFIGS
19822
19904
  \`\`\`
@@ -25413,6 +25495,7 @@ exports.maskSecret = maskSecret;
25413
25495
  exports.mergeSbomGaps = mergeSbomGaps;
25414
25496
  exports.normalizeIdentifierToSnakeCase = normalizeIdentifierToSnakeCase;
25415
25497
  exports.normalizePath = normalizePath;
25498
+ exports.normalizeReasoningEffort = normalizeReasoningEffort;
25416
25499
  exports.normalizeScaffoldLanguages = normalizeScaffoldLanguages;
25417
25500
  exports.normalizeSpdxLicense = normalizeSpdxLicense;
25418
25501
  exports.normalizeUri = normalizeUri;