mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 13:03:46 +00:00
fix: add docker-setup action, runtime Dockerfile, and align release workflow
- Add .github/actions/docker-setup composite action (from rivet) - Add docker/runtime/Dockerfile for Docker image builds - Update release.yaml to match rivet patterns: - Use corepack enable instead of pnpm/action-setup - Add reuse_engine_version input - Add Docker job with Depot runners - Use --no-frozen-lockfile for pnpm install - Add id-token permission for setup job
This commit is contained in:
parent
f05389307a
commit
b49776145b
82 changed files with 1415 additions and 2430 deletions
|
|
@ -16,6 +16,27 @@ export function ensureUrl(rawUrl: string): string {
|
|||
return `https://${rawUrl}`;
|
||||
}
|
||||
|
||||
const INSPECTOR_URL = "https://inspect.sandboxagent.dev";
|
||||
|
||||
export function buildInspectorUrl({
|
||||
baseUrl,
|
||||
token,
|
||||
}: {
|
||||
baseUrl: string;
|
||||
token?: string;
|
||||
}): string {
|
||||
const normalized = normalizeBaseUrl(ensureUrl(baseUrl));
|
||||
const params = new URLSearchParams({ url: normalized });
|
||||
if (token) {
|
||||
params.set("token", token);
|
||||
}
|
||||
return `${INSPECTOR_URL}?${params.toString()}`;
|
||||
}
|
||||
|
||||
export function logInspectorUrl({ baseUrl, token }: { baseUrl: string; token?: string }): void {
|
||||
console.log(`Inspector: ${buildInspectorUrl({ baseUrl, token })}`);
|
||||
}
|
||||
|
||||
type HeaderOptions = {
|
||||
token?: string;
|
||||
extraHeaders?: Record<string, string>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue