@denizokcu/haze 1.5.0 → 1.5.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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.5.1 - 2026-10-07
4
+
5
+ Terminal transcript replay on resize and capability-aware reasoning effort.
6
+
7
+ ### Fixed
8
+
9
+ - On terminal width changes, clear the viewport and replay the full settled transcript, including formatted Markdown, at the new width. Only `<Static>` remounts: input drafts and active turns retain their state. Scrollback is not erased, so earlier transcript copies can remain there after replay.
10
+ - Size the dynamic frame against the live Yoga root during Ink's synchronous resize pass, avoiding stale numeric widths before React commits the new terminal dimensions.
11
+ - Gate reasoning effort by endpoint capability. Explicit provider `capabilities.reasoningEffort` overrides win; otherwise local inference endpoints omit the parameter and hosted OpenAI-compatible endpoints retain SDK pass-through. Omission avoids local servers coercing unsupported levels into an enabled reasoning switch; their own default still applies.
12
+ - Match the pinned OpenAI SDK's GPT-6+ restrictions: omit `minimal`, and omit `none` except for exactly `gpt-6-sol` and `gpt-6-luna`. Unsupported choices use the provider default rather than being promoted to another effort; reasoning-policy events explain the omission.
13
+
14
+ ### Documentation
15
+
16
+ - Refresh release metadata, README, public documentation, and scoped AGENTS guidance for 1.5.1; correct session-only reasoning semantics, the `medium` default, and formatted streaming/resize behavior.
17
+
3
18
  ## 1.5.0 - 2026-10-04
4
19
 
5
20
  Ink 8 terminal modernization with formatted streamed Markdown, per-model session-scoped reasoning, model steering for compact models, and pinned session model selections.
package/README.md CHANGED
@@ -2,7 +2,15 @@
2
2
 
3
3
  A minimal LLM harness for your terminal.
4
4
 
5
- ## What's new in 1.5.0
5
+ ## What's new in 1.5.1
6
+
7
+ haze 1.5.1 improves terminal resizing and reasoning-effort compatibility:
8
+
9
+ - On terminal width changes, haze replays the full settled transcript, including formatted Markdown, at the new width. The input draft and active turn stay mounted. Terminal scrollback is preserved, so older transcript copies can remain there after a replay.
10
+ - Local inference endpoints omit reasoning effort by default; providers can explicitly enable or disable it with `capabilities.reasoningEffort`. Hosted OpenAI-compatible endpoints retain pass-through behavior.
11
+ - Unsupported `none`/`minimal` choices for GPT-6+ model names are omitted rather than promoted to a different effort; the provider default applies.
12
+
13
+ ### Highlights from 1.5.0
6
14
 
7
15
  haze 1.5.0 modernizes the terminal experience on Ink 8 — formatted streamed Markdown, native spinners and busy indicators, `$EDITOR`/`$PAGER` handoffs, and IME-aware cursor placement — and adds model steering for compact models, per-model session-scoped `/reasoning` (with the `/thinking` alias), pinned session model selections, and a metadata-only `haze report`.
8
16
 
@@ -106,7 +114,9 @@ Saved settings live in `~/.haze/settings.json`. ChatGPT OAuth credentials live s
106
114
 
107
115
  Switch the interface palette with `/themes`. The picker lists every built-in theme — light palettes and oh-my-zsh ports like `robbyrussell`, `af-magic`, and `solarized-dark` — and applies the choice immediately; `/themes <name>` sets one directly. The selection persists as `theme` in `~/.haze/settings.json`, and text already on screen keeps its old colors.
108
116
 
