@rowan-agent/agent 0.9.5 → 0.9.6

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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _rowan_agent_models from '@rowan-agent/models';
2
2
  import { LlmContentPart, ContentBlock, ModelRef, ModelConfig, StreamFn } from '@rowan-agent/models';
3
- export { ModelConfig, ModelRef, StreamFn } from '@rowan-agent/models';
3
+ export { ModelConfig, ModelRef, StreamFn, ThinkingLevel } from '@rowan-agent/models';
4
4
  import Type from 'typebox';
5
5
 
6
6
  type AgentMessage = {
package/dist/index.js CHANGED
@@ -4010,11 +4010,12 @@ function applyProviderRegistration(config) {
4010
4010
  baseUrl: config.baseUrl,
4011
4011
  apiKey: config.apiKey,
4012
4012
  reasoning: modelConfig.reasoning,
4013
+ ...modelConfig.thinkingLevel !== void 0 ? { thinkingLevel: modelConfig.thinkingLevel } : {},
4013
4014
  input: modelConfig.input,
4014
4015
  cost: modelConfig.cost,
4015
4016
  contextWindow: modelConfig.contextWindow,
4016
4017
  maxTokens: modelConfig.maxTokens,
4017
- ...config.headers ? { headers: config.headers } : {},
4018
+ ...config.headers || modelConfig.headers ? { headers: { ...config.headers, ...modelConfig.headers } } : {},
4018
4019
  ...config.timeoutMs !== void 0 ? { timeoutMs: config.timeoutMs } : {},
4019
4020
  ...config.maxRetries !== void 0 ? { maxRetries: config.maxRetries } : {},
4020
4021
  ...config.retryDelayMs !== void 0 ? { retryDelayMs: config.retryDelayMs } : {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rowan-agent/agent",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  "build": "tsup && bun scripts/check-public-interface.ts"
24
24
  },
25
25
  "dependencies": {
26
- "@rowan-agent/models": "0.6.4",
26
+ "@rowan-agent/models": "0.6.5",
27
27
  "jiti": "2.7.0",
28
28
  "typebox": "^1.0.0",
29
29
  "yaml": "^2.7.0"