Refactor Foundry GitHub and sandbox flows

This commit is contained in:
Nathan Flurry 2026-03-12 10:51:33 -07:00
parent 4bccd5fc8d
commit ec8e816d0d
112 changed files with 4026 additions and 2715 deletions

View file

@ -22,7 +22,7 @@ import {
type SetSessionModeResponse,
type SetSessionModeRequest,
} from "acp-http-client";
import type { SandboxAgentSpawnHandle, SandboxAgentSpawnOptions } from "./spawn.ts";
import type { SandboxAgentSpawnHandle, SandboxAgentSpawnOptions } from "./spawn.js";
import {
type AcpServerListResponse,
type AgentInfo,
@ -73,7 +73,7 @@ import {
type TerminalExitStatus,
type TerminalReadyStatus,
type TerminalResizePayload,
} from "./types.ts";
} from "./types.js";
const API_PREFIX = "/v1";
const FS_PATH = `${API_PREFIX}/fs`;

View file

@ -8,11 +8,11 @@ export {
UnsupportedSessionCategoryError,
UnsupportedSessionConfigOptionError,
UnsupportedSessionValueError,
} from "./client.ts";
} from "./client.js";
export { AcpRpcError } from "acp-http-client";
export { buildInspectorUrl } from "./inspector.ts";
export { buildInspectorUrl } from "./inspector.js";
export type {
SandboxAgentHealthWaitOptions,
@ -33,11 +33,11 @@ export type {
PermissionRequestListener,
SessionPermissionRequest,
SessionPermissionRequestOption,
} from "./client.ts";
} from "./client.js";
export type { InspectorUrlOptions } from "./inspector.ts";
export type { InspectorUrlOptions } from "./inspector.js";
export { InMemorySessionPersistDriver } from "./types.ts";
export { InMemorySessionPersistDriver } from "./types.js";
export type {
AcpEnvelope,
@ -98,9 +98,9 @@ export type {
TerminalReadyStatus,
TerminalResizePayload,
TerminalStatusMessage,
} from "./types.ts";
} from "./types.js";
export type {
SandboxAgentSpawnLogMode,
SandboxAgentSpawnOptions,
} from "./spawn.ts";
} from "./spawn.js";

View file

@ -1,5 +1,5 @@
import type { AnyMessage, NewSessionRequest, SessionConfigOption, SessionModeState } from "acp-http-client";
import type { components, operations } from "./generated/openapi.ts";
import type { components, operations } from "./generated/openapi.js";
export type ProblemDetails = components["schemas"]["ProblemDetails"];