@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../../src/api/server.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,KAAK,wBAAwB,GAAG,IAAI,CAClC,IAAI,CAAC,cAAc,EACnB,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,gBAAgB,GAAG,eAAe,GAAG,WAAW,CAC5E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,CAAC,EAAE,OAAO,CAAC;IAClC,kFAAkF;IAClF,iBAAiB,CAAC,EAAE,aAAa,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;IACrE;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;CAChD,GAAG,OAAO,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,aAAa,EAAE,CAAC,EAAE,EAAE,YAAY,KAAK,IAAI,CAAC;IAC1C,aAAa,EAAE,CACb,MAAM,EAAE,OAAO,CAAC,uBAAuB,CAAC,GAAG;QACzC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;KACnC,KACE,IAAI,CAAC;CACX,CAAC,CA+6CD"}
|
|
@@ -23,6 +23,7 @@ import net from "node:net";
|
|
|
23
23
|
import os from "node:os";
|
|
24
24
|
import path from "node:path";
|
|
25
25
|
import { handleKnowledgeRoutes } from "@elizaos/app-knowledge/routes";
|
|
26
|
+
import { wireCoordinatorBridgesWhenReady } from "@elizaos/app-task-coordinator/api/coordinator-wiring";
|
|
26
27
|
// Phase 2 extraction: LifeOps routes → app-lifeops/src/routes/plugin.ts (lifeopsPlugin)
|
|
27
28
|
// import { handleWalletTradeExecuteRoute } from "./wallet-trade-routes.js";
|
|
28
29
|
// import {
|
|
@@ -88,7 +89,6 @@ import { handleConfigRoutes } from "./config-routes.js";
|
|
|
88
89
|
import { ConnectorHealthMonitor } from "./connector-health.js";
|
|
89
90
|
import { handleConnectorRoutes } from "./connector-routes.js";
|
|
90
91
|
import { handleConversationRoutes } from "./conversation-routes.js";
|
|
91
|
-
import { wireCoordinatorBridgesWhenReady } from "./coordinator-wiring.js";
|
|
92
92
|
import { handleDatabaseRoute } from "./database.js";
|
|
93
93
|
import { handleDiagnosticsRoutes } from "./diagnostics-routes.js";
|
|
94
94
|
// Discord local routes extracted to @elizaos/plugin-discord (setup-routes.ts)
|
|
@@ -150,7 +150,7 @@ import { AGENT_EVENT_ALLOWED_STREAMS, aggregateSecrets, BLOCKED_ENV_KEYS, CONFIG
|
|
|
150
150
|
const nodeRequire = createRequire(import.meta.url);
|
|
151
151
|
let agentOrchestratorCompat = null;
|
|
152
152
|
try {
|
|
153
|
-
agentOrchestratorCompat = nodeRequire("@elizaos/
|
|
153
|
+
agentOrchestratorCompat = nodeRequire("@elizaos/plugin-agent-orchestrator");
|
|
154
154
|
}
|
|
155
155
|
catch {
|
|
156
156
|
agentOrchestratorCompat = null;
|
|
@@ -2372,7 +2372,8 @@ function wireCoordinatorEventRouting(st) {
|
|
|
2372
2372
|
/**
|
|
2373
2373
|
* Fallback handler for /api/coding-agents/* routes when the plugin
|
|
2374
2374
|
* doesn't export createCodingAgentRouteHandler.
|
|
2375
|
-
* Uses the
|
|
2375
|
+
* Uses the orchestrator plugin's CODE_TASK compatibility service to
|
|
2376
|
+
* provide task data.
|
|
2376
2377
|
*/
|
|
2377
2378
|
async function handleCodingAgentsFallback(runtime, pathname, method, req, res) {
|
|
2378
2379
|
const codeTaskService = runtime.getService("CODE_TASK");
|
|
@@ -3965,7 +3966,7 @@ async function handleRequest(req, res, state, ctx) {
|
|
|
3965
3966
|
((isSessionsRoute || isSessionDetailRoute) && !ptyService)) {
|
|
3966
3967
|
handled = await handleCodingAgentsFallback(state.runtime, pathname, method, req, res);
|
|
3967
3968
|
}
|
|
3968
|
-
// Prefer @elizaos/
|
|
3969
|
+
// Prefer @elizaos/plugin-agent-orchestrator route handler so the full coordinator
|
|
3969
3970
|
// contract is served from the embedded runtime (replaces the old plugin).
|
|
3970
3971
|
if (!handled)
|
|
3971
3972
|
try {
|
|
@@ -3979,7 +3980,7 @@ async function handleRequest(req, res, state, ctx) {
|
|
|
3979
3980
|
catch {
|
|
3980
3981
|
// Compat layer unavailable — final fallback below handles coding-agents routes.
|
|
3981
3982
|
}
|
|
3982
|
-
// Final fallback:
|
|
3983
|
+
// Final fallback: handle coding-agents routes using the plugin's CODE_TASK compatibility service.
|
|
3983
3984
|
if (!handled && pathname.startsWith("/api/coding-agents")) {
|
|
3984
3985
|
handled = await handleCodingAgentsFallback(state.runtime, pathname, method, req, res);
|
|
3985
3986
|
}
|
|
@@ -4779,7 +4780,6 @@ export async function startApiServer(opts) {
|
|
|
4779
4780
|
}
|
|
4780
4781
|
});
|
|
4781
4782
|
// Handle WebSocket connections
|
|
4782
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- ws module typing workaround
|
|
4783
4783
|
wss.on("connection", (ws, request) => {
|
|
4784
4784
|
let wsUrl;
|
|
4785
4785
|
try {
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export interface TaskAgentChatRouting {
|
|
3
|
-
sessionId?: string;
|
|
4
|
-
threadId?: string;
|
|
5
|
-
roomId?: string | null;
|
|
6
|
-
}
|
|
7
|
-
type RoutingRuntime = Pick<AgentRuntime, "getRoom" | "getService" | "sendMessageToTarget">;
|
|
8
|
-
export declare function routeTaskAgentTextToConnector(runtime: RoutingRuntime | null, text: string, source: string, routing?: TaskAgentChatRouting): Promise<boolean>;
|
|
9
|
-
export {};
|
|
1
|
+
export * from "@elizaos/app-task-coordinator/api/task-agent-message-routing";
|
|
10
2
|
//# sourceMappingURL=task-agent-message-routing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-agent-message-routing.d.ts","sourceRoot":"","sources":["../../../../../src/api/task-agent-message-routing.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"task-agent-message-routing.d.ts","sourceRoot":"","sources":["../../../../../src/api/task-agent-message-routing.ts"],"names":[],"mappings":"AAAA,cAAc,8DAA8D,CAAC"}
|
|
@@ -1,62 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const coordinator = runtime.getService("SWARM_COORDINATOR");
|
|
3
|
-
return coordinator && typeof coordinator === "object"
|
|
4
|
-
? coordinator
|
|
5
|
-
: null;
|
|
6
|
-
}
|
|
7
|
-
function inferTaskAgentRoutingFromMessage(text, coordinator) {
|
|
8
|
-
const taskContexts = coordinator?.getAllTaskContexts?.();
|
|
9
|
-
if (!Array.isArray(taskContexts) || taskContexts.length === 0) {
|
|
10
|
-
return undefined;
|
|
11
|
-
}
|
|
12
|
-
const loginLabelMatch = text.match(/^"([^"]+)" needs a provider login\b/);
|
|
13
|
-
const matchingTask = loginLabelMatch?.[1]
|
|
14
|
-
? taskContexts.filter((task) => task.label === loginLabelMatch[1])
|
|
15
|
-
: taskContexts.length === 1
|
|
16
|
-
? taskContexts
|
|
17
|
-
: [];
|
|
18
|
-
if (matchingTask.length !== 1) {
|
|
19
|
-
return undefined;
|
|
20
|
-
}
|
|
21
|
-
const [taskContext] = matchingTask;
|
|
22
|
-
return {
|
|
23
|
-
...(taskContext.sessionId ? { sessionId: taskContext.sessionId } : {}),
|
|
24
|
-
...(taskContext.threadId ? { threadId: taskContext.threadId } : {}),
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export async function routeTaskAgentTextToConnector(runtime, text, source, routing) {
|
|
28
|
-
if (!runtime)
|
|
29
|
-
return false;
|
|
30
|
-
const coordinator = getRoutingCoordinator(runtime);
|
|
31
|
-
const resolvedRouting = {
|
|
32
|
-
...(routing ?? inferTaskAgentRoutingFromMessage(text, coordinator)),
|
|
33
|
-
};
|
|
34
|
-
if (!resolvedRouting.threadId && resolvedRouting.sessionId) {
|
|
35
|
-
const taskContext = coordinator?.getTaskContext?.(resolvedRouting.sessionId);
|
|
36
|
-
if (taskContext?.threadId) {
|
|
37
|
-
resolvedRouting.threadId = taskContext.threadId;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
let roomId = resolvedRouting.roomId ?? null;
|
|
41
|
-
if (!roomId && resolvedRouting.threadId) {
|
|
42
|
-
const thread = await coordinator?.getTaskThread?.(resolvedRouting.threadId);
|
|
43
|
-
roomId =
|
|
44
|
-
thread &&
|
|
45
|
-
typeof thread.roomId === "string" &&
|
|
46
|
-
thread.roomId.trim().length > 0
|
|
47
|
-
? thread.roomId
|
|
48
|
-
: null;
|
|
49
|
-
}
|
|
50
|
-
if (!roomId)
|
|
51
|
-
return false;
|
|
52
|
-
const room = await runtime.getRoom(roomId).catch(() => null);
|
|
53
|
-
if (!room?.source)
|
|
54
|
-
return false;
|
|
55
|
-
await runtime.sendMessageToTarget({
|
|
56
|
-
source: room.source,
|
|
57
|
-
roomId: room.id,
|
|
58
|
-
channelId: room.channelId ?? room.id,
|
|
59
|
-
serverId: room.serverId ?? undefined,
|
|
60
|
-
}, { text, source });
|
|
61
|
-
return true;
|
|
62
|
-
}
|
|
1
|
+
export * from "@elizaos/app-task-coordinator/api/task-agent-message-routing";
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { RouteRequestContext } from "./route-helpers.js";
|
|
3
|
-
export interface WebsiteBlockerRouteContext extends RouteRequestContext {
|
|
4
|
-
runtime?: IAgentRuntime | null;
|
|
5
|
-
}
|
|
6
|
-
export declare function handleWebsiteBlockerRoutes(ctx: WebsiteBlockerRouteContext): Promise<boolean>;
|
|
1
|
+
export * from "@elizaos/app-lifeops/routes/website-blocker-routes";
|
|
7
2
|
//# sourceMappingURL=website-blocker-routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"website-blocker-routes.d.ts","sourceRoot":"","sources":["../../../../../src/api/website-blocker-routes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"website-blocker-routes.d.ts","sourceRoot":"","sources":["../../../../../src/api/website-blocker-routes.ts"],"names":[],"mappings":"AAAA,cAAc,oDAAoD,CAAC"}
|
|
@@ -1,174 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { logger } from "@elizaos/core";
|
|
3
|
-
function toSyntheticMessage(text) {
|
|
4
|
-
if (typeof text !== "string" || text.trim().length === 0) {
|
|
5
|
-
return undefined;
|
|
6
|
-
}
|
|
7
|
-
return {
|
|
8
|
-
content: {
|
|
9
|
-
text,
|
|
10
|
-
},
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
function buildBlockRequest(body) {
|
|
14
|
-
const parameters = {};
|
|
15
|
-
if (body.websites !== undefined) {
|
|
16
|
-
parameters.websites = body.websites;
|
|
17
|
-
}
|
|
18
|
-
if (body.durationMinutes !== undefined) {
|
|
19
|
-
parameters.durationMinutes = body.durationMinutes;
|
|
20
|
-
}
|
|
21
|
-
return parseSelfControlBlockRequest({
|
|
22
|
-
parameters,
|
|
23
|
-
}, toSyntheticMessage(body.text));
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Lazy-import the LifeOps repository to resolve which definitions gate
|
|
27
|
-
* access to a specific host and whether their current occurrences are
|
|
28
|
-
* completed. The import is dynamic so the route file does not create a
|
|
29
|
-
* hard dependency on the LifeOps database tables existing.
|
|
30
|
-
*/
|
|
31
|
-
async function resolveRequiredTasksForHost(runtime, host) {
|
|
32
|
-
// Dynamic import avoids a hard compile-time dependency on the LifeOps
|
|
33
|
-
// repository module, which may not be present in all deployments.
|
|
34
|
-
const { LifeOpsRepository } = await import("../lifeops/repository.js");
|
|
35
|
-
const repo = new LifeOpsRepository(runtime);
|
|
36
|
-
const agentId = String(runtime.agentId);
|
|
37
|
-
const definitions = await repo.listActiveDefinitions(agentId);
|
|
38
|
-
const matchingDefinitions = definitions.filter((definition) => definition.websiteAccess?.websites.some((website) => website.toLowerCase() === host));
|
|
39
|
-
if (matchingDefinitions.length === 0) {
|
|
40
|
-
return { groupKey: null, requiredTasks: [] };
|
|
41
|
-
}
|
|
42
|
-
const groupKey = matchingDefinitions[0].websiteAccess?.groupKey ?? null;
|
|
43
|
-
const requiredTasks = [];
|
|
44
|
-
for (const definition of matchingDefinitions) {
|
|
45
|
-
const occurrences = await repo.listOccurrencesForDefinition(agentId, definition.id);
|
|
46
|
-
// Find the most recent non-expired occurrence to check completion status
|
|
47
|
-
const currentOccurrence = occurrences
|
|
48
|
-
.filter((occurrence) => occurrence.state !== "expired" && occurrence.state !== "muted")
|
|
49
|
-
.sort((left, right) => {
|
|
50
|
-
const leftTime = Date.parse(left.relevanceStartAt);
|
|
51
|
-
const rightTime = Date.parse(right.relevanceStartAt);
|
|
52
|
-
return rightTime - leftTime;
|
|
53
|
-
})[0];
|
|
54
|
-
requiredTasks.push({
|
|
55
|
-
id: currentOccurrence?.id ?? definition.id,
|
|
56
|
-
title: definition.title,
|
|
57
|
-
completed: currentOccurrence?.state === "completed",
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
return { groupKey, requiredTasks };
|
|
61
|
-
}
|
|
62
|
-
export async function handleWebsiteBlockerRoutes(ctx) {
|
|
63
|
-
const { req, res, method, pathname, readJsonBody, json, error, runtime } = ctx;
|
|
64
|
-
if (pathname !== "/api/website-blocker" &&
|
|
65
|
-
pathname !== "/api/website-blocker/status") {
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
if (method === "GET") {
|
|
69
|
-
const url = new URL(req.url ?? "/", "http://localhost");
|
|
70
|
-
const queriedHost = url.searchParams.get("host")?.trim().toLowerCase();
|
|
71
|
-
if (!queriedHost) {
|
|
72
|
-
json(res, await getSelfControlStatus());
|
|
73
|
-
return true;
|
|
74
|
-
}
|
|
75
|
-
const status = await getSelfControlStatus();
|
|
76
|
-
const hostBlocked = status.active &&
|
|
77
|
-
status.websites.some((website) => website.toLowerCase() === queriedHost);
|
|
78
|
-
const result = {
|
|
79
|
-
blocked: hostBlocked,
|
|
80
|
-
host: queriedHost,
|
|
81
|
-
groupKey: null,
|
|
82
|
-
requiredTasks: [],
|
|
83
|
-
websites: status.active ? status.websites : [],
|
|
84
|
-
};
|
|
85
|
-
if (hostBlocked && runtime) {
|
|
86
|
-
try {
|
|
87
|
-
const tasks = await resolveRequiredTasksForHost(runtime, queriedHost);
|
|
88
|
-
result.requiredTasks = tasks.requiredTasks;
|
|
89
|
-
result.groupKey = tasks.groupKey;
|
|
90
|
-
}
|
|
91
|
-
catch (err) {
|
|
92
|
-
logger.warn(`[website-blocker] Failed to resolve required tasks for host ${queriedHost}: ${err instanceof Error ? err.message : String(err)}`);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
json(res, result);
|
|
96
|
-
return true;
|
|
97
|
-
}
|
|
98
|
-
if (method === "POST" || method === "PUT") {
|
|
99
|
-
const body = await readJsonBody(req, res);
|
|
100
|
-
if (!body)
|
|
101
|
-
return true;
|
|
102
|
-
const parsed = buildBlockRequest(body);
|
|
103
|
-
if (!parsed.request) {
|
|
104
|
-
json(res, {
|
|
105
|
-
success: false,
|
|
106
|
-
error: parsed.error ?? "Could not parse the website block request body.",
|
|
107
|
-
}, 400);
|
|
108
|
-
return true;
|
|
109
|
-
}
|
|
110
|
-
if (parsed.request.durationMinutes !== null && !runtime) {
|
|
111
|
-
error(res, "Timed website blocks require the Eliza runtime so Eliza can schedule the automatic unblock task.", 503);
|
|
112
|
-
return true;
|
|
113
|
-
}
|
|
114
|
-
const result = await startSelfControlBlock({
|
|
115
|
-
...parsed.request,
|
|
116
|
-
scheduledByAgentId: runtime ? String(runtime.agentId) : null,
|
|
117
|
-
});
|
|
118
|
-
if (result.success === true) {
|
|
119
|
-
if (parsed.request.durationMinutes !== null && runtime) {
|
|
120
|
-
try {
|
|
121
|
-
const taskId = await syncWebsiteBlockerExpiryTask(runtime);
|
|
122
|
-
if (!taskId) {
|
|
123
|
-
await stopSelfControlBlock();
|
|
124
|
-
json(res, {
|
|
125
|
-
success: false,
|
|
126
|
-
error: "Eliza started the website block but could not schedule its automatic unblock task, so it rolled the block back.",
|
|
127
|
-
}, 500);
|
|
128
|
-
return true;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
catch (scheduleError) {
|
|
132
|
-
await stopSelfControlBlock();
|
|
133
|
-
json(res, {
|
|
134
|
-
success: false,
|
|
135
|
-
error: `Eliza could not schedule the automatic unblock task, so it rolled the website block back. ${scheduleError instanceof Error ? scheduleError.message : String(scheduleError)}`,
|
|
136
|
-
}, 500);
|
|
137
|
-
return true;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
json(res, {
|
|
141
|
-
success: true,
|
|
142
|
-
endsAt: result.endsAt,
|
|
143
|
-
request: parsed.request,
|
|
144
|
-
}, 200);
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
json(res, {
|
|
148
|
-
success: false,
|
|
149
|
-
error: result.error,
|
|
150
|
-
status: result.status,
|
|
151
|
-
}, 409);
|
|
152
|
-
}
|
|
153
|
-
return true;
|
|
154
|
-
}
|
|
155
|
-
if (method === "DELETE") {
|
|
156
|
-
const result = await stopSelfControlBlock();
|
|
157
|
-
if (result.success === true) {
|
|
158
|
-
json(res, {
|
|
159
|
-
success: true,
|
|
160
|
-
removed: result.removed,
|
|
161
|
-
status: result.status,
|
|
162
|
-
}, 200);
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
165
|
-
json(res, {
|
|
166
|
-
success: false,
|
|
167
|
-
error: result.error,
|
|
168
|
-
status: result.status,
|
|
169
|
-
}, 409);
|
|
170
|
-
}
|
|
171
|
-
return true;
|
|
172
|
-
}
|
|
173
|
-
return false;
|
|
174
|
-
}
|
|
1
|
+
export * from "@elizaos/app-lifeops/routes/website-blocker-routes";
|
|
@@ -190,7 +190,7 @@ export type AgentDefaultsConfig = {
|
|
|
190
190
|
/** Escalation behavior config. */
|
|
191
191
|
escalation?: EscalationConfig;
|
|
192
192
|
/** Inbox triage config (multi-channel message scanning, daily digest, auto-reply). */
|
|
193
|
-
inboxTriage?: import("
|
|
193
|
+
inboxTriage?: import("@elizaos/app-lifeops/inbox/types").InboxTriageConfig;
|
|
194
194
|
/** Optional repository root for system prompt runtime line (overrides auto-detect). */
|
|
195
195
|
repoRoot?: string;
|
|
196
196
|
/** Skip init (INIT.md creation, etc.) for pre-configured deployments. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.agent-defaults.d.ts","sourceRoot":"","sources":["../../../../../src/config/types.agent-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,4BAA4B,EAC5B,gBAAgB,EAChB,UAAU,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAI3D,MAAM,MAAM,qBAAqB,GAAG;IAClC,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gCAAgC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,oDAAoD;IACpD,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,C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UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,0EAA0E;IAC1E,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oDAAoD;IACpD,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,mEAAmE;IACnE,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,sEAAsE;IACtE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAC/C,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uFAAuF;IACvF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,kCAAkC;IAClC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,sFAAsF;IACtF,WAAW,CAAC,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"types.agent-defaults.d.ts","sourceRoot":"","sources":["../../../../../src/config/types.agent-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,4BAA4B,EAC5B,gBAAgB,EAChB,UAAU,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAI3D,MAAM,MAAM,qBAAqB,GAAG;IAClC,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gCAAgC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+BAA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IAClB,gGAAgG;IAChG,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oFAAoF;IACpF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
|
@@ -1,39 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
3
|
-
body?: unknown;
|
|
4
|
-
headers?: Record<string, string>;
|
|
5
|
-
timeoutMs?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface CoordinatorEvalConversationMessage {
|
|
8
|
-
id?: string;
|
|
9
|
-
text?: string;
|
|
10
|
-
content?: Record<string, unknown>;
|
|
11
|
-
metadata?: Record<string, unknown>;
|
|
12
|
-
createdAt?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface CoordinatorEvalConversation {
|
|
15
|
-
id: string;
|
|
16
|
-
title?: string;
|
|
17
|
-
}
|
|
18
|
-
export declare function resolveCoordinatorEvalBaseUrl(explicit?: string): string;
|
|
19
|
-
export declare class CoordinatorEvalClient {
|
|
20
|
-
readonly baseUrl: string;
|
|
21
|
-
constructor(baseUrl: string);
|
|
22
|
-
requestJson<T>(pathname: string, options?: CoordinatorEvalRequestOptions): Promise<T>;
|
|
23
|
-
requestBuffer(pathname: string, options?: CoordinatorEvalRequestOptions): Promise<Uint8Array>;
|
|
24
|
-
createConversation(title: string, timeoutMs?: number): Promise<CoordinatorEvalConversation>;
|
|
25
|
-
listConversationMessages(conversationId: string, timeoutMs?: number): Promise<CoordinatorEvalConversationMessage[]>;
|
|
26
|
-
postConversationMessage(params: {
|
|
27
|
-
conversationId: string;
|
|
28
|
-
text: string;
|
|
29
|
-
channelType?: string;
|
|
30
|
-
source?: string;
|
|
31
|
-
metadata?: Record<string, unknown>;
|
|
32
|
-
timeoutMs?: number;
|
|
33
|
-
}): Promise<{
|
|
34
|
-
text: string;
|
|
35
|
-
raw: Record<string, unknown>;
|
|
36
|
-
}>;
|
|
37
|
-
writeJson(outputPath: string, value: unknown): Promise<void>;
|
|
38
|
-
}
|
|
1
|
+
export * from "@elizaos/app-task-coordinator/evals/coordinator-eval-client";
|
|
39
2
|
//# sourceMappingURL=coordinator-eval-client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinator-eval-client.d.ts","sourceRoot":"","sources":["../../../../../src/evals/coordinator-eval-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coordinator-eval-client.d.ts","sourceRoot":"","sources":["../../../../../src/evals/coordinator-eval-client.ts"],"names":[],"mappings":"AAAA,cAAc,6DAA6D,CAAC"}
|
|
@@ -1,138 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
function ensureAbsoluteBaseUrl(baseUrl) {
|
|
4
|
-
const normalized = baseUrl.trim().replace(/\/+$/, "");
|
|
5
|
-
if (!/^https?:\/\//i.test(normalized)) {
|
|
6
|
-
throw new Error(`Invalid Eliza base URL: ${baseUrl}`);
|
|
7
|
-
}
|
|
8
|
-
return normalized;
|
|
9
|
-
}
|
|
10
|
-
function formatRequestError(pathname, error) {
|
|
11
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
12
|
-
return new Error(`Request failed ${pathname}: ${message}`);
|
|
13
|
-
}
|
|
14
|
-
export function resolveCoordinatorEvalBaseUrl(explicit) {
|
|
15
|
-
if (explicit?.trim()) {
|
|
16
|
-
return ensureAbsoluteBaseUrl(explicit);
|
|
17
|
-
}
|
|
18
|
-
const port = process.env.ELIZA_API_PORT?.trim() ||
|
|
19
|
-
process.env.ELIZA_PORT?.trim() ||
|
|
20
|
-
"31337";
|
|
21
|
-
return ensureAbsoluteBaseUrl(`http://127.0.0.1:${port}`);
|
|
22
|
-
}
|
|
23
|
-
async function readResponseBody(response) {
|
|
24
|
-
const contentType = response.headers.get("content-type") ?? "";
|
|
25
|
-
if (contentType.includes("application/json")) {
|
|
26
|
-
return await response.json();
|
|
27
|
-
}
|
|
28
|
-
const text = await response.text();
|
|
29
|
-
try {
|
|
30
|
-
return JSON.parse(text);
|
|
31
|
-
}
|
|
32
|
-
catch {
|
|
33
|
-
return { raw: text };
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
export class CoordinatorEvalClient {
|
|
37
|
-
baseUrl;
|
|
38
|
-
constructor(baseUrl) {
|
|
39
|
-
this.baseUrl = ensureAbsoluteBaseUrl(baseUrl);
|
|
40
|
-
}
|
|
41
|
-
async requestJson(pathname, options = {}) {
|
|
42
|
-
let response;
|
|
43
|
-
try {
|
|
44
|
-
response = await fetch(`${this.baseUrl}${pathname}`, {
|
|
45
|
-
method: options.method ?? "GET",
|
|
46
|
-
headers: {
|
|
47
|
-
...(options.body !== undefined
|
|
48
|
-
? { "content-type": "application/json" }
|
|
49
|
-
: {}),
|
|
50
|
-
...(options.headers ?? {}),
|
|
51
|
-
},
|
|
52
|
-
body: options.body !== undefined ? JSON.stringify(options.body) : undefined,
|
|
53
|
-
...(typeof options.timeoutMs === "number" && options.timeoutMs > 0
|
|
54
|
-
? { signal: AbortSignal.timeout(options.timeoutMs) }
|
|
55
|
-
: {}),
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
catch (error) {
|
|
59
|
-
throw formatRequestError(pathname, error);
|
|
60
|
-
}
|
|
61
|
-
const data = (await readResponseBody(response));
|
|
62
|
-
if (!response.ok) {
|
|
63
|
-
throw new Error(`Request failed (${response.status}) ${pathname}: ${JSON.stringify(data)}`);
|
|
64
|
-
}
|
|
65
|
-
return data;
|
|
66
|
-
}
|
|
67
|
-
async requestBuffer(pathname, options = {}) {
|
|
68
|
-
let response;
|
|
69
|
-
try {
|
|
70
|
-
response = await fetch(`${this.baseUrl}${pathname}`, {
|
|
71
|
-
method: options.method ?? "GET",
|
|
72
|
-
headers: {
|
|
73
|
-
...(options.body !== undefined
|
|
74
|
-
? { "content-type": "application/json" }
|
|
75
|
-
: {}),
|
|
76
|
-
...(options.headers ?? {}),
|
|
77
|
-
},
|
|
78
|
-
body: options.body !== undefined ? JSON.stringify(options.body) : undefined,
|
|
79
|
-
...(typeof options.timeoutMs === "number" && options.timeoutMs > 0
|
|
80
|
-
? { signal: AbortSignal.timeout(options.timeoutMs) }
|
|
81
|
-
: {}),
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
catch (error) {
|
|
85
|
-
throw formatRequestError(pathname, error);
|
|
86
|
-
}
|
|
87
|
-
const buffer = new Uint8Array(await response.arrayBuffer());
|
|
88
|
-
if (!response.ok) {
|
|
89
|
-
throw new Error(`Request failed (${response.status}) ${pathname}: ${new TextDecoder().decode(buffer)}`);
|
|
90
|
-
}
|
|
91
|
-
return buffer;
|
|
92
|
-
}
|
|
93
|
-
async createConversation(title, timeoutMs) {
|
|
94
|
-
const response = await this.requestJson("/api/conversations", {
|
|
95
|
-
method: "POST",
|
|
96
|
-
body: { title, includeGreeting: false },
|
|
97
|
-
timeoutMs,
|
|
98
|
-
});
|
|
99
|
-
const conversationId = response.conversation?.id?.trim();
|
|
100
|
-
if (!conversationId) {
|
|
101
|
-
throw new Error("Conversation create response did not include an id");
|
|
102
|
-
}
|
|
103
|
-
return {
|
|
104
|
-
id: conversationId,
|
|
105
|
-
title: response.conversation?.title,
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
async listConversationMessages(conversationId, timeoutMs) {
|
|
109
|
-
const response = await this.requestJson(`/api/conversations/${encodeURIComponent(conversationId)}/messages`, {
|
|
110
|
-
timeoutMs,
|
|
111
|
-
});
|
|
112
|
-
return Array.isArray(response.messages) ? response.messages : [];
|
|
113
|
-
}
|
|
114
|
-
async postConversationMessage(params) {
|
|
115
|
-
const response = await this.requestJson(`/api/conversations/${encodeURIComponent(params.conversationId)}/messages`, {
|
|
116
|
-
method: "POST",
|
|
117
|
-
body: {
|
|
118
|
-
text: params.text,
|
|
119
|
-
channelType: params.channelType ?? "DM",
|
|
120
|
-
...(params.source ? { source: params.source } : {}),
|
|
121
|
-
...(params.metadata ? { metadata: params.metadata } : {}),
|
|
122
|
-
},
|
|
123
|
-
timeoutMs: params.timeoutMs,
|
|
124
|
-
});
|
|
125
|
-
return {
|
|
126
|
-
text: typeof response.text === "string"
|
|
127
|
-
? response.text
|
|
128
|
-
: typeof response.response === "string"
|
|
129
|
-
? response.response
|
|
130
|
-
: "",
|
|
131
|
-
raw: response,
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
async writeJson(outputPath, value) {
|
|
135
|
-
await mkdir(path.dirname(outputPath), { recursive: true });
|
|
136
|
-
await writeFile(outputPath, `${JSON.stringify(value, null, 2)}\n`, "utf8");
|
|
137
|
-
}
|
|
138
|
-
}
|
|
1
|
+
export * from "@elizaos/app-task-coordinator/evals/coordinator-eval-client";
|
|
@@ -1,57 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { type CoordinatorEvalChannel } from "./coordinator-scenarios.js";
|
|
3
|
-
export interface CoordinatorScenarioRunCheck {
|
|
4
|
-
id: string;
|
|
5
|
-
passed: boolean;
|
|
6
|
-
details?: Record<string, unknown>;
|
|
7
|
-
}
|
|
8
|
-
export interface CoordinatorScenarioRunResult {
|
|
9
|
-
batchId: string;
|
|
10
|
-
scenarioId: string;
|
|
11
|
-
channel: CoordinatorEvalChannel;
|
|
12
|
-
conversationId: string;
|
|
13
|
-
outputDir: string;
|
|
14
|
-
responses: Array<{
|
|
15
|
-
turn: number;
|
|
16
|
-
prompt: string;
|
|
17
|
-
responseText: string;
|
|
18
|
-
}>;
|
|
19
|
-
trajectoryIds: string[];
|
|
20
|
-
threadIds: string[];
|
|
21
|
-
checks: CoordinatorScenarioRunCheck[];
|
|
22
|
-
passed: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface RunCoordinatorLiveScenariosOptions {
|
|
25
|
-
baseUrl?: string;
|
|
26
|
-
batchId?: string;
|
|
27
|
-
profile?: "smoke" | "core" | "full";
|
|
28
|
-
channels?: CoordinatorEvalChannel[];
|
|
29
|
-
scenarioIds?: string[];
|
|
30
|
-
outputRoot?: string;
|
|
31
|
-
scenarioTimeoutMs?: number;
|
|
32
|
-
}
|
|
33
|
-
type EvaluatedPreflightIssue = {
|
|
34
|
-
id: string;
|
|
35
|
-
summary: string;
|
|
36
|
-
details?: Record<string, unknown>;
|
|
37
|
-
};
|
|
38
|
-
type SkippedChannel = {
|
|
39
|
-
channel: CoordinatorEvalChannel;
|
|
40
|
-
reason: string;
|
|
41
|
-
};
|
|
42
|
-
export declare function runCoordinatorLiveScenarios(options?: RunCoordinatorLiveScenariosOptions): Promise<{
|
|
43
|
-
batchId: string;
|
|
44
|
-
baseUrl: string;
|
|
45
|
-
outputRoot: string;
|
|
46
|
-
preflight: CoordinatorPreflightResult;
|
|
47
|
-
requestedChannels: CoordinatorEvalChannel[];
|
|
48
|
-
usableChannels: CoordinatorEvalChannel[];
|
|
49
|
-
skippedChannels: SkippedChannel[];
|
|
50
|
-
runnableFrameworks: string[];
|
|
51
|
-
preflightHardBlockers: EvaluatedPreflightIssue[];
|
|
52
|
-
preflightFailures: EvaluatedPreflightIssue[];
|
|
53
|
-
preflightWarnings: EvaluatedPreflightIssue[];
|
|
54
|
-
runs: CoordinatorScenarioRunResult[];
|
|
55
|
-
}>;
|
|
56
|
-
export {};
|
|
1
|
+
export * from "@elizaos/app-task-coordinator/evals/coordinator-live-runner";
|
|
57
2
|
//# sourceMappingURL=coordinator-live-runner.d.ts.map
|