/** * @module cosmology/package-galaxy/commands/core-package-cmds * * Pure isomorphic core commands for Package Galaxies across the ibgib cosmology. * Decoupled from CLI stdin/stdout so both CLI tools and HTTP servers (serve-gib) * can execute package operations identically without duplicate logic. */ import { CosmosIbGib_V1 } from '../../cosmos/cosmos-types.mjs'; import { MetaspaceService } from '../../../witness/space/metaspace/metaspace-types.mjs'; import { IbGibSpaceAny } from '../../../witness/space/space-base-v1.mjs'; import { B2tFSItemIbGib_V1 } from '../../branching/item/item-types.mjs'; import { B2tFSBranchIbGib_V1 } from '../../branching/branch/branch-types.mjs'; import { B2tFSSnapshotIbGib_V1 } from '../../branching/snapshot/snapshot-types.mjs'; import { BinIbGib_V1 } from '../../../common/bin/bin-types.mjs'; export interface CorePackageGetOpts { metaspace: MetaspaceService; space: IbGibSpaceAny; cosmos: CosmosIbGib_V1; galaxyName?: string; packageName: string; version?: string; branchName?: string; } export interface CorePackageGetResult { packageName: string; version: string; filename: string; binHash: string; binAddr: string; itemAddr: string; packageItem: B2tFSItemIbGib_V1; frameItem: B2tFSItemIbGib_V1; binStone: BinIbGib_V1; } export interface CorePackageInfo { packageName: string; latestVersion: string; releasesCount: number; filename: string; fileHash: string; itemAddr: string; binAddr?: string; } export interface CorePackageListOpts { metaspace: MetaspaceService; space: IbGibSpaceAny; cosmos: CosmosIbGib_V1; galaxyName?: string; branchName?: string; } export interface CorePackageListResult { galaxyName: string; packages: CorePackageInfo[]; } /** * Resolves the target package galaxy entry from a Cosmos. */ export declare function resolvePackageGalaxyEntry(cosmos: CosmosIbGib_V1, galaxyName?: string): import("../../cosmos/cosmos-types.mjs").CosmosGalaxyEntry; /** * Retrieves the snapshot and package items map for a package galaxy. */ export declare function getPackageItemsMap({ metaspace, space, cosmos, galaxyName, branchName, }: { metaspace?: MetaspaceService; space: IbGibSpaceAny; cosmos: CosmosIbGib_V1; galaxyName?: string; branchName?: string; }): Promise<{ galaxyName: string; snapshot?: B2tFSSnapshotIbGib_V1; packageItems: Map; branchStone?: B2tFSBranchIbGib_V1; targetSpace: IbGibSpaceAny; }>; /** * Pure core function to resolve and retrieve a package binary from space. */ export declare function executeCorePackageGet(opts: CorePackageGetOpts): Promise; /** * Pure core function to list packages registered in a package galaxy. */ export declare function executeCorePackageList(opts: CorePackageListOpts): Promise; //# sourceMappingURL=core-package-cmds.d.mts.map