gcf-board 0.2.4 → 0.2.5

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.
@@ -4,6 +4,7 @@
4
4
  // In `run_mode: main` the checkout takes one run at a time: a run asked for meanwhile waits in
5
5
  // the project's queue and starts when the one before it ends.
6
6
  import { spawn } from 'node:child_process';
7
+ import { briefError } from './cli.js';
7
8
  import { broadcast } from './events.js';
8
9
  import { HttpError } from './http-error.js';
9
10
  // A board that stops leaves its runs going: killing one would lose its integrate step.
@@ -80,7 +81,15 @@ function spawnRun({ entry, p, ids }, mode) {
80
81
  if (stop)
81
82
  paused.add(p.name);
82
83
  const why = stop ? '\nthe queue is paused: fix the cause, then resume it on the board' : '';
83
- broadcast({ type: 'run', project: p.name, ids, ok, result, err: (err + message + why).trim() });
84
+ const brief = err && briefError(err);
85
+ broadcast({
86
+ type: 'run',
87
+ project: p.name,
88
+ ids,
89
+ ok,
90
+ result,
91
+ err: (brief + message + why).trim(),
92
+ });
84
93
  if (mode === 'main')
85
94
  advance(p.name);
86
95
  broadcast({ type: 'board', project: p.name });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gcf-board",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "A local web board for GCF game projects: shows `gcf board --json` and runs the same ai-factory gcf commands an operator runs in a console",
5
5
  "type": "module",
6
6
  "license": "MIT",