opencode-swarm 7.78.5 → 7.78.7
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/cli/index.js +782 -698
- package/dist/commands/close.d.ts +4 -0
- package/dist/commands/conflict-registry.d.ts +9 -0
- package/dist/git/branch.d.ts +9 -0
- package/dist/index.js +1708 -1641
- package/package.json +1 -1
package/dist/commands/close.d.ts
CHANGED
|
@@ -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 {};
|
|
@@ -83,3 +83,12 @@ export declare const CLAUDE_CODE_CONFLICTS: readonly [{
|
|
|
83
83
|
export declare const CRITICAL_CONFLICTS: Set<string>;
|
|
84
84
|
export declare const HIGH_CONFLICTS: Set<string>;
|
|
85
85
|
export declare const CONFLICT_MAP: Map<string, CommandConflict>;
|
|
86
|
+
/**
|
|
87
|
+
* CC_COMMAND_MAP — maps CC command names (without leading /) to their CommandConflict entry.
|
|
88
|
+
* Used by cc-command-intercept hook to look up conflicts by the bare CC command name.
|
|
89
|
+
* E.g., 'plan' → CommandConflict for /plan, 'reset' → CommandConflict for /reset, 'clear' → CommandConflict for /clear
|
|
90
|
+
*
|
|
91
|
+
* Known aliases are registered below: /clear is documented as an alias for /reset
|
|
92
|
+
* (see /reset entry's `ccBehavior` field), so it must be intercepted identically.
|
|
93
|
+
*/
|
|
94
|
+
export declare const CC_COMMAND_MAP: Map<string, CommandConflict>;
|
package/dist/git/branch.d.ts
CHANGED
|
@@ -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
|
};
|