@elizaos/agent 2.0.0-alpha.144 → 2.0.0-alpha.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/app-lifeops/src/actions/inbox-digest.d.ts +2 -0
- package/apps/app-lifeops/src/actions/inbox-digest.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox-digest.js +1 -0
- package/apps/app-lifeops/src/actions/inbox-respond.d.ts +2 -0
- package/apps/app-lifeops/src/actions/inbox-respond.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox-respond.js +1 -0
- package/apps/app-lifeops/src/actions/inbox-triage.d.ts +2 -0
- package/apps/app-lifeops/src/actions/inbox-triage.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox-triage.js +1 -0
- package/apps/app-lifeops/src/actions/inbox.d.ts +3 -0
- package/apps/app-lifeops/src/actions/inbox.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox.js +856 -0
- package/apps/app-lifeops/src/actions/update-owner-profile.d.ts +3 -0
- package/apps/app-lifeops/src/actions/update-owner-profile.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/update-owner-profile.js +131 -0
- package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/config.d.ts.map +1 -0
- package/{packages/agent → apps/app-lifeops}/src/inbox/config.js +1 -1
- package/apps/app-lifeops/src/inbox/message-fetcher.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/reflection.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/repository.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/triage-classifier.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/index.d.ts +25 -0
- package/apps/app-lifeops/src/lifeops/index.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/index.js +24 -0
- package/apps/app-lifeops/src/lifeops/screen-context.d.ts +52 -0
- package/apps/app-lifeops/src/lifeops/screen-context.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/screen-context.js +332 -0
- package/apps/app-lifeops/src/plugin.d.ts +3 -0
- package/apps/app-lifeops/src/plugin.d.ts.map +1 -1
- package/apps/app-lifeops/src/plugin.js +16 -3
- package/apps/app-lifeops/src/providers/inbox-triage.d.ts +3 -0
- package/apps/app-lifeops/src/providers/inbox-triage.d.ts.map +1 -0
- package/apps/app-lifeops/src/providers/inbox-triage.js +89 -0
- package/package.json +6 -4
- package/packages/agent/src/actions/calendar.d.ts +1 -18
- package/packages/agent/src/actions/calendar.d.ts.map +1 -1
- package/packages/agent/src/actions/calendar.js +1 -3143
- package/packages/agent/src/actions/check-balance.d.ts +17 -0
- package/packages/agent/src/actions/check-balance.d.ts.map +1 -0
- package/packages/agent/src/actions/check-balance.js +167 -0
- package/packages/agent/src/actions/connector-resolver.d.ts +75 -0
- package/packages/agent/src/actions/connector-resolver.d.ts.map +1 -0
- package/packages/agent/src/actions/connector-resolver.js +245 -0
- package/packages/agent/src/actions/context-signal-lexicon.d.ts +1 -1
- package/packages/agent/src/actions/context-signal-lexicon.d.ts.map +1 -1
- package/packages/agent/src/actions/context-signal-lexicon.js +6 -0
- package/packages/agent/src/actions/eject-plugin.d.ts +3 -0
- package/packages/agent/src/actions/eject-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/eject-plugin.js +48 -0
- package/packages/agent/src/actions/execute-trade.d.ts +17 -0
- package/packages/agent/src/actions/execute-trade.d.ts.map +1 -0
- package/packages/agent/src/actions/execute-trade.js +299 -0
- package/packages/agent/src/actions/get-self-status.d.ts +13 -0
- package/packages/agent/src/actions/get-self-status.d.ts.map +1 -0
- package/packages/agent/src/actions/get-self-status.js +66 -0
- package/packages/agent/src/actions/gmail.d.ts +1 -32
- package/packages/agent/src/actions/gmail.d.ts.map +1 -1
- package/packages/agent/src/actions/gmail.js +1 -1734
- package/packages/agent/src/actions/inbox-digest.d.ts +1 -1
- package/packages/agent/src/actions/inbox-digest.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox-digest.js +1 -1
- package/packages/agent/src/actions/inbox-respond.d.ts +1 -1
- package/packages/agent/src/actions/inbox-respond.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox-respond.js +1 -1
- package/packages/agent/src/actions/inbox-triage.d.ts +1 -1
- package/packages/agent/src/actions/inbox-triage.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox-triage.js +1 -1
- package/packages/agent/src/actions/inbox.d.ts +1 -2
- package/packages/agent/src/actions/inbox.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox.js +1 -856
- package/packages/agent/src/actions/index.d.ts +13 -0
- package/packages/agent/src/actions/index.d.ts.map +1 -1
- package/packages/agent/src/actions/index.js +13 -0
- package/packages/agent/src/actions/install-plugin.d.ts +3 -0
- package/packages/agent/src/actions/install-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/install-plugin.js +65 -0
- package/packages/agent/src/actions/life-goal-extractor.d.ts +1 -68
- package/packages/agent/src/actions/life-goal-extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life-goal-extractor.js +1 -354
- package/packages/agent/src/actions/life-param-extractor.d.ts +1 -77
- package/packages/agent/src/actions/life-param-extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life-param-extractor.js +1 -423
- package/packages/agent/src/actions/life-recent-context.d.ts +1 -8
- package/packages/agent/src/actions/life-recent-context.d.ts.map +1 -1
- package/packages/agent/src/actions/life-recent-context.js +1 -84
- package/packages/agent/src/actions/life-update-extractor.d.ts +1 -26
- package/packages/agent/src/actions/life-update-extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life-update-extractor.js +1 -195
- package/packages/agent/src/actions/life.d.ts +1 -8
- package/packages/agent/src/actions/life.d.ts.map +1 -1
- package/packages/agent/src/actions/life.extractor.d.ts +1 -17
- package/packages/agent/src/actions/life.extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life.extractor.js +1 -264
- package/packages/agent/src/actions/life.js +1 -3379
- package/packages/agent/src/actions/lifeops-extraction-config.d.ts +1 -15
- package/packages/agent/src/actions/lifeops-extraction-config.d.ts.map +1 -1
- package/packages/agent/src/actions/lifeops-extraction-config.js +1 -25
- package/packages/agent/src/actions/lifeops-google-helpers.d.ts +1 -61
- package/packages/agent/src/actions/lifeops-google-helpers.d.ts.map +1 -1
- package/packages/agent/src/actions/lifeops-google-helpers.js +1 -607
- package/packages/agent/src/actions/list-ejected.d.ts +3 -0
- package/packages/agent/src/actions/list-ejected.d.ts.map +1 -0
- package/packages/agent/src/actions/list-ejected.js +35 -0
- package/packages/agent/src/actions/log-level.d.ts +3 -0
- package/packages/agent/src/actions/log-level.d.ts.map +1 -0
- package/packages/agent/src/actions/log-level.js +125 -0
- package/packages/agent/src/actions/manage-tasks.d.ts.map +1 -1
- package/packages/agent/src/actions/manage-tasks.js +51 -15
- package/packages/agent/src/actions/media.d.ts +21 -0
- package/packages/agent/src/actions/media.d.ts.map +1 -0
- package/packages/agent/src/actions/media.js +384 -0
- package/packages/agent/src/actions/read-messages.d.ts +14 -0
- package/packages/agent/src/actions/read-messages.d.ts.map +1 -0
- package/packages/agent/src/actions/read-messages.js +228 -0
- package/packages/agent/src/actions/reinject-plugin.d.ts +3 -0
- package/packages/agent/src/actions/reinject-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/reinject-plugin.js +47 -0
- package/packages/agent/src/actions/send-message.d.ts +0 -7
- package/packages/agent/src/actions/send-message.d.ts.map +1 -1
- package/packages/agent/src/actions/send-message.js +170 -49
- package/packages/agent/src/actions/sync-plugin.d.ts +3 -0
- package/packages/agent/src/actions/sync-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/sync-plugin.js +47 -0
- package/packages/agent/src/actions/timezone-normalization.d.ts +1 -2
- package/packages/agent/src/actions/timezone-normalization.d.ts.map +1 -1
- package/packages/agent/src/actions/timezone-normalization.js +1 -107
- package/packages/agent/src/actions/transfer-token.d.ts +17 -0
- package/packages/agent/src/actions/transfer-token.d.ts.map +1 -0
- package/packages/agent/src/actions/transfer-token.js +470 -0
- package/packages/agent/src/actions/update-owner-profile.d.ts +1 -2
- package/packages/agent/src/actions/update-owner-profile.d.ts.map +1 -1
- package/packages/agent/src/actions/update-owner-profile.js +1 -131
- package/packages/agent/src/actions/wallet-action-shared.d.ts +15 -0
- package/packages/agent/src/actions/wallet-action-shared.d.ts.map +1 -0
- package/packages/agent/src/actions/wallet-action-shared.js +24 -0
- package/packages/agent/src/api/agent-admin-routes.d.ts.map +1 -1
- package/packages/agent/src/api/agent-admin-routes.js +1 -1
- package/packages/agent/src/api/binance-skill-helpers.d.ts.map +1 -1
- package/packages/agent/src/api/binance-skill-helpers.js +8 -3
- package/packages/agent/src/api/chat-routes.d.ts.map +1 -1
- package/packages/agent/src/api/chat-routes.js +20 -5
- package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts +1 -22
- package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts.map +1 -1
- package/packages/agent/src/api/coding-agents-auth-sanitize.js +1 -39
- package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts +1 -28
- package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts.map +1 -1
- package/packages/agent/src/api/coding-agents-preflight-normalize.js +1 -45
- package/packages/agent/src/api/coordinator-types.d.ts +1 -46
- package/packages/agent/src/api/coordinator-types.d.ts.map +1 -1
- package/packages/agent/src/api/coordinator-types.js +1 -1
- package/packages/agent/src/api/coordinator-wiring.d.ts +1 -45
- package/packages/agent/src/api/coordinator-wiring.d.ts.map +1 -1
- package/packages/agent/src/api/coordinator-wiring.js +1 -108
- package/packages/agent/src/api/index.d.ts +1 -1
- package/packages/agent/src/api/index.d.ts.map +1 -1
- package/packages/agent/src/api/index.js +1 -1
- package/packages/agent/src/api/lifeops-browser-packaging.d.ts +1 -15
- package/packages/agent/src/api/lifeops-browser-packaging.d.ts.map +1 -1
- package/packages/agent/src/api/lifeops-browser-packaging.js +1 -305
- package/packages/agent/src/api/lifeops-routes.d.ts +1 -19
- package/packages/agent/src/api/lifeops-routes.d.ts.map +1 -1
- package/packages/agent/src/api/lifeops-routes.js +1 -1173
- package/packages/agent/src/api/server.d.ts.map +1 -1
- package/packages/agent/src/api/server.js +6 -6
- package/packages/agent/src/api/task-agent-message-routing.d.ts +1 -9
- package/packages/agent/src/api/task-agent-message-routing.d.ts.map +1 -1
- package/packages/agent/src/api/task-agent-message-routing.js +1 -62
- package/packages/agent/src/api/website-blocker-routes.d.ts +1 -6
- package/packages/agent/src/api/website-blocker-routes.d.ts.map +1 -1
- package/packages/agent/src/api/website-blocker-routes.js +1 -174
- package/packages/agent/src/config/types.agent-defaults.d.ts +1 -1
- package/packages/agent/src/config/types.agent-defaults.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-eval-client.d.ts +1 -38
- package/packages/agent/src/evals/coordinator-eval-client.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-eval-client.js +1 -138
- package/packages/agent/src/evals/coordinator-live-runner.d.ts +1 -56
- package/packages/agent/src/evals/coordinator-live-runner.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-live-runner.js +1 -546
- package/packages/agent/src/evals/coordinator-preflight.d.ts +1 -31
- package/packages/agent/src/evals/coordinator-preflight.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-preflight.js +1 -296
- package/packages/agent/src/evals/coordinator-scenarios.d.ts +1 -23
- package/packages/agent/src/evals/coordinator-scenarios.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-scenarios.js +1 -1141
- package/packages/agent/src/lifeops/app-state.d.ts +1 -10
- package/packages/agent/src/lifeops/app-state.d.ts.map +1 -1
- package/packages/agent/src/lifeops/app-state.js +1 -32
- package/packages/agent/src/lifeops/apple-reminders.d.ts +1 -57
- package/packages/agent/src/lifeops/apple-reminders.d.ts.map +1 -1
- package/packages/agent/src/lifeops/apple-reminders.js +1 -325
- package/packages/agent/src/lifeops/defaults.d.ts +1 -23
- package/packages/agent/src/lifeops/defaults.d.ts.map +1 -1
- package/packages/agent/src/lifeops/defaults.js +1 -205
- package/packages/agent/src/lifeops/engine.d.ts +1 -7
- package/packages/agent/src/lifeops/engine.d.ts.map +1 -1
- package/packages/agent/src/lifeops/engine.js +1 -389
- package/packages/agent/src/lifeops/goal-grounding.d.ts +1 -53
- package/packages/agent/src/lifeops/goal-grounding.d.ts.map +1 -1
- package/packages/agent/src/lifeops/goal-grounding.js +1 -147
- package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts +1 -11
- package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts.map +1 -1
- package/packages/agent/src/lifeops/goal-semantic-evaluator.js +1 -154
- package/packages/agent/src/lifeops/google-api-error.d.ts +1 -6
- package/packages/agent/src/lifeops/google-api-error.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-api-error.js +1 -35
- package/packages/agent/src/lifeops/google-calendar.d.ts +1 -52
- package/packages/agent/src/lifeops/google-calendar.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-calendar.js +1 -268
- package/packages/agent/src/lifeops/google-connector-gateway.d.ts +1 -18
- package/packages/agent/src/lifeops/google-connector-gateway.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-connector-gateway.js +1 -65
- package/packages/agent/src/lifeops/google-fetch.d.ts +1 -10
- package/packages/agent/src/lifeops/google-fetch.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-fetch.js +1 -85
- package/packages/agent/src/lifeops/google-gmail.d.ts +1 -53
- package/packages/agent/src/lifeops/google-gmail.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-gmail.js +1 -471
- package/packages/agent/src/lifeops/google-managed-client.d.ts +1 -126
- package/packages/agent/src/lifeops/google-managed-client.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-managed-client.js +1 -294
- package/packages/agent/src/lifeops/google-oauth.d.ts +1 -60
- package/packages/agent/src/lifeops/google-oauth.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-oauth.js +1 -494
- package/packages/agent/src/lifeops/google-scopes.d.ts +1 -12
- package/packages/agent/src/lifeops/google-scopes.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-scopes.js +1 -96
- package/packages/agent/src/lifeops/index.d.ts +1 -2
- package/packages/agent/src/lifeops/index.d.ts.map +1 -1
- package/packages/agent/src/lifeops/index.js +1 -2
- package/packages/agent/src/lifeops/owner-profile.d.ts +1 -14
- package/packages/agent/src/lifeops/owner-profile.d.ts.map +1 -1
- package/packages/agent/src/lifeops/owner-profile.js +1 -194
- package/packages/agent/src/lifeops/repository.d.ts +1 -208
- package/packages/agent/src/lifeops/repository.d.ts.map +1 -1
- package/packages/agent/src/lifeops/repository.js +1 -3187
- package/packages/agent/src/lifeops/runtime.d.ts +1 -13
- package/packages/agent/src/lifeops/runtime.d.ts.map +1 -1
- package/packages/agent/src/lifeops/runtime.js +1 -120
- package/packages/agent/src/lifeops/screen-context.d.ts +1 -51
- package/packages/agent/src/lifeops/screen-context.d.ts.map +1 -1
- package/packages/agent/src/lifeops/screen-context.js +1 -332
- package/packages/agent/src/lifeops/seed-routines.d.ts +1 -19
- package/packages/agent/src/lifeops/seed-routines.d.ts.map +1 -1
- package/packages/agent/src/lifeops/seed-routines.js +1 -111
- package/packages/agent/src/lifeops/service.d.ts +1 -274
- package/packages/agent/src/lifeops/service.d.ts.map +1 -1
- package/packages/agent/src/lifeops/service.js +1 -9260
- package/packages/agent/src/lifeops/sql.d.ts +1 -30
- package/packages/agent/src/lifeops/sql.d.ts.map +1 -1
- package/packages/agent/src/lifeops/sql.js +1 -247
- package/packages/agent/src/lifeops/time.d.ts +1 -16
- package/packages/agent/src/lifeops/time.d.ts.map +1 -1
- package/packages/agent/src/lifeops/time.js +1 -132
- package/packages/agent/src/lifeops/twilio.d.ts +1 -24
- package/packages/agent/src/lifeops/twilio.d.ts.map +1 -1
- package/packages/agent/src/lifeops/twilio.js +1 -157
- package/packages/agent/src/lifeops/x-poster.d.ts +1 -18
- package/packages/agent/src/lifeops/x-poster.d.ts.map +1 -1
- package/packages/agent/src/lifeops/x-poster.js +1 -148
- package/packages/agent/src/providers/inbox-triage.d.ts +1 -2
- package/packages/agent/src/providers/inbox-triage.d.ts.map +1 -1
- package/packages/agent/src/providers/inbox-triage.js +1 -89
- package/packages/agent/src/providers/index.d.ts +4 -1
- package/packages/agent/src/providers/index.d.ts.map +1 -1
- package/packages/agent/src/providers/index.js +4 -1
- package/packages/agent/src/providers/lifeops.d.ts +1 -2
- package/packages/agent/src/providers/lifeops.d.ts.map +1 -1
- package/packages/agent/src/providers/lifeops.js +1 -157
- package/packages/agent/src/providers/local-models.d.ts +118 -0
- package/packages/agent/src/providers/local-models.d.ts.map +1 -0
- package/packages/agent/src/providers/local-models.js +427 -0
- package/packages/agent/src/providers/media-provider.d.ts +192 -0
- package/packages/agent/src/providers/media-provider.d.ts.map +1 -0
- package/packages/agent/src/providers/media-provider.js +1088 -0
- package/packages/agent/src/providers/self-status.d.ts +4 -0
- package/packages/agent/src/providers/self-status.d.ts.map +1 -0
- package/packages/agent/src/providers/self-status.js +12 -0
- package/packages/agent/src/providers/tasks.d.ts.map +1 -1
- package/packages/agent/src/providers/tasks.js +7 -7
- package/packages/agent/src/runtime/core-plugins.js +1 -1
- package/packages/agent/src/runtime/eliza-plugin.d.ts.map +1 -1
- package/packages/agent/src/runtime/eliza-plugin.js +1 -7
- package/packages/agent/src/runtime/eliza.js +2 -2
- package/packages/agent/src/runtime/plugin-collector.js +3 -3
- package/packages/agent/src/runtime/plugin-lifecycle.d.ts.map +1 -1
- package/packages/agent/src/runtime/plugin-lifecycle.js +3 -13
- package/packages/agent/src/runtime/trajectory-internals.d.ts.map +1 -1
- package/packages/agent/src/runtime/trajectory-internals.js +1 -3
- package/packages/agent/src/services/built-in-app-routes/hyperscape.d.ts.map +1 -1
- package/packages/agent/src/services/coding-task-executor.d.ts +3 -3
- package/packages/agent/src/services/coding-task-executor.js +3 -3
- package/packages/shared/src/awareness/index.d.ts +2 -0
- package/packages/shared/src/awareness/index.d.ts.map +1 -0
- package/packages/shared/src/awareness/index.js +1 -0
- package/packages/shared/src/awareness/registry.d.ts +27 -0
- package/packages/shared/src/awareness/registry.d.ts.map +1 -0
- package/packages/shared/src/awareness/registry.js +161 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts +24 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts.map +1 -1
- package/packages/shared/src/i18n/generated/validation-keyword-data.js +24 -0
- package/packages/shared/src/runtime-env.d.ts.map +1 -1
- package/packages/shared/src/runtime-env.js +5 -1
- package/packages/typescript/src/generated/action-docs.d.ts +135 -0
- package/packages/typescript/src/generated/action-docs.d.ts.map +1 -1
- package/packages/typescript/src/generated/action-docs.js +237 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts +24 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts.map +1 -1
- package/packages/typescript/src/i18n/generated/validation-keyword-data.js +24 -0
- package/packages/typescript/src/index.node.d.ts +2 -2
- package/packages/typescript/src/index.node.d.ts.map +1 -1
- package/packages/typescript/src/index.node.js +4 -3
- package/packages/typescript/src/plugin-lifecycle.d.ts.map +1 -1
- package/packages/typescript/src/plugin-lifecycle.js +42 -3
- package/packages/typescript/src/services/message.d.ts.map +1 -1
- package/packages/typescript/src/services/message.js +32 -0
- package/apps/app-training/src/core/cli.d.ts +0 -11
- package/apps/app-training/src/core/cli.d.ts.map +0 -1
- package/apps/app-training/src/core/cli.js +0 -302
- package/apps/app-training/src/core/context-audit.d.ts +0 -51
- package/apps/app-training/src/core/context-audit.d.ts.map +0 -1
- package/apps/app-training/src/core/context-audit.js +0 -141
- package/apps/app-training/src/core/context-catalog.d.ts +0 -47
- package/apps/app-training/src/core/context-catalog.d.ts.map +0 -1
- package/apps/app-training/src/core/context-catalog.js +0 -259
- package/apps/app-training/src/core/context-types.d.ts +0 -3
- package/apps/app-training/src/core/context-types.d.ts.map +0 -1
- package/apps/app-training/src/core/context-types.js +0 -11
- package/apps/app-training/src/core/dataset-generator.d.ts +0 -135
- package/apps/app-training/src/core/dataset-generator.d.ts.map +0 -1
- package/apps/app-training/src/core/dataset-generator.js +0 -703
- package/apps/app-training/src/core/replay-validator.d.ts +0 -96
- package/apps/app-training/src/core/replay-validator.d.ts.map +0 -1
- package/apps/app-training/src/core/replay-validator.js +0 -265
- package/apps/app-training/src/core/roleplay-executor.d.ts +0 -123
- package/apps/app-training/src/core/roleplay-executor.d.ts.map +0 -1
- package/apps/app-training/src/core/roleplay-executor.js +0 -645
- package/apps/app-training/src/core/roleplay-trajectories.d.ts +0 -54
- package/apps/app-training/src/core/roleplay-trajectories.d.ts.map +0 -1
- package/apps/app-training/src/core/roleplay-trajectories.js +0 -73
- package/apps/app-training/src/core/scenario-blueprints.d.ts +0 -62
- package/apps/app-training/src/core/scenario-blueprints.d.ts.map +0 -1
- package/apps/app-training/src/core/scenario-blueprints.js +0 -790
- package/apps/app-training/src/core/trajectory-task-datasets.d.ts +0 -38
- package/apps/app-training/src/core/trajectory-task-datasets.d.ts.map +0 -1
- package/apps/app-training/src/core/trajectory-task-datasets.js +0 -281
- package/apps/app-training/src/core/vertex-tuning.d.ts +0 -139
- package/apps/app-training/src/core/vertex-tuning.d.ts.map +0 -1
- package/apps/app-training/src/core/vertex-tuning.js +0 -234
- package/packages/agent/src/inbox/channel-deep-links.d.ts.map +0 -1
- package/packages/agent/src/inbox/config.d.ts.map +0 -1
- package/packages/agent/src/inbox/message-fetcher.d.ts.map +0 -1
- package/packages/agent/src/inbox/reflection.d.ts.map +0 -1
- package/packages/agent/src/inbox/repository.d.ts.map +0 -1
- package/packages/agent/src/inbox/triage-classifier.d.ts.map +0 -1
- package/packages/agent/src/inbox/types.d.ts.map +0 -1
- package/packages/agent/src/training/cli.d.ts +0 -2
- package/packages/agent/src/training/cli.d.ts.map +0 -1
- package/packages/agent/src/training/cli.js +0 -2
- package/packages/agent/src/training/context-audit.d.ts +0 -2
- package/packages/agent/src/training/context-audit.d.ts.map +0 -1
- package/packages/agent/src/training/context-audit.js +0 -2
- package/packages/agent/src/training/context-catalog.d.ts +0 -2
- package/packages/agent/src/training/context-catalog.d.ts.map +0 -1
- package/packages/agent/src/training/context-catalog.js +0 -2
- package/packages/agent/src/training/context-types.d.ts +0 -2
- package/packages/agent/src/training/context-types.d.ts.map +0 -1
- package/packages/agent/src/training/context-types.js +0 -2
- package/packages/agent/src/training/dataset-generator.d.ts +0 -2
- package/packages/agent/src/training/dataset-generator.d.ts.map +0 -1
- package/packages/agent/src/training/dataset-generator.js +0 -2
- package/packages/agent/src/training/replay-validator.d.ts +0 -2
- package/packages/agent/src/training/replay-validator.d.ts.map +0 -1
- package/packages/agent/src/training/replay-validator.js +0 -2
- package/packages/agent/src/training/roleplay-executor.d.ts +0 -2
- package/packages/agent/src/training/roleplay-executor.d.ts.map +0 -1
- package/packages/agent/src/training/roleplay-executor.js +0 -2
- package/packages/agent/src/training/roleplay-trajectories.d.ts +0 -2
- package/packages/agent/src/training/roleplay-trajectories.d.ts.map +0 -1
- package/packages/agent/src/training/roleplay-trajectories.js +0 -2
- package/packages/agent/src/training/scenario-blueprints.d.ts +0 -2
- package/packages/agent/src/training/scenario-blueprints.d.ts.map +0 -1
- package/packages/agent/src/training/scenario-blueprints.js +0 -2
- package/packages/agent/src/training/trajectory-task-datasets.d.ts +0 -2
- package/packages/agent/src/training/trajectory-task-datasets.d.ts.map +0 -1
- package/packages/agent/src/training/trajectory-task-datasets.js +0 -2
- package/packages/agent/src/training/vertex-tuning.d.ts +0 -2
- package/packages/agent/src/training/vertex-tuning.d.ts.map +0 -1
- package/packages/agent/src/training/vertex-tuning.js +0 -2
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.d.ts +0 -41
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.js +0 -443
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.d.ts +0 -34
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.js +0 -171
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.js +0 -55
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.js +0 -214
- package/packages/typescript/src/features/orchestrator/actions/list-agents.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/actions/list-agents.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/list-agents.js +0 -174
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.js +0 -428
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.js +0 -189
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.js +0 -265
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.js +0 -356
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.js +0 -270
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.js +0 -192
- package/packages/typescript/src/features/orchestrator/actions/task-control.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-control.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-control.js +0 -217
- package/packages/typescript/src/features/orchestrator/actions/task-history.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-history.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-history.js +0 -323
- package/packages/typescript/src/features/orchestrator/actions/task-share.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-share.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-share.js +0 -168
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.js +0 -68
- package/packages/typescript/src/features/orchestrator/api/agent-routes.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/api/agent-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/agent-routes.js +0 -654
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.js +0 -403
- package/packages/typescript/src/features/orchestrator/api/hook-routes.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/api/hook-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/hook-routes.js +0 -164
- package/packages/typescript/src/features/orchestrator/api/issue-routes.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/api/issue-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/issue-routes.js +0 -132
- package/packages/typescript/src/features/orchestrator/api/routes.d.ts +0 -37
- package/packages/typescript/src/features/orchestrator/api/routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/routes.js +0 -96
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.js +0 -149
- package/packages/typescript/src/features/orchestrator/base-plugin.d.ts +0 -19
- package/packages/typescript/src/features/orchestrator/base-plugin.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/base-plugin.js +0 -75
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.d.ts +0 -101
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.js +0 -310
- package/packages/typescript/src/features/orchestrator/index.d.ts +0 -33
- package/packages/typescript/src/features/orchestrator/index.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/index.js +0 -30
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.d.ts +0 -15
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.js +0 -1449
- package/packages/typescript/src/features/orchestrator/providers/action-examples.d.ts +0 -14
- package/packages/typescript/src/features/orchestrator/providers/action-examples.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/providers/action-examples.js +0 -151
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.js +0 -142
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.d.ts +0 -6
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.js +0 -91
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.d.ts +0 -30
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.js +0 -54
- package/packages/typescript/src/features/orchestrator/services/agent-selection.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/agent-selection.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-selection.js +0 -70
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.d.ts +0 -61
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.js +0 -252
- package/packages/typescript/src/features/orchestrator/services/config-env.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/services/config-env.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/config-env.js +0 -37
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts +0 -50
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.js +0 -184
- package/packages/typescript/src/features/orchestrator/services/debug-capture.d.ts +0 -38
- package/packages/typescript/src/features/orchestrator/services/debug-capture.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/debug-capture.js +0 -113
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.d.ts +0 -30
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.js +0 -146
- package/packages/typescript/src/features/orchestrator/services/pty-init.d.ts +0 -54
- package/packages/typescript/src/features/orchestrator/services/pty-init.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-init.js +0 -315
- package/packages/typescript/src/features/orchestrator/services/pty-service.d.ts +0 -175
- package/packages/typescript/src/features/orchestrator/services/pty-service.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-service.js +0 -1469
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.d.ts +0 -49
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.js +0 -180
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.js +0 -280
- package/packages/typescript/src/features/orchestrator/services/pty-types.d.ts +0 -80
- package/packages/typescript/src/features/orchestrator/services/pty-types.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-types.js +0 -51
- package/packages/typescript/src/features/orchestrator/services/repo-input.d.ts +0 -16
- package/packages/typescript/src/features/orchestrator/services/repo-input.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/repo-input.js +0 -88
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.d.ts +0 -69
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.js +0 -446
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.d.ts +0 -97
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.js +0 -342
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.d.ts +0 -421
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.js +0 -2356
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.d.ts +0 -52
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.js +0 -1538
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.d.ts +0 -49
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.js +0 -171
- package/packages/typescript/src/features/orchestrator/services/swarm-history.d.ts +0 -27
- package/packages/typescript/src/features/orchestrator/services/swarm-history.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-history.js +0 -148
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.js +0 -265
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.d.ts +0 -8
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.js +0 -114
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.d.ts +0 -68
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.js +0 -559
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.d.ts +0 -82
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.js +0 -738
- package/packages/typescript/src/features/orchestrator/services/task-kind.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/services/task-kind.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-kind.js +0 -40
- package/packages/typescript/src/features/orchestrator/services/task-policy.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/services/task-policy.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-policy.js +0 -226
- package/packages/typescript/src/features/orchestrator/services/task-registry.d.ts +0 -550
- package/packages/typescript/src/features/orchestrator/services/task-registry.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-registry.js +0 -2182
- package/packages/typescript/src/features/orchestrator/services/task-share.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/services/task-share.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-share.js +0 -159
- package/packages/typescript/src/features/orchestrator/services/task-validation.d.ts +0 -69
- package/packages/typescript/src/features/orchestrator/services/task-validation.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-validation.js +0 -587
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.d.ts +0 -5
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.js +0 -372
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.d.ts +0 -73
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.js +0 -64
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.js +0 -260
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.d.ts +0 -28
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.js +0 -105
- package/packages/typescript/src/features/orchestrator/services/workspace-github.d.ts +0 -58
- package/packages/typescript/src/features/orchestrator/services/workspace-github.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-github.js +0 -139
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.js +0 -86
- package/packages/typescript/src/features/orchestrator/services/workspace-service.d.ts +0 -118
- package/packages/typescript/src/features/orchestrator/services/workspace-service.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-service.js +0 -533
- package/packages/typescript/src/features/orchestrator/services/workspace-types.d.ts +0 -81
- package/packages/typescript/src/features/orchestrator/services/workspace-types.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-types.js +0 -8
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.d.ts +0 -38
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.js +0 -293
- /package/{packages/agent → apps/app-lifeops}/src/inbox/channel-deep-links.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/channel-deep-links.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/config.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/message-fetcher.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/message-fetcher.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/reflection.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/reflection.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/repository.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/repository.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/triage-classifier.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/triage-classifier.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/types.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/types.js +0 -0
|
@@ -1,148 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { logger } from "@elizaos/core";
|
|
3
|
-
import { createIntegrationTelemetrySpan } from "../diagnostics/integration-observability.js";
|
|
4
|
-
const X_POST_URL = "https://api.twitter.com/2/tweets";
|
|
5
|
-
function percentEncode(value) {
|
|
6
|
-
return encodeURIComponent(value).replace(/[!'()*]/g, (char) => `%${char.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
7
|
-
}
|
|
8
|
-
function buildSignatureBaseString(method, url, params) {
|
|
9
|
-
const sorted = Object.keys(params)
|
|
10
|
-
.sort()
|
|
11
|
-
.map((key) => `${percentEncode(key)}=${percentEncode(params[key])}`)
|
|
12
|
-
.join("&");
|
|
13
|
-
return `${method.toUpperCase()}&${percentEncode(url)}&${percentEncode(sorted)}`;
|
|
14
|
-
}
|
|
15
|
-
function buildSigningKey(apiSecret, tokenSecret) {
|
|
16
|
-
return `${percentEncode(apiSecret)}&${percentEncode(tokenSecret)}`;
|
|
17
|
-
}
|
|
18
|
-
function signOAuth1(baseString, signingKey) {
|
|
19
|
-
return crypto
|
|
20
|
-
.createHmac("sha1", signingKey)
|
|
21
|
-
.update(baseString)
|
|
22
|
-
.digest("base64");
|
|
23
|
-
}
|
|
24
|
-
function buildOAuth1AuthorizationHeader(args) {
|
|
25
|
-
const { method, url, credentials, nonce, timestamp } = args;
|
|
26
|
-
const oauthParams = {
|
|
27
|
-
oauth_consumer_key: credentials.apiKey,
|
|
28
|
-
oauth_nonce: nonce,
|
|
29
|
-
oauth_signature_method: "HMAC-SHA1",
|
|
30
|
-
oauth_timestamp: timestamp,
|
|
31
|
-
oauth_token: credentials.accessToken,
|
|
32
|
-
oauth_version: "1.0",
|
|
33
|
-
};
|
|
34
|
-
const baseString = buildSignatureBaseString(method, url, oauthParams);
|
|
35
|
-
const signingKey = buildSigningKey(credentials.apiSecretKey, credentials.accessTokenSecret);
|
|
36
|
-
oauthParams.oauth_signature = signOAuth1(baseString, signingKey);
|
|
37
|
-
const header = Object.keys(oauthParams)
|
|
38
|
-
.sort()
|
|
39
|
-
.map((key) => `${percentEncode(key)}="${percentEncode(oauthParams[key])}"`)
|
|
40
|
-
.join(", ");
|
|
41
|
-
return `OAuth ${header}`;
|
|
42
|
-
}
|
|
43
|
-
function classifyStatus(status) {
|
|
44
|
-
if (status >= 200 && status < 300)
|
|
45
|
-
return "success";
|
|
46
|
-
if (status === 401 || status === 403)
|
|
47
|
-
return "auth";
|
|
48
|
-
if (status === 429)
|
|
49
|
-
return "rate_limit";
|
|
50
|
-
return "unknown";
|
|
51
|
-
}
|
|
52
|
-
export function readXPosterCredentialsFromEnv(env = process.env) {
|
|
53
|
-
const apiKey = env.TWITTER_API_KEY?.trim();
|
|
54
|
-
const apiSecretKey = env.TWITTER_API_SECRET_KEY?.trim();
|
|
55
|
-
const accessToken = env.TWITTER_ACCESS_TOKEN?.trim();
|
|
56
|
-
const accessTokenSecret = env.TWITTER_ACCESS_TOKEN_SECRET?.trim();
|
|
57
|
-
if (!apiKey || !apiSecretKey || !accessToken || !accessTokenSecret) {
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
apiKey,
|
|
62
|
-
apiSecretKey,
|
|
63
|
-
accessToken,
|
|
64
|
-
accessTokenSecret,
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
export async function postToX(args) {
|
|
68
|
-
const { text, credentials } = args;
|
|
69
|
-
const span = createIntegrationTelemetrySpan({
|
|
70
|
-
boundary: "lifeops",
|
|
71
|
-
operation: "x_post",
|
|
72
|
-
timeoutMs: 12_000,
|
|
73
|
-
});
|
|
74
|
-
const nonce = crypto.randomBytes(16).toString("hex");
|
|
75
|
-
const timestamp = String(Math.floor(Date.now() / 1000));
|
|
76
|
-
const authorization = buildOAuth1AuthorizationHeader({
|
|
77
|
-
method: "POST",
|
|
78
|
-
url: X_POST_URL,
|
|
79
|
-
credentials,
|
|
80
|
-
nonce,
|
|
81
|
-
timestamp,
|
|
82
|
-
});
|
|
83
|
-
try {
|
|
84
|
-
const response = await fetch(X_POST_URL, {
|
|
85
|
-
method: "POST",
|
|
86
|
-
headers: {
|
|
87
|
-
Authorization: authorization,
|
|
88
|
-
"Content-Type": "application/json",
|
|
89
|
-
},
|
|
90
|
-
body: JSON.stringify({ text }),
|
|
91
|
-
signal: AbortSignal.timeout(12_000),
|
|
92
|
-
});
|
|
93
|
-
const payload = (await response.json().catch(() => ({})));
|
|
94
|
-
const category = classifyStatus(response.status);
|
|
95
|
-
if (!response.ok) {
|
|
96
|
-
const errorMessage = payload.errors?.[0]?.detail ??
|
|
97
|
-
payload.errors?.[0]?.message ??
|
|
98
|
-
payload.detail ??
|
|
99
|
-
payload.title ??
|
|
100
|
-
`HTTP ${response.status}`;
|
|
101
|
-
logger.warn({
|
|
102
|
-
boundary: "lifeops",
|
|
103
|
-
integration: "x",
|
|
104
|
-
operation: "x_post",
|
|
105
|
-
statusCode: response.status,
|
|
106
|
-
category,
|
|
107
|
-
}, `[lifeops] X post failed: ${errorMessage}`);
|
|
108
|
-
span.failure({
|
|
109
|
-
statusCode: response.status,
|
|
110
|
-
errorKind: category,
|
|
111
|
-
});
|
|
112
|
-
return {
|
|
113
|
-
ok: false,
|
|
114
|
-
status: response.status,
|
|
115
|
-
error: errorMessage,
|
|
116
|
-
category,
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
span.success({
|
|
120
|
-
statusCode: response.status,
|
|
121
|
-
});
|
|
122
|
-
return {
|
|
123
|
-
ok: true,
|
|
124
|
-
status: response.status,
|
|
125
|
-
postId: payload.data?.id,
|
|
126
|
-
category,
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
catch (error) {
|
|
130
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
131
|
-
logger.error({
|
|
132
|
-
boundary: "lifeops",
|
|
133
|
-
integration: "x",
|
|
134
|
-
operation: "x_post",
|
|
135
|
-
err: error instanceof Error ? error : undefined,
|
|
136
|
-
}, `[lifeops] X post failed: ${errorMessage}`);
|
|
137
|
-
span.failure({
|
|
138
|
-
error,
|
|
139
|
-
errorKind: "network",
|
|
140
|
-
});
|
|
141
|
-
return {
|
|
142
|
-
ok: false,
|
|
143
|
-
status: null,
|
|
144
|
-
error: errorMessage,
|
|
145
|
-
category: "network",
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
}
|
|
1
|
+
export * from "@elizaos/app-lifeops/lifeops/x-poster";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox-triage.d.ts","sourceRoot":"","sources":["../../../../../src/providers/inbox-triage.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"inbox-triage.d.ts","sourceRoot":"","sources":["../../../../../src/providers/inbox-triage.ts"],"names":[],"mappings":"AAAA,cAAc,6CAA6C,CAAC"}
|
|
@@ -1,89 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { InboxTriageRepository } from "../inbox/repository.js";
|
|
3
|
-
import { hasAdminAccess } from "../security/access.js";
|
|
4
|
-
const EMPTY = {
|
|
5
|
-
text: "",
|
|
6
|
-
values: { inboxUnresolved: 0, inboxUrgent: 0 },
|
|
7
|
-
data: {},
|
|
8
|
-
};
|
|
9
|
-
export const inboxTriageProvider = {
|
|
10
|
-
name: "inboxTriage",
|
|
11
|
-
description: "Injects pending inbox triage items into admin context. Shows urgent messages, " +
|
|
12
|
-
"items needing reply, and recent auto-replies across all channels including email. " +
|
|
13
|
-
"Use INBOX_RESPOND to draft and send replies. Use INBOX_TRIAGE to scan for new messages. " +
|
|
14
|
-
"Use INBOX_DIGEST for a daily summary.",
|
|
15
|
-
dynamic: true,
|
|
16
|
-
position: 14, // after lifeops (12), before escalation (15)
|
|
17
|
-
async get(runtime, message, _state) {
|
|
18
|
-
if (!(await hasAdminAccess(runtime, message))) {
|
|
19
|
-
return EMPTY;
|
|
20
|
-
}
|
|
21
|
-
let repo;
|
|
22
|
-
try {
|
|
23
|
-
repo = new InboxTriageRepository(runtime);
|
|
24
|
-
}
|
|
25
|
-
catch {
|
|
26
|
-
return EMPTY;
|
|
27
|
-
}
|
|
28
|
-
let urgent;
|
|
29
|
-
let needsReply;
|
|
30
|
-
let recentAutoReplies;
|
|
31
|
-
try {
|
|
32
|
-
[urgent, needsReply, recentAutoReplies] = await Promise.all([
|
|
33
|
-
repo.getByClassification("urgent", { limit: 5 }),
|
|
34
|
-
repo.getByClassification("needs_reply", { limit: 10 }),
|
|
35
|
-
repo.getRecentAutoReplies(5),
|
|
36
|
-
]);
|
|
37
|
-
}
|
|
38
|
-
catch (error) {
|
|
39
|
-
logger.debug("[inbox-triage-provider] DB query failed (schema may not exist yet):", String(error));
|
|
40
|
-
return EMPTY;
|
|
41
|
-
}
|
|
42
|
-
const unresolved = urgent.length + needsReply.length;
|
|
43
|
-
if (unresolved === 0 && recentAutoReplies.length === 0) {
|
|
44
|
-
return EMPTY;
|
|
45
|
-
}
|
|
46
|
-
const lines = [`# Inbox: ${unresolved} items pending`];
|
|
47
|
-
if (urgent.length > 0) {
|
|
48
|
-
lines.push("\n## Urgent");
|
|
49
|
-
for (const item of urgent.slice(0, 3)) {
|
|
50
|
-
lines.push(formatEntry(item));
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
if (needsReply.length > 0) {
|
|
54
|
-
lines.push("\n## Needs Reply");
|
|
55
|
-
for (const item of needsReply.slice(0, 5)) {
|
|
56
|
-
lines.push(formatEntry(item));
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
if (recentAutoReplies.length > 0) {
|
|
60
|
-
lines.push("\n## Recent Auto-Replies");
|
|
61
|
-
for (const item of recentAutoReplies) {
|
|
62
|
-
const draftPreview = item.draftResponse
|
|
63
|
-
? `"${item.draftResponse.slice(0, 60)}..."`
|
|
64
|
-
: "(no draft)";
|
|
65
|
-
lines.push(`- Sent to ${item.channelName}: ${draftPreview}`);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
lines.push("\nSay 'respond to [name/channel]' to draft and send replies.");
|
|
69
|
-
return {
|
|
70
|
-
text: lines.join("\n"),
|
|
71
|
-
values: {
|
|
72
|
-
inboxUnresolved: unresolved,
|
|
73
|
-
inboxUrgent: urgent.length,
|
|
74
|
-
inboxNeedsReply: needsReply.length,
|
|
75
|
-
},
|
|
76
|
-
data: {
|
|
77
|
-
urgentItems: urgent,
|
|
78
|
-
needsReplyItems: needsReply,
|
|
79
|
-
recentAutoReplies,
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
},
|
|
83
|
-
};
|
|
84
|
-
function formatEntry(entry) {
|
|
85
|
-
const senderInfo = entry.senderName ? ` from ${entry.senderName}` : "";
|
|
86
|
-
const link = entry.deepLink ? `\n ${entry.deepLink}` : "";
|
|
87
|
-
return (`- **${entry.channelName}**${senderInfo} (${entry.source}): "${entry.snippet.slice(0, 80)}"` +
|
|
88
|
-
link);
|
|
89
|
-
}
|
|
1
|
+
export * from "@elizaos/app-lifeops/providers/inbox-triage";
|
|
@@ -2,14 +2,17 @@ export * from "./admin-panel.js";
|
|
|
2
2
|
export * from "./admin-trust.js";
|
|
3
3
|
export * from "./escalation-trigger.js";
|
|
4
4
|
export * from "./lifeops.js";
|
|
5
|
+
export * from "./local-models.js";
|
|
6
|
+
export * from "./media-provider.js";
|
|
5
7
|
export * from "./role-backfill.js";
|
|
8
|
+
export * from "./self-status.js";
|
|
6
9
|
export * from "./session-bridge.js";
|
|
7
10
|
export * from "./session-utils.js";
|
|
8
11
|
export * from "./simple-mode.js";
|
|
9
12
|
export * from "./skill-provider.js";
|
|
13
|
+
export * from "./tasks.js";
|
|
10
14
|
export * from "./ui-catalog.js";
|
|
11
15
|
export * from "./user-name.js";
|
|
12
|
-
export * from "./tasks.js";
|
|
13
16
|
export * from "./workspace.js";
|
|
14
17
|
export * from "./workspace-provider.js";
|
|
15
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC"}
|
|
@@ -2,13 +2,16 @@ export * from "./admin-panel.js";
|
|
|
2
2
|
export * from "./admin-trust.js";
|
|
3
3
|
export * from "./escalation-trigger.js";
|
|
4
4
|
export * from "./lifeops.js";
|
|
5
|
+
export * from "./local-models.js";
|
|
6
|
+
export * from "./media-provider.js";
|
|
5
7
|
export * from "./role-backfill.js";
|
|
8
|
+
export * from "./self-status.js";
|
|
6
9
|
export * from "./session-bridge.js";
|
|
7
10
|
export * from "./session-utils.js";
|
|
8
11
|
export * from "./simple-mode.js";
|
|
9
12
|
export * from "./skill-provider.js";
|
|
13
|
+
export * from "./tasks.js";
|
|
10
14
|
export * from "./ui-catalog.js";
|
|
11
15
|
export * from "./user-name.js";
|
|
12
|
-
export * from "./tasks.js";
|
|
13
16
|
export * from "./workspace.js";
|
|
14
17
|
export * from "./workspace-provider.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifeops.d.ts","sourceRoot":"","sources":["../../../../../src/providers/lifeops.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"lifeops.d.ts","sourceRoot":"","sources":["../../../../../src/providers/lifeops.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC"}
|
|
@@ -1,157 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { readLifeOpsOwnerProfile, } from "../lifeops/owner-profile.js";
|
|
3
|
-
import { LifeOpsService } from "../lifeops/service.js";
|
|
4
|
-
const INTERNAL_URL = new URL("http://127.0.0.1/");
|
|
5
|
-
function formatCount(label, count) {
|
|
6
|
-
return `${label}: ${count}`;
|
|
7
|
-
}
|
|
8
|
-
function summarizeOccurrences(title, occurrences) {
|
|
9
|
-
if (occurrences.length === 0) {
|
|
10
|
-
return [];
|
|
11
|
-
}
|
|
12
|
-
return [
|
|
13
|
-
title,
|
|
14
|
-
...occurrences
|
|
15
|
-
.slice(0, 3)
|
|
16
|
-
.map((occurrence) => `- ${occurrence.title} (${occurrence.state})`),
|
|
17
|
-
];
|
|
18
|
-
}
|
|
19
|
-
function formatRelativeMinutes(minutes) {
|
|
20
|
-
if (minutes <= 0)
|
|
21
|
-
return "now";
|
|
22
|
-
if (minutes < 60)
|
|
23
|
-
return `${Math.round(minutes)}m`;
|
|
24
|
-
const hours = Math.floor(minutes / 60);
|
|
25
|
-
const remaining = Math.round(minutes % 60);
|
|
26
|
-
if (remaining === 0)
|
|
27
|
-
return `${hours}h`;
|
|
28
|
-
return `${hours}h ${remaining}m`;
|
|
29
|
-
}
|
|
30
|
-
function summarizeNextEvent(context) {
|
|
31
|
-
if (!context.event) {
|
|
32
|
-
return [];
|
|
33
|
-
}
|
|
34
|
-
const event = context.event;
|
|
35
|
-
const timing = context.startsInMinutes !== null
|
|
36
|
-
? ` (${formatRelativeMinutes(context.startsInMinutes)})`
|
|
37
|
-
: "";
|
|
38
|
-
const lines = [`Next event: ${event.title}${timing}`];
|
|
39
|
-
if (context.attendeeNames.length > 0) {
|
|
40
|
-
lines.push(` With: ${context.attendeeNames.slice(0, 3).join(", ")}`);
|
|
41
|
-
}
|
|
42
|
-
if (context.location) {
|
|
43
|
-
lines.push(` At: ${context.location}`);
|
|
44
|
-
}
|
|
45
|
-
return lines;
|
|
46
|
-
}
|
|
47
|
-
function summarizeGmailTriage(summary) {
|
|
48
|
-
const parts = [];
|
|
49
|
-
if (summary.unreadCount > 0)
|
|
50
|
-
parts.push(`${summary.unreadCount} unread`);
|
|
51
|
-
if (summary.importantNewCount > 0)
|
|
52
|
-
parts.push(`${summary.importantNewCount} important`);
|
|
53
|
-
if (summary.likelyReplyNeededCount > 0)
|
|
54
|
-
parts.push(`${summary.likelyReplyNeededCount} needing reply`);
|
|
55
|
-
if (parts.length === 0) {
|
|
56
|
-
return [];
|
|
57
|
-
}
|
|
58
|
-
return [`Inbox: ${parts.join(", ")}`];
|
|
59
|
-
}
|
|
60
|
-
function summarizeOwnerProfile(profile) {
|
|
61
|
-
return [
|
|
62
|
-
`Owner profile: name=${profile.name} | relationship=${profile.relationshipStatus} | partner=${profile.partnerName} | orientation=${profile.orientation} | gender=${profile.gender} | age=${profile.age} | location=${profile.location}`,
|
|
63
|
-
];
|
|
64
|
-
}
|
|
65
|
-
export const lifeOpsProvider = {
|
|
66
|
-
name: "lifeops",
|
|
67
|
-
description: "Owner, explicitly granted users, and the agent only. Provides the current LifeOps overview, upcoming calendar event, and email triage summary. Use LIFE for habits, reminders, alarms, and goals. Use CALENDAR_ACTION for Google Calendar reads/search/create-event tasks. Use GMAIL_ACTION for Gmail triage, search, draft, and send flows. Available in private owner or granted conversations, including Discord.",
|
|
68
|
-
dynamic: true,
|
|
69
|
-
position: 12,
|
|
70
|
-
async get(runtime, message, _state) {
|
|
71
|
-
if (!(await hasLifeOpsAccess(runtime, message))) {
|
|
72
|
-
return { text: "", values: {}, data: {} };
|
|
73
|
-
}
|
|
74
|
-
const service = new LifeOpsService(runtime);
|
|
75
|
-
const ownerProfile = await readLifeOpsOwnerProfile(runtime);
|
|
76
|
-
const overview = await service.getOverview();
|
|
77
|
-
const ownerLines = summarizeOccurrences("Owner active items:", overview.owner.occurrences);
|
|
78
|
-
const agentLines = summarizeOccurrences("Agent ops:", overview.agentOps.occurrences);
|
|
79
|
-
const calendarLines = [];
|
|
80
|
-
const emailLines = [];
|
|
81
|
-
let nextEventContext = null;
|
|
82
|
-
let gmailSummary = null;
|
|
83
|
-
try {
|
|
84
|
-
const status = await service.getGoogleConnectorStatus(INTERNAL_URL);
|
|
85
|
-
if (status.connected) {
|
|
86
|
-
const capabilities = status.grantedCapabilities ?? [];
|
|
87
|
-
const hasCalendar = capabilities.some((c) => c.startsWith("google.calendar"));
|
|
88
|
-
const hasGmail = capabilities.some((c) => c.startsWith("google.gmail"));
|
|
89
|
-
if (hasCalendar) {
|
|
90
|
-
try {
|
|
91
|
-
nextEventContext =
|
|
92
|
-
await service.getNextCalendarEventContext(INTERNAL_URL);
|
|
93
|
-
calendarLines.push(...summarizeNextEvent(nextEventContext));
|
|
94
|
-
}
|
|
95
|
-
catch {
|
|
96
|
-
// Calendar fetch failed — skip silently, don't break the provider
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
if (hasGmail) {
|
|
100
|
-
try {
|
|
101
|
-
const triage = await service.getGmailTriage(INTERNAL_URL, {
|
|
102
|
-
maxResults: 5,
|
|
103
|
-
});
|
|
104
|
-
gmailSummary = triage.summary;
|
|
105
|
-
emailLines.push(...summarizeGmailTriage(triage.summary));
|
|
106
|
-
}
|
|
107
|
-
catch {
|
|
108
|
-
// Gmail fetch failed — skip silently, don't break the provider
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
catch {
|
|
114
|
-
// Google connector not configured — skip calendar/email context entirely
|
|
115
|
-
}
|
|
116
|
-
return {
|
|
117
|
-
text: [
|
|
118
|
-
"## Life Ops",
|
|
119
|
-
"Use LIFE when the user wants to create, manage, complete, or query tasks, habits, goals, reminders, alarms, escalation, or routines.",
|
|
120
|
-
"Use CALENDAR_ACTION for calendar questions, event search, next-event context, and creating Google Calendar events.",
|
|
121
|
-
"Use GMAIL_ACTION for inbox triage, emails needing a reply, Gmail search, reply drafts, and confirmed send flows.",
|
|
122
|
-
"Use UPDATE_OWNER_PROFILE to silently store stable owner-only profile details when the canonical owner clearly reveals them. Do not ask just to fill blanks.",
|
|
123
|
-
"When the owner asks about their stable personal details for LifeOps, answer from the stored owner profile values below. If a field is not n/a, treat it as known instead of saying it is missing.",
|
|
124
|
-
"Owner life-ops are private to the owner, explicitly granted users, and the agent. Agent ops are internal and should stay separated unless explicitly requested.",
|
|
125
|
-
...summarizeOwnerProfile(ownerProfile),
|
|
126
|
-
formatCount("Owner open occurrences", overview.owner.summary.activeOccurrenceCount),
|
|
127
|
-
formatCount("Owner active goals", overview.owner.summary.activeGoalCount),
|
|
128
|
-
formatCount("Owner live reminders", overview.owner.summary.activeReminderCount),
|
|
129
|
-
...ownerLines,
|
|
130
|
-
...calendarLines,
|
|
131
|
-
...emailLines,
|
|
132
|
-
formatCount("Agent open occurrences", overview.agentOps.summary.activeOccurrenceCount),
|
|
133
|
-
formatCount("Agent active goals", overview.agentOps.summary.activeGoalCount),
|
|
134
|
-
...agentLines,
|
|
135
|
-
].join("\n"),
|
|
136
|
-
values: {
|
|
137
|
-
ownerOpenOccurrences: overview.owner.summary.activeOccurrenceCount,
|
|
138
|
-
ownerActiveGoals: overview.owner.summary.activeGoalCount,
|
|
139
|
-
ownerProfileName: ownerProfile.name,
|
|
140
|
-
ownerRelationshipStatus: ownerProfile.relationshipStatus,
|
|
141
|
-
ownerPartnerName: ownerProfile.partnerName,
|
|
142
|
-
ownerOrientation: ownerProfile.orientation,
|
|
143
|
-
ownerGender: ownerProfile.gender,
|
|
144
|
-
ownerAge: ownerProfile.age,
|
|
145
|
-
ownerLocation: ownerProfile.location,
|
|
146
|
-
agentOpenOccurrences: overview.agentOps.summary.activeOccurrenceCount,
|
|
147
|
-
agentActiveGoals: overview.agentOps.summary.activeGoalCount,
|
|
148
|
-
},
|
|
149
|
-
data: {
|
|
150
|
-
ownerProfile,
|
|
151
|
-
overview,
|
|
152
|
-
nextEventContext,
|
|
153
|
-
gmailSummary,
|
|
154
|
-
},
|
|
155
|
-
};
|
|
156
|
-
},
|
|
157
|
-
};
|
|
1
|
+
export * from "@elizaos/app-lifeops/providers/lifeops";
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Local Models Provider
|
|
3
|
+
*
|
|
4
|
+
* Provides auto-download and local inference capabilities for:
|
|
5
|
+
* - Vision models (BLIP, CLIP, etc.)
|
|
6
|
+
* - LLM models (via Ollama or llama.cpp)
|
|
7
|
+
* - TTS models (Coqui, XTTS, etc.)
|
|
8
|
+
* - STT models (Whisper, etc.)
|
|
9
|
+
*
|
|
10
|
+
* Models are downloaded from HuggingFace and cached locally.
|
|
11
|
+
* Uses @huggingface/hub for model downloads.
|
|
12
|
+
*/
|
|
13
|
+
/** Guard against path traversal in filenames from external sources (e.g. HuggingFace). */
|
|
14
|
+
export declare function validateFilename(filename: string): void;
|
|
15
|
+
export type ModelType = "vision" | "llm" | "tts" | "stt" | "embedding";
|
|
16
|
+
export interface LocalModelConfig {
|
|
17
|
+
/** Model type */
|
|
18
|
+
type: ModelType;
|
|
19
|
+
/** HuggingFace model ID (e.g., "Salesforce/blip-image-captioning-large") */
|
|
20
|
+
modelId: string;
|
|
21
|
+
/** Display name */
|
|
22
|
+
name: string;
|
|
23
|
+
/** Model size in MB (approximate) */
|
|
24
|
+
sizeInMb: number;
|
|
25
|
+
/** Required files to download */
|
|
26
|
+
requiredFiles?: string[];
|
|
27
|
+
/** Whether to use ONNX format (faster inference) */
|
|
28
|
+
useOnnx?: boolean;
|
|
29
|
+
/** Ollama model name (for LLM models) */
|
|
30
|
+
ollamaModel?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface ModelDownloadProgress {
|
|
33
|
+
modelId: string;
|
|
34
|
+
file: string;
|
|
35
|
+
downloaded: number;
|
|
36
|
+
total: number;
|
|
37
|
+
percent: number;
|
|
38
|
+
}
|
|
39
|
+
export interface LocalModelStatus {
|
|
40
|
+
modelId: string;
|
|
41
|
+
name: string;
|
|
42
|
+
type: ModelType;
|
|
43
|
+
downloaded: boolean;
|
|
44
|
+
path?: string;
|
|
45
|
+
sizeInMb: number;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Registry of recommended local models for each capability.
|
|
49
|
+
* These are curated for good quality/size trade-offs.
|
|
50
|
+
*/
|
|
51
|
+
export declare const LOCAL_MODEL_REGISTRY: Record<ModelType, LocalModelConfig[]>;
|
|
52
|
+
export declare class LocalModelManager {
|
|
53
|
+
private cacheDir;
|
|
54
|
+
private manifestPath;
|
|
55
|
+
private manifest;
|
|
56
|
+
private ollamaUrl;
|
|
57
|
+
private downloadLocks;
|
|
58
|
+
constructor(options?: {
|
|
59
|
+
cacheDir?: string;
|
|
60
|
+
ollamaUrl?: string;
|
|
61
|
+
});
|
|
62
|
+
private loadManifest;
|
|
63
|
+
private saveManifest;
|
|
64
|
+
/**
|
|
65
|
+
* Get the path where a model is (or would be) cached.
|
|
66
|
+
*/
|
|
67
|
+
getModelPath(modelId: string): string;
|
|
68
|
+
/**
|
|
69
|
+
* Check if a model is already downloaded.
|
|
70
|
+
*/
|
|
71
|
+
isModelDownloaded(modelId: string): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Get status of all registered models.
|
|
74
|
+
*/
|
|
75
|
+
getModelStatuses(type?: ModelType): LocalModelStatus[];
|
|
76
|
+
/**
|
|
77
|
+
* Download a model from HuggingFace.
|
|
78
|
+
*/
|
|
79
|
+
downloadModel(modelId: string, onProgress?: (progress: ModelDownloadProgress) => void): Promise<string>;
|
|
80
|
+
private downloadModelInner;
|
|
81
|
+
/**
|
|
82
|
+
* Download a model via Ollama.
|
|
83
|
+
*/
|
|
84
|
+
private downloadOllamaModel;
|
|
85
|
+
/**
|
|
86
|
+
* Get the recommended model for a given type.
|
|
87
|
+
*/
|
|
88
|
+
getRecommendedModel(type: ModelType): LocalModelConfig | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Ensure a model is available (download if needed).
|
|
91
|
+
*/
|
|
92
|
+
ensureModel(modelId: string): Promise<string>;
|
|
93
|
+
/**
|
|
94
|
+
* List available Ollama models.
|
|
95
|
+
*/
|
|
96
|
+
listOllamaModels(): Promise<string[]>;
|
|
97
|
+
/**
|
|
98
|
+
* Check if Ollama is running.
|
|
99
|
+
*/
|
|
100
|
+
isOllamaRunning(): Promise<boolean>;
|
|
101
|
+
}
|
|
102
|
+
export declare function getLocalModelManager(options?: {
|
|
103
|
+
cacheDir?: string;
|
|
104
|
+
ollamaUrl?: string;
|
|
105
|
+
}): LocalModelManager;
|
|
106
|
+
/**
|
|
107
|
+
* Download the recommended model for a given type.
|
|
108
|
+
*/
|
|
109
|
+
export declare function downloadRecommendedModel(type: ModelType, onProgress?: (progress: ModelDownloadProgress) => void): Promise<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Get status of all local models.
|
|
112
|
+
*/
|
|
113
|
+
export declare function getLocalModelStatuses(type?: ModelType): LocalModelStatus[];
|
|
114
|
+
/**
|
|
115
|
+
* Ensure a model is available for use.
|
|
116
|
+
*/
|
|
117
|
+
export declare function ensureLocalModel(modelId: string): Promise<string>;
|
|
118
|
+
//# sourceMappingURL=local-models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-models.d.ts","sourceRoot":"","sources":["../../../../../src/providers/local-models.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAUH,0FAA0F;AAC1F,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAUvD;AAMD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,WAAW,CAAC;AAEvE,MAAM,WAAW,gBAAgB;IAC/B,iBAAiB;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,4EAA4E;IAC5E,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,oDAAoD;IACpD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAMD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,SAAS,EAAE,gBAAgB,EAAE,CAyItE,CAAC;AAMF,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAA8D;IAC9E,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,aAAa,CAAsC;gBAE/C,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE;IAQ/D,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,YAAY;IAKpB;;OAEG;IACH,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAKrC;;OAEG;IACH,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAI3C;;OAEG;IACH,gBAAgB,CAAC,IAAI,CAAC,EAAE,SAAS,GAAG,gBAAgB,EAAE;IAetD;;OAEG;IACG,aAAa,CACjB,OAAO,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,IAAI,GACrD,OAAO,CAAC,MAAM,CAAC;YAeJ,kBAAkB;IA2GhC;;OAEG;YACW,mBAAmB;IA2BjC;;OAEG;IACH,mBAAmB,CAAC,IAAI,EAAE,SAAS,GAAG,gBAAgB,GAAG,SAAS;IAKlE;;OAEG;IACG,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAOnD;;OAEG;IACG,gBAAgB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAa3C;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;CAU1C;AAQD,wBAAgB,oBAAoB,CAAC,OAAO,CAAC,EAAE;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,iBAAiB,CAKpB;AAMD;;GAEG;AACH,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,SAAS,EACf,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,IAAI,GACrD,OAAO,CAAC,MAAM,CAAC,CAOjB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,CAAC,EAAE,SAAS,GAAG,gBAAgB,EAAE,CAE1E;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAEvE"}
|