@resolveio/server-lib 22.3.215 → 22.3.216

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "22.3.215",
3
+ "version": "22.3.216",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "package": "./build_package.sh",
@@ -148,6 +148,12 @@ function cleanListEntryText(value, max) {
148
148
  'source_file',
149
149
  'artifactPath',
150
150
  'artifact_path',
151
+ 'request_classification',
152
+ 'requestClassification',
153
+ 'classification_rationale',
154
+ 'classificationRationale',
155
+ 'behavior_type',
156
+ 'behaviorType',
151
157
  'summary',
152
158
  'detail',
153
159
  'message',
@@ -155,6 +161,12 @@ function cleanListEntryText(value, max) {
155
161
  'rationale',
156
162
  'proof_required',
157
163
  'proofRequired',
164
+ 'reported',
165
+ 'verified',
166
+ 'reported_path',
167
+ 'reportedPath',
168
+ 'verified_path',
169
+ 'verifiedPath',
158
170
  'rejection_reason',
159
171
  'rejectionReason',
160
172
  'reason',
@@ -938,6 +950,10 @@ function normalizeIssueClass(value) {
938
950
  customer_inquiry: 'missing_wrong_data',
939
951
  data_mismatch: 'missing_wrong_data',
940
952
  warehouse_mismatch: 'missing_wrong_data',
953
+ data_visibility_mapping: 'missing_wrong_data',
954
+ data_mapping: 'missing_wrong_data',
955
+ visibility_mapping: 'missing_wrong_data',
956
+ display_mapping: 'missing_wrong_data',
941
957
  route_auth: 'route_auth_hydration',
942
958
  auth_hydration: 'route_auth_hydration',
943
959
  route_auth_hydration: 'route_auth_hydration',
@@ -950,7 +966,13 @@ function normalizeIssueClass(value) {
950
966
  requested_behavior_change: 'missing_wrong_data',
951
967
  new_feature: 'missing_wrong_data'
952
968
  };
953
- return aliases[normalized] || '';
969
+ if (aliases[normalized]) {
970
+ return aliases[normalized];
971
+ }
972
+ if (/\b(data|field|value|visibility|mapping|display|warehouse|quantity|inventory)\b/i.test(normalized)) {
973
+ return 'missing_wrong_data';
974
+ }
975
+ return '';
954
976
  }
955
977
  function normalizeReproductionStatus(value) {
956
978
  var normalized = cleanText(value, 80).toLowerCase();
@@ -1755,6 +1777,12 @@ function supportDiagnosisNarrativeText(value, max) {
1755
1777
  return "".concat(hypothesis, " rejected because ").concat(whyRejected).slice(0, max);
1756
1778
  }
1757
1779
  var direct = pickText(source, [
1780
+ 'request_classification',
1781
+ 'requestClassification',
1782
+ 'classification_rationale',
1783
+ 'classificationRationale',
1784
+ 'behavior_type',
1785
+ 'behaviorType',
1758
1786
  'summary',
1759
1787
  'detail',
1760
1788
  'description',
@@ -1771,6 +1799,8 @@ function supportDiagnosisNarrativeText(value, max) {
1771
1799
  'route',
1772
1800
  'path_chain',
1773
1801
  'pathChain',
1802
+ 'reported',
1803
+ 'verified',
1774
1804
  'reported_path',
1775
1805
  'reportedPath',
1776
1806
  'verified_path',
@@ -1790,7 +1820,24 @@ function supportDiagnosisNarrativeText(value, max) {
1790
1820
  var routeModulePermission = cleanText(source.route_module_permission_gate || source.routeModulePermissionGate, Math.floor(max / 2));
1791
1821
  var templateGate = cleanText(source.template_conditional_rendering_gate || source.templateConditionalRenderingGate, Math.floor(max / 2));
1792
1822
  var backingGate = cleanText(source.backing_role_group_config_publications_gate || source.backingRoleGroupConfigPublicationsGate, Math.floor(max / 2));
1793
- return [routeModulePermission, templateGate, backingGate].filter(Boolean).join(' | ').slice(0, max);
1823
+ var explicitGateText = [routeModulePermission, templateGate, backingGate].filter(Boolean).join(' | ').slice(0, max);
1824
+ if (explicitGateText) {
1825
+ return explicitGateText;
1826
+ }
1827
+ return Object.entries(source)
1828
+ .filter(function (_a) {
1829
+ var _b = __read(_a, 1), key = _b[0];
1830
+ return !/^(id|_id|type|status|updatedAt|updated_at|createdAt|created_at)$/i.test(key);
1831
+ })
1832
+ .map(function (_a) {
1833
+ var _b = __read(_a, 2), entry = _b[1];
1834
+ return cleanListEntryText(entry, Math.max(80, Math.floor(max / 4)));
1835
+ })
1836
+ .filter(Boolean)
1837
+ .join(' | ')
1838
+ .replace(/\s+/g, ' ')
1839
+ .trim()
1840
+ .slice(0, max);
1794
1841
  }
1795
1842
  function supportDiagnosisLooksLikeClassifiedFeatureRequest(source, issueCaseText, failingPathText, hypothesisText) {
1796
1843
  var classificationText = supportDiagnosisNarrativeText(source.classification || source.classification_reason || source.classificationReason, 700);
@@ -1866,8 +1913,81 @@ function normalizeSupportDiagnosisProofPlanRows(values) {
1866
1913
  data_assertion: proofRequired.join(' | ').slice(0, 1000)
1867
1914
  };
1868
1915
  }
1916
+ function collectSupportDiagnosisTextListFromValues(values, limit, max) {
1917
+ var e_8, _a, e_9, _b, e_10, _c, e_11, _d;
1918
+ if (limit === void 0) { limit = 10; }
1919
+ if (max === void 0) { max = 800; }
1920
+ var result = [];
1921
+ try {
1922
+ for (var values_5 = __values(values), values_5_1 = values_5.next(); !values_5_1.done; values_5_1 = values_5.next()) {
1923
+ var value = values_5_1.value;
1924
+ var direct = cleanList(value, limit, max);
1925
+ try {
1926
+ for (var direct_1 = (e_9 = void 0, __values(direct)), direct_1_1 = direct_1.next(); !direct_1_1.done; direct_1_1 = direct_1.next()) {
1927
+ var entry = direct_1_1.value;
1928
+ if (entry && !result.includes(entry)) {
1929
+ result.push(entry);
1930
+ }
1931
+ }
1932
+ }
1933
+ catch (e_9_1) { e_9 = { error: e_9_1 }; }
1934
+ finally {
1935
+ try {
1936
+ if (direct_1_1 && !direct_1_1.done && (_b = direct_1.return)) _b.call(direct_1);
1937
+ }
1938
+ finally { if (e_9) throw e_9.error; }
1939
+ }
1940
+ if (value && typeof value === 'object' && !Array.isArray(value)) {
1941
+ try {
1942
+ for (var _e = (e_10 = void 0, __values(Object.entries(value))), _f = _e.next(); !_f.done; _f = _e.next()) {
1943
+ var _g = __read(_f.value, 2), key = _g[0], nestedValue = _g[1];
1944
+ if (!/(evidence|proof|ref|source|code|artifact|fact)/i.test(key)) {
1945
+ continue;
1946
+ }
1947
+ var nestedEntries = Array.isArray(nestedValue)
1948
+ ? cleanList(nestedValue, limit, max)
1949
+ : [cleanListEntryText(nestedValue, max)].filter(Boolean);
1950
+ try {
1951
+ for (var nestedEntries_1 = (e_11 = void 0, __values(nestedEntries)), nestedEntries_1_1 = nestedEntries_1.next(); !nestedEntries_1_1.done; nestedEntries_1_1 = nestedEntries_1.next()) {
1952
+ var entry = nestedEntries_1_1.value;
1953
+ if (entry && !result.includes(entry)) {
1954
+ result.push(entry);
1955
+ }
1956
+ }
1957
+ }
1958
+ catch (e_11_1) { e_11 = { error: e_11_1 }; }
1959
+ finally {
1960
+ try {
1961
+ if (nestedEntries_1_1 && !nestedEntries_1_1.done && (_d = nestedEntries_1.return)) _d.call(nestedEntries_1);
1962
+ }
1963
+ finally { if (e_11) throw e_11.error; }
1964
+ }
1965
+ }
1966
+ }
1967
+ catch (e_10_1) { e_10 = { error: e_10_1 }; }
1968
+ finally {
1969
+ try {
1970
+ if (_f && !_f.done && (_c = _e.return)) _c.call(_e);
1971
+ }
1972
+ finally { if (e_10) throw e_10.error; }
1973
+ }
1974
+ }
1975
+ if (result.length >= limit) {
1976
+ break;
1977
+ }
1978
+ }
1979
+ }
1980
+ catch (e_8_1) { e_8 = { error: e_8_1 }; }
1981
+ finally {
1982
+ try {
1983
+ if (values_5_1 && !values_5_1.done && (_a = values_5.return)) _a.call(values_5);
1984
+ }
1985
+ finally { if (e_8) throw e_8.error; }
1986
+ }
1987
+ return result.slice(0, limit);
1988
+ }
1869
1989
  function normalizeOwnerFilePath(value) {
1870
- var e_8, _a;
1990
+ var e_12, _a;
1871
1991
  var normalized = cleanListEntryText(value, 500)
1872
1992
  .replace(/\\/g, '/')
1873
1993
  .replace(/^\.\/+/, '')
@@ -1893,12 +2013,12 @@ function normalizeOwnerFilePath(value) {
1893
2013
  }
1894
2014
  }
1895
2015
  }
1896
- catch (e_8_1) { e_8 = { error: e_8_1 }; }
2016
+ catch (e_12_1) { e_12 = { error: e_12_1 }; }
1897
2017
  finally {
1898
2018
  try {
1899
2019
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1900
2020
  }
1901
- finally { if (e_8) throw e_8.error; }
2021
+ finally { if (e_12) throw e_12.error; }
1902
2022
  }
1903
2023
  return normalized;
1904
2024
  }
@@ -1907,7 +2027,7 @@ function isResolveIOSupportGeneratedAngularWrapperPath(value) {
1907
2027
  return /(?:^|\/)angular\/app\/(?:methods|publications)\.ts$/i.test(normalized);
1908
2028
  }
1909
2029
  function ownerFileComparablePathKeys(value) {
1910
- var e_9, _a;
2030
+ var e_13, _a;
1911
2031
  var normalized = normalizeOwnerFilePath(value);
1912
2032
  if (!normalized) {
1913
2033
  return [];
@@ -1929,12 +2049,12 @@ function ownerFileComparablePathKeys(value) {
1929
2049
  }
1930
2050
  }
1931
2051
  }
1932
- catch (e_9_1) { e_9 = { error: e_9_1 }; }
2052
+ catch (e_13_1) { e_13 = { error: e_13_1 }; }
1933
2053
  finally {
1934
2054
  try {
1935
2055
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1936
2056
  }
1937
- finally { if (e_9) throw e_9.error; }
2057
+ finally { if (e_13) throw e_13.error; }
1938
2058
  }
1939
2059
  return Array.from(keys);
1940
2060
  }
@@ -2382,7 +2502,7 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
2382
2502
  ].filter(Boolean).join(' '), 1200);
2383
2503
  var routeModule = pickText(issueCaseSource, ['route_module', 'routeModule', 'route', 'module', 'screen'], 500)
2384
2504
  || pickText(source, ['route_module', 'routeModule', 'module', 'screen'], 500)
2385
- || pickText(failingPathSource, ['route', 'module', 'path', 'description', 'reported_path', 'reportedPath', 'verified_path', 'verifiedPath'], 500)
2505
+ || pickText(failingPathSource, ['route', 'module', 'path', 'description', 'reported', 'verified', 'reported_path', 'reportedPath', 'verified_path', 'verifiedPath'], 500)
2386
2506
  || failingPathText
2387
2507
  || (featureRequestClassified ? 'net-new support feature workflow' : '');
2388
2508
  var expectedResult = pickText(issueCaseSource, ['expected_result', 'expectedResult', 'expected'], 1000)
@@ -2399,6 +2519,16 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
2399
2519
  || (featureRequestClassified ? 'Customer/account context from support ticket intake.' : '');
2400
2520
  var rawReproductionStatus = issueCaseSource.reproduction_status || issueCaseSource.reproductionStatus || source.reproduction_status;
2401
2521
  var hasRuntimeReproductionEvidence = diagnosisEvidence.some(function (entry) { return SUPPORT_REPRODUCTION_EVIDENCE_TYPES.has(entry.type); });
2522
+ var explicitHypothesisEvidence = collectSupportDiagnosisTextListFromValues([
2523
+ hypothesisSource.evidence,
2524
+ hypothesisSource.evidence_refs,
2525
+ hypothesisSource.evidenceRefs,
2526
+ hypothesisSource.code_evidence,
2527
+ hypothesisSource.codeEvidence,
2528
+ source.hypothesis_evidence,
2529
+ source.hypothesisEvidence,
2530
+ hypothesisSource
2531
+ ], 10, 800);
2402
2532
  var gate = {
2403
2533
  issue_case: {
2404
2534
  customer_complaint: explicitCustomerComplaint || customerIssueCaseText,
@@ -2417,8 +2547,8 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
2417
2547
  || hypothesisText,
2418
2548
  falsifiable_test: pickText(hypothesisSource, ['falsifiable_test', 'falsifiableTest', 'test', 'proof', 'falsifier'], 1000)
2419
2549
  || (failingPathText ? "Verify the accepted hypothesis against the failing path evidence: ".concat(failingPathText) : ''),
2420
- evidence: cleanList(hypothesisSource.evidence || hypothesisSource.evidence_refs || hypothesisSource.evidenceRefs || source.hypothesis_evidence || source.hypothesisEvidence, 10, 800).length
2421
- ? cleanList(hypothesisSource.evidence || hypothesisSource.evidence_refs || hypothesisSource.evidenceRefs || source.hypothesis_evidence || source.hypothesisEvidence, 10, 800)
2550
+ evidence: explicitHypothesisEvidence.length
2551
+ ? explicitHypothesisEvidence
2422
2552
  : diagnosisEvidence.map(function (entry) { return [entry.artifactPath, entry.summary].filter(Boolean).join(': '); }).filter(Boolean).slice(0, 10)
2423
2553
  },
2424
2554
  rejected_alternatives: normalizeSupportDiagnosisRejectedAlternatives(source.rejected_alternatives || source.rejectedAlternatives),
@@ -2427,7 +2557,7 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
2427
2557
  backend: pickText(failingPathSource, ['backend', 'backend_path', 'backendPath', 'methodPublicationPath'], 700),
2428
2558
  shared_library: pickText(failingPathSource, ['shared_library', 'sharedLibrary', 'library', 'lib'], 700),
2429
2559
  data_query: pickText(failingPathSource, ['data_query', 'dataQuery', 'query'], 700),
2430
- description: pickText(failingPathSource, ['description', 'path_chain', 'pathChain', 'reported_path', 'reportedPath', 'verified_path', 'verifiedPath', 'path', 'assessment', 'summary', 'route'], 1200) || failingPathText
2560
+ description: pickText(failingPathSource, ['description', 'path_chain', 'pathChain', 'reported', 'verified', 'reported_path', 'reportedPath', 'verified_path', 'verifiedPath', 'path', 'assessment', 'summary', 'route'], 1200) || failingPathText
2431
2561
  },
2432
2562
  owner_files: ownerFiles,
2433
2563
  proof_plan: {
@@ -2453,7 +2583,7 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
2453
2583
  return gate;
2454
2584
  }
2455
2585
  function extractResolveIOSupportDiagnosisGateFromText(value, now) {
2456
- var e_10, _a;
2586
+ var e_14, _a;
2457
2587
  var text = String(value || '').trim();
2458
2588
  if (!text) {
2459
2589
  return undefined;
@@ -2481,12 +2611,12 @@ function extractResolveIOSupportDiagnosisGateFromText(value, now) {
2481
2611
  }
2482
2612
  }
2483
2613
  }
2484
- catch (e_10_1) { e_10 = { error: e_10_1 }; }
2614
+ catch (e_14_1) { e_14 = { error: e_14_1 }; }
2485
2615
  finally {
2486
2616
  try {
2487
2617
  if (candidates_1_1 && !candidates_1_1.done && (_a = candidates_1.return)) _a.call(candidates_1);
2488
2618
  }
2489
- finally { if (e_10) throw e_10.error; }
2619
+ finally { if (e_14) throw e_14.error; }
2490
2620
  }
2491
2621
  return undefined;
2492
2622
  }
