@vectorplane/ctrl-cli 0.1.11 → 0.1.13

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.
@@ -66,6 +66,75 @@ export interface ResolveWorkspaceResponse {
66
66
  repoUrl?: string | null;
67
67
  [key: string]: unknown;
68
68
  }
69
+ export type WorkspacePolicyRuleEffect = "allow" | "require_approval" | "block";
70
+ export interface WorkspacePolicyRuleConditions {
71
+ archetypes?: string[];
72
+ minTargetPathCount?: number;
73
+ requiredCapabilities?: string[];
74
+ }
75
+ export interface WorkspacePolicyRuleRecord {
76
+ id: string;
77
+ orgId: string;
78
+ workspaceId: string;
79
+ name: string;
80
+ pathPrefix: string | null;
81
+ capability: string | null;
82
+ effect: WorkspacePolicyRuleEffect;
83
+ rationale: string | null;
84
+ conditions: WorkspacePolicyRuleConditions | null;
85
+ approvalRole: string | null;
86
+ enabled: boolean;
87
+ createdAt: string;
88
+ updatedAt: string;
89
+ [key: string]: unknown;
90
+ }
91
+ export type WorkspaceWebhookEventType = "task.created" | "task.blocked" | "task.completed" | "task.approval_required" | "health.degraded";
92
+ export interface WorkspaceWebhookRecord {
93
+ id: string;
94
+ orgId: string;
95
+ workspaceId: string;
96
+ name: string;
97
+ targetUrl: string;
98
+ secretPreview: string;
99
+ events: WorkspaceWebhookEventType[];
100
+ enabled: boolean;
101
+ lastDeliveryAt: string | null;
102
+ lastDeliveryStatus: "delivered" | "failed" | null;
103
+ lastError: string | null;
104
+ createdAt: string;
105
+ updatedAt: string;
106
+ [key: string]: unknown;
107
+ }
108
+ export interface AgentRegistryRecord {
109
+ id: string;
110
+ orgId: string | null;
111
+ name: string;
112
+ runtimeType: string;
113
+ provider: string;
114
+ model: string;
115
+ capabilities: string[];
116
+ costProfile: string;
117
+ latencyProfile: string;
118
+ reliabilityScore: number;
119
+ status: string;
120
+ metadata?: Record<string, unknown> | null;
121
+ createdAt: string;
122
+ updatedAt: string;
123
+ }
124
+ export interface TaskTemplateRecord {
125
+ id: string;
126
+ slug: string;
127
+ name: string;
128
+ description: string | null;
129
+ defaultCapabilities: string[];
130
+ suggestedPaths: string[];
131
+ archetypeScope: string | null;
132
+ defaultRiskLevel: string | null;
133
+ enabled: boolean;
134
+ createdAt: string;
135
+ updatedAt: string;
136
+ [key: string]: unknown;
137
+ }
69
138
  export interface AgentSessionRequest {
70
139
  workspaceId: string;
71
140
  agentName: string;
@@ -122,3 +191,149 @@ export interface MemoryDraftRecord {
122
191
  updatedAt?: string;
123
192
  [key: string]: unknown;
124
193
  }
194
+ export interface MemorySearchRecord {
195
+ id: string;
196
+ workspaceId: string;
197
+ docType: MemoryDraftType;
198
+ authority: string;
199
+ title: string;
200
+ memoryKey: string | null;
201
+ excerpt: string;
202
+ score: number;
203
+ createdAt: string;
204
+ metadata?: Record<string, unknown> | null;
205
+ }
206
+ export interface TaskCreateRequest {
207
+ title: string;
208
+ intention: string;
209
+ templateSlug?: string;
210
+ requestedCapabilities?: string[];
211
+ targetPaths?: string[];
212
+ featureKey?: string;
213
+ taskKey?: string;
214
+ }
215
+ export interface TaskStepRecord {
216
+ id: string;
217
+ order: number;
218
+ name: string;
219
+ capability: string;
220
+ status: string;
221
+ assignedAgentId?: string | null;
222
+ assignedAgentName?: string | null;
223
+ output?: Record<string, unknown> | null;
224
+ lastError?: string | null;
225
+ [key: string]: unknown;
226
+ }
227
+ export interface ClaimableTaskStepRecord {
228
+ workspaceId: string;
229
+ taskId: string;
230
+ taskTitle: string;
231
+ stepId: string;
232
+ stepName: string;
233
+ capability: string;
234
+ status: string;
235
+ assignedAgentId: string;
236
+ assignedAgentName: string;
237
+ execution?: Record<string, unknown> | null;
238
+ createdAt: string;
239
+ updatedAt: string;
240
+ }
241
+ export interface ClaimedTaskStepResponse {
242
+ task: TaskRecord;
243
+ claim: ClaimableTaskStepRecord;
244
+ }
245
+ export interface TaskRecord {
246
+ id: string;
247
+ workspaceId: string;
248
+ title: string;
249
+ intention: string;
250
+ status: string;
251
+ riskLevel: string;
252
+ riskScore: number;
253
+ policyStatus: string;
254
+ conflictStatus: string;
255
+ requiresApproval?: boolean;
256
+ approvedBy?: string | null;
257
+ handoffSummary?: Record<string, unknown> | null;
258
+ requestedCapabilities: string[];
259
+ targetPaths: string[];
260
+ warnings: string[];
261
+ recommendedApproach?: string | null;
262
+ createdAt?: string;
263
+ updatedAt?: string;
264
+ handoffs?: Array<{
265
+ id: string;
266
+ title: string;
267
+ summary?: Record<string, unknown> | null;
268
+ nextSteps?: string[];
269
+ risks?: string[];
270
+ createdAt: string;
271
+ }>;
272
+ steps: TaskStepRecord[];
273
+ [key: string]: unknown;
274
+ }
275
+ export interface TaskHandoffRecord {
276
+ taskId: string;
277
+ workspaceId: string;
278
+ status: string;
279
+ title: string;
280
+ currentTitle?: string;
281
+ currentSummary?: Record<string, unknown> | null;
282
+ nextSteps?: string[];
283
+ risks?: string[];
284
+ memoryLanes?: string[];
285
+ [key: string]: unknown;
286
+ }
287
+ export interface TaskObservabilityRecord {
288
+ workspaceId: string;
289
+ taskId?: string;
290
+ title?: string;
291
+ status?: string;
292
+ riskLevel?: string;
293
+ policyStatus?: string;
294
+ conflictStatus?: string;
295
+ durationMs?: number;
296
+ delegationCount?: number;
297
+ handoffCount?: number;
298
+ attempts?: number;
299
+ totalTasks?: number;
300
+ completedTasks?: number;
301
+ failedTasks?: number;
302
+ blockedTasks?: number;
303
+ delegatedTasks?: number;
304
+ averageDurationMs?: number;
305
+ successRate?: number;
306
+ recentTasks?: Array<Record<string, unknown>>;
307
+ steps?: Array<Record<string, unknown>>;
308
+ timeline?: Array<Record<string, unknown>>;
309
+ [key: string]: unknown;
310
+ }
311
+ export interface WorkspaceStreamEventRecord {
312
+ type: string;
313
+ workspaceId: string;
314
+ taskId?: string | null;
315
+ stepId?: string | null;
316
+ timestamp: string;
317
+ summary?: Record<string, unknown> | null;
318
+ }
319
+ export interface WorkspaceSnapshotDiffRecord {
320
+ workspaceId: string;
321
+ from: {
322
+ reference: string;
323
+ version: number;
324
+ generatedAt: string;
325
+ };
326
+ to: {
327
+ reference: string;
328
+ version: number;
329
+ generatedAt: string;
330
+ };
331
+ summary: Record<string, {
332
+ added: number;
333
+ removed: number;
334
+ modified: number;
335
+ }>;
336
+ added: Record<string, Array<Record<string, unknown>>>;
337
+ removed: Record<string, Array<Record<string, unknown>>>;
338
+ modified: Record<string, Array<Record<string, unknown>>>;
339
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectorplane/ctrl-cli",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "Official VectorPlane CLI.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",