@elizaos/agent 2.0.0-alpha.144 → 2.0.0-alpha.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/app-lifeops/src/actions/inbox-digest.d.ts +2 -0
- package/apps/app-lifeops/src/actions/inbox-digest.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox-digest.js +1 -0
- package/apps/app-lifeops/src/actions/inbox-respond.d.ts +2 -0
- package/apps/app-lifeops/src/actions/inbox-respond.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox-respond.js +1 -0
- package/apps/app-lifeops/src/actions/inbox-triage.d.ts +2 -0
- package/apps/app-lifeops/src/actions/inbox-triage.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox-triage.js +1 -0
- package/apps/app-lifeops/src/actions/inbox.d.ts +3 -0
- package/apps/app-lifeops/src/actions/inbox.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox.js +856 -0
- package/apps/app-lifeops/src/actions/update-owner-profile.d.ts +3 -0
- package/apps/app-lifeops/src/actions/update-owner-profile.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/update-owner-profile.js +131 -0
- package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/config.d.ts.map +1 -0
- package/{packages/agent → apps/app-lifeops}/src/inbox/config.js +1 -1
- package/apps/app-lifeops/src/inbox/message-fetcher.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/reflection.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/repository.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/triage-classifier.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/index.d.ts +25 -0
- package/apps/app-lifeops/src/lifeops/index.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/index.js +24 -0
- package/apps/app-lifeops/src/lifeops/screen-context.d.ts +52 -0
- package/apps/app-lifeops/src/lifeops/screen-context.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/screen-context.js +332 -0
- package/apps/app-lifeops/src/plugin.d.ts +3 -0
- package/apps/app-lifeops/src/plugin.d.ts.map +1 -1
- package/apps/app-lifeops/src/plugin.js +16 -3
- package/apps/app-lifeops/src/providers/inbox-triage.d.ts +3 -0
- package/apps/app-lifeops/src/providers/inbox-triage.d.ts.map +1 -0
- package/apps/app-lifeops/src/providers/inbox-triage.js +89 -0
- package/package.json +6 -4
- package/packages/agent/src/actions/calendar.d.ts +1 -18
- package/packages/agent/src/actions/calendar.d.ts.map +1 -1
- package/packages/agent/src/actions/calendar.js +1 -3143
- package/packages/agent/src/actions/check-balance.d.ts +17 -0
- package/packages/agent/src/actions/check-balance.d.ts.map +1 -0
- package/packages/agent/src/actions/check-balance.js +167 -0
- package/packages/agent/src/actions/connector-resolver.d.ts +75 -0
- package/packages/agent/src/actions/connector-resolver.d.ts.map +1 -0
- package/packages/agent/src/actions/connector-resolver.js +245 -0
- package/packages/agent/src/actions/context-signal-lexicon.d.ts +1 -1
- package/packages/agent/src/actions/context-signal-lexicon.d.ts.map +1 -1
- package/packages/agent/src/actions/context-signal-lexicon.js +6 -0
- package/packages/agent/src/actions/eject-plugin.d.ts +3 -0
- package/packages/agent/src/actions/eject-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/eject-plugin.js +48 -0
- package/packages/agent/src/actions/execute-trade.d.ts +17 -0
- package/packages/agent/src/actions/execute-trade.d.ts.map +1 -0
- package/packages/agent/src/actions/execute-trade.js +299 -0
- package/packages/agent/src/actions/get-self-status.d.ts +13 -0
- package/packages/agent/src/actions/get-self-status.d.ts.map +1 -0
- package/packages/agent/src/actions/get-self-status.js +66 -0
- package/packages/agent/src/actions/gmail.d.ts +1 -32
- package/packages/agent/src/actions/gmail.d.ts.map +1 -1
- package/packages/agent/src/actions/gmail.js +1 -1734
- package/packages/agent/src/actions/inbox-digest.d.ts +1 -1
- package/packages/agent/src/actions/inbox-digest.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox-digest.js +1 -1
- package/packages/agent/src/actions/inbox-respond.d.ts +1 -1
- package/packages/agent/src/actions/inbox-respond.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox-respond.js +1 -1
- package/packages/agent/src/actions/inbox-triage.d.ts +1 -1
- package/packages/agent/src/actions/inbox-triage.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox-triage.js +1 -1
- package/packages/agent/src/actions/inbox.d.ts +1 -2
- package/packages/agent/src/actions/inbox.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox.js +1 -856
- package/packages/agent/src/actions/index.d.ts +13 -0
- package/packages/agent/src/actions/index.d.ts.map +1 -1
- package/packages/agent/src/actions/index.js +13 -0
- package/packages/agent/src/actions/install-plugin.d.ts +3 -0
- package/packages/agent/src/actions/install-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/install-plugin.js +65 -0
- package/packages/agent/src/actions/life-goal-extractor.d.ts +1 -68
- package/packages/agent/src/actions/life-goal-extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life-goal-extractor.js +1 -354
- package/packages/agent/src/actions/life-param-extractor.d.ts +1 -77
- package/packages/agent/src/actions/life-param-extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life-param-extractor.js +1 -423
- package/packages/agent/src/actions/life-recent-context.d.ts +1 -8
- package/packages/agent/src/actions/life-recent-context.d.ts.map +1 -1
- package/packages/agent/src/actions/life-recent-context.js +1 -84
- package/packages/agent/src/actions/life-update-extractor.d.ts +1 -26
- package/packages/agent/src/actions/life-update-extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life-update-extractor.js +1 -195
- package/packages/agent/src/actions/life.d.ts +1 -8
- package/packages/agent/src/actions/life.d.ts.map +1 -1
- package/packages/agent/src/actions/life.extractor.d.ts +1 -17
- package/packages/agent/src/actions/life.extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life.extractor.js +1 -264
- package/packages/agent/src/actions/life.js +1 -3379
- package/packages/agent/src/actions/lifeops-extraction-config.d.ts +1 -15
- package/packages/agent/src/actions/lifeops-extraction-config.d.ts.map +1 -1
- package/packages/agent/src/actions/lifeops-extraction-config.js +1 -25
- package/packages/agent/src/actions/lifeops-google-helpers.d.ts +1 -61
- package/packages/agent/src/actions/lifeops-google-helpers.d.ts.map +1 -1
- package/packages/agent/src/actions/lifeops-google-helpers.js +1 -607
- package/packages/agent/src/actions/list-ejected.d.ts +3 -0
- package/packages/agent/src/actions/list-ejected.d.ts.map +1 -0
- package/packages/agent/src/actions/list-ejected.js +35 -0
- package/packages/agent/src/actions/log-level.d.ts +3 -0
- package/packages/agent/src/actions/log-level.d.ts.map +1 -0
- package/packages/agent/src/actions/log-level.js +125 -0
- package/packages/agent/src/actions/manage-tasks.d.ts.map +1 -1
- package/packages/agent/src/actions/manage-tasks.js +51 -15
- package/packages/agent/src/actions/media.d.ts +21 -0
- package/packages/agent/src/actions/media.d.ts.map +1 -0
- package/packages/agent/src/actions/media.js +384 -0
- package/packages/agent/src/actions/read-messages.d.ts +14 -0
- package/packages/agent/src/actions/read-messages.d.ts.map +1 -0
- package/packages/agent/src/actions/read-messages.js +228 -0
- package/packages/agent/src/actions/reinject-plugin.d.ts +3 -0
- package/packages/agent/src/actions/reinject-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/reinject-plugin.js +47 -0
- package/packages/agent/src/actions/send-message.d.ts +0 -7
- package/packages/agent/src/actions/send-message.d.ts.map +1 -1
- package/packages/agent/src/actions/send-message.js +170 -49
- package/packages/agent/src/actions/sync-plugin.d.ts +3 -0
- package/packages/agent/src/actions/sync-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/sync-plugin.js +47 -0
- package/packages/agent/src/actions/timezone-normalization.d.ts +1 -2
- package/packages/agent/src/actions/timezone-normalization.d.ts.map +1 -1
- package/packages/agent/src/actions/timezone-normalization.js +1 -107
- package/packages/agent/src/actions/transfer-token.d.ts +17 -0
- package/packages/agent/src/actions/transfer-token.d.ts.map +1 -0
- package/packages/agent/src/actions/transfer-token.js +470 -0
- package/packages/agent/src/actions/update-owner-profile.d.ts +1 -2
- package/packages/agent/src/actions/update-owner-profile.d.ts.map +1 -1
- package/packages/agent/src/actions/update-owner-profile.js +1 -131
- package/packages/agent/src/actions/wallet-action-shared.d.ts +15 -0
- package/packages/agent/src/actions/wallet-action-shared.d.ts.map +1 -0
- package/packages/agent/src/actions/wallet-action-shared.js +24 -0
- package/packages/agent/src/api/agent-admin-routes.d.ts.map +1 -1
- package/packages/agent/src/api/agent-admin-routes.js +1 -1
- package/packages/agent/src/api/binance-skill-helpers.d.ts.map +1 -1
- package/packages/agent/src/api/binance-skill-helpers.js +8 -3
- package/packages/agent/src/api/chat-routes.d.ts.map +1 -1
- package/packages/agent/src/api/chat-routes.js +20 -5
- package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts +1 -22
- package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts.map +1 -1
- package/packages/agent/src/api/coding-agents-auth-sanitize.js +1 -39
- package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts +1 -28
- package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts.map +1 -1
- package/packages/agent/src/api/coding-agents-preflight-normalize.js +1 -45
- package/packages/agent/src/api/coordinator-types.d.ts +1 -46
- package/packages/agent/src/api/coordinator-types.d.ts.map +1 -1
- package/packages/agent/src/api/coordinator-types.js +1 -1
- package/packages/agent/src/api/coordinator-wiring.d.ts +1 -45
- package/packages/agent/src/api/coordinator-wiring.d.ts.map +1 -1
- package/packages/agent/src/api/coordinator-wiring.js +1 -108
- package/packages/agent/src/api/index.d.ts +1 -1
- package/packages/agent/src/api/index.d.ts.map +1 -1
- package/packages/agent/src/api/index.js +1 -1
- package/packages/agent/src/api/lifeops-browser-packaging.d.ts +1 -15
- package/packages/agent/src/api/lifeops-browser-packaging.d.ts.map +1 -1
- package/packages/agent/src/api/lifeops-browser-packaging.js +1 -305
- package/packages/agent/src/api/lifeops-routes.d.ts +1 -19
- package/packages/agent/src/api/lifeops-routes.d.ts.map +1 -1
- package/packages/agent/src/api/lifeops-routes.js +1 -1173
- package/packages/agent/src/api/server.d.ts.map +1 -1
- package/packages/agent/src/api/server.js +6 -6
- package/packages/agent/src/api/task-agent-message-routing.d.ts +1 -9
- package/packages/agent/src/api/task-agent-message-routing.d.ts.map +1 -1
- package/packages/agent/src/api/task-agent-message-routing.js +1 -62
- package/packages/agent/src/api/website-blocker-routes.d.ts +1 -6
- package/packages/agent/src/api/website-blocker-routes.d.ts.map +1 -1
- package/packages/agent/src/api/website-blocker-routes.js +1 -174
- package/packages/agent/src/config/types.agent-defaults.d.ts +1 -1
- package/packages/agent/src/config/types.agent-defaults.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-eval-client.d.ts +1 -38
- package/packages/agent/src/evals/coordinator-eval-client.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-eval-client.js +1 -138
- package/packages/agent/src/evals/coordinator-live-runner.d.ts +1 -56
- package/packages/agent/src/evals/coordinator-live-runner.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-live-runner.js +1 -546
- package/packages/agent/src/evals/coordinator-preflight.d.ts +1 -31
- package/packages/agent/src/evals/coordinator-preflight.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-preflight.js +1 -296
- package/packages/agent/src/evals/coordinator-scenarios.d.ts +1 -23
- package/packages/agent/src/evals/coordinator-scenarios.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-scenarios.js +1 -1141
- package/packages/agent/src/lifeops/app-state.d.ts +1 -10
- package/packages/agent/src/lifeops/app-state.d.ts.map +1 -1
- package/packages/agent/src/lifeops/app-state.js +1 -32
- package/packages/agent/src/lifeops/apple-reminders.d.ts +1 -57
- package/packages/agent/src/lifeops/apple-reminders.d.ts.map +1 -1
- package/packages/agent/src/lifeops/apple-reminders.js +1 -325
- package/packages/agent/src/lifeops/defaults.d.ts +1 -23
- package/packages/agent/src/lifeops/defaults.d.ts.map +1 -1
- package/packages/agent/src/lifeops/defaults.js +1 -205
- package/packages/agent/src/lifeops/engine.d.ts +1 -7
- package/packages/agent/src/lifeops/engine.d.ts.map +1 -1
- package/packages/agent/src/lifeops/engine.js +1 -389
- package/packages/agent/src/lifeops/goal-grounding.d.ts +1 -53
- package/packages/agent/src/lifeops/goal-grounding.d.ts.map +1 -1
- package/packages/agent/src/lifeops/goal-grounding.js +1 -147
- package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts +1 -11
- package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts.map +1 -1
- package/packages/agent/src/lifeops/goal-semantic-evaluator.js +1 -154
- package/packages/agent/src/lifeops/google-api-error.d.ts +1 -6
- package/packages/agent/src/lifeops/google-api-error.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-api-error.js +1 -35
- package/packages/agent/src/lifeops/google-calendar.d.ts +1 -52
- package/packages/agent/src/lifeops/google-calendar.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-calendar.js +1 -268
- package/packages/agent/src/lifeops/google-connector-gateway.d.ts +1 -18
- package/packages/agent/src/lifeops/google-connector-gateway.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-connector-gateway.js +1 -65
- package/packages/agent/src/lifeops/google-fetch.d.ts +1 -10
- package/packages/agent/src/lifeops/google-fetch.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-fetch.js +1 -85
- package/packages/agent/src/lifeops/google-gmail.d.ts +1 -53
- package/packages/agent/src/lifeops/google-gmail.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-gmail.js +1 -471
- package/packages/agent/src/lifeops/google-managed-client.d.ts +1 -126
- package/packages/agent/src/lifeops/google-managed-client.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-managed-client.js +1 -294
- package/packages/agent/src/lifeops/google-oauth.d.ts +1 -60
- package/packages/agent/src/lifeops/google-oauth.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-oauth.js +1 -494
- package/packages/agent/src/lifeops/google-scopes.d.ts +1 -12
- package/packages/agent/src/lifeops/google-scopes.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-scopes.js +1 -96
- package/packages/agent/src/lifeops/index.d.ts +1 -2
- package/packages/agent/src/lifeops/index.d.ts.map +1 -1
- package/packages/agent/src/lifeops/index.js +1 -2
- package/packages/agent/src/lifeops/owner-profile.d.ts +1 -14
- package/packages/agent/src/lifeops/owner-profile.d.ts.map +1 -1
- package/packages/agent/src/lifeops/owner-profile.js +1 -194
- package/packages/agent/src/lifeops/repository.d.ts +1 -208
- package/packages/agent/src/lifeops/repository.d.ts.map +1 -1
- package/packages/agent/src/lifeops/repository.js +1 -3187
- package/packages/agent/src/lifeops/runtime.d.ts +1 -13
- package/packages/agent/src/lifeops/runtime.d.ts.map +1 -1
- package/packages/agent/src/lifeops/runtime.js +1 -120
- package/packages/agent/src/lifeops/screen-context.d.ts +1 -51
- package/packages/agent/src/lifeops/screen-context.d.ts.map +1 -1
- package/packages/agent/src/lifeops/screen-context.js +1 -332
- package/packages/agent/src/lifeops/seed-routines.d.ts +1 -19
- package/packages/agent/src/lifeops/seed-routines.d.ts.map +1 -1
- package/packages/agent/src/lifeops/seed-routines.js +1 -111
- package/packages/agent/src/lifeops/service.d.ts +1 -274
- package/packages/agent/src/lifeops/service.d.ts.map +1 -1
- package/packages/agent/src/lifeops/service.js +1 -9260
- package/packages/agent/src/lifeops/sql.d.ts +1 -30
- package/packages/agent/src/lifeops/sql.d.ts.map +1 -1
- package/packages/agent/src/lifeops/sql.js +1 -247
- package/packages/agent/src/lifeops/time.d.ts +1 -16
- package/packages/agent/src/lifeops/time.d.ts.map +1 -1
- package/packages/agent/src/lifeops/time.js +1 -132
- package/packages/agent/src/lifeops/twilio.d.ts +1 -24
- package/packages/agent/src/lifeops/twilio.d.ts.map +1 -1
- package/packages/agent/src/lifeops/twilio.js +1 -157
- package/packages/agent/src/lifeops/x-poster.d.ts +1 -18
- package/packages/agent/src/lifeops/x-poster.d.ts.map +1 -1
- package/packages/agent/src/lifeops/x-poster.js +1 -148
- package/packages/agent/src/providers/inbox-triage.d.ts +1 -2
- package/packages/agent/src/providers/inbox-triage.d.ts.map +1 -1
- package/packages/agent/src/providers/inbox-triage.js +1 -89
- package/packages/agent/src/providers/index.d.ts +4 -1
- package/packages/agent/src/providers/index.d.ts.map +1 -1
- package/packages/agent/src/providers/index.js +4 -1
- package/packages/agent/src/providers/lifeops.d.ts +1 -2
- package/packages/agent/src/providers/lifeops.d.ts.map +1 -1
- package/packages/agent/src/providers/lifeops.js +1 -157
- package/packages/agent/src/providers/local-models.d.ts +118 -0
- package/packages/agent/src/providers/local-models.d.ts.map +1 -0
- package/packages/agent/src/providers/local-models.js +427 -0
- package/packages/agent/src/providers/media-provider.d.ts +192 -0
- package/packages/agent/src/providers/media-provider.d.ts.map +1 -0
- package/packages/agent/src/providers/media-provider.js +1088 -0
- package/packages/agent/src/providers/self-status.d.ts +4 -0
- package/packages/agent/src/providers/self-status.d.ts.map +1 -0
- package/packages/agent/src/providers/self-status.js +12 -0
- package/packages/agent/src/providers/tasks.d.ts.map +1 -1
- package/packages/agent/src/providers/tasks.js +7 -7
- package/packages/agent/src/runtime/core-plugins.js +1 -1
- package/packages/agent/src/runtime/eliza-plugin.d.ts.map +1 -1
- package/packages/agent/src/runtime/eliza-plugin.js +1 -7
- package/packages/agent/src/runtime/eliza.js +2 -2
- package/packages/agent/src/runtime/plugin-collector.js +3 -3
- package/packages/agent/src/runtime/plugin-lifecycle.d.ts.map +1 -1
- package/packages/agent/src/runtime/plugin-lifecycle.js +3 -13
- package/packages/agent/src/runtime/trajectory-internals.d.ts.map +1 -1
- package/packages/agent/src/runtime/trajectory-internals.js +1 -3
- package/packages/agent/src/services/built-in-app-routes/hyperscape.d.ts.map +1 -1
- package/packages/agent/src/services/coding-task-executor.d.ts +3 -3
- package/packages/agent/src/services/coding-task-executor.js +3 -3
- package/packages/shared/src/awareness/index.d.ts +2 -0
- package/packages/shared/src/awareness/index.d.ts.map +1 -0
- package/packages/shared/src/awareness/index.js +1 -0
- package/packages/shared/src/awareness/registry.d.ts +27 -0
- package/packages/shared/src/awareness/registry.d.ts.map +1 -0
- package/packages/shared/src/awareness/registry.js +161 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts +24 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts.map +1 -1
- package/packages/shared/src/i18n/generated/validation-keyword-data.js +24 -0
- package/packages/shared/src/runtime-env.d.ts.map +1 -1
- package/packages/shared/src/runtime-env.js +5 -1
- package/packages/typescript/src/generated/action-docs.d.ts +135 -0
- package/packages/typescript/src/generated/action-docs.d.ts.map +1 -1
- package/packages/typescript/src/generated/action-docs.js +237 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts +24 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts.map +1 -1
- package/packages/typescript/src/i18n/generated/validation-keyword-data.js +24 -0
- package/packages/typescript/src/index.node.d.ts +2 -2
- package/packages/typescript/src/index.node.d.ts.map +1 -1
- package/packages/typescript/src/index.node.js +4 -3
- package/packages/typescript/src/plugin-lifecycle.d.ts.map +1 -1
- package/packages/typescript/src/plugin-lifecycle.js +42 -3
- package/packages/typescript/src/services/message.d.ts.map +1 -1
- package/packages/typescript/src/services/message.js +32 -0
- package/apps/app-training/src/core/cli.d.ts +0 -11
- package/apps/app-training/src/core/cli.d.ts.map +0 -1
- package/apps/app-training/src/core/cli.js +0 -302
- package/apps/app-training/src/core/context-audit.d.ts +0 -51
- package/apps/app-training/src/core/context-audit.d.ts.map +0 -1
- package/apps/app-training/src/core/context-audit.js +0 -141
- package/apps/app-training/src/core/context-catalog.d.ts +0 -47
- package/apps/app-training/src/core/context-catalog.d.ts.map +0 -1
- package/apps/app-training/src/core/context-catalog.js +0 -259
- package/apps/app-training/src/core/context-types.d.ts +0 -3
- package/apps/app-training/src/core/context-types.d.ts.map +0 -1
- package/apps/app-training/src/core/context-types.js +0 -11
- package/apps/app-training/src/core/dataset-generator.d.ts +0 -135
- package/apps/app-training/src/core/dataset-generator.d.ts.map +0 -1
- package/apps/app-training/src/core/dataset-generator.js +0 -703
- package/apps/app-training/src/core/replay-validator.d.ts +0 -96
- package/apps/app-training/src/core/replay-validator.d.ts.map +0 -1
- package/apps/app-training/src/core/replay-validator.js +0 -265
- package/apps/app-training/src/core/roleplay-executor.d.ts +0 -123
- package/apps/app-training/src/core/roleplay-executor.d.ts.map +0 -1
- package/apps/app-training/src/core/roleplay-executor.js +0 -645
- package/apps/app-training/src/core/roleplay-trajectories.d.ts +0 -54
- package/apps/app-training/src/core/roleplay-trajectories.d.ts.map +0 -1
- package/apps/app-training/src/core/roleplay-trajectories.js +0 -73
- package/apps/app-training/src/core/scenario-blueprints.d.ts +0 -62
- package/apps/app-training/src/core/scenario-blueprints.d.ts.map +0 -1
- package/apps/app-training/src/core/scenario-blueprints.js +0 -790
- package/apps/app-training/src/core/trajectory-task-datasets.d.ts +0 -38
- package/apps/app-training/src/core/trajectory-task-datasets.d.ts.map +0 -1
- package/apps/app-training/src/core/trajectory-task-datasets.js +0 -281
- package/apps/app-training/src/core/vertex-tuning.d.ts +0 -139
- package/apps/app-training/src/core/vertex-tuning.d.ts.map +0 -1
- package/apps/app-training/src/core/vertex-tuning.js +0 -234
- package/packages/agent/src/inbox/channel-deep-links.d.ts.map +0 -1
- package/packages/agent/src/inbox/config.d.ts.map +0 -1
- package/packages/agent/src/inbox/message-fetcher.d.ts.map +0 -1
- package/packages/agent/src/inbox/reflection.d.ts.map +0 -1
- package/packages/agent/src/inbox/repository.d.ts.map +0 -1
- package/packages/agent/src/inbox/triage-classifier.d.ts.map +0 -1
- package/packages/agent/src/inbox/types.d.ts.map +0 -1
- package/packages/agent/src/training/cli.d.ts +0 -2
- package/packages/agent/src/training/cli.d.ts.map +0 -1
- package/packages/agent/src/training/cli.js +0 -2
- package/packages/agent/src/training/context-audit.d.ts +0 -2
- package/packages/agent/src/training/context-audit.d.ts.map +0 -1
- package/packages/agent/src/training/context-audit.js +0 -2
- package/packages/agent/src/training/context-catalog.d.ts +0 -2
- package/packages/agent/src/training/context-catalog.d.ts.map +0 -1
- package/packages/agent/src/training/context-catalog.js +0 -2
- package/packages/agent/src/training/context-types.d.ts +0 -2
- package/packages/agent/src/training/context-types.d.ts.map +0 -1
- package/packages/agent/src/training/context-types.js +0 -2
- package/packages/agent/src/training/dataset-generator.d.ts +0 -2
- package/packages/agent/src/training/dataset-generator.d.ts.map +0 -1
- package/packages/agent/src/training/dataset-generator.js +0 -2
- package/packages/agent/src/training/replay-validator.d.ts +0 -2
- package/packages/agent/src/training/replay-validator.d.ts.map +0 -1
- package/packages/agent/src/training/replay-validator.js +0 -2
- package/packages/agent/src/training/roleplay-executor.d.ts +0 -2
- package/packages/agent/src/training/roleplay-executor.d.ts.map +0 -1
- package/packages/agent/src/training/roleplay-executor.js +0 -2
- package/packages/agent/src/training/roleplay-trajectories.d.ts +0 -2
- package/packages/agent/src/training/roleplay-trajectories.d.ts.map +0 -1
- package/packages/agent/src/training/roleplay-trajectories.js +0 -2
- package/packages/agent/src/training/scenario-blueprints.d.ts +0 -2
- package/packages/agent/src/training/scenario-blueprints.d.ts.map +0 -1
- package/packages/agent/src/training/scenario-blueprints.js +0 -2
- package/packages/agent/src/training/trajectory-task-datasets.d.ts +0 -2
- package/packages/agent/src/training/trajectory-task-datasets.d.ts.map +0 -1
- package/packages/agent/src/training/trajectory-task-datasets.js +0 -2
- package/packages/agent/src/training/vertex-tuning.d.ts +0 -2
- package/packages/agent/src/training/vertex-tuning.d.ts.map +0 -1
- package/packages/agent/src/training/vertex-tuning.js +0 -2
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.d.ts +0 -41
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.js +0 -443
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.d.ts +0 -34
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.js +0 -171
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.js +0 -55
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.js +0 -214
- package/packages/typescript/src/features/orchestrator/actions/list-agents.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/actions/list-agents.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/list-agents.js +0 -174
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.js +0 -428
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.js +0 -189
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.js +0 -265
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.js +0 -356
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.js +0 -270
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.js +0 -192
- package/packages/typescript/src/features/orchestrator/actions/task-control.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-control.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-control.js +0 -217
- package/packages/typescript/src/features/orchestrator/actions/task-history.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-history.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-history.js +0 -323
- package/packages/typescript/src/features/orchestrator/actions/task-share.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-share.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-share.js +0 -168
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.js +0 -68
- package/packages/typescript/src/features/orchestrator/api/agent-routes.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/api/agent-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/agent-routes.js +0 -654
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.js +0 -403
- package/packages/typescript/src/features/orchestrator/api/hook-routes.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/api/hook-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/hook-routes.js +0 -164
- package/packages/typescript/src/features/orchestrator/api/issue-routes.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/api/issue-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/issue-routes.js +0 -132
- package/packages/typescript/src/features/orchestrator/api/routes.d.ts +0 -37
- package/packages/typescript/src/features/orchestrator/api/routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/routes.js +0 -96
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.js +0 -149
- package/packages/typescript/src/features/orchestrator/base-plugin.d.ts +0 -19
- package/packages/typescript/src/features/orchestrator/base-plugin.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/base-plugin.js +0 -75
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.d.ts +0 -101
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.js +0 -310
- package/packages/typescript/src/features/orchestrator/index.d.ts +0 -33
- package/packages/typescript/src/features/orchestrator/index.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/index.js +0 -30
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.d.ts +0 -15
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.js +0 -1449
- package/packages/typescript/src/features/orchestrator/providers/action-examples.d.ts +0 -14
- package/packages/typescript/src/features/orchestrator/providers/action-examples.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/providers/action-examples.js +0 -151
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.js +0 -142
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.d.ts +0 -6
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.js +0 -91
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.d.ts +0 -30
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.js +0 -54
- package/packages/typescript/src/features/orchestrator/services/agent-selection.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/agent-selection.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-selection.js +0 -70
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.d.ts +0 -61
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.js +0 -252
- package/packages/typescript/src/features/orchestrator/services/config-env.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/services/config-env.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/config-env.js +0 -37
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts +0 -50
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.js +0 -184
- package/packages/typescript/src/features/orchestrator/services/debug-capture.d.ts +0 -38
- package/packages/typescript/src/features/orchestrator/services/debug-capture.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/debug-capture.js +0 -113
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.d.ts +0 -30
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.js +0 -146
- package/packages/typescript/src/features/orchestrator/services/pty-init.d.ts +0 -54
- package/packages/typescript/src/features/orchestrator/services/pty-init.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-init.js +0 -315
- package/packages/typescript/src/features/orchestrator/services/pty-service.d.ts +0 -175
- package/packages/typescript/src/features/orchestrator/services/pty-service.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-service.js +0 -1469
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.d.ts +0 -49
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.js +0 -180
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.js +0 -280
- package/packages/typescript/src/features/orchestrator/services/pty-types.d.ts +0 -80
- package/packages/typescript/src/features/orchestrator/services/pty-types.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-types.js +0 -51
- package/packages/typescript/src/features/orchestrator/services/repo-input.d.ts +0 -16
- package/packages/typescript/src/features/orchestrator/services/repo-input.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/repo-input.js +0 -88
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.d.ts +0 -69
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.js +0 -446
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.d.ts +0 -97
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.js +0 -342
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.d.ts +0 -421
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.js +0 -2356
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.d.ts +0 -52
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.js +0 -1538
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.d.ts +0 -49
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.js +0 -171
- package/packages/typescript/src/features/orchestrator/services/swarm-history.d.ts +0 -27
- package/packages/typescript/src/features/orchestrator/services/swarm-history.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-history.js +0 -148
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.js +0 -265
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.d.ts +0 -8
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.js +0 -114
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.d.ts +0 -68
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.js +0 -559
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.d.ts +0 -82
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.js +0 -738
- package/packages/typescript/src/features/orchestrator/services/task-kind.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/services/task-kind.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-kind.js +0 -40
- package/packages/typescript/src/features/orchestrator/services/task-policy.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/services/task-policy.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-policy.js +0 -226
- package/packages/typescript/src/features/orchestrator/services/task-registry.d.ts +0 -550
- package/packages/typescript/src/features/orchestrator/services/task-registry.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-registry.js +0 -2182
- package/packages/typescript/src/features/orchestrator/services/task-share.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/services/task-share.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-share.js +0 -159
- package/packages/typescript/src/features/orchestrator/services/task-validation.d.ts +0 -69
- package/packages/typescript/src/features/orchestrator/services/task-validation.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-validation.js +0 -587
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.d.ts +0 -5
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.js +0 -372
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.d.ts +0 -73
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.js +0 -64
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.js +0 -260
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.d.ts +0 -28
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.js +0 -105
- package/packages/typescript/src/features/orchestrator/services/workspace-github.d.ts +0 -58
- package/packages/typescript/src/features/orchestrator/services/workspace-github.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-github.js +0 -139
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.js +0 -86
- package/packages/typescript/src/features/orchestrator/services/workspace-service.d.ts +0 -118
- package/packages/typescript/src/features/orchestrator/services/workspace-service.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-service.js +0 -533
- package/packages/typescript/src/features/orchestrator/services/workspace-types.d.ts +0 -81
- package/packages/typescript/src/features/orchestrator/services/workspace-types.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-types.js +0 -8
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.d.ts +0 -38
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.js +0 -293
- /package/{packages/agent → apps/app-lifeops}/src/inbox/channel-deep-links.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/channel-deep-links.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/config.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/message-fetcher.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/message-fetcher.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/reflection.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/reflection.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/repository.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/repository.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/triage-classifier.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/triage-classifier.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/types.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/types.js +0 -0
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Issue Route Handlers
|
|
3
|
-
*
|
|
4
|
-
* Handles routes for GitHub issue management:
|
|
5
|
-
* - List issues, create issue
|
|
6
|
-
* - Get issue, comment on issue, close issue
|
|
7
|
-
*
|
|
8
|
-
* @module api/issue-routes
|
|
9
|
-
*/
|
|
10
|
-
import { parseBody, sendError, sendJson } from "./routes.js";
|
|
11
|
-
/**
|
|
12
|
-
* Handle issue routes (/api/issues/*)
|
|
13
|
-
* Returns true if the route was handled, false otherwise
|
|
14
|
-
*/
|
|
15
|
-
export async function handleIssueRoutes(req, res, pathname, ctx) {
|
|
16
|
-
const method = req.method?.toUpperCase();
|
|
17
|
-
// GET /api/issues?repo=owner/repo&state=open
|
|
18
|
-
if (method === "GET" && pathname === "/api/issues") {
|
|
19
|
-
if (!ctx.workspaceService) {
|
|
20
|
-
sendError(res, "Workspace Service not available", 503);
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
try {
|
|
24
|
-
const url = new URL(req.url || "", `http://${req.headers.host}`);
|
|
25
|
-
const repo = url.searchParams.get("repo");
|
|
26
|
-
if (!repo) {
|
|
27
|
-
sendError(res, "repo query parameter required", 400);
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
const state = url.searchParams.get("state");
|
|
31
|
-
const labelsParam = url.searchParams.get("labels");
|
|
32
|
-
const labels = labelsParam
|
|
33
|
-
? labelsParam.split(",").map((s) => s.trim())
|
|
34
|
-
: undefined;
|
|
35
|
-
const issues = await ctx.workspaceService.listIssues(repo, {
|
|
36
|
-
state: state ?? "open",
|
|
37
|
-
labels,
|
|
38
|
-
});
|
|
39
|
-
sendJson(res, issues);
|
|
40
|
-
}
|
|
41
|
-
catch (error) {
|
|
42
|
-
sendError(res, error instanceof Error ? error.message : "Failed to list issues", 500);
|
|
43
|
-
}
|
|
44
|
-
return true;
|
|
45
|
-
}
|
|
46
|
-
// POST /api/issues
|
|
47
|
-
if (method === "POST" && pathname === "/api/issues") {
|
|
48
|
-
if (!ctx.workspaceService) {
|
|
49
|
-
sendError(res, "Workspace Service not available", 503);
|
|
50
|
-
return true;
|
|
51
|
-
}
|
|
52
|
-
try {
|
|
53
|
-
const body = await parseBody(req);
|
|
54
|
-
const { repo, title, body: issueBody, labels } = body;
|
|
55
|
-
if (!repo || !title) {
|
|
56
|
-
sendError(res, "repo and title are required", 400);
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
const issue = await ctx.workspaceService.createIssue(repo, {
|
|
60
|
-
title: title,
|
|
61
|
-
body: issueBody ?? "",
|
|
62
|
-
labels: labels,
|
|
63
|
-
});
|
|
64
|
-
sendJson(res, issue, 201);
|
|
65
|
-
}
|
|
66
|
-
catch (error) {
|
|
67
|
-
sendError(res, error instanceof Error ? error.message : "Failed to create issue", 500);
|
|
68
|
-
}
|
|
69
|
-
return true;
|
|
70
|
-
}
|
|
71
|
-
// GET /api/issues/:repo/:number (e.g., /api/issues/owner/repo/42)
|
|
72
|
-
const issueGetMatch = pathname.match(/^\/api\/issues\/([^/]+)\/([^/]+)\/(\d+)$/);
|
|
73
|
-
if (method === "GET" && issueGetMatch) {
|
|
74
|
-
if (!ctx.workspaceService) {
|
|
75
|
-
sendError(res, "Workspace Service not available", 503);
|
|
76
|
-
return true;
|
|
77
|
-
}
|
|
78
|
-
try {
|
|
79
|
-
const repo = `${issueGetMatch[1]}/${issueGetMatch[2]}`;
|
|
80
|
-
const issueNumber = parseInt(issueGetMatch[3], 10);
|
|
81
|
-
const issue = await ctx.workspaceService.getIssue(repo, issueNumber);
|
|
82
|
-
sendJson(res, issue);
|
|
83
|
-
}
|
|
84
|
-
catch (error) {
|
|
85
|
-
sendError(res, error instanceof Error ? error.message : "Failed to get issue", 500);
|
|
86
|
-
}
|
|
87
|
-
return true;
|
|
88
|
-
}
|
|
89
|
-
// POST /api/issues/:repo/:number/comment
|
|
90
|
-
const commentMatch = pathname.match(/^\/api\/issues\/([^/]+)\/([^/]+)\/(\d+)\/comment$/);
|
|
91
|
-
if (method === "POST" && commentMatch) {
|
|
92
|
-
if (!ctx.workspaceService) {
|
|
93
|
-
sendError(res, "Workspace Service not available", 503);
|
|
94
|
-
return true;
|
|
95
|
-
}
|
|
96
|
-
try {
|
|
97
|
-
const repo = `${commentMatch[1]}/${commentMatch[2]}`;
|
|
98
|
-
const issueNumber = parseInt(commentMatch[3], 10);
|
|
99
|
-
const body = await parseBody(req);
|
|
100
|
-
if (!body.body) {
|
|
101
|
-
sendError(res, "body is required", 400);
|
|
102
|
-
return true;
|
|
103
|
-
}
|
|
104
|
-
const comment = await ctx.workspaceService.addComment(repo, issueNumber, body.body);
|
|
105
|
-
sendJson(res, comment, 201);
|
|
106
|
-
}
|
|
107
|
-
catch (error) {
|
|
108
|
-
sendError(res, error instanceof Error ? error.message : "Failed to add comment", 500);
|
|
109
|
-
}
|
|
110
|
-
return true;
|
|
111
|
-
}
|
|
112
|
-
// POST /api/issues/:repo/:number/close
|
|
113
|
-
const closeMatch = pathname.match(/^\/api\/issues\/([^/]+)\/([^/]+)\/(\d+)\/close$/);
|
|
114
|
-
if (method === "POST" && closeMatch) {
|
|
115
|
-
if (!ctx.workspaceService) {
|
|
116
|
-
sendError(res, "Workspace Service not available", 503);
|
|
117
|
-
return true;
|
|
118
|
-
}
|
|
119
|
-
try {
|
|
120
|
-
const repo = `${closeMatch[1]}/${closeMatch[2]}`;
|
|
121
|
-
const issueNumber = parseInt(closeMatch[3], 10);
|
|
122
|
-
const issue = await ctx.workspaceService.closeIssue(repo, issueNumber);
|
|
123
|
-
sendJson(res, issue);
|
|
124
|
-
}
|
|
125
|
-
catch (error) {
|
|
126
|
-
sendError(res, error instanceof Error ? error.message : "Failed to close issue", 500);
|
|
127
|
-
}
|
|
128
|
-
return true;
|
|
129
|
-
}
|
|
130
|
-
// Route not handled
|
|
131
|
-
return false;
|
|
132
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Task Agent API Routes — Dispatcher
|
|
3
|
-
*
|
|
4
|
-
* Provides shared helpers (parseBody, sendJson, sendError), types, and the
|
|
5
|
-
* top-level route dispatcher that delegates to domain-specific route modules.
|
|
6
|
-
*
|
|
7
|
-
* @module api/routes
|
|
8
|
-
*/
|
|
9
|
-
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
10
|
-
import type { IAgentRuntime } from "@elizaos/core";
|
|
11
|
-
import type { PTYService } from "../services/pty-service.ts";
|
|
12
|
-
import type { SwarmCoordinator } from "../services/swarm-coordinator.ts";
|
|
13
|
-
import type { CodingWorkspaceService } from "../services/workspace-service.ts";
|
|
14
|
-
export type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
15
|
-
[key: string]: JsonValue;
|
|
16
|
-
};
|
|
17
|
-
export interface RouteContext {
|
|
18
|
-
runtime: IAgentRuntime;
|
|
19
|
-
ptyService: PTYService | null;
|
|
20
|
-
workspaceService: CodingWorkspaceService | null;
|
|
21
|
-
coordinator?: SwarmCoordinator;
|
|
22
|
-
}
|
|
23
|
-
export declare const MAX_BODY_SIZE: number;
|
|
24
|
-
export declare function parseBody(req: IncomingMessage): Promise<Record<string, unknown>>;
|
|
25
|
-
export declare function sendJson(res: ServerResponse, data: JsonValue, status?: number): void;
|
|
26
|
-
export declare function sendError(res: ServerResponse, message: string, status?: number): void;
|
|
27
|
-
/**
|
|
28
|
-
* Handle task-agent routes
|
|
29
|
-
* Returns true if the route was handled, false otherwise
|
|
30
|
-
*/
|
|
31
|
-
export declare function handleCodingAgentRoutes(req: IncomingMessage, res: ServerResponse, pathname: string, ctx: RouteContext): Promise<boolean>;
|
|
32
|
-
/**
|
|
33
|
-
* Create route handler with services from runtime
|
|
34
|
-
*/
|
|
35
|
-
export declare function createCodingAgentRouteHandler(runtime: IAgentRuntime, coordinator?: SwarmCoordinator): (req: IncomingMessage, res: ServerResponse, pathname: string) => Promise<boolean>;
|
|
36
|
-
export declare const createTaskAgentRouteHandler: typeof createCodingAgentRouteHandler;
|
|
37
|
-
//# sourceMappingURL=routes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/api/routes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAO/E,MAAM,MAAM,SAAS,GAClB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,EAAE,GACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAEhC,MAAM,WAAW,YAAY;IAC5B,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,gBAAgB,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAChD,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAGD,eAAO,MAAM,aAAa,QAAc,CAAC;AAGzC,wBAAsB,SAAS,CAC9B,GAAG,EAAE,eAAe,GAClB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAsBlC;AAGD,wBAAgB,QAAQ,CACvB,GAAG,EAAE,cAAc,EACnB,IAAI,EAAE,SAAS,EACf,MAAM,SAAM,GACV,IAAI,CAGN;AAGD,wBAAgB,SAAS,CACxB,GAAG,EAAE,cAAc,EACnB,OAAO,EAAE,MAAM,EACf,MAAM,SAAM,GACV,IAAI,CAEN;AAED;;;GAGG;AACH,wBAAsB,uBAAuB,CAC5C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,YAAY,GACf,OAAO,CAAC,OAAO,CAAC,CAgClB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAC5C,OAAO,EAAE,aAAa,EACtB,WAAW,CAAC,EAAE,gBAAgB,IAEtB,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,UAAU,MAAM,sBAiBnE;AAED,eAAO,MAAM,2BAA2B,sCAAgC,CAAC"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Task Agent API Routes — Dispatcher
|
|
3
|
-
*
|
|
4
|
-
* Provides shared helpers (parseBody, sendJson, sendError), types, and the
|
|
5
|
-
* top-level route dispatcher that delegates to domain-specific route modules.
|
|
6
|
-
*
|
|
7
|
-
* @module api/routes
|
|
8
|
-
*/
|
|
9
|
-
import { handleAgentRoutes } from "./agent-routes.js";
|
|
10
|
-
import { handleCoordinatorRoutes } from "./coordinator-routes.js";
|
|
11
|
-
import { handleHookRoutes } from "./hook-routes.js";
|
|
12
|
-
import { handleIssueRoutes } from "./issue-routes.js";
|
|
13
|
-
import { handleWorkspaceRoutes } from "./workspace-routes.js";
|
|
14
|
-
// Max request body size (1 MB)
|
|
15
|
-
export const MAX_BODY_SIZE = 1024 * 1024;
|
|
16
|
-
// Helper to parse JSON body with size limit
|
|
17
|
-
export async function parseBody(req) {
|
|
18
|
-
return new Promise((resolve, reject) => {
|
|
19
|
-
let body = "";
|
|
20
|
-
let size = 0;
|
|
21
|
-
req.on("data", (chunk) => {
|
|
22
|
-
size += typeof chunk === "string" ? chunk.length : chunk.byteLength;
|
|
23
|
-
if (size > MAX_BODY_SIZE) {
|
|
24
|
-
req.destroy();
|
|
25
|
-
reject(new Error("Request body too large"));
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
body += chunk;
|
|
29
|
-
});
|
|
30
|
-
req.on("end", () => {
|
|
31
|
-
try {
|
|
32
|
-
resolve(body ? JSON.parse(body) : {});
|
|
33
|
-
}
|
|
34
|
-
catch {
|
|
35
|
-
reject(new Error("Invalid JSON body"));
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
req.on("error", reject);
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
// Helper to send JSON response
|
|
42
|
-
export function sendJson(res, data, status = 200) {
|
|
43
|
-
res.writeHead(status, { "Content-Type": "application/json" });
|
|
44
|
-
res.end(JSON.stringify(data));
|
|
45
|
-
}
|
|
46
|
-
// Helper to send error
|
|
47
|
-
export function sendError(res, message, status = 400) {
|
|
48
|
-
sendJson(res, { error: message }, status);
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Handle task-agent routes
|
|
52
|
-
* Returns true if the route was handled, false otherwise
|
|
53
|
-
*/
|
|
54
|
-
export async function handleCodingAgentRoutes(req, res, pathname, ctx) {
|
|
55
|
-
const normalizedPathname = pathname.startsWith("/api/task-agents")
|
|
56
|
-
? pathname.replace(/^\/api\/task-agents/, "/api/coding-agents")
|
|
57
|
-
: pathname;
|
|
58
|
-
// Delegate to hook routes first — hooks need fast responses
|
|
59
|
-
if (await handleHookRoutes(req, res, normalizedPathname, ctx)) {
|
|
60
|
-
return true;
|
|
61
|
-
}
|
|
62
|
-
// Delegate to coordinator routes (before agent routes — more specific prefix)
|
|
63
|
-
if (await handleCoordinatorRoutes(req, res, normalizedPathname, ctx)) {
|
|
64
|
-
return true;
|
|
65
|
-
}
|
|
66
|
-
// Delegate to agent routes
|
|
67
|
-
if (await handleAgentRoutes(req, res, normalizedPathname, ctx)) {
|
|
68
|
-
return true;
|
|
69
|
-
}
|
|
70
|
-
// Delegate to workspace routes
|
|
71
|
-
if (await handleWorkspaceRoutes(req, res, normalizedPathname, ctx)) {
|
|
72
|
-
return true;
|
|
73
|
-
}
|
|
74
|
-
// Delegate to issue routes
|
|
75
|
-
if (await handleIssueRoutes(req, res, normalizedPathname, ctx)) {
|
|
76
|
-
return true;
|
|
77
|
-
}
|
|
78
|
-
// Route not handled
|
|
79
|
-
return false;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Create route handler with services from runtime
|
|
83
|
-
*/
|
|
84
|
-
export function createCodingAgentRouteHandler(runtime, coordinator) {
|
|
85
|
-
return (req, res, pathname) => {
|
|
86
|
-
const ctx = {
|
|
87
|
-
runtime,
|
|
88
|
-
ptyService: runtime.getService("PTY_SERVICE"),
|
|
89
|
-
workspaceService: runtime.getService("CODING_WORKSPACE_SERVICE"),
|
|
90
|
-
coordinator: coordinator ??
|
|
91
|
-
runtime.getService("SWARM_COORDINATOR"),
|
|
92
|
-
};
|
|
93
|
-
return handleCodingAgentRoutes(req, res, pathname, ctx);
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
export const createTaskAgentRouteHandler = createCodingAgentRouteHandler;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workspace Route Handlers
|
|
3
|
-
*
|
|
4
|
-
* Handles routes for git workspace management:
|
|
5
|
-
* - Provision (clone repos, create worktrees)
|
|
6
|
-
* - Get status, commit, push, create PR, delete
|
|
7
|
-
*
|
|
8
|
-
* @module api/workspace-routes
|
|
9
|
-
*/
|
|
10
|
-
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
11
|
-
import type { RouteContext } from "./routes.ts";
|
|
12
|
-
/**
|
|
13
|
-
* Handle workspace routes (/api/workspace/*)
|
|
14
|
-
* Returns true if the route was handled, false otherwise
|
|
15
|
-
*/
|
|
16
|
-
export declare function handleWorkspaceRoutes(req: IncomingMessage, res: ServerResponse, pathname: string, ctx: RouteContext): Promise<boolean>;
|
|
17
|
-
//# sourceMappingURL=workspace-routes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-routes.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/api/workspace-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAWhD;;;GAGG;AACH,wBAAsB,qBAAqB,CAC1C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,YAAY,GACf,OAAO,CAAC,OAAO,CAAC,CAkLlB"}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workspace Route Handlers
|
|
3
|
-
*
|
|
4
|
-
* Handles routes for git workspace management:
|
|
5
|
-
* - Provision (clone repos, create worktrees)
|
|
6
|
-
* - Get status, commit, push, create PR, delete
|
|
7
|
-
*
|
|
8
|
-
* @module api/workspace-routes
|
|
9
|
-
*/
|
|
10
|
-
import { parseBody, sendError, sendJson } from "./routes.js";
|
|
11
|
-
/**
|
|
12
|
-
* Handle workspace routes (/api/workspace/*)
|
|
13
|
-
* Returns true if the route was handled, false otherwise
|
|
14
|
-
*/
|
|
15
|
-
export async function handleWorkspaceRoutes(req, res, pathname, ctx) {
|
|
16
|
-
const method = req.method?.toUpperCase();
|
|
17
|
-
// POST /api/workspace/provision
|
|
18
|
-
if (method === "POST" && pathname === "/api/workspace/provision") {
|
|
19
|
-
if (!ctx.workspaceService) {
|
|
20
|
-
sendError(res, "Workspace Service not available", 503);
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
try {
|
|
24
|
-
const body = await parseBody(req);
|
|
25
|
-
const { repo, baseBranch, useWorktree, parentWorkspaceId, branchName } = body;
|
|
26
|
-
const workspace = await ctx.workspaceService.provisionWorkspace({
|
|
27
|
-
repo: repo,
|
|
28
|
-
baseBranch: baseBranch,
|
|
29
|
-
branchName: branchName,
|
|
30
|
-
useWorktree: useWorktree,
|
|
31
|
-
parentWorkspaceId: parentWorkspaceId,
|
|
32
|
-
});
|
|
33
|
-
sendJson(res, {
|
|
34
|
-
id: workspace.id,
|
|
35
|
-
path: workspace.path,
|
|
36
|
-
branch: workspace.branch,
|
|
37
|
-
isWorktree: workspace.isWorktree,
|
|
38
|
-
}, 201);
|
|
39
|
-
}
|
|
40
|
-
catch (error) {
|
|
41
|
-
sendError(res, error instanceof Error
|
|
42
|
-
? error.message
|
|
43
|
-
: "Failed to provision workspace", 500);
|
|
44
|
-
}
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
// GET /api/workspace/:id
|
|
48
|
-
const workspaceMatch = pathname.match(/^\/api\/workspace\/([^/]+)$/);
|
|
49
|
-
if (method === "GET" && workspaceMatch) {
|
|
50
|
-
if (!ctx.workspaceService) {
|
|
51
|
-
sendError(res, "Workspace Service not available", 503);
|
|
52
|
-
return true;
|
|
53
|
-
}
|
|
54
|
-
try {
|
|
55
|
-
const workspaceId = workspaceMatch[1];
|
|
56
|
-
const status = await ctx.workspaceService.getStatus(workspaceId);
|
|
57
|
-
sendJson(res, status);
|
|
58
|
-
}
|
|
59
|
-
catch (error) {
|
|
60
|
-
sendError(res, error instanceof Error ? error.message : "Failed to get workspace", 500);
|
|
61
|
-
}
|
|
62
|
-
return true;
|
|
63
|
-
}
|
|
64
|
-
// POST /api/workspace/:id/commit
|
|
65
|
-
const commitMatch = pathname.match(/^\/api\/workspace\/([^/]+)\/commit$/);
|
|
66
|
-
if (method === "POST" && commitMatch) {
|
|
67
|
-
if (!ctx.workspaceService) {
|
|
68
|
-
sendError(res, "Workspace Service not available", 503);
|
|
69
|
-
return true;
|
|
70
|
-
}
|
|
71
|
-
try {
|
|
72
|
-
const workspaceId = commitMatch[1];
|
|
73
|
-
const body = await parseBody(req);
|
|
74
|
-
const { message } = body;
|
|
75
|
-
const result = await ctx.workspaceService.commit(workspaceId, {
|
|
76
|
-
message: message,
|
|
77
|
-
all: true,
|
|
78
|
-
});
|
|
79
|
-
sendJson(res, result);
|
|
80
|
-
}
|
|
81
|
-
catch (error) {
|
|
82
|
-
sendError(res, error instanceof Error ? error.message : "Failed to commit", 500);
|
|
83
|
-
}
|
|
84
|
-
return true;
|
|
85
|
-
}
|
|
86
|
-
// POST /api/workspace/:id/push
|
|
87
|
-
const pushMatch = pathname.match(/^\/api\/workspace\/([^/]+)\/push$/);
|
|
88
|
-
if (method === "POST" && pushMatch) {
|
|
89
|
-
if (!ctx.workspaceService) {
|
|
90
|
-
sendError(res, "Workspace Service not available", 503);
|
|
91
|
-
return true;
|
|
92
|
-
}
|
|
93
|
-
try {
|
|
94
|
-
const workspaceId = pushMatch[1];
|
|
95
|
-
const body = await parseBody(req);
|
|
96
|
-
const result = await ctx.workspaceService.push(workspaceId, {
|
|
97
|
-
force: body.force,
|
|
98
|
-
setUpstream: body.setUpstream,
|
|
99
|
-
});
|
|
100
|
-
sendJson(res, result);
|
|
101
|
-
}
|
|
102
|
-
catch (error) {
|
|
103
|
-
sendError(res, error instanceof Error ? error.message : "Failed to push", 500);
|
|
104
|
-
}
|
|
105
|
-
return true;
|
|
106
|
-
}
|
|
107
|
-
// POST /api/workspace/:id/pr
|
|
108
|
-
const prMatch = pathname.match(/^\/api\/workspace\/([^/]+)\/pr$/);
|
|
109
|
-
if (method === "POST" && prMatch) {
|
|
110
|
-
if (!ctx.workspaceService) {
|
|
111
|
-
sendError(res, "Workspace Service not available", 503);
|
|
112
|
-
return true;
|
|
113
|
-
}
|
|
114
|
-
try {
|
|
115
|
-
const workspaceId = prMatch[1];
|
|
116
|
-
const body = await parseBody(req);
|
|
117
|
-
const result = await ctx.workspaceService.createPR(workspaceId, {
|
|
118
|
-
title: body.title,
|
|
119
|
-
body: body.body,
|
|
120
|
-
base: body.baseBranch,
|
|
121
|
-
draft: body.draft,
|
|
122
|
-
});
|
|
123
|
-
sendJson(res, result, 201);
|
|
124
|
-
}
|
|
125
|
-
catch (error) {
|
|
126
|
-
sendError(res, error instanceof Error ? error.message : "Failed to create PR", 500);
|
|
127
|
-
}
|
|
128
|
-
return true;
|
|
129
|
-
}
|
|
130
|
-
// DELETE /api/workspace/:id
|
|
131
|
-
const deleteMatch = pathname.match(/^\/api\/workspace\/([^/]+)$/);
|
|
132
|
-
if (method === "DELETE" && deleteMatch) {
|
|
133
|
-
if (!ctx.workspaceService) {
|
|
134
|
-
sendError(res, "Workspace Service not available", 503);
|
|
135
|
-
return true;
|
|
136
|
-
}
|
|
137
|
-
try {
|
|
138
|
-
const workspaceId = deleteMatch[1];
|
|
139
|
-
await ctx.workspaceService.removeWorkspace(workspaceId);
|
|
140
|
-
sendJson(res, { success: true, workspaceId });
|
|
141
|
-
}
|
|
142
|
-
catch (error) {
|
|
143
|
-
sendError(res, error instanceof Error ? error.message : "Failed to remove workspace", 500);
|
|
144
|
-
}
|
|
145
|
-
return true;
|
|
146
|
-
}
|
|
147
|
-
// Route not handled
|
|
148
|
-
return false;
|
|
149
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Task Agent Plugin for Eliza
|
|
3
|
-
*
|
|
4
|
-
* Provides orchestration capabilities for CLI-based task agents:
|
|
5
|
-
* - PTY session management (spawn, control, monitor task agents)
|
|
6
|
-
* - Git workspace provisioning (clone, branch, PR creation)
|
|
7
|
-
* - GitHub issue management (create, list, update, close)
|
|
8
|
-
* - Integration with Claude Code, Codex, Gemini CLI, Aider, Pi, etc.
|
|
9
|
-
*
|
|
10
|
-
* @module orchestrator
|
|
11
|
-
*/
|
|
12
|
-
import type { Plugin } from "../../types/index.ts";
|
|
13
|
-
/** Raw plugin object; the shipped entry applies patches in `patch-agent-orchestrator-plugin.ts`. */
|
|
14
|
-
export declare const taskAgentPluginBase: Plugin;
|
|
15
|
-
export declare const codingAgentPluginBase: Plugin;
|
|
16
|
-
export default taskAgentPluginBase;
|
|
17
|
-
/** Internal: unpatched plugin; prefer `createAgentOrchestratorPlugin` from `index.ts`. */
|
|
18
|
-
export declare function createAgentOrchestratorPluginBase(): Plugin;
|
|
19
|
-
//# sourceMappingURL=base-plugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-plugin.d.ts","sourceRoot":"","sources":["../../../../../../../typescript/src/features/orchestrator/base-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAuBnD,oGAAoG;AACpG,eAAO,MAAM,mBAAmB,EAAE,MAyCjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAsB,CAAC;AAEzD,eAAe,mBAAmB,CAAC;AAEnC,0FAA0F;AAC1F,wBAAgB,iCAAiC,IAAI,MAAM,CAE1D"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Task Agent Plugin for Eliza
|
|
3
|
-
*
|
|
4
|
-
* Provides orchestration capabilities for CLI-based task agents:
|
|
5
|
-
* - PTY session management (spawn, control, monitor task agents)
|
|
6
|
-
* - Git workspace provisioning (clone, branch, PR creation)
|
|
7
|
-
* - GitHub issue management (create, list, update, close)
|
|
8
|
-
* - Integration with Claude Code, Codex, Gemini CLI, Aider, Pi, etc.
|
|
9
|
-
*
|
|
10
|
-
* @module orchestrator
|
|
11
|
-
*/
|
|
12
|
-
import { finalizeWorkspaceAction } from "./actions/finalize-workspace.js";
|
|
13
|
-
import { listAgentsAction } from "./actions/list-agents.js";
|
|
14
|
-
// Actions - Issue management
|
|
15
|
-
import { manageIssuesAction } from "./actions/manage-issues.js";
|
|
16
|
-
// Actions - Workspace management
|
|
17
|
-
import { provisionWorkspaceAction } from "./actions/provision-workspace.js";
|
|
18
|
-
import { sendToAgentAction } from "./actions/send-to-agent.js";
|
|
19
|
-
// Actions - PTY management
|
|
20
|
-
import { spawnAgentAction } from "./actions/spawn-agent.js";
|
|
21
|
-
// Actions - Unified task launcher
|
|
22
|
-
import { startCodingTaskAction } from "./actions/start-coding-task.js";
|
|
23
|
-
import { stopAgentAction } from "./actions/stop-agent.js";
|
|
24
|
-
import { taskControlAction } from "./actions/task-control.js";
|
|
25
|
-
import { taskHistoryAction } from "./actions/task-history.js";
|
|
26
|
-
import { taskShareAction } from "./actions/task-share.js";
|
|
27
|
-
// Providers
|
|
28
|
-
import { codingAgentExamplesProvider } from "./providers/action-examples.js";
|
|
29
|
-
import { activeWorkspaceContextProvider } from "./providers/active-workspace-context.js";
|
|
30
|
-
// Services
|
|
31
|
-
import { PTYService } from "./services/pty-service.js";
|
|
32
|
-
import { CodingWorkspaceService } from "./services/workspace-service.js";
|
|
33
|
-
/** Raw plugin object; the shipped entry applies patches in `patch-agent-orchestrator-plugin.ts`. */
|
|
34
|
-
export const taskAgentPluginBase = {
|
|
35
|
-
name: "@elizaos/agent-orchestrator",
|
|
36
|
-
description: "Orchestrate open-ended task agents (Claude Code, Codex, Gemini CLI, Aider, Pi, etc.) via PTY sessions, " +
|
|
37
|
-
"manage workspaces, track current task status, and keep background work moving while the main agent stays in conversation",
|
|
38
|
-
// NOTE: init() is NOT reliably called by ElizaOS for workspace plugins.
|
|
39
|
-
// SwarmCoordinator and auth callback wiring is done in PTYService.start()
|
|
40
|
-
// which ElizaOS calls reliably via the services lifecycle.
|
|
41
|
-
// Services manage PTY sessions and git workspaces
|
|
42
|
-
// biome-ignore lint/suspicious/noExplicitAny: ElizaOS Plugin type expects Service[] but our classes don't extend their base Service
|
|
43
|
-
services: [PTYService, CodingWorkspaceService],
|
|
44
|
-
// Actions expose capabilities to the agent
|
|
45
|
-
actions: [
|
|
46
|
-
// Unified task launcher (provision + spawn in one step)
|
|
47
|
-
startCodingTaskAction,
|
|
48
|
-
// PTY session management (for direct control)
|
|
49
|
-
spawnAgentAction,
|
|
50
|
-
sendToAgentAction,
|
|
51
|
-
stopAgentAction,
|
|
52
|
-
listAgentsAction,
|
|
53
|
-
taskHistoryAction,
|
|
54
|
-
taskControlAction,
|
|
55
|
-
taskShareAction,
|
|
56
|
-
// Workspace management
|
|
57
|
-
provisionWorkspaceAction,
|
|
58
|
-
finalizeWorkspaceAction,
|
|
59
|
-
// Issue management
|
|
60
|
-
manageIssuesAction,
|
|
61
|
-
],
|
|
62
|
-
// No evaluators needed for now
|
|
63
|
-
evaluators: [],
|
|
64
|
-
// Providers inject context into the prompt
|
|
65
|
-
providers: [
|
|
66
|
-
activeWorkspaceContextProvider, // Live workspace/session state
|
|
67
|
-
codingAgentExamplesProvider, // Structured action call examples
|
|
68
|
-
],
|
|
69
|
-
};
|
|
70
|
-
export const codingAgentPluginBase = taskAgentPluginBase;
|
|
71
|
-
export default taskAgentPluginBase;
|
|
72
|
-
/** Internal: unpatched plugin; prefer `createAgentOrchestratorPlugin` from `index.ts`. */
|
|
73
|
-
export function createAgentOrchestratorPluginBase() {
|
|
74
|
-
return taskAgentPluginBase;
|
|
75
|
-
}
|
|
@@ -1,101 +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 type { IAgentRuntime } from "@elizaos/core";
|
|
44
|
-
/**
|
|
45
|
-
* Install the jsonl completion watcher on a runtime's PTY service.
|
|
46
|
-
* Idempotent — repeat calls on the same runtime are no-ops.
|
|
47
|
-
*
|
|
48
|
-
* The watcher subscribes to `onSessionEvent` to learn when sessions start
|
|
49
|
-
* (first event) and stop (`stopped` event), and runs one poller per live
|
|
50
|
-
* session. Pollers tear themselves down on `stopped` or after firing a
|
|
51
|
-
* completion event.
|
|
52
|
-
*/
|
|
53
|
-
export declare function installClaudeJsonlCompletionWatcher(runtime: IAgentRuntime, ptyService: unknown): void;
|
|
54
|
-
/**
|
|
55
|
-
* Locate the newest `.jsonl` file under Claude Code's project directory
|
|
56
|
-
* for a given workdir. Returns null if the directory or any matching
|
|
57
|
-
* file does not yet exist (e.g., the session has not produced output).
|
|
58
|
-
*
|
|
59
|
-
* "Newest" means most recently modified. Claude Code names session files
|
|
60
|
-
* with UUIDs, which do NOT sort chronologically — a workspace that has
|
|
61
|
-
* had multiple sessions will have multiple jsonl files, and picking the
|
|
62
|
-
* lexicographically last name returns a stale file from an older session
|
|
63
|
-
* roughly at random. We stat each file and pick the one with the greatest
|
|
64
|
-
* mtime instead. Files that fail to stat (e.g., deleted between readdir
|
|
65
|
-
* and stat) are skipped.
|
|
66
|
-
*
|
|
67
|
-
* Exported for tests.
|
|
68
|
-
*/
|
|
69
|
-
export declare function findLatestJsonl(workdir: string): Promise<string | null>;
|
|
70
|
-
/**
|
|
71
|
-
* Scan a claude code session jsonl string tail-first for the latest
|
|
72
|
-
* assistant message, returning its extracted text plus whether the turn
|
|
73
|
-
* has finished (`stop_reason === "end_turn"`).
|
|
74
|
-
*
|
|
75
|
-
* - Returns `null` if no assistant message exists at all.
|
|
76
|
-
* - Returns `{ text, isEndTurn: false }` when the latest assistant turn is
|
|
77
|
-
* still in progress (`tool_use`, `max_tokens` mid-batch, etc.) — the
|
|
78
|
-
* streamer uses this shape to post intermediate text without waiting.
|
|
79
|
-
* - Returns `{ text, isEndTurn: true }` when the latest assistant turn is
|
|
80
|
-
* finished — the watcher uses this to fire a synthetic `task_complete`.
|
|
81
|
-
*
|
|
82
|
-
* Exported so both the completion watcher and task-progress-streamer can
|
|
83
|
-
* share one jsonl parser.
|
|
84
|
-
*/
|
|
85
|
-
export declare function readLatestAssistantEntry(content: string): {
|
|
86
|
-
text: string;
|
|
87
|
-
isEndTurn: boolean;
|
|
88
|
-
} | null;
|
|
89
|
-
/**
|
|
90
|
-
* Convenience wrapper: locate the latest session jsonl for `workdir` and
|
|
91
|
-
* return the extracted assistant entry, or `null` if no file or no
|
|
92
|
-
* assistant message exists yet.
|
|
93
|
-
*
|
|
94
|
-
* Used by the task-progress-streamer and the completion watcher so they
|
|
95
|
-
* share one implementation of "read the latest claude assistant turn".
|
|
96
|
-
*/
|
|
97
|
-
export declare function readLatestAssistantFromWorkdir(workdir: string): Promise<{
|
|
98
|
-
text: string;
|
|
99
|
-
isEndTurn: boolean;
|
|
100
|
-
} | null>;
|
|
101
|
-
//# sourceMappingURL=claude-jsonl-completion-watcher.d.ts.map
|
package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"claude-jsonl-completion-watcher.d.ts","sourceRoot":"","sources":["../../../../../../../typescript/src/features/orchestrator/claude-jsonl-completion-watcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAoBnD;;;;;;;;GAQG;AACH,wBAAgB,mCAAmC,CAClD,OAAO,EAAE,aAAa,EACtB,UAAU,EAAE,OAAO,GACjB,IAAI,CA8DN;AA6ED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAiC7E;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CACvC,OAAO,EAAE,MAAM,GACb;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CA2B7C;AAED;;;;;;;GAOG;AACH,wBAAsB,8BAA8B,CACnD,OAAO,EAAE,MAAM,GACb,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CAAC,CAUtD"}
|