@uipath/skills 1.199.0 → 1.200.0

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 (345) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CODEOWNERS +14 -8
  4. package/README.md +18 -3
  5. package/assets/skill-status.json +9 -1
  6. package/assets/uip-catalog-snapshot.json +227 -21
  7. package/package.json +11 -2
  8. package/scripts/npm-package-lifecycle.mjs +46 -0
  9. package/skills/uipath-admin/SKILL.md +5 -1
  10. package/skills/uipath-admin/references/audit-commands.md +1 -1
  11. package/skills/uipath-admin/references/audit-workflow-guide.md +9 -0
  12. package/skills/uipath-agents/SKILL.md +2 -2
  13. package/skills/uipath-agents/references/lowcode/capabilities/context/index.md +7 -0
  14. package/skills/uipath-agents/references/lowcode/capabilities/integration-service/integration-service.md +5 -6
  15. package/skills/uipath-agents/references/lowcode/critical-rules/critical-rules.md +1 -1
  16. package/skills/uipath-agents/references/lowcode/evaluations/evaluation-sets.md +5 -0
  17. package/skills/uipath-agents/references/lowcode/project-lifecycle.md +3 -3
  18. package/skills/uipath-agents/references/lowcode/prompting/autonomous-agent-prompting-guide.md +3 -2
  19. package/skills/uipath-api-workflow/SKILL.md +2 -1
  20. package/skills/uipath-api-workflow/references/cli-reference.md +3 -3
  21. package/skills/uipath-coded-apps/SKILL.md +3 -2
  22. package/skills/uipath-coded-apps/assets/fixtures/governance-dashboard-starter-kit.tar.gz +0 -0
  23. package/skills/uipath-coded-apps/assets/templates/web-app-template.md +1 -1
  24. package/skills/uipath-coded-apps/references/create-web-app.md +60 -48
  25. package/skills/uipath-coded-apps/references/dashboards/CAPABILITY.md +2 -2
  26. package/skills/uipath-coded-apps/references/dashboards/plugins/build/impl.md +2 -2
  27. package/skills/uipath-coded-apps/references/dashboards/primitives/tier-resolution.md +16 -16
  28. package/skills/uipath-coded-apps/references/oauth-scopes.md +28 -272
  29. package/skills/uipath-coded-apps/references/sdk/action-center.md +26 -243
  30. package/skills/uipath-coded-apps/references/sdk/agents.md +20 -130
  31. package/skills/uipath-coded-apps/references/sdk/conversational-agent.md +52 -706
  32. package/skills/uipath-coded-apps/references/sdk/data-fabric.md +20 -237
  33. package/skills/uipath-coded-apps/references/sdk/feedback.md +4 -139
  34. package/skills/uipath-coded-apps/references/sdk/governance-traces.md +7 -55
  35. package/skills/uipath-coded-apps/references/sdk/governance.md +4 -44
  36. package/skills/uipath-coded-apps/references/sdk/imports.md +77 -35
  37. package/skills/uipath-coded-apps/references/sdk/maestro.md +29 -406
  38. package/skills/uipath-coded-apps/references/sdk/orchestrator.md +30 -324
  39. package/skills/uipath-coded-apps/references/sdk/pagination.md +9 -67
  40. package/skills/uipath-coded-apps/references/sdk/traces.md +8 -43
  41. package/skills/uipath-functions/SKILL.md +23 -23
  42. package/skills/uipath-governance/SKILL.md +5 -4
  43. package/skills/uipath-governance/references/cli-cheatsheet.md +2 -1
  44. package/skills/uipath-governance/references/compliance-pack/coverage/impl.md +143 -58
  45. package/skills/uipath-governance/references/compliance-pack/restore/impl.md +61 -0
  46. package/skills/uipath-human-in-the-loop/SKILL.md +4 -2
  47. package/skills/uipath-insights/SKILL.md +17 -18
  48. package/skills/uipath-ixp/SKILL.md +12 -7
  49. package/skills/uipath-ixp/references/cli-reference.md +71 -9
  50. package/skills/uipath-ixp/references/improve-prompts-guide.md +23 -9
  51. package/skills/uipath-ixp/references/label-documents-guide.md +33 -5
  52. package/skills/uipath-maestro-bpmn/SKILL.md +15 -14
  53. package/skills/uipath-maestro-bpmn/references/cli-conventions.md +15 -6
  54. package/skills/uipath-maestro-bpmn/references/structural-bpmn.md +18 -17
  55. package/skills/uipath-maestro-case/SKILL.md +46 -33
  56. package/skills/uipath-maestro-case/assets/templates/sdd-template.md +77 -37
  57. package/skills/uipath-maestro-case/assets/templates/sdd-viewer.html +0 -2
  58. package/skills/uipath-maestro-case/references/bindings-and-expressions.md +3 -1
  59. package/skills/uipath-maestro-case/references/bindings-v2-sync.md +2 -2
  60. package/skills/uipath-maestro-case/references/brownfield.md +15 -5
  61. package/skills/uipath-maestro-case/references/case-commands.md +19 -3
  62. package/skills/uipath-maestro-case/references/case-editing-operations.md +24 -21
  63. package/skills/uipath-maestro-case/references/case-schema.md +38 -16
  64. package/skills/uipath-maestro-case/references/connector-trigger-common.md +15 -8
  65. package/skills/uipath-maestro-case/references/evals/evals.json +35 -18
  66. package/skills/uipath-maestro-case/references/implementation.md +86 -71
  67. package/skills/uipath-maestro-case/references/phase-0-interview.md +92 -23
  68. package/skills/uipath-maestro-case/references/phased-execution.md +70 -55
  69. package/skills/uipath-maestro-case/references/placeholder-tasks.md +5 -5
  70. package/skills/uipath-maestro-case/references/planning.md +57 -9
  71. package/skills/uipath-maestro-case/references/plugins/case/impl-json.md +7 -5
  72. package/skills/uipath-maestro-case/references/plugins/case/planning.md +1 -1
  73. package/skills/uipath-maestro-case/references/plugins/conditions/case-exit-conditions/impl-json.md +5 -5
  74. package/skills/uipath-maestro-case/references/plugins/conditions/stage-entry-conditions/impl-json.md +41 -5
  75. package/skills/uipath-maestro-case/references/plugins/conditions/stage-entry-conditions/planning.md +27 -3
  76. package/skills/uipath-maestro-case/references/plugins/conditions/stage-exit-conditions/impl-json.md +6 -6
  77. package/skills/uipath-maestro-case/references/plugins/conditions/stage-exit-conditions/planning.md +3 -1
  78. package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/impl-json.md +20 -7
  79. package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/planning.md +37 -4
  80. package/skills/uipath-maestro-case/references/plugins/sla/impl-json.md +24 -13
  81. package/skills/uipath-maestro-case/references/plugins/sla/planning.md +9 -3
  82. package/skills/uipath-maestro-case/references/plugins/stages/impl-json.md +4 -0
  83. package/skills/uipath-maestro-case/references/plugins/stages/planning.md +4 -1
  84. package/skills/uipath-maestro-case/references/plugins/tasks/action/impl-json.md +3 -1
  85. package/skills/uipath-maestro-case/references/plugins/tasks/action/planning.md +2 -0
  86. package/skills/uipath-maestro-case/references/plugins/tasks/agent/impl-json.md +3 -2
  87. package/skills/uipath-maestro-case/references/plugins/tasks/agent/planning.md +4 -2
  88. package/skills/uipath-maestro-case/references/plugins/tasks/api-workflow/impl-json.md +3 -2
  89. package/skills/uipath-maestro-case/references/plugins/tasks/api-workflow/planning.md +4 -2
  90. package/skills/uipath-maestro-case/references/plugins/tasks/case-management/impl-json.md +3 -2
  91. package/skills/uipath-maestro-case/references/plugins/tasks/case-management/planning.md +4 -2
  92. package/skills/uipath-maestro-case/references/plugins/tasks/connector-activity/impl-json.md +1 -1
  93. package/skills/uipath-maestro-case/references/plugins/tasks/connector-activity/planning.md +2 -0
  94. package/skills/uipath-maestro-case/references/plugins/tasks/connector-trigger/impl-json.md +1 -1
  95. package/skills/uipath-maestro-case/references/plugins/tasks/connector-trigger/planning.md +2 -0
  96. package/skills/uipath-maestro-case/references/plugins/tasks/create-inline-common.md +1 -1
  97. package/skills/uipath-maestro-case/references/plugins/tasks/process/impl-json.md +3 -2
  98. package/skills/uipath-maestro-case/references/plugins/tasks/process/planning.md +6 -4
  99. package/skills/uipath-maestro-case/references/plugins/tasks/rpa/impl-json.md +3 -2
  100. package/skills/uipath-maestro-case/references/plugins/tasks/rpa/planning.md +4 -2
  101. package/skills/uipath-maestro-case/references/plugins/tasks/wait-for-timer/impl-json.md +4 -3
  102. package/skills/uipath-maestro-case/references/plugins/tasks/wait-for-timer/planning.md +4 -0
  103. package/skills/uipath-maestro-case/references/plugins/triggers/event/impl-json.md +17 -14
  104. package/skills/uipath-maestro-case/references/plugins/triggers/event/planning.md +1 -1
  105. package/skills/uipath-maestro-case/references/plugins/triggers/manual/impl-json.md +13 -10
  106. package/skills/uipath-maestro-case/references/plugins/triggers/timer/impl-json.md +18 -16
  107. package/skills/uipath-maestro-case/references/plugins/triggers/timer/planning.md +2 -2
  108. package/skills/uipath-maestro-case/references/plugins/variables/bindings/impl-json.md +1 -1
  109. package/skills/uipath-maestro-case/references/plugins/variables/global-vars/impl-json.md +11 -9
  110. package/skills/uipath-maestro-case/references/plugins/variables/io-binding/impl-json.md +6 -2
  111. package/skills/uipath-maestro-case/references/plugins/variables/io-binding/planning.md +19 -1
  112. package/skills/uipath-maestro-case/references/registry-discovery.md +3 -3
  113. package/skills/uipath-maestro-case/references/sdd-generation-rules.md +155 -51
  114. package/skills/uipath-maestro-case/references/sla-response-shapes.md +74 -0
  115. package/skills/uipath-maestro-flow/SKILL.md +4 -3
  116. package/skills/uipath-maestro-flow/references/author/CAPABILITY.md +3 -0
  117. package/skills/uipath-maestro-flow/references/author/references/editing-operations-json.md +10 -17
  118. package/skills/uipath-maestro-flow/references/author/references/editing-operations.md +1 -1
  119. package/skills/uipath-maestro-flow/references/author/references/greenfield.md +8 -6
  120. package/skills/uipath-maestro-flow/references/author/references/planning-impl.md +1 -1
  121. package/skills/uipath-maestro-flow/references/author/references/plugins/agent/impl.md +4 -9
  122. package/skills/uipath-maestro-flow/references/author/references/plugins/agentic-process/impl.md +3 -7
  123. package/skills/uipath-maestro-flow/references/author/references/plugins/api-workflow/impl.md +5 -8
  124. package/skills/uipath-maestro-flow/references/author/references/plugins/connector/impl.md +11 -4
  125. package/skills/uipath-maestro-flow/references/author/references/plugins/flow/impl.md +3 -7
  126. package/skills/uipath-maestro-flow/references/author/references/plugins/inline-agent/impl.md +14 -17
  127. package/skills/uipath-maestro-flow/references/author/references/plugins/ixp/impl.md +60 -13
  128. package/skills/uipath-maestro-flow/references/author/references/plugins/queue/impl.md +2 -14
  129. package/skills/uipath-maestro-flow/references/author/references/plugins/rpa/impl.md +4 -9
  130. package/skills/uipath-maestro-flow/references/author/references/plugins/script/impl.md +3 -0
  131. package/skills/uipath-maestro-flow/references/author/references/plugins/subflow/impl.md +5 -9
  132. package/skills/uipath-maestro-flow/references/author/references/plugins/transform/impl.md +13 -0
  133. package/skills/uipath-maestro-flow/references/shared/action-nodes.md +2 -2
  134. package/skills/uipath-maestro-flow/references/shared/file-format.md +16 -12
  135. package/skills/uipath-maestro-flow/references/shared/variables-and-expressions.md +3 -3
  136. package/skills/uipath-planner/SKILL.md +1 -1
  137. package/skills/uipath-planner/references/non-pdd-lane-guide.md +1 -1
  138. package/skills/uipath-platform/SKILL.md +1 -1
  139. package/skills/uipath-platform/references/data-fabric/bulk-import.md +10 -27
  140. package/skills/uipath-platform/references/data-fabric/choice-sets.md +7 -64
  141. package/skills/uipath-platform/references/data-fabric/data-fabric.md +76 -267
  142. package/skills/uipath-platform/references/data-fabric/entity-schema.md +23 -99
  143. package/skills/uipath-platform/references/data-fabric/file-attachments.md +5 -28
  144. package/skills/uipath-platform/references/data-fabric/filter-platform-contract.md +2 -2
  145. package/skills/uipath-platform/references/data-fabric/records-query.md +11 -32
  146. package/skills/uipath-platform/references/integration-service/reference-resolution.md +6 -2
  147. package/skills/uipath-platform/references/licensing/consumables-report.md +18 -0
  148. package/skills/uipath-platform/references/licensing/licensing.md +1 -1
  149. package/skills/uipath-platform/references/orchestrator/run-jobs.md +9 -2
  150. package/skills/uipath-platform/references/orchestrator/setup-environment.md +9 -0
  151. package/skills/uipath-platform/references/traces/feedback.md +4 -1
  152. package/skills/uipath-process-mining/SKILL.md +97 -0
  153. package/skills/uipath-process-mining/references/app-types.md +66 -0
  154. package/skills/uipath-process-mining/references/data-model.md +130 -0
  155. package/skills/uipath-process-mining/references/lifecycle-and-rbac.md +67 -0
  156. package/skills/uipath-process-mining/references/model-editing.md +112 -0
  157. package/skills/uipath-process-mining/references/pre-flight.md +119 -0
  158. package/skills/uipath-process-mining/references/querying.md +66 -0
  159. package/skills/uipath-process-mining/references/transformations.md +80 -0
  160. package/skills/uipath-process-mining/references/uip-pm-cli.md +145 -0
  161. package/skills/uipath-review/SKILL.md +23 -18
  162. package/skills/uipath-review/references/agents/agent-grading-rubric.md +1 -1
  163. package/skills/uipath-review/references/agents/agent-review-checklist.md +0 -4
  164. package/skills/uipath-review/references/agents/agents-coded-rules.md +1 -10
  165. package/skills/uipath-review/references/agents/agents-lowcode-rules.md +3 -6
  166. package/skills/uipath-review/references/agents/guardrails/coded-guardrails-review.md +62 -14
  167. package/skills/uipath-review/references/agents/guardrails/guardrails-review.md +60 -4
  168. package/skills/uipath-review/references/review-workflow-guide.md +3 -2
  169. package/skills/uipath-review/references/rule-catalog-workflow.md +4 -5
  170. package/skills/uipath-rpa/.maintenance/pattern-card-maintenance.md +20 -0
  171. package/skills/uipath-rpa/SKILL.md +57 -55
  172. package/skills/uipath-rpa/agents/uipath-project-discovery-agent.md +75 -19
  173. package/skills/uipath-rpa/assets/codedworkflow-template.md +245 -11
  174. package/skills/uipath-rpa/references/cli-reference.md +229 -6
  175. package/skills/uipath-rpa/references/coded/codedworkflow-reference.md +158 -2
  176. package/skills/uipath-rpa/references/coded/integration-service-guide.md +6 -5
  177. package/skills/uipath-rpa/references/coded/operations-guide.md +273 -5
  178. package/skills/uipath-rpa/references/coded-vs-xaml-guide.md +3 -3
  179. package/skills/uipath-rpa/references/common-pattern-card.md +303 -0
  180. package/skills/uipath-rpa/references/data-manipulation-guide.md +18 -3
  181. package/skills/uipath-rpa/references/debugging.md +0 -2
  182. package/skills/uipath-rpa/references/environment-setup.md +309 -1
  183. package/skills/uipath-rpa/references/error-handling-guide.md +1 -1
  184. package/skills/uipath-rpa/references/execution-maps-guide.md +110 -0
  185. package/skills/uipath-rpa/references/is-connector-xaml-guide.md +58 -4
  186. package/skills/uipath-rpa/references/legacy/activity-docs/Excel.md +1 -1
  187. package/skills/uipath-rpa/references/legacy/activity-docs/_DU-PROCESS.md +0 -2
  188. package/skills/uipath-rpa/references/legacy/activity-docs/_INDEX.md +2 -2
  189. package/skills/uipath-rpa/references/legacy/activity-docs/_PATTERNS.md +1 -1
  190. package/skills/uipath-rpa/references/legacy/activity-docs/_REFRAMEWORK.md +2 -7
  191. package/skills/uipath-rpa/references/legacy/cli-reference.md +599 -0
  192. package/skills/uipath-rpa/references/legacy/error-handling-guide.md +2 -2
  193. package/skills/uipath-rpa/references/legacy/legacy-mode-guide.md +16 -16
  194. package/skills/uipath-rpa/references/legacy/project-organization-guide.md +2 -2
  195. package/skills/uipath-rpa/references/legacy/selector-guide.md +163 -1
  196. package/skills/uipath-rpa/references/legacy/testing-guide.md +246 -3
  197. package/skills/uipath-rpa/references/legacy/xaml-basics-and-rules.md +267 -2
  198. package/skills/uipath-rpa/references/library-authoring-guide.md +4 -3
  199. package/skills/uipath-rpa/references/testing-guide.md +2 -28
  200. package/skills/uipath-rpa/references/trigger-pattern-guide.md +1 -1
  201. package/skills/uipath-rpa/references/xaml/canvas-layout-guide.md +140 -33
  202. package/skills/uipath-rpa/references/xaml/common-pitfalls.md +57 -240
  203. package/skills/uipath-rpa/references/xaml/csharp-activity-binding-guide.md +42 -2
  204. package/skills/uipath-rpa/references/xaml/long-running-workflow-guide.md +1 -1
  205. package/skills/uipath-rpa/references/xaml/xaml-basics-and-rules.md +194 -228
  206. package/skills/uipath-solution/references/activate-and-manage.md +22 -0
  207. package/skills/uipath-solution/references/develop-solution.md +26 -2
  208. package/skills/uipath-solution/references/pack-and-deploy.md +43 -9
  209. package/skills/uipath-test/SKILL.md +4 -4
  210. package/skills/uipath-test/references/playwright-first-mile-guide.md +5 -4
  211. package/skills/uipath-test/references/publish-and-link-guide.md +2 -2
  212. package/skills/uipath-troubleshoot/references/activity-packages/classic-activities/playbooks/click-silent-no-op.md +5 -5
  213. package/skills/uipath-troubleshoot/references/activity-packages/classic-activities/playbooks/queue-operation-failed.md +20 -4
  214. package/skills/uipath-troubleshoot/references/activity-packages/classic-activities/summary.md +1 -1
  215. package/skills/uipath-troubleshoot/references/activity-packages/csv-activities/playbooks/read-csv-file-not-found.md +12 -0
  216. package/skills/uipath-troubleshoot/references/activity-packages/mail-activities/playbooks/send-outlook-mail-failures.md +12 -1
  217. package/skills/uipath-troubleshoot/references/activity-packages/system-activities/playbooks/get-asset-activity-bug-silent-failure.md +2 -1
  218. package/skills/uipath-troubleshoot/references/activity-packages/terminal-activities/playbooks/terminal-session-connection-failed.md +5 -1
  219. package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/click-silent-no-op.md +5 -5
  220. package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/dependency-version-conflict.md +27 -6
  221. package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/napplicationcard-view-generation-failed.md +10 -0
  222. package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/scope-container-wrong-page.md +1 -1
  223. package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/summary.md +1 -1
  224. package/skills/uipath-troubleshoot/references/activity-packages/web-activities/overview.md +4 -0
  225. package/skills/uipath-troubleshoot/references/activity-packages/web-activities/playbooks/http-request-auth-401-403.md +44 -0
  226. package/skills/uipath-troubleshoot/references/activity-packages/web-activities/playbooks/http-request-connection-failure.md +2 -1
  227. package/skills/uipath-troubleshoot/references/activity-packages/web-activities/playbooks/http-request-content-type-rejected.md +37 -0
  228. package/skills/uipath-troubleshoot/references/activity-packages/web-activities/playbooks/http-request-proxy-blocked.md +39 -0
  229. package/skills/uipath-troubleshoot/references/activity-packages/web-activities/playbooks/package-version-mismatch.md +42 -0
  230. package/skills/uipath-troubleshoot/references/activity-packages/web-activities/playbooks/securestring-misuse-analyzer.md +41 -0
  231. package/skills/uipath-troubleshoot/references/activity-packages/web-activities/summary.md +5 -0
  232. package/skills/uipath-troubleshoot/references/products/integration-service/playbooks/connector-null-reference.md +14 -1
  233. package/skills/uipath-troubleshoot/references/products/integration-service/playbooks/connector-runtime-exception.md +2 -0
  234. package/skills/uipath-troubleshoot/references/products/integration-service/playbooks/is-activities-prerelease-not-found.md +39 -0
  235. package/skills/uipath-troubleshoot/references/products/integration-service/playbooks/response-content-too-large.md +41 -0
  236. package/skills/uipath-troubleshoot/references/products/integration-service/summary.md +9 -0
  237. package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/console-conflict-login-to-console.md +40 -0
  238. package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/credential-store-unavailable.md +42 -0
  239. package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/executor-start-transient-rerun.md +49 -0
  240. package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/job-consecutive-system-exceptions.md +47 -0
  241. package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/job-faulted-session-timeout.md +19 -19
  242. package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/job-output-too-large.md +47 -0
  243. package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/job-stopped-generic-exit-code.md +55 -0
  244. package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/known-issue-robot-defect.md +40 -0
  245. package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/platform-incident-correlation.md +45 -0
  246. package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/screen-capture-handle-invalid.md +43 -0
  247. package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/serverless-license-quota.md +43 -0
  248. package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/serverless-time-limit-exceeded.md +34 -0
  249. package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/workstation-in-use-machine-slots.md +40 -0
  250. package/skills/uipath-troubleshoot/references/products/orchestrator/summary.md +13 -1
  251. package/version-manifest.json +2 -2
  252. package/skills/uipath-maestro-bpmn/validator/README.md +0 -224
  253. package/skills/uipath-maestro-bpmn/validator/model.mjs +0 -419
  254. package/skills/uipath-maestro-bpmn/validator/package.json +0 -17
  255. package/skills/uipath-maestro-bpmn/validator/rules.mjs +0 -1403
  256. package/skills/uipath-maestro-bpmn/validator/samples/invalid-conditional-and-variable.bpmn +0 -25
  257. package/skills/uipath-maestro-bpmn/validator/samples/valid-baseline.bpmn +0 -52
  258. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/A.2.0.bpmn +0 -157
  259. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/A.2.1.bpmn +0 -333
  260. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/B.1.0.bpmn +0 -598
  261. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/B.2.0.bpmn +0 -1709
  262. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/C.2.0.bpmn +0 -564
  263. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/C.3.0.bpmn +0 -671
  264. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/C.4.0.bpmn +0 -1045
  265. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/C.5.0.bpmn +0 -1176
  266. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/C.6.0.bpmn +0 -670
  267. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/C.7.0.bpmn +0 -466
  268. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/Can_Parse_Complex_Process_With_Task_Gateway_BoundaryEvent_etc.bpmn +0 -74
  269. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/ExclusiveGatewayDefaultFlow.bpmn +0 -32
  270. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/ExternalAgentWorkflow.bpmn +0 -62
  271. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/Golden_Scenario.initial.bpmn +0 -361
  272. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/InclusiveJoinRouteAwayBranch.bpmn +0 -62
  273. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/Parse_AsyncExecution_And_Create_CorrectModel.bpmn +0 -74
  274. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/Parse_IXP_ExtractionValidation_And_Create_CorrectModel.bpmn +0 -35
  275. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/Parse_IXP_Extraction_FileUpload_And_Create_CorrectModel.bpmn +0 -33
  276. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/Parse_IXP_Extraction_JobAttachment_And_Create_CorrectModel.bpmn +0 -35
  277. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/Parse_SubProcess_With_Multiple_Element_Types.bpmn +0 -76
  278. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/StartEventWithOutputs.bpmn +0 -36
  279. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/StartGatewayEnd.bpmn +0 -44
  280. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/all elements.bpmn +0 -516
  281. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/all_sequence_flow_types.bpmn +0 -173
  282. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/demo.bpmn +0 -181
  283. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/subprocess-example-001-collapsed.bpmn +0 -126
  284. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/subprocess-example-001-expanded.bpmn +0 -122
  285. package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/subprocess-example-003-collapsed_deeply-nested.bpmn +0 -438
  286. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/A.1.0.bpmn +0 -87
  287. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/A.3.0.bpmn +0 -165
  288. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/ApiWorkflow.bpmn +0 -39
  289. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/BpmnNestedSubProcessTests.bpmn +0 -102
  290. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/BpmnTimerBoundaryEvents.bpmn +0 -160
  291. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/BpmnXmlWithCatchAllErrorEventSubProcess.bpmn +0 -45
  292. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/BpmnXmlWithSpecificErrorEventSubProcess.bpmn +0 -46
  293. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/CaseManagementWithConstantIdentifier.bpmn +0 -218
  294. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/ErrorBoundary.bpmn +0 -78
  295. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/ErrorPropagationInEventSubprocess.bpmn +0 -340
  296. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/EventBasedGatewayFirstCatcherWins.bpmn +0 -56
  297. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/Example-EventBasedGateway.bpmn +0 -117
  298. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/ExclusiveGatewayConditional.bpmn +0 -45
  299. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/ExclusiveGatewaySharedEndEvent.bpmn +0 -45
  300. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/ExclusiveWithParallelGateway.bpmn +0 -68
  301. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/FourScriptTasks.bpmn +0 -84
  302. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/HitlTaskOnly.bpmn +0 -55
  303. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/InclusiveGatewayForkJoin.bpmn +0 -69
  304. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/Parse_BPMN_Elements_And_Create_CorrectModel.bpmn +0 -20
  305. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/Parse_HttpRequest_ServiceTask_And_Create_Correct_Model.bpmn +0 -34
  306. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/Parse_MessageBoundaryEvent_And_Create_CorrectModel.bpmn +0 -87
  307. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/Parse_Script_Task_V2_And_Create_Correct_Model.bpmn +0 -31
  308. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/Parse_Sets_Containers_Properly.bpmn +0 -129
  309. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/ScriptWritesVariableThenGatewayBranches.bpmn +0 -59
  310. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/boundaryevent.bpmn +0 -30
  311. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/collapsed-subprocess.bpmn +0 -83
  312. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/connectable-types.bpmn +0 -85
  313. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/extensions-orchestrator-start-job.bpmn +0 -80
  314. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/multiparticipantpool.bpmn +0 -77
  315. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/nestedsubprocess.bpmn +0 -36
  316. package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/simple.bpmn +0 -59
  317. package/skills/uipath-maestro-bpmn/validator/test/integration.test.mjs +0 -146
  318. package/skills/uipath-maestro-bpmn/validator/test/model-helpers.mjs +0 -42
  319. package/skills/uipath-maestro-bpmn/validator/test/ported-rule-tests.mjs +0 -983
  320. package/skills/uipath-maestro-bpmn/validator/test/run-tests.mjs +0 -530
  321. package/skills/uipath-maestro-bpmn/validator/uipath-moddle.v1.json +0 -715
  322. package/skills/uipath-maestro-bpmn/validator/validate-bpmn.mjs +0 -164
  323. package/skills/uipath-review/references/agents/agents-common-rules.md +0 -32
  324. package/skills/uipath-rpa/assets/before-after-hooks-template.md +0 -115
  325. package/skills/uipath-rpa/assets/helper-utility-template.md +0 -22
  326. package/skills/uipath-rpa/assets/testcase-template.md +0 -92
  327. package/skills/uipath-rpa/references/coded/coding-guidelines.md +0 -255
  328. package/skills/uipath-rpa/references/coded/inspect-package-guide.md +0 -80
  329. package/skills/uipath-rpa/references/coded/third-party-packages-guide.md +0 -67
  330. package/skills/uipath-rpa/references/connector-capabilities.md +0 -79
  331. package/skills/uipath-rpa/references/legacy/activity-docs/Testing.md +0 -95
  332. package/skills/uipath-rpa/references/legacy/activity-docs/UIAutomation.md +0 -159
  333. package/skills/uipath-rpa/references/legacy/common-pitfalls.md +0 -318
  334. package/skills/uipath-rpa/references/legacy/discovery-workflow.md +0 -147
  335. package/skills/uipath-rpa/references/legacy/environment-setup.md +0 -78
  336. package/skills/uipath-rpa/references/legacy/project-structure.md +0 -206
  337. package/skills/uipath-rpa/references/legacy/test-data-guide.md +0 -142
  338. package/skills/uipath-rpa/references/legacy/validation-and-fixing.md +0 -154
  339. package/skills/uipath-rpa/references/project-structure-guide.md +0 -168
  340. package/skills/uipath-rpa/references/project-structure.md +0 -135
  341. package/skills/uipath-rpa/references/publishing-guide.md +0 -80
  342. package/skills/uipath-rpa/references/validation-guide.md +0 -170
  343. package/skills/uipath-rpa/references/xaml/csharp-expression-pitfalls.md +0 -43
  344. package/skills/uipath-rpa/references/xaml/flowchart-guide.md +0 -113
  345. package/skills/uipath-rpa/references/xaml/workflow-guide.md +0 -258
