@kubbisec/ai-linux-arm64 0.1.22 → 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.
Files changed (358) hide show
  1. package/bin/kubbisec +0 -0
  2. package/bundled/components/kubbisec-model-selector.d.ts +34 -47
  3. package/bundled/components/kubbisec-model-selector.js +177 -187
  4. package/bundled/components/kubbisec-model-selector.js.map +1 -1
  5. package/bundled/config/config.d.ts +6 -6
  6. package/bundled/config/config.d.ts.map +1 -1
  7. package/bundled/config/config.js +52 -54
  8. package/bundled/config/config.js.map +1 -1
  9. package/bundled/config/detect-local-llm-providers.d.ts +16 -26
  10. package/bundled/config/detect-local-llm-providers.js +142 -130
  11. package/bundled/config/ensure-kbs-project-settings.d.ts +20 -0
  12. package/bundled/config/ensure-kbs-project-settings.d.ts.map +1 -0
  13. package/bundled/config/ensure-kbs-project-settings.js +46 -0
  14. package/bundled/config/ensure-kbs-project-settings.js.map +1 -0
  15. package/bundled/config/ensure-kubbisec-project-settings.d.ts +11 -9
  16. package/bundled/config/ensure-kubbisec-project-settings.d.ts.map +1 -1
  17. package/bundled/config/ensure-kubbisec-project-settings.js +72 -44
  18. package/bundled/config/ensure-kubbisec-project-settings.js.map +1 -1
  19. package/bundled/config/extended-context.d.ts +6 -5
  20. package/bundled/config/extended-context.js +22 -23
  21. package/bundled/config/feature-flags.d.ts +2 -10
  22. package/bundled/config/feature-flags.js +2 -8
  23. package/bundled/config/format-kubbisec-footer-status.d.ts +1 -1
  24. package/bundled/config/format-kubbisec-footer-status.js +31 -26
  25. package/bundled/config/kubbisec-extension-manifest.d.ts +2 -22
  26. package/bundled/config/kubbisec-extension-manifest.d.ts.map +1 -1
  27. package/bundled/config/kubbisec-extension-manifest.js +19 -20
  28. package/bundled/config/kubbisec-extension-manifest.js.map +1 -1
  29. package/bundled/config/llm-config-mutations.d.ts +25 -51
  30. package/bundled/config/llm-config-mutations.js +182 -173
  31. package/bundled/config/llm-config.d.ts +41 -54
  32. package/bundled/config/llm-config.js +199 -199
  33. package/bundled/config/llm-provider-catalog.d.ts +15 -18
  34. package/bundled/config/llm-provider-catalog.js +46 -45
  35. package/bundled/config/materialize-kubbisec-pi-resources.d.ts +1 -1
  36. package/bundled/config/materialize-kubbisec-pi-resources.d.ts.map +1 -1
  37. package/bundled/config/materialize-kubbisec-pi-resources.js +182 -174
  38. package/bundled/config/materialize-kubbisec-pi-resources.js.map +1 -1
  39. package/bundled/config/register-custom-llm-providers.d.ts +5 -11
  40. package/bundled/config/register-custom-llm-providers.js +15 -17
  41. package/bundled/config/register-kubbisec-llm-provider.d.ts +10 -14
  42. package/bundled/config/register-kubbisec-llm-provider.js +42 -50
  43. package/bundled/config/resolve-agents-context-file.d.ts +1 -1
  44. package/bundled/config/resolve-agents-context-file.js +34 -33
  45. package/bundled/config/resource-budget.d.ts +12 -12
  46. package/bundled/config/resource-budget.js +28 -28
  47. package/bundled/config/sync-kubbisec-pi-models.d.ts +3 -6
  48. package/bundled/config/sync-kubbisec-pi-models.js +58 -58
  49. package/bundled/copy/cli-reference-index.d.ts +2 -7
  50. package/bundled/copy/cli-reference-index.d.ts.map +1 -1
  51. package/bundled/copy/cli-reference-index.js +2 -62
  52. package/bundled/copy/cli-reference-index.js.map +1 -1
  53. package/bundled/copy/kubbisec-shell-copy.d.ts +6 -11
  54. package/bundled/copy/kubbisec-shell-copy.js +1 -1
  55. package/bundled/extensions/cli-local-shared.d.ts +36 -45
  56. package/bundled/extensions/cli-local-shared.d.ts.map +1 -1
  57. package/bundled/extensions/cli-local-shared.js +129 -128
  58. package/bundled/extensions/cli-local-shared.js.map +1 -1
  59. package/bundled/extensions/kubbisec-aspm-local.extension.d.ts +15 -18
  60. package/bundled/extensions/kubbisec-aspm-local.extension.d.ts.map +1 -1
  61. package/bundled/extensions/kubbisec-aspm-local.extension.js +106 -121
  62. package/bundled/extensions/kubbisec-aspm-local.extension.js.map +1 -1
  63. package/bundled/extensions/kubbisec-brand.extension.d.ts +1 -1
  64. package/bundled/extensions/kubbisec-brand.extension.js +25 -25
  65. package/bundled/extensions/kubbisec-byok-provider.extension.d.ts +1 -1
  66. package/bundled/extensions/kubbisec-byok-provider.extension.js +2 -2
  67. package/bundled/extensions/kubbisec-clarify.extension.d.ts +35 -64
  68. package/bundled/extensions/kubbisec-clarify.extension.d.ts.map +1 -1
  69. package/bundled/extensions/kubbisec-clarify.extension.js +305 -323
  70. package/bundled/extensions/kubbisec-clarify.extension.js.map +1 -1
  71. package/bundled/extensions/kubbisec-exit.extension.d.ts +1 -1
  72. package/bundled/extensions/kubbisec-exit.extension.js +32 -29
  73. package/bundled/extensions/kubbisec-extended-context.extension.d.ts +1 -1
  74. package/bundled/extensions/kubbisec-extended-context.extension.js +43 -56
  75. package/bundled/extensions/kubbisec-footer.extension.d.ts +14 -14
  76. package/bundled/extensions/kubbisec-footer.extension.d.ts.map +1 -1
  77. package/bundled/extensions/kubbisec-footer.extension.js +215 -205
  78. package/bundled/extensions/kubbisec-footer.extension.js.map +1 -1
  79. package/bundled/extensions/kubbisec-github-local.extension.d.ts +18 -29
  80. package/bundled/extensions/kubbisec-github-local.extension.d.ts.map +1 -1
  81. package/bundled/extensions/kubbisec-github-local.extension.js +457 -129
  82. package/bundled/extensions/kubbisec-github-local.extension.js.map +1 -1
  83. package/bundled/extensions/kubbisec-llm-config.extension.d.ts +1 -1
  84. package/bundled/extensions/kubbisec-llm-config.extension.js +181 -200
  85. package/bundled/extensions/kubbisec-memory.extension.d.ts +7 -9
  86. package/bundled/extensions/kubbisec-memory.extension.d.ts.map +1 -1
  87. package/bundled/extensions/kubbisec-memory.extension.js +95 -88
  88. package/bundled/extensions/kubbisec-naus-local.extension.d.ts +15 -18
  89. package/bundled/extensions/kubbisec-naus-local.extension.d.ts.map +1 -1
  90. package/bundled/extensions/kubbisec-naus-local.extension.js +103 -135
  91. package/bundled/extensions/kubbisec-naus-local.extension.js.map +1 -1
  92. package/bundled/extensions/kubbisec-platform-tools.extension.d.ts +21 -31
  93. package/bundled/extensions/kubbisec-platform-tools.extension.d.ts.map +1 -1
  94. package/bundled/extensions/kubbisec-platform-tools.extension.js +152 -152
  95. package/bundled/extensions/kubbisec-platform-tools.extension.js.map +1 -1
  96. package/bundled/extensions/kubbisec-runtime-status.extension.d.ts +8 -10
  97. package/bundled/extensions/kubbisec-runtime-status.extension.js +13 -15
  98. package/bundled/extensions/kubbisec-scope.extension.d.ts +7 -12
  99. package/bundled/extensions/kubbisec-scope.extension.js +13 -13
  100. package/bundled/extensions/kubbisec-skill-mentions.extension.d.ts +16 -27
  101. package/bundled/extensions/kubbisec-skill-mentions.extension.d.ts.map +1 -1
  102. package/bundled/extensions/kubbisec-skill-mentions.extension.js +64 -73
  103. package/bundled/extensions/kubbisec-skill-mentions.extension.js.map +1 -1
  104. package/bundled/extensions/kubbisec-skill-telemetry.extension.d.ts +3 -2
  105. package/bundled/extensions/kubbisec-skill-telemetry.extension.js +64 -59
  106. package/bundled/extensions/kubbisec-theme-lock.extension.d.ts +1 -1
  107. package/bundled/extensions/kubbisec-theme-lock.extension.js +34 -33
  108. package/bundled/extensions/kubbisec-ui.extension.d.ts +1 -1
  109. package/bundled/extensions/kubbisec-ui.extension.d.ts.map +1 -1
  110. package/bundled/extensions/kubbisec-ui.extension.js +122 -116
  111. package/bundled/extensions/kubbisec-ui.extension.js.map +1 -1
  112. package/bundled/extensions/kubbisec-workflow.extension.d.ts +18 -20
  113. package/bundled/extensions/kubbisec-workflow.extension.d.ts.map +1 -1
  114. package/bundled/extensions/kubbisec-workflow.extension.js +140 -138
  115. package/bundled/node_modules/@aspm/shared/dist/ai/index.d.ts +1 -0
  116. package/bundled/node_modules/@aspm/shared/dist/ai/index.d.ts.map +1 -1
  117. package/bundled/node_modules/@aspm/shared/dist/ai/index.js +1 -0
  118. package/bundled/node_modules/@aspm/shared/dist/ai/index.js.map +1 -1
  119. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-assistant-system-prompt.d.ts +7 -0
  120. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-assistant-system-prompt.d.ts.map +1 -0
  121. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-assistant-system-prompt.js +30 -0
  122. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-assistant-system-prompt.js.map +1 -0
  123. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-chat-system-prompt.d.ts +7 -0
  124. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-chat-system-prompt.d.ts.map +1 -0
  125. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-chat-system-prompt.js +14 -0
  126. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/build-chat-system-prompt.js.map +1 -0
  127. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/cli-reference-index.d.ts +6 -0
  128. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/cli-reference-index.d.ts.map +1 -0
  129. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/cli-reference-index.js +65 -0
  130. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/cli-reference-index.js.map +1 -0
  131. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/format-mcp-knowledge.d.ts +8 -0
  132. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/format-mcp-knowledge.d.ts.map +1 -0
  133. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/format-mcp-knowledge.js +29 -0
  134. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/format-mcp-knowledge.js.map +1 -0
  135. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/index.d.ts +7 -0
  136. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/index.d.ts.map +1 -0
  137. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/index.js +16 -0
  138. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/index.js.map +1 -0
  139. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mcp-instructions.d.ts +2 -0
  140. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mcp-instructions.d.ts.map +1 -0
  141. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mcp-instructions.js +36 -0
  142. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mcp-instructions.js.map +1 -0
  143. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mental-map.d.ts +6 -0
  144. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mental-map.d.ts.map +1 -0
  145. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mental-map.js +32 -0
  146. package/bundled/node_modules/@aspm/shared/dist/ai/product-knowledge/mental-map.js.map +1 -0
  147. package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-groups.d.ts +12 -0
  148. package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-groups.d.ts.map +1 -0
  149. package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-groups.js +93 -0
  150. package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-groups.js.map +1 -0
  151. package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-presets.d.ts +13 -0
  152. package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-presets.d.ts.map +1 -0
  153. package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-presets.js +79 -0
  154. package/bundled/node_modules/@aspm/shared/dist/api-key/api-key-scope-presets.js.map +1 -0
  155. package/bundled/node_modules/@aspm/shared/dist/api-key/index.d.ts +4 -0
  156. package/bundled/node_modules/@aspm/shared/dist/api-key/index.d.ts.map +1 -0
  157. package/bundled/node_modules/@aspm/shared/dist/api-key/index.js +20 -0
  158. package/bundled/node_modules/@aspm/shared/dist/api-key/index.js.map +1 -0
  159. package/bundled/node_modules/@aspm/shared/dist/api-key/migrate-api-key-metadata.d.ts +20 -0
  160. package/bundled/node_modules/@aspm/shared/dist/api-key/migrate-api-key-metadata.d.ts.map +1 -0
  161. package/bundled/node_modules/@aspm/shared/dist/api-key/migrate-api-key-metadata.js +78 -0
  162. package/bundled/node_modules/@aspm/shared/dist/api-key/migrate-api-key-metadata.js.map +1 -0
  163. package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-thread.d.ts +19 -0
  164. package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-thread.d.ts.map +1 -0
  165. package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-thread.js +126 -0
  166. package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-thread.js.map +1 -0
  167. package/bundled/node_modules/@aspm/shared/dist/assistant/index.d.ts +1 -0
  168. package/bundled/node_modules/@aspm/shared/dist/assistant/index.d.ts.map +1 -1
  169. package/bundled/node_modules/@aspm/shared/dist/assistant/index.js +1 -0
  170. package/bundled/node_modules/@aspm/shared/dist/assistant/index.js.map +1 -1
  171. package/bundled/node_modules/@aspm/shared/dist/billing/index.d.ts +2 -0
  172. package/bundled/node_modules/@aspm/shared/dist/billing/index.d.ts.map +1 -0
  173. package/bundled/node_modules/@aspm/shared/dist/billing/index.js +18 -0
  174. package/bundled/node_modules/@aspm/shared/dist/billing/index.js.map +1 -0
  175. package/bundled/node_modules/@aspm/shared/dist/billing/plan-limits.d.ts +17 -0
  176. package/bundled/node_modules/@aspm/shared/dist/billing/plan-limits.d.ts.map +1 -0
  177. package/bundled/node_modules/@aspm/shared/dist/billing/plan-limits.js +30 -0
  178. package/bundled/node_modules/@aspm/shared/dist/billing/plan-limits.js.map +1 -0
  179. package/bundled/node_modules/@aspm/shared/dist/ci/ci-job-dependencies.d.ts +42 -0
  180. package/bundled/node_modules/@aspm/shared/dist/ci/ci-job-dependencies.d.ts.map +1 -0
  181. package/bundled/node_modules/@aspm/shared/dist/ci/ci-job-dependencies.js +147 -0
  182. package/bundled/node_modules/@aspm/shared/dist/ci/ci-job-dependencies.js.map +1 -0
  183. package/bundled/node_modules/@aspm/shared/dist/ci/git-checkout-log-policy.d.ts +12 -0
  184. package/bundled/node_modules/@aspm/shared/dist/ci/git-checkout-log-policy.d.ts.map +1 -0
  185. package/bundled/node_modules/@aspm/shared/dist/ci/git-checkout-log-policy.js +70 -0
  186. package/bundled/node_modules/@aspm/shared/dist/ci/git-checkout-log-policy.js.map +1 -0
  187. package/bundled/node_modules/@aspm/shared/dist/ci/index.d.ts +4 -0
  188. package/bundled/node_modules/@aspm/shared/dist/ci/index.d.ts.map +1 -0
  189. package/bundled/node_modules/@aspm/shared/dist/ci/index.js +20 -0
  190. package/bundled/node_modules/@aspm/shared/dist/ci/index.js.map +1 -0
  191. package/bundled/node_modules/@aspm/shared/dist/ci/kubbisec-ci-execution-env.d.ts +16 -0
  192. package/bundled/node_modules/@aspm/shared/dist/ci/kubbisec-ci-execution-env.d.ts.map +1 -0
  193. package/bundled/node_modules/@aspm/shared/dist/ci/kubbisec-ci-execution-env.js +45 -0
  194. package/bundled/node_modules/@aspm/shared/dist/ci/kubbisec-ci-execution-env.js.map +1 -0
  195. package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.d.ts +1 -0
  196. package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.d.ts.map +1 -1
  197. package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.js +6 -0
  198. package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.js.map +1 -1
  199. package/bundled/node_modules/@aspm/shared/dist/dto/index.d.ts +5 -3
  200. package/bundled/node_modules/@aspm/shared/dist/dto/index.d.ts.map +1 -1
  201. package/bundled/node_modules/@aspm/shared/dist/dto/index.js +5 -3
  202. package/bundled/node_modules/@aspm/shared/dist/dto/index.js.map +1 -1
  203. package/bundled/node_modules/@aspm/shared/dist/dto/update-project.dto.d.ts +9 -0
  204. package/bundled/node_modules/@aspm/shared/dist/dto/update-project.dto.d.ts.map +1 -0
  205. package/bundled/node_modules/@aspm/shared/dist/dto/update-project.dto.js +52 -0
  206. package/bundled/node_modules/@aspm/shared/dist/dto/update-project.dto.js.map +1 -0
  207. package/bundled/node_modules/@aspm/shared/dist/enums.d.ts +3 -1
  208. package/bundled/node_modules/@aspm/shared/dist/enums.d.ts.map +1 -1
  209. package/bundled/node_modules/@aspm/shared/dist/enums.js +4 -0
  210. package/bundled/node_modules/@aspm/shared/dist/enums.js.map +1 -1
  211. package/bundled/node_modules/@aspm/shared/dist/index.d.ts +8 -2
  212. package/bundled/node_modules/@aspm/shared/dist/index.d.ts.map +1 -1
  213. package/bundled/node_modules/@aspm/shared/dist/index.js +8 -2
  214. package/bundled/node_modules/@aspm/shared/dist/index.js.map +1 -1
  215. package/bundled/node_modules/@aspm/shared/dist/mcp/constants.d.ts +22 -0
  216. package/bundled/node_modules/@aspm/shared/dist/mcp/constants.d.ts.map +1 -0
  217. package/bundled/node_modules/@aspm/shared/dist/mcp/constants.js +52 -0
  218. package/bundled/node_modules/@aspm/shared/dist/mcp/constants.js.map +1 -0
  219. package/bundled/node_modules/@aspm/shared/dist/mcp/oauth-metadata.d.ts +37 -0
  220. package/bundled/node_modules/@aspm/shared/dist/mcp/oauth-metadata.d.ts.map +1 -0
  221. package/bundled/node_modules/@aspm/shared/dist/mcp/oauth-metadata.js +51 -0
  222. package/bundled/node_modules/@aspm/shared/dist/mcp/oauth-metadata.js.map +1 -0
  223. package/bundled/node_modules/@aspm/shared/dist/project-scanner-summary.d.ts +7 -4
  224. package/bundled/node_modules/@aspm/shared/dist/project-scanner-summary.d.ts.map +1 -1
  225. package/bundled/node_modules/@aspm/shared/dist/project-scanner-summary.js +15 -7
  226. package/bundled/node_modules/@aspm/shared/dist/project-scanner-summary.js.map +1 -1
  227. package/bundled/node_modules/@aspm/shared/dist/rbac/index.d.ts +1 -0
  228. package/bundled/node_modules/@aspm/shared/dist/rbac/index.d.ts.map +1 -1
  229. package/bundled/node_modules/@aspm/shared/dist/rbac/index.js +1 -0
  230. package/bundled/node_modules/@aspm/shared/dist/rbac/index.js.map +1 -1
  231. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.d.ts.map +1 -1
  232. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.js +2 -0
  233. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.js.map +1 -1
  234. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.d.ts +1 -1
  235. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.d.ts.map +1 -1
  236. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.js +2 -0
  237. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.js.map +1 -1
  238. package/bundled/node_modules/@aspm/shared/dist/rbac/member-quota.d.ts +8 -0
  239. package/bundled/node_modules/@aspm/shared/dist/rbac/member-quota.d.ts.map +1 -0
  240. package/bundled/node_modules/@aspm/shared/dist/rbac/member-quota.js +19 -0
  241. package/bundled/node_modules/@aspm/shared/dist/rbac/member-quota.js.map +1 -0
  242. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.d.ts.map +1 -1
  243. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.js +4 -0
  244. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.js.map +1 -1
  245. package/bundled/node_modules/@aspm/shared/dist/redaction.d.ts +1 -0
  246. package/bundled/node_modules/@aspm/shared/dist/redaction.d.ts.map +1 -1
  247. package/bundled/node_modules/@aspm/shared/dist/redaction.js +1 -0
  248. package/bundled/node_modules/@aspm/shared/dist/redaction.js.map +1 -1
  249. package/bundled/node_modules/@aspm/shared/dist/security/aspm-gate-rules.d.ts.map +1 -1
  250. package/bundled/node_modules/@aspm/shared/dist/security/aspm-gate-rules.js.map +1 -1
  251. package/bundled/node_modules/@aspm/shared/dist/security/build-aspm-security-matrix-pipeline-yaml.d.ts.map +1 -1
  252. package/bundled/node_modules/@aspm/shared/dist/security/build-aspm-security-matrix-pipeline-yaml.js.map +1 -1
  253. package/bundled/node_modules/@aspm/shared/dist/security/build-github-security-workflow-yaml.d.ts.map +1 -1
  254. package/bundled/node_modules/@aspm/shared/dist/security/build-github-security-workflow-yaml.js +2 -2
  255. package/bundled/node_modules/@aspm/shared/dist/security/build-github-security-workflow-yaml.js.map +1 -1
  256. package/bundled/node_modules/@aspm/shared/dist/security/index.d.ts +2 -2
  257. package/bundled/node_modules/@aspm/shared/dist/security/index.d.ts.map +1 -1
  258. package/bundled/node_modules/@aspm/shared/dist/security/index.js +2 -2
  259. package/bundled/node_modules/@aspm/shared/dist/security/index.js.map +1 -1
  260. package/bundled/node_modules/@aspm/shared/dist/shared-project/constants.d.ts +4 -0
  261. package/bundled/node_modules/@aspm/shared/dist/shared-project/constants.d.ts.map +1 -0
  262. package/bundled/node_modules/@aspm/shared/dist/shared-project/constants.js +10 -0
  263. package/bundled/node_modules/@aspm/shared/dist/shared-project/constants.js.map +1 -0
  264. package/bundled/node_modules/@aspm/shared/dist/shared-project/index.d.ts +4 -0
  265. package/bundled/node_modules/@aspm/shared/dist/shared-project/index.d.ts.map +1 -0
  266. package/bundled/node_modules/@aspm/shared/dist/shared-project/index.js +20 -0
  267. package/bundled/node_modules/@aspm/shared/dist/shared-project/index.js.map +1 -0
  268. package/bundled/node_modules/@aspm/shared/dist/shared-project/redact-log-lines.d.ts +2 -0
  269. package/bundled/node_modules/@aspm/shared/dist/shared-project/redact-log-lines.d.ts.map +1 -0
  270. package/bundled/node_modules/@aspm/shared/dist/shared-project/redact-log-lines.js +9 -0
  271. package/bundled/node_modules/@aspm/shared/dist/shared-project/redact-log-lines.js.map +1 -0
  272. package/bundled/node_modules/@aspm/shared/dist/shared-project/share-prefix.d.ts +3 -0
  273. package/bundled/node_modules/@aspm/shared/dist/shared-project/share-prefix.d.ts.map +1 -0
  274. package/bundled/node_modules/@aspm/shared/dist/shared-project/share-prefix.js +18 -0
  275. package/bundled/node_modules/@aspm/shared/dist/shared-project/share-prefix.js.map +1 -0
  276. package/bundled/node_modules/@aspm/shared/package.json +27 -5
  277. package/bundled/node_modules/@kubbisec/chat-memory/dist/sanitizer.js +2 -2
  278. package/bundled/node_modules/@kubbisec/chat-memory/dist/sanitizer.js.map +1 -1
  279. package/bundled/node_modules/@kubbisec/chat-memory/package.json +4 -4
  280. package/bundled/node_modules/@kubbisec/home/dist/migrate.d.ts.map +1 -1
  281. package/bundled/node_modules/@kubbisec/home/dist/migrate.js +1 -1
  282. package/bundled/node_modules/@kubbisec/home/dist/migrate.js.map +1 -1
  283. package/bundled/node_modules/@kubbisec/home/package.json +3 -3
  284. package/bundled/resolve-bundled-dist-root.js +130 -122
  285. package/bundled/resolve-bundled-dist-root.js.map +1 -1
  286. package/bundled/skills/aspm-platform/SKILL.md +3 -1
  287. package/bundled/skills/at-path-mentions.d.ts +1 -1
  288. package/bundled/skills/at-path-mentions.js +153 -146
  289. package/bundled/skills/chat-mention-render.d.ts +2 -2
  290. package/bundled/skills/chat-mention-render.js +126 -121
  291. package/bundled/skills/chat-mentions.d.ts +8 -17
  292. package/bundled/skills/chat-mentions.js +76 -76
  293. package/bundled/skills/github-local/SKILL.md +5 -5
  294. package/bundled/skills/kubbisec-resource-router/SKILL.md +3 -0
  295. package/bundled/skills/list-bundled-skills.d.ts +3 -3
  296. package/bundled/skills/list-bundled-skills.js +35 -33
  297. package/bundled/skills/naus-pipelines/SKILL.md +11 -10
  298. package/bundled/skills/remediation/SKILL.md +1 -1
  299. package/bundled/skills/skill-mention.d.ts +2 -10
  300. package/bundled/skills/skill-mention.js +2 -10
  301. package/bundled/theme/clear-terminal.d.ts +1 -1
  302. package/bundled/theme/clear-terminal.js +4 -3
  303. package/bundled/theme/footer-render-hook.d.ts +1 -1
  304. package/bundled/theme/footer-render-hook.js +3 -3
  305. package/bundled/theme/kubbisec-brand-fg.d.ts +1 -1
  306. package/bundled/theme/kubbisec-brand-fg.js +2 -2
  307. package/bundled/theme/kubbisec-menu-themes.d.ts +7 -7
  308. package/bundled/theme/kubbisec-menu-themes.js +31 -30
  309. package/bundled/theme/kubbisec-theme-name.d.ts +1 -1
  310. package/bundled/theme/kubbisec-theme-name.js +1 -1
  311. package/bundled/theme/patch-pi-settings-theme.runtime.d.ts +1 -1
  312. package/bundled/theme/patch-pi-settings-theme.runtime.js +10 -11
  313. package/bundled/theme/render-compact-header.d.ts +5 -13
  314. package/bundled/theme/render-compact-header.js +128 -126
  315. package/bundled/theme/render-compact-header.js.map +1 -1
  316. package/bundled/workflow/session-workflow-mode.d.ts +1 -1
  317. package/bundled/workflow/session-workflow-mode.js +33 -33
  318. package/package.json +1 -1
  319. package/bundled/clarify/clarify-gate-state.d.ts +0 -3
  320. package/bundled/clarify/clarify-gate-state.d.ts.map +0 -1
  321. package/bundled/clarify/clarify-gate-state.js +0 -9
  322. package/bundled/clarify/clarify-gate-state.js.map +0 -1
  323. package/bundled/clarify/clarify-gate.d.ts +0 -35
  324. package/bundled/clarify/clarify-gate.d.ts.map +0 -1
  325. package/bundled/clarify/clarify-gate.js +0 -159
  326. package/bundled/clarify/clarify-gate.js.map +0 -1
  327. package/bundled/clarify/clarify-select-panel.d.ts +0 -21
  328. package/bundled/clarify/clarify-select-panel.d.ts.map +0 -1
  329. package/bundled/clarify/clarify-select-panel.js +0 -80
  330. package/bundled/clarify/clarify-select-panel.js.map +0 -1
  331. package/bundled/clarify/clarify-ui-state.d.ts +0 -23
  332. package/bundled/clarify/clarify-ui-state.d.ts.map +0 -1
  333. package/bundled/clarify/clarify-ui-state.js +0 -48
  334. package/bundled/clarify/clarify-ui-state.js.map +0 -1
  335. package/bundled/clarify/parse-clarify-answer.d.ts +0 -32
  336. package/bundled/clarify/parse-clarify-answer.d.ts.map +0 -1
  337. package/bundled/clarify/parse-clarify-answer.js +0 -51
  338. package/bundled/clarify/parse-clarify-answer.js.map +0 -1
  339. package/bundled/clarify/question-format.d.ts +0 -50
  340. package/bundled/clarify/question-format.d.ts.map +0 -1
  341. package/bundled/clarify/question-format.js +0 -137
  342. package/bundled/clarify/question-format.js.map +0 -1
  343. package/bundled/clarify/questionnaire-tool.d.ts +0 -36
  344. package/bundled/clarify/questionnaire-tool.d.ts.map +0 -1
  345. package/bundled/clarify/questionnaire-tool.js +0 -197
  346. package/bundled/clarify/questionnaire-tool.js.map +0 -1
  347. package/bundled/clarify/scope-discovery.d.ts +0 -12
  348. package/bundled/clarify/scope-discovery.d.ts.map +0 -1
  349. package/bundled/clarify/scope-discovery.js +0 -122
  350. package/bundled/clarify/scope-discovery.js.map +0 -1
  351. package/bundled/clarify/session-questionnaire.d.ts +0 -61
  352. package/bundled/clarify/session-questionnaire.d.ts.map +0 -1
  353. package/bundled/clarify/session-questionnaire.js +0 -364
  354. package/bundled/clarify/session-questionnaire.js.map +0 -1
  355. package/bundled/clarify/session-questionnaire.types.d.ts +0 -49
  356. package/bundled/clarify/session-questionnaire.types.d.ts.map +0 -1
  357. package/bundled/clarify/session-questionnaire.types.js +0 -13
  358. package/bundled/clarify/session-questionnaire.types.js.map +0 -1