109
- Control reasoning effort with `/reasoning`. The picker (or `/reasoning <level>`) sets one of `none`, `minimal`, `low`, `medium`, `high`, or `xhigh`; the default is `high` when nothing is saved. `/reasoning unset` returns to the provider default (no reasoning parameter is sent) and `/reasoning status` shows the current level. The level is sent as the AI SDK's portable reasoning parameter (the standard `reasoning_effort` field on OpenAI-compatible endpoints) and applies from the next turn. Endpoints without native support ignore it. The selection persists as `reasoning` in `~/.haze/settings.json`; the current level is shown in the bottom status bar next to the model name.
117
+ Control reasoning effort with `/reasoning` (alias `/thinking`). The picker or `/reasoning <level>` sets `none`, `minimal`, `low`, `medium`, `high`, or `xhigh` for the active model in this session; it never writes settings. `/reasoning unset` omits the parameter, `/reasoning reset` drops the session override, and `/reasoning status` explains the current choice. Resolution follows run-scoped `--reasoning` → per-model session override → saved global `reasoning` setting → built-in default `medium`. The level travels as the AI SDK's portable `reasoning` parameter from the next turn and appears beside the model in the status bar.
118
+
119
+ Reasoning effort is capability-gated: `capabilities.reasoningEffort: true|false` on a provider explicitly enables or disables sending it. Without an override, local inference endpoints recognized by haze (`localhost`, `127.0.0.1`, `::1`, `0.0.0.0`, and `.local` hosts) omit it; hosted endpoints retain pass-through behavior. This avoids local servers interpreting unsupported levels as reasoning being enabled. Omission leaves the server's own default in control; it does not guarantee reasoning is off. For bare GPT-6+ model names, `minimal` is omitted, and `none` is omitted except for exactly `gpt-6-sol` and `gpt-6-luna`; unsupported choices are never silently promoted. The `reasoning_policy` stream event reports the effective policy.
110
120
 
111
121
  haze focuses on chat, local tools, context files, sessions, and Markdown skills. Use `/skills` for workflows outside that core. Its interactive picker can generate a skill from a description, then enable, disable, validate, or remove it. For reviews, release prep, deploy checks, debugging routines, or a team-specific checklist, ask haze to create a skill and edit the resulting Markdown as needed.
112
122
 
@@ -118,7 +128,7 @@ Open a project and ask for work:
118
128
  create a calculator in calc-app in ruby with add subtract multiply divide
119
129
  ```
120
130
 
121
- haze can inspect and edit files, fetch public URLs, and run commands. Tool activity stays compact in the transcript. Completed transcript entries render once as static terminal output, which keeps live model and spinner updates from repainting the full history. During a streamed answer, completed root-level Markdown blocks move into that static history while the unfinished block stays plain and live. Small edits show a colorized diff with one line of context on either side; large diffs get a short summary instead. Shell output is capped while the command runs, then filtered according to the command type. Validation failures keep the useful diagnostics. Raw output handles have per-entry and total memory limits, and tell you how many bytes were dropped. Sessions are saved after their first resumable message, so you can pick up the latest workspace conversation with `haze --continue` or `/resume` without accumulating empty session files.
131
+ haze can inspect and edit files, fetch public URLs, and run commands. Tool activity stays compact in the transcript. Settled transcript entries normally render once as static terminal output, keeping typing, live model output, and spinner updates from repainting the full history. Streaming Markdown remains formatted: parser-stable root blocks move into static history while the final, still-changing block stays in the bounded dynamic tail. On a terminal width change, haze clears the viewport and replays the full static transcript with fresh Markdown layout; the draft and running turn keep their state. This does not erase scrollback, which may retain earlier transcript copies. Small edits show a colorized diff with one line of context on either side; large diffs get a short summary instead. Shell output is capped while the command runs, then filtered according to the command type. Validation failures keep the useful diagnostics. Raw output handles have per-entry and total memory limits, and tell you how many bytes were dropped. Sessions are saved after their first resumable message, so you can pick up the latest workspace conversation with `haze --continue` or `/resume` without accumulating empty session files.
122
132
 
123
133
  The agent can start up to five dev servers or watchers as registered background processes. Their rolling output is capped at 256 KB and remains available through `readToolOutput`; the `process` tool lists, reads, and kills them. The status bar shows the live count. Starting a new session or exiting haze terminates every registered process tree, while aborting an individual turn leaves background work running. Background processes are unavailable inside fleet workers and never survive haze itself.
124
134
 
@@ -220,7 +230,7 @@ When you catch yourself repeating the same instructions, put them in a skill. Th
220
230
  /settings open
221
231
  /themes
222
232
  /themes <name>
223
- /reasoning [level|unset|status]
233
+ /reasoning [level|unset|reset|status]
224
234
  /logs [id]
225
235
  /lsp
226
236
  /mcp
@@ -405,7 +415,8 @@ Most haze behaviour needs no configuration; a few optional keys in `~/.haze/sett
405
415
  - `contextWindowFallbackTokens` / `localContextWindowFallbackTokens` (default 128K hosted / 32K local): context-window guess for models without limits metadata or a curated catalog entry. Every turn emits a `context_budget` event naming the window and its source, and the interactive warning fires once per model per session when the built-in default was used.
