@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 +1 -1
- package/src/cli/commands/setup.js +20 -14
package/package.json
CHANGED
|
@@ -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
|
-
`
|
|
286
|
-
`
|
|
287
|
-
`
|
|
288
|
-
`
|
|
289
|
-
`
|
|
290
|
-
|
|
291
|
-
|
|
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))
|
|
327
|
-
|
|
328
|
-
if (/
|
|
329
|
-
|
|
330
|
-
if (/
|
|
331
|
-
|
|
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
|
}
|