@@ -1,198 +1,207 @@
1
- import {
2
- applyLlmConfigToPiSettings,
3
- readLlmConfig,
4
- resolveApiKeyValue,
5
- resolveLlmConfigPath,
6
- writeLlmConfig,
7
- } from "./llm-config.js";
8
- import {
9
- KUBBISEC_LLM_PROVIDER_ID,
10
- KUBBISEC_LLM_PROVIDER_NAME,
11
- mergeKubbisecModelCatalog,
12
- } from "./llm-provider-catalog.js";
13
-
14
- const THINKING_LEVELS = new Set(["off", "minimal", "low", "medium", "high", "xhigh"]);
1
+ import { applyLlmConfigToPiSettings, readLlmConfig, resolveApiKeyValue, resolveLlmConfigPath, writeLlmConfig, } from "./llm-config.js";
2
+ import { KUBBISEC_LLM_PROVIDER_ID, KUBBISEC_LLM_PROVIDER_NAME, mergeKubbisecModelCatalog, } from "./llm-provider-catalog.js";
3
+ const THINKING_LEVELS = new Set([
4
+ "off",
5
+ "minimal",
6
+ "low",
7
+ "medium",
8
+ "high",
9
+ "xhigh",
10
+ ]);
15
11
  export function isKubbisecThinkingLevel(value) {
16
- return THINKING_LEVELS.has(value);
12
+ return THINKING_LEVELS.has(value);
17
13
  }
18
14
  export function maskApiKeyHint(apiKey) {
19
- const raw = apiKey?.trim();
20
- if (!raw) return undefined;
21
- if (/^[A-Z][A-Z0-9_]*$/.test(raw)) return `env:${raw}`;
22
- if (raw.length <= 8) return "••••";
23
- return `${raw.slice(0, 4)}…${raw.slice(-4)}`;
15
+ const raw = apiKey?.trim();
16
+ if (!raw)
17
+ return undefined;
18
+ if (/^[A-Z][A-Z0-9_]*$/.test(raw))
19
+ return `env:${raw}`;
20
+ if (raw.length <= 8)
21
+ return "••••";
22
+ return `${raw.slice(0, 4)}…${raw.slice(-4)}`;
24
23
  }
25
24
  export function parseModelSpec(spec) {
26
- const trimmed = spec.trim();
27
- if (!trimmed) throw new Error("Model spec cannot be empty");
28
- const [idPart, namePart, flag] = trimmed.split(":").map((part) => part.trim());
29
- const id = idPart?.trim();
30
- if (!id) throw new Error(`Invalid model spec: ${spec}`);
31
- const reasoning = flag === "reasoning" || flag === "true";
32
- return {
33
- id,
34
- ...(namePart ? { name: namePart } : {}),
35
- ...(reasoning ? { reasoning: true } : {}),
36
- };
25
+ const trimmed = spec.trim();
26
+ if (!trimmed)
27
+ throw new Error("Model spec cannot be empty");
28
+ const [idPart, namePart, flag] = trimmed.split(":").map((part) => part.trim());
29
+ const id = idPart?.trim();
30
+ if (!id)
31
+ throw new Error(`Invalid model spec: ${spec}`);
32
+ const reasoning = flag === "reasoning" || flag === "true";
33
+ return {
34
+ id,
35
+ ...(namePart ? { name: namePart } : {}),
36
+ ...(reasoning ? { reasoning: true } : {}),
37
+ };
37
38
  }
