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,41 @@
|
|
|
1
|
+
# Code Reviewer preset - code review focused workflow
|
|
2
|
+
#
|
|
3
|
+
# Optimized for reviewing merge requests:
|
|
4
|
+
# - Full access to MR browsing, discussions, and approvals
|
|
5
|
+
# - Read access to code, pipelines, and issues for context
|
|
6
|
+
# - No access to admin features or infrastructure
|
|
7
|
+
#
|
|
8
|
+
# NOTE: This is a PRESET - host/auth come from environment variables.
|
|
9
|
+
|
|
10
|
+
description: "Code Reviewer - MR discussions, approvals, code context"
|
|
11
|
+
|
|
12
|
+
read_only: false
|
|
13
|
+
|
|
14
|
+
features:
|
|
15
|
+
wiki: false # Not needed for code review
|
|
16
|
+
milestones: false
|
|
17
|
+
pipelines: true # Check CI status for MRs
|
|
18
|
+
labels: true # Label MRs during review
|
|
19
|
+
mrs: true # Core functionality
|
|
20
|
+
files: true # Read source code
|
|
21
|
+
variables: false
|
|
22
|
+
workitems: true # Reference issues in reviews
|
|
23
|
+
webhooks: false
|
|
24
|
+
snippets: false
|
|
25
|
+
integrations: false
|
|
26
|
+
# New entities
|
|
27
|
+
releases: false
|
|
28
|
+
refs: false # No branch management
|
|
29
|
+
members: false
|
|
30
|
+
search: true # Search code during review
|
|
31
|
+
|
|
32
|
+
# Block infrastructure-changing actions
|
|
33
|
+
denied_actions:
|
|
34
|
+
- "manage_project:create"
|
|
35
|
+
- "manage_project:fork"
|
|
36
|
+
- "manage_pipeline:create"
|
|
37
|
+
- "manage_pipeline:cancel"
|
|
38
|
+
- "manage_webhook:create"
|
|
39
|
+
- "manage_webhook:update"
|
|
40
|
+
- "manage_webhook:delete"
|
|
41
|
+
- "manage_integration:update"
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Developer preset - standard development workflow
|
|
2
|
+
#
|
|
3
|
+
# Full access to development-related tools including:
|
|
4
|
+
# - Code browsing and file management
|
|
5
|
+
# - Work items and merge requests
|
|
6
|
+
# - Labels and milestones
|
|
7
|
+
#
|
|
8
|
+
# Restricted access to admin-level features.
|
|
9
|
+
#
|
|
10
|
+
# NOTE: This is a PRESET - host/auth come from environment variables.
|
|
11
|
+
|
|
12
|
+
description: "Standard developer access - no admin features"
|
|
13
|
+
|
|
14
|
+
read_only: false
|
|
15
|
+
|
|
16
|
+
features:
|
|
17
|
+
wiki: true
|
|
18
|
+
milestones: true
|
|
19
|
+
pipelines: true
|
|
20
|
+
labels: true
|
|
21
|
+
mrs: true
|
|
22
|
+
files: true
|
|
23
|
+
variables: false # Requires elevated access
|
|
24
|
+
workitems: true
|
|
25
|
+
webhooks: false # Admin only
|
|
26
|
+
snippets: true
|
|
27
|
+
integrations: false # Admin only
|
|
28
|
+
# New entities
|
|
29
|
+
releases: true # Can create releases
|
|
30
|
+
refs: false # No branch protection management
|
|
31
|
+
members: false # No team management
|
|
32
|
+
search: true # Code search enabled
|
|
33
|
+
|
|
34
|
+
# Block dangerous actions
|
|
35
|
+
denied_actions:
|
|
36
|
+
- "manage_project:delete"
|
|
37
|
+
- "manage_webhook:create"
|
|
38
|
+
- "manage_webhook:update"
|
|
39
|
+
- "manage_webhook:delete"
|
|
40
|
+
- "manage_integration:update"
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# DevOps Engineer preset - CI/CD and infrastructure
|
|
2
|
+
#
|
|
3
|
+
# Focused on infrastructure and automation:
|
|
4
|
+
# - Full pipeline management
|
|
5
|
+
# - Variables and secrets
|
|
6
|
+
# - Webhooks and integrations
|
|
7
|
+
# - File operations for configs
|
|
8
|
+
#
|
|
9
|
+
# No access to development workflow tools (MRs, issues, wiki).
|
|
10
|
+
#
|
|
11
|
+
# NOTE: This is a PRESET - host/auth come from environment variables.
|
|
12
|
+
|
|
13
|
+
description: "DevOps Engineer - CI/CD pipelines, variables, infrastructure"
|
|
14
|
+
|
|
15
|
+
read_only: false
|
|
16
|
+
|
|
17
|
+
features:
|
|
18
|
+
wiki: false
|
|
19
|
+
milestones: false
|
|
20
|
+
pipelines: true
|
|
21
|
+
labels: false
|
|
22
|
+
mrs: false
|
|
23
|
+
files: true
|
|
24
|
+
variables: true
|
|
25
|
+
workitems: false
|
|
26
|
+
webhooks: true
|
|
27
|
+
snippets: false
|
|
28
|
+
integrations: true
|
|
29
|
+
# New entities - infrastructure focused
|
|
30
|
+
releases: true # Release management
|
|
31
|
+
refs: true # Branch/tag management
|
|
32
|
+
members: false # No team management
|
|
33
|
+
search: true # Code search for debugging
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Full Access preset - all features enabled for tech leads
|
|
2
|
+
#
|
|
3
|
+
# Similar to admin but intended for tech leads who need
|
|
4
|
+
# full access to development and team management features.
|
|
5
|
+
# Enables all tools without restrictions.
|
|
6
|
+
#
|
|
7
|
+
# NOTE: This is a PRESET - host/auth come from environment variables.
|
|
8
|
+
|
|
9
|
+
description: "Full access - all features enabled (tech lead)"
|
|
10
|
+
|
|
11
|
+
read_only: false
|
|
12
|
+
|
|
13
|
+
features:
|
|
14
|
+
wiki: true
|
|
15
|
+
milestones: true
|
|
16
|
+
pipelines: true
|
|
17
|
+
labels: true
|
|
18
|
+
mrs: true
|
|
19
|
+
files: true
|
|
20
|
+
variables: true
|
|
21
|
+
workitems: true
|
|
22
|
+
webhooks: true
|
|
23
|
+
snippets: true
|
|
24
|
+
integrations: true
|
|
25
|
+
# New entities
|
|
26
|
+
releases: true
|
|
27
|
+
refs: true
|
|
28
|
+
members: true
|
|
29
|
+
search: true
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# gitlab.com preset - rate-limit friendly
|
|
2
|
+
#
|
|
3
|
+
# Optimized for gitlab.com public instance:
|
|
4
|
+
# - Standard development features enabled
|
|
5
|
+
# - Rate-limit friendly restrictions
|
|
6
|
+
# - Safe defaults for public projects
|
|
7
|
+
#
|
|
8
|
+
# Features that typically require elevated access are disabled.
|
|
9
|
+
#
|
|
10
|
+
# NOTE: This is a PRESET - host/auth come from environment variables.
|
|
11
|
+
|
|
12
|
+
description: "Optimized for gitlab.com - respects rate limits, safe defaults"
|
|
13
|
+
|
|
14
|
+
read_only: false
|
|
15
|
+
|
|
16
|
+
features:
|
|
17
|
+
wiki: true
|
|
18
|
+
milestones: true
|
|
19
|
+
pipelines: true
|
|
20
|
+
labels: true
|
|
21
|
+
mrs: true
|
|
22
|
+
files: true
|
|
23
|
+
variables: false # Often restricted on public projects
|
|
24
|
+
workitems: true
|
|
25
|
+
webhooks: false # Requires maintainer+ access
|
|
26
|
+
snippets: true
|
|
27
|
+
integrations: false # Requires admin access
|
|
28
|
+
# New entities - standard access for gitlab.com
|
|
29
|
+
releases: true # Release management
|
|
30
|
+
refs: true # Branch/tag browsing
|
|
31
|
+
members: true # Team info browsing
|
|
32
|
+
search: true # Code search
|
|
33
|
+
|
|
34
|
+
# Rate-limit friendly restrictions
|
|
35
|
+
denied_actions:
|
|
36
|
+
# Pagination-heavy operations
|
|
37
|
+
- "browse_commits:list"
|
|
38
|
+
- "browse_pipelines:list"
|
|
39
|
+
# Operations that can trigger many API calls
|
|
40
|
+
- "manage_pipeline:retry"
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Junior Developer preset - day-to-day development
|
|
2
|
+
#
|
|
3
|
+
# Focused on core development tasks:
|
|
4
|
+
# - Code browsing and file management
|
|
5
|
+
# - Work items and merge requests
|
|
6
|
+
# - Labels and snippets
|
|
7
|
+
#
|
|
8
|
+
# No access to pipelines, variables, or admin features.
|
|
9
|
+
#
|
|
10
|
+
# NOTE: This is a PRESET - host/auth come from environment variables.
|
|
11
|
+
|
|
12
|
+
description: "Junior Developer - code, MRs, basic issue tracking"
|
|
13
|
+
|
|
14
|
+
read_only: false
|
|
15
|
+
|
|
16
|
+
features:
|
|
17
|
+
wiki: false
|
|
18
|
+
milestones: false
|
|
19
|
+
pipelines: false
|
|
20
|
+
labels: true
|
|
21
|
+
mrs: true
|
|
22
|
+
files: true
|
|
23
|
+
variables: false
|
|
24
|
+
workitems: true
|
|
25
|
+
webhooks: false
|
|
26
|
+
snippets: true
|
|
27
|
+
integrations: false
|
|
28
|
+
# New entities - minimal access
|
|
29
|
+
releases: false # No release management
|
|
30
|
+
refs: false # No branch management
|
|
31
|
+
members: false # No team management
|
|
32
|
+
search: true # Code search enabled
|
|
33
|
+
|
|
34
|
+
# Block pipeline and admin operations
|
|
35
|
+
denied_tools_regex: "^manage_(pipeline|variable|webhook)"
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Project Manager preset - planning and tracking
|
|
2
|
+
#
|
|
3
|
+
# Focused on project management:
|
|
4
|
+
# - Work items and milestones
|
|
5
|
+
# - Merge request status tracking
|
|
6
|
+
# - Wiki and documentation
|
|
7
|
+
# - Labels for organization
|
|
8
|
+
#
|
|
9
|
+
# No access to code operations, pipelines, or technical features.
|
|
10
|
+
#
|
|
11
|
+
# NOTE: This is a PRESET - host/auth come from environment variables.
|
|
12
|
+
|
|
13
|
+
description: "Project Manager - planning, tracking, documentation (no code ops)"
|
|
14
|
+
|
|
15
|
+
read_only: false
|
|
16
|
+
|
|
17
|
+
features:
|
|
18
|
+
wiki: true
|
|
19
|
+
milestones: true
|
|
20
|
+
pipelines: false
|
|
21
|
+
labels: true
|
|
22
|
+
mrs: true
|
|
23
|
+
files: false
|
|
24
|
+
variables: false
|
|
25
|
+
workitems: true
|
|
26
|
+
webhooks: false
|
|
27
|
+
snippets: false
|
|
28
|
+
integrations: false
|
|
29
|
+
# New entities - planning focused
|
|
30
|
+
releases: false # No release management
|
|
31
|
+
refs: false # No branch management
|
|
32
|
+
members: false # No team management
|
|
33
|
+
search: true # Can search issues/MRs
|
|
34
|
+
|
|
35
|
+
# Block code and pipeline operations
|
|
36
|
+
denied_tools_regex: "^manage_(files|pipeline|variable)"
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Read-only preset - safe browsing without write access
|
|
2
|
+
#
|
|
3
|
+
# Use this preset when you need to explore a GitLab instance
|
|
4
|
+
# without any risk of modifying data.
|
|
5
|
+
#
|
|
6
|
+
# All write operations (create, update, delete) are blocked.
|
|
7
|
+
#
|
|
8
|
+
# NOTE: This is a PRESET, not a full profile.
|
|
9
|
+
# It does NOT contain host or auth - those come from your
|
|
10
|
+
# environment variables (GITLAB_API_URL, GITLAB_TOKEN).
|
|
11
|
+
|
|
12
|
+
description: "Read-only access - blocks all write operations"
|
|
13
|
+
|
|
14
|
+
read_only: true
|
|
15
|
+
denied_tools_regex: "^manage_|^create_"
|
|
16
|
+
|
|
17
|
+
features:
|
|
18
|
+
wiki: true
|
|
19
|
+
milestones: true
|
|
20
|
+
pipelines: true
|
|
21
|
+
labels: true
|
|
22
|
+
mrs: true
|
|
23
|
+
files: true
|
|
24
|
+
variables: false # Variables often contain secrets
|
|
25
|
+
workitems: true
|
|
26
|
+
webhooks: false # Webhooks are admin-level
|
|
27
|
+
snippets: true
|
|
28
|
+
integrations: false # Integrations are admin-level
|
|
29
|
+
# New entities - all browsing enabled (read_only=true blocks writes)
|
|
30
|
+
releases: true
|
|
31
|
+
refs: true
|
|
32
|
+
members: true
|
|
33
|
+
search: true
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Senior Developer preset - code review and pipeline monitoring
|
|
2
|
+
#
|
|
3
|
+
# Extended access for senior developers:
|
|
4
|
+
# - Full code browsing and file management
|
|
5
|
+
# - Work items and merge requests
|
|
6
|
+
# - Pipeline monitoring (read-only)
|
|
7
|
+
# - Wiki and documentation
|
|
8
|
+
#
|
|
9
|
+
# No control over pipelines, variables, or webhooks.
|
|
10
|
+
#
|
|
11
|
+
# NOTE: This is a PRESET - host/auth come from environment variables.
|
|
12
|
+
|
|
13
|
+
description: "Senior Developer - code review, discussions, pipeline monitoring"
|
|
14
|
+
|
|
15
|
+
read_only: false
|
|
16
|
+
|
|
17
|
+
features:
|
|
18
|
+
wiki: true
|
|
19
|
+
milestones: false
|
|
20
|
+
pipelines: true
|
|
21
|
+
labels: true
|
|
22
|
+
mrs: true
|
|
23
|
+
files: true
|
|
24
|
+
variables: false
|
|
25
|
+
workitems: true
|
|
26
|
+
webhooks: false
|
|
27
|
+
snippets: true
|
|
28
|
+
integrations: false
|
|
29
|
+
# New entities - extended dev access
|
|
30
|
+
releases: true # Can create releases
|
|
31
|
+
refs: true # Branch management
|
|
32
|
+
members: false # No team management
|
|
33
|
+
search: true # Code search
|
|
34
|
+
|
|
35
|
+
# Block pipeline control and webhook management
|
|
36
|
+
denied_actions:
|
|
37
|
+
- "manage_pipeline:cancel"
|
|
38
|
+
- "manage_pipeline:retry"
|
|
39
|
+
- "manage_webhook:create"
|
|
40
|
+
- "manage_webhook:update"
|
|
41
|
+
- "manage_webhook:delete"
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Team Lead preset - planning and oversight
|
|
2
|
+
#
|
|
3
|
+
# Focused on team management:
|
|
4
|
+
# - Planning with milestones and work items
|
|
5
|
+
# - Code review via merge requests
|
|
6
|
+
# - Pipeline monitoring
|
|
7
|
+
# - Wiki and documentation
|
|
8
|
+
#
|
|
9
|
+
# No access to sensitive variables or webhooks.
|
|
10
|
+
#
|
|
11
|
+
# NOTE: This is a PRESET - host/auth come from environment variables.
|
|
12
|
+
|
|
13
|
+
description: "Team Lead - planning, milestones, team oversight, code review"
|
|
14
|
+
|
|
15
|
+
read_only: false
|
|
16
|
+
|
|
17
|
+
features:
|
|
18
|
+
wiki: true
|
|
19
|
+
milestones: true
|
|
20
|
+
pipelines: true
|
|
21
|
+
labels: true
|
|
22
|
+
mrs: true
|
|
23
|
+
files: true
|
|
24
|
+
variables: false
|
|
25
|
+
workitems: true
|
|
26
|
+
webhooks: false
|
|
27
|
+
snippets: true
|
|
28
|
+
integrations: false
|
|
29
|
+
# New entities - full team management
|
|
30
|
+
releases: true # Release planning
|
|
31
|
+
refs: true # Branch management
|
|
32
|
+
members: true # Team access management
|
|
33
|
+
search: true # Code search
|
|
34
|
+
|
|
35
|
+
# Block sensitive operations
|
|
36
|
+
denied_actions:
|
|
37
|
+
- "manage_variable:create"
|
|
38
|
+
- "manage_variable:update"
|
|
39
|
+
- "manage_variable:delete"
|
|
40
|
+
- "manage_webhook:create"
|
|
41
|
+
- "manage_webhook:update"
|
|
42
|
+
- "manage_webhook:delete"
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Profile, Preset, ProfilesConfig, ProfileInfo, ProfileValidationResult, AuthConfig, PatAuth, OAuthAuth, CookieAuth, FeatureFlags, ProfileSchema, PresetSchema, ProfilesConfigSchema, ProjectPreset, ProjectProfile, ProjectConfig, ProjectPresetSchema, ProjectProfileSchema, } from "./types";
|
|
2
|
+
export { ProfileLoader, loadProfile, getProfileNameFromEnv } from "./loader";
|
|
3
|
+
export { applyProfile, applyPreset, loadAndApplyProfile, loadAndApplyPreset, tryApplyProfileFromEnv, ApplyProfileResult, ApplyPresetResult, } from "./applicator";
|
|
4
|
+
export { loadProjectConfig, findProjectConfig, validateProjectPreset, validateProjectProfile, getProjectConfigSummary, PROJECT_CONFIG_DIR, PROJECT_PRESET_FILE, PROJECT_PROFILE_FILE, } from "./project-loader";
|
|
5
|
+
export { ScopeEnforcer, ScopeViolationError, ScopeConfig, extractProjectsFromArgs, enforceArgsScope, } from "./scope-enforcer";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.enforceArgsScope = exports.extractProjectsFromArgs = exports.ScopeViolationError = exports.ScopeEnforcer = exports.PROJECT_PROFILE_FILE = exports.PROJECT_PRESET_FILE = exports.PROJECT_CONFIG_DIR = exports.getProjectConfigSummary = exports.validateProjectProfile = exports.validateProjectPreset = exports.findProjectConfig = exports.loadProjectConfig = exports.tryApplyProfileFromEnv = exports.loadAndApplyPreset = exports.loadAndApplyProfile = exports.applyPreset = exports.applyProfile = exports.getProfileNameFromEnv = exports.loadProfile = exports.ProfileLoader = exports.ProjectProfileSchema = exports.ProjectPresetSchema = exports.ProfilesConfigSchema = exports.PresetSchema = exports.ProfileSchema = void 0;
|
|
4
|
+
var types_1 = require("./types");
|
|
5
|
+
Object.defineProperty(exports, "ProfileSchema", { enumerable: true, get: function () { return types_1.ProfileSchema; } });
|
|
6
|
+
Object.defineProperty(exports, "PresetSchema", { enumerable: true, get: function () { return types_1.PresetSchema; } });
|
|
7
|
+
Object.defineProperty(exports, "ProfilesConfigSchema", { enumerable: true, get: function () { return types_1.ProfilesConfigSchema; } });
|
|
8
|
+
Object.defineProperty(exports, "ProjectPresetSchema", { enumerable: true, get: function () { return types_1.ProjectPresetSchema; } });
|
|
9
|
+
Object.defineProperty(exports, "ProjectProfileSchema", { enumerable: true, get: function () { return types_1.ProjectProfileSchema; } });
|
|
10
|
+
var loader_1 = require("./loader");
|
|
11
|
+
Object.defineProperty(exports, "ProfileLoader", { enumerable: true, get: function () { return loader_1.ProfileLoader; } });
|
|
12
|
+
Object.defineProperty(exports, "loadProfile", { enumerable: true, get: function () { return loader_1.loadProfile; } });
|
|
13
|
+
Object.defineProperty(exports, "getProfileNameFromEnv", { enumerable: true, get: function () { return loader_1.getProfileNameFromEnv; } });
|
|
14
|
+
var applicator_1 = require("./applicator");
|
|
15
|
+
Object.defineProperty(exports, "applyProfile", { enumerable: true, get: function () { return applicator_1.applyProfile; } });
|
|
16
|
+
Object.defineProperty(exports, "applyPreset", { enumerable: true, get: function () { return applicator_1.applyPreset; } });
|
|
17
|
+
Object.defineProperty(exports, "loadAndApplyProfile", { enumerable: true, get: function () { return applicator_1.loadAndApplyProfile; } });
|
|
18
|
+
Object.defineProperty(exports, "loadAndApplyPreset", { enumerable: true, get: function () { return applicator_1.loadAndApplyPreset; } });
|
|
19
|
+
Object.defineProperty(exports, "tryApplyProfileFromEnv", { enumerable: true, get: function () { return applicator_1.tryApplyProfileFromEnv; } });
|
|
20
|
+
var project_loader_1 = require("./project-loader");
|
|
21
|
+
Object.defineProperty(exports, "loadProjectConfig", { enumerable: true, get: function () { return project_loader_1.loadProjectConfig; } });
|
|
22
|
+
Object.defineProperty(exports, "findProjectConfig", { enumerable: true, get: function () { return project_loader_1.findProjectConfig; } });
|
|
23
|
+
Object.defineProperty(exports, "validateProjectPreset", { enumerable: true, get: function () { return project_loader_1.validateProjectPreset; } });
|
|
24
|
+
Object.defineProperty(exports, "validateProjectProfile", { enumerable: true, get: function () { return project_loader_1.validateProjectProfile; } });
|
|
25
|
+
Object.defineProperty(exports, "getProjectConfigSummary", { enumerable: true, get: function () { return project_loader_1.getProjectConfigSummary; } });
|
|
26
|
+
Object.defineProperty(exports, "PROJECT_CONFIG_DIR", { enumerable: true, get: function () { return project_loader_1.PROJECT_CONFIG_DIR; } });
|
|
27
|
+
Object.defineProperty(exports, "PROJECT_PRESET_FILE", { enumerable: true, get: function () { return project_loader_1.PROJECT_PRESET_FILE; } });
|
|
28
|
+
Object.defineProperty(exports, "PROJECT_PROFILE_FILE", { enumerable: true, get: function () { return project_loader_1.PROJECT_PROFILE_FILE; } });
|
|
29
|
+
var scope_enforcer_1 = require("./scope-enforcer");
|
|
30
|
+
Object.defineProperty(exports, "ScopeEnforcer", { enumerable: true, get: function () { return scope_enforcer_1.ScopeEnforcer; } });
|
|
31
|
+
Object.defineProperty(exports, "ScopeViolationError", { enumerable: true, get: function () { return scope_enforcer_1.ScopeViolationError; } });
|
|
32
|
+
Object.defineProperty(exports, "extractProjectsFromArgs", { enumerable: true, get: function () { return scope_enforcer_1.extractProjectsFromArgs; } });
|
|
33
|
+
Object.defineProperty(exports, "enforceArgsScope", { enumerable: true, get: function () { return scope_enforcer_1.enforceArgsScope; } });
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/profiles/index.ts"],"names":[],"mappings":";;;AAiBA,iCAoBiB;AATf,sGAAA,aAAa,OAAA;AACb,qGAAA,YAAY,OAAA;AACZ,6GAAA,oBAAoB,OAAA;AAKpB,4GAAA,mBAAmB,OAAA;AACnB,6GAAA,oBAAoB,OAAA;AAItB,mCAA6E;AAApE,uGAAA,aAAa,OAAA;AAAE,qGAAA,WAAW,OAAA;AAAE,+GAAA,qBAAqB,OAAA;AAG1D,2CAQsB;AAPpB,0GAAA,YAAY,OAAA;AACZ,yGAAA,WAAW,OAAA;AACX,iHAAA,mBAAmB,OAAA;AACnB,gHAAA,kBAAkB,OAAA;AAClB,oHAAA,sBAAsB,OAAA;AAMxB,mDAS0B;AARxB,mHAAA,iBAAiB,OAAA;AACjB,mHAAA,iBAAiB,OAAA;AACjB,uHAAA,qBAAqB,OAAA;AACrB,wHAAA,sBAAsB,OAAA;AACtB,yHAAA,uBAAuB,OAAA;AACvB,oHAAA,kBAAkB,OAAA;AAClB,qHAAA,mBAAmB,OAAA;AACnB,sHAAA,oBAAoB,OAAA;AAItB,mDAM0B;AALxB,+GAAA,aAAa,OAAA;AACb,qHAAA,mBAAmB,OAAA;AAEnB,yHAAA,uBAAuB,OAAA;AACvB,kHAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Profile, Preset, ProfileInfo, ProfileValidationResult } from "./types";
|
|
2
|
+
export declare class ProfileLoader {
|
|
3
|
+
private userConfigPath;
|
|
4
|
+
private builtinDir;
|
|
5
|
+
private profileCache;
|
|
6
|
+
private presetCache;
|
|
7
|
+
private configCache;
|
|
8
|
+
constructor(userConfigPath?: string, builtinDir?: string);
|
|
9
|
+
loadProfile(name: string): Promise<Profile>;
|
|
10
|
+
loadPreset(name: string): Promise<Preset>;
|
|
11
|
+
loadAny(name: string): Promise<{
|
|
12
|
+
type: "profile";
|
|
13
|
+
data: Profile;
|
|
14
|
+
} | {
|
|
15
|
+
type: "preset";
|
|
16
|
+
data: Preset;
|
|
17
|
+
}>;
|
|
18
|
+
getDefaultProfileName(): Promise<string | undefined>;
|
|
19
|
+
private loadUserConfig;
|
|
20
|
+
private loadUserProfile;
|
|
21
|
+
private loadBuiltinPreset;
|
|
22
|
+
listProfiles(): Promise<ProfileInfo[]>;
|
|
23
|
+
private validateDeniedActions;
|
|
24
|
+
validateProfile(profile: Profile): Promise<ProfileValidationResult>;
|
|
25
|
+
validatePreset(preset: Preset): Promise<ProfileValidationResult>;
|
|
26
|
+
static ensureConfigDir(): void;
|
|
27
|
+
static getUserConfigPath(): string;
|
|
28
|
+
clearCache(): void;
|
|
29
|
+
}
|
|
30
|
+
export declare function loadProfile(name: string): Promise<Profile>;
|
|
31
|
+
export declare function loadPreset(name: string): Promise<Preset>;
|
|
32
|
+
export declare function getProfileNameFromEnv(): string | undefined;
|