# WritersLogic Lockfile Merge (Conflict Resolver)

> WritersLogic Lockfile Merge (Conflict Resolver) is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Resolves git merge-conflict markers in package-lock.json or pnpm-lock.yaml lockfiles, merging both sides key-by-key and returning the resolved file or the list of still-conflicting key paths with both values.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/lockfile-merge?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-lockfile-merge-conflict-resolver-59a4ed38
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7GlWozz9nGn6KXD4PZhRk

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-lockfile-merge-conflict-resolver-59a4ed38 -d '<json body>'
```

Example prompt: My package-lock.json has git merge-conflict markers after rebasing my feature branch onto main — can you merge both sides key by key and, for any keys that still conflict, tell me exactly which paths clash and what each side says? Use 'ours' for any remaining conflicts.

## When to prefer this

Use this endpoint when an AI agent needs to programmatically resolve git merge-conflict markers in package-lock.json or pnpm-lock.yaml files during automated rebase, merge, or CI workflows. Prefer it over manual conflict resolution scripts when you need key-level diff3-aware merging with optional ours/theirs policy, or when you need to surface exact conflicting paths for human review. Not appropriate for yarn.lock or other non-JSON/YAML lockfile formats.

## Known failure modes

- Unsupported format: yarn.lock and non-JSON/YAML formats return an error
- Content exceeds 200,000 character limit for JSON or 100,000 for YAML
- Malformed conflict markers that cannot be parsed into ours/theirs/base blocks
- Missing or invalid prefer enum value
- Merged result is not validated against the npm/pnpm registry — regeneration required

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

Returns either a fully resolved lockfile text (JSON or YAML) with all conflict markers eliminated, or a structured report of the key paths that remain in conflict, showing both the 'ours' and 'theirs' values for each. If the prefer parameter is set, any remaining conflicts are resolved automatically according to that policy.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "format": {
   "enum": [
    "auto",
    "json",
    "yaml"
   ],
   "type": "string",
   "description": "Default auto: JSON when the file starts with { or [."
  },
  "prefer": {
   "enum": [
    "none",
    "ours",
    "theirs"
   ],
   "type": "string",
   "description": "Policy for keys changed on both sides. Default none: report them."
  },
  "content": {
   "type": "string",
   "maxLength": 200000,
   "description": "Whole file text; YAML at most 100000 characters."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-lockfile-merge-conflict-resolver-59a4ed38/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
