@ai-sdk/harness-opencode 1.0.103 → 1.0.105

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,26 @@
1
1
  # @ai-sdk/harness-opencode
2
2
 
3
+ ## 1.0.105
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9e1d1b2]
8
+ - Updated dependencies [a495511]
9
+ - @ai-sdk/provider-utils@5.0.37
10
+ - @ai-sdk/harness@1.0.103
11
+
12
+ ## 1.0.104
13
+
14
+ ### Patch Changes
15
+
16
+ - eeed977: feat(harness): allow passing arbitrary headers with inference requests via `headers` property in `HarnessAgentSettings`
17
+ - a39c8bf: chore(harness): clarify `writeSkills` helper intent to require materializing skills in HOME directory
18
+ - Updated dependencies [fe86f8f]
19
+ - Updated dependencies [255cccf]
20
+ - Updated dependencies [eeed977]
21
+ - Updated dependencies [a39c8bf]
22
+ - @ai-sdk/harness@1.0.102
23
+
3
24
  ## 1.0.103
4
25
 
5
26
  ### Patch Changes
@@ -1955,7 +1955,12 @@ function buildProviderConfig(start) {
1955
1955
  options: {
1956
1956
  apiKey: procEnv2.AI_GATEWAY_API_KEY,
1957
1957
  baseURL: toOpenCodeGatewayBaseUrl(procEnv2.AI_GATEWAY_BASE_URL),
1958
- ...HARNESS_CLIENT_APP ? { headers: { "x-client-app": HARNESS_CLIENT_APP } } : {}
1958
+ ...HARNESS_CLIENT_APP ? {
1959
+ headers: {
1960
+ ...start.headers,
1961
+ "x-client-app": HARNESS_CLIENT_APP
1962
+ }
1963
+ } : start.headers ? { headers: start.headers } : {}
1959
1964
  },
1960
1965
  ...modelID ? {
1961
1966
  models: {
@@ -1972,6 +1977,7 @@ function buildProviderConfig(start) {
1972
1977
  options: {
1973
1978
  ...procEnv2.OPENAI_API_KEY ? { apiKey: procEnv2.OPENAI_API_KEY } : {},
1974
1979
  ...procEnv2.OPENAI_BASE_URL ? { baseURL: procEnv2.OPENAI_BASE_URL } : {},
1980
+ ...start.headers ? { headers: start.headers } : {},
1975
1981
  ...parseOpenAIQueryParams()
1976
1982
  },
1977
1983
  ...modelID ? {
@@ -1988,7 +1994,8 @@ function buildProviderConfig(start) {
1988
1994
  options: {
1989
1995
  ...procEnv2.ANTHROPIC_API_KEY ? { apiKey: procEnv2.ANTHROPIC_API_KEY } : {},
1990
1996
  ...procEnv2.ANTHROPIC_AUTH_TOKEN ? { authToken: procEnv2.ANTHROPIC_AUTH_TOKEN } : {},
1991
- ...procEnv2.ANTHROPIC_BASE_URL ? { baseURL: procEnv2.ANTHROPIC_BASE_URL } : {}
1997
+ ...procEnv2.ANTHROPIC_BASE_URL ? { baseURL: procEnv2.ANTHROPIC_BASE_URL } : {},
1998
+ ...start.headers ? { headers: start.headers } : {}
1992
1999
  }
1993
2000
  }
1994
2001
  };
@@ -2001,6 +2008,7 @@ function buildProviderConfig(start) {
2001
2008
  ...procEnv2.OPENAI_BASE_URL ? { baseURL: procEnv2.OPENAI_BASE_URL } : {},
2002
2009
  ...procEnv2.OPENAI_ORGANIZATION ? { organization: procEnv2.OPENAI_ORGANIZATION } : {},
2003
2010
  ...procEnv2.OPENAI_PROJECT ? { project: procEnv2.OPENAI_PROJECT } : {},
2011
+ ...start.headers ? { headers: start.headers } : {},
2004
2012
  ...parseOpenAIQueryParams()
2005
2013
  }
2006
2014
  }