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 CHANGED
@@ -148,6 +148,12 @@ function buildPagination(data) {
148
148
  hasPrev: p.hasPrev ?? false
149
149
  };
150
150
  }
151
+ function toSnakeCaseOptions(options) {
152
+ if (!options) return options;
153
+ return Object.fromEntries(
154
+ Object.entries(options).map(([key, value]) => [camelToSnake(key), value])
155
+ );
156
+ }
151
157
  function buildSkillMapping(m) {
152
158
  return {
153
159
  id: m.id ?? 0,
@@ -480,7 +486,7 @@ var OrchestratorAsync = class {
480
486
  orchestrator_model_id: params.orchestratorModelId,
481
487
  available_tools: params.availableTools,
482
488
  attachment_ids: params.attachmentIds,
483
- options: params.options
489
+ options: toSnakeCaseOptions(params.options)
484
490
  });
485
491
  return {
486
492
  taskId: data.taskId ?? data.task_id ?? "",
@@ -798,7 +804,7 @@ var OrchestratorAsync = class {
798
804
  orchestrator_model_id: params.orchestratorModelId,
799
805
  available_tools: params.availableTools,
800
806
  attachment_ids: params.attachmentIds,
801
- options: params.options
807
+ options: toSnakeCaseOptions(params.options)
802
808
  };
803
809
  if (params.delegatedToken !== void 0) {
804
810
  body.delegated_token = params.delegatedToken;
@@ -1205,6 +1211,9 @@ var OrchestratorAsync = class {
1205
1211
  if (settings.subagentsEnabled !== void 0) {
1206
1212
  body.subagents_enabled = settings.subagentsEnabled;
1207
1213
  }
1214
+ if (settings.agentReasoningEffort !== void 0) {
1215
+ body.agent_reasoning_effort = settings.agentReasoningEffort;
1216
+ }
1208
1217
  if (settings.localizationTargets !== void 0) {
1209
1218
  body.localization_targets = settings.localizationTargets;
1210
1219
  }
@@ -2337,12 +2346,16 @@ var Flow = class {
2337
2346
  }
2338
2347
  /**
2339
2348
  * Per-task feature toggles sent in the creation request.
2340
- * By default summaries and translation are disabled since flow
2349
+ * By default summaries, translation and streaming are disabled since flow
2341
2350
  * output is typically machine-consumed, not human-read.
2342
2351
  * Override in subclasses that produce human-facing content.
2343
2352
  */
2344
2353
  get taskOptions() {
2345
- return { disableSummaries: true, disableTranslation: true };
2354
+ return {
2355
+ disableSummaries: true,
2356
+ disableTranslation: true,
2357
+ disableStreaming: true
2358
+ };
2346
2359
  }
2347
2360
  /**
2348
2361
  * Override the agent model for this flow.