@loucompanion/forge-bridge 0.1.1-dev.e52b249f07a8 → 0.1.1-dev.f599637d804e

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.
@@ -13,7 +13,9 @@ export class BridgeSessionService {
13
13
  const redactionSecrets = exactSecrets(dispatch);
14
14
  const events = [];
15
15
  const emit = async (event) => {
16
- throwIfAborted(signal);
16
+ if (signal?.aborted) {
17
+ return;
18
+ }
17
19
  const redacted = redactSecrets(event, redactionSecrets);
18
20
  events.push(redacted);
19
21
  await sink.emit(redacted);
@@ -29,11 +31,18 @@ export class BridgeSessionService {
29
31
  repo: dispatch.repo,
30
32
  workItem: dispatch.workItem,
31
33
  baseBranch: dispatch.cycleRun.baseBranch || dispatch.cycleRun.requestedBase,
34
+ worktreeKey: dispatch.lease.worktreeKey,
35
+ ownerType: dispatch.cycleRun.ownerType ?? dispatch.lease.ownerType ?? null,
36
+ ownerId: dispatch.cycleRun.ownerId ?? dispatch.lease.ownerId ?? null,
37
+ lane: dispatch.execution.lane,
38
+ phase: dispatch.cycleRun.phase,
32
39
  allowedRepoRoot: dispatch.serverLocal.repoRoot,
33
40
  cleanupWorktrees: dispatch.serverLocal.cleanupWorktrees,
34
41
  artifacts: dispatch.artifacts,
42
+ qaRework: dispatch.qaRework,
35
43
  warmPathOverrides: dispatch.warmPathOverrides
36
44
  });
45
+ const providerDispatch = withPreparedQaReworkPacket(dispatch, worktree.qaReworkPacketPath);
37
46
  throwIfAborted(signal);
38
47
  await emit({
39
48
  role: "runner",
@@ -49,18 +58,22 @@ export class BridgeSessionService {
49
58
  const lane = dispatch.execution.lane.toLowerCase();
50
59
  const role = dispatch.execution.role.toLowerCase();
51
60
  const isQa = role === "qa" || lane === "qa";
61
+ const isArchitect = role === "architect" || lane === "architect" || dispatch.cycleRun.kind.toLowerCase() === "architect";
52
62
  const isConflictResolve = role === "conflict_resolve" || lane === "conflict_resolve";
53
63
  const context = {
54
- dispatch,
64
+ dispatch: providerDispatch,
55
65
  worktree,
56
66
  emit,
57
67
  signal
58
68
  };
59
69
  const run = isQa
60
70
  ? await this.providerCli.runQa(context)
61
- : isConflictResolve
62
- ? await this.providerCli.runConflictResolve(context)
63
- : await this.providerCli.runImplementation(context);
71
+ : isArchitect
72
+ ? await this.providerCli.runArchitect(context)
73
+ : isConflictResolve
74
+ ? await this.providerCli.runConflictResolve(context)
75
+ : await this.providerCli.runImplementation(context);
76
+ throwIfAborted(signal);
64
77
  const phaseArtifacts = run.artifacts?.length ? run.artifacts : run.artifact ? [run.artifact] : [];
65
78
  return redactSecrets({
66
79
  schemaVersion: 1,
@@ -104,6 +117,18 @@ function validateApiKeySecretGrant(dispatch) {
104
117
  function exactSecrets(dispatch) {
105
118
  return dispatch.apiKeySecretGrant?.secret ? [dispatch.apiKeySecretGrant.secret] : [];
106
119
  }
120
+ function withPreparedQaReworkPacket(dispatch, packetPath) {
121
+ if (!dispatch.qaRework || !packetPath) {
122
+ return dispatch;
123
+ }
124
+ return {
125
+ ...dispatch,
126
+ qaRework: {
127
+ ...dispatch.qaRework,
128
+ packetPath
129
+ }
130
+ };
131
+ }
107
132
  async function emitDependencyWarmEvents(warm, emit) {
108
133
  if (warm.linked.length > 0) {
109
134
  await emit({
@@ -8,11 +8,15 @@ export interface RunOnceDispatchPacket {
8
8
  readonly lease: DispatchLease;
9
9
  readonly execution: DispatchExecution;
10
10
  readonly serverLocal: DispatchServerLocalConfig;
11
+ readonly pullRequest?: DispatchPullRequestContext | null;
11
12
  readonly apiKeySecretGrant?: ApiKeySecretGrant | null;
12
13
  readonly artifacts: readonly DispatchResolvedArtifact[];
13
14
  readonly warmPathOverrides?: readonly string[];
14
15
  readonly qaBrowser?: DispatchQaBrowserContext | null;
15
16
  readonly qaRework?: DispatchQaReworkContext | null;
17
+ readonly architectRevision?: DispatchArchitectRevisionContext | null;
18
+ readonly storyDevelop?: DispatchStoryDevelopContext | null;
19
+ readonly storyQa?: DispatchStoryQaContext | null;
16
20
  }
17
21
  export interface DispatchQaBrowserContext {
18
22
  readonly required: boolean;
@@ -36,6 +40,83 @@ export interface DispatchQaReworkContext {
36
40
  readonly findingIds: readonly string[];
37
41
  readonly findings: readonly Record<string, unknown>[];
38
42
  }
43
+ export interface DispatchArchitectRevisionContext {
44
+ readonly priorPlanId: string;
45
+ readonly priorContentHash: string;
46
+ readonly feedback: string;
47
+ }
48
+ export interface DispatchStoryDevelopContext {
49
+ readonly storyWorkItemId: string;
50
+ readonly planId: string;
51
+ readonly planContentHash: string;
52
+ readonly architectTaskId: string;
53
+ readonly phaseId: string;
54
+ readonly dependencyWorkItemIds: readonly string[];
55
+ }
56
+ export interface DispatchStoryQaContext {
57
+ readonly storyWorkItemId: string;
58
+ readonly planId: string;
59
+ readonly planContentHash: string;
60
+ readonly worktreeKey: string;
61
+ readonly branch: string;
62
+ readonly implementationPlanJson?: string | null;
63
+ readonly qaPlanJson?: string | null;
64
+ readonly finalQaChecks: readonly string[];
65
+ readonly childTasks: readonly DispatchStoryQaChildTaskContext[];
66
+ readonly dependencies: readonly DispatchStoryQaDependencyContext[];
67
+ }
68
+ export interface DispatchStoryQaChildTaskContext {
69
+ readonly workItemId: string;
70
+ readonly title: string;
71
+ readonly architectTaskId: string;
72
+ readonly phaseId: string;
73
+ readonly phaseOrder: number;
74
+ readonly dependencyWorkItemIds: readonly string[];
75
+ readonly spec?: DispatchStoryQaChildSpecContext | null;
76
+ readonly implementationArtifact?: DispatchStoryQaArtifactContext | null;
77
+ readonly selfReviewArtifact?: DispatchStoryQaArtifactContext | null;
78
+ readonly validationArtifact?: DispatchStoryQaArtifactContext | null;
79
+ readonly qaArtifact?: DispatchStoryQaArtifactContext | null;
80
+ }
81
+ export interface DispatchStoryQaChildSpecContext {
82
+ readonly version: number;
83
+ readonly status: string;
84
+ readonly path: string;
85
+ readonly contentHash: string;
86
+ readonly body: string;
87
+ }
88
+ export interface DispatchStoryQaArtifactContext {
89
+ readonly artifactId: string;
90
+ readonly cycleRunId: string;
91
+ readonly phase: string;
92
+ readonly status: string;
93
+ readonly producedAt: string;
94
+ readonly path?: string | null;
95
+ readonly verdictJson?: string | null;
96
+ readonly evidenceJson?: string | null;
97
+ readonly findingsJson?: string | null;
98
+ readonly report?: string | null;
99
+ }
100
+ export interface DispatchStoryQaDependencyContext {
101
+ readonly fromWorkItemId: string;
102
+ readonly toWorkItemId: string;
103
+ }
104
+ export interface DispatchPullRequestContext {
105
+ readonly number: number;
106
+ readonly provider: string;
107
+ readonly title: string;
108
+ readonly sourceBranch: string;
109
+ readonly targetBranch: string;
110
+ readonly url: string;
111
+ readonly state: string;
112
+ readonly checkState: string;
113
+ readonly mergeState: string;
114
+ readonly requiredChecksPassed: number;
115
+ readonly requiredChecksTotal: number;
116
+ readonly unresolvedThreads: number;
117
+ readonly humanApproved: boolean;
118
+ readonly hasMergeConflicts: boolean;
119
+ }
39
120
  export interface DispatchResolvedArtifact {
40
121
  readonly kind: string;
41
122
  readonly slug: string;
@@ -134,6 +215,9 @@ export interface RunnerDispatchArtifact {
134
215
  readonly repoPath: string;
135
216
  readonly path: string;
136
217
  readonly verdictJson: string;
218
+ readonly planJson?: string | null;
219
+ readonly evidenceJson?: string | null;
220
+ readonly findingsJson?: string | null;
137
221
  readonly report: string;
138
222
  readonly producedBy: string;
139
223
  readonly status: string;
@@ -15,11 +15,15 @@ export function parseRunOnceDispatchPacket(value) {
15
15
  lease: parseLease(packet.lease),
16
16
  execution: parseExecution(packet.execution),
17
17
  serverLocal: parseServerLocal(packet.serverLocal),
18
+ pullRequest: parsePullRequest(packet.pullRequest),
18
19
  apiKeySecretGrant: parseApiKeySecretGrant(packet.apiKeySecretGrant),
19
20
  artifacts: parseArtifacts(packet.artifacts),
20
21
  warmPathOverrides: parseWarmPathOverrides(packet.warmPathOverrides),
21
22
  qaBrowser: parseQaBrowser(packet.qaBrowser),
22
- qaRework: parseQaRework(packet.qaRework)
23
+ qaRework: parseQaRework(packet.qaRework),
24
+ architectRevision: parseArchitectRevision(packet.architectRevision),
25
+ storyDevelop: parseStoryDevelop(packet.storyDevelop),
26
+ storyQa: parseStoryQa(packet.storyQa)
23
27
  };
24
28
  }
25
29
  export function failureResult(summary, events = []) {
@@ -124,6 +128,28 @@ function parseServerLocal(value) {
124
128
  cleanupWorktrees: requiredBoolean(serverLocal, "cleanupWorktrees")
125
129
  };
126
130
  }
131
+ function parsePullRequest(value) {
132
+ if (value === undefined || value === null) {
133
+ return null;
134
+ }
135
+ const pullRequest = asObject(value, "pullRequest");
136
+ return {
137
+ number: requiredNumber(pullRequest, "number"),
138
+ provider: requiredString(pullRequest, "provider"),
139
+ title: optionalString(pullRequest, "title") ?? "",
140
+ sourceBranch: requiredString(pullRequest, "sourceBranch"),
141
+ targetBranch: requiredString(pullRequest, "targetBranch"),
142
+ url: optionalString(pullRequest, "url") ?? "",
143
+ state: requiredString(pullRequest, "state"),
144
+ checkState: requiredString(pullRequest, "checkState"),
145
+ mergeState: requiredString(pullRequest, "mergeState"),
146
+ requiredChecksPassed: requiredNumber(pullRequest, "requiredChecksPassed"),
147
+ requiredChecksTotal: requiredNumber(pullRequest, "requiredChecksTotal"),
148
+ unresolvedThreads: requiredNumber(pullRequest, "unresolvedThreads"),
149
+ humanApproved: requiredBoolean(pullRequest, "humanApproved"),
150
+ hasMergeConflicts: requiredBoolean(pullRequest, "hasMergeConflicts")
151
+ };
152
+ }
127
153
  function parseWarmPathOverrides(value) {
128
154
  if (value === undefined || value === null) {
129
155
  return [];
@@ -211,6 +237,133 @@ function parseQaRework(value) {
211
237
  findings: findingsValue.map((entry, index) => asObject(entry, `qaRework.findings[${index}]`))
212
238
  };
213
239
  }
240
+ function parseArchitectRevision(value) {
241
+ if (value === undefined || value === null) {
242
+ return null;
243
+ }
244
+ const revision = asObject(value, "architectRevision");
245
+ return {
246
+ priorPlanId: requiredString(revision, "priorPlanId"),
247
+ priorContentHash: requiredString(revision, "priorContentHash"),
248
+ feedback: requiredString(revision, "feedback")
249
+ };
250
+ }
251
+ function parseStoryDevelop(value) {
252
+ if (value === undefined || value === null) {
253
+ return null;
254
+ }
255
+ const storyDevelop = asObject(value, "storyDevelop");
256
+ const dependencyWorkItemIds = storyDevelop.dependencyWorkItemIds;
257
+ if (!Array.isArray(dependencyWorkItemIds)) {
258
+ throw new Error("storyDevelop.dependencyWorkItemIds must be an array.");
259
+ }
260
+ return {
261
+ storyWorkItemId: requiredString(storyDevelop, "storyWorkItemId"),
262
+ planId: requiredString(storyDevelop, "planId"),
263
+ planContentHash: requiredString(storyDevelop, "planContentHash"),
264
+ architectTaskId: requiredString(storyDevelop, "architectTaskId"),
265
+ phaseId: requiredString(storyDevelop, "phaseId"),
266
+ dependencyWorkItemIds: dependencyWorkItemIds.map((entry, index) => {
267
+ if (typeof entry !== "string" || entry.trim().length === 0) {
268
+ throw new Error(`storyDevelop.dependencyWorkItemIds[${index}] must be a non-empty string.`);
269
+ }
270
+ return entry.trim();
271
+ })
272
+ };
273
+ }
274
+ function parseStoryQa(value) {
275
+ if (value === undefined || value === null) {
276
+ return null;
277
+ }
278
+ const storyQa = asObject(value, "storyQa");
279
+ return {
280
+ storyWorkItemId: requiredString(storyQa, "storyWorkItemId"),
281
+ planId: requiredString(storyQa, "planId"),
282
+ planContentHash: requiredString(storyQa, "planContentHash"),
283
+ worktreeKey: requiredString(storyQa, "worktreeKey"),
284
+ branch: requiredString(storyQa, "branch"),
285
+ implementationPlanJson: optionalString(storyQa, "implementationPlanJson"),
286
+ qaPlanJson: optionalString(storyQa, "qaPlanJson"),
287
+ finalQaChecks: parseStringArray(storyQa.finalQaChecks, "storyQa.finalQaChecks"),
288
+ childTasks: parseStoryQaChildTasks(storyQa.childTasks),
289
+ dependencies: parseStoryQaDependencies(storyQa.dependencies)
290
+ };
291
+ }
292
+ function parseStoryQaChildTasks(value) {
293
+ if (!Array.isArray(value)) {
294
+ throw new Error("storyQa.childTasks must be an array.");
295
+ }
296
+ return value.map((entry, index) => {
297
+ const child = asObject(entry, `storyQa.childTasks[${index}]`);
298
+ return {
299
+ workItemId: requiredString(child, "workItemId"),
300
+ title: requiredString(child, "title"),
301
+ architectTaskId: requiredString(child, "architectTaskId"),
302
+ phaseId: requiredString(child, "phaseId"),
303
+ phaseOrder: requiredNumber(child, "phaseOrder"),
304
+ dependencyWorkItemIds: parseStringArray(child.dependencyWorkItemIds, `storyQa.childTasks[${index}].dependencyWorkItemIds`),
305
+ spec: parseStoryQaSpec(child.spec, `storyQa.childTasks[${index}].spec`),
306
+ implementationArtifact: parseStoryQaArtifact(child.implementationArtifact, `storyQa.childTasks[${index}].implementationArtifact`),
307
+ selfReviewArtifact: parseStoryQaArtifact(child.selfReviewArtifact, `storyQa.childTasks[${index}].selfReviewArtifact`),
308
+ validationArtifact: parseStoryQaArtifact(child.validationArtifact, `storyQa.childTasks[${index}].validationArtifact`),
309
+ qaArtifact: parseStoryQaArtifact(child.qaArtifact, `storyQa.childTasks[${index}].qaArtifact`)
310
+ };
311
+ });
312
+ }
313
+ function parseStoryQaSpec(value, label) {
314
+ if (value === undefined || value === null) {
315
+ return null;
316
+ }
317
+ const spec = asObject(value, label);
318
+ return {
319
+ version: requiredNumber(spec, "version"),
320
+ status: requiredString(spec, "status"),
321
+ path: requiredString(spec, "path"),
322
+ contentHash: requiredString(spec, "contentHash"),
323
+ body: requiredString(spec, "body")
324
+ };
325
+ }
326
+ function parseStoryQaArtifact(value, label) {
327
+ if (value === undefined || value === null) {
328
+ return null;
329
+ }
330
+ const artifact = asObject(value, label);
331
+ return {
332
+ artifactId: requiredString(artifact, "artifactId"),
333
+ cycleRunId: requiredString(artifact, "cycleRunId"),
334
+ phase: requiredString(artifact, "phase"),
335
+ status: requiredString(artifact, "status"),
336
+ producedAt: requiredString(artifact, "producedAt"),
337
+ path: optionalString(artifact, "path"),
338
+ verdictJson: optionalString(artifact, "verdictJson"),
339
+ evidenceJson: optionalString(artifact, "evidenceJson"),
340
+ findingsJson: optionalString(artifact, "findingsJson"),
341
+ report: optionalString(artifact, "report")
342
+ };
343
+ }
344
+ function parseStoryQaDependencies(value) {
345
+ if (!Array.isArray(value)) {
346
+ throw new Error("storyQa.dependencies must be an array.");
347
+ }
348
+ return value.map((entry, index) => {
349
+ const dependency = asObject(entry, `storyQa.dependencies[${index}]`);
350
+ return {
351
+ fromWorkItemId: requiredString(dependency, "fromWorkItemId").trim(),
352
+ toWorkItemId: requiredString(dependency, "toWorkItemId").trim()
353
+ };
354
+ });
355
+ }
356
+ function parseStringArray(value, label) {
357
+ if (!Array.isArray(value)) {
358
+ throw new Error(`${label} must be an array.`);
359
+ }
360
+ return value.map((entry, index) => {
361
+ if (typeof entry !== "string" || entry.trim().length === 0) {
362
+ throw new Error(`${label}[${index}] must be a non-empty string.`);
363
+ }
364
+ return entry.trim();
365
+ });
366
+ }
214
367
  function parseArtifacts(value) {
215
368
  if (value === undefined || value === null) {
216
369
  return [];
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const forgeBridgeVersion = "0.1.1-dev.e52b249f07a8";
1
+ export declare const forgeBridgeVersion = "0.1.1-dev.f599637d804e";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const forgeBridgeVersion = "0.1.1-dev.e52b249f07a8";
1
+ export const forgeBridgeVersion = "0.1.1-dev.f599637d804e";
@@ -1,5 +1,6 @@
1
1
  import type { DispatchResolvedArtifact } from "../session/session.types.js";
2
2
  export declare function injectWorktreeArtifacts(worktreePath: string, artifacts: readonly DispatchResolvedArtifact[]): Promise<void>;
3
+ export declare function filterArtifactsForLane(artifacts: readonly DispatchResolvedArtifact[], lane: string, phase: string): readonly DispatchResolvedArtifact[];
3
4
  export declare function writeArtifact(worktreePath: string, artifact: DispatchResolvedArtifact): Promise<void>;
4
5
  export declare function selectLaneCommand(artifacts: readonly DispatchResolvedArtifact[], lane: string, phase: string): DispatchResolvedArtifact | undefined;
5
6
  export declare function resolveCommandSlug(lane: string, phase: string): string;
@@ -1,11 +1,52 @@
1
1
  import crypto from "node:crypto";
2
2
  import fs from "node:fs/promises";
3
3
  import path from "node:path";
4
+ const DEBUG_OPERATIONAL_SKILLS = new Set(["debug-repro", "debug-root-cause", "debug-fix", "debug-regression"]);
5
+ const DEBUG_OPERATIONAL_HOOKS = new Set(["debug-gate", "debug-tool-hook", "debug-rework"]);
6
+ const ARCHITECT_OPERATIONAL_SKILLS = new Set([
7
+ "architect-repo-map",
8
+ "architect-acceptance-map",
9
+ "architect-contract-designer",
10
+ "architect-dag-planner",
11
+ "architect-test-plan-designer",
12
+ "architect-risk-review",
13
+ "architect-integration-strategy",
14
+ "architect-handoff-writer",
15
+ "architect-mcp-contract",
16
+ "architect-semantic-validator"
17
+ ]);
18
+ const ARCHITECT_OPERATIONAL_HOOKS = new Set([
19
+ "architect-preflight",
20
+ "architect-context",
21
+ "architect-repo-map",
22
+ "architect-acceptance-map",
23
+ "architect-contracts",
24
+ "architect-plan",
25
+ "architect-qa-seed",
26
+ "architect-integration",
27
+ "architect-mcp-contract",
28
+ "architect-validate-plan",
29
+ "architect-risk-gate",
30
+ "architect-mcp-complete",
31
+ "architect-complete",
32
+ "architect-revise"
33
+ ]);
4
34
  export async function injectWorktreeArtifacts(worktreePath, artifacts) {
5
35
  for (const artifact of artifacts) {
6
36
  await writeArtifact(worktreePath, artifact);
7
37
  }
8
38
  }
39
+ export function filterArtifactsForLane(artifacts, lane, phase) {
40
+ const normalizedLane = lane.trim().toLowerCase();
41
+ const commandSlug = resolveCommandSlug(lane, phase).toLowerCase();
42
+ if (normalizedLane === "debug") {
43
+ return artifacts.filter((artifact) => shouldInjectDebugArtifact(artifact, commandSlug));
44
+ }
45
+ if (normalizedLane === "architect") {
46
+ return artifacts.filter((artifact) => shouldInjectArchitectArtifact(artifact, commandSlug));
47
+ }
48
+ return artifacts;
49
+ }
9
50
  export async function writeArtifact(worktreePath, artifact) {
10
51
  const writtenHash = sha256(artifact.body);
11
52
  if (writtenHash !== artifact.contentHash.toLowerCase()) {
@@ -29,11 +70,15 @@ export function selectLaneCommand(artifacts, lane, phase) {
29
70
  return artifacts.find((artifact) => normalizedArtifactKind(artifact.kind) === "command" && artifact.slug.trim().toLowerCase() === slug);
30
71
  }
31
72
  export function resolveCommandSlug(lane, phase) {
73
+ const normalizedLane = lane.trim().toLowerCase();
74
+ if (normalizedLane === "debug") {
75
+ return "debug-prompt";
76
+ }
32
77
  const normalizedPhase = phase.trim().toLowerCase().replace(/-/g, "_");
33
78
  if (normalizedPhase === "rework") {
34
79
  return "rework-prompt";
35
80
  }
36
- switch (lane.trim().toLowerCase()) {
81
+ switch (normalizedLane) {
37
82
  case "architect":
38
83
  return "architect-prompt";
39
84
  case "qa":
@@ -42,6 +87,38 @@ export function resolveCommandSlug(lane, phase) {
42
87
  return "dev-prompt";
43
88
  }
44
89
  }
90
+ function shouldInjectDebugArtifact(artifact, commandSlug) {
91
+ if (artifact.scope.trim().toLowerCase() !== "operational") {
92
+ return false;
93
+ }
94
+ const slug = artifact.slug.trim().toLowerCase();
95
+ switch (normalizedArtifactKind(artifact.kind)) {
96
+ case "command":
97
+ return slug === commandSlug;
98
+ case "skill":
99
+ return DEBUG_OPERATIONAL_SKILLS.has(slug);
100
+ case "hook":
101
+ return DEBUG_OPERATIONAL_HOOKS.has(slug);
102
+ default:
103
+ return true;
104
+ }
105
+ }
106
+ function shouldInjectArchitectArtifact(artifact, commandSlug) {
107
+ if (artifact.scope.trim().toLowerCase() !== "operational") {
108
+ return false;
109
+ }
110
+ const slug = artifact.slug.trim().toLowerCase();
111
+ switch (normalizedArtifactKind(artifact.kind)) {
112
+ case "command":
113
+ return slug === commandSlug;
114
+ case "skill":
115
+ return ARCHITECT_OPERATIONAL_SKILLS.has(slug);
116
+ case "hook":
117
+ return ARCHITECT_OPERATIONAL_HOOKS.has(slug);
118
+ default:
119
+ return false;
120
+ }
121
+ }
45
122
  export function buildSpecBody(laneCommand, workItem, phase = "implementation") {
46
123
  const prompt = laneCommand.body.replaceAll("{workItemId}", workItem.id);
47
124
  return `---
@@ -11,6 +11,7 @@ export declare class GitWorktreeService implements WorktreeService {
11
11
  private resolveMatchingRepo;
12
12
  private ensureBaseBranch;
13
13
  private gitRefExists;
14
+ private currentBranch;
14
15
  private ensureGitIdentity;
15
16
  }
16
17
  export declare function normalizeBranchName(value: string | null | undefined, fallback: string): string;