Endpoint/Defaults/Eigenverft/CursorCli.json

{
  "$schema": "../../../Schema/PackageDefinition/eigenverft-module-package-definition-1.7.schema.json",
  "schemaVersion": "1.7",
  "definitionPublication": {
    "publisherId": "Eigenverft",
    "publisherName": "Eigenverft",
    "definitionId": "CursorCli",
    "definitionRevision": 1,
    "publishedAtUtc": "2026-05-13T12:00:00Z",
    "definitionSignature": {
      "kind": "signed",
      "format": "embedded-json-rsa-sha256-v1",
      "signedContent": "canonicalDefinitionExcludingSignatureValue",
      "keyThumbprint": "DD1E9435FB3AE68ABF2DB99E5638502E00D2FD90",
      "signerDisplayName": "Eigenverft Package Catalog Signing",
      "certificateSubject": "CN=Eigenverft Package Catalog Signing",
      "signedAtUtc": "2026-05-25T07:36:41.4508148Z",
      "signatureValue": "ucWIRG1xRtxcdGIGgXj5TncspIZXLmtzexjf5KuGeYKxpjaxY3qBZlwlubJ0vZTN+dq/GM0ODQjlzLrlx0s5qePg16XgGOg3hfIWeDLI4HnLDIFTpNBczT+3luSVAU44cVtMvbZrm0cmTW+RcX+baNRSAu/7NgxzHb8nUu8SOQgQQ3zxiFoWXrGVHtVe7/umcxC5Tremhv4pcDzCyfEM4ffBeG9l6jyMlxR2czoTMfw1HZY/WprCl9lyqxagh0tJ2rKjMxUEt0XF7EAGO8Sy6zuHFY0ULnqSRrwBSfXFKAHhRwPctj5viBPPoPhW17odcojG8A1l2bP5PoRk4EYSfLMxGd8HYpntiEN0CJkiF+obIRNwEA6sMSmrro/bYXQ24rAtkymKEdPJbqMqRnki/IMyj/FF50jypzwFTuMLQLeY/Q70VtGVg1eolCimNwcLVfgZLKix0SEwHsxTO77CHDXGg3RmrU3BaKOe+4+kErkZ7jAWZsKFWWBn6VDxeSUG"
    }
  },
  "display": {
    "default": {
      "name": "Cursor Agent CLI",
      "publisher": "Anysphere",
      "corporation": "Anysphere",
      "summary": "Pinned Cursor Agent CLI (portable Windows bundle from Cursor lab CDN)"
    }
  },
  "dependencies": [],
  "artifacts": {
    "targets": [
      {
        "id": "CursorCli-win32-x64-stable",
        "releaseTrack": "stable",
        "artifactDistributionVariant": "win32-x64",
        "constraints": {
          "os": [
            "windows"
          ],
          "cpu": [
            "x64"
          ]
        },
        "versionSelection": {
          "strategy": "latestByVersion",
          "allowPrerelease": false
        },
        "fileNameTemplate": "agent-cli-package-{version}-{artifactDistributionVariant}.zip",
        "acquisitionCandidates": [
          {
            "kind": "packageDepot",
            "searchOrder": 100,
            "verification": {
              "mode": "optional"
            }
          },
          {
            "kind": "download",
            "sourceId": "cursorAgentCliLab",
            "sourcePath": "{version}/windows/x64/agent-cli-package.zip",
            "searchOrder": 900,
            "verification": {
              "mode": "required"
            }
          }
        ]
      },
      {
        "id": "CursorCli-win32-arm64-stable",
        "releaseTrack": "stable",
        "artifactDistributionVariant": "win32-arm64",
        "constraints": {
          "os": [
            "windows"
          ],
          "cpu": [
            "arm64"
          ]
        },
        "versionSelection": {
          "strategy": "latestByVersion",
          "allowPrerelease": false
        },
        "fileNameTemplate": "agent-cli-package-{version}-{artifactDistributionVariant}.zip",
        "acquisitionCandidates": [
          {
            "kind": "packageDepot",
            "searchOrder": 100,
            "verification": {
              "mode": "optional"
            }
          },
          {
            "kind": "download",
            "sourceId": "cursorAgentCliLab",
            "sourcePath": "{version}/windows/arm64/agent-cli-package.zip",
            "searchOrder": 900,
            "verification": {
              "mode": "required"
            }
          }
        ]
      }
    ],
    "releases": [
      {
        "version": "2026.05.09-0afadcc",
        "releaseTracks": [
          "stable"
        ],
        "targetArtifacts": {
          "CursorCli-win32-x64-stable": {
            "artifactId": "cursor-cli-runtime-win32-x64-stable",
            "contentHash": {
              "algorithm": "sha256",
              "value": "9acfc6043f021508bb91badc8b8d6c34ef00bd3389907d8930514f1c8b52f03c"
            }
          },
          "CursorCli-win32-arm64-stable": {
            "artifactId": "cursor-cli-runtime-win32-arm64-stable",
            "contentHash": {
              "algorithm": "sha256",
              "value": "9b622fb0d7f51f8e1bfa5dcb840a5c5eaaf4829fda588e653fc04e3c83dbd1ac"
            }
          }
        }
      }
    ],
    "sources": {
      "cursorAgentCliLab": {
        "kind": "download",
        "baseUri": "https://downloads.cursor.com/lab/"
      }
    }
  },
  "discovery": {
    "presence": {
      "files": [
        "cursor-agent.cmd",
        "node.exe"
      ],
      "directories": [],
      "commands": [
        {
          "name": "agent",
          "relativePath": "cursor-agent.cmd",
          "requiredForState": true,
          "exposeCommand": true,
          "stateChecks": [
            {
              "arguments": [
                "--version"
              ],
              "outputPattern": "(?m)^(?<value>\\S+)\\s*$",
              "expectedValue": "{version}"
            }
          ]
        }
      ],
      "apps": [],
      "metadataFiles": [],
      "signatures": [],
      "fileDetails": [],
      "registry": [],
      "powerShellModules": []
    },
    "existingInstall": {
      "enabled": false,
      "searchLocations": [],
      "installRootRules": []
    }
  },
  "packageOperations": {
    "policy": {
      "ownershipPolicy": {
        "allowAdoptExternal": false,
        "upgradeAdoptedInstall": false,
        "requirePackageOwnership": true
      },
      "compatibility": {
        "checks": [
          {
            "kind": "osVersion",
            "operator": ">=",
            "value": "10.0"
          }
        ]
      }
    },
    "assigned": {
      "install": {
        "kind": "expandArchive",
        "installDirectory": "cursor-cli-runtime/{releaseTrack}/{version}/{artifactDistributionVariant}",
        "expandedRoot": "dist-package",
        "createDirectories": []
      },
      "readyStateCheck": {
        "use": "discovery.presence",
        "expectedVersion": "{version}",
        "require": {
          "files": true,
          "directories": false,
          "commands": true,
          "apps": false,
          "metadataFiles": false,
          "signatures": false,
          "fileDetails": false,
          "registry": false,
          "powerShellModules": false
        }
      },
      "pathRegistration": {
        "mode": "user",
        "source": {
          "kind": "shim",
          "use": "discovery.presence.commands"
        }
      },
      "versionUpdatePolicy": {
        "whenAssigned": "trackSelectedVersion",
        "onSameSelectedVersion": "reuseOrRepair",
        "onNewSelectedVersion": "replacePackageOwnedInstall"
      }
    },
    "removed": {
      "policy": {
        "whenNotInInventory": "succeed",
        "allowedInventoryOwnershipKinds": [
          "PackageInstalled"
        ],
        "allowUntrackedExternalRemoval": false,
        "removeDependencies": false
      },
      "operation": {
        "kind": "deleteInstallDirectory",
        "pathSource": "inventory.installDirectory"
      },
      "absenceVerification": {
        "use": "discovery.presence",
        "require": {
          "files": true,
          "directories": false,
          "commands": true,
          "apps": false,
          "metadataFiles": false,
          "signatures": false,
          "fileDetails": false,
          "registry": false,
          "powerShellModules": false
        }
      },
      "postRemoveCleanup": {
        "packageInventoryRecord": true,
        "generatedShims": true,
        "pathEntries": true,
        "workDirectories": true
      }
    }
  }
}