@ricsam/r5d-api 0.0.41 → 0.0.43

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
@@ -58,6 +58,7 @@ Trusted server-side callers that authenticate through custom headers, such as a
58
58
  - `sessions.delete(sessionId)`
59
59
  - `sessions.conversation(sessionId)`
60
60
  - `sessions.conversationOverview(sessionId)`
61
+ - `sessions.inspectConversationNode(sessionId, nodeId)`
61
62
  - `sessions.inspectConversationWork(sessionId, workId, { detail? })`
62
63
  - `sessions.prompt(sessionId, { message, mode, model })`
63
64
  - `sessions.answerQuestions(sessionId, { answers })`
@@ -332,6 +332,10 @@ class R5dctlClient {
332
332
  method: "GET",
333
333
  path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/overview`
334
334
  }),
335
+ inspectConversationNode: (sessionId, nodeId) => this.request({
336
+ method: "GET",
337
+ path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/nodes/${encodeURIComponent(nodeId)}`
338
+ }),
335
339
  inspectConversationWork: (sessionId, workId, input = {}) => this.request({
336
340
  method: "GET",
337
341
  path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/work/${encodeURIComponent(workId)}`,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-api",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "type": "commonjs"
5
5
  }
@@ -308,6 +308,10 @@ class R5dctlClient {
308
308
  method: "GET",
309
309
  path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/overview`
310
310
  }),
311
+ inspectConversationNode: (sessionId, nodeId) => this.request({
312
+ method: "GET",
313
+ path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/nodes/${encodeURIComponent(nodeId)}`
314
+ }),
311
315
  inspectConversationWork: (sessionId, workId, input = {}) => this.request({
312
316
  method: "GET",
313
317
  path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/work/${encodeURIComponent(workId)}`,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-api",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "type": "module"
5
5
  }
@@ -78,6 +78,16 @@ export type R5dctlConversationOverviewResponse = {
78
78
  pendingQuestions: R5dctlPendingQuestion[];
79
79
  requestedEnvs: R5dctlRequestedEnv[];
80
80
  };
81
+ export type R5dctlConversationNodeResponse = {
82
+ session: R5dctlSessionDescription;
83
+ nodeId: string;
84
+ node: unknown;
85
+ previousNodeId: string | null;
86
+ nextNodeIds: string[];
87
+ activeNextNodeId: string | null;
88
+ onActiveBranch: boolean;
89
+ workId: string | null;
90
+ };
81
91
  export type R5dctlConversationWorkResponse = {
82
92
  session: R5dctlSessionDescription;
83
93
  work: R5dctlConversationWorkMetadata;
@@ -401,6 +411,7 @@ export declare class R5dctlClient {
401
411
  }>;
402
412
  conversation: (sessionId: string, input?: R5dctlConversationRenderOptions) => Promise<R5dctlConversationResponse>;
403
413
  conversationOverview: (sessionId: string) => Promise<R5dctlConversationOverviewResponse>;
414
+ inspectConversationNode: (sessionId: string, nodeId: string) => Promise<R5dctlConversationNodeResponse>;
404
415
  inspectConversationWork: (sessionId: string, workId: string, input?: {
405
416
  detail?: R5dctlConversationWorkDetail;
406
417
  }) => Promise<R5dctlConversationWorkResponse>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-api",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.cjs",
6
6
  "module": "./dist/mjs/index.mjs",