@uipath/delegate-sdk 1.203.0 → 1.203.2

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 (405) hide show
  1. package/README.md +41 -3
  2. package/dist/index.mjs +2 -2
  3. package/dist/skills/business-analysis/SKILL.md +722 -0
  4. package/dist/skills/business-analysis/as-is-capture.md +440 -0
  5. package/dist/skills/business-analysis/assets/progress.yaml +19 -0
  6. package/dist/skills/business-analysis/assets/task-list.md +34 -0
  7. package/dist/skills/business-analysis/automation-hub-publishing.md +47 -0
  8. package/dist/skills/business-analysis/bpmn-to-be-design.md +274 -0
  9. package/dist/skills/business-analysis/case-to-be-design.md +223 -0
  10. package/dist/skills/business-analysis/diagram-authoring.md +215 -0
  11. package/dist/skills/business-analysis/industry-gaps.md +134 -0
  12. package/dist/skills/business-analysis/interview-spine.md +297 -0
  13. package/dist/skills/business-analysis/locales/de.json +54 -0
  14. package/dist/skills/business-analysis/locales/en.json +54 -0
  15. package/dist/skills/business-analysis/locales/es-MX.json +54 -0
  16. package/dist/skills/business-analysis/locales/es.json +54 -0
  17. package/dist/skills/business-analysis/locales/fr.json +54 -0
  18. package/dist/skills/business-analysis/locales/ja.json +54 -0
  19. package/dist/skills/business-analysis/locales/ko.json +54 -0
  20. package/dist/skills/business-analysis/locales/pt-BR.json +54 -0
  21. package/dist/skills/business-analysis/locales/pt.json +54 -0
  22. package/dist/skills/business-analysis/locales/ro.json +54 -0
  23. package/dist/skills/business-analysis/locales/tr.json +54 -0
  24. package/dist/skills/business-analysis/locales/zh-CN.json +54 -0
  25. package/dist/skills/business-analysis/locales/zh-TW.json +54 -0
  26. package/dist/skills/business-analysis/pdd-generation.md +204 -0
  27. package/dist/skills/business-analysis/pdd-template.md +562 -0
  28. package/dist/skills/business-analysis/progress-presentation.json +13 -0
  29. package/dist/skills/business-analysis/recording-first.md +19 -0
  30. package/dist/skills/business-analysis/recording-processing.md +152 -0
  31. package/dist/skills/business-analysis/references/automation-hub-open-api.md +57 -0
  32. package/dist/skills/business-analysis/references/case-definition-spec.md +90 -0
  33. package/dist/skills/business-analysis/references/case-design-patterns/loan-origination-spec.md +86 -0
  34. package/dist/skills/business-analysis/references/component-type-mapping.md +52 -0
  35. package/dist/skills/business-analysis/references/uipath-products/case-management-schema.md +62 -0
  36. package/dist/skills/business-analysis/references/uipath-products/maestro-case-framework.md +65 -0
  37. package/dist/skills/business-analysis/references/uipath-products/maestro-case-management.md +49 -0
  38. package/dist/skills/business-analysis/research-offer.md +104 -0
  39. package/dist/skills/business-analysis/research-pass.md +149 -0
  40. package/dist/skills/business-analysis/scripts/assemble-pdd.ps1 +294 -0
  41. package/dist/skills/business-analysis/scripts/assemble-pdd.sh +453 -0
  42. package/dist/skills/business-analysis/scripts/check-phase-ready.ps1 +72 -0
  43. package/dist/skills/business-analysis/scripts/check-phase-ready.sh +98 -0
  44. package/dist/skills/business-analysis/scripts/lint-diagram.ps1 +524 -0
  45. package/dist/skills/business-analysis/scripts/lint-diagram.sh +519 -0
  46. package/dist/skills/business-analysis/scripts/stamp-pages.ps1 +363 -0
  47. package/dist/skills/business-analysis/scripts/stamp-pages.sh +360 -0
  48. package/dist/skills/business-analysis/to-be-design.md +199 -0
  49. package/dist/skills/confluence/SKILL.md +386 -0
  50. package/dist/skills/doc-coauthoring/SKILL.md +295 -0
  51. package/dist/skills/excel-architect/SKILL.macos.md +161 -0
  52. package/dist/skills/excel-architect/SKILL.md +180 -0
  53. package/dist/skills/excel-architect/SKILL.windows.md +61 -0
  54. package/dist/skills/excel-architect/archetypes/01-financial-model-advanced.md +332 -0
  55. package/dist/skills/excel-architect/archetypes/01-financial-model.md +248 -0
  56. package/dist/skills/excel-architect/archetypes/02-data-analysis.md +171 -0
  57. package/dist/skills/excel-architect/archetypes/03-tracking-dashboard.md +160 -0
  58. package/dist/skills/excel-architect/archetypes/04-project-planning.md +193 -0
  59. package/dist/skills/excel-architect/archetypes/05-simple-table.md +111 -0
  60. package/dist/skills/excel-architect/building.md +279 -0
  61. package/dist/skills/excel-architect/create.md +64 -0
  62. package/dist/skills/excel-architect/data-and-formulas.md +186 -0
  63. package/dist/skills/excel-architect/generator.md +272 -0
  64. package/dist/skills/excel-architect/macos/scripts/add-data-validation.applescript +242 -0
  65. package/dist/skills/excel-architect/macos/scripts/append-rows.applescript +310 -0
  66. package/dist/skills/excel-architect/macos/scripts/apply-conditional-format.applescript +565 -0
  67. package/dist/skills/excel-architect/macos/scripts/autofit-columns.applescript +79 -0
  68. package/dist/skills/excel-architect/macos/scripts/benchmark.sh +135 -0
  69. package/dist/skills/excel-architect/macos/scripts/check-compile.sh +30 -0
  70. package/dist/skills/excel-architect/macos/scripts/clear-range.applescript +152 -0
  71. package/dist/skills/excel-architect/macos/scripts/copy-paste.applescript +179 -0
  72. package/dist/skills/excel-architect/macos/scripts/create-chart.applescript +531 -0
  73. package/dist/skills/excel-architect/macos/scripts/create-pivot.applescript +443 -0
  74. package/dist/skills/excel-architect/macos/scripts/create-sheets.applescript +264 -0
  75. package/dist/skills/excel-architect/macos/scripts/create-workbook.applescript +92 -0
  76. package/dist/skills/excel-architect/macos/scripts/delete-chart.applescript +105 -0
  77. package/dist/skills/excel-architect/macos/scripts/delete-sheet.applescript +127 -0
  78. package/dist/skills/excel-architect/macos/scripts/filter-data.applescript +213 -0
  79. package/dist/skills/excel-architect/macos/scripts/find-replace.applescript +238 -0
  80. package/dist/skills/excel-architect/macos/scripts/format-range.applescript +531 -0
  81. package/dist/skills/excel-architect/macos/scripts/freeze-panes.applescript +133 -0
  82. package/dist/skills/excel-architect/macos/scripts/get-current-file.applescript +24 -0
  83. package/dist/skills/excel-architect/macos/scripts/get-sheet-dimensions.applescript +115 -0
  84. package/dist/skills/excel-architect/macos/scripts/health-check.applescript +704 -0
  85. package/dist/skills/excel-architect/macos/scripts/list-open-workbooks.applescript +80 -0
  86. package/dist/skills/excel-architect/macos/scripts/maximize-window.applescript +47 -0
  87. package/dist/skills/excel-architect/macos/scripts/merge-cells.applescript +227 -0
  88. package/dist/skills/excel-architect/macos/scripts/open-workbook.applescript +139 -0
  89. package/dist/skills/excel-architect/macos/scripts/read-range.applescript +267 -0
  90. package/dist/skills/excel-architect/macos/scripts/rename-sheet.applescript +231 -0
  91. package/dist/skills/excel-architect/macos/scripts/select-sheet.applescript +133 -0
  92. package/dist/skills/excel-architect/macos/scripts/set-tab-color.applescript +109 -0
  93. package/dist/skills/excel-architect/macos/scripts/sort-data.applescript +136 -0
  94. package/dist/skills/excel-architect/macos/scripts/undo.applescript +59 -0
  95. package/dist/skills/excel-architect/macos/scripts/workbook-lifecycle.applescript +149 -0
  96. package/dist/skills/excel-architect/macos/scripts/write-formula.applescript +225 -0
  97. package/dist/skills/excel-architect/macos/scripts/write-range.applescript +351 -0
  98. package/dist/skills/excel-architect/reference/api/advanced.md +381 -0
  99. package/dist/skills/excel-architect/reference/api/basic.md +747 -0
  100. package/dist/skills/excel-architect/reference/guides.md +348 -0
  101. package/dist/skills/excel-architect/reference/repair.md +174 -0
  102. package/dist/skills/excel-architect/reference/troubleshooting.md +46 -0
  103. package/dist/skills/excel-architect/scripting.md +266 -0
  104. package/dist/skills/excel-architect/styling-and-features.md +433 -0
  105. package/dist/skills/excel-architect/windows/api/composites.md +337 -0
  106. package/dist/skills/excel-architect/windows/api/scripting.md +139 -0
  107. package/dist/skills/excel-architect/windows/examples/level-1-workflows.md +485 -0
  108. package/dist/skills/excel-architect/windows/examples/level-2-advanced.md +690 -0
  109. package/dist/skills/excel-architect/windows/examples/level-3-scripting.md +337 -0
  110. package/dist/skills/github/SKILL.md +446 -0
  111. package/dist/skills/github/recipes/add-comment.md +85 -0
  112. package/dist/skills/github/recipes/check-pr-status.md +122 -0
  113. package/dist/skills/github/recipes/compare-branches.md +79 -0
  114. package/dist/skills/github/recipes/create-issue.md +103 -0
  115. package/dist/skills/github/recipes/create-pr.md +97 -0
  116. package/dist/skills/github/recipes/get-file-contents.md +76 -0
  117. package/dist/skills/github/recipes/get-last-commit.md +128 -0
  118. package/dist/skills/github/recipes/list-my-open-prs.md +105 -0
  119. package/dist/skills/github/recipes/list-recent-commits.md +84 -0
  120. package/dist/skills/github/recipes/search-issues.md +115 -0
  121. package/dist/skills/google-workspace/SKILL.md +217 -0
  122. package/dist/skills/google-workspace/services/calendar.md +311 -0
  123. package/dist/skills/google-workspace/services/docs.md +426 -0
  124. package/dist/skills/google-workspace/services/drive.md +504 -0
  125. package/dist/skills/google-workspace/services/gmail.md +466 -0
  126. package/dist/skills/google-workspace/services/sheets.md +370 -0
  127. package/dist/skills/internal-comms/SKILL.md +35 -0
  128. package/dist/skills/internal-comms/examples/3p-updates.md +47 -0
  129. package/dist/skills/internal-comms/examples/company-newsletter.md +65 -0
  130. package/dist/skills/internal-comms/examples/faq-answers.md +30 -0
  131. package/dist/skills/internal-comms/examples/general-comms.md +15 -0
  132. package/dist/skills/jira/SKILL.md +397 -0
  133. package/dist/skills/jira/recipes/add-comment.md +123 -0
  134. package/dist/skills/jira/recipes/assign-issue.md +157 -0
  135. package/dist/skills/jira/recipes/create-issue.md +274 -0
  136. package/dist/skills/jira/recipes/get-issue-details.md +154 -0
  137. package/dist/skills/jira/recipes/list-projects.md +151 -0
  138. package/dist/skills/jira/recipes/my-issues.md +180 -0
  139. package/dist/skills/jira/recipes/search-issues.md +215 -0
  140. package/dist/skills/jira/recipes/transition-issue.md +154 -0
  141. package/dist/skills/jira/recipes/troubleshooting.md +387 -0
  142. package/dist/skills/knowledge-base/SKILL.md +289 -0
  143. package/dist/skills/media-tools/SKILL.md +204 -0
  144. package/dist/skills/media-tools/references/encode-runbook.md +24 -0
  145. package/dist/skills/media-tools/references/resolve-binaries.md +81 -0
  146. package/dist/skills/media-tools/scripts/macos/ff-launch.sh +22 -0
  147. package/dist/skills/media-tools/scripts/macos/ff-poll.sh +10 -0
  148. package/dist/skills/media-tools/scripts/windows/ff-launch.ps1 +34 -0
  149. package/dist/skills/media-tools/scripts/windows/ff-poll.ps1 +20 -0
  150. package/dist/skills/office-download/SKILL.md +161 -0
  151. package/dist/skills/outlook-365/SKILL.macos.md +331 -0
  152. package/dist/skills/outlook-365/SKILL.md +171 -0
  153. package/dist/skills/outlook-365/SKILL.windows.md +124 -0
  154. package/dist/skills/outlook-365/api/bulk-email-operations.md +178 -0
  155. package/dist/skills/outlook-365/api/check-availability.md +87 -0
  156. package/dist/skills/outlook-365/api/create-inbox-rule.md +182 -0
  157. package/dist/skills/outlook-365/api/download-attachments.md +149 -0
  158. package/dist/skills/outlook-365/api/find-and-email-contact.md +185 -0
  159. package/dist/skills/outlook-365/api/manage-calendar-events.md +189 -0
  160. package/dist/skills/outlook-365/api/organize-with-folders.md +178 -0
  161. package/dist/skills/outlook-365/api/reply-to-conversation.md +68 -0
  162. package/dist/skills/outlook-365/api/schedule-meeting.md +73 -0
  163. package/dist/skills/outlook-365/api/search-and-read-email.md +93 -0
  164. package/dist/skills/outlook-365/api/send-email-with-attachments.md +94 -0
  165. package/dist/skills/outlook-365/api/send-email.md +396 -0
  166. package/dist/skills/outlook-365/api/set-out-of-office.md +196 -0
  167. package/dist/skills/outlook-365/macos/scripts/bulk-operations.applescript +429 -0
  168. package/dist/skills/outlook-365/macos/scripts/calendar.applescript +642 -0
  169. package/dist/skills/outlook-365/macos/scripts/contacts.applescript +635 -0
  170. package/dist/skills/outlook-365/macos/scripts/helpers.applescript +227 -0
  171. package/dist/skills/outlook-365/macos/scripts/read-emails.applescript +299 -0
  172. package/dist/skills/outlook-365/macos/scripts/search-emails.applescript +339 -0
  173. package/dist/skills/outlook-365/macos/scripts/send-email.applescript +245 -0
  174. package/dist/skills/outlook-365/uia/BASIC_OPERATIONS.md +278 -0
  175. package/dist/skills/outlook-365/uia/CALENDAR_OPERATIONS.md +386 -0
  176. package/dist/skills/outlook-365/uia/COMPOSE_EMAIL.md +426 -0
  177. package/dist/skills/outlook-365/uia/README.md +75 -0
  178. package/dist/skills/outlook-365/windows/com/bulk-operations.ps1 +241 -0
  179. package/dist/skills/outlook-365/windows/com/calendar.ps1 +227 -0
  180. package/dist/skills/outlook-365/windows/com/contacts.ps1 +270 -0
  181. package/dist/skills/outlook-365/windows/com/helpers.ps1 +158 -0
  182. package/dist/skills/outlook-365/windows/com/read-emails.ps1 +115 -0
  183. package/dist/skills/outlook-365/windows/com/search-emails.ps1 +141 -0
  184. package/dist/skills/outlook-365/windows/com/send-email.ps1 +121 -0
  185. package/dist/skills/pdf-architect/SKILL.md +640 -0
  186. package/dist/skills/powerpoint-architect/SKILL.macos.md +271 -0
  187. package/dist/skills/powerpoint-architect/SKILL.md +853 -0
  188. package/dist/skills/powerpoint-architect/SKILL.windows.md +458 -0
  189. package/dist/skills/powerpoint-architect/custom_themes.md +141 -0
  190. package/dist/skills/powerpoint-architect/editing-guide.md +424 -0
  191. package/dist/skills/powerpoint-architect/generator-reference.md +668 -0
  192. package/dist/skills/powerpoint-architect/images-guide.md +207 -0
  193. package/dist/skills/powerpoint-architect/issue-fix-mapping.md +768 -0
  194. package/dist/skills/powerpoint-architect/macos/scripts/add-html-to-slide.applescript +389 -0
  195. package/dist/skills/powerpoint-architect/macos/scripts/add-slide.applescript +255 -0
  196. package/dist/skills/powerpoint-architect/macos/scripts/add-speaker-notes.applescript +132 -0
  197. package/dist/skills/powerpoint-architect/macos/scripts/add-text.applescript +245 -0
  198. package/dist/skills/powerpoint-architect/macos/scripts/apply-slide-layout.applescript +80 -0
  199. package/dist/skills/powerpoint-architect/macos/scripts/apply-theme.applescript +122 -0
  200. package/dist/skills/powerpoint-architect/macos/scripts/autofit-placeholders.applescript +62 -0
  201. package/dist/skills/powerpoint-architect/macos/scripts/close-presentation.applescript +24 -0
  202. package/dist/skills/powerpoint-architect/macos/scripts/copy-slides.applescript +303 -0
  203. package/dist/skills/powerpoint-architect/macos/scripts/create-chart-with-data.applescript +305 -0
  204. package/dist/skills/powerpoint-architect/macos/scripts/create-with-theme.applescript +56 -0
  205. package/dist/skills/powerpoint-architect/macos/scripts/delete-slides.applescript +137 -0
  206. package/dist/skills/powerpoint-architect/macos/scripts/export-presentation.applescript +100 -0
  207. package/dist/skills/powerpoint-architect/macos/scripts/extract-slide-data.applescript +138 -0
  208. package/dist/skills/powerpoint-architect/macos/scripts/format-shape.applescript +192 -0
  209. package/dist/skills/powerpoint-architect/macos/scripts/format-slide-content.applescript +336 -0
  210. package/dist/skills/powerpoint-architect/macos/scripts/get-current-slide-number.applescript +38 -0
  211. package/dist/skills/powerpoint-architect/macos/scripts/get-file-path.applescript +94 -0
  212. package/dist/skills/powerpoint-architect/macos/scripts/get-layout-elements.applescript +141 -0
  213. package/dist/skills/powerpoint-architect/macos/scripts/get-layouts.applescript +58 -0
  214. package/dist/skills/powerpoint-architect/macos/scripts/get-opened-files.applescript +50 -0
  215. package/dist/skills/powerpoint-architect/macos/scripts/get-presentation-info.applescript +150 -0
  216. package/dist/skills/powerpoint-architect/macos/scripts/get-recent-files.applescript +68 -0
  217. package/dist/skills/powerpoint-architect/macos/scripts/get-slide-count.applescript +37 -0
  218. package/dist/skills/powerpoint-architect/macos/scripts/get-slide-info.applescript +105 -0
  219. package/dist/skills/powerpoint-architect/macos/scripts/health-check.applescript +690 -0
  220. package/dist/skills/powerpoint-architect/macos/scripts/insert-shape.applescript +188 -0
  221. package/dist/skills/powerpoint-architect/macos/scripts/insert-table.applescript +112 -0
  222. package/dist/skills/powerpoint-architect/macos/scripts/insert-text-box.applescript +225 -0
  223. package/dist/skills/powerpoint-architect/macos/scripts/manage-image.applescript +486 -0
  224. package/dist/skills/powerpoint-architect/macos/scripts/maximize-window.applescript +48 -0
  225. package/dist/skills/powerpoint-architect/macos/scripts/navigate-to-slide.applescript +84 -0
  226. package/dist/skills/powerpoint-architect/macos/scripts/open-presentation.applescript +38 -0
  227. package/dist/skills/powerpoint-architect/macos/scripts/reorder-slides.applescript +106 -0
  228. package/dist/skills/powerpoint-architect/macos/scripts/replace-text.applescript +193 -0
  229. package/dist/skills/powerpoint-architect/macos/scripts/save-presentation.applescript +54 -0
  230. package/dist/skills/powerpoint-architect/macos/scripts/set-animation.applescript +203 -0
  231. package/dist/skills/powerpoint-architect/macos/scripts/set-transition.applescript +130 -0
  232. package/dist/skills/powerpoint-architect/visual-styling-guide.md +206 -0
  233. package/dist/skills/powerpoint-architect/windows/api/advanced.md +317 -0
  234. package/dist/skills/powerpoint-architect/windows/api/basic.md +392 -0
  235. package/dist/skills/powerpoint-architect/windows/examples/10-slide-presentation.md +140 -0
  236. package/dist/skills/powerpoint-architect/windows/examples/custom-theme-workflow.md +219 -0
  237. package/dist/skills/powerpoint-architect/windows/examples/level-1-workflows.md +531 -0
  238. package/dist/skills/powerpoint-architect/windows/examples/level-2-scripting.md +239 -0
  239. package/dist/skills/powerpoint-architect/windows/scripts/create-with-theme.ps1 +81 -0
  240. package/dist/skills/project-task-list/SKILL.md +174 -0
  241. package/dist/skills/slack-operation/SKILL.md +97 -0
  242. package/dist/skills/slack-operation/api/advanced-api/GUIDE.md +277 -0
  243. package/dist/skills/slack-operation/api/search-and-read/EXAMPLE.md +75 -0
  244. package/dist/skills/slack-operation/api/search-and-read/GUIDE.md +108 -0
  245. package/dist/skills/slack-operation/api/send-message/EXAMPLE.md +112 -0
  246. package/dist/skills/slack-operation/api/send-message/GUIDE.md +63 -0
  247. package/dist/skills/slack-operation/api/share-files/EXAMPLE.md +94 -0
  248. package/dist/skills/slack-operation/api/share-files/GUIDE.md +63 -0
  249. package/dist/skills/slack-operation/ui/desktop-automation/GUIDE.md +55 -0
  250. package/dist/skills/system-diagnostics/SKILL.md +263 -0
  251. package/dist/skills/teams-operation/SKILL.md +79 -0
  252. package/dist/skills/teams-operation/api/advanced-api/GUIDE.md +234 -0
  253. package/dist/skills/teams-operation/api/meetings/EXAMPLE.md +63 -0
  254. package/dist/skills/teams-operation/api/meetings/GUIDE.md +52 -0
  255. package/dist/skills/teams-operation/api/search-and-read/EXAMPLE.md +72 -0
  256. package/dist/skills/teams-operation/api/search-and-read/GUIDE.md +54 -0
  257. package/dist/skills/teams-operation/api/send-message/EXAMPLE.md +92 -0
  258. package/dist/skills/teams-operation/api/send-message/GUIDE.md +60 -0
  259. package/dist/skills/teams-operation/ui/desktop-automation/GUIDE.md +66 -0
  260. package/dist/skills/transcribe-media/SKILL.md +142 -0
  261. package/dist/skills/uipath-integrations/SKILL.md +370 -0
  262. package/dist/skills/uipath-integrations/reference/connectors.md +331 -0
  263. package/dist/skills/uipath-integrations/reference/endpoints.md +220 -0
  264. package/dist/skills/uipath-integrations/reference/errors.md +211 -0
  265. package/dist/skills/uipath-integrations/reference/metadata.md +317 -0
  266. package/dist/skills/uipath-integrations/reference/operations.md +297 -0
  267. package/dist/skills/uipath-orchestrator/SKILL.md +312 -0
  268. package/dist/skills/uipath-orchestrator/recipes/assets.md +282 -0
  269. package/dist/skills/uipath-orchestrator/recipes/audit-logs.md +215 -0
  270. package/dist/skills/uipath-orchestrator/recipes/buckets.md +205 -0
  271. package/dist/skills/uipath-orchestrator/recipes/jobs.md +286 -0
  272. package/dist/skills/uipath-orchestrator/recipes/list-folders.md +207 -0
  273. package/dist/skills/uipath-orchestrator/recipes/queue-items.md +292 -0
  274. package/dist/skills/uipath-orchestrator/recipes/queues.md +232 -0
  275. package/dist/skills/uipath-orchestrator/recipes/releases.md +212 -0
  276. package/dist/skills/uipath-orchestrator/recipes/robots-sessions.md +274 -0
  277. package/dist/skills/uipath-orchestrator/recipes/schedules.md +280 -0
  278. package/dist/skills/uipath-orchestrator/reference/endpoints.md +85 -0
  279. package/dist/skills/uipath-orchestrator/reference/schemas.md +153 -0
  280. package/dist/skills/uipath-taskautomation/SKILL.md +310 -0
  281. package/dist/skills/uipath-taskautomation/assets/CodedWorkflow.template.cs +98 -0
  282. package/dist/skills/uipath-taskautomation/assets/ExampleWorkflow.cs +146 -0
  283. package/dist/skills/uipath-taskautomation/references/action-activity-map.json +32 -0
  284. package/dist/skills/uipath-taskautomation/references/action-activity-map.md +44 -0
  285. package/dist/skills/uipath-taskautomation/references/app-profiles.md +63 -0
  286. package/dist/skills/uipath-taskautomation/references/automation-spec.md +88 -0
  287. package/dist/skills/uipath-taskautomation/references/coded-reference/assets/before-after-hooks-template.md +115 -0
  288. package/dist/skills/uipath-taskautomation/references/coded-reference/assets/codedworkflow-template.md +186 -0
  289. package/dist/skills/uipath-taskautomation/references/coded-reference/assets/helper-utility-template.md +22 -0
  290. package/dist/skills/uipath-taskautomation/references/coded-reference/assets/json-template.md +91 -0
  291. package/dist/skills/uipath-taskautomation/references/coded-reference/assets/testcase-template.md +92 -0
  292. package/dist/skills/uipath-taskautomation/references/coded-reference/cli-reference.md +249 -0
  293. package/dist/skills/uipath-taskautomation/references/coded-reference/coded/codedworkflow-reference.md +275 -0
  294. package/dist/skills/uipath-taskautomation/references/coded-reference/coded/coding-guidelines.md +229 -0
  295. package/dist/skills/uipath-taskautomation/references/coded-reference/coded/inspect-package-guide.md +81 -0
  296. package/dist/skills/uipath-taskautomation/references/coded-reference/coded/integration-service-guide.md +507 -0
  297. package/dist/skills/uipath-taskautomation/references/coded-reference/coded/operations-guide.md +410 -0
  298. package/dist/skills/uipath-taskautomation/references/coded-reference/coded/third-party-packages-guide.md +67 -0
  299. package/dist/skills/uipath-taskautomation/references/coded-reference/data-manipulation-guide.md +110 -0
  300. package/dist/skills/uipath-taskautomation/references/coded-reference/environment-setup.md +194 -0
  301. package/dist/skills/uipath-taskautomation/references/coded-reference/error-handling-guide.md +195 -0
  302. package/dist/skills/uipath-taskautomation/references/coded-reference/powershell-interop-guide.md +57 -0
  303. package/dist/skills/uipath-taskautomation/references/coded-reference/project-structure-guide.md +114 -0
  304. package/dist/skills/uipath-taskautomation/references/coded-reference/project-structure.md +126 -0
  305. package/dist/skills/uipath-taskautomation/references/coded-reference/uia-elements-interaction-guide.md +109 -0
  306. package/dist/skills/uipath-taskautomation/references/coded-reference/validation-guide.md +147 -0
  307. package/dist/skills/uipath-taskautomation/references/coded-workflow-authoring.md +219 -0
  308. package/dist/skills/uipath-taskautomation/references/profiling-output.md +80 -0
  309. package/dist/skills/uipath-taskautomation/references/reliability-guide.md +83 -0
  310. package/dist/skills/uipath-taskautomation/references/task-automation-cheatsheet.md +272 -0
  311. package/dist/skills/uipath-taskautomation/references/template-preflight.md +17 -0
  312. package/dist/skills/uipath-workflow-documenter/SKILL.md +430 -0
  313. package/dist/skills/uipath-workflow-documenter/layouts/pdd-template.md +265 -0
  314. package/dist/skills/uipath-workflow-documenter/routines/from-orchestrator.md +11 -0
  315. package/dist/skills/uipath-workflow-documenter/routines/from-workflow.md +11 -0
  316. package/dist/skills/word-architect/SKILL.macos.md +147 -0
  317. package/dist/skills/word-architect/SKILL.md +502 -0
  318. package/dist/skills/word-architect/SKILL.windows.md +55 -0
  319. package/dist/skills/word-architect/api/advanced.md +522 -0
  320. package/dist/skills/word-architect/api/basic.md +378 -0
  321. package/dist/skills/word-architect/api/expert.md +302 -0
  322. package/dist/skills/word-architect/generation.md +308 -0
  323. package/dist/skills/word-architect/layouts/01-professional.md +168 -0
  324. package/dist/skills/word-architect/layouts/02-educational-kids.md +354 -0
  325. package/dist/skills/word-architect/layouts/03-academic.md +83 -0
  326. package/dist/skills/word-architect/layouts/04-creative.md +242 -0
  327. package/dist/skills/word-architect/layouts/05-operational.md +94 -0
  328. package/dist/skills/word-architect/macos/scripts/apply-heading-style.applescript +215 -0
  329. package/dist/skills/word-architect/macos/scripts/apply-style.applescript +272 -0
  330. package/dist/skills/word-architect/macos/scripts/autofit-tables.applescript +53 -0
  331. package/dist/skills/word-architect/macos/scripts/close-document.applescript +287 -0
  332. package/dist/skills/word-architect/macos/scripts/create-chart-with-data.applescript +379 -0
  333. package/dist/skills/word-architect/macos/scripts/create-chart.applescript +191 -0
  334. package/dist/skills/word-architect/macos/scripts/delete-selection.applescript +223 -0
  335. package/dist/skills/word-architect/macos/scripts/export-document.applescript +167 -0
  336. package/dist/skills/word-architect/macos/scripts/extract-table.applescript +168 -0
  337. package/dist/skills/word-architect/macos/scripts/find-by-style.applescript +173 -0
  338. package/dist/skills/word-architect/macos/scripts/find-text.applescript +199 -0
  339. package/dist/skills/word-architect/macos/scripts/format-table.applescript +234 -0
  340. package/dist/skills/word-architect/macos/scripts/format-text.applescript +431 -0
  341. package/dist/skills/word-architect/macos/scripts/get-document-properties.applescript +95 -0
  342. package/dist/skills/word-architect/macos/scripts/get-document-structure.applescript +371 -0
  343. package/dist/skills/word-architect/macos/scripts/get-header-footer-text.applescript +106 -0
  344. package/dist/skills/word-architect/macos/scripts/get-images.applescript +166 -0
  345. package/dist/skills/word-architect/macos/scripts/get-opened-files.applescript +103 -0
  346. package/dist/skills/word-architect/macos/scripts/get-paragraph-bounds.applescript +133 -0
  347. package/dist/skills/word-architect/macos/scripts/get-paragraph-format.applescript +134 -0
  348. package/dist/skills/word-architect/macos/scripts/get-recent-files.applescript +82 -0
  349. package/dist/skills/word-architect/macos/scripts/get-styled-text.applescript +256 -0
  350. package/dist/skills/word-architect/macos/scripts/get-tables.applescript +126 -0
  351. package/dist/skills/word-architect/macos/scripts/get-text-formatting.applescript +224 -0
  352. package/dist/skills/word-architect/macos/scripts/get-text.applescript +383 -0
  353. package/dist/skills/word-architect/macos/scripts/get-theme-colors.applescript +123 -0
  354. package/dist/skills/word-architect/macos/scripts/health-check.applescript +606 -0
  355. package/dist/skills/word-architect/macos/scripts/insert-cover-page.applescript +77 -0
  356. package/dist/skills/word-architect/macos/scripts/insert-header-footer.applescript +87 -0
  357. package/dist/skills/word-architect/macos/scripts/insert-horizontal-line.applescript +112 -0
  358. package/dist/skills/word-architect/macos/scripts/insert-html.applescript +440 -0
  359. package/dist/skills/word-architect/macos/scripts/insert-hyperlink.applescript +191 -0
  360. package/dist/skills/word-architect/macos/scripts/insert-image.applescript +320 -0
  361. package/dist/skills/word-architect/macos/scripts/insert-list.applescript +317 -0
  362. package/dist/skills/word-architect/macos/scripts/insert-pagebreak.applescript +181 -0
  363. package/dist/skills/word-architect/macos/scripts/insert-smartart.applescript +104 -0
  364. package/dist/skills/word-architect/macos/scripts/insert-table.applescript +238 -0
  365. package/dist/skills/word-architect/macos/scripts/insert-text.applescript +677 -0
  366. package/dist/skills/word-architect/macos/scripts/insert-textbox.applescript +261 -0
  367. package/dist/skills/word-architect/macos/scripts/maximize-window.applescript +67 -0
  368. package/dist/skills/word-architect/macos/scripts/normalize-formatting.applescript +56 -0
  369. package/dist/skills/word-architect/macos/scripts/open-document.applescript +222 -0
  370. package/dist/skills/word-architect/macos/scripts/replace-text.applescript +390 -0
  371. package/dist/skills/word-architect/macos/scripts/save-document.applescript +230 -0
  372. package/dist/skills/word-architect/macos/scripts/select-range.applescript +142 -0
  373. package/dist/skills/word-architect/macos/scripts/set-document-properties.applescript +195 -0
  374. package/dist/skills/word-architect/macos/scripts/set-page-layout.applescript +273 -0
  375. package/dist/skills/word-architect/macos/scripts/set-theme-colors.applescript +264 -0
  376. package/dist/skills/word-architect/macos/scripts/undo-redo.applescript +61 -0
  377. package/dist/skills/word-architect/macos/scripts/update-toc.applescript +112 -0
  378. package/dist/skills/word-architect/reference/formatting.md +119 -0
  379. package/dist/skills/word-architect/reference/html-layouts/01-executive-summary-box.md +36 -0
  380. package/dist/skills/word-architect/reference/html-layouts/02-kpi-summary-table.md +68 -0
  381. package/dist/skills/word-architect/reference/html-layouts/03-comparison-table.md +63 -0
  382. package/dist/skills/word-architect/reference/html-layouts/04-pros-cons-table.md +86 -0
  383. package/dist/skills/word-architect/reference/html-layouts/05-timeline-table.md +114 -0
  384. package/dist/skills/word-architect/reference/html-layouts/06-raci-matrix.md +95 -0
  385. package/dist/skills/word-architect/reference/html-layouts/07-data-table-alternating.md +84 -0
  386. package/dist/skills/word-architect/reference/html-layouts/08-callout-box.md +102 -0
  387. package/dist/skills/word-architect/reference/html-layouts/09-vertical-milestone.md +100 -0
  388. package/dist/skills/word-architect/reference/quality-assurance.md +102 -0
  389. package/dist/skills/word-architect/reference/tables.md +62 -0
  390. package/dist/skills/word-architect/reference/tracked-changes.md +34 -0
  391. package/dist/skills/word-architect/reference/uia-fallback.md +231 -0
  392. package/dist/skills/word-architect/reference/visual-elements.md +82 -0
  393. package/dist/skills/word-architect/windows/scripts/apply-heading-style.ps1 +190 -0
  394. package/dist/skills/word-architect/windows/scripts/autofit-tables.ps1 +64 -0
  395. package/dist/skills/word-architect/windows/scripts/create-chart-with-data.ps1 +133 -0
  396. package/dist/skills/word-architect/windows/scripts/create-chart.ps1 +73 -0
  397. package/dist/skills/word-architect/windows/scripts/export-document.ps1 +86 -0
  398. package/dist/skills/word-architect/windows/scripts/get-current-file.ps1 +27 -0
  399. package/dist/skills/word-architect/windows/scripts/insert-cover-page.ps1 +79 -0
  400. package/dist/skills/word-architect/windows/scripts/insert-horizontal-line.ps1 +74 -0
  401. package/dist/skills/word-architect/windows/scripts/insert-image.ps1 +98 -0
  402. package/dist/skills/word-architect/windows/scripts/insert-smartart.ps1 +118 -0
  403. package/dist/skills/word-architect/windows/scripts/insert-text-box.ps1 +90 -0
  404. package/dist/skills/word-architect/windows/scripts/normalize-formatting.ps1 +63 -0
  405. package/package.json +5 -4
