import { type WorkflowRun } from '../engine/runtime.js'; import { type ApplicationRunRecord } from './application-run-record.js'; import type { ApplicationIdentity, WorkflowApplicationManifest } from './types.js'; import { type WorkflowApplicationDefinition } from './application-definition.js'; export interface WorkflowApplicationRunObservation { applicationId: string; storageKey: string; runId: string | null; record: ApplicationRunRecord | null; error: { code: string; message: string; } | null; } export declare function workflowRunTraceSnapshot(workflow: 'native' | 'classic', run: WorkflowRun): { startedAt: null; endedAt: null; updatedAt: string; traceId: string; spanId: string; parentSpanId: string | null; workflow: "native" | "classic"; change: string; runId: string; kind: "workflow" | "action" | "wait" | "evidence" | "command" | "check" | "retrieval"; name: string; status: "pending" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "unknown"; revision: number; attempt?: number; summary?: string; attributes?: Record; }[]; /** 只读展示完成的 Native 归档快照,保留未知的耗时。 */ export declare function readNativeChangeTraceCheckpoint(checkpoint: unknown, change: string): { startedAt: null; endedAt: null; updatedAt: string; traceId: string; spanId: string; parentSpanId: string | null; workflow: "native" | "classic"; change: string; runId: string; kind: "workflow" | "action" | "wait" | "evidence" | "command" | "check" | "retrieval"; name: string; status: "pending" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "unknown"; revision: number; attempt?: number; summary?: string; attributes?: Record; }[] | null; export declare function iterateWorkflowApplicationRunSources(projectRoot: string, options?: { excludeApplications?: readonly string[]; }): AsyncGenerator<{ applicationId: string; rootDir: string; storageKey: string; runId: string | null; fingerprint: string; error: { code: string; message: string; } | null; }, void, unknown>; export declare function listWorkflowApplicationRunSources(projectRoot: string, options?: { excludeApplications?: readonly string[]; }): Promise<{ applicationId: string; rootDir: string; storageKey: string; runId: string | null; fingerprint: string; error: { code: string; message: string; } | null; }[]>; export declare function readWorkflowApplicationRunObservation(projectRoot: string, applicationId: string, runId: string): Promise; /** 返回固定身份和 SDK 保存的状态;单条失败不会遮住其他 Run。 */ export declare function listWorkflowApplicationRunRecords(projectRoot: string, options?: { applicationId?: string; excludeClosed?: boolean; excludeAbortedRegistrations?: boolean; }): Promise; /** 校验当前包与固定身份;只读取字节和 Skill 契约,不 import 应用实现。 */ export declare function inspectWorkflowApplicationMaterial(identity: ApplicationIdentity): Promise<{ status: 'matched' | 'changed' | 'unavailable'; packageHash?: string; manifest?: WorkflowApplicationManifest; definition?: WorkflowApplicationDefinition; message?: string; }>; export declare function inspectWorkflowApplicationPackage(packageRoot: string, expectedPackageHash: string): Promise<{ status: 'matched' | 'changed' | 'unavailable'; packageHash?: string; manifest?: WorkflowApplicationManifest; definition?: WorkflowApplicationDefinition; message?: string; }>; /** 只读逻辑投影保留池化载荷,不执行应用模块,也不迁移工作区。 */ export declare function readWorkflowApplicationRunProjection(projectRoot: string, applicationId: string, runId: string): Promise<{ application: ApplicationIdentity; projection: Readonly<{ record: ApplicationRunRecord; run: WorkflowRun; scope: string; stats: import("../../platform/fs/json-value-pool.js").JsonProjectionStats | undefined; materialize: (path?: readonly string[]) => unknown; hash: () => string; }>; } | null>; //# sourceMappingURL=run-observation.d.ts.map