@vm0/cli 9.113.4 → 9.114.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34652,7 +34652,7 @@ if (DSN) {
34652
34652
  Sentry.init({
34653
34653
  dsn: DSN,
34654
34654
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
34655
- release: "9.113.4",
34655
+ release: "9.114.0",
34656
34656
  sendDefaultPii: false,
34657
34657
  tracesSampleRate: 0,
34658
34658
  shutdownTimeout: 500,
@@ -34671,7 +34671,7 @@ if (DSN) {
34671
34671
  }
34672
34672
  });
34673
34673
  Sentry.setContext("cli", {
34674
- version: "9.113.4",
34674
+ version: "9.114.0",
34675
34675
  command: process.argv.slice(2).join(" ")
34676
34676
  });
34677
34677
  Sentry.setContext("runtime", {
@@ -68486,6 +68486,30 @@ var networkPolicySchema = external_exports.object({
68486
68486
  unknownPolicy: firewallPolicyValueSchema
68487
68487
  });
68488
68488
  var networkPoliciesSchema = external_exports.record(external_exports.string(), networkPolicySchema);
68489
+ var AUTH_SECRET_PATTERN = /\$\{\{\s*secrets\.([a-zA-Z_][a-zA-Z0-9_]*)\s*\}\}/g;
68490
+ function basicAuthTemplateRe() {
68491
+ return /\$\{\{\s*basic\(\s*(?:(secrets|vars)\.([a-zA-Z_][a-zA-Z0-9_]*))?\s*,\s*(?:(secrets|vars)\.([a-zA-Z_][a-zA-Z0-9_]*))?\s*\)\s*\}\}/g;
68492
+ }
68493
+ function extractSecretNamesFromApis(apis) {
68494
+ const names = /* @__PURE__ */ new Set();
68495
+ for (const entry of apis) {
68496
+ for (const value of Object.values(entry.auth.headers)) {
68497
+ for (const match of value.matchAll(AUTH_SECRET_PATTERN)) {
68498
+ names.add(match[1]);
68499
+ }
68500
+ for (const match of value.matchAll(basicAuthTemplateRe())) {
68501
+ if (match[1] === "secrets" && match[2]) names.add(match[2]);
68502
+ if (match[3] === "secrets" && match[4]) names.add(match[4]);
68503
+ }
68504
+ }
68505
+ if (entry.auth.base) {
68506
+ for (const match of entry.auth.base.matchAll(AUTH_SECRET_PATTERN)) {
68507
+ names.add(match[1]);
68508
+ }
68509
+ }
68510
+ }
68511
+ return [...names];
68512
+ }
68489
68513
  var BASE_URL_VARS_PATTERN = /\$\{\{\s*vars\.([a-zA-Z_][a-zA-Z0-9_]*)\s*\}\}/;
68490
68514
  var BASE_URL_VARS_PATTERN_G = new RegExp(BASE_URL_VARS_PATTERN.source, "g");
68491
68515
 
@@ -74724,6 +74748,13 @@ async function getZeroRunAgentEvents(id, options) {
74724
74748
  if (result.status === 200) return result.body;
74725
74749
  handleError(result, `Failed to get zero run events for "${id}"`);
74726
74750
  }
74751
+ async function getZeroRunContext(id) {
74752
+ const config2 = await getClientConfig();
74753
+ const client = initClient(zeroRunContextContract, config2);
74754
+ const result = await client.getContext({ params: { id } });
74755
+ if (result.status === 200) return result.body;
74756
+ handleError(result, `Failed to get zero run context for "${id}"`);
74757
+ }
74727
74758
 
74728
74759
  // src/lib/api/domains/logs.ts
74729
74760
  init_esm_shims();
@@ -76487,6 +76518,7 @@ export {
76487
76518
  external_exports,
76488
76519
  volumeConfigSchema,
76489
76520
  agentDefinitionSchema,
76521
+ extractSecretNamesFromApis,
76490
76522
  ALL_RUN_STATUSES,
76491
76523
  MODEL_PROVIDER_TYPES,
76492
76524
  getSelectableProviderTypes,
@@ -76501,6 +76533,7 @@ export {
76501
76533
  getCustomModelPlaceholder,
76502
76534
  CONNECTOR_TYPES,
76503
76535
  connectorTypeSchema,
76536
+ getConnectorEnvironmentMapping,
76504
76537
  getConnectorDerivedNames,
76505
76538
  hasRequiredScopes,
76506
76539
  getScopeDiff,
@@ -76598,6 +76631,7 @@ export {
76598
76631
  createZeroRun,
76599
76632
  getZeroRun,
76600
76633
  getZeroRunAgentEvents,
76634
+ getZeroRunContext,
76601
76635
  listZeroLogs,
76602
76636
  searchZeroLogs,
76603
76637
  getSystemLog,
@@ -76647,4 +76681,4 @@ undici/lib/web/fetch/body.js:
76647
76681
  undici/lib/web/websocket/frame.js:
76648
76682
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
76649
76683
  */
76650
- //# sourceMappingURL=chunk-2TQ7ATTO.js.map
76684
+ //# sourceMappingURL=chunk-YGGTGOHH.js.map