@elizaos/plugin-knowledge 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.
package/dist/index.html CHANGED
@@ -5,8 +5,8 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Agent Plugin View</title>
8
- <script type="module" crossorigin src="./assets/index-DtOcbZ9V.js"></script>
9
- <link rel="stylesheet" crossorigin href="./assets/index-crC0VS8M.css">
8
+ <script type="module" crossorigin src="./assets/index-DRqE0iU1.js"></script>
9
+ <link rel="stylesheet" crossorigin href="./assets/index-CFqKS0Ch.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
package/dist/index.js CHANGED
@@ -3039,7 +3039,11 @@ var documentsProvider = {
3039
3039
  logger8.warn("Knowledge service not available for documents provider");
3040
3040
  return {
3041
3041
  data: { documents: [] },
3042
- values: { documents: "" },
3042
+ values: {
3043
+ documentsCount: 0,
3044
+ documents: "",
3045
+ availableDocuments: ""
3046
+ },
3043
3047
  text: ""
3044
3048
  };
3045
3049
  }
@@ -3055,7 +3059,11 @@ var documentsProvider = {
3055
3059
  if (!documents || documents.length === 0) {
3056
3060
  return {
3057
3061
  data: { documents: [] },
3058
- values: { documents: "" },
3062
+ values: {
3063
+ documentsCount: 0,
3064
+ documents: "",
3065
+ availableDocuments: ""
3066
+ },
3059
3067
  text: ""
3060
3068
  };
3061
3069
  }
@@ -3099,7 +3107,8 @@ ${documentsList}`
3099
3107
  },
3100
3108
  values: {
3101
3109
  documentsCount: documents.length,
3102
- documents: documentsList
3110
+ documents: documentsList,
3111
+ availableDocuments: documentsText
3103
3112
  },
3104
3113
  text: documentsText
3105
3114
  };
@@ -3107,7 +3116,11 @@ ${documentsList}`
3107
3116
  logger8.error("Error in documents provider:", error.message);
3108
3117
  return {
3109
3118
  data: { documents: [], error: error.message },
3110
- values: { documents: "" },
3119
+ values: {
3120
+ documentsCount: 0,
3121
+ documents: "",
3122
+ availableDocuments: ""
3123
+ },
3111
3124
  text: ""
3112
3125
  };
3113
3126
  }