-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
59 lines (55 loc) · 1.22 KB
/
Copy pathindex.ts
File metadata and controls
59 lines (55 loc) · 1.22 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
/**
* Phase 5 — GitHub issue watcher — public exports.
*
* The watcher polls a target label on a GitHub repo, fans each newly-seen
* issue out into a batch (splitIssues -> spawn via the existing bash
* spawner), and tracks idempotency durably in a state file so a restart
* never double-spawns. See docs/phase5-issue-watcher.md.
*/
export {
watchIssues,
defaultSpawn,
DEFAULT_POLL_INTERVAL_MS,
DEFAULT_MAX_PER_SWEEP,
} from "./watch.js"
export type {
WatcherConfig,
WatcherBatchInfo,
SpawnBatch,
SpawnResult,
SweepResult,
WatchResult,
} from "./watch.js"
export {
loadWatcherState,
loadWatcherStateSync,
saveWatcherState,
saveWatcherStateSync,
markProcessed,
isProcessed,
defaultWatcherState,
} from "./state.js"
export type { WatcherIssueEntry, WatcherIssueStatus, WatcherState } from "./state.js"
export {
ghApi,
buildGhUrl,
listIssues,
getIssue,
addLabel,
createGhClient,
toIssue,
GhApiError,
DEFAULT_GH_BASE_URL,
GH_API_VERSION,
ISSUES_PAGE_SIZE,
DEFAULT_MAX_ISSUES,
} from "./github.js"
export type {
GhClient,
GhClientOptions,
GhRequestOptions,
GitHubIssue,
ListIssuesOptions,
} from "./github.js"
export { watchMain, parseWatchArgs } from "./cli.js"
export type { WatchCliOptions } from "./cli.js"