@uipath/case-tool 1.204.0-preview.248 → 1.204.0-preview.250

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.
Files changed (25) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +16 -14
  2. package/dist/{case-debug-studio-web-service-aamz8bpe.js → case-debug-studio-web-service-3j8j181j.js} +2 -2
  3. package/dist/{case-validate-service-1hheb7bd.js → case-validate-service-53jmg1tg.js} +1 -1
  4. package/dist/{connector-enrichment-service-4271xs04.js → connector-enrichment-service-79j2606k.js} +7 -7
  5. package/dist/{connector-lookup-service-6tbybcmr.js → connector-lookup-service-ttzmz2bj.js} +2 -2
  6. package/dist/{connector-task-spec-h1xnm3kf.js → connector-task-spec-kr0frgqv.js} +7 -7
  7. package/dist/{debug-service-v0wttthm.js → debug-service-ch3v6jmm.js} +4 -2
  8. package/dist/{index-k5tbd184.js → index-ng2f77my.js} +3784 -1503
  9. package/dist/{index-gb5hqxk6.js → index-vh91wc36.js} +1 -1
  10. package/dist/index.js +3 -3
  11. package/dist/{known-types-03n1jcan.js → known-types-0h9kqwyy.js} +1 -1
  12. package/dist/{node-sync-service-taj5sy8t.js → node-sync-service-mtr53jfw.js} +3 -3
  13. package/dist/{packager-tool-axwtmv9k.js → packager-tool-10sy1dt8.js} +1 -1
  14. package/dist/{packager-tool-m9f7qxkk.js → packager-tool-167qap9m.js} +1 -1
  15. package/dist/{packager-tool-16q84571.js → packager-tool-25hng8h4.js} +460 -265
  16. package/dist/{packager-tool-5c448kcd.js → packager-tool-4242vh5k.js} +21 -21
  17. package/dist/{packager-tool-se70jv85.js → packager-tool-64rg5ekd.js} +17 -3
  18. package/dist/{packager-tool-xbfj37kq.js → packager-tool-7r02npdk.js} +17 -11
  19. package/dist/{packager-tool-tyj47qbv.js → packager-tool-9qg5pph2.js} +2 -2
  20. package/dist/{packager-tool-wh6es0tf.js → packager-tool-kv39whkr.js} +4 -4
  21. package/dist/{packager-tool-952g8crd.js → packager-tool-nrz3g2s8.js} +3 -3
  22. package/dist/{resourcesSyncService-27rwexfr.js → resourcesSyncService-cgy02d68.js} +5 -5
  23. package/dist/tool.js +3 -3
  24. package/dist/{trigger-enrichment-service-s4bxwngv.js → trigger-enrichment-service-9jd2q0a4.js} +7 -7
  25. package/package.json +2 -2
@@ -38132,6 +38132,11 @@ var serializeRoot = (root) => {
38132
38132
  currentFolder = remainingFolders.pop() ?? null;
38133
38133
  }
38134
38134
  };
38135
+ var toSerializedRoot = (root) => {
38136
+ const clone3 = structuredClone(root);
38137
+ serializeRoot(clone3);
38138
+ return clone3;
38139
+ };
38135
38140
  var MAX_PROPERTY_NAME_LENGTH = 511;
