bdy 1.22.25-dev-pipeline → 1.22.26-dev-pipeline

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.22.25-dev-pipeline",
4
+ "version": "1.22.26-dev-pipeline",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -471,7 +471,7 @@ class OutputPipeline {
471
471
  static _jsonActionsLogsHelp(identifier, runId, actionRunId) {
472
472
  if (!actionRunId)
473
473
  actionRunId = '<action-run-id>';
474
- return `To view action logs run: \`bdy pip run logs ${identifier} ${runId} ${actionRunId}\``;
474
+ return `To view action logs run: \`bdy pip run logs ${identifier} ${runId} ${actionRunId} --format jsonl\``;
475
475
  }
476
476
  static _runDetailsFinished(status, finished, tabs) {
477
477
  if (finished &&
@@ -1105,13 +1105,21 @@ class OutputPipeline {
1105
1105
  const a = {
1106
1106
  ...action,
1107
1107
  };
1108
- if (action.runId) {
1108
+ if (action.runId && !a.logs) {
1109
1109
  a.logs = this._jsonActionsLogsHelp(identifier, runId, action.runId);
1110
1110
  }
1111
1111
  output_1.default.json({ type: 'action', action: a });
1112
1112
  }
1113
- static jsonRun(run) {
1114
- output_1.default.json({ type: 'run', run });
1113
+ static jsonRun(identifier, run) {
1114
+ const r = {
1115
+ ...run,
1116
+ };
1117
+ (r.actions || []).forEach((a) => {
1118
+ if (a.runId && !a.logs) {
1119
+ a.logs = this._jsonActionsLogsHelp(identifier, run.runId, a.runId);
1120
+ }
1121
+ });
1122
+ output_1.default.json({ type: 'run', run: r });
1115
1123
  }
1116
1124
  static jsonLog(log) {
1117
1125
  output_1.default.json({ type: 'log', log });
@@ -1328,7 +1336,7 @@ class OutputPipeline {
1328
1336
  totalFetchesCount += 1;
1329
1337
  if (!noFollow || noWait) {
1330
1338
  if (isJson)
1331
- this.jsonRun(run);
1339
+ this.jsonRun(identifier, run);
1332
1340
  else
1333
1341
  draw(run);
1334
1342
  }
@@ -1337,7 +1345,7 @@ class OutputPipeline {
1337
1345
  }
1338
1346
  });
1339
1347
  if (isJson) {
1340
- this.jsonRun(run);
1348
+ this.jsonRun(identifier, run);
1341
1349
  this.jsonInfo(this._jsonActionsLogsHelp(identifier, runId));
1342
1350
  }
1343
1351
  else {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.22.25-dev-pipeline",
4
+ "version": "1.22.26-dev-pipeline",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {