@kubbisec/ai-linux-x64 0.1.9 → 0.1.11

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 (198) hide show
  1. package/bin/kubbisec +0 -0
  2. package/bundled/components/kubbisec-model-selector.d.ts +44 -0
  3. package/bundled/components/kubbisec-model-selector.d.ts.map +1 -0
  4. package/bundled/components/kubbisec-model-selector.js +197 -0
  5. package/bundled/components/kubbisec-model-selector.js.map +1 -0
  6. package/bundled/config/ensure-kubbisec-project-settings.d.ts +5 -4
  7. package/bundled/config/ensure-kubbisec-project-settings.d.ts.map +1 -1
  8. package/bundled/config/ensure-kubbisec-project-settings.js +9 -22
  9. package/bundled/config/ensure-kubbisec-project-settings.js.map +1 -1
  10. package/bundled/config/kubbisec-extension-manifest.d.ts +3 -0
  11. package/bundled/config/kubbisec-extension-manifest.d.ts.map +1 -0
  12. package/bundled/config/kubbisec-extension-manifest.js +23 -0
  13. package/bundled/config/kubbisec-extension-manifest.js.map +1 -0
  14. package/bundled/config/llm-config.d.ts +7 -2
  15. package/bundled/config/llm-config.d.ts.map +1 -1
  16. package/bundled/config/llm-config.js +30 -14
  17. package/bundled/config/llm-config.js.map +1 -1
  18. package/bundled/config/materialize-kubbisec-pi-resources.d.ts +14 -8
  19. package/bundled/config/materialize-kubbisec-pi-resources.d.ts.map +1 -1
  20. package/bundled/config/materialize-kubbisec-pi-resources.js +137 -36
  21. package/bundled/config/materialize-kubbisec-pi-resources.js.map +1 -1
  22. package/bundled/config/register-kubbisec-llm-provider.d.ts +4 -2
  23. package/bundled/config/register-kubbisec-llm-provider.d.ts.map +1 -1
  24. package/bundled/config/register-kubbisec-llm-provider.js +10 -4
  25. package/bundled/config/register-kubbisec-llm-provider.js.map +1 -1
  26. package/bundled/config/sync-kubbisec-pi-models.d.ts +12 -0
  27. package/bundled/config/sync-kubbisec-pi-models.d.ts.map +1 -0
  28. package/bundled/config/sync-kubbisec-pi-models.js +80 -0
  29. package/bundled/config/sync-kubbisec-pi-models.js.map +1 -0
  30. package/bundled/extensions/kubbisec-brand.extension.d.ts +2 -19
  31. package/bundled/extensions/kubbisec-brand.extension.d.ts.map +1 -1
  32. package/bundled/extensions/kubbisec-brand.extension.js +21 -21
  33. package/bundled/extensions/kubbisec-brand.extension.js.map +1 -1
  34. package/bundled/extensions/kubbisec-footer.extension.d.ts +2 -68
  35. package/bundled/extensions/kubbisec-footer.extension.d.ts.map +1 -1
  36. package/bundled/extensions/kubbisec-footer.extension.js +27 -13
  37. package/bundled/extensions/kubbisec-footer.extension.js.map +1 -1
  38. package/bundled/extensions/kubbisec-llm-config.extension.d.ts.map +1 -1
  39. package/bundled/extensions/kubbisec-llm-config.extension.js +5 -1
  40. package/bundled/extensions/kubbisec-llm-config.extension.js.map +1 -1
  41. package/bundled/extensions/kubbisec-theme-lock.extension.d.ts.map +1 -1
  42. package/bundled/extensions/kubbisec-theme-lock.extension.js +3 -0
  43. package/bundled/extensions/kubbisec-theme-lock.extension.js.map +1 -1
  44. package/bundled/extensions/kubbisec-ui.extension.d.ts.map +1 -1
  45. package/bundled/extensions/kubbisec-ui.extension.js +2 -1
  46. package/bundled/extensions/kubbisec-ui.extension.js.map +1 -1
  47. package/bundled/node_modules/@aspm/shared/dist/ai/evaluation-dataset-50.d.ts +311 -0
  48. package/bundled/node_modules/@aspm/shared/dist/ai/evaluation-dataset-50.d.ts.map +1 -0
  49. package/bundled/node_modules/@aspm/shared/dist/ai/evaluation-dataset-50.js +357 -0
  50. package/bundled/node_modules/@aspm/shared/dist/ai/evaluation-dataset-50.js.map +1 -0
  51. package/bundled/node_modules/@aspm/shared/dist/ai/index.d.ts +2 -0
  52. package/bundled/node_modules/@aspm/shared/dist/ai/index.d.ts.map +1 -0
  53. package/bundled/node_modules/@aspm/shared/dist/ai/index.js +18 -0
  54. package/bundled/node_modules/@aspm/shared/dist/ai/index.js.map +1 -0
  55. package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-session-key.d.ts +20 -0
  56. package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-session-key.d.ts.map +1 -0
  57. package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-session-key.js +33 -0
  58. package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-session-key.js.map +1 -0
  59. package/bundled/node_modules/@aspm/shared/dist/assistant/index.d.ts +2 -0
  60. package/bundled/node_modules/@aspm/shared/dist/assistant/index.d.ts.map +1 -0
  61. package/bundled/node_modules/@aspm/shared/dist/assistant/index.js +18 -0
  62. package/bundled/node_modules/@aspm/shared/dist/assistant/index.js.map +1 -0
  63. package/bundled/node_modules/@aspm/shared/dist/cli-user-error.d.ts +18 -0
  64. package/bundled/node_modules/@aspm/shared/dist/cli-user-error.d.ts.map +1 -0
  65. package/bundled/node_modules/@aspm/shared/dist/cli-user-error.js +92 -0
  66. package/bundled/node_modules/@aspm/shared/dist/cli-user-error.js.map +1 -0
  67. package/bundled/node_modules/@aspm/shared/dist/dto/bulk-import-github-projects.dto.d.ts +25 -0
  68. package/bundled/node_modules/@aspm/shared/dist/dto/bulk-import-github-projects.dto.d.ts.map +1 -0
  69. package/bundled/node_modules/@aspm/shared/dist/dto/bulk-import-github-projects.dto.js +85 -0
  70. package/bundled/node_modules/@aspm/shared/dist/dto/bulk-import-github-projects.dto.js.map +1 -0
  71. package/bundled/node_modules/@aspm/shared/dist/dto/create-bundle-report.dto.d.ts +14 -0
  72. package/bundled/node_modules/@aspm/shared/dist/dto/create-bundle-report.dto.d.ts.map +1 -0
  73. package/bundled/node_modules/@aspm/shared/dist/dto/create-bundle-report.dto.js +64 -0
  74. package/bundled/node_modules/@aspm/shared/dist/dto/create-bundle-report.dto.js.map +1 -0
  75. package/bundled/node_modules/@aspm/shared/dist/dto/create-coverage-report.dto.d.ts +18 -0
  76. package/bundled/node_modules/@aspm/shared/dist/dto/create-coverage-report.dto.d.ts.map +1 -0
  77. package/bundled/node_modules/@aspm/shared/dist/dto/create-coverage-report.dto.js +124 -0
  78. package/bundled/node_modules/@aspm/shared/dist/dto/create-coverage-report.dto.js.map +1 -0
  79. package/bundled/node_modules/@aspm/shared/dist/dto/create-project.dto.d.ts +65 -0
  80. package/bundled/node_modules/@aspm/shared/dist/dto/create-project.dto.d.ts.map +1 -0
  81. package/bundled/node_modules/@aspm/shared/dist/dto/create-project.dto.js +359 -0
  82. package/bundled/node_modules/@aspm/shared/dist/dto/create-project.dto.js.map +1 -0
  83. package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.d.ts +26 -0
  84. package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.d.ts.map +1 -0
  85. package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.js +139 -0
  86. package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.js.map +1 -0
  87. package/bundled/node_modules/@aspm/shared/dist/dto/create-scan-target.dto.d.ts +8 -0
  88. package/bundled/node_modules/@aspm/shared/dist/dto/create-scan-target.dto.d.ts.map +1 -0
  89. package/bundled/node_modules/@aspm/shared/dist/dto/create-scan-target.dto.js +51 -0
  90. package/bundled/node_modules/@aspm/shared/dist/dto/create-scan-target.dto.js.map +1 -0
  91. package/bundled/node_modules/@aspm/shared/dist/dto/create-vulnerability.dto.d.ts +34 -0
  92. package/bundled/node_modules/@aspm/shared/dist/dto/create-vulnerability.dto.d.ts.map +1 -0
  93. package/bundled/node_modules/@aspm/shared/dist/dto/create-vulnerability.dto.js +186 -0
  94. package/bundled/node_modules/@aspm/shared/dist/dto/create-vulnerability.dto.js.map +1 -0
  95. package/bundled/node_modules/@aspm/shared/dist/dto/index.d.ts +13 -0
  96. package/bundled/node_modules/@aspm/shared/dist/dto/index.d.ts.map +1 -0
  97. package/bundled/node_modules/@aspm/shared/dist/dto/index.js +41 -0
  98. package/bundled/node_modules/@aspm/shared/dist/dto/index.js.map +1 -0
  99. package/bundled/node_modules/@aspm/shared/dist/dto/metrics.dto.d.ts +203 -0
  100. package/bundled/node_modules/@aspm/shared/dist/dto/metrics.dto.d.ts.map +1 -0
  101. package/bundled/node_modules/@aspm/shared/dist/dto/metrics.dto.js +42 -0
  102. package/bundled/node_modules/@aspm/shared/dist/dto/metrics.dto.js.map +1 -0
  103. package/bundled/node_modules/@aspm/shared/dist/dto/update-coverage-gate.dto.d.ts +7 -0
  104. package/bundled/node_modules/@aspm/shared/dist/dto/update-coverage-gate.dto.d.ts.map +1 -0
  105. package/bundled/node_modules/@aspm/shared/dist/dto/update-coverage-gate.dto.js +47 -0
  106. package/bundled/node_modules/@aspm/shared/dist/dto/update-coverage-gate.dto.js.map +1 -0
  107. package/bundled/node_modules/@aspm/shared/dist/dto/update-performance-gate.dto.d.ts +6 -0
  108. package/bundled/node_modules/@aspm/shared/dist/dto/update-performance-gate.dto.d.ts.map +1 -0
  109. package/bundled/node_modules/@aspm/shared/dist/dto/update-performance-gate.dto.js +36 -0
  110. package/bundled/node_modules/@aspm/shared/dist/dto/update-performance-gate.dto.js.map +1 -0
  111. package/bundled/node_modules/@aspm/shared/dist/dto/update-security-gate.dto.d.ts +9 -0
  112. package/bundled/node_modules/@aspm/shared/dist/dto/update-security-gate.dto.d.ts.map +1 -0
  113. package/bundled/node_modules/@aspm/shared/dist/dto/update-security-gate.dto.js +58 -0
  114. package/bundled/node_modules/@aspm/shared/dist/dto/update-security-gate.dto.js.map +1 -0
  115. package/bundled/node_modules/@aspm/shared/dist/dto/update-vulnerability.dto.d.ts +6 -0
  116. package/bundled/node_modules/@aspm/shared/dist/dto/update-vulnerability.dto.d.ts.map +1 -0
  117. package/bundled/node_modules/@aspm/shared/dist/dto/update-vulnerability.dto.js +30 -0
  118. package/bundled/node_modules/@aspm/shared/dist/dto/update-vulnerability.dto.js.map +1 -0
  119. package/bundled/node_modules/@aspm/shared/dist/enums.d.ts +86 -0
  120. package/bundled/node_modules/@aspm/shared/dist/enums.d.ts.map +1 -0
  121. package/bundled/node_modules/@aspm/shared/dist/enums.js +132 -0
  122. package/bundled/node_modules/@aspm/shared/dist/enums.js.map +1 -0
  123. package/bundled/node_modules/@aspm/shared/dist/github/kubbisec-github-label.d.ts +6 -0
  124. package/bundled/node_modules/@aspm/shared/dist/github/kubbisec-github-label.d.ts.map +1 -0
  125. package/bundled/node_modules/@aspm/shared/dist/github/kubbisec-github-label.js +9 -0
  126. package/bundled/node_modules/@aspm/shared/dist/github/kubbisec-github-label.js.map +1 -0
  127. package/bundled/node_modules/@aspm/shared/dist/index.d.ts +12 -0
  128. package/bundled/node_modules/@aspm/shared/dist/index.d.ts.map +1 -0
  129. package/bundled/node_modules/@aspm/shared/dist/index.js +28 -0
  130. package/bundled/node_modules/@aspm/shared/dist/index.js.map +1 -0
  131. package/bundled/node_modules/@aspm/shared/dist/rbac/better-auth-org-roles.d.ts +23 -0
  132. package/bundled/node_modules/@aspm/shared/dist/rbac/better-auth-org-roles.d.ts.map +1 -0
  133. package/bundled/node_modules/@aspm/shared/dist/rbac/better-auth-org-roles.js +54 -0
  134. package/bundled/node_modules/@aspm/shared/dist/rbac/better-auth-org-roles.js.map +1 -0
  135. package/bundled/node_modules/@aspm/shared/dist/rbac/index.d.ts +7 -0
  136. package/bundled/node_modules/@aspm/shared/dist/rbac/index.d.ts.map +1 -0
  137. package/bundled/node_modules/@aspm/shared/dist/rbac/index.js +23 -0
  138. package/bundled/node_modules/@aspm/shared/dist/rbac/index.js.map +1 -0
  139. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.d.ts +9 -0
  140. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.d.ts.map +1 -0
  141. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.js +91 -0
  142. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.js.map +1 -0
  143. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.d.ts +12 -0
  144. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.d.ts.map +1 -0
  145. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.js +86 -0
  146. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.js.map +1 -0
  147. package/bundled/node_modules/@aspm/shared/dist/rbac/platform-staff.d.ts +14 -0
  148. package/bundled/node_modules/@aspm/shared/dist/rbac/platform-staff.d.ts.map +1 -0
  149. package/bundled/node_modules/@aspm/shared/dist/rbac/platform-staff.js +52 -0
  150. package/bundled/node_modules/@aspm/shared/dist/rbac/platform-staff.js.map +1 -0
  151. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.d.ts +10 -0
  152. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.d.ts.map +1 -0
  153. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.js +199 -0
  154. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.js.map +1 -0
  155. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-platform-permissions.d.ts +7 -0
  156. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-platform-permissions.d.ts.map +1 -0
  157. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-platform-permissions.js +23 -0
  158. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-platform-permissions.js.map +1 -0
  159. package/bundled/node_modules/@aspm/shared/dist/redaction.d.ts +13 -0
  160. package/bundled/node_modules/@aspm/shared/dist/redaction.d.ts.map +1 -0
  161. package/bundled/node_modules/@aspm/shared/dist/redaction.js +249 -0
  162. package/bundled/node_modules/@aspm/shared/dist/redaction.js.map +1 -0
  163. package/bundled/node_modules/@aspm/shared/dist/severity-map.d.ts +8 -0
  164. package/bundled/node_modules/@aspm/shared/dist/severity-map.d.ts.map +1 -0
  165. package/bundled/node_modules/@aspm/shared/dist/severity-map.js +47 -0
  166. package/bundled/node_modules/@aspm/shared/dist/severity-map.js.map +1 -0
  167. package/bundled/node_modules/@aspm/shared/dist/sort-findings.d.ts +16 -0
  168. package/bundled/node_modules/@aspm/shared/dist/sort-findings.d.ts.map +1 -0
  169. package/bundled/node_modules/@aspm/shared/dist/sort-findings.js +67 -0
  170. package/bundled/node_modules/@aspm/shared/dist/sort-findings.js.map +1 -0
  171. package/bundled/node_modules/@aspm/shared/package.json +39 -0
  172. package/bundled/resolve-bundled-dist-root.js +9 -5
  173. package/bundled/resolve-bundled-dist-root.js.map +1 -1
  174. package/bundled/theme/footer-render-hook.d.ts +3 -0
  175. package/bundled/theme/footer-render-hook.d.ts.map +1 -0
  176. package/bundled/theme/footer-render-hook.js +8 -0
  177. package/bundled/theme/footer-render-hook.js.map +1 -0
  178. package/bundled/theme/kubbisec-brand-fg.d.ts +4 -0
  179. package/bundled/theme/kubbisec-brand-fg.d.ts.map +1 -0
  180. package/bundled/theme/kubbisec-brand-fg.js +7 -0
  181. package/bundled/theme/kubbisec-brand-fg.js.map +1 -0
  182. package/bundled/theme/kubbisec-menu-themes.d.ts +16 -0
  183. package/bundled/theme/kubbisec-menu-themes.d.ts.map +1 -0
  184. package/bundled/theme/kubbisec-menu-themes.js +47 -0
  185. package/bundled/theme/kubbisec-menu-themes.js.map +1 -0
  186. package/bundled/theme/patch-pi-settings-theme.runtime.d.ts +3 -0
  187. package/bundled/theme/patch-pi-settings-theme.runtime.d.ts.map +1 -0
  188. package/bundled/theme/patch-pi-settings-theme.runtime.js +16 -0
  189. package/bundled/theme/patch-pi-settings-theme.runtime.js.map +1 -0
  190. package/bundled/theme/render-compact-header.d.ts +7 -2
  191. package/bundled/theme/render-compact-header.d.ts.map +1 -1
  192. package/bundled/theme/render-compact-header.js +78 -12
  193. package/bundled/theme/render-compact-header.js.map +1 -1
  194. package/bundled/workflow/session-workflow-mode.d.ts +10 -0
  195. package/bundled/workflow/session-workflow-mode.d.ts.map +1 -0
  196. package/bundled/workflow/session-workflow-mode.js +51 -0
  197. package/bundled/workflow/session-workflow-mode.js.map +1 -0
  198. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evaluation-dataset-50.js","sourceRoot":"","sources":["../../src/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0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ai/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./evaluation-dataset-50"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ai/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
@@ -0,0 +1,20 @@
1
+ export declare const ASSISTANT_SESSION_STORAGE_VERSION: 1;
2
+ export declare const ASSISTANT_MAX_PERSISTED_MESSAGES = 32;
3
+ export declare const ASSISTANT_SESSION_KEY_PREFIX = "assistant:session:v1";
4
+ export declare const ASSISTANT_SESSION_ENTITY_ID_PATTERN: RegExp;
5
+ export type AssistantSessionMode = "general" | "finding" | "execution" | "pipeline" | "page";
6
+ export declare function sanitizeAssistantSessionEntityId(entityId: string): string | null;
7
+ export declare function composeAssistantSessionKey(scope: {
8
+ organizationId?: string | null;
9
+ userId?: string | null;
10
+ mode: AssistantSessionMode;
11
+ entityId: string;
12
+ }): string;
13
+ export declare function composeAssistantSessionLocalKey(scope: {
14
+ organizationId?: string | null;
15
+ userId?: string | null;
16
+ mode: AssistantSessionMode;
17
+ entityId: string;
18
+ }): string;
19
+ export declare function defaultEntityIdForMode(mode: AssistantSessionMode): string;
20
+ //# sourceMappingURL=assistant-session-key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assistant-session-key.d.ts","sourceRoot":"","sources":["../../src/assistant/assistant-session-key.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC,EAAG,CAAU,CAAC;AAE5D,eAAO,MAAM,gCAAgC,KAAK,CAAC;AAEnD,eAAO,MAAM,4BAA4B,yBAAyB,CAAC;AAEnE,eAAO,MAAM,mCAAmC,QAA4B,CAAC;AAE7E,MAAM,MAAM,oBAAoB,GAC5B,SAAS,GACT,SAAS,GACT,WAAW,GACX,UAAU,GACV,MAAM,CAAC;AAEX,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAMhF;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE;IAChD,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,oBAAoB,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,MAAM,CAKT;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE;IACrD,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,oBAAoB,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,MAAM,CAET;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,oBAAoB,GAAG,MAAM,CAGzE"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ASSISTANT_SESSION_ENTITY_ID_PATTERN = exports.ASSISTANT_SESSION_KEY_PREFIX = exports.ASSISTANT_MAX_PERSISTED_MESSAGES = exports.ASSISTANT_SESSION_STORAGE_VERSION = void 0;
4
+ exports.sanitizeAssistantSessionEntityId = sanitizeAssistantSessionEntityId;
5
+ exports.composeAssistantSessionKey = composeAssistantSessionKey;
6
+ exports.composeAssistantSessionLocalKey = composeAssistantSessionLocalKey;
7
+ exports.defaultEntityIdForMode = defaultEntityIdForMode;
8
+ exports.ASSISTANT_SESSION_STORAGE_VERSION = 1;
9
+ exports.ASSISTANT_MAX_PERSISTED_MESSAGES = 32;
10
+ exports.ASSISTANT_SESSION_KEY_PREFIX = "assistant:session:v1";
11
+ exports.ASSISTANT_SESSION_ENTITY_ID_PATTERN = /^[a-zA-Z0-9:_-]{1,128}$/;
12
+ function sanitizeAssistantSessionEntityId(entityId) {
13
+ const trimmed = entityId.trim();
14
+ if (!trimmed || !exports.ASSISTANT_SESSION_ENTITY_ID_PATTERN.test(trimmed)) {
15
+ return null;
16
+ }
17
+ return trimmed;
18
+ }
19
+ function composeAssistantSessionKey(scope) {
20
+ const orgPart = scope.organizationId?.trim() || "org:anonymous";
21
+ const userPart = scope.userId?.trim() || "user:anonymous";
22
+ const entityPart = scope.entityId.trim() || "general";
23
+ return `${exports.ASSISTANT_SESSION_KEY_PREFIX}:${orgPart}:${userPart}:${scope.mode}:${entityPart}`;
24
+ }
25
+ function composeAssistantSessionLocalKey(scope) {
26
+ return composeAssistantSessionKey(scope);
27
+ }
28
+ function defaultEntityIdForMode(mode) {
29
+ if (mode === "general" || mode === "page")
30
+ return "general";
31
+ return "unknown";
32
+ }
33
+ //# sourceMappingURL=assistant-session-key.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assistant-session-key.js","sourceRoot":"","sources":["../../src/assistant/assistant-session-key.ts"],"names":[],"mappings":";;;AAeA,4EAMC;AAED,gEAUC;AAED,0EAOC;AAED,wDAGC;AA/CY,QAAA,iCAAiC,GAAG,CAAU,CAAC;AAE/C,QAAA,gCAAgC,GAAG,EAAE,CAAC;AAEtC,QAAA,4BAA4B,GAAG,sBAAsB,CAAC;AAEtD,QAAA,mCAAmC,GAAG,yBAAyB,CAAC;AAS7E,SAAgB,gCAAgC,CAAC,QAAgB;IAC/D,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;IAChC,IAAI,CAAC,OAAO,IAAI,CAAC,2CAAmC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAgB,0BAA0B,CAAC,KAK1C;IACC,MAAM,OAAO,GAAG,KAAK,CAAC,cAAc,EAAE,IAAI,EAAE,IAAI,eAAe,CAAC;IAChE,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,gBAAgB,CAAC;IAC1D,MAAM,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,SAAS,CAAC;IACtD,OAAO,GAAG,oCAA4B,IAAI,OAAO,IAAI,QAAQ,IAAI,KAAK,CAAC,IAAI,IAAI,UAAU,EAAE,CAAC;AAC9F,CAAC;AAED,SAAgB,+BAA+B,CAAC,KAK/C;IACC,OAAO,0BAA0B,CAAC,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAA0B;IAC/D,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,MAAM;QAAE,OAAO,SAAS,CAAC;IAC5D,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./assistant-session-key";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/assistant/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./assistant-session-key"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/assistant/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
@@ -0,0 +1,18 @@
1
+ export type UserErrorShape = {
2
+ title: string;
3
+ detail: string;
4
+ suggestion?: string;
5
+ };
6
+ export declare function isCliDebugMode(): boolean;
7
+ export declare function toUserError(error: unknown, fallbackTitle?: string): UserErrorShape;
8
+ export type SubprocessFailureInput = {
9
+ bin?: string;
10
+ code: number;
11
+ stderr?: string;
12
+ stdout?: string;
13
+ signal?: string;
14
+ };
15
+ export declare function summarizeSubprocessFailure(input: SubprocessFailureInput): string;
16
+ export declare function sanitizeCliOutput(text: string): string;
17
+ export declare function formatUserErrorBlock(title: string, detail: string, suggestion?: string): string;
18
+ //# sourceMappingURL=cli-user-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-user-error.d.ts","sourceRoot":"","sources":["../src/cli-user-error.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,wBAAgB,cAAc,IAAI,OAAO,CAMxC;AAED,wBAAgB,WAAW,CACzB,KAAK,EAAE,OAAO,EACd,aAAa,SAAoB,GAChC,cAAc,CAShB;AAgBD,MAAM,MAAM,sBAAsB,GAAG;IACnC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,sBAAsB,GAAG,MAAM,CA6BhF;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAuBtD;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,UAAU,CAAC,EAAE,MAAM,GAClB,MAAM,CAMR"}
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isCliDebugMode = isCliDebugMode;
4
+ exports.toUserError = toUserError;
5
+ exports.summarizeSubprocessFailure = summarizeSubprocessFailure;
6
+ exports.sanitizeCliOutput = sanitizeCliOutput;
7
+ exports.formatUserErrorBlock = formatUserErrorBlock;
8
+ function isCliDebugMode() {
9
+ return (process.env.NAUS_DEBUG === "1" ||
10
+ process.env.KUBBISEC_DEBUG === "1" ||
11
+ process.env.ASPM_DEBUG === "1");
12
+ }
13
+ function toUserError(error, fallbackTitle = "Erro inesperado") {
14
+ if (error instanceof Error) {
15
+ const detail = error.message.trim() || fallbackTitle;
16
+ return { title: fallbackTitle, detail };
17
+ }
18
+ if (typeof error === "string" && error.trim()) {
19
+ return { title: fallbackTitle, detail: error.trim() };
20
+ }
21
+ return { title: fallbackTitle, detail: "Ocorreu um erro. Tente novamente." };
22
+ }
23
+ const STACK_LINE_RE = /^\s*at\s+/;
24
+ const INTERNAL_NODE_RE = /node:internal/i;
25
+ function firstUsefulLine(text) {
26
+ for (const line of text.split(/\r?\n/)) {
27
+ const trimmed = line.trim();
28
+ if (!trimmed)
29
+ continue;
30
+ if (STACK_LINE_RE.test(trimmed))
31
+ continue;
32
+ if (INTERNAL_NODE_RE.test(trimmed))
33
+ continue;
34
+ return trimmed;
35
+ }
36
+ return undefined;
37
+ }
38
+ function summarizeSubprocessFailure(input) {
39
+ const bin = input.bin?.trim() || "comando";
40
+ if (input.signal) {
41
+ return `${bin} foi interrompido (${input.signal}).`;
42
+ }
43
+ if (input.code === 127) {
44
+ return `${bin} não está instalado ou não foi encontrado no PATH.`;
45
+ }
46
+ if (input.code === 126) {
47
+ return `${bin} não pode ser executado (permissões ou formato inválido).`;
48
+ }
49
+ if (input.code === 130) {
50
+ return `${bin} foi cancelado.`;
51
+ }
52
+ if (input.code === 124) {
53
+ return `${bin} excedeu o tempo limite.`;
54
+ }
55
+ const raw = [input.stderr, input.stdout].filter(Boolean).join("\n");
56
+ const line = firstUsefulLine(sanitizeCliOutput(raw));
57
+ if (line) {
58
+ const clipped = line.length > 200 ? `${line.slice(0, 197)}…` : line;
59
+ return `${bin} falhou: ${clipped}`;
60
+ }
61
+ if (input.code === 0) {
62
+ return `${bin} concluiu sem saída.`;
63
+ }
64
+ return `${bin} falhou (código ${input.code}).`;
65
+ }
66
+ function sanitizeCliOutput(text) {
67
+ let out = text;
68
+ out = out.replace(/Bearer\s+[A-Za-z0-9\-._~+/]+=*/gi, "Bearer [REDACTED_TOKEN]");
69
+ out = out.replace(/eyJ[A-Za-z0-9\-._~+/]*=*\.eyJ[A-Za-z0-9\-._~+/]*=*\.[A-Za-z0-9\-._~+/]*=*/g, "[REDACTED_JWT]");
70
+ out = out.replace(/AKIA[0-9A-Z]{16}/g, "[REDACTED_AWS_KEY]");
71
+ out = out.replace(/-----BEGIN [A-Z ]+-----[\s\S]*?-----END [A-Z ]+-----/g, "[REDACTED_PEM]");
72
+ out = out.replace(/(mongodb|mysql|postgres(?:ql)?|redis):\/\/[^\s]+/gi, "[REDACTED_CONN_STRING]");
73
+ const lines = out.split(/\r?\n/).filter((line) => {
74
+ const trimmed = line.trim();
75
+ if (!trimmed)
76
+ return true;
77
+ if (STACK_LINE_RE.test(trimmed))
78
+ return false;
79
+ if (INTERNAL_NODE_RE.test(trimmed))
80
+ return false;
81
+ return true;
82
+ });
83
+ return lines.join("\n").trim();
84
+ }
85
+ function formatUserErrorBlock(title, detail, suggestion) {
86
+ const lines = [`Error: ${title}`, detail];
87
+ if (suggestion?.trim()) {
88
+ lines.push("", `Suggestion: ${suggestion.trim()}`);
89
+ }
90
+ return lines.join("\n");
91
+ }
92
+ //# sourceMappingURL=cli-user-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-user-error.js","sourceRoot":"","sources":["../src/cli-user-error.ts"],"names":[],"mappings":";;AAMA,wCAMC;AAED,kCAYC;AAwBD,gEA6BC;AAED,8CAuBC;AAED,oDAUC;AA9GD,SAAgB,cAAc;IAC5B,OAAO,CACL,OAAO,CAAC,GAAG,CAAC,UAAU,KAAK,GAAG;QAC9B,OAAO,CAAC,GAAG,CAAC,cAAc,KAAK,GAAG;QAClC,OAAO,CAAC,GAAG,CAAC,UAAU,KAAK,GAAG,CAC/B,CAAC;AACJ,CAAC;AAED,SAAgB,WAAW,CACzB,KAAc,EACd,aAAa,GAAG,iBAAiB;IAEjC,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,aAAa,CAAC;QACrD,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC;IAC1C,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;QAC9C,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE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,CAAC,IAAI,EAAE,CAAC;QAC5B,IAAI,CAAC,OAAO;YAAE,OAAO,IAAI,CAAC;QAC1B,IAAI,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC;YAAE,OAAO,KAAK,CAAC;QAC9C,IAAI,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC;YAAE,OAAO,KAAK,CAAC;QACjD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;AACjC,CAAC;AAED,SAAgB,oBAAoB,CAClC,KAAa,EACb,MAAc,EACd,UAAmB;IAEnB,MAAM,KAAK,GAAG,CAAC,UAAU,KAAK,EAAE,EAAE,MAAM,CAAC,CAAC;IAC1C,IAAI,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC;QACvB,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,eAAe,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACrD,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { CreateProjectDto } from "./create-project.dto";
2
+ /**
3
+ * Legacy values accepted temporarily for old clients. Asset import ignores them: pipeline creation
4
+ * now belongs exclusively to the Pipelines flow.
5
+ */
6
+ export declare const BULK_IMPORT_PIPELINE_MODES: readonly ["none", "ai", "ai_migrate", "template", "secure_baseline"];
7
+ export type BulkImportPipelineMode = (typeof BULK_IMPORT_PIPELINE_MODES)[number];
8
+ /** Uma linha de importação em massa: campos de criação de projeto + metadados readonly. */
9
+ export declare class BulkImportGithubProjectRowDto extends CreateProjectDto {
10
+ /** @deprecated Ignorado. Pipelines são criados somente no fluxo de Pipelines. */
11
+ pipelineMode?: BulkImportPipelineMode;
12
+ /** @deprecated Ignorado. Templates pertencem ao fluxo de Pipelines. */
13
+ templateKey?: string;
14
+ /** @deprecated Use `workflowPaths`. Mantido apenas para compatibilidade e tratado como metadado readonly. */
15
+ ghaWorkflowPaths?: string[];
16
+ }
17
+ export declare class BulkImportGithubProjectsDto {
18
+ projects: BulkImportGithubProjectRowDto[];
19
+ /** @deprecated Ignorado. Pipelines são criados somente no fluxo de Pipelines. */
20
+ pipelineMode?: BulkImportPipelineMode;
21
+ /** @deprecated Ignorado. Templates pertencem ao fluxo de Pipelines. */
22
+ templateKey?: string;
23
+ }
24
+ export declare const BULK_IMPORT_GITHUB_PROJECTS_MAX = 50;
25
+ //# sourceMappingURL=bulk-import-github-projects.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulk-import-github-projects.dto.d.ts","sourceRoot":"","sources":["../../src/dto/bulk-import-github-projects.dto.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,sEAM7B,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjF,2FAA2F;AAC3F,qBAAa,6BAA8B,SAAQ,gBAAgB;IACjE,iFAAiF;IAGjF,YAAY,CAAC,EAAE,sBAAsB,CAAC;IAEtC,uEAAuE;IAIvE,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,6GAA6G;IAM7G,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED,qBAAa,2BAA2B;IAMtC,QAAQ,EAAG,6BAA6B,EAAE,CAAC;IAE3C,iFAAiF;IAGjF,YAAY,CAAC,EAAE,sBAAsB,CAAC;IAEtC,uEAAuE;IAIvE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,+BAA+B,KAA2B,CAAC"}
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.BULK_IMPORT_GITHUB_PROJECTS_MAX = exports.BulkImportGithubProjectsDto = exports.BulkImportGithubProjectRowDto = exports.BULK_IMPORT_PIPELINE_MODES = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const create_project_dto_1 = require("./create-project.dto");
16
+ const BULK_IMPORT_MAX_PROJECTS = 50;
17
+ /**
18
+ * Legacy values accepted temporarily for old clients. Asset import ignores them: pipeline creation
19
+ * now belongs exclusively to the Pipelines flow.
20
+ */
21
+ exports.BULK_IMPORT_PIPELINE_MODES = [
22
+ "none",
23
+ "ai",
24
+ "ai_migrate",
25
+ "template",
26
+ "secure_baseline",
27
+ ];
28
+ /** Uma linha de importação em massa: campos de criação de projeto + metadados readonly. */
29
+ class BulkImportGithubProjectRowDto extends create_project_dto_1.CreateProjectDto {
30
+ /** @deprecated Ignorado. Pipelines são criados somente no fluxo de Pipelines. */
31
+ pipelineMode;
32
+ /** @deprecated Ignorado. Templates pertencem ao fluxo de Pipelines. */
33
+ templateKey;
34
+ /** @deprecated Use `workflowPaths`. Mantido apenas para compatibilidade e tratado como metadado readonly. */
35
+ ghaWorkflowPaths;
36
+ }
37
+ exports.BulkImportGithubProjectRowDto = BulkImportGithubProjectRowDto;
38
+ __decorate([
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.IsIn)(exports.BULK_IMPORT_PIPELINE_MODES),
41
+ __metadata("design:type", String)
42
+ ], BulkImportGithubProjectRowDto.prototype, "pipelineMode", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsOptional)(),
45
+ (0, class_validator_1.IsString)(),
46
+ (0, class_validator_1.MaxLength)(64),
47
+ __metadata("design:type", String)
48
+ ], BulkImportGithubProjectRowDto.prototype, "templateKey", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.IsOptional)(),
51
+ (0, class_validator_1.IsArray)(),
52
+ (0, class_validator_1.ArrayMaxSize)(30),
53
+ (0, class_validator_1.IsString)({ each: true }),
54
+ (0, class_validator_1.MaxLength)(260, { each: true }),
55
+ __metadata("design:type", Array)
56
+ ], BulkImportGithubProjectRowDto.prototype, "ghaWorkflowPaths", void 0);
57
+ class BulkImportGithubProjectsDto {
58
+ projects;
59
+ /** @deprecated Ignorado. Pipelines são criados somente no fluxo de Pipelines. */
60
+ pipelineMode;
61
+ /** @deprecated Ignorado. Templates pertencem ao fluxo de Pipelines. */
62
+ templateKey;
63
+ }
64
+ exports.BulkImportGithubProjectsDto = BulkImportGithubProjectsDto;
65
+ __decorate([
66
+ (0, class_validator_1.IsArray)(),
67
+ (0, class_validator_1.ArrayMinSize)(1, { message: "bulkImport.projectsMin" }),
68
+ (0, class_validator_1.ArrayMaxSize)(BULK_IMPORT_MAX_PROJECTS, { message: "bulkImport.projectsMax" }),
69
+ (0, class_validator_1.ValidateNested)({ each: true }),
70
+ (0, class_transformer_1.Type)(() => BulkImportGithubProjectRowDto),
71
+ __metadata("design:type", Array)
72
+ ], BulkImportGithubProjectsDto.prototype, "projects", void 0);
73
+ __decorate([
74
+ (0, class_validator_1.IsOptional)(),
75
+ (0, class_validator_1.IsIn)(exports.BULK_IMPORT_PIPELINE_MODES),
76
+ __metadata("design:type", String)
77
+ ], BulkImportGithubProjectsDto.prototype, "pipelineMode", void 0);
78
+ __decorate([
79
+ (0, class_validator_1.IsOptional)(),
80
+ (0, class_validator_1.IsString)(),
81
+ (0, class_validator_1.MaxLength)(64),
82
+ __metadata("design:type", String)
83
+ ], BulkImportGithubProjectsDto.prototype, "templateKey", void 0);
84
+ exports.BULK_IMPORT_GITHUB_PROJECTS_MAX = BULK_IMPORT_MAX_PROJECTS;
85
+ //# sourceMappingURL=bulk-import-github-projects.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulk-import-github-projects.dto.js","sourceRoot":"","sources":["../../src/dto/bulk-import-github-projects.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDASyB;AACzB,6DAAwD;AAExD,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC;;;GAGG;AACU,QAAA,0BAA0B,GAAG;IACxC,MAAM;IACN,IAAI;IACJ,YAAY;IACZ,UAAU;IACV,iBAAiB;CACT,CAAC;AAIX,2FAA2F;AAC3F,MAAa,6BAA8B,SAAQ,qCAAgB;IACjE,iFAAiF;IAGjF,YAAY,CAA0B;IAEtC,uEAAuE;IAIvE,WAAW,CAAU;IAErB,6GAA6G;IAM7G,gBAAgB,CAAY;CAC7B;AAnBD,sEAmBC;AAfC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,kCAA0B,CAAC;;mEACK;AAMtC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;;kEACO;AAQrB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,EAAE,CAAC;IAChB,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,2BAAS,EAAC,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;uEACH;AAG9B,MAAa,2BAA2B;IAMtC,QAAQ,CAAmC;IAE3C,iFAAiF;IAGjF,YAAY,CAA0B;IAEtC,uEAAuE;IAIvE,WAAW,CAAU;CACtB;AAlBD,kEAkBC;AAZC;IALC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE,CAAC;IACtD,IAAA,8BAAY,EAAC,wBAAwB,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE,CAAC;IAC7E,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;;6DACC;AAK3C;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,kCAA0B,CAAC;;iEACK;AAMtC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;;gEACO;AAGV,QAAA,+BAA+B,GAAG,wBAAwB,CAAC"}
@@ -0,0 +1,14 @@
1
+ export declare class CreateBundleReportDto {
2
+ buildTarget: string;
3
+ totalSizeBytes: number;
4
+ bundles?: Array<{
5
+ name: string;
6
+ sizeBytes: number;
7
+ path: string;
8
+ }>;
9
+ moduleSnapshot?: Record<string, unknown>;
10
+ metadata?: Record<string, unknown>;
11
+ rawFileName?: string;
12
+ target?: string;
13
+ }
14
+ //# sourceMappingURL=create-bundle-report.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-bundle-report.dto.d.ts","sourceRoot":"","sources":["../../src/dto/create-bundle-report.dto.ts"],"names":[],"mappings":"AAYA,qBAAa,qBAAqB;IAIhC,WAAW,EAAG,MAAM,CAAC;IAKrB,cAAc,EAAG,MAAM,CAAC;IAIxB,OAAO,CAAC,EAAE,KAAK,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC,CAAC;IAIH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIzC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAKnC,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CreateBundleReportDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class CreateBundleReportDto {
16
+ buildTarget; // production, staging, etc.
17
+ totalSizeBytes;
18
+ bundles;
19
+ moduleSnapshot;
20
+ metadata;
21
+ rawFileName;
22
+ target; // branch, commit, etc.
23
+ }
24
+ exports.CreateBundleReportDto = CreateBundleReportDto;
25
+ __decorate([
26
+ (0, class_validator_1.IsString)(),
27
+ (0, class_validator_1.IsNotEmpty)(),
28
+ (0, class_validator_1.MaxLength)(100),
29
+ __metadata("design:type", String)
30
+ ], CreateBundleReportDto.prototype, "buildTarget", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsNumber)(),
33
+ (0, class_transformer_1.Type)(() => Number),
34
+ (0, class_validator_1.Min)(0),
35
+ __metadata("design:type", Number)
36
+ ], CreateBundleReportDto.prototype, "totalSizeBytes", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsArray)(),
39
+ (0, class_validator_1.IsOptional)(),
40
+ __metadata("design:type", Array)
41
+ ], CreateBundleReportDto.prototype, "bundles", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsObject)(),
44
+ (0, class_validator_1.IsOptional)(),
45
+ __metadata("design:type", Object)
46
+ ], CreateBundleReportDto.prototype, "moduleSnapshot", void 0);
47
+ __decorate([
48
+ (0, class_validator_1.IsObject)(),
49
+ (0, class_validator_1.IsOptional)(),
50
+ __metadata("design:type", Object)
51
+ ], CreateBundleReportDto.prototype, "metadata", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsString)(),
54
+ (0, class_validator_1.IsOptional)(),
55
+ (0, class_validator_1.MaxLength)(255),
56
+ __metadata("design:type", String)
57
+ ], CreateBundleReportDto.prototype, "rawFileName", void 0);
58
+ __decorate([
59
+ (0, class_validator_1.IsString)(),
60
+ (0, class_validator_1.IsOptional)(),
61
+ (0, class_validator_1.MaxLength)(500),
62
+ __metadata("design:type", String)
63
+ ], CreateBundleReportDto.prototype, "target", void 0);
64
+ //# sourceMappingURL=create-bundle-report.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-bundle-report.dto.js","sourceRoot":"","sources":["../../src/dto/create-bundle-report.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDASyB;AAEzB,MAAa,qBAAqB;IAIhC,WAAW,CAAU,CAAC,4BAA4B;IAKlD,cAAc,CAAU;IAIxB,OAAO,CAIJ;IAIH,cAAc,CAA2B;IAIzC,QAAQ,CAA2B;IAKnC,WAAW,CAAU;IAKrB,MAAM,CAAU,CAAC,uBAAuB;CACzC;AApCD,sDAoCC;AAhCC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;0DACM;AAKrB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,qBAAG,EAAC,CAAC,CAAC;;6DACiB;AAIxB;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;8BACH,KAAK;sDAIZ;AAIH;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DAC4B;AAIzC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACsB;AAKnC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;0DACM;AAKrB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;qDACC"}
@@ -0,0 +1,18 @@
1
+ export declare class CreateCoverageReportDto {
2
+ format: string;
3
+ rawFileName?: string;
4
+ target?: string;
5
+ lineCoveragePct: number;
6
+ branchCoveragePct: number;
7
+ functionCoveragePct: number;
8
+ linesFound: number;
9
+ linesHit: number;
10
+ branchesFound: number;
11
+ branchesHit: number;
12
+ functionsFound: number;
13
+ functionsHit: number;
14
+ fileDetails?: Record<string, unknown>;
15
+ metadata?: Record<string, unknown>;
16
+ reportUrl?: string;
17
+ }
18
+ //# sourceMappingURL=create-coverage-report.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-coverage-report.dto.d.ts","sourceRoot":"","sources":["../../src/dto/create-coverage-report.dto.ts"],"names":[],"mappings":"AAYA,qBAAa,uBAAuB;IAIlC,MAAM,EAAG,MAAM,CAAC;IAKhB,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,eAAe,EAAG,MAAM,CAAC;IAMzB,iBAAiB,EAAG,MAAM,CAAC;IAM3B,mBAAmB,EAAG,MAAM,CAAC;IAK7B,UAAU,EAAG,MAAM,CAAC;IAKpB,QAAQ,EAAG,MAAM,CAAC;IAKlB,aAAa,EAAG,MAAM,CAAC;IAKvB,WAAW,EAAG,MAAM,CAAC;IAKrB,cAAc,EAAG,MAAM,CAAC;IAKxB,YAAY,EAAG,MAAM,CAAC;IAItB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAItC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAKnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CreateCoverageReportDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class CreateCoverageReportDto {
16
+ format; // lcov | clover
17
+ rawFileName;
18
+ target;
19
+ lineCoveragePct;
20
+ branchCoveragePct;
21
+ functionCoveragePct;
22
+ linesFound;
23
+ linesHit;
24
+ branchesFound;
25
+ branchesHit;
26
+ functionsFound;
27
+ functionsHit;
28
+ fileDetails;
29
+ metadata;
30
+ reportUrl; // URL S3/CloudFront do lcov-report HTML
31
+ }
32
+ exports.CreateCoverageReportDto = CreateCoverageReportDto;
33
+ __decorate([
34
+ (0, class_validator_1.IsString)(),
35
+ (0, class_validator_1.IsNotEmpty)(),
36
+ (0, class_validator_1.MaxLength)(20),
37
+ __metadata("design:type", String)
38
+ ], CreateCoverageReportDto.prototype, "format", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsString)(),
41
+ (0, class_validator_1.IsOptional)(),
42
+ (0, class_validator_1.MaxLength)(255),
43
+ __metadata("design:type", String)
44
+ ], CreateCoverageReportDto.prototype, "rawFileName", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsString)(),
47
+ (0, class_validator_1.IsOptional)(),
48
+ (0, class_validator_1.MaxLength)(500),
49
+ __metadata("design:type", String)
50
+ ], CreateCoverageReportDto.prototype, "target", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsNumber)(),
53
+ (0, class_transformer_1.Type)(() => Number),
54
+ (0, class_validator_1.Min)(0),
55
+ (0, class_validator_1.Max)(100),
56
+ __metadata("design:type", Number)
57
+ ], CreateCoverageReportDto.prototype, "lineCoveragePct", void 0);
58
+ __decorate([
59
+ (0, class_validator_1.IsNumber)(),
60
+ (0, class_transformer_1.Type)(() => Number),
61
+ (0, class_validator_1.Min)(0),
62
+ (0, class_validator_1.Max)(100),
63
+ __metadata("design:type", Number)
64
+ ], CreateCoverageReportDto.prototype, "branchCoveragePct", void 0);
65
+ __decorate([
66
+ (0, class_validator_1.IsNumber)(),
67
+ (0, class_transformer_1.Type)(() => Number),
68
+ (0, class_validator_1.Min)(0),
69
+ (0, class_validator_1.Max)(100),
70
+ __metadata("design:type", Number)
71
+ ], CreateCoverageReportDto.prototype, "functionCoveragePct", void 0);
72
+ __decorate([
73
+ (0, class_validator_1.IsNumber)(),
74
+ (0, class_transformer_1.Type)(() => Number),
75
+ (0, class_validator_1.Min)(0),
76
+ __metadata("design:type", Number)
77
+ ], CreateCoverageReportDto.prototype, "linesFound", void 0);
78
+ __decorate([
79
+ (0, class_validator_1.IsNumber)(),
80
+ (0, class_transformer_1.Type)(() => Number),
81
+ (0, class_validator_1.Min)(0),
82
+ __metadata("design:type", Number)
83
+ ], CreateCoverageReportDto.prototype, "linesHit", void 0);
84
+ __decorate([
85
+ (0, class_validator_1.IsNumber)(),
86
+ (0, class_transformer_1.Type)(() => Number),
87
+ (0, class_validator_1.Min)(0),
88
+ __metadata("design:type", Number)
89
+ ], CreateCoverageReportDto.prototype, "branchesFound", void 0);
90
+ __decorate([
91
+ (0, class_validator_1.IsNumber)(),
92
+ (0, class_transformer_1.Type)(() => Number),
93
+ (0, class_validator_1.Min)(0),
94
+ __metadata("design:type", Number)
95
+ ], CreateCoverageReportDto.prototype, "branchesHit", void 0);
96
+ __decorate([
97
+ (0, class_validator_1.IsNumber)(),
98
+ (0, class_transformer_1.Type)(() => Number),
99
+ (0, class_validator_1.Min)(0),
100
+ __metadata("design:type", Number)
101
+ ], CreateCoverageReportDto.prototype, "functionsFound", void 0);
102
+ __decorate([
103
+ (0, class_validator_1.IsNumber)(),
104
+ (0, class_transformer_1.Type)(() => Number),
105
+ (0, class_validator_1.Min)(0),
106
+ __metadata("design:type", Number)
107
+ ], CreateCoverageReportDto.prototype, "functionsHit", void 0);
108
+ __decorate([
109
+ (0, class_validator_1.IsObject)(),
110
+ (0, class_validator_1.IsOptional)(),
111
+ __metadata("design:type", Object)
112
+ ], CreateCoverageReportDto.prototype, "fileDetails", void 0);
113
+ __decorate([
114
+ (0, class_validator_1.IsObject)(),
115
+ (0, class_validator_1.IsOptional)(),
116
+ __metadata("design:type", Object)
117
+ ], CreateCoverageReportDto.prototype, "metadata", void 0);
118
+ __decorate([
119
+ (0, class_validator_1.IsString)(),
120
+ (0, class_validator_1.IsOptional)(),
121
+ (0, class_validator_1.MaxLength)(2048),
122
+ __metadata("design:type", String)
123
+ ], CreateCoverageReportDto.prototype, "reportUrl", void 0);
124
+ //# sourceMappingURL=create-coverage-report.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-coverage-report.dto.js","sourceRoot":"","sources":["../../src/dto/create-coverage-report.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDASyB;AA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