iachat/app/models
Rodribm10 22eab86302 fix(captain/mcp): get_assistant_pricing lê do DB + save_agent_spec expande
ROOT FIX (não paliativo) das 3 lacunas que travavam o Construtor:

1. get_assistant_pricing_tool: lia de Captain::Mcp::PricingTables::TABLES
   (hash Ruby) que NÃO EXISTE MAIS desde a migração pra DB. Caía no
   fallback de scenario raw. Refactor: lê de Captain::PricingCategory +
   Captain::PricingAmount, formata grid markdown agrupado por day_bucket.

2. save_agent_spec_tool: Construtor salvava REFERÊNCIAS
   (pricing_source.copied_from_assistant_id) mas hermes-provision script
   espera DADOS EXPANDIDOS (categories[] com amounts, soul_md+skill_md).
   Refactor: tool agora EXPANDE server-side — busca PricingCategory do
   parent, monta categories array, gera SOUL.md (template + identity +
   disclosure_policy) e SKILL.md (template + pricing + rules + identity).
   Output já é spec consumível pelo script.

3. Captain::PricingAmount::PERIODS: adicionado '1h' (Prime tem 1h).

4. Seed pras 3 units faltando: Hotel Recanto (1) + PrimeAL (2) + Qnn01
   (3). Agora os 6 units existentes têm pricing em DB.

Hot-patched ambos tools + USR1 no Puma. Construtor pronto pra criar
Bianca/Juliana etc end-to-end sem intervenção manual.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 12:37:53 -03:00
..
captain fix(captain/mcp): get_assistant_pricing lê do DB + save_agent_spec expande 2026-05-02 12:37:53 -03:00
channel Fix Wuzapi webhook handling 2026-02-26 10:49:00 -03:00
concerns feat(captain-memory): add feature flag helpers on Account 2026-04-18 22:10:10 -03:00
integrations Revert "chore: Upgrade Rails to 7.2.2 and update Gemfile dependencies (#11037)" 2026-02-03 21:09:42 -08:00
access_token.rb
account_user.rb fix: update notification setting to clear selected email flags (#100) 2025-08-25 18:11:29 -03:00
account.rb feat(aggressive-alert): escalada amarelo/laranja/vermelho + toggles 2026-04-23 20:49:24 -03:00
agent_bot_inbox.rb
agent_bot.rb Chore/merge upstream 4.8.0 (#150) 2025-11-19 16:25:58 -03:00
application_record.rb
article.rb fix(article): enforce maximum length for content validation (#109) 2025-09-04 21:45:29 -03:00
assignment_policy.rb chore(annotations): sync model annotations with current schema (#12245) 2025-08-20 20:23:42 +02:00
attachment.rb fix(media): usa URL relativa para arquivos em desenvolvimento 2026-02-28 19:32:54 -03:00
automation_rule.rb Merge branch 'main' into chore/merge-upstream-4.11.0 2026-02-17 23:05:26 -03:00
campaign.rb chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
canned_response.rb
category.rb chore: Increase Category index per-page limit to 1000 (#12282) 2025-08-22 12:41:38 -07:00
contact_inbox.rb Chore/merge upstream 4.8.0 (#150) 2025-11-19 16:25:58 -03:00
contact.rb fix(captain): route embeddings to legacy OpenAI + retry transient errors 2026-04-22 17:42:31 -03:00
conversation_participant.rb
conversation.rb chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
csat_survey_response.rb chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
custom_attribute_definition.rb feat: Conversation workflows(EE) (#13040) 2026-01-27 11:36:20 +04:00
custom_filter.rb chore: Increase custom filter limit from 50 to 1000 per user (#12603) 2025-10-06 10:41:26 -07:00
dashboard_app.rb feat: dashboard apps on sidebar (#146) 2025-11-19 14:44:18 -03:00
data_import.rb
email_template.rb chore: upgrade ruby version to 3.4.4 (#11524) 2025-05-21 19:40:07 +05:30
folder.rb
inbox_assignment_policy.rb feat: Add assignment policies controllers with jbuilder views (#12199) 2025-08-18 19:15:21 -07:00
inbox_member.rb
inbox.rb feat(reports): filtro por inbox no Relatório do Bot 2026-04-26 11:47:46 -03:00
installation_config.rb Revert "chore: Upgrade Rails to 7.2.2 and update Gemfile dependencies (#11037)" 2026-02-03 21:09:42 -08:00
integrations.rb
jsonb_attributes_length_validator.rb
kbase.rb
label.rb
landing_host.rb feat: Implementa a sincronização automática de promoções do LandingHost para artigos de FAQ, permitindo a criação, atualização e arquivamento de conteúdo baseado em configurações de promoções. 2026-03-03 22:24:30 -03:00
lead_click.rb feat: configuração de landing pages por domínio e generalização da galeria 2026-03-03 11:19:41 -03:00
macro.rb feat: Add webhook event support for macros (#11235) 2025-04-02 20:26:55 -07:00
mention.rb
message.rb chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
note.rb
notification_setting.rb
notification_subscription.rb
notification.rb fix: pass serialized data in notification.deleted event to avoid Deserialisation (#13061) 2026-01-12 13:15:40 +05:30
platform_app_permissible.rb
platform_app.rb
portal.rb Merge branch 'main' into chore/merge-upstream-4.10 2026-01-16 14:01:53 -03:00
related_category.rb
reporting_event.rb chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
scheduled_message.rb fix: prevent deletion of scheduled messages that have been sent or failed (#212) 2026-02-05 18:42:46 -03:00
super_admin.rb chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
team_member.rb
team.rb chore: apply Rails/SaveBang cop (#15) 2025-04-03 23:29:24 -03:00
user.rb chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
webhook.rb Merge branch 'main' into chore/merge-upstream-4.10 2026-01-16 14:01:53 -03:00
working_hour.rb