Something went wrong. Try again.
A collaborative coding-agent orchestrator for atproto radl.app
Something went wrong. Try again.
TypeScript
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154declare module 'node:process' { export const argv: string[] export const stdin: AsyncIterable<Uint8Array> & { isTTY?: boolean } export const stdout: unknown}
declare module 'node:readline/promises' { export function createInterface(options: { input: unknown; output: unknown }): { question(query: string): Promise<string> close(): void }}declare module 'node:fs' { export function realpathSync(path: string): string export function existsSync(path: string): boolean export function readFileSync(path: string, encoding: string): string}declare module 'node:url' { export function pathToFileURL(path: string): URL}declare module 'node:sqlite' { export class DatabaseSync { constructor(path: string) exec(sql: string): void prepare(sql: string): { get(...values: unknown[]): unknown; all(...values: unknown[]): unknown[]; run(...values: unknown[]): unknown } close(): void }}declare module 'node:fs' { export const constants: { O_RDONLY: number; O_NOFOLLOW: number; O_NONBLOCK: number }}declare module 'node:fs/promises' { export interface FileHandle { close(): Promise<void> writeFile(data: string | Uint8Array): Promise<void> stat(): Promise<{ isFile(): boolean; size: number }> readFile(): Promise<Uint8Array> } export function chmod(path: string, mode: number): Promise<void> export function appendFile(path: string, data: string | Uint8Array, options?: { mode?: number }): Promise<void> export function lstat(path: string): Promise<{ isFile(): boolean; isSymbolicLink(): boolean; mode: number }> export function mkdir(path: string, options?: { recursive?: boolean; mode?: number }): Promise<void> export function open(path: string, flags: string | number, mode?: number): Promise<FileHandle> export function readFile(path: string, encoding: string): Promise<string> export function rename(oldPath: string, newPath: string): Promise<void> export function rm(path: string, options?: { force?: boolean; recursive?: boolean }): Promise<void> export function writeFile(path: string, data: string | Uint8Array, options?: { mode?: number }): Promise<void>}declare module 'node:path' { export function dirname(path: string): string export function isAbsolute(path: string): boolean export function join(...paths: string[]): string export function resolve(...paths: string[]): string}declare const process: { argv: string[] arch: string platform: string version: string cwd(): string env: Record<string, string | undefined> exitCode?: number pid: number getuid?: () => number getgid?: () => number kill(pid: number, signal: number): void on(event: string, listener: (...args: unknown[]) => void): void}
declare module 'node:dns/promises' { export function resolveTxt(hostname: string): Promise<string[][]>}declare module 'node:crypto' { export interface Hash { update(data: string): Hash digest(): Uint8Array digest(encoding: 'hex'): string } export function createHash(algorithm: string): Hash}declare module 'node:crypto' { export interface KeyObject { export(options: { format: 'der'; type: 'spki' | 'pkcs8' }): Uint8Array } export function generateKeyPairSync(type: 'ed25519'): { publicKey: KeyObject; privateKey: KeyObject } export function createPrivateKey(key: string): KeyObject export function createPublicKey(key: KeyObject | string): KeyObject}declare module 'node:zlib' { // Really a `Buffer`, and the difference bites: the returned view sits inside a 16 KiB pool chunk, // and `Buffer.prototype.slice` is `subarray` rather than the copying Uint8Array method this type // promises. Anything that means to copy these bytes must do it a way that does not depend on // which of the two it got — see `uploadBlob` in `@radial/atproto`. export function gzipSync(data: Uint8Array): Uint8Array}declare module 'node:net' { export interface Socket { write(data: string | Uint8Array): boolean end(data?: string): void destroy(error?: Error): void setTimeout(ms: number, cb?: () => void): void pipe(destination: Socket): Socket on(event: 'data', listener: (chunk: Uint8Array) => void): Socket on(event: 'error', listener: (error: Error) => void): Socket on(event: 'end' | 'close' | 'timeout', listener: () => void): Socket } export interface Server { listen(path: string, cb?: () => void): Server listen(port: number, host: string, cb?: () => void): Server address(): { port: number } | null close(cb?: (error?: Error) => void): Server on(event: 'error', listener: (error: Error) => void): Server } export function createServer(listener: (socket: Socket) => void): Server export function connect(options: { host: string; port: number }, listener?: () => void): Socket}
declare module 'node:child_process' { export interface ChildProcess { stdout: { on(event: 'data', listener: (chunk: Uint8Array) => void): void } | null stderr: { on(event: 'data', listener: (chunk: Uint8Array) => void): void } | null on(event: 'close', listener: (code: number | null) => void): ChildProcess on(event: 'error', listener: (error: Error) => void): ChildProcess } export function spawn( command: string, args: string[], options?: { cwd?: string; env?: Record<string, string> }, ): ChildProcess}
declare module 'node:http' { import type { Socket } from 'node:net'
export interface IncomingMessage { url?: string headers: Record<string, string | undefined> } export interface ServerResponse { statusCode: number end(data?: string): void } export interface Server { listen(port: number, host: string, cb: () => void): Server address(): { port: number } | string | null close(cb: (error?: Error) => void): Server on(event: 'error', listener: (error: Error) => void): Server on(event: 'connect', listener: (req: IncomingMessage, socket: Socket, head: Uint8Array) => void): Server } export function createServer( requestListener?: (req: IncomingMessage, res: ServerResponse) => void, ): Server}