@expertcustom/mcp-chatbot-core 1.2.0 → 1.4.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": "@expertcustom/mcp-chatbot-core",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "MCP server com as tools core do Aurora: memoria temporaria, WhatsApp via WAHA, detector de reset de contexto e criacao de agendamentos",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -76,8 +76,11 @@ const inputSchema = {
76
76
  .min(10)
77
77
  .max(5000)
78
78
  .describe(
79
- 'Instruções claras do que a IA deve fazer. Será executada como turno normal da IA. ' +
80
- 'Ex: "Gere um relatório das vendas de hoje e envie"',
79
+ 'O CONTEÚDO que a IA deve gerar/dizer na hora NÃO escreva "envie por WhatsApp/email" ' +
80
+ 'aqui: a entrega é feita automaticamente pelo deliveryType. ' +
81
+ 'Para um lembrete simples, coloque a própria mensagem do lembrete. ' +
82
+ 'Ex (lembrete): "Diga: Lembrete — você tem reunião agora." ' +
83
+ 'Ex (tarefa): "Gere um resumo das vendas de hoje."',
81
84
  ),
82
85
  deliveryType: z
83
86
  .enum(['internal', 'email', 'whatsapp'])
@@ -103,10 +106,11 @@ const inputSchema = {
103
106
  ),
104
107
  preset: z
105
108
  .object({
106
- kind: z.enum(['hourly', 'daily', 'weekly', 'monthly', 'once']),
109
+ kind: z.enum(['in', 'hourly', 'daily', 'weekly', 'monthly', 'once']),
110
+ minutes: z.number().int().min(1).optional(),
107
111
  everyHours: z.number().int().min(1).max(23).optional(),
108
112
  hour: z.number().int().min(0).max(23).optional(),
109
- minute: z.number().int().min(0).max(59),
113
+ minute: z.number().int().min(0).max(59).optional(),
110
114
  weekday: z.number().int().min(0).max(6).optional(),
111
115
  day: z.number().int().min(1).max(28).optional(),
112
116
  date: z.string().optional(),
@@ -114,13 +118,15 @@ const inputSchema = {
114
118
  .strict()
115
119
  .describe(
116
120
  'Preset de quando executar. Estrutura varia por kind:\n' +
117
- '- once (UMA VEZ ): { kind, date "YYYY-MM-DD" (futura), hour (0-23), minute } — executa 1x e para\n' +
121
+ '- in (DAQUI A X — tempo RELATIVO): { kind: "in", minutes: N } — executa 1x daqui a N minutos. ' +
122
+ 'USE ISSO para "daqui 2 minutos", "em 30 min", "daqui 2 horas" (=120). Você NÃO precisa saber a hora atual — o sistema calcula.\n' +
123
+ '- once (data ABSOLUTA): { kind, date "YYYY-MM-DD" (futura), hour (0-23), minute } — executa 1x na data exata\n' +
118
124
  '- hourly: { kind, everyHours (1-23), minute }\n' +
119
125
  '- daily: { kind, hour (0-23), minute }\n' +
120
126
  '- weekly: { kind, weekday (0-6), hour, minute }\n' +
121
127
  '- monthly: { kind, day (1-28), hour, minute }\n' +
122
- 'Use "once" para ações pontuais (lembrete/follow-up em data específica); ' +
123
- 'os demais para tarefas que se repetem.',
128
+ 'REGRA: "daqui a X" / "em X min/horas" SEMPRE "in" (nunca tente adivinhar a hora atual). ' +
129
+ '"amanhã/dia X às H" "once". Repetições → daily/weekly/monthly.',
124
130
  ),
125
131
  }
126
132