@kubbisec/ai-linux-x64 0.1.20 → 0.1.22
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/bin/kubbisec +0 -0
- package/bundled/components/kubbisec-model-selector.js +1 -1
- package/bundled/components/kubbisec-model-selector.js.map +1 -1
- package/bundled/config/config.d.ts.map +1 -1
- package/bundled/config/config.js +2 -4
- package/bundled/config/config.js.map +1 -1
- package/bundled/config/ensure-kbs-project-settings.d.ts +20 -0
- package/bundled/config/ensure-kbs-project-settings.d.ts.map +1 -0
- package/bundled/config/ensure-kbs-project-settings.js +46 -0
- package/bundled/config/ensure-kbs-project-settings.js.map +1 -0
- package/bundled/config/ensure-kubbisec-project-settings.d.ts +2 -0
- package/bundled/config/ensure-kubbisec-project-settings.d.ts.map +1 -1
- package/bundled/config/ensure-kubbisec-project-settings.js +25 -1
- package/bundled/config/ensure-kubbisec-project-settings.js.map +1 -1
- package/bundled/config/kubbisec-extension-manifest.d.ts +1 -1
- package/bundled/config/kubbisec-extension-manifest.d.ts.map +1 -1
- package/bundled/config/kubbisec-extension-manifest.js +0 -1
- package/bundled/config/kubbisec-extension-manifest.js.map +1 -1
- package/bundled/config/materialize-kubbisec-pi-resources.d.ts.map +1 -1
- package/bundled/config/materialize-kubbisec-pi-resources.js +0 -1
- package/bundled/config/materialize-kubbisec-pi-resources.js.map +1 -1
- package/bundled/copy/cli-reference-index.d.ts +1 -5
- package/bundled/copy/cli-reference-index.d.ts.map +1 -1
- package/bundled/copy/cli-reference-index.js +1 -61
- package/bundled/copy/cli-reference-index.js.map +1 -1
- package/bundled/extensions/cli-local-shared.d.ts +10 -0
- package/bundled/extensions/cli-local-shared.d.ts.map +1 -1
- package/bundled/extensions/cli-local-shared.js +11 -0
- package/bundled/extensions/cli-local-shared.js.map +1 -1
- package/bundled/extensions/kubbisec-aspm-local.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-aspm-local.extension.js +14 -25
- package/bundled/extensions/kubbisec-aspm-local.extension.js.map +1 -1
- package/bundled/extensions/kubbisec-clarify.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-clarify.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-clarify.extension.js.map +1 -1
- package/bundled/extensions/kubbisec-footer.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-footer.extension.js.map +1 -1
- package/bundled/extensions/kubbisec-github-local.extension.d.ts +0 -3
- package/bundled/extensions/kubbisec-github-local.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-github-local.extension.js +403 -68
- package/bundled/extensions/kubbisec-github-local.extension.js.map +1 -1
- package/bundled/extensions/kubbisec-memory.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-memory.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-naus-local.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-naus-local.extension.js +15 -26
- package/bundled/extensions/kubbisec-naus-local.extension.js.map +1 -1
- package/bundled/extensions/kubbisec-platform-tools.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-platform-tools.extension.js.map +1 -1
- package/bundled/extensions/kubbisec-skill-mentions.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-skill-mentions.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-skill-mentions.extension.js +2 -1
- package/bundled/extensions/kubbisec-skill-mentions.extension.js.map +1 -1
- package/bundled/extensions/kubbisec-ui.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-ui.extension.js +30 -19
- package/bundled/extensions/kubbisec-ui.extension.js.map +1 -1
- package/bundled/extensions/kubbisec-workflow.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-workflow.extension.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/ai/index.d.ts +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/index.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/ai/index.js +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/index.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-assistant-system-prompt.d.ts +7 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-assistant-system-prompt.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-assistant-system-prompt.js +30 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-assistant-system-prompt.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-chat-system-prompt.d.ts +7 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-chat-system-prompt.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-chat-system-prompt.js +14 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-chat-system-prompt.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/cli-reference-index.d.ts +6 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/cli-reference-index.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/cli-reference-index.js +65 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/cli-reference-index.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/format-mcp-knowledge.d.ts +8 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/format-mcp-knowledge.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/format-mcp-knowledge.js +29 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/format-mcp-knowledge.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/index.d.ts +7 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/index.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/index.js +16 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/index.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mcp-instructions.d.ts +2 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mcp-instructions.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mcp-instructions.js +36 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mcp-instructions.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mental-map.d.ts +6 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mental-map.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mental-map.js +32 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mental-map.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-groups.d.ts +12 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-groups.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-groups.js +93 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-groups.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-presets.d.ts +13 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-presets.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-presets.js +79 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-presets.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/index.d.ts +4 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/index.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/index.js +20 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/index.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/migrate-api-key-metadata.d.ts +20 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/migrate-api-key-metadata.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/migrate-api-key-metadata.js +78 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/migrate-api-key-metadata.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-thread.d.ts +19 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-thread.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-thread.js +126 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-thread.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/index.d.ts +1 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/index.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/assistant/index.js +1 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/index.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/billing/index.d.ts +2 -0
- package/bundled/node_modules/@aspm/shared/dist/billing/index.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/billing/index.js +18 -0
- package/bundled/node_modules/@aspm/shared/dist/billing/index.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/billing/plan-limits.d.ts +17 -0
- package/bundled/node_modules/@aspm/shared/dist/billing/plan-limits.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/billing/plan-limits.js +30 -0
- package/bundled/node_modules/@aspm/shared/dist/billing/plan-limits.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/ci-job-dependencies.d.ts +42 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/ci-job-dependencies.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/ci-job-dependencies.js +147 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/ci-job-dependencies.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/git-checkout-log-policy.d.ts +12 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/git-checkout-log-policy.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/git-checkout-log-policy.js +70 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/git-checkout-log-policy.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/index.d.ts +4 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/index.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/index.js +20 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/index.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/kubbisec-ci-execution-env.d.ts +16 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/kubbisec-ci-execution-env.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/kubbisec-ci-execution-env.js +45 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/kubbisec-ci-execution-env.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.d.ts +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.js +6 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/dto/index.d.ts +5 -3
- package/bundled/node_modules/@aspm/shared/dist/dto/index.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/dto/index.js +5 -3
- package/bundled/node_modules/@aspm/shared/dist/dto/index.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/dto/update-project.dto.d.ts +9 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-project.dto.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-project.dto.js +52 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-project.dto.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/enums.d.ts +3 -1
- package/bundled/node_modules/@aspm/shared/dist/enums.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/enums.js +4 -0
- package/bundled/node_modules/@aspm/shared/dist/enums.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/index.d.ts +8 -2
- package/bundled/node_modules/@aspm/shared/dist/index.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/index.js +8 -2
- package/bundled/node_modules/@aspm/shared/dist/index.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/mcp/constants.d.ts +22 -0
- package/bundled/node_modules/@aspm/shared/dist/mcp/constants.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/mcp/constants.js +52 -0
- package/bundled/node_modules/@aspm/shared/dist/mcp/constants.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/mcp/oauth-metadata.d.ts +37 -0
- package/bundled/node_modules/@aspm/shared/dist/mcp/oauth-metadata.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/mcp/oauth-metadata.js +54 -0
- package/bundled/node_modules/@aspm/shared/dist/mcp/oauth-metadata.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/project-scanner-summary.d.ts +7 -4
- package/bundled/node_modules/@aspm/shared/dist/project-scanner-summary.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/project-scanner-summary.js +15 -7
- package/bundled/node_modules/@aspm/shared/dist/project-scanner-summary.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/index.d.ts +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/index.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/index.js +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/index.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.js +2 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.d.ts +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.js +2 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/member-quota.d.ts +8 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/member-quota.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/member-quota.js +19 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/member-quota.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.js +4 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/redaction.d.ts +1 -0
- package/bundled/node_modules/@aspm/shared/dist/redaction.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/redaction.js +1 -0
- package/bundled/node_modules/@aspm/shared/dist/redaction.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/redaction.test.d.ts +2 -0
- package/bundled/node_modules/@aspm/shared/dist/redaction.test.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/redaction.test.js +626 -0
- package/bundled/node_modules/@aspm/shared/dist/redaction.test.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/security/aspm-gate-rules.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/security/aspm-gate-rules.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/security/build-aspm-security-matrix-pipeline-yaml.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/security/build-aspm-security-matrix-pipeline-yaml.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/security/build-github-security-workflow-yaml.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/security/build-github-security-workflow-yaml.js +2 -2
- package/bundled/node_modules/@aspm/shared/dist/security/build-github-security-workflow-yaml.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/security/index.d.ts +2 -2
- package/bundled/node_modules/@aspm/shared/dist/security/index.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/security/index.js +2 -2
- package/bundled/node_modules/@aspm/shared/dist/security/index.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/shared-project/constants.d.ts +4 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/constants.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/constants.js +10 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/constants.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/index.d.ts +4 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/index.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/index.js +20 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/index.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/redact-log-lines.d.ts +2 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/redact-log-lines.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/redact-log-lines.js +9 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/redact-log-lines.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/share-prefix.d.ts +3 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/share-prefix.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/share-prefix.js +18 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/share-prefix.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/package.json +27 -5
- package/bundled/node_modules/@kubbisec/chat-memory/dist/sanitizer.js +2 -2
- package/bundled/node_modules/@kubbisec/chat-memory/dist/sanitizer.js.map +1 -1
- package/bundled/node_modules/@kubbisec/chat-memory/package.json +4 -4
- package/bundled/node_modules/@kubbisec/home/dist/migrate.d.ts.map +1 -1
- package/bundled/node_modules/@kubbisec/home/dist/migrate.js +1 -1
- package/bundled/node_modules/@kubbisec/home/dist/migrate.js.map +1 -1
- package/bundled/node_modules/@kubbisec/home/package.json +3 -3
- package/bundled/resolve-bundled-dist-root.js +0 -1
- package/bundled/resolve-bundled-dist-root.js.map +1 -1
- package/bundled/skills/aspm-platform/SKILL.md +3 -1
- package/bundled/skills/github-local/SKILL.md +5 -5
- package/bundled/skills/kubbisec-resource-router/SKILL.md +3 -0
- package/bundled/skills/naus-pipelines/SKILL.md +11 -10
- package/bundled/skills/remediation/SKILL.md +1 -1
- package/bundled/theme/render-compact-header.js +1 -1
- package/bundled/theme/render-compact-header.js.map +1 -1
- package/package.json +1 -1
- package/bundled/clarify/clarify-gate-state.d.ts +0 -3
- package/bundled/clarify/clarify-gate-state.d.ts.map +0 -1
- package/bundled/clarify/clarify-gate-state.js +0 -9
- package/bundled/clarify/clarify-gate-state.js.map +0 -1
- package/bundled/clarify/clarify-gate.d.ts +0 -28
- package/bundled/clarify/clarify-gate.d.ts.map +0 -1
- package/bundled/clarify/clarify-gate.js +0 -152
- package/bundled/clarify/clarify-gate.js.map +0 -1
- package/bundled/clarify/clarify-select-panel.d.ts +0 -14
- package/bundled/clarify/clarify-select-panel.d.ts.map +0 -1
- package/bundled/clarify/clarify-select-panel.js +0 -82
- package/bundled/clarify/clarify-select-panel.js.map +0 -1
- package/bundled/clarify/clarify-ui-state.d.ts +0 -21
- package/bundled/clarify/clarify-ui-state.d.ts.map +0 -1
- package/bundled/clarify/clarify-ui-state.js +0 -48
- package/bundled/clarify/clarify-ui-state.js.map +0 -1
- package/bundled/clarify/parse-clarify-answer.d.ts +0 -21
- package/bundled/clarify/parse-clarify-answer.d.ts.map +0 -1
- package/bundled/clarify/parse-clarify-answer.js +0 -57
- package/bundled/clarify/parse-clarify-answer.js.map +0 -1
- package/bundled/clarify/question-format.d.ts +0 -39
- package/bundled/clarify/question-format.d.ts.map +0 -1
- package/bundled/clarify/question-format.js +0 -144
- package/bundled/clarify/question-format.js.map +0 -1
- package/bundled/clarify/questionnaire-tool.d.ts +0 -25
- package/bundled/clarify/questionnaire-tool.d.ts.map +0 -1
- package/bundled/clarify/questionnaire-tool.js +0 -161
- package/bundled/clarify/questionnaire-tool.js.map +0 -1
- package/bundled/clarify/scope-discovery.d.ts +0 -9
- package/bundled/clarify/scope-discovery.d.ts.map +0 -1
- package/bundled/clarify/scope-discovery.js +0 -130
- package/bundled/clarify/scope-discovery.js.map +0 -1
- package/bundled/clarify/session-questionnaire.d.ts +0 -26
- package/bundled/clarify/session-questionnaire.d.ts.map +0 -1
- package/bundled/clarify/session-questionnaire.js +0 -372
- package/bundled/clarify/session-questionnaire.js.map +0 -1
- package/bundled/clarify/session-questionnaire.types.d.ts +0 -47
- package/bundled/clarify/session-questionnaire.types.d.ts.map +0 -1
- package/bundled/clarify/session-questionnaire.types.js +0 -13
- package/bundled/clarify/session-questionnaire.types.js.map +0 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KUBBISEC_CI_EXECUTION_ENV = void 0;
|
|
4
|
+
exports.buildKubbisecCiExecutionEnv = buildKubbisecCiExecutionEnv;
|
|
5
|
+
exports.formatExecutionTriggerLabel = formatExecutionTriggerLabel;
|
|
6
|
+
exports.KUBBISEC_CI_EXECUTION_ENV = {
|
|
7
|
+
NAUS: "NAUS",
|
|
8
|
+
RUN_ID: "KUBBISEC_CI_RUN_ID",
|
|
9
|
+
PIPELINE_ID: "KUBBISEC_CI_PIPELINE_ID",
|
|
10
|
+
TRIGGER: "KUBBISEC_CI_TRIGGER",
|
|
11
|
+
PROVIDER: "KUBBISEC_CI_PROVIDER",
|
|
12
|
+
};
|
|
13
|
+
/** Variáveis públicas (não sensíveis) injetadas nos jobs Naus/KubbiSec CI para proveniência ASPM. */
|
|
14
|
+
function buildKubbisecCiExecutionEnv(input) {
|
|
15
|
+
const env = {
|
|
16
|
+
[exports.KUBBISEC_CI_EXECUTION_ENV.NAUS]: "true",
|
|
17
|
+
[exports.KUBBISEC_CI_EXECUTION_ENV.PROVIDER]: "naus",
|
|
18
|
+
};
|
|
19
|
+
const runId = input.runId?.trim();
|
|
20
|
+
const pipelineId = input.pipelineId?.trim();
|
|
21
|
+
const trigger = input.trigger?.trim();
|
|
22
|
+
if (runId)
|
|
23
|
+
env[exports.KUBBISEC_CI_EXECUTION_ENV.RUN_ID] = runId;
|
|
24
|
+
if (pipelineId)
|
|
25
|
+
env[exports.KUBBISEC_CI_EXECUTION_ENV.PIPELINE_ID] = pipelineId;
|
|
26
|
+
if (trigger)
|
|
27
|
+
env[exports.KUBBISEC_CI_EXECUTION_ENV.TRIGGER] = trigger;
|
|
28
|
+
return env;
|
|
29
|
+
}
|
|
30
|
+
function formatExecutionTriggerLabel(trigger) {
|
|
31
|
+
if (!trigger?.trim())
|
|
32
|
+
return "—";
|
|
33
|
+
const normalized = trigger.trim().toLowerCase();
|
|
34
|
+
const labels = {
|
|
35
|
+
webhook: "Webhook",
|
|
36
|
+
manual: "Manual",
|
|
37
|
+
scheduled: "Agendado",
|
|
38
|
+
pipeline: "Pipeline CI",
|
|
39
|
+
local: "Local",
|
|
40
|
+
pull_request: "Pull request",
|
|
41
|
+
push: "Push",
|
|
42
|
+
};
|
|
43
|
+
return labels[normalized] ?? trigger;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=kubbisec-ci-execution-env.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kubbisec-ci-execution-env.js","sourceRoot":"","sources":["../../src/ci/kubbisec-ci-execution-env.ts"],"names":[],"mappings":";;;AAeA,kEAiBC;AAED,kEAaC;AA/CY,QAAA,yBAAyB,GAAG;IACvC,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,oBAA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@
|
|
|
1
|
-
{"version":3,"file":"create-report.dto.d.ts","sourceRoot":"","sources":["../../src/dto/create-report.dto.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,qBAAa,mBAAmB;IAG9B,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,aAAa,CAAC,EAAE,MAAM,CAAC;IAIvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAI1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAI3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,UAAU,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"create-report.dto.d.ts","sourceRoot":"","sources":["../../src/dto/create-report.dto.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,qBAAa,mBAAmB;IAG9B,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,aAAa,CAAC,EAAE,MAAM,CAAC;IAIvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAI1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAI3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,eAAe;IAE1B,MAAM,EAAG,UAAU,CAAC;IAGpB,QAAQ,EAAG,QAAQ,CAAC;IAKpB,MAAM,EAAG,MAAM,CAAC;IAKhB,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAKnC,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAKhC,eAAe,EAAG,sBAAsB,EAAE,CAAC;CAC5C"}
|
|
@@ -26,6 +26,7 @@ class ExecutionContextDto {
|
|
|
26
26
|
pipelineId;
|
|
27
27
|
pipelineUrl;
|
|
28
28
|
ciProvider;
|
|
29
|
+
ciPipelineRunId;
|
|
29
30
|
}
|
|
30
31
|
exports.ExecutionContextDto = ExecutionContextDto;
|
|
31
32
|
__decorate([
|
|
@@ -83,6 +84,11 @@ __decorate([
|
|
|
83
84
|
(0, class_validator_1.IsString)(),
|
|
84
85
|
__metadata("design:type", String)
|
|
85
86
|
], ExecutionContextDto.prototype, "ciProvider", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_validator_1.IsOptional)(),
|
|
89
|
+
(0, class_validator_1.IsString)(),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], ExecutionContextDto.prototype, "ciPipelineRunId", void 0);
|
|
86
92
|
class CreateReportDto {
|
|
87
93
|
source;
|
|
88
94
|
scanType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-report.dto.js","sourceRoot":"","sources":["../../src/dto/create-report.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAUyB;AACzB,oCAAgD;AAChD,yEAAoE;AAEpE,MAAa,mBAAmB;IAG9B,OAAO,CAAU;IAIj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GithubProjectsDto, } from "./bulk-import-github-projects.dto";
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
2
|
+
export { BundleEntryDto, CreateBundleReportDto } from "./create-bundle-report.dto";
|
|
3
|
+
export { CoverageFileDetailDto, CreateCoverageReportDto } from "./create-coverage-report.dto";
|
|
4
4
|
export { ASSET_CI_PROVIDERS, ASSET_CRITICALITIES, ASSET_ENVIRONMENTS, ASSET_EXPOSURES, ASSET_POLICY_LEVELS, ASSET_TYPES, type AssetCiProvider, type AssetCriticality, type AssetEnvironment, type AssetExposure, type AssetPolicyLevel, type AssetType, CreateProjectDto, } from "./create-project.dto";
|
|
5
5
|
export { CreateReportDto, ExecutionContextDto } from "./create-report.dto";
|
|
6
6
|
export { CreateScanTargetDto } from "./create-scan-target.dto";
|
|
7
7
|
export { CreateVulnerabilityDto, EnterpriseVulnerabilityDataDto, } from "./create-vulnerability.dto";
|
|
8
|
-
export { CreateUploadSessionDto,
|
|
8
|
+
export type { CreateUploadSessionDto, GetProductMetricsQuery, GetQueueMetricsQuery, GetUploadSessionsMetricsQuery, NormalizedError, OperationalLimitsDto, PlanLimitsDto, ProductMetricsDto, QueueMetricsDto, TechnologyMetricsDto, UploadSessionMetricsDto, } from "./metrics.dto";
|
|
9
|
+
export { ErrorCategory, IngestionQueueName, PlanType, UploadSessionStatus, } from "./metrics.dto";
|
|
9
10
|
export { RecordGateResultDto } from "./record-gate-result.dto";
|
|
10
11
|
export { UpdateCoverageGateDto } from "./update-coverage-gate.dto";
|
|
11
12
|
export { UpdatePerformanceGateDto } from "./update-performance-gate.dto";
|
|
13
|
+
export { UpdateProjectDto } from "./update-project.dto";
|
|
12
14
|
export { UpdateSecurityGateDto } from "./update-security-gate.dto";
|
|
13
15
|
export { UpdateVulnerabilityDto } from "./update-vulnerability.dto";
|
|
14
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,EAC/B,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,EAC/B,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC9F,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EACL,sBAAsB,EACtB,8BAA8B,GAC/B,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,6BAA6B,EAC7B,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,QAAQ,EACR,mBAAmB,GACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateVulnerabilityDto = exports.UpdateSecurityGateDto = exports.UpdatePerformanceGateDto = exports.UpdateCoverageGateDto = exports.RecordGateResultDto = exports.UploadSessionStatus = exports.PlanType = exports.IngestionQueueName = exports.ErrorCategory = exports.EnterpriseVulnerabilityDataDto = exports.CreateVulnerabilityDto = exports.CreateScanTargetDto = exports.ExecutionContextDto = exports.CreateReportDto = exports.CreateProjectDto = exports.ASSET_TYPES = exports.ASSET_POLICY_LEVELS = exports.ASSET_EXPOSURES = exports.ASSET_ENVIRONMENTS = exports.ASSET_CRITICALITIES = exports.ASSET_CI_PROVIDERS = exports.
|
|
3
|
+
exports.UpdateVulnerabilityDto = exports.UpdateSecurityGateDto = exports.UpdateProjectDto = exports.UpdatePerformanceGateDto = exports.UpdateCoverageGateDto = exports.RecordGateResultDto = exports.UploadSessionStatus = exports.PlanType = exports.IngestionQueueName = exports.ErrorCategory = exports.EnterpriseVulnerabilityDataDto = exports.CreateVulnerabilityDto = exports.CreateScanTargetDto = exports.ExecutionContextDto = exports.CreateReportDto = exports.CreateProjectDto = exports.ASSET_TYPES = exports.ASSET_POLICY_LEVELS = exports.ASSET_EXPOSURES = exports.ASSET_ENVIRONMENTS = exports.ASSET_CRITICALITIES = exports.ASSET_CI_PROVIDERS = exports.CreateCoverageReportDto = exports.CoverageFileDetailDto = exports.CreateBundleReportDto = exports.BundleEntryDto = exports.BulkImportGithubProjectsDto = exports.BulkImportGithubProjectRowDto = exports.BULK_IMPORT_GITHUB_PROJECTS_MAX = void 0;
|
|
4
4
|
var bulk_import_github_projects_dto_1 = require("./bulk-import-github-projects.dto");
|
|
5
5
|
Object.defineProperty(exports, "BULK_IMPORT_GITHUB_PROJECTS_MAX", { enumerable: true, get: function () { return bulk_import_github_projects_dto_1.BULK_IMPORT_GITHUB_PROJECTS_MAX; } });
|
|
6
6
|
Object.defineProperty(exports, "BulkImportGithubProjectRowDto", { enumerable: true, get: function () { return bulk_import_github_projects_dto_1.BulkImportGithubProjectRowDto; } });
|
|
7
7
|
Object.defineProperty(exports, "BulkImportGithubProjectsDto", { enumerable: true, get: function () { return bulk_import_github_projects_dto_1.BulkImportGithubProjectsDto; } });
|
|
8
8
|
var create_bundle_report_dto_1 = require("./create-bundle-report.dto");
|
|
9
|
-
Object.defineProperty(exports, "CreateBundleReportDto", { enumerable: true, get: function () { return create_bundle_report_dto_1.CreateBundleReportDto; } });
|
|
10
9
|
Object.defineProperty(exports, "BundleEntryDto", { enumerable: true, get: function () { return create_bundle_report_dto_1.BundleEntryDto; } });
|
|
10
|
+
Object.defineProperty(exports, "CreateBundleReportDto", { enumerable: true, get: function () { return create_bundle_report_dto_1.CreateBundleReportDto; } });
|
|
11
11
|
var create_coverage_report_dto_1 = require("./create-coverage-report.dto");
|
|
12
|
-
Object.defineProperty(exports, "CreateCoverageReportDto", { enumerable: true, get: function () { return create_coverage_report_dto_1.CreateCoverageReportDto; } });
|
|
13
12
|
Object.defineProperty(exports, "CoverageFileDetailDto", { enumerable: true, get: function () { return create_coverage_report_dto_1.CoverageFileDetailDto; } });
|
|
13
|
+
Object.defineProperty(exports, "CreateCoverageReportDto", { enumerable: true, get: function () { return create_coverage_report_dto_1.CreateCoverageReportDto; } });
|
|
14
14
|
var create_project_dto_1 = require("./create-project.dto");
|
|
15
15
|
Object.defineProperty(exports, "ASSET_CI_PROVIDERS", { enumerable: true, get: function () { return create_project_dto_1.ASSET_CI_PROVIDERS; } });
|
|
16
16
|
Object.defineProperty(exports, "ASSET_CRITICALITIES", { enumerable: true, get: function () { return create_project_dto_1.ASSET_CRITICALITIES; } });
|
|
@@ -38,6 +38,8 @@ var update_coverage_gate_dto_1 = require("./update-coverage-gate.dto");
|
|
|
38
38
|
Object.defineProperty(exports, "UpdateCoverageGateDto", { enumerable: true, get: function () { return update_coverage_gate_dto_1.UpdateCoverageGateDto; } });
|
|
39
39
|
var update_performance_gate_dto_1 = require("./update-performance-gate.dto");
|
|
40
40
|
Object.defineProperty(exports, "UpdatePerformanceGateDto", { enumerable: true, get: function () { return update_performance_gate_dto_1.UpdatePerformanceGateDto; } });
|
|
41
|
+
var update_project_dto_1 = require("./update-project.dto");
|
|
42
|
+
Object.defineProperty(exports, "UpdateProjectDto", { enumerable: true, get: function () { return update_project_dto_1.UpdateProjectDto; } });
|
|
41
43
|
var update_security_gate_dto_1 = require("./update-security-gate.dto");
|
|
42
44
|
Object.defineProperty(exports, "UpdateSecurityGateDto", { enumerable: true, get: function () { return update_security_gate_dto_1.UpdateSecurityGateDto; } });
|
|
43
45
|
var update_vulnerability_dto_1 = require("./update-vulnerability.dto");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;AAAA,qFAI2C;AAHzC,kJAAA,+BAA+B,OAAA;AAC/B,gJAAA,6BAA6B,OAAA;AAC7B,8IAAA,2BAA2B,OAAA;AAE7B,uEAAmF;AAA1E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;AAAA,qFAI2C;AAHzC,kJAAA,+BAA+B,OAAA;AAC/B,gJAAA,6BAA6B,OAAA;AAC7B,8IAAA,2BAA2B,OAAA;AAE7B,uEAAmF;AAA1E,0HAAA,cAAc,OAAA;AAAE,iIAAA,qBAAqB,OAAA;AAC9C,2EAA8F;AAArF,mIAAA,qBAAqB,OAAA;AAAE,qIAAA,uBAAuB,OAAA;AACvD,2DAc8B;AAb5B,wHAAA,kBAAkB,OAAA;AAClB,yHAAA,mBAAmB,OAAA;AACnB,wHAAA,kBAAkB,OAAA;AAClB,qHAAA,eAAe,OAAA;AACf,yHAAA,mBAAmB,OAAA;AACnB,iHAAA,WAAW,OAAA;AAOX,sHAAA,gBAAgB,OAAA;AAElB,yDAA2E;AAAlE,oHAAA,eAAe,OAAA;AAAE,wHAAA,mBAAmB,OAAA;AAC7C,mEAA+D;AAAtD,6HAAA,mBAAmB,OAAA;AAC5B,uEAGoC;AAFlC,kIAAA,sBAAsB,OAAA;AACtB,0IAAA,8BAA8B,OAAA;AAehC,6CAKuB;AAJrB,4GAAA,aAAa,OAAA;AACb,iHAAA,kBAAkB,OAAA;AAClB,uGAAA,QAAQ,OAAA;AACR,kHAAA,mBAAmB,OAAA;AAErB,mEAA+D;AAAtD,6HAAA,mBAAmB,OAAA;AAC5B,uEAAmE;AAA1D,iIAAA,qBAAqB,OAAA;AAC9B,6EAAyE;AAAhE,uIAAA,wBAAwB,OAAA;AACjC,2DAAwD;AAA/C,sHAAA,gBAAgB,OAAA;AACzB,uEAAmE;AAA1D,iIAAA,qBAAqB,OAAA;AAC9B,uEAAoE;AAA3D,kIAAA,sBAAsB,OAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type AssetCriticality, type AssetExposure } from "./create-project.dto";
|
|
2
|
+
export declare class UpdateProjectDto {
|
|
3
|
+
name?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
criticality?: AssetCriticality;
|
|
6
|
+
exposure?: AssetExposure;
|
|
7
|
+
defaultBranch?: string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=update-project.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-project.dto.d.ts","sourceRoot":"","sources":["../../src/dto/update-project.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EACnB,MAAM,sBAAsB,CAAC;AAE9B,qBAAa,gBAAgB;IAK3B,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAI/B,QAAQ,CAAC,EAAE,aAAa,CAAC;IAKzB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateProjectDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const create_project_dto_1 = require("./create-project.dto");
|
|
15
|
+
class UpdateProjectDto {
|
|
16
|
+
name;
|
|
17
|
+
description;
|
|
18
|
+
criticality;
|
|
19
|
+
exposure;
|
|
20
|
+
defaultBranch;
|
|
21
|
+
}
|
|
22
|
+
exports.UpdateProjectDto = UpdateProjectDto;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
(0, class_validator_1.MaxLength)(255),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], UpdateProjectDto.prototype, "name", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], UpdateProjectDto.prototype, "description", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
(0, class_validator_1.IsIn)(create_project_dto_1.ASSET_CRITICALITIES),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], UpdateProjectDto.prototype, "criticality", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
(0, class_validator_1.IsIn)(create_project_dto_1.ASSET_EXPOSURES),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], UpdateProjectDto.prototype, "exposure", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_1.MaxLength)(100),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], UpdateProjectDto.prototype, "defaultBranch", void 0);
|
|
52
|
+
//# sourceMappingURL=update-project.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-project.dto.js","sourceRoot":"","sources":["../../src/dto/update-project.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoF;AACpF,6DAK8B;AAE9B,MAAa,gBAAgB;IAK3B,IAAI,CAAU;IAKd,WAAW,CAAU;IAIrB,WAAW,CAAoB;IAI/B,QAAQ,CAAiB;IAKzB,aAAa,CAAU;CACxB;AAxBD,4CAwBC;AAnBC;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;8CACD;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,IAAI,CAAC;;qDACK;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,wCAAmB,CAAC;;qDACK;AAI/B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,oCAAe,CAAC;;kDACG;AAKzB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;uDACQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,IAAI,SAAS;
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,WAAW,gBAAgB;CAC5B;AAED,oBAAY,QAAQ;IAClB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED,oBAAY,QAAQ;IAClB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,oBAAY,mBAAmB;IA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SV";
|
|
13
13
|
ScanSource["GITLEAKS"] = "GITLEAKS";
|
|
14
14
|
ScanSource["SYFT"] = "SYFT";
|
|
15
|
+
ScanSource["VULNDB"] = "VULNDB";
|
|
16
|
+
ScanSource["KUBBISEC_AI"] = "KUBBISEC_AI";
|
|
15
17
|
})(ScanSource || (exports.ScanSource = ScanSource = {}));
|
|
16
18
|
var ScanType;
|
|
17
19
|
(function (ScanType) {
|
|
@@ -128,5 +130,7 @@ exports.SOURCE_SCAN_TYPE_MAP = {
|
|
|
128
130
|
[ScanSource.OSV]: ScanType.DEPENDENCIES,
|
|
129
131
|
[ScanSource.GITLEAKS]: ScanType.SECRETS,
|
|
130
132
|
[ScanSource.SYFT]: ScanType.SBOM,
|
|
133
|
+
[ScanSource.VULNDB]: ScanType.DEPENDENCIES,
|
|
134
|
+
[ScanSource.KUBBISEC_AI]: ScanType.SAST,
|
|
131
135
|
};
|
|
132
136
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":";;;AAyDA,8DAEC;AA3DD,IAAY,UAWX;AAXD,WAAY,UAAU;IACpB,6BAAe,CAAA;IACf,6BAAe,CAAA;IACf,iCAAmB,CAAA;IACnB,2BAAa,CAAA;IACb,mCAAqB,CAAA;IACrB,yBAAW,CAAA;IACX,mCAAqB,CAAA;IACrB,2BAAa,CAAA;IACb,+BAAiB,CAAA;IACjB,yCAA2B,CAAA;AAC7B,CAAC,EAXW,UAAU,0BAAV,UAAU,QAWrB;AAED,IAAY,QAQX;AARD,WAAY,QAAQ;IAClB,mCAAuB,CAAA;IACvB,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,uBAAW,CAAA;IACX,yCAA6B,CAAA;IAC7B,+BAAmB,CAAA;IACnB,yBAAa,CAAA;AACf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,GAAG;IACnC,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,YAAY;IACvC,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO;IACvC,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,IAAI;IAChC,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,YAAY;IAC1C,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,IAAI;CACxC,CAAC"}
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
export * from "./security";
|
|
2
1
|
export * from "./ai";
|
|
2
|
+
export * from "./api-key";
|
|
3
3
|
export * from "./assistant";
|
|
4
|
+
export * from "./billing";
|
|
5
|
+
export * from "./ci";
|
|
4
6
|
export * from "./cli-user-error";
|
|
5
7
|
export * from "./dto";
|
|
6
8
|
export * from "./dto/metrics.dto";
|
|
7
9
|
export * from "./enums";
|
|
8
10
|
export * from "./github/kubbisec-github-label";
|
|
11
|
+
export * from "./mcp/constants";
|
|
12
|
+
export * from "./mcp/oauth-metadata";
|
|
13
|
+
export * from "./project-scanner-summary";
|
|
9
14
|
export * from "./rbac";
|
|
10
15
|
export * from "./redaction";
|
|
16
|
+
export * from "./security";
|
|
11
17
|
export * from "./severity-map";
|
|
18
|
+
export * from "./shared-project";
|
|
12
19
|
export * from "./sonar-safe-string";
|
|
13
20
|
export * from "./sort-findings";
|
|
14
|
-
export * from "./project-scanner-summary";
|
|
15
21
|
export * from "./trusted-path";
|
|
16
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,MAAM,CAAC;AACrB,cAAc,kBAAkB,CAAC;AACjC,cAAc,OAAO,CAAC;AACtB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
@@ -14,19 +14,25 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./security"), exports);
|
|
18
17
|
__exportStar(require("./ai"), exports);
|
|
18
|
+
__exportStar(require("./api-key"), exports);
|
|
19
19
|
__exportStar(require("./assistant"), exports);
|
|
20
|
+
__exportStar(require("./billing"), exports);
|
|
21
|
+
__exportStar(require("./ci"), exports);
|
|
20
22
|
__exportStar(require("./cli-user-error"), exports);
|
|
21
23
|
__exportStar(require("./dto"), exports);
|
|
22
24
|
__exportStar(require("./dto/metrics.dto"), exports);
|
|
23
25
|
__exportStar(require("./enums"), exports);
|
|
24
26
|
__exportStar(require("./github/kubbisec-github-label"), exports);
|
|
27
|
+
__exportStar(require("./mcp/constants"), exports);
|
|
28
|
+
__exportStar(require("./mcp/oauth-metadata"), exports);
|
|
29
|
+
__exportStar(require("./project-scanner-summary"), exports);
|
|
25
30
|
__exportStar(require("./rbac"), exports);
|
|
26
31
|
__exportStar(require("./redaction"), exports);
|
|
32
|
+
__exportStar(require("./security"), exports);
|
|
27
33
|
__exportStar(require("./severity-map"), exports);
|
|
34
|
+
__exportStar(require("./shared-project"), exports);
|
|
28
35
|
__exportStar(require("./sonar-safe-string"), exports);
|
|
29
36
|
__exportStar(require("./sort-findings"), exports);
|
|
30
|
-
__exportStar(require("./project-scanner-summary"), exports);
|
|
31
37
|
__exportStar(require("./trusted-path"), exports);
|
|
32
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,4CAA0B;AAC1B,8CAA4B;AAC5B,4CAA0B;AAC1B,uCAAqB;AACrB,mDAAiC;AACjC,wCAAsB;AACtB,oDAAkC;AAClC,0CAAwB;AACxB,iEAA+C;AAC/C,kDAAgC;AAChC,uDAAqC;AACrC,4DAA0C;AAC1C,yCAAuB;AACvB,8CAA4B;AAC5B,6CAA2B;AAC3B,iDAA+B;AAC/B,mDAAiC;AACjC,sDAAoC;AACpC,kDAAgC;AAChC,iDAA+B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const KUBBISEC_HOSTED_MCP_URL = "https://mcp.kubbisec.com/mcp";
|
|
2
|
+
export declare const KUBBISEC_MCP_API_ORIGIN = "https://api.kubbisec.com";
|
|
3
|
+
export declare const KUBBISEC_MCP_OAUTH_AUTHORIZE_URL = "https://app.kubbisec.com/oauth/device";
|
|
4
|
+
export declare const KUBBISEC_MCP_OAUTH_TOKEN_URL = "https://api.kubbisec.com/v1/oauth/token";
|
|
5
|
+
export declare const KUBBISEC_MCP_OAUTH_DEVICE_TOKEN_URL = "https://api.kubbisec.com/v1/oauth/device/token";
|
|
6
|
+
export declare const KUBBISEC_MCP_OAUTH_DEVICE_URL = "https://api.kubbisec.com/v1/oauth/device";
|
|
7
|
+
export declare const KUBBISEC_MCP_DEVICE_URL = "https://app.kubbisec.com/oauth/device";
|
|
8
|
+
export declare const KUBBISEC_MCP_APP_ORIGIN = "https://app.kubbisec.com";
|
|
9
|
+
export declare const KUBBISEC_MCP_BRAND_ICON_PATH = "/assets/icons/mcp-logo.png";
|
|
10
|
+
export declare const KUBBISEC_MCP_DEFAULT_SCOPES: readonly ["mcp:read", "mcp:scan:trigger", "mcp:remediate:trigger"];
|
|
11
|
+
export declare function buildHostedMcpOAuthConfig(): {
|
|
12
|
+
type: "oauth2";
|
|
13
|
+
authorizationUrl: string;
|
|
14
|
+
tokenUrl: string;
|
|
15
|
+
scopes: ("mcp:read" | "mcp:scan:trigger" | "mcp:remediate:trigger")[];
|
|
16
|
+
};
|
|
17
|
+
export declare function buildHostedMcpCursorSnippet(): string;
|
|
18
|
+
export declare function buildStdioApiKeyCursorSnippet(input: {
|
|
19
|
+
organizationSlug: string;
|
|
20
|
+
apiKeyPlaceholder?: string;
|
|
21
|
+
}): string;
|
|
22
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/mcp/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,iCAAiC,CAAC;AACtE,eAAO,MAAM,uBAAuB,6BAA6B,CAAC;AAClE,eAAO,MAAM,gCAAgC,0CAA0C,CAAC;AACxF,eAAO,MAAM,4BAA4B,4CAA4C,CAAC;AACtF,eAAO,MAAM,mCAAmC,mDAAmD,CAAC;AACpG,eAAO,MAAM,6BAA6B,6CAA6C,CAAC;AACxF,eAAO,MAAM,uBAAuB,0CAA0C,CAAC;AAC/E,eAAO,MAAM,uBAAuB,6BAA6B,CAAC;AAClE,eAAO,MAAM,4BAA4B,+BAA+B,CAAC;AAEzE,eAAO,MAAM,2BAA2B,oEAI9B,CAAC;AAEX,wBAAgB,yBAAyB;;;;;EAOxC;AAED,wBAAgB,2BAA2B,IAAI,MAAM,CAYpD;AAED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE;IACnD,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG,MAAM,CAiBT"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KUBBISEC_MCP_DEFAULT_SCOPES = exports.KUBBISEC_MCP_BRAND_ICON_PATH = exports.KUBBISEC_MCP_APP_ORIGIN = exports.KUBBISEC_MCP_DEVICE_URL = exports.KUBBISEC_MCP_OAUTH_DEVICE_URL = exports.KUBBISEC_MCP_OAUTH_DEVICE_TOKEN_URL = exports.KUBBISEC_MCP_OAUTH_TOKEN_URL = exports.KUBBISEC_MCP_OAUTH_AUTHORIZE_URL = exports.KUBBISEC_MCP_API_ORIGIN = exports.KUBBISEC_HOSTED_MCP_URL = void 0;
|
|
4
|
+
exports.buildHostedMcpOAuthConfig = buildHostedMcpOAuthConfig;
|
|
5
|
+
exports.buildHostedMcpCursorSnippet = buildHostedMcpCursorSnippet;
|
|
6
|
+
exports.buildStdioApiKeyCursorSnippet = buildStdioApiKeyCursorSnippet;
|
|
7
|
+
exports.KUBBISEC_HOSTED_MCP_URL = "https://mcp.kubbisec.com/mcp";
|
|
8
|
+
exports.KUBBISEC_MCP_API_ORIGIN = "https://api.kubbisec.com";
|
|
9
|
+
exports.KUBBISEC_MCP_OAUTH_AUTHORIZE_URL = "https://app.kubbisec.com/oauth/device";
|
|
10
|
+
exports.KUBBISEC_MCP_OAUTH_TOKEN_URL = "https://api.kubbisec.com/v1/oauth/token";
|
|
11
|
+
exports.KUBBISEC_MCP_OAUTH_DEVICE_TOKEN_URL = "https://api.kubbisec.com/v1/oauth/device/token";
|
|
12
|
+
exports.KUBBISEC_MCP_OAUTH_DEVICE_URL = "https://api.kubbisec.com/v1/oauth/device";
|
|
13
|
+
exports.KUBBISEC_MCP_DEVICE_URL = "https://app.kubbisec.com/oauth/device";
|
|
14
|
+
exports.KUBBISEC_MCP_APP_ORIGIN = "https://app.kubbisec.com";
|
|
15
|
+
exports.KUBBISEC_MCP_BRAND_ICON_PATH = "/assets/icons/mcp-logo.png";
|
|
16
|
+
exports.KUBBISEC_MCP_DEFAULT_SCOPES = [
|
|
17
|
+
"mcp:read",
|
|
18
|
+
"mcp:scan:trigger",
|
|
19
|
+
"mcp:remediate:trigger",
|
|
20
|
+
];
|
|
21
|
+
function buildHostedMcpOAuthConfig() {
|
|
22
|
+
return {
|
|
23
|
+
type: "oauth2",
|
|
24
|
+
authorizationUrl: exports.KUBBISEC_MCP_OAUTH_AUTHORIZE_URL,
|
|
25
|
+
tokenUrl: exports.KUBBISEC_MCP_OAUTH_TOKEN_URL,
|
|
26
|
+
scopes: [...exports.KUBBISEC_MCP_DEFAULT_SCOPES],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function buildHostedMcpCursorSnippet() {
|
|
30
|
+
return JSON.stringify({
|
|
31
|
+
mcpServers: {
|
|
32
|
+
kubbisec: {
|
|
33
|
+
url: exports.KUBBISEC_HOSTED_MCP_URL,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
}, null, 2);
|
|
37
|
+
}
|
|
38
|
+
function buildStdioApiKeyCursorSnippet(input) {
|
|
39
|
+
return JSON.stringify({
|
|
40
|
+
mcpServers: {
|
|
41
|
+
kubbisec: {
|
|
42
|
+
command: "npx",
|
|
43
|
+
args: ["-y", "@kubbisec/mcp"],
|
|
44
|
+
env: {
|
|
45
|
+
KUBBISEC_API_KEY: input.apiKeyPlaceholder ?? "<sua-key>",
|
|
46
|
+
KUBBISEC_ORGANIZATION_SLUG: input.organizationSlug,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
}, null, 2);
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/mcp/constants.ts"],"names":[],"mappings":";;;AAgBA,8DAOC;AAED,kEAYC;AAED,sEAoBC;AA3DY,QAAA,uBAAuB,GAAG,8BAA8B,CAAC;AACzD,QAAA,uBAAuB,GAAG,0BAA0B,CAAC;AACrD,QAAA,gCAAgC,GAAG,uCAAuC,CAAC;AAC3E,QAAA,4BAA4B,GAAG,yCAAyC,CAAC;AACzE,QAAA,mCAAmC,GAAG,gDAAgD,CAAC;AACvF,QAAA,6BAA6B,GAAG,0CAA0C,CAAC;AAC3E,QAAA,uBAAuB,GAAG,uCAAuC,CAAC;AAClE,QAAA,uBAAuB,GAAG,0BAA0B,CAAC;AACrD,QAAA,4BAA4B,GAAG,4BAA4B,CAAC;AAE5D,QAAA,2BAA2B,GAAG;IACzC,UAAU;IACV,kBAAkB;IAClB,uBAAuB;CACf,CAAC;AAEX,SAAgB,yBAAyB;IACvC,OAAO;QACL,IAAI,EAAE,QAAiB;QACvB,gBAAgB,EAAE,wCAAgC;QAClD,QAAQ,EAAE,oCAA4B;QACtC,MAAM,EAAE,CAAC,GAAG,mCAA2B,CAAC;KACzC,CAAC;AACJ,CAAC;AAED,SAAgB,2BAA2B;IACzC,OAAO,IAAI,CAAC,SAAS,CACnB;QACE,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,GAAG,EAAE,+BAAuB;aAC7B;SACF;KACF,EACD,IAAI,EACJ,CAAC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAG7C;IACC,OAAO,IAAI,CAAC,SAAS,CACnB;QACE,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,OAAO,EAAE,KAAK;gBACd,IAAI,EAAE,CAAC,IAAI,EAAE,eAAe,CAAC;gBAC7B,GAAG,EAAE;oBACH,gBAAgB,EAAE,KAAK,CAAC,iBAAiB,IAAI,WAAW;oBACxD,0BAA0B,EAAE,KAAK,CAAC,gBAAgB;iBACnD;aACF;SACF;KACF,EACD,IAAI,EACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type McpOAuthProtectedResourceMetadata = {
|
|
2
|
+
resource: string;
|
|
3
|
+
authorization_servers: string[];
|
|
4
|
+
bearer_methods_supported: ["header"];
|
|
5
|
+
scopes_supported: string[];
|
|
6
|
+
};
|
|
7
|
+
export type McpOAuthAuthorizationServerMetadata = {
|
|
8
|
+
issuer: string;
|
|
9
|
+
authorization_endpoint: string;
|
|
10
|
+
token_endpoint: string;
|
|
11
|
+
device_authorization_endpoint: string;
|
|
12
|
+
response_types_supported: string[];
|
|
13
|
+
grant_types_supported: string[];
|
|
14
|
+
token_endpoint_auth_methods_supported: string[];
|
|
15
|
+
code_challenge_methods_supported: string[];
|
|
16
|
+
scopes_supported: string[];
|
|
17
|
+
};
|
|
18
|
+
export declare function buildMcpOAuthProtectedResourceMetadata(input: {
|
|
19
|
+
resourceUrl: string;
|
|
20
|
+
authorizationServerUrl: string;
|
|
21
|
+
scopes?: readonly string[];
|
|
22
|
+
}): McpOAuthProtectedResourceMetadata;
|
|
23
|
+
export declare function buildMcpOAuthAuthorizationServerMetadata(input: {
|
|
24
|
+
apiBaseUrl: string;
|
|
25
|
+
webAppBaseUrl: string;
|
|
26
|
+
scopes?: readonly string[];
|
|
27
|
+
}): McpOAuthAuthorizationServerMetadata;
|
|
28
|
+
export declare function buildMcpOAuthWwwAuthenticateHeader(input: {
|
|
29
|
+
resourceMetadataUrl: string;
|
|
30
|
+
realm?: string;
|
|
31
|
+
error?: string;
|
|
32
|
+
}): string;
|
|
33
|
+
export declare function buildMcpOAuthProtectedResourceMetadataUrls(resourceUrl: string): {
|
|
34
|
+
root: string;
|
|
35
|
+
pathInserted: string;
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=oauth-metadata.d.ts.map
|
|
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AC,WAAW,EAAE,MAAM,GAAG;IAC/E,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB,CAWA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildMcpOAuthProtectedResourceMetadata = buildMcpOAuthProtectedResourceMetadata;
|
|
4
|
+
exports.buildMcpOAuthAuthorizationServerMetadata = buildMcpOAuthAuthorizationServerMetadata;
|
|
5
|
+
exports.buildMcpOAuthWwwAuthenticateHeader = buildMcpOAuthWwwAuthenticateHeader;
|
|
6
|
+
exports.buildMcpOAuthProtectedResourceMetadataUrls = buildMcpOAuthProtectedResourceMetadataUrls;
|
|
7
|
+
const sonar_safe_string_1 = require("../sonar-safe-string");
|
|
8
|
+
const constants_1 = require("./constants");
|
|
9
|
+
function buildMcpOAuthProtectedResourceMetadata(input) {
|
|
10
|
+
return {
|
|
11
|
+
resource: (0, sonar_safe_string_1.trimTrailingSlashes)(input.resourceUrl),
|
|
12
|
+
authorization_servers: [(0, sonar_safe_string_1.trimTrailingSlashes)(input.authorizationServerUrl)],
|
|
13
|
+
bearer_methods_supported: ["header"],
|
|
14
|
+
scopes_supported: [...(input.scopes ?? constants_1.KUBBISEC_MCP_DEFAULT_SCOPES)],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function buildMcpOAuthAuthorizationServerMetadata(input) {
|
|
18
|
+
const apiBase = (0, sonar_safe_string_1.trimTrailingSlashes)(input.apiBaseUrl);
|
|
19
|
+
const webAppBase = (0, sonar_safe_string_1.trimTrailingSlashes)(input.webAppBaseUrl);
|
|
20
|
+
return {
|
|
21
|
+
issuer: apiBase,
|
|
22
|
+
authorization_endpoint: `${webAppBase}/oauth/device`,
|
|
23
|
+
token_endpoint: `${apiBase}/v1/oauth/token`,
|
|
24
|
+
device_authorization_endpoint: `${apiBase}/v1/oauth/device`,
|
|
25
|
+
response_types_supported: ["code"],
|
|
26
|
+
grant_types_supported: [
|
|
27
|
+
"urn:ietf:params:oauth:grant-type:device_code",
|
|
28
|
+
"refresh_token",
|
|
29
|
+
],
|
|
30
|
+
token_endpoint_auth_methods_supported: ["none"],
|
|
31
|
+
code_challenge_methods_supported: ["S256"],
|
|
32
|
+
scopes_supported: [...(input.scopes ?? constants_1.KUBBISEC_MCP_DEFAULT_SCOPES)],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function buildMcpOAuthWwwAuthenticateHeader(input) {
|
|
36
|
+
const realm = input.realm ?? "kubbisec-mcp";
|
|
37
|
+
const parts = [`Bearer realm="${realm}"`, `resource_metadata="${input.resourceMetadataUrl}"`];
|
|
38
|
+
if (input.error) {
|
|
39
|
+
parts.push(`error="${input.error}"`);
|
|
40
|
+
}
|
|
41
|
+
return parts.join(", ");
|
|
42
|
+
}
|
|
43
|
+
function buildMcpOAuthProtectedResourceMetadataUrls(resourceUrl) {
|
|
44
|
+
const resource = new URL(resourceUrl);
|
|
45
|
+
const origin = resource.origin;
|
|
46
|
+
const resourcePath = resource.pathname.replace(/^\//, "");
|
|
47
|
+
return {
|
|
48
|
+
root: `${origin}/.well-known/oauth-protected-resource`,
|
|
49
|
+
pathInserted: resourcePath
|
|
50
|
+
? `${origin}/.well-known/oauth-protected-resource/${resourcePath}`
|
|
51
|
+
: `${origin}/.well-known/oauth-protected-resource`,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=oauth-metadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-metadata.js","sourceRoot":"","sources":["../../src/mcp/oauth-metadata.ts"],"names":[],"mappings":";;AAsBA,wFAWC;AAED,4FAsBC;AAED,gFAWC;AAED,gGAcC;AAtFD,4DAA2D;AAC3D,2CAA0D;AAqB1D,SAAgB,sCAAsC,CAAC,KAItD;IACC,OAAO;QACL,QAAQ,EAAE,IAAA,uCAAmB,EAAC,KAAK,CAAC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;AAC1B,CAAC;AAED,SAAgB,0CAA0C,CAAC,WAAmB;IAI5E,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC;IACtC,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC/B,MAAM,YAAY,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAE1D,OAAO;QACL,IAAI,EAAE,GAAG,MAAM,uCAAuC;QACtD,YAAY,EAAE,YAAY;YACxB,CAAC,CAAC,GAAG,MAAM,yCAAyC,YAAY,EAAE;YAClE,CAAC,CAAC,GAAG,MAAM,uCAAuC;KACrD,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { ScanSource } from "./enums";
|
|
2
1
|
/** Scanners surfaced on project detail scanner tabs. */
|
|
3
|
-
export declare const PROJECT_SCANNER_SUMMARY_SOURCES: readonly [
|
|
2
|
+
export declare const PROJECT_SCANNER_SUMMARY_SOURCES: readonly ["TRIVY", "SEMGREP", "SONAR"];
|
|
4
3
|
export type ProjectScannerSummarySource = (typeof PROJECT_SCANNER_SUMMARY_SOURCES)[number];
|
|
4
|
+
/** Scan source literals (kept local so web `erasableSyntaxOnly` does not pull in shared enums). */
|
|
5
|
+
export declare const SCAN_SOURCE_VALUES: readonly ["TRIVY", "SONAR", "SEMGREP", "NMAP", "SKIPFISH", "OSV", "GITLEAKS", "SYFT", "VULNDB", "KUBBISEC_AI"];
|
|
6
|
+
type SummaryScanSource = (typeof SCAN_SOURCE_VALUES)[number];
|
|
5
7
|
export type ProjectScannerSourceSummary = {
|
|
6
8
|
totalActive: number;
|
|
7
9
|
criticalCount: number;
|
|
@@ -13,9 +15,10 @@ export type ProjectScannerSourceSummary = {
|
|
|
13
15
|
latestReportImportedAt: string | null;
|
|
14
16
|
};
|
|
15
17
|
export type ProjectScannerSummaryResponse = {
|
|
16
|
-
summaries: Partial<Record<
|
|
18
|
+
summaries: Partial<Record<SummaryScanSource, ProjectScannerSourceSummary>>;
|
|
17
19
|
};
|
|
18
|
-
export declare function isScanSource(value: string): value is
|
|
20
|
+
export declare function isScanSource(value: string): value is SummaryScanSource;
|
|
19
21
|
export declare function parseProjectScannerSummarySources(raw: string | undefined | null): ProjectScannerSummarySource[];
|
|
20
22
|
export declare function emptyProjectScannerSourceSummary(): ProjectScannerSourceSummary;
|
|
23
|
+
export {};
|
|
21
24
|
//# sourceMappingURL=project-scanner-summary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-scanner-summary.d.ts","sourceRoot":"","sources":["../src/project-scanner-summary.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"project-scanner-summary.d.ts","sourceRoot":"","sources":["../src/project-scanner-summary.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,eAAO,MAAM,+BAA+B,wCAAyC,CAAC;AAEtF,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3F,mGAAmG;AACnG,eAAO,MAAM,kBAAkB,gHAWrB,CAAC;AAEX,KAAK,iBAAiB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,MAAM,2BAA2B,GAAG;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,2BAA2B,CAAC,CAAC,CAAC;CAC5E,CAAC;AAIF,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAEtE;AAED,wBAAgB,iCAAiC,CAC/C,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAC7B,2BAA2B,EAAE,CAuB/B;AAED,wBAAgB,gCAAgC,IAAI,2BAA2B,CAW9E"}
|