UNPKG

@alavida/agentpack

Version:

Compiler-driven lifecycle CLI for source-backed agent skills

10 lines (8 loc) 488 B
import { findRepoRoot } from '../../lib/context.js'; import { computeRuntimeSelectionUseCase } from './compute-runtime-selection.js'; import { materializeRuntimeSelectionUseCase } from './materialize-runtime-selection.js'; export function materializeCompiledStateUseCase({ cwd = process.cwd() } = {}) { const repoRoot = findRepoRoot(cwd); const selection = computeRuntimeSelectionUseCase({ cwd, mode: 'package' }); return materializeRuntimeSelectionUseCase(repoRoot, selection); }