export function buildGitHubInstallLockEntry(args) {
    const entry = {
        version: args.version,
        sha: args.sha,
        tier: "VERIFIED",
        installedAt: args.installedAt ?? new Date().toISOString(),
        source: `github:${args.owner}/${args.repo}`,
        scope: args.global ? "user" : "project",
        files: ["SKILL.md"],
        sourceType: "github",
        sourceRepoUrl: `https://github.com/${args.owner}/${args.repo}`,
    };
    if (args.sourceSkillPath) {
        entry.sourceSkillPath = args.sourceSkillPath;
    }
    if (args.branch) {
        entry.sourceBranch = args.branch;
    }
    if (args.commitSha) {
        entry.sourceCommitSha = args.commitSha;
    }
    if (args.pluginName) {
        entry.sourcePluginName = args.pluginName;
    }
    return entry;
}
//# sourceMappingURL=add-lockfile.js.map