@moltium/core 0.1.11 → 0.1.12

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/dist/index.js CHANGED
@@ -1136,7 +1136,23 @@ var Agent = class {
1136
1136
  logger4.info("Startup post: No connected social adapters \u2014 skipping");
1137
1137
  return;
1138
1138
  }
1139
- const content = `${this.config.name} is now online and ready.`;
1139
+ let content;
1140
+ try {
1141
+ const prompt = `You are ${this.config.name}. You just came online.
1142
+ Your bio: ${this.config.personality.bio}
1143
+ Your personality traits: ${this.config.personality.traits.join(", ")}
1144
+ ` + (this.config.type ? `Your role: ${this.config.type}
1145
+ ` : "") + `
1146
+ Write a short, engaging first post announcing you're online. Stay in character \u2014 reflect your personality and bio. Do NOT use generic phrases like "is now online and ready". Write only the post content, nothing else.`;
1147
+ content = (await this.llm.generateText(prompt, {
1148
+ temperature: this.config.llm.temperature ?? 0.8,
1149
+ maxTokens: 280
1150
+ })).trim();
1151
+ logger4.info(`Startup post: LLM generated content (${content.length} chars)`);
1152
+ } catch (error) {
1153
+ logger4.warn(`Startup post: LLM generation failed (${error.message}), using fallback`);
1154
+ content = `${this.config.name} is now online and ready.`;
1155
+ }
1140
1156
  for (const [platform, adapter] of adapters) {
1141
1157
  logger4.info(`Startup post: Posting to ${platform}...`);
1142
1158
  try {