forked from theDakshJaitly/mex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
62 lines (57 loc) · 2.33 KB
/
index.ts
File metadata and controls
62 lines (57 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
* Public API for `mex-agent`.
*
* Everything re-exported from this file is part of the package's compatibility
* contract. See COMPATIBILITY.md at the repo root for the versioning policy
* and what counts as a breaking change.
*
* Internal modules (`src/cli.ts`, `src/sync/`, `src/scanner/`, `src/setup/`,
* `src/tui.ts`, `src/watch.ts`, `src/doctor.ts`, etc.) are NOT part of the
* contract and may change without notice. Import only from `"mex-agent"`.
*/
// ── Config ───────────────────────────────────────────────────────────────────
export { findConfig, createConfig } from "./config.js";
export type { CreateConfigInput } from "./config.js";
// ── Events (append-only JSONL log) ───────────────────────────────────────────
export {
appendEvent,
readEvents,
eventLogPath,
EVENT_KINDS,
} from "./events.js";
export type { EventEntry, EventKind, LogOpts } from "./events.js";
// ── Drift detection ──────────────────────────────────────────────────────────
export {
runDriftCheck,
DEFAULT_SCAFFOLD_PATTERNS,
} from "./drift/index.js";
export type { RunDriftCheckOpts } from "./drift/index.js";
export { parseFrontmatter } from "./drift/frontmatter.js";
export { DEFAULT_STALENESS_THRESHOLDS } from "./drift/checkers/staleness.js";
// ── Heartbeat (scaffold staleness + memory cleanup) ──────────────────────────
export {
checkHeartbeat,
runHeartbeat,
DEFAULT_HEARTBEAT_PATTERNS,
} from "./heartbeat.js";
export type {
HeartbeatResult,
HeartbeatOpts,
CheckHeartbeatOpts,
} from "./heartbeat.js";
// ── Shared types ─────────────────────────────────────────────────────────────
export type {
AiTool,
MexConfig,
StalenessThresholds,
WatchConfig,
HeartbeatConfig,
ScaffoldFrontmatter,
FrontmatterEdge,
DriftReport,
DriftIssue,
IssueCode,
Severity,
Claim,
ClaimKind,
} from "./types.js";