@fayz-ai/core 0.8.2 → 0.8.4
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/dist/{chunk-XJKW2JRW.js → chunk-GULZD7XW.js} +7 -14
- package/dist/chunk-GULZD7XW.js.map +1 -0
- package/dist/{chunk-SO3VUKGZ.cjs → chunk-HN66DF4E.cjs} +123 -4
- package/dist/chunk-HN66DF4E.cjs.map +1 -0
- package/dist/{chunk-CYAWDW44.cjs → chunk-KL2XT2TV.cjs} +6 -16
- package/dist/chunk-KL2XT2TV.cjs.map +1 -0
- package/dist/{chunk-JHGXROKV.js → chunk-MJ4ML56F.js} +123 -4
- package/dist/chunk-MJ4ML56F.js.map +1 -0
- package/dist/data/archetype.d.ts.map +1 -1
- package/dist/data/index.cjs +9 -21
- package/dist/data/index.d.ts +0 -1
- package/dist/data/index.d.ts.map +1 -1
- package/dist/data/index.js +1 -1
- package/dist/data/refresh.d.ts +36 -0
- package/dist/data/refresh.d.ts.map +1 -0
- package/dist/data/supabase.d.ts.map +1 -1
- package/dist/data/types.d.ts +6 -0
- package/dist/data/types.d.ts.map +1 -1
- package/dist/i18n/index.cjs +10 -10
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/shell-translations.d.ts.map +1 -1
- package/dist/index.cjs +694 -97
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +652 -59
- package/dist/index.js.map +1 -1
- package/dist/search/engine.d.ts +12 -0
- package/dist/search/engine.d.ts.map +1 -0
- package/dist/search/index.d.ts +5 -0
- package/dist/search/index.d.ts.map +1 -0
- package/dist/search/text.d.ts +37 -0
- package/dist/search/text.d.ts.map +1 -0
- package/dist/search/types.d.ts +72 -0
- package/dist/search/types.d.ts.map +1 -0
- package/dist/types/org.d.ts +28 -0
- package/dist/types/org.d.ts.map +1 -1
- package/dist/types/plugins.d.ts +12 -0
- package/dist/types/plugins.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/data/archetype.ts +4 -2
- package/src/data/index.ts +0 -1
- package/src/data/refresh.ts +105 -0
- package/src/data/supabase.ts +3 -1
- package/src/data/types.ts +6 -0
- package/src/i18n/index.ts +2 -0
- package/src/i18n/shell-translations.ts +119 -2
- package/src/index.ts +19 -2
- package/src/search/engine.ts +551 -0
- package/src/search/index.ts +25 -0
- package/src/search/text.ts +206 -0
- package/src/search/types.ts +75 -0
- package/src/types/org.ts +29 -0
- package/src/types/plugins.ts +12 -0
- package/dist/chunk-CYAWDW44.cjs.map +0 -1
- package/dist/chunk-JHGXROKV.js.map +0 -1
- package/dist/chunk-SO3VUKGZ.cjs.map +0 -1
- package/dist/chunk-XJKW2JRW.js.map +0 -1
- package/dist/data/cloud.d.ts +0 -5
- package/dist/data/cloud.d.ts.map +0 -1
- package/src/data/cloud.ts +0 -28
|
@@ -278,6 +278,7 @@ export const shellTranslations: Record<string, Record<string, string>> = {
|
|
|
278
278
|
"settings.profile": "Profile",
|
|
279
279
|
"settings.branding": "Branding",
|
|
280
280
|
"settings.security": "Security",
|
|
281
|
+
"settings.sites": "Sites",
|
|
281
282
|
"settings.subscription": "Subscription",
|
|
282
283
|
"upgrade.title": 'Premium feature',
|
|
283
284
|
"upgrade.description": 'This feature is available on a higher plan. Upgrade to unlock it.',
|
|
@@ -308,6 +309,8 @@ export const shellTranslations: Record<string, Record<string, string>> = {
|
|
|
308
309
|
"upgrade.value.marketing": 'Campaigns, funnel and content to grow your client base.',
|
|
309
310
|
"upgrade.value.reports": 'Advanced reports and insights to make sharper decisions.',
|
|
310
311
|
"upgrade.value.fin_reconciliation": 'Reconcile payments and keep your cash flow under control.',
|
|
312
|
+
"upgrade.value.assistant": 'Your operations copilot — ask, analyze and act with AI.',
|
|
313
|
+
"upgrade.feature.assistant": 'AI Assistant',
|
|
311
314
|
"billing.unlimited": 'Unlimited',
|
|
312
315
|
"billing.upTo": 'Up to {count}',
|
|
313
316
|
"limit.label.clients": 'clients',
|
|
@@ -326,6 +329,7 @@ export const shellTranslations: Record<string, Record<string, string>> = {
|
|
|
326
329
|
"limit.label.leads": 'leads',
|
|
327
330
|
"limit.label.quotes": 'quotes',
|
|
328
331
|
"limit.label.conversations_month": 'monthly conversations',
|
|
332
|
+
"limit.label.ai_credits_month": 'AI credits per month',
|
|
329
333
|
"limit.label.recipes": 'recipes',
|
|
330
334
|
"limit.label.form_templates": 'form templates',
|
|
331
335
|
"limit.label.documents_month": 'monthly documents',
|
|
@@ -415,16 +419,72 @@ export const shellTranslations: Record<string, Record<string, string>> = {
|
|
|
415
419
|
"chat.defaultTitle": "Assistant",
|
|
416
420
|
"chat.tryAsking": "Try asking",
|
|
417
421
|
"chat.fab.tryIt": "Try it",
|
|
418
|
-
"chat.
|
|
422
|
+
"chat.fab.dismiss": "Don't show suggestions here",
|
|
423
|
+
"chat.fab.open": "Open assistant",
|
|
424
|
+
"chat.fab.close": "Close assistant",
|
|
425
|
+
"chat.messagePlaceholder": "How can I help?",
|
|
426
|
+
"chat.send": "Send message",
|
|
419
427
|
"chat.notConfigured": "Assistant not configured — set chat.apiEndpoint to enable conversations.",
|
|
428
|
+
"chat.unavailable": "Assistant unavailable",
|
|
429
|
+
"chat.greeting": "How can I help?",
|
|
430
|
+
"chat.greetingNamed": "Hi {{name}}, how can I help?",
|
|
431
|
+
"chat.greetingHint": "Ask in plain words, or tap the mic and just say it.",
|
|
432
|
+
"chat.status.ready": "Ready",
|
|
433
|
+
"chat.status.working": "Working on it...",
|
|
434
|
+
"chat.status.offline": "Not connected",
|
|
435
|
+
"chat.jumpToLatest": "Latest",
|
|
420
436
|
"chat.confirmAction.title": "Confirm this action?",
|
|
421
437
|
"chat.confirmAction.confirm": "Confirm",
|
|
422
438
|
"chat.confirmAction.cancel": "Cancel",
|
|
439
|
+
"chat.confirmAction.always": "Always allow",
|
|
440
|
+
"chat.confirmAction.alwaysSession": "Allow this session",
|
|
441
|
+
"chat.confirmAction.alwaysHint": "Stop asking before \"{{label}}\"",
|
|
442
|
+
"chat.confirmAction.autoApproved": "auto",
|
|
443
|
+
"chat.confirmAction.autoApprovedHint": "Ran without asking — you allowed this action",
|
|
423
444
|
"chat.confirmAction.blocked": "Respond to the confirmation above first",
|
|
445
|
+
"chat.confirmAction.fillRequired": "Fill in to continue: {{fields}}",
|
|
446
|
+
"chat.confirmAction.showAll": "Add more fields ({{count}})",
|
|
447
|
+
"chat.confirmAction.showLess": "Show fewer fields",
|
|
448
|
+
// What a write ACTUALLY does, in the operator's words. The confirmation card
|
|
449
|
+
// looks up `chat.tool.<toolName>`; a tool with no entry falls back to its
|
|
450
|
+
// humanized name, never to the model-facing description.
|
|
451
|
+
"chat.tool.createAppointment": "Book an appointment",
|
|
452
|
+
"chat.tool.createRecord": "Create record",
|
|
453
|
+
"chat.tool.updateRecord": "Update record",
|
|
454
|
+
"chat.tool.deleteRecord": "Delete record",
|
|
455
|
+
"chat.tool.createOrder": "Create order",
|
|
456
|
+
"chat.tool.createInvoice": "Create invoice",
|
|
457
|
+
"chat.tool.markPaymentReceived": "Mark payment as received",
|
|
458
|
+
"chat.tool.createCampaign": "Create campaign",
|
|
459
|
+
"chat.tool.sendMessage": "Send message",
|
|
460
|
+
"chat.tool.seatGuests": "Seat guests",
|
|
461
|
+
"chat.tool.toggleMenuItemAvailability": "Change item availability",
|
|
462
|
+
"chat.autoApprovals.title": "Auto-approved actions",
|
|
463
|
+
"chat.autoApprovals.revoke": "Ask me again",
|
|
464
|
+
"chat.autoApprovals.revokeAll": "Ask for everything",
|
|
465
|
+
"chat.suggestions.show": "Show suggestions",
|
|
466
|
+
"chat.suggestions.hide": "Hide suggestions",
|
|
467
|
+
"chat.voice.start": "Speak",
|
|
468
|
+
"chat.voice.stop": "Stop recording",
|
|
469
|
+
"chat.voice.listening": "Listening — speak now",
|
|
470
|
+
"chat.voice.transcribing": "Transcribing...",
|
|
471
|
+
"chat.voice.denied": "Microphone blocked. Allow access in your browser settings.",
|
|
472
|
+
"chat.voice.network": "Could not reach the transcription service.",
|
|
473
|
+
"chat.voice.failed": "Could not hear that — try again.",
|
|
474
|
+
"chat.voice.speakOn": "Speak replies out loud",
|
|
475
|
+
"chat.voice.speakOff": "Mute spoken replies",
|
|
424
476
|
"chat.signingIn": "One moment — still confirming your session.",
|
|
425
477
|
"chat.history": "Previous conversations",
|
|
478
|
+
"chat.history.search": "Search conversations",
|
|
479
|
+
"chat.history.empty": "No conversations found.",
|
|
480
|
+
"chat.history.today": "Today",
|
|
481
|
+
"chat.history.yesterday": "Yesterday",
|
|
482
|
+
"chat.history.week": "Last 7 days",
|
|
483
|
+
"chat.history.older": "Earlier",
|
|
426
484
|
"chat.newConversation": "New conversation",
|
|
427
485
|
"chat.untitledConversation": "Untitled conversation",
|
|
486
|
+
"chat.recentConversations": "Recent",
|
|
487
|
+
"chat.backToConversations": "Back to conversations",
|
|
428
488
|
"chat.renameConversation": "Rename",
|
|
429
489
|
"chat.saveTitle": "Save title",
|
|
430
490
|
"chat.toolsAvailable": "{{count}} tools available",
|
|
@@ -1049,6 +1109,7 @@ export const shellTranslations: Record<string, Record<string, string>> = {
|
|
|
1049
1109
|
"settings.profile": "Perfil",
|
|
1050
1110
|
"settings.branding": "Marca",
|
|
1051
1111
|
"settings.security": "Segurança",
|
|
1112
|
+
"settings.sites": "Sites",
|
|
1052
1113
|
"settings.subscription": "Assinatura",
|
|
1053
1114
|
"upgrade.title": 'Recurso premium',
|
|
1054
1115
|
"upgrade.description": 'Este recurso está disponível em um plano superior. Faça upgrade para liberá-lo.',
|
|
@@ -1079,6 +1140,8 @@ export const shellTranslations: Record<string, Record<string, string>> = {
|
|
|
1079
1140
|
"upgrade.value.marketing": 'Campanhas, funil e conteúdo para crescer sua base de clientes.',
|
|
1080
1141
|
"upgrade.value.reports": 'Relatórios avançados e insights para decidir com mais precisão.',
|
|
1081
1142
|
"upgrade.value.fin_reconciliation": 'Concilie pagamentos e mantenha seu fluxo de caixa sob controle.',
|
|
1143
|
+
"upgrade.value.assistant": 'Seu copiloto de operações — pergunte, analise e aja com IA.',
|
|
1144
|
+
"upgrade.feature.assistant": 'Assistente de IA',
|
|
1082
1145
|
"billing.unlimited": 'Ilimitado',
|
|
1083
1146
|
"billing.upTo": 'Até {count}',
|
|
1084
1147
|
"limit.label.clients": 'clientes',
|
|
@@ -1088,6 +1151,7 @@ export const shellTranslations: Record<string, Record<string, string>> = {
|
|
|
1088
1151
|
"limit.label.leads": 'leads',
|
|
1089
1152
|
"limit.label.quotes": 'orçamentos',
|
|
1090
1153
|
"limit.label.conversations_month": 'conversas mensais',
|
|
1154
|
+
"limit.label.ai_credits_month": 'créditos de IA por mês',
|
|
1091
1155
|
"limit.label.recipes": 'receitas',
|
|
1092
1156
|
"limit.label.form_templates": 'modelos de formulário',
|
|
1093
1157
|
"limit.label.documents_month": 'documentos mensais',
|
|
@@ -1273,16 +1337,69 @@ export const shellTranslations: Record<string, Record<string, string>> = {
|
|
|
1273
1337
|
"chat.defaultTitle": "Assistente",
|
|
1274
1338
|
"chat.tryAsking": "Experimente perguntar",
|
|
1275
1339
|
"chat.fab.tryIt": "Experimente",
|
|
1276
|
-
"chat.
|
|
1340
|
+
"chat.fab.dismiss": "Não mostrar sugestões aqui",
|
|
1341
|
+
"chat.fab.open": "Abrir assistente",
|
|
1342
|
+
"chat.fab.close": "Fechar assistente",
|
|
1343
|
+
"chat.messagePlaceholder": "Como posso ajudar?",
|
|
1344
|
+
"chat.send": "Enviar mensagem",
|
|
1277
1345
|
"chat.notConfigured": "Assistente não configurado — defina chat.apiEndpoint para habilitar conversas.",
|
|
1346
|
+
"chat.unavailable": "Assistente indisponível",
|
|
1347
|
+
"chat.greeting": "Como posso ajudar?",
|
|
1348
|
+
"chat.greetingNamed": "Oi {{name}}, como posso ajudar?",
|
|
1349
|
+
"chat.greetingHint": "Peça com suas palavras, ou toque no microfone e fale.",
|
|
1350
|
+
"chat.status.ready": "Pronto",
|
|
1351
|
+
"chat.status.working": "Trabalhando nisso...",
|
|
1352
|
+
"chat.status.offline": "Sem conexão",
|
|
1353
|
+
"chat.jumpToLatest": "Ir para o fim",
|
|
1278
1354
|
"chat.confirmAction.title": "Confirmar esta ação?",
|
|
1279
1355
|
"chat.confirmAction.confirm": "Confirmar",
|
|
1280
1356
|
"chat.confirmAction.cancel": "Cancelar",
|
|
1357
|
+
"chat.confirmAction.always": "Sempre permitir",
|
|
1358
|
+
"chat.confirmAction.alwaysSession": "Permitir nesta sessão",
|
|
1359
|
+
"chat.confirmAction.alwaysHint": "Parar de perguntar antes de \"{{label}}\"",
|
|
1360
|
+
"chat.confirmAction.autoApproved": "auto",
|
|
1361
|
+
"chat.confirmAction.autoApprovedHint": "Executado sem perguntar — você liberou esta ação",
|
|
1281
1362
|
"chat.confirmAction.blocked": "Responda a confirmação acima primeiro",
|
|
1363
|
+
"chat.confirmAction.fillRequired": "Preencha para continuar: {{fields}}",
|
|
1364
|
+
"chat.confirmAction.showAll": "Preencher mais campos ({{count}})",
|
|
1365
|
+
"chat.confirmAction.showLess": "Mostrar menos campos",
|
|
1366
|
+
"chat.tool.createAppointment": "Marcar horário",
|
|
1367
|
+
"chat.tool.createRecord": "Criar registro",
|
|
1368
|
+
"chat.tool.updateRecord": "Atualizar registro",
|
|
1369
|
+
"chat.tool.deleteRecord": "Excluir registro",
|
|
1370
|
+
"chat.tool.createOrder": "Criar pedido",
|
|
1371
|
+
"chat.tool.createInvoice": "Emitir cobrança",
|
|
1372
|
+
"chat.tool.markPaymentReceived": "Marcar pagamento como recebido",
|
|
1373
|
+
"chat.tool.createCampaign": "Criar campanha",
|
|
1374
|
+
"chat.tool.sendMessage": "Enviar mensagem",
|
|
1375
|
+
"chat.tool.seatGuests": "Acomodar clientes",
|
|
1376
|
+
"chat.tool.toggleMenuItemAvailability": "Alterar disponibilidade do item",
|
|
1377
|
+
"chat.autoApprovals.title": "Ações liberadas",
|
|
1378
|
+
"chat.autoApprovals.revoke": "Voltar a perguntar",
|
|
1379
|
+
"chat.autoApprovals.revokeAll": "Perguntar sempre",
|
|
1380
|
+
"chat.suggestions.show": "Mostrar sugestões",
|
|
1381
|
+
"chat.suggestions.hide": "Ocultar sugestões",
|
|
1382
|
+
"chat.voice.start": "Falar",
|
|
1383
|
+
"chat.voice.stop": "Parar gravação",
|
|
1384
|
+
"chat.voice.listening": "Ouvindo — pode falar",
|
|
1385
|
+
"chat.voice.transcribing": "Transcrevendo...",
|
|
1386
|
+
"chat.voice.denied": "Microfone bloqueado. Libere o acesso nas configurações do navegador.",
|
|
1387
|
+
"chat.voice.network": "Não consegui falar com o serviço de transcrição.",
|
|
1388
|
+
"chat.voice.failed": "Não consegui entender — tente de novo.",
|
|
1389
|
+
"chat.voice.speakOn": "Responder em voz alta",
|
|
1390
|
+
"chat.voice.speakOff": "Silenciar respostas faladas",
|
|
1282
1391
|
"chat.signingIn": "Um instante — ainda estou confirmando sua sessão.",
|
|
1283
1392
|
"chat.history": "Conversas anteriores",
|
|
1393
|
+
"chat.history.search": "Buscar conversas",
|
|
1394
|
+
"chat.history.empty": "Nenhuma conversa encontrada.",
|
|
1395
|
+
"chat.history.today": "Hoje",
|
|
1396
|
+
"chat.history.yesterday": "Ontem",
|
|
1397
|
+
"chat.history.week": "Últimos 7 dias",
|
|
1398
|
+
"chat.history.older": "Mais antigas",
|
|
1284
1399
|
"chat.newConversation": "Nova conversa",
|
|
1285
1400
|
"chat.untitledConversation": "Conversa sem título",
|
|
1401
|
+
"chat.recentConversations": "Recentes",
|
|
1402
|
+
"chat.backToConversations": "Voltar para as conversas",
|
|
1286
1403
|
"chat.renameConversation": "Renomear",
|
|
1287
1404
|
"chat.saveTitle": "Salvar título",
|
|
1288
1405
|
"chat.toolsAvailable": "{{count}} ferramentas disponíveis",
|
package/src/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ export type { EntityDef, EntityImageConfig, FieldDef, FieldType, FieldRelation,
|
|
|
4
4
|
export type { PluginManifest, PluginScope, PluginStatus, ResolvedPluginManifest, PluginRuntime, PluginRuntimeContext, PluginWidgetZone, PluginWidgetDefinition, PluginNavigationEntry, PluginSettingsTab, PluginRouteDefinition, PluginAITool, AIToolMode, AIToolExecution, AgentRpcDeclaration, AIToolParameterProperty, AIToolParameters, AIToolSuggestion, PluginRegistryDef, PluginMigration, PluginDiagnostic, VerticalId, ScaffoldType, TenantPluginBinding, DashboardWidgetDef, DashboardWidgetKind, DashboardSurface, DashboardLayoutConfig, ResolvedDashboardWidget } from './types/plugins'
|
|
5
5
|
export { WidgetZone } from './types/plugins'
|
|
6
6
|
export type { AuthAdapter, AuthUser, AuthSession, AuthProvider } from './types/auth'
|
|
7
|
-
export type { OrgAdapter, Organization, OrgMember, OrgMembership, Location, Invite, CreateOrgOptions } from './types/org'
|
|
7
|
+
export type { OrgAdapter, Organization, OrgMember, OrgMembership, TeamPerson, Location, Invite, CreateOrgOptions } from './types/org'
|
|
8
8
|
export type { PermissionsConfig, FeatureDeclaration, PermissionAction, PermissionProfile, SystemPermission } from './types/permissions'
|
|
9
9
|
export type { Plan, BillingConfig, BillingCheckoutFn } from './types/billing'
|
|
10
10
|
export type { PlanEntitlements, LimitDeclaration } from './types/entitlements'
|
|
@@ -15,12 +15,18 @@ export type { LocaleConfig } from './types/i18n'
|
|
|
15
15
|
export { createSupabaseProvider, setGlobalSupabaseClient, getSupabaseClientOptional } from './data/supabase'
|
|
16
16
|
export { countByTenant, invalidateCount } from './data/count'
|
|
17
17
|
export type { CountByTenantOptions } from './data/count'
|
|
18
|
-
export { getFayzCloudClient, FAYZ_CLOUD_URL, FAYZ_CLOUD_PUBLISHABLE_KEY } from './data/cloud'
|
|
19
18
|
export { createFayzApiProvider } from './data/platform-api'
|
|
20
19
|
export { createMockProvider } from './data/mock'
|
|
21
20
|
export { createArchetypeProvider } from './data/archetype'
|
|
22
21
|
export { withCache } from './data/cached'
|
|
23
22
|
export { resolveDataProvider } from './data/resolve'
|
|
23
|
+
export {
|
|
24
|
+
DATA_CHANGED_EVENT,
|
|
25
|
+
emitDataChanged,
|
|
26
|
+
matchesDataChange,
|
|
27
|
+
useDataChanged,
|
|
28
|
+
} from './data/refresh'
|
|
29
|
+
export type { DataChangedPayload, DataChangedMatch } from './data/refresh'
|
|
24
30
|
export { createSafeDataProvider } from './plugin/createSafeDataProvider'
|
|
25
31
|
export {
|
|
26
32
|
COUNTRIES, DEFAULT_COUNTRY, getCountry, unmaskPhone, maskPhone, maskDigitCount,
|
|
@@ -96,6 +102,17 @@ export type { EventBus, EventHandler } from './events'
|
|
|
96
102
|
export { registerEntity, getEntityByKey, getAllEntities, clearEntityRegistry, deriveEntityKey } from './entity/registry'
|
|
97
103
|
export type { RegisteredEntity } from './entity/registry'
|
|
98
104
|
|
|
105
|
+
// Global search (command palette + agent lookups share one engine)
|
|
106
|
+
export {
|
|
107
|
+
searchEverything, clearSearchCache, setSearchIndexAvailable, isSearchIndexAvailable,
|
|
108
|
+
MIN_QUERY_LENGTH, foldText, foldWithMap, digitsOf, normalizeQuery, similarity,
|
|
109
|
+
scoreCandidate, highlightRanges,
|
|
110
|
+
} from './search'
|
|
111
|
+
export type {
|
|
112
|
+
SearchTarget, SearchHit, SearchGroup, SearchPath, SearchOptions, GlobalSearchResult,
|
|
113
|
+
NormalizedQuery, RankCandidate,
|
|
114
|
+
} from './search'
|
|
115
|
+
|
|
99
116
|
// Uniform registry (component / block / page / metric / scaffold / plugin)
|
|
100
117
|
export {
|
|
101
118
|
Registry,
|