mindwire 0.1.38 → 0.1.41

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.
Files changed (39) hide show
  1. package/README.md +19 -0
  2. package/dist/chunk-4XNTGVCI.js +306 -0
  3. package/dist/chunk-4XNTGVCI.js.map +1 -0
  4. package/dist/{chunk-CKTVMUS4.js → chunk-T2ZIA4TK.js} +50 -16
  5. package/dist/chunk-T2ZIA4TK.js.map +1 -0
  6. package/dist/cli.js +525 -251
  7. package/dist/cli.js.map +1 -1
  8. package/dist/computer/dashboard.d.ts +1 -0
  9. package/dist/computer/desktop.d.ts +17 -0
  10. package/dist/computer/directory-http.d.ts +1 -1
  11. package/dist/computer/discovery.d.ts +22 -0
  12. package/dist/computer/inspection.d.ts +30 -0
  13. package/dist/computer/lifecycle.d.ts +4 -2
  14. package/dist/computer/runtime-version.d.ts +6 -0
  15. package/dist/computer/service-update.d.ts +26 -0
  16. package/dist/computer/setup-prompt.d.ts +2 -0
  17. package/dist/computer/startup.d.ts +7 -0
  18. package/dist/computer/terminal-ui.d.ts +9 -0
  19. package/dist/computer.d.ts +2 -0
  20. package/dist/{connection-change-5F4WNCYV.js → connection-change-RHY2OKFJ.js} +3 -3
  21. package/dist/{connection-change-5F4WNCYV.js.map → connection-change-RHY2OKFJ.js.map} +1 -1
  22. package/dist/{controller-3SZI7TBW.js → controller-G2T76QDM.js} +67 -9
  23. package/dist/controller-G2T76QDM.js.map +1 -0
  24. package/dist/{controller-handoff-KV7WRDAI.js → controller-handoff-CDPPQ2YH.js} +3 -3
  25. package/dist/{controller-handoff-KV7WRDAI.js.map → controller-handoff-CDPPQ2YH.js.map} +1 -1
  26. package/dist/daemon-binary.d.ts +2 -0
  27. package/dist/index.cjs +41 -7
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.ts +1 -1
  30. package/dist/index.js +41 -7
  31. package/dist/index.js.map +1 -1
  32. package/dist/project-sync.d.ts +29 -0
  33. package/dist/surfaces.d.ts +20 -1
  34. package/dist/types.d.ts +2 -0
  35. package/package.json +1 -1
  36. package/dist/chunk-CKTVMUS4.js.map +0 -1
  37. package/dist/chunk-QODJKRFK.js +0 -20
  38. package/dist/chunk-QODJKRFK.js.map +0 -1
  39. package/dist/controller-3SZI7TBW.js.map +0 -1
@@ -23,6 +23,31 @@ export interface ProjectSyncRequest {
23
23
  checkpointId?: string;
24
24
  /** Only needed on first import; subsequent imports find the preserved replica. */
25
25
  path?: string;
26
+ /** Literal project-relative ignored files/folders to include. Default: respect Git ignores. */
27
+ includeIgnored?: string[];
28
+ /** Preview scope token. Re-review if ignore rules or tracked paths change. */
29
+ selectionToken?: string;
30
+ }
31
+ export interface ProjectSyncPreviewRequest {
32
+ projectId: string;
33
+ includeIgnored?: string[];
34
+ cursor?: number;
35
+ }
36
+ export interface ProjectSyncIgnoredPath {
37
+ path: string;
38
+ kind: "file" | "directory";
39
+ included: boolean;
40
+ }
41
+ export interface ProjectSyncPreview {
42
+ version: number;
43
+ fileCount: number;
44
+ /** Selected working-file bytes; Git history and conversations are additional. */
45
+ bytes: number;
46
+ ignoredCount: number;
47
+ ignored: ProjectSyncIgnoredPath[];
48
+ includeIgnored: string[];
49
+ next?: number;
50
+ selectionToken: string;
26
51
  }
