gitlab-mcp-test 6.62.1
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 +202 -0
- package/LICENSE.MIT +21 -0
- package/README.md +122 -0
- package/README.md.in +122 -0
- package/dist/generated/prisma/client.d.ts +13 -0
- package/dist/generated/prisma/client.js +46 -0
- package/dist/generated/prisma/client.js.map +1 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +245 -0
- package/dist/generated/prisma/commonInputTypes.js +3 -0
- package/dist/generated/prisma/commonInputTypes.js.map +1 -0
- package/dist/generated/prisma/enums.d.ts +1 -0
- package/dist/generated/prisma/enums.js +3 -0
- package/dist/generated/prisma/enums.js.map +1 -0
- package/dist/generated/prisma/internal/class.d.ts +47 -0
- package/dist/generated/prisma/internal/class.js +75 -0
- package/dist/generated/prisma/internal/class.js.map +1 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +714 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +141 -0
- package/dist/generated/prisma/internal/prismaNamespace.js.map +1 -0
- package/dist/generated/prisma/models/AuthCodeFlowState.d.ts +513 -0
- package/dist/generated/prisma/models/AuthCodeFlowState.js +3 -0
- package/dist/generated/prisma/models/AuthCodeFlowState.js.map +1 -0
- package/dist/generated/prisma/models/AuthorizationCode.d.ts +641 -0
- package/dist/generated/prisma/models/AuthorizationCode.js +3 -0
- package/dist/generated/prisma/models/AuthorizationCode.js.map +1 -0
- package/dist/generated/prisma/models/DeviceFlowState.d.ts +603 -0
- package/dist/generated/prisma/models/DeviceFlowState.js +3 -0
- package/dist/generated/prisma/models/DeviceFlowState.js.map +1 -0
- package/dist/generated/prisma/models/McpSessionMapping.d.ts +438 -0
- package/dist/generated/prisma/models/McpSessionMapping.js +3 -0
- package/dist/generated/prisma/models/McpSessionMapping.js.map +1 -0
- package/dist/generated/prisma/models/OAuthSession.d.ts +1037 -0
- package/dist/generated/prisma/models/OAuthSession.js +3 -0
- package/dist/generated/prisma/models/OAuthSession.js.map +1 -0
- package/dist/generated/prisma/models.d.ts +6 -0
- package/dist/generated/prisma/models.js +3 -0
- package/dist/generated/prisma/models.js.map +1 -0
- package/dist/src/cli/docker/container-runtime.d.ts +4 -0
- package/dist/src/cli/docker/container-runtime.js +85 -0
- package/dist/src/cli/docker/container-runtime.js.map +1 -0
- package/dist/src/cli/docker/docker-command.d.ts +15 -0
- package/dist/src/cli/docker/docker-command.js +421 -0
- package/dist/src/cli/docker/docker-command.js.map +1 -0
- package/dist/src/cli/docker/docker-utils.d.ts +25 -0
- package/dist/src/cli/docker/docker-utils.js +386 -0
- package/dist/src/cli/docker/docker-utils.js.map +1 -0
- package/dist/src/cli/docker/index.d.ts +4 -0
- package/dist/src/cli/docker/index.js +24 -0
- package/dist/src/cli/docker/index.js.map +1 -0
- package/dist/src/cli/docker/types.d.ts +83 -0
- package/dist/src/cli/docker/types.js +21 -0
- package/dist/src/cli/docker/types.js.map +1 -0
- package/dist/src/cli/init/browser.d.ts +7 -0
- package/dist/src/cli/init/browser.js +27 -0
- package/dist/src/cli/init/browser.js.map +1 -0
- package/dist/src/cli/init/config-generator.d.ts +11 -0
- package/dist/src/cli/init/config-generator.js +87 -0
- package/dist/src/cli/init/config-generator.js.map +1 -0
- package/dist/src/cli/init/connection.d.ts +8 -0
- package/dist/src/cli/init/connection.js +118 -0
- package/dist/src/cli/init/connection.js.map +1 -0
- package/dist/src/cli/init/index.d.ts +4 -0
- package/dist/src/cli/init/index.js +32 -0
- package/dist/src/cli/init/index.js.map +1 -0
- package/dist/src/cli/init/types.d.ts +31 -0
- package/dist/src/cli/init/types.js +66 -0
- package/dist/src/cli/init/types.js.map +1 -0
- package/dist/src/cli/init/wizard.d.ts +1 -0
- package/dist/src/cli/init/wizard.js +283 -0
- package/dist/src/cli/init/wizard.js.map +1 -0
- package/dist/src/cli/inject-tool-refs.d.ts +35 -0
- package/dist/src/cli/inject-tool-refs.js +261 -0
- package/dist/src/cli/inject-tool-refs.js.map +1 -0
- package/dist/src/cli/install/backup.d.ts +4 -0
- package/dist/src/cli/install/backup.js +63 -0
- package/dist/src/cli/install/backup.js.map +1 -0
- package/dist/src/cli/install/detector.d.ts +10 -0
- package/dist/src/cli/install/detector.js +133 -0
- package/dist/src/cli/install/detector.js.map +1 -0
- package/dist/src/cli/install/index.d.ts +5 -0
- package/dist/src/cli/install/index.js +27 -0
- package/dist/src/cli/install/index.js.map +1 -0
- package/dist/src/cli/install/install-command.d.ts +19 -0
- package/dist/src/cli/install/install-command.js +300 -0
- package/dist/src/cli/install/install-command.js.map +1 -0
- package/dist/src/cli/install/installers.d.ts +12 -0
- package/dist/src/cli/install/installers.js +439 -0
- package/dist/src/cli/install/installers.js.map +1 -0
- package/dist/src/cli/install/types.d.ts +52 -0
- package/dist/src/cli/install/types.js +87 -0
- package/dist/src/cli/install/types.js.map +1 -0
- package/dist/src/cli/instances/index.d.ts +2 -0
- package/dist/src/cli/instances/index.js +7 -0
- package/dist/src/cli/instances/index.js.map +1 -0
- package/dist/src/cli/instances/instances-command.d.ts +6 -0
- package/dist/src/cli/instances/instances-command.js +351 -0
- package/dist/src/cli/instances/instances-command.js.map +1 -0
- package/dist/src/cli/list-tools.d.ts +2 -0
- package/dist/src/cli/list-tools.js +1431 -0
- package/dist/src/cli/list-tools.js.map +1 -0
- package/dist/src/cli/setup/discovery.d.ts +3 -0
- package/dist/src/cli/setup/discovery.js +71 -0
- package/dist/src/cli/setup/discovery.js.map +1 -0
- package/dist/src/cli/setup/flows/configure-existing.d.ts +2 -0
- package/dist/src/cli/setup/flows/configure-existing.js +211 -0
- package/dist/src/cli/setup/flows/configure-existing.js.map +1 -0
- package/dist/src/cli/setup/flows/local-setup.d.ts +2 -0
- package/dist/src/cli/setup/flows/local-setup.js +206 -0
- package/dist/src/cli/setup/flows/local-setup.js.map +1 -0
- package/dist/src/cli/setup/flows/server-setup.d.ts +2 -0
- package/dist/src/cli/setup/flows/server-setup.js +185 -0
- package/dist/src/cli/setup/flows/server-setup.js.map +1 -0
- package/dist/src/cli/setup/flows/tool-selection.d.ts +3 -0
- package/dist/src/cli/setup/flows/tool-selection.js +275 -0
- package/dist/src/cli/setup/flows/tool-selection.js.map +1 -0
- package/dist/src/cli/setup/index.d.ts +4 -0
- package/dist/src/cli/setup/index.js +29 -0
- package/dist/src/cli/setup/index.js.map +1 -0
- package/dist/src/cli/setup/presets.d.ts +7 -0
- package/dist/src/cli/setup/presets.js +261 -0
- package/dist/src/cli/setup/presets.js.map +1 -0
- package/dist/src/cli/setup/types.d.ts +68 -0
- package/dist/src/cli/setup/types.js +3 -0
- package/dist/src/cli/setup/types.js.map +1 -0
- package/dist/src/cli/setup/wizard.d.ts +4 -0
- package/dist/src/cli/setup/wizard.js +128 -0
- package/dist/src/cli/setup/wizard.js.map +1 -0
- package/dist/src/cli/utils/index.d.ts +1 -0
- package/dist/src/cli/utils/index.js +6 -0
- package/dist/src/cli/utils/index.js.map +1 -0
- package/dist/src/cli/utils/path-utils.d.ts +1 -0
- package/dist/src/cli/utils/path-utils.js +18 -0
- package/dist/src/cli/utils/path-utils.js.map +1 -0
- package/dist/src/cli-utils.d.ts +19 -0
- package/dist/src/cli-utils.js +183 -0
- package/dist/src/cli-utils.js.map +1 -0
- package/dist/src/config/index.d.ts +4 -0
- package/dist/src/config/index.js +19 -0
- package/dist/src/config/index.js.map +1 -0
- package/dist/src/config/instances-loader.d.ts +10 -0
- package/dist/src/config/instances-loader.js +294 -0
- package/dist/src/config/instances-loader.js.map +1 -0
- package/dist/src/config/instances-schema.d.ts +89 -0
- package/dist/src/config/instances-schema.js +196 -0
- package/dist/src/config/instances-schema.js.map +1 -0
- package/dist/src/config.d.ts +82 -0
- package/dist/src/config.js +379 -0
- package/dist/src/config.js.map +1 -0
- package/dist/src/dashboard/handler.d.ts +4 -0
- package/dist/src/dashboard/handler.js +37 -0
- package/dist/src/dashboard/handler.js.map +1 -0
- package/dist/src/dashboard/html-template.d.ts +2 -0
- package/dist/src/dashboard/html-template.js +443 -0
- package/dist/src/dashboard/html-template.js.map +1 -0
- package/dist/src/dashboard/index.d.ts +4 -0
- package/dist/src/dashboard/index.js +15 -0
- package/dist/src/dashboard/index.js.map +1 -0
- package/dist/src/dashboard/metrics.d.ts +79 -0
- package/dist/src/dashboard/metrics.js +194 -0
- package/dist/src/dashboard/metrics.js.map +1 -0
- package/dist/src/discovery/auto.d.ts +22 -0
- package/dist/src/discovery/auto.js +170 -0
- package/dist/src/discovery/auto.js.map +1 -0
- package/dist/src/discovery/git-remote.d.ts +19 -0
- package/dist/src/discovery/git-remote.js +197 -0
- package/dist/src/discovery/git-remote.js.map +1 -0
- package/dist/src/discovery/index.d.ts +3 -0
- package/dist/src/discovery/index.js +16 -0
- package/dist/src/discovery/index.js.map +1 -0
- package/dist/src/discovery/profile-matcher.d.ts +8 -0
- package/dist/src/discovery/profile-matcher.js +48 -0
- package/dist/src/discovery/profile-matcher.js.map +1 -0
- package/dist/src/entities/context/context-manager.d.ts +31 -0
- package/dist/src/entities/context/context-manager.js +352 -0
- package/dist/src/entities/context/context-manager.js.map +1 -0
- package/dist/src/entities/context/handlers.d.ts +11 -0
- package/dist/src/entities/context/handlers.js +67 -0
- package/dist/src/entities/context/handlers.js.map +1 -0
- package/dist/src/entities/context/index.d.ts +11 -0
- package/dist/src/entities/context/index.js +34 -0
- package/dist/src/entities/context/index.js.map +1 -0
- package/dist/src/entities/context/registry.d.ts +5 -0
- package/dist/src/entities/context/registry.js +66 -0
- package/dist/src/entities/context/registry.js.map +1 -0
- package/dist/src/entities/context/schema.d.ts +60 -0
- package/dist/src/entities/context/schema.js +61 -0
- package/dist/src/entities/context/schema.js.map +1 -0
- package/dist/src/entities/context/types.d.ts +112 -0
- package/dist/src/entities/context/types.js +3 -0
- package/dist/src/entities/context/types.js.map +1 -0
- package/dist/src/entities/context/whoami.d.ts +2 -0
- package/dist/src/entities/context/whoami.js +267 -0
- package/dist/src/entities/context/whoami.js.map +1 -0
- package/dist/src/entities/core/index.d.ts +7 -0
- package/dist/src/entities/core/index.js +31 -0
- package/dist/src/entities/core/index.js.map +1 -0
- package/dist/src/entities/core/registry.d.ts +5 -0
- package/dist/src/entities/core/registry.js +784 -0
- package/dist/src/entities/core/registry.js.map +1 -0
- package/dist/src/entities/core/schema-readonly.d.ts +268 -0
- package/dist/src/entities/core/schema-readonly.js +289 -0
- package/dist/src/entities/core/schema-readonly.js.map +1 -0
- package/dist/src/entities/core/schema.d.ts +116 -0
- package/dist/src/entities/core/schema.js +173 -0
- package/dist/src/entities/core/schema.js.map +1 -0
- package/dist/src/entities/files/index.d.ts +7 -0
- package/dist/src/entities/files/index.js +31 -0
- package/dist/src/entities/files/index.js.map +1 -0
- package/dist/src/entities/files/registry.d.ts +5 -0
- package/dist/src/entities/files/registry.js +267 -0
- package/dist/src/entities/files/registry.js.map +1 -0
- package/dist/src/entities/files/schema-readonly.d.ts +83 -0
- package/dist/src/entities/files/schema-readonly.js +64 -0
- package/dist/src/entities/files/schema-readonly.js.map +1 -0
- package/dist/src/entities/files/schema.d.ts +43 -0
- package/dist/src/entities/files/schema.js +54 -0
- package/dist/src/entities/files/schema.js.map +1 -0
- package/dist/src/entities/index.d.ts +17 -0
- package/dist/src/entities/index.js +34 -0
- package/dist/src/entities/index.js.map +1 -0
- package/dist/src/entities/integrations/index.d.ts +4 -0
- package/dist/src/entities/integrations/index.js +21 -0
- package/dist/src/entities/integrations/index.js.map +1 -0
- package/dist/src/entities/integrations/registry.d.ts +5 -0
- package/dist/src/entities/integrations/registry.js +127 -0
- package/dist/src/entities/integrations/registry.js.map +1 -0
- package/dist/src/entities/integrations/schema-readonly.d.ts +63 -0
- package/dist/src/entities/integrations/schema-readonly.js +22 -0
- package/dist/src/entities/integrations/schema-readonly.js.map +1 -0
- package/dist/src/entities/integrations/schema.d.ts +180 -0
- package/dist/src/entities/integrations/schema.js +106 -0
- package/dist/src/entities/integrations/schema.js.map +1 -0
- package/dist/src/entities/iterations/index.d.ts +2 -0
- package/dist/src/entities/iterations/index.js +19 -0
- package/dist/src/entities/iterations/index.js.map +1 -0
- package/dist/src/entities/iterations/registry.d.ts +5 -0
- package/dist/src/entities/iterations/registry.js +106 -0
- package/dist/src/entities/iterations/registry.js.map +1 -0
- package/dist/src/entities/iterations/schema-readonly.d.ts +21 -0
- package/dist/src/entities/iterations/schema-readonly.js +28 -0
- package/dist/src/entities/iterations/schema-readonly.js.map +1 -0
- package/dist/src/entities/labels/index.d.ts +7 -0
- package/dist/src/entities/labels/index.js +31 -0
- package/dist/src/entities/labels/index.js.map +1 -0
- package/dist/src/entities/labels/registry.d.ts +5 -0
- package/dist/src/entities/labels/registry.js +131 -0
- package/dist/src/entities/labels/registry.js.map +1 -0
- package/dist/src/entities/labels/schema-readonly.d.ts +16 -0
- package/dist/src/entities/labels/schema-readonly.js +28 -0
- package/dist/src/entities/labels/schema-readonly.js.map +1 -0
- package/dist/src/entities/labels/schema.d.ts +23 -0
- package/dist/src/entities/labels/schema.js +46 -0
- package/dist/src/entities/labels/schema.js.map +1 -0
- package/dist/src/entities/members/index.d.ts +3 -0
- package/dist/src/entities/members/index.js +25 -0
- package/dist/src/entities/members/index.js.map +1 -0
- package/dist/src/entities/members/registry.d.ts +5 -0
- package/dist/src/entities/members/registry.js +224 -0
- package/dist/src/entities/members/registry.js.map +1 -0
- package/dist/src/entities/members/schema-readonly.d.ts +53 -0
- package/dist/src/entities/members/schema-readonly.js +79 -0
- package/dist/src/entities/members/schema-readonly.js.map +1 -0
- package/dist/src/entities/members/schema.d.ts +40 -0
- package/dist/src/entities/members/schema.js +80 -0
- package/dist/src/entities/members/schema.js.map +1 -0
- package/dist/src/entities/milestones/index.d.ts +7 -0
- package/dist/src/entities/milestones/index.js +31 -0
- package/dist/src/entities/milestones/index.js.map +1 -0
- package/dist/src/entities/milestones/registry.d.ts +5 -0
- package/dist/src/entities/milestones/registry.js +150 -0
- package/dist/src/entities/milestones/registry.js.map +1 -0
- package/dist/src/entities/milestones/schema-readonly.d.ts +57 -0
- package/dist/src/entities/milestones/schema-readonly.js +81 -0
- package/dist/src/entities/milestones/schema-readonly.js.map +1 -0
- package/dist/src/entities/milestones/schema.d.ts +30 -0
- package/dist/src/entities/milestones/schema.js +47 -0
- package/dist/src/entities/milestones/schema.js.map +1 -0
- package/dist/src/entities/mrs/index.d.ts +7 -0
- package/dist/src/entities/mrs/index.js +31 -0
- package/dist/src/entities/mrs/index.js.map +1 -0
- package/dist/src/entities/mrs/registry.d.ts +22 -0
- package/dist/src/entities/mrs/registry.js +495 -0
- package/dist/src/entities/mrs/registry.js.map +1 -0
- package/dist/src/entities/mrs/schema-readonly.d.ts +135 -0
- package/dist/src/entities/mrs/schema-readonly.js +326 -0
- package/dist/src/entities/mrs/schema-readonly.js.map +1 -0
- package/dist/src/entities/mrs/schema.d.ts +339 -0
- package/dist/src/entities/mrs/schema.js +259 -0
- package/dist/src/entities/mrs/schema.js.map +1 -0
- package/dist/src/entities/pipelines/index.d.ts +7 -0
- package/dist/src/entities/pipelines/index.js +31 -0
- package/dist/src/entities/pipelines/index.js.map +1 -0
- package/dist/src/entities/pipelines/registry.d.ts +5 -0
- package/dist/src/entities/pipelines/registry.js +323 -0
- package/dist/src/entities/pipelines/registry.js.map +1 -0
- package/dist/src/entities/pipelines/schema-readonly.d.ts +239 -0
- package/dist/src/entities/pipelines/schema-readonly.js +278 -0
- package/dist/src/entities/pipelines/schema-readonly.js.map +1 -0
- package/dist/src/entities/pipelines/schema.d.ts +47 -0
- package/dist/src/entities/pipelines/schema.js +73 -0
- package/dist/src/entities/pipelines/schema.js.map +1 -0
- package/dist/src/entities/refs/index.d.ts +3 -0
- package/dist/src/entities/refs/index.js +25 -0
- package/dist/src/entities/refs/index.js.map +1 -0
- package/dist/src/entities/refs/registry.d.ts +5 -0
- package/dist/src/entities/refs/registry.js +233 -0
- package/dist/src/entities/refs/registry.js.map +1 -0
- package/dist/src/entities/refs/schema-readonly.d.ts +48 -0
- package/dist/src/entities/refs/schema-readonly.js +76 -0
- package/dist/src/entities/refs/schema-readonly.js.map +1 -0
- package/dist/src/entities/refs/schema.d.ts +85 -0
- package/dist/src/entities/refs/schema.js +149 -0
- package/dist/src/entities/refs/schema.js.map +1 -0
- package/dist/src/entities/releases/index.d.ts +3 -0
- package/dist/src/entities/releases/index.js +13 -0
- package/dist/src/entities/releases/index.js.map +1 -0
- package/dist/src/entities/releases/registry.d.ts +5 -0
- package/dist/src/entities/releases/registry.js +183 -0
- package/dist/src/entities/releases/registry.js.map +1 -0
- package/dist/src/entities/releases/schema-readonly.d.ts +28 -0
- package/dist/src/entities/releases/schema-readonly.js +56 -0
- package/dist/src/entities/releases/schema-readonly.js.map +1 -0
- package/dist/src/entities/releases/schema.d.ts +56 -0
- package/dist/src/entities/releases/schema.js +97 -0
- package/dist/src/entities/releases/schema.js.map +1 -0
- package/dist/src/entities/search/index.d.ts +2 -0
- package/dist/src/entities/search/index.js +24 -0
- package/dist/src/entities/search/index.js.map +1 -0
- package/dist/src/entities/search/registry.d.ts +5 -0
- package/dist/src/entities/search/registry.js +113 -0
- package/dist/src/entities/search/registry.js.map +1 -0
- package/dist/src/entities/search/schema-readonly.d.ts +228 -0
- package/dist/src/entities/search/schema-readonly.js +64 -0
- package/dist/src/entities/search/schema-readonly.js.map +1 -0
- package/dist/src/entities/shared.d.ts +291 -0
- package/dist/src/entities/shared.js +269 -0
- package/dist/src/entities/shared.js.map +1 -0
- package/dist/src/entities/snippets/index.d.ts +7 -0
- package/dist/src/entities/snippets/index.js +31 -0
- package/dist/src/entities/snippets/index.js.map +1 -0
- package/dist/src/entities/snippets/registry.d.ts +5 -0
- package/dist/src/entities/snippets/registry.js +200 -0
- package/dist/src/entities/snippets/registry.js.map +1 -0
- package/dist/src/entities/snippets/schema-readonly.d.ts +25 -0
- package/dist/src/entities/snippets/schema-readonly.js +45 -0
- package/dist/src/entities/snippets/schema-readonly.js.map +1 -0
- package/dist/src/entities/snippets/schema.d.ts +56 -0
- package/dist/src/entities/snippets/schema.js +89 -0
- package/dist/src/entities/snippets/schema.js.map +1 -0
- package/dist/src/entities/utils.d.ts +16 -0
- package/dist/src/entities/utils.js +57 -0
- package/dist/src/entities/utils.js.map +1 -0
- package/dist/src/entities/variables/index.d.ts +7 -0
- package/dist/src/entities/variables/index.js +31 -0
- package/dist/src/entities/variables/index.js.map +1 -0
- package/dist/src/entities/variables/registry.d.ts +5 -0
- package/dist/src/entities/variables/registry.js +140 -0
- package/dist/src/entities/variables/registry.js.map +1 -0
- package/dist/src/entities/variables/schema-readonly.d.ts +15 -0
- package/dist/src/entities/variables/schema-readonly.js +33 -0
- package/dist/src/entities/variables/schema-readonly.js.map +1 -0
- package/dist/src/entities/variables/schema.d.ts +41 -0
- package/dist/src/entities/variables/schema.js +92 -0
- package/dist/src/entities/variables/schema.js.map +1 -0
- package/dist/src/entities/webhooks/index.d.ts +4 -0
- package/dist/src/entities/webhooks/index.js +21 -0
- package/dist/src/entities/webhooks/index.js.map +1 -0
- package/dist/src/entities/webhooks/registry.d.ts +5 -0
- package/dist/src/entities/webhooks/registry.js +162 -0
- package/dist/src/entities/webhooks/registry.js.map +1 -0
- package/dist/src/entities/webhooks/schema-readonly.d.ts +22 -0
- package/dist/src/entities/webhooks/schema-readonly.js +25 -0
- package/dist/src/entities/webhooks/schema-readonly.js.map +1 -0
- package/dist/src/entities/webhooks/schema.d.ts +101 -0
- package/dist/src/entities/webhooks/schema.js +101 -0
- package/dist/src/entities/webhooks/schema.js.map +1 -0
- package/dist/src/entities/wiki/index.d.ts +7 -0
- package/dist/src/entities/wiki/index.js +31 -0
- package/dist/src/entities/wiki/index.js.map +1 -0
- package/dist/src/entities/wiki/registry.d.ts +5 -0
- package/dist/src/entities/wiki/registry.js +127 -0
- package/dist/src/entities/wiki/registry.js.map +1 -0
- package/dist/src/entities/wiki/schema-readonly.d.ts +22 -0
- package/dist/src/entities/wiki/schema-readonly.js +27 -0
- package/dist/src/entities/wiki/schema-readonly.js.map +1 -0
- package/dist/src/entities/wiki/schema.d.ts +30 -0
- package/dist/src/entities/wiki/schema.js +38 -0
- package/dist/src/entities/wiki/schema.js.map +1 -0
- package/dist/src/entities/workitems/index.d.ts +7 -0
- package/dist/src/entities/workitems/index.js +31 -0
- package/dist/src/entities/workitems/index.js.map +1 -0
- package/dist/src/entities/workitems/registry.d.ts +5 -0
- package/dist/src/entities/workitems/registry.js +725 -0
- package/dist/src/entities/workitems/registry.js.map +1 -0
- package/dist/src/entities/workitems/schema-readonly.d.ts +49 -0
- package/dist/src/entities/workitems/schema-readonly.js +87 -0
- package/dist/src/entities/workitems/schema-readonly.js.map +1 -0
- package/dist/src/entities/workitems/schema.d.ts +97 -0
- package/dist/src/entities/workitems/schema.js +187 -0
- package/dist/src/entities/workitems/schema.js.map +1 -0
- package/dist/src/graphql/DynamicWorkItemsQuery.d.ts +56 -0
- package/dist/src/graphql/DynamicWorkItemsQuery.js +190 -0
- package/dist/src/graphql/DynamicWorkItemsQuery.js.map +1 -0
- package/dist/src/graphql/client.d.ts +17 -0
- package/dist/src/graphql/client.js +56 -0
- package/dist/src/graphql/client.js.map +1 -0
- package/dist/src/graphql/index.d.ts +2 -0
- package/dist/src/graphql/index.js +21 -0
- package/dist/src/graphql/index.js.map +1 -0
- package/dist/src/graphql/workItems.d.ts +659 -0
- package/dist/src/graphql/workItems.js +1545 -0
- package/dist/src/graphql/workItems.js.map +1 -0
- package/dist/src/handlers.d.ts +2 -0
- package/dist/src/handlers.js +346 -0
- package/dist/src/handlers.js.map +1 -0
- package/dist/src/http-client.d.ts +1 -0
- package/dist/src/http-client.js +9 -0
- package/dist/src/http-client.js.map +1 -0
- package/dist/src/logger.d.ts +9 -0
- package/dist/src/logger.js +129 -0
- package/dist/src/logger.js.map +1 -0
- package/dist/src/logging/access-log.d.ts +15 -0
- package/dist/src/logging/access-log.js +157 -0
- package/dist/src/logging/access-log.js.map +1 -0
- package/dist/src/logging/connection-tracker.d.ts +21 -0
- package/dist/src/logging/connection-tracker.js +106 -0
- package/dist/src/logging/connection-tracker.js.map +1 -0
- package/dist/src/logging/index.d.ts +5 -0
- package/dist/src/logging/index.js +27 -0
- package/dist/src/logging/index.js.map +1 -0
- package/dist/src/logging/request-tracker.d.ts +39 -0
- package/dist/src/logging/request-tracker.js +208 -0
- package/dist/src/logging/request-tracker.js.map +1 -0
- package/dist/src/logging/types.d.ts +55 -0
- package/dist/src/logging/types.js +5 -0
- package/dist/src/logging/types.js.map +1 -0
- package/dist/src/main.d.ts +2 -0
- package/dist/src/main.js +219 -0
- package/dist/src/main.js.map +1 -0
- package/dist/src/middleware/index.d.ts +2 -0
- package/dist/src/middleware/index.js +12 -0
- package/dist/src/middleware/index.js.map +1 -0
- package/dist/src/middleware/oauth-auth.d.ts +4 -0
- package/dist/src/middleware/oauth-auth.js +137 -0
- package/dist/src/middleware/oauth-auth.js.map +1 -0
- package/dist/src/middleware/rate-limiter.d.ts +11 -0
- package/dist/src/middleware/rate-limiter.js +183 -0
- package/dist/src/middleware/rate-limiter.js.map +1 -0
- package/dist/src/oauth/config.d.ts +25 -0
- package/dist/src/oauth/config.js +109 -0
- package/dist/src/oauth/config.js.map +1 -0
- package/dist/src/oauth/endpoints/authorize.d.ts +3 -0
- package/dist/src/oauth/endpoints/authorize.js +454 -0
- package/dist/src/oauth/endpoints/authorize.js.map +1 -0
- package/dist/src/oauth/endpoints/callback.d.ts +2 -0
- package/dist/src/oauth/endpoints/callback.js +134 -0
- package/dist/src/oauth/endpoints/callback.js.map +1 -0
- package/dist/src/oauth/endpoints/index.d.ts +5 -0
- package/dist/src/oauth/endpoints/index.js +19 -0
- package/dist/src/oauth/endpoints/index.js.map +1 -0
- package/dist/src/oauth/endpoints/metadata.d.ts +5 -0
- package/dist/src/oauth/endpoints/metadata.js +42 -0
- package/dist/src/oauth/endpoints/metadata.js.map +1 -0
- package/dist/src/oauth/endpoints/register.d.ts +15 -0
- package/dist/src/oauth/endpoints/register.js +85 -0
- package/dist/src/oauth/endpoints/register.js.map +1 -0
- package/dist/src/oauth/endpoints/token.d.ts +2 -0
- package/dist/src/oauth/endpoints/token.js +167 -0
- package/dist/src/oauth/endpoints/token.js.map +1 -0
- package/dist/src/oauth/gitlab-device-flow.d.ts +10 -0
- package/dist/src/oauth/gitlab-device-flow.js +215 -0
- package/dist/src/oauth/gitlab-device-flow.js.map +1 -0
- package/dist/src/oauth/index.d.ts +10 -0
- package/dist/src/oauth/index.js +69 -0
- package/dist/src/oauth/index.js.map +1 -0
- package/dist/src/oauth/session-store.d.ts +54 -0
- package/dist/src/oauth/session-store.js +311 -0
- package/dist/src/oauth/session-store.js.map +1 -0
- package/dist/src/oauth/storage/factory.d.ts +4 -0
- package/dist/src/oauth/storage/factory.js +73 -0
- package/dist/src/oauth/storage/factory.js.map +1 -0
- package/dist/src/oauth/storage/file.d.ts +48 -0
- package/dist/src/oauth/storage/file.js +307 -0
- package/dist/src/oauth/storage/file.js.map +1 -0
- package/dist/src/oauth/storage/index.d.ts +5 -0
- package/dist/src/oauth/storage/index.js +22 -0
- package/dist/src/oauth/storage/index.js.map +1 -0
- package/dist/src/oauth/storage/memory.d.ts +76 -0
- package/dist/src/oauth/storage/memory.js +280 -0
- package/dist/src/oauth/storage/memory.js.map +1 -0
- package/dist/src/oauth/storage/postgresql.d.ts +41 -0
- package/dist/src/oauth/storage/postgresql.js +444 -0
- package/dist/src/oauth/storage/postgresql.js.map +1 -0
- package/dist/src/oauth/storage/types.d.ts +66 -0
- package/dist/src/oauth/storage/types.js +5 -0
- package/dist/src/oauth/storage/types.js.map +1 -0
- package/dist/src/oauth/token-context.d.ts +10 -0
- package/dist/src/oauth/token-context.js +50 -0
- package/dist/src/oauth/token-context.js.map +1 -0
- package/dist/src/oauth/token-utils.d.ts +14 -0
- package/dist/src/oauth/token-utils.js +148 -0
- package/dist/src/oauth/token-utils.js.map +1 -0
- package/dist/src/oauth/types.d.ts +117 -0
- package/dist/src/oauth/types.js +3 -0
- package/dist/src/oauth/types.js.map +1 -0
- package/dist/src/profiles/applicator.d.ts +19 -0
- package/dist/src/profiles/applicator.js +256 -0
- package/dist/src/profiles/applicator.js.map +1 -0
- package/dist/src/profiles/builtin/admin.yaml +30 -0
- package/dist/src/profiles/builtin/ci.yaml +35 -0
- package/dist/src/profiles/builtin/code-reviewer.yaml +41 -0
- package/dist/src/profiles/builtin/developer.yaml +40 -0
- package/dist/src/profiles/builtin/devops.yaml +33 -0
- package/dist/src/profiles/builtin/full-access.yaml +29 -0
- package/dist/src/profiles/builtin/gitlab-com.yaml +40 -0
- package/dist/src/profiles/builtin/junior-dev.yaml +35 -0
- package/dist/src/profiles/builtin/pm.yaml +36 -0
- package/dist/src/profiles/builtin/readonly.yaml +33 -0
- package/dist/src/profiles/builtin/senior-dev.yaml +41 -0
- package/dist/src/profiles/builtin/team-lead.yaml +42 -0
- package/dist/src/profiles/index.d.ts +5 -0
- package/dist/src/profiles/index.js +34 -0
- package/dist/src/profiles/index.js.map +1 -0
- package/dist/src/profiles/loader.d.ts +32 -0
- package/dist/src/profiles/loader.js +319 -0
- package/dist/src/profiles/loader.js.map +1 -0
- package/dist/src/profiles/project-loader.d.ts +12 -0
- package/dist/src/profiles/project-loader.js +214 -0
- package/dist/src/profiles/project-loader.js.map +1 -0
- package/dist/src/profiles/scope-enforcer.d.ts +28 -0
- package/dist/src/profiles/scope-enforcer.js +236 -0
- package/dist/src/profiles/scope-enforcer.js.map +1 -0
- package/dist/src/profiles/types.d.ts +261 -0
- package/dist/src/profiles/types.js +153 -0
- package/dist/src/profiles/types.js.map +1 -0
- package/dist/src/registry-manager.d.ts +37 -0
- package/dist/src/registry-manager.js +488 -0
- package/dist/src/registry-manager.js.map +1 -0
- package/dist/src/server.d.ts +2 -0
- package/dist/src/server.js +624 -0
- package/dist/src/server.js.map +1 -0
- package/dist/src/services/ConnectionManager.d.ts +41 -0
- package/dist/src/services/ConnectionManager.js +438 -0
- package/dist/src/services/ConnectionManager.js.map +1 -0
- package/dist/src/services/GitLabVersionDetector.d.ts +52 -0
- package/dist/src/services/GitLabVersionDetector.js +215 -0
- package/dist/src/services/GitLabVersionDetector.js.map +1 -0
- package/dist/src/services/InstanceConnectionPool.d.ts +54 -0
- package/dist/src/services/InstanceConnectionPool.js +180 -0
- package/dist/src/services/InstanceConnectionPool.js.map +1 -0
- package/dist/src/services/InstanceRateLimiter.d.ts +35 -0
- package/dist/src/services/InstanceRateLimiter.js +131 -0
- package/dist/src/services/InstanceRateLimiter.js.map +1 -0
- package/dist/src/services/InstanceRegistry.d.ts +61 -0
- package/dist/src/services/InstanceRegistry.js +250 -0
- package/dist/src/services/InstanceRegistry.js.map +1 -0
- package/dist/src/services/NamespaceTierDetector.d.ts +9 -0
- package/dist/src/services/NamespaceTierDetector.js +249 -0
- package/dist/src/services/NamespaceTierDetector.js.map +1 -0
- package/dist/src/services/SchemaIntrospector.d.ts +39 -0
- package/dist/src/services/SchemaIntrospector.js +190 -0
- package/dist/src/services/SchemaIntrospector.js.map +1 -0
- package/dist/src/services/TokenScopeDetector.d.ts +35 -0
- package/dist/src/services/TokenScopeDetector.js +232 -0
- package/dist/src/services/TokenScopeDetector.js.map +1 -0
- package/dist/src/services/ToolAvailability.d.ts +32 -0
- package/dist/src/services/ToolAvailability.js +410 -0
- package/dist/src/services/ToolAvailability.js.map +1 -0
- package/dist/src/services/WidgetAvailability.d.ts +23 -0
- package/dist/src/services/WidgetAvailability.js +158 -0
- package/dist/src/services/WidgetAvailability.js.map +1 -0
- package/dist/src/session-manager.d.ts +19 -0
- package/dist/src/session-manager.js +131 -0
- package/dist/src/session-manager.js.map +1 -0
- package/dist/src/types.d.ts +28 -0
- package/dist/src/types.js +11 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/utils/description-utils.d.ts +2 -0
- package/dist/src/utils/description-utils.js +25 -0
- package/dist/src/utils/description-utils.js.map +1 -0
- package/dist/src/utils/error-handler.d.ts +93 -0
- package/dist/src/utils/error-handler.js +597 -0
- package/dist/src/utils/error-handler.js.map +1 -0
- package/dist/src/utils/fetch.d.ts +13 -0
- package/dist/src/utils/fetch.js +539 -0
- package/dist/src/utils/fetch.js.map +1 -0
- package/dist/src/utils/gitlab-api.d.ts +24 -0
- package/dist/src/utils/gitlab-api.js +139 -0
- package/dist/src/utils/gitlab-api.js.map +1 -0
- package/dist/src/utils/idConversion.d.ts +81 -0
- package/dist/src/utils/idConversion.js +193 -0
- package/dist/src/utils/idConversion.js.map +1 -0
- package/dist/src/utils/namespace.d.ts +7 -0
- package/dist/src/utils/namespace.js +59 -0
- package/dist/src/utils/namespace.js.map +1 -0
- package/dist/src/utils/projectIdentifier.d.ts +9 -0
- package/dist/src/utils/projectIdentifier.js +59 -0
- package/dist/src/utils/projectIdentifier.js.map +1 -0
- package/dist/src/utils/request-logger.d.ts +24 -0
- package/dist/src/utils/request-logger.js +55 -0
- package/dist/src/utils/request-logger.js.map +1 -0
- package/dist/src/utils/schema-utils.d.ts +31 -0
- package/dist/src/utils/schema-utils.js +288 -0
- package/dist/src/utils/schema-utils.js.map +1 -0
- package/dist/src/utils/smart-user-search.d.ts +33 -0
- package/dist/src/utils/smart-user-search.js +142 -0
- package/dist/src/utils/smart-user-search.js.map +1 -0
- package/dist/src/utils/version.d.ts +1 -0
- package/dist/src/utils/version.js +14 -0
- package/dist/src/utils/version.js.map +1 -0
- package/dist/src/utils/workItemTypes.d.ts +6 -0
- package/dist/src/utils/workItemTypes.js +14 -0
- package/dist/src/utils/workItemTypes.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +511 -0
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
exports.pipelineReadOnlyTools = exports.pipelineTools = void 0;
|
|
18
|
+
__exportStar(require("../shared"), exports);
|
|
19
|
+
__exportStar(require("./schema-readonly"), exports);
|
|
20
|
+
__exportStar(require("./schema"), exports);
|
|
21
|
+
__exportStar(require("./registry"), exports);
|
|
22
|
+
const registry_1 = require("./registry");
|
|
23
|
+
const isReadOnly = process.env.GITLAB_READONLY === "true";
|
|
24
|
+
const pipelinesToolsFromRegistry = (0, registry_1.getFilteredPipelinesTools)(isReadOnly);
|
|
25
|
+
exports.pipelineTools = pipelinesToolsFromRegistry.map((tool) => ({
|
|
26
|
+
name: tool.name,
|
|
27
|
+
description: tool.description,
|
|
28
|
+
inputSchema: tool.inputSchema,
|
|
29
|
+
}));
|
|
30
|
+
exports.pipelineReadOnlyTools = (0, registry_1.getPipelinesReadOnlyToolNames)();
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/pipelines/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,4CAA0B;AAG1B,oDAAkC;AAGlC,2CAAyB;AAGzB,6CAA2B;AAG3B,yCAAsF;AAItF,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,KAAK,MAAM,CAAC;AAG1D,MAAM,0BAA0B,GAAG,IAAA,oCAAyB,EAAC,UAAU,CAAC,CAAC;AAG5D,QAAA,aAAa,GAAqB,0BAA0B,CAAC,GAAG,CAC3E,CAAC,IAAI,EAAkB,EAAE,CAAC,CAAC;IACzB,IAAI,EAAE,IAAI,CAAC,IAAI;IACf,WAAW,EAAE,IAAI,CAAC,WAAW;IAC7B,WAAW,EAAE,IAAI,CAAC,WAAW;CAC9B,CAAC,CACH,CAAC;AAGW,QAAA,qBAAqB,GAAG,IAAA,wCAA6B,GAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ToolRegistry, EnhancedToolDefinition } from "../../types";
|
|
2
|
+
export declare const pipelinesToolRegistry: ToolRegistry;
|
|
3
|
+
export declare function getPipelinesReadOnlyToolNames(): string[];
|
|
4
|
+
export declare function getPipelinesToolDefinitions(): EnhancedToolDefinition[];
|
|
5
|
+
export declare function getFilteredPipelinesTools(readOnlyMode?: boolean): EnhancedToolDefinition[];
|
|
@@ -0,0 +1,323 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.pipelinesToolRegistry = void 0;
|
|
37
|
+
exports.getPipelinesReadOnlyToolNames = getPipelinesReadOnlyToolNames;
|
|
38
|
+
exports.getPipelinesToolDefinitions = getPipelinesToolDefinitions;
|
|
39
|
+
exports.getFilteredPipelinesTools = getFilteredPipelinesTools;
|
|
40
|
+
const z = __importStar(require("zod"));
|
|
41
|
+
const schema_readonly_1 = require("./schema-readonly");
|
|
42
|
+
const schema_1 = require("./schema");
|
|
43
|
+
const gitlab_api_1 = require("../../utils/gitlab-api");
|
|
44
|
+
const projectIdentifier_1 = require("../../utils/projectIdentifier");
|
|
45
|
+
const fetch_1 = require("../../utils/fetch");
|
|
46
|
+
const logger_1 = require("../../logger");
|
|
47
|
+
const config_1 = require("../../config");
|
|
48
|
+
exports.pipelinesToolRegistry = new Map([
|
|
49
|
+
[
|
|
50
|
+
"browse_pipelines",
|
|
51
|
+
{
|
|
52
|
+
name: "browse_pipelines",
|
|
53
|
+
description: "Monitor CI/CD pipelines and read job logs. Actions: list (filter by status/ref/source/username), get (pipeline details), jobs (list pipeline jobs), triggers (bridge/trigger jobs), job (single job details), logs (job console output). Related: manage_pipeline to trigger/retry/cancel, manage_pipeline_job for individual jobs.",
|
|
54
|
+
inputSchema: z.toJSONSchema(schema_readonly_1.BrowsePipelinesSchema),
|
|
55
|
+
gate: { envVar: "USE_PIPELINE", defaultValue: true },
|
|
56
|
+
handler: async (args) => {
|
|
57
|
+
const input = schema_readonly_1.BrowsePipelinesSchema.parse(args);
|
|
58
|
+
if ((0, config_1.isActionDenied)("browse_pipelines", input.action)) {
|
|
59
|
+
throw new Error(`Action '${input.action}' is not allowed for browse_pipelines tool`);
|
|
60
|
+
}
|
|
61
|
+
switch (input.action) {
|
|
62
|
+
case "list": {
|
|
63
|
+
const { project_id, action: _action, ...queryOptions } = input;
|
|
64
|
+
return gitlab_api_1.gitlab.get(`projects/${(0, projectIdentifier_1.normalizeProjectId)(project_id)}/pipelines`, {
|
|
65
|
+
query: (0, gitlab_api_1.toQuery)(queryOptions, []),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
case "get": {
|
|
69
|
+
const { project_id, pipeline_id } = input;
|
|
70
|
+
return gitlab_api_1.gitlab.get(`projects/${(0, projectIdentifier_1.normalizeProjectId)(project_id)}/pipelines/${pipeline_id}`);
|
|
71
|
+
}
|
|
72
|
+
case "jobs": {
|
|
73
|
+
const { project_id, pipeline_id, job_scope, include_retried, per_page, page } = input;
|
|
74
|
+
const queryOptions = {};
|
|
75
|
+
if (job_scope)
|
|
76
|
+
queryOptions.scope = job_scope;
|
|
77
|
+
if (include_retried !== undefined)
|
|
78
|
+
queryOptions.include_retried = include_retried;
|
|
79
|
+
if (per_page !== undefined)
|
|
80
|
+
queryOptions.per_page = per_page;
|
|
81
|
+
if (page !== undefined)
|
|
82
|
+
queryOptions.page = page;
|
|
83
|
+
return gitlab_api_1.gitlab.get(`projects/${(0, projectIdentifier_1.normalizeProjectId)(project_id)}/pipelines/${pipeline_id}/jobs`, { query: (0, gitlab_api_1.toQuery)(queryOptions, []) });
|
|
84
|
+
}
|
|
85
|
+
case "triggers": {
|
|
86
|
+
const { project_id, pipeline_id, trigger_scope, include_retried, per_page, page } = input;
|
|
87
|
+
const queryOptions = {};
|
|
88
|
+
if (trigger_scope)
|
|
89
|
+
queryOptions.scope = trigger_scope;
|
|
90
|
+
if (include_retried !== undefined)
|
|
91
|
+
queryOptions.include_retried = include_retried;
|
|
92
|
+
if (per_page !== undefined)
|
|
93
|
+
queryOptions.per_page = per_page;
|
|
94
|
+
if (page !== undefined)
|
|
95
|
+
queryOptions.page = page;
|
|
96
|
+
return gitlab_api_1.gitlab.get(`projects/${(0, projectIdentifier_1.normalizeProjectId)(project_id)}/pipelines/${pipeline_id}/bridges`, { query: (0, gitlab_api_1.toQuery)(queryOptions, []) });
|
|
97
|
+
}
|
|
98
|
+
case "job": {
|
|
99
|
+
const { project_id, job_id } = input;
|
|
100
|
+
return gitlab_api_1.gitlab.get(`projects/${(0, projectIdentifier_1.normalizeProjectId)(project_id)}/jobs/${job_id}`);
|
|
101
|
+
}
|
|
102
|
+
case "logs": {
|
|
103
|
+
const { project_id, job_id, per_page, start } = input;
|
|
104
|
+
const apiUrl = `${process.env.GITLAB_API_URL}/api/v4/projects/${(0, projectIdentifier_1.normalizeProjectId)(project_id)}/jobs/${job_id}/trace`;
|
|
105
|
+
const response = await (0, fetch_1.enhancedFetch)(apiUrl);
|
|
106
|
+
if (!response.ok) {
|
|
107
|
+
throw new Error(`GitLab API error: ${response.status} ${response.statusText}`);
|
|
108
|
+
}
|
|
109
|
+
let trace = await response.text();
|
|
110
|
+
const lines = trace.split("\n");
|
|
111
|
+
const totalLines = lines.length;
|
|
112
|
+
const defaultMaxLines = 200;
|
|
113
|
+
const maxLinesToShow = per_page ?? defaultMaxLines;
|
|
114
|
+
let processedLines;
|
|
115
|
+
let outOfBoundsMessage = "";
|
|
116
|
+
let effectiveStart;
|
|
117
|
+
if (start !== undefined && start < 0) {
|
|
118
|
+
effectiveStart = Math.max(0, totalLines + start);
|
|
119
|
+
processedLines = lines.slice(start);
|
|
120
|
+
if (processedLines.length > maxLinesToShow) {
|
|
121
|
+
effectiveStart = totalLines - maxLinesToShow;
|
|
122
|
+
processedLines = processedLines.slice(-maxLinesToShow);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
else if (start !== undefined && start >= 0) {
|
|
126
|
+
effectiveStart = start;
|
|
127
|
+
if (start >= totalLines) {
|
|
128
|
+
processedLines = [];
|
|
129
|
+
outOfBoundsMessage = `[OUT OF BOUNDS: Start position ${start} exceeds total lines ${totalLines}. Available range: 0-${totalLines - 1}]`;
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
processedLines = lines.slice(start, start + maxLinesToShow);
|
|
133
|
+
if (start + maxLinesToShow > totalLines) {
|
|
134
|
+
const availableFromStart = totalLines - start;
|
|
135
|
+
outOfBoundsMessage = `[PARTIAL REQUEST: Requested ${maxLinesToShow} lines from position ${start}, but only ${availableFromStart} lines available]`;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
effectiveStart = Math.max(0, totalLines - maxLinesToShow);
|
|
141
|
+
processedLines = lines.slice(-maxLinesToShow);
|
|
142
|
+
}
|
|
143
|
+
const actualDataLines = processedLines.length;
|
|
144
|
+
if (outOfBoundsMessage) {
|
|
145
|
+
processedLines.unshift(outOfBoundsMessage);
|
|
146
|
+
}
|
|
147
|
+
if (actualDataLines < totalLines && !outOfBoundsMessage) {
|
|
148
|
+
const endLine = effectiveStart + actualDataLines - 1;
|
|
149
|
+
let truncationMessage;
|
|
150
|
+
if (start === undefined || start < 0) {
|
|
151
|
+
truncationMessage = `[LOG TRUNCATED: Showing last ${actualDataLines} of ${totalLines} lines (lines ${effectiveStart}-${endLine})]`;
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
truncationMessage = `[LOG TRUNCATED: Showing lines ${effectiveStart}-${endLine} of ${totalLines}]`;
|
|
155
|
+
}
|
|
156
|
+
processedLines.unshift(truncationMessage);
|
|
157
|
+
}
|
|
158
|
+
trace = processedLines.join("\n");
|
|
159
|
+
const hasMore = effectiveStart + actualDataLines < totalLines;
|
|
160
|
+
const nextStart = hasMore ? effectiveStart + actualDataLines : null;
|
|
161
|
+
return {
|
|
162
|
+
trace,
|
|
163
|
+
totalLines,
|
|
164
|
+
shownLines: actualDataLines,
|
|
165
|
+
startLine: effectiveStart,
|
|
166
|
+
hasMore,
|
|
167
|
+
nextStart,
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
default:
|
|
171
|
+
throw new Error(`Unknown action: ${input.action}`);
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
[
|
|
177
|
+
"manage_pipeline",
|
|
178
|
+
{
|
|
179
|
+
name: "manage_pipeline",
|
|
180
|
+
description: "Trigger, retry, or cancel CI/CD pipelines. Actions: create (run pipeline on ref with variables or typed inputs), retry (re-run failed jobs), cancel (stop running pipeline). Related: browse_pipelines for monitoring.",
|
|
181
|
+
inputSchema: z.toJSONSchema(schema_1.ManagePipelineSchema),
|
|
182
|
+
gate: { envVar: "USE_PIPELINE", defaultValue: true },
|
|
183
|
+
handler: async (args) => {
|
|
184
|
+
const input = schema_1.ManagePipelineSchema.parse(args);
|
|
185
|
+
if ((0, config_1.isActionDenied)("manage_pipeline", input.action)) {
|
|
186
|
+
throw new Error(`Action '${input.action}' is not allowed for manage_pipeline tool`);
|
|
187
|
+
}
|
|
188
|
+
switch (input.action) {
|
|
189
|
+
case "create": {
|
|
190
|
+
const { project_id, ref, variables, inputs } = input;
|
|
191
|
+
const queryParams = new URLSearchParams();
|
|
192
|
+
queryParams.set("ref", ref);
|
|
193
|
+
const body = {};
|
|
194
|
+
if (variables && variables.length > 0) {
|
|
195
|
+
body.variables = variables;
|
|
196
|
+
}
|
|
197
|
+
if (inputs && Object.keys(inputs).length > 0) {
|
|
198
|
+
body.inputs = inputs;
|
|
199
|
+
}
|
|
200
|
+
const apiUrl = `${process.env.GITLAB_API_URL}/api/v4/projects/${(0, projectIdentifier_1.normalizeProjectId)(project_id)}/pipeline?${queryParams}`;
|
|
201
|
+
const response = await (0, fetch_1.enhancedFetch)(apiUrl, {
|
|
202
|
+
method: "POST",
|
|
203
|
+
headers: { "Content-Type": "application/json" },
|
|
204
|
+
body: JSON.stringify(body),
|
|
205
|
+
});
|
|
206
|
+
if (!response.ok) {
|
|
207
|
+
let errorMessage = `GitLab API error: ${response.status} ${response.statusText}`;
|
|
208
|
+
try {
|
|
209
|
+
const errorBody = (await response.json());
|
|
210
|
+
if (errorBody.message) {
|
|
211
|
+
if (typeof errorBody.message === "string") {
|
|
212
|
+
errorMessage += ` - ${errorBody.message}`;
|
|
213
|
+
}
|
|
214
|
+
else if (typeof errorBody.message === "object" && errorBody.message !== null) {
|
|
215
|
+
const errorDetails = [];
|
|
216
|
+
const messageObj = errorBody.message;
|
|
217
|
+
Object.keys(messageObj).forEach(key => {
|
|
218
|
+
const value = messageObj[key];
|
|
219
|
+
if (Array.isArray(value)) {
|
|
220
|
+
errorDetails.push(`${key}: ${value.join(", ")}`);
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
errorDetails.push(`${key}: ${String(value)}`);
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
if (errorDetails.length > 0) {
|
|
227
|
+
errorMessage += ` - ${errorDetails.join("; ")}`;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
if (typeof errorBody.error === "string") {
|
|
232
|
+
errorMessage += ` - ${errorBody.error}`;
|
|
233
|
+
}
|
|
234
|
+
if (Array.isArray(errorBody.errors)) {
|
|
235
|
+
errorMessage += ` - ${errorBody.errors.map(e => String(e)).join(", ")}`;
|
|
236
|
+
}
|
|
237
|
+
(0, logger_1.logError)("manage_pipeline create failed", {
|
|
238
|
+
status: response.status,
|
|
239
|
+
errorBody,
|
|
240
|
+
url: apiUrl,
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
catch {
|
|
244
|
+
(0, logger_1.logError)("manage_pipeline create failed (could not parse error)", {
|
|
245
|
+
status: response.status,
|
|
246
|
+
url: apiUrl,
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
throw new Error(errorMessage);
|
|
250
|
+
}
|
|
251
|
+
const pipeline = (await response.json());
|
|
252
|
+
return pipeline;
|
|
253
|
+
}
|
|
254
|
+
case "retry": {
|
|
255
|
+
const { project_id, pipeline_id } = input;
|
|
256
|
+
return gitlab_api_1.gitlab.post(`projects/${(0, projectIdentifier_1.normalizeProjectId)(project_id)}/pipelines/${pipeline_id}/retry`);
|
|
257
|
+
}
|
|
258
|
+
case "cancel": {
|
|
259
|
+
const { project_id, pipeline_id } = input;
|
|
260
|
+
return gitlab_api_1.gitlab.post(`projects/${(0, projectIdentifier_1.normalizeProjectId)(project_id)}/pipelines/${pipeline_id}/cancel`);
|
|
261
|
+
}
|
|
262
|
+
default:
|
|
263
|
+
throw new Error(`Unknown action: ${input.action}`);
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
[
|
|
269
|
+
"manage_pipeline_job",
|
|
270
|
+
{
|
|
271
|
+
name: "manage_pipeline_job",
|
|
272
|
+
description: "Control individual CI/CD jobs within a pipeline. Actions: play (trigger manual/delayed job with variables), retry (re-run single job), cancel (stop running job). Related: browse_pipelines actions 'job'/'logs' for job details.",
|
|
273
|
+
inputSchema: z.toJSONSchema(schema_1.ManagePipelineJobSchema),
|
|
274
|
+
gate: { envVar: "USE_PIPELINE", defaultValue: true },
|
|
275
|
+
handler: async (args) => {
|
|
276
|
+
const input = schema_1.ManagePipelineJobSchema.parse(args);
|
|
277
|
+
if ((0, config_1.isActionDenied)("manage_pipeline_job", input.action)) {
|
|
278
|
+
throw new Error(`Action '${input.action}' is not allowed for manage_pipeline_job tool`);
|
|
279
|
+
}
|
|
280
|
+
switch (input.action) {
|
|
281
|
+
case "play": {
|
|
282
|
+
const { project_id, job_id, job_variables_attributes } = input;
|
|
283
|
+
const body = {};
|
|
284
|
+
if (job_variables_attributes) {
|
|
285
|
+
body.job_variables_attributes = job_variables_attributes;
|
|
286
|
+
}
|
|
287
|
+
return gitlab_api_1.gitlab.post(`projects/${(0, projectIdentifier_1.normalizeProjectId)(project_id)}/jobs/${job_id}/play`, {
|
|
288
|
+
body,
|
|
289
|
+
contentType: "json",
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
case "retry": {
|
|
293
|
+
const { project_id, job_id } = input;
|
|
294
|
+
return gitlab_api_1.gitlab.post(`projects/${(0, projectIdentifier_1.normalizeProjectId)(project_id)}/jobs/${job_id}/retry`);
|
|
295
|
+
}
|
|
296
|
+
case "cancel": {
|
|
297
|
+
const { project_id, job_id, force } = input;
|
|
298
|
+
const query = force ? { force: "true" } : undefined;
|
|
299
|
+
return gitlab_api_1.gitlab.post(`projects/${(0, projectIdentifier_1.normalizeProjectId)(project_id)}/jobs/${job_id}/cancel`, {
|
|
300
|
+
query,
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
default:
|
|
304
|
+
throw new Error(`Unknown action: ${input.action}`);
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
]);
|
|
310
|
+
function getPipelinesReadOnlyToolNames() {
|
|
311
|
+
return ["browse_pipelines"];
|
|
312
|
+
}
|
|
313
|
+
function getPipelinesToolDefinitions() {
|
|
314
|
+
return Array.from(exports.pipelinesToolRegistry.values());
|
|
315
|
+
}
|
|
316
|
+
function getFilteredPipelinesTools(readOnlyMode = false) {
|
|
317
|
+
if (readOnlyMode) {
|
|
318
|
+
const readOnlyNames = getPipelinesReadOnlyToolNames();
|
|
319
|
+
return Array.from(exports.pipelinesToolRegistry.values()).filter(tool => readOnlyNames.includes(tool.name));
|
|
320
|
+
}
|
|
321
|
+
return getPipelinesToolDefinitions();
|
|
322
|
+
}
|
|
323
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../src/entities/pipelines/registry.ts"],"names":[],"mappings":";;;;;;;;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"}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const GitLabPipelineSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodCoercedString<unknown>;
|
|
4
|
+
project_id: z.ZodCoercedString<unknown>;
|
|
5
|
+
sha: z.ZodString;
|
|
6
|
+
ref: z.ZodString;
|
|
7
|
+
status: z.ZodString;
|
|
8
|
+
source: z.ZodOptional<z.ZodString>;
|
|
9
|
+
created_at: z.ZodString;
|
|
10
|
+
updated_at: z.ZodString;
|
|
11
|
+
web_url: z.ZodString;
|
|
12
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
coverage: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
16
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
id: z.ZodCoercedString<unknown>;
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
username: z.ZodString;
|
|
20
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
detailed_status: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
24
|
+
text: z.ZodOptional<z.ZodString>;
|
|
25
|
+
label: z.ZodOptional<z.ZodString>;
|
|
26
|
+
group: z.ZodOptional<z.ZodString>;
|
|
27
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
28
|
+
has_details: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
29
|
+
details_path: z.ZodOptional<z.ZodString>;
|
|
30
|
+
illustration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
image: z.ZodOptional<z.ZodString>;
|
|
32
|
+
size: z.ZodOptional<z.ZodString>;
|
|
33
|
+
title: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
35
|
+
favicon: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export declare const GitLabPipelineJobSchema: z.ZodObject<{
|
|
39
|
+
id: z.ZodCoercedString<unknown>;
|
|
40
|
+
status: z.ZodString;
|
|
41
|
+
stage: z.ZodString;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
ref: z.ZodString;
|
|
44
|
+
tag: z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>;
|
|
45
|
+
coverage: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
46
|
+
allow_failure: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
47
|
+
created_at: z.ZodString;
|
|
48
|
+
started_at: z.ZodOptional<z.ZodString>;
|
|
49
|
+
finished_at: z.ZodOptional<z.ZodString>;
|
|
50
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
queued_duration: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
id: z.ZodCoercedString<unknown>;
|
|
54
|
+
name: z.ZodString;
|
|
55
|
+
username: z.ZodString;
|
|
56
|
+
state: z.ZodString;
|
|
57
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
web_url: z.ZodString;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
commit: z.ZodOptional<z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
short_id: z.ZodString;
|
|
63
|
+
title: z.ZodString;
|
|
64
|
+
author_name: z.ZodString;
|
|
65
|
+
author_email: z.ZodString;
|
|
66
|
+
created_at: z.ZodString;
|
|
67
|
+
message: z.ZodString;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
pipeline: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
id: z.ZodCoercedString<unknown>;
|
|
71
|
+
project_id: z.ZodCoercedString<unknown>;
|
|
72
|
+
ref: z.ZodString;
|
|
73
|
+
sha: z.ZodString;
|
|
74
|
+
status: z.ZodString;
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
web_url: z.ZodString;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
export declare const GitLabPipelineTriggerJobSchema: z.ZodObject<{
|
|
79
|
+
id: z.ZodCoercedString<unknown>;
|
|
80
|
+
status: z.ZodString;
|
|
81
|
+
stage: z.ZodString;
|
|
82
|
+
name: z.ZodString;
|
|
83
|
+
ref: z.ZodString;
|
|
84
|
+
tag: z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>;
|
|
85
|
+
coverage: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
86
|
+
allow_failure: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
87
|
+
created_at: z.ZodString;
|
|
88
|
+
started_at: z.ZodOptional<z.ZodString>;
|
|
89
|
+
finished_at: z.ZodOptional<z.ZodString>;
|
|
90
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
queued_duration: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
id: z.ZodCoercedString<unknown>;
|
|
94
|
+
name: z.ZodString;
|
|
95
|
+
username: z.ZodString;
|
|
96
|
+
state: z.ZodString;
|
|
97
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
web_url: z.ZodString;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
commit: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
id: z.ZodString;
|
|
102
|
+
short_id: z.ZodString;
|
|
103
|
+
title: z.ZodString;
|
|
104
|
+
author_name: z.ZodString;
|
|
105
|
+
author_email: z.ZodString;
|
|
106
|
+
created_at: z.ZodString;
|
|
107
|
+
message: z.ZodString;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
pipeline: z.ZodOptional<z.ZodObject<{
|
|
110
|
+
id: z.ZodCoercedString<unknown>;
|
|
111
|
+
project_id: z.ZodCoercedString<unknown>;
|
|
112
|
+
ref: z.ZodString;
|
|
113
|
+
sha: z.ZodString;
|
|
114
|
+
status: z.ZodString;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
web_url: z.ZodString;
|
|
117
|
+
downstream_pipeline: z.ZodOptional<z.ZodObject<{
|
|
118
|
+
id: z.ZodCoercedString<unknown>;
|
|
119
|
+
sha: z.ZodString;
|
|
120
|
+
ref: z.ZodString;
|
|
121
|
+
status: z.ZodString;
|
|
122
|
+
created_at: z.ZodString;
|
|
123
|
+
updated_at: z.ZodString;
|
|
124
|
+
web_url: z.ZodString;
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
export declare const BrowsePipelinesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
128
|
+
per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
129
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
130
|
+
action: z.ZodLiteral<"list">;
|
|
131
|
+
project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
132
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
133
|
+
pending: "pending";
|
|
134
|
+
running: "running";
|
|
135
|
+
finished: "finished";
|
|
136
|
+
branches: "branches";
|
|
137
|
+
tags: "tags";
|
|
138
|
+
}>>;
|
|
139
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
140
|
+
success: "success";
|
|
141
|
+
pending: "pending";
|
|
142
|
+
failed: "failed";
|
|
143
|
+
manual: "manual";
|
|
144
|
+
running: "running";
|
|
145
|
+
created: "created";
|
|
146
|
+
waiting_for_resource: "waiting_for_resource";
|
|
147
|
+
preparing: "preparing";
|
|
148
|
+
canceled: "canceled";
|
|
149
|
+
skipped: "skipped";
|
|
150
|
+
scheduled: "scheduled";
|
|
151
|
+
}>>;
|
|
152
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
153
|
+
push: "push";
|
|
154
|
+
api: "api";
|
|
155
|
+
external: "external";
|
|
156
|
+
web: "web";
|
|
157
|
+
trigger: "trigger";
|
|
158
|
+
schedule: "schedule";
|
|
159
|
+
chat: "chat";
|
|
160
|
+
webide: "webide";
|
|
161
|
+
merge_request_event: "merge_request_event";
|
|
162
|
+
external_pull_request_event: "external_pull_request_event";
|
|
163
|
+
parent_pipeline: "parent_pipeline";
|
|
164
|
+
ondemand_dast_scan: "ondemand_dast_scan";
|
|
165
|
+
ondemand_dast_validation: "ondemand_dast_validation";
|
|
166
|
+
}>>;
|
|
167
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
168
|
+
sha: z.ZodOptional<z.ZodString>;
|
|
169
|
+
yaml_errors: z.ZodOptional<z.ZodBoolean>;
|
|
170
|
+
name: z.ZodOptional<z.ZodString>;
|
|
171
|
+
username: z.ZodOptional<z.ZodString>;
|
|
172
|
+
updated_after: z.ZodOptional<z.ZodString>;
|
|
173
|
+
updated_before: z.ZodOptional<z.ZodString>;
|
|
174
|
+
order_by: z.ZodOptional<z.ZodEnum<{
|
|
175
|
+
id: "id";
|
|
176
|
+
status: "status";
|
|
177
|
+
updated_at: "updated_at";
|
|
178
|
+
user_id: "user_id";
|
|
179
|
+
ref: "ref";
|
|
180
|
+
}>>;
|
|
181
|
+
sort: z.ZodOptional<z.ZodEnum<{
|
|
182
|
+
asc: "asc";
|
|
183
|
+
desc: "desc";
|
|
184
|
+
}>>;
|
|
185
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
186
|
+
action: z.ZodLiteral<"get">;
|
|
187
|
+
project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
188
|
+
pipeline_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
189
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
190
|
+
per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
191
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
192
|
+
action: z.ZodLiteral<"jobs">;
|
|
193
|
+
project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
194
|
+
pipeline_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
195
|
+
job_scope: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
196
|
+
success: "success";
|
|
197
|
+
pending: "pending";
|
|
198
|
+
failed: "failed";
|
|
199
|
+
manual: "manual";
|
|
200
|
+
running: "running";
|
|
201
|
+
created: "created";
|
|
202
|
+
canceled: "canceled";
|
|
203
|
+
skipped: "skipped";
|
|
204
|
+
}>>>;
|
|
205
|
+
include_retried: z.ZodOptional<z.ZodBoolean>;
|
|
206
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
207
|
+
per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
208
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
209
|
+
action: z.ZodLiteral<"triggers">;
|
|
210
|
+
project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
211
|
+
pipeline_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
212
|
+
trigger_scope: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
213
|
+
success: "success";
|
|
214
|
+
pending: "pending";
|
|
215
|
+
failed: "failed";
|
|
216
|
+
manual: "manual";
|
|
217
|
+
running: "running";
|
|
218
|
+
created: "created";
|
|
219
|
+
waiting_for_resource: "waiting_for_resource";
|
|
220
|
+
preparing: "preparing";
|
|
221
|
+
canceled: "canceled";
|
|
222
|
+
skipped: "skipped";
|
|
223
|
+
}>>>;
|
|
224
|
+
include_retried: z.ZodOptional<z.ZodBoolean>;
|
|
225
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
226
|
+
action: z.ZodLiteral<"job">;
|
|
227
|
+
project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
228
|
+
job_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
229
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
230
|
+
action: z.ZodLiteral<"logs">;
|
|
231
|
+
project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
232
|
+
job_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
|
|
233
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
234
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
}, z.core.$strip>], "action">;
|
|
236
|
+
export type BrowsePipelinesInput = z.infer<typeof BrowsePipelinesSchema>;
|
|
237
|
+
export type GitLabPipeline = z.infer<typeof GitLabPipelineSchema>;
|
|
238
|
+
export type GitLabPipelineJob = z.infer<typeof GitLabPipelineJobSchema>;
|
|
239
|
+
export type GitLabPipelineTriggerJob = z.infer<typeof GitLabPipelineTriggerJobSchema>;
|