@kortyx/hooks 0.24.0 → 0.25.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,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.25.0](https://github.com/kortyx-io/kortyx/compare/hooks-v0.24.0...hooks-v0.25.0) (2026-09-14)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * **errors:** public failure messages and default HTTP statuses change; malformed streams fail explicitly, provider error classes are shared, and retry helpers exclude control flow. Existing calls and legacy records remain supported. See the error-contract migration and release notes.
9
+
10
+ ### Features
11
+
12
+ * **errors:** harden failure contracts across execution and recovery ([#175](https://github.com/kortyx-io/kortyx/issues/175)) ([d231e36](https://github.com/kortyx-io/kortyx/commit/d231e364259a4f23fc3675d8783fde5ba338416e))
13
+
14
+
15
+ ### Dependencies
16
+
17
+ * The following workspace dependencies were updated
18
+ * dependencies
19
+ * @kortyx/core bumped to 0.9.0
20
+ * @kortyx/providers bumped to 0.7.0
21
+
3
22
  ## [0.24.0](https://github.com/kortyx-io/kortyx/compare/hooks-v0.23.1...hooks-v0.24.0) (2026-09-11)
4
23
 
5
24
 
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import * as _kortyx_core from '@kortyx/core';
2
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
+ import { FailureDescriptor, KortyxError } from '@kortyx/core/errors';
5
6
  import { z } from 'zod';
6
7
  import { ProviderModelRef, KortyxReasoningOptions, KortyxResponseFormat, KortyxExecutableTool, KortyxUsage, KortyxFinishReason, KortyxProviderMetadata, KortyxWarning, KortyxToolCall, KortyxToolResult } from '@kortyx/providers';
7
8
  import '@kortyx/telemetry-contracts';
@@ -16,6 +17,9 @@ declare function completeResponse(options?: CompleteResponseOptions): Promise<vo
16
17
  /** All siblings have settled; results retain the order passed to parallel(). */
17
18
  declare class ParallelError extends AggregateError {
18
19
  readonly results: readonly PromiseSettledResult<unknown>[];
20
+ readonly code = "PARALLEL_FAILED";
21
+ readonly failure: FailureDescriptor;
22
+ toJSON(): FailureDescriptor;
19
23
  constructor(results: readonly PromiseSettledResult<unknown>[]);
20
24
  }
21
25
  /** Join concurrent child calls, preserving their snapshots before suspending. */
@@ -43,9 +47,9 @@ type WorkflowCallService = (args: {
43
47
  response?: string | string[] | undefined;
44
48
  callerNodeExecutionId?: string | undefined;
45
49
  }) => Promise<WorkflowCallOutcome>;
46
- declare class WorkflowCallError extends Error {
50
+ declare class WorkflowCallError extends KortyxError {
47
51
  readonly workflow: string;
48
- constructor(workflow: string, message: string);
52
+ constructor(workflow: string, message: string, cause?: unknown, failure?: FailureDescriptor);
49
53
  }
50
54
  declare function workflowCallFingerprint(value: unknown): string;
51
55
  type SchematizedWorkflow = WorkflowDefinition & {