@@ -0,0 +1,606 @@
1
+ #!/usr/bin/osascript
2
+ (*
3
+ * Word Health Check
4
+ * Comprehensive document validation for Word on macOS.
5
+ *
6
+ * Usage: osascript health-check.applescript
7
+ *
8
+ * Checks performed:
9
+ * Structure: heading hierarchy (skipped levels), missing headings, excessive depth
10
+ * Text: excessive empty paragraphs, very long paragraphs, short orphan paragraphs
11
+ * Styles: font consistency (>3 body fonts), font size consistency
12
+ * Tables: empty tables, tables missing header row formatting, empty cells
13
+ * Hyperlinks: empty address, empty display text
14
+ * Images: oversized images (>page width), very small images
15
+ * Formatting: inconsistent paragraph spacing, mixed list styles
16
+ *
17
+ * Returns JSON with:
18
+ * - Document metadata (name, path, page count, word count, paragraph count)
19
+ * - Issues array with severity, category, message, location, recommendation
20
+ * - Health flags and summary
21
+ *
22
+ * Note: Uses sampling for large documents to keep execution under 10 seconds.
23
+ *)
24
+
25
+ -- ================================================================
26
+ -- Helpers
27
+ -- ================================================================
28
+
29
+ on replaceText(sourceText, searchStr, replaceStr)
30
+ if sourceText is missing value then return ""
31
+ try
32
+ set sourceText to sourceText as text
33
+ on error
34
+ return ""
35
+ end try
36
+ set AppleScript's text item delimiters to searchStr
37
+ set theItems to every text item of sourceText
38
+ set AppleScript's text item delimiters to replaceStr
39
+ set sourceText to theItems as text
40
+ set AppleScript's text item delimiters to ""
41
+ return sourceText
42
+ end replaceText
43
+
44
+ on escapeJSON(str)
45
+ if str is missing value then return ""
46
+ try
47
+ set str to str as text
48
+ on error
49
+ return ""
50
+ end try
51
+ set str to my replaceText(str, "\\", "\\\\")
52
+ set str to my replaceText(str, "\"", "\\\"")
53
+ set str to my replaceText(str, return, "\\n")
54
+ set str to my replaceText(str, linefeed, "\\n")
55
+ set str to my replaceText(str, tab, "\\t")
56
+ return str
57
+ end escapeJSON
58
+
59
+ on minVal(a, b)
60
+ if a < b then return a
61
+ return b
62
+ end minVal
63
+
64
+ -- Truncate text for display in issue messages
65
+ on truncateText(txt, maxLen)
66
+ if txt is missing value then return ""
67
+ try
68
+ set txt to txt as text
69
+ on error
70
+ return ""
71
+ end try
72
+ if (length of txt) > maxLen then
73
+ return (text 1 thru maxLen of txt) & "..."
74
+ end if
75
+ return txt
76
+ end truncateText
77
+
78
+ -- ================================================================
79
+ -- Main
80
+ -- ================================================================
81
+
82
+ on run argv
83
+ -- Check if Word is running
84
+ set wordRunning to false
85
+ try
86
+ tell application "System Events"
87
+ set wordRunning to (exists (processes where name is "Microsoft Word"))
88
+ end tell
89
+ end try
90
+
91
+ if not wordRunning then
92
+ return "{\"success\":true,\"running\":false,\"hasDocument\":false,\"isHealthy\":true,\"issues\":[],\"healthSummary\":\"Word is not running.\"}"
93
+ end if
94
+
95
+ tell application "Microsoft Word"
96
+ if not (exists active document) then
97
+ return "{\"success\":true,\"running\":true,\"hasDocument\":false,\"isHealthy\":true,\"issues\":[],\"healthSummary\":\"No document is open in Word.\"}"
98
+ end if
99
+
100
+ try
101
+ set doc to active document
102
+ set docName to name of doc
103
+
104
+ -- Get document path
105
+ set docPath to ""
106
+ try
107
+ set docPath to full name of doc
108
+ if docPath does not contain "/" and docPath does not contain ":" then
109
+ set docPath to ""
110
+ end if
111
+ end try
112
+
113
+ -- Document metadata
114
+ set paraCount to count of paragraphs of doc
115
+ set docWordCount to 0
116
+ try
117
+ set docWordCount to count of words of doc
118
+ end try
119
+ set pageCount to 0
120
+ try
121
+ set pageCount to compute statistics doc statistic statistic pages
122
+ end try
123
+ set tableCount to count of tables of doc
124
+ set hyperlinkCount to count of hyperlink objects of doc
125
+ set imageCount to count of inline pictures of doc
126
+
127
+ -- Page dimensions for image checks
128
+ set pageW to 0
129
+ try
130
+ set ps to page setup of doc
131
+ set pageW to page width of ps
132
+ end try
133
+
134
+ -- ============================================================
135
+ -- Issues collection
136
+ -- ============================================================
137
+ set issuesJSON to ""
138
+ set issueCount to 0
139
+ set maxIssues to 50
140
+
141
+ -- Helper: append an issue
142
+ -- We build JSON inline to avoid handler scope issues
143
+
144
+ -- ============================================================
145
+ -- 1. HEADING HIERARCHY CHECK
146
+ -- Scan paragraphs for heading styles, check for skipped levels
147
+ -- ============================================================
148
+ set lastHeadingLevel to 0
149
+ set headingCount to 0
150
+ set headingLevels to {}
151
+ set scanLimit to my minVal(paraCount, 200)
152
+
153
+ repeat with i from 1 to scanLimit
154
+ if issueCount ≥ maxIssues then exit repeat
155
+ try
156
+ set p to paragraph i of doc
157
+ set styleName to name local of style of text object of p
158
+
159
+ -- Detect heading level from style name
160
+ set headingLevel to 0
161
+ if styleName is "Heading 1" or styleName is "heading 1" then
162
+ set headingLevel to 1
163
+ else if styleName is "Heading 2" or styleName is "heading 2" then
164
+ set headingLevel to 2
165
+ else if styleName is "Heading 3" or styleName is "heading 3" then
166
+ set headingLevel to 3
167
+ else if styleName is "Heading 4" or styleName is "heading 4" then
168
+ set headingLevel to 4
169
+ else if styleName is "Heading 5" or styleName is "heading 5" then
170
+ set headingLevel to 5
171
+ else if styleName is "Heading 6" or styleName is "heading 6" then
172
+ set headingLevel to 6
173
+ end if
174
+
175
+ if headingLevel > 0 then
176
+ set headingCount to headingCount + 1
177
+ if headingLevel is not in headingLevels then
178
+ set end of headingLevels to headingLevel
179
+ end if
180
+
181
+ -- Check for skipped levels (e.g., H1 → H3 without H2)
182
+ if lastHeadingLevel > 0 and headingLevel > (lastHeadingLevel + 1) then
183
+ set pText to my truncateText(content of text object of p, 60)
184
+ if issueCount > 0 then set issuesJSON to issuesJSON & ","
185
+ set issuesJSON to issuesJSON & "{\"severity\":\"warning\",\"category\":\"structure\""
186
+ set issuesJSON to issuesJSON & ",\"message\":\"Heading level skipped: jumped from H" & lastHeadingLevel & " to H" & headingLevel & "\""
187
+ set issuesJSON to issuesJSON & ",\"location\":\"Paragraph " & i & ": " & my escapeJSON(pText) & "\""
188
+ set issuesJSON to issuesJSON & ",\"recommendation\":\"Add intermediate heading level H" & (lastHeadingLevel + 1) & " or adjust this heading level\"}"
189
+ set issueCount to issueCount + 1
190
+ end if
191
+
192
+ -- Check for first heading not being H1
193
+ if headingCount is 1 and headingLevel > 1 then
194
+ set pText to my truncateText(content of text object of p, 60)
195
+ if issueCount > 0 then set issuesJSON to issuesJSON & ","
196
+ set issuesJSON to issuesJSON & "{\"severity\":\"info\",\"category\":\"structure\""
197
+ set issuesJSON to issuesJSON & ",\"message\":\"Document starts with H" & headingLevel & " instead of H1\""
198
+ set issuesJSON to issuesJSON & ",\"location\":\"Paragraph " & i & ": " & my escapeJSON(pText) & "\""
199
+ set issuesJSON to issuesJSON & ",\"recommendation\":\"Consider starting document structure with a Heading 1\"}"
200
+ set issueCount to issueCount + 1
201
+ end if
202
+
203
+ set lastHeadingLevel to headingLevel
204
+ end if
205
+ end try
206
+ end repeat
207
+
208
+ -- Flag if document has content but no headings at all
209
+ if headingCount is 0 and paraCount > 10 then
210
+ if issueCount > 0 then set issuesJSON to issuesJSON & ","
211
+ set issuesJSON to issuesJSON & "{\"severity\":\"info\",\"category\":\"structure\""
212
+ set issuesJSON to issuesJSON & ",\"message\":\"Document has " & paraCount & " paragraphs but no heading styles applied\""
213
+ set issuesJSON to issuesJSON & ",\"location\":\"Entire document\""
214
+ set issuesJSON to issuesJSON & ",\"recommendation\":\"Apply Heading 1, 2, 3 styles to create document structure\"}"
215
+ set issueCount to issueCount + 1
216
+ end if
217
+
218
+ -- ============================================================
219
+ -- 2. EMPTY PARAGRAPHS CHECK
220
+ -- Detect excessive consecutive empty paragraphs (>2)
221
+ -- ============================================================
222
+ set consecutiveEmpty to 0
223
+ set emptyRunStart to 0
224
+ set totalEmptyRuns to 0
225
+
226
+ repeat with i from 1 to scanLimit
227
+ if issueCount ≥ maxIssues then exit repeat
228
+ try
229
+ set pContent to content of text object of paragraph i of doc
230
+ -- Empty paragraph = just a paragraph mark (¶) which is character id 13
231
+ set isEmptyPara to false
232
+ if pContent is return or pContent is linefeed or pContent is (return & linefeed) then
233
+ set isEmptyPara to true
234
+ else if (length of pContent) ≤ 1 then
235
+ set isEmptyPara to true
236
+ end if
237
+
238
+ if isEmptyPara then
239
+ if consecutiveEmpty is 0 then set emptyRunStart to i
240
+ set consecutiveEmpty to consecutiveEmpty + 1
241
+ else
242
+ if consecutiveEmpty > 2 then
243
+ set totalEmptyRuns to totalEmptyRuns + 1
244
+ if totalEmptyRuns ≤ 3 then
245
+ if issueCount > 0 then set issuesJSON to issuesJSON & ","
246
+ set issuesJSON to issuesJSON & "{\"severity\":\"warning\",\"category\":\"text\""
247
+ set issuesJSON to issuesJSON & ",\"message\":\"" & consecutiveEmpty & " consecutive empty paragraphs\""
248
+ set issuesJSON to issuesJSON & ",\"location\":\"Paragraphs " & emptyRunStart & "-" & (emptyRunStart + consecutiveEmpty - 1) & "\""
249
+ set issuesJSON to issuesJSON & ",\"recommendation\":\"Remove extra blank paragraphs - use paragraph spacing instead\"}"
250
+ set issueCount to issueCount + 1
251
+ end if
252
+ end if
253
+ set consecutiveEmpty to 0
254
+ end if
255
+ end try
256
+ end repeat
257
+ -- Check trailing empty run
258
+ if consecutiveEmpty > 2 and totalEmptyRuns < 3 and issueCount < maxIssues then
259
+ if issueCount > 0 then set issuesJSON to issuesJSON & ","
260
+ set issuesJSON to issuesJSON & "{\"severity\":\"warning\",\"category\":\"text\""
261
+ set issuesJSON to issuesJSON & ",\"message\":\"" & consecutiveEmpty & " consecutive empty paragraphs at end of document\""
262
+ set issuesJSON to issuesJSON & ",\"location\":\"Paragraphs " & emptyRunStart & "-" & (emptyRunStart + consecutiveEmpty - 1) & "\""
263
+ set issuesJSON to issuesJSON & ",\"recommendation\":\"Remove trailing blank paragraphs\"}"
264
+ set issueCount to issueCount + 1
265
+ end if
266
+
267
+ -- ============================================================
268
+ -- 3. FONT CONSISTENCY CHECK
269
+ -- Sample paragraphs to detect too many different body fonts
270
+ -- ============================================================
271
+ set bodyFontNames to {}
272
+ set bodyFontSizes to {}
273
+ set fontSampleStep to 1
274
+ if paraCount > 50 then set fontSampleStep to (paraCount div 50)
275
+
276
+ repeat with i from 1 to paraCount by fontSampleStep
277
+ if (count of bodyFontNames) > 10 then exit repeat
278
+ try
279
+ set p to paragraph i of doc
280
+ set styleName to name local of style of text object of p
281
+
282
+ -- Only check body text (not headings)
283
+ if styleName does not start with "Heading" and styleName does not start with "heading" then
284
+ set pContent to content of text object of p
285
+ if (length of pContent) > 1 then
286
+ set fName to ""
287
+ set fSize to 0
288
+ try
289
+ set fObj to font object of text object of p
290
+ set fName to name of fObj
291
+ set fSize to font size of fObj
292
+ end try
293
+ if fName is not "" and fName is not missing value then
294
+ if fName is not in bodyFontNames then
295
+ set end of bodyFontNames to fName
296
+ end if
297
+ end if
298
+ if fSize > 0 and fSize is not missing value then
299
+ set fSizeStr to (fSize as integer) as string
300
+ if fSizeStr is not in bodyFontSizes then
301
+ set end of bodyFontSizes to fSizeStr
302
+ end if
303
+ end if
304
+ end if
305
+ end if
306
+ end try
307
+ end repeat
308
+
309
+ if (count of bodyFontNames) > 3 and issueCount < maxIssues then
310
+ set fontListStr to ""
311
+ repeat with f from 1 to my minVal((count of bodyFontNames), 5)
312
+ if f > 1 then set fontListStr to fontListStr & ", "
313
+ set fontListStr to fontListStr & (item f of bodyFontNames)
314
+ end repeat
315
+ if issueCount > 0 then set issuesJSON to issuesJSON & ","
316
+ set issuesJSON to issuesJSON & "{\"severity\":\"warning\",\"category\":\"formatting\""
317
+ set issuesJSON to issuesJSON & ",\"message\":\"Document uses " & (count of bodyFontNames) & " different body fonts: " & my escapeJSON(fontListStr) & "\""
318
+ set issuesJSON to issuesJSON & ",\"location\":\"Body text throughout document\""
319
+ set issuesJSON to issuesJSON & ",\"recommendation\":\"Standardize on 1-2 fonts for body text for visual consistency\"}"
320
+ set issueCount to issueCount + 1
321
+ end if
322
+
323
+ if (count of bodyFontSizes) > 3 and issueCount < maxIssues then
324
+ set sizeListStr to ""
325
+ repeat with s from 1 to my minVal((count of bodyFontSizes), 5)
326
+ if s > 1 then set sizeListStr to sizeListStr & ", "
327
+ set sizeListStr to sizeListStr & (item s of bodyFontSizes) & "pt"
328
+ end repeat
329
+ if issueCount > 0 then set issuesJSON to issuesJSON & ","
330
+ set issuesJSON to issuesJSON & "{\"severity\":\"info\",\"category\":\"formatting\""
331
+ set issuesJSON to issuesJSON & ",\"message\":\"Document uses " & (count of bodyFontSizes) & " different body font sizes: " & my escapeJSON(sizeListStr) & "\""
332
+ set issuesJSON to issuesJSON & ",\"location\":\"Body text throughout document\""
333
+ set issuesJSON to issuesJSON & ",\"recommendation\":\"Consider standardizing body text font sizes for consistency\"}"
334
+ set issueCount to issueCount + 1
335
+ end if
336
+
337
+ -- ============================================================
338
+ -- 4. TABLE CHECKS
339
+ -- Empty tables, missing header formatting, empty cells
340
+ -- ============================================================
341
+ if tableCount > 0 then
342
+ set tableCheckLimit to my minVal(tableCount, 10)
343
+ repeat with t from 1 to tableCheckLimit
344
+ if issueCount ≥ maxIssues then exit repeat
345
+ try
346
+ set tbl to table t of doc
347
+ set tblRows to count of rows of tbl
348
+ set tblCols to count of columns of tbl
349
+
350
+ -- Empty table check
351
+ if tblRows ≤ 1 and tblCols ≤ 1 then
352
+ if issueCount > 0 then set issuesJSON to issuesJSON & ","
353
+ set issuesJSON to issuesJSON & "{\"severity\":\"warning\",\"category\":\"tables\""
354
+ set issuesJSON to issuesJSON & ",\"message\":\"Table " & t & " appears empty (1x1)\""
355
+ set issuesJSON to issuesJSON & ",\"location\":\"Table " & t & "\""
356
+ set issuesJSON to issuesJSON & ",\"recommendation\":\"Remove empty table or add content\"}"
357
+ set issueCount to issueCount + 1
358
+ else
359
+ -- Check header row formatting (first row should be bold)
360
+ set headerBoldCount to 0
361
+ set headerCheckCols to my minVal(tblCols, 6)
362
+ repeat with c from 1 to headerCheckCols
363
+ try
364
+ set cellRef to cell c of row 1 of tbl
365
+ if bold of font object of text object of cellRef then
366
+ set headerBoldCount to headerBoldCount + 1
367
+ end if
368
+ end try
369
+ end repeat
370
+
371
+ if tblRows > 1 and headerBoldCount is 0 and issueCount < maxIssues then
372
+ if issueCount > 0 then set issuesJSON to issuesJSON & ","
373
+ set issuesJSON to issuesJSON & "{\"severity\":\"info\",\"category\":\"tables\""
374
+ set issuesJSON to issuesJSON & ",\"message\":\"Table " & t & " (" & tblRows & "x" & tblCols & ") has no bold header row\""
375
+ set issuesJSON to issuesJSON & ",\"location\":\"Table " & t & ", row 1\""
376
+ set issuesJSON to issuesJSON & ",\"recommendation\":\"Bold the first row to clearly identify column headers\"}"
377
+ set issueCount to issueCount + 1
378
+ end if
379
+
380
+ -- Sample cells for empty content (check first 5 rows × 5 cols)
381
+ set emptyCellCount to 0
382
+ set sampleRows to my minVal(tblRows, 5)
383
+ set sampleCols to my minVal(tblCols, 5)
384
+ repeat with r from 1 to sampleRows
385
+ repeat with c from 1 to sampleCols
386
+ try
387
+ set cellContent to content of text object of cell c of row r of tbl
388
+ if cellContent is return or cellContent is "" or (length of cellContent) ≤ 1 then
389
+ set emptyCellCount to emptyCellCount + 1
390
+ end if
391
+ end try
392
+ end repeat
393
+ end repeat
394
+
395
+ set totalSampled to sampleRows * sampleCols
396
+ if totalSampled > 0 and emptyCellCount > (totalSampled / 2) and issueCount < maxIssues then
397
+ if issueCount > 0 then set issuesJSON to issuesJSON & ","
398
+ set issuesJSON to issuesJSON & "{\"severity\":\"warning\",\"category\":\"tables\""
399
+ set issuesJSON to issuesJSON & ",\"message\":\"Table " & t & " has " & emptyCellCount & " empty cells out of " & totalSampled & " sampled\""
400
+ set issuesJSON to issuesJSON & ",\"location\":\"Table " & t & " (" & tblRows & "x" & tblCols & ")\""
401
+ set issuesJSON to issuesJSON & ",\"recommendation\":\"Fill empty cells with content or 'N/A', or remove unnecessary rows/columns\"}"
402
+ set issueCount to issueCount + 1
403
+ end if
404
+ end if
405
+ end try
406
+ end repeat
407
+ end if
408
+
409
+ -- ============================================================
410
+ -- 5. HYPERLINK CHECKS
411
+ -- Empty addresses, empty display text
412
+ -- ============================================================
413
+ if hyperlinkCount > 0 then
414
+ set hlCheckLimit to my minVal(hyperlinkCount, 20)
415
+ repeat with h from 1 to hlCheckLimit
416
+ if issueCount ≥ maxIssues then exit repeat
417
+ try
418
+ set hl to hyperlink object h of doc
419
+ set hlAddr to ""
420
+ set hlDisplay to ""
421
+ try
422
+ set hlAddr to hyperlink address of hl
423
+ end try
424
+ try
425
+ set hlDisplay to text to display of hl
426
+ end try
427
+
428
+ if hlAddr is "" or hlAddr is missing value then
429
+ if issueCount > 0 then set issuesJSON to issuesJSON & ","
430
+ set issuesJSON to issuesJSON & "{\"severity\":\"warning\",\"category\":\"hyperlinks\""
431
+ set issuesJSON to issuesJSON & ",\"message\":\"Hyperlink " & h & " has no target address\""
432
+ set issuesJSON to issuesJSON & ",\"location\":\"Hyperlink " & h & " (display: " & my escapeJSON(my truncateText(hlDisplay, 40)) & ")\""
433
+ set issuesJSON to issuesJSON & ",\"recommendation\":\"Set a valid URL or remove the broken hyperlink\"}"
434
+ set issueCount to issueCount + 1
435
+ end if
436
+
437
+ if (hlDisplay is "" or hlDisplay is missing value) and hlAddr is not "" and issueCount < maxIssues then
438
+ if issueCount > 0 then set issuesJSON to issuesJSON & ","
439
+ set issuesJSON to issuesJSON & "{\"severity\":\"info\",\"category\":\"hyperlinks\""
440
+ set issuesJSON to issuesJSON & ",\"message\":\"Hyperlink displays raw URL instead of descriptive text\""
441
+ set issuesJSON to issuesJSON & ",\"location\":\"Hyperlink " & h & " (" & my escapeJSON(my truncateText(hlAddr, 50)) & ")\""
442
+ set issuesJSON to issuesJSON & ",\"recommendation\":\"Set descriptive display text instead of showing the raw URL\"}"
443
+ set issueCount to issueCount + 1
444
+ end if
445
+ end try
446
+ end repeat
447
+ end if
448
+
449
+ -- ============================================================
450
+ -- 6. IMAGE CHECKS
451
+ -- Oversized images, very small images
452
+ -- ============================================================
453
+ if imageCount > 0 and pageW > 0 then
454
+ set imgCheckLimit to my minVal(imageCount, 20)
455
+ -- Calculate usable content width (page width minus ~1 inch margins each side)
456
+ set contentWidth to pageW - 144
457
+
458
+ repeat with img from 1 to imgCheckLimit
459
+ if issueCount ≥ maxIssues then exit repeat
460
+ try
461
+ set pic to inline picture img of doc
462
+ set picW to width of pic
463
+ set picH to height of pic
464
+
465
+ -- Oversized image (wider than content area)
466
+ if picW > (contentWidth + 10) then
467
+ if issueCount > 0 then set issuesJSON to issuesJSON & ","
468
+ set issuesJSON to issuesJSON & "{\"severity\":\"warning\",\"category\":\"images\""
469
+ set issuesJSON to issuesJSON & ",\"message\":\"Image " & img & " is wider than content area (" & (picW as integer) & "pt vs " & (contentWidth as integer) & "pt available)\""
470
+ set issuesJSON to issuesJSON & ",\"location\":\"Inline picture " & img & "\""
471
+ set issuesJSON to issuesJSON & ",\"recommendation\":\"Resize image to fit within page margins\"}"
472
+ set issueCount to issueCount + 1
473
+ end if
474
+
475
+ -- Very small image (might be accidental or broken)
476
+ if picW < 20 or picH < 20 then
477
+ if issueCount > 0 then set issuesJSON to issuesJSON & ","
478
+ set issuesJSON to issuesJSON & "{\"severity\":\"info\",\"category\":\"images\""
479
+ set issuesJSON to issuesJSON & ",\"message\":\"Image " & img & " is very small (" & (picW as integer) & "x" & (picH as integer) & "pt) - may be invisible or broken\""
480
+ set issuesJSON to issuesJSON & ",\"location\":\"Inline picture " & img & "\""
481
+ set issuesJSON to issuesJSON & ",\"recommendation\":\"Verify image displays correctly; resize or remove if broken\"}"
482
+ set issueCount to issueCount + 1
483
+ end if
484
+ end try
485
+ end repeat
486
+ end if
487
+
488
+ -- ============================================================
489
+ -- 7. PARAGRAPH SPACING CONSISTENCY CHECK
490
+ -- Detect mixed spacing patterns (some paragraphs with space after, some without)
491
+ -- ============================================================
492
+ set spacingValues to {}
493
+ set spacingSampleStep to 1
494
+ if paraCount > 30 then set spacingSampleStep to (paraCount div 30)
495
+
496
+ repeat with i from 1 to paraCount by spacingSampleStep
497
+ if (count of spacingValues) > 8 then exit repeat
498
+ try
499
+ set p to paragraph i of doc
500
+ set styleName to name local of style of text object of p
501
+ if styleName does not start with "Heading" and styleName does not start with "heading" then
502
+ set pContent to content of text object of p
503
+ if (length of pContent) > 1 then
504
+ set spAfter to 0
505
+ try
506
+ set spAfter to space after of paragraph format of text object of p
507
+ end try
508
+ set spStr to (spAfter as integer) as string
509
+ if spStr is not in spacingValues then
510
+ set end of spacingValues to spStr
511
+ end if
512
+ end if
513
+ end if
514
+ end try
515
+ end repeat
516
+
517
+ if (count of spacingValues) > 3 and issueCount < maxIssues then
518
+ if issueCount > 0 then set issuesJSON to issuesJSON & ","
519
+ set issuesJSON to issuesJSON & "{\"severity\":\"info\",\"category\":\"formatting\""
520
+ set issuesJSON to issuesJSON & ",\"message\":\"Document uses " & (count of spacingValues) & " different paragraph spacing values\""
521
+ set issuesJSON to issuesJSON & ",\"location\":\"Body paragraphs throughout document\""
522
+ set issuesJSON to issuesJSON & ",\"recommendation\":\"Standardize paragraph spacing for visual consistency\"}"
523
+ set issueCount to issueCount + 1
524
+ end if
525
+
526
+ -- ============================================================
527
+ -- Health Flags & Summary
528
+ -- ============================================================
529
+ set hasStructureIssues to false
530
+ set hasTextIssues to false
531
+ set hasFormattingIssues to false
532
+ set hasTableIssues to false
533
+ set hasHyperlinkIssues to false
534
+ set hasImageIssues to false
535
+
536
+ -- Quick category scan from issue JSON (simple string check)
537
+ if issuesJSON contains "\"category\":\"structure\"" then set hasStructureIssues to true
538
+ if issuesJSON contains "\"category\":\"text\"" then set hasTextIssues to true
539
+ if issuesJSON contains "\"category\":\"formatting\"" then set hasFormattingIssues to true
540
+ if issuesJSON contains "\"category\":\"tables\"" then set hasTableIssues to true
541
+ if issuesJSON contains "\"category\":\"hyperlinks\"" then set hasHyperlinkIssues to true
542
+ if issuesJSON contains "\"category\":\"images\"" then set hasImageIssues to true
543
+
544
+ set isHealthy to (issueCount is 0)
545
+
546
+ set healthSum to ""
547
+ if isHealthy then
548
+ set healthSum to "Healthy - No issues found."
549
+ else
550
+ set summaryParts to {}
551
+ if hasStructureIssues then set end of summaryParts to "heading structure issues"
552
+ if hasTextIssues then set end of summaryParts to "text quality issues"
553
+ if hasFormattingIssues then set end of summaryParts to "formatting inconsistencies"
554
+ if hasTableIssues then set end of summaryParts to "table issues"
555
+ if hasHyperlinkIssues then set end of summaryParts to "hyperlink issues"
556
+ if hasImageIssues then set end of summaryParts to "image issues"
557
+ set issueStr to issueCount as text
558
+ set healthSum to issueStr & " issue(s) found: "
559
+ repeat with p from 1 to (count of summaryParts)
560
+ if p > 1 then set healthSum to healthSum & ", "
561
+ set healthSum to healthSum & (item p of summaryParts)
562
+ end repeat
563
+ set healthSum to healthSum & "."
564
+ end if
565
+
566
+ set healthSum to healthSum & " Document: " & docName
567
+ set healthSum to healthSum & " | Pages: " & pageCount
568
+ set healthSum to healthSum & " | Words: " & docWordCount
569
+ set healthSum to healthSum & " | Paragraphs: " & paraCount
570
+ set healthSum to healthSum & " | Tables: " & tableCount
571
+ set healthSum to healthSum & " | Hyperlinks: " & hyperlinkCount
572
+ set healthSum to healthSum & " | Images: " & imageCount
573
+
574
+ -- ============================================================
575
+ -- Build JSON Response
576
+ -- ============================================================
577
+ set json to "{"
578
+ set json to json & "\"success\":true"
579
+ set json to json & ",\"running\":true"
580
+ set json to json & ",\"hasDocument\":true"
581
+ set json to json & ",\"documentName\":\"" & my escapeJSON(docName) & "\""
582
+ set json to json & ",\"documentPath\":\"" & my escapeJSON(docPath) & "\""
583
+ set json to json & ",\"pageCount\":" & pageCount
584
+ set json to json & ",\"wordCount\":" & docWordCount
585
+ set json to json & ",\"paragraphCount\":" & paraCount
586
+ set json to json & ",\"tableCount\":" & tableCount
587
+ set json to json & ",\"hyperlinkCount\":" & hyperlinkCount
588
+ set json to json & ",\"imageCount\":" & imageCount
589
+ set json to json & ",\"isHealthy\":" & isHealthy
590
+ set json to json & ",\"hasStructureIssues\":" & hasStructureIssues
591
+ set json to json & ",\"hasTextIssues\":" & hasTextIssues
592
+ set json to json & ",\"hasFormattingIssues\":" & hasFormattingIssues
593
+ set json to json & ",\"hasTableIssues\":" & hasTableIssues
594
+ set json to json & ",\"hasHyperlinkIssues\":" & hasHyperlinkIssues
595
+ set json to json & ",\"hasImageIssues\":" & hasImageIssues
596
+ set json to json & ",\"issues\":[" & issuesJSON & "]"
597
+ set json to json & ",\"healthSummary\":\"" & my escapeJSON(healthSum) & "\""
598
+ set json to json & "}"
599
+
600
+ return json
601
+
602
+ on error errMsg
603
+ return "{\"success\":false,\"error\":\"" & my escapeJSON(errMsg) & "\"}"
604
+ end try
605
+ end tell
606
+ end run