@@ -2649,7 +2779,7 @@ function supportStatusLooksPassed(value) {
2649
2779
  return /\b(pass|passed|success|succeeded|complete|completed|ready|not_required|not required)\b/i.test(cleanText(value, 200));
2650
2780
  }
2651
2781
  function nestedObject(source) {
2652
- var e_11, _a;
2782
+ var e_15, _a;
2653
2783
  var keys = [];
2654
2784
  for (var _i = 1; _i < arguments.length; _i++) {
2655
2785
  keys[_i - 1] = arguments[_i];
@@ -2663,17 +2793,17 @@ function nestedObject(source) {
2663
2793
  }
2664
2794
  }
2665
2795
  }
2666
- catch (e_11_1) { e_11 = { error: e_11_1 }; }
2796
+ catch (e_15_1) { e_15 = { error: e_15_1 }; }
2667
2797
  finally {
2668
2798
  try {
2669
2799
  if (keys_1_1 && !keys_1_1.done && (_a = keys_1.return)) _a.call(keys_1);
2670
2800
  }
2671
- finally { if (e_11) throw e_11.error; }
2801
+ finally { if (e_15) throw e_15.error; }
2672
2802
  }
2673
2803
  return {};
2674
2804
  }
2675
2805
  function resolveSupportReplyReleaseGate(input) {
2676
- var e_12, _a;
2806
+ var e_16, _a;
2677
2807
  var _b;
2678
2808
  var releaseEvidence = cleanObject(input.releaseEvidence);
2679
2809
  var releaseStatus = cleanText(input.releaseStatus
@@ -2744,12 +2874,12 @@ function resolveSupportReplyReleaseGate(input) {
2744
2874
  blockers.push("missing_".concat(field));
2745
2875
  }
2746
2876
  }
2747
- catch (e_12_1) { e_12 = { error: e_12_1 }; }
2877
+ catch (e_16_1) { e_16 = { error: e_16_1 }; }
2748
2878
  finally {
2749
2879
  try {
2750
2880
  if (missingCommitProofFields_1_1 && !missingCommitProofFields_1_1.done && (_a = missingCommitProofFields_1.return)) _a.call(missingCommitProofFields_1);
2751
2881
  }
2752
- finally { if (e_12) throw e_12.error; }
2882
+ finally { if (e_16) throw e_16.error; }
2753
2883
  }
2754
2884
  var shouldEvaluateHotfix = statusBlocked || commitProofRequired || Object.keys(hotfixEvidence).length > 0;
2755
2885
  var hotfixContinuation = shouldEvaluateHotfix
@@ -2795,7 +2925,7 @@ function supportBusinessAssertionRouteOnly(value) {
2795
2925
  return /^(route_probe_pass|route_only_pass|route_pass|route_probe|route_loaded)$/i.test(cleanText(value, 80));
2796
2926
  }
2797
2927
  function normalizeSupportBusinessProofAssertions(input) {
2798
- var e_13, _a;
2928
+ var e_17, _a;
2799
2929
  var gate = normalizeResolveIOSupportDiagnosisGate(input.diagnosisGate);
2800
2930
  var proofPlan = gate === null || gate === void 0 ? void 0 : gate.proof_plan;
2801
2931
  var proofContract = proofPlan === null || proofPlan === void 0 ? void 0 : proofPlan.business_proof_contract;
@@ -2829,12 +2959,12 @@ function normalizeSupportBusinessProofAssertions(input) {
2829
2959
  });
2830
2960
  }
