{"uid":"cap_7GlWozz9nGn6KXD4PZhRk","slug":"writerslogic-lockfile-merge-conflict-resolver-59a4ed38","name":"WritersLogic Lockfile Merge (Conflict Resolver)","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/lockfile-merge?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UX-FM3LAsl-ltoa8Dee32","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Rebase conflict resolution in CI pipeline","prompt":"I'm rebasing a feature branch onto main and my pnpm-lock.yaml is full of conflict markers. Merge both sides automatically and use 'theirs' as the policy for any keys that still conflict — give me back the resolved YAML file."},{"title":"Pull request lockfile merge review","prompt":"My package-lock.json has merge conflicts from combining two feature branches. Can you rebuild both sides and show me exactly which key paths still have conflicts and what each side's value is, without applying any automatic preference?"},{"title":"Automated lockfile fix in git hook","prompt":"After a git merge, my package-lock.json has conflict markers in it. Parse it as JSON, merge the ours and theirs sides key by key, and return the resolved lockfile content so I can commit it."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T12:31:34.645Z","isFirstParty":false,"canonicalSlug":"writerslogic-lockfile-merge-conflict-resolver-59a4ed38"}