406
416
  - `manualCompaction` (`"llm-summary"` default, or `"heuristic"`): whether manual `/compact` asks the active model for a continuity summary or keeps the model-free bounded excerpt.
407
417
  - `theme` (string, default `purple`): name of a built-in palette (`/themes` lists and sets them, with `light` and oh-my-zsh ports like `robbyrussell` included). Unknown names fail loudly at startup with the valid names listed.
408
- - `reasoning` (`"none"` | `"minimal"` | `"low"` | `"medium"` | `"high"` | `"xhigh"` | `"provider-default"`, default `high`): reasoning-effort level sent as the portable reasoning parameter. An absent key means `high`; the `provider-default` sentinel means no parameter is sent. `/reasoning` lists, sets, and clears it.
418
+ - `reasoning` (`"none"` | `"minimal"` | `"low"` | `"medium"` | `"high"` | `"xhigh"` | `"provider-default"`, default `medium`): saved global fallback for the portable reasoning parameter. Run-scoped and per-model session choices take precedence. The `provider-default` sentinel omits the parameter; `/reasoning` changes only the in-memory session choice.
419
+ - `providers[].capabilities.reasoningEffort` (optional boolean): explicitly allow or omit reasoning effort for that provider. Without it, local inference endpoints omit the parameter and hosted OpenAI-compatible endpoints pass it through, subject to model-specific restrictions.
409
420
 
410
421
  ## Safety model
411
422
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@denizokcu/haze",
3
- "version": "1.5.0",
4
- "commit": "cd0daa845cacfe4aee5adb0cd8f521c9885acf79",
5
- "builtAt": "2026-10-04T20:57:37.360Z",
3
+ "version": "1.5.1",
4
+ "commit": "d77c53f3eea3bec1757d583bc5a8e80cfd9fc3a2",
5
+ "builtAt": "2026-10-07T21:45:47.260Z",
6
6
  "sourceRoot": "/Users/deniz.okcu/development/haze"
7
7
  }
@@ -39,5 +39,10 @@ export function DynamicFrame({ rows, columns, sections, input }) {
39
39
  // Previous measurements may be wider on shrink: first-render arithmetic stays authoritative.
40
40
  const inputWidth = metrics.hasMeasured && metrics.clientWidth > 0 ? Math.min(safeWidth, metrics.clientWidth) : safeWidth;
41
41
  const onRowsChange = (next) => setDemand(previous => previous.input === next.input && previous.suggestions === next.suggestions ? previous : next);
42
- return _jsxs(Box, { flexDirection: "column", width: Math.max(1, columns), flexShrink: 0, children: [_jsx(Panel, { rows: budget.live, children: typeof sections.live === 'function' ? sections.live(budget.live) : sections.live }), _jsx(Panel, { rows: budget.debug, children: sections.debug }), _jsx(Panel, { rows: budget.queue, children: sections.queue }), _jsx(Panel, { rows: budget.tasks, children: sections.tasks }), _jsx(Panel, { rows: budget.activity, children: sections.activity }), _jsx(Box, { flexDirection: "column", height: budget.input + budget.suggestions + budget.border, flexShrink: 0, overflow: "hidden", borderStyle: budget.border ? 'round' : undefined, borderColor: theme.border, paddingX: budget.border ? 1 : 0, children: _jsx(Box, { ref: inputRef, width: "100%", flexDirection: "column", minWidth: 0, children: input({ width: inputWidth, inputRows: budget.input, suggestionRows: budget.suggestions, onRowsChange }) }) }), _jsx(Panel, { rows: budget.status, children: sections.status })] });
42
+ // Percentage width resolves against the Yoga root at layout time, so the
43
+ // frame follows the live terminal width even in Ink v8's synchronous
44
+ // resize render of the stale React tree, where an explicit numeric width
45
+ // stays stale-wide and soft-wraps (see tests/cli/chat/resizeBoundary.test.tsx).
46
+ // maxWidth keeps the columns prop authoritative for standalone embeds.
47
+ return _jsxs(Box, { flexDirection: "column", width: "100%", maxWidth: Math.max(1, columns), flexShrink: 0, children: [_jsx(Panel, { rows: budget.live, children: typeof sections.live === 'function' ? sections.live(budget.live) : sections.live }), _jsx(Panel, { rows: budget.debug, children: sections.debug }), _jsx(Panel, { rows: budget.queue, children: sections.queue }), _jsx(Panel, { rows: budget.tasks, children: sections.tasks }), _jsx(Panel, { rows: budget.activity, children: sections.activity }), _jsx(Box, { flexDirection: "column", height: budget.input + budget.suggestions + budget.border, flexShrink: 0, overflow: "hidden", borderStyle: budget.border ? 'round' : undefined, borderColor: theme.border, paddingX: budget.border ? 1 : 0, children: _jsx(Box, { ref: inputRef, width: "100%", flexDirection: "column", minWidth: 0, children: input({ width: inputWidth, inputRows: budget.input, suggestionRows: budget.suggestions, onRowsChange }) }) }), _jsx(Panel, { rows: budget.status, children: sections.status })] });
43
48
  }
