opencode-swarm 7.78.4 → 7.78.6

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.
@@ -1,3 +1,4 @@
1
+ import { getGitRepositoryStatus, resetToMainAfterMerge, resetToRemoteBranch } from '../git/branch';
1
2
  interface PlanPhase {
2
3
  id: number;
3
4
  name: string;
@@ -45,6 +46,9 @@ export declare const _internals: {
45
46
  countSessionKnowledgeEntries: typeof countSessionKnowledgeEntries;
46
47
  CLOSE_SKILL_REVIEW_TIMEOUT_MS: number;
47
48
  guaranteeAllPlansComplete: typeof guaranteeAllPlansComplete;
49
+ getGitRepositoryStatus: typeof getGitRepositoryStatus;
50
+ resetToMainAfterMerge: typeof resetToMainAfterMerge;
51
+ resetToRemoteBranch: typeof resetToRemoteBranch;
48
52
  copyDirRecursive: typeof copyDirRecursive;
49
53
  };
50
54
  export {};
@@ -1,7 +1,15 @@
1
+ export type GitRepositoryStatus = {
2
+ isRepo: true;
3
+ } | {
4
+ isRepo: false;
5
+ reason: 'not_git_repo' | 'git_unavailable' | 'git_error';
6
+ message: string;
7
+ };
1
8
  /**
2
9
  * Execute git command safely
3
10
  */
4
11
  declare function gitExec(args: string[], cwd: string): string;
12
+ export declare function getGitRepositoryStatus(cwd: string): GitRepositoryStatus;
5
13
  /**
6
14
  * Check if we're in a git repository
7
15
  */
@@ -102,6 +110,7 @@ export declare const _internals: {
102
110
  gitExec: typeof gitExec;
103
111
  detectDefaultRemoteBranch: typeof detectDefaultRemoteBranch;
104
112
  getDefaultBaseBranch: typeof getDefaultBaseBranch;
113
+ getGitRepositoryStatus: typeof getGitRepositoryStatus;
105
114
  resetToRemoteBranch: typeof resetToRemoteBranch;
106
115
  resetToMainAfterMerge: typeof resetToMainAfterMerge;
107
116
  };