2831
2961
  }
2832
- catch (e_13_1) { e_13 = { error: e_13_1 }; }
2962
+ catch (e_17_1) { e_17 = { error: e_17_1 }; }
2833
2963
  finally {
2834
2964
  try {
2835
2965
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2836
2966
  }
2837
- finally { if (e_13) throw e_13.error; }
2967
+ finally { if (e_17) throw e_17.error; }
2838
2968
  }
2839
2969
  var status = cleanText(input.businessAssertionStatus || input.outcomeLabel, 80);
2840
2970
  if (!assertions.length && (supportBusinessAssertionPassed(status) || supportBusinessAssertionRouteOnly(status) || supportBusinessAssertionFailed(status))) {
@@ -2924,7 +3054,7 @@ function supportBusinessProofAssertionHasStructuredContractMapping(assertion, ga
2924
3054
  return routeMatches && actionMatches && expectedStateMatches && hasBusinessDataProof;
2925
3055
  }
2926
3056
  function supportBusinessProofAssertionMatchesContract(assertion, gate) {
2927
- var e_14, _a;
3057
+ var e_18, _a;
2928
3058
  if (!gate) {
2929
3059
  return false;
2930
3060
  }
@@ -2964,12 +3094,12 @@ function supportBusinessProofAssertionMatchesContract(assertion, gate) {
2964
3094
  }
2965
3095
  }
2966
3096
  }
