@elizaos/ui 2.0.0-alpha.44 → 2.0.0-alpha.441
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/character-catalog.d.ts +10 -0
- package/apps/app-companion/src/character-catalog.d.ts.map +1 -0
- package/apps/app-companion/src/character-catalog.js +32 -0
- package/apps/app-companion/src/components/avatar/MathEnvironment.d.ts +38 -0
- package/apps/app-companion/src/components/avatar/MathEnvironment.d.ts.map +1 -0
- package/apps/app-companion/src/components/avatar/MathEnvironment.js +295 -0
- package/apps/app-companion/src/components/avatar/SceneOverlayManager.d.ts +36 -0
- package/apps/app-companion/src/components/avatar/SceneOverlayManager.d.ts.map +1 -0
- package/apps/app-companion/src/components/avatar/SceneOverlayManager.js +305 -0
- package/apps/app-companion/src/components/avatar/VrmAnimationLoader.d.ts +30 -0
- package/apps/app-companion/src/components/avatar/VrmAnimationLoader.d.ts.map +1 -0
- package/apps/app-companion/src/components/avatar/VrmAnimationLoader.js +99 -0
- package/apps/app-companion/src/components/avatar/VrmBlinkController.d.ts +37 -0
- package/apps/app-companion/src/components/avatar/VrmBlinkController.d.ts.map +1 -0
- package/apps/app-companion/src/components/avatar/VrmBlinkController.js +98 -0
- package/apps/app-companion/src/components/avatar/VrmCameraManager.d.ts +57 -0
- package/apps/app-companion/src/components/avatar/VrmCameraManager.d.ts.map +1 -0
- package/apps/app-companion/src/components/avatar/VrmCameraManager.js +256 -0
- package/apps/app-companion/src/components/avatar/VrmEngine.d.ts +283 -0
- package/apps/app-companion/src/components/avatar/VrmEngine.d.ts.map +1 -0
- package/apps/app-companion/src/components/avatar/VrmEngine.js +2003 -0
- package/apps/app-companion/src/components/avatar/VrmFootShadow.d.ts +18 -0
- package/apps/app-companion/src/components/avatar/VrmFootShadow.d.ts.map +1 -0
- package/apps/app-companion/src/components/avatar/VrmFootShadow.js +83 -0
- package/apps/app-companion/src/components/avatar/VrmTeleportEffect.d.ts +49 -0
- package/apps/app-companion/src/components/avatar/VrmTeleportEffect.d.ts.map +1 -0
- package/apps/app-companion/src/components/avatar/VrmTeleportEffect.js +390 -0
- package/apps/app-companion/src/components/avatar/VrmViewer.d.ts +64 -0
- package/apps/app-companion/src/components/avatar/VrmViewer.d.ts.map +1 -0
- package/apps/app-companion/src/components/avatar/VrmViewer.js +437 -0
- package/apps/app-companion/src/components/avatar/mixamoVRMRigMap.d.ts +3 -0
- package/apps/app-companion/src/components/avatar/mixamoVRMRigMap.d.ts.map +1 -0
- package/apps/app-companion/src/components/avatar/mixamoVRMRigMap.js +56 -0
- package/apps/app-companion/src/components/avatar/retargetMixamoFbxToVrm.d.ts +9 -0
- package/apps/app-companion/src/components/avatar/retargetMixamoFbxToVrm.d.ts.map +1 -0
- package/apps/app-companion/src/components/avatar/retargetMixamoFbxToVrm.js +127 -0
- package/apps/app-companion/src/components/avatar/retargetMixamoGltfToVrm.d.ts +11 -0
- package/apps/app-companion/src/components/avatar/retargetMixamoGltfToVrm.d.ts.map +1 -0
- package/apps/app-companion/src/components/avatar/retargetMixamoGltfToVrm.js +97 -0
- package/apps/app-companion/src/components/avatar/scene-overlay-renderer.d.ts +37 -0
- package/apps/app-companion/src/components/avatar/scene-overlay-renderer.d.ts.map +1 -0
- package/apps/app-companion/src/components/avatar/scene-overlay-renderer.js +337 -0
- package/apps/app-companion/src/components/avatar/scene-theme-tokens.d.ts +26 -0
- package/apps/app-companion/src/components/avatar/scene-theme-tokens.d.ts.map +1 -0
- package/apps/app-companion/src/components/avatar/scene-theme-tokens.js +48 -0
- package/apps/app-companion/src/components/avatar/vector-browser-three.d.ts +9 -0
- package/apps/app-companion/src/components/avatar/vector-browser-three.d.ts.map +1 -0
- package/apps/app-companion/src/components/avatar/vector-browser-three.js +21 -0
- package/apps/app-companion/src/components/avatar/vector-browser-utils.d.ts +52 -0
- package/apps/app-companion/src/components/avatar/vector-browser-utils.d.ts.map +1 -0
- package/apps/app-companion/src/components/avatar/vector-browser-utils.js +245 -0
- package/apps/app-companion/src/components/avatar/vrm-desktop-energy.d.ts +40 -0
- package/apps/app-companion/src/components/avatar/vrm-desktop-energy.d.ts.map +1 -0
- package/apps/app-companion/src/components/avatar/vrm-desktop-energy.js +74 -0
- package/apps/app-companion/src/components/chat/ChatAvatar.d.ts +3 -0
- package/apps/app-companion/src/components/chat/ChatAvatar.d.ts.map +1 -0
- package/apps/app-companion/src/components/chat/ChatAvatar.js +80 -0
- package/apps/app-companion/src/components/companion/CompanionAppView.d.ts +9 -0
- package/apps/app-companion/src/components/companion/CompanionAppView.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/CompanionAppView.js +117 -0
- package/apps/app-companion/src/components/companion/CompanionHeader.d.ts +25 -0
- package/apps/app-companion/src/components/companion/CompanionHeader.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/CompanionHeader.js +61 -0
- package/apps/app-companion/src/components/companion/CompanionSceneHost.d.ts +15 -0
- package/apps/app-companion/src/components/companion/CompanionSceneHost.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/CompanionSceneHost.js +476 -0
- package/apps/app-companion/src/components/companion/CompanionShell.d.ts +8 -0
- package/apps/app-companion/src/components/companion/CompanionShell.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/CompanionShell.js +9 -0
- package/apps/app-companion/src/components/companion/CompanionView.d.ts +7 -0
- package/apps/app-companion/src/components/companion/CompanionView.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/CompanionView.js +122 -0
- package/apps/app-companion/src/components/companion/EmotePicker.d.ts +2 -0
- package/apps/app-companion/src/components/companion/EmotePicker.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/EmotePicker.js +351 -0
- package/apps/app-companion/src/components/companion/GlobalEmoteOverlay.d.ts +2 -0
- package/apps/app-companion/src/components/companion/GlobalEmoteOverlay.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/GlobalEmoteOverlay.js +113 -0
- package/apps/app-companion/src/components/companion/InferenceCloudAlertButton.d.ts +9 -0
- package/apps/app-companion/src/components/companion/InferenceCloudAlertButton.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/InferenceCloudAlertButton.js +16 -0
- package/apps/app-companion/src/components/companion/VrmStage.d.ts +27 -0
- package/apps/app-companion/src/components/companion/VrmStage.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/VrmStage.js +179 -0
- package/apps/app-companion/src/components/companion/companion-app.d.ts +6 -0
- package/apps/app-companion/src/components/companion/companion-app.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/companion-app.js +15 -0
- package/apps/app-companion/src/components/companion/companion-scene-status-context.d.ts +7 -0
- package/apps/app-companion/src/components/companion/companion-scene-status-context.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/companion-scene-status-context.js +8 -0
- package/apps/app-companion/src/components/companion/companion-shell-styles.d.ts +38 -0
- package/apps/app-companion/src/components/companion/companion-shell-styles.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/companion-shell-styles.js +237 -0
- package/apps/app-companion/src/components/companion/resolve-companion-inference-notice.d.ts +19 -0
- package/apps/app-companion/src/components/companion/resolve-companion-inference-notice.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/resolve-companion-inference-notice.js +31 -0
- package/apps/app-companion/src/components/companion/scene-overlay-bridge.d.ts +6 -0
- package/apps/app-companion/src/components/companion/scene-overlay-bridge.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/scene-overlay-bridge.js +83 -0
- package/apps/app-companion/src/components/companion/shared-companion-scene-context.d.ts +3 -0
- package/apps/app-companion/src/components/companion/shared-companion-scene-context.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/shared-companion-scene-context.js +13 -0
- package/apps/app-companion/src/components/companion/walletUtils.d.ts +91 -0
- package/apps/app-companion/src/components/companion/walletUtils.d.ts.map +1 -0
- package/apps/app-companion/src/components/companion/walletUtils.js +152 -0
- package/apps/app-companion/src/emotes/catalog.d.ts +31 -0
- package/apps/app-companion/src/emotes/catalog.d.ts.map +1 -0
- package/apps/app-companion/src/emotes/catalog.js +402 -0
- package/apps/app-companion/src/emotes/index.d.ts +2 -0
- package/apps/app-companion/src/emotes/index.d.ts.map +1 -0
- package/apps/app-companion/src/emotes/index.js +1 -0
- package/apps/app-companion/src/index.d.ts +38 -0
- package/apps/app-companion/src/index.d.ts.map +1 -0
- package/apps/app-companion/src/index.js +37 -0
- package/apps/app-companion/src/vrm-assets.d.ts +10 -0
- package/apps/app-companion/src/vrm-assets.d.ts.map +1 -0
- package/apps/app-companion/src/vrm-assets.js +70 -0
- package/apps/app-elizamaker/src/drop-routes.d.ts +22 -0
- package/apps/app-elizamaker/src/drop-routes.d.ts.map +1 -0
- package/apps/app-elizamaker/src/drop-routes.js +155 -0
- package/apps/app-elizamaker/src/drop-service-registry.d.ts +4 -0
- package/apps/app-elizamaker/src/drop-service-registry.d.ts.map +1 -0
- package/apps/app-elizamaker/src/drop-service-registry.js +7 -0
- package/apps/app-elizamaker/src/drop-service.d.ts +26 -0
- package/apps/app-elizamaker/src/drop-service.d.ts.map +1 -0
- package/apps/app-elizamaker/src/drop-service.js +134 -0
- package/apps/app-elizamaker/src/index.d.ts +10 -0
- package/apps/app-elizamaker/src/index.d.ts.map +1 -0
- package/apps/app-elizamaker/src/index.js +7 -0
- package/apps/app-elizamaker/src/merkle-tree.d.ts +90 -0
- package/apps/app-elizamaker/src/merkle-tree.d.ts.map +1 -0
- package/apps/app-elizamaker/src/merkle-tree.js +174 -0
- package/apps/app-elizamaker/src/og-tracker.d.ts +28 -0
- package/apps/app-elizamaker/src/og-tracker.d.ts.map +1 -0
- package/apps/app-elizamaker/src/og-tracker.js +60 -0
- package/apps/app-elizamaker/src/plugin.d.ts +4 -0
- package/apps/app-elizamaker/src/plugin.d.ts.map +1 -0
- package/apps/app-elizamaker/src/plugin.js +80 -0
- package/apps/app-elizamaker/src/twitter-verify.d.ts +25 -0
- package/apps/app-elizamaker/src/twitter-verify.d.ts.map +1 -0
- package/apps/app-elizamaker/src/twitter-verify.js +167 -0
- package/apps/app-lifeops/src/actions/website-blocker.d.ts +8 -0
- package/apps/app-lifeops/src/actions/website-blocker.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/website-blocker.js +830 -0
- package/apps/app-lifeops/src/activity-profile/activity-tracker-repo.d.ts +28 -0
- package/apps/app-lifeops/src/activity-profile/activity-tracker-repo.d.ts.map +1 -0
- package/apps/app-lifeops/src/activity-profile/activity-tracker-repo.js +62 -0
- package/apps/app-lifeops/src/activity-profile/activity-tracker-reporting.d.ts +52 -0
- package/apps/app-lifeops/src/activity-profile/activity-tracker-reporting.d.ts.map +1 -0
- package/apps/app-lifeops/src/activity-profile/activity-tracker-reporting.js +129 -0
- package/apps/app-lifeops/src/activity-profile/profile-metadata.d.ts +10 -0
- package/apps/app-lifeops/src/activity-profile/profile-metadata.d.ts.map +1 -0
- package/apps/app-lifeops/src/activity-profile/profile-metadata.js +25 -0
- package/apps/app-lifeops/src/activity-profile/redactor.d.ts +18 -0
- package/apps/app-lifeops/src/activity-profile/redactor.d.ts.map +1 -0
- package/apps/app-lifeops/src/activity-profile/redactor.js +39 -0
- package/apps/app-lifeops/src/activity-profile/system-inactivity-apps.d.ts +8 -0
- package/apps/app-lifeops/src/activity-profile/system-inactivity-apps.d.ts.map +1 -0
- package/apps/app-lifeops/src/activity-profile/system-inactivity-apps.js +75 -0
- package/apps/app-lifeops/src/activity-profile/types.d.ts +89 -0
- package/apps/app-lifeops/src/activity-profile/types.d.ts.map +1 -0
- package/apps/app-lifeops/src/activity-profile/types.js +29 -0
- package/apps/app-lifeops/src/api/client-lifeops.d.ts +444 -0
- package/apps/app-lifeops/src/api/client-lifeops.d.ts.map +1 -0
- package/apps/app-lifeops/src/api/client-lifeops.js +951 -0
- package/apps/app-lifeops/src/components/AppBlockerSettingsCard.d.ts +3 -0
- package/apps/app-lifeops/src/components/AppBlockerSettingsCard.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/AppBlockerSettingsCard.js +189 -0
- package/apps/app-lifeops/src/components/BrowserBridgeSetupPanel.d.ts +2 -0
- package/apps/app-lifeops/src/components/BrowserBridgeSetupPanel.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/BrowserBridgeSetupPanel.js +1065 -0
- package/apps/app-lifeops/src/components/BrowserBridgeStatusChip.d.ts +7 -0
- package/apps/app-lifeops/src/components/BrowserBridgeStatusChip.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/BrowserBridgeStatusChip.js +71 -0
- package/apps/app-lifeops/src/components/DataSourcesStrip.d.ts +14 -0
- package/apps/app-lifeops/src/components/DataSourcesStrip.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/DataSourcesStrip.js +36 -0
- package/apps/app-lifeops/src/components/EventEditorDrawer.d.ts +23 -0
- package/apps/app-lifeops/src/components/EventEditorDrawer.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/EventEditorDrawer.js +514 -0
- package/apps/app-lifeops/src/components/LifeOpsActivitySignalsEffect.d.ts +2 -0
- package/apps/app-lifeops/src/components/LifeOpsActivitySignalsEffect.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsActivitySignalsEffect.js +10 -0
- package/apps/app-lifeops/src/components/LifeOpsCalendarSection.d.ts +15 -0
- package/apps/app-lifeops/src/components/LifeOpsCalendarSection.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsCalendarSection.js +515 -0
- package/apps/app-lifeops/src/components/LifeOpsChatAdapter.d.ts +34 -0
- package/apps/app-lifeops/src/components/LifeOpsChatAdapter.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsChatAdapter.js +175 -0
- package/apps/app-lifeops/src/components/LifeOpsFeatureTogglesSection.d.ts +2 -0
- package/apps/app-lifeops/src/components/LifeOpsFeatureTogglesSection.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsFeatureTogglesSection.js +99 -0
- package/apps/app-lifeops/src/components/LifeOpsHabitVisuals.d.ts +37 -0
- package/apps/app-lifeops/src/components/LifeOpsHabitVisuals.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsHabitVisuals.js +88 -0
- package/apps/app-lifeops/src/components/LifeOpsInboxSection.d.ts +13 -0
- package/apps/app-lifeops/src/components/LifeOpsInboxSection.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsInboxSection.js +491 -0
- package/apps/app-lifeops/src/components/LifeOpsLinkBankButton.d.ts +12 -0
- package/apps/app-lifeops/src/components/LifeOpsLinkBankButton.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsLinkBankButton.js +92 -0
- package/apps/app-lifeops/src/components/LifeOpsLinkPaypalButton.d.ts +12 -0
- package/apps/app-lifeops/src/components/LifeOpsLinkPaypalButton.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsLinkPaypalButton.js +160 -0
- package/apps/app-lifeops/src/components/LifeOpsMoneySection.d.ts +3 -0
- package/apps/app-lifeops/src/components/LifeOpsMoneySection.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsMoneySection.js +373 -0
- package/apps/app-lifeops/src/components/LifeOpsNavRail.d.ts +9 -0
- package/apps/app-lifeops/src/components/LifeOpsNavRail.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsNavRail.js +93 -0
- package/apps/app-lifeops/src/components/LifeOpsOperationalPanels.d.ts +4 -0
- package/apps/app-lifeops/src/components/LifeOpsOperationalPanels.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsOperationalPanels.js +274 -0
- package/apps/app-lifeops/src/components/LifeOpsOverviewSection.d.ts +7 -0
- package/apps/app-lifeops/src/components/LifeOpsOverviewSection.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsOverviewSection.js +670 -0
- package/apps/app-lifeops/src/components/LifeOpsPageSections.d.ts +42 -0
- package/apps/app-lifeops/src/components/LifeOpsPageSections.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsPageSections.js +166 -0
- package/apps/app-lifeops/src/components/LifeOpsPageView.d.ts +2 -0
- package/apps/app-lifeops/src/components/LifeOpsPageView.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsPageView.js +566 -0
- package/apps/app-lifeops/src/components/LifeOpsRemindersSection.d.ts +2 -0
- package/apps/app-lifeops/src/components/LifeOpsRemindersSection.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsRemindersSection.js +749 -0
- package/apps/app-lifeops/src/components/LifeOpsResizableSidebar.d.ts +27 -0
- package/apps/app-lifeops/src/components/LifeOpsResizableSidebar.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsResizableSidebar.js +106 -0
- package/apps/app-lifeops/src/components/LifeOpsScreenTimeSection.d.ts +2 -0
- package/apps/app-lifeops/src/components/LifeOpsScreenTimeSection.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsScreenTimeSection.js +373 -0
- package/apps/app-lifeops/src/components/LifeOpsSectionContent.d.ts +10 -0
- package/apps/app-lifeops/src/components/LifeOpsSectionContent.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsSectionContent.js +30 -0
- package/apps/app-lifeops/src/components/LifeOpsSelectionContext.d.ts +21 -0
- package/apps/app-lifeops/src/components/LifeOpsSelectionContext.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsSelectionContext.js +30 -0
- package/apps/app-lifeops/src/components/LifeOpsSettingsSection.d.ts +20 -0
- package/apps/app-lifeops/src/components/LifeOpsSettingsSection.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsSettingsSection.js +598 -0
- package/apps/app-lifeops/src/components/LifeOpsSetupGate.d.ts +13 -0
- package/apps/app-lifeops/src/components/LifeOpsSetupGate.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsSetupGate.js +134 -0
- package/apps/app-lifeops/src/components/LifeOpsSleepSection.d.ts +10 -0
- package/apps/app-lifeops/src/components/LifeOpsSleepSection.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsSleepSection.js +425 -0
- package/apps/app-lifeops/src/components/LifeOpsWorkspaceShell.d.ts +11 -0
- package/apps/app-lifeops/src/components/LifeOpsWorkspaceShell.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsWorkspaceShell.js +49 -0
- package/apps/app-lifeops/src/components/LifeOpsWorkspaceView.d.ts +2 -0
- package/apps/app-lifeops/src/components/LifeOpsWorkspaceView.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/LifeOpsWorkspaceView.js +1041 -0
- package/apps/app-lifeops/src/components/MessagingConnectorCards.d.ts +7 -0
- package/apps/app-lifeops/src/components/MessagingConnectorCards.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/MessagingConnectorCards.js +643 -0
- package/apps/app-lifeops/src/components/MissingSourceCard.d.ts +9 -0
- package/apps/app-lifeops/src/components/MissingSourceCard.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/MissingSourceCard.js +5 -0
- package/apps/app-lifeops/src/components/MobileSignalsSetupCard.d.ts +2 -0
- package/apps/app-lifeops/src/components/MobileSignalsSetupCard.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/MobileSignalsSetupCard.js +163 -0
- package/apps/app-lifeops/src/components/SleepInspectionPanel.d.ts +8 -0
- package/apps/app-lifeops/src/components/SleepInspectionPanel.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/SleepInspectionPanel.js +59 -0
- package/apps/app-lifeops/src/components/WebsiteBlockerSettingsCard.d.ts +3 -0
- package/apps/app-lifeops/src/components/WebsiteBlockerSettingsCard.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/WebsiteBlockerSettingsCard.js +75 -0
- package/apps/app-lifeops/src/components/WhatsAppQrOverlay.d.ts +8 -0
- package/apps/app-lifeops/src/components/WhatsAppQrOverlay.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/WhatsAppQrOverlay.js +48 -0
- package/apps/app-lifeops/src/components/lifeops-labels.d.ts +2 -0
- package/apps/app-lifeops/src/components/lifeops-labels.d.ts.map +1 -0
- package/apps/app-lifeops/src/components/lifeops-labels.js +5 -0
- package/apps/app-lifeops/src/contracts/index.d.ts +3 -0
- package/apps/app-lifeops/src/contracts/index.d.ts.map +1 -0
- package/apps/app-lifeops/src/contracts/index.js +2 -0
- package/apps/app-lifeops/src/events/index.d.ts +34 -0
- package/apps/app-lifeops/src/events/index.d.ts.map +1 -0
- package/apps/app-lifeops/src/events/index.js +23 -0
- package/apps/app-lifeops/src/hooks/useCalendarWeek.d.ts +28 -0
- package/apps/app-lifeops/src/hooks/useCalendarWeek.d.ts.map +1 -0
- package/apps/app-lifeops/src/hooks/useCalendarWeek.js +93 -0
- package/apps/app-lifeops/src/hooks/useDiscordConnector.d.ts +14 -0
- package/apps/app-lifeops/src/hooks/useDiscordConnector.d.ts.map +1 -0
- package/apps/app-lifeops/src/hooks/useDiscordConnector.js +126 -0
- package/apps/app-lifeops/src/hooks/useGoogleLifeOpsConnector.d.ts +29 -0
- package/apps/app-lifeops/src/hooks/useGoogleLifeOpsConnector.d.ts.map +1 -0
- package/apps/app-lifeops/src/hooks/useGoogleLifeOpsConnector.js +481 -0
- package/apps/app-lifeops/src/hooks/useIMessageConnector.d.ts +10 -0
- package/apps/app-lifeops/src/hooks/useIMessageConnector.d.ts.map +1 -0
- package/apps/app-lifeops/src/hooks/useIMessageConnector.js +50 -0
- package/apps/app-lifeops/src/hooks/useInbox.d.ts +34 -0
- package/apps/app-lifeops/src/hooks/useInbox.d.ts.map +1 -0
- package/apps/app-lifeops/src/hooks/useInbox.js +98 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsActivitySignals.d.ts +2 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsActivitySignals.d.ts.map +1 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsActivitySignals.js +383 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsAppState.d.ts +9 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsAppState.d.ts.map +1 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsAppState.js +83 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsCapabilitiesStatus.d.ts +8 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsCapabilitiesStatus.d.ts.map +1 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsCapabilitiesStatus.js +60 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsScheduleInspection.d.ts +18 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsScheduleInspection.d.ts.map +1 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsScheduleInspection.js +66 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsScheduleState.d.ts +14 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsScheduleState.d.ts.map +1 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsScheduleState.js +79 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsSection.d.ts +18 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsSection.d.ts.map +1 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsSection.js +78 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsXConnector.d.ts +14 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsXConnector.d.ts.map +1 -0
- package/apps/app-lifeops/src/hooks/useLifeOpsXConnector.js +160 -0
- package/apps/app-lifeops/src/hooks/useSignalConnector.d.ts +16 -0
- package/apps/app-lifeops/src/hooks/useSignalConnector.d.ts.map +1 -0
- package/apps/app-lifeops/src/hooks/useSignalConnector.js +198 -0
- package/apps/app-lifeops/src/hooks/useTelegramConnector.d.ts +21 -0
- package/apps/app-lifeops/src/hooks/useTelegramConnector.d.ts.map +1 -0
- package/apps/app-lifeops/src/hooks/useTelegramConnector.js +177 -0
- package/apps/app-lifeops/src/hooks/useWhatsAppConnector.d.ts +8 -0
- package/apps/app-lifeops/src/hooks/useWhatsAppConnector.d.ts.map +1 -0
- package/apps/app-lifeops/src/hooks/useWhatsAppConnector.js +58 -0
- package/apps/app-lifeops/src/hooks/useWhatsAppPairing.d.ts +12 -0
- package/apps/app-lifeops/src/hooks/useWhatsAppPairing.d.ts.map +1 -0
- package/apps/app-lifeops/src/hooks/useWhatsAppPairing.js +159 -0
- package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts +9 -0
- package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/channel-deep-links.js +138 -0
- package/apps/app-lifeops/src/inbox/message-fetcher.d.ts +47 -0
- package/apps/app-lifeops/src/inbox/message-fetcher.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/message-fetcher.js +342 -0
- package/apps/app-lifeops/src/inbox/types.d.ts +118 -0
- package/apps/app-lifeops/src/inbox/types.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/types.js +1 -0
- package/apps/app-lifeops/src/lifeops/app-state.d.ts +22 -0
- package/apps/app-lifeops/src/lifeops/app-state.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/app-state.js +72 -0
- package/apps/app-lifeops/src/lifeops/apple-reminders.d.ts +58 -0
- package/apps/app-lifeops/src/lifeops/apple-reminders.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/apple-reminders.js +325 -0
- package/apps/app-lifeops/src/lifeops/awake-probability.d.ts +11 -0
- package/apps/app-lifeops/src/lifeops/awake-probability.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/awake-probability.js +169 -0
- package/apps/app-lifeops/src/lifeops/bill-extraction.d.ts +47 -0
- package/apps/app-lifeops/src/lifeops/bill-extraction.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/bill-extraction.js +355 -0
- package/apps/app-lifeops/src/lifeops/browser-extension-store.d.ts +61 -0
- package/apps/app-lifeops/src/lifeops/browser-extension-store.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/browser-extension-store.js +181 -0
- package/apps/app-lifeops/src/lifeops/browser-session-lifecycle.d.ts +57 -0
- package/apps/app-lifeops/src/lifeops/browser-session-lifecycle.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/browser-session-lifecycle.js +267 -0
- package/apps/app-lifeops/src/lifeops/checkin/checkin-service.d.ts +61 -0
- package/apps/app-lifeops/src/lifeops/checkin/checkin-service.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/checkin/checkin-service.js +975 -0
- package/apps/app-lifeops/src/lifeops/checkin/sleep-cycle-dispatch.d.ts +18 -0
- package/apps/app-lifeops/src/lifeops/checkin/sleep-cycle-dispatch.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/checkin/sleep-cycle-dispatch.js +26 -0
- package/apps/app-lifeops/src/lifeops/checkin/types.d.ts +78 -0
- package/apps/app-lifeops/src/lifeops/checkin/types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/checkin/types.js +7 -0
- package/apps/app-lifeops/src/lifeops/circadian-rules.d.ts +45 -0
- package/apps/app-lifeops/src/lifeops/circadian-rules.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/circadian-rules.js +291 -0
- package/apps/app-lifeops/src/lifeops/continuity-probe.d.ts +31 -0
- package/apps/app-lifeops/src/lifeops/continuity-probe.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/continuity-probe.js +187 -0
- package/apps/app-lifeops/src/lifeops/defaults.d.ts +24 -0
- package/apps/app-lifeops/src/lifeops/defaults.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/defaults.js +212 -0
- package/apps/app-lifeops/src/lifeops/discord-browser-scraper.d.ts +109 -0
- package/apps/app-lifeops/src/lifeops/discord-browser-scraper.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/discord-browser-scraper.js +536 -0
- package/apps/app-lifeops/src/lifeops/discord-desktop-cdp.d.ts +17 -0
- package/apps/app-lifeops/src/lifeops/discord-desktop-cdp.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/discord-desktop-cdp.js +305 -0
- package/apps/app-lifeops/src/lifeops/email-classifier.d.ts +57 -0
- package/apps/app-lifeops/src/lifeops/email-classifier.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/email-classifier.js +337 -0
- package/apps/app-lifeops/src/lifeops/email-unsubscribe-gmail.d.ts +64 -0
- package/apps/app-lifeops/src/lifeops/email-unsubscribe-gmail.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/email-unsubscribe-gmail.js +268 -0
- package/apps/app-lifeops/src/lifeops/email-unsubscribe-types.d.ts +67 -0
- package/apps/app-lifeops/src/lifeops/email-unsubscribe-types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/email-unsubscribe-types.js +1 -0
- package/apps/app-lifeops/src/lifeops/enforcement-windows.d.ts +34 -0
- package/apps/app-lifeops/src/lifeops/enforcement-windows.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/enforcement-windows.js +103 -0
- package/apps/app-lifeops/src/lifeops/engine.d.ts +8 -0
- package/apps/app-lifeops/src/lifeops/engine.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/engine.js +393 -0
- package/apps/app-lifeops/src/lifeops/fda-probe.d.ts +23 -0
- package/apps/app-lifeops/src/lifeops/fda-probe.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/fda-probe.js +70 -0
- package/apps/app-lifeops/src/lifeops/feature-flags.d.ts +20 -0
- package/apps/app-lifeops/src/lifeops/feature-flags.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/feature-flags.js +241 -0
- package/apps/app-lifeops/src/lifeops/feature-flags.types.d.ts +144 -0
- package/apps/app-lifeops/src/lifeops/feature-flags.types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/feature-flags.types.js +178 -0
- package/apps/app-lifeops/src/lifeops/goal-grounding.d.ts +54 -0
- package/apps/app-lifeops/src/lifeops/goal-grounding.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/goal-grounding.js +151 -0
- package/apps/app-lifeops/src/lifeops/goal-semantic-evaluator.d.ts +12 -0
- package/apps/app-lifeops/src/lifeops/goal-semantic-evaluator.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/goal-semantic-evaluator.js +160 -0
- package/apps/app-lifeops/src/lifeops/google-api-error.d.ts +7 -0
- package/apps/app-lifeops/src/lifeops/google-api-error.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-api-error.js +35 -0
- package/apps/app-lifeops/src/lifeops/google-calendar.d.ts +67 -0
- package/apps/app-lifeops/src/lifeops/google-calendar.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-calendar.js +306 -0
- package/apps/app-lifeops/src/lifeops/google-connector-gateway.d.ts +32 -0
- package/apps/app-lifeops/src/lifeops/google-connector-gateway.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-connector-gateway.js +88 -0
- package/apps/app-lifeops/src/lifeops/google-drive.d.ts +103 -0
- package/apps/app-lifeops/src/lifeops/google-drive.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-drive.js +265 -0
- package/apps/app-lifeops/src/lifeops/google-fetch.d.ts +16 -0
- package/apps/app-lifeops/src/lifeops/google-fetch.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-fetch.js +124 -0
- package/apps/app-lifeops/src/lifeops/google-gmail.d.ts +76 -0
- package/apps/app-lifeops/src/lifeops/google-gmail.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-gmail.js +675 -0
- package/apps/app-lifeops/src/lifeops/google-managed-client.d.ts +172 -0
- package/apps/app-lifeops/src/lifeops/google-managed-client.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-managed-client.js +351 -0
- package/apps/app-lifeops/src/lifeops/google-oauth.d.ts +65 -0
- package/apps/app-lifeops/src/lifeops/google-oauth.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-oauth.js +614 -0
- package/apps/app-lifeops/src/lifeops/google-scopes.d.ts +15 -0
- package/apps/app-lifeops/src/lifeops/google-scopes.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-scopes.js +107 -0
- package/apps/app-lifeops/src/lifeops/health-bridge.d.ts +57 -0
- package/apps/app-lifeops/src/lifeops/health-bridge.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/health-bridge.js +513 -0
- package/apps/app-lifeops/src/lifeops/imessage-bridge.d.ts +99 -0
- package/apps/app-lifeops/src/lifeops/imessage-bridge.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/imessage-bridge.js +556 -0
- package/apps/app-lifeops/src/lifeops/imessage-outbound-probe.d.ts +7 -0
- package/apps/app-lifeops/src/lifeops/imessage-outbound-probe.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/imessage-outbound-probe.js +67 -0
- package/apps/app-lifeops/src/lifeops/owner-profile.d.ts +61 -0
- package/apps/app-lifeops/src/lifeops/owner-profile.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/owner-profile.js +426 -0
- package/apps/app-lifeops/src/lifeops/payment-csv-import.d.ts +23 -0
- package/apps/app-lifeops/src/lifeops/payment-csv-import.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/payment-csv-import.js +248 -0
- package/apps/app-lifeops/src/lifeops/payment-recurrence.d.ts +14 -0
- package/apps/app-lifeops/src/lifeops/payment-recurrence.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/payment-recurrence.js +217 -0
- package/apps/app-lifeops/src/lifeops/payment-types.d.ts +157 -0
- package/apps/app-lifeops/src/lifeops/payment-types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/payment-types.js +1 -0
- package/apps/app-lifeops/src/lifeops/paypal-managed-client.d.ts +110 -0
- package/apps/app-lifeops/src/lifeops/paypal-managed-client.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/paypal-managed-client.js +148 -0
- package/apps/app-lifeops/src/lifeops/plaid-managed-client.d.ts +86 -0
- package/apps/app-lifeops/src/lifeops/plaid-managed-client.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/plaid-managed-client.js +134 -0
- package/apps/app-lifeops/src/lifeops/priority-scoring.d.ts +51 -0
- package/apps/app-lifeops/src/lifeops/priority-scoring.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/priority-scoring.js +220 -0
- package/apps/app-lifeops/src/lifeops/redact-sensitive-data.d.ts +32 -0
- package/apps/app-lifeops/src/lifeops/redact-sensitive-data.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/redact-sensitive-data.js +123 -0
- package/apps/app-lifeops/src/lifeops/relative-schedule-resolver.d.ts +13 -0
- package/apps/app-lifeops/src/lifeops/relative-schedule-resolver.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/relative-schedule-resolver.js +111 -0
- package/apps/app-lifeops/src/lifeops/relative-time.d.ts +15 -0
- package/apps/app-lifeops/src/lifeops/relative-time.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/relative-time.js +233 -0
- package/apps/app-lifeops/src/lifeops/repository.d.ts +470 -0
- package/apps/app-lifeops/src/lifeops/repository.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/repository.js +4586 -0
- package/apps/app-lifeops/src/lifeops/schedule-insight.d.ts +133 -0
- package/apps/app-lifeops/src/lifeops/schedule-insight.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/schedule-insight.js +770 -0
- package/apps/app-lifeops/src/lifeops/schedule-state.d.ts +39 -0
- package/apps/app-lifeops/src/lifeops/schedule-state.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/schedule-state.js +651 -0
- package/apps/app-lifeops/src/lifeops/schedule-sync-client.d.ts +35 -0
- package/apps/app-lifeops/src/lifeops/schedule-sync-client.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/schedule-sync-client.js +184 -0
- package/apps/app-lifeops/src/lifeops/schedule-sync-contracts.d.ts +89 -0
- package/apps/app-lifeops/src/lifeops/schedule-sync-contracts.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/schedule-sync-contracts.js +13 -0
- package/apps/app-lifeops/src/lifeops/scheduler-task.d.ts +11 -0
- package/apps/app-lifeops/src/lifeops/scheduler-task.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/scheduler-task.js +165 -0
- package/apps/app-lifeops/src/lifeops/schema.d.ts +25986 -0
- package/apps/app-lifeops/src/lifeops/schema.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/schema.js +1061 -0
- package/apps/app-lifeops/src/lifeops/seed-routines.d.ts +20 -0
- package/apps/app-lifeops/src/lifeops/seed-routines.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/seed-routines.js +128 -0
- package/apps/app-lifeops/src/lifeops/service-constants.d.ts +53 -0
- package/apps/app-lifeops/src/lifeops/service-constants.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-constants.js +112 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-browser.d.ts +41 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-browser.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-browser.js +296 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-misc.d.ts +68 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-misc.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-misc.js +493 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-occurrence.d.ts +23 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-occurrence.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-occurrence.js +240 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-reminder.d.ts +29 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-reminder.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-reminder.js +202 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-browser.d.ts +26 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-browser.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-browser.js +686 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-calendar.d.ts +44 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-calendar.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-calendar.js +744 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-core.d.ts +55 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-core.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-core.js +440 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-definitions.d.ts +21 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-definitions.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-definitions.js +374 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-discord.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-discord.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-discord.js +910 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-dossier.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-dossier.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-dossier.js +262 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-drive.d.ts +12 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-drive.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-drive.js +230 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-email-unsubscribe.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-email-unsubscribe.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-email-unsubscribe.js +394 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-gmail.d.ts +42 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-gmail.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-gmail.js +1515 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-goals.d.ts +22 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-goals.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-goals.js +897 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-google.d.ts +10 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-google.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-google.js +853 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-health.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-health.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-health.js +55 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-imessage.d.ts +3 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-imessage.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-imessage.js +335 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-inbox.d.ts +46 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-inbox.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-inbox.js +599 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-payments.d.ts +3 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-payments.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-payments.js +980 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-relationships.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-relationships.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-relationships.js +109 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-reminders.d.ts +78 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-reminders.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-reminders.js +3006 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-scheduling.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-scheduling.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-scheduling.js +340 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-screentime.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-screentime.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-screentime.js +511 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-signal.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-signal.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-signal.js +288 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-sleep.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-sleep.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-sleep.js +144 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-status.d.ts +26 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-status.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-status.js +364 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-subscriptions.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-subscriptions.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-subscriptions.js +826 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-telegram.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-telegram.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-telegram.js +278 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-travel.d.ts +33 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-travel.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-travel.js +274 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-whatsapp.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-whatsapp.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-whatsapp.js +100 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-workflows.d.ts +15 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-workflows.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-workflows.js +772 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-x-read.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-x-read.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-x-read.js +350 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-x.d.ts +65 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-x.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-x.js +569 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-calendar.d.ts +43 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-calendar.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-calendar.js +305 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-connector.d.ts +19 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-connector.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-connector.js +601 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-gmail.d.ts +93 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-gmail.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-gmail.js +975 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-health.d.ts +3 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-health.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-health.js +55 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-task.d.ts +9 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-task.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-task.js +352 -0
- package/apps/app-lifeops/src/lifeops/service-normalize.d.ts +27 -0
- package/apps/app-lifeops/src/lifeops/service-normalize.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-normalize.js +193 -0
- package/apps/app-lifeops/src/lifeops/service-types.d.ts +59 -0
- package/apps/app-lifeops/src/lifeops/service-types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-types.js +8 -0
- package/apps/app-lifeops/src/lifeops/service.d.ts +1419 -0
- package/apps/app-lifeops/src/lifeops/service.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service.js +64 -0
- package/apps/app-lifeops/src/lifeops/signal-auth.d.ts +29 -0
- package/apps/app-lifeops/src/lifeops/signal-auth.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/signal-auth.js +304 -0
- package/apps/app-lifeops/src/lifeops/signal-local-client.d.ts +61 -0
- package/apps/app-lifeops/src/lifeops/signal-local-client.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/signal-local-client.js +145 -0
- package/apps/app-lifeops/src/lifeops/signal-runtime-config.d.ts +13 -0
- package/apps/app-lifeops/src/lifeops/signal-runtime-config.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/signal-runtime-config.js +42 -0
- package/apps/app-lifeops/src/lifeops/sleep-cycle.d.ts +32 -0
- package/apps/app-lifeops/src/lifeops/sleep-cycle.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/sleep-cycle.js +438 -0
- package/apps/app-lifeops/src/lifeops/sleep-episode-store.d.ts +24 -0
- package/apps/app-lifeops/src/lifeops/sleep-episode-store.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/sleep-episode-store.js +50 -0
- package/apps/app-lifeops/src/lifeops/sleep-regularity.d.ts +19 -0
- package/apps/app-lifeops/src/lifeops/sleep-regularity.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/sleep-regularity.js +221 -0
- package/apps/app-lifeops/src/lifeops/sleep-wake-events.d.ts +48 -0
- package/apps/app-lifeops/src/lifeops/sleep-wake-events.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/sleep-wake-events.js +150 -0
- package/apps/app-lifeops/src/lifeops/social-taxonomy.d.ts +21 -0
- package/apps/app-lifeops/src/lifeops/social-taxonomy.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/social-taxonomy.js +221 -0
- package/apps/app-lifeops/src/lifeops/source-reliability.d.ts +38 -0
- package/apps/app-lifeops/src/lifeops/source-reliability.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/source-reliability.js +66 -0
- package/apps/app-lifeops/src/lifeops/sql.d.ts +26 -0
- package/apps/app-lifeops/src/lifeops/sql.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/sql.js +140 -0
- package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.d.ts +79 -0
- package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.js +842 -0
- package/apps/app-lifeops/src/lifeops/subscriptions-types.d.ts +80 -0
- package/apps/app-lifeops/src/lifeops/subscriptions-types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/subscriptions-types.js +1 -0
- package/apps/app-lifeops/src/lifeops/telegram-auth.d.ts +62 -0
- package/apps/app-lifeops/src/lifeops/telegram-auth.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/telegram-auth.js +558 -0
- package/apps/app-lifeops/src/lifeops/telegram-local-client.d.ts +121 -0
- package/apps/app-lifeops/src/lifeops/telegram-local-client.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/telegram-local-client.js +427 -0
- package/apps/app-lifeops/src/lifeops/telemetry-mapping.d.ts +14 -0
- package/apps/app-lifeops/src/lifeops/telemetry-mapping.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/telemetry-mapping.js +139 -0
- package/apps/app-lifeops/src/lifeops/telemetry-retention.d.ts +21 -0
- package/apps/app-lifeops/src/lifeops/telemetry-retention.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/telemetry-retention.js +19 -0
- package/apps/app-lifeops/src/lifeops/time-util.d.ts +10 -0
- package/apps/app-lifeops/src/lifeops/time-util.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/time-util.js +18 -0
- package/apps/app-lifeops/src/lifeops/time.d.ts +17 -0
- package/apps/app-lifeops/src/lifeops/time.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/time.js +132 -0
- package/apps/app-lifeops/src/lifeops/token-encryption.d.ts +49 -0
- package/apps/app-lifeops/src/lifeops/token-encryption.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/token-encryption.js +123 -0
- package/apps/app-lifeops/src/lifeops/travel-adapters/duffel.d.ts +181 -0
- package/apps/app-lifeops/src/lifeops/travel-adapters/duffel.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/travel-adapters/duffel.js +422 -0
- package/apps/app-lifeops/src/lifeops/travel-booking.types.d.ts +46 -0
- package/apps/app-lifeops/src/lifeops/travel-booking.types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/travel-booking.types.js +1 -0
- package/apps/app-lifeops/src/lifeops/twilio.d.ts +34 -0
- package/apps/app-lifeops/src/lifeops/twilio.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/twilio.js +198 -0
- package/apps/app-lifeops/src/lifeops/whatsapp-client.d.ts +54 -0
- package/apps/app-lifeops/src/lifeops/whatsapp-client.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/whatsapp-client.js +231 -0
- package/apps/app-lifeops/src/lifeops/x-managed-client.d.ts +124 -0
- package/apps/app-lifeops/src/lifeops/x-managed-client.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/x-managed-client.js +238 -0
- package/apps/app-lifeops/src/lifeops/x-poster.d.ts +41 -0
- package/apps/app-lifeops/src/lifeops/x-poster.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/x-poster.js +332 -0
- package/apps/app-lifeops/src/lifeops/x-reader.d.ts +70 -0
- package/apps/app-lifeops/src/lifeops/x-reader.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/x-reader.js +262 -0
- package/apps/app-lifeops/src/lifeops/x402-payment-handler.d.ts +85 -0
- package/apps/app-lifeops/src/lifeops/x402-payment-handler.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/x402-payment-handler.js +142 -0
- package/apps/app-lifeops/src/lifeops-route.d.ts +74 -0
- package/apps/app-lifeops/src/lifeops-route.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops-route.js +204 -0
- package/apps/app-lifeops/src/platform/lifeops-github.d.ts +15 -0
- package/apps/app-lifeops/src/platform/lifeops-github.d.ts.map +1 -0
- package/apps/app-lifeops/src/platform/lifeops-github.js +135 -0
- package/apps/app-lifeops/src/providers/website-blocker.d.ts +3 -0
- package/apps/app-lifeops/src/providers/website-blocker.d.ts.map +1 -0
- package/apps/app-lifeops/src/providers/website-blocker.js +116 -0
- package/apps/app-lifeops/src/public.d.ts +4 -0
- package/apps/app-lifeops/src/public.d.ts.map +1 -0
- package/apps/app-lifeops/src/public.js +3 -0
- package/apps/app-lifeops/src/routes/cloud-features-routes.d.ts +9 -0
- package/apps/app-lifeops/src/routes/cloud-features-routes.d.ts.map +1 -0
- package/apps/app-lifeops/src/routes/cloud-features-routes.js +171 -0
- package/apps/app-lifeops/src/routes/lifeops-routes.d.ts +20 -0
- package/apps/app-lifeops/src/routes/lifeops-routes.d.ts.map +1 -0
- package/apps/app-lifeops/src/routes/lifeops-routes.js +2176 -0
- package/apps/app-lifeops/src/routes/plugin.d.ts +3 -0
- package/apps/app-lifeops/src/routes/plugin.d.ts.map +1 -0
- package/apps/app-lifeops/src/routes/plugin.js +386 -0
- package/apps/app-lifeops/src/routes/sleep-routes.d.ts +3 -0
- package/apps/app-lifeops/src/routes/sleep-routes.d.ts.map +1 -0
- package/apps/app-lifeops/src/routes/sleep-routes.js +109 -0
- package/apps/app-lifeops/src/routes/travel-provider-relay-routes.d.ts +9 -0
- package/apps/app-lifeops/src/routes/travel-provider-relay-routes.d.ts.map +1 -0
- package/apps/app-lifeops/src/routes/travel-provider-relay-routes.js +144 -0
- package/apps/app-lifeops/src/routes/website-blocker-routes.d.ts +7 -0
- package/apps/app-lifeops/src/routes/website-blocker-routes.d.ts.map +1 -0
- package/apps/app-lifeops/src/routes/website-blocker-routes.js +169 -0
- package/apps/app-lifeops/src/types/app-blocker-settings-card.d.ts +2 -0
- package/apps/app-lifeops/src/types/app-blocker-settings-card.d.ts.map +1 -0
- package/apps/app-lifeops/src/types/app-blocker-settings-card.js +1 -0
- package/apps/app-lifeops/src/types/index.d.ts +3 -0
- package/apps/app-lifeops/src/types/index.d.ts.map +1 -0
- package/apps/app-lifeops/src/types/index.js +1 -0
- package/apps/app-lifeops/src/types/website-blocker-settings-card.d.ts +2 -0
- package/apps/app-lifeops/src/types/website-blocker-settings-card.d.ts.map +1 -0
- package/apps/app-lifeops/src/types/website-blocker-settings-card.js +1 -0
- package/apps/app-lifeops/src/ui.d.ts +11 -0
- package/apps/app-lifeops/src/ui.d.ts.map +1 -0
- package/apps/app-lifeops/src/ui.js +9 -0
- package/apps/app-lifeops/src/utils/lifeops-url.d.ts +5 -0
- package/apps/app-lifeops/src/utils/lifeops-url.d.ts.map +1 -0
- package/apps/app-lifeops/src/utils/lifeops-url.js +35 -0
- package/apps/app-lifeops/src/website-blocker/access.d.ts +8 -0
- package/apps/app-lifeops/src/website-blocker/access.d.ts.map +1 -0
- package/apps/app-lifeops/src/website-blocker/access.js +41 -0
- package/apps/app-lifeops/src/website-blocker/engine.d.ts +137 -0
- package/apps/app-lifeops/src/website-blocker/engine.d.ts.map +1 -0
- package/apps/app-lifeops/src/website-blocker/engine.js +1235 -0
- package/apps/app-lifeops/src/website-blocker/permissions.d.ts +9 -0
- package/apps/app-lifeops/src/website-blocker/permissions.d.ts.map +1 -0
- package/apps/app-lifeops/src/website-blocker/permissions.js +1 -0
- package/apps/app-lifeops/src/website-blocker/public.d.ts +13 -0
- package/apps/app-lifeops/src/website-blocker/public.d.ts.map +1 -0
- package/apps/app-lifeops/src/website-blocker/public.js +10 -0
- package/apps/app-lifeops/src/website-blocker/roles.d.ts +13 -0
- package/apps/app-lifeops/src/website-blocker/roles.d.ts.map +1 -0
- package/apps/app-lifeops/src/website-blocker/roles.js +20 -0
- package/apps/app-lifeops/src/website-blocker/service.d.ts +21 -0
- package/apps/app-lifeops/src/website-blocker/service.d.ts.map +1 -0
- package/apps/app-lifeops/src/website-blocker/service.js +268 -0
- package/apps/app-steward/src/ApprovalQueue.d.ts +18 -0
- package/apps/app-steward/src/ApprovalQueue.d.ts.map +1 -0
- package/apps/app-steward/src/ApprovalQueue.js +141 -0
- package/apps/app-steward/src/StewardLogo.d.ts +11 -0
- package/apps/app-steward/src/StewardLogo.d.ts.map +1 -0
- package/apps/app-steward/src/StewardLogo.js +4 -0
- package/apps/app-steward/src/StewardView.d.ts +6 -0
- package/apps/app-steward/src/StewardView.d.ts.map +1 -0
- package/apps/app-steward/src/StewardView.js +45 -0
- package/apps/app-steward/src/TransactionHistory.d.ts +22 -0
- package/apps/app-steward/src/TransactionHistory.d.ts.map +1 -0
- package/apps/app-steward/src/TransactionHistory.js +100 -0
- package/apps/app-steward/src/actions/check-balance.d.ts +17 -0
- package/apps/app-steward/src/actions/check-balance.d.ts.map +1 -0
- package/apps/app-steward/src/actions/check-balance.js +168 -0
- package/apps/app-steward/src/actions/execute-trade.d.ts +17 -0
- package/apps/app-steward/src/actions/execute-trade.d.ts.map +1 -0
- package/apps/app-steward/src/actions/execute-trade.js +307 -0
- package/apps/app-steward/src/actions/get-receive-address.d.ts +13 -0
- package/apps/app-steward/src/actions/get-receive-address.d.ts.map +1 -0
- package/apps/app-steward/src/actions/get-receive-address.js +127 -0
- package/apps/app-steward/src/actions/prepare-swap.d.ts +13 -0
- package/apps/app-steward/src/actions/prepare-swap.d.ts.map +1 -0
- package/apps/app-steward/src/actions/prepare-swap.js +303 -0
- package/apps/app-steward/src/actions/prepare-transfer.d.ts +14 -0
- package/apps/app-steward/src/actions/prepare-transfer.d.ts.map +1 -0
- package/apps/app-steward/src/actions/prepare-transfer.js +217 -0
- package/apps/app-steward/src/actions/transfer-token.d.ts +17 -0
- package/apps/app-steward/src/actions/transfer-token.d.ts.map +1 -0
- package/apps/app-steward/src/actions/transfer-token.js +479 -0
- package/apps/app-steward/src/actions/wallet-action-shared.d.ts +15 -0
- package/apps/app-steward/src/actions/wallet-action-shared.d.ts.map +1 -0
- package/apps/app-steward/src/actions/wallet-action-shared.js +24 -0
- package/apps/app-steward/src/api/bsc-trade.d.ts +36 -0
- package/apps/app-steward/src/api/bsc-trade.d.ts.map +1 -0
- package/apps/app-steward/src/api/bsc-trade.js +782 -0
- package/apps/app-steward/src/api/tx-service.d.ts +53 -0
- package/apps/app-steward/src/api/tx-service.d.ts.map +1 -0
- package/apps/app-steward/src/api/tx-service.js +217 -0
- package/apps/app-steward/src/api/wallet-bsc-routes.d.ts +63 -0
- package/apps/app-steward/src/api/wallet-bsc-routes.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet-bsc-routes.js +318 -0
- package/apps/app-steward/src/api/wallet-capability.d.ts +2 -0
- package/apps/app-steward/src/api/wallet-capability.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet-capability.js +1 -0
- package/apps/app-steward/src/api/wallet-dex-prices.d.ts +43 -0
- package/apps/app-steward/src/api/wallet-dex-prices.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet-dex-prices.js +149 -0
- package/apps/app-steward/src/api/wallet-evm-balance.d.ts +66 -0
- package/apps/app-steward/src/api/wallet-evm-balance.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet-evm-balance.js +666 -0
- package/apps/app-steward/src/api/wallet-routes.d.ts +28 -0
- package/apps/app-steward/src/api/wallet-routes.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet-routes.js +525 -0
- package/apps/app-steward/src/api/wallet-rpc.d.ts +67 -0
- package/apps/app-steward/src/api/wallet-rpc.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet-rpc.js +452 -0
- package/apps/app-steward/src/api/wallet-trading-profile.d.ts +31 -0
- package/apps/app-steward/src/api/wallet-trading-profile.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet-trading-profile.js +560 -0
- package/apps/app-steward/src/api/wallet.d.ts +60 -0
- package/apps/app-steward/src/api/wallet.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet.js +641 -0
- package/apps/app-steward/src/browser-workspace-wallet.d.ts +66 -0
- package/apps/app-steward/src/browser-workspace-wallet.d.ts.map +1 -0
- package/apps/app-steward/src/browser-workspace-wallet.js +129 -0
- package/apps/app-steward/src/chain-utils.d.ts +10 -0
- package/apps/app-steward/src/chain-utils.d.ts.map +1 -0
- package/apps/app-steward/src/chain-utils.js +83 -0
- package/apps/app-steward/src/index.d.ts +20 -0
- package/apps/app-steward/src/index.d.ts.map +1 -0
- package/apps/app-steward/src/index.js +19 -0
- package/apps/app-steward/src/plugin.d.ts +21 -0
- package/apps/app-steward/src/plugin.d.ts.map +1 -0
- package/apps/app-steward/src/plugin.js +325 -0
- package/apps/app-steward/src/routes/server-wallet-trade.d.ts +27 -0
- package/apps/app-steward/src/routes/server-wallet-trade.d.ts.map +1 -0
- package/apps/app-steward/src/routes/server-wallet-trade.js +56 -0
- package/apps/app-steward/src/routes/steward-bridge.d.ts +202 -0
- package/apps/app-steward/src/routes/steward-bridge.d.ts.map +1 -0
- package/apps/app-steward/src/routes/steward-bridge.js +858 -0
- package/apps/app-steward/src/routes/steward-compat-routes.d.ts +21 -0
- package/apps/app-steward/src/routes/steward-compat-routes.d.ts.map +1 -0
- package/apps/app-steward/src/routes/steward-compat-routes.js +372 -0
- package/apps/app-steward/src/routes/wallet-browser-compat-routes.d.ts +4 -0
- package/apps/app-steward/src/routes/wallet-browser-compat-routes.d.ts.map +1 -0
- package/apps/app-steward/src/routes/wallet-browser-compat-routes.js +300 -0
- package/apps/app-steward/src/routes/wallet-bsc-core-routes.d.ts +15 -0
- package/apps/app-steward/src/routes/wallet-bsc-core-routes.d.ts.map +1 -0
- package/apps/app-steward/src/routes/wallet-bsc-core-routes.js +42 -0
- package/apps/app-steward/src/routes/wallet-compat-routes.d.ts +13 -0
- package/apps/app-steward/src/routes/wallet-compat-routes.d.ts.map +1 -0
- package/apps/app-steward/src/routes/wallet-compat-routes.js +200 -0
- package/apps/app-steward/src/routes/wallet-core-routes.d.ts +16 -0
- package/apps/app-steward/src/routes/wallet-core-routes.d.ts.map +1 -0
- package/apps/app-steward/src/routes/wallet-core-routes.js +57 -0
- package/apps/app-steward/src/routes/wallet-export-guard.d.ts +44 -0
- package/apps/app-steward/src/routes/wallet-export-guard.d.ts.map +1 -0
- package/apps/app-steward/src/routes/wallet-export-guard.js +248 -0
- package/apps/app-steward/src/routes/wallet-trade-compat-routes.d.ts +11 -0
- package/apps/app-steward/src/routes/wallet-trade-compat-routes.d.ts.map +1 -0
- package/apps/app-steward/src/routes/wallet-trade-compat-routes.js +528 -0
- package/apps/app-steward/src/security/hydrate-wallet-keys-from-platform-store.d.ts +7 -0
- package/apps/app-steward/src/security/hydrate-wallet-keys-from-platform-store.d.ts.map +1 -0
- package/apps/app-steward/src/security/hydrate-wallet-keys-from-platform-store.js +40 -0
- package/apps/app-steward/src/security/wallet-os-store-actions.d.ts +14 -0
- package/apps/app-steward/src/security/wallet-os-store-actions.d.ts.map +1 -0
- package/apps/app-steward/src/security/wallet-os-store-actions.js +70 -0
- package/apps/app-steward/src/services/privy-wallets.d.ts +18 -0
- package/apps/app-steward/src/services/privy-wallets.d.ts.map +1 -0
- package/apps/app-steward/src/services/privy-wallets.js +225 -0
- package/apps/app-steward/src/services/steward-credentials.d.ts +37 -0
- package/apps/app-steward/src/services/steward-credentials.d.ts.map +1 -0
- package/apps/app-steward/src/services/steward-credentials.js +91 -0
- package/apps/app-steward/src/services/steward-evm-account.d.ts +67 -0
- package/apps/app-steward/src/services/steward-evm-account.d.ts.map +1 -0
- package/apps/app-steward/src/services/steward-evm-account.js +309 -0
- package/apps/app-steward/src/services/steward-evm-bridge.d.ts +35 -0
- package/apps/app-steward/src/services/steward-evm-bridge.d.ts.map +1 -0
- package/apps/app-steward/src/services/steward-evm-bridge.js +101 -0
- package/apps/app-steward/src/services/steward-sidecar/health-check.d.ts +9 -0
- package/apps/app-steward/src/services/steward-sidecar/health-check.d.ts.map +1 -0
- package/apps/app-steward/src/services/steward-sidecar/health-check.js +34 -0
- package/apps/app-steward/src/services/steward-sidecar/helpers.d.ts +21 -0
- package/apps/app-steward/src/services/steward-sidecar/helpers.d.ts.map +1 -0
- package/apps/app-steward/src/services/steward-sidecar/helpers.js +71 -0
- package/apps/app-steward/src/services/steward-sidecar/process-management.d.ts +9 -0
- package/apps/app-steward/src/services/steward-sidecar/process-management.d.ts.map +1 -0
- package/apps/app-steward/src/services/steward-sidecar/process-management.js +53 -0
- package/apps/app-steward/src/services/steward-sidecar/types.d.ts +60 -0
- package/apps/app-steward/src/services/steward-sidecar/types.d.ts.map +1 -0
- package/apps/app-steward/src/services/steward-sidecar/types.js +17 -0
- package/apps/app-steward/src/services/steward-sidecar/wallet-setup.d.ts +9 -0
- package/apps/app-steward/src/services/steward-sidecar/wallet-setup.d.ts.map +1 -0
- package/apps/app-steward/src/services/steward-sidecar/wallet-setup.js +114 -0
- package/apps/app-steward/src/services/steward-sidecar.d.ts +69 -0
- package/apps/app-steward/src/services/steward-sidecar.d.ts.map +1 -0
- package/apps/app-steward/src/services/steward-sidecar.js +383 -0
- package/apps/app-steward/src/services/steward-wallet.d.ts +25 -0
- package/apps/app-steward/src/services/steward-wallet.d.ts.map +1 -0
- package/apps/app-steward/src/services/steward-wallet.js +332 -0
- package/apps/app-steward/src/types/bsc-trade.d.ts +181 -0
- package/apps/app-steward/src/types/bsc-trade.d.ts.map +1 -0
- package/apps/app-steward/src/types/bsc-trade.js +8 -0
- package/apps/app-steward/src/types/index.d.ts +3 -0
- package/apps/app-steward/src/types/index.d.ts.map +1 -0
- package/apps/app-steward/src/types/index.js +2 -0
- package/apps/app-steward/src/types/steward.d.ts +85 -0
- package/apps/app-steward/src/types/steward.d.ts.map +1 -0
- package/apps/app-steward/src/types/steward.js +9 -0
- package/apps/app-task-coordinator/src/AgentTabsSection.d.ts +16 -0
- package/apps/app-task-coordinator/src/AgentTabsSection.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/AgentTabsSection.js +57 -0
- package/apps/app-task-coordinator/src/CodingAgentControlChip.d.ts +6 -0
- package/apps/app-task-coordinator/src/CodingAgentControlChip.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/CodingAgentControlChip.js +26 -0
- package/apps/app-task-coordinator/src/CodingAgentSettingsSection.d.ts +2 -0
- package/apps/app-task-coordinator/src/CodingAgentSettingsSection.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/CodingAgentSettingsSection.js +343 -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 +417 -0
- package/apps/app-task-coordinator/src/GlobalPrefsSection.d.ts +10 -0
- package/apps/app-task-coordinator/src/GlobalPrefsSection.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/GlobalPrefsSection.js +40 -0
- package/apps/app-task-coordinator/src/LlmProviderSection.d.ts +10 -0
- package/apps/app-task-coordinator/src/LlmProviderSection.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/LlmProviderSection.js +47 -0
- package/apps/app-task-coordinator/src/ModelConfigSection.d.ts +16 -0
- package/apps/app-task-coordinator/src/ModelConfigSection.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/ModelConfigSection.js +12 -0
- package/apps/app-task-coordinator/src/PtyConsoleBase.d.ts +15 -0
- package/apps/app-task-coordinator/src/PtyConsoleBase.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/PtyConsoleBase.js +37 -0
- package/apps/app-task-coordinator/src/PtyConsoleDrawer.d.ts +16 -0
- package/apps/app-task-coordinator/src/PtyConsoleDrawer.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/PtyConsoleDrawer.js +28 -0
- package/apps/app-task-coordinator/src/PtyConsoleSidePanel.d.ts +9 -0
- package/apps/app-task-coordinator/src/PtyConsoleSidePanel.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/PtyConsoleSidePanel.js +10 -0
- package/apps/app-task-coordinator/src/PtyTerminalPane.d.ts +10 -0
- package/apps/app-task-coordinator/src/PtyTerminalPane.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/PtyTerminalPane.js +178 -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 +47 -0
- package/apps/app-task-coordinator/src/api/coordinator-types.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/api/coordinator-types.js +1 -0
- package/apps/app-task-coordinator/src/api/coordinator-wiring.d.ts +46 -0
- package/apps/app-task-coordinator/src/api/coordinator-wiring.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/api/coordinator-wiring.js +108 -0
- package/apps/app-task-coordinator/src/coding-agent-settings-shared.d.ts +38 -0
- package/apps/app-task-coordinator/src/coding-agent-settings-shared.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/coding-agent-settings-shared.js +92 -0
- package/apps/app-task-coordinator/src/index.d.ts +17 -0
- package/apps/app-task-coordinator/src/index.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/index.js +16 -0
- package/apps/app-task-coordinator/src/pty-status-dots.d.ts +2 -0
- package/apps/app-task-coordinator/src/pty-status-dots.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/pty-status-dots.js +1 -0
- package/apps/app-task-coordinator/src/session-hydration.d.ts +2 -0
- package/apps/app-task-coordinator/src/session-hydration.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/session-hydration.js +1 -0
- package/apps/app-training/src/backends/atropos.d.ts +31 -0
- package/apps/app-training/src/backends/atropos.d.ts.map +1 -0
- package/apps/app-training/src/backends/atropos.js +61 -0
- package/apps/app-training/src/backends/native.d.ts +50 -0
- package/apps/app-training/src/backends/native.d.ts.map +1 -0
- package/apps/app-training/src/backends/native.js +130 -0
- package/apps/app-training/src/backends/tinker.d.ts +27 -0
- package/apps/app-training/src/backends/tinker.d.ts.map +1 -0
- package/apps/app-training/src/backends/tinker.js +56 -0
- package/apps/app-training/src/core/context-audit.d.ts +51 -0
- package/apps/app-training/src/core/context-audit.d.ts.map +1 -0
- package/apps/app-training/src/core/context-audit.js +141 -0
- package/apps/app-training/src/core/context-catalog.d.ts +47 -0
- package/apps/app-training/src/core/context-catalog.d.ts.map +1 -0
- package/apps/app-training/src/core/context-catalog.js +265 -0
- package/apps/app-training/src/core/context-types.d.ts +3 -0
- package/apps/app-training/src/core/context-types.d.ts.map +1 -0
- package/apps/app-training/src/core/context-types.js +11 -0
- package/apps/app-training/src/core/dataset-generator.d.ts +125 -0
- package/apps/app-training/src/core/dataset-generator.d.ts.map +1 -0
- package/apps/app-training/src/core/dataset-generator.js +703 -0
- package/apps/app-training/src/core/index.d.ts +13 -0
- package/apps/app-training/src/core/index.d.ts.map +1 -0
- package/apps/app-training/src/core/index.js +12 -0
- package/apps/app-training/src/core/privacy-filter.d.ts +73 -0
- package/apps/app-training/src/core/privacy-filter.d.ts.map +1 -0
- package/apps/app-training/src/core/privacy-filter.js +169 -0
- package/apps/app-training/src/core/replay-validator.d.ts +136 -0
- package/apps/app-training/src/core/replay-validator.d.ts.map +1 -0
- package/apps/app-training/src/core/replay-validator.js +305 -0
- package/apps/app-training/src/core/roleplay-executor.d.ts +123 -0
- package/apps/app-training/src/core/roleplay-executor.d.ts.map +1 -0
- package/apps/app-training/src/core/roleplay-executor.js +645 -0
- package/apps/app-training/src/core/roleplay-trajectories.d.ts +54 -0
- package/apps/app-training/src/core/roleplay-trajectories.d.ts.map +1 -0
- package/apps/app-training/src/core/roleplay-trajectories.js +73 -0
- package/apps/app-training/src/core/scenario-blueprints.d.ts +62 -0
- package/apps/app-training/src/core/scenario-blueprints.d.ts.map +1 -0
- package/apps/app-training/src/core/scenario-blueprints.js +790 -0
- package/apps/app-training/src/core/training-config.d.ts +52 -0
- package/apps/app-training/src/core/training-config.d.ts.map +1 -0
- package/apps/app-training/src/core/training-config.js +135 -0
- package/apps/app-training/src/core/training-orchestrator.d.ts +107 -0
- package/apps/app-training/src/core/training-orchestrator.d.ts.map +1 -0
- package/apps/app-training/src/core/training-orchestrator.js +413 -0
- package/apps/app-training/src/core/trajectory-task-datasets.d.ts +38 -0
- package/apps/app-training/src/core/trajectory-task-datasets.d.ts.map +1 -0
- package/apps/app-training/src/core/trajectory-task-datasets.js +300 -0
- package/apps/app-training/src/core/vertex-tuning.d.ts +139 -0
- package/apps/app-training/src/core/vertex-tuning.d.ts.map +1 -0
- package/apps/app-training/src/core/vertex-tuning.js +268 -0
- package/apps/app-training/src/index.d.ts +4 -0
- package/apps/app-training/src/index.d.ts.map +1 -0
- package/apps/app-training/src/index.js +3 -0
- package/apps/app-training/src/optimizers/bootstrap-fewshot.d.ts +42 -0
- package/apps/app-training/src/optimizers/bootstrap-fewshot.d.ts.map +1 -0
- package/apps/app-training/src/optimizers/bootstrap-fewshot.js +90 -0
- package/apps/app-training/src/optimizers/index.d.ts +6 -0
- package/apps/app-training/src/optimizers/index.d.ts.map +1 -0
- package/apps/app-training/src/optimizers/index.js +4 -0
- package/apps/app-training/src/optimizers/instruction-search.d.ts +39 -0
- package/apps/app-training/src/optimizers/instruction-search.d.ts.map +1 -0
- package/apps/app-training/src/optimizers/instruction-search.js +82 -0
- package/apps/app-training/src/optimizers/prompt-evolution.d.ts +39 -0
- package/apps/app-training/src/optimizers/prompt-evolution.d.ts.map +1 -0
- package/apps/app-training/src/optimizers/prompt-evolution.js +111 -0
- package/apps/app-training/src/optimizers/scoring.d.ts +82 -0
- package/apps/app-training/src/optimizers/scoring.d.ts.map +1 -0
- package/apps/app-training/src/optimizers/scoring.js +151 -0
- package/apps/app-training/src/optimizers/types.d.ts +105 -0
- package/apps/app-training/src/optimizers/types.d.ts.map +1 -0
- package/apps/app-training/src/optimizers/types.js +17 -0
- package/apps/app-training/src/routes/index.d.ts +3 -0
- package/apps/app-training/src/routes/index.d.ts.map +1 -0
- package/apps/app-training/src/routes/index.js +2 -0
- package/apps/app-training/src/routes/training-routes.d.ts +11 -0
- package/apps/app-training/src/routes/training-routes.d.ts.map +1 -0
- package/apps/app-training/src/routes/training-routes.js +777 -0
- package/apps/app-training/src/routes/trajectory-routes.d.ts +19 -0
- package/apps/app-training/src/routes/trajectory-routes.d.ts.map +1 -0
- package/apps/app-training/src/routes/trajectory-routes.js +912 -0
- package/apps/app-training/src/services/index.d.ts +5 -0
- package/apps/app-training/src/services/index.d.ts.map +1 -0
- package/apps/app-training/src/services/index.js +3 -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 +39 -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/services/training-service.d.ts +46 -0
- package/apps/app-training/src/services/training-service.d.ts.map +1 -0
- package/apps/app-training/src/services/training-service.js +109 -0
- package/apps/app-training/src/services/training-trigger.d.ts +180 -0
- package/apps/app-training/src/services/training-trigger.d.ts.map +1 -0
- package/apps/app-training/src/services/training-trigger.js +385 -0
- package/apps/app-vincent/src/client.d.ts +17 -0
- package/apps/app-vincent/src/client.d.ts.map +1 -0
- package/apps/app-vincent/src/client.js +38 -0
- package/apps/app-vincent/src/vincent-contracts.d.ts +52 -0
- package/apps/app-vincent/src/vincent-contracts.d.ts.map +1 -0
- package/apps/app-vincent/src/vincent-contracts.js +4 -0
- package/package.json +78 -51
- package/packages/agent/src/actions/agent-inbox.d.ts +14 -0
- package/packages/agent/src/actions/agent-inbox.d.ts.map +1 -0
- package/packages/agent/src/actions/agent-inbox.js +124 -0
- package/packages/agent/src/actions/browser-session.d.ts +3 -0
- package/packages/agent/src/actions/browser-session.d.ts.map +1 -0
- package/packages/agent/src/actions/browser-session.js +237 -0
- package/packages/agent/src/actions/configure-plugin.d.ts +11 -0
- package/packages/agent/src/actions/configure-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/configure-plugin.js +137 -0
- package/packages/agent/src/actions/connector-control.d.ts +24 -0
- package/packages/agent/src/actions/connector-control.d.ts.map +1 -0
- package/packages/agent/src/actions/connector-control.js +479 -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 +256 -0
- package/packages/agent/src/actions/context-signal-lexicon.d.ts +17 -0
- package/packages/agent/src/actions/context-signal-lexicon.d.ts.map +1 -0
- package/packages/agent/src/actions/context-signal-lexicon.js +212 -0
- package/packages/agent/src/actions/context-signal.d.ts +46 -0
- package/packages/agent/src/actions/context-signal.d.ts.map +1 -0
- package/packages/agent/src/actions/context-signal.js +134 -0
- package/packages/agent/src/actions/database.d.ts +15 -0
- package/packages/agent/src/actions/database.d.ts.map +1 -0
- package/packages/agent/src/actions/database.js +473 -0
- package/packages/agent/src/actions/eject-plugin.d.ts +3 -0
- package/packages/agent/src/actions/eject-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/eject-plugin.js +80 -0
- package/packages/agent/src/actions/entity-actions.d.ts +7 -0
- package/packages/agent/src/actions/entity-actions.d.ts.map +1 -0
- package/packages/agent/src/actions/entity-actions.js +1016 -0
- package/packages/agent/src/actions/extract-page.d.ts +3 -0
- package/packages/agent/src/actions/extract-page.d.ts.map +1 -0
- package/packages/agent/src/actions/extract-page.js +154 -0
- package/packages/agent/src/actions/extract-params.d.ts +87 -0
- package/packages/agent/src/actions/extract-params.d.ts.map +1 -0
- package/packages/agent/src/actions/extract-params.js +194 -0
- package/packages/agent/src/actions/get-self-status.d.ts +13 -0
- package/packages/agent/src/actions/get-self-status.d.ts.map +1 -0
- package/packages/agent/src/actions/get-self-status.js +107 -0
- package/packages/agent/src/actions/grounded-action-reply.d.ts +22 -0
- package/packages/agent/src/actions/grounded-action-reply.d.ts.map +1 -0
- package/packages/agent/src/actions/grounded-action-reply.js +288 -0
- package/packages/agent/src/actions/index.d.ts +26 -0
- package/packages/agent/src/actions/index.d.ts.map +1 -0
- package/packages/agent/src/actions/index.js +25 -0
- package/packages/agent/src/actions/install-plugin.d.ts +3 -0
- package/packages/agent/src/actions/install-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/install-plugin.js +97 -0
- package/packages/agent/src/actions/list-ejected.d.ts +3 -0
- package/packages/agent/src/actions/list-ejected.d.ts.map +1 -0
- package/packages/agent/src/actions/list-ejected.js +79 -0
- package/packages/agent/src/actions/list-installed-plugins.d.ts +11 -0
- package/packages/agent/src/actions/list-installed-plugins.d.ts.map +1 -0
- package/packages/agent/src/actions/list-installed-plugins.js +142 -0
- package/packages/agent/src/actions/log-level.d.ts +3 -0
- package/packages/agent/src/actions/log-level.d.ts.map +1 -0
- package/packages/agent/src/actions/log-level.js +126 -0
- package/packages/agent/src/actions/logs.d.ts +12 -0
- package/packages/agent/src/actions/logs.d.ts.map +1 -0
- package/packages/agent/src/actions/logs.js +300 -0
- package/packages/agent/src/actions/manage-tasks.d.ts +8 -0
- package/packages/agent/src/actions/manage-tasks.d.ts.map +1 -0
- package/packages/agent/src/actions/manage-tasks.js +268 -0
- package/packages/agent/src/actions/media.d.ts +21 -0
- package/packages/agent/src/actions/media.d.ts.map +1 -0
- package/packages/agent/src/actions/media.js +504 -0
- package/packages/agent/src/actions/memories.d.ts +12 -0
- package/packages/agent/src/actions/memories.d.ts.map +1 -0
- package/packages/agent/src/actions/memories.js +310 -0
- package/packages/agent/src/actions/read-channel.d.ts +3 -0
- package/packages/agent/src/actions/read-channel.d.ts.map +1 -0
- package/packages/agent/src/actions/read-channel.js +265 -0
- package/packages/agent/src/actions/read-messages.d.ts +14 -0
- package/packages/agent/src/actions/read-messages.d.ts.map +1 -0
- package/packages/agent/src/actions/read-messages.js +269 -0
- package/packages/agent/src/actions/recent-conversation-texts.d.ts +9 -0
- package/packages/agent/src/actions/recent-conversation-texts.d.ts.map +1 -0
- package/packages/agent/src/actions/recent-conversation-texts.js +76 -0
- package/packages/agent/src/actions/reinject-plugin.d.ts +3 -0
- package/packages/agent/src/actions/reinject-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/reinject-plugin.js +79 -0
- package/packages/agent/src/actions/restart.d.ts +19 -0
- package/packages/agent/src/actions/restart.d.ts.map +1 -0
- package/packages/agent/src/actions/restart.js +139 -0
- package/packages/agent/src/actions/runtime.d.ts +14 -0
- package/packages/agent/src/actions/runtime.d.ts.map +1 -0
- package/packages/agent/src/actions/runtime.js +287 -0
- package/packages/agent/src/actions/scratchpad.d.ts +7 -0
- package/packages/agent/src/actions/scratchpad.d.ts.map +1 -0
- package/packages/agent/src/actions/scratchpad.js +394 -0
- package/packages/agent/src/actions/search-conversations.d.ts +3 -0
- package/packages/agent/src/actions/search-conversations.d.ts.map +1 -0
- package/packages/agent/src/actions/search-conversations.js +222 -0
- package/packages/agent/src/actions/send-admin-message.d.ts +3 -0
- package/packages/agent/src/actions/send-admin-message.d.ts.map +1 -0
- package/packages/agent/src/actions/send-admin-message.js +136 -0
- package/packages/agent/src/actions/send-message.d.ts +4 -0
- package/packages/agent/src/actions/send-message.d.ts.map +1 -0
- package/packages/agent/src/actions/send-message.js +410 -0
- package/packages/agent/src/actions/set-user-name.d.ts +13 -0
- package/packages/agent/src/actions/set-user-name.d.ts.map +1 -0
- package/packages/agent/src/actions/set-user-name.js +106 -0
- package/packages/agent/src/actions/settings-actions.d.ts +28 -0
- package/packages/agent/src/actions/settings-actions.d.ts.map +1 -0
- package/packages/agent/src/actions/settings-actions.js +564 -0
- package/packages/agent/src/actions/skill-command.d.ts +20 -0
- package/packages/agent/src/actions/skill-command.d.ts.map +1 -0
- package/packages/agent/src/actions/skill-command.js +142 -0
- package/packages/agent/src/actions/stream-control.d.ts +11 -0
- package/packages/agent/src/actions/stream-control.d.ts.map +1 -0
- package/packages/agent/src/actions/stream-control.js +182 -0
- package/packages/agent/src/actions/sync-plugin.d.ts +3 -0
- package/packages/agent/src/actions/sync-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/sync-plugin.js +76 -0
- package/packages/agent/src/actions/tasks-coding.d.ts +10 -0
- package/packages/agent/src/actions/tasks-coding.d.ts.map +1 -0
- package/packages/agent/src/actions/tasks-coding.js +171 -0
- package/packages/agent/src/actions/terminal.d.ts +15 -0
- package/packages/agent/src/actions/terminal.d.ts.map +1 -0
- package/packages/agent/src/actions/terminal.js +283 -0
- package/packages/agent/src/actions/toggle-plugin.d.ts +11 -0
- package/packages/agent/src/actions/toggle-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/toggle-plugin.js +125 -0
- package/packages/agent/src/actions/trajectories.d.ts +12 -0
- package/packages/agent/src/actions/trajectories.d.ts.map +1 -0
- package/packages/agent/src/actions/trajectories.js +347 -0
- package/packages/agent/src/actions/uninstall-plugin.d.ts +12 -0
- package/packages/agent/src/actions/uninstall-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/uninstall-plugin.js +110 -0
- package/packages/agent/src/actions/update-owner-name.d.ts +12 -0
- package/packages/agent/src/actions/update-owner-name.d.ts.map +1 -0
- package/packages/agent/src/actions/update-owner-name.js +83 -0
- package/packages/agent/src/actions/update-plugin.d.ts +10 -0
- package/packages/agent/src/actions/update-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/update-plugin.js +131 -0
- package/packages/agent/src/actions/web-search.d.ts +10 -0
- package/packages/agent/src/actions/web-search.d.ts.map +1 -0
- package/packages/agent/src/actions/web-search.js +274 -0
- package/packages/agent/src/actions/workflow/api.d.ts +24 -0
- package/packages/agent/src/actions/workflow/api.d.ts.map +1 -0
- package/packages/agent/src/actions/workflow/api.js +42 -0
- package/packages/agent/src/actions/workflow/create-workflow.d.ts +11 -0
- package/packages/agent/src/actions/workflow/create-workflow.d.ts.map +1 -0
- package/packages/agent/src/actions/workflow/create-workflow.js +120 -0
- package/packages/agent/src/actions/workflow/delete-workflow.d.ts +11 -0
- package/packages/agent/src/actions/workflow/delete-workflow.d.ts.map +1 -0
- package/packages/agent/src/actions/workflow/delete-workflow.js +100 -0
- package/packages/agent/src/actions/workflow/index.d.ts +5 -0
- package/packages/agent/src/actions/workflow/index.d.ts.map +1 -0
- package/packages/agent/src/actions/workflow/index.js +4 -0
- package/packages/agent/src/actions/workflow/promote-task-to-workflow.d.ts +12 -0
- package/packages/agent/src/actions/workflow/promote-task-to-workflow.d.ts.map +1 -0
- package/packages/agent/src/actions/workflow/promote-task-to-workflow.js +154 -0
- package/packages/agent/src/actions/workflow/toggle-workflow-active.d.ts +10 -0
- package/packages/agent/src/actions/workflow/toggle-workflow-active.d.ts.map +1 -0
- package/packages/agent/src/actions/workflow/toggle-workflow-active.js +132 -0
- package/packages/agent/src/api/accounts-routes.d.ts +39 -0
- package/packages/agent/src/api/accounts-routes.d.ts.map +1 -0
- package/packages/agent/src/api/accounts-routes.js +703 -0
- package/packages/agent/src/api/agent-admin-routes.d.ts +39 -0
- package/packages/agent/src/api/agent-admin-routes.d.ts.map +1 -0
- package/packages/agent/src/api/agent-admin-routes.js +155 -0
- package/packages/agent/src/api/agent-lifecycle-routes.d.ts +16 -0
- package/packages/agent/src/api/agent-lifecycle-routes.d.ts.map +1 -0
- package/packages/agent/src/api/agent-lifecycle-routes.js +94 -0
- package/packages/agent/src/api/agent-model.d.ts +5 -0
- package/packages/agent/src/api/agent-model.d.ts.map +1 -0
- package/packages/agent/src/api/agent-model.js +154 -0
- package/packages/agent/src/api/agent-status-routes.d.ts +96 -0
- package/packages/agent/src/api/agent-status-routes.d.ts.map +1 -0
- package/packages/agent/src/api/agent-status-routes.js +274 -0
- package/packages/agent/src/api/agent-transfer-routes.d.ts +16 -0
- package/packages/agent/src/api/agent-transfer-routes.d.ts.map +1 -0
- package/packages/agent/src/api/agent-transfer-routes.js +124 -0
- package/packages/agent/src/api/app-package-routes.d.ts +7 -0
- package/packages/agent/src/api/app-package-routes.d.ts.map +1 -0
- package/packages/agent/src/api/app-package-routes.js +59 -0
- package/packages/agent/src/api/apps-routes.d.ts +32 -0
- package/packages/agent/src/api/apps-routes.d.ts.map +1 -0
- package/packages/agent/src/api/apps-routes.js +982 -0
- package/packages/agent/src/api/auth-routes.d.ts +11 -0
- package/packages/agent/src/api/auth-routes.d.ts.map +1 -0
- package/packages/agent/src/api/auth-routes.js +74 -0
- package/packages/agent/src/api/avatar-routes.d.ts +11 -0
- package/packages/agent/src/api/avatar-routes.d.ts.map +1 -0
- package/packages/agent/src/api/avatar-routes.js +205 -0
- package/packages/agent/src/api/binance-skill-helpers.d.ts +26 -0
- package/packages/agent/src/api/binance-skill-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/binance-skill-helpers.js +785 -0
- package/packages/agent/src/api/bluebubbles-routes.d.ts +10 -0
- package/packages/agent/src/api/bluebubbles-routes.d.ts.map +1 -0
- package/packages/agent/src/api/bluebubbles-routes.js +129 -0
- package/packages/agent/src/api/browser-workspace-routes.d.ts +5 -0
- package/packages/agent/src/api/browser-workspace-routes.d.ts.map +1 -0
- package/packages/agent/src/api/browser-workspace-routes.js +100 -0
- package/packages/agent/src/api/bug-report-routes.d.ts +10 -0
- package/packages/agent/src/api/bug-report-routes.d.ts.map +1 -0
- package/packages/agent/src/api/bug-report-routes.js +271 -0
- package/packages/agent/src/api/character-routes.d.ts +52 -0
- package/packages/agent/src/api/character-routes.d.ts.map +1 -0
- package/packages/agent/src/api/character-routes.js +377 -0
- package/packages/agent/src/api/chat-augmentation.d.ts +70 -0
- package/packages/agent/src/api/chat-augmentation.d.ts.map +1 -0
- package/packages/agent/src/api/chat-augmentation.js +453 -0
- package/packages/agent/src/api/chat-routes.d.ts +110 -0
- package/packages/agent/src/api/chat-routes.d.ts.map +1 -0
- package/packages/agent/src/api/chat-routes.js +1516 -0
- package/packages/agent/src/api/chat-text-helpers.d.ts +11 -0
- package/packages/agent/src/api/chat-text-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/chat-text-helpers.js +184 -0
- package/packages/agent/src/api/client-chat-admin.d.ts +19 -0
- package/packages/agent/src/api/client-chat-admin.d.ts.map +1 -0
- package/packages/agent/src/api/client-chat-admin.js +27 -0
- package/packages/agent/src/api/cloud-billing-routes.d.ts +9 -0
- package/packages/agent/src/api/cloud-billing-routes.d.ts.map +1 -0
- package/packages/agent/src/api/cloud-billing-routes.js +388 -0
- package/packages/agent/src/api/cloud-compat-routes.d.ts +10 -0
- package/packages/agent/src/api/cloud-compat-routes.d.ts.map +1 -0
- package/packages/agent/src/api/cloud-compat-routes.js +212 -0
- package/packages/agent/src/api/cloud-provisioning.d.ts +14 -0
- package/packages/agent/src/api/cloud-provisioning.d.ts.map +1 -0
- package/packages/agent/src/api/cloud-provisioning.js +30 -0
- package/packages/agent/src/api/cloud-relay-routes.d.ts +22 -0
- package/packages/agent/src/api/cloud-relay-routes.d.ts.map +1 -0
- package/packages/agent/src/api/cloud-relay-routes.js +52 -0
- package/packages/agent/src/api/cloud-routes.d.ts +80 -0
- package/packages/agent/src/api/cloud-routes.d.ts.map +1 -0
- package/packages/agent/src/api/cloud-routes.js +582 -0
- package/packages/agent/src/api/cloud-status-routes.d.ts +15 -0
- package/packages/agent/src/api/cloud-status-routes.d.ts.map +1 -0
- package/packages/agent/src/api/cloud-status-routes.js +142 -0
- package/packages/agent/src/api/coding-agents-fallback-routes.d.ts +12 -0
- package/packages/agent/src/api/coding-agents-fallback-routes.d.ts.map +1 -0
- package/packages/agent/src/api/coding-agents-fallback-routes.js +523 -0
- package/packages/agent/src/api/compat-utils.d.ts +49 -0
- package/packages/agent/src/api/compat-utils.d.ts.map +1 -0
- package/packages/agent/src/api/compat-utils.js +122 -0
- package/packages/agent/src/api/config-env.d.ts +43 -0
- package/packages/agent/src/api/config-env.d.ts.map +1 -0
- package/packages/agent/src/api/config-env.js +284 -0
- package/packages/agent/src/api/config-routes.d.ts +40 -0
- package/packages/agent/src/api/config-routes.d.ts.map +1 -0
- package/packages/agent/src/api/config-routes.js +433 -0
- package/packages/agent/src/api/connector-health.d.ts +42 -0
- package/packages/agent/src/api/connector-health.d.ts.map +1 -0
- package/packages/agent/src/api/connector-health.js +132 -0
- package/packages/agent/src/api/connector-routes.d.ts +21 -0
- package/packages/agent/src/api/connector-routes.d.ts.map +1 -0
- package/packages/agent/src/api/connector-routes.js +113 -0
- package/packages/agent/src/api/conversation-metadata.d.ts +10 -0
- package/packages/agent/src/api/conversation-metadata.d.ts.map +1 -0
- package/packages/agent/src/api/conversation-metadata.js +107 -0
- package/packages/agent/src/api/conversation-routes.d.ts +43 -0
- package/packages/agent/src/api/conversation-routes.d.ts.map +1 -0
- package/packages/agent/src/api/conversation-routes.js +1198 -0
- package/packages/agent/src/api/credit-detection.d.ts +9 -0
- package/packages/agent/src/api/credit-detection.d.ts.map +1 -0
- package/packages/agent/src/api/credit-detection.js +47 -0
- package/packages/agent/src/api/curated-skills-routes.d.ts +22 -0
- package/packages/agent/src/api/curated-skills-routes.d.ts.map +1 -0
- package/packages/agent/src/api/curated-skills-routes.js +295 -0
- package/packages/agent/src/api/database.d.ts +35 -0
- package/packages/agent/src/api/database.d.ts.map +1 -0
- package/packages/agent/src/api/database.js +1141 -0
- package/packages/agent/src/api/diagnostics-routes.d.ts +60 -0
- package/packages/agent/src/api/diagnostics-routes.d.ts.map +1 -0
- package/packages/agent/src/api/diagnostics-routes.js +365 -0
- package/packages/agent/src/api/discord-avatar-cache.d.ts +10 -0
- package/packages/agent/src/api/discord-avatar-cache.d.ts.map +1 -0
- package/packages/agent/src/api/discord-avatar-cache.js +149 -0
- package/packages/agent/src/api/discord-profiles.d.ts +26 -0
- package/packages/agent/src/api/discord-profiles.d.ts.map +1 -0
- package/packages/agent/src/api/discord-profiles.js +279 -0
- package/packages/agent/src/api/early-logs.d.ts +29 -0
- package/packages/agent/src/api/early-logs.d.ts.map +1 -0
- package/packages/agent/src/api/early-logs.js +96 -0
- package/packages/agent/src/api/experience-routes.d.ts +8 -0
- package/packages/agent/src/api/experience-routes.d.ts.map +1 -0
- package/packages/agent/src/api/experience-routes.js +376 -0
- package/packages/agent/src/api/health-routes.d.ts +44 -0
- package/packages/agent/src/api/health-routes.d.ts.map +1 -0
- package/packages/agent/src/api/health-routes.js +449 -0
- package/packages/agent/src/api/http-helpers.d.ts +50 -0
- package/packages/agent/src/api/http-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/http-helpers.js +167 -0
- package/packages/agent/src/api/inbox-routes.d.ts +48 -0
- package/packages/agent/src/api/inbox-routes.d.ts.map +1 -0
- package/packages/agent/src/api/inbox-routes.js +1577 -0
- package/packages/agent/src/api/index.d.ts +58 -0
- package/packages/agent/src/api/index.d.ts.map +1 -0
- package/packages/agent/src/api/index.js +61 -0
- package/packages/agent/src/api/knowledge-routes.d.ts +2 -0
- package/packages/agent/src/api/knowledge-routes.d.ts.map +1 -0
- package/packages/agent/src/api/knowledge-routes.js +2 -0
- package/packages/agent/src/api/knowledge-service-loader.d.ts +2 -0
- package/packages/agent/src/api/knowledge-service-loader.d.ts.map +1 -0
- package/packages/agent/src/api/knowledge-service-loader.js +2 -0
- package/packages/agent/src/api/mcp-routes.d.ts +33 -0
- package/packages/agent/src/api/mcp-routes.d.ts.map +1 -0
- package/packages/agent/src/api/mcp-routes.js +186 -0
- package/packages/agent/src/api/memory-bounds.d.ts +51 -0
- package/packages/agent/src/api/memory-bounds.d.ts.map +1 -0
- package/packages/agent/src/api/memory-bounds.js +81 -0
- package/packages/agent/src/api/memory-routes.d.ts +9 -0
- package/packages/agent/src/api/memory-routes.d.ts.map +1 -0
- package/packages/agent/src/api/memory-routes.js +483 -0
- package/packages/agent/src/api/misc-routes.d.ts +64 -0
- package/packages/agent/src/api/misc-routes.d.ts.map +1 -0
- package/packages/agent/src/api/misc-routes.js +589 -0
- package/packages/agent/src/api/model-provider-helpers.d.ts +84 -0
- package/packages/agent/src/api/model-provider-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/model-provider-helpers.js +588 -0
- package/packages/agent/src/api/models-routes.d.ts +14 -0
- package/packages/agent/src/api/models-routes.d.ts.map +1 -0
- package/packages/agent/src/api/models-routes.js +37 -0
- package/packages/agent/src/api/music-player-route-fallback.d.ts +16 -0
- package/packages/agent/src/api/music-player-route-fallback.d.ts.map +1 -0
- package/packages/agent/src/api/music-player-route-fallback.js +65 -0
- package/packages/agent/src/api/nfa-routes.d.ts +5 -0
- package/packages/agent/src/api/nfa-routes.d.ts.map +1 -0
- package/packages/agent/src/api/nfa-routes.js +133 -0
- package/packages/agent/src/api/onboarding-routes.d.ts +50 -0
- package/packages/agent/src/api/onboarding-routes.d.ts.map +1 -0
- package/packages/agent/src/api/onboarding-routes.js +590 -0
- package/packages/agent/src/api/owner-contact-helpers.d.ts +39 -0
- package/packages/agent/src/api/owner-contact-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/owner-contact-helpers.js +47 -0
- package/packages/agent/src/api/parse-action-block.d.ts +35 -0
- package/packages/agent/src/api/parse-action-block.d.ts.map +1 -0
- package/packages/agent/src/api/parse-action-block.js +113 -0
- package/packages/agent/src/api/permissions-routes-extra.d.ts +30 -0
- package/packages/agent/src/api/permissions-routes-extra.d.ts.map +1 -0
- package/packages/agent/src/api/permissions-routes-extra.js +78 -0
- package/packages/agent/src/api/permissions-routes.d.ts +28 -0
- package/packages/agent/src/api/permissions-routes.d.ts.map +1 -0
- package/packages/agent/src/api/permissions-routes.js +180 -0
- package/packages/agent/src/api/plugin-discovery-helpers.d.ts +147 -0
- package/packages/agent/src/api/plugin-discovery-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/plugin-discovery-helpers.js +1017 -0
- package/packages/agent/src/api/plugin-routes.d.ts +127 -0
- package/packages/agent/src/api/plugin-routes.d.ts.map +1 -0
- package/packages/agent/src/api/plugin-routes.js +1250 -0
- package/packages/agent/src/api/plugin-runtime-apply.d.ts +31 -0
- package/packages/agent/src/api/plugin-runtime-apply.d.ts.map +1 -0
- package/packages/agent/src/api/plugin-runtime-apply.js +217 -0
- package/packages/agent/src/api/plugin-validation.d.ts +86 -0
- package/packages/agent/src/api/plugin-validation.d.ts.map +1 -0
- package/packages/agent/src/api/plugin-validation.js +259 -0
- package/packages/agent/src/api/provider-switch-config.d.ts +60 -0
- package/packages/agent/src/api/provider-switch-config.d.ts.map +1 -0
- package/packages/agent/src/api/provider-switch-config.js +714 -0
- package/packages/agent/src/api/provider-switch-routes.d.ts +22 -0
- package/packages/agent/src/api/provider-switch-routes.d.ts.map +1 -0
- package/packages/agent/src/api/provider-switch-routes.js +92 -0
- package/packages/agent/src/api/rate-limiter.d.ts +29 -0
- package/packages/agent/src/api/rate-limiter.d.ts.map +1 -0
- package/packages/agent/src/api/rate-limiter.js +57 -0
- package/packages/agent/src/api/registry-routes.d.ts +29 -0
- package/packages/agent/src/api/registry-routes.d.ts.map +1 -0
- package/packages/agent/src/api/registry-routes.js +98 -0
- package/packages/agent/src/api/registry-service.d.ts +77 -0
- package/packages/agent/src/api/registry-service.d.ts.map +1 -0
- package/packages/agent/src/api/registry-service.js +190 -0
- package/packages/agent/src/api/relationships-routes.d.ts +7 -0
- package/packages/agent/src/api/relationships-routes.d.ts.map +1 -0
- package/packages/agent/src/api/relationships-routes.js +275 -0
- package/packages/agent/src/api/route-helpers.d.ts +16 -0
- package/packages/agent/src/api/route-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/route-helpers.js +1 -0
- package/packages/agent/src/api/runtime-plugin-routes.d.ts +21 -0
- package/packages/agent/src/api/runtime-plugin-routes.d.ts.map +1 -0
- package/packages/agent/src/api/runtime-plugin-routes.js +183 -0
- package/packages/agent/src/api/sandbox-routes.d.ts +12 -0
- package/packages/agent/src/api/sandbox-routes.d.ts.map +1 -0
- package/packages/agent/src/api/sandbox-routes.js +1334 -0
- package/packages/agent/src/api/server-auth.d.ts +46 -0
- package/packages/agent/src/api/server-auth.d.ts.map +1 -0
- package/packages/agent/src/api/server-auth.js +509 -0
- package/packages/agent/src/api/server-helpers-auth.d.ts +40 -0
- package/packages/agent/src/api/server-helpers-auth.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers-auth.js +602 -0
- package/packages/agent/src/api/server-helpers-config.d.ts +37 -0
- package/packages/agent/src/api/server-helpers-config.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers-config.js +295 -0
- package/packages/agent/src/api/server-helpers-fetch.d.ts +15 -0
- package/packages/agent/src/api/server-helpers-fetch.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers-fetch.js +149 -0
- package/packages/agent/src/api/server-helpers-mcp.d.ts +12 -0
- package/packages/agent/src/api/server-helpers-mcp.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers-mcp.js +315 -0
- package/packages/agent/src/api/server-helpers-plugin.d.ts +13 -0
- package/packages/agent/src/api/server-helpers-plugin.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers-plugin.js +158 -0
- package/packages/agent/src/api/server-helpers-swarm.d.ts +59 -0
- package/packages/agent/src/api/server-helpers-swarm.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers-swarm.js +416 -0
- package/packages/agent/src/api/server-helpers-wallet.d.ts +18 -0
- package/packages/agent/src/api/server-helpers-wallet.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers-wallet.js +178 -0
- package/packages/agent/src/api/server-helpers.d.ts +96 -0
- package/packages/agent/src/api/server-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers.js +601 -0
- package/packages/agent/src/api/server-types.d.ts +238 -0
- package/packages/agent/src/api/server-types.d.ts.map +1 -0
- package/packages/agent/src/api/server-types.js +6 -0
- package/packages/agent/src/api/server.d.ts +61 -0
- package/packages/agent/src/api/server.d.ts.map +1 -0
- package/packages/agent/src/api/server.js +3165 -0
- package/packages/agent/src/api/signal-routes.d.ts +42 -0
- package/packages/agent/src/api/signal-routes.d.ts.map +1 -0
- package/packages/agent/src/api/signal-routes.js +231 -0
- package/packages/agent/src/api/skill-discovery-helpers.d.ts +80 -0
- package/packages/agent/src/api/skill-discovery-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/skill-discovery-helpers.js +383 -0
- package/packages/agent/src/api/skills-routes.d.ts +32 -0
- package/packages/agent/src/api/skills-routes.d.ts.map +1 -0
- package/packages/agent/src/api/skills-routes.js +975 -0
- package/packages/agent/src/api/static-file-server.d.ts +19 -0
- package/packages/agent/src/api/static-file-server.d.ts.map +1 -0
- package/packages/agent/src/api/static-file-server.js +233 -0
- package/packages/agent/src/api/stream-persistence.d.ts +64 -0
- package/packages/agent/src/api/stream-persistence.d.ts.map +1 -0
- package/packages/agent/src/api/stream-persistence.js +231 -0
- package/packages/agent/src/api/stream-route-state.d.ts +56 -0
- package/packages/agent/src/api/stream-route-state.d.ts.map +1 -0
- package/packages/agent/src/api/stream-route-state.js +1 -0
- package/packages/agent/src/api/stream-routes.d.ts +24 -0
- package/packages/agent/src/api/stream-routes.d.ts.map +1 -0
- package/packages/agent/src/api/stream-routes.js +728 -0
- package/packages/agent/src/api/streaming-text.d.ts +9 -0
- package/packages/agent/src/api/streaming-text.d.ts.map +1 -0
- package/packages/agent/src/api/streaming-text.js +85 -0
- package/packages/agent/src/api/streaming-types.d.ts +30 -0
- package/packages/agent/src/api/streaming-types.d.ts.map +1 -0
- package/packages/agent/src/api/streaming-types.js +1 -0
- package/packages/agent/src/api/subscription-routes.d.ts +20 -0
- package/packages/agent/src/api/subscription-routes.d.ts.map +1 -0
- package/packages/agent/src/api/subscription-routes.js +264 -0
- package/packages/agent/src/api/task-agent-message-routing.d.ts +10 -0
- package/packages/agent/src/api/task-agent-message-routing.d.ts.map +1 -0
- package/packages/agent/src/api/task-agent-message-routing.js +62 -0
- package/packages/agent/src/api/telegram-account-routes.d.ts +26 -0
- package/packages/agent/src/api/telegram-account-routes.d.ts.map +1 -0
- package/packages/agent/src/api/telegram-account-routes.js +229 -0
- package/packages/agent/src/api/terminal-run-limits.d.ts +5 -0
- package/packages/agent/src/api/terminal-run-limits.d.ts.map +1 -0
- package/packages/agent/src/api/terminal-run-limits.js +22 -0
- package/packages/agent/src/api/trade-safety.d.ts +35 -0
- package/packages/agent/src/api/trade-safety.d.ts.map +1 -0
- package/packages/agent/src/api/trade-safety.js +62 -0
- package/packages/agent/src/api/training-backend-check.d.ts +2 -0
- package/packages/agent/src/api/training-backend-check.d.ts.map +1 -0
- package/packages/agent/src/api/training-backend-check.js +2 -0
- package/packages/agent/src/api/training-routes.d.ts +2 -0
- package/packages/agent/src/api/training-routes.d.ts.map +1 -0
- package/packages/agent/src/api/training-routes.js +2 -0
- package/packages/agent/src/api/training-service-like.d.ts +2 -0
- package/packages/agent/src/api/training-service-like.d.ts.map +1 -0
- package/packages/agent/src/api/training-service-like.js +1 -0
- package/packages/agent/src/api/trajectory-routes.d.ts +3 -0
- package/packages/agent/src/api/trajectory-routes.d.ts.map +1 -0
- package/packages/agent/src/api/trajectory-routes.js +2 -0
- package/packages/agent/src/api/trigger-routes.d.ts +64 -0
- package/packages/agent/src/api/trigger-routes.d.ts.map +1 -0
- package/packages/agent/src/api/trigger-routes.js +431 -0
- package/packages/agent/src/api/tts-routes.d.ts +24 -0
- package/packages/agent/src/api/tts-routes.d.ts.map +1 -0
- package/packages/agent/src/api/tts-routes.js +200 -0
- package/packages/agent/src/api/tx-service.d.ts +53 -0
- package/packages/agent/src/api/tx-service.d.ts.map +1 -0
- package/packages/agent/src/api/tx-service.js +217 -0
- package/packages/agent/src/api/update-routes.d.ts +19 -0
- package/packages/agent/src/api/update-routes.d.ts.map +1 -0
- package/packages/agent/src/api/update-routes.js +54 -0
- package/packages/agent/src/api/wallet-capability.d.ts +32 -0
- package/packages/agent/src/api/wallet-capability.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-capability.js +189 -0
- package/packages/agent/src/api/wallet-env-sync.d.ts +2 -0
- package/packages/agent/src/api/wallet-env-sync.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-env-sync.js +108 -0
- package/packages/agent/src/api/wallet-evm-balance.d.ts +72 -0
- package/packages/agent/src/api/wallet-evm-balance.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-evm-balance.js +663 -0
- package/packages/agent/src/api/wallet-routes.d.ts +42 -0
- package/packages/agent/src/api/wallet-routes.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-routes.js +863 -0
- package/packages/agent/src/api/wallet-rpc.d.ts +73 -0
- package/packages/agent/src/api/wallet-rpc.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-rpc.js +471 -0
- package/packages/agent/src/api/wallet-trading-profile.d.ts +31 -0
- package/packages/agent/src/api/wallet-trading-profile.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-trading-profile.js +565 -0
- package/packages/agent/src/api/wallet.d.ts +64 -0
- package/packages/agent/src/api/wallet.d.ts.map +1 -0
- package/packages/agent/src/api/wallet.js +782 -0
- package/packages/agent/src/api/whatsapp-routes.d.ts +39 -0
- package/packages/agent/src/api/whatsapp-routes.d.ts.map +1 -0
- package/packages/agent/src/api/whatsapp-routes.js +275 -0
- package/packages/agent/src/api/workbench-helpers.d.ts +39 -0
- package/packages/agent/src/api/workbench-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/workbench-helpers.js +141 -0
- package/packages/agent/src/api/workbench-routes.d.ts +53 -0
- package/packages/agent/src/api/workbench-routes.d.ts.map +1 -0
- package/packages/agent/src/api/workbench-routes.js +391 -0
- package/packages/agent/src/api/x-relay-routes.d.ts +27 -0
- package/packages/agent/src/api/x-relay-routes.d.ts.map +1 -0
- package/packages/agent/src/api/x-relay-routes.js +135 -0
- package/packages/agent/src/api/zip-utils.d.ts +8 -0
- package/packages/agent/src/api/zip-utils.d.ts.map +1 -0
- package/packages/agent/src/api/zip-utils.js +115 -0
- package/packages/agent/src/auth/account-storage.d.ts +48 -0
- package/packages/agent/src/auth/account-storage.d.ts.map +1 -0
- package/packages/agent/src/auth/account-storage.js +238 -0
- package/packages/agent/src/auth/anthropic.d.ts +24 -0
- package/packages/agent/src/auth/anthropic.d.ts.map +1 -0
- package/packages/agent/src/auth/anthropic.js +38 -0
- package/packages/agent/src/auth/claude-code-stealth.d.ts +2 -0
- package/packages/agent/src/auth/claude-code-stealth.d.ts.map +1 -0
- package/packages/agent/src/auth/claude-code-stealth.js +114 -0
- package/packages/agent/src/auth/credentials.d.ts +95 -0
- package/packages/agent/src/auth/credentials.d.ts.map +1 -0
- package/packages/agent/src/auth/credentials.js +440 -0
- package/packages/agent/src/auth/index.d.ts +8 -0
- package/packages/agent/src/auth/index.d.ts.map +1 -0
- package/packages/agent/src/auth/index.js +7 -0
- package/packages/agent/src/auth/oauth-flow.d.ts +106 -0
- package/packages/agent/src/auth/oauth-flow.d.ts.map +1 -0
- package/packages/agent/src/auth/oauth-flow.js +349 -0
- package/packages/agent/src/auth/openai-codex.d.ts +27 -0
- package/packages/agent/src/auth/openai-codex.d.ts.map +1 -0
- package/packages/agent/src/auth/openai-codex.js +76 -0
- package/packages/agent/src/auth/refresh-mutex.d.ts +19 -0
- package/packages/agent/src/auth/refresh-mutex.d.ts.map +1 -0
- package/packages/agent/src/auth/refresh-mutex.js +33 -0
- package/packages/agent/src/auth/types.d.ts +18 -0
- package/packages/agent/src/auth/types.d.ts.map +1 -0
- package/packages/agent/src/auth/types.js +8 -0
- package/packages/agent/src/auth/vendor/pi-oauth/anthropic-login.d.ts +48 -0
- package/packages/agent/src/auth/vendor/pi-oauth/anthropic-login.d.ts.map +1 -0
- package/packages/agent/src/auth/vendor/pi-oauth/anthropic-login.js +113 -0
- package/packages/agent/src/auth/vendor/pi-oauth/openai-codex-login.d.ts +26 -0
- package/packages/agent/src/auth/vendor/pi-oauth/openai-codex-login.d.ts.map +1 -0
- package/packages/agent/src/auth/vendor/pi-oauth/openai-codex-login.js +342 -0
- package/packages/agent/src/auth/vendor/pi-oauth/pkce.d.ts +9 -0
- package/packages/agent/src/auth/vendor/pi-oauth/pkce.d.ts.map +1 -0
- package/packages/agent/src/auth/vendor/pi-oauth/pkce.js +21 -0
- package/packages/agent/src/awareness/index.d.ts +2 -0
- package/packages/agent/src/awareness/index.d.ts.map +1 -0
- package/packages/agent/src/awareness/index.js +1 -0
- package/packages/agent/src/awareness/registry.d.ts +27 -0
- package/packages/agent/src/awareness/registry.d.ts.map +1 -0
- package/packages/agent/src/awareness/registry.js +161 -0
- package/packages/agent/src/cli/parse-duration.d.ts +5 -0
- package/packages/agent/src/cli/parse-duration.d.ts.map +1 -0
- package/packages/agent/src/cli/parse-duration.js +27 -0
- package/packages/agent/src/cloud/auth.d.ts +19 -0
- package/packages/agent/src/cloud/auth.d.ts.map +1 -0
- package/packages/agent/src/cloud/auth.js +110 -0
- package/packages/agent/src/cloud/backup.d.ts +18 -0
- package/packages/agent/src/cloud/backup.d.ts.map +1 -0
- package/packages/agent/src/cloud/backup.js +42 -0
- package/packages/agent/src/cloud/base-url.d.ts +3 -0
- package/packages/agent/src/cloud/base-url.d.ts.map +1 -0
- package/packages/agent/src/cloud/base-url.js +53 -0
- package/packages/agent/src/cloud/bridge-client.d.ts +126 -0
- package/packages/agent/src/cloud/bridge-client.d.ts.map +1 -0
- package/packages/agent/src/cloud/bridge-client.js +380 -0
- package/packages/agent/src/cloud/cloud-manager.d.ts +32 -0
- package/packages/agent/src/cloud/cloud-manager.d.ts.map +1 -0
- package/packages/agent/src/cloud/cloud-manager.js +121 -0
- package/packages/agent/src/cloud/cloud-proxy.d.ts +20 -0
- package/packages/agent/src/cloud/cloud-proxy.d.ts.map +1 -0
- package/packages/agent/src/cloud/cloud-proxy.js +34 -0
- package/packages/agent/src/cloud/cloud-wallet.d.ts +92 -0
- package/packages/agent/src/cloud/cloud-wallet.d.ts.map +1 -0
- package/packages/agent/src/cloud/cloud-wallet.js +199 -0
- package/packages/agent/src/cloud/index.d.ts +9 -0
- package/packages/agent/src/cloud/index.d.ts.map +1 -0
- package/packages/agent/src/cloud/index.js +8 -0
- package/packages/agent/src/cloud/reconnect.d.ts +26 -0
- package/packages/agent/src/cloud/reconnect.d.ts.map +1 -0
- package/packages/agent/src/cloud/reconnect.js +89 -0
- package/packages/agent/src/cloud/validate-url.d.ts +2 -0
- package/packages/agent/src/cloud/validate-url.d.ts.map +1 -0
- package/packages/agent/src/cloud/validate-url.js +162 -0
- package/packages/agent/src/config/character-schema.d.ts +25 -0
- package/packages/agent/src/config/character-schema.d.ts.map +1 -0
- package/packages/agent/src/config/character-schema.js +39 -0
- package/packages/agent/src/config/config.d.ts +6 -0
- package/packages/agent/src/config/config.d.ts.map +1 -0
- package/packages/agent/src/config/config.js +279 -0
- package/packages/agent/src/config/env-vars.d.ts +9 -0
- package/packages/agent/src/config/env-vars.d.ts.map +1 -0
- package/packages/agent/src/config/env-vars.js +284 -0
- package/packages/agent/src/config/feature-flags.d.ts +17 -0
- package/packages/agent/src/config/feature-flags.d.ts.map +1 -0
- package/packages/agent/src/config/feature-flags.js +37 -0
- package/packages/agent/src/config/includes.d.ts +26 -0
- package/packages/agent/src/config/includes.d.ts.map +1 -0
- package/packages/agent/src/config/includes.js +148 -0
- package/packages/agent/src/config/index.d.ts +20 -0
- package/packages/agent/src/config/index.d.ts.map +1 -0
- package/packages/agent/src/config/index.js +19 -0
- package/packages/agent/src/config/model-metadata.d.ts +20 -0
- package/packages/agent/src/config/model-metadata.d.ts.map +1 -0
- package/packages/agent/src/config/model-metadata.js +133 -0
- package/packages/agent/src/config/object-utils.d.ts +2 -0
- package/packages/agent/src/config/object-utils.d.ts.map +1 -0
- package/packages/agent/src/config/object-utils.js +6 -0
- package/packages/agent/src/config/owner-contacts.d.ts +42 -0
- package/packages/agent/src/config/owner-contacts.d.ts.map +1 -0
- package/packages/agent/src/config/owner-contacts.js +223 -0
- package/packages/agent/src/config/paths.d.ts +19 -0
- package/packages/agent/src/config/paths.d.ts.map +1 -0
- package/packages/agent/src/config/paths.js +115 -0
- package/packages/agent/src/config/plugin-auto-enable.d.ts +44 -0
- package/packages/agent/src/config/plugin-auto-enable.d.ts.map +1 -0
- package/packages/agent/src/config/plugin-auto-enable.js +557 -0
- package/packages/agent/src/config/plugin-widgets.d.ts +29 -0
- package/packages/agent/src/config/plugin-widgets.d.ts.map +1 -0
- package/packages/agent/src/config/plugin-widgets.js +61 -0
- package/packages/agent/src/config/schema.d.ts +87 -0
- package/packages/agent/src/config/schema.d.ts.map +1 -0
- package/packages/agent/src/config/schema.js +922 -0
- package/packages/agent/src/config/telegram-custom-commands.d.ts +25 -0
- package/packages/agent/src/config/telegram-custom-commands.d.ts.map +1 -0
- package/packages/agent/src/config/telegram-custom-commands.js +71 -0
- package/packages/agent/src/config/types.agent-defaults.d.ts +363 -0
- package/packages/agent/src/config/types.agent-defaults.d.ts.map +1 -0
- package/packages/agent/src/config/types.agent-defaults.js +1 -0
- package/packages/agent/src/config/types.agents.d.ts +114 -0
- package/packages/agent/src/config/types.agents.d.ts.map +1 -0
- package/packages/agent/src/config/types.agents.js +1 -0
- package/packages/agent/src/config/types.d.ts +8 -0
- package/packages/agent/src/config/types.d.ts.map +1 -0
- package/packages/agent/src/config/types.eliza.d.ts +716 -0
- package/packages/agent/src/config/types.eliza.d.ts.map +1 -0
- package/packages/agent/src/config/types.eliza.js +1 -0
- package/packages/agent/src/config/types.gateway.d.ts +216 -0
- package/packages/agent/src/config/types.gateway.d.ts.map +1 -0
- package/packages/agent/src/config/types.gateway.js +1 -0
- package/packages/agent/src/config/types.hooks.d.ts +107 -0
- package/packages/agent/src/config/types.hooks.d.ts.map +1 -0
- package/packages/agent/src/config/types.hooks.js +1 -0
- package/packages/agent/src/config/types.js +7 -0
- package/packages/agent/src/config/types.messages.d.ts +176 -0
- package/packages/agent/src/config/types.messages.d.ts.map +1 -0
- package/packages/agent/src/config/types.messages.js +1 -0
- package/packages/agent/src/config/types.tools.d.ts +400 -0
- package/packages/agent/src/config/types.tools.d.ts.map +1 -0
- package/packages/agent/src/config/types.tools.js +1 -0
- package/packages/agent/src/config/zod-schema.agent-runtime.d.ts +1137 -0
- package/packages/agent/src/config/zod-schema.agent-runtime.d.ts.map +1 -0
- package/packages/agent/src/config/zod-schema.agent-runtime.js +782 -0
- package/packages/agent/src/config/zod-schema.core.d.ts +1021 -0
- package/packages/agent/src/config/zod-schema.core.d.ts.map +1 -0
- package/packages/agent/src/config/zod-schema.core.js +701 -0
- package/packages/agent/src/config/zod-schema.d.ts +3185 -0
- package/packages/agent/src/config/zod-schema.d.ts.map +1 -0
- package/packages/agent/src/config/zod-schema.hooks.d.ts +88 -0
- package/packages/agent/src/config/zod-schema.hooks.d.ts.map +1 -0
- package/packages/agent/src/config/zod-schema.hooks.js +133 -0
- package/packages/agent/src/config/zod-schema.js +850 -0
- package/packages/agent/src/config/zod-schema.providers-core.d.ts +2746 -0
- package/packages/agent/src/config/zod-schema.providers-core.d.ts.map +1 -0
- package/packages/agent/src/config/zod-schema.providers-core.js +961 -0
- package/packages/agent/src/config/zod-schema.session.d.ts +183 -0
- package/packages/agent/src/config/zod-schema.session.d.ts.map +1 -0
- package/packages/agent/src/config/zod-schema.session.js +86 -0
- package/packages/agent/src/contracts/apps.d.ts +2 -0
- package/packages/agent/src/contracts/apps.d.ts.map +1 -0
- package/packages/agent/src/contracts/apps.js +1 -0
- package/packages/agent/src/contracts/awareness.d.ts +38 -0
- package/packages/agent/src/contracts/awareness.d.ts.map +1 -0
- package/packages/agent/src/contracts/awareness.js +7 -0
- package/packages/agent/src/contracts/config.d.ts +160 -0
- package/packages/agent/src/contracts/config.d.ts.map +1 -0
- package/packages/agent/src/contracts/config.js +4 -0
- package/packages/agent/src/contracts/onboarding.d.ts +2 -0
- package/packages/agent/src/contracts/onboarding.d.ts.map +1 -0
- package/packages/agent/src/contracts/onboarding.js +1 -0
- package/packages/agent/src/contracts/service-routing.d.ts +2 -0
- package/packages/agent/src/contracts/service-routing.d.ts.map +1 -0
- package/packages/agent/src/contracts/service-routing.js +1 -0
- package/packages/agent/src/contracts/wallet.d.ts +2 -0
- package/packages/agent/src/contracts/wallet.d.ts.map +1 -0
- package/packages/agent/src/contracts/wallet.js +1 -0
- package/packages/agent/src/diagnostics/integration-observability.d.ts +40 -0
- package/packages/agent/src/diagnostics/integration-observability.d.ts.map +1 -0
- package/packages/agent/src/diagnostics/integration-observability.js +78 -0
- package/packages/agent/src/evaluators/late-join-whitelist.d.ts +16 -0
- package/packages/agent/src/evaluators/late-join-whitelist.d.ts.map +1 -0
- package/packages/agent/src/evaluators/late-join-whitelist.js +67 -0
- package/packages/agent/src/hooks/discovery.d.ts +13 -0
- package/packages/agent/src/hooks/discovery.d.ts.map +1 -0
- package/packages/agent/src/hooks/discovery.js +191 -0
- package/packages/agent/src/hooks/eligibility.d.ts +12 -0
- package/packages/agent/src/hooks/eligibility.d.ts.map +1 -0
- package/packages/agent/src/hooks/eligibility.js +105 -0
- package/packages/agent/src/hooks/index.d.ts +3 -0
- package/packages/agent/src/hooks/index.d.ts.map +1 -0
- package/packages/agent/src/hooks/index.js +2 -0
- package/packages/agent/src/hooks/loader.d.ts +34 -0
- package/packages/agent/src/hooks/loader.d.ts.map +1 -0
- package/packages/agent/src/hooks/loader.js +214 -0
- package/packages/agent/src/hooks/registry.d.ts +11 -0
- package/packages/agent/src/hooks/registry.d.ts.map +1 -0
- package/packages/agent/src/hooks/registry.js +58 -0
- package/packages/agent/src/hooks/types.d.ts +104 -0
- package/packages/agent/src/hooks/types.d.ts.map +1 -0
- package/packages/agent/src/hooks/types.js +8 -0
- package/packages/agent/src/index.d.ts +57 -0
- package/packages/agent/src/index.d.ts.map +1 -0
- package/packages/agent/src/index.js +64 -0
- package/packages/agent/src/middleware/x402/payment-config.d.ts +251 -0
- package/packages/agent/src/middleware/x402/payment-config.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/payment-config.js +568 -0
- package/packages/agent/src/middleware/x402/payment-wrapper.d.ts +42 -0
- package/packages/agent/src/middleware/x402/payment-wrapper.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/payment-wrapper.js +1342 -0
- package/packages/agent/src/middleware/x402/startup-validator.d.ts +28 -0
- package/packages/agent/src/middleware/x402/startup-validator.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/startup-validator.js +225 -0
- package/packages/agent/src/middleware/x402/types.d.ts +158 -0
- package/packages/agent/src/middleware/x402/types.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/types.js +5 -0
- package/packages/agent/src/middleware/x402/x402-facilitator-binding.d.ts +9 -0
- package/packages/agent/src/middleware/x402/x402-facilitator-binding.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/x402-facilitator-binding.js +74 -0
- package/packages/agent/src/middleware/x402/x402-replay-durable.d.ts +30 -0
- package/packages/agent/src/middleware/x402/x402-replay-durable.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/x402-replay-durable.js +202 -0
- package/packages/agent/src/middleware/x402/x402-replay-guard.d.ts +28 -0
- package/packages/agent/src/middleware/x402/x402-replay-guard.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/x402-replay-guard.js +134 -0
- package/packages/agent/src/middleware/x402/x402-replay-keys.d.ts +21 -0
- package/packages/agent/src/middleware/x402/x402-replay-keys.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/x402-replay-keys.js +141 -0
- package/packages/agent/src/middleware/x402/x402-resolve.d.ts +6 -0
- package/packages/agent/src/middleware/x402/x402-resolve.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/x402-resolve.js +31 -0
- package/packages/agent/src/middleware/x402/x402-standard-payment.d.ts +130 -0
- package/packages/agent/src/middleware/x402/x402-standard-payment.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/x402-standard-payment.js +387 -0
- package/packages/agent/src/middleware/x402/x402-types.d.ts +130 -0
- package/packages/agent/src/middleware/x402/x402-types.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/x402-types.js +189 -0
- package/packages/agent/src/plugins/custom-rtmp/index.d.ts +12 -0
- package/packages/agent/src/plugins/custom-rtmp/index.d.ts.map +1 -0
- package/packages/agent/src/plugins/custom-rtmp/index.js +26 -0
- package/packages/agent/src/providers/admin-panel.d.ts +4 -0
- package/packages/agent/src/providers/admin-panel.d.ts.map +1 -0
- package/packages/agent/src/providers/admin-panel.js +83 -0
- package/packages/agent/src/providers/admin-trust.d.ts +4 -0
- package/packages/agent/src/providers/admin-trust.d.ts.map +1 -0
- package/packages/agent/src/providers/admin-trust.js +34 -0
- package/packages/agent/src/providers/automation-terminal-bridge.d.ts +3 -0
- package/packages/agent/src/providers/automation-terminal-bridge.d.ts.map +1 -0
- package/packages/agent/src/providers/automation-terminal-bridge.js +71 -0
- package/packages/agent/src/providers/conversation-utils.d.ts +11 -0
- package/packages/agent/src/providers/conversation-utils.d.ts.map +1 -0
- package/packages/agent/src/providers/conversation-utils.js +69 -0
- package/packages/agent/src/providers/escalation-trigger.d.ts +15 -0
- package/packages/agent/src/providers/escalation-trigger.d.ts.map +1 -0
- package/packages/agent/src/providers/escalation-trigger.js +165 -0
- package/packages/agent/src/providers/media-provider.d.ts +192 -0
- package/packages/agent/src/providers/media-provider.d.ts.map +1 -0
- package/packages/agent/src/providers/media-provider.js +1088 -0
- package/packages/agent/src/providers/page-scoped-context.d.ts +3 -0
- package/packages/agent/src/providers/page-scoped-context.d.ts.map +1 -0
- package/packages/agent/src/providers/page-scoped-context.js +493 -0
- package/packages/agent/src/providers/recent-conversations.d.ts +3 -0
- package/packages/agent/src/providers/recent-conversations.d.ts.map +1 -0
- package/packages/agent/src/providers/recent-conversations.js +94 -0
- package/packages/agent/src/providers/relevant-conversations.d.ts +3 -0
- package/packages/agent/src/providers/relevant-conversations.d.ts.map +1 -0
- package/packages/agent/src/providers/relevant-conversations.js +93 -0
- package/packages/agent/src/providers/role-backfill.d.ts +18 -0
- package/packages/agent/src/providers/role-backfill.d.ts.map +1 -0
- package/packages/agent/src/providers/role-backfill.js +84 -0
- package/packages/agent/src/providers/rolodex.d.ts +3 -0
- package/packages/agent/src/providers/rolodex.d.ts.map +1 -0
- package/packages/agent/src/providers/rolodex.js +78 -0
- package/packages/agent/src/providers/session-bridge.d.ts +24 -0
- package/packages/agent/src/providers/session-bridge.d.ts.map +1 -0
- package/packages/agent/src/providers/session-bridge.js +85 -0
- package/packages/agent/src/providers/session-utils.d.ts +20 -0
- package/packages/agent/src/providers/session-utils.d.ts.map +1 -0
- package/packages/agent/src/providers/session-utils.js +33 -0
- package/packages/agent/src/providers/simple-mode.d.ts +4 -0
- package/packages/agent/src/providers/simple-mode.d.ts.map +1 -0
- package/packages/agent/src/providers/simple-mode.js +85 -0
- package/packages/agent/src/providers/skill-provider.d.ts +16 -0
- package/packages/agent/src/providers/skill-provider.d.ts.map +1 -0
- package/packages/agent/src/providers/skill-provider.js +331 -0
- package/packages/agent/src/providers/tasks.d.ts +9 -0
- package/packages/agent/src/providers/tasks.d.ts.map +1 -0
- package/packages/agent/src/providers/tasks.js +113 -0
- package/packages/agent/src/providers/ui-catalog.d.ts +3 -0
- package/packages/agent/src/providers/ui-catalog.d.ts.map +1 -0
- package/packages/agent/src/providers/ui-catalog.js +95 -0
- package/packages/agent/src/providers/user-name.d.ts +11 -0
- package/packages/agent/src/providers/user-name.d.ts.map +1 -0
- package/packages/agent/src/providers/user-name.js +40 -0
- package/packages/agent/src/providers/workspace-provider.d.ts +14 -0
- package/packages/agent/src/providers/workspace-provider.d.ts.map +1 -0
- package/packages/agent/src/providers/workspace-provider.js +177 -0
- package/packages/agent/src/providers/workspace.d.ts +55 -0
- package/packages/agent/src/providers/workspace.d.ts.map +1 -0
- package/packages/agent/src/providers/workspace.js +484 -0
- package/packages/agent/src/runtime/advanced-capabilities-config.d.ts +8 -0
- package/packages/agent/src/runtime/advanced-capabilities-config.d.ts.map +1 -0
- package/packages/agent/src/runtime/advanced-capabilities-config.js +42 -0
- package/packages/agent/src/runtime/agent-event-service.d.ts +35 -0
- package/packages/agent/src/runtime/agent-event-service.d.ts.map +1 -0
- package/packages/agent/src/runtime/agent-event-service.js +16 -0
- package/packages/agent/src/runtime/cloud-onboarding.d.ts +35 -0
- package/packages/agent/src/runtime/cloud-onboarding.d.ts.map +1 -0
- package/packages/agent/src/runtime/cloud-onboarding.js +279 -0
- package/packages/agent/src/runtime/core-plugins.d.ts +19 -0
- package/packages/agent/src/runtime/core-plugins.d.ts.map +1 -0
- package/packages/agent/src/runtime/core-plugins.js +65 -0
- package/packages/agent/src/runtime/custom-actions.d.ts +43 -0
- package/packages/agent/src/runtime/custom-actions.d.ts.map +1 -0
- package/packages/agent/src/runtime/custom-actions.js +507 -0
- package/packages/agent/src/runtime/default-knowledge.d.ts +20 -0
- package/packages/agent/src/runtime/default-knowledge.d.ts.map +1 -0
- package/packages/agent/src/runtime/default-knowledge.js +256 -0
- package/packages/agent/src/runtime/discord-local-plugin.d.ts +86 -0
- package/packages/agent/src/runtime/discord-local-plugin.d.ts.map +1 -0
- package/packages/agent/src/runtime/discord-local-plugin.js +1080 -0
- package/packages/agent/src/runtime/eliza-plugin.d.ts +16 -0
- package/packages/agent/src/runtime/eliza-plugin.d.ts.map +1 -0
- package/packages/agent/src/runtime/eliza-plugin.js +226 -0
- package/packages/agent/src/runtime/eliza.d.ts +91 -0
- package/packages/agent/src/runtime/eliza.d.ts.map +1 -0
- package/packages/agent/src/runtime/eliza.js +3432 -0
- package/packages/agent/src/runtime/embedding-presets.d.ts +19 -0
- package/packages/agent/src/runtime/embedding-presets.d.ts.map +1 -0
- package/packages/agent/src/runtime/embedding-presets.js +60 -0
- package/packages/agent/src/runtime/first-time-setup.d.ts +45 -0
- package/packages/agent/src/runtime/first-time-setup.d.ts.map +1 -0
- package/packages/agent/src/runtime/first-time-setup.js +692 -0
- package/packages/agent/src/runtime/native-runtime-features.d.ts +4 -0
- package/packages/agent/src/runtime/native-runtime-features.d.ts.map +1 -0
- package/packages/agent/src/runtime/native-runtime-features.js +10 -0
- package/packages/agent/src/runtime/onboarding-names.d.ts +11 -0
- package/packages/agent/src/runtime/onboarding-names.d.ts.map +1 -0
- package/packages/agent/src/runtime/onboarding-names.js +81 -0
- package/packages/agent/src/runtime/owner-entity.d.ts +4 -0
- package/packages/agent/src/runtime/owner-entity.d.ts.map +1 -0
- package/packages/agent/src/runtime/owner-entity.js +30 -0
- package/packages/agent/src/runtime/pglite-error-compat.d.ts +28 -0
- package/packages/agent/src/runtime/pglite-error-compat.d.ts.map +1 -0
- package/packages/agent/src/runtime/pglite-error-compat.js +54 -0
- package/packages/agent/src/runtime/plugin-collector.d.ts +26 -0
- package/packages/agent/src/runtime/plugin-collector.d.ts.map +1 -0
- package/packages/agent/src/runtime/plugin-collector.js +403 -0
- package/packages/agent/src/runtime/plugin-lifecycle.d.ts +44 -0
- package/packages/agent/src/runtime/plugin-lifecycle.d.ts.map +1 -0
- package/packages/agent/src/runtime/plugin-lifecycle.js +578 -0
- package/packages/agent/src/runtime/plugin-resolver.d.ts +32 -0
- package/packages/agent/src/runtime/plugin-resolver.d.ts.map +1 -0
- package/packages/agent/src/runtime/plugin-resolver.js +971 -0
- package/packages/agent/src/runtime/plugin-role-gating.d.ts +34 -0
- package/packages/agent/src/runtime/plugin-role-gating.d.ts.map +1 -0
- package/packages/agent/src/runtime/plugin-role-gating.js +234 -0
- package/packages/agent/src/runtime/plugin-types.d.ts +65 -0
- package/packages/agent/src/runtime/plugin-types.d.ts.map +1 -0
- package/packages/agent/src/runtime/plugin-types.js +331 -0
- package/packages/agent/src/runtime/prompt-compaction.d.ts +80 -0
- package/packages/agent/src/runtime/prompt-compaction.d.ts.map +1 -0
- package/packages/agent/src/runtime/prompt-compaction.js +307 -0
- package/packages/agent/src/runtime/prompt-optimization.d.ts +34 -0
- package/packages/agent/src/runtime/prompt-optimization.d.ts.map +1 -0
- package/packages/agent/src/runtime/prompt-optimization.js +686 -0
- package/packages/agent/src/runtime/release-plugin-policy.d.ts +20 -0
- package/packages/agent/src/runtime/release-plugin-policy.d.ts.map +1 -0
- package/packages/agent/src/runtime/release-plugin-policy.js +85 -0
- package/packages/agent/src/runtime/restart.d.ts +45 -0
- package/packages/agent/src/runtime/restart.d.ts.map +1 -0
- package/packages/agent/src/runtime/restart.js +45 -0
- package/packages/agent/src/runtime/roles/src/action.d.ts +11 -0
- package/packages/agent/src/runtime/roles/src/action.d.ts.map +1 -0
- package/packages/agent/src/runtime/roles/src/action.js +665 -0
- package/packages/agent/src/runtime/roles/src/index.d.ts +24 -0
- package/packages/agent/src/runtime/roles/src/index.d.ts.map +1 -0
- package/packages/agent/src/runtime/roles/src/index.js +243 -0
- package/packages/agent/src/runtime/roles/src/intent.d.ts +18 -0
- package/packages/agent/src/runtime/roles/src/intent.d.ts.map +1 -0
- package/packages/agent/src/runtime/roles/src/intent.js +293 -0
- package/packages/agent/src/runtime/roles/src/provider.d.ts +7 -0
- package/packages/agent/src/runtime/roles/src/provider.d.ts.map +1 -0
- package/packages/agent/src/runtime/roles/src/provider.js +133 -0
- package/packages/agent/src/runtime/roles/src/types.d.ts +3 -0
- package/packages/agent/src/runtime/roles/src/types.d.ts.map +1 -0
- package/packages/agent/src/runtime/roles/src/types.js +1 -0
- package/packages/agent/src/runtime/roles/src/utils.d.ts +2 -0
- package/packages/agent/src/runtime/roles/src/utils.d.ts.map +1 -0
- package/packages/agent/src/runtime/roles/src/utils.js +1 -0
- package/packages/agent/src/runtime/roles.d.ts +3 -0
- package/packages/agent/src/runtime/roles.d.ts.map +1 -0
- package/packages/agent/src/runtime/roles.js +5 -0
- package/packages/agent/src/runtime/trajectory-internals.d.ts +226 -0
- package/packages/agent/src/runtime/trajectory-internals.d.ts.map +1 -0
- package/packages/agent/src/runtime/trajectory-internals.js +1327 -0
- package/packages/agent/src/runtime/trajectory-persistence.d.ts +15 -0
- package/packages/agent/src/runtime/trajectory-persistence.d.ts.map +1 -0
- package/packages/agent/src/runtime/trajectory-persistence.js +29 -0
- package/packages/agent/src/runtime/trajectory-query.d.ts +8 -0
- package/packages/agent/src/runtime/trajectory-query.d.ts.map +1 -0
- package/packages/agent/src/runtime/trajectory-query.js +27 -0
- package/packages/agent/src/runtime/trajectory-storage.d.ts +91 -0
- package/packages/agent/src/runtime/trajectory-storage.d.ts.map +1 -0
- package/packages/agent/src/runtime/trajectory-storage.js +1155 -0
- package/packages/agent/src/runtime/version.d.ts +2 -0
- package/packages/agent/src/runtime/version.d.ts.map +1 -0
- package/packages/agent/src/runtime/version.js +5 -0
- package/packages/agent/src/runtime/web-search-tools.d.ts +22 -0
- package/packages/agent/src/runtime/web-search-tools.d.ts.map +1 -0
- package/packages/agent/src/runtime/web-search-tools.js +149 -0
- package/packages/agent/src/security/access.d.ts +17 -0
- package/packages/agent/src/security/access.d.ts.map +1 -0
- package/packages/agent/src/security/access.js +129 -0
- package/packages/agent/src/security/audit-log.d.ts +47 -0
- package/packages/agent/src/security/audit-log.d.ts.map +1 -0
- package/packages/agent/src/security/audit-log.js +161 -0
- package/packages/agent/src/security/index.d.ts +4 -0
- package/packages/agent/src/security/index.d.ts.map +1 -0
- package/packages/agent/src/security/index.js +3 -0
- package/packages/agent/src/security/network-policy.d.ts +6 -0
- package/packages/agent/src/security/network-policy.d.ts.map +1 -0
- package/packages/agent/src/security/network-policy.js +85 -0
- package/packages/agent/src/services/agent-export.d.ts +100 -0
- package/packages/agent/src/services/agent-export.d.ts.map +1 -0
- package/packages/agent/src/services/agent-export.js +729 -0
- package/packages/agent/src/services/app-manager.d.ts +108 -0
- package/packages/agent/src/services/app-manager.d.ts.map +1 -0
- package/packages/agent/src/services/app-manager.js +1623 -0
- package/packages/agent/src/services/app-package-modules.d.ts +22 -0
- package/packages/agent/src/services/app-package-modules.d.ts.map +1 -0
- package/packages/agent/src/services/app-package-modules.js +388 -0
- package/packages/agent/src/services/app-run-store.d.ts +6 -0
- package/packages/agent/src/services/app-run-store.d.ts.map +1 -0
- package/packages/agent/src/services/app-run-store.js +490 -0
- package/packages/agent/src/services/app-session-gate.d.ts +15 -0
- package/packages/agent/src/services/app-session-gate.d.ts.map +1 -0
- package/packages/agent/src/services/app-session-gate.js +71 -0
- package/packages/agent/src/services/browser-capture.d.ts +41 -0
- package/packages/agent/src/services/browser-capture.d.ts.map +1 -0
- package/packages/agent/src/services/browser-capture.js +173 -0
- package/packages/agent/src/services/browser-workspace-desktop.d.ts +22 -0
- package/packages/agent/src/services/browser-workspace-desktop.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-desktop.js +1383 -0
- package/packages/agent/src/services/browser-workspace-elements.d.ts +42 -0
- package/packages/agent/src/services/browser-workspace-elements.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-elements.js +508 -0
- package/packages/agent/src/services/browser-workspace-forms.d.ts +19 -0
- package/packages/agent/src/services/browser-workspace-forms.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-forms.js +245 -0
- package/packages/agent/src/services/browser-workspace-helpers.d.ts +20 -0
- package/packages/agent/src/services/browser-workspace-helpers.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-helpers.js +121 -0
- package/packages/agent/src/services/browser-workspace-jsdom.d.ts +16 -0
- package/packages/agent/src/services/browser-workspace-jsdom.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-jsdom.js +223 -0
- package/packages/agent/src/services/browser-workspace-network.d.ts +7 -0
- package/packages/agent/src/services/browser-workspace-network.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-network.js +137 -0
- package/packages/agent/src/services/browser-workspace-snapshots.d.ts +14 -0
- package/packages/agent/src/services/browser-workspace-snapshots.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-snapshots.js +144 -0
- package/packages/agent/src/services/browser-workspace-state.d.ts +22 -0
- package/packages/agent/src/services/browser-workspace-state.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-state.js +129 -0
- package/packages/agent/src/services/browser-workspace-types.d.ts +273 -0
- package/packages/agent/src/services/browser-workspace-types.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-types.js +1 -0
- package/packages/agent/src/services/browser-workspace-web.d.ts +8 -0
- package/packages/agent/src/services/browser-workspace-web.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-web.js +1152 -0
- package/packages/agent/src/services/browser-workspace.d.ts +36 -0
- package/packages/agent/src/services/browser-workspace.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace.js +632 -0
- package/packages/agent/src/services/character-history.d.ts +69 -0
- package/packages/agent/src/services/character-history.d.ts.map +1 -0
- package/packages/agent/src/services/character-history.js +280 -0
- package/packages/agent/src/services/character-persistence.d.ts +25 -0
- package/packages/agent/src/services/character-persistence.d.ts.map +1 -0
- package/packages/agent/src/services/character-persistence.js +167 -0
- package/packages/agent/src/services/client-chat-sender.d.ts +19 -0
- package/packages/agent/src/services/client-chat-sender.d.ts.map +1 -0
- package/packages/agent/src/services/client-chat-sender.js +88 -0
- package/packages/agent/src/services/coding-agent-context.d.ts +310 -0
- package/packages/agent/src/services/coding-agent-context.d.ts.map +1 -0
- package/packages/agent/src/services/coding-agent-context.js +281 -0
- package/packages/agent/src/services/coding-task-executor.d.ts +14 -0
- package/packages/agent/src/services/coding-task-executor.d.ts.map +1 -0
- package/packages/agent/src/services/coding-task-executor.js +109 -0
- package/packages/agent/src/services/config-plugin-manager.d.ts +6 -0
- package/packages/agent/src/services/config-plugin-manager.d.ts.map +1 -0
- package/packages/agent/src/services/config-plugin-manager.js +53 -0
- package/packages/agent/src/services/connector-setup-service.d.ts +48 -0
- package/packages/agent/src/services/connector-setup-service.d.ts.map +1 -0
- package/packages/agent/src/services/connector-setup-service.js +60 -0
- package/packages/agent/src/services/conversation-proximity.d.ts +27 -0
- package/packages/agent/src/services/conversation-proximity.d.ts.map +1 -0
- package/packages/agent/src/services/conversation-proximity.js +124 -0
- package/packages/agent/src/services/escalation.d.ts +35 -0
- package/packages/agent/src/services/escalation.d.ts.map +1 -0
- package/packages/agent/src/services/escalation.js +376 -0
- package/packages/agent/src/services/evm-signing-capability.d.ts +38 -0
- package/packages/agent/src/services/evm-signing-capability.d.ts.map +1 -0
- package/packages/agent/src/services/evm-signing-capability.js +60 -0
- package/packages/agent/src/services/executor-registry.d.ts +4 -0
- package/packages/agent/src/services/executor-registry.d.ts.map +1 -0
- package/packages/agent/src/services/executor-registry.js +10 -0
- package/packages/agent/src/services/hosted-tools.d.ts +70 -0
- package/packages/agent/src/services/hosted-tools.d.ts.map +1 -0
- package/packages/agent/src/services/hosted-tools.js +87 -0
- package/packages/agent/src/services/index.d.ts +27 -0
- package/packages/agent/src/services/index.d.ts.map +1 -0
- package/packages/agent/src/services/index.js +33 -0
- package/packages/agent/src/services/mcp-marketplace.d.ts +89 -0
- package/packages/agent/src/services/mcp-marketplace.d.ts.map +1 -0
- package/packages/agent/src/services/mcp-marketplace.js +200 -0
- package/packages/agent/src/services/overlay-app-presence.d.ts +9 -0
- package/packages/agent/src/services/overlay-app-presence.d.ts.map +1 -0
- package/packages/agent/src/services/overlay-app-presence.js +18 -0
- package/packages/agent/src/services/owner-name.d.ts +4 -0
- package/packages/agent/src/services/owner-name.d.ts.map +1 -0
- package/packages/agent/src/services/owner-name.js +46 -0
- package/packages/agent/src/services/plugin-manager-types.d.ts +114 -0
- package/packages/agent/src/services/plugin-manager-types.d.ts.map +1 -0
- package/packages/agent/src/services/plugin-manager-types.js +18 -0
- package/packages/agent/src/services/registry-client-app-meta.d.ts +6 -0
- package/packages/agent/src/services/registry-client-app-meta.d.ts.map +1 -0
- package/packages/agent/src/services/registry-client-app-meta.js +165 -0
- package/packages/agent/src/services/registry-client-endpoints.d.ts +7 -0
- package/packages/agent/src/services/registry-client-endpoints.d.ts.map +1 -0
- package/packages/agent/src/services/registry-client-endpoints.js +190 -0
- package/packages/agent/src/services/registry-client-local.d.ts +4 -0
- package/packages/agent/src/services/registry-client-local.d.ts.map +1 -0
- package/packages/agent/src/services/registry-client-local.js +546 -0
- package/packages/agent/src/services/registry-client-network.d.ts +9 -0
- package/packages/agent/src/services/registry-client-network.d.ts.map +1 -0
- package/packages/agent/src/services/registry-client-network.js +120 -0
- package/packages/agent/src/services/registry-client-queries.d.ts +26 -0
- package/packages/agent/src/services/registry-client-queries.d.ts.map +1 -0
- package/packages/agent/src/services/registry-client-queries.js +194 -0
- package/packages/agent/src/services/registry-client-types.d.ts +92 -0
- package/packages/agent/src/services/registry-client-types.d.ts.map +1 -0
- package/packages/agent/src/services/registry-client-types.js +1 -0
- package/packages/agent/src/services/registry-client.d.ts +39 -0
- package/packages/agent/src/services/registry-client.d.ts.map +1 -0
- package/packages/agent/src/services/registry-client.js +332 -0
- package/packages/agent/src/services/relationships-graph.d.ts +240 -0
- package/packages/agent/src/services/relationships-graph.d.ts.map +1 -0
- package/packages/agent/src/services/relationships-graph.js +1642 -0
- package/packages/agent/src/services/remote-signing-service.d.ts +58 -0
- package/packages/agent/src/services/remote-signing-service.d.ts.map +1 -0
- package/packages/agent/src/services/remote-signing-service.js +185 -0
- package/packages/agent/src/services/research-task-executor.d.ts +14 -0
- package/packages/agent/src/services/research-task-executor.d.ts.map +1 -0
- package/packages/agent/src/services/research-task-executor.js +136 -0
- package/packages/agent/src/services/sandbox-engine.d.ts +96 -0
- package/packages/agent/src/services/sandbox-engine.d.ts.map +1 -0
- package/packages/agent/src/services/sandbox-engine.js +604 -0
- package/packages/agent/src/services/sandbox-manager.d.ts +106 -0
- package/packages/agent/src/services/sandbox-manager.d.ts.map +1 -0
- package/packages/agent/src/services/sandbox-manager.js +380 -0
- package/packages/agent/src/services/self-updater.d.ts +21 -0
- package/packages/agent/src/services/self-updater.d.ts.map +1 -0
- package/packages/agent/src/services/self-updater.js +162 -0
- package/packages/agent/src/services/send-handler-availability.d.ts +5 -0
- package/packages/agent/src/services/send-handler-availability.d.ts.map +1 -0
- package/packages/agent/src/services/send-handler-availability.js +20 -0
- package/packages/agent/src/services/signal-pairing.d.ts +73 -0
- package/packages/agent/src/services/signal-pairing.d.ts.map +1 -0
- package/packages/agent/src/services/signal-pairing.js +514 -0
- package/packages/agent/src/services/signing-policy.d.ts +44 -0
- package/packages/agent/src/services/signing-policy.d.ts.map +1 -0
- package/packages/agent/src/services/signing-policy.js +165 -0
- package/packages/agent/src/services/skill-catalog-client.d.ts +47 -0
- package/packages/agent/src/services/skill-catalog-client.d.ts.map +1 -0
- package/packages/agent/src/services/skill-catalog-client.js +130 -0
- package/packages/agent/src/services/skill-marketplace.d.ts +42 -0
- package/packages/agent/src/services/skill-marketplace.d.ts.map +1 -0
- package/packages/agent/src/services/skill-marketplace.js +693 -0
- package/packages/agent/src/services/stream-manager.d.ts +121 -0
- package/packages/agent/src/services/stream-manager.d.ts.map +1 -0
- package/packages/agent/src/services/stream-manager.js +609 -0
- package/packages/agent/src/services/task-executor.d.ts +47 -0
- package/packages/agent/src/services/task-executor.d.ts.map +1 -0
- package/packages/agent/src/services/task-executor.js +31 -0
- package/packages/agent/src/services/telegram-account-auth.d.ts +99 -0
- package/packages/agent/src/services/telegram-account-auth.d.ts.map +1 -0
- package/packages/agent/src/services/telegram-account-auth.js +611 -0
- package/packages/agent/src/services/tts-stream-bridge.d.ts +83 -0
- package/packages/agent/src/services/tts-stream-bridge.d.ts.map +1 -0
- package/packages/agent/src/services/tts-stream-bridge.js +360 -0
- package/packages/agent/src/services/update-checker.d.ts +29 -0
- package/packages/agent/src/services/update-checker.d.ts.map +1 -0
- package/packages/agent/src/services/update-checker.js +134 -0
- package/packages/agent/src/services/version-compat.d.ts +99 -0
- package/packages/agent/src/services/version-compat.d.ts.map +1 -0
- package/packages/agent/src/services/version-compat.js +203 -0
- package/packages/agent/src/services/whatsapp-pairing.d.ts +41 -0
- package/packages/agent/src/services/whatsapp-pairing.d.ts.map +1 -0
- package/packages/agent/src/services/whatsapp-pairing.js +209 -0
- package/packages/agent/src/shared/ui-catalog-prompt.d.ts +52 -0
- package/packages/agent/src/shared/ui-catalog-prompt.d.ts.map +1 -0
- package/packages/agent/src/shared/ui-catalog-prompt.js +1028 -0
- package/packages/agent/src/test-support/index.d.ts +4 -0
- package/packages/agent/src/test-support/index.d.ts.map +1 -0
- package/packages/agent/src/test-support/index.js +3 -0
- package/packages/agent/src/test-support/process-helpers.d.ts +13 -0
- package/packages/agent/src/test-support/process-helpers.d.ts.map +1 -0
- package/packages/agent/src/test-support/process-helpers.js +23 -0
- package/packages/agent/src/test-support/route-test-helpers.d.ts +37 -0
- package/packages/agent/src/test-support/route-test-helpers.d.ts.map +1 -0
- package/packages/agent/src/test-support/route-test-helpers.js +54 -0
- package/packages/agent/src/test-support/test-helpers.d.ts +77 -0
- package/packages/agent/src/test-support/test-helpers.d.ts.map +1 -0
- package/packages/agent/src/test-support/test-helpers.js +217 -0
- package/packages/agent/src/test-utils/sqlite-compat.d.ts +23 -0
- package/packages/agent/src/test-utils/sqlite-compat.d.ts.map +1 -0
- package/packages/agent/src/test-utils/sqlite-compat.js +214 -0
- package/packages/agent/src/triggers/action.d.ts +4 -0
- package/packages/agent/src/triggers/action.d.ts.map +1 -0
- package/packages/agent/src/triggers/action.js +336 -0
- package/packages/agent/src/triggers/delete-trigger.d.ts +10 -0
- package/packages/agent/src/triggers/delete-trigger.d.ts.map +1 -0
- package/packages/agent/src/triggers/delete-trigger.js +158 -0
- package/packages/agent/src/triggers/run-trigger.d.ts +11 -0
- package/packages/agent/src/triggers/run-trigger.d.ts.map +1 -0
- package/packages/agent/src/triggers/run-trigger.js +142 -0
- package/packages/agent/src/triggers/runtime.d.ts +30 -0
- package/packages/agent/src/triggers/runtime.d.ts.map +1 -0
- package/packages/agent/src/triggers/runtime.js +530 -0
- package/packages/agent/src/triggers/scheduling.d.ts +78 -0
- package/packages/agent/src/triggers/scheduling.d.ts.map +1 -0
- package/packages/agent/src/triggers/scheduling.js +433 -0
- package/packages/agent/src/triggers/types.d.ts +96 -0
- package/packages/agent/src/triggers/types.d.ts.map +1 -0
- package/packages/agent/src/triggers/types.js +1 -0
- package/packages/agent/src/triggers/update-trigger.d.ts +10 -0
- package/packages/agent/src/triggers/update-trigger.d.ts.map +1 -0
- package/packages/agent/src/triggers/update-trigger.js +309 -0
- package/packages/agent/src/types/agent-skills.d.ts +19 -0
- package/packages/agent/src/types/agent-skills.d.ts.map +1 -0
- package/packages/agent/src/types/agent-skills.js +7 -0
- package/packages/agent/src/types/config-like.d.ts +17 -0
- package/packages/agent/src/types/config-like.d.ts.map +1 -0
- package/packages/agent/src/types/config-like.js +7 -0
- package/packages/agent/src/types/index.d.ts +4 -0
- package/packages/agent/src/types/index.d.ts.map +1 -0
- package/packages/agent/src/types/index.js +3 -0
- package/packages/agent/src/types/trajectory.d.ts +147 -0
- package/packages/agent/src/types/trajectory.d.ts.map +1 -0
- package/packages/agent/src/types/trajectory.js +8 -0
- package/packages/agent/src/utils/exec-safety.d.ts +2 -0
- package/packages/agent/src/utils/exec-safety.d.ts.map +1 -0
- package/packages/agent/src/utils/exec-safety.js +21 -0
- package/packages/agent/src/utils/number-parsing.d.ts +26 -0
- package/packages/agent/src/utils/number-parsing.d.ts.map +1 -0
- package/packages/agent/src/utils/number-parsing.js +51 -0
- package/packages/agent/src/version-resolver.d.ts +2 -0
- package/packages/agent/src/version-resolver.d.ts.map +1 -0
- package/packages/agent/src/version-resolver.js +50 -0
- package/packages/app-core/src/App.d.ts +6 -0
- package/packages/app-core/src/App.d.ts.map +1 -0
- package/packages/app-core/src/App.js +518 -0
- package/packages/app-core/src/api/auth/audit.d.ts +52 -0
- package/packages/app-core/src/api/auth/audit.d.ts.map +1 -0
- package/packages/app-core/src/api/auth/audit.js +126 -0
- package/packages/app-core/src/api/auth/legacy-bearer.d.ts +75 -0
- package/packages/app-core/src/api/auth/legacy-bearer.d.ts.map +1 -0
- package/packages/app-core/src/api/auth/legacy-bearer.js +126 -0
- package/packages/app-core/src/api/auth/sessions.d.ts +152 -0
- package/packages/app-core/src/api/auth/sessions.d.ts.map +1 -0
- package/packages/app-core/src/api/auth/sessions.js +298 -0
- package/packages/app-core/src/api/auth-client.d.ts +130 -0
- package/packages/app-core/src/api/auth-client.d.ts.map +1 -0
- package/packages/app-core/src/api/auth-client.js +301 -0
- package/packages/app-core/src/api/auth.d.ts +157 -0
- package/packages/app-core/src/api/auth.d.ts.map +1 -0
- package/packages/app-core/src/api/auth.js +340 -0
- package/packages/app-core/src/api/client-agent.d.ts +616 -0
- package/packages/app-core/src/api/client-agent.d.ts.map +1 -0
- package/packages/app-core/src/api/client-agent.js +1369 -0
- package/packages/app-core/src/api/client-automations.d.ts +8 -0
- package/packages/app-core/src/api/client-automations.d.ts.map +1 -0
- package/packages/app-core/src/api/client-automations.js +7 -0
- package/packages/app-core/src/api/client-base.d.ts +82 -0
- package/packages/app-core/src/api/client-base.d.ts.map +1 -0
- package/packages/app-core/src/api/client-base.js +697 -0
- package/packages/app-core/src/api/client-browser-workspace.d.ts +25 -0
- package/packages/app-core/src/api/client-browser-workspace.d.ts.map +1 -0
- package/packages/app-core/src/api/client-browser-workspace.js +98 -0
- package/packages/app-core/src/api/client-chat.d.ts +355 -0
- package/packages/app-core/src/api/client-chat.d.ts.map +1 -0
- package/packages/app-core/src/api/client-chat.js +582 -0
- package/packages/app-core/src/api/client-cloud.d.ts +282 -0
- package/packages/app-core/src/api/client-cloud.d.ts.map +1 -0
- package/packages/app-core/src/api/client-cloud.js +403 -0
- package/packages/app-core/src/api/client-computeruse.d.ts +32 -0
- package/packages/app-core/src/api/client-computeruse.d.ts.map +1 -0
- package/packages/app-core/src/api/client-computeruse.js +16 -0
- package/packages/app-core/src/api/client-imessage.d.ts +68 -0
- package/packages/app-core/src/api/client-imessage.d.ts.map +1 -0
- package/packages/app-core/src/api/client-imessage.js +74 -0
- package/packages/app-core/src/api/client-local-inference.d.ts +62 -0
- package/packages/app-core/src/api/client-local-inference.d.ts.map +1 -0
- package/packages/app-core/src/api/client-local-inference.js +87 -0
- package/packages/app-core/src/api/client-n8n.d.ts +27 -0
- package/packages/app-core/src/api/client-n8n.d.ts.map +1 -0
- package/packages/app-core/src/api/client-n8n.js +61 -0
- package/packages/app-core/src/api/client-skills.d.ts +475 -0
- package/packages/app-core/src/api/client-skills.d.ts.map +1 -0
- package/packages/app-core/src/api/client-skills.js +608 -0
- package/packages/app-core/src/api/client-types-babylon.d.ts +254 -0
- package/packages/app-core/src/api/client-types-babylon.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types-babylon.js +2 -0
- package/packages/app-core/src/api/client-types-character.d.ts +39 -0
- package/packages/app-core/src/api/client-types-character.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types-character.js +1 -0
- package/packages/app-core/src/api/client-types-chat.d.ts +420 -0
- package/packages/app-core/src/api/client-types-chat.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types-chat.js +9 -0
- package/packages/app-core/src/api/client-types-cloud.d.ts +803 -0
- package/packages/app-core/src/api/client-types-cloud.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types-cloud.js +57 -0
- package/packages/app-core/src/api/client-types-config.d.ts +586 -0
- package/packages/app-core/src/api/client-types-config.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types-config.js +5 -0
- package/packages/app-core/src/api/client-types-core.d.ts +337 -0
- package/packages/app-core/src/api/client-types-core.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types-core.js +22 -0
- package/packages/app-core/src/api/client-types-experience.d.ts +47 -0
- package/packages/app-core/src/api/client-types-experience.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types-experience.js +1 -0
- package/packages/app-core/src/api/client-types-relationships.d.ts +181 -0
- package/packages/app-core/src/api/client-types-relationships.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types-relationships.js +1 -0
- package/packages/app-core/src/api/client-types.d.ts +9 -0
- package/packages/app-core/src/api/client-types.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types.js +12 -0
- package/packages/app-core/src/api/client-wallet.d.ts +123 -0
- package/packages/app-core/src/api/client-wallet.d.ts.map +1 -0
- package/packages/app-core/src/api/client-wallet.js +222 -0
- package/packages/app-core/src/api/client.d.ts +38 -0
- package/packages/app-core/src/api/client.d.ts.map +1 -0
- package/packages/app-core/src/api/client.js +38 -0
- package/packages/app-core/src/api/cloud-secrets.d.ts +23 -0
- package/packages/app-core/src/api/cloud-secrets.d.ts.map +1 -0
- package/packages/app-core/src/api/cloud-secrets.js +50 -0
- package/packages/app-core/src/api/compat-route-shared.d.ts +29 -0
- package/packages/app-core/src/api/compat-route-shared.d.ts.map +1 -0
- package/packages/app-core/src/api/compat-route-shared.js +284 -0
- package/packages/app-core/src/api/csrf-client.d.ts +29 -0
- package/packages/app-core/src/api/csrf-client.d.ts.map +1 -0
- package/packages/app-core/src/api/csrf-client.js +54 -0
- package/packages/app-core/src/api/index.d.ts +2 -0
- package/packages/app-core/src/api/index.d.ts.map +1 -0
- package/packages/app-core/src/api/index.js +1 -0
- package/packages/app-core/src/api/response.d.ts +12 -0
- package/packages/app-core/src/api/response.d.ts.map +1 -0
- package/packages/app-core/src/api/response.js +36 -0
- package/packages/app-core/src/api/server-cloud-tts.d.ts +41 -0
- package/packages/app-core/src/api/server-cloud-tts.d.ts.map +1 -0
- package/packages/app-core/src/api/server-cloud-tts.js +471 -0
- package/packages/app-core/src/app-shell/task-coordinator-slots.d.ts +38 -0
- package/packages/app-core/src/app-shell/task-coordinator-slots.d.ts.map +1 -0
- package/packages/app-core/src/app-shell/task-coordinator-slots.js +21 -0
- package/packages/app-core/src/autonomy/index.d.ts +48 -0
- package/packages/app-core/src/autonomy/index.d.ts.map +1 -0
- package/packages/app-core/src/autonomy/index.js +336 -0
- package/packages/app-core/src/bridge/capacitor-bridge.d.ts +153 -0
- package/packages/app-core/src/bridge/capacitor-bridge.d.ts.map +1 -0
- package/packages/app-core/src/bridge/capacitor-bridge.js +195 -0
- package/packages/app-core/src/bridge/electrobun-rpc.d.ts +57 -0
- package/packages/app-core/src/bridge/electrobun-rpc.d.ts.map +1 -0
- package/packages/app-core/src/bridge/electrobun-rpc.js +87 -0
- package/packages/app-core/src/bridge/electrobun-runtime.d.ts +3 -0
- package/packages/app-core/src/bridge/electrobun-runtime.d.ts.map +1 -0
- package/packages/app-core/src/bridge/electrobun-runtime.js +34 -0
- package/packages/app-core/src/bridge/gateway-discovery.d.ts +17 -0
- package/packages/app-core/src/bridge/gateway-discovery.d.ts.map +1 -0
- package/packages/app-core/src/bridge/gateway-discovery.js +49 -0
- package/packages/app-core/src/bridge/index.d.ts +7 -0
- package/packages/app-core/src/bridge/index.d.ts.map +1 -0
- package/packages/app-core/src/bridge/index.js +6 -0
- package/packages/app-core/src/bridge/native-plugins.d.ts +504 -0
- package/packages/app-core/src/bridge/native-plugins.d.ts.map +1 -0
- package/packages/app-core/src/bridge/native-plugins.js +67 -0
- package/packages/app-core/src/bridge/plugin-bridge.d.ts +133 -0
- package/packages/app-core/src/bridge/plugin-bridge.d.ts.map +1 -0
- package/packages/app-core/src/bridge/plugin-bridge.js +241 -0
- package/packages/app-core/src/bridge/storage-bridge.d.ts +39 -0
- package/packages/app-core/src/bridge/storage-bridge.d.ts.map +1 -0
- package/packages/app-core/src/bridge/storage-bridge.js +142 -0
- package/packages/app-core/src/character/character-draft-helpers.d.ts +35 -0
- package/packages/app-core/src/character/character-draft-helpers.d.ts.map +1 -0
- package/packages/app-core/src/character/character-draft-helpers.js +270 -0
- package/packages/app-core/src/chat/coding-agent-session-state.d.ts +16 -0
- package/packages/app-core/src/chat/coding-agent-session-state.d.ts.map +1 -0
- package/packages/app-core/src/chat/coding-agent-session-state.js +27 -0
- package/packages/app-core/src/chat/index.d.ts +65 -0
- package/packages/app-core/src/chat/index.d.ts.map +1 -0
- package/packages/app-core/src/chat/index.js +225 -0
- package/packages/app-core/src/components/accounts/AccountCard.d.ts +30 -0
- package/packages/app-core/src/components/accounts/AccountCard.d.ts.map +1 -0
- package/packages/app-core/src/components/accounts/AccountCard.js +183 -0
- package/packages/app-core/src/components/accounts/AccountList.d.ts +15 -0
- package/packages/app-core/src/components/accounts/AccountList.d.ts.map +1 -0
- package/packages/app-core/src/components/accounts/AccountList.js +97 -0
- package/packages/app-core/src/components/accounts/AddAccountDialog.d.ts +33 -0
- package/packages/app-core/src/components/accounts/AddAccountDialog.d.ts.map +1 -0
- package/packages/app-core/src/components/accounts/AddAccountDialog.js +343 -0
- package/packages/app-core/src/components/accounts/RotationStrategyPicker.d.ts +16 -0
- package/packages/app-core/src/components/accounts/RotationStrategyPicker.d.ts.map +1 -0
- package/packages/app-core/src/components/accounts/RotationStrategyPicker.js +50 -0
- package/packages/app-core/src/components/apps/AppsCatalogGrid.d.ts +14 -0
- package/packages/app-core/src/components/apps/AppsCatalogGrid.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/AppsCatalogGrid.js +208 -0
- package/packages/app-core/src/components/apps/AppsSidebar.d.ts +22 -0
- package/packages/app-core/src/components/apps/AppsSidebar.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/AppsSidebar.js +98 -0
- package/packages/app-core/src/components/apps/GameView.d.ts +18 -0
- package/packages/app-core/src/components/apps/GameView.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/GameView.js +1133 -0
- package/packages/app-core/src/components/apps/GameViewOverlay.d.ts +2 -0
- package/packages/app-core/src/components/apps/GameViewOverlay.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/GameViewOverlay.js +120 -0
- package/packages/app-core/src/components/apps/RunningAppsRow.d.ts +12 -0
- package/packages/app-core/src/components/apps/RunningAppsRow.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/RunningAppsRow.js +35 -0
- package/packages/app-core/src/components/apps/app-identity.d.ts +24 -0
- package/packages/app-core/src/components/apps/app-identity.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/app-identity.js +161 -0
- package/packages/app-core/src/components/apps/catalog-loader.d.ts +7 -0
- package/packages/app-core/src/components/apps/catalog-loader.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/catalog-loader.js +21 -0
- package/packages/app-core/src/components/apps/extensions/registry.d.ts +12 -0
- package/packages/app-core/src/components/apps/extensions/registry.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/extensions/registry.js +23 -0
- package/packages/app-core/src/components/apps/extensions/surface.d.ts +34 -0
- package/packages/app-core/src/components/apps/extensions/surface.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/extensions/surface.js +96 -0
- package/packages/app-core/src/components/apps/extensions/types.d.ts +7 -0
- package/packages/app-core/src/components/apps/extensions/types.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/extensions/types.js +1 -0
- package/packages/app-core/src/components/apps/helpers.d.ts +50 -0
- package/packages/app-core/src/components/apps/helpers.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/helpers.js +353 -0
- package/packages/app-core/src/components/apps/internal-tool-apps.d.ts +18 -0
- package/packages/app-core/src/components/apps/internal-tool-apps.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/internal-tool-apps.js +173 -0
- package/packages/app-core/src/components/apps/launch-history.d.ts +16 -0
- package/packages/app-core/src/components/apps/launch-history.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/launch-history.js +77 -0
- package/packages/app-core/src/components/apps/overlay-app-api.d.ts +55 -0
- package/packages/app-core/src/components/apps/overlay-app-api.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/overlay-app-api.js +8 -0
- package/packages/app-core/src/components/apps/overlay-app-registry.d.ts +19 -0
- package/packages/app-core/src/components/apps/overlay-app-registry.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/overlay-app-registry.js +47 -0
- package/packages/app-core/src/components/apps/per-app-config.d.ts +19 -0
- package/packages/app-core/src/components/apps/per-app-config.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/per-app-config.js +99 -0
- package/packages/app-core/src/components/apps/run-attention.d.ts +3 -0
- package/packages/app-core/src/components/apps/run-attention.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/run-attention.js +77 -0
- package/packages/app-core/src/components/apps/surfaces/GameOperatorShell.d.ts +47 -0
- package/packages/app-core/src/components/apps/surfaces/GameOperatorShell.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/surfaces/GameOperatorShell.js +42 -0
- package/packages/app-core/src/components/apps/surfaces/registry.d.ts +11 -0
- package/packages/app-core/src/components/apps/surfaces/registry.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/surfaces/registry.js +23 -0
- package/packages/app-core/src/components/apps/surfaces/types.d.ts +10 -0
- package/packages/app-core/src/components/apps/surfaces/types.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/surfaces/types.js +1 -0
- package/packages/app-core/src/components/apps/useRegistryCatalog.d.ts +14 -0
- package/packages/app-core/src/components/apps/useRegistryCatalog.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/useRegistryCatalog.js +52 -0
- package/packages/app-core/src/components/apps/viewer-auth.d.ts +7 -0
- package/packages/app-core/src/components/apps/viewer-auth.d.ts.map +1 -0
- package/packages/app-core/src/components/apps/viewer-auth.js +55 -0
- package/packages/app-core/src/components/auth/LoginView.d.ts +17 -0
- package/packages/app-core/src/components/auth/LoginView.d.ts.map +1 -0
- package/packages/app-core/src/components/auth/LoginView.js +62 -0
- package/packages/app-core/src/components/character/CharacterEditor.d.ts +12 -0
- package/packages/app-core/src/components/character/CharacterEditor.d.ts.map +1 -0
- package/packages/app-core/src/components/character/CharacterEditor.js +885 -0
- package/packages/app-core/src/components/character/CharacterEditorPanels.d.ts +35 -0
- package/packages/app-core/src/components/character/CharacterEditorPanels.d.ts.map +1 -0
- package/packages/app-core/src/components/character/CharacterEditorPanels.js +250 -0
- package/packages/app-core/src/components/character/CharacterExperienceWorkspace.d.ts +11 -0
- package/packages/app-core/src/components/character/CharacterExperienceWorkspace.d.ts.map +1 -0
- package/packages/app-core/src/components/character/CharacterExperienceWorkspace.js +236 -0
- package/packages/app-core/src/components/character/CharacterHubView.d.ts +22 -0
- package/packages/app-core/src/components/character/CharacterHubView.d.ts.map +1 -0
- package/packages/app-core/src/components/character/CharacterHubView.js +688 -0
- package/packages/app-core/src/components/character/CharacterLearnedSkillsSection.d.ts +2 -0
- package/packages/app-core/src/components/character/CharacterLearnedSkillsSection.d.ts.map +1 -0
- package/packages/app-core/src/components/character/CharacterLearnedSkillsSection.js +76 -0
- package/packages/app-core/src/components/character/CharacterOverviewSection.d.ts +27 -0
- package/packages/app-core/src/components/character/CharacterOverviewSection.d.ts.map +1 -0
- package/packages/app-core/src/components/character/CharacterOverviewSection.js +36 -0
- package/packages/app-core/src/components/character/CharacterRelationshipsSection.d.ts +7 -0
- package/packages/app-core/src/components/character/CharacterRelationshipsSection.d.ts.map +1 -0
- package/packages/app-core/src/components/character/CharacterRelationshipsSection.js +4 -0
- package/packages/app-core/src/components/character/CharacterRoster.d.ts +32 -0
- package/packages/app-core/src/components/character/CharacterRoster.d.ts.map +1 -0
- package/packages/app-core/src/components/character/CharacterRoster.js +111 -0
- package/packages/app-core/src/components/character/MusicLibraryCharacterWidget.d.ts +3 -0
- package/packages/app-core/src/components/character/MusicLibraryCharacterWidget.d.ts.map +1 -0
- package/packages/app-core/src/components/character/MusicLibraryCharacterWidget.js +27 -0
- package/packages/app-core/src/components/character/character-editor-helpers.d.ts +42 -0
- package/packages/app-core/src/components/character/character-editor-helpers.d.ts.map +1 -0
- package/packages/app-core/src/components/character/character-editor-helpers.js +58 -0
- package/packages/app-core/src/components/character/character-greeting.d.ts +5 -0
- package/packages/app-core/src/components/character/character-greeting.d.ts.map +1 -0
- package/packages/app-core/src/components/character/character-greeting.js +22 -0
- package/packages/app-core/src/components/character/character-hub-helpers.d.ts +14 -0
- package/packages/app-core/src/components/character/character-hub-helpers.d.ts.map +1 -0
- package/packages/app-core/src/components/character/character-hub-helpers.js +136 -0
- package/packages/app-core/src/components/character/character-hub-types.d.ts +56 -0
- package/packages/app-core/src/components/character/character-hub-types.d.ts.map +1 -0
- package/packages/app-core/src/components/character/character-hub-types.js +1 -0
- package/packages/app-core/src/components/character/character-voice-config.d.ts +33 -0
- package/packages/app-core/src/components/character/character-voice-config.d.ts.map +1 -0
- package/packages/app-core/src/components/character/character-voice-config.js +95 -0
- package/packages/app-core/src/components/chat/AgentActivityBox.d.ts +8 -0
- package/packages/app-core/src/components/chat/AgentActivityBox.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/AgentActivityBox.js +33 -0
- package/packages/app-core/src/components/chat/AppsSection.d.ts +13 -0
- package/packages/app-core/src/components/chat/AppsSection.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/AppsSection.js +175 -0
- package/packages/app-core/src/components/chat/MessageContent.d.ts +41 -0
- package/packages/app-core/src/components/chat/MessageContent.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/MessageContent.js +691 -0
- package/packages/app-core/src/components/chat/SaveCommandModal.d.ts +9 -0
- package/packages/app-core/src/components/chat/SaveCommandModal.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/SaveCommandModal.js +59 -0
- package/packages/app-core/src/components/chat/TasksEventsPanel.d.ts +30 -0
- package/packages/app-core/src/components/chat/TasksEventsPanel.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/TasksEventsPanel.js +139 -0
- package/packages/app-core/src/components/chat/WidgetVisibilityPanel.d.ts +25 -0
- package/packages/app-core/src/components/chat/WidgetVisibilityPanel.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/WidgetVisibilityPanel.js +30 -0
- package/packages/app-core/src/components/chat/chat-source-registration.d.ts +1 -0
- package/packages/app-core/src/components/chat/chat-source-registration.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/chat-source-registration.js +1 -0
- package/packages/app-core/src/components/chat/message-choice-parser.d.ts +20 -0
- package/packages/app-core/src/components/chat/message-choice-parser.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/message-choice-parser.js +53 -0
- package/packages/app-core/src/components/chat/widgets/ChoiceWidget.d.ts +24 -0
- package/packages/app-core/src/components/chat/widgets/ChoiceWidget.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/widgets/ChoiceWidget.js +38 -0
- package/packages/app-core/src/components/chat/widgets/agent-orchestrator.d.ts +20 -0
- package/packages/app-core/src/components/chat/widgets/agent-orchestrator.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/widgets/agent-orchestrator.js +273 -0
- package/packages/app-core/src/components/chat/widgets/browser-status.d.ts +14 -0
- package/packages/app-core/src/components/chat/widgets/browser-status.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/widgets/browser-status.js +109 -0
- package/packages/app-core/src/components/chat/widgets/music-player.d.ts +4 -0
- package/packages/app-core/src/components/chat/widgets/music-player.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/widgets/music-player.js +132 -0
- package/packages/app-core/src/components/chat/widgets/registry.d.ts +8 -0
- package/packages/app-core/src/components/chat/widgets/registry.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/widgets/registry.js +7 -0
- package/packages/app-core/src/components/chat/widgets/shared.d.ts +17 -0
- package/packages/app-core/src/components/chat/widgets/shared.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/widgets/shared.js +8 -0
- package/packages/app-core/src/components/chat/widgets/todo.d.ts +3 -0
- package/packages/app-core/src/components/chat/widgets/todo.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/widgets/todo.js +109 -0
- package/packages/app-core/src/components/chat/widgets/types.d.ts +16 -0
- package/packages/app-core/src/components/chat/widgets/types.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/widgets/types.js +1 -0
- package/packages/app-core/src/components/chat/widgets/wallet-status.d.ts +4 -0
- package/packages/app-core/src/components/chat/widgets/wallet-status.d.ts.map +1 -0
- package/packages/app-core/src/components/chat/widgets/wallet-status.js +190 -0
- package/packages/app-core/src/components/cloud/CloudSourceControls.d.ts +13 -0
- package/packages/app-core/src/components/cloud/CloudSourceControls.d.ts.map +1 -0
- package/packages/app-core/src/components/cloud/CloudSourceControls.js +19 -0
- package/packages/app-core/src/components/cloud/CloudStatusBadge.d.ts +33 -0
- package/packages/app-core/src/components/cloud/CloudStatusBadge.d.ts.map +1 -0
- package/packages/app-core/src/components/cloud/CloudStatusBadge.js +98 -0
- package/packages/app-core/src/components/cloud/FlaminaGuide.d.ts +10 -0
- package/packages/app-core/src/components/cloud/FlaminaGuide.d.ts.map +1 -0
- package/packages/app-core/src/components/cloud/FlaminaGuide.js +86 -0
- package/packages/app-core/src/components/cloud/StripeEmbeddedCheckout.d.ts +24 -0
- package/packages/app-core/src/components/cloud/StripeEmbeddedCheckout.d.ts.map +1 -0
- package/packages/app-core/src/components/cloud/StripeEmbeddedCheckout.js +101 -0
- package/packages/app-core/src/components/companion/injected.d.ts +10 -0
- package/packages/app-core/src/components/companion/injected.d.ts.map +1 -0
- package/packages/app-core/src/components/companion/injected.js +25 -0
- package/packages/app-core/src/components/config-ui/config-control-primitives.d.ts +14 -0
- package/packages/app-core/src/components/config-ui/config-control-primitives.d.ts.map +1 -0
- package/packages/app-core/src/components/config-ui/config-control-primitives.js +22 -0
- package/packages/app-core/src/components/config-ui/config-field.d.ts +58 -0
- package/packages/app-core/src/components/config-ui/config-field.d.ts.map +1 -0
- package/packages/app-core/src/components/config-ui/config-field.js +874 -0
- package/packages/app-core/src/components/config-ui/config-renderer.d.ts +164 -0
- package/packages/app-core/src/components/config-ui/config-renderer.d.ts.map +1 -0
- package/packages/app-core/src/components/config-ui/config-renderer.js +397 -0
- package/packages/app-core/src/components/config-ui/index.d.ts +5 -0
- package/packages/app-core/src/components/config-ui/index.d.ts.map +1 -0
- package/packages/app-core/src/components/config-ui/index.js +4 -0
- package/packages/app-core/src/components/config-ui/ui-renderer.d.ts +15 -0
- package/packages/app-core/src/components/config-ui/ui-renderer.d.ts.map +1 -0
- package/packages/app-core/src/components/config-ui/ui-renderer.js +826 -0
- package/packages/app-core/src/components/connectors/BlueBubblesStatusPanel.d.ts +2 -0
- package/packages/app-core/src/components/connectors/BlueBubblesStatusPanel.d.ts.map +1 -0
- package/packages/app-core/src/components/connectors/BlueBubblesStatusPanel.js +61 -0
- package/packages/app-core/src/components/connectors/ConnectorSetupPanel.d.ts +12 -0
- package/packages/app-core/src/components/connectors/ConnectorSetupPanel.d.ts.map +1 -0
- package/packages/app-core/src/components/connectors/ConnectorSetupPanel.js +92 -0
- package/packages/app-core/src/components/connectors/DiscordLocalConnectorPanel.d.ts +2 -0
- package/packages/app-core/src/components/connectors/DiscordLocalConnectorPanel.d.ts.map +1 -0
- package/packages/app-core/src/components/connectors/DiscordLocalConnectorPanel.js +249 -0
- package/packages/app-core/src/components/connectors/IMessageStatusPanel.d.ts +2 -0
- package/packages/app-core/src/components/connectors/IMessageStatusPanel.d.ts.map +1 -0
- package/packages/app-core/src/components/connectors/IMessageStatusPanel.js +63 -0
- package/packages/app-core/src/components/connectors/SignalQrOverlay.d.ts +7 -0
- package/packages/app-core/src/components/connectors/SignalQrOverlay.d.ts.map +1 -0
- package/packages/app-core/src/components/connectors/SignalQrOverlay.js +63 -0
- package/packages/app-core/src/components/connectors/TelegramAccountConnectorPanel.d.ts +2 -0
- package/packages/app-core/src/components/connectors/TelegramAccountConnectorPanel.d.ts.map +1 -0
- package/packages/app-core/src/components/connectors/TelegramAccountConnectorPanel.js +202 -0
- package/packages/app-core/src/components/connectors/TelegramBotSetupPanel.d.ts +2 -0
- package/packages/app-core/src/components/connectors/TelegramBotSetupPanel.d.ts.map +1 -0
- package/packages/app-core/src/components/connectors/TelegramBotSetupPanel.js +81 -0
- package/packages/app-core/src/components/connectors/WhatsAppQrOverlay.d.ts +9 -0
- package/packages/app-core/src/components/connectors/WhatsAppQrOverlay.d.ts.map +1 -0
- package/packages/app-core/src/components/connectors/WhatsAppQrOverlay.js +53 -0
- package/packages/app-core/src/components/conversations/ConversationRenameDialog.d.ts +9 -0
- package/packages/app-core/src/components/conversations/ConversationRenameDialog.d.ts.map +1 -0
- package/packages/app-core/src/components/conversations/ConversationRenameDialog.js +46 -0
- package/packages/app-core/src/components/conversations/ConversationsSidebar.d.ts +9 -0
- package/packages/app-core/src/components/conversations/ConversationsSidebar.d.ts.map +1 -0
- package/packages/app-core/src/components/conversations/ConversationsSidebar.js +555 -0
- package/packages/app-core/src/components/conversations/brand-icons.d.ts +12 -0
- package/packages/app-core/src/components/conversations/brand-icons.d.ts.map +1 -0
- package/packages/app-core/src/components/conversations/brand-icons.js +49 -0
- package/packages/app-core/src/components/conversations/conversation-sidebar-model.d.ts +66 -0
- package/packages/app-core/src/components/conversations/conversation-sidebar-model.d.ts.map +1 -0
- package/packages/app-core/src/components/conversations/conversation-sidebar-model.js +340 -0
- package/packages/app-core/src/components/conversations/conversation-utils.d.ts +9 -0
- package/packages/app-core/src/components/conversations/conversation-utils.d.ts.map +1 -0
- package/packages/app-core/src/components/conversations/conversation-utils.js +142 -0
- package/packages/app-core/src/components/custom-actions/CustomActionEditor.d.ts +10 -0
- package/packages/app-core/src/components/custom-actions/CustomActionEditor.d.ts.map +1 -0
- package/packages/app-core/src/components/custom-actions/CustomActionEditor.js +385 -0
- package/packages/app-core/src/components/custom-actions/CustomActionsPanel.d.ts +9 -0
- package/packages/app-core/src/components/custom-actions/CustomActionsPanel.d.ts.map +1 -0
- package/packages/app-core/src/components/custom-actions/CustomActionsPanel.js +158 -0
- package/packages/app-core/src/components/custom-actions/CustomActionsView.d.ts +2 -0
- package/packages/app-core/src/components/custom-actions/CustomActionsView.d.ts.map +1 -0
- package/packages/app-core/src/components/custom-actions/CustomActionsView.js +144 -0
- package/packages/app-core/src/components/custom-actions/custom-action-form.d.ts +44 -0
- package/packages/app-core/src/components/custom-actions/custom-action-form.d.ts.map +1 -0
- package/packages/app-core/src/components/custom-actions/custom-action-form.js +237 -0
- package/packages/app-core/src/components/index.d.ts +100 -0
- package/packages/app-core/src/components/index.d.ts.map +1 -0
- package/packages/app-core/src/components/index.js +101 -0
- package/packages/app-core/src/components/inventory/ChainIcon.d.ts +9 -0
- package/packages/app-core/src/components/inventory/ChainIcon.d.ts.map +1 -0
- package/packages/app-core/src/components/inventory/ChainIcon.js +58 -0
- package/packages/app-core/src/components/inventory/TokenLogo.d.ts +9 -0
- package/packages/app-core/src/components/inventory/TokenLogo.d.ts.map +1 -0
- package/packages/app-core/src/components/inventory/TokenLogo.js +26 -0
- package/packages/app-core/src/components/inventory/chainConfig.d.ts +89 -0
- package/packages/app-core/src/components/inventory/chainConfig.d.ts.map +1 -0
- package/packages/app-core/src/components/inventory/chainConfig.js +285 -0
- package/packages/app-core/src/components/inventory/constants.d.ts +30 -0
- package/packages/app-core/src/components/inventory/constants.d.ts.map +1 -0
- package/packages/app-core/src/components/inventory/constants.js +57 -0
- package/packages/app-core/src/components/inventory/inventory-chain-filters.d.ts +11 -0
- package/packages/app-core/src/components/inventory/inventory-chain-filters.d.ts.map +1 -0
- package/packages/app-core/src/components/inventory/inventory-chain-filters.js +41 -0
- package/packages/app-core/src/components/inventory/media-url.d.ts +6 -0
- package/packages/app-core/src/components/inventory/media-url.d.ts.map +1 -0
- package/packages/app-core/src/components/inventory/media-url.js +28 -0
- package/packages/app-core/src/components/inventory/useInventoryData.d.ts +38 -0
- package/packages/app-core/src/components/inventory/useInventoryData.d.ts.map +1 -0
- package/packages/app-core/src/components/inventory/useInventoryData.js +278 -0
- package/packages/app-core/src/components/local-inference/ActiveModelBar.d.ts +10 -0
- package/packages/app-core/src/components/local-inference/ActiveModelBar.d.ts.map +1 -0
- package/packages/app-core/src/components/local-inference/ActiveModelBar.js +19 -0
- package/packages/app-core/src/components/local-inference/DeviceBridgeStatus.d.ts +2 -0
- package/packages/app-core/src/components/local-inference/DeviceBridgeStatus.d.ts.map +1 -0
- package/packages/app-core/src/components/local-inference/DeviceBridgeStatus.js +39 -0
- package/packages/app-core/src/components/local-inference/DevicesPanel.d.ts +8 -0
- package/packages/app-core/src/components/local-inference/DevicesPanel.d.ts.map +1 -0
- package/packages/app-core/src/components/local-inference/DevicesPanel.js +44 -0
- package/packages/app-core/src/components/local-inference/DownloadProgress.d.ts +7 -0
- package/packages/app-core/src/components/local-inference/DownloadProgress.d.ts.map +1 -0
- package/packages/app-core/src/components/local-inference/DownloadProgress.js +8 -0
- package/packages/app-core/src/components/local-inference/DownloadQueue.d.ts +15 -0
- package/packages/app-core/src/components/local-inference/DownloadQueue.d.ts.map +1 -0
- package/packages/app-core/src/components/local-inference/DownloadQueue.js +21 -0
- package/packages/app-core/src/components/local-inference/FirstRunOffer.d.ts +11 -0
- package/packages/app-core/src/components/local-inference/FirstRunOffer.d.ts.map +1 -0
- package/packages/app-core/src/components/local-inference/FirstRunOffer.js +49 -0
- package/packages/app-core/src/components/local-inference/HardwareBadge.d.ts +7 -0
- package/packages/app-core/src/components/local-inference/HardwareBadge.d.ts.map +1 -0
- package/packages/app-core/src/components/local-inference/HardwareBadge.js +10 -0
- package/packages/app-core/src/components/local-inference/HuggingFaceSearch.d.ts +22 -0
- package/packages/app-core/src/components/local-inference/HuggingFaceSearch.d.ts.map +1 -0
- package/packages/app-core/src/components/local-inference/HuggingFaceSearch.js +68 -0
- package/packages/app-core/src/components/local-inference/LocalInferencePanel.d.ts +5 -0
- package/packages/app-core/src/components/local-inference/LocalInferencePanel.d.ts.map +1 -0
- package/packages/app-core/src/components/local-inference/LocalInferencePanel.js +227 -0
- package/packages/app-core/src/components/local-inference/ModelCard.d.ts +20 -0
- package/packages/app-core/src/components/local-inference/ModelCard.d.ts.map +1 -0
- package/packages/app-core/src/components/local-inference/ModelCard.js +21 -0
- package/packages/app-core/src/components/local-inference/ModelHubView.d.ts +18 -0
- package/packages/app-core/src/components/local-inference/ModelHubView.d.ts.map +1 -0
- package/packages/app-core/src/components/local-inference/ModelHubView.js +40 -0
- package/packages/app-core/src/components/local-inference/ProvidersList.d.ts +15 -0
- package/packages/app-core/src/components/local-inference/ProvidersList.d.ts.map +1 -0
- package/packages/app-core/src/components/local-inference/ProvidersList.js +62 -0
- package/packages/app-core/src/components/local-inference/RoutingMatrix.d.ts +13 -0
- package/packages/app-core/src/components/local-inference/RoutingMatrix.d.ts.map +1 -0
- package/packages/app-core/src/components/local-inference/RoutingMatrix.js +105 -0
- package/packages/app-core/src/components/local-inference/SlotAssignments.d.ts +15 -0
- package/packages/app-core/src/components/local-inference/SlotAssignments.d.ts.map +1 -0
- package/packages/app-core/src/components/local-inference/SlotAssignments.js +58 -0
- package/packages/app-core/src/components/local-inference/hub-utils.d.ts +27 -0
- package/packages/app-core/src/components/local-inference/hub-utils.d.ts.map +1 -0
- package/packages/app-core/src/components/local-inference/hub-utils.js +86 -0
- package/packages/app-core/src/components/onboarding/BootstrapStep.d.ts +32 -0
- package/packages/app-core/src/components/onboarding/BootstrapStep.d.ts.map +1 -0
- package/packages/app-core/src/components/onboarding/BootstrapStep.js +102 -0
- package/packages/app-core/src/components/onboarding/onboarding-form-primitives.d.ts +54 -0
- package/packages/app-core/src/components/onboarding/onboarding-form-primitives.d.ts.map +1 -0
- package/packages/app-core/src/components/onboarding/onboarding-form-primitives.js +55 -0
- package/packages/app-core/src/components/onboarding/onboarding-step-chrome.d.ts +40 -0
- package/packages/app-core/src/components/onboarding/onboarding-step-chrome.d.ts.map +1 -0
- package/packages/app-core/src/components/onboarding/onboarding-step-chrome.js +74 -0
- package/packages/app-core/src/components/pages/AdvancedPageView.d.ts +4 -0
- package/packages/app-core/src/components/pages/AdvancedPageView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/AdvancedPageView.js +72 -0
- package/packages/app-core/src/components/pages/AppDetailsView.d.ts +36 -0
- package/packages/app-core/src/components/pages/AppDetailsView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/AppDetailsView.js +289 -0
- package/packages/app-core/src/components/pages/AppsPageView.d.ts +12 -0
- package/packages/app-core/src/components/pages/AppsPageView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/AppsPageView.js +58 -0
- package/packages/app-core/src/components/pages/AppsView.d.ts +3 -0
- package/packages/app-core/src/components/pages/AppsView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/AppsView.js +903 -0
- package/packages/app-core/src/components/pages/AutomationsView.d.ts +6 -0
- package/packages/app-core/src/components/pages/AutomationsView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/AutomationsView.js +2528 -0
- package/packages/app-core/src/components/pages/BrowserWorkspaceView.d.ts +3 -0
- package/packages/app-core/src/components/pages/BrowserWorkspaceView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/BrowserWorkspaceView.js +909 -0
- package/packages/app-core/src/components/pages/ChatModalView.d.ts +13 -0
- package/packages/app-core/src/components/pages/ChatModalView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/ChatModalView.js +17 -0
- package/packages/app-core/src/components/pages/ChatView.d.ts +24 -0
- package/packages/app-core/src/components/pages/ChatView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/ChatView.js +534 -0
- package/packages/app-core/src/components/pages/ConfigPageView.d.ts +12 -0
- package/packages/app-core/src/components/pages/ConfigPageView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/ConfigPageView.js +263 -0
- package/packages/app-core/src/components/pages/ConnectorsPageView.d.ts +8 -0
- package/packages/app-core/src/components/pages/ConnectorsPageView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/ConnectorsPageView.js +8 -0
- package/packages/app-core/src/components/pages/DatabasePageView.d.ts +5 -0
- package/packages/app-core/src/components/pages/DatabasePageView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/DatabasePageView.js +33 -0
- package/packages/app-core/src/components/pages/DatabaseView.d.ts +6 -0
- package/packages/app-core/src/components/pages/DatabaseView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/DatabaseView.js +247 -0
- package/packages/app-core/src/components/pages/ElizaCloudDashboard.d.ts +2 -0
- package/packages/app-core/src/components/pages/ElizaCloudDashboard.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/ElizaCloudDashboard.js +380 -0
- package/packages/app-core/src/components/pages/HeartbeatForm.d.ts +56 -0
- package/packages/app-core/src/components/pages/HeartbeatForm.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/HeartbeatForm.js +215 -0
- package/packages/app-core/src/components/pages/HeartbeatsView.d.ts +3 -0
- package/packages/app-core/src/components/pages/HeartbeatsView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/HeartbeatsView.js +399 -0
- package/packages/app-core/src/components/pages/InventoryView.d.ts +2 -0
- package/packages/app-core/src/components/pages/InventoryView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/InventoryView.js +837 -0
- package/packages/app-core/src/components/pages/KnowledgeView.d.ts +12 -0
- package/packages/app-core/src/components/pages/KnowledgeView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/KnowledgeView.js +546 -0
- package/packages/app-core/src/components/pages/LogsPageView.d.ts +6 -0
- package/packages/app-core/src/components/pages/LogsPageView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/LogsPageView.js +6 -0
- package/packages/app-core/src/components/pages/LogsView.d.ts +2 -0
- package/packages/app-core/src/components/pages/LogsView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/LogsView.js +85 -0
- package/packages/app-core/src/components/pages/MediaGalleryView.d.ts +6 -0
- package/packages/app-core/src/components/pages/MediaGalleryView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/MediaGalleryView.js +273 -0
- package/packages/app-core/src/components/pages/MemoryDetailPanel.d.ts +5 -0
- package/packages/app-core/src/components/pages/MemoryDetailPanel.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/MemoryDetailPanel.js +17 -0
- package/packages/app-core/src/components/pages/MemoryViewerView.d.ts +5 -0
- package/packages/app-core/src/components/pages/MemoryViewerView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/MemoryViewerView.js +234 -0
- package/packages/app-core/src/components/pages/MiladyOsAppsView.d.ts +4 -0
- package/packages/app-core/src/components/pages/MiladyOsAppsView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/MiladyOsAppsView.js +618 -0
- package/packages/app-core/src/components/pages/PageScopedChatPane.d.ts +48 -0
- package/packages/app-core/src/components/pages/PageScopedChatPane.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/PageScopedChatPane.js +503 -0
- package/packages/app-core/src/components/pages/PluginCard.d.ts +36 -0
- package/packages/app-core/src/components/pages/PluginCard.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/PluginCard.js +128 -0
- package/packages/app-core/src/components/pages/PluginConfigForm.d.ts +29 -0
- package/packages/app-core/src/components/pages/PluginConfigForm.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/PluginConfigForm.js +133 -0
- package/packages/app-core/src/components/pages/PluginsPageView.d.ts +9 -0
- package/packages/app-core/src/components/pages/PluginsPageView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/PluginsPageView.js +5 -0
- package/packages/app-core/src/components/pages/PluginsView.d.ts +11 -0
- package/packages/app-core/src/components/pages/PluginsView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/PluginsView.js +813 -0
- package/packages/app-core/src/components/pages/RelationshipsGraphPanel.d.ts +8 -0
- package/packages/app-core/src/components/pages/RelationshipsGraphPanel.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/RelationshipsGraphPanel.js +696 -0
- package/packages/app-core/src/components/pages/RelationshipsIdentityCluster.d.ts +5 -0
- package/packages/app-core/src/components/pages/RelationshipsIdentityCluster.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/RelationshipsIdentityCluster.js +17 -0
- package/packages/app-core/src/components/pages/RelationshipsView.d.ts +5 -0
- package/packages/app-core/src/components/pages/RelationshipsView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/RelationshipsView.js +5 -0
- package/packages/app-core/src/components/pages/ReleaseCenterView.d.ts +2 -0
- package/packages/app-core/src/components/pages/ReleaseCenterView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/ReleaseCenterView.js +216 -0
- package/packages/app-core/src/components/pages/RuntimeView.d.ts +5 -0
- package/packages/app-core/src/components/pages/RuntimeView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/RuntimeView.js +283 -0
- package/packages/app-core/src/components/pages/ScratchpadView.d.ts +2 -0
- package/packages/app-core/src/components/pages/ScratchpadView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/ScratchpadView.js +364 -0
- package/packages/app-core/src/components/pages/SecretsView.d.ts +5 -0
- package/packages/app-core/src/components/pages/SecretsView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/SecretsView.js +245 -0
- package/packages/app-core/src/components/pages/SettingsView.d.ts +6 -0
- package/packages/app-core/src/components/pages/SettingsView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/SettingsView.js +598 -0
- package/packages/app-core/src/components/pages/SkillsView.d.ts +6 -0
- package/packages/app-core/src/components/pages/SkillsView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/SkillsView.js +205 -0
- package/packages/app-core/src/components/pages/SqlEditorPanel.d.ts +13 -0
- package/packages/app-core/src/components/pages/SqlEditorPanel.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/SqlEditorPanel.js +19 -0
- package/packages/app-core/src/components/pages/StreamView.d.ts +4 -0
- package/packages/app-core/src/components/pages/StreamView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/StreamView.js +113 -0
- package/packages/app-core/src/components/pages/TasksPageView.d.ts +2 -0
- package/packages/app-core/src/components/pages/TasksPageView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/TasksPageView.js +10 -0
- package/packages/app-core/src/components/pages/TrajectoriesView.d.ts +9 -0
- package/packages/app-core/src/components/pages/TrajectoriesView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/TrajectoriesView.js +278 -0
- package/packages/app-core/src/components/pages/TrajectoryDetailView.d.ts +7 -0
- package/packages/app-core/src/components/pages/TrajectoryDetailView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/TrajectoryDetailView.js +173 -0
- package/packages/app-core/src/components/pages/TriggersView.d.ts +3 -0
- package/packages/app-core/src/components/pages/TriggersView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/TriggersView.js +2 -0
- package/packages/app-core/src/components/pages/VectorBrowserView.d.ts +13 -0
- package/packages/app-core/src/components/pages/VectorBrowserView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/VectorBrowserView.js +846 -0
- package/packages/app-core/src/components/pages/WorkflowGraphViewer.d.ts +15 -0
- package/packages/app-core/src/components/pages/WorkflowGraphViewer.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/WorkflowGraphViewer.js +403 -0
- package/packages/app-core/src/components/pages/automation-conversations.d.ts +16 -0
- package/packages/app-core/src/components/pages/automation-conversations.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/automation-conversations.js +204 -0
- package/packages/app-core/src/components/pages/chat-view-hooks.d.ts +63 -0
- package/packages/app-core/src/components/pages/chat-view-hooks.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/chat-view-hooks.js +531 -0
- package/packages/app-core/src/components/pages/cloud-dashboard-utils.d.ts +91 -0
- package/packages/app-core/src/components/pages/cloud-dashboard-utils.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/cloud-dashboard-utils.js +284 -0
- package/packages/app-core/src/components/pages/config-page-sections.d.ts +86 -0
- package/packages/app-core/src/components/pages/config-page-sections.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/config-page-sections.js +205 -0
- package/packages/app-core/src/components/pages/database-utils.d.ts +30 -0
- package/packages/app-core/src/components/pages/database-utils.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/database-utils.js +133 -0
- package/packages/app-core/src/components/pages/heartbeat-utils.d.ts +105 -0
- package/packages/app-core/src/components/pages/heartbeat-utils.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/heartbeat-utils.js +368 -0
- package/packages/app-core/src/components/pages/knowledge-detail.d.ts +9 -0
- package/packages/app-core/src/components/pages/knowledge-detail.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/knowledge-detail.js +149 -0
- package/packages/app-core/src/components/pages/knowledge-upload.d.ts +27 -0
- package/packages/app-core/src/components/pages/knowledge-upload.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/knowledge-upload.js +125 -0
- package/packages/app-core/src/components/pages/page-scoped-conversations.d.ts +62 -0
- package/packages/app-core/src/components/pages/page-scoped-conversations.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/page-scoped-conversations.js +211 -0
- package/packages/app-core/src/components/pages/plugin-list-utils.d.ts +67 -0
- package/packages/app-core/src/components/pages/plugin-list-utils.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/plugin-list-utils.js +666 -0
- package/packages/app-core/src/components/pages/plugin-view-connectors.d.ts +57 -0
- package/packages/app-core/src/components/pages/plugin-view-connectors.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/plugin-view-connectors.js +267 -0
- package/packages/app-core/src/components/pages/plugin-view-dialogs.d.ts +36 -0
- package/packages/app-core/src/components/pages/plugin-view-dialogs.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/plugin-view-dialogs.js +63 -0
- package/packages/app-core/src/components/pages/plugin-view-modal.d.ts +34 -0
- package/packages/app-core/src/components/pages/plugin-view-modal.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/plugin-view-modal.js +29 -0
- package/packages/app-core/src/components/pages/plugin-view-sidebar.d.ts +36 -0
- package/packages/app-core/src/components/pages/plugin-view-sidebar.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/plugin-view-sidebar.js +42 -0
- package/packages/app-core/src/components/pages/relationships/RelationshipsActivityFeed.d.ts +2 -0
- package/packages/app-core/src/components/pages/relationships/RelationshipsActivityFeed.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/relationships/RelationshipsActivityFeed.js +85 -0
- package/packages/app-core/src/components/pages/relationships/RelationshipsCandidateMergesPanel.d.ts +6 -0
- package/packages/app-core/src/components/pages/relationships/RelationshipsCandidateMergesPanel.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/relationships/RelationshipsCandidateMergesPanel.js +73 -0
- package/packages/app-core/src/components/pages/relationships/RelationshipsPersonPanels.d.ts +27 -0
- package/packages/app-core/src/components/pages/relationships/RelationshipsPersonPanels.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/relationships/RelationshipsPersonPanels.js +241 -0
- package/packages/app-core/src/components/pages/relationships/RelationshipsSidebar.d.ts +10 -0
- package/packages/app-core/src/components/pages/relationships/RelationshipsSidebar.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/relationships/RelationshipsSidebar.js +16 -0
- package/packages/app-core/src/components/pages/relationships/RelationshipsWorkspaceView.d.ts +7 -0
- package/packages/app-core/src/components/pages/relationships/RelationshipsWorkspaceView.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/relationships/RelationshipsWorkspaceView.js +130 -0
- package/packages/app-core/src/components/pages/relationships/relationships-utils.d.ts +16 -0
- package/packages/app-core/src/components/pages/relationships/relationships-utils.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/relationships/relationships-utils.js +105 -0
- package/packages/app-core/src/components/pages/settings/IdentitySettingsSection.d.ts +2 -0
- package/packages/app-core/src/components/pages/settings/IdentitySettingsSection.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/settings/IdentitySettingsSection.js +310 -0
- package/packages/app-core/src/components/pages/skill-detail-panel.d.ts +13 -0
- package/packages/app-core/src/components/pages/skill-detail-panel.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/skill-detail-panel.js +161 -0
- package/packages/app-core/src/components/pages/skill-marketplace.d.ts +38 -0
- package/packages/app-core/src/components/pages/skill-marketplace.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/skill-marketplace.js +114 -0
- package/packages/app-core/src/components/pages/useBrowserWorkspaceWalletBridge.d.ts +43 -0
- package/packages/app-core/src/components/pages/useBrowserWorkspaceWalletBridge.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/useBrowserWorkspaceWalletBridge.js +321 -0
- package/packages/app-core/src/components/pages/vector-browser-utils.d.ts +2 -0
- package/packages/app-core/src/components/pages/vector-browser-utils.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/vector-browser-utils.js +1 -0
- package/packages/app-core/src/components/pages/workflow-graph-events.d.ts +6 -0
- package/packages/app-core/src/components/pages/workflow-graph-events.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/workflow-graph-events.js +7 -0
- package/packages/app-core/src/components/permissions/PermissionIcon.d.ts +4 -0
- package/packages/app-core/src/components/permissions/PermissionIcon.d.ts.map +1 -0
- package/packages/app-core/src/components/permissions/PermissionIcon.js +13 -0
- package/packages/app-core/src/components/permissions/StreamingPermissions.d.ts +21 -0
- package/packages/app-core/src/components/permissions/StreamingPermissions.d.ts.map +1 -0
- package/packages/app-core/src/components/permissions/StreamingPermissions.js +284 -0
- package/packages/app-core/src/components/phone-companion/Chat.d.ts +15 -0
- package/packages/app-core/src/components/phone-companion/Chat.d.ts.map +1 -0
- package/packages/app-core/src/components/phone-companion/Chat.js +76 -0
- package/packages/app-core/src/components/phone-companion/Pairing.d.ts +9 -0
- package/packages/app-core/src/components/phone-companion/Pairing.d.ts.map +1 -0
- package/packages/app-core/src/components/phone-companion/Pairing.js +124 -0
- package/packages/app-core/src/components/phone-companion/PhoneCompanionApp.d.ts +9 -0
- package/packages/app-core/src/components/phone-companion/PhoneCompanionApp.d.ts.map +1 -0
- package/packages/app-core/src/components/phone-companion/PhoneCompanionApp.js +108 -0
- package/packages/app-core/src/components/phone-companion/RemoteSession.d.ts +9 -0
- package/packages/app-core/src/components/phone-companion/RemoteSession.d.ts.map +1 -0
- package/packages/app-core/src/components/phone-companion/RemoteSession.js +364 -0
- package/packages/app-core/src/components/phone-companion/index.d.ts +5 -0
- package/packages/app-core/src/components/phone-companion/index.d.ts.map +1 -0
- package/packages/app-core/src/components/phone-companion/index.js +4 -0
- package/packages/app-core/src/components/plugins/showcase-data.d.ts +4 -0
- package/packages/app-core/src/components/plugins/showcase-data.d.ts.map +1 -0
- package/packages/app-core/src/components/plugins/showcase-data.js +461 -0
- package/packages/app-core/src/components/policy-controls/ApprovedAddressesSection.d.ts +7 -0
- package/packages/app-core/src/components/policy-controls/ApprovedAddressesSection.d.ts.map +1 -0
- package/packages/app-core/src/components/policy-controls/ApprovedAddressesSection.js +74 -0
- package/packages/app-core/src/components/policy-controls/AutoApproveSection.d.ts +7 -0
- package/packages/app-core/src/components/policy-controls/AutoApproveSection.d.ts.map +1 -0
- package/packages/app-core/src/components/policy-controls/AutoApproveSection.js +14 -0
- package/packages/app-core/src/components/policy-controls/PolicyToggle.d.ts +15 -0
- package/packages/app-core/src/components/policy-controls/PolicyToggle.d.ts.map +1 -0
- package/packages/app-core/src/components/policy-controls/PolicyToggle.js +12 -0
- package/packages/app-core/src/components/policy-controls/RateLimitSection.d.ts +7 -0
- package/packages/app-core/src/components/policy-controls/RateLimitSection.d.ts.map +1 -0
- package/packages/app-core/src/components/policy-controls/RateLimitSection.js +11 -0
- package/packages/app-core/src/components/policy-controls/SpendingLimitSection.d.ts +7 -0
- package/packages/app-core/src/components/policy-controls/SpendingLimitSection.d.ts.map +1 -0
- package/packages/app-core/src/components/policy-controls/SpendingLimitSection.js +15 -0
- package/packages/app-core/src/components/policy-controls/TimeWindowSection.d.ts +7 -0
- package/packages/app-core/src/components/policy-controls/TimeWindowSection.d.ts.map +1 -0
- package/packages/app-core/src/components/policy-controls/TimeWindowSection.js +40 -0
- package/packages/app-core/src/components/policy-controls/constants.d.ts +11 -0
- package/packages/app-core/src/components/policy-controls/constants.d.ts.map +1 -0
- package/packages/app-core/src/components/policy-controls/constants.js +41 -0
- package/packages/app-core/src/components/policy-controls/helpers.d.ts +13 -0
- package/packages/app-core/src/components/policy-controls/helpers.d.ts.map +1 -0
- package/packages/app-core/src/components/policy-controls/helpers.js +43 -0
- package/packages/app-core/src/components/policy-controls/index.d.ts +10 -0
- package/packages/app-core/src/components/policy-controls/index.d.ts.map +1 -0
- package/packages/app-core/src/components/policy-controls/index.js +9 -0
- package/packages/app-core/src/components/policy-controls/types.d.ts +58 -0
- package/packages/app-core/src/components/policy-controls/types.d.ts.map +1 -0
- package/packages/app-core/src/components/policy-controls/types.js +7 -0
- package/packages/app-core/src/components/release-center/shared.d.ts +13 -0
- package/packages/app-core/src/components/release-center/shared.d.ts.map +1 -0
- package/packages/app-core/src/components/release-center/shared.js +38 -0
- package/packages/app-core/src/components/release-center/types.d.ts +79 -0
- package/packages/app-core/src/components/release-center/types.d.ts.map +1 -0
- package/packages/app-core/src/components/release-center/types.js +5 -0
- package/packages/app-core/src/components/settings/ApiKeyConfig.d.ts +21 -0
- package/packages/app-core/src/components/settings/ApiKeyConfig.d.ts.map +1 -0
- package/packages/app-core/src/components/settings/ApiKeyConfig.js +111 -0
- package/packages/app-core/src/components/settings/AppearanceSettingsSection.d.ts +2 -0
- package/packages/app-core/src/components/settings/AppearanceSettingsSection.d.ts.map +1 -0
- package/packages/app-core/src/components/settings/AppearanceSettingsSection.js +292 -0
- package/packages/app-core/src/components/settings/AppsManagementSection.d.ts +12 -0
- package/packages/app-core/src/components/settings/AppsManagementSection.d.ts.map +1 -0
- package/packages/app-core/src/components/settings/AppsManagementSection.js +285 -0
- package/packages/app-core/src/components/settings/CapabilitiesSection.d.ts +2 -0
- package/packages/app-core/src/components/settings/CapabilitiesSection.d.ts.map +1 -0
- package/packages/app-core/src/components/settings/CapabilitiesSection.js +97 -0
- package/packages/app-core/src/components/settings/DesktopWorkspaceSection.d.ts +7 -0
- package/packages/app-core/src/components/settings/DesktopWorkspaceSection.d.ts.map +1 -0
- package/packages/app-core/src/components/settings/DesktopWorkspaceSection.js +502 -0
- package/packages/app-core/src/components/settings/PermissionsSection.d.ts +8 -0
- package/packages/app-core/src/components/settings/PermissionsSection.d.ts.map +1 -0
- package/packages/app-core/src/components/settings/PermissionsSection.js +310 -0
- package/packages/app-core/src/components/settings/PolicyControlsView.d.ts +2 -0
- package/packages/app-core/src/components/settings/PolicyControlsView.d.ts.map +1 -0
- package/packages/app-core/src/components/settings/PolicyControlsView.js +231 -0
- package/packages/app-core/src/components/settings/ProviderSwitcher.d.ts +22 -0
- package/packages/app-core/src/components/settings/ProviderSwitcher.d.ts.map +1 -0
- package/packages/app-core/src/components/settings/ProviderSwitcher.js +583 -0
- package/packages/app-core/src/components/settings/SecuritySettingsSection.d.ts +2 -0
- package/packages/app-core/src/components/settings/SecuritySettingsSection.d.ts.map +1 -0
- package/packages/app-core/src/components/settings/SecuritySettingsSection.js +381 -0
- package/packages/app-core/src/components/settings/SubscriptionStatus.d.ts +28 -0
- package/packages/app-core/src/components/settings/SubscriptionStatus.d.ts.map +1 -0
- package/packages/app-core/src/components/settings/SubscriptionStatus.js +266 -0
- package/packages/app-core/src/components/settings/VoiceConfigView.d.ts +5 -0
- package/packages/app-core/src/components/settings/VoiceConfigView.d.ts.map +1 -0
- package/packages/app-core/src/components/settings/VoiceConfigView.js +505 -0
- package/packages/app-core/src/components/settings/cloud-model-schema.d.ts +26 -0
- package/packages/app-core/src/components/settings/cloud-model-schema.d.ts.map +1 -0
- package/packages/app-core/src/components/settings/cloud-model-schema.js +103 -0
- package/packages/app-core/src/components/settings/permission-controls.d.ts +37 -0
- package/packages/app-core/src/components/settings/permission-controls.d.ts.map +1 -0
- package/packages/app-core/src/components/settings/permission-controls.js +403 -0
- package/packages/app-core/src/components/settings/permission-types.d.ts +44 -0
- package/packages/app-core/src/components/settings/permission-types.d.ts.map +1 -0
- package/packages/app-core/src/components/settings/permission-types.js +215 -0
- package/packages/app-core/src/components/settings/settings-control-primitives.d.ts +11 -0
- package/packages/app-core/src/components/settings/settings-control-primitives.d.ts.map +1 -0
- package/packages/app-core/src/components/settings/settings-control-primitives.js +14 -0
- package/packages/app-core/src/components/shared/AppPageSidebar.d.ts +12 -0
- package/packages/app-core/src/components/shared/AppPageSidebar.d.ts.map +1 -0
- package/packages/app-core/src/components/shared/AppPageSidebar.js +119 -0
- package/packages/app-core/src/components/shared/CollapsibleSidebarSection.d.ts +19 -0
- package/packages/app-core/src/components/shared/CollapsibleSidebarSection.d.ts.map +1 -0
- package/packages/app-core/src/components/shared/CollapsibleSidebarSection.js +12 -0
- package/packages/app-core/src/components/shared/LanguageDropdown.d.ts +24 -0
- package/packages/app-core/src/components/shared/LanguageDropdown.d.ts.map +1 -0
- package/packages/app-core/src/components/shared/LanguageDropdown.js +37 -0
- package/packages/app-core/src/components/shared/ThemeToggle.d.ts +14 -0
- package/packages/app-core/src/components/shared/ThemeToggle.d.ts.map +1 -0
- package/packages/app-core/src/components/shared/ThemeToggle.js +14 -0
- package/packages/app-core/src/components/shared/confirm-delete-control.d.ts +19 -0
- package/packages/app-core/src/components/shared/confirm-delete-control.d.ts.map +1 -0
- package/packages/app-core/src/components/shared/confirm-delete-control.js +19 -0
- package/packages/app-core/src/components/shell/BugReportModal.d.ts +2 -0
- package/packages/app-core/src/components/shell/BugReportModal.d.ts.map +1 -0
- package/packages/app-core/src/components/shell/BugReportModal.js +366 -0
- package/packages/app-core/src/components/shell/CommandPalette.d.ts +2 -0
- package/packages/app-core/src/components/shell/CommandPalette.d.ts.map +1 -0
- package/packages/app-core/src/components/shell/CommandPalette.js +185 -0
- package/packages/app-core/src/components/shell/ComputerUseApprovalOverlay.d.ts +2 -0
- package/packages/app-core/src/components/shell/ComputerUseApprovalOverlay.d.ts.map +1 -0
- package/packages/app-core/src/components/shell/ComputerUseApprovalOverlay.js +171 -0
- package/packages/app-core/src/components/shell/ConnectionFailedBanner.d.ts +6 -0
- package/packages/app-core/src/components/shell/ConnectionFailedBanner.d.ts.map +1 -0
- package/packages/app-core/src/components/shell/ConnectionFailedBanner.js +23 -0
- package/packages/app-core/src/components/shell/ConnectionLostOverlay.d.ts +2 -0
- package/packages/app-core/src/components/shell/ConnectionLostOverlay.d.ts.map +1 -0
- package/packages/app-core/src/components/shell/ConnectionLostOverlay.js +49 -0
- package/packages/app-core/src/components/shell/Header.d.ts +13 -0
- package/packages/app-core/src/components/shell/Header.d.ts.map +1 -0
- package/packages/app-core/src/components/shell/Header.js +298 -0
- package/packages/app-core/src/components/shell/LoadingScreen.d.ts +13 -0
- package/packages/app-core/src/components/shell/LoadingScreen.d.ts.map +1 -0
- package/packages/app-core/src/components/shell/LoadingScreen.js +86 -0
- package/packages/app-core/src/components/shell/PairingView.d.ts +2 -0
- package/packages/app-core/src/components/shell/PairingView.d.ts.map +1 -0
- package/packages/app-core/src/components/shell/PairingView.js +41 -0
- package/packages/app-core/src/components/shell/RestartBanner.d.ts +2 -0
- package/packages/app-core/src/components/shell/RestartBanner.d.ts.map +1 -0
- package/packages/app-core/src/components/shell/RestartBanner.js +39 -0
- package/packages/app-core/src/components/shell/RuntimeGate.d.ts +22 -0
- package/packages/app-core/src/components/shell/RuntimeGate.d.ts.map +1 -0
- package/packages/app-core/src/components/shell/RuntimeGate.js +388 -0
- package/packages/app-core/src/components/shell/ShellHeaderControls.d.ts +44 -0
- package/packages/app-core/src/components/shell/ShellHeaderControls.d.ts.map +1 -0
- package/packages/app-core/src/components/shell/ShellHeaderControls.js +80 -0
- package/packages/app-core/src/components/shell/ShellOverlays.d.ts +5 -0
- package/packages/app-core/src/components/shell/ShellOverlays.d.ts.map +1 -0
- package/packages/app-core/src/components/shell/ShellOverlays.js +15 -0
- package/packages/app-core/src/components/shell/ShortcutsOverlay.d.ts +2 -0
- package/packages/app-core/src/components/shell/ShortcutsOverlay.d.ts.map +1 -0
- package/packages/app-core/src/components/shell/ShortcutsOverlay.js +58 -0
- package/packages/app-core/src/components/shell/StartupFailureView.d.ts +8 -0
- package/packages/app-core/src/components/shell/StartupFailureView.d.ts.map +1 -0
- package/packages/app-core/src/components/shell/StartupFailureView.js +148 -0
- package/packages/app-core/src/components/shell/StartupShell.d.ts +12 -0
- package/packages/app-core/src/components/shell/StartupShell.d.ts.map +1 -0
- package/packages/app-core/src/components/shell/StartupShell.js +230 -0
- package/packages/app-core/src/components/shell/SystemWarningBanner.d.ts +6 -0
- package/packages/app-core/src/components/shell/SystemWarningBanner.d.ts.map +1 -0
- package/packages/app-core/src/components/shell/SystemWarningBanner.js +44 -0
- package/packages/app-core/src/components/steward/injected.d.ts +5 -0
- package/packages/app-core/src/components/steward/injected.d.ts.map +1 -0
- package/packages/app-core/src/components/steward/injected.js +14 -0
- package/packages/app-core/src/components/stream/StatusBar.d.ts +10 -0
- package/packages/app-core/src/components/stream/StatusBar.d.ts.map +1 -0
- package/packages/app-core/src/components/stream/StatusBar.js +65 -0
- package/packages/app-core/src/components/stream/helpers.d.ts +15 -0
- package/packages/app-core/src/components/stream/helpers.d.ts.map +1 -0
- package/packages/app-core/src/components/stream/helpers.js +16 -0
- package/packages/app-core/src/components/training/injected.d.ts +3 -0
- package/packages/app-core/src/components/training/injected.d.ts.map +1 -0
- package/packages/app-core/src/components/training/injected.js +6 -0
- package/packages/app-core/src/components/workspace/AppWorkspaceChrome.d.ts +62 -0
- package/packages/app-core/src/components/workspace/AppWorkspaceChrome.d.ts.map +1 -0
- package/packages/app-core/src/components/workspace/AppWorkspaceChrome.js +220 -0
- package/packages/app-core/src/config/app-config.d.ts +121 -0
- package/packages/app-core/src/config/app-config.d.ts.map +1 -0
- package/packages/app-core/src/config/app-config.js +31 -0
- package/packages/app-core/src/config/boot-config-react.d.ts +5 -0
- package/packages/app-core/src/config/boot-config-react.d.ts.map +1 -0
- package/packages/app-core/src/config/boot-config-react.js +7 -0
- package/packages/app-core/src/config/boot-config-store.d.ts +238 -0
- package/packages/app-core/src/config/boot-config-store.d.ts.map +1 -0
- package/packages/app-core/src/config/boot-config-store.js +143 -0
- package/packages/app-core/src/config/boot-config.d.ts +6 -0
- package/packages/app-core/src/config/boot-config.d.ts.map +1 -0
- package/packages/app-core/src/config/boot-config.js +5 -0
- package/packages/app-core/src/config/branding.d.ts +55 -0
- package/packages/app-core/src/config/branding.d.ts.map +1 -0
- package/packages/app-core/src/config/branding.js +23 -0
- package/packages/app-core/src/config/cloud-only.d.ts +6 -0
- package/packages/app-core/src/config/cloud-only.d.ts.map +1 -0
- package/packages/app-core/src/config/cloud-only.js +15 -0
- package/packages/app-core/src/config/config-catalog.d.ts +376 -0
- package/packages/app-core/src/config/config-catalog.d.ts.map +1 -0
- package/packages/app-core/src/config/config-catalog.js +732 -0
- package/packages/app-core/src/config/index.d.ts +12 -0
- package/packages/app-core/src/config/index.d.ts.map +1 -0
- package/packages/app-core/src/config/index.js +11 -0
- package/packages/app-core/src/config/plugin-auto-enable.d.ts +5 -0
- package/packages/app-core/src/config/plugin-auto-enable.d.ts.map +1 -0
- package/packages/app-core/src/config/plugin-auto-enable.js +47 -0
- package/packages/app-core/src/config/plugin-ui-spec.d.ts +42 -0
- package/packages/app-core/src/config/plugin-ui-spec.d.ts.map +1 -0
- package/packages/app-core/src/config/plugin-ui-spec.js +256 -0
- package/packages/app-core/src/config/ui-spec.d.ts +164 -0
- package/packages/app-core/src/config/ui-spec.d.ts.map +1 -0
- package/packages/app-core/src/config/ui-spec.js +13 -0
- package/packages/app-core/src/config/wechat-config.d.ts +3 -0
- package/packages/app-core/src/config/wechat-config.d.ts.map +1 -0
- package/packages/app-core/src/config/wechat-config.js +21 -0
- package/packages/app-core/src/content-packs/apply-pack.d.ts +33 -0
- package/packages/app-core/src/content-packs/apply-pack.d.ts.map +1 -0
- package/packages/app-core/src/content-packs/apply-pack.js +96 -0
- package/packages/app-core/src/content-packs/bundled-packs.d.ts +14 -0
- package/packages/app-core/src/content-packs/bundled-packs.d.ts.map +1 -0
- package/packages/app-core/src/content-packs/bundled-packs.js +106 -0
- package/packages/app-core/src/content-packs/index.d.ts +4 -0
- package/packages/app-core/src/content-packs/index.d.ts.map +1 -0
- package/packages/app-core/src/content-packs/index.js +3 -0
- package/packages/app-core/src/content-packs/load-pack.d.ts +34 -0
- package/packages/app-core/src/content-packs/load-pack.d.ts.map +1 -0
- package/packages/app-core/src/content-packs/load-pack.js +151 -0
- package/packages/app-core/src/events/index.d.ts +62 -0
- package/packages/app-core/src/events/index.d.ts.map +1 -0
- package/packages/app-core/src/events/index.js +51 -0
- package/packages/app-core/src/hooks/index.d.ts +14 -0
- package/packages/app-core/src/hooks/index.d.ts.map +1 -0
- package/packages/app-core/src/hooks/index.js +13 -0
- package/packages/app-core/src/hooks/useAccounts.d.ts +41 -0
- package/packages/app-core/src/hooks/useAccounts.d.ts.map +1 -0
- package/packages/app-core/src/hooks/useAccounts.js +250 -0
- package/packages/app-core/src/hooks/useActivityEvents.d.ts +20 -0
- package/packages/app-core/src/hooks/useActivityEvents.d.ts.map +1 -0
- package/packages/app-core/src/hooks/useActivityEvents.js +126 -0
- package/packages/app-core/src/hooks/useAuthStatus.d.ts +49 -0
- package/packages/app-core/src/hooks/useAuthStatus.d.ts.map +1 -0
- package/packages/app-core/src/hooks/useAuthStatus.js +90 -0
- package/packages/app-core/src/hooks/useBugReport.d.ts +26 -0
- package/packages/app-core/src/hooks/useBugReport.d.ts.map +1 -0
- package/packages/app-core/src/hooks/useBugReport.js +28 -0
- package/packages/app-core/src/hooks/useCanvasWindow.d.ts +38 -0
- package/packages/app-core/src/hooks/useCanvasWindow.d.ts.map +1 -0
- package/packages/app-core/src/hooks/useCanvasWindow.js +277 -0
- package/packages/app-core/src/hooks/useChatAvatarVoiceBridge.d.ts +12 -0
- package/packages/app-core/src/hooks/useChatAvatarVoiceBridge.d.ts.map +1 -0
- package/packages/app-core/src/hooks/useChatAvatarVoiceBridge.js +21 -0
- package/packages/app-core/src/hooks/useContextMenu.d.ts +17 -0
- package/packages/app-core/src/hooks/useContextMenu.d.ts.map +1 -0
- package/packages/app-core/src/hooks/useContextMenu.js +142 -0
- package/packages/app-core/src/hooks/useKeyboardShortcuts.d.ts +5 -0
- package/packages/app-core/src/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/packages/app-core/src/hooks/useKeyboardShortcuts.js +32 -0
- package/packages/app-core/src/hooks/useMediaQuery.d.ts +4 -0
- package/packages/app-core/src/hooks/useMediaQuery.d.ts.map +1 -0
- package/packages/app-core/src/hooks/useMediaQuery.js +30 -0
- package/packages/app-core/src/hooks/useMusicPlayer.d.ts +54 -0
- package/packages/app-core/src/hooks/useMusicPlayer.d.ts.map +1 -0
- package/packages/app-core/src/hooks/useMusicPlayer.js +117 -0
- package/packages/app-core/src/hooks/useRenderGuard.d.ts +17 -0
- package/packages/app-core/src/hooks/useRenderGuard.d.ts.map +1 -0
- package/packages/app-core/src/hooks/useRenderGuard.js +36 -0
- package/packages/app-core/src/hooks/useSignalPairing.d.ts +12 -0
- package/packages/app-core/src/hooks/useSignalPairing.d.ts.map +1 -0
- package/packages/app-core/src/hooks/useSignalPairing.js +129 -0
- package/packages/app-core/src/hooks/useStreamPopoutNavigation.d.ts +3 -0
- package/packages/app-core/src/hooks/useStreamPopoutNavigation.d.ts.map +1 -0
- package/packages/app-core/src/hooks/useStreamPopoutNavigation.js +4 -0
- package/packages/app-core/src/hooks/useVoiceChat.d.ts +37 -0
- package/packages/app-core/src/hooks/useVoiceChat.d.ts.map +1 -0
- package/packages/app-core/src/hooks/useVoiceChat.js +1310 -0
- package/packages/app-core/src/hooks/useWhatsAppPairing.d.ts +12 -0
- package/packages/app-core/src/hooks/useWhatsAppPairing.d.ts.map +1 -0
- package/packages/app-core/src/hooks/useWhatsAppPairing.js +95 -0
- package/packages/app-core/src/hooks/useWorkflowGenerationState.d.ts +23 -0
- package/packages/app-core/src/hooks/useWorkflowGenerationState.d.ts.map +1 -0
- package/packages/app-core/src/hooks/useWorkflowGenerationState.js +46 -0
- package/packages/app-core/src/hooks/voice-chat-playback.d.ts +32 -0
- package/packages/app-core/src/hooks/voice-chat-playback.d.ts.map +1 -0
- package/packages/app-core/src/hooks/voice-chat-playback.js +203 -0
- package/packages/app-core/src/hooks/voice-chat-recording.d.ts +6 -0
- package/packages/app-core/src/hooks/voice-chat-recording.d.ts.map +1 -0
- package/packages/app-core/src/hooks/voice-chat-recording.js +46 -0
- package/packages/app-core/src/hooks/voice-chat-types.d.ts +193 -0
- package/packages/app-core/src/hooks/voice-chat-types.d.ts.map +1 -0
- package/packages/app-core/src/hooks/voice-chat-types.js +185 -0
- package/packages/app-core/src/i18n/index.d.ts +7 -0
- package/packages/app-core/src/i18n/index.d.ts.map +1 -0
- package/packages/app-core/src/i18n/index.js +57 -0
- package/packages/app-core/src/i18n/locales/en.json +3212 -0
- package/packages/app-core/src/i18n/locales/es.json +3212 -0
- package/packages/app-core/src/i18n/locales/ko.json +3212 -0
- package/packages/app-core/src/i18n/locales/pt.json +3212 -0
- package/packages/app-core/src/i18n/locales/tl.json +3212 -0
- package/packages/app-core/src/i18n/locales/vi.json +3212 -0
- package/packages/app-core/src/i18n/locales/zh-CN.json +3212 -0
- package/packages/app-core/src/i18n/messages.d.ts +6 -0
- package/packages/app-core/src/i18n/messages.d.ts.map +1 -0
- package/packages/app-core/src/i18n/messages.js +26 -0
- package/packages/app-core/src/index.d.ts +54 -0
- package/packages/app-core/src/index.d.ts.map +1 -0
- package/packages/app-core/src/index.js +50 -0
- package/packages/app-core/src/navigation/index.d.ts +70 -0
- package/packages/app-core/src/navigation/index.d.ts.map +1 -0
- package/packages/app-core/src/navigation/index.js +442 -0
- package/packages/app-core/src/onboarding/flow.d.ts +66 -0
- package/packages/app-core/src/onboarding/flow.d.ts.map +1 -0
- package/packages/app-core/src/onboarding/flow.js +100 -0
- package/packages/app-core/src/onboarding/mobile-runtime-mode.d.ts +8 -0
- package/packages/app-core/src/onboarding/mobile-runtime-mode.d.ts.map +1 -0
- package/packages/app-core/src/onboarding/mobile-runtime-mode.js +54 -0
- package/packages/app-core/src/onboarding/server-target.d.ts +4 -0
- package/packages/app-core/src/onboarding/server-target.d.ts.map +1 -0
- package/packages/app-core/src/onboarding/server-target.js +13 -0
- package/packages/app-core/src/onboarding-config.d.ts +60 -0
- package/packages/app-core/src/onboarding-config.d.ts.map +1 -0
- package/packages/app-core/src/onboarding-config.js +169 -0
- package/packages/app-core/src/platform/browser-launch.d.ts +10 -0
- package/packages/app-core/src/platform/browser-launch.d.ts.map +1 -0
- package/packages/app-core/src/platform/browser-launch.js +147 -0
- package/packages/app-core/src/platform/cloud-preference-patch.d.ts +11 -0
- package/packages/app-core/src/platform/cloud-preference-patch.d.ts.map +1 -0
- package/packages/app-core/src/platform/cloud-preference-patch.js +85 -0
- package/packages/app-core/src/platform/desktop-permissions-client.d.ts +3 -0
- package/packages/app-core/src/platform/desktop-permissions-client.d.ts.map +1 -0
- package/packages/app-core/src/platform/desktop-permissions-client.js +128 -0
- package/packages/app-core/src/platform/index.d.ts +15 -0
- package/packages/app-core/src/platform/index.d.ts.map +1 -0
- package/packages/app-core/src/platform/index.js +23 -0
- package/packages/app-core/src/platform/init.d.ts +38 -0
- package/packages/app-core/src/platform/init.d.ts.map +1 -0
- package/packages/app-core/src/platform/init.js +159 -0
- package/packages/app-core/src/platform/is-native-server.d.ts +14 -0
- package/packages/app-core/src/platform/is-native-server.d.ts.map +1 -0
- package/packages/app-core/src/platform/is-native-server.js +16 -0
- package/packages/app-core/src/platform/onboarding-reset.d.ts +11 -0
- package/packages/app-core/src/platform/onboarding-reset.d.ts.map +1 -0
- package/packages/app-core/src/platform/onboarding-reset.js +127 -0
- package/packages/app-core/src/platform/types.d.ts +28 -0
- package/packages/app-core/src/platform/types.d.ts.map +1 -0
- package/packages/app-core/src/platform/types.js +1 -0
- package/packages/app-core/src/platform/window-shell.d.ts +28 -0
- package/packages/app-core/src/platform/window-shell.d.ts.map +1 -0
- package/packages/app-core/src/platform/window-shell.js +73 -0
- package/packages/app-core/src/providers/index.d.ts +26 -0
- package/packages/app-core/src/providers/index.d.ts.map +1 -0
- package/packages/app-core/src/providers/index.js +107 -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/security/agent-vault-id.d.ts +14 -0
- package/packages/app-core/src/security/agent-vault-id.d.ts.map +1 -0
- package/packages/app-core/src/security/agent-vault-id.js +32 -0
- package/packages/app-core/src/security/platform-secure-store-node.d.ts +15 -0
- package/packages/app-core/src/security/platform-secure-store-node.d.ts.map +1 -0
- package/packages/app-core/src/security/platform-secure-store-node.js +296 -0
- package/packages/app-core/src/security/platform-secure-store.d.ts +47 -0
- package/packages/app-core/src/security/platform-secure-store.d.ts.map +1 -0
- package/packages/app-core/src/security/platform-secure-store.js +10 -0
- package/packages/app-core/src/services/auth-store.d.ts +185 -0
- package/packages/app-core/src/services/auth-store.d.ts.map +1 -0
- package/packages/app-core/src/services/auth-store.js +418 -0
- package/packages/app-core/src/services/cloud-jwks-store.d.ts +62 -0
- package/packages/app-core/src/services/cloud-jwks-store.d.ts.map +1 -0
- package/packages/app-core/src/services/cloud-jwks-store.js +118 -0
- package/packages/app-core/src/services/local-inference/active-model.d.ts +45 -0
- package/packages/app-core/src/services/local-inference/active-model.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/active-model.js +120 -0
- package/packages/app-core/src/services/local-inference/device-bridge.d.ts +124 -0
- package/packages/app-core/src/services/local-inference/device-bridge.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/device-bridge.js +643 -0
- package/packages/app-core/src/services/local-inference/engine.d.ts +52 -0
- package/packages/app-core/src/services/local-inference/engine.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/engine.js +138 -0
- package/packages/app-core/src/services/local-inference/external-scanner.d.ts +17 -0
- package/packages/app-core/src/services/local-inference/external-scanner.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/external-scanner.js +261 -0
- package/packages/app-core/src/services/local-inference/handler-registry.d.ts +72 -0
- package/packages/app-core/src/services/local-inference/handler-registry.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/handler-registry.js +160 -0
- package/packages/app-core/src/services/local-inference/hardware.d.ts +26 -0
- package/packages/app-core/src/services/local-inference/hardware.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/hardware.js +139 -0
- package/packages/app-core/src/services/local-inference/paths.d.ts +17 -0
- package/packages/app-core/src/services/local-inference/paths.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/paths.js +34 -0
- package/packages/app-core/src/services/local-inference/providers.d.ts +61 -0
- package/packages/app-core/src/services/local-inference/providers.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/providers.js +231 -0
- package/packages/app-core/src/services/local-inference/registry.d.ts +35 -0
- package/packages/app-core/src/services/local-inference/registry.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/registry.js +108 -0
- package/packages/app-core/src/services/local-inference/routing-preferences.d.ts +29 -0
- package/packages/app-core/src/services/local-inference/routing-preferences.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/routing-preferences.js +71 -0
- package/packages/app-core/src/services/local-inference/types.d.ts +121 -0
- package/packages/app-core/src/services/local-inference/types.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/types.js +14 -0
- package/packages/app-core/src/services/local-inference/verify.d.ts +39 -0
- package/packages/app-core/src/services/local-inference/verify.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/verify.js +104 -0
- package/packages/app-core/src/services/phone-companion/env.d.ts +11 -0
- package/packages/app-core/src/services/phone-companion/env.d.ts.map +1 -0
- package/packages/app-core/src/services/phone-companion/env.js +21 -0
- package/packages/app-core/src/services/phone-companion/index.d.ts +14 -0
- package/packages/app-core/src/services/phone-companion/index.d.ts.map +1 -0
- package/packages/app-core/src/services/phone-companion/index.js +13 -0
- package/packages/app-core/src/services/phone-companion/logger.d.ts +14 -0
- package/packages/app-core/src/services/phone-companion/logger.d.ts.map +1 -0
- package/packages/app-core/src/services/phone-companion/logger.js +57 -0
- package/packages/app-core/src/services/phone-companion/milady-intent.d.ts +63 -0
- package/packages/app-core/src/services/phone-companion/milady-intent.d.ts.map +1 -0
- package/packages/app-core/src/services/phone-companion/milady-intent.js +50 -0
- package/packages/app-core/src/services/phone-companion/navigation.d.ts +17 -0
- package/packages/app-core/src/services/phone-companion/navigation.d.ts.map +1 -0
- package/packages/app-core/src/services/phone-companion/navigation.js +99 -0
- package/packages/app-core/src/services/phone-companion/push.d.ts +27 -0
- package/packages/app-core/src/services/phone-companion/push.d.ts.map +1 -0
- package/packages/app-core/src/services/phone-companion/push.js +80 -0
- package/packages/app-core/src/services/phone-companion/session-client.d.ts +114 -0
- package/packages/app-core/src/services/phone-companion/session-client.d.ts.map +1 -0
- package/packages/app-core/src/services/phone-companion/session-client.js +211 -0
- package/packages/app-core/src/services/plugin-installer.d.ts +93 -0
- package/packages/app-core/src/services/plugin-installer.d.ts.map +1 -0
- package/packages/app-core/src/services/plugin-installer.js +628 -0
- package/packages/app-core/src/shell/AppWindowRenderer.d.ts +17 -0
- package/packages/app-core/src/shell/AppWindowRenderer.d.ts.map +1 -0
- package/packages/app-core/src/shell/AppWindowRenderer.js +331 -0
- package/packages/app-core/src/shell/DesktopOnboardingRuntime.d.ts +9 -0
- package/packages/app-core/src/shell/DesktopOnboardingRuntime.d.ts.map +1 -0
- package/packages/app-core/src/shell/DesktopOnboardingRuntime.js +10 -0
- package/packages/app-core/src/shell/DesktopSurfaceNavigationRuntime.d.ts +2 -0
- package/packages/app-core/src/shell/DesktopSurfaceNavigationRuntime.d.ts.map +1 -0
- package/packages/app-core/src/shell/DesktopSurfaceNavigationRuntime.js +48 -0
- package/packages/app-core/src/shell/DesktopTrayRuntime.d.ts +11 -0
- package/packages/app-core/src/shell/DesktopTrayRuntime.d.ts.map +1 -0
- package/packages/app-core/src/shell/DesktopTrayRuntime.js +265 -0
- package/packages/app-core/src/shell/DetachedShellRoot.d.ts +10 -0
- package/packages/app-core/src/shell/DetachedShellRoot.d.ts.map +1 -0
- package/packages/app-core/src/shell/DetachedShellRoot.js +114 -0
- package/packages/app-core/src/shell/index.d.ts +6 -0
- package/packages/app-core/src/shell/index.d.ts.map +1 -0
- package/packages/app-core/src/shell/index.js +5 -0
- package/packages/app-core/src/state/AppContext.d.ts +13 -0
- package/packages/app-core/src/state/AppContext.d.ts.map +1 -0
- package/packages/app-core/src/state/AppContext.js +1896 -0
- package/packages/app-core/src/state/ChatComposerContext.d.ts +28 -0
- package/packages/app-core/src/state/ChatComposerContext.d.ts.map +1 -0
- package/packages/app-core/src/state/ChatComposerContext.js +30 -0
- package/packages/app-core/src/state/CompanionSceneConfigContext.d.ts +27 -0
- package/packages/app-core/src/state/CompanionSceneConfigContext.d.ts.map +1 -0
- package/packages/app-core/src/state/CompanionSceneConfigContext.js +32 -0
- package/packages/app-core/src/state/PtySessionsContext.d.ts +15 -0
- package/packages/app-core/src/state/PtySessionsContext.d.ts.map +1 -0
- package/packages/app-core/src/state/PtySessionsContext.js +15 -0
- package/packages/app-core/src/state/TranslationContext.d.ts +29 -0
- package/packages/app-core/src/state/TranslationContext.d.ts.map +1 -0
- package/packages/app-core/src/state/TranslationContext.js +61 -0
- package/packages/app-core/src/state/action-notice.d.ts +7 -0
- package/packages/app-core/src/state/action-notice.d.ts.map +1 -0
- package/packages/app-core/src/state/action-notice.js +1 -0
- package/packages/app-core/src/state/agent-profile-types.d.ts +29 -0
- package/packages/app-core/src/state/agent-profile-types.d.ts.map +1 -0
- package/packages/app-core/src/state/agent-profile-types.js +1 -0
- package/packages/app-core/src/state/agent-profiles.d.ts +16 -0
- package/packages/app-core/src/state/agent-profiles.d.ts.map +1 -0
- package/packages/app-core/src/state/agent-profiles.js +119 -0
- package/packages/app-core/src/state/agent-startup-timing.d.ts +15 -0
- package/packages/app-core/src/state/agent-startup-timing.d.ts.map +1 -0
- package/packages/app-core/src/state/agent-startup-timing.js +28 -0
- package/packages/app-core/src/state/chat-conversation-guards.d.ts +6 -0
- package/packages/app-core/src/state/chat-conversation-guards.d.ts.map +1 -0
- package/packages/app-core/src/state/chat-conversation-guards.js +47 -0
- package/packages/app-core/src/state/complete-reset-local-state-after-wipe.d.ts +30 -0
- package/packages/app-core/src/state/complete-reset-local-state-after-wipe.d.ts.map +1 -0
- package/packages/app-core/src/state/complete-reset-local-state-after-wipe.js +24 -0
- package/packages/app-core/src/state/config-readers.d.ts +7 -0
- package/packages/app-core/src/state/config-readers.d.ts.map +1 -0
- package/packages/app-core/src/state/config-readers.js +8 -0
- package/packages/app-core/src/state/handle-reset-applied-from-main.d.ts +31 -0
- package/packages/app-core/src/state/handle-reset-applied-from-main.d.ts.map +1 -0
- package/packages/app-core/src/state/handle-reset-applied-from-main.js +38 -0
- package/packages/app-core/src/state/index.d.ts +13 -0
- package/packages/app-core/src/state/index.d.ts.map +1 -0
- package/packages/app-core/src/state/index.js +12 -0
- package/packages/app-core/src/state/internal.d.ts +9 -0
- package/packages/app-core/src/state/internal.d.ts.map +1 -0
- package/packages/app-core/src/state/internal.js +9 -0
- package/packages/app-core/src/state/navigation-events.d.ts +12 -0
- package/packages/app-core/src/state/navigation-events.d.ts.map +1 -0
- package/packages/app-core/src/state/navigation-events.js +25 -0
- package/packages/app-core/src/state/onboarding-bootstrap.d.ts +28 -0
- package/packages/app-core/src/state/onboarding-bootstrap.d.ts.map +1 -0
- package/packages/app-core/src/state/onboarding-bootstrap.js +76 -0
- package/packages/app-core/src/state/onboarding-resume.d.ts +9 -0
- package/packages/app-core/src/state/onboarding-resume.d.ts.map +1 -0
- package/packages/app-core/src/state/onboarding-resume.js +93 -0
- package/packages/app-core/src/state/parsers.d.ts +33 -0
- package/packages/app-core/src/state/parsers.d.ts.map +1 -0
- package/packages/app-core/src/state/parsers.js +354 -0
- package/packages/app-core/src/state/persistence.d.ts +111 -0
- package/packages/app-core/src/state/persistence.d.ts.map +1 -0
- package/packages/app-core/src/state/persistence.js +749 -0
- package/packages/app-core/src/state/shell-routing.d.ts +12 -0
- package/packages/app-core/src/state/shell-routing.d.ts.map +1 -0
- package/packages/app-core/src/state/shell-routing.js +21 -0
- package/packages/app-core/src/state/startup-coordinator.d.ts +137 -0
- package/packages/app-core/src/state/startup-coordinator.d.ts.map +1 -0
- package/packages/app-core/src/state/startup-coordinator.js +247 -0
- package/packages/app-core/src/state/startup-phase-hydrate.d.ts +74 -0
- package/packages/app-core/src/state/startup-phase-hydrate.d.ts.map +1 -0
- package/packages/app-core/src/state/startup-phase-hydrate.js +494 -0
- package/packages/app-core/src/state/startup-phase-poll.d.ts +61 -0
- package/packages/app-core/src/state/startup-phase-poll.d.ts.map +1 -0
- package/packages/app-core/src/state/startup-phase-poll.js +272 -0
- package/packages/app-core/src/state/startup-phase-restore.d.ts +49 -0
- package/packages/app-core/src/state/startup-phase-restore.d.ts.map +1 -0
- package/packages/app-core/src/state/startup-phase-restore.js +145 -0
- package/packages/app-core/src/state/startup-phase-runtime.d.ts +34 -0
- package/packages/app-core/src/state/startup-phase-runtime.d.ts.map +1 -0
- package/packages/app-core/src/state/startup-phase-runtime.js +126 -0
- package/packages/app-core/src/state/types.d.ts +645 -0
- package/packages/app-core/src/state/types.d.ts.map +1 -0
- package/packages/app-core/src/state/types.js +62 -0
- package/packages/app-core/src/state/ui-preferences.d.ts +3 -0
- package/packages/app-core/src/state/ui-preferences.d.ts.map +1 -0
- package/packages/app-core/src/state/ui-preferences.js +1 -0
- package/packages/app-core/src/state/useApp.d.ts +4 -0
- package/packages/app-core/src/state/useApp.d.ts.map +1 -0
- package/packages/app-core/src/state/useApp.js +32 -0
- package/packages/app-core/src/state/useCharacterState.d.ts +52 -0
- package/packages/app-core/src/state/useCharacterState.d.ts.map +1 -0
- package/packages/app-core/src/state/useCharacterState.js +208 -0
- package/packages/app-core/src/state/useChatCallbacks.d.ts +168 -0
- package/packages/app-core/src/state/useChatCallbacks.d.ts.map +1 -0
- package/packages/app-core/src/state/useChatCallbacks.js +773 -0
- package/packages/app-core/src/state/useChatLifecycle.d.ts +104 -0
- package/packages/app-core/src/state/useChatLifecycle.d.ts.map +1 -0
- package/packages/app-core/src/state/useChatLifecycle.js +584 -0
- package/packages/app-core/src/state/useChatSend.d.ts +81 -0
- package/packages/app-core/src/state/useChatSend.d.ts.map +1 -0
- package/packages/app-core/src/state/useChatSend.js +924 -0
- package/packages/app-core/src/state/useChatState.d.ts +144 -0
- package/packages/app-core/src/state/useChatState.d.ts.map +1 -0
- package/packages/app-core/src/state/useChatState.js +251 -0
- package/packages/app-core/src/state/useCloudState.d.ts +71 -0
- package/packages/app-core/src/state/useCloudState.d.ts.map +1 -0
- package/packages/app-core/src/state/useCloudState.js +558 -0
- package/packages/app-core/src/state/useDataLoaders.d.ts +88 -0
- package/packages/app-core/src/state/useDataLoaders.d.ts.map +1 -0
- package/packages/app-core/src/state/useDataLoaders.js +394 -0
- package/packages/app-core/src/state/useDisplayPreferences.d.ts +23 -0
- package/packages/app-core/src/state/useDisplayPreferences.d.ts.map +1 -0
- package/packages/app-core/src/state/useDisplayPreferences.js +64 -0
- package/packages/app-core/src/state/useExportImportState.d.ts +32 -0
- package/packages/app-core/src/state/useExportImportState.d.ts.map +1 -0
- package/packages/app-core/src/state/useExportImportState.js +140 -0
- package/packages/app-core/src/state/useLifecycleState.d.ts +123 -0
- package/packages/app-core/src/state/useLifecycleState.d.ts.map +1 -0
- package/packages/app-core/src/state/useLifecycleState.js +258 -0
- package/packages/app-core/src/state/useLogsState.d.ts +24 -0
- package/packages/app-core/src/state/useLogsState.d.ts.map +1 -0
- package/packages/app-core/src/state/useLogsState.js +87 -0
- package/packages/app-core/src/state/useMiscUiState.d.ts +87 -0
- package/packages/app-core/src/state/useMiscUiState.d.ts.map +1 -0
- package/packages/app-core/src/state/useMiscUiState.js +150 -0
- package/packages/app-core/src/state/useNavigationState.d.ts +29 -0
- package/packages/app-core/src/state/useNavigationState.d.ts.map +1 -0
- package/packages/app-core/src/state/useNavigationState.js +122 -0
- package/packages/app-core/src/state/useOnboardingCallbacks.d.ts +100 -0
- package/packages/app-core/src/state/useOnboardingCallbacks.d.ts.map +1 -0
- package/packages/app-core/src/state/useOnboardingCallbacks.js +792 -0
- package/packages/app-core/src/state/useOnboardingCompat.d.ts +61 -0
- package/packages/app-core/src/state/useOnboardingCompat.d.ts.map +1 -0
- package/packages/app-core/src/state/useOnboardingCompat.js +110 -0
- package/packages/app-core/src/state/useOnboardingState.d.ts +126 -0
- package/packages/app-core/src/state/useOnboardingState.d.ts.map +1 -0
- package/packages/app-core/src/state/useOnboardingState.js +263 -0
- package/packages/app-core/src/state/usePairingState.d.ts +21 -0
- package/packages/app-core/src/state/usePairingState.d.ts.map +1 -0
- package/packages/app-core/src/state/usePairingState.js +60 -0
- package/packages/app-core/src/state/usePluginsSkillsState.d.ts +131 -0
- package/packages/app-core/src/state/usePluginsSkillsState.d.ts.map +1 -0
- package/packages/app-core/src/state/usePluginsSkillsState.js +572 -0
- package/packages/app-core/src/state/useStartupCoordinator.d.ts +40 -0
- package/packages/app-core/src/state/useStartupCoordinator.d.ts.map +1 -0
- package/packages/app-core/src/state/useStartupCoordinator.js +183 -0
- package/packages/app-core/src/state/useTriggersState.d.ts +29 -0
- package/packages/app-core/src/state/useTriggersState.d.ts.map +1 -0
- package/packages/app-core/src/state/useTriggersState.js +198 -0
- package/packages/app-core/src/state/useVincentState.d.ts +3 -0
- package/packages/app-core/src/state/useVincentState.d.ts.map +1 -0
- package/packages/app-core/src/state/useVincentState.js +13 -0
- package/packages/app-core/src/state/useWalletState.d.ts +97 -0
- package/packages/app-core/src/state/useWalletState.d.ts.map +1 -0
- package/packages/app-core/src/state/useWalletState.js +533 -0
- package/packages/app-core/src/state/vrm.d.ts +2 -0
- package/packages/app-core/src/state/vrm.d.ts.map +1 -0
- package/packages/app-core/src/state/vrm.js +1 -0
- package/packages/app-core/src/test-support/test-helpers.d.ts +111 -0
- package/packages/app-core/src/test-support/test-helpers.d.ts.map +1 -0
- package/packages/app-core/src/test-support/test-helpers.js +417 -0
- package/packages/app-core/src/themes/apply-theme.d.ts +24 -0
- package/packages/app-core/src/themes/apply-theme.d.ts.map +1 -0
- package/packages/app-core/src/themes/apply-theme.js +130 -0
- package/packages/app-core/src/types/index.d.ts +658 -0
- package/packages/app-core/src/types/index.d.ts.map +1 -0
- package/packages/app-core/src/types/index.js +4 -0
- package/packages/app-core/src/utils/asset-url.d.ts +24 -0
- package/packages/app-core/src/utils/asset-url.d.ts.map +1 -0
- package/packages/app-core/src/utils/asset-url.js +137 -0
- package/packages/app-core/src/utils/assistant-text.d.ts +2 -0
- package/packages/app-core/src/utils/assistant-text.d.ts.map +1 -0
- package/packages/app-core/src/utils/assistant-text.js +167 -0
- package/packages/app-core/src/utils/character-message-examples.d.ts +7 -0
- package/packages/app-core/src/utils/character-message-examples.d.ts.map +1 -0
- package/packages/app-core/src/utils/character-message-examples.js +122 -0
- package/packages/app-core/src/utils/clipboard.d.ts +2 -0
- package/packages/app-core/src/utils/clipboard.d.ts.map +1 -0
- package/packages/app-core/src/utils/clipboard.js +38 -0
- package/packages/app-core/src/utils/cloud-status.d.ts +3 -0
- package/packages/app-core/src/utils/cloud-status.d.ts.map +1 -0
- package/packages/app-core/src/utils/cloud-status.js +10 -0
- package/packages/app-core/src/utils/desktop-bug-report.d.ts +35 -0
- package/packages/app-core/src/utils/desktop-bug-report.d.ts.map +1 -0
- package/packages/app-core/src/utils/desktop-bug-report.js +47 -0
- package/packages/app-core/src/utils/desktop-dialogs.d.ts +24 -0
- package/packages/app-core/src/utils/desktop-dialogs.d.ts.map +1 -0
- package/packages/app-core/src/utils/desktop-dialogs.js +149 -0
- package/packages/app-core/src/utils/desktop-workspace.d.ts +86 -0
- package/packages/app-core/src/utils/desktop-workspace.d.ts.map +1 -0
- package/packages/app-core/src/utils/desktop-workspace.js +162 -0
- package/packages/app-core/src/utils/eliza-cloud-model-route.d.ts +3 -0
- package/packages/app-core/src/utils/eliza-cloud-model-route.d.ts.map +1 -0
- package/packages/app-core/src/utils/eliza-cloud-model-route.js +9 -0
- package/packages/app-core/src/utils/eliza-globals.d.ts +15 -0
- package/packages/app-core/src/utils/eliza-globals.d.ts.map +1 -0
- package/packages/app-core/src/utils/eliza-globals.js +50 -0
- package/packages/app-core/src/utils/env.d.ts +31 -0
- package/packages/app-core/src/utils/env.d.ts.map +1 -0
- package/packages/app-core/src/utils/env.js +51 -0
- package/packages/app-core/src/utils/format.d.ts +66 -0
- package/packages/app-core/src/utils/format.d.ts.map +1 -0
- package/packages/app-core/src/utils/format.js +121 -0
- package/packages/app-core/src/utils/index.d.ts +15 -0
- package/packages/app-core/src/utils/index.d.ts.map +1 -0
- package/packages/app-core/src/utils/index.js +14 -0
- package/packages/app-core/src/utils/knowledge-upload-image.d.ts +27 -0
- package/packages/app-core/src/utils/knowledge-upload-image.d.ts.map +1 -0
- package/packages/app-core/src/utils/knowledge-upload-image.js +146 -0
- package/packages/app-core/src/utils/labels.d.ts +6 -0
- package/packages/app-core/src/utils/labels.d.ts.map +1 -0
- package/packages/app-core/src/utils/labels.js +41 -0
- package/packages/app-core/src/utils/name-tokens.d.ts +24 -0
- package/packages/app-core/src/utils/name-tokens.d.ts.map +1 -0
- package/packages/app-core/src/utils/name-tokens.js +36 -0
- package/packages/app-core/src/utils/number-parsing.d.ts +26 -0
- package/packages/app-core/src/utils/number-parsing.d.ts.map +1 -0
- package/packages/app-core/src/utils/number-parsing.js +51 -0
- package/packages/app-core/src/utils/openExternalUrl.d.ts +21 -0
- package/packages/app-core/src/utils/openExternalUrl.d.ts.map +1 -0
- package/packages/app-core/src/utils/openExternalUrl.js +67 -0
- package/packages/app-core/src/utils/owner-name.d.ts +3 -0
- package/packages/app-core/src/utils/owner-name.d.ts.map +1 -0
- package/packages/app-core/src/utils/owner-name.js +7 -0
- package/packages/app-core/src/utils/serialise.d.ts +12 -0
- package/packages/app-core/src/utils/serialise.d.ts.map +1 -0
- package/packages/app-core/src/utils/serialise.js +21 -0
- package/packages/app-core/src/utils/streaming-text.d.ts +9 -0
- package/packages/app-core/src/utils/streaming-text.d.ts.map +1 -0
- package/packages/app-core/src/utils/streaming-text.js +112 -0
- package/packages/app-core/src/utils/subscription-auth.d.ts +9 -0
- package/packages/app-core/src/utils/subscription-auth.d.ts.map +1 -0
- package/packages/app-core/src/utils/subscription-auth.js +48 -0
- package/packages/app-core/src/utils/trajectory-format.d.ts +6 -0
- package/packages/app-core/src/utils/trajectory-format.d.ts.map +1 -0
- package/packages/app-core/src/utils/trajectory-format.js +43 -0
- package/packages/app-core/src/utils/tts-debug.d.ts +9 -0
- package/packages/app-core/src/utils/tts-debug.d.ts.map +1 -0
- package/packages/app-core/src/utils/tts-debug.js +69 -0
- package/packages/app-core/src/voice/character-voice-config.d.ts +9 -0
- package/packages/app-core/src/voice/character-voice-config.d.ts.map +1 -0
- package/packages/app-core/src/voice/character-voice-config.js +83 -0
- package/packages/app-core/src/voice/index.d.ts +3 -0
- package/packages/app-core/src/voice/index.d.ts.map +1 -0
- package/packages/app-core/src/voice/index.js +2 -0
- package/packages/app-core/src/voice/types.d.ts +40 -0
- package/packages/app-core/src/voice/types.d.ts.map +1 -0
- package/packages/app-core/src/voice/types.js +295 -0
- package/packages/app-core/src/wallet-rpc.d.ts +9 -0
- package/packages/app-core/src/wallet-rpc.d.ts.map +1 -0
- package/packages/app-core/src/wallet-rpc.js +133 -0
- package/packages/app-core/src/widgets/WidgetHost.d.ts +32 -0
- package/packages/app-core/src/widgets/WidgetHost.d.ts.map +1 -0
- package/packages/app-core/src/widgets/WidgetHost.js +57 -0
- package/packages/app-core/src/widgets/index.d.ts +6 -0
- package/packages/app-core/src/widgets/index.d.ts.map +1 -0
- package/packages/app-core/src/widgets/index.js +2 -0
- package/packages/app-core/src/widgets/registry.d.ts +58 -0
- package/packages/app-core/src/widgets/registry.d.ts.map +1 -0
- package/packages/app-core/src/widgets/registry.js +221 -0
- package/packages/app-core/src/widgets/types.d.ts +50 -0
- package/packages/app-core/src/widgets/types.d.ts.map +1 -0
- package/packages/app-core/src/widgets/types.js +1 -0
- package/packages/app-core/src/widgets/useChatSidebarVisibility.d.ts +16 -0
- package/packages/app-core/src/widgets/useChatSidebarVisibility.d.ts.map +1 -0
- package/packages/app-core/src/widgets/useChatSidebarVisibility.js +54 -0
- package/packages/app-core/src/widgets/visibility.d.ts +55 -0
- package/packages/app-core/src/widgets/visibility.d.ts.map +1 -0
- package/packages/app-core/src/widgets/visibility.js +90 -0
- package/packages/native-plugins/mobile-signals/src/definitions.d.ts +162 -0
- package/packages/native-plugins/mobile-signals/src/definitions.d.ts.map +1 -0
- package/packages/native-plugins/mobile-signals/src/definitions.js +1 -0
- package/packages/native-plugins/mobile-signals/src/index.d.ts +4 -0
- package/packages/native-plugins/mobile-signals/src/index.d.ts.map +1 -0
- package/packages/native-plugins/mobile-signals/src/index.js +6 -0
- package/packages/native-plugins/mobile-signals/src/web.d.ts +29 -0
- package/packages/native-plugins/mobile-signals/src/web.d.ts.map +1 -0
- package/packages/native-plugins/mobile-signals/src/web.js +269 -0
- package/packages/shared/src/app-hero-art.d.ts +13 -0
- package/packages/shared/src/app-hero-art.d.ts.map +1 -0
- package/packages/shared/src/app-hero-art.js +357 -0
- package/packages/shared/src/awareness/index.d.ts +2 -0
- package/packages/shared/src/awareness/index.d.ts.map +1 -0
- package/packages/shared/src/awareness/index.js +1 -0
- package/packages/shared/src/awareness/registry.d.ts +27 -0
- package/packages/shared/src/awareness/registry.d.ts.map +1 -0
- package/packages/shared/src/awareness/registry.js +161 -0
- package/packages/shared/src/config/types.agent-defaults.d.ts +383 -0
- package/packages/shared/src/config/types.agent-defaults.d.ts.map +1 -0
- package/packages/shared/src/config/types.agent-defaults.js +1 -0
- package/packages/shared/src/config/types.agents.d.ts +114 -0
- package/packages/shared/src/config/types.agents.d.ts.map +1 -0
- package/packages/shared/src/config/types.agents.js +1 -0
- package/packages/shared/src/config/types.d.ts +8 -0
- package/packages/shared/src/config/types.d.ts.map +1 -0
- package/packages/shared/src/config/types.eliza.d.ts +711 -0
- package/packages/shared/src/config/types.eliza.d.ts.map +1 -0
- package/packages/shared/src/config/types.eliza.js +1 -0
- package/packages/shared/src/config/types.gateway.d.ts +216 -0
- package/packages/shared/src/config/types.gateway.d.ts.map +1 -0
- package/packages/shared/src/config/types.gateway.js +1 -0
- package/packages/shared/src/config/types.hooks.d.ts +107 -0
- package/packages/shared/src/config/types.hooks.d.ts.map +1 -0
- package/packages/shared/src/config/types.hooks.js +1 -0
- package/packages/shared/src/config/types.js +7 -0
- package/packages/shared/src/config/types.messages.d.ts +176 -0
- package/packages/shared/src/config/types.messages.d.ts.map +1 -0
- package/packages/shared/src/config/types.messages.js +1 -0
- package/packages/shared/src/config/types.tools.d.ts +400 -0
- package/packages/shared/src/config/types.tools.d.ts.map +1 -0
- package/packages/shared/src/config/types.tools.js +1 -0
- package/packages/shared/src/connectors.d.ts +13 -0
- package/packages/shared/src/connectors.d.ts.map +1 -0
- package/packages/shared/src/connectors.js +96 -0
- package/packages/shared/src/contracts/apps.d.ts +259 -0
- package/packages/shared/src/contracts/apps.d.ts.map +1 -0
- package/packages/shared/src/contracts/apps.js +193 -0
- package/packages/shared/src/contracts/awareness.d.ts +38 -0
- package/packages/shared/src/contracts/awareness.d.ts.map +1 -0
- package/packages/shared/src/contracts/awareness.js +7 -0
- package/packages/shared/src/contracts/cloud-topology.d.ts +13 -0
- package/packages/shared/src/contracts/cloud-topology.d.ts.map +1 -0
- package/packages/shared/src/contracts/cloud-topology.js +71 -0
- package/packages/shared/src/contracts/config.d.ts +146 -0
- package/packages/shared/src/contracts/config.d.ts.map +1 -0
- package/packages/shared/src/contracts/config.js +4 -0
- package/packages/shared/src/contracts/content-pack.d.ts +131 -0
- package/packages/shared/src/contracts/content-pack.d.ts.map +1 -0
- package/packages/shared/src/contracts/content-pack.js +102 -0
- package/packages/shared/src/contracts/drop.d.ts +20 -0
- package/packages/shared/src/contracts/drop.d.ts.map +1 -0
- package/packages/shared/src/contracts/drop.js +4 -0
- package/packages/shared/src/contracts/inbox.d.ts +26 -0
- package/packages/shared/src/contracts/inbox.d.ts.map +1 -0
- package/packages/shared/src/contracts/inbox.js +1 -0
- package/packages/shared/src/contracts/index.d.ts +15 -0
- package/packages/shared/src/contracts/index.d.ts.map +1 -0
- package/packages/shared/src/contracts/index.js +14 -0
- package/packages/shared/src/contracts/lifeops-connector-degradation.d.ts +9 -0
- package/packages/shared/src/contracts/lifeops-connector-degradation.d.ts.map +1 -0
- package/packages/shared/src/contracts/lifeops-connector-degradation.js +13 -0
- package/packages/shared/src/contracts/lifeops-extensions.d.ts +195 -0
- package/packages/shared/src/contracts/lifeops-extensions.d.ts.map +1 -0
- package/packages/shared/src/contracts/lifeops-extensions.js +30 -0
- package/packages/shared/src/contracts/lifeops.d.ts +2489 -0
- package/packages/shared/src/contracts/lifeops.d.ts.map +1 -0
- package/packages/shared/src/contracts/lifeops.js +500 -0
- package/packages/shared/src/contracts/onboarding.d.ts +408 -0
- package/packages/shared/src/contracts/onboarding.d.ts.map +1 -0
- package/packages/shared/src/contracts/onboarding.js +1021 -0
- package/packages/shared/src/contracts/permissions.d.ts +38 -0
- package/packages/shared/src/contracts/permissions.d.ts.map +1 -0
- package/packages/shared/src/contracts/permissions.js +4 -0
- package/packages/shared/src/contracts/scratchpad.d.ts +136 -0
- package/packages/shared/src/contracts/scratchpad.d.ts.map +1 -0
- package/packages/shared/src/contracts/scratchpad.js +90 -0
- package/packages/shared/src/contracts/service-routing.d.ts +161 -0
- package/packages/shared/src/contracts/service-routing.d.ts.map +1 -0
- package/packages/shared/src/contracts/service-routing.js +389 -0
- package/packages/shared/src/contracts/theme.d.ts +136 -0
- package/packages/shared/src/contracts/theme.d.ts.map +1 -0
- package/packages/shared/src/contracts/theme.js +133 -0
- package/packages/shared/src/contracts/verification.d.ts +9 -0
- package/packages/shared/src/contracts/verification.d.ts.map +1 -0
- package/packages/shared/src/contracts/verification.js +4 -0
- package/packages/shared/src/contracts/wallet.d.ts +615 -0
- package/packages/shared/src/contracts/wallet.d.ts.map +1 -0
- package/packages/shared/src/contracts/wallet.js +60 -0
- package/packages/shared/src/dev-settings-banner-style.d.ts +14 -0
- package/packages/shared/src/dev-settings-banner-style.d.ts.map +1 -0
- package/packages/shared/src/dev-settings-banner-style.js +57 -0
- package/packages/shared/src/dev-settings-table.d.ts +47 -0
- package/packages/shared/src/dev-settings-table.d.ts.map +1 -0
- package/packages/shared/src/dev-settings-table.js +188 -0
- package/packages/shared/src/env-utils.d.ts +5 -0
- package/packages/shared/src/env-utils.d.ts.map +1 -0
- package/packages/shared/src/env-utils.impl.d.ts +2 -0
- package/packages/shared/src/env-utils.impl.d.ts.map +1 -0
- package/packages/shared/src/env-utils.impl.js +9 -0
- package/packages/shared/src/env-utils.js +4 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts +1091 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts.map +1 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.js +1094 -0
- package/packages/shared/src/i18n/keyword-matching.d.ts +23 -0
- package/packages/shared/src/i18n/keyword-matching.d.ts.map +1 -0
- package/packages/shared/src/i18n/keyword-matching.js +112 -0
- package/packages/shared/src/i18n/validation-keywords.d.ts +13 -0
- package/packages/shared/src/i18n/validation-keywords.d.ts.map +1 -0
- package/packages/shared/src/i18n/validation-keywords.js +12 -0
- package/packages/shared/src/index.d.ts +25 -0
- package/packages/shared/src/index.d.ts.map +1 -0
- package/packages/shared/src/index.js +36 -0
- package/packages/shared/src/onboarding-presets.characters.d.ts +22 -0
- package/packages/shared/src/onboarding-presets.characters.d.ts.map +1 -0
- package/packages/shared/src/onboarding-presets.characters.js +2616 -0
- package/packages/shared/src/onboarding-presets.d.ts +40 -0
- package/packages/shared/src/onboarding-presets.d.ts.map +1 -0
- package/packages/shared/src/onboarding-presets.js +180 -0
- package/packages/shared/src/onboarding-presets.shared.d.ts +2 -0
- package/packages/shared/src/onboarding-presets.shared.d.ts.map +1 -0
- package/packages/shared/src/onboarding-presets.shared.js +7 -0
- package/packages/shared/src/recent-messages-state.d.ts +10 -0
- package/packages/shared/src/recent-messages-state.d.ts.map +1 -0
- package/packages/shared/src/recent-messages-state.js +11 -0
- package/packages/shared/src/restart.d.ts +27 -0
- package/packages/shared/src/restart.d.ts.map +1 -0
- package/packages/shared/src/restart.js +28 -0
- package/packages/shared/src/runtime-env.d.ts +82 -0
- package/packages/shared/src/runtime-env.d.ts.map +1 -0
- package/packages/shared/src/runtime-env.js +241 -0
- package/packages/shared/src/settings-debug.d.ts +20 -0
- package/packages/shared/src/settings-debug.d.ts.map +1 -0
- package/packages/shared/src/settings-debug.js +114 -0
- package/packages/shared/src/spoken-text.d.ts +2 -0
- package/packages/shared/src/spoken-text.d.ts.map +1 -0
- package/packages/shared/src/spoken-text.js +56 -0
- package/packages/shared/src/themes/index.d.ts +7 -0
- package/packages/shared/src/themes/index.d.ts.map +1 -0
- package/packages/shared/src/themes/index.js +5 -0
- package/packages/shared/src/themes/presets.d.ts +15 -0
- package/packages/shared/src/themes/presets.d.ts.map +1 -0
- package/packages/shared/src/themes/presets.js +788 -0
- package/packages/shared/src/type-guards.d.ts +29 -0
- package/packages/shared/src/type-guards.d.ts.map +1 -0
- package/packages/shared/src/type-guards.js +43 -0
- package/packages/shared/src/validation-keywords.d.ts +2 -0
- package/packages/shared/src/validation-keywords.d.ts.map +1 -0
- package/packages/shared/src/validation-keywords.js +1 -0
- package/packages/skills/src/formatter.d.ts +44 -0
- package/packages/skills/src/formatter.d.ts.map +1 -0
- package/packages/skills/src/formatter.js +182 -0
- package/packages/skills/src/frontmatter.d.ts +51 -0
- package/packages/skills/src/frontmatter.d.ts.map +1 -0
- package/packages/skills/src/frontmatter.js +155 -0
- package/packages/skills/src/index.d.ts +29 -0
- package/packages/skills/src/index.d.ts.map +1 -0
- package/packages/skills/src/index.js +31 -0
- package/packages/skills/src/loader.d.ts +33 -0
- package/packages/skills/src/loader.d.ts.map +1 -0
- package/packages/skills/src/loader.js +369 -0
- package/packages/skills/src/resolver.d.ts +35 -0
- package/packages/skills/src/resolver.d.ts.map +1 -0
- package/packages/skills/src/resolver.js +143 -0
- package/packages/skills/src/types.d.ts +238 -0
- package/packages/skills/src/types.d.ts.map +1 -0
- package/packages/skills/src/types.js +1 -0
- package/packages/typescript/src/action-docs.d.ts +22 -0
- package/packages/typescript/src/action-docs.d.ts.map +1 -0
- package/packages/typescript/src/action-docs.js +95 -0
- package/packages/typescript/src/actions.d.ts +29 -0
- package/packages/typescript/src/actions.d.ts.map +1 -0
- package/packages/typescript/src/actions.js +535 -0
- package/packages/typescript/src/character-utils.d.ts +138 -0
- package/packages/typescript/src/character-utils.d.ts.map +1 -0
- package/packages/typescript/src/character-utils.js +271 -0
- package/packages/typescript/src/character.d.ts +68 -0
- package/packages/typescript/src/character.d.ts.map +1 -0
- package/packages/typescript/src/character.js +155 -0
- package/packages/typescript/src/connection.d.ts +45 -0
- package/packages/typescript/src/connection.d.ts.map +1 -0
- package/packages/typescript/src/connection.js +149 -0
- package/packages/typescript/src/constants/index.d.ts +7 -0
- package/packages/typescript/src/constants/index.d.ts.map +1 -0
- package/packages/typescript/src/constants/index.js +6 -0
- package/packages/typescript/src/constants/secrets.d.ts +99 -0
- package/packages/typescript/src/constants/secrets.d.ts.map +1 -0
- package/packages/typescript/src/constants/secrets.js +239 -0
- package/packages/typescript/src/database/inMemoryAdapter.d.ts +285 -0
- package/packages/typescript/src/database/inMemoryAdapter.d.ts.map +1 -0
- package/packages/typescript/src/database/inMemoryAdapter.js +1171 -0
- package/packages/typescript/src/database.d.ts +426 -0
- package/packages/typescript/src/database.d.ts.map +1 -0
- package/packages/typescript/src/database.js +24 -0
- package/packages/typescript/src/entities.d.ts +11 -0
- package/packages/typescript/src/entities.d.ts.map +1 -0
- package/packages/typescript/src/entities.js +437 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/addContact.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/addContact.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/addContact.js +142 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.js +183 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.js +148 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/index.d.ts +21 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/index.js +20 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.js +181 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.js +102 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/roles.d.ts +13 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/roles.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/roles.js +317 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.js +136 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.js +176 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.d.ts +15 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.js +476 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/settings.d.ts +22 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/settings.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/settings.js +823 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/think.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/think.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/think.js +84 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.js +134 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.js +193 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.js +199 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.d.ts +43 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.js +372 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.js +150 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.js +136 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.js +84 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.js +112 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.d.ts +16 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.js +198 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.js +138 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.js +102 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/save-attachment-to-clipboard.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/save-attachment-to-clipboard.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/save-attachment-to-clipboard.js +127 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.js +139 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.js +138 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/index.d.ts +41 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/index.js +82 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.js +62 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.d.ts +16 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.js +162 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.d.ts +65 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.js +357 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.d.ts +24 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.js +63 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.d.ts +29 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.js +195 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.d.ts +15 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.js +164 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/types.d.ts +92 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/types.js +4 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/_factCandidates.d.ts +11 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/_factCandidates.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/_factCandidates.js +49 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.d.ts +23 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.js +608 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.schema.d.ts +210 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.schema.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.schema.js +114 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/index.d.ts +11 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/index.js +10 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.js +642 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.js +643 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.d.ts +25 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.js +362 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.d.ts +21 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.js +541 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.d.ts +12 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.js +14 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.js +113 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.js +291 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.d.ts +12 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.js +41 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.d.ts +49 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.js +78 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.d.ts +159 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.js +192 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/index.d.ts +9 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/index.js +7 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.js +51 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/service.d.ts +68 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/service.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/service.js +811 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/types.d.ts +97 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/types.js +22 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.d.ts +34 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.js +106 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.d.ts +26 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.js +129 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceText.d.ts +7 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceText.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceText.js +123 -0
- package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.d.ts +13 -0
- package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.js +152 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builder.d.ts +101 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builder.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builder.js +362 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builtins.d.ts +16 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builtins.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builtins.js +245 -0
- package/packages/typescript/src/features/advanced-capabilities/form/defaults.d.ts +32 -0
- package/packages/typescript/src/features/advanced-capabilities/form/defaults.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/defaults.js +98 -0
- package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.d.ts +12 -0
- package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.js +231 -0
- package/packages/typescript/src/features/advanced-capabilities/form/extraction.d.ts +24 -0
- package/packages/typescript/src/features/advanced-capabilities/form/extraction.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/extraction.js +319 -0
- package/packages/typescript/src/features/advanced-capabilities/form/index.d.ts +22 -0
- package/packages/typescript/src/features/advanced-capabilities/form/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/index.js +52 -0
- package/packages/typescript/src/features/advanced-capabilities/form/intent.d.ts +41 -0
- package/packages/typescript/src/features/advanced-capabilities/form/intent.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/intent.js +119 -0
- package/packages/typescript/src/features/advanced-capabilities/form/providers/context.d.ts +11 -0
- package/packages/typescript/src/features/advanced-capabilities/form/providers/context.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/providers/context.js +166 -0
- package/packages/typescript/src/features/advanced-capabilities/form/service.d.ts +66 -0
- package/packages/typescript/src/features/advanced-capabilities/form/service.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/service.js +912 -0
- package/packages/typescript/src/features/advanced-capabilities/form/storage.d.ts +26 -0
- package/packages/typescript/src/features/advanced-capabilities/form/storage.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/storage.js +228 -0
- package/packages/typescript/src/features/advanced-capabilities/form/template.d.ts +10 -0
- package/packages/typescript/src/features/advanced-capabilities/form/template.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/template.js +56 -0
- package/packages/typescript/src/features/advanced-capabilities/form/ttl.d.ts +40 -0
- package/packages/typescript/src/features/advanced-capabilities/form/ttl.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/ttl.js +107 -0
- package/packages/typescript/src/features/advanced-capabilities/form/types.d.ts +589 -0
- package/packages/typescript/src/features/advanced-capabilities/form/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/types.js +71 -0
- package/packages/typescript/src/features/advanced-capabilities/form/validation.d.ts +24 -0
- package/packages/typescript/src/features/advanced-capabilities/form/validation.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/validation.js +311 -0
- package/packages/typescript/src/features/advanced-capabilities/index.d.ts +47 -0
- package/packages/typescript/src/features/advanced-capabilities/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/index.js +119 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-message-examples.d.ts +16 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-message-examples.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-message-examples.js +356 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-post-examples.d.ts +9 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-post-examples.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-post-examples.js +234 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-style-rules.d.ts +8 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-style-rules.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-style-rules.js +290 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.d.ts +7 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.js +1299 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/persist-character.d.ts +12 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/persist-character.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/persist-character.js +167 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/set-voice-config.d.ts +13 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/set-voice-config.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/set-voice-config.js +193 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/shared/persist-character-patch.d.ts +18 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/shared/persist-character-patch.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/shared/persist-character-patch.js +42 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.d.ts +53 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.js +429 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/index.d.ts +15 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/index.js +13 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.d.ts +8 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.js +57 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.d.ts +71 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.js +478 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/types.d.ts +13 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/types.js +8 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/contacts.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/contacts.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/contacts.js +77 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/facts.d.ts +9 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/facts.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/facts.js +272 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/followUps.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/followUps.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/followUps.js +112 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/index.d.ts +13 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/index.js +12 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.d.ts +9 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.js +83 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/relationships.d.ts +15 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/relationships.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/relationships.js +140 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/roles.d.ts +19 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/roles.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/roles.js +231 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/settings.d.ts +7 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/settings.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/settings.js +294 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/index.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/index.js +2 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.js +199 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/summarization.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/summarization.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/summarization.js +240 -0
- package/packages/typescript/src/features/advanced-memory/index.d.ts +16 -0
- package/packages/typescript/src/features/advanced-memory/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/index.js +26 -0
- package/packages/typescript/src/features/advanced-memory/prompts.d.ts +2 -0
- package/packages/typescript/src/features/advanced-memory/prompts.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/prompts.js +1 -0
- package/packages/typescript/src/features/advanced-memory/providers/context-summary.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/providers/context-summary.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/providers/context-summary.js +85 -0
- package/packages/typescript/src/features/advanced-memory/providers/index.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/providers/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/providers/index.js +2 -0
- package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.js +92 -0
- package/packages/typescript/src/features/advanced-memory/schemas/index.d.ts +5 -0
- package/packages/typescript/src/features/advanced-memory/schemas/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/schemas/index.js +3 -0
- package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.d.ts +10 -0
- package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.js +65 -0
- package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.d.ts +10 -0
- package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.js +45 -0
- package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.d.ts +10 -0
- package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.js +66 -0
- package/packages/typescript/src/features/advanced-memory/services/memory-service.d.ts +38 -0
- package/packages/typescript/src/features/advanced-memory/services/memory-service.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/services/memory-service.js +378 -0
- package/packages/typescript/src/features/advanced-memory/trajectory.d.ts +10 -0
- package/packages/typescript/src/features/advanced-memory/trajectory.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/trajectory.js +33 -0
- package/packages/typescript/src/features/advanced-memory/types.d.ts +68 -0
- package/packages/typescript/src/features/advanced-memory/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/types.js +6 -0
- package/packages/typescript/src/features/advanced-planning/actions/chain-example.d.ts +6 -0
- package/packages/typescript/src/features/advanced-planning/actions/chain-example.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-planning/actions/chain-example.js +181 -0
- package/packages/typescript/src/features/advanced-planning/index.d.ts +5 -0
- package/packages/typescript/src/features/advanced-planning/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-planning/index.js +20 -0
- package/packages/typescript/src/features/advanced-planning/providers/message-classifier.d.ts +3 -0
- package/packages/typescript/src/features/advanced-planning/providers/message-classifier.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-planning/providers/message-classifier.js +105 -0
- package/packages/typescript/src/features/advanced-planning/services/planning-service.d.ts +77 -0
- package/packages/typescript/src/features/advanced-planning/services/planning-service.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-planning/services/planning-service.js +875 -0
- package/packages/typescript/src/features/advanced-planning/types.d.ts +78 -0
- package/packages/typescript/src/features/advanced-planning/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-planning/types.js +1 -0
- package/packages/typescript/src/features/autonomy/action.d.ts +14 -0
- package/packages/typescript/src/features/autonomy/action.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/action.js +177 -0
- package/packages/typescript/src/features/autonomy/execution-facade.d.ts +22 -0
- package/packages/typescript/src/features/autonomy/execution-facade.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/execution-facade.js +150 -0
- package/packages/typescript/src/features/autonomy/index.d.ts +11 -0
- package/packages/typescript/src/features/autonomy/index.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/index.js +13 -0
- package/packages/typescript/src/features/autonomy/providers.d.ts +21 -0
- package/packages/typescript/src/features/autonomy/providers.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/providers.js +154 -0
- package/packages/typescript/src/features/autonomy/routes.d.ts +11 -0
- package/packages/typescript/src/features/autonomy/routes.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/routes.js +158 -0
- package/packages/typescript/src/features/autonomy/service.d.ts +138 -0
- package/packages/typescript/src/features/autonomy/service.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/service.js +813 -0
- package/packages/typescript/src/features/autonomy/types.d.ts +31 -0
- package/packages/typescript/src/features/autonomy/types.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/types.js +6 -0
- package/packages/typescript/src/features/basic-capabilities/actions/choice.d.ts +4 -0
- package/packages/typescript/src/features/basic-capabilities/actions/choice.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/actions/choice.js +278 -0
- package/packages/typescript/src/features/basic-capabilities/actions/ignore.d.ts +3 -0
- package/packages/typescript/src/features/basic-capabilities/actions/ignore.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/actions/ignore.js +23 -0
- package/packages/typescript/src/features/basic-capabilities/actions/index.d.ts +10 -0
- package/packages/typescript/src/features/basic-capabilities/actions/index.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/actions/index.js +9 -0
- package/packages/typescript/src/features/basic-capabilities/actions/none.d.ts +3 -0
- package/packages/typescript/src/features/basic-capabilities/actions/none.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/actions/none.js +26 -0
- package/packages/typescript/src/features/basic-capabilities/actions/reply.d.ts +3 -0
- package/packages/typescript/src/features/basic-capabilities/actions/reply.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/actions/reply.js +80 -0
- package/packages/typescript/src/features/basic-capabilities/index.d.ts +109 -0
- package/packages/typescript/src/features/basic-capabilities/index.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/index.js +1033 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actionState.d.ts +7 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actionState.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actionState.js +189 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actions.d.ts +35 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actions.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actions.js +104 -0
- package/packages/typescript/src/features/basic-capabilities/providers/attachments.d.ts +20 -0
- package/packages/typescript/src/features/basic-capabilities/providers/attachments.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/attachments.js +94 -0
- package/packages/typescript/src/features/basic-capabilities/providers/character.d.ts +17 -0
- package/packages/typescript/src/features/basic-capabilities/providers/character.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/character.js +190 -0
- package/packages/typescript/src/features/basic-capabilities/providers/choice.d.ts +11 -0
- package/packages/typescript/src/features/basic-capabilities/providers/choice.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/choice.js +86 -0
- package/packages/typescript/src/features/basic-capabilities/providers/contextBench.d.ts +12 -0
- package/packages/typescript/src/features/basic-capabilities/providers/contextBench.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/contextBench.js +50 -0
- package/packages/typescript/src/features/basic-capabilities/providers/currentTime.d.ts +11 -0
- package/packages/typescript/src/features/basic-capabilities/providers/currentTime.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/currentTime.js +56 -0
- package/packages/typescript/src/features/basic-capabilities/providers/entities.d.ts +7 -0
- package/packages/typescript/src/features/basic-capabilities/providers/entities.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/entities.js +39 -0
- package/packages/typescript/src/features/basic-capabilities/providers/evaluators.d.ts +27 -0
- package/packages/typescript/src/features/basic-capabilities/providers/evaluators.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/evaluators.js +107 -0
- package/packages/typescript/src/features/basic-capabilities/providers/index.d.ts +20 -0
- package/packages/typescript/src/features/basic-capabilities/providers/index.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/index.js +19 -0
- package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.d.ts +5 -0
- package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.js +20 -0
- package/packages/typescript/src/features/basic-capabilities/providers/providers.d.ts +18 -0
- package/packages/typescript/src/features/basic-capabilities/providers/providers.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/providers.js +75 -0
- package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.d.ts +14 -0
- package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.js +325 -0
- package/packages/typescript/src/features/basic-capabilities/providers/time.d.ts +12 -0
- package/packages/typescript/src/features/basic-capabilities/providers/time.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/time.js +36 -0
- package/packages/typescript/src/features/basic-capabilities/providers/uiContext.d.ts +3 -0
- package/packages/typescript/src/features/basic-capabilities/providers/uiContext.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/uiContext.js +48 -0
- package/packages/typescript/src/features/basic-capabilities/providers/world.d.ts +8 -0
- package/packages/typescript/src/features/basic-capabilities/providers/world.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/world.js +212 -0
- package/packages/typescript/src/features/evaluator-doc-examples.d.ts +4 -0
- package/packages/typescript/src/features/evaluator-doc-examples.d.ts.map +1 -0
- package/packages/typescript/src/features/evaluator-doc-examples.js +13 -0
- package/packages/typescript/src/features/index.d.ts +58 -0
- package/packages/typescript/src/features/index.d.ts.map +1 -0
- package/packages/typescript/src/features/index.js +148 -0
- package/packages/typescript/src/features/knowledge/actions.d.ts +8 -0
- package/packages/typescript/src/features/knowledge/actions.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/actions.js +709 -0
- package/packages/typescript/src/features/knowledge/config.d.ts +5 -0
- package/packages/typescript/src/features/knowledge/config.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/config.js +147 -0
- package/packages/typescript/src/features/knowledge/ctx-embeddings.d.ts +53 -0
- package/packages/typescript/src/features/knowledge/ctx-embeddings.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/ctx-embeddings.js +412 -0
- package/packages/typescript/src/features/knowledge/docs-loader.d.ts +27 -0
- package/packages/typescript/src/features/knowledge/docs-loader.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/docs-loader.js +226 -0
- package/packages/typescript/src/features/knowledge/document-processor.d.ts +27 -0
- package/packages/typescript/src/features/knowledge/document-processor.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/document-processor.js +629 -0
- package/packages/typescript/src/features/knowledge/documents-provider.d.ts +3 -0
- package/packages/typescript/src/features/knowledge/documents-provider.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/documents-provider.js +112 -0
- package/packages/typescript/src/features/knowledge/index.d.ts +17 -0
- package/packages/typescript/src/features/knowledge/index.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/index.js +30 -0
- package/packages/typescript/src/features/knowledge/llm.d.ts +27 -0
- package/packages/typescript/src/features/knowledge/llm.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/llm.js +444 -0
- package/packages/typescript/src/features/knowledge/provider.d.ts +3 -0
- package/packages/typescript/src/features/knowledge/provider.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/provider.js +114 -0
- package/packages/typescript/src/features/knowledge/service.d.ts +83 -0
- package/packages/typescript/src/features/knowledge/service.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/service.js +648 -0
- package/packages/typescript/src/features/knowledge/types.d.ts +162 -0
- package/packages/typescript/src/features/knowledge/types.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/types.js +57 -0
- package/packages/typescript/src/features/knowledge/url-ingest.d.ts +37 -0
- package/packages/typescript/src/features/knowledge/url-ingest.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/url-ingest.js +490 -0
- package/packages/typescript/src/features/knowledge/utils.d.ts +22 -0
- package/packages/typescript/src/features/knowledge/utils.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/utils.js +388 -0
- package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.d.ts +3 -0
- package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.js +65 -0
- package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.d.ts +3 -0
- package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.js +63 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/core-status.d.ts +14 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/core-status.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/core-status.js +48 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/create.d.ts +32 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/create.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/create.js +502 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/eject.d.ts +16 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/eject.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/eject.js +47 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/install.d.ts +18 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/install.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/install.js +59 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list-ejected.d.ts +14 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list-ejected.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list-ejected.js +31 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list.d.ts +14 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list.js +51 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/reinject.d.ts +15 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/reinject.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/reinject.js +43 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/search.d.ts +15 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/search.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/search.js +52 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/sync.d.ts +15 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/sync.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/sync.js +48 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin.d.ts +25 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin.js +439 -0
- package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.d.ts +4 -0
- package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.js +232 -0
- package/packages/typescript/src/features/plugin-manager/coreExtensions.d.ts +28 -0
- package/packages/typescript/src/features/plugin-manager/coreExtensions.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/coreExtensions.js +54 -0
- package/packages/typescript/src/features/plugin-manager/index.d.ts +27 -0
- package/packages/typescript/src/features/plugin-manager/index.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/index.js +50 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.d.ts +5 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.js +104 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.d.ts +5 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.js +105 -0
- package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.d.ts +5 -0
- package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.js +93 -0
- package/packages/typescript/src/features/plugin-manager/providers/relevance.d.ts +9 -0
- package/packages/typescript/src/features/plugin-manager/providers/relevance.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/providers/relevance.js +229 -0
- package/packages/typescript/src/features/plugin-manager/security.d.ts +33 -0
- package/packages/typescript/src/features/plugin-manager/security.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/security.js +80 -0
- package/packages/typescript/src/features/plugin-manager/services/coreManagerService.d.ts +76 -0
- package/packages/typescript/src/features/plugin-manager/services/coreManagerService.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/services/coreManagerService.js +489 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.d.ts +31 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.js +57 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.d.ts +68 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.js +1005 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.d.ts +84 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.js +411 -0
- package/packages/typescript/src/features/plugin-manager/types.d.ts +142 -0
- package/packages/typescript/src/features/plugin-manager/types.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/types.js +13 -0
- package/packages/typescript/src/features/plugin-manager/utils/paths.d.ts +4 -0
- package/packages/typescript/src/features/plugin-manager/utils/paths.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/utils/paths.js +32 -0
- package/packages/typescript/src/features/secrets/actions/index.d.ts +7 -0
- package/packages/typescript/src/features/secrets/actions/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/actions/index.js +6 -0
- package/packages/typescript/src/features/secrets/actions/manage-secret.d.ts +12 -0
- package/packages/typescript/src/features/secrets/actions/manage-secret.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/actions/manage-secret.js +278 -0
- package/packages/typescript/src/features/secrets/actions/request-secret.d.ts +3 -0
- package/packages/typescript/src/features/secrets/actions/request-secret.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/actions/request-secret.js +105 -0
- package/packages/typescript/src/features/secrets/actions/set-secret.d.ts +12 -0
- package/packages/typescript/src/features/secrets/actions/set-secret.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/actions/set-secret.js +223 -0
- package/packages/typescript/src/features/secrets/crypto/encryption.d.ts +184 -0
- package/packages/typescript/src/features/secrets/crypto/encryption.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/crypto/encryption.js +373 -0
- package/packages/typescript/src/features/secrets/crypto/index.d.ts +5 -0
- package/packages/typescript/src/features/secrets/crypto/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/crypto/index.js +16 -0
- package/packages/typescript/src/features/secrets/onboarding/action.d.ts +12 -0
- package/packages/typescript/src/features/secrets/onboarding/action.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/onboarding/action.js +337 -0
- package/packages/typescript/src/features/secrets/onboarding/config.d.ts +99 -0
- package/packages/typescript/src/features/secrets/onboarding/config.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/onboarding/config.js +240 -0
- package/packages/typescript/src/features/secrets/onboarding/index.d.ts +13 -0
- package/packages/typescript/src/features/secrets/onboarding/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/onboarding/index.js +12 -0
- package/packages/typescript/src/features/secrets/onboarding/provider.d.ts +16 -0
- package/packages/typescript/src/features/secrets/onboarding/provider.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/onboarding/provider.js +231 -0
- package/packages/typescript/src/features/secrets/onboarding/service.d.ts +134 -0
- package/packages/typescript/src/features/secrets/onboarding/service.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/onboarding/service.js +436 -0
- package/packages/typescript/src/features/secrets/providers/index.d.ts +5 -0
- package/packages/typescript/src/features/secrets/providers/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/providers/index.js +4 -0
- package/packages/typescript/src/features/secrets/providers/secrets-status.d.ts +22 -0
- package/packages/typescript/src/features/secrets/providers/secrets-status.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/providers/secrets-status.js +160 -0
- package/packages/typescript/src/features/secrets/services/plugin-activator.d.ts +182 -0
- package/packages/typescript/src/features/secrets/services/plugin-activator.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/services/plugin-activator.js +617 -0
- package/packages/typescript/src/features/secrets/services/secrets.d.ts +183 -0
- package/packages/typescript/src/features/secrets/services/secrets.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/services/secrets.js +566 -0
- package/packages/typescript/src/features/secrets/storage/character-store.d.ts +63 -0
- package/packages/typescript/src/features/secrets/storage/character-store.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/character-store.js +265 -0
- package/packages/typescript/src/features/secrets/storage/component-store.d.ts +47 -0
- package/packages/typescript/src/features/secrets/storage/component-store.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/component-store.js +264 -0
- package/packages/typescript/src/features/secrets/storage/index.d.ts +10 -0
- package/packages/typescript/src/features/secrets/storage/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/index.js +8 -0
- package/packages/typescript/src/features/secrets/storage/interface.d.ts +52 -0
- package/packages/typescript/src/features/secrets/storage/interface.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/interface.js +92 -0
- package/packages/typescript/src/features/secrets/storage/memory-store.d.ts +44 -0
- package/packages/typescript/src/features/secrets/storage/memory-store.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/memory-store.js +142 -0
- package/packages/typescript/src/features/secrets/storage/world-store.d.ts +52 -0
- package/packages/typescript/src/features/secrets/storage/world-store.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/world-store.js +292 -0
- package/packages/typescript/src/features/secrets/types.d.ts +438 -0
- package/packages/typescript/src/features/secrets/types.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/types.js +57 -0
- package/packages/typescript/src/features/secrets/validation.d.ts +33 -0
- package/packages/typescript/src/features/secrets/validation.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/validation.js +389 -0
- package/packages/typescript/src/features/shared/schedule-follow-up-response.d.ts +10 -0
- package/packages/typescript/src/features/shared/schedule-follow-up-response.d.ts.map +1 -0
- package/packages/typescript/src/features/shared/schedule-follow-up-response.js +49 -0
- package/packages/typescript/src/features/trajectories/TrajectoriesService.d.ts +289 -0
- package/packages/typescript/src/features/trajectories/TrajectoriesService.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/TrajectoriesService.js +1432 -0
- package/packages/typescript/src/features/trajectories/action-interceptor.d.ts +23 -0
- package/packages/typescript/src/features/trajectories/action-interceptor.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/action-interceptor.js +178 -0
- package/packages/typescript/src/features/trajectories/art-format.d.ts +32 -0
- package/packages/typescript/src/features/trajectories/art-format.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/art-format.js +221 -0
- package/packages/typescript/src/features/trajectories/export.d.ts +40 -0
- package/packages/typescript/src/features/trajectories/export.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/export.js +99 -0
- package/packages/typescript/src/features/trajectories/game-rewards.d.ts +14 -0
- package/packages/typescript/src/features/trajectories/game-rewards.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/game-rewards.js +20 -0
- package/packages/typescript/src/features/trajectories/index.d.ts +24 -0
- package/packages/typescript/src/features/trajectories/index.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/index.js +332 -0
- package/packages/typescript/src/features/trajectories/integration.d.ts +59 -0
- package/packages/typescript/src/features/trajectories/integration.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/integration.js +83 -0
- package/packages/typescript/src/features/trajectories/reward-service.d.ts +24 -0
- package/packages/typescript/src/features/trajectories/reward-service.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/reward-service.js +89 -0
- package/packages/typescript/src/features/trajectories/types.d.ts +261 -0
- package/packages/typescript/src/features/trajectories/types.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/types.js +1 -0
- package/packages/typescript/src/features/trust/actions/evaluateTrust.d.ts +3 -0
- package/packages/typescript/src/features/trust/actions/evaluateTrust.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/evaluateTrust.js +225 -0
- package/packages/typescript/src/features/trust/actions/hasTrustEngine.d.ts +3 -0
- package/packages/typescript/src/features/trust/actions/hasTrustEngine.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/hasTrustEngine.js +3 -0
- package/packages/typescript/src/features/trust/actions/index.d.ts +6 -0
- package/packages/typescript/src/features/trust/actions/index.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/index.js +5 -0
- package/packages/typescript/src/features/trust/actions/recordTrustInteraction.d.ts +3 -0
- package/packages/typescript/src/features/trust/actions/recordTrustInteraction.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/recordTrustInteraction.js +189 -0
- package/packages/typescript/src/features/trust/actions/requestElevation.d.ts +3 -0
- package/packages/typescript/src/features/trust/actions/requestElevation.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/requestElevation.js +165 -0
- package/packages/typescript/src/features/trust/actions/roles.d.ts +3 -0
- package/packages/typescript/src/features/trust/actions/roles.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/roles.js +295 -0
- package/packages/typescript/src/features/trust/actions/settings.d.ts +5 -0
- package/packages/typescript/src/features/trust/actions/settings.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/settings.js +603 -0
- package/packages/typescript/src/features/trust/evaluators/index.d.ts +4 -0
- package/packages/typescript/src/features/trust/evaluators/index.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/evaluators/index.js +3 -0
- package/packages/typescript/src/features/trust/evaluators/reflection.d.ts +3 -0
- package/packages/typescript/src/features/trust/evaluators/reflection.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/evaluators/reflection.js +319 -0
- package/packages/typescript/src/features/trust/evaluators/securityEvaluator.d.ts +3 -0
- package/packages/typescript/src/features/trust/evaluators/securityEvaluator.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/evaluators/securityEvaluator.js +270 -0
- package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.d.ts +3 -0
- package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.js +201 -0
- package/packages/typescript/src/features/trust/index.d.ts +23 -0
- package/packages/typescript/src/features/trust/index.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/index.js +96 -0
- package/packages/typescript/src/features/trust/providers/adminTrust.d.ts +3 -0
- package/packages/typescript/src/features/trust/providers/adminTrust.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/adminTrust.js +49 -0
- package/packages/typescript/src/features/trust/providers/index.d.ts +6 -0
- package/packages/typescript/src/features/trust/providers/index.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/index.js +5 -0
- package/packages/typescript/src/features/trust/providers/roles.d.ts +4 -0
- package/packages/typescript/src/features/trust/providers/roles.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/roles.js +142 -0
- package/packages/typescript/src/features/trust/providers/securityStatus.d.ts +3 -0
- package/packages/typescript/src/features/trust/providers/securityStatus.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/securityStatus.js +110 -0
- package/packages/typescript/src/features/trust/providers/settings.d.ts +3 -0
- package/packages/typescript/src/features/trust/providers/settings.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/settings.js +222 -0
- package/packages/typescript/src/features/trust/providers/trustProfile.d.ts +3 -0
- package/packages/typescript/src/features/trust/providers/trustProfile.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/trustProfile.js +68 -0
- package/packages/typescript/src/features/trust/schema.d.ts +1170 -0
- package/packages/typescript/src/features/trust/schema.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/schema.js +108 -0
- package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.d.ts +40 -0
- package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.js +317 -0
- package/packages/typescript/src/features/trust/services/CredentialProtector.d.ts +62 -0
- package/packages/typescript/src/features/trust/services/CredentialProtector.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/CredentialProtector.js +417 -0
- package/packages/typescript/src/features/trust/services/SecurityModule.d.ts +142 -0
- package/packages/typescript/src/features/trust/services/SecurityModule.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/SecurityModule.js +1057 -0
- package/packages/typescript/src/features/trust/services/SecurityStore.d.ts +53 -0
- package/packages/typescript/src/features/trust/services/SecurityStore.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/SecurityStore.js +123 -0
- package/packages/typescript/src/features/trust/services/TrustEngine.d.ts +81 -0
- package/packages/typescript/src/features/trust/services/TrustEngine.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/TrustEngine.js +621 -0
- package/packages/typescript/src/features/trust/services/adminContext.d.ts +3 -0
- package/packages/typescript/src/features/trust/services/adminContext.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/adminContext.js +32 -0
- package/packages/typescript/src/features/trust/services/db.d.ts +12 -0
- package/packages/typescript/src/features/trust/services/db.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/db.js +10 -0
- package/packages/typescript/src/features/trust/services/wrappers.d.ts +56 -0
- package/packages/typescript/src/features/trust/services/wrappers.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/wrappers.js +124 -0
- package/packages/typescript/src/features/trust/types/permissions.d.ts +185 -0
- package/packages/typescript/src/features/trust/types/permissions.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/types/permissions.js +58 -0
- package/packages/typescript/src/features/trust/types/security.d.ts +114 -0
- package/packages/typescript/src/features/trust/types/security.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/types/security.js +15 -0
- package/packages/typescript/src/features/trust/types/trust.d.ts +179 -0
- package/packages/typescript/src/features/trust/types/trust.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/types/trust.js +25 -0
- package/packages/typescript/src/generated/action-docs.d.ts +2809 -0
- package/packages/typescript/src/generated/action-docs.d.ts.map +1 -0
- package/packages/typescript/src/generated/action-docs.js +4038 -0
- package/packages/typescript/src/generated/spec-helpers.d.ts +49 -0
- package/packages/typescript/src/generated/spec-helpers.d.ts.map +1 -0
- package/packages/typescript/src/generated/spec-helpers.js +78 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts +1093 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts.map +1 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.js +1093 -0
- package/packages/typescript/src/i18n/validation-keywords.d.ts +25 -0
- package/packages/typescript/src/i18n/validation-keywords.d.ts.map +1 -0
- package/packages/typescript/src/i18n/validation-keywords.js +112 -0
- package/packages/typescript/src/identity-clusters.d.ts +4 -0
- package/packages/typescript/src/identity-clusters.d.ts.map +1 -0
- package/packages/typescript/src/identity-clusters.js +29 -0
- package/packages/typescript/src/index.d.ts +12 -0
- package/packages/typescript/src/index.d.ts.map +1 -0
- package/packages/typescript/src/index.js +13 -0
- package/packages/typescript/src/index.node.d.ts +81 -0
- package/packages/typescript/src/index.node.d.ts.map +1 -0
- package/packages/typescript/src/index.node.js +114 -0
- package/packages/typescript/src/logger.d.ts +121 -0
- package/packages/typescript/src/logger.d.ts.map +1 -0
- package/packages/typescript/src/logger.js +1024 -0
- package/packages/typescript/src/markdown/chunk.d.ts +50 -0
- package/packages/typescript/src/markdown/chunk.d.ts.map +1 -0
- package/packages/typescript/src/markdown/chunk.js +268 -0
- package/packages/typescript/src/markdown/code-spans.d.ts +42 -0
- package/packages/typescript/src/markdown/code-spans.d.ts.map +1 -0
- package/packages/typescript/src/markdown/code-spans.js +89 -0
- package/packages/typescript/src/markdown/fences.d.ts +50 -0
- package/packages/typescript/src/markdown/fences.d.ts.map +1 -0
- package/packages/typescript/src/markdown/fences.js +90 -0
- package/packages/typescript/src/markdown/frontmatter.d.ts +24 -0
- package/packages/typescript/src/markdown/frontmatter.d.ts.map +1 -0
- package/packages/typescript/src/markdown/frontmatter.js +151 -0
- package/packages/typescript/src/markdown/index.d.ts +18 -0
- package/packages/typescript/src/markdown/index.d.ts.map +1 -0
- package/packages/typescript/src/markdown/index.js +17 -0
- package/packages/typescript/src/markdown/ir.d.ts +101 -0
- package/packages/typescript/src/markdown/ir.d.ts.map +1 -0
- package/packages/typescript/src/markdown/ir.js +789 -0
- package/packages/typescript/src/media/fetch.d.ts +39 -0
- package/packages/typescript/src/media/fetch.d.ts.map +1 -0
- package/packages/typescript/src/media/fetch.js +205 -0
- package/packages/typescript/src/media/index.d.ts +8 -0
- package/packages/typescript/src/media/index.d.ts.map +1 -0
- package/packages/typescript/src/media/index.js +7 -0
- package/packages/typescript/src/media/mime.d.ts +51 -0
- package/packages/typescript/src/media/mime.d.ts.map +1 -0
- package/packages/typescript/src/media/mime.js +225 -0
- package/packages/typescript/src/memory.d.ts +40 -0
- package/packages/typescript/src/memory.d.ts.map +1 -0
- package/packages/typescript/src/memory.js +58 -0
- package/packages/typescript/src/network/fetch-guard.d.ts +34 -0
- package/packages/typescript/src/network/fetch-guard.d.ts.map +1 -0
- package/packages/typescript/src/network/fetch-guard.js +136 -0
- package/packages/typescript/src/network/index.d.ts +11 -0
- package/packages/typescript/src/network/index.d.ts.map +1 -0
- package/packages/typescript/src/network/index.js +10 -0
- package/packages/typescript/src/network/ssrf.d.ts +58 -0
- package/packages/typescript/src/network/ssrf.d.ts.map +1 -0
- package/packages/typescript/src/network/ssrf.js +252 -0
- package/packages/typescript/src/optimization/ab-analysis.d.ts +3 -0
- package/packages/typescript/src/optimization/ab-analysis.d.ts.map +1 -0
- package/packages/typescript/src/optimization/ab-analysis.js +8 -0
- package/packages/typescript/src/optimization-root-dir.d.ts +8 -0
- package/packages/typescript/src/optimization-root-dir.d.ts.map +1 -0
- package/packages/typescript/src/optimization-root-dir.js +14 -0
- package/packages/typescript/src/plugin-lifecycle.d.ts +16 -0
- package/packages/typescript/src/plugin-lifecycle.d.ts.map +1 -0
- package/packages/typescript/src/plugin-lifecycle.js +590 -0
- package/packages/typescript/src/plugin.d.ts +13 -0
- package/packages/typescript/src/plugin.d.ts.map +1 -0
- package/packages/typescript/src/plugin.js +341 -0
- package/packages/typescript/src/plugins/index.d.ts +9 -0
- package/packages/typescript/src/plugins/index.d.ts.map +1 -0
- package/packages/typescript/src/plugins/index.js +8 -0
- package/packages/typescript/src/plugins/native-features.d.ts +15 -0
- package/packages/typescript/src/plugins/native-features.d.ts.map +1 -0
- package/packages/typescript/src/plugins/native-features.js +59 -0
- package/packages/typescript/src/prompts.d.ts +90 -0
- package/packages/typescript/src/prompts.d.ts.map +1 -0
- package/packages/typescript/src/prompts.js +1242 -0
- package/packages/typescript/src/providers/onboarding-progress.d.ts +19 -0
- package/packages/typescript/src/providers/onboarding-progress.d.ts.map +1 -0
- package/packages/typescript/src/providers/onboarding-progress.js +268 -0
- package/packages/typescript/src/providers/skill-eligibility.d.ts +28 -0
- package/packages/typescript/src/providers/skill-eligibility.d.ts.map +1 -0
- package/packages/typescript/src/providers/skill-eligibility.js +179 -0
- package/packages/typescript/src/provisioning.d.ts +54 -0
- package/packages/typescript/src/provisioning.d.ts.map +1 -0
- package/packages/typescript/src/provisioning.js +209 -0
- package/packages/typescript/src/roles.d.ts +70 -0
- package/packages/typescript/src/roles.d.ts.map +1 -0
- package/packages/typescript/src/roles.js +544 -0
- package/packages/typescript/src/runtime-composition.d.ts +129 -0
- package/packages/typescript/src/runtime-composition.d.ts.map +1 -0
- package/packages/typescript/src/runtime-composition.js +335 -0
- package/packages/typescript/src/runtime.d.ts +926 -0
- package/packages/typescript/src/runtime.d.ts.map +1 -0
- package/packages/typescript/src/runtime.js +6102 -0
- package/packages/typescript/src/schemas/agent.d.ts +7 -0
- package/packages/typescript/src/schemas/agent.d.ts.map +1 -0
- package/packages/typescript/src/schemas/agent.js +112 -0
- package/packages/typescript/src/schemas/cache.d.ts +7 -0
- package/packages/typescript/src/schemas/cache.d.ts.map +1 -0
- package/packages/typescript/src/schemas/cache.js +55 -0
- package/packages/typescript/src/schemas/channel-participant.d.ts +7 -0
- package/packages/typescript/src/schemas/channel-participant.d.ts.map +1 -0
- package/packages/typescript/src/schemas/channel-participant.js +49 -0
- package/packages/typescript/src/schemas/channel.d.ts +7 -0
- package/packages/typescript/src/schemas/channel.d.ts.map +1 -0
- package/packages/typescript/src/schemas/channel.js +94 -0
- package/packages/typescript/src/schemas/character.d.ts +445 -0
- package/packages/typescript/src/schemas/character.d.ts.map +1 -0
- package/packages/typescript/src/schemas/character.js +309 -0
- package/packages/typescript/src/schemas/component.d.ts +7 -0
- package/packages/typescript/src/schemas/component.d.ts.map +1 -0
- package/packages/typescript/src/schemas/component.js +156 -0
- package/packages/typescript/src/schemas/embedding.d.ts +7 -0
- package/packages/typescript/src/schemas/embedding.d.ts.map +1 -0
- package/packages/typescript/src/schemas/embedding.js +89 -0
- package/packages/typescript/src/schemas/entity-identity.d.ts +29 -0
- package/packages/typescript/src/schemas/entity-identity.d.ts.map +1 -0
- package/packages/typescript/src/schemas/entity-identity.js +334 -0
- package/packages/typescript/src/schemas/entity.d.ts +7 -0
- package/packages/typescript/src/schemas/entity.d.ts.map +1 -0
- package/packages/typescript/src/schemas/entity.js +69 -0
- package/packages/typescript/src/schemas/index.d.ts +77 -0
- package/packages/typescript/src/schemas/index.d.ts.map +1 -0
- package/packages/typescript/src/schemas/index.js +75 -0
- package/packages/typescript/src/schemas/log.d.ts +6 -0
- package/packages/typescript/src/schemas/log.d.ts.map +1 -0
- package/packages/typescript/src/schemas/log.js +93 -0
- package/packages/typescript/src/schemas/memory.d.ts +7 -0
- package/packages/typescript/src/schemas/memory.d.ts.map +1 -0
- package/packages/typescript/src/schemas/memory.js +167 -0
- package/packages/typescript/src/schemas/message-server-agent.d.ts +7 -0
- package/packages/typescript/src/schemas/message-server-agent.d.ts.map +1 -0
- package/packages/typescript/src/schemas/message-server-agent.js +58 -0
- package/packages/typescript/src/schemas/message-server.d.ts +6 -0
- package/packages/typescript/src/schemas/message-server.d.ts.map +1 -0
- package/packages/typescript/src/schemas/message-server.js +62 -0
- package/packages/typescript/src/schemas/message.d.ts +7 -0
- package/packages/typescript/src/schemas/message.d.ts.map +1 -0
- package/packages/typescript/src/schemas/message.js +106 -0
- package/packages/typescript/src/schemas/pairing-allowlist.d.ts +7 -0
- package/packages/typescript/src/schemas/pairing-allowlist.d.ts.map +1 -0
- package/packages/typescript/src/schemas/pairing-allowlist.js +76 -0
- package/packages/typescript/src/schemas/pairing-request.d.ts +7 -0
- package/packages/typescript/src/schemas/pairing-request.d.ts.map +1 -0
- package/packages/typescript/src/schemas/pairing-request.js +96 -0
- package/packages/typescript/src/schemas/participant.d.ts +6 -0
- package/packages/typescript/src/schemas/participant.d.ts.map +1 -0
- package/packages/typescript/src/schemas/participant.js +91 -0
- package/packages/typescript/src/schemas/relationship.d.ts +7 -0
- package/packages/typescript/src/schemas/relationship.d.ts.map +1 -0
- package/packages/typescript/src/schemas/relationship.js +102 -0
- package/packages/typescript/src/schemas/room.d.ts +6 -0
- package/packages/typescript/src/schemas/room.d.ts.map +1 -0
- package/packages/typescript/src/schemas/room.js +86 -0
- package/packages/typescript/src/schemas/server.d.ts +7 -0
- package/packages/typescript/src/schemas/server.d.ts.map +1 -0
- package/packages/typescript/src/schemas/server.js +33 -0
- package/packages/typescript/src/schemas/task.d.ts +6 -0
- package/packages/typescript/src/schemas/task.d.ts.map +1 -0
- package/packages/typescript/src/schemas/task.js +95 -0
- package/packages/typescript/src/schemas/world.d.ts +6 -0
- package/packages/typescript/src/schemas/world.d.ts.map +1 -0
- package/packages/typescript/src/schemas/world.js +64 -0
- package/packages/typescript/src/search.d.ts +359 -0
- package/packages/typescript/src/search.d.ts.map +1 -0
- package/packages/typescript/src/search.js +1580 -0
- package/packages/typescript/src/secrets.d.ts +6 -0
- package/packages/typescript/src/secrets.d.ts.map +1 -0
- package/packages/typescript/src/secrets.js +28 -0
- package/packages/typescript/src/security/external-content.d.ts +96 -0
- package/packages/typescript/src/security/external-content.d.ts.map +1 -0
- package/packages/typescript/src/security/external-content.js +253 -0
- package/packages/typescript/src/security/index.d.ts +12 -0
- package/packages/typescript/src/security/index.d.ts.map +1 -0
- package/packages/typescript/src/security/index.js +13 -0
- package/packages/typescript/src/security/redact.d.ts +111 -0
- package/packages/typescript/src/security/redact.d.ts.map +1 -0
- package/packages/typescript/src/security/redact.js +254 -0
- package/packages/typescript/src/services/agentEvent.d.ts +297 -0
- package/packages/typescript/src/services/agentEvent.d.ts.map +1 -0
- package/packages/typescript/src/services/agentEvent.js +422 -0
- package/packages/typescript/src/services/approval.d.ts +169 -0
- package/packages/typescript/src/services/approval.d.ts.map +1 -0
- package/packages/typescript/src/services/approval.js +399 -0
- package/packages/typescript/src/services/embedding.d.ts +29 -0
- package/packages/typescript/src/services/embedding.d.ts.map +1 -0
- package/packages/typescript/src/services/embedding.js +211 -0
- package/packages/typescript/src/services/followUp.d.ts +48 -0
- package/packages/typescript/src/services/followUp.d.ts.map +1 -0
- package/packages/typescript/src/services/followUp.js +333 -0
- package/packages/typescript/src/services/hook.d.ts +85 -0
- package/packages/typescript/src/services/hook.d.ts.map +1 -0
- package/packages/typescript/src/services/hook.js +396 -0
- package/packages/typescript/src/services/message.d.ts +140 -0
- package/packages/typescript/src/services/message.d.ts.map +1 -0
- package/packages/typescript/src/services/message.js +4770 -0
- package/packages/typescript/src/services/onboarding-cli.d.ts +240 -0
- package/packages/typescript/src/services/onboarding-cli.d.ts.map +1 -0
- package/packages/typescript/src/services/onboarding-cli.js +688 -0
- package/packages/typescript/src/services/onboarding-rpc.d.ts +225 -0
- package/packages/typescript/src/services/onboarding-rpc.d.ts.map +1 -0
- package/packages/typescript/src/services/onboarding-rpc.js +318 -0
- package/packages/typescript/src/services/onboarding-state.d.ts +155 -0
- package/packages/typescript/src/services/onboarding-state.d.ts.map +1 -0
- package/packages/typescript/src/services/onboarding-state.js +706 -0
- package/packages/typescript/src/services/optimized-prompt-resolver.d.ts +23 -0
- package/packages/typescript/src/services/optimized-prompt-resolver.d.ts.map +1 -0
- package/packages/typescript/src/services/optimized-prompt-resolver.js +49 -0
- package/packages/typescript/src/services/optimized-prompt.d.ts +116 -0
- package/packages/typescript/src/services/optimized-prompt.d.ts.map +1 -0
- package/packages/typescript/src/services/optimized-prompt.js +254 -0
- package/packages/typescript/src/services/pairing-integration.d.ts +96 -0
- package/packages/typescript/src/services/pairing-integration.d.ts.map +1 -0
- package/packages/typescript/src/services/pairing-integration.js +145 -0
- package/packages/typescript/src/services/pairing-migration.d.ts +105 -0
- package/packages/typescript/src/services/pairing-migration.d.ts.map +1 -0
- package/packages/typescript/src/services/pairing-migration.js +283 -0
- package/packages/typescript/src/services/pairing.d.ts +80 -0
- package/packages/typescript/src/services/pairing.d.ts.map +1 -0
- package/packages/typescript/src/services/pairing.js +253 -0
- package/packages/typescript/src/services/plugin-hooks.d.ts +112 -0
- package/packages/typescript/src/services/plugin-hooks.d.ts.map +1 -0
- package/packages/typescript/src/services/plugin-hooks.js +164 -0
- package/packages/typescript/src/services/relationships.d.ts +350 -0
- package/packages/typescript/src/services/relationships.d.ts.map +1 -0
- package/packages/typescript/src/services/relationships.js +1653 -0
- package/packages/typescript/src/services/task-scheduler.d.ts +28 -0
- package/packages/typescript/src/services/task-scheduler.d.ts.map +1 -0
- package/packages/typescript/src/services/task-scheduler.js +89 -0
- package/packages/typescript/src/services/task.d.ts +133 -0
- package/packages/typescript/src/services/task.d.ts.map +1 -0
- package/packages/typescript/src/services/task.js +559 -0
- package/packages/typescript/src/services/tool-policy.d.ts +186 -0
- package/packages/typescript/src/services/tool-policy.d.ts.map +1 -0
- package/packages/typescript/src/services/tool-policy.js +332 -0
- package/packages/typescript/src/services/trajectories.d.ts +34 -0
- package/packages/typescript/src/services/trajectories.d.ts.map +1 -0
- package/packages/typescript/src/services/trajectories.js +1 -0
- package/packages/typescript/src/services.d.ts +61 -0
- package/packages/typescript/src/services.d.ts.map +1 -0
- package/packages/typescript/src/services.js +99 -0
- package/packages/typescript/src/sessions/index.d.ts +17 -0
- package/packages/typescript/src/sessions/index.d.ts.map +1 -0
- package/packages/typescript/src/sessions/index.js +29 -0
- package/packages/typescript/src/sessions/provider.d.ts +71 -0
- package/packages/typescript/src/sessions/provider.d.ts.map +1 -0
- package/packages/typescript/src/sessions/provider.js +243 -0
- package/packages/typescript/src/sessions/session-key.d.ts +201 -0
- package/packages/typescript/src/sessions/session-key.d.ts.map +1 -0
- package/packages/typescript/src/sessions/session-key.js +398 -0
- package/packages/typescript/src/sessions/types.d.ts +197 -0
- package/packages/typescript/src/sessions/types.d.ts.map +1 -0
- package/packages/typescript/src/sessions/types.js +68 -0
- package/packages/typescript/src/settings.d.ts +99 -0
- package/packages/typescript/src/settings.d.ts.map +1 -0
- package/packages/typescript/src/settings.js +409 -0
- package/packages/typescript/src/should-respond.d.ts +2 -0
- package/packages/typescript/src/should-respond.d.ts.map +1 -0
- package/packages/typescript/src/should-respond.js +16 -0
- package/packages/typescript/src/streaming-context.d.ts +88 -0
- package/packages/typescript/src/streaming-context.d.ts.map +1 -0
- package/packages/typescript/src/streaming-context.js +160 -0
- package/packages/typescript/src/trajectory-context.d.ts +39 -0
- package/packages/typescript/src/trajectory-context.d.ts.map +1 -0
- package/packages/typescript/src/trajectory-context.js +85 -0
- package/packages/typescript/src/trajectory-utils.d.ts +73 -0
- package/packages/typescript/src/trajectory-utils.d.ts.map +1 -0
- package/packages/typescript/src/trajectory-utils.js +124 -0
- package/packages/typescript/src/types/agent.d.ts +67 -0
- package/packages/typescript/src/types/agent.d.ts.map +1 -0
- package/packages/typescript/src/types/agent.js +5 -0
- package/packages/typescript/src/types/agentEvent.d.ts +258 -0
- package/packages/typescript/src/types/agentEvent.d.ts.map +1 -0
- package/packages/typescript/src/types/agentEvent.js +11 -0
- package/packages/typescript/src/types/channel-config.d.ts +167 -0
- package/packages/typescript/src/types/channel-config.d.ts.map +1 -0
- package/packages/typescript/src/types/channel-config.js +7 -0
- package/packages/typescript/src/types/components.d.ts +358 -0
- package/packages/typescript/src/types/components.d.ts.map +1 -0
- package/packages/typescript/src/types/components.js +1 -0
- package/packages/typescript/src/types/database.d.ts +1079 -0
- package/packages/typescript/src/types/database.d.ts.map +1 -0
- package/packages/typescript/src/types/database.js +9 -0
- package/packages/typescript/src/types/environment.d.ts +73 -0
- package/packages/typescript/src/types/environment.d.ts.map +1 -0
- package/packages/typescript/src/types/environment.js +16 -0
- package/packages/typescript/src/types/events.d.ts +403 -0
- package/packages/typescript/src/types/events.d.ts.map +1 -0
- package/packages/typescript/src/types/events.js +85 -0
- package/packages/typescript/src/types/generated/eliza/v1/agent_pb.d.ts +400 -0
- package/packages/typescript/src/types/generated/eliza/v1/agent_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/agent_pb.js +72 -0
- package/packages/typescript/src/types/generated/eliza/v1/components_pb.d.ts +364 -0
- package/packages/typescript/src/types/generated/eliza/v1/components_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/components_pb.js +68 -0
- package/packages/typescript/src/types/generated/eliza/v1/database_pb.d.ts +694 -0
- package/packages/typescript/src/types/generated/eliza/v1/database_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/database_pb.js +172 -0
- package/packages/typescript/src/types/generated/eliza/v1/environment_pb.d.ts +299 -0
- package/packages/typescript/src/types/generated/eliza/v1/environment_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/environment_pb.js +52 -0
- package/packages/typescript/src/types/generated/eliza/v1/events_pb.d.ts +746 -0
- package/packages/typescript/src/types/generated/eliza/v1/events_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/events_pb.js +357 -0
- package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.d.ts +799 -0
- package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.js +172 -0
- package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.d.ts +63 -0
- package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.js +18 -0
- package/packages/typescript/src/types/generated/eliza/v1/memory_pb.d.ts +290 -0
- package/packages/typescript/src/types/generated/eliza/v1/memory_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/memory_pb.js +53 -0
- package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.d.ts +160 -0
- package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.js +88 -0
- package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.d.ts +214 -0
- package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.js +78 -0
- package/packages/typescript/src/types/generated/eliza/v1/model_pb.d.ts +653 -0
- package/packages/typescript/src/types/generated/eliza/v1/model_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/model_pb.js +237 -0
- package/packages/typescript/src/types/generated/eliza/v1/payment_pb.d.ts +147 -0
- package/packages/typescript/src/types/generated/eliza/v1/payment_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/payment_pb.js +27 -0
- package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.d.ts +286 -0
- package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.js +86 -0
- package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.d.ts +263 -0
- package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.js +38 -0
- package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.d.ts +137 -0
- package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.js +27 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.d.ts +2687 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.js +392 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_pb.d.ts +144 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_pb.js +99 -0
- package/packages/typescript/src/types/generated/eliza/v1/settings_pb.d.ts +146 -0
- package/packages/typescript/src/types/generated/eliza/v1/settings_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/settings_pb.js +32 -0
- package/packages/typescript/src/types/generated/eliza/v1/state_pb.d.ts +259 -0
- package/packages/typescript/src/types/generated/eliza/v1/state_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/state_pb.js +44 -0
- package/packages/typescript/src/types/generated/eliza/v1/task_pb.d.ts +120 -0
- package/packages/typescript/src/types/generated/eliza/v1/task_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/task_pb.js +53 -0
- package/packages/typescript/src/types/generated/eliza/v1/tee_pb.d.ts +205 -0
- package/packages/typescript/src/types/generated/eliza/v1/tee_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/tee_pb.js +89 -0
- package/packages/typescript/src/types/generated/eliza/v1/testing_pb.d.ts +47 -0
- package/packages/typescript/src/types/generated/eliza/v1/testing_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/testing_pb.js +16 -0
- package/packages/typescript/src/types/hook.d.ts +338 -0
- package/packages/typescript/src/types/hook.d.ts.map +1 -0
- package/packages/typescript/src/types/hook.js +73 -0
- package/packages/typescript/src/types/index.d.ts +42 -0
- package/packages/typescript/src/types/index.d.ts.map +1 -0
- package/packages/typescript/src/types/index.js +50 -0
- package/packages/typescript/src/types/knowledge.d.ts +49 -0
- package/packages/typescript/src/types/knowledge.d.ts.map +1 -0
- package/packages/typescript/src/types/knowledge.js +1 -0
- package/packages/typescript/src/types/memory-storage.d.ts +28 -0
- package/packages/typescript/src/types/memory-storage.d.ts.map +1 -0
- package/packages/typescript/src/types/memory-storage.js +13 -0
- package/packages/typescript/src/types/memory.d.ts +516 -0
- package/packages/typescript/src/types/memory.d.ts.map +1 -0
- package/packages/typescript/src/types/memory.js +16 -0
- package/packages/typescript/src/types/message-service.d.ts +178 -0
- package/packages/typescript/src/types/message-service.d.ts.map +1 -0
- package/packages/typescript/src/types/message-service.js +1 -0
- package/packages/typescript/src/types/messaging.d.ts +358 -0
- package/packages/typescript/src/types/messaging.d.ts.map +1 -0
- package/packages/typescript/src/types/messaging.js +27 -0
- package/packages/typescript/src/types/model.d.ts +697 -0
- package/packages/typescript/src/types/model.d.ts.map +1 -0
- package/packages/typescript/src/types/model.js +247 -0
- package/packages/typescript/src/types/onboarding.d.ts +319 -0
- package/packages/typescript/src/types/onboarding.d.ts.map +1 -0
- package/packages/typescript/src/types/onboarding.js +97 -0
- package/packages/typescript/src/types/pairing.d.ts +124 -0
- package/packages/typescript/src/types/pairing.d.ts.map +1 -0
- package/packages/typescript/src/types/pairing.js +32 -0
- package/packages/typescript/src/types/payment.d.ts +67 -0
- package/packages/typescript/src/types/payment.d.ts.map +1 -0
- package/packages/typescript/src/types/payment.js +1 -0
- package/packages/typescript/src/types/pipeline-hooks.d.ts +234 -0
- package/packages/typescript/src/types/pipeline-hooks.d.ts.map +1 -0
- package/packages/typescript/src/types/pipeline-hooks.js +111 -0
- package/packages/typescript/src/types/plugin-manifest.d.ts +381 -0
- package/packages/typescript/src/types/plugin-manifest.d.ts.map +1 -0
- package/packages/typescript/src/types/plugin-manifest.js +10 -0
- package/packages/typescript/src/types/plugin-store.d.ts +173 -0
- package/packages/typescript/src/types/plugin-store.d.ts.map +1 -0
- package/packages/typescript/src/types/plugin-store.js +1 -0
- package/packages/typescript/src/types/plugin.d.ts +374 -0
- package/packages/typescript/src/types/plugin.d.ts.map +1 -0
- package/packages/typescript/src/types/plugin.js +1 -0
- package/packages/typescript/src/types/primitives.d.ts +176 -0
- package/packages/typescript/src/types/primitives.d.ts.map +1 -0
- package/packages/typescript/src/types/primitives.js +41 -0
- package/packages/typescript/src/types/prompt-batcher.d.ts +126 -0
- package/packages/typescript/src/types/prompt-batcher.d.ts.map +1 -0
- package/packages/typescript/src/types/prompt-batcher.js +6 -0
- package/packages/typescript/src/types/prompt-optimization-hooks.d.ts +41 -0
- package/packages/typescript/src/types/prompt-optimization-hooks.d.ts.map +1 -0
- package/packages/typescript/src/types/prompt-optimization-hooks.js +1 -0
- package/packages/typescript/src/types/prompt-optimization-score-card.d.ts +22 -0
- package/packages/typescript/src/types/prompt-optimization-score-card.d.ts.map +1 -0
- package/packages/typescript/src/types/prompt-optimization-score-card.js +72 -0
- package/packages/typescript/src/types/prompt-optimization-trace.d.ts +53 -0
- package/packages/typescript/src/types/prompt-optimization-trace.d.ts.map +1 -0
- package/packages/typescript/src/types/prompt-optimization-trace.js +19 -0
- package/packages/typescript/src/types/prompts.d.ts +39 -0
- package/packages/typescript/src/types/prompts.d.ts.map +1 -0
- package/packages/typescript/src/types/prompts.js +7 -0
- package/packages/typescript/src/types/proto.d.ts +60 -0
- package/packages/typescript/src/types/proto.d.ts.map +1 -0
- package/packages/typescript/src/types/proto.js +53 -0
- package/packages/typescript/src/types/runtime.d.ts +445 -0
- package/packages/typescript/src/types/runtime.d.ts.map +1 -0
- package/packages/typescript/src/types/runtime.js +1 -0
- package/packages/typescript/src/types/schema-builder.d.ts +43 -0
- package/packages/typescript/src/types/schema-builder.d.ts.map +1 -0
- package/packages/typescript/src/types/schema-builder.js +16 -0
- package/packages/typescript/src/types/schema.d.ts +99 -0
- package/packages/typescript/src/types/schema.d.ts.map +1 -0
- package/packages/typescript/src/types/schema.js +11 -0
- package/packages/typescript/src/types/service-interfaces.d.ts +1200 -0
- package/packages/typescript/src/types/service-interfaces.d.ts.map +1 -0
- package/packages/typescript/src/types/service-interfaces.js +81 -0
- package/packages/typescript/src/types/service.d.ts +175 -0
- package/packages/typescript/src/types/service.d.ts.map +1 -0
- package/packages/typescript/src/types/service.js +79 -0
- package/packages/typescript/src/types/settings.d.ts +36 -0
- package/packages/typescript/src/types/settings.d.ts.map +1 -0
- package/packages/typescript/src/types/settings.js +1 -0
- package/packages/typescript/src/types/state.d.ts +251 -0
- package/packages/typescript/src/types/state.d.ts.map +1 -0
- package/packages/typescript/src/types/state.js +1 -0
- package/packages/typescript/src/types/streaming.d.ts +93 -0
- package/packages/typescript/src/types/streaming.d.ts.map +1 -0
- package/packages/typescript/src/types/streaming.js +21 -0
- package/packages/typescript/src/types/task.d.ts +122 -0
- package/packages/typescript/src/types/task.d.ts.map +1 -0
- package/packages/typescript/src/types/task.js +1 -0
- package/packages/typescript/src/types/tee.d.ts +3 -0
- package/packages/typescript/src/types/tee.d.ts.map +1 -0
- package/packages/typescript/src/types/tee.js +1 -0
- package/packages/typescript/src/types/testing.d.ts +15 -0
- package/packages/typescript/src/types/testing.d.ts.map +1 -0
- package/packages/typescript/src/types/testing.js +1 -0
- package/packages/typescript/src/types/tools.d.ts +166 -0
- package/packages/typescript/src/types/tools.d.ts.map +1 -0
- package/packages/typescript/src/types/tools.js +384 -0
- package/packages/typescript/src/types/trigger.d.ts +44 -0
- package/packages/typescript/src/types/trigger.d.ts.map +1 -0
- package/packages/typescript/src/types/trigger.js +1 -0
- package/packages/typescript/src/utils/action-results.d.ts +33 -0
- package/packages/typescript/src/utils/action-results.d.ts.map +1 -0
- package/packages/typescript/src/utils/action-results.js +169 -0
- package/packages/typescript/src/utils/batch-queue/batch-processor.d.ts +52 -0
- package/packages/typescript/src/utils/batch-queue/batch-processor.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue/batch-processor.js +126 -0
- package/packages/typescript/src/utils/batch-queue/index.d.ts +97 -0
- package/packages/typescript/src/utils/batch-queue/index.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue/index.js +175 -0
- package/packages/typescript/src/utils/batch-queue/priority-queue.d.ts +53 -0
- package/packages/typescript/src/utils/batch-queue/priority-queue.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue/priority-queue.js +128 -0
- package/packages/typescript/src/utils/batch-queue/semaphore.d.ts +18 -0
- package/packages/typescript/src/utils/batch-queue/semaphore.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue/semaphore.js +34 -0
- package/packages/typescript/src/utils/batch-queue/task-drain.d.ts +57 -0
- package/packages/typescript/src/utils/batch-queue/task-drain.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue/task-drain.js +150 -0
- package/packages/typescript/src/utils/batch-queue.d.ts +20 -0
- package/packages/typescript/src/utils/batch-queue.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue.js +19 -0
- package/packages/typescript/src/utils/boolean.d.ts +50 -0
- package/packages/typescript/src/utils/boolean.d.ts.map +1 -0
- package/packages/typescript/src/utils/boolean.js +73 -0
- package/packages/typescript/src/utils/buffer.d.ts +107 -0
- package/packages/typescript/src/utils/buffer.d.ts.map +1 -0
- package/packages/typescript/src/utils/buffer.js +229 -0
- package/packages/typescript/src/utils/channel-utils.d.ts +274 -0
- package/packages/typescript/src/utils/channel-utils.d.ts.map +1 -0
- package/packages/typescript/src/utils/channel-utils.js +337 -0
- package/packages/typescript/src/utils/context-catalog.d.ts +6 -0
- package/packages/typescript/src/utils/context-catalog.d.ts.map +1 -0
- package/packages/typescript/src/utils/context-catalog.js +154 -0
- package/packages/typescript/src/utils/context-routing.d.ts +28 -0
- package/packages/typescript/src/utils/context-routing.d.ts.map +1 -0
- package/packages/typescript/src/utils/context-routing.js +252 -0
- package/packages/typescript/src/utils/crypto-compat.d.ts +92 -0
- package/packages/typescript/src/utils/crypto-compat.d.ts.map +1 -0
- package/packages/typescript/src/utils/crypto-compat.js +373 -0
- package/packages/typescript/src/utils/deterministic.d.ts +9 -0
- package/packages/typescript/src/utils/deterministic.d.ts.map +1 -0
- package/packages/typescript/src/utils/deterministic.js +70 -0
- package/packages/typescript/src/utils/environment.d.ts +125 -0
- package/packages/typescript/src/utils/environment.d.ts.map +1 -0
- package/packages/typescript/src/utils/environment.js +290 -0
- package/packages/typescript/src/utils/example-names.d.ts +3 -0
- package/packages/typescript/src/utils/example-names.d.ts.map +1 -0
- package/packages/typescript/src/utils/example-names.js +30 -0
- package/packages/typescript/src/utils/json-llm.d.ts +17 -0
- package/packages/typescript/src/utils/json-llm.d.ts.map +1 -0
- package/packages/typescript/src/utils/json-llm.js +33 -0
- package/packages/typescript/src/utils/message-text.d.ts +5 -0
- package/packages/typescript/src/utils/message-text.d.ts.map +1 -0
- package/packages/typescript/src/utils/message-text.js +24 -0
- package/packages/typescript/src/utils/model-errors.d.ts +3 -0
- package/packages/typescript/src/utils/model-errors.d.ts.map +1 -0
- package/packages/typescript/src/utils/model-errors.js +23 -0
- package/packages/typescript/src/utils/node.d.ts +8 -0
- package/packages/typescript/src/utils/node.d.ts.map +1 -0
- package/packages/typescript/src/utils/node.js +12 -0
- package/packages/typescript/src/utils/paths.d.ts +97 -0
- package/packages/typescript/src/utils/paths.d.ts.map +1 -0
- package/packages/typescript/src/utils/paths.js +204 -0
- package/packages/typescript/src/utils/prompt-batcher/batcher.d.ts +163 -0
- package/packages/typescript/src/utils/prompt-batcher/batcher.d.ts.map +1 -0
- package/packages/typescript/src/utils/prompt-batcher/batcher.js +896 -0
- package/packages/typescript/src/utils/prompt-batcher/dispatcher.d.ts +15 -0
- package/packages/typescript/src/utils/prompt-batcher/dispatcher.d.ts.map +1 -0
- package/packages/typescript/src/utils/prompt-batcher/dispatcher.js +230 -0
- package/packages/typescript/src/utils/prompt-batcher/shared.d.ts +66 -0
- package/packages/typescript/src/utils/prompt-batcher/shared.d.ts.map +1 -0
- package/packages/typescript/src/utils/prompt-batcher/shared.js +101 -0
- package/packages/typescript/src/utils/prompt-batcher.d.ts +5 -0
- package/packages/typescript/src/utils/prompt-batcher.d.ts.map +1 -0
- package/packages/typescript/src/utils/prompt-batcher.js +4 -0
- package/packages/typescript/src/utils/retry.d.ts +128 -0
- package/packages/typescript/src/utils/retry.d.ts.map +1 -0
- package/packages/typescript/src/utils/retry.js +190 -0
- package/packages/typescript/src/utils/server-health.d.ts +35 -0
- package/packages/typescript/src/utils/server-health.d.ts.map +1 -0
- package/packages/typescript/src/utils/server-health.js +76 -0
- package/packages/typescript/src/utils/slice-to-fit-budget.d.ts +12 -0
- package/packages/typescript/src/utils/slice-to-fit-budget.d.ts.map +1 -0
- package/packages/typescript/src/utils/slice-to-fit-budget.js +36 -0
- package/packages/typescript/src/utils/state-dir.d.ts +19 -0
- package/packages/typescript/src/utils/state-dir.d.ts.map +1 -0
- package/packages/typescript/src/utils/state-dir.js +24 -0
- package/packages/typescript/src/utils/streaming.d.ts +275 -0
- package/packages/typescript/src/utils/streaming.d.ts.map +1 -0
- package/packages/typescript/src/utils/streaming.js +774 -0
- package/packages/typescript/src/utils/text-normalize.d.ts +23 -0
- package/packages/typescript/src/utils/text-normalize.d.ts.map +1 -0
- package/packages/typescript/src/utils/text-normalize.js +42 -0
- package/packages/typescript/src/utils/text-splitting.d.ts +14 -0
- package/packages/typescript/src/utils/text-splitting.d.ts.map +1 -0
- package/packages/typescript/src/utils/text-splitting.js +66 -0
- package/packages/typescript/src/utils/toon.d.ts +8 -0
- package/packages/typescript/src/utils/toon.d.ts.map +1 -0
- package/packages/typescript/src/utils/toon.js +347 -0
- package/packages/typescript/src/utils/type-guards.d.ts +25 -0
- package/packages/typescript/src/utils/type-guards.d.ts.map +1 -0
- package/packages/typescript/src/utils/type-guards.js +73 -0
- package/packages/typescript/src/utils/union-find.d.ts +30 -0
- package/packages/typescript/src/utils/union-find.d.ts.map +1 -0
- package/packages/typescript/src/utils/union-find.js +81 -0
- package/packages/typescript/src/utils.d.ts +193 -0
- package/packages/typescript/src/utils.d.ts.map +1 -0
- package/packages/typescript/src/utils.js +1125 -0
- package/packages/typescript/src/validation/index.d.ts +8 -0
- package/packages/typescript/src/validation/index.d.ts.map +1 -0
- package/packages/typescript/src/validation/index.js +7 -0
- package/packages/typescript/src/validation/keywords.d.ts +26 -0
- package/packages/typescript/src/validation/keywords.d.ts.map +1 -0
- package/packages/typescript/src/validation/keywords.js +76 -0
- package/packages/typescript/src/validation/secrets.d.ts +94 -0
- package/packages/typescript/src/validation/secrets.d.ts.map +1 -0
- package/packages/typescript/src/validation/secrets.js +399 -0
- package/packages/ui/src/components/composites/chat/chat-attachment-strip.d.ts +9 -0
- package/packages/ui/src/components/composites/chat/chat-attachment-strip.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-attachment-strip.js +8 -0
- package/packages/ui/src/components/composites/chat/chat-bubble.d.ts +14 -0
- package/packages/ui/src/components/composites/chat/chat-bubble.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-bubble.js +7 -0
- package/packages/ui/src/components/composites/chat/chat-composer-shell.d.ts +14 -0
- package/packages/ui/src/components/composites/chat/chat-composer-shell.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-composer-shell.js +25 -0
- package/packages/ui/src/components/composites/chat/chat-composer.d.ts +45 -0
- package/packages/ui/src/components/composites/chat/chat-composer.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-composer.js +297 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-item.d.ts +21 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-item.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-item.js +118 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.d.ts +22 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.js +14 -0
- package/packages/ui/src/components/composites/chat/chat-empty-state.d.ts +19 -0
- package/packages/ui/src/components/composites/chat/chat-empty-state.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-empty-state.js +8 -0
- package/packages/ui/src/components/composites/chat/chat-message-actions.d.ts +14 -0
- package/packages/ui/src/components/composites/chat/chat-message-actions.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-message-actions.js +10 -0
- package/packages/ui/src/components/composites/chat/chat-message.d.ts +18 -0
- package/packages/ui/src/components/composites/chat/chat-message.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-message.js +260 -0
- package/packages/ui/src/components/composites/chat/chat-sidebar.d.ts +54 -0
- package/packages/ui/src/components/composites/chat/chat-sidebar.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-sidebar.js +64 -0
- package/packages/ui/src/components/composites/chat/chat-source.d.ts +23 -0
- package/packages/ui/src/components/composites/chat/chat-source.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-source.js +60 -0
- package/packages/ui/src/components/composites/chat/chat-thread-layout.d.ts +22 -0
- package/packages/ui/src/components/composites/chat/chat-thread-layout.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-thread-layout.js +37 -0
- package/packages/ui/src/components/composites/chat/chat-transcript.d.ts +19 -0
- package/packages/ui/src/components/composites/chat/chat-transcript.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-transcript.js +88 -0
- package/packages/ui/src/components/composites/chat/chat-types.d.ts +91 -0
- package/packages/ui/src/components/composites/chat/chat-types.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-types.js +1 -0
- package/packages/ui/src/components/composites/chat/chat-typing-indicator.d.ts +10 -0
- package/packages/ui/src/components/composites/chat/chat-typing-indicator.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-typing-indicator.js +10 -0
- package/packages/ui/src/components/composites/chat/create-task-popover.d.ts +13 -0
- package/packages/ui/src/components/composites/chat/create-task-popover.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/create-task-popover.js +44 -0
- package/packages/ui/src/components/composites/chat/index.d.ts +17 -0
- package/packages/ui/src/components/composites/chat/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/index.js +16 -0
- package/packages/ui/src/components/composites/form-field/form-field.d.ts +14 -0
- package/packages/ui/src/components/composites/form-field/form-field.d.ts.map +1 -0
- package/packages/ui/src/components/composites/form-field/form-field.js +8 -0
- package/packages/ui/src/components/composites/form-field/index.d.ts +2 -0
- package/packages/ui/src/components/composites/form-field/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/form-field/index.js +1 -0
- package/packages/ui/src/components/composites/index.d.ts +27 -0
- package/packages/ui/src/components/composites/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/index.js +26 -0
- package/packages/ui/src/components/composites/page-panel/index.d.ts +29 -0
- package/packages/ui/src/components/composites/page-panel/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/index.js +28 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.d.ts +4 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.js +60 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-empty.d.ts +3 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-empty.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-empty.js +15 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-frame.d.ts +5 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-frame.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-frame.js +9 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-header.d.ts +7 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-header.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-header.js +30 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-loading.d.ts +3 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-loading.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-loading.js +13 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-root.d.ts +7 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-root.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-root.js +17 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.d.ts +4 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.js +6 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-types.d.ts +66 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-types.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-types.js +1 -0
- package/packages/ui/src/components/composites/search/index.d.ts +3 -0
- package/packages/ui/src/components/composites/search/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/search/index.js +2 -0
- package/packages/ui/src/components/composites/search/search-input.d.ts.map +1 -0
- package/packages/ui/src/components/composites/search/search-input.js +10 -0
- package/packages/ui/src/components/composites/search/searchbar.d.ts +18 -0
- package/packages/ui/src/components/composites/search/searchbar.d.ts.map +1 -0
- package/packages/ui/src/components/composites/search/searchbar.js +25 -0
- package/packages/ui/src/components/composites/sidebar/index.d.ts +11 -0
- package/packages/ui/src/components/composites/sidebar/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/index.js +10 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.d.ts +15 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.js +292 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-body.d.ts +4 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-body.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-body.js +7 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.d.ts +11 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.js +13 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-content.d.ts +78 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-content.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-content.js +94 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.d.ts +3 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.js +14 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.d.ts +3 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.js +6 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header.d.ts +9 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header.js +6 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-panel.d.ts +3 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-panel.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-panel.js +18 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-root.d.ts +4 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-root.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-root.js +491 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.d.ts +3 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.js +18 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-types.d.ts +77 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-types.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-types.js +1 -0
- package/packages/ui/src/components/composites/skills/index.d.ts +2 -0
- package/packages/ui/src/components/composites/skills/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/skills/index.js +1 -0
- package/packages/ui/src/components/composites/skills/skill-sidebar-item.d.ts +16 -0
- package/packages/ui/src/components/composites/skills/skill-sidebar-item.d.ts.map +1 -0
- package/packages/ui/src/components/composites/skills/skill-sidebar-item.js +7 -0
- package/packages/ui/src/components/composites/trajectories/index.d.ts +5 -0
- package/packages/ui/src/components/composites/trajectories/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/index.js +4 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-code-block.d.ts +13 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-code-block.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-code-block.js +13 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.d.ts +34 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.js +14 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.d.ts +26 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.js +46 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.d.ts +15 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.js +8 -0
- package/packages/ui/src/components/primitives/index.d.ts +26 -0
- package/packages/ui/src/components/primitives/index.d.ts.map +1 -0
- package/packages/ui/src/components/primitives/index.js +25 -0
- package/packages/ui/src/components/ui/admin-dialog.d.ts +50 -0
- package/packages/ui/src/components/ui/admin-dialog.d.ts.map +1 -0
- package/packages/ui/src/components/ui/admin-dialog.js +48 -0
- package/packages/ui/src/components/ui/badge.d.ts +10 -0
- package/packages/ui/src/components/ui/badge.d.ts.map +1 -0
- package/packages/ui/src/components/ui/badge.js +21 -0
- package/packages/ui/src/components/ui/banner.d.ts +17 -0
- package/packages/ui/src/components/ui/banner.d.ts.map +1 -0
- package/packages/ui/src/components/ui/banner.js +29 -0
- package/packages/ui/src/components/ui/button.d.ts +13 -0
- package/packages/ui/src/components/ui/button.d.ts.map +1 -0
- package/packages/ui/src/components/ui/button.js +40 -0
- package/packages/ui/src/components/ui/card.d.ts +15 -0
- package/packages/ui/src/components/ui/card.d.ts.map +1 -0
- package/packages/ui/src/components/ui/card.js +32 -0
- package/packages/ui/src/components/ui/checkbox.d.ts.map +1 -0
- package/packages/ui/src/components/ui/confirm-delete.d.ts +20 -0
- package/packages/ui/src/components/ui/confirm-delete.d.ts.map +1 -0
- package/packages/ui/src/components/ui/confirm-delete.js +16 -0
- package/packages/ui/src/components/ui/confirm-dialog.d.ts +49 -0
- package/packages/ui/src/components/ui/confirm-dialog.d.ts.map +1 -0
- package/packages/ui/src/components/ui/confirm-dialog.js +90 -0
- package/packages/ui/src/components/ui/connection-status.d.ts +15 -0
- package/packages/ui/src/components/ui/connection-status.d.ts.map +1 -0
- package/packages/ui/src/components/ui/connection-status.js +25 -0
- package/packages/ui/src/components/ui/copy-button.d.ts.map +1 -0
- package/packages/ui/src/components/ui/dialog.d.ts +25 -0
- package/packages/ui/src/components/ui/dialog.d.ts.map +1 -0
- package/packages/ui/src/components/ui/dialog.js +23 -0
- package/packages/ui/src/components/ui/drawer-sheet.d.ts +19 -0
- package/packages/ui/src/components/ui/drawer-sheet.d.ts.map +1 -0
- package/packages/ui/src/components/ui/drawer-sheet.js +21 -0
- package/packages/ui/src/components/ui/dropdown-menu.d.ts.map +1 -0
- package/packages/ui/src/components/ui/dropdown-menu.js +35 -0
- package/packages/ui/src/components/ui/empty-state.d.ts.map +1 -0
- package/packages/ui/src/components/ui/error-boundary.d.ts +22 -0
- package/packages/ui/src/components/ui/error-boundary.d.ts.map +1 -0
- package/packages/ui/src/components/ui/error-boundary.js +27 -0
- package/packages/ui/src/components/ui/field-switch.d.ts +8 -0
- package/packages/ui/src/components/ui/field-switch.d.ts.map +1 -0
- package/packages/ui/src/components/ui/field-switch.js +10 -0
- package/packages/ui/src/components/ui/field.d.ts +12 -0
- package/packages/ui/src/components/ui/field.d.ts.map +1 -0
- package/packages/ui/src/components/ui/field.js +21 -0
- package/packages/ui/src/components/ui/form-select.d.ts +14 -0
- package/packages/ui/src/components/ui/form-select.d.ts.map +1 -0
- package/packages/ui/src/components/ui/form-select.js +9 -0
- package/packages/ui/src/components/ui/grid.d.ts +10 -0
- package/packages/ui/src/components/ui/grid.d.ts.map +1 -0
- package/packages/ui/src/components/ui/grid.js +31 -0
- package/packages/ui/src/components/ui/input.d.ts +12 -0
- package/packages/ui/src/components/ui/input.d.ts.map +1 -0
- package/packages/ui/src/components/ui/input.js +29 -0
- package/packages/ui/src/components/ui/label.d.ts +5 -0
- package/packages/ui/src/components/ui/label.d.ts.map +1 -0
- package/packages/ui/src/components/ui/label.js +10 -0
- package/packages/ui/src/components/ui/new-action-button.d.ts +7 -0
- package/packages/ui/src/components/ui/new-action-button.d.ts.map +1 -0
- package/packages/ui/src/components/ui/new-action-button.js +13 -0
- package/packages/ui/src/components/ui/popover.d.ts.map +1 -0
- package/packages/ui/src/components/ui/save-footer.d.ts.map +1 -0
- package/packages/ui/src/components/ui/save-footer.js +10 -0
- package/packages/ui/src/components/ui/section-card.d.ts.map +1 -0
- package/packages/ui/src/components/ui/section-card.js +10 -0
- package/packages/ui/src/components/ui/segmented-control.d.ts +18 -0
- package/packages/ui/src/components/ui/segmented-control.d.ts.map +1 -0
- package/packages/ui/src/components/ui/segmented-control.js +10 -0
- package/packages/ui/src/components/ui/select.d.ts.map +1 -0
- package/packages/ui/src/components/ui/select.js +27 -0
- package/packages/ui/src/components/ui/separator.d.ts.map +1 -0
- package/packages/ui/src/components/ui/settings-controls.d.ts +41 -0
- package/packages/ui/src/components/ui/settings-controls.d.ts.map +1 -0
- package/packages/ui/src/components/ui/settings-controls.js +60 -0
- package/packages/ui/src/components/ui/skeleton.d.ts.map +1 -0
- package/packages/ui/src/components/ui/skeleton.js +24 -0
- package/packages/ui/src/components/ui/slider.d.ts.map +1 -0
- package/packages/ui/src/components/ui/slider.js +7 -0
- package/packages/ui/src/components/ui/sonner.d.ts +2 -0
- package/packages/ui/src/components/ui/sonner.d.ts.map +1 -0
- package/packages/ui/src/components/ui/sonner.js +1 -0
- package/packages/ui/src/components/ui/spinner.d.ts.map +1 -0
- package/packages/ui/src/components/ui/stack.d.ts +11 -0
- package/packages/ui/src/components/ui/stack.d.ts.map +1 -0
- package/packages/ui/src/components/ui/stack.js +40 -0
- package/packages/ui/src/components/ui/status-badge.d.ts +27 -0
- package/packages/ui/src/components/ui/status-badge.d.ts.map +1 -0
- package/packages/ui/src/components/ui/status-badge.js +70 -0
- package/packages/ui/src/components/ui/switch.d.ts.map +1 -0
- package/packages/ui/src/components/ui/switch.js +7 -0
- package/packages/ui/src/components/ui/tabs.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tabs.js +12 -0
- package/packages/ui/src/components/ui/tag-editor.d.ts +12 -0
- package/packages/ui/src/components/ui/tag-editor.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tag-editor.js +34 -0
- package/packages/ui/src/components/ui/tag-input.d.ts +3 -0
- package/packages/ui/src/components/ui/tag-input.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tag-input.js +1 -0
- package/packages/ui/src/components/ui/textarea.d.ts +12 -0
- package/packages/ui/src/components/ui/textarea.d.ts.map +1 -0
- package/packages/ui/src/components/ui/textarea.js +29 -0
- package/packages/ui/src/components/ui/themed-select.d.ts +22 -0
- package/packages/ui/src/components/ui/themed-select.d.ts.map +1 -0
- package/packages/ui/src/components/ui/themed-select.js +137 -0
- package/packages/ui/src/components/ui/tooltip-extended.d.ts +54 -0
- package/packages/ui/src/components/ui/tooltip-extended.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tooltip-extended.js +114 -0
- package/packages/ui/src/components/ui/tooltip.d.ts +18 -0
- package/packages/ui/src/components/ui/tooltip.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tooltip.js +13 -0
- package/packages/ui/src/components/ui/typography.d.ts +15 -0
- package/packages/ui/src/components/ui/typography.d.ts.map +1 -0
- package/packages/ui/src/components/ui/typography.js +46 -0
- package/packages/ui/src/hooks/index.d.ts +6 -0
- package/packages/ui/src/hooks/index.d.ts.map +1 -0
- package/packages/ui/src/hooks/index.js +5 -0
- package/packages/ui/src/hooks/useClickOutside.d.ts +3 -0
- package/packages/ui/src/hooks/useClickOutside.d.ts.map +1 -0
- package/packages/ui/src/hooks/useClickOutside.js +22 -0
- package/packages/ui/src/hooks/useDocumentVisibility.d.ts +3 -0
- package/packages/ui/src/hooks/useDocumentVisibility.d.ts.map +1 -0
- package/packages/ui/src/hooks/useDocumentVisibility.js +28 -0
- package/packages/ui/src/hooks/useKeyboardShortcuts.d.ts +13 -0
- package/packages/ui/src/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/packages/ui/src/hooks/useKeyboardShortcuts.js +34 -0
- package/packages/ui/src/hooks/useLinkedSidebarSelection.d.ts +16 -0
- package/packages/ui/src/hooks/useLinkedSidebarSelection.d.ts.map +1 -0
- package/packages/ui/src/hooks/useLinkedSidebarSelection.js +117 -0
- package/packages/ui/src/hooks/useTimeout.d.ts +5 -0
- package/packages/ui/src/hooks/useTimeout.d.ts.map +1 -0
- package/packages/ui/src/hooks/useTimeout.js +26 -0
- package/packages/ui/src/index.d.ts +8 -0
- package/packages/ui/src/index.d.ts.map +1 -0
- package/packages/ui/src/index.js +7 -0
- package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.d.ts +11 -0
- package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.d.ts.map +1 -0
- package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.js +37 -0
- package/packages/ui/src/layouts/chat-panel-layout/index.d.ts +2 -0
- package/packages/ui/src/layouts/chat-panel-layout/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/chat-panel-layout/index.js +1 -0
- package/packages/ui/src/layouts/content-layout/content-layout.d.ts +21 -0
- package/packages/ui/src/layouts/content-layout/content-layout.d.ts.map +1 -0
- package/packages/ui/src/layouts/content-layout/content-layout.js +5 -0
- package/packages/ui/src/layouts/content-layout/index.d.ts +2 -0
- package/packages/ui/src/layouts/content-layout/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/content-layout/index.js +1 -0
- package/packages/ui/src/layouts/index.d.ts +5 -0
- package/packages/ui/src/layouts/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/index.js +4 -0
- package/packages/ui/src/layouts/layout-test-utils.d.ts +6 -0
- package/packages/ui/src/layouts/layout-test-utils.d.ts.map +1 -0
- package/packages/ui/src/layouts/layout-test-utils.js +36 -0
- package/packages/ui/src/layouts/page-layout/index.d.ts +5 -0
- package/packages/ui/src/layouts/page-layout/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/index.js +4 -0
- package/packages/ui/src/layouts/page-layout/page-layout-header.d.ts +287 -0
- package/packages/ui/src/layouts/page-layout/page-layout-header.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout-header.js +8 -0
- package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.d.ts +3 -0
- package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.js +37 -0
- package/packages/ui/src/layouts/page-layout/page-layout-types.d.ts +15 -0
- package/packages/ui/src/layouts/page-layout/page-layout-types.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout-types.js +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout.d.ts +3 -0
- package/packages/ui/src/layouts/page-layout/page-layout.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout.js +5 -0
- package/packages/ui/src/layouts/workspace-layout/index.d.ts +4 -0
- package/packages/ui/src/layouts/workspace-layout/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/workspace-layout/index.js +3 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.d.ts +19 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.d.ts.map +1 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.js +1 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.d.ts +3 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.d.ts.map +1 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.js +65 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-mobile-sidebar-controls.d.ts +13 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-mobile-sidebar-controls.d.ts.map +1 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-mobile-sidebar-controls.js +5 -0
- package/packages/ui/src/lib/floating-layers.d.ts +17 -0
- package/packages/ui/src/lib/floating-layers.d.ts.map +1 -0
- package/packages/ui/src/lib/floating-layers.js +20 -0
- package/packages/ui/src/lib/utils.d.ts +3 -0
- package/packages/ui/src/lib/utils.d.ts.map +1 -0
- package/packages/ui/src/lib/utils.js +5 -0
- package/packages/ui/src/stories/layout-story-fixtures.d.ts +14 -0
- package/packages/ui/src/stories/layout-story-fixtures.d.ts.map +1 -0
- package/packages/ui/src/stories/layout-story-fixtures.js +33 -0
- package/packages/ui/src/types/onboarding.d.ts +8 -0
- package/packages/ui/src/types/onboarding.d.ts.map +1 -0
- package/packages/ui/src/types/onboarding.js +17 -0
- package/styles/electrobun-mac-window-drag.css +94 -0
- package/styles/theme.css +73 -0
- package/README.md +0 -6
- package/dist/components/ui/badge.d.ts +0 -10
- package/dist/components/ui/badge.d.ts.map +0 -1
- package/dist/components/ui/badge.js +0 -20
- package/dist/components/ui/banner.d.ts +0 -18
- package/dist/components/ui/banner.d.ts.map +0 -1
- package/dist/components/ui/banner.js +0 -27
- package/dist/components/ui/button.d.ts +0 -12
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/button.js +0 -33
- package/dist/components/ui/card.d.ts +0 -9
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/card.js +0 -16
- package/dist/components/ui/chat-atoms.d.ts +0 -26
- package/dist/components/ui/chat-atoms.d.ts.map +0 -1
- package/dist/components/ui/chat-atoms.js +0 -17
- package/dist/components/ui/checkbox.d.ts.map +0 -1
- package/dist/components/ui/confirm-delete.d.ts +0 -12
- package/dist/components/ui/confirm-delete.d.ts.map +0 -1
- package/dist/components/ui/confirm-delete.js +0 -13
- package/dist/components/ui/confirm-dialog.d.ts +0 -24
- package/dist/components/ui/confirm-dialog.d.ts.map +0 -1
- package/dist/components/ui/confirm-dialog.js +0 -55
- package/dist/components/ui/connection-status.d.ts +0 -9
- package/dist/components/ui/connection-status.d.ts.map +0 -1
- package/dist/components/ui/connection-status.js +0 -25
- package/dist/components/ui/copy-button.d.ts.map +0 -1
- package/dist/components/ui/dialog.d.ts +0 -20
- package/dist/components/ui/dialog.d.ts.map +0 -1
- package/dist/components/ui/dialog.js +0 -22
- package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/components/ui/dropdown-menu.js +0 -35
- package/dist/components/ui/empty-state.d.ts.map +0 -1
- package/dist/components/ui/error-boundary.d.ts +0 -18
- package/dist/components/ui/error-boundary.d.ts.map +0 -1
- package/dist/components/ui/error-boundary.js +0 -27
- package/dist/components/ui/grid.d.ts +0 -11
- package/dist/components/ui/grid.d.ts.map +0 -1
- package/dist/components/ui/grid.js +0 -30
- package/dist/components/ui/input.d.ts +0 -6
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/input.js +0 -8
- package/dist/components/ui/label.d.ts +0 -6
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/label.js +0 -9
- package/dist/components/ui/popover.d.ts.map +0 -1
- package/dist/components/ui/save-footer.d.ts.map +0 -1
- package/dist/components/ui/save-footer.js +0 -9
- package/dist/components/ui/search-bar.d.ts +0 -17
- package/dist/components/ui/search-bar.d.ts.map +0 -1
- package/dist/components/ui/search-bar.js +0 -19
- package/dist/components/ui/search-input.d.ts.map +0 -1
- package/dist/components/ui/search-input.js +0 -9
- package/dist/components/ui/section-card.d.ts.map +0 -1
- package/dist/components/ui/section-card.js +0 -9
- package/dist/components/ui/select.d.ts.map +0 -1
- package/dist/components/ui/select.js +0 -26
- package/dist/components/ui/separator.d.ts.map +0 -1
- package/dist/components/ui/skeleton.d.ts.map +0 -1
- package/dist/components/ui/skeleton.js +0 -25
- package/dist/components/ui/slider.d.ts.map +0 -1
- package/dist/components/ui/slider.js +0 -7
- package/dist/components/ui/sonner.d.ts +0 -5
- package/dist/components/ui/sonner.d.ts.map +0 -1
- package/dist/components/ui/sonner.js +0 -15
- package/dist/components/ui/spinner.d.ts.map +0 -1
- package/dist/components/ui/stack.d.ts +0 -13
- package/dist/components/ui/stack.d.ts.map +0 -1
- package/dist/components/ui/stack.js +0 -39
- package/dist/components/ui/status-badge.d.ts +0 -20
- package/dist/components/ui/status-badge.d.ts.map +0 -1
- package/dist/components/ui/status-badge.js +0 -41
- package/dist/components/ui/switch.d.ts.map +0 -1
- package/dist/components/ui/switch.js +0 -7
- package/dist/components/ui/tabs.d.ts.map +0 -1
- package/dist/components/ui/tabs.js +0 -12
- package/dist/components/ui/tag-editor.d.ts +0 -24
- package/dist/components/ui/tag-editor.d.ts.map +0 -1
- package/dist/components/ui/tag-editor.js +0 -32
- package/dist/components/ui/tag-input.d.ts +0 -19
- package/dist/components/ui/tag-input.d.ts.map +0 -1
- package/dist/components/ui/tag-input.js +0 -28
- package/dist/components/ui/textarea.d.ts +0 -6
- package/dist/components/ui/textarea.d.ts.map +0 -1
- package/dist/components/ui/textarea.js +0 -8
- package/dist/components/ui/themed-select.d.ts +0 -27
- package/dist/components/ui/themed-select.d.ts.map +0 -1
- package/dist/components/ui/themed-select.js +0 -57
- package/dist/components/ui/tooltip-extended.d.ts +0 -76
- package/dist/components/ui/tooltip-extended.d.ts.map +0 -1
- package/dist/components/ui/tooltip-extended.js +0 -128
- package/dist/components/ui/tooltip.d.ts +0 -8
- package/dist/components/ui/tooltip.d.ts.map +0 -1
- package/dist/components/ui/tooltip.js +0 -10
- package/dist/components/ui/typography.d.ts +0 -17
- package/dist/components/ui/typography.d.ts.map +0 -1
- package/dist/components/ui/typography.js +0 -44
- package/dist/index.d.ts +0 -42
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -43
- package/dist/lib/button-styles.d.ts +0 -12
- package/dist/lib/button-styles.d.ts.map +0 -1
- package/dist/lib/button-styles.js +0 -11
- package/dist/lib/utils.d.ts +0 -6
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -8
- package/dist/package.json +0 -65
- package/dist/styles/theme.css +0 -193
- package/src/styles/theme.css +0 -193
- /package/{dist/components/ui → packages/ui/src/components/composites/search}/search-input.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/checkbox.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/checkbox.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/copy-button.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/copy-button.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/dropdown-menu.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/empty-state.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/empty-state.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/popover.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/popover.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/save-footer.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/section-card.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/select.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/separator.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/separator.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/skeleton.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/slider.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/spinner.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/spinner.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/switch.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/tabs.d.ts +0 -0
|
@@ -0,0 +1,4586 @@
|
|
|
1
|
+
import crypto from "node:crypto";
|
|
2
|
+
import { logger } from "@elizaos/core";
|
|
3
|
+
import { browserBridgeSchema, } from "@elizaos/plugin-browser-bridge";
|
|
4
|
+
import { refreshLifeOpsRelativeTime } from "./relative-time.js";
|
|
5
|
+
import { lifeOpsSchema } from "./schema.js";
|
|
6
|
+
import { executeRawSql, parseJsonArray, parseJsonRecord, sqlBoolean, sqlInteger, sqlJson, sqlNumber, sqlQuote, sqlText, toBoolean, toNumber, toText, } from "./sql.js";
|
|
7
|
+
import { buildTelemetryEventFromSignal } from "./telemetry-mapping.js";
|
|
8
|
+
function normalizeConnectorIdentityEmail(value) {
|
|
9
|
+
if (typeof value !== "string")
|
|
10
|
+
return null;
|
|
11
|
+
const normalized = value.trim().toLowerCase();
|
|
12
|
+
return normalized.length > 0 ? normalized : null;
|
|
13
|
+
}
|
|
14
|
+
function deriveConnectorIdentityEmail(identity) {
|
|
15
|
+
return (normalizeConnectorIdentityEmail(identity.email) ??
|
|
16
|
+
normalizeConnectorIdentityEmail(identity.emailAddress) ??
|
|
17
|
+
normalizeConnectorIdentityEmail(identity.primaryEmail));
|
|
18
|
+
}
|
|
19
|
+
function isoNow() {
|
|
20
|
+
return new Date().toISOString();
|
|
21
|
+
}
|
|
22
|
+
function parseOwnershipFields(row) {
|
|
23
|
+
const subjectType = toText(row.subject_type, "owner") === "agent" ? "agent" : "owner";
|
|
24
|
+
return {
|
|
25
|
+
domain: toText(row.domain, subjectType === "agent" ? "agent_ops" : "user_lifeops") === "agent_ops"
|
|
26
|
+
? "agent_ops"
|
|
27
|
+
: "user_lifeops",
|
|
28
|
+
subjectType,
|
|
29
|
+
subjectId: toText(row.subject_id, toText(row.agent_id)),
|
|
30
|
+
visibilityScope: toText(row.visibility_scope, subjectType === "agent" ? "agent_and_admin" : "owner_agent_admin") === "owner_only"
|
|
31
|
+
? "owner_only"
|
|
32
|
+
: toText(row.visibility_scope, subjectType === "agent" ? "agent_and_admin" : "owner_agent_admin") === "agent_and_admin"
|
|
33
|
+
? "agent_and_admin"
|
|
34
|
+
: "owner_agent_admin",
|
|
35
|
+
contextPolicy: toText(row.context_policy, subjectType === "agent" ? "never" : "explicit_only") === "never"
|
|
36
|
+
? "never"
|
|
37
|
+
: toText(row.context_policy, subjectType === "agent" ? "never" : "explicit_only") === "sidebar_only"
|
|
38
|
+
? "sidebar_only"
|
|
39
|
+
: toText(row.context_policy, subjectType === "agent" ? "never" : "explicit_only") === "allowed_in_private_chat"
|
|
40
|
+
? "allowed_in_private_chat"
|
|
41
|
+
: "explicit_only",
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function parseTaskDefinition(row) {
|
|
45
|
+
return {
|
|
46
|
+
id: toText(row.id),
|
|
47
|
+
agentId: toText(row.agent_id),
|
|
48
|
+
...parseOwnershipFields(row),
|
|
49
|
+
kind: toText(row.kind),
|
|
50
|
+
title: toText(row.title),
|
|
51
|
+
description: toText(row.description),
|
|
52
|
+
originalIntent: toText(row.original_intent),
|
|
53
|
+
timezone: toText(row.timezone),
|
|
54
|
+
status: toText(row.status),
|
|
55
|
+
priority: toNumber(row.priority, 3),
|
|
56
|
+
cadence: parseJsonRecord(row.cadence_json),
|
|
57
|
+
windowPolicy: parseJsonRecord(row.window_policy_json),
|
|
58
|
+
progressionRule: parseJsonRecord(row.progression_rule_json),
|
|
59
|
+
websiteAccess: row.website_access_json
|
|
60
|
+
? parseJsonRecord(row.website_access_json)
|
|
61
|
+
: null,
|
|
62
|
+
reminderPlanId: row.reminder_plan_id ? toText(row.reminder_plan_id) : null,
|
|
63
|
+
goalId: row.goal_id ? toText(row.goal_id) : null,
|
|
64
|
+
source: toText(row.source),
|
|
65
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
66
|
+
createdAt: toText(row.created_at),
|
|
67
|
+
updatedAt: toText(row.updated_at),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function parseOccurrence(row) {
|
|
71
|
+
return {
|
|
72
|
+
id: toText(row.id),
|
|
73
|
+
agentId: toText(row.agent_id),
|
|
74
|
+
...parseOwnershipFields(row),
|
|
75
|
+
definitionId: toText(row.definition_id),
|
|
76
|
+
occurrenceKey: toText(row.occurrence_key),
|
|
77
|
+
scheduledAt: row.scheduled_at ? toText(row.scheduled_at) : null,
|
|
78
|
+
dueAt: row.due_at ? toText(row.due_at) : null,
|
|
79
|
+
relevanceStartAt: toText(row.relevance_start_at),
|
|
80
|
+
relevanceEndAt: toText(row.relevance_end_at),
|
|
81
|
+
windowName: row.window_name ? toText(row.window_name) : null,
|
|
82
|
+
state: toText(row.state),
|
|
83
|
+
snoozedUntil: row.snoozed_until ? toText(row.snoozed_until) : null,
|
|
84
|
+
completionPayload: row.completion_payload_json
|
|
85
|
+
? parseJsonRecord(row.completion_payload_json)
|
|
86
|
+
: null,
|
|
87
|
+
derivedTarget: row.derived_target_json
|
|
88
|
+
? parseJsonRecord(row.derived_target_json)
|
|
89
|
+
: null,
|
|
90
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
91
|
+
createdAt: toText(row.created_at),
|
|
92
|
+
updatedAt: toText(row.updated_at),
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function parseOccurrenceView(row) {
|
|
96
|
+
return {
|
|
97
|
+
...parseOccurrence(row),
|
|
98
|
+
definitionKind: toText(row.definition_kind),
|
|
99
|
+
definitionStatus: toText(row.definition_status),
|
|
100
|
+
cadence: parseJsonRecord(row.definition_cadence_json),
|
|
101
|
+
title: toText(row.definition_title),
|
|
102
|
+
description: toText(row.definition_description),
|
|
103
|
+
priority: toNumber(row.definition_priority, 3),
|
|
104
|
+
timezone: toText(row.definition_timezone),
|
|
105
|
+
source: toText(row.definition_source, "manual"),
|
|
106
|
+
goalId: row.definition_goal_id ? toText(row.definition_goal_id) : null,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
function parseGoal(row) {
|
|
110
|
+
return {
|
|
111
|
+
id: toText(row.id),
|
|
112
|
+
agentId: toText(row.agent_id),
|
|
113
|
+
...parseOwnershipFields(row),
|
|
114
|
+
title: toText(row.title),
|
|
115
|
+
description: toText(row.description),
|
|
116
|
+
cadence: row.cadence_json ? parseJsonRecord(row.cadence_json) : null,
|
|
117
|
+
supportStrategy: parseJsonRecord(row.support_strategy_json),
|
|
118
|
+
successCriteria: parseJsonRecord(row.success_criteria_json),
|
|
119
|
+
status: toText(row.status),
|
|
120
|
+
reviewState: toText(row.review_state),
|
|
121
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
122
|
+
createdAt: toText(row.created_at),
|
|
123
|
+
updatedAt: toText(row.updated_at),
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
function parseGoalLink(row) {
|
|
127
|
+
return {
|
|
128
|
+
id: toText(row.id),
|
|
129
|
+
agentId: toText(row.agent_id),
|
|
130
|
+
goalId: toText(row.goal_id),
|
|
131
|
+
linkedType: toText(row.linked_type),
|
|
132
|
+
linkedId: toText(row.linked_id),
|
|
133
|
+
createdAt: toText(row.created_at),
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
function parseReminderPlan(row) {
|
|
137
|
+
return {
|
|
138
|
+
id: toText(row.id),
|
|
139
|
+
agentId: toText(row.agent_id),
|
|
140
|
+
ownerType: toText(row.owner_type),
|
|
141
|
+
ownerId: toText(row.owner_id),
|
|
142
|
+
steps: parseJsonArray(row.steps_json),
|
|
143
|
+
mutePolicy: parseJsonRecord(row.mute_policy_json),
|
|
144
|
+
quietHours: parseJsonRecord(row.quiet_hours_json),
|
|
145
|
+
createdAt: toText(row.created_at),
|
|
146
|
+
updatedAt: toText(row.updated_at),
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
function parseChannelPolicy(row) {
|
|
150
|
+
return {
|
|
151
|
+
id: toText(row.id),
|
|
152
|
+
agentId: toText(row.agent_id),
|
|
153
|
+
channelType: toText(row.channel_type),
|
|
154
|
+
channelRef: toText(row.channel_ref),
|
|
155
|
+
privacyClass: toText(row.privacy_class),
|
|
156
|
+
allowReminders: toBoolean(row.allow_reminders),
|
|
157
|
+
allowEscalation: toBoolean(row.allow_escalation),
|
|
158
|
+
allowPosts: toBoolean(row.allow_posts),
|
|
159
|
+
requireConfirmationForActions: toBoolean(row.require_confirmation_for_actions),
|
|
160
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
161
|
+
createdAt: toText(row.created_at),
|
|
162
|
+
updatedAt: toText(row.updated_at),
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
function parseRelationship(row) {
|
|
166
|
+
return {
|
|
167
|
+
id: toText(row.id),
|
|
168
|
+
agentId: toText(row.agent_id),
|
|
169
|
+
name: toText(row.name),
|
|
170
|
+
primaryChannel: toText(row.primary_channel),
|
|
171
|
+
primaryHandle: toText(row.primary_handle),
|
|
172
|
+
email: row.email ? toText(row.email) : null,
|
|
173
|
+
phone: row.phone ? toText(row.phone) : null,
|
|
174
|
+
notes: toText(row.notes, ""),
|
|
175
|
+
tags: parseJsonArray(row.tags_json),
|
|
176
|
+
relationshipType: toText(row.relationship_type),
|
|
177
|
+
lastContactedAt: row.last_contacted_at
|
|
178
|
+
? toText(row.last_contacted_at)
|
|
179
|
+
: null,
|
|
180
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
181
|
+
createdAt: toText(row.created_at),
|
|
182
|
+
updatedAt: toText(row.updated_at),
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
function parseRelationshipInteraction(row) {
|
|
186
|
+
return {
|
|
187
|
+
id: toText(row.id),
|
|
188
|
+
agentId: toText(row.agent_id),
|
|
189
|
+
relationshipId: toText(row.relationship_id),
|
|
190
|
+
channel: toText(row.channel),
|
|
191
|
+
direction: toText(row.direction),
|
|
192
|
+
summary: toText(row.summary),
|
|
193
|
+
occurredAt: toText(row.occurred_at),
|
|
194
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
195
|
+
createdAt: toText(row.created_at),
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
function parseFollowUp(row) {
|
|
199
|
+
return {
|
|
200
|
+
id: toText(row.id),
|
|
201
|
+
agentId: toText(row.agent_id),
|
|
202
|
+
relationshipId: toText(row.relationship_id),
|
|
203
|
+
dueAt: toText(row.due_at),
|
|
204
|
+
reason: toText(row.reason),
|
|
205
|
+
status: toText(row.status),
|
|
206
|
+
priority: toNumber(row.priority, 3),
|
|
207
|
+
draft: row.draft_json
|
|
208
|
+
? parseJsonRecord(row.draft_json)
|
|
209
|
+
: null,
|
|
210
|
+
completedAt: row.completed_at ? toText(row.completed_at) : null,
|
|
211
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
212
|
+
createdAt: toText(row.created_at),
|
|
213
|
+
updatedAt: toText(row.updated_at),
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
function parseWebsiteAccessGrant(row) {
|
|
217
|
+
return {
|
|
218
|
+
id: toText(row.id),
|
|
219
|
+
agentId: toText(row.agent_id),
|
|
220
|
+
groupKey: toText(row.group_key),
|
|
221
|
+
definitionId: toText(row.definition_id),
|
|
222
|
+
occurrenceId: row.occurrence_id ? toText(row.occurrence_id) : null,
|
|
223
|
+
websites: parseJsonArray(row.websites_json),
|
|
224
|
+
unlockMode: toText(row.unlock_mode),
|
|
225
|
+
unlockDurationMinutes: row.unlock_duration_minutes
|
|
226
|
+
? toNumber(row.unlock_duration_minutes, 0)
|
|
227
|
+
: null,
|
|
228
|
+
callbackKey: row.callback_key ? toText(row.callback_key) : null,
|
|
229
|
+
unlockedAt: toText(row.unlocked_at),
|
|
230
|
+
expiresAt: row.expires_at ? toText(row.expires_at) : null,
|
|
231
|
+
revokedAt: row.revoked_at ? toText(row.revoked_at) : null,
|
|
232
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
233
|
+
createdAt: toText(row.created_at),
|
|
234
|
+
updatedAt: toText(row.updated_at),
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
function parseConnectorGrant(row) {
|
|
238
|
+
const identity = parseJsonRecord(row.identity_json);
|
|
239
|
+
return {
|
|
240
|
+
id: toText(row.id),
|
|
241
|
+
agentId: toText(row.agent_id),
|
|
242
|
+
provider: toText(row.provider),
|
|
243
|
+
side: toText(row.side, "owner"),
|
|
244
|
+
identity,
|
|
245
|
+
grantedScopes: parseJsonArray(row.granted_scopes_json),
|
|
246
|
+
capabilities: parseJsonArray(row.capabilities_json),
|
|
247
|
+
tokenRef: row.token_ref ? toText(row.token_ref) : null,
|
|
248
|
+
mode: toText(row.mode),
|
|
249
|
+
executionTarget: toText(row.execution_target ?? "local"),
|
|
250
|
+
sourceOfTruth: toText(row.source_of_truth ?? "local_storage"),
|
|
251
|
+
preferredByAgent: toBoolean(row.preferred_by_agent ?? false),
|
|
252
|
+
cloudConnectionId: row.cloud_connection_id
|
|
253
|
+
? toText(row.cloud_connection_id)
|
|
254
|
+
: null,
|
|
255
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
256
|
+
lastRefreshAt: row.last_refresh_at ? toText(row.last_refresh_at) : null,
|
|
257
|
+
createdAt: toText(row.created_at),
|
|
258
|
+
updatedAt: toText(row.updated_at),
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
function parseAuditEvent(row) {
|
|
262
|
+
return {
|
|
263
|
+
id: toText(row.id),
|
|
264
|
+
agentId: toText(row.agent_id),
|
|
265
|
+
eventType: toText(row.event_type),
|
|
266
|
+
ownerType: toText(row.owner_type),
|
|
267
|
+
ownerId: toText(row.owner_id),
|
|
268
|
+
reason: toText(row.reason),
|
|
269
|
+
inputs: parseJsonRecord(row.inputs_json),
|
|
270
|
+
decision: parseJsonRecord(row.decision_json),
|
|
271
|
+
actor: toText(row.actor),
|
|
272
|
+
createdAt: toText(row.created_at),
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
function parseSubscriptionAudit(row) {
|
|
276
|
+
return {
|
|
277
|
+
id: toText(row.id),
|
|
278
|
+
agentId: toText(row.agent_id),
|
|
279
|
+
source: toText(row.source, "gmail"),
|
|
280
|
+
queryWindowDays: toNumber(row.query_window_days, 180),
|
|
281
|
+
status: toText(row.status, "completed"),
|
|
282
|
+
totalCandidates: toNumber(row.total_candidates, 0),
|
|
283
|
+
activeCandidates: toNumber(row.active_candidates, 0),
|
|
284
|
+
canceledCandidates: toNumber(row.canceled_candidates, 0),
|
|
285
|
+
uncertainCandidates: toNumber(row.uncertain_candidates, 0),
|
|
286
|
+
summary: toText(row.summary),
|
|
287
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
288
|
+
createdAt: toText(row.created_at),
|
|
289
|
+
updatedAt: toText(row.updated_at),
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
function parseSubscriptionCandidate(row) {
|
|
293
|
+
return {
|
|
294
|
+
id: toText(row.id),
|
|
295
|
+
agentId: toText(row.agent_id),
|
|
296
|
+
auditId: toText(row.audit_id),
|
|
297
|
+
serviceSlug: toText(row.service_slug),
|
|
298
|
+
serviceName: toText(row.service_name),
|
|
299
|
+
provider: toText(row.provider),
|
|
300
|
+
cadence: toText(row.cadence, "unknown"),
|
|
301
|
+
state: toText(row.state, "uncertain"),
|
|
302
|
+
confidence: toNumber(row.confidence, 0),
|
|
303
|
+
annualCostEstimateUsd: row.annual_cost_estimate_usd === null ||
|
|
304
|
+
row.annual_cost_estimate_usd === undefined
|
|
305
|
+
? null
|
|
306
|
+
: toNumber(row.annual_cost_estimate_usd, 0),
|
|
307
|
+
managementUrl: row.management_url ? toText(row.management_url) : null,
|
|
308
|
+
latestEvidenceAt: row.latest_evidence_at
|
|
309
|
+
? toText(row.latest_evidence_at)
|
|
310
|
+
: null,
|
|
311
|
+
evidenceJson: parseJsonArray(row.evidence_json),
|
|
312
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
313
|
+
createdAt: toText(row.created_at),
|
|
314
|
+
updatedAt: toText(row.updated_at),
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
function parseSubscriptionCancellation(row) {
|
|
318
|
+
return {
|
|
319
|
+
id: toText(row.id),
|
|
320
|
+
agentId: toText(row.agent_id),
|
|
321
|
+
auditId: row.audit_id ? toText(row.audit_id) : null,
|
|
322
|
+
candidateId: row.candidate_id ? toText(row.candidate_id) : null,
|
|
323
|
+
serviceSlug: toText(row.service_slug),
|
|
324
|
+
serviceName: toText(row.service_name),
|
|
325
|
+
executor: toText(row.executor, "agent_browser"),
|
|
326
|
+
status: toText(row.status, "draft"),
|
|
327
|
+
confirmed: toBoolean(row.confirmed),
|
|
328
|
+
currentStep: row.current_step ? toText(row.current_step) : null,
|
|
329
|
+
browserSessionId: row.browser_session_id
|
|
330
|
+
? toText(row.browser_session_id)
|
|
331
|
+
: null,
|
|
332
|
+
evidenceSummary: row.evidence_summary ? toText(row.evidence_summary) : null,
|
|
333
|
+
artifactCount: toNumber(row.artifact_count, 0),
|
|
334
|
+
managementUrl: row.management_url ? toText(row.management_url) : null,
|
|
335
|
+
error: row.error ? toText(row.error) : null,
|
|
336
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
337
|
+
createdAt: toText(row.created_at),
|
|
338
|
+
updatedAt: toText(row.updated_at),
|
|
339
|
+
finishedAt: row.finished_at ? toText(row.finished_at) : null,
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
function parsePaymentSource(row) {
|
|
343
|
+
return {
|
|
344
|
+
id: toText(row.id),
|
|
345
|
+
agentId: toText(row.agent_id),
|
|
346
|
+
kind: toText(row.kind, "manual"),
|
|
347
|
+
label: toText(row.label),
|
|
348
|
+
institution: row.institution ? toText(row.institution) : null,
|
|
349
|
+
accountMask: row.account_mask ? toText(row.account_mask) : null,
|
|
350
|
+
status: toText(row.status, "active"),
|
|
351
|
+
lastSyncedAt: row.last_synced_at ? toText(row.last_synced_at) : null,
|
|
352
|
+
transactionCount: toNumber(row.transaction_count, 0),
|
|
353
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
354
|
+
createdAt: toText(row.created_at),
|
|
355
|
+
updatedAt: toText(row.updated_at),
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
function parsePaymentTransaction(row) {
|
|
359
|
+
return {
|
|
360
|
+
id: toText(row.id),
|
|
361
|
+
agentId: toText(row.agent_id),
|
|
362
|
+
sourceId: toText(row.source_id),
|
|
363
|
+
externalId: row.external_id ? toText(row.external_id) : null,
|
|
364
|
+
postedAt: toText(row.posted_at),
|
|
365
|
+
amountUsd: toNumber(row.amount_usd, 0),
|
|
366
|
+
direction: toText(row.direction, "debit"),
|
|
367
|
+
merchantRaw: toText(row.merchant_raw),
|
|
368
|
+
merchantNormalized: toText(row.merchant_normalized),
|
|
369
|
+
description: row.description ? toText(row.description) : null,
|
|
370
|
+
category: row.category ? toText(row.category) : null,
|
|
371
|
+
currency: toText(row.currency, "USD"),
|
|
372
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
373
|
+
createdAt: toText(row.created_at),
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
function parseEmailUnsubscribe(row) {
|
|
377
|
+
return {
|
|
378
|
+
id: toText(row.id),
|
|
379
|
+
agentId: toText(row.agent_id),
|
|
380
|
+
senderEmail: toText(row.sender_email),
|
|
381
|
+
senderDisplay: toText(row.sender_display),
|
|
382
|
+
senderDomain: row.sender_domain ? toText(row.sender_domain) : null,
|
|
383
|
+
listId: row.list_id ? toText(row.list_id) : null,
|
|
384
|
+
method: toText(row.method, "manual_only"),
|
|
385
|
+
status: toText(row.status, "failed"),
|
|
386
|
+
httpStatusCode: row.http_status_code === null || row.http_status_code === undefined
|
|
387
|
+
? null
|
|
388
|
+
: toNumber(row.http_status_code, 0),
|
|
389
|
+
httpFinalUrl: row.http_final_url ? toText(row.http_final_url) : null,
|
|
390
|
+
filterCreated: toBoolean(row.filter_created),
|
|
391
|
+
filterId: row.filter_id ? toText(row.filter_id) : null,
|
|
392
|
+
threadsTrashed: toNumber(row.threads_trashed, 0),
|
|
393
|
+
errorMessage: row.error_message ? toText(row.error_message) : null,
|
|
394
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
395
|
+
createdAt: toText(row.created_at),
|
|
396
|
+
updatedAt: toText(row.updated_at),
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
function parseOptionalFiniteNumber(value) {
|
|
400
|
+
if (typeof value === "number" && Number.isFinite(value)) {
|
|
401
|
+
return value;
|
|
402
|
+
}
|
|
403
|
+
if (typeof value === "string" && value.trim().length > 0) {
|
|
404
|
+
const parsed = Number(value);
|
|
405
|
+
if (Number.isFinite(parsed)) {
|
|
406
|
+
return parsed;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
return null;
|
|
410
|
+
}
|
|
411
|
+
function parseHealthSignal(value) {
|
|
412
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
413
|
+
return null;
|
|
414
|
+
}
|
|
415
|
+
const record = value;
|
|
416
|
+
const sleepRecord = record.sleep &&
|
|
417
|
+
typeof record.sleep === "object" &&
|
|
418
|
+
!Array.isArray(record.sleep)
|
|
419
|
+
? record.sleep
|
|
420
|
+
: null;
|
|
421
|
+
const biometricsRecord = record.biometrics &&
|
|
422
|
+
typeof record.biometrics === "object" &&
|
|
423
|
+
!Array.isArray(record.biometrics)
|
|
424
|
+
? record.biometrics
|
|
425
|
+
: null;
|
|
426
|
+
const permissionsRecord = record.permissions &&
|
|
427
|
+
typeof record.permissions === "object" &&
|
|
428
|
+
!Array.isArray(record.permissions)
|
|
429
|
+
? record.permissions
|
|
430
|
+
: null;
|
|
431
|
+
return {
|
|
432
|
+
source: toText(record.source, "healthkit") === "health_connect"
|
|
433
|
+
? "health_connect"
|
|
434
|
+
: "healthkit",
|
|
435
|
+
permissions: {
|
|
436
|
+
sleep: toBoolean(permissionsRecord?.sleep ?? false),
|
|
437
|
+
biometrics: toBoolean(permissionsRecord?.biometrics ?? false),
|
|
438
|
+
},
|
|
439
|
+
sleep: {
|
|
440
|
+
available: toBoolean(sleepRecord?.available ?? false),
|
|
441
|
+
isSleeping: toBoolean(sleepRecord?.isSleeping ?? false),
|
|
442
|
+
asleepAt: sleepRecord?.asleepAt ? toText(sleepRecord.asleepAt) : null,
|
|
443
|
+
awakeAt: sleepRecord?.awakeAt ? toText(sleepRecord.awakeAt) : null,
|
|
444
|
+
durationMinutes: parseOptionalFiniteNumber(sleepRecord?.durationMinutes),
|
|
445
|
+
stage: sleepRecord?.stage ? toText(sleepRecord.stage) : null,
|
|
446
|
+
},
|
|
447
|
+
biometrics: {
|
|
448
|
+
sampleAt: biometricsRecord?.sampleAt
|
|
449
|
+
? toText(biometricsRecord.sampleAt)
|
|
450
|
+
: null,
|
|
451
|
+
heartRateBpm: parseOptionalFiniteNumber(biometricsRecord?.heartRateBpm),
|
|
452
|
+
restingHeartRateBpm: parseOptionalFiniteNumber(biometricsRecord?.restingHeartRateBpm),
|
|
453
|
+
heartRateVariabilityMs: parseOptionalFiniteNumber(biometricsRecord?.heartRateVariabilityMs),
|
|
454
|
+
respiratoryRate: parseOptionalFiniteNumber(biometricsRecord?.respiratoryRate),
|
|
455
|
+
bloodOxygenPercent: parseOptionalFiniteNumber(biometricsRecord?.bloodOxygenPercent),
|
|
456
|
+
},
|
|
457
|
+
warnings: Array.isArray(record.warnings)
|
|
458
|
+
? record.warnings
|
|
459
|
+
.map((warning) => toText(warning))
|
|
460
|
+
.filter((warning) => warning.length > 0)
|
|
461
|
+
: [],
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
function parseActivitySignal(row) {
|
|
465
|
+
const metadata = parseJsonRecord(row.metadata_json);
|
|
466
|
+
return {
|
|
467
|
+
id: toText(row.id),
|
|
468
|
+
agentId: toText(row.agent_id),
|
|
469
|
+
source: toText(row.source),
|
|
470
|
+
platform: toText(row.platform),
|
|
471
|
+
state: toText(row.state),
|
|
472
|
+
observedAt: toText(row.observed_at),
|
|
473
|
+
idleState: row.idle_state
|
|
474
|
+
? toText(row.idle_state)
|
|
475
|
+
: null,
|
|
476
|
+
idleTimeSeconds: row.idle_time_seconds === null || row.idle_time_seconds === undefined
|
|
477
|
+
? null
|
|
478
|
+
: toNumber(row.idle_time_seconds, 0),
|
|
479
|
+
onBattery: row.on_battery === null || row.on_battery === undefined
|
|
480
|
+
? null
|
|
481
|
+
: toBoolean(row.on_battery),
|
|
482
|
+
health: parseHealthSignal(metadata.health),
|
|
483
|
+
metadata,
|
|
484
|
+
createdAt: toText(row.created_at),
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
function parseCalendarEvent(row) {
|
|
488
|
+
return {
|
|
489
|
+
id: toText(row.id),
|
|
490
|
+
externalId: toText(row.external_event_id),
|
|
491
|
+
agentId: toText(row.agent_id),
|
|
492
|
+
provider: "google",
|
|
493
|
+
side: toText(row.side, "owner"),
|
|
494
|
+
calendarId: toText(row.calendar_id),
|
|
495
|
+
title: toText(row.title),
|
|
496
|
+
description: toText(row.description),
|
|
497
|
+
location: toText(row.location),
|
|
498
|
+
status: toText(row.status),
|
|
499
|
+
startAt: toText(row.start_at),
|
|
500
|
+
endAt: toText(row.end_at),
|
|
501
|
+
isAllDay: toBoolean(row.is_all_day),
|
|
502
|
+
timezone: row.timezone ? toText(row.timezone) : null,
|
|
503
|
+
htmlLink: row.html_link ? toText(row.html_link) : null,
|
|
504
|
+
conferenceLink: row.conference_link ? toText(row.conference_link) : null,
|
|
505
|
+
organizer: row.organizer_json ? parseJsonRecord(row.organizer_json) : null,
|
|
506
|
+
attendees: parseJsonArray(row.attendees_json),
|
|
507
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
508
|
+
syncedAt: toText(row.synced_at),
|
|
509
|
+
updatedAt: toText(row.updated_at),
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
function parseGmailMessageSummary(row) {
|
|
513
|
+
return {
|
|
514
|
+
id: toText(row.id),
|
|
515
|
+
externalId: toText(row.external_message_id),
|
|
516
|
+
agentId: toText(row.agent_id),
|
|
517
|
+
provider: "google",
|
|
518
|
+
side: toText(row.side, "owner"),
|
|
519
|
+
threadId: toText(row.thread_id),
|
|
520
|
+
subject: toText(row.subject),
|
|
521
|
+
from: toText(row.from_display),
|
|
522
|
+
fromEmail: row.from_email ? toText(row.from_email) : null,
|
|
523
|
+
replyTo: row.reply_to ? toText(row.reply_to) : null,
|
|
524
|
+
to: parseJsonArray(row.to_json),
|
|
525
|
+
cc: parseJsonArray(row.cc_json),
|
|
526
|
+
snippet: toText(row.snippet),
|
|
527
|
+
receivedAt: toText(row.received_at),
|
|
528
|
+
isUnread: toBoolean(row.is_unread),
|
|
529
|
+
isImportant: toBoolean(row.is_important),
|
|
530
|
+
likelyReplyNeeded: toBoolean(row.likely_reply_needed),
|
|
531
|
+
triageScore: toNumber(row.triage_score),
|
|
532
|
+
triageReason: toText(row.triage_reason),
|
|
533
|
+
labels: parseJsonArray(row.label_ids_json),
|
|
534
|
+
htmlLink: row.html_link ? toText(row.html_link) : null,
|
|
535
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
536
|
+
syncedAt: toText(row.synced_at),
|
|
537
|
+
updatedAt: toText(row.updated_at),
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
function parseCachedInboxMessage(row) {
|
|
541
|
+
const channel = toText(row.channel);
|
|
542
|
+
const externalId = toText(row.external_id);
|
|
543
|
+
const priorityScore = row.priority_score === null || row.priority_score === undefined
|
|
544
|
+
? undefined
|
|
545
|
+
: toNumber(row.priority_score);
|
|
546
|
+
const priorityCategory = row.priority_category === null || row.priority_category === undefined
|
|
547
|
+
? undefined
|
|
548
|
+
: toText(row.priority_category);
|
|
549
|
+
const participantCount = row.participant_count === null || row.participant_count === undefined
|
|
550
|
+
? undefined
|
|
551
|
+
: toNumber(row.participant_count);
|
|
552
|
+
const sourceRef = parseJsonRecord(row.source_ref_json);
|
|
553
|
+
const flags = parseJsonArray(row.priority_flags_json).filter((flag) => typeof flag === "string");
|
|
554
|
+
return {
|
|
555
|
+
id: toText(row.id),
|
|
556
|
+
channel,
|
|
557
|
+
sender: {
|
|
558
|
+
id: toText(row.sender_id),
|
|
559
|
+
displayName: toText(row.sender_display),
|
|
560
|
+
email: row.sender_email ? toText(row.sender_email) : null,
|
|
561
|
+
avatarUrl: null,
|
|
562
|
+
},
|
|
563
|
+
subject: row.subject ? toText(row.subject) : null,
|
|
564
|
+
snippet: toText(row.snippet),
|
|
565
|
+
receivedAt: toText(row.received_at),
|
|
566
|
+
unread: toBoolean(row.is_unread),
|
|
567
|
+
deepLink: row.deep_link ? toText(row.deep_link) : null,
|
|
568
|
+
sourceRef: {
|
|
569
|
+
channel: typeof sourceRef.channel === "string"
|
|
570
|
+
? sourceRef.channel
|
|
571
|
+
: channel,
|
|
572
|
+
externalId: typeof sourceRef.externalId === "string"
|
|
573
|
+
? sourceRef.externalId
|
|
574
|
+
: externalId,
|
|
575
|
+
},
|
|
576
|
+
threadId: row.thread_id ? toText(row.thread_id) : undefined,
|
|
577
|
+
chatType: toText(row.chat_type, "dm"),
|
|
578
|
+
participantCount,
|
|
579
|
+
gmailAccountId: row.gmail_account_id
|
|
580
|
+
? toText(row.gmail_account_id)
|
|
581
|
+
: undefined,
|
|
582
|
+
gmailAccountEmail: row.gmail_account_email
|
|
583
|
+
? toText(row.gmail_account_email)
|
|
584
|
+
: undefined,
|
|
585
|
+
priorityScore,
|
|
586
|
+
priorityCategory: priorityCategory,
|
|
587
|
+
cachedAt: toText(row.cached_at),
|
|
588
|
+
updatedAt: toText(row.updated_at),
|
|
589
|
+
priorityFlags: flags,
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
function parseGmailSpamReviewItem(row) {
|
|
593
|
+
return {
|
|
594
|
+
id: toText(row.id),
|
|
595
|
+
agentId: toText(row.agent_id),
|
|
596
|
+
provider: "google",
|
|
597
|
+
side: toText(row.side, "owner"),
|
|
598
|
+
grantId: toText(row.grant_id),
|
|
599
|
+
accountEmail: row.account_email ? toText(row.account_email) : null,
|
|
600
|
+
messageId: toText(row.message_id),
|
|
601
|
+
externalMessageId: toText(row.external_message_id),
|
|
602
|
+
threadId: toText(row.thread_id),
|
|
603
|
+
subject: toText(row.subject),
|
|
604
|
+
from: toText(row.from_display),
|
|
605
|
+
fromEmail: row.from_email ? toText(row.from_email) : null,
|
|
606
|
+
receivedAt: toText(row.received_at),
|
|
607
|
+
snippet: toText(row.snippet),
|
|
608
|
+
labels: parseJsonArray(row.label_ids_json),
|
|
609
|
+
rationale: toText(row.rationale),
|
|
610
|
+
confidence: toNumber(row.confidence),
|
|
611
|
+
status: toText(row.status, "pending"),
|
|
612
|
+
createdAt: toText(row.created_at),
|
|
613
|
+
updatedAt: toText(row.updated_at),
|
|
614
|
+
reviewedAt: row.reviewed_at ? toText(row.reviewed_at) : null,
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
function parseWorkflowDefinition(row) {
|
|
618
|
+
return {
|
|
619
|
+
id: toText(row.id),
|
|
620
|
+
agentId: toText(row.agent_id),
|
|
621
|
+
...parseOwnershipFields(row),
|
|
622
|
+
title: toText(row.title),
|
|
623
|
+
triggerType: toText(row.trigger_type),
|
|
624
|
+
schedule: parseJsonRecord(row.schedule_json),
|
|
625
|
+
actionPlan: parseJsonRecord(row.action_plan_json),
|
|
626
|
+
permissionPolicy: parseJsonRecord(row.permission_policy_json),
|
|
627
|
+
status: toText(row.status),
|
|
628
|
+
createdBy: toText(row.created_by),
|
|
629
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
630
|
+
createdAt: toText(row.created_at),
|
|
631
|
+
updatedAt: toText(row.updated_at),
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
function parseWorkflowRun(row) {
|
|
635
|
+
return {
|
|
636
|
+
id: toText(row.id),
|
|
637
|
+
agentId: toText(row.agent_id),
|
|
638
|
+
workflowId: toText(row.workflow_id),
|
|
639
|
+
startedAt: toText(row.started_at),
|
|
640
|
+
finishedAt: row.finished_at ? toText(row.finished_at) : null,
|
|
641
|
+
status: toText(row.status),
|
|
642
|
+
result: parseJsonRecord(row.result_json),
|
|
643
|
+
auditRef: row.audit_ref ? toText(row.audit_ref) : null,
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
function parseReminderAttempt(row) {
|
|
647
|
+
return {
|
|
648
|
+
id: toText(row.id),
|
|
649
|
+
agentId: toText(row.agent_id),
|
|
650
|
+
planId: toText(row.plan_id),
|
|
651
|
+
ownerType: toText(row.owner_type),
|
|
652
|
+
ownerId: toText(row.owner_id),
|
|
653
|
+
occurrenceId: row.occurrence_id ? toText(row.occurrence_id) : null,
|
|
654
|
+
channel: toText(row.channel),
|
|
655
|
+
stepIndex: toNumber(row.step_index, 0),
|
|
656
|
+
scheduledFor: toText(row.scheduled_for),
|
|
657
|
+
attemptedAt: row.attempted_at ? toText(row.attempted_at) : null,
|
|
658
|
+
outcome: toText(row.outcome),
|
|
659
|
+
connectorRef: row.connector_ref ? toText(row.connector_ref) : null,
|
|
660
|
+
deliveryMetadata: parseJsonRecord(row.delivery_metadata_json),
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
function parseBrowserSession(row) {
|
|
664
|
+
const rawStatus = toText(row.status);
|
|
665
|
+
return {
|
|
666
|
+
id: toText(row.id),
|
|
667
|
+
agentId: toText(row.agent_id),
|
|
668
|
+
...parseOwnershipFields(row),
|
|
669
|
+
workflowId: row.workflow_id ? toText(row.workflow_id) : null,
|
|
670
|
+
browser: row.browser
|
|
671
|
+
? toText(row.browser)
|
|
672
|
+
: null,
|
|
673
|
+
companionId: row.companion_id ? toText(row.companion_id) : null,
|
|
674
|
+
profileId: row.profile_id ? toText(row.profile_id) : null,
|
|
675
|
+
windowId: row.window_id ? toText(row.window_id) : null,
|
|
676
|
+
tabId: row.tab_id ? toText(row.tab_id) : null,
|
|
677
|
+
title: toText(row.title),
|
|
678
|
+
status: rawStatus === "navigating"
|
|
679
|
+
? "running"
|
|
680
|
+
: rawStatus,
|
|
681
|
+
actions: parseJsonArray(row.actions_json),
|
|
682
|
+
currentActionIndex: toNumber(row.current_action_index, 0),
|
|
683
|
+
awaitingConfirmationForActionId: row.awaiting_confirmation_for_action_id
|
|
684
|
+
? toText(row.awaiting_confirmation_for_action_id)
|
|
685
|
+
: null,
|
|
686
|
+
result: parseJsonRecord(row.result_json),
|
|
687
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
688
|
+
createdAt: toText(row.created_at),
|
|
689
|
+
updatedAt: toText(row.updated_at),
|
|
690
|
+
finishedAt: row.finished_at ? toText(row.finished_at) : null,
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
function parseBrowserPermissionState(value) {
|
|
694
|
+
const input = parseJsonRecord(value);
|
|
695
|
+
return {
|
|
696
|
+
tabs: Boolean(input.tabs),
|
|
697
|
+
scripting: Boolean(input.scripting),
|
|
698
|
+
activeTab: Boolean(input.activeTab),
|
|
699
|
+
allOrigins: Boolean(input.allOrigins),
|
|
700
|
+
grantedOrigins: Array.isArray(input.grantedOrigins)
|
|
701
|
+
? input.grantedOrigins
|
|
702
|
+
.filter((candidate) => typeof candidate === "string")
|
|
703
|
+
.map((candidate) => candidate.trim())
|
|
704
|
+
.filter((candidate) => candidate.length > 0)
|
|
705
|
+
: [],
|
|
706
|
+
incognitoEnabled: Boolean(input.incognitoEnabled),
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
function parseBrowserSettings(row) {
|
|
710
|
+
return {
|
|
711
|
+
enabled: toBoolean(row.enabled, false),
|
|
712
|
+
trackingMode: toText(row.tracking_mode, "current_tab"),
|
|
713
|
+
allowBrowserControl: toBoolean(row.allow_browser_control, false),
|
|
714
|
+
requireConfirmationForAccountAffecting: toBoolean(row.require_confirmation_for_account_affecting, true),
|
|
715
|
+
incognitoEnabled: toBoolean(row.incognito_enabled, false),
|
|
716
|
+
siteAccessMode: toText(row.site_access_mode, "current_site_only"),
|
|
717
|
+
grantedOrigins: parseJsonArray(row.granted_origins_json).filter((candidate) => typeof candidate === "string"),
|
|
718
|
+
blockedOrigins: parseJsonArray(row.blocked_origins_json).filter((candidate) => typeof candidate === "string"),
|
|
719
|
+
maxRememberedTabs: toNumber(row.max_remembered_tabs, 10),
|
|
720
|
+
pauseUntil: row.pause_until ? toText(row.pause_until) : null,
|
|
721
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
722
|
+
updatedAt: row.updated_at ? toText(row.updated_at) : null,
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
function parseBrowserCompanion(row) {
|
|
726
|
+
return {
|
|
727
|
+
id: toText(row.id),
|
|
728
|
+
agentId: toText(row.agent_id),
|
|
729
|
+
browser: toText(row.browser),
|
|
730
|
+
profileId: toText(row.profile_id),
|
|
731
|
+
profileLabel: toText(row.profile_label),
|
|
732
|
+
label: toText(row.label),
|
|
733
|
+
extensionVersion: row.extension_version
|
|
734
|
+
? toText(row.extension_version)
|
|
735
|
+
: null,
|
|
736
|
+
connectionState: toText(row.connection_state),
|
|
737
|
+
permissions: parseBrowserPermissionState(row.permissions_json),
|
|
738
|
+
lastSeenAt: row.last_seen_at ? toText(row.last_seen_at) : null,
|
|
739
|
+
pairedAt: row.paired_at ? toText(row.paired_at) : null,
|
|
740
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
741
|
+
createdAt: toText(row.created_at),
|
|
742
|
+
updatedAt: toText(row.updated_at),
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
function parseBrowserCompanionCredential(row) {
|
|
746
|
+
return {
|
|
747
|
+
companion: parseBrowserCompanion(row),
|
|
748
|
+
pairingTokenHash: row.pairing_token_hash
|
|
749
|
+
? toText(row.pairing_token_hash)
|
|
750
|
+
: null,
|
|
751
|
+
pendingPairingTokenHashes: parseJsonArray(row.pending_pairing_token_hashes_json).filter((candidate) => typeof candidate === "string" && candidate.length > 0),
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
function parseBrowserTabSummary(row) {
|
|
755
|
+
return {
|
|
756
|
+
id: toText(row.id),
|
|
757
|
+
agentId: toText(row.agent_id),
|
|
758
|
+
companionId: row.companion_id ? toText(row.companion_id) : null,
|
|
759
|
+
browser: toText(row.browser),
|
|
760
|
+
profileId: toText(row.profile_id),
|
|
761
|
+
windowId: toText(row.window_id),
|
|
762
|
+
tabId: toText(row.tab_id),
|
|
763
|
+
url: toText(row.url),
|
|
764
|
+
title: toText(row.title),
|
|
765
|
+
activeInWindow: toBoolean(row.active_in_window, false),
|
|
766
|
+
focusedWindow: toBoolean(row.focused_window, false),
|
|
767
|
+
focusedActive: toBoolean(row.focused_active, false),
|
|
768
|
+
incognito: toBoolean(row.incognito, false),
|
|
769
|
+
faviconUrl: row.favicon_url ? toText(row.favicon_url) : null,
|
|
770
|
+
lastSeenAt: toText(row.last_seen_at),
|
|
771
|
+
lastFocusedAt: row.last_focused_at ? toText(row.last_focused_at) : null,
|
|
772
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
773
|
+
createdAt: toText(row.created_at),
|
|
774
|
+
updatedAt: toText(row.updated_at),
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
function parseBrowserPageContext(row) {
|
|
778
|
+
return {
|
|
779
|
+
id: toText(row.id),
|
|
780
|
+
agentId: toText(row.agent_id),
|
|
781
|
+
browser: toText(row.browser),
|
|
782
|
+
profileId: toText(row.profile_id),
|
|
783
|
+
windowId: toText(row.window_id),
|
|
784
|
+
tabId: toText(row.tab_id),
|
|
785
|
+
url: toText(row.url),
|
|
786
|
+
title: toText(row.title),
|
|
787
|
+
selectionText: row.selection_text ? toText(row.selection_text) : null,
|
|
788
|
+
mainText: row.main_text ? toText(row.main_text) : null,
|
|
789
|
+
headings: parseJsonArray(row.headings_json).filter((candidate) => typeof candidate === "string"),
|
|
790
|
+
links: parseJsonArray(row.links_json).filter((candidate) => (() => {
|
|
791
|
+
if (!candidate || typeof candidate !== "object") {
|
|
792
|
+
return false;
|
|
793
|
+
}
|
|
794
|
+
const record = candidate;
|
|
795
|
+
return (typeof record.href === "string" && typeof record.text === "string");
|
|
796
|
+
})()),
|
|
797
|
+
forms: parseJsonArray(row.forms_json).filter((candidate) => (() => {
|
|
798
|
+
if (!candidate || typeof candidate !== "object") {
|
|
799
|
+
return false;
|
|
800
|
+
}
|
|
801
|
+
const record = candidate;
|
|
802
|
+
return ((record.action === null ||
|
|
803
|
+
record.action === undefined ||
|
|
804
|
+
typeof record.action === "string") &&
|
|
805
|
+
Array.isArray(record.fields) &&
|
|
806
|
+
record.fields.every((field) => typeof field === "string"));
|
|
807
|
+
})()),
|
|
808
|
+
capturedAt: toText(row.captured_at),
|
|
809
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
function parseCalendarSyncState(row) {
|
|
813
|
+
return {
|
|
814
|
+
id: toText(row.id),
|
|
815
|
+
agentId: toText(row.agent_id),
|
|
816
|
+
provider: toText(row.provider),
|
|
817
|
+
side: toText(row.side, "owner"),
|
|
818
|
+
calendarId: toText(row.calendar_id),
|
|
819
|
+
windowStartAt: toText(row.window_start_at),
|
|
820
|
+
windowEndAt: toText(row.window_end_at),
|
|
821
|
+
syncedAt: toText(row.synced_at),
|
|
822
|
+
updatedAt: toText(row.updated_at),
|
|
823
|
+
};
|
|
824
|
+
}
|
|
825
|
+
function parseGmailSyncState(row) {
|
|
826
|
+
return {
|
|
827
|
+
id: toText(row.id),
|
|
828
|
+
agentId: toText(row.agent_id),
|
|
829
|
+
provider: toText(row.provider),
|
|
830
|
+
side: toText(row.side, "owner"),
|
|
831
|
+
mailbox: toText(row.mailbox),
|
|
832
|
+
maxResults: toNumber(row.max_results, 0),
|
|
833
|
+
syncedAt: toText(row.synced_at),
|
|
834
|
+
updatedAt: toText(row.updated_at),
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
function parseEscalationStateRow(row) {
|
|
838
|
+
return {
|
|
839
|
+
id: toText(row.id),
|
|
840
|
+
agentId: toText(row.agent_id),
|
|
841
|
+
reason: toText(row.reason),
|
|
842
|
+
text: toText(row.text),
|
|
843
|
+
currentStep: toNumber(row.current_step, 0),
|
|
844
|
+
channelsSent: parseJsonArray(row.channels_sent_json),
|
|
845
|
+
startedAt: toText(row.started_at),
|
|
846
|
+
lastSentAt: toText(row.last_sent_at),
|
|
847
|
+
resolved: toBoolean(row.resolved),
|
|
848
|
+
resolvedAt: row.resolved_at ? toText(row.resolved_at) : null,
|
|
849
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
850
|
+
createdAt: toText(row.created_at),
|
|
851
|
+
updatedAt: toText(row.updated_at),
|
|
852
|
+
};
|
|
853
|
+
}
|
|
854
|
+
function parseXDm(row) {
|
|
855
|
+
return {
|
|
856
|
+
id: toText(row.id),
|
|
857
|
+
agentId: toText(row.agent_id),
|
|
858
|
+
externalDmId: toText(row.external_dm_id),
|
|
859
|
+
conversationId: toText(row.conversation_id),
|
|
860
|
+
senderHandle: toText(row.sender_handle),
|
|
861
|
+
senderId: toText(row.sender_id),
|
|
862
|
+
isInbound: toBoolean(row.is_inbound),
|
|
863
|
+
text: toText(row.text),
|
|
864
|
+
receivedAt: toText(row.received_at),
|
|
865
|
+
readAt: row.read_at ? toText(row.read_at) : null,
|
|
866
|
+
repliedAt: row.replied_at ? toText(row.replied_at) : null,
|
|
867
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
868
|
+
syncedAt: toText(row.synced_at),
|
|
869
|
+
updatedAt: toText(row.updated_at),
|
|
870
|
+
};
|
|
871
|
+
}
|
|
872
|
+
function parseXFeedItem(row) {
|
|
873
|
+
return {
|
|
874
|
+
id: toText(row.id),
|
|
875
|
+
agentId: toText(row.agent_id),
|
|
876
|
+
externalTweetId: toText(row.external_tweet_id),
|
|
877
|
+
authorHandle: toText(row.author_handle),
|
|
878
|
+
authorId: toText(row.author_id),
|
|
879
|
+
text: toText(row.text),
|
|
880
|
+
createdAtSource: toText(row.created_at_source),
|
|
881
|
+
feedType: toText(row.feed_type),
|
|
882
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
883
|
+
syncedAt: toText(row.synced_at),
|
|
884
|
+
updatedAt: toText(row.updated_at),
|
|
885
|
+
};
|
|
886
|
+
}
|
|
887
|
+
function parseXSyncState(row) {
|
|
888
|
+
return {
|
|
889
|
+
id: toText(row.id),
|
|
890
|
+
agentId: toText(row.agent_id),
|
|
891
|
+
feedType: toText(row.feed_type),
|
|
892
|
+
lastCursor: row.last_cursor ? toText(row.last_cursor) : null,
|
|
893
|
+
syncedAt: toText(row.synced_at),
|
|
894
|
+
updatedAt: toText(row.updated_at),
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
function parseScreenTimeSession(row) {
|
|
898
|
+
return {
|
|
899
|
+
id: toText(row.id),
|
|
900
|
+
agentId: toText(row.agent_id),
|
|
901
|
+
source: toText(row.source),
|
|
902
|
+
identifier: toText(row.identifier),
|
|
903
|
+
displayName: toText(row.display_name, toText(row.identifier)),
|
|
904
|
+
startAt: toText(row.start_at),
|
|
905
|
+
endAt: row.end_at ? toText(row.end_at) : null,
|
|
906
|
+
durationSeconds: toNumber(row.duration_seconds, 0),
|
|
907
|
+
isActive: toBoolean(row.is_active),
|
|
908
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
909
|
+
createdAt: toText(row.created_at),
|
|
910
|
+
updatedAt: toText(row.updated_at),
|
|
911
|
+
};
|
|
912
|
+
}
|
|
913
|
+
function parseScreenTimeDaily(row) {
|
|
914
|
+
return {
|
|
915
|
+
id: toText(row.id),
|
|
916
|
+
agentId: toText(row.agent_id),
|
|
917
|
+
source: toText(row.source),
|
|
918
|
+
identifier: toText(row.identifier),
|
|
919
|
+
date: toText(row.date),
|
|
920
|
+
totalSeconds: toNumber(row.total_seconds, 0),
|
|
921
|
+
sessionCount: toNumber(row.session_count, 0),
|
|
922
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
923
|
+
createdAt: toText(row.created_at),
|
|
924
|
+
updatedAt: toText(row.updated_at),
|
|
925
|
+
};
|
|
926
|
+
}
|
|
927
|
+
function defaultAwakeProbability(computedAt) {
|
|
928
|
+
return {
|
|
929
|
+
pAwake: 0,
|
|
930
|
+
pAsleep: 0,
|
|
931
|
+
pUnknown: 1,
|
|
932
|
+
contributingSources: [],
|
|
933
|
+
computedAt,
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
function parseAwakeProbability(value, computedAt) {
|
|
937
|
+
if (value === null || value === undefined || value === "") {
|
|
938
|
+
return defaultAwakeProbability(computedAt);
|
|
939
|
+
}
|
|
940
|
+
const record = parseJsonRecord(value);
|
|
941
|
+
const contributors = Array.isArray(record.contributingSources)
|
|
942
|
+
? record.contributingSources
|
|
943
|
+
.filter((candidate) => Boolean(candidate) && typeof candidate === "object")
|
|
944
|
+
.map((candidate) => ({
|
|
945
|
+
source: toText(candidate.source),
|
|
946
|
+
logLikelihoodRatio: toNumber(candidate.logLikelihoodRatio, 0),
|
|
947
|
+
}))
|
|
948
|
+
: [];
|
|
949
|
+
return {
|
|
950
|
+
pAwake: toNumber(record.pAwake, 0),
|
|
951
|
+
pAsleep: toNumber(record.pAsleep, 0),
|
|
952
|
+
pUnknown: toNumber(record.pUnknown, 1),
|
|
953
|
+
contributingSources: contributors,
|
|
954
|
+
computedAt: toText(record.computedAt, computedAt),
|
|
955
|
+
};
|
|
956
|
+
}
|
|
957
|
+
function defaultScheduleRegularity() {
|
|
958
|
+
return {
|
|
959
|
+
sri: 0,
|
|
960
|
+
bedtimeStddevMin: 0,
|
|
961
|
+
wakeStddevMin: 0,
|
|
962
|
+
midSleepStddevMin: 0,
|
|
963
|
+
regularityClass: "insufficient_data",
|
|
964
|
+
sampleCount: 0,
|
|
965
|
+
windowDays: 28,
|
|
966
|
+
};
|
|
967
|
+
}
|
|
968
|
+
function parseScheduleRegularity(value) {
|
|
969
|
+
if (value === null || value === undefined || value === "") {
|
|
970
|
+
return defaultScheduleRegularity();
|
|
971
|
+
}
|
|
972
|
+
const record = parseJsonRecord(value);
|
|
973
|
+
return {
|
|
974
|
+
sri: toNumber(record.sri, 0),
|
|
975
|
+
bedtimeStddevMin: toNumber(record.bedtimeStddevMin, 0),
|
|
976
|
+
wakeStddevMin: toNumber(record.wakeStddevMin, 0),
|
|
977
|
+
midSleepStddevMin: toNumber(record.midSleepStddevMin, 0),
|
|
978
|
+
regularityClass: toText(record.regularityClass, "insufficient_data"),
|
|
979
|
+
sampleCount: toNumber(record.sampleCount, 0),
|
|
980
|
+
windowDays: toNumber(record.windowDays, 28),
|
|
981
|
+
};
|
|
982
|
+
}
|
|
983
|
+
function parseTelemetryEventRow(row) {
|
|
984
|
+
const payload = parseJsonRecord(row.payload_json);
|
|
985
|
+
return {
|
|
986
|
+
id: toText(row.id),
|
|
987
|
+
agentId: toText(row.agent_id),
|
|
988
|
+
family: toText(row.family),
|
|
989
|
+
occurredAt: toText(row.occurred_at),
|
|
990
|
+
ingestedAt: toText(row.ingested_at),
|
|
991
|
+
dedupeKey: toText(row.dedupe_key),
|
|
992
|
+
sourceReliability: toNumber(row.source_reliability, 0.5),
|
|
993
|
+
payload,
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
function parseCircadianStateRow(row) {
|
|
997
|
+
return {
|
|
998
|
+
agentId: toText(row.agent_id),
|
|
999
|
+
circadianState: toText(row.circadian_state),
|
|
1000
|
+
stateConfidence: toNumber(row.state_confidence, 0),
|
|
1001
|
+
uncertaintyReason: row.uncertainty_reason
|
|
1002
|
+
? toText(row.uncertainty_reason)
|
|
1003
|
+
: null,
|
|
1004
|
+
enteredAt: toText(row.entered_at),
|
|
1005
|
+
sinceSleepDetectedAt: row.since_sleep_detected_at
|
|
1006
|
+
? toText(row.since_sleep_detected_at)
|
|
1007
|
+
: null,
|
|
1008
|
+
sinceWakeObservedAt: row.since_wake_observed_at
|
|
1009
|
+
? toText(row.since_wake_observed_at)
|
|
1010
|
+
: null,
|
|
1011
|
+
sinceWakeConfirmedAt: row.since_wake_confirmed_at
|
|
1012
|
+
? toText(row.since_wake_confirmed_at)
|
|
1013
|
+
: null,
|
|
1014
|
+
evidenceRefs: parseJsonArray(row.evidence_refs_json),
|
|
1015
|
+
createdAt: toText(row.created_at),
|
|
1016
|
+
updatedAt: toText(row.updated_at),
|
|
1017
|
+
};
|
|
1018
|
+
}
|
|
1019
|
+
function parsePersonalBaseline(value) {
|
|
1020
|
+
if (value === null || value === undefined || value === "") {
|
|
1021
|
+
return null;
|
|
1022
|
+
}
|
|
1023
|
+
const record = parseJsonRecord(value);
|
|
1024
|
+
if (Object.keys(record).length === 0) {
|
|
1025
|
+
return null;
|
|
1026
|
+
}
|
|
1027
|
+
return {
|
|
1028
|
+
medianWakeLocalHour: toNumber(record.medianWakeLocalHour, 0),
|
|
1029
|
+
medianBedtimeLocalHour: toNumber(record.medianBedtimeLocalHour, 0),
|
|
1030
|
+
medianSleepDurationMin: toNumber(record.medianSleepDurationMin, 0),
|
|
1031
|
+
bedtimeStddevMin: toNumber(record.bedtimeStddevMin, 0),
|
|
1032
|
+
wakeStddevMin: toNumber(record.wakeStddevMin, 0),
|
|
1033
|
+
sampleCount: toNumber(record.sampleCount, 0),
|
|
1034
|
+
windowDays: toNumber(record.windowDays, 28),
|
|
1035
|
+
};
|
|
1036
|
+
}
|
|
1037
|
+
function parseSleepEpisode(row) {
|
|
1038
|
+
return {
|
|
1039
|
+
id: toText(row.id),
|
|
1040
|
+
agentId: toText(row.agent_id),
|
|
1041
|
+
startAt: toText(row.start_at),
|
|
1042
|
+
endAt: row.end_at ? toText(row.end_at) : null,
|
|
1043
|
+
source: toText(row.source),
|
|
1044
|
+
confidence: toNumber(row.confidence, 0),
|
|
1045
|
+
cycleType: toText(row.cycle_type, "unknown"),
|
|
1046
|
+
sealed: toBoolean(row.sealed, false),
|
|
1047
|
+
evidence: parseJsonArray(row.evidence_json),
|
|
1048
|
+
createdAt: toText(row.created_at),
|
|
1049
|
+
updatedAt: toText(row.updated_at),
|
|
1050
|
+
};
|
|
1051
|
+
}
|
|
1052
|
+
function parseScheduleObservation(row) {
|
|
1053
|
+
return {
|
|
1054
|
+
id: toText(row.id),
|
|
1055
|
+
agentId: toText(row.agent_id),
|
|
1056
|
+
origin: toText(row.origin),
|
|
1057
|
+
deviceId: toText(row.device_id),
|
|
1058
|
+
deviceKind: toText(row.device_kind),
|
|
1059
|
+
timezone: toText(row.timezone, "UTC"),
|
|
1060
|
+
observedAt: toText(row.observed_at),
|
|
1061
|
+
windowStartAt: toText(row.window_start_at),
|
|
1062
|
+
windowEndAt: row.window_end_at ? toText(row.window_end_at) : null,
|
|
1063
|
+
circadianState: toText(row.circadian_state),
|
|
1064
|
+
stateConfidence: toNumber(row.state_confidence, 0),
|
|
1065
|
+
uncertaintyReason: row.uncertainty_reason
|
|
1066
|
+
? toText(row.uncertainty_reason)
|
|
1067
|
+
: null,
|
|
1068
|
+
mealLabel: row.meal_label
|
|
1069
|
+
? toText(row.meal_label)
|
|
1070
|
+
: null,
|
|
1071
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
1072
|
+
createdAt: toText(row.created_at),
|
|
1073
|
+
updatedAt: toText(row.updated_at),
|
|
1074
|
+
};
|
|
1075
|
+
}
|
|
1076
|
+
function parseScheduleMergedState(row) {
|
|
1077
|
+
const inferredAt = toText(row.inferred_at);
|
|
1078
|
+
return refreshLifeOpsRelativeTime({
|
|
1079
|
+
id: toText(row.id),
|
|
1080
|
+
agentId: toText(row.agent_id),
|
|
1081
|
+
scope: toText(row.scope),
|
|
1082
|
+
mergedAt: toText(row.merged_at),
|
|
1083
|
+
effectiveDayKey: toText(row.effective_day_key),
|
|
1084
|
+
localDate: toText(row.local_date),
|
|
1085
|
+
timezone: toText(row.timezone, "UTC"),
|
|
1086
|
+
inferredAt,
|
|
1087
|
+
circadianState: toText(row.circadian_state, "unclear"),
|
|
1088
|
+
stateConfidence: toNumber(row.state_confidence, 0),
|
|
1089
|
+
uncertaintyReason: row.uncertainty_reason
|
|
1090
|
+
? toText(row.uncertainty_reason)
|
|
1091
|
+
: null,
|
|
1092
|
+
awakeProbability: parseAwakeProbability(row.awake_probability_json, inferredAt),
|
|
1093
|
+
regularity: parseScheduleRegularity(row.regularity_json),
|
|
1094
|
+
baseline: parsePersonalBaseline(row.baseline_json),
|
|
1095
|
+
circadianRuleFirings: parseJsonArray(row.circadian_rule_firings_json),
|
|
1096
|
+
sleepStatus: toText(row.sleep_status),
|
|
1097
|
+
sleepConfidence: toNumber(row.sleep_confidence, 0),
|
|
1098
|
+
currentSleepStartedAt: row.current_sleep_started_at
|
|
1099
|
+
? toText(row.current_sleep_started_at)
|
|
1100
|
+
: null,
|
|
1101
|
+
lastSleepStartedAt: row.last_sleep_started_at
|
|
1102
|
+
? toText(row.last_sleep_started_at)
|
|
1103
|
+
: null,
|
|
1104
|
+
lastSleepEndedAt: row.last_sleep_ended_at
|
|
1105
|
+
? toText(row.last_sleep_ended_at)
|
|
1106
|
+
: null,
|
|
1107
|
+
lastSleepDurationMinutes: row.last_sleep_duration_minutes !== null &&
|
|
1108
|
+
row.last_sleep_duration_minutes !== undefined &&
|
|
1109
|
+
row.last_sleep_duration_minutes !== ""
|
|
1110
|
+
? toNumber(row.last_sleep_duration_minutes, 0)
|
|
1111
|
+
: null,
|
|
1112
|
+
wakeAt: row.wake_at ? toText(row.wake_at) : null,
|
|
1113
|
+
firstActiveAt: row.first_active_at ? toText(row.first_active_at) : null,
|
|
1114
|
+
lastActiveAt: row.last_active_at ? toText(row.last_active_at) : null,
|
|
1115
|
+
meals: parseJsonArray(row.meals_json),
|
|
1116
|
+
lastMealAt: row.last_meal_at ? toText(row.last_meal_at) : null,
|
|
1117
|
+
nextMealLabel: row.next_meal_label
|
|
1118
|
+
? toText(row.next_meal_label)
|
|
1119
|
+
: null,
|
|
1120
|
+
nextMealWindowStartAt: row.next_meal_window_start_at
|
|
1121
|
+
? toText(row.next_meal_window_start_at)
|
|
1122
|
+
: null,
|
|
1123
|
+
nextMealWindowEndAt: row.next_meal_window_end_at
|
|
1124
|
+
? toText(row.next_meal_window_end_at)
|
|
1125
|
+
: null,
|
|
1126
|
+
nextMealConfidence: toNumber(row.next_meal_confidence, 0),
|
|
1127
|
+
observationCount: toNumber(row.observation_count, 0),
|
|
1128
|
+
deviceCount: toNumber(row.device_count, 0),
|
|
1129
|
+
contributingDeviceKinds: parseJsonArray(row.contributing_device_kinds_json),
|
|
1130
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
1131
|
+
createdAt: toText(row.created_at),
|
|
1132
|
+
updatedAt: toText(row.updated_at),
|
|
1133
|
+
}, new Date(toText(row.inferred_at, toText(row.updated_at))));
|
|
1134
|
+
}
|
|
1135
|
+
function parseSchedulingNegotiation(row) {
|
|
1136
|
+
return {
|
|
1137
|
+
id: toText(row.id),
|
|
1138
|
+
agentId: toText(row.agent_id),
|
|
1139
|
+
subject: toText(row.subject),
|
|
1140
|
+
relationshipId: row.relationship_id ? toText(row.relationship_id) : null,
|
|
1141
|
+
durationMinutes: toNumber(row.duration_minutes, 0),
|
|
1142
|
+
timezone: toText(row.timezone, "UTC"),
|
|
1143
|
+
state: toText(row.state, "initiated"),
|
|
1144
|
+
acceptedProposalId: row.accepted_proposal_id
|
|
1145
|
+
? toText(row.accepted_proposal_id)
|
|
1146
|
+
: null,
|
|
1147
|
+
startedAt: toText(row.started_at),
|
|
1148
|
+
finalizedAt: row.finalized_at ? toText(row.finalized_at) : null,
|
|
1149
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
1150
|
+
createdAt: toText(row.created_at),
|
|
1151
|
+
updatedAt: toText(row.updated_at),
|
|
1152
|
+
};
|
|
1153
|
+
}
|
|
1154
|
+
function parseSchedulingProposal(row) {
|
|
1155
|
+
return {
|
|
1156
|
+
id: toText(row.id),
|
|
1157
|
+
agentId: toText(row.agent_id),
|
|
1158
|
+
negotiationId: toText(row.negotiation_id),
|
|
1159
|
+
startAt: toText(row.start_at),
|
|
1160
|
+
endAt: toText(row.end_at),
|
|
1161
|
+
proposedBy: toText(row.proposed_by, "agent"),
|
|
1162
|
+
status: toText(row.status, "pending"),
|
|
1163
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
1164
|
+
createdAt: toText(row.created_at),
|
|
1165
|
+
updatedAt: toText(row.updated_at),
|
|
1166
|
+
};
|
|
1167
|
+
}
|
|
1168
|
+
function parseDossier(row) {
|
|
1169
|
+
const rawSources = parseJsonArray(row.sources_json);
|
|
1170
|
+
const sources = rawSources
|
|
1171
|
+
.filter((s) => !!s && typeof s === "object")
|
|
1172
|
+
.map((s) => ({
|
|
1173
|
+
kind: toText(s.kind),
|
|
1174
|
+
ref: toText(s.ref),
|
|
1175
|
+
...(typeof s.snippet === "string" && s.snippet.length > 0
|
|
1176
|
+
? { snippet: s.snippet }
|
|
1177
|
+
: {}),
|
|
1178
|
+
}));
|
|
1179
|
+
return {
|
|
1180
|
+
id: toText(row.id),
|
|
1181
|
+
agentId: toText(row.agent_id),
|
|
1182
|
+
calendarEventId: row.calendar_event_id
|
|
1183
|
+
? toText(row.calendar_event_id)
|
|
1184
|
+
: null,
|
|
1185
|
+
subject: toText(row.subject),
|
|
1186
|
+
generatedForAt: toText(row.generated_for_at),
|
|
1187
|
+
contentMd: toText(row.content_md, ""),
|
|
1188
|
+
sources,
|
|
1189
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
1190
|
+
createdAt: toText(row.created_at),
|
|
1191
|
+
updatedAt: toText(row.updated_at),
|
|
1192
|
+
};
|
|
1193
|
+
}
|
|
1194
|
+
function isMissingInboxCacheTableError(error) {
|
|
1195
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
1196
|
+
return /no such table: life_inbox_messages|relation ["']?life_inbox_messages["']? does not exist|undefined table/i.test(message);
|
|
1197
|
+
}
|
|
1198
|
+
export class LifeOpsRepository {
|
|
1199
|
+
runtime;
|
|
1200
|
+
/**
|
|
1201
|
+
* Per-agent counter for telemetry-mirror failures inside
|
|
1202
|
+
* {@link createActivitySignal}. The live signal insert is the primary
|
|
1203
|
+
* source of truth; mirror failures must not block persistence, but we
|
|
1204
|
+
* still want visibility when the mirror is broken. First failure logs,
|
|
1205
|
+
* then we throttle to once every 100 failures so a broken backend
|
|
1206
|
+
* doesn't flood logs.
|
|
1207
|
+
*/
|
|
1208
|
+
static telemetryMirrorFailures = new Map();
|
|
1209
|
+
constructor(runtime) {
|
|
1210
|
+
this.runtime = runtime;
|
|
1211
|
+
}
|
|
1212
|
+
/**
|
|
1213
|
+
* Ensure the LifeOps plugin schema has been migrated for this runtime.
|
|
1214
|
+
* Legacy callers still use this entrypoint in tests and seed helpers, but
|
|
1215
|
+
* those callers do not always construct a runtime with the LifeOps plugin
|
|
1216
|
+
* registered. Run this plugin's schema directly so the contract is stable.
|
|
1217
|
+
*/
|
|
1218
|
+
static async bootstrapSchema(runtime) {
|
|
1219
|
+
const adapter = runtime.adapter;
|
|
1220
|
+
if (!adapter || typeof adapter.runPluginMigrations !== "function") {
|
|
1221
|
+
return;
|
|
1222
|
+
}
|
|
1223
|
+
if (typeof adapter.isReady === "function" && !(await adapter.isReady())) {
|
|
1224
|
+
return;
|
|
1225
|
+
}
|
|
1226
|
+
await adapter.runPluginMigrations([
|
|
1227
|
+
{
|
|
1228
|
+
name: "@elizaos/plugin-browser-bridge",
|
|
1229
|
+
schema: browserBridgeSchema,
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
name: "@elizaos/app-lifeops",
|
|
1233
|
+
schema: lifeOpsSchema,
|
|
1234
|
+
},
|
|
1235
|
+
], {
|
|
1236
|
+
verbose: process.env.NODE_ENV !== "production",
|
|
1237
|
+
force: process.env.ELIZA_ALLOW_DESTRUCTIVE_MIGRATIONS === "true",
|
|
1238
|
+
dryRun: false,
|
|
1239
|
+
});
|
|
1240
|
+
await LifeOpsRepository.ensureInboxCacheIndexes(runtime);
|
|
1241
|
+
}
|
|
1242
|
+
static async ensureInboxCacheIndexes(runtime) {
|
|
1243
|
+
try {
|
|
1244
|
+
await executeRawSql(runtime, "SELECT 1 FROM life_inbox_messages WHERE 1=0");
|
|
1245
|
+
}
|
|
1246
|
+
catch (error) {
|
|
1247
|
+
if (isMissingInboxCacheTableError(error)) {
|
|
1248
|
+
return;
|
|
1249
|
+
}
|
|
1250
|
+
throw error;
|
|
1251
|
+
}
|
|
1252
|
+
await executeRawSql(runtime, `DELETE FROM life_inbox_messages
|
|
1253
|
+
WHERE id IN (
|
|
1254
|
+
SELECT id
|
|
1255
|
+
FROM (
|
|
1256
|
+
SELECT id,
|
|
1257
|
+
ROW_NUMBER() OVER (
|
|
1258
|
+
PARTITION BY agent_id, channel, external_id
|
|
1259
|
+
ORDER BY updated_at DESC, cached_at DESC, id DESC
|
|
1260
|
+
) AS row_number
|
|
1261
|
+
FROM life_inbox_messages
|
|
1262
|
+
) ranked
|
|
1263
|
+
WHERE row_number > 1
|
|
1264
|
+
)`);
|
|
1265
|
+
await executeRawSql(runtime, `CREATE UNIQUE INDEX IF NOT EXISTS idx_life_inbox_messages_agent_channel_external
|
|
1266
|
+
ON life_inbox_messages (agent_id, channel, external_id)`);
|
|
1267
|
+
}
|
|
1268
|
+
async createDefinition(definition) {
|
|
1269
|
+
await executeRawSql(this.runtime, `INSERT INTO life_task_definitions (
|
|
1270
|
+
id, agent_id, domain, subject_type, subject_id, visibility_scope,
|
|
1271
|
+
context_policy, kind, title, description, original_intent, timezone,
|
|
1272
|
+
status, priority, cadence_json, window_policy_json,
|
|
1273
|
+
progression_rule_json, website_access_json, reminder_plan_id, goal_id, source,
|
|
1274
|
+
metadata_json, created_at, updated_at
|
|
1275
|
+
) VALUES (
|
|
1276
|
+
${sqlQuote(definition.id)},
|
|
1277
|
+
${sqlQuote(definition.agentId)},
|
|
1278
|
+
${sqlQuote(definition.domain)},
|
|
1279
|
+
${sqlQuote(definition.subjectType)},
|
|
1280
|
+
${sqlQuote(definition.subjectId)},
|
|
1281
|
+
${sqlQuote(definition.visibilityScope)},
|
|
1282
|
+
${sqlQuote(definition.contextPolicy)},
|
|
1283
|
+
${sqlQuote(definition.kind)},
|
|
1284
|
+
${sqlQuote(definition.title)},
|
|
1285
|
+
${sqlQuote(definition.description)},
|
|
1286
|
+
${sqlQuote(definition.originalIntent)},
|
|
1287
|
+
${sqlQuote(definition.timezone)},
|
|
1288
|
+
${sqlQuote(definition.status)},
|
|
1289
|
+
${sqlInteger(definition.priority)},
|
|
1290
|
+
${sqlJson(definition.cadence)},
|
|
1291
|
+
${sqlJson(definition.windowPolicy)},
|
|
1292
|
+
${sqlJson(definition.progressionRule)},
|
|
1293
|
+
${sqlText(definition.websiteAccess
|
|
1294
|
+
? JSON.stringify(definition.websiteAccess)
|
|
1295
|
+
: null)},
|
|
1296
|
+
${sqlText(definition.reminderPlanId)},
|
|
1297
|
+
${sqlText(definition.goalId)},
|
|
1298
|
+
${sqlQuote(definition.source)},
|
|
1299
|
+
${sqlJson(definition.metadata)},
|
|
1300
|
+
${sqlQuote(definition.createdAt)},
|
|
1301
|
+
${sqlQuote(definition.updatedAt)}
|
|
1302
|
+
)`);
|
|
1303
|
+
}
|
|
1304
|
+
async updateDefinition(definition) {
|
|
1305
|
+
await executeRawSql(this.runtime, `UPDATE life_task_definitions
|
|
1306
|
+
SET domain = ${sqlQuote(definition.domain)},
|
|
1307
|
+
subject_type = ${sqlQuote(definition.subjectType)},
|
|
1308
|
+
subject_id = ${sqlQuote(definition.subjectId)},
|
|
1309
|
+
visibility_scope = ${sqlQuote(definition.visibilityScope)},
|
|
1310
|
+
context_policy = ${sqlQuote(definition.contextPolicy)},
|
|
1311
|
+
title = ${sqlQuote(definition.title)},
|
|
1312
|
+
description = ${sqlQuote(definition.description)},
|
|
1313
|
+
original_intent = ${sqlQuote(definition.originalIntent)},
|
|
1314
|
+
timezone = ${sqlQuote(definition.timezone)},
|
|
1315
|
+
status = ${sqlQuote(definition.status)},
|
|
1316
|
+
priority = ${sqlInteger(definition.priority)},
|
|
1317
|
+
cadence_json = ${sqlJson(definition.cadence)},
|
|
1318
|
+
window_policy_json = ${sqlJson(definition.windowPolicy)},
|
|
1319
|
+
progression_rule_json = ${sqlJson(definition.progressionRule)},
|
|
1320
|
+
website_access_json = ${sqlText(definition.websiteAccess
|
|
1321
|
+
? JSON.stringify(definition.websiteAccess)
|
|
1322
|
+
: null)},
|
|
1323
|
+
reminder_plan_id = ${sqlText(definition.reminderPlanId)},
|
|
1324
|
+
goal_id = ${sqlText(definition.goalId)},
|
|
1325
|
+
source = ${sqlQuote(definition.source)},
|
|
1326
|
+
metadata_json = ${sqlJson(definition.metadata)},
|
|
1327
|
+
updated_at = ${sqlQuote(definition.updatedAt)}
|
|
1328
|
+
WHERE id = ${sqlQuote(definition.id)}
|
|
1329
|
+
AND agent_id = ${sqlQuote(definition.agentId)}`);
|
|
1330
|
+
}
|
|
1331
|
+
async getDefinition(agentId, definitionId) {
|
|
1332
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1333
|
+
FROM life_task_definitions
|
|
1334
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1335
|
+
AND id = ${sqlQuote(definitionId)}
|
|
1336
|
+
LIMIT 1`);
|
|
1337
|
+
const row = rows[0];
|
|
1338
|
+
return row ? parseTaskDefinition(row) : null;
|
|
1339
|
+
}
|
|
1340
|
+
async listDefinitions(agentId) {
|
|
1341
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1342
|
+
FROM life_task_definitions
|
|
1343
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1344
|
+
ORDER BY created_at ASC`);
|
|
1345
|
+
return rows.map(parseTaskDefinition);
|
|
1346
|
+
}
|
|
1347
|
+
async listActiveDefinitions(agentId) {
|
|
1348
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1349
|
+
FROM life_task_definitions
|
|
1350
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1351
|
+
AND status = 'active'
|
|
1352
|
+
ORDER BY created_at ASC`);
|
|
1353
|
+
return rows.map(parseTaskDefinition);
|
|
1354
|
+
}
|
|
1355
|
+
async deleteDefinition(agentId, definitionId) {
|
|
1356
|
+
await executeRawSql(this.runtime, `DELETE FROM life_reminder_plans
|
|
1357
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1358
|
+
AND owner_type = 'definition'
|
|
1359
|
+
AND owner_id = ${sqlQuote(definitionId)}`);
|
|
1360
|
+
await executeRawSql(this.runtime, `DELETE FROM life_goal_links
|
|
1361
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1362
|
+
AND linked_type = 'definition'
|
|
1363
|
+
AND linked_id = ${sqlQuote(definitionId)}`);
|
|
1364
|
+
await executeRawSql(this.runtime, `DELETE FROM life_task_occurrences
|
|
1365
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1366
|
+
AND definition_id = ${sqlQuote(definitionId)}`);
|
|
1367
|
+
await executeRawSql(this.runtime, `DELETE FROM life_task_definitions
|
|
1368
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1369
|
+
AND id = ${sqlQuote(definitionId)}`);
|
|
1370
|
+
}
|
|
1371
|
+
async upsertOccurrence(occurrence) {
|
|
1372
|
+
await executeRawSql(this.runtime, `INSERT INTO life_task_occurrences (
|
|
1373
|
+
id, agent_id, domain, subject_type, subject_id, visibility_scope,
|
|
1374
|
+
context_policy, definition_id, occurrence_key, scheduled_at, due_at,
|
|
1375
|
+
relevance_start_at, relevance_end_at, window_name, state,
|
|
1376
|
+
snoozed_until, completion_payload_json, derived_target_json,
|
|
1377
|
+
metadata_json, created_at, updated_at
|
|
1378
|
+
) VALUES (
|
|
1379
|
+
${sqlQuote(occurrence.id)},
|
|
1380
|
+
${sqlQuote(occurrence.agentId)},
|
|
1381
|
+
${sqlQuote(occurrence.domain)},
|
|
1382
|
+
${sqlQuote(occurrence.subjectType)},
|
|
1383
|
+
${sqlQuote(occurrence.subjectId)},
|
|
1384
|
+
${sqlQuote(occurrence.visibilityScope)},
|
|
1385
|
+
${sqlQuote(occurrence.contextPolicy)},
|
|
1386
|
+
${sqlQuote(occurrence.definitionId)},
|
|
1387
|
+
${sqlQuote(occurrence.occurrenceKey)},
|
|
1388
|
+
${sqlText(occurrence.scheduledAt)},
|
|
1389
|
+
${sqlText(occurrence.dueAt)},
|
|
1390
|
+
${sqlQuote(occurrence.relevanceStartAt)},
|
|
1391
|
+
${sqlQuote(occurrence.relevanceEndAt)},
|
|
1392
|
+
${sqlText(occurrence.windowName)},
|
|
1393
|
+
${sqlQuote(occurrence.state)},
|
|
1394
|
+
${sqlText(occurrence.snoozedUntil)},
|
|
1395
|
+
${occurrence.completionPayload ? sqlJson(occurrence.completionPayload) : "NULL"},
|
|
1396
|
+
${occurrence.derivedTarget ? sqlJson(occurrence.derivedTarget) : "NULL"},
|
|
1397
|
+
${sqlJson(occurrence.metadata)},
|
|
1398
|
+
${sqlQuote(occurrence.createdAt)},
|
|
1399
|
+
${sqlQuote(occurrence.updatedAt)}
|
|
1400
|
+
)
|
|
1401
|
+
ON CONFLICT(agent_id, definition_id, occurrence_key) DO UPDATE SET
|
|
1402
|
+
domain = excluded.domain,
|
|
1403
|
+
subject_type = excluded.subject_type,
|
|
1404
|
+
subject_id = excluded.subject_id,
|
|
1405
|
+
visibility_scope = excluded.visibility_scope,
|
|
1406
|
+
context_policy = excluded.context_policy,
|
|
1407
|
+
scheduled_at = excluded.scheduled_at,
|
|
1408
|
+
due_at = excluded.due_at,
|
|
1409
|
+
relevance_start_at = excluded.relevance_start_at,
|
|
1410
|
+
relevance_end_at = excluded.relevance_end_at,
|
|
1411
|
+
window_name = excluded.window_name,
|
|
1412
|
+
state = excluded.state,
|
|
1413
|
+
snoozed_until = excluded.snoozed_until,
|
|
1414
|
+
completion_payload_json = excluded.completion_payload_json,
|
|
1415
|
+
derived_target_json = excluded.derived_target_json,
|
|
1416
|
+
metadata_json = excluded.metadata_json,
|
|
1417
|
+
updated_at = excluded.updated_at`);
|
|
1418
|
+
}
|
|
1419
|
+
async listOccurrencesForDefinition(agentId, definitionId) {
|
|
1420
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1421
|
+
FROM life_task_occurrences
|
|
1422
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1423
|
+
AND definition_id = ${sqlQuote(definitionId)}
|
|
1424
|
+
ORDER BY relevance_start_at ASC`);
|
|
1425
|
+
return rows.map(parseOccurrence);
|
|
1426
|
+
}
|
|
1427
|
+
async listOccurrencesForDefinitions(agentId, definitionIds) {
|
|
1428
|
+
if (definitionIds.length === 0) {
|
|
1429
|
+
return [];
|
|
1430
|
+
}
|
|
1431
|
+
const definitionList = definitionIds
|
|
1432
|
+
.map((definitionId) => sqlQuote(definitionId))
|
|
1433
|
+
.join(", ");
|
|
1434
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1435
|
+
FROM life_task_occurrences
|
|
1436
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1437
|
+
AND definition_id IN (${definitionList})
|
|
1438
|
+
ORDER BY definition_id ASC, relevance_start_at ASC`);
|
|
1439
|
+
return rows.map(parseOccurrence);
|
|
1440
|
+
}
|
|
1441
|
+
async getOccurrence(agentId, occurrenceId) {
|
|
1442
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1443
|
+
FROM life_task_occurrences
|
|
1444
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1445
|
+
AND id = ${sqlQuote(occurrenceId)}
|
|
1446
|
+
LIMIT 1`);
|
|
1447
|
+
const row = rows[0];
|
|
1448
|
+
return row ? parseOccurrence(row) : null;
|
|
1449
|
+
}
|
|
1450
|
+
async getOccurrenceView(agentId, occurrenceId) {
|
|
1451
|
+
const rows = await executeRawSql(this.runtime, `SELECT occurrence.*,
|
|
1452
|
+
definition.kind AS definition_kind,
|
|
1453
|
+
definition.status AS definition_status,
|
|
1454
|
+
definition.cadence_json AS definition_cadence_json,
|
|
1455
|
+
definition.title AS definition_title,
|
|
1456
|
+
definition.description AS definition_description,
|
|
1457
|
+
definition.priority AS definition_priority,
|
|
1458
|
+
definition.timezone AS definition_timezone,
|
|
1459
|
+
definition.source AS definition_source,
|
|
1460
|
+
definition.goal_id AS definition_goal_id
|
|
1461
|
+
FROM life_task_occurrences AS occurrence
|
|
1462
|
+
JOIN life_task_definitions AS definition
|
|
1463
|
+
ON definition.id = occurrence.definition_id
|
|
1464
|
+
AND definition.agent_id = occurrence.agent_id
|
|
1465
|
+
WHERE occurrence.agent_id = ${sqlQuote(agentId)}
|
|
1466
|
+
AND occurrence.id = ${sqlQuote(occurrenceId)}
|
|
1467
|
+
LIMIT 1`);
|
|
1468
|
+
const row = rows[0];
|
|
1469
|
+
return row ? parseOccurrenceView(row) : null;
|
|
1470
|
+
}
|
|
1471
|
+
async listOccurrenceViewsForOverview(agentId, horizonIso) {
|
|
1472
|
+
const rows = await executeRawSql(this.runtime, `SELECT occurrence.*,
|
|
1473
|
+
definition.kind AS definition_kind,
|
|
1474
|
+
definition.status AS definition_status,
|
|
1475
|
+
definition.cadence_json AS definition_cadence_json,
|
|
1476
|
+
definition.title AS definition_title,
|
|
1477
|
+
definition.description AS definition_description,
|
|
1478
|
+
definition.priority AS definition_priority,
|
|
1479
|
+
definition.timezone AS definition_timezone,
|
|
1480
|
+
definition.source AS definition_source,
|
|
1481
|
+
definition.goal_id AS definition_goal_id
|
|
1482
|
+
FROM life_task_occurrences AS occurrence
|
|
1483
|
+
JOIN life_task_definitions AS definition
|
|
1484
|
+
ON definition.id = occurrence.definition_id
|
|
1485
|
+
AND definition.agent_id = occurrence.agent_id
|
|
1486
|
+
WHERE occurrence.agent_id = ${sqlQuote(agentId)}
|
|
1487
|
+
AND definition.status = 'active'
|
|
1488
|
+
AND (
|
|
1489
|
+
occurrence.state IN ('visible', 'snoozed')
|
|
1490
|
+
OR (
|
|
1491
|
+
occurrence.state = 'pending'
|
|
1492
|
+
AND occurrence.relevance_start_at <= ${sqlQuote(horizonIso)}
|
|
1493
|
+
)
|
|
1494
|
+
)
|
|
1495
|
+
ORDER BY occurrence.relevance_start_at ASC, definition.priority ASC`);
|
|
1496
|
+
return rows.map(parseOccurrenceView);
|
|
1497
|
+
}
|
|
1498
|
+
async updateOccurrence(occurrence) {
|
|
1499
|
+
await executeRawSql(this.runtime, `UPDATE life_task_occurrences
|
|
1500
|
+
SET domain = ${sqlQuote(occurrence.domain)},
|
|
1501
|
+
subject_type = ${sqlQuote(occurrence.subjectType)},
|
|
1502
|
+
subject_id = ${sqlQuote(occurrence.subjectId)},
|
|
1503
|
+
visibility_scope = ${sqlQuote(occurrence.visibilityScope)},
|
|
1504
|
+
context_policy = ${sqlQuote(occurrence.contextPolicy)},
|
|
1505
|
+
scheduled_at = ${sqlText(occurrence.scheduledAt)},
|
|
1506
|
+
due_at = ${sqlText(occurrence.dueAt)},
|
|
1507
|
+
relevance_start_at = ${sqlQuote(occurrence.relevanceStartAt)},
|
|
1508
|
+
relevance_end_at = ${sqlQuote(occurrence.relevanceEndAt)},
|
|
1509
|
+
window_name = ${sqlText(occurrence.windowName)},
|
|
1510
|
+
state = ${sqlQuote(occurrence.state)},
|
|
1511
|
+
snoozed_until = ${sqlText(occurrence.snoozedUntil)},
|
|
1512
|
+
completion_payload_json = ${occurrence.completionPayload ? sqlJson(occurrence.completionPayload) : "NULL"},
|
|
1513
|
+
derived_target_json = ${occurrence.derivedTarget ? sqlJson(occurrence.derivedTarget) : "NULL"},
|
|
1514
|
+
metadata_json = ${sqlJson(occurrence.metadata)},
|
|
1515
|
+
updated_at = ${sqlQuote(occurrence.updatedAt)}
|
|
1516
|
+
WHERE id = ${sqlQuote(occurrence.id)}
|
|
1517
|
+
AND agent_id = ${sqlQuote(occurrence.agentId)}`);
|
|
1518
|
+
}
|
|
1519
|
+
async pruneNonTerminalOccurrences(agentId, definitionId, keepOccurrenceKeys) {
|
|
1520
|
+
const keepClause = keepOccurrenceKeys.length > 0
|
|
1521
|
+
? `AND occurrence_key NOT IN (${keepOccurrenceKeys
|
|
1522
|
+
.map((occurrenceKey) => sqlQuote(occurrenceKey))
|
|
1523
|
+
.join(", ")})`
|
|
1524
|
+
: "";
|
|
1525
|
+
await executeRawSql(this.runtime, `DELETE FROM life_task_occurrences
|
|
1526
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1527
|
+
AND definition_id = ${sqlQuote(definitionId)}
|
|
1528
|
+
AND state IN ('pending', 'visible', 'snoozed', 'expired')
|
|
1529
|
+
${keepClause}`);
|
|
1530
|
+
}
|
|
1531
|
+
async createGoal(goal) {
|
|
1532
|
+
await executeRawSql(this.runtime, `INSERT INTO life_goal_definitions (
|
|
1533
|
+
id, agent_id, domain, subject_type, subject_id, visibility_scope,
|
|
1534
|
+
context_policy, title, description, cadence_json, support_strategy_json,
|
|
1535
|
+
success_criteria_json, status, review_state, metadata_json,
|
|
1536
|
+
created_at, updated_at
|
|
1537
|
+
) VALUES (
|
|
1538
|
+
${sqlQuote(goal.id)},
|
|
1539
|
+
${sqlQuote(goal.agentId)},
|
|
1540
|
+
${sqlQuote(goal.domain)},
|
|
1541
|
+
${sqlQuote(goal.subjectType)},
|
|
1542
|
+
${sqlQuote(goal.subjectId)},
|
|
1543
|
+
${sqlQuote(goal.visibilityScope)},
|
|
1544
|
+
${sqlQuote(goal.contextPolicy)},
|
|
1545
|
+
${sqlQuote(goal.title)},
|
|
1546
|
+
${sqlQuote(goal.description)},
|
|
1547
|
+
${goal.cadence ? sqlJson(goal.cadence) : "NULL"},
|
|
1548
|
+
${sqlJson(goal.supportStrategy)},
|
|
1549
|
+
${sqlJson(goal.successCriteria)},
|
|
1550
|
+
${sqlQuote(goal.status)},
|
|
1551
|
+
${sqlQuote(goal.reviewState)},
|
|
1552
|
+
${sqlJson(goal.metadata)},
|
|
1553
|
+
${sqlQuote(goal.createdAt)},
|
|
1554
|
+
${sqlQuote(goal.updatedAt)}
|
|
1555
|
+
)`);
|
|
1556
|
+
}
|
|
1557
|
+
async updateGoal(goal) {
|
|
1558
|
+
await executeRawSql(this.runtime, `UPDATE life_goal_definitions
|
|
1559
|
+
SET domain = ${sqlQuote(goal.domain)},
|
|
1560
|
+
subject_type = ${sqlQuote(goal.subjectType)},
|
|
1561
|
+
subject_id = ${sqlQuote(goal.subjectId)},
|
|
1562
|
+
visibility_scope = ${sqlQuote(goal.visibilityScope)},
|
|
1563
|
+
context_policy = ${sqlQuote(goal.contextPolicy)},
|
|
1564
|
+
title = ${sqlQuote(goal.title)},
|
|
1565
|
+
description = ${sqlQuote(goal.description)},
|
|
1566
|
+
cadence_json = ${goal.cadence ? sqlJson(goal.cadence) : "NULL"},
|
|
1567
|
+
support_strategy_json = ${sqlJson(goal.supportStrategy)},
|
|
1568
|
+
success_criteria_json = ${sqlJson(goal.successCriteria)},
|
|
1569
|
+
status = ${sqlQuote(goal.status)},
|
|
1570
|
+
review_state = ${sqlQuote(goal.reviewState)},
|
|
1571
|
+
metadata_json = ${sqlJson(goal.metadata)},
|
|
1572
|
+
updated_at = ${sqlQuote(goal.updatedAt)}
|
|
1573
|
+
WHERE id = ${sqlQuote(goal.id)}
|
|
1574
|
+
AND agent_id = ${sqlQuote(goal.agentId)}`);
|
|
1575
|
+
}
|
|
1576
|
+
async getGoal(agentId, goalId) {
|
|
1577
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1578
|
+
FROM life_goal_definitions
|
|
1579
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1580
|
+
AND id = ${sqlQuote(goalId)}
|
|
1581
|
+
LIMIT 1`);
|
|
1582
|
+
const row = rows[0];
|
|
1583
|
+
return row ? parseGoal(row) : null;
|
|
1584
|
+
}
|
|
1585
|
+
async listGoals(agentId) {
|
|
1586
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1587
|
+
FROM life_goal_definitions
|
|
1588
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1589
|
+
ORDER BY created_at ASC`);
|
|
1590
|
+
return rows.map(parseGoal);
|
|
1591
|
+
}
|
|
1592
|
+
async deleteGoal(agentId, goalId) {
|
|
1593
|
+
await executeRawSql(this.runtime, `DELETE FROM life_goal_links
|
|
1594
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1595
|
+
AND goal_id = ${sqlQuote(goalId)}`);
|
|
1596
|
+
await executeRawSql(this.runtime, `UPDATE life_task_definitions
|
|
1597
|
+
SET goal_id = NULL
|
|
1598
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1599
|
+
AND goal_id = ${sqlQuote(goalId)}`);
|
|
1600
|
+
await executeRawSql(this.runtime, `DELETE FROM life_goal_definitions
|
|
1601
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1602
|
+
AND id = ${sqlQuote(goalId)}`);
|
|
1603
|
+
}
|
|
1604
|
+
async upsertGoalLink(link) {
|
|
1605
|
+
await executeRawSql(this.runtime, `INSERT INTO life_goal_links (
|
|
1606
|
+
id, agent_id, goal_id, linked_type, linked_id, created_at
|
|
1607
|
+
) VALUES (
|
|
1608
|
+
${sqlQuote(link.id)},
|
|
1609
|
+
${sqlQuote(link.agentId)},
|
|
1610
|
+
${sqlQuote(link.goalId)},
|
|
1611
|
+
${sqlQuote(link.linkedType)},
|
|
1612
|
+
${sqlQuote(link.linkedId)},
|
|
1613
|
+
${sqlQuote(link.createdAt)}
|
|
1614
|
+
)
|
|
1615
|
+
ON CONFLICT(agent_id, goal_id, linked_type, linked_id) DO NOTHING`);
|
|
1616
|
+
}
|
|
1617
|
+
async deleteGoalLinksForLinked(agentId, linkedType, linkedId) {
|
|
1618
|
+
await executeRawSql(this.runtime, `DELETE FROM life_goal_links
|
|
1619
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1620
|
+
AND linked_type = ${sqlQuote(linkedType)}
|
|
1621
|
+
AND linked_id = ${sqlQuote(linkedId)}`);
|
|
1622
|
+
}
|
|
1623
|
+
async listGoalLinksForGoal(agentId, goalId) {
|
|
1624
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1625
|
+
FROM life_goal_links
|
|
1626
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1627
|
+
AND goal_id = ${sqlQuote(goalId)}
|
|
1628
|
+
ORDER BY created_at ASC`);
|
|
1629
|
+
return rows.map(parseGoalLink);
|
|
1630
|
+
}
|
|
1631
|
+
async createReminderPlan(plan) {
|
|
1632
|
+
await executeRawSql(this.runtime, `INSERT INTO life_reminder_plans (
|
|
1633
|
+
id, agent_id, owner_type, owner_id, steps_json,
|
|
1634
|
+
mute_policy_json, quiet_hours_json, created_at, updated_at
|
|
1635
|
+
) VALUES (
|
|
1636
|
+
${sqlQuote(plan.id)},
|
|
1637
|
+
${sqlQuote(plan.agentId)},
|
|
1638
|
+
${sqlQuote(plan.ownerType)},
|
|
1639
|
+
${sqlQuote(plan.ownerId)},
|
|
1640
|
+
${sqlJson(plan.steps)},
|
|
1641
|
+
${sqlJson(plan.mutePolicy)},
|
|
1642
|
+
${sqlJson(plan.quietHours)},
|
|
1643
|
+
${sqlQuote(plan.createdAt)},
|
|
1644
|
+
${sqlQuote(plan.updatedAt)}
|
|
1645
|
+
)`);
|
|
1646
|
+
}
|
|
1647
|
+
async updateReminderPlan(plan) {
|
|
1648
|
+
await executeRawSql(this.runtime, `UPDATE life_reminder_plans
|
|
1649
|
+
SET steps_json = ${sqlJson(plan.steps)},
|
|
1650
|
+
mute_policy_json = ${sqlJson(plan.mutePolicy)},
|
|
1651
|
+
quiet_hours_json = ${sqlJson(plan.quietHours)},
|
|
1652
|
+
updated_at = ${sqlQuote(plan.updatedAt)}
|
|
1653
|
+
WHERE id = ${sqlQuote(plan.id)}
|
|
1654
|
+
AND agent_id = ${sqlQuote(plan.agentId)}`);
|
|
1655
|
+
}
|
|
1656
|
+
async deleteReminderPlan(agentId, planId) {
|
|
1657
|
+
await executeRawSql(this.runtime, `DELETE FROM life_reminder_plans
|
|
1658
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1659
|
+
AND id = ${sqlQuote(planId)}`);
|
|
1660
|
+
}
|
|
1661
|
+
async getReminderPlan(agentId, planId) {
|
|
1662
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1663
|
+
FROM life_reminder_plans
|
|
1664
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1665
|
+
AND id = ${sqlQuote(planId)}
|
|
1666
|
+
LIMIT 1`);
|
|
1667
|
+
const row = rows[0];
|
|
1668
|
+
return row ? parseReminderPlan(row) : null;
|
|
1669
|
+
}
|
|
1670
|
+
async listReminderPlansForOwners(agentId, ownerType, ownerIds) {
|
|
1671
|
+
if (ownerIds.length === 0)
|
|
1672
|
+
return [];
|
|
1673
|
+
const ownerList = ownerIds.map((ownerId) => sqlQuote(ownerId)).join(", ");
|
|
1674
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1675
|
+
FROM life_reminder_plans
|
|
1676
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1677
|
+
AND owner_type = ${sqlQuote(ownerType)}
|
|
1678
|
+
AND owner_id IN (${ownerList})`);
|
|
1679
|
+
return rows.map(parseReminderPlan);
|
|
1680
|
+
}
|
|
1681
|
+
async createAuditEvent(event) {
|
|
1682
|
+
await executeRawSql(this.runtime, `INSERT INTO life_audit_events (
|
|
1683
|
+
id, agent_id, event_type, owner_type, owner_id, reason,
|
|
1684
|
+
inputs_json, decision_json, actor, created_at
|
|
1685
|
+
) VALUES (
|
|
1686
|
+
${sqlQuote(event.id)},
|
|
1687
|
+
${sqlQuote(event.agentId)},
|
|
1688
|
+
${sqlQuote(event.eventType)},
|
|
1689
|
+
${sqlQuote(event.ownerType)},
|
|
1690
|
+
${sqlQuote(event.ownerId)},
|
|
1691
|
+
${sqlQuote(event.reason)},
|
|
1692
|
+
${sqlJson(event.inputs)},
|
|
1693
|
+
${sqlJson(event.decision)},
|
|
1694
|
+
${sqlQuote(event.actor)},
|
|
1695
|
+
${sqlQuote(event.createdAt)}
|
|
1696
|
+
)
|
|
1697
|
+
ON CONFLICT(id) DO NOTHING`);
|
|
1698
|
+
}
|
|
1699
|
+
/**
|
|
1700
|
+
* Returns `true` when the audit row for this id was newly inserted, `false`
|
|
1701
|
+
* when the id already existed. Used by circadian event emission to dedupe
|
|
1702
|
+
* across runtime restarts (same state transition -> same id).
|
|
1703
|
+
*/
|
|
1704
|
+
async createAuditEventIfNew(event) {
|
|
1705
|
+
const rows = await executeRawSql(this.runtime, `INSERT INTO life_audit_events (
|
|
1706
|
+
id, agent_id, event_type, owner_type, owner_id, reason,
|
|
1707
|
+
inputs_json, decision_json, actor, created_at
|
|
1708
|
+
) VALUES (
|
|
1709
|
+
${sqlQuote(event.id)},
|
|
1710
|
+
${sqlQuote(event.agentId)},
|
|
1711
|
+
${sqlQuote(event.eventType)},
|
|
1712
|
+
${sqlQuote(event.ownerType)},
|
|
1713
|
+
${sqlQuote(event.ownerId)},
|
|
1714
|
+
${sqlQuote(event.reason)},
|
|
1715
|
+
${sqlJson(event.inputs)},
|
|
1716
|
+
${sqlJson(event.decision)},
|
|
1717
|
+
${sqlQuote(event.actor)},
|
|
1718
|
+
${sqlQuote(event.createdAt)}
|
|
1719
|
+
)
|
|
1720
|
+
ON CONFLICT(id) DO NOTHING
|
|
1721
|
+
RETURNING id`);
|
|
1722
|
+
return rows.length > 0;
|
|
1723
|
+
}
|
|
1724
|
+
async listAuditEvents(agentId, ownerType, ownerId) {
|
|
1725
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1726
|
+
FROM life_audit_events
|
|
1727
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1728
|
+
AND owner_type = ${sqlQuote(ownerType)}
|
|
1729
|
+
AND owner_id = ${sqlQuote(ownerId)}
|
|
1730
|
+
ORDER BY created_at DESC`);
|
|
1731
|
+
return rows.map(parseAuditEvent);
|
|
1732
|
+
}
|
|
1733
|
+
async createSubscriptionAudit(audit) {
|
|
1734
|
+
await executeRawSql(this.runtime, `INSERT INTO life_subscription_audits (
|
|
1735
|
+
id, agent_id, source, query_window_days, status, total_candidates,
|
|
1736
|
+
active_candidates, canceled_candidates, uncertain_candidates, summary,
|
|
1737
|
+
metadata_json, created_at, updated_at
|
|
1738
|
+
) VALUES (
|
|
1739
|
+
${sqlQuote(audit.id)},
|
|
1740
|
+
${sqlQuote(audit.agentId)},
|
|
1741
|
+
${sqlQuote(audit.source)},
|
|
1742
|
+
${sqlInteger(audit.queryWindowDays)},
|
|
1743
|
+
${sqlQuote(audit.status)},
|
|
1744
|
+
${sqlInteger(audit.totalCandidates)},
|
|
1745
|
+
${sqlInteger(audit.activeCandidates)},
|
|
1746
|
+
${sqlInteger(audit.canceledCandidates)},
|
|
1747
|
+
${sqlInteger(audit.uncertainCandidates)},
|
|
1748
|
+
${sqlQuote(audit.summary)},
|
|
1749
|
+
${sqlJson(audit.metadata)},
|
|
1750
|
+
${sqlQuote(audit.createdAt)},
|
|
1751
|
+
${sqlQuote(audit.updatedAt)}
|
|
1752
|
+
)`);
|
|
1753
|
+
}
|
|
1754
|
+
async updateSubscriptionAudit(audit) {
|
|
1755
|
+
await executeRawSql(this.runtime, `UPDATE life_subscription_audits
|
|
1756
|
+
SET source = ${sqlQuote(audit.source)},
|
|
1757
|
+
query_window_days = ${sqlInteger(audit.queryWindowDays)},
|
|
1758
|
+
status = ${sqlQuote(audit.status)},
|
|
1759
|
+
total_candidates = ${sqlInteger(audit.totalCandidates)},
|
|
1760
|
+
active_candidates = ${sqlInteger(audit.activeCandidates)},
|
|
1761
|
+
canceled_candidates = ${sqlInteger(audit.canceledCandidates)},
|
|
1762
|
+
uncertain_candidates = ${sqlInteger(audit.uncertainCandidates)},
|
|
1763
|
+
summary = ${sqlQuote(audit.summary)},
|
|
1764
|
+
metadata_json = ${sqlJson(audit.metadata)},
|
|
1765
|
+
updated_at = ${sqlQuote(audit.updatedAt)}
|
|
1766
|
+
WHERE id = ${sqlQuote(audit.id)}
|
|
1767
|
+
AND agent_id = ${sqlQuote(audit.agentId)}`);
|
|
1768
|
+
}
|
|
1769
|
+
async getSubscriptionAudit(agentId, auditId) {
|
|
1770
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1771
|
+
FROM life_subscription_audits
|
|
1772
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1773
|
+
AND id = ${sqlQuote(auditId)}
|
|
1774
|
+
LIMIT 1`);
|
|
1775
|
+
const row = rows[0];
|
|
1776
|
+
return row ? parseSubscriptionAudit(row) : null;
|
|
1777
|
+
}
|
|
1778
|
+
async getLatestSubscriptionAudit(agentId) {
|
|
1779
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1780
|
+
FROM life_subscription_audits
|
|
1781
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1782
|
+
ORDER BY updated_at DESC, created_at DESC
|
|
1783
|
+
LIMIT 1`);
|
|
1784
|
+
const row = rows[0];
|
|
1785
|
+
return row ? parseSubscriptionAudit(row) : null;
|
|
1786
|
+
}
|
|
1787
|
+
async createSubscriptionCandidate(candidate) {
|
|
1788
|
+
await executeRawSql(this.runtime, `INSERT INTO life_subscription_candidates (
|
|
1789
|
+
id, agent_id, audit_id, service_slug, service_name, provider, cadence,
|
|
1790
|
+
state, confidence, annual_cost_estimate_usd, management_url,
|
|
1791
|
+
latest_evidence_at, evidence_json, metadata_json, created_at, updated_at
|
|
1792
|
+
) VALUES (
|
|
1793
|
+
${sqlQuote(candidate.id)},
|
|
1794
|
+
${sqlQuote(candidate.agentId)},
|
|
1795
|
+
${sqlQuote(candidate.auditId)},
|
|
1796
|
+
${sqlQuote(candidate.serviceSlug)},
|
|
1797
|
+
${sqlQuote(candidate.serviceName)},
|
|
1798
|
+
${sqlQuote(candidate.provider)},
|
|
1799
|
+
${sqlQuote(candidate.cadence)},
|
|
1800
|
+
${sqlQuote(candidate.state)},
|
|
1801
|
+
${sqlNumber(candidate.confidence)},
|
|
1802
|
+
${sqlNumber(candidate.annualCostEstimateUsd)},
|
|
1803
|
+
${sqlText(candidate.managementUrl)},
|
|
1804
|
+
${sqlText(candidate.latestEvidenceAt)},
|
|
1805
|
+
${sqlJson(candidate.evidenceJson)},
|
|
1806
|
+
${sqlJson(candidate.metadata)},
|
|
1807
|
+
${sqlQuote(candidate.createdAt)},
|
|
1808
|
+
${sqlQuote(candidate.updatedAt)}
|
|
1809
|
+
)
|
|
1810
|
+
ON CONFLICT(agent_id, audit_id, service_slug) DO UPDATE SET
|
|
1811
|
+
service_name = excluded.service_name,
|
|
1812
|
+
provider = excluded.provider,
|
|
1813
|
+
cadence = excluded.cadence,
|
|
1814
|
+
state = excluded.state,
|
|
1815
|
+
confidence = excluded.confidence,
|
|
1816
|
+
annual_cost_estimate_usd = excluded.annual_cost_estimate_usd,
|
|
1817
|
+
management_url = excluded.management_url,
|
|
1818
|
+
latest_evidence_at = excluded.latest_evidence_at,
|
|
1819
|
+
evidence_json = excluded.evidence_json,
|
|
1820
|
+
metadata_json = excluded.metadata_json,
|
|
1821
|
+
updated_at = excluded.updated_at`);
|
|
1822
|
+
}
|
|
1823
|
+
async listSubscriptionCandidatesForAudit(agentId, auditId) {
|
|
1824
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1825
|
+
FROM life_subscription_candidates
|
|
1826
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1827
|
+
AND audit_id = ${sqlQuote(auditId)}
|
|
1828
|
+
ORDER BY confidence DESC, service_name ASC`);
|
|
1829
|
+
return rows.map(parseSubscriptionCandidate);
|
|
1830
|
+
}
|
|
1831
|
+
async getSubscriptionCandidate(agentId, candidateId) {
|
|
1832
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1833
|
+
FROM life_subscription_candidates
|
|
1834
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1835
|
+
AND id = ${sqlQuote(candidateId)}
|
|
1836
|
+
LIMIT 1`);
|
|
1837
|
+
const row = rows[0];
|
|
1838
|
+
return row ? parseSubscriptionCandidate(row) : null;
|
|
1839
|
+
}
|
|
1840
|
+
async createSubscriptionCancellation(cancellation) {
|
|
1841
|
+
await executeRawSql(this.runtime, `INSERT INTO life_subscription_cancellations (
|
|
1842
|
+
id, agent_id, audit_id, candidate_id, service_slug, service_name,
|
|
1843
|
+
executor, status, confirmed, current_step, browser_session_id,
|
|
1844
|
+
evidence_summary, artifact_count, management_url, error, metadata_json,
|
|
1845
|
+
created_at, updated_at, finished_at
|
|
1846
|
+
) VALUES (
|
|
1847
|
+
${sqlQuote(cancellation.id)},
|
|
1848
|
+
${sqlQuote(cancellation.agentId)},
|
|
1849
|
+
${sqlText(cancellation.auditId)},
|
|
1850
|
+
${sqlText(cancellation.candidateId)},
|
|
1851
|
+
${sqlQuote(cancellation.serviceSlug)},
|
|
1852
|
+
${sqlQuote(cancellation.serviceName)},
|
|
1853
|
+
${sqlQuote(cancellation.executor)},
|
|
1854
|
+
${sqlQuote(cancellation.status)},
|
|
1855
|
+
${sqlBoolean(cancellation.confirmed)},
|
|
1856
|
+
${sqlText(cancellation.currentStep)},
|
|
1857
|
+
${sqlText(cancellation.browserSessionId)},
|
|
1858
|
+
${sqlText(cancellation.evidenceSummary)},
|
|
1859
|
+
${sqlInteger(cancellation.artifactCount)},
|
|
1860
|
+
${sqlText(cancellation.managementUrl)},
|
|
1861
|
+
${sqlText(cancellation.error)},
|
|
1862
|
+
${sqlJson(cancellation.metadata)},
|
|
1863
|
+
${sqlQuote(cancellation.createdAt)},
|
|
1864
|
+
${sqlQuote(cancellation.updatedAt)},
|
|
1865
|
+
${sqlText(cancellation.finishedAt)}
|
|
1866
|
+
)`);
|
|
1867
|
+
}
|
|
1868
|
+
async updateSubscriptionCancellation(cancellation) {
|
|
1869
|
+
await executeRawSql(this.runtime, `UPDATE life_subscription_cancellations
|
|
1870
|
+
SET audit_id = ${sqlText(cancellation.auditId)},
|
|
1871
|
+
candidate_id = ${sqlText(cancellation.candidateId)},
|
|
1872
|
+
service_slug = ${sqlQuote(cancellation.serviceSlug)},
|
|
1873
|
+
service_name = ${sqlQuote(cancellation.serviceName)},
|
|
1874
|
+
executor = ${sqlQuote(cancellation.executor)},
|
|
1875
|
+
status = ${sqlQuote(cancellation.status)},
|
|
1876
|
+
confirmed = ${sqlBoolean(cancellation.confirmed)},
|
|
1877
|
+
current_step = ${sqlText(cancellation.currentStep)},
|
|
1878
|
+
browser_session_id = ${sqlText(cancellation.browserSessionId)},
|
|
1879
|
+
evidence_summary = ${sqlText(cancellation.evidenceSummary)},
|
|
1880
|
+
artifact_count = ${sqlInteger(cancellation.artifactCount)},
|
|
1881
|
+
management_url = ${sqlText(cancellation.managementUrl)},
|
|
1882
|
+
error = ${sqlText(cancellation.error)},
|
|
1883
|
+
metadata_json = ${sqlJson(cancellation.metadata)},
|
|
1884
|
+
updated_at = ${sqlQuote(cancellation.updatedAt)},
|
|
1885
|
+
finished_at = ${sqlText(cancellation.finishedAt)}
|
|
1886
|
+
WHERE id = ${sqlQuote(cancellation.id)}
|
|
1887
|
+
AND agent_id = ${sqlQuote(cancellation.agentId)}`);
|
|
1888
|
+
}
|
|
1889
|
+
async getSubscriptionCancellation(agentId, cancellationId) {
|
|
1890
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1891
|
+
FROM life_subscription_cancellations
|
|
1892
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1893
|
+
AND id = ${sqlQuote(cancellationId)}
|
|
1894
|
+
LIMIT 1`);
|
|
1895
|
+
const row = rows[0];
|
|
1896
|
+
return row ? parseSubscriptionCancellation(row) : null;
|
|
1897
|
+
}
|
|
1898
|
+
async getLatestSubscriptionCancellation(agentId, serviceSlug) {
|
|
1899
|
+
const serviceClause = serviceSlug
|
|
1900
|
+
? `AND service_slug = ${sqlQuote(serviceSlug)}`
|
|
1901
|
+
: "";
|
|
1902
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1903
|
+
FROM life_subscription_cancellations
|
|
1904
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1905
|
+
${serviceClause}
|
|
1906
|
+
ORDER BY updated_at DESC, created_at DESC
|
|
1907
|
+
LIMIT 1`);
|
|
1908
|
+
const row = rows[0];
|
|
1909
|
+
return row ? parseSubscriptionCancellation(row) : null;
|
|
1910
|
+
}
|
|
1911
|
+
async createEmailUnsubscribe(record) {
|
|
1912
|
+
await executeRawSql(this.runtime, `INSERT INTO life_email_unsubscribes (
|
|
1913
|
+
id, agent_id, sender_email, sender_display, sender_domain, list_id,
|
|
1914
|
+
method, status, http_status_code, http_final_url, filter_created,
|
|
1915
|
+
filter_id, threads_trashed, error_message, metadata_json,
|
|
1916
|
+
created_at, updated_at
|
|
1917
|
+
) VALUES (
|
|
1918
|
+
${sqlQuote(record.id)},
|
|
1919
|
+
${sqlQuote(record.agentId)},
|
|
1920
|
+
${sqlQuote(record.senderEmail)},
|
|
1921
|
+
${sqlQuote(record.senderDisplay)},
|
|
1922
|
+
${sqlText(record.senderDomain)},
|
|
1923
|
+
${sqlText(record.listId)},
|
|
1924
|
+
${sqlQuote(record.method)},
|
|
1925
|
+
${sqlQuote(record.status)},
|
|
1926
|
+
${record.httpStatusCode === null ? "NULL" : sqlInteger(record.httpStatusCode)},
|
|
1927
|
+
${sqlText(record.httpFinalUrl)},
|
|
1928
|
+
${sqlBoolean(record.filterCreated)},
|
|
1929
|
+
${sqlText(record.filterId)},
|
|
1930
|
+
${sqlInteger(record.threadsTrashed)},
|
|
1931
|
+
${sqlText(record.errorMessage)},
|
|
1932
|
+
${sqlJson(record.metadata)},
|
|
1933
|
+
${sqlQuote(record.createdAt)},
|
|
1934
|
+
${sqlQuote(record.updatedAt)}
|
|
1935
|
+
)`);
|
|
1936
|
+
}
|
|
1937
|
+
async listEmailUnsubscribes(agentId, args = {}) {
|
|
1938
|
+
const limit = Math.max(1, Math.min(500, Math.trunc(args.limit ?? 100)));
|
|
1939
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1940
|
+
FROM life_email_unsubscribes
|
|
1941
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1942
|
+
ORDER BY created_at DESC
|
|
1943
|
+
LIMIT ${limit}`);
|
|
1944
|
+
return rows.map(parseEmailUnsubscribe);
|
|
1945
|
+
}
|
|
1946
|
+
async getEmailUnsubscribe(agentId, id) {
|
|
1947
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1948
|
+
FROM life_email_unsubscribes
|
|
1949
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1950
|
+
AND id = ${sqlQuote(id)}
|
|
1951
|
+
LIMIT 1`);
|
|
1952
|
+
const row = rows[0];
|
|
1953
|
+
return row ? parseEmailUnsubscribe(row) : null;
|
|
1954
|
+
}
|
|
1955
|
+
async findEmailUnsubscribeBySender(agentId, senderEmail) {
|
|
1956
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1957
|
+
FROM life_email_unsubscribes
|
|
1958
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1959
|
+
AND sender_email = ${sqlQuote(senderEmail.trim().toLowerCase())}
|
|
1960
|
+
ORDER BY created_at DESC
|
|
1961
|
+
LIMIT 1`);
|
|
1962
|
+
const row = rows[0];
|
|
1963
|
+
return row ? parseEmailUnsubscribe(row) : null;
|
|
1964
|
+
}
|
|
1965
|
+
async upsertPaymentSource(source) {
|
|
1966
|
+
await executeRawSql(this.runtime, `INSERT INTO life_payment_sources (
|
|
1967
|
+
id, agent_id, kind, label, institution, account_mask, status,
|
|
1968
|
+
last_synced_at, transaction_count, metadata_json, created_at, updated_at
|
|
1969
|
+
) VALUES (
|
|
1970
|
+
${sqlQuote(source.id)},
|
|
1971
|
+
${sqlQuote(source.agentId)},
|
|
1972
|
+
${sqlQuote(source.kind)},
|
|
1973
|
+
${sqlQuote(source.label)},
|
|
1974
|
+
${sqlText(source.institution)},
|
|
1975
|
+
${sqlText(source.accountMask)},
|
|
1976
|
+
${sqlQuote(source.status)},
|
|
1977
|
+
${sqlText(source.lastSyncedAt)},
|
|
1978
|
+
${sqlInteger(source.transactionCount)},
|
|
1979
|
+
${sqlJson(source.metadata)},
|
|
1980
|
+
${sqlQuote(source.createdAt)},
|
|
1981
|
+
${sqlQuote(source.updatedAt)}
|
|
1982
|
+
)
|
|
1983
|
+
ON CONFLICT(id) DO UPDATE SET
|
|
1984
|
+
kind = excluded.kind,
|
|
1985
|
+
label = excluded.label,
|
|
1986
|
+
institution = excluded.institution,
|
|
1987
|
+
account_mask = excluded.account_mask,
|
|
1988
|
+
status = excluded.status,
|
|
1989
|
+
last_synced_at = excluded.last_synced_at,
|
|
1990
|
+
transaction_count = excluded.transaction_count,
|
|
1991
|
+
metadata_json = excluded.metadata_json,
|
|
1992
|
+
updated_at = excluded.updated_at`);
|
|
1993
|
+
}
|
|
1994
|
+
async listPaymentSources(agentId) {
|
|
1995
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1996
|
+
FROM life_payment_sources
|
|
1997
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
1998
|
+
ORDER BY created_at DESC`);
|
|
1999
|
+
return rows.map(parsePaymentSource);
|
|
2000
|
+
}
|
|
2001
|
+
async getPaymentSource(agentId, sourceId) {
|
|
2002
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2003
|
+
FROM life_payment_sources
|
|
2004
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2005
|
+
AND id = ${sqlQuote(sourceId)}
|
|
2006
|
+
LIMIT 1`);
|
|
2007
|
+
const row = rows[0];
|
|
2008
|
+
return row ? parsePaymentSource(row) : null;
|
|
2009
|
+
}
|
|
2010
|
+
async deletePaymentSource(agentId, sourceId) {
|
|
2011
|
+
await executeRawSql(this.runtime, `DELETE FROM life_payment_transactions
|
|
2012
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2013
|
+
AND source_id = ${sqlQuote(sourceId)}`);
|
|
2014
|
+
await executeRawSql(this.runtime, `DELETE FROM life_payment_sources
|
|
2015
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2016
|
+
AND id = ${sqlQuote(sourceId)}`);
|
|
2017
|
+
}
|
|
2018
|
+
async deletePaymentTransactionById(agentId, transactionId) {
|
|
2019
|
+
await executeRawSql(this.runtime, `DELETE FROM life_payment_transactions
|
|
2020
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2021
|
+
AND id = ${sqlQuote(transactionId)}`);
|
|
2022
|
+
}
|
|
2023
|
+
async insertPaymentTransaction(transaction) {
|
|
2024
|
+
const rows = await executeRawSql(this.runtime, `INSERT INTO life_payment_transactions (
|
|
2025
|
+
id, agent_id, source_id, external_id, posted_at, amount_usd, direction,
|
|
2026
|
+
merchant_raw, merchant_normalized, description, category, currency,
|
|
2027
|
+
metadata_json, created_at
|
|
2028
|
+
) VALUES (
|
|
2029
|
+
${sqlQuote(transaction.id)},
|
|
2030
|
+
${sqlQuote(transaction.agentId)},
|
|
2031
|
+
${sqlQuote(transaction.sourceId)},
|
|
2032
|
+
${sqlText(transaction.externalId)},
|
|
2033
|
+
${sqlQuote(transaction.postedAt)},
|
|
2034
|
+
${sqlNumber(transaction.amountUsd)},
|
|
2035
|
+
${sqlQuote(transaction.direction)},
|
|
2036
|
+
${sqlQuote(transaction.merchantRaw)},
|
|
2037
|
+
${sqlQuote(transaction.merchantNormalized)},
|
|
2038
|
+
${sqlText(transaction.description)},
|
|
2039
|
+
${sqlText(transaction.category)},
|
|
2040
|
+
${sqlQuote(transaction.currency)},
|
|
2041
|
+
${sqlJson(transaction.metadata)},
|
|
2042
|
+
${sqlQuote(transaction.createdAt)}
|
|
2043
|
+
)
|
|
2044
|
+
ON CONFLICT DO NOTHING
|
|
2045
|
+
RETURNING id`);
|
|
2046
|
+
return rows.length > 0;
|
|
2047
|
+
}
|
|
2048
|
+
async listPaymentTransactions(agentId, args = {}) {
|
|
2049
|
+
const limit = Math.max(1, Math.min(5000, Math.trunc(args.limit ?? 500)));
|
|
2050
|
+
const sourceClause = args.sourceId
|
|
2051
|
+
? `AND source_id = ${sqlQuote(args.sourceId)}`
|
|
2052
|
+
: "";
|
|
2053
|
+
const sinceClause = args.sinceAt
|
|
2054
|
+
? `AND posted_at >= ${sqlQuote(args.sinceAt)}`
|
|
2055
|
+
: "";
|
|
2056
|
+
const untilClause = args.untilAt
|
|
2057
|
+
? `AND posted_at <= ${sqlQuote(args.untilAt)}`
|
|
2058
|
+
: "";
|
|
2059
|
+
const merchantClause = args.merchantContains
|
|
2060
|
+
? `AND merchant_normalized LIKE ${sqlQuote(`%${args.merchantContains.trim().toLowerCase()}%`)}`
|
|
2061
|
+
: "";
|
|
2062
|
+
const directionClause = args.onlyDebits
|
|
2063
|
+
? `AND direction = ${sqlQuote("debit")}`
|
|
2064
|
+
: "";
|
|
2065
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2066
|
+
FROM life_payment_transactions
|
|
2067
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2068
|
+
${sourceClause}
|
|
2069
|
+
${sinceClause}
|
|
2070
|
+
${untilClause}
|
|
2071
|
+
${merchantClause}
|
|
2072
|
+
${directionClause}
|
|
2073
|
+
ORDER BY posted_at DESC
|
|
2074
|
+
LIMIT ${limit}`);
|
|
2075
|
+
return rows.map(parsePaymentTransaction);
|
|
2076
|
+
}
|
|
2077
|
+
async countPaymentTransactionsForSource(agentId, sourceId) {
|
|
2078
|
+
const rows = await executeRawSql(this.runtime, `SELECT COUNT(*) AS count
|
|
2079
|
+
FROM life_payment_transactions
|
|
2080
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2081
|
+
AND source_id = ${sqlQuote(sourceId)}`);
|
|
2082
|
+
const row = rows[0];
|
|
2083
|
+
return row ? toNumber(row.count ?? row.COUNT, 0) : 0;
|
|
2084
|
+
}
|
|
2085
|
+
async createActivitySignal(signal) {
|
|
2086
|
+
const metadata = signal.health !== null && signal.health !== undefined
|
|
2087
|
+
? { ...signal.metadata, health: signal.health }
|
|
2088
|
+
: signal.metadata;
|
|
2089
|
+
await executeRawSql(this.runtime, `INSERT INTO life_activity_signals (
|
|
2090
|
+
id, agent_id, source, platform, state, observed_at, idle_state,
|
|
2091
|
+
idle_time_seconds, on_battery, metadata_json, created_at
|
|
2092
|
+
) VALUES (
|
|
2093
|
+
${sqlQuote(signal.id)},
|
|
2094
|
+
${sqlQuote(signal.agentId)},
|
|
2095
|
+
${sqlQuote(signal.source)},
|
|
2096
|
+
${sqlQuote(signal.platform)},
|
|
2097
|
+
${sqlQuote(signal.state)},
|
|
2098
|
+
${sqlQuote(signal.observedAt)},
|
|
2099
|
+
${sqlText(signal.idleState)},
|
|
2100
|
+
${sqlInteger(signal.idleTimeSeconds)},
|
|
2101
|
+
${signal.onBattery === null ? "NULL" : sqlBoolean(signal.onBattery)},
|
|
2102
|
+
${sqlJson(metadata)},
|
|
2103
|
+
${sqlQuote(signal.createdAt)}
|
|
2104
|
+
)`);
|
|
2105
|
+
// Mirror into the canonical telemetry store. Dedupes on
|
|
2106
|
+
// (agent_id, dedupe_key) so re-persists and migrator replays are safe.
|
|
2107
|
+
// Failures here must not block signal persistence — the legacy table is
|
|
2108
|
+
// still the primary source of truth for the scorer — but they are
|
|
2109
|
+
// counted and logged (first + every 100th) so broken mirrors surface
|
|
2110
|
+
// in observability instead of silently rotting.
|
|
2111
|
+
try {
|
|
2112
|
+
const telemetry = buildTelemetryEventFromSignal(signal, new Date().toISOString());
|
|
2113
|
+
if (telemetry) {
|
|
2114
|
+
await this.insertTelemetryEvent(telemetry);
|
|
2115
|
+
}
|
|
2116
|
+
LifeOpsRepository.telemetryMirrorFailures.delete(signal.agentId);
|
|
2117
|
+
}
|
|
2118
|
+
catch (error) {
|
|
2119
|
+
const nextCount = (LifeOpsRepository.telemetryMirrorFailures.get(signal.agentId) ?? 0) +
|
|
2120
|
+
1;
|
|
2121
|
+
LifeOpsRepository.telemetryMirrorFailures.set(signal.agentId, nextCount);
|
|
2122
|
+
if (nextCount === 1 || nextCount % 100 === 0) {
|
|
2123
|
+
logger.warn({
|
|
2124
|
+
agentId: signal.agentId,
|
|
2125
|
+
source: signal.source,
|
|
2126
|
+
platform: signal.platform,
|
|
2127
|
+
consecutiveFailures: nextCount,
|
|
2128
|
+
error: error instanceof Error ? error.message : String(error),
|
|
2129
|
+
}, "[lifeops] Telemetry mirror failed for activity signal.");
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
async listActivitySignals(agentId, args = {}) {
|
|
2134
|
+
const clauses = [`agent_id = ${sqlQuote(agentId)}`];
|
|
2135
|
+
if (args.sinceAt) {
|
|
2136
|
+
clauses.push(`observed_at >= ${sqlQuote(args.sinceAt)}`);
|
|
2137
|
+
}
|
|
2138
|
+
if (args.states && args.states.length > 0) {
|
|
2139
|
+
const stateList = args.states.map((state) => sqlQuote(state)).join(", ");
|
|
2140
|
+
clauses.push(`state IN (${stateList})`);
|
|
2141
|
+
}
|
|
2142
|
+
const limitClause = typeof args.limit === "number" && args.limit > 0
|
|
2143
|
+
? `LIMIT ${Math.trunc(args.limit)}`
|
|
2144
|
+
: "";
|
|
2145
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2146
|
+
FROM life_activity_signals
|
|
2147
|
+
WHERE ${clauses.join("\n AND ")}
|
|
2148
|
+
ORDER BY observed_at DESC
|
|
2149
|
+
${limitClause}`);
|
|
2150
|
+
return rows.map(parseActivitySignal);
|
|
2151
|
+
}
|
|
2152
|
+
async upsertChannelPolicy(policy) {
|
|
2153
|
+
await executeRawSql(this.runtime, `INSERT INTO life_channel_policies (
|
|
2154
|
+
id, agent_id, channel_type, channel_ref, privacy_class,
|
|
2155
|
+
allow_reminders, allow_escalation, allow_posts,
|
|
2156
|
+
require_confirmation_for_actions, metadata_json, created_at, updated_at
|
|
2157
|
+
) VALUES (
|
|
2158
|
+
${sqlQuote(policy.id)},
|
|
2159
|
+
${sqlQuote(policy.agentId)},
|
|
2160
|
+
${sqlQuote(policy.channelType)},
|
|
2161
|
+
${sqlQuote(policy.channelRef)},
|
|
2162
|
+
${sqlQuote(policy.privacyClass)},
|
|
2163
|
+
${sqlBoolean(policy.allowReminders)},
|
|
2164
|
+
${sqlBoolean(policy.allowEscalation)},
|
|
2165
|
+
${sqlBoolean(policy.allowPosts)},
|
|
2166
|
+
${sqlBoolean(policy.requireConfirmationForActions)},
|
|
2167
|
+
${sqlJson(policy.metadata)},
|
|
2168
|
+
${sqlQuote(policy.createdAt)},
|
|
2169
|
+
${sqlQuote(policy.updatedAt)}
|
|
2170
|
+
)
|
|
2171
|
+
ON CONFLICT(agent_id, channel_type, channel_ref) DO UPDATE SET
|
|
2172
|
+
privacy_class = excluded.privacy_class,
|
|
2173
|
+
allow_reminders = excluded.allow_reminders,
|
|
2174
|
+
allow_escalation = excluded.allow_escalation,
|
|
2175
|
+
allow_posts = excluded.allow_posts,
|
|
2176
|
+
require_confirmation_for_actions = excluded.require_confirmation_for_actions,
|
|
2177
|
+
metadata_json = excluded.metadata_json,
|
|
2178
|
+
updated_at = excluded.updated_at`);
|
|
2179
|
+
}
|
|
2180
|
+
async listChannelPolicies(agentId) {
|
|
2181
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2182
|
+
FROM life_channel_policies
|
|
2183
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2184
|
+
ORDER BY created_at ASC`);
|
|
2185
|
+
return rows.map(parseChannelPolicy);
|
|
2186
|
+
}
|
|
2187
|
+
async getChannelPolicy(agentId, channelType, channelRef) {
|
|
2188
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2189
|
+
FROM life_channel_policies
|
|
2190
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2191
|
+
AND channel_type = ${sqlQuote(channelType)}
|
|
2192
|
+
AND channel_ref = ${sqlQuote(channelRef)}
|
|
2193
|
+
LIMIT 1`);
|
|
2194
|
+
const row = rows[0];
|
|
2195
|
+
return row ? parseChannelPolicy(row) : null;
|
|
2196
|
+
}
|
|
2197
|
+
async upsertWebsiteAccessGrant(grant) {
|
|
2198
|
+
await executeRawSql(this.runtime, `INSERT INTO life_website_access_grants (
|
|
2199
|
+
id, agent_id, group_key, definition_id, occurrence_id, websites_json,
|
|
2200
|
+
unlock_mode, unlock_duration_minutes, callback_key, unlocked_at,
|
|
2201
|
+
expires_at, revoked_at, metadata_json, created_at, updated_at
|
|
2202
|
+
) VALUES (
|
|
2203
|
+
${sqlQuote(grant.id)},
|
|
2204
|
+
${sqlQuote(grant.agentId)},
|
|
2205
|
+
${sqlQuote(grant.groupKey)},
|
|
2206
|
+
${sqlQuote(grant.definitionId)},
|
|
2207
|
+
${sqlText(grant.occurrenceId)},
|
|
2208
|
+
${sqlJson(grant.websites)},
|
|
2209
|
+
${sqlQuote(grant.unlockMode)},
|
|
2210
|
+
${sqlInteger(grant.unlockDurationMinutes)},
|
|
2211
|
+
${sqlText(grant.callbackKey)},
|
|
2212
|
+
${sqlQuote(grant.unlockedAt)},
|
|
2213
|
+
${sqlText(grant.expiresAt)},
|
|
2214
|
+
${sqlText(grant.revokedAt)},
|
|
2215
|
+
${sqlJson(grant.metadata)},
|
|
2216
|
+
${sqlQuote(grant.createdAt)},
|
|
2217
|
+
${sqlQuote(grant.updatedAt)}
|
|
2218
|
+
)`);
|
|
2219
|
+
}
|
|
2220
|
+
async listWebsiteAccessGrants(agentId) {
|
|
2221
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2222
|
+
FROM life_website_access_grants
|
|
2223
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2224
|
+
ORDER BY updated_at DESC, created_at DESC`);
|
|
2225
|
+
return rows.map(parseWebsiteAccessGrant);
|
|
2226
|
+
}
|
|
2227
|
+
async revokeWebsiteAccessGrants(agentId, args) {
|
|
2228
|
+
const clauses = [`agent_id = ${sqlQuote(agentId)}`, "revoked_at IS NULL"];
|
|
2229
|
+
if (args.groupKey) {
|
|
2230
|
+
clauses.push(`group_key = ${sqlQuote(args.groupKey)}`);
|
|
2231
|
+
}
|
|
2232
|
+
if (args.callbackKey) {
|
|
2233
|
+
clauses.push(`callback_key = ${sqlQuote(args.callbackKey)}`);
|
|
2234
|
+
}
|
|
2235
|
+
await executeRawSql(this.runtime, `UPDATE life_website_access_grants
|
|
2236
|
+
SET revoked_at = ${sqlQuote(args.revokedAt)},
|
|
2237
|
+
updated_at = ${sqlQuote(args.revokedAt)}
|
|
2238
|
+
WHERE ${clauses.join("\n AND ")}`);
|
|
2239
|
+
}
|
|
2240
|
+
async upsertConnectorGrant(grant) {
|
|
2241
|
+
const identityEmail = deriveConnectorIdentityEmail(grant.identity);
|
|
2242
|
+
const logicalIdentityClause = identityEmail === null
|
|
2243
|
+
? "identity_email IS NULL"
|
|
2244
|
+
: `identity_email = ${sqlQuote(identityEmail)}`;
|
|
2245
|
+
const existingRows = await executeRawSql(this.runtime, `SELECT id, created_at
|
|
2246
|
+
FROM life_connector_grants
|
|
2247
|
+
WHERE agent_id = ${sqlQuote(grant.agentId)}
|
|
2248
|
+
AND provider = ${sqlQuote(grant.provider)}
|
|
2249
|
+
AND side = ${sqlQuote(grant.side)}
|
|
2250
|
+
AND mode = ${sqlQuote(grant.mode)}
|
|
2251
|
+
AND ${logicalIdentityClause}
|
|
2252
|
+
ORDER BY updated_at DESC, created_at DESC
|
|
2253
|
+
LIMIT 1`);
|
|
2254
|
+
const existingRow = existingRows[0] ?? null;
|
|
2255
|
+
const targetId = existingRow ? toText(existingRow.id, grant.id) : grant.id;
|
|
2256
|
+
const createdAt = existingRow
|
|
2257
|
+
? toText(existingRow.created_at, grant.createdAt)
|
|
2258
|
+
: grant.createdAt;
|
|
2259
|
+
if (existingRow) {
|
|
2260
|
+
await executeRawSql(this.runtime, `UPDATE life_connector_grants
|
|
2261
|
+
SET identity_json = ${sqlJson(grant.identity)},
|
|
2262
|
+
identity_email = ${sqlText(identityEmail)},
|
|
2263
|
+
granted_scopes_json = ${sqlJson(grant.grantedScopes)},
|
|
2264
|
+
capabilities_json = ${sqlJson(grant.capabilities)},
|
|
2265
|
+
token_ref = ${sqlText(grant.tokenRef)},
|
|
2266
|
+
execution_target = ${sqlQuote(grant.executionTarget)},
|
|
2267
|
+
source_of_truth = ${sqlQuote(grant.sourceOfTruth)},
|
|
2268
|
+
preferred_by_agent = ${sqlBoolean(grant.preferredByAgent)},
|
|
2269
|
+
cloud_connection_id = ${sqlText(grant.cloudConnectionId)},
|
|
2270
|
+
metadata_json = ${sqlJson(grant.metadata)},
|
|
2271
|
+
last_refresh_at = ${sqlText(grant.lastRefreshAt)},
|
|
2272
|
+
updated_at = ${sqlQuote(grant.updatedAt)}
|
|
2273
|
+
WHERE id = ${sqlQuote(targetId)}`);
|
|
2274
|
+
return;
|
|
2275
|
+
}
|
|
2276
|
+
await executeRawSql(this.runtime, `INSERT INTO life_connector_grants (
|
|
2277
|
+
id, agent_id, provider, side, identity_json, identity_email,
|
|
2278
|
+
granted_scopes_json,
|
|
2279
|
+
capabilities_json, token_ref, mode, execution_target, source_of_truth,
|
|
2280
|
+
preferred_by_agent, cloud_connection_id, metadata_json,
|
|
2281
|
+
last_refresh_at, created_at, updated_at
|
|
2282
|
+
) VALUES (
|
|
2283
|
+
${sqlQuote(targetId)},
|
|
2284
|
+
${sqlQuote(grant.agentId)},
|
|
2285
|
+
${sqlQuote(grant.provider)},
|
|
2286
|
+
${sqlQuote(grant.side)},
|
|
2287
|
+
${sqlJson(grant.identity)},
|
|
2288
|
+
${sqlText(identityEmail)},
|
|
2289
|
+
${sqlJson(grant.grantedScopes)},
|
|
2290
|
+
${sqlJson(grant.capabilities)},
|
|
2291
|
+
${sqlText(grant.tokenRef)},
|
|
2292
|
+
${sqlQuote(grant.mode)},
|
|
2293
|
+
${sqlQuote(grant.executionTarget)},
|
|
2294
|
+
${sqlQuote(grant.sourceOfTruth)},
|
|
2295
|
+
${sqlBoolean(grant.preferredByAgent)},
|
|
2296
|
+
${sqlText(grant.cloudConnectionId)},
|
|
2297
|
+
${sqlJson(grant.metadata)},
|
|
2298
|
+
${sqlText(grant.lastRefreshAt)},
|
|
2299
|
+
${sqlQuote(createdAt)},
|
|
2300
|
+
${sqlQuote(grant.updatedAt)}
|
|
2301
|
+
)
|
|
2302
|
+
ON CONFLICT(id) DO UPDATE SET
|
|
2303
|
+
agent_id = excluded.agent_id,
|
|
2304
|
+
provider = excluded.provider,
|
|
2305
|
+
side = excluded.side,
|
|
2306
|
+
identity_json = excluded.identity_json,
|
|
2307
|
+
identity_email = excluded.identity_email,
|
|
2308
|
+
granted_scopes_json = excluded.granted_scopes_json,
|
|
2309
|
+
capabilities_json = excluded.capabilities_json,
|
|
2310
|
+
token_ref = excluded.token_ref,
|
|
2311
|
+
execution_target = excluded.execution_target,
|
|
2312
|
+
source_of_truth = excluded.source_of_truth,
|
|
2313
|
+
preferred_by_agent = excluded.preferred_by_agent,
|
|
2314
|
+
cloud_connection_id = excluded.cloud_connection_id,
|
|
2315
|
+
metadata_json = excluded.metadata_json,
|
|
2316
|
+
last_refresh_at = excluded.last_refresh_at,
|
|
2317
|
+
created_at = life_connector_grants.created_at,
|
|
2318
|
+
updated_at = excluded.updated_at`);
|
|
2319
|
+
}
|
|
2320
|
+
async listConnectorGrants(agentId) {
|
|
2321
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2322
|
+
FROM life_connector_grants
|
|
2323
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2324
|
+
ORDER BY created_at ASC`);
|
|
2325
|
+
return rows.map(parseConnectorGrant);
|
|
2326
|
+
}
|
|
2327
|
+
async getConnectorGrant(agentId, provider, mode, side = "owner") {
|
|
2328
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2329
|
+
FROM life_connector_grants
|
|
2330
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2331
|
+
AND provider = ${sqlQuote(provider)}
|
|
2332
|
+
AND side = ${sqlQuote(side)}
|
|
2333
|
+
AND mode = ${sqlQuote(mode)}
|
|
2334
|
+
ORDER BY updated_at DESC, created_at DESC
|
|
2335
|
+
LIMIT 1`);
|
|
2336
|
+
const row = rows[0];
|
|
2337
|
+
return row ? parseConnectorGrant(row) : null;
|
|
2338
|
+
}
|
|
2339
|
+
async deleteConnectorGrant(agentId, provider, mode, side) {
|
|
2340
|
+
const modeClause = mode ? `AND mode = ${sqlQuote(mode)}` : "";
|
|
2341
|
+
const sideClause = side ? `AND side = ${sqlQuote(side)}` : "";
|
|
2342
|
+
await executeRawSql(this.runtime, `DELETE FROM life_connector_grants
|
|
2343
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2344
|
+
AND provider = ${sqlQuote(provider)}
|
|
2345
|
+
${modeClause}
|
|
2346
|
+
${sideClause}`);
|
|
2347
|
+
}
|
|
2348
|
+
async upsertCalendarEvent(event, side = event.side) {
|
|
2349
|
+
await executeRawSql(this.runtime, `INSERT INTO life_calendar_events (
|
|
2350
|
+
id, agent_id, provider, side, calendar_id, external_event_id, title,
|
|
2351
|
+
description, location, status, start_at, end_at, is_all_day,
|
|
2352
|
+
timezone, html_link, conference_link, organizer_json,
|
|
2353
|
+
attendees_json, metadata_json, synced_at, updated_at
|
|
2354
|
+
) VALUES (
|
|
2355
|
+
${sqlQuote(event.id)},
|
|
2356
|
+
${sqlQuote(event.agentId)},
|
|
2357
|
+
${sqlQuote(event.provider)},
|
|
2358
|
+
${sqlQuote(side)},
|
|
2359
|
+
${sqlQuote(event.calendarId)},
|
|
2360
|
+
${sqlQuote(event.externalId)},
|
|
2361
|
+
${sqlQuote(event.title)},
|
|
2362
|
+
${sqlQuote(event.description)},
|
|
2363
|
+
${sqlQuote(event.location)},
|
|
2364
|
+
${sqlQuote(event.status)},
|
|
2365
|
+
${sqlQuote(event.startAt)},
|
|
2366
|
+
${sqlQuote(event.endAt)},
|
|
2367
|
+
${sqlBoolean(event.isAllDay)},
|
|
2368
|
+
${sqlText(event.timezone)},
|
|
2369
|
+
${sqlText(event.htmlLink)},
|
|
2370
|
+
${sqlText(event.conferenceLink)},
|
|
2371
|
+
${event.organizer ? sqlJson(event.organizer) : "NULL"},
|
|
2372
|
+
${sqlJson(event.attendees)},
|
|
2373
|
+
${sqlJson(event.metadata)},
|
|
2374
|
+
${sqlQuote(event.syncedAt)},
|
|
2375
|
+
${sqlQuote(event.updatedAt)}
|
|
2376
|
+
)
|
|
2377
|
+
ON CONFLICT(agent_id, provider, side, calendar_id, external_event_id) DO UPDATE SET
|
|
2378
|
+
title = excluded.title,
|
|
2379
|
+
description = excluded.description,
|
|
2380
|
+
location = excluded.location,
|
|
2381
|
+
status = excluded.status,
|
|
2382
|
+
start_at = excluded.start_at,
|
|
2383
|
+
end_at = excluded.end_at,
|
|
2384
|
+
is_all_day = excluded.is_all_day,
|
|
2385
|
+
timezone = excluded.timezone,
|
|
2386
|
+
html_link = excluded.html_link,
|
|
2387
|
+
conference_link = excluded.conference_link,
|
|
2388
|
+
organizer_json = excluded.organizer_json,
|
|
2389
|
+
attendees_json = excluded.attendees_json,
|
|
2390
|
+
metadata_json = excluded.metadata_json,
|
|
2391
|
+
synced_at = excluded.synced_at,
|
|
2392
|
+
updated_at = excluded.updated_at`);
|
|
2393
|
+
}
|
|
2394
|
+
async deleteCalendarEventsForProvider(agentId, provider, calendarId, side) {
|
|
2395
|
+
const calendarClause = calendarId
|
|
2396
|
+
? `AND calendar_id = ${sqlQuote(calendarId)}`
|
|
2397
|
+
: "";
|
|
2398
|
+
const sideClause = side ? `AND side = ${sqlQuote(side)}` : "";
|
|
2399
|
+
await executeRawSql(this.runtime, `DELETE FROM life_calendar_events
|
|
2400
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2401
|
+
AND provider = ${sqlQuote(provider)}
|
|
2402
|
+
${calendarClause}
|
|
2403
|
+
${sideClause}`);
|
|
2404
|
+
}
|
|
2405
|
+
async deleteCalendarEventByExternalId(agentId, provider, calendarId, externalEventId, side) {
|
|
2406
|
+
const sideClause = side ? `AND side = ${sqlQuote(side)}` : "";
|
|
2407
|
+
await executeRawSql(this.runtime, `DELETE FROM life_calendar_events
|
|
2408
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2409
|
+
AND provider = ${sqlQuote(provider)}
|
|
2410
|
+
AND calendar_id = ${sqlQuote(calendarId)}
|
|
2411
|
+
AND external_event_id = ${sqlQuote(externalEventId)}
|
|
2412
|
+
${sideClause}`);
|
|
2413
|
+
}
|
|
2414
|
+
async pruneCalendarEventsInWindow(agentId, provider, calendarId, timeMin, timeMax, keepExternalIds, side = "owner") {
|
|
2415
|
+
const keepClause = keepExternalIds.length > 0
|
|
2416
|
+
? `AND external_event_id NOT IN (${keepExternalIds
|
|
2417
|
+
.map((externalId) => sqlQuote(externalId))
|
|
2418
|
+
.join(", ")})`
|
|
2419
|
+
: "";
|
|
2420
|
+
await executeRawSql(this.runtime, `DELETE FROM life_calendar_events
|
|
2421
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2422
|
+
AND provider = ${sqlQuote(provider)}
|
|
2423
|
+
AND side = ${sqlQuote(side)}
|
|
2424
|
+
AND calendar_id = ${sqlQuote(calendarId)}
|
|
2425
|
+
AND end_at > ${sqlQuote(timeMin)}
|
|
2426
|
+
AND start_at < ${sqlQuote(timeMax)}
|
|
2427
|
+
${keepClause}`);
|
|
2428
|
+
}
|
|
2429
|
+
async listCalendarEvents(agentId, provider, timeMin, timeMax, side) {
|
|
2430
|
+
const timeMinClause = timeMin ? `AND end_at > ${sqlQuote(timeMin)}` : "";
|
|
2431
|
+
const timeMaxClause = timeMax ? `AND start_at < ${sqlQuote(timeMax)}` : "";
|
|
2432
|
+
const sideClause = side ? `AND side = ${sqlQuote(side)}` : "";
|
|
2433
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2434
|
+
FROM life_calendar_events
|
|
2435
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2436
|
+
AND provider = ${sqlQuote(provider)}
|
|
2437
|
+
${sideClause}
|
|
2438
|
+
${timeMinClause}
|
|
2439
|
+
${timeMaxClause}
|
|
2440
|
+
ORDER BY start_at ASC`);
|
|
2441
|
+
return rows.map(parseCalendarEvent);
|
|
2442
|
+
}
|
|
2443
|
+
/**
|
|
2444
|
+
* Returns events whose `end_at` falls in (cursorEndAt, upToIso] OR
|
|
2445
|
+
* (end_at == cursorEndAt AND id > cursorId). Ordered by (end_at, id) ascending
|
|
2446
|
+
* so callers can advance a tuple cursor and never re-fire for the same event.
|
|
2447
|
+
*/
|
|
2448
|
+
async listCalendarEventsEndedAfterCursor(args) {
|
|
2449
|
+
const sideClause = args.side ? `AND side = ${sqlQuote(args.side)}` : "";
|
|
2450
|
+
let cursorClause = "";
|
|
2451
|
+
if (args.cursorEndAt) {
|
|
2452
|
+
cursorClause = args.cursorEventId
|
|
2453
|
+
? `AND (end_at > ${sqlQuote(args.cursorEndAt)}
|
|
2454
|
+
OR (end_at = ${sqlQuote(args.cursorEndAt)} AND id > ${sqlQuote(args.cursorEventId)}))`
|
|
2455
|
+
: `AND end_at > ${sqlQuote(args.cursorEndAt)}`;
|
|
2456
|
+
}
|
|
2457
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2458
|
+
FROM life_calendar_events
|
|
2459
|
+
WHERE agent_id = ${sqlQuote(args.agentId)}
|
|
2460
|
+
AND provider = ${sqlQuote(args.provider)}
|
|
2461
|
+
${sideClause}
|
|
2462
|
+
AND end_at <= ${sqlQuote(args.upToIso)}
|
|
2463
|
+
${cursorClause}
|
|
2464
|
+
ORDER BY end_at ASC, id ASC
|
|
2465
|
+
LIMIT ${Math.max(1, Math.floor(args.limit))}`);
|
|
2466
|
+
return rows.map(parseCalendarEvent);
|
|
2467
|
+
}
|
|
2468
|
+
async upsertCalendarSyncState(state) {
|
|
2469
|
+
await executeRawSql(this.runtime, `INSERT INTO life_calendar_sync_states (
|
|
2470
|
+
id, agent_id, provider, side, calendar_id, window_start_at,
|
|
2471
|
+
window_end_at, synced_at, updated_at
|
|
2472
|
+
) VALUES (
|
|
2473
|
+
${sqlQuote(state.id)},
|
|
2474
|
+
${sqlQuote(state.agentId)},
|
|
2475
|
+
${sqlQuote(state.provider)},
|
|
2476
|
+
${sqlQuote(state.side)},
|
|
2477
|
+
${sqlQuote(state.calendarId)},
|
|
2478
|
+
${sqlQuote(state.windowStartAt)},
|
|
2479
|
+
${sqlQuote(state.windowEndAt)},
|
|
2480
|
+
${sqlQuote(state.syncedAt)},
|
|
2481
|
+
${sqlQuote(state.updatedAt)}
|
|
2482
|
+
)
|
|
2483
|
+
ON CONFLICT(agent_id, provider, side, calendar_id) DO UPDATE SET
|
|
2484
|
+
window_start_at = excluded.window_start_at,
|
|
2485
|
+
window_end_at = excluded.window_end_at,
|
|
2486
|
+
synced_at = excluded.synced_at,
|
|
2487
|
+
updated_at = excluded.updated_at`);
|
|
2488
|
+
}
|
|
2489
|
+
async getCalendarSyncState(agentId, provider, calendarId, side) {
|
|
2490
|
+
const sideClause = side ? `AND side = ${sqlQuote(side)}` : "";
|
|
2491
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2492
|
+
FROM life_calendar_sync_states
|
|
2493
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2494
|
+
AND provider = ${sqlQuote(provider)}
|
|
2495
|
+
AND calendar_id = ${sqlQuote(calendarId)}
|
|
2496
|
+
${sideClause}
|
|
2497
|
+
LIMIT 1`);
|
|
2498
|
+
const row = rows[0];
|
|
2499
|
+
return row ? parseCalendarSyncState(row) : null;
|
|
2500
|
+
}
|
|
2501
|
+
async deleteCalendarSyncState(agentId, provider, calendarId, side) {
|
|
2502
|
+
const calendarClause = calendarId
|
|
2503
|
+
? `AND calendar_id = ${sqlQuote(calendarId)}`
|
|
2504
|
+
: "";
|
|
2505
|
+
const sideClause = side ? `AND side = ${sqlQuote(side)}` : "";
|
|
2506
|
+
await executeRawSql(this.runtime, `DELETE FROM life_calendar_sync_states
|
|
2507
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2508
|
+
AND provider = ${sqlQuote(provider)}
|
|
2509
|
+
${calendarClause}
|
|
2510
|
+
${sideClause}`);
|
|
2511
|
+
}
|
|
2512
|
+
async upsertGmailMessage(message, side = message.side) {
|
|
2513
|
+
await executeRawSql(this.runtime, `INSERT INTO life_gmail_messages (
|
|
2514
|
+
id, agent_id, provider, side, external_message_id, thread_id, subject,
|
|
2515
|
+
from_display, from_email, reply_to, to_json, cc_json, snippet,
|
|
2516
|
+
received_at, is_unread, is_important, likely_reply_needed,
|
|
2517
|
+
triage_score, triage_reason, label_ids_json, html_link, metadata_json,
|
|
2518
|
+
synced_at, updated_at
|
|
2519
|
+
) VALUES (
|
|
2520
|
+
${sqlQuote(message.id)},
|
|
2521
|
+
${sqlQuote(message.agentId)},
|
|
2522
|
+
${sqlQuote(message.provider)},
|
|
2523
|
+
${sqlQuote(side)},
|
|
2524
|
+
${sqlQuote(message.externalId)},
|
|
2525
|
+
${sqlQuote(message.threadId)},
|
|
2526
|
+
${sqlQuote(message.subject)},
|
|
2527
|
+
${sqlQuote(message.from)},
|
|
2528
|
+
${sqlText(message.fromEmail)},
|
|
2529
|
+
${sqlText(message.replyTo)},
|
|
2530
|
+
${sqlJson(message.to)},
|
|
2531
|
+
${sqlJson(message.cc)},
|
|
2532
|
+
${sqlQuote(message.snippet)},
|
|
2533
|
+
${sqlQuote(message.receivedAt)},
|
|
2534
|
+
${sqlBoolean(message.isUnread)},
|
|
2535
|
+
${sqlBoolean(message.isImportant)},
|
|
2536
|
+
${sqlBoolean(message.likelyReplyNeeded)},
|
|
2537
|
+
${sqlInteger(message.triageScore)},
|
|
2538
|
+
${sqlQuote(message.triageReason)},
|
|
2539
|
+
${sqlJson(message.labels)},
|
|
2540
|
+
${sqlText(message.htmlLink)},
|
|
2541
|
+
${sqlJson(message.metadata)},
|
|
2542
|
+
${sqlQuote(message.syncedAt)},
|
|
2543
|
+
${sqlQuote(message.updatedAt)}
|
|
2544
|
+
)
|
|
2545
|
+
ON CONFLICT(agent_id, provider, side, external_message_id) DO UPDATE SET
|
|
2546
|
+
thread_id = excluded.thread_id,
|
|
2547
|
+
subject = excluded.subject,
|
|
2548
|
+
from_display = excluded.from_display,
|
|
2549
|
+
from_email = excluded.from_email,
|
|
2550
|
+
reply_to = excluded.reply_to,
|
|
2551
|
+
to_json = excluded.to_json,
|
|
2552
|
+
cc_json = excluded.cc_json,
|
|
2553
|
+
snippet = excluded.snippet,
|
|
2554
|
+
received_at = excluded.received_at,
|
|
2555
|
+
is_unread = excluded.is_unread,
|
|
2556
|
+
is_important = excluded.is_important,
|
|
2557
|
+
likely_reply_needed = excluded.likely_reply_needed,
|
|
2558
|
+
triage_score = excluded.triage_score,
|
|
2559
|
+
triage_reason = excluded.triage_reason,
|
|
2560
|
+
label_ids_json = excluded.label_ids_json,
|
|
2561
|
+
html_link = excluded.html_link,
|
|
2562
|
+
metadata_json = excluded.metadata_json,
|
|
2563
|
+
synced_at = excluded.synced_at,
|
|
2564
|
+
updated_at = excluded.updated_at`);
|
|
2565
|
+
}
|
|
2566
|
+
async pruneGmailMessages(agentId, provider, keepExternalIds, side) {
|
|
2567
|
+
const keepClause = keepExternalIds.length > 0
|
|
2568
|
+
? `AND external_message_id NOT IN (${keepExternalIds
|
|
2569
|
+
.map((externalId) => sqlQuote(externalId))
|
|
2570
|
+
.join(", ")})`
|
|
2571
|
+
: "";
|
|
2572
|
+
const sideClause = side ? `AND side = ${sqlQuote(side)}` : "";
|
|
2573
|
+
await executeRawSql(this.runtime, `DELETE FROM life_gmail_messages
|
|
2574
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2575
|
+
AND provider = ${sqlQuote(provider)}
|
|
2576
|
+
${sideClause}
|
|
2577
|
+
${keepClause}`);
|
|
2578
|
+
}
|
|
2579
|
+
async listGmailMessages(agentId, provider, options, side) {
|
|
2580
|
+
const DEFAULT_GMAIL_LIST_LIMIT = 200;
|
|
2581
|
+
const limit = options?.maxResults !== undefined && Number.isFinite(options.maxResults)
|
|
2582
|
+
? options.maxResults
|
|
2583
|
+
: DEFAULT_GMAIL_LIST_LIMIT;
|
|
2584
|
+
const maxResultsClause = `LIMIT ${sqlInteger(limit)}`;
|
|
2585
|
+
const threadClause = options?.threadId
|
|
2586
|
+
? `AND thread_id = ${sqlQuote(options.threadId)}`
|
|
2587
|
+
: "";
|
|
2588
|
+
const sinceClause = options?.since
|
|
2589
|
+
? `AND received_at >= ${sqlQuote(options.since)}`
|
|
2590
|
+
: "";
|
|
2591
|
+
const sideClause = side ? `AND side = ${sqlQuote(side)}` : "";
|
|
2592
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2593
|
+
FROM life_gmail_messages
|
|
2594
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2595
|
+
AND provider = ${sqlQuote(provider)}
|
|
2596
|
+
${sideClause}
|
|
2597
|
+
${threadClause}
|
|
2598
|
+
${sinceClause}
|
|
2599
|
+
ORDER BY triage_score DESC, received_at DESC
|
|
2600
|
+
${maxResultsClause}`);
|
|
2601
|
+
return rows.map(parseGmailMessageSummary);
|
|
2602
|
+
}
|
|
2603
|
+
async getGmailMessage(agentId, provider, messageId, side) {
|
|
2604
|
+
const sideClause = side ? `AND side = ${sqlQuote(side)}` : "";
|
|
2605
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2606
|
+
FROM life_gmail_messages
|
|
2607
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2608
|
+
AND provider = ${sqlQuote(provider)}
|
|
2609
|
+
${sideClause}
|
|
2610
|
+
AND id = ${sqlQuote(messageId)}
|
|
2611
|
+
LIMIT 1`);
|
|
2612
|
+
const row = rows[0];
|
|
2613
|
+
return row ? parseGmailMessageSummary(row) : null;
|
|
2614
|
+
}
|
|
2615
|
+
async upsertCachedInboxMessages(agentId, messages) {
|
|
2616
|
+
if (messages.length === 0)
|
|
2617
|
+
return;
|
|
2618
|
+
const now = isoNow();
|
|
2619
|
+
for (const message of messages) {
|
|
2620
|
+
await executeRawSql(this.runtime, `INSERT INTO life_inbox_messages (
|
|
2621
|
+
id, agent_id, channel, external_id, thread_id, sender_id,
|
|
2622
|
+
sender_display, sender_email, subject, snippet, received_at,
|
|
2623
|
+
is_unread, deep_link, source_ref_json, chat_type, participant_count,
|
|
2624
|
+
gmail_account_id, gmail_account_email, priority_score,
|
|
2625
|
+
priority_category, priority_flags_json, cached_at, updated_at
|
|
2626
|
+
) VALUES (
|
|
2627
|
+
${sqlQuote(message.id)},
|
|
2628
|
+
${sqlQuote(agentId)},
|
|
2629
|
+
${sqlQuote(message.channel)},
|
|
2630
|
+
${sqlQuote(message.sourceRef.externalId)},
|
|
2631
|
+
${sqlText(message.threadId)},
|
|
2632
|
+
${sqlQuote(message.sender.id)},
|
|
2633
|
+
${sqlQuote(message.sender.displayName)},
|
|
2634
|
+
${sqlText(message.sender.email)},
|
|
2635
|
+
${sqlText(message.subject)},
|
|
2636
|
+
${sqlQuote(message.snippet)},
|
|
2637
|
+
${sqlQuote(message.receivedAt)},
|
|
2638
|
+
${sqlBoolean(message.unread)},
|
|
2639
|
+
${sqlText(message.deepLink)},
|
|
2640
|
+
${sqlJson(message.sourceRef)},
|
|
2641
|
+
${sqlQuote(message.chatType ?? "dm")},
|
|
2642
|
+
${sqlInteger(message.participantCount)},
|
|
2643
|
+
${sqlText(message.gmailAccountId)},
|
|
2644
|
+
${sqlText(message.gmailAccountEmail)},
|
|
2645
|
+
${sqlInteger(message.priorityScore)},
|
|
2646
|
+
${sqlText(message.priorityCategory)},
|
|
2647
|
+
${sqlJson([])},
|
|
2648
|
+
${sqlQuote(now)},
|
|
2649
|
+
${sqlQuote(now)}
|
|
2650
|
+
)
|
|
2651
|
+
ON CONFLICT(agent_id, channel, external_id) DO UPDATE SET
|
|
2652
|
+
id = excluded.id,
|
|
2653
|
+
thread_id = excluded.thread_id,
|
|
2654
|
+
sender_id = excluded.sender_id,
|
|
2655
|
+
sender_display = excluded.sender_display,
|
|
2656
|
+
sender_email = excluded.sender_email,
|
|
2657
|
+
subject = excluded.subject,
|
|
2658
|
+
snippet = excluded.snippet,
|
|
2659
|
+
received_at = excluded.received_at,
|
|
2660
|
+
is_unread = excluded.is_unread,
|
|
2661
|
+
deep_link = excluded.deep_link,
|
|
2662
|
+
source_ref_json = excluded.source_ref_json,
|
|
2663
|
+
chat_type = excluded.chat_type,
|
|
2664
|
+
participant_count = excluded.participant_count,
|
|
2665
|
+
gmail_account_id = excluded.gmail_account_id,
|
|
2666
|
+
gmail_account_email = excluded.gmail_account_email,
|
|
2667
|
+
priority_score = COALESCE(excluded.priority_score, life_inbox_messages.priority_score),
|
|
2668
|
+
priority_category = COALESCE(excluded.priority_category, life_inbox_messages.priority_category),
|
|
2669
|
+
priority_flags_json = CASE
|
|
2670
|
+
WHEN excluded.priority_score IS NULL THEN life_inbox_messages.priority_flags_json
|
|
2671
|
+
ELSE excluded.priority_flags_json
|
|
2672
|
+
END,
|
|
2673
|
+
cached_at = excluded.cached_at,
|
|
2674
|
+
updated_at = excluded.updated_at`);
|
|
2675
|
+
}
|
|
2676
|
+
}
|
|
2677
|
+
async listCachedInboxMessages(agentId, options) {
|
|
2678
|
+
const channelClause = options?.channels && options.channels.length > 0
|
|
2679
|
+
? `AND channel IN (${options.channels
|
|
2680
|
+
.map((channel) => sqlQuote(channel))
|
|
2681
|
+
.join(", ")})`
|
|
2682
|
+
: "";
|
|
2683
|
+
const gmailAccountClause = options?.gmailAccountId
|
|
2684
|
+
? `AND gmail_account_id = ${sqlQuote(options.gmailAccountId)}`
|
|
2685
|
+
: "";
|
|
2686
|
+
const limit = options?.maxResults !== undefined && Number.isFinite(options.maxResults)
|
|
2687
|
+
? Math.max(1, Math.floor(options.maxResults))
|
|
2688
|
+
: 500;
|
|
2689
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2690
|
+
FROM life_inbox_messages
|
|
2691
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2692
|
+
${channelClause}
|
|
2693
|
+
${gmailAccountClause}
|
|
2694
|
+
ORDER BY received_at DESC
|
|
2695
|
+
LIMIT ${sqlInteger(limit)}`);
|
|
2696
|
+
return rows.map(parseCachedInboxMessage);
|
|
2697
|
+
}
|
|
2698
|
+
async deleteGmailMessages(agentId, provider, messageIds, side) {
|
|
2699
|
+
if (messageIds.length === 0) {
|
|
2700
|
+
return;
|
|
2701
|
+
}
|
|
2702
|
+
const sideClause = side ? `AND side = ${sqlQuote(side)}` : "";
|
|
2703
|
+
await executeRawSql(this.runtime, `DELETE FROM life_gmail_messages
|
|
2704
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2705
|
+
AND provider = ${sqlQuote(provider)}
|
|
2706
|
+
${sideClause}
|
|
2707
|
+
AND id IN (${messageIds.map((messageId) => sqlQuote(messageId)).join(", ")})`);
|
|
2708
|
+
}
|
|
2709
|
+
async deleteGmailMessagesForProvider(agentId, provider, side) {
|
|
2710
|
+
const sideClause = side ? `AND side = ${sqlQuote(side)}` : "";
|
|
2711
|
+
await executeRawSql(this.runtime, `DELETE FROM life_gmail_messages
|
|
2712
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2713
|
+
AND provider = ${sqlQuote(provider)}
|
|
2714
|
+
${sideClause}`);
|
|
2715
|
+
}
|
|
2716
|
+
async upsertGmailSyncState(state) {
|
|
2717
|
+
await executeRawSql(this.runtime, `INSERT INTO life_gmail_sync_states (
|
|
2718
|
+
id, agent_id, provider, side, mailbox, max_results, synced_at, updated_at
|
|
2719
|
+
) VALUES (
|
|
2720
|
+
${sqlQuote(state.id)},
|
|
2721
|
+
${sqlQuote(state.agentId)},
|
|
2722
|
+
${sqlQuote(state.provider)},
|
|
2723
|
+
${sqlQuote(state.side)},
|
|
2724
|
+
${sqlQuote(state.mailbox)},
|
|
2725
|
+
${sqlInteger(state.maxResults)},
|
|
2726
|
+
${sqlQuote(state.syncedAt)},
|
|
2727
|
+
${sqlQuote(state.updatedAt)}
|
|
2728
|
+
)
|
|
2729
|
+
ON CONFLICT(agent_id, provider, side, mailbox) DO UPDATE SET
|
|
2730
|
+
max_results = excluded.max_results,
|
|
2731
|
+
synced_at = excluded.synced_at,
|
|
2732
|
+
updated_at = excluded.updated_at`);
|
|
2733
|
+
}
|
|
2734
|
+
async getGmailSyncState(agentId, provider, mailbox, side) {
|
|
2735
|
+
const sideClause = side ? `AND side = ${sqlQuote(side)}` : "";
|
|
2736
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2737
|
+
FROM life_gmail_sync_states
|
|
2738
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2739
|
+
AND provider = ${sqlQuote(provider)}
|
|
2740
|
+
AND mailbox = ${sqlQuote(mailbox)}
|
|
2741
|
+
${sideClause}
|
|
2742
|
+
LIMIT 1`);
|
|
2743
|
+
const row = rows[0];
|
|
2744
|
+
return row ? parseGmailSyncState(row) : null;
|
|
2745
|
+
}
|
|
2746
|
+
async deleteGmailSyncState(agentId, provider, mailbox, side) {
|
|
2747
|
+
const mailboxClause = mailbox ? `AND mailbox = ${sqlQuote(mailbox)}` : "";
|
|
2748
|
+
const sideClause = side ? `AND side = ${sqlQuote(side)}` : "";
|
|
2749
|
+
await executeRawSql(this.runtime, `DELETE FROM life_gmail_sync_states
|
|
2750
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2751
|
+
AND provider = ${sqlQuote(provider)}
|
|
2752
|
+
${mailboxClause}
|
|
2753
|
+
${sideClause}`);
|
|
2754
|
+
}
|
|
2755
|
+
async upsertGmailSpamReviewItem(item) {
|
|
2756
|
+
await executeRawSql(this.runtime, `INSERT INTO life_gmail_spam_review_items (
|
|
2757
|
+
id, agent_id, provider, side, grant_id, account_email, message_id,
|
|
2758
|
+
external_message_id, thread_id, subject, from_display, from_email,
|
|
2759
|
+
received_at, snippet, label_ids_json, rationale, confidence, status,
|
|
2760
|
+
created_at, updated_at, reviewed_at
|
|
2761
|
+
) VALUES (
|
|
2762
|
+
${sqlQuote(item.id)},
|
|
2763
|
+
${sqlQuote(item.agentId)},
|
|
2764
|
+
${sqlQuote(item.provider)},
|
|
2765
|
+
${sqlQuote(item.side)},
|
|
2766
|
+
${sqlQuote(item.grantId)},
|
|
2767
|
+
${sqlText(item.accountEmail)},
|
|
2768
|
+
${sqlQuote(item.messageId)},
|
|
2769
|
+
${sqlQuote(item.externalMessageId)},
|
|
2770
|
+
${sqlQuote(item.threadId)},
|
|
2771
|
+
${sqlQuote(item.subject)},
|
|
2772
|
+
${sqlQuote(item.from)},
|
|
2773
|
+
${sqlText(item.fromEmail)},
|
|
2774
|
+
${sqlQuote(item.receivedAt)},
|
|
2775
|
+
${sqlQuote(item.snippet)},
|
|
2776
|
+
${sqlJson(item.labels)},
|
|
2777
|
+
${sqlQuote(item.rationale)},
|
|
2778
|
+
${sqlNumber(item.confidence)},
|
|
2779
|
+
${sqlQuote(item.status)},
|
|
2780
|
+
${sqlQuote(item.createdAt)},
|
|
2781
|
+
${sqlQuote(item.updatedAt)},
|
|
2782
|
+
${sqlText(item.reviewedAt)}
|
|
2783
|
+
)
|
|
2784
|
+
ON CONFLICT(agent_id, provider, side, grant_id, external_message_id) DO UPDATE SET
|
|
2785
|
+
account_email = excluded.account_email,
|
|
2786
|
+
message_id = excluded.message_id,
|
|
2787
|
+
thread_id = excluded.thread_id,
|
|
2788
|
+
subject = excluded.subject,
|
|
2789
|
+
from_display = excluded.from_display,
|
|
2790
|
+
from_email = excluded.from_email,
|
|
2791
|
+
received_at = excluded.received_at,
|
|
2792
|
+
snippet = excluded.snippet,
|
|
2793
|
+
label_ids_json = excluded.label_ids_json,
|
|
2794
|
+
rationale = excluded.rationale,
|
|
2795
|
+
confidence = excluded.confidence,
|
|
2796
|
+
updated_at = excluded.updated_at`);
|
|
2797
|
+
}
|
|
2798
|
+
async listGmailSpamReviewItems(agentId, provider, options, side) {
|
|
2799
|
+
const limit = options?.maxResults !== undefined && Number.isFinite(options.maxResults)
|
|
2800
|
+
? options.maxResults
|
|
2801
|
+
: 100;
|
|
2802
|
+
const sideClause = side ? `AND side = ${sqlQuote(side)}` : "";
|
|
2803
|
+
const statusClause = options?.status
|
|
2804
|
+
? `AND status = ${sqlQuote(options.status)}`
|
|
2805
|
+
: "";
|
|
2806
|
+
const grantClause = options?.grantId
|
|
2807
|
+
? `AND grant_id = ${sqlQuote(options.grantId)}`
|
|
2808
|
+
: "";
|
|
2809
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2810
|
+
FROM life_gmail_spam_review_items
|
|
2811
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2812
|
+
AND provider = ${sqlQuote(provider)}
|
|
2813
|
+
${sideClause}
|
|
2814
|
+
${statusClause}
|
|
2815
|
+
${grantClause}
|
|
2816
|
+
ORDER BY updated_at DESC, received_at DESC
|
|
2817
|
+
LIMIT ${sqlInteger(limit)}`);
|
|
2818
|
+
return rows.map(parseGmailSpamReviewItem);
|
|
2819
|
+
}
|
|
2820
|
+
async getGmailSpamReviewItem(agentId, provider, itemId, side) {
|
|
2821
|
+
const sideClause = side ? `AND side = ${sqlQuote(side)}` : "";
|
|
2822
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2823
|
+
FROM life_gmail_spam_review_items
|
|
2824
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2825
|
+
AND provider = ${sqlQuote(provider)}
|
|
2826
|
+
${sideClause}
|
|
2827
|
+
AND id = ${sqlQuote(itemId)}
|
|
2828
|
+
LIMIT 1`);
|
|
2829
|
+
const row = rows[0];
|
|
2830
|
+
return row ? parseGmailSpamReviewItem(row) : null;
|
|
2831
|
+
}
|
|
2832
|
+
async updateGmailSpamReviewItemStatus(agentId, provider, itemId, status, reviewedAt, updatedAt, side) {
|
|
2833
|
+
const sideClause = side ? `AND side = ${sqlQuote(side)}` : "";
|
|
2834
|
+
await executeRawSql(this.runtime, `UPDATE life_gmail_spam_review_items
|
|
2835
|
+
SET status = ${sqlQuote(status)},
|
|
2836
|
+
reviewed_at = ${sqlText(reviewedAt)},
|
|
2837
|
+
updated_at = ${sqlQuote(updatedAt)}
|
|
2838
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2839
|
+
AND provider = ${sqlQuote(provider)}
|
|
2840
|
+
${sideClause}
|
|
2841
|
+
AND id = ${sqlQuote(itemId)}`);
|
|
2842
|
+
}
|
|
2843
|
+
async deleteGmailSpamReviewItemsForProvider(agentId, provider, side) {
|
|
2844
|
+
const sideClause = side ? `AND side = ${sqlQuote(side)}` : "";
|
|
2845
|
+
await executeRawSql(this.runtime, `DELETE FROM life_gmail_spam_review_items
|
|
2846
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2847
|
+
AND provider = ${sqlQuote(provider)}
|
|
2848
|
+
${sideClause}`);
|
|
2849
|
+
}
|
|
2850
|
+
async createWorkflow(definition) {
|
|
2851
|
+
await executeRawSql(this.runtime, `INSERT INTO life_workflow_definitions (
|
|
2852
|
+
id, agent_id, domain, subject_type, subject_id, visibility_scope,
|
|
2853
|
+
context_policy, title, trigger_type, schedule_json, action_plan_json,
|
|
2854
|
+
permission_policy_json, status, created_by, metadata_json,
|
|
2855
|
+
created_at, updated_at
|
|
2856
|
+
) VALUES (
|
|
2857
|
+
${sqlQuote(definition.id)},
|
|
2858
|
+
${sqlQuote(definition.agentId)},
|
|
2859
|
+
${sqlQuote(definition.domain)},
|
|
2860
|
+
${sqlQuote(definition.subjectType)},
|
|
2861
|
+
${sqlQuote(definition.subjectId)},
|
|
2862
|
+
${sqlQuote(definition.visibilityScope)},
|
|
2863
|
+
${sqlQuote(definition.contextPolicy)},
|
|
2864
|
+
${sqlQuote(definition.title)},
|
|
2865
|
+
${sqlQuote(definition.triggerType)},
|
|
2866
|
+
${sqlJson(definition.schedule)},
|
|
2867
|
+
${sqlJson(definition.actionPlan)},
|
|
2868
|
+
${sqlJson(definition.permissionPolicy)},
|
|
2869
|
+
${sqlQuote(definition.status)},
|
|
2870
|
+
${sqlQuote(definition.createdBy)},
|
|
2871
|
+
${sqlJson(definition.metadata)},
|
|
2872
|
+
${sqlQuote(definition.createdAt)},
|
|
2873
|
+
${sqlQuote(definition.updatedAt)}
|
|
2874
|
+
)`);
|
|
2875
|
+
}
|
|
2876
|
+
async updateWorkflow(definition) {
|
|
2877
|
+
await executeRawSql(this.runtime, `UPDATE life_workflow_definitions
|
|
2878
|
+
SET domain = ${sqlQuote(definition.domain)},
|
|
2879
|
+
subject_type = ${sqlQuote(definition.subjectType)},
|
|
2880
|
+
subject_id = ${sqlQuote(definition.subjectId)},
|
|
2881
|
+
visibility_scope = ${sqlQuote(definition.visibilityScope)},
|
|
2882
|
+
context_policy = ${sqlQuote(definition.contextPolicy)},
|
|
2883
|
+
title = ${sqlQuote(definition.title)},
|
|
2884
|
+
trigger_type = ${sqlQuote(definition.triggerType)},
|
|
2885
|
+
schedule_json = ${sqlJson(definition.schedule)},
|
|
2886
|
+
action_plan_json = ${sqlJson(definition.actionPlan)},
|
|
2887
|
+
permission_policy_json = ${sqlJson(definition.permissionPolicy)},
|
|
2888
|
+
status = ${sqlQuote(definition.status)},
|
|
2889
|
+
metadata_json = ${sqlJson(definition.metadata)},
|
|
2890
|
+
updated_at = ${sqlQuote(definition.updatedAt)}
|
|
2891
|
+
WHERE id = ${sqlQuote(definition.id)}
|
|
2892
|
+
AND agent_id = ${sqlQuote(definition.agentId)}`);
|
|
2893
|
+
}
|
|
2894
|
+
async listWorkflows(agentId) {
|
|
2895
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2896
|
+
FROM life_workflow_definitions
|
|
2897
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2898
|
+
ORDER BY updated_at DESC, created_at DESC`);
|
|
2899
|
+
return rows.map(parseWorkflowDefinition);
|
|
2900
|
+
}
|
|
2901
|
+
async deleteWorkflow(agentId, workflowId) {
|
|
2902
|
+
await executeRawSql(this.runtime, `DELETE FROM life_workflow_runs
|
|
2903
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2904
|
+
AND workflow_id = ${sqlQuote(workflowId)}`);
|
|
2905
|
+
await executeRawSql(this.runtime, `UPDATE life_workflow_browser_sessions
|
|
2906
|
+
SET workflow_id = NULL
|
|
2907
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2908
|
+
AND workflow_id = ${sqlQuote(workflowId)}`);
|
|
2909
|
+
await executeRawSql(this.runtime, `DELETE FROM life_workflow_definitions
|
|
2910
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2911
|
+
AND id = ${sqlQuote(workflowId)}`);
|
|
2912
|
+
}
|
|
2913
|
+
async getWorkflow(agentId, workflowId) {
|
|
2914
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2915
|
+
FROM life_workflow_definitions
|
|
2916
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2917
|
+
AND id = ${sqlQuote(workflowId)}
|
|
2918
|
+
LIMIT 1`);
|
|
2919
|
+
const row = rows[0];
|
|
2920
|
+
return row ? parseWorkflowDefinition(row) : null;
|
|
2921
|
+
}
|
|
2922
|
+
async createWorkflowRun(run) {
|
|
2923
|
+
await executeRawSql(this.runtime, `INSERT INTO life_workflow_runs (
|
|
2924
|
+
id, agent_id, workflow_id, started_at, finished_at, status,
|
|
2925
|
+
result_json, audit_ref
|
|
2926
|
+
) VALUES (
|
|
2927
|
+
${sqlQuote(run.id)},
|
|
2928
|
+
${sqlQuote(run.agentId)},
|
|
2929
|
+
${sqlQuote(run.workflowId)},
|
|
2930
|
+
${sqlQuote(run.startedAt)},
|
|
2931
|
+
${sqlText(run.finishedAt)},
|
|
2932
|
+
${sqlQuote(run.status)},
|
|
2933
|
+
${sqlJson(run.result)},
|
|
2934
|
+
${sqlText(run.auditRef)}
|
|
2935
|
+
)`);
|
|
2936
|
+
}
|
|
2937
|
+
async listWorkflowRuns(agentId, workflowId) {
|
|
2938
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2939
|
+
FROM life_workflow_runs
|
|
2940
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2941
|
+
AND workflow_id = ${sqlQuote(workflowId)}
|
|
2942
|
+
ORDER BY started_at DESC`);
|
|
2943
|
+
return rows.map(parseWorkflowRun);
|
|
2944
|
+
}
|
|
2945
|
+
async createReminderAttempt(attempt) {
|
|
2946
|
+
await executeRawSql(this.runtime, `INSERT INTO life_reminder_attempts (
|
|
2947
|
+
id, agent_id, plan_id, owner_type, owner_id, occurrence_id,
|
|
2948
|
+
channel, step_index, scheduled_for, attempted_at, outcome,
|
|
2949
|
+
connector_ref, delivery_metadata_json
|
|
2950
|
+
) VALUES (
|
|
2951
|
+
${sqlQuote(attempt.id)},
|
|
2952
|
+
${sqlQuote(attempt.agentId)},
|
|
2953
|
+
${sqlQuote(attempt.planId)},
|
|
2954
|
+
${sqlQuote(attempt.ownerType)},
|
|
2955
|
+
${sqlQuote(attempt.ownerId)},
|
|
2956
|
+
${sqlText(attempt.occurrenceId)},
|
|
2957
|
+
${sqlQuote(attempt.channel)},
|
|
2958
|
+
${sqlInteger(attempt.stepIndex)},
|
|
2959
|
+
${sqlQuote(attempt.scheduledFor)},
|
|
2960
|
+
${sqlText(attempt.attemptedAt)},
|
|
2961
|
+
${sqlQuote(attempt.outcome)},
|
|
2962
|
+
${sqlText(attempt.connectorRef)},
|
|
2963
|
+
${sqlJson(attempt.deliveryMetadata)}
|
|
2964
|
+
)`);
|
|
2965
|
+
}
|
|
2966
|
+
async listReminderAttempts(agentId, options) {
|
|
2967
|
+
const ownerTypeClause = options?.ownerType
|
|
2968
|
+
? `AND owner_type = ${sqlQuote(options.ownerType)}`
|
|
2969
|
+
: "";
|
|
2970
|
+
const ownerIdClause = options?.ownerId
|
|
2971
|
+
? `AND owner_id = ${sqlQuote(options.ownerId)}`
|
|
2972
|
+
: "";
|
|
2973
|
+
const planIdClause = options?.planId
|
|
2974
|
+
? `AND plan_id = ${sqlQuote(options.planId)}`
|
|
2975
|
+
: "";
|
|
2976
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2977
|
+
FROM life_reminder_attempts
|
|
2978
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
2979
|
+
${ownerTypeClause}
|
|
2980
|
+
${ownerIdClause}
|
|
2981
|
+
${planIdClause}
|
|
2982
|
+
ORDER BY scheduled_for ASC, step_index ASC, attempted_at ASC`);
|
|
2983
|
+
return rows.map(parseReminderAttempt);
|
|
2984
|
+
}
|
|
2985
|
+
async updateReminderAttemptOutcome(id, outcome, metadata) {
|
|
2986
|
+
if (metadata && Object.keys(metadata).length > 0) {
|
|
2987
|
+
await executeRawSql(this.runtime, `UPDATE life_reminder_attempts
|
|
2988
|
+
SET outcome = ${sqlQuote(outcome)},
|
|
2989
|
+
delivery_metadata_json = delivery_metadata_json::jsonb || ${sqlJson(metadata)}::jsonb
|
|
2990
|
+
WHERE id = ${sqlQuote(id)}`);
|
|
2991
|
+
}
|
|
2992
|
+
else {
|
|
2993
|
+
await executeRawSql(this.runtime, `UPDATE life_reminder_attempts
|
|
2994
|
+
SET outcome = ${sqlQuote(outcome)}
|
|
2995
|
+
WHERE id = ${sqlQuote(id)}`);
|
|
2996
|
+
}
|
|
2997
|
+
}
|
|
2998
|
+
async createBrowserSession(session) {
|
|
2999
|
+
await executeRawSql(this.runtime, `INSERT INTO life_workflow_browser_sessions (
|
|
3000
|
+
id, agent_id, domain, subject_type, subject_id, visibility_scope,
|
|
3001
|
+
context_policy, workflow_id, browser, companion_id, profile_id,
|
|
3002
|
+
window_id, tab_id, title, status, actions_json,
|
|
3003
|
+
current_action_index, awaiting_confirmation_for_action_id,
|
|
3004
|
+
result_json, metadata_json, created_at, updated_at, finished_at
|
|
3005
|
+
) VALUES (
|
|
3006
|
+
${sqlQuote(session.id)},
|
|
3007
|
+
${sqlQuote(session.agentId)},
|
|
3008
|
+
${sqlQuote(session.domain)},
|
|
3009
|
+
${sqlQuote(session.subjectType)},
|
|
3010
|
+
${sqlQuote(session.subjectId)},
|
|
3011
|
+
${sqlQuote(session.visibilityScope)},
|
|
3012
|
+
${sqlQuote(session.contextPolicy)},
|
|
3013
|
+
${sqlText(session.workflowId)},
|
|
3014
|
+
${sqlText(session.browser)},
|
|
3015
|
+
${sqlText(session.companionId)},
|
|
3016
|
+
${sqlText(session.profileId)},
|
|
3017
|
+
${sqlText(session.windowId)},
|
|
3018
|
+
${sqlText(session.tabId)},
|
|
3019
|
+
${sqlQuote(session.title)},
|
|
3020
|
+
${sqlQuote(session.status)},
|
|
3021
|
+
${sqlJson(session.actions)},
|
|
3022
|
+
${sqlInteger(session.currentActionIndex)},
|
|
3023
|
+
${sqlText(session.awaitingConfirmationForActionId)},
|
|
3024
|
+
${sqlJson(session.result)},
|
|
3025
|
+
${sqlJson(session.metadata)},
|
|
3026
|
+
${sqlQuote(session.createdAt)},
|
|
3027
|
+
${sqlQuote(session.updatedAt)},
|
|
3028
|
+
${sqlText(session.finishedAt)}
|
|
3029
|
+
)`);
|
|
3030
|
+
}
|
|
3031
|
+
async updateBrowserSession(session) {
|
|
3032
|
+
await executeRawSql(this.runtime, `UPDATE life_workflow_browser_sessions
|
|
3033
|
+
SET domain = ${sqlQuote(session.domain)},
|
|
3034
|
+
subject_type = ${sqlQuote(session.subjectType)},
|
|
3035
|
+
subject_id = ${sqlQuote(session.subjectId)},
|
|
3036
|
+
visibility_scope = ${sqlQuote(session.visibilityScope)},
|
|
3037
|
+
context_policy = ${sqlQuote(session.contextPolicy)},
|
|
3038
|
+
workflow_id = ${sqlText(session.workflowId)},
|
|
3039
|
+
browser = ${sqlText(session.browser)},
|
|
3040
|
+
companion_id = ${sqlText(session.companionId)},
|
|
3041
|
+
profile_id = ${sqlText(session.profileId)},
|
|
3042
|
+
window_id = ${sqlText(session.windowId)},
|
|
3043
|
+
tab_id = ${sqlText(session.tabId)},
|
|
3044
|
+
title = ${sqlQuote(session.title)},
|
|
3045
|
+
status = ${sqlQuote(session.status)},
|
|
3046
|
+
actions_json = ${sqlJson(session.actions)},
|
|
3047
|
+
current_action_index = ${sqlInteger(session.currentActionIndex)},
|
|
3048
|
+
awaiting_confirmation_for_action_id = ${sqlText(session.awaitingConfirmationForActionId)},
|
|
3049
|
+
result_json = ${sqlJson(session.result)},
|
|
3050
|
+
metadata_json = ${sqlJson(session.metadata)},
|
|
3051
|
+
updated_at = ${sqlQuote(session.updatedAt)},
|
|
3052
|
+
finished_at = ${sqlText(session.finishedAt)}
|
|
3053
|
+
WHERE id = ${sqlQuote(session.id)}
|
|
3054
|
+
AND agent_id = ${sqlQuote(session.agentId)}`);
|
|
3055
|
+
}
|
|
3056
|
+
async getBrowserSession(agentId, sessionId) {
|
|
3057
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3058
|
+
FROM life_workflow_browser_sessions
|
|
3059
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3060
|
+
AND id = ${sqlQuote(sessionId)}
|
|
3061
|
+
LIMIT 1`);
|
|
3062
|
+
const row = rows[0];
|
|
3063
|
+
return row ? parseBrowserSession(row) : null;
|
|
3064
|
+
}
|
|
3065
|
+
async listBrowserSessions(agentId) {
|
|
3066
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3067
|
+
FROM life_workflow_browser_sessions
|
|
3068
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3069
|
+
ORDER BY updated_at DESC, created_at DESC`);
|
|
3070
|
+
return rows.map(parseBrowserSession);
|
|
3071
|
+
}
|
|
3072
|
+
async getBrowserSettings(agentId) {
|
|
3073
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3074
|
+
FROM browser_bridge_settings
|
|
3075
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3076
|
+
LIMIT 1`);
|
|
3077
|
+
const row = rows[0];
|
|
3078
|
+
return row ? parseBrowserSettings(row) : null;
|
|
3079
|
+
}
|
|
3080
|
+
async upsertBrowserSettings(agentId, settings) {
|
|
3081
|
+
const createdAt = settings.updatedAt ?? isoNow();
|
|
3082
|
+
await executeRawSql(this.runtime, `INSERT INTO browser_bridge_settings (
|
|
3083
|
+
agent_id, enabled, tracking_mode, allow_browser_control,
|
|
3084
|
+
require_confirmation_for_account_affecting, incognito_enabled,
|
|
3085
|
+
site_access_mode, granted_origins_json, blocked_origins_json,
|
|
3086
|
+
max_remembered_tabs, pause_until, metadata_json, created_at, updated_at
|
|
3087
|
+
) VALUES (
|
|
3088
|
+
${sqlQuote(agentId)},
|
|
3089
|
+
${sqlBoolean(settings.enabled)},
|
|
3090
|
+
${sqlQuote(settings.trackingMode)},
|
|
3091
|
+
${sqlBoolean(settings.allowBrowserControl)},
|
|
3092
|
+
${sqlBoolean(settings.requireConfirmationForAccountAffecting)},
|
|
3093
|
+
${sqlBoolean(settings.incognitoEnabled)},
|
|
3094
|
+
${sqlQuote(settings.siteAccessMode)},
|
|
3095
|
+
${sqlJson(settings.grantedOrigins)},
|
|
3096
|
+
${sqlJson(settings.blockedOrigins)},
|
|
3097
|
+
${sqlInteger(settings.maxRememberedTabs)},
|
|
3098
|
+
${sqlText(settings.pauseUntil)},
|
|
3099
|
+
${sqlJson(settings.metadata)},
|
|
3100
|
+
${sqlQuote(createdAt)},
|
|
3101
|
+
${sqlQuote(settings.updatedAt ?? createdAt)}
|
|
3102
|
+
)
|
|
3103
|
+
ON CONFLICT(agent_id) DO UPDATE SET
|
|
3104
|
+
enabled = excluded.enabled,
|
|
3105
|
+
tracking_mode = excluded.tracking_mode,
|
|
3106
|
+
allow_browser_control = excluded.allow_browser_control,
|
|
3107
|
+
require_confirmation_for_account_affecting = excluded.require_confirmation_for_account_affecting,
|
|
3108
|
+
incognito_enabled = excluded.incognito_enabled,
|
|
3109
|
+
site_access_mode = excluded.site_access_mode,
|
|
3110
|
+
granted_origins_json = excluded.granted_origins_json,
|
|
3111
|
+
blocked_origins_json = excluded.blocked_origins_json,
|
|
3112
|
+
max_remembered_tabs = excluded.max_remembered_tabs,
|
|
3113
|
+
pause_until = excluded.pause_until,
|
|
3114
|
+
metadata_json = excluded.metadata_json,
|
|
3115
|
+
updated_at = excluded.updated_at`);
|
|
3116
|
+
}
|
|
3117
|
+
async getBrowserCompanionByProfile(agentId, browser, profileId) {
|
|
3118
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3119
|
+
FROM browser_bridge_companions
|
|
3120
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3121
|
+
AND browser = ${sqlQuote(browser)}
|
|
3122
|
+
AND profile_id = ${sqlQuote(profileId)}
|
|
3123
|
+
LIMIT 1`);
|
|
3124
|
+
const row = rows[0];
|
|
3125
|
+
return row ? parseBrowserCompanion(row) : null;
|
|
3126
|
+
}
|
|
3127
|
+
async getBrowserCompanionCredential(agentId, companionId) {
|
|
3128
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3129
|
+
FROM browser_bridge_companions
|
|
3130
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3131
|
+
AND id = ${sqlQuote(companionId)}
|
|
3132
|
+
LIMIT 1`);
|
|
3133
|
+
const row = rows[0];
|
|
3134
|
+
return row ? parseBrowserCompanionCredential(row) : null;
|
|
3135
|
+
}
|
|
3136
|
+
async upsertBrowserCompanion(companion) {
|
|
3137
|
+
await executeRawSql(this.runtime, `INSERT INTO browser_bridge_companions (
|
|
3138
|
+
id, agent_id, browser, profile_id, profile_label, label,
|
|
3139
|
+
extension_version, connection_state, permissions_json, last_seen_at,
|
|
3140
|
+
paired_at, metadata_json, created_at, updated_at
|
|
3141
|
+
) VALUES (
|
|
3142
|
+
${sqlQuote(companion.id)},
|
|
3143
|
+
${sqlQuote(companion.agentId)},
|
|
3144
|
+
${sqlQuote(companion.browser)},
|
|
3145
|
+
${sqlQuote(companion.profileId)},
|
|
3146
|
+
${sqlQuote(companion.profileLabel)},
|
|
3147
|
+
${sqlQuote(companion.label)},
|
|
3148
|
+
${sqlText(companion.extensionVersion)},
|
|
3149
|
+
${sqlQuote(companion.connectionState)},
|
|
3150
|
+
${sqlJson(companion.permissions)},
|
|
3151
|
+
${sqlText(companion.lastSeenAt)},
|
|
3152
|
+
${sqlText(companion.pairedAt)},
|
|
3153
|
+
${sqlJson(companion.metadata)},
|
|
3154
|
+
${sqlQuote(companion.createdAt)},
|
|
3155
|
+
${sqlQuote(companion.updatedAt)}
|
|
3156
|
+
)
|
|
3157
|
+
ON CONFLICT(agent_id, browser, profile_id) DO UPDATE SET
|
|
3158
|
+
profile_label = excluded.profile_label,
|
|
3159
|
+
label = excluded.label,
|
|
3160
|
+
extension_version = excluded.extension_version,
|
|
3161
|
+
connection_state = excluded.connection_state,
|
|
3162
|
+
permissions_json = excluded.permissions_json,
|
|
3163
|
+
last_seen_at = excluded.last_seen_at,
|
|
3164
|
+
paired_at = COALESCE(browser_bridge_companions.paired_at, excluded.paired_at),
|
|
3165
|
+
metadata_json = excluded.metadata_json,
|
|
3166
|
+
updated_at = excluded.updated_at`);
|
|
3167
|
+
}
|
|
3168
|
+
async updateBrowserCompanionPairingToken(agentId, companionId, pairingTokenHash, pairedAt, updatedAt) {
|
|
3169
|
+
await executeRawSql(this.runtime, `UPDATE browser_bridge_companions
|
|
3170
|
+
SET pairing_token_hash = ${sqlQuote(pairingTokenHash)},
|
|
3171
|
+
pending_pairing_token_hashes_json = '[]',
|
|
3172
|
+
paired_at = ${sqlQuote(pairedAt)},
|
|
3173
|
+
updated_at = ${sqlQuote(updatedAt)}
|
|
3174
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3175
|
+
AND id = ${sqlQuote(companionId)}`);
|
|
3176
|
+
}
|
|
3177
|
+
async updateBrowserCompanionPendingPairingTokenHashes(agentId, companionId, pendingPairingTokenHashes, updatedAt) {
|
|
3178
|
+
await executeRawSql(this.runtime, `UPDATE browser_bridge_companions
|
|
3179
|
+
SET pending_pairing_token_hashes_json = ${sqlJson(pendingPairingTokenHashes)},
|
|
3180
|
+
updated_at = ${sqlQuote(updatedAt)}
|
|
3181
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3182
|
+
AND id = ${sqlQuote(companionId)}`);
|
|
3183
|
+
}
|
|
3184
|
+
async promoteBrowserCompanionPendingPairingToken(agentId, companionId, pairingTokenHash, pendingPairingTokenHashes, pairedAt, updatedAt) {
|
|
3185
|
+
await executeRawSql(this.runtime, `UPDATE browser_bridge_companions
|
|
3186
|
+
SET pairing_token_hash = ${sqlQuote(pairingTokenHash)},
|
|
3187
|
+
pending_pairing_token_hashes_json = ${sqlJson(pendingPairingTokenHashes)},
|
|
3188
|
+
paired_at = ${sqlQuote(pairedAt)},
|
|
3189
|
+
updated_at = ${sqlQuote(updatedAt)}
|
|
3190
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3191
|
+
AND id = ${sqlQuote(companionId)}`);
|
|
3192
|
+
}
|
|
3193
|
+
async listBrowserCompanions(agentId) {
|
|
3194
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3195
|
+
FROM browser_bridge_companions
|
|
3196
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3197
|
+
ORDER BY browser ASC, profile_label ASC, label ASC`);
|
|
3198
|
+
return rows.map(parseBrowserCompanion);
|
|
3199
|
+
}
|
|
3200
|
+
async upsertBrowserTab(tab) {
|
|
3201
|
+
await executeRawSql(this.runtime, `INSERT INTO browser_bridge_tabs (
|
|
3202
|
+
id, agent_id, companion_id, browser, profile_id, window_id, tab_id,
|
|
3203
|
+
url, title, active_in_window, focused_window, focused_active,
|
|
3204
|
+
incognito, favicon_url, last_seen_at, last_focused_at, metadata_json,
|
|
3205
|
+
created_at, updated_at
|
|
3206
|
+
) VALUES (
|
|
3207
|
+
${sqlQuote(tab.id)},
|
|
3208
|
+
${sqlQuote(tab.agentId)},
|
|
3209
|
+
${sqlText(tab.companionId)},
|
|
3210
|
+
${sqlQuote(tab.browser)},
|
|
3211
|
+
${sqlQuote(tab.profileId)},
|
|
3212
|
+
${sqlQuote(tab.windowId)},
|
|
3213
|
+
${sqlQuote(tab.tabId)},
|
|
3214
|
+
${sqlQuote(tab.url)},
|
|
3215
|
+
${sqlQuote(tab.title)},
|
|
3216
|
+
${sqlBoolean(tab.activeInWindow)},
|
|
3217
|
+
${sqlBoolean(tab.focusedWindow)},
|
|
3218
|
+
${sqlBoolean(tab.focusedActive)},
|
|
3219
|
+
${sqlBoolean(tab.incognito)},
|
|
3220
|
+
${sqlText(tab.faviconUrl)},
|
|
3221
|
+
${sqlQuote(tab.lastSeenAt)},
|
|
3222
|
+
${sqlText(tab.lastFocusedAt)},
|
|
3223
|
+
${sqlJson(tab.metadata)},
|
|
3224
|
+
${sqlQuote(tab.createdAt)},
|
|
3225
|
+
${sqlQuote(tab.updatedAt)}
|
|
3226
|
+
)
|
|
3227
|
+
ON CONFLICT(agent_id, browser, profile_id, window_id, tab_id) DO UPDATE SET
|
|
3228
|
+
companion_id = excluded.companion_id,
|
|
3229
|
+
url = excluded.url,
|
|
3230
|
+
title = excluded.title,
|
|
3231
|
+
active_in_window = excluded.active_in_window,
|
|
3232
|
+
focused_window = excluded.focused_window,
|
|
3233
|
+
focused_active = excluded.focused_active,
|
|
3234
|
+
incognito = excluded.incognito,
|
|
3235
|
+
favicon_url = excluded.favicon_url,
|
|
3236
|
+
last_seen_at = excluded.last_seen_at,
|
|
3237
|
+
last_focused_at = excluded.last_focused_at,
|
|
3238
|
+
metadata_json = excluded.metadata_json,
|
|
3239
|
+
updated_at = excluded.updated_at`);
|
|
3240
|
+
}
|
|
3241
|
+
async listBrowserTabs(agentId) {
|
|
3242
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3243
|
+
FROM browser_bridge_tabs
|
|
3244
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3245
|
+
ORDER BY focused_active DESC,
|
|
3246
|
+
active_in_window DESC,
|
|
3247
|
+
COALESCE(last_focused_at, last_seen_at) DESC,
|
|
3248
|
+
updated_at DESC`);
|
|
3249
|
+
return rows.map(parseBrowserTabSummary);
|
|
3250
|
+
}
|
|
3251
|
+
async deleteBrowserTabsByIds(agentId, ids) {
|
|
3252
|
+
if (ids.length === 0)
|
|
3253
|
+
return;
|
|
3254
|
+
const values = ids.map((id) => sqlQuote(id)).join(", ");
|
|
3255
|
+
await executeRawSql(this.runtime, `DELETE FROM browser_bridge_tabs
|
|
3256
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3257
|
+
AND id IN (${values})`);
|
|
3258
|
+
}
|
|
3259
|
+
async deleteAllBrowserTabs(agentId) {
|
|
3260
|
+
await executeRawSql(this.runtime, `DELETE FROM browser_bridge_tabs
|
|
3261
|
+
WHERE agent_id = ${sqlQuote(agentId)}`);
|
|
3262
|
+
}
|
|
3263
|
+
async upsertBrowserPageContext(context) {
|
|
3264
|
+
await executeRawSql(this.runtime, `INSERT INTO browser_bridge_page_contexts (
|
|
3265
|
+
id, agent_id, browser, profile_id, window_id, tab_id, url, title,
|
|
3266
|
+
selection_text, main_text, headings_json, links_json, forms_json,
|
|
3267
|
+
captured_at, metadata_json
|
|
3268
|
+
) VALUES (
|
|
3269
|
+
${sqlQuote(context.id)},
|
|
3270
|
+
${sqlQuote(context.agentId)},
|
|
3271
|
+
${sqlQuote(context.browser)},
|
|
3272
|
+
${sqlQuote(context.profileId)},
|
|
3273
|
+
${sqlQuote(context.windowId)},
|
|
3274
|
+
${sqlQuote(context.tabId)},
|
|
3275
|
+
${sqlQuote(context.url)},
|
|
3276
|
+
${sqlQuote(context.title)},
|
|
3277
|
+
${sqlText(context.selectionText)},
|
|
3278
|
+
${sqlText(context.mainText)},
|
|
3279
|
+
${sqlJson(context.headings)},
|
|
3280
|
+
${sqlJson(context.links)},
|
|
3281
|
+
${sqlJson(context.forms)},
|
|
3282
|
+
${sqlQuote(context.capturedAt)},
|
|
3283
|
+
${sqlJson(context.metadata)}
|
|
3284
|
+
)
|
|
3285
|
+
ON CONFLICT(agent_id, browser, profile_id, window_id, tab_id) DO UPDATE SET
|
|
3286
|
+
url = excluded.url,
|
|
3287
|
+
title = excluded.title,
|
|
3288
|
+
selection_text = excluded.selection_text,
|
|
3289
|
+
main_text = excluded.main_text,
|
|
3290
|
+
headings_json = excluded.headings_json,
|
|
3291
|
+
links_json = excluded.links_json,
|
|
3292
|
+
forms_json = excluded.forms_json,
|
|
3293
|
+
captured_at = excluded.captured_at,
|
|
3294
|
+
metadata_json = excluded.metadata_json`);
|
|
3295
|
+
}
|
|
3296
|
+
async listBrowserPageContexts(agentId) {
|
|
3297
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3298
|
+
FROM browser_bridge_page_contexts
|
|
3299
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3300
|
+
ORDER BY captured_at DESC`);
|
|
3301
|
+
return rows.map(parseBrowserPageContext);
|
|
3302
|
+
}
|
|
3303
|
+
async deleteBrowserPageContextsByIds(agentId, ids) {
|
|
3304
|
+
if (ids.length === 0)
|
|
3305
|
+
return;
|
|
3306
|
+
const values = ids.map((id) => sqlQuote(id)).join(", ");
|
|
3307
|
+
await executeRawSql(this.runtime, `DELETE FROM browser_bridge_page_contexts
|
|
3308
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3309
|
+
AND id IN (${values})`);
|
|
3310
|
+
}
|
|
3311
|
+
async deleteAllBrowserPageContexts(agentId) {
|
|
3312
|
+
await executeRawSql(this.runtime, `DELETE FROM browser_bridge_page_contexts
|
|
3313
|
+
WHERE agent_id = ${sqlQuote(agentId)}`);
|
|
3314
|
+
}
|
|
3315
|
+
async deleteBrowserSession(agentId, sessionId) {
|
|
3316
|
+
await executeRawSql(this.runtime, `DELETE FROM life_workflow_browser_sessions
|
|
3317
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3318
|
+
AND id = ${sqlQuote(sessionId)}`);
|
|
3319
|
+
}
|
|
3320
|
+
// ---------------------------------------------------------------------------
|
|
3321
|
+
// Escalation state persistence
|
|
3322
|
+
// ---------------------------------------------------------------------------
|
|
3323
|
+
async upsertEscalationState(state) {
|
|
3324
|
+
const now = isoNow();
|
|
3325
|
+
await executeRawSql(this.runtime, `INSERT INTO life_escalation_states (
|
|
3326
|
+
id, agent_id, reason, text, current_step,
|
|
3327
|
+
channels_sent_json, started_at, last_sent_at,
|
|
3328
|
+
resolved, resolved_at, metadata_json,
|
|
3329
|
+
created_at, updated_at
|
|
3330
|
+
) VALUES (
|
|
3331
|
+
${sqlQuote(state.id)},
|
|
3332
|
+
${sqlQuote(state.agentId)},
|
|
3333
|
+
${sqlQuote(state.reason)},
|
|
3334
|
+
${sqlQuote(state.text)},
|
|
3335
|
+
${sqlInteger(state.currentStep)},
|
|
3336
|
+
${sqlJson(state.channelsSent)},
|
|
3337
|
+
${sqlQuote(state.startedAt)},
|
|
3338
|
+
${sqlQuote(state.lastSentAt)},
|
|
3339
|
+
${sqlBoolean(state.resolved)},
|
|
3340
|
+
${sqlText(state.resolvedAt)},
|
|
3341
|
+
${sqlJson(state.metadata ?? {})},
|
|
3342
|
+
${sqlQuote(now)},
|
|
3343
|
+
${sqlQuote(now)}
|
|
3344
|
+
)
|
|
3345
|
+
ON CONFLICT(id) DO UPDATE SET
|
|
3346
|
+
reason = excluded.reason,
|
|
3347
|
+
text = excluded.text,
|
|
3348
|
+
current_step = excluded.current_step,
|
|
3349
|
+
channels_sent_json = excluded.channels_sent_json,
|
|
3350
|
+
last_sent_at = excluded.last_sent_at,
|
|
3351
|
+
resolved = excluded.resolved,
|
|
3352
|
+
resolved_at = excluded.resolved_at,
|
|
3353
|
+
metadata_json = excluded.metadata_json,
|
|
3354
|
+
updated_at = excluded.updated_at`);
|
|
3355
|
+
}
|
|
3356
|
+
async getActiveEscalationState(agentId) {
|
|
3357
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3358
|
+
FROM life_escalation_states
|
|
3359
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3360
|
+
AND resolved = FALSE
|
|
3361
|
+
ORDER BY started_at DESC
|
|
3362
|
+
LIMIT 1`);
|
|
3363
|
+
const row = rows[0];
|
|
3364
|
+
return row ? parseEscalationStateRow(row) : null;
|
|
3365
|
+
}
|
|
3366
|
+
async resolveEscalationState(id, resolvedAt) {
|
|
3367
|
+
const now = isoNow();
|
|
3368
|
+
await executeRawSql(this.runtime, `UPDATE life_escalation_states
|
|
3369
|
+
SET resolved = TRUE,
|
|
3370
|
+
resolved_at = ${sqlQuote(resolvedAt)},
|
|
3371
|
+
updated_at = ${sqlQuote(now)}
|
|
3372
|
+
WHERE id = ${sqlQuote(id)}`);
|
|
3373
|
+
}
|
|
3374
|
+
async listRecentEscalationStates(agentId, limit = 10) {
|
|
3375
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3376
|
+
FROM life_escalation_states
|
|
3377
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3378
|
+
ORDER BY started_at DESC
|
|
3379
|
+
LIMIT ${sqlInteger(limit)}`);
|
|
3380
|
+
return rows.map(parseEscalationStateRow);
|
|
3381
|
+
}
|
|
3382
|
+
async deleteAllEscalationStates(agentId) {
|
|
3383
|
+
await executeRawSql(this.runtime, `DELETE FROM life_escalation_states
|
|
3384
|
+
WHERE agent_id = ${sqlQuote(agentId)}`);
|
|
3385
|
+
}
|
|
3386
|
+
// -----------------------------------------------------------------------
|
|
3387
|
+
// Relationships, interactions & follow-ups
|
|
3388
|
+
// -----------------------------------------------------------------------
|
|
3389
|
+
async upsertRelationship(rel) {
|
|
3390
|
+
await executeRawSql(this.runtime, `INSERT INTO life_relationships (
|
|
3391
|
+
id, agent_id, name, primary_channel, primary_handle, email, phone,
|
|
3392
|
+
notes, tags_json, relationship_type, last_contacted_at, metadata_json,
|
|
3393
|
+
created_at, updated_at
|
|
3394
|
+
) VALUES (
|
|
3395
|
+
${sqlQuote(rel.id)},
|
|
3396
|
+
${sqlQuote(rel.agentId)},
|
|
3397
|
+
${sqlQuote(rel.name)},
|
|
3398
|
+
${sqlQuote(rel.primaryChannel)},
|
|
3399
|
+
${sqlQuote(rel.primaryHandle)},
|
|
3400
|
+
${sqlText(rel.email)},
|
|
3401
|
+
${sqlText(rel.phone)},
|
|
3402
|
+
${sqlQuote(rel.notes)},
|
|
3403
|
+
${sqlJson(rel.tags)},
|
|
3404
|
+
${sqlQuote(rel.relationshipType)},
|
|
3405
|
+
${sqlText(rel.lastContactedAt)},
|
|
3406
|
+
${sqlJson(rel.metadata)},
|
|
3407
|
+
${sqlQuote(rel.createdAt)},
|
|
3408
|
+
${sqlQuote(rel.updatedAt)}
|
|
3409
|
+
)
|
|
3410
|
+
ON CONFLICT (id) DO UPDATE SET
|
|
3411
|
+
name = EXCLUDED.name,
|
|
3412
|
+
primary_channel = EXCLUDED.primary_channel,
|
|
3413
|
+
primary_handle = EXCLUDED.primary_handle,
|
|
3414
|
+
email = EXCLUDED.email,
|
|
3415
|
+
phone = EXCLUDED.phone,
|
|
3416
|
+
notes = EXCLUDED.notes,
|
|
3417
|
+
tags_json = EXCLUDED.tags_json,
|
|
3418
|
+
relationship_type = EXCLUDED.relationship_type,
|
|
3419
|
+
last_contacted_at = EXCLUDED.last_contacted_at,
|
|
3420
|
+
metadata_json = EXCLUDED.metadata_json,
|
|
3421
|
+
updated_at = EXCLUDED.updated_at`);
|
|
3422
|
+
}
|
|
3423
|
+
async getRelationship(agentId, id) {
|
|
3424
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3425
|
+
FROM life_relationships
|
|
3426
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3427
|
+
AND id = ${sqlQuote(id)}
|
|
3428
|
+
LIMIT 1`);
|
|
3429
|
+
const row = rows[0];
|
|
3430
|
+
return row ? parseRelationship(row) : null;
|
|
3431
|
+
}
|
|
3432
|
+
async listRelationships(agentId, opts) {
|
|
3433
|
+
const clauses = [`agent_id = ${sqlQuote(agentId)}`];
|
|
3434
|
+
if (opts?.primaryChannel) {
|
|
3435
|
+
clauses.push(`primary_channel = ${sqlQuote(opts.primaryChannel)}`);
|
|
3436
|
+
}
|
|
3437
|
+
const limitClause = typeof opts?.limit === "number" ? `LIMIT ${sqlInteger(opts.limit)}` : "";
|
|
3438
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3439
|
+
FROM life_relationships
|
|
3440
|
+
WHERE ${clauses.join(" AND ")}
|
|
3441
|
+
ORDER BY name ASC
|
|
3442
|
+
${limitClause}`);
|
|
3443
|
+
return rows.map(parseRelationship);
|
|
3444
|
+
}
|
|
3445
|
+
async logRelationshipInteraction(interaction) {
|
|
3446
|
+
await executeRawSql(this.runtime, `INSERT INTO life_relationship_interactions (
|
|
3447
|
+
id, agent_id, relationship_id, channel, direction, summary,
|
|
3448
|
+
occurred_at, metadata_json, created_at
|
|
3449
|
+
) VALUES (
|
|
3450
|
+
${sqlQuote(interaction.id)},
|
|
3451
|
+
${sqlQuote(interaction.agentId)},
|
|
3452
|
+
${sqlQuote(interaction.relationshipId)},
|
|
3453
|
+
${sqlQuote(interaction.channel)},
|
|
3454
|
+
${sqlQuote(interaction.direction)},
|
|
3455
|
+
${sqlQuote(interaction.summary)},
|
|
3456
|
+
${sqlQuote(interaction.occurredAt)},
|
|
3457
|
+
${sqlJson(interaction.metadata)},
|
|
3458
|
+
${sqlQuote(interaction.createdAt)}
|
|
3459
|
+
)`);
|
|
3460
|
+
}
|
|
3461
|
+
async listInteractions(agentId, relationshipId, opts) {
|
|
3462
|
+
const limitClause = typeof opts?.limit === "number" ? `LIMIT ${sqlInteger(opts.limit)}` : "";
|
|
3463
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3464
|
+
FROM life_relationship_interactions
|
|
3465
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3466
|
+
AND relationship_id = ${sqlQuote(relationshipId)}
|
|
3467
|
+
ORDER BY occurred_at DESC
|
|
3468
|
+
${limitClause}`);
|
|
3469
|
+
return rows.map(parseRelationshipInteraction);
|
|
3470
|
+
}
|
|
3471
|
+
async updateRelationshipLastContactedAt(agentId, relationshipId, timestamp) {
|
|
3472
|
+
await executeRawSql(this.runtime, `UPDATE life_relationships
|
|
3473
|
+
SET last_contacted_at = ${sqlQuote(timestamp)},
|
|
3474
|
+
updated_at = ${sqlQuote(timestamp)}
|
|
3475
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3476
|
+
AND id = ${sqlQuote(relationshipId)}
|
|
3477
|
+
AND (last_contacted_at IS NULL OR last_contacted_at < ${sqlQuote(timestamp)})`);
|
|
3478
|
+
}
|
|
3479
|
+
async upsertFollowUp(fu) {
|
|
3480
|
+
await executeRawSql(this.runtime, `INSERT INTO life_follow_ups (
|
|
3481
|
+
id, agent_id, relationship_id, due_at, reason, status, priority,
|
|
3482
|
+
draft_json, completed_at, metadata_json, created_at, updated_at
|
|
3483
|
+
) VALUES (
|
|
3484
|
+
${sqlQuote(fu.id)},
|
|
3485
|
+
${sqlQuote(fu.agentId)},
|
|
3486
|
+
${sqlQuote(fu.relationshipId)},
|
|
3487
|
+
${sqlQuote(fu.dueAt)},
|
|
3488
|
+
${sqlQuote(fu.reason)},
|
|
3489
|
+
${sqlQuote(fu.status)},
|
|
3490
|
+
${sqlInteger(fu.priority)},
|
|
3491
|
+
${fu.draft ? sqlJson(fu.draft) : "NULL"},
|
|
3492
|
+
${sqlText(fu.completedAt)},
|
|
3493
|
+
${sqlJson(fu.metadata)},
|
|
3494
|
+
${sqlQuote(fu.createdAt)},
|
|
3495
|
+
${sqlQuote(fu.updatedAt)}
|
|
3496
|
+
)
|
|
3497
|
+
ON CONFLICT (id) DO UPDATE SET
|
|
3498
|
+
relationship_id = EXCLUDED.relationship_id,
|
|
3499
|
+
due_at = EXCLUDED.due_at,
|
|
3500
|
+
reason = EXCLUDED.reason,
|
|
3501
|
+
status = EXCLUDED.status,
|
|
3502
|
+
priority = EXCLUDED.priority,
|
|
3503
|
+
draft_json = EXCLUDED.draft_json,
|
|
3504
|
+
completed_at = EXCLUDED.completed_at,
|
|
3505
|
+
metadata_json = EXCLUDED.metadata_json,
|
|
3506
|
+
updated_at = EXCLUDED.updated_at`);
|
|
3507
|
+
}
|
|
3508
|
+
async getFollowUp(agentId, id) {
|
|
3509
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3510
|
+
FROM life_follow_ups
|
|
3511
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3512
|
+
AND id = ${sqlQuote(id)}
|
|
3513
|
+
LIMIT 1`);
|
|
3514
|
+
const row = rows[0];
|
|
3515
|
+
return row ? parseFollowUp(row) : null;
|
|
3516
|
+
}
|
|
3517
|
+
async listFollowUps(agentId, opts) {
|
|
3518
|
+
const clauses = [`agent_id = ${sqlQuote(agentId)}`];
|
|
3519
|
+
if (opts?.status) {
|
|
3520
|
+
clauses.push(`status = ${sqlQuote(opts.status)}`);
|
|
3521
|
+
}
|
|
3522
|
+
if (opts?.dueOnOrBefore) {
|
|
3523
|
+
clauses.push(`due_at <= ${sqlQuote(opts.dueOnOrBefore)}`);
|
|
3524
|
+
}
|
|
3525
|
+
const limitClause = typeof opts?.limit === "number" ? `LIMIT ${sqlInteger(opts.limit)}` : "";
|
|
3526
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3527
|
+
FROM life_follow_ups
|
|
3528
|
+
WHERE ${clauses.join(" AND ")}
|
|
3529
|
+
ORDER BY due_at ASC
|
|
3530
|
+
${limitClause}`);
|
|
3531
|
+
return rows.map(parseFollowUp);
|
|
3532
|
+
}
|
|
3533
|
+
async updateFollowUpStatus(agentId, id, status, completedAt) {
|
|
3534
|
+
const now = isoNow();
|
|
3535
|
+
const completedClause = completedAt
|
|
3536
|
+
? `, completed_at = ${sqlQuote(completedAt)}`
|
|
3537
|
+
: "";
|
|
3538
|
+
await executeRawSql(this.runtime, `UPDATE life_follow_ups
|
|
3539
|
+
SET status = ${sqlQuote(status)},
|
|
3540
|
+
updated_at = ${sqlQuote(now)}
|
|
3541
|
+
${completedClause}
|
|
3542
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3543
|
+
AND id = ${sqlQuote(id)}`);
|
|
3544
|
+
}
|
|
3545
|
+
async updateFollowUpDueAt(agentId, id, dueAt) {
|
|
3546
|
+
const now = isoNow();
|
|
3547
|
+
await executeRawSql(this.runtime, `UPDATE life_follow_ups
|
|
3548
|
+
SET due_at = ${sqlQuote(dueAt)},
|
|
3549
|
+
updated_at = ${sqlQuote(now)}
|
|
3550
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3551
|
+
AND id = ${sqlQuote(id)}`);
|
|
3552
|
+
}
|
|
3553
|
+
// -----------------------------------------------------------------------
|
|
3554
|
+
// X (Twitter) DMs, feed items, and sync state
|
|
3555
|
+
// -----------------------------------------------------------------------
|
|
3556
|
+
async upsertXDm(dm) {
|
|
3557
|
+
await executeRawSql(this.runtime, `INSERT INTO life_x_dms (
|
|
3558
|
+
id, agent_id, external_dm_id, conversation_id, sender_handle, sender_id,
|
|
3559
|
+
is_inbound, text, received_at, read_at, replied_at, metadata_json,
|
|
3560
|
+
synced_at, updated_at
|
|
3561
|
+
) VALUES (
|
|
3562
|
+
${sqlQuote(dm.id)},
|
|
3563
|
+
${sqlQuote(dm.agentId)},
|
|
3564
|
+
${sqlQuote(dm.externalDmId)},
|
|
3565
|
+
${sqlQuote(dm.conversationId)},
|
|
3566
|
+
${sqlQuote(dm.senderHandle)},
|
|
3567
|
+
${sqlQuote(dm.senderId)},
|
|
3568
|
+
${sqlBoolean(dm.isInbound)},
|
|
3569
|
+
${sqlQuote(dm.text)},
|
|
3570
|
+
${sqlQuote(dm.receivedAt)},
|
|
3571
|
+
${sqlText(dm.readAt)},
|
|
3572
|
+
${sqlText(dm.repliedAt)},
|
|
3573
|
+
${sqlJson(dm.metadata)},
|
|
3574
|
+
${sqlQuote(dm.syncedAt)},
|
|
3575
|
+
${sqlQuote(dm.updatedAt)}
|
|
3576
|
+
)
|
|
3577
|
+
ON CONFLICT(agent_id, external_dm_id) DO UPDATE SET
|
|
3578
|
+
conversation_id = excluded.conversation_id,
|
|
3579
|
+
sender_handle = excluded.sender_handle,
|
|
3580
|
+
sender_id = excluded.sender_id,
|
|
3581
|
+
is_inbound = excluded.is_inbound,
|
|
3582
|
+
text = excluded.text,
|
|
3583
|
+
received_at = excluded.received_at,
|
|
3584
|
+
read_at = excluded.read_at,
|
|
3585
|
+
replied_at = excluded.replied_at,
|
|
3586
|
+
metadata_json = excluded.metadata_json,
|
|
3587
|
+
synced_at = excluded.synced_at,
|
|
3588
|
+
updated_at = excluded.updated_at`);
|
|
3589
|
+
}
|
|
3590
|
+
async listXDms(agentId, opts = {}) {
|
|
3591
|
+
const DEFAULT_LIMIT = 100;
|
|
3592
|
+
const limit = opts.limit !== undefined && Number.isFinite(opts.limit)
|
|
3593
|
+
? opts.limit
|
|
3594
|
+
: DEFAULT_LIMIT;
|
|
3595
|
+
const conversationClause = opts.conversationId
|
|
3596
|
+
? `AND conversation_id = ${sqlQuote(opts.conversationId)}`
|
|
3597
|
+
: "";
|
|
3598
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3599
|
+
FROM life_x_dms
|
|
3600
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3601
|
+
${conversationClause}
|
|
3602
|
+
ORDER BY received_at DESC
|
|
3603
|
+
LIMIT ${sqlInteger(limit)}`);
|
|
3604
|
+
return rows.map(parseXDm);
|
|
3605
|
+
}
|
|
3606
|
+
async upsertXFeedItem(item) {
|
|
3607
|
+
await executeRawSql(this.runtime, `INSERT INTO life_x_feed_items (
|
|
3608
|
+
id, agent_id, external_tweet_id, author_handle, author_id, text,
|
|
3609
|
+
created_at_source, feed_type, metadata_json, synced_at, updated_at
|
|
3610
|
+
) VALUES (
|
|
3611
|
+
${sqlQuote(item.id)},
|
|
3612
|
+
${sqlQuote(item.agentId)},
|
|
3613
|
+
${sqlQuote(item.externalTweetId)},
|
|
3614
|
+
${sqlQuote(item.authorHandle)},
|
|
3615
|
+
${sqlQuote(item.authorId)},
|
|
3616
|
+
${sqlQuote(item.text)},
|
|
3617
|
+
${sqlQuote(item.createdAtSource)},
|
|
3618
|
+
${sqlQuote(item.feedType)},
|
|
3619
|
+
${sqlJson(item.metadata)},
|
|
3620
|
+
${sqlQuote(item.syncedAt)},
|
|
3621
|
+
${sqlQuote(item.updatedAt)}
|
|
3622
|
+
)
|
|
3623
|
+
ON CONFLICT(agent_id, external_tweet_id, feed_type) DO UPDATE SET
|
|
3624
|
+
author_handle = excluded.author_handle,
|
|
3625
|
+
author_id = excluded.author_id,
|
|
3626
|
+
text = excluded.text,
|
|
3627
|
+
created_at_source = excluded.created_at_source,
|
|
3628
|
+
metadata_json = excluded.metadata_json,
|
|
3629
|
+
synced_at = excluded.synced_at,
|
|
3630
|
+
updated_at = excluded.updated_at`);
|
|
3631
|
+
}
|
|
3632
|
+
async listXFeedItems(agentId, feedType, opts = {}) {
|
|
3633
|
+
const DEFAULT_LIMIT = 100;
|
|
3634
|
+
const limit = opts.limit !== undefined && Number.isFinite(opts.limit)
|
|
3635
|
+
? opts.limit
|
|
3636
|
+
: DEFAULT_LIMIT;
|
|
3637
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3638
|
+
FROM life_x_feed_items
|
|
3639
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3640
|
+
AND feed_type = ${sqlQuote(feedType)}
|
|
3641
|
+
ORDER BY created_at_source DESC
|
|
3642
|
+
LIMIT ${sqlInteger(limit)}`);
|
|
3643
|
+
return rows.map(parseXFeedItem);
|
|
3644
|
+
}
|
|
3645
|
+
async upsertXSyncState(state) {
|
|
3646
|
+
await executeRawSql(this.runtime, `INSERT INTO life_x_sync_states (
|
|
3647
|
+
id, agent_id, feed_type, last_cursor, synced_at, updated_at
|
|
3648
|
+
) VALUES (
|
|
3649
|
+
${sqlQuote(state.id)},
|
|
3650
|
+
${sqlQuote(state.agentId)},
|
|
3651
|
+
${sqlQuote(state.feedType)},
|
|
3652
|
+
${sqlText(state.lastCursor)},
|
|
3653
|
+
${sqlQuote(state.syncedAt)},
|
|
3654
|
+
${sqlQuote(state.updatedAt)}
|
|
3655
|
+
)
|
|
3656
|
+
ON CONFLICT(agent_id, feed_type) DO UPDATE SET
|
|
3657
|
+
last_cursor = excluded.last_cursor,
|
|
3658
|
+
synced_at = excluded.synced_at,
|
|
3659
|
+
updated_at = excluded.updated_at`);
|
|
3660
|
+
}
|
|
3661
|
+
async getXSyncState(agentId, feedType) {
|
|
3662
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3663
|
+
FROM life_x_sync_states
|
|
3664
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3665
|
+
AND feed_type = ${sqlQuote(feedType)}
|
|
3666
|
+
LIMIT 1`);
|
|
3667
|
+
const row = rows[0];
|
|
3668
|
+
return row ? parseXSyncState(row) : null;
|
|
3669
|
+
}
|
|
3670
|
+
// -----------------------------------------------------------------------
|
|
3671
|
+
// Screen time — per-app and per-website dwell sessions + daily rollups
|
|
3672
|
+
// -----------------------------------------------------------------------
|
|
3673
|
+
async upsertScreenTimeSession(session) {
|
|
3674
|
+
await executeRawSql(this.runtime, `INSERT INTO life_screen_time_sessions (
|
|
3675
|
+
id, agent_id, source, identifier, display_name, start_at, end_at,
|
|
3676
|
+
duration_seconds, is_active, metadata_json, created_at, updated_at
|
|
3677
|
+
) VALUES (
|
|
3678
|
+
${sqlQuote(session.id)},
|
|
3679
|
+
${sqlQuote(session.agentId)},
|
|
3680
|
+
${sqlQuote(session.source)},
|
|
3681
|
+
${sqlQuote(session.identifier)},
|
|
3682
|
+
${sqlQuote(session.displayName)},
|
|
3683
|
+
${sqlQuote(session.startAt)},
|
|
3684
|
+
${sqlText(session.endAt)},
|
|
3685
|
+
${sqlInteger(session.durationSeconds)},
|
|
3686
|
+
${sqlBoolean(session.isActive)},
|
|
3687
|
+
${sqlJson(session.metadata)},
|
|
3688
|
+
${sqlQuote(session.createdAt)},
|
|
3689
|
+
${sqlQuote(session.updatedAt)}
|
|
3690
|
+
)
|
|
3691
|
+
ON CONFLICT (id) DO UPDATE SET
|
|
3692
|
+
source = EXCLUDED.source,
|
|
3693
|
+
identifier = EXCLUDED.identifier,
|
|
3694
|
+
display_name = EXCLUDED.display_name,
|
|
3695
|
+
start_at = EXCLUDED.start_at,
|
|
3696
|
+
end_at = EXCLUDED.end_at,
|
|
3697
|
+
duration_seconds = EXCLUDED.duration_seconds,
|
|
3698
|
+
is_active = EXCLUDED.is_active,
|
|
3699
|
+
metadata_json = EXCLUDED.metadata_json,
|
|
3700
|
+
updated_at = EXCLUDED.updated_at`);
|
|
3701
|
+
}
|
|
3702
|
+
async getScreenTimeSession(agentId, id) {
|
|
3703
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3704
|
+
FROM life_screen_time_sessions
|
|
3705
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3706
|
+
AND id = ${sqlQuote(id)}
|
|
3707
|
+
LIMIT 1`);
|
|
3708
|
+
const row = rows[0];
|
|
3709
|
+
return row ? parseScreenTimeSession(row) : null;
|
|
3710
|
+
}
|
|
3711
|
+
async finishScreenTimeSession(agentId, id, endAt, durationSeconds) {
|
|
3712
|
+
const now = isoNow();
|
|
3713
|
+
await executeRawSql(this.runtime, `UPDATE life_screen_time_sessions
|
|
3714
|
+
SET end_at = ${sqlQuote(endAt)},
|
|
3715
|
+
duration_seconds = ${sqlInteger(durationSeconds)},
|
|
3716
|
+
is_active = ${sqlBoolean(false)},
|
|
3717
|
+
updated_at = ${sqlQuote(now)}
|
|
3718
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3719
|
+
AND id = ${sqlQuote(id)}`);
|
|
3720
|
+
}
|
|
3721
|
+
async listScreenTimeSessionsBetween(agentId, start, end, opts) {
|
|
3722
|
+
const clauses = [
|
|
3723
|
+
`agent_id = ${sqlQuote(agentId)}`,
|
|
3724
|
+
`start_at >= ${sqlQuote(start)}`,
|
|
3725
|
+
`start_at < ${sqlQuote(end)}`,
|
|
3726
|
+
];
|
|
3727
|
+
if (opts?.source) {
|
|
3728
|
+
clauses.push(`source = ${sqlQuote(opts.source)}`);
|
|
3729
|
+
}
|
|
3730
|
+
const limitClause = typeof opts?.limit === "number" ? `LIMIT ${sqlInteger(opts.limit)}` : "";
|
|
3731
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3732
|
+
FROM life_screen_time_sessions
|
|
3733
|
+
WHERE ${clauses.join(" AND ")}
|
|
3734
|
+
ORDER BY start_at ASC
|
|
3735
|
+
${limitClause}`);
|
|
3736
|
+
return rows.map(parseScreenTimeSession);
|
|
3737
|
+
}
|
|
3738
|
+
async listScreenTimeSessionsOverlapping(agentId, start, end, opts) {
|
|
3739
|
+
const clauses = [
|
|
3740
|
+
`agent_id = ${sqlQuote(agentId)}`,
|
|
3741
|
+
`start_at < ${sqlQuote(end)}`,
|
|
3742
|
+
`(end_at IS NULL OR end_at > ${sqlQuote(start)})`,
|
|
3743
|
+
];
|
|
3744
|
+
if (opts?.source) {
|
|
3745
|
+
clauses.push(`source = ${sqlQuote(opts.source)}`);
|
|
3746
|
+
}
|
|
3747
|
+
const limitClause = typeof opts?.limit === "number" ? `LIMIT ${sqlInteger(opts.limit)}` : "";
|
|
3748
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3749
|
+
FROM life_screen_time_sessions
|
|
3750
|
+
WHERE ${clauses.join(" AND ")}
|
|
3751
|
+
ORDER BY start_at ASC
|
|
3752
|
+
${limitClause}`);
|
|
3753
|
+
return rows.map(parseScreenTimeSession);
|
|
3754
|
+
}
|
|
3755
|
+
async upsertScreenTimeDaily(row) {
|
|
3756
|
+
await executeRawSql(this.runtime, `INSERT INTO life_screen_time_daily (
|
|
3757
|
+
id, agent_id, source, identifier, date, total_seconds, session_count,
|
|
3758
|
+
metadata_json, created_at, updated_at
|
|
3759
|
+
) VALUES (
|
|
3760
|
+
${sqlQuote(row.id)},
|
|
3761
|
+
${sqlQuote(row.agentId)},
|
|
3762
|
+
${sqlQuote(row.source)},
|
|
3763
|
+
${sqlQuote(row.identifier)},
|
|
3764
|
+
${sqlQuote(row.date)},
|
|
3765
|
+
${sqlInteger(row.totalSeconds)},
|
|
3766
|
+
${sqlInteger(row.sessionCount)},
|
|
3767
|
+
${sqlJson(row.metadata)},
|
|
3768
|
+
${sqlQuote(row.createdAt)},
|
|
3769
|
+
${sqlQuote(row.updatedAt)}
|
|
3770
|
+
)
|
|
3771
|
+
ON CONFLICT (agent_id, source, identifier, date) DO UPDATE SET
|
|
3772
|
+
total_seconds = EXCLUDED.total_seconds,
|
|
3773
|
+
session_count = EXCLUDED.session_count,
|
|
3774
|
+
metadata_json = EXCLUDED.metadata_json,
|
|
3775
|
+
updated_at = EXCLUDED.updated_at`);
|
|
3776
|
+
}
|
|
3777
|
+
async upsertScheduleInsight(insight) {
|
|
3778
|
+
await executeRawSql(this.runtime, `INSERT INTO life_schedule_insights (
|
|
3779
|
+
id, agent_id, effective_day_key, local_date, timezone, inferred_at,
|
|
3780
|
+
circadian_state, state_confidence, uncertainty_reason, sleep_status,
|
|
3781
|
+
sleep_confidence,
|
|
3782
|
+
current_sleep_started_at, last_sleep_started_at, last_sleep_ended_at,
|
|
3783
|
+
last_sleep_duration_minutes, wake_at, first_active_at, last_active_at,
|
|
3784
|
+
last_meal_at,
|
|
3785
|
+
next_meal_label, next_meal_window_start_at, next_meal_window_end_at,
|
|
3786
|
+
next_meal_confidence, meals_json, awake_probability_json,
|
|
3787
|
+
regularity_json, baseline_json, circadian_rule_firings_json,
|
|
3788
|
+
metadata_json, created_at, updated_at
|
|
3789
|
+
) VALUES (
|
|
3790
|
+
${sqlQuote(insight.id)},
|
|
3791
|
+
${sqlQuote(insight.agentId)},
|
|
3792
|
+
${sqlQuote(insight.effectiveDayKey)},
|
|
3793
|
+
${sqlQuote(insight.localDate)},
|
|
3794
|
+
${sqlQuote(insight.timezone)},
|
|
3795
|
+
${sqlQuote(insight.inferredAt)},
|
|
3796
|
+
${sqlQuote(insight.circadianState)},
|
|
3797
|
+
${sqlNumber(insight.stateConfidence)},
|
|
3798
|
+
${sqlText(insight.uncertaintyReason)},
|
|
3799
|
+
${sqlQuote(insight.sleepStatus)},
|
|
3800
|
+
${sqlNumber(insight.sleepConfidence)},
|
|
3801
|
+
${sqlText(insight.currentSleepStartedAt)},
|
|
3802
|
+
${sqlText(insight.lastSleepStartedAt)},
|
|
3803
|
+
${sqlText(insight.lastSleepEndedAt)},
|
|
3804
|
+
${sqlInteger(insight.lastSleepDurationMinutes)},
|
|
3805
|
+
${sqlText(insight.wakeAt)},
|
|
3806
|
+
${sqlText(insight.firstActiveAt)},
|
|
3807
|
+
${sqlText(insight.lastActiveAt)},
|
|
3808
|
+
${sqlText(insight.lastMealAt)},
|
|
3809
|
+
${sqlText(insight.nextMealLabel)},
|
|
3810
|
+
${sqlText(insight.nextMealWindowStartAt)},
|
|
3811
|
+
${sqlText(insight.nextMealWindowEndAt)},
|
|
3812
|
+
${sqlNumber(insight.nextMealConfidence)},
|
|
3813
|
+
${sqlJson(insight.meals)},
|
|
3814
|
+
${sqlJson(insight.awakeProbability)},
|
|
3815
|
+
${sqlJson(insight.regularity)},
|
|
3816
|
+
${sqlJson(insight.baseline)},
|
|
3817
|
+
${sqlJson(insight.circadianRuleFirings)},
|
|
3818
|
+
${sqlJson(insight.metadata)},
|
|
3819
|
+
${sqlQuote(insight.createdAt)},
|
|
3820
|
+
${sqlQuote(insight.updatedAt)}
|
|
3821
|
+
)
|
|
3822
|
+
ON CONFLICT(agent_id, effective_day_key) DO UPDATE SET
|
|
3823
|
+
local_date = EXCLUDED.local_date,
|
|
3824
|
+
timezone = EXCLUDED.timezone,
|
|
3825
|
+
inferred_at = EXCLUDED.inferred_at,
|
|
3826
|
+
circadian_state = EXCLUDED.circadian_state,
|
|
3827
|
+
state_confidence = EXCLUDED.state_confidence,
|
|
3828
|
+
uncertainty_reason = EXCLUDED.uncertainty_reason,
|
|
3829
|
+
sleep_status = EXCLUDED.sleep_status,
|
|
3830
|
+
sleep_confidence = EXCLUDED.sleep_confidence,
|
|
3831
|
+
current_sleep_started_at = EXCLUDED.current_sleep_started_at,
|
|
3832
|
+
last_sleep_started_at = EXCLUDED.last_sleep_started_at,
|
|
3833
|
+
last_sleep_ended_at = EXCLUDED.last_sleep_ended_at,
|
|
3834
|
+
last_sleep_duration_minutes = EXCLUDED.last_sleep_duration_minutes,
|
|
3835
|
+
wake_at = EXCLUDED.wake_at,
|
|
3836
|
+
first_active_at = EXCLUDED.first_active_at,
|
|
3837
|
+
last_active_at = EXCLUDED.last_active_at,
|
|
3838
|
+
last_meal_at = EXCLUDED.last_meal_at,
|
|
3839
|
+
next_meal_label = EXCLUDED.next_meal_label,
|
|
3840
|
+
next_meal_window_start_at = EXCLUDED.next_meal_window_start_at,
|
|
3841
|
+
next_meal_window_end_at = EXCLUDED.next_meal_window_end_at,
|
|
3842
|
+
next_meal_confidence = EXCLUDED.next_meal_confidence,
|
|
3843
|
+
meals_json = EXCLUDED.meals_json,
|
|
3844
|
+
awake_probability_json = EXCLUDED.awake_probability_json,
|
|
3845
|
+
regularity_json = EXCLUDED.regularity_json,
|
|
3846
|
+
baseline_json = EXCLUDED.baseline_json,
|
|
3847
|
+
circadian_rule_firings_json = EXCLUDED.circadian_rule_firings_json,
|
|
3848
|
+
metadata_json = EXCLUDED.metadata_json,
|
|
3849
|
+
updated_at = EXCLUDED.updated_at`);
|
|
3850
|
+
}
|
|
3851
|
+
/**
|
|
3852
|
+
* Insert a telemetry event with content-hash dedupe. Returns `true` when a
|
|
3853
|
+
* new row was written, `false` when the `(agent_id, dedupe_key)` pair
|
|
3854
|
+
* already existed. See `telemetry-event-families.md` §5 for the derivation
|
|
3855
|
+
* of `dedupeKey`.
|
|
3856
|
+
*/
|
|
3857
|
+
async insertTelemetryEvent(event) {
|
|
3858
|
+
const rows = await executeRawSql(this.runtime, `INSERT INTO life_telemetry_events (
|
|
3859
|
+
id, agent_id, family, occurred_at, ingested_at, dedupe_key,
|
|
3860
|
+
source_reliability, payload_json
|
|
3861
|
+
) VALUES (
|
|
3862
|
+
${sqlQuote(event.id)},
|
|
3863
|
+
${sqlQuote(event.agentId)},
|
|
3864
|
+
${sqlQuote(event.family)},
|
|
3865
|
+
${sqlQuote(event.occurredAt)},
|
|
3866
|
+
${sqlQuote(event.ingestedAt)},
|
|
3867
|
+
${sqlQuote(event.dedupeKey)},
|
|
3868
|
+
${sqlNumber(event.sourceReliability)},
|
|
3869
|
+
${sqlJson(event.payload)}
|
|
3870
|
+
)
|
|
3871
|
+
ON CONFLICT(agent_id, dedupe_key) DO NOTHING
|
|
3872
|
+
RETURNING id`);
|
|
3873
|
+
return rows.length > 0;
|
|
3874
|
+
}
|
|
3875
|
+
async listTelemetryEvents(args) {
|
|
3876
|
+
const clauses = [`agent_id = ${sqlQuote(args.agentId)}`];
|
|
3877
|
+
if (args.familyIn && args.familyIn.length > 0) {
|
|
3878
|
+
const inList = args.familyIn.map((family) => sqlQuote(family)).join(", ");
|
|
3879
|
+
clauses.push(`family IN (${inList})`);
|
|
3880
|
+
}
|
|
3881
|
+
if (args.sinceIso) {
|
|
3882
|
+
clauses.push(`occurred_at >= ${sqlQuote(args.sinceIso)}`);
|
|
3883
|
+
}
|
|
3884
|
+
if (args.untilIso) {
|
|
3885
|
+
clauses.push(`occurred_at <= ${sqlQuote(args.untilIso)}`);
|
|
3886
|
+
}
|
|
3887
|
+
const limitClause = typeof args.limit === "number" ? `LIMIT ${sqlInteger(args.limit)}` : "";
|
|
3888
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3889
|
+
FROM life_telemetry_events
|
|
3890
|
+
WHERE ${clauses.join(" AND ")}
|
|
3891
|
+
ORDER BY occurred_at ASC
|
|
3892
|
+
${limitClause}`);
|
|
3893
|
+
return rows.map(parseTelemetryEventRow);
|
|
3894
|
+
}
|
|
3895
|
+
/**
|
|
3896
|
+
* Delete telemetry rows older than the retention window. Callers should
|
|
3897
|
+
* prune daily via the scheduler. Daily rollups in
|
|
3898
|
+
* `life_telemetry_rollup_daily` are retained indefinitely.
|
|
3899
|
+
*/
|
|
3900
|
+
async pruneTelemetryEvents(args) {
|
|
3901
|
+
const cutoff = new Date(Date.now() - args.retentionDays * 24 * 60 * 60 * 1_000).toISOString();
|
|
3902
|
+
const rows = await executeRawSql(this.runtime, `DELETE FROM life_telemetry_events
|
|
3903
|
+
WHERE agent_id = ${sqlQuote(args.agentId)}
|
|
3904
|
+
AND occurred_at < ${sqlQuote(cutoff)}
|
|
3905
|
+
RETURNING id`);
|
|
3906
|
+
return { deletedCount: rows.length };
|
|
3907
|
+
}
|
|
3908
|
+
/**
|
|
3909
|
+
* Roll up raw telemetry events within `[sinceIso, untilIso)` into daily
|
|
3910
|
+
* per-family aggregates. Upserts per (agent, family, local_date). Callers
|
|
3911
|
+
* should run this before `pruneTelemetryEvents` so the 60-day retention
|
|
3912
|
+
* cutoff doesn't drop un-aggregated history.
|
|
3913
|
+
*
|
|
3914
|
+
* The bucket key (`local_date`) is the UTC date of `occurred_at` — local
|
|
3915
|
+
* timezone bucketing would require per-agent TZ, which higher-level callers
|
|
3916
|
+
* can project off the merged schedule state when they need it.
|
|
3917
|
+
*/
|
|
3918
|
+
async upsertTelemetryDailyRollup(args) {
|
|
3919
|
+
const nowIso = new Date().toISOString();
|
|
3920
|
+
const rows = await executeRawSql(this.runtime, `SELECT family,
|
|
3921
|
+
SUBSTR(occurred_at, 1, 10) AS local_date,
|
|
3922
|
+
COUNT(*) AS event_count,
|
|
3923
|
+
MAX(occurred_at) AS last_observed_at
|
|
3924
|
+
FROM life_telemetry_events
|
|
3925
|
+
WHERE agent_id = ${sqlQuote(args.agentId)}
|
|
3926
|
+
AND occurred_at >= ${sqlQuote(args.sinceIso)}
|
|
3927
|
+
AND occurred_at < ${sqlQuote(args.untilIso)}
|
|
3928
|
+
GROUP BY family, SUBSTR(occurred_at, 1, 10)`);
|
|
3929
|
+
let bucketsWritten = 0;
|
|
3930
|
+
for (const row of rows) {
|
|
3931
|
+
const family = toText(row.family);
|
|
3932
|
+
const localDate = toText(row.local_date);
|
|
3933
|
+
const eventCount = Number(row.event_count ?? 0);
|
|
3934
|
+
const lastObservedAt = toText(row.last_observed_at);
|
|
3935
|
+
if (!family || !localDate || !lastObservedAt)
|
|
3936
|
+
continue;
|
|
3937
|
+
await executeRawSql(this.runtime, `INSERT INTO life_telemetry_rollup_daily (
|
|
3938
|
+
agent_id, family, local_date, event_count,
|
|
3939
|
+
last_observed_at, created_at, updated_at
|
|
3940
|
+
) VALUES (
|
|
3941
|
+
${sqlQuote(args.agentId)},
|
|
3942
|
+
${sqlQuote(family)},
|
|
3943
|
+
${sqlQuote(localDate)},
|
|
3944
|
+
${sqlInteger(eventCount)},
|
|
3945
|
+
${sqlQuote(lastObservedAt)},
|
|
3946
|
+
${sqlQuote(nowIso)},
|
|
3947
|
+
${sqlQuote(nowIso)}
|
|
3948
|
+
)
|
|
3949
|
+
ON CONFLICT(agent_id, family, local_date) DO UPDATE SET
|
|
3950
|
+
event_count = EXCLUDED.event_count,
|
|
3951
|
+
last_observed_at = EXCLUDED.last_observed_at,
|
|
3952
|
+
updated_at = EXCLUDED.updated_at`);
|
|
3953
|
+
bucketsWritten += 1;
|
|
3954
|
+
}
|
|
3955
|
+
return { bucketsWritten };
|
|
3956
|
+
}
|
|
3957
|
+
async readCircadianState(agentId) {
|
|
3958
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
3959
|
+
FROM life_circadian_states
|
|
3960
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
3961
|
+
LIMIT 1`);
|
|
3962
|
+
return rows[0] ? parseCircadianStateRow(rows[0]) : null;
|
|
3963
|
+
}
|
|
3964
|
+
async upsertCircadianState(state) {
|
|
3965
|
+
await executeRawSql(this.runtime, `INSERT INTO life_circadian_states (
|
|
3966
|
+
agent_id, circadian_state, state_confidence, uncertainty_reason,
|
|
3967
|
+
entered_at, since_sleep_detected_at, since_wake_observed_at,
|
|
3968
|
+
since_wake_confirmed_at, evidence_refs_json, created_at, updated_at
|
|
3969
|
+
) VALUES (
|
|
3970
|
+
${sqlQuote(state.agentId)},
|
|
3971
|
+
${sqlQuote(state.circadianState)},
|
|
3972
|
+
${sqlNumber(state.stateConfidence)},
|
|
3973
|
+
${sqlText(state.uncertaintyReason)},
|
|
3974
|
+
${sqlQuote(state.enteredAt)},
|
|
3975
|
+
${sqlText(state.sinceSleepDetectedAt)},
|
|
3976
|
+
${sqlText(state.sinceWakeObservedAt)},
|
|
3977
|
+
${sqlText(state.sinceWakeConfirmedAt)},
|
|
3978
|
+
${sqlJson(state.evidenceRefs)},
|
|
3979
|
+
${sqlQuote(state.createdAt)},
|
|
3980
|
+
${sqlQuote(state.updatedAt)}
|
|
3981
|
+
)
|
|
3982
|
+
ON CONFLICT(agent_id) DO UPDATE SET
|
|
3983
|
+
circadian_state = EXCLUDED.circadian_state,
|
|
3984
|
+
state_confidence = EXCLUDED.state_confidence,
|
|
3985
|
+
uncertainty_reason = EXCLUDED.uncertainty_reason,
|
|
3986
|
+
entered_at = EXCLUDED.entered_at,
|
|
3987
|
+
since_sleep_detected_at = EXCLUDED.since_sleep_detected_at,
|
|
3988
|
+
since_wake_observed_at = EXCLUDED.since_wake_observed_at,
|
|
3989
|
+
since_wake_confirmed_at = EXCLUDED.since_wake_confirmed_at,
|
|
3990
|
+
evidence_refs_json = EXCLUDED.evidence_refs_json,
|
|
3991
|
+
updated_at = EXCLUDED.updated_at`);
|
|
3992
|
+
}
|
|
3993
|
+
async upsertSleepEpisode(episode) {
|
|
3994
|
+
await executeRawSql(this.runtime, `INSERT INTO life_sleep_episodes (
|
|
3995
|
+
id, agent_id, start_at, end_at, source, confidence, cycle_type,
|
|
3996
|
+
sealed, evidence_json, created_at, updated_at
|
|
3997
|
+
) VALUES (
|
|
3998
|
+
${sqlQuote(episode.id)},
|
|
3999
|
+
${sqlQuote(episode.agentId)},
|
|
4000
|
+
${sqlQuote(episode.startAt)},
|
|
4001
|
+
${sqlText(episode.endAt)},
|
|
4002
|
+
${sqlQuote(episode.source)},
|
|
4003
|
+
${sqlNumber(episode.confidence)},
|
|
4004
|
+
${sqlQuote(episode.cycleType)},
|
|
4005
|
+
${sqlBoolean(episode.sealed)},
|
|
4006
|
+
${sqlJson(episode.evidence)},
|
|
4007
|
+
${sqlQuote(episode.createdAt)},
|
|
4008
|
+
${sqlQuote(episode.updatedAt)}
|
|
4009
|
+
)
|
|
4010
|
+
ON CONFLICT(agent_id, start_at) DO UPDATE SET
|
|
4011
|
+
end_at = EXCLUDED.end_at,
|
|
4012
|
+
source = EXCLUDED.source,
|
|
4013
|
+
confidence = EXCLUDED.confidence,
|
|
4014
|
+
cycle_type = EXCLUDED.cycle_type,
|
|
4015
|
+
sealed = EXCLUDED.sealed,
|
|
4016
|
+
evidence_json = EXCLUDED.evidence_json,
|
|
4017
|
+
updated_at = EXCLUDED.updated_at`);
|
|
4018
|
+
}
|
|
4019
|
+
async listSleepEpisodesBetween(agentId, startAt, endAt, opts) {
|
|
4020
|
+
const clauses = [
|
|
4021
|
+
`agent_id = ${sqlQuote(agentId)}`,
|
|
4022
|
+
`(end_at IS NULL OR end_at >= ${sqlQuote(startAt)})`,
|
|
4023
|
+
`start_at <= ${sqlQuote(endAt)}`,
|
|
4024
|
+
];
|
|
4025
|
+
if (opts?.includeOpen !== true) {
|
|
4026
|
+
clauses.push("sealed = TRUE");
|
|
4027
|
+
}
|
|
4028
|
+
const limitClause = typeof opts?.limit === "number" ? `LIMIT ${sqlInteger(opts.limit)}` : "";
|
|
4029
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
4030
|
+
FROM life_sleep_episodes
|
|
4031
|
+
WHERE ${clauses.join(" AND ")}
|
|
4032
|
+
ORDER BY start_at ASC
|
|
4033
|
+
${limitClause}`);
|
|
4034
|
+
return rows.map(parseSleepEpisode);
|
|
4035
|
+
}
|
|
4036
|
+
async upsertScheduleObservation(observation) {
|
|
4037
|
+
await executeRawSql(this.runtime, `INSERT INTO life_schedule_observations (
|
|
4038
|
+
id, agent_id, origin, device_id, device_kind, timezone, observed_at,
|
|
4039
|
+
window_start_at, window_end_at, circadian_state, state_confidence,
|
|
4040
|
+
uncertainty_reason, meal_label, metadata_json, created_at, updated_at
|
|
4041
|
+
) VALUES (
|
|
4042
|
+
${sqlQuote(observation.id)},
|
|
4043
|
+
${sqlQuote(observation.agentId)},
|
|
4044
|
+
${sqlQuote(observation.origin)},
|
|
4045
|
+
${sqlQuote(observation.deviceId)},
|
|
4046
|
+
${sqlQuote(observation.deviceKind)},
|
|
4047
|
+
${sqlQuote(observation.timezone)},
|
|
4048
|
+
${sqlQuote(observation.observedAt)},
|
|
4049
|
+
${sqlQuote(observation.windowStartAt)},
|
|
4050
|
+
${sqlText(observation.windowEndAt)},
|
|
4051
|
+
${sqlQuote(observation.circadianState)},
|
|
4052
|
+
${sqlNumber(observation.stateConfidence)},
|
|
4053
|
+
${sqlText(observation.uncertaintyReason)},
|
|
4054
|
+
${sqlText(observation.mealLabel)},
|
|
4055
|
+
${sqlJson(observation.metadata)},
|
|
4056
|
+
${sqlQuote(observation.createdAt)},
|
|
4057
|
+
${sqlQuote(observation.updatedAt)}
|
|
4058
|
+
)
|
|
4059
|
+
ON CONFLICT(id) DO UPDATE SET
|
|
4060
|
+
observed_at = EXCLUDED.observed_at,
|
|
4061
|
+
window_end_at = EXCLUDED.window_end_at,
|
|
4062
|
+
circadian_state = EXCLUDED.circadian_state,
|
|
4063
|
+
state_confidence = EXCLUDED.state_confidence,
|
|
4064
|
+
uncertainty_reason = EXCLUDED.uncertainty_reason,
|
|
4065
|
+
meal_label = EXCLUDED.meal_label,
|
|
4066
|
+
metadata_json = EXCLUDED.metadata_json,
|
|
4067
|
+
updated_at = EXCLUDED.updated_at`);
|
|
4068
|
+
}
|
|
4069
|
+
async listScheduleObservations(agentId, sinceAt, opts) {
|
|
4070
|
+
const clauses = [
|
|
4071
|
+
`agent_id = ${sqlQuote(agentId)}`,
|
|
4072
|
+
`observed_at >= ${sqlQuote(sinceAt)}`,
|
|
4073
|
+
];
|
|
4074
|
+
if (opts?.origin) {
|
|
4075
|
+
clauses.push(`origin = ${sqlQuote(opts.origin)}`);
|
|
4076
|
+
}
|
|
4077
|
+
if (opts?.deviceId) {
|
|
4078
|
+
clauses.push(`device_id = ${sqlQuote(opts.deviceId)}`);
|
|
4079
|
+
}
|
|
4080
|
+
const limitClause = typeof opts?.limit === "number" ? `LIMIT ${sqlInteger(opts.limit)}` : "";
|
|
4081
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
4082
|
+
FROM life_schedule_observations
|
|
4083
|
+
WHERE ${clauses.join(" AND ")}
|
|
4084
|
+
ORDER BY observed_at DESC
|
|
4085
|
+
${limitClause}`);
|
|
4086
|
+
return rows.map(parseScheduleObservation);
|
|
4087
|
+
}
|
|
4088
|
+
async upsertScheduleMergedState(state) {
|
|
4089
|
+
await executeRawSql(this.runtime, `INSERT INTO life_schedule_merged_states (
|
|
4090
|
+
id, agent_id, scope, effective_day_key, local_date, timezone,
|
|
4091
|
+
merged_at, inferred_at, circadian_state, state_confidence,
|
|
4092
|
+
uncertainty_reason, sleep_status, sleep_confidence,
|
|
4093
|
+
current_sleep_started_at, last_sleep_started_at,
|
|
4094
|
+
last_sleep_ended_at, last_sleep_duration_minutes,
|
|
4095
|
+
wake_at, first_active_at, last_active_at,
|
|
4096
|
+
last_meal_at, next_meal_label, next_meal_window_start_at,
|
|
4097
|
+
next_meal_window_end_at, next_meal_confidence, meals_json,
|
|
4098
|
+
awake_probability_json, regularity_json, baseline_json,
|
|
4099
|
+
circadian_rule_firings_json,
|
|
4100
|
+
observation_count, device_count, contributing_device_kinds_json,
|
|
4101
|
+
metadata_json, created_at, updated_at
|
|
4102
|
+
) VALUES (
|
|
4103
|
+
${sqlQuote(state.id)},
|
|
4104
|
+
${sqlQuote(state.agentId)},
|
|
4105
|
+
${sqlQuote(state.scope)},
|
|
4106
|
+
${sqlQuote(state.effectiveDayKey)},
|
|
4107
|
+
${sqlQuote(state.localDate)},
|
|
4108
|
+
${sqlQuote(state.timezone)},
|
|
4109
|
+
${sqlQuote(state.mergedAt)},
|
|
4110
|
+
${sqlQuote(state.inferredAt)},
|
|
4111
|
+
${sqlQuote(state.circadianState)},
|
|
4112
|
+
${sqlNumber(state.stateConfidence)},
|
|
4113
|
+
${sqlText(state.uncertaintyReason)},
|
|
4114
|
+
${sqlQuote(state.sleepStatus)},
|
|
4115
|
+
${sqlNumber(state.sleepConfidence)},
|
|
4116
|
+
${sqlText(state.currentSleepStartedAt)},
|
|
4117
|
+
${sqlText(state.lastSleepStartedAt)},
|
|
4118
|
+
${sqlText(state.lastSleepEndedAt)},
|
|
4119
|
+
${sqlInteger(state.lastSleepDurationMinutes)},
|
|
4120
|
+
${sqlText(state.wakeAt)},
|
|
4121
|
+
${sqlText(state.firstActiveAt)},
|
|
4122
|
+
${sqlText(state.lastActiveAt)},
|
|
4123
|
+
${sqlText(state.lastMealAt)},
|
|
4124
|
+
${sqlText(state.nextMealLabel)},
|
|
4125
|
+
${sqlText(state.nextMealWindowStartAt)},
|
|
4126
|
+
${sqlText(state.nextMealWindowEndAt)},
|
|
4127
|
+
${sqlNumber(state.nextMealConfidence)},
|
|
4128
|
+
${sqlJson(state.meals)},
|
|
4129
|
+
${sqlJson(state.awakeProbability)},
|
|
4130
|
+
${sqlJson(state.regularity)},
|
|
4131
|
+
${state.baseline === null ? "NULL" : sqlJson(state.baseline)},
|
|
4132
|
+
${sqlJson(state.circadianRuleFirings)},
|
|
4133
|
+
${sqlInteger(state.observationCount)},
|
|
4134
|
+
${sqlInteger(state.deviceCount)},
|
|
4135
|
+
${sqlJson(state.contributingDeviceKinds)},
|
|
4136
|
+
${sqlJson(state.metadata)},
|
|
4137
|
+
${sqlQuote(state.createdAt)},
|
|
4138
|
+
${sqlQuote(state.updatedAt)}
|
|
4139
|
+
)
|
|
4140
|
+
ON CONFLICT(agent_id, scope, timezone) DO UPDATE SET
|
|
4141
|
+
effective_day_key = EXCLUDED.effective_day_key,
|
|
4142
|
+
local_date = EXCLUDED.local_date,
|
|
4143
|
+
merged_at = EXCLUDED.merged_at,
|
|
4144
|
+
inferred_at = EXCLUDED.inferred_at,
|
|
4145
|
+
circadian_state = EXCLUDED.circadian_state,
|
|
4146
|
+
state_confidence = EXCLUDED.state_confidence,
|
|
4147
|
+
uncertainty_reason = EXCLUDED.uncertainty_reason,
|
|
4148
|
+
sleep_status = EXCLUDED.sleep_status,
|
|
4149
|
+
sleep_confidence = EXCLUDED.sleep_confidence,
|
|
4150
|
+
current_sleep_started_at = EXCLUDED.current_sleep_started_at,
|
|
4151
|
+
last_sleep_started_at = EXCLUDED.last_sleep_started_at,
|
|
4152
|
+
last_sleep_ended_at = EXCLUDED.last_sleep_ended_at,
|
|
4153
|
+
last_sleep_duration_minutes = EXCLUDED.last_sleep_duration_minutes,
|
|
4154
|
+
wake_at = EXCLUDED.wake_at,
|
|
4155
|
+
first_active_at = EXCLUDED.first_active_at,
|
|
4156
|
+
last_active_at = EXCLUDED.last_active_at,
|
|
4157
|
+
last_meal_at = EXCLUDED.last_meal_at,
|
|
4158
|
+
next_meal_label = EXCLUDED.next_meal_label,
|
|
4159
|
+
next_meal_window_start_at = EXCLUDED.next_meal_window_start_at,
|
|
4160
|
+
next_meal_window_end_at = EXCLUDED.next_meal_window_end_at,
|
|
4161
|
+
next_meal_confidence = EXCLUDED.next_meal_confidence,
|
|
4162
|
+
meals_json = EXCLUDED.meals_json,
|
|
4163
|
+
awake_probability_json = EXCLUDED.awake_probability_json,
|
|
4164
|
+
regularity_json = EXCLUDED.regularity_json,
|
|
4165
|
+
baseline_json = EXCLUDED.baseline_json,
|
|
4166
|
+
circadian_rule_firings_json = EXCLUDED.circadian_rule_firings_json,
|
|
4167
|
+
observation_count = EXCLUDED.observation_count,
|
|
4168
|
+
device_count = EXCLUDED.device_count,
|
|
4169
|
+
contributing_device_kinds_json = EXCLUDED.contributing_device_kinds_json,
|
|
4170
|
+
metadata_json = EXCLUDED.metadata_json,
|
|
4171
|
+
updated_at = EXCLUDED.updated_at`);
|
|
4172
|
+
}
|
|
4173
|
+
async getScheduleMergedState(agentId, scope, timezone) {
|
|
4174
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
4175
|
+
FROM life_schedule_merged_states
|
|
4176
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
4177
|
+
AND scope = ${sqlQuote(scope)}
|
|
4178
|
+
AND timezone = ${sqlQuote(timezone)}
|
|
4179
|
+
LIMIT 1`);
|
|
4180
|
+
return rows[0] ? parseScheduleMergedState(rows[0]) : null;
|
|
4181
|
+
}
|
|
4182
|
+
async listScreenTimeDaily(agentId, date, opts) {
|
|
4183
|
+
const clauses = [
|
|
4184
|
+
`agent_id = ${sqlQuote(agentId)}`,
|
|
4185
|
+
`date = ${sqlQuote(date)}`,
|
|
4186
|
+
];
|
|
4187
|
+
if (opts?.source) {
|
|
4188
|
+
clauses.push(`source = ${sqlQuote(opts.source)}`);
|
|
4189
|
+
}
|
|
4190
|
+
const limitClause = typeof opts?.limit === "number" ? `LIMIT ${sqlInteger(opts.limit)}` : "";
|
|
4191
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
4192
|
+
FROM life_screen_time_daily
|
|
4193
|
+
WHERE ${clauses.join(" AND ")}
|
|
4194
|
+
ORDER BY total_seconds DESC
|
|
4195
|
+
${limitClause}`);
|
|
4196
|
+
return rows.map(parseScreenTimeDaily);
|
|
4197
|
+
}
|
|
4198
|
+
async aggregateScreenTimeDailyForDate(agentId, date) {
|
|
4199
|
+
// Sessions counted when their start_at falls within the UTC day window.
|
|
4200
|
+
const dayStart = `${date}T00:00:00.000Z`;
|
|
4201
|
+
const dayEnd = `${date}T23:59:59.999Z`;
|
|
4202
|
+
const rows = await executeRawSql(this.runtime, `SELECT source,
|
|
4203
|
+
identifier,
|
|
4204
|
+
MAX(display_name) AS display_name,
|
|
4205
|
+
SUM(duration_seconds) AS total_seconds,
|
|
4206
|
+
COUNT(*) AS session_count
|
|
4207
|
+
FROM life_screen_time_sessions
|
|
4208
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
4209
|
+
AND start_at >= ${sqlQuote(dayStart)}
|
|
4210
|
+
AND start_at <= ${sqlQuote(dayEnd)}
|
|
4211
|
+
GROUP BY source, identifier`);
|
|
4212
|
+
const now = isoNow();
|
|
4213
|
+
let updated = 0;
|
|
4214
|
+
for (const row of rows) {
|
|
4215
|
+
const rollup = {
|
|
4216
|
+
id: crypto.randomUUID(),
|
|
4217
|
+
agentId,
|
|
4218
|
+
source: toText(row.source),
|
|
4219
|
+
identifier: toText(row.identifier),
|
|
4220
|
+
date,
|
|
4221
|
+
totalSeconds: toNumber(row.total_seconds, 0),
|
|
4222
|
+
sessionCount: toNumber(row.session_count, 0),
|
|
4223
|
+
metadata: {
|
|
4224
|
+
displayName: toText(row.display_name, toText(row.identifier)),
|
|
4225
|
+
},
|
|
4226
|
+
createdAt: now,
|
|
4227
|
+
updatedAt: now,
|
|
4228
|
+
};
|
|
4229
|
+
await this.upsertScreenTimeDaily(rollup);
|
|
4230
|
+
updated += 1;
|
|
4231
|
+
}
|
|
4232
|
+
return { updated };
|
|
4233
|
+
}
|
|
4234
|
+
// -----------------------------------------------------------------------
|
|
4235
|
+
// Scheduling negotiations + proposals
|
|
4236
|
+
// -----------------------------------------------------------------------
|
|
4237
|
+
async upsertSchedulingNegotiation(neg) {
|
|
4238
|
+
await executeRawSql(this.runtime, `INSERT INTO life_scheduling_negotiations (
|
|
4239
|
+
id, agent_id, subject, relationship_id, duration_minutes, timezone,
|
|
4240
|
+
state, accepted_proposal_id, started_at, finalized_at, metadata_json,
|
|
4241
|
+
created_at, updated_at
|
|
4242
|
+
) VALUES (
|
|
4243
|
+
${sqlQuote(neg.id)},
|
|
4244
|
+
${sqlQuote(neg.agentId)},
|
|
4245
|
+
${sqlQuote(neg.subject)},
|
|
4246
|
+
${sqlText(neg.relationshipId)},
|
|
4247
|
+
${sqlInteger(neg.durationMinutes)},
|
|
4248
|
+
${sqlQuote(neg.timezone)},
|
|
4249
|
+
${sqlQuote(neg.state)},
|
|
4250
|
+
${sqlText(neg.acceptedProposalId)},
|
|
4251
|
+
${sqlQuote(neg.startedAt)},
|
|
4252
|
+
${sqlText(neg.finalizedAt)},
|
|
4253
|
+
${sqlJson(neg.metadata)},
|
|
4254
|
+
${sqlQuote(neg.createdAt)},
|
|
4255
|
+
${sqlQuote(neg.updatedAt)}
|
|
4256
|
+
)
|
|
4257
|
+
ON CONFLICT (id) DO UPDATE SET
|
|
4258
|
+
subject = EXCLUDED.subject,
|
|
4259
|
+
relationship_id = EXCLUDED.relationship_id,
|
|
4260
|
+
duration_minutes = EXCLUDED.duration_minutes,
|
|
4261
|
+
timezone = EXCLUDED.timezone,
|
|
4262
|
+
state = EXCLUDED.state,
|
|
4263
|
+
accepted_proposal_id = EXCLUDED.accepted_proposal_id,
|
|
4264
|
+
finalized_at = EXCLUDED.finalized_at,
|
|
4265
|
+
metadata_json = EXCLUDED.metadata_json,
|
|
4266
|
+
updated_at = EXCLUDED.updated_at`);
|
|
4267
|
+
}
|
|
4268
|
+
async getSchedulingNegotiation(agentId, id) {
|
|
4269
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
4270
|
+
FROM life_scheduling_negotiations
|
|
4271
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
4272
|
+
AND id = ${sqlQuote(id)}
|
|
4273
|
+
LIMIT 1`);
|
|
4274
|
+
const row = rows[0];
|
|
4275
|
+
return row ? parseSchedulingNegotiation(row) : null;
|
|
4276
|
+
}
|
|
4277
|
+
async listSchedulingNegotiations(agentId, opts) {
|
|
4278
|
+
const clauses = [`agent_id = ${sqlQuote(agentId)}`];
|
|
4279
|
+
if (opts?.state) {
|
|
4280
|
+
clauses.push(`state = ${sqlQuote(opts.state)}`);
|
|
4281
|
+
}
|
|
4282
|
+
const limitClause = typeof opts?.limit === "number" ? `LIMIT ${sqlInteger(opts.limit)}` : "";
|
|
4283
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
4284
|
+
FROM life_scheduling_negotiations
|
|
4285
|
+
WHERE ${clauses.join(" AND ")}
|
|
4286
|
+
ORDER BY updated_at DESC
|
|
4287
|
+
${limitClause}`);
|
|
4288
|
+
return rows.map(parseSchedulingNegotiation);
|
|
4289
|
+
}
|
|
4290
|
+
async updateSchedulingNegotiationState(agentId, id, state, finalizedAt) {
|
|
4291
|
+
const now = isoNow();
|
|
4292
|
+
const finalizedClause = finalizedAt === undefined
|
|
4293
|
+
? ""
|
|
4294
|
+
: `, finalized_at = ${sqlText(finalizedAt)}`;
|
|
4295
|
+
await executeRawSql(this.runtime, `UPDATE life_scheduling_negotiations
|
|
4296
|
+
SET state = ${sqlQuote(state)},
|
|
4297
|
+
updated_at = ${sqlQuote(now)}${finalizedClause}
|
|
4298
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
4299
|
+
AND id = ${sqlQuote(id)}`);
|
|
4300
|
+
}
|
|
4301
|
+
async upsertSchedulingProposal(p) {
|
|
4302
|
+
await executeRawSql(this.runtime, `INSERT INTO life_scheduling_proposals (
|
|
4303
|
+
id, agent_id, negotiation_id, start_at, end_at, proposed_by, status,
|
|
4304
|
+
metadata_json, created_at, updated_at
|
|
4305
|
+
) VALUES (
|
|
4306
|
+
${sqlQuote(p.id)},
|
|
4307
|
+
${sqlQuote(p.agentId)},
|
|
4308
|
+
${sqlQuote(p.negotiationId)},
|
|
4309
|
+
${sqlQuote(p.startAt)},
|
|
4310
|
+
${sqlQuote(p.endAt)},
|
|
4311
|
+
${sqlQuote(p.proposedBy)},
|
|
4312
|
+
${sqlQuote(p.status)},
|
|
4313
|
+
${sqlJson(p.metadata)},
|
|
4314
|
+
${sqlQuote(p.createdAt)},
|
|
4315
|
+
${sqlQuote(p.updatedAt)}
|
|
4316
|
+
)
|
|
4317
|
+
ON CONFLICT (id) DO UPDATE SET
|
|
4318
|
+
start_at = EXCLUDED.start_at,
|
|
4319
|
+
end_at = EXCLUDED.end_at,
|
|
4320
|
+
proposed_by = EXCLUDED.proposed_by,
|
|
4321
|
+
status = EXCLUDED.status,
|
|
4322
|
+
metadata_json = EXCLUDED.metadata_json,
|
|
4323
|
+
updated_at = EXCLUDED.updated_at`);
|
|
4324
|
+
}
|
|
4325
|
+
async getSchedulingProposal(agentId, id) {
|
|
4326
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
4327
|
+
FROM life_scheduling_proposals
|
|
4328
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
4329
|
+
AND id = ${sqlQuote(id)}
|
|
4330
|
+
LIMIT 1`);
|
|
4331
|
+
const row = rows[0];
|
|
4332
|
+
return row ? parseSchedulingProposal(row) : null;
|
|
4333
|
+
}
|
|
4334
|
+
async listSchedulingProposals(agentId, negotiationId) {
|
|
4335
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
4336
|
+
FROM life_scheduling_proposals
|
|
4337
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
4338
|
+
AND negotiation_id = ${sqlQuote(negotiationId)}
|
|
4339
|
+
ORDER BY created_at ASC`);
|
|
4340
|
+
return rows.map(parseSchedulingProposal);
|
|
4341
|
+
}
|
|
4342
|
+
async updateSchedulingProposalStatus(agentId, id, status) {
|
|
4343
|
+
const now = isoNow();
|
|
4344
|
+
await executeRawSql(this.runtime, `UPDATE life_scheduling_proposals
|
|
4345
|
+
SET status = ${sqlQuote(status)},
|
|
4346
|
+
updated_at = ${sqlQuote(now)}
|
|
4347
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
4348
|
+
AND id = ${sqlQuote(id)}`);
|
|
4349
|
+
}
|
|
4350
|
+
// -----------------------------------------------------------------------
|
|
4351
|
+
// Dossiers
|
|
4352
|
+
// -----------------------------------------------------------------------
|
|
4353
|
+
async upsertDossier(d) {
|
|
4354
|
+
await executeRawSql(this.runtime, `INSERT INTO life_dossiers (
|
|
4355
|
+
id, agent_id, calendar_event_id, subject, generated_for_at,
|
|
4356
|
+
content_md, sources_json, metadata_json, created_at, updated_at
|
|
4357
|
+
) VALUES (
|
|
4358
|
+
${sqlQuote(d.id)},
|
|
4359
|
+
${sqlQuote(d.agentId)},
|
|
4360
|
+
${sqlText(d.calendarEventId)},
|
|
4361
|
+
${sqlQuote(d.subject)},
|
|
4362
|
+
${sqlQuote(d.generatedForAt)},
|
|
4363
|
+
${sqlQuote(d.contentMd)},
|
|
4364
|
+
${sqlJson(d.sources)},
|
|
4365
|
+
${sqlJson(d.metadata)},
|
|
4366
|
+
${sqlQuote(d.createdAt)},
|
|
4367
|
+
${sqlQuote(d.updatedAt)}
|
|
4368
|
+
)
|
|
4369
|
+
ON CONFLICT (id) DO UPDATE SET
|
|
4370
|
+
calendar_event_id = EXCLUDED.calendar_event_id,
|
|
4371
|
+
subject = EXCLUDED.subject,
|
|
4372
|
+
generated_for_at = EXCLUDED.generated_for_at,
|
|
4373
|
+
content_md = EXCLUDED.content_md,
|
|
4374
|
+
sources_json = EXCLUDED.sources_json,
|
|
4375
|
+
metadata_json = EXCLUDED.metadata_json,
|
|
4376
|
+
updated_at = EXCLUDED.updated_at`);
|
|
4377
|
+
}
|
|
4378
|
+
async getDossier(agentId, id) {
|
|
4379
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
4380
|
+
FROM life_dossiers
|
|
4381
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
4382
|
+
AND id = ${sqlQuote(id)}
|
|
4383
|
+
LIMIT 1`);
|
|
4384
|
+
const row = rows[0];
|
|
4385
|
+
return row ? parseDossier(row) : null;
|
|
4386
|
+
}
|
|
4387
|
+
async getDossierByCalendarEvent(agentId, calendarEventId) {
|
|
4388
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
4389
|
+
FROM life_dossiers
|
|
4390
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
4391
|
+
AND calendar_event_id = ${sqlQuote(calendarEventId)}
|
|
4392
|
+
ORDER BY generated_for_at DESC
|
|
4393
|
+
LIMIT 1`);
|
|
4394
|
+
const row = rows[0];
|
|
4395
|
+
return row ? parseDossier(row) : null;
|
|
4396
|
+
}
|
|
4397
|
+
async listDossiers(agentId, opts) {
|
|
4398
|
+
const limitClause = typeof opts?.limit === "number"
|
|
4399
|
+
? `LIMIT ${sqlInteger(opts.limit)}`
|
|
4400
|
+
: "LIMIT 50";
|
|
4401
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
4402
|
+
FROM life_dossiers
|
|
4403
|
+
WHERE agent_id = ${sqlQuote(agentId)}
|
|
4404
|
+
ORDER BY generated_for_at DESC
|
|
4405
|
+
${limitClause}`);
|
|
4406
|
+
return rows.map(parseDossier);
|
|
4407
|
+
}
|
|
4408
|
+
}
|
|
4409
|
+
export function createLifeOpsTaskDefinition(params) {
|
|
4410
|
+
const timestamp = isoNow();
|
|
4411
|
+
return {
|
|
4412
|
+
...params,
|
|
4413
|
+
id: crypto.randomUUID(),
|
|
4414
|
+
createdAt: timestamp,
|
|
4415
|
+
updatedAt: timestamp,
|
|
4416
|
+
};
|
|
4417
|
+
}
|
|
4418
|
+
export function createLifeOpsGoalDefinition(params) {
|
|
4419
|
+
const timestamp = isoNow();
|
|
4420
|
+
return {
|
|
4421
|
+
...params,
|
|
4422
|
+
id: crypto.randomUUID(),
|
|
4423
|
+
createdAt: timestamp,
|
|
4424
|
+
updatedAt: timestamp,
|
|
4425
|
+
};
|
|
4426
|
+
}
|
|
4427
|
+
export function createLifeOpsReminderPlan(params) {
|
|
4428
|
+
const timestamp = isoNow();
|
|
4429
|
+
return {
|
|
4430
|
+
...params,
|
|
4431
|
+
id: crypto.randomUUID(),
|
|
4432
|
+
createdAt: timestamp,
|
|
4433
|
+
updatedAt: timestamp,
|
|
4434
|
+
};
|
|
4435
|
+
}
|
|
4436
|
+
export function createLifeOpsChannelPolicy(params) {
|
|
4437
|
+
const timestamp = isoNow();
|
|
4438
|
+
return {
|
|
4439
|
+
...params,
|
|
4440
|
+
id: crypto.randomUUID(),
|
|
4441
|
+
createdAt: timestamp,
|
|
4442
|
+
updatedAt: timestamp,
|
|
4443
|
+
};
|
|
4444
|
+
}
|
|
4445
|
+
export function createLifeOpsWebsiteAccessGrant(params) {
|
|
4446
|
+
const timestamp = isoNow();
|
|
4447
|
+
return {
|
|
4448
|
+
...params,
|
|
4449
|
+
id: crypto.randomUUID(),
|
|
4450
|
+
createdAt: timestamp,
|
|
4451
|
+
updatedAt: timestamp,
|
|
4452
|
+
};
|
|
4453
|
+
}
|
|
4454
|
+
export function createLifeOpsAuditEvent(params) {
|
|
4455
|
+
return {
|
|
4456
|
+
...params,
|
|
4457
|
+
id: crypto.randomUUID(),
|
|
4458
|
+
createdAt: isoNow(),
|
|
4459
|
+
};
|
|
4460
|
+
}
|
|
4461
|
+
export function createLifeOpsSubscriptionAudit(params) {
|
|
4462
|
+
const timestamp = isoNow();
|
|
4463
|
+
return {
|
|
4464
|
+
...params,
|
|
4465
|
+
id: crypto.randomUUID(),
|
|
4466
|
+
createdAt: timestamp,
|
|
4467
|
+
updatedAt: timestamp,
|
|
4468
|
+
};
|
|
4469
|
+
}
|
|
4470
|
+
export function createLifeOpsSubscriptionCandidate(params) {
|
|
4471
|
+
const timestamp = isoNow();
|
|
4472
|
+
return {
|
|
4473
|
+
...params,
|
|
4474
|
+
id: crypto.randomUUID(),
|
|
4475
|
+
createdAt: timestamp,
|
|
4476
|
+
updatedAt: timestamp,
|
|
4477
|
+
};
|
|
4478
|
+
}
|
|
4479
|
+
export function createLifeOpsSubscriptionCancellation(params) {
|
|
4480
|
+
const timestamp = isoNow();
|
|
4481
|
+
return {
|
|
4482
|
+
...params,
|
|
4483
|
+
id: crypto.randomUUID(),
|
|
4484
|
+
createdAt: timestamp,
|
|
4485
|
+
updatedAt: timestamp,
|
|
4486
|
+
};
|
|
4487
|
+
}
|
|
4488
|
+
export function createLifeOpsActivitySignal(params) {
|
|
4489
|
+
return {
|
|
4490
|
+
...params,
|
|
4491
|
+
id: crypto.randomUUID(),
|
|
4492
|
+
createdAt: isoNow(),
|
|
4493
|
+
};
|
|
4494
|
+
}
|
|
4495
|
+
export function createLifeOpsSleepEpisode(params) {
|
|
4496
|
+
const timestamp = isoNow();
|
|
4497
|
+
return {
|
|
4498
|
+
...params,
|
|
4499
|
+
id: crypto.randomUUID(),
|
|
4500
|
+
createdAt: timestamp,
|
|
4501
|
+
updatedAt: timestamp,
|
|
4502
|
+
};
|
|
4503
|
+
}
|
|
4504
|
+
export function createLifeOpsConnectorGrant(params) {
|
|
4505
|
+
const timestamp = isoNow();
|
|
4506
|
+
return {
|
|
4507
|
+
...params,
|
|
4508
|
+
side: params.side ?? "owner",
|
|
4509
|
+
executionTarget: params.executionTarget ?? "local",
|
|
4510
|
+
sourceOfTruth: params.sourceOfTruth ?? "local_storage",
|
|
4511
|
+
preferredByAgent: params.preferredByAgent ?? false,
|
|
4512
|
+
cloudConnectionId: params.cloudConnectionId ?? null,
|
|
4513
|
+
id: crypto.randomUUID(),
|
|
4514
|
+
createdAt: timestamp,
|
|
4515
|
+
updatedAt: timestamp,
|
|
4516
|
+
};
|
|
4517
|
+
}
|
|
4518
|
+
export function createLifeOpsCalendarSyncState(params) {
|
|
4519
|
+
return {
|
|
4520
|
+
...params,
|
|
4521
|
+
id: crypto.randomUUID(),
|
|
4522
|
+
updatedAt: isoNow(),
|
|
4523
|
+
};
|
|
4524
|
+
}
|
|
4525
|
+
export function createLifeOpsGmailSyncState(params) {
|
|
4526
|
+
return {
|
|
4527
|
+
...params,
|
|
4528
|
+
id: crypto.randomUUID(),
|
|
4529
|
+
updatedAt: isoNow(),
|
|
4530
|
+
};
|
|
4531
|
+
}
|
|
4532
|
+
export function createLifeOpsWorkflowDefinition(params) {
|
|
4533
|
+
const timestamp = isoNow();
|
|
4534
|
+
return {
|
|
4535
|
+
...params,
|
|
4536
|
+
id: crypto.randomUUID(),
|
|
4537
|
+
createdAt: timestamp,
|
|
4538
|
+
updatedAt: timestamp,
|
|
4539
|
+
};
|
|
4540
|
+
}
|
|
4541
|
+
export function createLifeOpsWorkflowRun(params) {
|
|
4542
|
+
return {
|
|
4543
|
+
...params,
|
|
4544
|
+
id: crypto.randomUUID(),
|
|
4545
|
+
};
|
|
4546
|
+
}
|
|
4547
|
+
export function createLifeOpsReminderAttempt(params) {
|
|
4548
|
+
return {
|
|
4549
|
+
...params,
|
|
4550
|
+
id: crypto.randomUUID(),
|
|
4551
|
+
};
|
|
4552
|
+
}
|
|
4553
|
+
export function createLifeOpsBrowserSession(params) {
|
|
4554
|
+
const timestamp = isoNow();
|
|
4555
|
+
return {
|
|
4556
|
+
...params,
|
|
4557
|
+
id: crypto.randomUUID(),
|
|
4558
|
+
createdAt: timestamp,
|
|
4559
|
+
updatedAt: timestamp,
|
|
4560
|
+
};
|
|
4561
|
+
}
|
|
4562
|
+
export function createBrowserBridgeCompanionStatus(params) {
|
|
4563
|
+
const timestamp = isoNow();
|
|
4564
|
+
return {
|
|
4565
|
+
...params,
|
|
4566
|
+
id: crypto.randomUUID(),
|
|
4567
|
+
pairedAt: params.pairedAt ?? timestamp,
|
|
4568
|
+
createdAt: timestamp,
|
|
4569
|
+
updatedAt: timestamp,
|
|
4570
|
+
};
|
|
4571
|
+
}
|
|
4572
|
+
export function createBrowserBridgeTabSummary(params) {
|
|
4573
|
+
const timestamp = isoNow();
|
|
4574
|
+
return {
|
|
4575
|
+
...params,
|
|
4576
|
+
id: crypto.randomUUID(),
|
|
4577
|
+
createdAt: timestamp,
|
|
4578
|
+
updatedAt: timestamp,
|
|
4579
|
+
};
|
|
4580
|
+
}
|
|
4581
|
+
export function createBrowserBridgePageContext(params) {
|
|
4582
|
+
return {
|
|
4583
|
+
...params,
|
|
4584
|
+
id: crypto.randomUUID(),
|
|
4585
|
+
};
|
|
4586
|
+
}
|