@harness-engineering/core 0.26.3 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analyzer-VY6DJVOU.mjs +8 -0
- package/dist/architecture/matchers.d.mts +1 -1
- package/dist/architecture/matchers.d.ts +1 -1
- package/dist/architecture/matchers.mjs +4 -1
- package/dist/chunk-7P6ASYW6.mjs +9 -0
- package/dist/chunk-BTUDWWB4.mjs +1729 -0
- package/dist/chunk-FYTJQ2ZY.mjs +1171 -0
- package/dist/chunk-IIEDD47I.mjs +125 -0
- package/dist/{chunk-JIOBXIVB.mjs → chunk-MUWJHO2S.mjs} +600 -1886
- package/dist/chunk-XKLVJIPL.mjs +261 -0
- package/dist/index.d.mts +71 -30
- package/dist/index.d.ts +71 -30
- package/dist/index.js +7332 -6795
- package/dist/index.mjs +1058 -2796
- package/dist/timeline-manager-FPYKJRHR.mjs +8 -0
- package/package.json +2 -2
- package/dist/{matchers-DSibUtbV.d.mts → matchers-OE6gO1nh.d.mts} +6 -6
- package/dist/{matchers-DSibUtbV.d.ts → matchers-OE6gO1nh.d.ts} +6 -6
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ArchMetricCategorySchema
|
|
3
|
+
} from "./chunk-IIEDD47I.mjs";
|
|
4
|
+
|
|
5
|
+
// src/architecture/timeline-manager.ts
|
|
6
|
+
import { readFileSync, writeFileSync, renameSync, mkdirSync, existsSync } from "fs";
|
|
7
|
+
import { randomBytes } from "crypto";
|
|
8
|
+
import { join, dirname } from "path";
|
|
9
|
+
|
|
10
|
+
// src/architecture/timeline-types.ts
|
|
11
|
+
import { z } from "zod";
|
|
12
|
+
var CategorySnapshotSchema = z.object({
|
|
13
|
+
/** Aggregate metric value (e.g., violation count, avg complexity) */
|
|
14
|
+
value: z.number(),
|
|
15
|
+
/** Count of violations in this category */
|
|
16
|
+
violationCount: z.number()
|
|
17
|
+
});
|
|
18
|
+
var TimelineSnapshotSchema = z.object({
|
|
19
|
+
/** ISO 8601 timestamp of capture */
|
|
20
|
+
capturedAt: z.string().datetime(),
|
|
21
|
+
/** Git commit hash at capture time */
|
|
22
|
+
commitHash: z.string(),
|
|
23
|
+
/** Composite stability score (0-100, higher is healthier) */
|
|
24
|
+
stabilityScore: z.number().min(0).max(100),
|
|
25
|
+
/** Per-category metric aggregates */
|
|
26
|
+
metrics: z.record(ArchMetricCategorySchema, CategorySnapshotSchema)
|
|
27
|
+
});
|
|
28
|
+
var TimelineFileSchema = z.object({
|
|
29
|
+
version: z.literal(1),
|
|
30
|
+
snapshots: z.array(TimelineSnapshotSchema)
|
|
31
|
+
});
|
|
32
|
+
var TrendLineSchema = z.object({
|
|
33
|
+
/** Current value */
|
|
34
|
+
current: z.number(),
|
|
35
|
+
/** Previous value (from comparison snapshot) */
|
|
36
|
+
previous: z.number(),
|
|
37
|
+
/** Absolute delta (current - previous) */
|
|
38
|
+
delta: z.number(),
|
|
39
|
+
/** Direction indicator */
|
|
40
|
+
direction: z.enum(["improving", "stable", "declining"])
|
|
41
|
+
});
|
|
42
|
+
var TrendResultSchema = z.object({
|
|
43
|
+
/** Overall stability trend */
|
|
44
|
+
stability: TrendLineSchema,
|
|
45
|
+
/** Per-category trends */
|
|
46
|
+
categories: z.record(ArchMetricCategorySchema, TrendLineSchema),
|
|
47
|
+
/** Number of snapshots analyzed */
|
|
48
|
+
snapshotCount: z.number(),
|
|
49
|
+
/** Time range covered */
|
|
50
|
+
from: z.string(),
|
|
51
|
+
to: z.string()
|
|
52
|
+
});
|
|
53
|
+
var DEFAULT_STABILITY_THRESHOLDS = {
|
|
54
|
+
"circular-deps": 5,
|
|
55
|
+
"layer-violations": 10,
|
|
56
|
+
complexity: 100,
|
|
57
|
+
coupling: 2,
|
|
58
|
+
"forbidden-imports": 5,
|
|
59
|
+
"module-size": 10,
|
|
60
|
+
"dependency-depth": 10
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
// src/architecture/timeline-manager.ts
|
|
64
|
+
var ALL_CATEGORIES = ArchMetricCategorySchema.options;
|
|
65
|
+
var TimelineManager = class {
|
|
66
|
+
timelinePath;
|
|
67
|
+
constructor(rootDir) {
|
|
68
|
+
this.timelinePath = join(rootDir, ".harness", "arch", "timeline.json");
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Load timeline from disk.
|
|
72
|
+
* Returns empty TimelineFile if file does not exist or is invalid.
|
|
73
|
+
*/
|
|
74
|
+
load() {
|
|
75
|
+
if (!existsSync(this.timelinePath)) {
|
|
76
|
+
return { version: 1, snapshots: [] };
|
|
77
|
+
}
|
|
78
|
+
try {
|
|
79
|
+
const raw = readFileSync(this.timelinePath, "utf-8");
|
|
80
|
+
const data = JSON.parse(raw);
|
|
81
|
+
const parsed = TimelineFileSchema.safeParse(data);
|
|
82
|
+
if (!parsed.success) {
|
|
83
|
+
console.error(
|
|
84
|
+
`Timeline validation failed for ${this.timelinePath}:`,
|
|
85
|
+
parsed.error.format()
|
|
86
|
+
);
|
|
87
|
+
return { version: 1, snapshots: [] };
|
|
88
|
+
}
|
|
89
|
+
return parsed.data;
|
|
90
|
+
} catch (error) {
|
|
91
|
+
console.error(`Error loading timeline from ${this.timelinePath}:`, error);
|
|
92
|
+
return { version: 1, snapshots: [] };
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Save timeline to disk using atomic write (temp file + rename).
|
|
97
|
+
* Creates parent directories if they do not exist.
|
|
98
|
+
*/
|
|
99
|
+
save(timeline) {
|
|
100
|
+
const dir = dirname(this.timelinePath);
|
|
101
|
+
if (!existsSync(dir)) {
|
|
102
|
+
mkdirSync(dir, { recursive: true });
|
|
103
|
+
}
|
|
104
|
+
const tmp = this.timelinePath + "." + randomBytes(4).toString("hex") + ".tmp";
|
|
105
|
+
writeFileSync(tmp, JSON.stringify(timeline, null, 2));
|
|
106
|
+
renameSync(tmp, this.timelinePath);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Capture a new snapshot from current metric results.
|
|
110
|
+
* Aggregates MetricResult[] by category, computes stability score,
|
|
111
|
+
* appends to timeline (or replaces if same commitHash), and saves.
|
|
112
|
+
*/
|
|
113
|
+
capture(results, commitHash) {
|
|
114
|
+
const metrics = this.aggregateByCategory(results);
|
|
115
|
+
const stabilityScore = this.computeStabilityScore(metrics);
|
|
116
|
+
const snapshot = {
|
|
117
|
+
capturedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
118
|
+
commitHash,
|
|
119
|
+
stabilityScore,
|
|
120
|
+
metrics
|
|
121
|
+
};
|
|
122
|
+
const timeline = this.load();
|
|
123
|
+
const lastIndex = timeline.snapshots.length - 1;
|
|
124
|
+
if (lastIndex >= 0 && timeline.snapshots[lastIndex].commitHash === commitHash) {
|
|
125
|
+
timeline.snapshots[lastIndex] = snapshot;
|
|
126
|
+
} else {
|
|
127
|
+
timeline.snapshots.push(snapshot);
|
|
128
|
+
}
|
|
129
|
+
this.save(timeline);
|
|
130
|
+
return snapshot;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Compute trends between snapshots over a window.
|
|
134
|
+
* @param options.last - Number of recent snapshots to analyze (default: 10)
|
|
135
|
+
* @param options.since - ISO date string to filter snapshots from
|
|
136
|
+
*/
|
|
137
|
+
trends(options) {
|
|
138
|
+
const timeline = this.load();
|
|
139
|
+
let snapshots = timeline.snapshots;
|
|
140
|
+
if (options?.since) {
|
|
141
|
+
const sinceDate = new Date(options.since);
|
|
142
|
+
snapshots = snapshots.filter((s) => new Date(s.capturedAt) >= sinceDate);
|
|
143
|
+
}
|
|
144
|
+
if (options?.last && snapshots.length > options.last) {
|
|
145
|
+
snapshots = snapshots.slice(-options.last);
|
|
146
|
+
}
|
|
147
|
+
if (snapshots.length === 0) {
|
|
148
|
+
return this.emptyTrendResult();
|
|
149
|
+
}
|
|
150
|
+
if (snapshots.length === 1) {
|
|
151
|
+
const only = snapshots[0];
|
|
152
|
+
const m = only.metrics;
|
|
153
|
+
return {
|
|
154
|
+
stability: this.buildTrendLine(only.stabilityScore, only.stabilityScore, true),
|
|
155
|
+
categories: this.buildCategoryTrends(m, m),
|
|
156
|
+
snapshotCount: 1,
|
|
157
|
+
from: only.capturedAt,
|
|
158
|
+
to: only.capturedAt
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
const first = snapshots[0];
|
|
162
|
+
const last = snapshots[snapshots.length - 1];
|
|
163
|
+
return {
|
|
164
|
+
stability: this.buildTrendLine(last.stabilityScore, first.stabilityScore, true),
|
|
165
|
+
categories: this.buildCategoryTrends(
|
|
166
|
+
last.metrics,
|
|
167
|
+
first.metrics
|
|
168
|
+
),
|
|
169
|
+
snapshotCount: snapshots.length,
|
|
170
|
+
from: first.capturedAt,
|
|
171
|
+
to: last.capturedAt
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Compute composite stability score from category metrics.
|
|
176
|
+
* Equal weight across all categories. Score is 0-100 (higher = healthier).
|
|
177
|
+
* health = max(0, 1 - (value / threshold)) per category.
|
|
178
|
+
*/
|
|
179
|
+
computeStabilityScore(metrics, thresholds = DEFAULT_STABILITY_THRESHOLDS) {
|
|
180
|
+
const healthScores = [];
|
|
181
|
+
for (const category of ALL_CATEGORIES) {
|
|
182
|
+
const snapshot = metrics[category];
|
|
183
|
+
if (!snapshot) {
|
|
184
|
+
healthScores.push(1);
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
const threshold = thresholds[category] ?? 10;
|
|
188
|
+
const health = Math.max(0, 1 - snapshot.value / threshold);
|
|
189
|
+
healthScores.push(health);
|
|
190
|
+
}
|
|
191
|
+
const mean = healthScores.reduce((sum, h) => sum + h, 0) / healthScores.length;
|
|
192
|
+
return Math.round(mean * 100);
|
|
193
|
+
}
|
|
194
|
+
// --- Private helpers ---
|
|
195
|
+
aggregateByCategory(results) {
|
|
196
|
+
const metrics = {};
|
|
197
|
+
for (const result of results) {
|
|
198
|
+
const existing = metrics[result.category];
|
|
199
|
+
if (existing) {
|
|
200
|
+
existing.value += result.value;
|
|
201
|
+
existing.violationCount += result.violations.length;
|
|
202
|
+
} else {
|
|
203
|
+
metrics[result.category] = {
|
|
204
|
+
value: result.value,
|
|
205
|
+
violationCount: result.violations.length
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
for (const category of ALL_CATEGORIES) {
|
|
210
|
+
if (!metrics[category]) {
|
|
211
|
+
metrics[category] = { value: 0, violationCount: 0 };
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return metrics;
|
|
215
|
+
}
|
|
216
|
+
buildTrendLine(current, previous, isStabilityScore) {
|
|
217
|
+
const delta = current - previous;
|
|
218
|
+
let direction;
|
|
219
|
+
if (Math.abs(delta) < 2) {
|
|
220
|
+
direction = "stable";
|
|
221
|
+
} else if (isStabilityScore) {
|
|
222
|
+
direction = delta > 0 ? "improving" : "declining";
|
|
223
|
+
} else {
|
|
224
|
+
direction = delta < 0 ? "improving" : "declining";
|
|
225
|
+
}
|
|
226
|
+
return { current, previous, delta, direction };
|
|
227
|
+
}
|
|
228
|
+
buildCategoryTrends(currentMetrics, previousMetrics) {
|
|
229
|
+
const trends = {};
|
|
230
|
+
for (const category of ALL_CATEGORIES) {
|
|
231
|
+
const current = currentMetrics[category]?.value ?? 0;
|
|
232
|
+
const previous = previousMetrics[category]?.value ?? 0;
|
|
233
|
+
trends[category] = this.buildTrendLine(current, previous, false);
|
|
234
|
+
}
|
|
235
|
+
return trends;
|
|
236
|
+
}
|
|
237
|
+
emptyTrendResult() {
|
|
238
|
+
const zeroLine = { current: 0, previous: 0, delta: 0, direction: "stable" };
|
|
239
|
+
const categories = {};
|
|
240
|
+
for (const category of ALL_CATEGORIES) {
|
|
241
|
+
categories[category] = { ...zeroLine };
|
|
242
|
+
}
|
|
243
|
+
return {
|
|
244
|
+
stability: { ...zeroLine },
|
|
245
|
+
categories,
|
|
246
|
+
snapshotCount: 0,
|
|
247
|
+
from: "",
|
|
248
|
+
to: ""
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
export {
|
|
254
|
+
CategorySnapshotSchema,
|
|
255
|
+
TimelineSnapshotSchema,
|
|
256
|
+
TimelineFileSchema,
|
|
257
|
+
TrendLineSchema,
|
|
258
|
+
TrendResultSchema,
|
|
259
|
+
DEFAULT_STABILITY_THRESHOLDS,
|
|
260
|
+
TimelineManager
|
|
261
|
+
};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Result, LoadingLevel, SkillContextBudget, SessionSectionName, SessionEntry, SessionSections, WorkflowStep, WorkflowStepResult, Workflow, WorkflowResult, SkillLifecycleHooks, SkillContext, SkillResult, TurnContext, CICheckName, CIFailOnSeverity, CICheckReport, RoadmapFeature, ExternalTicket, ExternalTicketState, TrackerComment, TrackerSyncConfig, CINotifyOptions, Roadmap, FeatureStatus, SyncResult, Priority, ModelPricing, UsageRecord, DailyUsage, SessionUsage, SkillInvocationRecord, SkillAdoptionSummary, StabilityTier, TelemetryIdentity, TelemetryConfig, ConsentState, TelemetryEvent, PromptCacheStats, SolutionCategory, SanitizedResult, PulseConfig, PulseAdapter, PulseWindow } from '@harness-engineering/types';
|
|
1
|
+
import { Result, LoadingLevel, SkillContextBudget, InsightsKey, InsightsReport, SessionSectionName, SessionEntry, SessionSections, WorkflowStep, WorkflowStepResult, Workflow, WorkflowResult, SkillLifecycleHooks, SkillContext, SkillResult, TurnContext, CICheckName, CIFailOnSeverity, CICheckReport, RoadmapFeature, ExternalTicket, ExternalTicketState, TrackerComment, TrackerSyncConfig, CINotifyOptions, Roadmap, FeatureStatus, SyncResult, Priority, ModelPricing, UsageRecord, DailyUsage, SessionUsage, SkillInvocationRecord, SkillAdoptionSummary, NotificationsConfig, StabilityTier, TelemetryIdentity, TelemetryConfig, ConsentState, TelemetryEvent, PromptCacheStats, SolutionCategory, SanitizedResult, PulseConfig, PulseAdapter, PulseWindow } from '@harness-engineering/types';
|
|
2
2
|
export * from '@harness-engineering/types';
|
|
3
3
|
export { BlockerRef, BugTrackCategory, Issue, IssueTrackerClient, KnowledgeTrackCategory, PulseAdapter, PulseConfig, PulseDbSource, PulseRunStatus, PulseRunStatusType, PulseSources, PulseWindow, SanitizeFn, SanitizedResult, SolutionCategory, SolutionDocFrontmatter, SolutionTrack, TrackerConfig } from '@harness-engineering/types';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
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, V as ViolationHistory, e as Violation, f as ViolationSnapshot, E as EmergenceResult } from './matchers-
|
|
6
|
-
export { g as ArchBaselineSchema, h as ArchConfigSchema, i as ArchDiffResultSchema, j as ArchHandle, k as ArchMetricCategorySchema, l as ArchitectureOptions, m as CategoryBaseline, n as CategoryBaselineSchema, o as CategoryRegression, p as CategoryRegressionSchema, q as ConstraintRuleSchema, r as EmergenceConfidence, s as EmergenceConfidenceSchema, t as EmergenceResultSchema, u as EmergentConstraintSuggestion, v as EmergentConstraintSuggestionSchema, w as MetricResultSchema, x as ThresholdConfigSchema, y as ViolationHistorySchema, z as ViolationSchema, B as ViolationSnapshotSchema, D as archMatchers, F as archModule, G as architecture } from './matchers-
|
|
5
|
+
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, V as ViolationHistory, e as Violation, f as ViolationSnapshot, E as EmergenceResult } from './matchers-OE6gO1nh.mjs';
|
|
6
|
+
export { g as ArchBaselineSchema, h as ArchConfigSchema, i as ArchDiffResultSchema, j as ArchHandle, k as ArchMetricCategorySchema, l as ArchitectureOptions, m as CategoryBaseline, n as CategoryBaselineSchema, o as CategoryRegression, p as CategoryRegressionSchema, q as ConstraintRuleSchema, r as EmergenceConfidence, s as EmergenceConfidenceSchema, t as EmergenceResultSchema, u as EmergentConstraintSuggestion, v as EmergentConstraintSuggestionSchema, w as MetricResultSchema, x as ThresholdConfigSchema, y as ViolationHistorySchema, z as ViolationSchema, B as ViolationSnapshotSchema, D as archMatchers, F as archModule, G as architecture } from './matchers-OE6gO1nh.mjs';
|
|
7
7
|
import Parser from 'web-tree-sitter';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -2986,6 +2986,15 @@ declare const EntropyConfigSchema: z.ZodObject<{
|
|
|
2986
2986
|
*/
|
|
2987
2987
|
declare function validatePatternConfig(config: unknown): Result<PatternConfig, EntropyError>;
|
|
2988
2988
|
|
|
2989
|
+
interface ComposeInsightsOptions {
|
|
2990
|
+
/** Top-level keys to skip entirely. */
|
|
2991
|
+
skip?: InsightsKey[];
|
|
2992
|
+
/** Per-component timeout — currently used as a soft signal, not enforced (analyzers are sync). */
|
|
2993
|
+
perAnalyzerTimeoutMs?: number;
|
|
2994
|
+
}
|
|
2995
|
+
/** Top-level composer. Runs each enabled block in parallel and returns the assembled report. */
|
|
2996
|
+
declare function composeInsights(projectPath: string, opts?: ComposeInsightsOptions): Promise<InsightsReport>;
|
|
2997
|
+
|
|
2989
2998
|
interface BenchmarkResult {
|
|
2990
2999
|
name: string;
|
|
2991
3000
|
file: string;
|
|
@@ -4057,24 +4066,24 @@ declare const SpecImpactEstimateSchema: z.ZodObject<{
|
|
|
4057
4066
|
}>;
|
|
4058
4067
|
deltas: z.ZodOptional<z.ZodRecord<z.ZodEnum<["circular-deps", "layer-violations", "complexity", "coupling", "forbidden-imports", "module-size", "dependency-depth"]>, z.ZodNumber>>;
|
|
4059
4068
|
}, "strip", z.ZodTypeAny, {
|
|
4060
|
-
specPath: string;
|
|
4061
|
-
featureName: string;
|
|
4062
4069
|
signals: {
|
|
4063
4070
|
newFileCount: number;
|
|
4064
4071
|
affectedLayers: string[];
|
|
4065
4072
|
newDependencies: number;
|
|
4066
4073
|
phaseCount: number;
|
|
4067
4074
|
};
|
|
4068
|
-
deltas?: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number>> | undefined;
|
|
4069
|
-
}, {
|
|
4070
4075
|
specPath: string;
|
|
4071
4076
|
featureName: string;
|
|
4077
|
+
deltas?: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number>> | undefined;
|
|
4078
|
+
}, {
|
|
4072
4079
|
signals: {
|
|
4073
4080
|
newFileCount: number;
|
|
4074
4081
|
affectedLayers: string[];
|
|
4075
4082
|
newDependencies: number;
|
|
4076
4083
|
phaseCount: number;
|
|
4077
4084
|
};
|
|
4085
|
+
specPath: string;
|
|
4086
|
+
featureName: string;
|
|
4078
4087
|
deltas?: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number>> | undefined;
|
|
4079
4088
|
}>;
|
|
4080
4089
|
type SpecImpactEstimate = z.infer<typeof SpecImpactEstimateSchema>;
|
|
@@ -4663,6 +4672,14 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4663
4672
|
specPath: string;
|
|
4664
4673
|
}[];
|
|
4665
4674
|
}>>;
|
|
4675
|
+
warnings: {
|
|
4676
|
+
message: string;
|
|
4677
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4678
|
+
severity: "warning" | "info" | "critical";
|
|
4679
|
+
confidence: "high" | "medium" | "low";
|
|
4680
|
+
contributingFeatures: string[];
|
|
4681
|
+
weeksUntil: number;
|
|
4682
|
+
}[];
|
|
4666
4683
|
generatedAt: string;
|
|
4667
4684
|
snapshotsUsed: number;
|
|
4668
4685
|
timelineRange: {
|
|
@@ -4677,14 +4694,6 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4677
4694
|
projected8w: number;
|
|
4678
4695
|
projected12w: number;
|
|
4679
4696
|
};
|
|
4680
|
-
warnings: {
|
|
4681
|
-
message: string;
|
|
4682
|
-
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4683
|
-
severity: "warning" | "info" | "critical";
|
|
4684
|
-
confidence: "high" | "medium" | "low";
|
|
4685
|
-
contributingFeatures: string[];
|
|
4686
|
-
weeksUntil: number;
|
|
4687
|
-
}[];
|
|
4688
4697
|
}, {
|
|
4689
4698
|
categories: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
|
|
4690
4699
|
baseline: {
|
|
@@ -4727,6 +4736,14 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4727
4736
|
specPath: string;
|
|
4728
4737
|
}[];
|
|
4729
4738
|
}>>;
|
|
4739
|
+
warnings: {
|
|
4740
|
+
message: string;
|
|
4741
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4742
|
+
severity: "warning" | "info" | "critical";
|
|
4743
|
+
confidence: "high" | "medium" | "low";
|
|
4744
|
+
contributingFeatures: string[];
|
|
4745
|
+
weeksUntil: number;
|
|
4746
|
+
}[];
|
|
4730
4747
|
generatedAt: string;
|
|
4731
4748
|
snapshotsUsed: number;
|
|
4732
4749
|
timelineRange: {
|
|
@@ -4741,14 +4758,6 @@ declare const PredictionResultSchema: z.ZodObject<{
|
|
|
4741
4758
|
projected8w: number;
|
|
4742
4759
|
projected12w: number;
|
|
4743
4760
|
};
|
|
4744
|
-
warnings: {
|
|
4745
|
-
message: string;
|
|
4746
|
-
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
4747
|
-
severity: "warning" | "info" | "critical";
|
|
4748
|
-
confidence: "high" | "medium" | "low";
|
|
4749
|
-
contributingFeatures: string[];
|
|
4750
|
-
weeksUntil: number;
|
|
4751
|
-
}[];
|
|
4752
4761
|
}>;
|
|
4753
4762
|
type PredictionResult = z.infer<typeof PredictionResultSchema>;
|
|
4754
4763
|
declare const PredictionOptionsSchema: z.ZodObject<{
|
|
@@ -5052,12 +5061,12 @@ declare const HandoffSchema: z.ZodObject<{
|
|
|
5052
5061
|
skillsPath: string;
|
|
5053
5062
|
}>>;
|
|
5054
5063
|
}, "strip", z.ZodTypeAny, {
|
|
5064
|
+
timestamp: string;
|
|
5065
|
+
summary: string;
|
|
5055
5066
|
pending: string[];
|
|
5056
5067
|
completed: string[];
|
|
5057
|
-
timestamp: string;
|
|
5058
5068
|
fromSkill: string;
|
|
5059
5069
|
phase: string;
|
|
5060
|
-
summary: string;
|
|
5061
5070
|
concerns: string[];
|
|
5062
5071
|
decisions: {
|
|
5063
5072
|
what: string;
|
|
@@ -5073,9 +5082,9 @@ declare const HandoffSchema: z.ZodObject<{
|
|
|
5073
5082
|
} | undefined;
|
|
5074
5083
|
}, {
|
|
5075
5084
|
timestamp: string;
|
|
5085
|
+
summary: string;
|
|
5076
5086
|
fromSkill: string;
|
|
5077
5087
|
phase: string;
|
|
5078
|
-
summary: string;
|
|
5079
5088
|
pending?: string[] | undefined;
|
|
5080
5089
|
completed?: string[] | undefined;
|
|
5081
5090
|
concerns?: string[] | undefined;
|
|
@@ -5644,14 +5653,35 @@ declare function appendSessionEntry(projectPath: string, sessionSlug: string, se
|
|
|
5644
5653
|
*/
|
|
5645
5654
|
declare function updateSessionEntryStatus(projectPath: string, sessionSlug: string, section: SessionSectionName, entryId: string, newStatus: SessionEntry['status']): Promise<Result<SessionEntry, Error>>;
|
|
5646
5655
|
|
|
5656
|
+
/**
|
|
5657
|
+
* Hook invoked after a session directory has been successfully moved into
|
|
5658
|
+
* `.harness/archive/sessions/`. Concrete implementations live in
|
|
5659
|
+
* `@harness-engineering/orchestrator` (Hermes Phase 1 — summary + index).
|
|
5660
|
+
* Failures inside the hook are non-fatal: the archive itself has already
|
|
5661
|
+
* succeeded by the time this runs.
|
|
5662
|
+
*/
|
|
5663
|
+
interface ArchiveHooks {
|
|
5664
|
+
onArchived: (info: {
|
|
5665
|
+
sessionId: string;
|
|
5666
|
+
/** Absolute path of the new archived directory. */
|
|
5667
|
+
archiveDir: string;
|
|
5668
|
+
projectPath: string;
|
|
5669
|
+
}) => Promise<void> | void;
|
|
5670
|
+
}
|
|
5671
|
+
interface ArchiveSessionOptions {
|
|
5672
|
+
hooks?: ArchiveHooks;
|
|
5673
|
+
}
|
|
5647
5674
|
/**
|
|
5648
5675
|
* Archives a session by moving its directory to
|
|
5649
5676
|
* `.harness/archive/sessions/<slug>-<date>`.
|
|
5650
5677
|
*
|
|
5651
5678
|
* The original session directory is removed. If an archive with the same
|
|
5652
5679
|
* date already exists, a numeric counter is appended.
|
|
5680
|
+
*
|
|
5681
|
+
* Optional `options.hooks.onArchived` is called after the move succeeds.
|
|
5682
|
+
* Hook failures are caught and logged; they do not propagate to the caller.
|
|
5653
5683
|
*/
|
|
5654
|
-
declare function archiveSession(projectPath: string, sessionSlug: string): Promise<Result<void, Error>>;
|
|
5684
|
+
declare function archiveSession(projectPath: string, sessionSlug: string, options?: ArchiveSessionOptions): Promise<Result<void, Error>>;
|
|
5655
5685
|
|
|
5656
5686
|
/** Event types emitted at skill lifecycle points. */
|
|
5657
5687
|
type EventType = 'phase_transition' | 'decision' | 'gate_result' | 'handoff' | 'error' | 'checkpoint';
|
|
@@ -5679,8 +5709,8 @@ declare const SkillEventSchema: z.ZodObject<{
|
|
|
5679
5709
|
}, "strip", z.ZodTypeAny, {
|
|
5680
5710
|
type: "error" | "decision" | "phase_transition" | "gate_result" | "handoff" | "checkpoint";
|
|
5681
5711
|
timestamp: string;
|
|
5682
|
-
skill: string;
|
|
5683
5712
|
summary: string;
|
|
5713
|
+
skill: string;
|
|
5684
5714
|
data?: Record<string, unknown> | undefined;
|
|
5685
5715
|
session?: string | undefined;
|
|
5686
5716
|
refs?: string[] | undefined;
|
|
@@ -5688,8 +5718,8 @@ declare const SkillEventSchema: z.ZodObject<{
|
|
|
5688
5718
|
}, {
|
|
5689
5719
|
type: "error" | "decision" | "phase_transition" | "gate_result" | "handoff" | "checkpoint";
|
|
5690
5720
|
timestamp: string;
|
|
5691
|
-
skill: string;
|
|
5692
5721
|
summary: string;
|
|
5722
|
+
skill: string;
|
|
5693
5723
|
data?: Record<string, unknown> | undefined;
|
|
5694
5724
|
session?: string | undefined;
|
|
5695
5725
|
refs?: string[] | undefined;
|
|
@@ -9018,6 +9048,17 @@ declare function aggregateByDay(records: SkillInvocationRecord[]): DailyAdoption
|
|
|
9018
9048
|
*/
|
|
9019
9049
|
declare function topSkills(records: SkillInvocationRecord[], n: number): SkillAdoptionSummary[];
|
|
9020
9050
|
|
|
9051
|
+
/**
|
|
9052
|
+
* Result wrapper around the parsed `notifications` section of
|
|
9053
|
+
* `harness.config.json`. Returns Ok with an empty `sinks: []` if the
|
|
9054
|
+
* section is absent — allows incremental adoption.
|
|
9055
|
+
*
|
|
9056
|
+
* Hermes Phase 3 spec D4: sink config lives in harness.config.json, not
|
|
9057
|
+
* a separate file, because sinks do not have per-record secrets at rest
|
|
9058
|
+
* (the secret is the env-var, resolved at runtime).
|
|
9059
|
+
*/
|
|
9060
|
+
declare function loadNotificationsConfig(projectRoot: string): Result<NotificationsConfig, Error>;
|
|
9061
|
+
|
|
9021
9062
|
/**
|
|
9022
9063
|
* CompactionStrategy — the shared interface for all compaction strategies.
|
|
9023
9064
|
* Defined here in structural.ts as the foundation type; re-exported from
|
|
@@ -9916,4 +9957,4 @@ declare function assembleCandidateReport(input: AssembleInput): string;
|
|
|
9916
9957
|
|
|
9917
9958
|
declare const VERSION = "0.25.0";
|
|
9918
9959
|
|
|
9919
|
-
export { AGENT_DESCRIPTORS, AGREEMENT_LINE_GAP, ALLOWED_FIELD_KEYS, ALL_SOLUTION_CATEGORIES, ARCHITECTURE_DESCRIPTOR, type AST, type AcquireOptions, type ActionContext, type ActionEvent, type ActionEventHandler, type ActionEventType, type ActionResult, type ActionSink, type ActionTracker, type ActionType, type AdjustedForecast, AdjustedForecastSchema, type AgentAction, AgentActionEmitter, type AgentConfigFallbackReason, type AgentConfigFinding, type AgentConfigOptions, type AgentConfigSeverity, type AgentConfigValidation, type AgentExecutor, type AgentMapLink, type AgentMapSection, type AgentMapValidation, type AgentProcess, type AgentReviewResult, type AgentType, type AgentsMapConfig, type AnnotationIssue, type AnnotationIssueType, AnthropicCacheAdapter, type AppendLearningResult, ArchBaseline, ArchBaselineManager, ArchConfig, ArchDiffResult, ArchMetricCategory, type AssembleInput, BUG_DETECTION_DESCRIPTOR, BUG_TRACK_CATEGORIES, 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 BranchValidationResult, type BranchingConfig, type BrokenLink, type BudgetedLearningsOptions, type Bundle, type BundleConstraints, BundleConstraintsSchema, BundleSchema, CACHE_TTL_MS, CINotifier, COMPLIANCE_DESCRIPTOR, CORROBORATED_AGREEMENT, type CacheAdapter, CacheMetricsRecorder, type CacheMetricsRecorderOptions, 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 CompoundLockHandle, CompoundLockHeldError, type ConfidenceTier, ConfidenceTierSchema, type ConfigError, type ConfigPattern, type Confirmation, ConfirmationSchema, ConflictError, 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_LOADER_CONFIG, DEFAULT_PROVIDER_TIERS, DEFAULT_SECURITY_CONFIG, DEFAULT_STABILITY_THRESHOLDS, DEFAULT_STATE, DEFAULT_STREAM_INDEX, DEFAULT_TOKEN_BUDGET, DESTRUCTIVE_BASH, DOMAIN_BASELINES, 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$1 as Direction, DirectionSchema$1 as DirectionSchema, type DocumentationDrift, type DocumentationFile, type DocumentationGap, type DriftConfig, type DriftReport, EMPTY_SUPPLY_CHAIN, ETagStore, EVIDENCE_SATURATION, EXTENSION_MAP, type EligibilityResult, EmergenceResult, 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, FACTOR_WEIGHTS, type FailureEntry, FailureEntrySchema, type FallbackPricingFile, type FanOutOptions, type FeaturePatch, type FeedbackAgentConfig, type FeedbackConfig, type FeedbackError$1 as FeedbackError, type FileCategory, type FileLessScoredCandidate, FileSink, type FindingLifecycle, FindingLifecycleSchema, type FindingSeverity, type Fix, type FixConfig, type FixResult, type FixType, ForbiddenImportCollector, type ForbiddenImportViolation, type ForbiddenPattern, type GateConfig, GateConfigSchema, type GateResult, GateResultSchema, GeminiCacheAdapter, type GenerateRubricOptions, type GenerationSection, type GitHubInlineComment, GitHubIssuesSyncAdapter, type GitScanOptions, type GraphAdapter, type GraphComplexityData, type GraphCouplingData, type GraphCoverageData, type GraphCriticalPathData, type GraphDependencyData, type GraphHarnessCheckData, type GraphImpactData, type GraphNode, type Handoff, HandoffSchema, type HarnessState, HarnessStateSchema, type HealthCheckResult, type HistoryEvent, type HistoryEventType, type Hotspot$1 as Hotspot, type HotspotContext, type Import, type InjectionFinding, type InjectionPattern, type InjectionSeverity, type InlineReference, type IntegrityReport, type InteractionType, InteractionTypeSchema, type InternalSymbol, type IsoWeek, type JSDocComment, KNOWLEDGE_TRACK_CATEGORIES, LITELLM_PRICING_URL, type LanguageParser, type Layer, type LayerConfig, LayerViolationCollector, type LearningPattern, type LearningsFrontmatter, type LearningsIndexEntry, type LiteLLMModelEntry, type LiteLLMPricingData, type LoadEventsOptions, type LoaderConfig, type Lockfile, type LockfilePackage, LockfilePackageSchema, LockfileSchema, type LogEntry, type LogFilter, MOCK_ADAPTER_NAME, type MakeTrackerConflictBodyOptions, 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, type NewFeatureInput, NoOpExecutor, NoOpSink, NoOpTelemetryAdapter, OTLPExporter, type OTLPExporterOptions, OpenAICacheAdapter, type OrchestratorResult, type OrphanedDep, type OutlineResult, type OverlapDimensions, type OverlapResult, PII_FIELD_DENYLIST, PII_LINE_RE, PII_TOKENS, type PackedEnvelope, type PaginatedSlice, type PaginationMeta, type ParallelGroups, type ParseError, type ParsedFile, type ParsedSection, type ParserLookup, 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 ProtectedRegion, type ProtectedRegionMap, type ProtectionScope, type ProviderDefaults, type ProviderSystemBlock, type ProviderToolBlock, type PruneResult, PulseAdapterAlreadyRegisteredError, PulseConfigSchema, type PulseConfigValidation, PulseDbSourceSchema, PulseSourcesSchema, 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 ReviewStage, type ReviewStrength, type RoadmapMode, type RoadmapModeConfig, type RoadmapModeValidationConfig, type RoadmapTrackerClient, type Rubric, type RubricItem, type RuleOverride, RuleRegistry, type RunCIChecksInput, type RunPipelineOptions, SECURITY_DESCRIPTOR, STALENESS_WARNING_DAYS, STANDALONE_AGREEMENT, STATUS_RANK, type SafetyLevel, type ScanConfigFileResult, type ScanConfigFinding, type ScanConfigResult, type Hotspot as ScanHotspot, type HotspotOptions as ScanHotspotOptions, type ScanResult, type ScannedCommit, type ScoredCandidate, type SearchMatch, type SearchResult, type SecurityCategory, type SecurityCategorySnapshot, SecurityCategorySnapshotSchema, type SecurityConfidence, type SecurityConfig, SecurityConfigSchema, type Direction as SecurityDirection, DirectionSchema as SecurityDirectionSchema, type SecurityFinding, type SecurityRule, SecurityScanner, type SecuritySeverity, type SecurityTimelineFile, SecurityTimelineFileSchema, SecurityTimelineManager, type SecurityTimelineSnapshot, SecurityTimelineSnapshotSchema, type SecurityTrendLine, SecurityTrendLineSchema, type SecurityTrendResult, SecurityTrendResultSchema, type SeedOptions, type SelfReviewConfig, type SessionSummaryData, SharableBoundaryConfigSchema, SharableForbiddenImportSchema, SharableLayerSchema, SharableSecurityRulesSchema, type SizeBudgetConfig, type SizeBudgetReport, type SizeBudgetViolation, type SkillEvent, SkillEventSchema, type SkillExecutor, type SkillLoadPlan, SolutionDocFrontmatterSchema, type SolutionsDirValidation, type SourceFile, type Span, type SpanAttributes, type SpanEvent, SpanKind, type SpecImpactEstimate, SpecImpactEstimateSchema, SpecImpactEstimator, SpecImpactSignalsSchema, type StabilityForecast, StabilityForecastSchema, type StabilityTaggedBlock, type StaleConstraint, type StalenessEntry, type StalenessReport, type StepExecutor, type StrategySeed, type StreamIndex, StreamIndexSchema, type StreamInfo, StreamInfoSchema, StructuralStrategy, type StructureValidation, type Suggestion, type SuggestionReport, type SupplyChainSnapshot, SupplyChainSnapshotSchema, type SupportedLanguage, type SuppressionRecord, type SymbolKind, type SyncChange, type SyncOptions, type TaintCheckResult, type TaintFinding, type TaintState, type TelemetryAdapter, type TelemetryHealth, ThresholdConfig, type TimeRange, type TimeToFixResult, TimeToFixResultSchema, type TimeToFixStats, TimeToFixStatsSchema, type CategorySnapshot as TimelineCategorySnapshot, type TimelineFile, TimelineFileSchema, TimelineManager, type TimelineSnapshot, TimelineSnapshotSchema, type TokenBudget, type TokenBudgetOverrides, type ToolDefinition, type Trace, type TraceSpan, type TrackedFeature, type TrackerClientConfig, type TrackerConflictBody, type TrackerSyncAdapter, type Transition, TransitionSchema, type TrendAttribution, TrendAttributionSchema, type TrendLine, TrendLineSchema, type TrendResult, TrendResultSchema, TruncationStrategy, type TrustScoreOptions, type TurnExecutor, TypeScriptParser, type UnfoldResult, type UnusedImport, type UpdateCheckState, VALIDATION_SCORES, VALID_SCOPES, VERSION, type ValidateFindingsOptions, type ValidationError, Violation, type ViolationCluster, ViolationHistory, ViolationHistoryManager, ViolationSnapshot, WHATWG_BAD_PORTS, type WorkflowPhase, type WritePulseConfigOptions, acquireCompoundLock, addProvenance, agentConfigRules, aggregateByDay as aggregateAdoptionByDay, aggregateByDay$1 as aggregateByDay, aggregateBySession, aggregateBySkill, analyzeDiff, analyzeLearningPatterns, appendFailure, appendLearning, appendSessionEntry, applyFixes, applyHotspotDowngrade, applyRecencyWeights, applySyncChanges, archiveFailures, archiveLearnings, archiveSession, archiveStream, assembleCandidateReport, assembleReport, assertPortUsable, assertSanitized, assignFeature, buildDependencyGraph, buildExclusionSet, buildSnapshot, calculateCacheSavings, calculateCost, checkDocCoverage, checkEligibility, checkEvidenceCoverage, checkOverlap, checkTaint, classifyConfidence, classifyFinding, clearEventHashCache, clearFailuresCache, clearLearningsCache, clearPulseAdapters, clearTaint, clusterViolations, collectEvents, computeContentHash, computeHotspots, computeLexicalSimilarity, computeLoadPlan, computeOverallSeverity, computeScanExitCode, computeTrustScores, computeWindow, configureFeedback, constraintRuleId, contextBudget, contextFilter, countLearningEntries, createBoundaryValidator, createCommentedCodeFixes, createError, createFixes, createForbiddenImportFixes, createOrphanedDepFixes, createParseError, createRegionMap, createSelfReview, createStream, createTrackerClient, crossReferenceUndocumentedFixes, cryptoRules, deduplicateCleanupFindings, deduplicateFindings, deepMergeConstraints, defaultCollectors, defineLayer, deserializationRules, detectChangeType, detectCircularDeps, detectCircularDepsInFiles, detectComplexityViolations, detectCouplingViolations, detectDeadCode, detectDocDrift, detectEmergentConstraints, detectLanguage, detectPatternViolations, detectSizeBudgetViolations, detectStack, detectStaleConstraints, detectStaleLearnings, determineAssessment, diff, emitEvent, estimateTokens, executeWorkflow, expressRules, extractBundle, extractDirectoryScope, extractFileReferences, extractHeadlines, extractIndexEntry, extractLevel, extractMarkdownLinks, extractSections, fanOutReview, findParallelGroups, formatCIReportAsMarkdown, formatEventTimeline, formatFindingBlock, formatGitHubComment, formatGitHubSummary, formatIsoWeek, formatOutline, formatTerminalOutput, fullSync, generateAgentsMap, generateRubric, generateSuggestions, getActionEmitter, getExitCode, getFeedbackConfig, getInjectionPatterns, getModelPrice, getOrCreateInstallId, getOutline, getParser, getPhaseCategories, getPulseAdapter, getRoadmapMode, getStreamForBranch, getTaintFilePath, getTrustLevel, getUpdateNotification, gitScan, goRules, injectionRules, insecureDefaultsRules, invalidateCheckState, isBadPort, isDuplicateFinding, isRegression, isSanitizedResult, isSmallSuggestion, isUpdateCheckEnabled, isoWeek, listActiveSessions, listPulseAdapters, listStreams, listTaintedSessions, loadBudgetedLearnings, loadEvents, loadFailures, loadHandoff, loadIndexEntries, loadPricingData, loadProjectRoadmapMode, loadRelevantLearnings, loadSessionSummary, loadState, loadStreamIndex, loadTrackerClientConfigFromProject, loadTrackerSyncConfig, logAgentAction, makeTrackerConflictBody, mapInjectionFindings, mapSecurityFindings, mapSecuritySeverity, markProtectedFindings, mcpRules, index as migrate, migrateToStreams, networkRules, nodeRules, normalizeLearningContent, normalizeViolationPattern, paginate, parseCCRecords, parseDateFromEntry, parseDiff, parseFile, parseFileRegions, parseFrontmatter, parseHarnessIgnore, parseLiteLLMData, parseLookback, parseManifest, parseProtectedRegions, parseRoadmap, parseSections, parseSecurityConfig, parseSize, pathTraversalRules, previewFix, projectValue, promoteSessionLearnings, pruneLearnings, reactRules, readAdoptionRecords, readCheckState, readCostRecords, readIdentity, readLockfile, readSessionSection, readSessionSections, readTaint, registerMockAdapter, registerPulseAdapter, removeContributions, removeProvenance, requestMultiplePeerReviews, requestPeerReview, resetFeedbackConfig, resetParserCache, resolveConsent, resolveFileToLayer, resolveModelTier, resolveReverseStatus, resolveRuleSeverity, resolveSessionDir, resolveStability, resolveStreamPath, resolveThresholds, runFallbackRules as runAgentConfigFallbackRules, runAll, runArchitectureAgent, runBugDetectionAgent, runCIChecks, runComplianceAgent, runMechanicalChecks, runMechanicalGate, runMultiTurnPipeline, runPipeline, runPulse, runReviewPipeline, runSecurityAgent, saveHandoff, saveState, saveStreamIndex, scanForInjection, scopeContext, scoreRoadmapCandidates, scoreRoadmapCandidatesFileLess, scoreRoadmapCandidatesForMode, searchSymbols, secretRules, securityFindingId, seedFromStrategy, send, serializeEnvelope, serializeRoadmap, setActiveStream, sharpEdgesRules, shouldRunCheck, spawnBackgroundCheck, splitBundlesByStage, stageDomains, suggestCategory, syncConstraintNodes, syncFromExternal, syncRoadmap, syncToExternal, tagUncitedFindings, topSkills, touchStream, trackAction, unfoldRange, unfoldSymbol, updateSessionEntryStatus, updateSessionIndex, validateAgentConfigs, validateAgentsMap, validateBoundaries, validateBranchName, validateCommitMessage, validateConfig, validateDependencies, validateFileStructure, validateFindings, validateKnowledgeMap, validatePatternConfig, validatePulseConfig, validateRoadmapMode, validateSolutionsDir, violationId, weeksUntilThreshold, weightedLinearRegression, writeConfig, writeLockfile, writePulseConfig, writeSessionSummary, writeTaint, xssRules };
|
|
9960
|
+
export { AGENT_DESCRIPTORS, AGREEMENT_LINE_GAP, ALLOWED_FIELD_KEYS, ALL_SOLUTION_CATEGORIES, ARCHITECTURE_DESCRIPTOR, type AST, type AcquireOptions, type ActionContext, type ActionEvent, type ActionEventHandler, type ActionEventType, type ActionResult, type ActionSink, type ActionTracker, type ActionType, type AdjustedForecast, AdjustedForecastSchema, type AgentAction, AgentActionEmitter, type AgentConfigFallbackReason, type AgentConfigFinding, type AgentConfigOptions, type AgentConfigSeverity, type AgentConfigValidation, type AgentExecutor, type AgentMapLink, type AgentMapSection, type AgentMapValidation, type AgentProcess, type AgentReviewResult, type AgentType, type AgentsMapConfig, type AnnotationIssue, type AnnotationIssueType, AnthropicCacheAdapter, type AppendLearningResult, ArchBaseline, ArchBaselineManager, ArchConfig, ArchDiffResult, ArchMetricCategory, type ArchiveHooks, type ArchiveSessionOptions, type AssembleInput, BUG_DETECTION_DESCRIPTOR, BUG_TRACK_CATEGORIES, 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 BranchValidationResult, type BranchingConfig, type BrokenLink, type BudgetedLearningsOptions, type Bundle, type BundleConstraints, BundleConstraintsSchema, BundleSchema, CACHE_TTL_MS, CINotifier, COMPLIANCE_DESCRIPTOR, CORROBORATED_AGREEMENT, type CacheAdapter, CacheMetricsRecorder, type CacheMetricsRecorderOptions, 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 ComposeInsightsOptions, type CompoundLockHandle, CompoundLockHeldError, type ConfidenceTier, ConfidenceTierSchema, type ConfigError, type ConfigPattern, type Confirmation, ConfirmationSchema, ConflictError, 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_LOADER_CONFIG, DEFAULT_PROVIDER_TIERS, DEFAULT_SECURITY_CONFIG, DEFAULT_STABILITY_THRESHOLDS, DEFAULT_STATE, DEFAULT_STREAM_INDEX, DEFAULT_TOKEN_BUDGET, DESTRUCTIVE_BASH, DOMAIN_BASELINES, 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$1 as Direction, DirectionSchema$1 as DirectionSchema, type DocumentationDrift, type DocumentationFile, type DocumentationGap, type DriftConfig, type DriftReport, EMPTY_SUPPLY_CHAIN, ETagStore, EVIDENCE_SATURATION, EXTENSION_MAP, type EligibilityResult, EmergenceResult, 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, FACTOR_WEIGHTS, type FailureEntry, FailureEntrySchema, type FallbackPricingFile, type FanOutOptions, type FeaturePatch, type FeedbackAgentConfig, type FeedbackConfig, type FeedbackError$1 as FeedbackError, type FileCategory, type FileLessScoredCandidate, FileSink, type FindingLifecycle, FindingLifecycleSchema, type FindingSeverity, type Fix, type FixConfig, type FixResult, type FixType, ForbiddenImportCollector, type ForbiddenImportViolation, type ForbiddenPattern, type GateConfig, GateConfigSchema, type GateResult, GateResultSchema, GeminiCacheAdapter, type GenerateRubricOptions, type GenerationSection, type GitHubInlineComment, GitHubIssuesSyncAdapter, type GitScanOptions, type GraphAdapter, type GraphComplexityData, type GraphCouplingData, type GraphCoverageData, type GraphCriticalPathData, type GraphDependencyData, type GraphHarnessCheckData, type GraphImpactData, type GraphNode, type Handoff, HandoffSchema, type HarnessState, HarnessStateSchema, type HealthCheckResult, type HistoryEvent, type HistoryEventType, type Hotspot$1 as Hotspot, type HotspotContext, type Import, type InjectionFinding, type InjectionPattern, type InjectionSeverity, type InlineReference, type IntegrityReport, type InteractionType, InteractionTypeSchema, type InternalSymbol, type IsoWeek, type JSDocComment, KNOWLEDGE_TRACK_CATEGORIES, LITELLM_PRICING_URL, type LanguageParser, type Layer, type LayerConfig, LayerViolationCollector, type LearningPattern, type LearningsFrontmatter, type LearningsIndexEntry, type LiteLLMModelEntry, type LiteLLMPricingData, type LoadEventsOptions, type LoaderConfig, type Lockfile, type LockfilePackage, LockfilePackageSchema, LockfileSchema, type LogEntry, type LogFilter, MOCK_ADAPTER_NAME, type MakeTrackerConflictBodyOptions, 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, type NewFeatureInput, NoOpExecutor, NoOpSink, NoOpTelemetryAdapter, OTLPExporter, type OTLPExporterOptions, OpenAICacheAdapter, type OrchestratorResult, type OrphanedDep, type OutlineResult, type OverlapDimensions, type OverlapResult, PII_FIELD_DENYLIST, PII_LINE_RE, PII_TOKENS, type PackedEnvelope, type PaginatedSlice, type PaginationMeta, type ParallelGroups, type ParseError, type ParsedFile, type ParsedSection, type ParserLookup, 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 ProtectedRegion, type ProtectedRegionMap, type ProtectionScope, type ProviderDefaults, type ProviderSystemBlock, type ProviderToolBlock, type PruneResult, PulseAdapterAlreadyRegisteredError, PulseConfigSchema, type PulseConfigValidation, PulseDbSourceSchema, PulseSourcesSchema, 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 ReviewStage, type ReviewStrength, type RoadmapMode, type RoadmapModeConfig, type RoadmapModeValidationConfig, type RoadmapTrackerClient, type Rubric, type RubricItem, type RuleOverride, RuleRegistry, type RunCIChecksInput, type RunPipelineOptions, SECURITY_DESCRIPTOR, STALENESS_WARNING_DAYS, STANDALONE_AGREEMENT, STATUS_RANK, type SafetyLevel, type ScanConfigFileResult, type ScanConfigFinding, type ScanConfigResult, type Hotspot as ScanHotspot, type HotspotOptions as ScanHotspotOptions, type ScanResult, type ScannedCommit, type ScoredCandidate, type SearchMatch, type SearchResult, type SecurityCategory, type SecurityCategorySnapshot, SecurityCategorySnapshotSchema, type SecurityConfidence, type SecurityConfig, SecurityConfigSchema, type Direction as SecurityDirection, DirectionSchema as SecurityDirectionSchema, type SecurityFinding, type SecurityRule, SecurityScanner, type SecuritySeverity, type SecurityTimelineFile, SecurityTimelineFileSchema, SecurityTimelineManager, type SecurityTimelineSnapshot, SecurityTimelineSnapshotSchema, type SecurityTrendLine, SecurityTrendLineSchema, type SecurityTrendResult, SecurityTrendResultSchema, type SeedOptions, type SelfReviewConfig, type SessionSummaryData, SharableBoundaryConfigSchema, SharableForbiddenImportSchema, SharableLayerSchema, SharableSecurityRulesSchema, type SizeBudgetConfig, type SizeBudgetReport, type SizeBudgetViolation, type SkillEvent, SkillEventSchema, type SkillExecutor, type SkillLoadPlan, SolutionDocFrontmatterSchema, type SolutionsDirValidation, type SourceFile, type Span, type SpanAttributes, type SpanEvent, SpanKind, type SpecImpactEstimate, SpecImpactEstimateSchema, SpecImpactEstimator, SpecImpactSignalsSchema, type StabilityForecast, StabilityForecastSchema, type StabilityTaggedBlock, type StaleConstraint, type StalenessEntry, type StalenessReport, type StepExecutor, type StrategySeed, type StreamIndex, StreamIndexSchema, type StreamInfo, StreamInfoSchema, StructuralStrategy, type StructureValidation, type Suggestion, type SuggestionReport, type SupplyChainSnapshot, SupplyChainSnapshotSchema, type SupportedLanguage, type SuppressionRecord, type SymbolKind, type SyncChange, type SyncOptions, type TaintCheckResult, type TaintFinding, type TaintState, type TelemetryAdapter, type TelemetryHealth, ThresholdConfig, type TimeRange, type TimeToFixResult, TimeToFixResultSchema, type TimeToFixStats, TimeToFixStatsSchema, type CategorySnapshot as TimelineCategorySnapshot, type TimelineFile, TimelineFileSchema, TimelineManager, type TimelineSnapshot, TimelineSnapshotSchema, type TokenBudget, type TokenBudgetOverrides, type ToolDefinition, type Trace, type TraceSpan, type TrackedFeature, type TrackerClientConfig, type TrackerConflictBody, type TrackerSyncAdapter, type Transition, TransitionSchema, type TrendAttribution, TrendAttributionSchema, type TrendLine, TrendLineSchema, type TrendResult, TrendResultSchema, TruncationStrategy, type TrustScoreOptions, type TurnExecutor, TypeScriptParser, type UnfoldResult, type UnusedImport, type UpdateCheckState, VALIDATION_SCORES, VALID_SCOPES, VERSION, type ValidateFindingsOptions, type ValidationError, Violation, type ViolationCluster, ViolationHistory, ViolationHistoryManager, ViolationSnapshot, WHATWG_BAD_PORTS, type WorkflowPhase, type WritePulseConfigOptions, acquireCompoundLock, addProvenance, agentConfigRules, aggregateByDay as aggregateAdoptionByDay, aggregateByDay$1 as aggregateByDay, aggregateBySession, aggregateBySkill, analyzeDiff, analyzeLearningPatterns, appendFailure, appendLearning, appendSessionEntry, applyFixes, applyHotspotDowngrade, applyRecencyWeights, applySyncChanges, archiveFailures, archiveLearnings, archiveSession, archiveStream, assembleCandidateReport, assembleReport, assertPortUsable, assertSanitized, assignFeature, buildDependencyGraph, buildExclusionSet, buildSnapshot, calculateCacheSavings, calculateCost, checkDocCoverage, checkEligibility, checkEvidenceCoverage, checkOverlap, checkTaint, classifyConfidence, classifyFinding, clearEventHashCache, clearFailuresCache, clearLearningsCache, clearPulseAdapters, clearTaint, clusterViolations, collectEvents, composeInsights, computeContentHash, computeHotspots, computeLexicalSimilarity, computeLoadPlan, computeOverallSeverity, computeScanExitCode, computeTrustScores, computeWindow, configureFeedback, constraintRuleId, contextBudget, contextFilter, countLearningEntries, createBoundaryValidator, createCommentedCodeFixes, createError, createFixes, createForbiddenImportFixes, createOrphanedDepFixes, createParseError, createRegionMap, createSelfReview, createStream, createTrackerClient, crossReferenceUndocumentedFixes, cryptoRules, deduplicateCleanupFindings, deduplicateFindings, deepMergeConstraints, defaultCollectors, defineLayer, deserializationRules, detectChangeType, detectCircularDeps, detectCircularDepsInFiles, detectComplexityViolations, detectCouplingViolations, detectDeadCode, detectDocDrift, detectEmergentConstraints, detectLanguage, detectPatternViolations, detectSizeBudgetViolations, detectStack, detectStaleConstraints, detectStaleLearnings, determineAssessment, diff, emitEvent, estimateTokens, executeWorkflow, expressRules, extractBundle, extractDirectoryScope, extractFileReferences, extractHeadlines, extractIndexEntry, extractLevel, extractMarkdownLinks, extractSections, fanOutReview, findParallelGroups, formatCIReportAsMarkdown, formatEventTimeline, formatFindingBlock, formatGitHubComment, formatGitHubSummary, formatIsoWeek, formatOutline, formatTerminalOutput, fullSync, generateAgentsMap, generateRubric, generateSuggestions, getActionEmitter, getExitCode, getFeedbackConfig, getInjectionPatterns, getModelPrice, getOrCreateInstallId, getOutline, getParser, getPhaseCategories, getPulseAdapter, getRoadmapMode, getStreamForBranch, getTaintFilePath, getTrustLevel, getUpdateNotification, gitScan, goRules, injectionRules, insecureDefaultsRules, invalidateCheckState, isBadPort, isDuplicateFinding, isRegression, isSanitizedResult, isSmallSuggestion, isUpdateCheckEnabled, isoWeek, listActiveSessions, listPulseAdapters, listStreams, listTaintedSessions, loadBudgetedLearnings, loadEvents, loadFailures, loadHandoff, loadIndexEntries, loadNotificationsConfig, loadPricingData, loadProjectRoadmapMode, loadRelevantLearnings, loadSessionSummary, loadState, loadStreamIndex, loadTrackerClientConfigFromProject, loadTrackerSyncConfig, logAgentAction, makeTrackerConflictBody, mapInjectionFindings, mapSecurityFindings, mapSecuritySeverity, markProtectedFindings, mcpRules, index as migrate, migrateToStreams, networkRules, nodeRules, normalizeLearningContent, normalizeViolationPattern, paginate, parseCCRecords, parseDateFromEntry, parseDiff, parseFile, parseFileRegions, parseFrontmatter, parseHarnessIgnore, parseLiteLLMData, parseLookback, parseManifest, parseProtectedRegions, parseRoadmap, parseSections, parseSecurityConfig, parseSize, pathTraversalRules, previewFix, projectValue, promoteSessionLearnings, pruneLearnings, reactRules, readAdoptionRecords, readCheckState, readCostRecords, readIdentity, readLockfile, readSessionSection, readSessionSections, readTaint, registerMockAdapter, registerPulseAdapter, removeContributions, removeProvenance, requestMultiplePeerReviews, requestPeerReview, resetFeedbackConfig, resetParserCache, resolveConsent, resolveFileToLayer, resolveModelTier, resolveReverseStatus, resolveRuleSeverity, resolveSessionDir, resolveStability, resolveStreamPath, resolveThresholds, runFallbackRules as runAgentConfigFallbackRules, runAll, runArchitectureAgent, runBugDetectionAgent, runCIChecks, runComplianceAgent, runMechanicalChecks, runMechanicalGate, runMultiTurnPipeline, runPipeline, runPulse, runReviewPipeline, runSecurityAgent, saveHandoff, saveState, saveStreamIndex, scanForInjection, scopeContext, scoreRoadmapCandidates, scoreRoadmapCandidatesFileLess, scoreRoadmapCandidatesForMode, searchSymbols, secretRules, securityFindingId, seedFromStrategy, send, serializeEnvelope, serializeRoadmap, setActiveStream, sharpEdgesRules, shouldRunCheck, spawnBackgroundCheck, splitBundlesByStage, stageDomains, suggestCategory, syncConstraintNodes, syncFromExternal, syncRoadmap, syncToExternal, tagUncitedFindings, topSkills, touchStream, trackAction, unfoldRange, unfoldSymbol, updateSessionEntryStatus, updateSessionIndex, validateAgentConfigs, validateAgentsMap, validateBoundaries, validateBranchName, validateCommitMessage, validateConfig, validateDependencies, validateFileStructure, validateFindings, validateKnowledgeMap, validatePatternConfig, validatePulseConfig, validateRoadmapMode, validateSolutionsDir, violationId, weeksUntilThreshold, weightedLinearRegression, writeConfig, writeLockfile, writePulseConfig, writeSessionSummary, writeTaint, xssRules };
|