mindwire 0.1.19 → 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/binary-cache-CG52TXCZ.js +3 -0
- package/dist/binary-cache-CG52TXCZ.js.map +1 -0
- package/dist/binary-cache-ZTEYICUF.js +51 -0
- package/dist/binary-cache-ZTEYICUF.js.map +1 -0
- package/dist/binary-cache.d.ts +5 -0
- package/dist/chunk-PFYKJ6LX.js +103 -0
- package/dist/chunk-PFYKJ6LX.js.map +1 -0
- package/dist/chunk-T6TD76UA.js +57 -0
- package/dist/chunk-T6TD76UA.js.map +1 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +2395 -0
- package/dist/cli.js.map +1 -0
- package/dist/client.d.ts +4 -0
- package/dist/computer/cloudflare-binary.d.ts +9 -0
- package/dist/computer/lifecycle.d.ts +24 -0
- package/dist/computer/relay.d.ts +19 -0
- package/dist/computer.d.ts +80 -0
- package/dist/execution.d.ts +111 -0
- package/dist/index.cjs +323 -120
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +141 -81
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +5 -0
- package/dist/workspace.d.ts +36 -3
- package/package.json +7 -2
package/dist/types.d.ts
CHANGED
|
@@ -986,6 +986,8 @@ export interface Health {
|
|
|
986
986
|
gitAccessVersion?: number;
|
|
987
987
|
/** Durable Git writes: v2 adds branches; v3 adds repository-scoped commit author setup. */
|
|
988
988
|
gitOperationsVersion?: number;
|
|
989
|
+
/** Independent author settings with repository/workspace/shared-default inheritance. */
|
|
990
|
+
gitIdentityVersion?: number;
|
|
989
991
|
/** Persistent profile/chat mutes enforced before every notification delivery. */
|
|
990
992
|
notificationPreferencesVersion?: number;
|
|
991
993
|
harnessPolicyVersion?: number;
|
|
@@ -996,6 +998,9 @@ export interface Health {
|
|
|
996
998
|
serviceUpdateVersion?: number;
|
|
997
999
|
/** Container placement supplies the sandbox boundary; approval policy is independent. */
|
|
998
1000
|
workspaceIsolationVersion?: number;
|
|
1001
|
+
workspaceExecutionVersion?: number;
|
|
1002
|
+
terminalProtocolVersion?: number;
|
|
1003
|
+
computerConnectionVersion?: number;
|
|
999
1004
|
workspaceIsolation?: "direct" | "container";
|
|
1000
1005
|
}
|
|
1001
1006
|
/**
|
package/dist/workspace.d.ts
CHANGED
|
@@ -32,11 +32,27 @@ 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;
|
|
39
39
|
}
|
|
40
|
+
export type GitIdentityScope = "repository" | "workspace" | "all_workspaces";
|
|
41
|
+
export interface GitIdentitySettings {
|
|
42
|
+
effective: GitIdentity;
|
|
43
|
+
repository: GitIdentity | null;
|
|
44
|
+
workspace: GitIdentity | null;
|
|
45
|
+
allWorkspaces: GitIdentity | null;
|
|
46
|
+
defaultRevision: string;
|
|
47
|
+
}
|
|
48
|
+
export interface GitIdentityUpdate {
|
|
49
|
+
scope: GitIdentityScope;
|
|
50
|
+
/** null removes this override, allowing a broader default to apply. */
|
|
51
|
+
identity: GitIdentity | null;
|
|
52
|
+
/** Required for all_workspaces; keep this ID and expectedRevision until acknowledged. */
|
|
53
|
+
requestId?: string;
|
|
54
|
+
expectedRevision?: string;
|
|
55
|
+
}
|
|
40
56
|
export interface GitOperationRequest {
|
|
41
57
|
/** Stable ID. Reuse this exact intent after a lost acknowledgement. */
|
|
42
58
|
id: string;
|
|
@@ -52,6 +68,12 @@ export interface GitOperationRequest {
|
|
|
52
68
|
/** Commit only; requires gitOperationsVersion >= 3. Saves attribution in this repository,
|
|
53
69
|
* then commits under the same durable lock. Never changes global Git configuration. */
|
|
54
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;
|
|
55
77
|
/** Write-only, for network operations only. Never part of an operation snapshot. */
|
|
56
78
|
auth?: ProjectAuth;
|
|
57
79
|
}
|
|
@@ -63,7 +85,7 @@ export interface GitOperation extends Omit<GitOperationRequest, "auth"> {
|
|
|
63
85
|
output?: string;
|
|
64
86
|
error?: string;
|
|
65
87
|
/** git_identity_required asks the client to collect a name/email before a new commit intent. */
|
|
66
|
-
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 & {});
|
|
67
89
|
createdAt: string;
|
|
68
90
|
updatedAt: string;
|
|
69
91
|
sequence: number;
|
|
@@ -217,6 +239,17 @@ export declare class WorkspaceApi {
|
|
|
217
239
|
export declare class GitAccessApi {
|
|
218
240
|
private readonly mw;
|
|
219
241
|
constructor(mw: Mindwire);
|
|
242
|
+
/** Reads attribution independently of GitHub authentication. Requires gitIdentityVersion >= 1. */
|
|
243
|
+
identity(context?: {
|
|
244
|
+
projectId?: string;
|
|
245
|
+
path?: string;
|
|
246
|
+
}): Promise<GitIdentitySettings>;
|
|
247
|
+
/** Saves settings only; never stages or commits. all_workspaces installs this
|
|
248
|
+
* workspace's copy of a client-managed default; the client handles fan-out. */
|
|
249
|
+
setIdentity(update: GitIdentityUpdate, context?: {
|
|
250
|
+
projectId?: string;
|
|
251
|
+
path?: string;
|
|
252
|
+
}): Promise<GitIdentitySettings>;
|
|
220
253
|
state(): Promise<GitAccessState>;
|
|
221
254
|
setDefault(connection: GitConnection | null, auth?: ProjectAuth): Promise<GitAccessState>;
|
|
222
255
|
forget(connectionId: string): Promise<GitAccessState>;
|
|
@@ -226,7 +259,7 @@ export declare class GitAccessApi {
|
|
|
226
259
|
run(projectId: string, operation: "fetch" | "pull" | "push", auth?: ProjectAuth): Promise<{
|
|
227
260
|
output: string;
|
|
228
261
|
}>;
|
|
229
|
-
/** Requires health.gitOperationsVersion >= 1 (>= 2 for
|
|
262
|
+
/** Requires health.gitOperationsVersion >= 1 (>= 2 for branches, >= 4 for restore_commit). Acceptance persists before Git runs;
|
|
230
263
|
* disconnecting only detaches the client. The same ID/intent never runs twice.
|
|
231
264
|
*/
|
|
232
265
|
start(projectId: string, request: GitOperationRequest): Promise<GitOperation>;
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mindwire",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"main": "./dist/index.cjs",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
|
+
"bin": { "mindwire": "./dist/cli.js" },
|
|
6
7
|
"devDependencies": {
|
|
7
8
|
"@types/node": "26.1.1",
|
|
9
|
+
"@types/qrcode": "^1.5.5",
|
|
8
10
|
"tsup": "8.5.1",
|
|
9
11
|
"typedoc": "^0.28.20",
|
|
10
12
|
"typedoc-plugin-markdown": "^4.12.0",
|
|
@@ -71,5 +73,8 @@
|
|
|
71
73
|
},
|
|
72
74
|
"sideEffects": false,
|
|
73
75
|
"type": "module",
|
|
74
|
-
"types": "./dist/index.d.ts"
|
|
76
|
+
"types": "./dist/index.d.ts",
|
|
77
|
+
"dependencies": {
|
|
78
|
+
"qrcode": "^1.5.4"
|
|
79
|
+
}
|
|
75
80
|
}
|