@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,228 @@
|
|
|
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 { logger } from "@elizaos/core";
|
|
13
|
+
import { hasAdminAccess } from "../security/access.js";
|
|
14
|
+
import { formatContactCandidates, formatConversationView, getActiveConnectors, getPersonConversations, resolveContact, resolveContactCandidates, } from "./connector-resolver.js";
|
|
15
|
+
import { hasContextSignalSyncForKey } from "./context-signal.js";
|
|
16
|
+
const DEFAULT_LIMIT = 15;
|
|
17
|
+
const MAX_LIMIT = 50;
|
|
18
|
+
export const readMessagesAction = {
|
|
19
|
+
name: "READ_MESSAGES",
|
|
20
|
+
similes: [
|
|
21
|
+
"GET_MESSAGES",
|
|
22
|
+
"VIEW_MESSAGES",
|
|
23
|
+
"CHECK_MESSAGES",
|
|
24
|
+
"SHOW_MESSAGES",
|
|
25
|
+
"MESSAGES_WITH",
|
|
26
|
+
"CONVERSATION_WITH",
|
|
27
|
+
"CHAT_WITH",
|
|
28
|
+
"READ_DMS",
|
|
29
|
+
"CHECK_DMS",
|
|
30
|
+
],
|
|
31
|
+
description: "Read recent messages/conversations with a specific person across all connected platforms. " +
|
|
32
|
+
"Resolves the person via the Rolodex and shows conversations from every platform where " +
|
|
33
|
+
"the agent has interacted with them. Use for conversation context before sending a reply, " +
|
|
34
|
+
"or to review what was discussed on different platforms. " +
|
|
35
|
+
"Results can be saved to clipboard with CLIPBOARD_WRITE.",
|
|
36
|
+
validate: async (runtime, message, state) => {
|
|
37
|
+
if (!(await hasAdminAccess(runtime, message)))
|
|
38
|
+
return false;
|
|
39
|
+
return hasContextSignalSyncForKey(message, state, "read_messages");
|
|
40
|
+
},
|
|
41
|
+
handler: async (runtime, message, _state, options) => {
|
|
42
|
+
if (!(await hasAdminAccess(runtime, message))) {
|
|
43
|
+
return {
|
|
44
|
+
text: "Permission denied: only the owner or admins may read messages.",
|
|
45
|
+
success: false,
|
|
46
|
+
values: { success: false, error: "PERMISSION_DENIED" },
|
|
47
|
+
data: { actionName: "READ_MESSAGES" },
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
const params = (options?.parameters ??
|
|
51
|
+
{});
|
|
52
|
+
const { contact, entityId, platform } = params;
|
|
53
|
+
const contactName = typeof contact === "string" ? contact.trim() : "";
|
|
54
|
+
const limit = Math.min(Math.max(1, params.limit ?? DEFAULT_LIMIT), MAX_LIMIT);
|
|
55
|
+
if ((!contact || typeof contact !== "string" || !contact.trim()) &&
|
|
56
|
+
(!entityId || typeof entityId !== "string" || !entityId.trim())) {
|
|
57
|
+
return {
|
|
58
|
+
text: "READ_MESSAGES requires either a 'contact' name or 'entityId' parameter.",
|
|
59
|
+
success: false,
|
|
60
|
+
values: { success: false, error: "INVALID_PARAMETERS" },
|
|
61
|
+
data: { actionName: "READ_MESSAGES" },
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
try {
|
|
65
|
+
let view;
|
|
66
|
+
if (entityId) {
|
|
67
|
+
// Direct entity ID lookup — find person in graph
|
|
68
|
+
const { getGraphService } = await import("./connector-resolver.js");
|
|
69
|
+
const graphService = getGraphService(runtime);
|
|
70
|
+
if (!graphService) {
|
|
71
|
+
return {
|
|
72
|
+
text: "Relationships service not available.",
|
|
73
|
+
success: false,
|
|
74
|
+
values: { success: false, error: "SERVICE_NOT_FOUND" },
|
|
75
|
+
data: { actionName: "READ_MESSAGES" },
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
const snapshot = await graphService.getGraphSnapshot({
|
|
79
|
+
search: entityId,
|
|
80
|
+
limit: 1,
|
|
81
|
+
});
|
|
82
|
+
if (!snapshot || snapshot.people.length === 0) {
|
|
83
|
+
return {
|
|
84
|
+
text: `No person found for entityId "${entityId}". Use SEARCH_ENTITY first.`,
|
|
85
|
+
success: false,
|
|
86
|
+
values: { success: false, error: "ENTITY_NOT_FOUND" },
|
|
87
|
+
data: { actionName: "READ_MESSAGES", entityId },
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
view = await getPersonConversations(runtime, snapshot.people[0], {
|
|
91
|
+
limitPerPlatform: limit,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
// Name-based Rolodex resolution
|
|
96
|
+
const resolved = await resolveContact(runtime, contactName, platform);
|
|
97
|
+
if (!resolved) {
|
|
98
|
+
const candidates = await resolveContactCandidates(runtime, contactName);
|
|
99
|
+
if (candidates.length > 0) {
|
|
100
|
+
return {
|
|
101
|
+
text: `Multiple contacts match "${contact}":\n` +
|
|
102
|
+
formatContactCandidates(candidates) +
|
|
103
|
+
"\nSpecify the entityId or use a more specific name.",
|
|
104
|
+
success: false,
|
|
105
|
+
values: { success: false, error: "AMBIGUOUS_CONTACT" },
|
|
106
|
+
data: {
|
|
107
|
+
actionName: "READ_MESSAGES",
|
|
108
|
+
contact,
|
|
109
|
+
candidateCount: candidates.length,
|
|
110
|
+
candidates: candidates.map((c) => ({
|
|
111
|
+
displayName: c.displayName,
|
|
112
|
+
primaryEntityId: c.primaryEntityId,
|
|
113
|
+
platforms: c.platforms,
|
|
114
|
+
})),
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
text: `No contacts found matching "${contact}" in the Rolodex.`,
|
|
120
|
+
success: false,
|
|
121
|
+
values: { success: false, error: "CONTACT_NOT_FOUND" },
|
|
122
|
+
data: { actionName: "READ_MESSAGES", contact },
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
view = await getPersonConversations(runtime, resolved.person, {
|
|
126
|
+
limitPerPlatform: limit,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
// Filter by platform if specified
|
|
130
|
+
if (platform) {
|
|
131
|
+
view = {
|
|
132
|
+
...view,
|
|
133
|
+
conversations: view.conversations.filter((c) => c.platform.toLowerCase() === platform.toLowerCase()),
|
|
134
|
+
totalMessages: view.conversations
|
|
135
|
+
.filter((c) => c.platform.toLowerCase() === platform.toLowerCase())
|
|
136
|
+
.reduce((sum, c) => sum + c.messageCount, 0),
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
if (view.conversations.length === 0) {
|
|
140
|
+
return {
|
|
141
|
+
text: `No conversations found with ${view.person.displayName}` +
|
|
142
|
+
(platform ? ` on ${platform}` : "") +
|
|
143
|
+
".",
|
|
144
|
+
success: true,
|
|
145
|
+
values: {
|
|
146
|
+
success: true,
|
|
147
|
+
messageCount: 0,
|
|
148
|
+
personName: view.person.displayName,
|
|
149
|
+
},
|
|
150
|
+
data: {
|
|
151
|
+
actionName: "READ_MESSAGES",
|
|
152
|
+
contact: contact ?? entityId,
|
|
153
|
+
personName: view.person.displayName,
|
|
154
|
+
platform,
|
|
155
|
+
},
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
const formatted = formatConversationView(runtime, view);
|
|
159
|
+
const activeConnectors = getActiveConnectors(runtime);
|
|
160
|
+
const reachable = view.person.platforms.filter((p) => activeConnectors.has(p));
|
|
161
|
+
const footer = `\nReachable platforms: ${reachable.join(", ") || "none"}` +
|
|
162
|
+
"\nUse SEND_MESSAGE with recipient name to reply on the best platform." +
|
|
163
|
+
"\nTo save to clipboard, use CLIPBOARD_WRITE.";
|
|
164
|
+
return {
|
|
165
|
+
text: `${formatted}\n${footer}`,
|
|
166
|
+
success: true,
|
|
167
|
+
values: {
|
|
168
|
+
success: true,
|
|
169
|
+
messageCount: view.totalMessages,
|
|
170
|
+
conversationCount: view.conversations.length,
|
|
171
|
+
personName: view.person.displayName,
|
|
172
|
+
platforms: [...new Set(view.conversations.map((c) => c.platform))],
|
|
173
|
+
},
|
|
174
|
+
data: {
|
|
175
|
+
actionName: "READ_MESSAGES",
|
|
176
|
+
contact: contact ?? entityId,
|
|
177
|
+
personName: view.person.displayName,
|
|
178
|
+
primaryEntityId: view.person.primaryEntityId,
|
|
179
|
+
conversations: view.conversations.map((c) => ({
|
|
180
|
+
platform: c.platform,
|
|
181
|
+
roomId: c.roomId,
|
|
182
|
+
roomName: c.roomName,
|
|
183
|
+
messageCount: c.messageCount,
|
|
184
|
+
lastMessageAt: c.lastMessageAt,
|
|
185
|
+
})),
|
|
186
|
+
},
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
catch (error) {
|
|
190
|
+
const errMsg = error instanceof Error ? error.message : String(error);
|
|
191
|
+
logger.error("[READ_MESSAGES] Error:", errMsg);
|
|
192
|
+
return {
|
|
193
|
+
text: `Failed to read messages: ${errMsg}`,
|
|
194
|
+
success: false,
|
|
195
|
+
values: { success: false, error: "READ_FAILED" },
|
|
196
|
+
data: { actionName: "READ_MESSAGES", contact: contact ?? entityId },
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
parameters: [
|
|
201
|
+
{
|
|
202
|
+
name: "contact",
|
|
203
|
+
description: "Person's name for Rolodex resolution. The agent will find all conversations " +
|
|
204
|
+
"with this person across all platforms.",
|
|
205
|
+
required: false,
|
|
206
|
+
schema: { type: "string" },
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: "entityId",
|
|
210
|
+
description: "Entity ID (from SEARCH_ENTITY results) for direct lookup. Alternative to contact name.",
|
|
211
|
+
required: false,
|
|
212
|
+
schema: { type: "string" },
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: "platform",
|
|
216
|
+
description: 'Filter to a specific platform (e.g. "discord", "telegram"). ' +
|
|
217
|
+
"Optional — omit to see conversations across all platforms.",
|
|
218
|
+
required: false,
|
|
219
|
+
schema: { type: "string" },
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: "limit",
|
|
223
|
+
description: "Maximum number of messages per conversation thread (default 15, max 50).",
|
|
224
|
+
required: false,
|
|
225
|
+
schema: { type: "number" },
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reinject-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/actions/reinject-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAiC,MAAM,eAAe,CAAC;AAc3E,eAAO,MAAM,oBAAoB,EAAE,MAuDlC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { requestRestart } from "@elizaos/shared/restart";
|
|
2
|
+
function getPluginManager(runtime) {
|
|
3
|
+
return runtime.getService("plugin_manager");
|
|
4
|
+
}
|
|
5
|
+
export const reinjectPluginAction = {
|
|
6
|
+
name: "REINJECT_PLUGIN",
|
|
7
|
+
similes: ["UNEJECT_PLUGIN", "RESTORE_PLUGIN", "REMOVE_LOCAL_PLUGIN"],
|
|
8
|
+
description: "Remove an ejected plugin copy so runtime falls back to the npm package.",
|
|
9
|
+
validate: async () => true,
|
|
10
|
+
handler: async (runtime, _message, _state, options) => {
|
|
11
|
+
const params = options?.parameters;
|
|
12
|
+
const pluginId = typeof params?.pluginId === "string" ? params.pluginId.trim() : "";
|
|
13
|
+
if (!pluginId) {
|
|
14
|
+
return { text: "I need a plugin ID to reinject.", success: false };
|
|
15
|
+
}
|
|
16
|
+
const mgr = getPluginManager(runtime);
|
|
17
|
+
if (!mgr) {
|
|
18
|
+
return {
|
|
19
|
+
text: "Plugin manager service is not available.",
|
|
20
|
+
success: false,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
const result = await mgr.reinjectPlugin(pluginId);
|
|
24
|
+
if (!result.success) {
|
|
25
|
+
return {
|
|
26
|
+
text: `Failed to reinject ${pluginId}: ${result.error ?? "unknown error"}`,
|
|
27
|
+
success: false,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
setTimeout(() => {
|
|
31
|
+
requestRestart(`Plugin ${result.pluginName} reinjected`);
|
|
32
|
+
}, 1_000);
|
|
33
|
+
return {
|
|
34
|
+
text: `Removed ejected plugin ${result.pluginName}. Restarting to load npm version.`,
|
|
35
|
+
success: true,
|
|
36
|
+
data: { ...result },
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
parameters: [
|
|
40
|
+
{
|
|
41
|
+
name: "pluginId",
|
|
42
|
+
description: "Plugin ID or npm package to reinject (e.g. 'discord' or '@elizaos/plugin-discord')",
|
|
43
|
+
required: true,
|
|
44
|
+
schema: { type: "string" },
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
};
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import type { Action, IAgentRuntime, Memory, UUID } from "@elizaos/core";
|
|
2
|
-
/**
|
|
3
|
-
* Resolve the admin/owner entity ID.
|
|
4
|
-
*
|
|
5
|
-
* Priority:
|
|
6
|
-
* 1. World ownership metadata (room-aware path -- mirrors admin-trust provider)
|
|
7
|
-
* 2. Deterministic fallback from agent name (mirrors chat-routes / lifeops service)
|
|
8
|
-
*/
|
|
9
2
|
export declare function resolveAdminEntityId(runtime: IAgentRuntime, message: Memory): Promise<UUID>;
|
|
10
3
|
export declare const sendMessageAction: Action;
|
|
11
4
|
//# sourceMappingURL=send-message.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-message.d.ts","sourceRoot":"","sources":["../../../../../src/actions/send-message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAIN,aAAa,EACb,MAAM,EACN,IAAI,EACL,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"send-message.d.ts","sourceRoot":"","sources":["../../../../../src/actions/send-message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAIN,aAAa,EACb,MAAM,EACN,IAAI,EACL,MAAM,eAAe,CAAC;AAyCvB,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAQf;AA+LD,eAAO,MAAM,iBAAiB,EAAE,MAuO/B,CAAC"}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import { logger, resolveCanonicalOwnerIdForMessage, stringToUuid, } from "@elizaos/core";
|
|
2
2
|
import { hasAdminAccess } from "../security/access.js";
|
|
3
|
+
import { formatContactCandidates, resolveContact, resolveContactCandidates, } from "./connector-resolver.js";
|
|
3
4
|
import { hasContextSignalSyncForKey } from "./context-signal.js";
|
|
4
5
|
const ADMIN_TARGETS = new Set(["admin", "owner"]);
|
|
5
6
|
const VALID_URGENCIES = new Set(["normal", "important", "urgent"]);
|
|
6
7
|
// ---------------------------------------------------------------------------
|
|
7
|
-
// Admin pathway helpers
|
|
8
|
+
// Admin pathway helpers
|
|
8
9
|
// ---------------------------------------------------------------------------
|
|
9
|
-
/**
|
|
10
|
-
* Resolve the admin/owner entity ID.
|
|
11
|
-
*
|
|
12
|
-
* Priority:
|
|
13
|
-
* 1. World ownership metadata (room-aware path -- mirrors admin-trust provider)
|
|
14
|
-
* 2. Deterministic fallback from agent name (mirrors chat-routes / lifeops service)
|
|
15
|
-
*/
|
|
16
10
|
export async function resolveAdminEntityId(runtime, message) {
|
|
17
11
|
const ownerId = await resolveCanonicalOwnerIdForMessage(runtime, message);
|
|
18
12
|
if (ownerId) {
|
|
@@ -21,14 +15,8 @@ export async function resolveAdminEntityId(runtime, message) {
|
|
|
21
15
|
const agentName = runtime.character?.name ?? runtime.agentId;
|
|
22
16
|
return stringToUuid(`${agentName}-admin-entity`);
|
|
23
17
|
}
|
|
24
|
-
/**
|
|
25
|
-
* Handle sending a message to the admin/owner, optionally with urgency
|
|
26
|
-
* escalation.
|
|
27
|
-
*/
|
|
28
18
|
async function handleAdminMessage(runtime, message, text, urgency) {
|
|
29
19
|
const adminEntityId = await resolveAdminEntityId(runtime, message);
|
|
30
|
-
// Urgent messages trigger multi-channel escalation (fire-and-forget --
|
|
31
|
-
// the primary send below still runs for immediate delivery).
|
|
32
20
|
if (urgency === "urgent") {
|
|
33
21
|
try {
|
|
34
22
|
const { EscalationService } = await import("../services/escalation.js");
|
|
@@ -57,9 +45,6 @@ async function handleAdminMessage(runtime, message, text, urgency) {
|
|
|
57
45
|
data: { actionName: "SEND_MESSAGE", targetType: "admin", urgency },
|
|
58
46
|
};
|
|
59
47
|
}
|
|
60
|
-
/**
|
|
61
|
-
* Detect whether the params indicate an admin/owner target.
|
|
62
|
-
*/
|
|
63
48
|
function isAdminTarget(params) {
|
|
64
49
|
const { target, source } = params;
|
|
65
50
|
if (target && ADMIN_TARGETS.has(target.toLowerCase()))
|
|
@@ -69,6 +54,110 @@ function isAdminTarget(params) {
|
|
|
69
54
|
return false;
|
|
70
55
|
}
|
|
71
56
|
// ---------------------------------------------------------------------------
|
|
57
|
+
// Rolodex-based send pathway
|
|
58
|
+
// ---------------------------------------------------------------------------
|
|
59
|
+
async function handleRolodexSend(runtime, recipientName, text, platformHint) {
|
|
60
|
+
// Resolve contact via rolodex
|
|
61
|
+
const resolved = await resolveContact(runtime, recipientName, platformHint);
|
|
62
|
+
if (!resolved) {
|
|
63
|
+
// Try to get candidates for disambiguation
|
|
64
|
+
const candidates = await resolveContactCandidates(runtime, recipientName);
|
|
65
|
+
if (candidates.length > 0) {
|
|
66
|
+
return {
|
|
67
|
+
text: `Found ${candidates.length} contacts matching "${recipientName}" but none have a reachable platform:\n` +
|
|
68
|
+
formatContactCandidates(candidates) +
|
|
69
|
+
"\nSpecify a platform or use a more specific name.",
|
|
70
|
+
success: false,
|
|
71
|
+
values: { success: false, error: "NO_REACHABLE_PLATFORM" },
|
|
72
|
+
data: {
|
|
73
|
+
actionName: "SEND_MESSAGE",
|
|
74
|
+
recipient: recipientName,
|
|
75
|
+
candidateCount: candidates.length,
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
text: `No contacts found matching "${recipientName}" in the Rolodex. Use SEARCH_ENTITY to find contacts.`,
|
|
81
|
+
success: false,
|
|
82
|
+
values: { success: false, error: "CONTACT_NOT_FOUND" },
|
|
83
|
+
data: { actionName: "SEND_MESSAGE", recipient: recipientName },
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
if (!resolved.recommendedPlatform) {
|
|
87
|
+
return {
|
|
88
|
+
text: `Found ${resolved.person.displayName} in the Rolodex, but no connected platform is available to reach them.\n` +
|
|
89
|
+
`Known platforms: ${resolved.person.platforms.join(", ") || "none"}.\n` +
|
|
90
|
+
`Active connectors: check that the relevant connector is configured and running.`,
|
|
91
|
+
success: false,
|
|
92
|
+
values: { success: false, error: "NO_ACTIVE_CONNECTOR" },
|
|
93
|
+
data: {
|
|
94
|
+
actionName: "SEND_MESSAGE",
|
|
95
|
+
recipient: recipientName,
|
|
96
|
+
resolvedName: resolved.person.displayName,
|
|
97
|
+
knownPlatforms: resolved.person.platforms,
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
// Multiple reachable platforms and no clear preference — inform the user
|
|
102
|
+
// which platform we're using
|
|
103
|
+
const platform = resolved.recommendedPlatform;
|
|
104
|
+
const entityId = resolved.platformEntityIds.get(platform);
|
|
105
|
+
if (!entityId) {
|
|
106
|
+
return {
|
|
107
|
+
text: `Could not resolve entity ID for ${resolved.person.displayName} on ${platform}.`,
|
|
108
|
+
success: false,
|
|
109
|
+
values: { success: false, error: "ENTITY_RESOLUTION_FAILED" },
|
|
110
|
+
data: { actionName: "SEND_MESSAGE", recipient: recipientName, platform },
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
try {
|
|
114
|
+
await runtime.sendMessageToTarget({ source: platform, entityId }, {
|
|
115
|
+
text,
|
|
116
|
+
source: platform,
|
|
117
|
+
metadata: {
|
|
118
|
+
resolvedFrom: recipientName,
|
|
119
|
+
resolvedPerson: resolved.person.displayName,
|
|
120
|
+
},
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
catch (err) {
|
|
124
|
+
logger.error(`[SEND_MESSAGE] Failed to send to ${resolved.person.displayName} on ${platform}:`, String(err));
|
|
125
|
+
return {
|
|
126
|
+
text: `Failed to send message to ${resolved.person.displayName} on ${platform}: ${err instanceof Error ? err.message : String(err)}`,
|
|
127
|
+
success: false,
|
|
128
|
+
values: { success: false, error: "SEND_FAILED" },
|
|
129
|
+
data: {
|
|
130
|
+
actionName: "SEND_MESSAGE",
|
|
131
|
+
recipient: recipientName,
|
|
132
|
+
platform,
|
|
133
|
+
entityId,
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
const platformNote = resolved.reachablePlatforms.length > 1
|
|
138
|
+
? ` (also reachable on: ${resolved.reachablePlatforms.filter((p) => p !== platform).join(", ")})`
|
|
139
|
+
: "";
|
|
140
|
+
return {
|
|
141
|
+
text: `Message sent to ${resolved.person.displayName} on ${platform}${platformNote}.`,
|
|
142
|
+
success: true,
|
|
143
|
+
values: {
|
|
144
|
+
success: true,
|
|
145
|
+
recipient: resolved.person.displayName,
|
|
146
|
+
platform,
|
|
147
|
+
entityId,
|
|
148
|
+
},
|
|
149
|
+
data: {
|
|
150
|
+
actionName: "SEND_MESSAGE",
|
|
151
|
+
recipient: recipientName,
|
|
152
|
+
resolvedName: resolved.person.displayName,
|
|
153
|
+
platform,
|
|
154
|
+
entityId,
|
|
155
|
+
reachablePlatforms: resolved.reachablePlatforms,
|
|
156
|
+
text,
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
// ---------------------------------------------------------------------------
|
|
72
161
|
// Unified SEND_MESSAGE action
|
|
73
162
|
// ---------------------------------------------------------------------------
|
|
74
163
|
export const sendMessageAction = {
|
|
@@ -78,16 +167,20 @@ export const sendMessageAction = {
|
|
|
78
167
|
"MESSAGE",
|
|
79
168
|
"SEND_DM",
|
|
80
169
|
"POST_MESSAGE",
|
|
81
|
-
|
|
170
|
+
"TEXT_SOMEONE",
|
|
171
|
+
"MESSAGE_SOMEONE",
|
|
172
|
+
// Admin pathway:
|
|
82
173
|
"MESSAGE_ADMIN",
|
|
83
174
|
"NOTIFY_OWNER",
|
|
84
175
|
"ALERT_ADMIN",
|
|
85
176
|
"SEND_OWNER_MESSAGE",
|
|
86
177
|
],
|
|
87
|
-
description: "Send a message to a
|
|
178
|
+
description: "Send a message to a person, room, or the admin/owner. " +
|
|
179
|
+
"Use 'recipient' with a person's name to resolve via the Rolodex — " +
|
|
180
|
+
"the agent will find the right platform and handle automatically. " +
|
|
88
181
|
"For admin messages, set target to 'admin' or 'owner'. " +
|
|
89
|
-
"
|
|
90
|
-
"
|
|
182
|
+
"For explicit routing, provide source + target + targetType directly. " +
|
|
183
|
+
"Supports urgency levels for admin messages (normal, important, urgent).",
|
|
91
184
|
validate: async (runtime, message, state) => {
|
|
92
185
|
if (!(await hasAdminAccess(runtime, message)))
|
|
93
186
|
return false;
|
|
@@ -104,7 +197,7 @@ export const sendMessageAction = {
|
|
|
104
197
|
}
|
|
105
198
|
const params = (options?.parameters ??
|
|
106
199
|
{});
|
|
107
|
-
const { targetType, source, target, text, urgency } = params;
|
|
200
|
+
const { targetType, source, target, text, urgency, recipient, platform } = params;
|
|
108
201
|
if (!text || typeof text !== "string" || text.trim().length === 0) {
|
|
109
202
|
return {
|
|
110
203
|
text: "SEND_MESSAGE requires a non-empty text parameter.",
|
|
@@ -115,15 +208,6 @@ export const sendMessageAction = {
|
|
|
115
208
|
}
|
|
116
209
|
// ── Admin/owner pathway ───────────────────────────────────────────
|
|
117
210
|
if (isAdminTarget(params)) {
|
|
118
|
-
// Only the agent itself or admin/owner callers may send admin messages
|
|
119
|
-
if (!(await hasAdminAccess(runtime, message))) {
|
|
120
|
-
return {
|
|
121
|
-
text: "Permission denied: only the agent or admin/owner may send admin messages.",
|
|
122
|
-
success: false,
|
|
123
|
-
values: { success: false, error: "PERMISSION_DENIED" },
|
|
124
|
-
data: { actionName: "SEND_MESSAGE" },
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
211
|
const adminUrgency = urgency ?? "normal";
|
|
128
212
|
if (!VALID_URGENCIES.has(adminUrgency)) {
|
|
129
213
|
return {
|
|
@@ -135,10 +219,15 @@ export const sendMessageAction = {
|
|
|
135
219
|
}
|
|
136
220
|
return handleAdminMessage(runtime, message, text.trim(), adminUrgency);
|
|
137
221
|
}
|
|
138
|
-
// ──
|
|
222
|
+
// ── Rolodex-based send (recipient name resolution) ────────────────
|
|
223
|
+
if (recipient && typeof recipient === "string" && recipient.trim()) {
|
|
224
|
+
return handleRolodexSend(runtime, recipient.trim(), text.trim(), platform);
|
|
225
|
+
}
|
|
226
|
+
// ── Explicit service-based send ───────────────────────────────────
|
|
139
227
|
if (!targetType || !source || !target) {
|
|
140
228
|
return {
|
|
141
|
-
text: "SEND_MESSAGE requires
|
|
229
|
+
text: "SEND_MESSAGE requires either 'recipient' (person name for Rolodex lookup) " +
|
|
230
|
+
"or explicit 'targetType' + 'source' + 'target' parameters.",
|
|
142
231
|
success: false,
|
|
143
232
|
values: { success: false, error: "INVALID_PARAMETERS" },
|
|
144
233
|
data: {
|
|
@@ -151,12 +240,30 @@ export const sendMessageAction = {
|
|
|
151
240
|
}
|
|
152
241
|
const service = runtime.getService(source);
|
|
153
242
|
if (!service) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
243
|
+
// Fall back to runtime.sendMessageToTarget which uses registered send handlers
|
|
244
|
+
try {
|
|
245
|
+
await runtime.sendMessageToTarget({ source, entityId: target }, { text: text.trim(), source });
|
|
246
|
+
return {
|
|
247
|
+
text: `Message sent to ${targetType} ${target} on ${source}.`,
|
|
248
|
+
success: true,
|
|
249
|
+
values: { success: true, targetType, source, target },
|
|
250
|
+
data: {
|
|
251
|
+
actionName: "SEND_MESSAGE",
|
|
252
|
+
targetType,
|
|
253
|
+
source,
|
|
254
|
+
target,
|
|
255
|
+
text: text.trim(),
|
|
256
|
+
},
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
catch {
|
|
260
|
+
return {
|
|
261
|
+
text: `Message service '${source}' is not available.`,
|
|
262
|
+
success: false,
|
|
263
|
+
values: { success: false, error: "SERVICE_NOT_FOUND" },
|
|
264
|
+
data: { actionName: "SEND_MESSAGE", targetType, source, target },
|
|
265
|
+
};
|
|
266
|
+
}
|
|
160
267
|
}
|
|
161
268
|
if (targetType === "user") {
|
|
162
269
|
if (!service.sendDirectMessage) {
|
|
@@ -204,29 +311,43 @@ export const sendMessageAction = {
|
|
|
204
311
|
};
|
|
205
312
|
},
|
|
206
313
|
parameters: [
|
|
314
|
+
{
|
|
315
|
+
name: "recipient",
|
|
316
|
+
description: "Person's name for Rolodex-based resolution. The agent will automatically find " +
|
|
317
|
+
"the right platform and handle. Preferred over explicit target/source.",
|
|
318
|
+
required: false,
|
|
319
|
+
schema: { type: "string" },
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
name: "platform",
|
|
323
|
+
description: 'Platform hint for Rolodex resolution (e.g. "telegram", "discord", "signal"). ' +
|
|
324
|
+
"Optional — omit to let the agent pick the best platform.",
|
|
325
|
+
required: false,
|
|
326
|
+
schema: { type: "string" },
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
name: "text",
|
|
330
|
+
description: "Message text to send.",
|
|
331
|
+
required: true,
|
|
332
|
+
schema: { type: "string" },
|
|
333
|
+
},
|
|
207
334
|
{
|
|
208
335
|
name: "targetType",
|
|
209
|
-
description: "Target entity type: user or room.
|
|
336
|
+
description: "Target entity type: user or room. Only needed for explicit routing (not Rolodex).",
|
|
210
337
|
required: false,
|
|
211
338
|
schema: { type: "string", enum: ["user", "room"] },
|
|
212
339
|
},
|
|
213
340
|
{
|
|
214
341
|
name: "source",
|
|
215
|
-
description: "Messaging source/service name (e.g. telegram, discord).
|
|
342
|
+
description: "Messaging source/service name (e.g. telegram, discord). Only needed for explicit routing.",
|
|
216
343
|
required: false,
|
|
217
344
|
schema: { type: "string" },
|
|
218
345
|
},
|
|
219
346
|
{
|
|
220
347
|
name: "target",
|
|
221
348
|
description: "Target identifier. Use 'admin' or 'owner' for admin messages. " +
|
|
222
|
-
"For users: entity ID/username. For rooms: room ID/name.",
|
|
223
|
-
required:
|
|
224
|
-
schema: { type: "string" },
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
name: "text",
|
|
228
|
-
description: "Message text to send.",
|
|
229
|
-
required: true,
|
|
349
|
+
"For users: entity ID/username. For rooms: room ID/name. Only needed for explicit routing.",
|
|
350
|
+
required: false,
|
|
230
351
|
schema: { type: "string" },
|
|
231
352
|
},
|
|
232
353
|
{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/actions/sync-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAiC,MAAM,eAAe,CAAC;AAc3E,eAAO,MAAM,gBAAgB,EAAE,MAwD9B,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
function getPluginManager(runtime) {
|
|
2
|
+
return runtime.getService("plugin_manager");
|
|
3
|
+
}
|
|
4
|
+
export const syncPluginAction = {
|
|
5
|
+
name: "SYNC_PLUGIN",
|
|
6
|
+
similes: ["UPDATE_PLUGIN", "PULL_PLUGIN_UPSTREAM", "SYNC_EJECTED_PLUGIN"],
|
|
7
|
+
description: "Sync an ejected plugin with upstream by fetching and merging new commits.",
|
|
8
|
+
validate: async () => true,
|
|
9
|
+
handler: async (runtime, _message, _state, options) => {
|
|
10
|
+
const params = options?.parameters;
|
|
11
|
+
const pluginId = typeof params?.pluginId === "string" ? params.pluginId.trim() : "";
|
|
12
|
+
if (!pluginId) {
|
|
13
|
+
return { text: "I need a plugin ID to sync.", success: false };
|
|
14
|
+
}
|
|
15
|
+
const mgr = getPluginManager(runtime);
|
|
16
|
+
if (!mgr) {
|
|
17
|
+
return {
|
|
18
|
+
text: "Plugin manager service is not available.",
|
|
19
|
+
success: false,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
const result = await mgr.syncPlugin(pluginId);
|
|
23
|
+
if (!result.success) {
|
|
24
|
+
const conflictText = result.conflicts.length > 0
|
|
25
|
+
? ` Conflicts: ${result.conflicts.join(", ")}`
|
|
26
|
+
: "";
|
|
27
|
+
return {
|
|
28
|
+
text: `Failed to sync ${pluginId}: ${result.error ?? "unknown error"}.${conflictText}`,
|
|
29
|
+
success: false,
|
|
30
|
+
data: { ...result },
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
text: `Synced ${result.pluginName} (${result.upstreamCommits} upstream commits).`,
|
|
35
|
+
success: true,
|
|
36
|
+
data: { ...result },
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
parameters: [
|
|
40
|
+
{
|
|
41
|
+
name: "pluginId",
|
|
42
|
+
description: "Plugin ID or npm package to sync (e.g. 'discord' or '@elizaos/plugin-discord')",
|
|
43
|
+
required: true,
|
|
44
|
+
schema: { type: "string" },
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
};
|