2967
- catch (e_14_1) { e_14 = { error: e_14_1 }; }
3097
+ catch (e_18_1) { e_18 = { error: e_18_1 }; }
2968
3098
  finally {
2969
3099
  try {
2970
3100
  if (proofWords_1_1 && !proofWords_1_1.done && (_a = proofWords_1.return)) _a.call(proofWords_1);
2971
3101
  }
2972
- finally { if (e_14) throw e_14.error; }
3102
+ finally { if (e_18) throw e_18.error; }
2973
3103
  }
2974
3104
  return overlap >= Math.min(5, Math.max(3, Math.ceil(proofWords.size * 0.45)));
2975
3105
  }
@@ -4494,7 +4624,7 @@ function supportManagerRequiredResetEvidenceForContract(contract) {
4494
4624
  ], false))).slice(0, 16);
4495
4625
  }
4496
4626
  function validateResolveIOSupportNextActionContract(value) {
4497
- var e_15, _a;
4627
+ var e_19, _a;
4498
4628
  var _b, _c, _d, _e, _f;
4499
4629
  var contract = cleanObject(value);
4500
4630
  var blockers = [];
@@ -4516,12 +4646,12 @@ function validateResolveIOSupportNextActionContract(value) {
4516
4646
  }
4517
4647
  }
