@kortyx/hooks 0.24.0 → 0.25.1
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 +28 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.js +251 -152
- package/dist/index.js.map +1 -1
- package/dist/internal.js +30 -9
- package/dist/internal.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.25.1](https://github.com/kortyx-io/kortyx/compare/hooks-v0.25.0...hooks-v0.25.1) (2026-09-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* The following workspace dependencies were updated
|
|
9
|
+
* dependencies
|
|
10
|
+
* @kortyx/telemetry-contracts bumped to 0.6.0
|
|
11
|
+
|
|
12
|
+
## [0.25.0](https://github.com/kortyx-io/kortyx/compare/hooks-v0.24.0...hooks-v0.25.0) (2026-09-14)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ⚠ BREAKING CHANGES
|
|
16
|
+
|
|
17
|
+
* **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.
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* **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))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Dependencies
|
|
25
|
+
|
|
26
|
+
* The following workspace dependencies were updated
|
|
27
|
+
* dependencies
|
|
28
|
+
* @kortyx/core bumped to 0.9.0
|
|
29
|
+
* @kortyx/providers bumped to 0.7.0
|
|
30
|
+
|
|
3
31
|
## [0.24.0](https://github.com/kortyx-io/kortyx/compare/hooks-v0.23.1...hooks-v0.24.0) (2026-09-11)
|
|
4
32
|
|
|
5
33
|
|
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
|
|
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 & {
|