@framers/agentos 0.15.68 → 0.15.70

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.
@@ -14,14 +14,18 @@
14
14
  * budget AND the model supports it.
15
15
  *
16
16
  * Turning thinking off (`thinking: false`): leaving the field out keeps the
17
- * model's default, which is thinking ON for Opus 5, Sonnet 5 and Sonnet 5.5,
17
+ * model's default, which is thinking ON for Opus 5, Sonnet 5, Sonnet 5.5 and Haiku 5.5,
18
18
  * and always on for Opus 5.5, Fable and Mythos. The models that can turn it
19
19
  * off each take their own shape, and some only at a capped effort;
20
20
  * {@link resolveThinkingOff} maps a model id to it.
21
21
  *
22
22
  * This is the thinking-capability sibling of `modelSupportsTemperature`
23
23
  * in AnthropicProvider.ts — the same reasoning-default family that
24
- * REJECTS `temperature` is the family that ACCEPTS `thinking`. Kept in
24
+ * REJECTS `temperature` is the family that ACCEPTS `thinking`, with one
25
+ * exception: Claude Haiku 5.5 rejects `temperature` but is not in
26
+ * {@link modelSupportsThinking}. It thinks adaptively by default, so a
27
+ * thinking budget needs no block there, and it keeps a forced `tool_choice`
28
+ * that a thinking-on block would clamp to `auto`. Kept in
25
29
  * its own pure module (mirroring `model-output-limits.ts`) so the unit
26
30
  * test imports no provider/SDK code.
27
31
  */
@@ -35,8 +39,8 @@
35
39
  * or rejects it. Opus 5.5, Sonnet 5.5 and Fable 5.1 match the `opus-5`,
36
40
  * `sonnet-5` and `fable-5` alternatives on purpose, because `\b` matches at
37
41
  * the hyphen before their trailing version digit. Future reasoning-first
38
- * siblings get added to the regex as Anthropic releases them, in lockstep
39
- * with `modelSupportsTemperature`.
42
+ * siblings get added to the regex as Anthropic releases them, alongside
43
+ * `modelSupportsTemperature` (which also lists Claude Haiku 5.5).
40
44
  *
41
45
  * @param modelId Anthropic-side model id.
42
46
  * @returns `true` when Anthropic accepts a `thinking` block for this model.
@@ -77,6 +81,7 @@ export function resolveThinkingPayload(modelId, thinking, requestedMaxTokens) {
77
81
  * | Sonnet 5.5 | `{ type: 'between_tools' }` at effort high or below | probed 2026-09-30: `disabled` returns 400, `between_tools` 200 |
78
82
  * | Opus 5 | `{ type: 'disabled' }` at effort high or below | probed 2026-09-30: `disabled` 200, `between_tools` 400 |
79
83
  * | Sonnet 5 | `{ type: 'disabled' }` | Anthropic's model docs |
84
+ * | Haiku 5.5 | `{ type: 'disabled' }` at effort high or below | Anthropic's effort docs: `disabled` at `high` or below, 400 at `xhigh` or `max` |
80
85
  * | Opus 5.5, Fable 5.x, Mythos 5.x | none: always on | probed 2026-09-30 on Opus 5.5 and Fable 5.1: both shapes return 400 |
81
86
  * | everything else | omit the field | thinks only when asked |
82
87
  *
@@ -99,6 +104,9 @@ export function resolveThinkingOff(modelId) {
99
104
  }
100
105
  if (/^claude-sonnet-5\b/i.test(modelId))
101
106
  return { kind: 'send', thinking: { type: 'disabled' } };
107
+ if (/^claude-haiku-5-5\b/i.test(modelId)) {
108
+ return { kind: 'send', thinking: { type: 'disabled' }, maxEffort: 'high' };
109
+ }
102
110
  return { kind: 'omit' };
103
111
  }
104
112
  //# sourceMappingURL=model-thinking.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-thinking.js","sourceRoot":"","sources":["../../../../src/core/llm/providers/model-thinking.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACnD,OAAO,mDAAmD,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC3E,CAAC;AAQD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,sBAAsB,CACpC,OAAe,EACf,QAAsD,EACtD,kBAAsC;IAEtC,IAAI,CAAC,QAAQ,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IAC9D,OAAO,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,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.15.68",
3
+ "version": "0.15.70",
4
4
  "description": "AgentOS: open-source TypeScript framework for autonomous AI agents. Unified graph orchestration, cognitive memory, runtime tool forging, multi-tier guardrails, voice pipeline, and 11 LLM providers.",
5
5
  "homepage": "https://agentos.sh",
6
6
  "repository": {