4518
4648
  }
4519
- catch (e_15_1) { e_15 = { error: e_15_1 }; }
4649
+ catch (e_19_1) { e_19 = { error: e_19_1 }; }
4520
4650
  finally {
4521
4651
  try {
4522
4652
  if (requiredStringFields_1_1 && !requiredStringFields_1_1.done && (_a = requiredStringFields_1.return)) _a.call(requiredStringFields_1);
4523
4653
  }
4524
- finally { if (e_15) throw e_15.error; }
4654
+ finally { if (e_19) throw e_19.error; }
4525
4655
  }
4526
4656
  if (!Array.isArray(contract.nextCommands) || !contract.nextCommands.length) {
4527
4657
  blockers.push('NextActionContract.nextCommands must include at least the primary command.');
@@ -5540,7 +5670,7 @@ function buildResolveIOSupportV5ScopeDigest(input) {
5540
5670
  return raw.slice(0, maxChars);
5541
5671
  }
5542
5672
  function buildResolveIOSupportV5MicrotaskLedger(input) {
5543
- var e_16, _a;
5673
+ var e_20, _a;
5544
5674
  var existing = Array.isArray(input.existing) ? input.existing : [];
5545
5675
  var completedByObjective = new Map();
5546
5676
  try {
@@ -5551,12 +5681,12 @@ function buildResolveIOSupportV5MicrotaskLedger(input) {
5551
5681
  }
5552
5682
  }
5553
5683
  }
5554
- catch (e_16_1) { e_16 = { error: e_16_1 }; }
5684
+ catch (e_20_1) { e_20 = { error: e_20_1 }; }
5555
5685
  finally {
5556
5686
  try {
5557
5687
  if (existing_1_1 && !existing_1_1.done && (_a = existing_1.return)) _a.call(existing_1);
5558
5688
  }
5559
- finally { if (e_16) throw e_16.error; }
5689
+ finally { if (e_20) throw e_20.error; }
5560
5690
  }
5561
5691
  var now = isoNow(input.now);
5562
5692
  var requirements = cleanList(input.requirements, 30, 240);
@@ -7360,7 +7490,7 @@ function buildResolveIOSupportV5MicrotaskPrompt(input) {
7360
7490
  };
7361
7491
  }
