chore: generate
This commit is contained in:
@@ -37,8 +37,12 @@ export function referenceTextPart(input: {
|
|||||||
const metadata: ReferencePromptMetadata = {
|
const metadata: ReferencePromptMetadata = {
|
||||||
name: input.reference.name,
|
name: input.reference.name,
|
||||||
kind: input.reference.kind,
|
kind: input.reference.kind,
|
||||||
...(input.reference.kind === "invalid" ? { repository: input.reference.repository } : { path: input.reference.path }),
|
...(input.reference.kind === "invalid"
|
||||||
...(input.reference.kind === "git" ? { repository: input.reference.repository, branch: input.reference.branch } : {}),
|
? { repository: input.reference.repository }
|
||||||
|
: { path: input.reference.path }),
|
||||||
|
...(input.reference.kind === "git"
|
||||||
|
? { repository: input.reference.repository, branch: input.reference.branch }
|
||||||
|
: {}),
|
||||||
...(input.target === undefined ? {} : { target: input.target }),
|
...(input.target === undefined ? {} : { target: input.target }),
|
||||||
...(input.targetPath ? { targetPath: input.targetPath } : {}),
|
...(input.targetPath ? { targetPath: input.targetPath } : {}),
|
||||||
problem: input.problem ?? (input.reference.kind === "invalid" ? input.reference.message : undefined),
|
problem: input.problem ?? (input.reference.kind === "invalid" ? input.reference.message : undefined),
|
||||||
|
|||||||
Reference in New Issue
Block a user