@@ -0,0 +1,20 @@
1
+ /** Minimal TTY stdout shape for the resize guard (tests pass a fake stream). */
2
+ export interface ResizeGuardStream {
3
+ isTTY?: boolean;
4
+ columns?: number;
5
+ rows?: number;
6
+ on(event: 'resize', listener: () => void): unknown;
7
+ off(event: 'resize', listener: () => void): unknown;
8
+ write(chunk: string): unknown;
9
+ }
10
+ /**
11
+ * Clear the viewport on width changes before Ink's resize repaint. Pair this
12
+ * with a width-keyed <Static> in ChatScreen: clearing alone loses the visible
13
+ * transcript, whereas remounting Static re-renders the history and Markdown
14
+ * at the new width. The dynamic input stays mounted to preserve its draft.
15
+ *
16
+ * Register before render() so this listener precedes Ink's resize handler.
17
+ * This does not erase terminal scrollback; replay can leave earlier copies
18
+ * of the transcript there.
19
+ */
20
+ export declare function installViewportResizeGuard(stream?: ResizeGuardStream): () => void;
@@ -0,0 +1,25 @@
1
+ const HOME_AND_ERASE_DOWN = '\u001B[H\u001B[J';
2
+ /**
3
+ * Clear the viewport on width changes before Ink's resize repaint. Pair this
4
+ * with a width-keyed <Static> in ChatScreen: clearing alone loses the visible
5
+ * transcript, whereas remounting Static re-renders the history and Markdown
6
+ * at the new width. The dynamic input stays mounted to preserve its draft.
7
+ *
8
+ * Register before render() so this listener precedes Ink's resize handler.
9
+ * This does not erase terminal scrollback; replay can leave earlier copies
10
+ * of the transcript there.
11
+ */
12
+ export function installViewportResizeGuard(stream = process.stdout) {
13
+ if (!stream.isTTY)
14
+ return () => undefined;
15
+ let previousColumns = stream.columns;
16
+ const onResize = () => {
17
+ const { columns } = stream;
18
+ if (typeof columns === 'number' && columns !== previousColumns) {
19
+ stream.write(HOME_AND_ERASE_DOWN);
20
+ }
21
+ previousColumns = columns;
22
+ };
23
+ stream.on('resize', onResize);
24
+ return () => { stream.off('resize', onResize); };
25
+ }
@@ -22,6 +22,7 @@ import { formatSession, listSessions } from '../../core/session/sessionStore.js'
22
22
  import { MAX_VISIBLE_TASKS, TaskBar } from '../chat/TaskBar.js';
23
23
  import { DynamicFrame } from '../chat/DynamicFrame.js';
24
24
  import { createChatShutdown, runTerminalSession } from '../chat/shutdown.js';
25
+ import { installViewportResizeGuard } from '../chat/resizeGuard.js';
25
26
  import { createQuarantinableCallbacks } from './streaming/attemptLifecycle.js';
26
27
  import { AssistantMarkdownChunkView, MessageView } from '../chat/messages.js';
27
28
  import { partitionDisplayMessages } from '../chat/transcriptPartition.js';
