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 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 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 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 API get in try/catch with typed error message [FILE] src/target.ts ```typescript async function getUser(id: string): Promise<{ name: 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] Check tsconfig.json settings [FILE] src/target.ts ```typescript // tsconfig.json present ``` <|im_end|> <|im_start|>assistant <tool>bash</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 '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 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 'res'. Add parameter. [FILE] src/target.ts ```typescript const handler = (req: Request) => { res.json({ ok: true });...
<|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 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 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 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 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 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 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 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 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 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 Extract inline type to 'ApiResponse' interface [FILE] src/target.ts ```typescript function handleResponse(res: { data: unknown; status: number; err...
<|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 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 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 [TASK] Check strict null checks pass [FILE] src/target.ts ```typescript // src/models/user.ts ``` <|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 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 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 Extract inline type to 'FilterOptions' interface [FILE] src/target.ts ```typescript function applyFilter(items: string[], opts: { sort: 'asc' | 'de...
<|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 'ApiResponse' interface [FILE] src/target.ts ```typescript function handleResponse(res: { data: unknown; status: number; err...
<|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 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 '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 Add optional chaining for optional callback invocation [FILE] src/target.ts ```typescript function runCallback(fn?: () => void): void { fn(); } `...
<|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 [TASK] Check module resolution for path aliases [FILE] src/target.ts ```typescript // src/aliased/module.ts ``` <|im_end|> <|im_start|>assistant <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 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 Add explicit :unknown return type to function parseValue [FILE] src/target.ts ```typescript function parseValue(input: string) { return JSON.pars...
<|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 :unknown return type to function parseValue [FILE] src/target.ts ```typescript function parseValue(input: string) { return JSON.pars...
<|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 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 Add explicit :unknown return type to function parseValue [FILE] src/target.ts ```typescript function parseValue(input: string) { return JSON.pars...
<|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 :Promise<unknown> return type to async function fetchUser [FILE] src/target.ts ```typescript async function fetchUser(id: 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 '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 :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 :Promise<unknown> return type to async function fetchUser [FILE] src/target.ts ```typescript async function fetchUser(id: 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 :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 Add optional chaining for optional callback invocation [FILE] src/target.ts ```typescript function runCallback(fn?: () => void): void { fn(); } `...
<|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 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 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 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 'basename' from 'path' [FILE] src/target.ts ```typescript export function getFileName(filePath: string): string { return b...
<|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 TypeScript with --strict flag [FILE] src/target.ts ```typescript // src/config.ts ``` <|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 Fix missing import for 'join' from 'path' [FILE] src/target.ts ```typescript export function resolvePath(dir: string, file: string): string { ret...
<|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 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 [TASK] Verify all exports are used [FILE] src/target.ts ```typescript // src/exports.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 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 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 missing import for 'basename' from 'path' [FILE] src/target.ts ```typescript export function getFileName(filePath: string): string { return b...
<|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: '{id:number}' missing 'name' from interface IEntity [FILE] src/target.ts ```typescript interface IEntity { id: number; name: 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 'basename' from 'path' [FILE] src/target.ts ```typescript export function getFileName(filePath: string): string { return b...
<|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 explicit :Promise<unknown> return type to async function fetchUser [FILE] src/target.ts ```typescript async function fetchUser(id: 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: '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 Fix missing import for 'readFileSync' from 'fs' [FILE] src/target.ts ```typescript export function loadSchema(path: string): string { return read...
<|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 callback invocation [FILE] src/target.ts ```typescript function runCallback(fn?: () => void): void { fn(); } `...
<|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 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 Fix TS2304: Cannot find name 'res'. Add parameter. [FILE] src/target.ts ```typescript const handler = (req: Request) => { res.json({ ok: true });...
<|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 'ValidationResult' interface [FILE] src/target.ts ```typescript function validate(input: string): { valid: boolean; errors: ...
<|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 Wrap API get in try/catch with typed error message [FILE] src/target.ts ```typescript async function getUser(id: string): Promise<{ name: 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 :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 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 TS2322: '{id:number}' missing 'name' from interface IEntity [FILE] src/target.ts ```typescript interface IEntity { id: number; name: 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: '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 Add explicit :unknown return type to function parseValue [FILE] src/target.ts ```typescript function parseValue(input: string) { return JSON.pars...
<|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 missing import for 'readFileSync' from 'fs' [FILE] src/target.ts ```typescript export function loadSchema(path: string): string { return read...
<|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 '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 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 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 Extract inline type to 'FilterOptions' interface [FILE] src/target.ts ```typescript function applyFilter(items: string[], opts: { sort: 'asc' | 'de...
<|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 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 Fix missing import for 'readFileSync' from 'fs' [FILE] src/target.ts ```typescript export function loadSchema(path: string): string { return read...
<|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] Show recent git changes [FILE] src/target.ts ```typescript // git context ``` <|im_end|> <|im_start|>assistant <tool>bash</tool> <cmd>npx es...
<|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 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 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 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 :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 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 Fix missing import for 'createServer' from 'http' [FILE] src/target.ts ```typescript createServer((req, res) => { res.end('Hello'); }).listen(300...