@bakers-build/addon-herdr 0.11.1-next.3 → 0.11.1-next.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.
@@ -53,7 +53,9 @@ export declare class HerdrWorkspace implements BbWorkspace {
53
53
  * It is still taken as-passed rather than parsed back out of `branch`, which
54
54
  * remains the reason the contract carries it at all.
55
55
  */
56
- ensure(_identifier: string, branch?: string, baseRefOverride?: string): Promise<EnsuredWorkspace>;
56
+ ensure(_identifier: string, branch?: string, baseRefOverride?: string, options?: {
57
+ clone?: boolean;
58
+ }): Promise<EnsuredWorkspace>;
57
59
  /**
58
60
  * The isolating-runtime variant: a fresh run clone at the worktree's stable
59
61
  * path, opened in herdr as a worktree of the parent. The parent keeps the
@@ -75,10 +75,13 @@ export class HerdrWorkspace {
75
75
  * It is still taken as-passed rather than parsed back out of `branch`, which
76
76
  * remains the reason the contract carries it at all.
77
77
  */
78
- async ensure(_identifier, branch, baseRefOverride) {
78
+ async ensure(_identifier, branch, baseRefOverride, options) {
79
79
  if (branch === undefined) {
80
80
  throw new Error('herdr workspace requires a branch name');
81
81
  }
82
+ // shortcut: clone mode is fixed per herdr workspace; switch per run like the git workspace when a herdr machine needs a mixed runtime catalog.
83
+ if (options?.clone !== undefined && options.clone !== !!this.options.clone)
84
+ throw new Error('herdr workspace: the run runtime clone mode differs from the workspace; a herdr machine cannot mix isolating and host runtimes');
82
85
  const extra = this.options.autoSetupMerge
83
86
  ? {}
84
87
  : { env: await runBranchGit(this.root, this.logger) };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bakers-build/addon-herdr",
3
- "version": "0.11.1-next.3",
3
+ "version": "0.11.1-next.5",
4
4
  "description": "bakers.build herdr integration: spawn executor + per-ticket worktree workspace.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -23,14 +23,14 @@
23
23
  "directory": "bakers-cli/addons/herdr"
24
24
  },
25
25
  "dependencies": {
26
- "@bakers-build/addon-workspace-git": "^0.11.1-next.3"
26
+ "@bakers-build/addon-workspace-git": "^0.11.1-next.5"
27
27
  },
28
28
  "peerDependencies": {
29
- "@bakers-build/conductor": "^0.11.1-next.3",
30
- "@bakers-build/core": "^0.11.1-next.3"
29
+ "@bakers-build/conductor": "^0.11.1-next.5",
30
+ "@bakers-build/core": "^0.11.1-next.5"
31
31
  },
32
32
  "bakersBuild": {
33
- "commit": "0bd662a88dd41e11e79a7912bf83dc0ee48a733d",
33
+ "commit": "d7535c4db571b4de2a9929185070384a00907595",
34
34
  "channel": "next"
35
35
  }
36
36
  }