Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | 18x 18x 18x 18x 18x 18x 18x 18x 18x 18x | import { version } from '../package.json';
/**
* Sent as the User-Agent on every request, versioned so each request is attributable to an
* exact SDK release.
*/
export const USER_AGENT = `stackone-ai-node/${version}`;
/**
* Default base URL for StackOne API
*/
export const DEFAULT_BASE_URL = 'https://api.stackone.com';
/** Request timeout applied to every HTTP and MCP call unless the toolset is given one. */
export const DEFAULT_TIMEOUT_MS = 60_000;
/**
* The one global tool the MCP endpoint serves, in every tool mode, when feedback is enabled for
* the project. It is listed once however many accounts serve it.
*/
export const SUBMIT_FEEDBACK_TOOL_NAME = 'stackone_submit_feedback';
/** Upper bound on how many accounts' catalogs (or connectors' searches) run at once. */
export const MAX_CONCURRENCY = 10;
/** The `*_search_actions` meta tool's served schema caps `top_k` at 50. */
export const MAX_TOP_K = 50;
/** Retries after an HTTP 429, on top of the first attempt: four attempts in all. */
export const RATE_LIMIT_MAX_RETRIES = 3;
/** Backoff before retry 1 when the 429 carries no `Retry-After`; doubled for each retry after. */
export const RATE_LIMIT_BASE_DELAY_MS = 1_000;
/** Upper bound on a server-requested `Retry-After` wait. */
export const RATE_LIMIT_MAX_DELAY_MS = 30_000;
/**
* How long an account that failed to list tools is left out of a cached catalog before a later
* call tries it again. Short, so a re-linked account comes back quickly; long enough that one
* broken account does not cost every call a fresh round trip, or a full timeout if it hangs.
*/
export const FAILED_ACCOUNT_RETRY_MS = 30_000;
|