mindwire 0.1.18 → 0.1.19
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/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +6 -2
- package/dist/workspace.d.ts +16 -3
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -889,7 +889,11 @@ export interface SetupStatus {
|
|
|
889
889
|
/** The shared job's operation, including when another client started it. Older daemons omit it. */
|
|
890
890
|
operation?: "setup" | "update";
|
|
891
891
|
/** Current step phase, reported by the daemon rather than inferred from elapsed time. */
|
|
892
|
-
stage?: "checking" | "waiting" | "installing" | "verifying" | (string & {});
|
|
892
|
+
stage?: "checking" | "waiting" | "installing" | "resolving" | "downloading" | "configuring" | "verifying" | (string & {});
|
|
893
|
+
/** Ordered tool names in this job. Count successful steps for step progress, not download percent. */
|
|
894
|
+
plan?: string[];
|
|
895
|
+
/** ISO 8601 start time of the shared job, preserved when clients reconnect. */
|
|
896
|
+
startedAt?: string;
|
|
893
897
|
}
|
|
894
898
|
/** `GET /notify/config` — the token is never returned. */
|
|
895
899
|
export interface NotifyConfigStatus {
|
|
@@ -980,7 +984,7 @@ export interface Health {
|
|
|
980
984
|
projectOperationsVersion?: number;
|
|
981
985
|
/** Workspace/project GitHub bindings and operation/run credential forwarding. */
|
|
982
986
|
gitAccessVersion?: number;
|
|
983
|
-
/** Durable
|
|
987
|
+
/** Durable Git writes: v2 adds branches; v3 adds repository-scoped commit author setup. */
|
|
984
988
|
gitOperationsVersion?: number;
|
|
985
989
|
/** Persistent profile/chat mutes enforced before every notification delivery. */
|
|
986
990
|
notificationPreferencesVersion?: number;
|
package/dist/workspace.d.ts
CHANGED
|
@@ -32,15 +32,26 @@ export interface ProjectGitState {
|
|
|
32
32
|
stored: boolean;
|
|
33
33
|
repoUrl?: string;
|
|
34
34
|
}
|
|
35
|
-
export type GitAction = "stage" | "unstage" | "discard" | "commit" | "fetch" | "pull" | "push";
|
|
35
|
+
export type GitAction = "stage" | "unstage" | "discard" | "commit" | "fetch" | "pull" | "push" | "switch_branch" | "create_branch";
|
|
36
|
+
export interface GitIdentity {
|
|
37
|
+
name: string;
|
|
38
|
+
email: string;
|
|
39
|
+
}
|
|
36
40
|
export interface GitOperationRequest {
|
|
37
41
|
/** Stable ID. Reuse this exact intent after a lost acknowledgement. */
|
|
38
42
|
id: string;
|
|
39
43
|
action: GitAction;
|
|
40
44
|
/** Literal repository-relative paths, required for stage/unstage/discard. */
|
|
41
45
|
paths?: string[];
|
|
42
|
-
/** Required for commit.
|
|
46
|
+
/** Required for commit. Uses the existing author unless identity is explicitly supplied. */
|
|
43
47
|
message?: string;
|
|
48
|
+
/** Literal branch name for switch_branch/create_branch; requires gitOperationsVersion >= 2. */
|
|
49
|
+
branch?: string;
|
|
50
|
+
/** switch_branch only: branch is a remote tracking name, e.g. origin/feature. */
|
|
51
|
+
remote?: boolean;
|
|
52
|
+
/** Commit only; requires gitOperationsVersion >= 3. Saves attribution in this repository,
|
|
53
|
+
* then commits under the same durable lock. Never changes global Git configuration. */
|
|
54
|
+
identity?: GitIdentity;
|
|
44
55
|
/** Write-only, for network operations only. Never part of an operation snapshot. */
|
|
45
56
|
auth?: ProjectAuth;
|
|
46
57
|
}
|
|
@@ -51,6 +62,8 @@ export interface GitOperation extends Omit<GitOperationRequest, "auth"> {
|
|
|
51
62
|
status: "queued" | "running" | "cancelling" | "succeeded" | "failed" | "cancelled" | "interrupted";
|
|
52
63
|
output?: string;
|
|
53
64
|
error?: string;
|
|
65
|
+
/** git_identity_required asks the client to collect a name/email before a new commit intent. */
|
|
66
|
+
errorCode?: "git_identity_required" | (string & {});
|
|
54
67
|
createdAt: string;
|
|
55
68
|
updatedAt: string;
|
|
56
69
|
sequence: number;
|
|
@@ -213,7 +226,7 @@ export declare class GitAccessApi {
|
|
|
213
226
|
run(projectId: string, operation: "fetch" | "pull" | "push", auth?: ProjectAuth): Promise<{
|
|
214
227
|
output: string;
|
|
215
228
|
}>;
|
|
216
|
-
/** Requires health.gitOperationsVersion >= 1. Acceptance persists before Git runs;
|
|
229
|
+
/** Requires health.gitOperationsVersion >= 1 (>= 2 for branch changes). Acceptance persists before Git runs;
|
|
217
230
|
* disconnecting only detaches the client. The same ID/intent never runs twice.
|
|
218
231
|
*/
|
|
219
232
|
start(projectId: string, request: GitOperationRequest): Promise<GitOperation>;
|