@methiu/raigal 0.2.0 → 0.2.3

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.
@@ -160,6 +160,9 @@ const RULE_SCORE_IMPACTS = {
160
160
  "security/shell-injection": strict("Interpolated shell commands can become command execution."),
161
161
  "security/unsafe-deserialization": strict("Deserializing untrusted data with a legacy .NET formatter can become remote code execution."),
162
162
  "security/unsafe-c-call": strict("Unbounded C string and process calls can become buffer overflows or command execution."),
163
+ "security/prompt-injection": strict("Dynamic user interpolation in system/developer prompts enables prompt injection attacks."),
164
+ "security/unsandboxed-agent-tool": strict("Unsandboxed agent code execution or tool permission bypass allows arbitrary host commands."),
165
+ "security/invisible-unicode-tags": strict("Invisible Unicode Tag characters (U+E0000-U+E007F) hide stealth prompt injection payloads."),
163
166
  "security/dependency-audit-skipped": advisory("An unavailable audit is visibility loss, not evidence of a vulnerability."),
164
167
  "dotnet/projects-skipped": advisory("Skipping unrestored C# projects is visibility loss, not evidence of a defect."),
165
168
  "cppcheck/chunks-skipped": advisory("A skipped cppcheck chunk is visibility loss, not evidence that the skipped files have a defect."),
package/dist/index.d.ts CHANGED
@@ -70,11 +70,40 @@ declare const AislopConfigSchema: z.ZodObject<{
70
70
  telemetry: z.ZodDefault<z.ZodObject<{
71
71
  enabled: z.ZodDefault<z.ZodBoolean>;
72
72
  }, z.core.$strict>>;
73
+ baseline: z.ZodOptional<z.ZodObject<{
74
+ mode: z.ZodDefault<z.ZodEnum<{
75
+ strict: "strict";
76
+ relaxed: "relaxed";
77
+ }>>;
78
+ }, z.core.$strict>>;
79
+ licensing: z.ZodOptional<z.ZodObject<{
80
+ onLapse: z.ZodDefault<z.ZodEnum<{
81
+ "fail-open": "fail-open";
82
+ "fail-closed": "fail-closed";
83
+ }>>;
84
+ }, z.core.$strict>>;
85
+ workspace: z.ZodOptional<z.ZodObject<{
86
+ minimumFloor: z.ZodDefault<z.ZodNumber>;
87
+ }, z.core.$strict>>;
73
88
  rules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<{
74
89
  error: "error";
75
90
  warning: "warning";
76
91
  off: "off";
77
92
  }>>>;
93
+ overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
94
+ files: z.ZodArray<z.ZodString>;
95
+ quality: z.ZodOptional<z.ZodObject<{
96
+ maxFunctionLoc: z.ZodOptional<z.ZodNumber>;
97
+ maxFileLoc: z.ZodOptional<z.ZodNumber>;
98
+ maxNesting: z.ZodOptional<z.ZodNumber>;
99
+ maxParams: z.ZodOptional<z.ZodNumber>;
100
+ }, z.core.$strip>>;
101
+ rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
102
+ error: "error";
103
+ warning: "warning";
104
+ off: "off";
105
+ }>>>;
106
+ }, z.core.$strip>>>;
78
107
  exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
79
108
  include: z.ZodDefault<z.ZodArray<z.ZodString>>;
80
109
  }, z.core.$strict>;
@@ -148,11 +177,40 @@ declare const RaigalConfigSchema: z.ZodObject<{
148
177
  telemetry: z.ZodDefault<z.ZodObject<{
149
178
  enabled: z.ZodDefault<z.ZodBoolean>;
150
179
  }, z.core.$strict>>;
180
+ baseline: z.ZodOptional<z.ZodObject<{
181
+ mode: z.ZodDefault<z.ZodEnum<{
182
+ strict: "strict";
183
+ relaxed: "relaxed";
184
+ }>>;
185
+ }, z.core.$strict>>;
186
+ licensing: z.ZodOptional<z.ZodObject<{
187
+ onLapse: z.ZodDefault<z.ZodEnum<{
188
+ "fail-open": "fail-open";
189
+ "fail-closed": "fail-closed";
190
+ }>>;
191
+ }, z.core.$strict>>;
192
+ workspace: z.ZodOptional<z.ZodObject<{
193
+ minimumFloor: z.ZodDefault<z.ZodNumber>;
194
+ }, z.core.$strict>>;
151
195
  rules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<{
152
196
  error: "error";
153
197
  warning: "warning";
154
198
  off: "off";
155
199
  }>>>;
200
+ overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
201
+ files: z.ZodArray<z.ZodString>;
202
+ quality: z.ZodOptional<z.ZodObject<{
203
+ maxFunctionLoc: z.ZodOptional<z.ZodNumber>;
204
+ maxFileLoc: z.ZodOptional<z.ZodNumber>;
205
+ maxNesting: z.ZodOptional<z.ZodNumber>;
206
+ maxParams: z.ZodOptional<z.ZodNumber>;
207
+ }, z.core.$strip>>;
208
+ rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
209
+ error: "error";
210
+ warning: "warning";
211
+ off: "off";
212
+ }>>>;
213
+ }, z.core.$strip>>>;
156
214
  exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
157
215
  include: z.ZodDefault<z.ZodArray<z.ZodString>>;
158
216
  }, z.core.$strict>;
@@ -329,6 +387,7 @@ interface EngineResult {
329
387
  elapsed: number;
330
388
  skipped: boolean;
331
389
  skipReason?: string;
390
+ failed?: boolean;
332
391
  }
333
392
  //#endregion
334
393
  //#region src/commands/scan.d.ts