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 '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
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 '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 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 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
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 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
[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
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
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
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 :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 :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
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
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
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
[TASK] Type-check only changed files via git diff
[FILE] src/target.ts
```typescript
// src/changed.ts
```
<|im_end|>
<|im_start|>assistant
<tool>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
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
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 '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
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 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 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 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
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
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
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
[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
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 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
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
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
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 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
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
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 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
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 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 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 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
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 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 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
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 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
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
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: '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
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
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 '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 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 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
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 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
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 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
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
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] 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
[TASK] Generate TypeScript declaration files
[FILE] src/target.ts
```typescript
// src/types.ts
```
<|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
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
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 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: '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 '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 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 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 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
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 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
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
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
[TASK] Format all TypeScript files with prettier
[FILE] src/target.ts
```typescript
// src/component.ts
```
<|im_end|>
<|im_start|>assistant
<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: '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
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
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
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
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
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
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
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 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
[TASK] Type-check only changed files via git diff
[FILE] src/target.ts
```typescript
// src/changed.ts
```
<|im_end|>
<|im_start|>assistant
<tool>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: '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 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
[TASK] Check for unused variables with noUnusedLocals
[FILE] src/target.ts
```typescript
// src/helper.ts
```
<|im_end|>
<|im_start|>assistant
<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
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] Format all TypeScript files with prettier
[FILE] src/target.ts
```typescript
// src/component.ts
```
<|im_end|>
<|im_start|>assistant
<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 '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: '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 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 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 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 explicit :unknown return type to function parseValue
[FILE] src/target.ts
```typescript
function parseValue(input: string) {
return JSON.pars... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.