@andorra-labs/code 0.1.15 → 0.1.17

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.
Files changed (242) hide show
  1. package/dist/src/acp-agent.d.ts +6 -0
  2. package/dist/src/acp-agent.js +15 -4
  3. package/dist/src/agent-definitions.js +29 -6
  4. package/dist/src/agent-execution.js +15 -10
  5. package/dist/src/agent-mcp-catalog.js +1 -0
  6. package/dist/src/agent-mcp.d.ts +4 -1
  7. package/dist/src/agent-mcp.js +46 -10
  8. package/dist/src/andorra/entry.d.ts +10 -0
  9. package/dist/src/andorra/entry.js +18 -4
  10. package/dist/src/andorra/hosted.d.ts +2 -1
  11. package/dist/src/andorra/hosted.js +2 -1
  12. package/dist/src/andorra/notices.d.ts +5 -0
  13. package/dist/src/andorra/notices.js +7 -0
  14. package/dist/src/andorra/state.d.ts +3 -2
  15. package/dist/src/andorra/state.js +4 -4
  16. package/dist/src/andorra/terminal.js +7 -2
  17. package/dist/src/anthropic-credentials.js +2 -0
  18. package/dist/src/app-server/error.d.ts +5 -0
  19. package/dist/src/app-server/error.js +7 -0
  20. package/dist/src/app-server/protocol.d.ts +22 -44
  21. package/dist/src/app-server/protocol.js +5 -1
  22. package/dist/src/app-server/workspace.d.ts +89 -0
  23. package/dist/src/app-server/workspace.js +457 -11
  24. package/dist/src/app-server.d.ts +465 -32
  25. package/dist/src/app-server.js +3308 -517
  26. package/dist/src/auth/deployment.js +2 -2
  27. package/dist/src/bridge/cloud.d.ts +27 -0
  28. package/dist/src/bridge/cloud.js +187 -0
  29. package/dist/src/bridge/command.d.ts +30 -0
  30. package/dist/src/bridge/command.js +347 -0
  31. package/dist/src/bridge/control.d.ts +68 -0
  32. package/dist/src/bridge/control.js +233 -0
  33. package/dist/src/bridge/engines.d.ts +90 -0
  34. package/dist/src/bridge/engines.js +601 -0
  35. package/dist/src/bridge/host-ops.d.ts +9 -0
  36. package/dist/src/bridge/host-ops.js +129 -0
  37. package/dist/src/bridge/host.d.ts +47 -0
  38. package/dist/src/bridge/host.js +540 -0
  39. package/dist/src/bridge/link.d.ts +38 -0
  40. package/dist/src/bridge/link.js +508 -0
  41. package/dist/src/bridge/login-link.d.ts +29 -0
  42. package/dist/src/bridge/login-link.js +54 -0
  43. package/dist/src/bridge/protocol.d.ts +136 -0
  44. package/dist/src/bridge/protocol.js +11 -0
  45. package/dist/src/bridge/store.d.ts +12 -0
  46. package/dist/src/bridge/store.js +61 -0
  47. package/dist/src/bridge/wording.d.ts +6 -0
  48. package/dist/src/bridge/wording.js +10 -0
  49. package/dist/src/browser-runner.js +1 -0
  50. package/dist/src/browser-server.js +7 -1
  51. package/dist/src/browser-ui/style.css +3 -3
  52. package/dist/src/browser-ui/tokens.css +28 -17
  53. package/dist/src/change-authors.d.ts +41 -0
  54. package/dist/src/change-authors.js +146 -0
  55. package/dist/src/claude-provider.js +3 -1
  56. package/dist/src/cli.js +202 -38
  57. package/dist/src/codex-errors.js +4 -1
  58. package/dist/src/coding-tools.js +15 -15
  59. package/dist/src/command-screens.d.ts +6 -0
  60. package/dist/src/command-screens.js +19 -14
  61. package/dist/src/commands.d.ts +14 -1
  62. package/dist/src/compaction-phrases.d.ts +4 -0
  63. package/dist/src/compaction-phrases.js +20 -0
  64. package/dist/src/completion.js +82 -5
  65. package/dist/src/config.d.ts +71 -3
  66. package/dist/src/config.js +202 -77
  67. package/dist/src/context-compaction.js +2 -1
  68. package/dist/src/deadline.js +13 -1
  69. package/dist/src/decision/DecisionManager.js +3 -2
  70. package/dist/src/decision/checks.js +1 -1
  71. package/dist/src/decision/requestPhrases.d.ts +4 -0
  72. package/dist/src/decision/requestPhrases.js +22 -0
  73. package/dist/src/default-graph.js +1 -1
  74. package/dist/src/file-diff.d.ts +4 -0
  75. package/dist/src/file-diff.js +2 -1
  76. package/dist/src/github-app/agent-writes.d.ts +102 -0
  77. package/dist/src/github-app/agent-writes.js +320 -0
  78. package/dist/src/github-app/client.d.ts +349 -0
  79. package/dist/src/github-app/client.js +810 -0
  80. package/dist/src/github-app/event-source.d.ts +208 -0
  81. package/dist/src/github-app/event-source.js +684 -0
  82. package/dist/src/github-app/metrics.d.ts +32 -0
  83. package/dist/src/github-app/metrics.js +49 -0
  84. package/dist/src/github-app/review-loop.d.ts +274 -0
  85. package/dist/src/github-app/review-loop.js +1177 -0
  86. package/dist/src/github-app/review-node.d.ts +81 -0
  87. package/dist/src/github-app/review-node.js +205 -0
  88. package/dist/src/github-app/review-post.d.ts +73 -0
  89. package/dist/src/github-app/review-post.js +139 -0
  90. package/dist/src/github-app/review-text.d.ts +107 -0
  91. package/dist/src/github-app/review-text.js +1133 -0
  92. package/dist/src/github-app/review-threads.d.ts +47 -0
  93. package/dist/src/github-app/review-threads.js +107 -0
  94. package/dist/src/github-app/reviewer.d.ts +121 -0
  95. package/dist/src/github-app/reviewer.js +598 -0
  96. package/dist/src/github-app/store.d.ts +59 -0
  97. package/dist/src/github-app/store.js +148 -0
  98. package/dist/src/github-app/triggers.d.ts +141 -0
  99. package/dist/src/github-app/triggers.js +441 -0
  100. package/dist/src/github-inbox.d.ts +55 -0
  101. package/dist/src/github-inbox.js +153 -0
  102. package/dist/src/github-names.d.ts +8 -0
  103. package/dist/src/github-names.js +8 -0
  104. package/dist/src/glob-search.d.ts +61 -0
  105. package/dist/src/glob-search.js +180 -0
  106. package/dist/src/graph-health.js +13 -4
  107. package/dist/src/graph-manager-chat.js +1 -1
  108. package/dist/src/graph-preview.d.ts +46 -0
  109. package/dist/src/graph-preview.js +55 -0
  110. package/dist/src/graph-provider-portability.js +34 -11
  111. package/dist/src/graph-quota.d.ts +29 -2
  112. package/dist/src/graph-quota.js +68 -10
  113. package/dist/src/graph-runner.js +88 -10
  114. package/dist/src/graph-server.d.ts +1 -1
  115. package/dist/src/graph-server.js +11 -9
  116. package/dist/src/graph-sync.js +3 -3
  117. package/dist/src/graph-ui/app.js +201 -40
  118. package/dist/src/graph-ui/controls.css +1 -0
  119. package/dist/src/graph-ui/embed.js +2 -2
  120. package/dist/src/graph-ui/icons.js +3 -1
  121. package/dist/src/graph-ui/index.html +1 -1
  122. package/dist/src/graph-ui/manager.css +1 -1
  123. package/dist/src/graph-ui/manager.js +2 -2
  124. package/dist/src/graph-ui/sidebar.js +30 -0
  125. package/dist/src/graph-ui/studio-canvas.js +26 -13
  126. package/dist/src/graph-ui/studio.css +15 -7
  127. package/dist/src/graph-ui/studio.js +26 -5
  128. package/dist/src/graph-ui/style.css +77 -45
  129. package/dist/src/graph-ui/theme.js +3 -36
  130. package/dist/src/graph-ui/tokens.css +28 -20
  131. package/dist/src/graphs.d.ts +34 -1
  132. package/dist/src/graphs.js +162 -17
  133. package/dist/src/image-input.d.ts +16 -0
  134. package/dist/src/image-input.js +41 -0
  135. package/dist/src/membership.d.ts +30 -1
  136. package/dist/src/membership.js +48 -8
  137. package/dist/src/model-health-cache.js +1 -1
  138. package/dist/src/model-metadata.d.ts +7 -1
  139. package/dist/src/model-metadata.js +39 -17
  140. package/dist/src/model-relay/local.d.ts +116 -0
  141. package/dist/src/model-relay/local.js +468 -0
  142. package/dist/src/model-relay/remote.d.ts +129 -0
  143. package/dist/src/model-relay/remote.js +252 -0
  144. package/dist/src/model-relay/runs.d.ts +34 -0
  145. package/dist/src/model-relay/runs.js +146 -0
  146. package/dist/src/model-relay/wire.d.ts +5 -0
  147. package/dist/src/model-relay/wire.js +5 -0
  148. package/dist/src/plan-pass.d.ts +59 -0
  149. package/dist/src/plan-pass.js +165 -0
  150. package/dist/src/project-registry.d.ts +21 -0
  151. package/dist/src/project-registry.js +74 -0
  152. package/dist/src/provider-engine.js +3 -0
  153. package/dist/src/provider-import.d.ts +0 -12
  154. package/dist/src/provider-import.js +7 -195
  155. package/dist/src/providers.d.ts +40 -2
  156. package/dist/src/providers.js +93 -23
  157. package/dist/src/pull-request-checks.d.ts +26 -0
  158. package/dist/src/pull-request-checks.js +56 -0
  159. package/dist/src/pull-request-conversation.d.ts +134 -0
  160. package/dist/src/pull-request-conversation.js +221 -0
  161. package/dist/src/pull-request-create.d.ts +175 -0
  162. package/dist/src/pull-request-create.js +392 -0
  163. package/dist/src/pull-request-details.d.ts +242 -0
  164. package/dist/src/pull-request-details.js +614 -0
  165. package/dist/src/pull-request-edit.d.ts +23 -0
  166. package/dist/src/pull-request-edit.js +91 -0
  167. package/dist/src/pull-request-logs.d.ts +87 -0
  168. package/dist/src/pull-request-logs.js +183 -0
  169. package/dist/src/pull-request-merge.d.ts +112 -0
  170. package/dist/src/pull-request-merge.js +258 -0
  171. package/dist/src/pull-request-review.d.ts +137 -0
  172. package/dist/src/pull-request-review.js +401 -0
  173. package/dist/src/pull-requests.d.ts +369 -8
  174. package/dist/src/pull-requests.js +524 -55
  175. package/dist/src/react-runtime.js +38 -5
  176. package/dist/src/remote/engine-pool.d.ts +88 -4
  177. package/dist/src/remote/engine-pool.js +379 -90
  178. package/dist/src/remote/roots.d.ts +19 -0
  179. package/dist/src/remote/roots.js +45 -7
  180. package/dist/src/remote/types.d.ts +0 -44
  181. package/dist/src/run-control.d.ts +17 -0
  182. package/dist/src/run-control.js +47 -0
  183. package/dist/src/run-progress.d.ts +10 -0
  184. package/dist/src/run-progress.js +122 -0
  185. package/dist/src/run-records.d.ts +7 -2
  186. package/dist/src/run-records.js +71 -6
  187. package/dist/src/runtime.d.ts +9 -1
  188. package/dist/src/runtime.js +24 -4
  189. package/dist/src/session-changes.d.ts +35 -0
  190. package/dist/src/session-changes.js +194 -6
  191. package/dist/src/session-monitor.js +2 -1
  192. package/dist/src/session-reaper.d.ts +1 -1
  193. package/dist/src/session-reaper.js +6 -1
  194. package/dist/src/session-summary.d.ts +2 -1
  195. package/dist/src/session-summary.js +2 -1
  196. package/dist/src/sessions.d.ts +11 -1
  197. package/dist/src/sessions.js +17 -4
  198. package/dist/src/skills/bundled/diagram/SKILL.md +5 -3
  199. package/dist/src/skills/bundled/graph-manager/SKILL.md +7 -4
  200. package/dist/src/skills/bundled/provenance.json +2 -2
  201. package/dist/src/skills/runtime-skills.js +1 -1
  202. package/dist/src/subagent-run.js +1 -0
  203. package/dist/src/telemetry/capture-core.d.ts +17 -0
  204. package/dist/src/telemetry/capture-core.js +59 -1
  205. package/dist/src/telemetry/classify.d.ts +3 -1
  206. package/dist/src/telemetry/classify.js +37 -0
  207. package/dist/src/telemetry/emitter.d.ts +17 -0
  208. package/dist/src/telemetry/emitter.js +76 -5
  209. package/dist/src/telemetry/schema.d.ts +47 -2
  210. package/dist/src/telemetry/schema.js +120 -5
  211. package/dist/src/telemetry/surface.d.ts +3 -1
  212. package/dist/src/telemetry/surface.js +4 -1
  213. package/dist/src/telemetry/uploader.d.ts +6 -1
  214. package/dist/src/telemetry/uploader.js +22 -3
  215. package/dist/src/terminal-ui.d.ts +1 -0
  216. package/dist/src/terminal-ui.js +10 -3
  217. package/dist/src/test-edit-guard.d.ts +7 -0
  218. package/dist/src/test-edit-guard.js +49 -1
  219. package/dist/src/timers.d.ts +2 -0
  220. package/dist/src/tools.js +59 -9
  221. package/dist/src/transcript.js +8 -2
  222. package/dist/src/types.d.ts +7 -0
  223. package/dist/src/usage-analytics.js +18 -10
  224. package/package.json +6 -1
  225. package/dist/src/remote/cert.d.ts +0 -11
  226. package/dist/src/remote/cert.js +0 -87
  227. package/dist/src/remote/client.d.ts +0 -119
  228. package/dist/src/remote/client.js +0 -544
  229. package/dist/src/remote/command.d.ts +0 -4
  230. package/dist/src/remote/command.js +0 -194
  231. package/dist/src/remote/errors.d.ts +0 -11
  232. package/dist/src/remote/errors.js +0 -14
  233. package/dist/src/remote/network.d.ts +0 -22
  234. package/dist/src/remote/network.js +0 -102
  235. package/dist/src/remote/pairing.d.ts +0 -63
  236. package/dist/src/remote/pairing.js +0 -299
  237. package/dist/src/remote/pem.d.ts +0 -2
  238. package/dist/src/remote/pem.js +0 -7
  239. package/dist/src/remote/serve.d.ts +0 -68
  240. package/dist/src/remote/serve.js +0 -244
  241. package/dist/src/remote/server.d.ts +0 -21
  242. package/dist/src/remote/server.js +0 -406
