@zenning/ai 6.0.12 → 6.0.13

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
2
2
 
3
+ ## 6.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Add support for OpenAI compaction message part type in system messages for managing context window limits
8
+ - Updated dependencies
9
+ - @zenning/provider@3.0.3
10
+ - @zenning/provider-utils@4.0.5
11
+ - @zenning/gateway@3.0.10
12
+
3
13
  ## 6.0.12
4
14
 
5
15
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1001,7 +1001,7 @@ var import_provider_utils3 = require("@zenning/provider-utils");
1001
1001
  var import_provider_utils4 = require("@zenning/provider-utils");
1002
1002
 
1003
1003
  // src/version.ts
1004
- var VERSION = true ? "6.0.12" : "0.0.0-test";
1004
+ var VERSION = true ? "6.0.13" : "0.0.0-test";
1005
1005
 
1006
1006
  // src/util/download/download.ts
1007
1007
  var download = async ({ url }) => {
@@ -1657,6 +1657,11 @@ var reasoningPartSchema = import_v44.z.object({
1657
1657
  text: import_v44.z.string(),
1658
1658
  providerOptions: providerMetadataSchema.optional()
1659
1659
  });
1660
+ var compactionPartSchema = import_v44.z.object({
1661
+ type: import_v44.z.literal("compaction"),
1662
+ encrypted_content: import_v44.z.string(),
1663
+ providerOptions: providerMetadataSchema.optional()
1664
+ });
1660
1665
  var toolCallPartSchema = import_v44.z.object({
1661
1666
  type: import_v44.z.literal("tool-call"),
1662
1667
  toolCallId: import_v44.z.string(),
@@ -1795,7 +1800,8 @@ var assistantModelMessageSchema = import_v45.z.object({
1795
1800
  reasoningPartSchema,
1796
1801
  toolCallPartSchema,
1797
1802
  toolResultPartSchema,
1798
- toolApprovalRequestSchema
1803
+ toolApprovalRequestSchema,
1804
+ compactionPartSchema
1799
1805
  ])
1800
1806
  )
1801
1807
  ]),