@co0ontty/wand 1.18.12 → 1.20.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/types.d.ts CHANGED
@@ -135,6 +135,48 @@ export interface WorktreeMergeResult {
135
135
  errorCode?: string;
136
136
  reason?: string;
137
137
  }
138
+ export interface GitStatusFileEntry {
139
+ path: string;
140
+ /** Two-char porcelain status (e.g. " M", "MM", "??", "A ") */
141
+ status: string;
142
+ /** True 当条目是 submodule(来源于 porcelain v2 的 sub 字段第一位为 S)。 */
143
+ isSubmodule?: boolean;
144
+ /** submodule 子状态:指针是否变化 / 内部是否 dirty / 是否有未跟踪文件。 */
145
+ submoduleState?: {
146
+ commitChanged: boolean;
147
+ hasTrackedChanges: boolean;
148
+ hasUntracked: boolean;
149
+ };
150
+ }
151
+ export interface GitStatusResult {
152
+ isGit: boolean;
153
+ branch?: string;
154
+ /** Number of files with any change (modified / added / deleted / untracked). */
155
+ modifiedCount?: number;
156
+ files?: GitStatusFileEntry[];
157
+ head?: string;
158
+ repoRoot?: string;
159
+ /** Truthy when the repo has no commits yet (initial state). */
160
+ initialCommit?: boolean;
161
+ /** Most recent reachable tag (e.g. "v1.2.3"). */
162
+ latestTag?: string;
163
+ /** Auto-suggested next tag derived by bumping the patch segment. */
164
+ suggestedNextTag?: string;
165
+ error?: string;
166
+ }
167
+ export interface QuickCommitResult {
168
+ ok: boolean;
169
+ commit?: {
170
+ hash: string;
171
+ message: string;
172
+ };
173
+ tag?: {
174
+ name: string;
175
+ };
176
+ pushed?: boolean;
177
+ /** commit 已成功但 push 失败时填入;前端用它显示"已提交但 push 失败"。 */
178
+ pushError?: string;
179
+ }
138
180
  export interface CommandRequest {
139
181
  command: string;
140
182
  provider?: SessionProvider;