@@ -698,7 +699,7 @@ function ChatScreen({ debug = false, version, build, continueSession = false, re
698
699
  ? _jsx(Header, { subtitle: item.subtitle, version: version }, item.key)
699
700
  : item.kind === 'assistant-markdown'
700
701
  ? _jsx(AssistantMarkdownChunkView, { message: item.message, content: item.content, width: contentWidth, first: item.first, final: item.final }, item.key)
701
- : _jsx(MessageView, { message: item.message, width: contentWidth }, item.key) }), _jsx(DynamicFrame, { rows: terminalRows, columns: contentWidth, sections: {
702
+ : _jsx(MessageView, { message: item.message, width: contentWidth }, item.key) }, width), _jsx(DynamicFrame, { rows: terminalRows, columns: contentWidth, sections: {
702
703
  live: streamingItems.length > 0 ? rows => {
703
704
  // Allocate the sum, not a positive minimum for every pending item.
704
705
  const displayed = streamingItems.slice(0, Math.floor(rows / 2));
@@ -753,6 +754,9 @@ export async function chatCommand(options = {}) {
753
754
  // a getter so the metric never enters React state (no extra re-renders).
754
755
  let lastRenderMetricsMs;
755
756
  renderMetricsReader = () => lastRenderMetricsMs;
757
+ // Clear on width changes ahead of Ink's repaint; ChatScreen then replays
758
+ // its width-keyed Static transcript instead of leaving a blank viewport.
759
+ const removeResizeGuard = installViewportResizeGuard();
756
760
  await runTerminalSession({
757
761
  adopt: () => {
758
762
  if (!process.stdout.isTTY)
@@ -773,6 +777,9 @@ export async function chatCommand(options = {}) {
773
777
  } } : {}),
774
778
  }),
775
779
  shutdown: () => shutdown?.(),
776
- restore: resetTerminalColors,
780
+ restore: () => {
781
+ removeResizeGuard();
782
+ resetTerminalColors();
783
+ },
777
784
  });
778
785
  }
@@ -19,10 +19,13 @@ export interface HazeProviderSettings {
19
19
  kind?: 'openai-compatible' | 'chatgpt-codex';
20
20
  /**
21
21
  * Explicit endpoint capabilities. Never inferred: images are only sent to
22
- * providers the user marked image-capable (F03).
22
+ * providers the user marked image-capable (F03); `reasoningEffort: false`
23
+ * stops the reasoning-effort parameter from being sent at all (for
24
+ * endpoints whose own reasoning switch coerces unknown levels).
23
25
  */
24
26
  capabilities?: {
25
27
  images?: boolean;
28
+ reasoningEffort?: boolean;
26
29
  };
27
30
  /**
28
31
  * Optional per-model capacity metadata used for request budgeting (RH-005).
@@ -15,6 +15,7 @@ export const reasoningLevelSchema = z.enum(storedReasoningValues);
15
15
  export const SETTINGS_FILE = path.join(HAZE_DIR, 'settings.json');
16
16
  const providerCapabilitiesSchema = z.object({
17
17
  images: z.boolean().optional(),
18
+ reasoningEffort: z.boolean().optional(),
18
19
  }).passthrough();
19
20
  const providerSchema = z.object({
20
21
  name: z.string(),
@@ -13,9 +13,12 @@ export interface ProviderCapabilities {
13
13
  supportsServerCompaction: boolean;
14
14
  supportsTextVerbosity: boolean;
15
15
  /**
16
- * Protocol accepts a reasoning-effort request. The AI SDK maps its top-level
17
- * `reasoning` parameter per provider; endpoints without native support ignore
18
- * the field. Kept as a capability so a future provider kind can opt out.
16
+ * Protocol accepts a reasoning-effort request. Explicit-first: a provider
17
+ * `capabilities.reasoningEffort` override in settings wins. The default is
18
+ * the SDK pass-through (`true`) for hosted OpenAI-compatible endpoints and
19
+ * `false` for loopback/local inference servers, whose own reasoning switches
20
+ * (e.g. LM Studio's `on`/`off`) coerce unsupported levels — even `none` — to
21
+ * `on`, silently inverting the request. `false` omits the parameter entirely.
19
22
  */
20
23
  supportsReasoningEffort: boolean;
21
24
  }
@@ -24,9 +24,16 @@ function openRouterHeaders(providerName, baseURL) {
24
24
  'X-Title': HAZE_TITLE,
25
25
  };
26
26
  }
27
- function capabilities(providerName, baseURL, providerKind) {
27
+ function capabilities(providerName, baseURL, providerKind, explicit) {
28
28
  const directOpenAI = providerKind !== 'chatgpt-codex' && (providerName === 'openai' || /api\.openai\.com/i.test(baseURL));
29
29
  const openRouter = isOpenRouter(providerName, baseURL);
30
+ // Reasoning-effort support is explicit-first: a user override wins either
31
+ // way. Otherwise loopback/local inference servers (LM Studio, Ollama,
32
+ // llama.cpp) default to `false`: their own reasoning switches coerce
33
+ // unsupported levels — even `none` — to `on` (LM Studio), inverting the
34
+ // request, and subagent workers rely on `none` meaning off. Hosted
35
+ // OpenAI-compatible endpoints keep the SDK pass-through (`true`).
36
+ const supportsReasoningEffort = explicit?.reasoningEffort ?? !isLocalProviderUrl(baseURL);
30
37
  return {
31
38
  reportsCacheUsage: directOpenAI || openRouter,
32
39
  supportsPromptCacheKey: directOpenAI,
@@ -34,11 +41,25 @@ function capabilities(providerName, baseURL, providerKind) {
34
41
  supportsStickySessionId: openRouter,
35
42
  supportsServerCompaction: false,
36
43
  supportsTextVerbosity: directOpenAI,
37
- // Pass-through marker: the SDK maps the top-level `reasoning` parameter
38
- // per provider and endpoints without native support ignore the field.
39
- supportsReasoningEffort: true,
44
+ supportsReasoningEffort,
40
45
  };
41
46
  }
47
+ /**
48
+ * Match the pinned OpenAI SDK's GPT-6+ effort restrictions before transport.
49
+ * Unsupported choices are omitted, not promoted to a different effort; the
50
+ * policy retains the request and explains why the provider default will apply.
51
+ */
52
+ function reasoningPolicyForModel(modelName, requested, caps) {
53
+ const policy = resolveReasoningPolicy({ requested, capabilities: caps });
54
+ if (policy.effective === 'disabled')
55
+ return policy;
56
+ const version = /^gpt-(\d+)(?:\.\d+)?(?:-.+)?$/.exec(modelName);
57
+ const supportsNone = modelName === 'gpt-6-sol' || modelName === 'gpt-6-luna';
58
+ if (version && Number(version[1]) >= 6 && (requested === 'minimal' || (requested === 'none' && !supportsNone))) {
59
+ return { requested, effective: 'disabled', reason: `${modelName} does not support reasoning effort ${requested}; parameter omitted (provider default). Choose low, medium, high, xhigh, or unset.` };
60
+ }
61
+ return policy;
62
+ }
42
63
  /** True for loopback/local inference servers, whose effective window is server-configured (often far below the model's). */
43
64
  export function isLocalProviderUrl(url) {
44
65
  try {
@@ -58,7 +79,7 @@ function runtimeForSelection(settings, selection, cwd, reasoningOverride, sessio
58
79
  const name = selection.model;
59
80
  const cacheSeed = cwd ?? process.cwd();
60
81
  const cacheKey = crypto.createHash('sha256').update(`${cacheSeed}\0${name}`).digest('hex').slice(0, 32);
61
- const caps = capabilities(selection.provider.name, baseURL, providerKind);
82
+ const caps = capabilities(selection.provider.name, baseURL, providerKind, selection.provider.capabilities);
62
83
  const selector = modelSelector(selection.provider, name);
63
84
  // The full precedence chain lives in one pure resolver
64
85
  // (`resolveAttemptReasoning`): run-scoped override → session per-model map →
@@ -73,7 +94,7 @@ function runtimeForSelection(settings, selection, cwd, reasoningOverride, sessio
73
94
  globalSetting: isStoredReasoning(settings.reasoning) ? settings.reasoning : undefined,
74
95
  });
75
96
  const requestedReasoning = effectiveRequestedReasoning(storedReasoning);
76
- const reasoningPolicy = resolveReasoningPolicy({ requested: requestedReasoning, capabilities: caps });
97
+ const reasoningPolicy = reasoningPolicyForModel(name, requestedReasoning, caps);
77
98
  const openai = providerKind === 'chatgpt-codex'
78
99
  ? createOpenAI({ apiKey: OAUTH_SDK_SENTINEL, baseURL, fetch: createChatGptCodexFetch(selection.provider.name) })
79
100
  : createOpenAI({ apiKey, baseURL, headers: openRouterHeaders(selection.provider.name, baseURL) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@denizokcu/haze",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "A minimal LLM harness for your terminal.",
5
5
  "type": "module",
6
6
  "license": "MIT",