Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agent-relay/sandbox",
"version": "0.1.6",
"version": "0.1.7",
"description": "Provider-agnostic sandbox runtimes and orchestration for agent workloads.",
"license": "Apache-2.0",
"type": "module",
Expand Down
10 changes: 10 additions & 0 deletions src/mount-script.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,16 @@ describe("exact local-layout contract", () => {
stateDir: join(localRoot, ".state"),
websocket: false,
});
for (const renderedTemplate of [
template.startShellTemplate,
template.flushShellTemplate,
]) {
assert.match(
renderedTemplate,
/--remote-path "\$relayfile_mount_remote_path"/,
"late-bound exact mounts must retain their remote-path filter",
);
}
const values = {
baseUrl: BASE.baseUrl,
workspaceId: BASE.workspaceId,
Expand Down
4 changes: 3 additions & 1 deletion src/mount-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,9 @@ function buildMountPathArg(path: string): string {
}

const DYNAMIC_LOCAL_DIR = "__relayfile_dynamic_local_dir__";
const DYNAMIC_REMOTE_PATH = "__relayfile_dynamic_remote_path__";
// Must be absolute so scopedRemoteRoots/buildMountArgs retain the sentinel
// until dynamicMountArgs replaces it with the late-bound shell variable.
const DYNAMIC_REMOTE_PATH = "/__relayfile_dynamic_remote_path__";

function dynamicMountArgs(
opts: RelayfileMountShellOptions,
Expand Down
Loading