@fayz-ai/core 0.12.0 → 0.15.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.
Files changed (76) hide show
  1. package/dist/access/engine.d.ts +31 -1
  2. package/dist/access/engine.d.ts.map +1 -1
  3. package/dist/access/index.d.ts +1 -1
  4. package/dist/access/index.d.ts.map +1 -1
  5. package/dist/access/index.js +24 -3
  6. package/dist/access/index.js.map +1 -1
  7. package/dist/{chunk-KFBEKFII.js → chunk-BCI743RH.js} +37 -4
  8. package/dist/chunk-BCI743RH.js.map +1 -0
  9. package/dist/{chunk-IKZR3WSK.js → chunk-KJUD6JA5.js} +3 -3
  10. package/dist/{chunk-IKZR3WSK.js.map → chunk-KJUD6JA5.js.map} +1 -1
  11. package/dist/{chunk-S5FOFKR4.js → chunk-NBKFYGVD.js} +88 -24
  12. package/dist/chunk-NBKFYGVD.js.map +1 -0
  13. package/dist/{chunk-7GJTLBG3.js → chunk-OHH26S4N.js} +3 -3
  14. package/dist/{chunk-7GJTLBG3.js.map → chunk-OHH26S4N.js.map} +1 -1
  15. package/dist/chunk-RCMFU3RZ.js +13 -0
  16. package/dist/chunk-RCMFU3RZ.js.map +1 -0
  17. package/dist/{chunk-RRYFXUQX.js → chunk-UMIZDILP.js} +7 -3
  18. package/dist/chunk-UMIZDILP.js.map +1 -0
  19. package/dist/{chunk-U3252GZO.js → chunk-ZYHS7T5T.js} +129 -7
  20. package/dist/chunk-ZYHS7T5T.js.map +1 -0
  21. package/dist/data/archetype.d.ts +5 -0
  22. package/dist/data/archetype.d.ts.map +1 -1
  23. package/dist/data/cached.d.ts +17 -2
  24. package/dist/data/cached.d.ts.map +1 -1
  25. package/dist/data/index.js +2 -2
  26. package/dist/data/offline.d.ts +10 -1
  27. package/dist/data/offline.d.ts.map +1 -1
  28. package/dist/data/resolve.d.ts.map +1 -1
  29. package/dist/data/supabase.d.ts +5 -0
  30. package/dist/data/supabase.d.ts.map +1 -1
  31. package/dist/data/unit-scope.d.ts +48 -0
  32. package/dist/data/unit-scope.d.ts.map +1 -0
  33. package/dist/events/index.d.ts +2 -0
  34. package/dist/events/index.d.ts.map +1 -1
  35. package/dist/events/log.d.ts.map +1 -1
  36. package/dist/events/useDataVersion.d.ts +28 -0
  37. package/dist/events/useDataVersion.d.ts.map +1 -0
  38. package/dist/i18n/index.d.ts.map +1 -1
  39. package/dist/i18n/index.js +1 -1
  40. package/dist/i18n/shell-translations.en.d.ts.map +1 -1
  41. package/dist/i18n/shell-translations.pt-br.d.ts.map +1 -1
  42. package/dist/index.d.ts +7 -1
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +190 -38
  45. package/dist/index.js.map +1 -1
  46. package/dist/integrations/index.js +2 -2
  47. package/dist/lib/unit.d.ts +20 -0
  48. package/dist/lib/unit.d.ts.map +1 -0
  49. package/dist/manifest/index.d.ts +45 -0
  50. package/dist/manifest/index.d.ts.map +1 -1
  51. package/dist/manifest/integration-surface.d.ts +16 -0
  52. package/dist/manifest/integration-surface.d.ts.map +1 -0
  53. package/dist/plugin/index.js +1 -1
  54. package/dist/plugin/runtime.d.ts.map +1 -1
  55. package/dist/{shell-translations.pt-br-ANQ64XTT.js → shell-translations.pt-br-MHKHD3IX.js} +102 -6
  56. package/dist/shell-translations.pt-br-MHKHD3IX.js.map +1 -0
  57. package/dist/testing/index.js +3 -3
  58. package/dist/types/agents.d.ts +97 -0
  59. package/dist/types/agents.d.ts.map +1 -0
  60. package/dist/types/auth.d.ts +9 -0
  61. package/dist/types/auth.d.ts.map +1 -1
  62. package/dist/types/crud.d.ts +22 -0
  63. package/dist/types/crud.d.ts.map +1 -1
  64. package/dist/types/index.d.ts +2 -0
  65. package/dist/types/index.d.ts.map +1 -1
  66. package/dist/types/index.js +1 -1
  67. package/dist/types/org.d.ts +10 -0
  68. package/dist/types/org.d.ts.map +1 -1
  69. package/dist/types/plugins.d.ts +24 -0
  70. package/dist/types/plugins.d.ts.map +1 -1
  71. package/package.json +5 -5
  72. package/dist/chunk-KFBEKFII.js.map +0 -1
  73. package/dist/chunk-RRYFXUQX.js.map +0 -1
  74. package/dist/chunk-S5FOFKR4.js.map +0 -1
  75. package/dist/chunk-U3252GZO.js.map +0 -1
  76. package/dist/shell-translations.pt-br-ANQ64XTT.js.map +0 -1
