@kortyx/hooks 0.21.0 → 0.23.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/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.23.0](https://github.com/kortyx-io/kortyx/compare/hooks-v0.22.0...hooks-v0.23.0) (2026-09-11)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * **openai:** OpenAI now defaults to Responses. Select api: chat-completions on the provider or model to keep the previous transport. Raw payloads remain transport-specific.
9
+
10
+ ### Features
11
+
12
+ * **openai:** support Responses reasoning tool workflows ([#167](https://github.com/kortyx-io/kortyx/issues/167)) ([b55ba6e](https://github.com/kortyx-io/kortyx/commit/b55ba6e9a16a6f0f39511c4e60961c41f689abd0))
13
+
14
+
15
+ ### Dependencies
16
+
17
+ * The following workspace dependencies were updated
18
+ * dependencies
19
+ * @kortyx/providers bumped to 0.6.0
20
+
21
+ ## [0.22.0](https://github.com/kortyx-io/kortyx/compare/hooks-v0.21.0...hooks-v0.22.0) (2026-09-11)
22
+
23
+
24
+ ### Features
25
+
26
+ * complete client responses while workflows continue in background ([#165](https://github.com/kortyx-io/kortyx/issues/165)) ([a8a08cd](https://github.com/kortyx-io/kortyx/commit/a8a08cd1e9533e4b44efa4af54a2d2cec54431ae))
27
+
28
+
29
+ ### Dependencies
30
+
31
+ * The following workspace dependencies were updated
32
+ * dependencies
33
+ * @kortyx/telemetry-contracts bumped to 0.5.0
34
+
3
35
  ## [0.21.0](https://github.com/kortyx-io/kortyx/compare/hooks-v0.20.0...hooks-v0.21.0) (2026-09-10)
4
36
 
5
37
 
package/dist/index.d.ts CHANGED
@@ -1,11 +1,18 @@
1
1
  import * as _kortyx_core from '@kortyx/core';
2
- import { WorkflowDefinition, TokenUsage, InterruptInput, NodeConfig, InterruptResult, GraphState } from '@kortyx/core';
2
+ import { WorkflowDefinition, TokenUsage, InterruptInput, GraphState, NodeConfig, InterruptResult } from '@kortyx/core';
3
3
  import { K as KortyxTelemetryConfig, R as ReasonTraceAdapter, a as KortyxTraceMetadata, b as KortyxTelemetryEventType } from './tracing-BI6YKHSf.js';
4
4
  export { E as EnsureWorkflowTopologyRequest, c as EnsureWorkflowTopologyResponse, d as KortyxTelemetryContentCapture, e as KortyxTelemetryCorrelation, f as KortyxTelemetryEvent, g as KortyxTelemetryPrompt, h as KortyxTelemetryReporter, i as KortyxTelemetryService, j as KortyxTraceAdapter, k as ReasonTraceAttributes, l as ReasonTraceSpan, m as ReasonTraceSpanEndArgs, n as ReasonTraceSpanStartArgs } from './tracing-BI6YKHSf.js';
5
5
  import { z } from 'zod';
6
6
  import { ProviderModelRef, KortyxReasoningOptions, KortyxResponseFormat, KortyxExecutableTool, KortyxUsage, KortyxFinishReason, KortyxProviderMetadata, KortyxWarning, KortyxToolCall, KortyxToolResult } from '@kortyx/providers';
7
7
  import '@kortyx/telemetry-contracts';
8
8
 
9
+ type CompleteResponseOptions = {
10
+ message?: string | undefined;
11
+ data?: unknown;
12
+ };
13
+ /** Finish client delivery, leaving the node and workflow execution running. */
14
+ declare function completeResponse(options?: CompleteResponseOptions): Promise<void>;
15
+
9
16
  type WorkflowCallOutcome = {
10
17
  status: "completed";
11
18
  data: Record<string, unknown>;
@@ -62,6 +69,7 @@ declare function useWorkflow(args: {
62
69
  }>;
63
70
 
64
71
  type HookNodeRuntimeContext = {
72
+ completeResponse?: ((options: CompleteResponseOptions, state: GraphState) => Promise<void>) | undefined;
65
73
  /** Transient execution control; never part of checkpointed state. */
66
74
  abortSignal?: AbortSignal | undefined;
67
75
  consumeExecution?: ((limit: _kortyx_core.ExecutionLimit) => void) | undefined;
@@ -228,4 +236,4 @@ declare function useWorkflowState<T>(key: string, ...rest: [] | [T]): [T, StateS
228
236
  /** Best effort lifecycle facts. Engine snapshots and interrupt tokens never leave the runtime. */
229
237
  declare function emitWorkflowCall(telemetry: KortyxTelemetryConfig | undefined, type: KortyxTelemetryEventType, payload: Record<string, unknown>): void;
230
238
 
231
- export { type HookRuntimeContext, KortyxTelemetryConfig, KortyxTelemetryEventType, KortyxTraceMetadata, ReasonTraceAdapter, type UseInterruptArgs, type UseReasonArgs, type UseReasonResult, type UseReasonStep, type UseReasonToolExecution, type UseStructuredDataArgs, WorkflowCallError, type WorkflowCallOutcome, type WorkflowCallService, createWorkflowHooks, emitWorkflowCall, runWithHookContext, useAbortSignal, useInterrupt, useNodeState, useReason, useRuntimeContext, useStructuredData, useWorkflow, useWorkflowState, workflowCallFingerprint };
239
+ export { type CompleteResponseOptions, type HookRuntimeContext, KortyxTelemetryConfig, KortyxTelemetryEventType, KortyxTraceMetadata, ReasonTraceAdapter, type UseInterruptArgs, type UseReasonArgs, type UseReasonResult, type UseReasonStep, type UseReasonToolExecution, type UseStructuredDataArgs, WorkflowCallError, type WorkflowCallOutcome, type WorkflowCallService, completeResponse, createWorkflowHooks, emitWorkflowCall, runWithHookContext, useAbortSignal, useInterrupt, useNodeState, useReason, useRuntimeContext, useStructuredData, useWorkflow, useWorkflowState, workflowCallFingerprint };