@ricsam/r5d-api 0.0.27 → 0.0.28

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 CHANGED
@@ -57,6 +57,8 @@ Trusted server-side callers that authenticate through custom headers, such as a
57
57
  - `sessions.update(sessionId, { name })`
58
58
  - `sessions.delete(sessionId)`
59
59
  - `sessions.conversation(sessionId)`
60
+ - `sessions.conversationOverview(sessionId)`
61
+ - `sessions.inspectConversationWork(sessionId, workId, { detail? })`
60
62
  - `sessions.prompt(sessionId, { message, mode, model })`
61
63
  - `sessions.answerQuestions(sessionId, { answers })`
62
64
  - `sessions.applyRequiredEnvs(sessionId, { envs })`
@@ -282,6 +282,17 @@ class R5dctlClient {
282
282
  system: input.includeSystem === void 0 ? void 0 : input.includeSystem ? "include" : "exclude"
283
283
  }
284
284
  }),
285
+ conversationOverview: (sessionId) => this.request({
286
+ method: "GET",
287
+ path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/overview`
288
+ }),
289
+ inspectConversationWork: (sessionId, workId, input = {}) => this.request({
290
+ method: "GET",
291
+ path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/work/${encodeURIComponent(workId)}`,
292
+ query: {
293
+ detail: input.detail
294
+ }
295
+ }),
285
296
  prompt: (sessionId, input) => this.request({
286
297
  method: "POST",
287
298
  path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/prompt`,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-api",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "type": "commonjs"
5
5
  }
@@ -258,6 +258,17 @@ class R5dctlClient {
258
258
  system: input.includeSystem === void 0 ? void 0 : input.includeSystem ? "include" : "exclude"
259
259
  }
260
260
  }),
261
+ conversationOverview: (sessionId) => this.request({
262
+ method: "GET",
263
+ path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/overview`
264
+ }),
265
+ inspectConversationWork: (sessionId, workId, input = {}) => this.request({
266
+ method: "GET",
267
+ path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/work/${encodeURIComponent(workId)}`,
268
+ query: {
269
+ detail: input.detail
270
+ }
271
+ }),
261
272
  prompt: (sessionId, input) => this.request({
262
273
  method: "POST",
263
274
  path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/prompt`,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-api",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "type": "module"
5
5
  }
@@ -66,6 +66,25 @@ export type R5dctlConversationResponse = {
66
66
  pendingQuestions: R5dctlPendingQuestion[];
67
67
  requiredEnvs: R5dctlRequiredEnv[];
68
68
  };
69
+ export type R5dctlConversationWorkDetail = "compact" | "summary" | "full";
70
+ export type R5dctlConversationWorkMetadata = {
71
+ id: string;
72
+ callCount: number;
73
+ thinkingCount: number;
74
+ };
75
+ export type R5dctlConversationOverviewResponse = {
76
+ session: R5dctlSessionDescription;
77
+ overviewText: string;
78
+ works: R5dctlConversationWorkMetadata[];
79
+ pendingQuestions: R5dctlPendingQuestion[];
80
+ requiredEnvs: R5dctlRequiredEnv[];
81
+ };
82
+ export type R5dctlConversationWorkResponse = {
83
+ session: R5dctlSessionDescription;
84
+ work: R5dctlConversationWorkMetadata;
85
+ detail: R5dctlConversationWorkDetail;
86
+ workText: string;
87
+ };
69
88
  export type R5dctlAgentStartResponse = {
70
89
  sessionId: string;
71
90
  branchName: string;
@@ -309,6 +328,10 @@ export declare class R5dctlClient {
309
328
  success: boolean;
310
329
  }>;
311
330
  conversation: (sessionId: string, input?: R5dctlConversationRenderOptions) => Promise<R5dctlConversationResponse>;
331
+ conversationOverview: (sessionId: string) => Promise<R5dctlConversationOverviewResponse>;
332
+ inspectConversationWork: (sessionId: string, workId: string, input?: {
333
+ detail?: R5dctlConversationWorkDetail;
334
+ }) => Promise<R5dctlConversationWorkResponse>;
312
335
  prompt: (sessionId: string, input: {
313
336
  message: string;
314
337
  mode: ChatMode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-api",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.cjs",
6
6
  "module": "./dist/mjs/index.mjs",