/** * Lock entry field helpers. * * @experimental This API is unstable and may change without notice. */ import * as Option from "effect/Option"; import type { SourceHash } from "../extensions/rendered-files.js"; import type { TreeIntegrity } from "../extensions/materialized-tree.js"; import type { ExtensionName } from "../extensions/common.js"; import type { CatalogExtensionType } from "../extension-types/schema.js"; import type { Handle } from "../extensions/handle.js"; import type { GitBasedSource } from "../sources/types.js"; export declare const optionalField: (key: K, value: Option.Option) => { [P in K]?: V; }; export declare const gitSourceLockFields: (source: GitBasedSource, extensionType: TExtensionType, workspaceName: ExtensionName, selectedPath: Option.Option, resolvedCommit: string, resolvedTree: string, contentIdentity: SourceHash, packageOwner: Handle, packageName: ExtensionName, treeIntegrity: TreeIntegrity) => { packageOwner: string & import("effect/Brand").Brand<"Handle">; resolvedCommit: string; resolvedTree: string; contentIdentity: string & import("effect/Brand").Brand<"SourceHash">; treeIntegrity: string & import("effect/Brand").Brand<"TreeIntegrity">; ref?: string; extensionType: TExtensionType; workspaceName: string & import("effect/Brand").Brand<"ExtensionName">; packageFormat: "agentxm"; packageName: string & import("effect/Brand").Brand<"ExtensionName">; path?: string; type: "github"; sourceType: "github"; sourceName: string; endpoint: URL; owner: string; repo: string; } | { packageOwner: string & import("effect/Brand").Brand<"Handle">; resolvedCommit: string; resolvedTree: string; contentIdentity: string & import("effect/Brand").Brand<"SourceHash">; treeIntegrity: string & import("effect/Brand").Brand<"TreeIntegrity">; ref?: string; extensionType: TExtensionType; workspaceName: string & import("effect/Brand").Brand<"ExtensionName">; packageFormat: "agentxm"; packageName: string & import("effect/Brand").Brand<"ExtensionName">; path?: string; type: "gitlab"; sourceType: "gitlab"; sourceName: string; endpoint: URL; owner: string; repo: string; } | { packageOwner: string & import("effect/Brand").Brand<"Handle">; resolvedCommit: string; resolvedTree: string; contentIdentity: string & import("effect/Brand").Brand<"SourceHash">; treeIntegrity: string & import("effect/Brand").Brand<"TreeIntegrity">; ref?: string; extensionType: TExtensionType; workspaceName: string & import("effect/Brand").Brand<"ExtensionName">; packageFormat: "agentxm"; packageName: string & import("effect/Brand").Brand<"ExtensionName">; path?: string; type: "bitbucket"; sourceType: "bitbucket"; sourceName: string; endpoint: URL; owner: string; repo: string; } | { packageOwner: string & import("effect/Brand").Brand<"Handle">; resolvedCommit: string; resolvedTree: string; contentIdentity: string & import("effect/Brand").Brand<"SourceHash">; treeIntegrity: string & import("effect/Brand").Brand<"TreeIntegrity">; ref?: string; extensionType: TExtensionType; workspaceName: string & import("effect/Brand").Brand<"ExtensionName">; packageFormat: "agentxm"; packageName: string & import("effect/Brand").Brand<"ExtensionName">; path?: string; type: "azurerepos"; sourceType: "azurerepos"; sourceName: string; endpoint: URL; organization: string; project: string; repo: string; } | { packageOwner: string & import("effect/Brand").Brand<"Handle">; resolvedCommit: string; resolvedTree: string; contentIdentity: string & import("effect/Brand").Brand<"SourceHash">; treeIntegrity: string & import("effect/Brand").Brand<"TreeIntegrity">; ref?: string; extensionType: TExtensionType; workspaceName: string & import("effect/Brand").Brand<"ExtensionName">; packageFormat: "agentxm"; packageName: string & import("effect/Brand").Brand<"ExtensionName">; path?: string; type: "git"; sourceType: "git"; sourceName: "git"; url: string; }; export declare const portableGitSourceLockFields: (source: GitBasedSource, workspaceName: ExtensionName, selectedPath: Option.Option, resolvedCommit: string, resolvedTree: string, contentIdentity: SourceHash, packageName: ExtensionName, treeIntegrity: TreeIntegrity) => { resolvedCommit: string; resolvedTree: string; contentIdentity: string & import("effect/Brand").Brand<"SourceHash">; treeIntegrity: string & import("effect/Brand").Brand<"TreeIntegrity">; ref?: string; extensionType: "skill"; workspaceName: string & import("effect/Brand").Brand<"ExtensionName">; packageFormat: "agent-skill"; packageName: string & import("effect/Brand").Brand<"ExtensionName">; path?: string; type: "github"; sourceType: "github"; sourceName: string; endpoint: URL; owner: string; repo: string; } | { resolvedCommit: string; resolvedTree: string; contentIdentity: string & import("effect/Brand").Brand<"SourceHash">; treeIntegrity: string & import("effect/Brand").Brand<"TreeIntegrity">; ref?: string; extensionType: "skill"; workspaceName: string & import("effect/Brand").Brand<"ExtensionName">; packageFormat: "agent-skill"; packageName: string & import("effect/Brand").Brand<"ExtensionName">; path?: string; type: "gitlab"; sourceType: "gitlab"; sourceName: string; endpoint: URL; owner: string; repo: string; } | { resolvedCommit: string; resolvedTree: string; contentIdentity: string & import("effect/Brand").Brand<"SourceHash">; treeIntegrity: string & import("effect/Brand").Brand<"TreeIntegrity">; ref?: string; extensionType: "skill"; workspaceName: string & import("effect/Brand").Brand<"ExtensionName">; packageFormat: "agent-skill"; packageName: string & import("effect/Brand").Brand<"ExtensionName">; path?: string; type: "bitbucket"; sourceType: "bitbucket"; sourceName: string; endpoint: URL; owner: string; repo: string; } | { resolvedCommit: string; resolvedTree: string; contentIdentity: string & import("effect/Brand").Brand<"SourceHash">; treeIntegrity: string & import("effect/Brand").Brand<"TreeIntegrity">; ref?: string; extensionType: "skill"; workspaceName: string & import("effect/Brand").Brand<"ExtensionName">; packageFormat: "agent-skill"; packageName: string & import("effect/Brand").Brand<"ExtensionName">; path?: string; type: "azurerepos"; sourceType: "azurerepos"; sourceName: string; endpoint: URL; organization: string; project: string; repo: string; } | { resolvedCommit: string; resolvedTree: string; contentIdentity: string & import("effect/Brand").Brand<"SourceHash">; treeIntegrity: string & import("effect/Brand").Brand<"TreeIntegrity">; ref?: string; extensionType: "skill"; workspaceName: string & import("effect/Brand").Brand<"ExtensionName">; packageFormat: "agent-skill"; packageName: string & import("effect/Brand").Brand<"ExtensionName">; path?: string; type: "git"; sourceType: "git"; sourceName: "git"; url: string; }; //# sourceMappingURL=entry-fields.d.ts.map