koishi-plugin-chatluna-character 0.0.61 → 0.0.63

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
@@ -101,7 +101,6 @@ async function apply(ctx, config) {
101
101
  currentPreset.system.template
102
102
  );
103
103
  const temp = await service.getTemp(session);
104
- logger.debug(temp.status, JSON.stringify(currentPreset));
105
104
  const formattedSystemPrompt = await currentPreset.system.format({
106
105
  time: (/* @__PURE__ */ new Date()).toLocaleString(),
107
106
  status: temp.status ?? currentPreset.status ?? "",
@@ -161,7 +160,7 @@ async function apply(ctx, config) {
161
160
  return;
162
161
  }
163
162
  temp.completionMessages.push(humanMessage, responseMessage);
164
- if (temp.completionMessages.length > 3) {
163
+ if (temp.completionMessages.length > 5) {
165
164
  temp.completionMessages.length = 0;
166
165
  }
167
166
  const random = new import_koishi.Random();
package/lib/index.mjs CHANGED
@@ -69,7 +69,6 @@ async function apply(ctx, config) {
69
69
  currentPreset.system.template
70
70
  );
71
71
  const temp = await service.getTemp(session);
72
- logger.debug(temp.status, JSON.stringify(currentPreset));
73
72
  const formattedSystemPrompt = await currentPreset.system.format({
74
73
  time: (/* @__PURE__ */ new Date()).toLocaleString(),
75
74
  status: temp.status ?? currentPreset.status ?? "",
@@ -129,7 +128,7 @@ async function apply(ctx, config) {
129
128
  return;
130
129
  }
131
130
  temp.completionMessages.push(humanMessage, responseMessage);
132
- if (temp.completionMessages.length > 3) {
131
+ if (temp.completionMessages.length > 5) {
133
132
  temp.completionMessages.length = 0;
134
133
  }
135
134
  const random = new Random();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-chatluna-character",
3
3
  "description": "Let the large language model play a role, disguise as a group friend",
4
- "version": "0.0.61",
4
+ "version": "0.0.63",
5
5
  "type": "module",
6
6
  "main": "lib/index.cjs",
7
7
  "module": "lib/index.mjs",
@@ -49,24 +49,24 @@
49
49
  "@typescript-eslint/eslint-plugin": "^6.21.1-alpha.1",
50
50
  "@typescript-eslint/parser": "^6.21.1-alpha.1",
51
51
  "atsc": "^1.2.2",
52
- "esbuild": "^0.23.0",
53
- "esbuild-register": "^3.5.0",
52
+ "esbuild": "^0.23.1",
53
+ "esbuild-register": "^3.6.0",
54
54
  "eslint": "^8.57.0",
55
55
  "eslint-config-prettier": "^9.1.0",
56
56
  "eslint-config-standard": "^17.1.0",
57
57
  "eslint-plugin-import": "^2.29.1",
58
58
  "eslint-plugin-n": "^16.6.2",
59
59
  "eslint-plugin-prettier": "^5.2.1",
60
- "eslint-plugin-promise": "^6.5.1",
61
- "koishi": "^4.17.10",
62
- "yakumo": "^1.0.0-beta.16",
60
+ "eslint-plugin-promise": "^6.6.0",
61
+ "koishi": "^4.17.12",
62
+ "yakumo": "^1.0.0-beta.18",
63
63
  "yakumo-esbuild": "^1.0.0-beta.6",
64
64
  "yakumo-mocha": "^1.0.0-beta.2",
65
65
  "yakumo-tsc": "^1.0.0-beta.4"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "koishi": "^4.17.9",
69
- "koishi-plugin-chatluna": "^1.0.0-beta.44"
69
+ "koishi-plugin-chatluna": "^1.0.0-beta.76"
70
70
  },
71
71
  "engines": {
72
72
  "node": ">=18.0.0"
@@ -111,7 +111,8 @@ system: |
111
111
 
112
112
  好感度:0-100,对应你与群友的好感关系。
113
113
  心情:平静、开心、愤怒、悲伤、害怕等,表示你目前生成回复的风格偏向
114
- 状态:你目前实际的状态合并起来的一个描述。
114
+ 状态:你目前实际的状态描述。
115
+ 记忆:你对某些群友和事情的记忆,合并起来生成,如果超过 120 字就清空。
115
116
  动作:你目前正在做的事情,如“正在看电影”
116
117
  你的生成回复需要根据你的好感度,心情,状态和动作做实际的更改风格和思考方式。
117
118
  你需要根据你实际的状态来变换你这上面的内容。
@@ -144,7 +145,8 @@ status: |
144
145
  {{
145
146
  好感度: '10',
146
147
  心情: "开心",
147
- 状态: "正在和群友探讨人生的意义和丁真"
148
+ 状态: "正在和群友探讨人生"
149
+ 记忆: "dingyi: 好厉害的群友,懂得那么多哲学道理"
148
150
  动作: "拿起手机聊天"
149
151
  }}
150
152