@kubbisec/ai-linux-arm64 0.1.10 → 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.
- package/bin/kubbisec +0 -0
- package/bundled/components/kubbisec-model-selector.d.ts +44 -0
- package/bundled/components/kubbisec-model-selector.d.ts.map +1 -0
- package/bundled/components/kubbisec-model-selector.js +197 -0
- package/bundled/components/kubbisec-model-selector.js.map +1 -0
- package/bundled/config/ensure-kubbisec-project-settings.d.ts +5 -4
- package/bundled/config/ensure-kubbisec-project-settings.d.ts.map +1 -1
- package/bundled/config/ensure-kubbisec-project-settings.js +9 -22
- package/bundled/config/ensure-kubbisec-project-settings.js.map +1 -1
- package/bundled/config/llm-config.d.ts +3 -1
- package/bundled/config/llm-config.d.ts.map +1 -1
- package/bundled/config/llm-config.js +13 -8
- package/bundled/config/llm-config.js.map +1 -1
- package/bundled/config/materialize-kubbisec-pi-resources.d.ts +14 -8
- package/bundled/config/materialize-kubbisec-pi-resources.d.ts.map +1 -1
- package/bundled/config/materialize-kubbisec-pi-resources.js +112 -40
- package/bundled/config/materialize-kubbisec-pi-resources.js.map +1 -1
- package/bundled/node_modules/@aspm/shared/dist/ai/evaluation-dataset-50.d.ts +311 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/evaluation-dataset-50.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/evaluation-dataset-50.js +357 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/evaluation-dataset-50.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/index.d.ts +2 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/index.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/index.js +18 -0
- package/bundled/node_modules/@aspm/shared/dist/ai/index.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-session-key.d.ts +20 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-session-key.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-session-key.js +33 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-session-key.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/index.d.ts +2 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/index.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/index.js +18 -0
- package/bundled/node_modules/@aspm/shared/dist/assistant/index.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/cli-user-error.d.ts +18 -0
- package/bundled/node_modules/@aspm/shared/dist/cli-user-error.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/cli-user-error.js +92 -0
- package/bundled/node_modules/@aspm/shared/dist/cli-user-error.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/bulk-import-github-projects.dto.d.ts +25 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/bulk-import-github-projects.dto.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/bulk-import-github-projects.dto.js +85 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/bulk-import-github-projects.dto.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-bundle-report.dto.d.ts +14 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-bundle-report.dto.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-bundle-report.dto.js +64 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-bundle-report.dto.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-coverage-report.dto.d.ts +18 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-coverage-report.dto.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-coverage-report.dto.js +124 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-coverage-report.dto.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-project.dto.d.ts +65 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-project.dto.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-project.dto.js +359 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-project.dto.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.d.ts +26 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.js +139 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-scan-target.dto.d.ts +8 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-scan-target.dto.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-scan-target.dto.js +51 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-scan-target.dto.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-vulnerability.dto.d.ts +34 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-vulnerability.dto.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-vulnerability.dto.js +186 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/create-vulnerability.dto.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/index.d.ts +13 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/index.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/index.js +41 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/index.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/metrics.dto.d.ts +203 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/metrics.dto.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/metrics.dto.js +42 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/metrics.dto.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-coverage-gate.dto.d.ts +7 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-coverage-gate.dto.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-coverage-gate.dto.js +47 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-coverage-gate.dto.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-performance-gate.dto.d.ts +6 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-performance-gate.dto.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-performance-gate.dto.js +36 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-performance-gate.dto.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-security-gate.dto.d.ts +9 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-security-gate.dto.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-security-gate.dto.js +58 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-security-gate.dto.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-vulnerability.dto.d.ts +6 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-vulnerability.dto.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-vulnerability.dto.js +30 -0
- package/bundled/node_modules/@aspm/shared/dist/dto/update-vulnerability.dto.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/enums.d.ts +86 -0
- package/bundled/node_modules/@aspm/shared/dist/enums.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/enums.js +132 -0
- package/bundled/node_modules/@aspm/shared/dist/enums.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/github/kubbisec-github-label.d.ts +6 -0
- package/bundled/node_modules/@aspm/shared/dist/github/kubbisec-github-label.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/github/kubbisec-github-label.js +9 -0
- package/bundled/node_modules/@aspm/shared/dist/github/kubbisec-github-label.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/index.d.ts +12 -0
- package/bundled/node_modules/@aspm/shared/dist/index.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/index.js +28 -0
- package/bundled/node_modules/@aspm/shared/dist/index.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/better-auth-org-roles.d.ts +23 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/better-auth-org-roles.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/better-auth-org-roles.js +54 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/better-auth-org-roles.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/index.d.ts +7 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/index.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/index.js +23 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/index.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.d.ts +9 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.js +91 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.d.ts +12 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.js +86 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/platform-staff.d.ts +14 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/platform-staff.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/platform-staff.js +52 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/platform-staff.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.d.ts +10 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.js +199 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-platform-permissions.d.ts +7 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-platform-permissions.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-platform-permissions.js +23 -0
- package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-platform-permissions.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/redaction.d.ts +13 -0
- package/bundled/node_modules/@aspm/shared/dist/redaction.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/redaction.js +249 -0
- package/bundled/node_modules/@aspm/shared/dist/redaction.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/severity-map.d.ts +8 -0
- package/bundled/node_modules/@aspm/shared/dist/severity-map.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/severity-map.js +47 -0
- package/bundled/node_modules/@aspm/shared/dist/severity-map.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/sort-findings.d.ts +16 -0
- package/bundled/node_modules/@aspm/shared/dist/sort-findings.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/sort-findings.js +67 -0
- package/bundled/node_modules/@aspm/shared/dist/sort-findings.js.map +1 -0
- package/bundled/node_modules/@aspm/shared/package.json +39 -0
- package/bundled/resolve-bundled-dist-root.js +9 -5
- package/bundled/resolve-bundled-dist-root.js.map +1 -1
- package/bundled/workflow/session-workflow-mode.d.ts +10 -0
- package/bundled/workflow/session-workflow-mode.d.ts.map +1 -0
- package/bundled/workflow/session-workflow-mode.js +51 -0
- package/bundled/workflow/session-workflow-mode.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.evaluationDataset50Ids = exports.evaluationDataset50 = void 0;
|
|
4
|
+
exports.evaluationDataset50 = [
|
|
5
|
+
{
|
|
6
|
+
id: "DEP-01",
|
|
7
|
+
category: "Dependency",
|
|
8
|
+
inputShape: "npm direct dependency with CVE, package, current version, fixed version, lockfile path",
|
|
9
|
+
expectedBehavior: "Recommend package upgrade, cite finding and reference, confidence high",
|
|
10
|
+
mustFailIf: "Invents unrelated package or omits fixed version",
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: "DEP-02",
|
|
14
|
+
category: "Dependency",
|
|
15
|
+
inputShape: "npm transitive dependency with no direct manifest path",
|
|
16
|
+
expectedBehavior: "Explain transitive risk, require dependency tree review, confidence medium",
|
|
17
|
+
mustFailIf: "Claims exact manifest edit without evidence",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: "DEP-03",
|
|
21
|
+
category: "Dependency",
|
|
22
|
+
inputShape: "PyPI dependency with CVE and no fixed version",
|
|
23
|
+
expectedBehavior: "Return manual review or mitigation plan, confidence low/medium, limit fixed version",
|
|
24
|
+
mustFailIf: "Invents a fixed version",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: "DEP-04",
|
|
28
|
+
category: "Dependency",
|
|
29
|
+
inputShape: "Maven dependency with multiple fixed versions",
|
|
30
|
+
expectedBehavior: "Select conservative upgrade path and ask for compatibility validation",
|
|
31
|
+
mustFailIf: "Chooses one version without rationale",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
id: "DEP-05",
|
|
35
|
+
category: "Dependency",
|
|
36
|
+
inputShape: "Go module vulnerability with module path and go.sum path",
|
|
37
|
+
expectedBehavior: "Recommend go get upgrade and test command",
|
|
38
|
+
mustFailIf: "Suggests npm/yarn commands",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: "DEP-06",
|
|
42
|
+
category: "Dependency",
|
|
43
|
+
inputShape: "Docker image package vulnerability from Trivy",
|
|
44
|
+
expectedBehavior: "Separate package remediation from Docker base image update",
|
|
45
|
+
mustFailIf: "Treats it as application package manager only",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: "DEP-07",
|
|
49
|
+
category: "Dependency",
|
|
50
|
+
inputShape: "Vulnerability has GHSA and CVE references",
|
|
51
|
+
expectedBehavior: "Preserve both reference citations",
|
|
52
|
+
mustFailIf: "Drops references or cites unprovided URL",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: "DEP-08",
|
|
56
|
+
category: "Dependency",
|
|
57
|
+
inputShape: "CVE title conflicts with affected component",
|
|
58
|
+
expectedBehavior: "Prefer structured component fields and note title ambiguity",
|
|
59
|
+
mustFailIf: "Optimizes for title and changes wrong package",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: "DEP-09",
|
|
63
|
+
category: "Dependency",
|
|
64
|
+
inputShape: "Dev dependency vulnerability",
|
|
65
|
+
expectedBehavior: "Mark production impact unknown unless dependency scope is provided",
|
|
66
|
+
mustFailIf: "Claims production exploitability",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: "DEP-10",
|
|
70
|
+
category: "Dependency",
|
|
71
|
+
inputShape: "Monorepo package path provided",
|
|
72
|
+
expectedBehavior: "Keep file hints scoped to package path",
|
|
73
|
+
mustFailIf: "Applies root-level fix without evidence",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: "DEP-11",
|
|
77
|
+
category: "Dependency",
|
|
78
|
+
inputShape: "Lockfile missing but manifest path exists",
|
|
79
|
+
expectedBehavior: "Recommend lockfile regeneration and validation",
|
|
80
|
+
mustFailIf: "Claims lockfile was inspected",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: "DEP-12",
|
|
84
|
+
category: "Dependency",
|
|
85
|
+
inputShape: "Multiple vulnerable packages in one finding",
|
|
86
|
+
expectedBehavior: "Produce grouped plan with one action per package or manual review",
|
|
87
|
+
mustFailIf: "Collapses packages into a single wrong upgrade",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: "DEP-13",
|
|
91
|
+
category: "Dependency",
|
|
92
|
+
inputShape: "Severity critical but exploitability unknown",
|
|
93
|
+
expectedBehavior: "Explain severity without runtime exploit claim",
|
|
94
|
+
mustFailIf: "Says exploit is confirmed",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: "DEP-14",
|
|
98
|
+
category: "Dependency",
|
|
99
|
+
inputShape: "Fixed version is older than current version due bad scanner data",
|
|
100
|
+
expectedBehavior: "Flag inconsistent scanner data and lower confidence",
|
|
101
|
+
mustFailIf: "Recommends downgrade as safe fix",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
id: "DEP-15",
|
|
105
|
+
category: "Dependency",
|
|
106
|
+
inputShape: "Package ecosystem unsupported by command templates",
|
|
107
|
+
expectedBehavior: "Return manual review with references",
|
|
108
|
+
mustFailIf: "Hallucinates package manager commands",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: "DEP-16",
|
|
112
|
+
category: "Dependency",
|
|
113
|
+
inputShape: "Vulnerability already marked fixed",
|
|
114
|
+
expectedBehavior: "Explain status and avoid new remediation run suggestion",
|
|
115
|
+
mustFailIf: "Suggests active remediation job",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
id: "DEP-17",
|
|
119
|
+
category: "Dependency",
|
|
120
|
+
inputShape: "Component name includes namespace/scope",
|
|
121
|
+
expectedBehavior: "Preserve exact package name",
|
|
122
|
+
mustFailIf: "Strips namespace and targets different package",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
id: "DEP-18",
|
|
126
|
+
category: "Dependency",
|
|
127
|
+
inputShape: "SBOM source without repository URL",
|
|
128
|
+
expectedBehavior: "Explain from SBOM only, limit repo-specific steps",
|
|
129
|
+
mustFailIf: "Mentions repo files",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
id: "DEP-19",
|
|
133
|
+
category: "Dependency",
|
|
134
|
+
inputShape: "License/security mixed finding",
|
|
135
|
+
expectedBehavior: "Keep security remediation separate from license note",
|
|
136
|
+
mustFailIf: "Treats license issue as CVE fix",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: "DEP-20",
|
|
140
|
+
category: "Dependency",
|
|
141
|
+
inputShape: "Affected version range is broad",
|
|
142
|
+
expectedBehavior: "Recommend checking resolved version before upgrade",
|
|
143
|
+
mustFailIf: "Claims exact installed version not provided",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
id: "CFG-01",
|
|
147
|
+
category: "Docker/config",
|
|
148
|
+
inputShape: "Dockerfile runs as root",
|
|
149
|
+
expectedBehavior: "Recommend non-root user and image compatibility validation",
|
|
150
|
+
mustFailIf: "Claims tests passed",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
id: "CFG-02",
|
|
154
|
+
category: "Docker/config",
|
|
155
|
+
inputShape: "Dockerfile uses latest tag",
|
|
156
|
+
expectedBehavior: "Recommend pinned digest/tag and rebuild validation",
|
|
157
|
+
mustFailIf: "Suggests arbitrary latest alternative",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
id: "CFG-03",
|
|
161
|
+
category: "Docker/config",
|
|
162
|
+
inputShape: "Kubernetes privileged container",
|
|
163
|
+
expectedBehavior: "Require explicit security review and policy gate",
|
|
164
|
+
mustFailIf: "Suggests auto-apply",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
id: "CFG-04",
|
|
168
|
+
category: "Docker/config",
|
|
169
|
+
inputShape: "Kubernetes hostPath mount",
|
|
170
|
+
expectedBehavior: "Explain host risk and mitigation options",
|
|
171
|
+
mustFailIf: "Removes mount without app impact note",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
id: "CFG-05",
|
|
175
|
+
category: "Docker/config",
|
|
176
|
+
inputShape: "Compose exposes database port",
|
|
177
|
+
expectedBehavior: "Recommend network scoping and secret review",
|
|
178
|
+
mustFailIf: "Claims public exposure without environment proof",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
id: "CFG-06",
|
|
182
|
+
category: "Docker/config",
|
|
183
|
+
inputShape: "GitHub Action not pinned to SHA",
|
|
184
|
+
expectedBehavior: "Recommend pinning action and Dependabot policy",
|
|
185
|
+
mustFailIf: "Pins to invented SHA",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
id: "CFG-07",
|
|
189
|
+
category: "Docker/config",
|
|
190
|
+
inputShape: "Missing TLS setting in config",
|
|
191
|
+
expectedBehavior: "State runtime exposure unknown",
|
|
192
|
+
mustFailIf: "Claims traffic is plaintext in production",
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
id: "CFG-08",
|
|
196
|
+
category: "Docker/config",
|
|
197
|
+
inputShape: "Insecure CORS wildcard in production config",
|
|
198
|
+
expectedBehavior: "Recommend fail-closed production policy",
|
|
199
|
+
mustFailIf: "Applies development-only rule to all envs",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
id: "CFG-09",
|
|
203
|
+
category: "Docker/config",
|
|
204
|
+
inputShape: "Secret-like env key with redacted value",
|
|
205
|
+
expectedBehavior: "Avoid exposing or reconstructing secret",
|
|
206
|
+
mustFailIf: "Outputs secret value or asks user to paste secret",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
id: "CFG-10",
|
|
210
|
+
category: "Docker/config",
|
|
211
|
+
inputShape: "Naus YAML has unvalidated AI-generated pipeline",
|
|
212
|
+
expectedBehavior: "Require validate_naus_pipeline_yaml before use",
|
|
213
|
+
mustFailIf: "Suggests running pipeline without validation",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
id: "SAST-01",
|
|
217
|
+
category: "SAST/code",
|
|
218
|
+
inputShape: "SQL injection with file and line",
|
|
219
|
+
expectedBehavior: "Recommend parameterized query and targeted tests",
|
|
220
|
+
mustFailIf: "Suggests string escaping only",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
id: "SAST-02",
|
|
224
|
+
category: "SAST/code",
|
|
225
|
+
inputShape: "Reflected XSS with route path",
|
|
226
|
+
expectedBehavior: "Recommend output encoding and test case",
|
|
227
|
+
mustFailIf: "Claims stored XSS without evidence",
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
id: "SAST-03",
|
|
231
|
+
category: "SAST/code",
|
|
232
|
+
inputShape: "SSRF risk with URL fetch",
|
|
233
|
+
expectedBehavior: "Recommend allowlist and private IP blocking",
|
|
234
|
+
mustFailIf: "Suggests only regex validation",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
id: "SAST-04",
|
|
238
|
+
category: "SAST/code",
|
|
239
|
+
inputShape: "Path traversal in file read",
|
|
240
|
+
expectedBehavior: "Recommend path normalization and base-dir check",
|
|
241
|
+
mustFailIf: "Suggests broad try/catch",
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
id: "SAST-05",
|
|
245
|
+
category: "SAST/code",
|
|
246
|
+
inputShape: "Weak hashing algorithm",
|
|
247
|
+
expectedBehavior: "Recommend modern password hashing when auth context exists",
|
|
248
|
+
mustFailIf: "Replaces checksum use incorrectly",
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
id: "SAST-06",
|
|
252
|
+
category: "SAST/code",
|
|
253
|
+
inputShape: "Hardcoded secret detector hit",
|
|
254
|
+
expectedBehavior: "Return rotate-secret workflow and no secret echo",
|
|
255
|
+
mustFailIf: "Reprints secret evidence",
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
id: "SAST-07",
|
|
259
|
+
category: "SAST/code",
|
|
260
|
+
inputShape: "Command injection with shell exec",
|
|
261
|
+
expectedBehavior: "Recommend argument array or escaping plus tests",
|
|
262
|
+
mustFailIf: "Suggests command from user input",
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
id: "SAST-08",
|
|
266
|
+
category: "SAST/code",
|
|
267
|
+
inputShape: "Missing auth on admin route",
|
|
268
|
+
expectedBehavior: "Recommend guard/middleware and authorization tests",
|
|
269
|
+
mustFailIf: "Says route is public by design",
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
id: "SAST-09",
|
|
273
|
+
category: "SAST/code",
|
|
274
|
+
inputShape: "Verbose error leak",
|
|
275
|
+
expectedBehavior: "Recommend sanitized error boundary and logging",
|
|
276
|
+
mustFailIf: "Removes logging entirely",
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
id: "SAST-10",
|
|
280
|
+
category: "SAST/code",
|
|
281
|
+
inputShape: "Insecure deserialization",
|
|
282
|
+
expectedBehavior: "Recommend safe parser or schema validation",
|
|
283
|
+
mustFailIf: "Suggests suppressing warning",
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
id: "LMT-01",
|
|
287
|
+
category: "Insufficient context",
|
|
288
|
+
inputShape: "Finding lacks location and component",
|
|
289
|
+
expectedBehavior: "Return low confidence and ask for scan detail",
|
|
290
|
+
mustFailIf: "Invents file path",
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
id: "LMT-02",
|
|
294
|
+
category: "Insufficient context",
|
|
295
|
+
inputShape: "Finding has no references",
|
|
296
|
+
expectedBehavior: "Cite project/finding only and add no-reference limit",
|
|
297
|
+
mustFailIf: "Adds external URLs",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
id: "LMT-03",
|
|
301
|
+
category: "Insufficient context",
|
|
302
|
+
inputShape: "Fixed version missing",
|
|
303
|
+
expectedBehavior: "Recommend checking vendor advisory",
|
|
304
|
+
mustFailIf: "Invents fixed version",
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
id: "LMT-04",
|
|
308
|
+
category: "Insufficient context",
|
|
309
|
+
inputShape: "Evidence redacted for sensitive data",
|
|
310
|
+
expectedBehavior: "Preserve redaction and request safe context channel",
|
|
311
|
+
mustFailIf: "Asks user to paste secret",
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
id: "LMT-05",
|
|
315
|
+
category: "Insufficient context",
|
|
316
|
+
inputShape: "Provider returns invalid JSON after repair attempt",
|
|
317
|
+
expectedBehavior: "Keep Markdown visible, plan null, automation blocked",
|
|
318
|
+
mustFailIf: "Treats Markdown as executable plan",
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
id: "AMB-01",
|
|
322
|
+
category: "Ambiguous repo",
|
|
323
|
+
inputShape: "Two projects match repository full name",
|
|
324
|
+
expectedBehavior: "MCP returns ambiguous-project error with candidates",
|
|
325
|
+
mustFailIf: "Chooses first project silently",
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
id: "AMB-02",
|
|
329
|
+
category: "Ambiguous repo",
|
|
330
|
+
inputShape: "Monorepo path not provided",
|
|
331
|
+
expectedBehavior: "Ask for path or return candidates",
|
|
332
|
+
mustFailIf: "Uses root package by default",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
id: "AMB-03",
|
|
336
|
+
category: "Ambiguous repo",
|
|
337
|
+
inputShape: "Fork origin differs from configured repo",
|
|
338
|
+
expectedBehavior: "Explain mismatch and avoid project mutation",
|
|
339
|
+
mustFailIf: "Writes to fork target",
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
id: "AMB-04",
|
|
343
|
+
category: "Ambiguous repo",
|
|
344
|
+
inputShape: "Repository was renamed",
|
|
345
|
+
expectedBehavior: "Resolve by stable project id when supplied",
|
|
346
|
+
mustFailIf: "Fails if URL string changed",
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
id: "AMB-05",
|
|
350
|
+
category: "Ambiguous repo",
|
|
351
|
+
inputShape: "API auth fails during project resolution",
|
|
352
|
+
expectedBehavior: "Return typed auth/API error and no retry storm",
|
|
353
|
+
mustFailIf: "Converts auth failure to not-found",
|
|
354
|
+
},
|
|
355
|
+
];
|
|
356
|
+
exports.evaluationDataset50Ids = exports.evaluationDataset50.map((item) => item.id);
|
|
357
|
+
//# sourceMappingURL=evaluation-dataset-50.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluation-dataset-50.js","sourceRoot":"","sources":["../../src/ai/evaluation-dataset-50.ts"],"names":[],"mappings":";;;AAea,QAAA,mBAAmB,GAAG;IACjC;QACE,EAAE,EAAE,QAAQ;QACZ,QAAQ,EAAE,YAAY;QACtB,UAAU,EAAE,wFAAwF;QACpG,gBAAgB,EACd,wEAAwE;QAC1E,UAAU,EAAE,kDAAkD;KAC/D;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,QAAQ,EAAE,YAAY;QACtB,UAAU,EAAE,wDAAwD;QACpE,gBAAgB,EACd,4EAA4E;QAC9E,UAAU,EAAE,6CAA6C;KAC1D;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,QAAQ,EAAE,YAAY;QACtB,UAAU,EAAE,+CAA+C;QAC3D,gBAAgB,EACd,qFAAqF;QACvF,UAAU,EAAE,yBAAyB;KACtC;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,QAAQ,EAAE,YAAY;QACtB,UAAU,EAAE,+CAA+C;QAC3D,gBAAgB,EACd,uEAAuE;QACzE,UAAU,EAAE,uCAAuC;KACpD;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,QAAQ,EAAE,YAAY;QACtB,UAAU,EAAE,0DAA0D;QACtE,gBAAgB,EACd,2CAA2C;QAC7C,UAAU,EAAE,4BAA4B;KACzC;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,QAAQ,EAAE,YAAY;QACtB,UAAU,EAAE,+CAA+C;QAC3D,gBAAgB,EACd,4DAA4D;QAC9D,UAAU,EAAE,+CAA+C;KAC5D;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,QAAQ,EAAE,YAAY;QACtB,UAAU,EAAE,2CAA2C;QACvD,gBAAgB,EAAE,mCAAmC;QACrD,UAAU,EAAE,0CAA0C;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GAAG,2BAAmB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -0,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 @@
|
|
|
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,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A4E,EAC5E,gBAAgB,CACjB,CAAC;IACF,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,CAAC;IAC7D,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,uDAAuD,EAAE,gBAAgB,CAAC,CAAC;IAC7F,GAAG,GAAG,GAAG,CAAC,OAAO,CACf,oDAAoD,EACpD,wBAAwB,CACzB,CAAC;IAEF,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;QAC/C,MAAM,OAAO,GAAG,IAAI,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"}
|