@elizaos/agent 2.0.0-alpha.144 → 2.0.0-alpha.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/app-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/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.map +1 -0
- package/apps/app-lifeops/src/inbox/config.d.ts.map +1 -0
- package/{packages/agent → apps/app-lifeops}/src/inbox/config.js +1 -1
- package/apps/app-lifeops/src/inbox/message-fetcher.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/reflection.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/repository.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/triage-classifier.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/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/screen-context.d.ts +52 -0
- package/apps/app-lifeops/src/lifeops/screen-context.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/screen-context.js +332 -0
- package/apps/app-lifeops/src/plugin.d.ts +3 -0
- package/apps/app-lifeops/src/plugin.d.ts.map +1 -1
- package/apps/app-lifeops/src/plugin.js +16 -3
- package/apps/app-lifeops/src/providers/inbox-triage.d.ts +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/package.json +6 -4
- package/packages/agent/src/actions/calendar.d.ts +1 -18
- package/packages/agent/src/actions/calendar.d.ts.map +1 -1
- package/packages/agent/src/actions/calendar.js +1 -3143
- 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 +1 -1
- package/packages/agent/src/actions/context-signal-lexicon.d.ts.map +1 -1
- package/packages/agent/src/actions/context-signal-lexicon.js +6 -0
- package/packages/agent/src/actions/eject-plugin.d.ts +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/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 +1 -32
- package/packages/agent/src/actions/gmail.d.ts.map +1 -1
- package/packages/agent/src/actions/gmail.js +1 -1734
- package/packages/agent/src/actions/inbox-digest.d.ts +1 -1
- package/packages/agent/src/actions/inbox-digest.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox-digest.js +1 -1
- package/packages/agent/src/actions/inbox-respond.d.ts +1 -1
- package/packages/agent/src/actions/inbox-respond.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox-respond.js +1 -1
- package/packages/agent/src/actions/inbox-triage.d.ts +1 -1
- package/packages/agent/src/actions/inbox-triage.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox-triage.js +1 -1
- package/packages/agent/src/actions/inbox.d.ts +1 -2
- package/packages/agent/src/actions/inbox.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox.js +1 -856
- package/packages/agent/src/actions/index.d.ts +13 -0
- package/packages/agent/src/actions/index.d.ts.map +1 -1
- package/packages/agent/src/actions/index.js +13 -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 +1 -68
- package/packages/agent/src/actions/life-goal-extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life-goal-extractor.js +1 -354
- package/packages/agent/src/actions/life-param-extractor.d.ts +1 -77
- package/packages/agent/src/actions/life-param-extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life-param-extractor.js +1 -423
- package/packages/agent/src/actions/life-recent-context.d.ts +1 -8
- package/packages/agent/src/actions/life-recent-context.d.ts.map +1 -1
- package/packages/agent/src/actions/life-recent-context.js +1 -84
- package/packages/agent/src/actions/life-update-extractor.d.ts +1 -26
- package/packages/agent/src/actions/life-update-extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life-update-extractor.js +1 -195
- package/packages/agent/src/actions/life.d.ts +1 -8
- package/packages/agent/src/actions/life.d.ts.map +1 -1
- package/packages/agent/src/actions/life.extractor.d.ts +1 -17
- package/packages/agent/src/actions/life.extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life.extractor.js +1 -264
- package/packages/agent/src/actions/life.js +1 -3379
- package/packages/agent/src/actions/lifeops-extraction-config.d.ts +1 -15
- package/packages/agent/src/actions/lifeops-extraction-config.d.ts.map +1 -1
- package/packages/agent/src/actions/lifeops-extraction-config.js +1 -25
- package/packages/agent/src/actions/lifeops-google-helpers.d.ts +1 -61
- package/packages/agent/src/actions/lifeops-google-helpers.d.ts.map +1 -1
- package/packages/agent/src/actions/lifeops-google-helpers.js +1 -607
- 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.map +1 -1
- package/packages/agent/src/actions/manage-tasks.js +51 -15
- 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-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/send-message.d.ts +0 -7
- package/packages/agent/src/actions/send-message.d.ts.map +1 -1
- package/packages/agent/src/actions/send-message.js +170 -49
- package/packages/agent/src/actions/sync-plugin.d.ts +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/timezone-normalization.d.ts +1 -2
- package/packages/agent/src/actions/timezone-normalization.d.ts.map +1 -1
- package/packages/agent/src/actions/timezone-normalization.js +1 -107
- 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 +1 -2
- package/packages/agent/src/actions/update-owner-profile.d.ts.map +1 -1
- package/packages/agent/src/actions/update-owner-profile.js +1 -131
- 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/api/agent-admin-routes.d.ts.map +1 -1
- package/packages/agent/src/api/agent-admin-routes.js +1 -1
- package/packages/agent/src/api/binance-skill-helpers.d.ts.map +1 -1
- package/packages/agent/src/api/binance-skill-helpers.js +8 -3
- package/packages/agent/src/api/chat-routes.d.ts.map +1 -1
- package/packages/agent/src/api/chat-routes.js +20 -5
- package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts +1 -22
- package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts.map +1 -1
- package/packages/agent/src/api/coding-agents-auth-sanitize.js +1 -39
- package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts +1 -28
- package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts.map +1 -1
- package/packages/agent/src/api/coding-agents-preflight-normalize.js +1 -45
- package/packages/agent/src/api/coordinator-types.d.ts +1 -46
- package/packages/agent/src/api/coordinator-types.d.ts.map +1 -1
- package/packages/agent/src/api/coordinator-types.js +1 -1
- package/packages/agent/src/api/coordinator-wiring.d.ts +1 -45
- package/packages/agent/src/api/coordinator-wiring.d.ts.map +1 -1
- package/packages/agent/src/api/coordinator-wiring.js +1 -108
- package/packages/agent/src/api/index.d.ts +1 -1
- package/packages/agent/src/api/index.d.ts.map +1 -1
- package/packages/agent/src/api/index.js +1 -1
- package/packages/agent/src/api/lifeops-browser-packaging.d.ts +1 -15
- package/packages/agent/src/api/lifeops-browser-packaging.d.ts.map +1 -1
- package/packages/agent/src/api/lifeops-browser-packaging.js +1 -305
- package/packages/agent/src/api/lifeops-routes.d.ts +1 -19
- package/packages/agent/src/api/lifeops-routes.d.ts.map +1 -1
- package/packages/agent/src/api/lifeops-routes.js +1 -1173
- package/packages/agent/src/api/server.d.ts.map +1 -1
- package/packages/agent/src/api/server.js +6 -6
- package/packages/agent/src/api/task-agent-message-routing.d.ts +1 -9
- package/packages/agent/src/api/task-agent-message-routing.d.ts.map +1 -1
- package/packages/agent/src/api/task-agent-message-routing.js +1 -62
- package/packages/agent/src/api/website-blocker-routes.d.ts +1 -6
- package/packages/agent/src/api/website-blocker-routes.d.ts.map +1 -1
- package/packages/agent/src/api/website-blocker-routes.js +1 -174
- package/packages/agent/src/config/types.agent-defaults.d.ts +1 -1
- package/packages/agent/src/config/types.agent-defaults.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-eval-client.d.ts +1 -38
- package/packages/agent/src/evals/coordinator-eval-client.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-eval-client.js +1 -138
- package/packages/agent/src/evals/coordinator-live-runner.d.ts +1 -56
- package/packages/agent/src/evals/coordinator-live-runner.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-live-runner.js +1 -546
- package/packages/agent/src/evals/coordinator-preflight.d.ts +1 -31
- package/packages/agent/src/evals/coordinator-preflight.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-preflight.js +1 -296
- package/packages/agent/src/evals/coordinator-scenarios.d.ts +1 -23
- package/packages/agent/src/evals/coordinator-scenarios.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-scenarios.js +1 -1141
- package/packages/agent/src/lifeops/app-state.d.ts +1 -10
- package/packages/agent/src/lifeops/app-state.d.ts.map +1 -1
- package/packages/agent/src/lifeops/app-state.js +1 -32
- package/packages/agent/src/lifeops/apple-reminders.d.ts +1 -57
- package/packages/agent/src/lifeops/apple-reminders.d.ts.map +1 -1
- package/packages/agent/src/lifeops/apple-reminders.js +1 -325
- package/packages/agent/src/lifeops/defaults.d.ts +1 -23
- package/packages/agent/src/lifeops/defaults.d.ts.map +1 -1
- package/packages/agent/src/lifeops/defaults.js +1 -205
- package/packages/agent/src/lifeops/engine.d.ts +1 -7
- package/packages/agent/src/lifeops/engine.d.ts.map +1 -1
- package/packages/agent/src/lifeops/engine.js +1 -389
- package/packages/agent/src/lifeops/goal-grounding.d.ts +1 -53
- package/packages/agent/src/lifeops/goal-grounding.d.ts.map +1 -1
- package/packages/agent/src/lifeops/goal-grounding.js +1 -147
- package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts +1 -11
- package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts.map +1 -1
- package/packages/agent/src/lifeops/goal-semantic-evaluator.js +1 -154
- package/packages/agent/src/lifeops/google-api-error.d.ts +1 -6
- package/packages/agent/src/lifeops/google-api-error.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-api-error.js +1 -35
- package/packages/agent/src/lifeops/google-calendar.d.ts +1 -52
- package/packages/agent/src/lifeops/google-calendar.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-calendar.js +1 -268
- package/packages/agent/src/lifeops/google-connector-gateway.d.ts +1 -18
- package/packages/agent/src/lifeops/google-connector-gateway.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-connector-gateway.js +1 -65
- package/packages/agent/src/lifeops/google-fetch.d.ts +1 -10
- package/packages/agent/src/lifeops/google-fetch.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-fetch.js +1 -85
- package/packages/agent/src/lifeops/google-gmail.d.ts +1 -53
- package/packages/agent/src/lifeops/google-gmail.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-gmail.js +1 -471
- package/packages/agent/src/lifeops/google-managed-client.d.ts +1 -126
- package/packages/agent/src/lifeops/google-managed-client.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-managed-client.js +1 -294
- package/packages/agent/src/lifeops/google-oauth.d.ts +1 -60
- package/packages/agent/src/lifeops/google-oauth.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-oauth.js +1 -494
- package/packages/agent/src/lifeops/google-scopes.d.ts +1 -12
- package/packages/agent/src/lifeops/google-scopes.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-scopes.js +1 -96
- package/packages/agent/src/lifeops/index.d.ts +1 -2
- package/packages/agent/src/lifeops/index.d.ts.map +1 -1
- package/packages/agent/src/lifeops/index.js +1 -2
- package/packages/agent/src/lifeops/owner-profile.d.ts +1 -14
- package/packages/agent/src/lifeops/owner-profile.d.ts.map +1 -1
- package/packages/agent/src/lifeops/owner-profile.js +1 -194
- package/packages/agent/src/lifeops/repository.d.ts +1 -208
- package/packages/agent/src/lifeops/repository.d.ts.map +1 -1
- package/packages/agent/src/lifeops/repository.js +1 -3187
- package/packages/agent/src/lifeops/runtime.d.ts +1 -13
- package/packages/agent/src/lifeops/runtime.d.ts.map +1 -1
- package/packages/agent/src/lifeops/runtime.js +1 -120
- package/packages/agent/src/lifeops/screen-context.d.ts +1 -51
- package/packages/agent/src/lifeops/screen-context.d.ts.map +1 -1
- package/packages/agent/src/lifeops/screen-context.js +1 -332
- package/packages/agent/src/lifeops/seed-routines.d.ts +1 -19
- package/packages/agent/src/lifeops/seed-routines.d.ts.map +1 -1
- package/packages/agent/src/lifeops/seed-routines.js +1 -111
- package/packages/agent/src/lifeops/service.d.ts +1 -274
- package/packages/agent/src/lifeops/service.d.ts.map +1 -1
- package/packages/agent/src/lifeops/service.js +1 -9260
- package/packages/agent/src/lifeops/sql.d.ts +1 -30
- package/packages/agent/src/lifeops/sql.d.ts.map +1 -1
- package/packages/agent/src/lifeops/sql.js +1 -247
- package/packages/agent/src/lifeops/time.d.ts +1 -16
- package/packages/agent/src/lifeops/time.d.ts.map +1 -1
- package/packages/agent/src/lifeops/time.js +1 -132
- package/packages/agent/src/lifeops/twilio.d.ts +1 -24
- package/packages/agent/src/lifeops/twilio.d.ts.map +1 -1
- package/packages/agent/src/lifeops/twilio.js +1 -157
- package/packages/agent/src/lifeops/x-poster.d.ts +1 -18
- package/packages/agent/src/lifeops/x-poster.d.ts.map +1 -1
- package/packages/agent/src/lifeops/x-poster.js +1 -148
- package/packages/agent/src/providers/inbox-triage.d.ts +1 -2
- package/packages/agent/src/providers/inbox-triage.d.ts.map +1 -1
- package/packages/agent/src/providers/inbox-triage.js +1 -89
- package/packages/agent/src/providers/index.d.ts +4 -1
- package/packages/agent/src/providers/index.d.ts.map +1 -1
- package/packages/agent/src/providers/index.js +4 -1
- package/packages/agent/src/providers/lifeops.d.ts +1 -2
- package/packages/agent/src/providers/lifeops.d.ts.map +1 -1
- package/packages/agent/src/providers/lifeops.js +1 -157
- 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/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/tasks.d.ts.map +1 -1
- package/packages/agent/src/providers/tasks.js +7 -7
- package/packages/agent/src/runtime/core-plugins.js +1 -1
- package/packages/agent/src/runtime/eliza-plugin.d.ts.map +1 -1
- package/packages/agent/src/runtime/eliza-plugin.js +1 -7
- package/packages/agent/src/runtime/eliza.js +2 -2
- package/packages/agent/src/runtime/plugin-collector.js +3 -3
- package/packages/agent/src/runtime/plugin-lifecycle.d.ts.map +1 -1
- package/packages/agent/src/runtime/plugin-lifecycle.js +3 -13
- package/packages/agent/src/runtime/trajectory-internals.d.ts.map +1 -1
- package/packages/agent/src/runtime/trajectory-internals.js +1 -3
- package/packages/agent/src/services/built-in-app-routes/hyperscape.d.ts.map +1 -1
- package/packages/agent/src/services/coding-task-executor.d.ts +3 -3
- package/packages/agent/src/services/coding-task-executor.js +3 -3
- package/packages/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/i18n/generated/validation-keyword-data.d.ts +24 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts.map +1 -1
- package/packages/shared/src/i18n/generated/validation-keyword-data.js +24 -0
- package/packages/shared/src/runtime-env.d.ts.map +1 -1
- package/packages/shared/src/runtime-env.js +5 -1
- package/packages/typescript/src/generated/action-docs.d.ts +135 -0
- package/packages/typescript/src/generated/action-docs.d.ts.map +1 -1
- package/packages/typescript/src/generated/action-docs.js +237 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts +24 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts.map +1 -1
- package/packages/typescript/src/i18n/generated/validation-keyword-data.js +24 -0
- package/packages/typescript/src/index.node.d.ts +2 -2
- package/packages/typescript/src/index.node.d.ts.map +1 -1
- package/packages/typescript/src/index.node.js +4 -3
- package/packages/typescript/src/plugin-lifecycle.d.ts.map +1 -1
- package/packages/typescript/src/plugin-lifecycle.js +42 -3
- package/packages/typescript/src/services/message.d.ts.map +1 -1
- package/packages/typescript/src/services/message.js +32 -0
- package/apps/app-training/src/core/cli.d.ts +0 -11
- package/apps/app-training/src/core/cli.d.ts.map +0 -1
- package/apps/app-training/src/core/cli.js +0 -302
- package/apps/app-training/src/core/context-audit.d.ts +0 -51
- package/apps/app-training/src/core/context-audit.d.ts.map +0 -1
- package/apps/app-training/src/core/context-audit.js +0 -141
- package/apps/app-training/src/core/context-catalog.d.ts +0 -47
- package/apps/app-training/src/core/context-catalog.d.ts.map +0 -1
- package/apps/app-training/src/core/context-catalog.js +0 -259
- package/apps/app-training/src/core/context-types.d.ts +0 -3
- package/apps/app-training/src/core/context-types.d.ts.map +0 -1
- package/apps/app-training/src/core/context-types.js +0 -11
- package/apps/app-training/src/core/dataset-generator.d.ts +0 -135
- package/apps/app-training/src/core/dataset-generator.d.ts.map +0 -1
- package/apps/app-training/src/core/dataset-generator.js +0 -703
- package/apps/app-training/src/core/replay-validator.d.ts +0 -96
- package/apps/app-training/src/core/replay-validator.d.ts.map +0 -1
- package/apps/app-training/src/core/replay-validator.js +0 -265
- package/apps/app-training/src/core/roleplay-executor.d.ts +0 -123
- package/apps/app-training/src/core/roleplay-executor.d.ts.map +0 -1
- package/apps/app-training/src/core/roleplay-executor.js +0 -645
- package/apps/app-training/src/core/roleplay-trajectories.d.ts +0 -54
- package/apps/app-training/src/core/roleplay-trajectories.d.ts.map +0 -1
- package/apps/app-training/src/core/roleplay-trajectories.js +0 -73
- package/apps/app-training/src/core/scenario-blueprints.d.ts +0 -62
- package/apps/app-training/src/core/scenario-blueprints.d.ts.map +0 -1
- package/apps/app-training/src/core/scenario-blueprints.js +0 -790
- package/apps/app-training/src/core/trajectory-task-datasets.d.ts +0 -38
- package/apps/app-training/src/core/trajectory-task-datasets.d.ts.map +0 -1
- package/apps/app-training/src/core/trajectory-task-datasets.js +0 -281
- package/apps/app-training/src/core/vertex-tuning.d.ts +0 -139
- package/apps/app-training/src/core/vertex-tuning.d.ts.map +0 -1
- package/apps/app-training/src/core/vertex-tuning.js +0 -234
- package/packages/agent/src/inbox/channel-deep-links.d.ts.map +0 -1
- package/packages/agent/src/inbox/config.d.ts.map +0 -1
- package/packages/agent/src/inbox/message-fetcher.d.ts.map +0 -1
- package/packages/agent/src/inbox/reflection.d.ts.map +0 -1
- package/packages/agent/src/inbox/repository.d.ts.map +0 -1
- package/packages/agent/src/inbox/triage-classifier.d.ts.map +0 -1
- package/packages/agent/src/inbox/types.d.ts.map +0 -1
- package/packages/agent/src/training/cli.d.ts +0 -2
- package/packages/agent/src/training/cli.d.ts.map +0 -1
- package/packages/agent/src/training/cli.js +0 -2
- package/packages/agent/src/training/context-audit.d.ts +0 -2
- package/packages/agent/src/training/context-audit.d.ts.map +0 -1
- package/packages/agent/src/training/context-audit.js +0 -2
- package/packages/agent/src/training/context-catalog.d.ts +0 -2
- package/packages/agent/src/training/context-catalog.d.ts.map +0 -1
- package/packages/agent/src/training/context-catalog.js +0 -2
- package/packages/agent/src/training/context-types.d.ts +0 -2
- package/packages/agent/src/training/context-types.d.ts.map +0 -1
- package/packages/agent/src/training/context-types.js +0 -2
- package/packages/agent/src/training/dataset-generator.d.ts +0 -2
- package/packages/agent/src/training/dataset-generator.d.ts.map +0 -1
- package/packages/agent/src/training/dataset-generator.js +0 -2
- package/packages/agent/src/training/replay-validator.d.ts +0 -2
- package/packages/agent/src/training/replay-validator.d.ts.map +0 -1
- package/packages/agent/src/training/replay-validator.js +0 -2
- package/packages/agent/src/training/roleplay-executor.d.ts +0 -2
- package/packages/agent/src/training/roleplay-executor.d.ts.map +0 -1
- package/packages/agent/src/training/roleplay-executor.js +0 -2
- package/packages/agent/src/training/roleplay-trajectories.d.ts +0 -2
- package/packages/agent/src/training/roleplay-trajectories.d.ts.map +0 -1
- package/packages/agent/src/training/roleplay-trajectories.js +0 -2
- package/packages/agent/src/training/scenario-blueprints.d.ts +0 -2
- package/packages/agent/src/training/scenario-blueprints.d.ts.map +0 -1
- package/packages/agent/src/training/scenario-blueprints.js +0 -2
- package/packages/agent/src/training/trajectory-task-datasets.d.ts +0 -2
- package/packages/agent/src/training/trajectory-task-datasets.d.ts.map +0 -1
- package/packages/agent/src/training/trajectory-task-datasets.js +0 -2
- package/packages/agent/src/training/vertex-tuning.d.ts +0 -2
- package/packages/agent/src/training/vertex-tuning.d.ts.map +0 -1
- package/packages/agent/src/training/vertex-tuning.js +0 -2
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.d.ts +0 -41
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.js +0 -443
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.d.ts +0 -34
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.js +0 -171
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.js +0 -55
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.js +0 -214
- package/packages/typescript/src/features/orchestrator/actions/list-agents.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/actions/list-agents.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/list-agents.js +0 -174
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.js +0 -428
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.js +0 -189
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.js +0 -265
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.js +0 -356
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.js +0 -270
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.js +0 -192
- package/packages/typescript/src/features/orchestrator/actions/task-control.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-control.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-control.js +0 -217
- package/packages/typescript/src/features/orchestrator/actions/task-history.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-history.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-history.js +0 -323
- package/packages/typescript/src/features/orchestrator/actions/task-share.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-share.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-share.js +0 -168
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.js +0 -68
- package/packages/typescript/src/features/orchestrator/api/agent-routes.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/api/agent-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/agent-routes.js +0 -654
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.js +0 -403
- package/packages/typescript/src/features/orchestrator/api/hook-routes.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/api/hook-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/hook-routes.js +0 -164
- package/packages/typescript/src/features/orchestrator/api/issue-routes.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/api/issue-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/issue-routes.js +0 -132
- package/packages/typescript/src/features/orchestrator/api/routes.d.ts +0 -37
- package/packages/typescript/src/features/orchestrator/api/routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/routes.js +0 -96
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.js +0 -149
- package/packages/typescript/src/features/orchestrator/base-plugin.d.ts +0 -19
- package/packages/typescript/src/features/orchestrator/base-plugin.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/base-plugin.js +0 -75
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.d.ts +0 -101
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.js +0 -310
- package/packages/typescript/src/features/orchestrator/index.d.ts +0 -33
- package/packages/typescript/src/features/orchestrator/index.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/index.js +0 -30
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.d.ts +0 -15
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.js +0 -1449
- package/packages/typescript/src/features/orchestrator/providers/action-examples.d.ts +0 -14
- package/packages/typescript/src/features/orchestrator/providers/action-examples.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/providers/action-examples.js +0 -151
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.js +0 -142
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.d.ts +0 -6
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.js +0 -91
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.d.ts +0 -30
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.js +0 -54
- package/packages/typescript/src/features/orchestrator/services/agent-selection.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/agent-selection.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-selection.js +0 -70
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.d.ts +0 -61
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.js +0 -252
- package/packages/typescript/src/features/orchestrator/services/config-env.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/services/config-env.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/config-env.js +0 -37
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts +0 -50
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.js +0 -184
- package/packages/typescript/src/features/orchestrator/services/debug-capture.d.ts +0 -38
- package/packages/typescript/src/features/orchestrator/services/debug-capture.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/debug-capture.js +0 -113
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.d.ts +0 -30
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.js +0 -146
- package/packages/typescript/src/features/orchestrator/services/pty-init.d.ts +0 -54
- package/packages/typescript/src/features/orchestrator/services/pty-init.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-init.js +0 -315
- package/packages/typescript/src/features/orchestrator/services/pty-service.d.ts +0 -175
- package/packages/typescript/src/features/orchestrator/services/pty-service.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-service.js +0 -1469
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.d.ts +0 -49
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.js +0 -180
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.js +0 -280
- package/packages/typescript/src/features/orchestrator/services/pty-types.d.ts +0 -80
- package/packages/typescript/src/features/orchestrator/services/pty-types.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-types.js +0 -51
- package/packages/typescript/src/features/orchestrator/services/repo-input.d.ts +0 -16
- package/packages/typescript/src/features/orchestrator/services/repo-input.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/repo-input.js +0 -88
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.d.ts +0 -69
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.js +0 -446
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.d.ts +0 -97
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.js +0 -342
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.d.ts +0 -421
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.js +0 -2356
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.d.ts +0 -52
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.js +0 -1538
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.d.ts +0 -49
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.js +0 -171
- package/packages/typescript/src/features/orchestrator/services/swarm-history.d.ts +0 -27
- package/packages/typescript/src/features/orchestrator/services/swarm-history.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-history.js +0 -148
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.js +0 -265
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.d.ts +0 -8
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.js +0 -114
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.d.ts +0 -68
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.js +0 -559
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.d.ts +0 -82
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.js +0 -738
- package/packages/typescript/src/features/orchestrator/services/task-kind.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/services/task-kind.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-kind.js +0 -40
- package/packages/typescript/src/features/orchestrator/services/task-policy.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/services/task-policy.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-policy.js +0 -226
- package/packages/typescript/src/features/orchestrator/services/task-registry.d.ts +0 -550
- package/packages/typescript/src/features/orchestrator/services/task-registry.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-registry.js +0 -2182
- package/packages/typescript/src/features/orchestrator/services/task-share.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/services/task-share.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-share.js +0 -159
- package/packages/typescript/src/features/orchestrator/services/task-validation.d.ts +0 -69
- package/packages/typescript/src/features/orchestrator/services/task-validation.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-validation.js +0 -587
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.d.ts +0 -5
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.js +0 -372
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.d.ts +0 -73
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.js +0 -64
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.js +0 -260
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.d.ts +0 -28
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.js +0 -105
- package/packages/typescript/src/features/orchestrator/services/workspace-github.d.ts +0 -58
- package/packages/typescript/src/features/orchestrator/services/workspace-github.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-github.js +0 -139
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.js +0 -86
- package/packages/typescript/src/features/orchestrator/services/workspace-service.d.ts +0 -118
- package/packages/typescript/src/features/orchestrator/services/workspace-service.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-service.js +0 -533
- package/packages/typescript/src/features/orchestrator/services/workspace-types.d.ts +0 -81
- package/packages/typescript/src/features/orchestrator/services/workspace-types.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-types.js +0 -8
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.d.ts +0 -38
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.js +0 -293
- /package/{packages/agent → apps/app-lifeops}/src/inbox/channel-deep-links.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/channel-deep-links.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/config.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/message-fetcher.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/message-fetcher.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/reflection.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/reflection.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/repository.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/repository.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/triage-classifier.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/triage-classifier.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/types.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/types.js +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CHECK_BALANCE action — retrieves wallet balances across chains.
|
|
3
|
+
*
|
|
4
|
+
* When triggered the action:
|
|
5
|
+
* 1. GETs wallet balances from the local API
|
|
6
|
+
* 2. Optionally filters by chain (bsc, ethereum, base, solana)
|
|
7
|
+
* 3. Formats a human-readable summary with addresses, native balances,
|
|
8
|
+
* USD values, and top token holdings
|
|
9
|
+
*
|
|
10
|
+
* All balance fetching logic is handled server-side — this action is a
|
|
11
|
+
* thin wrapper that formats the response for the LLM.
|
|
12
|
+
*
|
|
13
|
+
* @module actions/check-balance
|
|
14
|
+
*/
|
|
15
|
+
import type { Action } from "@elizaos/core";
|
|
16
|
+
export declare const checkBalanceAction: Action;
|
|
17
|
+
//# sourceMappingURL=check-balance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-balance.d.ts","sourceRoot":"","sources":["../../../../../src/actions/check-balance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAmC,MAAM,eAAe,CAAC;AA8H7E,eAAO,MAAM,kBAAkB,EAAE,MA4FhC,CAAC"}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CHECK_BALANCE action — retrieves wallet balances across chains.
|
|
3
|
+
*
|
|
4
|
+
* When triggered the action:
|
|
5
|
+
* 1. GETs wallet balances from the local API
|
|
6
|
+
* 2. Optionally filters by chain (bsc, ethereum, base, solana)
|
|
7
|
+
* 3. Formats a human-readable summary with addresses, native balances,
|
|
8
|
+
* USD values, and top token holdings
|
|
9
|
+
*
|
|
10
|
+
* All balance fetching logic is handled server-side — this action is a
|
|
11
|
+
* thin wrapper that formats the response for the LLM.
|
|
12
|
+
*
|
|
13
|
+
* @module actions/check-balance
|
|
14
|
+
*/
|
|
15
|
+
import { buildAuthHeaders, getWalletActionApiPort, } from "./wallet-action-shared.js";
|
|
16
|
+
/** Timeout for the balance API call. */
|
|
17
|
+
const BALANCE_TIMEOUT_MS = 10_000;
|
|
18
|
+
/** Maximum token holdings to display per chain. */
|
|
19
|
+
const MAX_TOKENS_PER_CHAIN = 10;
|
|
20
|
+
const VALID_CHAINS = ["all", "bsc", "ethereum", "base", "solana"];
|
|
21
|
+
// ── Formatting helpers ──────────────────────────────────────────────────────
|
|
22
|
+
function shortenAddress(address) {
|
|
23
|
+
if (address.length <= 10)
|
|
24
|
+
return address;
|
|
25
|
+
return `${address.slice(0, 6)}...${address.slice(-4)}`;
|
|
26
|
+
}
|
|
27
|
+
function formatUsd(value) {
|
|
28
|
+
const num = Number(value);
|
|
29
|
+
if (Number.isNaN(num))
|
|
30
|
+
return `$${value}`;
|
|
31
|
+
return `$${num.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`;
|
|
32
|
+
}
|
|
33
|
+
function formatEvmChain(chain, address) {
|
|
34
|
+
const label = chain.chain.toUpperCase();
|
|
35
|
+
const short = shortenAddress(address);
|
|
36
|
+
const lines = [];
|
|
37
|
+
lines.push(`${label} (${short}):`);
|
|
38
|
+
lines.push(` ${chain.nativeSymbol}: ${chain.nativeBalance} (${formatUsd(chain.nativeValueUsd)})`);
|
|
39
|
+
if (chain.error) {
|
|
40
|
+
lines.push(` Error: ${chain.error}`);
|
|
41
|
+
}
|
|
42
|
+
const tokens = chain.tokens.slice(0, MAX_TOKENS_PER_CHAIN);
|
|
43
|
+
if (tokens.length > 0) {
|
|
44
|
+
lines.push(" Tokens:");
|
|
45
|
+
for (const token of tokens) {
|
|
46
|
+
lines.push(` ${token.symbol}: ${token.balance} (${formatUsd(token.valueUsd)})`);
|
|
47
|
+
}
|
|
48
|
+
if (chain.tokens.length > MAX_TOKENS_PER_CHAIN) {
|
|
49
|
+
lines.push(` ... and ${chain.tokens.length - MAX_TOKENS_PER_CHAIN} more`);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return lines.join("\n");
|
|
53
|
+
}
|
|
54
|
+
function formatSolana(solana) {
|
|
55
|
+
const short = shortenAddress(solana.address);
|
|
56
|
+
const lines = [];
|
|
57
|
+
lines.push(`Solana (${short}):`);
|
|
58
|
+
lines.push(` SOL: ${solana.solBalance} (${formatUsd(solana.solValueUsd)})`);
|
|
59
|
+
const tokens = solana.tokens.slice(0, MAX_TOKENS_PER_CHAIN);
|
|
60
|
+
if (tokens.length > 0) {
|
|
61
|
+
lines.push(" Tokens:");
|
|
62
|
+
for (const token of tokens) {
|
|
63
|
+
lines.push(` ${token.symbol}: ${token.balance} (${formatUsd(token.valueUsd)})`);
|
|
64
|
+
}
|
|
65
|
+
if (solana.tokens.length > MAX_TOKENS_PER_CHAIN) {
|
|
66
|
+
lines.push(` ... and ${solana.tokens.length - MAX_TOKENS_PER_CHAIN} more`);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return lines.join("\n");
|
|
70
|
+
}
|
|
71
|
+
function formatBalances(data, chain) {
|
|
72
|
+
const sections = [];
|
|
73
|
+
// EVM chains
|
|
74
|
+
if (data.evm && chain !== "solana") {
|
|
75
|
+
const chains = chain === "all"
|
|
76
|
+
? data.evm.chains
|
|
77
|
+
: data.evm.chains.filter((c) => c.chain.toLowerCase() === chain);
|
|
78
|
+
for (const evmChain of chains) {
|
|
79
|
+
sections.push(formatEvmChain(evmChain, data.evm.address));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
// Solana
|
|
83
|
+
if (data.solana && (chain === "all" || chain === "solana")) {
|
|
84
|
+
sections.push(formatSolana(data.solana));
|
|
85
|
+
}
|
|
86
|
+
if (sections.length === 0) {
|
|
87
|
+
if (chain === "all") {
|
|
88
|
+
return "No wallet balances available.";
|
|
89
|
+
}
|
|
90
|
+
return `No balance data available for chain "${chain}".`;
|
|
91
|
+
}
|
|
92
|
+
return `Wallet Balances:\n\n${sections.join("\n\n")}`;
|
|
93
|
+
}
|
|
94
|
+
// ── Action ──────────────────────────────────────────────────────────────────
|
|
95
|
+
export const checkBalanceAction = {
|
|
96
|
+
name: "CHECK_BALANCE",
|
|
97
|
+
similes: [
|
|
98
|
+
"GET_BALANCE",
|
|
99
|
+
"WALLET_BALANCE",
|
|
100
|
+
"CHECK_WALLET",
|
|
101
|
+
"MY_BALANCE",
|
|
102
|
+
"PORTFOLIO",
|
|
103
|
+
"HOLDINGS",
|
|
104
|
+
],
|
|
105
|
+
description: "Check wallet balances across chains. Use this when a user asks about " +
|
|
106
|
+
"their balance, portfolio, holdings, or wallet contents.",
|
|
107
|
+
validate: async () => true,
|
|
108
|
+
handler: async (_runtime, _message, _state, options, callback) => {
|
|
109
|
+
try {
|
|
110
|
+
const params = options?.parameters;
|
|
111
|
+
// ── Extract optional chain parameter ─────────────────────────────
|
|
112
|
+
const rawChain = typeof params?.chain === "string"
|
|
113
|
+
? params.chain.trim().toLowerCase()
|
|
114
|
+
: "all";
|
|
115
|
+
const chain = VALID_CHAINS.includes(rawChain)
|
|
116
|
+
? rawChain
|
|
117
|
+
: "all";
|
|
118
|
+
// ── Fetch balances from API ──────────────────────────────────────
|
|
119
|
+
const response = await fetch(`http://127.0.0.1:${getWalletActionApiPort()}/api/wallet/balances`, {
|
|
120
|
+
headers: {
|
|
121
|
+
...buildAuthHeaders(),
|
|
122
|
+
},
|
|
123
|
+
signal: AbortSignal.timeout(BALANCE_TIMEOUT_MS),
|
|
124
|
+
});
|
|
125
|
+
if (!response.ok) {
|
|
126
|
+
const text = `Failed to fetch wallet balances (HTTP ${response.status}).`;
|
|
127
|
+
if (callback)
|
|
128
|
+
callback({ text, action: "CHECK_BALANCE_FAILED" });
|
|
129
|
+
return {
|
|
130
|
+
text,
|
|
131
|
+
success: false,
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
const data = (await response.json());
|
|
135
|
+
// ── Format and return ────────────────────────────────────────────
|
|
136
|
+
const text = formatBalances(data, chain);
|
|
137
|
+
if (callback)
|
|
138
|
+
callback({ text, action: "CHECK_BALANCE_RESPONSE" });
|
|
139
|
+
return {
|
|
140
|
+
text,
|
|
141
|
+
success: true,
|
|
142
|
+
data: {
|
|
143
|
+
chain,
|
|
144
|
+
evm: data.evm,
|
|
145
|
+
solana: data.solana,
|
|
146
|
+
},
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
catch (err) {
|
|
150
|
+
const text = `Failed to fetch wallet balances: ${err instanceof Error ? err.message : String(err)}`;
|
|
151
|
+
if (callback)
|
|
152
|
+
callback({ text, action: "CHECK_BALANCE_FAILED" });
|
|
153
|
+
return {
|
|
154
|
+
text,
|
|
155
|
+
success: false,
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
parameters: [
|
|
160
|
+
{
|
|
161
|
+
name: "chain",
|
|
162
|
+
description: 'Which chain to check: "all", "bsc", "ethereum", "base", or "solana". Defaults to "all".',
|
|
163
|
+
required: false,
|
|
164
|
+
schema: { type: "string" },
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Connector resolver — shared utilities for resolving contacts to platform
|
|
3
|
+
* handles via the Rolodex (relationships graph) and finding conversations
|
|
4
|
+
* with a person across all connected platforms.
|
|
5
|
+
*
|
|
6
|
+
* Used by SEND_MESSAGE, READ_MESSAGES, READ_POSTS, and SEND_POST actions.
|
|
7
|
+
*
|
|
8
|
+
* @module actions/connector-resolver
|
|
9
|
+
*/
|
|
10
|
+
import type { IAgentRuntime, Memory, Room, UUID } from "@elizaos/core";
|
|
11
|
+
import type { RelationshipsGraphService, RelationshipsPersonSummary } from "../services/relationships-graph.js";
|
|
12
|
+
/** Resolved contact with platform-specific routing information. */
|
|
13
|
+
export type ResolvedContact = {
|
|
14
|
+
person: RelationshipsPersonSummary;
|
|
15
|
+
/** Best platform to reach this person (based on preference + availability). */
|
|
16
|
+
recommendedPlatform: string | null;
|
|
17
|
+
/** All platforms where both the contact exists AND we have a running connector. */
|
|
18
|
+
reachablePlatforms: string[];
|
|
19
|
+
/** Map of platform → entity ID for direct addressing. */
|
|
20
|
+
platformEntityIds: Map<string, UUID>;
|
|
21
|
+
};
|
|
22
|
+
/** A conversation thread with a person on a specific platform. */
|
|
23
|
+
export type PersonConversation = {
|
|
24
|
+
platform: string;
|
|
25
|
+
roomId: UUID;
|
|
26
|
+
roomName: string;
|
|
27
|
+
messages: Memory[];
|
|
28
|
+
messageCount: number;
|
|
29
|
+
lastMessageAt: string | null;
|
|
30
|
+
};
|
|
31
|
+
/** Summary of all conversations with a person across platforms. */
|
|
32
|
+
export type CrossPlatformConversationView = {
|
|
33
|
+
person: RelationshipsPersonSummary;
|
|
34
|
+
conversations: PersonConversation[];
|
|
35
|
+
totalMessages: number;
|
|
36
|
+
};
|
|
37
|
+
export declare function getGraphService(runtime: IAgentRuntime): RelationshipsGraphService | null;
|
|
38
|
+
/** Returns the set of connector source names that have active send handlers. */
|
|
39
|
+
export declare function getActiveConnectors(runtime: IAgentRuntime): Set<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Resolve a person name to a contact with platform routing info.
|
|
42
|
+
*
|
|
43
|
+
* Uses the Rolodex (relationships graph) for lookup — no regex, no string
|
|
44
|
+
* matching. The Rolodex handles fuzzy name/alias matching internally.
|
|
45
|
+
*
|
|
46
|
+
* @returns null if no match found, or a ResolvedContact with the best
|
|
47
|
+
* person match and their reachable platforms.
|
|
48
|
+
*/
|
|
49
|
+
export declare function resolveContact(runtime: IAgentRuntime, name: string, preferredPlatform?: string): Promise<ResolvedContact | null>;
|
|
50
|
+
/**
|
|
51
|
+
* Resolve a person name and return ALL matching contacts (for disambiguation).
|
|
52
|
+
*/
|
|
53
|
+
export declare function resolveContactCandidates(runtime: IAgentRuntime, name: string, limit?: number): Promise<RelationshipsPersonSummary[]>;
|
|
54
|
+
/**
|
|
55
|
+
* Get all conversations with a specific person across all platforms.
|
|
56
|
+
*
|
|
57
|
+
* This is the "conversation handoff" view — shows recent messages from
|
|
58
|
+
* every platform where the agent has interacted with this person, so
|
|
59
|
+
* the user can see full context before deciding where to respond.
|
|
60
|
+
*/
|
|
61
|
+
export declare function getPersonConversations(runtime: IAgentRuntime, person: RelationshipsPersonSummary, opts?: {
|
|
62
|
+
limitPerPlatform?: number;
|
|
63
|
+
}): Promise<CrossPlatformConversationView>;
|
|
64
|
+
/** Format a cross-platform conversation view as human-readable text. */
|
|
65
|
+
export declare function formatConversationView(runtime: IAgentRuntime, view: CrossPlatformConversationView): string;
|
|
66
|
+
/**
|
|
67
|
+
* Format a list of resolved contacts for disambiguation display.
|
|
68
|
+
*/
|
|
69
|
+
export declare function formatContactCandidates(candidates: RelationshipsPersonSummary[]): string;
|
|
70
|
+
/**
|
|
71
|
+
* Find the room ID for a DM/conversation between the agent and an entity
|
|
72
|
+
* on a specific platform.
|
|
73
|
+
*/
|
|
74
|
+
export declare function findRoomForEntity(runtime: IAgentRuntime, entityId: UUID, platform: string): Promise<Room | null>;
|
|
75
|
+
//# sourceMappingURL=connector-resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-resolver.d.ts","sourceRoot":"","sources":["../../../../../src/actions/connector-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGvE,OAAO,KAAK,EACV,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,oCAAoC,CAAC;AAM5C,mEAAmE;AACnE,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,0BAA0B,CAAC;IACnC,+EAA+E;IAC/E,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,mFAAmF;IACnF,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,yDAAyD;IACzD,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;CACtC,CAAC;AAEF,kEAAkE;AAClE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,IAAI,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF,mEAAmE;AACnE,MAAM,MAAM,6BAA6B,GAAG;IAC1C,MAAM,EAAE,0BAA0B,CAAC;IACnC,aAAa,EAAE,kBAAkB,EAAE,CAAC;IACpC,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAMF,wBAAgB,eAAe,CAC7B,OAAO,EAAE,aAAa,GACrB,yBAAyB,GAAG,IAAI,CAIlC;AAED,gFAAgF;AAChF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,aAAa,GAAG,GAAG,CAAC,MAAM,CAAC,CAYvE;AAMD;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,aAAa,EACtB,IAAI,EAAE,MAAM,EACZ,iBAAiB,CAAC,EAAE,MAAM,GACzB,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAwDjC;AAED;;GAEG;AACH,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,aAAa,EACtB,IAAI,EAAE,MAAM,EACZ,KAAK,SAAI,GACR,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAUvC;AAMD;;;;;;GAMG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,0BAA0B,EAClC,IAAI,CAAC,EAAE;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,GACnC,OAAO,CAAC,6BAA6B,CAAC,CA2ExC;AAMD,wEAAwE;AACxE,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,aAAa,EACtB,IAAI,EAAE,6BAA6B,GAClC,MAAM,CAkCR;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,0BAA0B,EAAE,GACvC,MAAM,CAYR;AAED;;;GAGG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,IAAI,EACd,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAkBtB"}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Connector resolver — shared utilities for resolving contacts to platform
|
|
3
|
+
* handles via the Rolodex (relationships graph) and finding conversations
|
|
4
|
+
* with a person across all connected platforms.
|
|
5
|
+
*
|
|
6
|
+
* Used by SEND_MESSAGE, READ_MESSAGES, READ_POSTS, and SEND_POST actions.
|
|
7
|
+
*
|
|
8
|
+
* @module actions/connector-resolver
|
|
9
|
+
*/
|
|
10
|
+
import { logger } from "@elizaos/core";
|
|
11
|
+
import { formatSpeakerLabel } from "../providers/conversation-utils.js";
|
|
12
|
+
// ---------------------------------------------------------------------------
|
|
13
|
+
// Service access
|
|
14
|
+
// ---------------------------------------------------------------------------
|
|
15
|
+
export function getGraphService(runtime) {
|
|
16
|
+
return runtime.getService("RELATIONSHIPS_GRAPH");
|
|
17
|
+
}
|
|
18
|
+
/** Returns the set of connector source names that have active send handlers. */
|
|
19
|
+
export function getActiveConnectors(runtime) {
|
|
20
|
+
const active = new Set();
|
|
21
|
+
// sendHandlers is a Map<string, SendHandlerFunction> on the runtime
|
|
22
|
+
const rt = runtime;
|
|
23
|
+
if (rt.sendHandlers) {
|
|
24
|
+
for (const key of rt.sendHandlers.keys()) {
|
|
25
|
+
active.add(key);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return active;
|
|
29
|
+
}
|
|
30
|
+
// ---------------------------------------------------------------------------
|
|
31
|
+
// Contact resolution
|
|
32
|
+
// ---------------------------------------------------------------------------
|
|
33
|
+
/**
|
|
34
|
+
* Resolve a person name to a contact with platform routing info.
|
|
35
|
+
*
|
|
36
|
+
* Uses the Rolodex (relationships graph) for lookup — no regex, no string
|
|
37
|
+
* matching. The Rolodex handles fuzzy name/alias matching internally.
|
|
38
|
+
*
|
|
39
|
+
* @returns null if no match found, or a ResolvedContact with the best
|
|
40
|
+
* person match and their reachable platforms.
|
|
41
|
+
*/
|
|
42
|
+
export async function resolveContact(runtime, name, preferredPlatform) {
|
|
43
|
+
const graphService = getGraphService(runtime);
|
|
44
|
+
if (!graphService) {
|
|
45
|
+
logger.warn("[connector-resolver] Relationships service not available");
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
const snapshot = await graphService.getGraphSnapshot({
|
|
49
|
+
search: name.trim(),
|
|
50
|
+
limit: 5,
|
|
51
|
+
});
|
|
52
|
+
if (!snapshot || snapshot.people.length === 0) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
// Take the best match (first result — the graph service ranks by relevance)
|
|
56
|
+
const person = snapshot.people[0];
|
|
57
|
+
const activeConnectors = getActiveConnectors(runtime);
|
|
58
|
+
// Build a map of platform → entity ID for each reachable identity
|
|
59
|
+
const platformEntityIds = new Map();
|
|
60
|
+
for (const identity of person.identities) {
|
|
61
|
+
for (const handle of identity.handles) {
|
|
62
|
+
if (activeConnectors.has(handle.platform)) {
|
|
63
|
+
// Use the identity's entity ID for routing
|
|
64
|
+
if (!platformEntityIds.has(handle.platform)) {
|
|
65
|
+
platformEntityIds.set(handle.platform, identity.entityId);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const reachablePlatforms = [...platformEntityIds.keys()];
|
|
71
|
+
// Pick recommended platform
|
|
72
|
+
let recommendedPlatform = null;
|
|
73
|
+
if (preferredPlatform && reachablePlatforms.includes(preferredPlatform)) {
|
|
74
|
+
recommendedPlatform = preferredPlatform;
|
|
75
|
+
}
|
|
76
|
+
else if (person.preferredCommunicationChannel &&
|
|
77
|
+
reachablePlatforms.includes(person.preferredCommunicationChannel)) {
|
|
78
|
+
recommendedPlatform = person.preferredCommunicationChannel;
|
|
79
|
+
}
|
|
80
|
+
else if (reachablePlatforms.length > 0) {
|
|
81
|
+
// Pick the first reachable platform (the graph service orders by interaction recency)
|
|
82
|
+
recommendedPlatform = reachablePlatforms[0];
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
person,
|
|
86
|
+
recommendedPlatform,
|
|
87
|
+
reachablePlatforms,
|
|
88
|
+
platformEntityIds,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Resolve a person name and return ALL matching contacts (for disambiguation).
|
|
93
|
+
*/
|
|
94
|
+
export async function resolveContactCandidates(runtime, name, limit = 5) {
|
|
95
|
+
const graphService = getGraphService(runtime);
|
|
96
|
+
if (!graphService)
|
|
97
|
+
return [];
|
|
98
|
+
const snapshot = await graphService.getGraphSnapshot({
|
|
99
|
+
search: name.trim(),
|
|
100
|
+
limit,
|
|
101
|
+
});
|
|
102
|
+
return snapshot?.people ?? [];
|
|
103
|
+
}
|
|
104
|
+
// ---------------------------------------------------------------------------
|
|
105
|
+
// Cross-platform conversation view
|
|
106
|
+
// ---------------------------------------------------------------------------
|
|
107
|
+
/**
|
|
108
|
+
* Get all conversations with a specific person across all platforms.
|
|
109
|
+
*
|
|
110
|
+
* This is the "conversation handoff" view — shows recent messages from
|
|
111
|
+
* every platform where the agent has interacted with this person, so
|
|
112
|
+
* the user can see full context before deciding where to respond.
|
|
113
|
+
*/
|
|
114
|
+
export async function getPersonConversations(runtime, person, opts) {
|
|
115
|
+
const limitPerPlatform = opts?.limitPerPlatform ?? 15;
|
|
116
|
+
const conversations = [];
|
|
117
|
+
let totalMessages = 0;
|
|
118
|
+
// Collect all entity IDs for this person (across all platforms)
|
|
119
|
+
const entityIds = new Set();
|
|
120
|
+
entityIds.add(person.primaryEntityId);
|
|
121
|
+
for (const id of person.memberEntityIds) {
|
|
122
|
+
entityIds.add(id);
|
|
123
|
+
}
|
|
124
|
+
// Find all rooms where this person participates
|
|
125
|
+
const seenRooms = new Set();
|
|
126
|
+
for (const entityId of entityIds) {
|
|
127
|
+
try {
|
|
128
|
+
const roomIds = await runtime.getRoomsForParticipant(entityId);
|
|
129
|
+
for (const roomId of roomIds) {
|
|
130
|
+
if (seenRooms.has(roomId))
|
|
131
|
+
continue;
|
|
132
|
+
seenRooms.add(roomId);
|
|
133
|
+
const room = await runtime.getRoom(roomId);
|
|
134
|
+
if (!room)
|
|
135
|
+
continue;
|
|
136
|
+
const roomRecord = room;
|
|
137
|
+
const platform = roomRecord.source ?? room.type ?? "unknown";
|
|
138
|
+
// Get recent messages from this room
|
|
139
|
+
const rawMemories = (await runtime.getMemories({
|
|
140
|
+
tableName: "messages",
|
|
141
|
+
roomId: room.id,
|
|
142
|
+
limit: limitPerPlatform,
|
|
143
|
+
orderBy: "createdAt",
|
|
144
|
+
orderDirection: "desc",
|
|
145
|
+
}));
|
|
146
|
+
if (rawMemories.length === 0)
|
|
147
|
+
continue;
|
|
148
|
+
// Reverse for chronological order
|
|
149
|
+
const messages = rawMemories.reverse();
|
|
150
|
+
const lastMsg = messages[messages.length - 1];
|
|
151
|
+
const lastMessageAt = lastMsg?.createdAt
|
|
152
|
+
? new Date(lastMsg.createdAt).toISOString()
|
|
153
|
+
: null;
|
|
154
|
+
conversations.push({
|
|
155
|
+
platform,
|
|
156
|
+
roomId: room.id,
|
|
157
|
+
roomName: roomRecord.name ?? `Room ${room.id.slice(0, 8)}`,
|
|
158
|
+
messages,
|
|
159
|
+
messageCount: messages.length,
|
|
160
|
+
lastMessageAt,
|
|
161
|
+
});
|
|
162
|
+
totalMessages += messages.length;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
catch (err) {
|
|
166
|
+
logger.debug(`[connector-resolver] Error fetching rooms for entity ${entityId}:`, err instanceof Error ? err.message : String(err));
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
// Sort conversations by most recent activity first
|
|
170
|
+
conversations.sort((a, b) => {
|
|
171
|
+
if (!a.lastMessageAt && !b.lastMessageAt)
|
|
172
|
+
return 0;
|
|
173
|
+
if (!a.lastMessageAt)
|
|
174
|
+
return 1;
|
|
175
|
+
if (!b.lastMessageAt)
|
|
176
|
+
return -1;
|
|
177
|
+
return b.lastMessageAt.localeCompare(a.lastMessageAt);
|
|
178
|
+
});
|
|
179
|
+
return { person, conversations, totalMessages };
|
|
180
|
+
}
|
|
181
|
+
// ---------------------------------------------------------------------------
|
|
182
|
+
// Formatting helpers
|
|
183
|
+
// ---------------------------------------------------------------------------
|
|
184
|
+
/** Format a cross-platform conversation view as human-readable text. */
|
|
185
|
+
export function formatConversationView(runtime, view) {
|
|
186
|
+
const sections = [];
|
|
187
|
+
sections.push(`Conversations with ${view.person.displayName} — ` +
|
|
188
|
+
`${view.conversations.length} thread(s), ` +
|
|
189
|
+
`${view.totalMessages} messages across ` +
|
|
190
|
+
`${[...new Set(view.conversations.map((c) => c.platform))].join(", ")}`);
|
|
191
|
+
sections.push("═".repeat(60));
|
|
192
|
+
for (const convo of view.conversations) {
|
|
193
|
+
sections.push(`\n▸ [${convo.platform}] ${convo.roomName}` +
|
|
194
|
+
(convo.lastMessageAt
|
|
195
|
+
? ` — last activity: ${convo.lastMessageAt.slice(0, 19)}`
|
|
196
|
+
: ""));
|
|
197
|
+
sections.push("─".repeat(40));
|
|
198
|
+
for (let i = 0; i < convo.messages.length; i++) {
|
|
199
|
+
const mem = convo.messages[i];
|
|
200
|
+
const speaker = formatSpeakerLabel(runtime, mem);
|
|
201
|
+
const ts = mem.createdAt
|
|
202
|
+
? new Date(mem.createdAt).toISOString().slice(0, 19)
|
|
203
|
+
: "";
|
|
204
|
+
const text = (mem.content?.text ?? "").slice(0, 500);
|
|
205
|
+
sections.push(`${String(i + 1).padStart(3, " ")} | ${ts} ${speaker}: ${text}`);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
return sections.join("\n");
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Format a list of resolved contacts for disambiguation display.
|
|
212
|
+
*/
|
|
213
|
+
export function formatContactCandidates(candidates) {
|
|
214
|
+
const lines = [];
|
|
215
|
+
for (let i = 0; i < candidates.length; i++) {
|
|
216
|
+
const p = candidates[i];
|
|
217
|
+
const platforms = p.platforms.join(", ") || "no platforms";
|
|
218
|
+
const aliases = p.aliases.length > 0 ? ` (aka ${p.aliases.slice(0, 2).join(", ")})` : "";
|
|
219
|
+
lines.push(`${i + 1}. ${p.displayName}${aliases} — ${platforms} — entityId: ${p.primaryEntityId}`);
|
|
220
|
+
}
|
|
221
|
+
return lines.join("\n");
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Find the room ID for a DM/conversation between the agent and an entity
|
|
225
|
+
* on a specific platform.
|
|
226
|
+
*/
|
|
227
|
+
export async function findRoomForEntity(runtime, entityId, platform) {
|
|
228
|
+
try {
|
|
229
|
+
const roomIds = await runtime.getRoomsForParticipant(entityId);
|
|
230
|
+
for (const roomId of roomIds) {
|
|
231
|
+
const room = await runtime.getRoom(roomId);
|
|
232
|
+
if (!room)
|
|
233
|
+
continue;
|
|
234
|
+
const roomRecord = room;
|
|
235
|
+
if ((roomRecord.source ?? room.type ?? "").toLowerCase() ===
|
|
236
|
+
platform.toLowerCase()) {
|
|
237
|
+
return room;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
catch {
|
|
242
|
+
// Entity may not be in any rooms yet
|
|
243
|
+
}
|
|
244
|
+
return null;
|
|
245
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CharacterLanguage } from "@elizaos/shared/contracts/onboarding";
|
|
2
|
-
export type ContextSignalKey = "affirmative" | "calendar" | "draft_edit" | "gmail" | "lifeops" | "lifeops_cadence" | "lifeops_complete" | "lifeops_delete" | "lifeops_escalation" | "lifeops_goal" | "lifeops_overview" | "lifeops_phone" | "lifeops_reminder_pref" | "lifeops_review" | "lifeops_skip" | "lifeops_snooze" | "lifeops_update" | "negative" | "read_channel" | "search_conversations" | "search_entity" | "send_admin_message" | "send_message" | "stream_control" | "temporal_followup" | "temporal_next" | "web_search";
|
|
2
|
+
export type ContextSignalKey = "affirmative" | "calendar" | "draft_edit" | "gmail" | "lifeops" | "lifeops_cadence" | "lifeops_complete" | "lifeops_delete" | "lifeops_escalation" | "lifeops_goal" | "lifeops_overview" | "lifeops_phone" | "lifeops_reminder_pref" | "lifeops_review" | "lifeops_skip" | "lifeops_snooze" | "lifeops_update" | "negative" | "read_channel" | "read_messages" | "search_conversations" | "search_entity" | "send_admin_message" | "send_message" | "stream_control" | "temporal_followup" | "temporal_next" | "web_search";
|
|
3
3
|
export type ContextSignalStrength = "strong" | "weak";
|
|
4
4
|
export type ResolvedContextSignalSpec = {
|
|
5
5
|
locale: CharacterLanguage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-signal-lexicon.d.ts","sourceRoot":"","sources":["../../../../../src/actions/context-signal-lexicon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAI9E,MAAM,MAAM,gBAAgB,GACxB,aAAa,GACb,UAAU,GACV,YAAY,GACZ,OAAO,GACP,SAAS,GACT,iBAAiB,GACjB,kBAAkB,GAClB,gBAAgB,GAChB,oBAAoB,GACpB,cAAc,GACd,kBAAkB,GAClB,eAAe,GACf,uBAAuB,GACvB,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,gBAAgB,GAChB,UAAU,GACV,cAAc,GACd,sBAAsB,GACtB,eAAe,GACf,oBAAoB,GACpB,cAAc,GACd,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,YAAY,CAAC;AAEjB,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAUtD,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;
|
|
1
|
+
{"version":3,"file":"context-signal-lexicon.d.ts","sourceRoot":"","sources":["../../../../../src/actions/context-signal-lexicon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAI9E,MAAM,MAAM,gBAAgB,GACxB,aAAa,GACb,UAAU,GACV,YAAY,GACZ,OAAO,GACP,SAAS,GACT,iBAAiB,GACjB,kBAAkB,GAClB,gBAAgB,GAChB,oBAAoB,GACpB,cAAc,GACd,kBAAkB,GAClB,eAAe,GACf,uBAAuB,GACvB,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,gBAAgB,GAChB,UAAU,GACV,cAAc,GACd,eAAe,GACf,sBAAsB,GACtB,eAAe,GACf,oBAAoB,GACpB,cAAc,GACd,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,YAAY,CAAC;AAEjB,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAUtD,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAmLF,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,gBAAgB,EACrB,WAAW,CAAC,EAAE,OAAO,EACrB,OAAO,CAAC,EAAE;IACR,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,GACA,yBAAyB,CAmB3B;AAED,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,gBAAgB,EACrB,QAAQ,EAAE,qBAAqB,EAC/B,OAAO,CAAC,EAAE;IACR,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,GACA,MAAM,EAAE,CAYV"}
|
|
@@ -156,6 +156,12 @@ const CONTEXT_SIGNAL_SPECS = {
|
|
|
156
156
|
weak: "contextSignal.read_channel.weak",
|
|
157
157
|
},
|
|
158
158
|
},
|
|
159
|
+
read_messages: {
|
|
160
|
+
keywordKeys: {
|
|
161
|
+
strong: "contextSignal.read_messages.strong",
|
|
162
|
+
weak: "contextSignal.read_messages.weak",
|
|
163
|
+
},
|
|
164
|
+
},
|
|
159
165
|
stream_control: {
|
|
160
166
|
keywordKeys: {
|
|
161
167
|
strong: "contextSignal.stream_control.strong",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eject-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/actions/eject-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAiC,MAAM,eAAe,CAAC;AAc3E,eAAO,MAAM,iBAAiB,EAAE,MAwD/B,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { requestRestart } from "@elizaos/shared/restart";
|
|
2
|
+
function getPluginManager(runtime) {
|
|
3
|
+
return runtime.getService("plugin_manager");
|
|
4
|
+
}
|
|
5
|
+
export const ejectPluginAction = {
|
|
6
|
+
name: "EJECT_PLUGIN",
|
|
7
|
+
similes: ["EJECT", "FORK_PLUGIN", "CLONE_PLUGIN", "EDIT_PLUGIN_SOURCE"],
|
|
8
|
+
description: "Clone a plugin's source code locally so edits override the npm version " +
|
|
9
|
+
"at runtime. Use this before modifying upstream plugin code.",
|
|
10
|
+
validate: async () => true,
|
|
11
|
+
handler: async (runtime, _message, _state, options) => {
|
|
12
|
+
const params = options?.parameters;
|
|
13
|
+
const pluginId = typeof params?.pluginId === "string" ? params.pluginId.trim() : "";
|
|
14
|
+
if (!pluginId) {
|
|
15
|
+
return { text: "I need a plugin ID to eject.", success: false };
|
|
16
|
+
}
|
|
17
|
+
const mgr = getPluginManager(runtime);
|
|
18
|
+
if (!mgr) {
|
|
19
|
+
return {
|
|
20
|
+
text: "Plugin manager service is not available.",
|
|
21
|
+
success: false,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const result = await mgr.ejectPlugin(pluginId);
|
|
25
|
+
if (!result.success) {
|
|
26
|
+
return {
|
|
27
|
+
text: `Failed to eject ${pluginId}: ${result.error ?? "unknown error"}`,
|
|
28
|
+
success: false,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
setTimeout(() => {
|
|
32
|
+
requestRestart(`Plugin ${result.pluginName} ejected`);
|
|
33
|
+
}, 1_000);
|
|
34
|
+
return {
|
|
35
|
+
text: `Ejected ${result.pluginName} to ${result.ejectedPath}. Restarting to load local source.`,
|
|
36
|
+
success: true,
|
|
37
|
+
data: { ...result },
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
parameters: [
|
|
41
|
+
{
|
|
42
|
+
name: "pluginId",
|
|
43
|
+
description: "Plugin ID or npm package to eject (e.g. 'discord' or '@elizaos/plugin-discord')",
|
|
44
|
+
required: true,
|
|
45
|
+
schema: { type: "string" },
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EXECUTE_TRADE action - executes a BSC token trade (buy or sell).
|
|
3
|
+
*
|
|
4
|
+
* When triggered the action:
|
|
5
|
+
* 1. Validates parameters (side, tokenAddress format, amount > 0)
|
|
6
|
+
* 2. POSTs to the local trade execution API with agent automation header
|
|
7
|
+
* 3. Returns structured result: quote details, execution status, txHash
|
|
8
|
+
* if executed, or unsigned TX info if user-sign mode
|
|
9
|
+
*
|
|
10
|
+
* All business logic (permissions, safety caps, signing) is handled
|
|
11
|
+
* server-side - this action is a thin wrapper.
|
|
12
|
+
*
|
|
13
|
+
* @module actions/execute-trade
|
|
14
|
+
*/
|
|
15
|
+
import type { Action } from "@elizaos/core";
|
|
16
|
+
export declare const executeTradeAction: Action;
|
|
17
|
+
//# sourceMappingURL=execute-trade.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-trade.d.ts","sourceRoot":"","sources":["../../../../../src/actions/execute-trade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EACV,MAAM,EAIP,MAAM,eAAe,CAAC;AAgFvB,eAAO,MAAM,kBAAkB,EAAE,MA+ShC,CAAC"}
|