@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,310 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Watches the Claude Code session jsonl for each active PTY session and
|
|
3
|
-
* emits a synthetic `task_complete` event when the agent produces an
|
|
4
|
-
* assistant message with `stop_reason === "end_turn"`. This is the
|
|
5
|
-
* ground-truth completion signal from Claude Code's own session record —
|
|
6
|
-
* independent of PTY buffer state, TUI ready events, or the stall
|
|
7
|
-
* classifier's buffer-text heuristics.
|
|
8
|
-
*
|
|
9
|
-
* ## Why this exists
|
|
10
|
-
*
|
|
11
|
-
* The orchestrator's historical completion detection leaned on PTY-side
|
|
12
|
-
* heuristics (buffer silence + ready event + stall-classifier LLM), all of
|
|
13
|
-
* which misfire for long open-ended tasks. Claude Code's own hooks are a
|
|
14
|
-
* more reliable signal and remain the primary path, but hooks can fail
|
|
15
|
-
* silently if the user's hook config is broken or a future Claude Code
|
|
16
|
-
* release changes the contract. The jsonl is a durable, parseable record
|
|
17
|
-
* of every turn written by the CLI itself — using it as an additional
|
|
18
|
-
* ground truth makes completion detection robust across those failure
|
|
19
|
-
* modes.
|
|
20
|
-
*
|
|
21
|
-
* ## Dedup contract with the hook path
|
|
22
|
-
*
|
|
23
|
-
* pty-service.handleHookEvent emits `task_complete` on the authoritative
|
|
24
|
-
* hook signal. This watcher emits a synthetic `task_complete` with an
|
|
25
|
-
* `internal: { source: "jsonl-watcher" }` marker. The orchestrator's
|
|
26
|
-
* downstream consumers (coordinator's handleTurnComplete, the eliza
|
|
27
|
-
* task-progress-streamer) already dedupe `task_complete` per session
|
|
28
|
-
* (`finalSent` in the streamer, `inFlightDecisions` in the coordinator).
|
|
29
|
-
* Whichever signal fires first wins; the second is a no-op.
|
|
30
|
-
*
|
|
31
|
-
* ## Polling vs fs.watch
|
|
32
|
-
*
|
|
33
|
-
* This uses polling (1s interval) rather than `fs.watch` because:
|
|
34
|
-
* - jsonl files are append-only and small (~KB to MB)
|
|
35
|
-
* - polling is portable across linux / macOS file systems
|
|
36
|
-
* - fs.watch on linux has known gotchas with multiple writers and with
|
|
37
|
-
* files created after the watcher is established
|
|
38
|
-
* - the jsonl doesn't exist when the session spawns — we need retry
|
|
39
|
-
* logic anyway, which fs.watch doesn't naturally provide
|
|
40
|
-
*
|
|
41
|
-
* @module orchestrator/claude-jsonl-completion-watcher
|
|
42
|
-
*/
|
|
43
|
-
import { promises as fs } from "node:fs";
|
|
44
|
-
import * as os from "node:os";
|
|
45
|
-
import * as path from "node:path";
|
|
46
|
-
import { logger } from "@elizaos/core";
|
|
47
|
-
const POLL_INTERVAL_MS = 1_000;
|
|
48
|
-
const installedRuntimes = new WeakSet();
|
|
49
|
-
/**
|
|
50
|
-
* Install the jsonl completion watcher on a runtime's PTY service.
|
|
51
|
-
* Idempotent — repeat calls on the same runtime are no-ops.
|
|
52
|
-
*
|
|
53
|
-
* The watcher subscribes to `onSessionEvent` to learn when sessions start
|
|
54
|
-
* (first event) and stop (`stopped` event), and runs one poller per live
|
|
55
|
-
* session. Pollers tear themselves down on `stopped` or after firing a
|
|
56
|
-
* completion event.
|
|
57
|
-
*/
|
|
58
|
-
export function installClaudeJsonlCompletionWatcher(runtime, ptyService) {
|
|
59
|
-
if (installedRuntimes.has(runtime))
|
|
60
|
-
return;
|
|
61
|
-
const svc = ptyService;
|
|
62
|
-
if (!svc || typeof svc.onSessionEvent !== "function")
|
|
63
|
-
return;
|
|
64
|
-
installedRuntimes.add(runtime);
|
|
65
|
-
const pollers = new Map();
|
|
66
|
-
// Sessions that have already emitted a task_complete (real hook OR
|
|
67
|
-
// our synthetic jsonl emission). Tracked at installer scope so the
|
|
68
|
-
// gate survives across Poller instance teardowns.
|
|
69
|
-
//
|
|
70
|
-
// Without this, every new onSessionEvent for a session that already
|
|
71
|
-
// fired would call startIfMissing() which would create a fresh Poller
|
|
72
|
-
// (no entry in the `pollers` map after a previous stop). The new
|
|
73
|
-
// Poller's own `fired` flag is false, so on its next tick it re-reads
|
|
74
|
-
// the jsonl (still containing the assistant end_turn line) and emits
|
|
75
|
-
// task_complete a second time. We observed this producing 3+ fires
|
|
76
|
-
// per session in testing.
|
|
77
|
-
const firedSessions = new Set();
|
|
78
|
-
const stop = (sessionId) => {
|
|
79
|
-
const poller = pollers.get(sessionId);
|
|
80
|
-
if (!poller)
|
|
81
|
-
return;
|
|
82
|
-
poller.stop();
|
|
83
|
-
pollers.delete(sessionId);
|
|
84
|
-
};
|
|
85
|
-
const markFiredAndStop = (sessionId) => {
|
|
86
|
-
firedSessions.add(sessionId);
|
|
87
|
-
stop(sessionId);
|
|
88
|
-
};
|
|
89
|
-
const startIfMissing = (sessionId) => {
|
|
90
|
-
if (firedSessions.has(sessionId))
|
|
91
|
-
return;
|
|
92
|
-
if (pollers.has(sessionId))
|
|
93
|
-
return;
|
|
94
|
-
const workdir = svc.getSession?.(sessionId)?.workdir;
|
|
95
|
-
if (!workdir)
|
|
96
|
-
return;
|
|
97
|
-
const poller = new Poller(svc, sessionId, workdir, markFiredAndStop);
|
|
98
|
-
pollers.set(sessionId, poller);
|
|
99
|
-
poller.start();
|
|
100
|
-
};
|
|
101
|
-
svc.onSessionEvent((sessionId, event) => {
|
|
102
|
-
// Any first event for a sessionId is our cue to start polling. We
|
|
103
|
-
// deliberately do NOT gate on a particular event type — the jsonl
|
|
104
|
-
// may be written before the first PTY event arrives, and we want
|
|
105
|
-
// the poller alive as early as possible. startIfMissing is itself
|
|
106
|
-
// gated on firedSessions, so late events for already-fired sessions
|
|
107
|
-
// are no-ops rather than spawning zombie pollers.
|
|
108
|
-
startIfMissing(sessionId);
|
|
109
|
-
if (event === "stopped" || event === "error") {
|
|
110
|
-
stop(sessionId);
|
|
111
|
-
}
|
|
112
|
-
if (event === "task_complete") {
|
|
113
|
-
// A real hook-based task_complete arrived — or we emitted our own
|
|
114
|
-
// synthetic one. Either way, mark the session as fired so any
|
|
115
|
-
// subsequent events can't spawn a new poller and re-fire, and
|
|
116
|
-
// shut down any live poller for this session.
|
|
117
|
-
markFiredAndStop(sessionId);
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* One poller per session. Owns its own interval and its own cached file
|
|
123
|
-
* size so it only re-reads when the jsonl grows. The per-instance `fired`
|
|
124
|
-
* flag guards against re-entry within a single poller's lifetime; the
|
|
125
|
-
* installer-level `firedSessions` Set (passed in via `onFired`) guards
|
|
126
|
-
* against re-entry across successive poller instances for the same
|
|
127
|
-
* sessionId.
|
|
128
|
-
*/
|
|
129
|
-
class Poller {
|
|
130
|
-
svc;
|
|
131
|
-
sessionId;
|
|
132
|
-
workdir;
|
|
133
|
-
onFired;
|
|
134
|
-
timer = null;
|
|
135
|
-
fired = false;
|
|
136
|
-
lastSize = 0;
|
|
137
|
-
constructor(svc, sessionId, workdir, onFired) {
|
|
138
|
-
this.svc = svc;
|
|
139
|
-
this.sessionId = sessionId;
|
|
140
|
-
this.workdir = workdir;
|
|
141
|
-
this.onFired = onFired;
|
|
142
|
-
}
|
|
143
|
-
start() {
|
|
144
|
-
if (this.timer)
|
|
145
|
-
return;
|
|
146
|
-
this.timer = setInterval(() => {
|
|
147
|
-
void this.tick();
|
|
148
|
-
}, POLL_INTERVAL_MS);
|
|
149
|
-
}
|
|
150
|
-
stop() {
|
|
151
|
-
if (!this.timer)
|
|
152
|
-
return;
|
|
153
|
-
clearInterval(this.timer);
|
|
154
|
-
this.timer = null;
|
|
155
|
-
}
|
|
156
|
-
async tick() {
|
|
157
|
-
if (this.fired)
|
|
158
|
-
return;
|
|
159
|
-
const jsonlPath = await findLatestJsonl(this.workdir);
|
|
160
|
-
if (!jsonlPath)
|
|
161
|
-
return;
|
|
162
|
-
let stat;
|
|
163
|
-
try {
|
|
164
|
-
stat = await fs.stat(jsonlPath);
|
|
165
|
-
}
|
|
166
|
-
catch {
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
if (stat.size === this.lastSize)
|
|
170
|
-
return;
|
|
171
|
-
this.lastSize = stat.size;
|
|
172
|
-
let content;
|
|
173
|
-
try {
|
|
174
|
-
content = await fs.readFile(jsonlPath, "utf-8");
|
|
175
|
-
}
|
|
176
|
-
catch {
|
|
177
|
-
return;
|
|
178
|
-
}
|
|
179
|
-
const entry = readLatestAssistantEntry(content);
|
|
180
|
-
if (!entry?.isEndTurn)
|
|
181
|
-
return;
|
|
182
|
-
this.fired = true;
|
|
183
|
-
// onFired adds to firedSessions and stops this poller. Call it
|
|
184
|
-
// BEFORE emitting task_complete so the subsequent onSessionEvent
|
|
185
|
-
// callback (triggered by our own emission) sees firedSessions
|
|
186
|
-
// already populated and doesn't start a new poller.
|
|
187
|
-
this.onFired(this.sessionId);
|
|
188
|
-
logger.info(`[claude-jsonl-watcher] detected end_turn for ${this.sessionId} — emitting synthetic task_complete (${entry.text.length} chars)`);
|
|
189
|
-
// Route through the same handleHookEvent pathway the real hook uses,
|
|
190
|
-
// so downstream consumers receive an identical event shape and the
|
|
191
|
-
// existing dedup guards apply transparently.
|
|
192
|
-
this.svc.handleHookEvent?.(this.sessionId, "task_complete", {
|
|
193
|
-
response: entry.text,
|
|
194
|
-
source: "jsonl-watcher",
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Locate the newest `.jsonl` file under Claude Code's project directory
|
|
200
|
-
* for a given workdir. Returns null if the directory or any matching
|
|
201
|
-
* file does not yet exist (e.g., the session has not produced output).
|
|
202
|
-
*
|
|
203
|
-
* "Newest" means most recently modified. Claude Code names session files
|
|
204
|
-
* with UUIDs, which do NOT sort chronologically — a workspace that has
|
|
205
|
-
* had multiple sessions will have multiple jsonl files, and picking the
|
|
206
|
-
* lexicographically last name returns a stale file from an older session
|
|
207
|
-
* roughly at random. We stat each file and pick the one with the greatest
|
|
208
|
-
* mtime instead. Files that fail to stat (e.g., deleted between readdir
|
|
209
|
-
* and stat) are skipped.
|
|
210
|
-
*
|
|
211
|
-
* Exported for tests.
|
|
212
|
-
*/
|
|
213
|
-
export async function findLatestJsonl(workdir) {
|
|
214
|
-
const home = process.env.HOME ?? os.homedir();
|
|
215
|
-
// Claude Code encodes project paths by replacing both `/` and `.` with
|
|
216
|
-
// `-`. For example:
|
|
217
|
-
// /home/eliza/.eliza/workspaces/abc → -home-eliza--eliza-workspaces-abc
|
|
218
|
-
// (the `/.` in `/.eliza` maps to `--`).
|
|
219
|
-
const projectKey = workdir.replace(/[/.]/g, "-");
|
|
220
|
-
const projectDir = path.join(home, ".claude", "projects", projectKey);
|
|
221
|
-
let entries;
|
|
222
|
-
try {
|
|
223
|
-
entries = await fs.readdir(projectDir);
|
|
224
|
-
}
|
|
225
|
-
catch {
|
|
226
|
-
return null;
|
|
227
|
-
}
|
|
228
|
-
const jsonls = entries.filter((f) => f.endsWith(".jsonl"));
|
|
229
|
-
if (jsonls.length === 0)
|
|
230
|
-
return null;
|
|
231
|
-
const stats = await Promise.all(jsonls.map(async (name) => {
|
|
232
|
-
const full = path.join(projectDir, name);
|
|
233
|
-
try {
|
|
234
|
-
const st = await fs.stat(full);
|
|
235
|
-
return { full, mtimeMs: st.mtimeMs };
|
|
236
|
-
}
|
|
237
|
-
catch {
|
|
238
|
-
return null;
|
|
239
|
-
}
|
|
240
|
-
}));
|
|
241
|
-
let newest = null;
|
|
242
|
-
for (const entry of stats) {
|
|
243
|
-
if (!entry)
|
|
244
|
-
continue;
|
|
245
|
-
if (!newest || entry.mtimeMs > newest.mtimeMs)
|
|
246
|
-
newest = entry;
|
|
247
|
-
}
|
|
248
|
-
return newest?.full ?? null;
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* Scan a claude code session jsonl string tail-first for the latest
|
|
252
|
-
* assistant message, returning its extracted text plus whether the turn
|
|
253
|
-
* has finished (`stop_reason === "end_turn"`).
|
|
254
|
-
*
|
|
255
|
-
* - Returns `null` if no assistant message exists at all.
|
|
256
|
-
* - Returns `{ text, isEndTurn: false }` when the latest assistant turn is
|
|
257
|
-
* still in progress (`tool_use`, `max_tokens` mid-batch, etc.) — the
|
|
258
|
-
* streamer uses this shape to post intermediate text without waiting.
|
|
259
|
-
* - Returns `{ text, isEndTurn: true }` when the latest assistant turn is
|
|
260
|
-
* finished — the watcher uses this to fire a synthetic `task_complete`.
|
|
261
|
-
*
|
|
262
|
-
* Exported so both the completion watcher and task-progress-streamer can
|
|
263
|
-
* share one jsonl parser.
|
|
264
|
-
*/
|
|
265
|
-
export function readLatestAssistantEntry(content) {
|
|
266
|
-
const lines = content.split("\n");
|
|
267
|
-
for (let i = lines.length - 1; i >= 0; i--) {
|
|
268
|
-
const line = lines[i].trim();
|
|
269
|
-
if (!line)
|
|
270
|
-
continue;
|
|
271
|
-
let msg;
|
|
272
|
-
try {
|
|
273
|
-
msg = JSON.parse(line).message;
|
|
274
|
-
}
|
|
275
|
-
catch {
|
|
276
|
-
continue;
|
|
277
|
-
}
|
|
278
|
-
if (!msg || msg.role !== "assistant")
|
|
279
|
-
continue;
|
|
280
|
-
let text = "";
|
|
281
|
-
for (const c of msg.content ?? []) {
|
|
282
|
-
if (c.type === "text" && typeof c.text === "string" && c.text.trim()) {
|
|
283
|
-
text += (text ? "\n" : "") + c.text.trim();
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
return { text, isEndTurn: msg.stop_reason === "end_turn" };
|
|
287
|
-
}
|
|
288
|
-
return null;
|
|
289
|
-
}
|
|
290
|
-
/**
|
|
291
|
-
* Convenience wrapper: locate the latest session jsonl for `workdir` and
|
|
292
|
-
* return the extracted assistant entry, or `null` if no file or no
|
|
293
|
-
* assistant message exists yet.
|
|
294
|
-
*
|
|
295
|
-
* Used by the task-progress-streamer and the completion watcher so they
|
|
296
|
-
* share one implementation of "read the latest claude assistant turn".
|
|
297
|
-
*/
|
|
298
|
-
export async function readLatestAssistantFromWorkdir(workdir) {
|
|
299
|
-
const jsonlPath = await findLatestJsonl(workdir);
|
|
300
|
-
if (!jsonlPath)
|
|
301
|
-
return null;
|
|
302
|
-
let content;
|
|
303
|
-
try {
|
|
304
|
-
content = await fs.readFile(jsonlPath, "utf-8");
|
|
305
|
-
}
|
|
306
|
-
catch {
|
|
307
|
-
return null;
|
|
308
|
-
}
|
|
309
|
-
return readLatestAssistantEntry(content);
|
|
310
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Task agent orchestrator: PTY sessions, workspaces, and coding-agent routing.
|
|
3
|
-
*
|
|
4
|
-
* The implementation is split so the raw capability tree stays in
|
|
5
|
-
* `base-plugin.ts`, while `patch-agent-orchestrator-plugin.ts` applies
|
|
6
|
-
* deployment integration (action aliases, API routes, PTY patches).
|
|
7
|
-
*
|
|
8
|
-
* @module orchestrator
|
|
9
|
-
*/
|
|
10
|
-
import { finalizeWorkspaceAction } from "./actions/finalize-workspace.ts";
|
|
11
|
-
import { listAgentsAction, listTaskAgentsAction } from "./actions/list-agents.ts";
|
|
12
|
-
import { manageIssuesAction } from "./actions/manage-issues.ts";
|
|
13
|
-
import { provisionWorkspaceAction } from "./actions/provision-workspace.ts";
|
|
14
|
-
import { sendToAgentAction, sendToTaskAgentAction } from "./actions/send-to-agent.ts";
|
|
15
|
-
import { spawnAgentAction, spawnTaskAgentAction } from "./actions/spawn-agent.ts";
|
|
16
|
-
import { createTaskAction, startCodingTaskAction } from "./actions/start-coding-task.ts";
|
|
17
|
-
import { stopAgentAction, stopTaskAgentAction } from "./actions/stop-agent.ts";
|
|
18
|
-
import { taskControlAction } from "./actions/task-control.ts";
|
|
19
|
-
import { taskHistoryAction } from "./actions/task-history.ts";
|
|
20
|
-
import { taskShareAction } from "./actions/task-share.ts";
|
|
21
|
-
import { createTaskAgentRouteHandler, handleCodingAgentRoutes } from "./api/routes.ts";
|
|
22
|
-
import orchestratorPluginDefault, { codingAgentPlugin, createAgentOrchestratorPlugin, createCodingAgentRouteHandler, getCoordinator, taskAgentPlugin } from "./patch-agent-orchestrator-plugin.ts";
|
|
23
|
-
import { cleanForChat } from "./services/ansi-utils.ts";
|
|
24
|
-
import { PTYService } from "./services/pty-service.ts";
|
|
25
|
-
import { SwarmCoordinator } from "./services/swarm-coordinator.ts";
|
|
26
|
-
import { buildBlockedEventMessage, buildTurnCompleteEventMessage } from "./services/swarm-coordinator-prompts.ts";
|
|
27
|
-
export type { AdapterType, AgentCredentials, AgentFileDescriptor, ApprovalConfig, ApprovalPreset, PreflightResult, PresetDefinition, RiskLevel, ToolCategory, WriteMemoryOptions, } from "coding-agent-adapters";
|
|
28
|
-
export type { CodingAgentType, PTYServiceConfig, SessionEventName, SessionInfo, SpawnSessionOptions, } from "./services/pty-service.ts";
|
|
29
|
-
export type { AgentDecisionCallback, ChatMessageCallback, CoordinationDecision, PendingDecision, SupervisionLevel, SwarmCompleteCallback, SwarmEvent, TaskCompletionSummary, TaskContext, WsBroadcastCallback, } from "./services/swarm-coordinator.ts";
|
|
30
|
-
export type { CoordinationLLMResponse, SharedDecision, } from "./services/swarm-coordinator-prompts.ts";
|
|
31
|
-
export type { AuthPromptCallback, CodingWorkspaceConfig, CommitOptions, ProvisionWorkspaceOptions, PushOptions, WorkspaceResult, } from "./services/workspace-service.ts";
|
|
32
|
-
export { buildBlockedEventMessage, buildTurnCompleteEventMessage, cleanForChat, codingAgentPlugin, createAgentOrchestratorPlugin, createCodingAgentRouteHandler, createTaskAction, createTaskAgentRouteHandler, finalizeWorkspaceAction, getCoordinator, handleCodingAgentRoutes, listAgentsAction, listTaskAgentsAction, manageIssuesAction, orchestratorPluginDefault as default, PTYService, provisionWorkspaceAction, SwarmCoordinator, sendToAgentAction, sendToTaskAgentAction, spawnAgentAction, spawnTaskAgentAction, startCodingTaskAction, stopAgentAction, stopTaskAgentAction, taskAgentPlugin, taskControlAction, taskHistoryAction, taskShareAction, };
|
|
33
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../typescript/src/features/orchestrator/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EACN,gBAAgB,EAChB,oBAAoB,EACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EACN,iBAAiB,EACjB,qBAAqB,EACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACN,gBAAgB,EAChB,oBAAoB,EACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACN,gBAAgB,EAChB,qBAAqB,EACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACN,2BAA2B,EAC3B,uBAAuB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,yBAAyB,EAAE,EACjC,iBAAiB,EACjB,6BAA6B,EAC7B,6BAA6B,EAC7B,cAAc,EACd,eAAe,EACf,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EACN,wBAAwB,EACxB,6BAA6B,EAC7B,MAAM,yCAAyC,CAAC;AAEjD,YAAY,EACX,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,kBAAkB,GAClB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACX,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,mBAAmB,GACnB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACX,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,mBAAmB,GACnB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACX,uBAAuB,EACvB,cAAc,GACd,MAAM,yCAAyC,CAAC;AACjD,YAAY,EACX,kBAAkB,EAClB,qBAAqB,EACrB,aAAa,EACb,yBAAyB,EACzB,WAAW,EACX,eAAe,GACf,MAAM,iCAAiC,CAAC;AAKzC,OAAO,EACN,wBAAwB,EACxB,6BAA6B,EAC7B,YAAY,EACZ,iBAAiB,EACjB,6BAA6B,EAC7B,6BAA6B,EAC7B,gBAAgB,EAChB,2BAA2B,EAC3B,uBAAuB,EACvB,cAAc,EACd,uBAAuB,EACvB,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,IAAI,OAAO,EACpC,UAAU,EACV,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,GACf,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Task agent orchestrator: PTY sessions, workspaces, and coding-agent routing.
|
|
3
|
-
*
|
|
4
|
-
* The implementation is split so the raw capability tree stays in
|
|
5
|
-
* `base-plugin.ts`, while `patch-agent-orchestrator-plugin.ts` applies
|
|
6
|
-
* deployment integration (action aliases, API routes, PTY patches).
|
|
7
|
-
*
|
|
8
|
-
* @module orchestrator
|
|
9
|
-
*/
|
|
10
|
-
import { finalizeWorkspaceAction } from "./actions/finalize-workspace.js";
|
|
11
|
-
import { listAgentsAction, listTaskAgentsAction, } from "./actions/list-agents.js";
|
|
12
|
-
import { manageIssuesAction } from "./actions/manage-issues.js";
|
|
13
|
-
import { provisionWorkspaceAction } from "./actions/provision-workspace.js";
|
|
14
|
-
import { sendToAgentAction, sendToTaskAgentAction, } from "./actions/send-to-agent.js";
|
|
15
|
-
import { spawnAgentAction, spawnTaskAgentAction, } from "./actions/spawn-agent.js";
|
|
16
|
-
import { createTaskAction, startCodingTaskAction, } from "./actions/start-coding-task.js";
|
|
17
|
-
import { stopAgentAction, stopTaskAgentAction } from "./actions/stop-agent.js";
|
|
18
|
-
import { taskControlAction } from "./actions/task-control.js";
|
|
19
|
-
import { taskHistoryAction } from "./actions/task-history.js";
|
|
20
|
-
import { taskShareAction } from "./actions/task-share.js";
|
|
21
|
-
import { createTaskAgentRouteHandler, handleCodingAgentRoutes, } from "./api/routes.js";
|
|
22
|
-
import orchestratorPluginDefault, { codingAgentPlugin, createAgentOrchestratorPlugin, createCodingAgentRouteHandler, getCoordinator, taskAgentPlugin, } from "./patch-agent-orchestrator-plugin.js";
|
|
23
|
-
import { cleanForChat } from "./services/ansi-utils.js";
|
|
24
|
-
import { PTYService } from "./services/pty-service.js";
|
|
25
|
-
import { SwarmCoordinator } from "./services/swarm-coordinator.js";
|
|
26
|
-
import { buildBlockedEventMessage, buildTurnCompleteEventMessage, } from "./services/swarm-coordinator-prompts.js";
|
|
27
|
-
// Keep live runtime bindings in this entrypoint. Bun has produced an empty
|
|
28
|
-
// subpath bundle for pure re-export-only files here, which breaks the public
|
|
29
|
-
// `@elizaos/core/orchestrator` surface at runtime.
|
|
30
|
-
export { buildBlockedEventMessage, buildTurnCompleteEventMessage, cleanForChat, codingAgentPlugin, createAgentOrchestratorPlugin, createCodingAgentRouteHandler, createTaskAction, createTaskAgentRouteHandler, finalizeWorkspaceAction, getCoordinator, handleCodingAgentRoutes, listAgentsAction, listTaskAgentsAction, manageIssuesAction, orchestratorPluginDefault as default, PTYService, provisionWorkspaceAction, SwarmCoordinator, sendToAgentAction, sendToTaskAgentAction, spawnAgentAction, spawnTaskAgentAction, startCodingTaskAction, stopAgentAction, stopTaskAgentAction, taskAgentPlugin, taskControlAction, taskHistoryAction, taskShareAction, };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type http from "node:http";
|
|
2
|
-
import type { IAgentRuntime, Plugin } from "@elizaos/core";
|
|
3
|
-
import { PTYService } from "./services/pty-service.ts";
|
|
4
|
-
import { CodingWorkspaceService } from "./services/workspace-service.ts";
|
|
5
|
-
type PatchedRouteHandler = (req: http.IncomingMessage, res: http.ServerResponse, pathname: string, method?: string) => Promise<boolean>;
|
|
6
|
-
declare const basePlugin: Plugin;
|
|
7
|
-
/** @public Shipped plugin instance (includes action aliases, route extensions, and PTY patches). */
|
|
8
|
-
export declare function createAgentOrchestratorPlugin(): Plugin;
|
|
9
|
-
export declare function createCodingAgentRouteHandler(runtime: IAgentRuntime, coordinator?: unknown): PatchedRouteHandler;
|
|
10
|
-
export { CodingWorkspaceService, PTYService };
|
|
11
|
-
export declare const getCoordinator: (runtime: IAgentRuntime) => unknown;
|
|
12
|
-
export declare const taskAgentPlugin: Plugin;
|
|
13
|
-
export declare const codingAgentPlugin: Plugin;
|
|
14
|
-
export default basePlugin;
|
|
15
|
-
//# sourceMappingURL=patch-agent-orchestrator-plugin.d.ts.map
|
package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"patch-agent-orchestrator-plugin.d.ts","sourceRoot":"","sources":["../../../../../../../typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAGlC,OAAO,KAAK,EAKX,aAAa,EAEb,MAAM,EAIN,MAAM,eAAe,CAAC;AAIvB,OAAO,EAEN,UAAU,EACV,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAwLzE,KAAK,mBAAmB,GAAG,CAC1B,GAAG,EAAE,IAAI,CAAC,eAAe,EACzB,GAAG,EAAE,IAAI,CAAC,cAAc,EACxB,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM,KACX,OAAO,CAAC,OAAO,CAAC,CAAC;AAyBtB,QAAA,MAAM,UAAU,QAAsB,CAAC;AAypDvC,oGAAoG;AACpG,wBAAgB,6BAA6B,IAAI,MAAM,CAEtD;AAED,wBAAgB,6BAA6B,CAC5C,OAAO,EAAE,aAAa,EACtB,WAAW,CAAC,EAAE,OAAO,GACnB,mBAAmB,CAwKrB;AAED,OAAO,EAAE,sBAAsB,EAAE,UAAU,EAAE,CAAC;AAC9C,eAAO,MAAM,cAAc,GAAI,SAAS,aAAa,KAAG,OAC5B,CAAC;AAC7B,eAAO,MAAM,eAAe,QAAa,CAAC;AAC1C,eAAO,MAAM,iBAAiB,QAAa,CAAC;AAE5C,eAAe,UAAU,CAAC"}
|