@elizaos/app-core 2.0.0-alpha.144 → 2.0.0-alpha.151
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/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-lifeops/src/LifeOpsBrowserSetupPanel.d.ts +2 -0
- package/apps/app-lifeops/src/LifeOpsBrowserSetupPanel.d.ts.map +1 -0
- package/apps/app-lifeops/src/LifeOpsBrowserSetupPanel.js +463 -0
- package/apps/app-lifeops/src/LifeOpsPageSections.d.ts +42 -0
- package/apps/app-lifeops/src/LifeOpsPageSections.d.ts.map +1 -0
- package/apps/app-lifeops/src/LifeOpsPageSections.js +170 -0
- package/apps/app-lifeops/src/LifeOpsPageView.d.ts +2 -0
- package/apps/app-lifeops/src/LifeOpsPageView.d.ts.map +1 -0
- package/apps/app-lifeops/src/LifeOpsPageView.js +387 -0
- package/apps/app-lifeops/src/LifeOpsSettingsSection.d.ts +2 -0
- package/apps/app-lifeops/src/LifeOpsSettingsSection.d.ts.map +1 -0
- package/apps/app-lifeops/src/LifeOpsSettingsSection.js +161 -0
- package/apps/app-lifeops/src/LifeOpsWorkspaceView.d.ts +2 -0
- package/apps/app-lifeops/src/LifeOpsWorkspaceView.d.ts.map +1 -0
- package/apps/app-lifeops/src/LifeOpsWorkspaceView.js +499 -0
- package/apps/app-lifeops/src/WebsiteBlockerSettingsCard.d.ts +3 -0
- package/apps/app-lifeops/src/WebsiteBlockerSettingsCard.d.ts.map +1 -0
- package/apps/app-lifeops/src/WebsiteBlockerSettingsCard.js +200 -0
- package/apps/app-lifeops/src/actions/inbox.d.ts.map +1 -0
- package/{packages/agent → apps/app-lifeops}/src/actions/inbox.js +3 -3
- package/apps/app-lifeops/src/actions/update-owner-profile.d.ts.map +1 -0
- package/{packages/agent → apps/app-lifeops}/src/actions/update-owner-profile.js +1 -1
- package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/config.d.ts.map +1 -0
- package/{packages/agent → apps/app-lifeops}/src/inbox/config.js +1 -1
- package/apps/app-lifeops/src/inbox/message-fetcher.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/reflection.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/repository.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/triage-classifier.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/screen-context.d.ts +52 -0
- package/apps/app-lifeops/src/lifeops/screen-context.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/screen-context.js +332 -0
- package/apps/app-lifeops/src/plugin.d.ts +3 -0
- package/apps/app-lifeops/src/plugin.d.ts.map +1 -1
- package/apps/app-lifeops/src/plugin.js +16 -3
- package/apps/app-lifeops/src/providers/inbox-triage.d.ts.map +1 -0
- package/{packages/agent → apps/app-lifeops}/src/providers/inbox-triage.js +1 -1
- package/apps/app-lifeops/src/ui.d.ts +7 -0
- package/apps/app-lifeops/src/ui.d.ts.map +1 -0
- package/apps/app-lifeops/src/ui.js +6 -0
- package/apps/app-shopify/src/CustomersPanel.d.ts +16 -0
- package/apps/app-shopify/src/CustomersPanel.d.ts.map +1 -0
- package/apps/app-shopify/src/CustomersPanel.js +16 -0
- package/apps/app-shopify/src/InventoryLevelsPanel.d.ts +14 -0
- package/apps/app-shopify/src/InventoryLevelsPanel.d.ts.map +1 -0
- package/apps/app-shopify/src/InventoryLevelsPanel.js +48 -0
- package/apps/app-shopify/src/OrdersPanel.d.ts +16 -0
- package/apps/app-shopify/src/OrdersPanel.d.ts.map +1 -0
- package/apps/app-shopify/src/OrdersPanel.js +58 -0
- package/apps/app-shopify/src/ProductsPanel.d.ts +18 -0
- package/apps/app-shopify/src/ProductsPanel.d.ts.map +1 -0
- package/apps/app-shopify/src/ProductsPanel.js +91 -0
- package/apps/app-shopify/src/ShopifyAppView.d.ts +12 -0
- package/apps/app-shopify/src/ShopifyAppView.d.ts.map +1 -0
- package/apps/app-shopify/src/ShopifyAppView.js +51 -0
- package/apps/app-shopify/src/StoreOverviewCard.d.ts +19 -0
- package/apps/app-shopify/src/StoreOverviewCard.d.ts.map +1 -0
- package/apps/app-shopify/src/StoreOverviewCard.js +10 -0
- package/apps/app-shopify/src/index.d.ts +11 -0
- package/apps/app-shopify/src/index.d.ts.map +1 -0
- package/apps/app-shopify/src/index.js +10 -0
- package/apps/app-shopify/src/shopify-app.d.ts +11 -0
- package/apps/app-shopify/src/shopify-app.d.ts.map +1 -0
- package/apps/app-shopify/src/shopify-app.js +20 -0
- package/apps/app-shopify/src/useShopifyDashboard.d.ts +118 -0
- package/apps/app-shopify/src/useShopifyDashboard.d.ts.map +1 -0
- package/apps/app-shopify/src/useShopifyDashboard.js +248 -0
- package/apps/app-task-coordinator/src/AgentTabsSection.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/CodingAgentControlChip.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/CodingAgentSettingsSection.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/CodingAgentTasksPanel.d.ts +4 -0
- package/apps/app-task-coordinator/src/CodingAgentTasksPanel.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/CodingAgentTasksPanel.js +291 -0
- package/apps/app-task-coordinator/src/GlobalPrefsSection.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/LlmProviderSection.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/ModelConfigSection.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/PtyConsoleBase.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/PtyConsoleDrawer.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/PtyConsoleSidePanel.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/PtyTerminalPane.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/api/coding-agents-auth-sanitize.d.ts +23 -0
- package/apps/app-task-coordinator/src/api/coding-agents-auth-sanitize.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/api/coding-agents-auth-sanitize.js +39 -0
- package/apps/app-task-coordinator/src/api/coding-agents-preflight-normalize.d.ts +29 -0
- package/apps/app-task-coordinator/src/api/coding-agents-preflight-normalize.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/api/coding-agents-preflight-normalize.js +45 -0
- package/apps/app-task-coordinator/src/api/coordinator-types.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/api/coordinator-wiring.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/api/task-agent-message-routing.d.ts +10 -0
- package/apps/app-task-coordinator/src/api/task-agent-message-routing.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/api/task-agent-message-routing.js +62 -0
- package/apps/app-task-coordinator/src/coding-agent-settings-shared.d.ts.map +1 -0
- package/apps/{app-coding → app-task-coordinator}/src/index.d.ts +1 -0
- package/apps/app-task-coordinator/src/index.d.ts.map +1 -0
- package/apps/{app-coding → app-task-coordinator}/src/index.js +1 -0
- package/apps/app-task-coordinator/src/pty-status-dots.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/session-hydration.d.ts.map +1 -0
- package/apps/app-training/src/services/index.d.ts +3 -0
- package/apps/app-training/src/services/index.d.ts.map +1 -0
- package/apps/app-training/src/services/index.js +1 -0
- package/apps/app-training/src/services/training-backend-check.d.ts +8 -0
- package/apps/app-training/src/services/training-backend-check.d.ts.map +1 -0
- package/apps/app-training/src/services/training-backend-check.js +28 -0
- package/apps/app-training/src/services/training-service-like.d.ts +38 -0
- package/apps/app-training/src/services/training-service-like.d.ts.map +1 -0
- package/apps/app-training/src/services/training-service-like.js +1 -0
- package/apps/app-training/src/ui/FineTuningView.d.ts +5 -0
- package/apps/app-training/src/ui/FineTuningView.d.ts.map +1 -0
- package/apps/app-training/src/ui/FineTuningView.js +391 -0
- package/apps/app-training/src/ui/fine-tuning-panels.d.ts +111 -0
- package/apps/app-training/src/ui/fine-tuning-panels.d.ts.map +1 -0
- package/apps/app-training/src/ui/fine-tuning-panels.js +130 -0
- package/apps/app-vincent/src/TradingProfileCard.d.ts +14 -0
- package/apps/app-vincent/src/TradingProfileCard.d.ts.map +1 -0
- package/apps/app-vincent/src/TradingProfileCard.js +22 -0
- package/apps/app-vincent/src/TradingStrategyPanel.d.ts +15 -0
- package/apps/app-vincent/src/TradingStrategyPanel.d.ts.map +1 -0
- package/apps/app-vincent/src/TradingStrategyPanel.js +62 -0
- package/apps/app-vincent/src/VaultStatusCard.d.ts +15 -0
- package/apps/app-vincent/src/VaultStatusCard.d.ts.map +1 -0
- package/apps/app-vincent/src/VaultStatusCard.js +83 -0
- package/apps/app-vincent/src/VincentAppView.d.ts +18 -0
- package/apps/app-vincent/src/VincentAppView.d.ts.map +1 -0
- package/apps/app-vincent/src/VincentAppView.js +37 -0
- package/apps/app-vincent/src/VincentConnectionCard.d.ts +15 -0
- package/apps/app-vincent/src/VincentConnectionCard.d.ts.map +1 -0
- package/apps/app-vincent/src/VincentConnectionCard.js +43 -0
- package/apps/app-vincent/src/client.d.ts +29 -0
- package/apps/app-vincent/src/client.d.ts.map +1 -0
- package/apps/app-vincent/src/client.js +29 -0
- package/apps/app-vincent/src/index.d.ts +12 -0
- package/apps/app-vincent/src/index.d.ts.map +1 -0
- package/apps/app-vincent/src/index.js +11 -0
- package/apps/app-vincent/src/useVincentDashboard.d.ts +39 -0
- package/apps/app-vincent/src/useVincentDashboard.d.ts.map +1 -0
- package/apps/app-vincent/src/useVincentDashboard.js +124 -0
- package/apps/app-vincent/src/useVincentState.d.ts +26 -0
- package/apps/app-vincent/src/useVincentState.d.ts.map +1 -0
- package/apps/app-vincent/src/useVincentState.js +125 -0
- package/apps/app-vincent/src/vincent-app.d.ts +11 -0
- package/apps/app-vincent/src/vincent-app.d.ts.map +1 -0
- package/apps/app-vincent/src/vincent-app.js +20 -0
- package/package.json +13 -6
- package/packages/agent/src/actions/check-balance.d.ts.map +1 -0
- package/packages/agent/src/actions/connector-resolver.d.ts +75 -0
- package/packages/agent/src/actions/connector-resolver.d.ts.map +1 -0
- package/packages/agent/src/actions/connector-resolver.js +245 -0
- package/packages/agent/src/actions/context-signal-lexicon.d.ts +1 -1
- package/packages/agent/src/actions/context-signal-lexicon.d.ts.map +1 -1
- package/packages/agent/src/actions/context-signal-lexicon.js +6 -0
- package/packages/agent/src/actions/eject-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/execute-trade.d.ts.map +1 -0
- package/packages/agent/src/actions/get-self-status.d.ts.map +1 -0
- package/packages/{app-core → agent}/src/actions/get-self-status.js +1 -2
- package/packages/agent/src/actions/install-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/life-recent-context.d.ts +1 -8
- package/packages/agent/src/actions/life-recent-context.d.ts.map +1 -1
- package/packages/agent/src/actions/life-recent-context.js +1 -84
- package/packages/agent/src/actions/list-ejected.d.ts.map +1 -0
- package/packages/agent/src/actions/log-level.d.ts.map +1 -0
- package/packages/agent/src/actions/manage-tasks.d.ts.map +1 -1
- package/packages/agent/src/actions/manage-tasks.js +51 -15
- package/packages/agent/src/actions/media.d.ts.map +1 -0
- package/packages/{app-core → agent}/src/actions/media.js +2 -2
- package/packages/agent/src/actions/reinject-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/send-message.d.ts +0 -7
- package/packages/agent/src/actions/send-message.d.ts.map +1 -1
- package/packages/agent/src/actions/send-message.js +170 -49
- package/packages/agent/src/actions/sync-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/transfer-token.d.ts.map +1 -0
- package/packages/agent/src/actions/wallet-action-shared.d.ts.map +1 -0
- package/packages/agent/src/api/agent-admin-routes.d.ts.map +1 -1
- package/packages/agent/src/api/agent-admin-routes.js +1 -1
- package/packages/agent/src/api/binance-skill-helpers.d.ts.map +1 -1
- package/packages/agent/src/api/binance-skill-helpers.js +8 -3
- package/packages/agent/src/api/chat-routes.d.ts.map +1 -1
- package/packages/agent/src/api/chat-routes.js +20 -5
- package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts +1 -22
- package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts.map +1 -1
- package/packages/agent/src/api/coding-agents-auth-sanitize.js +1 -39
- package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts +1 -28
- package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts.map +1 -1
- package/packages/agent/src/api/coding-agents-preflight-normalize.js +1 -45
- 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 +1 -1
- package/packages/agent/src/api/lifeops-browser-packaging.d.ts +1 -15
- package/packages/agent/src/api/lifeops-browser-packaging.d.ts.map +1 -1
- package/packages/agent/src/api/lifeops-browser-packaging.js +1 -305
- package/packages/agent/src/api/server.d.ts.map +1 -1
- package/packages/agent/src/api/server.js +6 -6
- package/packages/agent/src/api/task-agent-message-routing.d.ts +1 -9
- package/packages/agent/src/api/task-agent-message-routing.d.ts.map +1 -1
- package/packages/agent/src/api/task-agent-message-routing.js +1 -62
- package/packages/agent/src/api/website-blocker-routes.d.ts +1 -6
- package/packages/agent/src/api/website-blocker-routes.d.ts.map +1 -1
- package/packages/agent/src/api/website-blocker-routes.js +1 -174
- package/packages/agent/src/config/types.agent-defaults.d.ts +1 -1
- package/packages/agent/src/config/types.agent-defaults.d.ts.map +1 -1
- package/packages/agent/src/lifeops/defaults.d.ts +1 -23
- package/packages/agent/src/lifeops/defaults.d.ts.map +1 -1
- package/packages/agent/src/lifeops/defaults.js +1 -205
- package/packages/agent/src/lifeops/owner-profile.d.ts +1 -14
- package/packages/agent/src/lifeops/owner-profile.d.ts.map +1 -1
- package/packages/agent/src/lifeops/owner-profile.js +1 -194
- package/packages/agent/src/lifeops/repository.d.ts +1 -208
- package/packages/agent/src/lifeops/repository.d.ts.map +1 -1
- package/packages/agent/src/lifeops/repository.js +1 -3187
- package/packages/agent/src/lifeops/screen-context.d.ts +1 -51
- package/packages/agent/src/lifeops/screen-context.d.ts.map +1 -1
- package/packages/agent/src/lifeops/screen-context.js +1 -332
- package/packages/agent/src/lifeops/service.d.ts +1 -274
- package/packages/agent/src/lifeops/service.d.ts.map +1 -1
- package/packages/agent/src/lifeops/service.js +1 -9260
- package/packages/agent/src/lifeops/time.d.ts +1 -16
- package/packages/agent/src/lifeops/time.d.ts.map +1 -1
- package/packages/agent/src/lifeops/time.js +1 -132
- package/packages/agent/src/providers/media-provider.d.ts.map +1 -0
- package/packages/agent/src/providers/tasks.d.ts.map +1 -1
- package/packages/agent/src/providers/tasks.js +7 -7
- package/packages/agent/src/runtime/core-plugins.js +1 -1
- package/packages/agent/src/runtime/eliza-plugin.d.ts.map +1 -1
- package/packages/agent/src/runtime/eliza-plugin.js +1 -7
- package/packages/agent/src/runtime/eliza.js +2 -2
- package/packages/agent/src/runtime/plugin-collector.js +3 -3
- package/packages/agent/src/runtime/plugin-lifecycle.d.ts.map +1 -1
- package/packages/agent/src/runtime/plugin-lifecycle.js +3 -13
- package/packages/agent/src/runtime/trajectory-internals.d.ts.map +1 -1
- package/packages/agent/src/runtime/trajectory-internals.js +1 -3
- package/packages/agent/src/services/coding-task-executor.d.ts +3 -3
- package/packages/agent/src/services/coding-task-executor.js +3 -3
- package/packages/app-core/src/actions/index.d.ts +15 -10
- package/packages/app-core/src/actions/index.d.ts.map +1 -1
- package/packages/app-core/src/actions/index.js +15 -15
- package/packages/app-core/src/api/client-vincent.d.ts +1 -28
- package/packages/app-core/src/api/client-vincent.d.ts.map +1 -1
- package/packages/app-core/src/api/client-vincent.js +1 -29
- package/packages/app-core/src/api/client.d.ts +1 -1
- 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/dev-stack.d.ts.map +1 -1
- package/packages/app-core/src/api/dev-stack.js +3 -1
- package/packages/app-core/src/api/shopify-routes.d.ts +1 -17
- package/packages/app-core/src/api/shopify-routes.d.ts.map +1 -1
- package/packages/app-core/src/api/shopify-routes.js +2 -479
- package/packages/app-core/src/api/vincent-routes.d.ts +1 -25
- package/packages/app-core/src/api/vincent-routes.d.ts.map +1 -1
- package/packages/app-core/src/api/vincent-routes.js +2 -496
- package/packages/app-core/src/{actions/character.d.ts → character/character-draft-helpers.d.ts} +1 -1
- package/packages/app-core/src/character/character-draft-helpers.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/widgets/plugins/agent-orchestrator.d.ts +0 -3
- package/packages/app-core/src/components/chat/widgets/plugins/agent-orchestrator.d.ts.map +1 -1
- package/packages/app-core/src/components/chat/widgets/plugins/agent-orchestrator.js +7 -271
- package/packages/app-core/src/components/connectors/LifeOpsBrowserSetupPanel.d.ts +1 -1
- package/packages/app-core/src/components/connectors/LifeOpsBrowserSetupPanel.d.ts.map +1 -1
- package/packages/app-core/src/components/connectors/LifeOpsBrowserSetupPanel.js +1 -473
- package/packages/app-core/src/components/pages/ChatView.js +2 -2
- package/packages/app-core/src/components/pages/DatabaseView.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/DatabaseView.js +1 -1
- package/packages/app-core/src/components/pages/PluginsView.js +1 -1
- package/packages/app-core/src/components/pages/SettingsView.js +1 -1
- package/packages/app-core/src/components/pages/TasksPageView.d.ts.map +1 -1
- package/packages/app-core/src/components/pages/TasksPageView.js +1 -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 +17 -16
- package/packages/app-core/src/components/settings/FineTuningView.d.ts +1 -4
- package/packages/app-core/src/components/settings/FineTuningView.d.ts.map +1 -1
- package/packages/app-core/src/components/settings/FineTuningView.js +1 -391
- package/packages/app-core/src/components/settings/LifeOpsSettingsSection.d.ts +1 -1
- package/packages/app-core/src/components/settings/LifeOpsSettingsSection.d.ts.map +1 -1
- package/packages/app-core/src/components/settings/LifeOpsSettingsSection.js +1 -183
- package/packages/app-core/src/components/settings/WebsiteBlockerSettingsCard.d.ts +1 -10
- package/packages/app-core/src/components/settings/WebsiteBlockerSettingsCard.d.ts.map +1 -1
- package/packages/app-core/src/components/settings/WebsiteBlockerSettingsCard.js +1 -200
- package/packages/app-core/src/components/settings/fine-tuning-panels.d.ts +1 -111
- package/packages/app-core/src/components/settings/fine-tuning-panels.d.ts.map +1 -1
- package/packages/app-core/src/components/settings/fine-tuning-panels.js +1 -130
- package/packages/app-core/src/components/settings/media-settings-types.d.ts +2 -3
- package/packages/app-core/src/components/settings/media-settings-types.d.ts.map +1 -1
- package/packages/app-core/src/components/settings/media-settings-types.js +2 -6
- package/packages/app-core/src/config/index.d.ts +1 -0
- package/packages/app-core/src/config/index.d.ts.map +1 -1
- package/packages/app-core/src/config/index.js +1 -0
- package/packages/app-core/src/index.d.ts +1 -0
- package/packages/app-core/src/index.d.ts.map +1 -1
- package/packages/app-core/src/index.js +1 -0
- package/packages/app-core/src/runtime/channel-plugin-map.d.ts +6 -0
- package/packages/app-core/src/runtime/channel-plugin-map.d.ts.map +1 -0
- package/packages/app-core/src/runtime/channel-plugin-map.js +10 -0
- package/packages/app-core/src/shell/DetachedShellRoot.js +1 -1
- package/packages/app-core/src/state/AppContext.d.ts.map +1 -1
- package/packages/app-core/src/state/AppContext.js +20 -3
- package/packages/app-core/src/state/useCharacterState.js +1 -1
- package/packages/app-core/src/state/useVincentState.d.ts +1 -25
- package/packages/app-core/src/state/useVincentState.d.ts.map +1 -1
- package/packages/app-core/src/state/useVincentState.js +1 -125
- package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts +24 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts.map +1 -1
- package/packages/shared/src/i18n/generated/validation-keyword-data.js +24 -0
- package/packages/shared/src/runtime-env.d.ts.map +1 -1
- package/packages/shared/src/runtime-env.js +5 -1
- package/packages/typescript/src/generated/action-docs.d.ts +135 -0
- package/packages/typescript/src/generated/action-docs.d.ts.map +1 -1
- package/packages/typescript/src/generated/action-docs.js +237 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts +24 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts.map +1 -1
- package/packages/typescript/src/i18n/generated/validation-keyword-data.js +24 -0
- package/packages/typescript/src/index.node.d.ts +2 -2
- package/packages/typescript/src/index.node.d.ts.map +1 -1
- package/packages/typescript/src/index.node.js +4 -3
- package/packages/typescript/src/plugin-lifecycle.d.ts.map +1 -1
- package/packages/typescript/src/plugin-lifecycle.js +42 -3
- package/packages/typescript/src/services/message.d.ts.map +1 -1
- package/packages/typescript/src/services/message.js +32 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-content.d.ts.map +1 -1
- package/packages/ui/src/components/composites/sidebar/sidebar-content.js +11 -2
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.d.ts.map +1 -1
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.js +10 -1
- package/apps/app-coding/src/AgentTabsSection.d.ts.map +0 -1
- package/apps/app-coding/src/CodingAgentControlChip.d.ts.map +0 -1
- package/apps/app-coding/src/CodingAgentSettingsSection.d.ts.map +0 -1
- package/apps/app-coding/src/GlobalPrefsSection.d.ts.map +0 -1
- package/apps/app-coding/src/LlmProviderSection.d.ts.map +0 -1
- package/apps/app-coding/src/ModelConfigSection.d.ts.map +0 -1
- package/apps/app-coding/src/PtyConsoleBase.d.ts.map +0 -1
- package/apps/app-coding/src/PtyConsoleDrawer.d.ts.map +0 -1
- package/apps/app-coding/src/PtyConsoleSidePanel.d.ts.map +0 -1
- package/apps/app-coding/src/PtyTerminalPane.d.ts.map +0 -1
- package/apps/app-coding/src/coding-agent-settings-shared.d.ts.map +0 -1
- package/apps/app-coding/src/index.d.ts.map +0 -1
- package/apps/app-coding/src/pty-status-dots.d.ts.map +0 -1
- package/apps/app-coding/src/session-hydration.d.ts.map +0 -1
- package/packages/agent/src/actions/inbox.d.ts.map +0 -1
- package/packages/agent/src/actions/lifeops-google-helpers.d.ts +0 -62
- package/packages/agent/src/actions/lifeops-google-helpers.d.ts.map +0 -1
- package/packages/agent/src/actions/lifeops-google-helpers.js +0 -607
- package/packages/agent/src/actions/update-owner-profile.d.ts.map +0 -1
- package/packages/agent/src/api/coordinator-types.d.ts.map +0 -1
- package/packages/agent/src/api/coordinator-wiring.d.ts.map +0 -1
- package/packages/agent/src/inbox/channel-deep-links.d.ts.map +0 -1
- package/packages/agent/src/inbox/config.d.ts.map +0 -1
- package/packages/agent/src/inbox/message-fetcher.d.ts.map +0 -1
- package/packages/agent/src/inbox/reflection.d.ts.map +0 -1
- package/packages/agent/src/inbox/repository.d.ts.map +0 -1
- package/packages/agent/src/inbox/triage-classifier.d.ts.map +0 -1
- package/packages/agent/src/inbox/types.d.ts.map +0 -1
- package/packages/agent/src/lifeops/apple-reminders.d.ts +0 -58
- package/packages/agent/src/lifeops/apple-reminders.d.ts.map +0 -1
- package/packages/agent/src/lifeops/apple-reminders.js +0 -325
- package/packages/agent/src/lifeops/engine.d.ts +0 -8
- package/packages/agent/src/lifeops/engine.d.ts.map +0 -1
- package/packages/agent/src/lifeops/engine.js +0 -389
- package/packages/agent/src/lifeops/goal-grounding.d.ts +0 -54
- package/packages/agent/src/lifeops/goal-grounding.d.ts.map +0 -1
- package/packages/agent/src/lifeops/goal-grounding.js +0 -147
- package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts +0 -12
- package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts.map +0 -1
- package/packages/agent/src/lifeops/goal-semantic-evaluator.js +0 -154
- package/packages/agent/src/lifeops/google-api-error.d.ts +0 -7
- package/packages/agent/src/lifeops/google-api-error.d.ts.map +0 -1
- package/packages/agent/src/lifeops/google-api-error.js +0 -35
- package/packages/agent/src/lifeops/google-calendar.d.ts +0 -53
- package/packages/agent/src/lifeops/google-calendar.d.ts.map +0 -1
- package/packages/agent/src/lifeops/google-calendar.js +0 -268
- package/packages/agent/src/lifeops/google-connector-gateway.d.ts +0 -19
- package/packages/agent/src/lifeops/google-connector-gateway.d.ts.map +0 -1
- package/packages/agent/src/lifeops/google-connector-gateway.js +0 -65
- package/packages/agent/src/lifeops/google-fetch.d.ts +0 -11
- package/packages/agent/src/lifeops/google-fetch.d.ts.map +0 -1
- package/packages/agent/src/lifeops/google-fetch.js +0 -85
- package/packages/agent/src/lifeops/google-gmail.d.ts +0 -54
- package/packages/agent/src/lifeops/google-gmail.d.ts.map +0 -1
- package/packages/agent/src/lifeops/google-gmail.js +0 -471
- package/packages/agent/src/lifeops/google-managed-client.d.ts +0 -127
- package/packages/agent/src/lifeops/google-managed-client.d.ts.map +0 -1
- package/packages/agent/src/lifeops/google-managed-client.js +0 -294
- package/packages/agent/src/lifeops/google-oauth.d.ts +0 -61
- package/packages/agent/src/lifeops/google-oauth.d.ts.map +0 -1
- package/packages/agent/src/lifeops/google-oauth.js +0 -494
- package/packages/agent/src/lifeops/google-scopes.d.ts +0 -13
- package/packages/agent/src/lifeops/google-scopes.d.ts.map +0 -1
- package/packages/agent/src/lifeops/google-scopes.js +0 -96
- package/packages/agent/src/lifeops/runtime.d.ts +0 -14
- package/packages/agent/src/lifeops/runtime.d.ts.map +0 -1
- package/packages/agent/src/lifeops/runtime.js +0 -120
- package/packages/agent/src/lifeops/seed-routines.d.ts +0 -20
- package/packages/agent/src/lifeops/seed-routines.d.ts.map +0 -1
- package/packages/agent/src/lifeops/seed-routines.js +0 -111
- package/packages/agent/src/lifeops/sql.d.ts +0 -31
- package/packages/agent/src/lifeops/sql.d.ts.map +0 -1
- package/packages/agent/src/lifeops/sql.js +0 -247
- package/packages/agent/src/lifeops/twilio.d.ts +0 -25
- package/packages/agent/src/lifeops/twilio.d.ts.map +0 -1
- package/packages/agent/src/lifeops/twilio.js +0 -157
- package/packages/agent/src/lifeops/x-poster.d.ts +0 -19
- package/packages/agent/src/lifeops/x-poster.d.ts.map +0 -1
- package/packages/agent/src/lifeops/x-poster.js +0 -148
- package/packages/agent/src/providers/inbox-triage.d.ts.map +0 -1
- package/packages/agent/src/training/context-catalog.d.ts +0 -2
- package/packages/agent/src/training/context-catalog.d.ts.map +0 -1
- package/packages/agent/src/training/context-catalog.js +0 -2
- package/packages/agent/src/training/context-types.d.ts +0 -2
- package/packages/agent/src/training/context-types.d.ts.map +0 -1
- package/packages/agent/src/training/context-types.js +0 -2
- package/packages/app-core/src/actions/character.d.ts.map +0 -1
- package/packages/app-core/src/actions/check-balance.d.ts.map +0 -1
- package/packages/app-core/src/actions/eject-plugin.d.ts.map +0 -1
- package/packages/app-core/src/actions/execute-trade.d.ts.map +0 -1
- package/packages/app-core/src/actions/get-self-status.d.ts.map +0 -1
- package/packages/app-core/src/actions/install-plugin.d.ts.map +0 -1
- package/packages/app-core/src/actions/list-ejected.d.ts.map +0 -1
- package/packages/app-core/src/actions/log-level.d.ts.map +0 -1
- package/packages/app-core/src/actions/media.d.ts.map +0 -1
- package/packages/app-core/src/actions/reinject-plugin.d.ts.map +0 -1
- package/packages/app-core/src/actions/sync-plugin.d.ts.map +0 -1
- package/packages/app-core/src/actions/transfer-token.d.ts.map +0 -1
- package/packages/app-core/src/actions/wallet-action-shared.d.ts.map +0 -1
- package/packages/app-core/src/providers/local-models.d.ts +0 -118
- package/packages/app-core/src/providers/local-models.d.ts.map +0 -1
- package/packages/app-core/src/providers/local-models.js +0 -427
- package/packages/app-core/src/providers/media-provider.d.ts.map +0 -1
- package/packages/app-core/src/providers/self-status.d.ts +0 -4
- package/packages/app-core/src/providers/self-status.d.ts.map +0 -1
- package/packages/app-core/src/providers/self-status.js +0 -12
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.d.ts +0 -41
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.js +0 -443
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.d.ts +0 -34
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.js +0 -171
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.js +0 -55
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.js +0 -214
- package/packages/typescript/src/features/orchestrator/actions/list-agents.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/actions/list-agents.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/list-agents.js +0 -174
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.js +0 -428
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.js +0 -189
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.js +0 -265
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.js +0 -356
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.js +0 -270
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.js +0 -192
- package/packages/typescript/src/features/orchestrator/actions/task-control.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-control.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-control.js +0 -217
- package/packages/typescript/src/features/orchestrator/actions/task-history.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-history.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-history.js +0 -323
- package/packages/typescript/src/features/orchestrator/actions/task-share.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-share.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-share.js +0 -168
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.js +0 -68
- package/packages/typescript/src/features/orchestrator/api/agent-routes.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/api/agent-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/agent-routes.js +0 -654
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.js +0 -403
- package/packages/typescript/src/features/orchestrator/api/hook-routes.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/api/hook-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/hook-routes.js +0 -164
- package/packages/typescript/src/features/orchestrator/api/issue-routes.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/api/issue-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/issue-routes.js +0 -132
- package/packages/typescript/src/features/orchestrator/api/routes.d.ts +0 -37
- package/packages/typescript/src/features/orchestrator/api/routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/routes.js +0 -96
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.js +0 -149
- package/packages/typescript/src/features/orchestrator/base-plugin.d.ts +0 -19
- package/packages/typescript/src/features/orchestrator/base-plugin.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/base-plugin.js +0 -75
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.d.ts +0 -101
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.js +0 -310
- package/packages/typescript/src/features/orchestrator/index.d.ts +0 -33
- package/packages/typescript/src/features/orchestrator/index.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/index.js +0 -30
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.d.ts +0 -15
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.js +0 -1449
- package/packages/typescript/src/features/orchestrator/providers/action-examples.d.ts +0 -14
- package/packages/typescript/src/features/orchestrator/providers/action-examples.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/providers/action-examples.js +0 -151
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.js +0 -142
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.d.ts +0 -6
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.js +0 -91
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.d.ts +0 -30
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.js +0 -54
- package/packages/typescript/src/features/orchestrator/services/agent-selection.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/agent-selection.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-selection.js +0 -70
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.d.ts +0 -61
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.js +0 -252
- package/packages/typescript/src/features/orchestrator/services/config-env.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/services/config-env.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/config-env.js +0 -37
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts +0 -50
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.js +0 -184
- package/packages/typescript/src/features/orchestrator/services/debug-capture.d.ts +0 -38
- package/packages/typescript/src/features/orchestrator/services/debug-capture.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/debug-capture.js +0 -113
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.d.ts +0 -30
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.js +0 -146
- package/packages/typescript/src/features/orchestrator/services/pty-init.d.ts +0 -54
- package/packages/typescript/src/features/orchestrator/services/pty-init.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-init.js +0 -315
- package/packages/typescript/src/features/orchestrator/services/pty-service.d.ts +0 -175
- package/packages/typescript/src/features/orchestrator/services/pty-service.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-service.js +0 -1469
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.d.ts +0 -49
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.js +0 -180
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.js +0 -280
- package/packages/typescript/src/features/orchestrator/services/pty-types.d.ts +0 -80
- package/packages/typescript/src/features/orchestrator/services/pty-types.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-types.js +0 -51
- package/packages/typescript/src/features/orchestrator/services/repo-input.d.ts +0 -16
- package/packages/typescript/src/features/orchestrator/services/repo-input.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/repo-input.js +0 -88
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.d.ts +0 -69
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.js +0 -446
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.d.ts +0 -97
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.js +0 -342
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.d.ts +0 -421
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.js +0 -2356
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.d.ts +0 -52
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.js +0 -1538
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.d.ts +0 -49
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.js +0 -171
- package/packages/typescript/src/features/orchestrator/services/swarm-history.d.ts +0 -27
- package/packages/typescript/src/features/orchestrator/services/swarm-history.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-history.js +0 -148
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.js +0 -265
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.d.ts +0 -8
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.js +0 -114
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.d.ts +0 -68
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.js +0 -559
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.d.ts +0 -82
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.js +0 -738
- package/packages/typescript/src/features/orchestrator/services/task-kind.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/services/task-kind.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-kind.js +0 -40
- package/packages/typescript/src/features/orchestrator/services/task-policy.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/services/task-policy.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-policy.js +0 -226
- package/packages/typescript/src/features/orchestrator/services/task-registry.d.ts +0 -550
- package/packages/typescript/src/features/orchestrator/services/task-registry.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-registry.js +0 -2182
- package/packages/typescript/src/features/orchestrator/services/task-share.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/services/task-share.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-share.js +0 -159
- package/packages/typescript/src/features/orchestrator/services/task-validation.d.ts +0 -69
- package/packages/typescript/src/features/orchestrator/services/task-validation.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-validation.js +0 -587
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.d.ts +0 -5
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.js +0 -372
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.d.ts +0 -73
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.js +0 -64
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.js +0 -260
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.d.ts +0 -28
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.js +0 -105
- package/packages/typescript/src/features/orchestrator/services/workspace-github.d.ts +0 -58
- package/packages/typescript/src/features/orchestrator/services/workspace-github.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-github.js +0 -139
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.js +0 -86
- package/packages/typescript/src/features/orchestrator/services/workspace-service.d.ts +0 -118
- package/packages/typescript/src/features/orchestrator/services/workspace-service.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-service.js +0 -533
- package/packages/typescript/src/features/orchestrator/services/workspace-types.d.ts +0 -81
- package/packages/typescript/src/features/orchestrator/services/workspace-types.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-types.js +0 -8
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.d.ts +0 -38
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.js +0 -293
- /package/{packages/agent → apps/app-lifeops}/src/actions/inbox.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/actions/update-owner-profile.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/channel-deep-links.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/channel-deep-links.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/config.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/message-fetcher.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/message-fetcher.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/reflection.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/reflection.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/repository.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/repository.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/triage-classifier.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/triage-classifier.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/types.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/types.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/providers/inbox-triage.d.ts +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/AgentTabsSection.d.ts +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/AgentTabsSection.js +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/CodingAgentControlChip.d.ts +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/CodingAgentControlChip.js +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/CodingAgentSettingsSection.d.ts +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/CodingAgentSettingsSection.js +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/GlobalPrefsSection.d.ts +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/GlobalPrefsSection.js +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/LlmProviderSection.d.ts +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/LlmProviderSection.js +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/ModelConfigSection.d.ts +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/ModelConfigSection.js +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/PtyConsoleBase.d.ts +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/PtyConsoleBase.js +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/PtyConsoleDrawer.d.ts +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/PtyConsoleDrawer.js +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/PtyConsoleSidePanel.d.ts +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/PtyConsoleSidePanel.js +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/PtyTerminalPane.d.ts +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/PtyTerminalPane.js +0 -0
- /package/{packages/agent → apps/app-task-coordinator}/src/api/coordinator-types.d.ts +0 -0
- /package/{packages/agent → apps/app-task-coordinator}/src/api/coordinator-types.js +0 -0
- /package/{packages/agent → apps/app-task-coordinator}/src/api/coordinator-wiring.d.ts +0 -0
- /package/{packages/agent → apps/app-task-coordinator}/src/api/coordinator-wiring.js +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/coding-agent-settings-shared.d.ts +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/coding-agent-settings-shared.js +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/pty-status-dots.d.ts +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/pty-status-dots.js +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/session-hydration.d.ts +0 -0
- /package/apps/{app-coding → app-task-coordinator}/src/session-hydration.js +0 -0
- /package/packages/{app-core → agent}/src/actions/check-balance.d.ts +0 -0
- /package/packages/{app-core → agent}/src/actions/check-balance.js +0 -0
- /package/packages/{app-core → agent}/src/actions/eject-plugin.d.ts +0 -0
- /package/packages/{app-core → agent}/src/actions/eject-plugin.js +0 -0
- /package/packages/{app-core → agent}/src/actions/execute-trade.d.ts +0 -0
- /package/packages/{app-core → agent}/src/actions/execute-trade.js +0 -0
- /package/packages/{app-core → agent}/src/actions/get-self-status.d.ts +0 -0
- /package/packages/{app-core → agent}/src/actions/install-plugin.d.ts +0 -0
- /package/packages/{app-core → agent}/src/actions/install-plugin.js +0 -0
- /package/packages/{app-core → agent}/src/actions/list-ejected.d.ts +0 -0
- /package/packages/{app-core → agent}/src/actions/list-ejected.js +0 -0
- /package/packages/{app-core → agent}/src/actions/log-level.d.ts +0 -0
- /package/packages/{app-core → agent}/src/actions/log-level.js +0 -0
- /package/packages/{app-core → agent}/src/actions/media.d.ts +0 -0
- /package/packages/{app-core → agent}/src/actions/reinject-plugin.d.ts +0 -0
- /package/packages/{app-core → agent}/src/actions/reinject-plugin.js +0 -0
- /package/packages/{app-core → agent}/src/actions/sync-plugin.d.ts +0 -0
- /package/packages/{app-core → agent}/src/actions/sync-plugin.js +0 -0
- /package/packages/{app-core → agent}/src/actions/transfer-token.d.ts +0 -0
- /package/packages/{app-core → agent}/src/actions/transfer-token.js +0 -0
- /package/packages/{app-core → agent}/src/actions/wallet-action-shared.d.ts +0 -0
- /package/packages/{app-core → agent}/src/actions/wallet-action-shared.js +0 -0
- /package/packages/{app-core → agent}/src/providers/media-provider.d.ts +0 -0
- /package/packages/{app-core → agent}/src/providers/media-provider.js +0 -0
- /package/packages/app-core/src/{actions/character.js → character/character-draft-helpers.js} +0 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Badge, Button } from "@elizaos/app-core";
|
|
3
|
+
import { ExternalLink } from "lucide-react";
|
|
4
|
+
function isRecord(value) {
|
|
5
|
+
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
6
|
+
}
|
|
7
|
+
function formatDateTime(value) {
|
|
8
|
+
if (!value) {
|
|
9
|
+
return "—";
|
|
10
|
+
}
|
|
11
|
+
const parsed = Date.parse(value);
|
|
12
|
+
if (!Number.isFinite(parsed)) {
|
|
13
|
+
return value;
|
|
14
|
+
}
|
|
15
|
+
return new Intl.DateTimeFormat(undefined, {
|
|
16
|
+
month: "short",
|
|
17
|
+
day: "numeric",
|
|
18
|
+
hour: "numeric",
|
|
19
|
+
minute: "2-digit",
|
|
20
|
+
}).format(new Date(parsed));
|
|
21
|
+
}
|
|
22
|
+
function humanize(value) {
|
|
23
|
+
return value
|
|
24
|
+
.replace(/_/g, " ")
|
|
25
|
+
.replace(/\b\w/g, (match) => match.toUpperCase());
|
|
26
|
+
}
|
|
27
|
+
function cadenceLabel(cadence) {
|
|
28
|
+
switch (cadence.kind) {
|
|
29
|
+
case "once":
|
|
30
|
+
return "One-off";
|
|
31
|
+
case "daily":
|
|
32
|
+
return cadence.windows.length > 0 ? "Daily" : "Every day";
|
|
33
|
+
case "times_per_day":
|
|
34
|
+
return cadence.slots.length <= 1
|
|
35
|
+
? "Daily"
|
|
36
|
+
: `${cadence.slots.length}x daily`;
|
|
37
|
+
case "interval":
|
|
38
|
+
return cadence.everyMinutes >= 60 && cadence.everyMinutes % 60 === 0
|
|
39
|
+
? `Every ${cadence.everyMinutes / 60}h`
|
|
40
|
+
: `Every ${cadence.everyMinutes}m`;
|
|
41
|
+
case "weekly":
|
|
42
|
+
return cadence.weekdays.length > 0 ? "Weekly" : "As needed";
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export function occurrenceSortValue(occurrence) {
|
|
46
|
+
const candidates = [
|
|
47
|
+
occurrence.dueAt,
|
|
48
|
+
occurrence.snoozedUntil,
|
|
49
|
+
occurrence.scheduledAt,
|
|
50
|
+
occurrence.relevanceStartAt,
|
|
51
|
+
];
|
|
52
|
+
for (const candidate of candidates) {
|
|
53
|
+
if (!candidate) {
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
const parsed = Date.parse(candidate);
|
|
57
|
+
if (Number.isFinite(parsed)) {
|
|
58
|
+
return parsed;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return Number.MAX_SAFE_INTEGER;
|
|
62
|
+
}
|
|
63
|
+
function occurrenceWindowLabel(occurrence) {
|
|
64
|
+
if (occurrence.snoozedUntil) {
|
|
65
|
+
return `Snoozed until ${formatDateTime(occurrence.snoozedUntil)}`;
|
|
66
|
+
}
|
|
67
|
+
if (occurrence.dueAt) {
|
|
68
|
+
return `Due ${formatDateTime(occurrence.dueAt)}`;
|
|
69
|
+
}
|
|
70
|
+
if (occurrence.scheduledAt) {
|
|
71
|
+
return `Scheduled ${formatDateTime(occurrence.scheduledAt)}`;
|
|
72
|
+
}
|
|
73
|
+
return `Visible ${formatDateTime(occurrence.relevanceStartAt)}`;
|
|
74
|
+
}
|
|
75
|
+
function githubIdentityLabel(connection) {
|
|
76
|
+
const displayName = typeof connection.displayName === "string" &&
|
|
77
|
+
connection.displayName.trim().length > 0
|
|
78
|
+
? connection.displayName.trim()
|
|
79
|
+
: null;
|
|
80
|
+
const username = typeof connection.username === "string" &&
|
|
81
|
+
connection.username.trim().length > 0
|
|
82
|
+
? `@${connection.username.trim()}`
|
|
83
|
+
: null;
|
|
84
|
+
const email = typeof connection.email === "string" && connection.email.trim().length > 0
|
|
85
|
+
? connection.email.trim()
|
|
86
|
+
: null;
|
|
87
|
+
return displayName ?? username ?? email ?? "No account linked";
|
|
88
|
+
}
|
|
89
|
+
function githubOwnerActionLabel(connection) {
|
|
90
|
+
return connection.username?.trim()
|
|
91
|
+
? `@${connection.username.trim()}`
|
|
92
|
+
: githubIdentityLabel(connection);
|
|
93
|
+
}
|
|
94
|
+
function githubBindingModeLabel(mode) {
|
|
95
|
+
switch (mode) {
|
|
96
|
+
case "cloud-managed":
|
|
97
|
+
return "Agent account";
|
|
98
|
+
case "shared-owner":
|
|
99
|
+
return "Shared LifeOps account";
|
|
100
|
+
default:
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function githubBindingSourceLabel(source) {
|
|
105
|
+
switch (source) {
|
|
106
|
+
case "platform_credentials":
|
|
107
|
+
return "Eliza Cloud OAuth";
|
|
108
|
+
case "secrets":
|
|
109
|
+
return "Cloud secret";
|
|
110
|
+
default:
|
|
111
|
+
return null;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
export function SectionSurface({ title, icon, subtitle, children, }) {
|
|
115
|
+
return (_jsxs("div", { className: "rounded-3xl border border-border/45 bg-card/78 p-4 backdrop-blur-sm", children: [_jsxs("div", { className: "flex items-start gap-3", children: [_jsx("div", { className: "rounded-2xl border border-border/45 bg-bg/70 p-2 text-muted", children: icon }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("div", { className: "text-sm font-semibold text-txt", children: title }), _jsx("div", { className: "mt-1 text-xs leading-5 text-muted", children: subtitle })] })] }), _jsx("div", { className: "mt-4 space-y-3", children: children })] }));
|
|
116
|
+
}
|
|
117
|
+
export function SummaryMetric({ label, value, detail, }) {
|
|
118
|
+
return (_jsxs("div", { className: "rounded-2xl border border-border/40 bg-bg/72 p-4", children: [_jsx("div", { className: "text-2xs font-semibold uppercase tracking-[0.12em] text-muted", children: label }), _jsx("div", { className: "mt-2 text-lg font-semibold text-txt", children: value }), _jsx("div", { className: "mt-1 text-xs-tight text-muted", children: detail })] }));
|
|
119
|
+
}
|
|
120
|
+
export function OccurrenceList({ occurrences, }) {
|
|
121
|
+
if (occurrences.length === 0) {
|
|
122
|
+
return (_jsx("div", { className: "rounded-2xl border border-dashed border-border/45 bg-bg/55 p-4 text-xs text-muted", children: "No active items." }));
|
|
123
|
+
}
|
|
124
|
+
return (_jsx(_Fragment, { children: occurrences.map((occurrence) => (_jsxs("div", { className: "rounded-2xl border border-border/40 bg-bg/60 p-3", children: [_jsxs("div", { className: "flex items-start gap-2", children: [_jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("div", { className: "truncate text-sm font-semibold text-txt", children: occurrence.title }), _jsx("div", { className: "mt-1 text-xs leading-5 text-muted", children: occurrenceWindowLabel(occurrence) })] }), _jsx(Badge, { variant: "secondary", className: "text-2xs", children: humanize(occurrence.state) })] }), _jsxs("div", { className: "mt-2 flex flex-wrap gap-2 text-xs-tight text-muted", children: [_jsx("span", { children: cadenceLabel(occurrence.cadence) }), _jsxs("span", { children: ["Priority ", occurrence.priority] }), _jsx("span", { children: humanize(occurrence.domain) })] }), occurrence.description.trim().length > 0 ? (_jsx("div", { className: "mt-2 text-xs leading-5 text-muted", children: occurrence.description })) : null] }, occurrence.id))) }));
|
|
125
|
+
}
|
|
126
|
+
export function GoalList({ goals }) {
|
|
127
|
+
if (goals.length === 0) {
|
|
128
|
+
return (_jsx("div", { className: "rounded-2xl border border-dashed border-border/45 bg-bg/55 p-4 text-xs text-muted", children: "No active goals." }));
|
|
129
|
+
}
|
|
130
|
+
return (_jsx(_Fragment, { children: goals.map((goal) => {
|
|
131
|
+
const goalMetadata = isRecord(goal.metadata) ? goal.metadata : null;
|
|
132
|
+
const grounding = goalMetadata && isRecord(goalMetadata.goalGrounding)
|
|
133
|
+
? goalMetadata.goalGrounding
|
|
134
|
+
: null;
|
|
135
|
+
const groundingSummary = grounding && typeof grounding.summary === "string"
|
|
136
|
+
? grounding.summary
|
|
137
|
+
: null;
|
|
138
|
+
const goalDescription = goal.description.trim() || groundingSummary;
|
|
139
|
+
return (_jsxs("div", { className: "rounded-2xl border border-border/40 bg-bg/60 p-3", children: [_jsxs("div", { className: "flex items-start gap-2", children: [_jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("div", { className: "truncate text-sm font-semibold text-txt", children: goal.title }), _jsx("div", { className: "mt-1 text-xs leading-5 text-muted", children: goalDescription || "No goal detail yet." })] }), _jsx(Badge, { variant: "secondary", className: "text-2xs", children: humanize(goal.reviewState) })] }), _jsxs("div", { className: "mt-2 flex flex-wrap gap-2 text-xs-tight text-muted", children: [_jsx("span", { children: humanize(goal.status) }), _jsx("span", { children: humanize(goal.domain) }), _jsxs("span", { children: ["Updated ", formatDateTime(goal.updatedAt)] })] })] }, goal.id));
|
|
140
|
+
}) }));
|
|
141
|
+
}
|
|
142
|
+
export function ReminderList({ reminders, }) {
|
|
143
|
+
if (reminders.length === 0) {
|
|
144
|
+
return (_jsx("div", { className: "rounded-2xl border border-dashed border-border/45 bg-bg/55 p-4 text-xs text-muted", children: "No live reminders." }));
|
|
145
|
+
}
|
|
146
|
+
return (_jsx(_Fragment, { children: reminders.map((reminder) => (_jsxs("div", { className: "rounded-2xl border border-border/40 bg-bg/60 p-3", children: [_jsxs("div", { className: "flex items-start gap-2", children: [_jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("div", { className: "truncate text-sm font-semibold text-txt", children: reminder.title }), _jsxs("div", { className: "mt-1 text-xs leading-5 text-muted", children: [reminder.stepLabel, " via ", humanize(reminder.channel)] })] }), _jsx(Badge, { variant: "outline", className: "text-2xs", children: humanize(reminder.state) })] }), _jsxs("div", { className: "mt-2 flex flex-wrap gap-2 text-xs-tight text-muted", children: [_jsxs("span", { children: ["Scheduled ", formatDateTime(reminder.scheduledFor)] }), reminder.dueAt ? (_jsxs("span", { children: ["Due ", formatDateTime(reminder.dueAt)] })) : null] })] }, reminder.ownerId + reminder.stepIndex))) }));
|
|
147
|
+
}
|
|
148
|
+
export function OwnerGithubConnectionCard({ connection, busy, onDisconnect, }) {
|
|
149
|
+
return (_jsxs("div", { className: "rounded-2xl border border-border/40 bg-bg/60 p-4", children: [_jsxs("div", { className: "flex items-start justify-between gap-3", children: [_jsxs("div", { className: "min-w-0", children: [_jsx("div", { className: "truncate text-sm font-semibold text-txt", children: githubIdentityLabel(connection) }), _jsx("div", { className: "mt-1 text-xs text-muted", children: connection.username
|
|
150
|
+
? `@${connection.username}`
|
|
151
|
+
: (connection.email ?? "GitHub") })] }), _jsx(Badge, { variant: connection.status === "active" ? "secondary" : "outline", className: "text-2xs", children: humanize(connection.status) })] }), _jsxs("div", { className: "mt-3 flex flex-wrap gap-2 text-xs-tight text-muted", children: [_jsxs("span", { children: ["Linked ", formatDateTime(connection.linkedAt)] }), _jsxs("span", { children: [connection.scopes.length, " scopes"] }), connection.connectionRole ? (_jsx("span", { children: humanize(connection.connectionRole) })) : null] }), connection.scopes.length > 0 ? (_jsxs("div", { className: "mt-3 flex flex-wrap gap-1.5", children: [connection.scopes.slice(0, 4).map((scope) => (_jsx(Badge, { variant: "outline", className: "text-2xs", children: scope }, scope))), connection.scopes.length > 4 ? (_jsxs(Badge, { variant: "outline", className: "text-2xs", children: ["+", connection.scopes.length - 4, " more"] })) : null] })) : null, _jsx("div", { className: "mt-3", children: _jsx(Button, { variant: "outline", size: "sm", className: "rounded-full px-4 text-xs-tight font-semibold", disabled: busy, onClick: () => onDisconnect(connection.id), children: "Disconnect" }) })] }));
|
|
152
|
+
}
|
|
153
|
+
export function AgentGithubCard({ entry, ownerConnections, busyAgentId, onConnect, onDisconnect, onUseOwnerConnection, }) {
|
|
154
|
+
const { agent, github } = entry;
|
|
155
|
+
const busy = busyAgentId === agent.agent_id;
|
|
156
|
+
const connected = github?.connected === true;
|
|
157
|
+
const bindingModeLabel = githubBindingModeLabel(github?.mode);
|
|
158
|
+
const sourceLabel = githubBindingSourceLabel(github?.source);
|
|
159
|
+
return (_jsxs("div", { className: "rounded-2xl border border-border/40 bg-bg/60 p-4", children: [_jsxs("div", { className: "flex items-start justify-between gap-3", children: [_jsxs("div", { className: "min-w-0", children: [_jsx("div", { className: "truncate text-sm font-semibold text-txt", children: agent.agent_name }), _jsx("div", { className: "mt-1 text-xs text-muted", children: connected
|
|
160
|
+
? githubIdentityLabel({
|
|
161
|
+
displayName: github?.githubDisplayName,
|
|
162
|
+
username: github?.githubUsername,
|
|
163
|
+
email: github?.githubEmail,
|
|
164
|
+
})
|
|
165
|
+
: "No agent GitHub account linked" })] }), _jsx(Badge, { variant: connected ? "secondary" : "outline", className: "text-2xs", children: connected ? "Connected" : "Not connected" })] }), _jsxs("div", { className: "mt-3 flex flex-wrap gap-2 text-xs-tight text-muted", children: [_jsxs("span", { children: ["Agent ", humanize(agent.status)] }), github?.connectedAt ? (_jsxs("span", { children: ["Linked ", formatDateTime(github.connectedAt)] })) : null, bindingModeLabel ? _jsx("span", { children: bindingModeLabel }) : null, sourceLabel ? _jsx("span", { children: sourceLabel }) : null] }), github?.scopes?.length ? (_jsxs("div", { className: "mt-3 flex flex-wrap gap-1.5", children: [github.scopes.slice(0, 4).map((scope) => (_jsx(Badge, { variant: "outline", className: "text-2xs", children: scope }, scope))), github.scopes.length > 4 ? (_jsxs(Badge, { variant: "outline", className: "text-2xs", children: ["+", github.scopes.length - 4, " more"] })) : null] })) : null, _jsxs("div", { className: "mt-4 flex flex-wrap gap-2", children: [_jsxs(Button, { variant: "default", size: "sm", className: "rounded-full px-4 text-xs-tight font-semibold", disabled: busy || github?.configured === false, onClick: () => onConnect(agent.agent_id), children: [_jsx(ExternalLink, { className: "mr-2 h-3.5 w-3.5" }), connected ? "Reconnect agent GitHub" : "Connect agent GitHub"] }), connected ? (_jsx(Button, { variant: "outline", size: "sm", className: "rounded-full px-4 text-xs-tight font-semibold", disabled: busy, onClick: () => onDisconnect(agent.agent_id), children: "Disconnect" })) : null] }), ownerConnections.length > 0 ? (_jsxs("div", { className: "mt-4 rounded-2xl border border-border/35 bg-card/70 p-3", children: [_jsx("div", { className: "text-xs-tight font-semibold text-txt", children: "Use LifeOps GitHub" }), _jsx("div", { className: "mt-1 text-xs-tight leading-5 text-muted", children: "Link this agent to one of the owner\u2019s LifeOps GitHub connections through Eliza Cloud. Disconnecting the agent later leaves the owner connection intact." }), _jsx("div", { className: "mt-3 flex flex-wrap gap-2", children: ownerConnections.map((connection) => {
|
|
166
|
+
const alreadySelected = github?.mode === "shared-owner" &&
|
|
167
|
+
github.connectionId === connection.id;
|
|
168
|
+
return (_jsxs(Button, { variant: "outline", size: "sm", className: "rounded-full px-4 text-xs-tight font-semibold", disabled: busy || alreadySelected, onClick: () => onUseOwnerConnection(agent.agent_id, connection.id), children: [alreadySelected ? "Using" : "Use", " ", githubOwnerActionLabel(connection)] }, connection.id));
|
|
169
|
+
}) })] })) : null, _jsx("div", { className: "mt-3 text-xs-tight leading-5 text-muted", children: "This account is bound to the cloud agent for coding, pull requests, and repo context. Repo access still depends on the GitHub account or app installation behind it." })] }));
|
|
170
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LifeOpsPageView.d.ts","sourceRoot":"","sources":["../../../../../../apps/app-lifeops/src/LifeOpsPageView.tsx"],"names":[],"mappings":"AA4GA,wBAAgB,eAAe,4CAwsB9B"}
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Button, PagePanel } from "@elizaos/app-core";
|
|
3
|
+
import { BellRing, Bot, ExternalLink, Github, ListTodo, RefreshCw, Shield, Target, } from "lucide-react";
|
|
4
|
+
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
5
|
+
import { client } from "@elizaos/app-core";
|
|
6
|
+
import { LIFEOPS_GITHUB_CALLBACK_EVENT, } from "@elizaos/app-core";
|
|
7
|
+
import { consumeQueuedLifeOpsGithubCallback, dispatchLifeOpsGithubCallbackFromWindowMessage, drainLifeOpsGithubCallbacks, isWebPlatform, } from "@elizaos/app-core";
|
|
8
|
+
import { useLifeOpsAppState } from "@elizaos/app-core";
|
|
9
|
+
import { useApp } from "@elizaos/app-core";
|
|
10
|
+
import { openExternalUrl } from "@elizaos/app-core";
|
|
11
|
+
import { AgentGithubCard, GoalList, OccurrenceList, occurrenceSortValue, OwnerGithubConnectionCard, ReminderList, SectionSurface, SummaryMetric, } from "./LifeOpsPageSections";
|
|
12
|
+
import { LifeOpsSettingsSection } from "./LifeOpsSettingsSection";
|
|
13
|
+
import { LifeOpsWorkspaceView } from "./LifeOpsWorkspaceView";
|
|
14
|
+
const LIFEOPS_GITHUB_COMPLETE_PATH = "/api/v1/app/lifeops/github-complete";
|
|
15
|
+
const LIFEOPS_GITHUB_RETURN_URL = "elizaos://lifeops";
|
|
16
|
+
function buildOwnerGithubRedirectUrl() {
|
|
17
|
+
const params = new URLSearchParams();
|
|
18
|
+
if (isWebPlatform()) {
|
|
19
|
+
params.set("post_message", "1");
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
params.set("return_url", LIFEOPS_GITHUB_RETURN_URL);
|
|
23
|
+
}
|
|
24
|
+
return `${LIFEOPS_GITHUB_COMPLETE_PATH}?${params.toString()}`;
|
|
25
|
+
}
|
|
26
|
+
function openWebOauthPopup() {
|
|
27
|
+
if (!isWebPlatform() ||
|
|
28
|
+
typeof window === "undefined" ||
|
|
29
|
+
typeof window.open !== "function") {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return window.open("", "elizaos-lifeops-github");
|
|
33
|
+
}
|
|
34
|
+
function describeGithubCallback(detail) {
|
|
35
|
+
if (detail.status === "error") {
|
|
36
|
+
return {
|
|
37
|
+
message: detail.message?.trim() || "GitHub setup did not complete.",
|
|
38
|
+
tone: "error",
|
|
39
|
+
durationMs: 5000,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
if (detail.target === "owner") {
|
|
43
|
+
return {
|
|
44
|
+
message: "LifeOps GitHub connected through Eliza Cloud.",
|
|
45
|
+
tone: "success",
|
|
46
|
+
durationMs: 3600,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
if (detail.bindingMode === "shared-owner") {
|
|
50
|
+
return {
|
|
51
|
+
message: detail.restarted
|
|
52
|
+
? "Agent is using the LifeOps GitHub account and the cloud runtime is restarting."
|
|
53
|
+
: "Agent is using the LifeOps GitHub account.",
|
|
54
|
+
tone: "success",
|
|
55
|
+
durationMs: 4200,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
const githubHandle = detail.githubUsername?.trim()
|
|
59
|
+
? ` @${detail.githubUsername.trim()}`
|
|
60
|
+
: "";
|
|
61
|
+
return {
|
|
62
|
+
message: detail.restarted
|
|
63
|
+
? `Agent GitHub${githubHandle} connected and the cloud runtime is restarting.`
|
|
64
|
+
: `Agent GitHub${githubHandle} connected.`,
|
|
65
|
+
tone: "success",
|
|
66
|
+
durationMs: 4200,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export function LifeOpsPageView() {
|
|
70
|
+
const lifeOpsApp = useLifeOpsAppState();
|
|
71
|
+
const { agentStatus, backendConnection, elizaCloudConnected, setActionNotice, setState, setTab, startupCoordinator, } = useApp();
|
|
72
|
+
const [overview, setOverview] = useState(null);
|
|
73
|
+
const [overviewLoading, setOverviewLoading] = useState(false);
|
|
74
|
+
const [overviewError, setOverviewError] = useState(null);
|
|
75
|
+
const [ownerGithubConnections, setOwnerGithubConnections] = useState([]);
|
|
76
|
+
const [agentGithubEntries, setAgentGithubEntries] = useState([]);
|
|
77
|
+
const [githubLoading, setGithubLoading] = useState(false);
|
|
78
|
+
const [githubError, setGithubError] = useState(null);
|
|
79
|
+
const [ownerGithubBusy, setOwnerGithubBusy] = useState(false);
|
|
80
|
+
const [disconnectingOwnerConnectionId, setDisconnectingOwnerConnectionId] = useState(null);
|
|
81
|
+
const [busyAgentGithubId, setBusyAgentGithubId] = useState(null);
|
|
82
|
+
const appEnabled = lifeOpsApp.enabled;
|
|
83
|
+
const runtimeReady = startupCoordinator.phase === "ready" &&
|
|
84
|
+
agentStatus?.state === "running" &&
|
|
85
|
+
backendConnection?.state === "connected";
|
|
86
|
+
const loadOverview = useCallback(async () => {
|
|
87
|
+
if (!appEnabled) {
|
|
88
|
+
setOverview(null);
|
|
89
|
+
setOverviewError(null);
|
|
90
|
+
setOverviewLoading(false);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
if (!runtimeReady) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
setOverviewLoading(true);
|
|
97
|
+
setOverviewError(null);
|
|
98
|
+
try {
|
|
99
|
+
const nextOverview = await client.getLifeOpsOverview();
|
|
100
|
+
setOverview(nextOverview);
|
|
101
|
+
}
|
|
102
|
+
catch (cause) {
|
|
103
|
+
setOverviewError(cause instanceof Error && cause.message.trim().length > 0
|
|
104
|
+
? cause.message.trim()
|
|
105
|
+
: "LifeOps overview failed to load.");
|
|
106
|
+
}
|
|
107
|
+
finally {
|
|
108
|
+
setOverviewLoading(false);
|
|
109
|
+
}
|
|
110
|
+
}, [appEnabled, runtimeReady]);
|
|
111
|
+
const loadGithub = useCallback(async () => {
|
|
112
|
+
if (!appEnabled || !elizaCloudConnected) {
|
|
113
|
+
setGithubError(null);
|
|
114
|
+
setOwnerGithubConnections([]);
|
|
115
|
+
setAgentGithubEntries([]);
|
|
116
|
+
setGithubLoading(false);
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
setGithubLoading(true);
|
|
120
|
+
setGithubError(null);
|
|
121
|
+
try {
|
|
122
|
+
const [connectionsResult, agentsResult] = await Promise.allSettled([
|
|
123
|
+
client.listCloudOauthConnections({
|
|
124
|
+
platform: "github",
|
|
125
|
+
connectionRole: "owner",
|
|
126
|
+
}),
|
|
127
|
+
client.getCloudCompatAgents(),
|
|
128
|
+
]);
|
|
129
|
+
if (connectionsResult.status === "rejected" &&
|
|
130
|
+
agentsResult.status === "rejected") {
|
|
131
|
+
throw connectionsResult.reason;
|
|
132
|
+
}
|
|
133
|
+
const connections = connectionsResult.status === "fulfilled" &&
|
|
134
|
+
Array.isArray(connectionsResult.value.connections)
|
|
135
|
+
? connectionsResult.value.connections
|
|
136
|
+
: [];
|
|
137
|
+
const agents = agentsResult.status === "fulfilled" &&
|
|
138
|
+
Array.isArray(agentsResult.value.data)
|
|
139
|
+
? agentsResult.value.data
|
|
140
|
+
: [];
|
|
141
|
+
const entries = await Promise.all(agents.map(async (agent) => ({
|
|
142
|
+
agent,
|
|
143
|
+
github: await client
|
|
144
|
+
.getCloudCompatAgentManagedGithub(agent.agent_id)
|
|
145
|
+
.then((response) => response.data)
|
|
146
|
+
.catch(() => null),
|
|
147
|
+
})));
|
|
148
|
+
setOwnerGithubConnections(connections);
|
|
149
|
+
setAgentGithubEntries(entries);
|
|
150
|
+
if (connectionsResult.status === "rejected" ||
|
|
151
|
+
agentsResult.status === "rejected") {
|
|
152
|
+
setGithubError("Some GitHub cloud details are still unavailable. You can still connect accounts.");
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
catch (cause) {
|
|
156
|
+
setGithubError(cause instanceof Error && cause.message.trim().length > 0
|
|
157
|
+
? cause.message.trim()
|
|
158
|
+
: "GitHub connection details failed to load.");
|
|
159
|
+
}
|
|
160
|
+
finally {
|
|
161
|
+
setGithubLoading(false);
|
|
162
|
+
}
|
|
163
|
+
}, [appEnabled, elizaCloudConnected]);
|
|
164
|
+
useEffect(() => {
|
|
165
|
+
void loadOverview();
|
|
166
|
+
}, [loadOverview]);
|
|
167
|
+
useEffect(() => {
|
|
168
|
+
void loadGithub();
|
|
169
|
+
}, [loadGithub]);
|
|
170
|
+
const refreshAll = useCallback(async () => {
|
|
171
|
+
await Promise.all([loadOverview(), loadGithub()]);
|
|
172
|
+
}, [loadGithub, loadOverview]);
|
|
173
|
+
const handleGithubCallback = useCallback((detail) => {
|
|
174
|
+
consumeQueuedLifeOpsGithubCallback(detail);
|
|
175
|
+
setOwnerGithubBusy(false);
|
|
176
|
+
setBusyAgentGithubId(null);
|
|
177
|
+
void (async () => {
|
|
178
|
+
let resolvedDetail = detail;
|
|
179
|
+
if (detail.target === "agent" &&
|
|
180
|
+
detail.status === "connected" &&
|
|
181
|
+
detail.agentId &&
|
|
182
|
+
detail.connectionId &&
|
|
183
|
+
!detail.bindingMode) {
|
|
184
|
+
try {
|
|
185
|
+
const response = await client.linkCloudCompatAgentManagedGithub(detail.agentId, detail.connectionId);
|
|
186
|
+
resolvedDetail = {
|
|
187
|
+
...detail,
|
|
188
|
+
bindingMode: response.data.mode ?? "cloud-managed",
|
|
189
|
+
githubUsername: response.data.githubUsername ?? detail.githubUsername ?? null,
|
|
190
|
+
restarted: response.data.restarted,
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
catch (cause) {
|
|
194
|
+
resolvedDetail = {
|
|
195
|
+
...detail,
|
|
196
|
+
status: "error",
|
|
197
|
+
message: cause instanceof Error
|
|
198
|
+
? cause.message
|
|
199
|
+
: "Failed to link GitHub to this agent.",
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
const notice = describeGithubCallback(resolvedDetail);
|
|
204
|
+
setActionNotice(notice.message, notice.tone, notice.durationMs);
|
|
205
|
+
await loadGithub();
|
|
206
|
+
})();
|
|
207
|
+
}, [loadGithub, setActionNotice]);
|
|
208
|
+
const openCloudAgents = useCallback(() => {
|
|
209
|
+
setState("cloudDashboardView", "agents");
|
|
210
|
+
setTab("settings");
|
|
211
|
+
}, [setState, setTab]);
|
|
212
|
+
const handleSetLifeOpsEnabled = useCallback(async (nextEnabled) => {
|
|
213
|
+
try {
|
|
214
|
+
await lifeOpsApp.updateEnabled(nextEnabled);
|
|
215
|
+
if (!nextEnabled) {
|
|
216
|
+
setOverview(null);
|
|
217
|
+
setOverviewError(null);
|
|
218
|
+
setOwnerGithubConnections([]);
|
|
219
|
+
setAgentGithubEntries([]);
|
|
220
|
+
setGithubError(null);
|
|
221
|
+
}
|
|
222
|
+
setActionNotice(nextEnabled
|
|
223
|
+
? "LifeOps enabled for this agent. The chat widgets will appear in Chat."
|
|
224
|
+
: "LifeOps disabled for this agent.", "success", 3600);
|
|
225
|
+
}
|
|
226
|
+
catch (cause) {
|
|
227
|
+
setActionNotice(cause instanceof Error
|
|
228
|
+
? cause.message
|
|
229
|
+
: "Failed to update the LifeOps app state.", "error", 4200);
|
|
230
|
+
}
|
|
231
|
+
}, [lifeOpsApp, setActionNotice]);
|
|
232
|
+
const handleConnectOwnerGithub = useCallback(async () => {
|
|
233
|
+
const popup = openWebOauthPopup();
|
|
234
|
+
if (isWebPlatform() && !popup) {
|
|
235
|
+
setActionNotice("Popup blocked. Please allow popups and try again.", "error", 4200);
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
setOwnerGithubBusy(true);
|
|
239
|
+
try {
|
|
240
|
+
const response = await client.initiateCloudOauth("github", {
|
|
241
|
+
redirectUrl: buildOwnerGithubRedirectUrl(),
|
|
242
|
+
connectionRole: "owner",
|
|
243
|
+
});
|
|
244
|
+
if (popup && !popup.closed) {
|
|
245
|
+
popup.location.href = response.authUrl;
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
await openExternalUrl(response.authUrl);
|
|
249
|
+
}
|
|
250
|
+
setActionNotice("Finish GitHub authorization in your browser, then return here.", "info", 5000);
|
|
251
|
+
}
|
|
252
|
+
catch (cause) {
|
|
253
|
+
popup?.close();
|
|
254
|
+
setActionNotice(cause instanceof Error
|
|
255
|
+
? cause.message
|
|
256
|
+
: "Failed to start GitHub setup.", "error", 4200);
|
|
257
|
+
}
|
|
258
|
+
finally {
|
|
259
|
+
setOwnerGithubBusy(false);
|
|
260
|
+
}
|
|
261
|
+
}, [setActionNotice]);
|
|
262
|
+
const handleDisconnectOwnerGithub = useCallback(async (connectionId) => {
|
|
263
|
+
setDisconnectingOwnerConnectionId(connectionId);
|
|
264
|
+
try {
|
|
265
|
+
await client.disconnectCloudOauthConnection(connectionId);
|
|
266
|
+
setOwnerGithubConnections((current) => current.filter((connection) => connection.id !== connectionId));
|
|
267
|
+
setActionNotice("LifeOps GitHub disconnected.", "success", 3200);
|
|
268
|
+
await loadGithub();
|
|
269
|
+
}
|
|
270
|
+
catch (cause) {
|
|
271
|
+
setActionNotice(cause instanceof Error
|
|
272
|
+
? cause.message
|
|
273
|
+
: "Failed to disconnect GitHub.", "error", 4200);
|
|
274
|
+
}
|
|
275
|
+
finally {
|
|
276
|
+
setDisconnectingOwnerConnectionId(null);
|
|
277
|
+
}
|
|
278
|
+
}, [loadGithub, setActionNotice]);
|
|
279
|
+
const handleConnectAgentGithub = useCallback(async (agentId) => {
|
|
280
|
+
const popup = openWebOauthPopup();
|
|
281
|
+
if (isWebPlatform() && !popup) {
|
|
282
|
+
setActionNotice("Popup blocked. Please allow popups and try again.", "error", 4200);
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
setBusyAgentGithubId(agentId);
|
|
286
|
+
try {
|
|
287
|
+
const response = await client.createCloudCompatAgentManagedGithubOauth(agentId, isWebPlatform()
|
|
288
|
+
? { postMessage: true }
|
|
289
|
+
: { returnUrl: LIFEOPS_GITHUB_RETURN_URL });
|
|
290
|
+
if (popup && !popup.closed) {
|
|
291
|
+
popup.location.href = response.data.authorizeUrl;
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
await openExternalUrl(response.data.authorizeUrl);
|
|
295
|
+
}
|
|
296
|
+
setActionNotice("Finish GitHub authorization in your browser, then return here.", "info", 5000);
|
|
297
|
+
}
|
|
298
|
+
catch (cause) {
|
|
299
|
+
popup?.close();
|
|
300
|
+
setActionNotice(cause instanceof Error
|
|
301
|
+
? cause.message
|
|
302
|
+
: "Failed to start agent GitHub setup.", "error", 4200);
|
|
303
|
+
}
|
|
304
|
+
finally {
|
|
305
|
+
setBusyAgentGithubId(null);
|
|
306
|
+
}
|
|
307
|
+
}, [setActionNotice]);
|
|
308
|
+
const handleUseOwnerGithub = useCallback(async (agentId, connectionId) => {
|
|
309
|
+
setBusyAgentGithubId(agentId);
|
|
310
|
+
try {
|
|
311
|
+
const response = await client.linkCloudCompatAgentManagedGithub(agentId, connectionId);
|
|
312
|
+
setAgentGithubEntries((current) => current.map((entry) => entry.agent.agent_id === agentId
|
|
313
|
+
? { ...entry, github: response.data }
|
|
314
|
+
: entry));
|
|
315
|
+
setActionNotice(response.data.restarted
|
|
316
|
+
? "Agent is using the LifeOps GitHub account and the cloud runtime is restarting."
|
|
317
|
+
: "Agent is using the LifeOps GitHub account.", "success", 4200);
|
|
318
|
+
await loadGithub();
|
|
319
|
+
}
|
|
320
|
+
catch (cause) {
|
|
321
|
+
setActionNotice(cause instanceof Error
|
|
322
|
+
? cause.message
|
|
323
|
+
: "Failed to link the LifeOps GitHub account to this agent.", "error", 4200);
|
|
324
|
+
}
|
|
325
|
+
finally {
|
|
326
|
+
setBusyAgentGithubId(null);
|
|
327
|
+
}
|
|
328
|
+
}, [loadGithub, setActionNotice]);
|
|
329
|
+
useEffect(() => {
|
|
330
|
+
drainLifeOpsGithubCallbacks().forEach(handleGithubCallback);
|
|
331
|
+
const handleCallbackEvent = (event) => {
|
|
332
|
+
const detail = event.detail;
|
|
333
|
+
if (!detail) {
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
handleGithubCallback(detail);
|
|
337
|
+
};
|
|
338
|
+
window.addEventListener(LIFEOPS_GITHUB_CALLBACK_EVENT, handleCallbackEvent);
|
|
339
|
+
return () => {
|
|
340
|
+
window.removeEventListener(LIFEOPS_GITHUB_CALLBACK_EVENT, handleCallbackEvent);
|
|
341
|
+
};
|
|
342
|
+
}, [handleGithubCallback]);
|
|
343
|
+
useEffect(() => {
|
|
344
|
+
const handleWindowMessage = (event) => {
|
|
345
|
+
dispatchLifeOpsGithubCallbackFromWindowMessage(event.data);
|
|
346
|
+
};
|
|
347
|
+
window.addEventListener("message", handleWindowMessage);
|
|
348
|
+
return () => {
|
|
349
|
+
window.removeEventListener("message", handleWindowMessage);
|
|
350
|
+
};
|
|
351
|
+
}, []);
|
|
352
|
+
const handleDisconnectAgentGithub = useCallback(async (agentId) => {
|
|
353
|
+
setBusyAgentGithubId(agentId);
|
|
354
|
+
try {
|
|
355
|
+
const response = await client.disconnectCloudCompatAgentManagedGithub(agentId);
|
|
356
|
+
setAgentGithubEntries((current) => current.map((entry) => entry.agent.agent_id === agentId
|
|
357
|
+
? { ...entry, github: response.data }
|
|
358
|
+
: entry));
|
|
359
|
+
setActionNotice("Agent GitHub disconnected.", "success", 3200);
|
|
360
|
+
await loadGithub();
|
|
361
|
+
}
|
|
362
|
+
catch (cause) {
|
|
363
|
+
setActionNotice(cause instanceof Error
|
|
364
|
+
? cause.message
|
|
365
|
+
: "Failed to disconnect agent GitHub.", "error", 4200);
|
|
366
|
+
}
|
|
367
|
+
finally {
|
|
368
|
+
setBusyAgentGithubId(null);
|
|
369
|
+
}
|
|
370
|
+
}, [loadGithub, setActionNotice]);
|
|
371
|
+
const ownerOccurrences = useMemo(() => [...(overview?.owner.occurrences ?? [])]
|
|
372
|
+
.sort((left, right) => occurrenceSortValue(left) - occurrenceSortValue(right))
|
|
373
|
+
.slice(0, 5), [overview?.owner.occurrences]);
|
|
374
|
+
const agentOccurrences = useMemo(() => [...(overview?.agentOps.occurrences ?? [])]
|
|
375
|
+
.sort((left, right) => occurrenceSortValue(left) - occurrenceSortValue(right))
|
|
376
|
+
.slice(0, 4), [overview?.agentOps.occurrences]);
|
|
377
|
+
const ownerGoals = useMemo(() => (overview?.owner.goals ?? []).slice(0, 4), [overview?.owner.goals]);
|
|
378
|
+
const ownerReminders = useMemo(() => (overview?.owner.reminders ?? []).slice(0, 4), [overview?.owner.reminders]);
|
|
379
|
+
return (_jsxs("div", { className: "space-y-4", "data-testid": "lifeops-shell", children: [_jsxs(PagePanel, { variant: "section", className: "p-4 lg:p-5", children: [_jsx(PagePanel.Header, { eyebrow: "LifeOps", heading: "Personal Operations", description: "Tasks, goals, reminders, connected identities, calendar, and inbox in one operational tab.", actions: _jsxs("div", { className: "flex flex-wrap gap-2", children: [appEnabled ? (_jsxs(Button, { variant: "outline", size: "sm", className: "rounded-full px-4 text-xs-tight font-semibold", onClick: () => void refreshAll(), disabled: lifeOpsApp.loading ||
|
|
380
|
+
lifeOpsApp.saving ||
|
|
381
|
+
overviewLoading ||
|
|
382
|
+
githubLoading, children: [_jsx(RefreshCw, { className: "mr-2 h-3.5 w-3.5" }), "Refresh"] })) : null, _jsx(Button, { variant: appEnabled ? "outline" : "default", size: "sm", className: "rounded-full px-4 text-xs-tight font-semibold", onClick: () => void handleSetLifeOpsEnabled(!appEnabled), disabled: lifeOpsApp.loading || lifeOpsApp.saving, children: appEnabled ? "Disable LifeOps" : "Enable LifeOps" })] }) }), lifeOpsApp.error ? (_jsx(PagePanel.Notice, { tone: "danger", className: "mt-4", children: lifeOpsApp.error })) : null, lifeOpsApp.loading ? (_jsx(PagePanel.Loading, { variant: "surface", className: "mt-4", heading: "Loading LifeOps app state" })) : null, !lifeOpsApp.loading && !appEnabled ? (_jsx(PagePanel.Empty, { variant: "surface", className: "mt-4 min-h-[12rem] rounded-3xl", title: "LifeOps starts disabled", description: "Enable LifeOps for this agent to turn on the chat widgets and unlock the operational workspace." })) : null, appEnabled && !runtimeReady && !overview ? (_jsx(PagePanel.Loading, { variant: "surface", className: "mt-4", heading: "Waiting for LifeOps runtime" })) : null, appEnabled && overviewError ? (_jsx(PagePanel.Notice, { tone: "danger", className: "mt-4", children: overviewError })) : null, appEnabled && overview ? (_jsxs(_Fragment, { children: [_jsxs("div", { className: "grid gap-3 md:grid-cols-2 xl:grid-cols-4", children: [_jsx(SummaryMetric, { label: "Open items", value: `${overview.owner.summary.activeOccurrenceCount}`, detail: `${overview.owner.summary.overdueOccurrenceCount} overdue` }), _jsx(SummaryMetric, { label: "Goals", value: `${overview.owner.summary.activeGoalCount}`, detail: "Owner goals in motion" }), _jsx(SummaryMetric, { label: "Reminders", value: `${overview.owner.summary.activeReminderCount}`, detail: `${overview.owner.summary.snoozedOccurrenceCount} snoozed items` }), _jsx(SummaryMetric, { label: "Agent ops", value: `${overview.agentOps.summary.activeOccurrenceCount}`, detail: `${overview.agentOps.summary.activeGoalCount} active agent goals` })] }), _jsxs("div", { className: "mt-4 grid gap-4 xl:grid-cols-[1.2fr_1fr_1fr]", children: [_jsx(SectionSurface, { title: "Current queue", icon: _jsx(ListTodo, { className: "h-4 w-4" }), subtitle: "The owner-facing tasks and occurrences that need attention next.", children: _jsx(OccurrenceList, { occurrences: ownerOccurrences }) }), _jsx(SectionSurface, { title: "Goals", icon: _jsx(Target, { className: "h-4 w-4" }), subtitle: "Active LifeOps goals the agent is tracking for the owner.", children: _jsx(GoalList, { goals: ownerGoals }) }), _jsx(SectionSurface, { title: "Live reminders", icon: _jsx(BellRing, { className: "h-4 w-4" }), subtitle: "Reminders that are currently scheduled or in-flight.", children: _jsx(ReminderList, { reminders: ownerReminders }) })] }), _jsx("div", { className: "mt-4", children: _jsx(SectionSurface, { title: "Agent operations", icon: _jsx(Bot, { className: "h-4 w-4" }), subtitle: "Work the agent is carrying on your behalf across goals and active occurrences.", children: _jsx(OccurrenceList, { occurrences: agentOccurrences }) }) })] })) : null] }), appEnabled ? _jsx(LifeOpsSettingsSection, {}) : null, appEnabled ? (_jsxs(PagePanel, { variant: "section", className: "p-4 lg:p-5", children: [_jsx(PagePanel.Header, { eyebrow: "GitHub", heading: "LifeOps and Agent GitHub", description: "Keep the owner\u2019s LifeOps GitHub separate from the cloud agent\u2019s GitHub identity. Both authorization flows run through Eliza Cloud, and repo access depends on the GitHub account or app installation behind each connection.", actions: _jsx(Button, { variant: "outline", size: "sm", className: "rounded-full px-4 text-xs-tight font-semibold", onClick: openCloudAgents, children: "Open Cloud" }) }), !elizaCloudConnected ? (_jsx(PagePanel.Empty, { variant: "surface", className: "mt-4 min-h-[12rem] rounded-3xl", title: "Connect Eliza Cloud first", description: "GitHub authorization runs through Eliza Cloud. Connect Cloud, then come back here to manage both accounts." })) : (_jsxs(_Fragment, { children: [githubError ? (_jsx(PagePanel.Notice, { tone: "danger", className: "mt-4", children: githubError })) : null, githubLoading &&
|
|
383
|
+
ownerGithubConnections.length === 0 &&
|
|
384
|
+
agentGithubEntries.length === 0 ? (_jsx(PagePanel.Loading, { variant: "surface", className: "mt-4", heading: "Loading GitHub identities" })) : null, _jsxs("div", { className: "mt-4 grid gap-4 xl:grid-cols-[minmax(20rem,0.95fr)_minmax(22rem,1.05fr)]", children: [_jsxs(SectionSurface, { title: "LifeOps GitHub", icon: _jsx(Github, { className: "h-4 w-4" }), subtitle: "Use this account for the owner\u2019s LifeOps repos, issues, and planning context.", children: [_jsx("div", { className: "flex flex-wrap gap-2", children: _jsxs(Button, { variant: "default", size: "sm", className: "rounded-full px-4 text-xs-tight font-semibold", disabled: ownerGithubBusy, onClick: () => void handleConnectOwnerGithub(), children: [_jsx(ExternalLink, { className: "mr-2 h-3.5 w-3.5" }), ownerGithubConnections.length > 0
|
|
385
|
+
? "Reconnect / add account"
|
|
386
|
+
: "Connect LifeOps GitHub"] }) }), ownerGithubConnections.length === 0 ? (_jsx("div", { className: "rounded-2xl border border-dashed border-border/45 bg-bg/55 p-4 text-xs text-muted", children: "No owner GitHub account linked yet." })) : (ownerGithubConnections.map((connection) => (_jsx(OwnerGithubConnectionCard, { connection: connection, busy: disconnectingOwnerConnectionId === connection.id, onDisconnect: handleDisconnectOwnerGithub }, connection.id))))] }), _jsx(SectionSurface, { title: "Agent GitHub", icon: _jsx(Shield, { className: "h-4 w-4" }), subtitle: "Bind GitHub per cloud agent so coding work can use a separate identity from the owner account. Access may be read-only or write-enabled depending on the connected account or installation.", children: agentGithubEntries.length === 0 ? (_jsx("div", { className: "rounded-2xl border border-dashed border-border/45 bg-bg/55 p-4 text-xs text-muted", children: "No cloud agents found yet. Create or connect a cloud agent to give it its own GitHub identity." })) : (agentGithubEntries.map((entry) => (_jsx(AgentGithubCard, { entry: entry, ownerConnections: ownerGithubConnections, busyAgentId: busyAgentGithubId, onConnect: handleConnectAgentGithub, onDisconnect: handleDisconnectAgentGithub, onUseOwnerConnection: handleUseOwnerGithub }, entry.agent.agent_id)))) })] })] }))] })) : null, appEnabled ? _jsx(LifeOpsWorkspaceView, {}) : null] }));
|
|
387
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LifeOpsSettingsSection.d.ts","sourceRoot":"","sources":["../../../../../../apps/app-lifeops/src/LifeOpsSettingsSection.tsx"],"names":[],"mappings":"AAmYA,wBAAgB,sBAAsB,4CAwCrC"}
|