Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'

- name: Setup pnpm
uses: pnpm/action-setup@v4
Expand Down Expand Up @@ -46,4 +46,3 @@ jobs:

- name: Run build
run: pnpm build

6 changes: 1 addition & 5 deletions lib/utils/branch-name-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ export interface BranchNameOptions {
export async function generateBranchName(options: BranchNameOptions): Promise<string> {
const { description, repoName, context } = options

if (!process.env.AI_GATEWAY_API_KEY) {
throw new Error('AI_GATEWAY_API_KEY environment variable is required')
}

// Create the prompt for branch name generation
const prompt = `Generate a concise, descriptive Git branch name for the following task:

Expand All @@ -37,7 +33,7 @@ Examples of good branch names:
Return ONLY the branch name, nothing else.`

try {
// Generate branch name using AI SDK 5 with AI Gateway
// Generate branch name using AI SDK 7 with AI Gateway
const result = await generateText({
model: 'openai/gpt-5-nano',
prompt,
Expand Down
6 changes: 1 addition & 5 deletions lib/utils/commit-message-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ export interface CommitMessageOptions {
export async function generateCommitMessage(options: CommitMessageOptions): Promise<string> {
const { description, repoName, context } = options

if (!process.env.AI_GATEWAY_API_KEY) {
throw new Error('AI_GATEWAY_API_KEY environment variable is required')
}

// Create the prompt for commit message generation
const prompt = `Generate a concise, descriptive Git commit message for the following change:

Expand All @@ -38,7 +34,7 @@ Examples of good commit messages:
Return ONLY the commit message, nothing else.`

try {
// Generate commit message using AI SDK 5 with AI Gateway
// Generate commit message using AI SDK 7 with AI Gateway
const result = await generateText({
model: 'openai/gpt-5-nano',
prompt,
Expand Down
6 changes: 1 addition & 5 deletions lib/utils/title-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ export interface TitleGenerationOptions {
export async function generateTaskTitle(options: TitleGenerationOptions): Promise<string> {
const { prompt, repoName, context } = options

if (!process.env.AI_GATEWAY_API_KEY) {
throw new Error('AI_GATEWAY_API_KEY environment variable is required')
}

// Create the prompt for title generation
const systemPrompt = `Generate a concise, descriptive title for the following task:

Expand All @@ -36,7 +32,7 @@ Examples of good titles:
Return ONLY the title, nothing else.`

try {
// Generate title using AI SDK 5 with AI Gateway
// Generate title using AI SDK 7 with AI Gateway
const result = await generateText({
model: 'openai/gpt-5-nano',
prompt: systemPrompt,
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "coding-agent-template",
"version": "2.0.0",
"private": true,
"engines": {
"node": ">=22"
},
"scripts": {
"dev": "next dev --webpack",
"build": "next build --turbopack",
Expand Down Expand Up @@ -42,7 +45,7 @@
"@vercel/sandbox": "^0.0.21",
"@vercel/sdk": "^1.18.7",
"@vercel/speed-insights": "^1.3.1",
"ai": "5.0.51",
"ai": "7.0.34",
"arctic": "^3.7.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
Expand Down
76 changes: 47 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading