@elizaos/ui 2.0.0-alpha.382 → 2.0.0-alpha.385
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/avatar/VrmViewer.d.ts.map +1 -1
- package/apps/app-companion/src/components/avatar/VrmViewer.js +2 -1
- package/apps/app-companion/src/components/companion/CompanionAppView.d.ts.map +1 -1
- package/apps/app-companion/src/components/companion/CompanionAppView.js +2 -1
- package/apps/app-companion/src/components/companion/CompanionView.d.ts.map +1 -1
- package/apps/app-companion/src/components/companion/CompanionView.js +2 -1
- package/apps/app-companion/src/components/companion/EmotePicker.d.ts.map +1 -1
- package/apps/app-companion/src/components/companion/EmotePicker.js +1 -1
- package/apps/app-companion/src/components/companion/scene-overlay-bridge.d.ts.map +1 -1
- package/apps/app-companion/src/components/companion/scene-overlay-bridge.js +2 -1
- package/apps/app-companion/src/index.d.ts +3 -3
- package/apps/app-companion/src/index.d.ts.map +1 -1
- package/apps/app-companion/src/index.js +3 -3
- package/apps/app-elizamaker/src/drop-service.d.ts +2 -2
- package/apps/app-elizamaker/src/drop-service.d.ts.map +1 -1
- package/apps/app-elizamaker/src/twitter-verify.d.ts +2 -2
- package/apps/app-elizamaker/src/twitter-verify.d.ts.map +1 -1
- package/apps/app-lifeops/src/api/client-lifeops.d.ts +1 -1
- package/apps/app-lifeops/src/api/client-lifeops.d.ts.map +1 -1
- package/apps/app-lifeops/src/contracts/index.d.ts +1 -1
- package/apps/app-lifeops/src/contracts/index.d.ts.map +1 -1
- package/apps/app-lifeops/src/contracts/index.js +1 -1
- package/apps/app-lifeops/src/inbox/message-fetcher.d.ts.map +1 -1
- package/apps/app-lifeops/src/inbox/message-fetcher.js +4 -2
- package/apps/app-lifeops/src/lifeops/google-managed-client.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/google-managed-client.js +4 -3
- package/apps/app-lifeops/src/lifeops/paypal-managed-client.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/paypal-managed-client.js +4 -3
- package/apps/app-lifeops/src/lifeops/plaid-managed-client.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/plaid-managed-client.js +4 -3
- package/apps/app-lifeops/src/lifeops/repository.d.ts +12 -1
- package/apps/app-lifeops/src/lifeops/repository.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/repository.js +135 -0
- package/apps/app-lifeops/src/lifeops/schedule-sync-client.js +1 -1
- package/apps/app-lifeops/src/lifeops/schema.d.ts +4587 -3791
- package/apps/app-lifeops/src/lifeops/schema.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/schema.js +30 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-inbox.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-inbox.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-inbox.js +103 -13
- package/apps/app-lifeops/src/routes/cloud-features-routes.d.ts.map +1 -1
- package/apps/app-lifeops/src/routes/cloud-features-routes.js +2 -1
- package/apps/app-lifeops/src/routes/travel-provider-relay-routes.d.ts.map +1 -1
- package/apps/app-lifeops/src/routes/travel-provider-relay-routes.js +2 -1
- package/package.json +1 -1
- package/packages/agent/src/actions/grounded-action-reply.d.ts.map +1 -1
- package/packages/agent/src/actions/grounded-action-reply.js +1 -1
- package/packages/agent/src/actions/index.d.ts +1 -0
- package/packages/agent/src/actions/index.d.ts.map +1 -1
- package/packages/agent/src/actions/index.js +1 -0
- package/packages/agent/src/actions/scratchpad.d.ts +7 -0
- package/packages/agent/src/actions/scratchpad.d.ts.map +1 -0
- package/packages/agent/src/actions/scratchpad.js +394 -0
- package/packages/agent/src/actions/settings-actions.js +1 -1
- package/packages/agent/src/actions/terminal.d.ts.map +1 -1
- package/packages/agent/src/actions/terminal.js +10 -2
- package/packages/agent/src/api/apps-routes.d.ts.map +1 -1
- package/packages/agent/src/api/apps-routes.js +171 -0
- package/packages/agent/src/api/binance-skill-helpers.d.ts.map +1 -1
- package/packages/agent/src/api/chat-routes.d.ts +3 -0
- package/packages/agent/src/api/chat-routes.d.ts.map +1 -1
- package/packages/agent/src/api/chat-routes.js +33 -14
- package/packages/agent/src/api/conversation-routes.js +2 -2
- package/packages/agent/src/api/misc-routes.d.ts.map +1 -1
- package/packages/agent/src/api/misc-routes.js +2 -2
- package/packages/agent/src/api/permissions-routes.js +1 -1
- package/packages/agent/src/api/plugin-routes.d.ts.map +1 -1
- package/packages/agent/src/api/plugin-routes.js +7 -1
- package/packages/agent/src/api/provider-switch-config.js +1 -1
- package/packages/agent/src/api/registry-service.d.ts +1 -1
- package/packages/agent/src/api/registry-service.d.ts.map +1 -1
- package/packages/agent/src/api/server-auth.d.ts.map +1 -1
- package/packages/agent/src/api/server-auth.js +119 -1
- package/packages/agent/src/api/server-helpers-auth.d.ts.map +1 -1
- package/packages/agent/src/api/server-helpers-auth.js +119 -1
- package/packages/agent/src/api/server-helpers-swarm.d.ts +1 -1
- package/packages/agent/src/api/server-helpers-swarm.d.ts.map +1 -1
- package/packages/agent/src/api/server-helpers.js +1 -1
- package/packages/agent/src/api/server-types.d.ts +2 -2
- package/packages/agent/src/api/server-types.d.ts.map +1 -1
- package/packages/agent/src/api/server.d.ts.map +1 -1
- package/packages/agent/src/api/server.js +5 -4
- package/packages/agent/src/api/training-backend-check.d.ts +1 -1
- package/packages/agent/src/api/training-backend-check.d.ts.map +1 -1
- package/packages/agent/src/api/training-backend-check.js +1 -1
- package/packages/agent/src/api/training-routes.d.ts +1 -1
- package/packages/agent/src/api/training-routes.d.ts.map +1 -1
- package/packages/agent/src/api/training-routes.js +1 -1
- package/packages/agent/src/api/training-service-like.d.ts +1 -1
- package/packages/agent/src/api/training-service-like.d.ts.map +1 -1
- package/packages/agent/src/api/trajectory-routes.d.ts +1 -1
- package/packages/agent/src/api/trajectory-routes.d.ts.map +1 -1
- package/packages/agent/src/api/trajectory-routes.js +1 -1
- package/packages/agent/src/api/wallet-capability.js +1 -1
- package/packages/agent/src/api/wallet-evm-balance.js +1 -1
- package/packages/agent/src/api/wallet.d.ts +1 -1
- package/packages/agent/src/api/wallet.d.ts.map +1 -1
- package/packages/agent/src/api/wallet.js +2 -2
- package/packages/agent/src/awareness/index.d.ts +2 -0
- package/packages/agent/src/awareness/index.d.ts.map +1 -0
- package/packages/agent/src/awareness/index.js +1 -0
- package/packages/agent/src/config/config.d.ts.map +1 -1
- package/packages/agent/src/config/config.js +2 -0
- package/packages/agent/src/config/index.d.ts +1 -0
- package/packages/agent/src/config/index.d.ts.map +1 -1
- package/packages/agent/src/config/index.js +1 -0
- package/packages/agent/src/config/model-metadata.d.ts +20 -0
- package/packages/agent/src/config/model-metadata.d.ts.map +1 -0
- package/packages/agent/src/config/model-metadata.js +133 -0
- package/packages/agent/src/config/zod-schema.core.d.ts +28 -28
- package/packages/agent/src/config/zod-schema.core.d.ts.map +1 -1
- package/packages/agent/src/config/zod-schema.core.js +16 -9
- package/packages/agent/src/config/zod-schema.d.ts +10 -10
- package/packages/agent/src/index.d.ts +6 -11
- package/packages/agent/src/index.d.ts.map +1 -1
- package/packages/agent/src/index.js +8 -10
- package/packages/agent/src/providers/media-provider.js +1 -1
- package/packages/agent/src/runtime/custom-actions.d.ts.map +1 -1
- package/packages/agent/src/runtime/custom-actions.js +1 -1
- package/packages/agent/src/runtime/eliza-plugin.d.ts.map +1 -1
- package/packages/agent/src/runtime/eliza-plugin.js +6 -0
- package/packages/agent/src/runtime/eliza.d.ts.map +1 -1
- package/packages/agent/src/runtime/eliza.js +7 -7
- package/packages/agent/src/runtime/prompt-optimization.d.ts +24 -1
- package/packages/agent/src/runtime/prompt-optimization.d.ts.map +1 -1
- package/packages/agent/src/runtime/prompt-optimization.js +292 -27
- package/packages/agent/src/runtime/trajectory-internals.d.ts +1 -0
- package/packages/agent/src/runtime/trajectory-internals.d.ts.map +1 -1
- package/packages/agent/src/runtime/trajectory-storage.d.ts.map +1 -1
- package/packages/agent/src/runtime/trajectory-storage.js +3 -0
- package/packages/agent/src/services/index.d.ts +4 -4
- package/packages/agent/src/services/index.d.ts.map +1 -1
- package/packages/agent/src/services/index.js +2 -2
- package/packages/agent/src/services/registry-client-app-meta.d.ts.map +1 -1
- package/packages/agent/src/services/registry-client-app-meta.js +0 -61
- package/packages/agent/src/services/skill-marketplace.d.ts.map +1 -1
- package/packages/app-core/src/App.js +1 -1
- package/packages/app-core/src/api/auth.js +1 -1
- package/packages/app-core/src/api/client-agent.d.ts +1 -2
- package/packages/app-core/src/api/client-agent.d.ts.map +1 -1
- package/packages/app-core/src/api/client-chat.d.ts +10 -1
- package/packages/app-core/src/api/client-chat.d.ts.map +1 -1
- package/packages/app-core/src/api/client-chat.js +33 -0
- package/packages/app-core/src/api/client-skills.d.ts.map +1 -1
- package/packages/app-core/src/api/client-types-chat.d.ts +1 -0
- package/packages/app-core/src/api/client-types-chat.d.ts.map +1 -1
- package/packages/app-core/src/api/client-types-config.d.ts +2 -2
- package/packages/app-core/src/api/client-types-config.d.ts.map +1 -1
- package/packages/app-core/src/api/client-wallet.d.ts +2 -4
- package/packages/app-core/src/api/client-wallet.d.ts.map +1 -1
- package/packages/app-core/src/api/client.d.ts +3 -4
- package/packages/app-core/src/api/client.d.ts.map +1 -1
- package/packages/app-core/src/api/client.js +1 -1
- package/packages/app-core/src/api/compat-route-shared.d.ts +1 -1
- package/packages/app-core/src/api/compat-route-shared.d.ts.map +1 -1
- package/packages/app-core/src/api/compat-route-shared.js +117 -1
- package/packages/app-core/src/api/server-cloud-tts.js +1 -1
- package/packages/app-core/src/api/trusted-local-request.d.ts +4 -0
- package/packages/app-core/src/api/trusted-local-request.d.ts.map +1 -0
- package/packages/app-core/src/api/trusted-local-request.js +176 -0
- package/packages/app-core/src/autonomy/index.d.ts.map +1 -1
- package/packages/app-core/src/autonomy/index.js +3 -1
- package/packages/app-core/src/components/auth/LoginView.d.ts +3 -23
- package/packages/app-core/src/components/auth/LoginView.d.ts.map +1 -1
- package/packages/app-core/src/components/auth/LoginView.js +43 -33
- package/packages/app-core/src/components/chat/AppsSection.d.ts.map +1 -1
- package/packages/app-core/src/components/chat/AppsSection.js +61 -6
- package/packages/app-core/src/components/chat/MessageContent.d.ts.map +1 -1
- package/packages/app-core/src/components/chat/MessageContent.js +26 -3
- package/packages/app-core/src/components/chat/message-choice-parser.d.ts +20 -0
- package/packages/app-core/src/components/chat/message-choice-parser.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/message-choice-parser.js +53 -0
- package/packages/app-core/src/components/chat/widgets/ChoiceWidget.d.ts +24 -0
- package/packages/app-core/src/components/chat/widgets/ChoiceWidget.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/widgets/ChoiceWidget.js +38 -0
- package/packages/app-core/src/components/connectors/ConnectorSetupPanel.js +1 -1
- package/packages/app-core/src/components/custom-actions/CustomActionEditor.d.ts.map +1 -1
- package/packages/app-core/src/components/custom-actions/CustomActionsPanel.d.ts.map +1 -1
- package/packages/app-core/src/components/custom-actions/CustomActionsView.d.ts.map +1 -1
- package/packages/app-core/src/components/custom-actions/custom-action-form.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/BrowserWorkspaceView.js +1 -1
- package/packages/app-core/src/components/pages/KnowledgeView.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/KnowledgeView.js +11 -1
- package/packages/app-core/src/components/pages/PluginConfigForm.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/PluginConfigForm.js +1 -1
- package/packages/app-core/src/components/pages/ScratchpadView.d.ts +2 -0
- package/packages/app-core/src/components/pages/ScratchpadView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/ScratchpadView.js +364 -0
- package/packages/app-core/src/components/pages/SettingsView.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/SettingsView.js +29 -5
- package/packages/app-core/src/components/pages/VectorBrowserView.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/VectorBrowserView.js +1 -1
- package/packages/app-core/src/components/pages/config-page-sections.d.ts +1 -1
- package/packages/app-core/src/components/pages/config-page-sections.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/config-page-sections.js +1 -1
- package/packages/app-core/src/components/pages/plugin-list-utils.d.ts +1 -1
- package/packages/app-core/src/components/pages/plugin-list-utils.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/useBrowserWorkspaceWalletBridge.d.ts +1 -1
- package/packages/app-core/src/components/pages/useBrowserWorkspaceWalletBridge.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/useBrowserWorkspaceWalletBridge.js +1 -1
- package/packages/app-core/src/components/settings/ApiKeyConfig.js +1 -1
- package/packages/app-core/src/components/settings/AppearanceSettingsSection.d.ts.map +1 -1
- package/packages/app-core/src/components/settings/AppearanceSettingsSection.js +1 -1
- package/packages/app-core/src/components/settings/AppsManagementSection.d.ts +12 -0
- package/packages/app-core/src/components/settings/AppsManagementSection.d.ts.map +1 -0
- package/packages/app-core/src/components/settings/AppsManagementSection.js +285 -0
- package/packages/app-core/src/components/settings/PermissionsSection.js +1 -1
- package/packages/app-core/src/components/settings/ProviderSwitcher.d.ts.map +1 -1
- package/packages/app-core/src/components/settings/ProviderSwitcher.js +2 -2
- package/packages/app-core/src/components/settings/SecuritySettingsSection.d.ts.map +1 -1
- package/packages/app-core/src/components/settings/SecuritySettingsSection.js +150 -33
- package/packages/app-core/src/components/settings/cloud-model-schema.d.ts +1 -1
- package/packages/app-core/src/components/settings/cloud-model-schema.d.ts.map +1 -1
- package/packages/app-core/src/components/shell/Header.d.ts.map +1 -1
- package/packages/app-core/src/components/shell/Header.js +28 -1
- package/packages/app-core/src/components/steward/injected.d.ts.map +1 -1
- package/packages/app-core/src/components/steward/injected.js +1 -1
- package/packages/app-core/src/components/training/injected.d.ts.map +1 -1
- package/packages/app-core/src/components/training/injected.js +1 -1
- package/packages/app-core/src/config/boot-config-store.d.ts +1 -1
- package/packages/app-core/src/config/boot-config-store.d.ts.map +1 -1
- package/packages/app-core/src/content-packs/bundled-packs.d.ts.map +1 -1
- package/packages/app-core/src/hooks/index.d.ts +0 -2
- package/packages/app-core/src/hooks/index.d.ts.map +1 -1
- package/packages/app-core/src/hooks/index.js +0 -2
- package/packages/app-core/src/hooks/useAuthStatus.d.ts +5 -0
- package/packages/app-core/src/hooks/useAuthStatus.d.ts.map +1 -1
- package/packages/app-core/src/hooks/useAuthStatus.js +41 -18
- package/packages/app-core/src/hooks/useSignalPairing.d.ts +1 -1
- package/packages/app-core/src/hooks/useSignalPairing.d.ts.map +1 -1
- package/packages/app-core/src/hooks/useWhatsAppPairing.d.ts +1 -1
- package/packages/app-core/src/hooks/useWhatsAppPairing.d.ts.map +1 -1
- package/packages/app-core/src/i18n/locales/en.json +0 -1
- package/packages/app-core/src/i18n/locales/es.json +0 -1
- package/packages/app-core/src/i18n/locales/ko.json +0 -1
- package/packages/app-core/src/i18n/locales/pt.json +0 -1
- package/packages/app-core/src/i18n/locales/tl.json +0 -1
- package/packages/app-core/src/i18n/locales/vi.json +0 -1
- package/packages/app-core/src/i18n/locales/zh-CN.json +0 -1
- package/packages/app-core/src/index.d.ts +0 -1
- package/packages/app-core/src/index.d.ts.map +1 -1
- package/packages/app-core/src/index.js +0 -1
- package/packages/app-core/src/runtime/channel-plugin-map.d.ts.map +1 -1
- package/packages/app-core/src/runtime/channel-plugin-map.js +1 -1
- package/packages/app-core/src/runtime/plugin-manager-guard.d.ts.map +1 -1
- package/packages/app-core/src/runtime/plugin-manager-guard.js +1 -1
- package/packages/app-core/src/services/plugin-installer.d.ts.map +1 -1
- package/packages/app-core/src/services/plugin-installer.js +1 -8
- package/packages/app-core/src/state/index.d.ts +0 -1
- package/packages/app-core/src/state/index.d.ts.map +1 -1
- package/packages/app-core/src/state/index.js +0 -1
- package/packages/app-core/src/state/startup-phase-restore.d.ts.map +1 -1
- package/packages/app-core/src/state/startup-phase-restore.js +1 -1
- package/packages/app-core/src/state/useOnboardingState.js +2 -2
- package/packages/app-core/src/state/usePluginsSkillsState.d.ts +4 -4
- package/packages/app-core/src/types/index.d.ts +1 -1
- package/packages/app-core/src/types/index.d.ts.map +1 -1
- package/packages/shared/src/contracts/index.d.ts +1 -0
- package/packages/shared/src/contracts/index.d.ts.map +1 -1
- package/packages/shared/src/contracts/index.js +1 -0
- package/packages/shared/src/contracts/scratchpad.d.ts +136 -0
- package/packages/shared/src/contracts/scratchpad.d.ts.map +1 -0
- package/packages/shared/src/contracts/scratchpad.js +90 -0
- package/packages/shared/src/index.d.ts +13 -13
- package/packages/shared/src/index.d.ts.map +1 -1
- package/packages/shared/src/index.js +19 -19
- package/packages/shared/src/spoken-text.js +1 -1
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.d.ts.map +1 -1
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.js +12 -6
- package/packages/typescript/src/generated/action-docs.d.ts +25 -0
- package/packages/typescript/src/generated/action-docs.d.ts.map +1 -1
- package/packages/typescript/src/generated/action-docs.js +51 -0
- package/packages/typescript/src/services/message.d.ts.map +1 -1
- package/packages/typescript/src/services/message.js +1 -3
- package/packages/typescript/src/types/tools.d.ts.map +1 -1
- package/packages/typescript/src/types/tools.js +7 -3
- package/apps/app-lifeops/src/action.d.ts +0 -3
- package/apps/app-lifeops/src/action.d.ts.map +0 -1
- package/apps/app-lifeops/src/action.js +0 -351
- package/apps/app-lifeops/src/actions/activity-report.d.ts +0 -13
- package/apps/app-lifeops/src/actions/activity-report.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/activity-report.js +0 -313
- package/apps/app-lifeops/src/actions/app-blocker.d.ts +0 -7
- package/apps/app-lifeops/src/actions/app-blocker.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/app-blocker.js +0 -454
- package/apps/app-lifeops/src/actions/approval.d.ts +0 -21
- package/apps/app-lifeops/src/actions/approval.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/approval.js +0 -342
- package/apps/app-lifeops/src/actions/autofill.d.ts +0 -35
- package/apps/app-lifeops/src/actions/autofill.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/autofill.js +0 -475
- package/apps/app-lifeops/src/actions/book-travel-executor.d.ts +0 -9
- package/apps/app-lifeops/src/actions/book-travel-executor.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/book-travel-executor.js +0 -65
- package/apps/app-lifeops/src/actions/book-travel.d.ts +0 -5
- package/apps/app-lifeops/src/actions/book-travel.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/book-travel.js +0 -491
- package/apps/app-lifeops/src/actions/calendar.d.ts +0 -19
- package/apps/app-lifeops/src/actions/calendar.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/calendar.js +0 -3189
- package/apps/app-lifeops/src/actions/calendly.d.ts +0 -3
- package/apps/app-lifeops/src/actions/calendly.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/calendly.js +0 -285
- package/apps/app-lifeops/src/actions/chat-thread-control.d.ts +0 -3
- package/apps/app-lifeops/src/actions/chat-thread-control.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/chat-thread-control.js +0 -260
- package/apps/app-lifeops/src/actions/checkin.d.ts +0 -8
- package/apps/app-lifeops/src/actions/checkin.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/checkin.js +0 -230
- package/apps/app-lifeops/src/actions/computer-use.d.ts +0 -14
- package/apps/app-lifeops/src/actions/computer-use.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/computer-use.js +0 -365
- package/apps/app-lifeops/src/actions/cross-channel-send.d.ts +0 -34
- package/apps/app-lifeops/src/actions/cross-channel-send.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/cross-channel-send.js +0 -964
- package/apps/app-lifeops/src/actions/device-bus.d.ts +0 -19
- package/apps/app-lifeops/src/actions/device-bus.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/device-bus.js +0 -386
- package/apps/app-lifeops/src/actions/dossier.d.ts +0 -5
- package/apps/app-lifeops/src/actions/dossier.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/dossier.js +0 -227
- package/apps/app-lifeops/src/actions/email-unsubscribe.d.ts +0 -5
- package/apps/app-lifeops/src/actions/email-unsubscribe.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/email-unsubscribe.js +0 -172
- package/apps/app-lifeops/src/actions/gmail.d.ts +0 -57
- package/apps/app-lifeops/src/actions/gmail.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/gmail.js +0 -2540
- package/apps/app-lifeops/src/actions/health.d.ts +0 -9
- package/apps/app-lifeops/src/actions/health.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/health.js +0 -398
- package/apps/app-lifeops/src/actions/inbox.d.ts +0 -5
- package/apps/app-lifeops/src/actions/inbox.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/inbox.js +0 -1244
- package/apps/app-lifeops/src/actions/intent-sync.d.ts +0 -5
- package/apps/app-lifeops/src/actions/intent-sync.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/intent-sync.js +0 -326
- package/apps/app-lifeops/src/actions/life-goal-extractor.d.ts +0 -69
- package/apps/app-lifeops/src/actions/life-goal-extractor.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/life-goal-extractor.js +0 -420
- package/apps/app-lifeops/src/actions/life-param-extractor.d.ts +0 -78
- package/apps/app-lifeops/src/actions/life-param-extractor.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/life-param-extractor.js +0 -431
- package/apps/app-lifeops/src/actions/life-recent-context.d.ts +0 -9
- package/apps/app-lifeops/src/actions/life-recent-context.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/life-recent-context.js +0 -78
- package/apps/app-lifeops/src/actions/life-update-extractor.d.ts +0 -27
- package/apps/app-lifeops/src/actions/life-update-extractor.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/life-update-extractor.js +0 -195
- package/apps/app-lifeops/src/actions/life.d.ts +0 -5
- package/apps/app-lifeops/src/actions/life.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/life.extractor.d.ts +0 -18
- package/apps/app-lifeops/src/actions/life.extractor.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/life.extractor.js +0 -363
- package/apps/app-lifeops/src/actions/life.js +0 -3247
- package/apps/app-lifeops/src/actions/lifeops-connector.d.ts +0 -5
- package/apps/app-lifeops/src/actions/lifeops-connector.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/lifeops-connector.js +0 -683
- package/apps/app-lifeops/src/actions/lifeops-extraction-config.d.ts +0 -16
- package/apps/app-lifeops/src/actions/lifeops-extraction-config.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/lifeops-extraction-config.js +0 -25
- package/apps/app-lifeops/src/actions/lifeops-google-helpers.d.ts +0 -64
- package/apps/app-lifeops/src/actions/lifeops-google-helpers.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/lifeops-google-helpers.js +0 -671
- package/apps/app-lifeops/src/actions/lifeops-mutate.d.ts +0 -5
- package/apps/app-lifeops/src/actions/lifeops-mutate.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/lifeops-mutate.js +0 -769
- package/apps/app-lifeops/src/actions/list-remote-sessions.d.ts +0 -6
- package/apps/app-lifeops/src/actions/list-remote-sessions.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/list-remote-sessions.js +0 -45
- package/apps/app-lifeops/src/actions/non-actionable-request.d.ts +0 -17
- package/apps/app-lifeops/src/actions/non-actionable-request.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/non-actionable-request.js +0 -25
- package/apps/app-lifeops/src/actions/owner-app-block.d.ts +0 -12
- package/apps/app-lifeops/src/actions/owner-app-block.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/owner-app-block.js +0 -144
- package/apps/app-lifeops/src/actions/owner-calendar.d.ts +0 -15
- package/apps/app-lifeops/src/actions/owner-calendar.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/owner-calendar.js +0 -762
- package/apps/app-lifeops/src/actions/owner-inbox.d.ts +0 -5
- package/apps/app-lifeops/src/actions/owner-inbox.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/owner-inbox.js +0 -662
- package/apps/app-lifeops/src/actions/owner-remote-desktop.d.ts +0 -12
- package/apps/app-lifeops/src/actions/owner-remote-desktop.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/owner-remote-desktop.js +0 -173
- package/apps/app-lifeops/src/actions/owner-schedule.d.ts +0 -3
- package/apps/app-lifeops/src/actions/owner-schedule.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/owner-schedule.js +0 -174
- package/apps/app-lifeops/src/actions/owner-screen-time.d.ts +0 -10
- package/apps/app-lifeops/src/actions/owner-screen-time.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/owner-screen-time.js +0 -213
- package/apps/app-lifeops/src/actions/owner-website-block.d.ts +0 -12
- package/apps/app-lifeops/src/actions/owner-website-block.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/owner-website-block.js +0 -424
- package/apps/app-lifeops/src/actions/password-manager.d.ts +0 -5
- package/apps/app-lifeops/src/actions/password-manager.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/password-manager.js +0 -217
- package/apps/app-lifeops/src/actions/payments.d.ts +0 -5
- package/apps/app-lifeops/src/actions/payments.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/payments.js +0 -236
- package/apps/app-lifeops/src/actions/relationships.d.ts +0 -12
- package/apps/app-lifeops/src/actions/relationships.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/relationships.js +0 -880
- package/apps/app-lifeops/src/actions/remote-desktop.d.ts +0 -5
- package/apps/app-lifeops/src/actions/remote-desktop.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/remote-desktop.js +0 -248
- package/apps/app-lifeops/src/actions/revoke-remote-session.d.ts +0 -6
- package/apps/app-lifeops/src/actions/revoke-remote-session.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/revoke-remote-session.js +0 -73
- package/apps/app-lifeops/src/actions/schedule-x-dm-reply.d.ts +0 -3
- package/apps/app-lifeops/src/actions/schedule-x-dm-reply.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/schedule-x-dm-reply.js +0 -134
- package/apps/app-lifeops/src/actions/scheduled-trigger-task.d.ts +0 -19
- package/apps/app-lifeops/src/actions/scheduled-trigger-task.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/scheduled-trigger-task.js +0 -82
- package/apps/app-lifeops/src/actions/scheduling.d.ts +0 -70
- package/apps/app-lifeops/src/actions/scheduling.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/scheduling.js +0 -1078
- package/apps/app-lifeops/src/actions/screen-time.d.ts +0 -8
- package/apps/app-lifeops/src/actions/screen-time.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/screen-time.js +0 -249
- package/apps/app-lifeops/src/actions/search-across-channels.d.ts +0 -13
- package/apps/app-lifeops/src/actions/search-across-channels.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/search-across-channels.js +0 -338
- package/apps/app-lifeops/src/actions/start-remote-session.d.ts +0 -14
- package/apps/app-lifeops/src/actions/start-remote-session.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/start-remote-session.js +0 -139
- package/apps/app-lifeops/src/actions/subscriptions.d.ts +0 -5
- package/apps/app-lifeops/src/actions/subscriptions.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/subscriptions.js +0 -404
- package/apps/app-lifeops/src/actions/timezone-normalization.d.ts +0 -4
- package/apps/app-lifeops/src/actions/timezone-normalization.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/timezone-normalization.js +0 -159
- package/apps/app-lifeops/src/actions/twilio-call.d.ts +0 -20
- package/apps/app-lifeops/src/actions/twilio-call.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/twilio-call.js +0 -853
- package/apps/app-lifeops/src/actions/update-owner-profile.d.ts +0 -5
- package/apps/app-lifeops/src/actions/update-owner-profile.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/update-owner-profile.js +0 -181
- package/apps/app-lifeops/src/actions/x-read.d.ts +0 -5
- package/apps/app-lifeops/src/actions/x-read.d.ts.map +0 -1
- package/apps/app-lifeops/src/actions/x-read.js +0 -561
- package/apps/app-lifeops/src/activity-profile/activity-tracker-service.d.ts +0 -36
- package/apps/app-lifeops/src/activity-profile/activity-tracker-service.d.ts.map +0 -1
- package/apps/app-lifeops/src/activity-profile/activity-tracker-service.js +0 -160
- package/apps/app-lifeops/src/activity-profile/analyzer.d.ts +0 -23
- package/apps/app-lifeops/src/activity-profile/analyzer.d.ts.map +0 -1
- package/apps/app-lifeops/src/activity-profile/analyzer.js +0 -555
- package/apps/app-lifeops/src/activity-profile/presence-signal-bridge-service.d.ts +0 -14
- package/apps/app-lifeops/src/activity-profile/presence-signal-bridge-service.d.ts.map +0 -1
- package/apps/app-lifeops/src/activity-profile/presence-signal-bridge-service.js +0 -133
- package/apps/app-lifeops/src/activity-profile/proactive-planner.d.ts +0 -71
- package/apps/app-lifeops/src/activity-profile/proactive-planner.d.ts.map +0 -1
- package/apps/app-lifeops/src/activity-profile/proactive-planner.js +0 -567
- package/apps/app-lifeops/src/activity-profile/proactive-worker.d.ts +0 -32
- package/apps/app-lifeops/src/activity-profile/proactive-worker.d.ts.map +0 -1
- package/apps/app-lifeops/src/activity-profile/proactive-worker.js +0 -676
- package/apps/app-lifeops/src/activity-profile/service.d.ts +0 -11
- package/apps/app-lifeops/src/activity-profile/service.d.ts.map +0 -1
- package/apps/app-lifeops/src/activity-profile/service.js +0 -246
- package/apps/app-lifeops/src/app-blocker/access.d.ts +0 -8
- package/apps/app-lifeops/src/app-blocker/access.d.ts.map +0 -1
- package/apps/app-lifeops/src/app-blocker/access.js +0 -35
- package/apps/app-lifeops/src/app-blocker/engine.d.ts +0 -10
- package/apps/app-lifeops/src/app-blocker/engine.d.ts.map +0 -1
- package/apps/app-lifeops/src/app-blocker/engine.js +0 -43
- 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 -74
- 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 -490
- 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 -565
- 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 -597
- 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 -162
- 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/followup/actions/listOverdueFollowups.d.ts +0 -3
- package/apps/app-lifeops/src/followup/actions/listOverdueFollowups.d.ts.map +0 -1
- package/apps/app-lifeops/src/followup/actions/listOverdueFollowups.js +0 -48
- package/apps/app-lifeops/src/followup/actions/markFollowupDone.d.ts +0 -3
- package/apps/app-lifeops/src/followup/actions/markFollowupDone.d.ts.map +0 -1
- package/apps/app-lifeops/src/followup/actions/markFollowupDone.js +0 -173
- package/apps/app-lifeops/src/followup/actions/setFollowupThreshold.d.ts +0 -3
- package/apps/app-lifeops/src/followup/actions/setFollowupThreshold.d.ts.map +0 -1
- package/apps/app-lifeops/src/followup/actions/setFollowupThreshold.js +0 -172
- package/apps/app-lifeops/src/followup/followup-tracker.d.ts +0 -82
- package/apps/app-lifeops/src/followup/followup-tracker.d.ts.map +0 -1
- package/apps/app-lifeops/src/followup/followup-tracker.js +0 -279
- package/apps/app-lifeops/src/followup/index.d.ts +0 -5
- package/apps/app-lifeops/src/followup/index.d.ts.map +0 -1
- package/apps/app-lifeops/src/followup/index.js +0 -4
- 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 -382
- package/apps/app-lifeops/src/hooks/useLifeOpsAppState.d.ts +0 -21
- 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 -152
- package/apps/app-lifeops/src/inbox/config.d.ts +0 -7
- package/apps/app-lifeops/src/inbox/config.d.ts.map +0 -1
- package/apps/app-lifeops/src/inbox/config.js +0 -67
- package/apps/app-lifeops/src/inbox/reflection.d.ts +0 -40
- package/apps/app-lifeops/src/inbox/reflection.d.ts.map +0 -1
- package/apps/app-lifeops/src/inbox/reflection.js +0 -115
- package/apps/app-lifeops/src/inbox/repository.d.ts +0 -52
- package/apps/app-lifeops/src/inbox/repository.d.ts.map +0 -1
- package/apps/app-lifeops/src/inbox/repository.js +0 -262
- package/apps/app-lifeops/src/inbox/triage-classifier.d.ts +0 -15
- package/apps/app-lifeops/src/inbox/triage-classifier.d.ts.map +0 -1
- package/apps/app-lifeops/src/inbox/triage-classifier.js +0 -179
- package/apps/app-lifeops/src/index.d.ts +0 -20
- package/apps/app-lifeops/src/index.d.ts.map +0 -1
- package/apps/app-lifeops/src/index.js +0 -18
- package/apps/app-lifeops/src/lifeops/approval-queue.d.ts +0 -24
- package/apps/app-lifeops/src/lifeops/approval-queue.d.ts.map +0 -1
- package/apps/app-lifeops/src/lifeops/approval-queue.js +0 -500
- package/apps/app-lifeops/src/lifeops/approval-queue.types.d.ts +0 -166
- package/apps/app-lifeops/src/lifeops/approval-queue.types.d.ts.map +0 -1
- package/apps/app-lifeops/src/lifeops/approval-queue.types.js +0 -22
- package/apps/app-lifeops/src/lifeops/autofill-whitelist.d.ts +0 -15
- package/apps/app-lifeops/src/lifeops/autofill-whitelist.d.ts.map +0 -1
- package/apps/app-lifeops/src/lifeops/autofill-whitelist.js +0 -116
- package/apps/app-lifeops/src/lifeops/background-planner-dispatch.d.ts +0 -60
- package/apps/app-lifeops/src/lifeops/background-planner-dispatch.d.ts.map +0 -1
- package/apps/app-lifeops/src/lifeops/background-planner-dispatch.js +0 -134
- package/apps/app-lifeops/src/lifeops/background-planner.d.ts +0 -141
- package/apps/app-lifeops/src/lifeops/background-planner.d.ts.map +0 -1
- package/apps/app-lifeops/src/lifeops/background-planner.js +0 -377
- package/apps/app-lifeops/src/lifeops/calendly-client.d.ts +0 -61
- package/apps/app-lifeops/src/lifeops/calendly-client.d.ts.map +0 -1
- package/apps/app-lifeops/src/lifeops/calendly-client.js +0 -234
- package/apps/app-lifeops/src/lifeops/checkin/schedule-resolver.d.ts +0 -14
- package/apps/app-lifeops/src/lifeops/checkin/schedule-resolver.d.ts.map +0 -1
- package/apps/app-lifeops/src/lifeops/checkin/schedule-resolver.js +0 -27
- package/apps/app-lifeops/src/lifeops/cross-channel-search.d.ts +0 -88
- package/apps/app-lifeops/src/lifeops/cross-channel-search.d.ts.map +0 -1
- package/apps/app-lifeops/src/lifeops/cross-channel-search.js +0 -446
- package/apps/app-lifeops/src/lifeops/intent-sync.d.ts +0 -59
- package/apps/app-lifeops/src/lifeops/intent-sync.d.ts.map +0 -1
- package/apps/app-lifeops/src/lifeops/intent-sync.js +0 -305
- package/apps/app-lifeops/src/lifeops/notifications-push.d.ts +0 -37
- package/apps/app-lifeops/src/lifeops/notifications-push.d.ts.map +0 -1
- package/apps/app-lifeops/src/lifeops/notifications-push.js +0 -92
- package/apps/app-lifeops/src/lifeops/password-manager-bridge.d.ts +0 -50
- package/apps/app-lifeops/src/lifeops/password-manager-bridge.d.ts.map +0 -1
- package/apps/app-lifeops/src/lifeops/password-manager-bridge.js +0 -448
- package/apps/app-lifeops/src/lifeops/remote-desktop.d.ts +0 -38
- package/apps/app-lifeops/src/lifeops/remote-desktop.d.ts.map +0 -1
- package/apps/app-lifeops/src/lifeops/remote-desktop.js +0 -372
- package/apps/app-lifeops/src/lifeops/runtime.d.ts +0 -11
- package/apps/app-lifeops/src/lifeops/runtime.d.ts.map +0 -1
- package/apps/app-lifeops/src/lifeops/runtime.js +0 -57
- package/apps/app-lifeops/src/lifeops/screen-context.d.ts +0 -52
- package/apps/app-lifeops/src/lifeops/screen-context.d.ts.map +0 -1
- package/apps/app-lifeops/src/lifeops/screen-context.js +0 -349
- 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/index.d.ts +0 -2
- package/apps/app-lifeops/src/platform/index.d.ts.map +0 -1
- package/apps/app-lifeops/src/platform/index.js +0 -1
- 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/plugin.d.ts +0 -33
- package/apps/app-lifeops/src/plugin.d.ts.map +0 -1
- package/apps/app-lifeops/src/plugin.js +0 -316
- package/apps/app-lifeops/src/provider.d.ts +0 -4
- package/apps/app-lifeops/src/provider.d.ts.map +0 -1
- package/apps/app-lifeops/src/provider.js +0 -77
- package/apps/app-lifeops/src/providers/activity-profile.d.ts +0 -3
- package/apps/app-lifeops/src/providers/activity-profile.d.ts.map +0 -1
- package/apps/app-lifeops/src/providers/activity-profile.js +0 -140
- package/apps/app-lifeops/src/providers/app-blocker.d.ts +0 -3
- package/apps/app-lifeops/src/providers/app-blocker.d.ts.map +0 -1
- package/apps/app-lifeops/src/providers/app-blocker.js +0 -86
- package/apps/app-lifeops/src/providers/cross-channel-context.d.ts +0 -29
- package/apps/app-lifeops/src/providers/cross-channel-context.d.ts.map +0 -1
- package/apps/app-lifeops/src/providers/cross-channel-context.js +0 -182
- package/apps/app-lifeops/src/providers/inbox-triage.d.ts +0 -3
- package/apps/app-lifeops/src/providers/inbox-triage.d.ts.map +0 -1
- package/apps/app-lifeops/src/providers/inbox-triage.js +0 -90
- package/apps/app-lifeops/src/providers/lifeops.d.ts +0 -3
- package/apps/app-lifeops/src/providers/lifeops.d.ts.map +0 -1
- package/apps/app-lifeops/src/providers/lifeops.js +0 -197
- package/apps/app-lifeops/src/remote/pairing-code.d.ts +0 -39
- package/apps/app-lifeops/src/remote/pairing-code.d.ts.map +0 -1
- package/apps/app-lifeops/src/remote/pairing-code.js +0 -76
- package/apps/app-lifeops/src/remote/remote-session-service.d.ts +0 -107
- package/apps/app-lifeops/src/remote/remote-session-service.d.ts.map +0 -1
- package/apps/app-lifeops/src/remote/remote-session-service.js +0 -253
- package/apps/app-lifeops/src/service.d.ts +0 -32
- package/apps/app-lifeops/src/service.d.ts.map +0 -1
- package/apps/app-lifeops/src/service.js +0 -67
- package/apps/app-lifeops/src/travel-time/calendar-create.d.ts +0 -17
- package/apps/app-lifeops/src/travel-time/calendar-create.d.ts.map +0 -1
- package/apps/app-lifeops/src/travel-time/calendar-create.js +0 -21
- package/apps/app-lifeops/src/travel-time/service.d.ts +0 -60
- package/apps/app-lifeops/src/travel-time/service.d.ts.map +0 -1
- package/apps/app-lifeops/src/travel-time/service.js +0 -142
- 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/apps/app-lifeops/src/website-blocker/chat-integration/actions/blockUntilTaskComplete.d.ts +0 -3
- package/apps/app-lifeops/src/website-blocker/chat-integration/actions/blockUntilTaskComplete.d.ts.map +0 -1
- package/apps/app-lifeops/src/website-blocker/chat-integration/actions/blockUntilTaskComplete.js +0 -246
- package/apps/app-lifeops/src/website-blocker/chat-integration/actions/listActiveBlocks.d.ts +0 -3
- package/apps/app-lifeops/src/website-blocker/chat-integration/actions/listActiveBlocks.d.ts.map +0 -1
- package/apps/app-lifeops/src/website-blocker/chat-integration/actions/listActiveBlocks.js +0 -83
- package/apps/app-lifeops/src/website-blocker/chat-integration/actions/releaseBlock.d.ts +0 -3
- package/apps/app-lifeops/src/website-blocker/chat-integration/actions/releaseBlock.d.ts.map +0 -1
- package/apps/app-lifeops/src/website-blocker/chat-integration/actions/releaseBlock.js +0 -98
- package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-reconciler.d.ts +0 -7
- package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-reconciler.d.ts.map +0 -1
- package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-reconciler.js +0 -111
- package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-schema.d.ts +0 -39
- package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-schema.d.ts.map +0 -1
- package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-schema.js +0 -123
- package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-service.d.ts +0 -21
- package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-service.d.ts.map +0 -1
- package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-service.js +0 -258
- package/apps/app-lifeops/src/website-blocker/chat-integration/index.d.ts +0 -8
- package/apps/app-lifeops/src/website-blocker/chat-integration/index.d.ts.map +0 -1
- package/apps/app-lifeops/src/website-blocker/chat-integration/index.js +0 -6
- package/packages/app-core/src/api/client-lifeops.d.ts +0 -35
- package/packages/app-core/src/api/client-lifeops.d.ts.map +0 -1
- package/packages/app-core/src/api/client-lifeops.js +0 -114
- package/packages/app-core/src/hooks/useGoogleLifeOpsConnector.d.ts +0 -20
- package/packages/app-core/src/hooks/useGoogleLifeOpsConnector.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useGoogleLifeOpsConnector.js +0 -69
- package/packages/app-core/src/hooks/useLifeOpsAppState.d.ts +0 -21
- package/packages/app-core/src/hooks/useLifeOpsAppState.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useLifeOpsAppState.js +0 -81
- package/packages/app-core/src/services/steward-sidecar.d.ts +0 -6
- package/packages/app-core/src/services/steward-sidecar.d.ts.map +0 -1
- package/packages/app-core/src/services/steward-sidecar.js +0 -5
|
@@ -1,377 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WS5 — Background-job pipeline parity (PRD lines 418-433).
|
|
3
|
-
*
|
|
4
|
-
* Single shared LLM planner entry-point for every LifeOps background job.
|
|
5
|
-
* Mirrors the chat planner pattern used in `actions/inbox.ts` (`resolveSubactionPlan`)
|
|
6
|
-
* and `actions/life.ts`: structured JSON model output, no English keyword
|
|
7
|
-
* routing, no regex, multilingual-safe.
|
|
8
|
-
*
|
|
9
|
-
* Every job calls `planJob({...})` to get a typed `{action, payload,
|
|
10
|
-
* requiresApproval, reason}` decision. Sensitive actions
|
|
11
|
-
* (requiresApproval=true) are then enqueued via the WS6 approval queue
|
|
12
|
-
* (`approval-queue.types.ts`) instead of being executed directly.
|
|
13
|
-
*
|
|
14
|
-
* --------------------------------------------------------------------------
|
|
15
|
-
* Background-job inventory (search results for brief|followup|reminder|
|
|
16
|
-
* escalation|digest|watchdog|nudge|sweep|cron|schedule under
|
|
17
|
-
* `eliza/apps/app-lifeops/src/lifeops/` and adjacent job dirs).
|
|
18
|
-
*
|
|
19
|
-
* Real registered task workers (runtime.registerTaskWorker callsites):
|
|
20
|
-
*
|
|
21
|
-
* 1. LIFEOPS_SCHEDULER
|
|
22
|
-
* - file: lifeops/runtime.ts (registerLifeOpsTaskWorker)
|
|
23
|
-
* - exec: executeLifeOpsSchedulerTask -> service.processScheduledWork
|
|
24
|
-
* - downstream:
|
|
25
|
-
* a. service-mixin-reminders.ts processReminders (PRD: meeting reminder ladder, draft aging sweeper)
|
|
26
|
-
* b. service-mixin-workflows.ts runDueWorkflows (PRD: travel conflict detector, event asset sweeper)
|
|
27
|
-
* c. service-mixin-reminders.ts syncWebsiteAccessState (enforcement window sweep)
|
|
28
|
-
*
|
|
29
|
-
* 2. PROACTIVE_AGENT
|
|
30
|
-
* - file: activity-profile/proactive-worker.ts (registerProactiveTaskWorker)
|
|
31
|
-
* - exec: executeProactiveTask
|
|
32
|
-
* - downstream:
|
|
33
|
-
* a. planGm (PRD: daily brief builder — morning)
|
|
34
|
-
* b. planGn (PRD: evening closeout)
|
|
35
|
-
* c. planNudges (PRD: meeting reminder ladder)
|
|
36
|
-
* d. planDowntimeNudges (PRD: pending-decision nudger / decision nudger)
|
|
37
|
-
* e. planGoalCheckIns (PRD: relationship/goal overdue detector)
|
|
38
|
-
* f. planSeedingOffer (onboarding seed)
|
|
39
|
-
* g. classifyCalendarEventsForProactivePlanning (already LLM-routed)
|
|
40
|
-
*
|
|
41
|
-
* 3. FOLLOWUP_TRACKER_RECONCILE
|
|
42
|
-
* - file: followup/followup-tracker.ts (registerFollowupTrackerWorker)
|
|
43
|
-
* - exec: reconcileFollowupsOnce -> computeOverdueFollowups
|
|
44
|
-
* - downstream: writeOverdueDigestMemory (PRD: follow-up watchdog, relationship-overdue-detector)
|
|
45
|
-
*
|
|
46
|
-
* 4. WEBSITE_BLOCKER_UNBLOCK_TASK_NAME
|
|
47
|
-
* - file: website-blocker/service.ts (out of EA scope; kept for completeness)
|
|
48
|
-
*
|
|
49
|
-
* 5. BLOCK_RULE_RECONCILE_TASK_NAME
|
|
50
|
-
* - file: website-blocker/chat-integration/block-rule-reconciler.ts
|
|
51
|
-
*
|
|
52
|
-
* Other background entry points / sweeps that flow through the workers above:
|
|
53
|
-
*
|
|
54
|
-
* - Dossier service: dossier/service.ts (on-demand by chat + brief builder)
|
|
55
|
-
* - Activity profile rebuilds: activity-profile/service.ts (driven by PROACTIVE_AGENT)
|
|
56
|
-
* - Reminder enforcement windows: lifeops/enforcement-windows.ts (driven by reminders mixin)
|
|
57
|
-
*
|
|
58
|
-
* Mapping to PRD §"Background Jobs And Cron Handlers" (lines 418-433):
|
|
59
|
-
*
|
|
60
|
-
* PRD job | Job key (this module)
|
|
61
|
-
* -----------------------------------------+--------------------------------
|
|
62
|
-
* Inbox ingest per connector | inbox_ingest (event-driven)
|
|
63
|
-
* Daily brief builder | daily_brief (proactive_gm)
|
|
64
|
-
* Evening closeout | evening_closeout (proactive_gn)
|
|
65
|
-
* Follow-up watchdog | followup_watchdog (followup_tracker)
|
|
66
|
-
* Decision nudger | decision_nudger (proactive downtime)
|
|
67
|
-
* Meeting reminder ladder | meeting_reminder (proactive nudges + reminders)
|
|
68
|
-
* Travel conflict detector | travel_conflict (workflows)
|
|
69
|
-
* Event asset sweeper | event_asset_sweep (workflows)
|
|
70
|
-
* Draft aging sweeper | draft_aging_sweep (reminders)
|
|
71
|
-
* Remote stuck-agent escalator | remote_stuck_escalate (browser/computer-use)
|
|
72
|
-
* Pending-decision nudger | pending_decision (proactive downtime)
|
|
73
|
-
* Missed-commitment repair | missed_commitment (followup_tracker)
|
|
74
|
-
* Unsent-draft resurfacer | unsent_draft (reminders)
|
|
75
|
-
* Relationship-overdue detector | relationship_overdue (followup_tracker)
|
|
76
|
-
* Deadline escalator | deadline_escalate (reminders)
|
|
77
|
-
* Travel-ops rechecker | travel_ops (workflows)
|
|
78
|
-
*
|
|
79
|
-
* --------------------------------------------------------------------------
|
|
80
|
-
*/
|
|
81
|
-
import { logger, ModelType, parseJSONObjectFromText } from "@elizaos/core";
|
|
82
|
-
const SENSITIVE_ACTIONS = new Set([
|
|
83
|
-
"send_message",
|
|
84
|
-
"send_email",
|
|
85
|
-
"schedule_event",
|
|
86
|
-
"modify_event",
|
|
87
|
-
"cancel_event",
|
|
88
|
-
"book_travel",
|
|
89
|
-
"make_call",
|
|
90
|
-
"execute_workflow",
|
|
91
|
-
"spend_money",
|
|
92
|
-
]);
|
|
93
|
-
const ALL_ACTIONS = [
|
|
94
|
-
"send_message",
|
|
95
|
-
"send_email",
|
|
96
|
-
"schedule_event",
|
|
97
|
-
"modify_event",
|
|
98
|
-
"cancel_event",
|
|
99
|
-
"book_travel",
|
|
100
|
-
"make_call",
|
|
101
|
-
"execute_workflow",
|
|
102
|
-
"spend_money",
|
|
103
|
-
"noop",
|
|
104
|
-
];
|
|
105
|
-
const ALL_CHANNELS = [
|
|
106
|
-
"telegram",
|
|
107
|
-
"discord",
|
|
108
|
-
"slack",
|
|
109
|
-
"imessage",
|
|
110
|
-
"sms",
|
|
111
|
-
"x_dm",
|
|
112
|
-
"email",
|
|
113
|
-
"google_calendar",
|
|
114
|
-
"browser",
|
|
115
|
-
"phone",
|
|
116
|
-
"internal",
|
|
117
|
-
];
|
|
118
|
-
/**
|
|
119
|
-
* Error raised when the planner is unavailable or returned unparsable
|
|
120
|
-
* output. We surface this loudly — the caller MUST decide whether to skip
|
|
121
|
-
* this tick or escalate. We never silently fall back to a default action.
|
|
122
|
-
*/
|
|
123
|
-
export class BackgroundPlannerError extends Error {
|
|
124
|
-
jobKind;
|
|
125
|
-
cause;
|
|
126
|
-
constructor(jobKind, message, cause) {
|
|
127
|
-
super(`[BackgroundPlanner:${jobKind}] ${message}`);
|
|
128
|
-
this.name = "BackgroundPlannerError";
|
|
129
|
-
this.jobKind = jobKind;
|
|
130
|
-
this.cause = cause;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
function isApprovalAction(value) {
|
|
134
|
-
return (typeof value === "string" && SENSITIVE_ACTIONS.has(value));
|
|
135
|
-
}
|
|
136
|
-
function isApprovalChannel(value) {
|
|
137
|
-
return (typeof value === "string" &&
|
|
138
|
-
ALL_CHANNELS.includes(value));
|
|
139
|
-
}
|
|
140
|
-
function buildPrompt(jobContext) {
|
|
141
|
-
return [
|
|
142
|
-
`Plan the BACKGROUND JOB action for job kind: ${jobContext.jobKind}.`,
|
|
143
|
-
"You are routing a background tick for an executive assistant.",
|
|
144
|
-
"Decide whether the assistant should take an action right now, and if so",
|
|
145
|
-
"which action and through which channel. The assistant MUST NOT execute",
|
|
146
|
-
"sensitive actions directly — anything that contacts a person, modifies a",
|
|
147
|
-
"calendar, books travel, makes a call, runs a workflow, or spends money",
|
|
148
|
-
"returns requiresApproval=true so the user can confirm.",
|
|
149
|
-
"",
|
|
150
|
-
"Return ONLY valid JSON with exactly these fields:",
|
|
151
|
-
`{"action":${ALL_ACTIONS.map((a) => `"${a}"`).join("|")},`,
|
|
152
|
-
`"channel":${ALL_CHANNELS.map((c) => `"${c}"`).join("|")},`,
|
|
153
|
-
`"requiresApproval":true|false,`,
|
|
154
|
-
`"reason":"short justification",`,
|
|
155
|
-
`"payload":{...action-specific fields, or empty object when action=noop}}`,
|
|
156
|
-
"",
|
|
157
|
-
"Rules:",
|
|
158
|
-
"- Choose action=noop when no action is warranted this tick (e.g. nothing overdue).",
|
|
159
|
-
"- requiresApproval=true for any action that touches a person or external system.",
|
|
160
|
-
"- requiresApproval=false ONLY when action=noop or the action is purely internal (logging, internal workflow with no side effects).",
|
|
161
|
-
"- The reason must explain WHY this tick warrants the chosen action, in any language.",
|
|
162
|
-
"",
|
|
163
|
-
`Job trigger: ${jobContext.trigger}`,
|
|
164
|
-
`Subject user: ${jobContext.subjectUserId}`,
|
|
165
|
-
`Available channels: ${JSON.stringify(jobContext.availableChannels)}`,
|
|
166
|
-
`Snapshot: ${JSON.stringify(jobContext.snapshot)}`,
|
|
167
|
-
].join("\n");
|
|
168
|
-
}
|
|
169
|
-
function emptyPayloadFor(_action) {
|
|
170
|
-
// Sensitive payloads are required to be fully formed — we do not invent
|
|
171
|
-
// recipients or amounts. If the planner returned a sensitive action with
|
|
172
|
-
// no usable payload, the caller will see payload=null and skip the tick.
|
|
173
|
-
return null;
|
|
174
|
-
}
|
|
175
|
-
function coercePayload(action, rawPayload) {
|
|
176
|
-
if (!rawPayload ||
|
|
177
|
-
typeof rawPayload !== "object" ||
|
|
178
|
-
Array.isArray(rawPayload)) {
|
|
179
|
-
return emptyPayloadFor(action);
|
|
180
|
-
}
|
|
181
|
-
const record = rawPayload;
|
|
182
|
-
switch (action) {
|
|
183
|
-
case "send_message": {
|
|
184
|
-
const recipient = typeof record.recipient === "string" ? record.recipient : null;
|
|
185
|
-
const body = typeof record.body === "string" ? record.body : null;
|
|
186
|
-
if (!recipient || !body)
|
|
187
|
-
return null;
|
|
188
|
-
return {
|
|
189
|
-
action,
|
|
190
|
-
recipient,
|
|
191
|
-
body,
|
|
192
|
-
replyToMessageId: typeof record.replyToMessageId === "string"
|
|
193
|
-
? record.replyToMessageId
|
|
194
|
-
: null,
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
case "send_email": {
|
|
198
|
-
const subject = typeof record.subject === "string" ? record.subject : null;
|
|
199
|
-
const body = typeof record.body === "string" ? record.body : null;
|
|
200
|
-
const to = Array.isArray(record.to)
|
|
201
|
-
? record.to.filter((v) => typeof v === "string")
|
|
202
|
-
: [];
|
|
203
|
-
if (!subject || !body || to.length === 0)
|
|
204
|
-
return null;
|
|
205
|
-
return {
|
|
206
|
-
action,
|
|
207
|
-
to,
|
|
208
|
-
cc: Array.isArray(record.cc)
|
|
209
|
-
? record.cc.filter((v) => typeof v === "string")
|
|
210
|
-
: [],
|
|
211
|
-
bcc: Array.isArray(record.bcc)
|
|
212
|
-
? record.bcc.filter((v) => typeof v === "string")
|
|
213
|
-
: [],
|
|
214
|
-
subject,
|
|
215
|
-
body,
|
|
216
|
-
threadId: typeof record.threadId === "string" ? record.threadId : null,
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
case "execute_workflow": {
|
|
220
|
-
const workflowId = typeof record.workflowId === "string" ? record.workflowId : null;
|
|
221
|
-
if (!workflowId)
|
|
222
|
-
return null;
|
|
223
|
-
const inputRaw = record.input;
|
|
224
|
-
const input = {};
|
|
225
|
-
if (inputRaw &&
|
|
226
|
-
typeof inputRaw === "object" &&
|
|
227
|
-
!Array.isArray(inputRaw)) {
|
|
228
|
-
for (const [k, v] of Object.entries(inputRaw)) {
|
|
229
|
-
if (typeof v === "string" ||
|
|
230
|
-
typeof v === "number" ||
|
|
231
|
-
typeof v === "boolean") {
|
|
232
|
-
input[k] = v;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
return { action, workflowId, input };
|
|
237
|
-
}
|
|
238
|
-
case "book_travel": {
|
|
239
|
-
const provider = typeof record.provider === "string" ? record.provider : null;
|
|
240
|
-
const itineraryRef = typeof record.itineraryRef === "string" ? record.itineraryRef : null;
|
|
241
|
-
const totalCents = typeof record.totalCents === "number" &&
|
|
242
|
-
Number.isFinite(record.totalCents)
|
|
243
|
-
? Math.round(record.totalCents)
|
|
244
|
-
: null;
|
|
245
|
-
const currency = typeof record.currency === "string" ? record.currency : null;
|
|
246
|
-
const kind = record.kind === "flight" ||
|
|
247
|
-
record.kind === "hotel" ||
|
|
248
|
-
record.kind === "ground"
|
|
249
|
-
? record.kind
|
|
250
|
-
: null;
|
|
251
|
-
const search = record.search &&
|
|
252
|
-
typeof record.search === "object" &&
|
|
253
|
-
!Array.isArray(record.search)
|
|
254
|
-
? record.search
|
|
255
|
-
: null;
|
|
256
|
-
const passengers = Array.isArray(record.passengers)
|
|
257
|
-
? record.passengers.filter((value) => Boolean(value) &&
|
|
258
|
-
typeof value === "object" &&
|
|
259
|
-
!Array.isArray(value))
|
|
260
|
-
: [];
|
|
261
|
-
const calendarSync = record.calendarSync &&
|
|
262
|
-
typeof record.calendarSync === "object" &&
|
|
263
|
-
!Array.isArray(record.calendarSync)
|
|
264
|
-
? record.calendarSync
|
|
265
|
-
: null;
|
|
266
|
-
if (!provider ||
|
|
267
|
-
!itineraryRef ||
|
|
268
|
-
totalCents === null ||
|
|
269
|
-
!currency ||
|
|
270
|
-
!kind) {
|
|
271
|
-
return null;
|
|
272
|
-
}
|
|
273
|
-
return {
|
|
274
|
-
action,
|
|
275
|
-
kind,
|
|
276
|
-
provider,
|
|
277
|
-
itineraryRef,
|
|
278
|
-
totalCents,
|
|
279
|
-
currency,
|
|
280
|
-
offerId: typeof record.offerId === "string" ? record.offerId : null,
|
|
281
|
-
offerRequestId: typeof record.offerRequestId === "string"
|
|
282
|
-
? record.offerRequestId
|
|
283
|
-
: null,
|
|
284
|
-
orderType: record.orderType === "hold" || record.orderType === "instant"
|
|
285
|
-
? record.orderType
|
|
286
|
-
: null,
|
|
287
|
-
// Planner output is shaped by the LLM; downstream booking flow
|
|
288
|
-
// re-validates each field before any real Duffel call. Cast through
|
|
289
|
-
// unknown to satisfy the closed TravelBookingPayloadFields shapes.
|
|
290
|
-
search: search,
|
|
291
|
-
passengers: passengers,
|
|
292
|
-
calendarSync: calendarSync,
|
|
293
|
-
summary: typeof record.summary === "string" ? record.summary : null,
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
default:
|
|
297
|
-
// For schedule/modify/cancel/book/call/spend the upstream caller has
|
|
298
|
-
// not yet wired structured payload extraction. We surface null so the
|
|
299
|
-
// caller can either request approval with a synthesized message or
|
|
300
|
-
// skip this tick. We never fabricate recipients or amounts.
|
|
301
|
-
return null;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* Plan a background-job action via the same LLM pipeline used by chat
|
|
306
|
-
* actions. Returns a typed plan; throws `BackgroundPlannerError` on hard
|
|
307
|
-
* planner failure (model unavailable, unparsable output). Callers MUST
|
|
308
|
-
* route sensitive actions through the WS6 approval queue.
|
|
309
|
-
*/
|
|
310
|
-
export async function planJob(runtime, jobContext) {
|
|
311
|
-
if (typeof runtime.useModel !== "function") {
|
|
312
|
-
throw new BackgroundPlannerError(jobContext.jobKind, "runtime.useModel is unavailable; background job cannot run");
|
|
313
|
-
}
|
|
314
|
-
const prompt = buildPrompt(jobContext);
|
|
315
|
-
// biome-ignore lint/correctness/useHookAtTopLevel: runtime.useModel is an elizaOS model API, not a React hook.
|
|
316
|
-
const result = await runtime.useModel(ModelType.TEXT_SMALL, { prompt });
|
|
317
|
-
const raw = typeof result === "string" ? result : "";
|
|
318
|
-
const parsed = parseJSONObjectFromText(raw);
|
|
319
|
-
if (!parsed) {
|
|
320
|
-
throw new BackgroundPlannerError(jobContext.jobKind, `planner returned unparsable output: ${raw.slice(0, 200)}`);
|
|
321
|
-
}
|
|
322
|
-
const rawAction = parsed.action;
|
|
323
|
-
const rawChannel = parsed.channel;
|
|
324
|
-
const reason = typeof parsed.reason === "string" && parsed.reason.trim().length > 0
|
|
325
|
-
? parsed.reason.trim()
|
|
326
|
-
: null;
|
|
327
|
-
if (!reason) {
|
|
328
|
-
throw new BackgroundPlannerError(jobContext.jobKind, "planner output missing required `reason` field");
|
|
329
|
-
}
|
|
330
|
-
const channel = isApprovalChannel(rawChannel)
|
|
331
|
-
? rawChannel
|
|
332
|
-
: "internal";
|
|
333
|
-
if (rawAction === "noop" || rawAction === null || rawAction === undefined) {
|
|
334
|
-
logger.debug(`[BackgroundPlanner:${jobContext.jobKind}] noop — ${reason}`);
|
|
335
|
-
return {
|
|
336
|
-
action: null,
|
|
337
|
-
payload: null,
|
|
338
|
-
requiresApproval: false,
|
|
339
|
-
channel,
|
|
340
|
-
reason,
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
if (!isApprovalAction(rawAction)) {
|
|
344
|
-
throw new BackgroundPlannerError(jobContext.jobKind, `planner returned unknown action: ${String(rawAction)}`);
|
|
345
|
-
}
|
|
346
|
-
const payload = coercePayload(rawAction, parsed.payload);
|
|
347
|
-
const requiresApproval = parsed.requiresApproval === false
|
|
348
|
-
? false
|
|
349
|
-
: SENSITIVE_ACTIONS.has(rawAction);
|
|
350
|
-
logger.info(`[BackgroundPlanner:${jobContext.jobKind}] action=${rawAction} channel=${channel} requiresApproval=${requiresApproval} — ${reason}`);
|
|
351
|
-
return {
|
|
352
|
-
action: rawAction,
|
|
353
|
-
payload,
|
|
354
|
-
requiresApproval,
|
|
355
|
-
channel,
|
|
356
|
-
reason,
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
/** Test-only helper: list all PRD job kinds the planner knows about. */
|
|
360
|
-
export const KNOWN_JOB_KINDS = [
|
|
361
|
-
"inbox_ingest",
|
|
362
|
-
"daily_brief",
|
|
363
|
-
"evening_closeout",
|
|
364
|
-
"followup_watchdog",
|
|
365
|
-
"decision_nudger",
|
|
366
|
-
"meeting_reminder",
|
|
367
|
-
"travel_conflict",
|
|
368
|
-
"event_asset_sweep",
|
|
369
|
-
"draft_aging_sweep",
|
|
370
|
-
"remote_stuck_escalate",
|
|
371
|
-
"pending_decision",
|
|
372
|
-
"missed_commitment",
|
|
373
|
-
"unsent_draft",
|
|
374
|
-
"relationship_overdue",
|
|
375
|
-
"deadline_escalate",
|
|
376
|
-
"travel_ops",
|
|
377
|
-
];
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
export interface CalendlyCredentials {
|
|
2
|
-
personalAccessToken: string;
|
|
3
|
-
organizationUri?: string;
|
|
4
|
-
userUri?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface CalendlyEventType {
|
|
7
|
-
uri: string;
|
|
8
|
-
name: string;
|
|
9
|
-
slug: string;
|
|
10
|
-
schedulingUrl: string;
|
|
11
|
-
durationMinutes: number;
|
|
12
|
-
active: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface CalendlyScheduledEvent {
|
|
15
|
-
uri: string;
|
|
16
|
-
name: string;
|
|
17
|
-
startTime: string;
|
|
18
|
-
endTime: string;
|
|
19
|
-
status: "active" | "canceled";
|
|
20
|
-
invitees: Array<{
|
|
21
|
-
name?: string;
|
|
22
|
-
email?: string;
|
|
23
|
-
status: string;
|
|
24
|
-
}>;
|
|
25
|
-
}
|
|
26
|
-
export interface CalendlyAvailability {
|
|
27
|
-
date: string;
|
|
28
|
-
slots: Array<{
|
|
29
|
-
startTime: string;
|
|
30
|
-
endTime: string;
|
|
31
|
-
}>;
|
|
32
|
-
}
|
|
33
|
-
export declare class CalendlyError extends Error {
|
|
34
|
-
readonly status: number;
|
|
35
|
-
readonly body?: unknown | undefined;
|
|
36
|
-
constructor(message: string, status: number, body?: unknown | undefined);
|
|
37
|
-
}
|
|
38
|
-
export declare function readCalendlyCredentialsFromEnv(env?: NodeJS.ProcessEnv): CalendlyCredentials | null;
|
|
39
|
-
export declare function getCalendlyUser(creds: CalendlyCredentials): Promise<{
|
|
40
|
-
uri: string;
|
|
41
|
-
name: string;
|
|
42
|
-
email: string;
|
|
43
|
-
schedulingUrl: string;
|
|
44
|
-
}>;
|
|
45
|
-
export declare function listCalendlyEventTypes(creds: CalendlyCredentials): Promise<CalendlyEventType[]>;
|
|
46
|
-
export declare function listCalendlyScheduledEvents(creds: CalendlyCredentials, opts?: {
|
|
47
|
-
minStartTime?: string;
|
|
48
|
-
maxStartTime?: string;
|
|
49
|
-
status?: "active" | "canceled";
|
|
50
|
-
limit?: number;
|
|
51
|
-
}): Promise<CalendlyScheduledEvent[]>;
|
|
52
|
-
export declare function getCalendlyAvailability(creds: CalendlyCredentials, eventTypeUri: string, opts: {
|
|
53
|
-
startDate: string;
|
|
54
|
-
endDate: string;
|
|
55
|
-
timezone?: string;
|
|
56
|
-
}): Promise<CalendlyAvailability[]>;
|
|
57
|
-
export declare function createCalendlySingleUseLink(creds: CalendlyCredentials, eventTypeUri: string): Promise<{
|
|
58
|
-
bookingUrl: string;
|
|
59
|
-
expiresAt: string | null;
|
|
60
|
-
}>;
|
|
61
|
-
//# sourceMappingURL=calendly-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calendly-client.d.ts","sourceRoot":"","sources":["../../../../../../../apps/app-lifeops/src/lifeops/calendly-client.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,mBAAmB;IAClC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpE;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACtD;AAED,qBAAa,aAAc,SAAQ,KAAK;aAGpB,MAAM,EAAE,MAAM;aACd,IAAI,CAAC,EAAE,OAAO;gBAF9B,OAAO,EAAE,MAAM,EACC,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,OAAO,YAAA;CAKjC;AAQD,wBAAgB,8BAA8B,CAC5C,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,mBAAmB,GAAG,IAAI,CAY5B;AA8HD,wBAAsB,eAAe,CACnC,KAAK,EAAE,mBAAmB,GACzB,OAAO,CAAC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC,CAY9E;AAQD,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,mBAAmB,GACzB,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAY9B;AAED,wBAAsB,2BAA2B,CAC/C,KAAK,EAAE,mBAAmB,EAC1B,IAAI,GAAE;IACJ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;CACX,GACL,OAAO,CAAC,sBAAsB,EAAE,CAAC,CA8BnC;AAiCD,wBAAsB,uBAAuB,CAC3C,KAAK,EAAE,mBAAmB,EAC1B,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9D,OAAO,CAAC,oBAAoB,EAAE,CAAC,CA+BjC;AAqBD,wBAAsB,2BAA2B,CAC/C,KAAK,EAAE,mBAAmB,EAC1B,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC,CAwB3D"}
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
import { logger } from "@elizaos/core";
|
|
2
|
-
export class CalendlyError extends Error {
|
|
3
|
-
status;
|
|
4
|
-
body;
|
|
5
|
-
constructor(message, status, body) {
|
|
6
|
-
super(message);
|
|
7
|
-
this.status = status;
|
|
8
|
-
this.body = body;
|
|
9
|
-
this.name = "CalendlyError";
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
const REQUEST_TIMEOUT_MS = 12_000;
|
|
13
|
-
function getCalendlyBaseUrl() {
|
|
14
|
-
return process.env.MILADY_MOCK_CALENDLY_BASE ?? "https://api.calendly.com";
|
|
15
|
-
}
|
|
16
|
-
export function readCalendlyCredentialsFromEnv(env = process.env) {
|
|
17
|
-
const personalAccessToken = env.ELIZA_CALENDLY_TOKEN?.trim();
|
|
18
|
-
if (!personalAccessToken) {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
const organizationUri = env.ELIZA_CALENDLY_ORG_URI?.trim() || undefined;
|
|
22
|
-
const userUri = env.ELIZA_CALENDLY_USER_URI?.trim() || undefined;
|
|
23
|
-
return {
|
|
24
|
-
personalAccessToken,
|
|
25
|
-
organizationUri,
|
|
26
|
-
userUri,
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
async function calendlyRequest(creds, path, init = {}) {
|
|
30
|
-
const url = path.startsWith("http") ? path : `${getCalendlyBaseUrl()}${path}`;
|
|
31
|
-
const response = await fetch(url, {
|
|
32
|
-
...init,
|
|
33
|
-
headers: {
|
|
34
|
-
Authorization: `Bearer ${creds.personalAccessToken}`,
|
|
35
|
-
"Content-Type": "application/json",
|
|
36
|
-
Accept: "application/json",
|
|
37
|
-
...(init.headers ?? {}),
|
|
38
|
-
},
|
|
39
|
-
signal: init.signal ?? AbortSignal.timeout(REQUEST_TIMEOUT_MS),
|
|
40
|
-
});
|
|
41
|
-
const text = await response.text();
|
|
42
|
-
const body = text.length > 0 ? safeJsonParse(text) : undefined;
|
|
43
|
-
if (!response.ok) {
|
|
44
|
-
const message = extractErrorMessage(body) ?? `HTTP ${response.status}`;
|
|
45
|
-
logger.warn({
|
|
46
|
-
boundary: "lifeops",
|
|
47
|
-
integration: "calendly",
|
|
48
|
-
statusCode: response.status,
|
|
49
|
-
path,
|
|
50
|
-
}, `[lifeops] Calendly request failed: ${message}`);
|
|
51
|
-
throw new CalendlyError(message, response.status, body);
|
|
52
|
-
}
|
|
53
|
-
return body;
|
|
54
|
-
}
|
|
55
|
-
function safeJsonParse(text) {
|
|
56
|
-
try {
|
|
57
|
-
return JSON.parse(text);
|
|
58
|
-
}
|
|
59
|
-
catch {
|
|
60
|
-
return text;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function extractErrorMessage(body) {
|
|
64
|
-
if (!body || typeof body !== "object")
|
|
65
|
-
return null;
|
|
66
|
-
const record = body;
|
|
67
|
-
if (typeof record.message === "string")
|
|
68
|
-
return record.message;
|
|
69
|
-
if (typeof record.title === "string")
|
|
70
|
-
return record.title;
|
|
71
|
-
if (Array.isArray(record.details) && record.details.length > 0) {
|
|
72
|
-
const first = record.details[0];
|
|
73
|
-
if (first && typeof first === "object") {
|
|
74
|
-
const msg = first.message;
|
|
75
|
-
if (typeof msg === "string")
|
|
76
|
-
return msg;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
async function paginate(creds, initialPath, limit) {
|
|
82
|
-
const out = [];
|
|
83
|
-
let nextPath = initialPath;
|
|
84
|
-
while (nextPath && out.length < limit) {
|
|
85
|
-
const page = await calendlyRequest(creds, nextPath);
|
|
86
|
-
if (Array.isArray(page.collection)) {
|
|
87
|
-
for (const item of page.collection) {
|
|
88
|
-
out.push(item);
|
|
89
|
-
if (out.length >= limit)
|
|
90
|
-
break;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
nextPath = page.pagination?.next_page ?? null;
|
|
94
|
-
}
|
|
95
|
-
return out;
|
|
96
|
-
}
|
|
97
|
-
export async function getCalendlyUser(creds) {
|
|
98
|
-
const response = await calendlyRequest(creds, "/users/me");
|
|
99
|
-
const user = response.resource;
|
|
100
|
-
return {
|
|
101
|
-
uri: user.uri,
|
|
102
|
-
name: user.name,
|
|
103
|
-
email: user.email,
|
|
104
|
-
schedulingUrl: user.scheduling_url,
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
async function resolveUserUri(creds) {
|
|
108
|
-
if (creds.userUri)
|
|
109
|
-
return creds.userUri;
|
|
110
|
-
const user = await getCalendlyUser(creds);
|
|
111
|
-
return user.uri;
|
|
112
|
-
}
|
|
113
|
-
export async function listCalendlyEventTypes(creds) {
|
|
114
|
-
const userUri = await resolveUserUri(creds);
|
|
115
|
-
const path = `/event_types?user=${encodeURIComponent(userUri)}&count=100`;
|
|
116
|
-
const raw = await paginate(creds, path, 500);
|
|
117
|
-
return raw.map((r) => ({
|
|
118
|
-
uri: r.uri,
|
|
119
|
-
name: r.name,
|
|
120
|
-
slug: r.slug,
|
|
121
|
-
schedulingUrl: r.scheduling_url,
|
|
122
|
-
durationMinutes: r.duration,
|
|
123
|
-
active: r.active,
|
|
124
|
-
}));
|
|
125
|
-
}
|
|
126
|
-
export async function listCalendlyScheduledEvents(creds, opts = {}) {
|
|
127
|
-
const userUri = await resolveUserUri(creds);
|
|
128
|
-
const limit = opts.limit ?? 50;
|
|
129
|
-
const query = new URLSearchParams({
|
|
130
|
-
user: userUri,
|
|
131
|
-
count: String(Math.min(limit, 100)),
|
|
132
|
-
});
|
|
133
|
-
if (opts.minStartTime)
|
|
134
|
-
query.set("min_start_time", opts.minStartTime);
|
|
135
|
-
if (opts.maxStartTime)
|
|
136
|
-
query.set("max_start_time", opts.maxStartTime);
|
|
137
|
-
if (opts.status)
|
|
138
|
-
query.set("status", opts.status);
|
|
139
|
-
const rawEvents = await paginate(creds, `/scheduled_events?${query.toString()}`, limit);
|
|
140
|
-
const enriched = [];
|
|
141
|
-
for (const event of rawEvents) {
|
|
142
|
-
const invitees = await fetchEventInvitees(creds, event.uri);
|
|
143
|
-
enriched.push({
|
|
144
|
-
uri: event.uri,
|
|
145
|
-
name: event.name,
|
|
146
|
-
startTime: event.start_time,
|
|
147
|
-
endTime: event.end_time,
|
|
148
|
-
status: event.status,
|
|
149
|
-
invitees,
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
return enriched;
|
|
153
|
-
}
|
|
154
|
-
async function fetchEventInvitees(creds, eventUri) {
|
|
155
|
-
const path = `${eventUri}/invitees`;
|
|
156
|
-
const raw = await paginate(creds, path, 100);
|
|
157
|
-
return raw.map((inv) => ({
|
|
158
|
-
name: inv.name,
|
|
159
|
-
email: inv.email,
|
|
160
|
-
status: inv.status,
|
|
161
|
-
}));
|
|
162
|
-
}
|
|
163
|
-
async function fetchEventTypeDurationMinutes(creds, eventTypeUri) {
|
|
164
|
-
const response = await calendlyRequest(creds, eventTypeUri);
|
|
165
|
-
const duration = Number(response.resource?.duration);
|
|
166
|
-
if (!Number.isFinite(duration) || duration <= 0) {
|
|
167
|
-
throw new CalendlyError(`Calendly event type ${eventTypeUri} did not return a usable duration`, 0, response);
|
|
168
|
-
}
|
|
169
|
-
return duration;
|
|
170
|
-
}
|
|
171
|
-
export async function getCalendlyAvailability(creds, eventTypeUri, opts) {
|
|
172
|
-
const query = new URLSearchParams({
|
|
173
|
-
event_type: eventTypeUri,
|
|
174
|
-
start_time: toIsoBoundary(opts.startDate, "start"),
|
|
175
|
-
end_time: toIsoBoundary(opts.endDate, "end"),
|
|
176
|
-
});
|
|
177
|
-
if (opts.timezone)
|
|
178
|
-
query.set("timezone", opts.timezone);
|
|
179
|
-
const [response, durationMinutes] = await Promise.all([
|
|
180
|
-
calendlyRequest(creds, `/event_type_available_times?${query.toString()}`),
|
|
181
|
-
fetchEventTypeDurationMinutes(creds, eventTypeUri),
|
|
182
|
-
]);
|
|
183
|
-
const durationMs = durationMinutes * 60 * 1000;
|
|
184
|
-
const byDate = new Map();
|
|
185
|
-
for (const slot of response.collection ?? []) {
|
|
186
|
-
if (slot.status !== "available")
|
|
187
|
-
continue;
|
|
188
|
-
const start = new Date(slot.start_time);
|
|
189
|
-
const dateKey = toDateKey(start, opts.timezone);
|
|
190
|
-
const end = new Date(start.getTime() + durationMs);
|
|
191
|
-
const entry = byDate.get(dateKey) ?? [];
|
|
192
|
-
entry.push({ startTime: slot.start_time, endTime: end.toISOString() });
|
|
193
|
-
byDate.set(dateKey, entry);
|
|
194
|
-
}
|
|
195
|
-
return Array.from(byDate.entries())
|
|
196
|
-
.map(([date, slots]) => ({ date, slots }))
|
|
197
|
-
.sort((a, b) => a.date.localeCompare(b.date));
|
|
198
|
-
}
|
|
199
|
-
function toIsoBoundary(date, boundary) {
|
|
200
|
-
if (date.includes("T"))
|
|
201
|
-
return date;
|
|
202
|
-
return boundary === "start" ? `${date}T00:00:00Z` : `${date}T23:59:59Z`;
|
|
203
|
-
}
|
|
204
|
-
function toDateKey(date, timezone) {
|
|
205
|
-
if (!timezone)
|
|
206
|
-
return date.toISOString().slice(0, 10);
|
|
207
|
-
const parts = new Intl.DateTimeFormat("en-CA", {
|
|
208
|
-
timeZone: timezone,
|
|
209
|
-
year: "numeric",
|
|
210
|
-
month: "2-digit",
|
|
211
|
-
day: "2-digit",
|
|
212
|
-
}).formatToParts(date);
|
|
213
|
-
const year = parts.find((p) => p.type === "year")?.value ?? "1970";
|
|
214
|
-
const month = parts.find((p) => p.type === "month")?.value ?? "01";
|
|
215
|
-
const day = parts.find((p) => p.type === "day")?.value ?? "01";
|
|
216
|
-
return `${year}-${month}-${day}`;
|
|
217
|
-
}
|
|
218
|
-
export async function createCalendlySingleUseLink(creds, eventTypeUri) {
|
|
219
|
-
const response = await calendlyRequest(creds, "/scheduling_links", {
|
|
220
|
-
method: "POST",
|
|
221
|
-
body: JSON.stringify({
|
|
222
|
-
max_event_count: 1,
|
|
223
|
-
owner: eventTypeUri,
|
|
224
|
-
owner_type: "EventType",
|
|
225
|
-
}),
|
|
226
|
-
});
|
|
227
|
-
const expiresAt = typeof response.resource.expires_at === "string"
|
|
228
|
-
? response.resource.expires_at
|
|
229
|
-
: null;
|
|
230
|
-
return {
|
|
231
|
-
bookingUrl: response.resource.booking_url,
|
|
232
|
-
expiresAt,
|
|
233
|
-
};
|
|
234
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { IAgentRuntime } from "@elizaos/core";
|
|
2
|
-
/**
|
|
3
|
-
* Reads the owner's configured morning/night check-in times from the existing
|
|
4
|
-
* owner-profile row. Returns null for a slot if the owner hasn't configured it.
|
|
5
|
-
*
|
|
6
|
-
* Cron wiring that actually fires `runMorningCheckin` at these times is a
|
|
7
|
-
* follow-up PR (T9f-followup-PR).
|
|
8
|
-
*/
|
|
9
|
-
export interface CheckinSchedule {
|
|
10
|
-
readonly morningCheckinTime: string | null;
|
|
11
|
-
readonly nightCheckinTime: string | null;
|
|
12
|
-
}
|
|
13
|
-
export declare function resolveCheckinSchedule(runtime: IAgentRuntime): Promise<CheckinSchedule>;
|
|
14
|
-
//# sourceMappingURL=schedule-resolver.d.ts.map
|