mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-16 19:04:40 +00:00
chore: sync workspace changes
This commit is contained in:
parent
4b5b390b7f
commit
4083baa1c1
55 changed files with 2431 additions and 840 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue