mindwire 0.1.45 → 0.1.46
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/{chunk-7NLK636R.js → chunk-KPTSQJVM.js} +10 -6
- package/dist/chunk-KPTSQJVM.js.map +1 -0
- package/dist/{chunk-XGTG3DYE.js → chunk-WXOV2P3V.js} +3 -3
- package/dist/{chunk-XGTG3DYE.js.map → chunk-WXOV2P3V.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/{connection-change-DRBAPLGD.js → connection-change-SCRLUU6Q.js} +3 -3
- package/dist/{connection-change-DRBAPLGD.js.map → connection-change-SCRLUU6Q.js.map} +1 -1
- package/dist/{controller-75KVB27Q.js → controller-IY3EWUJX.js} +4 -4
- package/dist/{controller-75KVB27Q.js.map → controller-IY3EWUJX.js.map} +1 -1
- package/dist/{controller-handoff-DXG2BW6L.js → controller-handoff-TRI2D6LB.js} +3 -3
- package/dist/{controller-handoff-DXG2BW6L.js.map → controller-handoff-TRI2D6LB.js.map} +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/workspace.d.ts +18 -1
- package/package.json +1 -1
- package/dist/chunk-7NLK636R.js.map +0 -1
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. */
|
package/dist/workspace.d.ts
CHANGED
|
@@ -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. */
|