import * as plugins from './plugins.js'; import type { IControllerCodexModelChoice } from '../dist_ts_interfaces/index.js'; import { type IControllerCodexOrigin } from './classes.codexconnectionmodels.js'; export { isCodexCreationToken, isCodexThreadId } from './functions.codexidentity.js'; export interface ICodexOwnedProcessIdentity { pid: number; processGroupId: number; fingerprint: string; } export interface ICodexCreationRuntime { generation: string; /** Absent for an externally managed server: disconnect never proves that server exited. */ process?: ICodexOwnedProcessIdentity; } export type TCodexCreationState = 'pending' | 'dispatched' | 'bound' | 'admitted' | 'materialized' | 'retired'; export interface IControllerCodexCreationDocument { /** Selected server/cwd are reserved before dispatch; native origin is completed on bind. */ connection?: { profileId: string; remoteDirectory: string; }; codexOrigin?: IControllerCodexOrigin; id: string; issuerId: string; projectIdentityId: string; operationId: string; state: TCodexCreationState; title: string; model?: IControllerCodexModelChoice; requestedAt: Date; updateId: string; runtime?: ICodexCreationRuntime; dispatchedAt?: Date; nativeId?: string; providerCreatedAt?: number; sessionIdentityId?: string; /** Initial title and model were applied before any user mutation or first turn. */ metadataFinalizedAt?: Date; /** A first turn may have executed even if its response was lost. */ turnDispatchedAt?: Date; terminalAt?: Date; } export declare const codexCreationDocumentId: (issuerIdArg: string, projectIdArg: string, operationIdArg: string) => string; export declare const assertCodexCreationRuntime: (valueArg: unknown) => asserts valueArg is ICodexCreationRuntime; export declare const assertControllerCodexCreationDocument: (valueArg: unknown) => asserts valueArg is IControllerCodexCreationDocument; export declare class ControllerCodexCreationModel extends plugins.smartdata.SmartDataDbDoc { static exact: plugins.smartdata.TExact; connection?: IControllerCodexCreationDocument['connection']; codexOrigin?: IControllerCodexOrigin; id: string; issuerId: string; projectIdentityId: string; operationId: string; state: TCodexCreationState; title: string; model?: IControllerCodexModelChoice; requestedAt: Date; updateId: string; runtime?: ICodexCreationRuntime; dispatchedAt?: Date; nativeId?: string; providerCreatedAt?: number; sessionIdentityId?: string; metadataFinalizedAt?: Date; turnDispatchedAt?: Date; terminalAt?: Date; }