@lionchat/mcp-server 1.17.0 → 1.18.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.
@@ -9,7 +9,14 @@ let cachedInstructions = null;
9
9
  export function getServerInstructions() {
10
10
  if (cachedInstructions !== null)
11
11
  return cachedInstructions;
12
+ // AIDEV-NOTE: [manual-nao-chegava 31/08] A 1a entrada e a que VALE nos dois modos, porque
13
+ // docs/ e irmao do arquivo compilado: em producao __dirname=dist/ (achado: dist/docs/) e em
14
+ // desenvolvimento __dirname=src/ (achado: src/docs/). As duas seguintes apontam um nivel ACIMA
15
+ // e NUNCA existiram no pacote publicado — sem a 1a, o servidor caia no texto de reserva e a IA
16
+ // conectada nunca recebia o manual (medido ao vivo em 30/08: a instrucao entregue era so a
17
+ // frase curta abaixo). Ficam como rede pra layout futuro; nao remover a primeira.
12
18
  const candidates = [
19
+ join(__dirname, 'docs/instructions.md'),
13
20
  join(__dirname, '../docs/instructions.md'),
14
21
  join(__dirname, '../../src/docs/instructions.md'),
15
22
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"instructions.js","sourceRoot":"","sources":["../src/instructions.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,yEAAyE;AACzE,uEAAuE;AAEvE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAE1D,IAAI,kBAAkB,GAAkB,IAAI,CAAC;AAE7C,MAAM,UAAU,qBAAqB;IACnC,IAAI,kBAAkB,KAAK,IAAI;QAAE,OAAO,kBAAkB,CAAC;IAE3D,MAAM,UAAU,GAAG;QACjB,IAAI,CAAC,SAAS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CAAC;YACzB,kBAAkB,GAAG,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;YACrD,OAAO,kBAAkB,CAAC;QAC5B,CAAC;IACH,CAAC;IAED,kBAAkB;QAChB,oGAAoG,CAAC;IACvG,OAAO,kBAAkB,CAAC;AAC5B,CAAC"}
package/endpoints.json CHANGED
@@ -9906,6 +9906,20 @@
9906
9906
  "location": "body",
9907
9907
  "required": false,
9908
9908
  "description": "Cor hex (#RRGGBB) dos compromissos deste tipo no calendario (2026-08-19); vazio = cor do agente. A tarefa devolve booking_color ja resolvido."
9909
+ },
9910
+ {
9911
+ "name": "booking_event_type.confirmation_message",
9912
+ "type": "string",
9913
+ "location": "body",
9914
+ "required": false,
9915
+ "description": "Texto da mensagem de CONFIRMACAO enviada ao paciente quando o agendamento e criado. Aceita variaveis {{nome}}, {{titulo}}, {{data}}, {{horario}} e quebra de linha (\\n). Negrito do WhatsApp = *texto*."
9916
+ },
9917
+ {
9918
+ "name": "booking_event_type.follow_up_schedules_attributes",
9919
+ "type": "array",
9920
+ "location": "body",
9921
+ "required": false,
9922
+ "description": "Lembretes do agendamento (o bloco '1d antes do evento' da tela). Array de objetos: {id (obrigatorio para EDITAR o existente — sem id CRIA outro), offset_direction ('before'/'after'), offset_days, offset_hours, offset_minutes, message_body, blocks, active, position, _destroy}. IMPORTANTE: message_body E blocks[0].content precisam do MESMO texto — a tela le blocks e o envio usa message_body; gravar so um deixa a tela e a mensagem entregue diferentes. blocks = [{type:'text', content:'...'}]. Aceita variaveis {{titulo}}, {{data}}, {{horario}} e quebra de linha (\\n)."
9909
9923
  }
9910
9924
  ],
9911
9925
  "returns": "tipo de evento criado (com novo ID)",
@@ -9953,7 +9967,7 @@
9953
9967
  "method": "PATCH",
9954
9968
  "path": "/api/v1/accounts/{account_id}/booking_event_types/{id}",
9955
9969
  "title": "Atualizar Tipo de Evento",
9956
- "description": "Atualiza um tipo de evento de agendamento. Atualiza campos do tipo de evento existente. Suporta atualização parcial (PATCH) — só campos enviados são alterados. Campos suportados: booking_event_type.title, booking_event_type.active.",
9970
+ "description": "Atualiza um tipo de evento de agendamento. Suporta atualizacao parcial (PATCH) — so campos enviados sao alterados. Alem de title/active/color/slug/user_id, aceita os TEXTOS que o paciente recebe: confirmation_message (confirmacao) e follow_up_schedules_attributes (lembretes).",
9957
9971
  "category": "Tipos de Evento",
9958
9972
  "params": [
9959
9973
  {
@@ -9997,6 +10011,20 @@
9997
10011
  "location": "body",
9998
10012
  "required": false,
9999
10013
  "description": "Cor hex (#RRGGBB) dos compromissos deste tipo no calendario (2026-08-19); vazio = cor do agente. A tarefa devolve booking_color ja resolvido."
10014
+ },
10015
+ {
10016
+ "name": "booking_event_type.confirmation_message",
10017
+ "type": "string",
10018
+ "location": "body",
10019
+ "required": false,
10020
+ "description": "Texto da mensagem de CONFIRMACAO enviada ao paciente quando o agendamento e criado. Aceita variaveis {{nome}}, {{titulo}}, {{data}}, {{horario}} e quebra de linha (\\n). Negrito do WhatsApp = *texto*."
10021
+ },
10022
+ {
10023
+ "name": "booking_event_type.follow_up_schedules_attributes",
10024
+ "type": "array",
10025
+ "location": "body",
10026
+ "required": false,
10027
+ "description": "Lembretes do agendamento (o bloco '1d antes do evento' da tela). Array de objetos: {id (obrigatorio para EDITAR o existente — sem id CRIA outro), offset_direction ('before'/'after'), offset_days, offset_hours, offset_minutes, message_body, blocks, active, position, _destroy}. IMPORTANTE: message_body E blocks[0].content precisam do MESMO texto — a tela le blocks e o envio usa message_body; gravar so um deixa a tela e a mensagem entregue diferentes. blocks = [{type:'text', content:'...'}]. Aceita variaveis {{titulo}}, {{data}}, {{horario}} e quebra de linha (\\n)."
10000
10028
  }
10001
10029
  ],
10002
10030
  "returns": "tipo de evento atualizado",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lionchat/mcp-server",
3
- "version": "1.17.0",
3
+ "version": "1.18.0",
4
4
  "description": "MCP server for LionChat API — 547 tools + 10 resources + 9 prompts. Audit-log aware, completion API, progress notifications.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",