@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
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function extractExplicitTimeZoneFromText(value: string | null | undefined): string | null;
|
|
1
|
+
export * from "@elizaos/app-lifeops/actions/timezone-normalization";
|
|
3
2
|
//# sourceMappingURL=timezone-normalization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timezone-normalization.d.ts","sourceRoot":"","sources":["../../../../../src/actions/timezone-normalization.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timezone-normalization.d.ts","sourceRoot":"","sources":["../../../../../src/actions/timezone-normalization.ts"],"names":[],"mappings":"AAAA,cAAc,qDAAqD,CAAC"}
|
|
@@ -1,107 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const TIME_ZONE_ALIASES = {
|
|
3
|
-
pst: "America/Los_Angeles",
|
|
4
|
-
pdt: "America/Los_Angeles",
|
|
5
|
-
pt: "America/Los_Angeles",
|
|
6
|
-
pacific: "America/Los_Angeles",
|
|
7
|
-
"pacific time": "America/Los_Angeles",
|
|
8
|
-
"pacific timezone": "America/Los_Angeles",
|
|
9
|
-
"pacific daylight": "America/Los_Angeles",
|
|
10
|
-
"pacific daylight time": "America/Los_Angeles",
|
|
11
|
-
"pacific standard": "America/Los_Angeles",
|
|
12
|
-
"pacific standard time": "America/Los_Angeles",
|
|
13
|
-
"los angeles": "America/Los_Angeles",
|
|
14
|
-
mst: "America/Denver",
|
|
15
|
-
mdt: "America/Denver",
|
|
16
|
-
mt: "America/Denver",
|
|
17
|
-
mountain: "America/Denver",
|
|
18
|
-
"mountain time": "America/Denver",
|
|
19
|
-
"mountain timezone": "America/Denver",
|
|
20
|
-
"mountain daylight": "America/Denver",
|
|
21
|
-
"mountain daylight time": "America/Denver",
|
|
22
|
-
"mountain standard": "America/Denver",
|
|
23
|
-
"mountain standard time": "America/Denver",
|
|
24
|
-
denver: "America/Denver",
|
|
25
|
-
cst: "America/Chicago",
|
|
26
|
-
cdt: "America/Chicago",
|
|
27
|
-
ct: "America/Chicago",
|
|
28
|
-
central: "America/Chicago",
|
|
29
|
-
"central time": "America/Chicago",
|
|
30
|
-
"central timezone": "America/Chicago",
|
|
31
|
-
"central daylight": "America/Chicago",
|
|
32
|
-
"central daylight time": "America/Chicago",
|
|
33
|
-
"central standard": "America/Chicago",
|
|
34
|
-
"central standard time": "America/Chicago",
|
|
35
|
-
chicago: "America/Chicago",
|
|
36
|
-
est: "America/New_York",
|
|
37
|
-
edt: "America/New_York",
|
|
38
|
-
et: "America/New_York",
|
|
39
|
-
eastern: "America/New_York",
|
|
40
|
-
"eastern time": "America/New_York",
|
|
41
|
-
"eastern timezone": "America/New_York",
|
|
42
|
-
"eastern daylight": "America/New_York",
|
|
43
|
-
"eastern daylight time": "America/New_York",
|
|
44
|
-
"eastern standard": "America/New_York",
|
|
45
|
-
"eastern standard time": "America/New_York",
|
|
46
|
-
"new york": "America/New_York",
|
|
47
|
-
utc: "UTC",
|
|
48
|
-
gmt: "UTC",
|
|
49
|
-
};
|
|
50
|
-
const IANA_TIME_ZONE_PATTERN = /\b([A-Za-z]+(?:\/[A-Za-z0-9_+-]+)+)\b/g;
|
|
51
|
-
function canonicalizeTimeZoneAliasKey(value) {
|
|
52
|
-
return value
|
|
53
|
-
.trim()
|
|
54
|
-
.toLowerCase()
|
|
55
|
-
.replace(/[._-]+/g, " ")
|
|
56
|
-
.replace(/\s+/g, " ")
|
|
57
|
-
.replace(/\b(?:timezone|time)\b/g, " ")
|
|
58
|
-
.replace(/\s+/g, " ")
|
|
59
|
-
.trim();
|
|
60
|
-
}
|
|
61
|
-
export function normalizeExplicitTimeZoneToken(value) {
|
|
62
|
-
if (typeof value !== "string") {
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
const trimmed = value.trim();
|
|
66
|
-
if (!trimmed) {
|
|
67
|
-
return null;
|
|
68
|
-
}
|
|
69
|
-
const alias = TIME_ZONE_ALIASES[canonicalizeTimeZoneAliasKey(trimmed)];
|
|
70
|
-
if (alias && isValidTimeZone(alias)) {
|
|
71
|
-
return alias;
|
|
72
|
-
}
|
|
73
|
-
if (isValidTimeZone(trimmed)) {
|
|
74
|
-
return trimmed;
|
|
75
|
-
}
|
|
76
|
-
return null;
|
|
77
|
-
}
|
|
78
|
-
export function extractExplicitTimeZoneFromText(value) {
|
|
79
|
-
if (typeof value !== "string" || value.trim().length === 0) {
|
|
80
|
-
return null;
|
|
81
|
-
}
|
|
82
|
-
let match;
|
|
83
|
-
const ianaPattern = new RegExp(IANA_TIME_ZONE_PATTERN);
|
|
84
|
-
ianaPattern.lastIndex = 0;
|
|
85
|
-
match = ianaPattern.exec(value);
|
|
86
|
-
while (match !== null) {
|
|
87
|
-
const normalized = normalizeExplicitTimeZoneToken(match[1] ?? match[0]);
|
|
88
|
-
if (normalized) {
|
|
89
|
-
return normalized;
|
|
90
|
-
}
|
|
91
|
-
match = ianaPattern.exec(value);
|
|
92
|
-
}
|
|
93
|
-
const lower = ` ${canonicalizeTimeZoneAliasKey(value)} `;
|
|
94
|
-
for (const alias of Object.keys(TIME_ZONE_ALIASES).sort((left, right) => right.length - left.length)) {
|
|
95
|
-
const escapedAlias = alias
|
|
96
|
-
.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")
|
|
97
|
-
.replace(/\\ /g, "\\s+");
|
|
98
|
-
const aliasPattern = new RegExp(`(^|\\s)${escapedAlias}(?=\\s|$)`, "i");
|
|
99
|
-
if (aliasPattern.test(lower)) {
|
|
100
|
-
const normalized = normalizeExplicitTimeZoneToken(alias);
|
|
101
|
-
if (normalized) {
|
|
102
|
-
return normalized;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return null;
|
|
107
|
-
}
|
|
1
|
+
export * from "@elizaos/app-lifeops/actions/timezone-normalization";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TRANSFER_TOKEN action — transfers tokens or native BNB to another address.
|
|
3
|
+
*
|
|
4
|
+
* When triggered the action:
|
|
5
|
+
* 1. Validates parameters (toAddress 0x format, amount > 0, assetSymbol non-empty)
|
|
6
|
+
* 2. POSTs to the local transfer execution API with agent automation header
|
|
7
|
+
* 3. Returns structured result: execution status, txHash, explorer URL,
|
|
8
|
+
* 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/transfer-token
|
|
14
|
+
*/
|
|
15
|
+
import type { Action } from "@elizaos/core";
|
|
16
|
+
export declare const transferTokenAction: Action;
|
|
17
|
+
//# sourceMappingURL=transfer-token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer-token.d.ts","sourceRoot":"","sources":["../../../../../src/actions/transfer-token.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EACV,MAAM,EAIP,MAAM,eAAe,CAAC;AAwHvB,eAAO,MAAM,mBAAmB,EAAE,MA0bjC,CAAC"}
|
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TRANSFER_TOKEN action — transfers tokens or native BNB to another address.
|
|
3
|
+
*
|
|
4
|
+
* When triggered the action:
|
|
5
|
+
* 1. Validates parameters (toAddress 0x format, amount > 0, assetSymbol non-empty)
|
|
6
|
+
* 2. POSTs to the local transfer execution API with agent automation header
|
|
7
|
+
* 3. Returns structured result: execution status, txHash, explorer URL,
|
|
8
|
+
* 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/transfer-token
|
|
14
|
+
*/
|
|
15
|
+
import { buildAuthHeaders, getWalletActionApiPort, } from "./wallet-action-shared.js";
|
|
16
|
+
/** Timeout for the transfer API call (includes on-chain confirmation). */
|
|
17
|
+
const TRANSFER_TIMEOUT_MS = 60_000;
|
|
18
|
+
/** Chain ID used for BSC mainnet / testnet when routing through steward. */
|
|
19
|
+
const BSC_CHAIN_ID = 56;
|
|
20
|
+
const BSC_TESTNET_CHAIN_ID = 97;
|
|
21
|
+
/** Matches a 0x-prefixed 40-hex-char EVM address. */
|
|
22
|
+
const EVM_ADDRESS_RE = /^0x[0-9a-fA-F]{40}$/;
|
|
23
|
+
const EVM_ADDRESS_CAPTURE_RE = /\b0x[a-fA-F0-9]{40}\b/g;
|
|
24
|
+
const DECIMAL_AMOUNT_CAPTURE_RE = /\b(\d+(?:\.\d+)?)\b/;
|
|
25
|
+
const ASSET_SYMBOL_CAPTURE_RE = /\b(?:t?bnb|bnb|eth|usdt|usdc|busd|dai|weth|wbtc)\b/i;
|
|
26
|
+
function extractMessageText(message) {
|
|
27
|
+
if (!message ||
|
|
28
|
+
typeof message !== "object" ||
|
|
29
|
+
!("content" in message) ||
|
|
30
|
+
!message.content ||
|
|
31
|
+
typeof message.content !== "object" ||
|
|
32
|
+
!("text" in message.content) ||
|
|
33
|
+
typeof message.content.text !== "string") {
|
|
34
|
+
return "";
|
|
35
|
+
}
|
|
36
|
+
return message.content.text.trim();
|
|
37
|
+
}
|
|
38
|
+
function inferTransferParamsFromMessage(message) {
|
|
39
|
+
const text = extractMessageText(message);
|
|
40
|
+
const addressMatches = text.match(EVM_ADDRESS_CAPTURE_RE) ?? [];
|
|
41
|
+
const toAddress = addressMatches[addressMatches.length - 1];
|
|
42
|
+
const amount = text.match(DECIMAL_AMOUNT_CAPTURE_RE)?.[1];
|
|
43
|
+
const assetSymbol = text.match(ASSET_SYMBOL_CAPTURE_RE)?.[0];
|
|
44
|
+
return {
|
|
45
|
+
toAddress,
|
|
46
|
+
amount,
|
|
47
|
+
assetSymbol: typeof assetSymbol === "string"
|
|
48
|
+
? assetSymbol.trim().toUpperCase() === "TBNB"
|
|
49
|
+
? "BNB"
|
|
50
|
+
: assetSymbol.trim().toUpperCase()
|
|
51
|
+
: undefined,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function isStewardConfigured() {
|
|
55
|
+
const url = process.env.STEWARD_API_URL?.trim();
|
|
56
|
+
const agentId = process.env.STEWARD_AGENT_ID?.trim() ||
|
|
57
|
+
process.env.ELIZA_STEWARD_AGENT_ID?.trim() ||
|
|
58
|
+
process.env.ELIZA_STEWARD_AGENT_ID?.trim();
|
|
59
|
+
return Boolean(url && agentId);
|
|
60
|
+
}
|
|
61
|
+
function resolveBscChainId() {
|
|
62
|
+
return process.env.ELIZA_WALLET_NETWORK?.trim().toLowerCase() === "testnet"
|
|
63
|
+
? BSC_TESTNET_CHAIN_ID
|
|
64
|
+
: BSC_CHAIN_ID;
|
|
65
|
+
}
|
|
66
|
+
function walletNetworkLabel() {
|
|
67
|
+
return process.env.ELIZA_WALLET_NETWORK?.trim().toLowerCase() === "testnet"
|
|
68
|
+
? "BSC testnet"
|
|
69
|
+
: "BSC";
|
|
70
|
+
}
|
|
71
|
+
function buildTransferSuccessText(args) {
|
|
72
|
+
return [
|
|
73
|
+
"Action: TRANSFER_TOKEN",
|
|
74
|
+
`Chain: ${walletNetworkLabel()}`,
|
|
75
|
+
`Amount: ${args.amount} ${args.assetSymbol}`,
|
|
76
|
+
`Recipient: ${args.toAddress}`,
|
|
77
|
+
`Execution mode: ${args.mode}`,
|
|
78
|
+
"Executed: true",
|
|
79
|
+
`Tx hash: ${args.txHash}`,
|
|
80
|
+
`Explorer: ${args.explorerUrl}`,
|
|
81
|
+
`Status: ${args.status}`,
|
|
82
|
+
].join("\n");
|
|
83
|
+
}
|
|
84
|
+
function buildTransferFailureText(args) {
|
|
85
|
+
return [
|
|
86
|
+
"Action: TRANSFER_TOKEN",
|
|
87
|
+
`Chain: ${walletNetworkLabel()}`,
|
|
88
|
+
`Amount: ${args.amount} ${args.assetSymbol}`,
|
|
89
|
+
`Recipient: ${args.toAddress}`,
|
|
90
|
+
`Execution mode: ${args.mode}`,
|
|
91
|
+
"Executed: false",
|
|
92
|
+
`Requires user signature: ${args.requiresUserSignature ? "true" : "false"}`,
|
|
93
|
+
`Reason: ${args.reason}`,
|
|
94
|
+
].join("\n");
|
|
95
|
+
}
|
|
96
|
+
export const transferTokenAction = {
|
|
97
|
+
name: "TRANSFER_TOKEN",
|
|
98
|
+
similes: ["SEND_TOKEN", "TRANSFER", "SEND", "SEND_BNB", "SEND_CRYPTO", "PAY"],
|
|
99
|
+
description: "Transfer tokens or native BNB to another address. Use this when a user " +
|
|
100
|
+
"asks to send, transfer, or pay tokens to a recipient address on BSC.",
|
|
101
|
+
validate: async (runtime) => {
|
|
102
|
+
return Boolean(runtime.getSetting("EVM_PRIVATE_KEY") ||
|
|
103
|
+
runtime.getSetting("PRIVY_APP_ID") ||
|
|
104
|
+
runtime.getSetting("STEWARD_API_URL"));
|
|
105
|
+
},
|
|
106
|
+
handler: async (_runtime, _message, _state, options, callback) => {
|
|
107
|
+
try {
|
|
108
|
+
const params = options?.parameters;
|
|
109
|
+
const inferredParams = inferTransferParamsFromMessage(_message);
|
|
110
|
+
// ── Validate toAddress ─────────────────────────────────────────────
|
|
111
|
+
const toAddress = typeof params?.toAddress === "string"
|
|
112
|
+
? EVM_ADDRESS_RE.test(params.toAddress.trim())
|
|
113
|
+
? params.toAddress.trim()
|
|
114
|
+
: inferredParams.toAddress
|
|
115
|
+
: inferredParams.toAddress;
|
|
116
|
+
if (!toAddress || !EVM_ADDRESS_RE.test(toAddress)) {
|
|
117
|
+
const text = "I need a valid recipient address (0x-prefixed, 40 hex chars).";
|
|
118
|
+
if (callback)
|
|
119
|
+
callback({ text, action: "TRANSFER_TOKEN_FAILED" });
|
|
120
|
+
return {
|
|
121
|
+
text,
|
|
122
|
+
success: false,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
// ── Validate amount ────────────────────────────────────────────────
|
|
126
|
+
const amountRaw = typeof params?.amount === "string"
|
|
127
|
+
? Number(params.amount.trim()) > 0
|
|
128
|
+
? params.amount.trim()
|
|
129
|
+
: inferredParams.amount
|
|
130
|
+
: typeof params?.amount === "number"
|
|
131
|
+
? String(params.amount)
|
|
132
|
+
: inferredParams.amount;
|
|
133
|
+
if (!amountRaw ||
|
|
134
|
+
Number.isNaN(Number(amountRaw)) ||
|
|
135
|
+
Number(amountRaw) <= 0) {
|
|
136
|
+
const text = "I need a positive numeric amount for the transfer.";
|
|
137
|
+
if (callback)
|
|
138
|
+
callback({ text, action: "TRANSFER_TOKEN_FAILED" });
|
|
139
|
+
return {
|
|
140
|
+
text,
|
|
141
|
+
success: false,
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
// ── Validate assetSymbol ───────────────────────────────────────────
|
|
145
|
+
const assetSymbol = typeof params?.assetSymbol === "string"
|
|
146
|
+
? params.assetSymbol.trim().length > 0
|
|
147
|
+
? params.assetSymbol.trim()
|
|
148
|
+
: inferredParams.assetSymbol
|
|
149
|
+
: inferredParams.assetSymbol;
|
|
150
|
+
if (!assetSymbol) {
|
|
151
|
+
const text = "I need an asset symbol (e.g. BNB, USDT, USDC) for the transfer.";
|
|
152
|
+
if (callback)
|
|
153
|
+
callback({ text, action: "TRANSFER_TOKEN_FAILED" });
|
|
154
|
+
return {
|
|
155
|
+
text,
|
|
156
|
+
success: false,
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
if (!/^[A-Za-z0-9]{1,20}$/.test(assetSymbol)) {
|
|
160
|
+
const text = "Invalid asset symbol format.";
|
|
161
|
+
if (callback)
|
|
162
|
+
callback({ text, action: "TRANSFER_TOKEN_FAILED" });
|
|
163
|
+
return { text, success: false };
|
|
164
|
+
}
|
|
165
|
+
// ── Optional tokenAddress ──────────────────────────────────────────
|
|
166
|
+
const tokenAddress = typeof params?.tokenAddress === "string" &&
|
|
167
|
+
params.tokenAddress.trim() !== ""
|
|
168
|
+
? params.tokenAddress.trim()
|
|
169
|
+
: undefined;
|
|
170
|
+
if (tokenAddress && !EVM_ADDRESS_RE.test(tokenAddress)) {
|
|
171
|
+
const text = "Invalid token address format.";
|
|
172
|
+
if (callback)
|
|
173
|
+
callback({ text, action: "TRANSFER_TOKEN_FAILED" });
|
|
174
|
+
return { text, success: false };
|
|
175
|
+
}
|
|
176
|
+
// ── Try Steward vault signing first ─────────────────────────────────
|
|
177
|
+
if (isStewardConfigured()) {
|
|
178
|
+
try {
|
|
179
|
+
const stewardResult = await fetch(`http://127.0.0.1:${getWalletActionApiPort()}/api/wallet/steward-sign`, {
|
|
180
|
+
method: "POST",
|
|
181
|
+
headers: {
|
|
182
|
+
"Content-Type": "application/json",
|
|
183
|
+
...buildAuthHeaders(),
|
|
184
|
+
},
|
|
185
|
+
body: JSON.stringify({
|
|
186
|
+
to: toAddress,
|
|
187
|
+
value: amountRaw,
|
|
188
|
+
chainId: resolveBscChainId(),
|
|
189
|
+
description: `Transfer ${amountRaw} ${assetSymbol} to ${toAddress}`,
|
|
190
|
+
}),
|
|
191
|
+
signal: AbortSignal.timeout(TRANSFER_TIMEOUT_MS),
|
|
192
|
+
});
|
|
193
|
+
const stewardBody = (await stewardResult
|
|
194
|
+
.json()
|
|
195
|
+
.catch(() => ({})));
|
|
196
|
+
// Approved — steward signed and broadcast
|
|
197
|
+
if (stewardResult.ok && stewardBody.approved === true) {
|
|
198
|
+
const txHash = typeof stewardBody.txHash === "string"
|
|
199
|
+
? stewardBody.txHash
|
|
200
|
+
: "unknown";
|
|
201
|
+
const explorerUrl = resolveBscChainId() === BSC_CHAIN_ID
|
|
202
|
+
? `https://bscscan.com/tx/${txHash}`
|
|
203
|
+
: `https://testnet.bscscan.com/tx/${txHash}`;
|
|
204
|
+
const text = buildTransferSuccessText({
|
|
205
|
+
amount: amountRaw,
|
|
206
|
+
assetSymbol,
|
|
207
|
+
toAddress,
|
|
208
|
+
mode: "steward",
|
|
209
|
+
txHash,
|
|
210
|
+
explorerUrl,
|
|
211
|
+
status: "success",
|
|
212
|
+
});
|
|
213
|
+
if (callback) {
|
|
214
|
+
callback({
|
|
215
|
+
text,
|
|
216
|
+
action: "TRANSFER_TOKEN_SUCCESS",
|
|
217
|
+
txHash,
|
|
218
|
+
explorerUrl,
|
|
219
|
+
executionMode: "steward",
|
|
220
|
+
executed: true,
|
|
221
|
+
recipient: toAddress,
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
return {
|
|
225
|
+
text,
|
|
226
|
+
success: true,
|
|
227
|
+
data: {
|
|
228
|
+
toAddress,
|
|
229
|
+
amount: amountRaw,
|
|
230
|
+
assetSymbol,
|
|
231
|
+
mode: "steward",
|
|
232
|
+
txHash,
|
|
233
|
+
explorerUrl,
|
|
234
|
+
executed: true,
|
|
235
|
+
},
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
// Pending approval — tx queued for manual review
|
|
239
|
+
if (stewardResult.status === 202 && stewardBody.pending === true) {
|
|
240
|
+
const txId = typeof stewardBody.txId === "string" ? stewardBody.txId : "";
|
|
241
|
+
const text = buildTransferFailureText({
|
|
242
|
+
amount: amountRaw,
|
|
243
|
+
assetSymbol,
|
|
244
|
+
toAddress,
|
|
245
|
+
mode: "steward",
|
|
246
|
+
requiresUserSignature: false,
|
|
247
|
+
reason: `Transaction queued for manual approval${txId ? ` (ID: ${txId})` : ""}. A policy admin must approve before it broadcasts.`,
|
|
248
|
+
});
|
|
249
|
+
if (callback) {
|
|
250
|
+
callback({
|
|
251
|
+
text,
|
|
252
|
+
action: "TRANSFER_TOKEN_PENDING",
|
|
253
|
+
executionMode: "steward",
|
|
254
|
+
executed: false,
|
|
255
|
+
recipient: toAddress,
|
|
256
|
+
txId,
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
return {
|
|
260
|
+
text,
|
|
261
|
+
success: false,
|
|
262
|
+
data: {
|
|
263
|
+
toAddress,
|
|
264
|
+
amount: amountRaw,
|
|
265
|
+
assetSymbol,
|
|
266
|
+
mode: "steward",
|
|
267
|
+
pending: true,
|
|
268
|
+
txId,
|
|
269
|
+
executed: false,
|
|
270
|
+
},
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
// Denied — policy violation
|
|
274
|
+
if (stewardResult.status === 403) {
|
|
275
|
+
const violations = Array.isArray(stewardBody.violations)
|
|
276
|
+
? stewardBody.violations
|
|
277
|
+
: [];
|
|
278
|
+
const violationText = violations
|
|
279
|
+
.map((v) => `• ${v.policy}: ${v.reason}`)
|
|
280
|
+
.join("\n");
|
|
281
|
+
const reason = violationText
|
|
282
|
+
? `Policy violations:\n${violationText}`
|
|
283
|
+
: "Transaction denied by steward policy.";
|
|
284
|
+
const text = buildTransferFailureText({
|
|
285
|
+
amount: amountRaw,
|
|
286
|
+
assetSymbol,
|
|
287
|
+
toAddress,
|
|
288
|
+
mode: "steward",
|
|
289
|
+
requiresUserSignature: false,
|
|
290
|
+
reason,
|
|
291
|
+
});
|
|
292
|
+
if (callback) {
|
|
293
|
+
callback({
|
|
294
|
+
text,
|
|
295
|
+
action: "TRANSFER_TOKEN_FAILED",
|
|
296
|
+
executionMode: "steward",
|
|
297
|
+
executed: false,
|
|
298
|
+
recipient: toAddress,
|
|
299
|
+
violations,
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
return {
|
|
303
|
+
text,
|
|
304
|
+
success: false,
|
|
305
|
+
data: {
|
|
306
|
+
toAddress,
|
|
307
|
+
amount: amountRaw,
|
|
308
|
+
assetSymbol,
|
|
309
|
+
mode: "steward",
|
|
310
|
+
denied: true,
|
|
311
|
+
violations,
|
|
312
|
+
executed: false,
|
|
313
|
+
},
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
// Other steward errors — fall through to direct signing
|
|
317
|
+
}
|
|
318
|
+
catch (_stewardErr) {
|
|
319
|
+
// Steward unavailable — fall through to direct signing
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
// ── POST to transfer execution API (direct signing fallback) ───────
|
|
323
|
+
const body = {
|
|
324
|
+
toAddress,
|
|
325
|
+
amount: amountRaw,
|
|
326
|
+
assetSymbol,
|
|
327
|
+
confirm: true,
|
|
328
|
+
};
|
|
329
|
+
if (tokenAddress) {
|
|
330
|
+
body.tokenAddress = tokenAddress;
|
|
331
|
+
}
|
|
332
|
+
const response = await fetch(`http://127.0.0.1:${getWalletActionApiPort()}/api/wallet/transfer/execute`, {
|
|
333
|
+
method: "POST",
|
|
334
|
+
headers: {
|
|
335
|
+
"Content-Type": "application/json",
|
|
336
|
+
"X-Eliza-Agent-Action": "1",
|
|
337
|
+
...buildAuthHeaders(),
|
|
338
|
+
},
|
|
339
|
+
body: JSON.stringify(body),
|
|
340
|
+
signal: AbortSignal.timeout(TRANSFER_TIMEOUT_MS),
|
|
341
|
+
});
|
|
342
|
+
if (!response.ok) {
|
|
343
|
+
const errBody = (await response.json().catch(() => ({})));
|
|
344
|
+
const text = `Transfer failed: ${errBody.error ?? `HTTP ${response.status}`}`;
|
|
345
|
+
if (callback)
|
|
346
|
+
callback({ text, action: "TRANSFER_TOKEN_FAILED" });
|
|
347
|
+
return {
|
|
348
|
+
text,
|
|
349
|
+
success: false,
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
const result = (await response.json());
|
|
353
|
+
if (!result.ok) {
|
|
354
|
+
const text = `Transfer failed: ${result.error ?? "unknown error"}`;
|
|
355
|
+
if (callback)
|
|
356
|
+
callback({ text, action: "TRANSFER_TOKEN_FAILED" });
|
|
357
|
+
return {
|
|
358
|
+
text,
|
|
359
|
+
success: false,
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
// ── Build human-readable response ──────────────────────────────────
|
|
363
|
+
if (result.executed && result.execution) {
|
|
364
|
+
const text = buildTransferSuccessText({
|
|
365
|
+
amount: amountRaw,
|
|
366
|
+
assetSymbol,
|
|
367
|
+
toAddress,
|
|
368
|
+
mode: result.mode,
|
|
369
|
+
txHash: result.execution.hash,
|
|
370
|
+
explorerUrl: result.execution.explorerUrl,
|
|
371
|
+
status: result.execution.status,
|
|
372
|
+
});
|
|
373
|
+
if (callback) {
|
|
374
|
+
callback({
|
|
375
|
+
text,
|
|
376
|
+
action: "TRANSFER_TOKEN_SUCCESS",
|
|
377
|
+
txHash: result.execution.hash,
|
|
378
|
+
explorerUrl: result.execution.explorerUrl,
|
|
379
|
+
executionMode: result.mode,
|
|
380
|
+
executed: true,
|
|
381
|
+
recipient: toAddress,
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
return {
|
|
385
|
+
text,
|
|
386
|
+
success: true,
|
|
387
|
+
data: {
|
|
388
|
+
toAddress,
|
|
389
|
+
amount: amountRaw,
|
|
390
|
+
assetSymbol,
|
|
391
|
+
mode: result.mode,
|
|
392
|
+
txHash: result.execution.hash,
|
|
393
|
+
explorerUrl: result.execution.explorerUrl,
|
|
394
|
+
executed: true,
|
|
395
|
+
},
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
// For agent automation, reporting "success" without an on-chain execution
|
|
399
|
+
// leads to false-positive heartbeat status.
|
|
400
|
+
const text = buildTransferFailureText({
|
|
401
|
+
amount: amountRaw,
|
|
402
|
+
assetSymbol,
|
|
403
|
+
toAddress,
|
|
404
|
+
mode: result.mode,
|
|
405
|
+
requiresUserSignature: result.requiresUserSignature,
|
|
406
|
+
reason: result.requiresUserSignature
|
|
407
|
+
? "User signature is required before the transfer can be broadcast."
|
|
408
|
+
: "Transfer was prepared but not executed on-chain.",
|
|
409
|
+
});
|
|
410
|
+
if (callback) {
|
|
411
|
+
callback({
|
|
412
|
+
text,
|
|
413
|
+
action: "TRANSFER_TOKEN_FAILED",
|
|
414
|
+
executionMode: result.mode,
|
|
415
|
+
executed: false,
|
|
416
|
+
recipient: toAddress,
|
|
417
|
+
requiresUserSignature: result.requiresUserSignature,
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
return {
|
|
421
|
+
text,
|
|
422
|
+
success: false,
|
|
423
|
+
data: {
|
|
424
|
+
toAddress,
|
|
425
|
+
amount: amountRaw,
|
|
426
|
+
assetSymbol,
|
|
427
|
+
mode: result.mode,
|
|
428
|
+
requiresUserSignature: result.requiresUserSignature,
|
|
429
|
+
executed: false,
|
|
430
|
+
unsignedTx: result.unsignedTx,
|
|
431
|
+
},
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
catch (err) {
|
|
435
|
+
const text = `Transfer failed: ${err instanceof Error ? err.message : String(err)}`;
|
|
436
|
+
if (callback)
|
|
437
|
+
callback({ text, action: "TRANSFER_TOKEN_FAILED" });
|
|
438
|
+
return {
|
|
439
|
+
text,
|
|
440
|
+
success: false,
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
parameters: [
|
|
445
|
+
{
|
|
446
|
+
name: "toAddress",
|
|
447
|
+
description: "Recipient EVM address (0x-prefixed, 40 hex characters)",
|
|
448
|
+
required: true,
|
|
449
|
+
schema: { type: "string" },
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
name: "amount",
|
|
453
|
+
description: 'Human-readable transfer amount (e.g. "1.5" BNB, "100" USDT)',
|
|
454
|
+
required: true,
|
|
455
|
+
schema: { type: "string" },
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
name: "assetSymbol",
|
|
459
|
+
description: 'Token symbol to transfer (e.g. "BNB", "USDT", "USDC")',
|
|
460
|
+
required: true,
|
|
461
|
+
schema: { type: "string" },
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
name: "tokenAddress",
|
|
465
|
+
description: "Token contract address for custom tokens (optional, not needed for native BNB)",
|
|
466
|
+
required: false,
|
|
467
|
+
schema: { type: "string" },
|
|
468
|
+
},
|
|
469
|
+
],
|
|
470
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-owner-profile.d.ts","sourceRoot":"","sources":["../../../../../src/actions/update-owner-profile.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"update-owner-profile.d.ts","sourceRoot":"","sources":["../../../../../src/actions/update-owner-profile.ts"],"names":[],"mappings":"AAAA,cAAc,mDAAmD,CAAC"}
|