38
39
  function findCustomProvider(config, providerId) {
39
- return config.providers?.find((provider) => provider.id === providerId);
40
+ return config.providers?.find((provider) => provider.id === providerId);
40
41
  }
41
42
  function persistLlmConfig(cwd, config) {
42
- writeLlmConfig(cwd, config);
43
- applyLlmConfigToPiSettings(cwd, config);
44
- return config;
43
+ writeLlmConfig(cwd, config);
44
+ applyLlmConfigToPiSettings(cwd, config);
45
+ return config;
45
46
  }
46
47
  export function setLlmDefaults(cwd, options) {
47
- const current = readLlmConfig(cwd);
48
- const next = { ...current };
49
- if (options.provider?.trim()) next.defaultProvider = options.provider.trim();
50
- if (options.model?.trim()) next.defaultModel = options.model.trim();
51
- if (options.thinking) next.defaultThinkingLevel = options.thinking;
52
- if (options.temperature != null && Number.isFinite(options.temperature)) {
53
- next.temperature = Math.min(2, Math.max(0, options.temperature));
54
- }
55
- return persistLlmConfig(cwd, next);
48
+ const current = readLlmConfig(cwd);
49
+ const next = { ...current };
50
+ if (options.provider?.trim())
51
+ next.defaultProvider = options.provider.trim();
52
+ if (options.model?.trim())
53
+ next.defaultModel = options.model.trim();
54
+ if (options.thinking)
55
+ next.defaultThinkingLevel = options.thinking;
56
+ if (options.temperature != null && Number.isFinite(options.temperature)) {
57
+ next.temperature = Math.min(2, Math.max(0, options.temperature));
58
+ }
59
+ return persistLlmConfig(cwd, next);
56
60
  }
