@elizaos/agent 2.0.0-alpha.441 → 2.0.0-alpha.501
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/apps/app-companion/src/components/companion/CompanionAppView.d.ts.map +1 -1
- package/apps/app-companion/src/components/companion/CompanionAppView.js +6 -2
- package/apps/app-companion/src/components/companion/CompanionHeader.d.ts +3 -1
- package/apps/app-companion/src/components/companion/CompanionHeader.d.ts.map +1 -1
- package/apps/app-companion/src/components/companion/CompanionHeader.js +8 -2
- package/apps/app-companion/src/components/companion/CompanionPerformanceSettings.d.ts +2 -0
- package/apps/app-companion/src/components/companion/CompanionPerformanceSettings.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/CompanionPerformanceSettings.js +33 -0
- package/apps/app-companion/src/components/companion/CompanionSettingsPanel.d.ts +2 -0
- package/apps/app-companion/src/components/companion/CompanionSettingsPanel.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/CompanionSettingsPanel.js +7 -0
- package/apps/app-companion/src/components/companion/CompanionShell.d.ts.map +1 -1
- package/apps/app-companion/src/components/companion/CompanionShell.js +1 -1
- package/apps/app-companion/src/components/companion/CompanionView.d.ts.map +1 -1
- package/apps/app-companion/src/components/companion/CompanionView.js +6 -2
- package/apps/app-companion/src/types/render-modes.d.ts +4 -0
- package/apps/app-companion/src/types/render-modes.d.ts.map +1 -0
- package/apps/app-companion/src/types/render-modes.js +6 -0
- package/apps/app-elizamaker/src/drop-routes.d.ts.map +1 -1
- package/apps/app-elizamaker/src/drop-service.d.ts +1 -1
- package/apps/app-elizamaker/src/drop-service.d.ts.map +1 -1
- package/apps/app-elizamaker/src/og-tracker.d.ts.map +1 -1
- package/apps/app-elizamaker/src/og-tracker.js +1 -1
- package/apps/app-elizamaker/src/twitter-verify.js +1 -1
- package/apps/app-lifeops/src/actions/website-blocker.d.ts.map +1 -1
- package/apps/app-lifeops/src/actions/website-blocker.js +18 -16
- package/apps/app-lifeops/src/api/client-lifeops.d.ts +37 -75
- package/apps/app-lifeops/src/api/client-lifeops.d.ts.map +1 -1
- package/apps/app-lifeops/src/api/client-lifeops.js +119 -0
- package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts +2 -4
- package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts.map +1 -1
- package/apps/app-lifeops/src/inbox/channel-deep-links.js +8 -38
- package/apps/app-lifeops/src/inbox/message-fetcher.d.ts +1 -1
- package/apps/app-lifeops/src/inbox/message-fetcher.d.ts.map +1 -1
- package/apps/app-lifeops/src/inbox/message-fetcher.js +180 -77
- package/apps/app-lifeops/src/inbox/types.d.ts +1 -1
- package/apps/app-lifeops/src/inbox/types.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/browser-extension-store.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/browser-readiness.d.ts +16 -0
- package/apps/app-lifeops/src/lifeops/browser-readiness.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/browser-readiness.js +74 -0
- package/apps/app-lifeops/src/lifeops/browser-session-lifecycle.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/browser-session-lifecycle.js +1 -1
- package/apps/app-lifeops/src/lifeops/checkin/checkin-service.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/defaults.d.ts +1 -1
- package/apps/app-lifeops/src/lifeops/defaults.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/discord-desktop-cdp.d.ts +16 -0
- package/apps/app-lifeops/src/lifeops/discord-desktop-cdp.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/discord-desktop-cdp.js +217 -1
- package/apps/app-lifeops/src/lifeops/email-unsubscribe-gmail.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/email-unsubscribe-gmail.js +8 -3
- package/apps/app-lifeops/src/lifeops/feature-flags.types.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/goal-semantic-evaluator.js +1 -1
- package/apps/app-lifeops/src/lifeops/google-calendar.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/google-calendar.js +24 -31
- package/apps/app-lifeops/src/lifeops/google-drive.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/google-drive.js +7 -1
- package/apps/app-lifeops/src/lifeops/google-fetch.d.ts +1 -1
- package/apps/app-lifeops/src/lifeops/google-fetch.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/google-fetch.js +4 -6
- package/apps/app-lifeops/src/lifeops/google-gmail.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/google-gmail.js +50 -34
- package/apps/app-lifeops/src/lifeops/health-bridge.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/health-bridge.js +53 -10
- package/apps/app-lifeops/src/lifeops/health-connectors.d.ts +23 -0
- package/apps/app-lifeops/src/lifeops/health-connectors.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/health-connectors.js +962 -0
- package/apps/app-lifeops/src/lifeops/health-oauth.d.ts +62 -0
- package/apps/app-lifeops/src/lifeops/health-oauth.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/health-oauth.js +496 -0
- package/apps/app-lifeops/src/lifeops/payment-csv-import.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/payment-csv-import.js +1 -5
- package/apps/app-lifeops/src/lifeops/payment-recurrence.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/payment-recurrence.js +2 -1
- package/apps/app-lifeops/src/lifeops/payment-types.d.ts +8 -7
- package/apps/app-lifeops/src/lifeops/payment-types.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/priority-scoring.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/repository.d.ts +46 -10
- package/apps/app-lifeops/src/lifeops/repository.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/repository.js +683 -65
- package/apps/app-lifeops/src/lifeops/schedule-insight.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/schedule-insight.js +2 -3
- package/apps/app-lifeops/src/lifeops/schema.d.ts +6403 -3831
- package/apps/app-lifeops/src/lifeops/schema.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/schema.js +105 -18
- package/apps/app-lifeops/src/lifeops/seed-routines.d.ts +1 -1
- package/apps/app-lifeops/src/lifeops/seed-routines.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/seed-routines.js +7 -2
- package/apps/app-lifeops/src/lifeops/service-constants.d.ts +15 -0
- package/apps/app-lifeops/src/lifeops/service-constants.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-constants.js +21 -3
- package/apps/app-lifeops/src/lifeops/service-helpers-browser.d.ts +1 -1
- package/apps/app-lifeops/src/lifeops/service-helpers-browser.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-helpers-browser.js +1 -1
- package/apps/app-lifeops/src/lifeops/service-helpers-misc.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-helpers-misc.js +5 -5
- package/apps/app-lifeops/src/lifeops/service-helpers-occurrence.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-helpers-occurrence.js +1 -1
- package/apps/app-lifeops/src/lifeops/service-helpers-reminder.d.ts +48 -1
- package/apps/app-lifeops/src/lifeops/service-helpers-reminder.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-helpers-reminder.js +191 -17
- package/apps/app-lifeops/src/lifeops/service-mixin-browser.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-browser.js +10 -7
- package/apps/app-lifeops/src/lifeops/service-mixin-calendar.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-calendar.js +4 -11
- package/apps/app-lifeops/src/lifeops/service-mixin-core.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-core.js +5 -2
- package/apps/app-lifeops/src/lifeops/service-mixin-definitions.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-definitions.js +7 -6
- package/apps/app-lifeops/src/lifeops/service-mixin-discord.js +237 -32
- package/apps/app-lifeops/src/lifeops/service-mixin-drive.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-drive.js +6 -5
- package/apps/app-lifeops/src/lifeops/service-mixin-gmail.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-gmail.js +86 -31
- package/apps/app-lifeops/src/lifeops/service-mixin-goals.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-goals.js +14 -15
- package/apps/app-lifeops/src/lifeops/service-mixin-google.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-google.js +71 -51
- package/apps/app-lifeops/src/lifeops/service-mixin-health.js +528 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-imessage.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-imessage.js +94 -6
- package/apps/app-lifeops/src/lifeops/service-mixin-inbox.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-inbox.js +9 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-payments.d.ts +3 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-payments.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-payments.js +93 -26
- package/apps/app-lifeops/src/lifeops/service-mixin-reminders.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-reminders.js +331 -167
- package/apps/app-lifeops/src/lifeops/service-mixin-scheduling.js +5 -10
- package/apps/app-lifeops/src/lifeops/service-mixin-screentime.js +372 -10
- package/apps/app-lifeops/src/lifeops/service-mixin-signal.js +179 -43
- package/apps/app-lifeops/src/lifeops/service-mixin-sleep.js +31 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-status.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-status.js +82 -13
- package/apps/app-lifeops/src/lifeops/service-mixin-subscriptions.js +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-telegram.js +59 -12
- package/apps/app-lifeops/src/lifeops/service-mixin-whatsapp.js +165 -22
- package/apps/app-lifeops/src/lifeops/service-mixin-workflows.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-workflows.js +3 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-calendar.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-normalize-calendar.js +4 -4
- package/apps/app-lifeops/src/lifeops/service-normalize-gmail.d.ts +3 -1
- package/apps/app-lifeops/src/lifeops/service-normalize-gmail.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-normalize-gmail.js +5 -3
- package/apps/app-lifeops/src/lifeops/service-normalize-health.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-normalize-health.js +4 -3
- package/apps/app-lifeops/src/lifeops/service-normalize-task.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-normalize-task.js +10 -1
- package/apps/app-lifeops/src/lifeops/service-normalize.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-normalize.js +3 -3
- package/apps/app-lifeops/src/lifeops/service-types.d.ts +1 -1
- package/apps/app-lifeops/src/lifeops/service-types.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service.d.ts +92 -166
- package/apps/app-lifeops/src/lifeops/service.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service.js +2 -2
- package/apps/app-lifeops/src/lifeops/signal-auth.d.ts +7 -0
- package/apps/app-lifeops/src/lifeops/signal-auth.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/signal-auth.js +50 -6
- package/apps/app-lifeops/src/lifeops/signal-local-client.d.ts +7 -0
- package/apps/app-lifeops/src/lifeops/signal-local-client.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/signal-local-client.js +95 -4
- package/apps/app-lifeops/src/lifeops/sleep-cycle.d.ts +7 -1
- package/apps/app-lifeops/src/lifeops/sleep-cycle.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/sleep-cycle.js +16 -6
- package/apps/app-lifeops/src/lifeops/sleep-episode-store.d.ts +2 -1
- package/apps/app-lifeops/src/lifeops/sleep-episode-store.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/sleep-episode-store.js +7 -3
- package/apps/app-lifeops/src/lifeops/social-taxonomy.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/social-taxonomy.js +68 -16
- package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.js +24 -14
- package/apps/app-lifeops/src/lifeops/subscriptions-types.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/telegram-auth.d.ts +8 -1
- package/apps/app-lifeops/src/lifeops/telegram-auth.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/telegram-auth.js +44 -5
- package/apps/app-lifeops/src/lifeops/telegram-local-client.d.ts +1 -0
- package/apps/app-lifeops/src/lifeops/telegram-local-client.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/telegram-local-client.js +141 -7
- package/apps/app-lifeops/src/lifeops/twilio.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/twilio.js +3 -1
- package/apps/app-lifeops/src/lifeops/whatsapp-client.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/whatsapp-client.js +7 -4
- package/apps/app-lifeops/src/lifeops/x-poster.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/x-poster.js +3 -1
- package/apps/app-lifeops/src/lifeops/x-reader.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/x-reader.js +10 -3
- package/apps/app-lifeops/src/providers/website-blocker.js +2 -2
- package/apps/app-lifeops/src/public.d.ts +2 -2
- package/apps/app-lifeops/src/public.d.ts.map +1 -1
- package/apps/app-lifeops/src/public.js +2 -2
- package/apps/app-lifeops/src/routes/lifeops-routes.d.ts.map +1 -1
- package/apps/app-lifeops/src/routes/lifeops-routes.js +327 -92
- package/apps/app-lifeops/src/routes/plugin.d.ts.map +1 -1
- package/apps/app-lifeops/src/routes/plugin.js +79 -50
- package/apps/app-lifeops/src/routes/sleep-routes.d.ts.map +1 -1
- package/apps/app-lifeops/src/website-blocker/access.d.ts +1 -1
- package/apps/app-lifeops/src/website-blocker/access.d.ts.map +1 -1
- package/apps/app-lifeops/src/website-blocker/access.js +13 -9
- package/apps/app-lifeops/src/website-blocker/engine.d.ts.map +1 -1
- package/apps/app-lifeops/src/website-blocker/engine.js +23 -2
- package/apps/app-lifeops/src/website-blocker/public.d.ts +4 -4
- package/apps/app-lifeops/src/website-blocker/public.d.ts.map +1 -1
- package/apps/app-lifeops/src/website-blocker/public.js +2 -2
- package/apps/app-lifeops/src/website-blocker/roles.d.ts +2 -4
- package/apps/app-lifeops/src/website-blocker/roles.d.ts.map +1 -1
- package/apps/app-lifeops/src/website-blocker/roles.js +1 -4
- package/apps/app-steward/src/actions/check-balance.d.ts.map +1 -1
- package/apps/app-steward/src/actions/wallet-action-shared.d.ts.map +1 -1
- package/apps/app-steward/src/actions/wallet-action-shared.js +1 -1
- package/apps/app-steward/src/api/wallet-evm-balance.d.ts.map +1 -1
- package/apps/app-steward/src/browser-workspace-wallet.d.ts +15 -1
- package/apps/app-steward/src/browser-workspace-wallet.d.ts.map +1 -1
- package/apps/app-steward/src/browser-workspace-wallet.js +7 -1
- package/apps/app-steward/src/index.d.ts +4 -4
- package/apps/app-steward/src/index.d.ts.map +1 -1
- package/apps/app-steward/src/index.js +4 -4
- package/apps/app-steward/src/routes/steward-bridge.d.ts.map +1 -1
- package/apps/app-steward/src/routes/steward-bridge.js +1 -1
- package/apps/app-steward/src/routes/wallet-browser-compat-routes.d.ts.map +1 -1
- package/apps/app-steward/src/routes/wallet-browser-compat-routes.js +88 -1
- package/apps/app-training/src/backends/atropos.d.ts.map +1 -1
- package/apps/app-training/src/backends/atropos.js +2 -2
- package/apps/app-training/src/backends/native.d.ts +1 -1
- package/apps/app-training/src/backends/native.d.ts.map +1 -1
- package/apps/app-training/src/backends/tinker.d.ts.map +1 -1
- package/apps/app-training/src/core/index.d.ts +5 -5
- package/apps/app-training/src/core/index.d.ts.map +1 -1
- package/apps/app-training/src/core/index.js +4 -4
- package/apps/app-training/src/core/privacy-filter.d.ts.map +1 -1
- package/apps/app-training/src/core/training-orchestrator.d.ts.map +1 -1
- package/apps/app-training/src/optimizers/bootstrap-fewshot.d.ts.map +1 -1
- package/apps/app-training/src/optimizers/bootstrap-fewshot.js +7 -3
- package/apps/app-training/src/optimizers/index.d.ts +4 -4
- package/apps/app-training/src/optimizers/index.d.ts.map +1 -1
- package/apps/app-training/src/optimizers/index.js +2 -2
- package/apps/app-training/src/optimizers/instruction-search.d.ts.map +1 -1
- package/apps/app-training/src/optimizers/instruction-search.js +6 -1
- package/apps/app-training/src/optimizers/prompt-evolution.d.ts.map +1 -1
- package/apps/app-training/src/optimizers/prompt-evolution.js +6 -1
- package/apps/app-training/src/optimizers/scoring.d.ts +5 -7
- package/apps/app-training/src/optimizers/scoring.d.ts.map +1 -1
- package/apps/app-training/src/optimizers/types.d.ts.map +1 -1
- package/apps/app-training/src/routes/index.d.ts +1 -1
- package/apps/app-training/src/routes/index.d.ts.map +1 -1
- package/apps/app-training/src/routes/index.js +1 -1
- package/apps/app-training/src/services/index.d.ts +3 -3
- package/apps/app-training/src/services/index.d.ts.map +1 -1
- package/apps/app-training/src/services/index.js +2 -2
- package/apps/app-training/src/services/training-trigger.d.ts.map +1 -1
- package/package.json +4 -4
- package/packages/agent/src/actions/browser-session.d.ts.map +1 -1
- package/packages/agent/src/actions/browser-session.js +73 -5
- package/packages/agent/src/actions/extract-page.d.ts.map +1 -1
- package/packages/agent/src/actions/extract-page.js +11 -3
- package/packages/agent/src/actions/launchpad-launch.d.ts +16 -0
- package/packages/agent/src/actions/launchpad-launch.d.ts.map +1 -0
- package/packages/agent/src/actions/launchpad-launch.js +207 -0
- package/packages/agent/src/actions/logs.d.ts.map +1 -1
- package/packages/agent/src/actions/logs.js +19 -2
- package/packages/agent/src/actions/manage-tasks.d.ts.map +1 -1
- package/packages/agent/src/actions/manage-tasks.js +55 -0
- package/packages/agent/src/actions/page-action-groups.d.ts +17 -0
- package/packages/agent/src/actions/page-action-groups.d.ts.map +1 -0
- package/packages/agent/src/actions/page-action-groups.js +171 -0
- package/packages/agent/src/actions/scratchpad.d.ts.map +1 -1
- package/packages/agent/src/actions/scratchpad.js +17 -2
- package/packages/agent/src/actions/web-search.d.ts.map +1 -1
- package/packages/agent/src/actions/web-search.js +10 -2
- package/packages/agent/src/api/accounts-routes.d.ts.map +1 -1
- package/packages/agent/src/api/accounts-routes.js +8 -10
- package/packages/agent/src/api/chat-augmentation.d.ts.map +1 -1
- package/packages/agent/src/api/chat-augmentation.js +18 -6
- package/packages/agent/src/api/cloud-relay-routes.d.ts.map +1 -1
- package/packages/agent/src/api/cloud-relay-routes.js +3 -2
- package/packages/agent/src/api/cloud-routes.d.ts +3 -0
- package/packages/agent/src/api/cloud-routes.d.ts.map +1 -1
- package/packages/agent/src/api/cloud-routes.js +54 -1
- package/packages/agent/src/api/cloud-status-routes.d.ts.map +1 -1
- package/packages/agent/src/api/cloud-status-routes.js +25 -15
- package/packages/agent/src/api/connector-routes.d.ts +8 -0
- package/packages/agent/src/api/connector-routes.d.ts.map +1 -1
- package/packages/agent/src/api/connector-routes.js +25 -1
- package/packages/agent/src/api/experience-routes.d.ts.map +1 -1
- package/packages/agent/src/api/experience-routes.js +57 -0
- package/packages/agent/src/api/index.d.ts +1 -1
- package/packages/agent/src/api/index.d.ts.map +1 -1
- package/packages/agent/src/api/index.js +5 -5
- package/packages/agent/src/api/provider-switch-config.d.ts +4 -1
- package/packages/agent/src/api/provider-switch-config.d.ts.map +1 -1
- package/packages/agent/src/api/provider-switch-config.js +8 -1
- package/packages/agent/src/api/provider-switch-routes.d.ts +7 -1
- package/packages/agent/src/api/provider-switch-routes.d.ts.map +1 -1
- package/packages/agent/src/api/provider-switch-routes.js +62 -27
- package/packages/agent/src/api/runtime-plugin-routes.d.ts +5 -0
- package/packages/agent/src/api/runtime-plugin-routes.d.ts.map +1 -1
- package/packages/agent/src/api/runtime-plugin-routes.js +13 -0
- package/packages/agent/src/api/server-helpers-auth.d.ts.map +1 -1
- package/packages/agent/src/api/server-helpers-auth.js +7 -0
- package/packages/agent/src/api/server.d.ts.map +1 -1
- package/packages/agent/src/api/server.js +73 -11
- package/packages/agent/src/api/subscription-routes.d.ts.map +1 -1
- package/packages/agent/src/api/subscription-routes.js +6 -2
- package/packages/agent/src/auth/credentials.d.ts.map +1 -1
- package/packages/agent/src/auth/credentials.js +6 -2
- package/packages/agent/src/autonomy/index.d.ts.map +1 -1
- package/packages/agent/src/autonomy/index.js +5 -3
- package/packages/agent/src/bin.js +25 -0
- package/packages/agent/src/cli/index.d.ts.map +1 -1
- package/packages/agent/src/cli/index.js +17 -1
- package/packages/agent/src/cloud/cloud-manager.d.ts +1 -0
- package/packages/agent/src/cloud/cloud-manager.d.ts.map +1 -1
- package/packages/agent/src/cloud/cloud-manager.js +9 -0
- package/packages/agent/src/providers/page-scoped-context.d.ts.map +1 -1
- package/packages/agent/src/providers/page-scoped-context.js +48 -8
- package/packages/agent/src/runtime/aosp-llama-adapter.d.ts +193 -0
- package/packages/agent/src/runtime/aosp-llama-adapter.d.ts.map +1 -0
- package/packages/agent/src/runtime/aosp-llama-adapter.js +938 -0
- package/packages/agent/src/runtime/aosp-local-inference-bootstrap.d.ts +42 -0
- package/packages/agent/src/runtime/aosp-local-inference-bootstrap.d.ts.map +1 -0
- package/packages/agent/src/runtime/aosp-local-inference-bootstrap.js +299 -0
- package/packages/agent/src/runtime/core-plugins.d.ts +20 -0
- package/packages/agent/src/runtime/core-plugins.d.ts.map +1 -1
- package/packages/agent/src/runtime/core-plugins.js +22 -2
- package/packages/agent/src/runtime/discord-local-plugin.d.ts.map +1 -1
- package/packages/agent/src/runtime/discord-local-plugin.js +36 -0
- package/packages/agent/src/runtime/eliza-plugin.d.ts.map +1 -1
- package/packages/agent/src/runtime/eliza-plugin.js +9 -0
- package/packages/agent/src/runtime/eliza.d.ts.map +1 -1
- package/packages/agent/src/runtime/eliza.js +18 -8
- package/packages/agent/src/runtime/first-time-setup.d.ts +1 -0
- package/packages/agent/src/runtime/first-time-setup.d.ts.map +1 -1
- package/packages/agent/src/runtime/first-time-setup.js +1 -0
- package/packages/agent/src/runtime/operations/classifier.d.ts +36 -0
- package/packages/agent/src/runtime/operations/classifier.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/classifier.js +72 -0
- package/packages/agent/src/runtime/operations/cold-strategy.d.ts +19 -0
- package/packages/agent/src/runtime/operations/cold-strategy.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/cold-strategy.js +83 -0
- package/packages/agent/src/runtime/operations/health-checks.d.ts +24 -0
- package/packages/agent/src/runtime/operations/health-checks.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/health-checks.js +186 -0
- package/packages/agent/src/runtime/operations/health.d.ts +32 -0
- package/packages/agent/src/runtime/operations/health.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/health.js +151 -0
- package/packages/agent/src/runtime/operations/index.d.ts +16 -0
- package/packages/agent/src/runtime/operations/index.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/index.js +14 -0
- package/packages/agent/src/runtime/operations/manager.d.ts +68 -0
- package/packages/agent/src/runtime/operations/manager.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/manager.js +182 -0
- package/packages/agent/src/runtime/operations/reload-hot.d.ts +40 -0
- package/packages/agent/src/runtime/operations/reload-hot.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/reload-hot.js +176 -0
- package/packages/agent/src/runtime/operations/repository.d.ts +44 -0
- package/packages/agent/src/runtime/operations/repository.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/repository.js +233 -0
- package/packages/agent/src/runtime/operations/types.d.ts +201 -0
- package/packages/agent/src/runtime/operations/types.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/types.js +30 -0
- package/packages/agent/src/runtime/plugin-collector.d.ts.map +1 -1
- package/packages/agent/src/runtime/plugin-collector.js +47 -7
- package/packages/agent/src/runtime/plugin-role-gating.d.ts.map +1 -1
- package/packages/agent/src/runtime/plugin-role-gating.js +42 -9
- package/packages/agent/src/runtime/restart.d.ts +14 -38
- package/packages/agent/src/runtime/restart.d.ts.map +1 -1
- package/packages/agent/src/runtime/restart.js +14 -39
- package/packages/agent/src/services/browser-workspace-desktop.d.ts.map +1 -1
- package/packages/agent/src/services/browser-workspace-desktop.js +107 -0
- package/packages/agent/src/services/browser-workspace-types.d.ts +7 -1
- package/packages/agent/src/services/browser-workspace-types.d.ts.map +1 -1
- package/packages/agent/src/services/browser-workspace.d.ts.map +1 -1
- package/packages/agent/src/services/browser-workspace.js +7 -0
- package/packages/agent/src/services/index.d.ts +1 -0
- package/packages/agent/src/services/index.d.ts.map +1 -1
- package/packages/agent/src/services/index.js +1 -0
- package/packages/agent/src/services/launchpads/image-generator.d.ts +22 -0
- package/packages/agent/src/services/launchpads/image-generator.d.ts.map +1 -0
- package/packages/agent/src/services/launchpads/image-generator.js +46 -0
- package/packages/agent/src/services/launchpads/launchpad-engine.d.ts +32 -0
- package/packages/agent/src/services/launchpads/launchpad-engine.d.ts.map +1 -0
- package/packages/agent/src/services/launchpads/launchpad-engine.js +191 -0
- package/packages/agent/src/services/launchpads/launchpad-types.d.ts +116 -0
- package/packages/agent/src/services/launchpads/launchpad-types.d.ts.map +1 -0
- package/packages/agent/src/services/launchpads/launchpad-types.js +19 -0
- package/packages/agent/src/services/launchpads/metadata-generator.d.ts +24 -0
- package/packages/agent/src/services/launchpads/metadata-generator.d.ts.map +1 -0
- package/packages/agent/src/services/launchpads/metadata-generator.js +96 -0
- package/packages/agent/src/services/launchpads/profiles/flap-sh.d.ts +25 -0
- package/packages/agent/src/services/launchpads/profiles/flap-sh.d.ts.map +1 -0
- package/packages/agent/src/services/launchpads/profiles/flap-sh.js +80 -0
- package/packages/agent/src/services/launchpads/profiles/four-meme.d.ts +11 -0
- package/packages/agent/src/services/launchpads/profiles/four-meme.d.ts.map +1 -0
- package/packages/agent/src/services/launchpads/profiles/four-meme.js +70 -0
- package/packages/agent/src/services/registry-client.js +1 -1
- package/packages/agent/src/services/research-task-executor.d.ts.map +1 -1
- package/packages/agent/src/services/research-task-executor.js +3 -1
- package/packages/app-core/src/App.d.ts.map +1 -1
- package/packages/app-core/src/App.js +6 -8
- package/packages/app-core/src/api/auth/sessions.js +1 -1
- package/packages/app-core/src/api/auth/tokens.d.ts +3 -0
- package/packages/app-core/src/api/auth/tokens.d.ts.map +1 -0
- package/packages/app-core/src/api/auth/tokens.js +13 -0
- package/packages/app-core/src/api/auth.d.ts +1 -3
- package/packages/app-core/src/api/auth.d.ts.map +1 -1
- package/packages/app-core/src/api/auth.js +2 -16
- package/packages/app-core/src/api/client-agent.d.ts +14 -3
- package/packages/app-core/src/api/client-agent.d.ts.map +1 -1
- package/packages/app-core/src/api/client-agent.js +74 -1
- package/packages/app-core/src/api/client-base.d.ts.map +1 -1
- package/packages/app-core/src/api/client-base.js +34 -2
- package/packages/app-core/src/api/client-cloud.d.ts +5 -1
- package/packages/app-core/src/api/client-cloud.d.ts.map +1 -1
- package/packages/app-core/src/api/client-cloud.js +9 -2
- package/packages/app-core/src/api/client-types-chat.d.ts +8 -0
- package/packages/app-core/src/api/client-types-chat.d.ts.map +1 -1
- package/packages/app-core/src/api/client-types-cloud.d.ts +2 -0
- package/packages/app-core/src/api/client-types-cloud.d.ts.map +1 -1
- package/packages/app-core/src/api/client-types-config.d.ts +1 -1
- package/packages/app-core/src/api/client-types-config.d.ts.map +1 -1
- package/packages/app-core/src/api/client-types-core.d.ts +1 -1
- package/packages/app-core/src/api/client-types-core.d.ts.map +1 -1
- package/packages/app-core/src/api/client-types-experience.d.ts +50 -0
- package/packages/app-core/src/api/client-types-experience.d.ts.map +1 -1
- package/packages/app-core/src/api/client-wallet.d.ts +7 -1
- package/packages/app-core/src/api/client-wallet.d.ts.map +1 -1
- package/packages/app-core/src/api/client-wallet.js +6 -0
- package/packages/app-core/src/components/accounts/AccountCard.d.ts.map +1 -1
- package/packages/app-core/src/components/accounts/AccountCard.js +5 -3
- package/packages/app-core/src/components/accounts/AccountList.d.ts.map +1 -1
- package/packages/app-core/src/components/accounts/AccountList.js +1 -9
- package/packages/app-core/src/components/accounts/AddAccountDialog.d.ts.map +1 -1
- package/packages/app-core/src/components/accounts/AddAccountDialog.js +2 -27
- package/packages/app-core/src/components/accounts/RotationStrategyPicker.d.ts.map +1 -1
- package/packages/app-core/src/components/accounts/RotationStrategyPicker.js +0 -5
- package/packages/app-core/src/components/apps/AppsCatalogGrid.js +1 -1
- package/packages/app-core/src/components/apps/app-identity.d.ts +8 -0
- package/packages/app-core/src/components/apps/app-identity.d.ts.map +1 -1
- package/packages/app-core/src/components/apps/app-identity.js +23 -2
- package/packages/app-core/src/components/apps/catalog-loader.d.ts.map +1 -1
- package/packages/app-core/src/components/apps/catalog-loader.js +10 -1
- package/packages/app-core/src/components/apps/helpers.d.ts +5 -2
- package/packages/app-core/src/components/apps/helpers.d.ts.map +1 -1
- package/packages/app-core/src/components/apps/helpers.js +14 -3
- package/packages/app-core/src/components/apps/overlay-app-registry.d.ts.map +1 -1
- package/packages/app-core/src/components/apps/overlay-app-registry.js +13 -2
- package/packages/app-core/src/components/character/CharacterExperienceWorkspace.d.ts.map +1 -1
- package/packages/app-core/src/components/character/CharacterExperienceWorkspace.js +220 -3
- package/packages/app-core/src/components/character/character-hub-helpers.d.ts.map +1 -1
- package/packages/app-core/src/components/character/character-hub-helpers.js +4 -0
- package/packages/app-core/src/components/character/character-hub-types.d.ts +4 -0
- package/packages/app-core/src/components/character/character-hub-types.d.ts.map +1 -1
- package/packages/app-core/src/components/chat/AppsSection.d.ts.map +1 -1
- package/packages/app-core/src/components/chat/AppsSection.js +24 -1
- package/packages/app-core/src/components/chat/TasksEventsPanel.d.ts.map +1 -1
- package/packages/app-core/src/components/chat/TasksEventsPanel.js +1 -1
- package/packages/app-core/src/components/connectors/ConnectorModeSelector.d.ts +35 -0
- package/packages/app-core/src/components/connectors/ConnectorModeSelector.d.ts.map +1 -0
- package/packages/app-core/src/components/connectors/ConnectorModeSelector.js +150 -0
- package/packages/app-core/src/components/conversations/ConversationsSidebar.d.ts.map +1 -1
- package/packages/app-core/src/components/conversations/ConversationsSidebar.js +8 -6
- package/packages/app-core/src/components/custom-actions/custom-action-form.d.ts +1 -1
- package/packages/app-core/src/components/custom-actions/custom-action-form.d.ts.map +1 -1
- package/packages/app-core/src/components/custom-actions/custom-action-form.js +1 -1
- package/packages/app-core/src/components/local-inference/LocalInferencePanel.d.ts.map +1 -1
- package/packages/app-core/src/components/local-inference/LocalInferencePanel.js +1 -3
- package/packages/app-core/src/components/local-inference/ProvidersList.d.ts +0 -13
- package/packages/app-core/src/components/local-inference/ProvidersList.d.ts.map +1 -1
- package/packages/app-core/src/components/local-inference/ProvidersList.js +10 -21
- package/packages/app-core/src/components/local-inference/RoutingMatrix.d.ts +0 -11
- package/packages/app-core/src/components/local-inference/RoutingMatrix.d.ts.map +1 -1
- package/packages/app-core/src/components/local-inference/RoutingMatrix.js +21 -18
- package/packages/app-core/src/components/local-inference/SlotAssignments.d.ts.map +1 -1
- package/packages/app-core/src/components/local-inference/SlotAssignments.js +11 -11
- package/packages/app-core/src/components/onboarding/BootstrapStep.d.ts +5 -2
- package/packages/app-core/src/components/onboarding/BootstrapStep.d.ts.map +1 -1
- package/packages/app-core/src/components/onboarding/BootstrapStep.js +54 -6
- package/packages/app-core/src/components/pages/AppDetailsView.d.ts +4 -6
- package/packages/app-core/src/components/pages/AppDetailsView.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/AppDetailsView.js +109 -54
- package/packages/app-core/src/components/pages/AppsView.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/AppsView.js +33 -53
- package/packages/app-core/src/components/pages/AutomationsView.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/AutomationsView.js +6 -22
- package/packages/app-core/src/components/pages/BrowserWorkspaceView.d.ts +14 -0
- package/packages/app-core/src/components/pages/BrowserWorkspaceView.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/BrowserWorkspaceView.js +462 -45
- package/packages/app-core/src/components/pages/ChatView.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/ChatView.js +1 -1
- package/packages/app-core/src/components/pages/ConfigPageView.js +2 -2
- package/packages/app-core/src/components/pages/InventoryView.js +4 -4
- package/packages/app-core/src/components/pages/KnowledgeView.js +1 -1
- package/packages/app-core/src/components/pages/LogsView.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/LogsView.js +0 -4
- package/packages/app-core/src/components/pages/SecretsView.js +1 -1
- package/packages/app-core/src/components/pages/SettingsView.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/SettingsView.js +76 -176
- package/packages/app-core/src/components/pages/WorkflowGraphViewer.js +1 -1
- package/packages/app-core/src/components/pages/page-scoped-conversations.d.ts +1 -1
- package/packages/app-core/src/components/pages/page-scoped-conversations.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/page-scoped-conversations.js +62 -7
- package/packages/app-core/src/components/pages/plugin-list-utils.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/plugin-list-utils.js +0 -1
- package/packages/app-core/src/components/pages/plugin-view-connectors.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/plugin-view-connectors.js +12 -4
- package/packages/app-core/src/components/pages/useBrowserWorkspaceWalletBridge.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/useBrowserWorkspaceWalletBridge.js +41 -0
- package/packages/app-core/src/components/settings/AppearanceSettingsSection.d.ts.map +1 -1
- package/packages/app-core/src/components/settings/AppearanceSettingsSection.js +3 -42
- package/packages/app-core/src/components/settings/ProviderSwitcher.d.ts.map +1 -1
- package/packages/app-core/src/components/settings/ProviderSwitcher.js +74 -39
- package/packages/app-core/src/components/settings/SubscriptionStatus.d.ts.map +1 -1
- package/packages/app-core/src/components/settings/SubscriptionStatus.js +2 -2
- package/packages/app-core/src/components/settings/permission-controls.d.ts.map +1 -1
- package/packages/app-core/src/components/settings/permission-controls.js +41 -7
- package/packages/app-core/src/components/shell/BugReportModal.js +2 -2
- package/packages/app-core/src/components/shell/CommandPalette.d.ts.map +1 -1
- package/packages/app-core/src/components/shell/CommandPalette.js +3 -3
- package/packages/app-core/src/components/shell/Header.js +2 -2
- package/packages/app-core/src/components/shell/RuntimeGate.d.ts.map +1 -1
- package/packages/app-core/src/components/shell/RuntimeGate.js +309 -57
- package/packages/app-core/src/components/shell/StartupShell.js +2 -2
- package/packages/app-core/src/components/workspace/AppWorkspaceChrome.js +2 -2
- package/packages/app-core/src/config/boot-config-store.d.ts +35 -6
- package/packages/app-core/src/config/boot-config-store.d.ts.map +1 -1
- package/packages/app-core/src/hooks/useAccounts.d.ts +1 -1
- package/packages/app-core/src/hooks/useAccounts.d.ts.map +1 -1
- package/packages/app-core/src/hooks/voice-chat-playback.d.ts.map +1 -1
- package/packages/app-core/src/hooks/voice-chat-playback.js +2 -2
- package/packages/app-core/src/i18n/locales/en.json +229 -210
- package/packages/app-core/src/i18n/locales/es.json +255 -236
- package/packages/app-core/src/i18n/locales/ko.json +255 -236
- package/packages/app-core/src/i18n/locales/pt.json +255 -236
- package/packages/app-core/src/i18n/locales/tl.json +254 -235
- package/packages/app-core/src/i18n/locales/vi.json +255 -236
- package/packages/app-core/src/i18n/locales/zh-CN.json +255 -236
- package/packages/app-core/src/onboarding/mobile-runtime-mode.d.ts +1 -1
- package/packages/app-core/src/onboarding/mobile-runtime-mode.d.ts.map +1 -1
- package/packages/app-core/src/onboarding/mobile-runtime-mode.js +3 -0
- package/packages/app-core/src/onboarding/probe-local-agent.d.ts +44 -0
- package/packages/app-core/src/onboarding/probe-local-agent.d.ts.map +1 -0
- package/packages/app-core/src/onboarding/probe-local-agent.js +126 -0
- package/packages/app-core/src/onboarding-config.d.ts +1 -0
- package/packages/app-core/src/onboarding-config.d.ts.map +1 -1
- package/packages/app-core/src/onboarding-config.js +3 -0
- package/packages/app-core/src/platform/init.d.ts +8 -0
- package/packages/app-core/src/platform/init.d.ts.map +1 -1
- package/packages/app-core/src/platform/init.js +10 -0
- package/packages/app-core/src/services/account-pool.d.ts +98 -0
- package/packages/app-core/src/services/account-pool.d.ts.map +1 -0
- package/packages/app-core/src/services/account-pool.js +506 -0
- package/packages/app-core/src/services/account-usage.d.ts +75 -0
- package/packages/app-core/src/services/account-usage.d.ts.map +1 -0
- package/packages/app-core/src/services/account-usage.js +179 -0
- package/packages/app-core/src/services/local-inference/active-model.d.ts +14 -0
- package/packages/app-core/src/services/local-inference/active-model.d.ts.map +1 -1
- package/packages/app-core/src/services/local-inference/device-bridge.d.ts +7 -0
- package/packages/app-core/src/services/local-inference/device-bridge.d.ts.map +1 -1
- package/packages/app-core/src/services/local-inference/device-bridge.js +108 -3
- package/packages/app-core/src/services/local-inference/paths.d.ts +9 -2
- package/packages/app-core/src/services/local-inference/paths.d.ts.map +1 -1
- package/packages/app-core/src/services/local-inference/paths.js +10 -3
- package/packages/app-core/src/services/local-inference/providers.d.ts +1 -1
- package/packages/app-core/src/services/local-inference/providers.d.ts.map +1 -1
- package/packages/app-core/src/services/local-inference/providers.js +46 -0
- package/packages/app-core/src/services/local-inference/routing-preferences.d.ts +3 -1
- package/packages/app-core/src/services/local-inference/routing-preferences.d.ts.map +1 -1
- package/packages/app-core/src/services/local-inference/routing-preferences.js +1 -0
- package/packages/app-core/src/services/local-inference/types.d.ts +1 -1
- package/packages/app-core/src/services/local-inference/types.d.ts.map +1 -1
- package/packages/app-core/src/shell/AppWindowRenderer.d.ts.map +1 -1
- package/packages/app-core/src/shell/AppWindowRenderer.js +14 -26
- package/packages/app-core/src/state/AppContext.d.ts +1 -1
- package/packages/app-core/src/state/AppContext.d.ts.map +1 -1
- package/packages/app-core/src/state/AppContext.js +1 -1
- package/packages/app-core/src/state/connector-deeplink.d.ts +30 -0
- package/packages/app-core/src/state/connector-deeplink.d.ts.map +1 -0
- package/packages/app-core/src/state/connector-deeplink.js +46 -0
- package/packages/app-core/src/state/index.d.ts +1 -0
- package/packages/app-core/src/state/index.d.ts.map +1 -1
- package/packages/app-core/src/state/index.js +1 -0
- package/packages/app-core/src/state/useCloudState.d.ts.map +1 -1
- package/packages/app-core/src/state/useCloudState.js +4 -1
- package/packages/app-core/src/state/useMiscUiState.js +1 -1
- package/packages/app-core/src/utils/asset-url.d.ts.map +1 -1
- package/packages/app-core/src/utils/asset-url.js +14 -1
- package/packages/app-core/src/utils/browser-tabs-renderer-registry.d.ts +56 -0
- package/packages/app-core/src/utils/browser-tabs-renderer-registry.d.ts.map +1 -0
- package/packages/app-core/src/utils/browser-tabs-renderer-registry.js +738 -0
- package/packages/app-core/src/utils/errors.d.ts +13 -0
- package/packages/app-core/src/utils/errors.d.ts.map +1 -0
- package/packages/app-core/src/utils/errors.js +25 -0
- package/packages/shared/src/connector-cred-types.d.ts +27 -0
- package/packages/shared/src/connector-cred-types.d.ts.map +1 -0
- package/packages/shared/src/connector-cred-types.js +63 -0
- package/packages/shared/src/contracts/apps.d.ts.map +1 -1
- package/packages/shared/src/contracts/apps.js +10 -0
- package/packages/shared/src/contracts/lifeops-extensions.d.ts +145 -0
- package/packages/shared/src/contracts/lifeops-extensions.d.ts.map +1 -1
- package/packages/shared/src/contracts/lifeops-extensions.js +6 -0
- package/packages/shared/src/contracts/lifeops.d.ts +265 -25
- package/packages/shared/src/contracts/lifeops.d.ts.map +1 -1
- package/packages/shared/src/contracts/lifeops.js +56 -0
- package/packages/shared/src/contracts/service-routing.d.ts +1 -0
- package/packages/shared/src/contracts/service-routing.d.ts.map +1 -1
- package/packages/shared/src/contracts/service-routing.js +3 -0
- package/packages/shared/src/index.d.ts +1 -0
- package/packages/shared/src/index.d.ts.map +1 -1
- package/packages/shared/src/index.js +1 -0
- package/packages/shared/src/runtime-env.d.ts +2 -0
- package/packages/shared/src/runtime-env.d.ts.map +1 -1
- package/packages/shared/src/runtime-env.js +20 -0
- package/packages/shared/src/spoken-text.js +2 -2
- package/packages/typescript/src/action-docs.d.ts +4 -0
- package/packages/typescript/src/action-docs.d.ts.map +1 -1
- package/packages/typescript/src/action-docs.js +29 -5
- package/packages/typescript/src/actions.d.ts.map +1 -1
- package/packages/typescript/src/actions.js +19 -3
- package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.js +23 -4
- package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.js +2 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.js +2 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.js +23 -3
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.js +9 -1
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.js +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/save-attachment-to-clipboard.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/save-attachment-to-clipboard.js +8 -1
- package/packages/typescript/src/features/advanced-capabilities/clipboard/types.d.ts +1 -1
- package/packages/typescript/src/features/advanced-capabilities/clipboard/types.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.js +2 -2
- package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.js +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/actions/search-experiences.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/actions/search-experiences.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/actions/search-experiences.js +110 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.js +5 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/index.d.ts +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/index.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/experience/index.js +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.js +16 -6
- package/packages/typescript/src/features/advanced-capabilities/experience/service.d.ts +21 -1
- package/packages/typescript/src/features/advanced-capabilities/experience/service.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/experience/service.js +391 -8
- package/packages/typescript/src/features/advanced-capabilities/experience/types.d.ts +44 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/types.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceFormatter.d.ts +24 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceFormatter.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceFormatter.js +152 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceText.d.ts +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceText.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceText.js +53 -1
- package/packages/typescript/src/features/advanced-capabilities/index.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/index.js +4 -2
- package/packages/typescript/src/features/advanced-capabilities/personality/index.d.ts +1 -2
- package/packages/typescript/src/features/advanced-capabilities/personality/index.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/personality/index.js +1 -2
- package/packages/typescript/src/features/advanced-planning/actions/chain-example.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-planning/actions/chain-example.js +4 -7
- package/packages/typescript/src/features/basic-capabilities/actions/reply.d.ts.map +1 -1
- package/packages/typescript/src/features/basic-capabilities/actions/reply.js +1 -0
- package/packages/typescript/src/features/basic-capabilities/index.d.ts +1 -1
- package/packages/typescript/src/features/basic-capabilities/index.d.ts.map +1 -1
- package/packages/typescript/src/features/basic-capabilities/providers/actions.d.ts.map +1 -1
- package/packages/typescript/src/features/basic-capabilities/providers/actions.js +40 -2
- package/packages/typescript/src/features/index.js +1 -1
- package/packages/typescript/src/features/knowledge/actions.d.ts.map +1 -1
- package/packages/typescript/src/features/knowledge/actions.js +42 -16
- package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.d.ts.map +1 -1
- package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.js +23 -5
- package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.d.ts.map +1 -1
- package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.js +31 -6
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/core-status.d.ts.map +1 -1
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/create.d.ts.map +1 -1
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/create.js +21 -5
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/eject.d.ts.map +1 -1
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/eject.js +3 -1
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/install.d.ts.map +1 -1
- package/packages/typescript/src/features/plugin-manager/actions/plugin.d.ts.map +1 -1
- package/packages/typescript/src/features/plugin-manager/actions/plugin.js +4 -1
- package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.d.ts.map +1 -1
- package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.js +44 -11
- package/packages/typescript/src/features/plugin-manager/index.d.ts +2 -2
- package/packages/typescript/src/features/plugin-manager/index.d.ts.map +1 -1
- package/packages/typescript/src/features/plugin-manager/index.js +3 -3
- package/packages/typescript/src/features/plugin-manager/security.d.ts.map +1 -1
- package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.d.ts.map +1 -1
- package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.js +0 -1
- package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.d.ts.map +1 -1
- package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.js +1 -2
- package/packages/typescript/src/features/secrets/actions/manage-secret.d.ts.map +1 -1
- package/packages/typescript/src/features/secrets/actions/manage-secret.js +13 -2
- package/packages/typescript/src/features/secrets/actions/request-secret.d.ts.map +1 -1
- package/packages/typescript/src/features/secrets/actions/request-secret.js +23 -5
- package/packages/typescript/src/features/secrets/actions/set-secret.d.ts.map +1 -1
- package/packages/typescript/src/features/secrets/actions/set-secret.js +22 -4
- package/packages/typescript/src/features/secrets/index.d.ts +22 -0
- package/packages/typescript/src/features/secrets/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/index.js +24 -0
- package/packages/typescript/src/features/secrets/onboarding/action.d.ts.map +1 -1
- package/packages/typescript/src/features/secrets/onboarding/action.js +1 -0
- package/packages/typescript/src/features/secrets/plugin.d.ts +70 -0
- package/packages/typescript/src/features/secrets/plugin.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/plugin.js +87 -0
- package/packages/typescript/src/features/secrets/services/index.d.ts +7 -0
- package/packages/typescript/src/features/secrets/services/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/services/index.js +5 -0
- package/packages/typescript/src/features/secrets/types.d.ts +1 -1
- package/packages/typescript/src/features/secrets/types.js +1 -1
- package/packages/typescript/src/features/trust/actions/evaluateTrust.d.ts.map +1 -1
- package/packages/typescript/src/features/trust/actions/evaluateTrust.js +5 -0
- package/packages/typescript/src/features/trust/actions/recordTrustInteraction.d.ts.map +1 -1
- package/packages/typescript/src/features/trust/actions/recordTrustInteraction.js +5 -0
- package/packages/typescript/src/features/trust/actions/requestElevation.d.ts.map +1 -1
- package/packages/typescript/src/features/trust/actions/requestElevation.js +5 -0
- package/packages/typescript/src/features/trust/actions/roles.d.ts.map +1 -1
- package/packages/typescript/src/features/trust/actions/roles.js +4 -0
- package/packages/typescript/src/features/trust/actions/settings.d.ts.map +1 -1
- package/packages/typescript/src/features/trust/actions/settings.js +17 -4
- package/packages/typescript/src/features/trust/index.js +4 -4
- package/packages/typescript/src/features/trust/providers/settings.js +1 -1
- package/packages/typescript/src/features/trust/services/SecurityStore.d.ts +1 -1
- package/packages/typescript/src/features/trust/services/SecurityStore.js +1 -1
- package/packages/typescript/src/features/trust/services/db.js +1 -1
- package/packages/typescript/src/generated/action-docs.d.ts +93 -15
- package/packages/typescript/src/generated/action-docs.d.ts.map +1 -1
- package/packages/typescript/src/generated/action-docs.js +93 -16
- package/packages/typescript/src/index.node.d.ts +3 -0
- package/packages/typescript/src/index.node.d.ts.map +1 -1
- package/packages/typescript/src/index.node.js +4 -0
- package/packages/typescript/src/lifeops-passive-connectors.d.ts +7 -0
- package/packages/typescript/src/lifeops-passive-connectors.d.ts.map +1 -0
- package/packages/typescript/src/lifeops-passive-connectors.js +39 -0
- package/packages/typescript/src/runtime.d.ts +1 -0
- package/packages/typescript/src/runtime.d.ts.map +1 -1
- package/packages/typescript/src/runtime.js +199 -9
- package/packages/typescript/src/services/message.d.ts +7 -0
- package/packages/typescript/src/services/message.d.ts.map +1 -1
- package/packages/typescript/src/services/message.js +222 -25
- package/packages/typescript/src/types/components.d.ts +5 -0
- package/packages/typescript/src/types/components.d.ts.map +1 -1
- package/packages/typescript/src/types/memory.d.ts +2 -1
- package/packages/typescript/src/types/memory.d.ts.map +1 -1
- package/packages/typescript/src/utils/context-catalog.d.ts.map +1 -1
- package/packages/typescript/src/utils/context-catalog.js +124 -14
- package/packages/typescript/src/utils/context-routing.d.ts.map +1 -1
- package/packages/typescript/src/utils/context-routing.js +42 -0
- package/packages/typescript/src/utils/prompt-compression.d.ts +6 -0
- package/packages/typescript/src/utils/prompt-compression.d.ts.map +1 -0
- package/packages/typescript/src/utils/prompt-compression.js +14 -0
- package/packages/typescript/src/utils.d.ts +1 -0
- package/packages/typescript/src/utils.d.ts.map +1 -1
- package/packages/typescript/src/utils.js +2 -1
- package/packages/ui/src/components/composites/chat/chat-composer-shell.js +1 -1
- package/packages/ui/src/components/composites/sidebar/sidebar-root.js +3 -3
- package/packages/ui/src/components/ui/dialog.js +1 -1
- package/packages/ui/src/components/ui/drawer-sheet.js +1 -1
- package/packages/ui/src/components/ui/themed-select.js +2 -2
- package/packages/ui/src/components/ui/tooltip-extended.js +1 -1
- package/packages/ui/src/components/ui/tooltip.js +1 -1
- package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.js +1 -1
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.js +2 -2
- package/plugins/plugin-browser-bridge/src/actions.d.ts +44 -0
- package/plugins/plugin-browser-bridge/src/actions.d.ts.map +1 -0
- package/plugins/plugin-browser-bridge/src/actions.js +234 -0
- package/plugins/plugin-browser-bridge/src/contracts.d.ts +272 -0
- package/plugins/plugin-browser-bridge/src/contracts.d.ts.map +1 -0
- package/plugins/plugin-browser-bridge/src/contracts.js +48 -0
- package/plugins/plugin-browser-bridge/src/index.d.ts +19 -0
- package/plugins/plugin-browser-bridge/src/index.d.ts.map +1 -0
- package/plugins/plugin-browser-bridge/src/index.js +18 -0
- package/plugins/plugin-browser-bridge/src/packaging.d.ts +27 -0
- package/plugins/plugin-browser-bridge/src/packaging.d.ts.map +1 -0
- package/plugins/plugin-browser-bridge/src/packaging.js +503 -0
- package/plugins/plugin-browser-bridge/src/plugin.d.ts +10 -0
- package/plugins/plugin-browser-bridge/src/plugin.d.ts.map +1 -0
- package/plugins/plugin-browser-bridge/src/plugin.js +140 -0
- package/plugins/plugin-browser-bridge/src/routes.d.ts +37 -0
- package/plugins/plugin-browser-bridge/src/routes.d.ts.map +1 -0
- package/plugins/plugin-browser-bridge/src/routes.js +496 -0
- package/plugins/plugin-browser-bridge/src/schema.d.ts +2250 -0
- package/plugins/plugin-browser-bridge/src/schema.d.ts.map +1 -0
- package/plugins/plugin-browser-bridge/src/schema.js +111 -0
- package/plugins/plugin-browser-bridge/src/service.d.ts +28 -0
- package/plugins/plugin-browser-bridge/src/service.d.ts.map +1 -0
- package/plugins/plugin-browser-bridge/src/service.js +1 -0
- package/apps/app-lifeops/src/components/AppBlockerSettingsCard.d.ts +0 -3
- package/apps/app-lifeops/src/components/AppBlockerSettingsCard.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/AppBlockerSettingsCard.js +0 -189
- package/apps/app-lifeops/src/components/BrowserBridgeSetupPanel.d.ts +0 -2
- package/apps/app-lifeops/src/components/BrowserBridgeSetupPanel.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/BrowserBridgeSetupPanel.js +0 -1065
- package/apps/app-lifeops/src/components/BrowserBridgeStatusChip.d.ts +0 -7
- package/apps/app-lifeops/src/components/BrowserBridgeStatusChip.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/BrowserBridgeStatusChip.js +0 -71
- package/apps/app-lifeops/src/components/DataSourcesStrip.d.ts +0 -14
- package/apps/app-lifeops/src/components/DataSourcesStrip.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/DataSourcesStrip.js +0 -36
- package/apps/app-lifeops/src/components/EventEditorDrawer.d.ts +0 -23
- package/apps/app-lifeops/src/components/EventEditorDrawer.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/EventEditorDrawer.js +0 -514
- package/apps/app-lifeops/src/components/LifeOpsActivitySignalsEffect.d.ts +0 -2
- package/apps/app-lifeops/src/components/LifeOpsActivitySignalsEffect.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsActivitySignalsEffect.js +0 -10
- package/apps/app-lifeops/src/components/LifeOpsCalendarSection.d.ts +0 -15
- package/apps/app-lifeops/src/components/LifeOpsCalendarSection.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsCalendarSection.js +0 -515
- package/apps/app-lifeops/src/components/LifeOpsChatAdapter.d.ts +0 -34
- package/apps/app-lifeops/src/components/LifeOpsChatAdapter.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsChatAdapter.js +0 -175
- package/apps/app-lifeops/src/components/LifeOpsFeatureTogglesSection.d.ts +0 -2
- package/apps/app-lifeops/src/components/LifeOpsFeatureTogglesSection.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsFeatureTogglesSection.js +0 -99
- package/apps/app-lifeops/src/components/LifeOpsHabitVisuals.d.ts +0 -37
- package/apps/app-lifeops/src/components/LifeOpsHabitVisuals.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsHabitVisuals.js +0 -88
- package/apps/app-lifeops/src/components/LifeOpsInboxSection.d.ts +0 -13
- package/apps/app-lifeops/src/components/LifeOpsInboxSection.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsInboxSection.js +0 -491
- package/apps/app-lifeops/src/components/LifeOpsLinkBankButton.d.ts +0 -12
- package/apps/app-lifeops/src/components/LifeOpsLinkBankButton.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsLinkBankButton.js +0 -92
- package/apps/app-lifeops/src/components/LifeOpsLinkPaypalButton.d.ts +0 -12
- package/apps/app-lifeops/src/components/LifeOpsLinkPaypalButton.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsLinkPaypalButton.js +0 -160
- package/apps/app-lifeops/src/components/LifeOpsMoneySection.d.ts +0 -3
- package/apps/app-lifeops/src/components/LifeOpsMoneySection.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsMoneySection.js +0 -373
- package/apps/app-lifeops/src/components/LifeOpsNavRail.d.ts +0 -9
- package/apps/app-lifeops/src/components/LifeOpsNavRail.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsNavRail.js +0 -93
- package/apps/app-lifeops/src/components/LifeOpsOperationalPanels.d.ts +0 -4
- package/apps/app-lifeops/src/components/LifeOpsOperationalPanels.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsOperationalPanels.js +0 -274
- package/apps/app-lifeops/src/components/LifeOpsOverviewSection.d.ts +0 -7
- package/apps/app-lifeops/src/components/LifeOpsOverviewSection.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsOverviewSection.js +0 -670
- package/apps/app-lifeops/src/components/LifeOpsPageSections.d.ts +0 -42
- package/apps/app-lifeops/src/components/LifeOpsPageSections.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsPageSections.js +0 -166
- package/apps/app-lifeops/src/components/LifeOpsPageView.d.ts +0 -2
- package/apps/app-lifeops/src/components/LifeOpsPageView.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsPageView.js +0 -566
- package/apps/app-lifeops/src/components/LifeOpsRemindersSection.d.ts +0 -2
- package/apps/app-lifeops/src/components/LifeOpsRemindersSection.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsRemindersSection.js +0 -749
- package/apps/app-lifeops/src/components/LifeOpsResizableSidebar.d.ts +0 -27
- package/apps/app-lifeops/src/components/LifeOpsResizableSidebar.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsResizableSidebar.js +0 -106
- package/apps/app-lifeops/src/components/LifeOpsScreenTimeSection.d.ts +0 -2
- package/apps/app-lifeops/src/components/LifeOpsScreenTimeSection.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsScreenTimeSection.js +0 -373
- package/apps/app-lifeops/src/components/LifeOpsSectionContent.d.ts +0 -10
- package/apps/app-lifeops/src/components/LifeOpsSectionContent.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsSectionContent.js +0 -30
- package/apps/app-lifeops/src/components/LifeOpsSelectionContext.d.ts +0 -21
- package/apps/app-lifeops/src/components/LifeOpsSelectionContext.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsSelectionContext.js +0 -30
- package/apps/app-lifeops/src/components/LifeOpsSettingsSection.d.ts +0 -20
- package/apps/app-lifeops/src/components/LifeOpsSettingsSection.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsSettingsSection.js +0 -598
- package/apps/app-lifeops/src/components/LifeOpsSetupGate.d.ts +0 -13
- package/apps/app-lifeops/src/components/LifeOpsSetupGate.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsSetupGate.js +0 -134
- package/apps/app-lifeops/src/components/LifeOpsSleepSection.d.ts +0 -10
- package/apps/app-lifeops/src/components/LifeOpsSleepSection.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsSleepSection.js +0 -425
- package/apps/app-lifeops/src/components/LifeOpsWorkspaceShell.d.ts +0 -11
- package/apps/app-lifeops/src/components/LifeOpsWorkspaceShell.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsWorkspaceShell.js +0 -49
- package/apps/app-lifeops/src/components/LifeOpsWorkspaceView.d.ts +0 -2
- package/apps/app-lifeops/src/components/LifeOpsWorkspaceView.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/LifeOpsWorkspaceView.js +0 -1041
- package/apps/app-lifeops/src/components/MessagingConnectorCards.d.ts +0 -7
- package/apps/app-lifeops/src/components/MessagingConnectorCards.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/MessagingConnectorCards.js +0 -643
- package/apps/app-lifeops/src/components/MissingSourceCard.d.ts +0 -9
- package/apps/app-lifeops/src/components/MissingSourceCard.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/MissingSourceCard.js +0 -5
- package/apps/app-lifeops/src/components/MobileSignalsSetupCard.d.ts +0 -2
- package/apps/app-lifeops/src/components/MobileSignalsSetupCard.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/MobileSignalsSetupCard.js +0 -163
- package/apps/app-lifeops/src/components/SleepInspectionPanel.d.ts +0 -8
- package/apps/app-lifeops/src/components/SleepInspectionPanel.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/SleepInspectionPanel.js +0 -59
- package/apps/app-lifeops/src/components/WebsiteBlockerSettingsCard.d.ts +0 -3
- package/apps/app-lifeops/src/components/WebsiteBlockerSettingsCard.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/WebsiteBlockerSettingsCard.js +0 -75
- package/apps/app-lifeops/src/components/WhatsAppQrOverlay.d.ts +0 -8
- package/apps/app-lifeops/src/components/WhatsAppQrOverlay.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/WhatsAppQrOverlay.js +0 -48
- package/apps/app-lifeops/src/components/lifeops-labels.d.ts +0 -2
- package/apps/app-lifeops/src/components/lifeops-labels.d.ts.map +0 -1
- package/apps/app-lifeops/src/components/lifeops-labels.js +0 -5
- package/apps/app-lifeops/src/events/index.d.ts +0 -34
- package/apps/app-lifeops/src/events/index.d.ts.map +0 -1
- package/apps/app-lifeops/src/events/index.js +0 -23
- package/apps/app-lifeops/src/hooks/useCalendarWeek.d.ts +0 -28
- package/apps/app-lifeops/src/hooks/useCalendarWeek.d.ts.map +0 -1
- package/apps/app-lifeops/src/hooks/useCalendarWeek.js +0 -93
- package/apps/app-lifeops/src/hooks/useDiscordConnector.d.ts +0 -14
- package/apps/app-lifeops/src/hooks/useDiscordConnector.d.ts.map +0 -1
- package/apps/app-lifeops/src/hooks/useDiscordConnector.js +0 -126
- package/apps/app-lifeops/src/hooks/useGoogleLifeOpsConnector.d.ts +0 -29
- package/apps/app-lifeops/src/hooks/useGoogleLifeOpsConnector.d.ts.map +0 -1
- package/apps/app-lifeops/src/hooks/useGoogleLifeOpsConnector.js +0 -481
- package/apps/app-lifeops/src/hooks/useIMessageConnector.d.ts +0 -10
- package/apps/app-lifeops/src/hooks/useIMessageConnector.d.ts.map +0 -1
- package/apps/app-lifeops/src/hooks/useIMessageConnector.js +0 -50
- package/apps/app-lifeops/src/hooks/useInbox.d.ts +0 -34
- package/apps/app-lifeops/src/hooks/useInbox.d.ts.map +0 -1
- package/apps/app-lifeops/src/hooks/useInbox.js +0 -98
- package/apps/app-lifeops/src/hooks/useLifeOpsActivitySignals.d.ts +0 -2
- package/apps/app-lifeops/src/hooks/useLifeOpsActivitySignals.d.ts.map +0 -1
- package/apps/app-lifeops/src/hooks/useLifeOpsActivitySignals.js +0 -383
- package/apps/app-lifeops/src/hooks/useLifeOpsAppState.d.ts +0 -9
- package/apps/app-lifeops/src/hooks/useLifeOpsAppState.d.ts.map +0 -1
- package/apps/app-lifeops/src/hooks/useLifeOpsAppState.js +0 -83
- package/apps/app-lifeops/src/hooks/useLifeOpsCapabilitiesStatus.d.ts +0 -8
- package/apps/app-lifeops/src/hooks/useLifeOpsCapabilitiesStatus.d.ts.map +0 -1
- package/apps/app-lifeops/src/hooks/useLifeOpsCapabilitiesStatus.js +0 -60
- package/apps/app-lifeops/src/hooks/useLifeOpsScheduleInspection.d.ts +0 -18
- package/apps/app-lifeops/src/hooks/useLifeOpsScheduleInspection.d.ts.map +0 -1
- package/apps/app-lifeops/src/hooks/useLifeOpsScheduleInspection.js +0 -66
- package/apps/app-lifeops/src/hooks/useLifeOpsScheduleState.d.ts +0 -14
- package/apps/app-lifeops/src/hooks/useLifeOpsScheduleState.d.ts.map +0 -1
- package/apps/app-lifeops/src/hooks/useLifeOpsScheduleState.js +0 -79
- package/apps/app-lifeops/src/hooks/useLifeOpsSection.d.ts +0 -18
- package/apps/app-lifeops/src/hooks/useLifeOpsSection.d.ts.map +0 -1
- package/apps/app-lifeops/src/hooks/useLifeOpsSection.js +0 -78
- package/apps/app-lifeops/src/hooks/useLifeOpsXConnector.d.ts +0 -14
- package/apps/app-lifeops/src/hooks/useLifeOpsXConnector.d.ts.map +0 -1
- package/apps/app-lifeops/src/hooks/useLifeOpsXConnector.js +0 -160
- package/apps/app-lifeops/src/hooks/useSignalConnector.d.ts +0 -16
- package/apps/app-lifeops/src/hooks/useSignalConnector.d.ts.map +0 -1
- package/apps/app-lifeops/src/hooks/useSignalConnector.js +0 -198
- package/apps/app-lifeops/src/hooks/useTelegramConnector.d.ts +0 -21
- package/apps/app-lifeops/src/hooks/useTelegramConnector.d.ts.map +0 -1
- package/apps/app-lifeops/src/hooks/useTelegramConnector.js +0 -177
- package/apps/app-lifeops/src/hooks/useWhatsAppConnector.d.ts +0 -8
- package/apps/app-lifeops/src/hooks/useWhatsAppConnector.d.ts.map +0 -1
- package/apps/app-lifeops/src/hooks/useWhatsAppConnector.js +0 -58
- package/apps/app-lifeops/src/hooks/useWhatsAppPairing.d.ts +0 -12
- package/apps/app-lifeops/src/hooks/useWhatsAppPairing.d.ts.map +0 -1
- package/apps/app-lifeops/src/hooks/useWhatsAppPairing.js +0 -159
- package/apps/app-lifeops/src/lifeops-route.d.ts +0 -74
- package/apps/app-lifeops/src/lifeops-route.d.ts.map +0 -1
- package/apps/app-lifeops/src/lifeops-route.js +0 -204
- package/apps/app-lifeops/src/platform/lifeops-github.d.ts +0 -15
- package/apps/app-lifeops/src/platform/lifeops-github.d.ts.map +0 -1
- package/apps/app-lifeops/src/platform/lifeops-github.js +0 -135
- package/apps/app-lifeops/src/types/app-blocker-settings-card.d.ts +0 -2
- package/apps/app-lifeops/src/types/app-blocker-settings-card.d.ts.map +0 -1
- package/apps/app-lifeops/src/types/app-blocker-settings-card.js +0 -1
- package/apps/app-lifeops/src/types/index.d.ts +0 -3
- package/apps/app-lifeops/src/types/index.d.ts.map +0 -1
- package/apps/app-lifeops/src/types/index.js +0 -1
- package/apps/app-lifeops/src/types/website-blocker-settings-card.d.ts +0 -2
- package/apps/app-lifeops/src/types/website-blocker-settings-card.d.ts.map +0 -1
- package/apps/app-lifeops/src/types/website-blocker-settings-card.js +0 -1
- package/apps/app-lifeops/src/ui.d.ts +0 -11
- package/apps/app-lifeops/src/ui.d.ts.map +0 -1
- package/apps/app-lifeops/src/ui.js +0 -9
- package/apps/app-lifeops/src/utils/lifeops-url.d.ts +0 -5
- package/apps/app-lifeops/src/utils/lifeops-url.d.ts.map +0 -1
- package/apps/app-lifeops/src/utils/lifeops-url.js +0 -35
- package/packages/native-plugins/mobile-signals/src/definitions.d.ts +0 -162
- package/packages/native-plugins/mobile-signals/src/definitions.d.ts.map +0 -1
- package/packages/native-plugins/mobile-signals/src/definitions.js +0 -1
- package/packages/native-plugins/mobile-signals/src/index.d.ts +0 -4
- package/packages/native-plugins/mobile-signals/src/index.d.ts.map +0 -1
- package/packages/native-plugins/mobile-signals/src/index.js +0 -6
- package/packages/native-plugins/mobile-signals/src/web.d.ts +0 -29
- package/packages/native-plugins/mobile-signals/src/web.d.ts.map +0 -1
- package/packages/native-plugins/mobile-signals/src/web.js +0 -269
|
@@ -1,1041 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Badge, Button, client, Input, SegmentedControl, Textarea, useApp, } from "@elizaos/app-core";
|
|
3
|
-
import { useCallback, useEffect, useMemo, useState, } from "react";
|
|
4
|
-
import { useGoogleLifeOpsConnector } from "../hooks/useGoogleLifeOpsConnector.js";
|
|
5
|
-
const CONNECTOR_REFRESH_INTERVAL_MS = 30_000;
|
|
6
|
-
const GMAIL_MESSAGE_LIMIT = 12;
|
|
7
|
-
const GMAIL_BULK_MESSAGE_LIMIT = 50;
|
|
8
|
-
const TODAY_WINDOW_DAYS = 1;
|
|
9
|
-
const WEEK_WINDOW_DAYS = 7;
|
|
10
|
-
function capabilitySet(status) {
|
|
11
|
-
return new Set(status?.grantedCapabilities ?? []);
|
|
12
|
-
}
|
|
13
|
-
function sideLabel(side, t) {
|
|
14
|
-
return side === "owner"
|
|
15
|
-
? t("lifeopsworkspace.user", {
|
|
16
|
-
defaultValue: "User",
|
|
17
|
-
})
|
|
18
|
-
: t("chat.agentType", {
|
|
19
|
-
defaultValue: "Agent",
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
function connectorStatusLabel(status, t) {
|
|
23
|
-
if (status?.connected) {
|
|
24
|
-
return t("lifeopsworkspace.connected", {
|
|
25
|
-
defaultValue: "Connected",
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
switch (status?.reason) {
|
|
29
|
-
case "needs_reauth":
|
|
30
|
-
return t("lifeopsworkspace.needsReauth", {
|
|
31
|
-
defaultValue: "Needs reauth",
|
|
32
|
-
});
|
|
33
|
-
case "config_missing":
|
|
34
|
-
return t("lifeopsworkspace.needsSetup", {
|
|
35
|
-
defaultValue: "Needs setup",
|
|
36
|
-
});
|
|
37
|
-
case "token_missing":
|
|
38
|
-
return t("lifeopsworkspace.tokenMissing", {
|
|
39
|
-
defaultValue: "Token missing",
|
|
40
|
-
});
|
|
41
|
-
default:
|
|
42
|
-
return t("lifeopsworkspace.notConnected", {
|
|
43
|
-
defaultValue: "Not connected",
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
function readIdentityLabel(identity, t) {
|
|
48
|
-
if (!identity) {
|
|
49
|
-
return {
|
|
50
|
-
primary: t("lifeopsworkspace.notConnected", {
|
|
51
|
-
defaultValue: "Not connected",
|
|
52
|
-
}),
|
|
53
|
-
secondary: null,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
const name = typeof identity.name === "string" && identity.name.trim().length > 0
|
|
57
|
-
? identity.name.trim()
|
|
58
|
-
: null;
|
|
59
|
-
const email = typeof identity.email === "string" && identity.email.trim().length > 0
|
|
60
|
-
? identity.email.trim()
|
|
61
|
-
: null;
|
|
62
|
-
return {
|
|
63
|
-
primary: name ??
|
|
64
|
-
email ??
|
|
65
|
-
t("lifeopsworkspace.connected", {
|
|
66
|
-
defaultValue: "Connected",
|
|
67
|
-
}),
|
|
68
|
-
secondary: name && email ? email : null,
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
function startOfLocalDay(date = new Date()) {
|
|
72
|
-
const next = new Date(date);
|
|
73
|
-
next.setHours(0, 0, 0, 0);
|
|
74
|
-
return next;
|
|
75
|
-
}
|
|
76
|
-
function addDays(date, days) {
|
|
77
|
-
const next = new Date(date);
|
|
78
|
-
next.setDate(next.getDate() + days);
|
|
79
|
-
return next;
|
|
80
|
-
}
|
|
81
|
-
function combineDateTime(dateValue, timeValue) {
|
|
82
|
-
if (!dateValue || !timeValue) {
|
|
83
|
-
return null;
|
|
84
|
-
}
|
|
85
|
-
const parsed = new Date(`${dateValue}T${timeValue}`);
|
|
86
|
-
return Number.isFinite(parsed.getTime()) ? parsed.toISOString() : null;
|
|
87
|
-
}
|
|
88
|
-
function formatLocalDateTime(value, timeZone) {
|
|
89
|
-
if (!value) {
|
|
90
|
-
return "—";
|
|
91
|
-
}
|
|
92
|
-
const parsed = Date.parse(value);
|
|
93
|
-
if (!Number.isFinite(parsed)) {
|
|
94
|
-
return value;
|
|
95
|
-
}
|
|
96
|
-
return new Intl.DateTimeFormat(undefined, {
|
|
97
|
-
month: "short",
|
|
98
|
-
day: "numeric",
|
|
99
|
-
hour: "numeric",
|
|
100
|
-
minute: "2-digit",
|
|
101
|
-
timeZone,
|
|
102
|
-
}).format(new Date(parsed));
|
|
103
|
-
}
|
|
104
|
-
function formatDayLabel(value, timeZone) {
|
|
105
|
-
const parsed = Date.parse(value);
|
|
106
|
-
if (!Number.isFinite(parsed)) {
|
|
107
|
-
return value;
|
|
108
|
-
}
|
|
109
|
-
return new Intl.DateTimeFormat(undefined, {
|
|
110
|
-
weekday: "short",
|
|
111
|
-
month: "short",
|
|
112
|
-
day: "numeric",
|
|
113
|
-
timeZone,
|
|
114
|
-
}).format(new Date(parsed));
|
|
115
|
-
}
|
|
116
|
-
function formatTimeOfDay(value, timeZone) {
|
|
117
|
-
const parsed = Date.parse(value);
|
|
118
|
-
if (!Number.isFinite(parsed)) {
|
|
119
|
-
return value;
|
|
120
|
-
}
|
|
121
|
-
return new Intl.DateTimeFormat(undefined, {
|
|
122
|
-
hour: "numeric",
|
|
123
|
-
minute: "2-digit",
|
|
124
|
-
timeZone,
|
|
125
|
-
}).format(new Date(parsed));
|
|
126
|
-
}
|
|
127
|
-
function formatEventWindow(event, t, timeZone) {
|
|
128
|
-
if (event.isAllDay) {
|
|
129
|
-
return t("lifeopsworkspace.allDay", {
|
|
130
|
-
defaultValue: "All day",
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
return `${formatTimeOfDay(event.startAt, timeZone)} - ${formatTimeOfDay(event.endAt, timeZone)}`;
|
|
134
|
-
}
|
|
135
|
-
function eventOriginLabel(event) {
|
|
136
|
-
const parts = [event.calendarSummary, event.accountEmail].filter((value) => typeof value === "string" && value.trim().length > 0);
|
|
137
|
-
if (parts.length === 0) {
|
|
138
|
-
return null;
|
|
139
|
-
}
|
|
140
|
-
return parts.join(" · ");
|
|
141
|
-
}
|
|
142
|
-
function toLocalDateKey(date, timeZone) {
|
|
143
|
-
const formatter = new Intl.DateTimeFormat("en-CA", {
|
|
144
|
-
timeZone,
|
|
145
|
-
year: "numeric",
|
|
146
|
-
month: "2-digit",
|
|
147
|
-
day: "2-digit",
|
|
148
|
-
});
|
|
149
|
-
const parts = formatter.formatToParts(date);
|
|
150
|
-
const year = parts.find((part) => part.type === "year")?.value ?? "0000";
|
|
151
|
-
const month = parts.find((part) => part.type === "month")?.value ?? "00";
|
|
152
|
-
const day = parts.find((part) => part.type === "day")?.value ?? "00";
|
|
153
|
-
return `${year}-${month}-${day}`;
|
|
154
|
-
}
|
|
155
|
-
function groupEventsByDay(events, timeZone) {
|
|
156
|
-
const grouped = new Map();
|
|
157
|
-
for (const event of [...events].sort((left, right) => left.startAt.localeCompare(right.startAt))) {
|
|
158
|
-
const dayKey = toLocalDateKey(new Date(event.startAt), timeZone);
|
|
159
|
-
const existing = grouped.get(dayKey);
|
|
160
|
-
if (existing) {
|
|
161
|
-
existing.events.push(event);
|
|
162
|
-
continue;
|
|
163
|
-
}
|
|
164
|
-
grouped.set(dayKey, {
|
|
165
|
-
label: formatDayLabel(event.startAt, timeZone),
|
|
166
|
-
events: [event],
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
return [...grouped.entries()].map(([dayKey, value]) => ({
|
|
170
|
-
dayKey,
|
|
171
|
-
label: value.label,
|
|
172
|
-
events: value.events,
|
|
173
|
-
}));
|
|
174
|
-
}
|
|
175
|
-
function sortMessages(messages) {
|
|
176
|
-
return [...messages].sort((left, right) => {
|
|
177
|
-
if (left.likelyReplyNeeded !== right.likelyReplyNeeded) {
|
|
178
|
-
return left.likelyReplyNeeded ? -1 : 1;
|
|
179
|
-
}
|
|
180
|
-
return right.receivedAt.localeCompare(left.receivedAt);
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
function parseGmailLabelIds(value) {
|
|
184
|
-
return value
|
|
185
|
-
.split(",")
|
|
186
|
-
.map((labelId) => labelId.trim())
|
|
187
|
-
.filter((labelId) => labelId.length > 0);
|
|
188
|
-
}
|
|
189
|
-
function isDestructiveGmailOperation(operation) {
|
|
190
|
-
return (operation === "trash" ||
|
|
191
|
-
operation === "delete" ||
|
|
192
|
-
operation === "report_spam");
|
|
193
|
-
}
|
|
194
|
-
function gmailOperationLabel(operation, t) {
|
|
195
|
-
switch (operation) {
|
|
196
|
-
case "archive":
|
|
197
|
-
return t("lifeopsworkspace.archive", { defaultValue: "Archive" });
|
|
198
|
-
case "trash":
|
|
199
|
-
return t("lifeopsworkspace.trash", { defaultValue: "Trash" });
|
|
200
|
-
case "report_spam":
|
|
201
|
-
return t("lifeopsworkspace.reportSpam", {
|
|
202
|
-
defaultValue: "Report spam",
|
|
203
|
-
});
|
|
204
|
-
case "mark_read":
|
|
205
|
-
return t("lifeopsworkspace.markRead", { defaultValue: "Mark read" });
|
|
206
|
-
case "mark_unread":
|
|
207
|
-
return t("lifeopsworkspace.markUnread", {
|
|
208
|
-
defaultValue: "Mark unread",
|
|
209
|
-
});
|
|
210
|
-
case "apply_label":
|
|
211
|
-
return t("lifeopsworkspace.applyLabel", {
|
|
212
|
-
defaultValue: "Apply label",
|
|
213
|
-
});
|
|
214
|
-
case "remove_label":
|
|
215
|
-
return t("lifeopsworkspace.removeLabel", {
|
|
216
|
-
defaultValue: "Remove label",
|
|
217
|
-
});
|
|
218
|
-
case "delete":
|
|
219
|
-
return t("lifeopsworkspace.delete", { defaultValue: "Delete" });
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
function useLifeOpsSideWorkspace({ side, calendarWindow, timeZone, }) {
|
|
223
|
-
const { setActionNotice, t } = useApp();
|
|
224
|
-
const connector = useGoogleLifeOpsConnector({
|
|
225
|
-
pollWhileDisconnected: false,
|
|
226
|
-
side,
|
|
227
|
-
pollIntervalMs: CONNECTOR_REFRESH_INTERVAL_MS,
|
|
228
|
-
});
|
|
229
|
-
const status = connector.status;
|
|
230
|
-
const capabilities = useMemo(() => capabilitySet(status), [status]);
|
|
231
|
-
const connected = status?.connected === true;
|
|
232
|
-
const calendarEnabled = connected &&
|
|
233
|
-
(capabilities.has("google.calendar.read") ||
|
|
234
|
-
capabilities.has("google.calendar.write"));
|
|
235
|
-
const emailEnabled = connected &&
|
|
236
|
-
(capabilities.has("google.gmail.triage") ||
|
|
237
|
-
capabilities.has("google.gmail.send"));
|
|
238
|
-
const emailManageEnabled = connected && capabilities.has("google.gmail.manage");
|
|
239
|
-
const [loading, setLoading] = useState(false);
|
|
240
|
-
const [error, setError] = useState(null);
|
|
241
|
-
const [calendarFeed, setCalendarFeed] = useState(null);
|
|
242
|
-
const [gmailFeed, setGmailFeed] = useState(null);
|
|
243
|
-
const [gmailRecommendations, setGmailRecommendations] = useState(null);
|
|
244
|
-
const [gmailQuery, setGmailQuery] = useState("in:inbox");
|
|
245
|
-
const [gmailReplyNeededOnly, setGmailReplyNeededOnly] = useState(false);
|
|
246
|
-
const [gmailIncludeSpamTrash, setGmailIncludeSpamTrash] = useState(false);
|
|
247
|
-
const [gmailSelectedMessageIds, setGmailSelectedMessageIds] = useState([]);
|
|
248
|
-
const [gmailLabelIds, setGmailLabelIds] = useState("");
|
|
249
|
-
const [gmailManageConfirmed, setGmailManageConfirmed] = useState(false);
|
|
250
|
-
const [selectedCalendarId, setSelectedCalendarId] = useState(null);
|
|
251
|
-
const [selectedMessageId, setSelectedMessageId] = useState(null);
|
|
252
|
-
const [draftTone, setDraftTone] = useState("neutral");
|
|
253
|
-
const [drafting, setDrafting] = useState(false);
|
|
254
|
-
const [sending, setSending] = useState(false);
|
|
255
|
-
const [managing, setManaging] = useState(false);
|
|
256
|
-
const [draft, setDraft] = useState(null);
|
|
257
|
-
const [draftBody, setDraftBody] = useState("");
|
|
258
|
-
const [sendConfirmed, setSendConfirmed] = useState(false);
|
|
259
|
-
const [eventTitle, setEventTitle] = useState("");
|
|
260
|
-
const [eventDate, setEventDate] = useState(new Date().toISOString().slice(0, 10));
|
|
261
|
-
const [eventTime, setEventTime] = useState("09:00");
|
|
262
|
-
const [eventDurationMinutes, setEventDurationMinutes] = useState("30");
|
|
263
|
-
const [eventLocation, setEventLocation] = useState("");
|
|
264
|
-
const [creatingEvent, setCreatingEvent] = useState(false);
|
|
265
|
-
const windowDays = calendarWindow === "week" ? WEEK_WINDOW_DAYS : TODAY_WINDOW_DAYS;
|
|
266
|
-
const load = useCallback(async (options) => {
|
|
267
|
-
if (!connected || !status) {
|
|
268
|
-
setLoading(false);
|
|
269
|
-
setError(null);
|
|
270
|
-
setCalendarFeed(null);
|
|
271
|
-
setGmailFeed(null);
|
|
272
|
-
setGmailRecommendations(null);
|
|
273
|
-
setGmailSelectedMessageIds([]);
|
|
274
|
-
setDraft(null);
|
|
275
|
-
setDraftBody("");
|
|
276
|
-
setSendConfirmed(false);
|
|
277
|
-
return;
|
|
278
|
-
}
|
|
279
|
-
setLoading(true);
|
|
280
|
-
setError(null);
|
|
281
|
-
try {
|
|
282
|
-
const [nextCalendarFeed, nextGmailFeed] = await Promise.all([
|
|
283
|
-
calendarEnabled
|
|
284
|
-
? client.getLifeOpsCalendarFeed({
|
|
285
|
-
side: status.side,
|
|
286
|
-
mode: status.mode,
|
|
287
|
-
timeMin: startOfLocalDay().toISOString(),
|
|
288
|
-
timeMax: addDays(startOfLocalDay(), windowDays).toISOString(),
|
|
289
|
-
timeZone,
|
|
290
|
-
forceSync: options?.forceSync,
|
|
291
|
-
})
|
|
292
|
-
: Promise.resolve(null),
|
|
293
|
-
emailEnabled
|
|
294
|
-
? client.getLifeOpsGmailTriage({
|
|
295
|
-
side: status.side,
|
|
296
|
-
mode: status.mode,
|
|
297
|
-
maxResults: GMAIL_MESSAGE_LIMIT,
|
|
298
|
-
forceSync: options?.forceSync,
|
|
299
|
-
})
|
|
300
|
-
: Promise.resolve(null),
|
|
301
|
-
]);
|
|
302
|
-
setCalendarFeed(nextCalendarFeed);
|
|
303
|
-
setGmailFeed(nextGmailFeed);
|
|
304
|
-
setGmailRecommendations(null);
|
|
305
|
-
}
|
|
306
|
-
catch (cause) {
|
|
307
|
-
setError(cause instanceof Error && cause.message.trim().length > 0
|
|
308
|
-
? cause.message.trim()
|
|
309
|
-
: t("lifeopsworkspace.loadFailed", {
|
|
310
|
-
defaultValue: "Workspace failed to load.",
|
|
311
|
-
}));
|
|
312
|
-
}
|
|
313
|
-
finally {
|
|
314
|
-
setLoading(false);
|
|
315
|
-
}
|
|
316
|
-
}, [calendarEnabled, connected, emailEnabled, status, t, timeZone, windowDays]);
|
|
317
|
-
useEffect(() => {
|
|
318
|
-
void load();
|
|
319
|
-
}, [load]);
|
|
320
|
-
const calendarEvents = useMemo(() => [...(calendarFeed?.events ?? [])].sort((left, right) => left.startAt.localeCompare(right.startAt)), [calendarFeed]);
|
|
321
|
-
const groupedCalendarEvents = useMemo(() => groupEventsByDay(calendarEvents, timeZone), [calendarEvents, timeZone]);
|
|
322
|
-
const selectedCalendarEvent = useMemo(() => calendarEvents.find((event) => event.id === selectedCalendarId) ??
|
|
323
|
-
calendarEvents[0] ??
|
|
324
|
-
null, [calendarEvents, selectedCalendarId]);
|
|
325
|
-
const gmailMessages = useMemo(() => sortMessages(gmailFeed?.messages ?? []), [gmailFeed]);
|
|
326
|
-
const selectedGmailMessage = useMemo(() => gmailMessages.find((message) => message.id === selectedMessageId) ??
|
|
327
|
-
gmailMessages[0] ??
|
|
328
|
-
null, [gmailMessages, selectedMessageId]);
|
|
329
|
-
const identity = useMemo(() => readIdentityLabel(status?.identity ?? null, t), [status?.identity, t]);
|
|
330
|
-
useEffect(() => {
|
|
331
|
-
if (calendarEvents.length === 0) {
|
|
332
|
-
setSelectedCalendarId(null);
|
|
333
|
-
return;
|
|
334
|
-
}
|
|
335
|
-
if (selectedCalendarId &&
|
|
336
|
-
calendarEvents.some((event) => event.id === selectedCalendarId)) {
|
|
337
|
-
return;
|
|
338
|
-
}
|
|
339
|
-
setSelectedCalendarId(calendarEvents[0].id);
|
|
340
|
-
}, [calendarEvents, selectedCalendarId]);
|
|
341
|
-
useEffect(() => {
|
|
342
|
-
if (gmailMessages.length === 0) {
|
|
343
|
-
setSelectedMessageId(null);
|
|
344
|
-
setGmailSelectedMessageIds([]);
|
|
345
|
-
setDraft(null);
|
|
346
|
-
setDraftBody("");
|
|
347
|
-
setSendConfirmed(false);
|
|
348
|
-
return;
|
|
349
|
-
}
|
|
350
|
-
if (selectedMessageId &&
|
|
351
|
-
gmailMessages.some((message) => message.id === selectedMessageId)) {
|
|
352
|
-
return;
|
|
353
|
-
}
|
|
354
|
-
setSelectedMessageId(gmailMessages[0].id);
|
|
355
|
-
setSendConfirmed(false);
|
|
356
|
-
}, [gmailMessages, selectedMessageId]);
|
|
357
|
-
useEffect(() => {
|
|
358
|
-
const visibleIds = new Set(gmailMessages.map((message) => message.id));
|
|
359
|
-
setGmailSelectedMessageIds((current) => current.filter((messageId) => visibleIds.has(messageId)));
|
|
360
|
-
}, [gmailMessages]);
|
|
361
|
-
const handleSelectGmailMessage = useCallback((messageId) => {
|
|
362
|
-
setSelectedMessageId(messageId);
|
|
363
|
-
setSendConfirmed(false);
|
|
364
|
-
}, []);
|
|
365
|
-
const refresh = useCallback(async () => {
|
|
366
|
-
await connector.refresh({ silent: true });
|
|
367
|
-
await load({ forceSync: true });
|
|
368
|
-
setGmailSelectedMessageIds([]);
|
|
369
|
-
setGmailManageConfirmed(false);
|
|
370
|
-
}, [connector, load]);
|
|
371
|
-
const handleCreateEvent = useCallback(async () => {
|
|
372
|
-
if (!status || !calendarEnabled) {
|
|
373
|
-
return;
|
|
374
|
-
}
|
|
375
|
-
const startAt = combineDateTime(eventDate, eventTime);
|
|
376
|
-
const durationMinutes = Number(eventDurationMinutes);
|
|
377
|
-
if (!eventTitle.trim() || !startAt || !Number.isFinite(durationMinutes)) {
|
|
378
|
-
setError(t("lifeopsworkspace.createEventValidation", {
|
|
379
|
-
defaultValue: "Enter a title, date, time, and duration.",
|
|
380
|
-
}));
|
|
381
|
-
return;
|
|
382
|
-
}
|
|
383
|
-
setCreatingEvent(true);
|
|
384
|
-
setError(null);
|
|
385
|
-
try {
|
|
386
|
-
const result = await client.createLifeOpsCalendarEvent({
|
|
387
|
-
side: status.side,
|
|
388
|
-
mode: status.mode,
|
|
389
|
-
title: eventTitle.trim(),
|
|
390
|
-
location: eventLocation.trim() || undefined,
|
|
391
|
-
startAt,
|
|
392
|
-
timeZone,
|
|
393
|
-
durationMinutes,
|
|
394
|
-
});
|
|
395
|
-
setActionNotice(t("lifeopsworkspace.createdEvent", {
|
|
396
|
-
defaultValue: "Created {{title}}",
|
|
397
|
-
title: result.event.title,
|
|
398
|
-
}), "success", 2400);
|
|
399
|
-
setEventTitle("");
|
|
400
|
-
setEventLocation("");
|
|
401
|
-
await refresh();
|
|
402
|
-
setSelectedCalendarId(result.event.id);
|
|
403
|
-
}
|
|
404
|
-
catch (cause) {
|
|
405
|
-
setError(cause instanceof Error && cause.message.trim().length > 0
|
|
406
|
-
? cause.message.trim()
|
|
407
|
-
: t("lifeopsworkspace.createEventFailed", {
|
|
408
|
-
defaultValue: "Could not create the event.",
|
|
409
|
-
}));
|
|
410
|
-
}
|
|
411
|
-
finally {
|
|
412
|
-
setCreatingEvent(false);
|
|
413
|
-
}
|
|
414
|
-
}, [
|
|
415
|
-
calendarEnabled,
|
|
416
|
-
eventDate,
|
|
417
|
-
eventDurationMinutes,
|
|
418
|
-
eventLocation,
|
|
419
|
-
eventTime,
|
|
420
|
-
eventTitle,
|
|
421
|
-
refresh,
|
|
422
|
-
setActionNotice,
|
|
423
|
-
status,
|
|
424
|
-
t,
|
|
425
|
-
timeZone,
|
|
426
|
-
]);
|
|
427
|
-
const handleGenerateDraft = useCallback(async () => {
|
|
428
|
-
if (!status || !emailEnabled || !selectedGmailMessage) {
|
|
429
|
-
return;
|
|
430
|
-
}
|
|
431
|
-
setDrafting(true);
|
|
432
|
-
setError(null);
|
|
433
|
-
try {
|
|
434
|
-
const response = await client.createLifeOpsGmailReplyDraft({
|
|
435
|
-
side: status.side,
|
|
436
|
-
mode: status.mode,
|
|
437
|
-
messageId: selectedGmailMessage.id,
|
|
438
|
-
tone: draftTone,
|
|
439
|
-
includeQuotedOriginal: true,
|
|
440
|
-
});
|
|
441
|
-
setDraft(response.draft);
|
|
442
|
-
setDraftBody(response.draft.bodyText);
|
|
443
|
-
setSendConfirmed(false);
|
|
444
|
-
setActionNotice(t("lifeopsworkspace.draftedReply", {
|
|
445
|
-
defaultValue: "Drafted {{subject}}",
|
|
446
|
-
subject: selectedGmailMessage.subject,
|
|
447
|
-
}), "success", 2200);
|
|
448
|
-
}
|
|
449
|
-
catch (cause) {
|
|
450
|
-
setError(cause instanceof Error && cause.message.trim().length > 0
|
|
451
|
-
? cause.message.trim()
|
|
452
|
-
: t("lifeopsworkspace.draftReplyFailed", {
|
|
453
|
-
defaultValue: "Could not draft the reply.",
|
|
454
|
-
}));
|
|
455
|
-
}
|
|
456
|
-
finally {
|
|
457
|
-
setDrafting(false);
|
|
458
|
-
}
|
|
459
|
-
}, [
|
|
460
|
-
draftTone,
|
|
461
|
-
emailEnabled,
|
|
462
|
-
selectedGmailMessage,
|
|
463
|
-
setActionNotice,
|
|
464
|
-
status,
|
|
465
|
-
t,
|
|
466
|
-
]);
|
|
467
|
-
const handleSearchGmail = useCallback(async () => {
|
|
468
|
-
if (!status || !emailEnabled) {
|
|
469
|
-
return;
|
|
470
|
-
}
|
|
471
|
-
const query = gmailQuery.trim();
|
|
472
|
-
if (!query) {
|
|
473
|
-
setError(t("lifeopsworkspace.gmailSearchValidation", {
|
|
474
|
-
defaultValue: "Enter a Gmail search query.",
|
|
475
|
-
}));
|
|
476
|
-
return;
|
|
477
|
-
}
|
|
478
|
-
setLoading(true);
|
|
479
|
-
setError(null);
|
|
480
|
-
try {
|
|
481
|
-
const result = await client.getLifeOpsGmailSearch({
|
|
482
|
-
side: status.side,
|
|
483
|
-
mode: status.mode,
|
|
484
|
-
query,
|
|
485
|
-
maxResults: GMAIL_BULK_MESSAGE_LIMIT,
|
|
486
|
-
forceSync: true,
|
|
487
|
-
replyNeededOnly: gmailReplyNeededOnly,
|
|
488
|
-
includeSpamTrash: gmailIncludeSpamTrash,
|
|
489
|
-
});
|
|
490
|
-
setGmailFeed(result);
|
|
491
|
-
setGmailRecommendations(null);
|
|
492
|
-
setGmailSelectedMessageIds([]);
|
|
493
|
-
setGmailManageConfirmed(false);
|
|
494
|
-
}
|
|
495
|
-
catch (cause) {
|
|
496
|
-
setError(cause instanceof Error && cause.message.trim().length > 0
|
|
497
|
-
? cause.message.trim()
|
|
498
|
-
: t("lifeopsworkspace.gmailSearchFailed", {
|
|
499
|
-
defaultValue: "Could not search Gmail.",
|
|
500
|
-
}));
|
|
501
|
-
}
|
|
502
|
-
finally {
|
|
503
|
-
setLoading(false);
|
|
504
|
-
}
|
|
505
|
-
}, [
|
|
506
|
-
emailEnabled,
|
|
507
|
-
gmailIncludeSpamTrash,
|
|
508
|
-
gmailQuery,
|
|
509
|
-
gmailReplyNeededOnly,
|
|
510
|
-
status,
|
|
511
|
-
t,
|
|
512
|
-
]);
|
|
513
|
-
const handleShowNeedsResponse = useCallback(async () => {
|
|
514
|
-
if (!status || !emailEnabled) {
|
|
515
|
-
return;
|
|
516
|
-
}
|
|
517
|
-
setLoading(true);
|
|
518
|
-
setError(null);
|
|
519
|
-
try {
|
|
520
|
-
const result = await client.getLifeOpsGmailNeedsResponse({
|
|
521
|
-
side: status.side,
|
|
522
|
-
mode: status.mode,
|
|
523
|
-
maxResults: GMAIL_BULK_MESSAGE_LIMIT,
|
|
524
|
-
forceSync: true,
|
|
525
|
-
});
|
|
526
|
-
setGmailFeed(result);
|
|
527
|
-
setGmailRecommendations(null);
|
|
528
|
-
setGmailSelectedMessageIds([]);
|
|
529
|
-
setGmailManageConfirmed(false);
|
|
530
|
-
}
|
|
531
|
-
catch (cause) {
|
|
532
|
-
setError(cause instanceof Error && cause.message.trim().length > 0
|
|
533
|
-
? cause.message.trim()
|
|
534
|
-
: t("lifeopsworkspace.gmailNeedsResponseFailed", {
|
|
535
|
-
defaultValue: "Could not load Gmail messages that need response.",
|
|
536
|
-
}));
|
|
537
|
-
}
|
|
538
|
-
finally {
|
|
539
|
-
setLoading(false);
|
|
540
|
-
}
|
|
541
|
-
}, [emailEnabled, status, t]);
|
|
542
|
-
const handleLoadRecommendations = useCallback(async () => {
|
|
543
|
-
if (!status || !emailEnabled) {
|
|
544
|
-
return;
|
|
545
|
-
}
|
|
546
|
-
setLoading(true);
|
|
547
|
-
setError(null);
|
|
548
|
-
try {
|
|
549
|
-
const result = await client.getLifeOpsGmailRecommendations({
|
|
550
|
-
side: status.side,
|
|
551
|
-
mode: status.mode,
|
|
552
|
-
query: gmailQuery.trim() || undefined,
|
|
553
|
-
maxResults: GMAIL_BULK_MESSAGE_LIMIT,
|
|
554
|
-
forceSync: true,
|
|
555
|
-
replyNeededOnly: gmailReplyNeededOnly,
|
|
556
|
-
includeSpamTrash: gmailIncludeSpamTrash,
|
|
557
|
-
});
|
|
558
|
-
setGmailRecommendations(result);
|
|
559
|
-
setGmailManageConfirmed(false);
|
|
560
|
-
}
|
|
561
|
-
catch (cause) {
|
|
562
|
-
setError(cause instanceof Error && cause.message.trim().length > 0
|
|
563
|
-
? cause.message.trim()
|
|
564
|
-
: t("lifeopsworkspace.gmailRecommendationsFailed", {
|
|
565
|
-
defaultValue: "Could not load Gmail recommendations.",
|
|
566
|
-
}));
|
|
567
|
-
}
|
|
568
|
-
finally {
|
|
569
|
-
setLoading(false);
|
|
570
|
-
}
|
|
571
|
-
}, [
|
|
572
|
-
emailEnabled,
|
|
573
|
-
gmailIncludeSpamTrash,
|
|
574
|
-
gmailQuery,
|
|
575
|
-
gmailReplyNeededOnly,
|
|
576
|
-
status,
|
|
577
|
-
t,
|
|
578
|
-
]);
|
|
579
|
-
const handleSendDraft = useCallback(async () => {
|
|
580
|
-
if (!status || !selectedGmailMessage || draftBody.trim().length === 0) {
|
|
581
|
-
return;
|
|
582
|
-
}
|
|
583
|
-
if (!sendConfirmed) {
|
|
584
|
-
setError(t("lifeopsworkspace.sendConfirmationRequired", {
|
|
585
|
-
defaultValue: "Confirm this Gmail send before sending.",
|
|
586
|
-
}));
|
|
587
|
-
return;
|
|
588
|
-
}
|
|
589
|
-
setSending(true);
|
|
590
|
-
setError(null);
|
|
591
|
-
try {
|
|
592
|
-
await client.sendLifeOpsGmailReply({
|
|
593
|
-
side: status.side,
|
|
594
|
-
mode: status.mode,
|
|
595
|
-
messageId: selectedGmailMessage.id,
|
|
596
|
-
bodyText: draftBody,
|
|
597
|
-
confirmSend: true,
|
|
598
|
-
subject: draft?.subject,
|
|
599
|
-
to: draft?.to,
|
|
600
|
-
cc: draft?.cc,
|
|
601
|
-
});
|
|
602
|
-
setActionNotice(t("lifeopsworkspace.sentReply", {
|
|
603
|
-
defaultValue: "Sent {{subject}}",
|
|
604
|
-
subject: selectedGmailMessage.subject,
|
|
605
|
-
}), "success", 2400);
|
|
606
|
-
setDraft(null);
|
|
607
|
-
setDraftBody("");
|
|
608
|
-
setSendConfirmed(false);
|
|
609
|
-
await refresh();
|
|
610
|
-
}
|
|
611
|
-
catch (cause) {
|
|
612
|
-
setError(cause instanceof Error && cause.message.trim().length > 0
|
|
613
|
-
? cause.message.trim()
|
|
614
|
-
: t("lifeopsworkspace.sendReplyFailed", {
|
|
615
|
-
defaultValue: "Could not send the reply.",
|
|
616
|
-
}));
|
|
617
|
-
}
|
|
618
|
-
finally {
|
|
619
|
-
setSending(false);
|
|
620
|
-
}
|
|
621
|
-
}, [
|
|
622
|
-
draft,
|
|
623
|
-
draftBody,
|
|
624
|
-
refresh,
|
|
625
|
-
selectedGmailMessage,
|
|
626
|
-
sendConfirmed,
|
|
627
|
-
setActionNotice,
|
|
628
|
-
status,
|
|
629
|
-
t,
|
|
630
|
-
]);
|
|
631
|
-
const toggleGmailMessageSelection = useCallback((messageId) => {
|
|
632
|
-
setGmailManageConfirmed(false);
|
|
633
|
-
setGmailSelectedMessageIds((current) => current.includes(messageId)
|
|
634
|
-
? current.filter((id) => id !== messageId)
|
|
635
|
-
: [...current, messageId]);
|
|
636
|
-
}, []);
|
|
637
|
-
const handleManageMessage = useCallback(async (operation, options = {}) => {
|
|
638
|
-
if (!status || !emailManageEnabled) {
|
|
639
|
-
return;
|
|
640
|
-
}
|
|
641
|
-
const messageIds = options.messageIds ??
|
|
642
|
-
(gmailSelectedMessageIds.length > 0
|
|
643
|
-
? gmailSelectedMessageIds
|
|
644
|
-
: selectedGmailMessage
|
|
645
|
-
? [selectedGmailMessage.id]
|
|
646
|
-
: []);
|
|
647
|
-
if (messageIds.length === 0) {
|
|
648
|
-
setError(t("lifeopsworkspace.gmailSelectMessages", {
|
|
649
|
-
defaultValue: "Select at least one Gmail message.",
|
|
650
|
-
}));
|
|
651
|
-
return;
|
|
652
|
-
}
|
|
653
|
-
const labelIds = options.labelIds ??
|
|
654
|
-
(operation === "apply_label" || operation === "remove_label"
|
|
655
|
-
? parseGmailLabelIds(gmailLabelIds)
|
|
656
|
-
: []);
|
|
657
|
-
if ((operation === "apply_label" || operation === "remove_label") &&
|
|
658
|
-
labelIds.length === 0) {
|
|
659
|
-
setError(t("lifeopsworkspace.gmailLabelValidation", {
|
|
660
|
-
defaultValue: "Enter at least one Gmail label ID.",
|
|
661
|
-
}));
|
|
662
|
-
return;
|
|
663
|
-
}
|
|
664
|
-
const requiresConfirmation = options.requiresConfirmation === true ||
|
|
665
|
-
messageIds.length > 1 ||
|
|
666
|
-
isDestructiveGmailOperation(operation);
|
|
667
|
-
if (requiresConfirmation && !gmailManageConfirmed) {
|
|
668
|
-
setError(t("lifeopsworkspace.gmailManageConfirmationRequired", {
|
|
669
|
-
defaultValue: "Confirm this bulk or destructive Gmail update before running it.",
|
|
670
|
-
}));
|
|
671
|
-
return;
|
|
672
|
-
}
|
|
673
|
-
setManaging(true);
|
|
674
|
-
setError(null);
|
|
675
|
-
try {
|
|
676
|
-
const result = await client.manageLifeOpsGmailMessages({
|
|
677
|
-
side: status.side,
|
|
678
|
-
mode: status.mode,
|
|
679
|
-
messageIds,
|
|
680
|
-
operation,
|
|
681
|
-
labelIds,
|
|
682
|
-
confirmDestructive: isDestructiveGmailOperation(operation),
|
|
683
|
-
});
|
|
684
|
-
setActionNotice(t("lifeopsworkspace.gmailManaged", {
|
|
685
|
-
defaultValue: "{{operation}} applied to {{count}} message",
|
|
686
|
-
operation: result.operation,
|
|
687
|
-
count: result.affectedCount,
|
|
688
|
-
}), "success", 2200);
|
|
689
|
-
setGmailSelectedMessageIds([]);
|
|
690
|
-
setGmailManageConfirmed(false);
|
|
691
|
-
setDraft(null);
|
|
692
|
-
setDraftBody("");
|
|
693
|
-
setSendConfirmed(false);
|
|
694
|
-
await refresh();
|
|
695
|
-
}
|
|
696
|
-
catch (cause) {
|
|
697
|
-
setError(cause instanceof Error && cause.message.trim().length > 0
|
|
698
|
-
? cause.message.trim()
|
|
699
|
-
: t("lifeopsworkspace.gmailManageFailed", {
|
|
700
|
-
defaultValue: "Could not update the Gmail message.",
|
|
701
|
-
}));
|
|
702
|
-
}
|
|
703
|
-
finally {
|
|
704
|
-
setManaging(false);
|
|
705
|
-
}
|
|
706
|
-
}, [
|
|
707
|
-
emailManageEnabled,
|
|
708
|
-
gmailLabelIds,
|
|
709
|
-
gmailManageConfirmed,
|
|
710
|
-
gmailSelectedMessageIds,
|
|
711
|
-
refresh,
|
|
712
|
-
selectedGmailMessage,
|
|
713
|
-
setActionNotice,
|
|
714
|
-
status,
|
|
715
|
-
t,
|
|
716
|
-
]);
|
|
717
|
-
const handleApplyRecommendation = useCallback(async (recommendation) => {
|
|
718
|
-
if (!recommendation.operation) {
|
|
719
|
-
return;
|
|
720
|
-
}
|
|
721
|
-
await handleManageMessage(recommendation.operation, {
|
|
722
|
-
messageIds: recommendation.messageIds,
|
|
723
|
-
labelIds: recommendation.labelIds,
|
|
724
|
-
requiresConfirmation: recommendation.requiresConfirmation,
|
|
725
|
-
});
|
|
726
|
-
}, [handleManageMessage]);
|
|
727
|
-
return {
|
|
728
|
-
side,
|
|
729
|
-
identity,
|
|
730
|
-
status,
|
|
731
|
-
connected,
|
|
732
|
-
statusLabel: connectorStatusLabel(status, t),
|
|
733
|
-
loading,
|
|
734
|
-
error,
|
|
735
|
-
calendarEnabled,
|
|
736
|
-
emailEnabled,
|
|
737
|
-
emailManageEnabled,
|
|
738
|
-
calendarEvents,
|
|
739
|
-
groupedCalendarEvents,
|
|
740
|
-
selectedCalendarEvent,
|
|
741
|
-
setSelectedCalendarId,
|
|
742
|
-
refresh,
|
|
743
|
-
gmailMessages,
|
|
744
|
-
selectedGmailMessage,
|
|
745
|
-
setSelectedMessageId: handleSelectGmailMessage,
|
|
746
|
-
gmailRecommendations,
|
|
747
|
-
gmailQuery,
|
|
748
|
-
setGmailQuery,
|
|
749
|
-
gmailReplyNeededOnly,
|
|
750
|
-
setGmailReplyNeededOnly,
|
|
751
|
-
gmailIncludeSpamTrash,
|
|
752
|
-
setGmailIncludeSpamTrash,
|
|
753
|
-
gmailSelectedMessageIds,
|
|
754
|
-
toggleGmailMessageSelection,
|
|
755
|
-
gmailLabelIds,
|
|
756
|
-
setGmailLabelIds,
|
|
757
|
-
gmailManageConfirmed,
|
|
758
|
-
setGmailManageConfirmed,
|
|
759
|
-
draftTone,
|
|
760
|
-
setDraftTone,
|
|
761
|
-
draft,
|
|
762
|
-
draftBody,
|
|
763
|
-
setDraftBody,
|
|
764
|
-
sendConfirmed,
|
|
765
|
-
setSendConfirmed,
|
|
766
|
-
drafting,
|
|
767
|
-
sending,
|
|
768
|
-
managing,
|
|
769
|
-
eventTitle,
|
|
770
|
-
setEventTitle,
|
|
771
|
-
eventDate,
|
|
772
|
-
setEventDate,
|
|
773
|
-
eventTime,
|
|
774
|
-
setEventTime,
|
|
775
|
-
eventDurationMinutes,
|
|
776
|
-
setEventDurationMinutes,
|
|
777
|
-
eventLocation,
|
|
778
|
-
setEventLocation,
|
|
779
|
-
creatingEvent,
|
|
780
|
-
handleCreateEvent,
|
|
781
|
-
handleGenerateDraft,
|
|
782
|
-
handleSearchGmail,
|
|
783
|
-
handleShowNeedsResponse,
|
|
784
|
-
handleLoadRecommendations,
|
|
785
|
-
handleSendDraft,
|
|
786
|
-
handleManageMessage,
|
|
787
|
-
handleApplyRecommendation,
|
|
788
|
-
};
|
|
789
|
-
}
|
|
790
|
-
function SectionShell({ title, actions, children, }) {
|
|
791
|
-
return (_jsxs("section", { className: "overflow-hidden rounded-3xl border border-border/16 bg-card/18", children: [_jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3 px-4 py-4", children: [_jsx("div", { className: "text-sm font-semibold text-txt", children: title }), actions] }), _jsx("div", { className: "border-t border-border/12 px-4 py-4", children: children })] }));
|
|
792
|
-
}
|
|
793
|
-
function LockedSection({ title, hint, owner, agent, t, }) {
|
|
794
|
-
return (_jsxs(SectionShell, { title: title, children: [_jsx("div", { className: "mb-3 text-xs leading-5 text-muted", children: hint }), _jsx("div", { className: "grid gap-4 lg:grid-cols-2", children: [owner, agent].map((workspace) => (_jsxs("div", { className: "rounded-2xl bg-bg/36 px-4 py-4", children: [_jsx("div", { className: "text-sm font-semibold text-txt", children: sideLabel(workspace.side, t) }), _jsx("div", { className: "mt-1 text-xs text-muted", children: workspace.statusLabel })] }, workspace.side))) })] }));
|
|
795
|
-
}
|
|
796
|
-
function AccountBadge({ label }) {
|
|
797
|
-
if (!label) {
|
|
798
|
-
return null;
|
|
799
|
-
}
|
|
800
|
-
return (_jsx(Badge, { variant: "outline", className: "text-3xs", children: label }));
|
|
801
|
-
}
|
|
802
|
-
function CalendarColumn({ workspace, timeZone, t, }) {
|
|
803
|
-
const [composerOpen, setComposerOpen] = useState(false);
|
|
804
|
-
const eventCount = workspace.calendarEvents.length;
|
|
805
|
-
return (_jsxs("div", { className: "space-y-4 rounded-2xl bg-bg/36 px-4 py-4", children: [_jsxs("div", { className: "flex items-start justify-between gap-3", children: [_jsxs("div", { className: "min-w-0", children: [_jsx("div", { className: "text-sm font-semibold text-txt", children: sideLabel(workspace.side, t) }), _jsx("div", { className: "mt-1 truncate text-xs text-muted", children: workspace.identity.secondary ?? workspace.identity.primary })] }), _jsx(Badge, { variant: "outline", className: "text-2xs", children: eventCount })] }), workspace.error ? (_jsx("div", { className: "rounded-2xl bg-danger/10 px-3 py-2 text-xs text-danger", children: workspace.error })) : null, !workspace.calendarEnabled ? (_jsx("div", { className: "text-xs text-muted", children: t("lifeopsworkspace.grantCalendarAccess", {
|
|
806
|
-
defaultValue: "Grant calendar access for this Google account in Setup.",
|
|
807
|
-
}) })) : workspace.loading && eventCount === 0 ? (_jsx("div", { className: "text-xs text-muted", children: t("lifeopsworkspace.loadingEvents", {
|
|
808
|
-
defaultValue: "Loading events…",
|
|
809
|
-
}) })) : eventCount === 0 ? (_jsx("div", { className: "text-xs text-muted", children: t("lifeopsworkspace.nothingScheduled", {
|
|
810
|
-
defaultValue: "Nothing scheduled. Use New event below to add one.",
|
|
811
|
-
}) })) : (_jsx("div", { className: "space-y-3", children: workspace.groupedCalendarEvents.map((group) => (_jsxs("div", { className: "space-y-2", children: [_jsx("div", { className: "text-xs font-semibold uppercase tracking-[0.12em] text-muted", children: group.label }), _jsx("div", { className: "overflow-hidden rounded-2xl bg-bg/45", children: group.events.map((event, index) => (_jsxs("button", { type: "button", onClick: () => workspace.setSelectedCalendarId(event.id), className: `flex w-full items-start justify-between gap-3 px-3 py-3 text-left ${index > 0 ? "border-t border-border/12" : ""} ${workspace.selectedCalendarEvent?.id === event.id
|
|
812
|
-
? "bg-accent/8"
|
|
813
|
-
: "hover:bg-bg-hover/30"}`, children: [_jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("div", { className: "truncate text-sm font-medium text-txt", children: event.title }), _jsx("div", { className: "mt-1 text-xs text-muted", children: formatEventWindow(event, t, timeZone) }), event.location.trim().length > 0 ? (_jsx("div", { className: "mt-1 truncate text-xs text-muted/90", children: event.location })) : null] }), _jsx("div", { className: "flex flex-col items-end gap-1", children: _jsx(AccountBadge, { label: eventOriginLabel(event) }) })] }, event.id))) })] }, group.dayKey))) })), workspace.selectedCalendarEvent ? (_jsxs("div", { className: "space-y-2 rounded-2xl bg-card/18 px-3 py-3 text-xs text-muted", children: [_jsx("div", { className: "text-sm font-semibold text-txt", children: workspace.selectedCalendarEvent.title }), _jsx("div", { children: formatLocalDateTime(workspace.selectedCalendarEvent.startAt, timeZone) }), workspace.selectedCalendarEvent.location.trim().length > 0 ? (_jsx("div", { children: workspace.selectedCalendarEvent.location })) : null, workspace.selectedCalendarEvent.conferenceLink ? (_jsx("div", { className: "truncate", children: workspace.selectedCalendarEvent.conferenceLink })) : null, _jsx(AccountBadge, { label: eventOriginLabel(workspace.selectedCalendarEvent) })] })) : null, workspace.calendarEnabled ? (_jsxs("div", { className: "space-y-3", children: [_jsx(Button, { size: "sm", variant: "outline", className: "h-8 rounded-xl px-3 text-xs font-semibold", onClick: () => setComposerOpen((current) => !current), children: composerOpen
|
|
814
|
-
? t("lifeopsworkspace.hideNewEvent", {
|
|
815
|
-
defaultValue: "Hide new event",
|
|
816
|
-
})
|
|
817
|
-
: t("lifeopsworkspace.newEvent", {
|
|
818
|
-
defaultValue: "New event",
|
|
819
|
-
}) }), composerOpen ? (_jsxs("div", { className: "grid gap-3 sm:grid-cols-2", children: [_jsx(Input, { value: workspace.eventTitle, onChange: (event) => workspace.setEventTitle(event.target.value), placeholder: t("common.title", {
|
|
820
|
-
defaultValue: "Title",
|
|
821
|
-
}), "aria-label": t("lifeopsworkspace.eventTitle", {
|
|
822
|
-
defaultValue: "Event title",
|
|
823
|
-
}), className: "sm:col-span-2" }), _jsx(Input, { type: "date", value: workspace.eventDate, onChange: (event) => workspace.setEventDate(event.target.value), "aria-label": t("lifeopsworkspace.eventDate", {
|
|
824
|
-
defaultValue: "Event date",
|
|
825
|
-
}) }), _jsx(Input, { type: "time", value: workspace.eventTime, onChange: (event) => workspace.setEventTime(event.target.value), "aria-label": t("lifeopsworkspace.eventStartTime", {
|
|
826
|
-
defaultValue: "Event start time",
|
|
827
|
-
}) }), _jsx(Input, { type: "number", min: 5, step: 5, value: workspace.eventDurationMinutes, onChange: (event) => workspace.setEventDurationMinutes(event.target.value), placeholder: t("lifeopsworkspace.durationMinutes", {
|
|
828
|
-
defaultValue: "Duration in minutes",
|
|
829
|
-
}), "aria-label": t("lifeopsworkspace.durationMinutes", {
|
|
830
|
-
defaultValue: "Duration in minutes",
|
|
831
|
-
}) }), _jsx(Input, { value: workspace.eventLocation, onChange: (event) => workspace.setEventLocation(event.target.value), placeholder: t("lifeopsworkspace.locationOptional", {
|
|
832
|
-
defaultValue: "Location (optional)",
|
|
833
|
-
}), "aria-label": t("common.location", {
|
|
834
|
-
defaultValue: "Location",
|
|
835
|
-
}) }), _jsx(Button, { size: "sm", className: "h-9 rounded-xl px-3 text-xs font-semibold sm:col-span-2", disabled: workspace.creatingEvent || !workspace.eventTitle.trim(), onClick: () => void workspace.handleCreateEvent(), children: workspace.creatingEvent
|
|
836
|
-
? t("lifeopsworkspace.creating", {
|
|
837
|
-
defaultValue: "Creating…",
|
|
838
|
-
})
|
|
839
|
-
: t("lifeopsworkspace.createEvent", {
|
|
840
|
-
defaultValue: "Create event",
|
|
841
|
-
}) })] })) : null] })) : null] }));
|
|
842
|
-
}
|
|
843
|
-
function GmailControls({ workspace, t, }) {
|
|
844
|
-
return (_jsxs("div", { className: "space-y-2 rounded-2xl bg-card/18 px-3 py-3", children: [_jsxs("div", { className: "flex flex-wrap gap-2", children: [_jsx(Input, { value: workspace.gmailQuery, onChange: (event) => workspace.setGmailQuery(event.target.value), placeholder: t("lifeopsworkspace.gmailSearchPlaceholder", {
|
|
845
|
-
defaultValue: "Gmail query, e.g. in:inbox newer_than:7d",
|
|
846
|
-
}), "aria-label": t("lifeopsworkspace.gmailSearchQuery", {
|
|
847
|
-
defaultValue: "Gmail search query",
|
|
848
|
-
}), className: "h-8 min-w-48 flex-1 text-xs" }), _jsx(Button, { size: "sm", variant: "outline", className: "h-8 rounded-xl px-3 text-xs font-semibold", disabled: workspace.loading || workspace.gmailQuery.trim().length === 0, onClick: () => void workspace.handleSearchGmail(), children: t("lifeopsworkspace.searchGmail", {
|
|
849
|
-
defaultValue: "Search Gmail",
|
|
850
|
-
}) }), _jsx(Button, { size: "sm", variant: "outline", className: "h-8 rounded-xl px-3 text-xs font-semibold", disabled: workspace.loading, onClick: () => void workspace.refresh(), children: t("lifeopsworkspace.refreshInbox", {
|
|
851
|
-
defaultValue: "Refresh inbox",
|
|
852
|
-
}) })] }), _jsxs("div", { className: "flex flex-wrap items-center gap-3 text-xs text-muted", children: [_jsxs("label", { className: "inline-flex items-center gap-1.5", children: [_jsx("input", { type: "checkbox", checked: workspace.gmailReplyNeededOnly, onChange: (event) => workspace.setGmailReplyNeededOnly(event.target.checked) }), t("lifeopsworkspace.replyNeededOnly", {
|
|
853
|
-
defaultValue: "Reply-needed only",
|
|
854
|
-
})] }), _jsxs("label", { className: "inline-flex items-center gap-1.5", children: [_jsx("input", { type: "checkbox", checked: workspace.gmailIncludeSpamTrash, onChange: (event) => workspace.setGmailIncludeSpamTrash(event.target.checked) }), t("lifeopsworkspace.includeSpamTrash", {
|
|
855
|
-
defaultValue: "Include spam/trash",
|
|
856
|
-
})] }), _jsx(Button, { size: "sm", variant: "ghost", className: "h-8 rounded-xl px-3 text-xs font-semibold", disabled: workspace.loading, onClick: () => void workspace.handleShowNeedsResponse(), children: t("lifeopsworkspace.needsResponse", {
|
|
857
|
-
defaultValue: "Needs response",
|
|
858
|
-
}) }), _jsx(Button, { size: "sm", variant: "ghost", className: "h-8 rounded-xl px-3 text-xs font-semibold", disabled: workspace.loading, onClick: () => void workspace.handleLoadRecommendations(), children: t("lifeopsworkspace.recommendations", {
|
|
859
|
-
defaultValue: "Recommendations",
|
|
860
|
-
}) })] })] }));
|
|
861
|
-
}
|
|
862
|
-
function GmailRecommendationsPanel({ workspace, t, }) {
|
|
863
|
-
const recommendations = workspace.gmailRecommendations?.recommendations ?? [];
|
|
864
|
-
const needsConfirmation = recommendations.some((recommendation) => recommendation.requiresConfirmation ||
|
|
865
|
-
recommendation.kind === "review_spam" ||
|
|
866
|
-
(recommendation.operation
|
|
867
|
-
? recommendation.messageIds.length > 1 ||
|
|
868
|
-
isDestructiveGmailOperation(recommendation.operation)
|
|
869
|
-
: false));
|
|
870
|
-
if (recommendations.length === 0) {
|
|
871
|
-
return (_jsx("div", { className: "rounded-2xl bg-card/18 px-3 py-3 text-xs text-muted", children: t("lifeopsworkspace.noGmailRecommendations", {
|
|
872
|
-
defaultValue: "No Gmail recommendations for this query.",
|
|
873
|
-
}) }));
|
|
874
|
-
}
|
|
875
|
-
return (_jsxs("div", { className: "space-y-2 rounded-2xl bg-card/18 px-3 py-3", children: [_jsx("div", { className: "text-xs font-semibold uppercase tracking-[0.12em] text-muted", children: t("lifeopsworkspace.gmailRecommendations", {
|
|
876
|
-
defaultValue: "Gmail recommendations",
|
|
877
|
-
}) }), needsConfirmation ? (_jsxs("label", { className: "inline-flex items-center gap-1.5 text-xs text-muted", children: [_jsx("input", { type: "checkbox", checked: workspace.gmailManageConfirmed, onChange: (event) => workspace.setGmailManageConfirmed(event.target.checked) }), t("lifeopsworkspace.confirmGmailRecommendation", {
|
|
878
|
-
defaultValue: "Confirm recommendation update",
|
|
879
|
-
})] })) : null, recommendations.map((recommendation) => (_jsxs("div", { className: "space-y-2 rounded-2xl bg-bg/40 px-3 py-3", children: [_jsxs("div", { className: "flex flex-wrap items-start justify-between gap-2", children: [_jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("div", { className: "text-sm font-semibold text-txt", children: recommendation.title }), _jsx("div", { className: "mt-1 text-xs text-muted", children: recommendation.rationale })] }), _jsx(Badge, { variant: "outline", className: "text-3xs", children: recommendation.affectedCount })] }), recommendation.sampleMessages.length > 0 ? (_jsx("div", { className: "space-y-1", children: recommendation.sampleMessages.slice(0, 3).map((message) => (_jsxs("div", { className: "text-xs text-muted", children: [_jsx("span", { className: "font-medium text-txt/85", children: message.subject }), " ", message.from] }, message.messageId))) })) : null, _jsxs("div", { className: "flex flex-wrap gap-2", children: [recommendation.operation ? (_jsx(Button, { size: "sm", variant: "outline", className: "h-8 rounded-xl px-3 text-xs font-semibold", disabled: workspace.managing ||
|
|
880
|
-
((recommendation.requiresConfirmation ||
|
|
881
|
-
recommendation.messageIds.length > 1 ||
|
|
882
|
-
isDestructiveGmailOperation(recommendation.operation)) &&
|
|
883
|
-
!workspace.gmailManageConfirmed), onClick: () => void workspace.handleApplyRecommendation(recommendation), children: gmailOperationLabel(recommendation.operation, t) })) : null, recommendation.kind === "review_spam"
|
|
884
|
-
? recommendation.sampleMessages.map((message) => (_jsx(Button, { size: "sm", variant: "outline", className: "h-8 rounded-xl px-3 text-xs font-semibold", disabled: workspace.managing || !workspace.gmailManageConfirmed, onClick: () => void workspace.handleManageMessage("report_spam", {
|
|
885
|
-
messageIds: [message.messageId],
|
|
886
|
-
}), children: t("lifeopsworkspace.reportSampleSpam", {
|
|
887
|
-
defaultValue: "Report sample spam",
|
|
888
|
-
}) }, message.messageId)))
|
|
889
|
-
: null] })] }, recommendation.id)))] }));
|
|
890
|
-
}
|
|
891
|
-
function EmailColumn({ workspace, timeZone, t, }) {
|
|
892
|
-
const messageCount = workspace.gmailMessages.length;
|
|
893
|
-
const selectedBulkMessageIds = workspace.gmailSelectedMessageIds.length > 0
|
|
894
|
-
? workspace.gmailSelectedMessageIds
|
|
895
|
-
: workspace.selectedGmailMessage
|
|
896
|
-
? [workspace.selectedGmailMessage.id]
|
|
897
|
-
: [];
|
|
898
|
-
const selectedBulkCount = selectedBulkMessageIds.length;
|
|
899
|
-
const labelIds = parseGmailLabelIds(workspace.gmailLabelIds);
|
|
900
|
-
const isManageDisabled = (operation) => {
|
|
901
|
-
if (workspace.managing || selectedBulkCount === 0) {
|
|
902
|
-
return true;
|
|
903
|
-
}
|
|
904
|
-
if ((operation === "apply_label" || operation === "remove_label") &&
|
|
905
|
-
labelIds.length === 0) {
|
|
906
|
-
return true;
|
|
907
|
-
}
|
|
908
|
-
if ((selectedBulkCount > 1 || isDestructiveGmailOperation(operation)) &&
|
|
909
|
-
!workspace.gmailManageConfirmed) {
|
|
910
|
-
return true;
|
|
911
|
-
}
|
|
912
|
-
return false;
|
|
913
|
-
};
|
|
914
|
-
return (_jsxs("div", { className: "space-y-4 rounded-2xl bg-bg/36 px-4 py-4", children: [_jsxs("div", { className: "flex items-start justify-between gap-3", children: [_jsxs("div", { className: "min-w-0", children: [_jsx("div", { className: "text-sm font-semibold text-txt", children: sideLabel(workspace.side, t) }), _jsx("div", { className: "mt-1 truncate text-xs text-muted", children: workspace.identity.secondary ?? workspace.identity.primary })] }), _jsx(Badge, { variant: "outline", className: "text-2xs", children: messageCount })] }), workspace.error ? (_jsx("div", { className: "rounded-2xl bg-danger/10 px-3 py-2 text-xs text-danger", children: workspace.error })) : null, !workspace.emailEnabled ? (_jsx("div", { className: "text-xs text-muted", children: t("lifeopsworkspace.grantGmailAccess", {
|
|
915
|
-
defaultValue: "Grant Gmail access for this Google account in Setup.",
|
|
916
|
-
}) })) : messageCount === 0 ? (_jsxs("div", { className: "space-y-3", children: [_jsx(GmailControls, { workspace: workspace, t: t }), _jsx("div", { className: "text-xs text-muted", children: workspace.loading
|
|
917
|
-
? t("lifeopsworkspace.loadingRecentMail", {
|
|
918
|
-
defaultValue: "Loading recent mail…",
|
|
919
|
-
})
|
|
920
|
-
: t("lifeopsworkspace.inboxClear", {
|
|
921
|
-
defaultValue: "Inbox clear. Nothing to triage right now.",
|
|
922
|
-
}) })] })) : (_jsxs("div", { className: "space-y-3", children: [_jsx(GmailControls, { workspace: workspace, t: t }), _jsx("div", { className: "overflow-hidden rounded-2xl bg-bg/45", children: workspace.gmailMessages.map((message, index) => (_jsxs("div", { className: `flex w-full items-start justify-between gap-3 px-3 py-3 text-left ${index > 0 ? "border-t border-border/12" : ""} ${workspace.selectedGmailMessage?.id === message.id
|
|
923
|
-
? "bg-accent/8"
|
|
924
|
-
: "hover:bg-bg-hover/30"}`, children: [_jsx("label", { className: "mt-1 inline-flex shrink-0 items-center", children: _jsx("input", { type: "checkbox", checked: workspace.gmailSelectedMessageIds.includes(message.id), onChange: () => workspace.toggleGmailMessageSelection(message.id), "aria-label": t("lifeopsworkspace.selectGmailMessage", {
|
|
925
|
-
defaultValue: "Select Gmail message {{subject}}",
|
|
926
|
-
subject: message.subject,
|
|
927
|
-
}) }) }), _jsxs("button", { type: "button", onClick: () => workspace.setSelectedMessageId(message.id), className: "min-w-0 flex flex-1 items-start justify-between gap-3 text-left", children: [_jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("div", { className: "truncate text-sm font-medium text-txt", children: message.subject }), _jsx("div", { className: "mt-1 truncate text-xs text-muted", children: message.from }), _jsx("div", { className: "mt-1 line-clamp-2 text-xs text-muted/90", children: message.snippet })] }), _jsxs("div", { className: "flex flex-col items-end gap-1", children: [message.likelyReplyNeeded ? (_jsx(Badge, { variant: "secondary", className: "text-3xs", children: t("lifeopsworkspace.reply", {
|
|
928
|
-
defaultValue: "Reply",
|
|
929
|
-
}) })) : null, message.isUnread ? (_jsx(Badge, { variant: "outline", className: "text-3xs", children: t("lifeopsworkspace.unread", {
|
|
930
|
-
defaultValue: "Unread",
|
|
931
|
-
}) })) : null, _jsx(AccountBadge, { label: message.accountEmail }), _jsx("div", { className: "text-[11px] text-muted", children: formatLocalDateTime(message.receivedAt, timeZone) })] })] })] }, message.id))) })] })), workspace.selectedGmailMessage ? (_jsxs("div", { className: "space-y-3 rounded-2xl bg-card/18 px-3 py-3", children: [_jsxs("div", { className: "space-y-1 text-xs text-muted", children: [_jsx("div", { className: "text-sm font-semibold text-txt", children: workspace.selectedGmailMessage.subject }), _jsx("div", { children: workspace.selectedGmailMessage.from }), _jsx("div", { children: workspace.selectedGmailMessage.snippet })] }), workspace.emailManageEnabled ? (_jsxs("div", { className: "space-y-2", children: [_jsxs("div", { className: "flex flex-wrap items-center gap-2 text-xs text-muted", children: [_jsx("span", { children: t("lifeopsworkspace.gmailManageTarget", {
|
|
932
|
-
defaultValue: selectedBulkCount > 1
|
|
933
|
-
? "{{count}} selected messages"
|
|
934
|
-
: "Selected message",
|
|
935
|
-
count: selectedBulkCount,
|
|
936
|
-
}) }), _jsxs("label", { className: "inline-flex items-center gap-1.5", children: [_jsx("input", { type: "checkbox", checked: workspace.gmailManageConfirmed, onChange: (event) => workspace.setGmailManageConfirmed(event.target.checked) }), t("lifeopsworkspace.confirmGmailManage", {
|
|
937
|
-
defaultValue: "Confirm bulk/destructive update",
|
|
938
|
-
})] })] }), _jsx("div", { className: "flex flex-wrap gap-2", children: [
|
|
939
|
-
"archive",
|
|
940
|
-
"mark_read",
|
|
941
|
-
"mark_unread",
|
|
942
|
-
"report_spam",
|
|
943
|
-
"trash",
|
|
944
|
-
].map((operation) => (_jsx(Button, { size: "sm", variant: "outline", className: "h-8 rounded-xl px-3 text-xs font-semibold", disabled: isManageDisabled(operation), onClick: () => void workspace.handleManageMessage(operation), children: gmailOperationLabel(operation, t) }, operation))) }), _jsxs("div", { className: "flex flex-wrap gap-2", children: [_jsx(Input, { value: workspace.gmailLabelIds, onChange: (event) => workspace.setGmailLabelIds(event.target.value), placeholder: t("lifeopsworkspace.gmailLabelIds", {
|
|
945
|
-
defaultValue: "Label ID(s), comma-separated",
|
|
946
|
-
}), "aria-label": t("lifeopsworkspace.gmailLabelIds", {
|
|
947
|
-
defaultValue: "Label ID(s), comma-separated",
|
|
948
|
-
}), className: "h-8 min-w-48 flex-1 text-xs" }), ["apply_label", "remove_label"].map((operation) => (_jsx(Button, { size: "sm", variant: "outline", className: "h-8 rounded-xl px-3 text-xs font-semibold", disabled: isManageDisabled(operation), onClick: () => void workspace.handleManageMessage(operation), children: gmailOperationLabel(operation, t) }, operation)))] })] })) : null, _jsx(SegmentedControl, { "aria-label": t("lifeopsworkspace.draftToneAria", {
|
|
949
|
-
defaultValue: "{{side}} draft tone",
|
|
950
|
-
side: sideLabel(workspace.side, t),
|
|
951
|
-
}), value: workspace.draftTone, onValueChange: workspace.setDraftTone, items: [
|
|
952
|
-
{
|
|
953
|
-
value: "brief",
|
|
954
|
-
label: t("lifeopsworkspace.brief", {
|
|
955
|
-
defaultValue: "Brief",
|
|
956
|
-
}),
|
|
957
|
-
},
|
|
958
|
-
{
|
|
959
|
-
value: "neutral",
|
|
960
|
-
label: t("lifeopsworkspace.neutral", {
|
|
961
|
-
defaultValue: "Neutral",
|
|
962
|
-
}),
|
|
963
|
-
},
|
|
964
|
-
{
|
|
965
|
-
value: "warm",
|
|
966
|
-
label: t("lifeopsworkspace.warm", {
|
|
967
|
-
defaultValue: "Warm",
|
|
968
|
-
}),
|
|
969
|
-
},
|
|
970
|
-
], className: "border-border/28 bg-card/24 p-0.5", buttonClassName: "min-h-8 px-3 py-1.5 text-xs" }), _jsx(Textarea, { value: workspace.draftBody, onChange: (event) => {
|
|
971
|
-
workspace.setDraftBody(event.target.value);
|
|
972
|
-
workspace.setSendConfirmed(false);
|
|
973
|
-
}, placeholder: t("lifeopsworkspace.reply", {
|
|
974
|
-
defaultValue: "Reply",
|
|
975
|
-
}), className: "min-h-32" }), _jsxs("div", { className: "flex flex-wrap gap-2", children: [_jsx(Button, { size: "sm", className: "h-8 rounded-xl px-3 text-xs font-semibold", disabled: workspace.drafting, onClick: () => void workspace.handleGenerateDraft(), children: workspace.drafting
|
|
976
|
-
? t("lifeopsworkspace.drafting", {
|
|
977
|
-
defaultValue: "Drafting...",
|
|
978
|
-
})
|
|
979
|
-
: t("lifeopsworkspace.draftReply", {
|
|
980
|
-
defaultValue: "Draft reply",
|
|
981
|
-
}) }), _jsx(Button, { size: "sm", variant: "outline", className: "h-8 rounded-xl px-3 text-xs font-semibold", disabled: workspace.sending ||
|
|
982
|
-
workspace.draftBody.trim().length === 0 ||
|
|
983
|
-
!workspace.sendConfirmed, onClick: () => void workspace.handleSendDraft(), children: workspace.sending
|
|
984
|
-
? t("lifeopsworkspace.sending", {
|
|
985
|
-
defaultValue: "Sending...",
|
|
986
|
-
})
|
|
987
|
-
: t("common.send", {
|
|
988
|
-
defaultValue: "Send",
|
|
989
|
-
}) })] }), _jsxs("label", { className: "inline-flex items-center gap-2 text-xs text-muted", children: [_jsx("input", { type: "checkbox", checked: workspace.sendConfirmed, onChange: (event) => workspace.setSendConfirmed(event.target.checked) }), t("lifeopsworkspace.confirmSendGmailReply", {
|
|
990
|
-
defaultValue: "Confirm sending this Gmail reply now",
|
|
991
|
-
})] }), workspace.draft ? (_jsx("div", { className: "text-xs text-muted", children: t("lifeopsworkspace.gmailDraftCreatedNoAutoSend", {
|
|
992
|
-
defaultValue: "Draft created. It will not send until you confirm and press Send.",
|
|
993
|
-
}) })) : null] })) : null, workspace.gmailRecommendations ? (_jsx(GmailRecommendationsPanel, { workspace: workspace, t: t })) : null] }));
|
|
994
|
-
}
|
|
995
|
-
export function LifeOpsWorkspaceView() {
|
|
996
|
-
const { t } = useApp();
|
|
997
|
-
const timeZone = useMemo(() => Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC", []);
|
|
998
|
-
const [calendarWindow, setCalendarWindow] = useState("today");
|
|
999
|
-
const owner = useLifeOpsSideWorkspace({
|
|
1000
|
-
side: "owner",
|
|
1001
|
-
calendarWindow,
|
|
1002
|
-
timeZone,
|
|
1003
|
-
});
|
|
1004
|
-
const agent = useLifeOpsSideWorkspace({
|
|
1005
|
-
side: "agent",
|
|
1006
|
-
calendarWindow,
|
|
1007
|
-
timeZone,
|
|
1008
|
-
});
|
|
1009
|
-
const workspaceReady = owner.connected && agent.connected;
|
|
1010
|
-
if (!workspaceReady) {
|
|
1011
|
-
return (_jsxs("div", { className: "space-y-6", children: [_jsx(LockedSection, { title: t("lifeopsworkspace.calendar", {
|
|
1012
|
-
defaultValue: "Calendar",
|
|
1013
|
-
}), hint: t("lifeopsworkspace.calendarLockedHint", {
|
|
1014
|
-
defaultValue: "Connect Google for both User and Agent in Setup above to see today's events and create new ones here.",
|
|
1015
|
-
}), owner: owner, agent: agent, t: t }), _jsx(LockedSection, { title: t("lifeopsworkspace.email", {
|
|
1016
|
-
defaultValue: "Email",
|
|
1017
|
-
}), hint: t("lifeopsworkspace.emailLockedHint", {
|
|
1018
|
-
defaultValue: "Connect Google for both User and Agent in Setup above to triage replies and draft responses here.",
|
|
1019
|
-
}), owner: owner, agent: agent, t: t })] }));
|
|
1020
|
-
}
|
|
1021
|
-
return (_jsxs("div", { className: "space-y-6", children: [_jsx(SectionShell, { title: t("lifeopsworkspace.calendar", {
|
|
1022
|
-
defaultValue: "Calendar",
|
|
1023
|
-
}), actions: _jsx(SegmentedControl, { "aria-label": t("lifeopsworkspace.calendarWindow", {
|
|
1024
|
-
defaultValue: "Calendar window",
|
|
1025
|
-
}), value: calendarWindow, onValueChange: setCalendarWindow, items: [
|
|
1026
|
-
{
|
|
1027
|
-
value: "today",
|
|
1028
|
-
label: t("lifeopsworkspace.today", {
|
|
1029
|
-
defaultValue: "Today",
|
|
1030
|
-
}),
|
|
1031
|
-
},
|
|
1032
|
-
{
|
|
1033
|
-
value: "week",
|
|
1034
|
-
label: t("lifeopsworkspace.week", {
|
|
1035
|
-
defaultValue: "Week",
|
|
1036
|
-
}),
|
|
1037
|
-
},
|
|
1038
|
-
], className: "border-border/28 bg-card/24 p-0.5", buttonClassName: "min-h-8 px-3 py-1.5 text-xs" }), children: _jsxs("div", { className: "grid gap-4 lg:grid-cols-2", children: [_jsx(CalendarColumn, { workspace: owner, timeZone: timeZone, t: t }), _jsx(CalendarColumn, { workspace: agent, timeZone: timeZone, t: t })] }) }), _jsx(SectionShell, { title: t("lifeopsworkspace.email", {
|
|
1039
|
-
defaultValue: "Email",
|
|
1040
|
-
}), children: _jsxs("div", { className: "grid gap-4 lg:grid-cols-2", children: [_jsx(EmailColumn, { workspace: owner, timeZone: timeZone, t: t }), _jsx(EmailColumn, { workspace: agent, timeZone: timeZone, t: t })] }) })] }));
|
|
1041
|
-
}
|