Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
35f0ffa
feat(box): Stop for .box/profile.toml, and give each local box profil…
Nov 19, 2026
4a1e720
feat(box): Stop build for a box runtime that has no local box profile
Nov 20, 2026
b60ff0f
refactor(box): Add the frame to derive the Runtime box profile from t…
Nov 19, 2026
2ac22d6
feat(box): Add a problem code for Runtime telemetry that is not Cloud…
Nov 19, 2026
9df2e6c
feat(box): Keep stdio MCP servers and tools in the derived Runtime pr…
Nov 19, 2026
cbddeec
feat(box): Derive the gateway routes of the Runtime box profile from …
Nov 19, 2026
559ae02
feat(box): Add the Runtime values to the Runtime box profile from the…
Nov 19, 2026
7a1e4da
test(box): Fit the gateway rule tests to box-integration and to the r…
Nov 19, 2026
c6dc336
feat(box): Send box telemetry to the log group of the runtime by default
Nov 19, 2026
a3ee1f1
feat(box): Give the derived Runtime profile the changes of aws/agentc…
Nov 19, 2026
bab52a9
feat(box): Stage the Runtime box profile that build derives from the …
Nov 19, 2026
9264977
fix(box): Give box the Runtime Python by a name that box does not alias
Nov 19, 2026
04f6bcc
feat(box): Name the packs that box ships with the @box/ scope
Nov 19, 2026
6c53232
chore(box): Pin box 0.1.11-linux-preview.7
Nov 19, 2026
eb30924
test(box): Pin what build does with two routes of one profile to one …
Nov 20, 2026
08f7334
feat(box): Stop build for a write grant in the code folder of a CodeZ…
Nov 20, 2026
ac3a9d5
test(box): Write no bytecode into src/assets when the start.py test i…
Nov 20, 2026
737e107
fix(box): Name the Runtime route of an entry with one host after the …
Nov 20, 2026
398299f
fix(box): Stop build for a host home path and an agent program that a…
Nov 20, 2026
2913cd2
fix(box): Give the Runtime no template grant that the local profile r…
Nov 20, 2026
e43ee62
fix(box): Take a telemetry table with no kind that adds to a CloudWat…
Nov 20, 2026
4283214
docs(box): Say where build stages the Runtime profile, and each stop …
Nov 20, 2026
3ba0bb6
test(box): Compare each route destination for equality, so that CodeQ…
Nov 20, 2026
4d165cd
fix(box): Stop build for a CloudWatch target that box refuses, and co…
Nov 20, 2026
afe56a6
docs(box): Make four comments and one message say what the code does
Nov 20, 2026
797ed4b
refactor(box): Give the rules one isTable and one RUNTIME_AWS_SIGNER
Nov 20, 2026
5d2eb4a
test(box): Skip the start.py tests on Windows
Nov 20, 2026
981588a
feat(box): Tell the user what the default log target sends, and let t…
Nov 20, 2026
dc1938e
fix(box): Stage no Runtime route to a target that build does not write
Nov 20, 2026
086bc46
fix(box): Keep the grants that only the Runtime has when the user rem…
Nov 20, 2026
bbc6430
fix(box): Give the agent the region of the Runtime, and send no AWS_P…
Nov 20, 2026
aa1e11c
fix(box): Stop build only for a key that cannot work on the Runtime, …
Nov 20, 2026
5595c28
revert(box): Remove the stop for a .box/profile.toml of the earlier l…
Nov 20, 2026
797024a
fix(box): Leave out a deny entry on the venv, as the venv is the code…
Nov 20, 2026
cbd378c
docs(box): Say in the README what a Box project holds after aws/agent…
Nov 20, 2026
a4f44a1
refactor(box): Remove dead fields, exports, and copies from the deriv…
Nov 20, 2026
fa622c8
fix(box): Keep the code folder in the Runtime PYTHONPATH of the agent…
Nov 20, 2026
96c321c
Merge box-integration (7252504c, aws/agentcore-cli#2862) into sa-5/bo…
Nov 20, 2026
77d250e
test(box): Run start.py main on both ways to read policies, and keep …
Nov 20, 2026
664e074
fix(box): Listen on the port of the protocol on the Runtime, whatever…
Nov 20, 2026
0744958
fix(box): Name the route of the first host of an entry after the entry
Nov 20, 2026
0a00f77
docs(box): Give the guide each change, stop, and warning of the deriv…
Nov 20, 2026
9637a93
feat(box): Name the first box that reads the profiles, and say so whe…
Nov 20, 2026
6ce7363
feat(box): Run CodeZip agents on the Runtime with no ffi shim
Nov 20, 2026
853a8a5
build(box): Pin box 0.1.11-mquang.preview.9, and give a box for a mac…
Nov 20, 2026
71864dd
test(box): Make the write of agentcore.json fail for each user, root too
Nov 20, 2026
5172252
docs(box): Put the doc of assertNotBoxProject on its function again
Nov 20, 2026
cc139a7
fix(box): Give no workload_port warning when the local ingress sets n…
Nov 20, 2026
ed0e4b0
fix(box): Name the route after the entry from the first host of the e…
Nov 20, 2026
f922797
test(box): Stage no Runtime [mcp] server for an HTTP MCP server whose…
Nov 20, 2026
9fb98f9
Merge box-integration (b8055125, aws/agentcore-cli#2865) into sa-5/bo…
Nov 20, 2026
eb8685b
refactor(box): Derive the Runtime paths from the code folder that dev…
Nov 20, 2026
d6330f6
test(box): Examine that the zip of a CodeZip runtime stages no ffi fo…
Nov 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 22 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,30 +197,32 @@ declares, not the ones you add in the stack.

## Running agents in Box (preview)

Two templates run their agent in a box, both under `agentcore dev` and on AgentCore Runtime:
`agent-python-strands-box` (CodeZip) and `agent-python-strands-box-container` (Container).
`agentcore create --template <name>` makes a Box project from either; every other template runs
its agent without box. A Box project holds that one runtime, so `agentcore add runtime` and
`agentcore export harness` refuse it. The runtime needs its `"box": { "version": ... }` in
`agentcore.json`, which create writes; build and deploy stop without it. box comes from the public GitHub release `v0.1.11-linux-preview.6` of
Seven templates run their agent in a box, both under `agentcore dev` and on AgentCore Runtime:
the CodeZip templates `agent-python-strands-box`, `agent-python-minimal-box`,
`agent-python-langchain-box`, `a2a-python-strands-box`, `agui-python-strands-box`, and
`mcp-python-fastmcp-box`, and the container template `agent-python-strands-box-container`.
`agentcore create --template <name>` makes a Box project from one of them; every other template
runs its agent without box. Each runtime of a Box project runs in a box, with its own box profile,
`.box/<runtime>/local/profile.toml`. `agentcore add runtime` adds a Python CodeZip runtime in a box
to a Box project, and refuses a TypeScript runtime and a Bedrock Agent import there.
`agentcore export harness` refuses a Box project. Each box runtime needs its
`"box": { "version": ... }` in `agentcore.json`, which create and add runtime write, and its local
box profile; build and deploy stop without them. Build derives the AgentCore Runtime profile of
each runtime from its local profile. box comes from the public GitHub release `v0.1.11-mquang.preview.9` of
[mquang-amazon/box-releases](https://github.com/mquang-amazon/box-releases). No token or account
is needed to download it.
is needed to download it. That release has only the Linux arm64 build that ships to AgentCore
Runtime. For `agentcore dev` and the profile checks of `build` on macOS, install the macOS build of
`v0.1.11-linux-preview.7`, or of a later release that has one.

`src/core/project/backends/boxRelease.json` pins two releases on their own, each with its
repository, version and SHA-256s:

- `box`: the Linux build that ships to AgentCore Runtime.
- `ffi`: the Python ffi shim a CodeZip agent needs in a box, by Python version. It can come from
another repository or version than box.

`bun scripts/bump-box-release.ts --box <version>` (or `--ffi <version>`, with `--box-repo` or
`--ffi-repo` to move repository) rewrites the file from the release's `SHA256SUMS.txt`.
`src/core/project/backends/boxRelease.json` pins the Linux build of box that ships to AgentCore
Runtime, with its repository, version and SHA-256. `bun scripts/bump-box-release.ts --box <version>`
(with `--box-repo` to move repository) rewrites the file from the release's `SHA256SUMS.txt`.

How each command uses it:

- A CodeZip agent's zip carries box. `build` and `deploy` download box once with `curl` into
`~/.agentcore/box/` and the ffi shim into `~/.agentcore/box-ffi/`, check each against its pinned
SHA-256, and stage box, its packs and the shim into the runtime's `.box-dist/`.
`~/.agentcore/box/`, check it against its pinned SHA-256, and stage box and its packs into the
runtime's `.box-dist/`.
- A container agent's image downloads box while it builds. `dev`, `build` and `deploy` stage the
release that `box.version` names, with its checksum, as `box-release.env` beside the Dockerfile
(`.box-dist/`, or `.box-dev/` under `dev`), and the Dockerfile downloads that release with `curl`,
Expand All @@ -234,8 +236,7 @@ How each command uses it:

Each box runtime names its release in `agentcore.json` with `"box": { "version": "<version>" }`,
which `agentcore create` writes. The pinned version keeps the checksums in `boxRelease.json`;
another version takes them from its release's `SHA256SUMS.txt`. `box.version` picks box only: the
ffi shim always comes from `boxRelease.json`. To try an unreleased box build,
another version takes them from its release's `SHA256SUMS.txt`. To try an unreleased box build,
publish it as a pre-release with the same file names and set `box.version` to it.

On AgentCore Runtime, box signs the agent's Bedrock and Memory calls with the execution role: the
Expand All @@ -254,7 +255,7 @@ agentcore invoke --runtime agent --session-id my-box-session-0000000000000000000
agentcore logs runtime --name agent --since 15m --query '"running profile"'
```

The CodeBuild log of the deploy shows `/tmp/box.tar.gz: OK` and `box 0.1.11-linux-preview.6`. The
The CodeBuild log of the deploy shows `/tmp/box.tar.gz: OK` and `box 0.1.11-mquang.preview.9`. The
second answer should say teal, and the runtime log shows `running profile ...` with no `ERROR`,
`blocked by egress control` or `AccessDenied` line. For a CodeZip agent, use
`--template agent-python-strands-box` and skip the container settings.
Expand Down
59 changes: 51 additions & 8 deletions docs/box-local-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ Runtime. Each box runtime names its box release in `agentcore.json` with
container they write the release and its checksum into `.box-dist/box-release.env` instead.
A container image downloads the Linux build while it builds, under `agentcore dev` too. For a
CodeZip agent, `agentcore dev` runs the `box` on your PATH: download the build for your machine
from the release, unpack it into a folder, and add that folder to your PATH. No local box checkout
is needed.
from the release, unpack it into a folder, and add that folder to your PATH. The pinned release,
`0.1.11-mquang.preview.9`, has only the Linux arm64 build. On macOS, use the macOS build of
`0.1.11-linux-preview.7`, the first box that reads the profiles the CLI writes, or of a later release.
No local box checkout is needed.

Dev, build and deploy run a runtime's agent in a box only when `agentcore.json` has
`"projectType": "box"` and the runtime has `"box": { "version": ... }`. `create` writes both, and
Expand Down Expand Up @@ -109,13 +111,16 @@ credential's egress to any host not in the list. Each entry is a `<host>` or
`<host>:<port>` string. The default port is 443. A port must be 1 to 65535.

```
printf '\n[egress.github]\ndestinations = ["api.github.com"]\nsecret.ref = "env://GITHUB_TOKEN"\n' >> "$DEMO/$PROJECT/.box/profile.toml"
printf '\n[egress.github]\ndestinations = ["api.github.com"]\nsecret.ref = "env://GITHUB_TOKEN"\n' >> "$DEMO/$PROJECT/.box/agent/local/profile.toml"
```

### What build and deploy do with the box profile

Build and deploy read `.box/profile.toml` and the policy files it lists under `policies`, and
turn them into the runtime's Box network. They change nothing in `.box/`.
Build and deploy read each runtime's own `.box/<runtime>/local/profile.toml` and the policy files
it lists under `policies`, and turn them into that runtime's Box network. They change nothing in
`.box/<runtime>/local/`. They stage the Runtime profile, its policy files, and box in the
`.box-dist/` folder of the code folder or of the build context, and write a copy of the profile,
the generated packs, and the policy files into `.box/<runtime>/aws/` for you to read.

- **Gateway targets.** Each host or `host:port` that an `[egress]` entry or a policy permit
names, and that the policy allows at least one request to, gets one passthrough target on
Expand All @@ -130,9 +135,47 @@ turn them into the runtime's Box network. They change nothing in `.box/`.
- **Warnings.** Build warns when Box enforces rules that the gateway does not (a path,
method, or forbid), when an entry's host gets no target, and when a target is signed for an
AWS service that no policy of the gateway's role grants.
- **The AgentCore Runtime profile.** The staged `.box-dist/profile.toml` has one
`[egress.<target>]` route through the gateway for each target of `<runtime>-box-egress`. Each policy
file is copied beside it, byte for byte, and listed under `policies`.
- **The AgentCore Runtime profile.** Build derives `.box-dist/profile.toml` from the local
profile. Each key of the local profile stays, and build changes
only what must differ on AgentCore Runtime:
- each `[egress]` host with a gateway target becomes one route to `<runtime>-box-egress`: the
first host of an entry keeps the name of the entry, so a pack's own entry of that name merges
with it, and each other host gets `[egress.<target>]`; an HTTP `[mcp.<name>]` server gets the
same gateway backend;
- the agent command, env, filesystem and ingress get their Runtime values: no `--reload`, no
`LOCAL_DEV`, no `AWS_PROFILE`, the region of the Runtime in place of your own, and the first
ingress on `0.0.0.0` on the port of the protocol;
- for CodeZip, each path of the code folder moves to the unpacked zip, and the venv's Python to
the Runtime's Python, in every table: the agent, each stdio `[mcp.<name>]` server, each
`[tool.<name>]`;
- the `@box/agentcore` packs, the project name, and the build region come in, and each CloudWatch
target signs with the execution role.

**The default log target.** With no `cloudwatch_logs` target, the Runtime profile gets
`[telemetry.agentcore]`: box sends its deny, permit, and trace records to the log group of the
runtime, `/aws/bedrock-agentcore/runtimes/<runtime ID>-DEFAULT`, log stream `otel-rt-logs`. box
reads these two names from `OTEL_EXPORTER_OTLP_LOGS_HEADERS`, which the Runtime sets. If the
Runtime does not set it, box does not start. The Runtime makes that log group, so its retention
applies, and it stays after you remove the runtime. CloudWatch Logs charges for the records it
gets. To send none, set `DISABLE_ADOT_OBSERVABILITY` to `"true"` in the `envVars` of the runtime
in `agentcore.json`. To send them to another log group, add a `cloudwatch_logs` target to the
local profile. `agentcore create` and `agentcore add runtime` give this notice for each box
runtime.

Build stops, and names the key and its line, for a value that cannot work on the Runtime: a
required grant or a command path in the project outside the code folder, in the venv, or in a
home folder (`${{ home }}`, `~`, `/Users`, `/home`); a CodeZip program that `PATH` finds, such as
`npx`; a CodeZip write grant in the code folder; `network.contain_egress = false`; a CloudWatch
target that box refuses; or a telemetry target that is not CloudWatch or `file`. Build warns, and
goes on, for what the Runtime does without: a `deny` entry or an optional grant with no place
there, a `deny` entry on the venv (the venv is the code folder on the Runtime), a `file` telemetry
target, and a program at an absolute path of the system, which build cannot see. Each policy file
is copied beside the profile, byte for byte.

Under `agentcore dev`, the CodeZip templates give the box `[project] access = "write"`, and box
then refuses a stdio server or a tool whose program is the venv's Python ("a link out of a folder
the box can write"). To run one, set `access = "read"` in `[project]` of the local profile.

- **No-auth targets need a newer L3.** A passthrough target with no outbound auth synthesizes
only with an `@aws/agentcore-cdk` that accepts it. Until that release is pinned, use a
local L3 build, as in step 5.
Expand Down
61 changes: 15 additions & 46 deletions scripts/bump-box-release.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/usr/bin/env bun

/**
Pins box, the box ffi shim, or both to a published GitHub release, in
src/core/project/backends/boxRelease.json. It reads each release's SHA256SUMS.txt, so the file
changes only to a version whose archives are published. It imports nothing from src/.
Pins box to a published GitHub release, in src/core/project/backends/boxRelease.json. It reads
the release's SHA256SUMS.txt, so the file changes only to a version whose archives are published.
It imports nothing from src/.

bun scripts/bump-box-release.ts --box <version> [--box-repo <owner/repo>]
bun scripts/bump-box-release.ts --ffi <version> [--ffi-repo <owner/repo>]
**/

import { join, resolve } from "node:path";
Expand All @@ -21,20 +20,16 @@ const FILE = join(
"boxRelease.json",
);
const LINUX_TARGET = "aarch64-unknown-linux-gnu";
/** box-ffi-python3.14-aarch64-unknown-linux-gnu.tar.gz is the shim for PYTHON_3_14. */
const FFI_ASSET = new RegExp(`^box-ffi-python(\\d+)\\.(\\d+)-${LINUX_TARGET}\\.tar\\.gz$`);

const { values } = parseArgs({
args: Bun.argv.slice(2),
options: {
box: { type: "string" },
"box-repo": { type: "string" },
ffi: { type: "string" },
"ffi-repo": { type: "string" },
},
});
if (!values.box && !values.ffi) {
console.error("Name a version: --box <version>, --ffi <version>, or both.");
if (!values.box) {
console.error("Name a version: --box <version>.");
process.exit(2);
}

Expand All @@ -52,39 +47,13 @@ async function checksums(repo: string, version: string): Promise<Map<string, str
}

const pinned = await Bun.file(FILE).json();

if (values.box) {
const repo = values["box-repo"] ?? pinned.box.repo;
const version = values.box;
const sums = await checksums(repo, version);
const asset = (target: string) => `box-v${version}-${target}.tar.gz`;
const linux = sums.get(asset(LINUX_TARGET));
if (!linux) throw new Error(`${repo} v${version} lists no ${asset(LINUX_TARGET)}`);
console.log(`box: ${pinned.box.repo} ${pinned.box.version} → ${repo} ${version}`);
pinned.box = {
repo,
version,
linux: { target: LINUX_TARGET, asset: asset(LINUX_TARGET), sha256: linux },
};
}

if (values.ffi) {
const repo = values["ffi-repo"] ?? pinned.ffi.repo;
const version = values.ffi;
const sums = await checksums(repo, version);
const pythons: Record<string, unknown> = {};
for (const [asset, sha256] of sums) {
const match = FFI_ASSET.exec(asset);
if (match) pythons[`PYTHON_${match[1]}_${match[2]}`] = { asset, sha256 };
}
if (Object.keys(pythons).length === 0) {
throw new Error(`${repo} v${version} lists no box-ffi-python*-${LINUX_TARGET}.tar.gz`);
}
console.log(
`ffi: ${pinned.ffi.repo} ${pinned.ffi.version} → ${repo} ${version} ` +
`(${Object.keys(pythons).join(", ")})`,
);
pinned.ffi = { repo, version, pythons };
}

await Bun.write(FILE, `${JSON.stringify(pinned, null, 2)}\n`);
const repo = values["box-repo"] ?? pinned.box.repo;
const version = values.box;
const sums = await checksums(repo, version);
const asset = `box-v${version}-${LINUX_TARGET}.tar.gz`;
const linux = sums.get(asset);
if (!linux) throw new Error(`${repo} v${version} lists no ${asset}`);
console.log(`box: ${pinned.box.repo} ${pinned.box.version} → ${repo} ${version}`);
const box = { repo, version, linux: { target: LINUX_TARGET, asset, sha256: linux } };

await Bun.write(FILE, `${JSON.stringify({ box }, null, 2)}\n`);
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ RUN uv sync --frozen --no-dev --no-install-project
COPY --chown=bedrock_agentcore:bedrock_agentcore . .
RUN uv sync --frozen --no-dev && /usr/local/bin/python -m pip uninstall -y uv

# The box profile, its policy files, and the generated box/agentcore pack, which build and deploy
# stage in the box dist folder; dev stages the project's .box/profile.toml there. The profile reads
# the gateway URL and the deployed resources from the environment through the pack and signs with a
# bare `aws://`, so the image runs `box run` directly, with no start script. box requires the profile
# be owned by the agent and writable only by it, and outside /app; the generated pack joins box's own
# packs beside the binary.
# The box profile, its policy files, and the generated @box/agentcore pack, which build and deploy
# stage in the box dist folder; dev stages the runtime's .box/<runtime>/local/profile.toml there.
# The profile reads the gateway URL and the deployed resources from the environment through the
# pack and signs with a bare `aws://`, so the image runs `box run` directly, with no start script.
# box requires the profile be owned by the agent and writable only by it, and outside /app; the
# generated pack joins box's own packs beside the binary.
COPY --chown=bedrock_agentcore:bedrock_agentcore ${BOX_DIST}/ /home/bedrock_agentcore/box-profile/
RUN set -eu; \
if [ -d /home/bedrock_agentcore/box-profile/resources ]; then \
Expand Down
71 changes: 47 additions & 24 deletions src/assets/templates/box-codezip/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# code paths that only the microVM knows, and hands over to `box run`.
#
# The box profile reads the deployed resources, the gateway URL, the Python interpreter and the code
# directory from the environment through the box/agentcore and box/agentcore-codezip packs, and
# directory from the environment through the @box/agentcore and @box/agentcore-codezip packs, and
# signs AWS routes with the execution role through a bare `aws://`. So there is nothing to fill in,
# no credentials to write, and no start.sh.
import json
Expand All @@ -26,8 +26,10 @@
PROFILE_DIR = "/tmp/box/profile"
PROFILE = os.path.join(PROFILE_DIR, "profile.toml")

for directory in (HOME, WORKSPACE, PROFILE_DIR):
os.makedirs(directory, exist_ok=True)
# The names of box's own interpreter aliases. box refuses a stdio MCP server whose program has one
# of these names, so a server on the Runtime's Python needs that Python by its versioned name.
INTERPRETER_ALIASES = ("python", "python3")


def staged_policies(path):
"""The policy files the staged profile's `policies` names.
Expand All @@ -53,25 +55,46 @@ def staged_policies(path):
return []


# box reads a profile's policy files from beside it, so copy the profile and each file its
# `policies` names out of the read-only zip, into this user's folder, outside the workspace.
staged_profile = os.path.join(DIST, "profile.toml")
shutil.copyfile(staged_profile, PROFILE)
policies = staged_policies(staged_profile)
for policy in policies:
destination = os.path.join(PROFILE_DIR, policy)
os.makedirs(os.path.dirname(destination), exist_ok=True)
shutil.copyfile(os.path.join(DIST, policy), destination)
def box_python(executable, version):
"""The Runtime's Python, `executable`, by a name that is not an interpreter alias of box: its
versioned file beside it (python3.12), else the file it links to, else `executable` itself."""
if os.path.basename(executable) not in INTERPRETER_ALIASES:
return executable
versioned = os.path.join(os.path.dirname(executable), f"python{version[0]}.{version[1]}")
if os.path.isfile(versioned) and os.access(versioned, os.X_OK):
return versioned
linked = os.path.realpath(executable)
if os.path.basename(linked) not in INTERPRETER_ALIASES:
return linked
return executable


def main():
for directory in (HOME, WORKSPACE, PROFILE_DIR):
os.makedirs(directory, exist_ok=True)

# box reads a profile's policy files from beside it, so copy the profile and each file its
# `policies` names out of the read-only zip, into this user's folder, outside the workspace.
staged_profile = os.path.join(DIST, "profile.toml")
shutil.copyfile(staged_profile, PROFILE)
for policy in staged_policies(staged_profile):
destination = os.path.join(PROFILE_DIR, policy)
os.makedirs(os.path.dirname(destination), exist_ok=True)
shutil.copyfile(os.path.join(DIST, policy), destination)

os.chdir(WORKSPACE)
os.execve(
BOX,
["box", "run", PROFILE, "--no-banner"],
{
**os.environ,
"HOME": HOME,
"BOX_CODE": CODE,
"BOX_PYTHON": box_python(sys.executable, sys.version_info),
"BOX_PYTHON_PREFIX": sys.base_prefix,
},
)


os.chdir(WORKSPACE)
os.execve(
BOX,
["box", "run", PROFILE, "--no-banner"],
{
**os.environ,
"HOME": HOME,
"BOX_CODE": CODE,
"BOX_PYTHON": sys.executable,
"BOX_PYTHON_PREFIX": sys.base_prefix,
},
)
if __name__ == "__main__":
main()
Loading
Loading