57
61
  export function addCustomProvider(cwd, input) {
58
- const id = input.id.trim();
59
- if (!id) throw new Error("Provider id is required");
60
- if (id === KUBBISEC_LLM_PROVIDER_ID) {
61
- throw new Error(
62
- `Provider "${KUBBISEC_LLM_PROVIDER_ID}" is managed by KubbiSec BYOK. Use "kubbisec llm model add --provider kubbisec".`,
63
- );
64
- }
65
- if (!input.baseUrl.trim()) throw new Error("Provider baseUrl is required");
66
- if (!input.models.length) throw new Error("At least one model is required");
67
- const current = readLlmConfig(cwd);
68
- const providers = [...(current.providers ?? [])];
69
- const existingIndex = providers.findIndex((provider) => provider.id === id);
70
- const normalized = {
71
- ...input,
72
- id,
73
- baseUrl: input.baseUrl.trim(),
74
- models: input.models.map((model) => ({ ...model, id: model.id.trim() })),
75
- };
76
- if (existingIndex >= 0) {
77
- providers[existingIndex] = { ...providers[existingIndex], ...normalized };
78
- } else {
79
- providers.push(normalized);
80
- }
81
- return persistLlmConfig(cwd, { ...current, providers });
62
+ const id = input.id.trim();
63
+ if (!id)
64
+ throw new Error("Provider id is required");
65
+ if (id === KUBBISEC_LLM_PROVIDER_ID) {
66
+ throw new Error(`Provider "${KUBBISEC_LLM_PROVIDER_ID}" is managed by KubbiSec BYOK. Use "kubbisec llm model add --provider kubbisec".`);
67
+ }
68
+ if (!input.baseUrl.trim())
69
+ throw new Error("Provider baseUrl is required");
70
+ if (!input.models.length)
71
+ throw new Error("At least one model is required");
72
+ const current = readLlmConfig(cwd);
73
+ const providers = [...(current.providers ?? [])];
74
+ const existingIndex = providers.findIndex((provider) => provider.id === id);
75
+ const normalized = {
76
+ ...input,
77
+ id,
78
+ baseUrl: input.baseUrl.trim(),
79
+ models: input.models.map((model) => ({ ...model, id: model.id.trim() })),
80
+ };
81
+ if (existingIndex >= 0) {
82
+ providers[existingIndex] = { ...providers[existingIndex], ...normalized };
83
+ }
84
+ else {
85
+ providers.push(normalized);
86
+ }
87
+ return persistLlmConfig(cwd, { ...current, providers });
82
88
  }
