export declare const BRIDGE_PLUGIN_SCHEMA: "helix.bridge-plugin/1"; export declare const BRIDGE_DETECTION_SCHEMA: "helix.bridge-detection/1"; export declare const BRIDGE_PLAN_SCHEMA: "helix.bridge-plan/1"; export declare const BRIDGE_PLUGIN_REQUEST_SCHEMA: "helix.bridge-plugin-request/1"; export declare const BRIDGE_PROVENANCE_SCHEMA: "helix.bridge-provenance/1"; export declare const BRIDGE_CORE_IMPLEMENTATION_VERSION: "5"; export declare const BRIDGE_PERMISSIONS: readonly ["filesystem.read-source", "filesystem.write-output", "unrestricted-host-execution", "network", "spawn-process", "unreal-editor", "unity-editor", "blender", "gpu"]; export declare const BRIDGE_EXTERNAL_COMMAND_PERMISSIONS: readonly ["filesystem.read-source", "filesystem.write-output", "spawn-process", "unrestricted-host-execution"]; /** Host tool requirements and the only environment variables exposed for them. */ export declare const BRIDGE_EXTERNAL_TOOL_ENVIRONMENT: { readonly 'tool:unreal-editor-commandlet': "HELIX_UNREAL_EDITOR"; readonly 'tool:unity-editor-batchmode': "HELIX_UNITY_EDITOR"; readonly 'tool:godot-headless': "HELIX_GODOT"; }; /** * Capability identities owned by the in-process HELIX implementation. External * manifests cannot claim these identities (or the broader `helix.` namespace), * so a reviewed plan can never be redirected into a different dispatcher. */ export declare const BRIDGE_RESERVED_CAPABILITY_IDS: readonly ["helix.asset.copy", "helix.character.import", "helix.character.addon.import", "helix.animation.retarget", "metahuman.face.materials", "helix.scene.package", "unreal.project.extract", "unity.project.extract", "godot.project.extract"]; export declare const BRIDGE_STAGES: readonly ["detect", "inspect", "extract", "normalize", "transform", "validate", "optimize", "package", "publish"]; export declare const BRIDGE_CONTENT_TYPES: readonly ["auto", "asset", "character", "addon", "scene", "animation", "extract", "vrm-export"]; export declare const BRIDGE_TARGETS: readonly ["web", "unreal", "mobile", "canonical"]; export declare const BRIDGE_TRUST_LEVELS: readonly ["helix-verified", "verified-publisher", "community", "local-untrusted"]; export type BridgePermission = (typeof BRIDGE_PERMISSIONS)[number]; export type BridgeTrust = (typeof BRIDGE_TRUST_LEVELS)[number]; export type BridgeStage = (typeof BRIDGE_STAGES)[number]; export type BridgeContentType = (typeof BRIDGE_CONTENT_TYPES)[number]; export type BridgeTarget = (typeof BRIDGE_TARGETS)[number]; export declare const BRIDGE_SOURCE_KINDS: readonly ["format.glb", "format.gltf", "format.fbx", "format.obj", "format.usd", "format.usdz", "format.vrm", "format.image", "format.audio", "metahuman.face", "unreal.project", "unity.project", "godot.project", "directory.unknown", "file.unknown"]; export type BridgeSourceKind = (typeof BRIDGE_SOURCE_KINDS)[number]; export interface BridgeCommandHandler { executable: string; args?: string[]; timeoutSeconds?: number; } export interface BridgeSourceMatcher { extensions?: string[]; fileNames?: string[]; markerFiles?: string[]; } export interface BridgeCapabilityManifest { id: string; stage: BridgeStage; accepts: string[]; produces: string[]; targets?: BridgeTarget[]; priority?: number; permissions?: BridgePermission[]; command?: BridgeCommandHandler; description?: string; requires?: string[]; replaces?: string[]; matches?: BridgeSourceMatcher; } export interface BridgePluginManifest { schemaVersion: typeof BRIDGE_PLUGIN_SCHEMA; id: string; name: string; version: string; trust: BridgeTrust; permissions: BridgePermission[]; capabilities: BridgeCapabilityManifest[]; description?: string; homepage?: string; } export interface BridgeGlbInspection { meshCount: number; skinCount: number; animationCount: number; materialCount: number; nodeNames: string[]; meshNames: string[]; materialNames: string[]; } export interface BridgeDetection { schemaVersion: typeof BRIDGE_DETECTION_SCHEMA; source: string; sourceKind: BridgeSourceKind; suggestedType: Exclude; confidence: number; evidence: string[]; sha256: string; sizeBytes: number; fileCount?: number; directoryCount?: number; inspection?: BridgeGlbInspection; } export interface BridgeSourceSnapshotIdentity { kind: 'file' | 'directory'; sha256: string; sizeBytes: number; fileCount?: number; directoryCount?: number; } /** Stable fingerprint for an immutable auxiliary input or source dependency. */ export interface BridgeInputFingerprint { file: string; sha256: string; sizeBytes: number; } /** Reviewed identity of a host executable made available to an external adapter. */ export interface BridgeToolFingerprint { environmentVariable: string; /** Canonical executable path. POSIX paths such as WSL `/mnt/...` remain POSIX paths. */ executable: string; sha256: string; sizeBytes: number; } /** Portable tool identity written to a relocatable provenance receipt. */ export interface BridgeProvenanceToolFingerprint extends BridgeInputFingerprint { environmentVariable: string; } /** Identity evidence required in every Bridge provenance record. */ export interface BridgeProvenanceSettings { contentType: Exclude; inputs: Record; tools: Record; sourceBundle: { snapshot: BridgeSourceSnapshotIdentity; dependencies: Record; }; } export interface BridgePlanOptions { type?: BridgeContentType; target?: BridgeTarget; plugin?: string[]; pluginDirs?: string[]; headTexture?: string; eyeTexture?: string; canonical?: string; map?: string; /** Generic named auxiliary inputs. Required `input:` declarations resolve here. */ inputs?: Record; } /** Immutable identities covered by a reviewed Bridge plan key. */ export interface BridgePlanIdentity { inputs: Record; sourceDependencies: Record; tools: Record; } export interface BridgePlanStep { index: number; plugin: string; pluginVersion: string; pluginDigest: string; capability: string; stage: BridgeStage; accepts: string; produces: string; permissions: BridgePermission[]; requires: string[]; } export interface BridgePlan { schemaVersion: typeof BRIDGE_PLAN_SCHEMA; source: BridgeDetection; contentType: Exclude; target: BridgeTarget; goal: string; steps: BridgePlanStep[]; requiredInputs: string[]; requiredPermissions: BridgePermission[]; blockers: string[]; warnings: string[]; identity: BridgePlanIdentity; deterministicKey: string; /** Present after execution has verified the private immutable source snapshot. */ sourceSnapshot?: BridgeSourceSnapshotIdentity; } export interface BridgeArtifact { kind: string; path: string; sha256: string; sizeBytes: number; metadata?: Record; } /** Immutable auxiliary input delivered to an external Bridge capability. */ export interface BridgeNamedInput { path: string; sha256: string; sizeBytes: number; } export interface BridgePluginRequest { schemaVersion: typeof BRIDGE_PLUGIN_REQUEST_SCHEMA; capability: string; source: BridgeDetection; input: BridgeArtifact | null; inputs: Record; outputDir: string; target: BridgeTarget; deterministicKey: string; } export interface BridgeProvenance { schemaVersion: typeof BRIDGE_PROVENANCE_SCHEMA; deterministicKey: string; source: { path: string; kind: BridgeSourceKind; sha256: string; sizeBytes: number; fileCount?: number; directoryCount?: number; }; plugins: Array<{ id: string; version: string; digest: string; }>; capabilities: string[]; target: BridgeTarget; settings: BridgeProvenanceSettings; outputs: BridgeArtifact[]; createdAt: string; } export interface BridgeImportOptions extends BridgePlanOptions { output?: string; dryRun?: boolean; /** * Refuse execution unless the freshly resolved plan has this exact key. * Required for every non-dry-run plan containing an external plugin command. */ expectedPlanKey?: string; approvedPermissions?: BridgePermission[]; onProgress?: (message: string) => void; /** * Preserve the `.{output}.bridge-stage-/` transaction directory (raw * step outputs, snapshots, and any external-tool working files) after a * failed import instead of deleting it. Also honored via the * `HELIX_BRIDGE_KEEP_STAGE=1` environment variable. Debug-only: never set * this for a normal import, since a kept stage is not cleaned up by Bridge * and accumulates on disk across retries. */ keepStage?: boolean; /** * Package a character add-on even when `bodyGeometryGuard.ts`'s * leftover-base-body/underwear trip line fires. Use ONLY after a human has * looked at the item and confirmed the flagged surface is a legitimate * garment panel — see that file's "MEASURED PRECISION" section for the * measured residual false-positive class this exists for. */ allowUntexturedBodyGeometry?: boolean; } export interface BridgeImportResult { plan: BridgePlan; outputs: BridgeArtifact[]; provenancePath: string | null; }