@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.
Files changed (362) hide show
  1. package/bin/kubbisec +0 -0
  2. package/bundled/components/kubbisec-model-selector.d.ts +47 -34
  3. package/bundled/components/kubbisec-model-selector.js +187 -177
  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 +55 -55
  8. package/bundled/config/config.js.map +1 -1
  9. package/bundled/config/detect-local-llm-providers.d.ts +26 -16
  10. package/bundled/config/detect-local-llm-providers.js +130 -142
  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 +45 -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 +67 -48
  18. package/bundled/config/ensure-kubbisec-project-settings.js.map +1 -1
  19. package/bundled/config/extended-context.d.ts +5 -6
  20. package/bundled/config/extended-context.js +23 -22
  21. package/bundled/config/feature-flags.d.ts +10 -2
  22. package/bundled/config/feature-flags.js +8 -2
  23. package/bundled/config/format-kubbisec-footer-status.d.ts +1 -1
  24. package/bundled/config/format-kubbisec-footer-status.js +26 -31
  25. package/bundled/config/kubbisec-extension-manifest.d.ts +21 -2
  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 +51 -25
  30. package/bundled/config/llm-config-mutations.js +173 -182
  31. package/bundled/config/llm-config.d.ts +54 -41
  32. package/bundled/config/llm-config.js +199 -199
  33. package/bundled/config/llm-provider-catalog.d.ts +18 -15
  34. package/bundled/config/llm-provider-catalog.js +45 -46
  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 +173 -183
  38. package/bundled/config/materialize-kubbisec-pi-resources.js.map +1 -1
  39. package/bundled/config/register-custom-llm-providers.d.ts +11 -5
  40. package/bundled/config/register-custom-llm-providers.js +17 -15
  41. package/bundled/config/register-kubbisec-llm-provider.d.ts +14 -10
  42. package/bundled/config/register-kubbisec-llm-provider.js +50 -42
  43. package/bundled/config/resolve-agents-context-file.d.ts +1 -1
  44. package/bundled/config/resolve-agents-context-file.js +33 -34
  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 +6 -3
  48. package/bundled/config/sync-kubbisec-pi-models.js +58 -58
  49. package/bundled/copy/cli-reference-index.d.ts +2 -6
  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 +11 -6
  54. package/bundled/copy/kubbisec-shell-copy.js +1 -1
  55. package/bundled/extensions/cli-local-shared.d.ts +60 -26
  56. package/bundled/extensions/cli-local-shared.d.ts.map +1 -1
  57. package/bundled/extensions/cli-local-shared.js +139 -118
  58. package/bundled/extensions/cli-local-shared.js.map +1 -1
  59. package/bundled/extensions/kubbisec-aspm-local.extension.d.ts +18 -15
  60. package/bundled/extensions/kubbisec-aspm-local.extension.d.ts.map +1 -1
  61. package/bundled/extensions/kubbisec-aspm-local.extension.js +109 -117
  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 +64 -35
  68. package/bundled/extensions/kubbisec-clarify.extension.d.ts.map +1 -1
  69. package/bundled/extensions/kubbisec-clarify.extension.js +323 -305
  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 +29 -32
  73. package/bundled/extensions/kubbisec-extended-context.extension.d.ts +1 -1
  74. package/bundled/extensions/kubbisec-extended-context.extension.js +56 -43
  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 +205 -215
  78. package/bundled/extensions/kubbisec-footer.extension.js.map +1 -1
  79. package/bundled/extensions/kubbisec-github-local.extension.d.ts +26 -21
  80. package/bundled/extensions/kubbisec-github-local.extension.d.ts.map +1 -1
  81. package/bundled/extensions/kubbisec-github-local.extension.js +470 -122
  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 +200 -181
  85. package/bundled/extensions/kubbisec-memory.extension.d.ts +9 -7
  86. package/bundled/extensions/kubbisec-memory.extension.d.ts.map +1 -1
  87. package/bundled/extensions/kubbisec-memory.extension.js +88 -95
  88. package/bundled/extensions/kubbisec-naus-local.extension.d.ts +18 -15
  89. package/bundled/extensions/kubbisec-naus-local.extension.d.ts.map +1 -1
  90. package/bundled/extensions/kubbisec-naus-local.extension.js +123 -114
  91. package/bundled/extensions/kubbisec-naus-local.extension.js.map +1 -1
  92. package/bundled/extensions/kubbisec-platform-tools.extension.d.ts +31 -21
  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 +10 -8
  97. package/bundled/extensions/kubbisec-runtime-status.extension.js +15 -13
  98. package/bundled/extensions/kubbisec-scope.extension.d.ts +12 -7
  99. package/bundled/extensions/kubbisec-scope.extension.js +13 -13
  100. package/bundled/extensions/kubbisec-skill-mentions.extension.d.ts +27 -16
  101. package/bundled/extensions/kubbisec-skill-mentions.extension.d.ts.map +1 -1
  102. package/bundled/extensions/kubbisec-skill-mentions.extension.js +74 -63
  103. package/bundled/extensions/kubbisec-skill-mentions.extension.js.map +1 -1
  104. package/bundled/extensions/kubbisec-skill-telemetry.extension.d.ts +2 -3
  105. package/bundled/extensions/kubbisec-skill-telemetry.extension.js +59 -64
  106. package/bundled/extensions/kubbisec-theme-lock.extension.d.ts +1 -1
  107. package/bundled/extensions/kubbisec-theme-lock.extension.js +33 -34
  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 +118 -109
  111. package/bundled/extensions/kubbisec-ui.extension.js.map +1 -1
  112. package/bundled/extensions/kubbisec-workflow.extension.d.ts +20 -18
  113. package/bundled/extensions/kubbisec-workflow.extension.d.ts.map +1 -1
  114. package/bundled/extensions/kubbisec-workflow.extension.js +138 -140
  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 +54 -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/redaction.test.d.ts +2 -0
  250. package/bundled/node_modules/@aspm/shared/dist/redaction.test.d.ts.map +1 -0
  251. package/bundled/node_modules/@aspm/shared/dist/redaction.test.js +626 -0
  252. package/bundled/node_modules/@aspm/shared/dist/redaction.test.js.map +1 -0
  253. package/bundled/node_modules/@aspm/shared/dist/security/aspm-gate-rules.d.ts.map +1 -1
  254. package/bundled/node_modules/@aspm/shared/dist/security/aspm-gate-rules.js.map +1 -1
  255. package/bundled/node_modules/@aspm/shared/dist/security/build-aspm-security-matrix-pipeline-yaml.d.ts.map +1 -1
  256. package/bundled/node_modules/@aspm/shared/dist/security/build-aspm-security-matrix-pipeline-yaml.js.map +1 -1
  257. package/bundled/node_modules/@aspm/shared/dist/security/build-github-security-workflow-yaml.d.ts.map +1 -1
  258. package/bundled/node_modules/@aspm/shared/dist/security/build-github-security-workflow-yaml.js +2 -2
  259. package/bundled/node_modules/@aspm/shared/dist/security/build-github-security-workflow-yaml.js.map +1 -1
  260. package/bundled/node_modules/@aspm/shared/dist/security/index.d.ts +2 -2
  261. package/bundled/node_modules/@aspm/shared/dist/security/index.d.ts.map +1 -1
  262. package/bundled/node_modules/@aspm/shared/dist/security/index.js +2 -2
  263. package/bundled/node_modules/@aspm/shared/dist/security/index.js.map +1 -1
  264. package/bundled/node_modules/@aspm/shared/dist/shared-project/constants.d.ts +4 -0
  265. package/bundled/node_modules/@aspm/shared/dist/shared-project/constants.d.ts.map +1 -0
  266. package/bundled/node_modules/@aspm/shared/dist/shared-project/constants.js +10 -0
  267. package/bundled/node_modules/@aspm/shared/dist/shared-project/constants.js.map +1 -0
  268. package/bundled/node_modules/@aspm/shared/dist/shared-project/index.d.ts +4 -0
  269. package/bundled/node_modules/@aspm/shared/dist/shared-project/index.d.ts.map +1 -0
  270. package/bundled/node_modules/@aspm/shared/dist/shared-project/index.js +20 -0
  271. package/bundled/node_modules/@aspm/shared/dist/shared-project/index.js.map +1 -0
  272. package/bundled/node_modules/@aspm/shared/dist/shared-project/redact-log-lines.d.ts +2 -0
  273. package/bundled/node_modules/@aspm/shared/dist/shared-project/redact-log-lines.d.ts.map +1 -0
  274. package/bundled/node_modules/@aspm/shared/dist/shared-project/redact-log-lines.js +9 -0
  275. package/bundled/node_modules/@aspm/shared/dist/shared-project/redact-log-lines.js.map +1 -0
  276. package/bundled/node_modules/@aspm/shared/dist/shared-project/share-prefix.d.ts +3 -0
  277. package/bundled/node_modules/@aspm/shared/dist/shared-project/share-prefix.d.ts.map +1 -0
  278. package/bundled/node_modules/@aspm/shared/dist/shared-project/share-prefix.js +18 -0
  279. package/bundled/node_modules/@aspm/shared/dist/shared-project/share-prefix.js.map +1 -0
  280. package/bundled/node_modules/@aspm/shared/package.json +27 -5
  281. package/bundled/node_modules/@kubbisec/chat-memory/dist/sanitizer.js +2 -2
  282. package/bundled/node_modules/@kubbisec/chat-memory/dist/sanitizer.js.map +1 -1
  283. package/bundled/node_modules/@kubbisec/chat-memory/package.json +4 -4
  284. package/bundled/node_modules/@kubbisec/home/dist/migrate.d.ts.map +1 -1
  285. package/bundled/node_modules/@kubbisec/home/dist/migrate.js +1 -1
  286. package/bundled/node_modules/@kubbisec/home/dist/migrate.js.map +1 -1
  287. package/bundled/node_modules/@kubbisec/home/package.json +3 -3
  288. package/bundled/resolve-bundled-dist-root.js +121 -131
  289. package/bundled/resolve-bundled-dist-root.js.map +1 -1
  290. package/bundled/skills/aspm-platform/SKILL.md +3 -1
  291. package/bundled/skills/at-path-mentions.d.ts +1 -1
  292. package/bundled/skills/at-path-mentions.js +146 -153
  293. package/bundled/skills/chat-mention-render.d.ts +2 -2
  294. package/bundled/skills/chat-mention-render.js +121 -126
  295. package/bundled/skills/chat-mentions.d.ts +17 -8
  296. package/bundled/skills/chat-mentions.js +76 -76
  297. package/bundled/skills/github-local/SKILL.md +5 -5
  298. package/bundled/skills/kubbisec-resource-router/SKILL.md +3 -0
  299. package/bundled/skills/list-bundled-skills.d.ts +3 -3
  300. package/bundled/skills/list-bundled-skills.js +33 -35
  301. package/bundled/skills/naus-pipelines/SKILL.md +11 -10
  302. package/bundled/skills/remediation/SKILL.md +1 -1
  303. package/bundled/skills/skill-mention.d.ts +10 -2
  304. package/bundled/skills/skill-mention.js +10 -2
  305. package/bundled/theme/clear-terminal.d.ts +1 -1
  306. package/bundled/theme/clear-terminal.js +3 -4
  307. package/bundled/theme/footer-render-hook.d.ts +1 -1
  308. package/bundled/theme/footer-render-hook.js +3 -3
  309. package/bundled/theme/kubbisec-brand-fg.d.ts +1 -1
  310. package/bundled/theme/kubbisec-brand-fg.js +2 -2
  311. package/bundled/theme/kubbisec-menu-themes.d.ts +7 -7
  312. package/bundled/theme/kubbisec-menu-themes.js +30 -31
  313. package/bundled/theme/kubbisec-theme-name.d.ts +1 -1
  314. package/bundled/theme/kubbisec-theme-name.js +1 -1
  315. package/bundled/theme/patch-pi-settings-theme.runtime.d.ts +1 -1
  316. package/bundled/theme/patch-pi-settings-theme.runtime.js +11 -10
  317. package/bundled/theme/render-compact-header.d.ts +13 -5
  318. package/bundled/theme/render-compact-header.js +127 -129
  319. package/bundled/theme/render-compact-header.js.map +1 -1
  320. package/bundled/workflow/session-workflow-mode.d.ts +1 -1
  321. package/bundled/workflow/session-workflow-mode.js +33 -33
  322. package/package.json +1 -1
  323. package/bundled/clarify/clarify-gate-state.d.ts +0 -3
  324. package/bundled/clarify/clarify-gate-state.d.ts.map +0 -1
  325. package/bundled/clarify/clarify-gate-state.js +0 -9
  326. package/bundled/clarify/clarify-gate-state.js.map +0 -1
  327. package/bundled/clarify/clarify-gate.d.ts +0 -28
  328. package/bundled/clarify/clarify-gate.d.ts.map +0 -1
  329. package/bundled/clarify/clarify-gate.js +0 -152
  330. package/bundled/clarify/clarify-gate.js.map +0 -1
  331. package/bundled/clarify/clarify-select-panel.d.ts +0 -14
  332. package/bundled/clarify/clarify-select-panel.d.ts.map +0 -1
  333. package/bundled/clarify/clarify-select-panel.js +0 -82
  334. package/bundled/clarify/clarify-select-panel.js.map +0 -1
  335. package/bundled/clarify/clarify-ui-state.d.ts +0 -21
  336. package/bundled/clarify/clarify-ui-state.d.ts.map +0 -1
  337. package/bundled/clarify/clarify-ui-state.js +0 -48
  338. package/bundled/clarify/clarify-ui-state.js.map +0 -1
  339. package/bundled/clarify/parse-clarify-answer.d.ts +0 -21
  340. package/bundled/clarify/parse-clarify-answer.d.ts.map +0 -1
  341. package/bundled/clarify/parse-clarify-answer.js +0 -57
  342. package/bundled/clarify/parse-clarify-answer.js.map +0 -1
  343. package/bundled/clarify/question-format.d.ts +0 -39
  344. package/bundled/clarify/question-format.d.ts.map +0 -1
  345. package/bundled/clarify/question-format.js +0 -144
  346. package/bundled/clarify/question-format.js.map +0 -1
  347. package/bundled/clarify/questionnaire-tool.d.ts +0 -25
  348. package/bundled/clarify/questionnaire-tool.d.ts.map +0 -1
  349. package/bundled/clarify/questionnaire-tool.js +0 -161
  350. package/bundled/clarify/questionnaire-tool.js.map +0 -1
  351. package/bundled/clarify/scope-discovery.d.ts +0 -9
  352. package/bundled/clarify/scope-discovery.d.ts.map +0 -1
  353. package/bundled/clarify/scope-discovery.js +0 -130
  354. package/bundled/clarify/scope-discovery.js.map +0 -1
  355. package/bundled/clarify/session-questionnaire.d.ts +0 -26
  356. package/bundled/clarify/session-questionnaire.d.ts.map +0 -1
  357. package/bundled/clarify/session-questionnaire.js +0 -372
  358. package/bundled/clarify/session-questionnaire.js.map +0 -1
  359. package/bundled/clarify/session-questionnaire.types.d.ts +0 -47
  360. package/bundled/clarify/session-questionnaire.types.d.ts.map +0 -1
  361. package/bundled/clarify/session-questionnaire.types.js +0 -13
  362. package/bundled/clarify/session-questionnaire.types.js.map +0 -1