83
89
  export function updateCustomProvider(cwd, providerId, patch) {
84
- const id = providerId.trim();
85
- if (id === KUBBISEC_LLM_PROVIDER_ID) {
86
- throw new Error(`Provider "${KUBBISEC_LLM_PROVIDER_ID}" cannot be updated via CLI.`);
87
- }
88
- const current = readLlmConfig(cwd);
89
- const providers = [...(current.providers ?? [])];
90
- const index = providers.findIndex((provider) => provider.id === id);
91
- if (index < 0) throw new Error(`Provider not found: ${id}`);
92
- const existing = providers[index];
93
- providers[index] = {
94
- ...existing,
95
- ...(patch.name !== undefined ? { name: patch.name } : {}),
96
- ...(patch.baseUrl !== undefined ? { baseUrl: patch.baseUrl.trim() } : {}),
97
- ...(patch.apiKey !== undefined ? { apiKey: patch.apiKey } : {}),
98
- ...(patch.api !== undefined ? { api: patch.api } : {}),
99
- ...(patch.headers !== undefined ? { headers: patch.headers } : {}),
100
- ...(patch.models !== undefined ? { models: patch.models } : {}),
101
- };
102
- return persistLlmConfig(cwd, { ...current, providers });
90
+ const id = providerId.trim();
91
+ if (id === KUBBISEC_LLM_PROVIDER_ID) {
92
+ throw new Error(`Provider "${KUBBISEC_LLM_PROVIDER_ID}" cannot be updated via CLI.`);
93
+ }
94
+ const current = readLlmConfig(cwd);
95
+ const providers = [...(current.providers ?? [])];
96
+ const index = providers.findIndex((provider) => provider.id === id);
97
+ if (index < 0)
98
+ throw new Error(`Provider not found: ${id}`);
99
+ const existing = providers[index];
100
+ providers[index] = {
101
+ ...existing,
102
+ ...(patch.name !== undefined ? { name: patch.name } : {}),
103
+ ...(patch.baseUrl !== undefined ? { baseUrl: patch.baseUrl.trim() } : {}),
104
+ ...(patch.apiKey !== undefined ? { apiKey: patch.apiKey } : {}),
105
+ ...(patch.api !== undefined ? { api: patch.api } : {}),
106
+ ...(patch.headers !== undefined ? { headers: patch.headers } : {}),
107
+ ...(patch.models !== undefined ? { models: patch.models } : {}),
108
+ };
109
+ return persistLlmConfig(cwd, { ...current, providers });
103
110
  }
104
111
  export function removeCustomProvider(cwd, providerId) {
105
- const id = providerId.trim();
106
- if (id === KUBBISEC_LLM_PROVIDER_ID) {
107
- throw new Error(`Provider "${KUBBISEC_LLM_PROVIDER_ID}" cannot be removed.`);
108
- }
109
- const current = readLlmConfig(cwd);
110
- const providers = (current.providers ?? []).filter((provider) => provider.id !== id);
111
- if (providers.length === (current.providers ?? []).length) {
112
- throw new Error(`Provider not found: ${id}`);
113
- }
114
- const next = { ...current, providers };
115
- if (current.defaultProvider === id) {
116
- next.defaultProvider = KUBBISEC_LLM_PROVIDER_ID;
117
- }
118
- return persistLlmConfig(cwd, next);
112
+ const id = providerId.trim();
113
+ if (id === KUBBISEC_LLM_PROVIDER_ID) {
114
+ throw new Error(`Provider "${KUBBISEC_LLM_PROVIDER_ID}" cannot be removed.`);
115
+ }
116
+ const current = readLlmConfig(cwd);
117
+ const providers = (current.providers ?? []).filter((provider) => provider.id !== id);
118
+ if (providers.length === (current.providers ?? []).length) {
119
+ throw new Error(`Provider not found: ${id}`);
120
+ }
121
+ const next = { ...current, providers };
122
+ if (current.defaultProvider === id) {
123
+ next.defaultProvider = KUBBISEC_LLM_PROVIDER_ID;
124
+ }
125
+ return persistLlmConfig(cwd, next);
119
126
  }
