@ricsam/r5d-api 0.0.71 → 0.0.72
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 +8 -3
- package/dist/cjs/package.json +1 -1
- package/dist/mjs/index.mjs +8 -3
- package/dist/mjs/package.json +1 -1
- package/dist/types/index.d.ts +19 -1
- 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
|
@@ -414,9 +414,12 @@ class R5dctlClient {
|
|
|
414
414
|
system: input.includeSystem === void 0 ? void 0 : input.includeSystem ? "include" : "exclude"
|
|
415
415
|
}
|
|
416
416
|
}),
|
|
417
|
-
conversationOverview: (sessionId) => this.request({
|
|
417
|
+
conversationOverview: (sessionId, input = {}) => this.request({
|
|
418
418
|
method: "GET",
|
|
419
|
-
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/overview
|
|
419
|
+
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/overview`,
|
|
420
|
+
query: {
|
|
421
|
+
view: input.view
|
|
422
|
+
}
|
|
420
423
|
}),
|
|
421
424
|
inspectConversationNode: (sessionId, nodeId) => this.request({
|
|
422
425
|
method: "GET",
|
|
@@ -426,7 +429,9 @@ class R5dctlClient {
|
|
|
426
429
|
method: "GET",
|
|
427
430
|
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/work/${encodeURIComponent(workId)}`,
|
|
428
431
|
query: {
|
|
429
|
-
detail: input.detail
|
|
432
|
+
detail: input.detail,
|
|
433
|
+
calls: input.calls,
|
|
434
|
+
polls: input.polls
|
|
430
435
|
}
|
|
431
436
|
}),
|
|
432
437
|
moveConversationHead: (sessionId, nodeId) => this.request({
|
package/dist/cjs/package.json
CHANGED
package/dist/mjs/index.mjs
CHANGED
|
@@ -390,9 +390,12 @@ class R5dctlClient {
|
|
|
390
390
|
system: input.includeSystem === void 0 ? void 0 : input.includeSystem ? "include" : "exclude"
|
|
391
391
|
}
|
|
392
392
|
}),
|
|
393
|
-
conversationOverview: (sessionId) => this.request({
|
|
393
|
+
conversationOverview: (sessionId, input = {}) => this.request({
|
|
394
394
|
method: "GET",
|
|
395
|
-
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/overview
|
|
395
|
+
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/overview`,
|
|
396
|
+
query: {
|
|
397
|
+
view: input.view
|
|
398
|
+
}
|
|
396
399
|
}),
|
|
397
400
|
inspectConversationNode: (sessionId, nodeId) => this.request({
|
|
398
401
|
method: "GET",
|
|
@@ -402,7 +405,9 @@ class R5dctlClient {
|
|
|
402
405
|
method: "GET",
|
|
403
406
|
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/work/${encodeURIComponent(workId)}`,
|
|
404
407
|
query: {
|
|
405
|
-
detail: input.detail
|
|
408
|
+
detail: input.detail,
|
|
409
|
+
calls: input.calls,
|
|
410
|
+
polls: input.polls
|
|
406
411
|
}
|
|
407
412
|
}),
|
|
408
413
|
moveConversationHead: (sessionId, nodeId) => this.request({
|
package/dist/mjs/package.json
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -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 = {
|
|
@@ -669,10 +683,14 @@ export declare class R5dctlClient {
|
|
|
669
683
|
signal?: AbortSignal;
|
|
670
684
|
}) => AsyncGenerator<R5dctlSessionEvent, any, any>;
|
|
671
685
|
conversation: (sessionId: string, input?: R5dctlConversationRenderOptions) => Promise<R5dctlConversationResponse>;
|
|
672
|
-
conversationOverview: (sessionId: string
|
|
686
|
+
conversationOverview: (sessionId: string, input?: {
|
|
687
|
+
view?: R5dctlConversationOverviewView;
|
|
688
|
+
}) => Promise<R5dctlConversationOverviewResponse>;
|
|
673
689
|
inspectConversationNode: (sessionId: string, nodeId: string) => Promise<R5dctlConversationNodeResponse>;
|
|
674
690
|
inspectConversationWork: (sessionId: string, workId: string, input?: {
|
|
675
691
|
detail?: R5dctlConversationWorkDetail;
|
|
692
|
+
calls?: string;
|
|
693
|
+
polls?: R5dctlConversationWorkPolls;
|
|
676
694
|
}) => Promise<R5dctlConversationWorkResponse>;
|
|
677
695
|
moveConversationHead: (sessionId: string, nodeId: string) => Promise<R5dctlConversationHeadResponse>;
|
|
678
696
|
forkConversation: (sessionId: string, nodeId: string, input?: {
|