@ricsam/r5d-api 0.0.66 → 0.0.67

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.
@@ -429,6 +429,16 @@ class R5dctlClient {
429
429
  detail: input.detail
430
430
  }
431
431
  }),
432
+ moveConversationHead: (sessionId, nodeId) => this.request({
433
+ method: "POST",
434
+ path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/head`,
435
+ body: { nodeId }
436
+ }),
437
+ forkConversation: (sessionId, nodeId, input = {}) => this.request({
438
+ method: "POST",
439
+ path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/fork`,
440
+ body: { nodeId, ...input.name ? { name: input.name } : {} }
441
+ }),
432
442
  prompt: (sessionId, input) => this.request({
433
443
  method: "POST",
434
444
  path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/prompt`,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-api",
3
- "version": "0.0.66",
3
+ "version": "0.0.67",
4
4
  "type": "commonjs"
5
5
  }
@@ -405,6 +405,16 @@ class R5dctlClient {
405
405
  detail: input.detail
406
406
  }
407
407
  }),
408
+ moveConversationHead: (sessionId, nodeId) => this.request({
409
+ method: "POST",
410
+ path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/head`,
411
+ body: { nodeId }
412
+ }),
413
+ forkConversation: (sessionId, nodeId, input = {}) => this.request({
414
+ method: "POST",
415
+ path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation/fork`,
416
+ body: { nodeId, ...input.name ? { name: input.name } : {} }
417
+ }),
408
418
  prompt: (sessionId, input) => this.request({
409
419
  method: "POST",
410
420
  path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/prompt`,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-api",
3
- "version": "0.0.66",
3
+ "version": "0.0.67",
4
4
  "type": "module"
5
5
  }
@@ -173,6 +173,17 @@ export type R5dctlConversationWorkResponse = {
173
173
  detail: R5dctlConversationWorkDetail;
174
174
  workText: string;
175
175
  };
176
+ export type R5dctlConversationHeadResponse = {
177
+ session: R5dctlSessionDescription;
178
+ head: string;
179
+ revision: number;
180
+ };
181
+ export type R5dctlConversationForkResponse = {
182
+ session: R5dctlSessionDescription;
183
+ sourceSessionId: string;
184
+ forkedFromNodeId: string;
185
+ copiedNodeCount: number;
186
+ };
176
187
  export type R5dctlSessionRunStatus = "idle" | "provisioning" | "queued" | "running" | "completed" | "failed" | "stopped";
177
188
  export type R5dctlWorktreeMergeResponse = {
178
189
  status: "merged" | "up_to_date" | "conflicts" | "conflict_worktree_created" | "resolving" | "failed" | "stale";
@@ -663,6 +674,10 @@ export declare class R5dctlClient {
663
674
  inspectConversationWork: (sessionId: string, workId: string, input?: {
664
675
  detail?: R5dctlConversationWorkDetail;
665
676
  }) => Promise<R5dctlConversationWorkResponse>;
677
+ moveConversationHead: (sessionId: string, nodeId: string) => Promise<R5dctlConversationHeadResponse>;
678
+ forkConversation: (sessionId: string, nodeId: string, input?: {
679
+ name?: string;
680
+ }) => Promise<R5dctlConversationForkResponse>;
666
681
  prompt: (sessionId: string, input: {
667
682
  prompt: string;
668
683
  worker: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-api",
3
- "version": "0.0.66",
3
+ "version": "0.0.67",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.cjs",
6
6
  "module": "./dist/mjs/index.mjs",