120
127
  export function addLlmModel(cwd, providerId, model) {
121
- const id = providerId.trim();
122
- const modelId = model.id.trim();
123
- if (!modelId) throw new Error("Model id is required");
124
- const current = readLlmConfig(cwd);
125
- if (id === KUBBISEC_LLM_PROVIDER_ID) {
126
- const models = mergeKubbisecModelCatalog(current.defaultModel, [
127
- ...(current.kubbisec?.models ?? []),
128
- model,
129
- ]);
130
- return persistLlmConfig(cwd, {
131
- ...current,
132
- kubbisec: { models },
133
- });
134
- }
135
- const provider = findCustomProvider(current, id);
136
- if (!provider) throw new Error(`Provider not found: ${id}`);
137
- const models = [...provider.models.filter((entry) => entry.id !== modelId), model];
138
- return updateCustomProvider(cwd, id, { models });
128
+ const id = providerId.trim();
129
+ const modelId = model.id.trim();
130
+ if (!modelId)
131
+ throw new Error("Model id is required");
132
+ const current = readLlmConfig(cwd);
133
+ if (id === KUBBISEC_LLM_PROVIDER_ID) {
134
+ const models = mergeKubbisecModelCatalog(current.defaultModel, [
135
+ ...(current.kubbisec?.models ?? []),
136
+ model,
137
+ ]);
138
+ return persistLlmConfig(cwd, {
139
+ ...current,
140
+ kubbisec: { models },
141
+ });
142
+ }
143
+ const provider = findCustomProvider(current, id);
144
+ if (!provider)
145
+ throw new Error(`Provider not found: ${id}`);
146
+ const models = [...provider.models.filter((entry) => entry.id !== modelId), model];
147
+ return updateCustomProvider(cwd, id, { models });
139
148
  }
