@aqajooon/mcp-server-azure-devops 0.0.0-stage → 0.1.55
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/LICENSE +21 -0
- package/README.md +318 -2
- package/dist/clients/azure-devops.d.ts +105 -0
- package/dist/clients/azure-devops.js +501 -0
- package/dist/clients/azure-devops.js.map +1 -0
- package/dist/features/environments/feature.d.ts +24 -0
- package/dist/features/environments/feature.js +48 -0
- package/dist/features/environments/feature.js.map +1 -0
- package/dist/features/environments/index.d.ts +10 -0
- package/dist/features/environments/index.js +42 -0
- package/dist/features/environments/index.js.map +1 -0
- package/dist/features/environments/schema.d.ts +7 -0
- package/dist/features/environments/schema.js +28 -0
- package/dist/features/environments/schema.js.map +1 -0
- package/dist/features/libraries/feature.d.ts +27 -0
- package/dist/features/libraries/feature.js +47 -0
- package/dist/features/libraries/feature.js.map +1 -0
- package/dist/features/libraries/index.d.ts +10 -0
- package/dist/features/libraries/index.js +42 -0
- package/dist/features/libraries/index.js.map +1 -0
- package/dist/features/libraries/schema.d.ts +7 -0
- package/dist/features/libraries/schema.js +27 -0
- package/dist/features/libraries/schema.js.map +1 -0
- package/dist/features/organizations/__test__/test-helpers.d.ts +13 -0
- package/dist/features/organizations/__test__/test-helpers.js +38 -0
- package/dist/features/organizations/__test__/test-helpers.js.map +1 -0
- package/dist/features/organizations/index.d.ts +13 -0
- package/dist/features/organizations/index.js +63 -0
- package/dist/features/organizations/index.js.map +1 -0
- package/dist/features/organizations/list-organizations/feature.d.ts +13 -0
- package/dist/features/organizations/list-organizations/feature.js +101 -0
- package/dist/features/organizations/list-organizations/feature.js.map +1 -0
- package/dist/features/organizations/list-organizations/index.d.ts +2 -0
- package/dist/features/organizations/list-organizations/index.js +19 -0
- package/dist/features/organizations/list-organizations/index.js.map +1 -0
- package/dist/features/organizations/list-organizations/schema.d.ts +2 -0
- package/dist/features/organizations/list-organizations/schema.js +6 -0
- package/dist/features/organizations/list-organizations/schema.js.map +1 -0
- package/dist/features/organizations/schemas.d.ts +6 -0
- package/dist/features/organizations/schemas.js +10 -0
- package/dist/features/organizations/schemas.js.map +1 -0
- package/dist/features/organizations/tool-definitions.d.ts +5 -0
- package/dist/features/organizations/tool-definitions.js +16 -0
- package/dist/features/organizations/tool-definitions.js.map +1 -0
- package/dist/features/organizations/types.d.ts +21 -0
- package/dist/features/organizations/types.js +8 -0
- package/dist/features/organizations/types.js.map +1 -0
- package/dist/features/pipelines/artifacts.d.ts +11 -0
- package/dist/features/pipelines/artifacts.js +288 -0
- package/dist/features/pipelines/artifacts.js.map +1 -0
- package/dist/features/pipelines/download-pipeline-artifact/feature.d.ts +3 -0
- package/dist/features/pipelines/download-pipeline-artifact/feature.js +222 -0
- package/dist/features/pipelines/download-pipeline-artifact/feature.js.map +1 -0
- package/dist/features/pipelines/download-pipeline-artifact/index.d.ts +2 -0
- package/dist/features/pipelines/download-pipeline-artifact/index.js +19 -0
- package/dist/features/pipelines/download-pipeline-artifact/index.js.map +1 -0
- package/dist/features/pipelines/download-pipeline-artifact/schema.d.ts +7 -0
- package/dist/features/pipelines/download-pipeline-artifact/schema.js +23 -0
- package/dist/features/pipelines/download-pipeline-artifact/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline/feature.d.ts +10 -0
- package/dist/features/pipelines/get-pipeline/feature.js +46 -0
- package/dist/features/pipelines/get-pipeline/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline/index.js +19 -0
- package/dist/features/pipelines/get-pipeline/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline/schema.d.ts +9 -0
- package/dist/features/pipelines/get-pipeline/schema.js +29 -0
- package/dist/features/pipelines/get-pipeline/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-log/feature.d.ts +3 -0
- package/dist/features/pipelines/get-pipeline-log/feature.js +57 -0
- package/dist/features/pipelines/get-pipeline-log/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-log/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline-log/index.js +19 -0
- package/dist/features/pipelines/get-pipeline-log/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-log/schema.d.ts +13 -0
- package/dist/features/pipelines/get-pipeline-log/schema.js +40 -0
- package/dist/features/pipelines/get-pipeline-log/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run/feature.d.ts +3 -0
- package/dist/features/pipelines/get-pipeline-run/feature.js +76 -0
- package/dist/features/pipelines/get-pipeline-run/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline-run/index.js +19 -0
- package/dist/features/pipelines/get-pipeline-run/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run/schema.d.ts +6 -0
- package/dist/features/pipelines/get-pipeline-run/schema.js +19 -0
- package/dist/features/pipelines/get-pipeline-run/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-sources/feature.d.ts +26 -0
- package/dist/features/pipelines/get-pipeline-run-sources/feature.js +105 -0
- package/dist/features/pipelines/get-pipeline-run-sources/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-sources/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline-run-sources/index.js +19 -0
- package/dist/features/pipelines/get-pipeline-run-sources/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-sources/schema.d.ts +6 -0
- package/dist/features/pipelines/get-pipeline-run-sources/schema.js +19 -0
- package/dist/features/pipelines/get-pipeline-run-sources/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/feature.d.ts +47 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/feature.js +185 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/index.js +19 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/schema.d.ts +7 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/schema.js +21 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/feature.d.ts +41 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/feature.js +450 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/index.js +19 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/schema.d.ts +6 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/schema.js +19 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/schema.js.map +1 -0
- package/dist/features/pipelines/helpers.d.ts +3 -0
- package/dist/features/pipelines/helpers.js +29 -0
- package/dist/features/pipelines/helpers.js.map +1 -0
- package/dist/features/pipelines/index.d.ts +22 -0
- package/dist/features/pipelines/index.js +216 -0
- package/dist/features/pipelines/index.js.map +1 -0
- package/dist/features/pipelines/list-pipeline-runs/feature.d.ts +3 -0
- package/dist/features/pipelines/list-pipeline-runs/feature.js +98 -0
- package/dist/features/pipelines/list-pipeline-runs/feature.js.map +1 -0
- package/dist/features/pipelines/list-pipeline-runs/index.d.ts +2 -0
- package/dist/features/pipelines/list-pipeline-runs/index.js +19 -0
- package/dist/features/pipelines/list-pipeline-runs/index.js.map +1 -0
- package/dist/features/pipelines/list-pipeline-runs/schema.d.ts +28 -0
- package/dist/features/pipelines/list-pipeline-runs/schema.js +50 -0
- package/dist/features/pipelines/list-pipeline-runs/schema.js.map +1 -0
- package/dist/features/pipelines/list-pipelines/feature.d.ts +10 -0
- package/dist/features/pipelines/list-pipelines/feature.js +42 -0
- package/dist/features/pipelines/list-pipelines/feature.js.map +1 -0
- package/dist/features/pipelines/list-pipelines/index.d.ts +2 -0
- package/dist/features/pipelines/list-pipelines/index.js +19 -0
- package/dist/features/pipelines/list-pipelines/index.js.map +1 -0
- package/dist/features/pipelines/list-pipelines/schema.d.ts +9 -0
- package/dist/features/pipelines/list-pipelines/schema.js +23 -0
- package/dist/features/pipelines/list-pipelines/schema.js.map +1 -0
- package/dist/features/pipelines/pipeline-timeline/feature.d.ts +3 -0
- package/dist/features/pipelines/pipeline-timeline/feature.js +95 -0
- package/dist/features/pipelines/pipeline-timeline/feature.js.map +1 -0
- package/dist/features/pipelines/pipeline-timeline/index.d.ts +2 -0
- package/dist/features/pipelines/pipeline-timeline/index.js +19 -0
- package/dist/features/pipelines/pipeline-timeline/index.js.map +1 -0
- package/dist/features/pipelines/pipeline-timeline/schema.d.ts +31 -0
- package/dist/features/pipelines/pipeline-timeline/schema.js +51 -0
- package/dist/features/pipelines/pipeline-timeline/schema.js.map +1 -0
- package/dist/features/pipelines/tool-definitions.d.ts +5 -0
- package/dist/features/pipelines/tool-definitions.js +87 -0
- package/dist/features/pipelines/tool-definitions.js.map +1 -0
- package/dist/features/pipelines/trigger-pipeline/feature.d.ts +10 -0
- package/dist/features/pipelines/trigger-pipeline/feature.js +65 -0
- package/dist/features/pipelines/trigger-pipeline/feature.js.map +1 -0
- package/dist/features/pipelines/trigger-pipeline/index.d.ts +2 -0
- package/dist/features/pipelines/trigger-pipeline/index.js +8 -0
- package/dist/features/pipelines/trigger-pipeline/index.js.map +1 -0
- package/dist/features/pipelines/trigger-pipeline/schema.d.ts +15 -0
- package/dist/features/pipelines/trigger-pipeline/schema.js +45 -0
- package/dist/features/pipelines/trigger-pipeline/schema.js.map +1 -0
- package/dist/features/pipelines/types.d.ts +122 -0
- package/dist/features/pipelines/types.js +3 -0
- package/dist/features/pipelines/types.js.map +1 -0
- package/dist/features/projects/__test__/test-helpers.d.ts +13 -0
- package/dist/features/projects/__test__/test-helpers.js +35 -0
- package/dist/features/projects/__test__/test-helpers.js.map +1 -0
- package/dist/features/projects/get-project/feature.d.ts +11 -0
- package/dist/features/projects/get-project/feature.js +29 -0
- package/dist/features/projects/get-project/feature.js.map +1 -0
- package/dist/features/projects/get-project/index.d.ts +2 -0
- package/dist/features/projects/get-project/index.js +19 -0
- package/dist/features/projects/get-project/index.js.map +1 -0
- package/dist/features/projects/get-project/schema.d.ts +2 -0
- package/dist/features/projects/get-project/schema.js +6 -0
- package/dist/features/projects/get-project/schema.js.map +1 -0
- package/dist/features/projects/get-project-details/feature.d.ts +78 -0
- package/dist/features/projects/get-project-details/feature.js +185 -0
- package/dist/features/projects/get-project-details/feature.js.map +1 -0
- package/dist/features/projects/get-project-details/index.d.ts +2 -0
- package/dist/features/projects/get-project-details/index.js +8 -0
- package/dist/features/projects/get-project-details/index.js.map +1 -0
- package/dist/features/projects/get-project-details/schema.d.ts +2 -0
- package/dist/features/projects/get-project-details/schema.js +6 -0
- package/dist/features/projects/get-project-details/schema.js.map +1 -0
- package/dist/features/projects/index.d.ts +15 -0
- package/dist/features/projects/index.js +80 -0
- package/dist/features/projects/index.js.map +1 -0
- package/dist/features/projects/list-projects/feature.d.ts +10 -0
- package/dist/features/projects/list-projects/feature.js +25 -0
- package/dist/features/projects/list-projects/feature.js.map +1 -0
- package/dist/features/projects/list-projects/index.d.ts +2 -0
- package/dist/features/projects/list-projects/index.js +19 -0
- package/dist/features/projects/list-projects/index.js.map +1 -0
- package/dist/features/projects/list-projects/schema.d.ts +2 -0
- package/dist/features/projects/list-projects/schema.js +6 -0
- package/dist/features/projects/list-projects/schema.js.map +1 -0
- package/dist/features/projects/schemas.d.ts +30 -0
- package/dist/features/projects/schemas.js +76 -0
- package/dist/features/projects/schemas.js.map +1 -0
- package/dist/features/projects/tool-definitions.d.ts +5 -0
- package/dist/features/projects/tool-definitions.js +26 -0
- package/dist/features/projects/tool-definitions.js.map +1 -0
- package/dist/features/projects/types.d.ts +11 -0
- package/dist/features/projects/types.js +3 -0
- package/dist/features/projects/types.js.map +1 -0
- package/dist/features/pull-requests/add-pull-request-comment/feature.d.ts +13 -0
- package/dist/features/pull-requests/add-pull-request-comment/feature.js +161 -0
- package/dist/features/pull-requests/add-pull-request-comment/feature.js.map +1 -0
- package/dist/features/pull-requests/add-pull-request-comment/index.d.ts +1 -0
- package/dist/features/pull-requests/add-pull-request-comment/index.js +18 -0
- package/dist/features/pull-requests/add-pull-request-comment/index.js.map +1 -0
- package/dist/features/pull-requests/create-pull-request/feature.d.ts +12 -0
- package/dist/features/pull-requests/create-pull-request/feature.js +99 -0
- package/dist/features/pull-requests/create-pull-request/feature.js.map +1 -0
- package/dist/features/pull-requests/create-pull-request/index.d.ts +2 -0
- package/dist/features/pull-requests/create-pull-request/index.js +19 -0
- package/dist/features/pull-requests/create-pull-request/index.js.map +1 -0
- package/dist/features/pull-requests/create-pull-request/schema.d.ts +2 -0
- package/dist/features/pull-requests/create-pull-request/schema.js +6 -0
- package/dist/features/pull-requests/create-pull-request/schema.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request/feature.d.ts +6 -0
- package/dist/features/pull-requests/get-pull-request/feature.js +22 -0
- package/dist/features/pull-requests/get-pull-request/feature.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request/index.d.ts +2 -0
- package/dist/features/pull-requests/get-pull-request/index.js +19 -0
- package/dist/features/pull-requests/get-pull-request/index.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request/schema.d.ts +1 -0
- package/dist/features/pull-requests/get-pull-request/schema.js +6 -0
- package/dist/features/pull-requests/get-pull-request/schema.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-changes/feature.d.ts +22 -0
- package/dist/features/pull-requests/get-pull-request-changes/feature.js +60 -0
- package/dist/features/pull-requests/get-pull-request-changes/feature.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-changes/index.d.ts +1 -0
- package/dist/features/pull-requests/get-pull-request-changes/index.js +18 -0
- package/dist/features/pull-requests/get-pull-request-changes/index.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-checks/feature.d.ts +51 -0
- package/dist/features/pull-requests/get-pull-request-checks/feature.js +259 -0
- package/dist/features/pull-requests/get-pull-request-checks/feature.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-checks/index.d.ts +1 -0
- package/dist/features/pull-requests/get-pull-request-checks/index.js +18 -0
- package/dist/features/pull-requests/get-pull-request-checks/index.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-comments/feature.d.ts +13 -0
- package/dist/features/pull-requests/get-pull-request-comments/feature.js +88 -0
- package/dist/features/pull-requests/get-pull-request-comments/feature.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-comments/index.d.ts +1 -0
- package/dist/features/pull-requests/get-pull-request-comments/index.js +18 -0
- package/dist/features/pull-requests/get-pull-request-comments/index.js.map +1 -0
- package/dist/features/pull-requests/index.d.ts +21 -0
- package/dist/features/pull-requests/index.js +167 -0
- package/dist/features/pull-requests/index.js.map +1 -0
- package/dist/features/pull-requests/list-pull-requests/feature.d.ts +17 -0
- package/dist/features/pull-requests/list-pull-requests/feature.js +81 -0
- package/dist/features/pull-requests/list-pull-requests/feature.js.map +1 -0
- package/dist/features/pull-requests/list-pull-requests/index.d.ts +2 -0
- package/dist/features/pull-requests/list-pull-requests/index.js +19 -0
- package/dist/features/pull-requests/list-pull-requests/index.js.map +1 -0
- package/dist/features/pull-requests/list-pull-requests/schema.d.ts +1 -0
- package/dist/features/pull-requests/list-pull-requests/schema.js +6 -0
- package/dist/features/pull-requests/list-pull-requests/schema.js.map +1 -0
- package/dist/features/pull-requests/schemas.d.ts +157 -0
- package/dist/features/pull-requests/schemas.js +337 -0
- package/dist/features/pull-requests/schemas.js.map +1 -0
- package/dist/features/pull-requests/tool-definitions.d.ts +5 -0
- package/dist/features/pull-requests/tool-definitions.js +60 -0
- package/dist/features/pull-requests/tool-definitions.js.map +1 -0
- package/dist/features/pull-requests/types.d.ts +118 -0
- package/dist/features/pull-requests/types.js +3 -0
- package/dist/features/pull-requests/types.js.map +1 -0
- package/dist/features/pull-requests/update-pull-request/feature.d.ts +9 -0
- package/dist/features/pull-requests/update-pull-request/feature.js +250 -0
- package/dist/features/pull-requests/update-pull-request/feature.js.map +1 -0
- package/dist/features/pull-requests/update-pull-request/index.d.ts +1 -0
- package/dist/features/pull-requests/update-pull-request/index.js +18 -0
- package/dist/features/pull-requests/update-pull-request/index.js.map +1 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/feature.d.ts +14 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/feature.js +87 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/feature.js.map +1 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/index.d.ts +1 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/index.js +18 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/index.js.map +1 -0
- package/dist/features/repositories/__test__/test-helpers.d.ts +13 -0
- package/dist/features/repositories/__test__/test-helpers.js +35 -0
- package/dist/features/repositories/__test__/test-helpers.js.map +1 -0
- package/dist/features/repositories/create-branch/feature.d.ts +6 -0
- package/dist/features/repositories/create-branch/feature.js +33 -0
- package/dist/features/repositories/create-branch/feature.js.map +1 -0
- package/dist/features/repositories/create-branch/index.d.ts +1 -0
- package/dist/features/repositories/create-branch/index.js +18 -0
- package/dist/features/repositories/create-branch/index.js.map +1 -0
- package/dist/features/repositories/create-commit/feature.d.ts +6 -0
- package/dist/features/repositories/create-commit/feature.js +122 -0
- package/dist/features/repositories/create-commit/feature.js.map +1 -0
- package/dist/features/repositories/create-commit/index.d.ts +1 -0
- package/dist/features/repositories/create-commit/index.js +18 -0
- package/dist/features/repositories/create-commit/index.js.map +1 -0
- package/dist/features/repositories/get-all-repositories-tree/feature.d.ts +22 -0
- package/dist/features/repositories/get-all-repositories-tree/feature.js +303 -0
- package/dist/features/repositories/get-all-repositories-tree/feature.js.map +1 -0
- package/dist/features/repositories/get-all-repositories-tree/index.d.ts +2 -0
- package/dist/features/repositories/get-all-repositories-tree/index.js +19 -0
- package/dist/features/repositories/get-all-repositories-tree/index.js.map +1 -0
- package/dist/features/repositories/get-all-repositories-tree/schema.d.ts +2 -0
- package/dist/features/repositories/get-all-repositories-tree/schema.js +6 -0
- package/dist/features/repositories/get-all-repositories-tree/schema.js.map +1 -0
- package/dist/features/repositories/get-file-content/feature.d.ts +23 -0
- package/dist/features/repositories/get-file-content/feature.js +96 -0
- package/dist/features/repositories/get-file-content/feature.js.map +1 -0
- package/dist/features/repositories/get-file-content/index.d.ts +2 -0
- package/dist/features/repositories/get-file-content/index.js +19 -0
- package/dist/features/repositories/get-file-content/index.js.map +1 -0
- package/dist/features/repositories/get-file-content/schema.d.ts +2 -0
- package/dist/features/repositories/get-file-content/schema.js +6 -0
- package/dist/features/repositories/get-file-content/schema.js.map +1 -0
- package/dist/features/repositories/get-repository/feature.d.ts +12 -0
- package/dist/features/repositories/get-repository/feature.js +30 -0
- package/dist/features/repositories/get-repository/feature.js.map +1 -0
- package/dist/features/repositories/get-repository/index.d.ts +2 -0
- package/dist/features/repositories/get-repository/index.js +19 -0
- package/dist/features/repositories/get-repository/index.js.map +1 -0
- package/dist/features/repositories/get-repository/schema.d.ts +2 -0
- package/dist/features/repositories/get-repository/schema.js +6 -0
- package/dist/features/repositories/get-repository/schema.js.map +1 -0
- package/dist/features/repositories/get-repository-details/feature.d.ts +11 -0
- package/dist/features/repositories/get-repository-details/feature.js +67 -0
- package/dist/features/repositories/get-repository-details/feature.js.map +1 -0
- package/dist/features/repositories/get-repository-details/index.d.ts +2 -0
- package/dist/features/repositories/get-repository-details/index.js +19 -0
- package/dist/features/repositories/get-repository-details/index.js.map +1 -0
- package/dist/features/repositories/get-repository-details/schema.d.ts +2 -0
- package/dist/features/repositories/get-repository-details/schema.js +6 -0
- package/dist/features/repositories/get-repository-details/schema.js.map +1 -0
- package/dist/features/repositories/get-repository-tree/feature.d.ts +6 -0
- package/dist/features/repositories/get-repository-tree/feature.js +65 -0
- package/dist/features/repositories/get-repository-tree/feature.js.map +1 -0
- package/dist/features/repositories/get-repository-tree/index.d.ts +1 -0
- package/dist/features/repositories/get-repository-tree/index.js +18 -0
- package/dist/features/repositories/get-repository-tree/index.js.map +1 -0
- package/dist/features/repositories/index.d.ts +23 -0
- package/dist/features/repositories/index.js +207 -0
- package/dist/features/repositories/index.js.map +1 -0
- package/dist/features/repositories/list-branches/feature.d.ts +14 -0
- package/dist/features/repositories/list-branches/feature.js +56 -0
- package/dist/features/repositories/list-branches/feature.js.map +1 -0
- package/dist/features/repositories/list-branches/index.d.ts +2 -0
- package/dist/features/repositories/list-branches/index.js +19 -0
- package/dist/features/repositories/list-branches/index.js.map +1 -0
- package/dist/features/repositories/list-branches/schema.d.ts +8 -0
- package/dist/features/repositories/list-branches/schema.js +28 -0
- package/dist/features/repositories/list-branches/schema.js.map +1 -0
- package/dist/features/repositories/list-commits/feature.d.ts +6 -0
- package/dist/features/repositories/list-commits/feature.js +75 -0
- package/dist/features/repositories/list-commits/feature.js.map +1 -0
- package/dist/features/repositories/list-commits/index.d.ts +1 -0
- package/dist/features/repositories/list-commits/index.js +18 -0
- package/dist/features/repositories/list-commits/index.js.map +1 -0
- package/dist/features/repositories/list-repositories/feature.d.ts +10 -0
- package/dist/features/repositories/list-repositories/feature.js +25 -0
- package/dist/features/repositories/list-repositories/feature.js.map +1 -0
- package/dist/features/repositories/list-repositories/index.d.ts +2 -0
- package/dist/features/repositories/list-repositories/index.js +19 -0
- package/dist/features/repositories/list-repositories/index.js.map +1 -0
- package/dist/features/repositories/list-repositories/schema.d.ts +2 -0
- package/dist/features/repositories/list-repositories/schema.js +6 -0
- package/dist/features/repositories/list-repositories/schema.js.map +1 -0
- package/dist/features/repositories/list-tags/feature.d.ts +13 -0
- package/dist/features/repositories/list-tags/feature.js +52 -0
- package/dist/features/repositories/list-tags/feature.js.map +1 -0
- package/dist/features/repositories/list-tags/index.d.ts +2 -0
- package/dist/features/repositories/list-tags/index.js +19 -0
- package/dist/features/repositories/list-tags/index.js.map +1 -0
- package/dist/features/repositories/list-tags/schema.d.ts +8 -0
- package/dist/features/repositories/list-tags/schema.js +28 -0
- package/dist/features/repositories/list-tags/schema.js.map +1 -0
- package/dist/features/repositories/schemas.d.ts +101 -0
- package/dist/features/repositories/schemas.js +306 -0
- package/dist/features/repositories/schemas.js.map +1 -0
- package/dist/features/repositories/tool-definitions.d.ts +5 -0
- package/dist/features/repositories/tool-definitions.js +106 -0
- package/dist/features/repositories/tool-definitions.js.map +1 -0
- package/dist/features/repositories/types.d.ts +167 -0
- package/dist/features/repositories/types.js +3 -0
- package/dist/features/repositories/types.js.map +1 -0
- package/dist/features/search/index.d.ts +15 -0
- package/dist/features/search/index.js +65 -0
- package/dist/features/search/index.js.map +1 -0
- package/dist/features/search/schemas.d.ts +58 -0
- package/dist/features/search/schemas.js +159 -0
- package/dist/features/search/schemas.js.map +1 -0
- package/dist/features/search/search-code/feature.d.ts +10 -0
- package/dist/features/search/search-code/feature.js +178 -0
- package/dist/features/search/search-code/feature.js.map +1 -0
- package/dist/features/search/search-code/index.d.ts +2 -0
- package/dist/features/search/search-code/index.js +19 -0
- package/dist/features/search/search-code/index.js.map +1 -0
- package/dist/features/search/search-wiki/feature.d.ts +10 -0
- package/dist/features/search/search-wiki/feature.js +133 -0
- package/dist/features/search/search-wiki/feature.js.map +1 -0
- package/dist/features/search/search-wiki/index.d.ts +1 -0
- package/dist/features/search/search-wiki/index.js +18 -0
- package/dist/features/search/search-wiki/index.js.map +1 -0
- package/dist/features/search/search-work-items/feature.d.ts +10 -0
- package/dist/features/search/search-work-items/feature.js +119 -0
- package/dist/features/search/search-work-items/feature.js.map +1 -0
- package/dist/features/search/search-work-items/index.d.ts +1 -0
- package/dist/features/search/search-work-items/index.js +18 -0
- package/dist/features/search/search-work-items/index.js.map +1 -0
- package/dist/features/search/tool-definitions.d.ts +5 -0
- package/dist/features/search/tool-definitions.js +26 -0
- package/dist/features/search/tool-definitions.js.map +1 -0
- package/dist/features/search/types.d.ts +537 -0
- package/dist/features/search/types.js +3 -0
- package/dist/features/search/types.js.map +1 -0
- package/dist/features/service-connections/feature.d.ts +21 -0
- package/dist/features/service-connections/feature.js +51 -0
- package/dist/features/service-connections/feature.js.map +1 -0
- package/dist/features/service-connections/index.d.ts +10 -0
- package/dist/features/service-connections/index.js +42 -0
- package/dist/features/service-connections/index.js.map +1 -0
- package/dist/features/service-connections/schema.d.ts +8 -0
- package/dist/features/service-connections/schema.js +28 -0
- package/dist/features/service-connections/schema.js.map +1 -0
- package/dist/features/users/get-me/feature.d.ts +12 -0
- package/dist/features/users/get-me/feature.js +96 -0
- package/dist/features/users/get-me/feature.js.map +1 -0
- package/dist/features/users/get-me/index.d.ts +2 -0
- package/dist/features/users/get-me/index.js +19 -0
- package/dist/features/users/get-me/index.js.map +1 -0
- package/dist/features/users/get-me/schema.d.ts +2 -0
- package/dist/features/users/get-me/schema.js +6 -0
- package/dist/features/users/get-me/schema.js.map +1 -0
- package/dist/features/users/index.d.ts +17 -0
- package/dist/features/users/index.js +52 -0
- package/dist/features/users/index.js.map +1 -0
- package/dist/features/users/schemas.d.ts +5 -0
- package/dist/features/users/schemas.js +9 -0
- package/dist/features/users/schemas.js.map +1 -0
- package/dist/features/users/tool-definitions.d.ts +5 -0
- package/dist/features/users/tool-definitions.js +16 -0
- package/dist/features/users/tool-definitions.js.map +1 -0
- package/dist/features/users/types.d.ts +17 -0
- package/dist/features/users/types.js +3 -0
- package/dist/features/users/types.js.map +1 -0
- package/dist/features/wikis/create-wiki/feature.d.ts +49 -0
- package/dist/features/wikis/create-wiki/feature.js +56 -0
- package/dist/features/wikis/create-wiki/feature.js.map +1 -0
- package/dist/features/wikis/create-wiki/index.d.ts +2 -0
- package/dist/features/wikis/create-wiki/index.js +9 -0
- package/dist/features/wikis/create-wiki/index.js.map +1 -0
- package/dist/features/wikis/create-wiki/schema.d.ts +25 -0
- package/dist/features/wikis/create-wiki/schema.js +60 -0
- package/dist/features/wikis/create-wiki/schema.js.map +1 -0
- package/dist/features/wikis/create-wiki-page/feature.d.ts +18 -0
- package/dist/features/wikis/create-wiki-page/feature.js +95 -0
- package/dist/features/wikis/create-wiki-page/feature.js.map +1 -0
- package/dist/features/wikis/create-wiki-page/index.d.ts +2 -0
- package/dist/features/wikis/create-wiki-page/index.js +8 -0
- package/dist/features/wikis/create-wiki-page/index.js.map +1 -0
- package/dist/features/wikis/create-wiki-page/schema.d.ts +12 -0
- package/dist/features/wikis/create-wiki-page/schema.js +36 -0
- package/dist/features/wikis/create-wiki-page/schema.js.map +1 -0
- package/dist/features/wikis/get-wiki-page/feature.d.ts +33 -0
- package/dist/features/wikis/get-wiki-page/feature.js +68 -0
- package/dist/features/wikis/get-wiki-page/feature.js.map +1 -0
- package/dist/features/wikis/get-wiki-page/index.d.ts +2 -0
- package/dist/features/wikis/get-wiki-page/index.js +8 -0
- package/dist/features/wikis/get-wiki-page/index.js.map +1 -0
- package/dist/features/wikis/get-wiki-page/schema.d.ts +10 -0
- package/dist/features/wikis/get-wiki-page/schema.js +23 -0
- package/dist/features/wikis/get-wiki-page/schema.js.map +1 -0
- package/dist/features/wikis/get-wikis/feature.d.ts +25 -0
- package/dist/features/wikis/get-wikis/feature.js +37 -0
- package/dist/features/wikis/get-wikis/feature.js.map +1 -0
- package/dist/features/wikis/get-wikis/index.d.ts +2 -0
- package/dist/features/wikis/get-wikis/index.js +8 -0
- package/dist/features/wikis/get-wikis/index.js.map +1 -0
- package/dist/features/wikis/get-wikis/schema.d.ts +8 -0
- package/dist/features/wikis/get-wikis/schema.js +21 -0
- package/dist/features/wikis/get-wikis/schema.js.map +1 -0
- package/dist/features/wikis/index.d.ts +16 -0
- package/dist/features/wikis/index.js +141 -0
- package/dist/features/wikis/index.js.map +1 -0
- package/dist/features/wikis/list-wiki-pages/feature.d.ts +20 -0
- package/dist/features/wikis/list-wiki-pages/feature.js +79 -0
- package/dist/features/wikis/list-wiki-pages/feature.js.map +1 -0
- package/dist/features/wikis/list-wiki-pages/index.d.ts +2 -0
- package/dist/features/wikis/list-wiki-pages/index.js +8 -0
- package/dist/features/wikis/list-wiki-pages/index.js.map +1 -0
- package/dist/features/wikis/list-wiki-pages/schema.d.ts +10 -0
- package/dist/features/wikis/list-wiki-pages/schema.js +22 -0
- package/dist/features/wikis/list-wiki-pages/schema.js.map +1 -0
- package/dist/features/wikis/tool-definitions.d.ts +5 -0
- package/dist/features/wikis/tool-definitions.js +46 -0
- package/dist/features/wikis/tool-definitions.js.map +1 -0
- package/dist/features/wikis/update-wiki-page/feature.d.ts +12 -0
- package/dist/features/wikis/update-wiki-page/feature.js +63 -0
- package/dist/features/wikis/update-wiki-page/feature.js.map +1 -0
- package/dist/features/wikis/update-wiki-page/index.d.ts +2 -0
- package/dist/features/wikis/update-wiki-page/index.js +8 -0
- package/dist/features/wikis/update-wiki-page/index.js.map +1 -0
- package/dist/features/wikis/update-wiki-page/schema.d.ts +12 -0
- package/dist/features/wikis/update-wiki-page/schema.js +32 -0
- package/dist/features/wikis/update-wiki-page/schema.js.map +1 -0
- package/dist/features/work-items/__test__/fixtures.d.ts +9 -0
- package/dist/features/work-items/__test__/fixtures.js +28 -0
- package/dist/features/work-items/__test__/fixtures.js.map +1 -0
- package/dist/features/work-items/__test__/test-helpers.d.ts +13 -0
- package/dist/features/work-items/__test__/test-helpers.js +35 -0
- package/dist/features/work-items/__test__/test-helpers.js.map +1 -0
- package/dist/features/work-items/__test__/test-utils.d.ts +17 -0
- package/dist/features/work-items/__test__/test-utils.js +39 -0
- package/dist/features/work-items/__test__/test-utils.js.map +1 -0
- package/dist/features/work-items/attachment-schemas.d.ts +24 -0
- package/dist/features/work-items/attachment-schemas.js +46 -0
- package/dist/features/work-items/attachment-schemas.js.map +1 -0
- package/dist/features/work-items/create-work-item/feature.d.ts +12 -0
- package/dist/features/work-items/create-work-item/feature.js +107 -0
- package/dist/features/work-items/create-work-item/feature.js.map +1 -0
- package/dist/features/work-items/create-work-item/index.d.ts +2 -0
- package/dist/features/work-items/create-work-item/index.js +19 -0
- package/dist/features/work-items/create-work-item/index.js.map +1 -0
- package/dist/features/work-items/create-work-item/schema.d.ts +2 -0
- package/dist/features/work-items/create-work-item/schema.js +6 -0
- package/dist/features/work-items/create-work-item/schema.js.map +1 -0
- package/dist/features/work-items/create-work-item-attachment/feature.d.ts +11 -0
- package/dist/features/work-items/create-work-item-attachment/feature.js +107 -0
- package/dist/features/work-items/create-work-item-attachment/feature.js.map +1 -0
- package/dist/features/work-items/create-work-item-attachment/index.d.ts +2 -0
- package/dist/features/work-items/create-work-item-attachment/index.js +19 -0
- package/dist/features/work-items/create-work-item-attachment/index.js.map +1 -0
- package/dist/features/work-items/create-work-item-attachment/schema.d.ts +2 -0
- package/dist/features/work-items/create-work-item-attachment/schema.js +6 -0
- package/dist/features/work-items/create-work-item-attachment/schema.js.map +1 -0
- package/dist/features/work-items/delete-work-item-attachment/feature.d.ts +10 -0
- package/dist/features/work-items/delete-work-item-attachment/feature.js +51 -0
- package/dist/features/work-items/delete-work-item-attachment/feature.js.map +1 -0
- package/dist/features/work-items/delete-work-item-attachment/index.d.ts +2 -0
- package/dist/features/work-items/delete-work-item-attachment/index.js +19 -0
- package/dist/features/work-items/delete-work-item-attachment/index.js.map +1 -0
- package/dist/features/work-items/delete-work-item-attachment/schema.d.ts +2 -0
- package/dist/features/work-items/delete-work-item-attachment/schema.js +6 -0
- package/dist/features/work-items/delete-work-item-attachment/schema.js.map +1 -0
- package/dist/features/work-items/get-work-item/feature.d.ts +12 -0
- package/dist/features/work-items/get-work-item/feature.js +69 -0
- package/dist/features/work-items/get-work-item/feature.js.map +1 -0
- package/dist/features/work-items/get-work-item/index.d.ts +2 -0
- package/dist/features/work-items/get-work-item/index.js +19 -0
- package/dist/features/work-items/get-work-item/index.js.map +1 -0
- package/dist/features/work-items/get-work-item/schema.d.ts +2 -0
- package/dist/features/work-items/get-work-item/schema.js +6 -0
- package/dist/features/work-items/get-work-item/schema.js.map +1 -0
- package/dist/features/work-items/get-work-item-attachment/feature.d.ts +10 -0
- package/dist/features/work-items/get-work-item-attachment/feature.js +108 -0
- package/dist/features/work-items/get-work-item-attachment/feature.js.map +1 -0
- package/dist/features/work-items/get-work-item-attachment/index.d.ts +2 -0
- package/dist/features/work-items/get-work-item-attachment/index.js +19 -0
- package/dist/features/work-items/get-work-item-attachment/index.js.map +1 -0
- package/dist/features/work-items/get-work-item-attachment/schema.d.ts +2 -0
- package/dist/features/work-items/get-work-item-attachment/schema.js +6 -0
- package/dist/features/work-items/get-work-item-attachment/schema.js.map +1 -0
- package/dist/features/work-items/get-work-item-comments/feature.d.ts +10 -0
- package/dist/features/work-items/get-work-item-comments/feature.js +78 -0
- package/dist/features/work-items/get-work-item-comments/feature.js.map +1 -0
- package/dist/features/work-items/get-work-item-comments/index.d.ts +2 -0
- package/dist/features/work-items/get-work-item-comments/index.js +19 -0
- package/dist/features/work-items/get-work-item-comments/index.js.map +1 -0
- package/dist/features/work-items/get-work-item-comments/schema.d.ts +2 -0
- package/dist/features/work-items/get-work-item-comments/schema.js +6 -0
- package/dist/features/work-items/get-work-item-comments/schema.js.map +1 -0
- package/dist/features/work-items/index.d.ts +21 -0
- package/dist/features/work-items/index.js +181 -0
- package/dist/features/work-items/index.js.map +1 -0
- package/dist/features/work-items/list-work-items/feature.d.ts +10 -0
- package/dist/features/work-items/list-work-items/feature.js +92 -0
- package/dist/features/work-items/list-work-items/feature.js.map +1 -0
- package/dist/features/work-items/list-work-items/index.d.ts +2 -0
- package/dist/features/work-items/list-work-items/index.js +19 -0
- package/dist/features/work-items/list-work-items/index.js.map +1 -0
- package/dist/features/work-items/list-work-items/schema.d.ts +2 -0
- package/dist/features/work-items/list-work-items/schema.js +6 -0
- package/dist/features/work-items/list-work-items/schema.js.map +1 -0
- package/dist/features/work-items/manage-work-item-link/feature.d.ts +24 -0
- package/dist/features/work-items/manage-work-item-link/feature.js +91 -0
- package/dist/features/work-items/manage-work-item-link/feature.js.map +1 -0
- package/dist/features/work-items/manage-work-item-link/index.d.ts +2 -0
- package/dist/features/work-items/manage-work-item-link/index.js +8 -0
- package/dist/features/work-items/manage-work-item-link/index.js.map +1 -0
- package/dist/features/work-items/manage-work-item-link/schema.d.ts +2 -0
- package/dist/features/work-items/manage-work-item-link/schema.js +6 -0
- package/dist/features/work-items/manage-work-item-link/schema.js.map +1 -0
- package/dist/features/work-items/schemas.d.ts +99 -0
- package/dist/features/work-items/schemas.js +181 -0
- package/dist/features/work-items/schemas.js.map +1 -0
- package/dist/features/work-items/tool-definitions.d.ts +5 -0
- package/dist/features/work-items/tool-definitions.js +56 -0
- package/dist/features/work-items/tool-definitions.js.map +1 -0
- package/dist/features/work-items/types.d.ts +87 -0
- package/dist/features/work-items/types.js +3 -0
- package/dist/features/work-items/types.js.map +1 -0
- package/dist/features/work-items/update-work-item/feature.d.ts +12 -0
- package/dist/features/work-items/update-work-item/feature.js +155 -0
- package/dist/features/work-items/update-work-item/feature.js.map +1 -0
- package/dist/features/work-items/update-work-item/index.d.ts +2 -0
- package/dist/features/work-items/update-work-item/index.js +19 -0
- package/dist/features/work-items/update-work-item/index.js.map +1 -0
- package/dist/features/work-items/update-work-item/schema.d.ts +2 -0
- package/dist/features/work-items/update-work-item/schema.js +6 -0
- package/dist/features/work-items/update-work-item/schema.js.map +1 -0
- package/dist/http-server.d.ts +22 -0
- package/dist/http-server.js +137 -0
- package/dist/http-server.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +138 -0
- package/dist/index.js.map +1 -0
- package/dist/server.d.ts +21 -0
- package/dist/server.js +379 -0
- package/dist/server.js.map +1 -0
- package/dist/shared/api/client.d.ts +91 -0
- package/dist/shared/api/client.js +242 -0
- package/dist/shared/api/client.js.map +1 -0
- package/dist/shared/api/index.d.ts +1 -0
- package/dist/shared/api/index.js +18 -0
- package/dist/shared/api/index.js.map +1 -0
- package/dist/shared/auth/auth-factory.d.ts +53 -0
- package/dist/shared/auth/auth-factory.js +194 -0
- package/dist/shared/auth/auth-factory.js.map +1 -0
- package/dist/shared/auth/client-factory.d.ts +109 -0
- package/dist/shared/auth/client-factory.js +272 -0
- package/dist/shared/auth/client-factory.js.map +1 -0
- package/dist/shared/auth/index.d.ts +11 -0
- package/dist/shared/auth/index.js +18 -0
- package/dist/shared/auth/index.js.map +1 -0
- package/dist/shared/azure-devops-url.d.ts +17 -0
- package/dist/shared/azure-devops-url.js +120 -0
- package/dist/shared/azure-devops-url.js.map +1 -0
- package/dist/shared/config/index.d.ts +1 -0
- package/dist/shared/config/index.js +18 -0
- package/dist/shared/config/index.js.map +1 -0
- package/dist/shared/config/version.d.ts +4 -0
- package/dist/shared/config/version.js +8 -0
- package/dist/shared/config/version.js.map +1 -0
- package/dist/shared/enums/index.d.ts +40 -0
- package/dist/shared/enums/index.js +87 -0
- package/dist/shared/enums/index.js.map +1 -0
- package/dist/shared/errors/azure-devops-errors.d.ts +107 -0
- package/dist/shared/errors/azure-devops-errors.js +161 -0
- package/dist/shared/errors/azure-devops-errors.js.map +1 -0
- package/dist/shared/errors/handle-request-error.d.ts +32 -0
- package/dist/shared/errors/handle-request-error.js +121 -0
- package/dist/shared/errors/handle-request-error.js.map +1 -0
- package/dist/shared/errors/index.d.ts +1 -0
- package/dist/shared/errors/index.js +18 -0
- package/dist/shared/errors/index.js.map +1 -0
- package/dist/shared/test/test-helpers.d.ts +20 -0
- package/dist/shared/test/test-helpers.js +57 -0
- package/dist/shared/test/test-helpers.js.map +1 -0
- package/dist/shared/test/text-content.d.ts +10 -0
- package/dist/shared/test/text-content.js +20 -0
- package/dist/shared/test/text-content.js.map +1 -0
- package/dist/shared/types/config.d.ts +27 -0
- package/dist/shared/types/config.js +3 -0
- package/dist/shared/types/config.js.map +1 -0
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/index.js +18 -0
- package/dist/shared/types/index.js.map +1 -0
- package/dist/shared/types/request-handler.d.ts +21 -0
- package/dist/shared/types/request-handler.js +3 -0
- package/dist/shared/types/request-handler.js.map +1 -0
- package/dist/shared/types/tool-definition.d.ts +9 -0
- package/dist/shared/types/tool-definition.js +3 -0
- package/dist/shared/types/tool-definition.js.map +1 -0
- package/dist/shared/utils/to-json-schema.d.ts +6 -0
- package/dist/shared/utils/to-json-schema.js +12 -0
- package/dist/shared/utils/to-json-schema.js.map +1 -0
- package/dist/utils/environment.d.ts +21 -0
- package/dist/utils/environment.js +58 -0
- package/dist/utils/environment.js.map +1 -0
- package/docs/SOLUTION_SUMMARY.md +145 -0
- package/docs/authentication.md +293 -0
- package/docs/azure-identity-authentication.md +187 -0
- package/docs/ci-setup.md +61 -0
- package/docs/docker.md +135 -0
- package/docs/examples/README.md +33 -0
- package/docs/examples/azure-cli-authentication.env +25 -0
- package/docs/examples/azure-identity-authentication.env +33 -0
- package/docs/examples/pat-authentication.env +24 -0
- package/docs/important-knowledge/azure-devops-rest-api-research.md +88 -0
- package/docs/important-knowledge/llm-tldr-cli.md +37 -0
- package/docs/npm-trusted-publishers-migration.md +142 -0
- package/docs/release-troubleshooting.md +153 -0
- package/docs/testing/README.md +140 -0
- package/docs/testing/setup.md +72 -0
- package/docs/tools/README.md +76 -0
- package/docs/tools/core-navigation.md +114 -0
- package/docs/tools/organizations.md +73 -0
- package/docs/tools/pipelines.md +532 -0
- package/docs/tools/projects.md +114 -0
- package/docs/tools/pull-requests.md +1110 -0
- package/docs/tools/repositories.md +610 -0
- package/docs/tools/resources.md +133 -0
- package/docs/tools/search.md +165 -0
- package/docs/tools/user-tools.md +39 -0
- package/docs/tools/wiki.md +192 -0
- package/docs/tools/work-items.md +244 -0
- package/package.json +125 -4
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPipelineRunYaml = getPipelineRunYaml;
|
|
4
|
+
const GitInterfaces_1 = require("azure-devops-node-api/interfaces/GitInterfaces");
|
|
5
|
+
const errors_1 = require("../../../shared/errors");
|
|
6
|
+
const environment_1 = require("../../../utils/environment");
|
|
7
|
+
const API_VERSION = environment_1.apiVersion;
|
|
8
|
+
/**
|
|
9
|
+
* Parses a ref string into a GitVersionType and a clean version string.
|
|
10
|
+
* - "dev" → { type: Branch, version: "dev" }
|
|
11
|
+
* - "refs/heads/main" → { type: Branch, version: "main" }
|
|
12
|
+
* - "refs/tags/2.0.5" → { type: Tag, version: "2.0.5" }
|
|
13
|
+
*/
|
|
14
|
+
function parseRef(ref) {
|
|
15
|
+
if (ref.startsWith('refs/tags/')) {
|
|
16
|
+
return {
|
|
17
|
+
versionType: GitInterfaces_1.GitVersionType.Tag,
|
|
18
|
+
version: ref.replace('refs/tags/', ''),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
if (ref.startsWith('refs/heads/')) {
|
|
22
|
+
return {
|
|
23
|
+
versionType: GitInterfaces_1.GitVersionType.Branch,
|
|
24
|
+
version: ref.replace('refs/heads/', ''),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
// Default: treat as branch name
|
|
28
|
+
return { versionType: GitInterfaces_1.GitVersionType.Branch, version: ref };
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Parses the `resources.repositories` section from a YAML string.
|
|
32
|
+
* Returns a map of alias → RepoResource.
|
|
33
|
+
*/
|
|
34
|
+
function parseResources(yamlContent) {
|
|
35
|
+
const resources = new Map();
|
|
36
|
+
const lines = yamlContent.split('\n');
|
|
37
|
+
let inResources = false;
|
|
38
|
+
let inRepos = false;
|
|
39
|
+
let currentRepo = null;
|
|
40
|
+
for (const line of lines) {
|
|
41
|
+
const trimmed = line.trim();
|
|
42
|
+
// Detect "resources:" at top level
|
|
43
|
+
if (/^resources:\s*$/.test(line.trimEnd())) {
|
|
44
|
+
inResources = true;
|
|
45
|
+
inRepos = false;
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
// Detect "repositories:" under resources
|
|
49
|
+
if (inResources && /^repositories:\s*$/.test(trimmed)) {
|
|
50
|
+
inRepos = true;
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
// Exit resources section when we hit a non-indented line that's not a comment
|
|
54
|
+
if (inResources &&
|
|
55
|
+
line.length > 0 &&
|
|
56
|
+
!line.startsWith(' ') &&
|
|
57
|
+
!line.startsWith('#') &&
|
|
58
|
+
trimmed !== '') {
|
|
59
|
+
if (currentRepo && currentRepo.alias) {
|
|
60
|
+
resources.set(currentRepo.alias, currentRepo);
|
|
61
|
+
}
|
|
62
|
+
currentRepo = null;
|
|
63
|
+
inResources = false;
|
|
64
|
+
inRepos = false;
|
|
65
|
+
}
|
|
66
|
+
if (inRepos) {
|
|
67
|
+
// New repo entry: "- repository: alias"
|
|
68
|
+
const repoMatch = line.match(/^\s*-\s+repository:\s*(\S+)\s*$/);
|
|
69
|
+
if (repoMatch) {
|
|
70
|
+
if (currentRepo && currentRepo.alias) {
|
|
71
|
+
resources.set(currentRepo.alias, currentRepo);
|
|
72
|
+
}
|
|
73
|
+
currentRepo = { alias: repoMatch[1], type: 'git' };
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
// Properties of current repo
|
|
77
|
+
if (currentRepo) {
|
|
78
|
+
const nameMatch = trimmed.match(/^name:\s*(.+)$/);
|
|
79
|
+
if (nameMatch) {
|
|
80
|
+
currentRepo.name = nameMatch[1].trim().replace(/^["']|["']$/g, '');
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
const refMatch = trimmed.match(/^ref:\s*(.+)$/);
|
|
84
|
+
if (refMatch) {
|
|
85
|
+
currentRepo.ref = refMatch[1].trim().replace(/^["']|["']$/g, '');
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
const typeMatch = trimmed.match(/^type:\s*(.+)$/);
|
|
89
|
+
if (typeMatch) {
|
|
90
|
+
currentRepo.type = typeMatch[1].trim();
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
// Don't forget the last repo
|
|
97
|
+
if (currentRepo && currentRepo.alias) {
|
|
98
|
+
resources.set(currentRepo.alias, currentRepo);
|
|
99
|
+
}
|
|
100
|
+
return resources;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Extracts all template references from a YAML string.
|
|
104
|
+
* Handles:
|
|
105
|
+
* - template: /path/to/file.yaml@repoAlias
|
|
106
|
+
* - template: ./relative/path.yaml
|
|
107
|
+
* - template: relative/path.yaml
|
|
108
|
+
* - template: path.yaml
|
|
109
|
+
* Returns array of { path, repoAlias | null }
|
|
110
|
+
*/
|
|
111
|
+
function extractTemplateRefs(yamlContent) {
|
|
112
|
+
const refs = [];
|
|
113
|
+
const lines = yamlContent.split('\n');
|
|
114
|
+
const seen = new Set();
|
|
115
|
+
for (const line of lines) {
|
|
116
|
+
const trimmed = line.trim();
|
|
117
|
+
// Match: - template: path@alias or template: path@alias
|
|
118
|
+
const match = trimmed.match(/^(?:-\s+)?template:\s*(.+?)(?:@(\S+))?\s*$/);
|
|
119
|
+
if (match) {
|
|
120
|
+
let templatePath = match[1].trim().replace(/^["']|["']$/g, '');
|
|
121
|
+
const alias = match[2] ? match[2].trim() : null;
|
|
122
|
+
// Normalize path: remove leading slash for @repo refs (Azure DevOps uses /path@repo)
|
|
123
|
+
if (alias && templatePath.startsWith('/')) {
|
|
124
|
+
templatePath = templatePath.substring(1);
|
|
125
|
+
}
|
|
126
|
+
const key = `${templatePath}@${alias ?? 'self'}`;
|
|
127
|
+
if (!seen.has(key)) {
|
|
128
|
+
seen.add(key);
|
|
129
|
+
refs.push({ path: templatePath, repoAlias: alias });
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
return refs;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Resolves a relative template path against a base file path.
|
|
137
|
+
* e.g. base="HrmTemplate/main.yaml", rel="./Build/main.yaml" → "HrmTemplate/Build/main.yaml"
|
|
138
|
+
* base="HrmTemplate/Build/main.yaml", rel="./Docker/main.yaml" → "HrmTemplate/Build/Docker/main.yaml"
|
|
139
|
+
* base="pipeline.yaml", rel="./sub/file.yaml" → "sub/file.yaml"
|
|
140
|
+
*
|
|
141
|
+
* When hasRepoAlias is true, the path is absolute from the target repo root
|
|
142
|
+
* (no base directory resolution needed).
|
|
143
|
+
*/
|
|
144
|
+
function resolvePath(basePath, templatePath, hasRepoAlias = false) {
|
|
145
|
+
// If it starts with / it's absolute from repo root
|
|
146
|
+
if (templatePath.startsWith('/')) {
|
|
147
|
+
return templatePath.substring(1);
|
|
148
|
+
}
|
|
149
|
+
// If there's a repo alias and the path doesn't start with ./ or ../,
|
|
150
|
+
// treat it as absolute from the target repo root
|
|
151
|
+
if (hasRepoAlias &&
|
|
152
|
+
!templatePath.startsWith('./') &&
|
|
153
|
+
!templatePath.startsWith('../')) {
|
|
154
|
+
return templatePath;
|
|
155
|
+
}
|
|
156
|
+
// If it starts with ./ resolve relative to base file's directory
|
|
157
|
+
if (templatePath.startsWith('./') || templatePath.startsWith('../')) {
|
|
158
|
+
const baseDir = basePath.includes('/')
|
|
159
|
+
? basePath.substring(0, basePath.lastIndexOf('/'))
|
|
160
|
+
: '';
|
|
161
|
+
const parts = baseDir ? baseDir.split('/') : [];
|
|
162
|
+
for (const seg of templatePath.split('/')) {
|
|
163
|
+
if (seg === '.' || seg === '')
|
|
164
|
+
continue;
|
|
165
|
+
if (seg === '..') {
|
|
166
|
+
parts.pop();
|
|
167
|
+
continue;
|
|
168
|
+
}
|
|
169
|
+
parts.push(seg);
|
|
170
|
+
}
|
|
171
|
+
return parts.join('/');
|
|
172
|
+
}
|
|
173
|
+
// Bare relative path (no ./ prefix) — resolve from base directory
|
|
174
|
+
// but only if there's no repo alias (with repo alias it's already handled above)
|
|
175
|
+
const baseDir = basePath.includes('/')
|
|
176
|
+
? basePath.substring(0, basePath.lastIndexOf('/'))
|
|
177
|
+
: '';
|
|
178
|
+
return baseDir ? `${baseDir}/${templatePath}` : templatePath;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Fetches a file from a Git repository using the Azure DevOps REST API.
|
|
182
|
+
*/
|
|
183
|
+
async function fetchFile(connection, projectId, repositoryId, path, versionType, version) {
|
|
184
|
+
const gitApi = await connection.getGitApi();
|
|
185
|
+
const stream = await gitApi.getItemContent(repositoryId, path, projectId, undefined, undefined, undefined, undefined, undefined, versionType !== undefined && version !== undefined
|
|
186
|
+
? { versionType, version }
|
|
187
|
+
: undefined);
|
|
188
|
+
if (!stream) {
|
|
189
|
+
throw new errors_1.AzureDevOpsResourceNotFoundError(`File not found: ${path} in ${repositoryId}`);
|
|
190
|
+
}
|
|
191
|
+
// Read the Node.js ReadableStream into a string
|
|
192
|
+
const chunks = [];
|
|
193
|
+
for await (const chunk of stream) {
|
|
194
|
+
chunks.push(Buffer.from(chunk));
|
|
195
|
+
}
|
|
196
|
+
return Buffer.concat(chunks).toString('utf-8');
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Gets the pipeline definition to find the YAML path and repository.
|
|
200
|
+
*/
|
|
201
|
+
async function getPipelineDefinition(connection, projectId, pipelineId) {
|
|
202
|
+
const pipelinesApi = await connection.getPipelinesApi();
|
|
203
|
+
const baseUrl = connection.serverUrl.replace(/\/+$/, '');
|
|
204
|
+
const encodedProject = encodeURIComponent(projectId);
|
|
205
|
+
const url = new URL(`${encodedProject}/_apis/pipelines/${pipelineId}`, `${baseUrl}/`);
|
|
206
|
+
url.searchParams.set('api-version', API_VERSION);
|
|
207
|
+
const requestOptions = pipelinesApi.createRequestOptions('application/json', API_VERSION);
|
|
208
|
+
const response = await pipelinesApi.rest.get(url.toString(), requestOptions);
|
|
209
|
+
if (!response.result?.configuration?.path) {
|
|
210
|
+
throw new errors_1.AzureDevOpsResourceNotFoundError(`Pipeline ${pipelineId} has no YAML configuration path`);
|
|
211
|
+
}
|
|
212
|
+
return {
|
|
213
|
+
path: response.result.configuration.path,
|
|
214
|
+
repositoryId: response.result.configuration.repository?.id ?? '',
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Gets the build definition to find the pipeline ID from a build/run ID.
|
|
219
|
+
* On-prem TFS may not have the Pipelines API, so we use the Build API instead.
|
|
220
|
+
*/
|
|
221
|
+
async function getBuildDefinition(connection, projectId, runId) {
|
|
222
|
+
const buildApi = await connection.getBuildApi();
|
|
223
|
+
const baseUrl = connection.serverUrl.replace(/\/+$/, '');
|
|
224
|
+
const encodedProject = encodeURIComponent(projectId);
|
|
225
|
+
// Try the Build API first (works on all TFS versions)
|
|
226
|
+
const url = new URL(`${encodedProject}/_apis/build/builds/${runId}`, `${baseUrl}/`);
|
|
227
|
+
url.searchParams.set('api-version', API_VERSION);
|
|
228
|
+
const requestOptions = buildApi.createRequestOptions('application/json', API_VERSION);
|
|
229
|
+
const response = await buildApi.rest.get(url.toString(), requestOptions);
|
|
230
|
+
if (!response.result?.definition?.id) {
|
|
231
|
+
throw new errors_1.AzureDevOpsResourceNotFoundError(`Build ${runId} not found in project ${projectId}`);
|
|
232
|
+
}
|
|
233
|
+
const definitionId = response.result.definition.id;
|
|
234
|
+
const repositoryId = response.result.repository?.id ?? '';
|
|
235
|
+
const sourceBranch = response.result.sourceBranch ?? '';
|
|
236
|
+
// Try the Pipelines API for the YAML path
|
|
237
|
+
let yamlPath = '';
|
|
238
|
+
let pipelineId = definitionId;
|
|
239
|
+
try {
|
|
240
|
+
const def = await getPipelineDefinition(connection, projectId, definitionId);
|
|
241
|
+
yamlPath = def.path;
|
|
242
|
+
if (def.repositoryId) {
|
|
243
|
+
// Pipeline definition has the authoritative repo ID
|
|
244
|
+
}
|
|
245
|
+
pipelineId = definitionId;
|
|
246
|
+
}
|
|
247
|
+
catch {
|
|
248
|
+
// If Pipelines API fails (older TFS), try getting the definition from Build API
|
|
249
|
+
const defUrl = new URL(`${encodedProject}/_apis/build/definitions/${definitionId}`, `${baseUrl}/`);
|
|
250
|
+
defUrl.searchParams.set('api-version', API_VERSION);
|
|
251
|
+
const defResponse = await buildApi.rest.get(defUrl.toString(), requestOptions);
|
|
252
|
+
if (defResponse.result?.process?.yamlFilename) {
|
|
253
|
+
yamlPath = defResponse.result.process.yamlFilename;
|
|
254
|
+
}
|
|
255
|
+
if (defResponse.result?.repository?.id && !repositoryId) {
|
|
256
|
+
// Use the definition's repo
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return {
|
|
260
|
+
pipelineId,
|
|
261
|
+
definitionId,
|
|
262
|
+
repositoryId,
|
|
263
|
+
yamlPath,
|
|
264
|
+
sourceBranch,
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Main entry point: resolves the full YAML for a pipeline run by fetching
|
|
269
|
+
* the pipeline YAML file and recursively resolving all template references.
|
|
270
|
+
*
|
|
271
|
+
* On Azure DevOps Services (cloud), the `finalYaml` field on the run object
|
|
272
|
+
* gives the fully expanded YAML. On-prem TFS does not expose this, so we
|
|
273
|
+
* manually resolve templates by:
|
|
274
|
+
* 1. Finding the pipeline definition → YAML path + repo
|
|
275
|
+
* 2. Fetching the main YAML file
|
|
276
|
+
* 3. Parsing `resources.repositories` for repo aliases and refs
|
|
277
|
+
* 4. Parsing `template:` references and recursively fetching each template
|
|
278
|
+
* 5. Returning all files in a structured result
|
|
279
|
+
*/
|
|
280
|
+
async function getPipelineRunYaml(connection, options) {
|
|
281
|
+
try {
|
|
282
|
+
const projectId = options.projectId ?? environment_1.defaultProject;
|
|
283
|
+
const { runId, pipelineId } = options;
|
|
284
|
+
// Step 1: Get the pipeline definition to find YAML path + repo
|
|
285
|
+
let yamlPath = '';
|
|
286
|
+
let mainRepoId = '';
|
|
287
|
+
let mainRepoRef = '';
|
|
288
|
+
let resolvedPipelineId = pipelineId;
|
|
289
|
+
if (pipelineId) {
|
|
290
|
+
try {
|
|
291
|
+
const def = await getPipelineDefinition(connection, projectId, pipelineId);
|
|
292
|
+
yamlPath = def.path;
|
|
293
|
+
mainRepoId = def.repositoryId;
|
|
294
|
+
}
|
|
295
|
+
catch {
|
|
296
|
+
// Fall through to build lookup
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
if (!yamlPath) {
|
|
300
|
+
// Use the build/run to find the definition
|
|
301
|
+
const buildDef = await getBuildDefinition(connection, projectId, runId);
|
|
302
|
+
yamlPath = buildDef.yamlPath;
|
|
303
|
+
mainRepoId = buildDef.repositoryId;
|
|
304
|
+
mainRepoRef = buildDef.sourceBranch;
|
|
305
|
+
resolvedPipelineId = buildDef.pipelineId;
|
|
306
|
+
}
|
|
307
|
+
if (!yamlPath) {
|
|
308
|
+
return {
|
|
309
|
+
runId,
|
|
310
|
+
pipelineId: resolvedPipelineId,
|
|
311
|
+
pipelinePath: '(unknown)',
|
|
312
|
+
files: [
|
|
313
|
+
{
|
|
314
|
+
label: 'pipeline.yaml',
|
|
315
|
+
repositoryAlias: 'self',
|
|
316
|
+
repositoryName: mainRepoId,
|
|
317
|
+
ref: mainRepoRef,
|
|
318
|
+
path: '(unknown)',
|
|
319
|
+
content: '# Could not determine the pipeline YAML path for this run.\n# The pipeline may be a classic (designer) pipeline without YAML.',
|
|
320
|
+
},
|
|
321
|
+
],
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
// Step 2: Fetch the main pipeline YAML file
|
|
325
|
+
const { versionType, version } = mainRepoRef
|
|
326
|
+
? parseRef(mainRepoRef)
|
|
327
|
+
: { versionType: undefined, version: undefined };
|
|
328
|
+
const mainContent = await fetchFile(connection, projectId, mainRepoId, yamlPath, versionType, version);
|
|
329
|
+
const files = [
|
|
330
|
+
{
|
|
331
|
+
label: `${yamlPath} (self${mainRepoRef ? '@' + mainRepoRef : ''})`,
|
|
332
|
+
repositoryAlias: 'self',
|
|
333
|
+
repositoryName: mainRepoId,
|
|
334
|
+
ref: mainRepoRef,
|
|
335
|
+
path: yamlPath,
|
|
336
|
+
content: mainContent,
|
|
337
|
+
},
|
|
338
|
+
];
|
|
339
|
+
// Step 3: Parse resources from the main YAML
|
|
340
|
+
const resources = parseResources(mainContent);
|
|
341
|
+
// Step 4: Recursively resolve templates
|
|
342
|
+
const visited = new Set();
|
|
343
|
+
const queue = [{ content: mainContent, basePath: yamlPath, repoAlias: null }];
|
|
344
|
+
while (queue.length > 0) {
|
|
345
|
+
const { content, basePath, repoAlias } = queue.shift();
|
|
346
|
+
const templateRefs = extractTemplateRefs(content);
|
|
347
|
+
for (const ref of templateRefs) {
|
|
348
|
+
// Resolve which repo to fetch from
|
|
349
|
+
const targetAlias = ref.repoAlias ?? repoAlias;
|
|
350
|
+
let targetRepoId;
|
|
351
|
+
let targetRef;
|
|
352
|
+
let targetProjectId = projectId;
|
|
353
|
+
let targetLabel;
|
|
354
|
+
if (targetAlias && resources.has(targetAlias)) {
|
|
355
|
+
const repo = resources.get(targetAlias);
|
|
356
|
+
// Parse "Project/RepoName" to determine cross-project repos
|
|
357
|
+
if (repo.name.includes('/')) {
|
|
358
|
+
const [projName, repoName] = repo.name.split('/');
|
|
359
|
+
targetProjectId = projName;
|
|
360
|
+
targetRepoId = repoName;
|
|
361
|
+
}
|
|
362
|
+
else {
|
|
363
|
+
targetRepoId = repo.name;
|
|
364
|
+
}
|
|
365
|
+
targetRef = repo.ref || 'main';
|
|
366
|
+
targetLabel = `${targetAlias}@${targetRef}`;
|
|
367
|
+
}
|
|
368
|
+
else if (targetAlias) {
|
|
369
|
+
// Alias not found in resources — skip
|
|
370
|
+
continue;
|
|
371
|
+
}
|
|
372
|
+
else {
|
|
373
|
+
// Same repo as the current file
|
|
374
|
+
if (repoAlias && resources.has(repoAlias)) {
|
|
375
|
+
const repo = resources.get(repoAlias);
|
|
376
|
+
if (repo.name.includes('/')) {
|
|
377
|
+
const [projName, repoName] = repo.name.split('/');
|
|
378
|
+
targetProjectId = projName;
|
|
379
|
+
targetRepoId = repoName;
|
|
380
|
+
}
|
|
381
|
+
else {
|
|
382
|
+
targetRepoId = repo.name;
|
|
383
|
+
}
|
|
384
|
+
targetRef = repo.ref || 'main';
|
|
385
|
+
}
|
|
386
|
+
else {
|
|
387
|
+
targetRepoId = mainRepoId;
|
|
388
|
+
targetRef = mainRepoRef;
|
|
389
|
+
}
|
|
390
|
+
targetLabel = `self${targetRef ? '@' + targetRef : ''}`;
|
|
391
|
+
}
|
|
392
|
+
// Resolve the template path
|
|
393
|
+
const resolvedFilePath = resolvePath(basePath, ref.path, !!ref.repoAlias);
|
|
394
|
+
const visitKey = `${resolvedFilePath}@${targetProjectId}/${targetRepoId}:${targetRef}`;
|
|
395
|
+
if (visited.has(visitKey)) {
|
|
396
|
+
continue;
|
|
397
|
+
}
|
|
398
|
+
visited.add(visitKey);
|
|
399
|
+
// Fetch the template file
|
|
400
|
+
const { versionType: vType, version: vStr } = parseRef(targetRef);
|
|
401
|
+
try {
|
|
402
|
+
const templateContent = await fetchFile(connection, targetProjectId, targetRepoId, resolvedFilePath, vType, vStr);
|
|
403
|
+
files.push({
|
|
404
|
+
label: `${resolvedFilePath} (${targetLabel})`,
|
|
405
|
+
repositoryAlias: targetAlias ?? 'self',
|
|
406
|
+
repositoryName: targetRepoId,
|
|
407
|
+
ref: targetRef,
|
|
408
|
+
path: resolvedFilePath,
|
|
409
|
+
content: templateContent,
|
|
410
|
+
});
|
|
411
|
+
// Queue this template for further resolution
|
|
412
|
+
queue.push({
|
|
413
|
+
content: templateContent,
|
|
414
|
+
basePath: resolvedFilePath,
|
|
415
|
+
repoAlias: targetAlias,
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
catch {
|
|
419
|
+
// Template file not found or inaccessible — skip but continue
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
return {
|
|
424
|
+
runId,
|
|
425
|
+
pipelineId: resolvedPipelineId,
|
|
426
|
+
pipelinePath: yamlPath,
|
|
427
|
+
files,
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
catch (error) {
|
|
431
|
+
if (error instanceof errors_1.AzureDevOpsError) {
|
|
432
|
+
throw error;
|
|
433
|
+
}
|
|
434
|
+
if (error instanceof Error) {
|
|
435
|
+
const message = error.message.toLowerCase();
|
|
436
|
+
if (message.includes('authentication') ||
|
|
437
|
+
message.includes('unauthorized') ||
|
|
438
|
+
message.includes('401')) {
|
|
439
|
+
throw new errors_1.AzureDevOpsAuthenticationError(`Failed to authenticate: ${error.message}`);
|
|
440
|
+
}
|
|
441
|
+
if (message.includes('not found') ||
|
|
442
|
+
message.includes('does not exist') ||
|
|
443
|
+
message.includes('404')) {
|
|
444
|
+
throw new errors_1.AzureDevOpsResourceNotFoundError(`Pipeline run YAML not found: ${error.message}`);
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
throw new errors_1.AzureDevOpsError(`Failed to get pipeline run YAML: ${error instanceof Error ? error.message : String(error)}`);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature.js","sourceRoot":"","sources":["../../../../src/features/pipelines/get-pipeline-run-yaml/feature.ts"],"names":[],"mappings":";;;AACA,kFAAgF;AAChF,mDAIgC;AAChC,4DAAwE;AAQxE,MAAM,WAAW,GAAG,wBAAU,CAAC;AAqC/B;;;;;GAKG;AACH,SAAS,QAAQ,CAAC,GAAW;IAI3B,IAAI,GAAG,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;QACjC,OAAO;YACL,WAAW,EAAE,8BAAc,CAAC,GAAG;YAC/B,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;SACvC,CAAC;IACJ,CAAC;IACD,IAAI,GAAG,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;QAClC,OAAO;YACL,WAAW,EAAE,8BAAc,CAAC,MAAM;YAClC,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC;SACxC,CAAC;IACJ,CAAC;IACD,gCAAgC;IAChC,OAAO,EAAE,WAAW,EAAE,8BAAc,CAAC,MAA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gB,CAAC;gBAClC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC;gBAChC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EACvB,CAAC;gBACD,MAAM,IAAI,uCAA8B,CACtC,2BAA2B,KAAK,CAAC,OAAO,EAAE,CAC3C,CAAC;YACJ,CAAC;YACD,IACE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC;gBAC7B,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC;gBAClC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EACvB,CAAC;gBACD,MAAM,IAAI,yCAAgC,CACxC,gCAAgC,KAAK,CAAC,OAAO,EAAE,CAChD,CAAC;YACJ,CAAC;QACH,CAAC;QAED,MAAM,IAAI,yBAAgB,CACxB,oCAAoC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAC7F,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./feature"), exports);
|
|
18
|
+
__exportStar(require("./schema"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/pipelines/get-pipeline-run-yaml/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,2CAAyB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPipelineRunYamlSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const environment_1 = require("../../../utils/environment");
|
|
6
|
+
exports.GetPipelineRunYamlSchema = zod_1.z.object({
|
|
7
|
+
projectId: zod_1.z
|
|
8
|
+
.string()
|
|
9
|
+
.optional()
|
|
10
|
+
.describe(`The ID or name of the project (Default: ${environment_1.defaultProject})`),
|
|
11
|
+
pipelineId: zod_1.z
|
|
12
|
+
.number()
|
|
13
|
+
.int()
|
|
14
|
+
.min(1)
|
|
15
|
+
.optional()
|
|
16
|
+
.describe('The pipeline numeric ID. If omitted, the runId is used to look up the build definition.'),
|
|
17
|
+
runId: zod_1.z.number().int().min(1).describe('The pipeline run / build ID'),
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/features/pipelines/get-pipeline-run-yaml/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4DAA4D;AAE/C,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,SAAS,EAAE,OAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,2CAA2C,4BAAc,GAAG,CAAC;IACzE,UAAU,EAAE,OAAC;SACV,MAAM,EAAE;SACR,GAAG,EAAE;SACL,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,yFAAyF,CAC1F;IACH,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,6BAA6B,CAAC;CACvE,CAAC,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { WebApi } from 'azure-devops-node-api';
|
|
2
|
+
export declare function coercePipelineId(id: unknown): number | undefined;
|
|
3
|
+
export declare function resolvePipelineId(connection: WebApi, projectId: string, runId: number, providedPipelineId?: number): Promise<number | undefined>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.coercePipelineId = coercePipelineId;
|
|
4
|
+
exports.resolvePipelineId = resolvePipelineId;
|
|
5
|
+
function coercePipelineId(id) {
|
|
6
|
+
if (typeof id === 'number') {
|
|
7
|
+
return id;
|
|
8
|
+
}
|
|
9
|
+
if (typeof id === 'string') {
|
|
10
|
+
const parsed = Number.parseInt(id, 10);
|
|
11
|
+
return Number.isNaN(parsed) ? undefined : parsed;
|
|
12
|
+
}
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
async function resolvePipelineId(connection, projectId, runId, providedPipelineId) {
|
|
16
|
+
if (typeof providedPipelineId === 'number') {
|
|
17
|
+
return providedPipelineId;
|
|
18
|
+
}
|
|
19
|
+
try {
|
|
20
|
+
const buildApi = await connection.getBuildApi();
|
|
21
|
+
const build = (await buildApi.getBuild(projectId, runId));
|
|
22
|
+
return coercePipelineId(build?.definition?.id);
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
// Swallow errors here; we'll handle not-found later when the main request fails
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/features/pipelines/helpers.ts"],"names":[],"mappings":";;;;AAGA,0BAAiC,EAAW;IAC1C,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE,CAAC;QAC3B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QACvC,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;IACnD,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAEM,KAAK,4BACV,UAAkB,EAClB,SAAiB,EACjB,KAAa,EACb,kBAA2B;IAE3B,IAAI,OAAO,kBAAkB,KAAK,QAAQ,EAAE,CAAC;QAC3C,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAED,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,WAAW,EAAE,CAAC;QAChD,MAAM,KAAK,GAAG,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,CAE3C,CAAC;QACd,OAAO,gBAAgB,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;IACjD,CAAC;IAAC,MAAM,CAAC;QACP,gFAAgF;QAChF,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './list-pipelines';
|
|
3
|
+
export * from './get-pipeline';
|
|
4
|
+
export * from './list-pipeline-runs';
|
|
5
|
+
export * from './get-pipeline-run';
|
|
6
|
+
export * from './download-pipeline-artifact';
|
|
7
|
+
export * from './pipeline-timeline';
|
|
8
|
+
export * from './get-pipeline-log';
|
|
9
|
+
export * from './trigger-pipeline';
|
|
10
|
+
export * from './get-pipeline-run-yaml';
|
|
11
|
+
export * from './get-pipeline-run-sources';
|
|
12
|
+
export * from './get-pipeline-run-stage-tasks';
|
|
13
|
+
export * from './tool-definitions';
|
|
14
|
+
import { RequestIdentifier, RequestHandler } from '../../shared/types/request-handler';
|
|
15
|
+
/**
|
|
16
|
+
* Checks if the request is for the pipelines feature
|
|
17
|
+
*/
|
|
18
|
+
export declare const isPipelinesRequest: RequestIdentifier;
|
|
19
|
+
/**
|
|
20
|
+
* Handles pipelines feature requests
|
|
21
|
+
*/
|
|
22
|
+
export declare const handlePipelinesRequest: RequestHandler;
|