Skip to content
Merged
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
2 changes: 1 addition & 1 deletion apps/web/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const config: Config = {
],
modulePathIgnorePatterns: ['<rootDir>/../../.worktrees/'],
transformIgnorePatterns: [
'node_modules/.pnpm/(?!(@octokit|universal-user-agent|universal-github-app-jwt|before-after-hook|bottleneck|p-limit|yocto-queue))',
'node_modules/.pnpm/(?!(@octokit|universal-user-agent|universal-github-app-jwt|before-after-hook|bottleneck|p-limit|yocto-queue|ai@|@ai-sdk|@standard-schema|@workflow|eventsource-parser))',
],

// Parallel execution configuration
Expand Down
12 changes: 6 additions & 6 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
"promo": "pnpm -s script src/scripts/encrypt-promo-codes.ts"
},
"dependencies": {
"@ai-sdk/anthropic": "3.0.96",
"@ai-sdk/gateway": "3.0.148",
"@ai-sdk/mistral": "3.0.48",
"@ai-sdk/openai": "3.0.84",
"@ai-sdk/openai-compatible": "2.0.59",
"@ai-sdk/anthropic": "4.0.15",
"@ai-sdk/gateway": "4.0.21",
"@ai-sdk/mistral": "4.0.12",
"@ai-sdk/openai": "4.0.15",
"@ai-sdk/openai-compatible": "3.0.11",
"@anthropic-ai/sdk": "0.104.1",
"@apple/app-store-server-library": "3.1.0",
"@aws-sdk/client-s3": "3.1009.0",
Expand Down Expand Up @@ -116,7 +116,7 @@
"@xterm/addon-fit": "0.11.0",
"@xterm/addon-web-links": "0.12.0",
"@xterm/xterm": "6.0.0",
"ai": "6.0.224",
"ai": "7.0.29",
"archiver": "7.0.1",
"chat": "4.27.0",
"class-variance-authority": "0.7.1",
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/lib/bot/agent-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { captureException } from '@sentry/nextjs';
import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
import type { PlatformIntegration, User } from '@kilocode/db';
import type { BotRequestStep } from '@kilocode/db/schema';
import { ToolLoopAgent, generateText, stepCountIs, tool } from 'ai';
import { ToolLoopAgent, generateText, isStepCount, tool } from 'ai';
Comment thread
chrarnoldus marked this conversation as resolved.
import type { StepResult, ToolSet } from 'ai';
import { Actions, Card, CardText, LinkButton, Section } from 'chat';
import type { Author, Message, Thread } from 'chat';
Expand Down Expand Up @@ -258,7 +258,7 @@ export async function runBotAgent(params: RunBotAgentParams): Promise<BotAgentCo
params.thread,
params.message
),
stopWhen: stepCountIs(remainingIterations),
stopWhen: isStepCount(remainingIterations),
Comment thread
chrarnoldus marked this conversation as resolved.
tools: {
spawnCloudAgentSession: tool({
description: `Spawn a Cloud Agent session to perform coding tasks on a GitHub repository or GitLab project. The agent can make code changes, fix bugs, implement features, review/analyze code, run tests, or open PRs/MRs. Do NOT use it for questions you can answer directly.
Expand Down Expand Up @@ -328,7 +328,7 @@ This tool returns an acknowledgement immediately. The final Cloud Agent result w
},
}),
},
onStepFinish: step => {
onStepEnd: step => {
Comment thread
chrarnoldus marked this conversation as resolved.
collectedSteps.push(serializeStep(step, completedStepCount));
updateBotRequest(params.botRequestId, { steps: [...initialSteps, ...collectedSteps] });
},
Expand Down
141 changes: 73 additions & 68 deletions pnpm-lock.yaml

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

Loading