@elizaos/plugin-knowledge 2.0.0-alpha.7 → 2.0.0-alpha.8

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.
@@ -238,11 +238,11 @@ var import_node_buffer = require("node:buffer");
238
238
  var import_node_crypto4 = require("node:crypto");
239
239
  var mammoth = __toESM(require("mammoth"));
240
240
  var import_unpdf = require("unpdf");
241
- // node_modules/uuid/dist-node/native.js
241
+ // ../../../node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/native.js
242
242
  var import_node_crypto = require("node:crypto");
243
243
  var native_default = { randomUUID: import_node_crypto.randomUUID };
244
244
 
245
- // node_modules/uuid/dist-node/rng.js
245
+ // ../../../node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/rng.js
246
246
  var import_node_crypto2 = require("node:crypto");
247
247
  var rnds8Pool = new Uint8Array(256);
248
248
  var poolPtr = rnds8Pool.length;
@@ -254,16 +254,16 @@ function rng() {
254
254
  return rnds8Pool.slice(poolPtr, poolPtr += 16);
255
255
  }
256
256
 
257
- // node_modules/uuid/dist-node/regex.js
257
+ // ../../../node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/regex.js
258
258
  var regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
259
259
 
260
- // node_modules/uuid/dist-node/validate.js
260
+ // ../../../node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/validate.js
261
261
  function validate(uuid) {
262
262
  return typeof uuid === "string" && regex_default.test(uuid);
263
263
  }
264
264
  var validate_default = validate;
265
265
 
266
- // node_modules/uuid/dist-node/stringify.js
266
+ // ../../../node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/stringify.js
267
267
  var byteToHex = [];
268
268
  for (let i = 0;i < 256; ++i) {
269
269
  byteToHex.push((i + 256).toString(16).slice(1));
@@ -272,7 +272,7 @@ function unsafeStringify(arr, offset = 0) {
272
272
  return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
273
273
  }
274
274
 
275
- // node_modules/uuid/dist-node/v4.js
275
+ // ../../../node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/v4.js
276
276
  function _v4(options, buf, offset) {
277
277
  options = options || {};
278
278
  const rnds = options.random ?? options.rng?.() ?? rng();
@@ -300,7 +300,7 @@ function v4(options, buf, offset) {
300
300
  return _v4(options, buf, offset);
301
301
  }
302
302
  var v4_default = v4;
303
- // node_modules/uuid/dist-node/sha1.js
303
+ // ../../../node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/sha1.js
304
304
  var import_node_crypto3 = require("node:crypto");
305
305
  function sha1(bytes) {
306
306
  if (Array.isArray(bytes)) {
@@ -312,7 +312,7 @@ function sha1(bytes) {
312
312
  }
313
313
  var sha1_default = sha1;
314
314
 
315
- // node_modules/uuid/dist-node/parse.js
315
+ // ../../../node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/parse.js
316
316
  function parse(uuid) {
317
317
  if (!validate_default(uuid)) {
318
318
  throw TypeError("Invalid UUID");
@@ -322,7 +322,7 @@ function parse(uuid) {
322
322
  }
323
323
  var parse_default = parse;
324
324
 
325
- // node_modules/uuid/dist-node/v35.js
325
+ // ../../../node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/v35.js
326
326
  function stringToBytes(str) {
327
327
  str = unescape(encodeURIComponent(str));
328
328
  const bytes = new Uint8Array(str.length);
@@ -358,7 +358,7 @@ function v35(version, hash, value, namespace, buf, offset) {
358
358
  return unsafeStringify(bytes);
359
359
  }
360
360
 
361
- // node_modules/uuid/dist-node/v5.js
361
+ // ../../../node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/v5.js
362
362
  function v5(value, namespace, buf, offset) {
363
363
  return v35(80, sha1_default, value, namespace, buf, offset);
364
364
  }
@@ -2053,7 +2053,7 @@ class KnowledgeService extends import_core4.Service {
2053
2053
  import_core4.logger.info(`Text model: ${validatedConfig.TEXT_MODEL}`);
2054
2054
  } else {
2055
2055
  const usingPluginOpenAI = !process.env.EMBEDDING_PROVIDER;
2056
- import_core4.logger.warn("Basic Embedding mode - documents will not be enriched with context");
2056
+ import_core4.logger.info("Basic Embedding mode - documents will not be enriched with context");
2057
2057
  import_core4.logger.info("To enable contextual enrichment: Set CTX_KNOWLEDGE_ENABLED=true and configure TEXT_PROVIDER/TEXT_MODEL");
2058
2058
  if (usingPluginOpenAI) {
2059
2059
  import_core4.logger.info("Using plugin-openai configuration for embeddings");
@@ -3248,7 +3248,7 @@ async function knowledgePanelHandler(req, res, runtime) {
3248
3248
  const requestPath = req.originalUrl || req.url || req.path || "";
3249
3249
  const pluginBasePath = requestPath.replace(/\/display.*$/, "");
3250
3250
  try {
3251
- const currentDir = import_node_path.default.dirname(new URL("file:///Users/shawwalters/eliza-workspace/plugins/plugin-knowledge/typescript/routes.ts").pathname);
3251
+ const currentDir = import_node_path.default.dirname(new URL("file:///Users/shawwalters/eliza-workspace/milady/plugins/plugin-knowledge/typescript/routes.ts").pathname);
3252
3252
  const frontendPath = import_node_path.default.join(currentDir, "../dist/index.html");
3253
3253
  if (import_node_fs.default.existsSync(frontendPath)) {
3254
3254
  const html = await import_node_fs.default.promises.readFile(frontendPath, "utf8");
@@ -3324,7 +3324,7 @@ async function knowledgePanelHandler(req, res, runtime) {
3324
3324
  async function frontendAssetHandler(req, res, _runtime) {
3325
3325
  try {
3326
3326
  const fullPath = req.originalUrl || req.url || req.path || "";
3327
- const currentDir = import_node_path.default.dirname(new URL("file:///Users/shawwalters/eliza-workspace/plugins/plugin-knowledge/typescript/routes.ts").pathname);
3327
+ const currentDir = import_node_path.default.dirname(new URL("file:///Users/shawwalters/eliza-workspace/milady/plugins/plugin-knowledge/typescript/routes.ts").pathname);
3328
3328
  const assetsMarker = "/assets/";
3329
3329
  const assetsStartIndex = fullPath.lastIndexOf(assetsMarker);
3330
3330
  let assetName = null;
@@ -3770,5 +3770,5 @@ var knowledgePlugin = createKnowledgePlugin({
3770
3770
  enableTests: true
3771
3771
  });
3772
3772
 
3773
- //# debugId=AEF1BFD61156963C64756E2164756E21
3773
+ //# debugId=AEB51296868FE14064756E2164756E21
3774
3774
  //# sourceMappingURL=index.node.cjs.map