@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.
- package/README.md +41 -3
- package/dist/index.mjs +2 -2
- package/dist/skills/business-analysis/SKILL.md +722 -0
- package/dist/skills/business-analysis/as-is-capture.md +440 -0
- package/dist/skills/business-analysis/assets/progress.yaml +19 -0
- package/dist/skills/business-analysis/assets/task-list.md +34 -0
- package/dist/skills/business-analysis/automation-hub-publishing.md +47 -0
- package/dist/skills/business-analysis/bpmn-to-be-design.md +274 -0
- package/dist/skills/business-analysis/case-to-be-design.md +223 -0
- package/dist/skills/business-analysis/diagram-authoring.md +215 -0
- package/dist/skills/business-analysis/industry-gaps.md +134 -0
- package/dist/skills/business-analysis/interview-spine.md +297 -0
- package/dist/skills/business-analysis/locales/de.json +54 -0
- package/dist/skills/business-analysis/locales/en.json +54 -0
- package/dist/skills/business-analysis/locales/es-MX.json +54 -0
- package/dist/skills/business-analysis/locales/es.json +54 -0
- package/dist/skills/business-analysis/locales/fr.json +54 -0
- package/dist/skills/business-analysis/locales/ja.json +54 -0
- package/dist/skills/business-analysis/locales/ko.json +54 -0
- package/dist/skills/business-analysis/locales/pt-BR.json +54 -0
- package/dist/skills/business-analysis/locales/pt.json +54 -0
- package/dist/skills/business-analysis/locales/ro.json +54 -0
- package/dist/skills/business-analysis/locales/tr.json +54 -0
- package/dist/skills/business-analysis/locales/zh-CN.json +54 -0
- package/dist/skills/business-analysis/locales/zh-TW.json +54 -0
- package/dist/skills/business-analysis/pdd-generation.md +204 -0
- package/dist/skills/business-analysis/pdd-template.md +562 -0
- package/dist/skills/business-analysis/progress-presentation.json +13 -0
- package/dist/skills/business-analysis/recording-first.md +19 -0
- package/dist/skills/business-analysis/recording-processing.md +152 -0
- package/dist/skills/business-analysis/references/automation-hub-open-api.md +57 -0
- package/dist/skills/business-analysis/references/case-definition-spec.md +90 -0
- package/dist/skills/business-analysis/references/case-design-patterns/loan-origination-spec.md +86 -0
- package/dist/skills/business-analysis/references/component-type-mapping.md +52 -0
- package/dist/skills/business-analysis/references/uipath-products/case-management-schema.md +62 -0
- package/dist/skills/business-analysis/references/uipath-products/maestro-case-framework.md +65 -0
- package/dist/skills/business-analysis/references/uipath-products/maestro-case-management.md +49 -0
- package/dist/skills/business-analysis/research-offer.md +104 -0
- package/dist/skills/business-analysis/research-pass.md +149 -0
- package/dist/skills/business-analysis/scripts/assemble-pdd.ps1 +294 -0
- package/dist/skills/business-analysis/scripts/assemble-pdd.sh +453 -0
- package/dist/skills/business-analysis/scripts/check-phase-ready.ps1 +72 -0
- package/dist/skills/business-analysis/scripts/check-phase-ready.sh +98 -0
- package/dist/skills/business-analysis/scripts/lint-diagram.ps1 +524 -0
- package/dist/skills/business-analysis/scripts/lint-diagram.sh +519 -0
- package/dist/skills/business-analysis/scripts/stamp-pages.ps1 +363 -0
- package/dist/skills/business-analysis/scripts/stamp-pages.sh +360 -0
- package/dist/skills/business-analysis/to-be-design.md +199 -0
- package/dist/skills/confluence/SKILL.md +386 -0
- package/dist/skills/doc-coauthoring/SKILL.md +295 -0
- package/dist/skills/excel-architect/SKILL.macos.md +161 -0
- package/dist/skills/excel-architect/SKILL.md +180 -0
- package/dist/skills/excel-architect/SKILL.windows.md +61 -0
- package/dist/skills/excel-architect/archetypes/01-financial-model-advanced.md +332 -0
- package/dist/skills/excel-architect/archetypes/01-financial-model.md +248 -0
- package/dist/skills/excel-architect/archetypes/02-data-analysis.md +171 -0
- package/dist/skills/excel-architect/archetypes/03-tracking-dashboard.md +160 -0
- package/dist/skills/excel-architect/archetypes/04-project-planning.md +193 -0
- package/dist/skills/excel-architect/archetypes/05-simple-table.md +111 -0
- package/dist/skills/excel-architect/building.md +279 -0
- package/dist/skills/excel-architect/create.md +64 -0
- package/dist/skills/excel-architect/data-and-formulas.md +186 -0
- package/dist/skills/excel-architect/generator.md +272 -0
- package/dist/skills/excel-architect/macos/scripts/add-data-validation.applescript +242 -0
- package/dist/skills/excel-architect/macos/scripts/append-rows.applescript +310 -0
- package/dist/skills/excel-architect/macos/scripts/apply-conditional-format.applescript +565 -0
- package/dist/skills/excel-architect/macos/scripts/autofit-columns.applescript +79 -0
- package/dist/skills/excel-architect/macos/scripts/benchmark.sh +135 -0
- package/dist/skills/excel-architect/macos/scripts/check-compile.sh +30 -0
- package/dist/skills/excel-architect/macos/scripts/clear-range.applescript +152 -0
- package/dist/skills/excel-architect/macos/scripts/copy-paste.applescript +179 -0
- package/dist/skills/excel-architect/macos/scripts/create-chart.applescript +531 -0
- package/dist/skills/excel-architect/macos/scripts/create-pivot.applescript +443 -0
- package/dist/skills/excel-architect/macos/scripts/create-sheets.applescript +264 -0
- package/dist/skills/excel-architect/macos/scripts/create-workbook.applescript +92 -0
- package/dist/skills/excel-architect/macos/scripts/delete-chart.applescript +105 -0
- package/dist/skills/excel-architect/macos/scripts/delete-sheet.applescript +127 -0
- package/dist/skills/excel-architect/macos/scripts/filter-data.applescript +213 -0
- package/dist/skills/excel-architect/macos/scripts/find-replace.applescript +238 -0
- package/dist/skills/excel-architect/macos/scripts/format-range.applescript +531 -0
- package/dist/skills/excel-architect/macos/scripts/freeze-panes.applescript +133 -0
- package/dist/skills/excel-architect/macos/scripts/get-current-file.applescript +24 -0
- package/dist/skills/excel-architect/macos/scripts/get-sheet-dimensions.applescript +115 -0
- package/dist/skills/excel-architect/macos/scripts/health-check.applescript +704 -0
- package/dist/skills/excel-architect/macos/scripts/list-open-workbooks.applescript +80 -0
- package/dist/skills/excel-architect/macos/scripts/maximize-window.applescript +47 -0
- package/dist/skills/excel-architect/macos/scripts/merge-cells.applescript +227 -0
- package/dist/skills/excel-architect/macos/scripts/open-workbook.applescript +139 -0
- package/dist/skills/excel-architect/macos/scripts/read-range.applescript +267 -0
- package/dist/skills/excel-architect/macos/scripts/rename-sheet.applescript +231 -0
- package/dist/skills/excel-architect/macos/scripts/select-sheet.applescript +133 -0
- package/dist/skills/excel-architect/macos/scripts/set-tab-color.applescript +109 -0
- package/dist/skills/excel-architect/macos/scripts/sort-data.applescript +136 -0
- package/dist/skills/excel-architect/macos/scripts/undo.applescript +59 -0
- package/dist/skills/excel-architect/macos/scripts/workbook-lifecycle.applescript +149 -0
- package/dist/skills/excel-architect/macos/scripts/write-formula.applescript +225 -0
- package/dist/skills/excel-architect/macos/scripts/write-range.applescript +351 -0
- package/dist/skills/excel-architect/reference/api/advanced.md +381 -0
- package/dist/skills/excel-architect/reference/api/basic.md +747 -0
- package/dist/skills/excel-architect/reference/guides.md +348 -0
- package/dist/skills/excel-architect/reference/repair.md +174 -0
- package/dist/skills/excel-architect/reference/troubleshooting.md +46 -0
- package/dist/skills/excel-architect/scripting.md +266 -0
- package/dist/skills/excel-architect/styling-and-features.md +433 -0
- package/dist/skills/excel-architect/windows/api/composites.md +337 -0
- package/dist/skills/excel-architect/windows/api/scripting.md +139 -0
- package/dist/skills/excel-architect/windows/examples/level-1-workflows.md +485 -0
- package/dist/skills/excel-architect/windows/examples/level-2-advanced.md +690 -0
- package/dist/skills/excel-architect/windows/examples/level-3-scripting.md +337 -0
- package/dist/skills/github/SKILL.md +446 -0
- package/dist/skills/github/recipes/add-comment.md +85 -0
- package/dist/skills/github/recipes/check-pr-status.md +122 -0
- package/dist/skills/github/recipes/compare-branches.md +79 -0
- package/dist/skills/github/recipes/create-issue.md +103 -0
- package/dist/skills/github/recipes/create-pr.md +97 -0
- package/dist/skills/github/recipes/get-file-contents.md +76 -0
- package/dist/skills/github/recipes/get-last-commit.md +128 -0
- package/dist/skills/github/recipes/list-my-open-prs.md +105 -0
- package/dist/skills/github/recipes/list-recent-commits.md +84 -0
- package/dist/skills/github/recipes/search-issues.md +115 -0
- package/dist/skills/google-workspace/SKILL.md +217 -0
- package/dist/skills/google-workspace/services/calendar.md +311 -0
- package/dist/skills/google-workspace/services/docs.md +426 -0
- package/dist/skills/google-workspace/services/drive.md +504 -0
- package/dist/skills/google-workspace/services/gmail.md +466 -0
- package/dist/skills/google-workspace/services/sheets.md +370 -0
- package/dist/skills/internal-comms/SKILL.md +35 -0
- package/dist/skills/internal-comms/examples/3p-updates.md +47 -0
- package/dist/skills/internal-comms/examples/company-newsletter.md +65 -0
- package/dist/skills/internal-comms/examples/faq-answers.md +30 -0
- package/dist/skills/internal-comms/examples/general-comms.md +15 -0
- package/dist/skills/jira/SKILL.md +397 -0
- package/dist/skills/jira/recipes/add-comment.md +123 -0
- package/dist/skills/jira/recipes/assign-issue.md +157 -0
- package/dist/skills/jira/recipes/create-issue.md +274 -0
- package/dist/skills/jira/recipes/get-issue-details.md +154 -0
- package/dist/skills/jira/recipes/list-projects.md +151 -0
- package/dist/skills/jira/recipes/my-issues.md +180 -0
- package/dist/skills/jira/recipes/search-issues.md +215 -0
- package/dist/skills/jira/recipes/transition-issue.md +154 -0
- package/dist/skills/jira/recipes/troubleshooting.md +387 -0
- package/dist/skills/knowledge-base/SKILL.md +289 -0
- package/dist/skills/media-tools/SKILL.md +204 -0
- package/dist/skills/media-tools/references/encode-runbook.md +24 -0
- package/dist/skills/media-tools/references/resolve-binaries.md +81 -0
- package/dist/skills/media-tools/scripts/macos/ff-launch.sh +22 -0
- package/dist/skills/media-tools/scripts/macos/ff-poll.sh +10 -0
- package/dist/skills/media-tools/scripts/windows/ff-launch.ps1 +34 -0
- package/dist/skills/media-tools/scripts/windows/ff-poll.ps1 +20 -0
- package/dist/skills/office-download/SKILL.md +161 -0
- package/dist/skills/outlook-365/SKILL.macos.md +331 -0
- package/dist/skills/outlook-365/SKILL.md +171 -0
- package/dist/skills/outlook-365/SKILL.windows.md +124 -0
- package/dist/skills/outlook-365/api/bulk-email-operations.md +178 -0
- package/dist/skills/outlook-365/api/check-availability.md +87 -0
- package/dist/skills/outlook-365/api/create-inbox-rule.md +182 -0
- package/dist/skills/outlook-365/api/download-attachments.md +149 -0
- package/dist/skills/outlook-365/api/find-and-email-contact.md +185 -0
- package/dist/skills/outlook-365/api/manage-calendar-events.md +189 -0
- package/dist/skills/outlook-365/api/organize-with-folders.md +178 -0
- package/dist/skills/outlook-365/api/reply-to-conversation.md +68 -0
- package/dist/skills/outlook-365/api/schedule-meeting.md +73 -0
- package/dist/skills/outlook-365/api/search-and-read-email.md +93 -0
- package/dist/skills/outlook-365/api/send-email-with-attachments.md +94 -0
- package/dist/skills/outlook-365/api/send-email.md +396 -0
- package/dist/skills/outlook-365/api/set-out-of-office.md +196 -0
- package/dist/skills/outlook-365/macos/scripts/bulk-operations.applescript +429 -0
- package/dist/skills/outlook-365/macos/scripts/calendar.applescript +642 -0
- package/dist/skills/outlook-365/macos/scripts/contacts.applescript +635 -0
- package/dist/skills/outlook-365/macos/scripts/helpers.applescript +227 -0
- package/dist/skills/outlook-365/macos/scripts/read-emails.applescript +299 -0
- package/dist/skills/outlook-365/macos/scripts/search-emails.applescript +339 -0
- package/dist/skills/outlook-365/macos/scripts/send-email.applescript +245 -0
- package/dist/skills/outlook-365/uia/BASIC_OPERATIONS.md +278 -0
- package/dist/skills/outlook-365/uia/CALENDAR_OPERATIONS.md +386 -0
- package/dist/skills/outlook-365/uia/COMPOSE_EMAIL.md +426 -0
- package/dist/skills/outlook-365/uia/README.md +75 -0
- package/dist/skills/outlook-365/windows/com/bulk-operations.ps1 +241 -0
- package/dist/skills/outlook-365/windows/com/calendar.ps1 +227 -0
- package/dist/skills/outlook-365/windows/com/contacts.ps1 +270 -0
- package/dist/skills/outlook-365/windows/com/helpers.ps1 +158 -0
- package/dist/skills/outlook-365/windows/com/read-emails.ps1 +115 -0
- package/dist/skills/outlook-365/windows/com/search-emails.ps1 +141 -0
- package/dist/skills/outlook-365/windows/com/send-email.ps1 +121 -0
- package/dist/skills/pdf-architect/SKILL.md +640 -0
- package/dist/skills/powerpoint-architect/SKILL.macos.md +271 -0
- package/dist/skills/powerpoint-architect/SKILL.md +853 -0
- package/dist/skills/powerpoint-architect/SKILL.windows.md +458 -0
- package/dist/skills/powerpoint-architect/custom_themes.md +141 -0
- package/dist/skills/powerpoint-architect/editing-guide.md +424 -0
- package/dist/skills/powerpoint-architect/generator-reference.md +668 -0
- package/dist/skills/powerpoint-architect/images-guide.md +207 -0
- package/dist/skills/powerpoint-architect/issue-fix-mapping.md +768 -0
- package/dist/skills/powerpoint-architect/macos/scripts/add-html-to-slide.applescript +389 -0
- package/dist/skills/powerpoint-architect/macos/scripts/add-slide.applescript +255 -0
- package/dist/skills/powerpoint-architect/macos/scripts/add-speaker-notes.applescript +132 -0
- package/dist/skills/powerpoint-architect/macos/scripts/add-text.applescript +245 -0
- package/dist/skills/powerpoint-architect/macos/scripts/apply-slide-layout.applescript +80 -0
- package/dist/skills/powerpoint-architect/macos/scripts/apply-theme.applescript +122 -0
- package/dist/skills/powerpoint-architect/macos/scripts/autofit-placeholders.applescript +62 -0
- package/dist/skills/powerpoint-architect/macos/scripts/close-presentation.applescript +24 -0
- package/dist/skills/powerpoint-architect/macos/scripts/copy-slides.applescript +303 -0
- package/dist/skills/powerpoint-architect/macos/scripts/create-chart-with-data.applescript +305 -0
- package/dist/skills/powerpoint-architect/macos/scripts/create-with-theme.applescript +56 -0
- package/dist/skills/powerpoint-architect/macos/scripts/delete-slides.applescript +137 -0
- package/dist/skills/powerpoint-architect/macos/scripts/export-presentation.applescript +100 -0
- package/dist/skills/powerpoint-architect/macos/scripts/extract-slide-data.applescript +138 -0
- package/dist/skills/powerpoint-architect/macos/scripts/format-shape.applescript +192 -0
- package/dist/skills/powerpoint-architect/macos/scripts/format-slide-content.applescript +336 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-current-slide-number.applescript +38 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-file-path.applescript +94 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-layout-elements.applescript +141 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-layouts.applescript +58 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-opened-files.applescript +50 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-presentation-info.applescript +150 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-recent-files.applescript +68 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-slide-count.applescript +37 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-slide-info.applescript +105 -0
- package/dist/skills/powerpoint-architect/macos/scripts/health-check.applescript +690 -0
- package/dist/skills/powerpoint-architect/macos/scripts/insert-shape.applescript +188 -0
- package/dist/skills/powerpoint-architect/macos/scripts/insert-table.applescript +112 -0
- package/dist/skills/powerpoint-architect/macos/scripts/insert-text-box.applescript +225 -0
- package/dist/skills/powerpoint-architect/macos/scripts/manage-image.applescript +486 -0
- package/dist/skills/powerpoint-architect/macos/scripts/maximize-window.applescript +48 -0
- package/dist/skills/powerpoint-architect/macos/scripts/navigate-to-slide.applescript +84 -0
- package/dist/skills/powerpoint-architect/macos/scripts/open-presentation.applescript +38 -0
- package/dist/skills/powerpoint-architect/macos/scripts/reorder-slides.applescript +106 -0
- package/dist/skills/powerpoint-architect/macos/scripts/replace-text.applescript +193 -0
- package/dist/skills/powerpoint-architect/macos/scripts/save-presentation.applescript +54 -0
- package/dist/skills/powerpoint-architect/macos/scripts/set-animation.applescript +203 -0
- package/dist/skills/powerpoint-architect/macos/scripts/set-transition.applescript +130 -0
- package/dist/skills/powerpoint-architect/visual-styling-guide.md +206 -0
- package/dist/skills/powerpoint-architect/windows/api/advanced.md +317 -0
- package/dist/skills/powerpoint-architect/windows/api/basic.md +392 -0
- package/dist/skills/powerpoint-architect/windows/examples/10-slide-presentation.md +140 -0
- package/dist/skills/powerpoint-architect/windows/examples/custom-theme-workflow.md +219 -0
- package/dist/skills/powerpoint-architect/windows/examples/level-1-workflows.md +531 -0
- package/dist/skills/powerpoint-architect/windows/examples/level-2-scripting.md +239 -0
- package/dist/skills/powerpoint-architect/windows/scripts/create-with-theme.ps1 +81 -0
- package/dist/skills/project-task-list/SKILL.md +174 -0
- package/dist/skills/slack-operation/SKILL.md +97 -0
- package/dist/skills/slack-operation/api/advanced-api/GUIDE.md +277 -0
- package/dist/skills/slack-operation/api/search-and-read/EXAMPLE.md +75 -0
- package/dist/skills/slack-operation/api/search-and-read/GUIDE.md +108 -0
- package/dist/skills/slack-operation/api/send-message/EXAMPLE.md +112 -0
- package/dist/skills/slack-operation/api/send-message/GUIDE.md +63 -0
- package/dist/skills/slack-operation/api/share-files/EXAMPLE.md +94 -0
- package/dist/skills/slack-operation/api/share-files/GUIDE.md +63 -0
- package/dist/skills/slack-operation/ui/desktop-automation/GUIDE.md +55 -0
- package/dist/skills/system-diagnostics/SKILL.md +263 -0
- package/dist/skills/teams-operation/SKILL.md +79 -0
- package/dist/skills/teams-operation/api/advanced-api/GUIDE.md +234 -0
- package/dist/skills/teams-operation/api/meetings/EXAMPLE.md +63 -0
- package/dist/skills/teams-operation/api/meetings/GUIDE.md +52 -0
- package/dist/skills/teams-operation/api/search-and-read/EXAMPLE.md +72 -0
- package/dist/skills/teams-operation/api/search-and-read/GUIDE.md +54 -0
- package/dist/skills/teams-operation/api/send-message/EXAMPLE.md +92 -0
- package/dist/skills/teams-operation/api/send-message/GUIDE.md +60 -0
- package/dist/skills/teams-operation/ui/desktop-automation/GUIDE.md +66 -0
- package/dist/skills/transcribe-media/SKILL.md +142 -0
- package/dist/skills/uipath-integrations/SKILL.md +370 -0
- package/dist/skills/uipath-integrations/reference/connectors.md +331 -0
- package/dist/skills/uipath-integrations/reference/endpoints.md +220 -0
- package/dist/skills/uipath-integrations/reference/errors.md +211 -0
- package/dist/skills/uipath-integrations/reference/metadata.md +317 -0
- package/dist/skills/uipath-integrations/reference/operations.md +297 -0
- package/dist/skills/uipath-orchestrator/SKILL.md +312 -0
- package/dist/skills/uipath-orchestrator/recipes/assets.md +282 -0
- package/dist/skills/uipath-orchestrator/recipes/audit-logs.md +215 -0
- package/dist/skills/uipath-orchestrator/recipes/buckets.md +205 -0
- package/dist/skills/uipath-orchestrator/recipes/jobs.md +286 -0
- package/dist/skills/uipath-orchestrator/recipes/list-folders.md +207 -0
- package/dist/skills/uipath-orchestrator/recipes/queue-items.md +292 -0
- package/dist/skills/uipath-orchestrator/recipes/queues.md +232 -0
- package/dist/skills/uipath-orchestrator/recipes/releases.md +212 -0
- package/dist/skills/uipath-orchestrator/recipes/robots-sessions.md +274 -0
- package/dist/skills/uipath-orchestrator/recipes/schedules.md +280 -0
- package/dist/skills/uipath-orchestrator/reference/endpoints.md +85 -0
- package/dist/skills/uipath-orchestrator/reference/schemas.md +153 -0
- package/dist/skills/uipath-taskautomation/SKILL.md +310 -0
- package/dist/skills/uipath-taskautomation/assets/CodedWorkflow.template.cs +98 -0
- package/dist/skills/uipath-taskautomation/assets/ExampleWorkflow.cs +146 -0
- package/dist/skills/uipath-taskautomation/references/action-activity-map.json +32 -0
- package/dist/skills/uipath-taskautomation/references/action-activity-map.md +44 -0
- package/dist/skills/uipath-taskautomation/references/app-profiles.md +63 -0
- package/dist/skills/uipath-taskautomation/references/automation-spec.md +88 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/assets/before-after-hooks-template.md +115 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/assets/codedworkflow-template.md +186 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/assets/helper-utility-template.md +22 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/assets/json-template.md +91 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/assets/testcase-template.md +92 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/cli-reference.md +249 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/coded/codedworkflow-reference.md +275 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/coded/coding-guidelines.md +229 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/coded/inspect-package-guide.md +81 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/coded/integration-service-guide.md +507 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/coded/operations-guide.md +410 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/coded/third-party-packages-guide.md +67 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/data-manipulation-guide.md +110 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/environment-setup.md +194 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/error-handling-guide.md +195 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/powershell-interop-guide.md +57 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/project-structure-guide.md +114 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/project-structure.md +126 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/uia-elements-interaction-guide.md +109 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/validation-guide.md +147 -0
- package/dist/skills/uipath-taskautomation/references/coded-workflow-authoring.md +219 -0
- package/dist/skills/uipath-taskautomation/references/profiling-output.md +80 -0
- package/dist/skills/uipath-taskautomation/references/reliability-guide.md +83 -0
- package/dist/skills/uipath-taskautomation/references/task-automation-cheatsheet.md +272 -0
- package/dist/skills/uipath-taskautomation/references/template-preflight.md +17 -0
- package/dist/skills/uipath-workflow-documenter/SKILL.md +430 -0
- package/dist/skills/uipath-workflow-documenter/layouts/pdd-template.md +265 -0
- package/dist/skills/uipath-workflow-documenter/routines/from-orchestrator.md +11 -0
- package/dist/skills/uipath-workflow-documenter/routines/from-workflow.md +11 -0
- package/dist/skills/word-architect/SKILL.macos.md +147 -0
- package/dist/skills/word-architect/SKILL.md +502 -0
- package/dist/skills/word-architect/SKILL.windows.md +55 -0
- package/dist/skills/word-architect/api/advanced.md +522 -0
- package/dist/skills/word-architect/api/basic.md +378 -0
- package/dist/skills/word-architect/api/expert.md +302 -0
- package/dist/skills/word-architect/generation.md +308 -0
- package/dist/skills/word-architect/layouts/01-professional.md +168 -0
- package/dist/skills/word-architect/layouts/02-educational-kids.md +354 -0
- package/dist/skills/word-architect/layouts/03-academic.md +83 -0
- package/dist/skills/word-architect/layouts/04-creative.md +242 -0
- package/dist/skills/word-architect/layouts/05-operational.md +94 -0
- package/dist/skills/word-architect/macos/scripts/apply-heading-style.applescript +215 -0
- package/dist/skills/word-architect/macos/scripts/apply-style.applescript +272 -0
- package/dist/skills/word-architect/macos/scripts/autofit-tables.applescript +53 -0
- package/dist/skills/word-architect/macos/scripts/close-document.applescript +287 -0
- package/dist/skills/word-architect/macos/scripts/create-chart-with-data.applescript +379 -0
- package/dist/skills/word-architect/macos/scripts/create-chart.applescript +191 -0
- package/dist/skills/word-architect/macos/scripts/delete-selection.applescript +223 -0
- package/dist/skills/word-architect/macos/scripts/export-document.applescript +167 -0
- package/dist/skills/word-architect/macos/scripts/extract-table.applescript +168 -0
- package/dist/skills/word-architect/macos/scripts/find-by-style.applescript +173 -0
- package/dist/skills/word-architect/macos/scripts/find-text.applescript +199 -0
- package/dist/skills/word-architect/macos/scripts/format-table.applescript +234 -0
- package/dist/skills/word-architect/macos/scripts/format-text.applescript +431 -0
- package/dist/skills/word-architect/macos/scripts/get-document-properties.applescript +95 -0
- package/dist/skills/word-architect/macos/scripts/get-document-structure.applescript +371 -0
- package/dist/skills/word-architect/macos/scripts/get-header-footer-text.applescript +106 -0
- package/dist/skills/word-architect/macos/scripts/get-images.applescript +166 -0
- package/dist/skills/word-architect/macos/scripts/get-opened-files.applescript +103 -0
- package/dist/skills/word-architect/macos/scripts/get-paragraph-bounds.applescript +133 -0
- package/dist/skills/word-architect/macos/scripts/get-paragraph-format.applescript +134 -0
- package/dist/skills/word-architect/macos/scripts/get-recent-files.applescript +82 -0
- package/dist/skills/word-architect/macos/scripts/get-styled-text.applescript +256 -0
- package/dist/skills/word-architect/macos/scripts/get-tables.applescript +126 -0
- package/dist/skills/word-architect/macos/scripts/get-text-formatting.applescript +224 -0
- package/dist/skills/word-architect/macos/scripts/get-text.applescript +383 -0
- package/dist/skills/word-architect/macos/scripts/get-theme-colors.applescript +123 -0
- package/dist/skills/word-architect/macos/scripts/health-check.applescript +606 -0
- package/dist/skills/word-architect/macos/scripts/insert-cover-page.applescript +77 -0
- package/dist/skills/word-architect/macos/scripts/insert-header-footer.applescript +87 -0
- package/dist/skills/word-architect/macos/scripts/insert-horizontal-line.applescript +112 -0
- package/dist/skills/word-architect/macos/scripts/insert-html.applescript +440 -0
- package/dist/skills/word-architect/macos/scripts/insert-hyperlink.applescript +191 -0
- package/dist/skills/word-architect/macos/scripts/insert-image.applescript +320 -0
- package/dist/skills/word-architect/macos/scripts/insert-list.applescript +317 -0
- package/dist/skills/word-architect/macos/scripts/insert-pagebreak.applescript +181 -0
- package/dist/skills/word-architect/macos/scripts/insert-smartart.applescript +104 -0
- package/dist/skills/word-architect/macos/scripts/insert-table.applescript +238 -0
- package/dist/skills/word-architect/macos/scripts/insert-text.applescript +677 -0
- package/dist/skills/word-architect/macos/scripts/insert-textbox.applescript +261 -0
- package/dist/skills/word-architect/macos/scripts/maximize-window.applescript +67 -0
- package/dist/skills/word-architect/macos/scripts/normalize-formatting.applescript +56 -0
- package/dist/skills/word-architect/macos/scripts/open-document.applescript +222 -0
- package/dist/skills/word-architect/macos/scripts/replace-text.applescript +390 -0
- package/dist/skills/word-architect/macos/scripts/save-document.applescript +230 -0
- package/dist/skills/word-architect/macos/scripts/select-range.applescript +142 -0
- package/dist/skills/word-architect/macos/scripts/set-document-properties.applescript +195 -0
- package/dist/skills/word-architect/macos/scripts/set-page-layout.applescript +273 -0
- package/dist/skills/word-architect/macos/scripts/set-theme-colors.applescript +264 -0
- package/dist/skills/word-architect/macos/scripts/undo-redo.applescript +61 -0
- package/dist/skills/word-architect/macos/scripts/update-toc.applescript +112 -0
- package/dist/skills/word-architect/reference/formatting.md +119 -0
- package/dist/skills/word-architect/reference/html-layouts/01-executive-summary-box.md +36 -0
- package/dist/skills/word-architect/reference/html-layouts/02-kpi-summary-table.md +68 -0
- package/dist/skills/word-architect/reference/html-layouts/03-comparison-table.md +63 -0
- package/dist/skills/word-architect/reference/html-layouts/04-pros-cons-table.md +86 -0
- package/dist/skills/word-architect/reference/html-layouts/05-timeline-table.md +114 -0
- package/dist/skills/word-architect/reference/html-layouts/06-raci-matrix.md +95 -0
- package/dist/skills/word-architect/reference/html-layouts/07-data-table-alternating.md +84 -0
- package/dist/skills/word-architect/reference/html-layouts/08-callout-box.md +102 -0
- package/dist/skills/word-architect/reference/html-layouts/09-vertical-milestone.md +100 -0
- package/dist/skills/word-architect/reference/quality-assurance.md +102 -0
- package/dist/skills/word-architect/reference/tables.md +62 -0
- package/dist/skills/word-architect/reference/tracked-changes.md +34 -0
- package/dist/skills/word-architect/reference/uia-fallback.md +231 -0
- package/dist/skills/word-architect/reference/visual-elements.md +82 -0
- package/dist/skills/word-architect/windows/scripts/apply-heading-style.ps1 +190 -0
- package/dist/skills/word-architect/windows/scripts/autofit-tables.ps1 +64 -0
- package/dist/skills/word-architect/windows/scripts/create-chart-with-data.ps1 +133 -0
- package/dist/skills/word-architect/windows/scripts/create-chart.ps1 +73 -0
- package/dist/skills/word-architect/windows/scripts/export-document.ps1 +86 -0
- package/dist/skills/word-architect/windows/scripts/get-current-file.ps1 +27 -0
- package/dist/skills/word-architect/windows/scripts/insert-cover-page.ps1 +79 -0
- package/dist/skills/word-architect/windows/scripts/insert-horizontal-line.ps1 +74 -0
- package/dist/skills/word-architect/windows/scripts/insert-image.ps1 +98 -0
- package/dist/skills/word-architect/windows/scripts/insert-smartart.ps1 +118 -0
- package/dist/skills/word-architect/windows/scripts/insert-text-box.ps1 +90 -0
- package/dist/skills/word-architect/windows/scripts/normalize-formatting.ps1 +63 -0
- package/package.json +5 -4
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# lint-diagram.sh — deterministic authoring lint for business-analysis Mermaid
|
|
3
|
+
# diagram fragments (as-is/diagram.md, to-be/diagram.md).
|
|
4
|
+
#
|
|
5
|
+
# Mirrors the Delegate rich-diagram renderer gates (semanticGraph.ts /
|
|
6
|
+
# mermaidAdapter.ts / convertDiagram.ts) plus the skill's conservative
|
|
7
|
+
# authoring subset, so a clean lint means the first render lands `supported`.
|
|
8
|
+
#
|
|
9
|
+
# It also audits the sibling `attachments.md` evidence sidecar
|
|
10
|
+
# (caseStageKeys.ts): a ref filed under a key nothing on the map answers to
|
|
11
|
+
# renders nothing and raises no error, so a restructure that redraws the map
|
|
12
|
+
# without re-keying the sidecar silently orphans the user's evidence. The
|
|
13
|
+
# viewer warns about it after the fact; the lint has to fail before the map is
|
|
14
|
+
# ever presented. On a case-design map keys target a stage (subgraph id or
|
|
15
|
+
# label slug) or one work item (node id); on a generic map, one step (node id).
|
|
16
|
+
#
|
|
17
|
+
# Usage: bash lint-diagram.sh --file "<absolute path to diagram.md>"
|
|
18
|
+
# Output: DIAGRAMLINT:error <code> line=<N> <detail> (blocks presentation)
|
|
19
|
+
# DIAGRAMLINT:warn <code> line=<N> <detail> (fix when touching the file)
|
|
20
|
+
# DIAGRAMLINT:info band nodes=<N> edges=<M> (reported, never judged)
|
|
21
|
+
# DIAGRAMLINT:ok (no errors)
|
|
22
|
+
# DIAGRAMLINT:fail errors=<n> warnings=<m>
|
|
23
|
+
# Exit: 0 = no errors (warnings allowed), 1 = errors found, 2 = usage/file problem.
|
|
24
|
+
#
|
|
25
|
+
# The AWK program must never use `continue`: this script also runs under the
|
|
26
|
+
# app's just-bash interpreter, whose awk silently abandons the rest of the
|
|
27
|
+
# program when a loop body hits one — which swallowed the terminal
|
|
28
|
+
# DIAGRAMLINT:fail line. Guard with a condition instead.
|
|
29
|
+
set -u
|
|
30
|
+
|
|
31
|
+
FILE=""
|
|
32
|
+
while [ $# -gt 0 ]; do
|
|
33
|
+
case "$1" in
|
|
34
|
+
--file|-File)
|
|
35
|
+
if [ $# -lt 2 ]; then
|
|
36
|
+
echo "DIAGRAMLINT:error usage line=0 $1 requires a path"
|
|
37
|
+
exit 2
|
|
38
|
+
fi
|
|
39
|
+
FILE="${2:-}"
|
|
40
|
+
shift 2
|
|
41
|
+
;;
|
|
42
|
+
*)
|
|
43
|
+
echo "DIAGRAMLINT:error usage line=0 unknown argument: $1"
|
|
44
|
+
exit 2
|
|
45
|
+
;;
|
|
46
|
+
esac
|
|
47
|
+
done
|
|
48
|
+
|
|
49
|
+
if [ -z "$FILE" ] || [ ! -f "$FILE" ]; then
|
|
50
|
+
echo "DIAGRAMLINT:error file line=0 diagram file not found: ${FILE:-<missing --file>}"
|
|
51
|
+
exit 2
|
|
52
|
+
fi
|
|
53
|
+
|
|
54
|
+
# The evidence sidecar the case renderer reads, in the diagram's own directory
|
|
55
|
+
# (attachmentsSiblingPath: `as-is/diagram.md` -> `as-is/attachments.md`).
|
|
56
|
+
# Resolved with parameter expansion rather than `dirname` so the script keeps
|
|
57
|
+
# working on hosts with no external coreutils.
|
|
58
|
+
#
|
|
59
|
+
# Both separators, and no `case` glob: the caller may hand us a Windows path
|
|
60
|
+
# (`D:\a\s\as-is\diagram.md`), and just-bash's `case` does not match a
|
|
61
|
+
# backslash pattern at all, so a `*\\*` arm would silently skip the audit
|
|
62
|
+
# there. Dropping just the file name keeps whatever separator the caller used,
|
|
63
|
+
# so a Windows path never turns into a mixed `D:\a\s\dir/attachments.md`.
|
|
64
|
+
# A path with no separator at all leaves the prefix empty, which resolves the
|
|
65
|
+
# sidecar in the working directory — the same place the diagram is.
|
|
66
|
+
ATTACHMENTS="${FILE%"${FILE##*[/\\]}"}attachments.md"
|
|
67
|
+
|
|
68
|
+
{
|
|
69
|
+
# Frame every authored source line so the outer AWK program can use an
|
|
70
|
+
# unforgeable control record without sacrificing original line numbers.
|
|
71
|
+
awk '{ printf "S%s\n", $0 }' "$FILE"
|
|
72
|
+
if [ -f "$ATTACHMENTS" ]; then
|
|
73
|
+
awk '{ printf "A%s\n", $0 }' "$ATTACHMENTS"
|
|
74
|
+
fi
|
|
75
|
+
printf '%s\n' 'E'
|
|
76
|
+
} | awk '
|
|
77
|
+
function err(code, msg) { printf "DIAGRAMLINT:error %s line=%d %s\n", code, currentline, msg; errs++ }
|
|
78
|
+
function warn(code, msg) { printf "DIAGRAMLINT:warn %s line=%d %s\n", code, currentline, msg; warns++ }
|
|
79
|
+
function isreserved(id) { return id in reserved }
|
|
80
|
+
function validslug(s) { return s ~ /^[a-z0-9]+(-[a-z0-9]+)*$/ }
|
|
81
|
+
function validnodeid(id) { return id ~ /^[A-Za-z][A-Za-z0-9_]*$/ }
|
|
82
|
+
function markdecl(id) {
|
|
83
|
+
if (isreserved(id)) { err("reserved-id", "Mermaid keyword used as a node ID: " id " (rename it, e.g. " id "Node)"); return }
|
|
84
|
+
if (id in subgraphids) { err("duplicate-id", "ID is used by both a node and a subgraph: " id); return }
|
|
85
|
+
if (id in decl) { err("duplicate-id", "node ID declared more than once: " id); return }
|
|
86
|
+
decl[id] = currentline
|
|
87
|
+
declgroup[id] = currentgroup
|
|
88
|
+
nodes++
|
|
89
|
+
}
|
|
90
|
+
function marksubgraph(id, label) {
|
|
91
|
+
if (isreserved(id)) { err("reserved-id", "Mermaid keyword used as a subgraph ID: " id); return }
|
|
92
|
+
if (id in decl) { err("duplicate-id", "ID is used by both a node and a subgraph: " id); return }
|
|
93
|
+
if (id in subgraphids) { err("duplicate-id", "subgraph ID declared more than once: " id); return }
|
|
94
|
+
subgraphids[id] = currentline
|
|
95
|
+
subgraphlabel[id] = label
|
|
96
|
+
sgcount++
|
|
97
|
+
}
|
|
98
|
+
# Stage label -> sidecar key slug, per slugifyStageLabel in caseStageKeys.ts.
|
|
99
|
+
function stageslug(label, s) {
|
|
100
|
+
s = tolower(label)
|
|
101
|
+
gsub(/[^a-z0-9]+/, "-", s)
|
|
102
|
+
sub(/^-+/, "", s)
|
|
103
|
+
sub(/-+$/, "", s)
|
|
104
|
+
return s
|
|
105
|
+
}
|
|
106
|
+
# One key line of the sidecar frontmatter, quoted either way; "" when the line
|
|
107
|
+
# is not a plain key (an exotic spelling is skipped, never guessed at).
|
|
108
|
+
function sidecarkey(body, m, q, e) {
|
|
109
|
+
q = substr(body, 1, 1)
|
|
110
|
+
if (q == "\"" || q == sprintf("%c", 39)) {
|
|
111
|
+
e = index(substr(body, 2), q)
|
|
112
|
+
if (e == 0) return ""
|
|
113
|
+
if (substr(body, e + 2) !~ /^[ \t]*:/) return ""
|
|
114
|
+
return substr(body, 2, e - 1)
|
|
115
|
+
}
|
|
116
|
+
if (body ~ /^[A-Za-z0-9_][A-Za-z0-9_.-]*:([ \t]|$)/) { m = body; sub(/:.*$/, "", m); return m }
|
|
117
|
+
return ""
|
|
118
|
+
}
|
|
119
|
+
# Collect the stage/item keys the sidecar files evidence and notes under. Only
|
|
120
|
+
# the `attachments:` and `notes:` maps of the leading frontmatter are read —
|
|
121
|
+
# the same block parseDiagramAttachments reads, by the same rules.
|
|
122
|
+
function readsidecar(l, indent, body, k) {
|
|
123
|
+
if (fmstate == 2) return
|
|
124
|
+
if (fmstate == 0) {
|
|
125
|
+
# extractFrontmatter anchors on the very first line; anything else means
|
|
126
|
+
# the file has no frontmatter and the renderer reads nothing from it.
|
|
127
|
+
fmstate = (attline == 1 && l == "---") ? 1 : 2
|
|
128
|
+
return
|
|
129
|
+
}
|
|
130
|
+
if (l == "---") { fmstate = 2; fmclosed = 1; return }
|
|
131
|
+
if (l ~ /^[ \t]*$/ || l ~ /^[ \t]*#/ || l ~ /^\t/) return
|
|
132
|
+
indent = 0
|
|
133
|
+
while (substr(l, indent + 1, 1) == " ") indent++
|
|
134
|
+
body = substr(l, indent + 1)
|
|
135
|
+
if (indent == 0) {
|
|
136
|
+
sidechildindent = -1
|
|
137
|
+
if (body ~ /^attachments:[ \t]*$/) sidesection = "attachments"
|
|
138
|
+
else if (body ~ /^notes:[ \t]*$/) sidesection = "notes"
|
|
139
|
+
else sidesection = ""
|
|
140
|
+
return
|
|
141
|
+
}
|
|
142
|
+
if (sidesection == "") return
|
|
143
|
+
if (sidechildindent < 0) sidechildindent = indent
|
|
144
|
+
if (indent != sidechildindent) return
|
|
145
|
+
# A map whose direct children are list items is not the documented
|
|
146
|
+
# key-per-stage shape; leave it to the renderer rather than guess at it.
|
|
147
|
+
if (substr(body, 1, 1) == "-") { sidesection = ""; return }
|
|
148
|
+
k = sidecarkey(body)
|
|
149
|
+
if (k == "") return
|
|
150
|
+
attkeycount++
|
|
151
|
+
attkey[attkeycount] = k
|
|
152
|
+
attkeyline[attkeycount] = attline
|
|
153
|
+
attkeymap[attkeycount] = sidesection
|
|
154
|
+
}
|
|
155
|
+
# A ref or note under a key no stage or step answers to renders nothing and
|
|
156
|
+
# raises no error (findOrphanedSidecarKeys): the evidence is silently lost, so
|
|
157
|
+
# fail. Only case subgraphs are stages; a generic map answers to node ids alone.
|
|
158
|
+
function checksidecar(i, k, id, label, slug, isnote, resolved, rekey) {
|
|
159
|
+
if (family == "case-design") {
|
|
160
|
+
for (id in subgraphids) {
|
|
161
|
+
stagekeys[id] = 1
|
|
162
|
+
label = subgraphlabel[id]
|
|
163
|
+
if (label != "") { slug = stageslug(label); if (slug != "") stagekeys[slug] = 1 }
|
|
164
|
+
}
|
|
165
|
+
rekey = "a stage subgraph id, its label slug, or a work item node id"
|
|
166
|
+
} else {
|
|
167
|
+
rekey = "a step node id"
|
|
168
|
+
}
|
|
169
|
+
for (i = 1; i <= attkeycount; i++) {
|
|
170
|
+
k = attkey[i]
|
|
171
|
+
isnote = (attkeymap[i] == "notes")
|
|
172
|
+
# Both maps resolve the same way: a stage answers to its subgraph id and
|
|
173
|
+
# to its label slug, a work item to its node id. Evidence and notes are
|
|
174
|
+
# filed per stage OR per work item.
|
|
175
|
+
resolved = (k in stagekeys) || (k in decl)
|
|
176
|
+
if (!resolved) {
|
|
177
|
+
currentline = 0
|
|
178
|
+
if (isnote)
|
|
179
|
+
err("orphaned-note-key", "attachments.md:" attkeyline[i] " note key \"" k "\" answers to nothing on this map (re-key it to " rekey ", or drop it)")
|
|
180
|
+
else
|
|
181
|
+
err("orphaned-attachment-key", "attachments.md:" attkeyline[i] " evidence key \"" k "\" answers to nothing on this map (re-key it to " rekey ", or drop it)")
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
function checkclasstoken(tok) {
|
|
186
|
+
if (tok == "case-ends-case") { if (family == "generic") err("case-class-in-generic", "case-ends-case is a case-design class"); return 1 }
|
|
187
|
+
if (tok ~ /^mode-/) {
|
|
188
|
+
if (family == "case-design") { err("mode-in-case-map", "mode-* classes are not allowed on case-design maps: " tok); return 1 }
|
|
189
|
+
if (substr(tok, 6) in modes) return 1
|
|
190
|
+
if (tok == "mode-current" || tok == "mode-future") { err("unknown-class", tok " does not exist — the wiki folder carries current-vs-future; class how the step runs (mode-manual, mode-automated, ...)"); return 0 }
|
|
191
|
+
err("unknown-class", "not a supported mode: " tok)
|
|
192
|
+
return 0
|
|
193
|
+
}
|
|
194
|
+
if (tok ~ /^kind-/) {
|
|
195
|
+
if (substr(tok, 6) in kinds) return 1
|
|
196
|
+
if (tok == "kind-stage") { err("unknown-class", "kind-stage is not a class — stages are subgraphs, not classes"); return 0 }
|
|
197
|
+
err("unknown-class", "not a supported kind: " tok)
|
|
198
|
+
return 0
|
|
199
|
+
}
|
|
200
|
+
if (tok ~ /^case-task-/) {
|
|
201
|
+
if (family == "generic") { err("case-class-in-generic", "case-task-* classes belong on case-design maps: " tok); return 1 }
|
|
202
|
+
if (substr(tok, 11) in casetasks) return 1
|
|
203
|
+
err("unknown-class", "not a supported case task type: " tok)
|
|
204
|
+
return 0
|
|
205
|
+
}
|
|
206
|
+
if (tok ~ /^owner-/) { if (validslug(substr(tok, 7))) return 1; err("bad-slug", "owner slug must be lowercase-hyphen: " tok); return 0 }
|
|
207
|
+
if (tok ~ /^system-/) { if (validslug(substr(tok, 8))) return 1; err("bad-slug", "system slug must be lowercase-hyphen: " tok); return 0 }
|
|
208
|
+
if (tok ~ /^icon-/) { if (validslug(substr(tok, 6))) return 1; err("bad-slug", "icon slug must be lowercase-hyphen: " tok); return 0 }
|
|
209
|
+
if (tok in modes) { warn("legacy-mode", "legacy mode alias, use mode-" tok); return 1 }
|
|
210
|
+
err("unknown-class", "unrecognized class token (styling classes are not semantic): " tok)
|
|
211
|
+
return 0
|
|
212
|
+
}
|
|
213
|
+
BEGIN {
|
|
214
|
+
split("end subgraph flowchart graph class classDef style linkStyle click direction", reservedValues, " ")
|
|
215
|
+
for (i in reservedValues) reserved[reservedValues[i]] = 1
|
|
216
|
+
split("automated assisted agent review manual", modeValues, " ")
|
|
217
|
+
for (i in modeValues) modes[modeValues[i]] = 1
|
|
218
|
+
split("task decision event wait subprocess control evidence data-store", kindValues, " ")
|
|
219
|
+
for (i in kindValues) kinds[kindValues[i]] = 1
|
|
220
|
+
split("process action agent api-workflow rpa wait-for-timer wait-for-connector execute-connector-activity case-management", caseTaskValues, " ")
|
|
221
|
+
for (i in caseTaskValues) casetasks[caseTaskValues[i]] = 1
|
|
222
|
+
infence = 0; fenceopens = 0; family = ""; flowcharts = 0
|
|
223
|
+
nodes = 0; edgecount = 0; errs = 0; warns = 0; total = 0
|
|
224
|
+
sourceline = 0; currentline = 0; insub = 0; currentgroup = ""
|
|
225
|
+
attline = 0; fmstate = 0; fmclosed = 0; sidesection = ""; sidechildindent = -1; attkeycount = 0
|
|
226
|
+
}
|
|
227
|
+
{
|
|
228
|
+
record = $0
|
|
229
|
+
if (record == "E") {
|
|
230
|
+
currentline = sourceline
|
|
231
|
+
if (fenceopens == 0) { currentline = 0; err("no-fence", "no ```mermaid fence found") }
|
|
232
|
+
if (infence) { currentline = sourceline; err("unclosed-fence", "the Mermaid fence is never closed") }
|
|
233
|
+
if (insub > 0) { currentline = sourceline; err("unclosed-subgraph", "subgraph is never closed with end") }
|
|
234
|
+
if (fenceopens <= 1) {
|
|
235
|
+
if (flowcharts == 0) { currentline = 0; err("missing-flowchart", "the fragment must start with a flowchart declaration") }
|
|
236
|
+
if (flowcharts > 1) { currentline = 0; err("multiple-flowchart", "only one flowchart declaration is allowed") }
|
|
237
|
+
if (nodes < 2 || edgecount == 0) { currentline = 0; err("sparse-graph", "renderer needs at least 2 nodes and 1 edge (nodes=" nodes ", edges=" edgecount ")") }
|
|
238
|
+
if (family == "case-design" && sgcount == 0) { currentline = 0; err("missing-stages", "case-design maps group work into stage subgraphs; found none (stages are subgraphs, not classes)") }
|
|
239
|
+
for (id in refat) {
|
|
240
|
+
if (!(id in decl) && !(id in subgraphids)) { currentline = refat[id]; err("undeclared-endpoint", "edge references undeclared node: " id) }
|
|
241
|
+
}
|
|
242
|
+
for (id in classedat) {
|
|
243
|
+
if (!(id in decl)) { currentline = classedat[id]; err("undeclared-class-node", "class statement references undeclared node: " id) }
|
|
244
|
+
}
|
|
245
|
+
coveredcount = 0
|
|
246
|
+
for (id in decl) {
|
|
247
|
+
if (id in covered) {
|
|
248
|
+
coveredcount++
|
|
249
|
+
} else {
|
|
250
|
+
currentline = decl[id]
|
|
251
|
+
err("uncovered-node", "node " id " has no recognized semantic class (renderer requires 100% coverage for supported status)")
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
if (family == "case-design") {
|
|
255
|
+
caseterminalcount = 0
|
|
256
|
+
for (id in decl) {
|
|
257
|
+
currentline = decl[id]
|
|
258
|
+
if (declgroup[id] == "" && nodekind[id] == "task")
|
|
259
|
+
err("case-task-outside-stage", "Case work task must be inside a stage subgraph: " id)
|
|
260
|
+
else if (declgroup[id] == "" && (nodekind[id] != "event" || incoming[id] > 0 || outgoing[id] == 0))
|
|
261
|
+
err("case-node-outside-stage", "only start kind-event nodes with an outgoing edge and no incoming edge may be outside Case stage subgraphs: " id)
|
|
262
|
+
if (nodecaseends[id]) {
|
|
263
|
+
caseterminalcount++
|
|
264
|
+
if (nodekind[id] != "task" || nodecasetaskcount[id] != 1 || outgoing[id] > 0)
|
|
265
|
+
err("conflicting-semantics", "case-ends-case requires kind-task with exactly one case-task-* class and no outgoing edge: " id)
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
if (caseterminalcount == 0) { currentline = 0; err("missing-case-terminal", "case-design maps require at least one case-ends-case terminal task") }
|
|
269
|
+
}
|
|
270
|
+
# A stageless Case map already failed missing-stages; auditing the
|
|
271
|
+
# sidecar against an empty stage set would only add noise.
|
|
272
|
+
if (fmclosed && attkeycount > 0 && (family == "generic" || (family == "case-design" && sgcount > 0))) checksidecar()
|
|
273
|
+
if (nodes > 0 && coveredcount == 0) { currentline = 0; err("missing-semantics", "zero nodes carry a recognized semantic class; the rich view falls back") }
|
|
274
|
+
if (total > 10000) { currentline = 0; err("source-too-large", "fenced source is " total " chars; renderer caps at 10000") }
|
|
275
|
+
else if (total > 9000) { currentline = 0; warn("source-size", "fenced source is " total " chars; renderer caps at 10000") }
|
|
276
|
+
}
|
|
277
|
+
if (errs > 0) { printf "DIAGRAMLINT:fail errors=%d warnings=%d\n", errs, warns; exit 1 }
|
|
278
|
+
# aimed at this lints 2-node renderer minimum instead -- four observed maps
|
|
279
|
+
# landed at 4-7 nodes and lost the size slice. Printing the real band here
|
|
280
|
+
# closes that information gap without turning it into a refusal: a genuinely
|
|
281
|
+
# small process is not a defect, and a node floor is satisfiable by invention.
|
|
282
|
+
printf "DIAGRAMLINT:info band nodes=%d edges=%d\n", nodes, edgecount
|
|
283
|
+
printf "DIAGRAMLINT:ok warnings=%d\n", warns
|
|
284
|
+
exit 0
|
|
285
|
+
}
|
|
286
|
+
if (substr(record, 1, 1) == "A") {
|
|
287
|
+
attline++
|
|
288
|
+
# Both Mermaid families read the sidecar: case stages and items, generic
|
|
289
|
+
# steps (their UI-level detail opens from the node).
|
|
290
|
+
if (family == "case-design" || family == "generic") {
|
|
291
|
+
attsrc = substr(record, 2)
|
|
292
|
+
sub(/\r$/, "", attsrc)
|
|
293
|
+
readsidecar(attsrc)
|
|
294
|
+
}
|
|
295
|
+
next
|
|
296
|
+
}
|
|
297
|
+
if (substr(record, 1, 1) != "S") {
|
|
298
|
+
currentline = sourceline
|
|
299
|
+
err("unknown-statement", "invalid framed source record")
|
|
300
|
+
next
|
|
301
|
+
}
|
|
302
|
+
sourceline++
|
|
303
|
+
currentline = sourceline
|
|
304
|
+
line = substr(record, 2)
|
|
305
|
+
sub(/\r$/, "", line)
|
|
306
|
+
if (!infence) {
|
|
307
|
+
if (line ~ /^[ \t]*$/) next
|
|
308
|
+
if (line ~ /^```mermaid/) {
|
|
309
|
+
fenceopens++
|
|
310
|
+
if (fenceopens > 1) { err("multiple-fences", "only one fenced Mermaid block is allowed"); next }
|
|
311
|
+
infence = 1
|
|
312
|
+
if (line ~ /^```mermaid[ \t]+diagramFamily=(generic|case-design)[ \t]*$/) {
|
|
313
|
+
family = line
|
|
314
|
+
sub(/^.*diagramFamily=/, "", family)
|
|
315
|
+
sub(/[ \t]*$/, "", family)
|
|
316
|
+
} else if (match(line, /diagramFamily=[^ \t]*/)) {
|
|
317
|
+
family = substr(line, RSTART + 14, RLENGTH - 14)
|
|
318
|
+
err("bad-family", "diagramFamily must be generic or case-design, got: " family)
|
|
319
|
+
family = "generic"
|
|
320
|
+
} else {
|
|
321
|
+
err("missing-family", "opening fence needs diagramFamily=generic or diagramFamily=case-design")
|
|
322
|
+
family = "generic"
|
|
323
|
+
}
|
|
324
|
+
next
|
|
325
|
+
}
|
|
326
|
+
err("outside-fence", "content outside the fenced Mermaid block (prose belongs in overview.md)")
|
|
327
|
+
next
|
|
328
|
+
}
|
|
329
|
+
if (line ~ /^```[ \t]*$/) { infence = 0; next }
|
|
330
|
+
|
|
331
|
+
total += length(line) + 1
|
|
332
|
+
|
|
333
|
+
# HTML in labels breaks the subset (and <br/> breaks narrow-panel labels)
|
|
334
|
+
if (line ~ /<br/ || line ~ /<\/?[A-Za-z][A-Za-z0-9]*[^>]*>/)
|
|
335
|
+
err("html-in-label", "HTML is not allowed; keep labels single-line plain text")
|
|
336
|
+
if (line ~ /:::/)
|
|
337
|
+
err("triple-colon", ":::class shorthand is not allowed; use explicit class statements")
|
|
338
|
+
|
|
339
|
+
raw = line
|
|
340
|
+
sub(/^[ \t]+/, "", raw)
|
|
341
|
+
stripped = raw
|
|
342
|
+
gsub(/"[^"]*"/, "\"\"", stripped)
|
|
343
|
+
|
|
344
|
+
if (raw ~ /^[ \t]*$/) next
|
|
345
|
+
if (stripped ~ /^[ \t]*%%/) { warn("comment", "avoid %% comments in canonical fragments"); next }
|
|
346
|
+
|
|
347
|
+
if (stripped ~ /^[ \t]*(style|linkStyle|click)[ \t]/) { err("forbidden-directive", "style/linkStyle/click are not allowed"); next }
|
|
348
|
+
|
|
349
|
+
if (stripped ~ /^flowchart/) {
|
|
350
|
+
flowcharts++
|
|
351
|
+
n = split(stripped, ff, /[ \t]+/)
|
|
352
|
+
if (n != 2 || ff[1] != "flowchart") {
|
|
353
|
+
err("malformed-flowchart", "flowchart must be exactly: flowchart TB or flowchart LR")
|
|
354
|
+
next
|
|
355
|
+
}
|
|
356
|
+
dir = ff[2]
|
|
357
|
+
if (family == "generic" && dir != "TB") err("wrong-direction", "generic maps must be flowchart TB, got: " dir)
|
|
358
|
+
if (family == "case-design" && dir != "LR") err("wrong-direction", "case-design maps must be flowchart LR, got: " dir)
|
|
359
|
+
next
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
if (stripped ~ /^[ \t]*classDef[ \t]/) {
|
|
363
|
+
n = split(stripped, cf, /[ \t]+/)
|
|
364
|
+
if (family == "case-design")
|
|
365
|
+
err("classdef-in-case-map", "case-design maps never carry classDef declarations")
|
|
366
|
+
else
|
|
367
|
+
warn("classdef-nonsemantic", "classDef " cf[2] " is styling-only; do not author classDef declarations")
|
|
368
|
+
next
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
if (stripped ~ /^[ \t]*class[ \t]/) {
|
|
372
|
+
n = split(stripped, cl, /[ \t]+/)
|
|
373
|
+
if (n > 3) {
|
|
374
|
+
# Space-separated class tokens are a hard Mermaid parse error
|
|
375
|
+
# ("got SPACE"); join and validate every token so none escape.
|
|
376
|
+
err("class-form", "class tokens must be comma-separated, not space-separated: join them (class <nodeId> <class1>,<class2>)")
|
|
377
|
+
for (k = 4; k <= n; k++) cl[3] = cl[3] "," cl[k]
|
|
378
|
+
} else if (n != 3) { warn("class-form", "class statement should be: class <nodeId> <class1>,<class2>"); }
|
|
379
|
+
idpart = cl[2]
|
|
380
|
+
if (idpart ~ /,/) err("multi-node-class", "one class statement per node is required: " idpart)
|
|
381
|
+
if (!validnodeid(idpart)) err("class-form", "class statement needs one node ID: class <nodeId> <class1>,<class2>")
|
|
382
|
+
if (idpart in classedat) err("duplicate-class-statement", "node " idpart " has more than one class statement")
|
|
383
|
+
t = split(cl[3], toks, /,/)
|
|
384
|
+
recognized = 0
|
|
385
|
+
kindcount = 0; modecount = 0; haskindtask = 0; casetaskcount = 0
|
|
386
|
+
kindvalue = ""; caseends = 0
|
|
387
|
+
for (j = 1; j <= t; j++) {
|
|
388
|
+
if (toks[j] != "") {
|
|
389
|
+
if (checkclasstoken(toks[j])) recognized = 1
|
|
390
|
+
if (substr(toks[j], 6) in modes && toks[j] ~ /^mode-/) modecount++
|
|
391
|
+
if (substr(toks[j], 6) in kinds && toks[j] ~ /^kind-/) {
|
|
392
|
+
kindcount++
|
|
393
|
+
kindvalue = substr(toks[j], 6)
|
|
394
|
+
if (toks[j] == "kind-task") haskindtask = 1
|
|
395
|
+
}
|
|
396
|
+
if (substr(toks[j], 11) in casetasks && toks[j] ~ /^case-task-/) casetaskcount++
|
|
397
|
+
if (toks[j] == "case-ends-case") caseends = 1
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
if (family == "generic") {
|
|
401
|
+
if (kindcount == 0) err("missing-kind", "generic node " idpart " needs exactly one kind-* class")
|
|
402
|
+
if (kindcount > 1) err("conflicting-semantics", "generic node " idpart " carries more than one kind-* class")
|
|
403
|
+
if (modecount == 0) err("missing-mode", "generic node " idpart " needs exactly one mode-* class")
|
|
404
|
+
if (modecount > 1) err("conflicting-semantics", "generic node " idpart " carries more than one mode-* class")
|
|
405
|
+
}
|
|
406
|
+
if (family == "case-design") {
|
|
407
|
+
if (kindcount == 0) err("missing-kind", "case-design node " idpart " needs exactly one kind-* class")
|
|
408
|
+
if (kindcount > 1) err("conflicting-semantics", "case-design node " idpart " carries more than one kind-* class")
|
|
409
|
+
if (haskindtask && casetaskcount == 0) err("missing-case-task", "work step " idpart " needs exactly one case-task-* class")
|
|
410
|
+
if (haskindtask && casetaskcount > 1) err("conflicting-semantics", "work step " idpart " carries more than one case-task-* class")
|
|
411
|
+
if (!haskindtask && casetaskcount > 0) err("conflicting-semantics", "only kind-task nodes may carry case-task-* classes: " idpart)
|
|
412
|
+
}
|
|
413
|
+
classedat[idpart] = currentline
|
|
414
|
+
if (kindcount == 1) nodekind[idpart] = kindvalue
|
|
415
|
+
nodecasetaskcount[idpart] = casetaskcount
|
|
416
|
+
nodecaseends[idpart] = caseends
|
|
417
|
+
if (recognized) covered[idpart] = 1
|
|
418
|
+
next
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
if (stripped ~ /^[ \t]*subgraph[ \t]/) {
|
|
422
|
+
if (family == "generic") warn("subgraph-in-generic", "subgraphs are a case-design construct")
|
|
423
|
+
rest = stripped
|
|
424
|
+
sub(/^subgraph[ \t]+/, "", rest)
|
|
425
|
+
if (match(rest, /^[A-Za-z][A-Za-z0-9_]*\["[^"]*"\][ \t]*$/)) {
|
|
426
|
+
sid = rest
|
|
427
|
+
sub(/\[.*$/, "", sid)
|
|
428
|
+
# The label reads off raw: stripped has every quoted string blanked.
|
|
429
|
+
rawrest = raw
|
|
430
|
+
sub(/^subgraph[ \t]+/, "", rawrest)
|
|
431
|
+
sub(/[ \t]*$/, "", rawrest)
|
|
432
|
+
sglabel = ""
|
|
433
|
+
if (match(rawrest, /\["[^"]*"\]$/)) sglabel = substr(rawrest, RSTART + 2, RLENGTH - 4)
|
|
434
|
+
marksubgraph(sid, sglabel)
|
|
435
|
+
insub++
|
|
436
|
+
substack[insub] = sid
|
|
437
|
+
currentgroup = sid
|
|
438
|
+
} else {
|
|
439
|
+
err("malformed-subgraph", "subgraph must be: subgraph stageId[\"Stage name\"]")
|
|
440
|
+
}
|
|
441
|
+
next
|
|
442
|
+
}
|
|
443
|
+
if (stripped ~ /^[ \t]*end[ \t]*$/) {
|
|
444
|
+
if (insub > 0) {
|
|
445
|
+
delete substack[insub]
|
|
446
|
+
insub--
|
|
447
|
+
currentgroup = (insub > 0 ? substack[insub] : "")
|
|
448
|
+
if (family == "generic") warn("subgraph-in-generic", "subgraph end in a generic map")
|
|
449
|
+
}
|
|
450
|
+
else err("stray-end", "end without an open subgraph")
|
|
451
|
+
next
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
hasedge = (stripped ~ /-->/ || stripped ~ /-\.->/ || stripped ~ /==>/ || stripped ~ /-\.[^>]*\.->/ || stripped ~ /--[^>-][^>]*-->/)
|
|
455
|
+
isnode = (raw ~ /^[A-Za-z][A-Za-z0-9_]*(\["[^"]*"\]|\{"[^"]*"\}|\(\("[^"]*"\)\))[ \t]*$/)
|
|
456
|
+
|
|
457
|
+
# Inline node declarations: id immediately followed by [ { or ((
|
|
458
|
+
work = stripped
|
|
459
|
+
while (match(work, /[A-Za-z][A-Za-z0-9_]*(\[|\{|\(\()/)) {
|
|
460
|
+
seg = substr(work, RSTART, RLENGTH)
|
|
461
|
+
id = seg
|
|
462
|
+
sub(/(\[|\{|\(\()$/, "", id)
|
|
463
|
+
opench = substr(seg, length(id) + 1)
|
|
464
|
+
after = substr(work, RSTART + RLENGTH, 1)
|
|
465
|
+
markdecl(id)
|
|
466
|
+
if (hasedge) warn("inline-decl", "declare node " id " on its own line before any edge references it")
|
|
467
|
+
if (after != "\"") err("unquoted-label", "label for node " id " must be double-quoted inside its shape")
|
|
468
|
+
work = substr(work, RSTART + RLENGTH)
|
|
469
|
+
}
|
|
470
|
+
# Unsupported shapes: id followed by ([ or (single paren not part of ((
|
|
471
|
+
work2 = stripped
|
|
472
|
+
while (match(work2, /[A-Za-z][A-Za-z0-9_]*\(\[/)) {
|
|
473
|
+
seg = substr(work2, RSTART, RLENGTH)
|
|
474
|
+
id = seg
|
|
475
|
+
sub(/\(\[$/, "", id)
|
|
476
|
+
err("unsupported-shape", "shape ([ ... ]) is outside the subset for node " id "; use [\"...\"], {\"...\"}, or ((\"...\"))")
|
|
477
|
+
markdecl(id)
|
|
478
|
+
work2 = substr(work2, RSTART + RLENGTH)
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
if (hasedge) {
|
|
482
|
+
if (stripped !~ /^[A-Za-z][A-Za-z0-9_]*[ \t]*(-->\|[^|]*\||-->|==>|-\.[^>]*\.->|--[^>-][^>]*-->)[ \t]*[A-Za-z][A-Za-z0-9_]*[ \t]*$/)
|
|
483
|
+
err("malformed-edge", "edge must connect exactly two declared node IDs")
|
|
484
|
+
edgecount++
|
|
485
|
+
e = stripped
|
|
486
|
+
if (e ~ /--[ \t]+[^>-][^>]*[ \t]+-->/) warn("edge-text-style", "prefer -->|Outcome| over -- text --> edge labels")
|
|
487
|
+
# remove label/shape groups and edge text so only IDs remain
|
|
488
|
+
gsub(/\|[^|]*\|/, " ", e)
|
|
489
|
+
gsub(/--[^>-][^>]*-->/, " --> ", e)
|
|
490
|
+
gsub(/-\.[^>]*\.->/, " --> ", e)
|
|
491
|
+
gsub(/\[[^]]*\]/, " ", e); gsub(/\[[^]]*\]/, " ", e)
|
|
492
|
+
gsub(/\{[^}]*\}/, " ", e)
|
|
493
|
+
gsub(/\([^()]*\)/, " ", e); gsub(/\([^()]*\)/, " ", e)
|
|
494
|
+
gsub(/-->|==>|-\.->|&/, " ", e)
|
|
495
|
+
endpointcount = 0
|
|
496
|
+
n = split(e, tokens, /[^A-Za-z0-9_]+/)
|
|
497
|
+
for (i = 1; i <= n; i++) {
|
|
498
|
+
tok = tokens[i]
|
|
499
|
+
if (tok != "" && tok !~ /^[0-9]/) {
|
|
500
|
+
if (isreserved(tok)) {
|
|
501
|
+
err("reserved-id", "Mermaid keyword used as an edge endpoint: " tok)
|
|
502
|
+
} else {
|
|
503
|
+
endpointcount++
|
|
504
|
+
endpoints[endpointcount] = tok
|
|
505
|
+
refat[tok] = currentline
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
if (endpointcount >= 2) {
|
|
510
|
+
outgoing[endpoints[1]]++
|
|
511
|
+
incoming[endpoints[2]]++
|
|
512
|
+
}
|
|
513
|
+
for (i = 1; i <= endpointcount; i++) delete endpoints[i]
|
|
514
|
+
} else if (!isnode) {
|
|
515
|
+
err("unknown-statement", "unsupported structural statement: " raw)
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
'
|
|
519
|
+
exit $?
|