38136
38141
  var jsonSchemaTypeSchema = exports_external2.enum([
38137
38142
  "array",
@@ -38871,7 +38876,7 @@ var migrationV2 = createMigration({
38871
38876
  ]
38872
38877
  },
38873
38878
  migrate: (prev) => {
38874
- const agentFile = prev.files[0];
38879
+ const agentFile2 = prev.files[0];
38875
38880
  const toolsFolder = prev.folders.find((f) => f.name === "resources").folders.find((f) => f.name === "tools");
38876
38881
  return {
38877
38882
  folders: [
@@ -38912,7 +38917,7 @@ var migrationV2 = createMigration({
38912
38917
  {
38913
38918
  name: "agent.json",
38914
38919
  content: {
38915
- ...agentFile.content,
38920
+ ...agentFile2.content,
38916
38921
  version: "2.0.0",
38917
38922
  inputSchema: { type: "object", properties: {} },
38918
38923
  outputSchema: { type: "object", properties: {} }
@@ -38980,17 +38985,17 @@ var migrationV3 = createMigration({
38980
38985
  ]
38981
38986
  },
38982
38987
  migrate: (prev) => {
38983
- const agentFile = prev.files[0];
38988
+ const agentFile2 = prev.files[0];
38984
38989
  return {
38985
38990
  ...prev,
38986
38991
  files: [
38987
38992
  {
38988
38993
  name: "agent.json",
38989
38994
  content: {
38990
- ...agentFile.content,
38995
+ ...agentFile2.content,
38991
38996
  version: "3.0.0",
38992
38997
  settings: {
38993
- ...agentFile.content.settings,
38998
+ ...agentFile2.content.settings,
38994
38999
  engine: "basic-v1"
38995
39000
  }
38996
39001
  }
@@ -39092,7 +39097,7 @@ var migrationV4 = createMigration({
39092
39097
  ]
39093
39098
  },
39094
39099
  migrate: (prev) => {
39095
- const agentFile = prev.files[0];
39100
+ const agentFile2 = prev.files[0];
39096
39101
  const sourceResourcesFolder = prev.folders.find((folder) => folder.name === "resources");
39097
39102
  const migratedResourcesFolder = {
39098
39103
  name: "resources",
@@ -39121,7 +39126,7 @@ var migrationV4 = createMigration({
39121
39126
  {
39122
39127
  name: "agent.json",
39123
39128
  content: {
39124
- ...agentFile.content,
39129
+ ...agentFile2.content,
39125
39130
  version: "4.0.0"
39126
39131
  }
39127
39132
  }
@@ -39231,7 +39236,7 @@ var migrationV5 = createMigration({
39231
39236
  ]
39232
39237
  },
39233
39238
  migrate: (prev) => {
39234
- const agentFile = prev.files[0];
39239
+ const agentFile2 = prev.files[0];
39235
39240
  const sourceResourcesFolder = prev.folders.find((folder) => folder.name === "resources");
39236
39241
  const migratedResourcesFolder = {
39237
39242
  name: "resources",
@@ -39280,7 +39285,7 @@ var migrationV5 = createMigration({
39280
39285
  {
39281
39286
  name: "agent.json",
39282
39287
  content: {
39283
- ...agentFile.content,
39288
+ ...agentFile2.content,
39284
39289
  version: "5.0.0"
39285
39290
  }
39286
39291
  }
@@ -39401,7 +39406,7 @@ var migrationV6 = createMigration({
39401
39406
  ]
39402
39407
  },
39403
39408
  migrate: (prev) => {
39404
- const agentFile = prev.files[0];
39409
+ const agentFile2 = prev.files[0];
39405
39410
  const sourceResourcesFolder = prev.folders.find((folder) => folder.name === "resources");
39406
39411
  const migratedResourcesFolder = {
39407
39412
  name: "resources",
@@ -39451,7 +39456,7 @@ var migrationV6 = createMigration({
39451
39456
  {
39452
39457
  name: "agent.json",
39453
39458
  content: {
39454
- ...agentFile.content,
39459
+ ...agentFile2.content,
39455
39460
  version: "1.0.0",
39456
39461
  metadata: {
39457
39462
  storageVersion: "6.0.0"
@@ -39579,7 +39584,7 @@ var migrationV7 = createMigration({
39579
39584
  ]
39580
39585
  },
39581
39586
  migrate: (prev) => {
39582
- const agentFile = prev.files[0];
39587
+ const agentFile2 = prev.files[0];
39583
39588
  const sourceResourcesFolder = prev.folders.find((folder) => folder.name === "resources");
39584
39589
  const migratedResourcesFolder = {
39585
39590
  name: "resources",
@@ -39629,7 +39634,7 @@ var migrationV7 = createMigration({
39629
39634
  {
39630
39635
  name: "agent.json",
39631
39636
  content: {
39632
- ...agentFile.content,
39637
+ ...agentFile2.content,
39633
39638
  version: "1.0.0",
39634
39639
  metadata: {
39635
39640
  storageVersion: "7.0.0"
@@ -39937,7 +39942,7 @@ var migrationV8 = createMigration({
39937
39942
  ]
39938
39943
  },
39939
39944
  migrate: (prev) => {
39940
- const agentFile = prev.files[0];
39945
+ const agentFile2 = prev.files[0];
39941
39946
  const sourceResourcesFolder = prev.folders.find((folder) => folder.name === "resources");
39942
39947
  const migratedResourcesFolder = {
39943
39948
  name: "resources",
@@ -39964,7 +39969,7 @@ var migrationV8 = createMigration({
39964
39969
  {
39965
39970
  name: "agent.json",
39966
39971
  content: {
39967
- ...agentFile.content,
39972
+ ...agentFile2.content,
39968
39973
  version: "1.0.0",
39969
39974
  metadata: {
39970
39975
  storageVersion: "8.0.0"
@@ -40141,7 +40146,7 @@ var migrationV9 = createMigration({
40141
40146
  ]
40142
40147
  },
40143
40148
  migrate: (prev) => {
40144
- const agentFile = prev.files[0];
40149
+ const agentFile2 = prev.files[0];
40145
40150
  const sourceResourcesFolder = prev.folders.find((folder) => folder.name === "resources");
40146
40151
  const migratedResourcesFolder = {
40147
40152
  name: "resources",
@@ -40193,7 +40198,7 @@ var migrationV9 = createMigration({
40193
40198
  {
40194
40199
  name: "agent.json",
40195
40200
  content: {
40196
- ...agentFile.content,
40201
+ ...agentFile2.content,
40197
40202
  version: "1.0.0",
40198
40203
  metadata: {
40199
40204
  storageVersion: "9.0.0"
@@ -40438,7 +40443,7 @@ var migrationV10 = createMigration({
40438
40443
  ]
40439
40444
  },
40440
40445
  migrate: (prev) => {
40441
- const agentFile = prev.files[0];
40446
+ const agentFile2 = prev.files[0];
40442
40447
  const resourcesFolder8 = prev.folders.find((folder) => folder.name === "resources");
40443
40448
  const evalsFolder8 = prev.folders.find((folder) => folder.name.toString() === "evals");
40444
40449
  const evaluatorFiles = evalsFolder8?.folders.find((folder) => folder.name === "evaluators")?.files ?? [];
@@ -40524,7 +40529,7 @@ var migrationV10 = createMigration({
40524
40529
  {
40525
40530
  name: "agent.json",
40526
40531
  content: {
40527
- ...agentFile.content,
40532
+ ...agentFile2.content,
40528
40533
  version: "1.0.0",
40529
40534
  metadata: {
40530
40535
  storageVersion: "10.0.0"
@@ -40693,14 +40698,14 @@ var migrationV11 = createMigration({
40693
40698
  ]
40694
40699
  },
40695
40700
  migrate: (prev) => {
40696
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
40701
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
40697
40702
  return {
40698
40703
  folders: prev.folders,
40699
40704
  files: [
40700
40705
  {
40701
40706
  name: "agent.json",
40702
40707
  content: {
40703
- ...agentFile.content,
40708
+ ...agentFile2.content,
40704
40709
  version: "1.0.0",
40705
40710
  metadata: {
40706
40711
  storageVersion: "11.0.0"
@@ -40815,14 +40820,14 @@ var migrationV12 = createMigration({
40815
40820
  ]
40816
40821
  },
40817
40822
  migrate: (prev) => {
40818
- const agentFile = prev.files[0];
40823
+ const agentFile2 = prev.files[0];
40819
40824
  return {
40820
40825
  folders: prev.folders,
40821
40826
  files: [
40822
40827
  {
40823
40828
  name: "agent.json",
40824
40829
  content: {
40825
- ...agentFile.content,
40830
+ ...agentFile2.content,
40826
40831
  version: "1.0.0",
40827
40832
  metadata: {
40828
40833
  storageVersion: "12.0.0",
@@ -41021,17 +41026,17 @@ var migrationV13 = createMigration({
41021
41026
  ]
41022
41027
  },
41023
41028
  migrate: (prev) => {
41024
- const agentFile = prev.files[0];
41029
+ const agentFile2 = prev.files[0];
41025
41030
  return {
41026
41031
  folders: prev.folders,
41027
41032
  files: [
41028
41033
  {
41029
41034
  name: "agent.json",
41030
41035
  content: {
41031
- ...agentFile.content,
41036
+ ...agentFile2.content,
41032
41037
  version: "1.0.0",
41033
41038
  metadata: {
41034
- ...agentFile.content.metadata,
41039
+ ...agentFile2.content.metadata,
41035
41040
  storageVersion: "13.0.0"
41036
41041
  }
41037
41042
  }
@@ -41197,11 +41202,11 @@ var migrationV14 = createMigration({
41197
41202
  ]
41198
41203
  },
41199
41204
  migrate: (prev) => {
41200
- const agentFile = prev.files[0];
41205
+ const agentFile2 = prev.files[0];
41201
41206
  const migratedAgent = {
41202
- ...agentFile.content,
41207
+ ...agentFile2.content,
41203
41208
  metadata: {
41204
- ...agentFile.content.metadata,
41209
+ ...agentFile2.content.metadata,
41205
41210
  storageVersion: "14.0.0"
41206
41211
  }
41207
41212
  };
@@ -41634,7 +41639,7 @@ var migrationV16 = createMigration({
41634
41639
  ]
41635
41640
  },
41636
41641
  migrate: (prev) => {
41637
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
41642
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
41638
41643
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
41639
41644
  const resourcesFolder8 = prev.folders.find((folder) => folder.name === "resources");
41640
41645
  const migratedResourcesFolder = {
@@ -41718,12 +41723,12 @@ var migrationV16 = createMigration({
41718
41723
  files: [
41719
41724
  {
41720
41725
  name: "agent.json",
41721
- content: agentFile.content.type === "lowCode" ? {
41722
- ...agentFile.content,
41723
- metadata: { ...agentFile.content.metadata, storageVersion: "16.0.0" }
41726
+ content: agentFile2.content.type === "lowCode" ? {
41727
+ ...agentFile2.content,
41728
+ metadata: { ...agentFile2.content.metadata, storageVersion: "16.0.0" }
41724
41729
  } : {
41725
- ...agentFile.content,
41726
- metadata: { ...agentFile.content.metadata, storageVersion: "16.0.0" }
41730
+ ...agentFile2.content,
41731
+ metadata: { ...agentFile2.content.metadata, storageVersion: "16.0.0" }
41727
41732
  }
41728
41733
  }
41729
41734
  ]
@@ -41856,18 +41861,18 @@ var migrationV17 = createMigration({
41856
41861
  ]
41857
41862
  },
41858
41863
  migrate: (prev) => {
41859
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
41864
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
41860
41865
  return {
41861
41866
  folders: prev.folders,
41862
41867
  files: [
41863
41868
  {
41864
41869
  name: "agent.json",
41865
- content: agentFile.content.type === "lowCode" ? {
41866
- ...agentFile.content,
41867
- metadata: { ...agentFile.content.metadata, storageVersion: "17.0.0" }
41870
+ content: agentFile2.content.type === "lowCode" ? {
41871
+ ...agentFile2.content,
41872
+ metadata: { ...agentFile2.content.metadata, storageVersion: "17.0.0" }
41868
41873
  } : {
41869
- ...agentFile.content,
41870
- metadata: { ...agentFile.content.metadata, storageVersion: "17.0.0" }
41874
+ ...agentFile2.content,
41875
+ metadata: { ...agentFile2.content.metadata, storageVersion: "17.0.0" }
41871
41876
  }
41872
41877
  }
41873
41878
  ]
@@ -42025,18 +42030,18 @@ var migrationV18 = createMigration({
42025
42030
  ]
42026
42031
  },
42027
42032
  migrate: (prev) => {
42028
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
42033
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
42029
42034
  return {
42030
42035
  folders: prev.folders,
42031
42036
  files: [
42032
42037
  {
42033
42038
  name: "agent.json",
42034
- content: agentFile.content.type === "lowCode" ? {
42035
- ...agentFile.content,
42036
- metadata: { ...agentFile.content.metadata, storageVersion: currentVersion }
42039
+ content: agentFile2.content.type === "lowCode" ? {
42040
+ ...agentFile2.content,
42041
+ metadata: { ...agentFile2.content.metadata, storageVersion: currentVersion }
42037
42042
  } : {
42038
- ...agentFile.content,
42039
- metadata: { ...agentFile.content.metadata, storageVersion: currentVersion }
42043
+ ...agentFile2.content,
42044
+ metadata: { ...agentFile2.content.metadata, storageVersion: currentVersion }
42040
42045
  }
42041
42046
  }
42042
42047
  ]
@@ -42195,7 +42200,7 @@ var migrationV19 = createMigration({
42195
42200
  ]
42196
42201
  },
42197
42202
  migrate: (prev) => {
42198
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
42203
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
42199
42204
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
42200
42205
  const resourcesFolder8 = prev.folders.find((folder) => folder.name === "resources");
42201
42206
  const migratedResourcesFolder = {
@@ -42243,12 +42248,12 @@ var migrationV19 = createMigration({
42243
42248
  files: [
42244
42249
  {
42245
42250
  name: "agent.json",
42246
- content: agentFile.content.type === "lowCode" ? {
42247
- ...agentFile.content,
42248
- metadata: { ...agentFile.content.metadata, storageVersion: currentVersion2 }
42251
+ content: agentFile2.content.type === "lowCode" ? {
42252
+ ...agentFile2.content,
42253
+ metadata: { ...agentFile2.content.metadata, storageVersion: currentVersion2 }
42249
42254
  } : {
42250
- ...agentFile.content,
42251
- metadata: { ...agentFile.content.metadata, storageVersion: currentVersion2 }
42255
+ ...agentFile2.content,
42256
+ metadata: { ...agentFile2.content.metadata, storageVersion: currentVersion2 }
42252
42257
  }
42253
42258
  }
42254
42259
  ]
@@ -42399,7 +42404,7 @@ var migrationV20 = createMigration({
42399
42404
  ]
42400
42405
  },
42401
42406
  migrate: (prev) => {
42402
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
42407
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
42403
42408
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
42404
42409
  const resourcesFolder8 = prev.folders.find((folder) => folder.name === "resources");
42405
42410
  const migratedResourcesFolder = {
@@ -42445,12 +42450,12 @@ var migrationV20 = createMigration({
42445
42450
  files: [
42446
42451
  {
42447
42452
  name: "agent.json",
42448
- content: agentFile.content.type === "lowCode" ? {
42449
- ...agentFile.content,
42450
- metadata: { ...agentFile.content.metadata, storageVersion: currentVersion3 }
42453
+ content: agentFile2.content.type === "lowCode" ? {
42454
+ ...agentFile2.content,
42455
+ metadata: { ...agentFile2.content.metadata, storageVersion: currentVersion3 }
42451
42456
  } : {
42452
- ...agentFile.content,
42453
- metadata: { ...agentFile.content.metadata, storageVersion: currentVersion3 }
42457
+ ...agentFile2.content,
42458
+ metadata: { ...agentFile2.content.metadata, storageVersion: currentVersion3 }
42454
42459
  }
42455
42460
  }
42456
42461
  ]
@@ -42625,7 +42630,7 @@ var migrationV21 = createMigration({
42625
42630
  ]
42626
42631
  },
42627
42632
  migrate: (prev) => {
42628
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
42633
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
42629
42634
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
42630
42635
  const resourcesFolder8 = prev.folders.find((folder) => folder.name === "resources");
42631
42636
  const toolGuardrails = [];
@@ -42690,13 +42695,13 @@ var migrationV21 = createMigration({
42690
42695
  files: [
42691
42696
  {
42692
42697
  name: "agent.json",
42693
- content: agentFile.content.type === "lowCode" ? {
42694
- ...agentFile.content,
42695
- metadata: { ...agentFile.content.metadata, storageVersion: currentVersion4 },
42698
+ content: agentFile2.content.type === "lowCode" ? {
42699
+ ...agentFile2.content,
42700
+ metadata: { ...agentFile2.content.metadata, storageVersion: currentVersion4 },
42696
42701
  guardrails: toolGuardrails
42697
42702
  } : {
42698
- ...agentFile.content,
42699
- metadata: { ...agentFile.content.metadata, storageVersion: currentVersion4 }
42703
+ ...agentFile2.content,
42704
+ metadata: { ...agentFile2.content.metadata, storageVersion: currentVersion4 }
42700
42705
  }
42701
42706
  }
42702
42707
  ]
@@ -42892,7 +42897,7 @@ var migrationV22 = createMigration({
42892
42897
  ]
42893
42898
  },
42894
42899
  migrate: (prev) => {
42895
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
42900
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
42896
42901
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
42897
42902
  const resourcesFolder8 = prev.folders.find((folder) => folder.name === "resources");
42898
42903
  const migratedResourcesFolder = {
@@ -42961,12 +42966,12 @@ var migrationV22 = createMigration({
42961
42966
  files: [
42962
42967
  {
42963
42968
  name: "agent.json",
42964
- content: agentFile.content.type === "lowCode" ? {
42965
- ...agentFile.content,
42966
- metadata: { ...agentFile.content.metadata, storageVersion: version3 }
42969
+ content: agentFile2.content.type === "lowCode" ? {
42970
+ ...agentFile2.content,
42971
+ metadata: { ...agentFile2.content.metadata, storageVersion: version3 }
42967
42972
  } : {
42968
- ...agentFile.content,
42969
- metadata: { ...agentFile.content.metadata, storageVersion: version3 }
42973
+ ...agentFile2.content,
42974
+ metadata: { ...agentFile2.content.metadata, storageVersion: version3 }
42970
42975
  }
42971
42976
  }
42972
42977
  ]
@@ -43163,7 +43168,7 @@ var migrationV23 = createMigration({
43163
43168
  ]
43164
43169
  },
43165
43170
  migrate: (prev) => {
43166
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
43171
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
43167
43172
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
43168
43173
  const resourcesFolder8 = prev.folders.find((folder) => folder.name === "resources");
43169
43174
  const migratedResourcesFolder = {
@@ -43212,13 +43217,13 @@ var migrationV23 = createMigration({
43212
43217
  files: [
43213
43218
  {
43214
43219
  name: "agent.json",
43215
- content: agentFile.content.type === "lowCode" ? {
43216
- ...agentFile.content,
43217
- metadata: { ...agentFile.content.metadata, storageVersion: currentVersion5 },
43218
- guardrails: agentFile.content.guardrails?.map((g) => migrateGuardrail(g))
43220
+ content: agentFile2.content.type === "lowCode" ? {
43221
+ ...agentFile2.content,
43222
+ metadata: { ...agentFile2.content.metadata, storageVersion: currentVersion5 },
43223
+ guardrails: agentFile2.content.guardrails?.map((g) => migrateGuardrail(g))
43219
43224
  } : {
43220
- ...agentFile.content,
43221
- metadata: { ...agentFile.content.metadata, storageVersion: currentVersion5 }
43225
+ ...agentFile2.content,
43226
+ metadata: { ...agentFile2.content.metadata, storageVersion: currentVersion5 }
43222
43227
  }
43223
43228
  }
43224
43229
  ]
@@ -43285,22 +43290,22 @@ var migrationV24 = createMigration({
43285
43290
  ]
43286
43291
  },
43287
43292
  migrate: (prev) => {
43288
- const agentFile = prev.files[0];
43293
+ const agentFile2 = prev.files[0];
43289
43294
  return {
43290
43295
  ...prev,
43291
43296
  files: [
43292
43297
  {
43293
43298
  name: "agent.json",
43294
- content: agentFile.content.type === "lowCode" ? {
43295
- ...agentFile.content,
43296
- metadata: { ...agentFile.content.metadata, storageVersion: currentVersion6 },
43299
+ content: agentFile2.content.type === "lowCode" ? {
43300
+ ...agentFile2.content,
43301
+ metadata: { ...agentFile2.content.metadata, storageVersion: currentVersion6 },
43297
43302
  settings: {
43298
- ...agentFile.content.settings,
43303
+ ...agentFile2.content.settings,
43299
43304
  engine: "basic-v2"
43300
43305
  }
43301
43306
  } : {
43302
- ...agentFile.content,
43303
- metadata: { ...agentFile.content.metadata, storageVersion: currentVersion6 }
43307
+ ...agentFile2.content,
43308
+ metadata: { ...agentFile2.content.metadata, storageVersion: currentVersion6 }
43304
43309
  }
43305
43310
  }
43306
43311
  ]
@@ -43450,7 +43455,7 @@ var migrationV25 = createMigration({
43450
43455
  ]
43451
43456
  },
43452
43457
  migrate: (prev) => {
43453
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
43458
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
43454
43459
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
43455
43460
  const resourcesFolder8 = prev.folders.find((folder) => folder.name === "resources");
43456
43461
  const rootFolders = [evalsFolder8, resourcesFolder8];
@@ -43459,16 +43464,16 @@ var migrationV25 = createMigration({
43459
43464
  files: [
43460
43465
  {
43461
43466
  name: "agent.json",
43462
- content: agentFile.content.type === "lowCode" ? {
43463
- ...agentFile.content,
43464
- metadata: { ...agentFile.content.metadata, storageVersion: version22 },
43465
- messages: agentFile.content.messages.map((message) => ({
43467
+ content: agentFile2.content.type === "lowCode" ? {
43468
+ ...agentFile2.content,
43469
+ metadata: { ...agentFile2.content.metadata, storageVersion: version22 },
43470
+ messages: agentFile2.content.messages.map((message) => ({
43466
43471
  ...message,
43467
43472
  contentTokens: parseContentToTokens(message.content)
43468
43473
  }))
43469
43474
  } : {
43470
- ...agentFile.content,
43471
- metadata: { ...agentFile.content.metadata, storageVersion: version22 }
43475
+ ...agentFile2.content,
43476
+ metadata: { ...agentFile2.content.metadata, storageVersion: version22 }
43472
43477
  }
43473
43478
  }
43474
43479
  ]
@@ -43549,22 +43554,22 @@ var migrationV26 = createMigration({
43549
43554
  ]
43550
43555
  },
43551
43556
  migrate: (prev) => {
43552
- const agentFile = prev.files[0];
43557
+ const agentFile2 = prev.files[0];
43553
43558
  return {
43554
43559
  ...prev,
43555
43560
  files: [
43556
43561
  {
43557
43562
  name: "agent.json",
43558
- content: agentFile.content.type === "lowCode" ? {
43559
- ...agentFile.content,
43560
- metadata: { ...agentFile.content.metadata, storageVersion: currentVersion7 },
43563
+ content: agentFile2.content.type === "lowCode" ? {
43564
+ ...agentFile2.content,
43565
+ metadata: { ...agentFile2.content.metadata, storageVersion: currentVersion7 },
43561
43566
  settings: {
43562
- ...agentFile.content.settings,
43563
- engine: agentFile.content.settings.engine === "basic-v2" && agentFile.content.metadata.isConversational === true ? "conversational-v1" : agentFile.content.settings.engine
43567
+ ...agentFile2.content.settings,
43568
+ engine: agentFile2.content.settings.engine === "basic-v2" && agentFile2.content.metadata.isConversational === true ? "conversational-v1" : agentFile2.content.settings.engine
43564
43569
  }
43565
43570
  } : {
43566
- ...agentFile.content,
43567
- metadata: { ...agentFile.content.metadata, storageVersion: currentVersion7 }
43571
+ ...agentFile2.content,
43572
+ metadata: { ...agentFile2.content.metadata, storageVersion: currentVersion7 }
43568
43573
  }
43569
43574
  }
43570
43575
  ]
@@ -43667,7 +43672,7 @@ var migrationV27 = createMigration({
43667
43672
  ]
43668
43673
  },
43669
43674
  migrate: (prev) => {
43670
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
43675
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
43671
43676
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
43672
43677
  const resourcesFolder8 = prev.folders.find((folder) => folder.name === "resources");
43673
43678
  const migratedResourceFolders = resourcesFolder8.folders.map((resourceFolder) => {
@@ -43711,12 +43716,12 @@ var migrationV27 = createMigration({
43711
43716
  files: [
43712
43717
  {
43713
43718
  name: "agent.json",
43714
- content: agentFile.content.type === "lowCode" ? {
43715
- ...agentFile.content,
43716
- metadata: { ...agentFile.content.metadata, storageVersion: version32 }
43719
+ content: agentFile2.content.type === "lowCode" ? {
43720
+ ...agentFile2.content,
43721
+ metadata: { ...agentFile2.content.metadata, storageVersion: version32 }
43717
43722
  } : {
43718
- ...agentFile.content,
43719
- metadata: { ...agentFile.content.metadata, storageVersion: version32 }
43723
+ ...agentFile2.content,
43724
+ metadata: { ...agentFile2.content.metadata, storageVersion: version32 }
43720
43725
  }
43721
43726
  }
43722
43727
  ]
@@ -43782,19 +43787,19 @@ var migrationV28 = createMigration({
43782
43787
  ]
43783
43788
  },
43784
43789
  migrate: (prev) => {
43785
- const agentFile = prev.files[0];
43790
+ const agentFile2 = prev.files[0];
43786
43791
  return {
43787
43792
  ...prev,
43788
43793
  files: [
43789
43794
  {
43790
43795
  name: "agent.json",
43791
- content: agentFile.content.type === "lowCode" ? {
43792
- ...agentFile.content,
43793
- metadata: { ...agentFile.content.metadata, storageVersion: currentVersion8 },
43796
+ content: agentFile2.content.type === "lowCode" ? {
43797
+ ...agentFile2.content,
43798
+ metadata: { ...agentFile2.content.metadata, storageVersion: currentVersion8 },
43794
43799
  projectId: ""
43795
43800
  } : {
43796
- ...agentFile.content,
43797
- metadata: { ...agentFile.content.metadata, storageVersion: currentVersion8 },
43801
+ ...agentFile2.content,
43802
+ metadata: { ...agentFile2.content.metadata, storageVersion: currentVersion8 },
43798
43803
  projectId: ""
43799
43804
  }
43800
43805
  }
@@ -43920,7 +43925,7 @@ var migrationV29 = createMigration({
43920
43925
  ]
43921
43926
  },
43922
43927
  migrate: (prev) => {
43923
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
43928
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
43924
43929
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
43925
43930
  const resourcesFolder8 = prev.folders.find((folder) => folder.name === "resources");
43926
43931
  const featuresFolder = {
@@ -43938,12 +43943,12 @@ var migrationV29 = createMigration({
43938
43943
  files: [
43939
43944
  {
43940
43945
  name: "agent.json",
43941
- content: agentFile.content.type === "lowCode" ? {
43942
- ...agentFile.content,
43943
- metadata: { ...agentFile.content.metadata, storageVersion: version4 }
43946
+ content: agentFile2.content.type === "lowCode" ? {
43947
+ ...agentFile2.content,
43948
+ metadata: { ...agentFile2.content.metadata, storageVersion: version4 }
43944
43949
  } : {
43945
- ...agentFile.content,
43946
- metadata: { ...agentFile.content.metadata, storageVersion: version4 }
43950
+ ...agentFile2.content,
43951
+ metadata: { ...agentFile2.content.metadata, storageVersion: version4 }
43947
43952
  }
43948
43953
  }
43949
43954
  ]
@@ -44072,7 +44077,7 @@ var migrationV30 = createMigration({
44072
44077
  ]
44073
44078
  },
44074
44079
  migrate: (prev) => {
44075
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
44080
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
44076
44081
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
44077
44082
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
44078
44083
  const resourcesFolder8 = prev.folders.find((folder) => folder.name === "resources");
@@ -44112,12 +44117,12 @@ var migrationV30 = createMigration({
44112
44117
  files: [
44113
44118
  {
44114
44119
  name: "agent.json",
44115
- content: agentFile.content.type === "lowCode" ? {
44116
- ...agentFile.content,
44117
- metadata: { ...agentFile.content.metadata, storageVersion: version5 }
44120
+ content: agentFile2.content.type === "lowCode" ? {
44121
+ ...agentFile2.content,
44122
+ metadata: { ...agentFile2.content.metadata, storageVersion: version5 }
44118
44123
  } : {
44119
- ...agentFile.content,
44120
- metadata: { ...agentFile.content.metadata, storageVersion: version5 }
44124
+ ...agentFile2.content,
44125
+ metadata: { ...agentFile2.content.metadata, storageVersion: version5 }
44121
44126
  }
44122
44127
  }
44123
44128
  ]
@@ -44196,7 +44201,7 @@ var migrationV31 = createMigration({
44196
44201
  ]
44197
44202
  },
44198
44203
  migrate: (prev) => {
44199
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
44204
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
44200
44205
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
44201
44206
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
44202
44207
  const resourcesFolder8 = prev.folders.find((folder) => folder.name === "resources");
@@ -44210,13 +44215,13 @@ var migrationV31 = createMigration({
44210
44215
  files: [
44211
44216
  {
44212
44217
  name: "agent.json",
44213
- content: agentFile.content.type === "lowCode" ? {
44214
- ...agentFile.content,
44215
- metadata: { ...agentFile.content.metadata, storageVersion: version6 },
44216
- settings: agentFile.content.metadata.isConversational === true ? { ...agentFile.content.settings } : { ...agentFile.content.settings, maxIterations: 25 }
44218
+ content: agentFile2.content.type === "lowCode" ? {
44219
+ ...agentFile2.content,
44220
+ metadata: { ...agentFile2.content.metadata, storageVersion: version6 },
44221
+ settings: agentFile2.content.metadata.isConversational === true ? { ...agentFile2.content.settings } : { ...agentFile2.content.settings, maxIterations: 25 }
44217
44222
  } : {
44218
- ...agentFile.content,
44219
- metadata: { ...agentFile.content.metadata, storageVersion: version6 }
44223
+ ...agentFile2.content,
44224
+ metadata: { ...agentFile2.content.metadata, storageVersion: version6 }
44220
44225
  }
44221
44226
  }
44222
44227
  ]
@@ -44313,7 +44318,7 @@ var migrationV32 = createMigration({
44313
44318
  ]
44314
44319
  },
44315
44320
  migrate: (prev) => {
44316
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
44321
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
44317
44322
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
44318
44323
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
44319
44324
  const resourcesFolder8 = prev.folders.find((folder) => folder.name === "resources");
@@ -44327,12 +44332,12 @@ var migrationV32 = createMigration({
44327
44332
  files: [
44328
44333
  {
44329
44334
  name: "agent.json",
44330
- content: agentFile.content.type === "lowCode" ? {
44331
- ...agentFile.content,
44332
- metadata: { ...agentFile.content.metadata, storageVersion: version7 }
44335
+ content: agentFile2.content.type === "lowCode" ? {
44336
+ ...agentFile2.content,
44337
+ metadata: { ...agentFile2.content.metadata, storageVersion: version7 }
44333
44338
  } : {
44334
- ...agentFile.content,
44335
- metadata: { ...agentFile.content.metadata, storageVersion: version7 }
44339
+ ...agentFile2.content,
44340
+ metadata: { ...agentFile2.content.metadata, storageVersion: version7 }
44336
44341
  }
44337
44342
  }
44338
44343
  ]
@@ -44514,18 +44519,18 @@ var migrationV33 = createMigration({
44514
44519
  ]
44515
44520
  },
44516
44521
  migrate: (prev) => {
44517
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
44522
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
44518
44523
  return {
44519
44524
  folders: prev.folders,
44520
44525
  files: [
44521
44526
  {
44522
44527
  name: "agent.json",
44523
- content: agentFile.content.type === "lowCode" ? {
44524
- ...agentFile.content,
44525
- metadata: { ...agentFile.content.metadata, storageVersion: version8 }
44528
+ content: agentFile2.content.type === "lowCode" ? {
44529
+ ...agentFile2.content,
44530
+ metadata: { ...agentFile2.content.metadata, storageVersion: version8 }
44526
44531
  } : {
44527
- ...agentFile.content,
44528
- metadata: { ...agentFile.content.metadata, storageVersion: version8 }
44532
+ ...agentFile2.content,
44533
+ metadata: { ...agentFile2.content.metadata, storageVersion: version8 }
44529
44534
  }
44530
44535
  }
44531
44536
  ]
@@ -44609,7 +44614,7 @@ var migrationV34 = createMigration({
44609
44614
  ]
44610
44615
  },
44611
44616
  migrate: (prev) => {
44612
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
44617
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
44613
44618
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
44614
44619
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
44615
44620
  const resourcesFolder8 = prev.folders.find((folder) => folder.name === "resources");
@@ -44623,12 +44628,12 @@ var migrationV34 = createMigration({
44623
44628
  files: [
44624
44629
  {
44625
44630
  name: "agent.json",
44626
- content: agentFile.content.type === "lowCode" ? {
44627
- ...agentFile.content,
44628
- metadata: { ...agentFile.content.metadata, storageVersion: version9 }
44631
+ content: agentFile2.content.type === "lowCode" ? {
44632
+ ...agentFile2.content,
44633
+ metadata: { ...agentFile2.content.metadata, storageVersion: version9 }
44629
44634
  } : {
44630
- ...agentFile.content,
44631
- metadata: { ...agentFile.content.metadata, storageVersion: version9 }
44635
+ ...agentFile2.content,
44636
+ metadata: { ...agentFile2.content.metadata, storageVersion: version9 }
44632
44637
  }
44633
44638
  }
44634
44639
  ]
@@ -44721,7 +44726,7 @@ var migrationV35 = createMigration({
44721
44726
  ]
44722
44727
  },
44723
44728
  migrate: (prev) => {
44724
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
44729
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
44725
44730
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
44726
44731
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
44727
44732
  const resourcesFolder8 = prev.folders.find((folder) => folder.name === "resources");
@@ -44735,12 +44740,12 @@ var migrationV35 = createMigration({
44735
44740
  files: [
44736
44741
  {
44737
44742
  name: "agent.json",
44738
- content: agentFile.content.type === "lowCode" ? {
44739
- ...agentFile.content,
44740
- metadata: { ...agentFile.content.metadata, storageVersion: version10 }
44743
+ content: agentFile2.content.type === "lowCode" ? {
44744
+ ...agentFile2.content,
44745
+ metadata: { ...agentFile2.content.metadata, storageVersion: version10 }
44741
44746
  } : {
44742
- ...agentFile.content,
44743
- metadata: { ...agentFile.content.metadata, storageVersion: version10 }
44747
+ ...agentFile2.content,
44748
+ metadata: { ...agentFile2.content.metadata, storageVersion: version10 }
44744
44749
  }
44745
44750
  },
44746
44751
  {
@@ -44868,7 +44873,7 @@ var migrationV36 = createMigration({
44868
44873
  ]
44869
44874
  },
44870
44875
  migrate: (prev) => {
44871
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
44876
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
44872
44877
  const flowLayoutFile = prev.files.find((file3) => file3.name === "flow-layout.json");
44873
44878
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
44874
44879
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
@@ -44908,12 +44913,12 @@ var migrationV36 = createMigration({
44908
44913
  files: [
44909
44914
  {
44910
44915
  name: "agent.json",
44911
- content: agentFile.content.type === "lowCode" ? {
44912
- ...agentFile.content,
44913
- metadata: { ...agentFile.content.metadata, storageVersion: version11 }
44916
+ content: agentFile2.content.type === "lowCode" ? {
44917
+ ...agentFile2.content,
44918
+ metadata: { ...agentFile2.content.metadata, storageVersion: version11 }
44914
44919
  } : {
44915
- ...agentFile.content,
44916
- metadata: { ...agentFile.content.metadata, storageVersion: version11 }
44920
+ ...agentFile2.content,
44921
+ metadata: { ...agentFile2.content.metadata, storageVersion: version11 }
44917
44922
  }
44918
44923
  },
44919
44924
  {
@@ -45083,7 +45088,7 @@ var migrationV37 = createMigration({
45083
45088
  ]
45084
45089
  },
45085
45090
  migrate: (prev) => {
45086
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
45091
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
45087
45092
  const flowLayoutFile = prev.files.find((file3) => file3.name === "flow-layout.json");
45088
45093
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
45089
45094
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
@@ -45098,12 +45103,12 @@ var migrationV37 = createMigration({
45098
45103
  files: [
45099
45104
  {
45100
45105
  name: "agent.json",
45101
- content: agentFile.content.type === "lowCode" ? {
45102
- ...agentFile.content,
45103
- metadata: { ...agentFile.content.metadata, storageVersion: version12 }
45106
+ content: agentFile2.content.type === "lowCode" ? {
45107
+ ...agentFile2.content,
45108
+ metadata: { ...agentFile2.content.metadata, storageVersion: version12 }
45104
45109
  } : {
45105
- ...agentFile.content,
45106
- metadata: { ...agentFile.content.metadata, storageVersion: version12 }
45110
+ ...agentFile2.content,
45111
+ metadata: { ...agentFile2.content.metadata, storageVersion: version12 }
45107
45112
  }
45108
45113
  },
45109
45114
  {
@@ -45176,20 +45181,20 @@ var migrationV38 = createMigration({
45176
45181
  ]
45177
45182
  },
45178
45183
  migrate: (prev) => {
45179
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
45184
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
45180
45185
  const flowLayoutFile = prev.files.find((file3) => file3.name === "flow-layout.json");
45181
45186
  return {
45182
45187
  folders: prev.folders,
45183
45188
  files: [
45184
45189
  {
45185
45190
  name: "agent.json",
45186
- content: agentFile.content.type === "lowCode" ? {
45187
- ...agentFile.content,
45191
+ content: agentFile2.content.type === "lowCode" ? {
45192
+ ...agentFile2.content,
45188
45193
  version: "1.1.0",
45189
- metadata: { ...agentFile.content.metadata, storageVersion: version13 }
45194
+ metadata: { ...agentFile2.content.metadata, storageVersion: version13 }
45190
45195
  } : {
45191
- ...agentFile.content,
45192
- metadata: { ...agentFile.content.metadata, storageVersion: version13 }
45196
+ ...agentFile2.content,
45197
+ metadata: { ...agentFile2.content.metadata, storageVersion: version13 }
45193
45198
  }
45194
45199
  },
45195
45200
  {
@@ -45381,7 +45386,7 @@ var migrationV39 = createMigration({
45381
45386
  ]
45382
45387
  },
45383
45388
  migrate: (prev) => {
45384
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
45389
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
45385
45390
  const flowLayoutFile = prev.files.find((file3) => file3.name === "flow-layout.json");
45386
45391
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
45387
45392
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
@@ -45423,12 +45428,12 @@ var migrationV39 = createMigration({
45423
45428
  files: [
45424
45429
  {
45425
45430
  name: "agent.json",
45426
- content: agentFile.content.type === "lowCode" ? {
45427
- ...agentFile.content,
45428
- metadata: { ...agentFile.content.metadata, storageVersion: version14 }
45431
+ content: agentFile2.content.type === "lowCode" ? {
45432
+ ...agentFile2.content,
45433
+ metadata: { ...agentFile2.content.metadata, storageVersion: version14 }
45429
45434
  } : {
45430
- ...agentFile.content,
45431
- metadata: { ...agentFile.content.metadata, storageVersion: version14 }
45435
+ ...agentFile2.content,
45436
+ metadata: { ...agentFile2.content.metadata, storageVersion: version14 }
45432
45437
  }
45433
45438
  },
45434
45439
  {
@@ -45458,6 +45463,10 @@ var httpRequestPropertiesSchema = exports_external2.object({
45458
45463
  toolType: exports_external2.literal("http-request"),
45459
45464
  ...builtInToolBasePropertiesSchema.shape
45460
45465
  });
45466
+ var createFilePropertiesSchema = exports_external2.object({
45467
+ toolType: exports_external2.literal("create-file"),
45468
+ ...builtInToolBasePropertiesSchema.shape
45469
+ });
45461
45470
  var queryConfigSchema = exports_external2.object({
45462
45471
  value: exports_external2.string().optional(),
45463
45472
  description: exports_external2.string().optional(),
@@ -45510,7 +45519,8 @@ var builtInToolPropertiesSchemaV40 = exports_external2.discriminatedUnion("toolT
45510
45519
  loadAttachmentsPropertiesSchema,
45511
45520
  deepRagPropertiesSchema,
45512
45521
  batchTransformPropertiesSchema,
45513
- httpRequestPropertiesSchema
45522
+ httpRequestPropertiesSchema,
45523
+ createFilePropertiesSchema
45514
45524
  ]);
45515
45525
  var builtInToolResourceStorageSchemaV40 = _v39BuiltInToolSchema.omit({ outputSchema: true }).extend({
45516
45526
  outputSchema: extendedOutputSchemaSchema,
@@ -45636,7 +45646,7 @@ var migrationV40 = createMigration({
45636
45646
  ]
45637
45647
  },
45638
45648
  migrate: (prev) => {
45639
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
45649
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
45640
45650
  const flowLayoutFile = prev.files.find((file3) => file3.name === "flow-layout.json");
45641
45651
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
45642
45652
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
@@ -45684,12 +45694,12 @@ var migrationV40 = createMigration({
45684
45694
  files: [
45685
45695
  {
45686
45696
  name: "agent.json",
45687
- content: agentFile.content.type === "lowCode" ? {
45688
- ...agentFile.content,
45689
- metadata: { ...agentFile.content.metadata, storageVersion: version15 }
45697
+ content: agentFile2.content.type === "lowCode" ? {
45698
+ ...agentFile2.content,
45699
+ metadata: { ...agentFile2.content.metadata, storageVersion: version15 }
45690
45700
  } : {
45691
- ...agentFile.content,
45692
- metadata: { ...agentFile.content.metadata, storageVersion: version15 }
45701
+ ...agentFile2.content,
45702
+ metadata: { ...agentFile2.content.metadata, storageVersion: version15 }
45693
45703
  }
45694
45704
  },
45695
45705
  {
@@ -45804,7 +45814,7 @@ var migrationV41 = createMigration({
45804
45814
  ]
45805
45815
  },
45806
45816
  migrate: (prev) => {
45807
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
45817
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
45808
45818
  const flowLayoutFile = prev.files.find((file3) => file3.name === "flow-layout.json");
45809
45819
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
45810
45820
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
@@ -45822,12 +45832,12 @@ var migrationV41 = createMigration({
45822
45832
  files: [
45823
45833
  {
45824
45834
  name: "agent.json",
45825
- content: agentFile.content.type === "lowCode" ? {
45826
- ...agentFile.content,
45827
- metadata: { ...agentFile.content.metadata, storageVersion: version16 }
45835
+ content: agentFile2.content.type === "lowCode" ? {
45836
+ ...agentFile2.content,
45837
+ metadata: { ...agentFile2.content.metadata, storageVersion: version16 }
45828
45838
  } : {
45829
- ...agentFile.content,
45830
- metadata: { ...agentFile.content.metadata, storageVersion: version16 }
45839
+ ...agentFile2.content,
45840
+ metadata: { ...agentFile2.content.metadata, storageVersion: version16 }
45831
45841
  }
45832
45842
  },
45833
45843
  {
@@ -45963,7 +45973,7 @@ var migrationV42 = createMigration({
45963
45973
  ]
45964
45974
  },
45965
45975
  migrate: (prev) => {
45966
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
45976
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
45967
45977
  const flowLayoutFile = prev.files.find((file3) => file3.name === "flow-layout.json");
45968
45978
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
45969
45979
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
@@ -45998,16 +46008,16 @@ var migrationV42 = createMigration({
45998
46008
  featuresFolder,
45999
46009
  migratedResourcesFolder
46000
46010
  ];
46001
- if (agentFile.content.type === "lowCode") {
46002
- const migratedGuardrails = agentFile.content.guardrails ? migrateGuardrails(agentFile.content.guardrails) : undefined;
46011
+ if (agentFile2.content.type === "lowCode") {
46012
+ const migratedGuardrails = agentFile2.content.guardrails ? migrateGuardrails(agentFile2.content.guardrails) : undefined;
46003
46013
  return {
46004
46014
  folders: rootFolders,
46005
46015
  files: [
46006
46016
  {
46007
46017
  name: "agent.json",
46008
46018
  content: {
46009
- ...agentFile.content,
46010
- metadata: { ...agentFile.content.metadata, storageVersion: version17 },
46019
+ ...agentFile2.content,
46020
+ metadata: { ...agentFile2.content.metadata, storageVersion: version17 },
46011
46021
  guardrails: migratedGuardrails
46012
46022
  }
46013
46023
  },
@@ -46021,8 +46031,8 @@ var migrationV42 = createMigration({
46021
46031
  {
46022
46032
  name: "agent.json",
46023
46033
  content: {
46024
- ...agentFile.content,
46025
- metadata: { ...agentFile.content.metadata, storageVersion: version17 }
46034
+ ...agentFile2.content,
46035
+ metadata: { ...agentFile2.content.metadata, storageVersion: version17 }
46026
46036
  }
46027
46037
  },
46028
46038
  { name: "flow-layout.json", content: flowLayoutFile.content }
@@ -46103,7 +46113,7 @@ var migrationV43 = createMigration({
46103
46113
  ]
46104
46114
  },
46105
46115
  migrate: (prev) => {
46106
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
46116
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
46107
46117
  const flowLayoutFile = prev.files.find((file3) => file3.name === "flow-layout.json");
46108
46118
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
46109
46119
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
@@ -46118,19 +46128,19 @@ var migrationV43 = createMigration({
46118
46128
  files: [
46119
46129
  {
46120
46130
  name: "agent.json",
46121
- content: agentFile.content.type === "lowCode" ? {
46122
- ...agentFile.content,
46131
+ content: agentFile2.content.type === "lowCode" ? {
46132
+ ...agentFile2.content,
46123
46133
  metadata: {
46124
- ...agentFile.content.metadata,
46134
+ ...agentFile2.content.metadata,
46125
46135
  storageVersion: version18,
46126
- showProjectCreationExperience: agentFile.content.metadata.showProjectCreationExperience ?? false
46136
+ showProjectCreationExperience: agentFile2.content.metadata.showProjectCreationExperience ?? false
46127
46137
  }
46128
46138
  } : {
46129
- ...agentFile.content,
46139
+ ...agentFile2.content,
46130
46140
  metadata: {
46131
- ...agentFile.content.metadata,
46141
+ ...agentFile2.content.metadata,
46132
46142
  storageVersion: version18,
46133
- showProjectCreationExperience: agentFile.content.metadata.showProjectCreationExperience ?? false
46143
+ showProjectCreationExperience: agentFile2.content.metadata.showProjectCreationExperience ?? false
46134
46144
  }
46135
46145
  }
46136
46146
  },
@@ -46241,7 +46251,7 @@ var migrationV44 = createMigration({
46241
46251
  ]
46242
46252
  },
46243
46253
  migrate: (prev) => {
46244
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
46254
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
46245
46255
  const flowLayoutFile = prev.files.find((file3) => file3.name === "flow-layout.json");
46246
46256
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
46247
46257
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
@@ -46289,12 +46299,12 @@ var migrationV44 = createMigration({
46289
46299
  files: [
46290
46300
  {
46291
46301
  name: "agent.json",
46292
- content: agentFile.content.type === "lowCode" ? {
46293
- ...agentFile.content,
46294
- metadata: { ...agentFile.content.metadata, storageVersion: version19 }
46302
+ content: agentFile2.content.type === "lowCode" ? {
46303
+ ...agentFile2.content,
46304
+ metadata: { ...agentFile2.content.metadata, storageVersion: version19 }
46295
46305
  } : {
46296
- ...agentFile.content,
46297
- metadata: { ...agentFile.content.metadata, storageVersion: version19 }
46306
+ ...agentFile2.content,
46307
+ metadata: { ...agentFile2.content.metadata, storageVersion: version19 }
46298
46308
  }
46299
46309
  },
46300
46310
  {
@@ -46336,6 +46346,7 @@ var v45 = {
46336
46346
  agent: agentStorageSchemaV45,
46337
46347
  lowCodeAgent: lowCodeAgentSchemaV45,
46338
46348
  codedAgent: codedAgentSchemaV45,
46349
+ appearance: appearanceSchema2,
46339
46350
  context: v44.context,
46340
46351
  escalationChannelActionCenter: v44.escalationChannelActionCenter,
46341
46352
  escalation: v44.escalation,
@@ -46380,7 +46391,7 @@ var migrationV45 = createMigration({
46380
46391
  ]
46381
46392
  },
46382
46393
  migrate: (prev) => {
46383
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
46394
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
46384
46395
  const flowLayoutFile = prev.files.find((file3) => file3.name === "flow-layout.json");
46385
46396
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
46386
46397
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
@@ -46395,16 +46406,16 @@ var migrationV45 = createMigration({
46395
46406
  files: [
46396
46407
  {
46397
46408
  name: "agent.json",
46398
- content: agentFile.content.type === "lowCode" ? {
46399
- ...agentFile.content,
46409
+ content: agentFile2.content.type === "lowCode" ? {
46410
+ ...agentFile2.content,
46400
46411
  metadata: {
46401
- ...agentFile.content.metadata,
46412
+ ...agentFile2.content.metadata,
46402
46413
  storageVersion: version20
46403
46414
  }
46404
46415
  } : {
46405
- ...agentFile.content,
46416
+ ...agentFile2.content,
46406
46417
  metadata: {
46407
- ...agentFile.content.metadata,
46418
+ ...agentFile2.content.metadata,
46408
46419
  storageVersion: version20
46409
46420
  }
46410
46421
  }
@@ -46448,6 +46459,7 @@ var v46 = {
46448
46459
  agent: agentStorageSchemaV46,
46449
46460
  lowCodeAgent: lowCodeAgentSchemaV46,
46450
46461
  codedAgent: codedAgentSchemaV46,
46462
+ appearance: v45.appearance,
46451
46463
  context: v45.context,
46452
46464
  escalationChannelActionCenter: v45.escalationChannelActionCenter,
46453
46465
  escalation: v45.escalation,
@@ -46491,7 +46503,7 @@ var migrationV46 = createMigration({
46491
46503
  ]
46492
46504
  },
46493
46505
  migrate: (prev) => {
46494
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
46506
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
46495
46507
  const flowLayoutFile = prev.files.find((file3) => file3.name === "flow-layout.json");
46496
46508
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
46497
46509
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
@@ -46506,16 +46518,16 @@ var migrationV46 = createMigration({
46506
46518
  files: [
46507
46519
  {
46508
46520
  name: "agent.json",
46509
- content: agentFile.content.type === "lowCode" ? {
46510
- ...agentFile.content,
46521
+ content: agentFile2.content.type === "lowCode" ? {
46522
+ ...agentFile2.content,
46511
46523
  metadata: {
46512
- ...agentFile.content.metadata,
46524
+ ...agentFile2.content.metadata,
46513
46525
  storageVersion: version21
46514
46526
  }
46515
46527
  } : {
46516
- ...agentFile.content,
46528
+ ...agentFile2.content,
46517
46529
  metadata: {
46518
- ...agentFile.content.metadata,
46530
+ ...agentFile2.content.metadata,
46519
46531
  storageVersion: version21
46520
46532
  }
46521
46533
  }
@@ -46584,6 +46596,7 @@ var v47 = {
46584
46596
  agent: agentStorageSchemaV47,
46585
46597
  lowCodeAgent: lowCodeAgentSchemaV47,
46586
46598
  codedAgent: codedAgentSchemaV47,
46599
+ appearance: v46.appearance,
46587
46600
  context: v46.context,
46588
46601
  escalationChannelActionCenter: v46.escalationChannelActionCenter,
46589
46602
  escalation: v46.escalation,
@@ -46594,8 +46607,7 @@ var v47 = {
46594
46607
  featuresFolder: v46.featuresFolder,
46595
46608
  flowLayout: v46.flowLayout,
46596
46609
  mcp: v46.mcp,
46597
- tool: toolStorageSchemaV47,
46598
- processOrchestrationTool: processOrchestrationToolStorageSchemaV47
46610
+ tool: toolStorageSchemaV47
46599
46611
  };
46600
46612
  var migrationV47 = createMigration({
46601
46613
  from: v46.storage,
@@ -46628,7 +46640,7 @@ var migrationV47 = createMigration({
46628
46640
  ]
46629
46641
  },
46630
46642
  migrate: (prev) => {
46631
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
46643
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
46632
46644
  const flowLayoutFile = prev.files.find((file3) => file3.name === "flow-layout.json");
46633
46645
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
46634
46646
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
@@ -46643,16 +46655,16 @@ var migrationV47 = createMigration({
46643
46655
  files: [
46644
46656
  {
46645
46657
  name: "agent.json",
46646
- content: agentFile.content.type === "lowCode" ? {
46647
- ...agentFile.content,
46658
+ content: agentFile2.content.type === "lowCode" ? {
46659
+ ...agentFile2.content,
46648
46660
  metadata: {
46649
- ...agentFile.content.metadata,
46661
+ ...agentFile2.content.metadata,
46650
46662
  storageVersion: version222
46651
46663
  }
46652
46664
  } : {
46653
- ...agentFile.content,
46665
+ ...agentFile2.content,
46654
46666
  metadata: {
46655
- ...agentFile.content.metadata,
46667
+ ...agentFile2.content.metadata,
46656
46668
  storageVersion: version222
46657
46669
  }
46658
46670
  }
@@ -46766,6 +46778,7 @@ var v48 = {
46766
46778
  agent: agentStorageSchemaV48,
46767
46779
  lowCodeAgent: lowCodeAgentSchemaV48,
46768
46780
  codedAgent: codedAgentSchemaV48,
46781
+ appearance: v47.appearance,
46769
46782
  context: contextStorageSchemaV48,
46770
46783
  escalationChannelActionCenter: v47.escalationChannelActionCenter,
46771
46784
  escalation: v47.escalation,
@@ -46778,8 +46791,7 @@ var v48 = {
46778
46791
  flowLayout: v47.flowLayout,
46779
46792
  mcp: v47.mcp,
46780
46793
  a2a: a2aStorageSchemaV48,
46781
- tool: v47.tool,
46782
- processOrchestrationTool: v47.processOrchestrationTool
46794
+ tool: v47.tool
46783
46795
  };
46784
46796
  var migrationV48 = createMigration({
46785
46797
  from: v47.storage,
@@ -46813,7 +46825,7 @@ var migrationV48 = createMigration({
46813
46825
  ]
46814
46826
  },
46815
46827
  migrate: (prev) => {
46816
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
46828
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
46817
46829
  const flowLayoutFile = prev.files.find((file3) => file3.name === "flow-layout.json");
46818
46830
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
46819
46831
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
@@ -46842,16 +46854,16 @@ var migrationV48 = createMigration({
46842
46854
  files: [
46843
46855
  {
46844
46856
  name: "agent.json",
46845
- content: agentFile.content.type === "lowCode" ? {
46846
- ...agentFile.content,
46857
+ content: agentFile2.content.type === "lowCode" ? {
46858
+ ...agentFile2.content,
46847
46859
  metadata: {
46848
- ...agentFile.content.metadata,
46860
+ ...agentFile2.content.metadata,
46849
46861
  storageVersion: version23
46850
46862
  }
46851
46863
  } : {
46852
- ...agentFile.content,
46864
+ ...agentFile2.content,
46853
46865
  metadata: {
46854
- ...agentFile.content.metadata,
46866
+ ...agentFile2.content.metadata,
46855
46867
  storageVersion: version23
46856
46868
  }
46857
46869
  }
@@ -46891,6 +46903,7 @@ var v49 = {
46891
46903
  agent: agentStorageSchemaV49,
46892
46904
  lowCodeAgent: lowCodeAgentSchemaV49,
46893
46905
  codedAgent: codedAgentSchemaV49,
46906
+ appearance: v48.appearance,
46894
46907
  context: v48.context,
46895
46908
  escalationChannelActionCenter: v48.escalationChannelActionCenter,
46896
46909
  escalation: v48.escalation,
@@ -46902,8 +46915,7 @@ var v49 = {
46902
46915
  flowLayout: v48.flowLayout,
46903
46916
  mcp: v48.mcp,
46904
46917
  a2a: v48.a2a,
46905
- tool: v48.tool,
46906
- processOrchestrationTool: v48.processOrchestrationTool
46918
+ tool: v48.tool
46907
46919
  };
46908
46920
  var migrationV49 = createMigration({
46909
46921
  from: v48.storage,
@@ -46937,7 +46949,7 @@ var migrationV49 = createMigration({
46937
46949
  ]
46938
46950
  },
46939
46951
  migrate: (prev) => {
46940
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
46952
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
46941
46953
  const flowLayoutFile = prev.files.find((file3) => file3.name === "flow-layout.json");
46942
46954
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
46943
46955
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
@@ -46948,17 +46960,17 @@ var migrationV49 = createMigration({
46948
46960
  files: [
46949
46961
  {
46950
46962
  name: "agent.json",
46951
- content: agentFile.content.type === "lowCode" ? {
46952
- ...agentFile.content,
46963
+ content: agentFile2.content.type === "lowCode" ? {
46964
+ ...agentFile2.content,
46953
46965
  metadata: {
46954
- ...agentFile.content.metadata,
46966
+ ...agentFile2.content.metadata,
46955
46967
  storageVersion: version24,
46956
46968
  showProjectCreationExperience: false
46957
46969
  }
46958
46970
  } : {
46959
- ...agentFile.content,
46971
+ ...agentFile2.content,
46960
46972
  metadata: {
46961
- ...agentFile.content.metadata,
46973
+ ...agentFile2.content.metadata,
46962
46974
  storageVersion: version24,
46963
46975
  showProjectCreationExperience: false
46964
46976
  }
@@ -47080,11 +47092,25 @@ var escalationStorageSchemaV50 = v49.escalation.extend({
47080
47092
  });
47081
47093
  var baseLowCodeSettingsSchema = v49.lowCodeAgent.shape.settings;
47082
47094
  var _v49ProcessToolSchema = v49.tool.options[1];
47083
- var flowToolStorageSchemaV50 = v49.processOrchestrationTool.extend({
47095
+ var withEntryPointPath = { entryPointPath: exports_external2.string().optional() };
47096
+ var processToolStorageSchemaV50 = _v49ProcessToolSchema.extend({
47097
+ properties: _v49ProcessToolSchema.shape.properties.extend(withEntryPointPath)
47098
+ });
47099
+ var agentToolStorageSchemaV50 = v49.tool.options[2].extend({
47100
+ properties: v49.tool.options[2].shape.properties.extend(withEntryPointPath)
47101
+ });
47102
+ var apiToolStorageSchemaV50 = v49.tool.options[3].extend({
47103
+ properties: v49.tool.options[3].shape.properties.extend(withEntryPointPath)
47104
+ });
47105
+ var processOrchestrationToolStorageSchemaV50 = v49.tool.options[4].extend({
47106
+ properties: v49.tool.options[4].shape.properties.extend(withEntryPointPath)
47107
+ });
47108
+ var flowToolStorageSchemaV50 = processOrchestrationToolStorageSchemaV50.extend({
47084
47109
  type: exports_external2.literal("flow")
47085
47110
  });
47086
47111
  var functionToolStorageSchemaV50 = _v49ProcessToolSchema.extend({
47087
- type: exports_external2.literal("function")
47112
+ type: exports_external2.literal("function"),
47113
+ properties: _v49ProcessToolSchema.shape.properties.extend(withEntryPointPath)
47088
47114
  });
47089
47115
  var TURN_DETECTION_MAX_MS = 5000;
47090
47116
  var turnDetectionSchemaV50 = exports_external2.object({
@@ -47102,8 +47128,11 @@ var voiceSettingsExtension = {
47102
47128
  agentSpeaksFirst: exports_external2.boolean().optional()
47103
47129
  }).optional()
47104
47130
  };
47105
- var standardLowCodeAgentSettingsV50 = baseLowCodeSettingsSchema.extend({ mode: exports_external2.literal("standard") }).extend(voiceSettingsExtension);
47106
- var advancedLowCodeAgentSettingsV50 = baseLowCodeSettingsSchema.extend({ mode: exports_external2.literal("advanced") }).extend(voiceSettingsExtension);
47131
+ var modelSettingsExtension = {
47132
+ modelSettings: exports_external2.record(exports_external2.string(), exports_external2.union([exports_external2.string(), exports_external2.number(), exports_external2.boolean()])).optional()
47133
+ };
47134
+ var standardLowCodeAgentSettingsV50 = baseLowCodeSettingsSchema.extend({ mode: exports_external2.literal("standard") }).extend(voiceSettingsExtension).extend(modelSettingsExtension);
47135
+ var advancedLowCodeAgentSettingsV50 = baseLowCodeSettingsSchema.extend({ mode: exports_external2.literal("advanced") }).extend(voiceSettingsExtension).extend(modelSettingsExtension);
47107
47136
  var lowCodeAgentSettingsV50 = exports_external2.discriminatedUnion("mode", [
47108
47137
  standardLowCodeAgentSettingsV50,
47109
47138
  advancedLowCodeAgentSettingsV50
@@ -47116,12 +47145,16 @@ var agent365ValuesSchemaV50 = exports_external2.object({
47116
47145
  [Agent365Attributes.AgentUserId]: exports_external2.string(),
47117
47146
  [Agent365Attributes.AgentUserEmail]: exports_external2.email()
47118
47147
  }).partial();
47148
+ var appearanceSchemaV50 = v49.appearance.extend({
47149
+ personalWorkspaceConnectionsOnly: exports_external2.boolean().optional()
47150
+ });
47119
47151
  var lowCodeAgentSchemaV50 = v49.lowCodeAgent.extend({
47120
47152
  metadata: v49.lowCodeAgent.shape.metadata.extend({
47121
47153
  storageVersion: exports_external2.literal(version25),
47122
47154
  variant: exports_external2.enum(["caseManager"]).optional()
47123
47155
  }),
47124
47156
  settings: lowCodeAgentSettingsV50,
47157
+ appearance: appearanceSchemaV50.optional(),
47125
47158
  id: exports_external2.string().optional(),
47126
47159
  name: exports_external2.string().optional()
47127
47160
  }).extend(agent365ValuesSchemaV50.shape);
@@ -47153,7 +47186,13 @@ var clientSideToolStorageSchemaV50 = exports_external2.object({
47153
47186
  guardrail: _v49ProcessToolSchema.shape.guardrail
47154
47187
  });
47155
47188
  var toolStorageSchemaV50 = exports_external2.discriminatedUnion("type", [
47156
- ...v49.tool.options,
47189
+ v49.tool.options[0],
47190
+ processToolStorageSchemaV50,
47191
+ agentToolStorageSchemaV50,
47192
+ apiToolStorageSchemaV50,
47193
+ processOrchestrationToolStorageSchemaV50,
47194
+ v49.tool.options[5],
47195
+ v49.tool.options[6],
47157
47196
  clientSideToolStorageSchemaV50,
47158
47197
  flowToolStorageSchemaV50,
47159
47198
  functionToolStorageSchemaV50
@@ -47162,15 +47201,38 @@ var discoveryModeSchemaV50 = exports_external2.discriminatedUnion("type", [
47162
47201
  exports_external2.object({ type: exports_external2.literal("cached"), refreshSchemaBeforeCall: exports_external2.boolean().default(true) }),
47163
47202
  exports_external2.object({ type: exports_external2.literal("dynamic"), allowAll: exports_external2.boolean() })
47164
47203
  ]);
47204
+ var agentHubSolutionPropertiesSchemaV50 = exports_external2.object({
47205
+ resourceKey: exports_external2.string(),
47206
+ resourceName: exports_external2.string().min(1).optional()
47207
+ });
47165
47208
  var mcpToolStorageSchemaV50 = v49.mcp.omit({ dynamicTools: true }).extend({
47166
- toolsConfiguration: exports_external2.object({ discoveryMode: discoveryModeSchemaV50 }).default({ discoveryMode: { type: "cached", refreshSchemaBeforeCall: true } })
47209
+ toolsConfiguration: exports_external2.object({ discoveryMode: discoveryModeSchemaV50 }).default({ discoveryMode: { type: "cached", refreshSchemaBeforeCall: true } }),
47210
+ solutionProperties: agentHubSolutionPropertiesSchemaV50
47211
+ });
47212
+ var remoteA2aStorageSchemaV50 = v49.a2a.extend({
47213
+ solutionProperties: agentHubSolutionPropertiesSchemaV50
47167
47214
  });
47168
47215
  var dataFabricOntologyContextSchemaV50 = v49.context.options[1].omit({ contextType: true, entitySet: true }).extend({
47169
47216
  contextType: exports_external2.literal("datafabricontology"),
47170
47217
  ontologySet: exports_external2.array(exports_external2.looseObject({}))
47171
47218
  });
47219
+ var v49ContextSettings = v49.context.options[0].shape.settings;
47220
+ var v49ContextSettingsUnion = v49ContextSettings.unwrap();
47221
+ var semanticContextSettingsSchemaV50 = v49ContextSettingsUnion.options[0].extend({
47222
+ searchDuringIngestion: exports_external2.boolean().optional()
47223
+ });
47224
+ var contextSettingsSchemaV50 = exports_external2.discriminatedUnion("retrievalMode", [
47225
+ semanticContextSettingsSchemaV50,
47226
+ v49ContextSettingsUnion.options[1],
47227
+ v49ContextSettingsUnion.options[2],
47228
+ v49ContextSettingsUnion.options[3],
47229
+ v49ContextSettingsUnion.options[4]
47230
+ ]).default(v49ContextSettings.def.defaultValue);
47231
+ var indexOrAttachmentsContextSchemaV50 = v49.context.options[0].extend({
47232
+ settings: contextSettingsSchemaV50
47233
+ });
47172
47234
  var contextStorageSchemaV50 = exports_external2.discriminatedUnion("contextType", [
47173
- v49.context.options[0],
47235
+ indexOrAttachmentsContextSchemaV50,
47174
47236
  v49.context.options[1],
47175
47237
  dataFabricOntologyContextSchemaV50
47176
47238
  ]);
@@ -47179,7 +47241,7 @@ var resourceStorageSchemaV50 = exports_external2.union([
47179
47241
  contextStorageSchemaV50,
47180
47242
  escalationStorageSchemaV50,
47181
47243
  mcpToolStorageSchemaV50,
47182
- v49.a2a
47244
+ remoteA2aStorageSchemaV50
47183
47245
  ]);
47184
47246
  var resourcesFolderSchemaV50 = exports_external2.object({
47185
47247
  name: exports_external2.literal("resources"),
@@ -47250,7 +47312,7 @@ var migrationV50 = createMigration({
47250
47312
  ]
47251
47313
  },
47252
47314
  migrate: (prev) => {
47253
- const agentFile = prev.files.find((file3) => file3.name === "agent.json");
47315
+ const agentFile2 = prev.files.find((file3) => file3.name === "agent.json");
47254
47316
  const flowLayoutFile = prev.files.find((file3) => file3.name === "flow-layout.json");
47255
47317
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
47256
47318
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
@@ -47261,20 +47323,20 @@ var migrationV50 = createMigration({
47261
47323
  files: [
47262
47324
  {
47263
47325
  name: "agent.json",
47264
- content: agentFile.content.type === "lowCode" ? {
47265
- ...agentFile.content,
47326
+ content: agentFile2.content.type === "lowCode" ? {
47327
+ ...agentFile2.content,
47266
47328
  metadata: {
47267
- ...agentFile.content.metadata,
47329
+ ...agentFile2.content.metadata,
47268
47330
  storageVersion: version25
47269
47331
  },
47270
47332
  settings: {
47271
47333
  mode: "standard",
47272
- ...agentFile.content.settings
47334
+ ...agentFile2.content.settings
47273
47335
  }
47274
47336
  } : {
47275
- ...agentFile.content,
47337
+ ...agentFile2.content,
47276
47338
  metadata: {
47277
- ...agentFile.content.metadata,
47339
+ ...agentFile2.content.metadata,
47278
47340
  storageVersion: version25
47279
47341
  }
47280
47342
  }
@@ -47295,6 +47357,139 @@ var currentFeatureStorageSchema = currentStorageSchemaMigration.entities.feature
47295
47357
  var currentEvaluationSetStorageSchema = currentStorageSchemaMigration.entities.evalSet;
47296
47358
  var currentCodedAgentStorageSchema = currentStorageSchemaMigration.entities.codedAgent;
47297
47359
  var currentFlowLayoutStorageSchema = currentStorageSchemaMigration.entities.flowLayout;
47360
+ var defOf = (schema) => schema._zod?.def ?? schema.def;
47361
+ var fieldsOf = (schema) => {
47362
+ const def = schema && defOf(schema);
47363
+ return def?.type === "object" ? def.shape ?? {} : {};
47364
+ };
47365
+ var tupleMembers = (schema) => {
47366
+ const def = schema && defOf(schema);
47367
+ return def?.type === "tuple" ? def.items ?? [] : [];
47368
+ };
47369
+ var arrayMember = (schema) => {
47370
+ const def = schema && defOf(schema);
47371
+ return def?.type === "array" ? def.element : undefined;
47372
+ };
47373
+ var literalValue = (schema) => {
47374
+ const def = schema && defOf(schema);
47375
+ return def?.type === "literal" ? String(def.values?.[0]) : undefined;
47376
+ };
47377
+ var deserializedSchema = (schema) => {
47378
+ const def = schema && defOf(schema);
47379
+ return def?.type === "pipe" ? def.out : undefined;
47380
+ };
47381
+ var POLICY = {
47382
+ "agent.json": {
47383
+ kind: "agent",
47384
+ onInvalid: "fatal",
47385
+ repairableFields: ["messages", "settings", "inputSchema", "outputSchema", "metadata"]
47386
+ },
47387
+ "eval-sets": { kind: "evalSet", onInvalid: "skip" },
47388
+ "flow-layout.json": { kind: "flowLayout", onInvalid: "reset" },
47389
+ evaluators: { kind: "evaluator", onInvalid: "skip" },
47390
+ features: { kind: "feature", onInvalid: "skip" },
47391
+ resources: { kind: "resource", onInvalid: "skip" }
47392
+ };
47393
+ var fileSystemFields = () => fieldsOf(currentStorageSchema.fileSystem);
47394
+ var defaultRootFileContent = (file3) => currentStorageSchemaMigration.defaultStorageContents.files.find((candidate) => candidate.name === file3)?.content;
47395
+ var rootFileEntities = () => tupleMembers(fileSystemFields().files).flatMap((fileSchema) => {
47396
+ const file3 = literalValue(fieldsOf(fileSchema).name);
47397
+ const policy = file3 ? POLICY[file3] : undefined;
47398
+ const schema = deserializedSchema(fieldsOf(fileSchema).content);
47399
+ if (!file3 || !policy || !schema)
47400
+ return [];
47401
+ const carriesDefault = policy.onInvalid === "reset" || policy.onInvalid === "fatal";
47402
+ const defaultContent = carriesDefault ? defaultRootFileContent(file3) : undefined;
47403
+ return [{ ...policy, location: { at: "rootFile", file: file3 }, schema, defaultContent }];
47404
+ });
47405
+ var namedSubfolderEntity = (folder, folderSchema) => {
47406
+ const policy = POLICY[folder];
47407
+ const subfolder = arrayMember(fieldsOf(folderSchema).folders);
47408
+ const definitionFileSchema = tupleMembers(fieldsOf(subfolder).files)[0];
47409
+ const definitionFile = literalValue(fieldsOf(definitionFileSchema).name);
47410
+ const schema = deserializedSchema(fieldsOf(definitionFileSchema).content);
47411
+ if (!policy || !definitionFile || !schema)
47412
+ return [];
47413
+ return [{ ...policy, location: { at: "namedSubfolders", definitionFile, folder }, schema }];
47414
+ };
47415
+ var folderFilesEntities = (folder, folderSchema) => tupleMembers(fieldsOf(folderSchema).folders).flatMap((subfolderSchema) => {
47416
+ const subfolder = literalValue(fieldsOf(subfolderSchema).name);
47417
+ const policy = subfolder ? POLICY[subfolder] : undefined;
47418
+ const schema = deserializedSchema(fieldsOf(arrayMember(fieldsOf(subfolderSchema).files)).content);
47419
+ if (!subfolder || !policy || !schema)
47420
+ return [];
47421
+ return [{ ...policy, location: { at: "folderFiles", folder, subfolder }, schema }];
47422
+ });
47423
+ var folderEntities = () => tupleMembers(fileSystemFields().folders).flatMap((folderSchema) => {
47424
+ const folder = literalValue(fieldsOf(folderSchema).name);
47425
+ if (!folder)
47426
+ return [];
47427
+ return [...namedSubfolderEntity(folder, folderSchema), ...folderFilesEntities(folder, folderSchema)];
47428
+ });
47429
+ var entities = [...rootFileEntities(), ...folderEntities()];
47430
+ var agentEntity = entities.find((entity) => entity.kind === "agent");
47431
+ var agentFile = agentEntity?.location.at === "rootFile" ? agentEntity.location.file : undefined;
47432
+ var defaults = currentStorageSchemaMigration.defaultStorageContents;
47433
+ var serializedDefaults = toSerializedRoot(structuredClone(currentStorageSchemaMigration.defaultStorageContents));
47434
+ var namesOf = (nodes) => (nodes ?? []).flatMap((node) => node.name === undefined ? [] : [node.name]);
47435
+ var rootFileOrder = namesOf(defaults.files);
47436
+ var rootFolderOrder = namesOf(defaults.folders);
47437
+ var namedIn = (entries, name) => entries.filter((entry) => entry.name === name);
47438
+ var orderedBy = (names, entries) => names.flatMap((name) => namedIn(entries, name));
47439
+ var flatFolderOf = (subFolderNames) => (parent) => ({
47440
+ ...parent,
47441
+ files: [],
47442
+ folders: orderedBy(subFolderNames, parent.folders).map((child) => ({
47443
+ ...child,
47444
+ folders: [],
47445
+ files: child.files.filter((file3) => file3.name.endsWith(".json"))
47446
+ }))
47447
+ });
47448
+ var definitionFolderOf = (definitionFile) => (parent) => ({
47449
+ ...parent,
47450
+ files: [],
47451
+ folders: parent.folders.filter((child) => child.files.some((file3) => file3.name === definitionFile)).map((child) => ({ ...child, files: child.files.filter((file3) => file3.name === definitionFile) }))
47452
+ });
47453
+ var buildFolderSanitizers = () => {
47454
+ const sanitizers = {};
47455
+ const flatSubfolders = /* @__PURE__ */ new Map;
47456
+ for (const entity of entities) {
47457
+ if (entity.location.at === "namedSubfolders") {
47458
+ sanitizers[entity.location.folder] = definitionFolderOf(entity.location.definitionFile);
47459
+ }
47460
+ if (entity.location.at === "folderFiles") {
47461
+ const { folder, subfolder } = entity.location;
47462
+ flatSubfolders.set(folder, [...flatSubfolders.get(folder) ?? [], subfolder]);
47463
+ }
47464
+ }
47465
+ for (const [folder, subfolders] of flatSubfolders)
47466
+ sanitizers[folder] = flatFolderOf(subfolders);
47467
+ return sanitizers;
47468
+ };
47469
+ var folderSanitizers = buildFolderSanitizers();
47470
+ var REVIEW_GRADES = [
47471
+ "A+",
47472
+ "A",
47473
+ "A-",
47474
+ "B+",
47475
+ "B",
47476
+ "B-",
47477
+ "C+",
47478
+ "C",
47479
+ "C-",
47480
+ "D+",
47481
+ "D",
47482
+ "D-",
47483
+ "F"
47484
+ ];
47485
+ var reviewGradeSchema = exports_external2.enum(REVIEW_GRADES);
47486
+ var reviewHistoryEntrySchema = exports_external2.object({
47487
+ grade: reviewGradeSchema,
47488
+ runAt: exports_external2.string(),
47489
+ errors: exports_external2.number().int().min(0).optional(),
47490
+ warnings: exports_external2.number().int().min(0).optional()
47491
+ });
47492
+ var reviewHistorySchema = exports_external2.array(reviewHistoryEntrySchema);
47298
47493
 
47299
47494
  // ../../node_modules/jsep/dist/jsep.js
47300
47495
  class Hooks {
@@ -91864,4 +92059,4 @@ function listKnownSdkNodes() {
91864
92059
 
91865
92060
  export { getServiceType, extractIOFromEntryPoints, taskDefinitionsToNodeManifests, MANIFEST_FEATURE_FLAGS, ManifestClient, isKnownSdkNodeType, listKnownSdkNodes };
91866
92061
 
91867
- //# debugId=5FF3453E1B5CCD2264756E2164756E21
92062
+ //# debugId=DF9959A8D7E6538764756E2164756E21