Path set dedupe

path-set-dedupe · version 1.0.0 · File paths (lexical) · free, no key needed

Deduplicate an array of paths based on lexical equivalence while preserving first or last seen order.

Use when you need to: deduplicate paths · path dedup · remove duplicate paths.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "paths": [
    "a/b.ts",
    "a/b.ts",
    "c.ts"
  ]
}

Response:

{
  "result": {
    "deduped": [
      "a/b.ts",
      "c.ts"
    ],
    "removed": 1,
    "format": "posix"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "path-set-dedupe",
  "version": "1.0.0",
  "input": {
    "paths": [
      "a/b.ts",
      "a/b.ts",
      "c.ts"
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/path-set-dedupe/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"paths":["a/b.ts","a/b.ts","c.ts"]}'

The machine-readable contract is at /v1/tools/path-set-dedupe/versions/1.0.0.

CLI

node cli.mjs run path-set-dedupe 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.