@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 +28 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +28 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -109,7 +109,7 @@ type JsonValue$1 = string | number | boolean | null | JsonValue$1[] | object;
|
|
|
109
109
|
* This is the single source of truth for the version constant.
|
|
110
110
|
* The `scripts/release.sh` script updates this value alongside `package.json`.
|
|
111
111
|
*/
|
|
112
|
-
declare const SDK_VERSION = "1.
|
|
112
|
+
declare const SDK_VERSION = "1.12.0";
|
|
113
113
|
/**
|
|
114
114
|
* Authentication mode for the SDK.
|
|
115
115
|
*
|
|
@@ -44941,6 +44941,25 @@ declare class ResearchClient {
|
|
|
44941
44941
|
* ```
|
|
44942
44942
|
*/
|
|
44943
44943
|
runToCompletion(sessionId: string): Promise<ResearchSessionResponse>;
|
|
44944
|
+
/**
|
|
44945
|
+
* Resume an interrupted or failed research session.
|
|
44946
|
+
*
|
|
44947
|
+
* A session left in a non-`Completed` state — e.g. swept to `Failed` after a
|
|
44948
|
+
* server restart killed its in-process pipeline — is otherwise stuck. Resuming
|
|
44949
|
+
* re-runs the pipeline, continuing from the session's persisted partial
|
|
44950
|
+
* progress (papers ingested, findings, cycles), and can reach `Completed`.
|
|
44951
|
+
* Like {@link runToCompletion} the run is long-lived server-side; the UI
|
|
44952
|
+
* typically calls this fire-and-forget and polls {@link getSession}.
|
|
44953
|
+
*
|
|
44954
|
+
* @param sessionId - The session ID (UUID) to resume.
|
|
44955
|
+
* @throws {ApiError} 409 if the session is already `Completed`, 404 if unknown.
|
|
44956
|
+
*
|
|
44957
|
+
* @example
|
|
44958
|
+
* ```ts
|
|
44959
|
+
* await client.research.resumeSession('session-uuid');
|
|
44960
|
+
* ```
|
|
44961
|
+
*/
|
|
44962
|
+
resumeSession(sessionId: string): Promise<ResearchSessionResponse>;
|
|
44944
44963
|
/**
|
|
44945
44964
|
* Delete a research session and all associated data.
|
|
44946
44965
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -109,7 +109,7 @@ type JsonValue$1 = string | number | boolean | null | JsonValue$1[] | object;
|
|
|
109
109
|
* This is the single source of truth for the version constant.
|
|
110
110
|
* The `scripts/release.sh` script updates this value alongside `package.json`.
|
|
111
111
|
*/
|
|
112
|
-
declare const SDK_VERSION = "1.
|
|
112
|
+
declare const SDK_VERSION = "1.12.0";
|
|
113
113
|
/**
|
|
114
114
|
* Authentication mode for the SDK.
|
|
115
115
|
*
|
|
@@ -44941,6 +44941,25 @@ declare class ResearchClient {
|
|
|
44941
44941
|
* ```
|
|
44942
44942
|
*/
|
|
44943
44943
|
runToCompletion(sessionId: string): Promise<ResearchSessionResponse>;
|
|
44944
|
+
/**
|
|
44945
|
+
* Resume an interrupted or failed research session.
|
|
44946
|
+
*
|
|
44947
|
+
* A session left in a non-`Completed` state — e.g. swept to `Failed` after a
|
|
44948
|
+
* server restart killed its in-process pipeline — is otherwise stuck. Resuming
|
|
44949
|
+
* re-runs the pipeline, continuing from the session's persisted partial
|
|
44950
|
+
* progress (papers ingested, findings, cycles), and can reach `Completed`.
|
|
44951
|
+
* Like {@link runToCompletion} the run is long-lived server-side; the UI
|
|
44952
|
+
* typically calls this fire-and-forget and polls {@link getSession}.
|
|
44953
|
+
*
|
|
44954
|
+
* @param sessionId - The session ID (UUID) to resume.
|
|
44955
|
+
* @throws {ApiError} 409 if the session is already `Completed`, 404 if unknown.
|
|
44956
|
+
*
|
|
44957
|
+
* @example
|
|
44958
|
+
* ```ts
|
|
44959
|
+
* await client.research.resumeSession('session-uuid');
|
|
44960
|
+
* ```
|
|
44961
|
+
*/
|
|
44962
|
+
resumeSession(sessionId: string): Promise<ResearchSessionResponse>;
|
|
44944
44963
|
/**
|
|
44945
44964
|
* Delete a research session and all associated data.
|
|
44946
44965
|
*
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __export = (target, all) => {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// src/config.ts
|
|
8
|
-
var SDK_VERSION = "1.
|
|
8
|
+
var SDK_VERSION = "1.12.0";
|
|
9
9
|
function resolveConfig(config) {
|
|
10
10
|
if (!config.baseUrl) {
|
|
11
11
|
throw new Error("ClientConfig.baseUrl is required");
|
|
@@ -23295,6 +23295,33 @@ var ResearchClient = class {
|
|
|
23295
23295
|
});
|
|
23296
23296
|
return ResearchSessionResponseFromApiToFront(response.data);
|
|
23297
23297
|
}
|
|
23298
|
+
/**
|
|
23299
|
+
* Resume an interrupted or failed research session.
|
|
23300
|
+
*
|
|
23301
|
+
* A session left in a non-`Completed` state — e.g. swept to `Failed` after a
|
|
23302
|
+
* server restart killed its in-process pipeline — is otherwise stuck. Resuming
|
|
23303
|
+
* re-runs the pipeline, continuing from the session's persisted partial
|
|
23304
|
+
* progress (papers ingested, findings, cycles), and can reach `Completed`.
|
|
23305
|
+
* Like {@link runToCompletion} the run is long-lived server-side; the UI
|
|
23306
|
+
* typically calls this fire-and-forget and polls {@link getSession}.
|
|
23307
|
+
*
|
|
23308
|
+
* @param sessionId - The session ID (UUID) to resume.
|
|
23309
|
+
* @throws {ApiError} 409 if the session is already `Completed`, 404 if unknown.
|
|
23310
|
+
*
|
|
23311
|
+
* @example
|
|
23312
|
+
* ```ts
|
|
23313
|
+
* await client.research.resumeSession('session-uuid');
|
|
23314
|
+
* ```
|
|
23315
|
+
*/
|
|
23316
|
+
async resumeSession(sessionId) {
|
|
23317
|
+
const response = await this.http.request({
|
|
23318
|
+
path: `/api/v1/research/sessions/${encodeURIComponent(sessionId)}/resume`,
|
|
23319
|
+
method: "POST",
|
|
23320
|
+
secure: true,
|
|
23321
|
+
format: "json"
|
|
23322
|
+
});
|
|
23323
|
+
return ResearchSessionResponseFromApiToFront(response.data);
|
|
23324
|
+
}
|
|
23298
23325
|
/**
|
|
23299
23326
|
* Delete a research session and all associated data.
|
|
23300
23327
|
*
|