mindwire 0.1.22 → 0.1.23
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.js +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/workspace.d.ts +9 -3
- package/package.json +1 -1
package/dist/workspace.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export interface ProjectGitState {
|
|
|
32
32
|
stored: boolean;
|
|
33
33
|
repoUrl?: string;
|
|
34
34
|
}
|
|
35
|
-
export type GitAction = "stage" | "unstage" | "discard" | "commit" | "fetch" | "pull" | "push" | "switch_branch" | "create_branch";
|
|
35
|
+
export type GitAction = "stage" | "unstage" | "discard" | "commit" | "fetch" | "pull" | "push" | "switch_branch" | "create_branch" | "restore_commit";
|
|
36
36
|
export interface GitIdentity {
|
|
37
37
|
name: string;
|
|
38
38
|
email: string;
|
|
@@ -68,6 +68,12 @@ export interface GitOperationRequest {
|
|
|
68
68
|
/** Commit only; requires gitOperationsVersion >= 3. Saves attribution in this repository,
|
|
69
69
|
* then commits under the same durable lock. Never changes global Git configuration. */
|
|
70
70
|
identity?: GitIdentity;
|
|
71
|
+
/** restore_commit only; requires gitOperationsVersion >= 4. Full source commit object ID. */
|
|
72
|
+
commitId?: string;
|
|
73
|
+
/** restore_commit only: full HEAD object ID observed before confirmation. */
|
|
74
|
+
expectedHead?: string;
|
|
75
|
+
/** restore_commit only: observed local branch name; omit for detached HEAD. */
|
|
76
|
+
expectedBranch?: string;
|
|
71
77
|
/** Write-only, for network operations only. Never part of an operation snapshot. */
|
|
72
78
|
auth?: ProjectAuth;
|
|
73
79
|
}
|
|
@@ -79,7 +85,7 @@ export interface GitOperation extends Omit<GitOperationRequest, "auth"> {
|
|
|
79
85
|
output?: string;
|
|
80
86
|
error?: string;
|
|
81
87
|
/** git_identity_required asks the client to collect a name/email before a new commit intent. */
|
|
82
|
-
errorCode?: "git_identity_required" | (string & {});
|
|
88
|
+
errorCode?: "git_identity_required" | "git_restore_dirty" | "git_restore_changed" | "git_restore_in_progress" | "git_restore_commit_unavailable" | "git_restore_local_files" | (string & {});
|
|
83
89
|
createdAt: string;
|
|
84
90
|
updatedAt: string;
|
|
85
91
|
sequence: number;
|
|
@@ -253,7 +259,7 @@ export declare class GitAccessApi {
|
|
|
253
259
|
run(projectId: string, operation: "fetch" | "pull" | "push", auth?: ProjectAuth): Promise<{
|
|
254
260
|
output: string;
|
|
255
261
|
}>;
|
|
256
|
-
/** Requires health.gitOperationsVersion >= 1 (>= 2 for
|
|
262
|
+
/** Requires health.gitOperationsVersion >= 1 (>= 2 for branches, >= 4 for restore_commit). Acceptance persists before Git runs;
|
|
257
263
|
* disconnecting only detaches the client. The same ID/intent never runs twice.
|
|
258
264
|
*/
|
|
259
265
|
start(projectId: string, request: GitOperationRequest): Promise<GitOperation>;
|