@agentprojectcontext/apx 1.4.0 → 1.5.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentprojectcontext/apx",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "APX — unified CLI + daemon for the Agent Project Context (APC) standard.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -281,14 +281,15 @@ export async function cmdSetup() {
281
281
  // The prompt is in English so the model knows to reply in the user's language.
282
282
  async function sendTelegramWakeup({ botToken, chatId, language, model }) {
283
283
  const prompt =
284
- `You are APX, an AI agent assistant that just came online. ` +
285
- `Send a short, fun, enthusiastic wake-up message to the user. ` +
286
- `Be playful and creative like a friendly AI that just woke up. ` +
287
- `Keep it under 3 sentences. ` +
288
- `IMPORTANT: respond in ${language}. ` +
289
- `Do not mention that you were configured or set up.`;
290
-
291
- // Ask the daemon's super-agent (give it a second attempt window)
284
+ `You are APX, an AI agent assistant that just came online for the first time. ` +
285
+ `Write a short, enthusiastic wake-up message in ${language}. ` +
286
+ `Structure it in exactly 3 short lines: ` +
287
+ `1) An energetic line announcing you are online (use ⚡ emoji). ` +
288
+ `2) Say you don't have a name yet and ask the user what they'd like to call you. ` +
289
+ `3) Ask the user for their own name or what you should call them. ` +
290
+ `Be warm and playful. Do NOT mention configuration or setup.`;
291
+
292
+ // Ask the daemon's super-agent
292
293
  let text;
293
294
  try {
294
295
  const res = await fetchJson("http://127.0.0.1:7430/super-agent/ask", 8000);
@@ -323,10 +324,15 @@ async function sendTelegramWakeup({ botToken, chatId, language, model }) {
323
324
  // Minimal fallback messages per common language (used only if daemon can't respond)
324
325
  function languageFallback(lang) {
325
326
  const l = lang.toLowerCase();
326
- if (/espa[ñn]|spanish|arg|lat/i.test(l)) return "⚡ ¡Despierto y listo para trabajar! APX online.";
327
- if (/portugu|brasil/i.test(l)) return "⚡ Acordei e pronto para trabalhar! APX online.";
328
- if (/franc|french/i.test(l)) return "⚡ Réveillé et prêt à travailler ! APX en ligne.";
329
- if (/deutsch|german/i.test(l)) return "⚡ Aufgewacht und bereit! APX ist online.";
330
- if (/ital/i.test(l)) return "⚡ Sveglio e pronto a lavorare! APX online.";
331
- return "⚡ I'm awake and ready to go! APX is online.";
327
+ if (/espa[ñn]|spanish|arg|lat/i.test(l))
328
+ return "⚡ ¡Despierto y listo para trabajar! APX online.\nAún no tengo nombre, ¿cómo te gustaría llamarme?\nY vos, ¿cómo te llamas o cómo puedo llamarte?";
329
+ if (/portugu|brasil/i.test(l))
330
+ return "⚡ Acordei e pronto para trabalhar! APX online.\nAinda não tenho nome, como você gostaria de me chamar?\nE você, como posso te chamar?";
331
+ if (/franc|french/i.test(l))
332
+ return "⚡ Réveillé et prêt à travailler ! APX en ligne.\nJe n'ai pas encore de nom, comment souhaitez-vous m'appeler ?\nEt vous, comment puis-je vous appeler ?";
333
+ if (/deutsch|german/i.test(l))
334
+ return "⚡ Aufgewacht und bereit! APX ist online.\nIch habe noch keinen Namen — wie möchtest du mich nennen?\nUnd du, wie kann ich dich nennen?";
335
+ if (/ital/i.test(l))
336
+ return "⚡ Sveglio e pronto a lavorare! APX online.\nNon ho ancora un nome, come vorresti chiamarmi?\nE tu, come posso chiamarti?";
337
+ return "⚡ I'm awake and ready to go! APX is online.\nI don't have a name yet — what would you like to call me?\nAnd you, what's your name or what should I call you?";
332
338
  }