@moda-ai/cli 1.14.0 → 1.14.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/harness-remote.js
CHANGED
|
@@ -11,7 +11,13 @@ import { resolveApiKey, resolveIngestUrl } from './config.js';
|
|
|
11
11
|
import { CliInputError } from './errors.js';
|
|
12
12
|
import { normalizeHarnessReport, stampRemoteSnapshotTruncation, validateHarnessReport, writeHarnessReportArtifacts, } from './harness-report.js';
|
|
13
13
|
import { buildSourceSnapshot, emitWrittenArtifacts, numericEnv, numericEnvAllowZero, repairExternalAnalystReport, sleep, summarizeHarness, summarizeInvalidAnalystReport, truncateText, writeHarnessAnalyzeResult, writeHarnessArtifacts, writeHumanProgress, } from './harness.js';
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Client poll deadline. Must exceed the server's total analysis budget
|
|
16
|
+
* (MODA_HARNESS_ANALYZE_TOTAL_BUDGET_MS, default 30m — full attempts plus the
|
|
17
|
+
* sharded fallback), or the client reports a bogus "did not finish" while the
|
|
18
|
+
* hosted run is still working; polling also keeps the hosted container awake.
|
|
19
|
+
*/
|
|
20
|
+
const DEFAULT_REMOTE_ANALYZE_TIMEOUT_MS = 2_100_000;
|
|
15
21
|
const DEFAULT_REMOTE_POLL_INITIAL_MS = 3_000;
|
|
16
22
|
const DEFAULT_REMOTE_POLL_MAX_MS = 15_000;
|
|
17
23
|
/** Lower bound on the inter-poll delay so a 0 interval can't busy-loop the status endpoint. */
|
package/package.json
CHANGED