|
| 1 | +# UiPath Project Configuration Specification |
| 2 | + |
| 3 | +## Overview |
| 4 | + |
| 5 | +The `project.uiproj` file defines project-level metadata for UiPath coded projects. It is used by StudioWeb to identify the project type, name, and description. This file is auto-generated and auto-updated by `uipath init`. |
| 6 | + |
| 7 | +**File Name:** `project.uiproj` |
| 8 | + |
| 9 | +--- |
| 10 | + |
| 11 | +## File Structure |
| 12 | + |
| 13 | +```json |
| 14 | +{ |
| 15 | + "ProjectType": "Agent", |
| 16 | + "Name": "my-project", |
| 17 | + "Description": "Project description", |
| 18 | + "MainFile": null |
| 19 | +} |
| 20 | +``` |
| 21 | + |
| 22 | +--- |
| 23 | + |
| 24 | +## Properties |
| 25 | + |
| 26 | +| Property | Type | Required | Description | |
| 27 | +|----------|------|----------|-------------| |
| 28 | +| `ProjectType` | `string` | Yes | The type of project: `"Agent"` or `"Function"` | |
| 29 | +| `Name` | `string` | Yes | Project name, taken from `pyproject.toml` `[project].name` | |
| 30 | +| `Description` | `string\|null` | No | Project description, taken from `pyproject.toml` `[project].description` | |
| 31 | +| `MainFile` | `string\|null` | Yes | Main file path. Required by StudioWeb but not used for coded agents; always `null` for coded projects | |
| 32 | + |
| 33 | +--- |
| 34 | + |
| 35 | +## ProjectType |
| 36 | + |
| 37 | +The `ProjectType` is determined automatically from the entrypoints defined in `uipath.json`: |
| 38 | + |
| 39 | +- **`"Agent"`** — when all entrypoints are declared under the `"agents"` key |
| 40 | +- **`"Function"`** — when at least one entrypoint is declared under the `"functions"` key, or when no entrypoints exist |
| 41 | + |
| 42 | +If `uipath.json` contains both `"agents"` and `"functions"` (mixed types), a warning is emitted and the type defaults to the first entrypoint's type. |
| 43 | + |
| 44 | +If the project type changes between runs of `uipath init` (e.g., an existing `project.uiproj` has `"Agent"` but the current entrypoints are all functions), a warning is displayed. |
| 45 | + |
| 46 | +--- |
| 47 | + |
| 48 | +## Lifecycle |
| 49 | + |
| 50 | +- **Created by:** `uipath init` (when `project.uiproj` does not exist) |
| 51 | +- **Updated by:** `uipath init` (when `project.uiproj` already exists) |
| 52 | +- **Consumed by:** StudioWeb for project integration |
| 53 | + |
| 54 | +--- |
| 55 | + |
| 56 | +## Complete Examples |
| 57 | + |
| 58 | +### Agent Project |
| 59 | + |
| 60 | +```json |
| 61 | +{ |
| 62 | + "ProjectType": "Agent", |
| 63 | + "Name": "invoice-processor", |
| 64 | + "Description": "An agent that processes invoices using DU", |
| 65 | + "MainFile": null |
| 66 | +} |
| 67 | +``` |
| 68 | + |
| 69 | +### Function Project |
| 70 | + |
| 71 | +```json |
| 72 | +{ |
| 73 | + "ProjectType": "Function", |
| 74 | + "Name": "calculator", |
| 75 | + "Description": "A simple calculator function", |
| 76 | + "MainFile": null |
| 77 | +} |
| 78 | +``` |
0 commit comments