@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,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider that injects structured task-agent action examples into the prompt context.
|
|
3
|
-
*
|
|
4
|
-
* ElizaOS core only shows exampleCalls from its static action-docs registry,
|
|
5
|
-
* which doesn't include custom plugin actions. This provider bridges the gap
|
|
6
|
-
* by formatting our task-agent action examples in the same structured format
|
|
7
|
-
* the model sees for core actions.
|
|
8
|
-
*
|
|
9
|
-
* @module providers/action-examples
|
|
10
|
-
*/
|
|
11
|
-
import type { Provider } from "@elizaos/core";
|
|
12
|
-
export declare const codingAgentExamplesProvider: Provider;
|
|
13
|
-
export declare const taskAgentExamplesProvider: Provider;
|
|
14
|
-
//# sourceMappingURL=action-examples.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-examples.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/providers/action-examples.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAyB,QAAQ,EAAS,MAAM,eAAe,CAAC;AAS5E,eAAO,MAAM,2BAA2B,EAAE,QAwJzC,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAA8B,CAAC"}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider that injects structured task-agent action examples into the prompt context.
|
|
3
|
-
*
|
|
4
|
-
* ElizaOS core only shows exampleCalls from its static action-docs registry,
|
|
5
|
-
* which doesn't include custom plugin actions. This provider bridges the gap
|
|
6
|
-
* by formatting our task-agent action examples in the same structured format
|
|
7
|
-
* the model sees for core actions.
|
|
8
|
-
*
|
|
9
|
-
* @module providers/action-examples
|
|
10
|
-
*/
|
|
11
|
-
import { formatTaskAgentFrameworkLine, getTaskAgentFrameworkState, looksLikeTaskAgentRequest, TASK_AGENT_FRAMEWORK_LABELS, } from "../services/task-agent-frameworks.js";
|
|
12
|
-
export const codingAgentExamplesProvider = {
|
|
13
|
-
name: "CODING_AGENT_EXAMPLES",
|
|
14
|
-
description: "Structured examples showing how to use open-ended task-agent actions, framework availability, and subscription-aware defaults",
|
|
15
|
-
position: -1,
|
|
16
|
-
get: async (runtime, message, _state) => {
|
|
17
|
-
const userText = (typeof message.content === "string"
|
|
18
|
-
? message.content
|
|
19
|
-
: message.content?.text) ?? "";
|
|
20
|
-
const ptyService = runtime.getService("PTY_SERVICE");
|
|
21
|
-
const frameworkState = await getTaskAgentFrameworkState(runtime, ptyService);
|
|
22
|
-
const frameworkLines = frameworkState.frameworks.map(formatTaskAgentFrameworkLine);
|
|
23
|
-
const compactText = [
|
|
24
|
-
"# Task Agent Action Call Examples",
|
|
25
|
-
"Use task agents for anything more complicated than a simple direct reply.",
|
|
26
|
-
"They are asynchronous, open-ended workers that can code, debug, research, write, analyze, plan, document, and automate while you stay free to keep talking with the user.",
|
|
27
|
-
"",
|
|
28
|
-
`Recommended default right now: ${TASK_AGENT_FRAMEWORK_LABELS[frameworkState.preferred.id]} (${frameworkState.preferred.reason}).`,
|
|
29
|
-
...(frameworkState.configuredSubscriptionProvider
|
|
30
|
-
? [
|
|
31
|
-
`Configured Eliza subscription provider: ${frameworkState.configuredSubscriptionProvider}. Prefer the matching user-backed CLI first so Eliza does not waste cloud chat capacity.`,
|
|
32
|
-
]
|
|
33
|
-
: []),
|
|
34
|
-
"",
|
|
35
|
-
"Current task-agent frameworks:",
|
|
36
|
-
...frameworkLines,
|
|
37
|
-
"",
|
|
38
|
-
"Canonical actions:",
|
|
39
|
-
"- CREATE_TASK: launch one or more background task agents, optionally against a repo or workspace.",
|
|
40
|
-
"- SPAWN_AGENT: start a specific task agent in an existing workspace when you need direct control.",
|
|
41
|
-
"- SEND_TO_AGENT: reply to a running agent or send keys to unblock it.",
|
|
42
|
-
"- LIST_AGENTS: inspect active task agents and current task status.",
|
|
43
|
-
"- STOP_AGENT: cancel a running task agent.",
|
|
44
|
-
"- TASK_HISTORY: answer questions like what is running now, what happened yesterday, or what changed last week without loading raw history into context.",
|
|
45
|
-
"- TASK_CONTROL: pause, stop, resume, continue, archive, or reopen a tracked task thread.",
|
|
46
|
-
"- TASK_SHARE: find the best artifact, preview URL, or workspace path when the user asks to see the result.",
|
|
47
|
-
"- PROVISION_WORKSPACE / FINALIZE_WORKSPACE: manage workspaces before or after agent work when needed.",
|
|
48
|
-
].join("\n");
|
|
49
|
-
if (!looksLikeTaskAgentRequest(userText)) {
|
|
50
|
-
return {
|
|
51
|
-
data: {
|
|
52
|
-
preferredTaskAgent: frameworkState.preferred.id,
|
|
53
|
-
frameworks: frameworkState.frameworks,
|
|
54
|
-
},
|
|
55
|
-
values: { taskAgentExamples: compactText },
|
|
56
|
-
text: compactText,
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
const detailedText = [
|
|
60
|
-
compactText,
|
|
61
|
-
"",
|
|
62
|
-
"Examples:",
|
|
63
|
-
'User: "Investigate why the production login flow started returning 401s in https://github.com/acme/app and fix it."',
|
|
64
|
-
"Assistant:",
|
|
65
|
-
"<actions>",
|
|
66
|
-
" <action>REPLY</action>",
|
|
67
|
-
" <action>CREATE_TASK</action>",
|
|
68
|
-
"</actions>",
|
|
69
|
-
"<params>",
|
|
70
|
-
" <CREATE_TASK>",
|
|
71
|
-
" <repo>https://github.com/acme/app</repo>",
|
|
72
|
-
" <task>Investigate the production login 401s, implement the fix, run the relevant tests, and summarize the root cause.</task>",
|
|
73
|
-
" </CREATE_TASK>",
|
|
74
|
-
"</params>",
|
|
75
|
-
"",
|
|
76
|
-
'User: "Spin up a few sub-agents to research the current browser automation options, compare them, and draft a recommendation doc."',
|
|
77
|
-
"Assistant:",
|
|
78
|
-
"<actions>",
|
|
79
|
-
" <action>REPLY</action>",
|
|
80
|
-
" <action>CREATE_TASK</action>",
|
|
81
|
-
"</actions>",
|
|
82
|
-
"<params>",
|
|
83
|
-
" <CREATE_TASK>",
|
|
84
|
-
' <agents>Research Playwright tradeoffs and browser sandboxing. Your identifier is "research". | Compare Stagehand, Playwright, and browser-use for Eliza. Your identifier is "comparison". | Draft a recommendation memo in TASK_AGENTS.md using the findings. Your identifier is "writer".</agents>',
|
|
85
|
-
" </CREATE_TASK>",
|
|
86
|
-
"</params>",
|
|
87
|
-
"",
|
|
88
|
-
'User: "Tell the running sub-agent to accept that prompt and continue."',
|
|
89
|
-
"Assistant:",
|
|
90
|
-
"<actions>",
|
|
91
|
-
" <action>REPLY</action>",
|
|
92
|
-
" <action>SEND_TO_AGENT</action>",
|
|
93
|
-
"</actions>",
|
|
94
|
-
"<params>",
|
|
95
|
-
" <SEND_TO_AGENT>",
|
|
96
|
-
" <input>Yes, accept it and continue.</input>",
|
|
97
|
-
" </SEND_TO_AGENT>",
|
|
98
|
-
"</params>",
|
|
99
|
-
"",
|
|
100
|
-
'User: "What are you working on right now?"',
|
|
101
|
-
"Assistant:",
|
|
102
|
-
"<actions>",
|
|
103
|
-
" <action>TASK_HISTORY</action>",
|
|
104
|
-
"</actions>",
|
|
105
|
-
"<params>",
|
|
106
|
-
" <TASK_HISTORY>",
|
|
107
|
-
" <metric>list</metric>",
|
|
108
|
-
" <window>active</window>",
|
|
109
|
-
" </TASK_HISTORY>",
|
|
110
|
-
"</params>",
|
|
111
|
-
"",
|
|
112
|
-
"User: \"Hold on a second, can you pause that and let's discuss if it's right?\"",
|
|
113
|
-
"Assistant:",
|
|
114
|
-
"<actions>",
|
|
115
|
-
" <action>REPLY</action>",
|
|
116
|
-
" <action>TASK_CONTROL</action>",
|
|
117
|
-
"</actions>",
|
|
118
|
-
"<params>",
|
|
119
|
-
" <TASK_CONTROL>",
|
|
120
|
-
" <operation>pause</operation>",
|
|
121
|
-
" </TASK_CONTROL>",
|
|
122
|
-
"</params>",
|
|
123
|
-
"",
|
|
124
|
-
'User: "Can I see it?"',
|
|
125
|
-
"Assistant:",
|
|
126
|
-
"<actions>",
|
|
127
|
-
" <action>TASK_SHARE</action>",
|
|
128
|
-
"</actions>",
|
|
129
|
-
"<params>",
|
|
130
|
-
" <TASK_SHARE />",
|
|
131
|
-
"</params>",
|
|
132
|
-
"",
|
|
133
|
-
"Guidance:",
|
|
134
|
-
"- Prefer CREATE_TASK whenever the work is open-ended, multi-step, or can continue asynchronously.",
|
|
135
|
-
"- If the task references a real repository or prior workspace, include the repo or workspace context instead of dropping the agent into scratch space.",
|
|
136
|
-
"- Use multiple agents only when the subtasks are clearly separable and benefit from parallelism.",
|
|
137
|
-
"- Use TASK_HISTORY instead of free-form guessing when the user asks about current work, counts, yesterday, last week, or topic-scoped history.",
|
|
138
|
-
"- Use TASK_CONTROL when the user wants to pause, stop, resume, continue, archive, or reopen a task thread.",
|
|
139
|
-
"- Use TASK_SHARE when the user asks to see the output, pull it up, or view it remotely.",
|
|
140
|
-
].join("\n");
|
|
141
|
-
return {
|
|
142
|
-
data: {
|
|
143
|
-
preferredTaskAgent: frameworkState.preferred.id,
|
|
144
|
-
frameworks: frameworkState.frameworks,
|
|
145
|
-
},
|
|
146
|
-
values: { taskAgentExamples: detailedText },
|
|
147
|
-
text: detailedText,
|
|
148
|
-
};
|
|
149
|
-
},
|
|
150
|
-
};
|
|
151
|
-
export const taskAgentExamplesProvider = codingAgentExamplesProvider;
|
package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider that injects active workspace and task-agent context into every prompt.
|
|
3
|
-
*
|
|
4
|
-
* Eliza needs to know what workspaces exist, which agents are running, and
|
|
5
|
-
* their current status without having to call LIST_AGENTS every message. This
|
|
6
|
-
* provider reads from the workspace service, PTY service, and coordinator to
|
|
7
|
-
* build a live context summary that's always available in the prompt.
|
|
8
|
-
*
|
|
9
|
-
* @module providers/active-workspace-context
|
|
10
|
-
*/
|
|
11
|
-
import type { Provider } from "@elizaos/core";
|
|
12
|
-
export declare const activeWorkspaceContextProvider: Provider;
|
|
13
|
-
//# sourceMappingURL=active-workspace-context.d.ts.map
|
package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"active-workspace-context.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/providers/active-workspace-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAyB,QAAQ,EAAS,MAAM,eAAe,CAAC;AAqC5E,eAAO,MAAM,8BAA8B,EAAE,QA8K5C,CAAC"}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider that injects active workspace and task-agent context into every prompt.
|
|
3
|
-
*
|
|
4
|
-
* Eliza needs to know what workspaces exist, which agents are running, and
|
|
5
|
-
* their current status without having to call LIST_AGENTS every message. This
|
|
6
|
-
* provider reads from the workspace service, PTY service, and coordinator to
|
|
7
|
-
* build a live context summary that's always available in the prompt.
|
|
8
|
-
*
|
|
9
|
-
* @module providers/active-workspace-context
|
|
10
|
-
*/
|
|
11
|
-
import { getCoordinator } from "../services/pty-service.js";
|
|
12
|
-
import { formatTaskAgentStatus, getTaskAgentFrameworkState, TASK_AGENT_FRAMEWORK_LABELS, truncateTaskAgentText, } from "../services/task-agent-frameworks.js";
|
|
13
|
-
function uniqueTasks(tasks) {
|
|
14
|
-
const seen = new Set();
|
|
15
|
-
const result = [];
|
|
16
|
-
for (const task of tasks) {
|
|
17
|
-
if (seen.has(task.sessionId))
|
|
18
|
-
continue;
|
|
19
|
-
seen.add(task.sessionId);
|
|
20
|
-
result.push(task);
|
|
21
|
-
}
|
|
22
|
-
return result;
|
|
23
|
-
}
|
|
24
|
-
export const activeWorkspaceContextProvider = {
|
|
25
|
-
name: "ACTIVE_WORKSPACE_CONTEXT",
|
|
26
|
-
description: "Live status of active workspaces, task-agent sessions, and current task progress",
|
|
27
|
-
position: 1,
|
|
28
|
-
get: async (runtime, _message, _state) => {
|
|
29
|
-
const ptyService = runtime.getService("PTY_SERVICE");
|
|
30
|
-
const wsService = runtime.getService("CODING_WORKSPACE_SERVICE");
|
|
31
|
-
const coordinator = getCoordinator(runtime);
|
|
32
|
-
const frameworkState = await getTaskAgentFrameworkState(runtime, ptyService);
|
|
33
|
-
const sessions = ptyService
|
|
34
|
-
? await Promise.race([
|
|
35
|
-
ptyService.listSessions(),
|
|
36
|
-
new Promise((resolve) => setTimeout(() => resolve([]), 2000)),
|
|
37
|
-
])
|
|
38
|
-
: [];
|
|
39
|
-
const workspaces = wsService?.listWorkspaces() ?? [];
|
|
40
|
-
const tasks = uniqueTasks((coordinator?.getAllTaskContexts?.() ?? []).slice());
|
|
41
|
-
const reusableSessions = sessions.filter((session) => {
|
|
42
|
-
const currentTask = tasks.find((task) => task.sessionId === session.id);
|
|
43
|
-
return !currentTask || currentTask.status !== "active";
|
|
44
|
-
});
|
|
45
|
-
const lines = ["# Active Workspaces & Task Agents"];
|
|
46
|
-
lines.push(`Preferred framework: ${TASK_AGENT_FRAMEWORK_LABELS[frameworkState.preferred.id]} (${frameworkState.preferred.reason}).`);
|
|
47
|
-
if (workspaces.length === 0 &&
|
|
48
|
-
sessions.length === 0 &&
|
|
49
|
-
tasks.length === 0) {
|
|
50
|
-
lines.push("No active workspaces or task-agent sessions.");
|
|
51
|
-
lines.push("Use CREATE_TASK when the user needs anything more involved than a simple direct reply.");
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
if (workspaces.length > 0) {
|
|
55
|
-
lines.push("");
|
|
56
|
-
lines.push(`## Workspaces (${workspaces.length})`);
|
|
57
|
-
for (const workspace of workspaces) {
|
|
58
|
-
const workspaceSessions = sessions.filter((session) => session.workdir === workspace.path);
|
|
59
|
-
const agentSummary = workspaceSessions.length > 0
|
|
60
|
-
? workspaceSessions
|
|
61
|
-
.map((session) => `${session.agentType}:${formatTaskAgentStatus(session.status)}`)
|
|
62
|
-
.join(", ")
|
|
63
|
-
: "no task agents";
|
|
64
|
-
lines.push(`- "${workspace.label ?? workspace.id.slice(0, 8)}" -> ${workspace.repo ?? "scratch"} (${workspace.branch ?? "no branch"}, ${agentSummary})`);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
const trackedPaths = new Set(workspaces.map((workspace) => workspace.path));
|
|
68
|
-
const standaloneSessions = sessions.filter((session) => !trackedPaths.has(session.workdir));
|
|
69
|
-
if (standaloneSessions.length > 0) {
|
|
70
|
-
lines.push("");
|
|
71
|
-
lines.push(`## Standalone Sessions (${standaloneSessions.length})`);
|
|
72
|
-
for (const session of standaloneSessions) {
|
|
73
|
-
const label = typeof session.metadata?.label === "string"
|
|
74
|
-
? session.metadata.label
|
|
75
|
-
: session.name;
|
|
76
|
-
lines.push(`- "${label}" (${session.agentType}, ${formatTaskAgentStatus(session.status)}) [session: ${session.id}]`);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
if (tasks.length > 0) {
|
|
80
|
-
lines.push("");
|
|
81
|
-
lines.push(`## Current Task Status (${tasks.length})`);
|
|
82
|
-
for (const task of tasks
|
|
83
|
-
.slice()
|
|
84
|
-
.sort((left, right) => right.registeredAt - left.registeredAt)) {
|
|
85
|
-
const latestDecision = task.decisions.at(-1);
|
|
86
|
-
const detail = task.completionSummary ||
|
|
87
|
-
latestDecision?.reasoning ||
|
|
88
|
-
truncateTaskAgentText(task.originalTask, 110);
|
|
89
|
-
lines.push(`- [${task.status}] "${task.label}" (${task.agentType}) -> ${detail}`);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
const pending = coordinator?.getPendingConfirmations?.() ?? [];
|
|
93
|
-
if (pending.length > 0) {
|
|
94
|
-
lines.push("");
|
|
95
|
-
lines.push(`## Pending Confirmations (${pending.length}) - supervision: ${coordinator?.getSupervisionLevel?.() ?? "unknown"}`);
|
|
96
|
-
for (const confirmation of pending) {
|
|
97
|
-
lines.push(`- "${confirmation.taskContext.label}" blocked on "${truncateTaskAgentText(confirmation.promptText, 140)}" -> suggested: ${confirmation.llmDecision.action ?? "review"}`);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
if (reusableSessions.length > 0) {
|
|
101
|
-
lines.push("");
|
|
102
|
-
lines.push(`## Reusable Agents (${reusableSessions.length})`);
|
|
103
|
-
for (const session of reusableSessions) {
|
|
104
|
-
const label = typeof session.metadata?.label === "string"
|
|
105
|
-
? session.metadata.label
|
|
106
|
-
: session.name;
|
|
107
|
-
lines.push(`- "${label}" (${session.agentType}) is ${formatTaskAgentStatus(session.status)} and can take a new tracked task via SEND_TO_AGENT`);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
if (sessions.length > 0 || tasks.length > 0) {
|
|
112
|
-
lines.push("");
|
|
113
|
-
lines.push("Use SEND_TO_AGENT to unblock a running agent or assign it a new tracked task, LIST_AGENTS to inspect progress, STOP_AGENT to cancel, and FINALIZE_WORKSPACE when the work should be published or wrapped up.");
|
|
114
|
-
}
|
|
115
|
-
const text = lines.join("\n");
|
|
116
|
-
return {
|
|
117
|
-
data: {
|
|
118
|
-
activeWorkspaces: workspaces.map((ws) => ({
|
|
119
|
-
id: ws.id,
|
|
120
|
-
label: ws.label,
|
|
121
|
-
repo: ws.repo,
|
|
122
|
-
branch: ws.branch,
|
|
123
|
-
path: ws.path,
|
|
124
|
-
})),
|
|
125
|
-
activeSessions: sessions.map((session) => ({
|
|
126
|
-
id: session.id,
|
|
127
|
-
label: typeof session.metadata?.label === "string"
|
|
128
|
-
? session.metadata.label
|
|
129
|
-
: session.name,
|
|
130
|
-
agentType: session.agentType,
|
|
131
|
-
status: session.status,
|
|
132
|
-
workdir: session.workdir,
|
|
133
|
-
})),
|
|
134
|
-
currentTasks: tasks,
|
|
135
|
-
preferredTaskAgent: frameworkState.preferred,
|
|
136
|
-
frameworks: frameworkState.frameworks,
|
|
137
|
-
},
|
|
138
|
-
values: { activeWorkspaceContext: text },
|
|
139
|
-
text,
|
|
140
|
-
};
|
|
141
|
-
},
|
|
142
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { IAgentRuntime } from "@elizaos/core";
|
|
2
|
-
import type { AgentCredentials } from "coding-agent-adapters";
|
|
3
|
-
export declare function isAnthropicOAuthToken(value: string | undefined): value is string;
|
|
4
|
-
export declare function sanitizeCustomCredentials(customCredentials: Record<string, string> | undefined, blockedValues?: string[]): Record<string, string> | undefined;
|
|
5
|
-
export declare function buildAgentCredentials(runtime: IAgentRuntime): AgentCredentials;
|
|
6
|
-
//# sourceMappingURL=agent-credentials.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-credentials.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/services/agent-credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAyD9D,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,MAAM,GAAG,SAAS,GACvB,KAAK,IAAI,MAAM,CAEjB;AAED,wBAAgB,yBAAyB,CACxC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,EACrD,aAAa,GAAE,MAAM,EAAO,GAC1B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAUpC;AAED,wBAAgB,qBAAqB,CACpC,OAAO,EAAE,aAAa,GACpB,gBAAgB,CAgDlB"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { readConfigCloudKey, readConfigEnvKey } from "./config-env.js";
|
|
2
|
-
const ELIZA_CLOUD_ANTHROPIC_BASE = "https://www.elizacloud.ai/api";
|
|
3
|
-
const ELIZA_CLOUD_OPENAI_BASE = "https://www.elizacloud.ai/api/v1";
|
|
4
|
-
/**
|
|
5
|
-
* Codex per-spawn config.toml snippet that forces a custom OpenAI provider
|
|
6
|
-
* with `supports_websockets = false`.
|
|
7
|
-
*
|
|
8
|
-
* Why this is needed: Codex 0.118+ tries to upgrade `/v1/responses` to a
|
|
9
|
-
* WebSocket before falling back to POST streaming. Eliza Cloud's Next.js
|
|
10
|
-
* route and Vercel AI Gateway both 405 the upgrade, causing ~7 seconds of
|
|
11
|
-
* "Reconnecting…" + a URL-error banner before the fallback kicks in.
|
|
12
|
-
*
|
|
13
|
-
* Why a custom provider (not [features]): The TOML `[features]` flags
|
|
14
|
-
* `responses_websockets` / `responses_websockets_v2` were removed from
|
|
15
|
-
* Codex's `responses_websocket_enabled()` gate in newer builds. The only
|
|
16
|
-
* remaining knobs are `provider.supports_websockets` and a runtime
|
|
17
|
-
* AtomicBool latched after the first WS failure. We can't override the
|
|
18
|
-
* built-in `openai` provider directly because Codex's config loader uses
|
|
19
|
-
* `or_insert` (built-ins win), so we define a NEW provider key and
|
|
20
|
-
* select it via top-level `model_provider`.
|
|
21
|
-
*
|
|
22
|
-
* The custom provider keeps `name = "OpenAI"` so Codex's `is_openai()`
|
|
23
|
-
* checks still trigger any openai-specific code paths, and copies
|
|
24
|
-
* `wire_api = "responses"` / `requires_openai_auth = true` from the
|
|
25
|
-
* built-in. `base_url` is set to the cloud proxy URL so requests still
|
|
26
|
-
* hit the proxy.
|
|
27
|
-
*/
|
|
28
|
-
function buildCodexCloudProviderToml(baseUrl) {
|
|
29
|
-
return (`model_provider = "elizacloud"\n` +
|
|
30
|
-
`\n` +
|
|
31
|
-
`[model_providers.elizacloud]\n` +
|
|
32
|
-
`name = "OpenAI"\n` +
|
|
33
|
-
`base_url = "${baseUrl}"\n` +
|
|
34
|
-
`wire_api = "responses"\n` +
|
|
35
|
-
`requires_openai_auth = true\n` +
|
|
36
|
-
`supports_websockets = false\n`);
|
|
37
|
-
}
|
|
38
|
-
function compactCredentials(credentials) {
|
|
39
|
-
return Object.fromEntries(Object.entries(credentials).filter(([, value]) => value !== undefined));
|
|
40
|
-
}
|
|
41
|
-
export function isAnthropicOAuthToken(value) {
|
|
42
|
-
return typeof value === "string" && value.startsWith("sk-ant-oat");
|
|
43
|
-
}
|
|
44
|
-
export function sanitizeCustomCredentials(customCredentials, blockedValues = []) {
|
|
45
|
-
if (!customCredentials) {
|
|
46
|
-
return undefined;
|
|
47
|
-
}
|
|
48
|
-
const blocked = new Set(blockedValues.filter(Boolean));
|
|
49
|
-
const filtered = Object.entries(customCredentials).filter(([, value]) => !blocked.has(value));
|
|
50
|
-
return filtered.length > 0 ? Object.fromEntries(filtered) : undefined;
|
|
51
|
-
}
|
|
52
|
-
export function buildAgentCredentials(runtime) {
|
|
53
|
-
const llmProvider = readConfigEnvKey("PARALLAX_LLM_PROVIDER") || "subscription";
|
|
54
|
-
if (llmProvider === "cloud") {
|
|
55
|
-
const cloudKey = readConfigCloudKey("apiKey");
|
|
56
|
-
if (!cloudKey) {
|
|
57
|
-
throw new Error("Eliza Cloud is selected as the LLM provider but no cloud.apiKey is paired. Pair your account in the Cloud settings section first.");
|
|
58
|
-
}
|
|
59
|
-
const cloudCredentials = compactCredentials({
|
|
60
|
-
anthropicKey: cloudKey,
|
|
61
|
-
openaiKey: cloudKey,
|
|
62
|
-
googleKey: undefined,
|
|
63
|
-
anthropicBaseUrl: ELIZA_CLOUD_ANTHROPIC_BASE,
|
|
64
|
-
openaiBaseUrl: ELIZA_CLOUD_OPENAI_BASE,
|
|
65
|
-
githubToken: runtime.getSetting("GITHUB_TOKEN"),
|
|
66
|
-
// Disable Codex's Responses-API WebSocket transport when proxying
|
|
67
|
-
// through cloud — see buildCodexCloudProviderToml doc for why this
|
|
68
|
-
// requires a custom provider definition rather than [features].
|
|
69
|
-
extraConfigToml: buildCodexCloudProviderToml(ELIZA_CLOUD_OPENAI_BASE),
|
|
70
|
-
});
|
|
71
|
-
return cloudCredentials;
|
|
72
|
-
}
|
|
73
|
-
const subscriptionMode = llmProvider === "subscription";
|
|
74
|
-
const rawAnthropicKey = runtime.getSetting("ANTHROPIC_API_KEY");
|
|
75
|
-
const anthropicKey = isAnthropicOAuthToken(rawAnthropicKey)
|
|
76
|
-
? undefined
|
|
77
|
-
: rawAnthropicKey;
|
|
78
|
-
const directCredentials = compactCredentials({
|
|
79
|
-
anthropicKey: subscriptionMode ? undefined : anthropicKey,
|
|
80
|
-
openaiKey: runtime.getSetting("OPENAI_API_KEY"),
|
|
81
|
-
googleKey: runtime.getSetting("GOOGLE_GENERATIVE_AI_API_KEY"),
|
|
82
|
-
githubToken: runtime.getSetting("GITHUB_TOKEN"),
|
|
83
|
-
anthropicBaseUrl: subscriptionMode
|
|
84
|
-
? undefined
|
|
85
|
-
: anthropicKey
|
|
86
|
-
? runtime.getSetting("ANTHROPIC_BASE_URL")
|
|
87
|
-
: undefined,
|
|
88
|
-
openaiBaseUrl: runtime.getSetting("OPENAI_BASE_URL"),
|
|
89
|
-
});
|
|
90
|
-
return directCredentials;
|
|
91
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Lightweight per-agent-type metrics for observability.
|
|
3
|
-
*
|
|
4
|
-
* Self-contained tracker — no dependencies on PTYService state.
|
|
5
|
-
*
|
|
6
|
-
* @module services/agent-metrics
|
|
7
|
-
*/
|
|
8
|
-
export interface AgentMetrics {
|
|
9
|
-
spawned: number;
|
|
10
|
-
completed: number;
|
|
11
|
-
completedViaFastPath: number;
|
|
12
|
-
completedViaClassifier: number;
|
|
13
|
-
completedViaOutputReconcile: number;
|
|
14
|
-
stallCount: number;
|
|
15
|
-
avgCompletionMs: number;
|
|
16
|
-
totalCompletionMs: number;
|
|
17
|
-
}
|
|
18
|
-
export type CompletionMethod = "fast-path" | "classifier" | "output-reconcile";
|
|
19
|
-
export declare class AgentMetricsTracker {
|
|
20
|
-
private metrics;
|
|
21
|
-
/** Get (or lazily initialize) metrics for a given agent type. */
|
|
22
|
-
get(agentType: string): AgentMetrics;
|
|
23
|
-
/** Record a task completion and update rolling average duration. */
|
|
24
|
-
recordCompletion(agentType: string, method: CompletionMethod, durationMs: number): void;
|
|
25
|
-
/** Increment the stall counter for an agent type. */
|
|
26
|
-
incrementStalls(agentType: string): void;
|
|
27
|
-
/** Return a serializable copy of all metrics (for API endpoints). */
|
|
28
|
-
getAll(): Record<string, Omit<AgentMetrics, "totalCompletionMs">>;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=agent-metrics.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-metrics.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/services/agent-metrics.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,YAAY;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,2BAA2B,EAAE,MAAM,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,YAAY,GAAG,kBAAkB,CAAC;AAE/E,qBAAa,mBAAmB;IAC/B,OAAO,CAAC,OAAO,CAAwC;IAEvD,iEAAiE;IACjE,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,YAAY;IAkBpC,oEAAoE;IACpE,gBAAgB,CACf,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,gBAAgB,EACxB,UAAU,EAAE,MAAM,GAChB,IAAI;IAUP,qDAAqD;IACrD,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAIxC,qEAAqE;IACrE,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,mBAAmB,CAAC,CAAC;CAQjE"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Lightweight per-agent-type metrics for observability.
|
|
3
|
-
*
|
|
4
|
-
* Self-contained tracker — no dependencies on PTYService state.
|
|
5
|
-
*
|
|
6
|
-
* @module services/agent-metrics
|
|
7
|
-
*/
|
|
8
|
-
export class AgentMetricsTracker {
|
|
9
|
-
metrics = new Map();
|
|
10
|
-
/** Get (or lazily initialize) metrics for a given agent type. */
|
|
11
|
-
get(agentType) {
|
|
12
|
-
let m = this.metrics.get(agentType);
|
|
13
|
-
if (!m) {
|
|
14
|
-
m = {
|
|
15
|
-
spawned: 0,
|
|
16
|
-
completed: 0,
|
|
17
|
-
completedViaFastPath: 0,
|
|
18
|
-
completedViaClassifier: 0,
|
|
19
|
-
completedViaOutputReconcile: 0,
|
|
20
|
-
stallCount: 0,
|
|
21
|
-
avgCompletionMs: 0,
|
|
22
|
-
totalCompletionMs: 0,
|
|
23
|
-
};
|
|
24
|
-
this.metrics.set(agentType, m);
|
|
25
|
-
}
|
|
26
|
-
return m;
|
|
27
|
-
}
|
|
28
|
-
/** Record a task completion and update rolling average duration. */
|
|
29
|
-
recordCompletion(agentType, method, durationMs) {
|
|
30
|
-
const m = this.get(agentType);
|
|
31
|
-
m.completed++;
|
|
32
|
-
if (method === "fast-path")
|
|
33
|
-
m.completedViaFastPath++;
|
|
34
|
-
else if (method === "classifier")
|
|
35
|
-
m.completedViaClassifier++;
|
|
36
|
-
else
|
|
37
|
-
m.completedViaOutputReconcile++;
|
|
38
|
-
m.totalCompletionMs += durationMs;
|
|
39
|
-
m.avgCompletionMs = Math.round(m.totalCompletionMs / m.completed);
|
|
40
|
-
}
|
|
41
|
-
/** Increment the stall counter for an agent type. */
|
|
42
|
-
incrementStalls(agentType) {
|
|
43
|
-
this.get(agentType).stallCount++;
|
|
44
|
-
}
|
|
45
|
-
/** Return a serializable copy of all metrics (for API endpoints). */
|
|
46
|
-
getAll() {
|
|
47
|
-
const result = {};
|
|
48
|
-
for (const [type, m] of this.metrics) {
|
|
49
|
-
const { totalCompletionMs: _, ...rest } = m;
|
|
50
|
-
result[type] = { ...rest };
|
|
51
|
-
}
|
|
52
|
-
return result;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dynamic agent selection strategy.
|
|
3
|
-
*
|
|
4
|
-
* Chooses which coding-agent CLI to spawn when the caller does not
|
|
5
|
-
* specify an explicit `agentType`.
|
|
6
|
-
*
|
|
7
|
-
* - **fixed** — always returns `config.fixedAgentType`
|
|
8
|
-
* - **ranked** — scores each installed agent on success rate,
|
|
9
|
-
* stall frequency, and completion speed, then
|
|
10
|
-
* returns the highest-scoring one
|
|
11
|
-
*
|
|
12
|
-
* @module services/agent-selection
|
|
13
|
-
*/
|
|
14
|
-
import type { AdapterType, PreflightResult } from "coding-agent-adapters";
|
|
15
|
-
export type AgentSelectionStrategy = "fixed" | "ranked";
|
|
16
|
-
/** Subset of AgentMetrics fields used for scoring. */
|
|
17
|
-
export interface AgentScoreInput {
|
|
18
|
-
spawned: number;
|
|
19
|
-
completed: number;
|
|
20
|
-
stallCount: number;
|
|
21
|
-
avgCompletionMs: number;
|
|
22
|
-
}
|
|
23
|
-
export interface AgentSelectionConfig {
|
|
24
|
-
strategy: AgentSelectionStrategy;
|
|
25
|
-
fixedAgentType: AdapterType;
|
|
26
|
-
}
|
|
27
|
-
export interface AgentSelectionContext {
|
|
28
|
-
config: AgentSelectionConfig;
|
|
29
|
-
/** Per-agent-type metrics snapshot (may be empty). */
|
|
30
|
-
metrics: Record<string, AgentScoreInput>;
|
|
31
|
-
/** Preflight results — only the `installed` ones are candidates. */
|
|
32
|
-
installedAgents: PreflightResult[];
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Compute a 0–1 score for a single agent based on its metrics.
|
|
36
|
-
*
|
|
37
|
-
* - `successRate` = completed / spawned (0.5 neutral prior when no data)
|
|
38
|
-
* - `volumeWeight` = min(1, spawned / 5) — blends toward neutral at low N
|
|
39
|
-
* - `stallPenalty` = (stallCount / spawned) * 0.3
|
|
40
|
-
* - `speedPenalty` = min(avgCompletionMs / 300_000, 1) * 0.1 — weak tiebreaker
|
|
41
|
-
*
|
|
42
|
-
* Cold-start (no spawns): returns 0.5 so all agents are equal.
|
|
43
|
-
*/
|
|
44
|
-
export declare function computeAgentScore(metrics: AgentScoreInput | undefined): number;
|
|
45
|
-
/**
|
|
46
|
-
* Select the best agent type given the current strategy, metrics, and
|
|
47
|
-
* installed agents.
|
|
48
|
-
*
|
|
49
|
-
* Explicit user choice (`params.agentType`) should be resolved by the
|
|
50
|
-
* caller *before* reaching this function.
|
|
51
|
-
*/
|
|
52
|
-
export declare function selectAgentType(ctx: AgentSelectionContext): AdapterType;
|
|
53
|
-
//# sourceMappingURL=agent-selection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-selection.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/services/agent-selection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG1E,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,QAAQ,CAAC;AAExD,sDAAsD;AACtD,MAAM,WAAW,eAAe;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,oBAAoB;IACpC,QAAQ,EAAE,sBAAsB,CAAC;IACjC,cAAc,EAAE,WAAW,CAAC;CAC5B;AAED,MAAM,WAAW,qBAAqB;IACrC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,sDAAsD;IACtD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACzC,oEAAoE;IACpE,eAAe,EAAE,eAAe,EAAE,CAAC;CACnC;AAID;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAChC,OAAO,EAAE,eAAe,GAAG,SAAS,GAClC,MAAM,CAaR;AAOD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,qBAAqB,GAAG,WAAW,CA8BvE"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dynamic agent selection strategy.
|
|
3
|
-
*
|
|
4
|
-
* Chooses which coding-agent CLI to spawn when the caller does not
|
|
5
|
-
* specify an explicit `agentType`.
|
|
6
|
-
*
|
|
7
|
-
* - **fixed** — always returns `config.fixedAgentType`
|
|
8
|
-
* - **ranked** — scores each installed agent on success rate,
|
|
9
|
-
* stall frequency, and completion speed, then
|
|
10
|
-
* returns the highest-scoring one
|
|
11
|
-
*
|
|
12
|
-
* @module services/agent-selection
|
|
13
|
-
*/
|
|
14
|
-
// ── Scoring ──────────────────────────────────────────────────────────
|
|
15
|
-
/**
|
|
16
|
-
* Compute a 0–1 score for a single agent based on its metrics.
|
|
17
|
-
*
|
|
18
|
-
* - `successRate` = completed / spawned (0.5 neutral prior when no data)
|
|
19
|
-
* - `volumeWeight` = min(1, spawned / 5) — blends toward neutral at low N
|
|
20
|
-
* - `stallPenalty` = (stallCount / spawned) * 0.3
|
|
21
|
-
* - `speedPenalty` = min(avgCompletionMs / 300_000, 1) * 0.1 — weak tiebreaker
|
|
22
|
-
*
|
|
23
|
-
* Cold-start (no spawns): returns 0.5 so all agents are equal.
|
|
24
|
-
*/
|
|
25
|
-
export function computeAgentScore(metrics) {
|
|
26
|
-
if (!metrics || metrics.spawned === 0)
|
|
27
|
-
return 0.5;
|
|
28
|
-
const { spawned, completed, stallCount, avgCompletionMs } = metrics;
|
|
29
|
-
const rawSuccess = completed / spawned;
|
|
30
|
-
const volumeWeight = Math.min(1, spawned / 5);
|
|
31
|
-
const successRate = rawSuccess * volumeWeight + 0.5 * (1 - volumeWeight);
|
|
32
|
-
const stallPenalty = (stallCount / spawned) * 0.3;
|
|
33
|
-
const speedPenalty = Math.min(avgCompletionMs / 300_000, 1) * 0.1;
|
|
34
|
-
return Math.max(0, successRate - stallPenalty - speedPenalty);
|
|
35
|
-
}
|
|
36
|
-
// ── Selection ────────────────────────────────────────────────────────
|
|
37
|
-
/** Default ordering when scores are tied — first entry wins. */
|
|
38
|
-
const DEFAULT_ORDER = ["claude", "gemini", "codex", "aider"];
|
|
39
|
-
/**
|
|
40
|
-
* Select the best agent type given the current strategy, metrics, and
|
|
41
|
-
* installed agents.
|
|
42
|
-
*
|
|
43
|
-
* Explicit user choice (`params.agentType`) should be resolved by the
|
|
44
|
-
* caller *before* reaching this function.
|
|
45
|
-
*/
|
|
46
|
-
export function selectAgentType(ctx) {
|
|
47
|
-
if (ctx.config.strategy === "fixed") {
|
|
48
|
-
return ctx.config.fixedAgentType;
|
|
49
|
-
}
|
|
50
|
-
// ── ranked mode ──
|
|
51
|
-
const installed = new Set(ctx.installedAgents
|
|
52
|
-
.filter((r) => r.installed)
|
|
53
|
-
.map((r) => r.adapter));
|
|
54
|
-
// If nothing is installed, fall back to config default
|
|
55
|
-
if (installed.size === 0) {
|
|
56
|
-
return ctx.config.fixedAgentType;
|
|
57
|
-
}
|
|
58
|
-
let bestAgent = ctx.config.fixedAgentType;
|
|
59
|
-
let bestScore = -1;
|
|
60
|
-
for (const agent of DEFAULT_ORDER) {
|
|
61
|
-
if (!installed.has(agent))
|
|
62
|
-
continue;
|
|
63
|
-
const score = computeAgentScore(ctx.metrics[agent]);
|
|
64
|
-
if (score > bestScore) {
|
|
65
|
-
bestScore = score;
|
|
66
|
-
bestAgent = agent;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return bestAgent;
|
|
70
|
-
}
|