mioku-plugin-chat 2.8.0 → 2.8.1

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.
@@ -86,7 +86,6 @@ export async function runChat(
86
86
 
87
87
  const staticCtx: StaticPromptContext = {
88
88
  config: promptCtx.config,
89
- botNickname: promptCtx.botNickname,
90
89
  aiService: promptCtx.aiService,
91
90
  enableExternalSkills: promptCtx.config.enableExternalSkills,
92
91
  triggerSkillRole: toolCtx.triggerSkillRole,
package/core/prompt.ts CHANGED
@@ -15,13 +15,12 @@ import type { SkillSessionManager } from "../manage/skill-session";
15
15
  * Everything here is required to be identical across consecutive requests for the same bot
16
16
  * so OpenAI's auto prompt caching can hit the system block.
17
17
  *
18
- * Concretely: persona, config flags, enabled features, allowed external skills, persona style.
19
- * Anything that changes turn-to-turn (time, group, history, target, emotion, replies context, etc.)
18
+ * Concretely: persona, config flags, enabled features, allowed external skills.
19
+ * Anything that changes turn-to-turn (time, group, history, target, emotion, reply style, replies context, etc.)
20
20
  * belongs in DynamicPromptContext instead.
21
21
  */
22
22
  export interface StaticPromptContext {
23
23
  config: ChatConfig;
24
- botNickname: string;
25
24
  aiService: AIService;
26
25
  enableExternalSkills: boolean;
27
26
  triggerSkillRole?: SkillPermissionRole;
@@ -210,7 +209,6 @@ export function buildStaticSystemPrompt(ctx: StaticPromptContext): string {
210
209
  const sections: string[] = [];
211
210
 
212
211
  sections.push(buildPersonaSection(ctx.config.persona));
213
- sections.push(buildReplyStyleSection(ctx.config, ctx.botNickname, lengthStrength));
214
212
  sections.push(
215
213
  buildResponseFormatSection(
216
214
  ctx,
@@ -455,6 +453,7 @@ export function buildDynamicUserContext(ctx: DynamicPromptContext): string {
455
453
  sections.push(`## Planner's Analysis\n${ctx.plannerThoughts}`);
456
454
  }
457
455
 
456
+ sections.push(buildReplyStyleSection(ctx.config, ctx.botNickname, lengthStrength));
458
457
  sections.push(buildEmotionSection(ctx));
459
458
 
460
459
  return sections.join("\n\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mioku-plugin-chat",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "description": "AI 智能聊天插件",
5
5
  "main": "index.ts",
6
6
  "type": "module",