@harness-engineering/core 0.21.2 → 0.21.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/architecture/matchers.d.mts +1 -1
- package/dist/architecture/matchers.d.ts +1 -1
- package/dist/index.d.mts +486 -162
- package/dist/index.d.ts +486 -162
- package/dist/index.js +547 -40
- package/dist/index.mjs +524 -36
- 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, RoadmapFeature, ExternalTicket, ExternalTicketState, TrackerSyncConfig, SyncResult, ModelPricing, UsageRecord, DailyUsage, SessionUsage } from '@harness-engineering/types';
|
|
1
|
+
import { Result, SessionSectionName, SessionEntry, SessionSections, WorkflowStep, WorkflowStepResult, Workflow, WorkflowResult, SkillLifecycleHooks, SkillContext, SkillResult, TurnContext, CICheckName, CIFailOnSeverity, CICheckReport, Roadmap, FeatureStatus, RoadmapFeature, ExternalTicket, ExternalTicketState, TrackerSyncConfig, SyncResult, ModelPricing, UsageRecord, DailyUsage, SessionUsage, SkillInvocationRecord, SkillAdoptionSummary, StabilityTier, TelemetryIdentity, TelemetryConfig, ConsentState, TelemetryEvent } 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;
|
|
@@ -1921,12 +1921,12 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
1921
1921
|
match: z.ZodString;
|
|
1922
1922
|
convention: z.ZodEnum<["camelCase", "PascalCase", "UPPER_SNAKE", "kebab-case"]>;
|
|
1923
1923
|
}, "strip", z.ZodTypeAny, {
|
|
1924
|
-
type: "naming";
|
|
1925
1924
|
match: string;
|
|
1925
|
+
type: "naming";
|
|
1926
1926
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
1927
1927
|
}, {
|
|
1928
|
-
type: "naming";
|
|
1929
1928
|
match: string;
|
|
1929
|
+
type: "naming";
|
|
1930
1930
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
1931
1931
|
}>, z.ZodObject<{
|
|
1932
1932
|
type: z.ZodLiteral<"max-exports">;
|
|
@@ -1958,10 +1958,10 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
1958
1958
|
}>]>;
|
|
1959
1959
|
message: z.ZodOptional<z.ZodString>;
|
|
1960
1960
|
}, "strip", z.ZodTypeAny, {
|
|
1961
|
-
severity: "error" | "warning";
|
|
1962
|
-
description: string;
|
|
1963
1961
|
files: string[];
|
|
1964
1962
|
name: string;
|
|
1963
|
+
description: string;
|
|
1964
|
+
severity: "error" | "warning";
|
|
1965
1965
|
rule: {
|
|
1966
1966
|
type: "must-export";
|
|
1967
1967
|
names: string[];
|
|
@@ -1979,8 +1979,8 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
1979
1979
|
type: "no-import";
|
|
1980
1980
|
from: string;
|
|
1981
1981
|
} | {
|
|
1982
|
-
type: "naming";
|
|
1983
1982
|
match: string;
|
|
1983
|
+
type: "naming";
|
|
1984
1984
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
1985
1985
|
} | {
|
|
1986
1986
|
type: "max-exports";
|
|
@@ -1994,10 +1994,10 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
1994
1994
|
};
|
|
1995
1995
|
message?: string | undefined;
|
|
1996
1996
|
}, {
|
|
1997
|
-
severity: "error" | "warning";
|
|
1998
|
-
description: string;
|
|
1999
1997
|
files: string[];
|
|
2000
1998
|
name: string;
|
|
1999
|
+
description: string;
|
|
2000
|
+
severity: "error" | "warning";
|
|
2001
2001
|
rule: {
|
|
2002
2002
|
type: "must-export";
|
|
2003
2003
|
names: string[];
|
|
@@ -2015,8 +2015,8 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
2015
2015
|
type: "no-import";
|
|
2016
2016
|
from: string;
|
|
2017
2017
|
} | {
|
|
2018
|
-
type: "naming";
|
|
2019
2018
|
match: string;
|
|
2019
|
+
type: "naming";
|
|
2020
2020
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2021
2021
|
} | {
|
|
2022
2022
|
type: "max-exports";
|
|
@@ -2034,10 +2034,10 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
2034
2034
|
ignoreFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2035
2035
|
}, "strip", z.ZodTypeAny, {
|
|
2036
2036
|
patterns: {
|
|
2037
|
-
severity: "error" | "warning";
|
|
2038
|
-
description: string;
|
|
2039
2037
|
files: string[];
|
|
2040
2038
|
name: string;
|
|
2039
|
+
description: string;
|
|
2040
|
+
severity: "error" | "warning";
|
|
2041
2041
|
rule: {
|
|
2042
2042
|
type: "must-export";
|
|
2043
2043
|
names: string[];
|
|
@@ -2055,8 +2055,8 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
2055
2055
|
type: "no-import";
|
|
2056
2056
|
from: string;
|
|
2057
2057
|
} | {
|
|
2058
|
-
type: "naming";
|
|
2059
2058
|
match: string;
|
|
2059
|
+
type: "naming";
|
|
2060
2060
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2061
2061
|
} | {
|
|
2062
2062
|
type: "max-exports";
|
|
@@ -2074,10 +2074,10 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
2074
2074
|
ignoreFiles?: string[] | undefined;
|
|
2075
2075
|
}, {
|
|
2076
2076
|
patterns: {
|
|
2077
|
-
severity: "error" | "warning";
|
|
2078
|
-
description: string;
|
|
2079
2077
|
files: string[];
|
|
2080
2078
|
name: string;
|
|
2079
|
+
description: string;
|
|
2080
|
+
severity: "error" | "warning";
|
|
2081
2081
|
rule: {
|
|
2082
2082
|
type: "must-export";
|
|
2083
2083
|
names: string[];
|
|
@@ -2095,8 +2095,8 @@ declare const PatternConfigSchema: z.ZodObject<{
|
|
|
2095
2095
|
type: "no-import";
|
|
2096
2096
|
from: string;
|
|
2097
2097
|
} | {
|
|
2098
|
-
type: "naming";
|
|
2099
2098
|
match: string;
|
|
2099
|
+
type: "naming";
|
|
2100
2100
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2101
2101
|
} | {
|
|
2102
2102
|
type: "max-exports";
|
|
@@ -2215,12 +2215,12 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2215
2215
|
match: z.ZodString;
|
|
2216
2216
|
convention: z.ZodEnum<["camelCase", "PascalCase", "UPPER_SNAKE", "kebab-case"]>;
|
|
2217
2217
|
}, "strip", z.ZodTypeAny, {
|
|
2218
|
-
type: "naming";
|
|
2219
2218
|
match: string;
|
|
2219
|
+
type: "naming";
|
|
2220
2220
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2221
2221
|
}, {
|
|
2222
|
-
type: "naming";
|
|
2223
2222
|
match: string;
|
|
2223
|
+
type: "naming";
|
|
2224
2224
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2225
2225
|
}>, z.ZodObject<{
|
|
2226
2226
|
type: z.ZodLiteral<"max-exports">;
|
|
@@ -2252,10 +2252,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2252
2252
|
}>]>;
|
|
2253
2253
|
message: z.ZodOptional<z.ZodString>;
|
|
2254
2254
|
}, "strip", z.ZodTypeAny, {
|
|
2255
|
-
severity: "error" | "warning";
|
|
2256
|
-
description: string;
|
|
2257
2255
|
files: string[];
|
|
2258
2256
|
name: string;
|
|
2257
|
+
description: string;
|
|
2258
|
+
severity: "error" | "warning";
|
|
2259
2259
|
rule: {
|
|
2260
2260
|
type: "must-export";
|
|
2261
2261
|
names: string[];
|
|
@@ -2273,8 +2273,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2273
2273
|
type: "no-import";
|
|
2274
2274
|
from: string;
|
|
2275
2275
|
} | {
|
|
2276
|
-
type: "naming";
|
|
2277
2276
|
match: string;
|
|
2277
|
+
type: "naming";
|
|
2278
2278
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2279
2279
|
} | {
|
|
2280
2280
|
type: "max-exports";
|
|
@@ -2288,10 +2288,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2288
2288
|
};
|
|
2289
2289
|
message?: string | undefined;
|
|
2290
2290
|
}, {
|
|
2291
|
-
severity: "error" | "warning";
|
|
2292
|
-
description: string;
|
|
2293
2291
|
files: string[];
|
|
2294
2292
|
name: string;
|
|
2293
|
+
description: string;
|
|
2294
|
+
severity: "error" | "warning";
|
|
2295
2295
|
rule: {
|
|
2296
2296
|
type: "must-export";
|
|
2297
2297
|
names: string[];
|
|
@@ -2309,8 +2309,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2309
2309
|
type: "no-import";
|
|
2310
2310
|
from: string;
|
|
2311
2311
|
} | {
|
|
2312
|
-
type: "naming";
|
|
2313
2312
|
match: string;
|
|
2313
|
+
type: "naming";
|
|
2314
2314
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2315
2315
|
} | {
|
|
2316
2316
|
type: "max-exports";
|
|
@@ -2328,10 +2328,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2328
2328
|
ignoreFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2329
2329
|
}, "strip", z.ZodTypeAny, {
|
|
2330
2330
|
patterns: {
|
|
2331
|
-
severity: "error" | "warning";
|
|
2332
|
-
description: string;
|
|
2333
2331
|
files: string[];
|
|
2334
2332
|
name: string;
|
|
2333
|
+
description: string;
|
|
2334
|
+
severity: "error" | "warning";
|
|
2335
2335
|
rule: {
|
|
2336
2336
|
type: "must-export";
|
|
2337
2337
|
names: string[];
|
|
@@ -2349,8 +2349,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2349
2349
|
type: "no-import";
|
|
2350
2350
|
from: string;
|
|
2351
2351
|
} | {
|
|
2352
|
-
type: "naming";
|
|
2353
2352
|
match: string;
|
|
2353
|
+
type: "naming";
|
|
2354
2354
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2355
2355
|
} | {
|
|
2356
2356
|
type: "max-exports";
|
|
@@ -2368,10 +2368,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2368
2368
|
ignoreFiles?: string[] | undefined;
|
|
2369
2369
|
}, {
|
|
2370
2370
|
patterns: {
|
|
2371
|
-
severity: "error" | "warning";
|
|
2372
|
-
description: string;
|
|
2373
2371
|
files: string[];
|
|
2374
2372
|
name: string;
|
|
2373
|
+
description: string;
|
|
2374
|
+
severity: "error" | "warning";
|
|
2375
2375
|
rule: {
|
|
2376
2376
|
type: "must-export";
|
|
2377
2377
|
names: string[];
|
|
@@ -2389,8 +2389,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2389
2389
|
type: "no-import";
|
|
2390
2390
|
from: string;
|
|
2391
2391
|
} | {
|
|
2392
|
-
type: "naming";
|
|
2393
2392
|
match: string;
|
|
2393
|
+
type: "naming";
|
|
2394
2394
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2395
2395
|
} | {
|
|
2396
2396
|
type: "max-exports";
|
|
@@ -2424,10 +2424,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2424
2424
|
} | undefined;
|
|
2425
2425
|
patterns?: boolean | {
|
|
2426
2426
|
patterns: {
|
|
2427
|
-
severity: "error" | "warning";
|
|
2428
|
-
description: string;
|
|
2429
2427
|
files: string[];
|
|
2430
2428
|
name: string;
|
|
2429
|
+
description: string;
|
|
2430
|
+
severity: "error" | "warning";
|
|
2431
2431
|
rule: {
|
|
2432
2432
|
type: "must-export";
|
|
2433
2433
|
names: string[];
|
|
@@ -2445,8 +2445,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2445
2445
|
type: "no-import";
|
|
2446
2446
|
from: string;
|
|
2447
2447
|
} | {
|
|
2448
|
-
type: "naming";
|
|
2449
2448
|
match: string;
|
|
2449
|
+
type: "naming";
|
|
2450
2450
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2451
2451
|
} | {
|
|
2452
2452
|
type: "max-exports";
|
|
@@ -2480,10 +2480,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2480
2480
|
} | undefined;
|
|
2481
2481
|
patterns?: boolean | {
|
|
2482
2482
|
patterns: {
|
|
2483
|
-
severity: "error" | "warning";
|
|
2484
|
-
description: string;
|
|
2485
2483
|
files: string[];
|
|
2486
2484
|
name: string;
|
|
2485
|
+
description: string;
|
|
2486
|
+
severity: "error" | "warning";
|
|
2487
2487
|
rule: {
|
|
2488
2488
|
type: "must-export";
|
|
2489
2489
|
names: string[];
|
|
@@ -2501,8 +2501,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2501
2501
|
type: "no-import";
|
|
2502
2502
|
from: string;
|
|
2503
2503
|
} | {
|
|
2504
|
-
type: "naming";
|
|
2505
2504
|
match: string;
|
|
2505
|
+
type: "naming";
|
|
2506
2506
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2507
2507
|
} | {
|
|
2508
2508
|
type: "max-exports";
|
|
@@ -2542,10 +2542,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2542
2542
|
} | undefined;
|
|
2543
2543
|
patterns?: boolean | {
|
|
2544
2544
|
patterns: {
|
|
2545
|
-
severity: "error" | "warning";
|
|
2546
|
-
description: string;
|
|
2547
2545
|
files: string[];
|
|
2548
2546
|
name: string;
|
|
2547
|
+
description: string;
|
|
2548
|
+
severity: "error" | "warning";
|
|
2549
2549
|
rule: {
|
|
2550
2550
|
type: "must-export";
|
|
2551
2551
|
names: string[];
|
|
@@ -2563,8 +2563,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2563
2563
|
type: "no-import";
|
|
2564
2564
|
from: string;
|
|
2565
2565
|
} | {
|
|
2566
|
-
type: "naming";
|
|
2567
2566
|
match: string;
|
|
2567
|
+
type: "naming";
|
|
2568
2568
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2569
2569
|
} | {
|
|
2570
2570
|
type: "max-exports";
|
|
@@ -2606,10 +2606,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2606
2606
|
} | undefined;
|
|
2607
2607
|
patterns?: boolean | {
|
|
2608
2608
|
patterns: {
|
|
2609
|
-
severity: "error" | "warning";
|
|
2610
|
-
description: string;
|
|
2611
2609
|
files: string[];
|
|
2612
2610
|
name: string;
|
|
2611
|
+
description: string;
|
|
2612
|
+
severity: "error" | "warning";
|
|
2613
2613
|
rule: {
|
|
2614
2614
|
type: "must-export";
|
|
2615
2615
|
names: string[];
|
|
@@ -2627,8 +2627,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2627
2627
|
type: "no-import";
|
|
2628
2628
|
from: string;
|
|
2629
2629
|
} | {
|
|
2630
|
-
type: "naming";
|
|
2631
2630
|
match: string;
|
|
2631
|
+
type: "naming";
|
|
2632
2632
|
convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
|
|
2633
2633
|
} | {
|
|
2634
2634
|
type: "max-exports";
|
|
@@ -3369,7 +3369,7 @@ declare const TimelineSnapshotSchema: z.ZodObject<{
|
|
|
3369
3369
|
violationCount: number;
|
|
3370
3370
|
}>>;
|
|
3371
3371
|
}, "strip", z.ZodTypeAny, {
|
|
3372
|
-
metrics: Partial<Record<"
|
|
3372
|
+
metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
|
|
3373
3373
|
value: number;
|
|
3374
3374
|
violationCount: number;
|
|
3375
3375
|
}>>;
|
|
@@ -3377,7 +3377,7 @@ declare const TimelineSnapshotSchema: z.ZodObject<{
|
|
|
3377
3377
|
commitHash: string;
|
|
3378
3378
|
stabilityScore: number;
|
|
3379
3379
|
}, {
|
|
3380
|
-
metrics: Partial<Record<"
|
|
3380
|
+
metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
|
|
3381
3381
|
value: number;
|
|
3382
3382
|
violationCount: number;
|
|
3383
3383
|
}>>;
|
|
@@ -3409,7 +3409,7 @@ declare const TimelineFileSchema: z.ZodObject<{
|
|
|
3409
3409
|
violationCount: number;
|
|
3410
3410
|
}>>;
|
|
3411
3411
|
}, "strip", z.ZodTypeAny, {
|
|
3412
|
-
metrics: Partial<Record<"
|
|
3412
|
+
metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
|
|
3413
3413
|
value: number;
|
|
3414
3414
|
violationCount: number;
|
|
3415
3415
|
}>>;
|
|
@@ -3417,7 +3417,7 @@ declare const TimelineFileSchema: z.ZodObject<{
|
|
|
3417
3417
|
commitHash: string;
|
|
3418
3418
|
stabilityScore: number;
|
|
3419
3419
|
}, {
|
|
3420
|
-
metrics: Partial<Record<"
|
|
3420
|
+
metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
|
|
3421
3421
|
value: number;
|
|
3422
3422
|
violationCount: number;
|
|
3423
3423
|
}>>;
|
|
@@ -3428,7 +3428,7 @@ declare const TimelineFileSchema: z.ZodObject<{
|
|
|
3428
3428
|
}, "strip", z.ZodTypeAny, {
|
|
3429
3429
|
version: 1;
|
|
3430
3430
|
snapshots: {
|
|
3431
|
-
metrics: Partial<Record<"
|
|
3431
|
+
metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
|
|
3432
3432
|
value: number;
|
|
3433
3433
|
violationCount: number;
|
|
3434
3434
|
}>>;
|
|
@@ -3439,7 +3439,7 @@ declare const TimelineFileSchema: z.ZodObject<{
|
|
|
3439
3439
|
}, {
|
|
3440
3440
|
version: 1;
|
|
3441
3441
|
snapshots: {
|
|
3442
|
-
metrics: Partial<Record<"
|
|
3442
|
+
metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
|
|
3443
3443
|
value: number;
|
|
3444
3444
|
violationCount: number;
|
|
3445
3445
|
}>>;
|
|
@@ -3459,13 +3459,13 @@ declare const TrendLineSchema: z.ZodObject<{
|
|
|
3459
3459
|
/** Direction indicator */
|
|
3460
3460
|
direction: z.ZodEnum<["improving", "stable", "declining"]>;
|
|
3461
3461
|
}, "strip", z.ZodTypeAny, {
|
|
3462
|
-
delta: number;
|
|
3463
3462
|
direction: "improving" | "stable" | "declining";
|
|
3463
|
+
delta: number;
|
|
3464
3464
|
current: number;
|
|
3465
3465
|
previous: number;
|
|
3466
3466
|
}, {
|
|
3467
|
-
delta: number;
|
|
3468
3467
|
direction: "improving" | "stable" | "declining";
|
|
3468
|
+
delta: number;
|
|
3469
3469
|
current: number;
|
|
3470
3470
|
previous: number;
|
|
3471
3471
|
}>;
|
|
@@ -3482,13 +3482,13 @@ declare const TrendResultSchema: z.ZodObject<{
|
|
|
3482
3482
|
/** Direction indicator */
|
|
3483
3483
|
direction: z.ZodEnum<["improving", "stable", "declining"]>;
|
|
3484
3484
|
}, "strip", z.ZodTypeAny, {
|
|
3485
|
-
delta: number;
|
|
3486
3485
|
direction: "improving" | "stable" | "declining";
|
|
3486
|
+
delta: number;
|
|
3487
3487
|
current: number;
|
|
3488
3488
|
previous: number;
|
|
3489
3489
|
}, {
|
|
3490
|
-
delta: number;
|
|
3491
3490
|
direction: "improving" | "stable" | "declining";
|
|
3491
|
+
delta: number;
|
|
3492
3492
|
current: number;
|
|
3493
3493
|
previous: number;
|
|
3494
3494
|
}>;
|
|
@@ -3503,13 +3503,13 @@ declare const TrendResultSchema: z.ZodObject<{
|
|
|
3503
3503
|
/** Direction indicator */
|
|
3504
3504
|
direction: z.ZodEnum<["improving", "stable", "declining"]>;
|
|
3505
3505
|
}, "strip", z.ZodTypeAny, {
|
|
3506
|
-
delta: number;
|
|
3507
3506
|
direction: "improving" | "stable" | "declining";
|
|
3507
|
+
delta: number;
|
|
3508
3508
|
current: number;
|
|
3509
3509
|
previous: number;
|
|
3510
3510
|
}, {
|
|
3511
|
-
delta: number;
|
|
3512
3511
|
direction: "improving" | "stable" | "declining";
|
|
3512
|
+
delta: number;
|
|
3513
3513
|
current: number;
|
|
3514
3514
|
previous: number;
|
|
3515
3515
|
}>>;
|
|
@@ -3521,14 +3521,14 @@ declare const TrendResultSchema: z.ZodObject<{
|
|
|
3521
3521
|
}, "strip", z.ZodTypeAny, {
|
|
3522
3522
|
from: string;
|
|
3523
3523
|
stability: {
|
|
3524
|
-
delta: number;
|
|
3525
3524
|
direction: "improving" | "stable" | "declining";
|
|
3525
|
+
delta: number;
|
|
3526
3526
|
current: number;
|
|
3527
3527
|
previous: number;
|
|
3528
3528
|
};
|
|
3529
|
-
categories: Partial<Record<"
|
|
3530
|
-
delta: number;
|
|
3529
|
+
categories: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
|
|
3531
3530
|
direction: "improving" | "stable" | "declining";
|
|
3531
|
+
delta: number;
|
|
3532
3532
|
current: number;
|
|
3533
3533
|
previous: number;
|
|
3534
3534
|
}>>;
|
|
@@ -3537,14 +3537,14 @@ declare const TrendResultSchema: z.ZodObject<{
|
|
|
3537
3537
|
}, {
|
|
3538
3538
|
from: string;
|
|
3539
3539
|
stability: {
|
|
3540
|
-
delta: number;
|
|
3541
3540
|
direction: "improving" | "stable" | "declining";
|
|
3541
|
+
delta: number;
|
|
3542
3542
|
current: number;
|
|
3543
3543
|
previous: number;
|
|
3544
3544
|
};
|
|
3545
|
-
categories: Partial<Record<"
|
|
3546
|
-
delta: number;
|
|
3545
|
+
categories: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
|
|
3547
3546
|
direction: "improving" | "stable" | "declining";
|
|
3547
|
+
delta: number;
|
|
3548
3548
|
current: number;
|
|
3549
3549
|
previous: number;
|
|
3550
3550
|
}>>;
|
|
@@ -3647,8 +3647,8 @@ declare const CategoryForecastSchema: z.ZodObject<{
|
|
|
3647
3647
|
}>;
|
|
3648
3648
|
direction: z.ZodEnum<["improving", "stable", "declining"]>;
|
|
3649
3649
|
}, "strip", z.ZodTypeAny, {
|
|
3650
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3651
3650
|
direction: "improving" | "stable" | "declining";
|
|
3651
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3652
3652
|
threshold: number;
|
|
3653
3653
|
current: number;
|
|
3654
3654
|
projectedValue4w: number;
|
|
@@ -3663,8 +3663,8 @@ declare const CategoryForecastSchema: z.ZodObject<{
|
|
|
3663
3663
|
dataPoints: number;
|
|
3664
3664
|
};
|
|
3665
3665
|
}, {
|
|
3666
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3667
3666
|
direction: "improving" | "stable" | "declining";
|
|
3667
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3668
3668
|
threshold: number;
|
|
3669
3669
|
current: number;
|
|
3670
3670
|
projectedValue4w: number;
|
|
@@ -3725,7 +3725,7 @@ declare const SpecImpactEstimateSchema: z.ZodObject<{
|
|
|
3725
3725
|
newDependencies: number;
|
|
3726
3726
|
phaseCount: number;
|
|
3727
3727
|
};
|
|
3728
|
-
deltas?: Partial<Record<"
|
|
3728
|
+
deltas?: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number>> | undefined;
|
|
3729
3729
|
}, {
|
|
3730
3730
|
specPath: string;
|
|
3731
3731
|
featureName: string;
|
|
@@ -3735,7 +3735,7 @@ declare const SpecImpactEstimateSchema: z.ZodObject<{
|
|
|
3735
3735
|
newDependencies: number;
|
|
3736
3736
|
phaseCount: number;
|
|
3737
3737
|
};
|
|
3738
|
-
deltas?: Partial<Record<"
|
|
3738
|
+
deltas?: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number>> | undefined;
|
|
3739
3739
|
}>;
|
|
3740
3740
|
type SpecImpactEstimate = z.infer<typeof SpecImpactEstimateSchema>;
|
|
3741
3741
|
declare const ContributingFeatureSchema: z.ZodObject<{
|
|
@@ -3743,12 +3743,12 @@ declare const ContributingFeatureSchema: z.ZodObject<{
|
|
|
3743
3743
|
specPath: z.ZodString;
|
|
3744
3744
|
delta: z.ZodNumber;
|
|
3745
3745
|
}, "strip", z.ZodTypeAny, {
|
|
3746
|
-
delta: number;
|
|
3747
3746
|
name: string;
|
|
3747
|
+
delta: number;
|
|
3748
3748
|
specPath: string;
|
|
3749
3749
|
}, {
|
|
3750
|
-
delta: number;
|
|
3751
3750
|
name: string;
|
|
3751
|
+
delta: number;
|
|
3752
3752
|
specPath: string;
|
|
3753
3753
|
}>;
|
|
3754
3754
|
declare const AdjustedForecastSchema: z.ZodObject<{
|
|
@@ -3779,8 +3779,8 @@ declare const AdjustedForecastSchema: z.ZodObject<{
|
|
|
3779
3779
|
}>;
|
|
3780
3780
|
direction: z.ZodEnum<["improving", "stable", "declining"]>;
|
|
3781
3781
|
}, "strip", z.ZodTypeAny, {
|
|
3782
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3783
3782
|
direction: "improving" | "stable" | "declining";
|
|
3783
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3784
3784
|
threshold: number;
|
|
3785
3785
|
current: number;
|
|
3786
3786
|
projectedValue4w: number;
|
|
@@ -3795,8 +3795,8 @@ declare const AdjustedForecastSchema: z.ZodObject<{
|
|
|
3795
3795
|
dataPoints: number;
|
|
3796
3796
|
};
|
|
3797
3797
|
}, {
|
|
3798
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3799
3798
|
direction: "improving" | "stable" | "declining";
|
|
3799
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3800
3800
|
threshold: number;
|
|
3801
3801
|
current: number;
|
|
3802
3802
|
projectedValue4w: number;
|
|
@@ -3838,8 +3838,8 @@ declare const AdjustedForecastSchema: z.ZodObject<{
|
|
|
3838
3838
|
}>;
|
|
3839
3839
|
direction: z.ZodEnum<["improving", "stable", "declining"]>;
|
|
3840
3840
|
}, "strip", z.ZodTypeAny, {
|
|
3841
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3842
3841
|
direction: "improving" | "stable" | "declining";
|
|
3842
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3843
3843
|
threshold: number;
|
|
3844
3844
|
current: number;
|
|
3845
3845
|
projectedValue4w: number;
|
|
@@ -3854,8 +3854,8 @@ declare const AdjustedForecastSchema: z.ZodObject<{
|
|
|
3854
3854
|
dataPoints: number;
|
|
3855
3855
|
};
|
|
3856
3856
|
}, {
|
|
3857
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3858
3857
|
direction: "improving" | "stable" | "declining";
|
|
3858
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3859
3859
|
threshold: number;
|
|
3860
3860
|
current: number;
|
|
3861
3861
|
projectedValue4w: number;
|
|
@@ -3875,18 +3875,18 @@ declare const AdjustedForecastSchema: z.ZodObject<{
|
|
|
3875
3875
|
specPath: z.ZodString;
|
|
3876
3876
|
delta: z.ZodNumber;
|
|
3877
3877
|
}, "strip", z.ZodTypeAny, {
|
|
3878
|
-
delta: number;
|
|
3879
3878
|
name: string;
|
|
3879
|
+
delta: number;
|
|
3880
3880
|
specPath: string;
|
|
3881
3881
|
}, {
|
|
3882
|
-
delta: number;
|
|
3883
3882
|
name: string;
|
|
3883
|
+
delta: number;
|
|
3884
3884
|
specPath: string;
|
|
3885
3885
|
}>, "many">;
|
|
3886
3886
|
}, "strip", z.ZodTypeAny, {
|
|
3887
3887
|
baseline: {
|
|
3888
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3889
3888
|
direction: "improving" | "stable" | "declining";
|
|
3889
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3890
3890
|
threshold: number;
|
|
3891
3891
|
current: number;
|
|
3892
3892
|
projectedValue4w: number;
|
|
@@ -3902,8 +3902,8 @@ declare const AdjustedForecastSchema: z.ZodObject<{
|
|
|
3902
3902
|
};
|
|
3903
3903
|
};
|
|
3904
3904
|
adjusted: {
|
|
3905
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3906
3905
|
direction: "improving" | "stable" | "declining";
|
|
3906
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3907
3907
|
threshold: number;
|
|
3908
3908
|
current: number;
|
|
3909
3909
|
projectedValue4w: number;
|
|
@@ -3919,14 +3919,14 @@ declare const AdjustedForecastSchema: z.ZodObject<{
|
|
|
3919
3919
|
};
|
|
3920
3920
|
};
|
|
3921
3921
|
contributingFeatures: {
|
|
3922
|
-
delta: number;
|
|
3923
3922
|
name: string;
|
|
3923
|
+
delta: number;
|
|
3924
3924
|
specPath: string;
|
|
3925
3925
|
}[];
|
|
3926
3926
|
}, {
|
|
3927
3927
|
baseline: {
|
|
3928
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3929
3928
|
direction: "improving" | "stable" | "declining";
|
|
3929
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3930
3930
|
threshold: number;
|
|
3931
3931
|
current: number;
|
|
3932
3932
|
projectedValue4w: number;
|
|
@@ -3942,8 +3942,8 @@ declare const AdjustedForecastSchema: z.ZodObject<{
|
|
|
3942
3942
|
};
|
|
3943
3943
|
};
|
|
3944
3944
|
adjusted: {
|
|
3945
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3946
3945
|
direction: "improving" | "stable" | "declining";
|
|
3946
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3947
3947
|
threshold: number;
|
|
3948
3948
|
current: number;
|
|
3949
3949
|
projectedValue4w: number;
|
|
@@ -3959,8 +3959,8 @@ declare const AdjustedForecastSchema: z.ZodObject<{
|
|
|
3959
3959
|
};
|
|
3960
3960
|
};
|
|
3961
3961
|
contributingFeatures: {
|
|
3962
|
-
delta: number;
|
|
3963
3962
|
name: string;
|
|
3963
|
+
delta: number;
|
|
3964
3964
|
specPath: string;
|
|
3965
3965
|
}[];
|
|
3966
3966
|
}>;
|
|
@@ -3974,14 +3974,14 @@ declare const PredictionWarningSchema: z.ZodObject<{
|
|
|
3974
3974
|
contributingFeatures: z.ZodArray<z.ZodString, "many">;
|
|
3975
3975
|
}, "strip", z.ZodTypeAny, {
|
|
3976
3976
|
message: string;
|
|
3977
|
-
category: "
|
|
3977
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3978
3978
|
severity: "warning" | "info" | "critical";
|
|
3979
3979
|
confidence: "high" | "medium" | "low";
|
|
3980
3980
|
contributingFeatures: string[];
|
|
3981
3981
|
weeksUntil: number;
|
|
3982
3982
|
}, {
|
|
3983
3983
|
message: string;
|
|
3984
|
-
category: "
|
|
3984
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
3985
3985
|
severity: "warning" | "info" | "critical";
|
|
3986
3986
|
confidence: "high" | "medium" | "low";
|
|
3987
3987
|
contributingFeatures: string[];
|
|
@@ -4074,8 +4074,8 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4074
4074
|
}>;
|
|
4075
4075
|
direction: z.ZodEnum<["improving", "stable", "declining"]>;
|
|
4076
4076
|
}, "strip", z.ZodTypeAny, {
|
|
4077
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4078
4077
|
direction: "improving" | "stable" | "declining";
|
|
4078
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4079
4079
|
threshold: number;
|
|
4080
4080
|
current: number;
|
|
4081
4081
|
projectedValue4w: number;
|
|
@@ -4090,8 +4090,8 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4090
4090
|
dataPoints: number;
|
|
4091
4091
|
};
|
|
4092
4092
|
}, {
|
|
4093
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4094
4093
|
direction: "improving" | "stable" | "declining";
|
|
4094
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4095
4095
|
threshold: number;
|
|
4096
4096
|
current: number;
|
|
4097
4097
|
projectedValue4w: number;
|
|
@@ -4133,8 +4133,8 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4133
4133
|
}>;
|
|
4134
4134
|
direction: z.ZodEnum<["improving", "stable", "declining"]>;
|
|
4135
4135
|
}, "strip", z.ZodTypeAny, {
|
|
4136
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4137
4136
|
direction: "improving" | "stable" | "declining";
|
|
4137
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4138
4138
|
threshold: number;
|
|
4139
4139
|
current: number;
|
|
4140
4140
|
projectedValue4w: number;
|
|
@@ -4149,8 +4149,8 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4149
4149
|
dataPoints: number;
|
|
4150
4150
|
};
|
|
4151
4151
|
}, {
|
|
4152
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4153
4152
|
direction: "improving" | "stable" | "declining";
|
|
4153
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4154
4154
|
threshold: number;
|
|
4155
4155
|
current: number;
|
|
4156
4156
|
projectedValue4w: number;
|
|
@@ -4170,18 +4170,18 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4170
4170
|
specPath: z.ZodString;
|
|
4171
4171
|
delta: z.ZodNumber;
|
|
4172
4172
|
}, "strip", z.ZodTypeAny, {
|
|
4173
|
-
delta: number;
|
|
4174
4173
|
name: string;
|
|
4174
|
+
delta: number;
|
|
4175
4175
|
specPath: string;
|
|
4176
4176
|
}, {
|
|
4177
|
-
delta: number;
|
|
4178
4177
|
name: string;
|
|
4178
|
+
delta: number;
|
|
4179
4179
|
specPath: string;
|
|
4180
4180
|
}>, "many">;
|
|
4181
4181
|
}, "strip", z.ZodTypeAny, {
|
|
4182
4182
|
baseline: {
|
|
4183
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4184
4183
|
direction: "improving" | "stable" | "declining";
|
|
4184
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4185
4185
|
threshold: number;
|
|
4186
4186
|
current: number;
|
|
4187
4187
|
projectedValue4w: number;
|
|
@@ -4197,8 +4197,8 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4197
4197
|
};
|
|
4198
4198
|
};
|
|
4199
4199
|
adjusted: {
|
|
4200
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4201
4200
|
direction: "improving" | "stable" | "declining";
|
|
4201
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4202
4202
|
threshold: number;
|
|
4203
4203
|
current: number;
|
|
4204
4204
|
projectedValue4w: number;
|
|
@@ -4214,14 +4214,14 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4214
4214
|
};
|
|
4215
4215
|
};
|
|
4216
4216
|
contributingFeatures: {
|
|
4217
|
-
delta: number;
|
|
4218
4217
|
name: string;
|
|
4218
|
+
delta: number;
|
|
4219
4219
|
specPath: string;
|
|
4220
4220
|
}[];
|
|
4221
4221
|
}, {
|
|
4222
4222
|
baseline: {
|
|
4223
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4224
4223
|
direction: "improving" | "stable" | "declining";
|
|
4224
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4225
4225
|
threshold: number;
|
|
4226
4226
|
current: number;
|
|
4227
4227
|
projectedValue4w: number;
|
|
@@ -4237,8 +4237,8 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4237
4237
|
};
|
|
4238
4238
|
};
|
|
4239
4239
|
adjusted: {
|
|
4240
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4241
4240
|
direction: "improving" | "stable" | "declining";
|
|
4241
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4242
4242
|
threshold: number;
|
|
4243
4243
|
current: number;
|
|
4244
4244
|
projectedValue4w: number;
|
|
@@ -4254,8 +4254,8 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4254
4254
|
};
|
|
4255
4255
|
};
|
|
4256
4256
|
contributingFeatures: {
|
|
4257
|
-
delta: number;
|
|
4258
4257
|
name: string;
|
|
4258
|
+
delta: number;
|
|
4259
4259
|
specPath: string;
|
|
4260
4260
|
}[];
|
|
4261
4261
|
}>>;
|
|
@@ -4268,24 +4268,24 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4268
4268
|
contributingFeatures: z.ZodArray<z.ZodString, "many">;
|
|
4269
4269
|
}, "strip", z.ZodTypeAny, {
|
|
4270
4270
|
message: string;
|
|
4271
|
-
category: "
|
|
4271
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4272
4272
|
severity: "warning" | "info" | "critical";
|
|
4273
4273
|
confidence: "high" | "medium" | "low";
|
|
4274
4274
|
contributingFeatures: string[];
|
|
4275
4275
|
weeksUntil: number;
|
|
4276
4276
|
}, {
|
|
4277
4277
|
message: string;
|
|
4278
|
-
category: "
|
|
4278
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4279
4279
|
severity: "warning" | "info" | "critical";
|
|
4280
4280
|
confidence: "high" | "medium" | "low";
|
|
4281
4281
|
contributingFeatures: string[];
|
|
4282
4282
|
weeksUntil: number;
|
|
4283
4283
|
}>, "many">;
|
|
4284
4284
|
}, "strip", z.ZodTypeAny, {
|
|
4285
|
-
categories: Partial<Record<"
|
|
4285
|
+
categories: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
|
|
4286
4286
|
baseline: {
|
|
4287
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4288
4287
|
direction: "improving" | "stable" | "declining";
|
|
4288
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4289
4289
|
threshold: number;
|
|
4290
4290
|
current: number;
|
|
4291
4291
|
projectedValue4w: number;
|
|
@@ -4301,8 +4301,8 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4301
4301
|
};
|
|
4302
4302
|
};
|
|
4303
4303
|
adjusted: {
|
|
4304
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4305
4304
|
direction: "improving" | "stable" | "declining";
|
|
4305
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4306
4306
|
threshold: number;
|
|
4307
4307
|
current: number;
|
|
4308
4308
|
projectedValue4w: number;
|
|
@@ -4318,8 +4318,8 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4318
4318
|
};
|
|
4319
4319
|
};
|
|
4320
4320
|
contributingFeatures: {
|
|
4321
|
-
delta: number;
|
|
4322
4321
|
name: string;
|
|
4322
|
+
delta: number;
|
|
4323
4323
|
specPath: string;
|
|
4324
4324
|
}[];
|
|
4325
4325
|
}>>;
|
|
@@ -4339,17 +4339,17 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4339
4339
|
};
|
|
4340
4340
|
warnings: {
|
|
4341
4341
|
message: string;
|
|
4342
|
-
category: "
|
|
4342
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4343
4343
|
severity: "warning" | "info" | "critical";
|
|
4344
4344
|
confidence: "high" | "medium" | "low";
|
|
4345
4345
|
contributingFeatures: string[];
|
|
4346
4346
|
weeksUntil: number;
|
|
4347
4347
|
}[];
|
|
4348
4348
|
}, {
|
|
4349
|
-
categories: Partial<Record<"
|
|
4349
|
+
categories: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
|
|
4350
4350
|
baseline: {
|
|
4351
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4352
4351
|
direction: "improving" | "stable" | "declining";
|
|
4352
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4353
4353
|
threshold: number;
|
|
4354
4354
|
current: number;
|
|
4355
4355
|
projectedValue4w: number;
|
|
@@ -4365,8 +4365,8 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4365
4365
|
};
|
|
4366
4366
|
};
|
|
4367
4367
|
adjusted: {
|
|
4368
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4369
4368
|
direction: "improving" | "stable" | "declining";
|
|
4369
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4370
4370
|
threshold: number;
|
|
4371
4371
|
current: number;
|
|
4372
4372
|
projectedValue4w: number;
|
|
@@ -4382,8 +4382,8 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4382
4382
|
};
|
|
4383
4383
|
};
|
|
4384
4384
|
contributingFeatures: {
|
|
4385
|
-
delta: number;
|
|
4386
4385
|
name: string;
|
|
4386
|
+
delta: number;
|
|
4387
4387
|
specPath: string;
|
|
4388
4388
|
}[];
|
|
4389
4389
|
}>>;
|
|
@@ -4403,7 +4403,7 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4403
4403
|
};
|
|
4404
4404
|
warnings: {
|
|
4405
4405
|
message: string;
|
|
4406
|
-
category: "
|
|
4406
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4407
4407
|
severity: "warning" | "info" | "critical";
|
|
4408
4408
|
confidence: "high" | "medium" | "low";
|
|
4409
4409
|
contributingFeatures: string[];
|
|
@@ -4419,11 +4419,11 @@ declare const PredictionOptionsSchema: z.ZodObject<{
|
|
|
4419
4419
|
}, "strip", z.ZodTypeAny, {
|
|
4420
4420
|
horizon: number;
|
|
4421
4421
|
includeRoadmap: boolean;
|
|
4422
|
-
thresholds?: Partial<Record<"
|
|
4423
|
-
categories?: ("
|
|
4422
|
+
thresholds?: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number>> | undefined;
|
|
4423
|
+
categories?: ("complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth")[] | undefined;
|
|
4424
4424
|
}, {
|
|
4425
|
-
thresholds?: Partial<Record<"
|
|
4426
|
-
categories?: ("
|
|
4425
|
+
thresholds?: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number>> | undefined;
|
|
4426
|
+
categories?: ("complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth")[] | undefined;
|
|
4427
4427
|
horizon?: number | undefined;
|
|
4428
4428
|
includeRoadmap?: boolean | undefined;
|
|
4429
4429
|
}>;
|
|
@@ -4611,13 +4611,13 @@ declare const FailureEntrySchema: z.ZodObject<{
|
|
|
4611
4611
|
description: z.ZodString;
|
|
4612
4612
|
}, "strip", z.ZodTypeAny, {
|
|
4613
4613
|
type: string;
|
|
4614
|
-
date: string;
|
|
4615
4614
|
description: string;
|
|
4615
|
+
date: string;
|
|
4616
4616
|
skill: string;
|
|
4617
4617
|
}, {
|
|
4618
4618
|
type: string;
|
|
4619
|
-
date: string;
|
|
4620
4619
|
description: string;
|
|
4620
|
+
date: string;
|
|
4621
4621
|
skill: string;
|
|
4622
4622
|
}>;
|
|
4623
4623
|
type FailureEntry = z.infer<typeof FailureEntrySchema>;
|
|
@@ -4680,14 +4680,14 @@ declare const GateResultSchema: z.ZodObject<{
|
|
|
4680
4680
|
output: z.ZodOptional<z.ZodString>;
|
|
4681
4681
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
4682
4682
|
}, "strip", z.ZodTypeAny, {
|
|
4683
|
-
passed: boolean;
|
|
4684
4683
|
name: string;
|
|
4684
|
+
passed: boolean;
|
|
4685
4685
|
command: string;
|
|
4686
4686
|
output?: string | undefined;
|
|
4687
4687
|
duration?: number | undefined;
|
|
4688
4688
|
}, {
|
|
4689
|
-
passed: boolean;
|
|
4690
4689
|
name: string;
|
|
4690
|
+
passed: boolean;
|
|
4691
4691
|
command: string;
|
|
4692
4692
|
output?: string | undefined;
|
|
4693
4693
|
duration?: number | undefined;
|
|
@@ -4695,8 +4695,8 @@ declare const GateResultSchema: z.ZodObject<{
|
|
|
4695
4695
|
}, "strip", z.ZodTypeAny, {
|
|
4696
4696
|
passed: boolean;
|
|
4697
4697
|
checks: {
|
|
4698
|
-
passed: boolean;
|
|
4699
4698
|
name: string;
|
|
4699
|
+
passed: boolean;
|
|
4700
4700
|
command: string;
|
|
4701
4701
|
output?: string | undefined;
|
|
4702
4702
|
duration?: number | undefined;
|
|
@@ -4704,8 +4704,8 @@ declare const GateResultSchema: z.ZodObject<{
|
|
|
4704
4704
|
}, {
|
|
4705
4705
|
passed: boolean;
|
|
4706
4706
|
checks: {
|
|
4707
|
-
passed: boolean;
|
|
4708
4707
|
name: string;
|
|
4708
|
+
passed: boolean;
|
|
4709
4709
|
command: string;
|
|
4710
4710
|
output?: string | undefined;
|
|
4711
4711
|
duration?: number | undefined;
|
|
@@ -4768,13 +4768,13 @@ declare const HarnessStateSchema: z.ZodObject<{
|
|
|
4768
4768
|
description: z.ZodString;
|
|
4769
4769
|
status: z.ZodEnum<["open", "resolved"]>;
|
|
4770
4770
|
}, "strip", z.ZodTypeAny, {
|
|
4771
|
-
status: "resolved" | "open";
|
|
4772
4771
|
id: string;
|
|
4773
4772
|
description: string;
|
|
4774
|
-
}, {
|
|
4775
4773
|
status: "resolved" | "open";
|
|
4774
|
+
}, {
|
|
4776
4775
|
id: string;
|
|
4777
4776
|
description: string;
|
|
4777
|
+
status: "resolved" | "open";
|
|
4778
4778
|
}>, "many">>;
|
|
4779
4779
|
progress: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<["pending", "in_progress", "complete"]>>>;
|
|
4780
4780
|
lastSession: z.ZodOptional<z.ZodObject<{
|
|
@@ -4800,9 +4800,9 @@ declare const HarnessStateSchema: z.ZodObject<{
|
|
|
4800
4800
|
decision: string;
|
|
4801
4801
|
}[];
|
|
4802
4802
|
blockers: {
|
|
4803
|
-
status: "resolved" | "open";
|
|
4804
4803
|
id: string;
|
|
4805
4804
|
description: string;
|
|
4805
|
+
status: "resolved" | "open";
|
|
4806
4806
|
}[];
|
|
4807
4807
|
schemaVersion: 1;
|
|
4808
4808
|
position: {
|
|
@@ -4824,9 +4824,9 @@ declare const HarnessStateSchema: z.ZodObject<{
|
|
|
4824
4824
|
decision: string;
|
|
4825
4825
|
}[] | undefined;
|
|
4826
4826
|
blockers?: {
|
|
4827
|
-
status: "resolved" | "open";
|
|
4828
4827
|
id: string;
|
|
4829
4828
|
description: string;
|
|
4829
|
+
status: "resolved" | "open";
|
|
4830
4830
|
}[] | undefined;
|
|
4831
4831
|
position?: {
|
|
4832
4832
|
task?: string | undefined;
|
|
@@ -4846,6 +4846,57 @@ declare const DEFAULT_STATE: HarnessState;
|
|
|
4846
4846
|
declare function loadState(projectPath: string, stream?: string, session?: string): Promise<Result<HarnessState, Error>>;
|
|
4847
4847
|
declare function saveState(projectPath: string, state: HarnessState, stream?: string, session?: string): Promise<Result<void, Error>>;
|
|
4848
4848
|
|
|
4849
|
+
/**
|
|
4850
|
+
* PackedEnvelope — the structured result of applying a compaction pipeline
|
|
4851
|
+
* to one or more tool responses or content sections.
|
|
4852
|
+
*
|
|
4853
|
+
* Serialized as structured markdown for readability by AI agents.
|
|
4854
|
+
* Example output:
|
|
4855
|
+
*
|
|
4856
|
+
* <!-- packed: structural+truncate | 4200→1100 tokens (-74%) -->
|
|
4857
|
+
* ### [gather_context]
|
|
4858
|
+
* ...compacted content...
|
|
4859
|
+
*
|
|
4860
|
+
* ### [docs/changes/spec.md]
|
|
4861
|
+
* ...compacted content...
|
|
4862
|
+
*/
|
|
4863
|
+
interface PackedEnvelope {
|
|
4864
|
+
meta: {
|
|
4865
|
+
/** Ordered list of strategy names applied. */
|
|
4866
|
+
strategy: string[];
|
|
4867
|
+
/** Estimated token count of the original input (chars / 4). */
|
|
4868
|
+
originalTokenEstimate: number;
|
|
4869
|
+
/** Estimated token count after compaction. */
|
|
4870
|
+
compactedTokenEstimate: number;
|
|
4871
|
+
/** Reduction percentage: (1 - compacted/original) * 100, rounded. */
|
|
4872
|
+
reductionPct: number;
|
|
4873
|
+
/** Whether this result was served from cache. */
|
|
4874
|
+
cached: boolean;
|
|
4875
|
+
/** Prompt cache read tokens (from provider response), if available. */
|
|
4876
|
+
cacheReadTokens?: number;
|
|
4877
|
+
/** Total input tokens sent to provider, if available. */
|
|
4878
|
+
cacheInputTokens?: number;
|
|
4879
|
+
};
|
|
4880
|
+
sections: Array<{
|
|
4881
|
+
/** Tool name, file path, or section label — used as the section heading. */
|
|
4882
|
+
source: string;
|
|
4883
|
+
/** Compacted content for this section. */
|
|
4884
|
+
content: string;
|
|
4885
|
+
}>;
|
|
4886
|
+
}
|
|
4887
|
+
/**
|
|
4888
|
+
* Estimates token count using the chars/4 heuristic from the spec.
|
|
4889
|
+
*/
|
|
4890
|
+
declare function estimateTokens(content: string): number;
|
|
4891
|
+
/**
|
|
4892
|
+
* Serializes a PackedEnvelope to the spec's structured markdown format:
|
|
4893
|
+
*
|
|
4894
|
+
* <!-- packed: structural+truncate | 4200→1100 tokens (-74%) [cached] -->
|
|
4895
|
+
* ### [source-name]
|
|
4896
|
+
* content
|
|
4897
|
+
*/
|
|
4898
|
+
declare function serializeEnvelope(envelope: PackedEnvelope): string;
|
|
4899
|
+
|
|
4849
4900
|
interface LearningsFrontmatter {
|
|
4850
4901
|
hash: string;
|
|
4851
4902
|
tags: string[];
|
|
@@ -5382,9 +5433,9 @@ declare const SecurityConfigSchema: z.ZodObject<{
|
|
|
5382
5433
|
} | undefined;
|
|
5383
5434
|
}>>;
|
|
5384
5435
|
}, "strip", z.ZodTypeAny, {
|
|
5436
|
+
rules: Record<string, "error" | "warning" | "info" | "off">;
|
|
5385
5437
|
enabled: boolean;
|
|
5386
5438
|
strict: boolean;
|
|
5387
|
-
rules: Record<string, "error" | "warning" | "info" | "off">;
|
|
5388
5439
|
exclude: string[];
|
|
5389
5440
|
external?: {
|
|
5390
5441
|
semgrep?: {
|
|
@@ -5396,9 +5447,9 @@ declare const SecurityConfigSchema: z.ZodObject<{
|
|
|
5396
5447
|
} | undefined;
|
|
5397
5448
|
} | undefined;
|
|
5398
5449
|
}, {
|
|
5450
|
+
rules?: Record<string, "error" | "warning" | "info" | "off"> | undefined;
|
|
5399
5451
|
enabled?: boolean | undefined;
|
|
5400
5452
|
strict?: boolean | undefined;
|
|
5401
|
-
rules?: Record<string, "error" | "warning" | "info" | "off"> | undefined;
|
|
5402
5453
|
exclude?: string[] | undefined;
|
|
5403
5454
|
external?: {
|
|
5404
5455
|
semgrep?: {
|
|
@@ -6559,12 +6610,12 @@ declare const QuestionSchema: z.ZodObject<{
|
|
|
6559
6610
|
default: z.ZodOptional<z.ZodString>;
|
|
6560
6611
|
}, "strip", z.ZodTypeAny, {
|
|
6561
6612
|
text: string;
|
|
6562
|
-
options?: string[] | undefined;
|
|
6563
6613
|
default?: string | undefined;
|
|
6614
|
+
options?: string[] | undefined;
|
|
6564
6615
|
}, {
|
|
6565
6616
|
text: string;
|
|
6566
|
-
options?: string[] | undefined;
|
|
6567
6617
|
default?: string | undefined;
|
|
6618
|
+
options?: string[] | undefined;
|
|
6568
6619
|
}>;
|
|
6569
6620
|
declare const ConfirmationSchema: z.ZodObject<{
|
|
6570
6621
|
text: z.ZodString;
|
|
@@ -6608,12 +6659,12 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
|
|
|
6608
6659
|
default: z.ZodOptional<z.ZodString>;
|
|
6609
6660
|
}, "strip", z.ZodTypeAny, {
|
|
6610
6661
|
text: string;
|
|
6611
|
-
options?: string[] | undefined;
|
|
6612
6662
|
default?: string | undefined;
|
|
6663
|
+
options?: string[] | undefined;
|
|
6613
6664
|
}, {
|
|
6614
6665
|
text: string;
|
|
6615
|
-
options?: string[] | undefined;
|
|
6616
6666
|
default?: string | undefined;
|
|
6667
|
+
options?: string[] | undefined;
|
|
6617
6668
|
}>>;
|
|
6618
6669
|
confirmation: z.ZodOptional<z.ZodObject<{
|
|
6619
6670
|
text: z.ZodString;
|
|
@@ -6653,8 +6704,8 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
|
|
|
6653
6704
|
stream?: string | undefined;
|
|
6654
6705
|
question?: {
|
|
6655
6706
|
text: string;
|
|
6656
|
-
options?: string[] | undefined;
|
|
6657
6707
|
default?: string | undefined;
|
|
6708
|
+
options?: string[] | undefined;
|
|
6658
6709
|
} | undefined;
|
|
6659
6710
|
confirmation?: {
|
|
6660
6711
|
text: string;
|
|
@@ -6674,8 +6725,8 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
|
|
|
6674
6725
|
stream?: string | undefined;
|
|
6675
6726
|
question?: {
|
|
6676
6727
|
text: string;
|
|
6677
|
-
options?: string[] | undefined;
|
|
6678
6728
|
default?: string | undefined;
|
|
6729
|
+
options?: string[] | undefined;
|
|
6679
6730
|
} | undefined;
|
|
6680
6731
|
confirmation?: {
|
|
6681
6732
|
text: string;
|
|
@@ -6893,7 +6944,7 @@ declare function aggregateBySession(records: UsageRecord[]): SessionUsage[];
|
|
|
6893
6944
|
* Aggregates an array of UsageRecords into per-day summaries.
|
|
6894
6945
|
* Groups by calendar date (UTC) derived from the record timestamp.
|
|
6895
6946
|
*/
|
|
6896
|
-
declare function aggregateByDay(records: UsageRecord[]): DailyUsage[];
|
|
6947
|
+
declare function aggregateByDay$1(records: UsageRecord[]): DailyUsage[];
|
|
6897
6948
|
|
|
6898
6949
|
/**
|
|
6899
6950
|
* Reads .harness/metrics/costs.jsonl and normalizes snake_case hook output
|
|
@@ -6916,24 +6967,297 @@ declare function readCostRecords(projectRoot: string): UsageRecord[];
|
|
|
6916
6967
|
declare function parseCCRecords(): UsageRecord[];
|
|
6917
6968
|
|
|
6918
6969
|
/**
|
|
6919
|
-
*
|
|
6970
|
+
* Reads .harness/metrics/adoption.jsonl and returns parsed SkillInvocationRecord[].
|
|
6971
|
+
*
|
|
6972
|
+
* - Returns empty array if the file does not exist
|
|
6973
|
+
* - Skips malformed lines with a warning to stderr
|
|
6974
|
+
* - Skips blank lines silently
|
|
6975
|
+
*/
|
|
6976
|
+
declare function readAdoptionRecords(projectRoot: string): SkillInvocationRecord[];
|
|
6977
|
+
|
|
6978
|
+
/**
|
|
6979
|
+
* Return type for daily aggregation.
|
|
6980
|
+
*/
|
|
6981
|
+
interface DailyAdoption {
|
|
6982
|
+
/** Calendar date (YYYY-MM-DD) */
|
|
6983
|
+
date: string;
|
|
6984
|
+
/** Number of invocations on this date */
|
|
6985
|
+
invocations: number;
|
|
6986
|
+
/** Count of distinct skills invoked on this date */
|
|
6987
|
+
uniqueSkills: number;
|
|
6988
|
+
}
|
|
6989
|
+
/**
|
|
6990
|
+
* Aggregates records by skill name into SkillAdoptionSummary[].
|
|
6991
|
+
* Sorted by invocation count descending.
|
|
6992
|
+
*/
|
|
6993
|
+
declare function aggregateBySkill(records: SkillInvocationRecord[]): SkillAdoptionSummary[];
|
|
6994
|
+
/**
|
|
6995
|
+
* Aggregates records by calendar date (derived from startedAt).
|
|
6996
|
+
* Sorted by date descending (most recent first).
|
|
6997
|
+
*/
|
|
6998
|
+
declare function aggregateByDay(records: SkillInvocationRecord[]): DailyAdoption[];
|
|
6999
|
+
/**
|
|
7000
|
+
* Returns the top N skills by invocation count.
|
|
7001
|
+
* Convenience wrapper over aggregateBySkill.
|
|
7002
|
+
*/
|
|
7003
|
+
declare function topSkills(records: SkillInvocationRecord[], n: number): SkillAdoptionSummary[];
|
|
7004
|
+
|
|
7005
|
+
/**
|
|
7006
|
+
* CompactionStrategy — the shared interface for all compaction strategies.
|
|
7007
|
+
* Defined here in structural.ts as the foundation type; re-exported from
|
|
7008
|
+
* packages/core/src/compaction/index.ts.
|
|
7009
|
+
*/
|
|
7010
|
+
interface CompactionStrategy {
|
|
7011
|
+
name: 'structural' | 'truncate' | 'pack' | 'semantic';
|
|
7012
|
+
lossy: boolean;
|
|
7013
|
+
apply(content: string, budget?: number): string;
|
|
7014
|
+
}
|
|
7015
|
+
/**
|
|
7016
|
+
* Lossless structural compressor.
|
|
7017
|
+
*
|
|
7018
|
+
* For valid JSON input:
|
|
7019
|
+
* - Removes null, undefined, empty-string, empty-array, and empty-object fields
|
|
7020
|
+
* - Collapses single-item arrays to scalar values
|
|
7021
|
+
* - Strips redundant whitespace from string values (leading/trailing and internal runs)
|
|
7022
|
+
* - Normalizes output to compact JSON (no pretty-printing)
|
|
7023
|
+
*
|
|
7024
|
+
* For non-JSON input: returns the string unchanged.
|
|
7025
|
+
*/
|
|
7026
|
+
declare class StructuralStrategy implements CompactionStrategy {
|
|
7027
|
+
readonly name: "structural";
|
|
7028
|
+
readonly lossy = false;
|
|
7029
|
+
apply(content: string, _budget?: number): string;
|
|
7030
|
+
}
|
|
7031
|
+
|
|
7032
|
+
declare const DEFAULT_TOKEN_BUDGET = 4000;
|
|
7033
|
+
/**
|
|
7034
|
+
* Prioritized budget truncation.
|
|
7035
|
+
*
|
|
7036
|
+
* Splits content into lines, scores each line for semantic priority, and
|
|
7037
|
+
* rebuilds output within the token budget by including the highest-priority
|
|
7038
|
+
* lines first. A truncation marker is appended when lines are cut.
|
|
7039
|
+
*
|
|
7040
|
+
* Default budget: 4000 tokens (4000 * 4 = 16 000 chars).
|
|
7041
|
+
*/
|
|
7042
|
+
declare class TruncationStrategy implements CompactionStrategy {
|
|
7043
|
+
readonly name: "truncate";
|
|
7044
|
+
readonly lossy = false;
|
|
7045
|
+
apply(content: string, budget?: number): string;
|
|
7046
|
+
}
|
|
7047
|
+
|
|
7048
|
+
/**
|
|
7049
|
+
* CompactionPipeline composes an ordered list of CompactionStrategy instances
|
|
7050
|
+
* and applies them in sequence, passing the output of each strategy as the
|
|
7051
|
+
* input to the next.
|
|
7052
|
+
*
|
|
7053
|
+
* Budget is forwarded to every strategy unchanged — each strategy applies
|
|
7054
|
+
* its own interpretation of the budget.
|
|
7055
|
+
*/
|
|
7056
|
+
declare class CompactionPipeline {
|
|
7057
|
+
private readonly strategies;
|
|
7058
|
+
constructor(strategies: CompactionStrategy[]);
|
|
7059
|
+
/** The ordered list of strategy names in this pipeline. */
|
|
7060
|
+
get strategyNames(): string[];
|
|
7061
|
+
/**
|
|
7062
|
+
* Apply all strategies in order.
|
|
7063
|
+
* @param content — input string
|
|
7064
|
+
* @param budget — optional token budget forwarded to each strategy
|
|
7065
|
+
*/
|
|
7066
|
+
apply(content: string, budget?: number): string;
|
|
7067
|
+
}
|
|
7068
|
+
|
|
7069
|
+
/**
|
|
7070
|
+
* Resolve the stability tier for a content type or graph node type.
|
|
7071
|
+
*
|
|
7072
|
+
* Accepts both PascalCase display names (e.g., 'SkillDefinition') and
|
|
7073
|
+
* lowercase NodeType enum values (e.g., 'file', 'packed_summary').
|
|
7074
|
+
*
|
|
7075
|
+
* Returns 'ephemeral' for any unrecognized type.
|
|
7076
|
+
*/
|
|
7077
|
+
declare function resolveStability(contentType: string): StabilityTier;
|
|
7078
|
+
|
|
7079
|
+
/**
|
|
7080
|
+
* A content block tagged with its stability classification.
|
|
7081
|
+
* Used by CacheAdapter.orderContent() to sort blocks for optimal cache hits.
|
|
7082
|
+
*/
|
|
7083
|
+
interface StabilityTaggedBlock {
|
|
7084
|
+
/** Stability classification of this content */
|
|
7085
|
+
stability: StabilityTier;
|
|
7086
|
+
/** The content payload (system prompt text, tool output, etc.) */
|
|
7087
|
+
content: string;
|
|
7088
|
+
/** The role this block serves in the message (system, user, assistant) */
|
|
7089
|
+
role: 'system' | 'user' | 'assistant';
|
|
7090
|
+
}
|
|
7091
|
+
/**
|
|
7092
|
+
* Provider-formatted system prompt block.
|
|
7093
|
+
* Shape varies by provider -- may include cache_control (Anthropic),
|
|
7094
|
+
* cachedContentRef (Gemini), or plain text (OpenAI).
|
|
7095
|
+
*/
|
|
7096
|
+
interface ProviderSystemBlock {
|
|
7097
|
+
type: 'text';
|
|
7098
|
+
text: string;
|
|
7099
|
+
/** Anthropic cache control directive */
|
|
7100
|
+
cache_control?: {
|
|
7101
|
+
type: 'ephemeral';
|
|
7102
|
+
ttl?: string;
|
|
7103
|
+
};
|
|
7104
|
+
/** Gemini cached content reference */
|
|
7105
|
+
cachedContentRef?: string;
|
|
7106
|
+
}
|
|
7107
|
+
/**
|
|
7108
|
+
* A tool definition as passed to provider APIs.
|
|
7109
|
+
* Minimal shape -- provider adapters may extend individual entries.
|
|
7110
|
+
*/
|
|
7111
|
+
interface ToolDefinition {
|
|
7112
|
+
name: string;
|
|
7113
|
+
description: string;
|
|
7114
|
+
input_schema: Record<string, unknown>;
|
|
7115
|
+
/** Anthropic cache control directive (added by adapter) */
|
|
7116
|
+
cache_control?: {
|
|
7117
|
+
type: 'ephemeral';
|
|
7118
|
+
ttl?: string;
|
|
7119
|
+
};
|
|
7120
|
+
}
|
|
7121
|
+
/**
|
|
7122
|
+
* Provider-formatted tool block wrapping an array of tool definitions.
|
|
7123
|
+
*/
|
|
7124
|
+
interface ProviderToolBlock {
|
|
7125
|
+
tools: ToolDefinition[];
|
|
7126
|
+
}
|
|
7127
|
+
/**
|
|
7128
|
+
* Unified interface for provider-specific prompt cache behavior.
|
|
7129
|
+
*
|
|
7130
|
+
* Each provider has different mechanisms for prompt caching:
|
|
7131
|
+
* - Anthropic: explicit cache_control breakpoints
|
|
7132
|
+
* - OpenAI: automatic prefix-matching (content ordering matters)
|
|
7133
|
+
* - Gemini: cachedContents resource for static content
|
|
7134
|
+
*
|
|
7135
|
+
* Adapters translate stability tiers into provider-native directives.
|
|
7136
|
+
*/
|
|
7137
|
+
interface CacheAdapter {
|
|
7138
|
+
/** Provider identifier */
|
|
7139
|
+
provider: 'claude' | 'openai' | 'gemini';
|
|
7140
|
+
/** Wrap a system prompt block with provider-specific cache directives */
|
|
7141
|
+
wrapSystemBlock(content: string, stability: StabilityTier): ProviderSystemBlock;
|
|
7142
|
+
/** Wrap tool definitions with provider-specific cache directives */
|
|
7143
|
+
wrapTools(tools: ToolDefinition[], stability: StabilityTier): ProviderToolBlock;
|
|
7144
|
+
/** Order message content blocks for optimal cache hit rates */
|
|
7145
|
+
orderContent(blocks: StabilityTaggedBlock[]): StabilityTaggedBlock[];
|
|
7146
|
+
/** Extract cache token counts from a provider API response */
|
|
7147
|
+
parseCacheUsage(response: unknown): {
|
|
7148
|
+
cacheCreationTokens: number;
|
|
7149
|
+
cacheReadTokens: number;
|
|
7150
|
+
};
|
|
7151
|
+
}
|
|
7152
|
+
|
|
7153
|
+
/**
|
|
7154
|
+
* Anthropic cache adapter.
|
|
7155
|
+
*
|
|
7156
|
+
* Uses explicit `cache_control` breakpoints on content blocks:
|
|
7157
|
+
* - static: cache_control with type "ephemeral" and ttl "1h"
|
|
7158
|
+
* - session: cache_control with type "ephemeral" (default 5m TTL)
|
|
7159
|
+
* - ephemeral: no cache_control (not cached)
|
|
7160
|
+
*
|
|
7161
|
+
* Tool definitions get cache_control on the last entry (Anthropic's
|
|
7162
|
+
* breakpoint model caches everything up to and including the marked block).
|
|
7163
|
+
*/
|
|
7164
|
+
declare class AnthropicCacheAdapter implements CacheAdapter {
|
|
7165
|
+
readonly provider: "claude";
|
|
7166
|
+
wrapSystemBlock(content: string, stability: StabilityTier): ProviderSystemBlock;
|
|
7167
|
+
wrapTools(tools: ToolDefinition[], stability: StabilityTier): ProviderToolBlock;
|
|
7168
|
+
orderContent(blocks: StabilityTaggedBlock[]): StabilityTaggedBlock[];
|
|
7169
|
+
parseCacheUsage(response: unknown): {
|
|
7170
|
+
cacheCreationTokens: number;
|
|
7171
|
+
cacheReadTokens: number;
|
|
7172
|
+
};
|
|
7173
|
+
}
|
|
7174
|
+
|
|
7175
|
+
/**
|
|
7176
|
+
* OpenAI cache adapter.
|
|
6920
7177
|
*
|
|
6921
|
-
*
|
|
6922
|
-
*
|
|
6923
|
-
*
|
|
7178
|
+
* OpenAI uses automatic prefix-matching for prompt caching -- no explicit
|
|
7179
|
+
* cache directives are needed. The only optimization is content ordering:
|
|
7180
|
+
* static content first, then session, then ephemeral. This maximizes the
|
|
7181
|
+
* stable prefix length that OpenAI's automatic caching can match.
|
|
7182
|
+
*
|
|
7183
|
+
* wrapSystemBlock and wrapTools are passthroughs.
|
|
7184
|
+
*/
|
|
7185
|
+
declare class OpenAICacheAdapter implements CacheAdapter {
|
|
7186
|
+
readonly provider: "openai";
|
|
7187
|
+
wrapSystemBlock(content: string, _stability: StabilityTier): ProviderSystemBlock;
|
|
7188
|
+
wrapTools(tools: ToolDefinition[], _stability: StabilityTier): ProviderToolBlock;
|
|
7189
|
+
orderContent(blocks: StabilityTaggedBlock[]): StabilityTaggedBlock[];
|
|
7190
|
+
parseCacheUsage(response: unknown): {
|
|
7191
|
+
cacheCreationTokens: number;
|
|
7192
|
+
cacheReadTokens: number;
|
|
7193
|
+
};
|
|
7194
|
+
}
|
|
7195
|
+
|
|
7196
|
+
/**
|
|
7197
|
+
* Gemini cache adapter.
|
|
7198
|
+
*
|
|
7199
|
+
* Gemini uses explicit `cachedContents` resources for static content:
|
|
7200
|
+
* - static: marked with cachedContentRef for the orchestrator to resolve
|
|
7201
|
+
* into a real cachedContents/{id} via the Gemini API
|
|
7202
|
+
* - session: passthrough (relies on implicit caching in Gemini 2.5+)
|
|
7203
|
+
* - ephemeral: passthrough
|
|
7204
|
+
*
|
|
7205
|
+
* Tools are passed through unchanged -- Gemini caches tools as part
|
|
7206
|
+
* of the cachedContents resource when applicable.
|
|
7207
|
+
*/
|
|
7208
|
+
declare class GeminiCacheAdapter implements CacheAdapter {
|
|
7209
|
+
readonly provider: "gemini";
|
|
7210
|
+
wrapSystemBlock(content: string, stability: StabilityTier): ProviderSystemBlock;
|
|
7211
|
+
wrapTools(tools: ToolDefinition[], _stability: StabilityTier): ProviderToolBlock;
|
|
7212
|
+
orderContent(blocks: StabilityTaggedBlock[]): StabilityTaggedBlock[];
|
|
7213
|
+
parseCacheUsage(response: unknown): {
|
|
7214
|
+
cacheCreationTokens: number;
|
|
7215
|
+
cacheReadTokens: number;
|
|
7216
|
+
};
|
|
7217
|
+
}
|
|
7218
|
+
|
|
7219
|
+
/**
|
|
7220
|
+
* Reads optional identity fields from `.harness/telemetry.json`.
|
|
7221
|
+
* Returns empty object if the file is missing or malformed.
|
|
6924
7222
|
*/
|
|
7223
|
+
declare function readIdentity(projectRoot: string): TelemetryIdentity;
|
|
6925
7224
|
/**
|
|
6926
|
-
*
|
|
7225
|
+
* Resolves telemetry consent by checking (in order):
|
|
7226
|
+
* 1. DO_NOT_TRACK=1 env var (ecosystem standard)
|
|
7227
|
+
* 2. HARNESS_TELEMETRY_OPTOUT=1 env var
|
|
7228
|
+
* 3. config.enabled (from harness.config.json telemetry section)
|
|
7229
|
+
*
|
|
7230
|
+
* If allowed, reads install ID and optional identity fields.
|
|
6927
7231
|
*/
|
|
7232
|
+
declare function resolveConsent(projectRoot: string, config: TelemetryConfig | undefined): ConsentState;
|
|
6928
7233
|
|
|
6929
7234
|
/**
|
|
6930
|
-
*
|
|
7235
|
+
* Reads or creates a persistent UUIDv4 install ID at `.harness/.install-id`.
|
|
6931
7236
|
*
|
|
6932
|
-
*
|
|
6933
|
-
*
|
|
6934
|
-
* release. Kept only as a fallback for consumers that cannot resolve the CLI
|
|
6935
|
-
* package at runtime.
|
|
7237
|
+
* The ID is anonymous -- it correlates events from the same machine without
|
|
7238
|
+
* containing any PII. Created on first telemetry call, reused thereafter.
|
|
6936
7239
|
*/
|
|
6937
|
-
declare
|
|
7240
|
+
declare function getOrCreateInstallId(projectRoot: string): string;
|
|
7241
|
+
|
|
7242
|
+
/**
|
|
7243
|
+
* Reads adoption.jsonl records and formats them as TelemetryEvent payloads.
|
|
7244
|
+
*
|
|
7245
|
+
* Requires an allowed ConsentState (discriminated union with allowed: true).
|
|
7246
|
+
* Populates OS, Node version, harness version, and optional identity fields.
|
|
7247
|
+
*/
|
|
7248
|
+
declare function collectEvents(projectRoot: string, consent: ConsentState & {
|
|
7249
|
+
allowed: true;
|
|
7250
|
+
}): TelemetryEvent[];
|
|
7251
|
+
|
|
7252
|
+
/**
|
|
7253
|
+
* Sends telemetry events to PostHog HTTP /batch endpoint.
|
|
7254
|
+
*
|
|
7255
|
+
* - 3 attempts with linear backoff (1s, 2s)
|
|
7256
|
+
* - 5s timeout per attempt via AbortSignal.timeout
|
|
7257
|
+
* - Silent failure: never throws, never blocks session teardown
|
|
7258
|
+
*/
|
|
7259
|
+
declare function send(events: TelemetryEvent[], apiKey: string): Promise<void>;
|
|
7260
|
+
|
|
7261
|
+
declare const VERSION = "0.21.3";
|
|
6938
7262
|
|
|
6939
|
-
export { AGENT_DESCRIPTORS, ARCHITECTURE_DESCRIPTOR, type AST, type ActionContext, type ActionEvent, type ActionEventHandler, type ActionEventType, type ActionResult, type ActionSink, type ActionTracker, type ActionType, type AdjustedForecast, AdjustedForecastSchema, 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 CategoryForecast, CategoryForecastSchema, CategorySnapshotSchema, 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 ConfidenceTier, ConfidenceTierSchema, type ConfigError, type ConfigPattern, type Confirmation, ConfirmationSchema, type ConflictReport, ConsoleSink, type ConstraintError, type ConstraintNodeStore, ConstraintRule, type Content, type ContextBundle, type ContextError, type ContextFile, type ContextFilterResult, type ContextScopeOptions, ContributingFeatureSchema, 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_STABILITY_THRESHOLDS, DEFAULT_STATE, DEFAULT_STREAM_INDEX, DESTRUCTIVE_BASH, type DataPoint, 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 Direction, DirectionSchema, 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 EstimatorCoefficients, type EventType, type EvidenceCoverageReport, ExclusionSet, type ExecutorHealth, type Export, type ExportMap, type ExternalSyncOptions, 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, GitHubIssuesSyncAdapter, 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 PilotScoringOptions, type PipelineContext, type PipelineFlags, type PipelineOptions, type PipelineResult, type PrMetadata, PredictionEngine, type PredictionOptions, PredictionOptionsSchema, type RegressionResult as PredictionRegressionResult, RegressionResultSchema as PredictionRegressionResultSchema, type PredictionResult, PredictionResultSchema, type PredictionWarning, PredictionWarningSchema, type PricingCacheFile, type PricingDataset, type PriorReview, ProjectScanner, type PromoteResult, type ProviderDefaults, type PruneResult, type Question, QuestionSchema, REQUIRED_SECTIONS, type ReachabilityNode, RegressionDetector, type RegressionFit, type RegressionReport, type RegressionResult$1 as 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, STATUS_RANK, type SafetyLevel, type ScanConfigFileResult, type ScanConfigFinding, type ScanConfigResult, type ScanResult, type ScoredCandidate, 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 SpecImpactEstimate, SpecImpactEstimateSchema, SpecImpactEstimator, SpecImpactSignalsSchema, type StabilityForecast, StabilityForecastSchema, 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 CategorySnapshot as TimelineCategorySnapshot, type TimelineFile, TimelineFileSchema, TimelineManager, type TimelineSnapshot, TimelineSnapshotSchema, type TokenBudget, type TokenBudgetOverrides, type Trace, type TrackerSyncAdapter, type Transition, TransitionSchema, type TrendLine, TrendLineSchema, type TrendResult, TrendResultSchema, 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, applyRecencyWeights, applySyncChanges, archiveFailures, archiveLearnings, archiveSession, archiveStream, assignFeature, buildDependencyGraph, buildExclusionSet, buildSnapshot, calculateCost, checkDocCoverage, checkEligibility, checkEvidenceCoverage, checkTaint, classifyConfidence, classifyFinding, clearEventHashCache, clearFailuresCache, clearLearningsCache, clearTaint, computeContentHash, 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, fullSync, generateAgentsMap, generateSuggestions, getActionEmitter, getExitCode, getFeedbackConfig, getInjectionPatterns, getModelPrice, getOutline, getParser, getPhaseCategories, getStreamForBranch, getTaintFilePath, getUpdateNotification, goRules, injectionRules, insecureDefaultsRules, isDuplicateFinding, isRegression, isSmallSuggestion, isUpdateCheckEnabled, listActiveSessions, listStreams, listTaintedSessions, loadBudgetedLearnings, loadEvents, loadFailures, loadHandoff, loadIndexEntries, loadPricingData, loadRelevantLearnings, loadSessionSummary, loadState, loadStreamIndex, logAgentAction, mapInjectionFindings, mapSecurityFindings, mapSecuritySeverity, mcpRules, migrateToStreams, networkRules, nodeRules, normalizeLearningContent, parseCCRecords, parseDateFromEntry, parseDiff, parseFile, parseFrontmatter, parseHarnessIgnore, parseLiteLLMData, parseManifest, parseRoadmap, parseSecurityConfig, parseSize, pathTraversalRules, previewFix, projectValue, promoteSessionLearnings, pruneLearnings, reactRules, readCheckState, readCostRecords, readLockfile, readSessionSection, readSessionSections, readTaint, removeContributions, removeProvenance, requestMultiplePeerReviews, requestPeerReview, resetFeedbackConfig, resetParserCache, resolveFileToLayer, resolveModelTier, resolveReverseStatus, resolveRuleSeverity, resolveSessionDir, resolveStreamPath, resolveThresholds, runAll, runArchitectureAgent, runBugDetectionAgent, runCIChecks, runComplianceAgent, runMechanicalChecks, runMechanicalGate, runMultiTurnPipeline, runPipeline, runReviewPipeline, runSecurityAgent, saveHandoff, saveState, saveStreamIndex, scanForInjection, scopeContext, scoreRoadmapCandidates, searchSymbols, secretRules, serializeRoadmap, setActiveStream, sharpEdgesRules, shouldRunCheck, spawnBackgroundCheck, syncConstraintNodes, syncFromExternal, syncRoadmap, syncToExternal, tagUncitedFindings, touchStream, trackAction, unfoldRange, unfoldSymbol, updateSessionEntryStatus, updateSessionIndex, validateAgentsMap, validateBoundaries, validateCommitMessage, validateConfig, validateDependencies, validateFileStructure, validateFindings, validateKnowledgeMap, validatePatternConfig, violationId, weeksUntilThreshold, weightedLinearRegression, writeConfig, writeLockfile, writeSessionSummary, writeTaint, xssRules };
|
|
7263
|
+
export { AGENT_DESCRIPTORS, ARCHITECTURE_DESCRIPTOR, type AST, type ActionContext, type ActionEvent, type ActionEventHandler, type ActionEventType, type ActionResult, type ActionSink, type ActionTracker, type ActionType, type AdjustedForecast, AdjustedForecastSchema, type AgentAction, AgentActionEmitter, type AgentExecutor, type AgentMapLink, type AgentMapSection, type AgentMapValidation, type AgentProcess, type AgentReviewResult, type AgentType, type AgentsMapConfig, AnthropicCacheAdapter, 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 CacheAdapter, type CategoryForecast, CategoryForecastSchema, CategorySnapshotSchema, 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, CompactionPipeline, type CompactionStrategy, ComplexityCollector, type ComplexityConfig, type ComplexityReport, type ComplexityThresholds, type ComplexityViolation, type ConfidenceTier, ConfidenceTierSchema, type ConfigError, type ConfigPattern, type Confirmation, ConfirmationSchema, type ConflictReport, ConsoleSink, type ConstraintError, type ConstraintNodeStore, ConstraintRule, type Content, type ContextBundle, type ContextError, type ContextFile, type ContextFilterResult, type ContextScopeOptions, ContributingFeatureSchema, 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_STABILITY_THRESHOLDS, DEFAULT_STATE, DEFAULT_STREAM_INDEX, DEFAULT_TOKEN_BUDGET, DESTRUCTIVE_BASH, type DailyAdoption, type DataPoint, 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 Direction, DirectionSchema, 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 EstimatorCoefficients, type EventType, type EvidenceCoverageReport, ExclusionSet, type ExecutorHealth, type Export, type ExportMap, type ExternalSyncOptions, 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, GeminiCacheAdapter, type GenerationSection, type GitHubInlineComment, GitHubIssuesSyncAdapter, 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, OpenAICacheAdapter, type OrphanedDep, type OutlineResult, type PackedEnvelope, type ParseError, type ParsedFile, type PatternConfig, PatternConfigSchema, type PatternMatch, type PatternReport, type PatternViolation, type PeerReview, type PeerReviewOptions, type PilotScoringOptions, type PipelineContext, type PipelineFlags, type PipelineOptions, type PipelineResult, type PrMetadata, PredictionEngine, type PredictionOptions, PredictionOptionsSchema, type RegressionResult as PredictionRegressionResult, RegressionResultSchema as PredictionRegressionResultSchema, type PredictionResult, PredictionResultSchema, type PredictionWarning, PredictionWarningSchema, type PricingCacheFile, type PricingDataset, type PriorReview, ProjectScanner, type PromoteResult, type ProviderDefaults, type ProviderSystemBlock, type ProviderToolBlock, type PruneResult, type Question, QuestionSchema, REQUIRED_SECTIONS, type ReachabilityNode, RegressionDetector, type RegressionFit, type RegressionReport, type RegressionResult$1 as 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, STATUS_RANK, type SafetyLevel, type ScanConfigFileResult, type ScanConfigFinding, type ScanConfigResult, type ScanResult, type ScoredCandidate, 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 SpecImpactEstimate, SpecImpactEstimateSchema, SpecImpactEstimator, SpecImpactSignalsSchema, type StabilityForecast, StabilityForecastSchema, type StabilityTaggedBlock, type StaleConstraint, type StepExecutor, type StreamIndex, StreamIndexSchema, type StreamInfo, StreamInfoSchema, StructuralStrategy, 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 CategorySnapshot as TimelineCategorySnapshot, type TimelineFile, TimelineFileSchema, TimelineManager, type TimelineSnapshot, TimelineSnapshotSchema, type TokenBudget, type TokenBudgetOverrides, type ToolDefinition, type Trace, type TrackerSyncAdapter, type Transition, TransitionSchema, type TrendLine, TrendLineSchema, type TrendResult, TrendResultSchema, TruncationStrategy, type TurnExecutor, TypeScriptParser, type UnfoldResult, type UnusedImport, type UpdateCheckState, VERSION, type ValidateFindingsOptions, type ValidationError, type WorkflowPhase, addProvenance, agentConfigRules, aggregateByDay as aggregateAdoptionByDay, aggregateByDay$1 as aggregateByDay, aggregateBySession, aggregateBySkill, analyzeDiff, analyzeLearningPatterns, appendFailure, appendLearning, appendSessionEntry, applyFixes, applyHotspotDowngrade, applyRecencyWeights, applySyncChanges, archiveFailures, archiveLearnings, archiveSession, archiveStream, assignFeature, buildDependencyGraph, buildExclusionSet, buildSnapshot, calculateCost, checkDocCoverage, checkEligibility, checkEvidenceCoverage, checkTaint, classifyConfidence, classifyFinding, clearEventHashCache, clearFailuresCache, clearLearningsCache, clearTaint, collectEvents, computeContentHash, 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, estimateTokens, executeWorkflow, expressRules, extractBundle, extractIndexEntry, extractMarkdownLinks, extractSections, fanOutReview, formatEventTimeline, formatFindingBlock, formatGitHubComment, formatGitHubSummary, formatOutline, formatTerminalOutput, fullSync, generateAgentsMap, generateSuggestions, getActionEmitter, getExitCode, getFeedbackConfig, getInjectionPatterns, getModelPrice, getOrCreateInstallId, getOutline, getParser, getPhaseCategories, getStreamForBranch, getTaintFilePath, getUpdateNotification, goRules, injectionRules, insecureDefaultsRules, isDuplicateFinding, isRegression, isSmallSuggestion, isUpdateCheckEnabled, listActiveSessions, listStreams, listTaintedSessions, loadBudgetedLearnings, loadEvents, loadFailures, loadHandoff, loadIndexEntries, loadPricingData, loadRelevantLearnings, loadSessionSummary, loadState, loadStreamIndex, logAgentAction, mapInjectionFindings, mapSecurityFindings, mapSecuritySeverity, mcpRules, migrateToStreams, networkRules, nodeRules, normalizeLearningContent, parseCCRecords, parseDateFromEntry, parseDiff, parseFile, parseFrontmatter, parseHarnessIgnore, parseLiteLLMData, parseManifest, parseRoadmap, parseSecurityConfig, parseSize, pathTraversalRules, previewFix, projectValue, promoteSessionLearnings, pruneLearnings, reactRules, readAdoptionRecords, readCheckState, readCostRecords, readIdentity, readLockfile, readSessionSection, readSessionSections, readTaint, removeContributions, removeProvenance, requestMultiplePeerReviews, requestPeerReview, resetFeedbackConfig, resetParserCache, resolveConsent, resolveFileToLayer, resolveModelTier, resolveReverseStatus, resolveRuleSeverity, resolveSessionDir, resolveStability, resolveStreamPath, resolveThresholds, runAll, runArchitectureAgent, runBugDetectionAgent, runCIChecks, runComplianceAgent, runMechanicalChecks, runMechanicalGate, runMultiTurnPipeline, runPipeline, runReviewPipeline, runSecurityAgent, saveHandoff, saveState, saveStreamIndex, scanForInjection, scopeContext, scoreRoadmapCandidates, searchSymbols, secretRules, send, serializeEnvelope, serializeRoadmap, setActiveStream, sharpEdgesRules, shouldRunCheck, spawnBackgroundCheck, syncConstraintNodes, syncFromExternal, syncRoadmap, syncToExternal, tagUncitedFindings, topSkills, touchStream, trackAction, unfoldRange, unfoldSymbol, updateSessionEntryStatus, updateSessionIndex, validateAgentsMap, validateBoundaries, validateCommitMessage, validateConfig, validateDependencies, validateFileStructure, validateFindings, validateKnowledgeMap, validatePatternConfig, violationId, weeksUntilThreshold, weightedLinearRegression, writeConfig, writeLockfile, writeSessionSummary, writeTaint, xssRules };
|