@rallycry/conveyor-agent 11.0.20 → 11.0.21

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.
@@ -1,11 +1,14 @@
1
1
  import {
2
+ POD_PROFILE_ENV,
2
3
  awaitGitReady,
3
4
  buildSessionPreviewPorts,
5
+ isPodProfile,
4
6
  loadForwardPorts,
7
+ podProfileRunsWorkload,
5
8
  readWorkspaceBytes,
6
9
  statWorkspacePath,
7
10
  workspacePathExists
8
- } from "./chunk-JBGPARLG.js";
11
+ } from "./chunk-4ZDIBDQC.js";
9
12
  import {
10
13
  reportBootMilestone
11
14
  } from "./chunk-Q4FQOJ7D.js";
@@ -91,11 +94,21 @@ async function runDbSchemaSync(options) {
91
94
 
92
95
  // src/setup/deps-sync.ts
93
96
  import { join as join2 } from "path";
97
+
98
+ // src/setup/pod-profile-env.ts
99
+ function podRunsWorkload(env = process.env) {
100
+ const raw = env[POD_PROFILE_ENV]?.trim();
101
+ if (!raw || !isPodProfile(raw)) return true;
102
+ return podProfileRunsWorkload(raw);
103
+ }
104
+
105
+ // src/setup/deps-sync.ts
94
106
  var INSTALLER_SCRIPT_CANDIDATES = ["scripts/install-deps.sh"];
95
107
  var BUN_INSTALL = "bun install --frozen-lockfile";
96
108
  var DEPS_SYNC_TIMEOUT_MS = 9e5;
97
109
  var REGISTRY_KEY_ENV = "NPM_CACHE_READER_KEY";
98
110
  function isDisabled2(env) {
111
+ if (!podRunsWorkload(env)) return true;
99
112
  const flag = env.CONVEYOR_DEPS_SYNC?.trim().toLowerCase();
100
113
  return flag === "0" || flag === "false";
101
114
  }
@@ -276,6 +289,7 @@ function parseHostPort(value, defaultPort) {
276
289
  }
277
290
  function resolveSidecarTargets(env = process.env) {
278
291
  const targets = [];
292
+ if (!podRunsWorkload(env)) return targets;
279
293
  const databaseUrl = env.DATABASE_URL;
280
294
  if (databaseUrl) {
281
295
  try {