@kubbisec/ai-linux-x64 0.1.27 → 0.1.28
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/assets/terminal/banner-compact.ansi +7 -0
- package/bundled/assets/terminal/banner-wide.ansi +10 -0
- package/bundled/assets/terminal/logotipo-compact-fallback.ansi +7 -0
- package/bundled/assets/terminal/logotipo-compact.ansi +1 -0
- package/bundled/assets/terminal/logotipo-compact.png +0 -0
- package/bundled/assets/terminal/logotipo-wide-fallback.ansi +10 -0
- package/bundled/assets/terminal/logotipo-wide.ansi +1 -0
- package/bundled/assets/terminal/logotipo-wide.png +0 -0
- package/bundled/assets/terminal/mark.ansi +7 -0
- package/bundled/assets/terminal/wordmark-inline.ansi +1 -0
- package/bundled/assets/terminal/wordmark.ansi +4 -0
- package/bundled/assets/terminal/wordmark.png +0 -0
- package/bundled/components/kubbisec-model-selector.d.ts +44 -0
- package/bundled/components/kubbisec-model-selector.d.ts.map +1 -0
- package/bundled/components/kubbisec-model-selector.js +198 -0
- package/bundled/components/kubbisec-model-selector.js.map +1 -0
- package/bundled/config/config.d.ts +14 -0
- package/bundled/config/config.d.ts.map +1 -0
- package/bundled/config/config.js +67 -0
- package/bundled/config/config.js.map +1 -0
- package/bundled/config/detect-local-llm-providers.d.ts +33 -0
- package/bundled/config/detect-local-llm-providers.d.ts.map +1 -0
- package/bundled/config/detect-local-llm-providers.js +172 -0
- package/bundled/config/detect-local-llm-providers.js.map +1 -0
- 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 +31 -0
- package/bundled/config/ensure-kubbisec-project-settings.d.ts.map +1 -0
- package/bundled/config/ensure-kubbisec-project-settings.js +107 -0
- package/bundled/config/ensure-kubbisec-project-settings.js.map +1 -0
- package/bundled/config/extended-context.d.ts +12 -0
- package/bundled/config/extended-context.d.ts.map +1 -0
- package/bundled/config/extended-context.js +36 -0
- package/bundled/config/extended-context.js.map +1 -0
- package/bundled/config/feature-flags.d.ts +2 -0
- package/bundled/config/feature-flags.d.ts.map +1 -0
- package/bundled/config/feature-flags.js +2 -0
- package/bundled/config/feature-flags.js.map +1 -0
- package/bundled/config/format-kubbisec-footer-status.d.ts +2 -0
- package/bundled/config/format-kubbisec-footer-status.d.ts.map +1 -0
- package/bundled/config/format-kubbisec-footer-status.js +37 -0
- package/bundled/config/format-kubbisec-footer-status.js.map +1 -0
- package/bundled/config/kubbisec-extension-manifest.d.ts +3 -0
- package/bundled/config/kubbisec-extension-manifest.d.ts.map +1 -0
- package/bundled/config/kubbisec-extension-manifest.js +22 -0
- package/bundled/config/kubbisec-extension-manifest.js.map +1 -0
- package/bundled/config/llm-config-mutations.d.ts +38 -0
- package/bundled/config/llm-config-mutations.d.ts.map +1 -0
- package/bundled/config/llm-config-mutations.js +207 -0
- package/bundled/config/llm-config-mutations.js.map +1 -0
- package/bundled/config/llm-config.d.ts +66 -0
- package/bundled/config/llm-config.d.ts.map +1 -0
- package/bundled/config/llm-config.js +246 -0
- package/bundled/config/llm-config.js.map +1 -0
- package/bundled/config/llm-provider-catalog.d.ts +22 -0
- package/bundled/config/llm-provider-catalog.d.ts.map +1 -0
- package/bundled/config/llm-provider-catalog.js +54 -0
- package/bundled/config/llm-provider-catalog.js.map +1 -0
- package/bundled/config/materialize-kubbisec-pi-resources.d.ts +19 -0
- package/bundled/config/materialize-kubbisec-pi-resources.d.ts.map +1 -0
- package/bundled/config/materialize-kubbisec-pi-resources.js +242 -0
- package/bundled/config/materialize-kubbisec-pi-resources.js.map +1 -0
- package/bundled/config/register-custom-llm-providers.d.ts +13 -0
- package/bundled/config/register-custom-llm-providers.d.ts.map +1 -0
- package/bundled/config/register-custom-llm-providers.js +21 -0
- package/bundled/config/register-custom-llm-providers.js.map +1 -0
- package/bundled/config/register-kubbisec-llm-provider.d.ts +14 -0
- package/bundled/config/register-kubbisec-llm-provider.d.ts.map +1 -0
- package/bundled/config/register-kubbisec-llm-provider.js +53 -0
- package/bundled/config/register-kubbisec-llm-provider.js.map +1 -0
- package/bundled/config/resolve-agents-context-file.d.ts +4 -0
- package/bundled/config/resolve-agents-context-file.d.ts.map +1 -0
- package/bundled/config/resolve-agents-context-file.js +47 -0
- package/bundled/config/resolve-agents-context-file.js.map +1 -0
- package/bundled/config/resource-budget.d.ts +17 -0
- package/bundled/config/resource-budget.d.ts.map +1 -0
- package/bundled/config/resource-budget.js +35 -0
- package/bundled/config/resource-budget.js.map +1 -0
- package/bundled/config/sync-kubbisec-pi-models.d.ts +12 -0
- package/bundled/config/sync-kubbisec-pi-models.d.ts.map +1 -0
- package/bundled/config/sync-kubbisec-pi-models.js +81 -0
- package/bundled/config/sync-kubbisec-pi-models.js.map +1 -0
- package/bundled/copy/cli-reference-index.d.ts +2 -0
- package/bundled/copy/cli-reference-index.d.ts.map +1 -0
- package/bundled/copy/cli-reference-index.js +2 -0
- package/bundled/copy/cli-reference-index.js.map +1 -0
- package/bundled/copy/kubbisec-shell-copy.d.ts +21 -0
- package/bundled/copy/kubbisec-shell-copy.d.ts.map +1 -0
- package/bundled/copy/kubbisec-shell-copy.js +21 -0
- package/bundled/copy/kubbisec-shell-copy.js.map +1 -0
- package/bundled/edit-format.md +17 -0
- package/bundled/extensions/cli-local-shared.d.ts +56 -0
- package/bundled/extensions/cli-local-shared.d.ts.map +1 -0
- package/bundled/extensions/cli-local-shared.js +159 -0
- package/bundled/extensions/cli-local-shared.js.map +1 -0
- package/bundled/extensions/kubbisec-aspm-local.extension.d.ts +18 -0
- package/bundled/extensions/kubbisec-aspm-local.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-aspm-local.extension.js +109 -0
- package/bundled/extensions/kubbisec-aspm-local.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-brand.extension.d.ts +3 -0
- package/bundled/extensions/kubbisec-brand.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-brand.extension.js +32 -0
- package/bundled/extensions/kubbisec-brand.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-byok-provider.extension.d.ts +6 -0
- package/bundled/extensions/kubbisec-byok-provider.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-byok-provider.extension.js +5 -0
- package/bundled/extensions/kubbisec-byok-provider.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-clarify.extension.d.ts +50 -0
- package/bundled/extensions/kubbisec-clarify.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-clarify.extension.js +363 -0
- package/bundled/extensions/kubbisec-clarify.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-exit.extension.d.ts +6 -0
- package/bundled/extensions/kubbisec-exit.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-exit.extension.js +41 -0
- package/bundled/extensions/kubbisec-exit.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-extended-context.extension.d.ts +6 -0
- package/bundled/extensions/kubbisec-extended-context.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-extended-context.extension.js +50 -0
- package/bundled/extensions/kubbisec-extended-context.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-footer.extension.d.ts +19 -0
- package/bundled/extensions/kubbisec-footer.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-footer.extension.js +255 -0
- package/bundled/extensions/kubbisec-footer.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-github-local.extension.d.ts +23 -0
- package/bundled/extensions/kubbisec-github-local.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-github-local.extension.js +470 -0
- package/bundled/extensions/kubbisec-github-local.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-llm-config.extension.d.ts +3 -0
- package/bundled/extensions/kubbisec-llm-config.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-llm-config.extension.js +211 -0
- package/bundled/extensions/kubbisec-llm-config.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-memory.extension.d.ts +12 -0
- package/bundled/extensions/kubbisec-memory.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-memory.extension.js +107 -0
- package/bundled/extensions/kubbisec-memory.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-naus-local.extension.d.ts +18 -0
- package/bundled/extensions/kubbisec-naus-local.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-naus-local.extension.js +112 -0
- package/bundled/extensions/kubbisec-naus-local.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-platform-tools.extension.d.ts +30 -0
- package/bundled/extensions/kubbisec-platform-tools.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-platform-tools.extension.js +185 -0
- package/bundled/extensions/kubbisec-platform-tools.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-runtime-status.extension.d.ts +13 -0
- package/bundled/extensions/kubbisec-runtime-status.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-runtime-status.extension.js +18 -0
- package/bundled/extensions/kubbisec-runtime-status.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-scope.extension.d.ts +14 -0
- package/bundled/extensions/kubbisec-scope.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-scope.extension.js +18 -0
- package/bundled/extensions/kubbisec-scope.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-skill-mentions.extension.d.ts +25 -0
- package/bundled/extensions/kubbisec-skill-mentions.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-skill-mentions.extension.js +71 -0
- package/bundled/extensions/kubbisec-skill-mentions.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-skill-telemetry.extension.d.ts +6 -0
- package/bundled/extensions/kubbisec-skill-telemetry.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-skill-telemetry.extension.js +85 -0
- package/bundled/extensions/kubbisec-skill-telemetry.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-theme-lock.extension.d.ts +6 -0
- package/bundled/extensions/kubbisec-theme-lock.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-theme-lock.extension.js +43 -0
- package/bundled/extensions/kubbisec-theme-lock.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-ui.extension.d.ts +6 -0
- package/bundled/extensions/kubbisec-ui.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-ui.extension.js +143 -0
- package/bundled/extensions/kubbisec-ui.extension.js.map +1 -0
- package/bundled/extensions/kubbisec-workflow.extension.d.ts +38 -0
- package/bundled/extensions/kubbisec-workflow.extension.d.ts.map +1 -0
- package/bundled/extensions/kubbisec-workflow.extension.js +179 -0
- package/bundled/extensions/kubbisec-workflow.extension.js.map +1 -0
- package/bundled/gate-system.md +27 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/client.d.ts +20 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/client.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/client.js +121 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/client.js.map +1 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/feature-flags.d.ts +15 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/feature-flags.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/feature-flags.js +34 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/feature-flags.js.map +1 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/index.d.ts +12 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/index.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/index.js +85 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/index.js.map +1 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/sanitizer.d.ts +4 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/sanitizer.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/sanitizer.js +89 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/sanitizer.js.map +1 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/storage-paths.d.ts +2 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/storage-paths.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/storage-paths.js +11 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/storage-paths.js.map +1 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/types.d.ts +24 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/types.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/types.js +9 -0
- package/bundled/node_modules/@kubbisec/chat-memory/dist/types.js.map +1 -0
- package/bundled/node_modules/@kubbisec/chat-memory/package.json +32 -0
- package/bundled/node_modules/@kubbisec/home/dist/api-url.d.ts +8 -0
- package/bundled/node_modules/@kubbisec/home/dist/api-url.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/home/dist/api-url.js +25 -0
- package/bundled/node_modules/@kubbisec/home/dist/api-url.js.map +1 -0
- package/bundled/node_modules/@kubbisec/home/dist/cli-auth.types.d.ts +17 -0
- package/bundled/node_modules/@kubbisec/home/dist/cli-auth.types.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/home/dist/cli-auth.types.js +35 -0
- package/bundled/node_modules/@kubbisec/home/dist/cli-auth.types.js.map +1 -0
- package/bundled/node_modules/@kubbisec/home/dist/index.d.ts +5 -0
- package/bundled/node_modules/@kubbisec/home/dist/index.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/home/dist/index.js +5 -0
- package/bundled/node_modules/@kubbisec/home/dist/index.js.map +1 -0
- package/bundled/node_modules/@kubbisec/home/dist/migrate.d.ts +10 -0
- package/bundled/node_modules/@kubbisec/home/dist/migrate.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/home/dist/migrate.js +107 -0
- package/bundled/node_modules/@kubbisec/home/dist/migrate.js.map +1 -0
- package/bundled/node_modules/@kubbisec/home/dist/paths.d.ts +22 -0
- package/bundled/node_modules/@kubbisec/home/dist/paths.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/home/dist/paths.js +69 -0
- package/bundled/node_modules/@kubbisec/home/dist/paths.js.map +1 -0
- package/bundled/node_modules/@kubbisec/home/package.json +26 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/evaluation-dataset-50.d.ts +311 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/evaluation-dataset-50.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/evaluation-dataset-50.js +357 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/evaluation-dataset-50.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/index.d.ts +3 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/index.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/index.js +19 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/index.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/build-assistant-system-prompt.d.ts +7 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/build-assistant-system-prompt.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/build-assistant-system-prompt.js +30 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/build-assistant-system-prompt.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/build-chat-system-prompt.d.ts +7 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/build-chat-system-prompt.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/build-chat-system-prompt.js +14 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/build-chat-system-prompt.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/cli-reference-index.d.ts +6 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/cli-reference-index.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/cli-reference-index.js +65 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/cli-reference-index.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/format-mcp-knowledge.d.ts +8 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/format-mcp-knowledge.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/format-mcp-knowledge.js +29 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/format-mcp-knowledge.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/index.d.ts +7 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/index.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/index.js +16 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/index.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/mcp-instructions.d.ts +2 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/mcp-instructions.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/mcp-instructions.js +35 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/mcp-instructions.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/mental-map.d.ts +6 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/mental-map.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/mental-map.js +32 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ai/product-knowledge/mental-map.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/api-key/api-key-scope-groups.d.ts +12 -0
- package/bundled/node_modules/@kubbisec/shared/dist/api-key/api-key-scope-groups.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/api-key/api-key-scope-groups.js +93 -0
- package/bundled/node_modules/@kubbisec/shared/dist/api-key/api-key-scope-groups.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/api-key/api-key-scope-presets.d.ts +13 -0
- package/bundled/node_modules/@kubbisec/shared/dist/api-key/api-key-scope-presets.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/api-key/api-key-scope-presets.js +79 -0
- package/bundled/node_modules/@kubbisec/shared/dist/api-key/api-key-scope-presets.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/api-key/index.d.ts +4 -0
- package/bundled/node_modules/@kubbisec/shared/dist/api-key/index.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/api-key/index.js +20 -0
- package/bundled/node_modules/@kubbisec/shared/dist/api-key/index.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/api-key/migrate-api-key-metadata.d.ts +20 -0
- package/bundled/node_modules/@kubbisec/shared/dist/api-key/migrate-api-key-metadata.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/api-key/migrate-api-key-metadata.js +78 -0
- package/bundled/node_modules/@kubbisec/shared/dist/api-key/migrate-api-key-metadata.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/assistant/assistant-session-key.d.ts +20 -0
- package/bundled/node_modules/@kubbisec/shared/dist/assistant/assistant-session-key.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/assistant/assistant-session-key.js +33 -0
- package/bundled/node_modules/@kubbisec/shared/dist/assistant/assistant-session-key.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/assistant/assistant-thread.d.ts +19 -0
- package/bundled/node_modules/@kubbisec/shared/dist/assistant/assistant-thread.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/assistant/assistant-thread.js +126 -0
- package/bundled/node_modules/@kubbisec/shared/dist/assistant/assistant-thread.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/assistant/index.d.ts +3 -0
- package/bundled/node_modules/@kubbisec/shared/dist/assistant/index.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/assistant/index.js +19 -0
- package/bundled/node_modules/@kubbisec/shared/dist/assistant/index.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/billing/index.d.ts +2 -0
- package/bundled/node_modules/@kubbisec/shared/dist/billing/index.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/billing/index.js +18 -0
- package/bundled/node_modules/@kubbisec/shared/dist/billing/index.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/billing/plan-limits.d.ts +17 -0
- package/bundled/node_modules/@kubbisec/shared/dist/billing/plan-limits.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/billing/plan-limits.js +30 -0
- package/bundled/node_modules/@kubbisec/shared/dist/billing/plan-limits.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ci/ci-job-dependencies.d.ts +42 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ci/ci-job-dependencies.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ci/ci-job-dependencies.js +147 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ci/ci-job-dependencies.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ci/git-checkout-log-policy.d.ts +12 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ci/git-checkout-log-policy.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ci/git-checkout-log-policy.js +70 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ci/git-checkout-log-policy.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ci/index.d.ts +4 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ci/index.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ci/index.js +20 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ci/index.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ci/kubbisec-ci-execution-env.d.ts +16 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ci/kubbisec-ci-execution-env.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ci/kubbisec-ci-execution-env.js +45 -0
- package/bundled/node_modules/@kubbisec/shared/dist/ci/kubbisec-ci-execution-env.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/cli-user-error.d.ts +18 -0
- package/bundled/node_modules/@kubbisec/shared/dist/cli-user-error.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/cli-user-error.js +92 -0
- package/bundled/node_modules/@kubbisec/shared/dist/cli-user-error.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/bulk-import-bitbucket-projects.dto.d.ts +15 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/bulk-import-bitbucket-projects.dto.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/bulk-import-bitbucket-projects.dto.js +75 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/bulk-import-bitbucket-projects.dto.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/bulk-import-github-projects.dto.d.ts +25 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/bulk-import-github-projects.dto.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/bulk-import-github-projects.dto.js +85 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/bulk-import-github-projects.dto.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-bundle-report.dto.d.ts +17 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-bundle-report.dto.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-bundle-report.dto.js +98 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-bundle-report.dto.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-coverage-report.dto.d.ts +32 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-coverage-report.dto.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-coverage-report.dto.js +209 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-coverage-report.dto.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-project.dto.d.ts +65 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-project.dto.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-project.dto.js +354 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-project.dto.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-report.dto.d.ts +27 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-report.dto.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-report.dto.js +145 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-report.dto.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-scan-target.dto.d.ts +8 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-scan-target.dto.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-scan-target.dto.js +51 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-scan-target.dto.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-vulnerability.dto.d.ts +34 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-vulnerability.dto.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-vulnerability.dto.js +189 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/create-vulnerability.dto.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/index.d.ts +17 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/index.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/index.js +51 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/index.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/metrics.dto.d.ts +203 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/metrics.dto.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/metrics.dto.js +42 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/metrics.dto.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/record-gate-result.dto.d.ts +6 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/record-gate-result.dto.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/record-gate-result.dto.js +31 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/record-gate-result.dto.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-coverage-gate.dto.d.ts +7 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-coverage-gate.dto.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-coverage-gate.dto.js +47 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-coverage-gate.dto.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-performance-gate.dto.d.ts +6 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-performance-gate.dto.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-performance-gate.dto.js +36 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-performance-gate.dto.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-project.dto.d.ts +9 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-project.dto.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-project.dto.js +52 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-project.dto.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-security-gate.dto.d.ts +9 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-security-gate.dto.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-security-gate.dto.js +58 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-security-gate.dto.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-vulnerability.dto.d.ts +6 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-vulnerability.dto.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-vulnerability.dto.js +30 -0
- package/bundled/node_modules/@kubbisec/shared/dist/dto/update-vulnerability.dto.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/enums.d.ts +88 -0
- package/bundled/node_modules/@kubbisec/shared/dist/enums.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/enums.js +136 -0
- package/bundled/node_modules/@kubbisec/shared/dist/enums.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/github/kubbisec-github-label.d.ts +6 -0
- package/bundled/node_modules/@kubbisec/shared/dist/github/kubbisec-github-label.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/github/kubbisec-github-label.js +9 -0
- package/bundled/node_modules/@kubbisec/shared/dist/github/kubbisec-github-label.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/index.d.ts +23 -0
- package/bundled/node_modules/@kubbisec/shared/dist/index.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/index.js +39 -0
- package/bundled/node_modules/@kubbisec/shared/dist/index.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/mcp/constants.d.ts +22 -0
- package/bundled/node_modules/@kubbisec/shared/dist/mcp/constants.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/mcp/constants.js +52 -0
- package/bundled/node_modules/@kubbisec/shared/dist/mcp/constants.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/mcp/oauth-metadata.d.ts +37 -0
- package/bundled/node_modules/@kubbisec/shared/dist/mcp/oauth-metadata.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/mcp/oauth-metadata.js +51 -0
- package/bundled/node_modules/@kubbisec/shared/dist/mcp/oauth-metadata.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/ai-docs-bundle.loader.d.ts +6 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/ai-docs-bundle.loader.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/ai-docs-bundle.loader.js +68 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/ai-docs-bundle.loader.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/aspm-docs-bundle.loader.d.ts +8 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/aspm-docs-bundle.loader.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/aspm-docs-bundle.loader.js +115 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/aspm-docs-bundle.loader.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/doc-bundle-utils.d.ts +12 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/doc-bundle-utils.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/doc-bundle-utils.js +86 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/doc-bundle-utils.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/index.d.ts +8 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/index.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/index.js +33 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/index.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/mcp-tools-catalog.d.ts +4 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/mcp-tools-catalog.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/mcp-tools-catalog.js +23 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/mcp-tools-catalog.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/monorepo-root.d.ts +4 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/monorepo-root.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/monorepo-root.js +19 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/monorepo-root.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/naus-pipeline-docs-bundle.loader.d.ts +11 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/naus-pipeline-docs-bundle.loader.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/naus-pipeline-docs-bundle.loader.js +148 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/naus-pipeline-docs-bundle.loader.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/naus-schema-overview.d.ts +2 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/naus-schema-overview.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/naus-schema-overview.js +36 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/naus-schema-overview.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/security-scanner-playbooks.d.ts +49 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/security-scanner-playbooks.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/security-scanner-playbooks.js +600 -0
- package/bundled/node_modules/@kubbisec/shared/dist/product-docs/security-scanner-playbooks.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/project-scanner-summary.d.ts +24 -0
- package/bundled/node_modules/@kubbisec/shared/dist/project-scanner-summary.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/project-scanner-summary.js +64 -0
- package/bundled/node_modules/@kubbisec/shared/dist/project-scanner-summary.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/better-auth-org-roles.d.ts +23 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/better-auth-org-roles.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/better-auth-org-roles.js +53 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/better-auth-org-roles.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/index.d.ts +8 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/index.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/index.js +24 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/index.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/kubbisec-permission-descriptions.d.ts +9 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/kubbisec-permission-descriptions.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/kubbisec-permission-descriptions.js +91 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/kubbisec-permission-descriptions.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/kubbisec-permissions.d.ts +12 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/kubbisec-permissions.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/kubbisec-permissions.js +86 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/kubbisec-permissions.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/member-quota.d.ts +8 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/member-quota.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/member-quota.js +19 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/member-quota.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/platform-staff.d.ts +16 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/platform-staff.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/platform-staff.js +61 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/platform-staff.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/resolve-org-permissions.d.ts +10 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/resolve-org-permissions.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/resolve-org-permissions.js +200 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/resolve-org-permissions.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/resolve-platform-permissions.d.ts +7 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/resolve-platform-permissions.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/resolve-platform-permissions.js +23 -0
- package/bundled/node_modules/@kubbisec/shared/dist/rbac/resolve-platform-permissions.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/redaction.d.ts +14 -0
- package/bundled/node_modules/@kubbisec/shared/dist/redaction.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/redaction.js +251 -0
- package/bundled/node_modules/@kubbisec/shared/dist/redaction.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/aspm-gate-rules.d.ts +19 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/aspm-gate-rules.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/aspm-gate-rules.js +61 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/aspm-gate-rules.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/build-aspm-security-matrix-pipeline-yaml.d.ts +3 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/build-aspm-security-matrix-pipeline-yaml.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/build-aspm-security-matrix-pipeline-yaml.js +54 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/build-aspm-security-matrix-pipeline-yaml.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/build-github-security-workflow-yaml.d.ts +4 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/build-github-security-workflow-yaml.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/build-github-security-workflow-yaml.js +72 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/build-github-security-workflow-yaml.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/github-workflow-action-pins.d.ts +27 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/github-workflow-action-pins.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/github-workflow-action-pins.js +30 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/github-workflow-action-pins.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/github-workflow-tool-jobs.d.ts +7 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/github-workflow-tool-jobs.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/github-workflow-tool-jobs.js +184 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/github-workflow-tool-jobs.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/index.d.ts +7 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/index.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/index.js +23 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/index.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/security-tool-catalog.d.ts +5 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/security-tool-catalog.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/security-tool-catalog.js +74 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/security-tool-catalog.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/security-tool.types.d.ts +43 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/security-tool.types.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/security-tool.types.js +22 -0
- package/bundled/node_modules/@kubbisec/shared/dist/security/security-tool.types.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/severity-map.d.ts +8 -0
- package/bundled/node_modules/@kubbisec/shared/dist/severity-map.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/severity-map.js +47 -0
- package/bundled/node_modules/@kubbisec/shared/dist/severity-map.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/shared-project/constants.d.ts +4 -0
- package/bundled/node_modules/@kubbisec/shared/dist/shared-project/constants.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/shared-project/constants.js +10 -0
- package/bundled/node_modules/@kubbisec/shared/dist/shared-project/constants.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/shared-project/index.d.ts +4 -0
- package/bundled/node_modules/@kubbisec/shared/dist/shared-project/index.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/shared-project/index.js +20 -0
- package/bundled/node_modules/@kubbisec/shared/dist/shared-project/index.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/shared-project/redact-log-lines.d.ts +2 -0
- package/bundled/node_modules/@kubbisec/shared/dist/shared-project/redact-log-lines.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/shared-project/redact-log-lines.js +9 -0
- package/bundled/node_modules/@kubbisec/shared/dist/shared-project/redact-log-lines.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/shared-project/share-prefix.d.ts +3 -0
- package/bundled/node_modules/@kubbisec/shared/dist/shared-project/share-prefix.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/shared-project/share-prefix.js +18 -0
- package/bundled/node_modules/@kubbisec/shared/dist/shared-project/share-prefix.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/sonar-safe-string.d.ts +26 -0
- package/bundled/node_modules/@kubbisec/shared/dist/sonar-safe-string.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/sonar-safe-string.js +202 -0
- package/bundled/node_modules/@kubbisec/shared/dist/sonar-safe-string.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/sort-findings.d.ts +16 -0
- package/bundled/node_modules/@kubbisec/shared/dist/sort-findings.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/sort-findings.js +67 -0
- package/bundled/node_modules/@kubbisec/shared/dist/sort-findings.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/trusted-path.d.ts +7 -0
- package/bundled/node_modules/@kubbisec/shared/dist/trusted-path.d.ts.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/dist/trusted-path.js +30 -0
- package/bundled/node_modules/@kubbisec/shared/dist/trusted-path.js.map +1 -0
- package/bundled/node_modules/@kubbisec/shared/package.json +77 -0
- package/bundled/reflect-system.md +31 -0
- package/bundled/resolve-bundled-dist-root.js +166 -0
- package/bundled/resolve-bundled-dist-root.js.map +1 -0
- package/bundled/skills/aspm-platform/SKILL.md +95 -0
- package/bundled/skills/at-path-mentions.d.ts +7 -0
- package/bundled/skills/at-path-mentions.d.ts.map +1 -0
- package/bundled/skills/at-path-mentions.js +184 -0
- package/bundled/skills/at-path-mentions.js.map +1 -0
- package/bundled/skills/at-path-mentions.test.ts +64 -0
- package/bundled/skills/at-path-mentions.ts +209 -0
- package/bundled/skills/chat-mention-render.d.ts +7 -0
- package/bundled/skills/chat-mention-render.d.ts.map +1 -0
- package/bundled/skills/chat-mention-render.js +160 -0
- package/bundled/skills/chat-mention-render.js.map +1 -0
- package/bundled/skills/chat-mention-render.test.ts +70 -0
- package/bundled/skills/chat-mention-render.ts +192 -0
- package/bundled/skills/chat-mentions.d.ts +28 -0
- package/bundled/skills/chat-mentions.d.ts.map +1 -0
- package/bundled/skills/chat-mentions.js +108 -0
- package/bundled/skills/chat-mentions.js.map +1 -0
- package/bundled/skills/chat-mentions.test.ts +39 -0
- package/bundled/skills/chat-mentions.ts +133 -0
- package/bundled/skills/github-local/SKILL.md +16 -0
- package/bundled/skills/kubbisec-resource-router/SKILL.md +3 -0
- package/bundled/skills/list-bundled-skills.d.ts +7 -0
- package/bundled/skills/list-bundled-skills.d.ts.map +1 -0
- package/bundled/skills/list-bundled-skills.js +44 -0
- package/bundled/skills/list-bundled-skills.js.map +1 -0
- package/bundled/skills/list-bundled-skills.ts +49 -0
- package/bundled/skills/naus-pipelines/SKILL.md +127 -0
- package/bundled/skills/remediation/SKILL.md +12 -0
- package/bundled/skills/scanner-gitleaks/SKILL.md +10 -0
- package/bundled/skills/scanner-nmap/SKILL.md +10 -0
- package/bundled/skills/scanner-osv/SKILL.md +10 -0
- package/bundled/skills/scanner-semgrep/SKILL.md +10 -0
- package/bundled/skills/scanner-skipfish/SKILL.md +10 -0
- package/bundled/skills/scanner-sonar/SKILL.md +10 -0
- package/bundled/skills/scanner-syft/SKILL.md +10 -0
- package/bundled/skills/scanner-trivy/SKILL.md +10 -0
- package/bundled/skills/sec-brainstorm/SKILL.md +74 -0
- package/bundled/skills/sec-clarify/SKILL.md +53 -0
- package/bundled/skills/sec-debug/SKILL.md +94 -0
- package/bundled/skills/sec-plan/SKILL.md +101 -0
- package/bundled/skills/sec-review/SKILL.md +110 -0
- package/bundled/skills/sec-review/code-reviewer-sec.md +176 -0
- package/bundled/skills/sec-using-skills/SKILL.md +81 -0
- package/bundled/skills/sec-verify/SKILL.md +77 -0
- package/bundled/skills/skill-mention.d.ts +3 -0
- package/bundled/skills/skill-mention.d.ts.map +1 -0
- package/bundled/skills/skill-mention.js +3 -0
- package/bundled/skills/skill-mention.js.map +1 -0
- package/bundled/skills/skill-mention.test.ts +46 -0
- package/bundled/skills/skill-mention.ts +10 -0
- package/bundled/theme/clear-terminal.d.ts +3 -0
- package/bundled/theme/clear-terminal.d.ts.map +1 -0
- package/bundled/theme/clear-terminal.js +7 -0
- package/bundled/theme/clear-terminal.js.map +1 -0
- package/bundled/theme/footer-render-hook.d.ts +3 -0
- package/bundled/theme/footer-render-hook.d.ts.map +1 -0
- package/bundled/theme/footer-render-hook.js +8 -0
- package/bundled/theme/footer-render-hook.js.map +1 -0
- package/bundled/theme/kubbisec-brand-fg.d.ts +4 -0
- package/bundled/theme/kubbisec-brand-fg.d.ts.map +1 -0
- package/bundled/theme/kubbisec-brand-fg.js +7 -0
- package/bundled/theme/kubbisec-brand-fg.js.map +1 -0
- package/bundled/theme/kubbisec-menu-themes.d.ts +16 -0
- package/bundled/theme/kubbisec-menu-themes.d.ts.map +1 -0
- package/bundled/theme/kubbisec-menu-themes.js +47 -0
- package/bundled/theme/kubbisec-menu-themes.js.map +1 -0
- package/bundled/theme/kubbisec-theme-name.d.ts +2 -0
- package/bundled/theme/kubbisec-theme-name.d.ts.map +1 -0
- package/bundled/theme/kubbisec-theme-name.js +2 -0
- package/bundled/theme/kubbisec-theme-name.js.map +1 -0
- package/bundled/theme/kubbisec.json +93 -0
- package/bundled/theme/patch-pi-settings-theme.runtime.d.ts +3 -0
- package/bundled/theme/patch-pi-settings-theme.runtime.d.ts.map +1 -0
- package/bundled/theme/patch-pi-settings-theme.runtime.js +16 -0
- package/bundled/theme/patch-pi-settings-theme.runtime.js.map +1 -0
- package/bundled/theme/render-compact-header.d.ts +21 -0
- package/bundled/theme/render-compact-header.d.ts.map +1 -0
- package/bundled/theme/render-compact-header.js +197 -0
- package/bundled/theme/render-compact-header.js.map +1 -0
- package/bundled/workflow/session-workflow-mode.d.ts +10 -0
- package/bundled/workflow/session-workflow-mode.d.ts.map +1 -0
- package/bundled/workflow/session-workflow-mode.js +51 -0
- package/bundled/workflow/session-workflow-mode.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** Scanners surfaced on project detail scanner tabs. */
|
|
2
|
+
export declare const PROJECT_SCANNER_SUMMARY_SOURCES: readonly ["TRIVY", "SEMGREP", "SONAR"];
|
|
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];
|
|
7
|
+
export type ProjectScannerSourceSummary = {
|
|
8
|
+
totalActive: number;
|
|
9
|
+
criticalCount: number;
|
|
10
|
+
highCount: number;
|
|
11
|
+
mediumCount: number;
|
|
12
|
+
lowCount: number;
|
|
13
|
+
infoCount: number;
|
|
14
|
+
latestReportId: string | null;
|
|
15
|
+
latestReportImportedAt: string | null;
|
|
16
|
+
};
|
|
17
|
+
export type ProjectScannerSummaryResponse = {
|
|
18
|
+
summaries: Partial<Record<SummaryScanSource, ProjectScannerSourceSummary>>;
|
|
19
|
+
};
|
|
20
|
+
export declare function isScanSource(value: string): value is SummaryScanSource;
|
|
21
|
+
export declare function parseProjectScannerSummarySources(raw: string | undefined | null): ProjectScannerSummarySource[];
|
|
22
|
+
export declare function emptyProjectScannerSourceSummary(): ProjectScannerSourceSummary;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=project-scanner-summary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SCAN_SOURCE_VALUES = exports.PROJECT_SCANNER_SUMMARY_SOURCES = void 0;
|
|
4
|
+
exports.isScanSource = isScanSource;
|
|
5
|
+
exports.parseProjectScannerSummarySources = parseProjectScannerSummarySources;
|
|
6
|
+
exports.emptyProjectScannerSourceSummary = emptyProjectScannerSourceSummary;
|
|
7
|
+
/** Scanners surfaced on project detail scanner tabs. */
|
|
8
|
+
exports.PROJECT_SCANNER_SUMMARY_SOURCES = ["TRIVY", "SEMGREP", "SONAR"];
|
|
9
|
+
/** Scan source literals (kept local so web `erasableSyntaxOnly` does not pull in shared enums). */
|
|
10
|
+
exports.SCAN_SOURCE_VALUES = [
|
|
11
|
+
"TRIVY",
|
|
12
|
+
"SONAR",
|
|
13
|
+
"SEMGREP",
|
|
14
|
+
"NMAP",
|
|
15
|
+
"SKIPFISH",
|
|
16
|
+
"OSV",
|
|
17
|
+
"GITLEAKS",
|
|
18
|
+
"SYFT",
|
|
19
|
+
"VULNDB",
|
|
20
|
+
"KUBBISEC_AI",
|
|
21
|
+
];
|
|
22
|
+
const SCAN_SOURCE_SET = new Set(exports.SCAN_SOURCE_VALUES);
|
|
23
|
+
function isScanSource(value) {
|
|
24
|
+
return SCAN_SOURCE_SET.has(value);
|
|
25
|
+
}
|
|
26
|
+
function parseProjectScannerSummarySources(raw) {
|
|
27
|
+
if (!raw?.trim()) {
|
|
28
|
+
return [...exports.PROJECT_SCANNER_SUMMARY_SOURCES];
|
|
29
|
+
}
|
|
30
|
+
const parsed = [];
|
|
31
|
+
const seen = new Set();
|
|
32
|
+
for (const part of raw.split(",")) {
|
|
33
|
+
const token = part.trim().toUpperCase();
|
|
34
|
+
if (!token)
|
|
35
|
+
continue;
|
|
36
|
+
if (!isScanSource(token)) {
|
|
37
|
+
throw new Error(`Invalid scanner source: ${part.trim()}`);
|
|
38
|
+
}
|
|
39
|
+
if (!exports.PROJECT_SCANNER_SUMMARY_SOURCES.includes(token)) {
|
|
40
|
+
throw new Error(`Unsupported scanner source for summary: ${part.trim()}`);
|
|
41
|
+
}
|
|
42
|
+
if (seen.has(token))
|
|
43
|
+
continue;
|
|
44
|
+
seen.add(token);
|
|
45
|
+
parsed.push(token);
|
|
46
|
+
}
|
|
47
|
+
if (parsed.length === 0) {
|
|
48
|
+
return [...exports.PROJECT_SCANNER_SUMMARY_SOURCES];
|
|
49
|
+
}
|
|
50
|
+
return parsed;
|
|
51
|
+
}
|
|
52
|
+
function emptyProjectScannerSourceSummary() {
|
|
53
|
+
return {
|
|
54
|
+
totalActive: 0,
|
|
55
|
+
criticalCount: 0,
|
|
56
|
+
highCount: 0,
|
|
57
|
+
mediumCount: 0,
|
|
58
|
+
lowCount: 0,
|
|
59
|
+
infoCount: 0,
|
|
60
|
+
latestReportId: null,
|
|
61
|
+
latestReportImportedAt: null,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=project-scanner-summary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-scanner-summary.js","sourceRoot":"","sources":["../src/project-scanner-summary.ts"],"names":[],"mappings":";;;AAsCA,oCAEC;AAED,8EAyBC;AAED,4EAWC;AAhFD,wDAAwD;AAC3C,QAAA,+BAA+B,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAU,CAAC;AAItF,mGAAmG;AACtF,QAAA,kBAAkB,GAAG;IAChC,OAAO;IACP,OAAO;IACP,SAAS;IACT,MAAM;IACN,UAAU;IACV,KAAK;IACL,UAAU;IACV,MAAM;IACN,QAAQ;IACR,aAAa;CACL,CAAC;AAmBX,MAAM,eAAe,GAAG,IAAI,GAAG,CAAS,0BAAkB,CAAC,CAAC;AAE5D,SAAgB,YAAY,CAAC,KAAa;IACxC,OAAO,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACpC,CAAC;AAED,SAAgB,iCAAiC,CAC/C,GAA8B;IAE9B,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,GAAG,uCAA+B,CAAC,CAAC;IAC9C,CAAC;IACD,MAAM,MAAM,GAAkC,EAAE,CAAC;IACjD,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,KAAK,MAAM,IAAI,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;QAClC,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QACxC,IAAI,CAAC,KAAK;YAAE,SAAS;QACrB,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,2BAA2B,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC5D,CAAC;QACD,IAAI,CAAC,uCAA+B,CAAC,QAAQ,CAAC,KAAoC,CAAC,EAAE,CAAC;YACpF,MAAM,IAAI,KAAK,CAAC,2CAA2C,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC5E,CAAC;QACD,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;YAAE,SAAS;QAC9B,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAChB,MAAM,CAAC,IAAI,CAAC,KAAoC,CAAC,CAAC;IACpD,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,CAAC,GAAG,uCAA+B,CAAC,CAAC;IAC9C,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAgB,gCAAgC;IAC9C,OAAO;QACL,WAAW,EAAE,CAAC;QACd,aAAa,EAAE,CAAC;QAChB,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,CAAC;QACd,QAAQ,EAAE,CAAC;QACX,SAAS,EAAE,CAAC;QACZ,cAAc,EAAE,IAAI;QACpB,sBAAsB,EAAE,IAAI;KAC7B,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { OrgRoleSlug } from "./kubbisec-permissions";
|
|
2
|
+
/** Stored on `member.role` / invitation; must match Better Auth `organization({ roles })` keys. */
|
|
3
|
+
export declare const BETTER_AUTH_ORG_ROLE_BY_SLUG: {
|
|
4
|
+
readonly org_administrator: "org_administrator";
|
|
5
|
+
readonly org_finance: "org_finance";
|
|
6
|
+
readonly org_security_engineer: "org_security_engineer";
|
|
7
|
+
readonly org_delivery_engineer: "org_delivery_engineer";
|
|
8
|
+
readonly org_observer: "org_observer";
|
|
9
|
+
};
|
|
10
|
+
export declare const ORG_INVITE_ROLE_OPTIONS: {
|
|
11
|
+
value: OrgRoleSlug;
|
|
12
|
+
label: string;
|
|
13
|
+
}[];
|
|
14
|
+
/** All assignable org roles (invites exclude org_administrator by design). */
|
|
15
|
+
export declare const ORG_MEMBER_ROLE_OPTIONS: {
|
|
16
|
+
value: OrgRoleSlug;
|
|
17
|
+
label: string;
|
|
18
|
+
}[];
|
|
19
|
+
/** Maps legacy Better Auth roles and Kubbisec slugs stored in DB → canonical `OrgRoleSlug`. */
|
|
20
|
+
export declare function normalizeStoredOrgRole(raw: string | null | undefined): OrgRoleSlug;
|
|
21
|
+
/** Role string stored by Better Auth / Prisma `member.role` (single slug). */
|
|
22
|
+
export declare function toBetterAuthOrgRole(slug: OrgRoleSlug): OrgRoleSlug;
|
|
23
|
+
//# sourceMappingURL=better-auth-org-roles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"better-auth-org-roles.d.ts","sourceRoot":"","sources":["../../src/rbac/better-auth-org-roles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,mGAAmG;AACnG,eAAO,MAAM,4BAA4B;;;;;;CAMY,CAAC;AAEtD,eAAO,MAAM,uBAAuB,EAAE;IAAE,KAAK,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAK1E,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,uBAAuB,EAAE;IAAE,KAAK,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAG1E,CAAC;AAEF,+FAA+F;AAC/F,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,WAAW,CAyBlF;AAED,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAElE"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ORG_MEMBER_ROLE_OPTIONS = exports.ORG_INVITE_ROLE_OPTIONS = exports.BETTER_AUTH_ORG_ROLE_BY_SLUG = void 0;
|
|
4
|
+
exports.normalizeStoredOrgRole = normalizeStoredOrgRole;
|
|
5
|
+
exports.toBetterAuthOrgRole = toBetterAuthOrgRole;
|
|
6
|
+
/** Stored on `member.role` / invitation; must match Better Auth `organization({ roles })` keys. */
|
|
7
|
+
exports.BETTER_AUTH_ORG_ROLE_BY_SLUG = {
|
|
8
|
+
org_administrator: "org_administrator",
|
|
9
|
+
org_finance: "org_finance",
|
|
10
|
+
org_security_engineer: "org_security_engineer",
|
|
11
|
+
org_delivery_engineer: "org_delivery_engineer",
|
|
12
|
+
org_observer: "org_observer",
|
|
13
|
+
};
|
|
14
|
+
exports.ORG_INVITE_ROLE_OPTIONS = [
|
|
15
|
+
{ value: "org_finance", label: "Financeiro" },
|
|
16
|
+
{ value: "org_security_engineer", label: "AppSec / DevSecOps" },
|
|
17
|
+
{ value: "org_delivery_engineer", label: "DevOps / entrega" },
|
|
18
|
+
{ value: "org_observer", label: "Observador" },
|
|
19
|
+
];
|
|
20
|
+
/** All assignable org roles (invites exclude org_administrator by design). */
|
|
21
|
+
exports.ORG_MEMBER_ROLE_OPTIONS = [
|
|
22
|
+
{ value: "org_administrator", label: "Administrador da organização" },
|
|
23
|
+
...exports.ORG_INVITE_ROLE_OPTIONS,
|
|
24
|
+
];
|
|
25
|
+
/** Maps legacy Better Auth roles and Kubbisec slugs stored in DB → canonical `OrgRoleSlug`. */
|
|
26
|
+
function normalizeStoredOrgRole(raw) {
|
|
27
|
+
if (!raw)
|
|
28
|
+
return "org_observer";
|
|
29
|
+
const r = raw.trim();
|
|
30
|
+
if (r === "org_administrator" ||
|
|
31
|
+
r === "org_finance" ||
|
|
32
|
+
r === "org_security_engineer" ||
|
|
33
|
+
r === "org_delivery_engineer" ||
|
|
34
|
+
r === "org_observer") {
|
|
35
|
+
return r;
|
|
36
|
+
}
|
|
37
|
+
const lower = r.toLowerCase();
|
|
38
|
+
if (lower === "owner" ||
|
|
39
|
+
lower === "admin" ||
|
|
40
|
+
lower === "administrator" ||
|
|
41
|
+
lower === "org_admin") {
|
|
42
|
+
return "org_administrator";
|
|
43
|
+
}
|
|
44
|
+
if (lower === "member" || lower === "org_member") {
|
|
45
|
+
return "org_delivery_engineer";
|
|
46
|
+
}
|
|
47
|
+
return "org_observer";
|
|
48
|
+
}
|
|
49
|
+
/** Role string stored by Better Auth / Prisma `member.role` (single slug). */
|
|
50
|
+
function toBetterAuthOrgRole(slug) {
|
|
51
|
+
return exports.BETTER_AUTH_ORG_ROLE_BY_SLUG[slug];
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=better-auth-org-roles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"better-auth-org-roles.js","sourceRoot":"","sources":["../../src/rbac/better-auth-org-roles.ts"],"names":[],"mappings":";;;AAyBA,wDAyBC;AAGD,kDAEC;AArDD,mGAAmG;AACtF,QAAA,4BAA4B,GAAG;IAC1C,iBAAiB,EAAE,mBAAmB;IACtC,WAAW,EAAE,aAAa;IAC1B,qBAAqB,EAAE,uBAAuB;IAC9C,qBAAqB,EAAE,uBAAuB;IAC9C,YAAY,EAAE,cAAc;CACuB,CAAC;AAEzC,QAAA,uBAAuB,GAA4C;IAC9E,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE;IAC7C,EAAE,KAAK,EAAE,uBAAuB,EAAE,KAAK,EAAE,oBAAoB,EAAE;IAC/D,EAAE,KAAK,EAAE,uBAAuB,EAAE,KAAK,EAAE,kBAAkB,EAAE;IAC7D,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,YAAY,EAAE;CAC/C,CAAC;AAEF,8EAA8E;AACjE,QAAA,uBAAuB,GAA4C;IAC9E,EAAE,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,8BAA8B,EAAE;IACrE,GAAG,+BAAuB;CAC3B,CAAC;AAEF,+FAA+F;AAC/F,SAAgB,sBAAsB,CAAC,GAA8B;IACnE,IAAI,CAAC,GAAG;QAAE,OAAO,cAAc,CAAC;IAChC,MAAM,CAAC,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;IACrB,IACE,CAAC,KAAK,mBAAmB;QACzB,CAAC,KAAK,aAAa;QACnB,CAAC,KAAK,uBAAuB;QAC7B,CAAC,KAAK,uBAAuB;QAC7B,CAAC,KAAK,cAAc,EACpB,CAAC;QACD,OAAO,CAAC,CAAC;IACX,CAAC;IACD,MAAM,KAAK,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;IAC9B,IACE,KAAK,KAAK,OAAO;QACjB,KAAK,KAAK,OAAO;QACjB,KAAK,KAAK,eAAe;QACzB,KAAK,KAAK,WAAW,EACrB,CAAC;QACD,OAAO,mBAAmB,CAAC;IAC7B,CAAC;IACD,IAAI,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,YAAY,EAAE,CAAC;QACjD,OAAO,uBAAuB,CAAC;IACjC,CAAC;IACD,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,8EAA8E;AAC9E,SAAgB,mBAAmB,CAAC,IAAiB;IACnD,OAAO,oCAA4B,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./better-auth-org-roles";
|
|
2
|
+
export * from "./kubbisec-permission-descriptions";
|
|
3
|
+
export * from "./kubbisec-permissions";
|
|
4
|
+
export * from "./member-quota";
|
|
5
|
+
export * from "./platform-staff";
|
|
6
|
+
export * from "./resolve-org-permissions";
|
|
7
|
+
export * from "./resolve-platform-permissions";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rbac/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,oCAAoC,CAAC;AACnD,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./better-auth-org-roles"), exports);
|
|
18
|
+
__exportStar(require("./kubbisec-permission-descriptions"), exports);
|
|
19
|
+
__exportStar(require("./kubbisec-permissions"), exports);
|
|
20
|
+
__exportStar(require("./member-quota"), exports);
|
|
21
|
+
__exportStar(require("./platform-staff"), exports);
|
|
22
|
+
__exportStar(require("./resolve-org-permissions"), exports);
|
|
23
|
+
__exportStar(require("./resolve-platform-permissions"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rbac/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,qEAAmD;AACnD,yDAAuC;AACvC,iDAA+B;AAC/B,mDAAiC;AACjC,4DAA0C;AAC1C,iEAA+C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type KubbisecPermission } from "./kubbisec-permissions";
|
|
2
|
+
/**
|
|
3
|
+
* Human-readable descriptions (pt-BR) — keep in sync with docs/core/rbac-catalog.md
|
|
4
|
+
*/
|
|
5
|
+
export declare const KUBBISEC_PERMISSION_DESCRIPTIONS: Record<KubbisecPermission, string>;
|
|
6
|
+
export declare function getKubbisecPermissionDescription(permission: KubbisecPermission): string;
|
|
7
|
+
/** Ensures every catalog permission has a pt-BR description at build/test time. */
|
|
8
|
+
export declare function assertKubbisecPermissionDescriptionsComplete(): void;
|
|
9
|
+
//# sourceMappingURL=kubbisec-permission-descriptions.d.ts.map
|
package/bundled/node_modules/@kubbisec/shared/dist/rbac/kubbisec-permission-descriptions.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kubbisec-permission-descriptions.d.ts","sourceRoot":"","sources":["../../src/rbac/kubbisec-permission-descriptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEvF;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAuF/E,CAAC;AAEF,wBAAgB,gCAAgC,CAAC,UAAU,EAAE,kBAAkB,GAAG,MAAM,CAEvF;AAED,mFAAmF;AACnF,wBAAgB,4CAA4C,IAAI,IAAI,CAOnE"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KUBBISEC_PERMISSION_DESCRIPTIONS = void 0;
|
|
4
|
+
exports.getKubbisecPermissionDescription = getKubbisecPermissionDescription;
|
|
5
|
+
exports.assertKubbisecPermissionDescriptionsComplete = assertKubbisecPermissionDescriptionsComplete;
|
|
6
|
+
const kubbisec_permissions_1 = require("./kubbisec-permissions");
|
|
7
|
+
/**
|
|
8
|
+
* Human-readable descriptions (pt-BR) — keep in sync with docs/core/rbac-catalog.md
|
|
9
|
+
*/
|
|
10
|
+
exports.KUBBISEC_PERMISSION_DESCRIPTIONS = {
|
|
11
|
+
"kbsc.org.profile.read": "Nome, slug e metadados não sensíveis da organização.",
|
|
12
|
+
"kbsc.org.profile.update": "Alterar nome, branding e metadados da organização.",
|
|
13
|
+
"kbsc.org.settings.manage": "Quotas, defaults do workspace e flags da organização.",
|
|
14
|
+
"kbsc.org.delete": "Eliminar a organização (operação irreversível).",
|
|
15
|
+
"kbsc.identity.member.read": "Listar e ver detalhes dos membros do workspace.",
|
|
16
|
+
"kbsc.identity.member.invite": "Enviar convites e definir o papel na entrada.",
|
|
17
|
+
"kbsc.identity.member.role.update": "Promover ou rebaixar papéis de membros.",
|
|
18
|
+
"kbsc.identity.member.remove": "Revogar o acesso de um membro ao workspace.",
|
|
19
|
+
"kbsc.identity.invitation.manage": "Cancelar ou reenviar convites pendentes.",
|
|
20
|
+
"kbsc.asset.project.read": "Listar projetos, ativos e repositórios ligados.",
|
|
21
|
+
"kbsc.asset.project.create": "Registar novos ativos no ASPM.",
|
|
22
|
+
"kbsc.asset.project.update": "Alterar metadados, ramo default e ligações.",
|
|
23
|
+
"kbsc.asset.project.delete": "Remover um ativo do workspace.",
|
|
24
|
+
"kbsc.finding.read": "Ver achados, vulnerabilidades e histórico.",
|
|
25
|
+
"kbsc.finding.triage.update": "Alterar estados, prioridade e comentários internos.",
|
|
26
|
+
"kbsc.finding.remediation.manage": "Gerir tickets e workflows de correção.",
|
|
27
|
+
"kbsc.finding.remediation.auto-apply": "Disparar remediação automática (branch + PR GitHub, sem merge).",
|
|
28
|
+
"kbsc.finding.export": "Exportar relatórios de achados (PDF/CSV conforme produto).",
|
|
29
|
+
"kbsc.ingest.report.create": "Ingerir relatórios de scan via API ou runner.",
|
|
30
|
+
"kbsc.scan.read": "Ver fila e histórico de scans KubbiSec AI (MCP/CLI).",
|
|
31
|
+
"kbsc.scan.trigger": "Disparar scan híbrido via MCP ou assistente (enfileira para CLI local).",
|
|
32
|
+
"kbsc.ingest.coverage.create": "Ingerir dados de cobertura de testes.",
|
|
33
|
+
"kbsc.ingest.bundle.create": "Ingerir bundles de performance e artefactos.",
|
|
34
|
+
"kbsc.supply.read": "Ver SBOM, pacotes e metadados de dependências.",
|
|
35
|
+
"kbsc.supply.policy.comment": "Adicionar anotações de risco sem alterar integrações.",
|
|
36
|
+
"kbsc.supply.scan.trigger": "Disparar análise manual de supply chain.",
|
|
37
|
+
"kbsc.governance.read": "Ver políticas, portões e coverage (somente leitura).",
|
|
38
|
+
"kbsc.governance.coverage.manage": "Gerir configuração de coverage (org/projeto).",
|
|
39
|
+
"kbsc.integration.read": "Ver estado das integrações (GitHub, Jira, etc.).",
|
|
40
|
+
"kbsc.integration.connect": "Ligar integrações via OAuth ou credenciais partilhadas.",
|
|
41
|
+
"kbsc.integration.disconnect": "Desligar integrações e remover ligações.",
|
|
42
|
+
"kbsc.integration.secret.write": "Gravar tokens e segredos de integração.",
|
|
43
|
+
"kbsc.integration.issue.create": "Criar issues em trackers conectados via IA.",
|
|
44
|
+
"kbsc.integration.pr.create": "Abrir pull requests em repositórios conectados via IA.",
|
|
45
|
+
"kbsc.integration.pr.merge": "Fazer merge automático de PRs após gates aprovados.",
|
|
46
|
+
"kbsc.project.ai-autopilot.manage": "Configurar autopilot de IA do projeto (limites, ativação).",
|
|
47
|
+
"kbsc.project.ai-autopilot.run": "Disparar manualmente um ciclo do autopilot de IA.",
|
|
48
|
+
"kbsc.ci.read": "Ver pipelines, runners, execuções e histórico.",
|
|
49
|
+
"kbsc.ci.pipeline.manage": "Criar, editar e apagar definições de pipeline.",
|
|
50
|
+
"kbsc.ci.pipeline.run": "Disparar execuções manuais de pipeline.",
|
|
51
|
+
"kbsc.ci.privileged.run": "Executar jobs CI com containers privilegiados (requer runner habilitado).",
|
|
52
|
+
"kbsc.ci.runner.manage": "Registar, revogar e apagar runners.",
|
|
53
|
+
"kbsc.ci.envpack.manage": "Gerir pacotes de ambiente e ligações a projetos.",
|
|
54
|
+
"kbsc.ci.bootstrap.manage": "Gerir tokens de bootstrap para onboarding de runners.",
|
|
55
|
+
"kbsc.credential.apikey.read": "Listar metadados de API keys (sem expor o segredo).",
|
|
56
|
+
"kbsc.credential.apikey.create": "Emitir chaves para CLI e automação.",
|
|
57
|
+
"kbsc.credential.apikey.revoke": "Invalidar API keys existentes.",
|
|
58
|
+
"kbsc.notification.read": "Ver o centro de alertas e notificações.",
|
|
59
|
+
"kbsc.notification.preference.manage": "Configurar canal, frequência e silenciamento.",
|
|
60
|
+
"kbsc.ai.provider.manage": "Gerir configuração BYOK do provedor de IA.",
|
|
61
|
+
"kbsc.ai.usage.read": "Ver resumo e histórico de utilização de IA.",
|
|
62
|
+
"kbsc.ai.assistant.use": "Usar o assistente de IA in-app (sem alterar dados).",
|
|
63
|
+
"kbsc.ai.automation.auto": "Executar automação de IA em modo auto (patch, branch, merge sem revisão).",
|
|
64
|
+
"kbsc.platform.org.read": "Ver organizações de todos os tenants (staff).",
|
|
65
|
+
"kbsc.platform.org.support": "Executar ações de suporte aprovadas em organizações.",
|
|
66
|
+
"kbsc.platform.user.read": "Ver utilizadores cross-tenant para diagnóstico.",
|
|
67
|
+
"kbsc.platform.impersonate.request": "Pedir sessão de suporte com impersonação controlada.",
|
|
68
|
+
"kbsc.platform.config.manage": "Gerir configuração global da plataforma e feature flags.",
|
|
69
|
+
"kbsc.ops.metrics.read": "Ver snapshot completo de métricas operacionais da plataforma.",
|
|
70
|
+
"kbsc.billing.read": "Ver plano, trial, assinatura e resumo financeiro da organização.",
|
|
71
|
+
"kbsc.billing.manage": "Iniciar checkout Pro, portal Stripe e alterações de billing.",
|
|
72
|
+
"kbsc.contract.read": "Ver contratos Business/Pilot e estado de assinatura.",
|
|
73
|
+
"kbsc.contract.manage": "Gerir contratos e fluxos comerciais offline da organização.",
|
|
74
|
+
"kbsc.identity.member.permission.manage": "Personalizar permissões funcionais por membro (sem escopo de plataforma).",
|
|
75
|
+
"kbsc.org.security.read": "Ver postura de segurança dos membros (2FA, sessões).",
|
|
76
|
+
"kbsc.org.security.manage": "Gerir políticas de segurança do workspace.",
|
|
77
|
+
"kbsc.org.assistant.manage": "Habilitar ou desabilitar o KubbiSec Assistant na organização.",
|
|
78
|
+
};
|
|
79
|
+
function getKubbisecPermissionDescription(permission) {
|
|
80
|
+
return exports.KUBBISEC_PERMISSION_DESCRIPTIONS[permission];
|
|
81
|
+
}
|
|
82
|
+
/** Ensures every catalog permission has a pt-BR description at build/test time. */
|
|
83
|
+
function assertKubbisecPermissionDescriptionsComplete() {
|
|
84
|
+
for (const permission of kubbisec_permissions_1.KUBBISEC_PERMISSIONS) {
|
|
85
|
+
const description = exports.KUBBISEC_PERMISSION_DESCRIPTIONS[permission];
|
|
86
|
+
if (!description?.trim()) {
|
|
87
|
+
throw new Error(`Missing description for permission: ${permission}`);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=kubbisec-permission-descriptions.js.map
|
package/bundled/node_modules/@kubbisec/shared/dist/rbac/kubbisec-permission-descriptions.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kubbisec-permission-descriptions.js","sourceRoot":"","sources":["../../src/rbac/kubbisec-permission-descriptions.ts"],"names":[],"mappings":";;;AA8FA,4EAEC;AAGD,oGAOC;AA1GD,iEAAuF;AAEvF;;GAEG;AACU,QAAA,gCAAgC,GAAuC;IAClF,uBAAuB,EAAE,sDAAsD;IAC/E,yBAAyB,EAAE,oDAAoD;IAC/E,0BAA0B,EAAE,uDAAuD;IACnF,iBAAiB,EAAE,iDAAiD;IAEpE,2BAA2B,EAAE,iDAAiD;IAC9E,6BAA6B,EAAE,+CAA+C;IAC9E,kCAAkC,EAAE,yCAAyC;IAC7E,6BAA6B,EAAE,6CAA6C;IAC5E,iCAAiC,EAAE,0CAA0C;IAE7E,yBAAyB,EAAE,iDAAiD;IAC5E,2BAA2B,EAAE,gCAAgC;IAC7D,2BAA2B,EAAE,6CAA6C;IAC1E,2BAA2B,EAAE,gCAAgC;IAE7D,mBAAmB,EAAE,4CAA4C;IACjE,4BAA4B,EAAE,qDAAqD;IACnF,iCAAiC,EAAE,wCAAwC;IAC3E,qCAAqC,EACnC,iEAAiE;IACnE,qBAAqB,EAAE,4DAA4D;IAEnF,2BAA2B,EAAE,+CAA+C;IAC5E,gBAAgB,EAAE,sDAAsD;IACxE,mBAAmB,EAAE,yEAAyE;IAC9F,6BAA6B,EAAE,uCAAuC;IACtE,2BAA2B,EAAE,8CAA8C;IAE3E,kBAAkB,EAAE,gDAAgD;IACpE,4BAA4B,EAAE,uDAAuD;IACrF,0BAA0B,EAAE,0CAA0C;IAEtE,sBAAsB,EAAE,sDAAsD;IAC9E,iCAAiC,EAAE,+CAA+C;IAElF,uBAAuB,EAAE,kDAAkD;IAC3E,0BAA0B,EAAE,yDAAyD;IACrF,6BAA6B,EAAE,0CAA0C;IACzE,+BAA+B,EAAE,yCAAyC;IAC1E,+BAA+B,EAAE,6CAA6C;IAC9E,4BAA4B,EAAE,wDAAwD;IACtF,2BAA2B,EAAE,qDAAqD;IAElF,kCAAkC,EAAE,4DAA4D;IAChG,+BAA+B,EAAE,mDAAmD;IAEpF,cAAc,EAAE,gDAAgD;IAChE,yBAAyB,EAAE,gDAAgD;IAC3E,sBAAsB,EAAE,yCAAyC;IACjE,wBAAwB,EACtB,2EAA2E;IAC7E,uBAAuB,EAAE,qCAAqC;IAC9D,wBAAwB,EAAE,kDAAkD;IAC5E,0BAA0B,EAAE,uDAAuD;IAEnF,6BAA6B,EAAE,qDAAqD;IACpF,+BAA+B,EAAE,qCAAqC;IACtE,+BAA+B,EAAE,gCAAgC;IAEjE,wBAAwB,EAAE,yCAAyC;IACnE,qCAAqC,EAAE,+CAA+C;IAEtF,yBAAyB,EAAE,4CAA4C;IACvE,oBAAoB,EAAE,6CAA6C;IACnE,uBAAuB,EAAE,qDAAqD;IAC9E,yBAAyB,EACvB,2EAA2E;IAE7E,wBAAwB,EAAE,+CAA+C;IACzE,2BAA2B,EAAE,sDAAsD;IACnF,yBAAyB,EAAE,iDAAiD;IAC5E,mCAAmC,EAAE,sDAAsD;IAC3F,6BAA6B,EAAE,0DAA0D;IAEzF,uBAAuB,EAAE,+DAA+D;IAExF,mBAAmB,EAAE,kEAAkE;IACvF,qBAAqB,EAAE,8DAA8D;IACrF,oBAAoB,EAAE,sDAAsD;IAC5E,sBAAsB,EAAE,6DAA6D;IACrF,wCAAwC,EACtC,2EAA2E;IAC7E,wBAAwB,EAAE,sDAAsD;IAChF,0BAA0B,EAAE,4CAA4C;IACxE,2BAA2B,EAAE,+DAA+D;CAC7F,CAAC;AAEF,SAAgB,gCAAgC,CAAC,UAA8B;IAC7E,OAAO,wCAAgC,CAAC,UAAU,CAAC,CAAC;AACtD,CAAC;AAED,mFAAmF;AACnF,SAAgB,4CAA4C;IAC1D,KAAK,MAAM,UAAU,IAAI,2CAAoB,EAAE,CAAC;QAC9C,MAAM,WAAW,GAAG,wCAAgC,CAAC,UAAU,CAAC,CAAC;QACjE,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,uCAAuC,UAAU,EAAE,CAAC,CAAC;QACvE,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KubbiSec permission slugs — keep in sync with docs/core/rbac-catalog.md
|
|
3
|
+
*/
|
|
4
|
+
export declare const KUBBISEC_PERMISSIONS: readonly ["kbsc.org.profile.read", "kbsc.org.profile.update", "kbsc.org.settings.manage", "kbsc.org.delete", "kbsc.identity.member.read", "kbsc.identity.member.invite", "kbsc.identity.member.role.update", "kbsc.identity.member.remove", "kbsc.identity.invitation.manage", "kbsc.asset.project.read", "kbsc.asset.project.create", "kbsc.asset.project.update", "kbsc.asset.project.delete", "kbsc.finding.read", "kbsc.finding.triage.update", "kbsc.finding.remediation.manage", "kbsc.finding.remediation.auto-apply", "kbsc.finding.export", "kbsc.ingest.report.create", "kbsc.scan.read", "kbsc.scan.trigger", "kbsc.supply.read", "kbsc.supply.policy.comment", "kbsc.supply.scan.trigger", "kbsc.governance.read", "kbsc.governance.coverage.manage", "kbsc.ingest.coverage.create", "kbsc.ingest.bundle.create", "kbsc.integration.read", "kbsc.integration.connect", "kbsc.integration.disconnect", "kbsc.integration.secret.write", "kbsc.integration.issue.create", "kbsc.integration.pr.create", "kbsc.integration.pr.merge", "kbsc.project.ai-autopilot.manage", "kbsc.project.ai-autopilot.run", "kbsc.ci.read", "kbsc.ci.pipeline.manage", "kbsc.ci.pipeline.run", "kbsc.ci.privileged.run", "kbsc.ci.runner.manage", "kbsc.ci.envpack.manage", "kbsc.ci.bootstrap.manage", "kbsc.credential.apikey.read", "kbsc.credential.apikey.create", "kbsc.credential.apikey.revoke", "kbsc.notification.read", "kbsc.notification.preference.manage", "kbsc.ai.provider.manage", "kbsc.ai.usage.read", "kbsc.ai.assistant.use", "kbsc.ai.automation.auto", "kbsc.platform.org.read", "kbsc.platform.org.support", "kbsc.platform.user.read", "kbsc.platform.impersonate.request", "kbsc.platform.config.manage", "kbsc.ops.metrics.read", "kbsc.billing.read", "kbsc.billing.manage", "kbsc.contract.read", "kbsc.contract.manage", "kbsc.identity.member.permission.manage", "kbsc.org.security.read", "kbsc.org.security.manage", "kbsc.org.assistant.manage"];
|
|
5
|
+
export type KubbisecPermission = (typeof KUBBISEC_PERMISSIONS)[number];
|
|
6
|
+
/** Full catalog — super admin / legacy `admin` global role. */
|
|
7
|
+
export declare const ALL_KUBBISEC_PERMISSIONS: ReadonlySet<KubbisecPermission>;
|
|
8
|
+
export declare const ORG_ROLE_SLUGS: readonly ["org_administrator", "org_finance", "org_security_engineer", "org_delivery_engineer", "org_observer"];
|
|
9
|
+
export type OrgRoleSlug = (typeof ORG_ROLE_SLUGS)[number];
|
|
10
|
+
export declare const PLATFORM_ROLE_SLUGS: readonly ["platform_super_admin", "platform_account_manager"];
|
|
11
|
+
export type PlatformRoleSlug = (typeof PLATFORM_ROLE_SLUGS)[number];
|
|
12
|
+
//# sourceMappingURL=kubbisec-permissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kubbisec-permissions.d.ts","sourceRoot":"","sources":["../../src/rbac/kubbisec-permissions.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,oBAAoB,82DAoEvB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvE,+DAA+D;AAC/D,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,kBAAkB,CAEpE,CAAC;AAEF,eAAO,MAAM,cAAc,iHAMjB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,eAAO,MAAM,mBAAmB,+DAAgE,CAAC;AAEjG,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PLATFORM_ROLE_SLUGS = exports.ORG_ROLE_SLUGS = exports.ALL_KUBBISEC_PERMISSIONS = exports.KUBBISEC_PERMISSIONS = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* KubbiSec permission slugs — keep in sync with docs/core/rbac-catalog.md
|
|
6
|
+
*/
|
|
7
|
+
exports.KUBBISEC_PERMISSIONS = [
|
|
8
|
+
"kbsc.org.profile.read",
|
|
9
|
+
"kbsc.org.profile.update",
|
|
10
|
+
"kbsc.org.settings.manage",
|
|
11
|
+
"kbsc.org.delete",
|
|
12
|
+
"kbsc.identity.member.read",
|
|
13
|
+
"kbsc.identity.member.invite",
|
|
14
|
+
"kbsc.identity.member.role.update",
|
|
15
|
+
"kbsc.identity.member.remove",
|
|
16
|
+
"kbsc.identity.invitation.manage",
|
|
17
|
+
"kbsc.asset.project.read",
|
|
18
|
+
"kbsc.asset.project.create",
|
|
19
|
+
"kbsc.asset.project.update",
|
|
20
|
+
"kbsc.asset.project.delete",
|
|
21
|
+
"kbsc.finding.read",
|
|
22
|
+
"kbsc.finding.triage.update",
|
|
23
|
+
"kbsc.finding.remediation.manage",
|
|
24
|
+
"kbsc.finding.remediation.auto-apply",
|
|
25
|
+
"kbsc.finding.export",
|
|
26
|
+
"kbsc.ingest.report.create",
|
|
27
|
+
"kbsc.scan.read",
|
|
28
|
+
"kbsc.scan.trigger",
|
|
29
|
+
"kbsc.supply.read",
|
|
30
|
+
"kbsc.supply.policy.comment",
|
|
31
|
+
"kbsc.supply.scan.trigger",
|
|
32
|
+
"kbsc.governance.read",
|
|
33
|
+
"kbsc.governance.coverage.manage",
|
|
34
|
+
"kbsc.ingest.coverage.create",
|
|
35
|
+
"kbsc.ingest.bundle.create",
|
|
36
|
+
"kbsc.integration.read",
|
|
37
|
+
"kbsc.integration.connect",
|
|
38
|
+
"kbsc.integration.disconnect",
|
|
39
|
+
"kbsc.integration.secret.write",
|
|
40
|
+
"kbsc.integration.issue.create",
|
|
41
|
+
"kbsc.integration.pr.create",
|
|
42
|
+
"kbsc.integration.pr.merge",
|
|
43
|
+
"kbsc.project.ai-autopilot.manage",
|
|
44
|
+
"kbsc.project.ai-autopilot.run",
|
|
45
|
+
"kbsc.ci.read",
|
|
46
|
+
"kbsc.ci.pipeline.manage",
|
|
47
|
+
"kbsc.ci.pipeline.run",
|
|
48
|
+
"kbsc.ci.privileged.run",
|
|
49
|
+
"kbsc.ci.runner.manage",
|
|
50
|
+
"kbsc.ci.envpack.manage",
|
|
51
|
+
"kbsc.ci.bootstrap.manage",
|
|
52
|
+
"kbsc.credential.apikey.read",
|
|
53
|
+
"kbsc.credential.apikey.create",
|
|
54
|
+
"kbsc.credential.apikey.revoke",
|
|
55
|
+
"kbsc.notification.read",
|
|
56
|
+
"kbsc.notification.preference.manage",
|
|
57
|
+
"kbsc.ai.provider.manage",
|
|
58
|
+
"kbsc.ai.usage.read",
|
|
59
|
+
"kbsc.ai.assistant.use",
|
|
60
|
+
"kbsc.ai.automation.auto",
|
|
61
|
+
"kbsc.platform.org.read",
|
|
62
|
+
"kbsc.platform.org.support",
|
|
63
|
+
"kbsc.platform.user.read",
|
|
64
|
+
"kbsc.platform.impersonate.request",
|
|
65
|
+
"kbsc.platform.config.manage",
|
|
66
|
+
"kbsc.ops.metrics.read",
|
|
67
|
+
"kbsc.billing.read",
|
|
68
|
+
"kbsc.billing.manage",
|
|
69
|
+
"kbsc.contract.read",
|
|
70
|
+
"kbsc.contract.manage",
|
|
71
|
+
"kbsc.identity.member.permission.manage",
|
|
72
|
+
"kbsc.org.security.read",
|
|
73
|
+
"kbsc.org.security.manage",
|
|
74
|
+
"kbsc.org.assistant.manage",
|
|
75
|
+
];
|
|
76
|
+
/** Full catalog — super admin / legacy `admin` global role. */
|
|
77
|
+
exports.ALL_KUBBISEC_PERMISSIONS = new Set(exports.KUBBISEC_PERMISSIONS);
|
|
78
|
+
exports.ORG_ROLE_SLUGS = [
|
|
79
|
+
"org_administrator",
|
|
80
|
+
"org_finance",
|
|
81
|
+
"org_security_engineer",
|
|
82
|
+
"org_delivery_engineer",
|
|
83
|
+
"org_observer",
|
|
84
|
+
];
|
|
85
|
+
exports.PLATFORM_ROLE_SLUGS = ["platform_super_admin", "platform_account_manager"];
|
|
86
|
+
//# sourceMappingURL=kubbisec-permissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kubbisec-permissions.js","sourceRoot":"","sources":["../../src/rbac/kubbisec-permissions.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,oBAAoB,GAAG;IAClC,uBAAuB;IACvB,yBAAyB;IACzB,0BAA0B;IAC1B,iBAAiB;IACjB,2BAA2B;IAC3B,6BAA6B;IAC7B,kCAAkC;IAClC,6BAA6B;IAC7B,iCAAiC;IACjC,yBAAyB;IACzB,2BAA2B;IAC3B,2BAA2B;IAC3B,2BAA2B;IAC3B,mBAAmB;IACnB,4BAA4B;IAC5B,iCAAiC;IACjC,qCAAqC;IACrC,qBAAqB;IACrB,2BAA2B;IAC3B,gBAAgB;IAChB,mBAAmB;IACnB,kBAAkB;IAClB,4BAA4B;IAC5B,0BAA0B;IAC1B,sBAAsB;IACtB,iCAAiC;IACjC,6BAA6B;IAC7B,2BAA2B;IAC3B,uBAAuB;IACvB,0BAA0B;IAC1B,6BAA6B;IAC7B,+BAA+B;IAC/B,+BAA+B;IAC/B,4BAA4B;IAC5B,2BAA2B;IAC3B,kCAAkC;IAClC,+BAA+B;IAC/B,cAAc;IACd,yBAAyB;IACzB,sBAAsB;IACtB,wBAAwB;IACxB,uBAAuB;IACvB,wBAAwB;IACxB,0BAA0B;IAC1B,6BAA6B;IAC7B,+BAA+B;IAC/B,+BAA+B;IAC/B,wBAAwB;IACxB,qCAAqC;IACrC,yBAAyB;IACzB,oBAAoB;IACpB,uBAAuB;IACvB,yBAAyB;IACzB,wBAAwB;IACxB,2BAA2B;IAC3B,yBAAyB;IACzB,mCAAmC;IACnC,6BAA6B;IAC7B,uBAAuB;IACvB,mBAAmB;IACnB,qBAAqB;IACrB,oBAAoB;IACpB,sBAAsB;IACtB,wCAAwC;IACxC,wBAAwB;IACxB,0BAA0B;IAC1B,2BAA2B;CACnB,CAAC;AAIX,+DAA+D;AAClD,QAAA,wBAAwB,GAAoC,IAAI,GAAG,CAC9E,4BAAoB,CACrB,CAAC;AAEW,QAAA,cAAc,GAAG;IAC5B,mBAAmB;IACnB,aAAa;IACb,uBAAuB;IACvB,uBAAuB;IACvB,cAAc;CACN,CAAC;AAIE,QAAA,mBAAmB,GAAG,CAAC,sBAAsB,EAAE,0BAA0B,CAAU,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Org roles that do not consume a billable member seat.
|
|
3
|
+
* Finance users only access billing; they do not use product features.
|
|
4
|
+
*/
|
|
5
|
+
export declare const ORG_ROLES_EXEMPT_FROM_MEMBER_QUOTA: readonly ["org_finance"];
|
|
6
|
+
/** Whether a member/invite role counts toward plan member limits and Stripe seat quantity. */
|
|
7
|
+
export declare function orgRoleCountsTowardMemberQuota(role: string | null | undefined): boolean;
|
|
8
|
+
//# sourceMappingURL=member-quota.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member-quota.d.ts","sourceRoot":"","sources":["../../src/rbac/member-quota.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,kCAAkC,0BAEJ,CAAC;AAI5C,8FAA8F;AAC9F,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAGvF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ORG_ROLES_EXEMPT_FROM_MEMBER_QUOTA = void 0;
|
|
4
|
+
exports.orgRoleCountsTowardMemberQuota = orgRoleCountsTowardMemberQuota;
|
|
5
|
+
const better_auth_org_roles_1 = require("./better-auth-org-roles");
|
|
6
|
+
/**
|
|
7
|
+
* Org roles that do not consume a billable member seat.
|
|
8
|
+
* Finance users only access billing; they do not use product features.
|
|
9
|
+
*/
|
|
10
|
+
exports.ORG_ROLES_EXEMPT_FROM_MEMBER_QUOTA = [
|
|
11
|
+
"org_finance",
|
|
12
|
+
];
|
|
13
|
+
const exemptRoleSet = new Set(exports.ORG_ROLES_EXEMPT_FROM_MEMBER_QUOTA);
|
|
14
|
+
/** Whether a member/invite role counts toward plan member limits and Stripe seat quantity. */
|
|
15
|
+
function orgRoleCountsTowardMemberQuota(role) {
|
|
16
|
+
const normalized = (0, better_auth_org_roles_1.normalizeStoredOrgRole)(role);
|
|
17
|
+
return !exemptRoleSet.has(normalized);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=member-quota.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member-quota.js","sourceRoot":"","sources":["../../src/rbac/member-quota.ts"],"names":[],"mappings":";;;AAcA,wEAGC;AAjBD,mEAAiE;AAGjE;;;GAGG;AACU,QAAA,kCAAkC,GAAG;IAChD,aAAa;CAC4B,CAAC;AAE5C,MAAM,aAAa,GAAG,IAAI,GAAG,CAAS,0CAAkC,CAAC,CAAC;AAE1E,8FAA8F;AAC9F,SAAgB,8BAA8B,CAAC,IAA+B;IAC5E,MAAM,UAAU,GAAG,IAAA,8CAAsB,EAAC,IAAI,CAAC,CAAC;IAChD,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { KubbisecPermission } from "./kubbisec-permissions";
|
|
2
|
+
/** Global `user.role` values used by Better Auth admin plugin + KubbiSec platform staff. */
|
|
3
|
+
export declare const GLOBAL_USER_ROLE_SLUGS: readonly ["user", "admin", "platform_super_admin", "platform_account_manager"];
|
|
4
|
+
export type GlobalUserRoleSlug = (typeof GLOBAL_USER_ROLE_SLUGS)[number];
|
|
5
|
+
export declare const GLOBAL_ROLE_OPTIONS: ReadonlyArray<{
|
|
6
|
+
value: GlobalUserRoleSlug;
|
|
7
|
+
label: string;
|
|
8
|
+
}>;
|
|
9
|
+
/** Parses comma-separated global roles from `user.role`. */
|
|
10
|
+
export declare function parseGlobalUserRoles(role: string | null | undefined): string[];
|
|
11
|
+
export declare function isPlatformStaffRole(role: string | null | undefined): boolean;
|
|
12
|
+
/** Platform admins with full catalog (`admin`, `platform_super_admin`) act as org admin in tenant UI. */
|
|
13
|
+
export declare function globalRoleGrantsFullTenantPermissions(role: string | null | undefined): boolean;
|
|
14
|
+
export declare function hasPlatformPermission(role: string | null | undefined, permission: KubbisecPermission): boolean;
|
|
15
|
+
export declare function getMergedPlatformPermissions(role: string | null | undefined): ReadonlySet<KubbisecPermission>;
|
|
16
|
+
//# sourceMappingURL=platform-staff.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-staff.d.ts","sourceRoot":"","sources":["../../src/rbac/platform-staff.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAGjE,4FAA4F;AAC5F,eAAO,MAAM,sBAAsB,gFAKzB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzE,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC;IAAE,KAAK,EAAE,kBAAkB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAK3F,CAAC;AAQF,4DAA4D;AAC5D,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,EAAE,CAM9E;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAE5E;AAED,yGAAyG;AACzG,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAE9F;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC/B,UAAU,EAAE,kBAAkB,GAC7B,OAAO,CAMT;AAED,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC9B,WAAW,CAAC,kBAAkB,CAAC,CAQjC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GLOBAL_ROLE_OPTIONS = exports.GLOBAL_USER_ROLE_SLUGS = void 0;
|
|
4
|
+
exports.parseGlobalUserRoles = parseGlobalUserRoles;
|
|
5
|
+
exports.isPlatformStaffRole = isPlatformStaffRole;
|
|
6
|
+
exports.globalRoleGrantsFullTenantPermissions = globalRoleGrantsFullTenantPermissions;
|
|
7
|
+
exports.hasPlatformPermission = hasPlatformPermission;
|
|
8
|
+
exports.getMergedPlatformPermissions = getMergedPlatformPermissions;
|
|
9
|
+
const resolve_platform_permissions_1 = require("./resolve-platform-permissions");
|
|
10
|
+
/** Global `user.role` values used by Better Auth admin plugin + KubbiSec platform staff. */
|
|
11
|
+
exports.GLOBAL_USER_ROLE_SLUGS = [
|
|
12
|
+
"user",
|
|
13
|
+
"admin",
|
|
14
|
+
"platform_super_admin",
|
|
15
|
+
"platform_account_manager",
|
|
16
|
+
];
|
|
17
|
+
exports.GLOBAL_ROLE_OPTIONS = [
|
|
18
|
+
{ value: "user", label: "Utilizador" },
|
|
19
|
+
{ value: "admin", label: "Administrador da plataforma" },
|
|
20
|
+
{ value: "platform_super_admin", label: "Super administrador da plataforma" },
|
|
21
|
+
{ value: "platform_account_manager", label: "Gestor de contas" },
|
|
22
|
+
];
|
|
23
|
+
const STAFF_ROLE_SET = new Set([
|
|
24
|
+
"admin",
|
|
25
|
+
"platform_super_admin",
|
|
26
|
+
"platform_account_manager",
|
|
27
|
+
]);
|
|
28
|
+
/** Parses comma-separated global roles from `user.role`. */
|
|
29
|
+
function parseGlobalUserRoles(role) {
|
|
30
|
+
if (!role?.trim())
|
|
31
|
+
return ["user"];
|
|
32
|
+
return role
|
|
33
|
+
.split(",")
|
|
34
|
+
.map((r) => r.trim())
|
|
35
|
+
.filter(Boolean);
|
|
36
|
+
}
|
|
37
|
+
function isPlatformStaffRole(role) {
|
|
38
|
+
return parseGlobalUserRoles(role).some((r) => STAFF_ROLE_SET.has(r));
|
|
39
|
+
}
|
|
40
|
+
/** Platform admins with full catalog (`admin`, `platform_super_admin`) act as org admin in tenant UI. */
|
|
41
|
+
function globalRoleGrantsFullTenantPermissions(role) {
|
|
42
|
+
return parseGlobalUserRoles(role).some((r) => r === "admin" || r === "platform_super_admin");
|
|
43
|
+
}
|
|
44
|
+
function hasPlatformPermission(role, permission) {
|
|
45
|
+
const roles = parseGlobalUserRoles(role);
|
|
46
|
+
for (const r of roles) {
|
|
47
|
+
if ((0, resolve_platform_permissions_1.getPlatformPermissionsFromGlobalUserRole)(r).has(permission))
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
function getMergedPlatformPermissions(role) {
|
|
53
|
+
const merged = new Set();
|
|
54
|
+
for (const r of parseGlobalUserRoles(role)) {
|
|
55
|
+
for (const p of (0, resolve_platform_permissions_1.getPlatformPermissionsFromGlobalUserRole)(r)) {
|
|
56
|
+
merged.add(p);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return merged;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=platform-staff.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-staff.js","sourceRoot":"","sources":["../../src/rbac/platform-staff.ts"],"names":[],"mappings":";;;AA2BA,oDAMC;AAED,kDAEC;AAGD,sFAEC;AAED,sDASC;AAED,oEAUC;AAhED,iFAA0F;AAE1F,4FAA4F;AAC/E,QAAA,sBAAsB,GAAG;IACpC,MAAM;IACN,OAAO;IACP,sBAAsB;IACtB,0BAA0B;CAClB,CAAC;AAIE,QAAA,mBAAmB,GAAgE;IAC9F,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE;IACtC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,6BAA6B,EAAE;IACxD,EAAE,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,mCAAmC,EAAE;IAC7E,EAAE,KAAK,EAAE,0BAA0B,EAAE,KAAK,EAAE,kBAAkB,EAAE;CACjE,CAAC;AAEF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAS;IACrC,OAAO;IACP,sBAAsB;IACtB,0BAA0B;CAC3B,CAAC,CAAC;AAEH,4DAA4D;AAC5D,SAAgB,oBAAoB,CAAC,IAA+B;IAClE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE;QAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACnC,OAAO,IAAI;SACR,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;SACpB,MAAM,CAAC,OAAO,CAAC,CAAC;AACrB,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAA+B;IACjE,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,CAAC;AAED,yGAAyG;AACzG,SAAgB,qCAAqC,CAAC,IAA+B;IACnF,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,OAAO,IAAI,CAAC,KAAK,sBAAsB,CAAC,CAAC;AAC/F,CAAC;AAED,SAAgB,qBAAqB,CACnC,IAA+B,EAC/B,UAA8B;IAE9B,MAAM,KAAK,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACzC,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;QACtB,IAAI,IAAA,uEAAwC,EAAC,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC;YAAE,OAAO,IAAI,CAAC;IAC/E,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAgB,4BAA4B,CAC1C,IAA+B;IAE/B,MAAM,MAAM,GAAG,IAAI,GAAG,EAAsB,CAAC;IAC7C,KAAK,MAAM,CAAC,IAAI,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC;QAC3C,KAAK,MAAM,CAAC,IAAI,IAAA,uEAAwC,EAAC,CAAC,CAAC,EAAE,CAAC;YAC5D,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAChB,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { normalizeStoredOrgRole } from "./better-auth-org-roles";
|
|
2
|
+
import type { KubbisecPermission, OrgRoleSlug } from "./kubbisec-permissions";
|
|
3
|
+
/** Maps stored org roles (Kubbisec slugs + legacy Better Auth) → canonical `OrgRoleSlug`. */
|
|
4
|
+
export declare const normalizeOrgMemberRole: typeof normalizeStoredOrgRole;
|
|
5
|
+
/** Effective tenant permissions for an organization member role (see rbac-catalog.md §4). */
|
|
6
|
+
export declare function getTenantPermissionsForOrgRole(role: OrgRoleSlug): ReadonlySet<KubbisecPermission>;
|
|
7
|
+
/** Full tenant permission set (e.g. API-key-only automation, parity with org admin). */
|
|
8
|
+
export declare function getAllTenantPermissions(): ReadonlySet<KubbisecPermission>;
|
|
9
|
+
export declare function parseApiKeyPermissionsJson(raw: string | Record<string, unknown> | unknown[] | null | undefined): KubbisecPermission[] | null;
|
|
10
|
+
//# sourceMappingURL=resolve-org-permissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-org-permissions.d.ts","sourceRoot":"","sources":["../../src/rbac/resolve-org-permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE9E,6FAA6F;AAC7F,eAAO,MAAM,sBAAsB,+BAAyB,CAAC;AAqE7D,6FAA6F;AAC7F,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAAC,kBAAkB,CAAC,CA8FjG;AAED,wFAAwF;AACxF,wBAAgB,uBAAuB,IAAI,WAAW,CAAC,kBAAkB,CAAC,CAEzE;AAED,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,EAAE,GAAG,IAAI,GAAG,SAAS,GACnE,kBAAkB,EAAE,GAAG,IAAI,CAsB7B"}
|