@ricsam/r5d-api 0.0.71 → 0.0.73
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/README.md +2 -2
- package/dist/cjs/index.cjs +12 -3
- package/dist/cjs/package.json +1 -1
- package/dist/mjs/index.mjs +12 -3
- package/dist/mjs/package.json +1 -1
- package/dist/types/index.d.ts +25 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -66,9 +66,9 @@ Trusted server-side callers that authenticate through custom headers, such as a
|
|
|
66
66
|
- `sessions.delete(sessionId)`
|
|
67
67
|
- `sessions.conversation(sessionId)`
|
|
68
68
|
- `sessions.events(sessionId, { signal? })`
|
|
69
|
-
- `sessions.conversationOverview(sessionId)`
|
|
69
|
+
- `sessions.conversationOverview(sessionId, { view? })`
|
|
70
70
|
- `sessions.inspectConversationNode(sessionId, nodeId)`
|
|
71
|
-
- `sessions.inspectConversationWork(sessionId, workId, { detail? })`
|
|
71
|
+
- `sessions.inspectConversationWork(sessionId, workId, { detail?, calls?, polls? })`
|
|
72
72
|
- `sessions.status(sessionId)`
|
|
73
73
|
- `sessions.prompt(sessionId, { prompt, worker, mode, model, requestId })`
|
|
74
74
|
- `sessions.stop(sessionId)`
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -378,6 +378,10 @@ class R5dctlClient {
|
|
|
378
378
|
method: "POST",
|
|
379
379
|
path: `/api/r5dctl/projects/${encodeURIComponent(projectRef)}/worktrees/${encodeURIComponent(conflictWorktree)}/merge/finish`,
|
|
380
380
|
body: input
|
|
381
|
+
}),
|
|
382
|
+
mergeAttempt: (projectRef, attemptId) => this.request({
|
|
383
|
+
method: "GET",
|
|
384
|
+
path: `/api/r5dctl/projects/${encodeURIComponent(projectRef)}/merge-attempts/${encodeURIComponent(attemptId)}`
|
|
381
385
|
})
|
|
382
386
|
}
|
|
383
387
|
};
|
|
@@ -414,9 +418,12 @@ class R5dctlClient {
|
|
|
414
418
|
system: input.includeSystem === void 0 ? void 0 : input.includeSystem ? "include" : "exclude"
|
|
415
419
|
}
|
|
416
420
|
}),
|
|
417
|
-
conversationOverview: (sessionId) => this.request({
|
|
421
|
+
conversationOverview: (sessionId, input = {}) => this.request({
|
|
418
422
|
method: "GET",
|
|
419
|
-
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/overview
|
|
423
|
+
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/overview`,
|
|
424
|
+
query: {
|
|
425
|
+
view: input.view
|
|
426
|
+
}
|
|
420
427
|
}),
|
|
421
428
|
inspectConversationNode: (sessionId, nodeId) => this.request({
|
|
422
429
|
method: "GET",
|
|
@@ -426,7 +433,9 @@ class R5dctlClient {
|
|
|
426
433
|
method: "GET",
|
|
427
434
|
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/work/${encodeURIComponent(workId)}`,
|
|
428
435
|
query: {
|
|
429
|
-
detail: input.detail
|
|
436
|
+
detail: input.detail,
|
|
437
|
+
calls: input.calls,
|
|
438
|
+
polls: input.polls
|
|
430
439
|
}
|
|
431
440
|
}),
|
|
432
441
|
moveConversationHead: (sessionId, nodeId) => this.request({
|
package/dist/cjs/package.json
CHANGED
package/dist/mjs/index.mjs
CHANGED
|
@@ -354,6 +354,10 @@ class R5dctlClient {
|
|
|
354
354
|
method: "POST",
|
|
355
355
|
path: `/api/r5dctl/projects/${encodeURIComponent(projectRef)}/worktrees/${encodeURIComponent(conflictWorktree)}/merge/finish`,
|
|
356
356
|
body: input
|
|
357
|
+
}),
|
|
358
|
+
mergeAttempt: (projectRef, attemptId) => this.request({
|
|
359
|
+
method: "GET",
|
|
360
|
+
path: `/api/r5dctl/projects/${encodeURIComponent(projectRef)}/merge-attempts/${encodeURIComponent(attemptId)}`
|
|
357
361
|
})
|
|
358
362
|
}
|
|
359
363
|
};
|
|
@@ -390,9 +394,12 @@ class R5dctlClient {
|
|
|
390
394
|
system: input.includeSystem === void 0 ? void 0 : input.includeSystem ? "include" : "exclude"
|
|
391
395
|
}
|
|
392
396
|
}),
|
|
393
|
-
conversationOverview: (sessionId) => this.request({
|
|
397
|
+
conversationOverview: (sessionId, input = {}) => this.request({
|
|
394
398
|
method: "GET",
|
|
395
|
-
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/overview
|
|
399
|
+
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/overview`,
|
|
400
|
+
query: {
|
|
401
|
+
view: input.view
|
|
402
|
+
}
|
|
396
403
|
}),
|
|
397
404
|
inspectConversationNode: (sessionId, nodeId) => this.request({
|
|
398
405
|
method: "GET",
|
|
@@ -402,7 +409,9 @@ class R5dctlClient {
|
|
|
402
409
|
method: "GET",
|
|
403
410
|
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/work/${encodeURIComponent(workId)}`,
|
|
404
411
|
query: {
|
|
405
|
-
detail: input.detail
|
|
412
|
+
detail: input.detail,
|
|
413
|
+
calls: input.calls,
|
|
414
|
+
polls: input.polls
|
|
406
415
|
}
|
|
407
416
|
}),
|
|
408
417
|
moveConversationHead: (sessionId, nodeId) => this.request({
|
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";
|
|
@@ -145,14 +145,24 @@ export type R5dctlSessionEvent = {
|
|
|
145
145
|
[key: string]: unknown;
|
|
146
146
|
};
|
|
147
147
|
export type R5dctlConversationWorkDetail = "compact" | "summary" | "full";
|
|
148
|
+
export type R5dctlConversationOverviewView = "standard" | "skeleton";
|
|
149
|
+
export type R5dctlConversationWorkPolls = "fold" | "include";
|
|
148
150
|
export type R5dctlConversationWorkMetadata = {
|
|
149
151
|
id: string;
|
|
150
152
|
callCount: number;
|
|
151
153
|
thinkingCount: number;
|
|
152
154
|
};
|
|
155
|
+
export type R5dctlConversationTurnInProgress = {
|
|
156
|
+
state: "pending_user_message" | "pending_tools" | "pending_tool_results";
|
|
157
|
+
pendingCallCount: number;
|
|
158
|
+
lastNodeTimestamp: string;
|
|
159
|
+
lastNodeId: string;
|
|
160
|
+
};
|
|
153
161
|
export type R5dctlConversationOverviewResponse = {
|
|
154
162
|
session: R5dctlSessionDescription;
|
|
155
163
|
overviewText: string;
|
|
164
|
+
view?: R5dctlConversationOverviewView;
|
|
165
|
+
turnInProgress?: R5dctlConversationTurnInProgress | null;
|
|
156
166
|
works: R5dctlConversationWorkMetadata[];
|
|
157
167
|
pendingQuestions: R5dctlPendingQuestion[];
|
|
158
168
|
requestedEnvs: R5dctlRequestedEnv[];
|
|
@@ -171,6 +181,10 @@ export type R5dctlConversationWorkResponse = {
|
|
|
171
181
|
session: R5dctlSessionDescription;
|
|
172
182
|
work: R5dctlConversationWorkMetadata;
|
|
173
183
|
detail: R5dctlConversationWorkDetail;
|
|
184
|
+
calls?: {
|
|
185
|
+
first: number;
|
|
186
|
+
last: number;
|
|
187
|
+
};
|
|
174
188
|
workText: string;
|
|
175
189
|
};
|
|
176
190
|
export type R5dctlConversationHeadResponse = {
|
|
@@ -186,7 +200,7 @@ export type R5dctlConversationForkResponse = {
|
|
|
186
200
|
};
|
|
187
201
|
export type R5dctlSessionRunStatus = "idle" | "provisioning" | "queued" | "running" | "completed" | "failed" | "stopped";
|
|
188
202
|
export type R5dctlWorktreeMergeResponse = {
|
|
189
|
-
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";
|
|
190
204
|
attemptId?: string;
|
|
191
205
|
sourceWorktree: string;
|
|
192
206
|
targetWorktree: string;
|
|
@@ -198,6 +212,8 @@ export type R5dctlWorktreeMergeResponse = {
|
|
|
198
212
|
conflictedFiles?: string[];
|
|
199
213
|
failureReason?: string;
|
|
200
214
|
message?: string;
|
|
215
|
+
worktreeReady?: boolean;
|
|
216
|
+
resolverAgentRunning?: boolean;
|
|
201
217
|
};
|
|
202
218
|
export type R5dctlMergeConflictMode = "none" | "worktree" | "agent";
|
|
203
219
|
export type R5dctlSessionRunResponse = {
|
|
@@ -653,6 +669,7 @@ export declare class R5dctlClient {
|
|
|
653
669
|
worker: string;
|
|
654
670
|
summary?: string;
|
|
655
671
|
}) => Promise<R5dctlWorktreeMergeResponse>;
|
|
672
|
+
mergeAttempt: (projectRef: string, attemptId: string) => Promise<R5dctlWorktreeMergeResponse>;
|
|
656
673
|
};
|
|
657
674
|
};
|
|
658
675
|
readonly sessions: {
|
|
@@ -669,10 +686,14 @@ export declare class R5dctlClient {
|
|
|
669
686
|
signal?: AbortSignal;
|
|
670
687
|
}) => AsyncGenerator<R5dctlSessionEvent, any, any>;
|
|
671
688
|
conversation: (sessionId: string, input?: R5dctlConversationRenderOptions) => Promise<R5dctlConversationResponse>;
|
|
672
|
-
conversationOverview: (sessionId: string
|
|
689
|
+
conversationOverview: (sessionId: string, input?: {
|
|
690
|
+
view?: R5dctlConversationOverviewView;
|
|
691
|
+
}) => Promise<R5dctlConversationOverviewResponse>;
|
|
673
692
|
inspectConversationNode: (sessionId: string, nodeId: string) => Promise<R5dctlConversationNodeResponse>;
|
|
674
693
|
inspectConversationWork: (sessionId: string, workId: string, input?: {
|
|
675
694
|
detail?: R5dctlConversationWorkDetail;
|
|
695
|
+
calls?: string;
|
|
696
|
+
polls?: R5dctlConversationWorkPolls;
|
|
676
697
|
}) => Promise<R5dctlConversationWorkResponse>;
|
|
677
698
|
moveConversationHead: (sessionId: string, nodeId: string) => Promise<R5dctlConversationHeadResponse>;
|
|
678
699
|
forkConversation: (sessionId: string, nodeId: string, input?: {
|