@bakers-build/addon-remote-drupal 0.8.1-next.1 → 0.8.1-next.10

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.
@@ -67,7 +67,6 @@ export declare class DrupalBbRemote implements BbRemote {
67
67
  listConductors(owner?: 'me'): Promise<ConductorStatus[]>;
68
68
  markRunning(uuid: string, attrs?: RunWriteAttributes): Promise<void>;
69
69
  markFailed(uuid: string, errorLog: string): Promise<void>;
70
- cancelRun(uuid: string): Promise<void>;
71
70
  fetchFinalizableRuns(id: string): Promise<FinalizableRun[]>;
72
71
  private finalizableRunsInState;
73
72
  finalizeRun(uuid: string, log: string, metrics?: RunMetrics): Promise<void>;
package/dist/src/index.js CHANGED
@@ -76,7 +76,7 @@ export class DrupalBbRemote {
76
76
  .collection('bb_run')
77
77
  .where('conductor_id.conductor_id', '=', id)
78
78
  .whereIn('state', ACTIVE)
79
- .fields(['state', 'state_at_start', 'worktree_path', 'agent'])
79
+ .fields(['state', 'state_at_start', 'worktree_path'])
80
80
  .page(100)
81
81
  .list();
82
82
  return Promise.all(rows.map(async (r) => ({
@@ -87,7 +87,6 @@ export class DrupalBbRemote {
87
87
  state: r.attr('state') ?? '',
88
88
  stateAtStart: r.attr('state_at_start') ?? '',
89
89
  worktreePath: r.attr('worktree_path') ?? '',
90
- agent: r.attr('agent') ?? '',
91
90
  })));
92
91
  }
93
92
  async activeRunCount(id) {
@@ -234,6 +233,9 @@ export class DrupalBbRemote {
234
233
  ...(typeof attrs.base_branch === 'string' && attrs.base_branch !== ''
235
234
  ? { baseBranch: attrs.base_branch }
236
235
  : {}),
236
+ ...(typeof attrs.target_branch === 'string' && attrs.target_branch !== ''
237
+ ? { targetBranch: attrs.target_branch }
238
+ : {}),
237
239
  ...(typeof attrs.effective_env_vars === 'string' &&
238
240
  attrs.effective_env_vars !== ''
239
241
  ? { effectiveEnvVars: attrs.effective_env_vars }
@@ -294,6 +296,9 @@ export class DrupalBbRemote {
294
296
  conductor_id: reg.id,
295
297
  host_key: reg.host_key,
296
298
  ...(reg.machine_label ? { machine_label: reg.machine_label } : {}),
299
+ ...(reg.connection_url !== undefined
300
+ ? { connection_url: reg.connection_url }
301
+ : {}),
297
302
  ...(reg.adopt ? { adopt: reg.adopt } : {}),
298
303
  ...(reg.create_new ? { create_new: true } : {}),
299
304
  project: reg.project,
@@ -497,11 +502,6 @@ export class DrupalBbRemote {
497
502
  },
498
503
  });
499
504
  }
500
- async cancelRun(uuid) {
501
- await this.api.update('bb_run', uuid, {
502
- attributes: { state: 'cancelled' },
503
- });
504
- }
505
505
  async fetchFinalizableRuns(id) {
506
506
  // `done` and `cancelled` finalise identically: stop the agent, capture its
507
507
  // transcript, then close the run's terminal tab. Two queries are used
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bakers-build/addon-remote-drupal",
3
- "version": "0.8.1-next.1",
3
+ "version": "0.8.1-next.10",
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.8.1-next.1",
28
- "@bakers-build/core": "^0.8.1-next.1",
29
- "@bakers-build/message": "^0.8.1-next.1"
27
+ "@bakers-build/conductor": "^0.8.1-next.10",
28
+ "@bakers-build/core": "^0.8.1-next.10",
29
+ "@bakers-build/message": "^0.8.1-next.10"
30
30
  },
31
31
  "bakersBuild": {
32
- "commit": "c4a887bee37bb2fed14bb9ba15ad0aacf0e26f7e",
32
+ "commit": "ceb44a12624feaa85cb2b0c9f84345399b38bf50",
33
33
  "channel": "next"
34
34
  }
35
35
  }