@harness-engineering/core 0.13.0 → 0.14.0
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/architecture/matchers.d.mts +1 -1
- package/dist/architecture/matchers.d.ts +1 -1
- package/dist/architecture/matchers.js +267 -223
- package/dist/architecture/matchers.mjs +1 -1
- package/dist/{chunk-ZHGBWFYD.mjs → chunk-BQUWXBGR.mjs} +262 -217
- package/dist/index.d.mts +177 -107
- package/dist/index.d.ts +177 -107
- package/dist/index.js +1905 -1451
- package/dist/index.mjs +1608 -1208
- package/dist/{matchers-Dj1t5vpg.d.mts → matchers-D20x48U9.d.mts} +46 -46
- package/dist/{matchers-Dj1t5vpg.d.ts → matchers-D20x48U9.d.ts} +46 -46
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Result, WorkflowStep, WorkflowStepResult, Workflow, WorkflowResult, SkillLifecycleHooks, SkillContext, SkillResult, TurnContext, CICheckName, CIFailOnSeverity, CICheckReport, Roadmap, FeatureStatus } from '@harness-engineering/types';
|
|
1
|
+
import { Result, SessionSectionName, SessionEntry, SessionSections, WorkflowStep, WorkflowStepResult, Workflow, WorkflowResult, SkillLifecycleHooks, SkillContext, SkillResult, TurnContext, CICheckName, CIFailOnSeverity, CICheckReport, Roadmap, FeatureStatus } from '@harness-engineering/types';
|
|
2
2
|
export * from '@harness-engineering/types';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { C as Collector, A as ArchConfig, a as ConstraintRule, M as MetricResult, b as ArchMetricCategory, c as ArchBaseline, d as ArchDiffResult, T as ThresholdConfig } from './matchers-
|
|
5
|
-
export { e as ArchBaselineSchema, f as ArchConfigSchema, g as ArchDiffResultSchema, h as ArchHandle, i as ArchMetricCategorySchema, j as ArchitectureOptions, k as CategoryBaseline, l as CategoryBaselineSchema, m as CategoryRegression, n as CategoryRegressionSchema, o as ConstraintRuleSchema, p as MetricResultSchema, q as ThresholdConfigSchema, V as Violation, r as ViolationSchema, s as archMatchers, t as archModule, u as architecture } from './matchers-
|
|
4
|
+
import { C as Collector, A as ArchConfig, a as ConstraintRule, M as MetricResult, b as ArchMetricCategory, c as ArchBaseline, d as ArchDiffResult, T as ThresholdConfig } from './matchers-D20x48U9.mjs';
|
|
5
|
+
export { e as ArchBaselineSchema, f as ArchConfigSchema, g as ArchDiffResultSchema, h as ArchHandle, i as ArchMetricCategorySchema, j as ArchitectureOptions, k as CategoryBaseline, l as CategoryBaselineSchema, m as CategoryRegression, n as CategoryRegressionSchema, o as ConstraintRuleSchema, p as MetricResultSchema, q as ThresholdConfigSchema, V as Violation, r as ViolationSchema, s as archMatchers, t as archModule, u as architecture } from './matchers-D20x48U9.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Represents an error code for identifying specific error types.
|
|
@@ -522,12 +522,12 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
522
522
|
schema: string;
|
|
523
523
|
}>, "many">>;
|
|
524
524
|
}, "strip", z.ZodTypeAny, {
|
|
525
|
-
version: string;
|
|
526
525
|
name: string;
|
|
526
|
+
version: string;
|
|
527
527
|
include: string[];
|
|
528
528
|
keywords: string[];
|
|
529
|
-
description?: string | undefined;
|
|
530
529
|
layers?: Record<string, string[]> | undefined;
|
|
530
|
+
description?: string | undefined;
|
|
531
531
|
minHarnessVersion?: string | undefined;
|
|
532
532
|
boundaries?: {
|
|
533
533
|
name: string;
|
|
@@ -536,11 +536,11 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
536
536
|
schema: string;
|
|
537
537
|
}[] | undefined;
|
|
538
538
|
}, {
|
|
539
|
-
version: string;
|
|
540
539
|
name: string;
|
|
540
|
+
version: string;
|
|
541
541
|
include: string[];
|
|
542
|
-
description?: string | undefined;
|
|
543
542
|
layers?: Record<string, string[]> | undefined;
|
|
543
|
+
description?: string | undefined;
|
|
544
544
|
minHarnessVersion?: string | undefined;
|
|
545
545
|
keywords?: string[] | undefined;
|
|
546
546
|
boundaries?: {
|
|
@@ -675,12 +675,12 @@ declare const BundleSchema: z.ZodObject<{
|
|
|
675
675
|
schema: string;
|
|
676
676
|
}>, "many">>;
|
|
677
677
|
}, "strip", z.ZodTypeAny, {
|
|
678
|
-
version: string;
|
|
679
678
|
name: string;
|
|
679
|
+
version: string;
|
|
680
680
|
include: string[];
|
|
681
681
|
keywords: string[];
|
|
682
|
-
description?: string | undefined;
|
|
683
682
|
layers?: Record<string, string[]> | undefined;
|
|
683
|
+
description?: string | undefined;
|
|
684
684
|
minHarnessVersion?: string | undefined;
|
|
685
685
|
boundaries?: {
|
|
686
686
|
name: string;
|
|
@@ -689,11 +689,11 @@ declare const BundleSchema: z.ZodObject<{
|
|
|
689
689
|
schema: string;
|
|
690
690
|
}[] | undefined;
|
|
691
691
|
}, {
|
|
692
|
-
version: string;
|
|
693
692
|
name: string;
|
|
693
|
+
version: string;
|
|
694
694
|
include: string[];
|
|
695
|
-
description?: string | undefined;
|
|
696
695
|
layers?: Record<string, string[]> | undefined;
|
|
696
|
+
description?: string | undefined;
|
|
697
697
|
minHarnessVersion?: string | undefined;
|
|
698
698
|
keywords?: string[] | undefined;
|
|
699
699
|
boundaries?: {
|
|
@@ -799,15 +799,15 @@ declare const BundleSchema: z.ZodObject<{
|
|
|
799
799
|
}>;
|
|
800
800
|
contributions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
801
801
|
}, "strip", z.ZodTypeAny, {
|
|
802
|
-
version: string;
|
|
803
802
|
name: string;
|
|
803
|
+
version: string;
|
|
804
804
|
manifest: {
|
|
805
|
-
version: string;
|
|
806
805
|
name: string;
|
|
806
|
+
version: string;
|
|
807
807
|
include: string[];
|
|
808
808
|
keywords: string[];
|
|
809
|
-
description?: string | undefined;
|
|
810
809
|
layers?: Record<string, string[]> | undefined;
|
|
810
|
+
description?: string | undefined;
|
|
811
811
|
minHarnessVersion?: string | undefined;
|
|
812
812
|
boundaries?: {
|
|
813
813
|
name: string;
|
|
@@ -842,14 +842,14 @@ declare const BundleSchema: z.ZodObject<{
|
|
|
842
842
|
minHarnessVersion?: string | undefined;
|
|
843
843
|
contributions?: Record<string, unknown> | undefined;
|
|
844
844
|
}, {
|
|
845
|
-
version: string;
|
|
846
845
|
name: string;
|
|
846
|
+
version: string;
|
|
847
847
|
manifest: {
|
|
848
|
-
version: string;
|
|
849
848
|
name: string;
|
|
849
|
+
version: string;
|
|
850
850
|
include: string[];
|
|
851
|
-
description?: string | undefined;
|
|
852
851
|
layers?: Record<string, string[]> | undefined;
|
|
852
|
+
description?: string | undefined;
|
|
853
853
|
minHarnessVersion?: string | undefined;
|
|
854
854
|
keywords?: string[] | undefined;
|
|
855
855
|
boundaries?: {
|
|
@@ -898,16 +898,16 @@ declare const LockfilePackageSchema: z.ZodObject<{
|
|
|
898
898
|
integrity: z.ZodOptional<z.ZodString>;
|
|
899
899
|
provenance: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
900
900
|
}, "strip", z.ZodTypeAny, {
|
|
901
|
-
version: string;
|
|
902
901
|
source: string;
|
|
902
|
+
version: string;
|
|
903
903
|
installedAt: string;
|
|
904
904
|
contributions?: Record<string, unknown> | null | undefined;
|
|
905
905
|
resolved?: string | undefined;
|
|
906
906
|
integrity?: string | undefined;
|
|
907
907
|
provenance?: string[] | undefined;
|
|
908
908
|
}, {
|
|
909
|
-
version: string;
|
|
910
909
|
source: string;
|
|
910
|
+
version: string;
|
|
911
911
|
installedAt: string;
|
|
912
912
|
contributions?: Record<string, unknown> | null | undefined;
|
|
913
913
|
resolved?: string | undefined;
|
|
@@ -926,16 +926,16 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
926
926
|
integrity: z.ZodOptional<z.ZodString>;
|
|
927
927
|
provenance: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
928
928
|
}, "strip", z.ZodTypeAny, {
|
|
929
|
-
version: string;
|
|
930
929
|
source: string;
|
|
930
|
+
version: string;
|
|
931
931
|
installedAt: string;
|
|
932
932
|
contributions?: Record<string, unknown> | null | undefined;
|
|
933
933
|
resolved?: string | undefined;
|
|
934
934
|
integrity?: string | undefined;
|
|
935
935
|
provenance?: string[] | undefined;
|
|
936
936
|
}, {
|
|
937
|
-
version: string;
|
|
938
937
|
source: string;
|
|
938
|
+
version: string;
|
|
939
939
|
installedAt: string;
|
|
940
940
|
contributions?: Record<string, unknown> | null | undefined;
|
|
941
941
|
resolved?: string | undefined;
|
|
@@ -944,8 +944,8 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
944
944
|
}>>;
|
|
945
945
|
}, "strip", z.ZodTypeAny, {
|
|
946
946
|
packages: Record<string, {
|
|
947
|
-
version: string;
|
|
948
947
|
source: string;
|
|
948
|
+
version: string;
|
|
949
949
|
installedAt: string;
|
|
950
950
|
contributions?: Record<string, unknown> | null | undefined;
|
|
951
951
|
resolved?: string | undefined;
|
|
@@ -956,8 +956,8 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
956
956
|
lockfileVersion?: 1 | undefined;
|
|
957
957
|
}, {
|
|
958
958
|
packages: Record<string, {
|
|
959
|
-
version: string;
|
|
960
959
|
source: string;
|
|
960
|
+
version: string;
|
|
961
961
|
installedAt: string;
|
|
962
962
|
contributions?: Record<string, unknown> | null | undefined;
|
|
963
963
|
resolved?: string | undefined;
|
|
@@ -968,8 +968,8 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
968
968
|
lockfileVersion?: 1 | undefined;
|
|
969
969
|
}>, {
|
|
970
970
|
packages: Record<string, {
|
|
971
|
-
version: string;
|
|
972
971
|
source: string;
|
|
972
|
+
version: string;
|
|
973
973
|
installedAt: string;
|
|
974
974
|
contributions?: Record<string, unknown> | null | undefined;
|
|
975
975
|
resolved?: string | undefined;
|
|
@@ -980,8 +980,8 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
980
980
|
lockfileVersion?: 1 | undefined;
|
|
981
981
|
}, {
|
|
982
982
|
packages: Record<string, {
|
|
983
|
-
version: string;
|
|
984
983
|
source: string;
|
|
984
|
+
version: string;
|
|
985
985
|
installedAt: string;
|
|
986
986
|
contributions?: Record<string, unknown> | null | undefined;
|
|
987
987
|
resolved?: string | undefined;
|
|
@@ -1852,12 +1852,12 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
1852
1852
|
match: z.ZodString;
|
|
1853
1853
|
convention: z.ZodEnum<["camelCase", "PascalCase", "UPPER_SNAKE", "kebab-case"]>;
|
|
1854
1854
|
}, "strip", z.ZodTypeAny, {
|
|
1855
|
-
type: "naming";
|
|
1856
1855
|
match: string;
|
|
1856
|
+
type: "naming";
|
|
1857
1857
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
1858
1858
|
}, {
|
|
1859
|
-
type: "naming";
|
|
1860
1859
|
match: string;
|
|
1860
|
+
type: "naming";
|
|
1861
1861
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
1862
1862
|
}>, z.ZodObject<{
|
|
1863
1863
|
type: z.ZodLiteral<"max-exports">;
|
|
@@ -1889,10 +1889,10 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
1889
1889
|
}>]>;
|
|
1890
1890
|
message: z.ZodOptional<z.ZodString>;
|
|
1891
1891
|
}, "strip", z.ZodTypeAny, {
|
|
1892
|
-
severity: "error" | "warning";
|
|
1893
|
-
description: string;
|
|
1894
1892
|
files: string[];
|
|
1895
1893
|
name: string;
|
|
1894
|
+
description: string;
|
|
1895
|
+
severity: "error" | "warning";
|
|
1896
1896
|
rule: {
|
|
1897
1897
|
type: "must-export";
|
|
1898
1898
|
names: string[];
|
|
@@ -1910,8 +1910,8 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
1910
1910
|
type: "no-import";
|
|
1911
1911
|
from: string;
|
|
1912
1912
|
} | {
|
|
1913
|
-
type: "naming";
|
|
1914
1913
|
match: string;
|
|
1914
|
+
type: "naming";
|
|
1915
1915
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
1916
1916
|
} | {
|
|
1917
1917
|
type: "max-exports";
|
|
@@ -1925,10 +1925,10 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
1925
1925
|
};
|
|
1926
1926
|
message?: string | undefined;
|
|
1927
1927
|
}, {
|
|
1928
|
-
severity: "error" | "warning";
|
|
1929
|
-
description: string;
|
|
1930
1928
|
files: string[];
|
|
1931
1929
|
name: string;
|
|
1930
|
+
description: string;
|
|
1931
|
+
severity: "error" | "warning";
|
|
1932
1932
|
rule: {
|
|
1933
1933
|
type: "must-export";
|
|
1934
1934
|
names: string[];
|
|
@@ -1946,8 +1946,8 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
1946
1946
|
type: "no-import";
|
|
1947
1947
|
from: string;
|
|
1948
1948
|
} | {
|
|
1949
|
-
type: "naming";
|
|
1950
1949
|
match: string;
|
|
1950
|
+
type: "naming";
|
|
1951
1951
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
1952
1952
|
} | {
|
|
1953
1953
|
type: "max-exports";
|
|
@@ -1965,10 +1965,10 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
1965
1965
|
ignoreFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1966
1966
|
}, "strip", z.ZodTypeAny, {
|
|
1967
1967
|
patterns: {
|
|
1968
|
-
severity: "error" | "warning";
|
|
1969
|
-
description: string;
|
|
1970
1968
|
files: string[];
|
|
1971
1969
|
name: string;
|
|
1970
|
+
description: string;
|
|
1971
|
+
severity: "error" | "warning";
|
|
1972
1972
|
rule: {
|
|
1973
1973
|
type: "must-export";
|
|
1974
1974
|
names: string[];
|
|
@@ -1986,8 +1986,8 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
1986
1986
|
type: "no-import";
|
|
1987
1987
|
from: string;
|
|
1988
1988
|
} | {
|
|
1989
|
-
type: "naming";
|
|
1990
1989
|
match: string;
|
|
1990
|
+
type: "naming";
|
|
1991
1991
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
1992
1992
|
} | {
|
|
1993
1993
|
type: "max-exports";
|
|
@@ -2005,10 +2005,10 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
2005
2005
|
ignoreFiles?: string[] | undefined;
|
|
2006
2006
|
}, {
|
|
2007
2007
|
patterns: {
|
|
2008
|
-
severity: "error" | "warning";
|
|
2009
|
-
description: string;
|
|
2010
2008
|
files: string[];
|
|
2011
2009
|
name: string;
|
|
2010
|
+
description: string;
|
|
2011
|
+
severity: "error" | "warning";
|
|
2012
2012
|
rule: {
|
|
2013
2013
|
type: "must-export";
|
|
2014
2014
|
names: string[];
|
|
@@ -2026,8 +2026,8 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
2026
2026
|
type: "no-import";
|
|
2027
2027
|
from: string;
|
|
2028
2028
|
} | {
|
|
2029
|
-
type: "naming";
|
|
2030
2029
|
match: string;
|
|
2030
|
+
type: "naming";
|
|
2031
2031
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2032
2032
|
} | {
|
|
2033
2033
|
type: "max-exports";
|
|
@@ -2146,12 +2146,12 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2146
2146
|
match: z.ZodString;
|
|
2147
2147
|
convention: z.ZodEnum<["camelCase", "PascalCase", "UPPER_SNAKE", "kebab-case"]>;
|
|
2148
2148
|
}, "strip", z.ZodTypeAny, {
|
|
2149
|
-
type: "naming";
|
|
2150
2149
|
match: string;
|
|
2150
|
+
type: "naming";
|
|
2151
2151
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2152
2152
|
}, {
|
|
2153
|
-
type: "naming";
|
|
2154
2153
|
match: string;
|
|
2154
|
+
type: "naming";
|
|
2155
2155
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2156
2156
|
}>, z.ZodObject<{
|
|
2157
2157
|
type: z.ZodLiteral<"max-exports">;
|
|
@@ -2183,10 +2183,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2183
2183
|
}>]>;
|
|
2184
2184
|
message: z.ZodOptional<z.ZodString>;
|
|
2185
2185
|
}, "strip", z.ZodTypeAny, {
|
|
2186
|
-
severity: "error" | "warning";
|
|
2187
|
-
description: string;
|
|
2188
2186
|
files: string[];
|
|
2189
2187
|
name: string;
|
|
2188
|
+
description: string;
|
|
2189
|
+
severity: "error" | "warning";
|
|
2190
2190
|
rule: {
|
|
2191
2191
|
type: "must-export";
|
|
2192
2192
|
names: string[];
|
|
@@ -2204,8 +2204,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2204
2204
|
type: "no-import";
|
|
2205
2205
|
from: string;
|
|
2206
2206
|
} | {
|
|
2207
|
-
type: "naming";
|
|
2208
2207
|
match: string;
|
|
2208
|
+
type: "naming";
|
|
2209
2209
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2210
2210
|
} | {
|
|
2211
2211
|
type: "max-exports";
|
|
@@ -2219,10 +2219,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2219
2219
|
};
|
|
2220
2220
|
message?: string | undefined;
|
|
2221
2221
|
}, {
|
|
2222
|
-
severity: "error" | "warning";
|
|
2223
|
-
description: string;
|
|
2224
2222
|
files: string[];
|
|
2225
2223
|
name: string;
|
|
2224
|
+
description: string;
|
|
2225
|
+
severity: "error" | "warning";
|
|
2226
2226
|
rule: {
|
|
2227
2227
|
type: "must-export";
|
|
2228
2228
|
names: string[];
|
|
@@ -2240,8 +2240,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2240
2240
|
type: "no-import";
|
|
2241
2241
|
from: string;
|
|
2242
2242
|
} | {
|
|
2243
|
-
type: "naming";
|
|
2244
2243
|
match: string;
|
|
2244
|
+
type: "naming";
|
|
2245
2245
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2246
2246
|
} | {
|
|
2247
2247
|
type: "max-exports";
|
|
@@ -2259,10 +2259,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2259
2259
|
ignoreFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2260
2260
|
}, "strip", z.ZodTypeAny, {
|
|
2261
2261
|
patterns: {
|
|
2262
|
-
severity: "error" | "warning";
|
|
2263
|
-
description: string;
|
|
2264
2262
|
files: string[];
|
|
2265
2263
|
name: string;
|
|
2264
|
+
description: string;
|
|
2265
|
+
severity: "error" | "warning";
|
|
2266
2266
|
rule: {
|
|
2267
2267
|
type: "must-export";
|
|
2268
2268
|
names: string[];
|
|
@@ -2280,8 +2280,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2280
2280
|
type: "no-import";
|
|
2281
2281
|
from: string;
|
|
2282
2282
|
} | {
|
|
2283
|
-
type: "naming";
|
|
2284
2283
|
match: string;
|
|
2284
|
+
type: "naming";
|
|
2285
2285
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2286
2286
|
} | {
|
|
2287
2287
|
type: "max-exports";
|
|
@@ -2299,10 +2299,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2299
2299
|
ignoreFiles?: string[] | undefined;
|
|
2300
2300
|
}, {
|
|
2301
2301
|
patterns: {
|
|
2302
|
-
severity: "error" | "warning";
|
|
2303
|
-
description: string;
|
|
2304
2302
|
files: string[];
|
|
2305
2303
|
name: string;
|
|
2304
|
+
description: string;
|
|
2305
|
+
severity: "error" | "warning";
|
|
2306
2306
|
rule: {
|
|
2307
2307
|
type: "must-export";
|
|
2308
2308
|
names: string[];
|
|
@@ -2320,8 +2320,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2320
2320
|
type: "no-import";
|
|
2321
2321
|
from: string;
|
|
2322
2322
|
} | {
|
|
2323
|
-
type: "naming";
|
|
2324
2323
|
match: string;
|
|
2324
|
+
type: "naming";
|
|
2325
2325
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2326
2326
|
} | {
|
|
2327
2327
|
type: "max-exports";
|
|
@@ -2355,10 +2355,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2355
2355
|
} | undefined;
|
|
2356
2356
|
patterns?: boolean | {
|
|
2357
2357
|
patterns: {
|
|
2358
|
-
severity: "error" | "warning";
|
|
2359
|
-
description: string;
|
|
2360
2358
|
files: string[];
|
|
2361
2359
|
name: string;
|
|
2360
|
+
description: string;
|
|
2361
|
+
severity: "error" | "warning";
|
|
2362
2362
|
rule: {
|
|
2363
2363
|
type: "must-export";
|
|
2364
2364
|
names: string[];
|
|
@@ -2376,8 +2376,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2376
2376
|
type: "no-import";
|
|
2377
2377
|
from: string;
|
|
2378
2378
|
} | {
|
|
2379
|
-
type: "naming";
|
|
2380
2379
|
match: string;
|
|
2380
|
+
type: "naming";
|
|
2381
2381
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2382
2382
|
} | {
|
|
2383
2383
|
type: "max-exports";
|
|
@@ -2411,10 +2411,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2411
2411
|
} | undefined;
|
|
2412
2412
|
patterns?: boolean | {
|
|
2413
2413
|
patterns: {
|
|
2414
|
-
severity: "error" | "warning";
|
|
2415
|
-
description: string;
|
|
2416
2414
|
files: string[];
|
|
2417
2415
|
name: string;
|
|
2416
|
+
description: string;
|
|
2417
|
+
severity: "error" | "warning";
|
|
2418
2418
|
rule: {
|
|
2419
2419
|
type: "must-export";
|
|
2420
2420
|
names: string[];
|
|
@@ -2432,8 +2432,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2432
2432
|
type: "no-import";
|
|
2433
2433
|
from: string;
|
|
2434
2434
|
} | {
|
|
2435
|
-
type: "naming";
|
|
2436
2435
|
match: string;
|
|
2436
|
+
type: "naming";
|
|
2437
2437
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2438
2438
|
} | {
|
|
2439
2439
|
type: "max-exports";
|
|
@@ -2473,10 +2473,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2473
2473
|
} | undefined;
|
|
2474
2474
|
patterns?: boolean | {
|
|
2475
2475
|
patterns: {
|
|
2476
|
-
severity: "error" | "warning";
|
|
2477
|
-
description: string;
|
|
2478
2476
|
files: string[];
|
|
2479
2477
|
name: string;
|
|
2478
|
+
description: string;
|
|
2479
|
+
severity: "error" | "warning";
|
|
2480
2480
|
rule: {
|
|
2481
2481
|
type: "must-export";
|
|
2482
2482
|
names: string[];
|
|
@@ -2494,8 +2494,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2494
2494
|
type: "no-import";
|
|
2495
2495
|
from: string;
|
|
2496
2496
|
} | {
|
|
2497
|
-
type: "naming";
|
|
2498
2497
|
match: string;
|
|
2498
|
+
type: "naming";
|
|
2499
2499
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2500
2500
|
} | {
|
|
2501
2501
|
type: "max-exports";
|
|
@@ -2537,10 +2537,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2537
2537
|
} | undefined;
|
|
2538
2538
|
patterns?: boolean | {
|
|
2539
2539
|
patterns: {
|
|
2540
|
-
severity: "error" | "warning";
|
|
2541
|
-
description: string;
|
|
2542
2540
|
files: string[];
|
|
2543
2541
|
name: string;
|
|
2542
|
+
description: string;
|
|
2543
|
+
severity: "error" | "warning";
|
|
2544
2544
|
rule: {
|
|
2545
2545
|
type: "must-export";
|
|
2546
2546
|
names: string[];
|
|
@@ -2558,8 +2558,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2558
2558
|
type: "no-import";
|
|
2559
2559
|
from: string;
|
|
2560
2560
|
} | {
|
|
2561
|
-
type: "naming";
|
|
2562
2561
|
match: string;
|
|
2562
|
+
type: "naming";
|
|
2563
2563
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2564
2564
|
} | {
|
|
2565
2565
|
type: "max-exports";
|
|
@@ -2691,10 +2691,19 @@ declare class BenchmarkRunner {
|
|
|
2691
2691
|
rawOutput: string;
|
|
2692
2692
|
success: boolean;
|
|
2693
2693
|
}>;
|
|
2694
|
+
/**
|
|
2695
|
+
* Extract a BenchmarkResult from a single assertion with benchmark data.
|
|
2696
|
+
*/
|
|
2697
|
+
private parseBenchAssertion;
|
|
2698
|
+
/**
|
|
2699
|
+
* Extract JSON from output that may contain non-JSON preamble.
|
|
2700
|
+
*/
|
|
2701
|
+
private extractJson;
|
|
2694
2702
|
/**
|
|
2695
2703
|
* Parse vitest bench JSON reporter output into BenchmarkResult[].
|
|
2696
2704
|
* Vitest bench JSON output contains testResults with benchmark data.
|
|
2697
2705
|
*/
|
|
2706
|
+
private collectAssertionResults;
|
|
2698
2707
|
parseVitestBenchOutput(output: string): BenchmarkResult[];
|
|
2699
2708
|
}
|
|
2700
2709
|
|
|
@@ -3017,6 +3026,18 @@ declare class ChecklistBuilder {
|
|
|
3017
3026
|
addRule(rule: CustomRule): this;
|
|
3018
3027
|
addRules(rules: CustomRule[]): this;
|
|
3019
3028
|
withDiffAnalysis(options: SelfReviewConfig['diffAnalysis'], graphImpactData?: GraphImpactData): this;
|
|
3029
|
+
/**
|
|
3030
|
+
* Build a single harness check item with or without graph data.
|
|
3031
|
+
*/
|
|
3032
|
+
private buildHarnessCheckItem;
|
|
3033
|
+
/**
|
|
3034
|
+
* Build all harness check items based on harnessOptions and graph data.
|
|
3035
|
+
*/
|
|
3036
|
+
private buildHarnessItems;
|
|
3037
|
+
/**
|
|
3038
|
+
* Execute a single custom rule and return a ReviewItem.
|
|
3039
|
+
*/
|
|
3040
|
+
private executeCustomRule;
|
|
3020
3041
|
run(changes: CodeChanges): Promise<Result<ReviewChecklist, FeedbackError>>;
|
|
3021
3042
|
}
|
|
3022
3043
|
|
|
@@ -3149,6 +3170,8 @@ declare class DepDepthCollector implements Collector {
|
|
|
3149
3170
|
* Produce a stable violation ID.
|
|
3150
3171
|
* Formula: sha256(relativePath + ':' + category + ':' + normalizedDetail)
|
|
3151
3172
|
* Line numbers are excluded to keep IDs stable across unrelated edits.
|
|
3173
|
+
*
|
|
3174
|
+
* @param relativePath - POSIX-normalized relative path (callers must use relativePosix())
|
|
3152
3175
|
*/
|
|
3153
3176
|
declare function violationId(relativePath: string, category: string, normalizedDetail: string): string;
|
|
3154
3177
|
/**
|
|
@@ -3236,19 +3259,6 @@ declare class ArchBaselineManager {
|
|
|
3236
3259
|
save(baseline: ArchBaseline): void;
|
|
3237
3260
|
}
|
|
3238
3261
|
|
|
3239
|
-
/**
|
|
3240
|
-
* Diff current metric results against a stored baseline.
|
|
3241
|
-
*
|
|
3242
|
-
* Pure function implementing the ratchet logic:
|
|
3243
|
-
* - New violations (in current but not baseline) cause failure
|
|
3244
|
-
* - Aggregate value exceeding baseline causes failure (regression)
|
|
3245
|
-
* - Pre-existing violations (in both) are allowed
|
|
3246
|
-
* - Resolved violations (in baseline but not current) are celebrated
|
|
3247
|
-
*
|
|
3248
|
-
* Categories present in current but absent from the baseline are treated
|
|
3249
|
-
* as having an empty baseline (value: 0, no known violations), so any
|
|
3250
|
-
* violations in those categories are considered new.
|
|
3251
|
-
*/
|
|
3252
3262
|
declare function diff(current: MetricResult[], baseline: ArchBaseline): ArchDiffResult;
|
|
3253
3263
|
|
|
3254
3264
|
/**
|
|
@@ -3275,13 +3285,13 @@ declare const FailureEntrySchema: z.ZodObject<{
|
|
|
3275
3285
|
description: z.ZodString;
|
|
3276
3286
|
}, "strip", z.ZodTypeAny, {
|
|
3277
3287
|
type: string;
|
|
3278
|
-
date: string;
|
|
3279
3288
|
description: string;
|
|
3289
|
+
date: string;
|
|
3280
3290
|
skill: string;
|
|
3281
3291
|
}, {
|
|
3282
3292
|
type: string;
|
|
3283
|
-
date: string;
|
|
3284
3293
|
description: string;
|
|
3294
|
+
date: string;
|
|
3285
3295
|
skill: string;
|
|
3286
3296
|
}>;
|
|
3287
3297
|
type FailureEntry = z.infer<typeof FailureEntrySchema>;
|
|
@@ -3344,14 +3354,14 @@ declare const GateResultSchema: z.ZodObject<{
|
|
|
3344
3354
|
output: z.ZodOptional<z.ZodString>;
|
|
3345
3355
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
3346
3356
|
}, "strip", z.ZodTypeAny, {
|
|
3347
|
-
passed: boolean;
|
|
3348
3357
|
name: string;
|
|
3358
|
+
passed: boolean;
|
|
3349
3359
|
command: string;
|
|
3350
3360
|
output?: string | undefined;
|
|
3351
3361
|
duration?: number | undefined;
|
|
3352
3362
|
}, {
|
|
3353
|
-
passed: boolean;
|
|
3354
3363
|
name: string;
|
|
3364
|
+
passed: boolean;
|
|
3355
3365
|
command: string;
|
|
3356
3366
|
output?: string | undefined;
|
|
3357
3367
|
duration?: number | undefined;
|
|
@@ -3359,8 +3369,8 @@ declare const GateResultSchema: z.ZodObject<{
|
|
|
3359
3369
|
}, "strip", z.ZodTypeAny, {
|
|
3360
3370
|
passed: boolean;
|
|
3361
3371
|
checks: {
|
|
3362
|
-
passed: boolean;
|
|
3363
3372
|
name: string;
|
|
3373
|
+
passed: boolean;
|
|
3364
3374
|
command: string;
|
|
3365
3375
|
output?: string | undefined;
|
|
3366
3376
|
duration?: number | undefined;
|
|
@@ -3368,8 +3378,8 @@ declare const GateResultSchema: z.ZodObject<{
|
|
|
3368
3378
|
}, {
|
|
3369
3379
|
passed: boolean;
|
|
3370
3380
|
checks: {
|
|
3371
|
-
passed: boolean;
|
|
3372
3381
|
name: string;
|
|
3382
|
+
passed: boolean;
|
|
3373
3383
|
command: string;
|
|
3374
3384
|
output?: string | undefined;
|
|
3375
3385
|
duration?: number | undefined;
|
|
@@ -3432,13 +3442,13 @@ declare const HarnessStateSchema: z.ZodObject<{
|
|
|
3432
3442
|
description: z.ZodString;
|
|
3433
3443
|
status: z.ZodEnum<["open", "resolved"]>;
|
|
3434
3444
|
}, "strip", z.ZodTypeAny, {
|
|
3435
|
-
status: "resolved" | "open";
|
|
3436
3445
|
id: string;
|
|
3437
3446
|
description: string;
|
|
3438
|
-
}, {
|
|
3439
3447
|
status: "resolved" | "open";
|
|
3448
|
+
}, {
|
|
3440
3449
|
id: string;
|
|
3441
3450
|
description: string;
|
|
3451
|
+
status: "resolved" | "open";
|
|
3442
3452
|
}>, "many">>;
|
|
3443
3453
|
progress: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<["pending", "in_progress", "complete"]>>>;
|
|
3444
3454
|
lastSession: z.ZodOptional<z.ZodObject<{
|
|
@@ -3464,9 +3474,9 @@ declare const HarnessStateSchema: z.ZodObject<{
|
|
|
3464
3474
|
decision: string;
|
|
3465
3475
|
}[];
|
|
3466
3476
|
blockers: {
|
|
3467
|
-
status: "resolved" | "open";
|
|
3468
3477
|
id: string;
|
|
3469
3478
|
description: string;
|
|
3479
|
+
status: "resolved" | "open";
|
|
3470
3480
|
}[];
|
|
3471
3481
|
schemaVersion: 1;
|
|
3472
3482
|
position: {
|
|
@@ -3488,9 +3498,9 @@ declare const HarnessStateSchema: z.ZodObject<{
|
|
|
3488
3498
|
decision: string;
|
|
3489
3499
|
}[] | undefined;
|
|
3490
3500
|
blockers?: {
|
|
3491
|
-
status: "resolved" | "open";
|
|
3492
3501
|
id: string;
|
|
3493
3502
|
description: string;
|
|
3503
|
+
status: "resolved" | "open";
|
|
3494
3504
|
}[] | undefined;
|
|
3495
3505
|
position?: {
|
|
3496
3506
|
task?: string | undefined;
|
|
@@ -3715,6 +3725,34 @@ declare function loadSessionSummary(projectPath: string, sessionSlug: string): R
|
|
|
3715
3725
|
*/
|
|
3716
3726
|
declare function listActiveSessions(projectPath: string): Result<string | null, Error>;
|
|
3717
3727
|
|
|
3728
|
+
/**
|
|
3729
|
+
* Reads all session sections. Returns empty sections if no session state exists.
|
|
3730
|
+
*/
|
|
3731
|
+
declare function readSessionSections(projectPath: string, sessionSlug: string): Promise<Result<SessionSections, Error>>;
|
|
3732
|
+
/**
|
|
3733
|
+
* Reads a single session section by name. Returns empty array if section has no entries.
|
|
3734
|
+
*/
|
|
3735
|
+
declare function readSessionSection(projectPath: string, sessionSlug: string, section: SessionSectionName): Promise<Result<SessionEntry[], Error>>;
|
|
3736
|
+
/**
|
|
3737
|
+
* Appends an entry to a session section (read-before-write).
|
|
3738
|
+
* Generates a unique ID and timestamp for the entry.
|
|
3739
|
+
*/
|
|
3740
|
+
declare function appendSessionEntry(projectPath: string, sessionSlug: string, section: SessionSectionName, authorSkill: string, content: string): Promise<Result<SessionEntry, Error>>;
|
|
3741
|
+
/**
|
|
3742
|
+
* Updates the status of an existing entry in a session section.
|
|
3743
|
+
* Returns Err if the entry is not found.
|
|
3744
|
+
*/
|
|
3745
|
+
declare function updateSessionEntryStatus(projectPath: string, sessionSlug: string, section: SessionSectionName, entryId: string, newStatus: SessionEntry['status']): Promise<Result<SessionEntry, Error>>;
|
|
3746
|
+
|
|
3747
|
+
/**
|
|
3748
|
+
* Archives a session by moving its directory to
|
|
3749
|
+
* `.harness/archive/sessions/<slug>-<date>`.
|
|
3750
|
+
*
|
|
3751
|
+
* The original session directory is removed. If an archive with the same
|
|
3752
|
+
* date already exists, a numeric counter is appended.
|
|
3753
|
+
*/
|
|
3754
|
+
declare function archiveSession(projectPath: string, sessionSlug: string): Promise<Result<void, Error>>;
|
|
3755
|
+
|
|
3718
3756
|
type StepExecutor = (step: WorkflowStep, previousArtifact?: string) => Promise<WorkflowStepResult>;
|
|
3719
3757
|
declare function executeWorkflow(workflow: Workflow, executor: StepExecutor): Promise<WorkflowResult>;
|
|
3720
3758
|
|
|
@@ -3846,9 +3884,9 @@ declare const SecurityConfigSchema: z.ZodObject<{
|
|
|
3846
3884
|
} | undefined;
|
|
3847
3885
|
}>>;
|
|
3848
3886
|
}, "strip", z.ZodTypeAny, {
|
|
3887
|
+
rules: Record<string, "error" | "warning" | "info" | "off">;
|
|
3849
3888
|
enabled: boolean;
|
|
3850
3889
|
strict: boolean;
|
|
3851
|
-
rules: Record<string, "error" | "warning" | "info" | "off">;
|
|
3852
3890
|
exclude: string[];
|
|
3853
3891
|
external?: {
|
|
3854
3892
|
semgrep?: {
|
|
@@ -3860,9 +3898,9 @@ declare const SecurityConfigSchema: z.ZodObject<{
|
|
|
3860
3898
|
} | undefined;
|
|
3861
3899
|
} | undefined;
|
|
3862
3900
|
}, {
|
|
3901
|
+
rules?: Record<string, "error" | "warning" | "info" | "off"> | undefined;
|
|
3863
3902
|
enabled?: boolean | undefined;
|
|
3864
3903
|
strict?: boolean | undefined;
|
|
3865
|
-
rules?: Record<string, "error" | "warning" | "info" | "off"> | undefined;
|
|
3866
3904
|
exclude?: string[] | undefined;
|
|
3867
3905
|
external?: {
|
|
3868
3906
|
semgrep?: {
|
|
@@ -3969,6 +4007,22 @@ interface MechanicalCheckOptions {
|
|
|
3969
4007
|
/** Only scan these files for security (e.g., changed files from a PR) */
|
|
3970
4008
|
changedFiles?: string[];
|
|
3971
4009
|
}
|
|
4010
|
+
/**
|
|
4011
|
+
* Report on evidence coverage across review findings.
|
|
4012
|
+
* Produced by the evidence gate and included in review output.
|
|
4013
|
+
*/
|
|
4014
|
+
interface EvidenceCoverageReport {
|
|
4015
|
+
/** Total evidence entries loaded from session state */
|
|
4016
|
+
totalEntries: number;
|
|
4017
|
+
/** Number of findings that have matching evidence entries */
|
|
4018
|
+
findingsWithEvidence: number;
|
|
4019
|
+
/** Number of findings without matching evidence (flagged [UNVERIFIED]) */
|
|
4020
|
+
uncitedCount: number;
|
|
4021
|
+
/** Titles of uncited findings (for reporting) */
|
|
4022
|
+
uncitedFindings: string[];
|
|
4023
|
+
/** Coverage percentage (findingsWithEvidence / total findings * 100) */
|
|
4024
|
+
coveragePercentage: number;
|
|
4025
|
+
}
|
|
3972
4026
|
|
|
3973
4027
|
/**
|
|
3974
4028
|
* Change type detected from commit message prefix or diff heuristic.
|
|
@@ -4192,6 +4246,8 @@ interface ReviewOutputOptions {
|
|
|
4192
4246
|
prNumber?: number;
|
|
4193
4247
|
/** Repository in owner/repo format (required for GitHub comments) */
|
|
4194
4248
|
repo?: string;
|
|
4249
|
+
/** Evidence coverage report to append to output (optional) */
|
|
4250
|
+
evidenceCoverage?: EvidenceCoverageReport;
|
|
4195
4251
|
}
|
|
4196
4252
|
/**
|
|
4197
4253
|
* A formatted GitHub inline comment ready for posting.
|
|
@@ -4331,6 +4387,8 @@ interface PipelineContext {
|
|
|
4331
4387
|
checkDepsOutput?: string;
|
|
4332
4388
|
/** Repository in owner/repo format (for --comment) */
|
|
4333
4389
|
repo?: string;
|
|
4390
|
+
/** Session slug for evidence checking (optional) */
|
|
4391
|
+
sessionSlug?: string;
|
|
4334
4392
|
/** Whether the pipeline was skipped by the gate */
|
|
4335
4393
|
skipped: boolean;
|
|
4336
4394
|
/** Reason for skipping (when skipped is true) */
|
|
@@ -4357,6 +4415,8 @@ interface PipelineContext {
|
|
|
4357
4415
|
githubComments?: GitHubInlineComment[];
|
|
4358
4416
|
/** Process exit code (0 = approve/comment, 1 = request-changes) */
|
|
4359
4417
|
exitCode: number;
|
|
4418
|
+
/** Evidence coverage report (when session evidence is available) */
|
|
4419
|
+
evidenceCoverage?: EvidenceCoverageReport;
|
|
4360
4420
|
}
|
|
4361
4421
|
/**
|
|
4362
4422
|
* Immutable result returned from `runPipeline()`.
|
|
@@ -4382,6 +4442,8 @@ interface ReviewPipelineResult {
|
|
|
4382
4442
|
exitCode: number;
|
|
4383
4443
|
/** Mechanical check result (for reporting) */
|
|
4384
4444
|
mechanicalResult?: MechanicalCheckResult;
|
|
4445
|
+
/** Evidence coverage report (when session evidence is available) */
|
|
4446
|
+
evidenceCoverage?: EvidenceCoverageReport;
|
|
4385
4447
|
}
|
|
4386
4448
|
|
|
4387
4449
|
/**
|
|
@@ -4417,15 +4479,6 @@ declare function scopeContext(options: ContextScopeOptions): Promise<ContextBund
|
|
|
4417
4479
|
* Descriptor for the compliance review agent.
|
|
4418
4480
|
*/
|
|
4419
4481
|
declare const COMPLIANCE_DESCRIPTOR: ReviewAgentDescriptor;
|
|
4420
|
-
/**
|
|
4421
|
-
* Run the compliance review agent.
|
|
4422
|
-
*
|
|
4423
|
-
* Analyzes the context bundle for convention adherence, spec alignment,
|
|
4424
|
-
* and documentation completeness. Produces ReviewFinding[] with domain 'compliance'.
|
|
4425
|
-
*
|
|
4426
|
-
* This function performs static/heuristic analysis. The actual LLM invocation
|
|
4427
|
-
* for deeper compliance review happens at the orchestration layer (MCP/CLI).
|
|
4428
|
-
*/
|
|
4429
4482
|
declare function runComplianceAgent(bundle: ContextBundle): ReviewFinding[];
|
|
4430
4483
|
|
|
4431
4484
|
declare const BUG_DETECTION_DESCRIPTOR: ReviewAgentDescriptor;
|
|
@@ -4579,6 +4632,7 @@ declare function formatFindingBlock(finding: ReviewFinding): string;
|
|
|
4579
4632
|
declare function formatTerminalOutput(options: {
|
|
4580
4633
|
findings: ReviewFinding[];
|
|
4581
4634
|
strengths: ReviewStrength[];
|
|
4635
|
+
evidenceCoverage?: EvidenceCoverageReport;
|
|
4582
4636
|
}): string;
|
|
4583
4637
|
|
|
4584
4638
|
/**
|
|
@@ -4600,8 +4654,22 @@ declare function formatGitHubComment(finding: ReviewFinding): GitHubInlineCommen
|
|
|
4600
4654
|
declare function formatGitHubSummary(options: {
|
|
4601
4655
|
findings: ReviewFinding[];
|
|
4602
4656
|
strengths: ReviewStrength[];
|
|
4657
|
+
evidenceCoverage?: EvidenceCoverageReport;
|
|
4603
4658
|
}): string;
|
|
4604
4659
|
|
|
4660
|
+
/**
|
|
4661
|
+
* Check evidence coverage for a set of review findings against session evidence entries.
|
|
4662
|
+
*
|
|
4663
|
+
* For each finding, checks whether any active evidence entry references the same
|
|
4664
|
+
* file:line location. Findings without matching evidence are flagged as uncited.
|
|
4665
|
+
*/
|
|
4666
|
+
declare function checkEvidenceCoverage(findings: ReviewFinding[], evidenceEntries: SessionEntry[]): EvidenceCoverageReport;
|
|
4667
|
+
/**
|
|
4668
|
+
* Tag uncited findings by prefixing their title with [UNVERIFIED].
|
|
4669
|
+
* Mutates the findings array in place and returns it.
|
|
4670
|
+
*/
|
|
4671
|
+
declare function tagUncitedFindings(findings: ReviewFinding[], evidenceEntries: SessionEntry[]): ReviewFinding[];
|
|
4672
|
+
|
|
4605
4673
|
/**
|
|
4606
4674
|
* Options for invoking the pipeline.
|
|
4607
4675
|
*/
|
|
@@ -4620,6 +4688,8 @@ interface RunPipelineOptions {
|
|
|
4620
4688
|
config?: Record<string, unknown>;
|
|
4621
4689
|
/** Pre-gathered commit history entries */
|
|
4622
4690
|
commitHistory?: CommitHistoryEntry[];
|
|
4691
|
+
/** Session slug for loading evidence entries (optional) */
|
|
4692
|
+
sessionSlug?: string;
|
|
4623
4693
|
}
|
|
4624
4694
|
/**
|
|
4625
4695
|
* Run the full 7-phase code review pipeline.
|
|
@@ -4678,12 +4748,12 @@ declare const QuestionSchema: z.ZodObject<{
|
|
|
4678
4748
|
default: z.ZodOptional<z.ZodString>;
|
|
4679
4749
|
}, "strip", z.ZodTypeAny, {
|
|
4680
4750
|
text: string;
|
|
4681
|
-
options?: string[] | undefined;
|
|
4682
4751
|
default?: string | undefined;
|
|
4752
|
+
options?: string[] | undefined;
|
|
4683
4753
|
}, {
|
|
4684
4754
|
text: string;
|
|
4685
|
-
options?: string[] | undefined;
|
|
4686
4755
|
default?: string | undefined;
|
|
4756
|
+
options?: string[] | undefined;
|
|
4687
4757
|
}>;
|
|
4688
4758
|
declare const ConfirmationSchema: z.ZodObject<{
|
|
4689
4759
|
text: z.ZodString;
|
|
@@ -4727,12 +4797,12 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
|
|
|
4727
4797
|
default: z.ZodOptional<z.ZodString>;
|
|
4728
4798
|
}, "strip", z.ZodTypeAny, {
|
|
4729
4799
|
text: string;
|
|
4730
|
-
options?: string[] | undefined;
|
|
4731
4800
|
default?: string | undefined;
|
|
4801
|
+
options?: string[] | undefined;
|
|
4732
4802
|
}, {
|
|
4733
4803
|
text: string;
|
|
4734
|
-
options?: string[] | undefined;
|
|
4735
4804
|
default?: string | undefined;
|
|
4805
|
+
options?: string[] | undefined;
|
|
4736
4806
|
}>>;
|
|
4737
4807
|
confirmation: z.ZodOptional<z.ZodObject<{
|
|
4738
4808
|
text: z.ZodString;
|
|
@@ -4772,8 +4842,8 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
|
|
|
4772
4842
|
stream?: string | undefined;
|
|
4773
4843
|
question?: {
|
|
4774
4844
|
text: string;
|
|
4775
|
-
options?: string[] | undefined;
|
|
4776
4845
|
default?: string | undefined;
|
|
4846
|
+
options?: string[] | undefined;
|
|
4777
4847
|
} | undefined;
|
|
4778
4848
|
confirmation?: {
|
|
4779
4849
|
text: string;
|
|
@@ -4793,8 +4863,8 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
|
|
|
4793
4863
|
stream?: string | undefined;
|
|
4794
4864
|
question?: {
|
|
4795
4865
|
text: string;
|
|
4796
|
-
options?: string[] | undefined;
|
|
4797
4866
|
default?: string | undefined;
|
|
4867
|
+
options?: string[] | undefined;
|
|
4798
4868
|
} | undefined;
|
|
4799
4869
|
confirmation?: {
|
|
4800
4870
|
text: string;
|
|
@@ -4917,6 +4987,6 @@ declare function getUpdateNotification(currentVersion: string): string | null;
|
|
|
4917
4987
|
* release. Kept only as a fallback for consumers that cannot resolve the CLI
|
|
4918
4988
|
* package at runtime.
|
|
4919
4989
|
*/
|
|
4920
|
-
declare const VERSION = "0.
|
|
4990
|
+
declare const VERSION = "0.14.0";
|
|
4921
4991
|
|
|
4922
|
-
export { AGENT_DESCRIPTORS, ARCHITECTURE_DESCRIPTOR, type AST, type ActionContext, type ActionEvent, type ActionEventHandler, type ActionEventType, type ActionResult, type ActionSink, type ActionTracker, type ActionType, type AgentAction, AgentActionEmitter, type AgentExecutor, type AgentMapLink, type AgentMapSection, type AgentMapValidation, type AgentProcess, type AgentReviewResult, type AgentType, type AgentsMapConfig, ArchBaseline, ArchBaselineManager, ArchConfig, ArchDiffResult, ArchMetricCategory, BUG_DETECTION_DESCRIPTOR, type BaseError, type Baseline, BaselineManager, type BaselinesFile, type BenchmarkResult, type BenchmarkRunOptions, BenchmarkRunner, type BlueprintData, BlueprintGenerator, type BlueprintModule, type BlueprintOptions, type BoundaryDefinition, type BoundaryValidation, type BoundaryValidator, type BoundaryViolation, type BrokenLink, type BudgetedLearningsOptions, type Bundle, type BundleConstraints, BundleConstraintsSchema, BundleSchema, COMPLIANCE_DESCRIPTOR, type ChangeType, type ChangedFile, ChecklistBuilder, type CircularDependency, CircularDepsCollector, type CircularDepsResult, type CleanupFinding, type CodeBlock, type CodeChanges, type CodePattern, type CodeReference, type CodebaseSnapshot, Collector, type CommentedCodeBlock, type CommitFormat, type CommitHistoryEntry, type CommitValidation, ComplexityCollector, type ComplexityConfig, type ComplexityReport, type ComplexityThresholds, type ComplexityViolation, type ConfigError, type ConfigPattern, type Confirmation, ConfirmationSchema, type ConflictReport, ConsoleSink, type ConstraintError, type ConstraintNodeStore, ConstraintRule, type Content, ContentPipeline, type ContextBundle, type ContextError, type ContextFile, type ContextFilterResult, type ContextScopeOptions, type Contributions, ContributionsSchema, type Convention, CouplingCollector, type CouplingConfig, type CouplingReport, type CouplingThresholds, type CouplingViolation, type CoverageOptions, type CoverageReport, type CriticalPathEntry, CriticalPathResolver, type CriticalPathSet, type CustomRule, type CustomRuleResult, DEFAULT_PROVIDER_TIERS, DEFAULT_SECURITY_CONFIG, DEFAULT_STATE, DEFAULT_STREAM_INDEX, type DeadCodeConfig, type DeadCodeReport, type DeadExport, type DeadFile, type DeadInternal, type DeduplicateFindingsOptions, DepDepthCollector, type DependencyEdge, type DependencyGraph, type DependencyValidation, type DependencyViolation, type DetectStaleResult, type DiffInfo, type DocumentationDrift, type DocumentationFile, type DocumentationGap, type DriftConfig, type DriftReport, type EligibilityResult, type EmitInteractionInput, EmitInteractionInputSchema, EntropyAnalyzer, type EntropyConfig, EntropyConfigSchema, type EntropyError, type EntropyReport, ExclusionSet, type ExecutorHealth, type Export, type ExportMap, type FailureEntry, FailureEntrySchema, type FanOutOptions, type FeedbackAgentConfig, type FeedbackConfig, type FeedbackError$1 as FeedbackError, type FileCategory, FileSink, type FindingSeverity, type Fix, type FixConfig, type FixResult, type FixType, ForbiddenImportCollector, type ForbiddenImportViolation, type ForbiddenPattern, type GateConfig, GateConfigSchema, type GateResult, GateResultSchema, type GenerationSection, type GitHubInlineComment, type GraphAdapter, type GraphComplexityData, type GraphCouplingData, type GraphCoverageData, type GraphCriticalPathData, type GraphDependencyData, type GraphHarnessCheckData, type GraphImpactData, type Handoff, HandoffSchema, type HarnessState, HarnessStateSchema, type HealthCheckResult, type Hotspot, type HotspotContext, type Import, type InlineReference, type IntegrityReport, type InteractionType, InteractionTypeSchema, type InternalSymbol, type JSDocComment, type LanguageParser, type Layer, type LayerConfig, LayerViolationCollector, type LearningPattern, type Lockfile, type LockfilePackage, LockfilePackageSchema, LockfileSchema, type LogEntry, type LogFilter, type Manifest, ManifestSchema, type MechanicalCheckOptions, type MechanicalCheckResult, type MechanicalCheckStatus, type MechanicalFinding, type MergeResult, type Metric, MetricResult, type ModelProvider, type ModelTier, type ModelTierConfig, type ModuleDependency, ModuleSizeCollector, NoOpExecutor, NoOpSink, NoOpTelemetryAdapter, type OrphanedDep, type ParseError, type PatternConfig, PatternConfigSchema, type PatternMatch, type PatternReport, type PatternViolation, type PeerReview, type PeerReviewOptions, type PipelineContext, type PipelineFlags, type PipelineOptions, type PipelineResult, type PrMetadata, type PriorReview, ProjectScanner, type ProviderDefaults, type PruneResult, type Question, QuestionSchema, REQUIRED_SECTIONS, type ReachabilityNode, RegressionDetector, type RegressionReport, type RegressionResult, type ReviewAgentDescriptor, type ReviewAssessment, type ReviewChecklist, type ReviewComment, type ReviewContext, type ReviewDomain, type ReviewFinding, type ReviewItem, type ReviewOutputOptions, type ReviewPipelineResult, type ReviewStrength, type RuleOverride, RuleRegistry, type RunCIChecksInput, type RunPipelineOptions, SECURITY_DESCRIPTOR, type SafetyLevel, type ScanResult, type SecurityCategory, type SecurityConfidence, type SecurityConfig, SecurityConfigSchema, type SecurityFinding, type SecurityRule, SecurityScanner, type SecuritySeverity, type SelfReviewConfig, type SessionSummaryData, SharableBoundaryConfigSchema, SharableForbiddenImportSchema, SharableLayerSchema, SharableSecurityRulesSchema, type SizeBudgetConfig, type SizeBudgetReport, type SizeBudgetViolation, type SkillExecutor, type SourceFile, type Span, type SpanEvent, type StaleConstraint, type StepExecutor, type StreamIndex, StreamIndexSchema, type StreamInfo, StreamInfoSchema, type StructureValidation, type Suggestion, type SuggestionReport, type SyncChange, type SyncOptions, type TelemetryAdapter, type TelemetryHealth, ThresholdConfig, type TimeRange, type TokenBudget, type TokenBudgetOverrides, type Trace, type Transition, TransitionSchema, type TurnExecutor, TypeScriptParser, type UnusedImport, type UpdateCheckState, VERSION, type ValidateFindingsOptions, type ValidationError, type WorkflowPhase, addProvenance, analyzeDiff, analyzeLearningPatterns, appendFailure, appendLearning, applyFixes, applyHotspotDowngrade, archiveFailures, archiveLearnings, archiveStream, buildDependencyGraph, buildExclusionSet, buildSnapshot, checkDocCoverage, checkEligibility, classifyFinding, clearFailuresCache, clearLearningsCache, configureFeedback, constraintRuleId, contextBudget, contextFilter, createBoundaryValidator, createCommentedCodeFixes, createError, createFixes, createForbiddenImportFixes, createOrphanedDepFixes, createParseError, createSelfReview, createStream, cryptoRules, deduplicateCleanupFindings, deduplicateFindings, deepMergeConstraints, defaultCollectors, defineLayer, deserializationRules, detectChangeType, detectCircularDeps, detectCircularDepsInFiles, detectComplexityViolations, detectCouplingViolations, detectDeadCode, detectDocDrift, detectPatternViolations, detectSizeBudgetViolations, detectStack, detectStaleConstraints, determineAssessment, diff, executeWorkflow, expressRules, extractBundle, extractMarkdownLinks, extractSections, fanOutReview, formatFindingBlock, formatGitHubComment, formatGitHubSummary, formatTerminalOutput, generateAgentsMap, generateSuggestions, getActionEmitter, getExitCode, getFeedbackConfig, getPhaseCategories, getStreamForBranch, getUpdateNotification, goRules, injectionRules, isSmallSuggestion, isUpdateCheckEnabled, listActiveSessions, listStreams, loadBudgetedLearnings, loadFailures, loadHandoff, loadRelevantLearnings, loadSessionSummary, loadState, loadStreamIndex, logAgentAction, migrateToStreams, networkRules, nodeRules, parseDateFromEntry, parseDiff, parseManifest, parseRoadmap, parseSecurityConfig, parseSize, pathTraversalRules, previewFix, pruneLearnings, reactRules, readCheckState, readLockfile, removeContributions, removeProvenance, requestMultiplePeerReviews, requestPeerReview, resetFeedbackConfig, resolveFileToLayer, resolveModelTier, resolveRuleSeverity, resolveSessionDir, resolveStreamPath, resolveThresholds, runAll, runArchitectureAgent, runBugDetectionAgent, runCIChecks, runComplianceAgent, runMechanicalChecks, runMechanicalGate, runMultiTurnPipeline, runPipeline, runReviewPipeline, runSecurityAgent, saveHandoff, saveState, saveStreamIndex, scopeContext, secretRules, serializeRoadmap, setActiveStream, shouldRunCheck, spawnBackgroundCheck, syncConstraintNodes, syncRoadmap, touchStream, trackAction, updateSessionIndex, validateAgentsMap, validateBoundaries, validateCommitMessage, validateConfig, validateDependencies, validateFileStructure, validateFindings, validateKnowledgeMap, validatePatternConfig, violationId, writeConfig, writeLockfile, writeSessionSummary, xssRules };
|
|
4992
|
+
export { AGENT_DESCRIPTORS, ARCHITECTURE_DESCRIPTOR, type AST, type ActionContext, type ActionEvent, type ActionEventHandler, type ActionEventType, type ActionResult, type ActionSink, type ActionTracker, type ActionType, type AgentAction, AgentActionEmitter, type AgentExecutor, type AgentMapLink, type AgentMapSection, type AgentMapValidation, type AgentProcess, type AgentReviewResult, type AgentType, type AgentsMapConfig, ArchBaseline, ArchBaselineManager, ArchConfig, ArchDiffResult, ArchMetricCategory, BUG_DETECTION_DESCRIPTOR, type BaseError, type Baseline, BaselineManager, type BaselinesFile, type BenchmarkResult, type BenchmarkRunOptions, BenchmarkRunner, type BlueprintData, BlueprintGenerator, type BlueprintModule, type BlueprintOptions, type BoundaryDefinition, type BoundaryValidation, type BoundaryValidator, type BoundaryViolation, type BrokenLink, type BudgetedLearningsOptions, type Bundle, type BundleConstraints, BundleConstraintsSchema, BundleSchema, COMPLIANCE_DESCRIPTOR, type ChangeType, type ChangedFile, ChecklistBuilder, type CircularDependency, CircularDepsCollector, type CircularDepsResult, type CleanupFinding, type CodeBlock, type CodeChanges, type CodePattern, type CodeReference, type CodebaseSnapshot, Collector, type CommentedCodeBlock, type CommitFormat, type CommitHistoryEntry, type CommitValidation, ComplexityCollector, type ComplexityConfig, type ComplexityReport, type ComplexityThresholds, type ComplexityViolation, type ConfigError, type ConfigPattern, type Confirmation, ConfirmationSchema, type ConflictReport, ConsoleSink, type ConstraintError, type ConstraintNodeStore, ConstraintRule, type Content, ContentPipeline, type ContextBundle, type ContextError, type ContextFile, type ContextFilterResult, type ContextScopeOptions, type Contributions, ContributionsSchema, type Convention, CouplingCollector, type CouplingConfig, type CouplingReport, type CouplingThresholds, type CouplingViolation, type CoverageOptions, type CoverageReport, type CriticalPathEntry, CriticalPathResolver, type CriticalPathSet, type CustomRule, type CustomRuleResult, DEFAULT_PROVIDER_TIERS, DEFAULT_SECURITY_CONFIG, DEFAULT_STATE, DEFAULT_STREAM_INDEX, type DeadCodeConfig, type DeadCodeReport, type DeadExport, type DeadFile, type DeadInternal, type DeduplicateFindingsOptions, DepDepthCollector, type DependencyEdge, type DependencyGraph, type DependencyValidation, type DependencyViolation, type DetectStaleResult, type DiffInfo, type DocumentationDrift, type DocumentationFile, type DocumentationGap, type DriftConfig, type DriftReport, type EligibilityResult, type EmitInteractionInput, EmitInteractionInputSchema, EntropyAnalyzer, type EntropyConfig, EntropyConfigSchema, type EntropyError, type EntropyReport, type EvidenceCoverageReport, ExclusionSet, type ExecutorHealth, type Export, type ExportMap, type FailureEntry, FailureEntrySchema, type FanOutOptions, type FeedbackAgentConfig, type FeedbackConfig, type FeedbackError$1 as FeedbackError, type FileCategory, FileSink, type FindingSeverity, type Fix, type FixConfig, type FixResult, type FixType, ForbiddenImportCollector, type ForbiddenImportViolation, type ForbiddenPattern, type GateConfig, GateConfigSchema, type GateResult, GateResultSchema, type GenerationSection, type GitHubInlineComment, type GraphAdapter, type GraphComplexityData, type GraphCouplingData, type GraphCoverageData, type GraphCriticalPathData, type GraphDependencyData, type GraphHarnessCheckData, type GraphImpactData, type Handoff, HandoffSchema, type HarnessState, HarnessStateSchema, type HealthCheckResult, type Hotspot, type HotspotContext, type Import, type InlineReference, type IntegrityReport, type InteractionType, InteractionTypeSchema, type InternalSymbol, type JSDocComment, type LanguageParser, type Layer, type LayerConfig, LayerViolationCollector, type LearningPattern, type Lockfile, type LockfilePackage, LockfilePackageSchema, LockfileSchema, type LogEntry, type LogFilter, type Manifest, ManifestSchema, type MechanicalCheckOptions, type MechanicalCheckResult, type MechanicalCheckStatus, type MechanicalFinding, type MergeResult, type Metric, MetricResult, type ModelProvider, type ModelTier, type ModelTierConfig, type ModuleDependency, ModuleSizeCollector, NoOpExecutor, NoOpSink, NoOpTelemetryAdapter, type OrphanedDep, type ParseError, type PatternConfig, PatternConfigSchema, type PatternMatch, type PatternReport, type PatternViolation, type PeerReview, type PeerReviewOptions, type PipelineContext, type PipelineFlags, type PipelineOptions, type PipelineResult, type PrMetadata, type PriorReview, ProjectScanner, type ProviderDefaults, type PruneResult, type Question, QuestionSchema, REQUIRED_SECTIONS, type ReachabilityNode, RegressionDetector, type RegressionReport, type RegressionResult, type ReviewAgentDescriptor, type ReviewAssessment, type ReviewChecklist, type ReviewComment, type ReviewContext, type ReviewDomain, type ReviewFinding, type ReviewItem, type ReviewOutputOptions, type ReviewPipelineResult, type ReviewStrength, type RuleOverride, RuleRegistry, type RunCIChecksInput, type RunPipelineOptions, SECURITY_DESCRIPTOR, type SafetyLevel, type ScanResult, type SecurityCategory, type SecurityConfidence, type SecurityConfig, SecurityConfigSchema, type SecurityFinding, type SecurityRule, SecurityScanner, type SecuritySeverity, type SelfReviewConfig, type SessionSummaryData, SharableBoundaryConfigSchema, SharableForbiddenImportSchema, SharableLayerSchema, SharableSecurityRulesSchema, type SizeBudgetConfig, type SizeBudgetReport, type SizeBudgetViolation, type SkillExecutor, type SourceFile, type Span, type SpanEvent, type StaleConstraint, type StepExecutor, type StreamIndex, StreamIndexSchema, type StreamInfo, StreamInfoSchema, type StructureValidation, type Suggestion, type SuggestionReport, type SyncChange, type SyncOptions, type TelemetryAdapter, type TelemetryHealth, ThresholdConfig, type TimeRange, type TokenBudget, type TokenBudgetOverrides, type Trace, type Transition, TransitionSchema, type TurnExecutor, TypeScriptParser, type UnusedImport, type UpdateCheckState, VERSION, type ValidateFindingsOptions, type ValidationError, type WorkflowPhase, addProvenance, analyzeDiff, analyzeLearningPatterns, appendFailure, appendLearning, appendSessionEntry, applyFixes, applyHotspotDowngrade, archiveFailures, archiveLearnings, archiveSession, archiveStream, buildDependencyGraph, buildExclusionSet, buildSnapshot, checkDocCoverage, checkEligibility, checkEvidenceCoverage, classifyFinding, clearFailuresCache, clearLearningsCache, configureFeedback, constraintRuleId, contextBudget, contextFilter, createBoundaryValidator, createCommentedCodeFixes, createError, createFixes, createForbiddenImportFixes, createOrphanedDepFixes, createParseError, createSelfReview, createStream, cryptoRules, deduplicateCleanupFindings, deduplicateFindings, deepMergeConstraints, defaultCollectors, defineLayer, deserializationRules, detectChangeType, detectCircularDeps, detectCircularDepsInFiles, detectComplexityViolations, detectCouplingViolations, detectDeadCode, detectDocDrift, detectPatternViolations, detectSizeBudgetViolations, detectStack, detectStaleConstraints, determineAssessment, diff, executeWorkflow, expressRules, extractBundle, extractMarkdownLinks, extractSections, fanOutReview, formatFindingBlock, formatGitHubComment, formatGitHubSummary, formatTerminalOutput, generateAgentsMap, generateSuggestions, getActionEmitter, getExitCode, getFeedbackConfig, getPhaseCategories, getStreamForBranch, getUpdateNotification, goRules, injectionRules, isSmallSuggestion, isUpdateCheckEnabled, listActiveSessions, listStreams, loadBudgetedLearnings, loadFailures, loadHandoff, loadRelevantLearnings, loadSessionSummary, loadState, loadStreamIndex, logAgentAction, migrateToStreams, networkRules, nodeRules, parseDateFromEntry, parseDiff, parseManifest, parseRoadmap, parseSecurityConfig, parseSize, pathTraversalRules, previewFix, pruneLearnings, reactRules, readCheckState, readLockfile, readSessionSection, readSessionSections, removeContributions, removeProvenance, requestMultiplePeerReviews, requestPeerReview, resetFeedbackConfig, resolveFileToLayer, resolveModelTier, resolveRuleSeverity, resolveSessionDir, resolveStreamPath, resolveThresholds, runAll, runArchitectureAgent, runBugDetectionAgent, runCIChecks, runComplianceAgent, runMechanicalChecks, runMechanicalGate, runMultiTurnPipeline, runPipeline, runReviewPipeline, runSecurityAgent, saveHandoff, saveState, saveStreamIndex, scopeContext, secretRules, serializeRoadmap, setActiveStream, shouldRunCheck, spawnBackgroundCheck, syncConstraintNodes, syncRoadmap, tagUncitedFindings, touchStream, trackAction, updateSessionEntryStatus, updateSessionIndex, validateAgentsMap, validateBoundaries, validateCommitMessage, validateConfig, validateDependencies, validateFileStructure, validateFindings, validateKnowledgeMap, validatePatternConfig, violationId, writeConfig, writeLockfile, writeSessionSummary, xssRules };
|