orchestrator-client 5.11.7 → 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.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 {
@@ -1399,7 +1400,7 @@ declare abstract class Flow<T> {
1399
1400
  get availableTools(): string[] | undefined;
1400
1401
  /**
1401
1402
  * Per-task feature toggles sent in the creation request.
1402
- * By default summaries and translation are disabled since flow
1403
+ * By default summaries, translation and streaming are disabled since flow
1403
1404
  * output is typically machine-consumed, not human-read.
1404
1405
  * Override in subclasses that produce human-facing content.
1405
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 {
@@ -1399,7 +1400,7 @@ declare abstract class Flow<T> {
1399
1400
  get availableTools(): string[] | undefined;
1400
1401
  /**
1401
1402
  * Per-task feature toggles sent in the creation request.
1402
- * By default summaries and translation are disabled since flow
1403
+ * By default summaries, translation and streaming are disabled since flow
1403
1404
  * output is typically machine-consumed, not human-read.
1404
1405
  * Override in subclasses that produce human-facing content.
1405
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;
@@ -2272,12 +2278,16 @@ var Flow = class {
2272
2278
  }
2273
2279
  /**
2274
2280
  * Per-task feature toggles sent in the creation request.
2275
- * By default summaries and translation are disabled since flow
2281
+ * By default summaries, translation and streaming are disabled since flow
2276
2282
  * output is typically machine-consumed, not human-read.
2277
2283
  * Override in subclasses that produce human-facing content.
2278
2284
  */
2279
2285
  get taskOptions() {
2280
- return { disableSummaries: true, disableTranslation: true };
2286
+ return {
2287
+ disableSummaries: true,
2288
+ disableTranslation: true,
2289
+ disableStreaming: true
2290
+ };
2281
2291
  }
2282
2292
  /**
2283
2293
  * Override the agent model for this flow.