@ai-sdk/harness-claude-code 1.0.158 → 1.0.159

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,15 @@
1
1
  # @ai-sdk/harness-claude-code
2
2
 
3
+ ## 1.0.159
4
+
5
+ ### Patch Changes
6
+
7
+ - dc1d7a6: support inline images in user messages
8
+ - Updated dependencies [60cc252]
9
+ - @ai-sdk/provider@4.0.30
10
+ - @ai-sdk/harness@1.0.155
11
+ - @ai-sdk/provider-utils@5.0.63
12
+
3
13
  ## 1.0.158
4
14
 
5
15
  ### Patch Changes
@@ -1902,10 +1902,17 @@ function createQueryInput({ initialUserMessage, userMessages, abortSignal }) {
1902
1902
  type: "user",
1903
1903
  message: {
1904
1904
  role: "user",
1905
- content: [{
1905
+ content: typeof options.content === "string" ? [{
1906
1906
  type: "text",
1907
- text: options.text
1908
- }]
1907
+ text: options.content
1908
+ }] : options.content.map((part) => part.type === "text" ? part : {
1909
+ type: "image",
1910
+ source: {
1911
+ type: "base64",
1912
+ media_type: part.mediaType,
1913
+ data: part.data
1914
+ }
1915
+ })
1909
1916
  },
1910
1917
  parent_tool_use_id: null,
1911
1918
  uuid: options.messageId,
@@ -1950,7 +1957,7 @@ function createQueryInput({ initialUserMessage, userMessages, abortSignal }) {
1950
1957
  sentInitial = true;
1951
1958
  return {
1952
1959
  value: toUserMessage({
1953
- text: initialUserMessage,
1960
+ content: initialUserMessage,
1954
1961
  messageId: initialMessageId
1955
1962
  }),
1956
1963
  done: false
@@ -1965,7 +1972,7 @@ function createQueryInput({ initialUserMessage, userMessages, abortSignal }) {
1965
1972
  sentMessageIds.add(nextMessage.value.messageId);
1966
1973
  return {
1967
1974
  value: toUserMessage({
1968
- text: nextMessage.value.text,
1975
+ content: nextMessage.value.text,
1969
1976
  messageId: nextMessage.value.messageId,
1970
1977
  priority: "next"
1971
1978
  }),