@elizaos/agent 2.0.0-alpha.144 → 2.0.0-alpha.152
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,125 @@
|
|
|
1
|
+
import { elizaLogger, } from "@elizaos/core";
|
|
2
|
+
import { getValidationKeywordTerms, textIncludesKeywordTerm, } from "@elizaos/shared/validation-keywords";
|
|
3
|
+
const LOG_LEVEL_COMMAND_TERMS = getValidationKeywordTerms("action.logLevel.command", {
|
|
4
|
+
includeAllLocales: true,
|
|
5
|
+
});
|
|
6
|
+
const LOG_LEVEL_SET_TERMS = getValidationKeywordTerms("action.logLevel.setVerb", {
|
|
7
|
+
includeAllLocales: true,
|
|
8
|
+
});
|
|
9
|
+
const LOG_LEVEL_DOMAIN_TERMS = getValidationKeywordTerms("action.logLevel.domain", {
|
|
10
|
+
includeAllLocales: true,
|
|
11
|
+
});
|
|
12
|
+
const LOG_LEVEL_ALIASES = {
|
|
13
|
+
trace: getValidationKeywordTerms("action.logLevel.level.trace", {
|
|
14
|
+
includeAllLocales: true,
|
|
15
|
+
}),
|
|
16
|
+
debug: getValidationKeywordTerms("action.logLevel.level.debug", {
|
|
17
|
+
includeAllLocales: true,
|
|
18
|
+
}),
|
|
19
|
+
info: getValidationKeywordTerms("action.logLevel.level.info", {
|
|
20
|
+
includeAllLocales: true,
|
|
21
|
+
}),
|
|
22
|
+
warn: getValidationKeywordTerms("action.logLevel.level.warn", {
|
|
23
|
+
includeAllLocales: true,
|
|
24
|
+
}),
|
|
25
|
+
error: getValidationKeywordTerms("action.logLevel.level.error", {
|
|
26
|
+
includeAllLocales: true,
|
|
27
|
+
}),
|
|
28
|
+
};
|
|
29
|
+
function containsLogLevelTerm(text, terms) {
|
|
30
|
+
return terms.some((term) => textIncludesKeywordTerm(text, term));
|
|
31
|
+
}
|
|
32
|
+
function resolveLogLevel(text) {
|
|
33
|
+
const entries = Object.entries(LOG_LEVEL_ALIASES);
|
|
34
|
+
for (const [level, aliases] of entries) {
|
|
35
|
+
if (containsLogLevelTerm(text, aliases)) {
|
|
36
|
+
return level;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
export const logLevelAction = {
|
|
42
|
+
name: "LOG_LEVEL",
|
|
43
|
+
similes: [
|
|
44
|
+
"SET_LOG_LEVEL",
|
|
45
|
+
"CHANGE_LOG_LEVEL",
|
|
46
|
+
"DEBUG_MODE",
|
|
47
|
+
"SET_DEBUG",
|
|
48
|
+
"CONFIGURE_LOGGING",
|
|
49
|
+
],
|
|
50
|
+
description: "Set the log level for the current session (trace, debug, info, warn, error).",
|
|
51
|
+
validate: async (_runtime, message) => {
|
|
52
|
+
const text = message.content.text || "";
|
|
53
|
+
const hasLevel = resolveLogLevel(text) !== null;
|
|
54
|
+
if (!hasLevel) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
return (containsLogLevelTerm(text, LOG_LEVEL_COMMAND_TERMS) ||
|
|
58
|
+
(containsLogLevelTerm(text, LOG_LEVEL_SET_TERMS) &&
|
|
59
|
+
containsLogLevelTerm(text, LOG_LEVEL_DOMAIN_TERMS)));
|
|
60
|
+
},
|
|
61
|
+
handler: async (runtime, message, _state, _options, callback) => {
|
|
62
|
+
const text = message.content.text || "";
|
|
63
|
+
const levels = Object.keys(LOG_LEVEL_ALIASES);
|
|
64
|
+
const level = resolveLogLevel(text);
|
|
65
|
+
if (!level) {
|
|
66
|
+
if (callback) {
|
|
67
|
+
callback({
|
|
68
|
+
text: `Please specify a valid log level: ${levels.join(", ")}.`,
|
|
69
|
+
action: "LOG_LEVEL_FAILED",
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return { success: false, error: "Invalid log level" };
|
|
73
|
+
}
|
|
74
|
+
// Set the override
|
|
75
|
+
const runtimeWithOverrides = runtime;
|
|
76
|
+
if (runtimeWithOverrides.logLevelOverrides) {
|
|
77
|
+
runtimeWithOverrides.logLevelOverrides.set(message.roomId, level);
|
|
78
|
+
elizaLogger.info(`Log level set to ${level} for room ${message.roomId}`);
|
|
79
|
+
if (callback) {
|
|
80
|
+
callback({
|
|
81
|
+
text: `Log level changed to **${level.toUpperCase()}** for this room.`,
|
|
82
|
+
action: "LOG_LEVEL_SET",
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
return { success: true };
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
if (callback) {
|
|
89
|
+
callback({
|
|
90
|
+
text: "Dynamic log levels are not supported by this runtime version.",
|
|
91
|
+
action: "LOG_LEVEL_FAILED",
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
return { success: false, error: "Not supported" };
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
examples: [
|
|
98
|
+
[
|
|
99
|
+
{
|
|
100
|
+
name: "{{user1}}",
|
|
101
|
+
content: { text: "/logLevel debug" },
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: "{{agentName}}",
|
|
105
|
+
content: {
|
|
106
|
+
text: "Log level changed to **DEBUG** for this room.",
|
|
107
|
+
action: "LOG_LEVEL_SET",
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
[
|
|
112
|
+
{
|
|
113
|
+
name: "{{user1}}",
|
|
114
|
+
content: { text: "Set log level to trace" },
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: "{{agentName}}",
|
|
118
|
+
content: {
|
|
119
|
+
text: "Log level changed to **TRACE** for this room.",
|
|
120
|
+
action: "LOG_LEVEL_SET",
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
],
|
|
125
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manage-tasks.d.ts","sourceRoot":"","sources":["../../../../../src/actions/manage-tasks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,KAAK,MAAM,EASZ,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"manage-tasks.d.ts","sourceRoot":"","sources":["../../../../../src/actions/manage-tasks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,KAAK,MAAM,EASZ,MAAM,eAAe,CAAC;AA+EvB,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAIzD;AAED,eAAO,MAAM,iBAAiB,EAAE,MA0O/B,CAAC"}
|
|
@@ -4,18 +4,33 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { ModelType, parseKeyValueXml, } from "@elizaos/core";
|
|
6
6
|
import { findKeywordTermMatch } from "@elizaos/shared/validation-keywords";
|
|
7
|
+
import { readTaskCompleted, readTaskMetadata, toWorkbenchTask, WORKBENCH_TASK_TAG, } from "../api/workbench-helpers.js";
|
|
7
8
|
import { hasOwnerAccess } from "../security/access.js";
|
|
8
|
-
import { WORKBENCH_TASK_TAG, readTaskCompleted, readTaskMetadata, toWorkbenchTask, } from "../api/workbench-helpers.js";
|
|
9
9
|
import { readTriggerConfig } from "../triggers/runtime.js";
|
|
10
10
|
const MANAGE_TASKS_ACTION = "MANAGE_TASKS";
|
|
11
11
|
const TASK_INTENT_TERMS = [
|
|
12
|
-
"create task",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
12
|
+
"create task",
|
|
13
|
+
"add task",
|
|
14
|
+
"new task",
|
|
15
|
+
"make task",
|
|
16
|
+
"complete task",
|
|
17
|
+
"finish task",
|
|
18
|
+
"done with task",
|
|
19
|
+
"mark task done",
|
|
20
|
+
"delete task",
|
|
21
|
+
"remove task",
|
|
22
|
+
"update task",
|
|
23
|
+
"edit task",
|
|
24
|
+
"change task",
|
|
25
|
+
"list tasks",
|
|
26
|
+
"show tasks",
|
|
27
|
+
"my tasks",
|
|
28
|
+
"what are my tasks",
|
|
29
|
+
"add a todo",
|
|
30
|
+
"add a to-do",
|
|
31
|
+
"create a to do",
|
|
32
|
+
"task list",
|
|
33
|
+
"check off",
|
|
19
34
|
];
|
|
20
35
|
function parseExtraction(text) {
|
|
21
36
|
const parsed = parseKeyValueXml(text);
|
|
@@ -177,10 +192,13 @@ export const manageTasksAction = {
|
|
|
177
192
|
if (operation === "complete") {
|
|
178
193
|
const taskId = extraction.taskId;
|
|
179
194
|
if (!taskId) {
|
|
180
|
-
return {
|
|
195
|
+
return {
|
|
196
|
+
success: false,
|
|
197
|
+
text: "Could not identify which task to complete.",
|
|
198
|
+
};
|
|
181
199
|
}
|
|
182
200
|
const task = await runtime.getTask(taskId);
|
|
183
|
-
if (!task) {
|
|
201
|
+
if (!task?.id) {
|
|
184
202
|
return { success: false, text: `Task not found: ${taskId}` };
|
|
185
203
|
}
|
|
186
204
|
const metadata = readTaskMetadata(task);
|
|
@@ -195,13 +213,20 @@ export const manageTasksAction = {
|
|
|
195
213
|
metadata: { taskId, operation: "complete" },
|
|
196
214
|
});
|
|
197
215
|
}
|
|
198
|
-
return {
|
|
216
|
+
return {
|
|
217
|
+
success: true,
|
|
218
|
+
text: msg,
|
|
219
|
+
data: { taskId, operation: "complete" },
|
|
220
|
+
};
|
|
199
221
|
}
|
|
200
222
|
// ── DELETE ──
|
|
201
223
|
if (operation === "delete") {
|
|
202
224
|
const taskId = extraction.taskId;
|
|
203
225
|
if (!taskId) {
|
|
204
|
-
return {
|
|
226
|
+
return {
|
|
227
|
+
success: false,
|
|
228
|
+
text: "Could not identify which task to delete.",
|
|
229
|
+
};
|
|
205
230
|
}
|
|
206
231
|
const task = await runtime.getTask(taskId);
|
|
207
232
|
if (!task?.id) {
|
|
@@ -216,13 +241,20 @@ export const manageTasksAction = {
|
|
|
216
241
|
metadata: { taskId, operation: "delete" },
|
|
217
242
|
});
|
|
218
243
|
}
|
|
219
|
-
return {
|
|
244
|
+
return {
|
|
245
|
+
success: true,
|
|
246
|
+
text: msg,
|
|
247
|
+
data: { taskId, operation: "delete" },
|
|
248
|
+
};
|
|
220
249
|
}
|
|
221
250
|
// ── UPDATE ──
|
|
222
251
|
if (operation === "update") {
|
|
223
252
|
const taskId = extraction.taskId;
|
|
224
253
|
if (!taskId) {
|
|
225
|
-
return {
|
|
254
|
+
return {
|
|
255
|
+
success: false,
|
|
256
|
+
text: "Could not identify which task to update.",
|
|
257
|
+
};
|
|
226
258
|
}
|
|
227
259
|
const task = await runtime.getTask(taskId);
|
|
228
260
|
if (!task?.id) {
|
|
@@ -242,7 +274,11 @@ export const manageTasksAction = {
|
|
|
242
274
|
metadata: { taskId, operation: "update" },
|
|
243
275
|
});
|
|
244
276
|
}
|
|
245
|
-
return {
|
|
277
|
+
return {
|
|
278
|
+
success: true,
|
|
279
|
+
text: msg,
|
|
280
|
+
data: { taskId, operation: "update" },
|
|
281
|
+
};
|
|
246
282
|
}
|
|
247
283
|
return { success: false, text: `Unknown operation: ${operation}` };
|
|
248
284
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Media Generation Actions
|
|
3
|
+
*
|
|
4
|
+
* Provides runtime actions for generating and analyzing media:
|
|
5
|
+
* - GENERATE_IMAGE: Text-to-image generation
|
|
6
|
+
* - GENERATE_VIDEO: Text-to-video generation
|
|
7
|
+
* - GENERATE_AUDIO: Text-to-audio/music generation
|
|
8
|
+
* - ANALYZE_IMAGE: Vision/image analysis
|
|
9
|
+
*
|
|
10
|
+
* Uses the media-provider abstraction with Eliza Cloud as default,
|
|
11
|
+
* or user-configured providers (FAL, OpenAI, Google, Anthropic, etc.)
|
|
12
|
+
*
|
|
13
|
+
* @module actions/media
|
|
14
|
+
*/
|
|
15
|
+
import type { Action } from "@elizaos/core";
|
|
16
|
+
export declare const generateImageAction: Action;
|
|
17
|
+
export declare const generateVideoAction: Action;
|
|
18
|
+
export declare const generateAudioAction: Action;
|
|
19
|
+
export declare const analyzeImageAction: Action;
|
|
20
|
+
export declare const mediaActions: Action[];
|
|
21
|
+
//# sourceMappingURL=media.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../../../src/actions/media.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAiC,MAAM,eAAe,CAAC;AA4B3E,eAAO,MAAM,mBAAmB,EAAE,MAsHjC,CAAC;AAMF,eAAO,MAAM,mBAAmB,EAAE,MAuGjC,CAAC;AAMF,eAAO,MAAM,mBAAmB,EAAE,MA6GjC,CAAC;AAMF,eAAO,MAAM,kBAAkB,EAAE,MAgGhC,CAAC;AAEF,eAAO,MAAM,YAAY,UAKxB,CAAC"}
|
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Media Generation Actions
|
|
3
|
+
*
|
|
4
|
+
* Provides runtime actions for generating and analyzing media:
|
|
5
|
+
* - GENERATE_IMAGE: Text-to-image generation
|
|
6
|
+
* - GENERATE_VIDEO: Text-to-video generation
|
|
7
|
+
* - GENERATE_AUDIO: Text-to-audio/music generation
|
|
8
|
+
* - ANALYZE_IMAGE: Vision/image analysis
|
|
9
|
+
*
|
|
10
|
+
* Uses the media-provider abstraction with Eliza Cloud as default,
|
|
11
|
+
* or user-configured providers (FAL, OpenAI, Google, Anthropic, etc.)
|
|
12
|
+
*
|
|
13
|
+
* @module actions/media
|
|
14
|
+
*/
|
|
15
|
+
import { isElizaCloudServiceSelectedInConfig } from "@elizaos/shared/contracts";
|
|
16
|
+
import { loadElizaConfig } from "../config/config.js";
|
|
17
|
+
import { createAudioProvider, createImageProvider, createVideoProvider, createVisionProvider, } from "../providers/media-provider.js";
|
|
18
|
+
function getMediaProviderOptions() {
|
|
19
|
+
const config = loadElizaConfig();
|
|
20
|
+
const cloudMediaSelected = isElizaCloudServiceSelectedInConfig(config, "media");
|
|
21
|
+
return {
|
|
22
|
+
elizaCloudBaseUrl: config.cloud?.baseUrl ?? "https://elizacloud.ai/api/v1",
|
|
23
|
+
elizaCloudApiKey: config.cloud?.apiKey,
|
|
24
|
+
cloudMediaDisabled: !cloudMediaSelected,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
// ============================================================================
|
|
28
|
+
// GENERATE_IMAGE Action
|
|
29
|
+
// ============================================================================
|
|
30
|
+
export const generateImageAction = {
|
|
31
|
+
name: "GENERATE_IMAGE",
|
|
32
|
+
similes: [
|
|
33
|
+
"CREATE_IMAGE",
|
|
34
|
+
"MAKE_IMAGE",
|
|
35
|
+
"DRAW",
|
|
36
|
+
"PAINT",
|
|
37
|
+
"ILLUSTRATE",
|
|
38
|
+
"RENDER_IMAGE",
|
|
39
|
+
"IMAGE_GEN",
|
|
40
|
+
"TEXT_TO_IMAGE",
|
|
41
|
+
],
|
|
42
|
+
description: "Generate an image from a text prompt using AI image generation. " +
|
|
43
|
+
"Supports various styles, sizes, and quality settings.",
|
|
44
|
+
validate: async (_runtime) => true,
|
|
45
|
+
handler: async (_runtime, _message, _state, options) => {
|
|
46
|
+
const params = options?.parameters;
|
|
47
|
+
const prompt = params?.prompt;
|
|
48
|
+
if (!prompt || typeof prompt !== "string" || prompt.trim().length === 0) {
|
|
49
|
+
return {
|
|
50
|
+
text: "I need a prompt to generate an image. Please describe what you'd like me to create.",
|
|
51
|
+
success: false,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
const config = loadElizaConfig();
|
|
55
|
+
const provider = createImageProvider(config.media?.image, getMediaProviderOptions());
|
|
56
|
+
const result = await provider.generate({
|
|
57
|
+
prompt: prompt.trim(),
|
|
58
|
+
size: params?.size,
|
|
59
|
+
quality: params?.quality,
|
|
60
|
+
style: params?.style,
|
|
61
|
+
negativePrompt: params?.negativePrompt,
|
|
62
|
+
});
|
|
63
|
+
if (!result.success || !result.data) {
|
|
64
|
+
return {
|
|
65
|
+
text: `I couldn't generate the image: ${result.error ?? "Unknown error"}`,
|
|
66
|
+
success: false,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
const imageUrl = result.data.imageUrl ?? result.data.imageBase64;
|
|
70
|
+
const revisedPrompt = result.data.revisedPrompt;
|
|
71
|
+
return {
|
|
72
|
+
text: revisedPrompt
|
|
73
|
+
? `Here's the generated image based on: "${revisedPrompt}"`
|
|
74
|
+
: "Here's the generated image.",
|
|
75
|
+
success: true,
|
|
76
|
+
data: {
|
|
77
|
+
imageUrl: result.data.imageUrl,
|
|
78
|
+
imageBase64: result.data.imageBase64,
|
|
79
|
+
revisedPrompt,
|
|
80
|
+
},
|
|
81
|
+
attachments: imageUrl
|
|
82
|
+
? [
|
|
83
|
+
{
|
|
84
|
+
type: "image",
|
|
85
|
+
url: result.data.imageUrl,
|
|
86
|
+
base64: result.data.imageBase64,
|
|
87
|
+
mimeType: "image/png",
|
|
88
|
+
},
|
|
89
|
+
]
|
|
90
|
+
: undefined,
|
|
91
|
+
};
|
|
92
|
+
},
|
|
93
|
+
parameters: [
|
|
94
|
+
{
|
|
95
|
+
name: "prompt",
|
|
96
|
+
description: "The text description of the image to generate",
|
|
97
|
+
required: true,
|
|
98
|
+
schema: { type: "string" },
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "size",
|
|
102
|
+
description: "Image size (e.g., '1024x1024', '1792x1024')",
|
|
103
|
+
required: false,
|
|
104
|
+
schema: { type: "string" },
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: "quality",
|
|
108
|
+
description: "Image quality ('standard' or 'hd')",
|
|
109
|
+
required: false,
|
|
110
|
+
schema: { type: "string", enum: ["standard", "hd"] },
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: "style",
|
|
114
|
+
description: "Image style ('natural' or 'vivid')",
|
|
115
|
+
required: false,
|
|
116
|
+
schema: { type: "string", enum: ["natural", "vivid"] },
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: "negativePrompt",
|
|
120
|
+
description: "Things to avoid in the generated image",
|
|
121
|
+
required: false,
|
|
122
|
+
schema: { type: "string" },
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
};
|
|
126
|
+
// ============================================================================
|
|
127
|
+
// GENERATE_VIDEO Action
|
|
128
|
+
// ============================================================================
|
|
129
|
+
export const generateVideoAction = {
|
|
130
|
+
name: "GENERATE_VIDEO",
|
|
131
|
+
similes: [
|
|
132
|
+
"CREATE_VIDEO",
|
|
133
|
+
"MAKE_VIDEO",
|
|
134
|
+
"ANIMATE",
|
|
135
|
+
"RENDER_VIDEO",
|
|
136
|
+
"VIDEO_GEN",
|
|
137
|
+
"TEXT_TO_VIDEO",
|
|
138
|
+
"FILM",
|
|
139
|
+
],
|
|
140
|
+
description: "Generate a video from a text prompt using AI video generation. " +
|
|
141
|
+
"Can optionally use an input image for image-to-video generation.",
|
|
142
|
+
validate: async (_runtime) => true,
|
|
143
|
+
handler: async (_runtime, _message, _state, options) => {
|
|
144
|
+
const params = options?.parameters;
|
|
145
|
+
const prompt = params?.prompt;
|
|
146
|
+
if (!prompt || typeof prompt !== "string" || prompt.trim().length === 0) {
|
|
147
|
+
return {
|
|
148
|
+
text: "I need a prompt to generate a video. Please describe what you'd like me to create.",
|
|
149
|
+
success: false,
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
const config = loadElizaConfig();
|
|
153
|
+
const provider = createVideoProvider(config.media?.video, getMediaProviderOptions());
|
|
154
|
+
const result = await provider.generate({
|
|
155
|
+
prompt: prompt.trim(),
|
|
156
|
+
duration: params?.duration,
|
|
157
|
+
aspectRatio: params?.aspectRatio,
|
|
158
|
+
imageUrl: params?.imageUrl,
|
|
159
|
+
});
|
|
160
|
+
if (!result.success || !result.data) {
|
|
161
|
+
return {
|
|
162
|
+
text: `I couldn't generate the video: ${result.error ?? "Unknown error"}`,
|
|
163
|
+
success: false,
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
return {
|
|
167
|
+
text: "Here's the generated video.",
|
|
168
|
+
success: true,
|
|
169
|
+
data: {
|
|
170
|
+
videoUrl: result.data.videoUrl,
|
|
171
|
+
thumbnailUrl: result.data.thumbnailUrl,
|
|
172
|
+
duration: result.data.duration,
|
|
173
|
+
},
|
|
174
|
+
attachments: result.data.videoUrl
|
|
175
|
+
? [
|
|
176
|
+
{
|
|
177
|
+
type: "video",
|
|
178
|
+
url: result.data.videoUrl,
|
|
179
|
+
mimeType: "video/mp4",
|
|
180
|
+
},
|
|
181
|
+
]
|
|
182
|
+
: undefined,
|
|
183
|
+
};
|
|
184
|
+
},
|
|
185
|
+
parameters: [
|
|
186
|
+
{
|
|
187
|
+
name: "prompt",
|
|
188
|
+
description: "The text description of the video to generate",
|
|
189
|
+
required: true,
|
|
190
|
+
schema: { type: "string" },
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: "duration",
|
|
194
|
+
description: "Video duration in seconds",
|
|
195
|
+
required: false,
|
|
196
|
+
schema: { type: "number" },
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: "aspectRatio",
|
|
200
|
+
description: "Video aspect ratio (e.g., '16:9', '9:16', '1:1')",
|
|
201
|
+
required: false,
|
|
202
|
+
schema: { type: "string" },
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: "imageUrl",
|
|
206
|
+
description: "URL of an image to use as starting frame (image-to-video)",
|
|
207
|
+
required: false,
|
|
208
|
+
schema: { type: "string" },
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
};
|
|
212
|
+
// ============================================================================
|
|
213
|
+
// GENERATE_AUDIO Action
|
|
214
|
+
// ============================================================================
|
|
215
|
+
export const generateAudioAction = {
|
|
216
|
+
name: "GENERATE_AUDIO",
|
|
217
|
+
similes: [
|
|
218
|
+
"CREATE_AUDIO",
|
|
219
|
+
"MAKE_MUSIC",
|
|
220
|
+
"COMPOSE",
|
|
221
|
+
"GENERATE_MUSIC",
|
|
222
|
+
"CREATE_SONG",
|
|
223
|
+
"MAKE_SOUND",
|
|
224
|
+
"AUDIO_GEN",
|
|
225
|
+
"TEXT_TO_MUSIC",
|
|
226
|
+
],
|
|
227
|
+
description: "Generate audio or music from a text prompt using AI audio generation. " +
|
|
228
|
+
"Can create songs, sound effects, or instrumental music.",
|
|
229
|
+
validate: async (_runtime) => true,
|
|
230
|
+
handler: async (_runtime, _message, _state, options) => {
|
|
231
|
+
const params = options?.parameters;
|
|
232
|
+
const prompt = params?.prompt;
|
|
233
|
+
if (!prompt || typeof prompt !== "string" || prompt.trim().length === 0) {
|
|
234
|
+
return {
|
|
235
|
+
text: "I need a prompt to generate audio. Please describe the music or sound you'd like me to create.",
|
|
236
|
+
success: false,
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
const config = loadElizaConfig();
|
|
240
|
+
const provider = createAudioProvider(config.media?.audio, getMediaProviderOptions());
|
|
241
|
+
const result = await provider.generate({
|
|
242
|
+
prompt: prompt.trim(),
|
|
243
|
+
duration: params?.duration,
|
|
244
|
+
instrumental: params?.instrumental,
|
|
245
|
+
genre: params?.genre,
|
|
246
|
+
});
|
|
247
|
+
if (!result.success || !result.data) {
|
|
248
|
+
return {
|
|
249
|
+
text: `I couldn't generate the audio: ${result.error ?? "Unknown error"}`,
|
|
250
|
+
success: false,
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
const title = result.data.title ?? "Generated Audio";
|
|
254
|
+
return {
|
|
255
|
+
text: `Here's the generated audio: "${title}"`,
|
|
256
|
+
success: true,
|
|
257
|
+
data: {
|
|
258
|
+
audioUrl: result.data.audioUrl,
|
|
259
|
+
title: result.data.title,
|
|
260
|
+
duration: result.data.duration,
|
|
261
|
+
},
|
|
262
|
+
attachments: result.data.audioUrl
|
|
263
|
+
? [
|
|
264
|
+
{
|
|
265
|
+
type: "audio",
|
|
266
|
+
url: result.data.audioUrl,
|
|
267
|
+
mimeType: "audio/mpeg",
|
|
268
|
+
title,
|
|
269
|
+
},
|
|
270
|
+
]
|
|
271
|
+
: undefined,
|
|
272
|
+
};
|
|
273
|
+
},
|
|
274
|
+
parameters: [
|
|
275
|
+
{
|
|
276
|
+
name: "prompt",
|
|
277
|
+
description: "The text description of the audio to generate (song lyrics, mood, style, etc.)",
|
|
278
|
+
required: true,
|
|
279
|
+
schema: { type: "string" },
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: "duration",
|
|
283
|
+
description: "Audio duration in seconds",
|
|
284
|
+
required: false,
|
|
285
|
+
schema: { type: "number" },
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
name: "instrumental",
|
|
289
|
+
description: "Whether to generate instrumental music without vocals",
|
|
290
|
+
required: false,
|
|
291
|
+
schema: { type: "boolean" },
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
name: "genre",
|
|
295
|
+
description: "Music genre (e.g., 'pop', 'rock', 'classical', 'synthwave')",
|
|
296
|
+
required: false,
|
|
297
|
+
schema: { type: "string" },
|
|
298
|
+
},
|
|
299
|
+
],
|
|
300
|
+
};
|
|
301
|
+
// ============================================================================
|
|
302
|
+
// ANALYZE_IMAGE Action
|
|
303
|
+
// ============================================================================
|
|
304
|
+
export const analyzeImageAction = {
|
|
305
|
+
name: "ANALYZE_IMAGE",
|
|
306
|
+
similes: [
|
|
307
|
+
"DESCRIBE_IMAGE",
|
|
308
|
+
"WHAT_IS_IN_IMAGE",
|
|
309
|
+
"IDENTIFY_IMAGE",
|
|
310
|
+
"READ_IMAGE",
|
|
311
|
+
"UNDERSTAND_IMAGE",
|
|
312
|
+
"VISION",
|
|
313
|
+
"OCR",
|
|
314
|
+
"IMAGE_TO_TEXT",
|
|
315
|
+
],
|
|
316
|
+
description: "Analyze an image using AI vision to describe its contents, identify objects, " +
|
|
317
|
+
"read text, or answer questions about the image.",
|
|
318
|
+
validate: async (_runtime) => true,
|
|
319
|
+
handler: async (_runtime, _message, _state, options) => {
|
|
320
|
+
const params = options?.parameters;
|
|
321
|
+
const hasImage = params?.imageUrl || params?.imageBase64;
|
|
322
|
+
if (!hasImage) {
|
|
323
|
+
return {
|
|
324
|
+
text: "I need an image to analyze. Please provide an image URL or upload an image.",
|
|
325
|
+
success: false,
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
const config = loadElizaConfig();
|
|
329
|
+
const provider = createVisionProvider(config.media?.vision, getMediaProviderOptions());
|
|
330
|
+
const result = await provider.analyze({
|
|
331
|
+
imageUrl: params?.imageUrl,
|
|
332
|
+
imageBase64: params?.imageBase64,
|
|
333
|
+
prompt: params?.prompt ?? "Describe this image in detail.",
|
|
334
|
+
maxTokens: params?.maxTokens,
|
|
335
|
+
});
|
|
336
|
+
if (!result.success || !result.data) {
|
|
337
|
+
return {
|
|
338
|
+
text: `I couldn't analyze the image: ${result.error ?? "Unknown error"}`,
|
|
339
|
+
success: false,
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
return {
|
|
343
|
+
text: result.data.description,
|
|
344
|
+
success: true,
|
|
345
|
+
data: {
|
|
346
|
+
description: result.data.description,
|
|
347
|
+
labels: result.data.labels,
|
|
348
|
+
confidence: result.data.confidence,
|
|
349
|
+
},
|
|
350
|
+
};
|
|
351
|
+
},
|
|
352
|
+
parameters: [
|
|
353
|
+
{
|
|
354
|
+
name: "imageUrl",
|
|
355
|
+
description: "URL of the image to analyze",
|
|
356
|
+
required: false,
|
|
357
|
+
schema: { type: "string" },
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
name: "imageBase64",
|
|
361
|
+
description: "Base64-encoded image data",
|
|
362
|
+
required: false,
|
|
363
|
+
schema: { type: "string" },
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
name: "prompt",
|
|
367
|
+
description: "Specific question or instruction for the analysis (default: describe the image)",
|
|
368
|
+
required: false,
|
|
369
|
+
schema: { type: "string" },
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
name: "maxTokens",
|
|
373
|
+
description: "Maximum tokens for the response",
|
|
374
|
+
required: false,
|
|
375
|
+
schema: { type: "number" },
|
|
376
|
+
},
|
|
377
|
+
],
|
|
378
|
+
};
|
|
379
|
+
export const mediaActions = [
|
|
380
|
+
generateImageAction,
|
|
381
|
+
generateVideoAction,
|
|
382
|
+
generateAudioAction,
|
|
383
|
+
analyzeImageAction,
|
|
384
|
+
];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* READ_MESSAGES — Person-centric cross-platform conversation view.
|
|
3
|
+
*
|
|
4
|
+
* Unlike READ_CHANNEL (which reads a specific channel), READ_MESSAGES
|
|
5
|
+
* resolves a person via the Rolodex and shows recent conversations with
|
|
6
|
+
* them across ALL connected platforms. This enables conversation handoff —
|
|
7
|
+
* the user can see full context from Telegram, Discord, Signal, etc.
|
|
8
|
+
* before deciding where to continue the conversation.
|
|
9
|
+
*
|
|
10
|
+
* @module actions/read-messages
|
|
11
|
+
*/
|
|
12
|
+
import type { Action } from "@elizaos/core";
|
|
13
|
+
export declare const readMessagesAction: Action;
|
|
14
|
+
//# sourceMappingURL=read-messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-messages.d.ts","sourceRoot":"","sources":["../../../../../src/actions/read-messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAkB,MAAM,eAAe,CAAC;AA4B5D,eAAO,MAAM,kBAAkB,EAAE,MAqPhC,CAAC"}
|