@elizaos/agent 2.0.0-alpha.525 → 2.0.0-alpha.534
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/app-contacts/src/plugin.d.ts +11 -0
- package/apps/app-contacts/src/plugin.d.ts.map +1 -0
- package/apps/app-contacts/src/plugin.js +57 -0
- package/apps/app-elizamaker/src/index.d.ts +2 -0
- package/apps/app-elizamaker/src/index.d.ts.map +1 -1
- package/apps/app-elizamaker/src/index.js +2 -0
- package/apps/app-elizamaker/src/init-registry-services.d.ts +18 -0
- package/apps/app-elizamaker/src/init-registry-services.d.ts.map +1 -0
- package/apps/app-elizamaker/src/init-registry-services.js +63 -0
- package/apps/app-elizamaker/src/plugin.d.ts.map +1 -1
- package/apps/app-elizamaker/src/plugin.js +7 -0
- package/apps/app-elizamaker/src/registry-service-registry.d.ts +4 -0
- package/apps/app-elizamaker/src/registry-service-registry.d.ts.map +1 -0
- package/apps/app-elizamaker/src/registry-service-registry.js +7 -0
- package/apps/app-lifeops/src/automation-node-contributor.d.ts +2 -0
- package/apps/app-lifeops/src/automation-node-contributor.d.ts.map +1 -0
- package/apps/app-lifeops/src/automation-node-contributor.js +93 -0
- package/apps/app-lifeops/src/lifeops/continuity-probe.d.ts +1 -1
- package/apps/app-lifeops/src/lifeops/continuity-probe.js +1 -1
- package/apps/app-lifeops/src/lifeops/discord-browser-scraper.js +1 -1
- package/apps/app-lifeops/src/lifeops/discord-desktop-cdp.js +2 -2
- package/apps/app-lifeops/src/lifeops/fda-probe.js +1 -1
- package/apps/app-lifeops/src/lifeops/feature-flags.types.d.ts +1 -1
- package/apps/app-lifeops/src/lifeops/feature-flags.types.js +1 -1
- package/apps/app-lifeops/src/lifeops/google-fetch.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/google-fetch.js +3 -3
- package/apps/app-lifeops/src/lifeops/google-managed-client.js +14 -14
- package/apps/app-lifeops/src/lifeops/health-bridge.js +1 -1
- package/apps/app-lifeops/src/lifeops/health-connectors.js +2 -2
- package/apps/app-lifeops/src/lifeops/health-oauth.js +1 -1
- package/apps/app-lifeops/src/lifeops/paypal-managed-client.d.ts +1 -1
- package/apps/app-lifeops/src/lifeops/paypal-managed-client.js +5 -5
- package/apps/app-lifeops/src/lifeops/plaid-managed-client.d.ts +3 -3
- package/apps/app-lifeops/src/lifeops/plaid-managed-client.js +6 -6
- package/apps/app-lifeops/src/lifeops/schedule-state.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/schedule-state.js +2 -6
- package/apps/app-lifeops/src/lifeops/schedule-sync-client.js +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-discord.js +1 -1
- package/apps/app-lifeops/src/lifeops/service-mixin-payments.js +2 -2
- package/apps/app-lifeops/src/lifeops/service-mixin-travel.d.ts +1 -1
- package/apps/app-lifeops/src/lifeops/source-reliability.d.ts +1 -1
- package/apps/app-lifeops/src/lifeops/source-reliability.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/source-reliability.js +1 -1
- package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.js +1 -1
- package/apps/app-lifeops/src/lifeops/travel-adapters/duffel.js +3 -3
- package/apps/app-lifeops/src/lifeops/twilio.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/twilio.js +1 -3
- package/apps/app-lifeops/src/lifeops/whatsapp-client.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/whatsapp-client.js +1 -3
- package/apps/app-lifeops/src/lifeops/x-poster.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/x-poster.js +1 -3
- package/apps/app-lifeops/src/lifeops/x-reader.d.ts.map +1 -1
- package/apps/app-lifeops/src/lifeops/x-reader.js +1 -3
- package/apps/app-lifeops/src/public.d.ts.map +1 -1
- package/apps/app-lifeops/src/public.js +2 -0
- package/apps/app-phone/src/actions/place-call.d.ts +14 -0
- package/apps/app-phone/src/actions/place-call.d.ts.map +1 -0
- package/apps/app-phone/src/actions/place-call.js +63 -0
- package/apps/app-phone/src/actions/read-call-log.d.ts +11 -0
- package/apps/app-phone/src/actions/read-call-log.d.ts.map +1 -0
- package/apps/app-phone/src/actions/read-call-log.js +53 -0
- package/apps/app-phone/src/plugin.d.ts +10 -0
- package/apps/app-phone/src/plugin.d.ts.map +1 -0
- package/apps/app-phone/src/plugin.js +18 -0
- package/apps/app-steward/src/api/wallet-routes.d.ts.map +1 -1
- package/apps/app-steward/src/api/wallet-routes.js +0 -1
- package/apps/app-steward/src/api/wallet.d.ts.map +1 -1
- package/apps/app-steward/src/api/wallet.js +0 -2
- package/apps/app-training/src/backends/atropos.d.ts +1 -1
- package/apps/app-training/src/backends/atropos.js +1 -1
- package/apps/app-training/src/backends/native.d.ts +1 -1
- package/apps/app-training/src/backends/native.js +1 -1
- package/apps/app-training/src/services/training-service-registry.d.ts +4 -0
- package/apps/app-training/src/services/training-service-registry.d.ts.map +1 -0
- package/apps/app-training/src/services/training-service-registry.js +7 -0
- package/apps/app-training/src/services/training-trigger.d.ts +1 -1
- package/apps/app-training/src/services/training-trigger.js +2 -2
- package/apps/app-wifi/src/actions/scan-wifi.d.ts +13 -0
- package/apps/app-wifi/src/actions/scan-wifi.d.ts.map +1 -0
- package/apps/app-wifi/src/actions/scan-wifi.js +68 -0
- package/apps/app-wifi/src/plugin.d.ts +9 -0
- package/apps/app-wifi/src/plugin.d.ts.map +1 -0
- package/apps/app-wifi/src/plugin.js +16 -0
- package/package.json +16 -4
- package/packages/agent/src/actions/browser-autofill-login.d.ts +36 -0
- package/packages/agent/src/actions/browser-autofill-login.d.ts.map +1 -0
- package/packages/agent/src/actions/browser-autofill-login.js +347 -0
- package/packages/agent/src/actions/runtime.js +1 -1
- package/packages/agent/src/actions/update-owner-name.js +1 -1
- package/packages/agent/src/api/agent-status-routes.d.ts +3 -23
- package/packages/agent/src/api/agent-status-routes.d.ts.map +1 -1
- package/packages/agent/src/api/agent-status-routes.js +7 -40
- package/packages/agent/src/api/chat-routes.d.ts.map +1 -1
- package/packages/agent/src/api/chat-routes.js +1 -2
- package/packages/agent/src/api/cloud-provisioning.d.ts.map +1 -1
- package/packages/agent/src/api/cloud-provisioning.js +1 -2
- package/packages/agent/src/api/cloud-routes.d.ts.map +1 -1
- package/packages/agent/src/api/cloud-routes.js +8 -9
- package/packages/agent/src/api/config-env.js +4 -4
- package/packages/agent/src/api/config-routes.js +1 -1
- package/packages/agent/src/api/coordinator-wiring.d.ts +46 -0
- package/packages/agent/src/api/coordinator-wiring.d.ts.map +1 -0
- package/packages/agent/src/api/coordinator-wiring.js +108 -0
- package/packages/agent/src/api/curated-skills-routes.d.ts +1 -1
- package/packages/agent/src/api/curated-skills-routes.js +1 -1
- package/packages/agent/src/api/experience-routes.d.ts.map +1 -1
- package/packages/agent/src/api/experience-routes.js +40 -2
- package/packages/agent/src/api/misc-routes.d.ts.map +1 -1
- package/packages/agent/src/api/misc-routes.js +3 -37
- package/packages/agent/src/api/nfa-routes.d.ts.map +1 -1
- package/packages/agent/src/api/nfa-routes.js +1 -9
- package/packages/agent/src/api/provider-switch-routes.d.ts +8 -7
- package/packages/agent/src/api/provider-switch-routes.d.ts.map +1 -1
- package/packages/agent/src/api/provider-switch-routes.js +41 -26
- package/packages/agent/src/api/server-auth.d.ts.map +1 -1
- package/packages/agent/src/api/server-auth.js +1 -2
- package/packages/agent/src/api/server-helpers-auth.js +3 -3
- package/packages/agent/src/api/server-helpers-swarm.js +2 -2
- package/packages/agent/src/api/server-helpers-wallet.d.ts.map +1 -1
- package/packages/agent/src/api/server-helpers-wallet.js +1 -2
- package/packages/agent/src/api/server-types.d.ts +0 -6
- package/packages/agent/src/api/server-types.d.ts.map +1 -1
- package/packages/agent/src/api/server.d.ts.map +1 -1
- package/packages/agent/src/api/server.js +87 -138
- package/packages/agent/src/api/static-file-server.d.ts +2 -2
- package/packages/agent/src/api/static-file-server.d.ts.map +1 -1
- package/packages/agent/src/api/static-file-server.js +4 -2
- package/packages/agent/src/api/stream-routes.d.ts.map +1 -1
- package/packages/agent/src/api/stream-routes.js +6 -8
- package/packages/agent/src/api/subscription-routes.js +1 -1
- package/packages/agent/src/api/terminal-run-limits.d.ts.map +1 -1
- package/packages/agent/src/api/terminal-run-limits.js +2 -4
- package/packages/agent/src/api/wallet-routes.d.ts.map +1 -1
- package/packages/agent/src/api/wallet-routes.js +4 -5
- package/packages/agent/src/api/wallet-trading-profile.d.ts.map +1 -1
- package/packages/agent/src/api/wallet-trading-profile.js +2 -23
- package/packages/agent/src/api/wallet.d.ts +2 -2
- package/packages/agent/src/api/wallet.d.ts.map +1 -1
- package/packages/agent/src/api/wallet.js +2 -4
- package/packages/agent/src/auth/account-storage.d.ts.map +1 -1
- package/packages/agent/src/auth/account-storage.js +4 -15
- package/packages/agent/src/auth/claude-code-stealth-preload.d.ts +2 -0
- package/packages/agent/src/auth/claude-code-stealth-preload.d.ts.map +1 -0
- package/packages/agent/src/auth/claude-code-stealth-preload.js +2 -0
- package/packages/agent/src/auth/credentials.js +2 -2
- package/packages/agent/src/auth/oauth-flow.d.ts +1 -1
- package/packages/agent/src/bin.js +28 -6
- package/packages/agent/src/cli/index.js +3 -3
- package/packages/agent/src/cloud/bridge-client.js +1 -1
- package/packages/agent/src/cloud/cloud-wallet.d.ts +4 -4
- package/packages/agent/src/cloud/cloud-wallet.d.ts.map +1 -1
- package/packages/agent/src/cloud/cloud-wallet.js +9 -9
- package/packages/agent/src/config/config.d.ts.map +1 -1
- package/packages/agent/src/config/config.js +2 -3
- package/packages/agent/src/config/env-vars.js +1 -1
- package/packages/agent/src/config/feature-flags.d.ts +1 -1
- package/packages/agent/src/config/feature-flags.js +1 -1
- package/packages/agent/src/config/paths.d.ts +1 -1
- package/packages/agent/src/config/paths.d.ts.map +1 -1
- package/packages/agent/src/config/paths.js +3 -9
- package/packages/agent/src/config/types.eliza.d.ts +2 -2
- package/packages/agent/src/providers/workspace.d.ts.map +1 -1
- package/packages/agent/src/providers/workspace.js +2 -5
- package/packages/agent/src/runtime/agent-wallets.d.ts +103 -0
- package/packages/agent/src/runtime/agent-wallets.d.ts.map +1 -0
- package/packages/agent/src/runtime/agent-wallets.js +247 -0
- package/packages/agent/src/runtime/android-app-plugins.d.ts +24 -0
- package/packages/agent/src/runtime/android-app-plugins.d.ts.map +1 -0
- package/packages/agent/src/runtime/android-app-plugins.js +39 -0
- package/packages/agent/src/runtime/aosp-llama-adapter.d.ts +40 -22
- package/packages/agent/src/runtime/aosp-llama-adapter.d.ts.map +1 -1
- package/packages/agent/src/runtime/aosp-llama-adapter.js +214 -118
- package/packages/agent/src/runtime/aosp-local-inference-bootstrap.d.ts +4 -4
- package/packages/agent/src/runtime/aosp-local-inference-bootstrap.d.ts.map +1 -1
- package/packages/agent/src/runtime/aosp-local-inference-bootstrap.js +39 -18
- package/packages/agent/src/runtime/core-plugins.d.ts +16 -1
- package/packages/agent/src/runtime/core-plugins.d.ts.map +1 -1
- package/packages/agent/src/runtime/core-plugins.js +21 -2
- package/packages/agent/src/runtime/eliza-plugin.d.ts.map +1 -1
- package/packages/agent/src/runtime/eliza-plugin.js +2 -0
- package/packages/agent/src/runtime/eliza.d.ts.map +1 -1
- package/packages/agent/src/runtime/eliza.js +72 -12
- package/packages/agent/src/runtime/first-time-setup.d.ts.map +1 -1
- package/packages/agent/src/runtime/first-time-setup.js +1 -7
- package/packages/agent/src/runtime/operations/cold-strategy.d.ts +4 -4
- package/packages/agent/src/runtime/operations/cold-strategy.d.ts.map +1 -1
- package/packages/agent/src/runtime/operations/cold-strategy.js +13 -46
- package/packages/agent/src/runtime/operations/health-checks.d.ts +1 -0
- package/packages/agent/src/runtime/operations/health-checks.d.ts.map +1 -1
- package/packages/agent/src/runtime/operations/health-checks.js +1 -1
- package/packages/agent/src/runtime/operations/health.d.ts.map +1 -1
- package/packages/agent/src/runtime/operations/health.js +1 -13
- package/packages/agent/src/runtime/operations/index.d.ts +1 -0
- package/packages/agent/src/runtime/operations/index.d.ts.map +1 -1
- package/packages/agent/src/runtime/operations/index.js +1 -0
- package/packages/agent/src/runtime/operations/manager.d.ts +2 -0
- package/packages/agent/src/runtime/operations/manager.d.ts.map +1 -1
- package/packages/agent/src/runtime/operations/manager.js +27 -7
- package/packages/agent/src/runtime/operations/reload-hot.d.ts +4 -1
- package/packages/agent/src/runtime/operations/reload-hot.d.ts.map +1 -1
- package/packages/agent/src/runtime/operations/reload-hot.js +46 -41
- package/packages/agent/src/runtime/operations/repository.d.ts +30 -8
- package/packages/agent/src/runtime/operations/repository.d.ts.map +1 -1
- package/packages/agent/src/runtime/operations/repository.js +140 -54
- package/packages/agent/src/runtime/operations/types.d.ts +26 -24
- package/packages/agent/src/runtime/operations/types.d.ts.map +1 -1
- package/packages/agent/src/runtime/operations/types.js +8 -20
- package/packages/agent/src/runtime/operations/vault-bridge.d.ts +81 -0
- package/packages/agent/src/runtime/operations/vault-bridge.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/vault-bridge.js +133 -0
- package/packages/agent/src/runtime/plugin-collector.d.ts.map +1 -1
- package/packages/agent/src/runtime/plugin-collector.js +22 -6
- package/packages/agent/src/runtime/plugin-lifecycle.d.ts.map +1 -1
- package/packages/agent/src/runtime/plugin-lifecycle.js +1 -1
- package/packages/agent/src/runtime/plugin-resolver.d.ts.map +1 -1
- package/packages/agent/src/runtime/plugin-resolver.js +4 -3
- package/packages/agent/src/runtime/plugin-types.d.ts.map +1 -1
- package/packages/agent/src/runtime/plugin-types.js +1 -3
- package/packages/agent/src/runtime/subagent-output.d.ts +2 -2
- package/packages/agent/src/runtime/subagent-output.js +2 -2
- package/packages/agent/src/runtime/trajectory-internals.d.ts +20 -0
- package/packages/agent/src/runtime/trajectory-internals.d.ts.map +1 -1
- package/packages/agent/src/runtime/trajectory-internals.js +0 -9
- package/packages/agent/src/runtime/vault-profile-resolver.d.ts +37 -0
- package/packages/agent/src/runtime/vault-profile-resolver.d.ts.map +1 -0
- package/packages/agent/src/runtime/vault-profile-resolver.js +79 -0
- package/packages/agent/src/services/app-package-modules.d.ts.map +1 -1
- package/packages/agent/src/services/app-package-modules.js +1 -8
- package/packages/agent/src/services/app-run-store.d.ts.map +1 -1
- package/packages/agent/src/services/app-run-store.js +2 -23
- package/packages/agent/src/services/evm-signing-capability.d.ts +1 -1
- package/packages/agent/src/services/evm-signing-capability.js +1 -1
- package/packages/agent/src/services/registry-client-local.d.ts.map +1 -1
- package/packages/agent/src/services/registry-client-local.js +1 -9
- package/packages/agent/src/services/signal-pairing.js +5 -5
- package/packages/agent/src/services/skill-marketplace.d.ts.map +1 -1
- package/packages/agent/src/services/skill-marketplace.js +1 -1
- package/packages/agent/src/services/telegram-account-auth.d.ts.map +1 -1
- package/packages/agent/src/services/telegram-account-auth.js +1 -3
- package/packages/agent/src/test-utils/sqlite-compat.js +1 -1
- package/packages/agent/src/utils/atomic-json.d.ts +37 -0
- package/packages/agent/src/utils/atomic-json.d.ts.map +1 -0
- package/packages/agent/src/utils/atomic-json.js +98 -0
- package/packages/agent/src/utils/index.d.ts +1 -0
- package/packages/agent/src/utils/index.d.ts.map +1 -1
- package/packages/agent/src/utils/index.js +1 -0
- package/packages/app-core/src/api/automation-node-contributors.d.ts +14 -0
- package/packages/app-core/src/api/automation-node-contributors.d.ts.map +1 -0
- package/packages/app-core/src/api/automation-node-contributors.js +14 -0
- package/packages/app-core/src/api/client-agent.d.ts +628 -0
- package/packages/app-core/src/api/client-agent.d.ts.map +1 -0
- package/packages/app-core/src/api/client-agent.js +1442 -0
- package/packages/app-core/src/api/client-automations.d.ts +8 -0
- package/packages/app-core/src/api/client-automations.d.ts.map +1 -0
- package/packages/app-core/src/api/client-automations.js +7 -0
- package/packages/app-core/src/api/client-base.d.ts +82 -0
- package/packages/app-core/src/api/client-base.d.ts.map +1 -0
- package/packages/app-core/src/api/client-base.js +738 -0
- package/packages/app-core/src/api/client-browser-workspace.d.ts +25 -0
- package/packages/app-core/src/api/client-browser-workspace.d.ts.map +1 -0
- package/packages/app-core/src/api/client-browser-workspace.js +98 -0
- package/packages/app-core/src/api/client-chat.d.ts +355 -0
- package/packages/app-core/src/api/client-chat.d.ts.map +1 -0
- package/packages/app-core/src/api/client-chat.js +582 -0
- package/packages/app-core/src/api/client-cloud.d.ts +286 -0
- package/packages/app-core/src/api/client-cloud.d.ts.map +1 -0
- package/packages/app-core/src/api/client-cloud.js +410 -0
- package/packages/app-core/src/api/client-computeruse.d.ts +32 -0
- package/packages/app-core/src/api/client-computeruse.d.ts.map +1 -0
- package/packages/app-core/src/api/client-computeruse.js +16 -0
- package/packages/app-core/src/api/client-imessage.d.ts +68 -0
- package/packages/app-core/src/api/client-imessage.d.ts.map +1 -0
- package/packages/app-core/src/api/client-imessage.js +74 -0
- package/packages/app-core/src/api/client-local-inference.d.ts +62 -0
- package/packages/app-core/src/api/client-local-inference.d.ts.map +1 -0
- package/packages/app-core/src/api/client-local-inference.js +87 -0
- package/packages/app-core/src/api/client-n8n.d.ts +27 -0
- package/packages/app-core/src/api/client-n8n.d.ts.map +1 -0
- package/packages/app-core/src/api/client-n8n.js +61 -0
- package/packages/app-core/src/api/client-skills.d.ts +475 -0
- package/packages/app-core/src/api/client-skills.d.ts.map +1 -0
- package/packages/app-core/src/api/client-skills.js +608 -0
- package/packages/app-core/src/api/client-types-babylon.d.ts +254 -0
- package/packages/app-core/src/api/client-types-babylon.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types-babylon.js +2 -0
- package/packages/app-core/src/api/client-types-character.d.ts +39 -0
- package/packages/app-core/src/api/client-types-character.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types-character.js +1 -0
- package/packages/app-core/src/api/client-types-chat.d.ts +428 -0
- package/packages/app-core/src/api/client-types-chat.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types-chat.js +9 -0
- package/packages/app-core/src/api/client-types-config.d.ts +587 -0
- package/packages/app-core/src/api/client-types-config.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types-config.js +5 -0
- package/packages/app-core/src/api/client-types-experience.d.ts +97 -0
- package/packages/app-core/src/api/client-types-experience.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types-experience.js +1 -0
- package/packages/app-core/src/api/client-types-relationships.d.ts +181 -0
- package/packages/app-core/src/api/client-types-relationships.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types-relationships.js +1 -0
- package/packages/app-core/src/api/client-types-steward.d.ts +85 -0
- package/packages/app-core/src/api/client-types-steward.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types-steward.js +9 -0
- package/packages/app-core/src/api/client-types.d.ts +9 -0
- package/packages/app-core/src/api/client-types.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types.js +12 -0
- package/packages/app-core/src/api/client-vault.d.ts +53 -0
- package/packages/app-core/src/api/client-vault.d.ts.map +1 -0
- package/packages/app-core/src/api/client-vault.js +48 -0
- package/packages/app-core/src/api/client-wallet.d.ts +130 -0
- package/packages/app-core/src/api/client-wallet.d.ts.map +1 -0
- package/packages/app-core/src/api/client-wallet.js +228 -0
- package/packages/app-core/src/api/client.d.ts +37 -0
- package/packages/app-core/src/api/client.d.ts.map +1 -0
- package/packages/app-core/src/api/client.js +37 -0
- package/packages/app-core/src/api/index.d.ts +2 -0
- package/packages/app-core/src/api/index.d.ts.map +1 -0
- package/packages/app-core/src/api/index.js +1 -0
- package/packages/app-core/src/bridge/electrobun-rpc.d.ts +57 -0
- package/packages/app-core/src/bridge/electrobun-rpc.d.ts.map +1 -0
- package/packages/app-core/src/bridge/electrobun-rpc.js +87 -0
- package/packages/app-core/src/bridge/electrobun-runtime.d.ts +3 -0
- package/packages/app-core/src/bridge/electrobun-runtime.d.ts.map +1 -0
- package/packages/app-core/src/bridge/electrobun-runtime.js +34 -0
- package/packages/app-core/src/bridge/native-plugins.d.ts +504 -0
- package/packages/app-core/src/bridge/native-plugins.d.ts.map +1 -0
- package/packages/app-core/src/bridge/native-plugins.js +67 -0
- package/packages/app-core/src/chat/coding-agent-session-state.d.ts +16 -0
- package/packages/app-core/src/chat/coding-agent-session-state.d.ts.map +1 -0
- package/packages/app-core/src/chat/coding-agent-session-state.js +27 -0
- package/packages/app-core/src/components/pages/browser-workspace-wallet.d.ts +80 -0
- package/packages/app-core/src/components/pages/browser-workspace-wallet.d.ts.map +1 -0
- package/packages/app-core/src/components/pages/browser-workspace-wallet.js +135 -0
- package/packages/app-core/src/navigation/index.js +1 -1
- package/packages/app-core/src/registry/index.d.ts +7 -0
- package/packages/app-core/src/registry/index.d.ts.map +1 -0
- package/packages/app-core/src/registry/index.js +43 -0
- package/packages/app-core/src/registry/legacy-adapter.d.ts +32 -0
- package/packages/app-core/src/registry/legacy-adapter.d.ts.map +1 -0
- package/packages/app-core/src/registry/legacy-adapter.js +101 -0
- package/packages/app-core/src/registry/loader.d.ts +27 -0
- package/packages/app-core/src/registry/loader.d.ts.map +1 -0
- package/packages/app-core/src/registry/loader.js +111 -0
- package/packages/app-core/src/registry/schema.d.ts +986 -0
- package/packages/app-core/src/registry/schema.d.ts.map +1 -0
- package/packages/app-core/src/registry/schema.js +250 -0
- package/packages/app-core/src/services/account-pool.d.ts +98 -0
- package/packages/app-core/src/services/account-pool.d.ts.map +1 -0
- package/packages/app-core/src/services/account-pool.js +506 -0
- package/packages/app-core/src/services/account-usage.d.ts +75 -0
- package/packages/app-core/src/services/account-usage.d.ts.map +1 -0
- package/packages/app-core/src/services/account-usage.js +179 -0
- package/packages/app-core/src/services/local-inference/active-model.d.ts +59 -0
- package/packages/app-core/src/services/local-inference/active-model.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/active-model.js +120 -0
- package/packages/app-core/src/services/local-inference/device-bridge.d.ts +131 -0
- package/packages/app-core/src/services/local-inference/device-bridge.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/device-bridge.js +748 -0
- package/packages/app-core/src/services/local-inference/engine.d.ts +52 -0
- package/packages/app-core/src/services/local-inference/engine.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/engine.js +138 -0
- package/packages/app-core/src/services/local-inference/external-scanner.d.ts +17 -0
- package/packages/app-core/src/services/local-inference/external-scanner.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/external-scanner.js +261 -0
- package/packages/app-core/src/services/local-inference/handler-registry.d.ts +72 -0
- package/packages/app-core/src/services/local-inference/handler-registry.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/handler-registry.js +160 -0
- package/packages/app-core/src/services/local-inference/paths.d.ts +24 -0
- package/packages/app-core/src/services/local-inference/paths.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/paths.js +41 -0
- package/packages/app-core/src/services/local-inference/providers.d.ts +61 -0
- package/packages/app-core/src/services/local-inference/providers.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/providers.js +277 -0
- package/packages/app-core/src/services/local-inference/registry.d.ts +35 -0
- package/packages/app-core/src/services/local-inference/registry.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/registry.js +108 -0
- package/packages/app-core/src/services/local-inference/routing-preferences.d.ts +31 -0
- package/packages/app-core/src/services/local-inference/routing-preferences.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/routing-preferences.js +72 -0
- package/packages/app-core/src/services/local-inference/types.d.ts +121 -0
- package/packages/app-core/src/services/local-inference/types.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/types.js +14 -0
- package/packages/app-core/src/services/local-inference/verify.d.ts +39 -0
- package/packages/app-core/src/services/local-inference/verify.d.ts.map +1 -0
- package/packages/app-core/src/services/local-inference/verify.js +104 -0
- package/packages/app-core/src/services/vault-bootstrap.d.ts +31 -0
- package/packages/app-core/src/services/vault-bootstrap.d.ts.map +1 -0
- package/packages/app-core/src/services/vault-bootstrap.js +245 -0
- package/packages/app-core/src/services/vault-mirror.d.ts +44 -0
- package/packages/app-core/src/services/vault-mirror.d.ts.map +1 -0
- package/packages/app-core/src/services/vault-mirror.js +80 -0
- package/packages/app-core/src/types/index.d.ts +658 -0
- package/packages/app-core/src/types/index.d.ts.map +1 -0
- package/packages/app-core/src/types/index.js +4 -0
- package/packages/app-core/src/utils/assistant-text.d.ts +2 -0
- package/packages/app-core/src/utils/assistant-text.d.ts.map +1 -0
- package/packages/app-core/src/utils/assistant-text.js +167 -0
- package/packages/app-core/src/utils/eliza-globals.d.ts +13 -0
- package/packages/app-core/src/utils/eliza-globals.d.ts.map +1 -0
- package/packages/app-core/src/utils/eliza-globals.js +48 -0
- package/packages/app-core/src/utils/streaming-text.d.ts +9 -0
- package/packages/app-core/src/utils/streaming-text.d.ts.map +1 -0
- package/packages/app-core/src/utils/streaming-text.js +112 -0
- package/packages/native-plugins/contacts/src/definitions.d.ts +38 -0
- package/packages/native-plugins/contacts/src/definitions.d.ts.map +1 -0
- package/packages/native-plugins/contacts/src/definitions.js +1 -0
- package/packages/native-plugins/contacts/src/index.d.ts +4 -0
- package/packages/native-plugins/contacts/src/index.d.ts.map +1 -0
- package/packages/native-plugins/contacts/src/index.js +6 -0
- package/packages/native-plugins/contacts/src/web.d.ts +14 -0
- package/packages/native-plugins/contacts/src/web.d.ts.map +1 -0
- package/packages/native-plugins/contacts/src/web.js +12 -0
- package/packages/native-plugins/phone/src/definitions.d.ts +48 -0
- package/packages/native-plugins/phone/src/definitions.d.ts.map +1 -0
- package/packages/native-plugins/phone/src/definitions.js +1 -0
- package/packages/native-plugins/phone/src/index.d.ts +4 -0
- package/packages/native-plugins/phone/src/index.d.ts.map +1 -0
- package/packages/native-plugins/phone/src/index.js +6 -0
- package/packages/native-plugins/phone/src/web.d.ts +14 -0
- package/packages/native-plugins/phone/src/web.d.ts.map +1 -0
- package/packages/native-plugins/phone/src/web.js +23 -0
- package/packages/native-plugins/wifi/src/definitions.d.ts +84 -0
- package/packages/native-plugins/wifi/src/definitions.d.ts.map +1 -0
- package/packages/native-plugins/wifi/src/definitions.js +9 -0
- package/packages/native-plugins/wifi/src/index.d.ts +4 -0
- package/packages/native-plugins/wifi/src/index.d.ts.map +1 -0
- package/packages/native-plugins/wifi/src/index.js +6 -0
- package/packages/native-plugins/wifi/src/web.d.ts +17 -0
- package/packages/native-plugins/wifi/src/web.d.ts.map +1 -0
- package/packages/native-plugins/wifi/src/web.js +38 -0
- package/packages/shared/src/config/types.eliza.d.ts +2 -2
- package/packages/shared/src/connector-cred-types.d.ts +1 -1
- package/packages/shared/src/connector-cred-types.js +1 -1
- package/packages/shared/src/contracts/lifeops.d.ts +1 -1
- package/packages/shared/src/contracts/lifeops.d.ts.map +1 -1
- package/packages/shared/src/contracts/service-routing.d.ts +1 -1
- package/packages/shared/src/format-error.d.ts +14 -0
- package/packages/shared/src/format-error.d.ts.map +1 -0
- package/packages/shared/src/format-error.js +17 -0
- package/packages/shared/src/index.d.ts +1 -0
- package/packages/shared/src/index.d.ts.map +1 -1
- package/packages/shared/src/index.js +1 -0
- package/packages/shared/src/runtime-env.js +3 -3
- package/packages/skills/src/resolver.js +3 -3
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.d.ts +1 -1
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.js +1 -1
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.d.ts +1 -1
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.js +1 -1
- package/packages/typescript/src/features/basic-capabilities/providers/uiContext.js +1 -1
- package/packages/typescript/src/features/plugin-manager/actions/plugin.d.ts.map +1 -1
- package/packages/typescript/src/features/plugin-manager/actions/plugin.js +1 -2
- package/packages/typescript/src/features/plugin-manager/services/coreManagerService.d.ts +1 -1
- package/packages/typescript/src/features/plugin-manager/services/coreManagerService.d.ts.map +1 -1
- package/packages/typescript/src/features/plugin-manager/services/coreManagerService.js +3 -3
- package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.js +1 -1
- package/packages/typescript/src/features/plugin-manager/types.d.ts +1 -1
- package/packages/typescript/src/features/plugin-manager/types.d.ts.map +1 -1
- package/packages/typescript/src/index.node.js +1 -1
- package/packages/typescript/src/lifeops-passive-connectors.js +1 -1
- package/packages/typescript/src/runtime-composition.d.ts +2 -2
- package/packages/typescript/src/runtime-composition.d.ts.map +1 -1
- package/packages/typescript/src/runtime-composition.js +1 -1
- package/packages/typescript/src/runtime.d.ts +14 -0
- package/packages/typescript/src/runtime.d.ts.map +1 -1
- package/packages/typescript/src/runtime.js +42 -0
- package/packages/typescript/src/services/message.d.ts +8 -0
- package/packages/typescript/src/services/message.d.ts.map +1 -1
- package/packages/typescript/src/services/message.js +51 -0
- package/packages/typescript/src/services/optimized-prompt.d.ts +1 -1
- package/packages/typescript/src/services/optimized-prompt.js +1 -1
- package/packages/typescript/src/services/task.d.ts +1 -0
- package/packages/typescript/src/services/task.d.ts.map +1 -1
- package/packages/typescript/src/services/task.js +26 -3
- package/packages/typescript/src/utils/state-dir.d.ts +7 -8
- package/packages/typescript/src/utils/state-dir.d.ts.map +1 -1
- package/packages/typescript/src/utils/state-dir.js +8 -11
- package/plugins/plugin-browser-bridge/src/plugin.d.ts +1 -1
- package/plugins/plugin-browser-bridge/src/plugin.js +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* elizaOS runtime plugin for the Contacts overlay app.
|
|
3
|
+
*
|
|
4
|
+
* Wraps the existing @elizaos/capacitor-contacts native plugin with a single
|
|
5
|
+
* LIST_CONTACTS action. Session-gated so the action is only available while
|
|
6
|
+
* the Contacts app is active.
|
|
7
|
+
*/
|
|
8
|
+
import type { Plugin } from "@elizaos/core";
|
|
9
|
+
export declare const appContactsPlugin: Plugin;
|
|
10
|
+
export default appContactsPlugin;
|
|
11
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../../apps/app-contacts/src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAKV,MAAM,EACP,MAAM,eAAe,CAAC;AA8DvB,eAAO,MAAM,iBAAiB,EAAE,MAG/B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* elizaOS runtime plugin for the Contacts overlay app.
|
|
3
|
+
*
|
|
4
|
+
* Wraps the existing @elizaos/capacitor-contacts native plugin with a single
|
|
5
|
+
* LIST_CONTACTS action. Session-gated so the action is only available while
|
|
6
|
+
* the Contacts app is active.
|
|
7
|
+
*/
|
|
8
|
+
import { gatePluginSessionForHostedApp, hasRoleAccess } from "@elizaos/agent";
|
|
9
|
+
import { Contacts } from "@elizaos/capacitor-contacts";
|
|
10
|
+
const CONTACTS_APP_NAME = "@elizaos/app-contacts";
|
|
11
|
+
const DEFAULT_LIMIT = 25;
|
|
12
|
+
const MAX_LIMIT = 200;
|
|
13
|
+
const listContactsAction = {
|
|
14
|
+
name: "LIST_CONTACTS",
|
|
15
|
+
similes: ["GET_CONTACTS", "SHOW_CONTACTS", "READ_CONTACTS"],
|
|
16
|
+
description: "List names from the device address book. Android-only. Returns the display names of up to `limit` contacts (default 25).",
|
|
17
|
+
descriptionCompressed: "List contact names from the device address book.",
|
|
18
|
+
validate: async (runtime, message) => {
|
|
19
|
+
return hasRoleAccess(runtime, message, "USER");
|
|
20
|
+
},
|
|
21
|
+
handler: async (_runtime, _message, _state, options) => {
|
|
22
|
+
const params = options?.parameters;
|
|
23
|
+
const requested = Number.isFinite(params?.limit)
|
|
24
|
+
? Number(params?.limit)
|
|
25
|
+
: DEFAULT_LIMIT;
|
|
26
|
+
const limit = Math.max(1, Math.min(MAX_LIMIT, Math.trunc(requested)));
|
|
27
|
+
const { contacts } = await Contacts.listContacts({ limit });
|
|
28
|
+
const names = contacts
|
|
29
|
+
.map((c) => c.displayName)
|
|
30
|
+
.filter((name) => name.length > 0);
|
|
31
|
+
return {
|
|
32
|
+
text: names.length === 0 ? "No contacts found." : names.join(", "),
|
|
33
|
+
success: true,
|
|
34
|
+
data: { count: names.length, names },
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
parameters: [
|
|
38
|
+
{
|
|
39
|
+
name: "limit",
|
|
40
|
+
description: "Maximum number of contacts to return (1-200).",
|
|
41
|
+
required: false,
|
|
42
|
+
schema: {
|
|
43
|
+
type: "number",
|
|
44
|
+
minimum: 1,
|
|
45
|
+
maximum: MAX_LIMIT,
|
|
46
|
+
default: DEFAULT_LIMIT,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
};
|
|
51
|
+
const rawContactsPlugin = {
|
|
52
|
+
name: CONTACTS_APP_NAME,
|
|
53
|
+
description: "Contacts overlay: read the device address book via the @elizaos/capacitor-contacts native plugin. Actions apply only while the Contacts app session is active.",
|
|
54
|
+
actions: [listContactsAction],
|
|
55
|
+
};
|
|
56
|
+
export const appContactsPlugin = gatePluginSessionForHostedApp(rawContactsPlugin, CONTACTS_APP_NAME);
|
|
57
|
+
export default appContactsPlugin;
|
|
@@ -2,6 +2,8 @@ export { handleDropRoutes } from "./drop-routes.js";
|
|
|
2
2
|
export type { DropStatus, MintResult } from "./drop-service.js";
|
|
3
3
|
export { DropService } from "./drop-service.js";
|
|
4
4
|
export { getElizaMakerDropService, setElizaMakerDropService, } from "./drop-service-registry.js";
|
|
5
|
+
export { initializeRegistryAndDropServices } from "./init-registry-services.js";
|
|
6
|
+
export { getElizaMakerRegistryService, setElizaMakerRegistryService, } from "./registry-service-registry.js";
|
|
5
7
|
export { buildWhitelistTree, generateProof } from "./merkle-tree.js";
|
|
6
8
|
export { initializeOGCode } from "./og-tracker.js";
|
|
7
9
|
export { default, elizaMakerPlugin } from "./plugin.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../apps/app-elizamaker/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACxD,YAAY,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EACL,2BAA2B,EAC3B,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,WAAW,GACZ,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../apps/app-elizamaker/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,iCAAiC,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACxD,YAAY,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EACL,2BAA2B,EAC3B,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,WAAW,GACZ,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { handleDropRoutes } from "./drop-routes.js";
|
|
2
2
|
export { DropService } from "./drop-service.js";
|
|
3
3
|
export { getElizaMakerDropService, setElizaMakerDropService, } from "./drop-service-registry.js";
|
|
4
|
+
export { initializeRegistryAndDropServices } from "./init-registry-services.js";
|
|
5
|
+
export { getElizaMakerRegistryService, setElizaMakerRegistryService, } from "./registry-service-registry.js";
|
|
4
6
|
export { buildWhitelistTree, generateProof } from "./merkle-tree.js";
|
|
5
7
|
export { initializeOGCode } from "./og-tracker.js";
|
|
6
8
|
export { default, elizaMakerPlugin } from "./plugin.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ERC-8004 RegistryService + DropService bootstrap.
|
|
3
|
+
*
|
|
4
|
+
* Previously inlined in `packages/agent/src/api/server.ts`
|
|
5
|
+
* (`startDeferredStartupWork`). Moving the construction here keeps the
|
|
6
|
+
* agent server out of the ERC-8004 contract wiring; consumers that need
|
|
7
|
+
* the live services read them through the in-process registries
|
|
8
|
+
* (drop-service-registry / registry-service-registry).
|
|
9
|
+
*
|
|
10
|
+
* Timing: the original block ran post-listen via setImmediate-equivalent
|
|
11
|
+
* deferred startup. This function preserves that behavior by spawning the
|
|
12
|
+
* actual work asynchronously — callers invoke it without awaiting from
|
|
13
|
+
* within Plugin.init, which lets the runtime finish booting before the
|
|
14
|
+
* outbound RPC probe runs.
|
|
15
|
+
*/
|
|
16
|
+
import type { IAgentRuntime } from "@elizaos/core";
|
|
17
|
+
export declare function initializeRegistryAndDropServices(runtime: IAgentRuntime): Promise<void>;
|
|
18
|
+
//# sourceMappingURL=init-registry-services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init-registry-services.d.ts","sourceRoot":"","sources":["../../../../../../apps/app-elizamaker/src/init-registry-services.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AA+BnD,wBAAsB,iCAAiC,CACrD,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,IAAI,CAAC,CAuDf"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ERC-8004 RegistryService + DropService bootstrap.
|
|
3
|
+
*
|
|
4
|
+
* Previously inlined in `packages/agent/src/api/server.ts`
|
|
5
|
+
* (`startDeferredStartupWork`). Moving the construction here keeps the
|
|
6
|
+
* agent server out of the ERC-8004 contract wiring; consumers that need
|
|
7
|
+
* the live services read them through the in-process registries
|
|
8
|
+
* (drop-service-registry / registry-service-registry).
|
|
9
|
+
*
|
|
10
|
+
* Timing: the original block ran post-listen via setImmediate-equivalent
|
|
11
|
+
* deferred startup. This function preserves that behavior by spawning the
|
|
12
|
+
* actual work asynchronously — callers invoke it without awaiting from
|
|
13
|
+
* within Plugin.init, which lets the runtime finish booting before the
|
|
14
|
+
* outbound RPC probe runs.
|
|
15
|
+
*/
|
|
16
|
+
import { RegistryService } from "@elizaos/agent/api/registry-service";
|
|
17
|
+
import { normalizeJsonRpcUrl, probeJsonRpcEndpoint, TxService, } from "@elizaos/agent/api/tx-service";
|
|
18
|
+
import { logger } from "@elizaos/core";
|
|
19
|
+
import { DropService } from "./drop-service.js";
|
|
20
|
+
import { setElizaMakerDropService } from "./drop-service-registry.js";
|
|
21
|
+
import { initializeOGCode } from "./og-tracker.js";
|
|
22
|
+
import { setElizaMakerRegistryService } from "./registry-service-registry.js";
|
|
23
|
+
function readRuntimeSetting(runtime, key) {
|
|
24
|
+
const value = runtime.getSetting?.(key);
|
|
25
|
+
return typeof value === "string" && value.length > 0 ? value : undefined;
|
|
26
|
+
}
|
|
27
|
+
export async function initializeRegistryAndDropServices(runtime) {
|
|
28
|
+
initializeOGCode();
|
|
29
|
+
const { loadElizaConfig } = await import("@elizaos/agent/config/config");
|
|
30
|
+
const config = loadElizaConfig();
|
|
31
|
+
const evmKey = readRuntimeSetting(runtime, "EVM_PRIVATE_KEY") ?? config.env?.EVM_PRIVATE_KEY;
|
|
32
|
+
const registryConfig = config.registry;
|
|
33
|
+
if (!evmKey ||
|
|
34
|
+
!registryConfig?.registryAddress ||
|
|
35
|
+
!registryConfig.mainnetRpc) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
try {
|
|
39
|
+
const registryRpcUrl = normalizeJsonRpcUrl(registryConfig.mainnetRpc);
|
|
40
|
+
const registryRpcProbe = await probeJsonRpcEndpoint(registryRpcUrl);
|
|
41
|
+
if (!registryRpcProbe.ok) {
|
|
42
|
+
logger.warn({
|
|
43
|
+
reason: registryRpcProbe.reason,
|
|
44
|
+
}, "ERC-8004 registry service disabled because mainnetRpc is unavailable");
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const txService = new TxService(registryRpcUrl, evmKey);
|
|
48
|
+
const registryService = new RegistryService(txService, registryConfig.registryAddress);
|
|
49
|
+
setElizaMakerRegistryService(registryService);
|
|
50
|
+
if (registryConfig.collectionAddress) {
|
|
51
|
+
const dropEnabled = config.features?.dropEnabled === true;
|
|
52
|
+
const dropService = new DropService(txService, registryConfig.collectionAddress, dropEnabled);
|
|
53
|
+
setElizaMakerDropService(dropService);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
setElizaMakerDropService(null);
|
|
57
|
+
}
|
|
58
|
+
logger.info(`ERC-8004 registry service initialised (${registryConfig.registryAddress})`);
|
|
59
|
+
}
|
|
60
|
+
catch (err) {
|
|
61
|
+
logger.warn({ err }, "Failed to initialize ERC-8004 registry service");
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../../apps/app-elizamaker/src/plugin.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAgB,MAAM,EAAS,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../../apps/app-elizamaker/src/plugin.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAgB,MAAM,EAAS,MAAM,eAAe,CAAC;AA2FjE,eAAO,MAAM,gBAAgB,EAAE,MAW9B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getWalletAddresses, readJsonBody as httpReadJsonBody, sendJson as httpSendJson, sendJsonError as httpSendJsonError, } from "@elizaos/agent";
|
|
2
2
|
import { handleDropRoutes } from "./drop-routes.js";
|
|
3
3
|
import { getElizaMakerDropService } from "./drop-service-registry.js";
|
|
4
|
+
import { initializeRegistryAndDropServices } from "./init-registry-services.js";
|
|
4
5
|
import { readOGCode } from "./og-tracker.js";
|
|
5
6
|
function json(res, data, status = 200) {
|
|
6
7
|
httpSendJson(res, data, status);
|
|
@@ -76,5 +77,11 @@ export const elizaMakerPlugin = {
|
|
|
76
77
|
name: "@elizaos/app-elizamaker",
|
|
77
78
|
description: "ElizaMaker ERC-8041 drop, mint, whitelist, and Merkle proof routes.",
|
|
78
79
|
routes: elizaMakerRoutes,
|
|
80
|
+
init: async (_config, runtime) => {
|
|
81
|
+
// Bootstrap RegistryService + DropService asynchronously so that plugin
|
|
82
|
+
// registration does not block on outbound RPC probes. Mirrors the
|
|
83
|
+
// pre-extraction startDeferredStartupWork timing in server.ts.
|
|
84
|
+
void initializeRegistryAndDropServices(runtime);
|
|
85
|
+
},
|
|
79
86
|
};
|
|
80
87
|
export default elizaMakerPlugin;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { RegistryService } from "@elizaos/agent/api/registry-service";
|
|
2
|
+
export declare function setElizaMakerRegistryService(service: RegistryService | null): void;
|
|
3
|
+
export declare function getElizaMakerRegistryService(): RegistryService | null;
|
|
4
|
+
//# sourceMappingURL=registry-service-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry-service-registry.d.ts","sourceRoot":"","sources":["../../../../../../apps/app-elizamaker/src/registry-service-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAI3E,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,eAAe,GAAG,IAAI,GAC9B,IAAI,CAEN;AAED,wBAAgB,4BAA4B,IAAI,eAAe,GAAG,IAAI,CAErE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"automation-node-contributor.d.ts","sourceRoot":"","sources":["../../../../../../apps/app-lifeops/src/automation-node-contributor.ts"],"names":[],"mappings":"AAoMA,wBAAgB,wCAAwC,IAAI,IAAI,CAE/D"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { registerAutomationNodeContributor, } from "@elizaos/app-core/api/automation-node-contributors";
|
|
2
|
+
import { logger } from "@elizaos/core";
|
|
3
|
+
import { LifeOpsService } from "./lifeops/service";
|
|
4
|
+
async function resolveGoogleStatus(lifeOps) {
|
|
5
|
+
try {
|
|
6
|
+
return await lifeOps.getGoogleConnectorStatus(new URL("http://127.0.0.1/api/lifeops/connectors/google/status"), undefined, "owner");
|
|
7
|
+
}
|
|
8
|
+
catch (error) {
|
|
9
|
+
logger.warn(`[lifeops] Failed to resolve Google connector status: ${error instanceof Error ? error.message : String(error)}`);
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
async function resolveTelegramStatus(lifeOps) {
|
|
14
|
+
try {
|
|
15
|
+
return await lifeOps.getTelegramConnectorStatus("owner");
|
|
16
|
+
}
|
|
17
|
+
catch (error) {
|
|
18
|
+
logger.warn(`[lifeops] Failed to resolve Telegram connector status: ${error instanceof Error ? error.message : String(error)}`);
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
async function resolveSignalStatus(lifeOps) {
|
|
23
|
+
try {
|
|
24
|
+
return await lifeOps.getSignalConnectorStatus("owner");
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
logger.warn(`[lifeops] Failed to resolve Signal connector status: ${error instanceof Error ? error.message : String(error)}`);
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
async function resolveDiscordStatus(lifeOps) {
|
|
32
|
+
try {
|
|
33
|
+
return await lifeOps.getDiscordConnectorStatus("owner");
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
logger.warn(`[lifeops] Failed to resolve Discord connector status: ${error instanceof Error ? error.message : String(error)}`);
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function buildLifeOpsNode(id, label, description, enabled, disabledReason) {
|
|
41
|
+
return {
|
|
42
|
+
id,
|
|
43
|
+
label,
|
|
44
|
+
description,
|
|
45
|
+
class: "integration",
|
|
46
|
+
source: "lifeops",
|
|
47
|
+
backingCapability: id,
|
|
48
|
+
ownerScoped: true,
|
|
49
|
+
requiresSetup: true,
|
|
50
|
+
availability: enabled ? "enabled" : "disabled",
|
|
51
|
+
...(enabled ? {} : { disabledReason }),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function buildLifeOpsEventNode(eventKind, label, description, enabled, disabledReason) {
|
|
55
|
+
return {
|
|
56
|
+
id: `event:${eventKind}`,
|
|
57
|
+
label,
|
|
58
|
+
description,
|
|
59
|
+
class: "trigger",
|
|
60
|
+
source: "lifeops_event",
|
|
61
|
+
backingCapability: eventKind,
|
|
62
|
+
ownerScoped: true,
|
|
63
|
+
requiresSetup: !enabled,
|
|
64
|
+
availability: enabled ? "enabled" : "disabled",
|
|
65
|
+
...(enabled ? {} : { disabledReason }),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
async function buildLifeOpsAutomationNodes({ runtime, adminEntityId, }) {
|
|
69
|
+
const lifeOps = new LifeOpsService(runtime, { ownerEntityId: adminEntityId });
|
|
70
|
+
const [googleStatus, telegramStatus, signalStatus, discordStatus] = await Promise.all([
|
|
71
|
+
resolveGoogleStatus(lifeOps),
|
|
72
|
+
resolveTelegramStatus(lifeOps),
|
|
73
|
+
resolveSignalStatus(lifeOps),
|
|
74
|
+
resolveDiscordStatus(lifeOps),
|
|
75
|
+
]);
|
|
76
|
+
const googleCapabilities = new Set(googleStatus?.grantedCapabilities ?? []);
|
|
77
|
+
const hasGoogleCapability = (needle) => [...googleCapabilities].some((capability) => capability.includes(needle));
|
|
78
|
+
const githubToken = runtime.getSetting("GITHUB_TOKEN");
|
|
79
|
+
const githubConnected = typeof githubToken === "string" && githubToken.trim().length > 0;
|
|
80
|
+
const calendarConnected = Boolean(googleStatus?.connected && hasGoogleCapability("calendar"));
|
|
81
|
+
return [
|
|
82
|
+
buildLifeOpsNode("lifeops:gmail", "Gmail", "Owner-scoped Gmail triage, drafting, and send operations.", Boolean(googleStatus?.connected && hasGoogleCapability("gmail")), "Connect the owner Google account with Gmail access."),
|
|
83
|
+
buildLifeOpsNode("lifeops:calendar", "Calendar", "Owner-scoped calendar reading and event creation.", calendarConnected, "Connect the owner Google account with Calendar access."),
|
|
84
|
+
buildLifeOpsNode("lifeops:telegram", "Telegram", "Owner-scoped Telegram account messaging.", Boolean(telegramStatus?.connected), "Connect the owner Telegram account."),
|
|
85
|
+
buildLifeOpsNode("lifeops:signal", "Signal", "Owner-scoped Signal messaging.", Boolean(signalStatus?.connected), "Pair the owner Signal account."),
|
|
86
|
+
buildLifeOpsNode("lifeops:discord", "Discord", "Owner-scoped Discord messaging through the active owner session.", Boolean(discordStatus?.connected && discordStatus.available), "Connect the owner Discord session."),
|
|
87
|
+
buildLifeOpsNode("lifeops:github", "GitHub", "Owner-scoped GitHub access for repositories, issues, and pull requests.", githubConnected, "Link the owner GitHub account."),
|
|
88
|
+
buildLifeOpsEventNode("calendar.event.ended", "Calendar event ended", "Fires a workflow after a synced calendar event's end time has passed.", calendarConnected, "Connect the owner Google account with Calendar access."),
|
|
89
|
+
];
|
|
90
|
+
}
|
|
91
|
+
export function registerLifeOpsAutomationNodeContributor() {
|
|
92
|
+
registerAutomationNodeContributor("lifeops", buildLifeOpsAutomationNodes);
|
|
93
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Continuity / paired-iPhone presence probe for macOS hosts.
|
|
3
3
|
*
|
|
4
|
-
* When the
|
|
4
|
+
* When the Eliza iOS app is not installed, the owner's iPhone is still
|
|
5
5
|
* visible to the Mac via:
|
|
6
6
|
* - `xcrun devicectl list devices --json-output -` — developer-tools
|
|
7
7
|
* device list that includes paired iPhones with current connection
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Continuity / paired-iPhone presence probe for macOS hosts.
|
|
3
3
|
*
|
|
4
|
-
* When the
|
|
4
|
+
* When the Eliza iOS app is not installed, the owner's iPhone is still
|
|
5
5
|
* visible to the Mac via:
|
|
6
6
|
* - `xcrun devicectl list devices --json-output -` — developer-tools
|
|
7
7
|
* device list that includes paired iPhones with current connection
|
|
@@ -297,7 +297,7 @@ async function findTabByIdOrPartition(tabId, partition, env) {
|
|
|
297
297
|
export async function ensureDiscordTab(args) {
|
|
298
298
|
const env = args.env ?? process.env;
|
|
299
299
|
if (!discordBrowserWorkspaceAvailable(env)) {
|
|
300
|
-
throw new Error("Discord connector requires the
|
|
300
|
+
throw new Error("Discord connector requires the Eliza Desktop Browser workspace.");
|
|
301
301
|
}
|
|
302
302
|
const partition = discordPartitionFor(args.agentId, args.side);
|
|
303
303
|
const existing = await findTabByIdOrPartition(args.existingTabId ?? null, partition, env);
|
|
@@ -9,7 +9,7 @@ const DISCORD_DESKTOP_POLL_INTERVAL_MS = 500;
|
|
|
9
9
|
const DISCORD_DESKTOP_FETCH_TIMEOUT_MS = 900;
|
|
10
10
|
const DISCORD_DESKTOP_EVALUATE_TIMEOUT_MS = 2_500;
|
|
11
11
|
function configuredDiscordDesktopCdpPort(env = process.env) {
|
|
12
|
-
const raw = env.
|
|
12
|
+
const raw = env.ELIZA_DISCORD_DESKTOP_CDP_PORT?.trim();
|
|
13
13
|
if (!raw) {
|
|
14
14
|
return DEFAULT_DISCORD_DESKTOP_CDP_PORT;
|
|
15
15
|
}
|
|
@@ -19,7 +19,7 @@ function configuredDiscordDesktopCdpPort(env = process.env) {
|
|
|
19
19
|
: DEFAULT_DISCORD_DESKTOP_CDP_PORT;
|
|
20
20
|
}
|
|
21
21
|
function discordDesktopCdpDisabled(env = process.env) {
|
|
22
|
-
return (env.
|
|
22
|
+
return (env.ELIZA_DISABLE_DISCORD_DESKTOP_CDP === "1" ||
|
|
23
23
|
env.ELIZA_DISABLE_DISCORD_DESKTOP_CDP === "1");
|
|
24
24
|
}
|
|
25
25
|
function isRecord(value) {
|
|
@@ -50,7 +50,7 @@ export async function probeFullDiskAccess(overrides) {
|
|
|
50
50
|
status: "revoked",
|
|
51
51
|
checkedAt,
|
|
52
52
|
chatDbPath,
|
|
53
|
-
reason: "Full Disk Access is required to read chat.db. Grant it to the app running
|
|
53
|
+
reason: "Full Disk Access is required to read chat.db. Grant it to the app running Eliza, such as Eliza.app, Terminal, iTerm, or Cursor, then relaunch.",
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
return {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* (Commandment 2).
|
|
28
28
|
* - Without Cloud, paid features stay OFF until the user opts in
|
|
29
29
|
* locally (which then requires them to bring their own travel-provider
|
|
30
|
-
* API credentials via `
|
|
30
|
+
* API credentials via `ELIZA_DUFFEL_DIRECT=1` + `DUFFEL_API_KEY`).
|
|
31
31
|
*/
|
|
32
32
|
export type LifeOpsFeatureKey = "travel.search_flight" | "travel.search_hotel" | "travel.book_flight" | "travel.book_hotel" | "notifications.push" | "cross_channel.escalate" | "browser.automation" | "email.draft" | "email.send" | "cloud.duffel";
|
|
33
33
|
export type FeatureFlagSource = "default" | "local" | "cloud";
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* (Commandment 2).
|
|
28
28
|
* - Without Cloud, paid features stay OFF until the user opts in
|
|
29
29
|
* locally (which then requires them to bring their own travel-provider
|
|
30
|
-
* API credentials via `
|
|
30
|
+
* API credentials via `ELIZA_DUFFEL_DIRECT=1` + `DUFFEL_API_KEY`).
|
|
31
31
|
*/
|
|
32
32
|
/**
|
|
33
33
|
* Compile-time baseline. Conservative — assumes no Cloud account.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-fetch.d.ts","sourceRoot":"","sources":["../../../../../../../apps/app-lifeops/src/lifeops/google-fetch.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"google-fetch.d.ts","sourceRoot":"","sources":["../../../../../../../apps/app-lifeops/src/lifeops/google-fetch.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAmB3D;AAsCD;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAClC,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,WAAW,GACjB,OAAO,CAAC,QAAQ,CAAC,CAgFnB"}
|
|
@@ -8,7 +8,7 @@ const TIMEOUT_MS = 10_000;
|
|
|
8
8
|
* Used in tests to point all Google API traffic at a Mockoon environment.
|
|
9
9
|
*/
|
|
10
10
|
export function rewriteGoogleUrlForMock(url) {
|
|
11
|
-
const mockBase = process.env.
|
|
11
|
+
const mockBase = process.env.ELIZA_MOCK_GOOGLE_BASE;
|
|
12
12
|
if (!mockBase)
|
|
13
13
|
return url;
|
|
14
14
|
const mockUrl = new URL(mockBase);
|
|
@@ -39,13 +39,13 @@ function guardRealGmailWrite(method, originalUrl, targetUrl) {
|
|
|
39
39
|
if (!isGoogleGmailWrite(method, originalUrl)) {
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
|
-
if (process.env.
|
|
42
|
+
if (process.env.ELIZA_ALLOW_REAL_GMAIL_WRITES === "1") {
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
if (targetUrl !== originalUrl) {
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
|
-
throw new GoogleApiError(409, "Real Gmail writes require
|
|
48
|
+
throw new GoogleApiError(409, "Real Gmail writes require ELIZA_ALLOW_REAL_GMAIL_WRITES=1. Point ELIZA_MOCK_GOOGLE_BASE or ELIZA_MOCK_GOOGLE_BASE at a loopback mock for tests or set the allow env var for an explicitly confirmed real write.");
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* Fetch wrapper for Google APIs with retry, timeout, and structured logging.
|
|
@@ -181,7 +181,7 @@ export class GoogleManagedClient {
|
|
|
181
181
|
const query = new URLSearchParams({ side });
|
|
182
182
|
if (grantId)
|
|
183
183
|
query.set("grantId", grantId);
|
|
184
|
-
return this.request(`
|
|
184
|
+
return this.request(`eliza/google/status?${query.toString()}`, {
|
|
185
185
|
method: "GET",
|
|
186
186
|
});
|
|
187
187
|
}
|
|
@@ -189,7 +189,7 @@ export class GoogleManagedClient {
|
|
|
189
189
|
const query = new URLSearchParams();
|
|
190
190
|
if (side)
|
|
191
191
|
query.set("side", side);
|
|
192
|
-
return this.request(`
|
|
192
|
+
return this.request(`eliza/google/accounts?${query.toString()}`, { method: "GET" });
|
|
193
193
|
}
|
|
194
194
|
async startConnector(args) {
|
|
195
195
|
const redirectUri = args.redirectUrl ??
|
|
@@ -214,7 +214,7 @@ export class GoogleManagedClient {
|
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
216
|
async disconnectConnector(connectionId, side) {
|
|
217
|
-
await this.request("
|
|
217
|
+
await this.request("eliza/google/disconnect", {
|
|
218
218
|
method: "POST",
|
|
219
219
|
body: JSON.stringify({
|
|
220
220
|
connectionId: connectionId ?? null,
|
|
@@ -232,7 +232,7 @@ export class GoogleManagedClient {
|
|
|
232
232
|
});
|
|
233
233
|
if (args.grantId)
|
|
234
234
|
query.set("grantId", args.grantId);
|
|
235
|
-
return this.request(`
|
|
235
|
+
return this.request(`eliza/google/calendar/feed?${query.toString()}`, {
|
|
236
236
|
method: "GET",
|
|
237
237
|
});
|
|
238
238
|
}
|
|
@@ -242,7 +242,7 @@ export class GoogleManagedClient {
|
|
|
242
242
|
});
|
|
243
243
|
if (args.grantId)
|
|
244
244
|
query.set("grantId", args.grantId);
|
|
245
|
-
return this.request(`
|
|
245
|
+
return this.request(`eliza/google/calendar/calendars?${query.toString()}`, {
|
|
246
246
|
method: "GET",
|
|
247
247
|
});
|
|
248
248
|
}
|
|
@@ -252,7 +252,7 @@ export class GoogleManagedClient {
|
|
|
252
252
|
startAt: normalizeManagedCalendarDateTime(request.startAt ?? "", request.timeZone),
|
|
253
253
|
endAt: normalizeManagedCalendarDateTime(request.endAt ?? "", request.timeZone),
|
|
254
254
|
};
|
|
255
|
-
return this.request("
|
|
255
|
+
return this.request("eliza/google/calendar/events", {
|
|
256
256
|
method: "POST",
|
|
257
257
|
body: JSON.stringify(normalizedRequest),
|
|
258
258
|
});
|
|
@@ -274,7 +274,7 @@ export class GoogleManagedClient {
|
|
|
274
274
|
timeZone: request.timeZone,
|
|
275
275
|
attendees: request.attendees ?? undefined,
|
|
276
276
|
};
|
|
277
|
-
return this.request(`
|
|
277
|
+
return this.request(`eliza/google/calendar/events/${encodeURIComponent(request.eventId)}`, {
|
|
278
278
|
method: "PATCH",
|
|
279
279
|
body: JSON.stringify(normalizedRequest),
|
|
280
280
|
});
|
|
@@ -286,7 +286,7 @@ export class GoogleManagedClient {
|
|
|
286
286
|
});
|
|
287
287
|
if (request.grantId)
|
|
288
288
|
query.set("grantId", request.grantId);
|
|
289
|
-
return this.request(`
|
|
289
|
+
return this.request(`eliza/google/calendar/events/${encodeURIComponent(request.eventId)}?${query.toString()}`, {
|
|
290
290
|
method: "DELETE",
|
|
291
291
|
});
|
|
292
292
|
}
|
|
@@ -297,7 +297,7 @@ export class GoogleManagedClient {
|
|
|
297
297
|
});
|
|
298
298
|
if (args.grantId)
|
|
299
299
|
query.set("grantId", args.grantId);
|
|
300
|
-
return this.request(`
|
|
300
|
+
return this.request(`eliza/google/gmail/triage?${query.toString()}`, {
|
|
301
301
|
method: "GET",
|
|
302
302
|
});
|
|
303
303
|
}
|
|
@@ -309,7 +309,7 @@ export class GoogleManagedClient {
|
|
|
309
309
|
});
|
|
310
310
|
if (args.grantId)
|
|
311
311
|
query.set("grantId", args.grantId);
|
|
312
|
-
return this.request(`
|
|
312
|
+
return this.request(`eliza/google/gmail/search?${query.toString()}`, {
|
|
313
313
|
method: "GET",
|
|
314
314
|
});
|
|
315
315
|
}
|
|
@@ -321,7 +321,7 @@ export class GoogleManagedClient {
|
|
|
321
321
|
});
|
|
322
322
|
if (args.grantId)
|
|
323
323
|
query.set("grantId", args.grantId);
|
|
324
|
-
return this.request(`
|
|
324
|
+
return this.request(`eliza/google/gmail/subscription-headers?${query.toString()}`, {
|
|
325
325
|
method: "GET",
|
|
326
326
|
});
|
|
327
327
|
}
|
|
@@ -332,18 +332,18 @@ export class GoogleManagedClient {
|
|
|
332
332
|
});
|
|
333
333
|
if (args.grantId)
|
|
334
334
|
query.set("grantId", args.grantId);
|
|
335
|
-
return this.request(`
|
|
335
|
+
return this.request(`eliza/google/gmail/read?${query.toString()}`, {
|
|
336
336
|
method: "GET",
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
339
|
async sendGmailReply(request) {
|
|
340
|
-
return this.request("
|
|
340
|
+
return this.request("eliza/google/gmail/reply-send", {
|
|
341
341
|
method: "POST",
|
|
342
342
|
body: JSON.stringify(request),
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
345
|
async sendGmailMessage(request) {
|
|
346
|
-
return this.request("
|
|
346
|
+
return this.request("eliza/google/gmail/message-send", {
|
|
347
347
|
method: "POST",
|
|
348
348
|
body: JSON.stringify(request),
|
|
349
349
|
});
|
|
@@ -47,7 +47,7 @@ function isFalsyEnv(value) {
|
|
|
47
47
|
normalized === "off");
|
|
48
48
|
}
|
|
49
49
|
function isFixtureHealthBackendEnabled() {
|
|
50
|
-
const explicit = process.env.
|
|
50
|
+
const explicit = process.env.ELIZA_TEST_HEALTH_BACKEND;
|
|
51
51
|
if (isFalsyEnv(explicit))
|
|
52
52
|
return false;
|
|
53
53
|
if (isTruthyEnv(explicit))
|
|
@@ -96,8 +96,8 @@ function authHeader(token) {
|
|
|
96
96
|
return `${type} ${token.accessToken}`;
|
|
97
97
|
}
|
|
98
98
|
function providerMockBase(provider) {
|
|
99
|
-
const key = `
|
|
100
|
-
const value = process.env[key] ?? process.env.
|
|
99
|
+
const key = `ELIZA_MOCK_${provider.toUpperCase()}_BASE`;
|
|
100
|
+
const value = process.env[key] ?? process.env.ELIZA_MOCK_HEALTH_BASE;
|
|
101
101
|
if (!value) {
|
|
102
102
|
return null;
|
|
103
103
|
}
|
|
@@ -119,7 +119,7 @@ function readEnv(env, provider, suffix) {
|
|
|
119
119
|
const spec = HEALTH_OAUTH_SPECS[provider];
|
|
120
120
|
const keys = [
|
|
121
121
|
`ELIZA_${spec.envPrefix}_${suffix}`,
|
|
122
|
-
`
|
|
122
|
+
`ELIZA_${spec.envPrefix}_${suffix}`,
|
|
123
123
|
];
|
|
124
124
|
for (const key of keys) {
|
|
125
125
|
const value = env[key]?.trim();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Eliza-runtime client for Eliza Cloud's PayPal bridge endpoints.
|
|
3
3
|
*
|
|
4
4
|
* Same pattern as PlaidManagedClient: cloud holds the PAYPAL_* secrets,
|
|
5
5
|
* we just authenticate with the user's Eliza Cloud API key and forward
|