@@ -0,0 +1,208 @@
1
+ import { type GitHubAppClient, type GitHubAppStatus, type GitHubCoverage, type MentionNotice } from './client.js';
2
+ import { GitHubWatchMetrics, type GitHubWatchSummary } from './metrics.js';
3
+ import { type EventMode } from './store.js';
4
+ /**
5
+ * The engine's GitHub App event source (`design/specs/github-app.md`, "The event source"). It tells the
6
+ * account API which PRs this engine watches, pulls the notices the webhook receiver wrote for them, and turns
7
+ * each one into a re-read through `gh` by the pull-request watcher. A notice is a doorbell: it never carries
8
+ * PR text, and nothing is believed from it except that a PR changed.
9
+ *
10
+ * It acts only in the process that holds the watcher's lease, only while the engine is signed in to Andorra,
11
+ * and only while `github.app.enabled` is not false and `ANDORRA_GITHUB_APP` is not `off`. Otherwise every PR
12
+ * is polled through `gh` every 60 seconds, as before the App existed.
13
+ */
14
+ export declare const PULL_INTERVAL_MS = 30000;
15
+ export declare const PROBE_INTERVAL_MS: number;
16
+ export declare const RENEW_INTERVAL_MS: number;
17
+ export declare const UNCOVERED_RESEND_MS: number;
18
+ export declare const MIN_SUBSCRIBE_GAP_MS = 10000;
19
+ export declare const SUBSCRIBE_RETRY_MS = 60000;
20
+ export declare const HEARTBEAT_MS = 60000;
21
+ export declare const BREAKER_THRESHOLD = 3;
22
+ export declare const BREAKER_MIN_BACKOFF_MS = 60000;
23
+ export declare const BREAKER_MAX_BACKOFF_MS: number;
24
+ export declare const MAX_SUBSCRIBED = 50;
25
+ export declare const SEEN_IDS = 1000;
26
+ /** The shortest wait between two runs the source schedules itself, whatever is due: no due time in the past can spin it. */
27
+ export declare const MIN_TICK_MS = 1000;
28
+ /** Renewals start this long before the service's `renewBy`, so one failed attempt does not lose coverage. */
29
+ export declare const RENEW_LEAD_MS: number;
30
+ /**
31
+ * Coverage is never trusted longer than this after the last successful subscription, whatever `renewBy` says:
32
+ * the service stops writing notices for a subscription whose access check is older than 36 hours.
33
+ */
34
+ export declare const COVERAGE_TTL_MS: number;
35
+ /** A signed-out answer is believed this long (or until `nudge()`), so a signed-out engine does not take the auth lock every tick. */
36
+ export declare const SIGNED_OUT_RECHECK_MS: number;
37
+ /** A non-holder believes the holder's `state.json` only this long; the holder rewrites it at least every minute. */
38
+ export declare const SHARED_STATE_TTL_MS: number;
39
+ export interface EventSourceWatcher {
40
+ /** Claims the watcher's lease (the `.watcher` lock); false when another process on this home holds it. */
41
+ claim(): Promise<boolean>;
42
+ /** Whether this process holds the lease now, without trying to claim it. */
43
+ holdsLease(): boolean;
44
+ /** Re-reads one session's PR soon (debounced per PR); settles once that read is done. */
45
+ checkNow(sessionId: string, options?: {
46
+ force?: boolean;
47
+ }): Promise<void> | void;
48
+ /** One forced pass over every watched PR, as at start-up. */
49
+ fullPass(): void;
50
+ /** The head commit the watcher last read for a session, if it read one. */
51
+ headSha?(sessionId: string): string | undefined;
52
+ }
53
+ export interface GitHubEventSourceOptions {
54
+ home: string;
55
+ client: GitHubAppClient;
56
+ watcher: EventSourceWatcher;
57
+ /** Whether the engine is signed in to Andorra; `signal` is aborted by `stop()`, so it never waits on the auth lock. */
58
+ signedIn(signal?: AbortSignal): Promise<boolean>;
59
+ /** `github.app.enabled` is not false and `ANDORRA_GITHUB_APP` is not `off`. */
60
+ locallyEnabled(): Promise<boolean>;
61
+ onStale?(sessionId: string): void;
62
+ /**
63
+ * A `request` notice (a mention of the App's bot on a PR) for the one session it goes to: of the sessions
64
+ * tracking that PR, the one that attached it last. Called once per notice id; the handler checks the rest.
65
+ */
66
+ onRequest?(sessionId: string, notice: MentionNotice): void;
67
+ /**
68
+ * This process holds the watcher's lease and did not on its last run (or this is its first): another process
69
+ * may have pulled notices and acted on mentions meanwhile. The cursor is read again here; this is for the rest.
70
+ */
71
+ onLeaseAcquired?(): void;
72
+ onSummary?(summary: GitHubWatchSummary): void | Promise<void>;
73
+ log?(level: 'info' | 'warn', detail: string): void;
74
+ now?(): number;
75
+ isReviewer?(login: string | undefined): boolean;
76
+ metrics?: GitHubWatchMetrics;
77
+ /** The timers `start()` schedules runs with (tests pass a fake clock's). */
78
+ timers?: {
79
+ setTimeout(callback: () => void, ms: number): unknown;
80
+ clearTimeout(handle: unknown): void;
81
+ };
82
+ }
83
+ /** The watcher polls a PR in these states only as a 10-minute safety net: notices reach it. */
84
+ export declare const watcherCovered: (coverage: GitHubCoverage) => boolean;
85
+ export interface CoverageSnapshot {
86
+ holder: boolean;
87
+ mode: EventMode;
88
+ reason?: GitHubCoverage;
89
+ connected?: boolean;
90
+ pullRequests: {
91
+ sessionId: string;
92
+ url: string;
93
+ coverage: GitHubCoverage;
94
+ }[];
95
+ }
96
+ export declare class GitHubEventSource {
97
+ private readonly options;
98
+ private readonly metrics;
99
+ private readonly now;
100
+ private readonly isReviewer;
101
+ /** off: signed out, switched off here, or nothing learned yet. disabled: the service said `enabled: false` or not allowed. */
102
+ private mode;
103
+ private offReason;
104
+ private breakerOpen;
105
+ private failures;
106
+ private engine?;
107
+ private cursor?;
108
+ private cursorLoaded;
109
+ private readonly coverage;
110
+ private readonly limited;
111
+ private subscribedKeys?;
112
+ private subscribedSent;
113
+ private subscribedHeads;
114
+ private lastSubscribeAt?;
115
+ private renewAt?;
116
+ /** Until when the last subscription's coverage holds: past it, with no renewal, every PR is polled again. */
117
+ private coverageValidUntil?;
118
+ private subscribeRequested;
119
+ private subscribeRetryAt;
120
+ private subscribeFailed;
121
+ private connected?;
122
+ private nextPullAt;
123
+ private nextProbeAt;
124
+ private readonly seenIds;
125
+ private readonly seenOrder;
126
+ private watched;
127
+ private holder;
128
+ private readonly wakeNotices;
129
+ private ticking?;
130
+ private again;
131
+ private timer?;
132
+ private timerAt?;
133
+ private stopped;
134
+ private started;
135
+ private sharedWritten?;
136
+ private sharedWrittenAt;
137
+ /** Until when a signed-out answer stands without asking again. */
138
+ private signedOutUntil;
139
+ /** Aborted by `stop()`: every account-API call in flight is cancelled with it. */
140
+ private readonly abort;
141
+ private readonly timers;
142
+ constructor(options: GitHubEventSourceOptions);
143
+ start(): void;
144
+ stop(): Promise<void>;
145
+ /** Something changed here (a PR attached, finished or dismissed; a sign-in or sign-out): look again soon. */
146
+ nudge(): void;
147
+ /** Subscriptions are sent again on the next tick (after a disconnect, or a connection seen by `github.status`). */
148
+ refresh(): void;
149
+ /**
150
+ * What `github.status` just read from the service. A connection this source did not know of (the person
151
+ * connected GitHub in Settings), or the service on again while this source believed it off, is acted on now
152
+ * rather than at the next 10-minute probe.
153
+ */
154
+ noteStatus(status: GitHubAppStatus): void;
155
+ coverageOf(sessionId: string): GitHubCoverage;
156
+ private coverageExpired;
157
+ /** For the watcher: whether notices reach this session's PR, so it is polled only every 10 minutes. */
158
+ covers(sessionId: string): boolean;
159
+ /** For the measures: one gh call the watcher made for a session. Nothing is counted while the source is off. */
160
+ countGhCall(sessionId: string): void;
161
+ /** The watcher armed an Auto-fix wake: if a code-review notice caused it, its latency is recorded. */
162
+ woke(sessionId: string): void;
163
+ get eventMode(): EventMode;
164
+ private get modeReason();
165
+ /** What `github.status` reports: this process's view when it holds the lease, else the holder's saved view. */
166
+ snapshot(): Promise<CoverageSnapshot>;
167
+ private schedule;
168
+ /** One look at everything: tests drive it directly with a fake clock. */
169
+ tick(): Promise<void>;
170
+ private setOff;
171
+ private setDisabled;
172
+ private list;
173
+ private run;
174
+ /**
175
+ * When to run next: the earliest of what is due, but never sooner than `MIN_TICK_MS`, so a due time that
176
+ * cannot be acted on yet (a failed renewal waiting out its retry, a long `retry-after`) never spins the source.
177
+ */
178
+ private nextDelay;
179
+ private watchedKeys;
180
+ private anyCoveredAnswer;
181
+ /** A PR sent in the last subscription that it did not cover (a PR over the 50 is not counted: sending again changes nothing). */
182
+ private anyUncovered;
183
+ /** A head SHA the watcher has learned for a PR the last subscription sent without one. */
184
+ private headLearned;
185
+ private subscribeDue;
186
+ private maybeSubscribe;
187
+ /**
188
+ * A failure that changes the mode rather than being retried: signed out, not allowed, or an account API
189
+ * without the GitHub App routes (`404`, as before they are deployed), which is treated like the service
190
+ * saying it is off: one `GET /v1/github` every 10 minutes, not a call a minute. Returns true when it was one
191
+ * of those.
192
+ */
193
+ private failedCall;
194
+ /** While the service says it is off, `GET /v1/github` every 10 minutes is how the engine learns it is back. */
195
+ private probeEnabled;
196
+ /** Nothing covered and GitHub not connected: `GET /v1/github` every 10 minutes notices a connection made elsewhere. */
197
+ private maybeProbeConnection;
198
+ private backoff;
199
+ private maybePull;
200
+ private remember;
201
+ private sessionsFor;
202
+ /** Each new notice becomes a re-read through gh (or only a stale mark); a duplicate becomes nothing. */
203
+ private react;
204
+ /** A mention: every session tracking the PR shows the new comment; one task, the one that attached the PR last, is asked. */
205
+ private request;
206
+ /** The holder's view for `github.status` in other processes: written when it changes, and at least every minute. */
207
+ private share;
208
+ }