@hivelore/core 0.34.1 → 0.35.1

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 CHANGED
@@ -55,6 +55,13 @@ declare const SensorSchema: z.ZodObject<{
55
55
  autogen: z.ZodDefault<z.ZodBoolean>;
56
56
  /** ISO timestamp of the last time this sensor matched a diff. */
57
57
  last_fired: z.ZodDefault<z.ZodNullable<z.ZodString>>;
58
+ /**
59
+ * ISO timestamp of the last manual `sensors promote` back to block. Health assessment ignores
60
+ * ledger evaluations older than this — without it, a promoted sensor whose oracle was FIXED is
61
+ * re-quarantined on the next commit for up to 30 days (the stale flaps are still in the window),
62
+ * making the promotion promised by the quarantine note a no-op.
63
+ */
64
+ promoted_at: z.ZodOptional<z.ZodString>;
58
65
  }, "strip", z.ZodTypeAny, {
59
66
  message: string;
60
67
  paths: string[];
@@ -67,6 +74,7 @@ declare const SensorSchema: z.ZodObject<{
67
74
  flags?: string | undefined;
68
75
  command?: string | undefined;
69
76
  timeout_ms?: number | undefined;
77
+ promoted_at?: string | undefined;
70
78
  }, {
71
79
  message: string;
72
80
  paths?: string[] | undefined;
@@ -79,6 +87,7 @@ declare const SensorSchema: z.ZodObject<{
79
87
  severity?: "warn" | "block" | undefined;
80
88
  autogen?: boolean | undefined;
81
89
  last_fired?: string | null | undefined;
90
+ promoted_at?: string | undefined;
82
91
  }>;
83
92
  /**
84
93
  * Progressive-disclosure activation triggers for a `skill` memory.
@@ -154,6 +163,13 @@ declare const MemoryFrontmatterSchema: z.ZodEffects<z.ZodObject<{
154
163
  autogen: z.ZodDefault<z.ZodBoolean>;
155
164
  /** ISO timestamp of the last time this sensor matched a diff. */
156
165
  last_fired: z.ZodDefault<z.ZodNullable<z.ZodString>>;
166
+ /**
167
+ * ISO timestamp of the last manual `sensors promote` back to block. Health assessment ignores
168
+ * ledger evaluations older than this — without it, a promoted sensor whose oracle was FIXED is
169
+ * re-quarantined on the next commit for up to 30 days (the stale flaps are still in the window),
170
+ * making the promotion promised by the quarantine note a no-op.
171
+ */
172
+ promoted_at: z.ZodOptional<z.ZodString>;
157
173
  }, "strip", z.ZodTypeAny, {
158
174
  message: string;
159
175
  paths: string[];
@@ -166,6 +182,7 @@ declare const MemoryFrontmatterSchema: z.ZodEffects<z.ZodObject<{
166
182
  flags?: string | undefined;
167
183
  command?: string | undefined;
168
184
  timeout_ms?: number | undefined;
185
+ promoted_at?: string | undefined;
169
186
  }, {
170
187
  message: string;
171
188
  paths?: string[] | undefined;
@@ -178,6 +195,7 @@ declare const MemoryFrontmatterSchema: z.ZodEffects<z.ZodObject<{
178
195
  severity?: "warn" | "block" | undefined;
179
196
  autogen?: boolean | undefined;
180
197
  last_fired?: string | null | undefined;
198
+ promoted_at?: string | undefined;
181
199
  }>>;
182
200
  /** Optional progressive-disclosure triggers — only meaningful for `type: skill`. */
183
201
  activation: z.ZodOptional<z.ZodObject<{
@@ -257,6 +275,7 @@ declare const MemoryFrontmatterSchema: z.ZodEffects<z.ZodObject<{
257
275
  flags?: string | undefined;
258
276
  command?: string | undefined;
259
277
  timeout_ms?: number | undefined;
278
+ promoted_at?: string | undefined;
260
279
  } | undefined;
261
280
  activation?: {
262
281
  keywords: string[];
@@ -290,6 +309,7 @@ declare const MemoryFrontmatterSchema: z.ZodEffects<z.ZodObject<{
290
309
  severity?: "warn" | "block" | undefined;
291
310
  autogen?: boolean | undefined;
292
311
  last_fired?: string | null | undefined;
312
+ promoted_at?: string | undefined;
293
313
  } | undefined;
294
314
  activation?: {
295
315
  keywords?: string[] | undefined;
@@ -341,6 +361,7 @@ declare const MemoryFrontmatterSchema: z.ZodEffects<z.ZodObject<{
341
361
  flags?: string | undefined;
342
362
  command?: string | undefined;
343
363
  timeout_ms?: number | undefined;
364
+ promoted_at?: string | undefined;
344
365
  } | undefined;
345
366
  activation?: {
346
367
  keywords: string[];
@@ -374,6 +395,7 @@ declare const MemoryFrontmatterSchema: z.ZodEffects<z.ZodObject<{
374
395
  severity?: "warn" | "block" | undefined;
375
396
  autogen?: boolean | undefined;
376
397
  last_fired?: string | null | undefined;
398
+ promoted_at?: string | undefined;
377
399
  } | undefined;
378
400
  activation?: {
379
401
  keywords?: string[] | undefined;
@@ -652,7 +674,12 @@ interface PreventionEvent {
652
674
  id: string;
653
675
  /** Which gate path recorded it. */
654
676
  source: PreventionSource;
677
+ /** Optional detail for receipts; absent on logs written before v0.35.0. */
678
+ kind?: "regex" | "shell" | "test";
679
+ stage?: "pre-commit" | "pre-push" | "ci" | "manual";
680
+ exit_code?: number;
655
681
  }
682
+ type PreventionEventDetail = Pick<PreventionEvent, "kind" | "stage" | "exit_code">;
656
683
  declare function preventionLogPath(paths: HaivePaths): string;
657
684
  /** Append one catch to the log. Best-effort, creates the dir on demand. */
658
685
  declare function appendPreventionEvent(paths: HaivePaths, event: PreventionEvent): Promise<void>;
@@ -668,7 +695,33 @@ declare function appendPreventionEvent(paths: HaivePaths, event: PreventionEvent
668
695
  * write must never break a commit, so failures are swallowed. Returns the ids actually recorded
669
696
  * (i.e. not debounced), so callers can report "caught for you" without re-counting.
670
697
  */
671
- declare function recordPreventionHits(paths: HaivePaths, firedIds: string[], source: PreventionSource, now?: Date): Promise<string[]>;
698
+ declare function recordPreventionHits(paths: HaivePaths, firedIds: string[], source: PreventionSource, now?: Date, details?: Record<string, PreventionEventDetail>): Promise<string[]>;
699
+ interface PreventionReceiptRow {
700
+ at: string;
701
+ id: string;
702
+ title: string;
703
+ source: PreventionSource;
704
+ kind: "regex" | "shell" | "test" | null;
705
+ stage: "pre-commit" | "pre-push" | "ci" | "manual" | null;
706
+ exit_code: number | null;
707
+ message: string | null;
708
+ }
709
+ interface PreventionReceipt {
710
+ generated_at: string;
711
+ since: string;
712
+ window_days: number;
713
+ total: number;
714
+ previous_total: number;
715
+ prevented_count_total: number;
716
+ trend: PreventionTrend;
717
+ events: PreventionReceiptRow[];
718
+ }
719
+ /** Stable, deterministic aggregation used by the CLI and the CI PR comment. */
720
+ declare function buildPreventionReceipt(events: PreventionEvent[], memories: LoadedMemory[], usage: UsageIndex, options: {
721
+ since: Date;
722
+ now?: Date;
723
+ }): PreventionReceipt;
724
+ declare function renderPreventionReceipt(receipt: PreventionReceipt): string;
672
725
  /** Read all catch events (skips malformed lines). */
673
726
  declare function loadPreventionEvents(paths: HaivePaths): Promise<PreventionEvent[]>;
674
727
  interface PreventionTrend {
@@ -1965,6 +2018,68 @@ declare function extractSensorExamples(body: string): string[];
1965
2018
  */
1966
2019
  declare function addedLinesFromDiff(diff: string): string;
1967
2020
 
2021
+ type SensorEvaluationStage = "pre-commit" | "pre-push" | "ci" | "manual";
2022
+ type SensorEvaluationOutcome = "fired" | "silent" | "unrunnable";
2023
+ interface SensorEvaluation {
2024
+ at: string;
2025
+ memory_id: string;
2026
+ kind: "regex" | "shell" | "test";
2027
+ stage: SensorEvaluationStage;
2028
+ head_sha: string;
2029
+ scope_hash: string;
2030
+ outcome: SensorEvaluationOutcome;
2031
+ exit_code?: number;
2032
+ duration_ms?: number;
2033
+ }
2034
+ interface SensorFlap {
2035
+ memory_id: string;
2036
+ scope_hash: string;
2037
+ previous: SensorEvaluation;
2038
+ current: SensorEvaluation;
2039
+ }
2040
+ interface SensorHealth {
2041
+ memory_id: string;
2042
+ flap_count: number;
2043
+ flaps: SensorFlap[];
2044
+ quarantine_pending: boolean;
2045
+ never_fired: boolean;
2046
+ evaluation_count: number;
2047
+ }
2048
+ declare function sensorLedgerPath(paths: HaivePaths): string;
2049
+ /** Append evaluations and compact the rolling window when needed. Never throws. */
2050
+ declare function appendSensorEvaluations(paths: HaivePaths, evaluations: SensorEvaluation[]): Promise<void>;
2051
+ /** Load valid ledger rows, optionally bounded by an ISO timestamp. Never throws. */
2052
+ declare function loadSensorLedger(paths: HaivePaths, opts?: {
2053
+ since?: string;
2054
+ }): Promise<SensorEvaluation[]>;
2055
+ /** sha256(path + NUL + content), sorted by path. Missing files are ignored; empty scope is "". */
2056
+ declare function computeScopeHash(root: string, scopedFiles: string[]): string;
2057
+ /**
2058
+ * Deterministic health assessment. A flap is an adjacent fired/silent outcome change for the same
2059
+ * memory and identical scope hash inside the 30-day window. `unrunnable` rows never participate.
2060
+ */
2061
+ declare function assessSensorHealth(evaluations: SensorEvaluation[], now?: Date, opts?: {
2062
+ /**
2063
+ * memory_id → ISO timestamp of the sensor's last manual promotion back to block
2064
+ * (sensor.promoted_at). Evaluations at or before it are ignored: the promotion is the
2065
+ * human's assertion that the oracle was fixed, so pre-promotion flaps must not
2066
+ * re-quarantine it.
2067
+ */
2068
+ promotedAt?: ReadonlyMap<string, string>;
2069
+ }): SensorHealth[];
2070
+ /** Build the promoted_at map for {@link assessSensorHealth} from memory frontmatters. */
2071
+ declare function sensorPromotedAtMap(frontmatters: Iterable<{
2072
+ id: string;
2073
+ sensor?: {
2074
+ promoted_at?: string;
2075
+ } | null;
2076
+ }>): Map<string, string>;
2077
+ declare function quarantineNote(at: string, flapCount: number): string;
2078
+ /** Add or replace the single quarantine note. */
2079
+ declare function withQuarantineNote(body: string, at: string, flapCount: number): string;
2080
+ /** Manual promotion clears the machine-authored quarantine conclusion. */
2081
+ declare function withoutQuarantineNote(body: string): string;
2082
+
1968
2083
  interface SensorSuggestionOptions {
1969
2084
  /** Extra paths to put on the sensor. Defaults to the memory anchor paths. */
1970
2085
  paths?: string[];
@@ -2537,6 +2652,10 @@ interface GitCommit {
2537
2652
  subject: string;
2538
2653
  /** Files touched by the commit (optional — improves anchoring). */
2539
2654
  files?: string[];
2655
+ /** Full commit body when available (used to resolve `This reverts commit <sha>`). */
2656
+ body?: string;
2657
+ /** Explicit failed/reverted SHA when a caller already parsed it. */
2658
+ reverted_sha?: string;
2540
2659
  }
2541
2660
  interface SeedProposal {
2542
2661
  /** Kebab-ish slug derived from the reverted subject. */
@@ -2560,6 +2679,45 @@ declare function isNoiseSubject(subject: string): boolean;
2560
2679
  */
2561
2680
  declare function proposeSeedsFromCommits(commits: GitCommit[], limit?: number): SeedProposal[];
2562
2681
 
2682
+ interface GitWatchState {
2683
+ last_scanned_sha: string;
2684
+ }
2685
+ type GitWatchPlan = {
2686
+ action: "initialize";
2687
+ next: GitWatchState;
2688
+ } | {
2689
+ action: "idle";
2690
+ next: GitWatchState;
2691
+ } | {
2692
+ action: "scan";
2693
+ range: string;
2694
+ next: GitWatchState;
2695
+ };
2696
+ declare function planGitWatch(state: GitWatchState | null, headSha: string): GitWatchPlan;
2697
+ interface GateMissProposal {
2698
+ slug: string;
2699
+ reverted_sha: string;
2700
+ revert_sha: string;
2701
+ subject: string;
2702
+ paths: string[];
2703
+ kind: "revert" | "fixup" | "workaround";
2704
+ gate_passed: boolean;
2705
+ body: string;
2706
+ }
2707
+ declare function revertedShaFromCommit(commit: GitCommit): string | null;
2708
+ declare function existingGateMissShas(memories: LoadedMemory[]): Set<string>;
2709
+ declare function gatePassedShas(evaluations: SensorEvaluation[]): Set<string>;
2710
+ /** Build proposed, never-validated lessons from incremental revert/hotfix signals. */
2711
+ declare function proposeGateMissDrafts(commits: GitCommit[], existingRevertedShas: Set<string>, passedShas: Set<string>, opts?: {
2712
+ /**
2713
+ * Returns true when a repo-relative path still exists on disk. Anchor candidates come from
2714
+ * the REVERT commit's file list — files the revert often just deleted. Anchoring a draft to
2715
+ * a deleted path makes the very next `sync` mark it stale, so the learning loop eats its own
2716
+ * drafts before anyone reviews them. When omitted, paths are kept (pure callers/tests).
2717
+ */
2718
+ pathExists?: (rel: string) => boolean;
2719
+ }): GateMissProposal[];
2720
+
2563
2721
  /**
2564
2722
  * Pure stack-detection helpers for cold-start seeding.
2565
2723
  *
@@ -2811,4 +2969,4 @@ interface AgentContext {
2811
2969
  }
2812
2970
  declare function detectAgentContext(env?: Record<string, string | undefined>): AgentContext;
2813
2971
 
2814
- 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 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 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 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, loadMemoriesFromDirDetailed, 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 };
2972
+ 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, sensorPromotedAtMap, 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 };