@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,299 @@
|
|
|
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 { logger } from "@elizaos/core";
|
|
16
|
+
import { buildAuthHeaders, getWalletActionApiPort, } from "./wallet-action-shared.js";
|
|
17
|
+
/** Timeout for the trade API call (includes on-chain confirmation). */
|
|
18
|
+
const TRADE_TIMEOUT_MS = 60_000;
|
|
19
|
+
/** Matches a 0x-prefixed 40-hex-char BSC address. */
|
|
20
|
+
const BSC_ADDRESS_RE = /^0x[0-9a-fA-F]{40}$/;
|
|
21
|
+
/** Check if a value is a valid extracted param (not a placeholder). */
|
|
22
|
+
function isValidParam(val) {
|
|
23
|
+
if (typeof val !== "string")
|
|
24
|
+
return false;
|
|
25
|
+
const v = val.trim().toLowerCase();
|
|
26
|
+
return (v.length > 0 &&
|
|
27
|
+
v !== "unknown" &&
|
|
28
|
+
!v.includes("required") &&
|
|
29
|
+
v !== "undefined" &&
|
|
30
|
+
v !== "null");
|
|
31
|
+
}
|
|
32
|
+
function walletNetworkLabel() {
|
|
33
|
+
return process.env.ELIZA_WALLET_NETWORK?.trim().toLowerCase() === "testnet"
|
|
34
|
+
? "BSC testnet"
|
|
35
|
+
: "BSC";
|
|
36
|
+
}
|
|
37
|
+
function buildTradeSuccessText(args) {
|
|
38
|
+
return [
|
|
39
|
+
"Action: EXECUTE_TRADE",
|
|
40
|
+
`Chain: ${walletNetworkLabel()}`,
|
|
41
|
+
`Side: ${args.side}`,
|
|
42
|
+
`Amount: ${args.amount} BNB`,
|
|
43
|
+
`Token: ${args.tokenAddress}`,
|
|
44
|
+
`Route provider: ${args.routeProvider}`,
|
|
45
|
+
`Execution mode: ${args.mode}`,
|
|
46
|
+
"Executed: true",
|
|
47
|
+
`Tx hash: ${args.txHash}`,
|
|
48
|
+
`Explorer: ${args.explorerUrl}`,
|
|
49
|
+
`Status: ${args.status}`,
|
|
50
|
+
].join("\n");
|
|
51
|
+
}
|
|
52
|
+
function buildTradeFailureText(args) {
|
|
53
|
+
return [
|
|
54
|
+
"Action: EXECUTE_TRADE",
|
|
55
|
+
`Chain: ${walletNetworkLabel()}`,
|
|
56
|
+
`Side: ${args.side}`,
|
|
57
|
+
`Amount: ${args.amount} BNB`,
|
|
58
|
+
`Token: ${args.tokenAddress}`,
|
|
59
|
+
`Route provider: ${args.routeProvider}`,
|
|
60
|
+
`Execution mode: ${args.mode}`,
|
|
61
|
+
"Executed: false",
|
|
62
|
+
`Requires user signature: ${args.requiresUserSignature ? "true" : "false"}`,
|
|
63
|
+
`Reason: ${args.reason}`,
|
|
64
|
+
].join("\n");
|
|
65
|
+
}
|
|
66
|
+
export const executeTradeAction = {
|
|
67
|
+
name: "EXECUTE_TRADE",
|
|
68
|
+
similes: ["BUY_TOKEN", "SELL_TOKEN", "SWAP", "TRADE", "BUY", "SELL"],
|
|
69
|
+
description: "Execute a BSC token trade (buy or sell). Use this when a user asks to " +
|
|
70
|
+
"buy or sell a token on BSC/BNB Chain. The trade is routed through " +
|
|
71
|
+
"PancakeSwap and respects the current trade permission mode.",
|
|
72
|
+
validate: async (runtime) => {
|
|
73
|
+
const hasWallet = runtime.getSetting("EVM_PRIVATE_KEY") ||
|
|
74
|
+
runtime.getSetting("PRIVY_APP_ID") ||
|
|
75
|
+
runtime.getSetting("STEWARD_API_URL");
|
|
76
|
+
return Boolean(hasWallet);
|
|
77
|
+
},
|
|
78
|
+
handler: async (_runtime, _message, _state, options, callback) => {
|
|
79
|
+
try {
|
|
80
|
+
const params = options?.parameters;
|
|
81
|
+
logger.debug(`[EXECUTE_TRADE] handler called with params:`, JSON.stringify(params ?? {}));
|
|
82
|
+
const rawSide = isValidParam(params?.side)
|
|
83
|
+
? params?.side
|
|
84
|
+
: undefined;
|
|
85
|
+
const side = typeof rawSide === "string" ? rawSide.trim().toLowerCase() : undefined;
|
|
86
|
+
if (side !== "buy" && side !== "sell") {
|
|
87
|
+
const text = 'I need a valid trade side ("buy" or "sell").';
|
|
88
|
+
callback?.({ text, action: "EXECUTE_TRADE_FAILED" });
|
|
89
|
+
return { text, success: false };
|
|
90
|
+
}
|
|
91
|
+
const rawAddr = isValidParam(params?.tokenAddress)
|
|
92
|
+
? params?.tokenAddress
|
|
93
|
+
: undefined;
|
|
94
|
+
const tokenAddress = typeof rawAddr === "string" ? rawAddr.trim() : undefined;
|
|
95
|
+
if (!tokenAddress || !BSC_ADDRESS_RE.test(tokenAddress)) {
|
|
96
|
+
const text = "I need a valid BSC token contract address (0x-prefixed, 40 hex chars).";
|
|
97
|
+
callback?.({ text, action: "EXECUTE_TRADE_FAILED" });
|
|
98
|
+
return { text, success: false };
|
|
99
|
+
}
|
|
100
|
+
const rawAmt = isValidParam(params?.amount)
|
|
101
|
+
? params?.amount
|
|
102
|
+
: typeof params?.amount === "number" && params.amount > 0
|
|
103
|
+
? String(params.amount)
|
|
104
|
+
: undefined;
|
|
105
|
+
const amountRaw = typeof rawAmt === "string" ? rawAmt.trim() : undefined;
|
|
106
|
+
if (!amountRaw ||
|
|
107
|
+
Number.isNaN(Number(amountRaw)) ||
|
|
108
|
+
Number(amountRaw) <= 0) {
|
|
109
|
+
const text = "I need a positive numeric amount for the trade.";
|
|
110
|
+
callback?.({ text, action: "EXECUTE_TRADE_FAILED" });
|
|
111
|
+
return { text, success: false };
|
|
112
|
+
}
|
|
113
|
+
const slippageBps = typeof params?.slippageBps === "number"
|
|
114
|
+
? params.slippageBps
|
|
115
|
+
: typeof params?.slippageBps === "string" &&
|
|
116
|
+
params.slippageBps.trim() !== ""
|
|
117
|
+
? Number(params.slippageBps)
|
|
118
|
+
: 300;
|
|
119
|
+
if (Number.isNaN(slippageBps) || slippageBps < 0) {
|
|
120
|
+
const text = "slippageBps must be a non-negative number.";
|
|
121
|
+
callback?.({ text, action: "EXECUTE_TRADE_FAILED" });
|
|
122
|
+
return { text, success: false };
|
|
123
|
+
}
|
|
124
|
+
const routeProvider = typeof params?.routeProvider === "string" &&
|
|
125
|
+
params.routeProvider.trim().length > 0
|
|
126
|
+
? params.routeProvider.trim()
|
|
127
|
+
: "pancakeswap-v2";
|
|
128
|
+
logger.debug(`[EXECUTE_TRADE] resolved: side=${side} token=${tokenAddress} amount=${amountRaw} slippage=${slippageBps} routeProvider=${routeProvider}`);
|
|
129
|
+
const response = await fetch(`http://127.0.0.1:${getWalletActionApiPort()}/api/wallet/trade/execute`, {
|
|
130
|
+
method: "POST",
|
|
131
|
+
headers: {
|
|
132
|
+
"Content-Type": "application/json",
|
|
133
|
+
"X-Eliza-Agent-Action": "1",
|
|
134
|
+
...buildAuthHeaders(),
|
|
135
|
+
},
|
|
136
|
+
body: JSON.stringify({
|
|
137
|
+
side,
|
|
138
|
+
tokenAddress,
|
|
139
|
+
amount: amountRaw,
|
|
140
|
+
slippageBps,
|
|
141
|
+
routeProvider,
|
|
142
|
+
confirm: true,
|
|
143
|
+
}),
|
|
144
|
+
signal: AbortSignal.timeout(TRADE_TIMEOUT_MS),
|
|
145
|
+
});
|
|
146
|
+
if (!response.ok) {
|
|
147
|
+
const body = (await response.json().catch(() => ({})));
|
|
148
|
+
const text = buildTradeFailureText({
|
|
149
|
+
side,
|
|
150
|
+
amount: amountRaw,
|
|
151
|
+
tokenAddress,
|
|
152
|
+
routeProvider,
|
|
153
|
+
mode: "unknown",
|
|
154
|
+
requiresUserSignature: false,
|
|
155
|
+
reason: body.error ?? `HTTP ${response.status}`,
|
|
156
|
+
});
|
|
157
|
+
callback?.({ text, action: "EXECUTE_TRADE_FAILED" });
|
|
158
|
+
return { text, success: false };
|
|
159
|
+
}
|
|
160
|
+
const result = (await response.json());
|
|
161
|
+
logger.debug(`[EXECUTE_TRADE] API response:`, JSON.stringify({
|
|
162
|
+
ok: result.ok,
|
|
163
|
+
side: result.side,
|
|
164
|
+
mode: result.mode,
|
|
165
|
+
executed: result.executed,
|
|
166
|
+
requiresUserSignature: result.requiresUserSignature,
|
|
167
|
+
hasExecution: !!result.execution,
|
|
168
|
+
error: result.error,
|
|
169
|
+
}));
|
|
170
|
+
const resolvedRouteProvider = typeof result.quote?.routeProvider === "string"
|
|
171
|
+
? result.quote.routeProvider
|
|
172
|
+
: routeProvider;
|
|
173
|
+
if (!result.ok) {
|
|
174
|
+
const text = buildTradeFailureText({
|
|
175
|
+
side,
|
|
176
|
+
amount: amountRaw,
|
|
177
|
+
tokenAddress,
|
|
178
|
+
routeProvider: resolvedRouteProvider,
|
|
179
|
+
mode: result.mode,
|
|
180
|
+
requiresUserSignature: result.requiresUserSignature,
|
|
181
|
+
reason: result.error ?? "unknown error",
|
|
182
|
+
});
|
|
183
|
+
callback?.({ text, action: "EXECUTE_TRADE_FAILED" });
|
|
184
|
+
return { text, success: false };
|
|
185
|
+
}
|
|
186
|
+
if (result.executed && result.execution) {
|
|
187
|
+
const text = buildTradeSuccessText({
|
|
188
|
+
side,
|
|
189
|
+
amount: amountRaw,
|
|
190
|
+
tokenAddress,
|
|
191
|
+
routeProvider: resolvedRouteProvider,
|
|
192
|
+
mode: result.mode,
|
|
193
|
+
txHash: result.execution.hash,
|
|
194
|
+
explorerUrl: result.execution.explorerUrl,
|
|
195
|
+
status: result.execution.status,
|
|
196
|
+
});
|
|
197
|
+
callback?.({
|
|
198
|
+
text,
|
|
199
|
+
action: "EXECUTE_TRADE_SUCCESS",
|
|
200
|
+
txHash: result.execution.hash,
|
|
201
|
+
explorerUrl: result.execution.explorerUrl,
|
|
202
|
+
executionMode: result.mode,
|
|
203
|
+
routeProvider: resolvedRouteProvider,
|
|
204
|
+
executed: true,
|
|
205
|
+
tokenAddress,
|
|
206
|
+
side,
|
|
207
|
+
});
|
|
208
|
+
return {
|
|
209
|
+
text,
|
|
210
|
+
success: true,
|
|
211
|
+
data: {
|
|
212
|
+
side,
|
|
213
|
+
tokenAddress,
|
|
214
|
+
amount: amountRaw,
|
|
215
|
+
mode: result.mode,
|
|
216
|
+
routeProvider: resolvedRouteProvider,
|
|
217
|
+
txHash: result.execution.hash,
|
|
218
|
+
explorerUrl: result.execution.explorerUrl,
|
|
219
|
+
executed: true,
|
|
220
|
+
},
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
// For agent automation, reporting "success" without an on-chain execution
|
|
224
|
+
// leads to false-positive heartbeat status.
|
|
225
|
+
const text = buildTradeFailureText({
|
|
226
|
+
side,
|
|
227
|
+
amount: amountRaw,
|
|
228
|
+
tokenAddress,
|
|
229
|
+
routeProvider: resolvedRouteProvider,
|
|
230
|
+
mode: result.mode,
|
|
231
|
+
requiresUserSignature: result.requiresUserSignature,
|
|
232
|
+
reason: result.requiresUserSignature
|
|
233
|
+
? `User signature is required to complete the ${side}.`
|
|
234
|
+
: "Trade was prepared but not executed on-chain.",
|
|
235
|
+
});
|
|
236
|
+
callback?.({
|
|
237
|
+
text,
|
|
238
|
+
action: "EXECUTE_TRADE_FAILED",
|
|
239
|
+
executionMode: result.mode,
|
|
240
|
+
routeProvider: resolvedRouteProvider,
|
|
241
|
+
executed: false,
|
|
242
|
+
tokenAddress,
|
|
243
|
+
side,
|
|
244
|
+
requiresUserSignature: result.requiresUserSignature,
|
|
245
|
+
});
|
|
246
|
+
return {
|
|
247
|
+
text,
|
|
248
|
+
success: false,
|
|
249
|
+
data: {
|
|
250
|
+
side,
|
|
251
|
+
tokenAddress,
|
|
252
|
+
amount: amountRaw,
|
|
253
|
+
mode: result.mode,
|
|
254
|
+
routeProvider: resolvedRouteProvider,
|
|
255
|
+
requiresUserSignature: result.requiresUserSignature,
|
|
256
|
+
executed: false,
|
|
257
|
+
unsignedTx: result.unsignedTx,
|
|
258
|
+
},
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
catch (err) {
|
|
262
|
+
const text = `Trade failed: ${err instanceof Error ? err.message : String(err)}`;
|
|
263
|
+
callback?.({ text, action: "EXECUTE_TRADE_FAILED" });
|
|
264
|
+
return { text, success: false };
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
parameters: [
|
|
268
|
+
{
|
|
269
|
+
name: "side",
|
|
270
|
+
description: 'Trade direction: "buy" or "sell"',
|
|
271
|
+
required: true,
|
|
272
|
+
schema: { type: "string" },
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
name: "tokenAddress",
|
|
276
|
+
description: "BSC token contract address (0x-prefixed, 40 hex characters)",
|
|
277
|
+
required: true,
|
|
278
|
+
schema: { type: "string" },
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
name: "amount",
|
|
282
|
+
description: 'Human-readable trade amount (e.g. "0.5" BNB for buys, or token amount for sells)',
|
|
283
|
+
required: true,
|
|
284
|
+
schema: { type: "string" },
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
name: "slippageBps",
|
|
288
|
+
description: "Slippage tolerance in basis points (default 300 = 3%)",
|
|
289
|
+
required: false,
|
|
290
|
+
schema: { type: "number" },
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
name: "routeProvider",
|
|
294
|
+
description: 'Route provider preference for the swap: "pancakeswap-v2" or "0x". Defaults to "pancakeswap-v2".',
|
|
295
|
+
required: false,
|
|
296
|
+
schema: { type: "string" },
|
|
297
|
+
},
|
|
298
|
+
],
|
|
299
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GET_SELF_STATUS action — on-demand detail retrieval from the Self-Awareness System.
|
|
3
|
+
*
|
|
4
|
+
* Provides Layer 2 detail for a specific module or all modules.
|
|
5
|
+
* The always-on Layer 1 summary (injected via the self-status provider)
|
|
6
|
+
* gives a brief overview every turn; this action lets the agent (or user)
|
|
7
|
+
* drill down when more context is needed.
|
|
8
|
+
*
|
|
9
|
+
* @module actions/get-self-status
|
|
10
|
+
*/
|
|
11
|
+
import type { Action } from "@elizaos/core";
|
|
12
|
+
export declare const getSelfStatusAction: Action;
|
|
13
|
+
//# sourceMappingURL=get-self-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-self-status.d.ts","sourceRoot":"","sources":["../../../../../src/actions/get-self-status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAkB,MAAM,eAAe,CAAC;AAkB5D,eAAO,MAAM,mBAAmB,EAAE,MAwDjC,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GET_SELF_STATUS action — on-demand detail retrieval from the Self-Awareness System.
|
|
3
|
+
*
|
|
4
|
+
* Provides Layer 2 detail for a specific module or all modules.
|
|
5
|
+
* The always-on Layer 1 summary (injected via the self-status provider)
|
|
6
|
+
* gives a brief overview every turn; this action lets the agent (or user)
|
|
7
|
+
* drill down when more context is needed.
|
|
8
|
+
*
|
|
9
|
+
* @module actions/get-self-status
|
|
10
|
+
*/
|
|
11
|
+
import { getGlobalAwarenessRegistry } from "@elizaos/shared/awareness";
|
|
12
|
+
const VALID_MODULES = [
|
|
13
|
+
"all",
|
|
14
|
+
"runtime",
|
|
15
|
+
"permissions",
|
|
16
|
+
"wallet",
|
|
17
|
+
"provider",
|
|
18
|
+
"pluginHealth",
|
|
19
|
+
"connectors",
|
|
20
|
+
"cloud",
|
|
21
|
+
"features",
|
|
22
|
+
];
|
|
23
|
+
export const getSelfStatusAction = {
|
|
24
|
+
name: "GET_SELF_STATUS",
|
|
25
|
+
similes: [
|
|
26
|
+
"CHECK_STATUS",
|
|
27
|
+
"SELF_STATUS",
|
|
28
|
+
"MY_STATUS",
|
|
29
|
+
"SYSTEM_STATUS",
|
|
30
|
+
"CHECK_SELF",
|
|
31
|
+
],
|
|
32
|
+
description: "Get detailed self-status about a specific module (wallet, permissions, plugins, etc.) or all modules. " +
|
|
33
|
+
"Use this when you need more detail than the always-on summary provides.",
|
|
34
|
+
validate: async () => true,
|
|
35
|
+
handler: async (runtime, _message, _state, options) => {
|
|
36
|
+
const registry = runtime.getService("AWARENESS_REGISTRY") ?? getGlobalAwarenessRegistry();
|
|
37
|
+
if (!registry) {
|
|
38
|
+
return {
|
|
39
|
+
text: "Self-awareness registry is not available.",
|
|
40
|
+
success: false,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
const params = options?.parameters;
|
|
44
|
+
const rawModule = typeof params?.module === "string" ? params.module : "all";
|
|
45
|
+
const module = VALID_MODULES.includes(rawModule)
|
|
46
|
+
? rawModule
|
|
47
|
+
: "all";
|
|
48
|
+
const detailLevel = params?.detailLevel === "full" ? "full" : "brief";
|
|
49
|
+
const text = await registry.getDetail(runtime, module, detailLevel);
|
|
50
|
+
return { text, success: true };
|
|
51
|
+
},
|
|
52
|
+
parameters: [
|
|
53
|
+
{
|
|
54
|
+
name: "module",
|
|
55
|
+
description: "Which module: all, runtime, permissions, wallet, provider, pluginHealth, connectors, cloud, features.",
|
|
56
|
+
required: false,
|
|
57
|
+
schema: { type: "string" },
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "detailLevel",
|
|
61
|
+
description: '"brief" (~200 tokens) or "full" (~2000 tokens).',
|
|
62
|
+
required: false,
|
|
63
|
+
schema: { type: "string" },
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
};
|
|
@@ -1,33 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
type GmailSubaction = "triage" | "needs_response" | "search" | "read" | "draft_reply" | "draft_batch_replies" | "send_reply" | "send_batch_replies" | "send_message";
|
|
3
|
-
export type GmailLlmPlan = {
|
|
4
|
-
subaction: GmailSubaction | null;
|
|
5
|
-
queries: string[];
|
|
6
|
-
messageId?: string;
|
|
7
|
-
replyNeededOnly?: boolean;
|
|
8
|
-
response?: string;
|
|
9
|
-
shouldAct?: boolean | null;
|
|
10
|
-
to?: string[];
|
|
11
|
-
cc?: string[];
|
|
12
|
-
bcc?: string[];
|
|
13
|
-
subject?: string;
|
|
14
|
-
bodyText?: string;
|
|
15
|
-
};
|
|
16
|
-
type GmailComposeDraftStatus = "pending_clarification" | "sent";
|
|
17
|
-
type GmailComposeDraft = {
|
|
18
|
-
subaction: "send_message";
|
|
19
|
-
status: GmailComposeDraftStatus;
|
|
20
|
-
intent?: string;
|
|
21
|
-
to?: string[];
|
|
22
|
-
cc?: string[];
|
|
23
|
-
bcc?: string[];
|
|
24
|
-
subject?: string;
|
|
25
|
-
bodyText?: string;
|
|
26
|
-
updatedAt?: string;
|
|
27
|
-
};
|
|
28
|
-
export declare function extractGmailPlanWithLlm(runtime: IAgentRuntime, message: Memory, state: State | undefined, intent: string, activeComposeDraft?: GmailComposeDraft | null): Promise<GmailLlmPlan>;
|
|
29
|
-
export declare const gmailAction: Action & {
|
|
30
|
-
suppressPostActionContinuation?: boolean;
|
|
31
|
-
};
|
|
32
|
-
export {};
|
|
1
|
+
export * from "@elizaos/app-lifeops/actions/gmail";
|
|
33
2
|
//# sourceMappingURL=gmail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gmail.d.ts","sourceRoot":"","sources":["../../../../../src/actions/gmail.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"gmail.d.ts","sourceRoot":"","sources":["../../../../../src/actions/gmail.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC"}
|