@code-sentinel-cli/code-sentinel-cli 4.0.13 → 4.0.15
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 +146 -375
- package/dist/builtin-rules/ai/angular/api-service-contract-risk.prompt.md +0 -14
- package/dist/builtin-rules/ai/angular/api-service-contract-risk.rule.yaml +2 -3
- package/dist/builtin-rules/ai/angular/component-state-flow.prompt.md +0 -6
- package/dist/builtin-rules/ai/angular/component-state-flow.rule.yaml +1 -1
- package/dist/builtin-rules/ai/angular/reactive-form-flow.prompt.md +0 -6
- package/dist/builtin-rules/ai/angular/reactive-form-flow.rule.yaml +1 -1
- package/dist/builtin-rules/ai/angular/template-contract-risk.prompt.md +1 -7
- package/dist/builtin-rules/ai/angular/template-contract-risk.rule.yaml +1 -1
- package/dist/builtin-rules/ai/general/code-clarity.prompt.md +0 -4
- package/dist/builtin-rules/ai/general/code-clarity.rule.yaml +1 -1
- package/dist/builtin-rules/static/angular/button-accessible-name.rule.js +5 -261
- package/dist/builtin-rules/static/angular/no-leaky-subscription.rule.js +1 -18
- package/dist/builtin-rules/static/angular/onpush-required.rule.js +7 -7
- package/dist/builtin-rules/static/angular/template-dom-xss.rule.js +1 -28
- package/dist/builtin-rules/static/general/function-too-long.rule.js +3 -2
- package/dist/builtin-rules/static/general/no-circular-import.rule.js +1 -1
- package/dist/builtin-rules/static/general/no-unresolved-import-symbol.rule.js +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +147 -376
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,13 +21,7 @@ interface CliBuildMetadata {
|
|
|
21
21
|
readonly buildTimestamp: string;
|
|
22
22
|
readonly configSchemaRange: string;
|
|
23
23
|
}
|
|
24
|
-
/**
|
|
25
|
-
* Values are embedded by tsup, with deterministic safe defaults for source tests.
|
|
26
|
-
* In the review image (Dockerfile.cli) CS_BUILD_GIT_SHA / CS_BUILD_TIMESTAMP are set only right before the
|
|
27
|
-
* build step, so a new commit does not invalidate the cached dependency install.
|
|
28
|
-
* The same commit is the image tag on pt2 workloads (`code-sentinel-review:<sha>@sha256:…`), which is what the
|
|
29
|
-
* Argo CD Telegram notification links to. A change here rebuilds only the review image (servicePackage).
|
|
30
|
-
*/
|
|
24
|
+
/** Values are embedded by tsup, with deterministic safe defaults for source tests. */
|
|
31
25
|
declare const getCliBuildMetadata: (version: string) => CliBuildMetadata;
|
|
32
26
|
|
|
33
27
|
interface StoredCredential {
|
|
@@ -151,7 +145,7 @@ declare class LinuxSecretServiceStore implements ISecretStore {
|
|
|
151
145
|
}
|
|
152
146
|
/** Byte-oriented API stores credential JSON as UTF-8. */
|
|
153
147
|
interface WindowsSecretEntry {
|
|
154
|
-
getSecret(): Promise<Uint8Array |
|
|
148
|
+
getSecret(): Promise<Uint8Array | undefined>;
|
|
155
149
|
setSecret(secret: Uint8Array): Promise<void>;
|
|
156
150
|
deleteCredential(): Promise<boolean>;
|
|
157
151
|
}
|
|
@@ -858,6 +852,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
858
852
|
minSeverity: z.ZodDefault<z.ZodEnum<["info", "warning", "error", "blocker"]>>;
|
|
859
853
|
minConfidence: z.ZodUnion<[z.ZodNumber, z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>]> | z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>]>>;
|
|
860
854
|
applyBaseline: z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEnum<["true", "false", "1", "0"]>>, boolean, string>]> | z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEnum<["true", "false", "1", "0"]>>, boolean, string>]>>;
|
|
855
|
+
includeUnchangedLines: z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEnum<["true", "false", "1", "0"]>>, boolean, string>]> | z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEnum<["true", "false", "1", "0"]>>, boolean, string>]>>;
|
|
861
856
|
aiStrategy: z.ZodDefault<z.ZodEnum<["smart", "specialized"]>>;
|
|
862
857
|
diffReview: z.ZodDefault<z.ZodObject<{
|
|
863
858
|
enabled: z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEnum<["true", "false", "1", "0"]>>, boolean, string>]> | z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEnum<["true", "false", "1", "0"]>>, boolean, string>]>>;
|
|
@@ -997,6 +992,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
997
992
|
maxInlineComments: number;
|
|
998
993
|
minConfidence: number;
|
|
999
994
|
applyBaseline: boolean;
|
|
995
|
+
includeUnchangedLines: boolean;
|
|
1000
996
|
aiStrategy: "smart" | "specialized";
|
|
1001
997
|
diffReview: {
|
|
1002
998
|
enabled: boolean;
|
|
@@ -1049,6 +1045,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1049
1045
|
maxInlineComments?: string | number | undefined;
|
|
1050
1046
|
minConfidence?: string | number | undefined;
|
|
1051
1047
|
applyBaseline?: string | boolean | undefined;
|
|
1048
|
+
includeUnchangedLines?: string | boolean | undefined;
|
|
1052
1049
|
aiStrategy?: "smart" | "specialized" | undefined;
|
|
1053
1050
|
diffReview?: {
|
|
1054
1051
|
enabled?: string | boolean | undefined;
|
|
@@ -1879,6 +1876,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1879
1876
|
maxInlineComments: number;
|
|
1880
1877
|
minConfidence: number;
|
|
1881
1878
|
applyBaseline: boolean;
|
|
1879
|
+
includeUnchangedLines: boolean;
|
|
1882
1880
|
aiStrategy: "smart" | "specialized";
|
|
1883
1881
|
diffReview: {
|
|
1884
1882
|
enabled: boolean;
|
|
@@ -2142,6 +2140,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2142
2140
|
maxInlineComments?: string | number | undefined;
|
|
2143
2141
|
minConfidence?: string | number | undefined;
|
|
2144
2142
|
applyBaseline?: string | boolean | undefined;
|
|
2143
|
+
includeUnchangedLines?: string | boolean | undefined;
|
|
2145
2144
|
aiStrategy?: "smart" | "specialized" | undefined;
|
|
2146
2145
|
diffReview?: {
|
|
2147
2146
|
enabled?: string | boolean | undefined;
|
|
@@ -2405,6 +2404,7 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2405
2404
|
maxInlineComments: number;
|
|
2406
2405
|
minConfidence: number;
|
|
2407
2406
|
applyBaseline: boolean;
|
|
2407
|
+
includeUnchangedLines: boolean;
|
|
2408
2408
|
aiStrategy: "smart" | "specialized";
|
|
2409
2409
|
diffReview: {
|
|
2410
2410
|
enabled: boolean;
|