@@ -1,53 +1,61 @@
1
1
  import { readLlmConfig } from "./llm-config.js";
2
- import { KUBBISEC_LLM_PROVIDER_ID, KUBBISEC_LLM_PROVIDER_NAME, mergeKubbisecModelCatalog, toProviderModelConfig, } from "./llm-provider-catalog.js";
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
- return (process.env.KUBBISEC_AI_LLM_BASE_URL?.trim() ||
5
- process.env.KUBBISEC_PI_LLM_BASE_URL?.trim() ||
6
- process.env.OPENAI_BASE_URL?.trim());
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
- return (config.defaultModel?.trim() ||
10
- process.env.KUBBISEC_AI_MODEL_ID?.trim() ||
11
- process.env.KUBBISEC_AI_MODEL?.trim() ||
12
- process.env.KUBBISEC_PI_MODEL?.trim() ||
13
- process.env.NAUS_PI_MODEL?.trim() ||
14
- "gpt-4o");
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
- const headers = {
18
- Authorization: `Bearer ${token}`,
19
- "x-api-key": token,
20
- };
21
- const orgId = process.env.KUBBISEC_ORG_ID?.trim();
22
- if (orgId)
23
- headers["x-organization-id"] = orgId;
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
- const baseUrl = resolveLlmBaseUrl();
28
- if (!baseUrl)
29
- return null;
30
- const token = process.env.KUBBISEC_JOB_TOKEN?.trim() ||
31
- process.env.KUBBISEC_API_KEY?.trim() ||
32
- process.env.OPENAI_API_KEY?.trim();
33
- const headers = token ? resolveProxyHeaders(token) : {};
34
- const llmConfig = readLlmConfig(cwd);
35
- const defaultModelId = resolveModelId(llmConfig);
36
- const catalog = mergeKubbisecModelCatalog(defaultModelId, llmConfig.kubbisec?.models);
37
- return {
38
- name: KUBBISEC_LLM_PROVIDER_NAME,
39
- baseUrl,
40
- ...(token ? { apiKey: token } : {}),
41
- api: "openai-completions",
42
- ...(Object.keys(headers).length > 0 ? { headers } : {}),
43
- models: catalog.map(toProviderModelConfig),
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
- const config = buildKubbisecLlmProviderConfig(cwd);
48
- if (!config)
49
- return false;
50
- register(KUBBISEC_LLM_PROVIDER_ID, config);
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
- let dir = path.resolve(startDir);
7
- while (true) {
8
- for (const name of CONTEXT_FILENAMES) {
9
- const candidate = path.join(dir, name);
10
- if (fs.existsSync(candidate) && fs.statSync(candidate).isFile()) {
11
- return candidate;
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
- const base = path.basename(filePath);
22
- const homeDir = home?.trim();
23
- if (!homeDir)
24
- return base;
25
- const resolved = resolve(filePath);
26
- const resolvedHome = resolve(homeDir);
27
- const rel = relative(resolvedHome, resolved);
28
- const insideHome = 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);
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
- if (text.length <= maxLen)
37
- return text;
38
- const ellipsis = "…";
39
- const room = Math.max(4, maxLen - ellipsis.length);
40
- const head = Math.max(2, Math.ceil(room * 0.45));
41
- const tail = Math.max(2, room - head);
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
- return `ctx ${formatAgentsContextLabel(filePath, home)}`;
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
- 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;
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
- 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,
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
- 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,
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
- 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
- };
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(cwd?: string, options?: {
9
+ export declare function syncKubbisecProvidersToPiModelsJson(
10
+ cwd?: string,
11
+ options?: {
10
12
  modelsJsonPath?: string;
11
- }): boolean;
12
- //# sourceMappingURL=sync-kubbisec-pi-models.d.ts.map
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, } from "./register-kubbisec-llm-provider.js";
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
- if (filePath === "~")
11
- return os.homedir();
12
- if (filePath.startsWith("~/"))
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
- const envDir = process.env.KUBBISEC_CODING_AGENT_DIR?.trim();
18
- if (envDir) {
19
- return path.join(expandTildePath(envDir), "models.json");
20
- }
21
- return path.join(os.homedir(), KUBBISEC_PI_AGENT_CONFIG_DIR, "agent", "models.json");
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
- try {
25
- const parsed = JSON.parse(fs.readFileSync(filePath, "utf8"));
26
- if (parsed &&
27
- typeof parsed === "object" &&
28
- !Array.isArray(parsed) &&
29
- typeof parsed.providers === "object" &&
30
- parsed.providers !== null) {
31
- return parsed;
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
- return { providers: {} };
33
+ } catch {
34
+ /* missing or invalid */
35
+ }
36
+ return { providers: {} };
38
37
  }
39
38
  function buildCustomProviderPiEntry(provider) {
40
- const apiKey = 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
- };
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
- 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);
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
- * Compact CLI index preloaded into kubbisec chat system prompt.
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;;;GAGG;AACH,eAAO,MAAM,4BAA4B,y3GAwDlB,CAAC"}
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
- * Compact CLI index preloaded into kubbisec chat system prompt.
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;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAwDrB,CAAC"}
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 = "Assistant \u00B7 ASPM Remediation \u00B7 Naus CI \u00B7 Coding";
4
- export declare const KUBBISEC_COMPACT_HEADER_TAGLINE = "Assistant \u00B7 ASPM Remediation \u00B7 Naus CI \u00B7 Coding";
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 = "kubbisec fix \u00B7 kubbisec watch \u00B7 kubbisec ls \u00B7 /help \u00B7 /exit";
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 = "@skill name \u00B7 kubbisec fix \u00B7 kubbisec watch \u00B7 kubbisec ls \u00B7 /help \u00B7 /exit";
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 = "Assistant \u00B7 ASPM Remediation \u00B7 Naus CI \u00B7 Coding";
21
- //# sourceMappingURL=kubbisec-shell-copy.d.ts.map
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