@code-sentinel-cli/code-sentinel-cli 3.0.5 → 3.0.7
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/dist/bin.js +7779 -6565
- package/dist/index.d.ts +46 -46
- package/dist/index.js +4592 -3378
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -195,7 +195,7 @@ interface WorkspaceLinkState {
|
|
|
195
195
|
readonly projectId: string;
|
|
196
196
|
readonly codebaseId: string;
|
|
197
197
|
readonly fingerprint: string;
|
|
198
|
-
readonly canonicalRemote: string;
|
|
198
|
+
readonly canonicalRemote: string | null;
|
|
199
199
|
readonly subdirectory: string;
|
|
200
200
|
readonly providerRepositoryId?: string;
|
|
201
201
|
readonly configCache?: {
|
|
@@ -278,12 +278,12 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
278
278
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
279
279
|
}, "strip", z.ZodTypeAny, {
|
|
280
280
|
options?: Record<string, unknown> | undefined;
|
|
281
|
-
severity?: "
|
|
281
|
+
severity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
282
282
|
confidence?: number | undefined;
|
|
283
283
|
enabled?: boolean | undefined;
|
|
284
284
|
}, {
|
|
285
285
|
options?: Record<string, unknown> | undefined;
|
|
286
|
-
severity?: "
|
|
286
|
+
severity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
287
287
|
confidence?: number | undefined;
|
|
288
288
|
enabled?: boolean | undefined;
|
|
289
289
|
}>>>;
|
|
@@ -314,11 +314,11 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
314
314
|
severity: z.ZodOptional<z.ZodEnum<["info", "warning", "error", "blocker"]>>;
|
|
315
315
|
confidence: z.ZodOptional<z.ZodNumber>;
|
|
316
316
|
}, "strip", z.ZodTypeAny, {
|
|
317
|
-
severity?: "
|
|
317
|
+
severity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
318
318
|
confidence?: number | undefined;
|
|
319
319
|
enabled?: boolean | undefined;
|
|
320
320
|
}, {
|
|
321
|
-
severity?: "
|
|
321
|
+
severity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
322
322
|
confidence?: number | undefined;
|
|
323
323
|
enabled?: boolean | undefined;
|
|
324
324
|
}>>>;
|
|
@@ -326,7 +326,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
326
326
|
paths: string[];
|
|
327
327
|
disabled?: string[] | undefined;
|
|
328
328
|
overrides?: Record<string, {
|
|
329
|
-
severity?: "
|
|
329
|
+
severity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
330
330
|
confidence?: number | undefined;
|
|
331
331
|
enabled?: boolean | undefined;
|
|
332
332
|
}> | undefined;
|
|
@@ -334,7 +334,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
334
334
|
paths: string[];
|
|
335
335
|
disabled?: string[] | undefined;
|
|
336
336
|
overrides?: Record<string, {
|
|
337
|
-
severity?: "
|
|
337
|
+
severity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
338
338
|
confidence?: number | undefined;
|
|
339
339
|
enabled?: boolean | undefined;
|
|
340
340
|
}> | undefined;
|
|
@@ -346,7 +346,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
346
346
|
projectCustomExecution: ("local" | "ci")[];
|
|
347
347
|
overrides: Record<string, {
|
|
348
348
|
options?: Record<string, unknown> | undefined;
|
|
349
|
-
severity?: "
|
|
349
|
+
severity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
350
350
|
confidence?: number | undefined;
|
|
351
351
|
enabled?: boolean | undefined;
|
|
352
352
|
}>;
|
|
@@ -354,7 +354,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
354
354
|
paths: string[];
|
|
355
355
|
disabled?: string[] | undefined;
|
|
356
356
|
overrides?: Record<string, {
|
|
357
|
-
severity?: "
|
|
357
|
+
severity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
358
358
|
confidence?: number | undefined;
|
|
359
359
|
enabled?: boolean | undefined;
|
|
360
360
|
}> | undefined;
|
|
@@ -366,7 +366,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
366
366
|
projectCustomExecution?: ("local" | "ci")[] | undefined;
|
|
367
367
|
overrides?: Record<string, {
|
|
368
368
|
options?: Record<string, unknown> | undefined;
|
|
369
|
-
severity?: "
|
|
369
|
+
severity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
370
370
|
confidence?: number | undefined;
|
|
371
371
|
enabled?: boolean | undefined;
|
|
372
372
|
}> | undefined;
|
|
@@ -374,7 +374,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
374
374
|
paths: string[];
|
|
375
375
|
disabled?: string[] | undefined;
|
|
376
376
|
overrides?: Record<string, {
|
|
377
|
-
severity?: "
|
|
377
|
+
severity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
378
378
|
confidence?: number | undefined;
|
|
379
379
|
enabled?: boolean | undefined;
|
|
380
380
|
}> | undefined;
|
|
@@ -649,19 +649,19 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
649
649
|
ai: z.ZodDefault<z.ZodEnum<["disabled", "advisory", "blocking"]>>;
|
|
650
650
|
maxBudgetMs: z.ZodOptional<z.ZodNumber>;
|
|
651
651
|
}, "strip", z.ZodTypeAny, {
|
|
652
|
-
name: "
|
|
652
|
+
name: "deep" | "fast";
|
|
653
653
|
ai: "disabled" | "advisory" | "blocking";
|
|
654
654
|
maxBudgetMs?: number | undefined;
|
|
655
655
|
}, {
|
|
656
|
-
name?: "
|
|
656
|
+
name?: "deep" | "fast" | undefined;
|
|
657
657
|
ai?: "disabled" | "advisory" | "blocking" | undefined;
|
|
658
658
|
maxBudgetMs?: number | undefined;
|
|
659
659
|
}>, {
|
|
660
|
-
name: "
|
|
660
|
+
name: "deep" | "fast";
|
|
661
661
|
ai: "disabled" | "advisory" | "blocking";
|
|
662
662
|
maxBudgetMs?: number | undefined;
|
|
663
663
|
}, {
|
|
664
|
-
name?: "
|
|
664
|
+
name?: "deep" | "fast" | undefined;
|
|
665
665
|
ai?: "disabled" | "advisory" | "blocking" | undefined;
|
|
666
666
|
maxBudgetMs?: number | undefined;
|
|
667
667
|
}>>;
|
|
@@ -704,11 +704,11 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
704
704
|
aiSkipPolicy?: "ignore" | "warn" | "fail" | undefined;
|
|
705
705
|
}>>;
|
|
706
706
|
}, "strip", z.ZodTypeAny, {
|
|
707
|
-
minSeverity: "
|
|
707
|
+
minSeverity: "info" | "warning" | "error" | "blocker";
|
|
708
708
|
baseline: "ignore" | "apply";
|
|
709
709
|
extraInstructions: string;
|
|
710
710
|
profile: {
|
|
711
|
-
name: "
|
|
711
|
+
name: "deep" | "fast";
|
|
712
712
|
ai: "disabled" | "advisory" | "blocking";
|
|
713
713
|
maxBudgetMs?: number | undefined;
|
|
714
714
|
};
|
|
@@ -718,11 +718,11 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
718
718
|
aiSkipPolicy: "ignore" | "warn" | "fail";
|
|
719
719
|
};
|
|
720
720
|
}, {
|
|
721
|
-
minSeverity?: "
|
|
721
|
+
minSeverity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
722
722
|
baseline?: "ignore" | "apply" | undefined;
|
|
723
723
|
extraInstructions?: string | undefined;
|
|
724
724
|
profile?: {
|
|
725
|
-
name?: "
|
|
725
|
+
name?: "deep" | "fast" | undefined;
|
|
726
726
|
ai?: "disabled" | "advisory" | "blocking" | undefined;
|
|
727
727
|
maxBudgetMs?: number | undefined;
|
|
728
728
|
} | undefined;
|
|
@@ -877,7 +877,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
877
877
|
minified?: boolean | undefined;
|
|
878
878
|
}>>;
|
|
879
879
|
}, "strip", z.ZodTypeAny, {
|
|
880
|
-
minSeverity: "
|
|
880
|
+
minSeverity: "info" | "warning" | "error" | "blocker";
|
|
881
881
|
maxInlineComments: number;
|
|
882
882
|
minConfidence: number;
|
|
883
883
|
applyBaseline: boolean;
|
|
@@ -930,7 +930,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
930
930
|
minified: boolean;
|
|
931
931
|
};
|
|
932
932
|
}, {
|
|
933
|
-
minSeverity?: "
|
|
933
|
+
minSeverity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
934
934
|
maxInlineComments?: number | undefined;
|
|
935
935
|
minConfidence?: number | undefined;
|
|
936
936
|
applyBaseline?: boolean | undefined;
|
|
@@ -1015,9 +1015,6 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1015
1015
|
token?: string | undefined;
|
|
1016
1016
|
}>>;
|
|
1017
1017
|
}, "strip", z.ZodTypeAny, {
|
|
1018
|
-
mode: "economy" | "balanced" | "performance" | "auto";
|
|
1019
|
-
include: string[];
|
|
1020
|
-
exclude: string[];
|
|
1021
1018
|
rules: {
|
|
1022
1019
|
enabled: string[];
|
|
1023
1020
|
disabled: string[];
|
|
@@ -1025,7 +1022,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1025
1022
|
projectCustomExecution: ("local" | "ci")[];
|
|
1026
1023
|
overrides: Record<string, {
|
|
1027
1024
|
options?: Record<string, unknown> | undefined;
|
|
1028
|
-
severity?: "
|
|
1025
|
+
severity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
1029
1026
|
confidence?: number | undefined;
|
|
1030
1027
|
enabled?: boolean | undefined;
|
|
1031
1028
|
}>;
|
|
@@ -1033,12 +1030,15 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1033
1030
|
paths: string[];
|
|
1034
1031
|
disabled?: string[] | undefined;
|
|
1035
1032
|
overrides?: Record<string, {
|
|
1036
|
-
severity?: "
|
|
1033
|
+
severity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
1037
1034
|
confidence?: number | undefined;
|
|
1038
1035
|
enabled?: boolean | undefined;
|
|
1039
1036
|
}> | undefined;
|
|
1040
1037
|
}[];
|
|
1041
1038
|
};
|
|
1039
|
+
mode: "economy" | "balanced" | "performance" | "auto";
|
|
1040
|
+
include: string[];
|
|
1041
|
+
exclude: string[];
|
|
1042
1042
|
ai: {
|
|
1043
1043
|
ollama: {
|
|
1044
1044
|
model: string;
|
|
@@ -1093,11 +1093,11 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1093
1093
|
includeSnippets: boolean;
|
|
1094
1094
|
};
|
|
1095
1095
|
review: {
|
|
1096
|
-
minSeverity: "
|
|
1096
|
+
minSeverity: "info" | "warning" | "error" | "blocker";
|
|
1097
1097
|
baseline: "ignore" | "apply";
|
|
1098
1098
|
extraInstructions: string;
|
|
1099
1099
|
profile: {
|
|
1100
|
-
name: "
|
|
1100
|
+
name: "deep" | "fast";
|
|
1101
1101
|
ai: "disabled" | "advisory" | "blocking";
|
|
1102
1102
|
maxBudgetMs?: number | undefined;
|
|
1103
1103
|
};
|
|
@@ -1108,7 +1108,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1108
1108
|
};
|
|
1109
1109
|
};
|
|
1110
1110
|
prReview: {
|
|
1111
|
-
minSeverity: "
|
|
1111
|
+
minSeverity: "info" | "warning" | "error" | "blocker";
|
|
1112
1112
|
maxInlineComments: number;
|
|
1113
1113
|
minConfidence: number;
|
|
1114
1114
|
applyBaseline: boolean;
|
|
@@ -1171,9 +1171,6 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1171
1171
|
token?: string | undefined;
|
|
1172
1172
|
};
|
|
1173
1173
|
}, {
|
|
1174
|
-
mode?: "economy" | "balanced" | "performance" | "auto" | undefined;
|
|
1175
|
-
include?: string[] | undefined;
|
|
1176
|
-
exclude?: string[] | undefined;
|
|
1177
1174
|
rules?: {
|
|
1178
1175
|
enabled?: string[] | undefined;
|
|
1179
1176
|
disabled?: string[] | undefined;
|
|
@@ -1181,7 +1178,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1181
1178
|
projectCustomExecution?: ("local" | "ci")[] | undefined;
|
|
1182
1179
|
overrides?: Record<string, {
|
|
1183
1180
|
options?: Record<string, unknown> | undefined;
|
|
1184
|
-
severity?: "
|
|
1181
|
+
severity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
1185
1182
|
confidence?: number | undefined;
|
|
1186
1183
|
enabled?: boolean | undefined;
|
|
1187
1184
|
}> | undefined;
|
|
@@ -1189,12 +1186,15 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1189
1186
|
paths: string[];
|
|
1190
1187
|
disabled?: string[] | undefined;
|
|
1191
1188
|
overrides?: Record<string, {
|
|
1192
|
-
severity?: "
|
|
1189
|
+
severity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
1193
1190
|
confidence?: number | undefined;
|
|
1194
1191
|
enabled?: boolean | undefined;
|
|
1195
1192
|
}> | undefined;
|
|
1196
1193
|
}[] | undefined;
|
|
1197
1194
|
} | undefined;
|
|
1195
|
+
mode?: "economy" | "balanced" | "performance" | "auto" | undefined;
|
|
1196
|
+
include?: string[] | undefined;
|
|
1197
|
+
exclude?: string[] | undefined;
|
|
1198
1198
|
ai?: {
|
|
1199
1199
|
ollama?: {
|
|
1200
1200
|
model?: string | undefined;
|
|
@@ -1249,11 +1249,11 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1249
1249
|
includeSnippets?: boolean | undefined;
|
|
1250
1250
|
} | undefined;
|
|
1251
1251
|
review?: {
|
|
1252
|
-
minSeverity?: "
|
|
1252
|
+
minSeverity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
1253
1253
|
baseline?: "ignore" | "apply" | undefined;
|
|
1254
1254
|
extraInstructions?: string | undefined;
|
|
1255
1255
|
profile?: {
|
|
1256
|
-
name?: "
|
|
1256
|
+
name?: "deep" | "fast" | undefined;
|
|
1257
1257
|
ai?: "disabled" | "advisory" | "blocking" | undefined;
|
|
1258
1258
|
maxBudgetMs?: number | undefined;
|
|
1259
1259
|
} | undefined;
|
|
@@ -1264,7 +1264,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1264
1264
|
} | undefined;
|
|
1265
1265
|
} | undefined;
|
|
1266
1266
|
prReview?: {
|
|
1267
|
-
minSeverity?: "
|
|
1267
|
+
minSeverity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
1268
1268
|
maxInlineComments?: number | undefined;
|
|
1269
1269
|
minConfidence?: number | undefined;
|
|
1270
1270
|
applyBaseline?: boolean | undefined;
|
|
@@ -1327,9 +1327,6 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1327
1327
|
token?: string | undefined;
|
|
1328
1328
|
} | undefined;
|
|
1329
1329
|
}>, {
|
|
1330
|
-
mode: "economy" | "balanced" | "performance" | "auto";
|
|
1331
|
-
include: string[];
|
|
1332
|
-
exclude: string[];
|
|
1333
1330
|
rules: {
|
|
1334
1331
|
enabled: string[];
|
|
1335
1332
|
disabled: string[];
|
|
@@ -1337,7 +1334,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1337
1334
|
projectCustomExecution: ("local" | "ci")[];
|
|
1338
1335
|
overrides: Record<string, {
|
|
1339
1336
|
options?: Record<string, unknown> | undefined;
|
|
1340
|
-
severity?: "
|
|
1337
|
+
severity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
1341
1338
|
confidence?: number | undefined;
|
|
1342
1339
|
enabled?: boolean | undefined;
|
|
1343
1340
|
}>;
|
|
@@ -1345,12 +1342,15 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1345
1342
|
paths: string[];
|
|
1346
1343
|
disabled?: string[] | undefined;
|
|
1347
1344
|
overrides?: Record<string, {
|
|
1348
|
-
severity?: "
|
|
1345
|
+
severity?: "info" | "warning" | "error" | "blocker" | undefined;
|
|
1349
1346
|
confidence?: number | undefined;
|
|
1350
1347
|
enabled?: boolean | undefined;
|
|
1351
1348
|
}> | undefined;
|
|
1352
1349
|
}[];
|
|
1353
1350
|
};
|
|
1351
|
+
mode: "economy" | "balanced" | "performance" | "auto";
|
|
1352
|
+
include: string[];
|
|
1353
|
+
exclude: string[];
|
|
1354
1354
|
ai: {
|
|
1355
1355
|
ollama: {
|
|
1356
1356
|
model: string;
|
|
@@ -1405,11 +1405,11 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1405
1405
|
includeSnippets: boolean;
|
|
1406
1406
|
};
|
|
1407
1407
|
review: {
|
|
1408
|
-
minSeverity: "
|
|
1408
|
+
minSeverity: "info" | "warning" | "error" | "blocker";
|
|
1409
1409
|
baseline: "ignore" | "apply";
|
|
1410
1410
|
extraInstructions: string;
|
|
1411
1411
|
profile: {
|
|
1412
|
-
name: "
|
|
1412
|
+
name: "deep" | "fast";
|
|
1413
1413
|
ai: "disabled" | "advisory" | "blocking";
|
|
1414
1414
|
maxBudgetMs?: number | undefined;
|
|
1415
1415
|
};
|
|
@@ -1420,7 +1420,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1420
1420
|
};
|
|
1421
1421
|
};
|
|
1422
1422
|
prReview: {
|
|
1423
|
-
minSeverity: "
|
|
1423
|
+
minSeverity: "info" | "warning" | "error" | "blocker";
|
|
1424
1424
|
maxInlineComments: number;
|
|
1425
1425
|
minConfidence: number;
|
|
1426
1426
|
applyBaseline: boolean;
|
|
@@ -1525,7 +1525,7 @@ interface ProjectStatus {
|
|
|
1525
1525
|
readonly serverUrl: string;
|
|
1526
1526
|
readonly projectId: string;
|
|
1527
1527
|
readonly codebaseId: string;
|
|
1528
|
-
readonly canonicalRemote: string;
|
|
1528
|
+
readonly canonicalRemote: string | null;
|
|
1529
1529
|
readonly subdirectory: string;
|
|
1530
1530
|
};
|
|
1531
1531
|
readonly git: {
|