mindwire 0.1.45 → 0.1.47

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/types.d.ts CHANGED
@@ -1025,6 +1025,8 @@ export interface Health {
1025
1025
  localDesktopVersion?: number;
1026
1026
  /** Workspace registry protocol version; absent on daemons predating workspace metadata. */
1027
1027
  workspaceMetadataVersion?: number;
1028
+ /** Native installed-harness discovery and atomic workspace.ensureAgent(). */
1029
+ agentDiscoveryVersion?: number;
1028
1030
  /** Durable project folders, membership and ordering, with conditional edits. */
1029
1031
  projectLibraryVersion?: number;
1030
1032
  /** Durable project creation/clone operations; absent on older daemons. */
@@ -155,6 +155,8 @@ export interface WorkspaceRecord {
155
155
  }
156
156
  /** A saved agent profile. Profiles using one harness share that workspace's native configuration. */
157
157
  export interface WorkspaceAgent extends WorkspaceRecord {
158
+ /** Daemon-observed executable presence. Omitted until checked; never client-owned. */
159
+ installation?: "installed" | "missing" | "repair";
158
160
  name: string;
159
161
  agentType: string;
160
162
  agentTypeName?: string;
@@ -196,7 +198,7 @@ export interface WorkspaceChat extends WorkspaceRecord {
196
198
  notificationsMuted?: boolean;
197
199
  }
198
200
  export type WorkspaceKind = "agents" | "projects" | "chats";
199
- export type WorkspaceInput<T extends WorkspaceRecord> = Omit<T, "id" | "workspaceId" | "revision" | "createdAt"> & {
201
+ export type WorkspaceInput<T extends WorkspaceRecord> = Omit<T, "id" | "workspaceId" | "revision" | "createdAt" | "installation"> & {
200
202
  createdAt?: string;
201
203
  };
202
204
  /** Additive migration. Existing records and deletion tombstones always win over these values. */
@@ -257,9 +259,22 @@ export interface WorkspaceSnapshot {
257
259
  agent: string;
258
260
  message: string;
259
261
  }[];
262
+ /** Failed installation checks preserve the last known inventory. */
263
+ agentDiscoveryIssues?: {
264
+ agent: string;
265
+ message: string;
266
+ }[];
260
267
  /** Present on full snapshots, or when organization changed in a delta. */
261
268
  projectLibrary?: ProjectLibrary;
262
269
  }
270
+ export interface EnsureAgentRequest {
271
+ agentType: string;
272
+ name?: string;
273
+ }
274
+ export interface EnsureAgentResult {
275
+ agentId: string;
276
+ snapshot: WorkspaceSnapshot;
277
+ }
263
278
  export declare class WorkspaceCollection<T extends WorkspaceRecord> {
264
279
  private readonly mw;
265
280
  private readonly kind;
@@ -285,6 +300,8 @@ export declare class WorkspaceApi {
285
300
  snapshot(options?: {
286
301
  refresh?: boolean;
287
302
  }): Promise<WorkspaceSnapshot>;
303
+ /** Reuse the workspace's existing harness profile or create one for setup. Atomic across clients. */
304
+ ensureAgent(request: EnsureAgentRequest): Promise<EnsureAgentResult>;
288
305
  library(): Promise<ProjectLibrary>;
289
306
  editLibrary(edit: ProjectLibraryEdit): Promise<ProjectLibrary>;
290
307
  /** Read the saved icon, or preview a candidate relative path within the project. Requires projectIconsVersion >= 1. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindwire",
3
- "version": "0.1.45",
3
+ "version": "0.1.47",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "bin": {