@boboddy/sdk 0.2.7-alpha → 0.2.8-alpha

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.
@@ -266,7 +266,16 @@ function getConfigPath(rootDir) {
266
266
  function isProjectConfig(value) {
267
267
  if (typeof value !== "object" || value === null)
268
268
  return false;
269
- return typeof value["projectId"] === "string";
269
+ const record = value;
270
+ if (typeof record["projectId"] !== "string")
271
+ return false;
272
+ if ("branchPrefix" in record && typeof record["branchPrefix"] !== "string") {
273
+ return false;
274
+ }
275
+ if ("baseWorkBranch" in record && typeof record["baseWorkBranch"] !== "string") {
276
+ return false;
277
+ }
278
+ return true;
270
279
  }
271
280
  async function loadProjectConfig(rootDir = process.cwd()) {
272
281
  try {
@@ -1,5 +1,20 @@
1
1
  export interface ProjectConfig {
2
2
  projectId: string;
3
+ /**
4
+ * Optional prefix for the per-step work branch name. The worker creates
5
+ * branches named `<branchPrefix>/<stepKey>-<stepExecutionId>`. Defaults to
6
+ * `boboddy` when omitted or invalid.
7
+ */
8
+ branchPrefix?: string;
9
+ /**
10
+ * Optional base branch the FIRST step's work branch is created off of. The
11
+ * worker clones the repo's default HEAD, then checks out this branch before
12
+ * branching. Overridden by the `BOBODDY_BASE_WORK_BRANCH` env var in
13
+ * `.boboddy/.env`. Ignored for later steps, which are always created off the
14
+ * predecessor step's work branch. Defaults to the repo's default branch when
15
+ * omitted or invalid.
16
+ */
17
+ baseWorkBranch?: string;
3
18
  }
4
19
  export declare const PROJECT_CONFIG_RELATIVE_PATH: string;
5
20
  export declare function loadProjectConfig(rootDir?: string): Promise<ProjectConfig | null>;
@@ -3123,7 +3123,6 @@ export type PostApiStepExecutionsByStepExecutionIdWorkerContextResponses = {
3123
3123
  200: {
3124
3124
  projectId: string;
3125
3125
  gitUrl: string;
3126
- requestedBranch: string | unknown;
3127
3126
  baseWorkBranch: string | unknown;
3128
3127
  projectOpencodeConfig: {
3129
3128
  relativePath: string;
@@ -102,7 +102,6 @@ declare const buildStepExecutionPlaneClient: (stepExecutions: StepExecutions) =>
102
102
  }, options?: RequestOptions) => Promise<{
103
103
  projectId: string;
104
104
  gitUrl: string;
105
- requestedBranch: string | unknown;
106
105
  baseWorkBranch: string | unknown;
107
106
  projectOpencodeConfig: {
108
107
  relativePath: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@boboddy/sdk",
4
- "version": "0.2.7-alpha",
4
+ "version": "0.2.8-alpha",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {