@harness-engineering/core 0.15.0 → 0.16.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/README.md +1 -0
- package/dist/architecture/matchers.d.mts +1 -1
- package/dist/architecture/matchers.d.ts +1 -1
- package/dist/index.d.mts +334 -85
- package/dist/index.d.ts +334 -85
- package/dist/index.js +1225 -72
- package/dist/index.mjs +1192 -68
- 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.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Result, SessionSectionName, SessionEntry, SessionSections, 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, ModelPricing, UsageRecord, DailyUsage, SessionUsage } 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.js';
|
|
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.js';
|
|
6
6
|
import Parser from 'web-tree-sitter';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -594,12 +594,12 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
594
594
|
schema: string;
|
|
595
595
|
}>, "many">>;
|
|
596
596
|
}, "strip", z.ZodTypeAny, {
|
|
597
|
-
version: string;
|
|
598
597
|
name: string;
|
|
598
|
+
version: string;
|
|
599
599
|
include: string[];
|
|
600
600
|
keywords: string[];
|
|
601
|
-
description?: string | undefined;
|
|
602
601
|
layers?: Record<string, string[]> | undefined;
|
|
602
|
+
description?: string | undefined;
|
|
603
603
|
minHarnessVersion?: string | undefined;
|
|
604
604
|
boundaries?: {
|
|
605
605
|
name: string;
|
|
@@ -608,11 +608,11 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
608
608
|
schema: string;
|
|
609
609
|
}[] | undefined;
|
|
610
610
|
}, {
|
|
611
|
-
version: string;
|
|
612
611
|
name: string;
|
|
612
|
+
version: string;
|
|
613
613
|
include: string[];
|
|
614
|
-
description?: string | undefined;
|
|
615
614
|
layers?: Record<string, string[]> | undefined;
|
|
615
|
+
description?: string | undefined;
|
|
616
616
|
minHarnessVersion?: string | undefined;
|
|
617
617
|
keywords?: string[] | undefined;
|
|
618
618
|
boundaries?: {
|
|
@@ -747,12 +747,12 @@ declare const BundleSchema: z.ZodObject<{
|
|
|
747
747
|
schema: string;
|
|
748
748
|
}>, "many">>;
|
|
749
749
|
}, "strip", z.ZodTypeAny, {
|
|
750
|
-
version: string;
|
|
751
750
|
name: string;
|
|
751
|
+
version: string;
|
|
752
752
|
include: string[];
|
|
753
753
|
keywords: string[];
|
|
754
|
-
description?: string | undefined;
|
|
755
754
|
layers?: Record<string, string[]> | undefined;
|
|
755
|
+
description?: string | undefined;
|
|
756
756
|
minHarnessVersion?: string | undefined;
|
|
757
757
|
boundaries?: {
|
|
758
758
|
name: string;
|
|
@@ -761,11 +761,11 @@ declare const BundleSchema: z.ZodObject<{
|
|
|
761
761
|
schema: string;
|
|
762
762
|
}[] | undefined;
|
|
763
763
|
}, {
|
|
764
|
-
version: string;
|
|
765
764
|
name: string;
|
|
765
|
+
version: string;
|
|
766
766
|
include: string[];
|
|
767
|
-
description?: string | undefined;
|
|
768
767
|
layers?: Record<string, string[]> | undefined;
|
|
768
|
+
description?: string | undefined;
|
|
769
769
|
minHarnessVersion?: string | undefined;
|
|
770
770
|
keywords?: string[] | undefined;
|
|
771
771
|
boundaries?: {
|
|
@@ -871,15 +871,15 @@ declare const BundleSchema: z.ZodObject<{
|
|
|
871
871
|
}>;
|
|
872
872
|
contributions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
873
873
|
}, "strip", z.ZodTypeAny, {
|
|
874
|
-
version: string;
|
|
875
874
|
name: string;
|
|
875
|
+
version: string;
|
|
876
876
|
manifest: {
|
|
877
|
-
version: string;
|
|
878
877
|
name: string;
|
|
878
|
+
version: string;
|
|
879
879
|
include: string[];
|
|
880
880
|
keywords: string[];
|
|
881
|
-
description?: string | undefined;
|
|
882
881
|
layers?: Record<string, string[]> | undefined;
|
|
882
|
+
description?: string | undefined;
|
|
883
883
|
minHarnessVersion?: string | undefined;
|
|
884
884
|
boundaries?: {
|
|
885
885
|
name: string;
|
|
@@ -914,14 +914,14 @@ declare const BundleSchema: z.ZodObject<{
|
|
|
914
914
|
minHarnessVersion?: string | undefined;
|
|
915
915
|
contributions?: Record<string, unknown> | undefined;
|
|
916
916
|
}, {
|
|
917
|
-
version: string;
|
|
918
917
|
name: string;
|
|
918
|
+
version: string;
|
|
919
919
|
manifest: {
|
|
920
|
-
version: string;
|
|
921
920
|
name: string;
|
|
921
|
+
version: string;
|
|
922
922
|
include: string[];
|
|
923
|
-
description?: string | undefined;
|
|
924
923
|
layers?: Record<string, string[]> | undefined;
|
|
924
|
+
description?: string | undefined;
|
|
925
925
|
minHarnessVersion?: string | undefined;
|
|
926
926
|
keywords?: string[] | undefined;
|
|
927
927
|
boundaries?: {
|
|
@@ -970,16 +970,16 @@ declare const LockfilePackageSchema: z.ZodObject<{
|
|
|
970
970
|
integrity: z.ZodOptional<z.ZodString>;
|
|
971
971
|
provenance: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
972
972
|
}, "strip", z.ZodTypeAny, {
|
|
973
|
-
version: string;
|
|
974
973
|
source: string;
|
|
974
|
+
version: string;
|
|
975
975
|
installedAt: string;
|
|
976
976
|
contributions?: Record<string, unknown> | null | undefined;
|
|
977
977
|
resolved?: string | undefined;
|
|
978
978
|
integrity?: string | undefined;
|
|
979
979
|
provenance?: string[] | undefined;
|
|
980
980
|
}, {
|
|
981
|
-
version: string;
|
|
982
981
|
source: string;
|
|
982
|
+
version: string;
|
|
983
983
|
installedAt: string;
|
|
984
984
|
contributions?: Record<string, unknown> | null | undefined;
|
|
985
985
|
resolved?: string | undefined;
|
|
@@ -998,16 +998,16 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
998
998
|
integrity: z.ZodOptional<z.ZodString>;
|
|
999
999
|
provenance: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1000
1000
|
}, "strip", z.ZodTypeAny, {
|
|
1001
|
-
version: string;
|
|
1002
1001
|
source: string;
|
|
1002
|
+
version: string;
|
|
1003
1003
|
installedAt: string;
|
|
1004
1004
|
contributions?: Record<string, unknown> | null | undefined;
|
|
1005
1005
|
resolved?: string | undefined;
|
|
1006
1006
|
integrity?: string | undefined;
|
|
1007
1007
|
provenance?: string[] | undefined;
|
|
1008
1008
|
}, {
|
|
1009
|
-
version: string;
|
|
1010
1009
|
source: string;
|
|
1010
|
+
version: string;
|
|
1011
1011
|
installedAt: string;
|
|
1012
1012
|
contributions?: Record<string, unknown> | null | undefined;
|
|
1013
1013
|
resolved?: string | undefined;
|
|
@@ -1016,8 +1016,8 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1016
1016
|
}>>;
|
|
1017
1017
|
}, "strip", z.ZodTypeAny, {
|
|
1018
1018
|
packages: Record<string, {
|
|
1019
|
-
version: string;
|
|
1020
1019
|
source: string;
|
|
1020
|
+
version: string;
|
|
1021
1021
|
installedAt: string;
|
|
1022
1022
|
contributions?: Record<string, unknown> | null | undefined;
|
|
1023
1023
|
resolved?: string | undefined;
|
|
@@ -1028,8 +1028,8 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1028
1028
|
lockfileVersion?: 1 | undefined;
|
|
1029
1029
|
}, {
|
|
1030
1030
|
packages: Record<string, {
|
|
1031
|
-
version: string;
|
|
1032
1031
|
source: string;
|
|
1032
|
+
version: string;
|
|
1033
1033
|
installedAt: string;
|
|
1034
1034
|
contributions?: Record<string, unknown> | null | undefined;
|
|
1035
1035
|
resolved?: string | undefined;
|
|
@@ -1040,8 +1040,8 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1040
1040
|
lockfileVersion?: 1 | undefined;
|
|
1041
1041
|
}>, {
|
|
1042
1042
|
packages: Record<string, {
|
|
1043
|
-
version: string;
|
|
1044
1043
|
source: string;
|
|
1044
|
+
version: string;
|
|
1045
1045
|
installedAt: string;
|
|
1046
1046
|
contributions?: Record<string, unknown> | null | undefined;
|
|
1047
1047
|
resolved?: string | undefined;
|
|
@@ -1052,8 +1052,8 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1052
1052
|
lockfileVersion?: 1 | undefined;
|
|
1053
1053
|
}, {
|
|
1054
1054
|
packages: Record<string, {
|
|
1055
|
-
version: string;
|
|
1056
1055
|
source: string;
|
|
1056
|
+
version: string;
|
|
1057
1057
|
installedAt: string;
|
|
1058
1058
|
contributions?: Record<string, unknown> | null | undefined;
|
|
1059
1059
|
resolved?: string | undefined;
|
|
@@ -1924,12 +1924,12 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
1924
1924
|
match: z.ZodString;
|
|
1925
1925
|
convention: z.ZodEnum<["camelCase", "PascalCase", "UPPER_SNAKE", "kebab-case"]>;
|
|
1926
1926
|
}, "strip", z.ZodTypeAny, {
|
|
1927
|
-
type: "naming";
|
|
1928
1927
|
match: string;
|
|
1928
|
+
type: "naming";
|
|
1929
1929
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
1930
1930
|
}, {
|
|
1931
|
-
type: "naming";
|
|
1932
1931
|
match: string;
|
|
1932
|
+
type: "naming";
|
|
1933
1933
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
1934
1934
|
}>, z.ZodObject<{
|
|
1935
1935
|
type: z.ZodLiteral<"max-exports">;
|
|
@@ -1961,10 +1961,10 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
1961
1961
|
}>]>;
|
|
1962
1962
|
message: z.ZodOptional<z.ZodString>;
|
|
1963
1963
|
}, "strip", z.ZodTypeAny, {
|
|
1964
|
-
severity: "error" | "warning";
|
|
1965
|
-
description: string;
|
|
1966
1964
|
files: string[];
|
|
1967
1965
|
name: string;
|
|
1966
|
+
description: string;
|
|
1967
|
+
severity: "error" | "warning";
|
|
1968
1968
|
rule: {
|
|
1969
1969
|
type: "must-export";
|
|
1970
1970
|
names: string[];
|
|
@@ -1982,8 +1982,8 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
1982
1982
|
type: "no-import";
|
|
1983
1983
|
from: string;
|
|
1984
1984
|
} | {
|
|
1985
|
-
type: "naming";
|
|
1986
1985
|
match: string;
|
|
1986
|
+
type: "naming";
|
|
1987
1987
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
1988
1988
|
} | {
|
|
1989
1989
|
type: "max-exports";
|
|
@@ -1997,10 +1997,10 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
1997
1997
|
};
|
|
1998
1998
|
message?: string | undefined;
|
|
1999
1999
|
}, {
|
|
2000
|
-
severity: "error" | "warning";
|
|
2001
|
-
description: string;
|
|
2002
2000
|
files: string[];
|
|
2003
2001
|
name: string;
|
|
2002
|
+
description: string;
|
|
2003
|
+
severity: "error" | "warning";
|
|
2004
2004
|
rule: {
|
|
2005
2005
|
type: "must-export";
|
|
2006
2006
|
names: string[];
|
|
@@ -2018,8 +2018,8 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
2018
2018
|
type: "no-import";
|
|
2019
2019
|
from: string;
|
|
2020
2020
|
} | {
|
|
2021
|
-
type: "naming";
|
|
2022
2021
|
match: string;
|
|
2022
|
+
type: "naming";
|
|
2023
2023
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2024
2024
|
} | {
|
|
2025
2025
|
type: "max-exports";
|
|
@@ -2037,10 +2037,10 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
2037
2037
|
ignoreFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2038
2038
|
}, "strip", z.ZodTypeAny, {
|
|
2039
2039
|
patterns: {
|
|
2040
|
-
severity: "error" | "warning";
|
|
2041
|
-
description: string;
|
|
2042
2040
|
files: string[];
|
|
2043
2041
|
name: string;
|
|
2042
|
+
description: string;
|
|
2043
|
+
severity: "error" | "warning";
|
|
2044
2044
|
rule: {
|
|
2045
2045
|
type: "must-export";
|
|
2046
2046
|
names: string[];
|
|
@@ -2058,8 +2058,8 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
2058
2058
|
type: "no-import";
|
|
2059
2059
|
from: string;
|
|
2060
2060
|
} | {
|
|
2061
|
-
type: "naming";
|
|
2062
2061
|
match: string;
|
|
2062
|
+
type: "naming";
|
|
2063
2063
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2064
2064
|
} | {
|
|
2065
2065
|
type: "max-exports";
|
|
@@ -2077,10 +2077,10 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
2077
2077
|
ignoreFiles?: string[] | undefined;
|
|
2078
2078
|
}, {
|
|
2079
2079
|
patterns: {
|
|
2080
|
-
severity: "error" | "warning";
|
|
2081
|
-
description: string;
|
|
2082
2080
|
files: string[];
|
|
2083
2081
|
name: string;
|
|
2082
|
+
description: string;
|
|
2083
|
+
severity: "error" | "warning";
|
|
2084
2084
|
rule: {
|
|
2085
2085
|
type: "must-export";
|
|
2086
2086
|
names: string[];
|
|
@@ -2098,8 +2098,8 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
2098
2098
|
type: "no-import";
|
|
2099
2099
|
from: string;
|
|
2100
2100
|
} | {
|
|
2101
|
-
type: "naming";
|
|
2102
2101
|
match: string;
|
|
2102
|
+
type: "naming";
|
|
2103
2103
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2104
2104
|
} | {
|
|
2105
2105
|
type: "max-exports";
|
|
@@ -2218,12 +2218,12 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2218
2218
|
match: z.ZodString;
|
|
2219
2219
|
convention: z.ZodEnum<["camelCase", "PascalCase", "UPPER_SNAKE", "kebab-case"]>;
|
|
2220
2220
|
}, "strip", z.ZodTypeAny, {
|
|
2221
|
-
type: "naming";
|
|
2222
2221
|
match: string;
|
|
2222
|
+
type: "naming";
|
|
2223
2223
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2224
2224
|
}, {
|
|
2225
|
-
type: "naming";
|
|
2226
2225
|
match: string;
|
|
2226
|
+
type: "naming";
|
|
2227
2227
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2228
2228
|
}>, z.ZodObject<{
|
|
2229
2229
|
type: z.ZodLiteral<"max-exports">;
|
|
@@ -2255,10 +2255,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2255
2255
|
}>]>;
|
|
2256
2256
|
message: z.ZodOptional<z.ZodString>;
|
|
2257
2257
|
}, "strip", z.ZodTypeAny, {
|
|
2258
|
-
severity: "error" | "warning";
|
|
2259
|
-
description: string;
|
|
2260
2258
|
files: string[];
|
|
2261
2259
|
name: string;
|
|
2260
|
+
description: string;
|
|
2261
|
+
severity: "error" | "warning";
|
|
2262
2262
|
rule: {
|
|
2263
2263
|
type: "must-export";
|
|
2264
2264
|
names: string[];
|
|
@@ -2276,8 +2276,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2276
2276
|
type: "no-import";
|
|
2277
2277
|
from: string;
|
|
2278
2278
|
} | {
|
|
2279
|
-
type: "naming";
|
|
2280
2279
|
match: string;
|
|
2280
|
+
type: "naming";
|
|
2281
2281
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2282
2282
|
} | {
|
|
2283
2283
|
type: "max-exports";
|
|
@@ -2291,10 +2291,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2291
2291
|
};
|
|
2292
2292
|
message?: string | undefined;
|
|
2293
2293
|
}, {
|
|
2294
|
-
severity: "error" | "warning";
|
|
2295
|
-
description: string;
|
|
2296
2294
|
files: string[];
|
|
2297
2295
|
name: string;
|
|
2296
|
+
description: string;
|
|
2297
|
+
severity: "error" | "warning";
|
|
2298
2298
|
rule: {
|
|
2299
2299
|
type: "must-export";
|
|
2300
2300
|
names: string[];
|
|
@@ -2312,8 +2312,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2312
2312
|
type: "no-import";
|
|
2313
2313
|
from: string;
|
|
2314
2314
|
} | {
|
|
2315
|
-
type: "naming";
|
|
2316
2315
|
match: string;
|
|
2316
|
+
type: "naming";
|
|
2317
2317
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2318
2318
|
} | {
|
|
2319
2319
|
type: "max-exports";
|
|
@@ -2331,10 +2331,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2331
2331
|
ignoreFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2332
2332
|
}, "strip", z.ZodTypeAny, {
|
|
2333
2333
|
patterns: {
|
|
2334
|
-
severity: "error" | "warning";
|
|
2335
|
-
description: string;
|
|
2336
2334
|
files: string[];
|
|
2337
2335
|
name: string;
|
|
2336
|
+
description: string;
|
|
2337
|
+
severity: "error" | "warning";
|
|
2338
2338
|
rule: {
|
|
2339
2339
|
type: "must-export";
|
|
2340
2340
|
names: string[];
|
|
@@ -2352,8 +2352,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2352
2352
|
type: "no-import";
|
|
2353
2353
|
from: string;
|
|
2354
2354
|
} | {
|
|
2355
|
-
type: "naming";
|
|
2356
2355
|
match: string;
|
|
2356
|
+
type: "naming";
|
|
2357
2357
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2358
2358
|
} | {
|
|
2359
2359
|
type: "max-exports";
|
|
@@ -2371,10 +2371,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2371
2371
|
ignoreFiles?: string[] | undefined;
|
|
2372
2372
|
}, {
|
|
2373
2373
|
patterns: {
|
|
2374
|
-
severity: "error" | "warning";
|
|
2375
|
-
description: string;
|
|
2376
2374
|
files: string[];
|
|
2377
2375
|
name: string;
|
|
2376
|
+
description: string;
|
|
2377
|
+
severity: "error" | "warning";
|
|
2378
2378
|
rule: {
|
|
2379
2379
|
type: "must-export";
|
|
2380
2380
|
names: string[];
|
|
@@ -2392,8 +2392,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2392
2392
|
type: "no-import";
|
|
2393
2393
|
from: string;
|
|
2394
2394
|
} | {
|
|
2395
|
-
type: "naming";
|
|
2396
2395
|
match: string;
|
|
2396
|
+
type: "naming";
|
|
2397
2397
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2398
2398
|
} | {
|
|
2399
2399
|
type: "max-exports";
|
|
@@ -2427,10 +2427,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2427
2427
|
} | undefined;
|
|
2428
2428
|
patterns?: boolean | {
|
|
2429
2429
|
patterns: {
|
|
2430
|
-
severity: "error" | "warning";
|
|
2431
|
-
description: string;
|
|
2432
2430
|
files: string[];
|
|
2433
2431
|
name: string;
|
|
2432
|
+
description: string;
|
|
2433
|
+
severity: "error" | "warning";
|
|
2434
2434
|
rule: {
|
|
2435
2435
|
type: "must-export";
|
|
2436
2436
|
names: string[];
|
|
@@ -2448,8 +2448,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2448
2448
|
type: "no-import";
|
|
2449
2449
|
from: string;
|
|
2450
2450
|
} | {
|
|
2451
|
-
type: "naming";
|
|
2452
2451
|
match: string;
|
|
2452
|
+
type: "naming";
|
|
2453
2453
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2454
2454
|
} | {
|
|
2455
2455
|
type: "max-exports";
|
|
@@ -2483,10 +2483,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2483
2483
|
} | undefined;
|
|
2484
2484
|
patterns?: boolean | {
|
|
2485
2485
|
patterns: {
|
|
2486
|
-
severity: "error" | "warning";
|
|
2487
|
-
description: string;
|
|
2488
2486
|
files: string[];
|
|
2489
2487
|
name: string;
|
|
2488
|
+
description: string;
|
|
2489
|
+
severity: "error" | "warning";
|
|
2490
2490
|
rule: {
|
|
2491
2491
|
type: "must-export";
|
|
2492
2492
|
names: string[];
|
|
@@ -2504,8 +2504,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2504
2504
|
type: "no-import";
|
|
2505
2505
|
from: string;
|
|
2506
2506
|
} | {
|
|
2507
|
-
type: "naming";
|
|
2508
2507
|
match: string;
|
|
2508
|
+
type: "naming";
|
|
2509
2509
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2510
2510
|
} | {
|
|
2511
2511
|
type: "max-exports";
|
|
@@ -2545,10 +2545,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2545
2545
|
} | undefined;
|
|
2546
2546
|
patterns?: boolean | {
|
|
2547
2547
|
patterns: {
|
|
2548
|
-
severity: "error" | "warning";
|
|
2549
|
-
description: string;
|
|
2550
2548
|
files: string[];
|
|
2551
2549
|
name: string;
|
|
2550
|
+
description: string;
|
|
2551
|
+
severity: "error" | "warning";
|
|
2552
2552
|
rule: {
|
|
2553
2553
|
type: "must-export";
|
|
2554
2554
|
names: string[];
|
|
@@ -2566,8 +2566,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2566
2566
|
type: "no-import";
|
|
2567
2567
|
from: string;
|
|
2568
2568
|
} | {
|
|
2569
|
-
type: "naming";
|
|
2570
2569
|
match: string;
|
|
2570
|
+
type: "naming";
|
|
2571
2571
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2572
2572
|
} | {
|
|
2573
2573
|
type: "max-exports";
|
|
@@ -2609,10 +2609,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2609
2609
|
} | undefined;
|
|
2610
2610
|
patterns?: boolean | {
|
|
2611
2611
|
patterns: {
|
|
2612
|
-
severity: "error" | "warning";
|
|
2613
|
-
description: string;
|
|
2614
2612
|
files: string[];
|
|
2615
2613
|
name: string;
|
|
2614
|
+
description: string;
|
|
2615
|
+
severity: "error" | "warning";
|
|
2616
2616
|
rule: {
|
|
2617
2617
|
type: "must-export";
|
|
2618
2618
|
names: string[];
|
|
@@ -2630,8 +2630,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2630
2630
|
type: "no-import";
|
|
2631
2631
|
from: string;
|
|
2632
2632
|
} | {
|
|
2633
|
-
type: "naming";
|
|
2634
2633
|
match: string;
|
|
2634
|
+
type: "naming";
|
|
2635
2635
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2636
2636
|
} | {
|
|
2637
2637
|
type: "max-exports";
|
|
@@ -3357,13 +3357,13 @@ declare const FailureEntrySchema: z.ZodObject<{
|
|
|
3357
3357
|
description: z.ZodString;
|
|
3358
3358
|
}, "strip", z.ZodTypeAny, {
|
|
3359
3359
|
type: string;
|
|
3360
|
-
date: string;
|
|
3361
3360
|
description: string;
|
|
3361
|
+
date: string;
|
|
3362
3362
|
skill: string;
|
|
3363
3363
|
}, {
|
|
3364
3364
|
type: string;
|
|
3365
|
-
date: string;
|
|
3366
3365
|
description: string;
|
|
3366
|
+
date: string;
|
|
3367
3367
|
skill: string;
|
|
3368
3368
|
}>;
|
|
3369
3369
|
type FailureEntry = z.infer<typeof FailureEntrySchema>;
|
|
@@ -3426,14 +3426,14 @@ declare const GateResultSchema: z.ZodObject<{
|
|
|
3426
3426
|
output: z.ZodOptional<z.ZodString>;
|
|
3427
3427
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
3428
3428
|
}, "strip", z.ZodTypeAny, {
|
|
3429
|
-
passed: boolean;
|
|
3430
3429
|
name: string;
|
|
3430
|
+
passed: boolean;
|
|
3431
3431
|
command: string;
|
|
3432
3432
|
output?: string | undefined;
|
|
3433
3433
|
duration?: number | undefined;
|
|
3434
3434
|
}, {
|
|
3435
|
-
passed: boolean;
|
|
3436
3435
|
name: string;
|
|
3436
|
+
passed: boolean;
|
|
3437
3437
|
command: string;
|
|
3438
3438
|
output?: string | undefined;
|
|
3439
3439
|
duration?: number | undefined;
|
|
@@ -3441,8 +3441,8 @@ declare const GateResultSchema: z.ZodObject<{
|
|
|
3441
3441
|
}, "strip", z.ZodTypeAny, {
|
|
3442
3442
|
passed: boolean;
|
|
3443
3443
|
checks: {
|
|
3444
|
-
passed: boolean;
|
|
3445
3444
|
name: string;
|
|
3445
|
+
passed: boolean;
|
|
3446
3446
|
command: string;
|
|
3447
3447
|
output?: string | undefined;
|
|
3448
3448
|
duration?: number | undefined;
|
|
@@ -3450,8 +3450,8 @@ declare const GateResultSchema: z.ZodObject<{
|
|
|
3450
3450
|
}, {
|
|
3451
3451
|
passed: boolean;
|
|
3452
3452
|
checks: {
|
|
3453
|
-
passed: boolean;
|
|
3454
3453
|
name: string;
|
|
3454
|
+
passed: boolean;
|
|
3455
3455
|
command: string;
|
|
3456
3456
|
output?: string | undefined;
|
|
3457
3457
|
duration?: number | undefined;
|
|
@@ -3514,13 +3514,13 @@ declare const HarnessStateSchema: z.ZodObject<{
|
|
|
3514
3514
|
description: z.ZodString;
|
|
3515
3515
|
status: z.ZodEnum<["open", "resolved"]>;
|
|
3516
3516
|
}, "strip", z.ZodTypeAny, {
|
|
3517
|
-
status: "resolved" | "open";
|
|
3518
3517
|
id: string;
|
|
3519
3518
|
description: string;
|
|
3520
|
-
}, {
|
|
3521
3519
|
status: "resolved" | "open";
|
|
3520
|
+
}, {
|
|
3522
3521
|
id: string;
|
|
3523
3522
|
description: string;
|
|
3523
|
+
status: "resolved" | "open";
|
|
3524
3524
|
}>, "many">>;
|
|
3525
3525
|
progress: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<["pending", "in_progress", "complete"]>>>;
|
|
3526
3526
|
lastSession: z.ZodOptional<z.ZodObject<{
|
|
@@ -3546,9 +3546,9 @@ declare const HarnessStateSchema: z.ZodObject<{
|
|
|
3546
3546
|
decision: string;
|
|
3547
3547
|
}[];
|
|
3548
3548
|
blockers: {
|
|
3549
|
-
status: "resolved" | "open";
|
|
3550
3549
|
id: string;
|
|
3551
3550
|
description: string;
|
|
3551
|
+
status: "resolved" | "open";
|
|
3552
3552
|
}[];
|
|
3553
3553
|
schemaVersion: 1;
|
|
3554
3554
|
position: {
|
|
@@ -3570,9 +3570,9 @@ declare const HarnessStateSchema: z.ZodObject<{
|
|
|
3570
3570
|
decision: string;
|
|
3571
3571
|
}[] | undefined;
|
|
3572
3572
|
blockers?: {
|
|
3573
|
-
status: "resolved" | "open";
|
|
3574
3573
|
id: string;
|
|
3575
3574
|
description: string;
|
|
3575
|
+
status: "resolved" | "open";
|
|
3576
3576
|
}[] | undefined;
|
|
3577
3577
|
position?: {
|
|
3578
3578
|
task?: string | undefined;
|
|
@@ -3977,7 +3977,7 @@ type TurnExecutor = (context: TurnContext) => Promise<{
|
|
|
3977
3977
|
declare function runPipeline(initialContext: SkillContext, executor: SkillExecutor, options?: PipelineOptions): Promise<PipelineResult>;
|
|
3978
3978
|
declare function runMultiTurnPipeline(initialContext: SkillContext, turnExecutor: TurnExecutor, options?: PipelineOptions): Promise<PipelineResult>;
|
|
3979
3979
|
|
|
3980
|
-
type SecurityCategory = 'secrets' | 'injection' | 'xss' | 'crypto' | 'network' | 'deserialization' | 'path-traversal' | 'agent-config' | 'mcp';
|
|
3980
|
+
type SecurityCategory = 'secrets' | 'injection' | 'xss' | 'crypto' | 'network' | 'deserialization' | 'path-traversal' | 'agent-config' | 'mcp' | 'insecure-defaults' | 'sharp-edges';
|
|
3981
3981
|
type SecuritySeverity = 'error' | 'warning' | 'info';
|
|
3982
3982
|
type SecurityConfidence = 'high' | 'medium' | 'low';
|
|
3983
3983
|
interface SecurityRule {
|
|
@@ -4015,6 +4015,12 @@ interface ScanResult {
|
|
|
4015
4015
|
externalToolsUsed: string[];
|
|
4016
4016
|
coverage: 'baseline' | 'enhanced';
|
|
4017
4017
|
}
|
|
4018
|
+
interface SuppressionRecord {
|
|
4019
|
+
ruleId: string;
|
|
4020
|
+
file: string;
|
|
4021
|
+
line: number;
|
|
4022
|
+
justification: string | null;
|
|
4023
|
+
}
|
|
4018
4024
|
type RuleOverride = 'off' | SecuritySeverity;
|
|
4019
4025
|
interface SecurityConfig {
|
|
4020
4026
|
enabled: boolean;
|
|
@@ -4033,6 +4039,11 @@ interface SecurityConfig {
|
|
|
4033
4039
|
}
|
|
4034
4040
|
declare const DEFAULT_SECURITY_CONFIG: SecurityConfig;
|
|
4035
4041
|
|
|
4042
|
+
interface SuppressionMatch {
|
|
4043
|
+
ruleId: string;
|
|
4044
|
+
justification: string | null;
|
|
4045
|
+
}
|
|
4046
|
+
declare function parseHarnessIgnore(line: string, ruleId: string): SuppressionMatch | null;
|
|
4036
4047
|
declare class SecurityScanner {
|
|
4037
4048
|
private registry;
|
|
4038
4049
|
private config;
|
|
@@ -4048,6 +4059,12 @@ declare class SecurityScanner {
|
|
|
4048
4059
|
scanContent(content: string, filePath: string, startLine?: number): SecurityFinding[];
|
|
4049
4060
|
scanFile(filePath: string): Promise<SecurityFinding[]>;
|
|
4050
4061
|
private scanContentForFile;
|
|
4062
|
+
/**
|
|
4063
|
+
* Core scanning loop shared by scanContent and scanContentForFile.
|
|
4064
|
+
* Evaluates each rule against each line, handling suppression (FP gate)
|
|
4065
|
+
* and pattern matching uniformly.
|
|
4066
|
+
*/
|
|
4067
|
+
private scanLinesWithRules;
|
|
4051
4068
|
scanFiles(filePaths: string[]): Promise<ScanResult>;
|
|
4052
4069
|
}
|
|
4053
4070
|
|
|
@@ -4092,9 +4109,9 @@ declare const SecurityConfigSchema: z.ZodObject<{
|
|
|
4092
4109
|
} | undefined;
|
|
4093
4110
|
}>>;
|
|
4094
4111
|
}, "strip", z.ZodTypeAny, {
|
|
4112
|
+
rules: Record<string, "error" | "warning" | "info" | "off">;
|
|
4095
4113
|
enabled: boolean;
|
|
4096
4114
|
strict: boolean;
|
|
4097
|
-
rules: Record<string, "error" | "warning" | "info" | "off">;
|
|
4098
4115
|
exclude: string[];
|
|
4099
4116
|
external?: {
|
|
4100
4117
|
semgrep?: {
|
|
@@ -4106,9 +4123,9 @@ declare const SecurityConfigSchema: z.ZodObject<{
|
|
|
4106
4123
|
} | undefined;
|
|
4107
4124
|
} | undefined;
|
|
4108
4125
|
}, {
|
|
4126
|
+
rules?: Record<string, "error" | "warning" | "info" | "off"> | undefined;
|
|
4109
4127
|
enabled?: boolean | undefined;
|
|
4110
4128
|
strict?: boolean | undefined;
|
|
4111
|
-
rules?: Record<string, "error" | "warning" | "info" | "off"> | undefined;
|
|
4112
4129
|
exclude?: string[] | undefined;
|
|
4113
4130
|
external?: {
|
|
4114
4131
|
semgrep?: {
|
|
@@ -4153,6 +4170,116 @@ declare const agentConfigRules: SecurityRule[];
|
|
|
4153
4170
|
|
|
4154
4171
|
declare const mcpRules: SecurityRule[];
|
|
4155
4172
|
|
|
4173
|
+
declare const insecureDefaultsRules: SecurityRule[];
|
|
4174
|
+
|
|
4175
|
+
declare const sharpEdgesRules: SecurityRule[];
|
|
4176
|
+
|
|
4177
|
+
/**
|
|
4178
|
+
* Sentinel Injection Pattern Engine
|
|
4179
|
+
*
|
|
4180
|
+
* Shared pattern library for detecting prompt injection attacks in text input.
|
|
4181
|
+
* Used by sentinel hooks, MCP middleware, and the scan-config CLI.
|
|
4182
|
+
*
|
|
4183
|
+
* This engine DETECTS and REPORTS patterns. It does NOT strip them --
|
|
4184
|
+
* the existing sanitizeExternalText() in ConnectorUtils.ts handles stripping.
|
|
4185
|
+
*/
|
|
4186
|
+
type InjectionSeverity = 'high' | 'medium' | 'low';
|
|
4187
|
+
interface InjectionFinding {
|
|
4188
|
+
severity: InjectionSeverity;
|
|
4189
|
+
ruleId: string;
|
|
4190
|
+
match: string;
|
|
4191
|
+
line?: number;
|
|
4192
|
+
}
|
|
4193
|
+
interface InjectionPattern {
|
|
4194
|
+
ruleId: string;
|
|
4195
|
+
severity: InjectionSeverity;
|
|
4196
|
+
category: string;
|
|
4197
|
+
description: string;
|
|
4198
|
+
pattern: RegExp;
|
|
4199
|
+
}
|
|
4200
|
+
/**
|
|
4201
|
+
* Scan text for prompt injection patterns.
|
|
4202
|
+
*
|
|
4203
|
+
* Returns an array of findings sorted by severity (high first).
|
|
4204
|
+
* The caller decides how to act on findings based on severity:
|
|
4205
|
+
* - HIGH/MEDIUM: Trigger taint (hooks and MCP middleware)
|
|
4206
|
+
* - LOW: Informational only (logged to stderr, no taint)
|
|
4207
|
+
*/
|
|
4208
|
+
declare function scanForInjection(text: string): InjectionFinding[];
|
|
4209
|
+
/**
|
|
4210
|
+
* Get all registered injection patterns.
|
|
4211
|
+
* Useful for inspection, documentation, and testing.
|
|
4212
|
+
*/
|
|
4213
|
+
declare function getInjectionPatterns(): ReadonlyArray<InjectionPattern>;
|
|
4214
|
+
/**
|
|
4215
|
+
* Bash command patterns that are blocked during tainted sessions.
|
|
4216
|
+
* Used by sentinel hooks and MCP middleware — kept in one place to prevent drift.
|
|
4217
|
+
* Hooks that cannot import from core at startup define their own inline copy with a sync comment.
|
|
4218
|
+
*/
|
|
4219
|
+
declare const DESTRUCTIVE_BASH: ReadonlyArray<RegExp>;
|
|
4220
|
+
|
|
4221
|
+
/**
|
|
4222
|
+
* Sentinel Taint State Management
|
|
4223
|
+
*
|
|
4224
|
+
* Session-scoped taint file read/write/check/clear/expire logic.
|
|
4225
|
+
* Taint files live at `.harness/session-taint-{sessionId}.json`.
|
|
4226
|
+
*
|
|
4227
|
+
* The taint file is the single source of truth for enforcement.
|
|
4228
|
+
* Hooks and MCP middleware read this file on every invocation.
|
|
4229
|
+
*/
|
|
4230
|
+
|
|
4231
|
+
interface TaintFinding {
|
|
4232
|
+
ruleId: string;
|
|
4233
|
+
severity: string;
|
|
4234
|
+
match: string;
|
|
4235
|
+
source: string;
|
|
4236
|
+
detectedAt: string;
|
|
4237
|
+
}
|
|
4238
|
+
interface TaintState {
|
|
4239
|
+
sessionId: string;
|
|
4240
|
+
taintedAt: string;
|
|
4241
|
+
expiresAt: string;
|
|
4242
|
+
reason: string;
|
|
4243
|
+
severity: 'high' | 'medium';
|
|
4244
|
+
findings: TaintFinding[];
|
|
4245
|
+
}
|
|
4246
|
+
interface TaintCheckResult {
|
|
4247
|
+
tainted: boolean;
|
|
4248
|
+
expired: boolean;
|
|
4249
|
+
state: TaintState | null;
|
|
4250
|
+
}
|
|
4251
|
+
/**
|
|
4252
|
+
* Get the taint file path for a given session.
|
|
4253
|
+
*/
|
|
4254
|
+
declare function getTaintFilePath(projectRoot: string, sessionId?: string): string;
|
|
4255
|
+
/**
|
|
4256
|
+
* Read the taint state for a session.
|
|
4257
|
+
* Returns null if no taint file exists or if the file is malformed (fail-open).
|
|
4258
|
+
* If malformed, the file is deleted.
|
|
4259
|
+
*/
|
|
4260
|
+
declare function readTaint(projectRoot: string, sessionId?: string): TaintState | null;
|
|
4261
|
+
/**
|
|
4262
|
+
* Check taint status for a session.
|
|
4263
|
+
* Handles expiry: if taint has expired, deletes the file and returns expired=true.
|
|
4264
|
+
*/
|
|
4265
|
+
declare function checkTaint(projectRoot: string, sessionId?: string): TaintCheckResult;
|
|
4266
|
+
/**
|
|
4267
|
+
* Write taint state for a session.
|
|
4268
|
+
* Creates .harness/ directory if it doesn't exist.
|
|
4269
|
+
* If taint already exists for this session, appends new findings and keeps the earlier taintedAt.
|
|
4270
|
+
*/
|
|
4271
|
+
declare function writeTaint(projectRoot: string, sessionId: string | undefined, reason: string, findings: InjectionFinding[], source: string): TaintState;
|
|
4272
|
+
/**
|
|
4273
|
+
* Clear taint for a specific session or all sessions.
|
|
4274
|
+
* Returns the number of taint files removed.
|
|
4275
|
+
*/
|
|
4276
|
+
declare function clearTaint(projectRoot: string, sessionId?: string): number;
|
|
4277
|
+
/**
|
|
4278
|
+
* List all active taint sessions.
|
|
4279
|
+
* Returns session IDs with active (non-expired) taint.
|
|
4280
|
+
*/
|
|
4281
|
+
declare function listTaintedSessions(projectRoot: string): string[];
|
|
4282
|
+
|
|
4156
4283
|
declare const nodeRules: SecurityRule[];
|
|
4157
4284
|
|
|
4158
4285
|
declare const expressRules: SecurityRule[];
|
|
@@ -4161,6 +4288,34 @@ declare const reactRules: SecurityRule[];
|
|
|
4161
4288
|
|
|
4162
4289
|
declare const goRules: SecurityRule[];
|
|
4163
4290
|
|
|
4291
|
+
/**
|
|
4292
|
+
* Shared scan-config types and utilities.
|
|
4293
|
+
* Used by both the CLI `harness scan-config` command and the orchestrator workspace scanner.
|
|
4294
|
+
*/
|
|
4295
|
+
|
|
4296
|
+
interface ScanConfigFinding {
|
|
4297
|
+
ruleId: string;
|
|
4298
|
+
severity: 'high' | 'medium' | 'low';
|
|
4299
|
+
message: string;
|
|
4300
|
+
match: string;
|
|
4301
|
+
line?: number;
|
|
4302
|
+
}
|
|
4303
|
+
interface ScanConfigFileResult {
|
|
4304
|
+
file: string;
|
|
4305
|
+
findings: ScanConfigFinding[];
|
|
4306
|
+
overallSeverity: 'high' | 'medium' | 'low' | 'clean';
|
|
4307
|
+
}
|
|
4308
|
+
interface ScanConfigResult {
|
|
4309
|
+
exitCode: number;
|
|
4310
|
+
results: ScanConfigFileResult[];
|
|
4311
|
+
}
|
|
4312
|
+
declare function mapSecuritySeverity(severity: string): 'high' | 'medium' | 'low';
|
|
4313
|
+
declare function computeOverallSeverity(findings: ScanConfigFinding[]): 'high' | 'medium' | 'low' | 'clean';
|
|
4314
|
+
declare function computeScanExitCode(results: ScanConfigFileResult[]): number;
|
|
4315
|
+
declare function mapInjectionFindings(injectionFindings: InjectionFinding[]): ScanConfigFinding[];
|
|
4316
|
+
declare function isDuplicateFinding(existing: ScanConfigFinding[], secFinding: SecurityFinding): boolean;
|
|
4317
|
+
declare function mapSecurityFindings(secFindings: SecurityFinding[], existing: ScanConfigFinding[]): ScanConfigFinding[];
|
|
4318
|
+
|
|
4164
4319
|
interface RunCIChecksInput {
|
|
4165
4320
|
projectRoot: string;
|
|
4166
4321
|
config: Record<string, unknown>;
|
|
@@ -4970,12 +5125,12 @@ declare const QuestionSchema: z.ZodObject<{
|
|
|
4970
5125
|
default: z.ZodOptional<z.ZodString>;
|
|
4971
5126
|
}, "strip", z.ZodTypeAny, {
|
|
4972
5127
|
text: string;
|
|
4973
|
-
options?: string[] | undefined;
|
|
4974
5128
|
default?: string | undefined;
|
|
5129
|
+
options?: string[] | undefined;
|
|
4975
5130
|
}, {
|
|
4976
5131
|
text: string;
|
|
4977
|
-
options?: string[] | undefined;
|
|
4978
5132
|
default?: string | undefined;
|
|
5133
|
+
options?: string[] | undefined;
|
|
4979
5134
|
}>;
|
|
4980
5135
|
declare const ConfirmationSchema: z.ZodObject<{
|
|
4981
5136
|
text: z.ZodString;
|
|
@@ -5019,12 +5174,12 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
|
|
|
5019
5174
|
default: z.ZodOptional<z.ZodString>;
|
|
5020
5175
|
}, "strip", z.ZodTypeAny, {
|
|
5021
5176
|
text: string;
|
|
5022
|
-
options?: string[] | undefined;
|
|
5023
5177
|
default?: string | undefined;
|
|
5178
|
+
options?: string[] | undefined;
|
|
5024
5179
|
}, {
|
|
5025
5180
|
text: string;
|
|
5026
|
-
options?: string[] | undefined;
|
|
5027
5181
|
default?: string | undefined;
|
|
5182
|
+
options?: string[] | undefined;
|
|
5028
5183
|
}>>;
|
|
5029
5184
|
confirmation: z.ZodOptional<z.ZodObject<{
|
|
5030
5185
|
text: z.ZodString;
|
|
@@ -5064,8 +5219,8 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
|
|
|
5064
5219
|
stream?: string | undefined;
|
|
5065
5220
|
question?: {
|
|
5066
5221
|
text: string;
|
|
5067
|
-
options?: string[] | undefined;
|
|
5068
5222
|
default?: string | undefined;
|
|
5223
|
+
options?: string[] | undefined;
|
|
5069
5224
|
} | undefined;
|
|
5070
5225
|
confirmation?: {
|
|
5071
5226
|
text: string;
|
|
@@ -5085,8 +5240,8 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
|
|
|
5085
5240
|
stream?: string | undefined;
|
|
5086
5241
|
question?: {
|
|
5087
5242
|
text: string;
|
|
5088
|
-
options?: string[] | undefined;
|
|
5089
5243
|
default?: string | undefined;
|
|
5244
|
+
options?: string[] | undefined;
|
|
5090
5245
|
} | undefined;
|
|
5091
5246
|
confirmation?: {
|
|
5092
5247
|
text: string;
|
|
@@ -5236,6 +5391,100 @@ declare function unfoldSymbol(filePath: string, symbolName: string): Promise<Unf
|
|
|
5236
5391
|
*/
|
|
5237
5392
|
declare function unfoldRange(filePath: string, startLine: number, endLine: number): Promise<UnfoldResult>;
|
|
5238
5393
|
|
|
5394
|
+
/** Shape of the LiteLLM pricing JSON (per-model entry). */
|
|
5395
|
+
interface LiteLLMModelEntry {
|
|
5396
|
+
input_cost_per_token?: number;
|
|
5397
|
+
output_cost_per_token?: number;
|
|
5398
|
+
cache_read_input_token_cost?: number;
|
|
5399
|
+
cache_creation_input_token_cost?: number;
|
|
5400
|
+
mode?: string;
|
|
5401
|
+
[key: string]: unknown;
|
|
5402
|
+
}
|
|
5403
|
+
/** Shape of the full LiteLLM pricing JSON file. */
|
|
5404
|
+
interface LiteLLMPricingData {
|
|
5405
|
+
[modelName: string]: LiteLLMModelEntry;
|
|
5406
|
+
}
|
|
5407
|
+
/** Parsed pricing dataset keyed by model name. */
|
|
5408
|
+
type PricingDataset = Map<string, ModelPricing>;
|
|
5409
|
+
/** Shape of the disk cache file. */
|
|
5410
|
+
interface PricingCacheFile {
|
|
5411
|
+
fetchedAt: string;
|
|
5412
|
+
data: LiteLLMPricingData;
|
|
5413
|
+
}
|
|
5414
|
+
/** Shape of the fallback.json file. */
|
|
5415
|
+
interface FallbackPricingFile {
|
|
5416
|
+
_generatedAt: string;
|
|
5417
|
+
_source: string;
|
|
5418
|
+
models: Record<string, ModelPricing>;
|
|
5419
|
+
}
|
|
5420
|
+
|
|
5421
|
+
/**
|
|
5422
|
+
* Parses LiteLLM's raw pricing JSON into a PricingDataset map.
|
|
5423
|
+
* Only includes chat-mode models with valid input/output costs.
|
|
5424
|
+
*/
|
|
5425
|
+
declare function parseLiteLLMData(raw: LiteLLMPricingData): PricingDataset;
|
|
5426
|
+
/**
|
|
5427
|
+
* Looks up pricing for a given model name.
|
|
5428
|
+
* Returns null and logs a warning if the model is not found.
|
|
5429
|
+
*/
|
|
5430
|
+
declare function getModelPrice(model: string, dataset: PricingDataset): ModelPricing | null;
|
|
5431
|
+
|
|
5432
|
+
/** Pinned LiteLLM pricing URL. */
|
|
5433
|
+
declare const LITELLM_PRICING_URL = "https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json";
|
|
5434
|
+
/** Cache time-to-live: 24 hours in milliseconds. */
|
|
5435
|
+
declare const CACHE_TTL_MS: number;
|
|
5436
|
+
/** Number of days after which fallback usage triggers a staleness warning. */
|
|
5437
|
+
declare const STALENESS_WARNING_DAYS = 7;
|
|
5438
|
+
/**
|
|
5439
|
+
* Loads pricing data with the following priority:
|
|
5440
|
+
* 1. Fresh disk cache (<24h old) — no network request
|
|
5441
|
+
* 2. Network fetch from LiteLLM — writes to disk cache
|
|
5442
|
+
* 3. Expired disk cache (any age) — when network fails
|
|
5443
|
+
* 4. Bundled fallback.json — when no cache and no network
|
|
5444
|
+
*/
|
|
5445
|
+
declare function loadPricingData(projectRoot: string): Promise<PricingDataset>;
|
|
5446
|
+
|
|
5447
|
+
/**
|
|
5448
|
+
* Calculates the cost of a usage record in integer microdollars.
|
|
5449
|
+
* Returns null if the model is unknown or not specified.
|
|
5450
|
+
*/
|
|
5451
|
+
declare function calculateCost(record: UsageRecord, dataset: PricingDataset): number | null;
|
|
5452
|
+
|
|
5453
|
+
/**
|
|
5454
|
+
* Aggregates an array of UsageRecords into per-session summaries.
|
|
5455
|
+
*
|
|
5456
|
+
* When records from both harness and Claude Code sources share a session ID:
|
|
5457
|
+
* - Harness token counts are authoritative
|
|
5458
|
+
* - CC data supplements the model field
|
|
5459
|
+
* - The result is marked as 'merged'
|
|
5460
|
+
*/
|
|
5461
|
+
declare function aggregateBySession(records: UsageRecord[]): SessionUsage[];
|
|
5462
|
+
/**
|
|
5463
|
+
* Aggregates an array of UsageRecords into per-day summaries.
|
|
5464
|
+
* Groups by calendar date (UTC) derived from the record timestamp.
|
|
5465
|
+
*/
|
|
5466
|
+
declare function aggregateByDay(records: UsageRecord[]): DailyUsage[];
|
|
5467
|
+
|
|
5468
|
+
/**
|
|
5469
|
+
* Reads .harness/metrics/costs.jsonl and normalizes snake_case hook output
|
|
5470
|
+
* to camelCase UsageRecord format.
|
|
5471
|
+
*
|
|
5472
|
+
* - Skips malformed lines with a warning to stderr
|
|
5473
|
+
* - Handles legacy entries missing cache/model fields
|
|
5474
|
+
* - Returns empty array if file does not exist
|
|
5475
|
+
*/
|
|
5476
|
+
declare function readCostRecords(projectRoot: string): UsageRecord[];
|
|
5477
|
+
|
|
5478
|
+
/**
|
|
5479
|
+
* Discovers and parses Claude Code JSONL files from ~/.claude/projects/ directories.
|
|
5480
|
+
*
|
|
5481
|
+
* Best-effort: the path is not a public API and may change across CC versions.
|
|
5482
|
+
* - If ~/.claude/projects/ does not exist, returns empty array (no error)
|
|
5483
|
+
* - Malformed entries are skipped with a console.warn
|
|
5484
|
+
* - Each valid assistant entry with usage data maps to a UsageRecord tagged with _source: 'claude-code'
|
|
5485
|
+
*/
|
|
5486
|
+
declare function parseCCRecords(): UsageRecord[];
|
|
5487
|
+
|
|
5239
5488
|
/**
|
|
5240
5489
|
* @harness-engineering/core
|
|
5241
5490
|
*
|
|
@@ -5257,4 +5506,4 @@ declare function unfoldRange(filePath: string, startLine: number, endLine: numbe
|
|
|
5257
5506
|
*/
|
|
5258
5507
|
declare const VERSION = "0.15.0";
|
|
5259
5508
|
|
|
5260
|
-
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 CodeSymbol, 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, EXTENSION_MAP, type EligibilityResult, type EmitEventInput, type EmitEventOptions, type EmitEventResult, type EmitInteractionInput, EmitInteractionInputSchema, EntropyAnalyzer, type EntropyConfig, EntropyConfigSchema, type EntropyError, type EntropyReport, type EventType, 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 LearningsFrontmatter, type LearningsIndexEntry, type LoadEventsOptions, 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 OutlineResult, type ParseError, type ParsedFile, 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 PromoteResult, 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 SearchMatch, type SearchResult, 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 SkillEvent, SkillEventSchema, 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 SupportedLanguage, type SymbolKind, type SyncChange, type SyncOptions, type TelemetryAdapter, type TelemetryHealth, ThresholdConfig, type TimeRange, type TokenBudget, type TokenBudgetOverrides, type Trace, type Transition, TransitionSchema, type TurnExecutor, TypeScriptParser, type UnfoldResult, type UnusedImport, type UpdateCheckState, VERSION, type ValidateFindingsOptions, type ValidationError, type WorkflowPhase, addProvenance, agentConfigRules, analyzeDiff, analyzeLearningPatterns, appendFailure, appendLearning, appendSessionEntry, applyFixes, applyHotspotDowngrade, applySyncChanges, archiveFailures, archiveLearnings, archiveSession, archiveStream, buildDependencyGraph, buildExclusionSet, buildSnapshot, checkDocCoverage, checkEligibility, checkEvidenceCoverage, classifyFinding, clearEventHashCache, clearFailuresCache, clearLearningsCache, configureFeedback, constraintRuleId, contextBudget, contextFilter, countLearningEntries, createBoundaryValidator, createCommentedCodeFixes, createError, createFixes, createForbiddenImportFixes, createOrphanedDepFixes, createParseError, createSelfReview, createStream, cryptoRules, deduplicateCleanupFindings, deduplicateFindings, deepMergeConstraints, defaultCollectors, defineLayer, deserializationRules, detectChangeType, detectCircularDeps, detectCircularDepsInFiles, detectComplexityViolations, detectCouplingViolations, detectDeadCode, detectDocDrift, detectLanguage, detectPatternViolations, detectSizeBudgetViolations, detectStack, detectStaleConstraints, determineAssessment, diff, emitEvent, executeWorkflow, expressRules, extractBundle, extractIndexEntry, extractMarkdownLinks, extractSections, fanOutReview, formatEventTimeline, formatFindingBlock, formatGitHubComment, formatGitHubSummary, formatOutline, formatTerminalOutput, generateAgentsMap, generateSuggestions, getActionEmitter, getExitCode, getFeedbackConfig, getOutline, getParser, getPhaseCategories, getStreamForBranch, getUpdateNotification, goRules, injectionRules, isSmallSuggestion, isUpdateCheckEnabled, listActiveSessions, listStreams, loadBudgetedLearnings, loadEvents, loadFailures, loadHandoff, loadIndexEntries, loadRelevantLearnings, loadSessionSummary, loadState, loadStreamIndex, logAgentAction, mcpRules, migrateToStreams, networkRules, nodeRules, parseDateFromEntry, parseDiff, parseFile, parseFrontmatter, parseManifest, parseRoadmap, parseSecurityConfig, parseSize, pathTraversalRules, previewFix, promoteSessionLearnings, pruneLearnings, reactRules, readCheckState, readLockfile, readSessionSection, readSessionSections, removeContributions, removeProvenance, requestMultiplePeerReviews, requestPeerReview, resetFeedbackConfig, resetParserCache, resolveFileToLayer, resolveModelTier, resolveRuleSeverity, resolveSessionDir, resolveStreamPath, resolveThresholds, runAll, runArchitectureAgent, runBugDetectionAgent, runCIChecks, runComplianceAgent, runMechanicalChecks, runMechanicalGate, runMultiTurnPipeline, runPipeline, runReviewPipeline, runSecurityAgent, saveHandoff, saveState, saveStreamIndex, scopeContext, searchSymbols, secretRules, serializeRoadmap, setActiveStream, shouldRunCheck, spawnBackgroundCheck, syncConstraintNodes, syncRoadmap, tagUncitedFindings, touchStream, trackAction, unfoldRange, unfoldSymbol, updateSessionEntryStatus, updateSessionIndex, validateAgentsMap, validateBoundaries, validateCommitMessage, validateConfig, validateDependencies, validateFileStructure, validateFindings, validateKnowledgeMap, validatePatternConfig, violationId, writeConfig, writeLockfile, writeSessionSummary, xssRules };
|
|
5509
|
+
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, CACHE_TTL_MS, COMPLIANCE_DESCRIPTOR, type ChangeType, type ChangedFile, ChecklistBuilder, type CircularDependency, CircularDepsCollector, type CircularDepsResult, type CleanupFinding, type CodeBlock, type CodeChanges, type CodePattern, type CodeReference, type CodeSymbol, 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, DESTRUCTIVE_BASH, 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, EXTENSION_MAP, type EligibilityResult, type EmitEventInput, type EmitEventOptions, type EmitEventResult, type EmitInteractionInput, EmitInteractionInputSchema, EntropyAnalyzer, type EntropyConfig, EntropyConfigSchema, type EntropyError, type EntropyReport, type EventType, type EvidenceCoverageReport, ExclusionSet, type ExecutorHealth, type Export, type ExportMap, type FailureEntry, FailureEntrySchema, type FallbackPricingFile, 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 InjectionFinding, type InjectionPattern, type InjectionSeverity, type InlineReference, type IntegrityReport, type InteractionType, InteractionTypeSchema, type InternalSymbol, type JSDocComment, LITELLM_PRICING_URL, type LanguageParser, type Layer, type LayerConfig, LayerViolationCollector, type LearningPattern, type LearningsFrontmatter, type LearningsIndexEntry, type LiteLLMModelEntry, type LiteLLMPricingData, type LoadEventsOptions, 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 OutlineResult, type ParseError, type ParsedFile, type PatternConfig, PatternConfigSchema, type PatternMatch, type PatternReport, type PatternViolation, type PeerReview, type PeerReviewOptions, type PipelineContext, type PipelineFlags, type PipelineOptions, type PipelineResult, type PrMetadata, type PricingCacheFile, type PricingDataset, type PriorReview, ProjectScanner, type PromoteResult, 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, STALENESS_WARNING_DAYS, type SafetyLevel, type ScanConfigFileResult, type ScanConfigFinding, type ScanConfigResult, type ScanResult, type SearchMatch, type SearchResult, 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 SkillEvent, SkillEventSchema, 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 SupportedLanguage, type SuppressionRecord, type SymbolKind, type SyncChange, type SyncOptions, type TaintCheckResult, type TaintFinding, type TaintState, type TelemetryAdapter, type TelemetryHealth, ThresholdConfig, type TimeRange, type TokenBudget, type TokenBudgetOverrides, type Trace, type Transition, TransitionSchema, type TurnExecutor, TypeScriptParser, type UnfoldResult, type UnusedImport, type UpdateCheckState, VERSION, type ValidateFindingsOptions, type ValidationError, type WorkflowPhase, addProvenance, agentConfigRules, aggregateByDay, aggregateBySession, analyzeDiff, analyzeLearningPatterns, appendFailure, appendLearning, appendSessionEntry, applyFixes, applyHotspotDowngrade, applySyncChanges, archiveFailures, archiveLearnings, archiveSession, archiveStream, buildDependencyGraph, buildExclusionSet, buildSnapshot, calculateCost, checkDocCoverage, checkEligibility, checkEvidenceCoverage, checkTaint, classifyFinding, clearEventHashCache, clearFailuresCache, clearLearningsCache, clearTaint, computeOverallSeverity, computeScanExitCode, configureFeedback, constraintRuleId, contextBudget, contextFilter, countLearningEntries, createBoundaryValidator, createCommentedCodeFixes, createError, createFixes, createForbiddenImportFixes, createOrphanedDepFixes, createParseError, createSelfReview, createStream, cryptoRules, deduplicateCleanupFindings, deduplicateFindings, deepMergeConstraints, defaultCollectors, defineLayer, deserializationRules, detectChangeType, detectCircularDeps, detectCircularDepsInFiles, detectComplexityViolations, detectCouplingViolations, detectDeadCode, detectDocDrift, detectLanguage, detectPatternViolations, detectSizeBudgetViolations, detectStack, detectStaleConstraints, determineAssessment, diff, emitEvent, executeWorkflow, expressRules, extractBundle, extractIndexEntry, extractMarkdownLinks, extractSections, fanOutReview, formatEventTimeline, formatFindingBlock, formatGitHubComment, formatGitHubSummary, formatOutline, formatTerminalOutput, generateAgentsMap, generateSuggestions, getActionEmitter, getExitCode, getFeedbackConfig, getInjectionPatterns, getModelPrice, getOutline, getParser, getPhaseCategories, getStreamForBranch, getTaintFilePath, getUpdateNotification, goRules, injectionRules, insecureDefaultsRules, isDuplicateFinding, isSmallSuggestion, isUpdateCheckEnabled, listActiveSessions, listStreams, listTaintedSessions, loadBudgetedLearnings, loadEvents, loadFailures, loadHandoff, loadIndexEntries, loadPricingData, loadRelevantLearnings, loadSessionSummary, loadState, loadStreamIndex, logAgentAction, mapInjectionFindings, mapSecurityFindings, mapSecuritySeverity, mcpRules, migrateToStreams, networkRules, nodeRules, parseCCRecords, parseDateFromEntry, parseDiff, parseFile, parseFrontmatter, parseHarnessIgnore, parseLiteLLMData, parseManifest, parseRoadmap, parseSecurityConfig, parseSize, pathTraversalRules, previewFix, promoteSessionLearnings, pruneLearnings, reactRules, readCheckState, readCostRecords, readLockfile, readSessionSection, readSessionSections, readTaint, removeContributions, removeProvenance, requestMultiplePeerReviews, requestPeerReview, resetFeedbackConfig, resetParserCache, resolveFileToLayer, resolveModelTier, resolveRuleSeverity, resolveSessionDir, resolveStreamPath, resolveThresholds, runAll, runArchitectureAgent, runBugDetectionAgent, runCIChecks, runComplianceAgent, runMechanicalChecks, runMechanicalGate, runMultiTurnPipeline, runPipeline, runReviewPipeline, runSecurityAgent, saveHandoff, saveState, saveStreamIndex, scanForInjection, scopeContext, searchSymbols, secretRules, serializeRoadmap, setActiveStream, sharpEdgesRules, shouldRunCheck, spawnBackgroundCheck, syncConstraintNodes, syncRoadmap, tagUncitedFindings, touchStream, trackAction, unfoldRange, unfoldSymbol, updateSessionEntryStatus, updateSessionIndex, validateAgentsMap, validateBoundaries, validateCommitMessage, validateConfig, validateDependencies, validateFileStructure, validateFindings, validateKnowledgeMap, validatePatternConfig, violationId, writeConfig, writeLockfile, writeSessionSummary, writeTaint, xssRules };
|