@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,337 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdatePullRequestThreadStatusSchema = exports.GetPullRequestChangesResponseSchema = exports.PullRequestFileChangeSchema = exports.GetPullRequestChecksSchema = exports.GetPullRequestChangesSchema = exports.UpdatePullRequestSchema = exports.AddPullRequestCommentSchema = exports.GetPullRequestCommentsSchema = exports.ListPullRequestsSchema = exports.GetPullRequestSchema = exports.CreatePullRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const environment_1 = require("../../utils/environment");
|
|
6
|
+
/**
|
|
7
|
+
* Schema for creating a pull request
|
|
8
|
+
*/
|
|
9
|
+
exports.CreatePullRequestSchema = zod_1.z.object({
|
|
10
|
+
projectId: zod_1.z
|
|
11
|
+
.string()
|
|
12
|
+
.optional()
|
|
13
|
+
.describe(`The ID or name of the project (Default: ${environment_1.defaultProject})`),
|
|
14
|
+
organizationId: zod_1.z
|
|
15
|
+
.string()
|
|
16
|
+
.optional()
|
|
17
|
+
.describe(`The ID or name of the organization (Default: ${environment_1.defaultOrg})`),
|
|
18
|
+
repositoryId: zod_1.z.string().describe('The ID or name of the repository'),
|
|
19
|
+
title: zod_1.z.string().describe('The title of the pull request'),
|
|
20
|
+
description: zod_1.z
|
|
21
|
+
.string()
|
|
22
|
+
.optional()
|
|
23
|
+
.describe('The description of the pull request (markdown is supported)'),
|
|
24
|
+
sourceRefName: zod_1.z
|
|
25
|
+
.string()
|
|
26
|
+
.describe('The source branch name (e.g., refs/heads/feature-branch)'),
|
|
27
|
+
targetRefName: zod_1.z
|
|
28
|
+
.string()
|
|
29
|
+
.describe('The target branch name (e.g., refs/heads/main)'),
|
|
30
|
+
reviewers: zod_1.z
|
|
31
|
+
.array(zod_1.z.string())
|
|
32
|
+
.optional()
|
|
33
|
+
.describe('List of reviewer email addresses or IDs'),
|
|
34
|
+
isDraft: zod_1.z
|
|
35
|
+
.boolean()
|
|
36
|
+
.optional()
|
|
37
|
+
.describe('Whether the pull request should be created as a draft'),
|
|
38
|
+
workItemRefs: zod_1.z
|
|
39
|
+
.array(zod_1.z.number())
|
|
40
|
+
.optional()
|
|
41
|
+
.describe('List of work item IDs to link to the pull request'),
|
|
42
|
+
tags: zod_1.z
|
|
43
|
+
.array(zod_1.z.string().trim().min(1))
|
|
44
|
+
.optional()
|
|
45
|
+
.describe('List of tags to apply to the pull request'),
|
|
46
|
+
additionalProperties: zod_1.z
|
|
47
|
+
.record(zod_1.z.string(), zod_1.z.any())
|
|
48
|
+
.optional()
|
|
49
|
+
.describe('Additional properties to set on the pull request'),
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* Schema for getting a pull request by ID (no repositoryId required)
|
|
53
|
+
*/
|
|
54
|
+
exports.GetPullRequestSchema = zod_1.z.object({
|
|
55
|
+
projectId: zod_1.z.string().describe('The ID or name of the project'),
|
|
56
|
+
organizationId: zod_1.z
|
|
57
|
+
.string()
|
|
58
|
+
.optional()
|
|
59
|
+
.describe(`The ID or name of the organization (Default: ${environment_1.defaultOrg})`),
|
|
60
|
+
pullRequestId: zod_1.z.number().describe('The ID of the pull request'),
|
|
61
|
+
});
|
|
62
|
+
/**
|
|
63
|
+
* Schema for listing pull requests
|
|
64
|
+
*/
|
|
65
|
+
exports.ListPullRequestsSchema = zod_1.z.object({
|
|
66
|
+
projectId: zod_1.z
|
|
67
|
+
.string()
|
|
68
|
+
.optional()
|
|
69
|
+
.describe(`The ID or name of the project (Default: ${environment_1.defaultProject})`),
|
|
70
|
+
organizationId: zod_1.z
|
|
71
|
+
.string()
|
|
72
|
+
.optional()
|
|
73
|
+
.describe(`The ID or name of the organization (Default: ${environment_1.defaultOrg})`),
|
|
74
|
+
repositoryId: zod_1.z.string().describe('The ID or name of the repository'),
|
|
75
|
+
status: zod_1.z
|
|
76
|
+
.enum(['all', 'active', 'completed', 'abandoned'])
|
|
77
|
+
.optional()
|
|
78
|
+
.describe('Filter by pull request status'),
|
|
79
|
+
creatorId: zod_1.z
|
|
80
|
+
.string()
|
|
81
|
+
.optional()
|
|
82
|
+
.describe('Filter by creator ID (must be a UUID string)'),
|
|
83
|
+
reviewerId: zod_1.z
|
|
84
|
+
.string()
|
|
85
|
+
.optional()
|
|
86
|
+
.describe('Filter by reviewer ID (must be a UUID string)'),
|
|
87
|
+
sourceRefName: zod_1.z.string().optional().describe('Filter by source branch name'),
|
|
88
|
+
targetRefName: zod_1.z.string().optional().describe('Filter by target branch name'),
|
|
89
|
+
top: zod_1.z
|
|
90
|
+
.number()
|
|
91
|
+
.default(10)
|
|
92
|
+
.describe('Maximum number of pull requests to return (default: 10)'),
|
|
93
|
+
skip: zod_1.z
|
|
94
|
+
.number()
|
|
95
|
+
.optional()
|
|
96
|
+
.describe('Number of pull requests to skip for pagination'),
|
|
97
|
+
});
|
|
98
|
+
/**
|
|
99
|
+
* Schema for getting pull request comments
|
|
100
|
+
*/
|
|
101
|
+
exports.GetPullRequestCommentsSchema = zod_1.z.object({
|
|
102
|
+
projectId: zod_1.z
|
|
103
|
+
.string()
|
|
104
|
+
.optional()
|
|
105
|
+
.describe(`The ID or name of the project (Default: ${environment_1.defaultProject})`),
|
|
106
|
+
organizationId: zod_1.z
|
|
107
|
+
.string()
|
|
108
|
+
.optional()
|
|
109
|
+
.describe(`The ID or name of the organization (Default: ${environment_1.defaultOrg})`),
|
|
110
|
+
repositoryId: zod_1.z.string().describe('The ID or name of the repository'),
|
|
111
|
+
pullRequestId: zod_1.z.number().describe('The ID of the pull request'),
|
|
112
|
+
threadId: zod_1.z
|
|
113
|
+
.number()
|
|
114
|
+
.optional()
|
|
115
|
+
.describe('The ID of the specific thread to get comments from'),
|
|
116
|
+
includeDeleted: zod_1.z
|
|
117
|
+
.boolean()
|
|
118
|
+
.optional()
|
|
119
|
+
.describe('Whether to include deleted comments'),
|
|
120
|
+
top: zod_1.z
|
|
121
|
+
.number()
|
|
122
|
+
.optional()
|
|
123
|
+
.describe('Maximum number of threads/comments to return'),
|
|
124
|
+
});
|
|
125
|
+
/**
|
|
126
|
+
* Schema for adding a comment to a pull request
|
|
127
|
+
*/
|
|
128
|
+
exports.AddPullRequestCommentSchema = zod_1.z
|
|
129
|
+
.object({
|
|
130
|
+
projectId: zod_1.z
|
|
131
|
+
.string()
|
|
132
|
+
.optional()
|
|
133
|
+
.describe(`The ID or name of the project (Default: ${environment_1.defaultProject})`),
|
|
134
|
+
organizationId: zod_1.z
|
|
135
|
+
.string()
|
|
136
|
+
.optional()
|
|
137
|
+
.describe(`The ID or name of the organization (Default: ${environment_1.defaultOrg})`),
|
|
138
|
+
repositoryId: zod_1.z
|
|
139
|
+
.string()
|
|
140
|
+
.optional()
|
|
141
|
+
.describe('The ID or name of the repository (optional; derived from pullRequestId when omitted)'),
|
|
142
|
+
pullRequestId: zod_1.z.number().describe('The ID of the pull request'),
|
|
143
|
+
content: zod_1.z.string().describe('The content of the comment in markdown'),
|
|
144
|
+
threadId: zod_1.z
|
|
145
|
+
.number()
|
|
146
|
+
.optional()
|
|
147
|
+
.describe('The ID of the thread to add the comment to'),
|
|
148
|
+
parentCommentId: zod_1.z
|
|
149
|
+
.number()
|
|
150
|
+
.optional()
|
|
151
|
+
.describe('ID of the parent comment when replying to an existing comment'),
|
|
152
|
+
filePath: zod_1.z
|
|
153
|
+
.string()
|
|
154
|
+
.optional()
|
|
155
|
+
.describe('The path of the file to comment on (for new thread on file)'),
|
|
156
|
+
lineNumber: zod_1.z
|
|
157
|
+
.number()
|
|
158
|
+
.int()
|
|
159
|
+
.positive()
|
|
160
|
+
.optional()
|
|
161
|
+
.describe('The line number to comment on (for new thread on file)'),
|
|
162
|
+
endLineNumber: zod_1.z
|
|
163
|
+
.number()
|
|
164
|
+
.int()
|
|
165
|
+
.positive()
|
|
166
|
+
.optional()
|
|
167
|
+
.describe('The last line of the commented range (default: lineNumber; requires filePath and lineNumber). The thread covers the lines in full, so a suggestion replaces exactly these lines'),
|
|
168
|
+
status: zod_1.z
|
|
169
|
+
.enum([
|
|
170
|
+
'active',
|
|
171
|
+
'fixed',
|
|
172
|
+
'wontFix',
|
|
173
|
+
'closed',
|
|
174
|
+
'pending',
|
|
175
|
+
'byDesign',
|
|
176
|
+
'unknown',
|
|
177
|
+
])
|
|
178
|
+
.optional()
|
|
179
|
+
.describe('The status to set for a new thread'),
|
|
180
|
+
})
|
|
181
|
+
.superRefine((data, ctx) => {
|
|
182
|
+
// If we're creating a new thread (no threadId), status is required
|
|
183
|
+
if (!data.threadId && !data.status) {
|
|
184
|
+
ctx.addIssue({
|
|
185
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
186
|
+
message: 'Status is required when creating a new thread',
|
|
187
|
+
path: ['status'],
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
if (data.endLineNumber !== undefined) {
|
|
191
|
+
if (!data.filePath || data.lineNumber === undefined) {
|
|
192
|
+
ctx.addIssue({
|
|
193
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
194
|
+
message: 'endLineNumber requires filePath and lineNumber',
|
|
195
|
+
path: ['endLineNumber'],
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
else if (data.endLineNumber < data.lineNumber) {
|
|
199
|
+
ctx.addIssue({
|
|
200
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
201
|
+
message: 'endLineNumber must not be less than lineNumber',
|
|
202
|
+
path: ['endLineNumber'],
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
/**
|
|
208
|
+
* Schema for updating a pull request
|
|
209
|
+
*/
|
|
210
|
+
exports.UpdatePullRequestSchema = zod_1.z.object({
|
|
211
|
+
projectId: zod_1.z
|
|
212
|
+
.string()
|
|
213
|
+
.optional()
|
|
214
|
+
.describe(`The ID or name of the project (Default: ${environment_1.defaultProject})`),
|
|
215
|
+
organizationId: zod_1.z
|
|
216
|
+
.string()
|
|
217
|
+
.optional()
|
|
218
|
+
.describe(`The ID or name of the organization (Default: ${environment_1.defaultOrg})`),
|
|
219
|
+
repositoryId: zod_1.z.string().describe('The ID or name of the repository'),
|
|
220
|
+
pullRequestId: zod_1.z.number().describe('The ID of the pull request to update'),
|
|
221
|
+
title: zod_1.z
|
|
222
|
+
.string()
|
|
223
|
+
.optional()
|
|
224
|
+
.describe('The updated title of the pull request'),
|
|
225
|
+
description: zod_1.z
|
|
226
|
+
.string()
|
|
227
|
+
.optional()
|
|
228
|
+
.describe('The updated description of the pull request'),
|
|
229
|
+
status: zod_1.z
|
|
230
|
+
.enum(['active', 'abandoned', 'completed'])
|
|
231
|
+
.optional()
|
|
232
|
+
.describe('The updated status of the pull request'),
|
|
233
|
+
isDraft: zod_1.z
|
|
234
|
+
.boolean()
|
|
235
|
+
.optional()
|
|
236
|
+
.describe('Whether the pull request should be marked as a draft (true) or unmarked (false)'),
|
|
237
|
+
addWorkItemIds: zod_1.z
|
|
238
|
+
.array(zod_1.z.number())
|
|
239
|
+
.optional()
|
|
240
|
+
.describe('List of work item IDs to link to the pull request'),
|
|
241
|
+
removeWorkItemIds: zod_1.z
|
|
242
|
+
.array(zod_1.z.number())
|
|
243
|
+
.optional()
|
|
244
|
+
.describe('List of work item IDs to unlink from the pull request'),
|
|
245
|
+
addReviewers: zod_1.z
|
|
246
|
+
.array(zod_1.z.string())
|
|
247
|
+
.optional()
|
|
248
|
+
.describe('List of reviewer email addresses or IDs to add'),
|
|
249
|
+
removeReviewers: zod_1.z
|
|
250
|
+
.array(zod_1.z.string())
|
|
251
|
+
.optional()
|
|
252
|
+
.describe('List of reviewer email addresses or IDs to remove'),
|
|
253
|
+
addTags: zod_1.z
|
|
254
|
+
.array(zod_1.z.string().trim().min(1))
|
|
255
|
+
.optional()
|
|
256
|
+
.describe('List of tags to add to the pull request'),
|
|
257
|
+
removeTags: zod_1.z
|
|
258
|
+
.array(zod_1.z.string().trim().min(1))
|
|
259
|
+
.optional()
|
|
260
|
+
.describe('List of tags to remove from the pull request'),
|
|
261
|
+
additionalProperties: zod_1.z
|
|
262
|
+
.record(zod_1.z.string(), zod_1.z.any())
|
|
263
|
+
.optional()
|
|
264
|
+
.describe('Additional properties to update on the pull request'),
|
|
265
|
+
});
|
|
266
|
+
/**
|
|
267
|
+
* Schema for getting pull request changes and policy evaluations
|
|
268
|
+
*/
|
|
269
|
+
exports.GetPullRequestChangesSchema = zod_1.z.object({
|
|
270
|
+
projectId: zod_1.z
|
|
271
|
+
.string()
|
|
272
|
+
.optional()
|
|
273
|
+
.describe(`The ID or name of the project (Default: ${environment_1.defaultProject})`),
|
|
274
|
+
organizationId: zod_1.z
|
|
275
|
+
.string()
|
|
276
|
+
.optional()
|
|
277
|
+
.describe(`The ID or name of the organization (Default: ${environment_1.defaultOrg})`),
|
|
278
|
+
repositoryId: zod_1.z.string().describe('The ID or name of the repository'),
|
|
279
|
+
pullRequestId: zod_1.z.number().describe('The ID of the pull request'),
|
|
280
|
+
});
|
|
281
|
+
/**
|
|
282
|
+
* Schema for retrieving pull request status checks and policy evaluations
|
|
283
|
+
*/
|
|
284
|
+
exports.GetPullRequestChecksSchema = zod_1.z.object({
|
|
285
|
+
projectId: zod_1.z
|
|
286
|
+
.string()
|
|
287
|
+
.optional()
|
|
288
|
+
.describe(`The ID or name of the project (Default: ${environment_1.defaultProject})`),
|
|
289
|
+
organizationId: zod_1.z
|
|
290
|
+
.string()
|
|
291
|
+
.optional()
|
|
292
|
+
.describe(`The ID or name of the organization (Default: ${environment_1.defaultOrg})`),
|
|
293
|
+
repositoryId: zod_1.z.string().describe('The ID or name of the repository'),
|
|
294
|
+
pullRequestId: zod_1.z.number().describe('The ID of the pull request'),
|
|
295
|
+
});
|
|
296
|
+
exports.PullRequestFileChangeSchema = zod_1.z.object({
|
|
297
|
+
path: zod_1.z.string().describe('Path of the changed file'),
|
|
298
|
+
patch: zod_1.z.string().describe('Unified diff of the file'),
|
|
299
|
+
});
|
|
300
|
+
exports.GetPullRequestChangesResponseSchema = zod_1.z.object({
|
|
301
|
+
changes: zod_1.z.any(),
|
|
302
|
+
evaluations: zod_1.z.array(zod_1.z.any()),
|
|
303
|
+
files: zod_1.z.array(exports.PullRequestFileChangeSchema),
|
|
304
|
+
sourceRefName: zod_1.z.string().optional(),
|
|
305
|
+
targetRefName: zod_1.z.string().optional(),
|
|
306
|
+
});
|
|
307
|
+
/**
|
|
308
|
+
* Schema for updating pull request thread status
|
|
309
|
+
*/
|
|
310
|
+
exports.UpdatePullRequestThreadStatusSchema = zod_1.z.object({
|
|
311
|
+
projectId: zod_1.z
|
|
312
|
+
.string()
|
|
313
|
+
.optional()
|
|
314
|
+
.describe(`The ID or name of the project (Default: ${environment_1.defaultProject})`),
|
|
315
|
+
organizationId: zod_1.z
|
|
316
|
+
.string()
|
|
317
|
+
.optional()
|
|
318
|
+
.describe(`The ID or name of the organization (Default: ${environment_1.defaultOrg})`),
|
|
319
|
+
repositoryId: zod_1.z
|
|
320
|
+
.string()
|
|
321
|
+
.optional()
|
|
322
|
+
.describe('The ID or name of the repository (optional; derived from pullRequestId when omitted)'),
|
|
323
|
+
pullRequestId: zod_1.z.number().describe('The ID of the pull request'),
|
|
324
|
+
threadId: zod_1.z.number().describe('The ID of the thread to update'),
|
|
325
|
+
status: zod_1.z
|
|
326
|
+
.enum([
|
|
327
|
+
'active',
|
|
328
|
+
'fixed',
|
|
329
|
+
'wontFix',
|
|
330
|
+
'closed',
|
|
331
|
+
'pending',
|
|
332
|
+
'byDesign',
|
|
333
|
+
'unknown',
|
|
334
|
+
])
|
|
335
|
+
.describe('The status to set on the thread'),
|
|
336
|
+
});
|
|
337
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/features/pull-requests/schemas.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yDAAqE;AAErE;;GAEG;AACU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,SAAS,EAAE,OAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,2CAA2C,4BAAc,GAAG,CAAC;IACzE,cAAc,EAAE,OAAC;SACd,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,wBAAU,GAAG,CAAC;IAC1E,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;IAC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,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1D,SAAS,EAAE,OAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,2CAA2C,4BAAc,GAAG,CAAC;IACzE,cAAc,EAAE,OAAC;SACd,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,wBAAU,GAAG,CAAC;IAC1E,YAAY,EAAE,OAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,sFAAsF,CACvF;IACH,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAChE,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IAC/D,MAAM,EAAE,OAAC;SACN,IAAI,CAAC;QACJ,QAAQ;QACR,OAAO;QACP,SAAS;QACT,QAAQ;QACR,SAAS;QACT,UAAU;QACV,SAAS;KACV,CAAC;SACD,QAAQ,CAAC,iCAAiC,CAAC;CAC/C,CAAC,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pullRequestsTools = void 0;
|
|
4
|
+
const to_json_schema_1 = require("../../shared/utils/to-json-schema");
|
|
5
|
+
const schemas_1 = require("./schemas");
|
|
6
|
+
/**
|
|
7
|
+
* List of pull requests tools
|
|
8
|
+
*/
|
|
9
|
+
exports.pullRequestsTools = [
|
|
10
|
+
{
|
|
11
|
+
name: 'create_pull_request',
|
|
12
|
+
description: 'Create a new pull request, including reviewers, linked work items, and optional tags',
|
|
13
|
+
inputSchema: (0, to_json_schema_1.toJsonSchema)(schemas_1.CreatePullRequestSchema),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'get_pull_request',
|
|
17
|
+
description: 'Get a pull request by ID (no repositoryId required; best for Azure DevOps Server where PR IDs are project-scoped)',
|
|
18
|
+
inputSchema: (0, to_json_schema_1.toJsonSchema)(schemas_1.GetPullRequestSchema),
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'list_pull_requests',
|
|
22
|
+
description: 'List pull requests in a repository',
|
|
23
|
+
inputSchema: (0, to_json_schema_1.toJsonSchema)(schemas_1.ListPullRequestsSchema),
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'get_pull_request_comments',
|
|
27
|
+
description: 'Get comments from a specific pull request',
|
|
28
|
+
inputSchema: (0, to_json_schema_1.toJsonSchema)(schemas_1.GetPullRequestCommentsSchema),
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'add_pull_request_comment',
|
|
32
|
+
description: 'Add a comment to a pull request (repositoryId optional; derived from pullRequestId when omitted)',
|
|
33
|
+
inputSchema: (0, to_json_schema_1.toJsonSchema)(schemas_1.AddPullRequestCommentSchema),
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'update_pull_request',
|
|
37
|
+
description: 'Update an existing pull request with new properties, manage reviewers and work items, and add or remove tags',
|
|
38
|
+
inputSchema: (0, to_json_schema_1.toJsonSchema)(schemas_1.UpdatePullRequestSchema),
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'get_pull_request_changes',
|
|
42
|
+
description: 'Get the files changed in a pull request, their unified diffs, source/target branch names, and the status of policy evaluations',
|
|
43
|
+
inputSchema: (0, to_json_schema_1.toJsonSchema)(schemas_1.GetPullRequestChangesSchema),
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'get_pull_request_checks',
|
|
47
|
+
description: [
|
|
48
|
+
'Summarize the latest status checks and policy evaluations for a pull request.',
|
|
49
|
+
'- Surfaces pipeline and run identifiers so you can jump straight to the blocking validation.',
|
|
50
|
+
'- Pair with pipeline tools (e.g., get_pipeline_run, pipeline_timeline) to inspect failures in depth.',
|
|
51
|
+
].join('\n'),
|
|
52
|
+
inputSchema: (0, to_json_schema_1.toJsonSchema)(schemas_1.GetPullRequestChecksSchema),
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'update_pull_request_thread_status',
|
|
56
|
+
description: 'Update the status of a comment thread in a pull request (repositoryId optional; derived from pullRequestId when omitted)',
|
|
57
|
+
inputSchema: (0, to_json_schema_1.toJsonSchema)(schemas_1.UpdatePullRequestThreadStatusSchema),
|
|
58
|
+
},
|
|
59
|
+
];
|
|
60
|
+
//# sourceMappingURL=tool-definitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-definitions.js","sourceRoot":"","sources":["../../../src/features/pull-requests/tool-definitions.ts"],"names":[],"mappings":";;;AAAA,sEAAiE;AAEjE,uCAUmB;AAEnB;;GAEG;AACU,QAAA,iBAAiB,GAAqB;IACjD;QACE,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EACT,sFAAsF;QACxF,WAAW,EAAE,IAAA,6BAAY,EAAC,iCAAuB,CAAC;KACnD;IACD;QACE,IAAI,EAAE,kBAAkB;QACxB,WAAW,EACT,mHAAmH;QACrH,WAAW,EAAE,IAAA,6BAAY,EAAC,8BAAoB,CAAC;KAChD;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,oCAAoC;QACjD,WAAW,EAAE,IAAA,6BAAY,EAAC,gCAAsB,CAAC;KAClD;IACD;QACE,IAAI,EAAE,2BAA2B;QACjC,WAAW,EAAE,2CAA2C;QACxD,WAAW,EAAE,IAAA,6BAAY,EAAC,sCAA4B,CAAC;KACxD;IACD;QACE,IAAI,EAAE,0BAA0B;QAChC,WAAW,EACT,kGAAkG;QACpG,WAAW,EAAE,IAAA,6BAAY,EAAC,qCAA2B,CAAC;KACvD;IACD;QACE,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EACT,8GAA8G;QAChH,WAAW,EAAE,IAAA,6BAAY,EAAC,iCAAuB,CAAC;KACnD;IACD;QACE,IAAI,EAAE,0BAA0B;QAChC,WAAW,EACT,gIAAgI;QAClI,WAAW,EAAE,IAAA,6BAAY,EAAC,qCAA2B,CAAC;KACvD;IACD;QACE,IAAI,EAAE,yBAAyB;QAC/B,WAAW,EAAE;YACX,+EAA+E;YAC/E,8FAA8F;YAC9F,sGAAsG;SACvG,CAAC,IAAI,CAAC,IAAI,CAAC;QACZ,WAAW,EAAE,IAAA,6BAAY,EAAC,oCAA0B,CAAC;KACtD;IACD;QACE,IAAI,EAAE,mCAAmC;QACzC,WAAW,EACT,0HAA0H;QAC5H,WAAW,EAAE,IAAA,6BAAY,EAAC,6CAAmC,CAAC;KAC/D;CACF,CAAC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { GitPullRequest, Comment, GitPullRequestCommentThread, CommentPosition } from 'azure-devops-node-api/interfaces/GitInterfaces';
|
|
2
|
+
export type PullRequest = GitPullRequest;
|
|
3
|
+
export type PullRequestComment = Comment;
|
|
4
|
+
/**
|
|
5
|
+
* Extended Comment type with string enum values
|
|
6
|
+
*/
|
|
7
|
+
export interface CommentWithStringEnums extends Omit<Comment, 'commentType'> {
|
|
8
|
+
commentType?: string;
|
|
9
|
+
filePath?: string;
|
|
10
|
+
leftFileStart?: CommentPosition;
|
|
11
|
+
leftFileEnd?: CommentPosition;
|
|
12
|
+
rightFileStart?: CommentPosition;
|
|
13
|
+
rightFileEnd?: CommentPosition;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Extended GitPullRequestCommentThread type with string enum values
|
|
17
|
+
*/
|
|
18
|
+
export interface CommentThreadWithStringEnums extends Omit<GitPullRequestCommentThread, 'status' | 'comments'> {
|
|
19
|
+
status?: string;
|
|
20
|
+
comments?: CommentWithStringEnums[];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Response type for add comment operations
|
|
24
|
+
*/
|
|
25
|
+
export interface AddCommentResponse {
|
|
26
|
+
comment: CommentWithStringEnums;
|
|
27
|
+
thread?: CommentThreadWithStringEnums;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Options for creating a pull request
|
|
31
|
+
*/
|
|
32
|
+
export interface CreatePullRequestOptions {
|
|
33
|
+
title: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
sourceRefName: string;
|
|
36
|
+
targetRefName: string;
|
|
37
|
+
reviewers?: string[];
|
|
38
|
+
isDraft?: boolean;
|
|
39
|
+
workItemRefs?: number[];
|
|
40
|
+
tags?: string[];
|
|
41
|
+
additionalProperties?: Record<string, string | number | boolean>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Options for listing pull requests
|
|
45
|
+
*/
|
|
46
|
+
export interface ListPullRequestsOptions {
|
|
47
|
+
projectId: string;
|
|
48
|
+
repositoryId: string;
|
|
49
|
+
status?: 'all' | 'active' | 'completed' | 'abandoned';
|
|
50
|
+
creatorId?: string;
|
|
51
|
+
reviewerId?: string;
|
|
52
|
+
sourceRefName?: string;
|
|
53
|
+
targetRefName?: string;
|
|
54
|
+
top?: number;
|
|
55
|
+
skip?: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Options for getting pull request comments
|
|
59
|
+
*/
|
|
60
|
+
export interface GetPullRequestCommentsOptions {
|
|
61
|
+
projectId: string;
|
|
62
|
+
repositoryId: string;
|
|
63
|
+
pullRequestId: number;
|
|
64
|
+
threadId?: number;
|
|
65
|
+
includeDeleted?: boolean;
|
|
66
|
+
top?: number;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Options for adding a comment to a pull request
|
|
70
|
+
*/
|
|
71
|
+
export interface AddPullRequestCommentOptions {
|
|
72
|
+
projectId: string;
|
|
73
|
+
repositoryId?: string;
|
|
74
|
+
pullRequestId: number;
|
|
75
|
+
content: string;
|
|
76
|
+
threadId?: number;
|
|
77
|
+
parentCommentId?: number;
|
|
78
|
+
filePath?: string;
|
|
79
|
+
lineNumber?: number;
|
|
80
|
+
endLineNumber?: number;
|
|
81
|
+
status?: 'active' | 'fixed' | 'wontFix' | 'closed' | 'pending' | 'byDesign' | 'unknown';
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Options for updating a pull request
|
|
85
|
+
*/
|
|
86
|
+
export interface UpdatePullRequestOptions {
|
|
87
|
+
projectId: string;
|
|
88
|
+
repositoryId: string;
|
|
89
|
+
pullRequestId: number;
|
|
90
|
+
title?: string;
|
|
91
|
+
description?: string;
|
|
92
|
+
status?: 'active' | 'abandoned' | 'completed';
|
|
93
|
+
isDraft?: boolean;
|
|
94
|
+
addWorkItemIds?: number[];
|
|
95
|
+
removeWorkItemIds?: number[];
|
|
96
|
+
addReviewers?: string[];
|
|
97
|
+
removeReviewers?: string[];
|
|
98
|
+
addTags?: string[];
|
|
99
|
+
removeTags?: string[];
|
|
100
|
+
additionalProperties?: Record<string, string | number | boolean>;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Options for updating a pull request thread status
|
|
104
|
+
*/
|
|
105
|
+
export interface UpdatePullRequestThreadStatusOptions {
|
|
106
|
+
projectId?: string;
|
|
107
|
+
organizationId?: string;
|
|
108
|
+
repositoryId?: string;
|
|
109
|
+
pullRequestId: number;
|
|
110
|
+
threadId: number;
|
|
111
|
+
status: 'active' | 'fixed' | 'wontFix' | 'closed' | 'pending' | 'byDesign' | 'unknown';
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Response type for updating a pull request thread status
|
|
115
|
+
*/
|
|
116
|
+
export interface UpdatePullRequestThreadStatusResponse {
|
|
117
|
+
thread: CommentThreadWithStringEnums;
|
|
118
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/features/pull-requests/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GitPullRequest } from 'azure-devops-node-api/interfaces/GitInterfaces';
|
|
2
|
+
import { UpdatePullRequestOptions } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Updates an existing pull request in Azure DevOps with the specified changes.
|
|
5
|
+
*
|
|
6
|
+
* @param options - The options for updating the pull request
|
|
7
|
+
* @returns The updated pull request
|
|
8
|
+
*/
|
|
9
|
+
export declare const updatePullRequest: (options: UpdatePullRequestOptions) => Promise<GitPullRequest>;
|