Codex 03b8a0deb0 chore(repo): preserve production-48 source snapshot
Recover the existing 19 modified tracked files and 6 untracked source files
from the production working tree without changing their contents.

Production source HEAD: 439fd56fe120fdb9f855b50fa4df9ce2e71bb72a
Production build ID: QhoygcZ4-x42PwCgCEj1d
Captured: 2026-10-30; all 25 source file SHA256 values verified.
This is a source recovery checkpoint; no deployment was performed.
2026-10-30 15:37:23 +08:00

16 lines
1.3 KiB
TypeScript

export const UPSTREAM_COMMIT: string;
export type NativeTool = { name: string; description: string; inputSchema: object; readOnly: boolean };
export type NativeEvent = { type: string; eventId?: string; sessionId?: string; traceId?: string; payload?: Record<string, unknown> };
export type NativeResult = NativeEvent & { sessionId: string; response: string; usage?: Record<string, number>; projection?: Record<string, unknown> };
export function verifyRuntime(runtimeDir: string): Promise<{ commit: string; sha256: string }>;
export function runNativeZcode(options: {
runId: string; workspaceKey?: string; attemptId?: string; stateDir: string; runtimeDir: string; nodePath: string;
modelId: string; apiType?: string; instructions: string; prompt: string; context?: unknown;
sessionId?: string; signal?: AbortSignal; timeoutMs?: number; tools: NativeTool[];
model: (body: Record<string, unknown>, path: string, signal: AbortSignal) => Promise<Response>;
execute: (name: string, input: Record<string, unknown>, callId: string, signal: AbortSignal) => Promise<Record<string, unknown>>;
formatToolError?: (error: unknown) => string;
onEvent?: (event: NativeEvent | NativeResult) => Promise<void>;
onSandbox?: (metadata: { kind: string; commit: string }) => Promise<void>;
}): Promise<NativeResult>;