@north-light/crouter-api 0.3.239 → 0.3.241
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/shared/env.d.ts +4 -0
- package/dist/shared/env.js +7 -0
- package/package.json +1 -1
package/dist/shared/env.d.ts
CHANGED
|
@@ -30,6 +30,10 @@ export declare function envRecapModelOverride(): string | undefined;
|
|
|
30
30
|
* default; undocumented test-only override so the E2E valve check doesn't
|
|
31
31
|
* sleep 5 minutes. */
|
|
32
32
|
export declare function envBashValveMs(): number;
|
|
33
|
+
/** How long an AUTO-backgrounded bash job may run before the daemon cancels it
|
|
34
|
+
* unless the agent claims it (`CRTR_BASH_AUTO_BG_DEADLINE_MS`), 60s by default;
|
|
35
|
+
* undocumented test-only override so the deadline check doesn't wait a minute. */
|
|
36
|
+
export declare function envBashAutoBgDeadlineMs(): number;
|
|
33
37
|
/** Explicit pidfile path override (`CRTR_PIDFILE`, tests only); undefined if
|
|
34
38
|
* unset or blank. */
|
|
35
39
|
export declare function envPidfileOverride(): string | undefined;
|
package/dist/shared/env.js
CHANGED
|
@@ -92,6 +92,13 @@ const DEFAULT_BASH_VALVE_MS = 5 * 60 * 1000;
|
|
|
92
92
|
export function envBashValveMs() {
|
|
93
93
|
return parsePositiveMs(process.env['CRTR_BASH_VALVE_MS'], DEFAULT_BASH_VALVE_MS);
|
|
94
94
|
}
|
|
95
|
+
const DEFAULT_BASH_AUTO_BG_DEADLINE_MS = 60 * 1000;
|
|
96
|
+
/** How long an AUTO-backgrounded bash job may run before the daemon cancels it
|
|
97
|
+
* unless the agent claims it (`CRTR_BASH_AUTO_BG_DEADLINE_MS`), 60s by default;
|
|
98
|
+
* undocumented test-only override so the deadline check doesn't wait a minute. */
|
|
99
|
+
export function envBashAutoBgDeadlineMs() {
|
|
100
|
+
return parsePositiveMs(process.env['CRTR_BASH_AUTO_BG_DEADLINE_MS'], DEFAULT_BASH_AUTO_BG_DEADLINE_MS);
|
|
101
|
+
}
|
|
95
102
|
/** Explicit pidfile path override (`CRTR_PIDFILE`, tests only); undefined if
|
|
96
103
|
* unset or blank. */
|
|
97
104
|
export function envPidfileOverride() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/crouter-api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.241",
|
|
4
4
|
"description": "Typed crtrd /v1 API contract — DTOs, route builders, the error contract, and the CrtrClient. Zero runtime dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/api/index.js",
|