* fix(process): expose Darwin swiftc compile deadline via env Busy hosts can exceed the hard-coded 60s ownership-helper compile timeout. Honor REA_SWIFTC_COMPILE_TIMEOUT_MS like the other provider startup deadlines, keeping 60000 as the default. Fixes #2184 Co-authored-by: Cursor <cursoragent@cursor.com> * fix(process): keep the Swift compile deadline with its runtime owner * fix(comparison): recheck historical calls-only changes (#2223) * fix(comparison): preserve incomplete function call evidence Keep missing, unknown, partial and unresolved call relationships unknown in function comparisons and reconstruction claims. Aggregate IDA caller and callee coverage without overwriting uncertainty. Validate with 144 focused tests, typecheck/lint, docs checks and test discovery. Real providers were not verified; the full headless IDA session suite requires unavailable Windows native controls. * fix(comparison): recheck historical calls-only changes --------- Co-authored-by: morluto <76467478+morluto@users.noreply.github.com> (cherry picked from commit688defca0f) * fix(ci): isolate Linux Hopper process fixture inventory (cherry picked from commit 8cac51e12184d56a9ba80a4427b3e6082ddac1ec) * fix(android): make DEX descriptor pattern portable (cherry picked from commit 1335bcddc569a1cfb34b6efedcb6f2e3aaaa3357) * fix: repair the static-check failures on the default branch (#2895) * fix: repair the static-check failures on the default branch The default branch fails its own required `Static checks` job three ways, so every pull request reports that job as failed regardless of its own change. - `npm run format:check` reports `src/domain/functionComparison.test.ts` and `src/ida/IdaOperationRunner.ts`. - `npm run lint` reports a duplicate `import { join } from "node:path"` in `tests/boundary/mcp/ghidraInventoryMcp.test.ts` (lines 4 and 17). - `npm run typecheck` reports `format: "devin"` missing from the client format union in `src/application/SupportedClients.ts`, and an unchecked index in `tests/boundary/cli/clientProfileLifecycle.test.ts`, whose pair array is inferred as `string[][]`. Apply the pinned formatter, drop the duplicate import, list the `"devin"` format that its own definition already uses, and mark the pair array `as const`. Validation: `npm run check:fast` and `npm run format:check` pass. * fix(setup): keep Devin on the JSON configuration dialect --------- Co-authored-by: 吴佳浩 <wujiahao@supremind.com> Co-authored-by: morluto <76467478+morluto@users.noreply.github.com> (cherry picked from commitdf3d96da80) --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: morluto <76467478+morluto@users.noreply.github.com> Co-authored-by: morluto <17176810+morluto@users.noreply.github.com> Co-authored-by: Lucien <164857476+dakjdakd@users.noreply.github.com> Co-authored-by: 吴佳浩Alben <35291372+XiaoBinGan@users.noreply.github.com> Co-authored-by: 吴佳浩 <wujiahao@supremind.com>
22 lines
920 B
TypeScript
22 lines
920 B
TypeScript
import { z } from "zod";
|
|
|
|
/** Default absolute deadline for Ghidra import, analysis, bridge, and readiness. */
|
|
export const DEFAULT_GHIDRA_STARTUP_TIMEOUT_MS = 330_000;
|
|
|
|
/** Default absolute deadline for Hopper launch, analysis, bridge, and readiness. */
|
|
export const DEFAULT_HOPPER_STARTUP_TIMEOUT_MS = 120_000;
|
|
|
|
/** Default deadline for Darwin ownership-helper `swiftc` compilation. */
|
|
/** Fresh Swift SDK cache took ~88s on the supported Intel macOS VM. */
|
|
export const DEFAULT_SWIFTC_COMPILE_TIMEOUT_MS = 120_000;
|
|
|
|
// Node schedules delays above this signed 32-bit boundary as a 1 ms timer.
|
|
const MAX_TIMER_DELAY_MS = 2_147_483_647;
|
|
|
|
/** Parse the optional setting without reading the ambient process environment. */
|
|
export const providerStartupTimeoutSchema = z
|
|
.string()
|
|
.regex(/^[1-9]\d*$/u, "must be a positive decimal integer")
|
|
.transform(Number)
|
|
.pipe(z.number().int().min(1).max(MAX_TIMER_DELAY_MS));
|