@kortyx/hooks 0.28.1 → 0.29.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 +15 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.29.0](https://github.com/kortyx-io/kortyx/compare/hooks-v0.28.1...hooks-v0.29.0) (2026-09-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **providers:** add OpenRouter and Jev support ([#230](https://github.com/kortyx-io/kortyx/issues/230)) ([7a6ac2c](https://github.com/kortyx-io/kortyx/commit/7a6ac2c2171850fa89f041e66c980521409e6819))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @kortyx/core bumped to 0.11.0
|
|
16
|
+
* @kortyx/providers bumped to 0.8.3
|
|
17
|
+
|
|
3
18
|
## [0.28.1](https://github.com/kortyx-io/kortyx/compare/hooks-v0.28.0...hooks-v0.28.1) (2026-09-21)
|
|
4
19
|
|
|
5
20
|
|
package/dist/index.d.ts
CHANGED
|
@@ -110,6 +110,10 @@ declare function runWithHookContext<T>(ctx: HookRuntimeContext, fn: () => Promis
|
|
|
110
110
|
}>;
|
|
111
111
|
|
|
112
112
|
type SchemaLike<T> = {
|
|
113
|
+
/** Provider helpers can opt out of prompt-appended output instructions. */
|
|
114
|
+
readonly "~kortyx"?: {
|
|
115
|
+
readonly nativeOutput?: boolean | undefined;
|
|
116
|
+
} | undefined;
|
|
113
117
|
safeParse: (value: unknown) => {
|
|
114
118
|
success: true;
|
|
115
119
|
data: T;
|
package/dist/index.js
CHANGED
|
@@ -3086,6 +3086,7 @@ var runReasonToolLoop = async (args) => {
|
|
|
3086
3086
|
|
|
3087
3087
|
// src/reason/use-reason.ts
|
|
3088
3088
|
var shouldStreamReasonStructured = (args) => (args.emit ?? true) && shouldStreamStructured(args.structured);
|
|
3089
|
+
var usesNativeOutput = (schema) => schema?.["~kortyx"]?.nativeOutput === true;
|
|
3089
3090
|
var resolveEffectiveReasoningIncludeThoughts = (args) => args.reasoning?.includeThoughts ?? args.model.options?.reasoning?.includeThoughts ?? false;
|
|
3090
3091
|
var resolveEffectiveResponseFormatType = (args) => args.responseFormat?.type ?? args.model.options?.responseFormat?.type;
|
|
3091
3092
|
var assertReasoningThoughtsCompatibility = (args) => {
|
|
@@ -3231,7 +3232,7 @@ async function runReason(args) {
|
|
|
3231
3232
|
requestSchema: args.interrupt.requestSchema,
|
|
3232
3233
|
mode: args.interrupt.mode ?? "required",
|
|
3233
3234
|
...args.outputSchema ? { outputSchema: args.outputSchema } : {}
|
|
3234
|
-
}) : args.outputSchema ? withOutputGuardrails(
|
|
3235
|
+
}) : args.outputSchema ? usesNativeOutput(args.outputSchema) ? void 0 : withOutputGuardrails(
|
|
3235
3236
|
withStructuredStreamHints(args.input, {
|
|
3236
3237
|
...setFieldPaths.length > 0 ? { setFieldPaths } : {},
|
|
3237
3238
|
...appendFieldPaths.length > 0 ? { appendFieldPaths } : {},
|