chore: sync workspace changes

This commit is contained in:
Nathan Flurry 2026-01-26 22:29:10 -08:00
parent 4b5b390b7f
commit 4083baa1c1
55 changed files with 2431 additions and 840 deletions

View file

@ -20,10 +20,11 @@
"dist"
],
"scripts": {
"generate:openapi": "cargo check -p sandbox-agent-openapi-gen && cargo run -p sandbox-agent-openapi-gen -- --out ../openapi/openapi.json",
"generate:types": "openapi-typescript ../openapi/openapi.json -o src/generated/openapi.ts",
"generate:openapi": "cargo check -p sandbox-agent-openapi-gen && cargo run -p sandbox-agent-openapi-gen -- --out ../../docs/openapi.json",
"generate:types": "openapi-typescript ../../docs/openapi.json -o src/generated/openapi.ts",
"generate": "pnpm run generate:openapi && pnpm run generate:types",
"build": "pnpm run generate && tsc -p tsconfig.json"
"build": "pnpm run generate && tsc -p tsconfig.json",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@types/node": "^22.0.0",

View file

@ -22,6 +22,9 @@ export interface paths {
"/v1/health": {
get: operations["get_health"];
};
"/v1/sessions": {
get: operations["list_sessions"];
};
"/v1/sessions/{session_id}": {
post: operations["create_session"];
};
@ -179,6 +182,21 @@ export interface components {
callId: string;
messageId: string;
};
SessionInfo: {
agent: string;
agentMode: string;
agentSessionId?: string | null;
ended: boolean;
/** Format: int64 */
eventCount: number;
model?: string | null;
permissionMode: string;
sessionId: string;
variant?: string | null;
};
SessionListResponse: {
sessions: components["schemas"]["SessionInfo"][];
};
Started: {
details?: unknown;
message?: string | null;
@ -358,6 +376,15 @@ export interface operations {
};
};
};
list_sessions: {
responses: {
200: {
content: {
"application/json": components["schemas"]["SessionListResponse"];
};
};
};
};
create_session: {
parameters: {
path: {

View file

@ -1,6 +1,5 @@
import type { ChildProcess } from "node:child_process";
import type { AddressInfo } from "node:net";
import type { NodeRequire } from "node:module";
export type SandboxDaemonSpawnLogMode = "inherit" | "pipe" | "silent";
@ -68,7 +67,7 @@ export async function spawnSandboxDaemon(
}
const stdio = logMode === "inherit" ? "inherit" : logMode === "silent" ? "ignore" : "pipe";
const args = ["--host", bindHost, "--port", String(port), "--token", token];
const args = ["server", "--host", bindHost, "--port", String(port), "--token", token];
const child = spawn(binaryPath, args, {
stdio,
env: {
@ -112,7 +111,7 @@ function resolveBinaryFromEnv(fs: typeof import("node:fs"), path: typeof import(
}
function resolveBinaryFromCliPackage(
require: NodeRequire,
require: ReturnType<typeof import("node:module").createRequire>,
path: typeof import("node:path"),
fs: typeof import("node:fs"),
): string | null {