140
149
  export function removeLlmModel(cwd, providerId, modelId) {
141
- const provider = providerId.trim();
142
- const id = modelId.trim();
143
- const current = readLlmConfig(cwd);
144
- if (provider === KUBBISEC_LLM_PROVIDER_ID) {
145
- const models = (current.kubbisec?.models ?? []).filter((entry) => entry.id !== id);
146
- if (models.length === (current.kubbisec?.models ?? []).length) {
147
- throw new Error(`Model not found: ${KUBBISEC_LLM_PROVIDER_ID}/${id}`);
150
+ const provider = providerId.trim();
151
+ const id = modelId.trim();
152
+ const current = readLlmConfig(cwd);
153
+ if (provider === KUBBISEC_LLM_PROVIDER_ID) {
154
+ const models = (current.kubbisec?.models ?? []).filter((entry) => entry.id !== id);
155
+ if (models.length === (current.kubbisec?.models ?? []).length) {
156
+ throw new Error(`Model not found: ${KUBBISEC_LLM_PROVIDER_ID}/${id}`);
157
+ }
158
+ return persistLlmConfig(cwd, {
159
+ ...current,
160
+ kubbisec: { models },
161
+ });
162
+ }
163
+ const custom = findCustomProvider(current, provider);
164
+ if (!custom)
165
+ throw new Error(`Provider not found: ${provider}`);
166
+ const models = custom.models.filter((entry) => entry.id !== id);
167
+ if (models.length === custom.models.length) {
168
+ throw new Error(`Model not found: ${provider}/${id}`);
169
+ }
170
+ if (models.length === 0) {
171
+ throw new Error("Cannot remove the last model. Remove the provider instead.");
148
172
  }
149
- return persistLlmConfig(cwd, {
150
- ...current,
151
- kubbisec: { models },
152
- });
153
- }
154
- const custom = findCustomProvider(current, provider);
155
- if (!custom) throw new Error(`Provider not found: ${provider}`);
156
- const models = custom.models.filter((entry) => entry.id !== id);
157
- if (models.length === custom.models.length) {
158
- throw new Error(`Model not found: ${provider}/${id}`);
159
- }
160
- if (models.length === 0) {
161
- throw new Error("Cannot remove the last model. Remove the provider instead.");
162
- }
163
- return updateCustomProvider(cwd, provider, { models });
173
+ return updateCustomProvider(cwd, provider, { models });
164
174
  }
165
175
  export function summarizeLlmConfig(cwd = process.cwd(), config = readLlmConfig(cwd)) {
166
- const kubbisecModels = mergeKubbisecModelCatalog(config.defaultModel, config.kubbisec?.models);
167
- const providers = [
168
- {
169
- id: KUBBISEC_LLM_PROVIDER_ID,
170
- name: KUBBISEC_LLM_PROVIDER_NAME,
171
- apiKeyConfigured: true,
172
- apiKeyHint: "org BYOK proxy",
173
- models: kubbisecModels,
174
- builtin: true,
175
- },
176
- ...(config.providers ?? []).map((provider) => ({
177
- id: provider.id,
178
- name: provider.name?.trim() || provider.id,
179
- baseUrl: provider.baseUrl,
180
- api: provider.api,
181
- apiKeyConfigured:
182
- provider.autodetected === true || Boolean(resolveApiKeyValue(provider.apiKey)),
183
- apiKeyHint: provider.autodetected ? "local server" : maskApiKeyHint(provider.apiKey),
184
- models: provider.models,
185
- builtin: false,
186
- autodetected: provider.autodetected === true,
187
- })),
188
- ];
189
- return {
190
- path: resolveLlmConfigPath(cwd),
191
- defaultProvider: config.defaultProvider ?? KUBBISEC_LLM_PROVIDER_ID,
192
- defaultModel: config.defaultModel,
193
- defaultThinkingLevel: config.defaultThinkingLevel,
194
- temperature: config.temperature,
195
- providers,
196
- };
176
+ const kubbisecModels = mergeKubbisecModelCatalog(config.defaultModel, config.kubbisec?.models);
177
+ const providers = [
178
+ {
179
+ id: KUBBISEC_LLM_PROVIDER_ID,
180
+ name: KUBBISEC_LLM_PROVIDER_NAME,
181
+ apiKeyConfigured: true,
182
+ apiKeyHint: "org BYOK proxy",
183
+ models: kubbisecModels,
184
+ builtin: true,
185
+ },
186
+ ...(config.providers ?? []).map((provider) => ({
187
+ id: provider.id,
188
+ name: provider.name?.trim() || provider.id,
189
+ baseUrl: provider.baseUrl,
190
+ api: provider.api,
191
+ apiKeyConfigured: provider.autodetected === true || Boolean(resolveApiKeyValue(provider.apiKey)),
192
+ apiKeyHint: provider.autodetected ? "local server" : maskApiKeyHint(provider.apiKey),
193
+ models: provider.models,
194
+ builtin: false,
195
+ autodetected: provider.autodetected === true,
196
+ })),
197
+ ];
198
+ return {
199
+ path: resolveLlmConfigPath(cwd),
200
+ defaultProvider: config.defaultProvider ?? KUBBISEC_LLM_PROVIDER_ID,
201
+ defaultModel: config.defaultModel,
202
+ defaultThinkingLevel: config.defaultThinkingLevel,
203
+ temperature: config.temperature,
204
+ providers,
205
+ };
197
206
  }
198
- //# sourceMappingURL=llm-config-mutations.js.map
207
+ //# sourceMappingURL=llm-config-mutations.js.map
@@ -1,79 +1,66 @@
1
1
  export type KubbisecThinkingLevel = "off" | "minimal" | "low" | "medium" | "high" | "xhigh";
2
2
  export type KubbisecLlmModelDef = {
3
- id: string;
4
- name?: string;
5
- reasoning?: boolean;
6
- contextWindow?: number;
7
- maxTokens?: number;
3
+ id: string;
4
+ name?: string;
5
+ reasoning?: boolean;
6
+ contextWindow?: number;
7
+ maxTokens?: number;
8
8
  };
9
9
  export type KubbisecLocalLlmDetectConfig = {
10
- /** Default true — set false to skip Ollama / LM Studio probing. */
11
- autoDetect?: boolean;
12
- ollama?: {
13
- enabled?: boolean;
14
- baseUrl?: string;
15
- };
16
- lmstudio?: {
17
- enabled?: boolean;
18
- baseUrl?: string;
19
- };
10
+ /** Default true — set false to skip Ollama / LM Studio probing. */
11
+ autoDetect?: boolean;
12
+ ollama?: {
13
+ enabled?: boolean;
14
+ baseUrl?: string;
15
+ };
16
+ lmstudio?: {
17
+ enabled?: boolean;
18
+ baseUrl?: string;
19
+ };
20
20
  };
21
21
  export type KubbisecCustomProviderDef = {
22
- id: string;
23
- name?: string;
24
- baseUrl: string;
25
- /** Literal key or env var name (e.g. OPENROUTER_API_KEY). */
26
- apiKey?: string;
27
- api?: "openai-completions" | "openai-responses" | "anthropic-messages";
28
- models: KubbisecLlmModelDef[];
29
- headers?: Record<string, string>;
30
- /** Set when discovered via local server autodetect. */
31
- autodetected?: boolean;
32
- detectSource?: "ollama" | "lmstudio";
22
+ id: string;
23
+ name?: string;
24
+ baseUrl: string;
25
+ /** Literal key or env var name (e.g. OPENROUTER_API_KEY). */
26
+ apiKey?: string;
27
+ api?: "openai-completions" | "openai-responses" | "anthropic-messages";
28
+ models: KubbisecLlmModelDef[];
29
+ headers?: Record<string, string>;
30
+ /** Set when discovered via local server autodetect. */
31
+ autodetected?: boolean;
32
+ detectSource?: "ollama" | "lmstudio";
33
33
  };
34
34
  export type KubbisecLlmConfig = {
35
- defaultProvider?: string;
36
- defaultModel?: string;
37
- defaultThinkingLevel?: KubbisecThinkingLevel;
38
- temperature?: number;
39
- localLlm?: KubbisecLocalLlmDetectConfig;
40
- kubbisec?: {
41
- models?: KubbisecLlmModelDef[];
42
- };
43
- providers?: KubbisecCustomProviderDef[];
35
+ defaultProvider?: string;
36
+ defaultModel?: string;
37
+ defaultThinkingLevel?: KubbisecThinkingLevel;
38
+ temperature?: number;
39
+ localLlm?: KubbisecLocalLlmDetectConfig;
40
+ kubbisec?: {
41
+ models?: KubbisecLlmModelDef[];
42
+ };
43
+ providers?: KubbisecCustomProviderDef[];
44
44
  };
45
45
  export declare function resolveLlmConfigPath(cwd?: string): string;
46
46
  export declare function parseLlmConfig(raw: unknown): KubbisecLlmConfig;
47
47
  export declare function readLlmConfig(cwd?: string): KubbisecLlmConfig;
48
48
  export declare function writeLlmConfig(cwd: string, config: KubbisecLlmConfig): void;
49
- export declare function ensureLlmConfigFromOrg(
50
- cwd: string,
51
- options: {
49
+ export declare function ensureLlmConfigFromOrg(cwd: string, options: {
52
50
  model?: string | null;
53
51
  provider?: string | null;
54
- },
55
- ): KubbisecLlmConfig;
56
- export declare function applyLlmConfigToAgentSettings(
57
- cwd?: string,
58
- config?: KubbisecLlmConfig,
59
- ): void;
52
+ }): KubbisecLlmConfig;
53
+ export declare function applyLlmConfigToAgentSettings(cwd?: string, config?: KubbisecLlmConfig): void;
60
54
  /** @deprecated Use applyLlmConfigToAgentSettings */
61
55
  export declare const applyLlmConfigToPiSettings: typeof applyLlmConfigToAgentSettings;
62
56
  export declare function resolveApiKeyValue(apiKey?: string): string | undefined;
63
57
  export declare function getRuntimeTemperature(config?: KubbisecLlmConfig): number | undefined;
64
58
  export declare function setRuntimeTemperature(value: number | undefined, cwd?: string): void;
65
- export declare function applyTemperatureToProviderPayload(
66
- payload: unknown,
67
- temperature: number | undefined,
68
- ): unknown;
59
+ export declare function applyTemperatureToProviderPayload(payload: unknown, temperature: number | undefined): unknown;
69
60
  export declare function resolveChatModelId(cwd?: string, orgModel?: string | null): string;
70
61
  export declare function resolveChatProviderId(cwd?: string): string;
71
62
  export declare const FOOTER_INFERENCE_UNSET = "\u2014";
72
63
  /** Footer model ref: `provider/id` (no provider display name or KubbiSec branding). */
73
64
  export declare function formatModelFooterLabel(provider: string, modelId: string): string;
74
- export declare function formatModelFooterWithInferenceSettings(
75
- modelRef: string,
76
- thinkingLevel?: string | null,
77
- temperature?: number | null,
78
- ): string;
79
- //# sourceMappingURL=llm-config.d.ts.map
65
+ export declare function formatModelFooterWithInferenceSettings(modelRef: string, thinkingLevel?: string | null, temperature?: number | null): string;
66
+ //# sourceMappingURL=llm-config.d.ts.map