genaiscript
Version:
A CLI for GenAIScript, a generative AI scripting framework.
17 lines (13 loc) • 387 B
text/typescript
system({
title: "General GitHub information.",
})
export default async function (ctx: ChatGenerationContext) {
const { $ } = ctx
const info = await github.info()
if (info?.owner) {
const { owner, repo, baseUrl } = info
$`## GitHub
- current github repository: ${owner}/${repo}`
if (baseUrl) $`- current github base url: ${baseUrl}`
}
}