@kubbisec/ai-linux-x64 0.1.21 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/kubbisec +0 -0
- package/bundled/components/kubbisec-model-selector.d.ts +47 -34
- package/bundled/components/kubbisec-model-selector.js +187 -177
- package/bundled/components/kubbisec-model-selector.js.map +1 -1
- package/bundled/config/config.d.ts +6 -6
- package/bundled/config/config.d.ts.map +1 -1
- package/bundled/config/config.js +55 -55
- package/bundled/config/config.js.map +1 -1
- package/bundled/config/detect-local-llm-providers.d.ts +26 -16
- package/bundled/config/detect-local-llm-providers.js +130 -142
- 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 +45 -0
- package/bundled/config/ensure-kbs-project-settings.js.map +1 -0
- package/bundled/config/ensure-kubbisec-project-settings.d.ts +11 -9
- package/bundled/config/ensure-kubbisec-project-settings.d.ts.map +1 -1
- package/bundled/config/ensure-kubbisec-project-settings.js +67 -48
- package/bundled/config/ensure-kubbisec-project-settings.js.map +1 -1
- package/bundled/config/extended-context.d.ts +5 -6
- package/bundled/config/extended-context.js +23 -22
- package/bundled/config/feature-flags.d.ts +10 -2
- package/bundled/config/feature-flags.js +8 -2
- package/bundled/config/format-kubbisec-footer-status.d.ts +1 -1
- package/bundled/config/format-kubbisec-footer-status.js +26 -31
- package/bundled/config/kubbisec-extension-manifest.d.ts +21 -2
- package/bundled/config/kubbisec-extension-manifest.d.ts.map +1 -1
- package/bundled/config/kubbisec-extension-manifest.js +19 -20
- package/bundled/config/kubbisec-extension-manifest.js.map +1 -1
- package/bundled/config/llm-config-mutations.d.ts +51 -25
- package/bundled/config/llm-config-mutations.js +173 -182
- package/bundled/config/llm-config.d.ts +54 -41
- package/bundled/config/llm-config.js +199 -199
- package/bundled/config/llm-provider-catalog.d.ts +18 -15
- package/bundled/config/llm-provider-catalog.js +45 -46
- package/bundled/config/materialize-kubbisec-pi-resources.d.ts +1 -1
- package/bundled/config/materialize-kubbisec-pi-resources.d.ts.map +1 -1
- package/bundled/config/materialize-kubbisec-pi-resources.js +173 -183
- package/bundled/config/materialize-kubbisec-pi-resources.js.map +1 -1
- package/bundled/config/register-custom-llm-providers.d.ts +11 -5
- package/bundled/config/register-custom-llm-providers.js +17 -15
- package/bundled/config/register-kubbisec-llm-provider.d.ts +14 -10
- package/bundled/config/register-kubbisec-llm-provider.js +50 -42
- package/bundled/config/resolve-agents-context-file.d.ts +1 -1
- package/bundled/config/resolve-agents-context-file.js +33 -34
- package/bundled/config/resource-budget.d.ts +12 -12
- package/bundled/config/resource-budget.js +28 -28
- package/bundled/config/sync-kubbisec-pi-models.d.ts +6 -3
- package/bundled/config/sync-kubbisec-pi-models.js +58 -58
- package/bundled/copy/cli-reference-index.d.ts +2 -6
- package/bundled/copy/cli-reference-index.d.ts.map +1 -1
- package/bundled/copy/cli-reference-index.js +2 -62
- package/bundled/copy/cli-reference-index.js.map +1 -1
- package/bundled/copy/kubbisec-shell-copy.d.ts +11 -6
- package/bundled/copy/kubbisec-shell-copy.js +1 -1
- package/bundled/extensions/cli-local-shared.d.ts +60 -26
- package/bundled/extensions/cli-local-shared.d.ts.map +1 -1
- package/bundled/extensions/cli-local-shared.js +139 -118
- package/bundled/extensions/cli-local-shared.js.map +1 -1
- package/bundled/extensions/kubbisec-aspm-local.extension.d.ts +18 -15
- package/bundled/extensions/kubbisec-aspm-local.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-aspm-local.extension.js +109 -117
- package/bundled/extensions/kubbisec-aspm-local.extension.js.map +1 -1
- package/bundled/extensions/kubbisec-brand.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-brand.extension.js +25 -25
- package/bundled/extensions/kubbisec-byok-provider.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-byok-provider.extension.js +2 -2
- package/bundled/extensions/kubbisec-clarify.extension.d.ts +64 -35
- package/bundled/extensions/kubbisec-clarify.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-clarify.extension.js +323 -305
- package/bundled/extensions/kubbisec-clarify.extension.js.map +1 -1
- package/bundled/extensions/kubbisec-exit.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-exit.extension.js +29 -32
- package/bundled/extensions/kubbisec-extended-context.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-extended-context.extension.js +56 -43
- package/bundled/extensions/kubbisec-footer.extension.d.ts +14 -14
- package/bundled/extensions/kubbisec-footer.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-footer.extension.js +205 -215
- package/bundled/extensions/kubbisec-footer.extension.js.map +1 -1
- package/bundled/extensions/kubbisec-github-local.extension.d.ts +26 -21
- package/bundled/extensions/kubbisec-github-local.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-github-local.extension.js +470 -122
- package/bundled/extensions/kubbisec-github-local.extension.js.map +1 -1
- package/bundled/extensions/kubbisec-llm-config.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-llm-config.extension.js +200 -181
- package/bundled/extensions/kubbisec-memory.extension.d.ts +9 -7
- package/bundled/extensions/kubbisec-memory.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-memory.extension.js +88 -95
- package/bundled/extensions/kubbisec-naus-local.extension.d.ts +18 -15
- package/bundled/extensions/kubbisec-naus-local.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-naus-local.extension.js +123 -114
- package/bundled/extensions/kubbisec-naus-local.extension.js.map +1 -1
- package/bundled/extensions/kubbisec-platform-tools.extension.d.ts +31 -21
- package/bundled/extensions/kubbisec-platform-tools.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-platform-tools.extension.js +152 -152
- package/bundled/extensions/kubbisec-platform-tools.extension.js.map +1 -1
- package/bundled/extensions/kubbisec-runtime-status.extension.d.ts +10 -8
- package/bundled/extensions/kubbisec-runtime-status.extension.js +15 -13
- package/bundled/extensions/kubbisec-scope.extension.d.ts +12 -7
- package/bundled/extensions/kubbisec-scope.extension.js +13 -13
- package/bundled/extensions/kubbisec-skill-mentions.extension.d.ts +27 -16
- package/bundled/extensions/kubbisec-skill-mentions.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-skill-mentions.extension.js +74 -63
- package/bundled/extensions/kubbisec-skill-mentions.extension.js.map +1 -1
- package/bundled/extensions/kubbisec-skill-telemetry.extension.d.ts +2 -3
- package/bundled/extensions/kubbisec-skill-telemetry.extension.js +59 -64
- package/bundled/extensions/kubbisec-theme-lock.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-theme-lock.extension.js +33 -34
- package/bundled/extensions/kubbisec-ui.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-ui.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-ui.extension.js +118 -109
- package/bundled/extensions/kubbisec-ui.extension.js.map +1 -1
- package/bundled/extensions/kubbisec-workflow.extension.d.ts +20 -18
- package/bundled/extensions/kubbisec-workflow.extension.d.ts.map +1 -1
- package/bundled/extensions/kubbisec-workflow.extension.js +138 -140
- package/bundled/node_modules/@aspm/shared/dist/ai/index.d.ts +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/index.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/ai/index.js +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/index.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-assistant-system-prompt.d.ts +7 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-assistant-system-prompt.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-assistant-system-prompt.js +30 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-assistant-system-prompt.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-chat-system-prompt.d.ts +7 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-chat-system-prompt.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-chat-system-prompt.js +14 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-chat-system-prompt.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/cli-reference-index.d.ts +6 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/cli-reference-index.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/cli-reference-index.js +65 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/cli-reference-index.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/format-mcp-knowledge.d.ts +8 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/format-mcp-knowledge.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/format-mcp-knowledge.js +29 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/format-mcp-knowledge.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/index.d.ts +7 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/index.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/index.js +16 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/index.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mcp-instructions.d.ts +2 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mcp-instructions.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mcp-instructions.js +36 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mcp-instructions.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mental-map.d.ts +6 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mental-map.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mental-map.js +32 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mental-map.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-groups.d.ts +12 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-groups.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-groups.js +93 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-groups.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-presets.d.ts +13 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-presets.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-presets.js +79 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-presets.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/index.d.ts +4 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/index.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/index.js +20 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/index.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/migrate-api-key-metadata.d.ts +20 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/migrate-api-key-metadata.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/migrate-api-key-metadata.js +78 -0
- package/bundled/node_modules/@aspm/shared/dist/api-key/migrate-api-key-metadata.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-thread.d.ts +19 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-thread.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-thread.js +126 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-thread.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/index.d.ts +1 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/index.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/assistant/index.js +1 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/index.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/billing/index.d.ts +2 -0
- package/bundled/node_modules/@aspm/shared/dist/billing/index.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/billing/index.js +18 -0
- package/bundled/node_modules/@aspm/shared/dist/billing/index.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/billing/plan-limits.d.ts +17 -0
- package/bundled/node_modules/@aspm/shared/dist/billing/plan-limits.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/billing/plan-limits.js +30 -0
- package/bundled/node_modules/@aspm/shared/dist/billing/plan-limits.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/ci-job-dependencies.d.ts +42 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/ci-job-dependencies.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/ci-job-dependencies.js +147 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/ci-job-dependencies.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/git-checkout-log-policy.d.ts +12 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/git-checkout-log-policy.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/git-checkout-log-policy.js +70 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/git-checkout-log-policy.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/index.d.ts +4 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/index.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/index.js +20 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/index.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/kubbisec-ci-execution-env.d.ts +16 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/kubbisec-ci-execution-env.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/kubbisec-ci-execution-env.js +45 -0
- package/bundled/node_modules/@aspm/shared/dist/ci/kubbisec-ci-execution-env.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.d.ts +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.js +6 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/dto/index.d.ts +5 -3
- package/bundled/node_modules/@aspm/shared/dist/dto/index.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/dto/index.js +5 -3
- package/bundled/node_modules/@aspm/shared/dist/dto/index.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/dto/update-project.dto.d.ts +9 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-project.dto.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-project.dto.js +52 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-project.dto.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/enums.d.ts +3 -1
- package/bundled/node_modules/@aspm/shared/dist/enums.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/enums.js +4 -0
- package/bundled/node_modules/@aspm/shared/dist/enums.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/index.d.ts +8 -2
- package/bundled/node_modules/@aspm/shared/dist/index.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/index.js +8 -2
- package/bundled/node_modules/@aspm/shared/dist/index.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/mcp/constants.d.ts +22 -0
- package/bundled/node_modules/@aspm/shared/dist/mcp/constants.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/mcp/constants.js +52 -0
- package/bundled/node_modules/@aspm/shared/dist/mcp/constants.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/mcp/oauth-metadata.d.ts +37 -0
- package/bundled/node_modules/@aspm/shared/dist/mcp/oauth-metadata.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/mcp/oauth-metadata.js +54 -0
- package/bundled/node_modules/@aspm/shared/dist/mcp/oauth-metadata.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/project-scanner-summary.d.ts +7 -4
- package/bundled/node_modules/@aspm/shared/dist/project-scanner-summary.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/project-scanner-summary.js +15 -7
- package/bundled/node_modules/@aspm/shared/dist/project-scanner-summary.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/index.d.ts +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/index.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/index.js +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/index.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.js +2 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.d.ts +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.js +2 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/member-quota.d.ts +8 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/member-quota.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/member-quota.js +19 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/member-quota.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.js +4 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/redaction.d.ts +1 -0
- package/bundled/node_modules/@aspm/shared/dist/redaction.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/redaction.js +1 -0
- package/bundled/node_modules/@aspm/shared/dist/redaction.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/redaction.test.d.ts +2 -0
- package/bundled/node_modules/@aspm/shared/dist/redaction.test.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/redaction.test.js +626 -0
- package/bundled/node_modules/@aspm/shared/dist/redaction.test.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/security/aspm-gate-rules.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/security/aspm-gate-rules.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/security/build-aspm-security-matrix-pipeline-yaml.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/security/build-aspm-security-matrix-pipeline-yaml.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/security/build-github-security-workflow-yaml.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/security/build-github-security-workflow-yaml.js +2 -2
- package/bundled/node_modules/@aspm/shared/dist/security/build-github-security-workflow-yaml.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/security/index.d.ts +2 -2
- package/bundled/node_modules/@aspm/shared/dist/security/index.d.ts.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/security/index.js +2 -2
- package/bundled/node_modules/@aspm/shared/dist/security/index.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/shared-project/constants.d.ts +4 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/constants.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/constants.js +10 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/constants.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/index.d.ts +4 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/index.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/index.js +20 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/index.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/redact-log-lines.d.ts +2 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/redact-log-lines.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/redact-log-lines.js +9 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/redact-log-lines.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/share-prefix.d.ts +3 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/share-prefix.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/share-prefix.js +18 -0
- package/bundled/node_modules/@aspm/shared/dist/shared-project/share-prefix.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/package.json +27 -5
- package/bundled/node_modules/@kubbisec/chat-memory/dist/sanitizer.js +2 -2
- package/bundled/node_modules/@kubbisec/chat-memory/dist/sanitizer.js.map +1 -1
- package/bundled/node_modules/@kubbisec/chat-memory/package.json +4 -4
- package/bundled/node_modules/@kubbisec/home/dist/migrate.d.ts.map +1 -1
- package/bundled/node_modules/@kubbisec/home/dist/migrate.js +1 -1
- package/bundled/node_modules/@kubbisec/home/dist/migrate.js.map +1 -1
- package/bundled/node_modules/@kubbisec/home/package.json +3 -3
- package/bundled/resolve-bundled-dist-root.js +121 -131
- package/bundled/resolve-bundled-dist-root.js.map +1 -1
- package/bundled/skills/aspm-platform/SKILL.md +3 -1
- package/bundled/skills/at-path-mentions.d.ts +1 -1
- package/bundled/skills/at-path-mentions.js +146 -153
- package/bundled/skills/chat-mention-render.d.ts +2 -2
- package/bundled/skills/chat-mention-render.js +121 -126
- package/bundled/skills/chat-mentions.d.ts +17 -8
- package/bundled/skills/chat-mentions.js +76 -76
- package/bundled/skills/github-local/SKILL.md +5 -5
- package/bundled/skills/kubbisec-resource-router/SKILL.md +3 -0
- package/bundled/skills/list-bundled-skills.d.ts +3 -3
- package/bundled/skills/list-bundled-skills.js +33 -35
- package/bundled/skills/naus-pipelines/SKILL.md +11 -10
- package/bundled/skills/remediation/SKILL.md +1 -1
- package/bundled/skills/skill-mention.d.ts +10 -2
- package/bundled/skills/skill-mention.js +10 -2
- package/bundled/theme/clear-terminal.d.ts +1 -1
- package/bundled/theme/clear-terminal.js +3 -4
- package/bundled/theme/footer-render-hook.d.ts +1 -1
- package/bundled/theme/footer-render-hook.js +3 -3
- package/bundled/theme/kubbisec-brand-fg.d.ts +1 -1
- package/bundled/theme/kubbisec-brand-fg.js +2 -2
- package/bundled/theme/kubbisec-menu-themes.d.ts +7 -7
- package/bundled/theme/kubbisec-menu-themes.js +30 -31
- package/bundled/theme/kubbisec-theme-name.d.ts +1 -1
- package/bundled/theme/kubbisec-theme-name.js +1 -1
- package/bundled/theme/patch-pi-settings-theme.runtime.d.ts +1 -1
- package/bundled/theme/patch-pi-settings-theme.runtime.js +11 -10
- package/bundled/theme/render-compact-header.d.ts +13 -5
- package/bundled/theme/render-compact-header.js +127 -129
- package/bundled/theme/render-compact-header.js.map +1 -1
- package/bundled/workflow/session-workflow-mode.d.ts +1 -1
- package/bundled/workflow/session-workflow-mode.js +33 -33
- package/package.json +1 -1
- package/bundled/clarify/clarify-gate-state.d.ts +0 -3
- package/bundled/clarify/clarify-gate-state.d.ts.map +0 -1
- package/bundled/clarify/clarify-gate-state.js +0 -9
- package/bundled/clarify/clarify-gate-state.js.map +0 -1
- package/bundled/clarify/clarify-gate.d.ts +0 -28
- package/bundled/clarify/clarify-gate.d.ts.map +0 -1
- package/bundled/clarify/clarify-gate.js +0 -152
- package/bundled/clarify/clarify-gate.js.map +0 -1
- package/bundled/clarify/clarify-select-panel.d.ts +0 -14
- package/bundled/clarify/clarify-select-panel.d.ts.map +0 -1
- package/bundled/clarify/clarify-select-panel.js +0 -82
- package/bundled/clarify/clarify-select-panel.js.map +0 -1
- package/bundled/clarify/clarify-ui-state.d.ts +0 -21
- package/bundled/clarify/clarify-ui-state.d.ts.map +0 -1
- package/bundled/clarify/clarify-ui-state.js +0 -48
- package/bundled/clarify/clarify-ui-state.js.map +0 -1
- package/bundled/clarify/parse-clarify-answer.d.ts +0 -21
- package/bundled/clarify/parse-clarify-answer.d.ts.map +0 -1
- package/bundled/clarify/parse-clarify-answer.js +0 -57
- package/bundled/clarify/parse-clarify-answer.js.map +0 -1
- package/bundled/clarify/question-format.d.ts +0 -39
- package/bundled/clarify/question-format.d.ts.map +0 -1
- package/bundled/clarify/question-format.js +0 -144
- package/bundled/clarify/question-format.js.map +0 -1
- package/bundled/clarify/questionnaire-tool.d.ts +0 -25
- package/bundled/clarify/questionnaire-tool.d.ts.map +0 -1
- package/bundled/clarify/questionnaire-tool.js +0 -161
- package/bundled/clarify/questionnaire-tool.js.map +0 -1
- package/bundled/clarify/scope-discovery.d.ts +0 -9
- package/bundled/clarify/scope-discovery.d.ts.map +0 -1
- package/bundled/clarify/scope-discovery.js +0 -130
- package/bundled/clarify/scope-discovery.js.map +0 -1
- package/bundled/clarify/session-questionnaire.d.ts +0 -26
- package/bundled/clarify/session-questionnaire.d.ts.map +0 -1
- package/bundled/clarify/session-questionnaire.js +0 -372
- package/bundled/clarify/session-questionnaire.js.map +0 -1
- package/bundled/clarify/session-questionnaire.types.d.ts +0 -47
- package/bundled/clarify/session-questionnaire.types.d.ts.map +0 -1
- package/bundled/clarify/session-questionnaire.types.js +0 -13
- package/bundled/clarify/session-questionnaire.types.js.map +0 -1
|
@@ -1,53 +1,61 @@
|
|
|
1
1
|
import { readLlmConfig } from "./llm-config.js";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
KUBBISEC_LLM_PROVIDER_ID,
|
|
4
|
+
KUBBISEC_LLM_PROVIDER_NAME,
|
|
5
|
+
mergeKubbisecModelCatalog,
|
|
6
|
+
toProviderModelConfig,
|
|
7
|
+
} from "./llm-provider-catalog.js";
|
|
8
|
+
|
|
3
9
|
function resolveLlmBaseUrl() {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
10
|
+
return (
|
|
11
|
+
process.env.KUBBISEC_AI_LLM_BASE_URL?.trim() ||
|
|
12
|
+
process.env.KUBBISEC_PI_LLM_BASE_URL?.trim() ||
|
|
13
|
+
process.env.OPENAI_BASE_URL?.trim()
|
|
14
|
+
);
|
|
7
15
|
}
|
|
8
16
|
function resolveModelId(config = readLlmConfig()) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
return (
|
|
18
|
+
config.defaultModel?.trim() ||
|
|
19
|
+
process.env.KUBBISEC_AI_MODEL_ID?.trim() ||
|
|
20
|
+
process.env.KUBBISEC_AI_MODEL?.trim() ||
|
|
21
|
+
process.env.KUBBISEC_PI_MODEL?.trim() ||
|
|
22
|
+
process.env.NAUS_PI_MODEL?.trim() ||
|
|
23
|
+
"gpt-4o"
|
|
24
|
+
);
|
|
15
25
|
}
|
|
16
26
|
function resolveProxyHeaders(token) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return headers;
|
|
27
|
+
const headers = {
|
|
28
|
+
Authorization: `Bearer ${token}`,
|
|
29
|
+
"x-api-key": token,
|
|
30
|
+
};
|
|
31
|
+
const orgId = process.env.KUBBISEC_ORG_ID?.trim();
|
|
32
|
+
if (orgId) headers["x-organization-id"] = orgId;
|
|
33
|
+
return headers;
|
|
25
34
|
}
|
|
26
35
|
export function buildKubbisecLlmProviderConfig(cwd = process.cwd()) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
const baseUrl = resolveLlmBaseUrl();
|
|
37
|
+
if (!baseUrl) return null;
|
|
38
|
+
const token =
|
|
39
|
+
process.env.KUBBISEC_JOB_TOKEN?.trim() ||
|
|
40
|
+
process.env.KUBBISEC_API_KEY?.trim() ||
|
|
41
|
+
process.env.OPENAI_API_KEY?.trim();
|
|
42
|
+
const headers = token ? resolveProxyHeaders(token) : {};
|
|
43
|
+
const llmConfig = readLlmConfig(cwd);
|
|
44
|
+
const defaultModelId = resolveModelId(llmConfig);
|
|
45
|
+
const catalog = mergeKubbisecModelCatalog(defaultModelId, llmConfig.kubbisec?.models);
|
|
46
|
+
return {
|
|
47
|
+
name: KUBBISEC_LLM_PROVIDER_NAME,
|
|
48
|
+
baseUrl,
|
|
49
|
+
...(token ? { apiKey: token } : {}),
|
|
50
|
+
api: "openai-completions",
|
|
51
|
+
...(Object.keys(headers).length > 0 ? { headers } : {}),
|
|
52
|
+
models: catalog.map(toProviderModelConfig),
|
|
53
|
+
};
|
|
45
54
|
}
|
|
46
55
|
export function registerKubbisecLlmProvider(register, cwd = process.cwd()) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return true;
|
|
56
|
+
const config = buildKubbisecLlmProviderConfig(cwd);
|
|
57
|
+
if (!config) return false;
|
|
58
|
+
register(KUBBISEC_LLM_PROVIDER_ID, config);
|
|
59
|
+
return true;
|
|
52
60
|
}
|
|
53
|
-
//# sourceMappingURL=register-kubbisec-llm-provider.js.map
|
|
61
|
+
//# sourceMappingURL=register-kubbisec-llm-provider.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare function findAgentsContextFile(startDir: string): string | undefined;
|
|
2
2
|
export declare function formatAgentsContextLabel(filePath: string, home?: string): string;
|
|
3
3
|
export declare function formatKubbisecContextStatus(filePath: string, home?: string): string;
|
|
4
|
-
//# sourceMappingURL=resolve-agents-context-file.d.ts.map
|
|
4
|
+
//# sourceMappingURL=resolve-agents-context-file.d.ts.map
|
|
@@ -1,47 +1,46 @@
|
|
|
1
1
|
import * as fs from "node:fs";
|
|
2
2
|
import * as path from "node:path";
|
|
3
3
|
import { isAbsolute, relative, resolve, sep } from "node:path";
|
|
4
|
+
|
|
4
5
|
const CONTEXT_FILENAMES = ["AGENTS.md", "CLAUDE.md"];
|
|
5
6
|
export function findAgentsContextFile(startDir) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
const parent = path.dirname(dir);
|
|
15
|
-
if (parent === dir)
|
|
16
|
-
return undefined;
|
|
17
|
-
dir = parent;
|
|
7
|
+
let dir = path.resolve(startDir);
|
|
8
|
+
while (true) {
|
|
9
|
+
for (const name of CONTEXT_FILENAMES) {
|
|
10
|
+
const candidate = path.join(dir, name);
|
|
11
|
+
if (fs.existsSync(candidate) && fs.statSync(candidate).isFile()) {
|
|
12
|
+
return candidate;
|
|
13
|
+
}
|
|
18
14
|
}
|
|
15
|
+
const parent = path.dirname(dir);
|
|
16
|
+
if (parent === dir) return undefined;
|
|
17
|
+
dir = parent;
|
|
18
|
+
}
|
|
19
19
|
}
|
|
20
20
|
export function formatAgentsContextLabel(filePath, home) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
21
|
+
const base = path.basename(filePath);
|
|
22
|
+
const homeDir = home?.trim();
|
|
23
|
+
if (!homeDir) return base;
|
|
24
|
+
const resolved = resolve(filePath);
|
|
25
|
+
const resolvedHome = resolve(homeDir);
|
|
26
|
+
const rel = relative(resolvedHome, resolved);
|
|
27
|
+
const insideHome =
|
|
28
|
+
rel === "" || (rel !== ".." && !rel.startsWith(`..${sep}`) && !isAbsolute(rel));
|
|
29
|
+
if (!insideHome) {
|
|
30
|
+
return `${base} (${truncatePathMiddle(resolved, 48)})`;
|
|
31
|
+
}
|
|
32
|
+
const short = rel === "" ? `~/${base}` : `~${sep}${rel}`;
|
|
33
|
+
return truncatePathMiddle(short, 56);
|
|
34
34
|
}
|
|
35
35
|
function truncatePathMiddle(text, maxLen) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return text.slice(0, head) + ellipsis + text.slice(-tail);
|
|
36
|
+
if (text.length <= maxLen) return text;
|
|
37
|
+
const ellipsis = "…";
|
|
38
|
+
const room = Math.max(4, maxLen - ellipsis.length);
|
|
39
|
+
const head = Math.max(2, Math.ceil(room * 0.45));
|
|
40
|
+
const tail = Math.max(2, room - head);
|
|
41
|
+
return text.slice(0, head) + ellipsis + text.slice(-tail);
|
|
43
42
|
}
|
|
44
43
|
export function formatKubbisecContextStatus(filePath, home) {
|
|
45
|
-
|
|
44
|
+
return `ctx ${formatAgentsContextLabel(filePath, home)}`;
|
|
46
45
|
}
|
|
47
|
-
//# sourceMappingURL=resolve-agents-context-file.js.map
|
|
46
|
+
//# sourceMappingURL=resolve-agents-context-file.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export type ResourceBudget = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
lowResource: boolean;
|
|
3
|
+
maxActiveSkills: number;
|
|
4
|
+
maxSkillsArgv: number;
|
|
5
|
+
routerTopK: number;
|
|
6
|
+
gateSampleSize: number;
|
|
7
|
+
orchestratorParallel: number;
|
|
8
|
+
onlineTrainerConcurrency: number;
|
|
9
|
+
telemetryMaxStepsPerFlush: number;
|
|
10
|
+
mem0AutoCapture: boolean;
|
|
11
|
+
clarifyMaxRounds: number;
|
|
12
|
+
editBudgetMaxOps: number;
|
|
13
13
|
};
|
|
14
14
|
export declare const LOW_RESOURCE_DEFAULTS: Omit<ResourceBudget, "lowResource">;
|
|
15
15
|
export declare const NORMAL_RESOURCE_DEFAULTS: Omit<ResourceBudget, "lowResource">;
|
|
16
16
|
export declare function resolveResourceBudget(env?: NodeJS.ProcessEnv): ResourceBudget;
|
|
17
|
-
//# sourceMappingURL=resource-budget.d.ts.map
|
|
17
|
+
//# sourceMappingURL=resource-budget.d.ts.map
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { envFlagOn, isMemoryEnabled } from "./feature-flags.js";
|
|
2
2
|
export const LOW_RESOURCE_DEFAULTS = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
maxActiveSkills: 2,
|
|
4
|
+
maxSkillsArgv: 2,
|
|
5
|
+
routerTopK: 2,
|
|
6
|
+
gateSampleSize: 2,
|
|
7
|
+
orchestratorParallel: 1,
|
|
8
|
+
onlineTrainerConcurrency: 1,
|
|
9
|
+
telemetryMaxStepsPerFlush: 20,
|
|
10
|
+
mem0AutoCapture: false,
|
|
11
|
+
clarifyMaxRounds: 1,
|
|
12
|
+
editBudgetMaxOps: 6,
|
|
13
13
|
};
|
|
14
14
|
export const NORMAL_RESOURCE_DEFAULTS = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
maxActiveSkills: 3,
|
|
16
|
+
maxSkillsArgv: 3,
|
|
17
|
+
routerTopK: 3,
|
|
18
|
+
gateSampleSize: 8,
|
|
19
|
+
orchestratorParallel: 3,
|
|
20
|
+
onlineTrainerConcurrency: 2,
|
|
21
|
+
telemetryMaxStepsPerFlush: 50,
|
|
22
|
+
mem0AutoCapture: true,
|
|
23
|
+
clarifyMaxRounds: 2,
|
|
24
|
+
editBudgetMaxOps: 12,
|
|
25
25
|
};
|
|
26
26
|
export function resolveResourceBudget(env = process.env) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
const lowResource = envFlagOn(env, "KUBBISEC_LOW_RESOURCE");
|
|
28
|
+
const defaults = lowResource ? LOW_RESOURCE_DEFAULTS : NORMAL_RESOURCE_DEFAULTS;
|
|
29
|
+
return {
|
|
30
|
+
lowResource,
|
|
31
|
+
...defaults,
|
|
32
|
+
mem0AutoCapture: lowResource ? false : isMemoryEnabled(env),
|
|
33
|
+
};
|
|
34
34
|
}
|
|
35
|
-
//# sourceMappingURL=resource-budget.js.map
|
|
35
|
+
//# sourceMappingURL=resource-budget.js.map
|
|
@@ -6,7 +6,10 @@ export declare function resolvePiAgentModelsJsonPath(): string;
|
|
|
6
6
|
* Materialize KubbiSec (and custom BYOK/local) providers into `~/.kubbisec/agent/models.json`
|
|
7
7
|
* so chat bootstrap can use `defaultProvider` from `.kubbisec/llm.json`.
|
|
8
8
|
*/
|
|
9
|
-
export declare function syncKubbisecProvidersToPiModelsJson(
|
|
9
|
+
export declare function syncKubbisecProvidersToPiModelsJson(
|
|
10
|
+
cwd?: string,
|
|
11
|
+
options?: {
|
|
10
12
|
modelsJsonPath?: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
+
},
|
|
14
|
+
): boolean;
|
|
15
|
+
//# sourceMappingURL=sync-kubbisec-pi-models.d.ts.map
|
|
@@ -3,51 +3,51 @@ import * as os from "node:os";
|
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
import { readLlmConfig, resolveApiKeyValue } from "./llm-config.js";
|
|
5
5
|
import { KUBBISEC_LLM_PROVIDER_ID, toProviderModelConfig } from "./llm-provider-catalog.js";
|
|
6
|
-
import { buildKubbisecLlmProviderConfig
|
|
6
|
+
import { buildKubbisecLlmProviderConfig } from "./register-kubbisec-llm-provider.js";
|
|
7
7
|
/** Matches Pi `getAgentDir()` when runtime is branded (`piConfig.configDir: ".kubbisec"`). */
|
|
8
8
|
export const KUBBISEC_PI_AGENT_CONFIG_DIR = ".kubbisec";
|
|
9
9
|
function expandTildePath(filePath) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return path.join(os.homedir(), filePath.slice(2));
|
|
14
|
-
return filePath;
|
|
10
|
+
if (filePath === "~") return os.homedir();
|
|
11
|
+
if (filePath.startsWith("~/")) return path.join(os.homedir(), filePath.slice(2));
|
|
12
|
+
return filePath;
|
|
15
13
|
}
|
|
16
14
|
export function resolvePiAgentModelsJsonPath() {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
const envDir = process.env.KUBBISEC_CODING_AGENT_DIR?.trim();
|
|
16
|
+
if (envDir) {
|
|
17
|
+
return path.join(expandTildePath(envDir), "models.json");
|
|
18
|
+
}
|
|
19
|
+
return path.join(os.homedir(), KUBBISEC_PI_AGENT_CONFIG_DIR, "agent", "models.json");
|
|
22
20
|
}
|
|
23
21
|
function readPiModelsJson(filePath) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
catch {
|
|
35
|
-
/* missing or invalid */
|
|
22
|
+
try {
|
|
23
|
+
const parsed = JSON.parse(fs.readFileSync(filePath, "utf8"));
|
|
24
|
+
if (
|
|
25
|
+
parsed &&
|
|
26
|
+
typeof parsed === "object" &&
|
|
27
|
+
!Array.isArray(parsed) &&
|
|
28
|
+
typeof parsed.providers === "object" &&
|
|
29
|
+
parsed.providers !== null
|
|
30
|
+
) {
|
|
31
|
+
return parsed;
|
|
36
32
|
}
|
|
37
|
-
|
|
33
|
+
} catch {
|
|
34
|
+
/* missing or invalid */
|
|
35
|
+
}
|
|
36
|
+
return { providers: {} };
|
|
38
37
|
}
|
|
39
38
|
function buildCustomProviderPiEntry(provider) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
39
|
+
const apiKey =
|
|
40
|
+
resolveApiKeyValue(provider.apiKey) ?? (provider.autodetected ? provider.apiKey : undefined);
|
|
41
|
+
return {
|
|
42
|
+
name: provider.name?.trim() || provider.id,
|
|
43
|
+
baseUrl: provider.baseUrl,
|
|
44
|
+
...(apiKey ? { apiKey } : {}),
|
|
45
|
+
api: provider.api ?? "openai-completions",
|
|
46
|
+
...(provider.headers && Object.keys(provider.headers).length > 0
|
|
47
|
+
? { headers: provider.headers }
|
|
48
|
+
: {}),
|
|
49
|
+
models: provider.models.map(toProviderModelConfig),
|
|
50
|
+
};
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Pi resolves `--provider` from models.json before extensions load.
|
|
@@ -55,27 +55,27 @@ function buildCustomProviderPiEntry(provider) {
|
|
|
55
55
|
* so chat bootstrap can use `defaultProvider` from `.kubbisec/llm.json`.
|
|
56
56
|
*/
|
|
57
57
|
export function syncKubbisecProvidersToPiModelsJson(cwd = process.cwd(), options) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
58
|
+
const kubbisec = buildKubbisecLlmProviderConfig(cwd);
|
|
59
|
+
const customProviders = readLlmConfig(cwd).providers ?? [];
|
|
60
|
+
if (!kubbisec && customProviders.length === 0) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
const filePath = options?.modelsJsonPath ?? resolvePiAgentModelsJsonPath();
|
|
64
|
+
fs.mkdirSync(path.dirname(filePath), { recursive: true, mode: 0o755 });
|
|
65
|
+
const existing = readPiModelsJson(filePath);
|
|
66
|
+
const providers = {
|
|
67
|
+
...existing.providers,
|
|
68
|
+
};
|
|
69
|
+
if (kubbisec) {
|
|
70
|
+
providers[KUBBISEC_LLM_PROVIDER_ID] = kubbisec;
|
|
71
|
+
}
|
|
72
|
+
for (const provider of customProviders) {
|
|
73
|
+
providers[provider.id] = buildCustomProviderPiEntry(provider);
|
|
74
|
+
}
|
|
75
|
+
fs.writeFileSync(filePath, `${JSON.stringify({ providers }, null, 2)}\n`, {
|
|
76
|
+
encoding: "utf8",
|
|
77
|
+
mode: 0o600,
|
|
78
|
+
});
|
|
79
|
+
return Boolean(kubbisec);
|
|
80
80
|
}
|
|
81
|
-
//# sourceMappingURL=sync-kubbisec-pi-models.js.map
|
|
81
|
+
//# sourceMappingURL=sync-kubbisec-pi-models.js.map
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Keep in sync with apps/web/.../aspm-commands.md, naus-commands.md, and ai-commands.md.
|
|
4
|
-
*/
|
|
5
|
-
export declare const KUBBISEC_CLI_REFERENCE_INDEX = "<cli-reference-index>\nASPM CLI (npm install -g @kubbisec/aspm):\n| Command | Purpose |\n| aspm init | Interactive setup |\n| aspm login | Configure credentials |\n| aspm whoami | Show current config |\n| aspm doctor | Diagnose configuration |\n| aspm scan <file> -s <source> | Local parse only (no API upload) |\n| aspm parse <file> -s <source> | Local dry-run parse |\n| aspm upload <file> -s <source> | Upload security report to API |\n| aspm coverage <file> | Upload coverage (lcov) |\n| aspm parse-coverage <file> | Local coverage parse |\n| aspm gate | Evaluate local reports against inline rules |\n| aspm projects | List org projects |\n| aspm dashboard | Terminal security posture summary |\nGlobal flags: -k/--api-key, -o/--org (org slug, e.g. minha-empresa), -p/--project\nAPI key: Perfil \u2192 API Keys (/profile/api-keys), prefix aspm_\nEnv: KUBBISEC_API_KEY, KUBBISEC_ORG_ID (slug), KUBBISEC_PROJECT (aliases ASPM_API_URL, ASPM_API_KEY, ASPM_ORG_ID)\nScanners (-s): trivy, gitleaks, syft, osv, semgrep, sonar, nmap, skipfish\nReport files: trivy-report.json, gitleaks-report.json, sbom.json, osv-report.json, semgrep-report.json, sonar-report.json, nmap-report.xml, skipfish-report.json\nPer-scanner install (Linux/macOS/Windows): kubbisec://aspm/aspm-scanner-{name} (e.g. aspm-scanner-trivy, aspm-scanner-semgrep)\nCoverage frameworks: kubbisec://aspm/aspm-coverage (Jest, Vitest, pytest, JaCoCo\u2192lcov, PHPUnit/clover, Go)\n\nNAUS CLI (npm install -g @kubbisec/naus):\n| Command | Purpose |\n| naus register [token] [--renew] | Enroll runner (mTLS bootstrap) |\n| naus start [--daemon] [--allow-privileged] | Start runner daemon |\n| naus migrate | Migrate legacy token runner to mTLS |\n| naus validate <file> / naus check <file> | Validate pipeline YAML |\n| naus plan <file> [--format mermaid] | Show dependency waves |\n| naus run <file> | Execute pipeline locally |\n| naus daemon list / naus daemon stop | Background runner sessions |\nDefault pipeline file: .naus.yml\nLocal env: naus run .naus.yml [--env-file .env] [--secret-file .secrets|.secret] (repeatable; defaults .env/.secrets in cwd).\nCloud secrets: Env Packs in KubbiSec UI (not .secrets on remote runner).\nEnv: NAUS_BOOTSTRAP_TOKEN, NAUS_RENEW_RUNNER\n\nKubbiSec AI CLI (npm install -g @kubbisec/ai):\n| Command | Purpose |\n| kubbisec login / logout / whoami | API session |\n| kubbisec doctor | Diagnose CLI setup |\n| kubbisec ls / show <id> | List/show findings |\n| kubbisec fix <id> [-m auto] | AI remediation |\n| kubbisec chat | Interactive terminal chat |\n| kubbisec do [intent] | Orchestrated agent run |\n| kubbisec watch [--logs] | Remediation queue daemon |\n| kubbisec daemon list|logs|stop | Manage watch sessions |\n| kubbisec ap | Trigger Autopilot cycle |\n| kubbisec naus \u2026 / kubbisec aspm \u2026 | CLI hub forwarding |\nAPI key: Perfil \u2192 API Keys (/profile/api-keys), prefix kbs_\nOrg: -o minha-empresa (slug)\nFull docs: kubbisec://ai/README, section ai-commands\n\nNAUS YAML (NOT GitHub Actions): top-level run: (never jobs:); script: + depends_on: (never commands:/needs:); ASPM jobs kind: aspm|aspm_matrix|aspm_gate with tool: (never scanner:).\nFull docs via tools: aspm_docs (section aspm-commands), naus_pipeline_docs (naus-commands, naus-pipeline-overview, naus-aspm-integration), kubbisec://ai/* (KubbiSec AI CLI).\naspm-cicd.md is GitHub Actions only \u2014 do not use for NAUS pipelines.\n</cli-reference-index>";
|
|
6
|
-
//# sourceMappingURL=cli-reference-index.d.ts.map
|
|
1
|
+
export { KUBBISEC_CLI_REFERENCE_INDEX } from "@aspm/shared";
|
|
2
|
+
//# sourceMappingURL=cli-reference-index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-reference-index.d.ts","sourceRoot":"","sources":["../../src/copy/cli-reference-index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"cli-reference-index.d.ts","sourceRoot":"","sources":["../../src/copy/cli-reference-index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,62 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Keep in sync with apps/web/.../aspm-commands.md, naus-commands.md, and ai-commands.md.
|
|
4
|
-
*/
|
|
5
|
-
export const KUBBISEC_CLI_REFERENCE_INDEX = `<cli-reference-index>
|
|
6
|
-
ASPM CLI (npm install -g @kubbisec/aspm):
|
|
7
|
-
| Command | Purpose |
|
|
8
|
-
| aspm init | Interactive setup |
|
|
9
|
-
| aspm login | Configure credentials |
|
|
10
|
-
| aspm whoami | Show current config |
|
|
11
|
-
| aspm doctor | Diagnose configuration |
|
|
12
|
-
| aspm scan <file> -s <source> | Local parse only (no API upload) |
|
|
13
|
-
| aspm parse <file> -s <source> | Local dry-run parse |
|
|
14
|
-
| aspm upload <file> -s <source> | Upload security report to API |
|
|
15
|
-
| aspm coverage <file> | Upload coverage (lcov) |
|
|
16
|
-
| aspm parse-coverage <file> | Local coverage parse |
|
|
17
|
-
| aspm gate | Evaluate local reports against inline rules |
|
|
18
|
-
| aspm projects | List org projects |
|
|
19
|
-
| aspm dashboard | Terminal security posture summary |
|
|
20
|
-
Global flags: -k/--api-key, -o/--org (org slug, e.g. minha-empresa), -p/--project
|
|
21
|
-
API key: Perfil → API Keys (/profile/api-keys), prefix aspm_
|
|
22
|
-
Env: KUBBISEC_API_KEY, KUBBISEC_ORG_ID (slug), KUBBISEC_PROJECT (aliases ASPM_API_URL, ASPM_API_KEY, ASPM_ORG_ID)
|
|
23
|
-
Scanners (-s): trivy, gitleaks, syft, osv, semgrep, sonar, nmap, skipfish
|
|
24
|
-
Report files: trivy-report.json, gitleaks-report.json, sbom.json, osv-report.json, semgrep-report.json, sonar-report.json, nmap-report.xml, skipfish-report.json
|
|
25
|
-
Per-scanner install (Linux/macOS/Windows): kubbisec://aspm/aspm-scanner-{name} (e.g. aspm-scanner-trivy, aspm-scanner-semgrep)
|
|
26
|
-
Coverage frameworks: kubbisec://aspm/aspm-coverage (Jest, Vitest, pytest, JaCoCo→lcov, PHPUnit/clover, Go)
|
|
27
|
-
|
|
28
|
-
NAUS CLI (npm install -g @kubbisec/naus):
|
|
29
|
-
| Command | Purpose |
|
|
30
|
-
| naus register [token] [--renew] | Enroll runner (mTLS bootstrap) |
|
|
31
|
-
| naus start [--daemon] [--allow-privileged] | Start runner daemon |
|
|
32
|
-
| naus migrate | Migrate legacy token runner to mTLS |
|
|
33
|
-
| naus validate <file> / naus check <file> | Validate pipeline YAML |
|
|
34
|
-
| naus plan <file> [--format mermaid] | Show dependency waves |
|
|
35
|
-
| naus run <file> | Execute pipeline locally |
|
|
36
|
-
| naus daemon list / naus daemon stop | Background runner sessions |
|
|
37
|
-
Default pipeline file: .naus.yml
|
|
38
|
-
Local env: naus run .naus.yml [--env-file .env] [--secret-file .secrets|.secret] (repeatable; defaults .env/.secrets in cwd).
|
|
39
|
-
Cloud secrets: Env Packs in KubbiSec UI (not .secrets on remote runner).
|
|
40
|
-
Env: NAUS_BOOTSTRAP_TOKEN, NAUS_RENEW_RUNNER
|
|
41
|
-
|
|
42
|
-
KubbiSec AI CLI (npm install -g @kubbisec/ai):
|
|
43
|
-
| Command | Purpose |
|
|
44
|
-
| kubbisec login / logout / whoami | API session |
|
|
45
|
-
| kubbisec doctor | Diagnose CLI setup |
|
|
46
|
-
| kubbisec ls / show <id> | List/show findings |
|
|
47
|
-
| kubbisec fix <id> [-m auto] | AI remediation |
|
|
48
|
-
| kubbisec chat | Interactive terminal chat |
|
|
49
|
-
| kubbisec do [intent] | Orchestrated agent run |
|
|
50
|
-
| kubbisec watch [--logs] | Remediation queue daemon |
|
|
51
|
-
| kubbisec daemon list|logs|stop | Manage watch sessions |
|
|
52
|
-
| kubbisec ap | Trigger Autopilot cycle |
|
|
53
|
-
| kubbisec naus … / kubbisec aspm … | CLI hub forwarding |
|
|
54
|
-
API key: Perfil → API Keys (/profile/api-keys), prefix kbs_
|
|
55
|
-
Org: -o minha-empresa (slug)
|
|
56
|
-
Full docs: kubbisec://ai/README, section ai-commands
|
|
57
|
-
|
|
58
|
-
NAUS YAML (NOT GitHub Actions): top-level run: (never jobs:); script: + depends_on: (never commands:/needs:); ASPM jobs kind: aspm|aspm_matrix|aspm_gate with tool: (never scanner:).
|
|
59
|
-
Full docs via tools: aspm_docs (section aspm-commands), naus_pipeline_docs (naus-commands, naus-pipeline-overview, naus-aspm-integration), kubbisec://ai/* (KubbiSec AI CLI).
|
|
60
|
-
aspm-cicd.md is GitHub Actions only — do not use for NAUS pipelines.
|
|
61
|
-
</cli-reference-index>`;
|
|
62
|
-
//# sourceMappingURL=cli-reference-index.js.map
|
|
1
|
+
export { KUBBISEC_CLI_REFERENCE_INDEX } from "@aspm/shared";
|
|
2
|
+
//# sourceMappingURL=cli-reference-index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-reference-index.js","sourceRoot":"","sources":["../../src/copy/cli-reference-index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"cli-reference-index.js","sourceRoot":"","sources":["../../src/copy/cli-reference-index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
/** Shared KubbiSec AI TUI copy (CLI extensions). */
|
|
2
2
|
export declare const KUBBISEC_PRODUCT_NAME = "KubbiSec Assistant";
|
|
3
|
-
export declare const KUBBISEC_SUBTITLE_LINE =
|
|
4
|
-
|
|
3
|
+
export declare const KUBBISEC_SUBTITLE_LINE =
|
|
4
|
+
"Assistant \u00B7 ASPM Remediation \u00B7 Naus CI \u00B7 Coding";
|
|
5
|
+
export declare const KUBBISEC_COMPACT_HEADER_TAGLINE =
|
|
6
|
+
"Assistant \u00B7 ASPM Remediation \u00B7 Naus CI \u00B7 Coding";
|
|
5
7
|
export declare const KUBBISEC_WORDMARK = "KUBBISEC";
|
|
6
8
|
export declare const KUBBISEC_EDITOR_LABEL = "Coding";
|
|
7
9
|
export declare const KUBBISEC_EDITOR_PLACEHOLDER = "Ask anything...";
|
|
8
10
|
/** Skill invoke pattern shown in the chat header hints row. */
|
|
9
11
|
export declare const KUBBISEC_HEADER_HINTS_SKILL = "@skill name";
|
|
10
12
|
export declare const KUBBISEC_EXIT_SLASH_COMMAND = "/exit";
|
|
11
|
-
export declare const KUBBISEC_HEADER_HINTS_COMMANDS =
|
|
13
|
+
export declare const KUBBISEC_HEADER_HINTS_COMMANDS =
|
|
14
|
+
"kubbisec fix \u00B7 kubbisec watch \u00B7 kubbisec ls \u00B7 /help \u00B7 /exit";
|
|
12
15
|
/** @deprecated Use KUBBISEC_HEADER_HINTS_SKILL + KUBBISEC_HEADER_HINTS_COMMANDS */
|
|
13
|
-
export declare const KUBBISEC_HEADER_HINTS =
|
|
16
|
+
export declare const KUBBISEC_HEADER_HINTS =
|
|
17
|
+
"@skill name \u00B7 kubbisec fix \u00B7 kubbisec watch \u00B7 kubbisec ls \u00B7 /help \u00B7 /exit";
|
|
14
18
|
/** @deprecated Verbose TUI only (KUBBISEC_TUI_VERBOSE=1) */
|
|
15
19
|
export declare const KUBBISEC_RAIL_HINT = "chat \u00B7 org BYOK";
|
|
16
20
|
export declare const KUBBISEC_PROVIDER_LABEL = "kubbisec";
|
|
17
21
|
/** @deprecated Verbose TUI only */
|
|
18
22
|
export declare const KUBBISEC_RAIL_LINE = "KubbiSec Assistant \u00B7 chat \u00B7 org BYOK";
|
|
19
23
|
/** @deprecated Verbose TUI only */
|
|
20
|
-
export declare const KUBBISEC_HEADER_TAGLINE =
|
|
21
|
-
|
|
24
|
+
export declare const KUBBISEC_HEADER_TAGLINE =
|
|
25
|
+
"Assistant \u00B7 ASPM Remediation \u00B7 Naus CI \u00B7 Coding";
|
|
26
|
+
//# sourceMappingURL=kubbisec-shell-copy.d.ts.map
|
|
@@ -18,4 +18,4 @@ export const KUBBISEC_PROVIDER_LABEL = "kubbisec";
|
|
|
18
18
|
export const KUBBISEC_RAIL_LINE = `${KUBBISEC_PRODUCT_NAME} · ${KUBBISEC_RAIL_HINT}`;
|
|
19
19
|
/** @deprecated Verbose TUI only */
|
|
20
20
|
export const KUBBISEC_HEADER_TAGLINE = KUBBISEC_SUBTITLE_LINE;
|
|
21
|
-
//# sourceMappingURL=kubbisec-shell-copy.js.map
|
|
21
|
+
//# sourceMappingURL=kubbisec-shell-copy.js.map
|