orchestrator-client 5.11.0 → 5.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 +17 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +17 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -49,6 +49,7 @@ interface TaskSummary {
|
|
|
49
49
|
interface TaskOptions {
|
|
50
50
|
disableSummaries: boolean;
|
|
51
51
|
disableTranslation: boolean;
|
|
52
|
+
disableStreaming?: boolean;
|
|
52
53
|
}
|
|
53
54
|
/** Full task status including fields returned by GET /task/status. */
|
|
54
55
|
interface TaskDetail extends TaskSummary {
|
|
@@ -246,6 +247,7 @@ interface SystemStatusSettings {
|
|
|
246
247
|
translateModelId: string | null;
|
|
247
248
|
maxConcurrentTasksPerReplica: number | null;
|
|
248
249
|
subagentsEnabled: boolean | null;
|
|
250
|
+
agentReasoningEffort: string | null;
|
|
249
251
|
localizationTargets: {
|
|
250
252
|
locale: string;
|
|
251
253
|
language: string;
|
|
@@ -282,6 +284,7 @@ interface MCPServerInfo {
|
|
|
282
284
|
baseUrl: string;
|
|
283
285
|
name: string;
|
|
284
286
|
description: string;
|
|
287
|
+
available: boolean;
|
|
285
288
|
tools: string[];
|
|
286
289
|
}
|
|
287
290
|
interface MCPServerStatus {
|
|
@@ -1397,7 +1400,7 @@ declare abstract class Flow<T> {
|
|
|
1397
1400
|
get availableTools(): string[] | undefined;
|
|
1398
1401
|
/**
|
|
1399
1402
|
* Per-task feature toggles sent in the creation request.
|
|
1400
|
-
* By default summaries and
|
|
1403
|
+
* By default summaries, translation and streaming are disabled since flow
|
|
1401
1404
|
* output is typically machine-consumed, not human-read.
|
|
1402
1405
|
* Override in subclasses that produce human-facing content.
|
|
1403
1406
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ interface TaskSummary {
|
|
|
49
49
|
interface TaskOptions {
|
|
50
50
|
disableSummaries: boolean;
|
|
51
51
|
disableTranslation: boolean;
|
|
52
|
+
disableStreaming?: boolean;
|
|
52
53
|
}
|
|
53
54
|
/** Full task status including fields returned by GET /task/status. */
|
|
54
55
|
interface TaskDetail extends TaskSummary {
|
|
@@ -246,6 +247,7 @@ interface SystemStatusSettings {
|
|
|
246
247
|
translateModelId: string | null;
|
|
247
248
|
maxConcurrentTasksPerReplica: number | null;
|
|
248
249
|
subagentsEnabled: boolean | null;
|
|
250
|
+
agentReasoningEffort: string | null;
|
|
249
251
|
localizationTargets: {
|
|
250
252
|
locale: string;
|
|
251
253
|
language: string;
|
|
@@ -282,6 +284,7 @@ interface MCPServerInfo {
|
|
|
282
284
|
baseUrl: string;
|
|
283
285
|
name: string;
|
|
284
286
|
description: string;
|
|
287
|
+
available: boolean;
|
|
285
288
|
tools: string[];
|
|
286
289
|
}
|
|
287
290
|
interface MCPServerStatus {
|
|
@@ -1397,7 +1400,7 @@ declare abstract class Flow<T> {
|
|
|
1397
1400
|
get availableTools(): string[] | undefined;
|
|
1398
1401
|
/**
|
|
1399
1402
|
* Per-task feature toggles sent in the creation request.
|
|
1400
|
-
* By default summaries and
|
|
1403
|
+
* By default summaries, translation and streaming are disabled since flow
|
|
1401
1404
|
* output is typically machine-consumed, not human-read.
|
|
1402
1405
|
* Override in subclasses that produce human-facing content.
|
|
1403
1406
|
*/
|
package/dist/index.js
CHANGED
|
@@ -80,6 +80,12 @@ function buildPagination(data) {
|
|
|
80
80
|
hasPrev: p.hasPrev ?? false
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
+
function toSnakeCaseOptions(options) {
|
|
84
|
+
if (!options) return options;
|
|
85
|
+
return Object.fromEntries(
|
|
86
|
+
Object.entries(options).map(([key, value]) => [camelToSnake(key), value])
|
|
87
|
+
);
|
|
88
|
+
}
|
|
83
89
|
function buildSkillMapping(m) {
|
|
84
90
|
return {
|
|
85
91
|
id: m.id ?? 0,
|
|
@@ -412,7 +418,7 @@ var OrchestratorAsync = class {
|
|
|
412
418
|
orchestrator_model_id: params.orchestratorModelId,
|
|
413
419
|
available_tools: params.availableTools,
|
|
414
420
|
attachment_ids: params.attachmentIds,
|
|
415
|
-
options: params.options
|
|
421
|
+
options: toSnakeCaseOptions(params.options)
|
|
416
422
|
});
|
|
417
423
|
return {
|
|
418
424
|
taskId: data.taskId ?? data.task_id ?? "",
|
|
@@ -730,7 +736,7 @@ var OrchestratorAsync = class {
|
|
|
730
736
|
orchestrator_model_id: params.orchestratorModelId,
|
|
731
737
|
available_tools: params.availableTools,
|
|
732
738
|
attachment_ids: params.attachmentIds,
|
|
733
|
-
options: params.options
|
|
739
|
+
options: toSnakeCaseOptions(params.options)
|
|
734
740
|
};
|
|
735
741
|
if (params.delegatedToken !== void 0) {
|
|
736
742
|
body.delegated_token = params.delegatedToken;
|
|
@@ -1137,6 +1143,9 @@ var OrchestratorAsync = class {
|
|
|
1137
1143
|
if (settings.subagentsEnabled !== void 0) {
|
|
1138
1144
|
body.subagents_enabled = settings.subagentsEnabled;
|
|
1139
1145
|
}
|
|
1146
|
+
if (settings.agentReasoningEffort !== void 0) {
|
|
1147
|
+
body.agent_reasoning_effort = settings.agentReasoningEffort;
|
|
1148
|
+
}
|
|
1140
1149
|
if (settings.localizationTargets !== void 0) {
|
|
1141
1150
|
body.localization_targets = settings.localizationTargets;
|
|
1142
1151
|
}
|
|
@@ -2269,12 +2278,16 @@ var Flow = class {
|
|
|
2269
2278
|
}
|
|
2270
2279
|
/**
|
|
2271
2280
|
* Per-task feature toggles sent in the creation request.
|
|
2272
|
-
* By default summaries and
|
|
2281
|
+
* By default summaries, translation and streaming are disabled since flow
|
|
2273
2282
|
* output is typically machine-consumed, not human-read.
|
|
2274
2283
|
* Override in subclasses that produce human-facing content.
|
|
2275
2284
|
*/
|
|
2276
2285
|
get taskOptions() {
|
|
2277
|
-
return {
|
|
2286
|
+
return {
|
|
2287
|
+
disableSummaries: true,
|
|
2288
|
+
disableTranslation: true,
|
|
2289
|
+
disableStreaming: true
|
|
2290
|
+
};
|
|
2278
2291
|
}
|
|
2279
2292
|
/**
|
|
2280
2293
|
* Override the agent model for this flow.
|