@kortyx/hooks 0.16.0 → 0.17.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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.17.0](https://github.com/kortyx-io/kortyx/compare/hooks-v0.16.0...hooks-v0.17.0) (2026-05-26)
4
+
5
+
6
+ ### Features
7
+
8
+ * **agent:** expose run trace ids in streams ([50521cd](https://github.com/kortyx-io/kortyx/commit/50521cd27d58cd66d93cf19a88d160c0cd0b3ec4))
9
+ * **agent:** expose run trace ids in streams ([260e96e](https://github.com/kortyx-io/kortyx/commit/260e96e72018eac5a3f91c36ed661abf11a1caf4))
10
+
3
11
  ## [0.16.0](https://github.com/kortyx-io/kortyx/compare/hooks-v0.15.0...hooks-v0.16.0) (2026-05-25)
4
12
 
5
13
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { NodeConfig, InterruptInput, InterruptResult, GraphState } from '@kortyx/core';
2
- import { R as ReasonTraceAdapter, K as KortyxTraceMetadata } from './tracing-DK-T8zX5.js';
3
- export { a as KortyxTelemetryConfig, b as KortyxTelemetryContentCapture, c as KortyxTelemetryPrompt, d as KortyxTraceAdapter, e as ReasonTraceAttributes, f as ReasonTraceSpan, g as ReasonTraceSpanEndArgs, h as ReasonTraceSpanStartArgs } from './tracing-DK-T8zX5.js';
2
+ import { R as ReasonTraceAdapter, K as KortyxTraceMetadata } from './tracing-DhjgeiDS.js';
3
+ export { a as KortyxTelemetryConfig, b as KortyxTelemetryContentCapture, c as KortyxTelemetryPrompt, d as KortyxTraceAdapter, e as ReasonTraceAttributes, f as ReasonTraceSpan, g as ReasonTraceSpanEndArgs, h as ReasonTraceSpanStartArgs } from './tracing-DhjgeiDS.js';
4
4
  import { ProviderModelRef, KortyxReasoningOptions, KortyxResponseFormat, KortyxExecutableTool, KortyxUsage, KortyxFinishReason, KortyxProviderMetadata, KortyxWarning, KortyxToolCall, KortyxToolResult } from '@kortyx/providers';
5
5
 
6
6
  type HookNodeRuntimeContext = {
@@ -1,6 +1,6 @@
1
1
  import { ProviderModelRef, KortyxReasoningOptions, KortyxResponseFormat, KortyxToolDefinition, KortyxPromptMessage, KortyxUsage, KortyxFinishReason, KortyxToolCall, KortyxProviderMetadata, KortyxWarning } from '@kortyx/providers';
2
- import { K as KortyxTraceMetadata, R as ReasonTraceAdapter } from './tracing-DK-T8zX5.js';
3
- export { a as KortyxTelemetryConfig, d as KortyxTraceAdapter } from './tracing-DK-T8zX5.js';
2
+ import { K as KortyxTraceMetadata, R as ReasonTraceAdapter } from './tracing-DhjgeiDS.js';
3
+ export { a as KortyxTelemetryConfig, d as KortyxTraceAdapter } from './tracing-DhjgeiDS.js';
4
4
 
5
5
  interface RunReasonEngineArgs {
6
6
  model: ProviderModelRef;
@@ -43,6 +43,10 @@ interface ReasonTraceSpan {
43
43
  interface ReasonTraceAdapter {
44
44
  startSpan: (args: ReasonTraceSpanStartArgs) => ReasonTraceSpan | undefined;
45
45
  withSpan?: <T>(args: ReasonTraceSpanStartArgs, fn: (span: ReasonTraceSpan) => T | Promise<T>) => Promise<T>;
46
+ getActiveContext?: () => {
47
+ traceId: string;
48
+ spanId: string;
49
+ } | undefined;
46
50
  }
47
51
  type KortyxTraceAdapter = ReasonTraceAdapter;
48
52
  type KortyxTelemetryConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kortyx/hooks",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "private": false,
5
5
  "description": "Lifecycle hooks and extension points for Kortyx.",
6
6
  "keywords": [