@@ -2,6 +2,8 @@
2
2
 
3
3
  Complete reference for all `uip rpa-legacy` CLI commands and error recovery patterns.
4
4
 
5
+ Sections: [Path and Output Rules](#path-and-output-rules) · [File Operations](#file-operations-built-in-tools) · [Activity Discovery Tools](#activity-discovery-tools) · [Validation Tools](#validation-tools) · [Package & Debug Tools](#package--debug-tools) · [Documentation Search](#documentation-search) · [CLI Error Recovery](#cli-error-recovery) · [Phase 0: Environment Readiness](#phase-0-environment-readiness) · [Legacy Project Structure](#legacy-project-structure) · [Discovery Workflow](#discovery-workflow--detailed-steps) · [Phase 3: Validate & Fix Loop](#phase-3-validate--fix-loop)
6
+
5
7
  **The CLI is fully self-documenting.** Append `--help` at any level to discover commands, subcommands, and parameters:
6
8
  ```bash
7
9
  uip rpa-legacy --help # all rpa-legacy subcommands
@@ -361,3 +363,600 @@ When `uip rpa-legacy` commands fail, diagnose by error category:
361
363
  | Any unrecognized error | Unknown | Use `--log-level debug` for debug details, inform the user |
362
364
 
363
365
  **General strategy:** Do NOT retry the same failing command in a loop. Diagnose the root cause, apply the recovery action, then retry once. If it fails again, inform the user.
366
+
367
+ ---
368
+
369
+ ## Phase 0: Environment Readiness
370
+
371
+ **Goal:** Establish the project root and verify the project is a legacy framework project before any other operations.
372
+
373
+ **Key difference from modern (`uip rpa`):** The `uip rpa-legacy` CLI is standalone — it does **not** require Studio Desktop to be running. It resolves dependencies from NuGet directly and uses UiRobot for execution.
374
+
375
+ ---
376
+
377
+ ### Step 0.1: Establish Project Root
378
+
379
+ All `uip rpa-legacy` commands require a `<project-path>` argument pointing to the folder containing `project.json` (or the `project.json` file itself).
380
+
381
+ ```bash
382
+ # Check if project.json exists in the CWD
383
+ ls {cwd}/project.json
384
+ ```
385
+
386
+ If the CWD is not the project root:
387
+ - Locate the project root by finding `project.json`: `Glob: pattern="**/project.json"`
388
+ - Ask the user where their project is located if multiple `project.json` files are found
389
+
390
+ Store the project root path and use it consistently as `{projectRoot}` throughout all subsequent operations.
391
+
392
+ ---
393
+
394
+ ### Step 0.2: Verify Legacy Project
395
+
396
+ Read `project.json` and confirm this is a legacy framework project:
397
+
398
+ ```
399
+ Read: file_path="{projectRoot}/project.json"
400
+ ```
401
+
402
+ **Check these fields:**
403
+
404
+ | Field | Legacy Value | Notes |
405
+ |-------|-------------|-------|
406
+ | `targetFramework` | `"Legacy"` | May be absent in very old projects (pre-2021), which implies Legacy |
407
+ | `expressionLanguage` | `"VisualBasic"` (most common) or `"CSharp"` | Determines expression syntax in XAML |
408
+ | `studioVersion` | Typically `< 23.x` | Older Studio versions |
409
+ | `dependencies` | Classic package versions (no modern package IDs) | Very old projects (pre-2021) may have lower versions like ≤ 22.x |
410
+
411
+ **If `targetFramework` is `"Windows"` or `"Portable"`**, this is a modern project — use the `uipath-rpa` skill instead.
412
+
413
+ **If `targetFramework` is absent**, check the `studioVersion` and `dependencies` fields. Old projects without explicit `targetFramework` are Legacy by default.
414
+
415
+ ---
416
+
417
+ ### Step 0.3: Authentication (If Needed)
418
+
419
+ Some operations (cloud-based NuGet feeds, Orchestrator assets) may require authentication:
420
+
421
+ ```bash
422
+ uip login
423
+ ```
424
+
425
+ This opens a browser-based login flow. Authentication is typically needed only for:
426
+ - Projects that use private NuGet feeds requiring authentication
427
+ - `build` commands that push packages to Orchestrator
428
+ - Accessing Orchestrator resources (assets, queues) during `debug` execution
429
+
430
+ For most local development tasks (validate, edit, find-activities), authentication is **not required**.
431
+
432
+ ---
433
+
434
+ ### Step 0.4: Package Restore
435
+
436
+ After creating or modifying `project.json` dependencies, packages must be restored before `find-activities` or `type-definition` will work.
437
+
438
+ **Trigger restore** by running validate on the project directory:
439
+
440
+ ```bash
441
+ uip rpa-legacy validate "{projectRoot}" --output json
442
+ ```
443
+
444
+ This resolves NuGet packages from configured feeds. After this completes, `find-activities` and `type-definition` will have access to the package assemblies.
445
+
446
+ **If `find-activities` returns "No assemblies resolved from package dependencies"**, run validate first to trigger restore.
447
+
448
+ ---
449
+
450
+ ## Legacy Project Structure
451
+
452
+ Understanding the layout and configuration of a legacy UiPath RPA project.
453
+
454
+ ---
455
+
456
+ ### Directory Layout
457
+
458
+ ```
459
+ {projectRoot}/
460
+ ├── project.json # Project metadata and dependencies
461
+ ├── Main.xaml # Entry point workflow
462
+ ├── *.xaml # Additional workflows (flat or in folders)
463
+ ├── Workflows/ # (Optional) Sub-folder for organized workflows
464
+ ├── Data/ # (Optional) Input/output data files
465
+ ├── .screenshots/ # (Optional) Studio screenshot captures
466
+ ├── .settings/ # (Optional) Studio settings profiles
467
+ └── .tmh/ # (Optional) Test Manager data
468
+ ```
469
+
470
+ **Notable absences compared to modern projects:**
471
+ - No `.local/docs/packages/` — no auto-generated activity documentation
472
+ - No `.codedworkflows/` — no coded automation support
473
+ - No `.objects/` — no Object Repository
474
+ - No `.project/JitCustomTypesSchema.json` — no JIT custom types
475
+
476
+ ---
477
+
478
+ ### Creating a project.json from Scratch
479
+
480
+ #### Minimal Template
481
+
482
+ Start with this — only `UiPath.System.Activities` is required. Add other packages as needed.
483
+
484
+ ```json
485
+ {
486
+ "name": "MyProject",
487
+ "description": "",
488
+ "main": "Main.xaml",
489
+ "dependencies": {
490
+ "UiPath.System.Activities": "[24.10.8]"
491
+ },
492
+ "schemaVersion": "4.0",
493
+ "studioVersion": "25.10.0.0",
494
+ "projectVersion": "1.0.0",
495
+ "expressionLanguage": "VisualBasic",
496
+ "targetFramework": "Legacy",
497
+ "runtimeOptions": {
498
+ "autoDispose": false,
499
+ "isPausable": true,
500
+ "isAttended": false,
501
+ "requiresUserInteraction": true,
502
+ "supportsPersistence": false,
503
+ "workflowSerialization": "DataContract",
504
+ "excludedLoggedData": ["Private:*", "*password*"],
505
+ "executionType": "Workflow"
506
+ },
507
+ "designOptions": {
508
+ "projectProfile": "Developement",
509
+ "outputType": "Process"
510
+ },
511
+ "entryPoints": [
512
+ {
513
+ "filePath": "Main.xaml",
514
+ "uniqueId": "00000000-0000-0000-0000-000000000000",
515
+ "input": [],
516
+ "output": []
517
+ }
518
+ ]
519
+ }
520
+ ```
521
+
522
+ #### Package Selection Guide
523
+
524
+ **Add packages based on what the workflow needs.** Only `UiPath.System.Activities` is required — everything else is optional.
525
+
526
+ | Need | Package | Latest Legacy Version |
527
+ |------|---------|----------------------|
528
+ | **Core (always include)** | `UiPath.System.Activities` | **24.10.8** |
529
+ | UI automation (click, type, selectors) | `UiPath.UIAutomation.Activities` | **25.10.28** |
530
+ | Excel (read/write, macros, CSV) | `UiPath.Excel.Activities` | **2.24.4** |
531
+ | Email (SMTP, IMAP, POP3, Outlook) | `UiPath.Mail.Activities` | **1.24.18** |
532
+ | HTTP/REST/SOAP/JSON/XML | `UiPath.WebAPI.Activities` | **1.21.1** |
533
+ | Testing and assertions | `UiPath.Testing.Activities` | **25.10.1** |
534
+ | PDF (read text, OCR, merge, split) | `UiPath.PDF.Activities` | **3.25.2** |
535
+ | Office 365 (Graph API) | `UiPath.MicrosoftOffice365.Activities` | **2.9.13** |
536
+ | Word documents | `UiPath.Word.Activities` | **1.20.3** |
537
+ | PowerPoint presentations | `UiPath.Presentations.Activities` | **1.14.2** |
538
+ | Database (SQL queries) | `UiPath.Database.Activities` | **1.10.1** |
539
+ | Windows Credential Manager | `UiPath.Credentials.Activities` | **2.1.0** |
540
+ | FTP/SFTP file transfer | `UiPath.FTP.Activities` | **2.4.0** |
541
+ | Encryption/hashing (AES, HMAC, PGP) | `UiPath.Cryptography.Activities` | **1.6.1** |
542
+ | Python script execution | `UiPath.Python.Activities` | **1.10.0** |
543
+ | Java method invocation | `UiPath.Java.Activities` | **1.3.1** |
544
+ | Document Understanding/OCR | `UiPath.IntelligentOCR.Activities` | **6.27.3** |
545
+ | Forms (FormIo/HTML) | `UiPath.Form.Activities` | **2.0.8** |
546
+ | Terminal emulation (3270/5250/VT) | `UiPath.Terminal.Activities` | **2.9.0** |
547
+ | Google Suite (Gmail, Drive, Sheets) | `UiPath.GSuite.Activities` | **2.8.28** |
548
+ | NLP (sentiment, translation) | `UiPath.Cognitive.Activities` | **2.2.4** |
549
+ | StudioX scenario templates | `UiPath.ComplexScenarios.Activities` | **1.5.1** |
550
+ | OmniPage OCR engine | `UiPath.OmniPage.Activities` | **1.22.2** |
551
+ | Persistence (long-running workflows) | `UiPath.Persistence.Activities` | **1.8.1** |
552
+ | Mobile automation (iOS/Android) | `UiPath.MobileAutomation.Activities` | **25.10.0** |
553
+ | SAP BAPI function calls | `UiPath.SAP.BAPI.Activities` | **3.0.4** |
554
+
555
+ **Example:** A workflow that reads Excel, sends email, and calls a REST API needs:
556
+ ```json
557
+ "dependencies": {
558
+ "UiPath.System.Activities": "[24.10.8]",
559
+ "UiPath.Excel.Activities": "[2.24.4]",
560
+ "UiPath.Mail.Activities": "[1.24.18]",
561
+ "UiPath.WebAPI.Activities": "[1.21.1]"
562
+ }
563
+ ```
564
+
565
+ #### Packages Can Be Added Later
566
+
567
+ You don't need all packages upfront. Add them to `dependencies` as you discover what the workflow needs.
568
+
569
+ **Important:** `find-activities` only searches packages listed in `dependencies`. If you add a package to project.json, re-run `find-activities` to discover its activities.
570
+
571
+ #### Searching for Packages
572
+
573
+ When the known packages above don't cover a need, search configured NuGet feeds:
574
+
575
+ ```bash
576
+ uip rpa-legacy find-package --query "barcode" --limit 10 --output json
577
+ ```
578
+
579
+ This searches all configured feeds (UiPath official + any custom feeds) by name and description. Add the discovered package to `dependencies`, then `find-activities` will index it.
580
+
581
+ #### Arbitrary .NET Packages
582
+
583
+ Any NuGet package can be added to `dependencies` for custom .NET classes, methods, and types. Examples:
584
+ - `CsvHelper` — advanced CSV parsing
585
+ - `ClosedXML` — .xlsx manipulation without COM
586
+ - `HtmlAgilityPack` — HTML parsing
587
+
588
+ Use these via `InvokeCode` with the appropriate namespace imports.
589
+
590
+ **Avoid adding packages already bundled with Studio** (e.g., `Newtonsoft.Json`) — version conflicts can cause runtime issues.
591
+
592
+ ---
593
+
594
+ ### project.json Key Fields
595
+
596
+ | Field | Description |
597
+ |-------|-------------|
598
+ | `name` | Project name (used as package ID when packaged) |
599
+ | `main` | Entry point XAML file (relative path) |
600
+ | `dependencies` | NuGet package dependencies with version constraints |
601
+ | `expressionLanguage` | `"VisualBasic"` (most legacy) or `"CSharp"` |
602
+ | `targetFramework` | `"Legacy"` for .NET Framework 4.6.1 projects |
603
+ | `designOptions.outputType` | `"Process"` (standalone) or `"Library"` (reusable) |
604
+ | `studioVersion` | Studio version that created the project |
605
+
606
+ #### Version Constraints
607
+
608
+ | Syntax | Meaning |
609
+ |--------|---------|
610
+ | `[1.2.3]` | Exact version 1.2.3 |
611
+ | `[1.2.3, )` | Minimum version 1.2.3 |
612
+ | `[1.0, 2.0)` | Range: >= 1.0, < 2.0 |
613
+
614
+ ---
615
+
616
+ ### Library Project Template
617
+
618
+ To create a **Library** project (reusable workflows published as a NuGet package), set `outputType` to `"Library"`:
619
+
620
+ ```json
621
+ {
622
+ "name": "Acme.Finance.InvoiceUtilities",
623
+ "description": "Reusable invoice processing workflows",
624
+ "dependencies": {
625
+ "UiPath.System.Activities": "[24.10.8]"
626
+ },
627
+ "schemaVersion": "4.0",
628
+ "studioVersion": "25.10.0.0",
629
+ "projectVersion": "1.0.0",
630
+ "expressionLanguage": "VisualBasic",
631
+ "targetFramework": "Legacy",
632
+ "runtimeOptions": {
633
+ "autoDispose": false,
634
+ "isPausable": true,
635
+ "isAttended": false,
636
+ "requiresUserInteraction": false,
637
+ "supportsPersistence": false,
638
+ "workflowSerialization": "DataContract",
639
+ "excludedLoggedData": ["Private:*", "*password*"],
640
+ "executionType": "Workflow"
641
+ },
642
+ "designOptions": {
643
+ "projectProfile": "Developement",
644
+ "outputType": "Library"
645
+ }
646
+ }
647
+ ```
648
+
649
+ **Key differences from Process projects:**
650
+ - **No `main` field** — libraries have no entry point
651
+ - **No `entryPoints` array** — all workflows are callable individually
652
+ - **`outputType: "Library"`** — published as activity package, not deployed as process
653
+ - Workflows marked **Public** become activities when consumed; **Private** workflows are internal helpers
654
+
655
+ For full library design guidance (naming, versioning, patterns), see [project-organization-guide.md](./project-organization-guide.md).
656
+
657
+ ---
658
+
659
+ ## Discovery Workflow — Detailed Steps
660
+
661
+ Complete discovery procedure before writing or editing any XAML.
662
+
663
+ ---
664
+
665
+ ### Step 1: Project Structure
666
+
667
+ ```
668
+ Glob: pattern="**/*.xaml" path="{projectRoot}" → list all XAML workflow files
669
+ Read: file_path="{projectRoot}/project.json" → read the project definition
670
+ ```
671
+
672
+ Analyze: folder conventions, naming patterns, existing workflows, `expressionLanguage` (VB.NET or C#), installed packages (`dependencies`).
673
+
674
+ ---
675
+
676
+ ### Step 2: Consult Activity Reference Docs
677
+
678
+ Read `references/activity-docs/` for behavioral context (what activities do, gotchas, patterns).
679
+
680
+ | Situation | Action |
681
+ |-----------|--------|
682
+ | Know the package | Read `activity-docs/{PackageName}.md` directly |
683
+ | Don't know the package | Read `activity-docs/_INDEX.md` to find it |
684
+ | Need VB.NET expressions | Read `activity-docs/_PATTERNS.md` |
685
+ | Need XAML structure | Read `references/xaml-basics-and-rules.md` |
686
+ | Need gotchas | Read `activity-docs/_COMMON-PITFALLS.md` |
687
+ | Need InvokeCode patterns | Read `activity-docs/_INVOKE-CODE.md` |
688
+ | Working with REFramework | Read `activity-docs/_REFRAMEWORK.md` |
689
+ | Working with Document Understanding | Read `activity-docs/_DU-PROCESS.md` |
690
+ | Need all activities | Read `activity-docs/AllActivities.md` |
691
+
692
+ **These docs tell you what and how — NOT exact CLR property names/enum values for XAML. Steps 4 and 5 are mandatory for that.**
693
+
694
+ ---
695
+
696
+ ### Step 3: Search Current Project
697
+
698
+ ```
699
+ Glob: pattern="**/*pattern*.xaml" path="{projectRoot}"
700
+ Grep: pattern="ActivityName|pattern" path="{projectRoot}"
701
+ Read: file_path="{projectRoot}/ExistingWorkflow.xaml"
702
+ ```
703
+
704
+ Mature project: prioritize local patterns. Greenfield: skip.
705
+
706
+ ---
707
+
708
+ ### Step 4: Discover Activities (MANDATORY for non-built-in activities)
709
+
710
+ **Skip find-activities for built-in activities** listed in [_BUILT-IN-ACTIVITIES.md](./activity-docs/_BUILT-IN-ACTIVITIES.md): If, Assign, Sequence, TryCatch, Flowchart, ForEach, While, Switch, Throw, Delay, Parallel, LogMessage, InvokeCode, InvokeWorkflowFile, ForEachRow, AddDataRow. Use the provided XAML snippets directly.
711
+
712
+ **For all other activities**, run find-activities. Returns exact class names, argument signatures, types, **ready-to-use XAML snippet**, and **xmlns declaration**.
713
+
714
+ ```bash
715
+ uip rpa-legacy find-activities "{projectRoot}" --query "send mail" --output json
716
+ uip rpa-legacy find-activities "{projectRoot}" --query "invoke code" --include-type-definitions --output json
717
+ ```
718
+
719
+ **Use the returned `XamlSnippet` as your starting point** for activity XAML — it has correct element names, namespaces, and property names for the installed package version. Also add the returned `XmlnsDeclaration` to the root `<Activity>` element.
720
+
721
+ **Query syntax tips:**
722
+ - **Multi-word queries work** with relevance scoring: `"Excel Read Range"` splits into words, scores matches, bonuses when all words match
723
+ - **CamelCase boundaries detected**: `"SendHotkey"`, `"ExcelReadRange"` match correctly
724
+ - **Use `--exact`** when you know the exact activity name: `--query "ReadRange" --exact` — avoids irrelevant results
725
+ - Each call takes ~15-30 seconds — use `--exact` for known names to get precise results fast
726
+ - If a query returns too many irrelevant results, add `--exact` or use more specific terms
727
+
728
+ Activity reference docs describe behavior/gotchas but NOT exact CLR class names or argument types. Skipping this step → guessing → wasted validation cycles.
729
+
730
+ ---
731
+
732
+ ### Step 5: Inspect Types (MANDATORY for Enums/Complex Types)
733
+
734
+ **Run for every enum or complex type.** Gets exact valid values.
735
+
736
+ ```bash
737
+ # Example: InvokeCode Language accepts VBNet and CSharp (NOT "VisualBasic" or "VB")
738
+ uip rpa-legacy type-definition "{projectRoot}" --type "NetLanguage" --output json
739
+
740
+ uip rpa-legacy type-definition "{projectRoot}" --type "System.Net.Mail.MailMessage" --output json
741
+ ```
742
+
743
+ When to run: any enum property, any complex type argument, any type without listed valid values in docs.
744
+
745
+ ---
746
+
747
+ ### Step 5.5: Search NuGet for Packages (When Needed)
748
+
749
+ When the known packages in [§ Legacy Project Structure](#legacy-project-structure) and `find-activities` don't cover a capability:
750
+
751
+ ```bash
752
+ uip rpa-legacy find-package --query "barcode" --limit 10 --output json
753
+ ```
754
+
755
+ Searches all configured NuGet feeds by name and description. After finding the right package, add it to `dependencies` in project.json, then `find-activities` will index its activities.
756
+
757
+ Also works for arbitrary .NET packages (e.g., `CsvHelper`, `HtmlAgilityPack`). Avoid packages already bundled with Studio (e.g., `Newtonsoft.Json`) — version conflicts can cause issues.
758
+
759
+ ---
760
+
761
+ ### Step 6: Search UiPath Documentation (Fallback)
762
+
763
+ ```bash
764
+ uip docsai ask "best practices for Excel automation in legacy projects" --output json
765
+ uip docsai ask "ExcelApplicationScope ActivityAction body validation error" --output json
766
+ ```
767
+
768
+ Use when: bundled docs + CLI tools don't cover the topic, need best practices/guidelines/troubleshooting, unfamiliar error, platform concepts (Orchestrator, queues, triggers).
769
+
770
+ ---
771
+
772
+ ### Step 7: Search the Web (Last Resort)
773
+
774
+ Use `WebSearch` for UiPath Forum, Stack Overflow, GitHub, Reddit:
775
+
776
+ ```
777
+ WebSearch: "UiPath forum ExcelApplicationScope ActivityAction body legacy"
778
+ WebSearch: "site:stackoverflow.com UiPath legacy ExcelApplicationScope XAML"
779
+ WebSearch: "site:github.com UiPath REFramework legacy XAML example"
780
+ ```
781
+
782
+ Use when: all previous steps fail, obscure errors, community workarounds needed. Always verify web-sourced info against project config.
783
+
784
+ ---
785
+
786
+ ### Troubleshooting
787
+
788
+ #### Wrong enum value
789
+ **Symptom:** "Cannot create unknown type" or "is not a member of"
790
+ **Fix:** `uip rpa-legacy type-definition "{projectRoot}" --type "EnumTypeName" --output json`
791
+
792
+ #### Activity class name not found
793
+ **Symptom:** Unknown activity type or missing namespace
794
+ **Fix:** `uip rpa-legacy find-activities "{projectRoot}" --query "..." --output json`, add xmlns + assembly ref
795
+
796
+ #### Multiple errors after batch editing
797
+ **Symptom:** Many errors at once
798
+ **Fix:** Revert to last good state. Re-add one activity at a time, validating after each.
799
+
800
+ #### Activity docs don't match XAML property names
801
+ **Symptom:** Properties from docs don't work
802
+ **Fix:** `find-activities --include-type-definitions` for exact CLR property names
803
+
804
+ #### Stuck on unfamiliar problem
805
+ **Escalation:** `docsai ask` → `WebSearch` → ask user
806
+
807
+ ---
808
+
809
+ ## Phase 3: Validate & Fix Loop
810
+
811
+ Detailed procedures for validating legacy workflows, analyzing project quality, and fixing errors iteratively.
812
+
813
+ ---
814
+
815
+ ### Step 3.1: Validate
816
+
817
+ Use `uip rpa-legacy validate` to check a XAML file or entire project for compilation errors. Accepts XAML file path, project.json path, or project folder.
818
+
819
+ ```bash
820
+ # Validate a specific file (use during iteration — per activity)
821
+ uip rpa-legacy validate "{projectRoot}/Main.xaml" --output json
822
+
823
+ # Validate entire project (use as FINAL step before completing)
824
+ uip rpa-legacy validate "{projectRoot}" --output json
825
+ ```
826
+
827
+ **Workflow:**
828
+ - **During iteration:** validate per-file after each activity edit (faster, focused feedback)
829
+ - **Before completing:** validate the entire project to catch cross-file issues
830
+ - Run after **every** XAML edit — do not batch multiple edits without validation
831
+
832
+ ---
833
+
834
+ ### Step 3.2: Categorize and Fix Errors
835
+
836
+ **Fix order:** Package → Structure → Type → Activity Properties → Logic. Always fix in this order — higher-category fixes often resolve lower-category errors automatically.
837
+
838
+ #### 1. Package Errors — Missing namespace, unknown activity type, unresolved assembly
839
+
840
+ **The legacy CLI does not have `install-or-update-packages`.** When a missing package is detected:
841
+ 1. Identify the missing package from the error message
842
+ 2. Check the [activity reference docs](./activity-docs/_INDEX.md) to confirm the correct package name
843
+ 3. **Ask the user** to install the package manually in Studio:
844
+ - Studio → Manage Packages → search for the package → Install
845
+ - Or edit `project.json` dependencies directly (advanced — must match NuGet version constraints)
846
+ 4. Re-validate after the package is installed
847
+
848
+ #### 2. Structural Errors — Invalid XML, malformed elements, missing closing tags
849
+
850
+ - `Read` the XAML around the error location → `Edit` to fix XML structure
851
+ - Cross-check against [xaml-basics-and-rules.md](./xaml-basics-and-rules.md) for correct element nesting and namespace declarations
852
+ - Common issues: unclosed elements, mismatched namespace prefixes, duplicate `x:Name` attributes
853
+
854
+ #### 3. Type Errors — Wrong property type, invalid cast, type mismatch
855
+
856
+ - **Always use `type-definition`** to discover exact enum values and type members — do not guess
857
+ ```bash
858
+ uip rpa-legacy type-definition "{projectRoot}" --type "EnumTypeName" --output json
859
+ ```
860
+ - Example: InvokeCode `Language` property accepts `VBNet` (not `VisualBasic`, not `VB`)
861
+ - Common fixes: wrong `x:TypeArguments`, missing namespace prefix (`sd:DataTable` vs `x:String`), VB vs C# expression syntax mismatch
862
+ - Consult activity reference docs for behavioral context, but rely on `type-definition` for exact values
863
+
864
+ #### 4. Activity Properties Errors — Unknown properties, misconfigured settings
865
+
866
+ - **Always use `find-activities --include-type-definitions`** to discover exact property names
867
+ ```bash
868
+ uip rpa-legacy find-activities "{projectRoot}" --query "activity name" --include-type-definitions --output json
869
+ ```
870
+ - Activity reference docs describe behavior but may not list exact CLR property names — the CLI output is authoritative
871
+ - Common issues: properties that exist in modern but not legacy versions, misspelled property names, wrong enum values
872
+
873
+ #### 5. Logic Errors — Wrong behavior, incorrect expressions, business logic issues
874
+
875
+ - `Read` the XAML to understand current flow → `Edit` to correct
876
+ - Verify expression syntax matches project language (VB.NET vs C#)
877
+ - Consult [activity-docs/_PATTERNS.md](./activity-docs/_PATTERNS.md) for VB.NET expression patterns
878
+ - Use `uip rpa-legacy debug` for runtime validation if static checks pass
879
+
880
+ ---
881
+
882
+ ### Step 3.3: Iteration Loop
883
+
884
+ ```
885
+ REPEAT:
886
+ 1. Run: uip rpa-legacy validate "{projectRoot}/{file}.xaml" --output json
887
+ 2. IF 0 errors → EXIT loop (success)
888
+ 3. IF errors exist:
889
+ a. Categorize by type (Package/Structure/Type/Properties/Logic)
890
+ b. Fix highest-category errors first
891
+ c. Apply fix using Read + Edit tools
892
+ 4. IF error cannot be auto-resolved:
893
+ a. Document the error for the user
894
+ b. Suggest manual fix steps
895
+ c. Continue fixing other errors
896
+ UNTIL: 0 errors OR all remaining errors require user action
897
+ ```
898
+
899
+ **When stuck on one error:** Consider deferring to the user if it's a configuration detail (missing package, credential setup, connection string). Inform the user clearly about what needs to be done.
900
+
901
+ ---
902
+
903
+ ### Step 3.4: Package (Optional)
904
+
905
+ If a deployable `.nupkg` artifact is needed, package the project after validation passes:
906
+
907
+ ```bash
908
+ uip rpa-legacy pack "{projectRoot}" -o "{outputDir}" --output json
909
+ ```
910
+
911
+ Not required for debugging — legacy RPA can be debugged directly without packaging.
912
+
913
+ ---
914
+
915
+ ### Step 3.5: Smoke Test with Debug (Optional)
916
+
917
+ **Always validate before debugging** — don't debug a file with compilation errors.
918
+
919
+ ```bash
920
+ # Basic smoke test
921
+ uip rpa-legacy debug "{projectRoot}/Main.xaml" -i '{"in_TestMode": true}' --timeout 60
922
+
923
+ # Programmatic: capture result to file, suppress streaming logs
924
+ uip rpa-legacy debug "{projectRoot}/Main.xaml" -i '{"in_TestMode": true}' --result-path /tmp/result.json --log-level error
925
+ ```
926
+
927
+ **Reading results:**
928
+ - Exit code 0 → success: check `Data.Output` for out-argument values
929
+ - Exit code 1 → failure: check `Data.Error` for diagnostics:
930
+ - `Error.ActivityDisplayName` + `Error.XamlFile` → locate the problem
931
+ - `Error.ExceptionType` + `Error.Message` → understand it
932
+ - `Error.StackTrace` → full call chain
933
+ - `Data.ErrorLog` → all error-level log entries for context
934
+
935
+ **Fix-and-retry:** edit XAML → validate → debug again.
936
+
937
+ **Caution:** `debug` performs real actions (clicks, emails, file writes). Only use when safe.
938
+
939
+ For test data creation (Excel files, CSV, JSON, common UiPath types), see **[testing-guide.md § Test Data Creation](testing-guide.md#test-data-creation)**.
940
+
941
+ ---
942
+
943
+ ### Common Error Scenarios
944
+
945
+ #### Wrong enum value
946
+ **Symptom:** "Cannot create unknown type" or "is not a member of" for an enum property.
947
+ **Fix:** `uip rpa-legacy type-definition "{projectRoot}" --type "EnumTypeName" --output json`. Example: InvokeCode `Language` accepts `VBNet` and `CSharp` — not `VisualBasic` or `VB`.
948
+
949
+ #### Activity class name not found
950
+ **Symptom:** Unknown activity type or missing namespace.
951
+ **Fix:** `uip rpa-legacy find-activities "{projectRoot}" --query "..." --output json`, add xmlns + assembly ref.
952
+
953
+ #### Multiple errors after batch editing
954
+ **Symptom:** Many errors after writing multiple activities at once.
955
+ **Fix:** Revert to last good state. Re-add one activity at a time, validating after each.
956
+
957
+ #### Activity docs don't match XAML property names
958
+ **Symptom:** Properties from reference docs don't work in XAML.
959
+ **Fix:** `find-activities --include-type-definitions` for exact CLR property names from compiled assemblies.
960
+
961
+ #### Stuck on unfamiliar problem
962
+ **Escalation:** `uip docsai ask "..."` → `WebSearch` (UiPath Forum, Stack Overflow, GitHub) → ask user.
@@ -4,7 +4,7 @@ Structured error handling patterns for legacy UiPath RPA workflows. Use this gui
4
4
 
5
5
  For TryCatch XAML syntax, see [activity-docs/_BUILT-IN-ACTIVITIES.md](./activity-docs/_BUILT-IN-ACTIVITIES.md).
6
6
  For REFramework exception flow, see [activity-docs/_REFRAMEWORK.md](./activity-docs/_REFRAMEWORK.md).
7
- For Throw expression escaping, see [common-pitfalls.md](./common-pitfalls.md).
7
+ For Throw expression escaping, see [xaml-basics-and-rules.md § Common Pitfalls](./xaml-basics-and-rules.md#common-pitfalls--quick-reference).
8
8
 
9
9
  ---
10
10
 
@@ -160,7 +160,7 @@ Use `Throw` to signal a business rule violation or intentional failure:
160
160
  2. **Build complex messages in a variable first** — avoids VB.NET compiler issues with `&quot;` in `Throw.Exception`
161
161
  3. **Include context in the message** — "Invoice INV-12345 amount -500.00 is negative" not "Invalid amount"
162
162
 
163
- See [common-pitfalls.md](./common-pitfalls.md) for the full Throw expression escaping reference.
163
+ See [xaml-basics-and-rules.md § Common Pitfalls](./xaml-basics-and-rules.md#common-pitfalls--quick-reference) for the full Throw expression escaping reference.
164
164
 
165
165
  ### Rethrow — Preserve Original Stack Trace
166
166