@hearsay-tools/squawk 0.18.0-pr3328.5835.2 → 0.18.0-pr3330.5844
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/README.md +1 -1
- package/dist/automations/automation-cli.js +0 -5
- package/dist/automations/automation-cli.js.map +1 -1
- package/dist/automations/github-baseline.js +0 -2
- package/dist/automations/github-baseline.js.map +1 -1
- package/dist/automations/scheduler.d.ts +3 -2
- package/dist/automations/scheduler.js +11 -31
- package/dist/automations/scheduler.js.map +1 -1
- package/dist/automations/service.d.ts +0 -4
- package/dist/automations/task-template.js +2 -12
- package/dist/automations/task-template.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +41 -41
- package/dist/ci-wait/tools.d.ts +4 -4
- package/dist/contract/automation-storage.d.ts +0 -4
- package/dist/contract/automations.d.ts +0 -26
- package/dist/contract/index.js +0 -22
- package/dist/delegation/routes.d.ts +13 -13
- package/dist/delegation/transport.d.ts +9 -9
- package/dist/release/stable.d.ts +20 -0
- package/dist/release/stable.js +26 -0
- package/dist/release/stable.js.map +1 -1
- package/dist/server/forge/github.d.ts +17 -11
- package/dist/server/forge/github.js +139 -22
- package/dist/server/forge/github.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/server.d.ts +1632 -1640
- package/dist/server/server.js +11 -7
- package/dist/server/server.js.map +1 -1
- package/dist/voice/routes.d.ts +19 -19
- package/dist/workflows/run/wait-engine.d.ts +72 -72
- package/package.json +4 -4
- package/web/dist/assets/{activity-motion-BdGFmrw-.js → activity-motion-2nE59DAT.js} +1 -1
- package/web/dist/assets/{activity-route-1OFUVP3A.js → activity-route-R9lPc2jy.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-BiNPMHC6.js → commit-diff-panel-BJyNYmCY.js} +1 -1
- package/web/dist/assets/{diff-BHwQUS2W.js → diff-D_9MtICR.js} +2 -2
- package/web/dist/assets/{diff-view-BBhxSIlf.js → diff-view-xRPxXHXl.js} +1 -1
- package/web/dist/assets/{git-toolbar-BnOaO_OH.js → git-toolbar-D9taioU5.js} +1 -1
- package/web/dist/assets/{github-CXc8nroh.js → github-bv_pBGc5.js} +1 -1
- package/web/dist/assets/{global-activity-route-Dt83uvZc.js → global-activity-route-QxTPDyx-.js} +1 -1
- package/web/dist/assets/{index-B5LayM4y.js → index-DgU3yYUl.js} +6 -6
- package/web/dist/assets/{preview-pane-connected-JHeCgq7I.js → preview-pane-connected-cD-MTiVN.js} +1 -1
- package/web/dist/assets/{repo-git-wEXDON29.js → repo-git-E_4Ighvg.js} +1 -1
- package/web/dist/assets/{report-reader-DJ_0htSx.js → report-reader-XVNQsXB4.js} +1 -1
- package/web/dist/assets/{reports-BIXmTBFJ.js → reports-B_PVTBzP.js} +1 -1
- package/web/dist/assets/{run-header-Bgtlx-vc.js → run-header-wm0gSs6X.js} +1 -1
- package/web/dist/assets/{skills-BJ2nSfyr.js → skills-D2RLxUIc.js} +1 -1
- package/web/dist/assets/{task-changes-Dz0udwrE.js → task-changes-DNtkfFzQ.js} +1 -1
- package/web/dist/assets/{task-commits-5uILgm5M.js → task-commits-CivO-OrN.js} +1 -1
- package/web/dist/assets/{task-files-DGZjTKSS.js → task-files-dczkxV_G.js} +1 -1
- package/web/dist/assets/{task-github-item-npfGLu9C.js → task-github-item-DKV4yrcf.js} +1 -1
- package/web/dist/assets/{task-thread-DnpkXb5P.js → task-thread-DIaTTGEF.js} +1 -1
- package/web/dist/assets/{thread-state-BfrO2t7g.js → thread-state-DIozHuHb.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-DyVB4IBv.js → use-hand-to-agent-state-D58ayxI4.js} +1 -1
- package/web/dist/assets/{workflows-ByduCwgu.js → workflows-YMEsGXeB.js} +1 -1
- package/web/dist/index.html +1 -1
- package/dist/automations/github-repository.d.ts +0 -22
- package/dist/automations/github-repository.js +0 -40
- package/dist/automations/github-repository.js.map +0 -1
- package/dist/server/forge/github-cli.d.ts +0 -14
- package/dist/server/forge/github-cli.js +0 -25
- package/dist/server/forge/github-cli.js.map +0 -1
- package/dist/server/forge/github-repo-handle.d.ts +0 -42
- package/dist/server/forge/github-repo-handle.js +0 -160
- package/dist/server/forge/github-repo-handle.js.map +0 -1
|
@@ -6,11 +6,9 @@ import { activeWorkflowRunsArgs, parseActiveWorkflowRuns } from '../../ci-wait/g
|
|
|
6
6
|
import { pullRequestKey } from '../../runs/pull-requests.js';
|
|
7
7
|
import { matchesGithubPullRequest, mergedPullRequestObservations } from '../../merge-observations.js';
|
|
8
8
|
import { randomUUID } from 'node:crypto';
|
|
9
|
+
import { execFile } from 'node:child_process';
|
|
10
|
+
import { promisify } from 'node:util';
|
|
9
11
|
import { z } from 'zod';
|
|
10
|
-
import { gh, githubContext, parseOwnerName } from './github-cli.js';
|
|
11
|
-
import { canonicalRepoRef, discoverRepoHandle, forgetRepoHandle, forgettingNameOnMiss, resolveRepoHandle, sharedRepoHandle } from './github-repo-handle.js';
|
|
12
|
-
export { parseOwnerName } from './github-cli.js';
|
|
13
|
-
export { __clearRepoHandleCacheForTests, discoverRepoHandle, forgetRepoHandle, resolveRepoHandle } from './github-repo-handle.js';
|
|
14
12
|
import { GITHUB_COMMENT_COUNTS_MAX, GITHUB_SEARCH_MAX, REFERENCE_STATUS_MAX } from '../../contract/index.js';
|
|
15
13
|
import { fetchIssueProjects, fetchRepositoryProjects, fetchViewerLogin } from './github-filters.js';
|
|
16
14
|
import { fetchGithubMergeRequirements } from './github-merge-requirements.js';
|
|
@@ -26,6 +24,7 @@ import { refNumberFromUrl } from '../../contract/index.js';
|
|
|
26
24
|
* `/api/github`'s response shape is this driver's serialization and is
|
|
27
25
|
* protected by BACKWARD_COMPATIBILITY.md — additive changes only.
|
|
28
26
|
*/
|
|
27
|
+
const exec = promisify(execFile);
|
|
29
28
|
export const GH_PR_DIFF_FILE_CAP = 300;
|
|
30
29
|
export const GH_PR_PATCH_CAP = 512 * 1024;
|
|
31
30
|
export const GH_PR_DIFF_JSON_CAP = 4 * 1024 * 1024;
|
|
@@ -194,6 +193,22 @@ export function rollupToChecks(rollup) {
|
|
|
194
193
|
return 'pending';
|
|
195
194
|
return 'passing';
|
|
196
195
|
}
|
|
196
|
+
// Keep account-directory and host selection attached to shared work. Never key by owner/name:
|
|
197
|
+
// separate local roots (including different remotes/accounts) must not share results.
|
|
198
|
+
function githubContext(repoRoot) {
|
|
199
|
+
const env = { GH_HOST: process.env.GH_HOST, GH_CONFIG_DIR: process.env.GH_CONFIG_DIR };
|
|
200
|
+
return { key: JSON.stringify([repoRoot, env.GH_HOST, env.GH_CONFIG_DIR]), env };
|
|
201
|
+
}
|
|
202
|
+
async function gh(repoRoot, args, timeout = 15_000, signal, context) {
|
|
203
|
+
const { stdout } = await exec('gh', args, {
|
|
204
|
+
cwd: repoRoot,
|
|
205
|
+
...(context ? { env: { ...process.env, ...context.env } } : {}),
|
|
206
|
+
timeout,
|
|
207
|
+
maxBuffer: 50 * 1024 * 1024,
|
|
208
|
+
...(signal ? { signal } : {}),
|
|
209
|
+
});
|
|
210
|
+
return stdout;
|
|
211
|
+
}
|
|
197
212
|
/** `gh api graphql` argv. `-f` sends every value as a String, and GitHub rejects a String where
|
|
198
213
|
* the query declares `Int!` ("Could not coerce value to Int", open-mercato/cezar#1366), so a
|
|
199
214
|
* number goes through `-F`. A string never does: `-F` would read `@file` and coerce
|
|
@@ -205,6 +220,11 @@ export function ghGraphqlArgs(query, variables = {}) {
|
|
|
205
220
|
}
|
|
206
221
|
return args;
|
|
207
222
|
}
|
|
223
|
+
/** `owner/name` → `{ owner, name }`, or null when the handle isn't a clean two-part slug. */
|
|
224
|
+
export function parseOwnerName(nameWithOwner) {
|
|
225
|
+
const [owner, name, ...rest] = nameWithOwner.trim().split('/');
|
|
226
|
+
return owner && name && rest.length === 0 ? { owner, name } : null;
|
|
227
|
+
}
|
|
208
228
|
// Paged open lists defer comment counts; hydrate them through the counts route after paint.
|
|
209
229
|
/** GitHub GraphQL rejects `first` above 100 (EXCESSIVE_PAGINATION); larger limits walk pages. */
|
|
210
230
|
export const GH_GRAPHQL_PAGE_MAX = 100;
|
|
@@ -477,7 +497,7 @@ async function loadGithubPage(repoRoot, context, capped, page, key, hit, order,
|
|
|
477
497
|
const ownerName = await resolveRepoHandleStrict(repoRoot, context);
|
|
478
498
|
if (!ownerName)
|
|
479
499
|
return { available: false, reason: 'Could not resolve this repository on GitHub.', issues: [], prs: [] };
|
|
480
|
-
const runGraphql = (query, variables) =>
|
|
500
|
+
const runGraphql = (query, variables) => gh(repoRoot, ghGraphqlArgs(query, variables), timeout, undefined, context);
|
|
481
501
|
const projectGraphql = githubProjectGraphql(repoRoot, context);
|
|
482
502
|
const firstPage = isFirstGithubPage(page);
|
|
483
503
|
const issueSide = fetchListConnection(runGraphql, ownerName.owner, ownerName.name, 'issues', capped, page.issuesCursor, page.issuesDone);
|
|
@@ -746,7 +766,7 @@ export async function searchGithubItems(repoRoot, kind, query, limit = GH_SEARCH
|
|
|
746
766
|
if (!handle) {
|
|
747
767
|
return { available: false, reason: 'no GitHub remote to search', items: [] };
|
|
748
768
|
}
|
|
749
|
-
const out = await
|
|
769
|
+
const out = await gh(repoRoot, [
|
|
750
770
|
'search',
|
|
751
771
|
kind === 'pr' ? 'prs' : 'issues',
|
|
752
772
|
'--repo',
|
|
@@ -761,7 +781,7 @@ export async function searchGithubItems(repoRoot, kind, query, limit = GH_SEARCH
|
|
|
761
781
|
// on the cockpit's host. Behind `--` it is search text, which is all the box ever means.
|
|
762
782
|
'--',
|
|
763
783
|
trimmed,
|
|
764
|
-
])
|
|
784
|
+
]);
|
|
765
785
|
const hits = z.array(ghSearchHitSchema).parse(JSON.parse(out));
|
|
766
786
|
// Older gh/GHES search treats repeated repo qualifiers as OR. Never hydrate a foreign
|
|
767
787
|
// hit's number with this repository's memberships or expose it as a local detail row.
|
|
@@ -1023,6 +1043,109 @@ export async function fetchGithubItem(repoRoot, kind, number, refresh = false) {
|
|
|
1023
1043
|
};
|
|
1024
1044
|
}
|
|
1025
1045
|
}
|
|
1046
|
+
const repoHandleCache = new Map();
|
|
1047
|
+
const repoDiscoveryFlights = new Map();
|
|
1048
|
+
/** Each subscriber owns a lease, not the subprocess. Only the last cancellation aborts it.
|
|
1049
|
+
* Keep the rejecting promise intact so strict callers retain gh's diagnostic. */
|
|
1050
|
+
function sharedRepoHandle(repoRoot, signal, context = githubContext(repoRoot)) {
|
|
1051
|
+
if (signal?.aborted)
|
|
1052
|
+
return Promise.reject(signal.reason);
|
|
1053
|
+
const memo = repoHandleCache.get(context.key);
|
|
1054
|
+
if (memo !== undefined)
|
|
1055
|
+
return Promise.resolve(memo);
|
|
1056
|
+
let flight = repoDiscoveryFlights.get(context.key);
|
|
1057
|
+
if (!flight) {
|
|
1058
|
+
const controller = new AbortController();
|
|
1059
|
+
const created = {
|
|
1060
|
+
controller, owners: 0,
|
|
1061
|
+
promise: gh(repoRoot, ['repo', 'view', '--json', 'nameWithOwner', '--jq', '.nameWithOwner'], 15_000, controller.signal, context)
|
|
1062
|
+
.then(parseOwnerName),
|
|
1063
|
+
};
|
|
1064
|
+
created.promise = created.promise.then(handle => {
|
|
1065
|
+
// A disposed owner may complete late; it must not overwrite a replacement discovery.
|
|
1066
|
+
if (!controller.signal.aborted && repoDiscoveryFlights.get(context.key) === created) {
|
|
1067
|
+
repoHandleCache.set(context.key, handle);
|
|
1068
|
+
}
|
|
1069
|
+
return handle;
|
|
1070
|
+
}).finally(() => {
|
|
1071
|
+
if (repoDiscoveryFlights.get(context.key) === created)
|
|
1072
|
+
repoDiscoveryFlights.delete(context.key);
|
|
1073
|
+
});
|
|
1074
|
+
flight = created;
|
|
1075
|
+
repoDiscoveryFlights.set(context.key, flight);
|
|
1076
|
+
}
|
|
1077
|
+
const owned = flight;
|
|
1078
|
+
owned.owners++;
|
|
1079
|
+
return new Promise((resolve, reject) => {
|
|
1080
|
+
let released = false;
|
|
1081
|
+
const release = () => {
|
|
1082
|
+
if (released)
|
|
1083
|
+
return false;
|
|
1084
|
+
released = true;
|
|
1085
|
+
signal?.removeEventListener('abort', cancel);
|
|
1086
|
+
if (--owned.owners === 0 && repoDiscoveryFlights.get(context.key) === owned) {
|
|
1087
|
+
repoDiscoveryFlights.delete(context.key);
|
|
1088
|
+
owned.controller.abort();
|
|
1089
|
+
}
|
|
1090
|
+
return true;
|
|
1091
|
+
};
|
|
1092
|
+
const cancel = () => { if (release())
|
|
1093
|
+
reject(signal?.reason); };
|
|
1094
|
+
signal?.addEventListener('abort', cancel, { once: true });
|
|
1095
|
+
owned.promise.then(handle => { if (release())
|
|
1096
|
+
resolve(handle); }, error => { if (release())
|
|
1097
|
+
reject(error); });
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
/** Test-only: drop the memoized repo handles. */
|
|
1101
|
+
export function __clearRepoHandleCacheForTests() {
|
|
1102
|
+
repoHandleCache.clear();
|
|
1103
|
+
for (const flight of repoDiscoveryFlights.values())
|
|
1104
|
+
flight.controller.abort();
|
|
1105
|
+
repoDiscoveryFlights.clear();
|
|
1106
|
+
}
|
|
1107
|
+
/** Local absence cannot improve through network retries. Authentication, timeouts and remote
|
|
1108
|
+
* errors deliberately stay retryable, including 404s for temporarily inaccessible repositories. */
|
|
1109
|
+
function isPermanentRepoFailure(error) {
|
|
1110
|
+
if (!(error instanceof Error))
|
|
1111
|
+
return false;
|
|
1112
|
+
if ('code' in error && error.code === 'ENOENT')
|
|
1113
|
+
return true;
|
|
1114
|
+
const stderr = 'stderr' in error && typeof error.stderr === 'string' ? error.stderr : '';
|
|
1115
|
+
return /not a git repository|no git remotes found|none of the git remotes configured for this repository point to a known GitHub host/i.test(`${error.message}\n${stderr}`);
|
|
1116
|
+
}
|
|
1117
|
+
/** Share the existing memo with ordinary discovery, but retain failure classification (#102).
|
|
1118
|
+
* An aborted owner must never publish its late result into this shared cache. */
|
|
1119
|
+
export async function discoverRepoHandle(repoRoot, signal) {
|
|
1120
|
+
const context = githubContext(repoRoot);
|
|
1121
|
+
if (signal?.aborted)
|
|
1122
|
+
return { status: 'cancelled' };
|
|
1123
|
+
try {
|
|
1124
|
+
const handle = await sharedRepoHandle(repoRoot, signal, context);
|
|
1125
|
+
if (signal?.aborted)
|
|
1126
|
+
return { status: 'cancelled' };
|
|
1127
|
+
return handle ? { status: 'resolved', handle } : { status: 'unknown' };
|
|
1128
|
+
}
|
|
1129
|
+
catch (error) {
|
|
1130
|
+
if (signal?.aborted)
|
|
1131
|
+
return { status: 'cancelled' };
|
|
1132
|
+
if (isPermanentRepoFailure(error)) {
|
|
1133
|
+
// Do not replace a successful discovery another caller completed while this one failed.
|
|
1134
|
+
const recovered = repoHandleCache.get(context.key);
|
|
1135
|
+
if (recovered)
|
|
1136
|
+
return { status: 'resolved', handle: recovered };
|
|
1137
|
+
// The live arming loop stops on unknown. Do not memoize local failures here: later cold
|
|
1138
|
+
// index/status requests must still discover an installed gh or a newly added remote.
|
|
1139
|
+
return { status: 'unknown' };
|
|
1140
|
+
}
|
|
1141
|
+
return { status: 'retryable' };
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
/** Compatible fail-open lookup for existing API and cold-index callers. */
|
|
1145
|
+
export async function resolveRepoHandle(repoRoot, signal) {
|
|
1146
|
+
const result = await discoverRepoHandle(repoRoot, signal);
|
|
1147
|
+
return result.status === 'resolved' ? result.handle : null;
|
|
1148
|
+
}
|
|
1026
1149
|
/** SHAs per rollup query. Aliases resolve independently, so a chunk that fails costs only its own
|
|
1027
1150
|
* glyphs — but an unbounded alias list would eventually blow the query size limit. */
|
|
1028
1151
|
export const COMMIT_CHECKS_CHUNK = 50;
|
|
@@ -2350,11 +2473,8 @@ async function fetchPrMergeState(repoRoot, repoRef, number, refresh = false) {
|
|
|
2350
2473
|
'number,title,url,state,isDraft,headRefName,baseRefName,headRefOid,mergeable,mergeStateStatus,reviewDecision,statusCheckRollup,mergedAt',
|
|
2351
2474
|
]);
|
|
2352
2475
|
const parsedPr = mergePrSchema.parse(JSON.parse(prOut));
|
|
2353
|
-
|
|
2354
|
-
if (!matchesGithubPullRequest({ ...repoRef, number }, parsedPr)) {
|
|
2355
|
-
forgetRepoHandle(repoRoot);
|
|
2476
|
+
if (!matchesGithubPullRequest({ ...repoRef, number }, parsedPr))
|
|
2356
2477
|
return { available: false, reason: 'GitHub returned a different pull request.' };
|
|
2357
|
-
}
|
|
2358
2478
|
mergedPullRequestObservations.observe({ ...repoRef, number }, parsedPr);
|
|
2359
2479
|
const [policyOut, requirements] = await Promise.all([
|
|
2360
2480
|
gh(repoRoot, ['api', `repos/${repoRef.owner}/${repoRef.repo}`]),
|
|
@@ -2466,8 +2586,7 @@ async function mergePullRequest(repoRoot, repoRef, number, input) {
|
|
|
2466
2586
|
try {
|
|
2467
2587
|
if (input.canProceed?.() === false)
|
|
2468
2588
|
return mergeCancelledResult();
|
|
2469
|
-
const
|
|
2470
|
-
const fresh = await fetchPrMergeState(repoRoot, ref, number, true);
|
|
2589
|
+
const fresh = await fetchPrMergeState(repoRoot, repoRef, number, true);
|
|
2471
2590
|
if (input.canProceed?.() === false)
|
|
2472
2591
|
return mergeCancelledResult();
|
|
2473
2592
|
if (!fresh.available)
|
|
@@ -2476,10 +2595,10 @@ async function mergePullRequest(repoRoot, repoRef, number, input) {
|
|
|
2476
2595
|
const preflight = mergePullRequestPreflight(current, input);
|
|
2477
2596
|
if (preflight)
|
|
2478
2597
|
return preflight;
|
|
2479
|
-
const ciConflict = await mergeActiveCiConflict(repoRoot,
|
|
2598
|
+
const ciConflict = await mergeActiveCiConflict(repoRoot, repoRef, current, input);
|
|
2480
2599
|
if (ciConflict)
|
|
2481
2600
|
return ciConflict;
|
|
2482
|
-
return await executeGithubMerge(repoRoot,
|
|
2601
|
+
return await executeGithubMerge(repoRoot, repoRef, number, input, current);
|
|
2483
2602
|
}
|
|
2484
2603
|
catch (error) {
|
|
2485
2604
|
return mergePullRequestFailure(error);
|
|
@@ -2555,13 +2674,12 @@ async function readyPullRequest(repoRoot, repoRef, number, input) {
|
|
|
2555
2674
|
try {
|
|
2556
2675
|
if (input.canProceed?.() === false)
|
|
2557
2676
|
return readyCancelledResult();
|
|
2558
|
-
const ref = await canonicalRepoRef(repoRoot, repoRef);
|
|
2559
2677
|
if (productEnv('DRY_RUN') !== '1') {
|
|
2560
|
-
const ownership = await readyPullRequestOwnership(repoRoot,
|
|
2678
|
+
const ownership = await readyPullRequestOwnership(repoRoot, repoRef, number, input);
|
|
2561
2679
|
if (ownership)
|
|
2562
2680
|
return ownership;
|
|
2563
2681
|
}
|
|
2564
|
-
return await refreshReadyPullRequestState(repoRoot,
|
|
2682
|
+
return await refreshReadyPullRequestState(repoRoot, repoRef, number, input);
|
|
2565
2683
|
}
|
|
2566
2684
|
catch {
|
|
2567
2685
|
return { available: false, reason: 'GitHub could not mark the pull request ready for review.' };
|
|
@@ -2626,9 +2744,8 @@ export function createGithubDriver(repoRoot, repoRef) {
|
|
|
2626
2744
|
try {
|
|
2627
2745
|
const out = await gh(repoRoot, ['pr', 'view', branch, '--json', 'number,url,state,isDraft,statusCheckRollup,mergedAt']);
|
|
2628
2746
|
const pr = ghPrViewSchema.parse(JSON.parse(out));
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
mergedPullRequestObservations.observe({ ...ref, number: pr.number }, pr);
|
|
2747
|
+
if (repoRef)
|
|
2748
|
+
mergedPullRequestObservations.observe({ ...repoRef, number: pr.number }, pr);
|
|
2632
2749
|
return {
|
|
2633
2750
|
number: pr.number,
|
|
2634
2751
|
url: pr.url,
|
|
@@ -2641,7 +2758,7 @@ export function createGithubDriver(repoRoot, repoRef) {
|
|
|
2641
2758
|
return null;
|
|
2642
2759
|
}
|
|
2643
2760
|
},
|
|
2644
|
-
prMergeState:
|
|
2761
|
+
prMergeState: (number, opts) => fetchPrMergeState(repoRoot, repoRef, number, opts?.refresh),
|
|
2645
2762
|
readyPR: (number, input) => readyPullRequest(repoRoot, repoRef, number, input),
|
|
2646
2763
|
mergePR: async (number, input) => {
|
|
2647
2764
|
const result = await mergePullRequest(repoRoot, repoRef, number, input);
|