@north-light/api 0.3.556 → 0.3.558
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
CHANGED
|
@@ -124,6 +124,10 @@ export declare function envTestUnattendedParkMs(): number | undefined;
|
|
|
124
124
|
* above the configured knob a deployment sets to tune how long an eligible
|
|
125
125
|
* resident idles before its parking turn. */
|
|
126
126
|
export declare function envUnattendedParkMs(): number | undefined;
|
|
127
|
+
/** How long a background bash job must show no activity before its owner is first told
|
|
128
|
+
* (`CRTR_BASH_SILENCE_MS`, milliseconds; default 15 min). Later messages come at twice, four times,
|
|
129
|
+
* then every four times that. */
|
|
130
|
+
export declare function envBashSilenceMs(): number;
|
|
127
131
|
/** Test-only park-summary grace-period override
|
|
128
132
|
* (`CRTR_TEST_PARK_SUMMARY_GRACE_MS`); no production default. */
|
|
129
133
|
export declare function envTestParkSummaryGraceMs(): number | undefined;
|
package/dist/shared/env.js
CHANGED
|
@@ -303,6 +303,12 @@ export function envTestUnattendedParkMs() {
|
|
|
303
303
|
export function envUnattendedParkMs() {
|
|
304
304
|
return parsePositiveMsNoDefault(process.env['CRTR_UNATTENDED_PARK_MS']);
|
|
305
305
|
}
|
|
306
|
+
/** How long a background bash job must show no activity before its owner is first told
|
|
307
|
+
* (`CRTR_BASH_SILENCE_MS`, milliseconds; default 15 min). Later messages come at twice, four times,
|
|
308
|
+
* then every four times that. */
|
|
309
|
+
export function envBashSilenceMs() {
|
|
310
|
+
return parsePositiveMsNoDefault(process.env['CRTR_BASH_SILENCE_MS']) ?? 15 * 60_000;
|
|
311
|
+
}
|
|
306
312
|
/** Test-only park-summary grace-period override
|
|
307
313
|
* (`CRTR_TEST_PARK_SUMMARY_GRACE_MS`); no production default. */
|
|
308
314
|
export function envTestParkSummaryGraceMs() {
|
|
@@ -84,6 +84,10 @@ function renderPush(entry, push) {
|
|
|
84
84
|
case 'sent': return `${actor} sent a message as ${obj}.`;
|
|
85
85
|
case 'configured': return `${actor} changed the settings of ${obj}${typeof a['changed'] === 'string' ? `: ${a['changed']}` : ''}.`;
|
|
86
86
|
case 'exited': return `${obj[0].toUpperCase()}${obj.slice(1)} exited with code ${String(a['exit-code'])}. Log: ${String(a['log-path'])}`;
|
|
87
|
+
case 'silent': {
|
|
88
|
+
const files = typeof a['files'] === 'string' ? a['files'] : '';
|
|
89
|
+
return `${obj[0].toUpperCase()}${obj.slice(1)} has been silent for ${String(a['silent-for'])}: its processes used almost no CPU and none of the files they hold open for writing changed. It may be hung. Watched: ${files === '' ? 'the job log only' : files}. Inspect those files; stop it with \`crtr node bash kill ${push.object.id}\`; or, if it is meant to sit idle, stop these messages with \`crtr node bash quiet ${push.object.id}\`.`;
|
|
90
|
+
}
|
|
87
91
|
case 'killed': {
|
|
88
92
|
const by = push.actor === null ? '' : ` by ${actor}`;
|
|
89
93
|
const why = typeof a['reason'] === 'string' ? ` (${a['reason']})` : '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.558",
|
|
4
4
|
"description": "Typed crtrd /v1 API contract — DTOs, route builders, the error contract, the CrtrClient, and the command-plugin manifest format. Zero runtime dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/api/index.js",
|