mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 11:02:20 +00:00
fix: correct inspector package name in Dockerfiles and add .dockerignore (#50)
* chore: remove inspect.sandboxagent.dev in favor of /ui/ * chore: add 404 page * fix: correct inspector package name in Dockerfiles and add .dockerignore - Change @anthropic-ai/sdk-inspector to @sandbox-agent/inspector in all Dockerfiles - Add .dockerignore to exclude target/, node_modules/, etc from Docker context The wrong package name caused pnpm install --filter to match nothing, so the inspector frontend was never built, resulting in binaries without the /ui/ endpoint. * chore: cargo fmt * chore(release): update version to 0.1.4-rc.7
This commit is contained in:
parent
cacb63ef17
commit
e3c030f66d
57 changed files with 927 additions and 771 deletions
|
|
@ -18,8 +18,6 @@ export function ensureUrl(rawUrl: string): string {
|
|||
return `https://${rawUrl}`;
|
||||
}
|
||||
|
||||
const INSPECTOR_URL = "https://inspect.sandboxagent.dev";
|
||||
|
||||
export function buildInspectorUrl({
|
||||
baseUrl,
|
||||
token,
|
||||
|
|
@ -30,14 +28,15 @@ export function buildInspectorUrl({
|
|||
headers?: Record<string, string>;
|
||||
}): string {
|
||||
const normalized = normalizeBaseUrl(ensureUrl(baseUrl));
|
||||
const params = new URLSearchParams({ url: normalized });
|
||||
const params = new URLSearchParams();
|
||||
if (token) {
|
||||
params.set("token", token);
|
||||
}
|
||||
if (headers && Object.keys(headers).length > 0) {
|
||||
params.set("headers", JSON.stringify(headers));
|
||||
}
|
||||
return `${INSPECTOR_URL}?${params.toString()}`;
|
||||
const queryString = params.toString();
|
||||
return `${normalized}/ui/${queryString ? `?${queryString}` : ""}`;
|
||||
}
|
||||
|
||||
export function logInspectorUrl({
|
||||
|
|
@ -432,11 +431,11 @@ export async function runPrompt(options: RunPromptOptions): Promise<void> {
|
|||
}
|
||||
}
|
||||
|
||||
// Print text deltas
|
||||
if (event.type === "item.delta") {
|
||||
// Print text deltas (only during assistant turn)
|
||||
if (event.type === "item.delta" && isThinking) {
|
||||
const delta = (event.data as any)?.delta;
|
||||
if (delta) {
|
||||
if (isThinking && !hasStartedOutput) {
|
||||
if (!hasStartedOutput) {
|
||||
process.stdout.write("\r\x1b[K"); // Clear line
|
||||
hasStartedOutput = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue