@uipath/skills 1.207.0 → 1.208.0-preview.2389

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.cursor-plugin/plugin.json +1 -1
  4. package/CODEOWNERS +13 -3
  5. package/README.md +6 -5
  6. package/assets/skill-status.json +10 -2
  7. package/assets/uip-browser-commands-snapshot.json +55 -3
  8. package/assets/uip-browser-host-served.json +2 -1
  9. package/assets/uip-catalog-snapshot.json +83 -3
  10. package/commands/install-permissions.md +8 -10
  11. package/package.json +3 -2
  12. package/skills/uipath-a2a-agents/SKILL.md +111 -0
  13. package/skills/uipath-a2a-agents/references/authentication-guide.md +61 -0
  14. package/skills/uipath-a2a-agents/references/troubleshooting-guide.md +98 -0
  15. package/skills/uipath-a2a-agents/references/updating-agents-guide.md +64 -0
  16. package/skills/uipath-activity-migrator/SKILL.md +31 -27
  17. package/skills/uipath-activity-migrator/references/acquisition-guide.md +91 -35
  18. package/skills/uipath-activity-migrator/references/build-verification-guide.md +1 -1
  19. package/skills/uipath-activity-migrator/references/packages/gsuite-guide.md +2 -2
  20. package/skills/uipath-activity-migrator/references/packages/mail-guide.md +1 -1
  21. package/skills/uipath-activity-migrator/references/packages/uia-guide.md +1 -1
  22. package/skills/uipath-activity-migrator/references/tool-behavior-guide.md +18 -8
  23. package/skills/uipath-activity-migrator/scripts/ensure-migrator.mjs +114 -49
  24. package/skills/uipath-activity-migrator/scripts/summarize-sarif.mjs +6 -0
  25. package/skills/uipath-admin/references/tenant-management.md +3 -3
  26. package/skills/uipath-admin/references/tenants-commands.md +2 -2
  27. package/skills/uipath-agents/SKILL.md +9 -4
  28. package/skills/uipath-agents/references/coded/capabilities/datafabric.md +8 -5
  29. package/skills/uipath-agents/references/coded/lifecycle/setup.md +2 -0
  30. package/skills/uipath-agents/references/coded/quickstart.md +1 -1
  31. package/skills/uipath-agents/references/lowcode/agent-definition.md +11 -1
  32. package/skills/uipath-agents/references/lowcode/capabilities/built-in-tools/analyze-attachments.md +2 -0
  33. package/skills/uipath-agents/references/lowcode/capabilities/built-in-tools/built-in-tools.md +5 -2
  34. package/skills/uipath-agents/references/lowcode/capabilities/escalation/escalation.md +8 -4
  35. package/skills/uipath-agents/references/lowcode/capabilities/guardrails/builtin-examples-guide.md +185 -0
  36. package/skills/uipath-agents/references/lowcode/capabilities/guardrails/byo-guide.md +12 -0
  37. package/skills/uipath-agents/references/lowcode/capabilities/guardrails/escalation-guide.md +6 -4
  38. package/skills/uipath-agents/references/lowcode/capabilities/guardrails/guardrails-recommend.md +2 -2
  39. package/skills/uipath-agents/references/lowcode/capabilities/guardrails/guardrails.md +15 -191
  40. package/skills/uipath-agents/references/lowcode/capabilities/inline-in-flow/inline-in-flow.md +5 -3
  41. package/skills/uipath-agents/references/lowcode/capabilities/integration-service/integration-service.md +12 -2
  42. package/skills/uipath-agents/references/lowcode/capabilities/process/process.md +66 -15
  43. package/skills/uipath-agents/references/lowcode/capabilities/process/solution-files.md +4 -0
  44. package/skills/uipath-agents/references/lowcode/critical-rules/critical-rules.md +2 -2
  45. package/skills/uipath-agents/references/lowcode/evaluations/runtime-eval-run.md +18 -18
  46. package/skills/uipath-agents/references/lowcode/lowcode.md +4 -2
  47. package/skills/uipath-agents/references/lowcode/project-lifecycle.md +8 -3
  48. package/skills/uipath-agents/references/lowcode/solution-resources.md +2 -2
  49. package/skills/uipath-aops/SKILL.md +1 -0
  50. package/skills/uipath-aops/references/discovery-flow.md +1 -1
  51. package/skills/uipath-aops/references/migration-guide.md +2 -1
  52. package/skills/uipath-api-workflow/SKILL.md +6 -4
  53. package/skills/uipath-api-workflow/assets/templates/genai-model-call-example.json +143 -0
  54. package/skills/uipath-api-workflow/references/cli-reference.md +9 -9
  55. package/skills/uipath-api-workflow/references/connector-activity-discovery.md +12 -3
  56. package/skills/uipath-api-workflow/references/troubleshooting.md +1 -1
  57. package/skills/uipath-coded-apps/SKILL.md +20 -12
  58. package/skills/uipath-coded-apps/references/commands-reference.md +25 -2
  59. package/skills/uipath-coded-apps/references/create-action-app.md +28 -0
  60. package/skills/uipath-coded-apps/references/create-web-app.md +33 -1
  61. package/skills/uipath-coded-apps/references/dashboards/plugins/deploy/impl.md +3 -3
  62. package/skills/uipath-coded-apps/references/debug.md +1 -1
  63. package/skills/uipath-coded-apps/references/pack-publish-deploy.md +71 -22
  64. package/skills/uipath-coded-apps/references/public-coded-app.md +1 -1
  65. package/skills/uipath-coded-apps/references/widgets/decisions-and-reasons.md +194 -0
  66. package/skills/uipath-connector-builder/SKILL.md +34 -0
  67. package/skills/uipath-connector-builder/references/community-submit-guide.md +103 -0
  68. package/skills/uipath-connector-builder/references/scripts.md +174 -0
  69. package/skills/uipath-connector-builder/references/v4-flow.md +97 -0
  70. package/skills/uipath-genome/references/build-guide.md +2 -2
  71. package/skills/uipath-genome/references/completion-report-guide.md +7 -5
  72. package/skills/uipath-genome/references/configuration-questions-guide.md +8 -7
  73. package/skills/uipath-genome/references/execution-guide.md +33 -7
  74. package/skills/uipath-genome/references/execution-parts-guide.md +4 -3
  75. package/skills/uipath-genome/references/genome-reading-guide.md +24 -7
  76. package/skills/uipath-genome/references/offline-definition-workarounds-guide.md +1 -1
  77. package/skills/uipath-genome/references/open-items-guide.md +5 -4
  78. package/skills/uipath-genome/references/package-doc-errata-guide.md +21 -0
  79. package/skills/uipath-genome/references/prepare-guide.md +38 -2
  80. package/skills/uipath-genome/references/refactor-guide.md +6 -4
  81. package/skills/uipath-genome/references/selector-translation-desktop-guide.md +8 -62
  82. package/skills/uipath-genome/references/selector-translation-guide.md +51 -51
  83. package/skills/uipath-genome/references/selector-translation-sap-guide.md +22 -39
  84. package/skills/uipath-genome/references/selector-translation-web-guide.md +32 -86
  85. package/skills/uipath-genome/references/source-frameworks-guide.md +1 -1
  86. package/skills/uipath-genome/references/source-migration-guide.md +9 -3
  87. package/skills/uipath-genome/references/test-execution-guide.md +2 -2
  88. package/skills/uipath-genome/references/transactional-execution-guide.md +2 -2
  89. package/skills/uipath-genome/references/ui-target-migration-guide.md +4 -2
  90. package/skills/uipath-governance/SKILL.md +1 -1
  91. package/skills/uipath-governance/references/access-policy/resource-lookup-guide.md +2 -2
  92. package/skills/uipath-governance/references/aops-policy/aops-policy-overview-guide.md +1 -1
  93. package/skills/uipath-governance/references/cli-cheatsheet.md +16 -16
  94. package/skills/uipath-ixp/references/cli-reference.md +3 -1
  95. package/skills/uipath-maestro-bpmn/SKILL.md +1 -1
  96. package/skills/uipath-maestro-bpmn/references/bpmn-runtime.md +1 -1
  97. package/skills/uipath-maestro-bpmn/references/evaluate.md +3 -3
  98. package/skills/uipath-maestro-case/SKILL.md +3 -3
  99. package/skills/uipath-maestro-case/examples/CreditDecision.case.ts +9 -2
  100. package/skills/uipath-maestro-case/references/case-runtime.md +47 -0
  101. package/skills/uipath-maestro-flow/references/author.md +1 -1
  102. package/skills/uipath-maestro-flow/references/evaluate.md +3 -3
  103. package/skills/uipath-maestro-flow/references/event-trigger.md +4 -0
  104. package/skills/uipath-mcp-servers/SKILL.md +28 -7
  105. package/skills/uipath-mcp-servers/references/connections-guide.md +13 -0
  106. package/skills/uipath-mcp-servers/references/guardrails-guide.md +66 -0
  107. package/skills/uipath-mcp-servers/references/troubleshooting-guide.md +23 -0
  108. package/skills/uipath-ontology/SKILL.md +3 -3
  109. package/skills/uipath-ontology/references/artifacts-guide.md +1 -1
  110. package/skills/uipath-ontology/references/owl-patterns-guide.md +1 -1
  111. package/skills/uipath-planner/SKILL.md +17 -7
  112. package/skills/uipath-planner/assets/templates/agent-sdd-template.md +27 -3
  113. package/skills/uipath-planner/assets/templates/api-workflow-sdd-template.md +5 -1
  114. package/skills/uipath-planner/assets/templates/bpmn-sdd-template.md +5 -1
  115. package/skills/uipath-planner/assets/templates/coded-app-sdd-template.md +5 -1
  116. package/skills/uipath-planner/assets/templates/component-genome-template.md +3 -3
  117. package/skills/uipath-planner/assets/templates/flow-sdd-template.md +5 -1
  118. package/skills/uipath-planner/assets/templates/process-genome-template.md +4 -4
  119. package/skills/uipath-planner/assets/templates/rpa-sdd-template.md +5 -1
  120. package/skills/uipath-planner/references/author/author-guide.md +4 -5
  121. package/skills/uipath-planner/references/author/genome-from-sdd-guide.md +3 -3
  122. package/skills/uipath-planner/references/design/case-product-guide.md +1 -1
  123. package/skills/uipath-planner/references/design/case-review-and-conformance-guide.md +4 -1
  124. package/skills/uipath-planner/references/design/design-guide.md +2 -2
  125. package/skills/uipath-planner/references/design/scope-recommendation-guide.md +1 -1
  126. package/skills/uipath-planner/references/design/sdd-writing-guide.md +5 -7
  127. package/skills/uipath-planner/references/edit/edit-guide.md +2 -2
  128. package/skills/uipath-planner/references/extract/extract-guide.md +34 -22
  129. package/skills/uipath-planner/references/extract/uipath-non-rpa-signals-guide.md +12 -5
  130. package/skills/uipath-planner/references/extract/uipath-rpa-signals-guide.md +2 -2
  131. package/skills/uipath-planner/references/extract/uipath-source-guide.md +9 -4
  132. package/skills/uipath-planner/references/interview/interview-guide.md +11 -11
  133. package/skills/uipath-planner/references/shared/defect-verification-guide.md +2 -2
  134. package/skills/uipath-planner/references/shared/extracted-genome-guide.md +16 -11
  135. package/skills/uipath-planner/references/shared/extraction-parts-guide.md +19 -12
  136. package/skills/uipath-planner/references/shared/genome-format-guide.md +19 -85
  137. package/skills/uipath-planner/references/shared/genome-questions-guide.md +51 -0
  138. package/skills/uipath-planner/references/shared/multi-skill-patterns-guide.md +11 -0
  139. package/skills/uipath-planner/references/shared/open-questions-guide.md +1 -1
  140. package/skills/uipath-planner/references/shared/plan-and-tasks-format.md +1 -1
  141. package/skills/uipath-planner/references/shared/process-genome-sections-guide.md +28 -0
  142. package/skills/uipath-planner/references/shared/sdd-from-genome-guide.md +1 -1
  143. package/skills/uipath-planner/references/shared/skill-mapping-guide.md +5 -0
  144. package/skills/uipath-planner/references/shared/tenant-library-search-guide.md +9 -9
  145. package/skills/uipath-planner/references/shared/transactional-shape-guide.md +3 -3
  146. package/skills/uipath-planner/scripts/case-sdd-check.mjs +68 -1
  147. package/skills/uipath-planner/scripts/check-genome.mjs +70 -6
  148. package/skills/uipath-planner/scripts/scope-check.mjs +22 -2
  149. package/skills/uipath-platform/SKILL.md +36 -25
  150. package/skills/uipath-platform/references/cli-freeze-guide.md +61 -0
  151. package/skills/uipath-platform/references/data-fabric/data-fabric.md +7 -3
  152. package/skills/uipath-platform/references/integration-service/integration-service.md +1 -1
  153. package/skills/uipath-platform/references/integration-service/triggers.md +32 -0
  154. package/skills/uipath-platform/references/licensing/folder-outcome-billing.md +121 -0
  155. package/skills/uipath-platform/references/licensing/licensing.md +11 -6
  156. package/skills/uipath-platform/references/licensing/user-usage-topups.md +236 -0
  157. package/skills/uipath-platform/references/llmgateway/custom-connector/custom-connector-guide.md +6 -4
  158. package/skills/uipath-platform/references/orchestrator/api-limits.md +1 -1
  159. package/skills/uipath-platform/references/orchestrator/resources.md +8 -5
  160. package/skills/uipath-platform/references/orchestrator/run-jobs.md +4 -0
  161. package/skills/uipath-platform/references/orchestrator/setup-environment.md +5 -3
  162. package/skills/uipath-platform/references/orchestrator/tenant-admin.md +9 -6
  163. package/skills/uipath-platform/references/orchestrator/triggers-and-webhooks.md +8 -4
  164. package/skills/uipath-platform/references/orchestrator/work-with-storage.md +31 -8
  165. package/skills/uipath-platform/references/traces/decisions.md +2 -0
  166. package/skills/uipath-platform/references/uip-commands.md +7 -5
  167. package/skills/uipath-review/references/rpa/rpa-review-checklist.md +1 -1
  168. package/skills/uipath-rpa/SKILL.md +5 -5
  169. package/skills/uipath-rpa/references/cli-reference.md +3 -3
  170. package/skills/uipath-rpa/references/common-pattern-card.md +7 -1
  171. package/skills/uipath-rpa/references/debugging.md +4 -2
  172. package/skills/uipath-rpa/references/execution-journeys-catalog.md +1 -1
  173. package/skills/uipath-rpa/references/legacy/selector-guide.md +0 -12
  174. package/skills/uipath-rpa/references/library-authoring-guide.md +5 -5
  175. package/skills/uipath-rpa/references/remote-session-guide.md +54 -8
  176. package/skills/uipath-rpa/references/tenant-library-search-guide.md +9 -9
  177. package/skills/uipath-rpa/references/testing-guide.md +2 -2
  178. package/skills/uipath-rpa/references/uia-policies-catalog.md +4 -2
  179. package/skills/uipath-rpa/references/xaml/common-pitfalls.md +2 -21
  180. package/skills/uipath-rpa/references/xaml/xaml-basics-and-rules.md +0 -1
  181. package/skills/uipath-rules/SKILL.md +20 -16
  182. package/skills/uipath-rules/references/drd-guide.md +333 -0
  183. package/skills/uipath-rules/references/failure-modes-guide.md +1 -1
  184. package/skills/uipath-solution/SKILL.md +7 -4
  185. package/skills/uipath-solution/references/activate-and-manage.md +57 -23
  186. package/skills/uipath-solution/references/develop-solution.md +98 -8
  187. package/skills/uipath-solution/references/pack-and-deploy.md +108 -29
  188. package/skills/uipath-solution/references/pack-build-guide.md +151 -0
  189. package/skills/uipath-solution/references/scenarios/failure-modes.md +20 -2
  190. package/skills/uipath-solution/references/scenarios/manual-edits.md +2 -1
  191. package/skills/uipath-solution/references/scenarios/shared-cloud-resource.md +1 -1
  192. package/skills/uipath-solution/references/scenarios.md +2 -1
  193. package/skills/uipath-solution/references/solution-overview.md +5 -4
  194. package/skills/uipath-troubleshoot/references/activity-packages/classic-activities/playbooks/queue-operation-failed.md +2 -2
  195. package/skills/uipath-troubleshoot/references/investigation_guide.md +1 -0
  196. package/skills/uipath-troubleshoot/references/products/agents/playbooks/context-grounding-index-not-found.md +2 -1
  197. package/skills/uipath-troubleshoot/references/products/agents/playbooks/guardrail-violation.md +5 -3
  198. package/skills/uipath-troubleshoot/references/products/agents/playbooks/input-schema-validation-failure.md +2 -1
  199. package/skills/uipath-troubleshoot/references/products/agents/playbooks/is-connection-disabled.md +2 -2
  200. package/skills/uipath-troubleshoot/references/products/agents/playbooks/is-invalid-credentials.md +3 -5
  201. package/skills/uipath-troubleshoot/references/products/agents/playbooks/is-invalid-element-instance.md +2 -2
  202. package/skills/uipath-troubleshoot/references/products/agents/playbooks/llm-insufficient-information.md +2 -3
  203. package/skills/uipath-troubleshoot/references/products/api-workflows/playbooks/never-ran-no-job.md +1 -1
  204. package/skills/uipath-troubleshoot/references/products/api-workflows/playbooks/platform-limits.md +1 -1
  205. package/skills/uipath-troubleshoot/references/products/coded-apps/overview.md +1 -0
  206. package/skills/uipath-troubleshoot/references/products/coded-apps/playbooks/api-401-after-login.md +1 -1
  207. package/skills/uipath-troubleshoot/references/products/coded-apps/playbooks/api-403-folder-permission.md +2 -2
  208. package/skills/uipath-troubleshoot/references/products/coded-apps/playbooks/invalid-scope.md +1 -1
  209. package/skills/uipath-troubleshoot/references/products/coded-apps/playbooks/redirect-uri-mismatch.md +1 -1
  210. package/skills/uipath-troubleshoot/references/products/orchestrator/investigation_guide.md +4 -4
  211. package/skills/uipath-troubleshoot/references/products/orchestrator/overview.md +2 -2
  212. package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/platform-incident-correlation.md +2 -2
  213. package/version-manifest.json +2 -2
  214. package/skills/uipath-genome/references/selector-matching-guide.md +0 -60
@@ -0,0 +1,111 @@
1
+ ---
2
+ name: uipath-a2a-agents
3
+ description: "UiPath Agent Gateway A2A agents (`uip agenthub remote-a2a-agent` / `remote-a2a-agent-user-connections`). Add an external A2A agent (Salesforce Agentforce, Microsoft Foundry, any agent that publishes an agent card) from its card link or card JSON; sign it in with an OAuth Agent 2 Agent connection or with headers from Orchestrator assets; give a person their own Agent 2 Agent connection; change it, refresh its card, show it or remove it. Agents and Maestro flows can then call it. For calling an A2A agent from a flow→uipath-maestro-flow. For MCP servers→uipath-mcp-servers."
4
+ allowed-tools: Bash, Read, Write, Edit, Glob, Grep, AskUserQuestion
5
+ ---
6
+
7
+ # UiPath Agent Gateway Remote A2A Agents
8
+
9
+ Agent Gateway is Orchestrator's hub for MCP servers and A2A agents: [about](https://docs.uipath.com/orchestrator/automation-cloud/latest/user-guide/about-agent-gateway). A **remote A2A agent** is an agent that runs elsewhere (a vendor's, another team's) registered in Agent Gateway so UiPath agents and Maestro flows can call it. Agent Gateway stores its agent card, calls the endpoint the card names, and authenticates every call. The CLI group is `agenthub`: `uip agenthub remote-a2a-agent` manages agents, `uip agenthub remote-a2a-agent-user-connections` manages users' own connections on them.
10
+
11
+ ## When to Use This Skill
12
+
13
+ - Register, update, delete, list or get a remote A2A agent, or fetch its card again (`refresh-card`).
14
+ - Choose and set how Agent Gateway authenticates to it: an Integration Service connection, or headers ([Authentication](#authentication)).
15
+ - List, set or delete a user's own connection on an agent ([Per-User Connections](#per-user-connections)).
16
+ - Reach an agent inside a private network through Relay ([Relay](#relay)).
17
+ - Get the `A2aUrl` UiPath callers use for the agent.
18
+
19
+ **Not this skill:** calling a remote A2A agent from a flow (an `a2a` tool on the flow's agent) → `uipath-maestro-flow`; MCP servers → `uipath-mcp-servers`; Integration Service connections of other connectors → `uipath-platform`. No skill covers adding it as a tool to an Agent Builder agent, or exposing a UiPath agent to other platforms over A2A. A BPMN process cannot call one: Studio Web no longer offers the A2A task.
20
+
21
+ ## Critical Rules
22
+
23
+ 1. **Give every command the agent's folder.** Pass `--folder-path <FOLDER_PATH>` or `--folder-key <FOLDER_KEY>` (never both) on every `remote-a2a-agent` and `remote-a2a-agent-user-connections` command except `--print-schema` on `create`. Slugs are unique per folder: the same slug can name different agents in two folders. Find folders with `uip or folders list --output json`; a personal workspace resolves only by `--folder-key`.
24
+
25
+ 2. **Use the slug, exactly as `list` prints it.** Always pass `--slug` on `create`. Never pass a display name or a GUID where a slug goes.
26
+
27
+ 3. **Only OAuth connections work.** Agent Gateway asks Integration Service for a connection's OAuth token on every call and on every card fetch. An Agent 2 Agent connection of type Personal Access Token, API Key or Basic has no OAuth token: `create` and `refresh-card` with it fail with `server_error` "HTTP 502: Received HTML instead of the expected JSON response.", whatever the `Instructions` say about retrying, and calls fail the same way. The CLI cannot show a connection's type: before you pass `--connection-id`, confirm with the user that the connection uses an OAuth 2.0 grant; when you cannot ask, do not pass it, and tell the user which connection you left out and why. For an API key, Basic credentials or a fixed bearer token, use `--header` instead ([Authentication](#authentication)).
28
+
29
+ 4. **Keep secrets in Orchestrator assets.** A header value of exactly `%ASSETS/<ASSET_NAME>%` is replaced, on every call, by that asset's value from the agent's folder. The asset holds the whole value (`Bearer <TOKEN>`, `Basic <BASE64>`), so nothing goes before or after the reference: `Authorization=%ASSETS/<ASSET_NAME>%`. `Bearer %ASSETS/<ASSET_NAME>%` is not replaced: the agent gets that text as is. Never put a raw secret in `--header` when the user can store it in an asset, and never print one back.
30
+
31
+ 5. **Dry-run every write first.** `create`, `update`, `delete`, `refresh-card` and the per-user `set` / `delete` take `--dry-run`: it runs the CLI's checks and prints the plan (`Code: DryRun`) without the call. The service's own checks (the card fetch, asset reads, name and slug conflicts) run only on the real call, so a clean plan does not promise a clean write. The plan shows header values in clear: do not paste it to the user when a header holds a raw secret.
32
+
33
+ 6. **An update changes only what the user asked.** Scalar flags keep every stored field you do not pass. Do not re-send the card, the headers or the connection to change something else ([Updating Agents](#updating-agents)).
34
+
35
+ 7. **Never route stored credentials around a refusal.** `update` refuses to move an agent with a secret or asset-backed header to another origin, and refuses `****` under a header stored unmasked. Follow the refusal's `Instructions`; do not delete headers or the connection to get past it without the user's consent.
36
+
37
+ 8. **Ask before acting for another user.** Setting or deleting someone else's per-user connection changes how their calls authenticate: confirm with the user first, unless they asked for exactly that user.
38
+
39
+ 9. **Deletes need `--yes`, after the user confirms.** `remote-a2a-agent delete` and the per-user `delete` refuse without `--yes` (`ErrorCode: confirmation_required`) and never prompt. Show the slug and `Name`, get the user's confirmation, then pass `--yes`. A delete's `--dry-run` needs `--yes` too and deletes nothing, so `delete <SLUG> --dry-run --yes` is fine before the user confirms; only the real delete waits for them ([Deleting an Agent](#deleting-an-agent)).
40
+
41
+ 10. **`not_supported` is final.** `ErrorCode: not_supported` ("Remote A2A agent management isn't supported on the connected environment.") means Agent Gateway there does not offer remote A2A agents ([Automation Suite](#automation-suite)). Another attempt, folder or flag gets the same answer; tell the user.
42
+
43
+ ## Registering an Agent
44
+
45
+ `uip agenthub remote-a2a-agent create --name <NAME> --slug <SLUG> --agent-card-url <CARD_URL> --folder-path <FOLDER_PATH> --output json`, plus the agent's auth: `--connection-id <CONNECTION_ID>` or `--header <NAME>=<VALUE>` (repeatable), and `--use-relay` for a private network.
46
+
47
+ - **Picking the connection.** List the Agent 2 Agent connections ([OAuth connections](references/authentication-guide.md#oauth-connections)), then ask the user which one uses OAuth 2.0, naming each by its `Name` and `Id`. The list does not show a connection's type: do not infer it from the name, the order or `IsDefault`. Pass the `Id` of the row whose `Name` the user gives (Critical Rule 3).
48
+ - **`--agent-card-url`** may be any URL that serves the card, not only `/.well-known/agent-card.json` (Foundry serves it at `…/a2a/agentCard/v1.0`; see the [Foundry example](references/authentication-guide.md#example-microsoft-foundry)). Agent Gateway fetches it on `create` and `refresh-card` with the agent's own auth (connection or headers), through Relay when it is on. A card behind auth is fine when that auth is set on the agent.
49
+ - **`--agent-card-json '<JSON>'`** stores a card you pass, without fetching: use it only when Agent Gateway cannot fetch the card at all. `refresh-card` then has nothing to fetch.
50
+ - Every call goes to the JSON-RPC endpoint the card names: its `url` in a v0.3 card, or its `supportedInterfaces` URL in a v1.0 card. Check it is the agent's real endpoint before creating.
51
+ - From a CLI login, a `%ASSETS/<ASSET_NAME>%` header makes `create` from a card URL, and `refresh-card`, fail with `Forbidden (403)`: Orchestrator does not give asset values to a CLI login. Create without that header and add it with `update <SLUG> --folder-path <FOLDER_PATH> --header "<HEADER>=%ASSETS/<ASSET_NAME>%"`, the value exactly the reference: for a bearer token stored as `Bearer <TOKEN>`, `--header "Authorization=%ASSETS/<ASSET_NAME>%"`, never `Authorization=Bearer %ASSETS/…%` (Rule 4). Or create from `--agent-card-json` ([details](references/troubleshooting-guide.md#asset-backed-headers-from-the-cli)).
52
+ - `create --print-schema --output json` describes a `--file` / `--body` payload, in camelCase.
53
+ - The result is the stored agent: `Slug`, `A2aUrl`, `AgentCardUrl`, `CachedAgentCard`, `Headers` (secrets as `****`), `UseRelay`, `IsActive`, and `ConnectionId` when it has one. Confirm the create from it.
54
+
55
+ ## Authentication
56
+
57
+ Agent Gateway authenticates every call to the agent, and every card fetch, with the caller's own per-user connection if they have one ([Per-User Connections](#per-user-connections)), else the agent's connection, else the agent's headers. Pick from the `securitySchemes` in the agent's card: OAuth 2.0 → an OAuth Agent 2 Agent connection (`--connection-id`, Rule 3); an API key in a header, HTTP Basic or a fixed bearer token → `--header`, with the value in an asset (Rule 4). With no OAuth connection to use, create one with the user: the CLI opens the sign-in page and waits for it. The table for each scheme, what goes in the asset, OAuth connections, creating one, and a Microsoft Foundry example: [references/authentication-guide.md](references/authentication-guide.md).
58
+
59
+ ## Updating Agents
60
+
61
+ `uip agenthub remote-a2a-agent update <SLUG> --folder-path <FOLDER_PATH> --output json`, with only the flags for what changes (Rule 6). What each flag keeps or replaces, masked values, moving an agent to another host and payloads: [references/updating-agents-guide.md](references/updating-agents-guide.md).
62
+
63
+ ## Deleting an Agent
64
+
65
+ 1. `uip agenthub remote-a2a-agent get <SLUG> --folder-path <FOLDER_PATH> --output json`: note its `Name`.
66
+ 2. Ask the user to confirm, naming it: "Delete the remote A2A agent `<SLUG>` (`<NAME>`) from `<FOLDER_PATH>`? This cannot be undone." Wait for their answer before the next step, even when they asked for the delete.
67
+ 3. Only after a yes: `uip agenthub remote-a2a-agent delete <SLUG> --folder-path <FOLDER_PATH> --yes --output json`. Without `--yes` the CLI refuses (`confirmation_required`) and never prompts (Rule 9).
68
+ 4. Tell the user it is deleted.
69
+
70
+ A `delete <SLUG> --folder-path <FOLDER_PATH> --dry-run --yes` before step 2 is fine: it deletes nothing. The same steps apply to a per-user `remote-a2a-agent-user-connections delete`, naming the user instead of the agent.
71
+
72
+ ## Per-User Connections
73
+
74
+ An agent calls with its own connection, except for a user who has a per-user connection on it: calls made with that user's identity use their own. Calls made with any other identity (another user, an external application) use the agent's connection. Use them when each user has their own account at the agent's provider.
75
+
76
+ - `uip agenthub remote-a2a-agent-user-connections list --agent <SLUG> --folder-path <FOLDER_PATH> --output json` — one row per user: `UserId`, `UserName`, `ConnectionId`, `ConnectionName`, `Status`. Needs McpServers.Edit.
77
+ - `uip agenthub remote-a2a-agent-user-connections set --agent <SLUG> --me --connection-id <CONNECTION_ID> --folder-path <FOLDER_PATH> --output json` — sets or replaces one. The user: `--me`, `--user-email <EMAIL>` or `--user-id <USER_ID>`; the connection: `--connection-id` or `--connection-name "<NAME>"`, exactly one of each. Needs Connections.Edit. The connection must be an OAuth Agent 2 Agent connection (Rule 3) made for the endpoint in the agent's card. For a v0.3 card, the CLI refuses a connection made for another URL; it does not check a v1.0 card.
78
+ - **Another user's connection in their personal workspace** is one you see only while you explore that workspace. Until then, `set` for them answers `You can see no connection of the Agent 2 Agent connector named '<NAME>'.`, and its id gets a 403. Exploring gives you the Personal Workspace Administrator role on everything in it, and Orchestrator notifies the owner and audits it: ask the user before you explore (Rule 8). Then:
79
+ 1. `uip or folders explore --owner <USER_EMAIL> --output json`, with the email you pass to `set --user-email` (`--owner` also takes the `--user-id`). `Data.Status` is `Exploring` or `Already exploring`. It needs a user login, not an external application, and Folders.Edit, Users.View and Roles.View on the tenant.
80
+ 2. `set` again, as above.
81
+ 3. `uip or folders stop-exploring --owner <USER_EMAIL> --output json`, unless the user wants to keep exploring. The per-user connection stays set.
82
+ - `uip agenthub remote-a2a-agent-user-connections delete --agent <SLUG> --me --folder-path <FOLDER_PATH> --yes --output json` — removes one, so that user's calls use the agent's connection again (Rule 9).
83
+ - `Status`: `Active` — the connection is enabled. Any other status: [troubleshooting](references/troubleshooting-guide.md#per-user-connections).
84
+ - `Per-user connections are not enabled on this tenant.` — they aren't available on this tenant: every user calls with the agent's connection, which `update --connection-id` changes.
85
+
86
+ ## Relay
87
+
88
+ `--use-relay` routes the card fetch and every call through UiPath Relay, for an agent the cloud cannot reach (inside a company network). The Relay client must be running where the agent is reachable. `update --no-use-relay` turns it off; an update without either keeps the setting. Without Relay, Agent Gateway refuses private hosts.
89
+
90
+ ## Automation Suite
91
+
92
+ Agent Gateway on Automation Suite does not have remote A2A agents: every `uip agenthub remote-a2a-agent` and `remote-a2a-agent-user-connections` command fails with `not_supported` (Rule 10).
93
+
94
+ ## Troubleshooting
95
+
96
+ Every `uip agenthub` message about remote A2A agents, with its cause and fix: [references/troubleshooting-guide.md](references/troubleshooting-guide.md). The most common: an HTTP 502 on `create` or `refresh-card` means Agent Gateway could not fetch the card, usually because of a non-OAuth connection (Rule 3); running the same command again gets the same 502.
97
+
98
+ ## Reference Navigation
99
+
100
+ - [references/authentication-guide.md](references/authentication-guide.md) — what Agent Gateway sends, the table for each scheme, OAuth connections, a Microsoft Foundry example.
101
+ - [references/updating-agents-guide.md](references/updating-agents-guide.md) — what an update keeps or replaces, masked values, moving an agent, payloads.
102
+ - [references/troubleshooting-guide.md](references/troubleshooting-guide.md) — errors with their cause and fix, connections that are not OAuth, asset-backed headers from the CLI.
103
+
104
+ ## What NOT to Do
105
+
106
+ - Do NOT attach a Personal Access Token, API Key or Basic connection; do NOT retry the 502 it causes (Rule 3).
107
+ - Do NOT write `Bearer %ASSETS/<ASSET_NAME>%`: the asset holds the whole value (Rule 4).
108
+ - Do NOT put a raw secret in `--header` when it can live in an asset (Rule 4).
109
+ - Do NOT re-send the card or headers to change something else (Rule 6).
110
+ - Do NOT run a delete with `--yes` before the user confirms; a `--dry-run --yes` is fine (Rule 9).
111
+ - Do NOT retry a `not_supported` failure (Rule 10).
@@ -0,0 +1,61 @@
1
+ # Authenticating Remote A2A Agents
2
+
3
+ Detail behind [Authentication](../SKILL.md#authentication). Read it before choosing how a new agent authenticates, and before an `update` with `--connection-id` or `--header`.
4
+
5
+ ## What Agent Gateway sends
6
+
7
+ Every call to the agent, and every card fetch (`create` from `--agent-card-url`, `refresh-card`), authenticates with the first that applies:
8
+
9
+ 1. **The caller's per-user connection** on the agent, when the caller is a user who has one.
10
+ 2. **The agent's connection** (`--connection-id`). Agent Gateway asks Integration Service for the connection's OAuth token on each call and sends `Authorization: Bearer <TOKEN>`. A stored `Authorization` header is then not sent; the other headers are.
11
+ 3. **The agent's headers** alone.
12
+
13
+ Header values can come from Orchestrator assets, as [Critical Rule 4](../SKILL.md#critical-rules) says. Use a Secret or Text asset; a Credential asset gives its password. Creating assets → `uipath-platform`.
14
+
15
+ `get` shows a raw header value as `****` only when a part of its name, between hyphens, ends in `Token`, `Secret`, `Password`, `Auth`, `Credentials` or `Session`, is `Authorization`, or the name has `Api-Key`, `Access-Key`, `Private-Key`, `Secret-Key` or `Session-Key`: `X-Api-Key` is masked, `Ocp-Apim-Subscription-Key` and `X-Authorize` are not. Under any other name the value prints in clear. Asset references always print as written.
16
+
17
+ Every call also carries the caller's `Accountid` and `Tenantid` headers and the trace headers (`Traceparent`, `Request-Id`, `Request-Context`).
18
+
19
+ ## Choosing from the card
20
+
21
+ Read the card's `securitySchemes`: from `CachedAgentCard` in `get`, or from the provider. Then confirm with the user what credential they have.
22
+
23
+ | Scheme in the card | Set on the agent |
24
+ |---|---|
25
+ | `oauth2`, any flow | `--connection-id` of an Agent 2 Agent connection that uses an OAuth 2.0 grant ([below](#oauth-connections)). |
26
+ | `apiKey`, `in: header` | `--header "<NAME>=%ASSETS/<ASSET_NAME>%"`, with `<NAME>` the scheme's `name` and the asset holding the key. |
27
+ | `apiKey`, `in: query` | Not supported: Agent Gateway sends headers, not query parameters. Ask the provider for a header or OAuth option. |
28
+ | `http`, `scheme: basic` | `--header "Authorization=%ASSETS/<ASSET_NAME>%"`, the asset holding `Basic <BASE64>` (`<BASE64>` encodes `<USER>:<PASSWORD>`). |
29
+ | `http`, `scheme: bearer`, a token that does not expire | `--header "Authorization=%ASSETS/<ASSET_NAME>%"`, the asset holding `Bearer <TOKEN>`. |
30
+ | `http`, `scheme: bearer`, a token from an OAuth server | An OAuth connection, as for `oauth2`. A copied token stops working when it expires. |
31
+ | No `securitySchemes` | Nothing, or what the provider documents. |
32
+
33
+ A raw value (`--header "<NAME>=<VALUE>"`) works too, but use it only when the user cannot store an asset (Critical Rule 4).
34
+
35
+ ## OAuth connections
36
+
37
+ The connector is **Agent 2 Agent**, connector key `uipath-google-agent2agent`. `uip is connections list <CONNECTOR_KEY> --all-folders --refresh --output json`, with that key, lists its connections with their ids and folders. Always pass `--refresh`: without it the CLI answers from its cache. When none fits, create one with the user ([below](#creating-a-connection)).
38
+
39
+ The connector offers seven authentication types. Only the ones that use an OAuth 2.0 grant, such as client credentials, work in Agent Gateway, because it asks Integration Service for the connection's OAuth token. Personal Access Token, API Key and Basic do not ([why](troubleshooting-guide.md#connections-that-are-not-oauth)), although the connector's documentation lists them.
40
+
41
+ The CLI cannot show a connection's type: `is connections list` has no column for it. Before passing `--connection-id`, ask the user which type the connection uses.
42
+
43
+ ### Creating a connection
44
+
45
+ Ask the user first: it opens their browser and, for an authorization code, signs them in to the agent's provider. Then:
46
+
47
+ 1. Tell them what the page asks for, so they have it ready: the authentication type, **OAuth 2.0 Authorization code** (the caller signs in) or **OAuth 2.0 Client credentials** (no person signs in); the agent's base URL as **Service URL**; and the OAuth app's **Client ID**, **Client secret**, **Authorization URL**, **Token URL** and **Scope**, from the provider. The card's `securitySchemes` names the URLs and scopes. For an authorization code, the app must allow the callback URL the page shows (`https://cloud.uipath.com/provisioning_/callback` on Automation Cloud). They type these on the page: never ask for the client secret in the chat, and never fill the page in yourself.
48
+ 2. Run `uip --interactive is connections create uipath-google-agent2agent --folder-path <FOLDER_PATH> --output json` with a command timeout of at least 6 minutes. It opens the page in the browser, with the folder already chosen, and waits up to 5 minutes for the user to finish. Then it answers `Code: ConnectionCreated`, with `Data.ConnectionId` and `Data.State: Enabled`: pass that id as `--connection-id`.
49
+ - `--folder-path` is the agent's folder, for the agent's connection. Leave it out for a user's own per-user connection: it then goes to their Personal Workspace.
50
+ - Without `--interactive`, a run from an agent's shell opens nothing and answers `Status: AuthorizationPending` with an `AuthUrl`.
51
+ 3. When the shell cannot wait 6 minutes, pass `--no-wait` instead. Open the `AuthUrl` it answers in the user's browser (`open '<AUTH_URL>'` on macOS, `xdg-open '<AUTH_URL>'` on Linux, `powershell.exe -NoProfile -Command "Start-Process '<AUTH_URL>'"` on Windows) and wait for them to say it is done: the page expires about 12 minutes after it opens. Then find the connection with `uip is connections list <CONNECTOR_KEY> --folder-path <FOLDER_PATH> --refresh --output json`, with `<CONNECTOR_KEY>` `uipath-google-agent2agent`: the newest `Enabled` one.
52
+
53
+ ## Example: Microsoft Foundry
54
+
55
+ An example of the rules above, from Microsoft's [Enable incoming A2A on a Foundry agent](https://learn.microsoft.com/en-us/azure/foundry/agents/how-to/enable-agent-to-agent-endpoint):
56
+
57
+ - Foundry accepts only Microsoft Entra ID tokens, on every A2A URL, the card included.
58
+ - Use an Agent 2 Agent connection with OAuth 2.0 client credentials: token URL `https://login.microsoftonline.com/<ENTRA_TENANT_ID>/oauth2/v2.0/token`, the client id and secret of an Entra app registration, scope `https://ai.azure.com/.default`. Pass it on `create` with `--connection-id`: it also authenticates the card fetch.
59
+ - Give the app's service principal the **Foundry Agent Consumer** role on the Foundry project, or on that agent.
60
+ - The card is at the agent's A2A path followed by `/agentCard/v1.0`, or `/agentCard/v0.3` for A2A v0.3: `https://<ACCOUNT>.services.ai.azure.com/api/projects/<PROJECT>/agents/<AGENT>/endpoint/protocols/a2a/agentCard/v1.0`. Not `/.well-known/agent-card.json`.
61
+ - Do not paste an Entra token as a static `Authorization` header: it expires.
@@ -0,0 +1,98 @@
1
+ # Remote A2A Agent Troubleshooting
2
+
3
+ Text `uip agenthub remote-a2a-agent` and `remote-a2a-agent-user-connections` print in a failure's `Message`, `Instructions` or `Errors`, with its cause and fix. Every failure also carries `Instructions`: when no row here matches, follow them, except a `Retry: RetryLater` on a 502 from `create` or `refresh-card` ([below](#registering-and-the-card)).
4
+
5
+ ## Registering and the card
6
+
7
+ | Text | Cause and fix |
8
+ |---|---|
9
+ | `HTTP 502: Received HTML instead of the expected JSON response.` (`server_error`) on `create` or `refresh-card` | Agent Gateway could not fetch the card. It reports every cause the same way, so a retry fails again. Check, in this order: **1.** With a connection: it must use an OAuth grant. A Personal Access Token, API Key or Basic connection always fails ([why](#connections-that-are-not-oauth)); ask the user its type. An OAuth one may need its owner to sign in again: `uip is connections ping <CONNECTION_ID> --force-refresh --output json`. **2.** The card URL must answer with the card, with the agent's auth: check the path with the user (Foundry's ends `…/a2a/agentCard/v1.0`). **3.** A host only reachable from a private network needs `--use-relay`. When Agent Gateway cannot fetch the card at all, create with `--agent-card-json`. `create` stores nothing on failure. |
10
+ | `URL blocked for security reasons: DNS resolution failed for host: <HOST>` (in `Errors.AgentCardUrl`) | The host does not resolve from the cloud. Check its spelling; for a host inside a private network, pass `--use-relay`. |
11
+ | `URL blocked for security reasons: Private network address detected: <IP>` (in `Errors.AgentCardUrl`) | A private host without Relay: pass `--use-relay`. A Relay client must reach the host. |
12
+ | `Forbidden (403). …` with `Context.ErrorCode: "10400"`, on `create` from a card URL or `refresh-card` of an agent with a `%ASSETS/<ASSET_NAME>%` header | Orchestrator refused to give the asset's value to a CLI login: [asset-backed headers from the CLI](#asset-backed-headers-from-the-cli). Token scopes are not the cause. |
13
+ | `HTTP 409: Business Conflict: Remote A2A agent with slug '<SLUG>' already exists in this folder` | Pick another `--slug`, or update the existing agent. |
14
+ | `HTTP 409: Business Conflict: Remote A2A agent with name '<NAME>' already exists in this folder` | Pick another `--name`. |
15
+ | `HTTP 500: Server error: Cannot refresh agent card: no AgentCardUrl configured. …` | The agent was created from `--agent-card-json`, so `refresh-card` has nothing to fetch. Do not retry. Pass a new card with `update --agent-card-json`, or set `--agent-card-url` and then refresh. |
16
+
17
+ ## Connections that are not OAuth
18
+
19
+ [Critical Rule 3](../SKILL.md#critical-rules) gives the symptom. The cause: Integration Service answers the token request for a Personal Access Token, API Key or Basic connection with `400 CNS1021` "access token is not supported", which Agent Gateway turns into the 502. `create` stores nothing. `update --connection-id` stores the connection without fetching the card, so the update succeeds and every later call fails with a 502.
20
+
21
+ Fix: put the same credential in `--header`, with an asset ([Choosing from the card](authentication-guide.md#choosing-from-the-card)). For an agent that already has the connection: `uip agenthub remote-a2a-agent update <SLUG> --clear-connection --header "<NAME>=%ASSETS/<ASSET_NAME>%" --folder-path <FOLDER_PATH> --output json`.
22
+
23
+ ## Asset-backed headers from the CLI
24
+
25
+ From a CLI login, `create` from `--agent-card-url` and `refresh-card` on an agent with a `%ASSETS/<ASSET_NAME>%` header fail with `ErrorCode: permission_denied`, `Forbidden (403). …`, and `Context.ErrorCode: "10400"`. Orchestrator refuses to give the asset's value to a CLI login. Token scopes are not the cause, and `create` stores nothing. As with MCP servers, Agent Gateway in the portal can read the asset.
26
+
27
+ - **The card needs no auth:** create the agent without the asset header, then add it with `update --header "<NAME>=%ASSETS/<ASSET_NAME>%"`. `update` does not fetch the card.
28
+ - **The card needs the header:** create with `--agent-card-json '<CARD_JSON>'` and the header. `--agent-card-json` stores the card without fetching it. The user can get the card from the provider.
29
+ - **To refresh the card later,** ask the user to refresh it in Agent Gateway.
30
+
31
+ ## Calls to the agent
32
+
33
+ A UiPath agent, flow or process that calls the remote agent gets these statuses back from Agent Gateway.
34
+
35
+ | Status | Cause and fix |
36
+ |---|---|
37
+ | 502 | Agent Gateway got no OAuth token from the connection: usually a Personal Access Token, API Key or Basic connection set with `update --connection-id` ([why](#connections-that-are-not-oauth)). A 502 `Error proxying A2A request: …` means the endpoint in the card is unreachable: check the card's `url` and Relay. |
38
+ | 401 with `WWW-Authenticate: Bearer error="invalid_token", error_description="Integration Service rejected the access token …"`, or a 403 | Integration Service refused the connection's token: its owner signs in to it again. When the caller has a per-user connection on the agent, that connection is the one to fix ([below](#per-user-connections)). |
39
+ | 401 or 403 without that `error_description` | The remote agent refused the credential Agent Gateway sent. Its body passes through unchanged. Check the header value or the asset behind it, and the scopes or roles the provider requires. |
40
+ | 400 `Remote A2A agent '<SLUG>' is not active.` | `update <SLUG> --is-active true`, if the user wants it back on. |
41
+ | 504 `Request timeout` | The remote agent did not answer in time. |
42
+
43
+ ## Folders, slugs and deletes
44
+
45
+ | Text | Cause and fix |
46
+ |---|---|
47
+ | `'<NAME>' resolves to the remote A2A agent '<SLUG>', not to an agent with that slug: …` | A display name was passed where the slug goes: pass `<SLUG>`. |
48
+ | `HTTP 404: Not Found` on `get`, `update`, `delete` or `refresh-card` | Wrong folder, or not the slug: `uip agenthub remote-a2a-agent list --folder-path <FOLDER_PATH> --output json` shows the slugs. |
49
+ | `Confirmation required: this will delete remote A2A agent '<SLUG>' and cannot be undone.` | Show the user the slug and `Name`, confirm, then add `--yes`. On a `--dry-run`, add `--yes` to see the plan: a dry-run deletes nothing. |
50
+ | `Remote A2A agent management isn't supported on the connected environment.` (`not_supported`) | Agent Gateway there has no remote A2A agents (Automation Suite 26.10). Final: tell the user. |
51
+ | `Forbidden (403). …` without `Context.ErrorCode: "10400"` | A missing folder permission: `get` needs McpServers.View, `create` McpServers.Create, `update` and `refresh-card` McpServers.Edit, `delete` McpServers.Delete. |
52
+
53
+ ## Updates
54
+
55
+ | Text | Cause and fix |
56
+ |---|---|
57
+ | `Header '<NAME>' is stored unmasked, …` / `Header '<NAME>' is stored as '<STORED_NAME>', …` / `No stored header '<NAME>' has a masked value to keep, …` | `****` works only under a name `get` shows as `****`: [masked values](updating-agents-guide.md#masked-values). |
58
+ | `--agent-card-url moves '<SLUG>' to another origin, <ORIGIN>, …` / `--agent-card-json moves …` / `The payload's agentCardUrl moves …` | The update would send stored credentials to a new host: [moving an agent](updating-agents-guide.md#moving-an-agent-to-another-host). |
59
+ | `--connection-id and --clear-connection cannot be combined: …` | Pass one of the two. |
60
+ | `--agent-card-url '<URL>' is not an absolute http or https URL.` | Pass the URL with its scheme and host. |
61
+
62
+ ## Per-user connections
63
+
64
+ | Text | Cause and fix |
65
+ |---|---|
66
+ | `Per-user connections are not enabled on this tenant.` (`not_found`) | They aren't available on this tenant: every user calls with the agent's own connection. Tell the user; change that connection (`update <SLUG> --connection-id <CONNECTION_ID>`) only if they ask, since it changes it for every user. |
67
+ | `Connection '<CONNECTION_ID>' is for '<BASE_URL>', and '<SLUG>' calls '<ENDPOINT>'.` / `Connection '<CONNECTION_ID>' names no base URL, …` | A per-user connection's token goes to the endpoint in the agent's card. Set an Agent 2 Agent connection made for `<ENDPOINT>`. |
68
+ | `Connection '<CONNECTION_ID>' is in the personal workspace '<FOLDER>', which is not yours.` (or `not the user's own`) | A personal-workspace connection can be set only for that workspace's owner. Pass one from a shared folder, or from the user's own personal workspace. |
69
+ | `Forbidden (403). …` on `set`, with `Instructions` naming Connections.Edit and McpServers.Edit | Your own per-user connection needs Connections.Edit in the agent's folder; another user's also needs McpServers.Edit. The same 403 comes back for a connection that is not Enabled or that you cannot see: `uip is connections ping <CONNECTION_ID> --force-refresh --output json`. |
70
+ | `Forbidden (403). …` on `list` | `list` needs McpServers.Edit in the agent's folder. |
71
+ | `You can see no connection of the Agent 2 Agent connector named '<NAME>'.` | `uip is connections list <CONNECTOR_KEY> --all-folders --refresh --output json`, with `<CONNECTOR_KEY>` `uipath-google-agent2agent`, lists the ones you can see. A connection in another user's personal workspace is among them only while you explore that workspace; until then its id with `--connection-id` gets a 403 too. Explore it as [Per-User Connections](../SKILL.md#per-user-connections) says, after asking the user, or have that user run `set --me`. Otherwise pass the exact name, or `--connection-id`. |
72
+ | `Error exploring personal workspace` / `Error stopping exploring personal workspace` with `ErrorCode: permission_denied` | Exploring takes a user login and Folders.Edit, Users.View and Roles.View on the tenant; Orchestrator refuses it to an external application or a personal access token whatever they are granted. Tell the user; have that user run `set --me`, or an admin explore the workspace. |
73
+ | `You own this Personal Workspace, and an owner cannot explore their own. …` | The connection is your own: `set --me`, or `--user-email` with your email, needs no exploring. |
74
+ | `No Personal Workspace is owned by '<OWNER>'. …` / `Personal Workspace '<NAME>' not found. …` | Check the email or name: `uip or folders list --all --type personal --name <TEXT> --output json` lists the workspaces with their `OwnerName`. When the user has none on this tenant (it is created the first time they open Orchestrator there), their connection is in another folder: ask them which, or have them run `set --me`. |
75
+ | `<N> connections of the Agent 2 Agent connector are named '<NAME>'.` / `<N> users in the organization have the email '<EMAIL>'.` | `Instructions` lists each id: show them to the user, ask which one, and pass it as `--connection-id` / `--user-id`. |
76
+ | `No user in the organization has the email '<EMAIL>'.` | Check the email with the user; `uip admin users list --search <TEXT> --output json` lists users with their emails. |
77
+ | `Looking a user up by email needs permission to read the organization's users. …` | Ask for the user's id and pass `--user-id`. |
78
+ | `--me needs a user's login, and this session has no user of its own.` | The login is an external application's: pass `--user-email` or `--user-id`. |
79
+ | `'<SLUG>' has no per-user connection for user <USER>.` | Nothing to delete: `list` shows the users who have one. |
80
+ | `Confirmation required: this will remove a per-user connection from remote A2A agent '<SLUG>' and cannot be undone.` | Confirm with the user (Critical Rule 8 for another user's), then add `--yes`. |
81
+
82
+ `Status` in `list`:
83
+ - `Active`: the connection is enabled.
84
+ - `RequiresAuth`: the connection is gone, expired or failing. The user signs in to it again, or sets another.
85
+ - `Inactive`: the connection is disabled, or the agent is inactive.
86
+ - `Unavailable`: Agent Gateway could not read the connections' state. List again later.
87
+
88
+ `set` does not check the connection's type: a Personal Access Token, API Key or Basic connection is stored, and that user's calls then fail with a 502 (Critical Rule 3).
89
+
90
+ ## Input and payloads
91
+
92
+ | Text | Cause and fix |
93
+ |---|---|
94
+ | `HTTP 400: One or more validation errors occurred.` with `Errors` | Fix the fields `Errors` lists. Without `Errors`, re-run with `--dry-run` to see the body. |
95
+ | ``Payload keys differ from their fields only in case: `<KEY>` should be `<FIELD>`, …`` | Rename each key as listed; `--print-schema` lists the fields. |
96
+ | `Use exactly one of --file, --body, or scalar options.` | Pass flags, `--file` or `--body`, not a mix. |
97
+ | `No input provided. Pass scalar options, --file <path>, or --body <json>.` | Pass the fields. |
98
+ | `Header '<NAME>' is passed more than once.` | Pass each header once. |
@@ -0,0 +1,64 @@
1
+ # Updating Remote A2A Agents
2
+
3
+ Detail behind [Updating Agents](../SKILL.md#updating-agents). Read it before an `update` that changes the card, the headers or the connection, before an `update` with `--file` / `--body`, and whenever an update is refused.
4
+
5
+ ## What an update keeps
6
+
7
+ | Flag | Effect | Left out |
8
+ |---|---|---|
9
+ | `--name` | Renames the agent. The slug never changes. | Kept. |
10
+ | `--description` | Replaces the description; `--description ""` clears it. | Kept: the CLI sends the stored one back. |
11
+ | `--header` (repeatable) | Replaces **every** stored header. | Kept. |
12
+ | `--agent-card-url` | Stores the new URL **without fetching it**: calls keep going to the endpoint in the stored card until `refresh-card` fetches the new card. | Kept. |
13
+ | `--agent-card-json` | Replaces the stored card; calls go to the new card's endpoint. | Kept. |
14
+ | `--connection-id` | Replaces the connection, without a card fetch, so a connection that is not OAuth shows only when calls fail ([why](troubleshooting-guide.md#connections-that-are-not-oauth)). | Kept. |
15
+ | `--clear-connection` | Removes the connection. Calls then use the headers alone. | Kept. |
16
+ | `--use-relay` / `--no-use-relay` | Turns Relay on or off. | Kept. |
17
+ | `--is-active false` / `true` | An inactive agent refuses calls (`Remote A2A agent '<SLUG>' is not active.`); it stays registered. | Kept. |
18
+
19
+ After `--agent-card-url`, run `uip agenthub remote-a2a-agent refresh-card <SLUG> --folder-path <FOLDER_PATH> --output json` and check the new `CachedAgentCard`.
20
+
21
+ To change the card itself, start from `CachedAgentCard` in `get`: it prints in the card's own camelCase, so it can go back as `--agent-card-json` once edited. Do not send the card, the headers or the connection again to change anything else (Critical Rule 6).
22
+
23
+ A header named twice is refused: `Header '<NAME>' is passed more than once.`
24
+
25
+ ## Masked values
26
+
27
+ `get` shows secret header values as `****`. `--header "<NAME>=****"` keeps the stored value, but only under a name `get` shows with `****`, spelled exactly the same. The CLI refuses every other `****`, because the service would store `****` as the value:
28
+
29
+ - `Header '<NAME>' is stored unmasked, as \`remote-a2a-agent get\` shows it, so pass that value instead of "<NAME>=****".`: pass the value `get` shows, such as the `%ASSETS/<ASSET_NAME>%` reference.
30
+ - `Header '<NAME>' is stored as '<STORED_NAME>', …`: spell the name exactly as stored.
31
+ - `No stored header '<NAME>' has a masked value to keep, …`: there is nothing to keep under that name, so pass the real value or an asset reference.
32
+
33
+ An asset-backed header is kept by passing its `%ASSETS/<ASSET_NAME>%` value again.
34
+
35
+ ## Moving an agent to another host
36
+
37
+ A new card URL, or a card whose endpoint is on another origin (scheme, host or port), moves the agent: its credentials would go to the new host. `update` refuses the move while it would send stored credentials there. Every refusal below also fires with `--dry-run`. A payload gets the same refusals, starting `The payload's agentCardUrl …` or `The payload's agentCardJson …`.
38
+
39
+ 1. **Secret or asset-backed headers.** `--agent-card-url moves '<SLUG>' to another origin, <ORIGIN>, and without --header the update keeps the stored secret or asset-backed header '<NAME>' and sends it there.` Pass `--header` for every header to send to the new host. `"<NAME>=****"` or the same `%ASSETS/<ASSET_NAME>%` value keeps one, and the kept value then goes to the new host.
40
+ 2. **The agent's own connection.** `… and the update keeps the stored Integration Service connection, so the service would send the connection's token there.` Add `--clear-connection`, or `--connection-id` with a connection made for the new host. Passing the stored id again is refused too.
41
+ 3. **Users' per-user connections.** `… and the update keeps the per-user Integration Service connection of one user, …` (or `connections of <N> users`), naming each user and id. Ask the user whether to remove them. For each one they confirm, run `uip agenthub remote-a2a-agent-user-connections delete --agent <SLUG> --user-id <USER_ID> --folder-path <FOLDER_PATH> --yes --output json`. Then run the update again.
42
+
43
+ Example: `uip agenthub remote-a2a-agent update <SLUG> --agent-card-url <NEW_CARD_URL> --header "<NAME>=%ASSETS/<ASSET_NAME>%" --clear-connection --folder-path <FOLDER_PATH> --output json`, then `refresh-card`.
44
+
45
+ A new card URL must be an absolute `http` / `https` URL: `--agent-card-url '<URL>' is not an absolute http or https URL.`
46
+
47
+ Do not delete headers or connections to get past a refusal without the user's consent (Critical Rule 7).
48
+
49
+ ## Connections
50
+
51
+ - `--connection-id and --clear-connection cannot be combined: one sets the agent's Integration Service connection, the other removes it.`: pass one of them.
52
+ - An `Authorization` header is not sent while the agent has a connection. After `--clear-connection`, a stored `Authorization` header is sent again.
53
+
54
+ ## Payloads
55
+
56
+ `uip agenthub remote-a2a-agent update <SLUG> --folder-path <FOLDER_PATH> --print-schema --output json` (and `create --print-schema`) lists the fields, in camelCase. Pass a payload with `--file <PAYLOAD_FILE>` or `--body '<JSON>'`, not with scalar flags.
57
+
58
+ In an update payload:
59
+ - an omitted `name`, `agentCardUrl`, `agentCardJson`, `isActive`, `connectionId` or `useRelay` is kept;
60
+ - an omitted `description` is **cleared**;
61
+ - omitted `headers` are kept, and `"headers": ""` removes them all. `headers` is one string of `Name:Value` lines separated by newlines, and a `<NAME>:****` line keeps a masked value;
62
+ - `"clearConnectionId": true` removes the connection, and cannot go with `connectionId`.
63
+
64
+ A key that differs from its field only in case is refused: ``Payload keys differ from their fields only in case: `<KEY>` should be `<FIELD>`, … The CLI sends only the camelCase fields, so it would drop this one.`` Rename the key to the field name.
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  name: uipath-activity-migrator
3
- description: "UiPath Activity Migrator — migrate Windows-Legacy RPA projects (`targetFramework: Legacy`, classic `ui:` activities) to the Windows framework and rewrite UiPath's own classic activities into their modern UiPath counterparts with the standalone `UiPath.Upgrade.exe`. Windows only. Third-party or custom packages are not rewritten, only version-moved. Acquires the tool, resolves the target UIAutomation line, runs analyze then upgrade into a sibling folder, verifies with `uip rpa build`, triages the SARIF. Classic UI Automation→modern UIA, Outlook classic→Microsoft 365, GSuite classic→modern, Microsoft.Activities.Extensions→Invoke Code. Also the post-migration fix for migrated projects whose expression-selector targets fail or silently report not-found. Authoring or editing Legacy `.xaml`→uipath-rpa. Migration-readiness review without running the tool→uipath-review. Post-migration failures with neither marker nor annotation→uipath-troubleshoot. Maestro `instance migrate`→the Maestro skills."
3
+ description: "UiPath Activity Migrator — migrate Windows-Legacy RPA projects (`targetFramework: Legacy`, classic `ui:` activities) to the Windows framework and rewrite UiPath's own classic activities into their modern UiPath counterparts with `uip rpa project migrate`/`UiPath.Upgrade.exe`. Windows only. Third-party or custom packages are not rewritten, only version-moved. Acquires the tool, resolves the target UIAutomation line, runs analyze then upgrade into a sibling folder, verifies with `uip rpa build`, triages the SARIF. Classic UI Automation→modern UIA, Outlook classic→Microsoft 365, GSuite classic→modern, Microsoft.Activities.Extensions→Invoke Code. Also the post-migration fix for migrated projects whose expression-selector targets fail or silently report not-found. Authoring or editing Legacy `.xaml`→uipath-rpa. Migration-readiness review without running the tool→uipath-review. Post-migration failures with neither marker nor annotation→uipath-troubleshoot. Maestro `instance migrate`→the Maestro skills."
4
4
  when_to_use: "User says 'migrate activities', 'migrate UiPath activities', 'classic UiPath activities to modern', 'migrate this project', 'upgrade from Windows-Legacy', 'convert classic to modern activities', 'modernize this workflow', 'run the Activity Migrator', 'UiPath.Upgrade.exe', 'legacy to Windows', 'activity migration report', 'post migration fix', 'check always returns false after migration', 'could not find the UI element after migration'. NOT for `uip solution deploy upgrade`."
5
5
  ---
6
6
 
7
7
  # UiPath Activity Migrator
8
8
 
9
- Drive the standalone Activity Migrator (`UiPath.Upgrade.exe`) end to end: acquire, analyze, upgrade, verify, report. The tool converts a Windows-Legacy project to the Windows framework and rewrites UiPath's classic activities into their modern UiPath equivalents; third-party and custom packages are only moved to a Windows-compatible version by restore, never rewritten. It runs without Studio. It requires Windows and the .NET Desktop Runtime 8.
9
+ Drive the Activity Migrator end to end: acquire, analyze, upgrade, verify, report. The tool moves a Windows-Legacy project to the Windows framework and rewrites UiPath's classic activities into their modern equivalents; third-party and custom packages are only moved to a Windows-compatible version by restore. It runs without Studio, on Windows only: through `uip rpa project migrate` (Helm), else as the public archive's `UiPath.Upgrade.exe`, which needs the .NET Desktop Runtime its build targets.
10
10
 
11
11
 
12
12
 
@@ -21,27 +21,27 @@ Drive the standalone Activity Migrator (`UiPath.Upgrade.exe`) end to end: acquir
21
21
  - User wants to **run the Activity Migrator** or mentions `UiPath.Upgrade.exe`
22
22
  - User wants a **migration dry run** or **migration report** produced by the tool (`analyze`)
23
23
  - User wants classic **Outlook** mail, classic **GSuite**, or **Microsoft.Activities.Extensions** activities migrated
24
- - User wants a **post-migration fix**: an already-migrated project whose expression-selector targets fail at runtime or silently report not-found, or one carrying `[PostMigration Action Required]` annotations. The skill owns such a failure while the failing target or an enclosing construct carries one of three signals: the `.ToStringWithDelimiter()` marker, a `[PostMigration Action Required]` line, or a `by uipath-activity-migrator` line (Rule 12). Otherwise the failure belongs to uipath-troubleshoot
24
+ - User wants a **post-migration fix** for an already-migrated project: expression-selector targets that fail at runtime or silently report not-found, or `[PostMigration Action Required]` annotations. The skill owns the failure while the failing target or an enclosing construct carries one of three signals: the `.ToStringWithDelimiter()` marker, a `[PostMigration Action Required]` line, or a `by uipath-activity-migrator` line (Rule 12); otherwise uipath-troubleshoot does
25
25
 
26
- Do not use for: authoring or editing Legacy workflows (uipath-rpa, Legacy mode), a readiness review that does not run the tool (uipath-review), diagnosing a runtime failure of an already-migrated project whose failing construct carries none of the three signals above (uipath-troubleshoot), `uip solution deploy upgrade`, or Maestro `instance migrate`.
26
+ Do not use for: authoring or editing Legacy workflows (uipath-rpa, Legacy mode), a readiness review that does not run the tool (uipath-review), a migrated project's failure whose construct carries none of the three signals (uipath-troubleshoot), `uip solution deploy upgrade`, or Maestro `instance migrate`.
27
27
 
28
28
  ## Critical Rules
29
29
 
30
- 1. **Windows only.** Check the OS before anything else. On macOS or Linux, stop and tell the user to run the migration from a Windows machine that holds the project. The tool is a .NET 8 desktop process and cannot run elsewhere.
31
- 2. **Never run the tool in console mode.** Always pass `--output-format sarif` and redirect stdout to a file. Console mode opens an HTML report in the browser and prints no machine-readable result. This holds for diagnostic runs too: to look into a result, read the SARIF, the `.err` file and the `project-<id>.log` the tool writes under `<PROJECT_DIR>/.upgrade`, never a console or `-v` rerun.
30
+ 1. **Windows only.** Check the OS before anything else. On macOS or Linux, stop and tell the user to run the migration from a Windows machine that holds the project.
31
+ 2. **Never run the tool in console mode.** Always pass `--output-format sarif` and redirect stdout to a file. Console mode prints no machine-readable result, and the archive's build opens the HTML report in the browser. Pass `--open-report`, which opens it, only when the user asks to see the report. Diagnostic runs too: read the SARIF, the `.err` file and the `project-<id>.log` under `<PROJECT_DIR>/.upgrade`, never a console or `-v` rerun.
32
32
  3. **Never trust the exit code.** The tool exits 0 whether the migration succeeded, partially succeeded, or failed. Status comes only from the SARIF results, classified per [sarif-triage-guide.md](references/sarif-triage-guide.md).
33
33
  4. **Analyze before upgrade, every time.** Run `analyze`, triage it, and only then run `upgrade`. When the analyze triage shows no stop condition, proceed to `upgrade` without asking, unless the user asked only for an analysis, a report or a plan: then stop after the triage, present the findings with the proposed treatment of each needs-attention item, and run `upgrade` only on the user's go. Any request whose deliverable is information rather than a migrated project counts as that: analysis, report, plan, dry run, "can this be migrated", "what would change"; when the wording leaves it open, ask one yes/no before `upgrade`. Rule 13 governs a treatment the user chooses there. One exception: a Step 4 rerun that the build guide or a package guide prescribes with an added flag reuses the Step 3 analyze; it counts as one build-fix iteration (Rule 10), and the skill deletes the `<OUTPUT_DIR>` it created in this session without asking.
34
34
  5. **Never write into the source project.** `upgrade` writes to a fresh sibling folder. Never point `--output-path` at `<PROJECT_DIR>`, never copy the output back over the source, never delete the source, and never edit a file in it, `project.json` included. This holds for every source project the task touches, including a library's source project. Two folders inside the source are the only exception: `.upgrade/`, which holds the tool's reports and the logs, summaries and config files this skill's steps write there, and `.local/`, the tool's restore cache.
35
- 6. **Never pass secrets through the agent.** Do not type `--orchestrator-pat` or `--orchestrator-application-secret` values yourself. When a tenant feed is required, rely on the tool's fallback to the local Studio or Robot connection; if that fails, hand the user the complete command with `<PLACEHOLDER>` values to run themselves.
35
+ 6. **Never pass secrets through the agent.** Do not type `--orchestrator-pat` or `--orchestrator-application-secret` values yourself. When a tenant feed is required, rely on the `uip login` session or the local Studio or Robot connection; if neither serves it, hand the user the complete command with `<PLACEHOLDER>` values to run themselves.
36
36
  7. **Resolve the target UIAutomation package line explicitly.** When the project uses `UiPath.UIAutomation.Activities`, resolve the latest stable patch of a release line per [Step 2](#step-2--resolve-the-target-package-line) and pass it as `--uia-package-version=<UIA_VERSION>`. Extension options bind only in the `--name=value` form; the space-separated form parses without error and is silently ignored. Accept the tool default only when the feed is unreachable, and say so in the report. The target version is settled before the migration runs; the skill never edits package versions on the output afterwards to reach it.
37
- 8. **Verify with the modern CLI.** Migration is not done until `uip rpa build` passes on `<OUTPUT_DIR>`, or the remaining errors are reported as needs-attention items after the bounded fix loop in [build-verification-guide.md](references/build-verification-guide.md). Every `uip rpa` command this skill runs unsets `UIPATH_STUDIO_PID` in the syntax of the shell that runs it: in bash, the Bash tool on Windows included, prefix `env -u UIPATH_STUDIO_PID`; in PowerShell, put `$env:UIPATH_STUDIO_PID = $null;` in the same command, before `uip`, which removes it; a separate tool call starts a new process and loses the assignment. The PowerShell form does not unset the variable in bash, the bash prefix fails in PowerShell, and setting the variable to an empty string does not unset it. A brief to a subagent passes this rule on together with the commands, so the subagent writes the form for its own shell. Dropping it is never an acceptable translation. [runtime-verification-guide.md](references/runtime-verification-guide.md) says why.
37
+ 8. **Verify with the modern CLI.** Migration is not done until `uip rpa build` passes on `<OUTPUT_DIR>`, or the remaining errors are reported as needs-attention items after the bounded fix loop in [build-verification-guide.md](references/build-verification-guide.md). Every `uip rpa` command this skill runs unsets `UIPATH_STUDIO_PID` in its shell's syntax: bash, the Bash tool on Windows included, prefixes `env -u UIPATH_STUDIO_PID`; PowerShell puts `$env:UIPATH_STUDIO_PID = $null;` before `uip` in the same command, since a separate tool call is a new process. Neither form works in the other shell, and an empty string does not unset it. A subagent brief passes this rule on with the commands, so the subagent writes its own shell's form; never drop it. [runtime-verification-guide.md](references/runtime-verification-guide.md) says why.
38
38
  9. **Libraries first.** When analyze reports `RESTORE-CUSTOM-LIBRARY-MIGRATION-REQUIRED`, stop. Tell the user to migrate and publish that library to the feed before migrating this project. The tool cannot order dependencies.
39
39
  10. **Bounded loops.** At most 3 build-fix iterations in Step 5. Then report what remains.
40
40
  11. **Never run the migrated project unasked.** The runtime check of Step 6 runs only after the user answers yes to its one question. An earlier explicit request to run the migrated project, given in the same task, counts as that yes, and the question is then not asked. Every fix and every rerun after it happens only through the runtime guide's fix and rerun loop, each behind one yes/no; outside that loop the check only observes. It runs in the headless Studio, never in the Studio the user has open (Rule 8).
41
41
  12. **Mark every edit.** Every construct the skill edits or adds outside the tool, in the post-migration fix guide, the build loop, the runtime loop, a plan treatment or an edit delegated to the RPA authoring skill, carries the annotation line `Remediated by uipath-activity-migrator on <YYYY-MM-DD>: <what changed>` in its `sap2010:Annotation.AnnotationText` attribute, never in an XML comment, which Studio drops on save. It replaces the matching `[PostMigration Action Required]` line when there is one and is added as a new annotation otherwise; when the edit removes a construct, the construct that takes its place carries the line. Write it as part of the edit itself, so an undone fix loses it with the backup restore and a standing fix keeps it whatever happens next. One exception: a construct whose only edit is the fix guide's rewrite of an annotation line to `Verified healthy by uipath-activity-migrator` carries that line as its mark and gets no Remediated line. A later failure at a construct carrying either line is this skill's to diagnose.
42
42
  13. **Plan-mode treatments.** When the user asked for a plan (Rule 4), the treatment their go names is the edit, even when it differs from the one proposed, and the go is its yes: it goes through the runtime guide's fix and rerun loop as a `requested` fix, edit 1, applied before the first run when the go names everything it needs ([Step 5a](#step-5a--apply-a-plan-chosen-treatment-before-the-run)) and right after the run that supplies a missing name otherwise. A proposal leaves open any name only a run can reveal, such as the exception an activity actually throws ("retype the Catch to the exception the run reports"); it never guesses one, and a treatment no run informs is reported as a needs-attention item. The plan names the remaining steps as this file names them, upgrade, build, the opt-in runtime check with `uip rpa run`, and never calls any of them a debug run or a debug session.
43
43
  14. **Sources.** A name or fact a proposal or an edit needs beyond the two projects' files, the run log and this skill's guides comes from two places only: the packages the latest analyze or upgrade run resolved, read as documentation and file names under `%USERPROFILE%\.nuget\packages\<package>\<version>\` for `<UIA_VERSION>` and the versions in that run's `.local/AllDependencies.json` (`<PROJECT_DIR>/.local/` after analyze, `<OUTPUT_DIR>/.local/` after upgrade); and the one page a `[PostMigration Action Required]` annotation on the construct links, that page alone and nothing it links to. Never another cached version, never the web beyond that page, never the contents of a binary, never a program written to read assembly metadata. Validate and build confirm every name an edit introduces, so a candidate is enough to propose. This holds from the first proposal, a plan treatment included.
44
- 15. **Never download the tool unasked.** The acquisition script fetches `UiPath.Upgrade.exe` only on `--install` (or `--force`), and the skill passes that flag only after the user chose the download in Step 0's install question, asked once per task when the script reports `missing`. An earlier explicit request in the same task to download or install the tool counts as that choice, and so does the user's go to a re-download after a `verify-failed` result; the question is then not asked. Never pass the flag on your own to get past a `missing`, `offline-missing` or `verify-failed` result, and never set `UIPATH_ACTIVITY_MIGRATOR_OFFLINE`, `UIPATH_ACTIVITY_MIGRATOR_URL` or `UIPATH_ACTIVITY_MIGRATOR_DIR` beyond the value the user named: those variables carry a decision of the user or their administrator.
44
+ 15. **Never download the tool unasked.** It guards only the archive fallback: `uip` downloads nothing. The acquisition script fetches `UiPath.Upgrade.exe` only on `--install` (or `--force`), and the skill passes that flag only after the user chose the download in Step 0's install question, asked once per task when the script reports `missing`. An earlier explicit request in the same task to download or install the tool counts as that choice, and so does the user's go to a re-download after a `verify-failed` result; the question is then not asked. Never pass the flag on your own to get past a `missing`, `offline-missing` or `verify-failed` result, and never set `UIPATH_ACTIVITY_MIGRATOR_OFFLINE`, `UIPATH_ACTIVITY_MIGRATOR_URL` or `UIPATH_ACTIVITY_MIGRATOR_DIR` beyond the value the user named: those variables carry a decision of the user or their administrator.
45
45
 
46
46
  ## Workflow
47
47
 
@@ -49,7 +49,7 @@ Do not use for: authoring or editing Legacy workflows (uipath-rpa, Legacy mode),
49
49
 
50
50
  ### Step 0 — Preflight and acquire the tool
51
51
 
52
- Run the acquisition script with `node`, which Steps 2 to 4 already use for their scripts; the same command works in bash and in PowerShell. It executes no PowerShell or shell script file, so script execution policies and hosts that gate a script invocation do not apply. Without a flag the script locates a cached tool, checks the .NET Desktop Runtime 8, verifies the tool answers, and prints one JSON object on its last stdout line; it never downloads (Rule 15). Every other shell command in this skill assumes Git Bash, which the Bash tool uses on Windows: the redirections and the `grep` pipelines are not translated, and the only PowerShell alternative given is Rule 8's variable.
52
+ Run the acquisition script with `node`: the command works in bash and PowerShell and runs no script file, so execution policies and script gates do not apply. It first asks `uip rpa project migrate version`, Helm's migrator: no download, no runtime check. Else it falls back to the archive's `UiPath.Upgrade.exe`: without a flag it locates a cached copy and verifies it starts; it never downloads (Rule 15). Its last stdout line is one JSON object. Allow at least 10 minutes: the first `uip` call after a CLI update copies Helm. Every other shell command here assumes Git Bash, the Bash tool's shell on Windows; only Rule 8's variable has a PowerShell form.
53
53
 
54
54
  ```bash
55
55
  node "<SKILL_DIR>/scripts/ensure-migrator.mjs"
@@ -59,24 +59,28 @@ When the user named the tool's folder, set `UIPATH_ACTIVITY_MIGRATOR_DIR` to it
59
59
 
60
60
  | `status` | Action |
61
61
  |---|---|
62
- | `ok` | When the user named the tool's folder and `source` is `cached`, the variable was not on the command: rerun the script with it in the same command and apply this table to the new output. Otherwise record `exe` as `<MIGRATOR_EXE>` and `version`. When the object carries `update: true`, say once that UiPath published a newer build and that the script installs it when rerun with `--install`; do not ask, do not install, continue with the cached tool. |
63
- | `missing` | No tool is installed and nobody has approved a download. Ask the install question in [acquisition-guide.md § Install question](references/acquisition-guide.md#install-question), once, and act on the answer as that section says. |
64
- | `error`, `code: not-windows` | Rule 1. Stop. |
65
- | `error`, `code: runtime-missing` | Relay the script's message; it names the fix. Stop. |
62
+ | `ok`, the user named the tool's folder, `source` other than `env` | The variable was missing: rerun with it on the command and apply this table again. |
63
+ | `ok`, `source: uip` | `<MIGRATOR>` is `env -u UIPATH_STUDIO_PID uip rpa project migrate` (Rule 8; PowerShell: `$env:UIPATH_STUDIO_PID = $null; uip rpa project migrate`, same command). Record `version`. Continue. |
64
+ | `ok`, any other `source` | The archive: `<MIGRATOR>` is the `command` field in double quotes. Record `version`. On `update: true`, say once that a newer build exists and that rerunning with `--install` installs it; do not ask or install, continue. |
65
+ | `missing` | Neither `uip` (see `uipMessage`) nor an archive copy has the tool. Ask the install question in [acquisition-guide.md § Install question](references/acquisition-guide.md#install-question), once, and act on the answer as that section says. |
66
+ | `error`, `code: not-windows` | From `uip` or the script. Rule 1. Stop. |
67
+ | `error`, `code: runtime-missing` | Archive only. Relay the script's message; it names the fix. Stop. |
66
68
  | `error`, `code: offline-missing` | The machine is configured never to download. Relay the message and the manual steps from [acquisition-guide.md § Manual placement](references/acquisition-guide.md#manual-placement); do not offer a download. Stop. |
67
69
  | `error`, `code: download-failed` | Relay the script's message, which names each downloader's error, and give the manual steps from [acquisition-guide.md § Manual placement](references/acquisition-guide.md#manual-placement). Stop. |
68
- | `error` with an `env` field | Put that assignment, as is, at the start of this script's command and of every `"<MIGRATOR_EXE>"` command from here on, then rerun the script. In PowerShell write it as `$env:<NAME> = '<value>';` in the same command. Never drop or alter the assignment. |
70
+ | `error` with an `env` field | Archive only. Prefix that assignment, unaltered, to this script's command and every later `<MIGRATOR>` command (PowerShell: `$env:<NAME> = '<value>';` in the same command), then rerun the script. |
69
71
  | any other `error` | Show `message`. Stop. |
70
72
 
71
- Then read the flag list of this build once. It is the only authority on which flags exist.
73
+ Relay a `uipMessage` with any error: fixing `uip` ([§ Helm through uip](references/acquisition-guide.md#helm-through-uip)) makes the archive unnecessary.
74
+
75
+ Then read the flag list of this build once and keep it for Steps 3 and 4.
72
76
 
73
77
  ```bash
74
- "<MIGRATOR_EXE>" analyze --help
78
+ <MIGRATOR> analyze --help
75
79
  ```
76
80
 
77
- Keep the output for Steps 3 and 4. For this run, the flags in that output are the only flags that exist: a guide-named flag is passed only when it appears there, and its absence is not a finding, not a note, and not a report item. A flag the help lists but no guide names may be used only when its help text directly addresses a problem this run has shown (a specific SARIF result or build error); pass it as `--name=value` and say so in the report. Never one that changes what migrates or which extensions run; those are passed only on the user's request. Behavior the help does not state (option binding, exit code, output streams, folders) is in [tool-behavior-guide.md](references/tool-behavior-guide.md).
81
+ Only the flags it lists exist: pass a guide-named flag only when listed; its absence is not a finding, a note or a report item. A flag the help lists but no guide names may be used only when its help text directly addresses a problem this run has shown (a specific SARIF result or build error); pass it as `--name=value` and say so in the report. Never one that changes what migrates or which extensions run; those are passed only on the user's request. Behavior the help does not state (option binding, exit code, output streams, folders) is in [tool-behavior-guide.md](references/tool-behavior-guide.md).
78
82
 
79
- Summarize to the user in one line: tool version and location.
83
+ Tell the user in one line the tool version and where it runs: `uip` (Helm), or the exe path with any `uipMessage`.
80
84
 
81
85
  ### Step 1 — Discover the project
82
86
 
@@ -109,7 +113,7 @@ Assemble `<PACKAGE_FLAGS>` from every package guide read in Step 1 (Hook 1 secti
109
113
 
110
114
  ```bash
111
115
  mkdir -p "<PROJECT_DIR>/.upgrade"
112
- "<MIGRATOR_EXE>" analyze --project-path "<PROJECT_DIR>" --uia-package-version=<UIA_VERSION> --output-format sarif <PACKAGE_FLAGS> > "<PROJECT_DIR>/.upgrade/analyze-latest.sarif" 2> "<PROJECT_DIR>/.upgrade/analyze-latest.err"
116
+ <MIGRATOR> analyze --project-path "<PROJECT_DIR>" --uia-package-version=<UIA_VERSION> --output-format sarif <PACKAGE_FLAGS> > "<PROJECT_DIR>/.upgrade/analyze-latest.sarif" 2> "<PROJECT_DIR>/.upgrade/analyze-latest.err"
113
117
  node "<SKILL_DIR>/scripts/summarize-sarif.mjs" "<PROJECT_DIR>/.upgrade/analyze-latest.sarif" --out "<PROJECT_DIR>/.upgrade/analyze-latest.md"
114
118
  ```
115
119
 
@@ -133,7 +137,7 @@ Then apply the stop conditions:
133
137
  | `RESTORE-MISSING-PACKAGE` / `RESTORE-INCOMPATIBLE-PACKAGE` | Stop. Explain which package, offer the Orchestrator-feed command with placeholders (Rule 6) or `--ignore-missing-dependencies` with its consequences. Rerun analyze after the user acts. |
134
138
  | `RESTORE-CUSTOM-LIBRARY-MIGRATION-REQUIRED` | Rule 9. Stop. |
135
139
  | Package guide stop condition | Follow the guide. |
136
- | Summarizer exits 2 (`cannot parse`, `no .sarif files`) | The tool wrote no log: it died or rejected the command line. Read `<PROJECT_DIR>/.upgrade/analyze-latest.err` and the exit code, fix the cause, rerun analyze. A crash is not yours to fix: stop and report it with the `.err` content. |
140
+ | Summarizer exits 2 (`cannot parse`, `no .sarif files`, `failure reported by uip`) | The tool wrote no log: it died or rejected the command line. On `failure reported by uip`, the migrator never ran: rerun Step 0. Otherwise read `<PROJECT_DIR>/.upgrade/analyze-latest.err` and the exit code, fix the cause, rerun analyze. A crash is not yours to fix: stop and report it with the `.err` content. |
137
141
  | `status: failed` or `status: unknown` for any other reason | Stop. Show the blockers or the `Reason:` line and the `.upgrade` log path. Never continue to Step 4. |
138
142
 
139
143
  ### Step 4 — Upgrade
@@ -141,11 +145,11 @@ Then apply the stop conditions:
141
145
  Same flags as the analyze run, plus the output path:
142
146
 
143
147
  ```bash
144
- "<MIGRATOR_EXE>" upgrade --project-path "<PROJECT_DIR>" --output-path "<OUTPUT_DIR>" --uia-package-version=<UIA_VERSION> --output-format sarif <PACKAGE_FLAGS> > "<PROJECT_DIR>/.upgrade/upgrade-latest.sarif" 2> "<PROJECT_DIR>/.upgrade/upgrade-latest.err"
148
+ <MIGRATOR> upgrade --project-path "<PROJECT_DIR>" --output-path "<OUTPUT_DIR>" --uia-package-version=<UIA_VERSION> --output-format sarif <PACKAGE_FLAGS> > "<PROJECT_DIR>/.upgrade/upgrade-latest.sarif" 2> "<PROJECT_DIR>/.upgrade/upgrade-latest.err"
145
149
  node "<SKILL_DIR>/scripts/summarize-sarif.mjs" "<PROJECT_DIR>/.upgrade/upgrade-latest.sarif" --out "<PROJECT_DIR>/.upgrade/upgrade-latest.md"
146
150
  ```
147
151
 
148
- Confirm `<OUTPUT_DIR>/project.json` exists and its `targetFramework` is `Windows`. If the summarizer cannot parse the log or the status is `failed` or `unknown`, report and stop: `<OUTPUT_DIR>` may be partially written, so delete or rename it before any rerun (Step 1 item 4). Do not retry with different flags unless a package guide says so.
152
+ Confirm `<OUTPUT_DIR>/project.json` exists and its `targetFramework` is `Windows`. On `failure reported by uip`, rerun Step 0. If it cannot parse the log or the status is `failed` or `unknown`, report and stop: `<OUTPUT_DIR>` may be partially written, so delete or rename it before any rerun (Step 1 item 4). Do not retry with different flags unless a package guide says so.
149
153
 
150
154
  ### Step 5 — Verify
151
155
 
@@ -172,7 +176,7 @@ Only when the plan's go named a treatment the output can carry before any run (R
172
176
  2. A treatment the plan's go named that needed nothing from the run was applied in Step 5a. Offer the runtime check when the conditions in [runtime-verification-guide.md](references/runtime-verification-guide.md) hold: one yes/no question, default no, no time limit proposed. On yes, run it as the guide says, attribute a failure with its table, offer the guide's fix and rerun loop for a migration-related failure, and fill the Runtime check block below.
173
177
  3. Report once, at the end: after the runtime check's question was answered and any run and its fix loop ended. Report only what the reader must act on or decide, under these rules:
174
178
  1. Success is one line with counts. Detail exists only for what needs attention, grouped, never one line per activity, and only under Needs attention: no other block restates an item, Next steps included.
175
- 2. `<L>` is the summarizer's left-classic count. Activities the tool left classic are not defects: they compile and run as classic, so they are the `<L>` count on the status line and entries in the full list, never lines. No left-classic activity is named anywhere in the report: not as a Needs attention item, not in a Next steps line, not in a sentence after the last block that lists or explains them. The full list the status line points to is where the reader finds them.
179
+ 2. `<L>` is the summarizer's left-classic count. Activities the tool left classic are not defects: they compile and run as classic, so they are only the `<L>` count and entries in the full list. Never name one anywhere in the report: not under Needs attention, not in Next steps, not in a sentence after the last block.
176
180
  3. `<M>` is built in this order:
177
181
  1. Start from the summarizer's needs-attention items.
178
182
  2. Remove each item whose report key matches a finding the fix guide reported as `fixed` or `healthy`. The report key is the file plus the DisplayName the tool reported, which for a generated card is the wrapped child, never the card. One item per finding, never per annotation line rewritten. A finding that matches no item removes nothing; a fixed one still appears under Fixes applied, a healthy one appears nowhere.
@@ -181,7 +185,7 @@ Only when the plan's go named a treatment the output can carry before any run (R
181
185
  `<M>` is never below zero. The by-reason and by-file lines are derived from the remaining items only.
182
186
  4. `<status>` is the summarizer's, copied as printed. One promotion exists: `partial` becomes `success` only when `<L>` = 0 and `<M>` = 0 after rule 3, both at once. When `<L>` > 0 the status stays `partial` whatever `<M>` is: an activity left classic is not a defect, but it is not migrated either, and `success` would claim it is. `failed` and `unknown` are never promoted.
183
187
  5. Report only what the tool reported or the build showed: no speculation about how migrated activities will behave at runtime, no description of the migration mechanics, no table of what changed. Name a specific replacement activity only when the tool's message names one. Do not list constructions that were checked and left alone, and do not restate that edited files validated; the build result covers it.
184
- 6. The report is these blocks and nothing else: no sentences before, between or after them. A lead-in line before the heading and a closing paragraph after the last block are padding, whatever they explain. Shape:
188
+ 6. The report is these blocks and nothing else: no lead-in line, no sentence between blocks, no closing paragraph, whatever it explains. Shape:
185
189
 
186
190
  ```markdown
187
191
  ## Migration result: <status>
@@ -210,7 +214,7 @@ Several projects in one task: one report, the block above repeated per project i
210
214
 
211
215
  ## Package Routing
212
216
 
213
- Match `project.json` dependencies to guides; the dependency is the only routing key. Do not pre-scan XAML for classic activities: no pattern is exhaustive, and the `analyze` run reports every affected activity per file anyway. Every guide has three hook sections the workflow calls: **Hook 1** (flags and config before analyze), **Hook 2** (triage rules for that extension's SARIF results), **Hook 3** (post-migration steps). Adding a package to this skill means adding one guide with those three sections and one row here.
217
+ The `project.json` dependency is the only routing key. Do not pre-scan XAML for classic activities: no pattern is exhaustive, and `analyze` reports every one. Every guide has three hook sections the workflow calls: **Hook 1** (flags and config before analyze), **Hook 2** (triage rules for that extension's SARIF results), **Hook 3** (post-migration steps). Adding a package to this skill means adding one guide with those three sections and one row here.
214
218
 
215
219
  | Dependency in `project.json` | Extension name (`--help`) | Guide |
216
220
  |---|---|---|
@@ -242,7 +246,7 @@ The framework flip, package restore, reference fixing, and type checking are cor
242
246
  ## Anti-patterns
243
247
 
244
248
  - Downloading or updating `UiPath.Upgrade.exe` without the user's choice in the install question (Rule 15)
245
- - Running `UiPath.Upgrade.exe` without `--output-format sarif`, or reading its exit code as a verdict
249
+ - Running `<MIGRATOR>` without `--output-format sarif`, or reading its exit code as a verdict
246
250
  - Running `upgrade` without an `analyze` triage first, or pointing `--output-path` at the source project
247
251
  - Pasting a PAT or client secret into a command line
248
252
  - Hand-converting classic activities in XAML instead of letting the tool do it, or "finishing" activities the tool left classic by rewriting them blind