@tablation/crew 0.127.8 → 0.127.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +13 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -11509,7 +11509,7 @@ var SandboxRunner = class {
|
|
|
11509
11509
|
rmSync14(tmp, { recursive: true, force: true });
|
|
11510
11510
|
}
|
|
11511
11511
|
}
|
|
11512
|
-
const withStubs =
|
|
11512
|
+
const withStubs = `${sandboxEnvExports()}PATH=${shQuote2(SANDBOX_STUB_DIR)}:"$PATH"; export PATH; `;
|
|
11513
11513
|
const command2 = viaUpload ? ["sh", "-c", `${withStubs}exec ${[harness, ...plan.args].map(shQuote2).join(" ")} < ${SANDBOX_PROMPT_PATH}`] : ["sh", "-c", `${withStubs}exec "$@"`, "sh", harness, ...plan.args];
|
|
11514
11514
|
const child = spawn3(cfg.bin, ["sandbox", "exec", "-n", name, "--no-login-shell", "--workdir", cfg.workDir, "--", ...command2], {
|
|
11515
11515
|
env: process.env,
|
|
@@ -12837,8 +12837,10 @@ m=${VOLUME_ROOT}/"$1"; url="$2"
|
|
|
12837
12837
|
export GIT_TERMINAL_PROMPT=0
|
|
12838
12838
|
git config --global --add safe.directory '*'
|
|
12839
12839
|
if [ -n "$CREW_FORGE_TOKEN" ]; then
|
|
12840
|
-
|
|
12841
|
-
git()
|
|
12840
|
+
# An inline credential helper, not http.extraHeader: GitHub answers a preemptive Basic header
|
|
12841
|
+
# with 401 and git then prompts (CREW-2965). The helper body is single-quoted so the shell passes
|
|
12842
|
+
# it literally and git's own shell expands the env when it runs the helper: no token in argv.
|
|
12843
|
+
git() { command git -c credential.helper= -c 'credential.helper=!f() { echo username=\${CREW_FORGE_USER:-x-access-token}; echo password=$CREW_FORGE_TOKEN; }; f' "$@"; }
|
|
12842
12844
|
fi
|
|
12843
12845
|
if [ -d "$m" ]; then
|
|
12844
12846
|
git -C "$m" fetch --prune --atomic --quiet origin
|
|
@@ -13376,6 +13378,14 @@ var CREW_ENV = {
|
|
|
13376
13378
|
// A run cannot reach the download host, so an in-run update attempt is only noise.
|
|
13377
13379
|
DISABLE_AUTOUPDATER: "1"
|
|
13378
13380
|
};
|
|
13381
|
+
function sandboxEnvExports() {
|
|
13382
|
+
const vars = {
|
|
13383
|
+
...CREW_ENV,
|
|
13384
|
+
[SERENA_LANGUAGE_SERVERS_ENV]: `${SERENA_IMAGE_HOME}/language_servers`,
|
|
13385
|
+
UV_PYTHON_INSTALL_DIR: `${CREW_PREFIX}/uv/python`
|
|
13386
|
+
};
|
|
13387
|
+
return Object.entries(vars).map(([k, v]) => `${k}=${v}; export ${k}; `).join("");
|
|
13388
|
+
}
|
|
13379
13389
|
function claudeInstallCommand() {
|
|
13380
13390
|
const cases = Object.entries(SANDBOX_CLAUDE_SHA256).map(([arch, { platform: platform2, sha256: sha2562 }]) => `${arch}) p=${platform2}; sum=${sha2562};;`).join(" ");
|
|
13381
13391
|
return [
|
package/package.json
CHANGED