@north-light/crouter 0.3.297 → 0.3.299

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.
@@ -56,9 +56,17 @@ function resolveValveMs() {
56
56
  // The elapsed rendering mirrors formatBashElapsed() in core/bash-jobs.ts
57
57
  // (`12s` / `3m 40s` / `1h 04m`) so the completion message reads the same as the
58
58
  // handoff notice; it measures TOTAL runtime, foreground portion included.
59
+ /** Niceness of every command an agent runs. Agent work — builds, test suites,
60
+ * typechecks — sits below the daemon, the brokers, the viewers, and the
61
+ * person's own shell, so a fan-out of release builds cannot starve them: the
62
+ * scheduler only honors this under contention and it costs nothing on an idle
63
+ * host. Only the command is niced; the supervisor that reports its finish
64
+ * runs at normal priority so completion notices stay prompt. */
65
+ const COMMAND_NICENESS = 10;
59
66
  const SUPERVISOR_SCRIPT = [
60
67
  'SECONDS=0',
61
- '"${9}" "$1" > "$2" 2>&1',
68
+ 'n=$(command -v nice)',
69
+ `\${n:+"$n" -n ${COMMAND_NICENESS}} "\${9}" "$1" > "$2" 2>&1`,
62
70
  'ec=$?',
63
71
  'd=$SECONDS',
64
72
  'echo "$ec" > "$3"',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@north-light/crouter",
3
- "version": "0.3.297",
3
+ "version": "0.3.299",
4
4
  "description": "crtr — agent runtime with memory, plugins, and marketplaces",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/runtime.lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@north-light/crouter",
3
- "version": "0.3.297",
3
+ "version": "0.3.299",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@north-light/crouter",
9
- "version": "0.3.297",
9
+ "version": "0.3.299",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "workspaces": [
@@ -5206,20 +5206,20 @@
5206
5206
  },
5207
5207
  "packages/crouter-api": {
5208
5208
  "name": "@north-light/crouter-api",
5209
- "version": "0.3.297",
5209
+ "version": "0.3.299",
5210
5210
  "license": "UNLICENSED"
5211
5211
  },
5212
5212
  "packages/crouter-env-docker": {
5213
5213
  "name": "@north-light/crouter-env-docker",
5214
- "version": "0.3.297",
5214
+ "version": "0.3.299",
5215
5215
  "license": "UNLICENSED"
5216
5216
  },
5217
5217
  "packages/crouter-sdk": {
5218
5218
  "name": "@north-light/crouter-sdk",
5219
- "version": "0.3.297",
5219
+ "version": "0.3.299",
5220
5220
  "license": "UNLICENSED",
5221
5221
  "dependencies": {
5222
- "@north-light/crouter-api": "*"
5222
+ "@north-light/crouter-api": "^0.3.295"
5223
5223
  }
5224
5224
  }
5225
5225
  }