@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,265 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Swarm Coordinator — Idle Watchdog
|
|
3
|
-
*
|
|
4
|
-
* Extracted from swarm-coordinator.ts for modularity.
|
|
5
|
-
* Scans active sessions for idle ones and asks the LLM to assess their state.
|
|
6
|
-
*
|
|
7
|
-
* @module services/swarm-idle-watchdog
|
|
8
|
-
*/
|
|
9
|
-
import { ModelType } from "@elizaos/core";
|
|
10
|
-
import { cleanForChat, stripAnsi } from "./ansi-utils.js";
|
|
11
|
-
import { buildIdleCheckPrompt, parseCoordinationResponse, } from "./swarm-coordinator-prompts.js";
|
|
12
|
-
import { checkAllTasksComplete, executeDecision, } from "./swarm-decision-loop.js";
|
|
13
|
-
import { withTrajectoryContext } from "./trajectory-context.js";
|
|
14
|
-
// ─── Constants ───
|
|
15
|
-
/** How long a session can be idle before the watchdog checks on it (ms). */
|
|
16
|
-
export const IDLE_THRESHOLD_MS = 5 * 60 * 1000; // 5 minutes
|
|
17
|
-
/** Max idle checks before force-escalating a session. */
|
|
18
|
-
export const MAX_IDLE_CHECKS = 4;
|
|
19
|
-
// ─── Idle Watchdog ───
|
|
20
|
-
/**
|
|
21
|
-
* Scan all active sessions for idle ones. Called periodically by the watchdog timer.
|
|
22
|
-
*/
|
|
23
|
-
export async function scanIdleSessions(ctx) {
|
|
24
|
-
const now = Date.now();
|
|
25
|
-
for (const taskCtx of ctx.tasks.values()) {
|
|
26
|
-
if (taskCtx.status !== "active" && taskCtx.status !== "tool_running") {
|
|
27
|
-
continue;
|
|
28
|
-
}
|
|
29
|
-
// Liveness check: if the PTY session no longer exists in the worker
|
|
30
|
-
// (e.g. parent process was SIGKILL'd and restarted), mark it dead.
|
|
31
|
-
if (ctx.ptyService) {
|
|
32
|
-
const session = ctx.ptyService.getSession(taskCtx.sessionId);
|
|
33
|
-
if (!session) {
|
|
34
|
-
ctx.log(`Idle watchdog: "${taskCtx.label}" — PTY session no longer exists, marking as stopped`);
|
|
35
|
-
taskCtx.status = "stopped";
|
|
36
|
-
taskCtx.stoppedAt = now;
|
|
37
|
-
await ctx.recordDecision(taskCtx, {
|
|
38
|
-
timestamp: now,
|
|
39
|
-
event: "idle_watchdog",
|
|
40
|
-
promptText: "PTY session no longer exists",
|
|
41
|
-
decision: "stopped",
|
|
42
|
-
reasoning: "Underlying PTY process is gone (likely killed during restart)",
|
|
43
|
-
});
|
|
44
|
-
ctx.broadcast({
|
|
45
|
-
type: "stopped",
|
|
46
|
-
sessionId: taskCtx.sessionId,
|
|
47
|
-
timestamp: now,
|
|
48
|
-
data: { reason: "pty_session_gone" },
|
|
49
|
-
});
|
|
50
|
-
ctx.sendChatMessage(`[${taskCtx.label}] Session lost — the agent process is no longer running (likely killed during a restart).`, "coding-agent");
|
|
51
|
-
checkAllTasksComplete(ctx);
|
|
52
|
-
continue;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
const idleMs = now - taskCtx.lastActivityAt;
|
|
56
|
-
if (idleMs < IDLE_THRESHOLD_MS)
|
|
57
|
-
continue;
|
|
58
|
-
// Skip if already checking this session
|
|
59
|
-
if (ctx.inFlightDecisions.has(taskCtx.sessionId))
|
|
60
|
-
continue;
|
|
61
|
-
// Check if PTY output has changed since last scan — if data is flowing,
|
|
62
|
-
// the session is active even without named events (e.g. loading spinners).
|
|
63
|
-
// Compare stripped output to ignore TUI cursor movements and redraws
|
|
64
|
-
// that would otherwise fool the watchdog into thinking the session is active.
|
|
65
|
-
if (ctx.ptyService) {
|
|
66
|
-
try {
|
|
67
|
-
const rawOutput = await ctx.ptyService.getSessionOutput(taskCtx.sessionId, 20);
|
|
68
|
-
const currentOutput = stripAnsi(rawOutput).trim();
|
|
69
|
-
const lastSeen = ctx.lastSeenOutput.get(taskCtx.sessionId) ?? "";
|
|
70
|
-
ctx.lastSeenOutput.set(taskCtx.sessionId, currentOutput);
|
|
71
|
-
if (currentOutput !== lastSeen) {
|
|
72
|
-
// Output changed — session is producing data, reset idle state
|
|
73
|
-
taskCtx.lastActivityAt = now;
|
|
74
|
-
taskCtx.idleCheckCount = 0;
|
|
75
|
-
ctx.log(`Idle watchdog: "${taskCtx.label}" has fresh PTY output — not idle`);
|
|
76
|
-
continue;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch {
|
|
80
|
-
// Can't read output — proceed with idle check
|
|
81
|
-
}
|
|
82
|
-
// Even if the visible 20-line tail didn't change, trust the adapter's
|
|
83
|
-
// own "I am busy" signal. TUIs like Codex redraw their status row
|
|
84
|
-
// ("Working (Xs • esc to interrupt)") in place via cursor positioning,
|
|
85
|
-
// so consecutive ANSI-stripped tails can collapse to identical text
|
|
86
|
-
// even while the model is actively reasoning for minutes. The adapter's
|
|
87
|
-
// detectLoading() runs against the full buffer and is the source of
|
|
88
|
-
// truth for "is the agent processing right now".
|
|
89
|
-
try {
|
|
90
|
-
const isLoading = await ctx.ptyService.isSessionLoading(taskCtx.sessionId);
|
|
91
|
-
if (isLoading) {
|
|
92
|
-
taskCtx.lastActivityAt = now;
|
|
93
|
-
taskCtx.idleCheckCount = 0;
|
|
94
|
-
ctx.log(`Idle watchdog: "${taskCtx.label}" adapter reports loading — not idle`);
|
|
95
|
-
continue;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
catch {
|
|
99
|
-
// Fall through to the LLM idle check if we can't query the adapter.
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
taskCtx.idleCheckCount++;
|
|
103
|
-
const idleMinutes = Math.round(idleMs / 60_000);
|
|
104
|
-
ctx.log(`Idle watchdog: "${taskCtx.label}" idle for ${idleMinutes}m (check ${taskCtx.idleCheckCount}/${MAX_IDLE_CHECKS})`);
|
|
105
|
-
if (taskCtx.idleCheckCount >= MAX_IDLE_CHECKS) {
|
|
106
|
-
// Force-stop — too many idle checks with no resolution
|
|
107
|
-
ctx.log(`Idle watchdog: force-stopping "${taskCtx.label}" after ${MAX_IDLE_CHECKS} checks`);
|
|
108
|
-
taskCtx.status = "stopped";
|
|
109
|
-
taskCtx.stoppedAt = now;
|
|
110
|
-
await ctx.recordDecision(taskCtx, {
|
|
111
|
-
timestamp: now,
|
|
112
|
-
event: "idle_watchdog",
|
|
113
|
-
promptText: `Session idle for ${idleMinutes} minutes`,
|
|
114
|
-
decision: "stopped",
|
|
115
|
-
reasoning: `Force-stopped after ${MAX_IDLE_CHECKS} idle checks with no activity`,
|
|
116
|
-
});
|
|
117
|
-
ctx.broadcast({
|
|
118
|
-
type: "stopped",
|
|
119
|
-
sessionId: taskCtx.sessionId,
|
|
120
|
-
timestamp: now,
|
|
121
|
-
data: {
|
|
122
|
-
reason: "idle_watchdog_max_checks",
|
|
123
|
-
idleMinutes,
|
|
124
|
-
idleCheckCount: taskCtx.idleCheckCount,
|
|
125
|
-
},
|
|
126
|
-
});
|
|
127
|
-
ctx.sendChatMessage(`[${taskCtx.label}] Session stopped — idle for ${idleMinutes} minutes with no progress.`, "coding-agent");
|
|
128
|
-
// Force-kill the PTY session — idle timeout means nothing to save.
|
|
129
|
-
if (ctx.ptyService) {
|
|
130
|
-
try {
|
|
131
|
-
await ctx.ptyService.stopSession(taskCtx.sessionId, /* force */ true);
|
|
132
|
-
}
|
|
133
|
-
catch (err) {
|
|
134
|
-
ctx.log(`Idle watchdog: failed to stop session ${taskCtx.sessionId}: ${err}`);
|
|
135
|
-
taskCtx.status = "error";
|
|
136
|
-
await ctx.syncTaskContext(taskCtx);
|
|
137
|
-
ctx.broadcast({
|
|
138
|
-
type: "error",
|
|
139
|
-
sessionId: taskCtx.sessionId,
|
|
140
|
-
timestamp: now,
|
|
141
|
-
data: { message: `Failed to stop idle session: ${err}` },
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
// Check if all tasks are now done
|
|
146
|
-
checkAllTasksComplete(ctx);
|
|
147
|
-
continue;
|
|
148
|
-
}
|
|
149
|
-
// Ask the LLM what's going on
|
|
150
|
-
await handleIdleCheck(ctx, taskCtx, idleMinutes);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Handle an idle session by asking the LLM to assess its state.
|
|
155
|
-
*/
|
|
156
|
-
export async function handleIdleCheck(ctx, taskCtx, idleMinutes) {
|
|
157
|
-
const sessionId = taskCtx.sessionId;
|
|
158
|
-
ctx.inFlightDecisions.add(sessionId);
|
|
159
|
-
try {
|
|
160
|
-
let recentOutput = "";
|
|
161
|
-
if (ctx.ptyService) {
|
|
162
|
-
try {
|
|
163
|
-
const raw = await ctx.ptyService.getSessionOutput(sessionId, 50);
|
|
164
|
-
recentOutput = cleanForChat(raw);
|
|
165
|
-
}
|
|
166
|
-
catch {
|
|
167
|
-
recentOutput = "";
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
const contextSummary = {
|
|
171
|
-
sessionId,
|
|
172
|
-
agentType: taskCtx.agentType,
|
|
173
|
-
label: taskCtx.label,
|
|
174
|
-
originalTask: taskCtx.originalTask,
|
|
175
|
-
workdir: taskCtx.workdir,
|
|
176
|
-
};
|
|
177
|
-
const decisionHistory = taskCtx.decisions
|
|
178
|
-
.filter((d) => d.decision !== "auto_resolved")
|
|
179
|
-
.slice(-5)
|
|
180
|
-
.map((d) => ({
|
|
181
|
-
event: d.event,
|
|
182
|
-
promptText: d.promptText,
|
|
183
|
-
action: d.decision,
|
|
184
|
-
response: d.response,
|
|
185
|
-
reasoning: d.reasoning,
|
|
186
|
-
}));
|
|
187
|
-
const siblings = [];
|
|
188
|
-
for (const [sid, task] of ctx.tasks) {
|
|
189
|
-
if (sid === sessionId)
|
|
190
|
-
continue;
|
|
191
|
-
siblings.push({
|
|
192
|
-
label: task.label,
|
|
193
|
-
agentType: task.agentType,
|
|
194
|
-
originalTask: task.originalTask,
|
|
195
|
-
status: task.status,
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
const prompt = buildIdleCheckPrompt(contextSummary, recentOutput, idleMinutes, taskCtx.idleCheckCount, MAX_IDLE_CHECKS, decisionHistory, siblings, ctx.sharedDecisions, ctx.getSwarmContext());
|
|
199
|
-
let decision = null;
|
|
200
|
-
try {
|
|
201
|
-
const result = await withTrajectoryContext(ctx.runtime, {
|
|
202
|
-
source: "orchestrator",
|
|
203
|
-
decisionType: "idle-check",
|
|
204
|
-
sessionId,
|
|
205
|
-
taskLabel: taskCtx.label,
|
|
206
|
-
repo: taskCtx.repo,
|
|
207
|
-
workdir: taskCtx.workdir,
|
|
208
|
-
originalTask: taskCtx.originalTask,
|
|
209
|
-
}, () => ctx.runtime.useModel(ModelType.TEXT_SMALL, { prompt }));
|
|
210
|
-
decision = parseCoordinationResponse(result);
|
|
211
|
-
}
|
|
212
|
-
catch (err) {
|
|
213
|
-
ctx.log(`Idle check LLM call failed: ${err}`);
|
|
214
|
-
}
|
|
215
|
-
if (!decision) {
|
|
216
|
-
ctx.log(`Idle check for "${taskCtx.label}": LLM returned invalid response — escalating`);
|
|
217
|
-
ctx.sendChatMessage(`[${taskCtx.label}] Session idle for ${idleMinutes}m — couldn't determine status. Needs your attention.`, "coding-agent");
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
|
-
// Record the decision
|
|
221
|
-
await ctx.recordDecision(taskCtx, {
|
|
222
|
-
timestamp: Date.now(),
|
|
223
|
-
event: "idle_watchdog",
|
|
224
|
-
promptText: `Session idle for ${idleMinutes} minutes`,
|
|
225
|
-
decision: decision.action,
|
|
226
|
-
response: decision.action === "respond"
|
|
227
|
-
? decision.useKeys
|
|
228
|
-
? `keys:${decision.keys?.join(",")}`
|
|
229
|
-
: decision.response
|
|
230
|
-
: undefined,
|
|
231
|
-
reasoning: decision.reasoning,
|
|
232
|
-
});
|
|
233
|
-
ctx.broadcast({
|
|
234
|
-
type: "idle_check_decision",
|
|
235
|
-
sessionId,
|
|
236
|
-
timestamp: Date.now(),
|
|
237
|
-
data: {
|
|
238
|
-
action: decision.action,
|
|
239
|
-
idleMinutes,
|
|
240
|
-
idleCheckNumber: taskCtx.idleCheckCount,
|
|
241
|
-
reasoning: decision.reasoning,
|
|
242
|
-
},
|
|
243
|
-
});
|
|
244
|
-
// Send chat message
|
|
245
|
-
if (decision.action === "complete") {
|
|
246
|
-
// executeDecision handles chat + stop for "complete"
|
|
247
|
-
}
|
|
248
|
-
else if (decision.action === "respond") {
|
|
249
|
-
const actionDesc = decision.useKeys
|
|
250
|
-
? `Sent keys: ${decision.keys?.join(", ")}`
|
|
251
|
-
: `Nudged: ${decision.response ?? ""}`;
|
|
252
|
-
ctx.log(`[${taskCtx.label}] Idle for ${idleMinutes}m — ${actionDesc}`);
|
|
253
|
-
}
|
|
254
|
-
else if (decision.action === "escalate") {
|
|
255
|
-
ctx.sendChatMessage(`[${taskCtx.label}] Idle for ${idleMinutes}m — needs your attention: ${decision.reasoning}`, "coding-agent");
|
|
256
|
-
}
|
|
257
|
-
else if (decision.action === "ignore") {
|
|
258
|
-
ctx.log(`Idle check for "${taskCtx.label}": LLM says still working — ${decision.reasoning}`);
|
|
259
|
-
}
|
|
260
|
-
await executeDecision(ctx, sessionId, decision);
|
|
261
|
-
}
|
|
262
|
-
finally {
|
|
263
|
-
ctx.inFlightDecisions.delete(sessionId);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type IAgentRuntime } from "@elizaos/core";
|
|
2
|
-
import type { CreateTaskThreadInput } from "./task-registry.ts";
|
|
3
|
-
export interface TaskAcceptanceCriteriaResult {
|
|
4
|
-
criteria: string[];
|
|
5
|
-
source: "provided" | "model" | "baseline";
|
|
6
|
-
}
|
|
7
|
-
export declare function deriveTaskAcceptanceCriteria(runtime: IAgentRuntime, input: CreateTaskThreadInput): Promise<TaskAcceptanceCriteriaResult>;
|
|
8
|
-
//# sourceMappingURL=task-acceptance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-acceptance.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/services/task-acceptance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,eAAe,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,MAAM,WAAW,4BAA4B;IAC5C,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,UAAU,GAAG,OAAO,GAAG,UAAU,CAAC;CAC1C;AAiGD,wBAAsB,4BAA4B,CACjD,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,qBAAqB,GAC1B,OAAO,CAAC,4BAA4B,CAAC,CAgCvC"}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { ModelType } from "@elizaos/core";
|
|
2
|
-
const MAX_CRITERIA = 7;
|
|
3
|
-
function trimCriterion(value) {
|
|
4
|
-
return value
|
|
5
|
-
.replace(/^[\s*-]+/, "")
|
|
6
|
-
.replace(/\s+/g, " ")
|
|
7
|
-
.trim();
|
|
8
|
-
}
|
|
9
|
-
function uniqueCriteria(values) {
|
|
10
|
-
const seen = new Set();
|
|
11
|
-
const result = [];
|
|
12
|
-
for (const value of values.map(trimCriterion)) {
|
|
13
|
-
if (!value)
|
|
14
|
-
continue;
|
|
15
|
-
const key = value.toLowerCase();
|
|
16
|
-
if (seen.has(key))
|
|
17
|
-
continue;
|
|
18
|
-
seen.add(key);
|
|
19
|
-
result.push(value);
|
|
20
|
-
if (result.length >= MAX_CRITERIA)
|
|
21
|
-
break;
|
|
22
|
-
}
|
|
23
|
-
return result;
|
|
24
|
-
}
|
|
25
|
-
function parseJsonCriteria(raw) {
|
|
26
|
-
const trimmed = raw.trim();
|
|
27
|
-
const fenced = trimmed.match(/```(?:json)?\s*([\s\S]*?)\s*```/i);
|
|
28
|
-
const candidate = (fenced?.[1] ?? trimmed).trim();
|
|
29
|
-
const parsed = JSON.parse(candidate);
|
|
30
|
-
if (!Array.isArray(parsed))
|
|
31
|
-
return [];
|
|
32
|
-
return uniqueCriteria(parsed.filter((entry) => typeof entry === "string"));
|
|
33
|
-
}
|
|
34
|
-
function plannedSubtasks(input) {
|
|
35
|
-
const subtasks = input.currentPlan
|
|
36
|
-
?.subtasks;
|
|
37
|
-
if (!Array.isArray(subtasks))
|
|
38
|
-
return [];
|
|
39
|
-
return uniqueCriteria(subtasks.filter((entry) => typeof entry === "string"));
|
|
40
|
-
}
|
|
41
|
-
function getRepo(input) {
|
|
42
|
-
const repo = input.metadata?.repo;
|
|
43
|
-
if (typeof repo !== "string")
|
|
44
|
-
return null;
|
|
45
|
-
const trimmed = repo.trim();
|
|
46
|
-
return trimmed.length > 0 ? trimmed : null;
|
|
47
|
-
}
|
|
48
|
-
function buildBaselineAcceptanceCriteria(input) {
|
|
49
|
-
const criteria = [];
|
|
50
|
-
const subtasks = plannedSubtasks(input);
|
|
51
|
-
criteria.push(`Address the full request: ${input.originalRequest}`);
|
|
52
|
-
for (const subtask of subtasks.slice(0, 3)) {
|
|
53
|
-
criteria.push(`Complete this planned subtask: ${subtask}`);
|
|
54
|
-
}
|
|
55
|
-
if (input.kind === "coding" || getRepo(input)) {
|
|
56
|
-
criteria.push("Run the relevant checks for the changed code, or record the exact blocker.");
|
|
57
|
-
}
|
|
58
|
-
criteria.push("Capture concrete completion evidence in the task record.");
|
|
59
|
-
criteria.push("Do not claim completion while any blocker or missing verification remains.");
|
|
60
|
-
return uniqueCriteria(criteria).slice(0, MAX_CRITERIA);
|
|
61
|
-
}
|
|
62
|
-
function buildAcceptancePrompt(input) {
|
|
63
|
-
const subtasks = plannedSubtasks(input);
|
|
64
|
-
const planBlock = subtasks.length > 0
|
|
65
|
-
? subtasks.map((task) => `- ${task}`).join("\n")
|
|
66
|
-
: "- none";
|
|
67
|
-
return [
|
|
68
|
-
"Generate task completion criteria for an orchestrated agent task.",
|
|
69
|
-
"Return strict JSON only: an array of 3 to 7 measurable strings.",
|
|
70
|
-
"Each criterion must be observable and suitable for completion validation.",
|
|
71
|
-
"Avoid generic wording like 'do a good job'.",
|
|
72
|
-
"",
|
|
73
|
-
`Title: ${input.title}`,
|
|
74
|
-
`Kind: ${input.kind ?? "coding"}`,
|
|
75
|
-
`Original request: ${input.originalRequest}`,
|
|
76
|
-
`Repository: ${getRepo(input) ?? "none"}`,
|
|
77
|
-
"Planned subtasks:",
|
|
78
|
-
planBlock,
|
|
79
|
-
"",
|
|
80
|
-
"Prefer criteria about completed work, verification, evidence, and unresolved blockers.",
|
|
81
|
-
].join("\n");
|
|
82
|
-
}
|
|
83
|
-
export async function deriveTaskAcceptanceCriteria(runtime, input) {
|
|
84
|
-
const provided = uniqueCriteria(input.acceptanceCriteria ?? []);
|
|
85
|
-
if (provided.length > 0) {
|
|
86
|
-
return {
|
|
87
|
-
criteria: provided,
|
|
88
|
-
source: "provided",
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
try {
|
|
92
|
-
const raw = await runtime.useModel(ModelType.TEXT_SMALL, {
|
|
93
|
-
prompt: buildAcceptancePrompt(input),
|
|
94
|
-
temperature: 0.1,
|
|
95
|
-
stream: false,
|
|
96
|
-
});
|
|
97
|
-
if (typeof raw === "string") {
|
|
98
|
-
const parsed = parseJsonCriteria(raw);
|
|
99
|
-
if (parsed.length >= 3) {
|
|
100
|
-
return {
|
|
101
|
-
criteria: parsed,
|
|
102
|
-
source: "model",
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
catch {
|
|
108
|
-
// Fall back to baseline criteria when the model is unavailable or invalid.
|
|
109
|
-
}
|
|
110
|
-
return {
|
|
111
|
-
criteria: buildBaselineAcceptanceCriteria(input),
|
|
112
|
-
source: "baseline",
|
|
113
|
-
};
|
|
114
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { spawn as spawnChildProcess } from "node:child_process";
|
|
2
|
-
import type { IAgentRuntime } from "@elizaos/core";
|
|
3
|
-
import type { PreflightResult } from "coding-agent-adapters";
|
|
4
|
-
import type { SupportedTaskAgentAdapter } from "./task-agent-frameworks.ts";
|
|
5
|
-
export type TaskAgentAuthStatusValue = "authenticated" | "unauthenticated" | "unknown";
|
|
6
|
-
export interface TaskAgentAuthStatus {
|
|
7
|
-
status: TaskAgentAuthStatusValue;
|
|
8
|
-
method?: string;
|
|
9
|
-
detail?: string;
|
|
10
|
-
loginHint?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface TaskAgentAuthLaunchResult {
|
|
13
|
-
launched: boolean;
|
|
14
|
-
url?: string;
|
|
15
|
-
deviceCode?: string;
|
|
16
|
-
instructions?: string;
|
|
17
|
-
browserOpened?: boolean;
|
|
18
|
-
browserClicked?: boolean;
|
|
19
|
-
browserDetail?: string;
|
|
20
|
-
recoveryTarget?: "same_session" | "replacement_session";
|
|
21
|
-
replacementSessionId?: string;
|
|
22
|
-
replacementFramework?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface TaskAgentAuthFlowHandle {
|
|
25
|
-
agentType: SupportedTaskAgentAdapter;
|
|
26
|
-
startedAt: number;
|
|
27
|
-
completion: Promise<{
|
|
28
|
-
code: number | null;
|
|
29
|
-
signal: NodeJS.Signals | null;
|
|
30
|
-
}>;
|
|
31
|
-
snapshot: () => TaskAgentAuthLaunchResult;
|
|
32
|
-
stop: () => void;
|
|
33
|
-
}
|
|
34
|
-
type ExecFileFn = (file: string, args: string[], options?: {
|
|
35
|
-
encoding?: BufferEncoding;
|
|
36
|
-
env?: NodeJS.ProcessEnv;
|
|
37
|
-
timeout?: number;
|
|
38
|
-
}) => Promise<{
|
|
39
|
-
stdout: string;
|
|
40
|
-
stderr: string;
|
|
41
|
-
}>;
|
|
42
|
-
type SpawnFn = typeof spawnChildProcess;
|
|
43
|
-
type FetchFn = typeof fetch;
|
|
44
|
-
interface TaskAgentAuthDeps {
|
|
45
|
-
execFile: ExecFileFn;
|
|
46
|
-
fetch: FetchFn;
|
|
47
|
-
spawn: SpawnFn;
|
|
48
|
-
}
|
|
49
|
-
interface TaskAgentAuthOptions {
|
|
50
|
-
deps?: Partial<TaskAgentAuthDeps>;
|
|
51
|
-
env?: NodeJS.ProcessEnv;
|
|
52
|
-
runtime?: IAgentRuntime;
|
|
53
|
-
}
|
|
54
|
-
export declare function normalizeTaskAgentAdapterId(value: string | undefined): SupportedTaskAgentAdapter | null;
|
|
55
|
-
export declare function getTaskAgentLoginHint(agentType: SupportedTaskAgentAdapter): string | undefined;
|
|
56
|
-
export declare function probeTaskAgentAuth(agentType: SupportedTaskAgentAdapter, options?: TaskAgentAuthOptions): Promise<TaskAgentAuthStatus>;
|
|
57
|
-
export declare function launchTaskAgentAuthFlow(agentType: SupportedTaskAgentAdapter, options?: TaskAgentAuthOptions): Promise<{
|
|
58
|
-
handle: TaskAgentAuthFlowHandle | null;
|
|
59
|
-
result: TaskAgentAuthLaunchResult;
|
|
60
|
-
}>;
|
|
61
|
-
export declare function assistTaskAgentBrowserLogin(agentType: SupportedTaskAgentAdapter, rawUrl: string, options?: TaskAgentAuthOptions): Promise<{
|
|
62
|
-
opened: boolean;
|
|
63
|
-
clicked: boolean;
|
|
64
|
-
detail?: string;
|
|
65
|
-
}>;
|
|
66
|
-
export declare function augmentTaskAgentPreflightResults(results: PreflightResult[], options?: TaskAgentAuthOptions): Promise<PreflightResult[]>;
|
|
67
|
-
export {};
|
|
68
|
-
//# sourceMappingURL=task-agent-auth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-agent-auth.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/services/task-agent-auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,IAAI,iBAAiB,EAC1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAE5E,MAAM,MAAM,wBAAwB,GACjC,eAAe,GACf,iBAAiB,GACjB,SAAS,CAAC;AAEb,MAAM,WAAW,mBAAmB;IACnC,MAAM,EAAE,wBAAwB,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,yBAAyB;IACzC,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,cAAc,GAAG,qBAAqB,CAAC;IACxD,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,uBAAuB;IACvC,SAAS,EAAE,yBAAyB,CAAC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAA;KAAE,CAAC,CAAC;IAC5E,QAAQ,EAAE,MAAM,yBAAyB,CAAC;IAC1C,IAAI,EAAE,MAAM,IAAI,CAAC;CACjB;AAED,KAAK,UAAU,GAAG,CACjB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,CAAC,EAAE;IACT,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB,KACG,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEjD,KAAK,OAAO,GAAG,OAAO,iBAAiB,CAAC;AAExC,KAAK,OAAO,GAAG,OAAO,KAAK,CAAC;AAE5B,UAAU,iBAAiB;IAC1B,QAAQ,EAAE,UAAU,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;CACf;AAED,UAAU,oBAAoB;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAClC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,aAAa,CAAC;CACxB;AAiND,wBAAgB,2BAA2B,CAC1C,KAAK,EAAE,MAAM,GAAG,SAAS,GACvB,yBAAyB,GAAG,IAAI,CAiBlC;AAED,wBAAgB,qBAAqB,CACpC,SAAS,EAAE,yBAAyB,GAClC,MAAM,GAAG,SAAS,CAWpB;AAwED,wBAAsB,kBAAkB,CACvC,SAAS,EAAE,yBAAyB,EACpC,OAAO,GAAE,oBAAyB,GAChC,OAAO,CAAC,mBAAmB,CAAC,CA0H9B;AAeD,wBAAsB,uBAAuB,CAC5C,SAAS,EAAE,yBAAyB,EACpC,OAAO,GAAE,oBAAyB,GAChC,OAAO,CAAC;IACV,MAAM,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACvC,MAAM,EAAE,yBAAyB,CAAC;CAClC,CAAC,CA8FD;AAyCD,wBAAsB,2BAA2B,CAChD,SAAS,EAAE,yBAAyB,EACpC,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,oBAAyB,GAChC,OAAO,CAAC;IACV,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC,CAoGD;AAED,wBAAsB,gCAAgC,CACrD,OAAO,EAAE,eAAe,EAAE,EAC1B,OAAO,GAAE,oBAAyB,GAChC,OAAO,CAAC,eAAe,EAAE,CAAC,CAY5B"}
|