@bakers-build/addon-remote-drupal 0.6.1-next.6 → 0.6.1-next.8

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/src/index.js CHANGED
@@ -514,6 +514,8 @@ export class DrupalBbRemote {
514
514
  worktreePath: r.attr('worktree_path') ?? '',
515
515
  agent: r.attr('agent') ?? '',
516
516
  startedAt: r.attr('started_at') ?? '',
517
+ // Strict: an older server sends nothing, which must mean "do not upload".
518
+ runLogStorageAllowed: r.attr('run_log_storage_allowed') === true,
517
519
  }));
518
520
  }
519
521
  async finalizableRunsInState(id, state) {
@@ -529,6 +531,7 @@ export class DrupalBbRemote {
529
531
  'started_at',
530
532
  'state_at_start',
531
533
  'ticket_id',
534
+ 'run_log_storage_allowed',
532
535
  ])
533
536
  .page(100)
534
537
  .list();
@@ -704,7 +707,7 @@ export class DrupalBbRemote {
704
707
  const run = await this.api
705
708
  .collection('bb_run')
706
709
  .where('id', '=', runUuid)
707
- .fields(['id'])
710
+ .fields(['id', 'run_log_storage_allowed'])
708
711
  .first();
709
712
  if (!run) {
710
713
  // Refuse rather than guess. With no row read, `existing` below would be ''
@@ -714,6 +717,11 @@ export class DrupalBbRemote {
714
717
  // flags the ticket), never a silent truncation.
715
718
  throw new Error(`bb_run ${runUuid} could not be read — run note not written`);
716
719
  }
720
+ // Transcript storage is off for this run: the note belongs in the
721
+ // transcript, so neither download nor rewrite it.
722
+ if (run.attr('run_log_storage_allowed') !== true) {
723
+ return;
724
+ }
717
725
  // BB-556: the JSON:API `log` attribute is ALWAYS empty on a reload —
718
726
  // `BbRun::preSave()` moves any payload to a file and clears the field —
719
727
  // so the real current transcript can only be read through the download
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bakers-build/addon-remote-drupal",
3
- "version": "0.6.1-next.6",
3
+ "version": "0.6.1-next.8",
4
4
  "description": "bakers.build conductor remote addon: the Drupal/JSON:API control-plane remote.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -24,12 +24,12 @@
24
24
  "dropsh": "^0.8.2"
25
25
  },
26
26
  "peerDependencies": {
27
- "@bakers-build/conductor": "^0.6.1-next.6",
28
- "@bakers-build/core": "^0.6.1-next.6",
29
- "@bakers-build/message": "^0.6.1-next.6"
27
+ "@bakers-build/conductor": "^0.6.1-next.8",
28
+ "@bakers-build/core": "^0.6.1-next.8",
29
+ "@bakers-build/message": "^0.6.1-next.8"
30
30
  },
31
31
  "bakersBuild": {
32
- "commit": "12b97ff4aa2422d69dab286141f3234609f32351",
32
+ "commit": "a39a1b099521005460e4f9d9534aa7935ed88e91",
33
33
  "channel": "next"
34
34
  }
35
35
  }