@elizaos/agent 2.0.0-alpha.144 → 2.0.0-alpha.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/app-lifeops/src/actions/inbox-digest.d.ts +2 -0
- package/apps/app-lifeops/src/actions/inbox-digest.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox-digest.js +1 -0
- package/apps/app-lifeops/src/actions/inbox-respond.d.ts +2 -0
- package/apps/app-lifeops/src/actions/inbox-respond.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox-respond.js +1 -0
- package/apps/app-lifeops/src/actions/inbox-triage.d.ts +2 -0
- package/apps/app-lifeops/src/actions/inbox-triage.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox-triage.js +1 -0
- package/apps/app-lifeops/src/actions/inbox.d.ts +3 -0
- package/apps/app-lifeops/src/actions/inbox.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox.js +856 -0
- package/apps/app-lifeops/src/actions/update-owner-profile.d.ts +3 -0
- package/apps/app-lifeops/src/actions/update-owner-profile.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/update-owner-profile.js +131 -0
- package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/config.d.ts.map +1 -0
- package/{packages/agent → apps/app-lifeops}/src/inbox/config.js +1 -1
- package/apps/app-lifeops/src/inbox/message-fetcher.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/reflection.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/repository.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/triage-classifier.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/index.d.ts +25 -0
- package/apps/app-lifeops/src/lifeops/index.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/index.js +24 -0
- package/apps/app-lifeops/src/lifeops/screen-context.d.ts +52 -0
- package/apps/app-lifeops/src/lifeops/screen-context.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/screen-context.js +332 -0
- package/apps/app-lifeops/src/plugin.d.ts +3 -0
- package/apps/app-lifeops/src/plugin.d.ts.map +1 -1
- package/apps/app-lifeops/src/plugin.js +16 -3
- package/apps/app-lifeops/src/providers/inbox-triage.d.ts +3 -0
- package/apps/app-lifeops/src/providers/inbox-triage.d.ts.map +1 -0
- package/apps/app-lifeops/src/providers/inbox-triage.js +89 -0
- package/package.json +6 -4
- package/packages/agent/src/actions/calendar.d.ts +1 -18
- package/packages/agent/src/actions/calendar.d.ts.map +1 -1
- package/packages/agent/src/actions/calendar.js +1 -3143
- package/packages/agent/src/actions/check-balance.d.ts +17 -0
- package/packages/agent/src/actions/check-balance.d.ts.map +1 -0
- package/packages/agent/src/actions/check-balance.js +167 -0
- package/packages/agent/src/actions/connector-resolver.d.ts +75 -0
- package/packages/agent/src/actions/connector-resolver.d.ts.map +1 -0
- package/packages/agent/src/actions/connector-resolver.js +245 -0
- package/packages/agent/src/actions/context-signal-lexicon.d.ts +1 -1
- package/packages/agent/src/actions/context-signal-lexicon.d.ts.map +1 -1
- package/packages/agent/src/actions/context-signal-lexicon.js +6 -0
- package/packages/agent/src/actions/eject-plugin.d.ts +3 -0
- package/packages/agent/src/actions/eject-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/eject-plugin.js +48 -0
- package/packages/agent/src/actions/execute-trade.d.ts +17 -0
- package/packages/agent/src/actions/execute-trade.d.ts.map +1 -0
- package/packages/agent/src/actions/execute-trade.js +299 -0
- package/packages/agent/src/actions/get-self-status.d.ts +13 -0
- package/packages/agent/src/actions/get-self-status.d.ts.map +1 -0
- package/packages/agent/src/actions/get-self-status.js +66 -0
- package/packages/agent/src/actions/gmail.d.ts +1 -32
- package/packages/agent/src/actions/gmail.d.ts.map +1 -1
- package/packages/agent/src/actions/gmail.js +1 -1734
- package/packages/agent/src/actions/inbox-digest.d.ts +1 -1
- package/packages/agent/src/actions/inbox-digest.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox-digest.js +1 -1
- package/packages/agent/src/actions/inbox-respond.d.ts +1 -1
- package/packages/agent/src/actions/inbox-respond.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox-respond.js +1 -1
- package/packages/agent/src/actions/inbox-triage.d.ts +1 -1
- package/packages/agent/src/actions/inbox-triage.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox-triage.js +1 -1
- package/packages/agent/src/actions/inbox.d.ts +1 -2
- package/packages/agent/src/actions/inbox.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox.js +1 -856
- package/packages/agent/src/actions/index.d.ts +13 -0
- package/packages/agent/src/actions/index.d.ts.map +1 -1
- package/packages/agent/src/actions/index.js +13 -0
- package/packages/agent/src/actions/install-plugin.d.ts +3 -0
- package/packages/agent/src/actions/install-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/install-plugin.js +65 -0
- package/packages/agent/src/actions/life-goal-extractor.d.ts +1 -68
- package/packages/agent/src/actions/life-goal-extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life-goal-extractor.js +1 -354
- package/packages/agent/src/actions/life-param-extractor.d.ts +1 -77
- package/packages/agent/src/actions/life-param-extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life-param-extractor.js +1 -423
- package/packages/agent/src/actions/life-recent-context.d.ts +1 -8
- package/packages/agent/src/actions/life-recent-context.d.ts.map +1 -1
- package/packages/agent/src/actions/life-recent-context.js +1 -84
- package/packages/agent/src/actions/life-update-extractor.d.ts +1 -26
- package/packages/agent/src/actions/life-update-extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life-update-extractor.js +1 -195
- package/packages/agent/src/actions/life.d.ts +1 -8
- package/packages/agent/src/actions/life.d.ts.map +1 -1
- package/packages/agent/src/actions/life.extractor.d.ts +1 -17
- package/packages/agent/src/actions/life.extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life.extractor.js +1 -264
- package/packages/agent/src/actions/life.js +1 -3379
- package/packages/agent/src/actions/lifeops-extraction-config.d.ts +1 -15
- package/packages/agent/src/actions/lifeops-extraction-config.d.ts.map +1 -1
- package/packages/agent/src/actions/lifeops-extraction-config.js +1 -25
- package/packages/agent/src/actions/lifeops-google-helpers.d.ts +1 -61
- package/packages/agent/src/actions/lifeops-google-helpers.d.ts.map +1 -1
- package/packages/agent/src/actions/lifeops-google-helpers.js +1 -607
- package/packages/agent/src/actions/list-ejected.d.ts +3 -0
- package/packages/agent/src/actions/list-ejected.d.ts.map +1 -0
- package/packages/agent/src/actions/list-ejected.js +35 -0
- package/packages/agent/src/actions/log-level.d.ts +3 -0
- package/packages/agent/src/actions/log-level.d.ts.map +1 -0
- package/packages/agent/src/actions/log-level.js +125 -0
- package/packages/agent/src/actions/manage-tasks.d.ts.map +1 -1
- package/packages/agent/src/actions/manage-tasks.js +51 -15
- package/packages/agent/src/actions/media.d.ts +21 -0
- package/packages/agent/src/actions/media.d.ts.map +1 -0
- package/packages/agent/src/actions/media.js +384 -0
- package/packages/agent/src/actions/read-messages.d.ts +14 -0
- package/packages/agent/src/actions/read-messages.d.ts.map +1 -0
- package/packages/agent/src/actions/read-messages.js +228 -0
- package/packages/agent/src/actions/reinject-plugin.d.ts +3 -0
- package/packages/agent/src/actions/reinject-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/reinject-plugin.js +47 -0
- package/packages/agent/src/actions/send-message.d.ts +0 -7
- package/packages/agent/src/actions/send-message.d.ts.map +1 -1
- package/packages/agent/src/actions/send-message.js +170 -49
- package/packages/agent/src/actions/sync-plugin.d.ts +3 -0
- package/packages/agent/src/actions/sync-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/sync-plugin.js +47 -0
- package/packages/agent/src/actions/timezone-normalization.d.ts +1 -2
- package/packages/agent/src/actions/timezone-normalization.d.ts.map +1 -1
- package/packages/agent/src/actions/timezone-normalization.js +1 -107
- package/packages/agent/src/actions/transfer-token.d.ts +17 -0
- package/packages/agent/src/actions/transfer-token.d.ts.map +1 -0
- package/packages/agent/src/actions/transfer-token.js +470 -0
- package/packages/agent/src/actions/update-owner-profile.d.ts +1 -2
- package/packages/agent/src/actions/update-owner-profile.d.ts.map +1 -1
- package/packages/agent/src/actions/update-owner-profile.js +1 -131
- package/packages/agent/src/actions/wallet-action-shared.d.ts +15 -0
- package/packages/agent/src/actions/wallet-action-shared.d.ts.map +1 -0
- package/packages/agent/src/actions/wallet-action-shared.js +24 -0
- package/packages/agent/src/api/agent-admin-routes.d.ts.map +1 -1
- package/packages/agent/src/api/agent-admin-routes.js +1 -1
- package/packages/agent/src/api/binance-skill-helpers.d.ts.map +1 -1
- package/packages/agent/src/api/binance-skill-helpers.js +8 -3
- package/packages/agent/src/api/chat-routes.d.ts.map +1 -1
- package/packages/agent/src/api/chat-routes.js +20 -5
- package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts +1 -22
- package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts.map +1 -1
- package/packages/agent/src/api/coding-agents-auth-sanitize.js +1 -39
- package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts +1 -28
- package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts.map +1 -1
- package/packages/agent/src/api/coding-agents-preflight-normalize.js +1 -45
- package/packages/agent/src/api/coordinator-types.d.ts +1 -46
- package/packages/agent/src/api/coordinator-types.d.ts.map +1 -1
- package/packages/agent/src/api/coordinator-types.js +1 -1
- package/packages/agent/src/api/coordinator-wiring.d.ts +1 -45
- package/packages/agent/src/api/coordinator-wiring.d.ts.map +1 -1
- package/packages/agent/src/api/coordinator-wiring.js +1 -108
- package/packages/agent/src/api/index.d.ts +1 -1
- package/packages/agent/src/api/index.d.ts.map +1 -1
- package/packages/agent/src/api/index.js +1 -1
- package/packages/agent/src/api/lifeops-browser-packaging.d.ts +1 -15
- package/packages/agent/src/api/lifeops-browser-packaging.d.ts.map +1 -1
- package/packages/agent/src/api/lifeops-browser-packaging.js +1 -305
- package/packages/agent/src/api/lifeops-routes.d.ts +1 -19
- package/packages/agent/src/api/lifeops-routes.d.ts.map +1 -1
- package/packages/agent/src/api/lifeops-routes.js +1 -1173
- package/packages/agent/src/api/server.d.ts.map +1 -1
- package/packages/agent/src/api/server.js +6 -6
- package/packages/agent/src/api/task-agent-message-routing.d.ts +1 -9
- package/packages/agent/src/api/task-agent-message-routing.d.ts.map +1 -1
- package/packages/agent/src/api/task-agent-message-routing.js +1 -62
- package/packages/agent/src/api/website-blocker-routes.d.ts +1 -6
- package/packages/agent/src/api/website-blocker-routes.d.ts.map +1 -1
- package/packages/agent/src/api/website-blocker-routes.js +1 -174
- package/packages/agent/src/config/types.agent-defaults.d.ts +1 -1
- package/packages/agent/src/config/types.agent-defaults.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-eval-client.d.ts +1 -38
- package/packages/agent/src/evals/coordinator-eval-client.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-eval-client.js +1 -138
- package/packages/agent/src/evals/coordinator-live-runner.d.ts +1 -56
- package/packages/agent/src/evals/coordinator-live-runner.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-live-runner.js +1 -546
- package/packages/agent/src/evals/coordinator-preflight.d.ts +1 -31
- package/packages/agent/src/evals/coordinator-preflight.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-preflight.js +1 -296
- package/packages/agent/src/evals/coordinator-scenarios.d.ts +1 -23
- package/packages/agent/src/evals/coordinator-scenarios.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-scenarios.js +1 -1141
- package/packages/agent/src/lifeops/app-state.d.ts +1 -10
- package/packages/agent/src/lifeops/app-state.d.ts.map +1 -1
- package/packages/agent/src/lifeops/app-state.js +1 -32
- package/packages/agent/src/lifeops/apple-reminders.d.ts +1 -57
- package/packages/agent/src/lifeops/apple-reminders.d.ts.map +1 -1
- package/packages/agent/src/lifeops/apple-reminders.js +1 -325
- package/packages/agent/src/lifeops/defaults.d.ts +1 -23
- package/packages/agent/src/lifeops/defaults.d.ts.map +1 -1
- package/packages/agent/src/lifeops/defaults.js +1 -205
- package/packages/agent/src/lifeops/engine.d.ts +1 -7
- package/packages/agent/src/lifeops/engine.d.ts.map +1 -1
- package/packages/agent/src/lifeops/engine.js +1 -389
- package/packages/agent/src/lifeops/goal-grounding.d.ts +1 -53
- package/packages/agent/src/lifeops/goal-grounding.d.ts.map +1 -1
- package/packages/agent/src/lifeops/goal-grounding.js +1 -147
- package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts +1 -11
- package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts.map +1 -1
- package/packages/agent/src/lifeops/goal-semantic-evaluator.js +1 -154
- package/packages/agent/src/lifeops/google-api-error.d.ts +1 -6
- package/packages/agent/src/lifeops/google-api-error.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-api-error.js +1 -35
- package/packages/agent/src/lifeops/google-calendar.d.ts +1 -52
- package/packages/agent/src/lifeops/google-calendar.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-calendar.js +1 -268
- package/packages/agent/src/lifeops/google-connector-gateway.d.ts +1 -18
- package/packages/agent/src/lifeops/google-connector-gateway.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-connector-gateway.js +1 -65
- package/packages/agent/src/lifeops/google-fetch.d.ts +1 -10
- package/packages/agent/src/lifeops/google-fetch.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-fetch.js +1 -85
- package/packages/agent/src/lifeops/google-gmail.d.ts +1 -53
- package/packages/agent/src/lifeops/google-gmail.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-gmail.js +1 -471
- package/packages/agent/src/lifeops/google-managed-client.d.ts +1 -126
- package/packages/agent/src/lifeops/google-managed-client.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-managed-client.js +1 -294
- package/packages/agent/src/lifeops/google-oauth.d.ts +1 -60
- package/packages/agent/src/lifeops/google-oauth.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-oauth.js +1 -494
- package/packages/agent/src/lifeops/google-scopes.d.ts +1 -12
- package/packages/agent/src/lifeops/google-scopes.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-scopes.js +1 -96
- package/packages/agent/src/lifeops/index.d.ts +1 -2
- package/packages/agent/src/lifeops/index.d.ts.map +1 -1
- package/packages/agent/src/lifeops/index.js +1 -2
- package/packages/agent/src/lifeops/owner-profile.d.ts +1 -14
- package/packages/agent/src/lifeops/owner-profile.d.ts.map +1 -1
- package/packages/agent/src/lifeops/owner-profile.js +1 -194
- package/packages/agent/src/lifeops/repository.d.ts +1 -208
- package/packages/agent/src/lifeops/repository.d.ts.map +1 -1
- package/packages/agent/src/lifeops/repository.js +1 -3187
- package/packages/agent/src/lifeops/runtime.d.ts +1 -13
- package/packages/agent/src/lifeops/runtime.d.ts.map +1 -1
- package/packages/agent/src/lifeops/runtime.js +1 -120
- package/packages/agent/src/lifeops/screen-context.d.ts +1 -51
- package/packages/agent/src/lifeops/screen-context.d.ts.map +1 -1
- package/packages/agent/src/lifeops/screen-context.js +1 -332
- package/packages/agent/src/lifeops/seed-routines.d.ts +1 -19
- package/packages/agent/src/lifeops/seed-routines.d.ts.map +1 -1
- package/packages/agent/src/lifeops/seed-routines.js +1 -111
- package/packages/agent/src/lifeops/service.d.ts +1 -274
- package/packages/agent/src/lifeops/service.d.ts.map +1 -1
- package/packages/agent/src/lifeops/service.js +1 -9260
- package/packages/agent/src/lifeops/sql.d.ts +1 -30
- package/packages/agent/src/lifeops/sql.d.ts.map +1 -1
- package/packages/agent/src/lifeops/sql.js +1 -247
- package/packages/agent/src/lifeops/time.d.ts +1 -16
- package/packages/agent/src/lifeops/time.d.ts.map +1 -1
- package/packages/agent/src/lifeops/time.js +1 -132
- package/packages/agent/src/lifeops/twilio.d.ts +1 -24
- package/packages/agent/src/lifeops/twilio.d.ts.map +1 -1
- package/packages/agent/src/lifeops/twilio.js +1 -157
- package/packages/agent/src/lifeops/x-poster.d.ts +1 -18
- package/packages/agent/src/lifeops/x-poster.d.ts.map +1 -1
- package/packages/agent/src/lifeops/x-poster.js +1 -148
- package/packages/agent/src/providers/inbox-triage.d.ts +1 -2
- package/packages/agent/src/providers/inbox-triage.d.ts.map +1 -1
- package/packages/agent/src/providers/inbox-triage.js +1 -89
- package/packages/agent/src/providers/index.d.ts +4 -1
- package/packages/agent/src/providers/index.d.ts.map +1 -1
- package/packages/agent/src/providers/index.js +4 -1
- package/packages/agent/src/providers/lifeops.d.ts +1 -2
- package/packages/agent/src/providers/lifeops.d.ts.map +1 -1
- package/packages/agent/src/providers/lifeops.js +1 -157
- package/packages/agent/src/providers/local-models.d.ts +118 -0
- package/packages/agent/src/providers/local-models.d.ts.map +1 -0
- package/packages/agent/src/providers/local-models.js +427 -0
- package/packages/agent/src/providers/media-provider.d.ts +192 -0
- package/packages/agent/src/providers/media-provider.d.ts.map +1 -0
- package/packages/agent/src/providers/media-provider.js +1088 -0
- package/packages/agent/src/providers/self-status.d.ts +4 -0
- package/packages/agent/src/providers/self-status.d.ts.map +1 -0
- package/packages/agent/src/providers/self-status.js +12 -0
- package/packages/agent/src/providers/tasks.d.ts.map +1 -1
- package/packages/agent/src/providers/tasks.js +7 -7
- package/packages/agent/src/runtime/core-plugins.js +1 -1
- package/packages/agent/src/runtime/eliza-plugin.d.ts.map +1 -1
- package/packages/agent/src/runtime/eliza-plugin.js +1 -7
- package/packages/agent/src/runtime/eliza.js +2 -2
- package/packages/agent/src/runtime/plugin-collector.js +3 -3
- package/packages/agent/src/runtime/plugin-lifecycle.d.ts.map +1 -1
- package/packages/agent/src/runtime/plugin-lifecycle.js +3 -13
- package/packages/agent/src/runtime/trajectory-internals.d.ts.map +1 -1
- package/packages/agent/src/runtime/trajectory-internals.js +1 -3
- package/packages/agent/src/services/built-in-app-routes/hyperscape.d.ts.map +1 -1
- package/packages/agent/src/services/coding-task-executor.d.ts +3 -3
- package/packages/agent/src/services/coding-task-executor.js +3 -3
- package/packages/shared/src/awareness/index.d.ts +2 -0
- package/packages/shared/src/awareness/index.d.ts.map +1 -0
- package/packages/shared/src/awareness/index.js +1 -0
- package/packages/shared/src/awareness/registry.d.ts +27 -0
- package/packages/shared/src/awareness/registry.d.ts.map +1 -0
- package/packages/shared/src/awareness/registry.js +161 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts +24 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts.map +1 -1
- package/packages/shared/src/i18n/generated/validation-keyword-data.js +24 -0
- package/packages/shared/src/runtime-env.d.ts.map +1 -1
- package/packages/shared/src/runtime-env.js +5 -1
- package/packages/typescript/src/generated/action-docs.d.ts +135 -0
- package/packages/typescript/src/generated/action-docs.d.ts.map +1 -1
- package/packages/typescript/src/generated/action-docs.js +237 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts +24 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts.map +1 -1
- package/packages/typescript/src/i18n/generated/validation-keyword-data.js +24 -0
- package/packages/typescript/src/index.node.d.ts +2 -2
- package/packages/typescript/src/index.node.d.ts.map +1 -1
- package/packages/typescript/src/index.node.js +4 -3
- package/packages/typescript/src/plugin-lifecycle.d.ts.map +1 -1
- package/packages/typescript/src/plugin-lifecycle.js +42 -3
- package/packages/typescript/src/services/message.d.ts.map +1 -1
- package/packages/typescript/src/services/message.js +32 -0
- package/apps/app-training/src/core/cli.d.ts +0 -11
- package/apps/app-training/src/core/cli.d.ts.map +0 -1
- package/apps/app-training/src/core/cli.js +0 -302
- package/apps/app-training/src/core/context-audit.d.ts +0 -51
- package/apps/app-training/src/core/context-audit.d.ts.map +0 -1
- package/apps/app-training/src/core/context-audit.js +0 -141
- package/apps/app-training/src/core/context-catalog.d.ts +0 -47
- package/apps/app-training/src/core/context-catalog.d.ts.map +0 -1
- package/apps/app-training/src/core/context-catalog.js +0 -259
- package/apps/app-training/src/core/context-types.d.ts +0 -3
- package/apps/app-training/src/core/context-types.d.ts.map +0 -1
- package/apps/app-training/src/core/context-types.js +0 -11
- package/apps/app-training/src/core/dataset-generator.d.ts +0 -135
- package/apps/app-training/src/core/dataset-generator.d.ts.map +0 -1
- package/apps/app-training/src/core/dataset-generator.js +0 -703
- package/apps/app-training/src/core/replay-validator.d.ts +0 -96
- package/apps/app-training/src/core/replay-validator.d.ts.map +0 -1
- package/apps/app-training/src/core/replay-validator.js +0 -265
- package/apps/app-training/src/core/roleplay-executor.d.ts +0 -123
- package/apps/app-training/src/core/roleplay-executor.d.ts.map +0 -1
- package/apps/app-training/src/core/roleplay-executor.js +0 -645
- package/apps/app-training/src/core/roleplay-trajectories.d.ts +0 -54
- package/apps/app-training/src/core/roleplay-trajectories.d.ts.map +0 -1
- package/apps/app-training/src/core/roleplay-trajectories.js +0 -73
- package/apps/app-training/src/core/scenario-blueprints.d.ts +0 -62
- package/apps/app-training/src/core/scenario-blueprints.d.ts.map +0 -1
- package/apps/app-training/src/core/scenario-blueprints.js +0 -790
- package/apps/app-training/src/core/trajectory-task-datasets.d.ts +0 -38
- package/apps/app-training/src/core/trajectory-task-datasets.d.ts.map +0 -1
- package/apps/app-training/src/core/trajectory-task-datasets.js +0 -281
- package/apps/app-training/src/core/vertex-tuning.d.ts +0 -139
- package/apps/app-training/src/core/vertex-tuning.d.ts.map +0 -1
- package/apps/app-training/src/core/vertex-tuning.js +0 -234
- package/packages/agent/src/inbox/channel-deep-links.d.ts.map +0 -1
- package/packages/agent/src/inbox/config.d.ts.map +0 -1
- package/packages/agent/src/inbox/message-fetcher.d.ts.map +0 -1
- package/packages/agent/src/inbox/reflection.d.ts.map +0 -1
- package/packages/agent/src/inbox/repository.d.ts.map +0 -1
- package/packages/agent/src/inbox/triage-classifier.d.ts.map +0 -1
- package/packages/agent/src/inbox/types.d.ts.map +0 -1
- package/packages/agent/src/training/cli.d.ts +0 -2
- package/packages/agent/src/training/cli.d.ts.map +0 -1
- package/packages/agent/src/training/cli.js +0 -2
- package/packages/agent/src/training/context-audit.d.ts +0 -2
- package/packages/agent/src/training/context-audit.d.ts.map +0 -1
- package/packages/agent/src/training/context-audit.js +0 -2
- package/packages/agent/src/training/context-catalog.d.ts +0 -2
- package/packages/agent/src/training/context-catalog.d.ts.map +0 -1
- package/packages/agent/src/training/context-catalog.js +0 -2
- package/packages/agent/src/training/context-types.d.ts +0 -2
- package/packages/agent/src/training/context-types.d.ts.map +0 -1
- package/packages/agent/src/training/context-types.js +0 -2
- package/packages/agent/src/training/dataset-generator.d.ts +0 -2
- package/packages/agent/src/training/dataset-generator.d.ts.map +0 -1
- package/packages/agent/src/training/dataset-generator.js +0 -2
- package/packages/agent/src/training/replay-validator.d.ts +0 -2
- package/packages/agent/src/training/replay-validator.d.ts.map +0 -1
- package/packages/agent/src/training/replay-validator.js +0 -2
- package/packages/agent/src/training/roleplay-executor.d.ts +0 -2
- package/packages/agent/src/training/roleplay-executor.d.ts.map +0 -1
- package/packages/agent/src/training/roleplay-executor.js +0 -2
- package/packages/agent/src/training/roleplay-trajectories.d.ts +0 -2
- package/packages/agent/src/training/roleplay-trajectories.d.ts.map +0 -1
- package/packages/agent/src/training/roleplay-trajectories.js +0 -2
- package/packages/agent/src/training/scenario-blueprints.d.ts +0 -2
- package/packages/agent/src/training/scenario-blueprints.d.ts.map +0 -1
- package/packages/agent/src/training/scenario-blueprints.js +0 -2
- package/packages/agent/src/training/trajectory-task-datasets.d.ts +0 -2
- package/packages/agent/src/training/trajectory-task-datasets.d.ts.map +0 -1
- package/packages/agent/src/training/trajectory-task-datasets.js +0 -2
- package/packages/agent/src/training/vertex-tuning.d.ts +0 -2
- package/packages/agent/src/training/vertex-tuning.d.ts.map +0 -1
- package/packages/agent/src/training/vertex-tuning.js +0 -2
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.d.ts +0 -41
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.js +0 -443
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.d.ts +0 -34
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.js +0 -171
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.js +0 -55
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.js +0 -214
- package/packages/typescript/src/features/orchestrator/actions/list-agents.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/actions/list-agents.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/list-agents.js +0 -174
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.js +0 -428
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.js +0 -189
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.js +0 -265
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.js +0 -356
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.js +0 -270
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.js +0 -192
- package/packages/typescript/src/features/orchestrator/actions/task-control.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-control.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-control.js +0 -217
- package/packages/typescript/src/features/orchestrator/actions/task-history.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-history.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-history.js +0 -323
- package/packages/typescript/src/features/orchestrator/actions/task-share.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-share.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-share.js +0 -168
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.js +0 -68
- package/packages/typescript/src/features/orchestrator/api/agent-routes.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/api/agent-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/agent-routes.js +0 -654
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.js +0 -403
- package/packages/typescript/src/features/orchestrator/api/hook-routes.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/api/hook-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/hook-routes.js +0 -164
- package/packages/typescript/src/features/orchestrator/api/issue-routes.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/api/issue-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/issue-routes.js +0 -132
- package/packages/typescript/src/features/orchestrator/api/routes.d.ts +0 -37
- package/packages/typescript/src/features/orchestrator/api/routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/routes.js +0 -96
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.js +0 -149
- package/packages/typescript/src/features/orchestrator/base-plugin.d.ts +0 -19
- package/packages/typescript/src/features/orchestrator/base-plugin.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/base-plugin.js +0 -75
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.d.ts +0 -101
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.js +0 -310
- package/packages/typescript/src/features/orchestrator/index.d.ts +0 -33
- package/packages/typescript/src/features/orchestrator/index.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/index.js +0 -30
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.d.ts +0 -15
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.js +0 -1449
- package/packages/typescript/src/features/orchestrator/providers/action-examples.d.ts +0 -14
- package/packages/typescript/src/features/orchestrator/providers/action-examples.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/providers/action-examples.js +0 -151
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.js +0 -142
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.d.ts +0 -6
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.js +0 -91
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.d.ts +0 -30
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.js +0 -54
- package/packages/typescript/src/features/orchestrator/services/agent-selection.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/agent-selection.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-selection.js +0 -70
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.d.ts +0 -61
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.js +0 -252
- package/packages/typescript/src/features/orchestrator/services/config-env.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/services/config-env.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/config-env.js +0 -37
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts +0 -50
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.js +0 -184
- package/packages/typescript/src/features/orchestrator/services/debug-capture.d.ts +0 -38
- package/packages/typescript/src/features/orchestrator/services/debug-capture.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/debug-capture.js +0 -113
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.d.ts +0 -30
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.js +0 -146
- package/packages/typescript/src/features/orchestrator/services/pty-init.d.ts +0 -54
- package/packages/typescript/src/features/orchestrator/services/pty-init.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-init.js +0 -315
- package/packages/typescript/src/features/orchestrator/services/pty-service.d.ts +0 -175
- package/packages/typescript/src/features/orchestrator/services/pty-service.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-service.js +0 -1469
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.d.ts +0 -49
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.js +0 -180
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.js +0 -280
- package/packages/typescript/src/features/orchestrator/services/pty-types.d.ts +0 -80
- package/packages/typescript/src/features/orchestrator/services/pty-types.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-types.js +0 -51
- package/packages/typescript/src/features/orchestrator/services/repo-input.d.ts +0 -16
- package/packages/typescript/src/features/orchestrator/services/repo-input.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/repo-input.js +0 -88
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.d.ts +0 -69
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.js +0 -446
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.d.ts +0 -97
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.js +0 -342
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.d.ts +0 -421
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.js +0 -2356
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.d.ts +0 -52
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.js +0 -1538
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.d.ts +0 -49
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.js +0 -171
- package/packages/typescript/src/features/orchestrator/services/swarm-history.d.ts +0 -27
- package/packages/typescript/src/features/orchestrator/services/swarm-history.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-history.js +0 -148
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.js +0 -265
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.d.ts +0 -8
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.js +0 -114
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.d.ts +0 -68
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.js +0 -559
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.d.ts +0 -82
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.js +0 -738
- package/packages/typescript/src/features/orchestrator/services/task-kind.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/services/task-kind.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-kind.js +0 -40
- package/packages/typescript/src/features/orchestrator/services/task-policy.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/services/task-policy.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-policy.js +0 -226
- package/packages/typescript/src/features/orchestrator/services/task-registry.d.ts +0 -550
- package/packages/typescript/src/features/orchestrator/services/task-registry.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-registry.js +0 -2182
- package/packages/typescript/src/features/orchestrator/services/task-share.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/services/task-share.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-share.js +0 -159
- package/packages/typescript/src/features/orchestrator/services/task-validation.d.ts +0 -69
- package/packages/typescript/src/features/orchestrator/services/task-validation.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-validation.js +0 -587
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.d.ts +0 -5
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.js +0 -372
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.d.ts +0 -73
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.js +0 -64
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.js +0 -260
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.d.ts +0 -28
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.js +0 -105
- package/packages/typescript/src/features/orchestrator/services/workspace-github.d.ts +0 -58
- package/packages/typescript/src/features/orchestrator/services/workspace-github.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-github.js +0 -139
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.js +0 -86
- package/packages/typescript/src/features/orchestrator/services/workspace-service.d.ts +0 -118
- package/packages/typescript/src/features/orchestrator/services/workspace-service.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-service.js +0 -533
- package/packages/typescript/src/features/orchestrator/services/workspace-types.d.ts +0 -81
- package/packages/typescript/src/features/orchestrator/services/workspace-types.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-types.js +0 -8
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.d.ts +0 -38
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.js +0 -293
- /package/{packages/agent → apps/app-lifeops}/src/inbox/channel-deep-links.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/channel-deep-links.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/config.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/message-fetcher.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/message-fetcher.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/reflection.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/reflection.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/repository.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/repository.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/triage-classifier.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/triage-classifier.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/types.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/types.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinator-live-runner.d.ts","sourceRoot":"","sources":["../../../../../src/evals/coordinator-live-runner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coordinator-live-runner.d.ts","sourceRoot":"","sources":["../../../../../src/evals/coordinator-live-runner.ts"],"names":[],"mappings":"AAAA,cAAc,6DAA6D,CAAC"}
|
|
@@ -1,546 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { mkdir, readdir, stat, writeFile } from "node:fs/promises";
|
|
3
|
-
import path from "node:path";
|
|
4
|
-
import { promisify } from "node:util";
|
|
5
|
-
import { CoordinatorEvalClient, resolveCoordinatorEvalBaseUrl, } from "./coordinator-eval-client.js";
|
|
6
|
-
import { runCoordinatorPreflight, } from "./coordinator-preflight.js";
|
|
7
|
-
import { listCoordinatorScenarios, } from "./coordinator-scenarios.js";
|
|
8
|
-
const execFileAsync = promisify(execFile);
|
|
9
|
-
const URL_RE = /\bhttps?:\/\/\S+/i;
|
|
10
|
-
const ABSOLUTE_PATH_RE = /(?:^|\s)(\/[A-Za-z0-9._\-~/]+(?:\/[A-Za-z0-9._\-~]+)+)/;
|
|
11
|
-
const DEFAULT_SCENARIO_TIMEOUT_MS = 180_000;
|
|
12
|
-
const TURN_SETTLE_MS = 1_500;
|
|
13
|
-
function generateBatchId() {
|
|
14
|
-
return `coordinator-eval-${new Date().toISOString().replace(/[:.]/g, "-")}`;
|
|
15
|
-
}
|
|
16
|
-
function defaultOutputRoot() {
|
|
17
|
-
return path.join(process.cwd(), ".tmp", "coordinator-evals");
|
|
18
|
-
}
|
|
19
|
-
function delay(ms) {
|
|
20
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
21
|
-
}
|
|
22
|
-
function perTurnTimeoutMs(totalTimeoutMs) {
|
|
23
|
-
return Math.max(1_000, Math.floor(totalTimeoutMs / 2));
|
|
24
|
-
}
|
|
25
|
-
function channelMessageSource(channel) {
|
|
26
|
-
return channel === "app_chat" ? "client_chat" : channel;
|
|
27
|
-
}
|
|
28
|
-
function allCoordinatorChannels(preflight) {
|
|
29
|
-
const channels = [
|
|
30
|
-
"app_chat",
|
|
31
|
-
...preflight.supportedConnectors,
|
|
32
|
-
];
|
|
33
|
-
return uniqueChannels(channels);
|
|
34
|
-
}
|
|
35
|
-
function getCheck(preflight, id) {
|
|
36
|
-
return preflight.checks.find((check) => check.id === id);
|
|
37
|
-
}
|
|
38
|
-
function uniqueChannels(channels) {
|
|
39
|
-
return channels.filter((channel, index) => channels.indexOf(channel) === index);
|
|
40
|
-
}
|
|
41
|
-
function scenarioNeedsTaskThread(scenario) {
|
|
42
|
-
return scenario.requiredCapabilities.some((capability) => [
|
|
43
|
-
"create_task",
|
|
44
|
-
"repo_tasking",
|
|
45
|
-
"task_execution",
|
|
46
|
-
"pause_task",
|
|
47
|
-
"resume_task",
|
|
48
|
-
"stop_task",
|
|
49
|
-
"archive_task",
|
|
50
|
-
"reopen_task",
|
|
51
|
-
"multi_agent_coordination",
|
|
52
|
-
"live_provider_execution",
|
|
53
|
-
].includes(capability));
|
|
54
|
-
}
|
|
55
|
-
function scenarioNeedsArtifacts(scenario) {
|
|
56
|
-
return scenario.requiredCapabilities.some((capability) => [
|
|
57
|
-
"artifact_visibility",
|
|
58
|
-
"preview_visibility",
|
|
59
|
-
"artifact_lookup",
|
|
60
|
-
"artifact_reporting",
|
|
61
|
-
"share_discovery",
|
|
62
|
-
"report_generation",
|
|
63
|
-
"bundle_export",
|
|
64
|
-
"worktree_artifacts",
|
|
65
|
-
].includes(capability));
|
|
66
|
-
}
|
|
67
|
-
function scenarioNeedsChangedFiles(scenario) {
|
|
68
|
-
return scenario.requiredCapabilities.some((capability) => [
|
|
69
|
-
"create_task",
|
|
70
|
-
"iterative_editing",
|
|
71
|
-
"repo_tasking",
|
|
72
|
-
"worktree_artifacts",
|
|
73
|
-
"multi_agent_coordination",
|
|
74
|
-
].includes(capability));
|
|
75
|
-
}
|
|
76
|
-
function scenarioNeedsSingleThread(scenario) {
|
|
77
|
-
return scenario.requiredCapabilities.some((capability) => ["continue_task", "resume_task"].includes(capability));
|
|
78
|
-
}
|
|
79
|
-
function responseLooksShareable(text) {
|
|
80
|
-
return URL_RE.test(text) || ABSOLUTE_PATH_RE.test(text);
|
|
81
|
-
}
|
|
82
|
-
function trajectoryGrouping(trajectory) {
|
|
83
|
-
const metadata = trajectory.metadata && typeof trajectory.metadata === "object"
|
|
84
|
-
? trajectory.metadata
|
|
85
|
-
: {};
|
|
86
|
-
return {
|
|
87
|
-
scenarioId: trajectory.scenarioId ??
|
|
88
|
-
(typeof metadata.scenarioId === "string"
|
|
89
|
-
? metadata.scenarioId
|
|
90
|
-
: undefined),
|
|
91
|
-
batchId: trajectory.batchId ??
|
|
92
|
-
(typeof metadata.batchId === "string" ? metadata.batchId : undefined),
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
async function listFilesRecursively(root, limit = 200) {
|
|
96
|
-
const files = [];
|
|
97
|
-
const queue = [root];
|
|
98
|
-
while (queue.length > 0 && files.length < limit) {
|
|
99
|
-
const current = queue.shift();
|
|
100
|
-
if (!current)
|
|
101
|
-
continue;
|
|
102
|
-
try {
|
|
103
|
-
const entries = await readdir(current, {
|
|
104
|
-
withFileTypes: true,
|
|
105
|
-
encoding: "utf8",
|
|
106
|
-
});
|
|
107
|
-
for (const entry of entries) {
|
|
108
|
-
if (files.length >= limit)
|
|
109
|
-
break;
|
|
110
|
-
const nextPath = path.join(current, entry.name);
|
|
111
|
-
if (entry.isDirectory()) {
|
|
112
|
-
if (entry.name === ".git" || entry.name === "node_modules")
|
|
113
|
-
continue;
|
|
114
|
-
queue.push(nextPath);
|
|
115
|
-
}
|
|
116
|
-
else if (entry.isFile()) {
|
|
117
|
-
files.push(nextPath);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
catch { }
|
|
122
|
-
}
|
|
123
|
-
return files;
|
|
124
|
-
}
|
|
125
|
-
async function collectChangedFilesForWorkdir(workdir) {
|
|
126
|
-
try {
|
|
127
|
-
const result = await execFileAsync("git", ["-C", workdir, "status", "--short"], {
|
|
128
|
-
timeout: 10_000,
|
|
129
|
-
});
|
|
130
|
-
const files = result.stdout
|
|
131
|
-
.split("\n")
|
|
132
|
-
.map((line) => line.trim())
|
|
133
|
-
.filter(Boolean)
|
|
134
|
-
.map((line) => line.replace(/^[A-Z? ]+\s+/, ""))
|
|
135
|
-
.filter(Boolean);
|
|
136
|
-
return { workdir, git: true, files };
|
|
137
|
-
}
|
|
138
|
-
catch {
|
|
139
|
-
return {
|
|
140
|
-
workdir,
|
|
141
|
-
git: false,
|
|
142
|
-
files: await listFilesRecursively(workdir, 100),
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
async function waitForEvidence(loader, predicate, timeoutMs, intervalMs = 2_000) {
|
|
147
|
-
const startedAt = Date.now();
|
|
148
|
-
let lastValue = await loader();
|
|
149
|
-
while (Date.now() - startedAt < timeoutMs) {
|
|
150
|
-
if (predicate(lastValue)) {
|
|
151
|
-
return lastValue;
|
|
152
|
-
}
|
|
153
|
-
await delay(intervalMs);
|
|
154
|
-
lastValue = await loader();
|
|
155
|
-
}
|
|
156
|
-
return lastValue;
|
|
157
|
-
}
|
|
158
|
-
async function ensureTrajectoryLoggingEnabled(client) {
|
|
159
|
-
const config = await client.requestJson("/api/trajectories/config");
|
|
160
|
-
if (config.enabled === true)
|
|
161
|
-
return;
|
|
162
|
-
await client.requestJson("/api/trajectories/config", {
|
|
163
|
-
method: "PUT",
|
|
164
|
-
body: { enabled: true },
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
function evaluatePreflight(params) {
|
|
168
|
-
const { preflight, requestedChannels, selectedScenarios } = params;
|
|
169
|
-
const usableChannels = requestedChannels.filter((channel) => preflight.availableChannels.includes(channel));
|
|
170
|
-
const skippedChannels = requestedChannels
|
|
171
|
-
.filter((channel) => !preflight.availableChannels.includes(channel))
|
|
172
|
-
.map((channel) => ({
|
|
173
|
-
channel,
|
|
174
|
-
reason: `Channel ${channel} is not configured or not currently available in Eliza.`,
|
|
175
|
-
}));
|
|
176
|
-
const runnableFrameworks = ["codex", "claude"].filter((frameworkId) => getCheck(preflight, `framework-${frameworkId}`)?.status === "pass");
|
|
177
|
-
const hardBlockers = [];
|
|
178
|
-
const apiCheck = getCheck(preflight, "eliza-api");
|
|
179
|
-
if (apiCheck?.status === "fail") {
|
|
180
|
-
hardBlockers.push({
|
|
181
|
-
id: apiCheck.id,
|
|
182
|
-
summary: apiCheck.summary,
|
|
183
|
-
...(apiCheck.details ? { details: apiCheck.details } : {}),
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
if (usableChannels.length === 0) {
|
|
187
|
-
hardBlockers.push({
|
|
188
|
-
id: "usable-channels",
|
|
189
|
-
summary: "None of the requested channels are available for this live batch.",
|
|
190
|
-
details: {
|
|
191
|
-
requestedChannels,
|
|
192
|
-
availableChannels: preflight.availableChannels,
|
|
193
|
-
},
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
if (selectedScenarios.some((scenario) => scenarioNeedsTaskThread(scenario)) &&
|
|
197
|
-
runnableFrameworks.length === 0) {
|
|
198
|
-
hardBlockers.push({
|
|
199
|
-
id: "task-frameworks",
|
|
200
|
-
summary: "No runnable coordinator task-execution framework is available for scenarios that require live task work.",
|
|
201
|
-
details: {
|
|
202
|
-
frameworkChecks: preflight.checks.filter((check) => check.id.startsWith("framework-")),
|
|
203
|
-
},
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
const recordedFailures = preflight.checks
|
|
207
|
-
.filter((check) => check.status === "fail")
|
|
208
|
-
.filter((check) => !hardBlockers.some((blocker) => blocker.id === check.id))
|
|
209
|
-
.map((check) => ({
|
|
210
|
-
id: check.id,
|
|
211
|
-
summary: check.summary,
|
|
212
|
-
...(check.details ? { details: check.details } : {}),
|
|
213
|
-
}));
|
|
214
|
-
const warnings = preflight.checks
|
|
215
|
-
.filter((check) => check.status === "warn")
|
|
216
|
-
.map((check) => ({
|
|
217
|
-
id: check.id,
|
|
218
|
-
summary: check.summary,
|
|
219
|
-
...(check.details ? { details: check.details } : {}),
|
|
220
|
-
}));
|
|
221
|
-
return {
|
|
222
|
-
requestedChannels,
|
|
223
|
-
usableChannels,
|
|
224
|
-
skippedChannels,
|
|
225
|
-
runnableFrameworks,
|
|
226
|
-
hardBlockers,
|
|
227
|
-
recordedFailures,
|
|
228
|
-
warnings,
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
function scenarioOutputDir(outputRoot, batchId, scenarioId, channel) {
|
|
232
|
-
return path.join(outputRoot, batchId, `${scenarioId}-${channel}`);
|
|
233
|
-
}
|
|
234
|
-
async function gatherScenarioEvidence(params) {
|
|
235
|
-
const { client, scenario, channel, batchId, conversationId, outputDir, timeoutMs, } = params;
|
|
236
|
-
await mkdir(outputDir, { recursive: true });
|
|
237
|
-
const trajectoriesResult = await waitForEvidence(() => client.requestJson(`/api/trajectories?limit=200&scenarioId=${encodeURIComponent(scenario.id)}&batchId=${encodeURIComponent(batchId)}`), (value) => Array.isArray(value.trajectories) && value.trajectories.length > 0, Math.max(30_000, Math.floor(timeoutMs / 2)));
|
|
238
|
-
const trajectories = Array.isArray(trajectoriesResult.trajectories)
|
|
239
|
-
? trajectoriesResult.trajectories
|
|
240
|
-
: [];
|
|
241
|
-
const loadThreads = () => client.requestJson(`/api/coding-agents/coordinator/threads?includeArchived=true&scenarioId=${encodeURIComponent(scenario.id)}&batchId=${encodeURIComponent(batchId)}&limit=50`);
|
|
242
|
-
const threads = scenarioNeedsTaskThread(scenario)
|
|
243
|
-
? await waitForEvidence(loadThreads, (value) => Array.isArray(value) && value.length > 0, Math.max(30_000, Math.floor(timeoutMs / 2)))
|
|
244
|
-
: await loadThreads();
|
|
245
|
-
const threadCountResponse = await waitForEvidence(() => client.requestJson(`/api/coding-agents/coordinator/threads/count?includeArchived=true&scenarioId=${encodeURIComponent(scenario.id)}&batchId=${encodeURIComponent(batchId)}`), (value) => !scenarioNeedsTaskThread(scenario) ||
|
|
246
|
-
(typeof value.total === "number" && value.total > 0), Math.max(30_000, Math.floor(timeoutMs / 2)));
|
|
247
|
-
const threadDetails = [];
|
|
248
|
-
for (const thread of threads) {
|
|
249
|
-
const detail = await client.requestJson(`/api/coding-agents/coordinator/threads/${encodeURIComponent(thread.id)}`);
|
|
250
|
-
threadDetails.push(detail);
|
|
251
|
-
}
|
|
252
|
-
const shareDetails = [];
|
|
253
|
-
if (scenarioNeedsArtifacts(scenario)) {
|
|
254
|
-
for (const thread of threadDetails) {
|
|
255
|
-
try {
|
|
256
|
-
const share = await client.requestJson(`/api/coding-agents/coordinator/threads/${encodeURIComponent(thread.id)}/share`);
|
|
257
|
-
shareDetails.push(share);
|
|
258
|
-
}
|
|
259
|
-
catch {
|
|
260
|
-
shareDetails.push({
|
|
261
|
-
threadId: thread.id,
|
|
262
|
-
shareCapabilities: [],
|
|
263
|
-
preferredTarget: null,
|
|
264
|
-
targets: [],
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
const messages = await client.listConversationMessages(conversationId);
|
|
270
|
-
const trajectoryZip = await client.requestBuffer("/api/trajectories/export", {
|
|
271
|
-
method: "POST",
|
|
272
|
-
body: {
|
|
273
|
-
format: "zip",
|
|
274
|
-
includePrompts: true,
|
|
275
|
-
scenarioId: scenario.id,
|
|
276
|
-
batchId,
|
|
277
|
-
},
|
|
278
|
-
});
|
|
279
|
-
await writeFile(path.join(outputDir, "trajectory-export.zip"), trajectoryZip);
|
|
280
|
-
const changedFiles = [];
|
|
281
|
-
for (const thread of threadDetails) {
|
|
282
|
-
for (const session of thread.sessions ?? []) {
|
|
283
|
-
try {
|
|
284
|
-
const info = await stat(session.workdir);
|
|
285
|
-
if (!info.isDirectory())
|
|
286
|
-
continue;
|
|
287
|
-
changedFiles.push(await collectChangedFilesForWorkdir(session.workdir));
|
|
288
|
-
}
|
|
289
|
-
catch {
|
|
290
|
-
changedFiles.push({
|
|
291
|
-
workdir: session.workdir,
|
|
292
|
-
git: false,
|
|
293
|
-
files: [],
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
const allArtifacts = threadDetails.flatMap((thread) => thread.artifacts ?? []);
|
|
299
|
-
const transcriptCount = threadDetails.reduce((sum, thread) => sum + (thread.transcripts?.length ?? 0), 0);
|
|
300
|
-
const responseText = messages
|
|
301
|
-
.map((message) => typeof message.text === "string"
|
|
302
|
-
? message.text
|
|
303
|
-
: typeof message.content?.text === "string"
|
|
304
|
-
? message.content.text
|
|
305
|
-
: "")
|
|
306
|
-
.join("\n");
|
|
307
|
-
const checks = [
|
|
308
|
-
{
|
|
309
|
-
id: "trajectory-logged",
|
|
310
|
-
passed: trajectories.length > 0,
|
|
311
|
-
details: { count: trajectories.length },
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
id: "trajectory-batch-filter",
|
|
315
|
-
passed: trajectories.every((trajectory) => {
|
|
316
|
-
const grouping = trajectoryGrouping(trajectory);
|
|
317
|
-
return (grouping.scenarioId === scenario.id && grouping.batchId === batchId);
|
|
318
|
-
}),
|
|
319
|
-
details: {
|
|
320
|
-
sources: trajectories.map((trajectory) => trajectory.source ?? "unknown"),
|
|
321
|
-
},
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
id: "connector-source",
|
|
325
|
-
passed: channel === "app_chat"
|
|
326
|
-
? true
|
|
327
|
-
: trajectories.some((trajectory) => trajectory.source === channel),
|
|
328
|
-
details: { channel },
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
id: "db-count-match",
|
|
332
|
-
passed: (threadCountResponse.total ?? 0) === threadDetails.length,
|
|
333
|
-
details: {
|
|
334
|
-
countRoute: threadCountResponse.total ?? 0,
|
|
335
|
-
listCount: threadDetails.length,
|
|
336
|
-
},
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
id: "thread-batch-filter",
|
|
340
|
-
passed: threadDetails.every((thread) => thread.scenarioId === scenario.id && thread.batchId === batchId),
|
|
341
|
-
details: {
|
|
342
|
-
threadIds: threadDetails.map((thread) => thread.id),
|
|
343
|
-
},
|
|
344
|
-
},
|
|
345
|
-
];
|
|
346
|
-
if (scenarioNeedsTaskThread(scenario)) {
|
|
347
|
-
checks.push({
|
|
348
|
-
id: "task-thread-created",
|
|
349
|
-
passed: threadDetails.length > 0,
|
|
350
|
-
details: { count: threadDetails.length },
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
if (scenarioNeedsSingleThread(scenario) && threadDetails.length > 0) {
|
|
354
|
-
checks.push({
|
|
355
|
-
id: "thread-reuse",
|
|
356
|
-
passed: new Set(threadDetails.map((thread) => thread.id)).size === 1,
|
|
357
|
-
details: { threadIds: threadDetails.map((thread) => thread.id) },
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
|
-
if (scenarioNeedsArtifacts(scenario)) {
|
|
361
|
-
checks.push({
|
|
362
|
-
id: "artifacts-or-shareable-response",
|
|
363
|
-
passed: allArtifacts.length > 0 ||
|
|
364
|
-
shareDetails.some((detail) => (detail.targets?.length ?? 0) > 0) ||
|
|
365
|
-
responseLooksShareable(responseText),
|
|
366
|
-
details: {
|
|
367
|
-
artifactCount: allArtifacts.length,
|
|
368
|
-
shareTargets: shareDetails.reduce((sum, detail) => sum + (detail.targets?.length ?? 0), 0),
|
|
369
|
-
responsePreview: responseText.slice(0, 300),
|
|
370
|
-
},
|
|
371
|
-
});
|
|
372
|
-
}
|
|
373
|
-
if (scenarioNeedsTaskThread(scenario)) {
|
|
374
|
-
checks.push({
|
|
375
|
-
id: "transcript-captured",
|
|
376
|
-
passed: transcriptCount > 0,
|
|
377
|
-
details: { transcriptCount },
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
if (scenarioNeedsChangedFiles(scenario)) {
|
|
381
|
-
const changedFileCount = changedFiles.reduce((sum, item) => sum + item.files.length, 0);
|
|
382
|
-
checks.push({
|
|
383
|
-
id: "changed-files",
|
|
384
|
-
passed: changedFileCount > 0,
|
|
385
|
-
details: { changedFileCount },
|
|
386
|
-
});
|
|
387
|
-
}
|
|
388
|
-
await client.writeJson(path.join(outputDir, "conversation.json"), messages);
|
|
389
|
-
await client.writeJson(path.join(outputDir, "threads.json"), threadDetails);
|
|
390
|
-
await client.writeJson(path.join(outputDir, "artifacts.json"), allArtifacts);
|
|
391
|
-
await client.writeJson(path.join(outputDir, "shares.json"), shareDetails);
|
|
392
|
-
await client.writeJson(path.join(outputDir, "changed-files.json"), changedFiles);
|
|
393
|
-
await client.writeJson(path.join(outputDir, "trajectories.json"), trajectories);
|
|
394
|
-
await client.writeJson(path.join(outputDir, "db-assertions.json"), {
|
|
395
|
-
scenarioId: scenario.id,
|
|
396
|
-
batchId,
|
|
397
|
-
threadCountRoute: threadCountResponse.total ?? 0,
|
|
398
|
-
threadCountList: threadDetails.length,
|
|
399
|
-
trajectoryCount: trajectories.length,
|
|
400
|
-
transcriptCount,
|
|
401
|
-
groupedThreads: threadDetails.every((thread) => thread.scenarioId === scenario.id && thread.batchId === batchId),
|
|
402
|
-
groupedTrajectories: trajectories.every((trajectory) => {
|
|
403
|
-
const grouping = trajectoryGrouping(trajectory);
|
|
404
|
-
return (grouping.scenarioId === scenario.id && grouping.batchId === batchId);
|
|
405
|
-
}),
|
|
406
|
-
});
|
|
407
|
-
await client.writeJson(path.join(outputDir, "checks.json"), checks);
|
|
408
|
-
return {
|
|
409
|
-
batchId,
|
|
410
|
-
scenarioId: scenario.id,
|
|
411
|
-
channel,
|
|
412
|
-
conversationId,
|
|
413
|
-
outputDir,
|
|
414
|
-
responses: [],
|
|
415
|
-
trajectoryIds: trajectories.map((trajectory) => trajectory.id),
|
|
416
|
-
threadIds: threadDetails.map((thread) => thread.id),
|
|
417
|
-
checks,
|
|
418
|
-
passed: checks.every((check) => check.passed),
|
|
419
|
-
};
|
|
420
|
-
}
|
|
421
|
-
export async function runCoordinatorLiveScenarios(options = {}) {
|
|
422
|
-
const baseUrl = resolveCoordinatorEvalBaseUrl(options.baseUrl);
|
|
423
|
-
const outputRoot = options.outputRoot?.trim() || defaultOutputRoot();
|
|
424
|
-
const batchId = options.batchId?.trim() || generateBatchId();
|
|
425
|
-
const client = new CoordinatorEvalClient(baseUrl);
|
|
426
|
-
const preflight = await runCoordinatorPreflight({ baseUrl });
|
|
427
|
-
const selectedScenarios = listCoordinatorScenarios(options.profile ?? "full").filter((scenario) => options.scenarioIds?.length
|
|
428
|
-
? options.scenarioIds.includes(scenario.id)
|
|
429
|
-
: true);
|
|
430
|
-
if (selectedScenarios.length === 0) {
|
|
431
|
-
throw new Error("No coordinator scenarios matched the requested filters.");
|
|
432
|
-
}
|
|
433
|
-
const requestedChannels = uniqueChannels(options.channels && options.channels.length > 0
|
|
434
|
-
? options.channels
|
|
435
|
-
: allCoordinatorChannels(preflight));
|
|
436
|
-
const scenarioTimeoutMs = options.scenarioTimeoutMs ?? DEFAULT_SCENARIO_TIMEOUT_MS;
|
|
437
|
-
const turnTimeoutMs = perTurnTimeoutMs(scenarioTimeoutMs);
|
|
438
|
-
const runs = [];
|
|
439
|
-
await mkdir(path.join(outputRoot, batchId), { recursive: true });
|
|
440
|
-
await client.writeJson(path.join(outputRoot, batchId, "preflight.json"), preflight);
|
|
441
|
-
const preflightEvaluation = evaluatePreflight({
|
|
442
|
-
preflight,
|
|
443
|
-
requestedChannels,
|
|
444
|
-
selectedScenarios,
|
|
445
|
-
});
|
|
446
|
-
await client.writeJson(path.join(outputRoot, batchId, "preflight-evaluation.json"), {
|
|
447
|
-
...preflightEvaluation,
|
|
448
|
-
selectedScenarioIds: selectedScenarios.map((scenario) => scenario.id),
|
|
449
|
-
});
|
|
450
|
-
if (preflightEvaluation.hardBlockers.length > 0) {
|
|
451
|
-
throw new Error(`Coordinator eval preflight failed: ${preflightEvaluation.hardBlockers
|
|
452
|
-
.map((blocker) => `${blocker.id}: ${blocker.summary}`)
|
|
453
|
-
.join("; ")}`);
|
|
454
|
-
}
|
|
455
|
-
await ensureTrajectoryLoggingEnabled(client);
|
|
456
|
-
for (const scenario of selectedScenarios) {
|
|
457
|
-
for (const channel of preflightEvaluation.usableChannels) {
|
|
458
|
-
if (!scenario.channels.includes(channel))
|
|
459
|
-
continue;
|
|
460
|
-
let conversation;
|
|
461
|
-
try {
|
|
462
|
-
conversation = await client.createConversation(`[eval:${batchId}] ${scenario.id} ${channel} ${scenario.title}`, turnTimeoutMs);
|
|
463
|
-
}
|
|
464
|
-
catch (error) {
|
|
465
|
-
throw new Error(`Scenario ${scenario.id} could not create a conversation on ${channel}: ${error instanceof Error ? error.message : String(error)}`);
|
|
466
|
-
}
|
|
467
|
-
const outputDir = scenarioOutputDir(outputRoot, batchId, scenario.id, channel);
|
|
468
|
-
const responses = [];
|
|
469
|
-
for (const [index, turn] of scenario.turns.entries()) {
|
|
470
|
-
let response;
|
|
471
|
-
try {
|
|
472
|
-
response = await client.postConversationMessage({
|
|
473
|
-
conversationId: conversation.id,
|
|
474
|
-
text: turn.text,
|
|
475
|
-
source: channelMessageSource(channel),
|
|
476
|
-
channelType: "DM",
|
|
477
|
-
timeoutMs: turnTimeoutMs,
|
|
478
|
-
metadata: {
|
|
479
|
-
scenarioId: scenario.id,
|
|
480
|
-
batchId,
|
|
481
|
-
eval: {
|
|
482
|
-
scenarioId: scenario.id,
|
|
483
|
-
batchId,
|
|
484
|
-
channel,
|
|
485
|
-
},
|
|
486
|
-
connectorName: channel === "app_chat" ? null : channel,
|
|
487
|
-
},
|
|
488
|
-
});
|
|
489
|
-
}
|
|
490
|
-
catch (error) {
|
|
491
|
-
throw new Error(`Scenario ${scenario.id} turn ${index + 1} on ${channel} failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
492
|
-
}
|
|
493
|
-
responses.push({
|
|
494
|
-
turn: index + 1,
|
|
495
|
-
prompt: turn.text,
|
|
496
|
-
responseText: response.text,
|
|
497
|
-
});
|
|
498
|
-
await delay(TURN_SETTLE_MS);
|
|
499
|
-
}
|
|
500
|
-
const evidence = await gatherScenarioEvidence({
|
|
501
|
-
client,
|
|
502
|
-
scenario,
|
|
503
|
-
channel,
|
|
504
|
-
batchId,
|
|
505
|
-
conversationId: conversation.id,
|
|
506
|
-
outputDir,
|
|
507
|
-
timeoutMs: scenarioTimeoutMs,
|
|
508
|
-
});
|
|
509
|
-
evidence.responses = responses;
|
|
510
|
-
await client.writeJson(path.join(outputDir, "scenario.json"), scenario);
|
|
511
|
-
await client.writeJson(path.join(outputDir, "responses.json"), responses);
|
|
512
|
-
await client.writeJson(path.join(outputDir, "verdict.json"), {
|
|
513
|
-
passed: evidence.passed,
|
|
514
|
-
checks: evidence.checks,
|
|
515
|
-
});
|
|
516
|
-
runs.push(evidence);
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
await client.writeJson(path.join(outputRoot, batchId, "manifest.json"), {
|
|
520
|
-
batchId,
|
|
521
|
-
baseUrl,
|
|
522
|
-
outputRoot,
|
|
523
|
-
requestedChannels: preflightEvaluation.requestedChannels,
|
|
524
|
-
usableChannels: preflightEvaluation.usableChannels,
|
|
525
|
-
skippedChannels: preflightEvaluation.skippedChannels,
|
|
526
|
-
runnableFrameworks: preflightEvaluation.runnableFrameworks,
|
|
527
|
-
preflightHardBlockers: preflightEvaluation.hardBlockers,
|
|
528
|
-
preflightFailures: preflightEvaluation.recordedFailures,
|
|
529
|
-
preflightWarnings: preflightEvaluation.warnings,
|
|
530
|
-
runs,
|
|
531
|
-
});
|
|
532
|
-
return {
|
|
533
|
-
batchId,
|
|
534
|
-
baseUrl,
|
|
535
|
-
outputRoot,
|
|
536
|
-
preflight,
|
|
537
|
-
requestedChannels: preflightEvaluation.requestedChannels,
|
|
538
|
-
usableChannels: preflightEvaluation.usableChannels,
|
|
539
|
-
skippedChannels: preflightEvaluation.skippedChannels,
|
|
540
|
-
runnableFrameworks: preflightEvaluation.runnableFrameworks,
|
|
541
|
-
preflightHardBlockers: preflightEvaluation.hardBlockers,
|
|
542
|
-
preflightFailures: preflightEvaluation.recordedFailures,
|
|
543
|
-
preflightWarnings: preflightEvaluation.warnings,
|
|
544
|
-
runs,
|
|
545
|
-
};
|
|
546
|
-
}
|
|
1
|
+
export * from "@elizaos/app-task-coordinator/evals/coordinator-live-runner";
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
type PreflightStatus = "pass" | "warn" | "fail";
|
|
3
|
-
export interface CoordinatorPreflightCheck {
|
|
4
|
-
id: string;
|
|
5
|
-
status: PreflightStatus;
|
|
6
|
-
summary: string;
|
|
7
|
-
details?: Record<string, unknown>;
|
|
8
|
-
}
|
|
9
|
-
export interface CoordinatorChannelReadiness {
|
|
10
|
-
channel: CoordinatorEvalChannel;
|
|
11
|
-
connectorKeys: string[];
|
|
12
|
-
configured: boolean;
|
|
13
|
-
configReady: boolean;
|
|
14
|
-
healthStatuses: Record<string, string>;
|
|
15
|
-
available: boolean;
|
|
16
|
-
reason: string;
|
|
17
|
-
}
|
|
18
|
-
export interface CoordinatorPreflightResult {
|
|
19
|
-
ok: boolean;
|
|
20
|
-
baseUrl: string;
|
|
21
|
-
configPath: string;
|
|
22
|
-
availableChannels: CoordinatorEvalChannel[];
|
|
23
|
-
supportedConnectors: CoordinatorEvalChannel[];
|
|
24
|
-
channelReadiness: CoordinatorChannelReadiness[];
|
|
25
|
-
shareCapabilities: string[];
|
|
26
|
-
checks: CoordinatorPreflightCheck[];
|
|
27
|
-
}
|
|
28
|
-
export declare function runCoordinatorPreflight(options?: {
|
|
29
|
-
baseUrl?: string;
|
|
30
|
-
}): Promise<CoordinatorPreflightResult>;
|
|
31
|
-
export {};
|
|
1
|
+
export * from "@elizaos/app-task-coordinator/evals/coordinator-preflight";
|
|
32
2
|
//# sourceMappingURL=coordinator-preflight.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinator-preflight.d.ts","sourceRoot":"","sources":["../../../../../src/evals/coordinator-preflight.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coordinator-preflight.d.ts","sourceRoot":"","sources":["../../../../../src/evals/coordinator-preflight.ts"],"names":[],"mappings":"AAAA,cAAc,2DAA2D,CAAC"}
|