text stringlengths 405 1.02k |
|---|
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix missing import for 'useState' from 'react'
[FILE] src/target.ts
```typescript
export function Counter() {
const [count, setCount] = useState(... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add explicit :number return type to function double
[FILE] src/target.ts
```typescript
function double(x: number) {
return x * 2;
}
```
<|im_end|... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2322: 'Date' not assignable to 'string'
[FILE] src/target.ts
```typescript
function formatDate(d: Date): string {
return d;
}
```
<|im_end|... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add explicit :number return type to function sum
[FILE] src/target.ts
```typescript
function sum(a: number, b: number) {
return a + b;
}
```
<|im... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2304: Cannot find name 'Component'. Add the import.
[FILE] src/target.ts
```typescript
export class Button extends Component<{ label: string ... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix missing import for 'z' from 'zod'
[FILE] src/target.ts
```typescript
export const UserSchema = z.object({
name: z.string(),
age: z.number()... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2322: 'Date' not assignable to 'string'
[FILE] src/target.ts
```typescript
function formatDate(d: Date): string {
return d;
}
```
<|im_end|... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Extract inline type to 'CacheEntry' interface
[FILE] src/target.ts
```typescript
function setCache(key: string, entry: { value: unknown; ttl: numbe... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Extract inline type to 'AppConfig' interface
[FILE] src/target.ts
```typescript
function initApp(config: { port: number; host: string; debug: boole... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Extract inline type to 'AppConfig' interface
[FILE] src/target.ts
```typescript
function initApp(config: { port: number; host: string; debug: boole... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2304: Cannot find name 'nextId'. Add the function.
[FILE] src/target.ts
```typescript
export function createUser(name: string) {
return { i... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add explicit :number return type to function sum
[FILE] src/target.ts
```typescript
function sum(a: number, b: number) {
return a + b;
}
```
<|im... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add optional chaining for nested avatar access
[FILE] src/target.ts
```typescript
function getAvatarUrl(user: { profile?: { avatar?: string } }): s... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add optional chaining for address.city chain
[FILE] src/target.ts
```typescript
function getCity(user: { address?: { city?: string } }): string {
... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Wrap DB query in try/catch with empty array fallback
[FILE] src/target.ts
```typescript
async function queryDB(sql: string): Promise<unknown[]> {
... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2322: 'number' not assignable to 'string'
[FILE] src/target.ts
```typescript
export function formatCount(value: number): string {
return va... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix missing import for 'useState' from 'react'
[FILE] src/target.ts
```typescript
export function Counter() {
const [count, setCount] = useState(... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2322: 'string[]' not assignable to 'number[]'
[FILE] src/target.ts
```typescript
function getIds(): number[] {
return ['a', 'b', 'c'];
}
``... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add optional chaining for address.city chain
[FILE] src/target.ts
```typescript
function getCity(user: { address?: { city?: string } }): string {
... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2304: Cannot find name 'capitalize'. Add the function.
[FILE] src/target.ts
```typescript
export function formatTitle(title: string): string ... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Extract inline type to 'CacheEntry' interface
[FILE] src/target.ts
```typescript
function setCache(key: string, entry: { value: unknown; ttl: numbe... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix missing import for 'useState' from 'react'
[FILE] src/target.ts
```typescript
export function Counter() {
const [count, setCount] = useState(... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Wrap socket send in try/catch with error log
[FILE] src/target.ts
```typescript
async function sendMessage(socket: WebSocket, msg: string): Promise... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Wrap socket send in try/catch with error log
[FILE] src/target.ts
```typescript
async function sendMessage(socket: WebSocket, msg: string): Promise... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Wrap socket send in try/catch with error log
[FILE] src/target.ts
```typescript
async function sendMessage(socket: WebSocket, msg: string): Promise... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix missing import for 'z' from 'zod'
[FILE] src/target.ts
```typescript
export const UserSchema = z.object({
name: z.string(),
age: z.number()... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add optional chaining for optional array element access
[FILE] src/target.ts
```typescript
function firstEmail(users: Array<{ email?: string } | un... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add explicit :boolean return type to function isPositive
[FILE] src/target.ts
```typescript
function isPositive(x: number) {
return x > 0;
}
```
... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add explicit :number return type to function sum
[FILE] src/target.ts
```typescript
function sum(a: number, b: number) {
return a + b;
}
```
<|im... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Extract inline type to 'CacheEntry' interface
[FILE] src/target.ts
```typescript
function setCache(key: string, entry: { value: unknown; ttl: numbe... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Wrap file read in try/catch with error logging and rethrow
[FILE] src/target.ts
```typescript
async function readJSON(path: string): Promise<unknow... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
[TASK] Find all async functions in the codebase
[FILE] src/target.ts
```typescript
// src/services/user.ts
```
<|im_end|>
<|im_start|>assistant
<to... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2304: Cannot find name 'assert'. Add the import.
[FILE] src/target.ts
```typescript
export function divide(a: number, b: number): number {
... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2304: Cannot find name 'notFound'. Add the function.
[FILE] src/target.ts
```typescript
export function handleRequest(path: string): string {... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add explicit :string|undefined return type to function firstChar
[FILE] src/target.ts
```typescript
function firstChar(s: string) {
return s[0];
... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2322: 'null' not assignable to 'string'
[FILE] src/target.ts
```typescript
function getDisplayName(user: { name: string | null }): string {
... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add optional chaining for optional array access
[FILE] src/target.ts
```typescript
function firstItem<T>(arr?: T[]): T | undefined {
return arr[0... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add optional chaining for method call on optional object
[FILE] src/target.ts
```typescript
function callGetText(node: { getText?: () => string }):... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Wrap file read in try/catch with error logging and rethrow
[FILE] src/target.ts
```typescript
async function readJSON(path: string): Promise<unknow... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Wrap external API call in try/catch with rethrow
[FILE] src/target.ts
```typescript
async function callExternalAPI(url: string): Promise<unknown> {... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add optional chaining for null Map.get call
[FILE] src/target.ts
```typescript
function getMeta(headers: Map<string, string> | null): string | null... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add optional chaining for deep theme config
[FILE] src/target.ts
```typescript
function getThemeColor(config: { theme?: { palette?: { primary?: str... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Wrap async fetch in try/catch with error message rethrow
[FILE] src/target.ts
```typescript
async function fetchData(url: string): Promise<unknown>... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add explicit :T[] return type to generic function toList
[FILE] src/target.ts
```typescript
function toList<T>(val: T) {
return [val];
}
```
<|im... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add optional chaining for method call on optional object
[FILE] src/target.ts
```typescript
function callGetText(node: { getText?: () => string }):... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2322: 'string' not assignable to 'number'
[FILE] src/target.ts
```typescript
function addAge(age: string): number {
return age + 1;
}
```
<... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2304: Cannot find name 'nextId'. Add the function.
[FILE] src/target.ts
```typescript
export function createUser(name: string) {
return { i... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add optional chaining for optional array access
[FILE] src/target.ts
```typescript
function firstItem<T>(arr?: T[]): T | undefined {
return arr[0... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
[TASK] List all TypeScript files in project
[FILE] src/target.ts
```typescript
// project root
```
<|im_end|>
<|im_start|>assistant
<tool>bash</too... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2304: Cannot find name 'describe' and 'it'. Add imports.
[FILE] src/target.ts
```typescript
describe('math', () => {
it('adds', () => {
... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Extract inline type to 'UserParams' interface
[FILE] src/target.ts
```typescript
function createUser(params: { name: string; email: string; role: '... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add optional chaining for null Map.get call
[FILE] src/target.ts
```typescript
function getMeta(headers: Map<string, string> | null): string | null... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2322: 'unknown' not assignable to 'string'
[FILE] src/target.ts
```typescript
function getField(obj: Record<string, unknown>, key: string): s... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add explicit :string return type to function greet
[FILE] src/target.ts
```typescript
function greet(name: string) {
return `Hello, ${name}!`;
}
... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix missing import for 'createServer' from 'http'
[FILE] src/target.ts
```typescript
createServer((req, res) => {
res.end('Hello');
}).listen(300... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add explicit :number return type to function sum
[FILE] src/target.ts
```typescript
function sum(a: number, b: number) {
return a + b;
}
```
<|im... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Extract inline type to 'UserParams' interface
[FILE] src/target.ts
```typescript
function createUser(params: { name: string; email: string; role: '... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2304: Cannot find name 'readFile'. Add the import.
[FILE] src/target.ts
```typescript
export function loadConfig(): string {
return readFil... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
[TASK] Count lines of TS code in src/
[FILE] src/target.ts
```typescript
// src/app.ts
```
<|im_end|>
<|im_start|>assistant
<tool>bash</tool>
<cmd>... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
[TASK] Run ESLint on src/
[FILE] src/target.ts
```typescript
// .eslintrc.json present
```
<|im_end|>
<|im_start|>assistant
<tool>bash</tool>
<cmd>... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2304: Cannot find name 'describe' and 'it'. Add imports.
[FILE] src/target.ts
```typescript
describe('math', () => {
it('adds', () => {
... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add explicit :number return type to function sum
[FILE] src/target.ts
```typescript
function sum(a: number, b: number) {
return a + b;
}
```
<|im... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix missing import for 'Router' from 'express'
[FILE] src/target.ts
```typescript
export const router = Router();
router.get('/', (req, res) => res... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Wrap async fetch in try/catch with error message rethrow
[FILE] src/target.ts
```typescript
async function fetchData(url: string): Promise<unknown>... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2322: 'number' not assignable to 'string'
[FILE] src/target.ts
```typescript
export function formatCount(value: number): string {
return va... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2322: 'unknown' not assignable to 'string'
[FILE] src/target.ts
```typescript
function getField(obj: Record<string, unknown>, key: string): s... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Extract inline type to 'GraphNode' interface
[FILE] src/target.ts
```typescript
function addEdge(from: { id: string; label: string }, to: { id: str... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Wrap analytics POST in try/catch with silent fallback
[FILE] src/target.ts
```typescript
async function sendAnalytics(event: string, payload: unkno... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2304: Cannot find name 'notFound'. Add the function.
[FILE] src/target.ts
```typescript
export function handleRequest(path: string): string {... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix missing import for 'z' from 'zod'
[FILE] src/target.ts
```typescript
export const UserSchema = z.object({
name: z.string(),
age: z.number()... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Wrap file append in try/catch with silent fallback
[FILE] src/target.ts
```typescript
async function writeLog(entry: string): Promise<void> {
awa... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix missing import for 'test' and 'expect' from '@jest/globals'
[FILE] src/target.ts
```typescript
test('adds 1 + 2 to equal 3', () => {
expect(1... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add explicit :string return type to function greet
[FILE] src/target.ts
```typescript
function greet(name: string) {
return `Hello, ${name}!`;
}
... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add explicit :string|undefined return type to function firstChar
[FILE] src/target.ts
```typescript
function firstChar(s: string) {
return s[0];
... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add optional chaining for address.city chain
[FILE] src/target.ts
```typescript
function getCity(user: { address?: { city?: string } }): string {
... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
[TASK] Run tsc --noEmit to check for type errors
[FILE] src/target.ts
```typescript
// src/server.ts
```
<|im_end|>
<|im_start|>assistant
<tool>bas... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix missing import for 'z' from 'zod'
[FILE] src/target.ts
```typescript
export const UserSchema = z.object({
name: z.string(),
age: z.number()... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
[TASK] Verify all file imports resolve
[FILE] src/target.ts
```typescript
// src/main.ts
```
<|im_end|>
<|im_start|>assistant
<tool>bash</tool>
<cm... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2322: 'string|undefined' not assignable to 'string'
[FILE] src/target.ts
```typescript
export function getConfigPath(): string {
const raw ... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2304: Cannot find name 'Component'. Add the import.
[FILE] src/target.ts
```typescript
export class Button extends Component<{ label: string ... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2304: Cannot find name 'nextId'. Add the function.
[FILE] src/target.ts
```typescript
export function createUser(name: string) {
return { i... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Extract inline type to 'PaginationParams' interface
[FILE] src/target.ts
```typescript
function fetchPage(params: { page: number; pageSize: number ... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add optional chaining for address.city chain
[FILE] src/target.ts
```typescript
function getCity(user: { address?: { city?: string } }): string {
... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add optional chaining for optional array element access
[FILE] src/target.ts
```typescript
function firstEmail(users: Array<{ email?: string } | un... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add explicit :T[] return type to generic function toList
[FILE] src/target.ts
```typescript
function toList<T>(val: T) {
return [val];
}
```
<|im... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2304: Cannot find name 'nextId'. Add the function.
[FILE] src/target.ts
```typescript
export function createUser(name: string) {
return { i... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Extract inline type to 'GraphNode' interface
[FILE] src/target.ts
```typescript
function addEdge(from: { id: string; label: string }, to: { id: str... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2322: 'number' not assignable to 'string'
[FILE] src/target.ts
```typescript
export function formatCount(value: number): string {
return va... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix missing import for 'Router' from 'express'
[FILE] src/target.ts
```typescript
export const router = Router();
router.get('/', (req, res) => res... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
[TASK] Check TypeScript compilation
[FILE] src/target.ts
```typescript
console.log('hello');
```
<|im_end|>
<|im_start|>assistant
<tool>bash</tool>... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Wrap socket send in try/catch with error log
[FILE] src/target.ts
```typescript
async function sendMessage(socket: WebSocket, msg: string): Promise... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
[TASK] Find TODO comments in TypeScript files
[FILE] src/target.ts
```typescript
// src/utils.ts
```
<|im_end|>
<|im_start|>assistant
<tool>bash</t... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Add explicit :string|undefined return type to function firstChar
[FILE] src/target.ts
```typescript
function firstChar(s: string) {
return s[0];
... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2304: Cannot find name 'nextId'. Add the function.
[FILE] src/target.ts
```typescript
export function createUser(name: string) {
return { i... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
[TASK] List all TypeScript interfaces in project
[FILE] src/target.ts
```typescript
// src/types.ts
```
<|im_end|>
<|im_start|>assistant
<tool>bash... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
[TASK] Find all files importing 'react'
[FILE] src/target.ts
```typescript
// src/index.tsx
```
<|im_end|>
<|im_start|>assistant
<tool>bash</tool>
... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
[TASK] Find circular dependencies
[FILE] src/target.ts
```typescript
// src/module-a.ts
```
<|im_end|>
<|im_start|>assistant
<tool>bash</tool>
<cmd... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2322: 'number' not assignable to 'string'
[FILE] src/target.ts
```typescript
export function formatCount(value: number): string {
return va... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Fix TS2304: Cannot find name 'readFile'. Add the import.
[FILE] src/target.ts
```typescript
export function loadConfig(): string {
return readFil... |
<|im_start|>system
You are a TypeScript worker agent. Apply precise code edits and emit unified diffs. Never explain β just output the tool call.<|im_end|>
<|im_start|>user
Wrap API get in try/catch with typed error message
[FILE] src/target.ts
```typescript
async function getUser(id: string): Promise<{ name: string }>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.