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 '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 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 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: '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
[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
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
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
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 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 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 '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] 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
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
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
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 '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 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
[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
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 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 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
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 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 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 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 '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 '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
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 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
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
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 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 '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 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 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
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
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 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 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
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 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
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
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 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 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 '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 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
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
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 '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 :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
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 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 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
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
[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
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 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 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
[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
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 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 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|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 '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
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
[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 '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
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
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
[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
[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
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
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
Add optional chaining for null Map.get call
[FILE] src/target.ts
```typescript
function getMeta(headers: Map<string, string> | null): string | null... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.