Skip to content

Open-source, local-first AI agent for real work.

3.5 KB
Raw Blame
import { createCapabilityCatalog } from "./catalog.js";
import { FOUNDATION_ARTIFACT_CAPABILITIES } from "./foundation/artifact.js";
import { FOUNDATION_BROWSER_CAPABILITIES } from "./foundation/browser.js";
import { FOUNDATION_FILESYSTEM_CAPABILITIES } from "./foundation/filesystem.js";
import { FOUNDATION_GATEWAY_CAPABILITIES } from "./foundation/gateway.js";
import { FOUNDATION_JOB_CAPABILITIES } from "./foundation/job.js";
import { FOUNDATION_NETWORK_CAPABILITIES } from "./foundation/network.js";
import { FOUNDATION_STORAGE_CAPABILITIES } from "./foundation/storage.js";

export {
	ARTIFACT_LIFETIMES,
	type ArtifactDestination,
	type ArtifactPersistInput,
	type ArtifactRef,
	type ArtifactReleaseInput,
	FOUNDATION_ARTIFACT_CAPABILITIES,
	FOUNDATION_ARTIFACT_CAPABILITY_CATALOG,
	type PersistedArtifact,
} from "./foundation/artifact.js";
export {
	type BrowserActInput,
	type BrowserAction,
	type BrowserActionResult,
	type BrowserNavigateInput,
	type BrowserPageState,
	type BrowserReadTextInput,
	type BrowserRuntimeInstallInput,
	type BrowserRuntimePhase,
	type BrowserRuntimeStatus,
	type BrowserRuntimeStatusInput,
	type BrowserScreenshot,
	type BrowserScreenshotInput,
	type BrowserSession,
	type BrowserSessionCreateInput,
	type BrowserSessionInput,
	type BrowserSessionProfile,
	type BrowserSessionStatus,
	type BrowserSnapshot,
	type BrowserSnapshotInput,
	type BrowserSource,
	type BrowserTextContent,
	FOUNDATION_BROWSER_CAPABILITIES,
	FOUNDATION_BROWSER_CAPABILITY_CATALOG,
} from "./foundation/browser.js";
export {
	type FilesystemEntry,
	type FilesystemFileRef,
	type FilesystemListRecursiveInput,
	type FilesystemMoveInput,
	type FilesystemPathInput,
	type FilesystemReadBinaryFileResult,
	type FilesystemReadFileResult,
	type FilesystemRenameInput,
	type FilesystemStatResult,
	type FilesystemWriteFileInput,
	FOUNDATION_FILESYSTEM_CAPABILITIES,
	FOUNDATION_FILESYSTEM_CAPABILITY_CATALOG,
} from "./foundation/filesystem.js";
export {
	FOUNDATION_GATEWAY_CAPABILITIES,
	FOUNDATION_GATEWAY_CAPABILITY_CATALOG,
	type GatewayRequestInput,
} from "./foundation/gateway.js";
export {
	FOUNDATION_JOB_CAPABILITIES,
	FOUNDATION_JOB_CAPABILITY_CATALOG,
	JOB_ERROR_CODES,
	JOB_STATUSES,
	type Job,
	type JobFailure,
	type JobProgress,
	type JobRef,
	type JobStatus,
} from "./foundation/job.js";
export {
	type CapabilityJsonMap,
	type CapabilityJsonValue,
	parseCapabilityJsonMap,
	parseCapabilityJsonValue,
} from "./foundation/json.js";
export {
	FOUNDATION_NETWORK_CAPABILITIES,
	FOUNDATION_NETWORK_CAPABILITY_CATALOG,
	type NetworkRequestInput,
} from "./foundation/network.js";
export {
	FOUNDATION_STORAGE_CAPABILITIES,
	FOUNDATION_STORAGE_CAPABILITY_CATALOG,
	type StorageBlob,
	type StorageBlobFilePutInput,
	type StorageBlobFileWrite,
	type StorageBlobPutInput,
	type StorageBlobReadInput,
	type StorageBlobRef,
	type StorageBlobWrite,
	type StorageCommitEntry,
	type StorageCommitInput,
	type StorageFileReadInput,
	type StorageGetAllInput,
	type StorageListInput,
	type StorageRemoveInput,
	type StorageSetInput,
	type StorageSnapshotReadInput,
} from "./foundation/storage.js";

export const FOUNDATION_CAPABILITY_CATALOG = createCapabilityCatalog([
	...Object.values(FOUNDATION_ARTIFACT_CAPABILITIES),
	...Object.values(FOUNDATION_BROWSER_CAPABILITIES),
	...Object.values(FOUNDATION_FILESYSTEM_CAPABILITIES),
	...Object.values(FOUNDATION_JOB_CAPABILITIES),
	...Object.values(FOUNDATION_STORAGE_CAPABILITIES),
	...Object.values(FOUNDATION_NETWORK_CAPABILITIES),
	...Object.values(FOUNDATION_GATEWAY_CAPABILITIES),
]);