@probelabs/visor 0.1.92 → 0.1.94

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.
Files changed (39) hide show
  1. package/defaults/.visor.yaml +15 -16
  2. package/dist/check-execution-engine.d.ts +11 -0
  3. package/dist/check-execution-engine.d.ts.map +1 -1
  4. package/dist/config.d.ts +3 -1
  5. package/dist/config.d.ts.map +1 -1
  6. package/dist/defaults/.visor.yaml +15 -16
  7. package/dist/index.js +587 -646
  8. package/dist/liquid-extensions.d.ts +12 -0
  9. package/dist/liquid-extensions.d.ts.map +1 -1
  10. package/dist/output/issue-assistant/schema.json +14 -1
  11. package/dist/providers/command-check-provider.d.ts.map +1 -1
  12. package/dist/providers/log-check-provider.d.ts.map +1 -1
  13. package/dist/providers/memory-check-provider.d.ts.map +1 -1
  14. package/dist/reviewer.d.ts +8 -0
  15. package/dist/reviewer.d.ts.map +1 -1
  16. package/dist/sdk/{check-execution-engine-L73PFZQY.mjs → check-execution-engine-YBRPVUWD.mjs} +3 -3
  17. package/dist/sdk/{chunk-LJHRU3WQ.mjs → chunk-DQRFOQAP.mjs} +160 -41
  18. package/dist/sdk/chunk-DQRFOQAP.mjs.map +1 -0
  19. package/dist/sdk/{chunk-2U6BIWSY.mjs → chunk-I3GQJIR7.mjs} +14 -10
  20. package/dist/sdk/chunk-I3GQJIR7.mjs.map +1 -0
  21. package/dist/sdk/{liquid-extensions-AFKRYROF.mjs → liquid-extensions-GMEGEGC3.mjs} +6 -2
  22. package/dist/sdk/sdk.d.mts +11 -2
  23. package/dist/sdk/sdk.d.ts +11 -2
  24. package/dist/sdk/sdk.js +202 -50
  25. package/dist/sdk/sdk.js.map +1 -1
  26. package/dist/sdk/sdk.mjs +36 -7
  27. package/dist/sdk/sdk.mjs.map +1 -1
  28. package/dist/sdk.d.ts +11 -2
  29. package/dist/sdk.d.ts.map +1 -1
  30. package/dist/traces/{run-2025-10-15T07-21-47-696Z.ndjson → run-2025-10-16T11-33-32-682Z.ndjson} +19 -3
  31. package/dist/traces/{run-2025-10-15T07-21-58-106Z.ndjson → run-2025-10-16T11-33-43-618Z.ndjson} +19 -3
  32. package/dist/traces/{run-2025-10-15T07-21-58-693Z.ndjson → run-2025-10-16T11-33-44-157Z.ndjson} +19 -3
  33. package/dist/traces/{run-2025-10-15T07-21-59-167Z.ndjson → run-2025-10-16T11-33-44-647Z.ndjson} +19 -3
  34. package/dist/traces/{run-2025-10-15T07-21-59-629Z.ndjson → run-2025-10-16T11-33-45-128Z.ndjson} +4 -0
  35. package/package.json +2 -2
  36. package/dist/sdk/chunk-2U6BIWSY.mjs.map +0 -1
  37. package/dist/sdk/chunk-LJHRU3WQ.mjs.map +0 -1
  38. /package/dist/sdk/{check-execution-engine-L73PFZQY.mjs.map → check-execution-engine-YBRPVUWD.mjs.map} +0 -0
  39. /package/dist/sdk/{liquid-extensions-AFKRYROF.mjs.map → liquid-extensions-GMEGEGC3.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- process.env.VISOR_VERSION = '0.1.92';
3
- process.env.PROBE_VERSION = '0.6.0-rc136';
2
+ process.env.VISOR_VERSION = '0.1.94';
3
+ process.env.PROBE_VERSION = '0.6.0-rc138';
4
4
  /******/ (() => { // webpackBootstrap
5
5
  /******/ var __webpack_modules__ = ({
6
6
 
@@ -219842,6 +219842,8 @@ class CheckExecutionEngine {
219842
219842
  webhookContext;
219843
219843
  routingSandbox;
219844
219844
  executionStats = new Map();
219845
+ // Track history of all outputs for each check (useful for loops and goto)
219846
+ outputHistory = new Map();
219845
219847
  // Event override to simulate alternate event (used during routing goto)
219846
219848
  routingEventOverride;
219847
219849
  // Cached GitHub context for context elevation when running in Actions
@@ -219864,6 +219866,18 @@ class CheckExecutionEngine {
219864
219866
  this.mockOctokit = this.createMockOctokit();
219865
219867
  this.reviewer = new reviewer_1.PRReviewer(this.mockOctokit);
219866
219868
  }
219869
+ /**
219870
+ * Enrich event context with authenticated octokit instance
219871
+ * @param eventContext - The event context to enrich
219872
+ * @returns Enriched event context with octokit if available
219873
+ */
219874
+ enrichEventContext(eventContext) {
219875
+ const baseContext = eventContext || {};
219876
+ if (this.actionContext?.octokit) {
219877
+ return { ...baseContext, octokit: this.actionContext.octokit };
219878
+ }
219879
+ return baseContext;
219880
+ }
219867
219881
  /**
219868
219882
  * Lazily create a secure sandbox for routing JS (goto_js, run_js)
219869
219883
  */
@@ -220077,11 +220091,6 @@ class CheckExecutionEngine {
220077
220091
  const providerType = targetCfg.type || 'ai';
220078
220092
  const prov = this.providerRegistry.getProviderOrThrow(providerType);
220079
220093
  this.setProviderWebhookContext(prov);
220080
- // Inject authenticated octokit into event context for providers
220081
- const enrichedEventContext = {
220082
- ...prInfo.eventContext,
220083
- ...(this.actionContext?.octokit ? { octokit: this.actionContext.octokit } : {}),
220084
- };
220085
220094
  const provCfg = {
220086
220095
  type: providerType,
220087
220096
  prompt: targetCfg.prompt,
@@ -220090,11 +220099,13 @@ class CheckExecutionEngine {
220090
220099
  schema: targetCfg.schema,
220091
220100
  group: targetCfg.group,
220092
220101
  checkName: target,
220093
- eventContext: enrichedEventContext,
220102
+ eventContext: this.enrichEventContext(prInfo.eventContext),
220094
220103
  transform: targetCfg.transform,
220095
220104
  transform_js: targetCfg.transform_js,
220096
220105
  env: targetCfg.env,
220097
220106
  forEach: targetCfg.forEach,
220107
+ // Pass output history for loop/goto scenarios
220108
+ __outputHistory: this.outputHistory,
220098
220109
  // Include provider-specific keys (e.g., op/values for github)
220099
220110
  ...targetCfg,
220100
220111
  ai: {
@@ -220171,6 +220182,11 @@ class CheckExecutionEngine {
220171
220182
  timestamp: Date.now(),
220172
220183
  }));
220173
220184
  const enriched = { ...r, issues: enrichedIssues };
220185
+ // Track output history for loop/goto scenarios
220186
+ const enrichedWithOutput = enriched;
220187
+ if (enrichedWithOutput.output !== undefined) {
220188
+ this.trackOutputHistory(target, enrichedWithOutput.output);
220189
+ }
220174
220190
  resultsMap?.set(target, enriched);
220175
220191
  if (debug)
220176
220192
  log(`🔧 Debug: inline executed '${target}', issues: ${enrichedIssues.length}`);
@@ -220740,7 +220756,7 @@ class CheckExecutionEngine {
220740
220756
  const providerConfig = {
220741
220757
  type: checks[0],
220742
220758
  prompt: 'all',
220743
- eventContext: prInfo.eventContext, // Pass event context for templates
220759
+ eventContext: this.enrichEventContext(prInfo.eventContext),
220744
220760
  ai: timeout ? { timeout } : undefined,
220745
220761
  };
220746
220762
  const result = await provider.execute(prInfo, providerConfig);
@@ -220778,7 +220794,7 @@ class CheckExecutionEngine {
220778
220794
  type: 'ai',
220779
220795
  prompt: focus,
220780
220796
  focus: focus,
220781
- eventContext: prInfo.eventContext, // Pass event context for templates
220797
+ eventContext: this.enrichEventContext(prInfo.eventContext),
220782
220798
  ai: timeout ? { timeout } : undefined,
220783
220799
  // Inherit global AI provider and model settings if config is available
220784
220800
  ai_provider: config?.ai_provider,
@@ -220924,7 +220940,7 @@ class CheckExecutionEngine {
220924
220940
  focus: checkConfig.focus || this.mapCheckNameToFocus(checkName),
220925
220941
  schema: checkConfig.schema,
220926
220942
  group: checkConfig.group,
220927
- eventContext: prInfo.eventContext, // Pass event context for templates
220943
+ eventContext: this.enrichEventContext(prInfo.eventContext),
220928
220944
  ai: {
220929
220945
  timeout: timeout || 600000,
220930
220946
  debug: debug,
@@ -220934,6 +220950,8 @@ class CheckExecutionEngine {
220934
220950
  ai_model: checkConfig.ai_model || config.ai_model,
220935
220951
  // Pass claude_code config if present
220936
220952
  claude_code: checkConfig.claude_code,
220953
+ // Pass output history for loop/goto scenarios
220954
+ __outputHistory: this.outputHistory,
220937
220955
  // Pass any provider-specific config
220938
220956
  ...checkConfig,
220939
220957
  };
@@ -220967,10 +220985,15 @@ class CheckExecutionEngine {
220967
220985
  }
220968
220986
  // Render the check content using the appropriate template
220969
220987
  const content = await this.renderCheckContent(checkName, result, checkConfig, prInfo);
220988
+ // Determine the group: if group_by is 'check', use the check name; otherwise use configured group or 'default'
220989
+ let group = checkConfig.group || 'default';
220990
+ if (config?.output?.pr_comment?.group_by === 'check' && !checkConfig.group) {
220991
+ group = checkName;
220992
+ }
220970
220993
  return {
220971
220994
  checkName,
220972
220995
  content,
220973
- group: checkConfig.group || 'default',
220996
+ group,
220974
220997
  output: result.output,
220975
220998
  debug: result.debug,
220976
220999
  issues: result.issues, // Include structured issues
@@ -221122,16 +221145,20 @@ class CheckExecutionEngine {
221122
221145
  },
221123
221146
  ];
221124
221147
  }
221148
+ // Determine the group: if group_by is 'check', use the check name; otherwise use configured group or 'default'
221149
+ let group = checkConfig.group || 'default';
221150
+ if (config?.output?.pr_comment?.group_by === 'check' && !checkConfig.group) {
221151
+ group = checkName;
221152
+ }
221125
221153
  const checkResult = {
221126
221154
  checkName,
221127
221155
  content,
221128
- group: checkConfig.group || 'default',
221156
+ group,
221129
221157
  output: checkSummary.output,
221130
221158
  debug: reviewSummary.debug,
221131
221159
  issues: issuesForCheck, // Include structured issues + rendering error if any
221132
221160
  };
221133
221161
  // Add to appropriate group
221134
- const group = checkResult.group;
221135
221162
  if (!groupedResults[group]) {
221136
221163
  groupedResults[group] = [];
221137
221164
  }
@@ -221607,7 +221634,7 @@ class CheckExecutionEngine {
221607
221634
  schema: checkConfig.schema,
221608
221635
  group: checkConfig.group,
221609
221636
  checkName: checkName, // Add checkName for sessionID
221610
- eventContext: prInfo.eventContext, // Pass event context for templates
221637
+ eventContext: this.enrichEventContext(prInfo.eventContext),
221611
221638
  transform: checkConfig.transform,
221612
221639
  transform_js: checkConfig.transform_js,
221613
221640
  // Important: pass through provider-level timeout from check config
@@ -221830,7 +221857,7 @@ class CheckExecutionEngine {
221830
221857
  schema: childCfg.schema,
221831
221858
  group: childCfg.group,
221832
221859
  checkName: childName,
221833
- eventContext: prInfo.eventContext,
221860
+ eventContext: this.enrichEventContext(prInfo.eventContext),
221834
221861
  transform: childCfg.transform,
221835
221862
  transform_js: childCfg.transform_js,
221836
221863
  env: childCfg.env,
@@ -222143,6 +222170,11 @@ class CheckExecutionEngine {
222143
222170
  const iterationDuration = (Date.now() - iterationStart) / 1000;
222144
222171
  this.recordIterationComplete(checkName, iterationStart, !hadFatalError, // Success if no fatal errors
222145
222172
  itemResult.issues || [], itemResult.output);
222173
+ // Track output history for forEach iterations
222174
+ const itemOutput = itemResult.output;
222175
+ if (itemOutput !== undefined) {
222176
+ this.trackOutputHistory(checkName, itemOutput);
222177
+ }
222146
222178
  // General branch-first scheduling for this item: execute all descendants (from current node only) when ready
222147
222179
  const descendantSet = (() => {
222148
222180
  const visited = new Set();
@@ -222238,7 +222270,7 @@ class CheckExecutionEngine {
222238
222270
  schema: nodeCfg.schema,
222239
222271
  group: nodeCfg.group,
222240
222272
  checkName: node,
222241
- eventContext: prInfo.eventContext,
222273
+ eventContext: this.enrichEventContext(prInfo.eventContext),
222242
222274
  transform: nodeCfg.transform,
222243
222275
  transform_js: nodeCfg.transform_js,
222244
222276
  env: nodeCfg.env,
@@ -222789,6 +222821,11 @@ class CheckExecutionEngine {
222789
222821
  ]);
222790
222822
  }
222791
222823
  catch { }
222824
+ // Track output history for loop/goto scenarios
222825
+ const reviewResultWithOutput = reviewResult;
222826
+ if (reviewResultWithOutput.output !== undefined) {
222827
+ this.trackOutputHistory(checkName, reviewResultWithOutput.output);
222828
+ }
222792
222829
  results.set(checkName, reviewResult);
222793
222830
  }
222794
222831
  else {
@@ -222950,7 +222987,7 @@ class CheckExecutionEngine {
222950
222987
  focus: checkConfig.focus || this.mapCheckNameToFocus(checkName),
222951
222988
  schema: checkConfig.schema,
222952
222989
  group: checkConfig.group,
222953
- eventContext: prInfo.eventContext, // Pass event context for templates
222990
+ eventContext: this.enrichEventContext(prInfo.eventContext),
222954
222991
  ai: {
222955
222992
  timeout: timeout || 600000,
222956
222993
  debug: debug, // Pass debug flag to AI provider
@@ -223019,7 +223056,7 @@ class CheckExecutionEngine {
223019
223056
  focus: checkConfig.focus || this.mapCheckNameToFocus(checkName),
223020
223057
  schema: checkConfig.schema,
223021
223058
  group: checkConfig.group,
223022
- eventContext: prInfo.eventContext, // Pass event context for templates
223059
+ eventContext: this.enrichEventContext(prInfo.eventContext),
223023
223060
  ai: {
223024
223061
  timeout: timeout || 600000,
223025
223062
  ...(checkConfig.ai || {}),
@@ -224037,6 +224074,17 @@ class CheckExecutionEngine {
224037
224074
  stats.outputsProduced = (stats.outputsProduced || 0) + 1;
224038
224075
  }
224039
224076
  }
224077
+ /**
224078
+ * Track output in history for loop/goto scenarios
224079
+ */
224080
+ trackOutputHistory(checkName, output) {
224081
+ if (output === undefined)
224082
+ return;
224083
+ if (!this.outputHistory.has(checkName)) {
224084
+ this.outputHistory.set(checkName, []);
224085
+ }
224086
+ this.outputHistory.get(checkName).push(output);
224087
+ }
224040
224088
  /**
224041
224089
  * Record that a check was skipped
224042
224090
  */
@@ -225598,8 +225646,10 @@ class ConfigManager {
225598
225646
  }
225599
225647
  /**
225600
225648
  * Validate configuration against schema
225649
+ * @param config The config to validate
225650
+ * @param strict If true, treat warnings as errors (default: false)
225601
225651
  */
225602
- validateConfig(config) {
225652
+ validateConfig(config, strict = false) {
225603
225653
  const errors = [];
225604
225654
  const warnings = [];
225605
225655
  // First, run schema-based validation (runtime-generated).
@@ -225716,11 +225766,15 @@ class ConfigManager {
225716
225766
  if (config.tag_filter) {
225717
225767
  this.validateTagFilter(config.tag_filter, errors);
225718
225768
  }
225769
+ // In strict mode, treat warnings as errors
225770
+ if (strict && warnings.length > 0) {
225771
+ errors.push(...warnings);
225772
+ }
225719
225773
  if (errors.length > 0) {
225720
225774
  throw new Error(errors[0].message);
225721
225775
  }
225722
- // Emit warnings (do not block execution)
225723
- if (warnings.length > 0) {
225776
+ // Emit warnings (do not block execution) - only in non-strict mode
225777
+ if (!strict && warnings.length > 0) {
225724
225778
  for (const w of warnings) {
225725
225779
  logger_1.logger.warn(`⚠️ Config warning [${w.field}]: ${w.message}`);
225726
225780
  }
@@ -230564,6 +230618,7 @@ async function handleIssueComment(octokit, owner, repo, context, inputs, actionC
230564
230618
  await reviewer.postReviewComment(owner, repo, prNumber, groupedResults, {
230565
230619
  focus,
230566
230620
  format,
230621
+ config: config,
230567
230622
  commentId: `pr-review-${prNumber}`,
230568
230623
  triggeredBy: comment?.user?.login
230569
230624
  ? `comment by @${comment.user.login}`
@@ -230683,6 +230738,7 @@ async function handlePullRequestWithConfig(octokit, owner, repo, inputs, config,
230683
230738
  const shouldComment = inputs['comment-on-pr'] !== 'false';
230684
230739
  if (shouldComment) {
230685
230740
  await reviewer.postReviewComment(owner, repo, prNumber, groupedResults, {
230741
+ config,
230686
230742
  commentId,
230687
230743
  triggeredBy: action,
230688
230744
  commitSha: pullRequest.head?.sha,
@@ -231295,6 +231351,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
231295
231351
  };
231296
231352
  Object.defineProperty(exports, "__esModule", ({ value: true }));
231297
231353
  exports.ReadFileTag = void 0;
231354
+ exports.sanitizeLabel = sanitizeLabel;
231355
+ exports.sanitizeLabelList = sanitizeLabelList;
231298
231356
  exports.withPermissionsContext = withPermissionsContext;
231299
231357
  exports.configureLiquidWithExtensions = configureLiquidWithExtensions;
231300
231358
  exports.createExtendedLiquid = createExtendedLiquid;
@@ -231304,6 +231362,28 @@ const promises_1 = __importDefault(__nccwpck_require__(91943));
231304
231362
  const path_1 = __importDefault(__nccwpck_require__(16928));
231305
231363
  const author_permissions_1 = __nccwpck_require__(53859);
231306
231364
  const memory_store_1 = __nccwpck_require__(95835);
231365
+ /**
231366
+ * Sanitize label strings to only allow [A-Za-z0-9:/] characters
231367
+ * @param value - Label value to sanitize
231368
+ * @returns Sanitized label string
231369
+ */
231370
+ function sanitizeLabel(value) {
231371
+ if (value == null)
231372
+ return '';
231373
+ const s = String(value);
231374
+ // Keep only alphanumerics, colon, slash; collapse repeated slashes
231375
+ return s.replace(/[^A-Za-z0-9:\/]/g, '').replace(/\/{2,}/g, '/');
231376
+ }
231377
+ /**
231378
+ * Sanitize an array of labels
231379
+ * @param labels - Array of label values
231380
+ * @returns Array of sanitized, non-empty label strings
231381
+ */
231382
+ function sanitizeLabelList(labels) {
231383
+ if (!Array.isArray(labels))
231384
+ return [];
231385
+ return labels.map(v => sanitizeLabel(v)).filter(s => s.length > 0);
231386
+ }
231307
231387
  /**
231308
231388
  * Custom ReadFile tag for Liquid templates
231309
231389
  * Usage: {% readfile "path/to/file.txt" %}
@@ -231379,22 +231459,9 @@ function configureLiquidWithExtensions(liquid) {
231379
231459
  }
231380
231460
  });
231381
231461
  // Sanitize a label to allowed characters only: [A-Za-z0-9:/]
231382
- liquid.registerFilter('safe_label', (value) => {
231383
- if (value == null)
231384
- return '';
231385
- const s = String(value);
231386
- // Keep only alphanumerics, colon, slash; collapse repeated slashes
231387
- return s.replace(/[^A-Za-z0-9:\/]/g, '').replace(/\/{2,}/g, '/');
231388
- });
231462
+ liquid.registerFilter('safe_label', (value) => sanitizeLabel(value));
231389
231463
  // Sanitize an array of labels
231390
- liquid.registerFilter('safe_label_list', (value) => {
231391
- if (!Array.isArray(value))
231392
- return [];
231393
- return value
231394
- .map(v => (v == null ? '' : String(v)))
231395
- .map(s => s.replace(/[^A-Za-z0-9:\/]/g, '').replace(/\/{2,}/g, '/'))
231396
- .filter(s => s.length > 0);
231397
- });
231464
+ liquid.registerFilter('safe_label_list', (value) => sanitizeLabelList(value));
231398
231465
  // Convert literal escape sequences (e.g., "\n") into actual newlines
231399
231466
  liquid.registerFilter('unescape_newlines', (value) => {
231400
231467
  if (value == null)
@@ -234396,7 +234463,7 @@ class CommandCheckProvider extends check_provider_interface_1.CheckProvider {
234396
234463
  },
234397
234464
  files: prInfo.files,
234398
234465
  fileCount: prInfo.files.length,
234399
- outputs: this.buildOutputContext(dependencyResults),
234466
+ outputs: this.buildOutputContext(dependencyResults, config.__outputHistory),
234400
234467
  env: this.getSafeEnvironmentVariables(),
234401
234468
  };
234402
234469
  logger_1.logger.debug(`🔧 Debug: Template outputs keys: ${Object.keys(templateContext.outputs || {}).join(', ')}`);
@@ -235244,11 +235311,12 @@ ${bodyWithReturn}
235244
235311
  };
235245
235312
  }
235246
235313
  }
235247
- buildOutputContext(dependencyResults) {
235314
+ buildOutputContext(dependencyResults, outputHistory) {
235248
235315
  if (!dependencyResults) {
235249
235316
  return {};
235250
235317
  }
235251
235318
  const outputs = {};
235319
+ const history = {};
235252
235320
  for (const [checkName, result] of dependencyResults) {
235253
235321
  // If the result has a direct output field, use it directly
235254
235322
  // Otherwise, expose the entire result as-is
@@ -235256,6 +235324,14 @@ ${bodyWithReturn}
235256
235324
  const value = summary.output !== undefined ? summary.output : summary;
235257
235325
  outputs[checkName] = this.makeJsonSmart(value);
235258
235326
  }
235327
+ // Add history for each check if available
235328
+ if (outputHistory) {
235329
+ for (const [checkName, historyArray] of outputHistory) {
235330
+ history[checkName] = historyArray.map(val => this.makeJsonSmart(val));
235331
+ }
235332
+ }
235333
+ // Attach history to the outputs object
235334
+ outputs.history = history;
235259
235335
  return outputs;
235260
235336
  }
235261
235337
  /**
@@ -236718,7 +236794,7 @@ class LogCheckProvider extends check_provider_interface_1.CheckProvider {
236718
236794
  const includeDependencies = config.include_dependencies !== false;
236719
236795
  const includeMetadata = config.include_metadata !== false;
236720
236796
  // Prepare template context
236721
- const templateContext = this.buildTemplateContext(prInfo, dependencyResults, includePrContext, includeDependencies, includeMetadata);
236797
+ const templateContext = this.buildTemplateContext(prInfo, dependencyResults, includePrContext, includeDependencies, includeMetadata, config.__outputHistory);
236722
236798
  // Render the log message template
236723
236799
  const renderedMessage = await this.liquid.parseAndRender(message, templateContext);
236724
236800
  // Build the log output
@@ -236739,7 +236815,7 @@ class LogCheckProvider extends check_provider_interface_1.CheckProvider {
236739
236815
  logOutput,
236740
236816
  };
236741
236817
  }
236742
- buildTemplateContext(prInfo, dependencyResults, _includePrContext = true, _includeDependencies = true, includeMetadata = true) {
236818
+ buildTemplateContext(prInfo, dependencyResults, _includePrContext = true, _includeDependencies = true, includeMetadata = true, outputHistory) {
236743
236819
  const context = {};
236744
236820
  // Always provide pr context for template rendering
236745
236821
  context.pr = {
@@ -236766,6 +236842,7 @@ class LogCheckProvider extends check_provider_interface_1.CheckProvider {
236766
236842
  if (dependencyResults) {
236767
236843
  const dependencies = {};
236768
236844
  const outputs = {};
236845
+ const history = {};
236769
236846
  context.dependencyCount = dependencyResults.size;
236770
236847
  for (const [checkName, result] of dependencyResults.entries()) {
236771
236848
  dependencies[checkName] = {
@@ -236777,6 +236854,14 @@ class LogCheckProvider extends check_provider_interface_1.CheckProvider {
236777
236854
  const summary = result;
236778
236855
  outputs[checkName] = summary.output !== undefined ? summary.output : summary;
236779
236856
  }
236857
+ // Add history for each check if available
236858
+ if (outputHistory) {
236859
+ for (const [checkName, historyArray] of outputHistory) {
236860
+ history[checkName] = historyArray;
236861
+ }
236862
+ }
236863
+ // Attach history to the outputs object
236864
+ outputs.history = history;
236780
236865
  context.dependencies = dependencies;
236781
236866
  context.outputs = outputs;
236782
236867
  }
@@ -237021,7 +237106,7 @@ class MemoryCheckProvider extends check_provider_interface_1.CheckProvider {
237021
237106
  // Get memory store instance
237022
237107
  const memoryStore = memory_store_1.MemoryStore.getInstance();
237023
237108
  // Build template context for value computation
237024
- const templateContext = this.buildTemplateContext(prInfo, dependencyResults, memoryStore);
237109
+ const templateContext = this.buildTemplateContext(prInfo, dependencyResults, memoryStore, config.__outputHistory);
237025
237110
  let result;
237026
237111
  try {
237027
237112
  switch (operation) {
@@ -237326,7 +237411,7 @@ class MemoryCheckProvider extends check_provider_interface_1.CheckProvider {
237326
237411
  /**
237327
237412
  * Build template context for Liquid and JS evaluation
237328
237413
  */
237329
- buildTemplateContext(prInfo, dependencyResults, memoryStore) {
237414
+ buildTemplateContext(prInfo, dependencyResults, memoryStore, outputHistory) {
237330
237415
  const context = {};
237331
237416
  // Add PR context
237332
237417
  context.pr = {
@@ -237346,15 +237431,24 @@ class MemoryCheckProvider extends check_provider_interface_1.CheckProvider {
237346
237431
  changes: f.changes,
237347
237432
  })),
237348
237433
  };
237349
- // Add dependency outputs
237434
+ // Add dependency outputs - always create outputs object even if no dependencies
237435
+ const outputs = {};
237436
+ const history = {};
237350
237437
  if (dependencyResults) {
237351
- const outputs = {};
237352
237438
  for (const [checkName, result] of dependencyResults.entries()) {
237353
237439
  const summary = result;
237354
237440
  outputs[checkName] = summary.output !== undefined ? summary.output : summary;
237355
237441
  }
237356
- context.outputs = outputs;
237357
237442
  }
237443
+ // Add history for each check if available
237444
+ if (outputHistory) {
237445
+ for (const [checkName, historyArray] of outputHistory) {
237446
+ history[checkName] = historyArray;
237447
+ }
237448
+ }
237449
+ // Attach history to the outputs object
237450
+ outputs.history = history;
237451
+ context.outputs = outputs;
237358
237452
  // Add memory accessor
237359
237453
  if (memoryStore) {
237360
237454
  context.memory = {
@@ -237581,17 +237675,93 @@ class PRReviewer {
237581
237675
  throw new Error('No configuration provided. Please create a .visor.yaml file with check definitions. ' +
237582
237676
  'Built-in prompts have been removed - all checks must be explicitly configured.');
237583
237677
  }
237678
+ /**
237679
+ * Helper to check if a schema definition has a "text" field in its properties
237680
+ */
237681
+ async schemaHasTextField(schema) {
237682
+ try {
237683
+ let schemaObj;
237684
+ if (typeof schema === 'object') {
237685
+ // Inline schema object
237686
+ schemaObj = schema;
237687
+ }
237688
+ else {
237689
+ // String reference - load the schema
237690
+ const fs = (__nccwpck_require__(79896).promises);
237691
+ const path = __nccwpck_require__(16928);
237692
+ // Sanitize schema name
237693
+ const sanitizedSchemaName = schema.replace(/[^a-zA-Z0-9-]/g, '');
237694
+ if (!sanitizedSchemaName || sanitizedSchemaName !== schema) {
237695
+ return false;
237696
+ }
237697
+ // Construct path to built-in schema file
237698
+ const schemaPath = __nccwpck_require__.ab + "output/" + sanitizedSchemaName + '/schema.json';
237699
+ try {
237700
+ const schemaContent = await fs.readFile(schemaPath, 'utf-8');
237701
+ schemaObj = JSON.parse(schemaContent);
237702
+ }
237703
+ catch {
237704
+ // Schema file not found or invalid, return false
237705
+ return false;
237706
+ }
237707
+ }
237708
+ // Check if schema has a "text" field in properties
237709
+ const properties = schemaObj.properties;
237710
+ return !!(properties && 'text' in properties);
237711
+ }
237712
+ catch {
237713
+ return false;
237714
+ }
237715
+ }
237716
+ /**
237717
+ * Filter check results to only include those that should post GitHub comments
237718
+ */
237719
+ async filterCommentGeneratingChecks(checkResults, config) {
237720
+ const filtered = [];
237721
+ for (const r of checkResults) {
237722
+ const cfg = config.checks?.[r.checkName];
237723
+ const type = cfg?.type || 'ai'; // Default to 'ai' if not specified
237724
+ const schema = cfg?.schema;
237725
+ // Determine if this check should generate a comment
237726
+ // Include checks with:
237727
+ // 1. type: 'ai' or 'claude-code' with no schema or comment-generating schemas
237728
+ // 2. Other types ONLY if they have explicit comment-generating schemas
237729
+ let shouldPostComment = false;
237730
+ // AI-powered checks generate comments by default
237731
+ const isAICheck = type === 'ai' || type === 'claude-code';
237732
+ if (!schema || schema === '') {
237733
+ // No schema specified - only AI checks generate comments by default
237734
+ // Other types (github, command, http, etc.) without schema are for orchestration
237735
+ shouldPostComment = isAICheck;
237736
+ }
237737
+ else if (typeof schema === 'string') {
237738
+ // String schema - check if it's a known plain text schema OR has a text field
237739
+ if (schema === 'text' || schema === 'plain') {
237740
+ shouldPostComment = true;
237741
+ }
237742
+ else {
237743
+ // Load the schema and check if it has a text field
237744
+ shouldPostComment = await this.schemaHasTextField(schema);
237745
+ }
237746
+ }
237747
+ else if (typeof schema === 'object') {
237748
+ // Custom inline schema object - check if it has a "text" field in properties
237749
+ shouldPostComment = await this.schemaHasTextField(schema);
237750
+ }
237751
+ if (shouldPostComment) {
237752
+ filtered.push(r);
237753
+ }
237754
+ }
237755
+ return filtered;
237756
+ }
237584
237757
  async postReviewComment(owner, repo, prNumber, groupedResults, options = {}) {
237585
237758
  // Post separate comments for each group
237586
237759
  for (const [groupName, checkResults] of Object.entries(groupedResults)) {
237587
- // Filter out command-type checks from PR comments (they should report via GitHub Checks only)
237760
+ // Only checks with comment-generating schemas should post PR comments
237761
+ // AI checks (ai, claude-code) generate comments by default
237762
+ // Other types need explicit comment-generating schemas
237588
237763
  const filteredResults = options.config
237589
- ? checkResults.filter(r => {
237590
- const cfg = options.config.checks?.[r.checkName];
237591
- const t = cfg?.type || '';
237592
- const isGitHubOps = t === 'github' || r.group === 'github' || t === 'noop' || t === 'command';
237593
- return !isGitHubOps;
237594
- })
237764
+ ? await this.filterCommentGeneratingChecks(checkResults, options.config)
237595
237765
  : checkResults;
237596
237766
  // If nothing to report after filtering, skip this group
237597
237767
  if (!filteredResults || filteredResults.length === 0) {
@@ -262208,36 +262378,9 @@ var require_dist_cjs2 = __commonJS({
262208
262378
 
262209
262379
  // node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js
262210
262380
  var require_dist_cjs3 = __commonJS({
262211
- "node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js"(exports2, module2) {
262381
+ "node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js"(exports2) {
262212
262382
  "use strict";
262213
- var __defProp2 = Object.defineProperty;
262214
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
262215
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
262216
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
262217
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
262218
- var __export2 = (target, all) => {
262219
- for (var name14 in all)
262220
- __defProp2(target, name14, { get: all[name14], enumerable: true });
262221
- };
262222
- var __copyProps2 = (to, from, except, desc) => {
262223
- if (from && typeof from === "object" || typeof from === "function") {
262224
- for (let key of __getOwnPropNames2(from))
262225
- if (!__hasOwnProp2.call(to, key) && key !== except)
262226
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
262227
- }
262228
- return to;
262229
- };
262230
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
262231
- var index_exports2 = {};
262232
- __export2(index_exports2, {
262233
- eventStreamHandlingMiddleware: () => eventStreamHandlingMiddleware,
262234
- eventStreamHandlingMiddlewareOptions: () => eventStreamHandlingMiddlewareOptions,
262235
- eventStreamHeaderMiddleware: () => eventStreamHeaderMiddleware,
262236
- eventStreamHeaderMiddlewareOptions: () => eventStreamHeaderMiddlewareOptions,
262237
- getEventStreamPlugin: () => getEventStreamPlugin,
262238
- resolveEventStreamConfig: () => resolveEventStreamConfig
262239
- });
262240
- module2.exports = __toCommonJS2(index_exports2);
262383
+ var protocolHttp = require_dist_cjs2();
262241
262384
  function resolveEventStreamConfig(input) {
262242
262385
  const eventSigner = input.signer;
262243
262386
  const messageSigner = input.signer;
@@ -262250,13 +262393,12 @@ var require_dist_cjs3 = __commonJS({
262250
262393
  eventStreamPayloadHandler
262251
262394
  });
262252
262395
  }
262253
- __name(resolveEventStreamConfig, "resolveEventStreamConfig");
262254
- var import_protocol_http15 = require_dist_cjs2();
262255
- var eventStreamHandlingMiddleware = /* @__PURE__ */ __name((options) => (next, context3) => async (args) => {
262396
+ var eventStreamHandlingMiddleware = (options) => (next, context3) => async (args) => {
262256
262397
  const { request } = args;
262257
- if (!import_protocol_http15.HttpRequest.isInstance(request)) return next(args);
262398
+ if (!protocolHttp.HttpRequest.isInstance(request))
262399
+ return next(args);
262258
262400
  return options.eventStreamPayloadHandler.handle(next, args, context3);
262259
- }, "eventStreamHandlingMiddleware");
262401
+ };
262260
262402
  var eventStreamHandlingMiddlewareOptions = {
262261
262403
  tags: ["EVENT_STREAM", "SIGNATURE", "HANDLE"],
262262
262404
  name: "eventStreamHandlingMiddleware",
@@ -262264,9 +262406,10 @@ var require_dist_cjs3 = __commonJS({
262264
262406
  toMiddleware: "awsAuthMiddleware",
262265
262407
  override: true
262266
262408
  };
262267
- var eventStreamHeaderMiddleware = /* @__PURE__ */ __name((next) => async (args) => {
262409
+ var eventStreamHeaderMiddleware = (next) => async (args) => {
262268
262410
  const { request } = args;
262269
- if (!import_protocol_http15.HttpRequest.isInstance(request)) return next(args);
262411
+ if (!protocolHttp.HttpRequest.isInstance(request))
262412
+ return next(args);
262270
262413
  request.headers = {
262271
262414
  ...request.headers,
262272
262415
  "content-type": "application/vnd.amazon.eventstream",
@@ -262276,59 +262419,39 @@ var require_dist_cjs3 = __commonJS({
262276
262419
  ...args,
262277
262420
  request
262278
262421
  });
262279
- }, "eventStreamHeaderMiddleware");
262422
+ };
262280
262423
  var eventStreamHeaderMiddlewareOptions = {
262281
262424
  step: "build",
262282
262425
  tags: ["EVENT_STREAM", "HEADER", "CONTENT_TYPE", "CONTENT_SHA256"],
262283
262426
  name: "eventStreamHeaderMiddleware",
262284
262427
  override: true
262285
262428
  };
262286
- var getEventStreamPlugin = /* @__PURE__ */ __name((options) => ({
262287
- applyToStack: /* @__PURE__ */ __name((clientStack) => {
262429
+ var getEventStreamPlugin = (options) => ({
262430
+ applyToStack: (clientStack) => {
262288
262431
  clientStack.addRelativeTo(eventStreamHandlingMiddleware(options), eventStreamHandlingMiddlewareOptions);
262289
262432
  clientStack.add(eventStreamHeaderMiddleware, eventStreamHeaderMiddlewareOptions);
262290
- }, "applyToStack")
262291
- }), "getEventStreamPlugin");
262433
+ }
262434
+ });
262435
+ exports2.eventStreamHandlingMiddleware = eventStreamHandlingMiddleware;
262436
+ exports2.eventStreamHandlingMiddlewareOptions = eventStreamHandlingMiddlewareOptions;
262437
+ exports2.eventStreamHeaderMiddleware = eventStreamHeaderMiddleware;
262438
+ exports2.eventStreamHeaderMiddlewareOptions = eventStreamHeaderMiddlewareOptions;
262439
+ exports2.getEventStreamPlugin = getEventStreamPlugin;
262440
+ exports2.resolveEventStreamConfig = resolveEventStreamConfig;
262292
262441
  }
262293
262442
  });
262294
262443
 
262295
262444
  // node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js
262296
262445
  var require_dist_cjs4 = __commonJS({
262297
- "node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js"(exports2, module2) {
262446
+ "node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js"(exports2) {
262298
262447
  "use strict";
262299
- var __defProp2 = Object.defineProperty;
262300
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
262301
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
262302
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
262303
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
262304
- var __export2 = (target, all) => {
262305
- for (var name14 in all)
262306
- __defProp2(target, name14, { get: all[name14], enumerable: true });
262307
- };
262308
- var __copyProps2 = (to, from, except, desc) => {
262309
- if (from && typeof from === "object" || typeof from === "function") {
262310
- for (let key of __getOwnPropNames2(from))
262311
- if (!__hasOwnProp2.call(to, key) && key !== except)
262312
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
262313
- }
262314
- return to;
262315
- };
262316
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
262317
- var index_exports2 = {};
262318
- __export2(index_exports2, {
262319
- getHostHeaderPlugin: () => getHostHeaderPlugin3,
262320
- hostHeaderMiddleware: () => hostHeaderMiddleware,
262321
- hostHeaderMiddlewareOptions: () => hostHeaderMiddlewareOptions,
262322
- resolveHostHeaderConfig: () => resolveHostHeaderConfig3
262323
- });
262324
- module2.exports = __toCommonJS2(index_exports2);
262325
- var import_protocol_http15 = require_dist_cjs2();
262448
+ var protocolHttp = require_dist_cjs2();
262326
262449
  function resolveHostHeaderConfig3(input) {
262327
262450
  return input;
262328
262451
  }
262329
- __name(resolveHostHeaderConfig3, "resolveHostHeaderConfig");
262330
- var hostHeaderMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => {
262331
- if (!import_protocol_http15.HttpRequest.isInstance(args.request)) return next(args);
262452
+ var hostHeaderMiddleware = (options) => (next) => async (args) => {
262453
+ if (!protocolHttp.HttpRequest.isInstance(args.request))
262454
+ return next(args);
262332
262455
  const { request } = args;
262333
262456
  const { handlerProtocol = "" } = options.requestHandler.metadata || {};
262334
262457
  if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
@@ -262336,11 +262459,12 @@ var require_dist_cjs4 = __commonJS({
262336
262459
  request.headers[":authority"] = request.hostname + (request.port ? ":" + request.port : "");
262337
262460
  } else if (!request.headers["host"]) {
262338
262461
  let host = request.hostname;
262339
- if (request.port != null) host += `:${request.port}`;
262462
+ if (request.port != null)
262463
+ host += `:${request.port}`;
262340
262464
  request.headers["host"] = host;
262341
262465
  }
262342
262466
  return next(args);
262343
- }, "hostHeaderMiddleware");
262467
+ };
262344
262468
  var hostHeaderMiddlewareOptions = {
262345
262469
  name: "hostHeaderMiddleware",
262346
262470
  step: "build",
@@ -262348,44 +262472,23 @@ var require_dist_cjs4 = __commonJS({
262348
262472
  tags: ["HOST"],
262349
262473
  override: true
262350
262474
  };
262351
- var getHostHeaderPlugin3 = /* @__PURE__ */ __name((options) => ({
262352
- applyToStack: /* @__PURE__ */ __name((clientStack) => {
262475
+ var getHostHeaderPlugin3 = (options) => ({
262476
+ applyToStack: (clientStack) => {
262353
262477
  clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions);
262354
- }, "applyToStack")
262355
- }), "getHostHeaderPlugin");
262478
+ }
262479
+ });
262480
+ exports2.getHostHeaderPlugin = getHostHeaderPlugin3;
262481
+ exports2.hostHeaderMiddleware = hostHeaderMiddleware;
262482
+ exports2.hostHeaderMiddlewareOptions = hostHeaderMiddlewareOptions;
262483
+ exports2.resolveHostHeaderConfig = resolveHostHeaderConfig3;
262356
262484
  }
262357
262485
  });
262358
262486
 
262359
262487
  // node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js
262360
262488
  var require_dist_cjs5 = __commonJS({
262361
- "node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js"(exports2, module2) {
262489
+ "node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js"(exports2) {
262362
262490
  "use strict";
262363
- var __defProp2 = Object.defineProperty;
262364
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
262365
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
262366
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
262367
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
262368
- var __export2 = (target, all) => {
262369
- for (var name14 in all)
262370
- __defProp2(target, name14, { get: all[name14], enumerable: true });
262371
- };
262372
- var __copyProps2 = (to, from, except, desc) => {
262373
- if (from && typeof from === "object" || typeof from === "function") {
262374
- for (let key of __getOwnPropNames2(from))
262375
- if (!__hasOwnProp2.call(to, key) && key !== except)
262376
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
262377
- }
262378
- return to;
262379
- };
262380
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
262381
- var index_exports2 = {};
262382
- __export2(index_exports2, {
262383
- getLoggerPlugin: () => getLoggerPlugin3,
262384
- loggerMiddleware: () => loggerMiddleware,
262385
- loggerMiddlewareOptions: () => loggerMiddlewareOptions
262386
- });
262387
- module2.exports = __toCommonJS2(index_exports2);
262388
- var loggerMiddleware = /* @__PURE__ */ __name(() => (next, context3) => async (args) => {
262491
+ var loggerMiddleware = () => (next, context3) => async (args) => {
262389
262492
  try {
262390
262493
  const response = await next(args);
262391
262494
  const { clientName, commandName, logger: logger2, dynamoDbDocumentClientOptions = {} } = context3;
@@ -262414,18 +262517,21 @@ var require_dist_cjs5 = __commonJS({
262414
262517
  });
262415
262518
  throw error2;
262416
262519
  }
262417
- }, "loggerMiddleware");
262520
+ };
262418
262521
  var loggerMiddlewareOptions = {
262419
262522
  name: "loggerMiddleware",
262420
262523
  tags: ["LOGGER"],
262421
262524
  step: "initialize",
262422
262525
  override: true
262423
262526
  };
262424
- var getLoggerPlugin3 = /* @__PURE__ */ __name((options) => ({
262425
- applyToStack: /* @__PURE__ */ __name((clientStack) => {
262527
+ var getLoggerPlugin3 = (options) => ({
262528
+ applyToStack: (clientStack) => {
262426
262529
  clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
262427
- }, "applyToStack")
262428
- }), "getLoggerPlugin");
262530
+ }
262531
+ });
262532
+ exports2.getLoggerPlugin = getLoggerPlugin3;
262533
+ exports2.loggerMiddleware = loggerMiddleware;
262534
+ exports2.loggerMiddlewareOptions = loggerMiddlewareOptions;
262429
262535
  }
262430
262536
  });
262431
262537
 
@@ -262529,7 +262635,7 @@ var require_recursionDetectionMiddleware = __commonJS({
262529
262635
  var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
262530
262636
  var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
262531
262637
  var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
262532
- var recursionDetectionMiddleware2 = () => (next) => async (args) => {
262638
+ var recursionDetectionMiddleware = () => (next) => async (args) => {
262533
262639
  const { request } = args;
262534
262640
  if (!protocol_http_1.HttpRequest.isInstance(request)) {
262535
262641
  return next(args);
@@ -262551,38 +262657,15 @@ var require_recursionDetectionMiddleware = __commonJS({
262551
262657
  request
262552
262658
  });
262553
262659
  };
262554
- exports2.recursionDetectionMiddleware = recursionDetectionMiddleware2;
262660
+ exports2.recursionDetectionMiddleware = recursionDetectionMiddleware;
262555
262661
  }
262556
262662
  });
262557
262663
 
262558
262664
  // node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js
262559
262665
  var require_dist_cjs6 = __commonJS({
262560
- "node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js"(exports2, module2) {
262666
+ "node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js"(exports2) {
262561
262667
  "use strict";
262562
- var __defProp2 = Object.defineProperty;
262563
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
262564
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
262565
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
262566
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
262567
- var __export2 = (target, all) => {
262568
- for (var name14 in all)
262569
- __defProp2(target, name14, { get: all[name14], enumerable: true });
262570
- };
262571
- var __copyProps2 = (to, from, except, desc) => {
262572
- if (from && typeof from === "object" || typeof from === "function") {
262573
- for (let key of __getOwnPropNames2(from))
262574
- if (!__hasOwnProp2.call(to, key) && key !== except)
262575
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
262576
- }
262577
- return to;
262578
- };
262579
- var __reExport = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default"));
262580
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
262581
- var index_exports2 = {};
262582
- __export2(index_exports2, {
262583
- getRecursionDetectionPlugin: () => getRecursionDetectionPlugin3
262584
- });
262585
- module2.exports = __toCommonJS2(index_exports2);
262668
+ var recursionDetectionMiddleware = require_recursionDetectionMiddleware();
262586
262669
  var recursionDetectionMiddlewareOptions = {
262587
262670
  step: "build",
262588
262671
  tags: ["RECURSION_DETECTION"],
@@ -262590,13 +262673,20 @@ var require_dist_cjs6 = __commonJS({
262590
262673
  override: true,
262591
262674
  priority: "low"
262592
262675
  };
262593
- var import_recursionDetectionMiddleware = require_recursionDetectionMiddleware();
262594
- var getRecursionDetectionPlugin3 = /* @__PURE__ */ __name((options) => ({
262595
- applyToStack: /* @__PURE__ */ __name((clientStack) => {
262596
- clientStack.add((0, import_recursionDetectionMiddleware.recursionDetectionMiddleware)(), recursionDetectionMiddlewareOptions);
262597
- }, "applyToStack")
262598
- }), "getRecursionDetectionPlugin");
262599
- __reExport(index_exports2, require_recursionDetectionMiddleware(), module2.exports);
262676
+ var getRecursionDetectionPlugin3 = (options) => ({
262677
+ applyToStack: (clientStack) => {
262678
+ clientStack.add(recursionDetectionMiddleware.recursionDetectionMiddleware(), recursionDetectionMiddlewareOptions);
262679
+ }
262680
+ });
262681
+ exports2.getRecursionDetectionPlugin = getRecursionDetectionPlugin3;
262682
+ Object.keys(recursionDetectionMiddleware).forEach(function(k3) {
262683
+ if (k3 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, k3)) Object.defineProperty(exports2, k3, {
262684
+ enumerable: true,
262685
+ get: function() {
262686
+ return recursionDetectionMiddleware[k3];
262687
+ }
262688
+ });
262689
+ });
262600
262690
  }
262601
262691
  });
262602
262692
 
@@ -268309,7 +268399,7 @@ var require_dist_cjs20 = __commonJS({
268309
268399
  }
268310
268400
  };
268311
268401
  var IP_V4_REGEX = new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);
268312
- var isIpAddress2 = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]");
268402
+ var isIpAddress = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]");
268313
268403
  var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
268314
268404
  var isValidHostLabel = (value, allowSubDomains = false) => {
268315
268405
  if (!allowSubDomains) {
@@ -268337,7 +268427,7 @@ var require_dist_cjs20 = __commonJS({
268337
268427
  }
268338
268428
  return JSON.stringify(input, null, 2);
268339
268429
  }
268340
- var EndpointError2 = class extends Error {
268430
+ var EndpointError = class extends Error {
268341
268431
  constructor(message) {
268342
268432
  super(message);
268343
268433
  this.name = "EndpointError";
@@ -268351,11 +268441,11 @@ var require_dist_cjs20 = __commonJS({
268351
268441
  const squareBracketIndex = part.indexOf("[");
268352
268442
  if (squareBracketIndex !== -1) {
268353
268443
  if (part.indexOf("]") !== part.length - 1) {
268354
- throw new EndpointError2(`Path: '${path7}' does not end with ']'`);
268444
+ throw new EndpointError(`Path: '${path7}' does not end with ']'`);
268355
268445
  }
268356
268446
  const arrayIndex = part.slice(squareBracketIndex + 1, -1);
268357
268447
  if (Number.isNaN(parseInt(arrayIndex))) {
268358
- throw new EndpointError2(`Invalid array index: '${arrayIndex}' in path: '${path7}'`);
268448
+ throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path7}'`);
268359
268449
  }
268360
268450
  if (squareBracketIndex !== 0) {
268361
268451
  pathList.push(part.slice(0, squareBracketIndex));
@@ -268369,7 +268459,7 @@ var require_dist_cjs20 = __commonJS({
268369
268459
  };
268370
268460
  var getAttr = (value, path7) => getAttrPathList(path7).reduce((acc, index) => {
268371
268461
  if (typeof acc !== "object") {
268372
- throw new EndpointError2(`Index '${index}' in '${path7}' not found in '${JSON.stringify(value)}'`);
268462
+ throw new EndpointError(`Index '${index}' in '${path7}' not found in '${JSON.stringify(value)}'`);
268373
268463
  } else if (Array.isArray(acc)) {
268374
268464
  return acc[parseInt(index)];
268375
268465
  }
@@ -268411,7 +268501,7 @@ var require_dist_cjs20 = __commonJS({
268411
268501
  if (!Object.values(types2.EndpointURLScheme).includes(scheme)) {
268412
268502
  return null;
268413
268503
  }
268414
- const isIp = isIpAddress2(hostname);
268504
+ const isIp = isIpAddress(hostname);
268415
268505
  const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) || typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`);
268416
268506
  const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`;
268417
268507
  return {
@@ -268493,7 +268583,7 @@ var require_dist_cjs20 = __commonJS({
268493
268583
  } else if (obj["ref"]) {
268494
268584
  return getReferenceValue(obj, options);
268495
268585
  }
268496
- throw new EndpointError2(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
268586
+ throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
268497
268587
  };
268498
268588
  var callFunction = ({ fn, argv }, options) => {
268499
268589
  const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : evaluateExpression(arg, "arg", options));
@@ -268505,7 +268595,7 @@ var require_dist_cjs20 = __commonJS({
268505
268595
  };
268506
268596
  var evaluateCondition = ({ assign: assign2, ...fnArgs }, options) => {
268507
268597
  if (assign2 && assign2 in options.referenceRecord) {
268508
- throw new EndpointError2(`'${assign2}' is already defined in Reference Record.`);
268598
+ throw new EndpointError(`'${assign2}' is already defined in Reference Record.`);
268509
268599
  }
268510
268600
  const value = callFunction(fnArgs, options);
268511
268601
  options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`);
@@ -268539,7 +268629,7 @@ var require_dist_cjs20 = __commonJS({
268539
268629
  [headerKey]: headerVal.map((headerValEntry) => {
268540
268630
  const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options);
268541
268631
  if (typeof processedExpr !== "string") {
268542
- throw new EndpointError2(`Header '${headerKey}' value '${processedExpr}' is not a string`);
268632
+ throw new EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`);
268543
268633
  }
268544
268634
  return processedExpr;
268545
268635
  })
@@ -268553,13 +268643,13 @@ var require_dist_cjs20 = __commonJS({
268553
268643
  return evaluateTemplate(property2, options);
268554
268644
  case "object":
268555
268645
  if (property2 === null) {
268556
- throw new EndpointError2(`Unexpected endpoint property: ${property2}`);
268646
+ throw new EndpointError(`Unexpected endpoint property: ${property2}`);
268557
268647
  }
268558
268648
  return getEndpointProperties(property2, options);
268559
268649
  case "boolean":
268560
268650
  return property2;
268561
268651
  default:
268562
- throw new EndpointError2(`Unexpected endpoint property type: ${typeof property2}`);
268652
+ throw new EndpointError(`Unexpected endpoint property type: ${typeof property2}`);
268563
268653
  }
268564
268654
  };
268565
268655
  var getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({
@@ -268576,7 +268666,7 @@ var require_dist_cjs20 = __commonJS({
268576
268666
  throw error2;
268577
268667
  }
268578
268668
  }
268579
- throw new EndpointError2(`Endpoint URL must be a string, got ${typeof expression}`);
268669
+ throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);
268580
268670
  };
268581
268671
  var evaluateEndpointRule = (endpointRule, options) => {
268582
268672
  const { conditions, endpoint } = endpointRule;
@@ -268606,7 +268696,7 @@ var require_dist_cjs20 = __commonJS({
268606
268696
  if (!result) {
268607
268697
  return;
268608
268698
  }
268609
- throw new EndpointError2(evaluateExpression(error2, "Error", {
268699
+ throw new EndpointError(evaluateExpression(error2, "Error", {
268610
268700
  ...options,
268611
268701
  referenceRecord: { ...options.referenceRecord, ...referenceRecord }
268612
268702
  }));
@@ -268637,12 +268727,12 @@ var require_dist_cjs20 = __commonJS({
268637
268727
  return endpointOrUndefined;
268638
268728
  }
268639
268729
  } else {
268640
- throw new EndpointError2(`Unknown endpoint rule: ${rule}`);
268730
+ throw new EndpointError(`Unknown endpoint rule: ${rule}`);
268641
268731
  }
268642
268732
  }
268643
- throw new EndpointError2(`Rules evaluation failed`);
268733
+ throw new EndpointError(`Rules evaluation failed`);
268644
268734
  };
268645
- var resolveEndpoint4 = (ruleSetObject, options) => {
268735
+ var resolveEndpoint3 = (ruleSetObject, options) => {
268646
268736
  const { endpointParams, logger: logger2 } = options;
268647
268737
  const { parameters, rules } = ruleSetObject;
268648
268738
  options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
@@ -268655,7 +268745,7 @@ var require_dist_cjs20 = __commonJS({
268655
268745
  const requiredParams = Object.entries(parameters).filter(([, v3]) => v3.required).map(([k3]) => k3);
268656
268746
  for (const requiredParam of requiredParams) {
268657
268747
  if (endpointParams[requiredParam] == null) {
268658
- throw new EndpointError2(`Missing required parameter: '${requiredParam}'`);
268748
+ throw new EndpointError(`Missing required parameter: '${requiredParam}'`);
268659
268749
  }
268660
268750
  }
268661
268751
  const endpoint = evaluateRules(rules, { endpointParams, logger: logger2, referenceRecord: {} });
@@ -268663,11 +268753,11 @@ var require_dist_cjs20 = __commonJS({
268663
268753
  return endpoint;
268664
268754
  };
268665
268755
  exports2.EndpointCache = EndpointCache3;
268666
- exports2.EndpointError = EndpointError2;
268756
+ exports2.EndpointError = EndpointError;
268667
268757
  exports2.customEndpointFunctions = customEndpointFunctions3;
268668
- exports2.isIpAddress = isIpAddress2;
268758
+ exports2.isIpAddress = isIpAddress;
268669
268759
  exports2.isValidHostLabel = isValidHostLabel;
268670
- exports2.resolveEndpoint = resolveEndpoint4;
268760
+ exports2.resolveEndpoint = resolveEndpoint3;
268671
268761
  }
268672
268762
  });
268673
268763
 
@@ -268728,62 +268818,11 @@ var require_dist_cjs22 = __commonJS({
268728
268818
 
268729
268819
  // node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js
268730
268820
  var require_dist_cjs23 = __commonJS({
268731
- "node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js"(exports2, module2) {
268821
+ "node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js"(exports2) {
268732
268822
  "use strict";
268733
- var __defProp2 = Object.defineProperty;
268734
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
268735
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
268736
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
268737
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
268738
- var __export2 = (target, all) => {
268739
- for (var name14 in all)
268740
- __defProp2(target, name14, { get: all[name14], enumerable: true });
268741
- };
268742
- var __copyProps2 = (to, from, except, desc) => {
268743
- if (from && typeof from === "object" || typeof from === "function") {
268744
- for (let key of __getOwnPropNames2(from))
268745
- if (!__hasOwnProp2.call(to, key) && key !== except)
268746
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
268747
- }
268748
- return to;
268749
- };
268750
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
268751
- var index_exports2 = {};
268752
- __export2(index_exports2, {
268753
- ConditionObject: () => import_util_endpoints5.ConditionObject,
268754
- DeprecatedObject: () => import_util_endpoints5.DeprecatedObject,
268755
- EndpointError: () => import_util_endpoints5.EndpointError,
268756
- EndpointObject: () => import_util_endpoints5.EndpointObject,
268757
- EndpointObjectHeaders: () => import_util_endpoints5.EndpointObjectHeaders,
268758
- EndpointObjectProperties: () => import_util_endpoints5.EndpointObjectProperties,
268759
- EndpointParams: () => import_util_endpoints5.EndpointParams,
268760
- EndpointResolverOptions: () => import_util_endpoints5.EndpointResolverOptions,
268761
- EndpointRuleObject: () => import_util_endpoints5.EndpointRuleObject,
268762
- ErrorRuleObject: () => import_util_endpoints5.ErrorRuleObject,
268763
- EvaluateOptions: () => import_util_endpoints5.EvaluateOptions,
268764
- Expression: () => import_util_endpoints5.Expression,
268765
- FunctionArgv: () => import_util_endpoints5.FunctionArgv,
268766
- FunctionObject: () => import_util_endpoints5.FunctionObject,
268767
- FunctionReturn: () => import_util_endpoints5.FunctionReturn,
268768
- ParameterObject: () => import_util_endpoints5.ParameterObject,
268769
- ReferenceObject: () => import_util_endpoints5.ReferenceObject,
268770
- ReferenceRecord: () => import_util_endpoints5.ReferenceRecord,
268771
- RuleSetObject: () => import_util_endpoints5.RuleSetObject,
268772
- RuleSetRules: () => import_util_endpoints5.RuleSetRules,
268773
- TreeRuleObject: () => import_util_endpoints5.TreeRuleObject,
268774
- awsEndpointFunctions: () => awsEndpointFunctions3,
268775
- getUserAgentPrefix: () => getUserAgentPrefix,
268776
- isIpAddress: () => import_util_endpoints5.isIpAddress,
268777
- partition: () => partition,
268778
- resolveDefaultAwsRegionalEndpointsConfig: () => resolveDefaultAwsRegionalEndpointsConfig,
268779
- resolveEndpoint: () => import_util_endpoints5.resolveEndpoint,
268780
- setPartitionInfo: () => setPartitionInfo,
268781
- toEndpointV1: () => toEndpointV1,
268782
- useDefaultPartitionInfo: () => useDefaultPartitionInfo
268783
- });
268784
- module2.exports = __toCommonJS2(index_exports2);
268785
- var import_util_endpoints5 = require_dist_cjs20();
268786
- var isVirtualHostableS3Bucket = /* @__PURE__ */ __name((value, allowSubDomains = false) => {
268823
+ var utilEndpoints = require_dist_cjs20();
268824
+ var urlParser = require_dist_cjs22();
268825
+ var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
268787
268826
  if (allowSubDomains) {
268788
268827
  for (const label of value.split(".")) {
268789
268828
  if (!isVirtualHostableS3Bucket(label)) {
@@ -268792,7 +268831,7 @@ var require_dist_cjs23 = __commonJS({
268792
268831
  }
268793
268832
  return true;
268794
268833
  }
268795
- if (!(0, import_util_endpoints5.isValidHostLabel)(value)) {
268834
+ if (!utilEndpoints.isValidHostLabel(value)) {
268796
268835
  return false;
268797
268836
  }
268798
268837
  if (value.length < 3 || value.length > 63) {
@@ -268801,18 +268840,20 @@ var require_dist_cjs23 = __commonJS({
268801
268840
  if (value !== value.toLowerCase()) {
268802
268841
  return false;
268803
268842
  }
268804
- if ((0, import_util_endpoints5.isIpAddress)(value)) {
268843
+ if (utilEndpoints.isIpAddress(value)) {
268805
268844
  return false;
268806
268845
  }
268807
268846
  return true;
268808
- }, "isVirtualHostableS3Bucket");
268847
+ };
268809
268848
  var ARN_DELIMITER = ":";
268810
268849
  var RESOURCE_DELIMITER = "/";
268811
- var parseArn = /* @__PURE__ */ __name((value) => {
268850
+ var parseArn = (value) => {
268812
268851
  const segments = value.split(ARN_DELIMITER);
268813
- if (segments.length < 6) return null;
268852
+ if (segments.length < 6)
268853
+ return null;
268814
268854
  const [arn, partition2, service, region, accountId, ...resourcePath] = segments;
268815
- if (arn !== "arn" || partition2 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "") return null;
268855
+ if (arn !== "arn" || partition2 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
268856
+ return null;
268816
268857
  const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
268817
268858
  return {
268818
268859
  partition: partition2,
@@ -268821,9 +268862,9 @@ var require_dist_cjs23 = __commonJS({
268821
268862
  accountId,
268822
268863
  resourceId
268823
268864
  };
268824
- }, "parseArn");
268825
- var partitions_default = {
268826
- partitions: [{
268865
+ };
268866
+ var partitions = [
268867
+ {
268827
268868
  id: "aws",
268828
268869
  outputs: {
268829
268870
  dnsSuffix: "amazonaws.com",
@@ -268941,7 +268982,8 @@ var require_dist_cjs23 = __commonJS({
268941
268982
  description: "US West (Oregon)"
268942
268983
  }
268943
268984
  }
268944
- }, {
268985
+ },
268986
+ {
268945
268987
  id: "aws-cn",
268946
268988
  outputs: {
268947
268989
  dnsSuffix: "amazonaws.com.cn",
@@ -268963,7 +269005,8 @@ var require_dist_cjs23 = __commonJS({
268963
269005
  description: "China (Ningxia)"
268964
269006
  }
268965
269007
  }
268966
- }, {
269008
+ },
269009
+ {
268967
269010
  id: "aws-eusc",
268968
269011
  outputs: {
268969
269012
  dnsSuffix: "amazonaws.eu",
@@ -268979,7 +269022,8 @@ var require_dist_cjs23 = __commonJS({
268979
269022
  description: "EU (Germany)"
268980
269023
  }
268981
269024
  }
268982
- }, {
269025
+ },
269026
+ {
268983
269027
  id: "aws-iso",
268984
269028
  outputs: {
268985
269029
  dnsSuffix: "c2s.ic.gov",
@@ -269001,7 +269045,8 @@ var require_dist_cjs23 = __commonJS({
269001
269045
  description: "US ISO WEST"
269002
269046
  }
269003
269047
  }
269004
- }, {
269048
+ },
269049
+ {
269005
269050
  id: "aws-iso-b",
269006
269051
  outputs: {
269007
269052
  dnsSuffix: "sc2s.sgov.gov",
@@ -269020,7 +269065,8 @@ var require_dist_cjs23 = __commonJS({
269020
269065
  description: "US ISOB East (Ohio)"
269021
269066
  }
269022
269067
  }
269023
- }, {
269068
+ },
269069
+ {
269024
269070
  id: "aws-iso-e",
269025
269071
  outputs: {
269026
269072
  dnsSuffix: "cloud.adc-e.uk",
@@ -269039,7 +269085,8 @@ var require_dist_cjs23 = __commonJS({
269039
269085
  description: "EU ISOE West"
269040
269086
  }
269041
269087
  }
269042
- }, {
269088
+ },
269089
+ {
269043
269090
  id: "aws-iso-f",
269044
269091
  outputs: {
269045
269092
  dnsSuffix: "csp.hci.ic.gov",
@@ -269061,7 +269108,8 @@ var require_dist_cjs23 = __commonJS({
269061
269108
  description: "US ISOF SOUTH"
269062
269109
  }
269063
269110
  }
269064
- }, {
269111
+ },
269112
+ {
269065
269113
  id: "aws-us-gov",
269066
269114
  outputs: {
269067
269115
  dnsSuffix: "amazonaws.com",
@@ -269083,14 +269131,18 @@ var require_dist_cjs23 = __commonJS({
269083
269131
  description: "AWS GovCloud (US-West)"
269084
269132
  }
269085
269133
  }
269086
- }],
269087
- version: "1.1"
269134
+ }
269135
+ ];
269136
+ var version = "1.1";
269137
+ var partitionsInfo = {
269138
+ partitions,
269139
+ version
269088
269140
  };
269089
- var selectedPartitionsInfo = partitions_default;
269141
+ var selectedPartitionsInfo = partitionsInfo;
269090
269142
  var selectedUserAgentPrefix = "";
269091
- var partition = /* @__PURE__ */ __name((value) => {
269092
- const { partitions } = selectedPartitionsInfo;
269093
- for (const partition2 of partitions) {
269143
+ var partition = (value) => {
269144
+ const { partitions: partitions2 } = selectedPartitionsInfo;
269145
+ for (const partition2 of partitions2) {
269094
269146
  const { regions, outputs } = partition2;
269095
269147
  for (const [region, regionData] of Object.entries(regions)) {
269096
269148
  if (region === value) {
@@ -269101,7 +269153,7 @@ var require_dist_cjs23 = __commonJS({
269101
269153
  }
269102
269154
  }
269103
269155
  }
269104
- for (const partition2 of partitions) {
269156
+ for (const partition2 of partitions2) {
269105
269157
  const { regionRegex, outputs } = partition2;
269106
269158
  if (new RegExp(regionRegex).test(value)) {
269107
269159
  return {
@@ -269109,54 +269161,71 @@ var require_dist_cjs23 = __commonJS({
269109
269161
  };
269110
269162
  }
269111
269163
  }
269112
- const DEFAULT_PARTITION = partitions.find((partition2) => partition2.id === "aws");
269164
+ const DEFAULT_PARTITION = partitions2.find((partition2) => partition2.id === "aws");
269113
269165
  if (!DEFAULT_PARTITION) {
269114
- throw new Error(
269115
- "Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist."
269116
- );
269166
+ throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");
269117
269167
  }
269118
269168
  return {
269119
269169
  ...DEFAULT_PARTITION.outputs
269120
269170
  };
269121
- }, "partition");
269122
- var setPartitionInfo = /* @__PURE__ */ __name((partitionsInfo, userAgentPrefix = "") => {
269123
- selectedPartitionsInfo = partitionsInfo;
269171
+ };
269172
+ var setPartitionInfo = (partitionsInfo2, userAgentPrefix = "") => {
269173
+ selectedPartitionsInfo = partitionsInfo2;
269124
269174
  selectedUserAgentPrefix = userAgentPrefix;
269125
- }, "setPartitionInfo");
269126
- var useDefaultPartitionInfo = /* @__PURE__ */ __name(() => {
269127
- setPartitionInfo(partitions_default, "");
269128
- }, "useDefaultPartitionInfo");
269129
- var getUserAgentPrefix = /* @__PURE__ */ __name(() => selectedUserAgentPrefix, "getUserAgentPrefix");
269175
+ };
269176
+ var useDefaultPartitionInfo = () => {
269177
+ setPartitionInfo(partitionsInfo, "");
269178
+ };
269179
+ var getUserAgentPrefix = () => selectedUserAgentPrefix;
269130
269180
  var awsEndpointFunctions3 = {
269131
269181
  isVirtualHostableS3Bucket,
269132
269182
  parseArn,
269133
269183
  partition
269134
269184
  };
269135
- import_util_endpoints5.customEndpointFunctions.aws = awsEndpointFunctions3;
269136
- var import_url_parser3 = require_dist_cjs22();
269137
- var resolveDefaultAwsRegionalEndpointsConfig = /* @__PURE__ */ __name((input) => {
269185
+ utilEndpoints.customEndpointFunctions.aws = awsEndpointFunctions3;
269186
+ var resolveDefaultAwsRegionalEndpointsConfig = (input) => {
269138
269187
  if (typeof input.endpointProvider !== "function") {
269139
269188
  throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
269140
269189
  }
269141
269190
  const { endpoint } = input;
269142
269191
  if (endpoint === void 0) {
269143
269192
  input.endpoint = async () => {
269144
- return toEndpointV1(
269145
- input.endpointProvider(
269146
- {
269147
- Region: typeof input.region === "function" ? await input.region() : input.region,
269148
- UseDualStack: typeof input.useDualstackEndpoint === "function" ? await input.useDualstackEndpoint() : input.useDualstackEndpoint,
269149
- UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
269150
- Endpoint: void 0
269151
- },
269152
- { logger: input.logger }
269153
- )
269154
- );
269193
+ return toEndpointV1(input.endpointProvider({
269194
+ Region: typeof input.region === "function" ? await input.region() : input.region,
269195
+ UseDualStack: typeof input.useDualstackEndpoint === "function" ? await input.useDualstackEndpoint() : input.useDualstackEndpoint,
269196
+ UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
269197
+ Endpoint: void 0
269198
+ }, { logger: input.logger }));
269155
269199
  };
269156
269200
  }
269157
269201
  return input;
269158
- }, "resolveDefaultAwsRegionalEndpointsConfig");
269159
- var toEndpointV1 = /* @__PURE__ */ __name((endpoint) => (0, import_url_parser3.parseUrl)(endpoint.url), "toEndpointV1");
269202
+ };
269203
+ var toEndpointV1 = (endpoint) => urlParser.parseUrl(endpoint.url);
269204
+ Object.defineProperty(exports2, "EndpointError", {
269205
+ enumerable: true,
269206
+ get: function() {
269207
+ return utilEndpoints.EndpointError;
269208
+ }
269209
+ });
269210
+ Object.defineProperty(exports2, "isIpAddress", {
269211
+ enumerable: true,
269212
+ get: function() {
269213
+ return utilEndpoints.isIpAddress;
269214
+ }
269215
+ });
269216
+ Object.defineProperty(exports2, "resolveEndpoint", {
269217
+ enumerable: true,
269218
+ get: function() {
269219
+ return utilEndpoints.resolveEndpoint;
269220
+ }
269221
+ });
269222
+ exports2.awsEndpointFunctions = awsEndpointFunctions3;
269223
+ exports2.getUserAgentPrefix = getUserAgentPrefix;
269224
+ exports2.partition = partition;
269225
+ exports2.resolveDefaultAwsRegionalEndpointsConfig = resolveDefaultAwsRegionalEndpointsConfig;
269226
+ exports2.setPartitionInfo = setPartitionInfo;
269227
+ exports2.toEndpointV1 = toEndpointV1;
269228
+ exports2.useDefaultPartitionInfo = useDefaultPartitionInfo;
269160
269229
  }
269161
269230
  });
269162
269231
 
@@ -271373,7 +271442,7 @@ var init_AwsSmithyRpcV2CborProtocol = __esm({
271373
271442
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata);
271374
271443
  const ns = NormalizedSchema.of(errorSchema);
271375
271444
  const message = dataObject.message ?? dataObject.Message ?? "Unknown";
271376
- const ErrorCtor = TypeRegistry.for(errorSchema.namespace).getErrorCtor(errorSchema) ?? Error;
271445
+ const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
271377
271446
  const exception = new ErrorCtor(message);
271378
271447
  const output = {};
271379
271448
  for (const [name14, member2] of ns.structIterator()) {
@@ -272796,7 +272865,7 @@ var init_AwsJsonRpcProtocol = __esm({
272796
272865
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
272797
272866
  const ns = NormalizedSchema.of(errorSchema);
272798
272867
  const message = dataObject.message ?? dataObject.Message ?? "Unknown";
272799
- const ErrorCtor = TypeRegistry.for(errorSchema.namespace).getErrorCtor(errorSchema) ?? Error;
272868
+ const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
272800
272869
  const exception = new ErrorCtor(message);
272801
272870
  const output = {};
272802
272871
  for (const [name14, member2] of ns.structIterator()) {
@@ -272926,7 +272995,7 @@ var init_AwsRestJsonProtocol = __esm({
272926
272995
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
272927
272996
  const ns = NormalizedSchema.of(errorSchema);
272928
272997
  const message = dataObject.message ?? dataObject.Message ?? "Unknown";
272929
- const ErrorCtor = TypeRegistry.for(errorSchema.namespace).getErrorCtor(errorSchema) ?? Error;
272998
+ const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
272930
272999
  const exception = new ErrorCtor(message);
272931
273000
  await this.deserializeHttpMessage(errorSchema, context3, response, dataObject);
272932
273001
  const output = {};
@@ -273759,7 +273828,7 @@ var require_xml_parser = __commonJS({
273759
273828
  "node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js"(exports2) {
273760
273829
  "use strict";
273761
273830
  Object.defineProperty(exports2, "__esModule", { value: true });
273762
- exports2.parseXML = parseXML4;
273831
+ exports2.parseXML = parseXML3;
273763
273832
  var fast_xml_parser_1 = require_fxp();
273764
273833
  var parser = new fast_xml_parser_1.XMLParser({
273765
273834
  attributeNamePrefix: "",
@@ -273772,7 +273841,7 @@ var require_xml_parser = __commonJS({
273772
273841
  });
273773
273842
  parser.addEntity("#xD", "\r");
273774
273843
  parser.addEntity("#10", "\n");
273775
- function parseXML4(xmlString) {
273844
+ function parseXML3(xmlString) {
273776
273845
  return parser.parse(xmlString, true);
273777
273846
  }
273778
273847
  }
@@ -273780,60 +273849,27 @@ var require_xml_parser = __commonJS({
273780
273849
 
273781
273850
  // node_modules/@aws-sdk/xml-builder/dist-cjs/index.js
273782
273851
  var require_dist_cjs28 = __commonJS({
273783
- "node_modules/@aws-sdk/xml-builder/dist-cjs/index.js"(exports2, module2) {
273852
+ "node_modules/@aws-sdk/xml-builder/dist-cjs/index.js"(exports2) {
273784
273853
  "use strict";
273785
- var __defProp2 = Object.defineProperty;
273786
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
273787
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
273788
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
273789
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
273790
- var __export2 = (target, all) => {
273791
- for (var name14 in all)
273792
- __defProp2(target, name14, { get: all[name14], enumerable: true });
273793
- };
273794
- var __copyProps2 = (to, from, except, desc) => {
273795
- if (from && typeof from === "object" || typeof from === "function") {
273796
- for (let key of __getOwnPropNames2(from))
273797
- if (!__hasOwnProp2.call(to, key) && key !== except)
273798
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
273799
- }
273800
- return to;
273801
- };
273802
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
273803
- var index_exports2 = {};
273804
- __export2(index_exports2, {
273805
- XmlNode: () => XmlNode2,
273806
- XmlText: () => XmlText2,
273807
- parseXML: () => import_xml_parser.parseXML
273808
- });
273809
- module2.exports = __toCommonJS2(index_exports2);
273854
+ var xmlParser = require_xml_parser();
273810
273855
  function escapeAttribute(value) {
273811
273856
  return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
273812
273857
  }
273813
- __name(escapeAttribute, "escapeAttribute");
273814
273858
  function escapeElement(value) {
273815
273859
  return value.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\r/g, "&#x0D;").replace(/\n/g, "&#x0A;").replace(/\u0085/g, "&#x85;").replace(/\u2028/, "&#x2028;");
273816
273860
  }
273817
- __name(escapeElement, "escapeElement");
273818
273861
  var XmlText2 = class {
273862
+ value;
273819
273863
  constructor(value) {
273820
273864
  this.value = value;
273821
273865
  }
273822
- static {
273823
- __name(this, "XmlText");
273824
- }
273825
273866
  toString() {
273826
273867
  return escapeElement("" + this.value);
273827
273868
  }
273828
273869
  };
273829
273870
  var XmlNode2 = class _XmlNode {
273830
- constructor(name14, children = []) {
273831
- this.name = name14;
273832
- this.children = children;
273833
- }
273834
- static {
273835
- __name(this, "XmlNode");
273836
- }
273871
+ name;
273872
+ children;
273837
273873
  attributes = {};
273838
273874
  static of(name14, childText, withName) {
273839
273875
  const node = new _XmlNode(name14);
@@ -273845,6 +273881,10 @@ var require_dist_cjs28 = __commonJS({
273845
273881
  }
273846
273882
  return node;
273847
273883
  }
273884
+ constructor(name14, children = []) {
273885
+ this.name = name14;
273886
+ this.children = children;
273887
+ }
273848
273888
  withName(name14) {
273849
273889
  this.name = name14;
273850
273890
  return this;
@@ -273861,47 +273901,26 @@ var require_dist_cjs28 = __commonJS({
273861
273901
  delete this.attributes[name14];
273862
273902
  return this;
273863
273903
  }
273864
- /**
273865
- * @internal
273866
- * Alias of {@link XmlNode#withName(string)} for codegen brevity.
273867
- */
273868
273904
  n(name14) {
273869
273905
  this.name = name14;
273870
273906
  return this;
273871
273907
  }
273872
- /**
273873
- * @internal
273874
- * Alias of {@link XmlNode#addChildNode(string)} for codegen brevity.
273875
- */
273876
273908
  c(child) {
273877
273909
  this.children.push(child);
273878
273910
  return this;
273879
273911
  }
273880
- /**
273881
- * @internal
273882
- * Checked version of {@link XmlNode#addAttribute(string)} for codegen brevity.
273883
- */
273884
273912
  a(name14, value) {
273885
273913
  if (value != null) {
273886
273914
  this.attributes[name14] = value;
273887
273915
  }
273888
273916
  return this;
273889
273917
  }
273890
- /**
273891
- * Create a child node.
273892
- * Used in serialization of string fields.
273893
- * @internal
273894
- */
273895
273918
  cc(input, field, withName = field) {
273896
273919
  if (input[field] != null) {
273897
273920
  const node = _XmlNode.of(field, input[field]).withName(withName);
273898
273921
  this.c(node);
273899
273922
  }
273900
273923
  }
273901
- /**
273902
- * Creates list child nodes.
273903
- * @internal
273904
- */
273905
273924
  l(input, listName, memberName, valueProvider) {
273906
273925
  if (input[listName] != null) {
273907
273926
  const nodes = valueProvider();
@@ -273911,10 +273930,6 @@ var require_dist_cjs28 = __commonJS({
273911
273930
  });
273912
273931
  }
273913
273932
  }
273914
- /**
273915
- * Creates list child nodes with container.
273916
- * @internal
273917
- */
273918
273933
  lc(input, listName, memberName, valueProvider) {
273919
273934
  if (input[listName] != null) {
273920
273935
  const nodes = valueProvider();
@@ -273938,7 +273953,14 @@ var require_dist_cjs28 = __commonJS({
273938
273953
  return xmlText += !hasChildren ? "/>" : `>${this.children.map((c3) => c3.toString()).join("")}</${this.name}>`;
273939
273954
  }
273940
273955
  };
273941
- var import_xml_parser = require_xml_parser();
273956
+ Object.defineProperty(exports2, "parseXML", {
273957
+ enumerable: true,
273958
+ get: function() {
273959
+ return xmlParser.parseXML;
273960
+ }
273961
+ });
273962
+ exports2.XmlNode = XmlNode2;
273963
+ exports2.XmlText = XmlText2;
273942
273964
  }
273943
273965
  });
273944
273966
 
@@ -274339,7 +274361,7 @@ var init_AwsQueryProtocol = __esm({
274339
274361
  };
274340
274362
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, (registry, errorName) => registry.find((schema) => NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName));
274341
274363
  const ns = NormalizedSchema.of(errorSchema);
274342
- const ErrorCtor = TypeRegistry.for(errorSchema.namespace).getErrorCtor(errorSchema) ?? Error;
274364
+ const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
274343
274365
  const exception = new ErrorCtor(message);
274344
274366
  const output = {
274345
274367
  Error: errorData.Error
@@ -274802,7 +274824,7 @@ var init_AwsRestXmlProtocol = __esm({
274802
274824
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
274803
274825
  const ns = NormalizedSchema.of(errorSchema);
274804
274826
  const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown";
274805
- const ErrorCtor = TypeRegistry.for(errorSchema.namespace).getErrorCtor(errorSchema) ?? Error;
274827
+ const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
274806
274828
  const exception = new ErrorCtor(message);
274807
274829
  await this.deserializeHttpMessage(errorSchema, context3, response, dataObject);
274808
274830
  const output = {};
@@ -276043,32 +276065,9 @@ var require_dist_cjs33 = __commonJS({
276043
276065
 
276044
276066
  // node_modules/@aws-sdk/util-format-url/dist-cjs/index.js
276045
276067
  var require_dist_cjs34 = __commonJS({
276046
- "node_modules/@aws-sdk/util-format-url/dist-cjs/index.js"(exports2, module2) {
276068
+ "node_modules/@aws-sdk/util-format-url/dist-cjs/index.js"(exports2) {
276047
276069
  "use strict";
276048
- var __defProp2 = Object.defineProperty;
276049
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
276050
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
276051
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
276052
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
276053
- var __export2 = (target, all) => {
276054
- for (var name14 in all)
276055
- __defProp2(target, name14, { get: all[name14], enumerable: true });
276056
- };
276057
- var __copyProps2 = (to, from, except, desc) => {
276058
- if (from && typeof from === "object" || typeof from === "function") {
276059
- for (let key of __getOwnPropNames2(from))
276060
- if (!__hasOwnProp2.call(to, key) && key !== except)
276061
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
276062
- }
276063
- return to;
276064
- };
276065
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
276066
- var index_exports2 = {};
276067
- __export2(index_exports2, {
276068
- formatUrl: () => formatUrl
276069
- });
276070
- module2.exports = __toCommonJS2(index_exports2);
276071
- var import_querystring_builder = require_dist_cjs14();
276070
+ var querystringBuilder = require_dist_cjs14();
276072
276071
  function formatUrl(request) {
276073
276072
  const { port, query: query2 } = request;
276074
276073
  let { protocol, path: path7, hostname } = request;
@@ -276081,7 +276080,7 @@ var require_dist_cjs34 = __commonJS({
276081
276080
  if (path7 && path7.charAt(0) !== "/") {
276082
276081
  path7 = `/${path7}`;
276083
276082
  }
276084
- let queryString = query2 ? (0, import_querystring_builder.buildQueryString)(query2) : "";
276083
+ let queryString = query2 ? querystringBuilder.buildQueryString(query2) : "";
276085
276084
  if (queryString && queryString[0] !== "?") {
276086
276085
  queryString = `?${queryString}`;
276087
276086
  }
@@ -276097,7 +276096,7 @@ var require_dist_cjs34 = __commonJS({
276097
276096
  }
276098
276097
  return `${protocol}//${auth}${hostname}${path7}${queryString}${fragment}`;
276099
276098
  }
276100
- __name(formatUrl, "formatUrl");
276099
+ exports2.formatUrl = formatUrl;
276101
276100
  }
276102
276101
  });
276103
276102
 
@@ -278239,7 +278238,7 @@ var require_package = __commonJS({
278239
278238
  module2.exports = {
278240
278239
  name: "@aws-sdk/client-bedrock-runtime",
278241
278240
  description: "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
278242
- version: "3.908.0",
278241
+ version: "3.910.0",
278243
278242
  scripts: {
278244
278243
  build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
278245
278244
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
@@ -278258,49 +278257,49 @@ var require_package = __commonJS({
278258
278257
  dependencies: {
278259
278258
  "@aws-crypto/sha256-browser": "5.2.0",
278260
278259
  "@aws-crypto/sha256-js": "5.2.0",
278261
- "@aws-sdk/core": "3.908.0",
278262
- "@aws-sdk/credential-provider-node": "3.908.0",
278263
- "@aws-sdk/eventstream-handler-node": "3.901.0",
278264
- "@aws-sdk/middleware-eventstream": "3.901.0",
278265
- "@aws-sdk/middleware-host-header": "3.901.0",
278266
- "@aws-sdk/middleware-logger": "3.901.0",
278267
- "@aws-sdk/middleware-recursion-detection": "3.901.0",
278268
- "@aws-sdk/middleware-user-agent": "3.908.0",
278269
- "@aws-sdk/middleware-websocket": "3.908.0",
278270
- "@aws-sdk/region-config-resolver": "3.901.0",
278271
- "@aws-sdk/token-providers": "3.908.0",
278272
- "@aws-sdk/types": "3.901.0",
278273
- "@aws-sdk/util-endpoints": "3.901.0",
278274
- "@aws-sdk/util-user-agent-browser": "3.907.0",
278275
- "@aws-sdk/util-user-agent-node": "3.908.0",
278276
- "@smithy/config-resolver": "^4.3.0",
278277
- "@smithy/core": "^3.15.0",
278278
- "@smithy/eventstream-serde-browser": "^4.2.0",
278279
- "@smithy/eventstream-serde-config-resolver": "^4.3.0",
278280
- "@smithy/eventstream-serde-node": "^4.2.0",
278281
- "@smithy/fetch-http-handler": "^5.3.1",
278282
- "@smithy/hash-node": "^4.2.0",
278283
- "@smithy/invalid-dependency": "^4.2.0",
278284
- "@smithy/middleware-content-length": "^4.2.0",
278285
- "@smithy/middleware-endpoint": "^4.3.1",
278286
- "@smithy/middleware-retry": "^4.4.1",
278287
- "@smithy/middleware-serde": "^4.2.0",
278288
- "@smithy/middleware-stack": "^4.2.0",
278289
- "@smithy/node-config-provider": "^4.3.0",
278290
- "@smithy/node-http-handler": "^4.3.0",
278291
- "@smithy/protocol-http": "^5.3.0",
278292
- "@smithy/smithy-client": "^4.7.1",
278293
- "@smithy/types": "^4.6.0",
278294
- "@smithy/url-parser": "^4.2.0",
278260
+ "@aws-sdk/core": "3.910.0",
278261
+ "@aws-sdk/credential-provider-node": "3.910.0",
278262
+ "@aws-sdk/eventstream-handler-node": "3.910.0",
278263
+ "@aws-sdk/middleware-eventstream": "3.910.0",
278264
+ "@aws-sdk/middleware-host-header": "3.910.0",
278265
+ "@aws-sdk/middleware-logger": "3.910.0",
278266
+ "@aws-sdk/middleware-recursion-detection": "3.910.0",
278267
+ "@aws-sdk/middleware-user-agent": "3.910.0",
278268
+ "@aws-sdk/middleware-websocket": "3.910.0",
278269
+ "@aws-sdk/region-config-resolver": "3.910.0",
278270
+ "@aws-sdk/token-providers": "3.910.0",
278271
+ "@aws-sdk/types": "3.910.0",
278272
+ "@aws-sdk/util-endpoints": "3.910.0",
278273
+ "@aws-sdk/util-user-agent-browser": "3.910.0",
278274
+ "@aws-sdk/util-user-agent-node": "3.910.0",
278275
+ "@smithy/config-resolver": "^4.3.2",
278276
+ "@smithy/core": "^3.16.1",
278277
+ "@smithy/eventstream-serde-browser": "^4.2.2",
278278
+ "@smithy/eventstream-serde-config-resolver": "^4.3.2",
278279
+ "@smithy/eventstream-serde-node": "^4.2.2",
278280
+ "@smithy/fetch-http-handler": "^5.3.3",
278281
+ "@smithy/hash-node": "^4.2.2",
278282
+ "@smithy/invalid-dependency": "^4.2.2",
278283
+ "@smithy/middleware-content-length": "^4.2.2",
278284
+ "@smithy/middleware-endpoint": "^4.3.3",
278285
+ "@smithy/middleware-retry": "^4.4.3",
278286
+ "@smithy/middleware-serde": "^4.2.2",
278287
+ "@smithy/middleware-stack": "^4.2.2",
278288
+ "@smithy/node-config-provider": "^4.3.2",
278289
+ "@smithy/node-http-handler": "^4.4.1",
278290
+ "@smithy/protocol-http": "^5.3.2",
278291
+ "@smithy/smithy-client": "^4.8.1",
278292
+ "@smithy/types": "^4.7.1",
278293
+ "@smithy/url-parser": "^4.2.2",
278295
278294
  "@smithy/util-base64": "^4.3.0",
278296
278295
  "@smithy/util-body-length-browser": "^4.2.0",
278297
278296
  "@smithy/util-body-length-node": "^4.2.1",
278298
- "@smithy/util-defaults-mode-browser": "^4.3.0",
278299
- "@smithy/util-defaults-mode-node": "^4.2.1",
278300
- "@smithy/util-endpoints": "^3.2.0",
278301
- "@smithy/util-middleware": "^4.2.0",
278302
- "@smithy/util-retry": "^4.2.0",
278303
- "@smithy/util-stream": "^4.5.0",
278297
+ "@smithy/util-defaults-mode-browser": "^4.3.2",
278298
+ "@smithy/util-defaults-mode-node": "^4.2.3",
278299
+ "@smithy/util-endpoints": "^3.2.2",
278300
+ "@smithy/util-middleware": "^4.2.2",
278301
+ "@smithy/util-retry": "^4.2.2",
278302
+ "@smithy/util-stream": "^4.5.2",
278304
278303
  "@smithy/util-utf8": "^4.2.0",
278305
278304
  "@smithy/uuid": "^1.1.0",
278306
278305
  tslib: "^2.6.2"
@@ -279020,7 +279019,7 @@ var init_package = __esm({
279020
279019
  "node_modules/@aws-sdk/nested-clients/package.json"() {
279021
279020
  package_default = {
279022
279021
  name: "@aws-sdk/nested-clients",
279023
- version: "3.908.0",
279022
+ version: "3.910.0",
279024
279023
  description: "Nested clients for AWS SDK packages.",
279025
279024
  main: "./dist-cjs/index.js",
279026
279025
  module: "./dist-es/index.js",
@@ -279049,40 +279048,40 @@ var init_package = __esm({
279049
279048
  dependencies: {
279050
279049
  "@aws-crypto/sha256-browser": "5.2.0",
279051
279050
  "@aws-crypto/sha256-js": "5.2.0",
279052
- "@aws-sdk/core": "3.908.0",
279053
- "@aws-sdk/middleware-host-header": "3.901.0",
279054
- "@aws-sdk/middleware-logger": "3.901.0",
279055
- "@aws-sdk/middleware-recursion-detection": "3.901.0",
279056
- "@aws-sdk/middleware-user-agent": "3.908.0",
279057
- "@aws-sdk/region-config-resolver": "3.901.0",
279058
- "@aws-sdk/types": "3.901.0",
279059
- "@aws-sdk/util-endpoints": "3.901.0",
279060
- "@aws-sdk/util-user-agent-browser": "3.907.0",
279061
- "@aws-sdk/util-user-agent-node": "3.908.0",
279062
- "@smithy/config-resolver": "^4.3.0",
279063
- "@smithy/core": "^3.15.0",
279064
- "@smithy/fetch-http-handler": "^5.3.1",
279065
- "@smithy/hash-node": "^4.2.0",
279066
- "@smithy/invalid-dependency": "^4.2.0",
279067
- "@smithy/middleware-content-length": "^4.2.0",
279068
- "@smithy/middleware-endpoint": "^4.3.1",
279069
- "@smithy/middleware-retry": "^4.4.1",
279070
- "@smithy/middleware-serde": "^4.2.0",
279071
- "@smithy/middleware-stack": "^4.2.0",
279072
- "@smithy/node-config-provider": "^4.3.0",
279073
- "@smithy/node-http-handler": "^4.3.0",
279074
- "@smithy/protocol-http": "^5.3.0",
279075
- "@smithy/smithy-client": "^4.7.1",
279076
- "@smithy/types": "^4.6.0",
279077
- "@smithy/url-parser": "^4.2.0",
279051
+ "@aws-sdk/core": "3.910.0",
279052
+ "@aws-sdk/middleware-host-header": "3.910.0",
279053
+ "@aws-sdk/middleware-logger": "3.910.0",
279054
+ "@aws-sdk/middleware-recursion-detection": "3.910.0",
279055
+ "@aws-sdk/middleware-user-agent": "3.910.0",
279056
+ "@aws-sdk/region-config-resolver": "3.910.0",
279057
+ "@aws-sdk/types": "3.910.0",
279058
+ "@aws-sdk/util-endpoints": "3.910.0",
279059
+ "@aws-sdk/util-user-agent-browser": "3.910.0",
279060
+ "@aws-sdk/util-user-agent-node": "3.910.0",
279061
+ "@smithy/config-resolver": "^4.3.2",
279062
+ "@smithy/core": "^3.16.1",
279063
+ "@smithy/fetch-http-handler": "^5.3.3",
279064
+ "@smithy/hash-node": "^4.2.2",
279065
+ "@smithy/invalid-dependency": "^4.2.2",
279066
+ "@smithy/middleware-content-length": "^4.2.2",
279067
+ "@smithy/middleware-endpoint": "^4.3.3",
279068
+ "@smithy/middleware-retry": "^4.4.3",
279069
+ "@smithy/middleware-serde": "^4.2.2",
279070
+ "@smithy/middleware-stack": "^4.2.2",
279071
+ "@smithy/node-config-provider": "^4.3.2",
279072
+ "@smithy/node-http-handler": "^4.4.1",
279073
+ "@smithy/protocol-http": "^5.3.2",
279074
+ "@smithy/smithy-client": "^4.8.1",
279075
+ "@smithy/types": "^4.7.1",
279076
+ "@smithy/url-parser": "^4.2.2",
279078
279077
  "@smithy/util-base64": "^4.3.0",
279079
279078
  "@smithy/util-body-length-browser": "^4.2.0",
279080
279079
  "@smithy/util-body-length-node": "^4.2.1",
279081
- "@smithy/util-defaults-mode-browser": "^4.3.0",
279082
- "@smithy/util-defaults-mode-node": "^4.2.1",
279083
- "@smithy/util-endpoints": "^3.2.0",
279084
- "@smithy/util-middleware": "^4.2.0",
279085
- "@smithy/util-retry": "^4.2.0",
279080
+ "@smithy/util-defaults-mode-browser": "^4.3.2",
279081
+ "@smithy/util-defaults-mode-node": "^4.2.3",
279082
+ "@smithy/util-endpoints": "^3.2.2",
279083
+ "@smithy/util-middleware": "^4.2.2",
279084
+ "@smithy/util-retry": "^4.2.2",
279086
279085
  "@smithy/util-utf8": "^4.2.0",
279087
279086
  tslib: "^2.6.2"
279088
279087
  },
@@ -279493,38 +279492,9 @@ var init_runtimeConfig = __esm({
279493
279492
 
279494
279493
  // node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js
279495
279494
  var require_dist_cjs55 = __commonJS({
279496
- "node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js"(exports2, module2) {
279495
+ "node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js"(exports2) {
279497
279496
  "use strict";
279498
- var __defProp2 = Object.defineProperty;
279499
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
279500
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
279501
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
279502
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
279503
- var __export2 = (target, all) => {
279504
- for (var name14 in all)
279505
- __defProp2(target, name14, { get: all[name14], enumerable: true });
279506
- };
279507
- var __copyProps2 = (to, from, except, desc) => {
279508
- if (from && typeof from === "object" || typeof from === "function") {
279509
- for (let key of __getOwnPropNames2(from))
279510
- if (!__hasOwnProp2.call(to, key) && key !== except)
279511
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
279512
- }
279513
- return to;
279514
- };
279515
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
279516
- var index_exports2 = {};
279517
- __export2(index_exports2, {
279518
- NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS3,
279519
- NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS3,
279520
- REGION_ENV_NAME: () => REGION_ENV_NAME,
279521
- REGION_INI_NAME: () => REGION_INI_NAME,
279522
- getAwsRegionExtensionConfiguration: () => getAwsRegionExtensionConfiguration3,
279523
- resolveAwsRegionExtensionConfiguration: () => resolveAwsRegionExtensionConfiguration3,
279524
- resolveRegionConfig: () => resolveRegionConfig3
279525
- });
279526
- module2.exports = __toCommonJS2(index_exports2);
279527
- var getAwsRegionExtensionConfiguration3 = /* @__PURE__ */ __name((runtimeConfig) => {
279497
+ var getAwsRegionExtensionConfiguration3 = (runtimeConfig) => {
279528
279498
  return {
279529
279499
  setRegion(region) {
279530
279500
  runtimeConfig.region = region;
@@ -279533,48 +279503,55 @@ var require_dist_cjs55 = __commonJS({
279533
279503
  return runtimeConfig.region;
279534
279504
  }
279535
279505
  };
279536
- }, "getAwsRegionExtensionConfiguration");
279537
- var resolveAwsRegionExtensionConfiguration3 = /* @__PURE__ */ __name((awsRegionExtensionConfiguration) => {
279506
+ };
279507
+ var resolveAwsRegionExtensionConfiguration3 = (awsRegionExtensionConfiguration) => {
279538
279508
  return {
279539
279509
  region: awsRegionExtensionConfiguration.region()
279540
279510
  };
279541
- }, "resolveAwsRegionExtensionConfiguration");
279511
+ };
279542
279512
  var REGION_ENV_NAME = "AWS_REGION";
279543
279513
  var REGION_INI_NAME = "region";
279544
279514
  var NODE_REGION_CONFIG_OPTIONS3 = {
279545
- environmentVariableSelector: /* @__PURE__ */ __name((env) => env[REGION_ENV_NAME], "environmentVariableSelector"),
279546
- configFileSelector: /* @__PURE__ */ __name((profile) => profile[REGION_INI_NAME], "configFileSelector"),
279547
- default: /* @__PURE__ */ __name(() => {
279515
+ environmentVariableSelector: (env) => env[REGION_ENV_NAME],
279516
+ configFileSelector: (profile) => profile[REGION_INI_NAME],
279517
+ default: () => {
279548
279518
  throw new Error("Region is missing");
279549
- }, "default")
279519
+ }
279550
279520
  };
279551
279521
  var NODE_REGION_CONFIG_FILE_OPTIONS3 = {
279552
279522
  preferredFile: "credentials"
279553
279523
  };
279554
- var isFipsRegion = /* @__PURE__ */ __name((region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")), "isFipsRegion");
279555
- var getRealRegion = /* @__PURE__ */ __name((region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region, "getRealRegion");
279556
- var resolveRegionConfig3 = /* @__PURE__ */ __name((input) => {
279524
+ var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
279525
+ var getRealRegion = (region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region;
279526
+ var resolveRegionConfig3 = (input) => {
279557
279527
  const { region, useFipsEndpoint } = input;
279558
279528
  if (!region) {
279559
279529
  throw new Error("Region is missing");
279560
279530
  }
279561
279531
  return Object.assign(input, {
279562
- region: /* @__PURE__ */ __name(async () => {
279532
+ region: async () => {
279563
279533
  if (typeof region === "string") {
279564
279534
  return getRealRegion(region);
279565
279535
  }
279566
279536
  const providedRegion = await region();
279567
279537
  return getRealRegion(providedRegion);
279568
- }, "region"),
279569
- useFipsEndpoint: /* @__PURE__ */ __name(async () => {
279538
+ },
279539
+ useFipsEndpoint: async () => {
279570
279540
  const providedRegion = typeof region === "string" ? region : await region();
279571
279541
  if (isFipsRegion(providedRegion)) {
279572
279542
  return true;
279573
279543
  }
279574
279544
  return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
279575
- }, "useFipsEndpoint")
279545
+ }
279576
279546
  });
279577
- }, "resolveRegionConfig");
279547
+ };
279548
+ exports2.NODE_REGION_CONFIG_FILE_OPTIONS = NODE_REGION_CONFIG_FILE_OPTIONS3;
279549
+ exports2.NODE_REGION_CONFIG_OPTIONS = NODE_REGION_CONFIG_OPTIONS3;
279550
+ exports2.REGION_ENV_NAME = REGION_ENV_NAME;
279551
+ exports2.REGION_INI_NAME = REGION_INI_NAME;
279552
+ exports2.getAwsRegionExtensionConfiguration = getAwsRegionExtensionConfiguration3;
279553
+ exports2.resolveAwsRegionExtensionConfiguration = resolveAwsRegionExtensionConfiguration3;
279554
+ exports2.resolveRegionConfig = resolveRegionConfig3;
279578
279555
  }
279579
279556
  });
279580
279557
 
@@ -280495,7 +280472,7 @@ var require_package2 = __commonJS({
280495
280472
  module2.exports = {
280496
280473
  name: "@aws-sdk/client-sso",
280497
280474
  description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
280498
- version: "3.908.0",
280475
+ version: "3.910.0",
280499
280476
  scripts: {
280500
280477
  build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
280501
280478
  "build:cjs": "node ../../scripts/compilation/inline client-sso",
@@ -280514,40 +280491,40 @@ var require_package2 = __commonJS({
280514
280491
  dependencies: {
280515
280492
  "@aws-crypto/sha256-browser": "5.2.0",
280516
280493
  "@aws-crypto/sha256-js": "5.2.0",
280517
- "@aws-sdk/core": "3.908.0",
280518
- "@aws-sdk/middleware-host-header": "3.901.0",
280519
- "@aws-sdk/middleware-logger": "3.901.0",
280520
- "@aws-sdk/middleware-recursion-detection": "3.901.0",
280521
- "@aws-sdk/middleware-user-agent": "3.908.0",
280522
- "@aws-sdk/region-config-resolver": "3.901.0",
280523
- "@aws-sdk/types": "3.901.0",
280524
- "@aws-sdk/util-endpoints": "3.901.0",
280525
- "@aws-sdk/util-user-agent-browser": "3.907.0",
280526
- "@aws-sdk/util-user-agent-node": "3.908.0",
280527
- "@smithy/config-resolver": "^4.3.0",
280528
- "@smithy/core": "^3.15.0",
280529
- "@smithy/fetch-http-handler": "^5.3.1",
280530
- "@smithy/hash-node": "^4.2.0",
280531
- "@smithy/invalid-dependency": "^4.2.0",
280532
- "@smithy/middleware-content-length": "^4.2.0",
280533
- "@smithy/middleware-endpoint": "^4.3.1",
280534
- "@smithy/middleware-retry": "^4.4.1",
280535
- "@smithy/middleware-serde": "^4.2.0",
280536
- "@smithy/middleware-stack": "^4.2.0",
280537
- "@smithy/node-config-provider": "^4.3.0",
280538
- "@smithy/node-http-handler": "^4.3.0",
280539
- "@smithy/protocol-http": "^5.3.0",
280540
- "@smithy/smithy-client": "^4.7.1",
280541
- "@smithy/types": "^4.6.0",
280542
- "@smithy/url-parser": "^4.2.0",
280494
+ "@aws-sdk/core": "3.910.0",
280495
+ "@aws-sdk/middleware-host-header": "3.910.0",
280496
+ "@aws-sdk/middleware-logger": "3.910.0",
280497
+ "@aws-sdk/middleware-recursion-detection": "3.910.0",
280498
+ "@aws-sdk/middleware-user-agent": "3.910.0",
280499
+ "@aws-sdk/region-config-resolver": "3.910.0",
280500
+ "@aws-sdk/types": "3.910.0",
280501
+ "@aws-sdk/util-endpoints": "3.910.0",
280502
+ "@aws-sdk/util-user-agent-browser": "3.910.0",
280503
+ "@aws-sdk/util-user-agent-node": "3.910.0",
280504
+ "@smithy/config-resolver": "^4.3.2",
280505
+ "@smithy/core": "^3.16.1",
280506
+ "@smithy/fetch-http-handler": "^5.3.3",
280507
+ "@smithy/hash-node": "^4.2.2",
280508
+ "@smithy/invalid-dependency": "^4.2.2",
280509
+ "@smithy/middleware-content-length": "^4.2.2",
280510
+ "@smithy/middleware-endpoint": "^4.3.3",
280511
+ "@smithy/middleware-retry": "^4.4.3",
280512
+ "@smithy/middleware-serde": "^4.2.2",
280513
+ "@smithy/middleware-stack": "^4.2.2",
280514
+ "@smithy/node-config-provider": "^4.3.2",
280515
+ "@smithy/node-http-handler": "^4.4.1",
280516
+ "@smithy/protocol-http": "^5.3.2",
280517
+ "@smithy/smithy-client": "^4.8.1",
280518
+ "@smithy/types": "^4.7.1",
280519
+ "@smithy/url-parser": "^4.2.2",
280543
280520
  "@smithy/util-base64": "^4.3.0",
280544
280521
  "@smithy/util-body-length-browser": "^4.2.0",
280545
280522
  "@smithy/util-body-length-node": "^4.2.1",
280546
- "@smithy/util-defaults-mode-browser": "^4.3.0",
280547
- "@smithy/util-defaults-mode-node": "^4.2.1",
280548
- "@smithy/util-endpoints": "^3.2.0",
280549
- "@smithy/util-middleware": "^4.2.0",
280550
- "@smithy/util-retry": "^4.2.0",
280523
+ "@smithy/util-defaults-mode-browser": "^4.3.2",
280524
+ "@smithy/util-defaults-mode-node": "^4.2.3",
280525
+ "@smithy/util-endpoints": "^3.2.2",
280526
+ "@smithy/util-middleware": "^4.2.2",
280527
+ "@smithy/util-retry": "^4.2.2",
280551
280528
  "@smithy/util-utf8": "^4.2.0",
280552
280529
  tslib: "^2.6.2"
280553
280530
  },
@@ -283157,37 +283134,11 @@ var require_dist_cjs62 = __commonJS({
283157
283134
 
283158
283135
  // node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js
283159
283136
  var require_dist_cjs63 = __commonJS({
283160
- "node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js"(exports2, module2) {
283137
+ "node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js"(exports2) {
283161
283138
  "use strict";
283162
- var __defProp2 = Object.defineProperty;
283163
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
283164
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
283165
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
283166
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
283167
- var __export2 = (target, all) => {
283168
- for (var name14 in all)
283169
- __defProp2(target, name14, { get: all[name14], enumerable: true });
283170
- };
283171
- var __copyProps2 = (to, from, except, desc) => {
283172
- if (from && typeof from === "object" || typeof from === "function") {
283173
- for (let key of __getOwnPropNames2(from))
283174
- if (!__hasOwnProp2.call(to, key) && key !== except)
283175
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
283176
- }
283177
- return to;
283178
- };
283179
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
283180
- var index_exports2 = {};
283181
- __export2(index_exports2, {
283182
- eventStreamPayloadHandlerProvider: () => eventStreamPayloadHandlerProvider
283183
- });
283184
- module2.exports = __toCommonJS2(index_exports2);
283185
- var import_eventstream_codec = require_dist_cjs33();
283186
- var import_stream = __nccwpck_require__(2203);
283187
- var EventSigningStream = class extends import_stream.Transform {
283188
- static {
283189
- __name(this, "EventSigningStream");
283190
- }
283139
+ var eventstreamCodec = require_dist_cjs33();
283140
+ var stream2 = __nccwpck_require__(2203);
283141
+ var EventSigningStream = class extends stream2.Transform {
283191
283142
  priorSignature;
283192
283143
  messageSigner;
283193
283144
  eventStreamCodec;
@@ -283210,18 +283161,15 @@ var require_dist_cjs63 = __commonJS({
283210
283161
  const dateHeader = {
283211
283162
  ":date": { type: "timestamp", value: now }
283212
283163
  };
283213
- const signedMessage = await this.messageSigner.sign(
283214
- {
283215
- message: {
283216
- body: chunk,
283217
- headers: dateHeader
283218
- },
283219
- priorSignature: this.priorSignature
283164
+ const signedMessage = await this.messageSigner.sign({
283165
+ message: {
283166
+ body: chunk,
283167
+ headers: dateHeader
283220
283168
  },
283221
- {
283222
- signingDate: now
283223
- }
283224
- );
283169
+ priorSignature: this.priorSignature
283170
+ }, {
283171
+ signingDate: now
283172
+ });
283225
283173
  this.priorSignature = signedMessage.signature;
283226
283174
  const serializedSigned = this.eventStreamCodec.encode({
283227
283175
  headers: {
@@ -283244,27 +283192,23 @@ var require_dist_cjs63 = __commonJS({
283244
283192
  const buf = Buffer.from(signature, "hex");
283245
283193
  return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
283246
283194
  }
283247
- __name(getSignatureBinary, "getSignatureBinary");
283248
283195
  var EventStreamPayloadHandler = class {
283249
- static {
283250
- __name(this, "EventStreamPayloadHandler");
283251
- }
283252
283196
  messageSigner;
283253
283197
  eventStreamCodec;
283254
283198
  systemClockOffsetProvider;
283255
283199
  constructor(options) {
283256
283200
  this.messageSigner = options.messageSigner;
283257
- this.eventStreamCodec = new import_eventstream_codec.EventStreamCodec(options.utf8Encoder, options.utf8Decoder);
283201
+ this.eventStreamCodec = new eventstreamCodec.EventStreamCodec(options.utf8Encoder, options.utf8Decoder);
283258
283202
  this.systemClockOffsetProvider = async () => options.systemClockOffset ?? 0;
283259
283203
  }
283260
283204
  async handle(next, args, context3 = {}) {
283261
283205
  const request = args.request;
283262
283206
  const { body: payload2, query: query2 } = request;
283263
- if (!(payload2 instanceof import_stream.Readable)) {
283207
+ if (!(payload2 instanceof stream2.Readable)) {
283264
283208
  throw new Error("Eventstream payload must be a Readable stream.");
283265
283209
  }
283266
283210
  const payloadStream = payload2;
283267
- request.body = new import_stream.PassThrough({
283211
+ request.body = new stream2.PassThrough({
283268
283212
  objectMode: true
283269
283213
  });
283270
283214
  const match2 = request.headers?.authorization?.match(/Signature=([\w]+)$/);
@@ -283275,7 +283219,7 @@ var require_dist_cjs63 = __commonJS({
283275
283219
  messageSigner: await this.messageSigner(),
283276
283220
  systemClockOffsetProvider: this.systemClockOffsetProvider
283277
283221
  });
283278
- (0, import_stream.pipeline)(payloadStream, signingStream, request.body, (err) => {
283222
+ stream2.pipeline(payloadStream, signingStream, request.body, (err) => {
283279
283223
  if (err) {
283280
283224
  throw err;
283281
283225
  }
@@ -283290,7 +283234,8 @@ var require_dist_cjs63 = __commonJS({
283290
283234
  return result;
283291
283235
  }
283292
283236
  };
283293
- var eventStreamPayloadHandlerProvider = /* @__PURE__ */ __name((options) => new EventStreamPayloadHandler(options), "eventStreamPayloadHandlerProvider");
283237
+ var eventStreamPayloadHandlerProvider = (options) => new EventStreamPayloadHandler(options);
283238
+ exports2.eventStreamPayloadHandlerProvider = eventStreamPayloadHandlerProvider;
283294
283239
  }
283295
283240
  });
283296
283241
 
@@ -328849,13 +328794,14 @@ You are working with a repository located at: ${searchDirectory}
328849
328794
  maxTokens: maxResponseTokens,
328850
328795
  temperature: 0.3
328851
328796
  });
328797
+ const usagePromise = result.usage;
328852
328798
  for await (const delta of result.textStream) {
328853
328799
  assistantResponseContent += delta;
328854
328800
  if (options.onStream) {
328855
328801
  options.onStream(delta);
328856
328802
  }
328857
328803
  }
328858
- const usage = await result.usage;
328804
+ const usage = await usagePromise;
328859
328805
  if (usage) {
328860
328806
  this.tokenCounter.recordUsage(usage, result.experimental_providerMetadata);
328861
328807
  }
@@ -330006,13 +329952,12 @@ var init_simpleTelemetry = __esm({
330006
329952
  });
330007
329953
 
330008
329954
  // src/agent/fileSpanExporter.js
330009
- var import_fs9, import_core17, ExportResultCode, FileSpanExporter;
329955
+ var import_fs9, import_core17, FileSpanExporter;
330010
329956
  var init_fileSpanExporter = __esm({
330011
329957
  "src/agent/fileSpanExporter.js"() {
330012
329958
  "use strict";
330013
329959
  import_fs9 = __nccwpck_require__(79896);
330014
- import_core17 = __toESM(__nccwpck_require__(24637), 1);
330015
- ({ ExportResultCode } = import_core17.default);
329960
+ import_core17 = __nccwpck_require__(24637);
330016
329961
  FileSpanExporter = class {
330017
329962
  constructor(filePath = "./traces.jsonl") {
330018
329963
  this.filePath = filePath;
@@ -330028,7 +329973,7 @@ var init_fileSpanExporter = __esm({
330028
329973
  */
330029
329974
  export(spans, resultCallback) {
330030
329975
  if (!spans || spans.length === 0) {
330031
- resultCallback({ code: ExportResultCode.SUCCESS });
329976
+ resultCallback({ code: import_core17.ExportResultCode.SUCCESS });
330032
329977
  return;
330033
329978
  }
330034
329979
  try {
@@ -330079,11 +330024,11 @@ var init_fileSpanExporter = __esm({
330079
330024
  };
330080
330025
  this.stream.write(JSON.stringify(spanData) + "\n");
330081
330026
  });
330082
- resultCallback({ code: ExportResultCode.SUCCESS });
330027
+ resultCallback({ code: import_core17.ExportResultCode.SUCCESS });
330083
330028
  } catch (error2) {
330084
330029
  console.error(`[FileSpanExporter] Export error: ${error2.message}`);
330085
330030
  resultCallback({
330086
- code: ExportResultCode.FAILED,
330031
+ code: import_core17.ExportResultCode.FAILED,
330087
330032
  error: error2
330088
330033
  });
330089
330034
  }
@@ -330169,23 +330114,19 @@ function initializeTelemetryFromOptions(options) {
330169
330114
  config.initialize();
330170
330115
  return config;
330171
330116
  }
330172
- var import_sdk_node, import_resources, import_semantic_conventions, import_api, import_exporter_trace_otlp_http, import_sdk_trace_base, import_fs10, import_path11, NodeSDK, Resource, OTLPTraceExporter, BatchSpanProcessor, ConsoleSpanExporter, TelemetryConfig;
330117
+ var import_sdk_node, import_resources, import_semantic_conventions, import_api, import_exporter_trace_otlp_http, import_sdk_trace_base, import_fs10, import_path11, TelemetryConfig;
330173
330118
  var init_telemetry = __esm({
330174
330119
  "src/agent/telemetry.js"() {
330175
330120
  "use strict";
330176
- import_sdk_node = __toESM(__nccwpck_require__(17241), 1);
330177
- import_resources = __toESM(__nccwpck_require__(75647), 1);
330121
+ import_sdk_node = __nccwpck_require__(17241);
330122
+ import_resources = __nccwpck_require__(75647);
330178
330123
  import_semantic_conventions = __nccwpck_require__(13695);
330179
330124
  import_api = __nccwpck_require__(63914);
330180
- import_exporter_trace_otlp_http = __toESM(__nccwpck_require__(86004), 1);
330181
- import_sdk_trace_base = __toESM(__nccwpck_require__(94952), 1);
330125
+ import_exporter_trace_otlp_http = __nccwpck_require__(86004);
330126
+ import_sdk_trace_base = __nccwpck_require__(94952);
330182
330127
  import_fs10 = __nccwpck_require__(79896);
330183
330128
  import_path11 = __nccwpck_require__(16928);
330184
330129
  init_fileSpanExporter();
330185
- ({ NodeSDK } = import_sdk_node.default);
330186
- ({ Resource } = import_resources.default);
330187
- ({ OTLPTraceExporter } = import_exporter_trace_otlp_http.default);
330188
- ({ BatchSpanProcessor, ConsoleSpanExporter } = import_sdk_trace_base.default);
330189
330130
  TelemetryConfig = class {
330190
330131
  constructor(options = {}) {
330191
330132
  this.serviceName = options.serviceName || "probe-agent";
@@ -330206,7 +330147,7 @@ var init_telemetry = __esm({
330206
330147
  console.warn("Telemetry already initialized");
330207
330148
  return;
330208
330149
  }
330209
- const resource = new Resource({
330150
+ const resource = (0, import_resources.resourceFromAttributes)({
330210
330151
  [import_semantic_conventions.ATTR_SERVICE_NAME]: this.serviceName,
330211
330152
  [import_semantic_conventions.ATTR_SERVICE_VERSION]: this.serviceVersion
330212
330153
  });
@@ -330218,7 +330159,7 @@ var init_telemetry = __esm({
330218
330159
  (0, import_fs10.mkdirSync)(dir, { recursive: true });
330219
330160
  }
330220
330161
  const fileExporter = new FileSpanExporter(this.filePath);
330221
- spanProcessors.push(new BatchSpanProcessor(fileExporter, {
330162
+ spanProcessors.push(new import_sdk_trace_base.BatchSpanProcessor(fileExporter, {
330222
330163
  maxQueueSize: 2048,
330223
330164
  maxExportBatchSize: 512,
330224
330165
  scheduledDelayMillis: 500,
@@ -330231,10 +330172,10 @@ var init_telemetry = __esm({
330231
330172
  }
330232
330173
  if (this.enableRemote) {
330233
330174
  try {
330234
- const remoteExporter = new OTLPTraceExporter({
330175
+ const remoteExporter = new import_exporter_trace_otlp_http.OTLPTraceExporter({
330235
330176
  url: this.remoteEndpoint
330236
330177
  });
330237
- spanProcessors.push(new BatchSpanProcessor(remoteExporter, {
330178
+ spanProcessors.push(new import_sdk_trace_base.BatchSpanProcessor(remoteExporter, {
330238
330179
  maxQueueSize: 2048,
330239
330180
  maxExportBatchSize: 512,
330240
330181
  scheduledDelayMillis: 500,
@@ -330246,8 +330187,8 @@ var init_telemetry = __esm({
330246
330187
  }
330247
330188
  }
330248
330189
  if (this.enableConsole) {
330249
- const consoleExporter = new ConsoleSpanExporter();
330250
- spanProcessors.push(new BatchSpanProcessor(consoleExporter, {
330190
+ const consoleExporter = new import_sdk_trace_base.ConsoleSpanExporter();
330191
+ spanProcessors.push(new import_sdk_trace_base.BatchSpanProcessor(consoleExporter, {
330251
330192
  maxQueueSize: 2048,
330252
330193
  maxExportBatchSize: 512,
330253
330194
  scheduledDelayMillis: 500,
@@ -330259,7 +330200,7 @@ var init_telemetry = __esm({
330259
330200
  console.log("[Telemetry] No exporters configured, telemetry will not be collected");
330260
330201
  return;
330261
330202
  }
330262
- this.sdk = new NodeSDK({
330203
+ this.sdk = new import_sdk_node.NodeSDK({
330263
330204
  resource,
330264
330205
  spanProcessors
330265
330206
  });
@@ -360393,7 +360334,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"assert":true,"node:assert":[">= 14.1
360393
360334
  /***/ ((module) => {
360394
360335
 
360395
360336
  "use strict";
360396
- module.exports = {"rE":"0.1.92"};
360337
+ module.exports = {"rE":"0.1.94"};
360397
360338
 
360398
360339
  /***/ })
360399
360340