@ricsam/r5d-api 0.0.72 → 0.0.74
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/cjs/index.cjs +35 -1
- package/dist/cjs/package.json +1 -1
- package/dist/mjs/index.mjs +35 -1
- package/dist/mjs/package.json +1 -1
- package/dist/types/index.d.ts +45 -3
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -303,7 +303,37 @@ class R5dctlClient {
|
|
|
303
303
|
containerName: input.containerName,
|
|
304
304
|
window: input.window
|
|
305
305
|
}
|
|
306
|
-
})
|
|
306
|
+
}),
|
|
307
|
+
credentials: {
|
|
308
|
+
create: (name) => this.request({
|
|
309
|
+
method: "POST",
|
|
310
|
+
path: "/api/user/managed-vcluster/credentials",
|
|
311
|
+
body: { name }
|
|
312
|
+
}),
|
|
313
|
+
list: () => this.request({
|
|
314
|
+
method: "GET",
|
|
315
|
+
path: "/api/user/managed-vcluster/credentials"
|
|
316
|
+
}),
|
|
317
|
+
revoke: (credentialId) => this.request({
|
|
318
|
+
method: "DELETE",
|
|
319
|
+
path: `/api/user/managed-vcluster/credentials/${encodeURIComponent(credentialId)}`
|
|
320
|
+
})
|
|
321
|
+
},
|
|
322
|
+
trustedWorkflows: {
|
|
323
|
+
add: (input) => this.request({
|
|
324
|
+
method: "POST",
|
|
325
|
+
path: "/api/user/managed-vcluster/trusted-workflows",
|
|
326
|
+
body: input
|
|
327
|
+
}),
|
|
328
|
+
list: () => this.request({
|
|
329
|
+
method: "GET",
|
|
330
|
+
path: "/api/user/managed-vcluster/trusted-workflows"
|
|
331
|
+
}),
|
|
332
|
+
revoke: (workflowId) => this.request({
|
|
333
|
+
method: "DELETE",
|
|
334
|
+
path: `/api/user/managed-vcluster/trusted-workflows/${encodeURIComponent(workflowId)}`
|
|
335
|
+
})
|
|
336
|
+
}
|
|
307
337
|
};
|
|
308
338
|
projects = {
|
|
309
339
|
list: () => this.request({
|
|
@@ -378,6 +408,10 @@ class R5dctlClient {
|
|
|
378
408
|
method: "POST",
|
|
379
409
|
path: `/api/r5dctl/projects/${encodeURIComponent(projectRef)}/worktrees/${encodeURIComponent(conflictWorktree)}/merge/finish`,
|
|
380
410
|
body: input
|
|
411
|
+
}),
|
|
412
|
+
mergeAttempt: (projectRef, attemptId) => this.request({
|
|
413
|
+
method: "GET",
|
|
414
|
+
path: `/api/r5dctl/projects/${encodeURIComponent(projectRef)}/merge-attempts/${encodeURIComponent(attemptId)}`
|
|
381
415
|
})
|
|
382
416
|
}
|
|
383
417
|
};
|
package/dist/cjs/package.json
CHANGED
package/dist/mjs/index.mjs
CHANGED
|
@@ -279,7 +279,37 @@ class R5dctlClient {
|
|
|
279
279
|
containerName: input.containerName,
|
|
280
280
|
window: input.window
|
|
281
281
|
}
|
|
282
|
-
})
|
|
282
|
+
}),
|
|
283
|
+
credentials: {
|
|
284
|
+
create: (name) => this.request({
|
|
285
|
+
method: "POST",
|
|
286
|
+
path: "/api/user/managed-vcluster/credentials",
|
|
287
|
+
body: { name }
|
|
288
|
+
}),
|
|
289
|
+
list: () => this.request({
|
|
290
|
+
method: "GET",
|
|
291
|
+
path: "/api/user/managed-vcluster/credentials"
|
|
292
|
+
}),
|
|
293
|
+
revoke: (credentialId) => this.request({
|
|
294
|
+
method: "DELETE",
|
|
295
|
+
path: `/api/user/managed-vcluster/credentials/${encodeURIComponent(credentialId)}`
|
|
296
|
+
})
|
|
297
|
+
},
|
|
298
|
+
trustedWorkflows: {
|
|
299
|
+
add: (input) => this.request({
|
|
300
|
+
method: "POST",
|
|
301
|
+
path: "/api/user/managed-vcluster/trusted-workflows",
|
|
302
|
+
body: input
|
|
303
|
+
}),
|
|
304
|
+
list: () => this.request({
|
|
305
|
+
method: "GET",
|
|
306
|
+
path: "/api/user/managed-vcluster/trusted-workflows"
|
|
307
|
+
}),
|
|
308
|
+
revoke: (workflowId) => this.request({
|
|
309
|
+
method: "DELETE",
|
|
310
|
+
path: `/api/user/managed-vcluster/trusted-workflows/${encodeURIComponent(workflowId)}`
|
|
311
|
+
})
|
|
312
|
+
}
|
|
283
313
|
};
|
|
284
314
|
projects = {
|
|
285
315
|
list: () => this.request({
|
|
@@ -354,6 +384,10 @@ class R5dctlClient {
|
|
|
354
384
|
method: "POST",
|
|
355
385
|
path: `/api/r5dctl/projects/${encodeURIComponent(projectRef)}/worktrees/${encodeURIComponent(conflictWorktree)}/merge/finish`,
|
|
356
386
|
body: input
|
|
387
|
+
}),
|
|
388
|
+
mergeAttempt: (projectRef, attemptId) => this.request({
|
|
389
|
+
method: "GET",
|
|
390
|
+
path: `/api/r5dctl/projects/${encodeURIComponent(projectRef)}/merge-attempts/${encodeURIComponent(attemptId)}`
|
|
357
391
|
})
|
|
358
392
|
}
|
|
359
393
|
};
|
package/dist/mjs/package.json
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type ChatMode = "ask" | "plan" | "
|
|
2
|
-
export type R5dctlSessionMode = "ask" | "plan" | "
|
|
1
|
+
export type ChatMode = "ask" | "plan" | "agent" | "large_diff_remediation" | "merge_conflict_resolution";
|
|
2
|
+
export type R5dctlSessionMode = "ask" | "plan" | "agent";
|
|
3
3
|
export type ModelTier = "low" | "medium" | "high" | "max";
|
|
4
4
|
export type R5dctlWorktreeSource = {
|
|
5
5
|
type: "worktree";
|
|
@@ -200,7 +200,7 @@ export type R5dctlConversationForkResponse = {
|
|
|
200
200
|
};
|
|
201
201
|
export type R5dctlSessionRunStatus = "idle" | "provisioning" | "queued" | "running" | "completed" | "failed" | "stopped";
|
|
202
202
|
export type R5dctlWorktreeMergeResponse = {
|
|
203
|
-
status: "merged" | "up_to_date" | "conflicts" | "conflict_worktree_created" | "resolving" | "failed" | "stale";
|
|
203
|
+
status: "merged" | "up_to_date" | "conflicts" | "provisioning" | "conflict_worktree_created" | "resolving" | "failed" | "stale";
|
|
204
204
|
attemptId?: string;
|
|
205
205
|
sourceWorktree: string;
|
|
206
206
|
targetWorktree: string;
|
|
@@ -212,6 +212,8 @@ export type R5dctlWorktreeMergeResponse = {
|
|
|
212
212
|
conflictedFiles?: string[];
|
|
213
213
|
failureReason?: string;
|
|
214
214
|
message?: string;
|
|
215
|
+
worktreeReady?: boolean;
|
|
216
|
+
resolverAgentRunning?: boolean;
|
|
215
217
|
};
|
|
216
218
|
export type R5dctlMergeConflictMode = "none" | "worktree" | "agent";
|
|
217
219
|
export type R5dctlSessionRunResponse = {
|
|
@@ -314,6 +316,26 @@ export type R5dctlApiKey = {
|
|
|
314
316
|
createdAt: string;
|
|
315
317
|
lastUsedAt: string | null;
|
|
316
318
|
};
|
|
319
|
+
export type ManagedVClusterAccessCredential = {
|
|
320
|
+
id: string;
|
|
321
|
+
kind: "profile" | "github_actions";
|
|
322
|
+
name: string | null;
|
|
323
|
+
expiresAt: string | null;
|
|
324
|
+
lastUsedAt: string | null;
|
|
325
|
+
revokedAt: string | null;
|
|
326
|
+
createdAt: string;
|
|
327
|
+
};
|
|
328
|
+
export type ManagedVClusterTrustedWorkflow = {
|
|
329
|
+
id: string;
|
|
330
|
+
provider: "github";
|
|
331
|
+
repositoryId: string;
|
|
332
|
+
repository: string;
|
|
333
|
+
workflowPath: string;
|
|
334
|
+
role: "cluster_admin";
|
|
335
|
+
revokedAt: string | null;
|
|
336
|
+
createdAt: string;
|
|
337
|
+
updatedAt: string;
|
|
338
|
+
};
|
|
317
339
|
export type R5dctlProcessRunStatus = "starting" | "running" | "exited" | "cancelled" | "failed";
|
|
318
340
|
export type R5dctlProcessTarget = {
|
|
319
341
|
type: "project";
|
|
@@ -626,6 +648,25 @@ export declare class R5dctlClient {
|
|
|
626
648
|
containerName: string;
|
|
627
649
|
window?: "24h" | "7d";
|
|
628
650
|
}) => Promise<R5dctlK8sResourceHistory>;
|
|
651
|
+
credentials: {
|
|
652
|
+
create: (name: string) => Promise<ManagedVClusterAccessCredential & {
|
|
653
|
+
kubeconfig: string;
|
|
654
|
+
}>;
|
|
655
|
+
list: () => Promise<ManagedVClusterAccessCredential[]>;
|
|
656
|
+
revoke: (credentialId: string) => Promise<{
|
|
657
|
+
success: boolean;
|
|
658
|
+
}>;
|
|
659
|
+
};
|
|
660
|
+
trustedWorkflows: {
|
|
661
|
+
add: (input: {
|
|
662
|
+
repository: string;
|
|
663
|
+
workflowPath: string;
|
|
664
|
+
}) => Promise<ManagedVClusterTrustedWorkflow>;
|
|
665
|
+
list: () => Promise<ManagedVClusterTrustedWorkflow[]>;
|
|
666
|
+
revoke: (workflowId: string) => Promise<{
|
|
667
|
+
success: boolean;
|
|
668
|
+
}>;
|
|
669
|
+
};
|
|
629
670
|
};
|
|
630
671
|
readonly projects: {
|
|
631
672
|
list: () => Promise<R5dctlProject[]>;
|
|
@@ -667,6 +708,7 @@ export declare class R5dctlClient {
|
|
|
667
708
|
worker: string;
|
|
668
709
|
summary?: string;
|
|
669
710
|
}) => Promise<R5dctlWorktreeMergeResponse>;
|
|
711
|
+
mergeAttempt: (projectRef: string, attemptId: string) => Promise<R5dctlWorktreeMergeResponse>;
|
|
670
712
|
};
|
|
671
713
|
};
|
|
672
714
|
readonly sessions: {
|