@elizaos/agent 0.25.9 → 2.0.0-alpha.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/apps/app-companion/src/actions/emote.d.ts +10 -0
- package/apps/app-companion/src/actions/emote.d.ts.map +1 -0
- package/apps/app-companion/src/actions/emote.js +79 -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/plugin.d.ts +9 -0
- package/apps/app-companion/src/plugin.d.ts.map +1 -0
- package/apps/app-companion/src/plugin.js +15 -0
- package/apps/app-knowledge/src/routes.d.ts +23 -0
- package/apps/app-knowledge/src/routes.d.ts.map +1 -0
- package/apps/app-knowledge/src/routes.js +956 -0
- package/apps/app-knowledge/src/service-loader.d.ts +51 -0
- package/apps/app-knowledge/src/service-loader.d.ts.map +1 -0
- package/apps/app-knowledge/src/service-loader.js +34 -0
- package/apps/app-lifeops/src/action.d.ts +3 -0
- package/apps/app-lifeops/src/action.d.ts.map +1 -0
- package/apps/app-lifeops/src/action.js +332 -0
- package/apps/app-lifeops/src/actions/calendar.d.ts +19 -0
- package/apps/app-lifeops/src/actions/calendar.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/calendar.js +3143 -0
- package/apps/app-lifeops/src/actions/gmail.d.ts +33 -0
- package/apps/app-lifeops/src/actions/gmail.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/gmail.js +1734 -0
- package/apps/app-lifeops/src/actions/inbox-digest.d.ts +2 -0
- package/apps/app-lifeops/src/actions/inbox-digest.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox-digest.js +1 -0
- package/apps/app-lifeops/src/actions/inbox-respond.d.ts +2 -0
- package/apps/app-lifeops/src/actions/inbox-respond.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox-respond.js +1 -0
- package/apps/app-lifeops/src/actions/inbox-triage.d.ts +2 -0
- package/apps/app-lifeops/src/actions/inbox-triage.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox-triage.js +1 -0
- package/apps/app-lifeops/src/actions/inbox.d.ts +3 -0
- package/apps/app-lifeops/src/actions/inbox.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox.js +856 -0
- package/apps/app-lifeops/src/actions/life-goal-extractor.d.ts +69 -0
- package/apps/app-lifeops/src/actions/life-goal-extractor.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/life-goal-extractor.js +354 -0
- package/apps/app-lifeops/src/actions/life-param-extractor.d.ts +78 -0
- package/apps/app-lifeops/src/actions/life-param-extractor.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/life-param-extractor.js +423 -0
- package/apps/app-lifeops/src/actions/life-recent-context.d.ts +9 -0
- package/apps/app-lifeops/src/actions/life-recent-context.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/life-recent-context.js +84 -0
- package/apps/app-lifeops/src/actions/life-update-extractor.d.ts +27 -0
- package/apps/app-lifeops/src/actions/life-update-extractor.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/life-update-extractor.js +195 -0
- package/apps/app-lifeops/src/actions/life.d.ts +9 -0
- package/apps/app-lifeops/src/actions/life.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/life.extractor.d.ts +18 -0
- package/apps/app-lifeops/src/actions/life.extractor.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/life.extractor.js +264 -0
- package/apps/app-lifeops/src/actions/life.js +3379 -0
- package/apps/app-lifeops/src/actions/lifeops-extraction-config.d.ts +16 -0
- package/apps/app-lifeops/src/actions/lifeops-extraction-config.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/lifeops-extraction-config.js +25 -0
- package/apps/app-lifeops/src/actions/lifeops-google-helpers.d.ts +62 -0
- package/apps/app-lifeops/src/actions/lifeops-google-helpers.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/lifeops-google-helpers.js +607 -0
- package/apps/app-lifeops/src/actions/timezone-normalization.d.ts +3 -0
- package/apps/app-lifeops/src/actions/timezone-normalization.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/timezone-normalization.js +105 -0
- package/apps/app-lifeops/src/actions/update-owner-profile.d.ts +3 -0
- package/apps/app-lifeops/src/actions/update-owner-profile.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/update-owner-profile.js +131 -0
- package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts +20 -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 +185 -0
- package/apps/app-lifeops/src/inbox/config.d.ts +7 -0
- package/apps/app-lifeops/src/inbox/config.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/config.js +59 -0
- package/apps/app-lifeops/src/inbox/message-fetcher.d.ts +33 -0
- package/apps/app-lifeops/src/inbox/message-fetcher.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/message-fetcher.js +252 -0
- package/apps/app-lifeops/src/inbox/reflection.d.ts +45 -0
- package/apps/app-lifeops/src/inbox/reflection.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/reflection.js +157 -0
- package/apps/app-lifeops/src/inbox/repository.d.ts +53 -0
- package/apps/app-lifeops/src/inbox/repository.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/repository.js +362 -0
- package/apps/app-lifeops/src/inbox/triage-classifier.d.ts +17 -0
- package/apps/app-lifeops/src/inbox/triage-classifier.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/triage-classifier.js +209 -0
- package/apps/app-lifeops/src/inbox/types.d.ts +130 -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 +11 -0
- package/apps/app-lifeops/src/lifeops/app-state.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/app-state.js +32 -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/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 +205 -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 +389 -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 +147 -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 +154 -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 +53 -0
- package/apps/app-lifeops/src/lifeops/google-calendar.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-calendar.js +268 -0
- package/apps/app-lifeops/src/lifeops/google-connector-gateway.d.ts +19 -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 +65 -0
- package/apps/app-lifeops/src/lifeops/google-fetch.d.ts +11 -0
- package/apps/app-lifeops/src/lifeops/google-fetch.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-fetch.js +85 -0
- package/apps/app-lifeops/src/lifeops/google-gmail.d.ts +54 -0
- package/apps/app-lifeops/src/lifeops/google-gmail.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-gmail.js +471 -0
- package/apps/app-lifeops/src/lifeops/google-managed-client.d.ts +127 -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 +294 -0
- package/apps/app-lifeops/src/lifeops/google-oauth.d.ts +61 -0
- package/apps/app-lifeops/src/lifeops/google-oauth.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-oauth.js +491 -0
- package/apps/app-lifeops/src/lifeops/google-scopes.d.ts +13 -0
- package/apps/app-lifeops/src/lifeops/google-scopes.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-scopes.js +96 -0
- package/apps/app-lifeops/src/lifeops/index.d.ts +25 -0
- package/apps/app-lifeops/src/lifeops/index.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/index.js +24 -0
- package/apps/app-lifeops/src/lifeops/owner-profile.d.ts +15 -0
- package/apps/app-lifeops/src/lifeops/owner-profile.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/owner-profile.js +194 -0
- package/apps/app-lifeops/src/lifeops/repository.d.ts +209 -0
- package/apps/app-lifeops/src/lifeops/repository.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/repository.js +3187 -0
- package/apps/app-lifeops/src/lifeops/runtime.d.ts +14 -0
- package/apps/app-lifeops/src/lifeops/runtime.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/runtime.js +120 -0
- package/apps/app-lifeops/src/lifeops/screen-context.d.ts +52 -0
- package/apps/app-lifeops/src/lifeops/screen-context.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/screen-context.js +332 -0
- package/apps/app-lifeops/src/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 +111 -0
- package/apps/app-lifeops/src/lifeops/service.d.ts +275 -0
- package/apps/app-lifeops/src/lifeops/service.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service.js +9260 -0
- package/apps/app-lifeops/src/lifeops/sql.d.ts +31 -0
- package/apps/app-lifeops/src/lifeops/sql.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/sql.js +247 -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/twilio.d.ts +25 -0
- package/apps/app-lifeops/src/lifeops/twilio.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/twilio.js +157 -0
- package/apps/app-lifeops/src/lifeops/x-poster.d.ts +19 -0
- package/apps/app-lifeops/src/lifeops/x-poster.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/x-poster.js +148 -0
- package/apps/app-lifeops/src/plugin.d.ts +22 -0
- package/apps/app-lifeops/src/plugin.d.ts.map +1 -0
- package/apps/app-lifeops/src/plugin.js +92 -0
- package/apps/app-lifeops/src/provider.d.ts +3 -0
- package/apps/app-lifeops/src/provider.d.ts.map +1 -0
- package/apps/app-lifeops/src/provider.js +75 -0
- package/apps/app-lifeops/src/providers/inbox-triage.d.ts +3 -0
- package/apps/app-lifeops/src/providers/inbox-triage.d.ts.map +1 -0
- package/apps/app-lifeops/src/providers/inbox-triage.js +89 -0
- package/apps/app-lifeops/src/providers/lifeops.d.ts +3 -0
- package/apps/app-lifeops/src/providers/lifeops.d.ts.map +1 -0
- package/apps/app-lifeops/src/providers/lifeops.js +157 -0
- package/apps/app-lifeops/src/routes/lifeops-browser-packaging.d.ts +16 -0
- package/apps/app-lifeops/src/routes/lifeops-browser-packaging.d.ts.map +1 -0
- package/apps/app-lifeops/src/routes/lifeops-browser-packaging.js +305 -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 +1173 -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 +175 -0
- package/apps/app-lifeops/src/selfcontrol/access.d.ts +8 -0
- package/apps/app-lifeops/src/selfcontrol/access.d.ts.map +1 -0
- package/apps/app-lifeops/src/selfcontrol/access.js +16 -0
- package/apps/app-lifeops/src/selfcontrol/action.d.ts +10 -0
- package/apps/app-lifeops/src/selfcontrol/action.d.ts.map +1 -0
- package/apps/app-lifeops/src/selfcontrol/action.js +506 -0
- package/apps/app-lifeops/src/selfcontrol/index.d.ts +13 -0
- package/apps/app-lifeops/src/selfcontrol/index.d.ts.map +1 -0
- package/apps/app-lifeops/src/selfcontrol/index.js +10 -0
- package/apps/app-lifeops/src/selfcontrol/permissions.d.ts +9 -0
- package/apps/app-lifeops/src/selfcontrol/permissions.d.ts.map +1 -0
- package/apps/app-lifeops/src/selfcontrol/permissions.js +1 -0
- package/apps/app-lifeops/src/selfcontrol/provider.d.ts +4 -0
- package/apps/app-lifeops/src/selfcontrol/provider.d.ts.map +1 -0
- package/apps/app-lifeops/src/selfcontrol/provider.js +116 -0
- package/apps/app-lifeops/src/selfcontrol/roles.d.ts +13 -0
- package/apps/app-lifeops/src/selfcontrol/roles.d.ts.map +1 -0
- package/apps/app-lifeops/src/selfcontrol/roles.js +228 -0
- package/apps/app-lifeops/src/selfcontrol/selfcontrol.d.ts +97 -0
- package/apps/app-lifeops/src/selfcontrol/selfcontrol.d.ts.map +1 -0
- package/apps/app-lifeops/src/selfcontrol/selfcontrol.js +949 -0
- package/apps/app-lifeops/src/selfcontrol/service.d.ts +21 -0
- package/apps/app-lifeops/src/selfcontrol/service.d.ts.map +1 -0
- package/apps/app-lifeops/src/selfcontrol/service.js +268 -0
- package/apps/app-lifeops/src/service.d.ts +8 -0
- package/apps/app-lifeops/src/service.d.ts.map +1 -0
- package/apps/app-lifeops/src/service.js +11 -0
- package/apps/app-steward/src/api/wallet-capability.d.ts +28 -0
- package/apps/app-steward/src/api/wallet-capability.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet-capability.js +94 -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 +35 -0
- package/apps/app-steward/src/api/wallet-routes.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet-routes.js +470 -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 +453 -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 +639 -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 +69 -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 +46 -0
- package/apps/app-steward/src/routes/wallet-export-guard.d.ts +51 -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/services/steward-evm-account.d.ts +58 -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 +302 -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 +99 -0
- package/apps/app-training/src/services/index.d.ts +3 -0
- package/apps/app-training/src/services/index.d.ts.map +1 -0
- package/apps/app-training/src/services/index.js +1 -0
- package/apps/app-training/src/services/training-backend-check.d.ts +8 -0
- package/apps/app-training/src/services/training-backend-check.d.ts.map +1 -0
- package/apps/app-training/src/services/training-backend-check.js +28 -0
- package/apps/app-training/src/services/training-service-like.d.ts +38 -0
- package/apps/app-training/src/services/training-service-like.d.ts.map +1 -0
- package/apps/app-training/src/services/training-service-like.js +1 -0
- package/package.json +491 -34
- package/packages/agent/src/actions/app-control.d.ts +17 -0
- package/packages/agent/src/actions/app-control.d.ts.map +1 -0
- package/packages/agent/src/actions/app-control.js +212 -0
- package/packages/agent/src/actions/calendar.d.ts +2 -0
- package/packages/agent/src/actions/calendar.d.ts.map +1 -0
- package/packages/agent/src/actions/calendar.js +1 -0
- package/packages/agent/src/actions/check-balance.d.ts +17 -0
- package/packages/agent/src/actions/check-balance.d.ts.map +1 -0
- package/packages/agent/src/actions/check-balance.js +167 -0
- package/packages/agent/src/actions/connector-resolver.d.ts +75 -0
- package/packages/agent/src/actions/connector-resolver.d.ts.map +1 -0
- package/packages/agent/src/actions/connector-resolver.js +245 -0
- package/packages/agent/src/actions/context-signal-lexicon.d.ts +17 -0
- package/packages/agent/src/actions/context-signal-lexicon.d.ts.map +1 -0
- package/packages/agent/src/actions/context-signal-lexicon.js +207 -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/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 +48 -0
- package/packages/agent/src/actions/entity-actions.d.ts +4 -0
- package/packages/agent/src/actions/entity-actions.d.ts.map +1 -0
- package/packages/agent/src/actions/entity-actions.js +344 -0
- package/packages/agent/src/actions/execute-trade.d.ts +17 -0
- package/packages/agent/src/actions/execute-trade.d.ts.map +1 -0
- package/packages/agent/src/actions/execute-trade.js +299 -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 +66 -0
- package/packages/agent/src/actions/gmail.d.ts +2 -0
- package/packages/agent/src/actions/gmail.d.ts.map +1 -0
- package/packages/agent/src/actions/gmail.js +1 -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 +309 -0
- package/packages/agent/src/actions/inbox-digest.d.ts +2 -0
- package/packages/agent/src/actions/inbox-digest.d.ts.map +1 -0
- package/packages/agent/src/actions/inbox-digest.js +1 -0
- package/packages/agent/src/actions/inbox-respond.d.ts +2 -0
- package/packages/agent/src/actions/inbox-respond.d.ts.map +1 -0
- package/packages/agent/src/actions/inbox-respond.js +1 -0
- package/packages/agent/src/actions/inbox-triage.d.ts +2 -0
- package/packages/agent/src/actions/inbox-triage.d.ts.map +1 -0
- package/packages/agent/src/actions/inbox-triage.js +1 -0
- package/packages/agent/src/actions/inbox.d.ts +2 -0
- package/packages/agent/src/actions/inbox.d.ts.map +1 -0
- package/packages/agent/src/actions/inbox.js +1 -0
- package/packages/agent/src/actions/index.d.ts +24 -0
- package/packages/agent/src/actions/index.d.ts.map +1 -0
- package/packages/agent/src/actions/index.js +23 -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 +65 -0
- package/packages/agent/src/actions/life-goal-extractor.d.ts +2 -0
- package/packages/agent/src/actions/life-goal-extractor.d.ts.map +1 -0
- package/packages/agent/src/actions/life-goal-extractor.js +1 -0
- package/packages/agent/src/actions/life-param-extractor.d.ts +2 -0
- package/packages/agent/src/actions/life-param-extractor.d.ts.map +1 -0
- package/packages/agent/src/actions/life-param-extractor.js +1 -0
- package/packages/agent/src/actions/life-recent-context.d.ts +2 -0
- package/packages/agent/src/actions/life-recent-context.d.ts.map +1 -0
- package/packages/agent/src/actions/life-recent-context.js +1 -0
- package/packages/agent/src/actions/life-update-extractor.d.ts +2 -0
- package/packages/agent/src/actions/life-update-extractor.d.ts.map +1 -0
- package/packages/agent/src/actions/life-update-extractor.js +1 -0
- package/packages/agent/src/actions/life.d.ts +2 -0
- package/packages/agent/src/actions/life.d.ts.map +1 -0
- package/packages/agent/src/actions/life.extractor.d.ts +2 -0
- package/packages/agent/src/actions/life.extractor.d.ts.map +1 -0
- package/packages/agent/src/actions/life.extractor.js +1 -0
- package/packages/agent/src/actions/life.js +1 -0
- package/packages/agent/src/actions/lifeops-extraction-config.d.ts +2 -0
- package/packages/agent/src/actions/lifeops-extraction-config.d.ts.map +1 -0
- package/packages/agent/src/actions/lifeops-extraction-config.js +1 -0
- package/packages/agent/src/actions/lifeops-google-helpers.d.ts +2 -0
- package/packages/agent/src/actions/lifeops-google-helpers.d.ts.map +1 -0
- package/packages/agent/src/actions/lifeops-google-helpers.js +1 -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 +35 -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 +125 -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 +289 -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 +384 -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 +224 -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 +228 -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 +47 -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 +109 -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 +181 -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 +106 -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 +364 -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 +82 -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 +141 -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 +112 -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 +47 -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 +453 -0
- package/packages/agent/src/actions/timezone-normalization.d.ts +2 -0
- package/packages/agent/src/actions/timezone-normalization.d.ts.map +1 -0
- package/packages/agent/src/actions/timezone-normalization.js +1 -0
- package/packages/agent/src/actions/transfer-token.d.ts +17 -0
- package/packages/agent/src/actions/transfer-token.d.ts.map +1 -0
- package/packages/agent/src/actions/transfer-token.js +470 -0
- package/packages/agent/src/actions/update-owner-profile.d.ts +2 -0
- package/packages/agent/src/actions/update-owner-profile.d.ts.map +1 -0
- package/packages/agent/src/actions/update-owner-profile.js +1 -0
- package/packages/agent/src/actions/wallet-action-shared.d.ts +15 -0
- package/packages/agent/src/actions/wallet-action-shared.d.ts.map +1 -0
- package/packages/agent/src/actions/wallet-action-shared.js +24 -0
- package/packages/agent/src/actions/web-search.d.ts +16 -0
- package/packages/agent/src/actions/web-search.d.ts.map +1 -0
- package/packages/agent/src/actions/web-search.js +196 -0
- package/packages/agent/src/activity-profile/analyzer.d.ts +23 -0
- package/packages/agent/src/activity-profile/analyzer.d.ts.map +1 -0
- package/packages/agent/src/activity-profile/analyzer.js +531 -0
- package/packages/agent/src/activity-profile/proactive-planner.d.ts +49 -0
- package/packages/agent/src/activity-profile/proactive-planner.d.ts.map +1 -0
- package/packages/agent/src/activity-profile/proactive-planner.js +455 -0
- package/packages/agent/src/activity-profile/proactive-worker.d.ts +32 -0
- package/packages/agent/src/activity-profile/proactive-worker.d.ts.map +1 -0
- package/packages/agent/src/activity-profile/proactive-worker.js +523 -0
- package/packages/agent/src/activity-profile/profile-metadata.d.ts +10 -0
- package/packages/agent/src/activity-profile/profile-metadata.d.ts.map +1 -0
- package/packages/agent/src/activity-profile/profile-metadata.js +25 -0
- package/packages/agent/src/activity-profile/service.d.ts +11 -0
- package/packages/agent/src/activity-profile/service.d.ts.map +1 -0
- package/packages/agent/src/activity-profile/service.js +226 -0
- package/packages/agent/src/activity-profile/types.d.ts +89 -0
- package/packages/agent/src/activity-profile/types.d.ts.map +1 -0
- package/packages/agent/src/activity-profile/types.js +29 -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 +24 -0
- package/packages/agent/src/api/apps-routes.d.ts.map +1 -0
- package/packages/agent/src/api/apps-routes.js +477 -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 +781 -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/bsc-trade.d.ts +40 -0
- package/packages/agent/src/api/bsc-trade.d.ts.map +1 -0
- package/packages/agent/src/api/bsc-trade.js +786 -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 +264 -0
- package/packages/agent/src/api/character-routes.d.ts +51 -0
- package/packages/agent/src/api/character-routes.d.ts.map +1 -0
- package/packages/agent/src/api/character-routes.js +367 -0
- package/packages/agent/src/api/chat-augmentation.d.ts +89 -0
- package/packages/agent/src/api/chat-augmentation.d.ts.map +1 -0
- package/packages/agent/src/api/chat-augmentation.js +396 -0
- package/packages/agent/src/api/chat-routes.d.ts +106 -0
- package/packages/agent/src/api/chat-routes.d.ts.map +1 -0
- package/packages/agent/src/api/chat-routes.js +1500 -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 +183 -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 +143 -0
- package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts +2 -0
- package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts.map +1 -0
- package/packages/agent/src/api/coding-agents-auth-sanitize.js +1 -0
- package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts +2 -0
- package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts.map +1 -0
- package/packages/agent/src/api/coding-agents-preflight-normalize.js +1 -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 +126 -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 +33 -0
- package/packages/agent/src/api/config-routes.d.ts.map +1 -0
- package/packages/agent/src/api/config-routes.js +253 -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 +79 -0
- package/packages/agent/src/api/conversation-routes.d.ts +42 -0
- package/packages/agent/src/api/conversation-routes.d.ts.map +1 -0
- package/packages/agent/src/api/conversation-routes.js +1128 -0
- package/packages/agent/src/api/coordinator-types.d.ts +2 -0
- package/packages/agent/src/api/coordinator-types.d.ts.map +1 -0
- package/packages/agent/src/api/coordinator-types.js +1 -0
- package/packages/agent/src/api/coordinator-wiring.d.ts +2 -0
- package/packages/agent/src/api/coordinator-wiring.d.ts.map +1 -0
- package/packages/agent/src/api/coordinator-wiring.js +1 -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 +41 -0
- package/packages/agent/src/api/database.d.ts +33 -0
- package/packages/agent/src/api/database.d.ts.map +1 -0
- package/packages/agent/src/api/database.js +1020 -0
- package/packages/agent/src/api/diagnostics-routes.d.ts +53 -0
- package/packages/agent/src/api/diagnostics-routes.d.ts.map +1 -0
- package/packages/agent/src/api/diagnostics-routes.js +250 -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-local-routes.d.ts +12 -0
- package/packages/agent/src/api/discord-local-routes.d.ts.map +1 -0
- package/packages/agent/src/api/discord-local-routes.js +145 -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 +282 -0
- package/packages/agent/src/api/drop-routes.d.ts +22 -0
- package/packages/agent/src/api/drop-routes.d.ts.map +1 -0
- package/packages/agent/src/api/drop-routes.js +155 -0
- package/packages/agent/src/api/drop-service.d.ts +26 -0
- package/packages/agent/src/api/drop-service.d.ts.map +1 -0
- package/packages/agent/src/api/drop-service.js +134 -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/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 +148 -0
- package/packages/agent/src/api/imessage-routes.d.ts +55 -0
- package/packages/agent/src/api/imessage-routes.d.ts.map +1 -0
- package/packages/agent/src/api/imessage-routes.js +231 -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 +1547 -0
- package/packages/agent/src/api/index.d.ts +63 -0
- package/packages/agent/src/api/index.d.ts.map +1 -0
- package/packages/agent/src/api/index.js +62 -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/lifeops-browser-packaging.d.ts +2 -0
- package/packages/agent/src/api/lifeops-browser-packaging.d.ts.map +1 -0
- package/packages/agent/src/api/lifeops-browser-packaging.js +1 -0
- package/packages/agent/src/api/lifeops-routes.d.ts +2 -0
- package/packages/agent/src/api/lifeops-routes.d.ts.map +1 -0
- package/packages/agent/src/api/lifeops-routes.js +1 -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 +420 -0
- package/packages/agent/src/api/merkle-tree.d.ts +90 -0
- package/packages/agent/src/api/merkle-tree.d.ts.map +1 -0
- package/packages/agent/src/api/merkle-tree.js +174 -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 +557 -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/nft-verify.d.ts +16 -0
- package/packages/agent/src/api/nft-verify.d.ts.map +1 -0
- package/packages/agent/src/api/nft-verify.js +81 -0
- package/packages/agent/src/api/og-tracker.d.ts +28 -0
- package/packages/agent/src/api/og-tracker.d.ts.map +1 -0
- package/packages/agent/src/api/og-tracker.js +60 -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 +561 -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 +110 -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 +1015 -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 +1140 -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 +718 -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 +54 -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 +181 -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 +132 -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 +52 -0
- package/packages/agent/src/api/server-auth.d.ts.map +1 -0
- package/packages/agent/src/api/server-auth.js +332 -0
- package/packages/agent/src/api/server-helpers.d.ts +95 -0
- package/packages/agent/src/api/server-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers.js +708 -0
- package/packages/agent/src/api/server-startup.d.ts +16 -0
- package/packages/agent/src/api/server-startup.d.ts.map +1 -0
- package/packages/agent/src/api/server-startup.js +14 -0
- package/packages/agent/src/api/server-types.d.ts +216 -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 +144 -0
- package/packages/agent/src/api/server.d.ts.map +1 -0
- package/packages/agent/src/api/server.js +5304 -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 +232 -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 +381 -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 +947 -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 +43 -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 +213 -0
- package/packages/agent/src/api/task-agent-message-routing.d.ts +2 -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 +1 -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/telegram-setup-routes.d.ts +27 -0
- package/packages/agent/src/api/telegram-setup-routes.d.ts.map +1 -0
- package/packages/agent/src/api/telegram-setup-routes.js +125 -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 +39 -0
- package/packages/agent/src/api/trade-safety.d.ts.map +1 -0
- package/packages/agent/src/api/trade-safety.js +66 -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 +73 -0
- package/packages/agent/src/api/trigger-routes.d.ts.map +1 -0
- package/packages/agent/src/api/trigger-routes.js +308 -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/twitter-verify.d.ts +25 -0
- package/packages/agent/src/api/twitter-verify.d.ts.map +1 -0
- package/packages/agent/src/api/twitter-verify.js +168 -0
- package/packages/agent/src/api/tx-service.d.ts +51 -0
- package/packages/agent/src/api/tx-service.d.ts.map +1 -0
- package/packages/agent/src/api/tx-service.js +160 -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-bsc-routes.d.ts +67 -0
- package/packages/agent/src/api/wallet-bsc-routes.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-bsc-routes.js +322 -0
- package/packages/agent/src/api/wallet-capability.d.ts +33 -0
- package/packages/agent/src/api/wallet-capability.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-capability.js +124 -0
- package/packages/agent/src/api/wallet-dex-prices.d.ts +43 -0
- package/packages/agent/src/api/wallet-dex-prices.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-dex-prices.js +153 -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 +104 -0
- package/packages/agent/src/api/wallet-evm-balance.d.ts +66 -0
- package/packages/agent/src/api/wallet-evm-balance.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-evm-balance.js +667 -0
- package/packages/agent/src/api/wallet-routes.d.ts +55 -0
- package/packages/agent/src/api/wallet-routes.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-routes.js +833 -0
- package/packages/agent/src/api/wallet-rpc.d.ts +78 -0
- package/packages/agent/src/api/wallet-rpc.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-rpc.js +476 -0
- package/packages/agent/src/api/wallet-trade-routes.d.ts +110 -0
- package/packages/agent/src/api/wallet-trade-routes.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-trade-routes.js +353 -0
- package/packages/agent/src/api/wallet-trading-profile.d.ts +56 -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 +674 -0
- package/packages/agent/src/api/website-blocker-routes.d.ts +2 -0
- package/packages/agent/src/api/website-blocker-routes.d.ts.map +1 -0
- package/packages/agent/src/api/website-blocker-routes.js +1 -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 +226 -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 +133 -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 +405 -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/anthropic.d.ts +29 -0
- package/packages/agent/src/auth/anthropic.d.ts.map +1 -0
- package/packages/agent/src/auth/anthropic.js +43 -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 +74 -0
- package/packages/agent/src/auth/credentials.d.ts.map +1 -0
- package/packages/agent/src/auth/credentials.js +379 -0
- package/packages/agent/src/auth/index.d.ts +6 -0
- package/packages/agent/src/auth/index.d.ts.map +1 -0
- package/packages/agent/src/auth/index.js +5 -0
- package/packages/agent/src/auth/openai-codex.d.ts +32 -0
- package/packages/agent/src/auth/openai-codex.d.ts.map +1 -0
- package/packages/agent/src/auth/openai-codex.js +81 -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 +16 -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 +78 -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/autonomy/index.d.ts +48 -0
- package/packages/agent/src/autonomy/index.d.ts.map +1 -0
- package/packages/agent/src/autonomy/index.js +330 -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/bin.d.ts +3 -0
- package/packages/agent/src/bin.d.ts.map +1 -0
- package/packages/agent/src/bin.js +6 -0
- package/packages/agent/src/cli/benchmark.d.ts +10 -0
- package/packages/agent/src/cli/benchmark.d.ts.map +1 -0
- package/packages/agent/src/cli/benchmark.js +293 -0
- package/packages/agent/src/cli/index.d.ts +2 -0
- package/packages/agent/src/cli/index.d.ts.map +1 -0
- package/packages/agent/src/cli/index.js +70 -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 +52 -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 +94 -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 +7 -0
- package/packages/agent/src/cloud/index.d.ts.map +1 -0
- package/packages/agent/src/cloud/index.js +6 -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 +277 -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 +282 -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 +19 -0
- package/packages/agent/src/config/index.d.ts.map +1 -0
- package/packages/agent/src/config/index.js +18 -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 +13 -0
- package/packages/agent/src/config/paths.d.ts.map +1 -0
- package/packages/agent/src/config/paths.js +106 -0
- package/packages/agent/src/config/plugin-auto-enable.d.ts +36 -0
- package/packages/agent/src/config/plugin-auto-enable.d.ts.map +1 -0
- package/packages/agent/src/config/plugin-auto-enable.js +519 -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 +70 -0
- package/packages/agent/src/config/runtime-env.d.ts +2 -0
- package/packages/agent/src/config/runtime-env.d.ts.map +1 -0
- package/packages/agent/src/config/runtime-env.js +1 -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 +362 -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 +670 -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 +694 -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 +148 -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/drop.d.ts +2 -0
- package/packages/agent/src/contracts/drop.d.ts.map +1 -0
- package/packages/agent/src/contracts/drop.js +1 -0
- package/packages/agent/src/contracts/index.d.ts +11 -0
- package/packages/agent/src/contracts/index.d.ts.map +1 -0
- package/packages/agent/src/contracts/index.js +10 -0
- package/packages/agent/src/contracts/lifeops.d.ts +2 -0
- package/packages/agent/src/contracts/lifeops.d.ts.map +1 -0
- package/packages/agent/src/contracts/lifeops.js +1 -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/permissions.d.ts +2 -0
- package/packages/agent/src/contracts/permissions.d.ts.map +1 -0
- package/packages/agent/src/contracts/permissions.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/verification.d.ts +2 -0
- package/packages/agent/src/contracts/verification.d.ts.map +1 -0
- package/packages/agent/src/contracts/verification.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/index.d.ts +2 -0
- package/packages/agent/src/diagnostics/index.d.ts.map +1 -0
- package/packages/agent/src/diagnostics/index.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 +75 -0
- package/packages/agent/src/evals/coordinator-eval-client.d.ts +2 -0
- package/packages/agent/src/evals/coordinator-eval-client.d.ts.map +1 -0
- package/packages/agent/src/evals/coordinator-eval-client.js +1 -0
- package/packages/agent/src/evals/coordinator-live-runner.d.ts +2 -0
- package/packages/agent/src/evals/coordinator-live-runner.d.ts.map +1 -0
- package/packages/agent/src/evals/coordinator-live-runner.js +1 -0
- package/packages/agent/src/evals/coordinator-preflight.d.ts +2 -0
- package/packages/agent/src/evals/coordinator-preflight.d.ts.map +1 -0
- package/packages/agent/src/evals/coordinator-preflight.js +1 -0
- package/packages/agent/src/evals/coordinator-scenarios.d.ts +2 -0
- package/packages/agent/src/evals/coordinator-scenarios.d.ts.map +1 -0
- package/packages/agent/src/evals/coordinator-scenarios.js +1 -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 +22 -0
- package/packages/agent/src/index.d.ts.map +1 -0
- package/packages/agent/src/index.js +20 -0
- package/packages/agent/src/lifeops/app-state.d.ts +2 -0
- package/packages/agent/src/lifeops/app-state.d.ts.map +1 -0
- package/packages/agent/src/lifeops/app-state.js +1 -0
- package/packages/agent/src/lifeops/apple-reminders.d.ts +2 -0
- package/packages/agent/src/lifeops/apple-reminders.d.ts.map +1 -0
- package/packages/agent/src/lifeops/apple-reminders.js +1 -0
- package/packages/agent/src/lifeops/defaults.d.ts +2 -0
- package/packages/agent/src/lifeops/defaults.d.ts.map +1 -0
- package/packages/agent/src/lifeops/defaults.js +1 -0
- package/packages/agent/src/lifeops/engine.d.ts +2 -0
- package/packages/agent/src/lifeops/engine.d.ts.map +1 -0
- package/packages/agent/src/lifeops/engine.js +1 -0
- package/packages/agent/src/lifeops/goal-grounding.d.ts +2 -0
- package/packages/agent/src/lifeops/goal-grounding.d.ts.map +1 -0
- package/packages/agent/src/lifeops/goal-grounding.js +1 -0
- package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts +2 -0
- package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts.map +1 -0
- package/packages/agent/src/lifeops/goal-semantic-evaluator.js +1 -0
- package/packages/agent/src/lifeops/google-api-error.d.ts +2 -0
- package/packages/agent/src/lifeops/google-api-error.d.ts.map +1 -0
- package/packages/agent/src/lifeops/google-api-error.js +1 -0
- package/packages/agent/src/lifeops/google-calendar.d.ts +2 -0
- package/packages/agent/src/lifeops/google-calendar.d.ts.map +1 -0
- package/packages/agent/src/lifeops/google-calendar.js +1 -0
- package/packages/agent/src/lifeops/google-connector-gateway.d.ts +2 -0
- package/packages/agent/src/lifeops/google-connector-gateway.d.ts.map +1 -0
- package/packages/agent/src/lifeops/google-connector-gateway.js +1 -0
- package/packages/agent/src/lifeops/google-fetch.d.ts +2 -0
- package/packages/agent/src/lifeops/google-fetch.d.ts.map +1 -0
- package/packages/agent/src/lifeops/google-fetch.js +1 -0
- package/packages/agent/src/lifeops/google-gmail.d.ts +2 -0
- package/packages/agent/src/lifeops/google-gmail.d.ts.map +1 -0
- package/packages/agent/src/lifeops/google-gmail.js +1 -0
- package/packages/agent/src/lifeops/google-managed-client.d.ts +2 -0
- package/packages/agent/src/lifeops/google-managed-client.d.ts.map +1 -0
- package/packages/agent/src/lifeops/google-managed-client.js +1 -0
- package/packages/agent/src/lifeops/google-oauth.d.ts +2 -0
- package/packages/agent/src/lifeops/google-oauth.d.ts.map +1 -0
- package/packages/agent/src/lifeops/google-oauth.js +1 -0
- package/packages/agent/src/lifeops/google-scopes.d.ts +2 -0
- package/packages/agent/src/lifeops/google-scopes.d.ts.map +1 -0
- package/packages/agent/src/lifeops/google-scopes.js +1 -0
- package/packages/agent/src/lifeops/index.d.ts +2 -0
- package/packages/agent/src/lifeops/index.d.ts.map +1 -0
- package/packages/agent/src/lifeops/index.js +1 -0
- package/packages/agent/src/lifeops/owner-profile.d.ts +2 -0
- package/packages/agent/src/lifeops/owner-profile.d.ts.map +1 -0
- package/packages/agent/src/lifeops/owner-profile.js +1 -0
- package/packages/agent/src/lifeops/repository.d.ts +2 -0
- package/packages/agent/src/lifeops/repository.d.ts.map +1 -0
- package/packages/agent/src/lifeops/repository.js +1 -0
- package/packages/agent/src/lifeops/runtime.d.ts +2 -0
- package/packages/agent/src/lifeops/runtime.d.ts.map +1 -0
- package/packages/agent/src/lifeops/runtime.js +1 -0
- package/packages/agent/src/lifeops/screen-context.d.ts +2 -0
- package/packages/agent/src/lifeops/screen-context.d.ts.map +1 -0
- package/packages/agent/src/lifeops/screen-context.js +1 -0
- package/packages/agent/src/lifeops/seed-routines.d.ts +2 -0
- package/packages/agent/src/lifeops/seed-routines.d.ts.map +1 -0
- package/packages/agent/src/lifeops/seed-routines.js +1 -0
- package/packages/agent/src/lifeops/service.d.ts +2 -0
- package/packages/agent/src/lifeops/service.d.ts.map +1 -0
- package/packages/agent/src/lifeops/service.js +1 -0
- package/packages/agent/src/lifeops/sql.d.ts +2 -0
- package/packages/agent/src/lifeops/sql.d.ts.map +1 -0
- package/packages/agent/src/lifeops/sql.js +1 -0
- package/packages/agent/src/lifeops/time.d.ts +2 -0
- package/packages/agent/src/lifeops/time.d.ts.map +1 -0
- package/packages/agent/src/lifeops/time.js +1 -0
- package/packages/agent/src/lifeops/twilio.d.ts +2 -0
- package/packages/agent/src/lifeops/twilio.d.ts.map +1 -0
- package/packages/agent/src/lifeops/twilio.js +1 -0
- package/packages/agent/src/lifeops/x-poster.d.ts +2 -0
- package/packages/agent/src/lifeops/x-poster.d.ts.map +1 -0
- package/packages/agent/src/lifeops/x-poster.js +1 -0
- package/packages/agent/src/onboarding-presets.d.ts +2 -0
- package/packages/agent/src/onboarding-presets.d.ts.map +1 -0
- package/packages/agent/src/onboarding-presets.js +1 -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/plugins/discord-voice-capability.d.ts +35 -0
- package/packages/agent/src/plugins/discord-voice-capability.d.ts.map +1 -0
- package/packages/agent/src/plugins/discord-voice-capability.js +97 -0
- package/packages/agent/src/providers/activity-profile.d.ts +3 -0
- package/packages/agent/src/providers/activity-profile.d.ts.map +1 -0
- package/packages/agent/src/providers/activity-profile.js +140 -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/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 +79 -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/inbox-triage.d.ts +2 -0
- package/packages/agent/src/providers/inbox-triage.d.ts.map +1 -0
- package/packages/agent/src/providers/inbox-triage.js +1 -0
- package/packages/agent/src/providers/index.d.ts +18 -0
- package/packages/agent/src/providers/index.d.ts.map +1 -0
- package/packages/agent/src/providers/index.js +17 -0
- package/packages/agent/src/providers/lifeops.d.ts +2 -0
- package/packages/agent/src/providers/lifeops.d.ts.map +1 -0
- package/packages/agent/src/providers/lifeops.js +1 -0
- package/packages/agent/src/providers/local-models.d.ts +118 -0
- package/packages/agent/src/providers/local-models.d.ts.map +1 -0
- package/packages/agent/src/providers/local-models.js +427 -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/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 +87 -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 +88 -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 +77 -0
- package/packages/agent/src/providers/self-status.d.ts +4 -0
- package/packages/agent/src/providers/self-status.d.ts.map +1 -0
- package/packages/agent/src/providers/self-status.js +12 -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 +336 -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 +22 -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 +54 -0
- package/packages/agent/src/providers/workspace.d.ts.map +1 -0
- package/packages/agent/src/providers/workspace.js +481 -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 +62 -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 +884 -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 +212 -0
- package/packages/agent/src/runtime/eliza.d.ts +181 -0
- package/packages/agent/src/runtime/eliza.d.ts.map +1 -0
- package/packages/agent/src/runtime/eliza.js +3286 -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 +25 -0
- package/packages/agent/src/runtime/first-time-setup.d.ts.map +1 -0
- package/packages/agent/src/runtime/first-time-setup.js +697 -0
- package/packages/agent/src/runtime/index.d.ts +13 -0
- package/packages/agent/src/runtime/index.d.ts.map +1 -0
- package/packages/agent/src/runtime/index.js +12 -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 +74 -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 +38 -0
- package/packages/agent/src/runtime/plugin-collector.d.ts.map +1 -0
- package/packages/agent/src/runtime/plugin-collector.js +397 -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 +574 -0
- package/packages/agent/src/runtime/plugin-resolver.d.ts +31 -0
- package/packages/agent/src/runtime/plugin-resolver.d.ts.map +1 -0
- package/packages/agent/src/runtime/plugin-resolver.js +828 -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 +232 -0
- package/packages/agent/src/runtime/plugin-types.d.ts +71 -0
- package/packages/agent/src/runtime/plugin-types.d.ts.map +1 -0
- package/packages/agent/src/runtime/plugin-types.js +318 -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 +11 -0
- package/packages/agent/src/runtime/prompt-optimization.d.ts.map +1 -0
- package/packages/agent/src/runtime/prompt-optimization.js +421 -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 +676 -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 +299 -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-export.d.ts +8 -0
- package/packages/agent/src/runtime/trajectory-export.d.ts.map +1 -0
- package/packages/agent/src/runtime/trajectory-export.js +7 -0
- package/packages/agent/src/runtime/trajectory-internals.d.ts +217 -0
- package/packages/agent/src/runtime/trajectory-internals.d.ts.map +1 -0
- package/packages/agent/src/runtime/trajectory-internals.js +1296 -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 +65 -0
- package/packages/agent/src/runtime/trajectory-storage.d.ts.map +1 -0
- package/packages/agent/src/runtime/trajectory-storage.js +1026 -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 +149 -0
- package/packages/agent/src/security/audit-log.d.ts +49 -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 +3 -0
- package/packages/agent/src/security/index.d.ts.map +1 -0
- package/packages/agent/src/security/index.js +2 -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/server/index.d.ts +3 -0
- package/packages/agent/src/server/index.d.ts.map +1 -0
- package/packages/agent/src/server/index.js +1 -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 +56 -0
- package/packages/agent/src/services/app-manager.d.ts.map +1 -0
- package/packages/agent/src/services/app-manager.js +2019 -0
- package/packages/agent/src/services/app-package-modules.d.ts +30 -0
- package/packages/agent/src/services/app-package-modules.d.ts.map +1 -0
- package/packages/agent/src/services/app-package-modules.js +348 -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.d.ts +179 -0
- package/packages/agent/src/services/browser-workspace.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace.js +4589 -0
- package/packages/agent/src/services/built-in-app-routes/2004scape.d.ts +28 -0
- package/packages/agent/src/services/built-in-app-routes/2004scape.d.ts.map +1 -0
- package/packages/agent/src/services/built-in-app-routes/2004scape.js +1343 -0
- package/packages/agent/src/services/built-in-app-routes/hyperscape.d.ts +5 -0
- package/packages/agent/src/services/built-in-app-routes/hyperscape.d.ts.map +1 -0
- package/packages/agent/src/services/built-in-app-routes/hyperscape.js +189 -0
- package/packages/agent/src/services/character-persistence.d.ts +39 -0
- package/packages/agent/src/services/character-persistence.d.ts.map +1 -0
- package/packages/agent/src/services/character-persistence.js +159 -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 +20 -0
- package/packages/agent/src/services/coding-task-executor.d.ts.map +1 -0
- package/packages/agent/src/services/coding-task-executor.js +141 -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/credential-words.d.ts +26 -0
- package/packages/agent/src/services/credential-words.d.ts.map +1 -0
- package/packages/agent/src/services/credential-words.js +116 -0
- package/packages/agent/src/services/escalation.d.ts +46 -0
- package/packages/agent/src/services/escalation.d.ts.map +1 -0
- package/packages/agent/src/services/escalation.js +415 -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/index.d.ts +25 -0
- package/packages/agent/src/services/index.d.ts.map +1 -0
- package/packages/agent/src/services/index.js +24 -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/plugin-manager-types.d.ts +113 -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/privy-wallets.d.ts +23 -0
- package/packages/agent/src/services/privy-wallets.d.ts.map +1 -0
- package/packages/agent/src/services/privy-wallets.js +230 -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 +225 -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 +545 -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 +119 -0
- package/packages/agent/src/services/registry-client-queries.d.ts +15 -0
- package/packages/agent/src/services/registry-client-queries.d.ts.map +1 -0
- package/packages/agent/src/services/registry-client-queries.js +172 -0
- package/packages/agent/src/services/registry-client-types.d.ts +125 -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 +134 -0
- package/packages/agent/src/services/relationships-graph.d.ts.map +1 -0
- package/packages/agent/src/services/relationships-graph.js +1332 -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 +57 -0
- package/packages/agent/src/services/signal-pairing.d.ts.map +1 -0
- package/packages/agent/src/services/signal-pairing.js +393 -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 +689 -0
- package/packages/agent/src/services/steward-evm-account.d.ts +62 -0
- package/packages/agent/src/services/steward-evm-account.d.ts.map +1 -0
- package/packages/agent/src/services/steward-evm-account.js +308 -0
- package/packages/agent/src/services/steward-evm-bridge.d.ts +39 -0
- package/packages/agent/src/services/steward-evm-bridge.d.ts.map +1 -0
- package/packages/agent/src/services/steward-evm-bridge.js +103 -0
- package/packages/agent/src/services/steward-wallet.d.ts +30 -0
- package/packages/agent/src/services/steward-wallet.d.ts.map +1 -0
- package/packages/agent/src/services/steward-wallet.js +334 -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/index.d.ts +2 -0
- package/packages/agent/src/shared/index.d.ts.map +1 -0
- package/packages/agent/src/shared/index.js +1 -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 +17 -0
- package/packages/agent/src/test-utils/sqlite-compat.d.ts.map +1 -0
- package/packages/agent/src/test-utils/sqlite-compat.js +48 -0
- package/packages/agent/src/testing/index.d.ts +4 -0
- package/packages/agent/src/testing/index.d.ts.map +1 -0
- package/packages/agent/src/testing/index.js +3 -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 +316 -0
- package/packages/agent/src/triggers/index.d.ts +5 -0
- package/packages/agent/src/triggers/index.d.ts.map +1 -0
- package/packages/agent/src/triggers/index.js +4 -0
- package/packages/agent/src/triggers/runtime.d.ts +25 -0
- package/packages/agent/src/triggers/runtime.d.ts.map +1 -0
- package/packages/agent/src/triggers/runtime.js +456 -0
- package/packages/agent/src/triggers/scheduling.d.ts +71 -0
- package/packages/agent/src/triggers/scheduling.d.ts.map +1 -0
- package/packages/agent/src/triggers/scheduling.js +355 -0
- package/packages/agent/src/triggers/types.d.ts +115 -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/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/trajectory.d.ts +106 -0
- package/packages/agent/src/types/trajectory.d.ts.map +1 -0
- package/packages/agent/src/types/trajectory.js +7 -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/index.d.ts +3 -0
- package/packages/agent/src/utils/index.d.ts.map +1 -0
- package/packages/agent/src/utils/index.js +2 -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 +52 -0
- package/packages/agent/src/utils/spoken-text.d.ts +2 -0
- package/packages/agent/src/utils/spoken-text.d.ts.map +1 -0
- package/packages/agent/src/utils/spoken-text.js +1 -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/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 +16 -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 +99 -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 +18 -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 +469 -0
- package/packages/app-core/src/config/boot-config-store.d.ts +117 -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 +135 -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/config.d.ts +12 -0
- package/packages/app-core/src/config/config.d.ts.map +1 -0
- package/packages/app-core/src/config/config.js +23 -0
- package/packages/app-core/src/navigation/index.d.ts +52 -0
- package/packages/app-core/src/navigation/index.d.ts.map +1 -0
- package/packages/app-core/src/navigation/index.js +354 -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/types/index.d.ts +649 -0
- package/packages/app-core/src/types/index.d.ts.map +1 -0
- package/packages/app-core/src/types/index.js +1 -0
- package/packages/app-core/src/types/lifeops-ui.d.ts +10 -0
- package/packages/app-core/src/types/lifeops-ui.d.ts.map +1 -0
- package/packages/app-core/src/types/lifeops-ui.js +1 -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/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 +68 -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/connectors.d.ts +13 -0
- package/packages/shared/src/connectors.d.ts.map +1 -0
- package/packages/shared/src/connectors.js +91 -0
- package/packages/shared/src/contracts/apps.d.ts +204 -0
- package/packages/shared/src/contracts/apps.d.ts.map +1 -0
- package/packages/shared/src/contracts/apps.js +188 -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 +73 -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/index.d.ts +13 -0
- package/packages/shared/src/contracts/index.d.ts.map +1 -0
- package/packages/shared/src/contracts/index.js +12 -0
- package/packages/shared/src/contracts/lifeops.d.ts +1337 -0
- package/packages/shared/src/contracts/lifeops.d.ts.map +1 -0
- package/packages/shared/src/contracts/lifeops.js +278 -0
- package/packages/shared/src/contracts/onboarding.d.ts +443 -0
- package/packages/shared/src/contracts/onboarding.d.ts.map +1 -0
- package/packages/shared/src/contracts/onboarding.js +1020 -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/service-routing.d.ts +77 -0
- package/packages/shared/src/contracts/service-routing.d.ts.map +1 -0
- package/packages/shared/src/contracts/service-routing.js +227 -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 +626 -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/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 +16 -0
- package/packages/shared/src/env-utils.js +4 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts +1054 -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 +1057 -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 +13 -0
- package/packages/shared/src/index.d.ts.map +1 -0
- package/packages/shared/src/index.js +12 -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 +2606 -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 +176 -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/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 +246 -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 +116 -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/types.d.ts +27 -0
- package/packages/shared/src/types.d.ts.map +1 -0
- package/packages/shared/src/types.js +1 -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/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 +93 -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 +456 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/append.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/append.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/append.js +150 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/delete.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/delete.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/delete.js +136 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/list.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/list.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/list.js +84 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read-attachment.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read-attachment.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read-attachment.js +107 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read-file.d.ts +16 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read-file.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read-file.js +187 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read.js +138 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/remove-from-clipboard.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/remove-from-clipboard.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/remove-from-clipboard.js +96 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/search.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/search.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/search.js +139 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/write.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/write.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/write.js +138 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/index.d.ts +39 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/index.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/index.js +78 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/providers/clipboard.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/providers/clipboard.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/providers/clipboard.js +62 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/attachmentContext.d.ts +16 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/attachmentContext.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/attachmentContext.js +162 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/clipboardService.d.ts +65 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/clipboardService.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/clipboardService.js +352 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/taskClipboardPersistence.d.ts +24 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/taskClipboardPersistence.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/taskClipboardPersistence.js +63 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/taskClipboardService.d.ts +29 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/taskClipboardService.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/taskClipboardService.js +195 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/specs.d.ts +15 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/specs.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/specs.js +164 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/types.d.ts +92 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/types.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/types.js +4 -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 +1149 -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 +129 -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 +192 -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 +96 -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 +39 -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 +78 -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 +352 -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/index.d.ts +8 -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 +7 -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 +633 -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 +619 -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 +70 -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 +256 -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 +10 -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 +8 -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 +46 -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 +569 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/types.d.ts +95 -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 +25 -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 +116 -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 +70 -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 +924 -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 +588 -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 +114 -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/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 +10 -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 +8 -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 +498 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/types.d.ts +18 -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 +11 -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 +108 -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 +125 -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 +180 -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 +286 -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 +198 -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 +37 -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 +347 -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 +132 -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 +108 -0
- package/packages/typescript/src/features/basic-capabilities/index.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/index.js +1020 -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 +232 -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 +82 -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 +19 -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 +18 -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 +70 -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 +323 -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/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/index.d.ts +58 -0
- package/packages/typescript/src/features/index.d.ts.map +1 -0
- package/packages/typescript/src/features/index.js +155 -0
- package/packages/typescript/src/features/knowledge/actions.d.ts +5 -0
- package/packages/typescript/src/features/knowledge/actions.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/actions.js +269 -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 +9 -0
- package/packages/typescript/src/features/knowledge/docs-loader.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/docs-loader.js +202 -0
- package/packages/typescript/src/features/knowledge/document-processor.d.ts +26 -0
- package/packages/typescript/src/features/knowledge/document-processor.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/document-processor.js +618 -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 +106 -0
- package/packages/typescript/src/features/knowledge/index.d.ts +16 -0
- package/packages/typescript/src/features/knowledge/index.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/index.js +29 -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 +62 -0
- package/packages/typescript/src/features/knowledge/service.d.ts +76 -0
- package/packages/typescript/src/features/knowledge/service.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/service.js +511 -0
- package/packages/typescript/src/features/knowledge/types.d.ts +144 -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/utils.d.ts +17 -0
- package/packages/typescript/src/features/knowledge/utils.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/utils.js +313 -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/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 +35 -0
- package/packages/typescript/src/features/plugin-manager/coreExtensions.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/coreExtensions.js +77 -0
- package/packages/typescript/src/features/plugin-manager/index.d.ts +25 -0
- package/packages/typescript/src/features/plugin-manager/index.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/index.js +53 -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 +226 -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 +479 -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 +1007 -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 +402 -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/trajectories/TrajectoriesService.d.ts +275 -0
- package/packages/typescript/src/features/trajectories/TrajectoriesService.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/TrajectoriesService.js +1401 -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 +253 -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 +243 -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 +290 -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 +72 -0
- package/packages/typescript/src/features/trust/index.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/index.js +213 -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 +212 -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/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 +2605 -0
- package/packages/typescript/src/generated/action-docs.d.ts.map +1 -0
- package/packages/typescript/src/generated/action-docs.js +3786 -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 +1056 -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 +1056 -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/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 +78 -0
- package/packages/typescript/src/index.node.d.ts.map +1 -0
- package/packages/typescript/src/index.node.js +107 -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 +1023 -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/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 +334 -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 +14 -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 +88 -0
- package/packages/typescript/src/prompts.d.ts.map +1 -0
- package/packages/typescript/src/prompts.js +1123 -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 +877 -0
- package/packages/typescript/src/runtime.d.ts.map +1 -0
- package/packages/typescript/src/runtime.js +5277 -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.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 +75 -0
- package/packages/typescript/src/schemas/index.d.ts.map +1 -0
- package/packages/typescript/src/schemas/index.js +74 -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 +381 -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 +252 -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 +93 -0
- package/packages/typescript/src/services/message.d.ts.map +1 -0
- package/packages/typescript/src/services/message.js +3163 -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/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 +163 -0
- package/packages/typescript/src/services/relationships.d.ts +125 -0
- package/packages/typescript/src/services/relationships.d.ts.map +1 -0
- package/packages/typescript/src/services/relationships.js +637 -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 +130 -0
- package/packages/typescript/src/services/task.d.ts.map +1 -0
- package/packages/typescript/src/services/task.js +536 -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 +25 -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 +396 -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 +79 -0
- package/packages/typescript/src/streaming-context.d.ts.map +1 -0
- package/packages/typescript/src/streaming-context.js +115 -0
- package/packages/typescript/src/trajectory-context.d.ts +26 -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 +49 -0
- package/packages/typescript/src/trajectory-utils.d.ts.map +1 -0
- package/packages/typescript/src/trajectory-utils.js +105 -0
- package/packages/typescript/src/types/agent.d.ts +62 -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 +346 -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 +386 -0
- package/packages/typescript/src/types/events.d.ts.map +1 -0
- package/packages/typescript/src/types/events.js +83 -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 +38 -0
- package/packages/typescript/src/types/index.d.ts.map +1 -0
- package/packages/typescript/src/types/index.js +46 -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 +438 -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 +169 -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 +45 -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/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 +325 -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/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 +394 -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 +173 -0
- package/packages/typescript/src/types/service.d.ts.map +1 -0
- package/packages/typescript/src/types/service.js +78 -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 +380 -0
- package/packages/typescript/src/types/trigger.d.ts +38 -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/batch-queue/batch-processor.d.ts +53 -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 +129 -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 +126 -0
- package/packages/typescript/src/utils/context-routing.d.ts +25 -0
- package/packages/typescript/src/utils/context-routing.d.ts.map +1 -0
- package/packages/typescript/src/utils/context-routing.js +160 -0
- package/packages/typescript/src/utils/crypto-compat.d.ts +83 -0
- package/packages/typescript/src/utils/crypto-compat.d.ts.map +1 -0
- package/packages/typescript/src/utils/crypto-compat.js +368 -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 +32 -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/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 +325 -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.d.ts +190 -0
- package/packages/typescript/src/utils.d.ts.map +1 -0
- package/packages/typescript/src/utils.js +1115 -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/jest.config.js +0 -17
- package/src/__tests__/client-type-identification.test.ts +0 -59
- package/src/defaultCharacter.ts +0 -530
- package/src/index.ts +0 -911
- package/tsconfig.json +0 -16
|
@@ -0,0 +1,3379 @@
|
|
|
1
|
+
import { ModelType, parseJSONObjectFromText } from "@elizaos/core";
|
|
2
|
+
import { getValidationKeywordTerms, textIncludesKeywordTerm, } from "@elizaos/shared/validation-keywords";
|
|
3
|
+
import { buildNativeAppleReminderMetadata, } from "../lifeops/apple-reminders.js";
|
|
4
|
+
import { resolveDefaultTimeZone, resolveDefaultWindowPolicy, } from "../lifeops/defaults.js";
|
|
5
|
+
import { LifeOpsService, LifeOpsServiceError } from "../lifeops/service.js";
|
|
6
|
+
import { addDaysToLocalDate, buildUtcDateFromLocalParts, getZonedDateParts, } from "../lifeops/time.js";
|
|
7
|
+
import { gmailAction } from "./gmail.js";
|
|
8
|
+
import { renderGroundedActionReply } from "@elizaos/agent/actions/grounded-action-reply";
|
|
9
|
+
import { extractLifeOperationWithLlm, } from "./life.extractor.js";
|
|
10
|
+
import { extractGoalCreatePlanWithLlm, extractGoalUpdatePlanWithLlm, mergeGoalMetadataWithGrounding, } from "./life-goal-extractor.js";
|
|
11
|
+
import { extractReminderIntensityWithLlm, extractTaskCreatePlanWithLlm, } from "./life-param-extractor.js";
|
|
12
|
+
import { recentConversationTexts } from "./life-recent-context.js";
|
|
13
|
+
import { extractUpdateFieldsWithLlm } from "./life-update-extractor.js";
|
|
14
|
+
import { calendarReadUnavailableMessage, dayRange, detailArray, detailBoolean, detailNumber, detailObject, detailString, formatCalendarFeed, formatNextEventContext, formatOverviewForQuery, getGoogleCapabilityStatus, hasLifeOpsAccess, INTERNAL_URL, messageText, toActionData, weekRange, } from "./lifeops-google-helpers.js";
|
|
15
|
+
import { extractExplicitTimeZoneFromText, normalizeExplicitTimeZoneToken, } from "./timezone-normalization.js";
|
|
16
|
+
const LIFE_EMAIL_QUERY_TERMS = getValidationKeywordTerms("contextSignal.gmail.strong", {
|
|
17
|
+
includeAllLocales: true,
|
|
18
|
+
});
|
|
19
|
+
const LIFE_I18N_OPTS = { includeAllLocales: true };
|
|
20
|
+
const LIFE_COMPLETE_TERMS = getValidationKeywordTerms("contextSignal.lifeops_complete.strong", LIFE_I18N_OPTS);
|
|
21
|
+
const LIFE_SKIP_TERMS = getValidationKeywordTerms("contextSignal.lifeops_skip.strong", LIFE_I18N_OPTS);
|
|
22
|
+
const LIFE_SNOOZE_TERMS = getValidationKeywordTerms("contextSignal.lifeops_snooze.strong", LIFE_I18N_OPTS);
|
|
23
|
+
const LIFE_DELETE_TERMS = getValidationKeywordTerms("contextSignal.lifeops_delete.strong", LIFE_I18N_OPTS);
|
|
24
|
+
const LIFE_UPDATE_TERMS = getValidationKeywordTerms("contextSignal.lifeops_update.strong", LIFE_I18N_OPTS);
|
|
25
|
+
const LIFE_OVERVIEW_TERMS = getValidationKeywordTerms("contextSignal.lifeops_overview.strong", LIFE_I18N_OPTS);
|
|
26
|
+
const LIFE_REMINDER_PREF_TERMS = getValidationKeywordTerms("contextSignal.lifeops_reminder_pref.strong", LIFE_I18N_OPTS);
|
|
27
|
+
const LIFE_CALENDAR_TERMS = getValidationKeywordTerms("contextSignal.calendar.strong", LIFE_I18N_OPTS);
|
|
28
|
+
const LIFE_CADENCE_TERMS = getValidationKeywordTerms("contextSignal.lifeops_cadence.strong", LIFE_I18N_OPTS);
|
|
29
|
+
const LIFE_GOAL_TERMS = getValidationKeywordTerms("contextSignal.lifeops_goal.strong", LIFE_I18N_OPTS);
|
|
30
|
+
const LIFE_ESCALATION_TERMS = getValidationKeywordTerms("contextSignal.lifeops_escalation.strong", LIFE_I18N_OPTS);
|
|
31
|
+
const LIFE_PHONE_TERMS = getValidationKeywordTerms("contextSignal.lifeops_phone.strong", LIFE_I18N_OPTS);
|
|
32
|
+
const LIFE_REVIEW_TERMS = getValidationKeywordTerms("contextSignal.lifeops_review.strong", LIFE_I18N_OPTS);
|
|
33
|
+
const LIFE_LIFEOPS_STRONG_TERMS = getValidationKeywordTerms("contextSignal.lifeops.strong", LIFE_I18N_OPTS);
|
|
34
|
+
const LIFE_AFFIRMATIVE_TERMS = getValidationKeywordTerms("contextSignal.affirmative.strong", LIFE_I18N_OPTS);
|
|
35
|
+
const LIFE_NEGATIVE_TERMS = getValidationKeywordTerms("contextSignal.negative.strong", LIFE_I18N_OPTS);
|
|
36
|
+
const LIFE_DRAFT_EDIT_TERMS = getValidationKeywordTerms("contextSignal.draft_edit.strong", LIFE_I18N_OPTS);
|
|
37
|
+
const LIFE_TEMPORAL_NEXT_TERMS = getValidationKeywordTerms("contextSignal.temporal_next.strong", LIFE_I18N_OPTS);
|
|
38
|
+
function textMatchesAnyTerm(text, terms) {
|
|
39
|
+
return terms.some((term) => textIncludesKeywordTerm(text, term));
|
|
40
|
+
}
|
|
41
|
+
const ACTION_TO_OPERATION = {
|
|
42
|
+
create: "create_definition",
|
|
43
|
+
create_goal: "create_goal",
|
|
44
|
+
update: "update_definition",
|
|
45
|
+
update_goal: "update_goal",
|
|
46
|
+
delete: "delete_definition",
|
|
47
|
+
delete_goal: "delete_goal",
|
|
48
|
+
complete: "complete_occurrence",
|
|
49
|
+
skip: "skip_occurrence",
|
|
50
|
+
snooze: "snooze_occurrence",
|
|
51
|
+
review: "review_goal",
|
|
52
|
+
phone: "capture_phone",
|
|
53
|
+
escalation: "configure_escalation",
|
|
54
|
+
reminder_preference: "set_reminder_preference",
|
|
55
|
+
calendar: "query_calendar_today",
|
|
56
|
+
next_event: "query_calendar_next",
|
|
57
|
+
email: "query_email",
|
|
58
|
+
overview: "query_overview",
|
|
59
|
+
};
|
|
60
|
+
// CADENCE_HINT_RE removed — cadence detection uses i18n LIFE_CADENCE_TERMS
|
|
61
|
+
const GENERIC_DERIVED_TITLE_RE = /^(?:new\s+)?(?:habit|routine|task|goal|life goal|thing|item|something|anything|stuff|plan|reminder|todo|to do|achieve|achieve a|achieve an)$/i;
|
|
62
|
+
/** Maximum age (ms) for a deferred draft before it expires. */
|
|
63
|
+
const DRAFT_EXPIRY_MS = 5 * 60 * 1000; // 5 minutes
|
|
64
|
+
/** Maximum conversation turns before a deferred draft expires. */
|
|
65
|
+
const DRAFT_MAX_TURNS = 3;
|
|
66
|
+
function normalizeLifeTimeZoneToken(value) {
|
|
67
|
+
return normalizeExplicitTimeZoneToken(value);
|
|
68
|
+
}
|
|
69
|
+
function extractLifeTimeZoneFromText(value) {
|
|
70
|
+
return extractExplicitTimeZoneFromText(value);
|
|
71
|
+
}
|
|
72
|
+
// ── Intent classifier ─────────────────────────────────
|
|
73
|
+
export function classifyIntent(intent) {
|
|
74
|
+
// All matching is i18n-aware via validation keyword terms.
|
|
75
|
+
// English words are included in the base terms so no regex needed.
|
|
76
|
+
// Reminder preference — check early
|
|
77
|
+
if (textMatchesAnyTerm(intent, LIFE_REMINDER_PREF_TERMS)) {
|
|
78
|
+
return "set_reminder_preference";
|
|
79
|
+
}
|
|
80
|
+
// Update — check before calendar so "edit my workout schedule" doesn't hit calendar
|
|
81
|
+
if (textMatchesAnyTerm(intent, LIFE_UPDATE_TERMS)) {
|
|
82
|
+
if (textMatchesAnyTerm(intent, LIFE_GOAL_TERMS))
|
|
83
|
+
return "update_goal";
|
|
84
|
+
return "update_definition";
|
|
85
|
+
}
|
|
86
|
+
// Escalation config — check before phone capture
|
|
87
|
+
if (textMatchesAnyTerm(intent, LIFE_ESCALATION_TERMS))
|
|
88
|
+
return "configure_escalation";
|
|
89
|
+
// Phone capture
|
|
90
|
+
if (textMatchesAnyTerm(intent, LIFE_PHONE_TERMS))
|
|
91
|
+
return "capture_phone";
|
|
92
|
+
// Review — check before calendar
|
|
93
|
+
if (textMatchesAnyTerm(intent, LIFE_REVIEW_TERMS))
|
|
94
|
+
return "review_goal";
|
|
95
|
+
// Delete — check before calendar
|
|
96
|
+
if (textMatchesAnyTerm(intent, LIFE_DELETE_TERMS)) {
|
|
97
|
+
if (textMatchesAnyTerm(intent, LIFE_GOAL_TERMS))
|
|
98
|
+
return "delete_goal";
|
|
99
|
+
return "delete_definition";
|
|
100
|
+
}
|
|
101
|
+
// Completion
|
|
102
|
+
if (looksLikeCompletionReport(intent))
|
|
103
|
+
return "complete_occurrence";
|
|
104
|
+
// Skip
|
|
105
|
+
if (textMatchesAnyTerm(intent, LIFE_SKIP_TERMS))
|
|
106
|
+
return "skip_occurrence";
|
|
107
|
+
// Snooze
|
|
108
|
+
if (textMatchesAnyTerm(intent, LIFE_SNOOZE_TERMS))
|
|
109
|
+
return "snooze_occurrence";
|
|
110
|
+
// Calendar query — only when not a lifeops create or lifeops item reference
|
|
111
|
+
if (!looksLikeDefinitionCreateIntent(intent) &&
|
|
112
|
+
!looksLikeGoalCreateIntent(intent) &&
|
|
113
|
+
!textMatchesAnyTerm(intent, LIFE_LIFEOPS_STRONG_TERMS) &&
|
|
114
|
+
textMatchesAnyTerm(intent, LIFE_CALENDAR_TERMS)) {
|
|
115
|
+
// Sub-classify: next event vs today/tomorrow/week
|
|
116
|
+
const lower = intent.toLowerCase();
|
|
117
|
+
if (textMatchesAnyTerm(lower, LIFE_TEMPORAL_NEXT_TERMS))
|
|
118
|
+
return "query_calendar_next";
|
|
119
|
+
return "query_calendar_today";
|
|
120
|
+
}
|
|
121
|
+
// Email query
|
|
122
|
+
if (textMatchesAnyTerm(intent, LIFE_EMAIL_QUERY_TERMS))
|
|
123
|
+
return "query_email";
|
|
124
|
+
// Overview
|
|
125
|
+
if (textMatchesAnyTerm(intent, LIFE_OVERVIEW_TERMS))
|
|
126
|
+
return "query_overview";
|
|
127
|
+
// Create definition (has cadence hint)
|
|
128
|
+
if (looksLikeDefinitionCreateIntent(intent))
|
|
129
|
+
return "create_definition";
|
|
130
|
+
// Create goal (goal mention without cadence)
|
|
131
|
+
if (looksLikeGoalCreateIntent(intent))
|
|
132
|
+
return "create_goal";
|
|
133
|
+
// Default: create a task/habit/routine
|
|
134
|
+
return "create_definition";
|
|
135
|
+
}
|
|
136
|
+
async function resolveLifeOperationPlan(args) {
|
|
137
|
+
const { runtime, message, state, intent, explicitOperation } = args;
|
|
138
|
+
if (explicitOperation) {
|
|
139
|
+
return {
|
|
140
|
+
operation: explicitOperation,
|
|
141
|
+
confidence: 1,
|
|
142
|
+
missing: [],
|
|
143
|
+
shouldAct: true,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
const extracted = await extractLifeOperationWithLlm({
|
|
147
|
+
runtime,
|
|
148
|
+
message,
|
|
149
|
+
state,
|
|
150
|
+
intent,
|
|
151
|
+
});
|
|
152
|
+
if (!extracted.shouldAct || !extracted.operation) {
|
|
153
|
+
return {
|
|
154
|
+
operation: extracted.operation,
|
|
155
|
+
confidence: extracted.confidence,
|
|
156
|
+
missing: extracted.missing,
|
|
157
|
+
shouldAct: false,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
return {
|
|
161
|
+
operation: extracted.operation,
|
|
162
|
+
confidence: extracted.confidence,
|
|
163
|
+
missing: extracted.missing,
|
|
164
|
+
shouldAct: true,
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
function looksLikeDefinitionCreateIntent(text) {
|
|
168
|
+
return hasCadenceHint(text);
|
|
169
|
+
}
|
|
170
|
+
function looksLikeGoalCreateIntent(text) {
|
|
171
|
+
return textMatchesAnyTerm(text, LIFE_GOAL_TERMS) && !hasCadenceHint(text);
|
|
172
|
+
}
|
|
173
|
+
function hasCadenceHint(text) {
|
|
174
|
+
return textMatchesAnyTerm(text, LIFE_CADENCE_TERMS);
|
|
175
|
+
}
|
|
176
|
+
function shouldForceLifeCreateExecution(args) {
|
|
177
|
+
if (args.operation !== "create_definition") {
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
const blockingFields = args.missing.filter((field) => field !== "title" && field !== "schedule");
|
|
181
|
+
if (blockingFields.length > 0) {
|
|
182
|
+
return false;
|
|
183
|
+
}
|
|
184
|
+
if (typeof args.title === "string" && args.title.trim().length > 0) {
|
|
185
|
+
return true;
|
|
186
|
+
}
|
|
187
|
+
if (normalizeCadenceDetail(detailObject(args.details, "cadence"))) {
|
|
188
|
+
return true;
|
|
189
|
+
}
|
|
190
|
+
return false;
|
|
191
|
+
}
|
|
192
|
+
function looksLikeCompletionReport(text) {
|
|
193
|
+
// Exclude overview queries — these mention "done/finish" but ask what's remaining
|
|
194
|
+
if (textMatchesAnyTerm(text, LIFE_OVERVIEW_TERMS)) {
|
|
195
|
+
return false;
|
|
196
|
+
}
|
|
197
|
+
// Exclude create-intent with cadence — "create a habit until I complete it"
|
|
198
|
+
if (textMatchesAnyTerm(text, LIFE_CADENCE_TERMS)) {
|
|
199
|
+
return false;
|
|
200
|
+
}
|
|
201
|
+
return textMatchesAnyTerm(text, LIFE_COMPLETE_TERMS);
|
|
202
|
+
}
|
|
203
|
+
// ── Helpers ───────────────────────────────────────────
|
|
204
|
+
function requestedOwnership(domain) {
|
|
205
|
+
if (domain === "agent_ops") {
|
|
206
|
+
return { domain: "agent_ops", subjectType: "agent" };
|
|
207
|
+
}
|
|
208
|
+
return { domain: "user_lifeops", subjectType: "owner" };
|
|
209
|
+
}
|
|
210
|
+
function normalizeIntentText(value) {
|
|
211
|
+
return normalizeLifeInputText(value).toLowerCase();
|
|
212
|
+
}
|
|
213
|
+
function normalizeLifeInputText(value) {
|
|
214
|
+
return value
|
|
215
|
+
.replace(/[\u00a0\u1680\u2000-\u200b\u202f\u205f\u3000]/g, " ")
|
|
216
|
+
.replace(/\s+/g, " ")
|
|
217
|
+
.trim();
|
|
218
|
+
}
|
|
219
|
+
function normalizeTitle(value) {
|
|
220
|
+
return normalizeIntentText(value);
|
|
221
|
+
}
|
|
222
|
+
function matchByTitle(entries, targetTitle) {
|
|
223
|
+
const normalized = normalizeTitle(targetTitle);
|
|
224
|
+
return (entries.find((e) => normalizeTitle(e.definition?.title ?? e.goal?.title ?? "") ===
|
|
225
|
+
normalized) ??
|
|
226
|
+
entries.find((e) => normalizeTitle(e.definition?.title ?? e.goal?.title ?? "").includes(normalized)) ??
|
|
227
|
+
null);
|
|
228
|
+
}
|
|
229
|
+
function coerceDeferredLifeDraft(value) {
|
|
230
|
+
if (!value || typeof value !== "object") {
|
|
231
|
+
return null;
|
|
232
|
+
}
|
|
233
|
+
const record = value;
|
|
234
|
+
const operation = record.operation;
|
|
235
|
+
const intent = typeof record.intent === "string" ? record.intent.trim() : "";
|
|
236
|
+
const request = record.request && typeof record.request === "object"
|
|
237
|
+
? record.request
|
|
238
|
+
: null;
|
|
239
|
+
const createdAt = typeof record.createdAt === "number" && Number.isFinite(record.createdAt)
|
|
240
|
+
? record.createdAt
|
|
241
|
+
: undefined;
|
|
242
|
+
if (!request || !intent) {
|
|
243
|
+
return null;
|
|
244
|
+
}
|
|
245
|
+
const title = typeof request.title === "string" ? request.title.trim() : "";
|
|
246
|
+
if (!title) {
|
|
247
|
+
return null;
|
|
248
|
+
}
|
|
249
|
+
if (operation === "create_definition") {
|
|
250
|
+
const kind = typeof request.kind === "string"
|
|
251
|
+
? request.kind
|
|
252
|
+
: null;
|
|
253
|
+
const cadence = request.cadence;
|
|
254
|
+
if (!kind || !cadence) {
|
|
255
|
+
return null;
|
|
256
|
+
}
|
|
257
|
+
return {
|
|
258
|
+
createdAt,
|
|
259
|
+
intent,
|
|
260
|
+
operation,
|
|
261
|
+
request: {
|
|
262
|
+
cadence,
|
|
263
|
+
description: typeof request.description === "string"
|
|
264
|
+
? request.description
|
|
265
|
+
: undefined,
|
|
266
|
+
goalRef: typeof request.goalRef === "string" ? request.goalRef : undefined,
|
|
267
|
+
kind,
|
|
268
|
+
priority: typeof request.priority === "number" ? request.priority : undefined,
|
|
269
|
+
progressionRule: request.progressionRule,
|
|
270
|
+
reminderPlan: request.reminderPlan,
|
|
271
|
+
timezone: typeof request.timezone === "string" ? request.timezone : undefined,
|
|
272
|
+
title,
|
|
273
|
+
metadata: request.metadata && typeof request.metadata === "object"
|
|
274
|
+
? request.metadata
|
|
275
|
+
: undefined,
|
|
276
|
+
windowPolicy: request.windowPolicy,
|
|
277
|
+
websiteAccess: request.websiteAccess,
|
|
278
|
+
},
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
if (operation === "create_goal") {
|
|
282
|
+
return {
|
|
283
|
+
createdAt,
|
|
284
|
+
intent,
|
|
285
|
+
operation,
|
|
286
|
+
request: {
|
|
287
|
+
cadence: request.cadence,
|
|
288
|
+
description: typeof request.description === "string"
|
|
289
|
+
? request.description
|
|
290
|
+
: undefined,
|
|
291
|
+
metadata: request.metadata && typeof request.metadata === "object"
|
|
292
|
+
? request.metadata
|
|
293
|
+
: undefined,
|
|
294
|
+
successCriteria: request.successCriteria,
|
|
295
|
+
supportStrategy: request.supportStrategy,
|
|
296
|
+
title,
|
|
297
|
+
},
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
return null;
|
|
301
|
+
}
|
|
302
|
+
function stateActionResults(state) {
|
|
303
|
+
if (!state || typeof state !== "object") {
|
|
304
|
+
return [];
|
|
305
|
+
}
|
|
306
|
+
const stateRecord = state;
|
|
307
|
+
const data = stateRecord.data && typeof stateRecord.data === "object"
|
|
308
|
+
? stateRecord.data
|
|
309
|
+
: undefined;
|
|
310
|
+
const providerResults = data?.providers && typeof data.providers === "object"
|
|
311
|
+
? data.providers
|
|
312
|
+
: undefined;
|
|
313
|
+
const providerActionState = providerResults?.ACTION_STATE &&
|
|
314
|
+
typeof providerResults.ACTION_STATE === "object"
|
|
315
|
+
? providerResults.ACTION_STATE
|
|
316
|
+
: undefined;
|
|
317
|
+
const providerActionStateData = providerActionState?.data && typeof providerActionState.data === "object"
|
|
318
|
+
? providerActionState.data
|
|
319
|
+
: undefined;
|
|
320
|
+
const providerRecentMessages = providerResults?.RECENT_MESSAGES &&
|
|
321
|
+
typeof providerResults.RECENT_MESSAGES === "object"
|
|
322
|
+
? providerResults.RECENT_MESSAGES
|
|
323
|
+
: undefined;
|
|
324
|
+
const providerRecentMessagesData = providerRecentMessages?.data &&
|
|
325
|
+
typeof providerRecentMessages.data === "object"
|
|
326
|
+
? providerRecentMessages.data
|
|
327
|
+
: undefined;
|
|
328
|
+
const candidates = [
|
|
329
|
+
data?.actionResults,
|
|
330
|
+
providerActionStateData?.actionResults,
|
|
331
|
+
providerActionStateData?.recentActionMemories,
|
|
332
|
+
providerRecentMessagesData?.actionResults,
|
|
333
|
+
].filter(Array.isArray);
|
|
334
|
+
if (candidates.length === 0) {
|
|
335
|
+
return [];
|
|
336
|
+
}
|
|
337
|
+
return candidates.flatMap((entries) => entries.flatMap((entry) => {
|
|
338
|
+
if (!entry || typeof entry !== "object") {
|
|
339
|
+
return [];
|
|
340
|
+
}
|
|
341
|
+
if ("content" in entry) {
|
|
342
|
+
const content = entry.content &&
|
|
343
|
+
typeof entry.content === "object"
|
|
344
|
+
? entry
|
|
345
|
+
.content
|
|
346
|
+
: null;
|
|
347
|
+
if (!content) {
|
|
348
|
+
return [];
|
|
349
|
+
}
|
|
350
|
+
const contentData = content.data && typeof content.data === "object"
|
|
351
|
+
? { ...content.data }
|
|
352
|
+
: {};
|
|
353
|
+
if (typeof content.actionName === "string" &&
|
|
354
|
+
typeof contentData.actionName !== "string") {
|
|
355
|
+
contentData.actionName = content.actionName;
|
|
356
|
+
}
|
|
357
|
+
return [
|
|
358
|
+
{
|
|
359
|
+
success: content.actionStatus !== "failed",
|
|
360
|
+
text: typeof content.text === "string" ? content.text : undefined,
|
|
361
|
+
data: contentData,
|
|
362
|
+
error: typeof content.error === "string" ? content.error : undefined,
|
|
363
|
+
},
|
|
364
|
+
];
|
|
365
|
+
}
|
|
366
|
+
return [entry];
|
|
367
|
+
}));
|
|
368
|
+
}
|
|
369
|
+
function stateMessageDrafts(state) {
|
|
370
|
+
if (!state || typeof state !== "object") {
|
|
371
|
+
return [];
|
|
372
|
+
}
|
|
373
|
+
const stateRecord = state;
|
|
374
|
+
const data = stateRecord.data && typeof stateRecord.data === "object"
|
|
375
|
+
? stateRecord.data
|
|
376
|
+
: undefined;
|
|
377
|
+
const providerResults = data?.providers && typeof data.providers === "object"
|
|
378
|
+
? data.providers
|
|
379
|
+
: undefined;
|
|
380
|
+
const providerRecentMessages = providerResults?.RECENT_MESSAGES &&
|
|
381
|
+
typeof providerResults.RECENT_MESSAGES === "object"
|
|
382
|
+
? providerResults.RECENT_MESSAGES
|
|
383
|
+
: undefined;
|
|
384
|
+
const providerRecentMessagesData = providerRecentMessages?.data &&
|
|
385
|
+
typeof providerRecentMessages.data === "object"
|
|
386
|
+
? providerRecentMessages.data
|
|
387
|
+
: undefined;
|
|
388
|
+
const recentMessagesData = [
|
|
389
|
+
stateRecord.recentMessagesData,
|
|
390
|
+
stateRecord.recentMessages,
|
|
391
|
+
providerRecentMessagesData?.recentMessages,
|
|
392
|
+
].find(Array.isArray);
|
|
393
|
+
if (!Array.isArray(recentMessagesData)) {
|
|
394
|
+
return [];
|
|
395
|
+
}
|
|
396
|
+
const drafts = [];
|
|
397
|
+
for (const item of recentMessagesData) {
|
|
398
|
+
if (!item || typeof item !== "object") {
|
|
399
|
+
continue;
|
|
400
|
+
}
|
|
401
|
+
const content = item.content;
|
|
402
|
+
if (!content || typeof content !== "object") {
|
|
403
|
+
continue;
|
|
404
|
+
}
|
|
405
|
+
const contentRecord = content;
|
|
406
|
+
const candidate = coerceDeferredLifeDraft(contentRecord.lifeDraft) ??
|
|
407
|
+
coerceDeferredLifeDraft(contentRecord.data && typeof contentRecord.data === "object"
|
|
408
|
+
? contentRecord.data.lifeDraft
|
|
409
|
+
: undefined);
|
|
410
|
+
if (candidate) {
|
|
411
|
+
drafts.push(candidate);
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
return drafts;
|
|
415
|
+
}
|
|
416
|
+
function stateRecentMessageEntries(state) {
|
|
417
|
+
if (!state || typeof state !== "object") {
|
|
418
|
+
return [];
|
|
419
|
+
}
|
|
420
|
+
const stateRecord = state;
|
|
421
|
+
const data = stateRecord.data && typeof stateRecord.data === "object"
|
|
422
|
+
? stateRecord.data
|
|
423
|
+
: undefined;
|
|
424
|
+
const providerResults = data?.providers && typeof data.providers === "object"
|
|
425
|
+
? data.providers
|
|
426
|
+
: undefined;
|
|
427
|
+
const providerRecentMessages = providerResults?.RECENT_MESSAGES &&
|
|
428
|
+
typeof providerResults.RECENT_MESSAGES === "object"
|
|
429
|
+
? providerResults.RECENT_MESSAGES
|
|
430
|
+
: undefined;
|
|
431
|
+
const providerRecentMessagesData = providerRecentMessages?.data &&
|
|
432
|
+
typeof providerRecentMessages.data === "object"
|
|
433
|
+
? providerRecentMessages.data
|
|
434
|
+
: undefined;
|
|
435
|
+
const recentMessagesData = [
|
|
436
|
+
stateRecord.recentMessagesData,
|
|
437
|
+
stateRecord.recentMessages,
|
|
438
|
+
providerRecentMessagesData?.recentMessages,
|
|
439
|
+
].find(Array.isArray);
|
|
440
|
+
if (!Array.isArray(recentMessagesData)) {
|
|
441
|
+
return [];
|
|
442
|
+
}
|
|
443
|
+
return recentMessagesData.filter((item) => Boolean(item) && typeof item === "object");
|
|
444
|
+
}
|
|
445
|
+
function isDeferredLifeDraftMessageEntry(item) {
|
|
446
|
+
const content = item.content && typeof item.content === "object"
|
|
447
|
+
? item.content
|
|
448
|
+
: null;
|
|
449
|
+
if (!content) {
|
|
450
|
+
return false;
|
|
451
|
+
}
|
|
452
|
+
return Boolean(coerceDeferredLifeDraft(content.lifeDraft) ??
|
|
453
|
+
coerceDeferredLifeDraft(content.data && typeof content.data === "object"
|
|
454
|
+
? content.data.lifeDraft
|
|
455
|
+
: undefined));
|
|
456
|
+
}
|
|
457
|
+
function countTurnsSinceLatestDeferredLifeDraft(state) {
|
|
458
|
+
const entries = stateRecentMessageEntries(state);
|
|
459
|
+
if (entries.length === 0) {
|
|
460
|
+
return undefined;
|
|
461
|
+
}
|
|
462
|
+
let latestDraftIndex = -1;
|
|
463
|
+
for (let index = entries.length - 1; index >= 0; index--) {
|
|
464
|
+
if (isDeferredLifeDraftMessageEntry(entries[index])) {
|
|
465
|
+
latestDraftIndex = index;
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
if (latestDraftIndex < 0) {
|
|
470
|
+
return undefined;
|
|
471
|
+
}
|
|
472
|
+
let turns = 0;
|
|
473
|
+
for (const entry of entries.slice(latestDraftIndex + 1)) {
|
|
474
|
+
const content = entry.content && typeof entry.content === "object"
|
|
475
|
+
? entry.content
|
|
476
|
+
: null;
|
|
477
|
+
if (!content || isDeferredLifeDraftMessageEntry(entry)) {
|
|
478
|
+
continue;
|
|
479
|
+
}
|
|
480
|
+
if (typeof content.text === "string" && content.text.trim().length > 0) {
|
|
481
|
+
turns++;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
return turns;
|
|
485
|
+
}
|
|
486
|
+
function latestDeferredLifeDraft(state) {
|
|
487
|
+
for (const result of [...stateActionResults(state)].reverse()) {
|
|
488
|
+
const resultData = result.data && typeof result.data === "object"
|
|
489
|
+
? result.data
|
|
490
|
+
: null;
|
|
491
|
+
const completedCreate = result.success &&
|
|
492
|
+
resultData &&
|
|
493
|
+
!coerceDeferredLifeDraft(resultData.lifeDraft) &&
|
|
494
|
+
((resultData.definition && typeof resultData.definition === "object") ||
|
|
495
|
+
(resultData.goal && typeof resultData.goal === "object"));
|
|
496
|
+
if (completedCreate) {
|
|
497
|
+
return null;
|
|
498
|
+
}
|
|
499
|
+
const candidate = coerceDeferredLifeDraft(result.data?.lifeDraft);
|
|
500
|
+
if (candidate) {
|
|
501
|
+
return candidate;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
const messageDrafts = stateMessageDrafts(state);
|
|
505
|
+
return messageDrafts.length > 0
|
|
506
|
+
? messageDrafts[messageDrafts.length - 1]
|
|
507
|
+
: null;
|
|
508
|
+
}
|
|
509
|
+
function looksLikeDeferredLifeConfirmation(text) {
|
|
510
|
+
const normalized = text.trim().toLowerCase();
|
|
511
|
+
if (!normalized)
|
|
512
|
+
return false;
|
|
513
|
+
if (textMatchesAnyTerm(normalized, LIFE_NEGATIVE_TERMS))
|
|
514
|
+
return false;
|
|
515
|
+
if (textMatchesAnyTerm(normalized, LIFE_DRAFT_EDIT_TERMS))
|
|
516
|
+
return false;
|
|
517
|
+
return textMatchesAnyTerm(normalized, LIFE_AFFIRMATIVE_TERMS);
|
|
518
|
+
}
|
|
519
|
+
function normalizeDeferredLifeDraftReference(value) {
|
|
520
|
+
return normalizeIntentText(value ?? "")
|
|
521
|
+
.replace(/\b(the|that|this|a|an|my|routine|habit|task|goal|reminder)\b/g, " ")
|
|
522
|
+
.replace(/\s+/g, " ")
|
|
523
|
+
.trim();
|
|
524
|
+
}
|
|
525
|
+
function matchesDeferredLifeDraftTitle(value, draft) {
|
|
526
|
+
if (!draft) {
|
|
527
|
+
return false;
|
|
528
|
+
}
|
|
529
|
+
const normalizedValue = normalizeDeferredLifeDraftReference(value);
|
|
530
|
+
const normalizedDraftTitle = normalizeDeferredLifeDraftReference(draft.request.title);
|
|
531
|
+
if (!normalizedValue || !normalizedDraftTitle) {
|
|
532
|
+
return false;
|
|
533
|
+
}
|
|
534
|
+
return (normalizedValue === normalizedDraftTitle ||
|
|
535
|
+
normalizedValue.includes(normalizedDraftTitle) ||
|
|
536
|
+
normalizedDraftTitle.includes(normalizedValue));
|
|
537
|
+
}
|
|
538
|
+
function deferredLifeDraftExpiryReason(args) {
|
|
539
|
+
if (!args.draft) {
|
|
540
|
+
return null;
|
|
541
|
+
}
|
|
542
|
+
if (args.draft.createdAt) {
|
|
543
|
+
const ageMs = Date.now() - args.draft.createdAt;
|
|
544
|
+
if (ageMs >= DRAFT_EXPIRY_MS) {
|
|
545
|
+
return "age";
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
if (typeof args.turnsSinceDraft === "number" &&
|
|
549
|
+
args.turnsSinceDraft >= DRAFT_MAX_TURNS) {
|
|
550
|
+
return "turns";
|
|
551
|
+
}
|
|
552
|
+
return null;
|
|
553
|
+
}
|
|
554
|
+
function looksLikeDeferredLifeDraftEdit(text) {
|
|
555
|
+
const normalized = normalizeIntentText(text);
|
|
556
|
+
if (!normalized || looksLikeDeferredLifeConfirmation(text))
|
|
557
|
+
return false;
|
|
558
|
+
if (textMatchesAnyTerm(normalized, LIFE_NEGATIVE_TERMS))
|
|
559
|
+
return false;
|
|
560
|
+
if (textMatchesAnyTerm(normalized, LIFE_DRAFT_EDIT_TERMS))
|
|
561
|
+
return true;
|
|
562
|
+
return hasCadenceHint(normalized) || /\b\d+\b/.test(normalized);
|
|
563
|
+
}
|
|
564
|
+
async function extractDeferredLifeDraftFollowupWithLlm(args) {
|
|
565
|
+
if (typeof args.runtime.useModel !== "function") {
|
|
566
|
+
return null;
|
|
567
|
+
}
|
|
568
|
+
const recentConversation = await recentConversationTexts({
|
|
569
|
+
runtime: args.runtime,
|
|
570
|
+
message: args.message,
|
|
571
|
+
state: args.state,
|
|
572
|
+
limit: 12,
|
|
573
|
+
});
|
|
574
|
+
const prompt = [
|
|
575
|
+
"Decide how the assistant should interpret the user's follow-up to a previewed LifeOps draft that has not been saved yet.",
|
|
576
|
+
"Use the current message, the draft summary, and recent conversation.",
|
|
577
|
+
"The user may speak in any language.",
|
|
578
|
+
"",
|
|
579
|
+
"Return ONLY valid JSON with exactly this shape:",
|
|
580
|
+
'{"mode":"confirm"|"edit"|"cancel"|"none"}',
|
|
581
|
+
"",
|
|
582
|
+
"Choose confirm when the user clearly approves saving the current draft now.",
|
|
583
|
+
"Choose edit when the user wants to change the draft or continue specifying it before saving.",
|
|
584
|
+
"Choose cancel when the user says not to save it, never mind, not yet, hold off, or equivalent.",
|
|
585
|
+
"Choose none when the follow-up is unrelated or too ambiguous to attach to the draft.",
|
|
586
|
+
"",
|
|
587
|
+
"Previewed draft:",
|
|
588
|
+
stringifyDeferredLifeDraftForPrompt(args.draft),
|
|
589
|
+
"",
|
|
590
|
+
`Current user message: ${JSON.stringify(args.currentText)}`,
|
|
591
|
+
`Recent conversation: ${JSON.stringify(recentConversation.join("\n"))}`,
|
|
592
|
+
].join("\n");
|
|
593
|
+
try {
|
|
594
|
+
const result = await args.runtime.useModel(ModelType.TEXT_LARGE, {
|
|
595
|
+
prompt,
|
|
596
|
+
});
|
|
597
|
+
const raw = typeof result === "string" ? result : "";
|
|
598
|
+
const parsed = parseJSONObjectFromText(raw);
|
|
599
|
+
const mode = parsed && typeof parsed.mode === "string"
|
|
600
|
+
? parsed.mode.trim().toLowerCase()
|
|
601
|
+
: "";
|
|
602
|
+
switch (mode) {
|
|
603
|
+
case "confirm":
|
|
604
|
+
case "edit":
|
|
605
|
+
case "cancel":
|
|
606
|
+
return mode;
|
|
607
|
+
default:
|
|
608
|
+
return null;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
catch {
|
|
612
|
+
return null;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
function stringifyDeferredLifeDraftForPrompt(draft) {
|
|
616
|
+
if (draft.operation === "create_definition") {
|
|
617
|
+
return JSON.stringify({
|
|
618
|
+
operation: draft.operation,
|
|
619
|
+
title: draft.request.title,
|
|
620
|
+
kind: draft.request.kind,
|
|
621
|
+
cadence: draft.request.cadence,
|
|
622
|
+
timezone: draft.request.timezone ?? null,
|
|
623
|
+
description: draft.request.description ?? null,
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
return JSON.stringify({
|
|
627
|
+
operation: draft.operation,
|
|
628
|
+
title: draft.request.title,
|
|
629
|
+
cadence: draft.request.cadence ?? null,
|
|
630
|
+
description: draft.request.description ?? null,
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
function resolveDeferredLifeDraftReuseMode(args) {
|
|
634
|
+
if (!args.draft) {
|
|
635
|
+
return null;
|
|
636
|
+
}
|
|
637
|
+
if (deferredLifeDraftExpiryReason(args)) {
|
|
638
|
+
return null;
|
|
639
|
+
}
|
|
640
|
+
if (detailBoolean(args.details, "confirmed") === true) {
|
|
641
|
+
return "confirm";
|
|
642
|
+
}
|
|
643
|
+
const words = args.currentText.trim().split(/\s+/).filter(Boolean);
|
|
644
|
+
const isConfirmationFollowup = words.length > 0 &&
|
|
645
|
+
words.length <= 6 &&
|
|
646
|
+
!hasCadenceHint(args.currentText.toLowerCase()) &&
|
|
647
|
+
looksLikeDeferredLifeConfirmation(args.currentText);
|
|
648
|
+
if (isConfirmationFollowup) {
|
|
649
|
+
if (args.explicitAction &&
|
|
650
|
+
ACTION_TO_OPERATION[args.explicitAction] !== args.draft.operation) {
|
|
651
|
+
return null;
|
|
652
|
+
}
|
|
653
|
+
return "confirm";
|
|
654
|
+
}
|
|
655
|
+
const explicitReferenceMatchesDraft = matchesDeferredLifeDraftTitle(args.title, args.draft) ||
|
|
656
|
+
matchesDeferredLifeDraftTitle(args.target, args.draft);
|
|
657
|
+
if (looksLikeDeferredLifeConfirmation(args.currentText)) {
|
|
658
|
+
if (args.explicitAction &&
|
|
659
|
+
ACTION_TO_OPERATION[args.explicitAction] !== args.draft.operation) {
|
|
660
|
+
return null;
|
|
661
|
+
}
|
|
662
|
+
if (explicitReferenceMatchesDraft) {
|
|
663
|
+
return "confirm";
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
const normalizedCurrentText = normalizeIntentText(args.currentText);
|
|
667
|
+
const normalizedParamsIntent = typeof args.paramsIntent === "string" && args.paramsIntent.trim().length > 0
|
|
668
|
+
? normalizeIntentText(args.paramsIntent)
|
|
669
|
+
: "";
|
|
670
|
+
if (normalizedParamsIntent &&
|
|
671
|
+
normalizedParamsIntent !== normalizedCurrentText &&
|
|
672
|
+
!looksLikeDeferredLifeConfirmation(args.paramsIntent ?? "")) {
|
|
673
|
+
return null;
|
|
674
|
+
}
|
|
675
|
+
if (args.explicitAction &&
|
|
676
|
+
ACTION_TO_OPERATION[args.explicitAction] !== args.draft.operation) {
|
|
677
|
+
return null;
|
|
678
|
+
}
|
|
679
|
+
if (args.llmMode === "confirm" || args.llmMode === "edit") {
|
|
680
|
+
return args.llmMode;
|
|
681
|
+
}
|
|
682
|
+
if (args.title || args.target) {
|
|
683
|
+
return null;
|
|
684
|
+
}
|
|
685
|
+
return looksLikeDeferredLifeDraftEdit(args.currentText) ? "edit" : null;
|
|
686
|
+
}
|
|
687
|
+
async function resolveGoal(service, target, domain) {
|
|
688
|
+
if (!target)
|
|
689
|
+
return null;
|
|
690
|
+
const goals = (await service.listGoals()).filter((e) => domain ? e.goal.domain === domain : true);
|
|
691
|
+
return goals.find((e) => e.goal.id === target) ?? matchByTitle(goals, target);
|
|
692
|
+
}
|
|
693
|
+
async function resolveDefinition(service, target, domain) {
|
|
694
|
+
if (!target)
|
|
695
|
+
return null;
|
|
696
|
+
const defs = (await service.listDefinitions()).filter((e) => domain ? e.definition.domain === domain : true);
|
|
697
|
+
return (defs.find((e) => e.definition.id === target) ?? matchByTitle(defs, target));
|
|
698
|
+
}
|
|
699
|
+
function tokenizeTitle(value) {
|
|
700
|
+
return normalizeTitle(value)
|
|
701
|
+
.split(" ")
|
|
702
|
+
.filter((token) => token.length >= 3);
|
|
703
|
+
}
|
|
704
|
+
async function resolveDefinitionFromIntent(service, target, intent, domain) {
|
|
705
|
+
const direct = await resolveDefinition(service, target, domain);
|
|
706
|
+
if (direct) {
|
|
707
|
+
return direct;
|
|
708
|
+
}
|
|
709
|
+
const defs = (await service.listDefinitions()).filter((entry) => domain ? entry.definition.domain === domain : true);
|
|
710
|
+
const intentTokens = new Set(tokenizeTitle(intent));
|
|
711
|
+
let best = null;
|
|
712
|
+
let bestScore = 0;
|
|
713
|
+
let tied = false;
|
|
714
|
+
for (const entry of defs) {
|
|
715
|
+
const title = normalizeTitle(entry.definition.title);
|
|
716
|
+
if (title.length > 0 && normalizeTitle(intent).includes(title)) {
|
|
717
|
+
return entry;
|
|
718
|
+
}
|
|
719
|
+
const overlap = tokenizeTitle(entry.definition.title).filter((token) => intentTokens.has(token)).length;
|
|
720
|
+
if (overlap === 0) {
|
|
721
|
+
continue;
|
|
722
|
+
}
|
|
723
|
+
if (overlap > bestScore) {
|
|
724
|
+
best = entry;
|
|
725
|
+
bestScore = overlap;
|
|
726
|
+
tied = false;
|
|
727
|
+
continue;
|
|
728
|
+
}
|
|
729
|
+
if (overlap === bestScore) {
|
|
730
|
+
tied = true;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
return bestScore > 0 && !tied ? best : null;
|
|
734
|
+
}
|
|
735
|
+
function formatOccurrenceDisambiguationLabel(occurrence) {
|
|
736
|
+
const hints = [];
|
|
737
|
+
if (typeof occurrence.windowName === "string" &&
|
|
738
|
+
occurrence.windowName.trim()) {
|
|
739
|
+
hints.push(occurrence.windowName.trim());
|
|
740
|
+
}
|
|
741
|
+
if (occurrence.dueAt) {
|
|
742
|
+
const dueAt = new Date(occurrence.dueAt);
|
|
743
|
+
if (!Number.isNaN(dueAt.getTime())) {
|
|
744
|
+
hints.push(dueAt.toLocaleString(undefined, {
|
|
745
|
+
month: "short",
|
|
746
|
+
day: "numeric",
|
|
747
|
+
hour: "numeric",
|
|
748
|
+
minute: "2-digit",
|
|
749
|
+
}));
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
return hints.length > 0
|
|
753
|
+
? `${occurrence.title} (${hints.join(", ")})`
|
|
754
|
+
: occurrence.title;
|
|
755
|
+
}
|
|
756
|
+
async function resolveOccurrence(service, target, domain) {
|
|
757
|
+
if (!target)
|
|
758
|
+
return { match: null, ambiguousCandidates: [] };
|
|
759
|
+
const overview = await service.getOverview();
|
|
760
|
+
const all = [
|
|
761
|
+
...overview.owner.occurrences,
|
|
762
|
+
...overview.agentOps.occurrences,
|
|
763
|
+
].filter((o) => (domain ? o.domain === domain : true));
|
|
764
|
+
const normalized = normalizeTitle(target);
|
|
765
|
+
// Exact ID match
|
|
766
|
+
const byId = all.find((o) => o.id === target);
|
|
767
|
+
if (byId)
|
|
768
|
+
return { match: byId, ambiguousCandidates: [] };
|
|
769
|
+
// Exact normalized-title match
|
|
770
|
+
const exactMatches = all.filter((o) => normalizeTitle(o.title) === normalized);
|
|
771
|
+
if (exactMatches.length === 1) {
|
|
772
|
+
return { match: exactMatches[0], ambiguousCandidates: [] };
|
|
773
|
+
}
|
|
774
|
+
if (exactMatches.length > 1) {
|
|
775
|
+
return {
|
|
776
|
+
match: null,
|
|
777
|
+
ambiguousCandidates: exactMatches.map(formatOccurrenceDisambiguationLabel),
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
// Substring matches — disambiguate when multiple
|
|
781
|
+
const substringMatches = all.filter((o) => normalizeTitle(o.title).includes(normalized));
|
|
782
|
+
if (substringMatches.length === 1) {
|
|
783
|
+
return { match: substringMatches[0], ambiguousCandidates: [] };
|
|
784
|
+
}
|
|
785
|
+
if (substringMatches.length > 1) {
|
|
786
|
+
// Prefer startsWith over generic includes
|
|
787
|
+
const startsWithMatches = substringMatches.filter((o) => normalizeTitle(o.title).startsWith(normalized));
|
|
788
|
+
if (startsWithMatches.length === 1) {
|
|
789
|
+
return { match: startsWithMatches[0], ambiguousCandidates: [] };
|
|
790
|
+
}
|
|
791
|
+
if (startsWithMatches.length > 1) {
|
|
792
|
+
return {
|
|
793
|
+
match: null,
|
|
794
|
+
ambiguousCandidates: startsWithMatches.map(formatOccurrenceDisambiguationLabel),
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
// Still ambiguous — return candidates for the caller to list
|
|
798
|
+
return {
|
|
799
|
+
match: null,
|
|
800
|
+
ambiguousCandidates: substringMatches.map(formatOccurrenceDisambiguationLabel),
|
|
801
|
+
};
|
|
802
|
+
}
|
|
803
|
+
const targetTokens = normalized.split(/\s+/).filter(Boolean);
|
|
804
|
+
if (targetTokens.length > 1) {
|
|
805
|
+
const tokenSetMatches = all.filter((occurrence) => {
|
|
806
|
+
const occurrenceTokens = new Set(normalizeTitle(occurrence.title).split(/\s+/).filter(Boolean));
|
|
807
|
+
return targetTokens.every((token) => occurrenceTokens.has(token));
|
|
808
|
+
});
|
|
809
|
+
if (tokenSetMatches.length === 1) {
|
|
810
|
+
return { match: tokenSetMatches[0], ambiguousCandidates: [] };
|
|
811
|
+
}
|
|
812
|
+
if (tokenSetMatches.length > 1) {
|
|
813
|
+
return {
|
|
814
|
+
match: null,
|
|
815
|
+
ambiguousCandidates: tokenSetMatches.map(formatOccurrenceDisambiguationLabel),
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
return { match: null, ambiguousCandidates: [] };
|
|
820
|
+
}
|
|
821
|
+
function deriveOccurrenceTargetFromIntent(intent, operation) {
|
|
822
|
+
const normalized = normalizeLifeInputText(intent);
|
|
823
|
+
if (!normalized) {
|
|
824
|
+
return null;
|
|
825
|
+
}
|
|
826
|
+
let candidate = normalized;
|
|
827
|
+
if (operation === "snooze_occurrence") {
|
|
828
|
+
candidate = candidate
|
|
829
|
+
.replace(/^(?:please\s+)?(?:snooze|postpone|push\b.*\bback|remind me later about)\s+/i, "")
|
|
830
|
+
.replace(/\bfor\s+\d+\s*(?:minutes?|hours?)\b.*$/i, "")
|
|
831
|
+
.replace(/\b(?:until|til)\b.+$/i, "")
|
|
832
|
+
.trim();
|
|
833
|
+
}
|
|
834
|
+
else if (operation === "skip_occurrence") {
|
|
835
|
+
candidate = candidate
|
|
836
|
+
.replace(/^(?:please\s+)?(?:skip|pass on)\s+/i, "")
|
|
837
|
+
.replace(/\b(?:today|tonight|for now)\b.*$/i, "")
|
|
838
|
+
.trim();
|
|
839
|
+
}
|
|
840
|
+
else if (operation === "complete_occurrence") {
|
|
841
|
+
candidate = candidate
|
|
842
|
+
.replace(/^(?:please\s+)?(?:mark\s+|i(?:'ve| have)?\s+|just\s+)?(?:done|completed|finished|did)\s+/i, "")
|
|
843
|
+
.replace(/\b(?:done|complete|completed|finished)\b.*$/i, "")
|
|
844
|
+
.trim();
|
|
845
|
+
}
|
|
846
|
+
return candidate.length > 0 ? candidate : null;
|
|
847
|
+
}
|
|
848
|
+
async function resolveOccurrenceWithIntentFallback(args) {
|
|
849
|
+
const direct = await resolveOccurrence(args.service, args.target, args.domain);
|
|
850
|
+
if (direct.match || direct.ambiguousCandidates.length > 0) {
|
|
851
|
+
return direct;
|
|
852
|
+
}
|
|
853
|
+
const fallbackTarget = deriveOccurrenceTargetFromIntent(args.intent, args.operation);
|
|
854
|
+
if (!fallbackTarget ||
|
|
855
|
+
(args.target &&
|
|
856
|
+
normalizeTitle(fallbackTarget) === normalizeTitle(args.target))) {
|
|
857
|
+
return direct;
|
|
858
|
+
}
|
|
859
|
+
return resolveOccurrence(args.service, fallbackTarget, args.domain);
|
|
860
|
+
}
|
|
861
|
+
function summarizeCadence(cadence) {
|
|
862
|
+
switch (cadence.kind) {
|
|
863
|
+
case "once": {
|
|
864
|
+
const dueAt = new Date(cadence.dueAt);
|
|
865
|
+
if (Number.isNaN(dueAt.getTime())) {
|
|
866
|
+
return "once";
|
|
867
|
+
}
|
|
868
|
+
return `once on ${dueAt.toLocaleString(undefined, {
|
|
869
|
+
month: "short",
|
|
870
|
+
day: "numeric",
|
|
871
|
+
hour: "numeric",
|
|
872
|
+
minute: "2-digit",
|
|
873
|
+
timeZone: resolveDefaultTimeZone(),
|
|
874
|
+
})}`;
|
|
875
|
+
}
|
|
876
|
+
case "daily":
|
|
877
|
+
return `every day in ${cadence.windows.join(", ")}`;
|
|
878
|
+
case "times_per_day":
|
|
879
|
+
return cadence.slots
|
|
880
|
+
.map((slot) => slot.label?.trim() || `${slot.minuteOfDay}`)
|
|
881
|
+
.filter(Boolean)
|
|
882
|
+
.join(" and ");
|
|
883
|
+
case "interval":
|
|
884
|
+
return `every ${cadence.everyMinutes} minutes in ${cadence.windows.join(", ")}`;
|
|
885
|
+
case "weekly":
|
|
886
|
+
return `weekly on ${cadence.weekdays
|
|
887
|
+
.map((weekday) => [
|
|
888
|
+
"Sunday",
|
|
889
|
+
"Monday",
|
|
890
|
+
"Tuesday",
|
|
891
|
+
"Wednesday",
|
|
892
|
+
"Thursday",
|
|
893
|
+
"Friday",
|
|
894
|
+
"Saturday",
|
|
895
|
+
][weekday] ?? String(weekday))
|
|
896
|
+
.join(", ")}`;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
function extractNaturalTimePhrase(intent) {
|
|
900
|
+
const normalized = normalizeLifeInputText(intent).toLowerCase();
|
|
901
|
+
if (/\bmornings?\s+only\b|\bmornings?\b/.test(normalized)) {
|
|
902
|
+
return "mornings now";
|
|
903
|
+
}
|
|
904
|
+
if (/\bafternoons?\s+only\b|\bafternoons?\b/.test(normalized)) {
|
|
905
|
+
return "afternoons now";
|
|
906
|
+
}
|
|
907
|
+
if (/\bevenings?\s+only\b|\bevenings?\b/.test(normalized)) {
|
|
908
|
+
return "evenings now";
|
|
909
|
+
}
|
|
910
|
+
if (/\bnights?\s+only\b|\bnights?\b/.test(normalized)) {
|
|
911
|
+
return "nights now";
|
|
912
|
+
}
|
|
913
|
+
const timeMatch = normalized.match(/\b(\d{1,2}(?::\d{2})?\s*(?:am|pm))\b/);
|
|
914
|
+
if (timeMatch?.[1]) {
|
|
915
|
+
return `${timeMatch[1].replace(/\s+/g, "")} now`;
|
|
916
|
+
}
|
|
917
|
+
return null;
|
|
918
|
+
}
|
|
919
|
+
function buildRuleBasedLifeReply(args) {
|
|
920
|
+
const context = args.context ?? {};
|
|
921
|
+
const updated = context.updated && typeof context.updated === "object"
|
|
922
|
+
? context.updated
|
|
923
|
+
: null;
|
|
924
|
+
const created = context.created && typeof context.created === "object"
|
|
925
|
+
? context.created
|
|
926
|
+
: null;
|
|
927
|
+
const title = (typeof updated?.title === "string" ? updated.title : null) ??
|
|
928
|
+
(typeof created?.title === "string" ? created.title : null) ??
|
|
929
|
+
(typeof context.title === "string" ? context.title : null) ??
|
|
930
|
+
null;
|
|
931
|
+
const timePhrase = extractNaturalTimePhrase(args.intent);
|
|
932
|
+
switch (args.scenario) {
|
|
933
|
+
case "updated_definition":
|
|
934
|
+
if (title && timePhrase) {
|
|
935
|
+
return `${title} is set for ${timePhrase}.`;
|
|
936
|
+
}
|
|
937
|
+
if (title) {
|
|
938
|
+
return `${title} is updated.`;
|
|
939
|
+
}
|
|
940
|
+
break;
|
|
941
|
+
case "deleted_definition":
|
|
942
|
+
if (title) {
|
|
943
|
+
return `${title} is off your list.`;
|
|
944
|
+
}
|
|
945
|
+
break;
|
|
946
|
+
case "deleted_goal":
|
|
947
|
+
if (title) {
|
|
948
|
+
return `${title} is off your goals list.`;
|
|
949
|
+
}
|
|
950
|
+
break;
|
|
951
|
+
case "completed_occurrence":
|
|
952
|
+
if (title) {
|
|
953
|
+
return `Marked ${title} done.`;
|
|
954
|
+
}
|
|
955
|
+
break;
|
|
956
|
+
case "skipped_occurrence":
|
|
957
|
+
if (title) {
|
|
958
|
+
return `Okay, skipping ${title} for now.`;
|
|
959
|
+
}
|
|
960
|
+
break;
|
|
961
|
+
case "snoozed_occurrence":
|
|
962
|
+
if (title) {
|
|
963
|
+
return `Okay, I'll bring ${title} back a bit later.`;
|
|
964
|
+
}
|
|
965
|
+
break;
|
|
966
|
+
default:
|
|
967
|
+
break;
|
|
968
|
+
}
|
|
969
|
+
return args.fallback;
|
|
970
|
+
}
|
|
971
|
+
async function renderLifeActionReply(args) {
|
|
972
|
+
const { runtime, message, state, intent, scenario, fallback, context } = args;
|
|
973
|
+
const naturalFallback = buildRuleBasedLifeReply({
|
|
974
|
+
scenario,
|
|
975
|
+
intent,
|
|
976
|
+
fallback,
|
|
977
|
+
context,
|
|
978
|
+
});
|
|
979
|
+
return renderGroundedActionReply({
|
|
980
|
+
runtime,
|
|
981
|
+
message,
|
|
982
|
+
state,
|
|
983
|
+
intent,
|
|
984
|
+
domain: "lifeops",
|
|
985
|
+
scenario,
|
|
986
|
+
fallback: naturalFallback,
|
|
987
|
+
context,
|
|
988
|
+
preferCharacterVoice: true,
|
|
989
|
+
additionalRules: [
|
|
990
|
+
"Mirror the user's phrasing for time and date when possible.",
|
|
991
|
+
"Prefer phrases like tomorrow morning, every night, 7 am, or the user's own wording over robotic schedule language.",
|
|
992
|
+
"Never surface raw ISO timestamps unless the user used raw ISO timestamps.",
|
|
993
|
+
"If this is a preview, make clear it is not saved yet and the user can confirm or change it naturally.",
|
|
994
|
+
"If this is reply-only, do not pretend you saved or changed anything.",
|
|
995
|
+
],
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
function buildLifeClarificationFallback(args) {
|
|
999
|
+
const missing = new Set(args.missing);
|
|
1000
|
+
if (args.operation === "create_goal") {
|
|
1001
|
+
return "What do you want the goal to be?";
|
|
1002
|
+
}
|
|
1003
|
+
if (missing.has("title") && missing.has("schedule")) {
|
|
1004
|
+
return "What do you want the todo to be, and when should it happen?";
|
|
1005
|
+
}
|
|
1006
|
+
if (missing.has("title")) {
|
|
1007
|
+
return "What do you want it to be?";
|
|
1008
|
+
}
|
|
1009
|
+
if (missing.has("schedule")) {
|
|
1010
|
+
return "When should it happen?";
|
|
1011
|
+
}
|
|
1012
|
+
return "Tell me a bit more about what you want to set up.";
|
|
1013
|
+
}
|
|
1014
|
+
function buildLifeServiceErrorFallback(error, intent) {
|
|
1015
|
+
const normalized = error.message.toLowerCase();
|
|
1016
|
+
if (normalized.includes("utc 'z' suffix") ||
|
|
1017
|
+
normalized.includes("local datetime without 'z'") ||
|
|
1018
|
+
normalized.includes("time didn't parse") ||
|
|
1019
|
+
normalized.includes("invalid dueat") ||
|
|
1020
|
+
normalized.includes("cadence.dueat")) {
|
|
1021
|
+
return `I couldn't pin down the reminder time from "${intent}". Tell me the time again in plain language, like "Friday at 8 pm Pacific."`;
|
|
1022
|
+
}
|
|
1023
|
+
if (normalized.includes("when windowpreset is not provided") ||
|
|
1024
|
+
normalized.includes("startat is required")) {
|
|
1025
|
+
return "I still need the time for that reminder. Tell me when it should happen.";
|
|
1026
|
+
}
|
|
1027
|
+
if (error.status === 429 || normalized.includes("rate limit")) {
|
|
1028
|
+
return "LifeOps is rate-limited right now. Try again in a bit.";
|
|
1029
|
+
}
|
|
1030
|
+
return "I couldn't finish that LifeOps change yet. Tell me the task and timing again, and I'll try it a different way.";
|
|
1031
|
+
}
|
|
1032
|
+
// ── Calendar/email formatters ─────────────────────────
|
|
1033
|
+
const DEFAULT_WINDOW_SLOT_TIMES = {
|
|
1034
|
+
morning: {
|
|
1035
|
+
minuteOfDay: 8 * 60,
|
|
1036
|
+
durationMinutes: 45,
|
|
1037
|
+
label: "Morning",
|
|
1038
|
+
},
|
|
1039
|
+
afternoon: {
|
|
1040
|
+
minuteOfDay: 13 * 60,
|
|
1041
|
+
durationMinutes: 45,
|
|
1042
|
+
label: "Afternoon",
|
|
1043
|
+
},
|
|
1044
|
+
evening: {
|
|
1045
|
+
minuteOfDay: 18 * 60,
|
|
1046
|
+
durationMinutes: 45,
|
|
1047
|
+
label: "Evening",
|
|
1048
|
+
},
|
|
1049
|
+
night: {
|
|
1050
|
+
minuteOfDay: 21 * 60,
|
|
1051
|
+
durationMinutes: 45,
|
|
1052
|
+
label: "Night",
|
|
1053
|
+
},
|
|
1054
|
+
};
|
|
1055
|
+
function buildSlotsFromWindows(windows) {
|
|
1056
|
+
return windows.map((window, index) => {
|
|
1057
|
+
const preset = DEFAULT_WINDOW_SLOT_TIMES[window];
|
|
1058
|
+
return {
|
|
1059
|
+
key: windows.indexOf(window) === index ? window : `${window}-${index + 1}`,
|
|
1060
|
+
label: preset.label,
|
|
1061
|
+
minuteOfDay: preset.minuteOfDay,
|
|
1062
|
+
durationMinutes: preset.durationMinutes,
|
|
1063
|
+
};
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
function buildDistributedDailySlots(count) {
|
|
1067
|
+
const normalizedCount = Math.max(1, Math.min(6, count));
|
|
1068
|
+
const presets = {
|
|
1069
|
+
1: [9 * 60],
|
|
1070
|
+
2: [8 * 60, 21 * 60],
|
|
1071
|
+
3: [8 * 60, 13 * 60, 20 * 60],
|
|
1072
|
+
4: [8 * 60, 12 * 60, 16 * 60, 20 * 60],
|
|
1073
|
+
5: [8 * 60, 11 * 60, 14 * 60, 17 * 60, 20 * 60],
|
|
1074
|
+
6: [8 * 60, 10 * 60, 12 * 60, 14 * 60, 17 * 60, 20 * 60],
|
|
1075
|
+
};
|
|
1076
|
+
const minutes = presets[normalizedCount] ?? presets[1];
|
|
1077
|
+
return minutes.map((minuteOfDay, index) => ({
|
|
1078
|
+
key: `slot-${index + 1}`,
|
|
1079
|
+
label: `Time ${index + 1}`,
|
|
1080
|
+
minuteOfDay,
|
|
1081
|
+
durationMinutes: 45,
|
|
1082
|
+
}));
|
|
1083
|
+
}
|
|
1084
|
+
function inferWindowFromMinuteOfDay(minuteOfDay) {
|
|
1085
|
+
if (minuteOfDay < 12 * 60) {
|
|
1086
|
+
return "morning";
|
|
1087
|
+
}
|
|
1088
|
+
if (minuteOfDay < 17 * 60) {
|
|
1089
|
+
return "afternoon";
|
|
1090
|
+
}
|
|
1091
|
+
if (minuteOfDay < 21 * 60) {
|
|
1092
|
+
return "evening";
|
|
1093
|
+
}
|
|
1094
|
+
return "night";
|
|
1095
|
+
}
|
|
1096
|
+
function buildSingleDailySlot(minuteOfDay, durationMinutes = 45) {
|
|
1097
|
+
return {
|
|
1098
|
+
key: `time-${minuteOfDay}`,
|
|
1099
|
+
label: formatMinuteOfDayLabel(minuteOfDay),
|
|
1100
|
+
minuteOfDay,
|
|
1101
|
+
durationMinutes,
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1104
|
+
function addYearsToLocalDate(dateOnly, yearDelta) {
|
|
1105
|
+
const utcDate = new Date(Date.UTC(dateOnly.year + yearDelta, dateOnly.month - 1, dateOnly.day, 12));
|
|
1106
|
+
return {
|
|
1107
|
+
year: utcDate.getUTCFullYear(),
|
|
1108
|
+
month: utcDate.getUTCMonth() + 1,
|
|
1109
|
+
day: utcDate.getUTCDate(),
|
|
1110
|
+
};
|
|
1111
|
+
}
|
|
1112
|
+
function buildCustomTimeWindowPolicy(minuteOfDay, timeZone) {
|
|
1113
|
+
const basePolicy = resolveDefaultWindowPolicy(timeZone);
|
|
1114
|
+
return {
|
|
1115
|
+
timezone: basePolicy.timezone,
|
|
1116
|
+
windows: [
|
|
1117
|
+
...basePolicy.windows,
|
|
1118
|
+
{
|
|
1119
|
+
name: "custom",
|
|
1120
|
+
label: formatMinuteOfDayLabel(minuteOfDay),
|
|
1121
|
+
startMinute: minuteOfDay,
|
|
1122
|
+
endMinute: Math.min(minuteOfDay + 1, 24 * 60),
|
|
1123
|
+
},
|
|
1124
|
+
],
|
|
1125
|
+
};
|
|
1126
|
+
}
|
|
1127
|
+
function formatMinuteOfDayLabel(minuteOfDay) {
|
|
1128
|
+
const hour24 = Math.floor(minuteOfDay / 60);
|
|
1129
|
+
const minute = minuteOfDay % 60;
|
|
1130
|
+
const meridiem = hour24 >= 12 ? "pm" : "am";
|
|
1131
|
+
const hour12 = hour24 % 12 === 0 ? 12 : hour24 % 12;
|
|
1132
|
+
return minute === 0
|
|
1133
|
+
? `${hour12}${meridiem}`
|
|
1134
|
+
: `${hour12}:${String(minute).padStart(2, "0")}${meridiem}`;
|
|
1135
|
+
}
|
|
1136
|
+
function parseClockToken(token) {
|
|
1137
|
+
const normalized = token.trim().toLowerCase();
|
|
1138
|
+
if (normalized === "noon") {
|
|
1139
|
+
return 12 * 60;
|
|
1140
|
+
}
|
|
1141
|
+
if (normalized === "midnight") {
|
|
1142
|
+
return 0;
|
|
1143
|
+
}
|
|
1144
|
+
const match = normalized.match(/^(\d{1,2})(?::(\d{2}))?\s*(am|pm)$/);
|
|
1145
|
+
if (!match) {
|
|
1146
|
+
return null;
|
|
1147
|
+
}
|
|
1148
|
+
const hour = Number(match[1]);
|
|
1149
|
+
const minute = Number(match[2] ?? "0");
|
|
1150
|
+
if (!Number.isFinite(hour) || !Number.isFinite(minute) || minute >= 60) {
|
|
1151
|
+
return null;
|
|
1152
|
+
}
|
|
1153
|
+
if (hour < 1 || hour > 12) {
|
|
1154
|
+
return null;
|
|
1155
|
+
}
|
|
1156
|
+
const meridiem = match[3];
|
|
1157
|
+
const normalizedHour = meridiem === "am" ? hour % 12 : hour % 12 === 0 ? 12 : (hour % 12) + 12;
|
|
1158
|
+
return normalizedHour * 60 + minute;
|
|
1159
|
+
}
|
|
1160
|
+
function parseTimeOfDayToken(token) {
|
|
1161
|
+
const normalized = normalizeLifeInputText(token).toLowerCase();
|
|
1162
|
+
const hhmmMatch = normalized.match(/^(\d{1,2}):(\d{2})$/);
|
|
1163
|
+
if (hhmmMatch) {
|
|
1164
|
+
const hour = Number(hhmmMatch[1]);
|
|
1165
|
+
const minute = Number(hhmmMatch[2]);
|
|
1166
|
+
if (Number.isFinite(hour) &&
|
|
1167
|
+
Number.isFinite(minute) &&
|
|
1168
|
+
hour >= 0 &&
|
|
1169
|
+
hour <= 23 &&
|
|
1170
|
+
minute >= 0 &&
|
|
1171
|
+
minute < 60) {
|
|
1172
|
+
return hour * 60 + minute;
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
return parseClockToken(normalized);
|
|
1176
|
+
}
|
|
1177
|
+
function resolveAlarmDayOffset(intent) {
|
|
1178
|
+
const lower = normalizeLifeInputText(intent).toLowerCase();
|
|
1179
|
+
if (/\btomorrow\b/.test(lower))
|
|
1180
|
+
return 1;
|
|
1181
|
+
if (/\b(today|tonight)\b/.test(lower))
|
|
1182
|
+
return 0;
|
|
1183
|
+
return null;
|
|
1184
|
+
}
|
|
1185
|
+
function buildOneOffDueAtFromMinuteOfDay(args) {
|
|
1186
|
+
const now = args.now ?? new Date();
|
|
1187
|
+
const timeZone = args.timeZone ?? resolveDefaultTimeZone();
|
|
1188
|
+
const nowParts = getZonedDateParts(now, timeZone);
|
|
1189
|
+
let localDate = {
|
|
1190
|
+
year: nowParts.year,
|
|
1191
|
+
month: nowParts.month,
|
|
1192
|
+
day: nowParts.day,
|
|
1193
|
+
};
|
|
1194
|
+
const explicitDate = typeof args.intent === "string"
|
|
1195
|
+
? parseExplicitLocalDateForLifeRequest(args.intent, timeZone, now)
|
|
1196
|
+
: null;
|
|
1197
|
+
if (explicitDate) {
|
|
1198
|
+
localDate = explicitDate;
|
|
1199
|
+
}
|
|
1200
|
+
const explicitDayOffset = typeof args.intent === "string" ? resolveAlarmDayOffset(args.intent) : null;
|
|
1201
|
+
if (explicitDate === null && explicitDayOffset !== null) {
|
|
1202
|
+
localDate = addDaysToLocalDate(localDate, explicitDayOffset);
|
|
1203
|
+
}
|
|
1204
|
+
const buildCandidate = () => buildUtcDateFromLocalParts(timeZone, {
|
|
1205
|
+
...localDate,
|
|
1206
|
+
hour: Math.floor(args.minuteOfDay / 60),
|
|
1207
|
+
minute: args.minuteOfDay % 60,
|
|
1208
|
+
second: 0,
|
|
1209
|
+
});
|
|
1210
|
+
let candidate = buildCandidate();
|
|
1211
|
+
if (candidate.getTime() <= now.getTime()) {
|
|
1212
|
+
if (explicitDate && !explicitDate.explicitYear) {
|
|
1213
|
+
localDate = addYearsToLocalDate(localDate, 1);
|
|
1214
|
+
candidate = buildCandidate();
|
|
1215
|
+
}
|
|
1216
|
+
else if (explicitDate === null && explicitDayOffset === null) {
|
|
1217
|
+
localDate = addDaysToLocalDate(localDate, 1);
|
|
1218
|
+
candidate = buildCandidate();
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
return candidate.toISOString();
|
|
1222
|
+
}
|
|
1223
|
+
function parseExplicitLocalDateForLifeRequest(value, timeZone, now = new Date()) {
|
|
1224
|
+
const normalized = normalizeLifeInputText(value).toLowerCase();
|
|
1225
|
+
const localToday = getZonedDateParts(now, timeZone);
|
|
1226
|
+
const monthMap = {
|
|
1227
|
+
january: 1,
|
|
1228
|
+
jan: 1,
|
|
1229
|
+
february: 2,
|
|
1230
|
+
feb: 2,
|
|
1231
|
+
march: 3,
|
|
1232
|
+
mar: 3,
|
|
1233
|
+
april: 4,
|
|
1234
|
+
apr: 4,
|
|
1235
|
+
may: 5,
|
|
1236
|
+
june: 6,
|
|
1237
|
+
jun: 6,
|
|
1238
|
+
july: 7,
|
|
1239
|
+
jul: 7,
|
|
1240
|
+
august: 8,
|
|
1241
|
+
aug: 8,
|
|
1242
|
+
september: 9,
|
|
1243
|
+
sept: 9,
|
|
1244
|
+
sep: 9,
|
|
1245
|
+
october: 10,
|
|
1246
|
+
oct: 10,
|
|
1247
|
+
november: 11,
|
|
1248
|
+
nov: 11,
|
|
1249
|
+
december: 12,
|
|
1250
|
+
dec: 12,
|
|
1251
|
+
};
|
|
1252
|
+
const weekdayMap = {
|
|
1253
|
+
sunday: 0,
|
|
1254
|
+
sun: 0,
|
|
1255
|
+
monday: 1,
|
|
1256
|
+
mon: 1,
|
|
1257
|
+
tuesday: 2,
|
|
1258
|
+
tue: 2,
|
|
1259
|
+
tues: 2,
|
|
1260
|
+
wednesday: 3,
|
|
1261
|
+
wed: 3,
|
|
1262
|
+
thursday: 4,
|
|
1263
|
+
thu: 4,
|
|
1264
|
+
thur: 4,
|
|
1265
|
+
thurs: 4,
|
|
1266
|
+
friday: 5,
|
|
1267
|
+
fri: 5,
|
|
1268
|
+
saturday: 6,
|
|
1269
|
+
sat: 6,
|
|
1270
|
+
};
|
|
1271
|
+
const isoMatch = normalized.match(/\b(\d{4})-(\d{1,2})-(\d{1,2})\b/);
|
|
1272
|
+
if (isoMatch) {
|
|
1273
|
+
return {
|
|
1274
|
+
year: Number(isoMatch[1]),
|
|
1275
|
+
month: Number(isoMatch[2]),
|
|
1276
|
+
day: Number(isoMatch[3]),
|
|
1277
|
+
explicitYear: true,
|
|
1278
|
+
};
|
|
1279
|
+
}
|
|
1280
|
+
const monthNameMatch = normalized.match(/\b(jan(?:uary)?|feb(?:ruary)?|mar(?:ch)?|apr(?:il)?|may|jun(?:e)?|jul(?:y)?|aug(?:ust)?|sep(?:t(?:ember)?)?|oct(?:ober)?|nov(?:ember)?|dec(?:ember)?)\.?\s+(\d{1,2})(?:st|nd|rd|th)?(?:,?\s+(\d{4}))?\b/i);
|
|
1281
|
+
if (monthNameMatch) {
|
|
1282
|
+
return {
|
|
1283
|
+
year: monthNameMatch[3] ? Number(monthNameMatch[3]) : localToday.year,
|
|
1284
|
+
month: monthMap[monthNameMatch[1].toLowerCase().replace(/\./g, "")],
|
|
1285
|
+
day: Number(monthNameMatch[2]),
|
|
1286
|
+
explicitYear: Boolean(monthNameMatch[3]),
|
|
1287
|
+
};
|
|
1288
|
+
}
|
|
1289
|
+
const numericMatch = normalized.match(/\b(\d{1,2})[/-](\d{1,2})(?:[/-](\d{2,4}))?\b/);
|
|
1290
|
+
if (numericMatch) {
|
|
1291
|
+
const yearRaw = numericMatch[3];
|
|
1292
|
+
const year = yearRaw === undefined
|
|
1293
|
+
? localToday.year
|
|
1294
|
+
: yearRaw.length === 2
|
|
1295
|
+
? 2000 + Number(yearRaw)
|
|
1296
|
+
: Number(yearRaw);
|
|
1297
|
+
return {
|
|
1298
|
+
year,
|
|
1299
|
+
month: Number(numericMatch[1]),
|
|
1300
|
+
day: Number(numericMatch[2]),
|
|
1301
|
+
explicitYear: Boolean(yearRaw),
|
|
1302
|
+
};
|
|
1303
|
+
}
|
|
1304
|
+
const weekdayMatch = normalized.match(/\b(?:(this|next)\s+)?(sun(?:day)?|mon(?:day)?|tue(?:s(?:day)?)?|wed(?:nesday)?|thu(?:r(?:s(?:day)?)?)?|fri(?:day)?|sat(?:urday)?)\b/i);
|
|
1305
|
+
if (!weekdayMatch) {
|
|
1306
|
+
return null;
|
|
1307
|
+
}
|
|
1308
|
+
const weekdayToken = weekdayMatch[2]?.toLowerCase();
|
|
1309
|
+
const targetWeekday = weekdayToken ? weekdayMap[weekdayToken] : undefined;
|
|
1310
|
+
if (targetWeekday === undefined) {
|
|
1311
|
+
return null;
|
|
1312
|
+
}
|
|
1313
|
+
const qualifier = weekdayMatch[1]?.toLowerCase() ?? "";
|
|
1314
|
+
const currentWeekday = new Date(Date.UTC(localToday.year, Math.max(0, localToday.month - 1), localToday.day, 12)).getUTCDay();
|
|
1315
|
+
let delta = (targetWeekday - currentWeekday + 7) % 7;
|
|
1316
|
+
if (qualifier === "next") {
|
|
1317
|
+
delta = delta === 0 ? 7 : delta + 7;
|
|
1318
|
+
}
|
|
1319
|
+
const resolved = addDaysToLocalDate({
|
|
1320
|
+
year: localToday.year,
|
|
1321
|
+
month: localToday.month,
|
|
1322
|
+
day: localToday.day,
|
|
1323
|
+
}, delta);
|
|
1324
|
+
return {
|
|
1325
|
+
...resolved,
|
|
1326
|
+
explicitYear: false,
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
function mergeMetadataRecords(...records) {
|
|
1330
|
+
const merged = Object.assign({}, ...records.filter((record) => record != null && Object.keys(record).length > 0));
|
|
1331
|
+
return Object.keys(merged).length > 0 ? merged : undefined;
|
|
1332
|
+
}
|
|
1333
|
+
function extractExplicitDailySlots(intent) {
|
|
1334
|
+
const tokens = [
|
|
1335
|
+
...intent.matchAll(/\b(\d{1,2}(?::\d{2})?\s*(?:am|pm)|noon|midnight)\b/gi),
|
|
1336
|
+
].map((match) => match[1]);
|
|
1337
|
+
const seen = new Set();
|
|
1338
|
+
const slots = [];
|
|
1339
|
+
for (const [index, token] of tokens.entries()) {
|
|
1340
|
+
const minuteOfDay = parseClockToken(token);
|
|
1341
|
+
if (minuteOfDay === null || seen.has(minuteOfDay)) {
|
|
1342
|
+
continue;
|
|
1343
|
+
}
|
|
1344
|
+
seen.add(minuteOfDay);
|
|
1345
|
+
slots.push({
|
|
1346
|
+
key: `clock-${index + 1}`,
|
|
1347
|
+
label: token.trim(),
|
|
1348
|
+
minuteOfDay,
|
|
1349
|
+
durationMinutes: 45,
|
|
1350
|
+
});
|
|
1351
|
+
}
|
|
1352
|
+
return slots.sort((left, right) => left.minuteOfDay - right.minuteOfDay);
|
|
1353
|
+
}
|
|
1354
|
+
function normalizeLifeWindows(value) {
|
|
1355
|
+
const values = Array.isArray(value) ? value : value == null ? [] : [value];
|
|
1356
|
+
const normalized = values.flatMap((entry) => {
|
|
1357
|
+
if (typeof entry !== "string") {
|
|
1358
|
+
return [];
|
|
1359
|
+
}
|
|
1360
|
+
const lower = normalizeLifeInputText(entry).toLowerCase();
|
|
1361
|
+
if (lower === "morning")
|
|
1362
|
+
return ["morning"];
|
|
1363
|
+
if (lower === "afternoon")
|
|
1364
|
+
return ["afternoon"];
|
|
1365
|
+
if (lower === "evening")
|
|
1366
|
+
return ["evening"];
|
|
1367
|
+
if (lower === "night")
|
|
1368
|
+
return ["night"];
|
|
1369
|
+
return [];
|
|
1370
|
+
});
|
|
1371
|
+
return [...new Set(normalized)];
|
|
1372
|
+
}
|
|
1373
|
+
function normalizeCadenceDetail(value) {
|
|
1374
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
1375
|
+
return undefined;
|
|
1376
|
+
}
|
|
1377
|
+
const record = value;
|
|
1378
|
+
const cadenceKind = typeof record.kind === "string"
|
|
1379
|
+
? normalizeLifeInputText(record.kind).toLowerCase()
|
|
1380
|
+
: typeof record.type === "string"
|
|
1381
|
+
? normalizeLifeInputText(record.type).toLowerCase()
|
|
1382
|
+
: "";
|
|
1383
|
+
if (!cadenceKind) {
|
|
1384
|
+
return undefined;
|
|
1385
|
+
}
|
|
1386
|
+
if (cadenceKind === "once" && typeof record.dueAt === "string") {
|
|
1387
|
+
return {
|
|
1388
|
+
kind: "once",
|
|
1389
|
+
dueAt: record.dueAt,
|
|
1390
|
+
};
|
|
1391
|
+
}
|
|
1392
|
+
if (cadenceKind === "interval") {
|
|
1393
|
+
const everyMinutes = typeof record.everyMinutes === "number"
|
|
1394
|
+
? record.everyMinutes
|
|
1395
|
+
: typeof record.everyMinutes === "string"
|
|
1396
|
+
? Number(record.everyMinutes)
|
|
1397
|
+
: typeof record.minutes === "number"
|
|
1398
|
+
? record.minutes
|
|
1399
|
+
: typeof record.minutes === "string"
|
|
1400
|
+
? Number(record.minutes)
|
|
1401
|
+
: NaN;
|
|
1402
|
+
if (Number.isFinite(everyMinutes) && everyMinutes > 0) {
|
|
1403
|
+
return {
|
|
1404
|
+
kind: "interval",
|
|
1405
|
+
everyMinutes,
|
|
1406
|
+
windows: normalizeLifeWindows(record.windows),
|
|
1407
|
+
};
|
|
1408
|
+
}
|
|
1409
|
+
return undefined;
|
|
1410
|
+
}
|
|
1411
|
+
if (cadenceKind === "weekly") {
|
|
1412
|
+
const weekdays = Array.isArray(record.weekdays)
|
|
1413
|
+
? record.weekdays
|
|
1414
|
+
.map((entry) => typeof entry === "number"
|
|
1415
|
+
? entry
|
|
1416
|
+
: typeof entry === "string"
|
|
1417
|
+
? Number(entry)
|
|
1418
|
+
: NaN)
|
|
1419
|
+
.filter((entry) => Number.isFinite(entry))
|
|
1420
|
+
: [];
|
|
1421
|
+
if (weekdays.length > 0) {
|
|
1422
|
+
return {
|
|
1423
|
+
kind: "weekly",
|
|
1424
|
+
weekdays,
|
|
1425
|
+
windows: normalizeLifeWindows(record.windows),
|
|
1426
|
+
};
|
|
1427
|
+
}
|
|
1428
|
+
return undefined;
|
|
1429
|
+
}
|
|
1430
|
+
const explicitTimes = Array.isArray(record.times)
|
|
1431
|
+
? record.times
|
|
1432
|
+
.map((entry) => typeof entry === "string" ? parseTimeOfDayToken(entry) : null)
|
|
1433
|
+
.filter((entry) => entry !== null)
|
|
1434
|
+
: [];
|
|
1435
|
+
if (explicitTimes.length > 0) {
|
|
1436
|
+
return {
|
|
1437
|
+
kind: "times_per_day",
|
|
1438
|
+
slots: explicitTimes.map((minuteOfDay, index) => ({
|
|
1439
|
+
key: `time-${index + 1}`,
|
|
1440
|
+
label: formatMinuteOfDayLabel(minuteOfDay),
|
|
1441
|
+
minuteOfDay,
|
|
1442
|
+
durationMinutes: 45,
|
|
1443
|
+
})),
|
|
1444
|
+
visibilityLeadMinutes: 90,
|
|
1445
|
+
visibilityLagMinutes: 180,
|
|
1446
|
+
};
|
|
1447
|
+
}
|
|
1448
|
+
if (cadenceKind === "times_per_day") {
|
|
1449
|
+
if (Array.isArray(record.slots)) {
|
|
1450
|
+
const slots = record.slots
|
|
1451
|
+
.map((entry, index) => {
|
|
1452
|
+
if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
|
|
1453
|
+
return null;
|
|
1454
|
+
}
|
|
1455
|
+
const slot = entry;
|
|
1456
|
+
const minuteOfDay = typeof slot.minuteOfDay === "number"
|
|
1457
|
+
? slot.minuteOfDay
|
|
1458
|
+
: typeof slot.minuteOfDay === "string"
|
|
1459
|
+
? Number(slot.minuteOfDay)
|
|
1460
|
+
: null;
|
|
1461
|
+
if (minuteOfDay === null || !Number.isFinite(minuteOfDay)) {
|
|
1462
|
+
return null;
|
|
1463
|
+
}
|
|
1464
|
+
return {
|
|
1465
|
+
key: typeof slot.key === "string" && slot.key.trim().length > 0
|
|
1466
|
+
? slot.key
|
|
1467
|
+
: `slot-${index + 1}`,
|
|
1468
|
+
label: typeof slot.label === "string" && slot.label.trim().length > 0
|
|
1469
|
+
? slot.label
|
|
1470
|
+
: formatMinuteOfDayLabel(minuteOfDay),
|
|
1471
|
+
minuteOfDay,
|
|
1472
|
+
durationMinutes: typeof slot.durationMinutes === "number" &&
|
|
1473
|
+
Number.isFinite(slot.durationMinutes) &&
|
|
1474
|
+
slot.durationMinutes > 0
|
|
1475
|
+
? slot.durationMinutes
|
|
1476
|
+
: 45,
|
|
1477
|
+
};
|
|
1478
|
+
})
|
|
1479
|
+
.filter((entry) => entry !== null);
|
|
1480
|
+
if (slots.length > 0) {
|
|
1481
|
+
return {
|
|
1482
|
+
kind: "times_per_day",
|
|
1483
|
+
slots,
|
|
1484
|
+
visibilityLeadMinutes: typeof record.visibilityLeadMinutes === "number"
|
|
1485
|
+
? record.visibilityLeadMinutes
|
|
1486
|
+
: 90,
|
|
1487
|
+
visibilityLagMinutes: typeof record.visibilityLagMinutes === "number"
|
|
1488
|
+
? record.visibilityLagMinutes
|
|
1489
|
+
: 180,
|
|
1490
|
+
};
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
const count = typeof record.count === "number"
|
|
1494
|
+
? record.count
|
|
1495
|
+
: typeof record.count === "string"
|
|
1496
|
+
? Number(record.count)
|
|
1497
|
+
: NaN;
|
|
1498
|
+
if (Number.isFinite(count) && count > 0) {
|
|
1499
|
+
return {
|
|
1500
|
+
kind: "times_per_day",
|
|
1501
|
+
slots: buildDistributedDailySlots(count),
|
|
1502
|
+
visibilityLeadMinutes: 90,
|
|
1503
|
+
visibilityLagMinutes: 180,
|
|
1504
|
+
};
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
if (cadenceKind === "daily") {
|
|
1508
|
+
const windows = normalizeLifeWindows(record.windows ?? record.window);
|
|
1509
|
+
if (windows.length > 0) {
|
|
1510
|
+
return {
|
|
1511
|
+
kind: "daily",
|
|
1512
|
+
windows,
|
|
1513
|
+
};
|
|
1514
|
+
}
|
|
1515
|
+
return {
|
|
1516
|
+
kind: "daily",
|
|
1517
|
+
windows: ["morning"],
|
|
1518
|
+
};
|
|
1519
|
+
}
|
|
1520
|
+
return undefined;
|
|
1521
|
+
}
|
|
1522
|
+
/**
|
|
1523
|
+
* Convert LLM-extracted params into a typed LifeOpsCadence.
|
|
1524
|
+
* Returns null when the LLM output is insufficient to construct a
|
|
1525
|
+
* valid cadence, letting the caller fall back to regex-derived values.
|
|
1526
|
+
*/
|
|
1527
|
+
function buildCadenceFromLlmParams(params, context) {
|
|
1528
|
+
const kind = params.cadenceKind;
|
|
1529
|
+
if (!kind)
|
|
1530
|
+
return null;
|
|
1531
|
+
const effectiveTimeZone = context?.timeZone;
|
|
1532
|
+
const timeOfDayMinute = typeof params.timeOfDay === "string"
|
|
1533
|
+
? parseTimeOfDayToken(params.timeOfDay)
|
|
1534
|
+
: null;
|
|
1535
|
+
const explicitSlots = typeof context?.intent === "string"
|
|
1536
|
+
? extractExplicitDailySlots(context.intent)
|
|
1537
|
+
: [];
|
|
1538
|
+
const slotDuration = typeof params.durationMinutes === "number" && params.durationMinutes > 0
|
|
1539
|
+
? params.durationMinutes
|
|
1540
|
+
: 45;
|
|
1541
|
+
const windows = (params.windows ?? []).filter((w) => w === "morning" || w === "afternoon" || w === "evening" || w === "night");
|
|
1542
|
+
const effectiveWindows = windows.length > 0
|
|
1543
|
+
? windows
|
|
1544
|
+
: timeOfDayMinute !== null
|
|
1545
|
+
? [inferWindowFromMinuteOfDay(timeOfDayMinute)]
|
|
1546
|
+
: ["morning"];
|
|
1547
|
+
if (kind === "once") {
|
|
1548
|
+
if (timeOfDayMinute !== null) {
|
|
1549
|
+
return {
|
|
1550
|
+
cadence: {
|
|
1551
|
+
kind: "once",
|
|
1552
|
+
dueAt: buildOneOffDueAtFromMinuteOfDay({
|
|
1553
|
+
intent: context?.intent,
|
|
1554
|
+
minuteOfDay: timeOfDayMinute,
|
|
1555
|
+
now: context?.now,
|
|
1556
|
+
timeZone: effectiveTimeZone,
|
|
1557
|
+
}),
|
|
1558
|
+
},
|
|
1559
|
+
};
|
|
1560
|
+
}
|
|
1561
|
+
return { cadence: { kind: "once", dueAt: new Date().toISOString() } };
|
|
1562
|
+
}
|
|
1563
|
+
if (kind === "daily") {
|
|
1564
|
+
if (explicitSlots.length >= 2) {
|
|
1565
|
+
return {
|
|
1566
|
+
cadence: {
|
|
1567
|
+
kind: "times_per_day",
|
|
1568
|
+
slots: explicitSlots.map((slot) => ({
|
|
1569
|
+
...slot,
|
|
1570
|
+
durationMinutes: slot.durationMinutes ?? slotDuration,
|
|
1571
|
+
})),
|
|
1572
|
+
visibilityLeadMinutes: 90,
|
|
1573
|
+
visibilityLagMinutes: 180,
|
|
1574
|
+
},
|
|
1575
|
+
};
|
|
1576
|
+
}
|
|
1577
|
+
if (timeOfDayMinute !== null) {
|
|
1578
|
+
return {
|
|
1579
|
+
cadence: {
|
|
1580
|
+
kind: "times_per_day",
|
|
1581
|
+
slots: [buildSingleDailySlot(timeOfDayMinute, slotDuration)],
|
|
1582
|
+
visibilityLeadMinutes: 90,
|
|
1583
|
+
visibilityLagMinutes: 180,
|
|
1584
|
+
},
|
|
1585
|
+
};
|
|
1586
|
+
}
|
|
1587
|
+
if (effectiveWindows.length >= 2) {
|
|
1588
|
+
return {
|
|
1589
|
+
cadence: {
|
|
1590
|
+
kind: "times_per_day",
|
|
1591
|
+
slots: buildSlotsFromWindows(effectiveWindows),
|
|
1592
|
+
visibilityLeadMinutes: 90,
|
|
1593
|
+
visibilityLagMinutes: 180,
|
|
1594
|
+
},
|
|
1595
|
+
};
|
|
1596
|
+
}
|
|
1597
|
+
return { cadence: { kind: "daily", windows: effectiveWindows } };
|
|
1598
|
+
}
|
|
1599
|
+
if (kind === "weekly") {
|
|
1600
|
+
const weekdays = params.weekdays;
|
|
1601
|
+
if (!weekdays || weekdays.length === 0)
|
|
1602
|
+
return null;
|
|
1603
|
+
if (timeOfDayMinute !== null) {
|
|
1604
|
+
return {
|
|
1605
|
+
cadence: { kind: "weekly", weekdays, windows: ["custom"] },
|
|
1606
|
+
windowPolicy: buildCustomTimeWindowPolicy(timeOfDayMinute, effectiveTimeZone ?? resolveDefaultTimeZone()),
|
|
1607
|
+
};
|
|
1608
|
+
}
|
|
1609
|
+
return { cadence: { kind: "weekly", weekdays, windows: effectiveWindows } };
|
|
1610
|
+
}
|
|
1611
|
+
if (kind === "interval") {
|
|
1612
|
+
const everyMinutes = params.everyMinutes;
|
|
1613
|
+
if (!everyMinutes || everyMinutes <= 0)
|
|
1614
|
+
return null;
|
|
1615
|
+
return {
|
|
1616
|
+
cadence: {
|
|
1617
|
+
kind: "interval",
|
|
1618
|
+
everyMinutes,
|
|
1619
|
+
windows: effectiveWindows,
|
|
1620
|
+
startMinuteOfDay: timeOfDayMinute ?? undefined,
|
|
1621
|
+
durationMinutes: typeof params.durationMinutes === "number" &&
|
|
1622
|
+
params.durationMinutes > 0
|
|
1623
|
+
? params.durationMinutes
|
|
1624
|
+
: undefined,
|
|
1625
|
+
},
|
|
1626
|
+
};
|
|
1627
|
+
}
|
|
1628
|
+
if (kind === "times_per_day") {
|
|
1629
|
+
if (explicitSlots.length >= 2) {
|
|
1630
|
+
return {
|
|
1631
|
+
cadence: {
|
|
1632
|
+
kind: "times_per_day",
|
|
1633
|
+
slots: explicitSlots.map((slot) => ({
|
|
1634
|
+
...slot,
|
|
1635
|
+
durationMinutes: slot.durationMinutes ?? slotDuration,
|
|
1636
|
+
})),
|
|
1637
|
+
visibilityLeadMinutes: 90,
|
|
1638
|
+
visibilityLagMinutes: 180,
|
|
1639
|
+
},
|
|
1640
|
+
};
|
|
1641
|
+
}
|
|
1642
|
+
if (timeOfDayMinute !== null) {
|
|
1643
|
+
return {
|
|
1644
|
+
cadence: {
|
|
1645
|
+
kind: "times_per_day",
|
|
1646
|
+
slots: [buildSingleDailySlot(timeOfDayMinute, slotDuration)],
|
|
1647
|
+
visibilityLeadMinutes: 90,
|
|
1648
|
+
visibilityLagMinutes: 180,
|
|
1649
|
+
},
|
|
1650
|
+
};
|
|
1651
|
+
}
|
|
1652
|
+
const count = params.timesPerDay;
|
|
1653
|
+
if (!count || count <= 0)
|
|
1654
|
+
return null;
|
|
1655
|
+
return {
|
|
1656
|
+
cadence: {
|
|
1657
|
+
kind: "times_per_day",
|
|
1658
|
+
slots: buildDistributedDailySlots(count).map((slot) => ({
|
|
1659
|
+
...slot,
|
|
1660
|
+
durationMinutes: slotDuration,
|
|
1661
|
+
})),
|
|
1662
|
+
visibilityLeadMinutes: 90,
|
|
1663
|
+
visibilityLagMinutes: 180,
|
|
1664
|
+
},
|
|
1665
|
+
};
|
|
1666
|
+
}
|
|
1667
|
+
return null;
|
|
1668
|
+
}
|
|
1669
|
+
function buildCadenceFromUpdateFields(args) {
|
|
1670
|
+
const { currentCadence, currentWindowPolicy, timeZone, update } = args;
|
|
1671
|
+
const kind = (update.cadenceKind ??
|
|
1672
|
+
currentCadence.kind);
|
|
1673
|
+
const requestedWindows = normalizeLifeWindows(update.windows ?? []);
|
|
1674
|
+
const timeOfDayMinute = typeof update.timeOfDay === "string"
|
|
1675
|
+
? parseTimeOfDayToken(update.timeOfDay)
|
|
1676
|
+
: null;
|
|
1677
|
+
if (kind === "interval") {
|
|
1678
|
+
const everyMinutes = update.everyMinutes ??
|
|
1679
|
+
(currentCadence.kind === "interval" ? currentCadence.everyMinutes : null);
|
|
1680
|
+
if (!everyMinutes || everyMinutes <= 0) {
|
|
1681
|
+
return null;
|
|
1682
|
+
}
|
|
1683
|
+
const windows = requestedWindows.length > 0
|
|
1684
|
+
? requestedWindows
|
|
1685
|
+
: currentCadence.kind === "interval" &&
|
|
1686
|
+
currentCadence.windows.length > 0
|
|
1687
|
+
? normalizeLifeWindows(currentCadence.windows)
|
|
1688
|
+
: timeOfDayMinute !== null
|
|
1689
|
+
? [inferWindowFromMinuteOfDay(timeOfDayMinute)]
|
|
1690
|
+
: ["morning"];
|
|
1691
|
+
return {
|
|
1692
|
+
cadence: {
|
|
1693
|
+
kind: "interval",
|
|
1694
|
+
everyMinutes,
|
|
1695
|
+
windows,
|
|
1696
|
+
startMinuteOfDay: timeOfDayMinute ??
|
|
1697
|
+
(currentCadence.kind === "interval"
|
|
1698
|
+
? currentCadence.startMinuteOfDay
|
|
1699
|
+
: undefined),
|
|
1700
|
+
maxOccurrencesPerDay: currentCadence.kind === "interval"
|
|
1701
|
+
? currentCadence.maxOccurrencesPerDay
|
|
1702
|
+
: undefined,
|
|
1703
|
+
durationMinutes: currentCadence.kind === "interval"
|
|
1704
|
+
? currentCadence.durationMinutes
|
|
1705
|
+
: undefined,
|
|
1706
|
+
visibilityLeadMinutes: currentCadence.kind === "interval"
|
|
1707
|
+
? currentCadence.visibilityLeadMinutes
|
|
1708
|
+
: undefined,
|
|
1709
|
+
visibilityLagMinutes: currentCadence.kind === "interval"
|
|
1710
|
+
? currentCadence.visibilityLagMinutes
|
|
1711
|
+
: undefined,
|
|
1712
|
+
},
|
|
1713
|
+
};
|
|
1714
|
+
}
|
|
1715
|
+
if (kind === "weekly") {
|
|
1716
|
+
const weekdays = update.weekdays ??
|
|
1717
|
+
(currentCadence.kind === "weekly" ? currentCadence.weekdays : null);
|
|
1718
|
+
if (!weekdays || weekdays.length === 0) {
|
|
1719
|
+
return null;
|
|
1720
|
+
}
|
|
1721
|
+
if (timeOfDayMinute !== null) {
|
|
1722
|
+
return {
|
|
1723
|
+
cadence: {
|
|
1724
|
+
kind: "weekly",
|
|
1725
|
+
weekdays,
|
|
1726
|
+
windows: ["custom"],
|
|
1727
|
+
visibilityLeadMinutes: currentCadence.kind === "weekly"
|
|
1728
|
+
? currentCadence.visibilityLeadMinutes
|
|
1729
|
+
: undefined,
|
|
1730
|
+
visibilityLagMinutes: currentCadence.kind === "weekly"
|
|
1731
|
+
? currentCadence.visibilityLagMinutes
|
|
1732
|
+
: undefined,
|
|
1733
|
+
},
|
|
1734
|
+
windowPolicy: buildCustomTimeWindowPolicy(timeOfDayMinute, timeZone),
|
|
1735
|
+
};
|
|
1736
|
+
}
|
|
1737
|
+
return {
|
|
1738
|
+
cadence: {
|
|
1739
|
+
kind: "weekly",
|
|
1740
|
+
weekdays,
|
|
1741
|
+
windows: requestedWindows.length > 0
|
|
1742
|
+
? requestedWindows
|
|
1743
|
+
: currentCadence.kind === "weekly" &&
|
|
1744
|
+
currentCadence.windows.length > 0
|
|
1745
|
+
? currentCadence.windows
|
|
1746
|
+
: ["morning"],
|
|
1747
|
+
visibilityLeadMinutes: currentCadence.kind === "weekly"
|
|
1748
|
+
? currentCadence.visibilityLeadMinutes
|
|
1749
|
+
: undefined,
|
|
1750
|
+
visibilityLagMinutes: currentCadence.kind === "weekly"
|
|
1751
|
+
? currentCadence.visibilityLagMinutes
|
|
1752
|
+
: undefined,
|
|
1753
|
+
},
|
|
1754
|
+
windowPolicy: currentWindowPolicy.windows.some((window) => (requestedWindows.length > 0
|
|
1755
|
+
? requestedWindows
|
|
1756
|
+
: ["morning"]).includes(window.name))
|
|
1757
|
+
? undefined
|
|
1758
|
+
: resolveDefaultWindowPolicy(timeZone),
|
|
1759
|
+
};
|
|
1760
|
+
}
|
|
1761
|
+
if (kind === "daily") {
|
|
1762
|
+
if (timeOfDayMinute !== null) {
|
|
1763
|
+
return {
|
|
1764
|
+
cadence: {
|
|
1765
|
+
kind: "times_per_day",
|
|
1766
|
+
slots: [buildSingleDailySlot(timeOfDayMinute)],
|
|
1767
|
+
visibilityLeadMinutes: 90,
|
|
1768
|
+
visibilityLagMinutes: 180,
|
|
1769
|
+
},
|
|
1770
|
+
};
|
|
1771
|
+
}
|
|
1772
|
+
return {
|
|
1773
|
+
cadence: {
|
|
1774
|
+
kind: "daily",
|
|
1775
|
+
windows: requestedWindows.length > 0
|
|
1776
|
+
? requestedWindows
|
|
1777
|
+
: currentCadence.kind === "daily" &&
|
|
1778
|
+
currentCadence.windows.length > 0
|
|
1779
|
+
? currentCadence.windows
|
|
1780
|
+
: ["morning"],
|
|
1781
|
+
visibilityLeadMinutes: currentCadence.kind === "daily"
|
|
1782
|
+
? currentCadence.visibilityLeadMinutes
|
|
1783
|
+
: undefined,
|
|
1784
|
+
visibilityLagMinutes: currentCadence.kind === "daily"
|
|
1785
|
+
? currentCadence.visibilityLagMinutes
|
|
1786
|
+
: undefined,
|
|
1787
|
+
},
|
|
1788
|
+
};
|
|
1789
|
+
}
|
|
1790
|
+
if (kind === "times_per_day") {
|
|
1791
|
+
if (timeOfDayMinute !== null) {
|
|
1792
|
+
return {
|
|
1793
|
+
cadence: {
|
|
1794
|
+
kind: "times_per_day",
|
|
1795
|
+
slots: [buildSingleDailySlot(timeOfDayMinute)],
|
|
1796
|
+
visibilityLeadMinutes: 90,
|
|
1797
|
+
visibilityLagMinutes: 180,
|
|
1798
|
+
},
|
|
1799
|
+
};
|
|
1800
|
+
}
|
|
1801
|
+
if (requestedWindows.length > 0) {
|
|
1802
|
+
return {
|
|
1803
|
+
cadence: {
|
|
1804
|
+
kind: "times_per_day",
|
|
1805
|
+
slots: buildSlotsFromWindows(requestedWindows),
|
|
1806
|
+
visibilityLeadMinutes: 90,
|
|
1807
|
+
visibilityLagMinutes: 180,
|
|
1808
|
+
},
|
|
1809
|
+
};
|
|
1810
|
+
}
|
|
1811
|
+
return currentCadence.kind === "times_per_day"
|
|
1812
|
+
? { cadence: currentCadence }
|
|
1813
|
+
: null;
|
|
1814
|
+
}
|
|
1815
|
+
return currentCadence.kind === "once" ? { cadence: currentCadence } : null;
|
|
1816
|
+
}
|
|
1817
|
+
function hasDefinitionUpdateChanges(request) {
|
|
1818
|
+
return (request.title != null ||
|
|
1819
|
+
request.cadence != null ||
|
|
1820
|
+
request.priority != null ||
|
|
1821
|
+
request.description != null ||
|
|
1822
|
+
request.windowPolicy != null ||
|
|
1823
|
+
request.reminderPlan != null);
|
|
1824
|
+
}
|
|
1825
|
+
function buildDefaultReminderPlan(label) {
|
|
1826
|
+
return {
|
|
1827
|
+
steps: [{ channel: "in_app", offsetMinutes: 0, label }],
|
|
1828
|
+
};
|
|
1829
|
+
}
|
|
1830
|
+
function scoreDefinitionTitleQuality(value) {
|
|
1831
|
+
const normalized = normalizeTitle(value ?? "");
|
|
1832
|
+
if (!normalized) {
|
|
1833
|
+
return Number.NEGATIVE_INFINITY;
|
|
1834
|
+
}
|
|
1835
|
+
let score = normalized.split(/\s+/).filter(Boolean).length;
|
|
1836
|
+
if (/\b\d+\b/.test(normalized)) {
|
|
1837
|
+
score += 6;
|
|
1838
|
+
}
|
|
1839
|
+
if (/[+&]/.test(value ?? "") || /\band\b/.test(normalized)) {
|
|
1840
|
+
score += 4;
|
|
1841
|
+
}
|
|
1842
|
+
if (/^(?:do|work out|workout|habit|routine|task|todo|reminder|alarm)\b/.test(normalized)) {
|
|
1843
|
+
score -= 5;
|
|
1844
|
+
}
|
|
1845
|
+
if (GENERIC_DERIVED_TITLE_RE.test(normalized)) {
|
|
1846
|
+
score -= 6;
|
|
1847
|
+
}
|
|
1848
|
+
return score;
|
|
1849
|
+
}
|
|
1850
|
+
function shouldAdoptPlannerTitle(args) {
|
|
1851
|
+
const plannerTitle = args.plannerTitle?.trim();
|
|
1852
|
+
if (!plannerTitle) {
|
|
1853
|
+
return false;
|
|
1854
|
+
}
|
|
1855
|
+
const currentTitle = args.currentTitle?.trim();
|
|
1856
|
+
if (!currentTitle) {
|
|
1857
|
+
return true;
|
|
1858
|
+
}
|
|
1859
|
+
if (normalizeTitle(currentTitle) === normalizeTitle(plannerTitle)) {
|
|
1860
|
+
return false;
|
|
1861
|
+
}
|
|
1862
|
+
return (scoreDefinitionTitleQuality(plannerTitle) >
|
|
1863
|
+
scoreDefinitionTitleQuality(currentTitle));
|
|
1864
|
+
}
|
|
1865
|
+
function shouldAdoptPlannerCadence(args) {
|
|
1866
|
+
const { currentCadence, plannerCadence } = args;
|
|
1867
|
+
if (!currentCadence) {
|
|
1868
|
+
return true;
|
|
1869
|
+
}
|
|
1870
|
+
if (currentCadence.kind === "times_per_day") {
|
|
1871
|
+
return ((plannerCadence.kind === "times_per_day" &&
|
|
1872
|
+
plannerCadence.slots.length >= currentCadence.slots.length) ||
|
|
1873
|
+
(plannerCadence.kind === "once" && currentCadence.slots.length === 1));
|
|
1874
|
+
}
|
|
1875
|
+
if (currentCadence.kind === "weekly") {
|
|
1876
|
+
return (plannerCadence.kind === "weekly" &&
|
|
1877
|
+
plannerCadence.weekdays.length >= currentCadence.weekdays.length &&
|
|
1878
|
+
(currentCadence.windows.includes("custom")
|
|
1879
|
+
? plannerCadence.windows.includes("custom")
|
|
1880
|
+
: plannerCadence.windows.length >= currentCadence.windows.length));
|
|
1881
|
+
}
|
|
1882
|
+
if (currentCadence.kind === "interval") {
|
|
1883
|
+
return plannerCadence.kind === "interval";
|
|
1884
|
+
}
|
|
1885
|
+
if (currentCadence.kind === "once") {
|
|
1886
|
+
return plannerCadence.kind === "once";
|
|
1887
|
+
}
|
|
1888
|
+
if (currentCadence.kind === "daily") {
|
|
1889
|
+
return (plannerCadence.kind === "times_per_day" ||
|
|
1890
|
+
(plannerCadence.kind === "daily" &&
|
|
1891
|
+
plannerCadence.windows.length >= currentCadence.windows.length));
|
|
1892
|
+
}
|
|
1893
|
+
return true;
|
|
1894
|
+
}
|
|
1895
|
+
function shouldRequireLifeCreateConfirmation(args) {
|
|
1896
|
+
if (args.messageSource === "autonomy") {
|
|
1897
|
+
return false;
|
|
1898
|
+
}
|
|
1899
|
+
if (args.requestKind && args.cadence?.kind === "once") {
|
|
1900
|
+
return false;
|
|
1901
|
+
}
|
|
1902
|
+
return !args.confirmed;
|
|
1903
|
+
}
|
|
1904
|
+
function describeReminderIntensity(intensity) {
|
|
1905
|
+
switch (intensity) {
|
|
1906
|
+
case "minimal":
|
|
1907
|
+
return "minimal";
|
|
1908
|
+
case "normal":
|
|
1909
|
+
return "normal";
|
|
1910
|
+
case "persistent":
|
|
1911
|
+
return "persistent";
|
|
1912
|
+
case "high_priority_only":
|
|
1913
|
+
return "high priority only";
|
|
1914
|
+
}
|
|
1915
|
+
return "normal";
|
|
1916
|
+
}
|
|
1917
|
+
// ── Main action ───────────────────────────────────────
|
|
1918
|
+
export const lifeAction = {
|
|
1919
|
+
name: "LIFE",
|
|
1920
|
+
similes: [
|
|
1921
|
+
"MANAGE_LIFEOPS",
|
|
1922
|
+
"QUERY_LIFEOPS",
|
|
1923
|
+
"CREATE_TASK",
|
|
1924
|
+
"CREATE_HABIT",
|
|
1925
|
+
"CREATE_GOAL",
|
|
1926
|
+
"TRACK_HABIT",
|
|
1927
|
+
"COMPLETE_TASK",
|
|
1928
|
+
"SET_ALARM",
|
|
1929
|
+
"SET_REMINDER",
|
|
1930
|
+
"SNOOZE_REMINDER",
|
|
1931
|
+
"SET_REMINDER_INTENSITY",
|
|
1932
|
+
],
|
|
1933
|
+
description: "Manage the user's personal routines, habits, goals, reminders, alarms, and escalation settings through LifeOps. " +
|
|
1934
|
+
"USE this action for: creating, editing, or deleting tasks, habits, routines, and goals; " +
|
|
1935
|
+
"setting one-off alarms or wake-up reminders like 'set an alarm for 7am' or 'wake me up at 7'; " +
|
|
1936
|
+
"helping the user actually set up follow-through when they say things like 'help me brush my teeth every day', 'i keep forgetting x', or 'help me actually do it'; " +
|
|
1937
|
+
"using LifeOps defaults for common routines when the user gives a natural window instead of an exact clock, like water reminders, stretch breaks, weekday-after-lunch Invisalign checks, or brushing when they wake up and before bed; " +
|
|
1938
|
+
"marking items as complete, skipping, or snoozing them; reviewing goal progress; " +
|
|
1939
|
+
"setting up phone/SMS escalation channels; adjusting reminder frequency or intensity; " +
|
|
1940
|
+
"querying an overview of active LifeOps items. " +
|
|
1941
|
+
"ALWAYS use LIFE for dynamic status questions like 'what's still left for today', 'what do i still need to do today', or 'anything else in my LifeOps list', even when the conversation already mentioned tasks, because their status may have changed after a completion, snooze, or reminder. " +
|
|
1942
|
+
"DO NOT use this action for Gmail inbox triage, email search, drafting or sending emails — use GMAIL_ACTION instead. " +
|
|
1943
|
+
"DO NOT use this action for calendar lookups, scheduling meetings, searching events, or travel itineraries — use CALENDAR_ACTION instead. " +
|
|
1944
|
+
"This action provides the final grounded reply; do not pair it with a speculative REPLY action or fall back to advice-only chat when the user wants real LifeOps follow-through.",
|
|
1945
|
+
suppressPostActionContinuation: true,
|
|
1946
|
+
validate: async (runtime, message) => {
|
|
1947
|
+
return hasLifeOpsAccess(runtime, message);
|
|
1948
|
+
},
|
|
1949
|
+
handler: async (runtime, message, state, options) => {
|
|
1950
|
+
if (!(await hasLifeOpsAccess(runtime, message))) {
|
|
1951
|
+
const fallback = "Life management is restricted to the owner, explicitly granted users, and the agent.";
|
|
1952
|
+
return {
|
|
1953
|
+
success: false,
|
|
1954
|
+
text: await renderLifeActionReply({
|
|
1955
|
+
runtime,
|
|
1956
|
+
message,
|
|
1957
|
+
state,
|
|
1958
|
+
intent: normalizeLifeInputText(messageText(message)),
|
|
1959
|
+
scenario: "reply_only",
|
|
1960
|
+
fallback,
|
|
1961
|
+
context: {
|
|
1962
|
+
reason: "access_restricted",
|
|
1963
|
+
},
|
|
1964
|
+
}),
|
|
1965
|
+
};
|
|
1966
|
+
}
|
|
1967
|
+
const rawParams = options?.parameters;
|
|
1968
|
+
const params = rawParams ?? {};
|
|
1969
|
+
const currentText = normalizeLifeInputText(messageText(message));
|
|
1970
|
+
const details = params.details;
|
|
1971
|
+
const deferredDraft = latestDeferredLifeDraft(state);
|
|
1972
|
+
const turnsSinceDraft = deferredDraft != null
|
|
1973
|
+
? (countTurnsSinceLatestDeferredLifeDraft(state) ?? 0) + 1
|
|
1974
|
+
: undefined;
|
|
1975
|
+
const draftExpiryReason = deferredLifeDraftExpiryReason({
|
|
1976
|
+
draft: deferredDraft,
|
|
1977
|
+
turnsSinceDraft,
|
|
1978
|
+
});
|
|
1979
|
+
if (draftExpiryReason && looksLikeDeferredLifeConfirmation(currentText)) {
|
|
1980
|
+
const fallback = "That LifeOps draft expired. Please restate it and I'll preview it again.";
|
|
1981
|
+
return {
|
|
1982
|
+
success: false,
|
|
1983
|
+
text: await renderLifeActionReply({
|
|
1984
|
+
runtime,
|
|
1985
|
+
message,
|
|
1986
|
+
state,
|
|
1987
|
+
intent: currentText,
|
|
1988
|
+
scenario: "reply_only",
|
|
1989
|
+
fallback,
|
|
1990
|
+
context: {
|
|
1991
|
+
reason: "draft_expired",
|
|
1992
|
+
},
|
|
1993
|
+
}),
|
|
1994
|
+
};
|
|
1995
|
+
}
|
|
1996
|
+
const deferredDraftFollowupMode = deferredDraft
|
|
1997
|
+
? await extractDeferredLifeDraftFollowupWithLlm({
|
|
1998
|
+
runtime,
|
|
1999
|
+
message,
|
|
2000
|
+
state,
|
|
2001
|
+
currentText,
|
|
2002
|
+
draft: deferredDraft,
|
|
2003
|
+
})
|
|
2004
|
+
: null;
|
|
2005
|
+
if (deferredDraftFollowupMode === "cancel") {
|
|
2006
|
+
const fallback = "Okay, I won't save it yet.";
|
|
2007
|
+
return {
|
|
2008
|
+
success: true,
|
|
2009
|
+
text: await renderLifeActionReply({
|
|
2010
|
+
runtime,
|
|
2011
|
+
message,
|
|
2012
|
+
state,
|
|
2013
|
+
intent: currentText,
|
|
2014
|
+
scenario: "reply_only",
|
|
2015
|
+
fallback,
|
|
2016
|
+
context: {
|
|
2017
|
+
reason: "draft_cancelled",
|
|
2018
|
+
draft: deferredDraft
|
|
2019
|
+
? {
|
|
2020
|
+
operation: deferredDraft.operation,
|
|
2021
|
+
title: deferredDraft.request.title,
|
|
2022
|
+
}
|
|
2023
|
+
: null,
|
|
2024
|
+
},
|
|
2025
|
+
}),
|
|
2026
|
+
data: {
|
|
2027
|
+
actionName: "LIFE",
|
|
2028
|
+
noop: true,
|
|
2029
|
+
},
|
|
2030
|
+
};
|
|
2031
|
+
}
|
|
2032
|
+
const deferredDraftReuseMode = resolveDeferredLifeDraftReuseMode({
|
|
2033
|
+
currentText,
|
|
2034
|
+
details,
|
|
2035
|
+
draft: deferredDraft,
|
|
2036
|
+
explicitAction: params.action,
|
|
2037
|
+
paramsIntent: params.intent,
|
|
2038
|
+
target: params.target,
|
|
2039
|
+
title: params.title,
|
|
2040
|
+
llmMode: deferredDraftFollowupMode,
|
|
2041
|
+
turnsSinceDraft,
|
|
2042
|
+
});
|
|
2043
|
+
const reuseDeferredDraft = deferredDraftReuseMode !== null;
|
|
2044
|
+
const intent = reuseDeferredDraft
|
|
2045
|
+
? deferredDraftReuseMode === "confirm"
|
|
2046
|
+
? normalizeLifeInputText(deferredDraft?.intent ?? "")
|
|
2047
|
+
: normalizeLifeInputText(params.intent?.trim() ?? currentText)
|
|
2048
|
+
: normalizeLifeInputText(params.intent?.trim() ?? currentText);
|
|
2049
|
+
if (!intent) {
|
|
2050
|
+
const fallback = "Tell me what you want me to do.";
|
|
2051
|
+
return {
|
|
2052
|
+
success: false,
|
|
2053
|
+
text: await renderLifeActionReply({
|
|
2054
|
+
runtime,
|
|
2055
|
+
message,
|
|
2056
|
+
state,
|
|
2057
|
+
intent: currentText,
|
|
2058
|
+
scenario: "reply_only",
|
|
2059
|
+
fallback,
|
|
2060
|
+
context: {
|
|
2061
|
+
reason: "missing_intent",
|
|
2062
|
+
},
|
|
2063
|
+
}),
|
|
2064
|
+
};
|
|
2065
|
+
}
|
|
2066
|
+
const explicitOperation = params.action
|
|
2067
|
+
? ACTION_TO_OPERATION[params.action]
|
|
2068
|
+
: undefined;
|
|
2069
|
+
const operationPlan = reuseDeferredDraft && deferredDraft
|
|
2070
|
+
? {
|
|
2071
|
+
confidence: 1,
|
|
2072
|
+
missing: [],
|
|
2073
|
+
operation: deferredDraft.operation,
|
|
2074
|
+
shouldAct: true,
|
|
2075
|
+
}
|
|
2076
|
+
: await resolveLifeOperationPlan({
|
|
2077
|
+
runtime,
|
|
2078
|
+
message,
|
|
2079
|
+
state,
|
|
2080
|
+
intent,
|
|
2081
|
+
explicitOperation,
|
|
2082
|
+
});
|
|
2083
|
+
const forceCreateExecution = shouldForceLifeCreateExecution({
|
|
2084
|
+
intent,
|
|
2085
|
+
missing: operationPlan.missing,
|
|
2086
|
+
operation: operationPlan.operation,
|
|
2087
|
+
details,
|
|
2088
|
+
title: params.title,
|
|
2089
|
+
});
|
|
2090
|
+
if (!operationPlan.shouldAct && !forceCreateExecution) {
|
|
2091
|
+
const fallback = buildLifeClarificationFallback({
|
|
2092
|
+
missing: operationPlan.missing,
|
|
2093
|
+
operation: operationPlan.operation,
|
|
2094
|
+
});
|
|
2095
|
+
return {
|
|
2096
|
+
success: true,
|
|
2097
|
+
text: await renderLifeActionReply({
|
|
2098
|
+
runtime,
|
|
2099
|
+
message,
|
|
2100
|
+
state,
|
|
2101
|
+
intent,
|
|
2102
|
+
scenario: operationPlan.operation === "create_goal"
|
|
2103
|
+
? "clarify_create_goal"
|
|
2104
|
+
: "clarify_create_definition",
|
|
2105
|
+
fallback,
|
|
2106
|
+
context: {
|
|
2107
|
+
missing: operationPlan.missing,
|
|
2108
|
+
operation: operationPlan.operation,
|
|
2109
|
+
},
|
|
2110
|
+
}),
|
|
2111
|
+
data: {
|
|
2112
|
+
actionName: "LIFE",
|
|
2113
|
+
noop: true,
|
|
2114
|
+
suggestedOperation: operationPlan.operation,
|
|
2115
|
+
},
|
|
2116
|
+
};
|
|
2117
|
+
}
|
|
2118
|
+
const operation = (forceCreateExecution ? "create_definition" : operationPlan.operation) ??
|
|
2119
|
+
classifyIntent(intent);
|
|
2120
|
+
const service = new LifeOpsService(runtime);
|
|
2121
|
+
const domain = detailString(details, "domain");
|
|
2122
|
+
const ownership = requestedOwnership(domain);
|
|
2123
|
+
const chatText = intent;
|
|
2124
|
+
const targetName = params.target ?? params.title;
|
|
2125
|
+
const createConfirmed = deferredDraftReuseMode === "confirm" ||
|
|
2126
|
+
detailBoolean(details, "confirmed") === true;
|
|
2127
|
+
try {
|
|
2128
|
+
const createDefinition = async () => {
|
|
2129
|
+
const deferredDefinitionDraft = reuseDeferredDraft && deferredDraft?.operation === "create_definition"
|
|
2130
|
+
? deferredDraft
|
|
2131
|
+
: null;
|
|
2132
|
+
const editingDeferredDefinitionDraft = deferredDraftReuseMode === "edit" &&
|
|
2133
|
+
deferredDefinitionDraft?.operation === "create_definition";
|
|
2134
|
+
const explicitCadenceDetail = normalizeCadenceDetail(detailObject(details, "cadence"));
|
|
2135
|
+
const fallbackTitle = deferredDefinitionDraft?.request.title ?? null;
|
|
2136
|
+
let title = editingDeferredDefinitionDraft
|
|
2137
|
+
? (params.title ?? fallbackTitle)
|
|
2138
|
+
: (fallbackTitle ?? params.title ?? null);
|
|
2139
|
+
const fallbackCadence = deferredDefinitionDraft?.request.cadence;
|
|
2140
|
+
let cadence = editingDeferredDefinitionDraft
|
|
2141
|
+
? (explicitCadenceDetail ?? fallbackCadence ?? undefined)
|
|
2142
|
+
: (fallbackCadence ?? explicitCadenceDetail ?? undefined);
|
|
2143
|
+
let windowPolicy = editingDeferredDefinitionDraft
|
|
2144
|
+
? (detailObject(details, "windowPolicy") ?? deferredDefinitionDraft?.request.windowPolicy)
|
|
2145
|
+
: (deferredDefinitionDraft?.request.windowPolicy ??
|
|
2146
|
+
detailObject(details, "windowPolicy"));
|
|
2147
|
+
const explicitPriority = detailNumber(details, "priority");
|
|
2148
|
+
const explicitDescription = detailString(details, "description");
|
|
2149
|
+
const explicitMetadata = detailObject(details, "metadata");
|
|
2150
|
+
// Track whether cadence/title came from explicit high-confidence
|
|
2151
|
+
// sources so the planner only fills genuine gaps.
|
|
2152
|
+
const hadExplicitCadence = Boolean((editingDeferredDefinitionDraft
|
|
2153
|
+
? (explicitCadenceDetail ??
|
|
2154
|
+
deferredDefinitionDraft?.request.cadence)
|
|
2155
|
+
: deferredDefinitionDraft?.request.cadence) ??
|
|
2156
|
+
explicitCadenceDetail);
|
|
2157
|
+
const hadExplicitTitle = Boolean((editingDeferredDefinitionDraft
|
|
2158
|
+
? params.title
|
|
2159
|
+
: deferredDefinitionDraft?.request.title) ?? params.title);
|
|
2160
|
+
// ── LLM parameter enhancement (fills gaps) ────────
|
|
2161
|
+
// Skip when reusing a confirmed deferred draft — the user already
|
|
2162
|
+
// approved those values.
|
|
2163
|
+
let llmPlan = null;
|
|
2164
|
+
let llmDescription;
|
|
2165
|
+
let llmPriority;
|
|
2166
|
+
let llmRequestKind = null;
|
|
2167
|
+
if (!deferredDefinitionDraft || editingDeferredDefinitionDraft) {
|
|
2168
|
+
llmPlan = await extractTaskCreatePlanWithLlm({
|
|
2169
|
+
runtime,
|
|
2170
|
+
intent,
|
|
2171
|
+
state: state ?? undefined,
|
|
2172
|
+
message: message ?? undefined,
|
|
2173
|
+
});
|
|
2174
|
+
const shouldHonorPlannerResponse = llmPlan?.mode === "respond" &&
|
|
2175
|
+
Boolean(llmPlan.response) &&
|
|
2176
|
+
!editingDeferredDefinitionDraft &&
|
|
2177
|
+
!params.title &&
|
|
2178
|
+
!explicitCadenceDetail &&
|
|
2179
|
+
!detailString(details, "description") &&
|
|
2180
|
+
!detailString(details, "goalId") &&
|
|
2181
|
+
!detailString(details, "goalTitle") &&
|
|
2182
|
+
!detailString(details, "kind");
|
|
2183
|
+
if (shouldHonorPlannerResponse && llmPlan?.response) {
|
|
2184
|
+
return {
|
|
2185
|
+
success: true,
|
|
2186
|
+
text: llmPlan.response,
|
|
2187
|
+
};
|
|
2188
|
+
}
|
|
2189
|
+
if (llmPlan) {
|
|
2190
|
+
llmRequestKind = llmPlan.requestKind;
|
|
2191
|
+
if (!hadExplicitTitle &&
|
|
2192
|
+
shouldAdoptPlannerTitle({
|
|
2193
|
+
currentTitle: title,
|
|
2194
|
+
plannerTitle: llmPlan.title,
|
|
2195
|
+
})) {
|
|
2196
|
+
title = llmPlan.title;
|
|
2197
|
+
}
|
|
2198
|
+
if ((editingDeferredDefinitionDraft || !hadExplicitCadence) &&
|
|
2199
|
+
llmPlan.cadenceKind) {
|
|
2200
|
+
const llmCadenceTimeZone = normalizeLifeTimeZoneToken(detailString(details, "timeZone") ??
|
|
2201
|
+
llmPlan.timeZone ??
|
|
2202
|
+
deferredDefinitionDraft?.request.timezone ??
|
|
2203
|
+
windowPolicy?.timezone) ?? extractLifeTimeZoneFromText(intent);
|
|
2204
|
+
const llmCadence = buildCadenceFromLlmParams(llmPlan, {
|
|
2205
|
+
intent,
|
|
2206
|
+
timeZone: llmCadenceTimeZone ?? undefined,
|
|
2207
|
+
});
|
|
2208
|
+
if (llmCadence &&
|
|
2209
|
+
shouldAdoptPlannerCadence({
|
|
2210
|
+
currentCadence: cadence,
|
|
2211
|
+
plannerCadence: llmCadence.cadence,
|
|
2212
|
+
})) {
|
|
2213
|
+
cadence = llmCadence.cadence;
|
|
2214
|
+
windowPolicy = llmCadence.windowPolicy ?? windowPolicy;
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
if (!explicitDescription && llmPlan.description) {
|
|
2218
|
+
llmDescription = llmPlan.description;
|
|
2219
|
+
}
|
|
2220
|
+
if (explicitPriority === undefined && llmPlan.priority) {
|
|
2221
|
+
llmPriority = llmPlan.priority;
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
const resolvedTimeZone = normalizeLifeTimeZoneToken(detailString(details, "timeZone") ??
|
|
2226
|
+
llmPlan?.timeZone ??
|
|
2227
|
+
deferredDefinitionDraft?.request.timezone ??
|
|
2228
|
+
windowPolicy?.timezone) ?? extractLifeTimeZoneFromText(intent);
|
|
2229
|
+
const timedRequestKind = llmRequestKind;
|
|
2230
|
+
const nativeAppleMetadata = timedRequestKind && cadence?.kind === "once"
|
|
2231
|
+
? buildNativeAppleReminderMetadata({
|
|
2232
|
+
kind: timedRequestKind,
|
|
2233
|
+
source: "llm",
|
|
2234
|
+
})
|
|
2235
|
+
: undefined;
|
|
2236
|
+
const definitionMetadata = editingDeferredDefinitionDraft
|
|
2237
|
+
? mergeMetadataRecords(deferredDefinitionDraft?.request.metadata, mergeMetadataRecords(explicitMetadata, nativeAppleMetadata))
|
|
2238
|
+
: (deferredDefinitionDraft?.request.metadata ??
|
|
2239
|
+
mergeMetadataRecords(explicitMetadata, nativeAppleMetadata));
|
|
2240
|
+
if (!title) {
|
|
2241
|
+
const fallback = "What should I call it?";
|
|
2242
|
+
return {
|
|
2243
|
+
success: false,
|
|
2244
|
+
text: await renderLifeActionReply({
|
|
2245
|
+
runtime,
|
|
2246
|
+
message,
|
|
2247
|
+
state,
|
|
2248
|
+
intent,
|
|
2249
|
+
scenario: "clarify_create_definition",
|
|
2250
|
+
fallback,
|
|
2251
|
+
context: {
|
|
2252
|
+
missing: ["title"],
|
|
2253
|
+
operation: "create_definition",
|
|
2254
|
+
},
|
|
2255
|
+
}),
|
|
2256
|
+
};
|
|
2257
|
+
}
|
|
2258
|
+
if (!cadence) {
|
|
2259
|
+
const fallback = "When should it happen?";
|
|
2260
|
+
return {
|
|
2261
|
+
success: false,
|
|
2262
|
+
text: await renderLifeActionReply({
|
|
2263
|
+
runtime,
|
|
2264
|
+
message,
|
|
2265
|
+
state,
|
|
2266
|
+
intent,
|
|
2267
|
+
scenario: "clarify_create_definition",
|
|
2268
|
+
fallback,
|
|
2269
|
+
context: {
|
|
2270
|
+
missing: ["schedule"],
|
|
2271
|
+
operation: "create_definition",
|
|
2272
|
+
},
|
|
2273
|
+
}),
|
|
2274
|
+
};
|
|
2275
|
+
}
|
|
2276
|
+
const kind = (editingDeferredDefinitionDraft
|
|
2277
|
+
? detailString(details, "kind")
|
|
2278
|
+
: deferredDefinitionDraft?.request.kind) ??
|
|
2279
|
+
detailString(details, "kind") ??
|
|
2280
|
+
"habit";
|
|
2281
|
+
const definitionDraft = {
|
|
2282
|
+
intent,
|
|
2283
|
+
operation: "create_definition",
|
|
2284
|
+
createdAt: editingDeferredDefinitionDraft
|
|
2285
|
+
? Date.now()
|
|
2286
|
+
: (deferredDefinitionDraft?.createdAt ?? Date.now()),
|
|
2287
|
+
request: {
|
|
2288
|
+
cadence,
|
|
2289
|
+
description: explicitDescription ??
|
|
2290
|
+
llmDescription ??
|
|
2291
|
+
(editingDeferredDefinitionDraft
|
|
2292
|
+
? deferredDefinitionDraft?.request.description
|
|
2293
|
+
: undefined),
|
|
2294
|
+
goalRef: detailString(details, "goalId") ??
|
|
2295
|
+
detailString(details, "goalTitle") ??
|
|
2296
|
+
deferredDefinitionDraft?.request.goalRef ??
|
|
2297
|
+
undefined,
|
|
2298
|
+
kind,
|
|
2299
|
+
priority: explicitPriority ??
|
|
2300
|
+
llmPriority ??
|
|
2301
|
+
deferredDefinitionDraft?.request.priority,
|
|
2302
|
+
progressionRule: detailObject(details, "progressionRule") ??
|
|
2303
|
+
deferredDefinitionDraft?.request.progressionRule,
|
|
2304
|
+
reminderPlan: detailObject(details, "reminderPlan") ??
|
|
2305
|
+
deferredDefinitionDraft?.request.reminderPlan ??
|
|
2306
|
+
buildDefaultReminderPlan(`${title} reminder`),
|
|
2307
|
+
timezone: extractLifeTimeZoneFromText(intent) ??
|
|
2308
|
+
normalizeLifeTimeZoneToken(llmPlan?.timeZone) ??
|
|
2309
|
+
normalizeLifeTimeZoneToken(resolvedTimeZone ?? deferredDefinitionDraft?.request.timezone) ??
|
|
2310
|
+
resolvedTimeZone ??
|
|
2311
|
+
deferredDefinitionDraft?.request.timezone,
|
|
2312
|
+
title,
|
|
2313
|
+
metadata: definitionMetadata,
|
|
2314
|
+
windowPolicy,
|
|
2315
|
+
websiteAccess: detailObject(details, "websiteAccess") ?? deferredDefinitionDraft?.request.websiteAccess,
|
|
2316
|
+
},
|
|
2317
|
+
};
|
|
2318
|
+
if (shouldRequireLifeCreateConfirmation({
|
|
2319
|
+
confirmed: createConfirmed,
|
|
2320
|
+
messageSource: typeof message.content?.source === "string"
|
|
2321
|
+
? message.content.source
|
|
2322
|
+
: undefined,
|
|
2323
|
+
requestKind: timedRequestKind,
|
|
2324
|
+
cadence: definitionDraft.request.cadence,
|
|
2325
|
+
})) {
|
|
2326
|
+
const fallback = `I can save this as a ${definitionDraft.request.kind} named "${definitionDraft.request.title}" that happens ${summarizeCadence(definitionDraft.request.cadence)}. Confirm and I'll save it, or tell me what to change.`;
|
|
2327
|
+
return {
|
|
2328
|
+
success: true,
|
|
2329
|
+
text: await renderLifeActionReply({
|
|
2330
|
+
runtime,
|
|
2331
|
+
message,
|
|
2332
|
+
state,
|
|
2333
|
+
intent,
|
|
2334
|
+
scenario: "preview_definition",
|
|
2335
|
+
fallback,
|
|
2336
|
+
context: {
|
|
2337
|
+
draft: definitionDraft.request,
|
|
2338
|
+
requestKind: timedRequestKind,
|
|
2339
|
+
},
|
|
2340
|
+
}),
|
|
2341
|
+
data: {
|
|
2342
|
+
actionName: "LIFE",
|
|
2343
|
+
deferred: true,
|
|
2344
|
+
lifeDraft: definitionDraft,
|
|
2345
|
+
preview: {
|
|
2346
|
+
cadence: definitionDraft.request.cadence,
|
|
2347
|
+
kind: definitionDraft.request.kind,
|
|
2348
|
+
title: definitionDraft.request.title,
|
|
2349
|
+
},
|
|
2350
|
+
},
|
|
2351
|
+
};
|
|
2352
|
+
}
|
|
2353
|
+
const resolvedGoal = definitionDraft.request.goalRef
|
|
2354
|
+
? await resolveGoal(service, definitionDraft.request.goalRef, domain)
|
|
2355
|
+
: null;
|
|
2356
|
+
const created = await service.createDefinition({
|
|
2357
|
+
ownership,
|
|
2358
|
+
kind: definitionDraft.request.kind,
|
|
2359
|
+
title: definitionDraft.request.title,
|
|
2360
|
+
description: definitionDraft.request.description,
|
|
2361
|
+
originalIntent: definitionDraft.intent || definitionDraft.request.title,
|
|
2362
|
+
cadence: definitionDraft.request.cadence,
|
|
2363
|
+
timezone: extractLifeTimeZoneFromText(definitionDraft.intent) ??
|
|
2364
|
+
normalizeLifeTimeZoneToken(definitionDraft.request.timezone) ??
|
|
2365
|
+
definitionDraft.request.timezone,
|
|
2366
|
+
priority: definitionDraft.request.priority,
|
|
2367
|
+
windowPolicy: definitionDraft.request.windowPolicy,
|
|
2368
|
+
progressionRule: definitionDraft.request.progressionRule,
|
|
2369
|
+
reminderPlan: definitionDraft.request.reminderPlan,
|
|
2370
|
+
metadata: definitionDraft.request.metadata,
|
|
2371
|
+
websiteAccess: definitionDraft.request.websiteAccess,
|
|
2372
|
+
goalId: resolvedGoal?.goal.id ?? null,
|
|
2373
|
+
source: "chat",
|
|
2374
|
+
});
|
|
2375
|
+
const fallback = `Saved "${created.definition.title}" as ${summarizeCadence(created.definition.cadence)}.`;
|
|
2376
|
+
return {
|
|
2377
|
+
success: true,
|
|
2378
|
+
text: await renderLifeActionReply({
|
|
2379
|
+
runtime,
|
|
2380
|
+
message,
|
|
2381
|
+
state,
|
|
2382
|
+
intent,
|
|
2383
|
+
scenario: "saved_definition",
|
|
2384
|
+
fallback,
|
|
2385
|
+
context: {
|
|
2386
|
+
created: {
|
|
2387
|
+
title: created.definition.title,
|
|
2388
|
+
cadence: created.definition.cadence,
|
|
2389
|
+
},
|
|
2390
|
+
requestKind: timedRequestKind,
|
|
2391
|
+
},
|
|
2392
|
+
}),
|
|
2393
|
+
data: toActionData(created),
|
|
2394
|
+
};
|
|
2395
|
+
};
|
|
2396
|
+
// ── Queries ─────────────────────────────────────
|
|
2397
|
+
if (operation === "query_calendar_today" ||
|
|
2398
|
+
operation === "query_calendar_next") {
|
|
2399
|
+
const google = await getGoogleCapabilityStatus(service);
|
|
2400
|
+
if (!google.hasCalendarRead) {
|
|
2401
|
+
return {
|
|
2402
|
+
success: false,
|
|
2403
|
+
text: calendarReadUnavailableMessage(google),
|
|
2404
|
+
};
|
|
2405
|
+
}
|
|
2406
|
+
if (operation === "query_calendar_next") {
|
|
2407
|
+
const ctx = await service.getNextCalendarEventContext(INTERNAL_URL);
|
|
2408
|
+
return {
|
|
2409
|
+
success: true,
|
|
2410
|
+
text: formatNextEventContext(ctx),
|
|
2411
|
+
data: toActionData(ctx),
|
|
2412
|
+
};
|
|
2413
|
+
}
|
|
2414
|
+
const timeRangeHint = intent.toLowerCase();
|
|
2415
|
+
const range = /\btomorrow\b/.test(timeRangeHint)
|
|
2416
|
+
? dayRange(1)
|
|
2417
|
+
: /\b(this week|week)\b/.test(timeRangeHint)
|
|
2418
|
+
? weekRange()
|
|
2419
|
+
: dayRange(0);
|
|
2420
|
+
const label = /\btomorrow\b/.test(timeRangeHint)
|
|
2421
|
+
? "tomorrow"
|
|
2422
|
+
: /\b(this week|week)\b/.test(timeRangeHint)
|
|
2423
|
+
? "this week"
|
|
2424
|
+
: "today";
|
|
2425
|
+
const feed = await service.getCalendarFeed(INTERNAL_URL, {
|
|
2426
|
+
timeMin: range.timeMin,
|
|
2427
|
+
timeMax: range.timeMax,
|
|
2428
|
+
});
|
|
2429
|
+
return {
|
|
2430
|
+
success: true,
|
|
2431
|
+
text: formatCalendarFeed(feed, label),
|
|
2432
|
+
data: toActionData(feed),
|
|
2433
|
+
};
|
|
2434
|
+
}
|
|
2435
|
+
if (operation === "query_email") {
|
|
2436
|
+
const limit = detailNumber(details, "limit") ?? 10;
|
|
2437
|
+
return ((await gmailAction.handler?.(runtime, message, state, {
|
|
2438
|
+
parameters: {
|
|
2439
|
+
subaction: "triage",
|
|
2440
|
+
intent,
|
|
2441
|
+
details: {
|
|
2442
|
+
...details,
|
|
2443
|
+
maxResults: limit,
|
|
2444
|
+
},
|
|
2445
|
+
},
|
|
2446
|
+
})) ?? {
|
|
2447
|
+
success: false,
|
|
2448
|
+
text: "I couldn't route that Gmail request yet.",
|
|
2449
|
+
});
|
|
2450
|
+
}
|
|
2451
|
+
if (operation === "query_overview") {
|
|
2452
|
+
const overview = await service.getOverview();
|
|
2453
|
+
const userQuery = messageText(message) || intent || "overview";
|
|
2454
|
+
const fallback = formatOverviewForQuery(overview, userQuery);
|
|
2455
|
+
return {
|
|
2456
|
+
success: true,
|
|
2457
|
+
text: await renderLifeActionReply({
|
|
2458
|
+
runtime,
|
|
2459
|
+
message,
|
|
2460
|
+
state,
|
|
2461
|
+
intent: userQuery,
|
|
2462
|
+
scenario: "overview",
|
|
2463
|
+
fallback,
|
|
2464
|
+
context: {
|
|
2465
|
+
summary: overview.owner.summary,
|
|
2466
|
+
occurrenceTitles: overview.owner.occurrences
|
|
2467
|
+
.slice(0, 6)
|
|
2468
|
+
.map((occurrence) => occurrence.title),
|
|
2469
|
+
goalTitles: overview.owner.goals
|
|
2470
|
+
.slice(0, 3)
|
|
2471
|
+
.map((goal) => goal.title),
|
|
2472
|
+
},
|
|
2473
|
+
}),
|
|
2474
|
+
data: toActionData(overview),
|
|
2475
|
+
};
|
|
2476
|
+
}
|
|
2477
|
+
// ── Mutations ───────────────────────────────────
|
|
2478
|
+
if (operation === "create_definition") {
|
|
2479
|
+
return await createDefinition();
|
|
2480
|
+
}
|
|
2481
|
+
if (operation === "create_goal") {
|
|
2482
|
+
const deferredGoalDraft = reuseDeferredDraft && deferredDraft?.operation === "create_goal"
|
|
2483
|
+
? deferredDraft
|
|
2484
|
+
: null;
|
|
2485
|
+
const editingDeferredGoalDraft = deferredDraftReuseMode === "edit" &&
|
|
2486
|
+
deferredGoalDraft?.operation === "create_goal";
|
|
2487
|
+
const explicitDescription = detailString(details, "description");
|
|
2488
|
+
const explicitCadence = normalizeCadenceDetail(detailObject(details, "cadence"));
|
|
2489
|
+
const explicitSuccessCriteria = detailObject(details, "successCriteria");
|
|
2490
|
+
const explicitSupportStrategy = detailObject(details, "supportStrategy");
|
|
2491
|
+
const explicitMetadata = detailObject(details, "metadata");
|
|
2492
|
+
let title = editingDeferredGoalDraft
|
|
2493
|
+
? (params.title ?? deferredGoalDraft?.request.title ?? null)
|
|
2494
|
+
: (deferredGoalDraft?.request.title ?? params.title ?? null);
|
|
2495
|
+
let description = editingDeferredGoalDraft
|
|
2496
|
+
? (explicitDescription ?? deferredGoalDraft?.request.description)
|
|
2497
|
+
: (deferredGoalDraft?.request.description ?? explicitDescription);
|
|
2498
|
+
let cadence = editingDeferredGoalDraft
|
|
2499
|
+
? (explicitCadence ?? deferredGoalDraft?.request.cadence)
|
|
2500
|
+
: (deferredGoalDraft?.request.cadence ?? explicitCadence);
|
|
2501
|
+
let successCriteria = editingDeferredGoalDraft
|
|
2502
|
+
? (explicitSuccessCriteria ??
|
|
2503
|
+
deferredGoalDraft?.request.successCriteria)
|
|
2504
|
+
: (deferredGoalDraft?.request.successCriteria ??
|
|
2505
|
+
explicitSuccessCriteria);
|
|
2506
|
+
let supportStrategy = editingDeferredGoalDraft
|
|
2507
|
+
? (explicitSupportStrategy ??
|
|
2508
|
+
deferredGoalDraft?.request.supportStrategy)
|
|
2509
|
+
: (deferredGoalDraft?.request.supportStrategy ??
|
|
2510
|
+
explicitSupportStrategy);
|
|
2511
|
+
let goalMetadata = editingDeferredGoalDraft
|
|
2512
|
+
? (explicitMetadata ?? deferredGoalDraft?.request.metadata)
|
|
2513
|
+
: (deferredGoalDraft?.request.metadata ?? explicitMetadata);
|
|
2514
|
+
let evaluationSummary = null;
|
|
2515
|
+
if (!deferredGoalDraft || editingDeferredGoalDraft) {
|
|
2516
|
+
const llmPlan = await extractGoalCreatePlanWithLlm({
|
|
2517
|
+
runtime,
|
|
2518
|
+
intent,
|
|
2519
|
+
state: state ?? undefined,
|
|
2520
|
+
message: message ?? undefined,
|
|
2521
|
+
});
|
|
2522
|
+
if (!title && llmPlan.title) {
|
|
2523
|
+
title = llmPlan.title;
|
|
2524
|
+
}
|
|
2525
|
+
if (!description && llmPlan.description) {
|
|
2526
|
+
description = llmPlan.description;
|
|
2527
|
+
}
|
|
2528
|
+
if (!cadence && llmPlan.cadence) {
|
|
2529
|
+
cadence = llmPlan.cadence;
|
|
2530
|
+
}
|
|
2531
|
+
if (!successCriteria && llmPlan.successCriteria) {
|
|
2532
|
+
successCriteria = llmPlan.successCriteria;
|
|
2533
|
+
}
|
|
2534
|
+
if (!supportStrategy && llmPlan.supportStrategy) {
|
|
2535
|
+
supportStrategy = llmPlan.supportStrategy;
|
|
2536
|
+
}
|
|
2537
|
+
evaluationSummary = llmPlan.evaluationSummary;
|
|
2538
|
+
if (llmPlan.groundingState === "grounded" &&
|
|
2539
|
+
llmPlan.successCriteria &&
|
|
2540
|
+
title) {
|
|
2541
|
+
goalMetadata = mergeGoalMetadataWithGrounding({
|
|
2542
|
+
metadata: {
|
|
2543
|
+
...(goalMetadata ?? {}),
|
|
2544
|
+
source: "chat",
|
|
2545
|
+
originalIntent: intent,
|
|
2546
|
+
},
|
|
2547
|
+
nowIso: new Date().toISOString(),
|
|
2548
|
+
plan: llmPlan,
|
|
2549
|
+
});
|
|
2550
|
+
}
|
|
2551
|
+
if (llmPlan.groundingState !== "grounded" ||
|
|
2552
|
+
!title ||
|
|
2553
|
+
!successCriteria ||
|
|
2554
|
+
!supportStrategy) {
|
|
2555
|
+
return {
|
|
2556
|
+
success: true,
|
|
2557
|
+
text: llmPlan.response ??
|
|
2558
|
+
"What would count as success for that goal, and over what time window?",
|
|
2559
|
+
data: {
|
|
2560
|
+
actionName: "LIFE",
|
|
2561
|
+
noop: true,
|
|
2562
|
+
suggestedOperation: "create_goal",
|
|
2563
|
+
},
|
|
2564
|
+
};
|
|
2565
|
+
}
|
|
2566
|
+
}
|
|
2567
|
+
if (!title)
|
|
2568
|
+
return {
|
|
2569
|
+
success: false,
|
|
2570
|
+
text: await renderLifeActionReply({
|
|
2571
|
+
runtime,
|
|
2572
|
+
message,
|
|
2573
|
+
state,
|
|
2574
|
+
intent,
|
|
2575
|
+
scenario: "clarify_create_goal",
|
|
2576
|
+
fallback: "What are you trying to achieve?",
|
|
2577
|
+
context: {
|
|
2578
|
+
missing: ["title"],
|
|
2579
|
+
operation: "create_goal",
|
|
2580
|
+
},
|
|
2581
|
+
}),
|
|
2582
|
+
};
|
|
2583
|
+
const goalDraft = deferredGoalDraft ?? {
|
|
2584
|
+
intent,
|
|
2585
|
+
operation: "create_goal",
|
|
2586
|
+
createdAt: Date.now(),
|
|
2587
|
+
request: {
|
|
2588
|
+
cadence,
|
|
2589
|
+
description,
|
|
2590
|
+
metadata: goalMetadata,
|
|
2591
|
+
successCriteria,
|
|
2592
|
+
supportStrategy,
|
|
2593
|
+
title,
|
|
2594
|
+
},
|
|
2595
|
+
};
|
|
2596
|
+
if (shouldRequireLifeCreateConfirmation({
|
|
2597
|
+
confirmed: createConfirmed,
|
|
2598
|
+
messageSource: typeof message.content?.source === "string"
|
|
2599
|
+
? message.content.source
|
|
2600
|
+
: undefined,
|
|
2601
|
+
})) {
|
|
2602
|
+
const fallback = evaluationSummary
|
|
2603
|
+
? `I can save "${goalDraft.request.title}" as a goal. Success looks like this: ${evaluationSummary} Confirm and I'll save it, or tell me what to change.`
|
|
2604
|
+
: `I can save this goal as "${goalDraft.request.title}". Confirm and I'll save it, or tell me what to change.`;
|
|
2605
|
+
return {
|
|
2606
|
+
success: true,
|
|
2607
|
+
text: await renderLifeActionReply({
|
|
2608
|
+
runtime,
|
|
2609
|
+
message,
|
|
2610
|
+
state,
|
|
2611
|
+
intent,
|
|
2612
|
+
scenario: "preview_goal",
|
|
2613
|
+
fallback,
|
|
2614
|
+
context: {
|
|
2615
|
+
draft: goalDraft.request,
|
|
2616
|
+
groundingSummary: evaluationSummary,
|
|
2617
|
+
},
|
|
2618
|
+
}),
|
|
2619
|
+
data: {
|
|
2620
|
+
actionName: "LIFE",
|
|
2621
|
+
deferred: true,
|
|
2622
|
+
lifeDraft: goalDraft,
|
|
2623
|
+
preview: {
|
|
2624
|
+
title: goalDraft.request.title,
|
|
2625
|
+
},
|
|
2626
|
+
},
|
|
2627
|
+
};
|
|
2628
|
+
}
|
|
2629
|
+
const created = await service.createGoal({
|
|
2630
|
+
ownership,
|
|
2631
|
+
title: goalDraft.request.title,
|
|
2632
|
+
description: goalDraft.request.description,
|
|
2633
|
+
cadence: goalDraft.request.cadence,
|
|
2634
|
+
supportStrategy: goalDraft.request.supportStrategy,
|
|
2635
|
+
successCriteria: goalDraft.request.successCriteria,
|
|
2636
|
+
metadata: {
|
|
2637
|
+
...(goalDraft.request.metadata ?? {}),
|
|
2638
|
+
source: "chat",
|
|
2639
|
+
originalIntent: goalDraft.intent || goalDraft.request.title,
|
|
2640
|
+
},
|
|
2641
|
+
});
|
|
2642
|
+
const fallback = `Saved goal "${created.goal.title}".`;
|
|
2643
|
+
return {
|
|
2644
|
+
success: true,
|
|
2645
|
+
text: await renderLifeActionReply({
|
|
2646
|
+
runtime,
|
|
2647
|
+
message,
|
|
2648
|
+
state,
|
|
2649
|
+
intent,
|
|
2650
|
+
scenario: "saved_goal",
|
|
2651
|
+
fallback,
|
|
2652
|
+
context: {
|
|
2653
|
+
created: {
|
|
2654
|
+
title: created.goal.title,
|
|
2655
|
+
cadence: created.goal.cadence,
|
|
2656
|
+
},
|
|
2657
|
+
},
|
|
2658
|
+
}),
|
|
2659
|
+
data: toActionData(created),
|
|
2660
|
+
};
|
|
2661
|
+
}
|
|
2662
|
+
if (operation === "update_definition") {
|
|
2663
|
+
const target = await resolveDefinition(service, targetName, domain);
|
|
2664
|
+
if (!target)
|
|
2665
|
+
return {
|
|
2666
|
+
success: false,
|
|
2667
|
+
text: "I could not find that item to update.",
|
|
2668
|
+
};
|
|
2669
|
+
const request = {
|
|
2670
|
+
ownership,
|
|
2671
|
+
title: params.title !== target.definition.title ? params.title : undefined,
|
|
2672
|
+
description: detailString(details, "description"),
|
|
2673
|
+
cadence: normalizeCadenceDetail(detailObject(details, "cadence")),
|
|
2674
|
+
priority: detailNumber(details, "priority"),
|
|
2675
|
+
windowPolicy: detailObject(details, "windowPolicy"),
|
|
2676
|
+
reminderPlan: detailObject(details, "reminderPlan"),
|
|
2677
|
+
};
|
|
2678
|
+
// If no explicit changes from structured details, try LLM extraction
|
|
2679
|
+
const hasExplicitChanges = hasDefinitionUpdateChanges(request);
|
|
2680
|
+
if (!hasExplicitChanges && intent) {
|
|
2681
|
+
const llmFields = await extractUpdateFieldsWithLlm({
|
|
2682
|
+
runtime,
|
|
2683
|
+
intent,
|
|
2684
|
+
currentTitle: target.definition.title,
|
|
2685
|
+
currentCadenceKind: target.definition.cadence.kind,
|
|
2686
|
+
currentWindows: target.definition.windowPolicy?.windows?.map((w) => w.name) ?? [],
|
|
2687
|
+
});
|
|
2688
|
+
if (llmFields) {
|
|
2689
|
+
if (llmFields.title)
|
|
2690
|
+
request.title = llmFields.title;
|
|
2691
|
+
if (llmFields.priority)
|
|
2692
|
+
request.priority = llmFields.priority;
|
|
2693
|
+
if (llmFields.description)
|
|
2694
|
+
request.description = llmFields.description;
|
|
2695
|
+
if (llmFields.cadenceKind ||
|
|
2696
|
+
llmFields.windows ||
|
|
2697
|
+
llmFields.weekdays ||
|
|
2698
|
+
llmFields.everyMinutes ||
|
|
2699
|
+
llmFields.timeOfDay) {
|
|
2700
|
+
const built = buildCadenceFromUpdateFields({
|
|
2701
|
+
currentCadence: target.definition.cadence,
|
|
2702
|
+
currentWindowPolicy: target.definition.windowPolicy,
|
|
2703
|
+
timeZone: target.definition.timezone,
|
|
2704
|
+
update: llmFields,
|
|
2705
|
+
});
|
|
2706
|
+
if (built) {
|
|
2707
|
+
request.cadence = built.cadence;
|
|
2708
|
+
request.windowPolicy = built.windowPolicy;
|
|
2709
|
+
}
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
if (!hasDefinitionUpdateChanges(request)) {
|
|
2714
|
+
return {
|
|
2715
|
+
success: false,
|
|
2716
|
+
text: `Tell me what to change about "${target.definition.title}" and I'll update it.`,
|
|
2717
|
+
};
|
|
2718
|
+
}
|
|
2719
|
+
const updated = await service.updateDefinition(target.definition.id, request);
|
|
2720
|
+
const fallback = `Updated "${updated.definition.title}".`;
|
|
2721
|
+
return {
|
|
2722
|
+
success: true,
|
|
2723
|
+
text: await renderLifeActionReply({
|
|
2724
|
+
runtime,
|
|
2725
|
+
message,
|
|
2726
|
+
state,
|
|
2727
|
+
intent,
|
|
2728
|
+
scenario: "updated_definition",
|
|
2729
|
+
fallback,
|
|
2730
|
+
context: {
|
|
2731
|
+
previousTitle: target.definition.title,
|
|
2732
|
+
updated: {
|
|
2733
|
+
title: updated.definition.title,
|
|
2734
|
+
},
|
|
2735
|
+
},
|
|
2736
|
+
}),
|
|
2737
|
+
data: toActionData(updated),
|
|
2738
|
+
};
|
|
2739
|
+
}
|
|
2740
|
+
if (operation === "update_goal") {
|
|
2741
|
+
const target = await resolveGoal(service, targetName, domain);
|
|
2742
|
+
if (!target)
|
|
2743
|
+
return {
|
|
2744
|
+
success: false,
|
|
2745
|
+
text: "I could not find that goal to update.",
|
|
2746
|
+
};
|
|
2747
|
+
const request = {
|
|
2748
|
+
ownership,
|
|
2749
|
+
title: params.title !== target.goal.title ? params.title : undefined,
|
|
2750
|
+
description: detailString(details, "description"),
|
|
2751
|
+
cadence: normalizeCadenceDetail(detailObject(details, "cadence")),
|
|
2752
|
+
supportStrategy: detailObject(details, "supportStrategy"),
|
|
2753
|
+
successCriteria: detailObject(details, "successCriteria"),
|
|
2754
|
+
};
|
|
2755
|
+
const hasExplicitGoalChanges = request.title !== undefined ||
|
|
2756
|
+
request.description !== undefined ||
|
|
2757
|
+
request.cadence !== undefined ||
|
|
2758
|
+
request.supportStrategy !== undefined ||
|
|
2759
|
+
request.successCriteria !== undefined;
|
|
2760
|
+
if (!hasExplicitGoalChanges) {
|
|
2761
|
+
const llmPlan = await extractGoalUpdatePlanWithLlm({
|
|
2762
|
+
runtime,
|
|
2763
|
+
currentGoal: target.goal,
|
|
2764
|
+
intent,
|
|
2765
|
+
state: state ?? undefined,
|
|
2766
|
+
message: message ?? undefined,
|
|
2767
|
+
});
|
|
2768
|
+
if (llmPlan.mode === "respond") {
|
|
2769
|
+
return {
|
|
2770
|
+
success: true,
|
|
2771
|
+
text: llmPlan.response ??
|
|
2772
|
+
`Tell me what to change about "${target.goal.title}" and I'll update it.`,
|
|
2773
|
+
data: {
|
|
2774
|
+
actionName: "LIFE",
|
|
2775
|
+
noop: true,
|
|
2776
|
+
suggestedOperation: "update_goal",
|
|
2777
|
+
},
|
|
2778
|
+
};
|
|
2779
|
+
}
|
|
2780
|
+
if (llmPlan.title)
|
|
2781
|
+
request.title = llmPlan.title;
|
|
2782
|
+
if (llmPlan.description)
|
|
2783
|
+
request.description = llmPlan.description;
|
|
2784
|
+
if (llmPlan.cadence)
|
|
2785
|
+
request.cadence = llmPlan.cadence;
|
|
2786
|
+
if (llmPlan.supportStrategy)
|
|
2787
|
+
request.supportStrategy = llmPlan.supportStrategy;
|
|
2788
|
+
if (llmPlan.successCriteria)
|
|
2789
|
+
request.successCriteria = llmPlan.successCriteria;
|
|
2790
|
+
if (llmPlan.groundingState) {
|
|
2791
|
+
request.metadata = mergeGoalMetadataWithGrounding({
|
|
2792
|
+
metadata: target.goal.metadata,
|
|
2793
|
+
nowIso: new Date().toISOString(),
|
|
2794
|
+
plan: {
|
|
2795
|
+
cadence: llmPlan.cadence,
|
|
2796
|
+
confidence: llmPlan.confidence,
|
|
2797
|
+
evaluationSummary: llmPlan.evaluationSummary,
|
|
2798
|
+
groundingState: llmPlan.groundingState,
|
|
2799
|
+
missingCriticalFields: llmPlan.missingCriticalFields,
|
|
2800
|
+
successCriteria: llmPlan.successCriteria ?? target.goal.successCriteria,
|
|
2801
|
+
targetDomain: llmPlan.targetDomain,
|
|
2802
|
+
},
|
|
2803
|
+
});
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2806
|
+
if (request.title === undefined &&
|
|
2807
|
+
request.description === undefined &&
|
|
2808
|
+
request.cadence === undefined &&
|
|
2809
|
+
request.supportStrategy === undefined &&
|
|
2810
|
+
request.successCriteria === undefined &&
|
|
2811
|
+
request.metadata === undefined) {
|
|
2812
|
+
return {
|
|
2813
|
+
success: false,
|
|
2814
|
+
text: `Tell me what to change about "${target.goal.title}" and I'll update it.`,
|
|
2815
|
+
};
|
|
2816
|
+
}
|
|
2817
|
+
const updated = await service.updateGoal(target.goal.id, request);
|
|
2818
|
+
const fallback = `Updated goal "${updated.goal.title}".`;
|
|
2819
|
+
return {
|
|
2820
|
+
success: true,
|
|
2821
|
+
text: await renderLifeActionReply({
|
|
2822
|
+
runtime,
|
|
2823
|
+
message,
|
|
2824
|
+
state,
|
|
2825
|
+
intent,
|
|
2826
|
+
scenario: "updated_goal",
|
|
2827
|
+
fallback,
|
|
2828
|
+
context: {
|
|
2829
|
+
previousTitle: target.goal.title,
|
|
2830
|
+
updated: {
|
|
2831
|
+
title: updated.goal.title,
|
|
2832
|
+
},
|
|
2833
|
+
},
|
|
2834
|
+
}),
|
|
2835
|
+
data: toActionData(updated),
|
|
2836
|
+
};
|
|
2837
|
+
}
|
|
2838
|
+
if (operation === "delete_definition") {
|
|
2839
|
+
const target = await resolveDefinition(service, targetName, domain);
|
|
2840
|
+
if (!target)
|
|
2841
|
+
return {
|
|
2842
|
+
success: false,
|
|
2843
|
+
text: "I could not find that item to delete.",
|
|
2844
|
+
};
|
|
2845
|
+
await service.deleteDefinition(target.definition.id);
|
|
2846
|
+
const fallback = `Deleted "${target.definition.title}" and its occurrences.`;
|
|
2847
|
+
return {
|
|
2848
|
+
success: true,
|
|
2849
|
+
text: await renderLifeActionReply({
|
|
2850
|
+
runtime,
|
|
2851
|
+
message,
|
|
2852
|
+
state,
|
|
2853
|
+
intent,
|
|
2854
|
+
scenario: "deleted_definition",
|
|
2855
|
+
fallback,
|
|
2856
|
+
context: {
|
|
2857
|
+
deleted: {
|
|
2858
|
+
title: target.definition.title,
|
|
2859
|
+
},
|
|
2860
|
+
},
|
|
2861
|
+
}),
|
|
2862
|
+
};
|
|
2863
|
+
}
|
|
2864
|
+
if (operation === "delete_goal") {
|
|
2865
|
+
const target = await resolveGoal(service, targetName, domain);
|
|
2866
|
+
if (!target)
|
|
2867
|
+
return {
|
|
2868
|
+
success: false,
|
|
2869
|
+
text: "I could not find that goal to delete.",
|
|
2870
|
+
};
|
|
2871
|
+
await service.deleteGoal(target.goal.id);
|
|
2872
|
+
const fallback = `Deleted goal "${target.goal.title}".`;
|
|
2873
|
+
return {
|
|
2874
|
+
success: true,
|
|
2875
|
+
text: await renderLifeActionReply({
|
|
2876
|
+
runtime,
|
|
2877
|
+
message,
|
|
2878
|
+
state,
|
|
2879
|
+
intent,
|
|
2880
|
+
scenario: "deleted_goal",
|
|
2881
|
+
fallback,
|
|
2882
|
+
context: {
|
|
2883
|
+
deleted: {
|
|
2884
|
+
title: target.goal.title,
|
|
2885
|
+
},
|
|
2886
|
+
},
|
|
2887
|
+
}),
|
|
2888
|
+
};
|
|
2889
|
+
}
|
|
2890
|
+
if (operation === "complete_occurrence") {
|
|
2891
|
+
const { match: target, ambiguousCandidates } = await resolveOccurrenceWithIntentFallback({
|
|
2892
|
+
service,
|
|
2893
|
+
target: targetName,
|
|
2894
|
+
domain,
|
|
2895
|
+
intent,
|
|
2896
|
+
operation,
|
|
2897
|
+
});
|
|
2898
|
+
if (!target) {
|
|
2899
|
+
if (ambiguousCandidates.length > 0) {
|
|
2900
|
+
return {
|
|
2901
|
+
success: false,
|
|
2902
|
+
text: `Multiple items match — which one?\n${ambiguousCandidates.map((t) => ` - ${t}`).join("\n")}`,
|
|
2903
|
+
};
|
|
2904
|
+
}
|
|
2905
|
+
return {
|
|
2906
|
+
success: false,
|
|
2907
|
+
text: "I could not find that active item to complete.",
|
|
2908
|
+
};
|
|
2909
|
+
}
|
|
2910
|
+
const completed = await service.completeOccurrence(target.id, {
|
|
2911
|
+
note: detailString(details, "note"),
|
|
2912
|
+
});
|
|
2913
|
+
const fallback = `Marked "${completed.title}" done.`;
|
|
2914
|
+
return {
|
|
2915
|
+
success: true,
|
|
2916
|
+
text: await renderLifeActionReply({
|
|
2917
|
+
runtime,
|
|
2918
|
+
message,
|
|
2919
|
+
state,
|
|
2920
|
+
intent,
|
|
2921
|
+
scenario: "completed_occurrence",
|
|
2922
|
+
fallback,
|
|
2923
|
+
context: {
|
|
2924
|
+
completed: {
|
|
2925
|
+
title: completed.title,
|
|
2926
|
+
},
|
|
2927
|
+
note: detailString(details, "note"),
|
|
2928
|
+
},
|
|
2929
|
+
}),
|
|
2930
|
+
data: toActionData(completed),
|
|
2931
|
+
};
|
|
2932
|
+
}
|
|
2933
|
+
if (operation === "skip_occurrence") {
|
|
2934
|
+
const { match: target, ambiguousCandidates } = await resolveOccurrenceWithIntentFallback({
|
|
2935
|
+
service,
|
|
2936
|
+
target: targetName,
|
|
2937
|
+
domain,
|
|
2938
|
+
intent,
|
|
2939
|
+
operation,
|
|
2940
|
+
});
|
|
2941
|
+
if (!target) {
|
|
2942
|
+
if (ambiguousCandidates.length > 0) {
|
|
2943
|
+
return {
|
|
2944
|
+
success: false,
|
|
2945
|
+
text: `Multiple items match — which one?\n${ambiguousCandidates.map((t) => ` - ${t}`).join("\n")}`,
|
|
2946
|
+
};
|
|
2947
|
+
}
|
|
2948
|
+
return {
|
|
2949
|
+
success: false,
|
|
2950
|
+
text: "I could not find that active item to skip.",
|
|
2951
|
+
};
|
|
2952
|
+
}
|
|
2953
|
+
const skipped = await service.skipOccurrence(target.id);
|
|
2954
|
+
const fallback = `Skipped "${skipped.title}".`;
|
|
2955
|
+
return {
|
|
2956
|
+
success: true,
|
|
2957
|
+
text: await renderLifeActionReply({
|
|
2958
|
+
runtime,
|
|
2959
|
+
message,
|
|
2960
|
+
state,
|
|
2961
|
+
intent,
|
|
2962
|
+
scenario: "skipped_occurrence",
|
|
2963
|
+
fallback,
|
|
2964
|
+
context: {
|
|
2965
|
+
skipped: {
|
|
2966
|
+
title: skipped.title,
|
|
2967
|
+
},
|
|
2968
|
+
},
|
|
2969
|
+
}),
|
|
2970
|
+
data: toActionData(skipped),
|
|
2971
|
+
};
|
|
2972
|
+
}
|
|
2973
|
+
if (operation === "snooze_occurrence") {
|
|
2974
|
+
const { match: target, ambiguousCandidates } = await resolveOccurrenceWithIntentFallback({
|
|
2975
|
+
service,
|
|
2976
|
+
target: targetName,
|
|
2977
|
+
domain,
|
|
2978
|
+
intent,
|
|
2979
|
+
operation,
|
|
2980
|
+
});
|
|
2981
|
+
if (!target) {
|
|
2982
|
+
if (ambiguousCandidates.length > 0) {
|
|
2983
|
+
return {
|
|
2984
|
+
success: false,
|
|
2985
|
+
text: `Multiple items match — which one?\n${ambiguousCandidates.map((t) => ` - ${t}`).join("\n")}`,
|
|
2986
|
+
};
|
|
2987
|
+
}
|
|
2988
|
+
return {
|
|
2989
|
+
success: false,
|
|
2990
|
+
text: "I could not find that active item to snooze.",
|
|
2991
|
+
};
|
|
2992
|
+
}
|
|
2993
|
+
const preset = detailString(details, "preset");
|
|
2994
|
+
const minutes = detailNumber(details, "minutes");
|
|
2995
|
+
const snoozed = await service.snoozeOccurrence(target.id, {
|
|
2996
|
+
preset,
|
|
2997
|
+
minutes,
|
|
2998
|
+
});
|
|
2999
|
+
const fallback = `Snoozed "${snoozed.title}".`;
|
|
3000
|
+
return {
|
|
3001
|
+
success: true,
|
|
3002
|
+
text: await renderLifeActionReply({
|
|
3003
|
+
runtime,
|
|
3004
|
+
message,
|
|
3005
|
+
state,
|
|
3006
|
+
intent,
|
|
3007
|
+
scenario: "snoozed_occurrence",
|
|
3008
|
+
fallback,
|
|
3009
|
+
context: {
|
|
3010
|
+
snoozed: {
|
|
3011
|
+
title: snoozed.title,
|
|
3012
|
+
},
|
|
3013
|
+
preset: preset ?? null,
|
|
3014
|
+
minutes: minutes ?? null,
|
|
3015
|
+
},
|
|
3016
|
+
}),
|
|
3017
|
+
data: toActionData(snoozed),
|
|
3018
|
+
};
|
|
3019
|
+
}
|
|
3020
|
+
if (operation === "review_goal") {
|
|
3021
|
+
const target = await resolveGoal(service, targetName, domain);
|
|
3022
|
+
if (!target)
|
|
3023
|
+
return {
|
|
3024
|
+
success: false,
|
|
3025
|
+
text: "I could not find that goal to review.",
|
|
3026
|
+
};
|
|
3027
|
+
const review = await service.reviewGoal(target.goal.id);
|
|
3028
|
+
return {
|
|
3029
|
+
success: true,
|
|
3030
|
+
text: review.summary.explanation,
|
|
3031
|
+
data: toActionData(review),
|
|
3032
|
+
};
|
|
3033
|
+
}
|
|
3034
|
+
if (operation === "set_reminder_preference") {
|
|
3035
|
+
const reminderIntensityPlan = await extractReminderIntensityWithLlm({
|
|
3036
|
+
runtime,
|
|
3037
|
+
intent,
|
|
3038
|
+
});
|
|
3039
|
+
if (reminderIntensityPlan.intensity === "unknown") {
|
|
3040
|
+
return {
|
|
3041
|
+
success: false,
|
|
3042
|
+
text: "I need to know whether you want reminders minimal, normal, persistent, or high priority only.",
|
|
3043
|
+
};
|
|
3044
|
+
}
|
|
3045
|
+
const intensity = reminderIntensityPlan.intensity;
|
|
3046
|
+
const target = await resolveDefinitionFromIntent(service, targetName, intent, domain);
|
|
3047
|
+
const request = {
|
|
3048
|
+
intensity,
|
|
3049
|
+
definitionId: target?.definition.id ?? null,
|
|
3050
|
+
note: chatText || intent,
|
|
3051
|
+
};
|
|
3052
|
+
const preference = await service.setReminderPreference(request);
|
|
3053
|
+
if (target) {
|
|
3054
|
+
const fallback = intensity === "high_priority_only"
|
|
3055
|
+
? `Reminder intensity for "${target.definition.title}" is now high priority only.`
|
|
3056
|
+
: `Reminder intensity for "${target.definition.title}" is now ${describeReminderIntensity(preference.effective.intensity)}.`;
|
|
3057
|
+
return {
|
|
3058
|
+
success: true,
|
|
3059
|
+
text: await renderLifeActionReply({
|
|
3060
|
+
runtime,
|
|
3061
|
+
message,
|
|
3062
|
+
state,
|
|
3063
|
+
intent,
|
|
3064
|
+
scenario: "set_reminder_preference",
|
|
3065
|
+
fallback,
|
|
3066
|
+
context: {
|
|
3067
|
+
scope: "definition",
|
|
3068
|
+
targetTitle: target.definition.title,
|
|
3069
|
+
intensity: preference.effective.intensity,
|
|
3070
|
+
},
|
|
3071
|
+
}),
|
|
3072
|
+
data: toActionData(preference),
|
|
3073
|
+
};
|
|
3074
|
+
}
|
|
3075
|
+
const fallback = intensity === "high_priority_only"
|
|
3076
|
+
? "Global LifeOps reminders are now high priority only."
|
|
3077
|
+
: `Global LifeOps reminders are now ${describeReminderIntensity(preference.effective.intensity)}.`;
|
|
3078
|
+
return {
|
|
3079
|
+
success: true,
|
|
3080
|
+
text: await renderLifeActionReply({
|
|
3081
|
+
runtime,
|
|
3082
|
+
message,
|
|
3083
|
+
state,
|
|
3084
|
+
intent,
|
|
3085
|
+
scenario: "set_reminder_preference",
|
|
3086
|
+
fallback,
|
|
3087
|
+
context: {
|
|
3088
|
+
scope: "global",
|
|
3089
|
+
intensity: preference.effective.intensity,
|
|
3090
|
+
},
|
|
3091
|
+
}),
|
|
3092
|
+
data: toActionData(preference),
|
|
3093
|
+
};
|
|
3094
|
+
}
|
|
3095
|
+
if (operation === "capture_phone") {
|
|
3096
|
+
const phoneNumber = detailString(details, "phoneNumber") ?? params.title;
|
|
3097
|
+
if (!phoneNumber)
|
|
3098
|
+
return {
|
|
3099
|
+
success: false,
|
|
3100
|
+
text: "I need a phone number to set up SMS or voice contact.",
|
|
3101
|
+
};
|
|
3102
|
+
const allowSms = detailBoolean(details, "allowSms") ?? true;
|
|
3103
|
+
const allowVoice = detailBoolean(details, "allowVoice") ?? false;
|
|
3104
|
+
const result = await service.capturePhoneConsent({
|
|
3105
|
+
phoneNumber,
|
|
3106
|
+
consentGiven: true,
|
|
3107
|
+
allowSms,
|
|
3108
|
+
allowVoice,
|
|
3109
|
+
privacyClass: "private",
|
|
3110
|
+
});
|
|
3111
|
+
const channels = [];
|
|
3112
|
+
if (allowSms)
|
|
3113
|
+
channels.push("SMS");
|
|
3114
|
+
if (allowVoice)
|
|
3115
|
+
channels.push("voice calls");
|
|
3116
|
+
const fallback = `Phone number ${result.phoneNumber} saved. Enabled for: ${channels.join(" and ") || "reminders"}.`;
|
|
3117
|
+
return {
|
|
3118
|
+
success: true,
|
|
3119
|
+
text: await renderLifeActionReply({
|
|
3120
|
+
runtime,
|
|
3121
|
+
message,
|
|
3122
|
+
state,
|
|
3123
|
+
intent,
|
|
3124
|
+
scenario: "captured_phone",
|
|
3125
|
+
fallback,
|
|
3126
|
+
context: {
|
|
3127
|
+
phoneNumber: result.phoneNumber,
|
|
3128
|
+
channels,
|
|
3129
|
+
},
|
|
3130
|
+
}),
|
|
3131
|
+
data: toActionData(result),
|
|
3132
|
+
};
|
|
3133
|
+
}
|
|
3134
|
+
if (operation === "configure_escalation") {
|
|
3135
|
+
const target = await resolveDefinition(service, targetName, domain);
|
|
3136
|
+
if (!target)
|
|
3137
|
+
return {
|
|
3138
|
+
success: false,
|
|
3139
|
+
text: "I could not find that item to configure its reminders.",
|
|
3140
|
+
};
|
|
3141
|
+
const rawSteps = detailArray(details, "steps") ??
|
|
3142
|
+
detailArray(details, "escalationSteps");
|
|
3143
|
+
const steps = rawSteps
|
|
3144
|
+
? rawSteps
|
|
3145
|
+
.filter((s) => typeof s === "object" && s !== null)
|
|
3146
|
+
.map((s) => ({
|
|
3147
|
+
channel: String(s.channel ?? "in_app"),
|
|
3148
|
+
offsetMinutes: typeof s.offsetMinutes === "number" ? s.offsetMinutes : 0,
|
|
3149
|
+
label: typeof s.label === "string"
|
|
3150
|
+
? s.label
|
|
3151
|
+
: String(s.channel ?? "reminder"),
|
|
3152
|
+
}))
|
|
3153
|
+
: [{ channel: "in_app", offsetMinutes: 0, label: "In-app reminder" }];
|
|
3154
|
+
const updated = await service.updateDefinition(target.definition.id, {
|
|
3155
|
+
ownership,
|
|
3156
|
+
reminderPlan: { steps },
|
|
3157
|
+
});
|
|
3158
|
+
const summary = steps
|
|
3159
|
+
.map((s) => `${s.channel} at +${s.offsetMinutes}m`)
|
|
3160
|
+
.join(", ");
|
|
3161
|
+
const fallback = `Updated reminder plan for "${updated.definition.title}": ${summary}.`;
|
|
3162
|
+
return {
|
|
3163
|
+
success: true,
|
|
3164
|
+
text: await renderLifeActionReply({
|
|
3165
|
+
runtime,
|
|
3166
|
+
message,
|
|
3167
|
+
state,
|
|
3168
|
+
intent,
|
|
3169
|
+
scenario: "configured_escalation",
|
|
3170
|
+
fallback,
|
|
3171
|
+
context: {
|
|
3172
|
+
targetTitle: updated.definition.title,
|
|
3173
|
+
steps,
|
|
3174
|
+
},
|
|
3175
|
+
}),
|
|
3176
|
+
data: toActionData(updated),
|
|
3177
|
+
};
|
|
3178
|
+
}
|
|
3179
|
+
return {
|
|
3180
|
+
success: false,
|
|
3181
|
+
text: "I didn't understand that life management request.",
|
|
3182
|
+
};
|
|
3183
|
+
}
|
|
3184
|
+
catch (err) {
|
|
3185
|
+
if (err instanceof LifeOpsServiceError) {
|
|
3186
|
+
const fallback = buildLifeServiceErrorFallback(err, intent);
|
|
3187
|
+
return {
|
|
3188
|
+
success: false,
|
|
3189
|
+
text: await renderLifeActionReply({
|
|
3190
|
+
runtime,
|
|
3191
|
+
message,
|
|
3192
|
+
state,
|
|
3193
|
+
intent,
|
|
3194
|
+
scenario: "service_error",
|
|
3195
|
+
fallback,
|
|
3196
|
+
context: {
|
|
3197
|
+
status: err.status,
|
|
3198
|
+
operation,
|
|
3199
|
+
},
|
|
3200
|
+
}),
|
|
3201
|
+
};
|
|
3202
|
+
}
|
|
3203
|
+
throw err;
|
|
3204
|
+
}
|
|
3205
|
+
},
|
|
3206
|
+
parameters: [
|
|
3207
|
+
{
|
|
3208
|
+
name: "action",
|
|
3209
|
+
description: "What kind of life operation to perform.",
|
|
3210
|
+
required: false,
|
|
3211
|
+
schema: {
|
|
3212
|
+
type: "string",
|
|
3213
|
+
enum: [
|
|
3214
|
+
"create",
|
|
3215
|
+
"create_goal",
|
|
3216
|
+
"update",
|
|
3217
|
+
"update_goal",
|
|
3218
|
+
"delete",
|
|
3219
|
+
"delete_goal",
|
|
3220
|
+
"complete",
|
|
3221
|
+
"skip",
|
|
3222
|
+
"snooze",
|
|
3223
|
+
"review",
|
|
3224
|
+
"phone",
|
|
3225
|
+
"escalation",
|
|
3226
|
+
"reminder_preference",
|
|
3227
|
+
"calendar",
|
|
3228
|
+
"next_event",
|
|
3229
|
+
"email",
|
|
3230
|
+
"overview",
|
|
3231
|
+
],
|
|
3232
|
+
},
|
|
3233
|
+
},
|
|
3234
|
+
{
|
|
3235
|
+
name: "intent",
|
|
3236
|
+
description: 'Natural language description of what to do. Examples: "create a daily brushing habit for morning and night", "snooze brushing for 30 minutes", "what\'s on my calendar today".',
|
|
3237
|
+
required: false,
|
|
3238
|
+
schema: { type: "string" },
|
|
3239
|
+
},
|
|
3240
|
+
{
|
|
3241
|
+
name: "title",
|
|
3242
|
+
description: "Name for a new item, or the name of an existing item to act on.",
|
|
3243
|
+
required: false,
|
|
3244
|
+
schema: { type: "string" },
|
|
3245
|
+
},
|
|
3246
|
+
{
|
|
3247
|
+
name: "target",
|
|
3248
|
+
description: "Name or ID of an existing item when different from title (e.g., when renaming).",
|
|
3249
|
+
required: false,
|
|
3250
|
+
schema: { type: "string" },
|
|
3251
|
+
},
|
|
3252
|
+
{
|
|
3253
|
+
name: "details",
|
|
3254
|
+
description: "Structured data when needed. May include: cadence (schedule object), kind (task/habit/routine), description, priority, progressionRule, reminderPlan, confirmed (boolean when the user explicitly approves a previewed create), preset (snooze preset like 15m/30m/1h/tonight/tomorrow_morning), minutes (snooze minutes), phoneNumber, allowSms, allowVoice, steps (escalation steps array), goalId, goalTitle, supportStrategy, successCriteria, note, limit, domain (user_lifeops/agent_ops), or reminder preference targeting.",
|
|
3255
|
+
required: false,
|
|
3256
|
+
schema: { type: "object" },
|
|
3257
|
+
},
|
|
3258
|
+
],
|
|
3259
|
+
examples: [
|
|
3260
|
+
[
|
|
3261
|
+
{
|
|
3262
|
+
name: "{{name1}}",
|
|
3263
|
+
content: {
|
|
3264
|
+
text: "help me remember to drink water",
|
|
3265
|
+
},
|
|
3266
|
+
},
|
|
3267
|
+
{
|
|
3268
|
+
name: "{{agentName}}",
|
|
3269
|
+
content: {
|
|
3270
|
+
text: 'I can set up a "Drink water" habit with a reasonable daytime default cadence. Confirm and I\'ll save it.',
|
|
3271
|
+
actions: ["LIFE"],
|
|
3272
|
+
},
|
|
3273
|
+
},
|
|
3274
|
+
],
|
|
3275
|
+
[
|
|
3276
|
+
{
|
|
3277
|
+
name: "{{name1}}",
|
|
3278
|
+
content: {
|
|
3279
|
+
text: "help me remember to stretch during the day",
|
|
3280
|
+
},
|
|
3281
|
+
},
|
|
3282
|
+
{
|
|
3283
|
+
name: "{{agentName}}",
|
|
3284
|
+
content: {
|
|
3285
|
+
text: 'I can set up a "Stretch" habit with daytime stretch-break defaults. Confirm and I\'ll save it.',
|
|
3286
|
+
actions: ["LIFE"],
|
|
3287
|
+
},
|
|
3288
|
+
},
|
|
3289
|
+
],
|
|
3290
|
+
[
|
|
3291
|
+
{
|
|
3292
|
+
name: "{{name1}}",
|
|
3293
|
+
content: {
|
|
3294
|
+
text: "please remind me about my Invisalign on weekdays after lunch",
|
|
3295
|
+
},
|
|
3296
|
+
},
|
|
3297
|
+
{
|
|
3298
|
+
name: "{{agentName}}",
|
|
3299
|
+
content: {
|
|
3300
|
+
text: "I can set up a weekday-after-lunch Invisalign habit. Confirm and I'll save it.",
|
|
3301
|
+
actions: ["LIFE"],
|
|
3302
|
+
},
|
|
3303
|
+
},
|
|
3304
|
+
],
|
|
3305
|
+
[
|
|
3306
|
+
{
|
|
3307
|
+
name: "{{name1}}",
|
|
3308
|
+
content: {
|
|
3309
|
+
text: "recuérdame cepillarme los dientes por la mañana y por la noche",
|
|
3310
|
+
},
|
|
3311
|
+
},
|
|
3312
|
+
{
|
|
3313
|
+
name: "{{agentName}}",
|
|
3314
|
+
content: {
|
|
3315
|
+
text: 'Puedo guardar el hábito "Brush teeth" para la mañana y la noche. Confirma y lo guardo.',
|
|
3316
|
+
actions: ["LIFE"],
|
|
3317
|
+
},
|
|
3318
|
+
},
|
|
3319
|
+
],
|
|
3320
|
+
[
|
|
3321
|
+
{
|
|
3322
|
+
name: "{{name1}}",
|
|
3323
|
+
content: {
|
|
3324
|
+
text: "help me brush my teeth at 8 am and 9 pm every day",
|
|
3325
|
+
},
|
|
3326
|
+
},
|
|
3327
|
+
{
|
|
3328
|
+
name: "{{agentName}}",
|
|
3329
|
+
content: {
|
|
3330
|
+
text: 'I can set up a habit named "Brush teeth" for 8 am and 9 pm daily. Confirm and I\'ll save it.',
|
|
3331
|
+
actions: ["LIFE"],
|
|
3332
|
+
},
|
|
3333
|
+
},
|
|
3334
|
+
],
|
|
3335
|
+
[
|
|
3336
|
+
{
|
|
3337
|
+
name: "{{name1}}",
|
|
3338
|
+
content: {
|
|
3339
|
+
text: "what life ops tasks are still left for today?",
|
|
3340
|
+
},
|
|
3341
|
+
},
|
|
3342
|
+
{
|
|
3343
|
+
name: "{{agentName}}",
|
|
3344
|
+
content: {
|
|
3345
|
+
text: "You have 2 LifeOps tasks left for today: call mom and pay rent.",
|
|
3346
|
+
actions: ["LIFE"],
|
|
3347
|
+
},
|
|
3348
|
+
},
|
|
3349
|
+
{
|
|
3350
|
+
name: "{{name1}}",
|
|
3351
|
+
content: {
|
|
3352
|
+
text: "anything else in my life ops list i need to get done today?",
|
|
3353
|
+
},
|
|
3354
|
+
},
|
|
3355
|
+
{
|
|
3356
|
+
name: "{{agentName}}",
|
|
3357
|
+
content: {
|
|
3358
|
+
text: "You have 1 LifeOps task left for today: pay rent.",
|
|
3359
|
+
actions: ["LIFE"],
|
|
3360
|
+
},
|
|
3361
|
+
},
|
|
3362
|
+
],
|
|
3363
|
+
[
|
|
3364
|
+
{
|
|
3365
|
+
name: "{{name1}}",
|
|
3366
|
+
content: {
|
|
3367
|
+
text: "remind me less about brush teeth",
|
|
3368
|
+
},
|
|
3369
|
+
},
|
|
3370
|
+
{
|
|
3371
|
+
name: "{{agentName}}",
|
|
3372
|
+
content: {
|
|
3373
|
+
text: 'Reminder intensity for "Brush teeth" is now minimal.',
|
|
3374
|
+
actions: ["LIFE"],
|
|
3375
|
+
},
|
|
3376
|
+
},
|
|
3377
|
+
],
|
|
3378
|
+
],
|
|
3379
|
+
};
|