27
52
  export interface ProjectSyncConflict {
28
53
  path: string;
@@ -62,6 +87,8 @@ export declare class ProjectSyncApi {
62
87
  private readonly mw;
63
88
  private readonly flights;
64
89
  constructor(mw: Mindwire);
90
+ private requireSelectionSupport;
91
+ preview(request: ProjectSyncPreviewRequest, options?: Options): Promise<ProjectSyncPreview>;
65
92
  export(request: ProjectSyncRequest, options?: Options): Promise<ProjectSyncOperation>;
66
93
  import(request: ProjectSyncRequest, options?: Options): Promise<ProjectSyncOperation>;
67
94
  list(options?: Options): Promise<ProjectSyncOperation[]>;
@@ -94,6 +121,8 @@ export declare class ProjectSyncApi {
94
121
  id: string;
95
122
  projectId: string;
96
123
  path?: string;
124
+ includeIgnored?: string[];
125
+ selectionToken?: string;
97
126
  }, options?: Options & {
98
127
  onProgress?: (progress: ProjectSyncProgress) => void;
99
128
  }): Promise<ProjectSyncOperation>;
@@ -32,7 +32,7 @@ export interface SurfaceSnapshot {
32
32
  id: string;
33
33
  workspaceId: string;
34
34
  kind: "desktop";
35
- provider: "oblien";
35
+ provider: "oblien" | "macos";
36
36
  version: number;
37
37
  revision: number;
38
38
  instanceId: string;
@@ -48,6 +48,22 @@ export interface SurfaceSnapshot {
48
48
  controller?: SurfaceController;
49
49
  authorizationExpiresAt?: string;
50
50
  error?: SurfaceProblem;
51
+ setup?: {
52
+ reason: string;
53
+ command: string;
54
+ };
55
+ }
56
+ export interface LocalDesktopInfo {
57
+ supported: boolean;
58
+ enabled: boolean;
59
+ screenSharing: boolean;
60
+ username: string;
61
+ }
62
+ /** Write-only Mac configuration. The CLI prompts locally; never include this in a QR or workspace metadata. */
63
+ export interface LocalDesktopSettings {
64
+ enabled: boolean;
65
+ username?: string;
66
+ password?: string;
51
67
  }
52
68
  /** Write-only, desktop-only, expiring provider grant. Never pass a user's session JWT. */
53
69
  export interface SurfaceBinding {
@@ -165,6 +181,9 @@ export declare class SurfacesApi {
165
181
  list(): Promise<SurfaceSnapshot[]>;
166
182
  status(refresh?: boolean): Promise<SurfaceSnapshot>;
167
183
  bind(binding: SurfaceBinding): Promise<SurfaceSnapshot>;
184
+ localStatus(): Promise<LocalDesktopInfo>;
185
+ /** Local CLI only. The separate 0600 control credential is not part of phone pairing. */
186
+ configureLocal(settings: LocalDesktopSettings, localControlToken: string): Promise<SurfaceSnapshot>;
168
187
  open(request: SurfaceOpenRequest): Promise<SurfaceSession>;
169
188
  control(id: string, request: SurfaceControlRequest): Promise<SurfaceSession>;
170
189
  close(id: string): Promise<{
package/dist/types.d.ts CHANGED
@@ -1002,6 +1002,8 @@ export interface NotifyChannelTestResult {
1002
1002
  export interface Health {
1003
1003
  historyPageVersion?: number;
1004
1004
  surfaceProtocolVersion?: number;
1005
+ /** Opt-in Mac Screen Sharing through the existing paired SSH connection. */
1006
+ localDesktopVersion?: number;
1005
1007
  /** Workspace registry protocol version; absent on daemons predating workspace metadata. */
1006
1008
  workspaceMetadataVersion?: number;
1007
1009
  /** Durable project creation/clone operations; absent on older daemons. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindwire",
3
- "version": "0.1.38",
3
+ "version": "0.1.41",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "bin": {