@@ -10,6 +10,7 @@ var shellTranslationsEn = {
10
10
  "common.cancel": "Cancel",
11
11
  "common.delete": "Delete",
12
12
  "common.edit": "Edit",
13
+ "common.you": "You",
13
14
  "common.close": "Close",
14
15
  "common.confirm": "Confirm",
15
16
  "common.back": "Back",
@@ -128,6 +129,7 @@ var shellTranslationsEn = {
128
129
  "crud.detail.createdBy": "by {{user}}",
129
130
  "crud.detail.updatedAt": "Last edited {{date}}",
130
131
  "crud.form.addTitle": "Add {{entity}}",
132
+ "crud.form.requiredField": "{{field}} is required",
131
133
  "crud.form.editTitle": "Edit {{entity}}",
132
134
  "crud.form.createSubtitle": "Create a new {{entity}}.",
133
135
  "crud.form.editSubtitle": "Update {{entity}} details.",
@@ -139,6 +141,7 @@ var shellTranslationsEn = {
139
141
  "crud.form.imageAfterSave": "Photo after saving",
140
142
  "crud.form.requiredIndicator": "*",
141
143
  "crud.import.action": "Import",
144
+ "crud.import.hint": "Bring several in from a CSV file",
142
145
  "crud.import.title": "Import {{entity}}",
143
146
  "crud.import.step.download": "Template",
144
147
  "crud.import.step.upload": "Upload",
@@ -308,7 +311,7 @@ var shellTranslationsEn = {
308
311
  "settings.title": "Settings",
309
312
  "settings.subtitle": "Manage your account and organization preferences.",
310
313
  "settings.backToHome": "Back to home",
311
- "settings.navLinks": "Settings links",
314
+ "settings.navLinks": "Settings",
312
315
  "settings.general": "General",
313
316
  "settings.properties": "Properties",
314
317
  "settings.profile": "Profile",
@@ -466,13 +469,48 @@ var shellTranslationsEn = {
466
469
  "chat.fab.dismiss": "Don't show suggestions here",
467
470
  "chat.fab.open": "Open assistant",
468
471
  "chat.fab.close": "Close assistant",
472
+ "chat.attachments.add": "Attach a file",
473
+ "chat.attachments.dropHere": "Drop to attach",
474
+ "chat.attachments.dropHint": "Spreadsheets, PDFs and images. I read them and use them in the answer.",
475
+ "chat.attachments.parsing": "reading\u2026",
476
+ "chat.attachments.hasWarnings": "with warnings",
477
+ "chat.attachments.error.excelUnsupported": "unsupported Excel format \u2014 save as .xlsx or .csv",
478
+ "chat.whatsapp.continue": "Continue on WhatsApp",
479
+ "chat.whatsapp.defaultMessage": "Hi! I came from the app.",
469
480
  "chat.messagePlaceholder": "How can I help?",
481
+ "chat.upload.send": "Read {{count}} photo(s)",
482
+ "chat.upload.addMoreImages": "Add another photo",
483
+ "chat.upload.addMoreFiles": "Add another file",
484
+ "chat.upload.working": "Reading...",
485
+ "chat.upload.browseImage": "Or choose an image from this device",
486
+ "chat.upload.browseFile": "Or choose a file from this device",
470
487
  "chat.send": "Send message",
471
488
  "chat.notConfigured": "Assistant not configured \u2014 set chat.apiEndpoint to enable conversations.",
472
489
  "chat.unavailable": "Assistant unavailable",
473
490
  "chat.greeting": "How can I help?",
474
491
  "chat.greetingNamed": "Hi {{name}}, how can I help?",
475
- "chat.greetingHint": "Ask in plain words, or tap the mic and just say it.",
492
+ "chat.greetingHint": "Ask in plain words \u2014 or tap the mic and just say it. I can look things up, create and update records, and explain what's going on in your business.",
493
+ "chat.disclaimer": "AI can make mistakes. Check important info.",
494
+ "chat.staff.team": "Your team",
495
+ "chat.staff.switch": "Talk to someone else on the team",
496
+ "chat.staff.hire": "Meet {{name}}",
497
+ "chat.staff.hireNote": "{{name}} joins your team as soon as the plan is active. Cancel any time.",
498
+ "chat.staff.priceFrom": "From",
499
+ "chat.staff.perMonth": "/mo",
500
+ "chat.staff.onPlan": "on {{plan}}",
501
+ "chat.staff.priceOnPlans": "See the plans for what each agent includes.",
502
+ "chat.staff.seePlans": "See plans",
503
+ "chat.staff.notHired": "Not hired",
504
+ "chat.staff.handoffFrom": "{{from}} passed this to {{to}}",
505
+ "chat.staff.handoffTo": "{{to}} took over",
506
+ "chat.opener.capabilities": "What can you do in here?",
507
+ "chat.opener.today": "How is the business doing today?",
508
+ "chat.opener.findRecord": "Find a record for me",
509
+ "chat.history.title": "Conversations",
510
+ "chat.recording.pending": "Nothing has been captured yet.",
511
+ "chat.recording.running": "Recording. You can move around the app \u2014 it keeps going.",
512
+ "chat.recording.paused": "Recording paused.",
513
+ "chat.recording.finished": "Recording finished.",
476
514
  "chat.status.ready": "Ready",
477
515
  "chat.status.working": "Working on it...",
478
516
  "chat.status.offline": "Not connected",
@@ -564,8 +602,13 @@ var shellTranslationsEn = {
564
602
  "crud.form.editDescription": "Update {{entity}} details.",
565
603
  "crud.form.failedToSave": "Failed to save {{entity}}",
566
604
  "crud.form.saveChanges": "Save Changes",
605
+ "crud.form.showAllFields": "Fill in more fields",
606
+ "crud.form.showEssentialFields": "Show only the essentials",
567
607
  "crud.form.select": "Select {{field}}...",
568
608
  "crud.list.addEntity": "+ Add {{entity}}",
609
+ "crud.list.aiHint": "Describe it and I create it for you.",
610
+ "crud.list.aiPlaceholder": "Describe what to create\u2026",
611
+ "crud.list.newHint": "Fill in one record by hand",
569
612
  "crud.list.search": "Search {{entities}}...",
570
613
  "layout.bottomNav.chat": "Chat",
571
614
  "layout.commandPalette.commandCount": "{{count}} command{{plural}}",
@@ -576,7 +619,7 @@ var shellTranslationsEn = {
576
619
  "layout.mobileDrawer.title": "Navigation menu",
577
620
  "layout.topbar.search": "Search...",
578
621
  "notifications.noUpdates": "No updates yet",
579
- "organization.createOrg": "Create organization",
622
+ "organization.createOrg": "New workspace",
580
623
  "organization.createOrgDescription": "Create a new workspace for your team.",
581
624
  "organization.createOrgTitle": "Create Organization",
582
625
  "organization.creating": "Creating...",
@@ -597,6 +640,16 @@ var shellTranslationsEn = {
597
640
  "organization.onboarding.whatName": "What should we call your workspace?",
598
641
  "organization.orgNamePlaceholder": "Organization name",
599
642
  "organization.permissions.createCustom": "Create Custom Profile",
643
+ "organization.permissions.newWithAIHint": "Describe who the profile is for and I build the matrix.",
644
+ "organization.permissions.newByHand": "Create by hand",
645
+ "organization.permissions.newByHandHint": "Tick the permissions one by one.",
646
+ "organization.permissions.askPlaceholder": "Describe the profile\u2026",
647
+ "organization.permissions.askPersona": "Access administrator",
648
+ "organization.permissions.askPitch": "Tell me who the profile is for and what they do.",
649
+ "organization.permissions.askDescription": "I know every area of this app. Describe the role \u2014 what they need to see, what they need to record, and what they must not reach \u2014 and I build the matrix. You confirm before anything is saved.",
650
+ "organization.permissions.askSuggestion.0": "Front desk: sees the calendar and clients, not the finances",
651
+ "organization.permissions.askSuggestion.1": "Practitioner: only their own calendar and their own sessions",
652
+ "organization.permissions.askSuggestion.2": "Manager: everything except permissions and billing",
600
653
  "organization.permissions.createProfile": "Create Profile",
601
654
  "organization.permissions.duplicate": "Duplicate",
602
655
  "organization.permissions.copyName": "{{name}} (copy)",
@@ -786,6 +839,8 @@ var shellTranslationsEn = {
786
839
  "crud.archetype.addresses.kind.billing": "Billing",
787
840
  "crud.archetype.addresses.field.label": "Label",
788
841
  "crud.archetype.addresses.field.kind": "Use",
842
+ "crud.archetype.addresses.cepNotFound": "Postal code not found. Fill the address in by hand.",
843
+ "crud.archetype.addresses.cepFailed": "Could not check the postal code right now. Fill it in by hand or try again.",
789
844
  "crud.archetype.addresses.field.postalCode": "Postal code",
790
845
  "crud.archetype.addresses.field.street": "Street",
791
846
  "crud.archetype.addresses.field.number": "Number",
@@ -948,7 +1003,48 @@ var shellTranslationsEn = {
948
1003
  "analytics.filters.general": "General",
949
1004
  "analytics.filters.selected": "{{count}} selected",
950
1005
  "analytics.filters.remove": "Remove filter",
951
- "analytics.refresh": "Refresh"
1006
+ "analytics.refresh": "Refresh",
1007
+ "assistant.askAI": "Create with AI",
1008
+ // Tasks moved from plugin-tasks into the shell with 047, so the strings had
1009
+ // to come with it — an app without the plugin would otherwise show raw keys.
1010
+ // The plugin still registers its own copy; last one in wins and they match.
1011
+ "tasks.drawer.title": "Tasks",
1012
+ "tasks.drawer.subtitle": "Manage your team tasks",
1013
+ "tasks.quickAdd.placeholder": "Add a task...",
1014
+ "tasks.filter.all": "All",
1015
+ "tasks.filter.todo": "To Do",
1016
+ "tasks.filter.inProgress": "In Progress",
1017
+ "tasks.filter.done": "Done",
1018
+ "tasks.filter.mine": "Mine",
1019
+ "tasks.group.onboarding": "Getting started",
1020
+ // The same words as the group header — the tag is that header travelling
1021
+ // with the row into the filtered views, where there is no header.
1022
+ "tasks.source.onboarding": "Getting started",
1023
+ "tasks.source.agent": "Assistant",
1024
+ "tasks.status.todo": "To Do",
1025
+ "tasks.status.in_progress": "In Progress",
1026
+ "tasks.status.done": "Done",
1027
+ "tasks.status.cancelled": "Cancelled",
1028
+ "tasks.priority.low": "Low",
1029
+ "tasks.priority.medium": "Medium",
1030
+ "tasks.priority.high": "High",
1031
+ "tasks.priority.urgent": "Urgent",
1032
+ "tasks.detail.descriptionPlaceholder": "Add a description...",
1033
+ "tasks.detail.dueDate": "Due Date",
1034
+ "tasks.detail.subtasks": "Subtasks",
1035
+ "tasks.detail.delete": "Delete Task",
1036
+ "tasks.detail.deleteConfirm": "Are you sure you want to delete this task?",
1037
+ "tasks.detail.created": "Created",
1038
+ "tasks.detail.updated": "Updated",
1039
+ "tasks.detail.chatWithAi": "Chat with AI",
1040
+ "tasks.detail.chatWithAi.prompt": "Take over this task and help me resolve it now, using your tools when needed:",
1041
+ "tasks.detail.addSubtask": "Add subtask...",
1042
+ "tasks.detail.back": "Back to list",
1043
+ "tasks.summary.overdue": "overdue",
1044
+ "tasks.summary.dueToday": "due today",
1045
+ "tasks.empty": "No tasks yet",
1046
+ "tasks.empty.description": "Add your first task using the input above",
1047
+ "analytics.moveBar": "Move the bar (drag, or arrow keys; double-click to reset)"
952
1048
  };
953
1049
 
954
1050
  // src/i18n/index.ts
@@ -1174,6 +1270,18 @@ var coreTranslations = {
1174
1270
  // The "should I do something?" answer, said once and only under the newest
1175
1271
  // failure. Cursors survive a failed run, so this is a fact, not comfort.
1176
1272
  "connectors.runs.failedHint": "Nothing was lost: the next run picks up where this one stopped.",
1273
+ // The failure folds: the reason stays readable, the call behind it is one
1274
+ // click away for whoever is going to fix it.
1275
+ "connectors.runs.seeDetails": "See the call detail",
1276
+ "connectors.runs.detail.stream": "Resource",
1277
+ "connectors.runs.detail.started": "Started",
1278
+ "connectors.runs.detail.finished": "Finished",
1279
+ "connectors.runs.detail.duration": "Took",
1280
+ "connectors.runs.detail.seconds": "{{count}}s",
1281
+ "connectors.runs.detail.minutes": "{{count}} min",
1282
+ "connectors.runs.detail.attempt": "Attempt",
1283
+ "connectors.runs.detail.runId": "Run",
1284
+ "connectors.runs.detail.raw": "What the connector recorded",
1177
1285
  "connectors.when.now": "just now",
1178
1286
  "connectors.when.minutes": "{{count}} min ago",
1179
1287
  "connectors.when.hours": "{{count}} h ago",
@@ -1252,6 +1360,7 @@ var coreTranslations = {
1252
1360
  "modules.custom_forms": "Forms",
1253
1361
  "modules.financial": "Financial",
1254
1362
  "modules.marketing": "Marketing",
1363
+ "modules.orders": "Orders",
1255
1364
  "modules.reports": "Analytics",
1256
1365
  "modules.reputation": "Reputation",
1257
1366
  "modules.shop": "Shop",
@@ -1461,6 +1570,18 @@ var coreTranslations = {
1461
1570
  // A resposta ao "preciso fazer alguma coisa?", dita uma vez e só embaixo da
1462
1571
  // falha mais recente. O cursor sobrevive à falha — isto é fato, não consolo.
1463
1572
  "connectors.runs.failedHint": "Nada foi perdido: a pr\xF3xima sincroniza\xE7\xE3o continua de onde esta parou.",
1573
+ // A falha dobra: o motivo continua legível, e a chamada por trás dele fica a
1574
+ // um clique de quem vai resolver.
1575
+ "connectors.runs.seeDetails": "Ver detalhes da chamada",
1576
+ "connectors.runs.detail.stream": "Recurso",
1577
+ "connectors.runs.detail.started": "Come\xE7ou",
1578
+ "connectors.runs.detail.finished": "Terminou",
1579
+ "connectors.runs.detail.duration": "Levou",
1580
+ "connectors.runs.detail.seconds": "{{count}}s",
1581
+ "connectors.runs.detail.minutes": "{{count}} min",
1582
+ "connectors.runs.detail.attempt": "Tentativa",
1583
+ "connectors.runs.detail.runId": "Execu\xE7\xE3o",
1584
+ "connectors.runs.detail.raw": "O que o conector registrou",
1464
1585
  "connectors.when.now": "agora",
1465
1586
  "connectors.when.minutes": "h\xE1 {{count}} min",
1466
1587
  "connectors.when.hours": "h\xE1 {{count}} h",
@@ -1526,6 +1647,7 @@ var coreTranslations = {
1526
1647
  "modules.custom_forms": "Formul\xE1rios",
1527
1648
  "modules.financial": "Financeiro",
1528
1649
  "modules.marketing": "Marketing",
1650
+ "modules.orders": "Pedidos",
1529
1651
  "modules.reports": "Relat\xF3rios",
1530
1652
  "modules.reputation": "Reputa\xE7\xE3o",
1531
1653
  "modules.shop": "Loja",
@@ -1621,7 +1743,7 @@ function mergeTranslations(base, ...overrides) {
1621
1743
  registerTranslations(coreTranslations);
1622
1744
  registerTranslations({ en: shellTranslationsEn });
1623
1745
  var _lazyShellLocales = {
1624
- "pt-BR": () => import('./shell-translations.pt-br-ANQ64XTT.js').then((m) => m.shellTranslationsPtBr)
1746
+ "pt-BR": () => import('./shell-translations.pt-br-MHKHD3IX.js').then((m) => m.shellTranslationsPtBr)
1625
1747
  };
1626
1748
  var _loadedShellLocales = /* @__PURE__ */ new Set(["en"]);
1627
1749
  var _pendingShellLocales = /* @__PURE__ */ new Map();
@@ -1644,5 +1766,5 @@ function preloadLocale(locale) {
1644
1766
  }
1645
1767
 
1646
1768
  export { I18nProvider, coreTranslations, getCurrentLocale, mergeTranslations, preloadLocale, registerTranslations, setCurrentLocale, setLocaleStore, tl, useI18nConfig, useTranslation };
1647
- //# sourceMappingURL=chunk-U3252GZO.js.map
1648
- //# sourceMappingURL=chunk-U3252GZO.js.map
1769
+ //# sourceMappingURL=chunk-ZYHS7T5T.js.map
1770
+ //# sourceMappingURL=chunk-ZYHS7T5T.js.map