MCPcopy Create free account
hub / github.com/ding113/claude-code-hub / parsePosInt

Function parsePosInt

server.js:755–758  ·  view source on GitHub ↗
(raw, fallback)

Source from the content-addressed store, hash-verified

753 // intentional 0 back to the default. Mirrors the parser in
754 // src/lib/langfuse/index.ts so operator overrides behave consistently.
755 const parsePosInt = (raw, fallback) => {
756 const n = Number(raw);
757 return Number.isFinite(n) && n > 0 ? n : fallback;
758 };
759
760 // Defaults: drain + cleanup = 25s, with a 3s gap before the hard-exit
761 // watchdog. Without the gap, when both phases hit their cap the watchdog

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected