@executor-js/sdk 1.5.14 → 1.5.15

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.
@@ -3018,6 +3018,21 @@ var ToolHttpMetaSchema = Schema.Struct({
3018
3018
  status: Schema.Number,
3019
3019
  headers: Schema.Record(Schema.String, Schema.String)
3020
3020
  });
3021
+ var ToolFileSchema = Schema.TaggedStruct("ToolFile", {
3022
+ name: Schema.optional(Schema.String),
3023
+ mimeType: Schema.String,
3024
+ encoding: Schema.Literal("base64"),
3025
+ data: Schema.String.annotate({
3026
+ description: "Base64-encoded file bytes.",
3027
+ contentEncoding: "base64"
3028
+ }),
3029
+ byteLength: Schema.Int.annotate({
3030
+ description: "Raw file size in bytes before base64 encoding."
3031
+ })
3032
+ });
3033
+ var ToolFileJsonSchema = Schema.toJsonSchemaDocument(ToolFileSchema).schema;
3034
+ var matchesToolFileSchema = Schema.is(ToolFileSchema);
3035
+ var isToolFile = (value) => matchesToolFileSchema(value);
3021
3036
  var ToolResult = {
3022
3037
  ok: (data, meta) => ({
3023
3038
  ok: true,
@@ -6645,6 +6660,9 @@ export {
6645
6660
  definePluginStorageCollection,
6646
6661
  pluginStorageId,
6647
6662
  buildToolTypeScriptPreview,
6663
+ ToolFileSchema,
6664
+ ToolFileJsonSchema,
6665
+ isToolFile,
6648
6666
  ToolResult,
6649
6667
  isToolResult,
6650
6668
  annotateToolResultOutcome,
@@ -6654,4 +6672,4 @@ export {
6654
6672
  collectTables,
6655
6673
  createExecutor
6656
6674
  };
6657
- //# sourceMappingURL=chunk-WKKKHDH2.js.map
6675
+ //# sourceMappingURL=chunk-QEKKFEJL.js.map