@hivelore/core 0.33.0 → 0.35.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/index.d.ts +130 -2
- package/dist/index.js +335 -44
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -471,6 +471,19 @@ interface LoadedMemory {
|
|
|
471
471
|
declare function listMarkdownFilesRecursive(dir: string): Promise<string[]>;
|
|
472
472
|
declare function loadMemory(filePath: string): Promise<LoadedMemory>;
|
|
473
473
|
declare function loadMemoriesFromDir(dir: string): Promise<LoadedMemory[]>;
|
|
474
|
+
interface InvalidMemoryFile {
|
|
475
|
+
filePath: string;
|
|
476
|
+
error: string;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Like loadMemoriesFromDir, but also reports files that failed to parse instead of
|
|
480
|
+
* dropping them silently — a corrupt frontmatter otherwise makes a team lesson
|
|
481
|
+
* vanish without any signal. Surfaced by `hivelore doctor`.
|
|
482
|
+
*/
|
|
483
|
+
declare function loadMemoriesFromDirDetailed(dir: string): Promise<{
|
|
484
|
+
loaded: LoadedMemory[];
|
|
485
|
+
invalid: InvalidMemoryFile[];
|
|
486
|
+
}>;
|
|
474
487
|
|
|
475
488
|
declare function tokenizeQuery(query: string): string[];
|
|
476
489
|
declare function literalMatchesAllTokens(memory: Memory, tokens: string[]): boolean;
|
|
@@ -639,7 +652,12 @@ interface PreventionEvent {
|
|
|
639
652
|
id: string;
|
|
640
653
|
/** Which gate path recorded it. */
|
|
641
654
|
source: PreventionSource;
|
|
655
|
+
/** Optional detail for receipts; absent on logs written before v0.35.0. */
|
|
656
|
+
kind?: "regex" | "shell" | "test";
|
|
657
|
+
stage?: "pre-commit" | "pre-push" | "ci" | "manual";
|
|
658
|
+
exit_code?: number;
|
|
642
659
|
}
|
|
660
|
+
type PreventionEventDetail = Pick<PreventionEvent, "kind" | "stage" | "exit_code">;
|
|
643
661
|
declare function preventionLogPath(paths: HaivePaths): string;
|
|
644
662
|
/** Append one catch to the log. Best-effort, creates the dir on demand. */
|
|
645
663
|
declare function appendPreventionEvent(paths: HaivePaths, event: PreventionEvent): Promise<void>;
|
|
@@ -655,7 +673,33 @@ declare function appendPreventionEvent(paths: HaivePaths, event: PreventionEvent
|
|
|
655
673
|
* write must never break a commit, so failures are swallowed. Returns the ids actually recorded
|
|
656
674
|
* (i.e. not debounced), so callers can report "caught for you" without re-counting.
|
|
657
675
|
*/
|
|
658
|
-
declare function recordPreventionHits(paths: HaivePaths, firedIds: string[], source: PreventionSource, now?: Date): Promise<string[]>;
|
|
676
|
+
declare function recordPreventionHits(paths: HaivePaths, firedIds: string[], source: PreventionSource, now?: Date, details?: Record<string, PreventionEventDetail>): Promise<string[]>;
|
|
677
|
+
interface PreventionReceiptRow {
|
|
678
|
+
at: string;
|
|
679
|
+
id: string;
|
|
680
|
+
title: string;
|
|
681
|
+
source: PreventionSource;
|
|
682
|
+
kind: "regex" | "shell" | "test" | null;
|
|
683
|
+
stage: "pre-commit" | "pre-push" | "ci" | "manual" | null;
|
|
684
|
+
exit_code: number | null;
|
|
685
|
+
message: string | null;
|
|
686
|
+
}
|
|
687
|
+
interface PreventionReceipt {
|
|
688
|
+
generated_at: string;
|
|
689
|
+
since: string;
|
|
690
|
+
window_days: number;
|
|
691
|
+
total: number;
|
|
692
|
+
previous_total: number;
|
|
693
|
+
prevented_count_total: number;
|
|
694
|
+
trend: PreventionTrend;
|
|
695
|
+
events: PreventionReceiptRow[];
|
|
696
|
+
}
|
|
697
|
+
/** Stable, deterministic aggregation used by the CLI and the CI PR comment. */
|
|
698
|
+
declare function buildPreventionReceipt(events: PreventionEvent[], memories: LoadedMemory[], usage: UsageIndex, options: {
|
|
699
|
+
since: Date;
|
|
700
|
+
now?: Date;
|
|
701
|
+
}): PreventionReceipt;
|
|
702
|
+
declare function renderPreventionReceipt(receipt: PreventionReceipt): string;
|
|
659
703
|
/** Read all catch events (skips malformed lines). */
|
|
660
704
|
declare function loadPreventionEvents(paths: HaivePaths): Promise<PreventionEvent[]>;
|
|
661
705
|
interface PreventionTrend {
|
|
@@ -1150,6 +1194,8 @@ interface BuildCodeMapOptions {
|
|
|
1150
1194
|
/** Include untracked files that are not ignored by git. Default: false when the root is a git repo. */
|
|
1151
1195
|
includeUntracked?: boolean;
|
|
1152
1196
|
}
|
|
1197
|
+
declare const CODE_MAP_DEFAULT_INCLUDE: string[];
|
|
1198
|
+
declare const CODE_MAP_DEFAULT_EXCLUDE: string[];
|
|
1153
1199
|
declare function codeMapPath(paths: HaivePaths): string;
|
|
1154
1200
|
declare function loadCodeMap(paths: HaivePaths): Promise<CodeMap | null>;
|
|
1155
1201
|
declare function saveCodeMap(paths: HaivePaths, map: CodeMap): Promise<void>;
|
|
@@ -1950,6 +1996,53 @@ declare function extractSensorExamples(body: string): string[];
|
|
|
1950
1996
|
*/
|
|
1951
1997
|
declare function addedLinesFromDiff(diff: string): string;
|
|
1952
1998
|
|
|
1999
|
+
type SensorEvaluationStage = "pre-commit" | "pre-push" | "ci" | "manual";
|
|
2000
|
+
type SensorEvaluationOutcome = "fired" | "silent" | "unrunnable";
|
|
2001
|
+
interface SensorEvaluation {
|
|
2002
|
+
at: string;
|
|
2003
|
+
memory_id: string;
|
|
2004
|
+
kind: "regex" | "shell" | "test";
|
|
2005
|
+
stage: SensorEvaluationStage;
|
|
2006
|
+
head_sha: string;
|
|
2007
|
+
scope_hash: string;
|
|
2008
|
+
outcome: SensorEvaluationOutcome;
|
|
2009
|
+
exit_code?: number;
|
|
2010
|
+
duration_ms?: number;
|
|
2011
|
+
}
|
|
2012
|
+
interface SensorFlap {
|
|
2013
|
+
memory_id: string;
|
|
2014
|
+
scope_hash: string;
|
|
2015
|
+
previous: SensorEvaluation;
|
|
2016
|
+
current: SensorEvaluation;
|
|
2017
|
+
}
|
|
2018
|
+
interface SensorHealth {
|
|
2019
|
+
memory_id: string;
|
|
2020
|
+
flap_count: number;
|
|
2021
|
+
flaps: SensorFlap[];
|
|
2022
|
+
quarantine_pending: boolean;
|
|
2023
|
+
never_fired: boolean;
|
|
2024
|
+
evaluation_count: number;
|
|
2025
|
+
}
|
|
2026
|
+
declare function sensorLedgerPath(paths: HaivePaths): string;
|
|
2027
|
+
/** Append evaluations and compact the rolling window when needed. Never throws. */
|
|
2028
|
+
declare function appendSensorEvaluations(paths: HaivePaths, evaluations: SensorEvaluation[]): Promise<void>;
|
|
2029
|
+
/** Load valid ledger rows, optionally bounded by an ISO timestamp. Never throws. */
|
|
2030
|
+
declare function loadSensorLedger(paths: HaivePaths, opts?: {
|
|
2031
|
+
since?: string;
|
|
2032
|
+
}): Promise<SensorEvaluation[]>;
|
|
2033
|
+
/** sha256(path + NUL + content), sorted by path. Missing files are ignored; empty scope is "". */
|
|
2034
|
+
declare function computeScopeHash(root: string, scopedFiles: string[]): string;
|
|
2035
|
+
/**
|
|
2036
|
+
* Deterministic health assessment. A flap is an adjacent fired/silent outcome change for the same
|
|
2037
|
+
* memory and identical scope hash inside the 30-day window. `unrunnable` rows never participate.
|
|
2038
|
+
*/
|
|
2039
|
+
declare function assessSensorHealth(evaluations: SensorEvaluation[], now?: Date): SensorHealth[];
|
|
2040
|
+
declare function quarantineNote(at: string, flapCount: number): string;
|
|
2041
|
+
/** Add or replace the single quarantine note. */
|
|
2042
|
+
declare function withQuarantineNote(body: string, at: string, flapCount: number): string;
|
|
2043
|
+
/** Manual promotion clears the machine-authored quarantine conclusion. */
|
|
2044
|
+
declare function withoutQuarantineNote(body: string): string;
|
|
2045
|
+
|
|
1953
2046
|
interface SensorSuggestionOptions {
|
|
1954
2047
|
/** Extra paths to put on the sensor. Defaults to the memory anchor paths. */
|
|
1955
2048
|
paths?: string[];
|
|
@@ -2522,6 +2615,10 @@ interface GitCommit {
|
|
|
2522
2615
|
subject: string;
|
|
2523
2616
|
/** Files touched by the commit (optional — improves anchoring). */
|
|
2524
2617
|
files?: string[];
|
|
2618
|
+
/** Full commit body when available (used to resolve `This reverts commit <sha>`). */
|
|
2619
|
+
body?: string;
|
|
2620
|
+
/** Explicit failed/reverted SHA when a caller already parsed it. */
|
|
2621
|
+
reverted_sha?: string;
|
|
2525
2622
|
}
|
|
2526
2623
|
interface SeedProposal {
|
|
2527
2624
|
/** Kebab-ish slug derived from the reverted subject. */
|
|
@@ -2545,6 +2642,37 @@ declare function isNoiseSubject(subject: string): boolean;
|
|
|
2545
2642
|
*/
|
|
2546
2643
|
declare function proposeSeedsFromCommits(commits: GitCommit[], limit?: number): SeedProposal[];
|
|
2547
2644
|
|
|
2645
|
+
interface GitWatchState {
|
|
2646
|
+
last_scanned_sha: string;
|
|
2647
|
+
}
|
|
2648
|
+
type GitWatchPlan = {
|
|
2649
|
+
action: "initialize";
|
|
2650
|
+
next: GitWatchState;
|
|
2651
|
+
} | {
|
|
2652
|
+
action: "idle";
|
|
2653
|
+
next: GitWatchState;
|
|
2654
|
+
} | {
|
|
2655
|
+
action: "scan";
|
|
2656
|
+
range: string;
|
|
2657
|
+
next: GitWatchState;
|
|
2658
|
+
};
|
|
2659
|
+
declare function planGitWatch(state: GitWatchState | null, headSha: string): GitWatchPlan;
|
|
2660
|
+
interface GateMissProposal {
|
|
2661
|
+
slug: string;
|
|
2662
|
+
reverted_sha: string;
|
|
2663
|
+
revert_sha: string;
|
|
2664
|
+
subject: string;
|
|
2665
|
+
paths: string[];
|
|
2666
|
+
kind: "revert" | "fixup" | "workaround";
|
|
2667
|
+
gate_passed: boolean;
|
|
2668
|
+
body: string;
|
|
2669
|
+
}
|
|
2670
|
+
declare function revertedShaFromCommit(commit: GitCommit): string | null;
|
|
2671
|
+
declare function existingGateMissShas(memories: LoadedMemory[]): Set<string>;
|
|
2672
|
+
declare function gatePassedShas(evaluations: SensorEvaluation[]): Set<string>;
|
|
2673
|
+
/** Build proposed, never-validated lessons from incremental revert/hotfix signals. */
|
|
2674
|
+
declare function proposeGateMissDrafts(commits: GitCommit[], existingRevertedShas: Set<string>, passedShas: Set<string>): GateMissProposal[];
|
|
2675
|
+
|
|
2548
2676
|
/**
|
|
2549
2677
|
* Pure stack-detection helpers for cold-start seeding.
|
|
2550
2678
|
*
|
|
@@ -2796,4 +2924,4 @@ interface AgentContext {
|
|
|
2796
2924
|
}
|
|
2797
2925
|
declare function detectAgentContext(env?: Record<string, string | undefined>): AgentContext;
|
|
2798
2926
|
|
|
2799
|
-
export { AUTOPILOT_DEFAULTS, type Activation, type ActivationContext, ActivationSchema, type AgentContext, type Anchor, AnchorSchema, type AntiPatternGate, type AppliedConflictResolution, type AstExport, type AutoPromoteRule, BRIDGE_MARKERS, BRIDGE_TARGETS, BRIDGE_TARGET_PATH, BRIEFING_MARKER_TTL_MS, BRIEFING_PRESET_DEFAULTS, type BootstrapAssessment, type BootstrapGap, type BootstrapGate, type BootstrapMetrics, type BootstrapState, type BootstrapStateInput, type BreakingChange, type BridgeFileOutput, type BridgeMemoryEntry, type BridgeSensor, type BridgeTarget, type BriefingBudgetNumbers, type BriefingBudgetPreset, type BriefingMarker, type BriefingProofLineOptions, type BudgetPart, type BudgetSlice, type BuildCodeMapOptions, CHARS_PER_TOKEN, CODE_MAP_FILE, CODE_STOPWORDS, CONFIG_FILE, type CaughtForYouOptions, type CaughtForYouRow, type CaughtForYouSummary, type CodeExport, type CodeExportKind, type CodeFileEntry, type CodeMap, type CodeMapQueryOptions, type CollectTimelineOpts, type CommandSensorSpec, type ConfidenceLevel, type ConfidenceThresholds, type ConflictCandidatePair, type ConflictCandidatesOpts, type ConflictResolution, type ContractDiffResult, type ContractFile, type ContractSnapshot, type CoverageGap, type CoverageOptions, CrossRepoProvenanceSchema, type CrossRepoReport, type CrossRepoSource, DECAY_DAYS, DEFAULT_AUTO_PROMOTE_RULE, DEFAULT_BRIEFING_EXCLUDE_TAGS, DEFAULT_CONFIDENCE_THRESHOLDS, DEFAULT_CONFIG, DEFAULT_DORMANT_DAYS, DEFAULT_PRIORITY_SIGNALS, type DashboardOptions, type DashboardReport, type DepChange, type DepTrackResult, type DependencySnapshot, type DetectStacksInput, type DetectableStack, type DocFrequency, type DormantRow, type DraftOptions, type DraftsOptions, ENV_WORKAROUND_TAGS, type EvalDelta, type EvalHistoryEntry, type EvalReport, type EvalSpec, type EvalTrend, type FailureCoverageOptions, type FailureObservation, type FeedbackAdjustment, type FeedbackAdjustmentAction, type FeedbackAdjustmentOptions, type Finding, type FindingFormat, type FindingSeverity, GUESSABLE_THRESHOLD, type GatePrecision, type GatePrecisionDelta, type GatePrecisionMetricDelta, type GateTuningSuggestion, type GenerateBridgesOptions, type GitCommit, HAIVE_DIR, HAIVE_OWNED_FILES, HANDOFF_FILENAME, type HaiveConfig, type HaivePaths, type HotFile, type HotFileSource, type ImpactOptions, type ImpactRow, type ImpactScore, type ImpactSummary, type ImpactTier, type LexicalRankResult, type LoadedMemory, MEMORIES_DIR, MIN_WORD_LEN, type Memory, type MemoryDraft, type MemoryFrontmatter, MemoryFrontmatterSchema, type MemoryPriority, type MemoryScope, MemoryScopeSchema, type MemoryStatus, MemoryStatusSchema, type MemoryType, MemoryTypeSchema, type MemoryUsage, type MergeResult, type MetricDelta, PREVENTION_DEBOUNCE_MS, PROJECT_CONTEXT_FILE, PROJECT_CONTEXT_THROTTLE_MS, type PreventionEvent, type PreventionRow, type PreventionSource, type PreventionTrend, type PrioritySignals, type ProposedSensorVerdict, RUNTIME_JOURNAL_FILENAME, type RecurrenceReport, type RecurrenceRow, type ResolveProjectInfo, type RetirementSignal, type RetrievalAggregate, type RetrievalCase, type RetrievalCaseResult, type RuntimeJournalEntry, SEED_QUALITY_FLOOR, SENSOR_ABSENT_LOOKBACK, SENSOR_ABSENT_WINDOW, SESSION_RECAP_TTL_MS, STACK_PACK_TAG, type SeedProposal, type SelfEvalOptions, type Sensor, type SensorAggregate, type SensorCase, type SensorCaseResult, type SensorHit, type SensorRow, SensorSchema, type SensorSeed, type SensorSelfCheck, type SensorSuggestionOptions, type SensorTarget, type SessionHandoffData, type SkillActivation, type TimelineEntry, type TopicStatusPair, type TruncateOptions, type TruncateResult, USAGE_FILE, USAGE_LOG_DIR, USAGE_LOG_FILE, type UncapturedFailure, type UsageAggregate, type UsageEvent, type UsageIndex, type VerifyOptions, type VerifyResult, addedLinesFromDiff, aggregateRetrieval, aggregateSensors, aggregateUsage, allocateBudget, antiPatternGateParams, appendEvalHistory, appendPreventionEvent, appendRuntimeJournalEntry, appendUsageEvent, applyConflictResolution, applyFeedbackAdjustment, assessBootstrapState, bridgeMemorySummary, briefingMarkerPath, briefingMarkersDir, briefingProofLine, buildCodeMap, buildCoverageIndex, buildDashboard, buildDocFrequency, buildFrontmatter, buildHandoffMarkdown, buildReport, bumpRead, classifyMemoryPriority, codeMapPath, collectTimelineEntries, compactAutoRecapBody, compareEvalReports, compareGatePrecision, compareImpact, compileRegexSensor, componentOf, computeEvalTrend, computeGatePrecision, computeImpact, computePreventionTrend, computeRecurrence, configPath, contractLockPath, countSourceFilesOnDisk, deriveConfidence, detectAgentContext, detectStacksFromManifests, diffContract, diffHasDistinctiveOverlap, distinctiveCap, draftsFromFindings, emptyUsage, emptyUsageIndex, enforcementDir, estimateTokens, evalHistoryPath, evaluateSkillActivation, extractActionsBriefBody, extractReferencedPaths, extractSensorExamples, extractSnippet, filterNewDrafts, findCoverageGaps, findLexicalConflictPairs, findProjectRoot, findTopicStatusConflictPairs, findUncapturedFailures, findingBody, findingToDraft, firstMemoryOneLine, generateBridges, getUsage, globToRegExp, handoffAgeMs, handoffFilePath, hasRecentBriefingMarker, hashProjectContext, inferModulesFromPaths, isAutoPromoteEligible, isAutoRecap, isCovered, isDecaying, isDistinctiveToken, isEnvWorkaroundMemory, isFreshIsoDate, isGlobPath, isLikelyGuessable, isNoiseSubject, isRetiredMemory, isSensorScannablePath, isSkill, isSkillSuppressed, isStackPackSeed, isStylisticRule, isTemplateProjectContext, judgeProposedSensor, listMarkdownFilesRecursive, literalMatchesAllTokens, literalMatchesAnyToken, loadCodeMap, loadConfig, loadConfigSync, loadEvalHistory, loadMemoriesFromDir, loadMemory, loadPreventionEvents, loadUsageIndex, looksLikeGenericAdvice, meetsSeedQualityFloor, memoryFilePath, memoryHasExcludedTag, memoryMatchesAnchorPaths, mergeHotFiles, mergeMemoryVersions, moduleNameOf, newMemoryId, normalizeFindingSeverity, normalizeSessionId, overallScore, parseEslintJson, parseFileAst, parseFindings, parseMemory, parseNpmAudit, parseSarif, parseSince, parseSonar, pathsOverlap, pickSnippetNeedle, planConflictResolution, prepareBridgeData, preventionLogPath, priorityRank, prioritySignals, projectContextRecentlyEmitted, proposeSeedsFromCommits, pullCrossRepoSources, queryCodeMap, rankMemoriesLexical, readRecentBriefingMarker, readRuntimeJournalTail, readSessionHandoff, readUsageEvents, recommendFeedbackAdjustment, recordApplied, recordPrevention, recordPreventionHits, recordProjectContextEmission, recordRejection, relPathFrom, renderBootstrapChecklist, renderCaughtForYou, resolveBriefingBudget, resolveHaivePaths, resolveManifestFiles, resolveProjectInfo, retirementSignal, runRegexSensor, runSensors, runtimeJournalPath, saveCodeMap, saveConfig, saveUsageIndex, scannableSensorTargets, scoreRetrievalCase, scoreSensorCase, selectCommandSensors, sensorAppliesToPath, sensorPatternBrittleness, sensorSelfCheck, sensorTargetsFromDiff, serializeMemory, snapshotContract, specificityScore, stripPrivate, suggestGate, suggestSensorFromMemory, suggestSensorSeed, suggestTopicKey, summarizeCaughtForYou, summarizeImpact, synthesizeSelfEvalCases, tallyHotFiles, titleFromBody, tokenizeQuery, tokenizeWords, trackDependencies, trackReads, truncateToTokens, usageLogPath, usageLogSize, usagePath, verifyAnchor, watchContracts, writeBriefingMarker, writeSessionHandoff };
|
|
2927
|
+
export { AUTOPILOT_DEFAULTS, type Activation, type ActivationContext, ActivationSchema, type AgentContext, type Anchor, AnchorSchema, type AntiPatternGate, type AppliedConflictResolution, type AstExport, type AutoPromoteRule, BRIDGE_MARKERS, BRIDGE_TARGETS, BRIDGE_TARGET_PATH, BRIEFING_MARKER_TTL_MS, BRIEFING_PRESET_DEFAULTS, type BootstrapAssessment, type BootstrapGap, type BootstrapGate, type BootstrapMetrics, type BootstrapState, type BootstrapStateInput, type BreakingChange, type BridgeFileOutput, type BridgeMemoryEntry, type BridgeSensor, type BridgeTarget, type BriefingBudgetNumbers, type BriefingBudgetPreset, type BriefingMarker, type BriefingProofLineOptions, type BudgetPart, type BudgetSlice, type BuildCodeMapOptions, CHARS_PER_TOKEN, CODE_MAP_DEFAULT_EXCLUDE, CODE_MAP_DEFAULT_INCLUDE, CODE_MAP_FILE, CODE_STOPWORDS, CONFIG_FILE, type CaughtForYouOptions, type CaughtForYouRow, type CaughtForYouSummary, type CodeExport, type CodeExportKind, type CodeFileEntry, type CodeMap, type CodeMapQueryOptions, type CollectTimelineOpts, type CommandSensorSpec, type ConfidenceLevel, type ConfidenceThresholds, type ConflictCandidatePair, type ConflictCandidatesOpts, type ConflictResolution, type ContractDiffResult, type ContractFile, type ContractSnapshot, type CoverageGap, type CoverageOptions, CrossRepoProvenanceSchema, type CrossRepoReport, type CrossRepoSource, DECAY_DAYS, DEFAULT_AUTO_PROMOTE_RULE, DEFAULT_BRIEFING_EXCLUDE_TAGS, DEFAULT_CONFIDENCE_THRESHOLDS, DEFAULT_CONFIG, DEFAULT_DORMANT_DAYS, DEFAULT_PRIORITY_SIGNALS, type DashboardOptions, type DashboardReport, type DepChange, type DepTrackResult, type DependencySnapshot, type DetectStacksInput, type DetectableStack, type DocFrequency, type DormantRow, type DraftOptions, type DraftsOptions, ENV_WORKAROUND_TAGS, type EvalDelta, type EvalHistoryEntry, type EvalReport, type EvalSpec, type EvalTrend, type FailureCoverageOptions, type FailureObservation, type FeedbackAdjustment, type FeedbackAdjustmentAction, type FeedbackAdjustmentOptions, type Finding, type FindingFormat, type FindingSeverity, GUESSABLE_THRESHOLD, type GateMissProposal, type GatePrecision, type GatePrecisionDelta, type GatePrecisionMetricDelta, type GateTuningSuggestion, type GenerateBridgesOptions, type GitCommit, type GitWatchPlan, type GitWatchState, HAIVE_DIR, HAIVE_OWNED_FILES, HANDOFF_FILENAME, type HaiveConfig, type HaivePaths, type HotFile, type HotFileSource, type ImpactOptions, type ImpactRow, type ImpactScore, type ImpactSummary, type ImpactTier, type InvalidMemoryFile, type LexicalRankResult, type LoadedMemory, MEMORIES_DIR, MIN_WORD_LEN, type Memory, type MemoryDraft, type MemoryFrontmatter, MemoryFrontmatterSchema, type MemoryPriority, type MemoryScope, MemoryScopeSchema, type MemoryStatus, MemoryStatusSchema, type MemoryType, MemoryTypeSchema, type MemoryUsage, type MergeResult, type MetricDelta, PREVENTION_DEBOUNCE_MS, PROJECT_CONTEXT_FILE, PROJECT_CONTEXT_THROTTLE_MS, type PreventionEvent, type PreventionEventDetail, type PreventionReceipt, type PreventionReceiptRow, type PreventionRow, type PreventionSource, type PreventionTrend, type PrioritySignals, type ProposedSensorVerdict, RUNTIME_JOURNAL_FILENAME, type RecurrenceReport, type RecurrenceRow, type ResolveProjectInfo, type RetirementSignal, type RetrievalAggregate, type RetrievalCase, type RetrievalCaseResult, type RuntimeJournalEntry, SEED_QUALITY_FLOOR, SENSOR_ABSENT_LOOKBACK, SENSOR_ABSENT_WINDOW, SESSION_RECAP_TTL_MS, STACK_PACK_TAG, type SeedProposal, type SelfEvalOptions, type Sensor, type SensorAggregate, type SensorCase, type SensorCaseResult, type SensorEvaluation, type SensorEvaluationOutcome, type SensorEvaluationStage, type SensorFlap, type SensorHealth, type SensorHit, type SensorRow, SensorSchema, type SensorSeed, type SensorSelfCheck, type SensorSuggestionOptions, type SensorTarget, type SessionHandoffData, type SkillActivation, type TimelineEntry, type TopicStatusPair, type TruncateOptions, type TruncateResult, USAGE_FILE, USAGE_LOG_DIR, USAGE_LOG_FILE, type UncapturedFailure, type UsageAggregate, type UsageEvent, type UsageIndex, type VerifyOptions, type VerifyResult, addedLinesFromDiff, aggregateRetrieval, aggregateSensors, aggregateUsage, allocateBudget, antiPatternGateParams, appendEvalHistory, appendPreventionEvent, appendRuntimeJournalEntry, appendSensorEvaluations, appendUsageEvent, applyConflictResolution, applyFeedbackAdjustment, assessBootstrapState, assessSensorHealth, bridgeMemorySummary, briefingMarkerPath, briefingMarkersDir, briefingProofLine, buildCodeMap, buildCoverageIndex, buildDashboard, buildDocFrequency, buildFrontmatter, buildHandoffMarkdown, buildPreventionReceipt, buildReport, bumpRead, classifyMemoryPriority, codeMapPath, collectTimelineEntries, compactAutoRecapBody, compareEvalReports, compareGatePrecision, compareImpact, compileRegexSensor, componentOf, computeEvalTrend, computeGatePrecision, computeImpact, computePreventionTrend, computeRecurrence, computeScopeHash, configPath, contractLockPath, countSourceFilesOnDisk, deriveConfidence, detectAgentContext, detectStacksFromManifests, diffContract, diffHasDistinctiveOverlap, distinctiveCap, draftsFromFindings, emptyUsage, emptyUsageIndex, enforcementDir, estimateTokens, evalHistoryPath, evaluateSkillActivation, existingGateMissShas, extractActionsBriefBody, extractReferencedPaths, extractSensorExamples, extractSnippet, filterNewDrafts, findCoverageGaps, findLexicalConflictPairs, findProjectRoot, findTopicStatusConflictPairs, findUncapturedFailures, findingBody, findingToDraft, firstMemoryOneLine, gatePassedShas, generateBridges, getUsage, globToRegExp, handoffAgeMs, handoffFilePath, hasRecentBriefingMarker, hashProjectContext, inferModulesFromPaths, isAutoPromoteEligible, isAutoRecap, isCovered, isDecaying, isDistinctiveToken, isEnvWorkaroundMemory, isFreshIsoDate, isGlobPath, isLikelyGuessable, isNoiseSubject, isRetiredMemory, isSensorScannablePath, isSkill, isSkillSuppressed, isStackPackSeed, isStylisticRule, isTemplateProjectContext, judgeProposedSensor, listMarkdownFilesRecursive, literalMatchesAllTokens, literalMatchesAnyToken, loadCodeMap, loadConfig, loadConfigSync, loadEvalHistory, loadMemoriesFromDir, loadMemoriesFromDirDetailed, loadMemory, loadPreventionEvents, loadSensorLedger, loadUsageIndex, looksLikeGenericAdvice, meetsSeedQualityFloor, memoryFilePath, memoryHasExcludedTag, memoryMatchesAnchorPaths, mergeHotFiles, mergeMemoryVersions, moduleNameOf, newMemoryId, normalizeFindingSeverity, normalizeSessionId, overallScore, parseEslintJson, parseFileAst, parseFindings, parseMemory, parseNpmAudit, parseSarif, parseSince, parseSonar, pathsOverlap, pickSnippetNeedle, planConflictResolution, planGitWatch, prepareBridgeData, preventionLogPath, priorityRank, prioritySignals, projectContextRecentlyEmitted, proposeGateMissDrafts, proposeSeedsFromCommits, pullCrossRepoSources, quarantineNote, queryCodeMap, rankMemoriesLexical, readRecentBriefingMarker, readRuntimeJournalTail, readSessionHandoff, readUsageEvents, recommendFeedbackAdjustment, recordApplied, recordPrevention, recordPreventionHits, recordProjectContextEmission, recordRejection, relPathFrom, renderBootstrapChecklist, renderCaughtForYou, renderPreventionReceipt, resolveBriefingBudget, resolveHaivePaths, resolveManifestFiles, resolveProjectInfo, retirementSignal, revertedShaFromCommit, runRegexSensor, runSensors, runtimeJournalPath, saveCodeMap, saveConfig, saveUsageIndex, scannableSensorTargets, scoreRetrievalCase, scoreSensorCase, selectCommandSensors, sensorAppliesToPath, sensorLedgerPath, sensorPatternBrittleness, sensorSelfCheck, sensorTargetsFromDiff, serializeMemory, snapshotContract, specificityScore, stripPrivate, suggestGate, suggestSensorFromMemory, suggestSensorSeed, suggestTopicKey, summarizeCaughtForYou, summarizeImpact, synthesizeSelfEvalCases, tallyHotFiles, titleFromBody, tokenizeQuery, tokenizeWords, trackDependencies, trackReads, truncateToTokens, usageLogPath, usageLogSize, usagePath, verifyAnchor, watchContracts, withQuarantineNote, withoutQuarantineNote, writeBriefingMarker, writeSessionHandoff };
|