mindwire 0.1.18 → 0.1.22
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 +11 -2
- package/dist/workspace.d.ts +43 -3
- package/package.json +7 -2
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,8 +984,10 @@ 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;
|
|
989
|
+
/** Independent author settings with repository/workspace/shared-default inheritance. */
|
|
990
|
+
gitIdentityVersion?: number;
|
|
985
991
|
/** Persistent profile/chat mutes enforced before every notification delivery. */
|
|
986
992
|
notificationPreferencesVersion?: number;
|
|
987
993
|
harnessPolicyVersion?: number;
|
|
@@ -992,6 +998,9 @@ export interface Health {
|
|
|
992
998
|
serviceUpdateVersion?: number;
|
|
993
999
|
/** Container placement supplies the sandbox boundary; approval policy is independent. */
|
|
994
1000
|
workspaceIsolationVersion?: number;
|
|
1001
|
+
workspaceExecutionVersion?: number;
|
|
1002
|
+
terminalProtocolVersion?: number;
|
|
1003
|
+
computerConnectionVersion?: number;
|
|
995
1004
|
workspaceIsolation?: "direct" | "container";
|
|
996
1005
|
}
|
|
997
1006
|
/**
|
package/dist/workspace.d.ts
CHANGED
|
@@ -32,15 +32,42 @@ 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
|
+
}
|
|
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
|
+
}
|
|
36
56
|
export interface GitOperationRequest {
|
|
37
57
|
/** Stable ID. Reuse this exact intent after a lost acknowledgement. */
|
|
38
58
|
id: string;
|
|
39
59
|
action: GitAction;
|
|
40
60
|
/** Literal repository-relative paths, required for stage/unstage/discard. */
|
|
41
61
|
paths?: string[];
|
|
42
|
-
/** Required for commit.
|
|
62
|
+
/** Required for commit. Uses the existing author unless identity is explicitly supplied. */
|
|
43
63
|
message?: string;
|
|
64
|
+
/** Literal branch name for switch_branch/create_branch; requires gitOperationsVersion >= 2. */
|
|
65
|
+
branch?: string;
|
|
66
|
+
/** switch_branch only: branch is a remote tracking name, e.g. origin/feature. */
|
|
67
|
+
remote?: boolean;
|
|
68
|
+
/** Commit only; requires gitOperationsVersion >= 3. Saves attribution in this repository,
|
|
69
|
+
* then commits under the same durable lock. Never changes global Git configuration. */
|
|
70
|
+
identity?: GitIdentity;
|
|
44
71
|
/** Write-only, for network operations only. Never part of an operation snapshot. */
|
|
45
72
|
auth?: ProjectAuth;
|
|
46
73
|
}
|
|
@@ -51,6 +78,8 @@ export interface GitOperation extends Omit<GitOperationRequest, "auth"> {
|
|
|
51
78
|
status: "queued" | "running" | "cancelling" | "succeeded" | "failed" | "cancelled" | "interrupted";
|
|
52
79
|
output?: string;
|
|
53
80
|
error?: string;
|
|
81
|
+
/** git_identity_required asks the client to collect a name/email before a new commit intent. */
|
|
82
|
+
errorCode?: "git_identity_required" | (string & {});
|
|
54
83
|
createdAt: string;
|
|
55
84
|
updatedAt: string;
|
|
56
85
|
sequence: number;
|
|
@@ -204,6 +233,17 @@ export declare class WorkspaceApi {
|
|
|
204
233
|
export declare class GitAccessApi {
|
|
205
234
|
private readonly mw;
|
|
206
235
|
constructor(mw: Mindwire);
|
|
236
|
+
/** Reads attribution independently of GitHub authentication. Requires gitIdentityVersion >= 1. */
|
|
237
|
+
identity(context?: {
|
|
238
|
+
projectId?: string;
|
|
239
|
+
path?: string;
|
|
240
|
+
}): Promise<GitIdentitySettings>;
|
|
241
|
+
/** Saves settings only; never stages or commits. all_workspaces installs this
|
|
242
|
+
* workspace's copy of a client-managed default; the client handles fan-out. */
|
|
243
|
+
setIdentity(update: GitIdentityUpdate, context?: {
|
|
244
|
+
projectId?: string;
|
|
245
|
+
path?: string;
|
|
246
|
+
}): Promise<GitIdentitySettings>;
|
|
207
247
|
state(): Promise<GitAccessState>;
|
|
208
248
|
setDefault(connection: GitConnection | null, auth?: ProjectAuth): Promise<GitAccessState>;
|
|
209
249
|
forget(connectionId: string): Promise<GitAccessState>;
|
|
@@ -213,7 +253,7 @@ export declare class GitAccessApi {
|
|
|
213
253
|
run(projectId: string, operation: "fetch" | "pull" | "push", auth?: ProjectAuth): Promise<{
|
|
214
254
|
output: string;
|
|
215
255
|
}>;
|
|
216
|
-
/** Requires health.gitOperationsVersion >= 1. Acceptance persists before Git runs;
|
|
256
|
+
/** Requires health.gitOperationsVersion >= 1 (>= 2 for branch changes). Acceptance persists before Git runs;
|
|
217
257
|
* disconnecting only detaches the client. The same ID/intent never runs twice.
|
|
218
258
|
*/
|
|
219
259
|
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.22",
|
|
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
|
}
|