7362
7492
  function summarizeResolveIOSupportV5MicrotaskUsage(bundle) {
7363
- var e_17, _a, e_18, _b;
7493
+ var e_21, _a, e_22, _b;
7364
7494
  var byMicrotask = new Map();
7365
7495
  var bySection = new Map();
7366
7496
  var totalPromptTokenEstimate = 0;
@@ -7375,17 +7505,17 @@ function summarizeResolveIOSupportV5MicrotaskUsage(bundle) {
7375
7505
  existing.calls += 1;
7376
7506
  byMicrotask.set(usage.microtaskId, existing);
7377
7507
  try {
7378
- for (var _e = (e_18 = void 0, __values(usage.promptSections || [])), _f = _e.next(); !_f.done; _f = _e.next()) {
7508
+ for (var _e = (e_22 = void 0, __values(usage.promptSections || [])), _f = _e.next(); !_f.done; _f = _e.next()) {
7379
7509
  var section = _f.value;
7380
7510
  bySection.set(section.name, (bySection.get(section.name) || 0) + section.tokenEstimate);
7381
7511
  }
7382
7512
  }
7383
- catch (e_18_1) { e_18 = { error: e_18_1 }; }
7513
+ catch (e_22_1) { e_22 = { error: e_22_1 }; }
7384
7514
  finally {
7385
7515
  try {
7386
7516
  if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
7387
7517
  }
7388
- finally { if (e_18) throw e_18.error; }
7518
+ finally { if (e_22) throw e_22.error; }
7389
7519
  }
7390
7520
  var hardCap = usage.lane === 'qa' ? promptBudget.qaMicrotaskHardCap : promptBudget.buildMicrotaskHardCap;
7391
7521
  if ((usage.promptTokenEstimate || 0) > hardCap) {
@@ -7393,12 +7523,12 @@ function summarizeResolveIOSupportV5MicrotaskUsage(bundle) {
7393
7523
  }
7394
7524
  }
7395
7525
  }
7396
- catch (e_17_1) { e_17 = { error: e_17_1 }; }
7526
+ catch (e_21_1) { e_21 = { error: e_21_1 }; }
7397
7527
  finally {
7398
7528
  try {
7399
7529
  if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
7400
7530
  }
7401
- finally { if (e_17) throw e_17.error; }
7531
+ finally { if (e_21) throw e_21.error; }
7402
7532
  }
7403
7533
  return {
7404
7534
  totalPromptTokenEstimate: totalPromptTokenEstimate,