@kortexya/reasoninglayer 1.11.0 → 1.12.0

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/dist/index.cjs CHANGED
@@ -7,7 +7,7 @@ var __export = (target, all) => {
7
7
  };
8
8
 
9
9
  // src/config.ts
10
- var SDK_VERSION = "1.11.0";
10
+ var SDK_VERSION = "1.12.0";
11
11
  function resolveConfig(config) {
12
12
  if (!config.baseUrl) {
13
13
  throw new Error("ClientConfig.baseUrl is required");
@@ -23297,6 +23297,33 @@ var ResearchClient = class {
23297
23297
  });
23298
23298
  return ResearchSessionResponseFromApiToFront(response.data);
23299
23299
  }
23300
+ /**
23301
+ * Resume an interrupted or failed research session.
23302
+ *
23303
+ * A session left in a non-`Completed` state — e.g. swept to `Failed` after a
23304
+ * server restart killed its in-process pipeline — is otherwise stuck. Resuming
23305
+ * re-runs the pipeline, continuing from the session's persisted partial
23306
+ * progress (papers ingested, findings, cycles), and can reach `Completed`.
23307
+ * Like {@link runToCompletion} the run is long-lived server-side; the UI
23308
+ * typically calls this fire-and-forget and polls {@link getSession}.
23309
+ *
23310
+ * @param sessionId - The session ID (UUID) to resume.
23311
+ * @throws {ApiError} 409 if the session is already `Completed`, 404 if unknown.
23312
+ *
23313
+ * @example
23314
+ * ```ts
23315
+ * await client.research.resumeSession('session-uuid');
23316
+ * ```
23317
+ */
23318
+ async resumeSession(sessionId) {
23319
+ const response = await this.http.request({
23320
+ path: `/api/v1/research/sessions/${encodeURIComponent(sessionId)}/resume`,
23321
+ method: "POST",
23322
+ secure: true,
23323
+ format: "json"
23324
+ });
23325
+ return ResearchSessionResponseFromApiToFront(response.data);
23326
+ }
23300
23327
  /**
23301
23328
  * Delete a research session and all associated data.
23302
23329
  *