koishi-plugin-chatluna-long-memory 1.2.5 → 1.2.7

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/lib/index.cjs CHANGED
@@ -1424,7 +1424,7 @@ var MemorySearchTool = class extends import_tools.StructuredTool {
1424
1424
  async _call(input, _, config) {
1425
1425
  try {
1426
1426
  const result = await this.ctx.chatluna_long_memory.retrieveMemory(
1427
- config.metadata.conversationId,
1427
+ config.configurable.conversationId,
1428
1428
  input.content,
1429
1429
  input.layer != null ? input.layer.map(
1430
1430
  (layer) => MemoryRetrievalLayerType[layer.toUpperCase()]
@@ -1489,7 +1489,7 @@ var MemoryAddTool = class extends import_tools.StructuredTool {
1489
1489
  };
1490
1490
  });
1491
1491
  await this.ctx.chatluna_long_memory.addMemories(
1492
- config.metadata.conversationId,
1492
+ config.configurable.conversationId,
1493
1493
  enhancedMemories,
1494
1494
  input.layer != null ? input.layer.map(
1495
1495
  (layer) => MemoryRetrievalLayerType[layer.toUpperCase()]
@@ -1544,7 +1544,7 @@ var MemoryDeleteTool = class extends import_tools.StructuredTool {
1544
1544
  async _call(input, _, config) {
1545
1545
  try {
1546
1546
  await this.ctx.chatluna_long_memory.deleteMemories(
1547
- config.metadata.conversationId,
1547
+ config.configurable.conversationId,
1548
1548
  input.memoryIds,
1549
1549
  input.layer != null ? input.layer.map(
1550
1550
  (layer) => MemoryRetrievalLayerType[layer.toUpperCase()]
package/lib/index.mjs CHANGED
@@ -1390,7 +1390,7 @@ var MemorySearchTool = class extends StructuredTool {
1390
1390
  async _call(input, _, config) {
1391
1391
  try {
1392
1392
  const result = await this.ctx.chatluna_long_memory.retrieveMemory(
1393
- config.metadata.conversationId,
1393
+ config.configurable.conversationId,
1394
1394
  input.content,
1395
1395
  input.layer != null ? input.layer.map(
1396
1396
  (layer) => MemoryRetrievalLayerType[layer.toUpperCase()]
@@ -1455,7 +1455,7 @@ var MemoryAddTool = class extends StructuredTool {
1455
1455
  };
1456
1456
  });
1457
1457
  await this.ctx.chatluna_long_memory.addMemories(
1458
- config.metadata.conversationId,
1458
+ config.configurable.conversationId,
1459
1459
  enhancedMemories,
1460
1460
  input.layer != null ? input.layer.map(
1461
1461
  (layer) => MemoryRetrievalLayerType[layer.toUpperCase()]
@@ -1510,7 +1510,7 @@ var MemoryDeleteTool = class extends StructuredTool {
1510
1510
  async _call(input, _, config) {
1511
1511
  try {
1512
1512
  await this.ctx.chatluna_long_memory.deleteMemories(
1513
- config.metadata.conversationId,
1513
+ config.configurable.conversationId,
1514
1514
  input.memoryIds,
1515
1515
  input.layer != null ? input.layer.map(
1516
1516
  (layer) => MemoryRetrievalLayerType[layer.toUpperCase()]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-chatluna-long-memory",
3
3
  "description": "long memory for chatluna",
4
- "version": "1.2.5",
4
+ "version": "1.2.7",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.mjs",
7
7
  "typings": "lib/index.d.ts",
@@ -52,7 +52,7 @@
52
52
  "jieba-wasm": "^2.2.0",
53
53
  "stopwords-iso": "^1.1.0",
54
54
  "tiny-segmenter": "^0.2.0",
55
- "zod": "^3.25.0-canary.20250211T214501"
55
+ "zod": "3.25.76"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/jsdom": "^21.1.7",
@@ -63,7 +63,7 @@
63
63
  },
64
64
  "peerDependencies": {
65
65
  "koishi": "^4.18.7",
66
- "koishi-plugin-chatluna": "^1.3.0-alpha.26"
66
+ "koishi-plugin-chatluna": "^1.3.0-alpha.29"
67
67
  },
68
68
  "resolutions": {
69
69
  "@langchain/core": "0.3.62",