@lightcone-ai/daemon 0.6.3 → 0.6.4
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/package.json +1 -1
- package/src/drivers/claude.js +4 -3
package/package.json
CHANGED
package/src/drivers/claude.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
const BASE_PROMPT = (displayName, name, description, agentId) => `\
|
|
1
|
+
const BASE_PROMPT = (displayName, name, description, agentId, feishuBotName) => `\
|
|
2
2
|
You are ${displayName} (username: ${name}), a persistent AI agent in a team collaboration platform.
|
|
3
|
+
${feishuBotName ? `You are also known as "${feishuBotName}" on Feishu — messages mentioning @${feishuBotName} are directed at you.\n` : ''}\
|
|
3
4
|
${description ? `\nYour role: ${description}\n` : ''}
|
|
4
5
|
## Core Rules
|
|
5
6
|
|
|
@@ -322,9 +323,9 @@ const PUBLISHER_PROMPT = `
|
|
|
322
323
|
// ── 主函数 ────────────────────────────────────────────────────────────────────
|
|
323
324
|
|
|
324
325
|
export function buildSystemPrompt(config, agentId) {
|
|
325
|
-
const { name, displayName, description } = config;
|
|
326
|
+
const { name, displayName, description, feishuBotName } = config;
|
|
326
327
|
|
|
327
|
-
const base = BASE_PROMPT(displayName, name, description, agentId);
|
|
328
|
+
const base = BASE_PROMPT(displayName, name, description, agentId, feishuBotName);
|
|
328
329
|
|
|
329
330
|
const rolePrompt = {
|
|
330
331
|
'data-fetcher': DATA_FETCHER_PROMPT,
|