@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,428 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MANAGE_ISSUES action - Create, list, update, and close GitHub issues
|
|
3
|
-
*
|
|
4
|
-
* Provides full issue lifecycle management through the CodingWorkspaceService.
|
|
5
|
-
* Supports creating issues, listing issues, adding comments, closing, and reopening.
|
|
6
|
-
*
|
|
7
|
-
* @module actions/manage-issues
|
|
8
|
-
*/
|
|
9
|
-
import { requireTaskAgentAccess } from "../services/task-policy.js";
|
|
10
|
-
export const manageIssuesAction = {
|
|
11
|
-
name: "MANAGE_ISSUES",
|
|
12
|
-
similes: [
|
|
13
|
-
"CREATE_ISSUE",
|
|
14
|
-
"LIST_ISSUES",
|
|
15
|
-
"CLOSE_ISSUE",
|
|
16
|
-
"COMMENT_ISSUE",
|
|
17
|
-
"UPDATE_ISSUE",
|
|
18
|
-
"GET_ISSUE",
|
|
19
|
-
],
|
|
20
|
-
description: "Manage GitHub issues for a repository. " +
|
|
21
|
-
"Supports creating issues, listing issues, getting issue details, " +
|
|
22
|
-
"adding comments, updating, closing, and reopening issues.",
|
|
23
|
-
examples: [
|
|
24
|
-
[
|
|
25
|
-
{
|
|
26
|
-
name: "{{user1}}",
|
|
27
|
-
content: {
|
|
28
|
-
text: "Create an issue on the testbed repo to add a login page",
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
name: "{{agentName}}",
|
|
33
|
-
content: {
|
|
34
|
-
text: "I'll create that issue for you.",
|
|
35
|
-
action: "MANAGE_ISSUES",
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
[
|
|
40
|
-
{
|
|
41
|
-
name: "{{user1}}",
|
|
42
|
-
content: {
|
|
43
|
-
text: "List the open issues on HaruHunab1320/git-workspace-service-testbed",
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name: "{{agentName}}",
|
|
48
|
-
content: {
|
|
49
|
-
text: "Let me check the open issues for that repo.",
|
|
50
|
-
action: "MANAGE_ISSUES",
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
[
|
|
55
|
-
{
|
|
56
|
-
name: "{{user1}}",
|
|
57
|
-
content: { text: "Close issue #3 on the testbed repo" },
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: "{{agentName}}",
|
|
61
|
-
content: {
|
|
62
|
-
text: "I'll close that issue.",
|
|
63
|
-
action: "MANAGE_ISSUES",
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
],
|
|
68
|
-
validate: async (runtime, _message) => {
|
|
69
|
-
const workspaceService = runtime.getService("CODING_WORKSPACE_SERVICE");
|
|
70
|
-
return workspaceService != null;
|
|
71
|
-
},
|
|
72
|
-
handler: async (runtime, message, _state, options, callback) => {
|
|
73
|
-
const access = await requireTaskAgentAccess(runtime, message, "interact");
|
|
74
|
-
if (access.allowed === false) {
|
|
75
|
-
if (callback) {
|
|
76
|
-
await callback({ text: access.reason });
|
|
77
|
-
}
|
|
78
|
-
return { success: false, error: "FORBIDDEN", text: access.reason };
|
|
79
|
-
}
|
|
80
|
-
const workspaceService = runtime.getService("CODING_WORKSPACE_SERVICE");
|
|
81
|
-
if (!workspaceService) {
|
|
82
|
-
if (callback) {
|
|
83
|
-
await callback({ text: "Workspace Service is not available." });
|
|
84
|
-
}
|
|
85
|
-
return { success: false, error: "SERVICE_UNAVAILABLE" };
|
|
86
|
-
}
|
|
87
|
-
// Wire auth prompt so OAuth device flow surfaces through chat
|
|
88
|
-
workspaceService.setAuthPromptCallback((prompt) => {
|
|
89
|
-
if (callback) {
|
|
90
|
-
callback({
|
|
91
|
-
text: `I need GitHub access to manage issues. Please authorize me:\n\n` +
|
|
92
|
-
`Go to: ${prompt.verificationUri}\n` +
|
|
93
|
-
`Enter code: **${prompt.userCode}**\n\n` +
|
|
94
|
-
`This code expires in ${Math.floor(prompt.expiresIn / 60)} minutes. ` +
|
|
95
|
-
`I'll wait for you to complete authorization...`,
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
const params = options?.parameters;
|
|
100
|
-
const content = message.content;
|
|
101
|
-
const text = content.text ?? "";
|
|
102
|
-
const operation = params?.operation ??
|
|
103
|
-
content.operation ??
|
|
104
|
-
inferOperation(text);
|
|
105
|
-
const repo = params?.repo ?? content.repo;
|
|
106
|
-
if (!repo) {
|
|
107
|
-
// Try to extract repo from text
|
|
108
|
-
const urlMatch = text?.match(/(?:https?:\/\/github\.com\/)?([a-zA-Z0-9_.-]+\/[a-zA-Z0-9_.-]+)/);
|
|
109
|
-
if (!urlMatch) {
|
|
110
|
-
if (callback) {
|
|
111
|
-
await callback({
|
|
112
|
-
text: "Please specify a repository (e.g., owner/repo or a GitHub URL).",
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
return { success: false, error: "MISSING_REPO" };
|
|
116
|
-
}
|
|
117
|
-
return handleOperation(workspaceService, urlMatch[1], operation, params ?? content, text, callback);
|
|
118
|
-
}
|
|
119
|
-
return handleOperation(workspaceService, repo, operation, params ?? content, text, callback);
|
|
120
|
-
},
|
|
121
|
-
parameters: [
|
|
122
|
-
{
|
|
123
|
-
name: "operation",
|
|
124
|
-
description: "The operation to perform: create, list, get, update, comment, close, reopen, add_labels",
|
|
125
|
-
required: true,
|
|
126
|
-
schema: { type: "string" },
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
name: "repo",
|
|
130
|
-
description: "Repository in owner/repo format or full GitHub URL.",
|
|
131
|
-
required: true,
|
|
132
|
-
schema: { type: "string" },
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
name: "title",
|
|
136
|
-
description: "Issue title (for create operation).",
|
|
137
|
-
required: false,
|
|
138
|
-
schema: { type: "string" },
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
name: "body",
|
|
142
|
-
description: "Issue body/description (for create or comment operations).",
|
|
143
|
-
required: false,
|
|
144
|
-
schema: { type: "string" },
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
name: "issueNumber",
|
|
148
|
-
description: "Issue number (for get, update, comment, close, reopen operations).",
|
|
149
|
-
required: false,
|
|
150
|
-
schema: { type: "number" },
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
name: "labels",
|
|
154
|
-
description: "Labels to add (comma-separated string or array).",
|
|
155
|
-
required: false,
|
|
156
|
-
schema: { type: "string" },
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
name: "state",
|
|
160
|
-
description: "Filter by state: open, closed, or all (for list operation).",
|
|
161
|
-
required: false,
|
|
162
|
-
schema: { type: "string" },
|
|
163
|
-
},
|
|
164
|
-
],
|
|
165
|
-
};
|
|
166
|
-
async function handleOperation(service, repo, operation, params, originalText, callback) {
|
|
167
|
-
try {
|
|
168
|
-
switch (operation.toLowerCase()) {
|
|
169
|
-
case "create": {
|
|
170
|
-
const title = params.title;
|
|
171
|
-
const body = params.body;
|
|
172
|
-
// Support batch create: if no explicit title but text contains numbered items, create multiple
|
|
173
|
-
if (!title) {
|
|
174
|
-
const items = extractBulkItems(params.text ?? originalText);
|
|
175
|
-
if (items.length > 0) {
|
|
176
|
-
const labels = parseLabels(params.labels);
|
|
177
|
-
const created = [];
|
|
178
|
-
for (const item of items) {
|
|
179
|
-
const issue = await service.createIssue(repo, {
|
|
180
|
-
title: item.title,
|
|
181
|
-
body: item.body ?? "",
|
|
182
|
-
labels: labels.length > 0 ? labels : undefined,
|
|
183
|
-
});
|
|
184
|
-
created.push(issue);
|
|
185
|
-
}
|
|
186
|
-
if (callback) {
|
|
187
|
-
const summary = created
|
|
188
|
-
.map((i) => `#${i.number}: ${i.title}\n ${i.url}`)
|
|
189
|
-
.join("\n");
|
|
190
|
-
await callback({
|
|
191
|
-
text: `Created ${created.length} issues:\n${summary}`,
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
return { success: true, data: { issues: created } };
|
|
195
|
-
}
|
|
196
|
-
if (callback)
|
|
197
|
-
await callback({ text: "Issue title is required for create." });
|
|
198
|
-
return { success: false, error: "MISSING_TITLE" };
|
|
199
|
-
}
|
|
200
|
-
const labels = parseLabels(params.labels);
|
|
201
|
-
const issue = await service.createIssue(repo, {
|
|
202
|
-
title,
|
|
203
|
-
body: body ?? "",
|
|
204
|
-
labels: labels.length > 0 ? labels : undefined,
|
|
205
|
-
});
|
|
206
|
-
if (callback) {
|
|
207
|
-
await callback({
|
|
208
|
-
text: `Created issue #${issue.number}: ${issue.title}\n${issue.url}`,
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
return { success: true, data: { issue } };
|
|
212
|
-
}
|
|
213
|
-
case "list": {
|
|
214
|
-
const stateFilter = params.state ?? "open";
|
|
215
|
-
const labels = parseLabels(params.labels);
|
|
216
|
-
const issues = await service.listIssues(repo, {
|
|
217
|
-
state: stateFilter,
|
|
218
|
-
labels: labels.length > 0 ? labels : undefined,
|
|
219
|
-
});
|
|
220
|
-
if (callback) {
|
|
221
|
-
if (issues.length === 0) {
|
|
222
|
-
await callback({
|
|
223
|
-
text: `No ${stateFilter} issues found in ${repo}.`,
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
const summary = issues
|
|
228
|
-
.map((i) => `#${i.number} [${i.state}] ${i.title}${i.labels.length > 0 ? ` (${i.labels.join(", ")})` : ""}`)
|
|
229
|
-
.join("\n");
|
|
230
|
-
await callback({ text: `Issues in ${repo}:\n${summary}` });
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
return { success: true, data: { issues } };
|
|
234
|
-
}
|
|
235
|
-
case "get": {
|
|
236
|
-
const issueNumber = Number(params.issueNumber);
|
|
237
|
-
if (!issueNumber) {
|
|
238
|
-
if (callback)
|
|
239
|
-
await callback({ text: "Issue number is required." });
|
|
240
|
-
return { success: false, error: "MISSING_ISSUE_NUMBER" };
|
|
241
|
-
}
|
|
242
|
-
const issue = await service.getIssue(repo, issueNumber);
|
|
243
|
-
if (callback) {
|
|
244
|
-
await callback({
|
|
245
|
-
text: `Issue #${issue.number}: ${issue.title} [${issue.state}]\n\n${issue.body}\n\nLabels: ${issue.labels.join(", ") || "none"}\n${issue.url}`,
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
return { success: true, data: { issue } };
|
|
249
|
-
}
|
|
250
|
-
case "update": {
|
|
251
|
-
const issueNumber = Number(params.issueNumber);
|
|
252
|
-
if (!issueNumber) {
|
|
253
|
-
if (callback)
|
|
254
|
-
await callback({ text: "Issue number is required." });
|
|
255
|
-
return { success: false, error: "MISSING_ISSUE_NUMBER" };
|
|
256
|
-
}
|
|
257
|
-
const labels = parseLabels(params.labels);
|
|
258
|
-
const issue = await service.updateIssue(repo, issueNumber, {
|
|
259
|
-
title: params.title,
|
|
260
|
-
body: params.body,
|
|
261
|
-
labels: labels.length > 0 ? labels : undefined,
|
|
262
|
-
});
|
|
263
|
-
if (callback) {
|
|
264
|
-
await callback({
|
|
265
|
-
text: `Updated issue #${issue.number}: ${issue.title}`,
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
return { success: true, data: { issue } };
|
|
269
|
-
}
|
|
270
|
-
case "comment": {
|
|
271
|
-
const issueNumber = Number(params.issueNumber);
|
|
272
|
-
const body = params.body;
|
|
273
|
-
if (!issueNumber || !body) {
|
|
274
|
-
if (callback)
|
|
275
|
-
await callback({
|
|
276
|
-
text: "Issue number and comment body are required.",
|
|
277
|
-
});
|
|
278
|
-
return { success: false, error: "MISSING_PARAMS" };
|
|
279
|
-
}
|
|
280
|
-
const comment = await service.addComment(repo, issueNumber, body);
|
|
281
|
-
if (callback) {
|
|
282
|
-
await callback({
|
|
283
|
-
text: `Added comment to issue #${issueNumber}: ${comment.url}`,
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
return { success: true, data: { comment } };
|
|
287
|
-
}
|
|
288
|
-
case "close": {
|
|
289
|
-
const issueNumber = Number(params.issueNumber);
|
|
290
|
-
if (!issueNumber) {
|
|
291
|
-
if (callback)
|
|
292
|
-
await callback({ text: "Issue number is required." });
|
|
293
|
-
return { success: false, error: "MISSING_ISSUE_NUMBER" };
|
|
294
|
-
}
|
|
295
|
-
const issue = await service.closeIssue(repo, issueNumber);
|
|
296
|
-
if (callback) {
|
|
297
|
-
await callback({
|
|
298
|
-
text: `Closed issue #${issue.number}: ${issue.title}`,
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
return { success: true, data: { issue } };
|
|
302
|
-
}
|
|
303
|
-
case "reopen": {
|
|
304
|
-
const issueNumber = Number(params.issueNumber);
|
|
305
|
-
if (!issueNumber) {
|
|
306
|
-
if (callback)
|
|
307
|
-
await callback({ text: "Issue number is required." });
|
|
308
|
-
return { success: false, error: "MISSING_ISSUE_NUMBER" };
|
|
309
|
-
}
|
|
310
|
-
const issue = await service.reopenIssue(repo, issueNumber);
|
|
311
|
-
if (callback) {
|
|
312
|
-
await callback({
|
|
313
|
-
text: `Reopened issue #${issue.number}: ${issue.title}`,
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
return { success: true, data: { issue } };
|
|
317
|
-
}
|
|
318
|
-
case "add_labels": {
|
|
319
|
-
const issueNumber = Number(params.issueNumber);
|
|
320
|
-
const labels = parseLabels(params.labels);
|
|
321
|
-
if (!issueNumber || labels.length === 0) {
|
|
322
|
-
if (callback)
|
|
323
|
-
await callback({ text: "Issue number and labels are required." });
|
|
324
|
-
return { success: false, error: "MISSING_PARAMS" };
|
|
325
|
-
}
|
|
326
|
-
await service.addLabels(repo, issueNumber, labels);
|
|
327
|
-
if (callback) {
|
|
328
|
-
await callback({
|
|
329
|
-
text: `Added labels [${labels.join(", ")}] to issue #${issueNumber}`,
|
|
330
|
-
});
|
|
331
|
-
}
|
|
332
|
-
return { success: true };
|
|
333
|
-
}
|
|
334
|
-
default:
|
|
335
|
-
if (callback) {
|
|
336
|
-
await callback({
|
|
337
|
-
text: `Unknown operation: ${operation}. Use: create, list, get, update, comment, close, reopen, add_labels`,
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
return { success: false, error: "UNKNOWN_OPERATION" };
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
catch (error) {
|
|
344
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
345
|
-
if (callback) {
|
|
346
|
-
await callback({ text: `Issue operation failed: ${errorMessage}` });
|
|
347
|
-
}
|
|
348
|
-
return { success: false, error: errorMessage };
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* Extract multiple issue titles/bodies from text containing numbered or bulleted items.
|
|
353
|
-
* E.g. "1) Add a login page 2) Fix the bug 3) Add tests"
|
|
354
|
-
*/
|
|
355
|
-
function extractBulkItems(text) {
|
|
356
|
-
if (!text)
|
|
357
|
-
return [];
|
|
358
|
-
// Match numbered items: "1) ...", "1. ...", "1: ..."
|
|
359
|
-
const numberedPattern = /(?:^|\s)(\d+)[).:-]\s*(.+?)(?=(?:\s+\d+[).:-]\s)|$)/gs;
|
|
360
|
-
const items = [];
|
|
361
|
-
for (const match of text.matchAll(numberedPattern)) {
|
|
362
|
-
const raw = match[2].trim();
|
|
363
|
-
if (raw.length > 0) {
|
|
364
|
-
items.push({ title: raw });
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
if (items.length >= 2)
|
|
368
|
-
return items;
|
|
369
|
-
// Fallback: split by common delimiters like " - " or newlines with bullets
|
|
370
|
-
const bulletPattern = /(?:^|\n)\s*[-*•]\s+(.+)/g;
|
|
371
|
-
const bulletItems = [];
|
|
372
|
-
for (const match of text.matchAll(bulletPattern)) {
|
|
373
|
-
const raw = match[1].trim();
|
|
374
|
-
if (raw.length > 0) {
|
|
375
|
-
bulletItems.push({ title: raw });
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
if (bulletItems.length >= 2)
|
|
379
|
-
return bulletItems;
|
|
380
|
-
return [];
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
* Infer the operation from the user's message text when the LLM
|
|
384
|
-
* doesn't explicitly set the operation parameter.
|
|
385
|
-
*/
|
|
386
|
-
function inferOperation(text) {
|
|
387
|
-
const lower = text.toLowerCase();
|
|
388
|
-
// Order matters: check more specific patterns first
|
|
389
|
-
if (/\b(create|open|file|submit|make|add)\b.*\bissue/.test(lower))
|
|
390
|
-
return "create";
|
|
391
|
-
if (/\bissue.*\b(create|open|file|submit|make)\b/.test(lower))
|
|
392
|
-
return "create";
|
|
393
|
-
if (/\b(close|resolve)\b.*\bissue/.test(lower))
|
|
394
|
-
return "close";
|
|
395
|
-
if (/\bissue.*\b(close|resolve)\b/.test(lower))
|
|
396
|
-
return "close";
|
|
397
|
-
if (/\b(reopen|re-open)\b.*\bissue/.test(lower))
|
|
398
|
-
return "reopen";
|
|
399
|
-
if (/\b(comment|reply)\b.*\bissue/.test(lower))
|
|
400
|
-
return "comment";
|
|
401
|
-
if (/\bissue.*\b(comment|reply)\b/.test(lower))
|
|
402
|
-
return "comment";
|
|
403
|
-
if (/\b(update|edit|modify)\b.*\bissue/.test(lower))
|
|
404
|
-
return "update";
|
|
405
|
-
if (/\bissue.*\b(update|edit|modify)\b/.test(lower))
|
|
406
|
-
return "update";
|
|
407
|
-
if (/\b(label|tag)\b.*\bissue/.test(lower))
|
|
408
|
-
return "add_labels";
|
|
409
|
-
if (/\bget\b.*\bissue\s*#?\d/.test(lower))
|
|
410
|
-
return "get";
|
|
411
|
-
if (/\bissue\s*#?\d/.test(lower) && !/\b(list|show|all)\b/.test(lower))
|
|
412
|
-
return "get";
|
|
413
|
-
if (/\b(list|show|check|what are)\b.*\bissue/.test(lower))
|
|
414
|
-
return "list";
|
|
415
|
-
return "list";
|
|
416
|
-
}
|
|
417
|
-
function parseLabels(input) {
|
|
418
|
-
if (!input)
|
|
419
|
-
return [];
|
|
420
|
-
if (Array.isArray(input))
|
|
421
|
-
return input.map(String);
|
|
422
|
-
if (typeof input === "string")
|
|
423
|
-
return input
|
|
424
|
-
.split(",")
|
|
425
|
-
.map((s) => s.trim())
|
|
426
|
-
.filter(Boolean);
|
|
427
|
-
return [];
|
|
428
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PROVISION_WORKSPACE action - Create a git workspace for coding tasks
|
|
3
|
-
*
|
|
4
|
-
* Clones a repository or creates a worktree for isolated development.
|
|
5
|
-
* Useful for setting up a clean environment before spawning a coding agent.
|
|
6
|
-
*
|
|
7
|
-
* @module actions/provision-workspace
|
|
8
|
-
*/
|
|
9
|
-
import type { Action } from "@elizaos/core";
|
|
10
|
-
export declare const provisionWorkspaceAction: Action;
|
|
11
|
-
//# sourceMappingURL=provision-workspace.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provision-workspace.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/actions/provision-workspace.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACX,MAAM,EAON,MAAM,eAAe,CAAC;AAOvB,eAAO,MAAM,wBAAwB,EAAE,MA2NtC,CAAC"}
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PROVISION_WORKSPACE action - Create a git workspace for coding tasks
|
|
3
|
-
*
|
|
4
|
-
* Clones a repository or creates a worktree for isolated development.
|
|
5
|
-
* Useful for setting up a clean environment before spawning a coding agent.
|
|
6
|
-
*
|
|
7
|
-
* @module actions/provision-workspace
|
|
8
|
-
*/
|
|
9
|
-
import { requireTaskAgentAccess } from "../services/task-policy.js";
|
|
10
|
-
export const provisionWorkspaceAction = {
|
|
11
|
-
name: "PROVISION_WORKSPACE",
|
|
12
|
-
similes: [
|
|
13
|
-
"CREATE_WORKSPACE",
|
|
14
|
-
"CLONE_REPO",
|
|
15
|
-
"SETUP_WORKSPACE",
|
|
16
|
-
"PREPARE_WORKSPACE",
|
|
17
|
-
],
|
|
18
|
-
description: "Create a git workspace for coding tasks. " +
|
|
19
|
-
"Can clone a repository or create a git worktree for isolated development.",
|
|
20
|
-
examples: [
|
|
21
|
-
[
|
|
22
|
-
{
|
|
23
|
-
name: "{{user1}}",
|
|
24
|
-
content: {
|
|
25
|
-
text: "Clone the repo and create a workspace for the feature",
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: "{{agentName}}",
|
|
30
|
-
content: {
|
|
31
|
-
text: "I'll set up a workspace for you.",
|
|
32
|
-
action: "PROVISION_WORKSPACE",
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
[
|
|
37
|
-
{
|
|
38
|
-
name: "{{user1}}",
|
|
39
|
-
content: { text: "Create a worktree for the bug fix" },
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name: "{{agentName}}",
|
|
43
|
-
content: {
|
|
44
|
-
text: "Creating an isolated worktree for the bug fix.",
|
|
45
|
-
action: "PROVISION_WORKSPACE",
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
],
|
|
50
|
-
validate: async (runtime, _message) => {
|
|
51
|
-
const workspaceService = runtime.getService("CODING_WORKSPACE_SERVICE");
|
|
52
|
-
return workspaceService != null;
|
|
53
|
-
},
|
|
54
|
-
handler: async (runtime, message, state, _options, callback) => {
|
|
55
|
-
const access = await requireTaskAgentAccess(runtime, message, "create");
|
|
56
|
-
if (access.allowed === false) {
|
|
57
|
-
if (callback) {
|
|
58
|
-
await callback({
|
|
59
|
-
text: access.reason,
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
return { success: false, error: "FORBIDDEN", text: access.reason };
|
|
63
|
-
}
|
|
64
|
-
const workspaceService = runtime.getService("CODING_WORKSPACE_SERVICE");
|
|
65
|
-
if (!workspaceService) {
|
|
66
|
-
if (callback) {
|
|
67
|
-
await callback({
|
|
68
|
-
text: "Workspace Service is not available.",
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
return { success: false, error: "SERVICE_UNAVAILABLE" };
|
|
72
|
-
}
|
|
73
|
-
const content = message.content;
|
|
74
|
-
// Try to extract repo URL from text if not provided explicitly
|
|
75
|
-
let repo = content.repo;
|
|
76
|
-
if (!repo && content.text) {
|
|
77
|
-
// Match GitHub/GitLab/Bitbucket URLs
|
|
78
|
-
const urlMatch = content.text.match(/https?:\/\/(?:github\.com|gitlab\.com|bitbucket\.org)\/[\w.-]+\/[\w.-]+(?:\.git)?/i);
|
|
79
|
-
if (urlMatch) {
|
|
80
|
-
repo = urlMatch[0];
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
if (!repo && !content.useWorktree) {
|
|
84
|
-
if (callback) {
|
|
85
|
-
await callback({
|
|
86
|
-
text: "Please specify a repository URL or use worktree mode with a parent workspace.",
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
return { success: false, error: "MISSING_REPO" };
|
|
90
|
-
}
|
|
91
|
-
// Validate repo URL against allowed domains
|
|
92
|
-
if (repo) {
|
|
93
|
-
const ALLOWED_DOMAINS = /^https?:\/\/(github\.com|gitlab\.com|bitbucket\.org)\//i;
|
|
94
|
-
if (!ALLOWED_DOMAINS.test(repo)) {
|
|
95
|
-
if (callback) {
|
|
96
|
-
await callback({
|
|
97
|
-
text: "Repository URL must be from github.com, gitlab.com, or bitbucket.org.",
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
return { success: false, error: "INVALID_REPO_DOMAIN" };
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
// For worktree mode, need parent
|
|
104
|
-
let parentWorkspaceId = content.parentWorkspaceId;
|
|
105
|
-
if (content.useWorktree && !parentWorkspaceId) {
|
|
106
|
-
// Try to use the current workspace from state
|
|
107
|
-
if (state?.codingWorkspace) {
|
|
108
|
-
parentWorkspaceId = state.codingWorkspace.id;
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
if (callback) {
|
|
112
|
-
await callback({
|
|
113
|
-
text: "Worktree mode requires a parent workspace. Clone a repo first or specify parentWorkspaceId.",
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
return { success: false, error: "MISSING_PARENT" };
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
try {
|
|
120
|
-
const workspace = await workspaceService.provisionWorkspace({
|
|
121
|
-
repo: repo ?? "",
|
|
122
|
-
baseBranch: content.baseBranch,
|
|
123
|
-
useWorktree: content.useWorktree,
|
|
124
|
-
parentWorkspaceId,
|
|
125
|
-
});
|
|
126
|
-
// Store workspace in state
|
|
127
|
-
if (state) {
|
|
128
|
-
state.codingWorkspace = {
|
|
129
|
-
id: workspace.id,
|
|
130
|
-
path: workspace.path,
|
|
131
|
-
branch: workspace.branch,
|
|
132
|
-
isWorktree: workspace.isWorktree,
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
if (callback) {
|
|
136
|
-
await callback({
|
|
137
|
-
text: `Created workspace at ${workspace.path}\n` +
|
|
138
|
-
`Branch: ${workspace.branch}\n` +
|
|
139
|
-
`Type: ${workspace.isWorktree ? "worktree" : "clone"}`,
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
return {
|
|
143
|
-
success: true,
|
|
144
|
-
text: `Created workspace ${workspace.id}`,
|
|
145
|
-
data: {
|
|
146
|
-
workspaceId: workspace.id,
|
|
147
|
-
path: workspace.path,
|
|
148
|
-
branch: workspace.branch,
|
|
149
|
-
isWorktree: workspace.isWorktree,
|
|
150
|
-
},
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
catch (error) {
|
|
154
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
155
|
-
if (callback) {
|
|
156
|
-
await callback({
|
|
157
|
-
text: `Failed to provision workspace: ${errorMessage}`,
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
return { success: false, error: errorMessage };
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
parameters: [
|
|
164
|
-
{
|
|
165
|
-
name: "repo",
|
|
166
|
-
description: "Git repository URL to clone.",
|
|
167
|
-
required: false,
|
|
168
|
-
schema: { type: "string" },
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
name: "baseBranch",
|
|
172
|
-
description: "Base branch to create feature branch from (default: main).",
|
|
173
|
-
required: false,
|
|
174
|
-
schema: { type: "string" },
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
name: "useWorktree",
|
|
178
|
-
description: "Create a git worktree instead of a full clone.",
|
|
179
|
-
required: false,
|
|
180
|
-
schema: { type: "boolean" },
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
name: "parentWorkspaceId",
|
|
184
|
-
description: "Parent workspace ID for worktree creation.",
|
|
185
|
-
required: false,
|
|
186
|
-
schema: { type: "string" },
|
|
187
|
-
},
|
|
188
|
-
],
|
|
189
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SEND_TO_AGENT action - Send input to a running task agent.
|
|
3
|
-
*
|
|
4
|
-
* Allows sending text or commands to an active PTY session.
|
|
5
|
-
* Useful for responding to prompts, providing feedback, or giving new instructions.
|
|
6
|
-
*
|
|
7
|
-
* @module actions/send-to-agent
|
|
8
|
-
*/
|
|
9
|
-
import type { Action } from "@elizaos/core";
|
|
10
|
-
export declare const sendToAgentAction: Action;
|
|
11
|
-
export declare const sendToTaskAgentAction: Action;
|
|
12
|
-
//# sourceMappingURL=send-to-agent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send-to-agent.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/actions/send-to-agent.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACX,MAAM,EAON,MAAM,eAAe,CAAC;AAMvB,eAAO,MAAM,iBAAiB,EAAE,MAqS/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAoB,CAAC"}
|