@kortyx/agent 0.26.0 → 0.26.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.26.2](https://github.com/kortyx-io/kortyx/compare/agent-v0.26.1...agent-v0.26.2) (2026-09-22)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * The following workspace dependencies were updated
9
+ * dependencies
10
+ * @kortyx/core bumped to 0.11.0
11
+ * @kortyx/providers bumped to 0.8.3
12
+ * @kortyx/runtime bumped to 0.21.2
13
+ * @kortyx/stream bumped to 0.13.2
14
+ * @kortyx/utils bumped to 0.3.3
15
+ * devDependencies
16
+ * @kortyx/hooks bumped to 0.29.0
17
+ * @kortyx/openai bumped to 0.5.4
18
+
19
+ ## [0.26.1](https://github.com/kortyx-io/kortyx/compare/agent-v0.26.0...agent-v0.26.1) (2026-09-21)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * preserve interrupt control flow and Studio compatibility ([#226](https://github.com/kortyx-io/kortyx/issues/226)) ([72ba7c2](https://github.com/kortyx-io/kortyx/commit/72ba7c2b9a467db0e54b5a4ab5844c8d7f895135))
25
+
26
+
27
+ ### Dependencies
28
+
29
+ * The following workspace dependencies were updated
30
+ * dependencies
31
+ * @kortyx/core bumped to 0.10.1
32
+ * @kortyx/providers bumped to 0.8.2
33
+ * @kortyx/runtime bumped to 0.21.1
34
+ * @kortyx/stream bumped to 0.13.1
35
+ * @kortyx/utils bumped to 0.3.2
36
+ * devDependencies
37
+ * @kortyx/hooks bumped to 0.28.1
38
+ * @kortyx/openai bumped to 0.5.3
39
+
3
40
  ## [0.26.0](https://github.com/kortyx-io/kortyx/compare/agent-v0.25.1...agent-v0.26.0) (2026-09-21)
4
41
 
5
42
 
package/dist/index.js CHANGED
@@ -3532,6 +3532,7 @@ ${tryStringify2(args.response)}`
3532
3532
  }
3533
3533
  };
3534
3534
  var shouldStreamReasonStructured = (args) => (args.emit ?? true) && shouldStreamStructured(args.structured);
3535
+ var usesNativeOutput = (schema) => schema?.["~kortyx"]?.nativeOutput === true;
3535
3536
  var resolveEffectiveReasoningIncludeThoughts = (args) => args.reasoning?.includeThoughts ?? args.model.options?.reasoning?.includeThoughts ?? false;
3536
3537
  var resolveEffectiveResponseFormatType = (args) => args.responseFormat?.type ?? args.model.options?.responseFormat?.type;
3537
3538
  var assertReasoningThoughtsCompatibility = (args) => {
@@ -3677,7 +3678,7 @@ ${tryStringify2(args.response)}`
3677
3678
  requestSchema: args.interrupt.requestSchema,
3678
3679
  mode: args.interrupt.mode ?? "required",
3679
3680
  ...args.outputSchema ? { outputSchema: args.outputSchema } : {}
3680
- }) : args.outputSchema ? withOutputGuardrails(
3681
+ }) : args.outputSchema ? usesNativeOutput(args.outputSchema) ? void 0 : withOutputGuardrails(
3681
3682
  withStructuredStreamHints(args.input, {
3682
3683
  ...setFieldPaths.length > 0 ? { setFieldPaths } : {},
3683
3684
  ...appendFieldPaths.length > 0 ? { appendFieldPaths } : {},
@@ -5442,6 +5443,16 @@ async function orchestrateGraphStream({
5442
5443
  },
5443
5444
  flush: true
5444
5445
  });
5446
+ emitTelemetryEvent({
5447
+ config,
5448
+ type: "workflow.suspended",
5449
+ correlation: { nodeId: record.node },
5450
+ payload: {
5451
+ interruptId: record.requestId,
5452
+ reason: "human_input",
5453
+ suspendedAt: (/* @__PURE__ */ new Date()).toISOString()
5454
+ }
5455
+ });
5445
5456
  wroteHumanInput = true;
5446
5457
  };
5447
5458
  const forwardEmit = (event, payload) => {
@@ -6459,6 +6470,20 @@ async function tryPrepareResumeStream({
6459
6470
  },
6460
6471
  flush: true
6461
6472
  });
6473
+ emitTelemetryEvent({
6474
+ config: telemetryConfig,
6475
+ type: "workflow.resumed",
6476
+ correlation: {
6477
+ runId: pending.runId,
6478
+ sessionId,
6479
+ workflowId,
6480
+ nodeId: pending.node
6481
+ },
6482
+ payload: {
6483
+ interruptId: pending.requestId,
6484
+ resumedAt: (/* @__PURE__ */ new Date()).toISOString()
6485
+ }
6486
+ });
6462
6487
  const continuedSignal = pending.responseCompleted && emitOutput === false ? abortSignal : executionSignal;
6463
6488
  const args = {
6464
6489
  abortSignal,