@bakers-build/addon-herdr 0.11.1-next.2 → 0.11.1-next.4
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/workspace.d.ts +3 -1
- package/dist/src/workspace.js +4 -1
- package/package.json +5 -5
package/dist/src/workspace.d.ts
CHANGED
|
@@ -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
|
|
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
|
package/dist/src/workspace.js
CHANGED
|
@@ -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
|
+
"version": "0.11.1-next.4",
|
|
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.
|
|
26
|
+
"@bakers-build/addon-workspace-git": "^0.11.1-next.4"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@bakers-build/conductor": "^0.11.1-next.
|
|
30
|
-
"@bakers-build/core": "^0.11.1-next.
|
|
29
|
+
"@bakers-build/conductor": "^0.11.1-next.4",
|
|
30
|
+
"@bakers-build/core": "^0.11.1-next.4"
|
|
31
31
|
},
|
|
32
32
|
"bakersBuild": {
|
|
33
|
-
"commit": "
|
|
33
|
+
"commit": "567bf12252184152b86d67a8a083d09755d29e0b",
|
|
34
34
|
"channel": "next"
|
|
35
35
|
}
|
|
36
36
|
}
|