@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,217 +0,0 @@
|
|
|
1
|
-
import { getCoordinator } from "../services/pty-service.js";
|
|
2
|
-
import { requireTaskAgentAccess } from "../services/task-policy.js";
|
|
3
|
-
import { resolveTaskThreadTarget } from "./task-thread-target.js";
|
|
4
|
-
function textValue(value) {
|
|
5
|
-
return typeof value === "string" && value.trim().length > 0
|
|
6
|
-
? value.trim()
|
|
7
|
-
: undefined;
|
|
8
|
-
}
|
|
9
|
-
function inferOperation(text, value) {
|
|
10
|
-
const normalized = value?.trim().toLowerCase();
|
|
11
|
-
if (normalized === "pause" ||
|
|
12
|
-
normalized === "stop" ||
|
|
13
|
-
normalized === "resume" ||
|
|
14
|
-
normalized === "continue" ||
|
|
15
|
-
normalized === "archive" ||
|
|
16
|
-
normalized === "reopen") {
|
|
17
|
-
return normalized;
|
|
18
|
-
}
|
|
19
|
-
if (/\barchive\b/i.test(text))
|
|
20
|
-
return "archive";
|
|
21
|
-
if (/\breopen\b/i.test(text))
|
|
22
|
-
return "reopen";
|
|
23
|
-
if (/\bpause\b|\bhold on\b|\bthat's not right\b/i.test(text))
|
|
24
|
-
return "pause";
|
|
25
|
-
if (/\bstop\b|\bcancel\b|\bkill\b/i.test(text))
|
|
26
|
-
return "stop";
|
|
27
|
-
if (/\bresume\b|\bmake it so\b|\bdo it\b|\byea(h)? i'm down\b/i.test(text)) {
|
|
28
|
-
return "resume";
|
|
29
|
-
}
|
|
30
|
-
if (/\bcontinue\b|\bgo ahead\b/i.test(text))
|
|
31
|
-
return "continue";
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
export const taskControlAction = {
|
|
35
|
-
name: "TASK_CONTROL",
|
|
36
|
-
similes: [
|
|
37
|
-
"CONTROL_TASK",
|
|
38
|
-
"PAUSE_TASK",
|
|
39
|
-
"RESUME_TASK",
|
|
40
|
-
"STOP_TASK",
|
|
41
|
-
"CONTINUE_TASK",
|
|
42
|
-
"ARCHIVE_TASK",
|
|
43
|
-
"REOPEN_TASK",
|
|
44
|
-
],
|
|
45
|
-
description: "Pause, stop, resume, continue, archive, or reopen a coordinator task thread while preserving the durable thread history.",
|
|
46
|
-
examples: [
|
|
47
|
-
[
|
|
48
|
-
{
|
|
49
|
-
name: "{{user1}}",
|
|
50
|
-
content: {
|
|
51
|
-
text: "Hold on a second, can you pause that and let's discuss if it's right?",
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
name: "{{agentName}}",
|
|
56
|
-
content: {
|
|
57
|
-
text: "I'll pause the current task thread and preserve its state.",
|
|
58
|
-
action: "TASK_CONTROL",
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
[
|
|
63
|
-
{
|
|
64
|
-
name: "{{user1}}",
|
|
65
|
-
content: { text: "Stop, stop, stop doing what you're doing." },
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: "{{agentName}}",
|
|
69
|
-
content: {
|
|
70
|
-
text: "I'll stop the running task thread and keep the history intact.",
|
|
71
|
-
action: "TASK_CONTROL",
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
],
|
|
76
|
-
validate: async (runtime) => {
|
|
77
|
-
return Boolean(getCoordinator(runtime));
|
|
78
|
-
},
|
|
79
|
-
handler: async (runtime, message, state, options, callback) => {
|
|
80
|
-
const access = await requireTaskAgentAccess(runtime, message, "interact");
|
|
81
|
-
if (access.allowed === false) {
|
|
82
|
-
if (callback) {
|
|
83
|
-
await callback({ text: access.reason });
|
|
84
|
-
}
|
|
85
|
-
return { success: false, error: "FORBIDDEN", text: access.reason };
|
|
86
|
-
}
|
|
87
|
-
const coordinator = getCoordinator(runtime);
|
|
88
|
-
if (!coordinator) {
|
|
89
|
-
if (callback) {
|
|
90
|
-
await callback({ text: "Coordinator is not available." });
|
|
91
|
-
}
|
|
92
|
-
return { success: false, error: "SERVICE_UNAVAILABLE" };
|
|
93
|
-
}
|
|
94
|
-
const params = options?.parameters ?? {};
|
|
95
|
-
const content = (message.content ?? {});
|
|
96
|
-
const text = typeof content.text === "string" ? content.text : "";
|
|
97
|
-
const operation = inferOperation(text, textValue(params.operation) ?? textValue(content.operation));
|
|
98
|
-
if (!operation) {
|
|
99
|
-
if (callback) {
|
|
100
|
-
await callback({
|
|
101
|
-
text: "No task-control operation was specified. Use pause, stop, resume, continue, archive, or reopen.",
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
return { success: false, error: "INVALID_OPERATION" };
|
|
105
|
-
}
|
|
106
|
-
const thread = await resolveTaskThreadTarget({
|
|
107
|
-
coordinator,
|
|
108
|
-
message,
|
|
109
|
-
state,
|
|
110
|
-
options: params,
|
|
111
|
-
includeArchived: operation === "reopen" || operation === "archive",
|
|
112
|
-
});
|
|
113
|
-
if (!thread) {
|
|
114
|
-
if (callback) {
|
|
115
|
-
await callback({ text: "I could not find a matching task thread." });
|
|
116
|
-
}
|
|
117
|
-
return { success: false, error: "THREAD_NOT_FOUND" };
|
|
118
|
-
}
|
|
119
|
-
const note = textValue(params.note) ??
|
|
120
|
-
textValue(content.note) ??
|
|
121
|
-
(text.length > 0 ? text : undefined);
|
|
122
|
-
const instruction = textValue(params.instruction) ??
|
|
123
|
-
textValue(content.instruction) ??
|
|
124
|
-
(operation === "continue" || operation === "resume" ? text : undefined);
|
|
125
|
-
const requestedAgentType = textValue(params.agentType) ?? textValue(content.agentType);
|
|
126
|
-
let responseText = "";
|
|
127
|
-
let data = { threadId: thread.id, operation };
|
|
128
|
-
if (operation === "pause") {
|
|
129
|
-
const result = await coordinator.pauseTaskThread(thread.id, note);
|
|
130
|
-
responseText = `Paused "${thread.title}" and preserved the thread for follow-up discussion.`;
|
|
131
|
-
data = { ...data, ...result };
|
|
132
|
-
}
|
|
133
|
-
else if (operation === "stop") {
|
|
134
|
-
const result = await coordinator.stopTaskThread(thread.id, note);
|
|
135
|
-
responseText = `Stopped "${thread.title}" and kept the thread history intact.`;
|
|
136
|
-
data = { ...data, ...result };
|
|
137
|
-
}
|
|
138
|
-
else if (operation === "archive") {
|
|
139
|
-
await coordinator.archiveTaskThread(thread.id);
|
|
140
|
-
responseText = `Archived "${thread.title}".`;
|
|
141
|
-
}
|
|
142
|
-
else if (operation === "reopen") {
|
|
143
|
-
await coordinator.reopenTaskThread(thread.id);
|
|
144
|
-
responseText = `Reopened "${thread.title}".`;
|
|
145
|
-
}
|
|
146
|
-
else if (operation === "continue") {
|
|
147
|
-
const nextInstruction = instruction?.trim() || `Continue the task "${thread.title}".`;
|
|
148
|
-
const result = await coordinator.continueTaskThread(thread.id, nextInstruction, requestedAgentType);
|
|
149
|
-
responseText = result.reusedSession
|
|
150
|
-
? `Sent follow-up instructions to "${thread.title}" on the existing task session.`
|
|
151
|
-
: `Resumed "${thread.title}" on a new task session.`;
|
|
152
|
-
data = { ...data, ...result };
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
const result = await coordinator.resumeTaskThread(thread.id, instruction?.trim() || undefined, requestedAgentType);
|
|
156
|
-
responseText = result.reusedSession
|
|
157
|
-
? `Resumed "${thread.title}" on the current task session.`
|
|
158
|
-
: `Resumed "${thread.title}" on a new task session.`;
|
|
159
|
-
data = { ...data, ...result };
|
|
160
|
-
}
|
|
161
|
-
if (callback) {
|
|
162
|
-
await callback({ text: responseText });
|
|
163
|
-
}
|
|
164
|
-
return {
|
|
165
|
-
success: true,
|
|
166
|
-
text: responseText,
|
|
167
|
-
data: data,
|
|
168
|
-
};
|
|
169
|
-
},
|
|
170
|
-
parameters: [
|
|
171
|
-
{
|
|
172
|
-
name: "operation",
|
|
173
|
-
description: "Control operation to apply to the task thread.",
|
|
174
|
-
required: true,
|
|
175
|
-
schema: {
|
|
176
|
-
type: "string",
|
|
177
|
-
enum: ["pause", "stop", "resume", "continue", "archive", "reopen"],
|
|
178
|
-
},
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
name: "threadId",
|
|
182
|
-
description: "Specific task thread id to control.",
|
|
183
|
-
required: false,
|
|
184
|
-
schema: { type: "string" },
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
name: "sessionId",
|
|
188
|
-
description: "Task session id to resolve into a thread when needed.",
|
|
189
|
-
required: false,
|
|
190
|
-
schema: { type: "string" },
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
name: "search",
|
|
194
|
-
description: "Search text used to find the relevant thread.",
|
|
195
|
-
required: false,
|
|
196
|
-
schema: { type: "string" },
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
name: "note",
|
|
200
|
-
description: "Optional reason for pausing or stopping the thread.",
|
|
201
|
-
required: false,
|
|
202
|
-
schema: { type: "string" },
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
name: "instruction",
|
|
206
|
-
description: "Follow-up instruction for resume or continue operations.",
|
|
207
|
-
required: false,
|
|
208
|
-
schema: { type: "string" },
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
name: "agentType",
|
|
212
|
-
description: "Optional framework override for a resumed task.",
|
|
213
|
-
required: false,
|
|
214
|
-
schema: { type: "string" },
|
|
215
|
-
},
|
|
216
|
-
],
|
|
217
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-history.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/actions/task-history.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,MAAM,EAMN,MAAM,eAAe,CAAC;AAkLvB,eAAO,MAAM,iBAAiB,EAAE,MA2N/B,CAAC"}
|
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
import { getCoordinator } from "../services/pty-service.js";
|
|
2
|
-
import { requireTaskAgentAccess } from "../services/task-policy.js";
|
|
3
|
-
function textValue(value) {
|
|
4
|
-
return typeof value === "string" && value.trim().length > 0
|
|
5
|
-
? value.trim()
|
|
6
|
-
: undefined;
|
|
7
|
-
}
|
|
8
|
-
function startOfDay(date) {
|
|
9
|
-
const copy = new Date(date);
|
|
10
|
-
copy.setHours(0, 0, 0, 0);
|
|
11
|
-
return copy;
|
|
12
|
-
}
|
|
13
|
-
function endOfDay(date) {
|
|
14
|
-
const copy = new Date(date);
|
|
15
|
-
copy.setHours(23, 59, 59, 999);
|
|
16
|
-
return copy;
|
|
17
|
-
}
|
|
18
|
-
function formatDate(date) {
|
|
19
|
-
return new Intl.DateTimeFormat("en-US", {
|
|
20
|
-
month: "long",
|
|
21
|
-
day: "numeric",
|
|
22
|
-
year: "numeric",
|
|
23
|
-
}).format(date);
|
|
24
|
-
}
|
|
25
|
-
function inferMetric(text, value) {
|
|
26
|
-
const normalized = value?.trim().toLowerCase();
|
|
27
|
-
if (normalized === "count" ||
|
|
28
|
-
normalized === "detail" ||
|
|
29
|
-
normalized === "list") {
|
|
30
|
-
return normalized;
|
|
31
|
-
}
|
|
32
|
-
if (/\bhow many\b|\bcount\b/i.test(text))
|
|
33
|
-
return "count";
|
|
34
|
-
if (/\bshow me\b|\bgive me\b|\blist\b|\bwhat are\b/i.test(text))
|
|
35
|
-
return "list";
|
|
36
|
-
return "detail";
|
|
37
|
-
}
|
|
38
|
-
function inferStatuses(text, rawStatuses) {
|
|
39
|
-
if (rawStatuses && rawStatuses.length > 0) {
|
|
40
|
-
return rawStatuses;
|
|
41
|
-
}
|
|
42
|
-
const statuses = new Set();
|
|
43
|
-
if (/\bactive\b|\bright now\b|\bworking on right now\b/i.test(text)) {
|
|
44
|
-
statuses.add("active");
|
|
45
|
-
}
|
|
46
|
-
if (/\bblocked\b/i.test(text)) {
|
|
47
|
-
statuses.add("blocked");
|
|
48
|
-
}
|
|
49
|
-
if (/\binterrupted\b|\bpaused\b/i.test(text)) {
|
|
50
|
-
statuses.add("interrupted");
|
|
51
|
-
}
|
|
52
|
-
if (/\bdone\b|\bcompleted\b|\bfinished\b/i.test(text)) {
|
|
53
|
-
statuses.add("done");
|
|
54
|
-
}
|
|
55
|
-
if (/\bfailed\b|\berror\b/i.test(text)) {
|
|
56
|
-
statuses.add("failed");
|
|
57
|
-
}
|
|
58
|
-
return statuses.size > 0 ? Array.from(statuses) : undefined;
|
|
59
|
-
}
|
|
60
|
-
function inferWindow(text, raw) {
|
|
61
|
-
const normalized = raw?.trim().toLowerCase();
|
|
62
|
-
if (normalized === "active" ||
|
|
63
|
-
normalized === "today" ||
|
|
64
|
-
normalized === "yesterday" ||
|
|
65
|
-
normalized === "last_7_days" ||
|
|
66
|
-
normalized === "last_30_days") {
|
|
67
|
-
return normalized;
|
|
68
|
-
}
|
|
69
|
-
if (/\bright now\b|\bcurrently\b|\bactive\b/i.test(text))
|
|
70
|
-
return "active";
|
|
71
|
-
if (/\byesterday\b/i.test(text))
|
|
72
|
-
return "yesterday";
|
|
73
|
-
if (/\blast week\b|\blast 7 days\b|\bin the last week\b/i.test(text)) {
|
|
74
|
-
return "last_7_days";
|
|
75
|
-
}
|
|
76
|
-
if (/\blast month\b|\blast 30 days\b/i.test(text))
|
|
77
|
-
return "last_30_days";
|
|
78
|
-
if (/\btoday\b/i.test(text))
|
|
79
|
-
return "today";
|
|
80
|
-
return undefined;
|
|
81
|
-
}
|
|
82
|
-
function inferSearch(text, raw) {
|
|
83
|
-
if (raw?.trim())
|
|
84
|
-
return raw.trim();
|
|
85
|
-
const quoted = text.match(/"([^"]{3,120})"/)?.[1] ?? text.match(/'([^']{3,120})'/)?.[1];
|
|
86
|
-
if (quoted)
|
|
87
|
-
return quoted.trim();
|
|
88
|
-
const topical = text.match(/\bworking on\s+(.+?)(?:[?.!,]|$)/i)?.[1] ??
|
|
89
|
-
text.match(/\ball tasks where we were working on\s+(.+?)(?:[?.!,]|$)/i)?.[1];
|
|
90
|
-
return topical?.trim();
|
|
91
|
-
}
|
|
92
|
-
function buildWindowFilters(window) {
|
|
93
|
-
const now = new Date();
|
|
94
|
-
if (window === "active") {
|
|
95
|
-
return { label: "active tasks right now" };
|
|
96
|
-
}
|
|
97
|
-
if (window === "today") {
|
|
98
|
-
const start = startOfDay(now);
|
|
99
|
-
const end = endOfDay(now);
|
|
100
|
-
return {
|
|
101
|
-
latestActivityAfter: start.getTime(),
|
|
102
|
-
latestActivityBefore: end.getTime(),
|
|
103
|
-
label: `${formatDate(start)} through ${formatDate(end)}`,
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
if (window === "yesterday") {
|
|
107
|
-
const start = startOfDay(new Date(now.getTime() - 24 * 60 * 60 * 1000));
|
|
108
|
-
const end = endOfDay(start);
|
|
109
|
-
return {
|
|
110
|
-
latestActivityAfter: start.getTime(),
|
|
111
|
-
latestActivityBefore: end.getTime(),
|
|
112
|
-
label: `${formatDate(start)} through ${formatDate(end)}`,
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
if (window === "last_7_days") {
|
|
116
|
-
const start = startOfDay(new Date(now.getTime() - 6 * 24 * 60 * 60 * 1000));
|
|
117
|
-
return {
|
|
118
|
-
latestActivityAfter: start.getTime(),
|
|
119
|
-
latestActivityBefore: now.getTime(),
|
|
120
|
-
label: `${formatDate(start)} through ${formatDate(now)}`,
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
if (window === "last_30_days") {
|
|
124
|
-
const start = startOfDay(new Date(now.getTime() - 29 * 24 * 60 * 60 * 1000));
|
|
125
|
-
return {
|
|
126
|
-
latestActivityAfter: start.getTime(),
|
|
127
|
-
latestActivityBefore: now.getTime(),
|
|
128
|
-
label: `${formatDate(start)} through ${formatDate(now)}`,
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
return {};
|
|
132
|
-
}
|
|
133
|
-
function renderThreadLine(entry) {
|
|
134
|
-
const activity = typeof entry.latestActivityAt === "number"
|
|
135
|
-
? new Date(entry.latestActivityAt).toLocaleString("en-US")
|
|
136
|
-
: "unknown time";
|
|
137
|
-
return `- ${entry.title} [${entry.status}] (${activity})${entry.summary ? `: ${entry.summary}` : ""}`;
|
|
138
|
-
}
|
|
139
|
-
export const taskHistoryAction = {
|
|
140
|
-
name: "TASK_HISTORY",
|
|
141
|
-
similes: [
|
|
142
|
-
"LIST_TASK_HISTORY",
|
|
143
|
-
"GET_TASK_HISTORY",
|
|
144
|
-
"SHOW_TASKS",
|
|
145
|
-
"COUNT_TASKS",
|
|
146
|
-
"TASK_STATUS_HISTORY",
|
|
147
|
-
],
|
|
148
|
-
description: "Query coordinator task history without stuffing raw transcripts into model context. Use this for active work, yesterday/last-week summaries, topic search, counts, and thread detail lookup.",
|
|
149
|
-
examples: [
|
|
150
|
-
[
|
|
151
|
-
{
|
|
152
|
-
name: "{{user1}}",
|
|
153
|
-
content: { text: "What are you working on right now?" },
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
name: "{{agentName}}",
|
|
157
|
-
content: {
|
|
158
|
-
text: "I'll check the coordinator's current task state.",
|
|
159
|
-
action: "TASK_HISTORY",
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
],
|
|
163
|
-
[
|
|
164
|
-
{
|
|
165
|
-
name: "{{user1}}",
|
|
166
|
-
content: {
|
|
167
|
-
text: "In the last week, give me all tasks where we were working on the Discord connector.",
|
|
168
|
-
},
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
name: "{{agentName}}",
|
|
172
|
-
content: {
|
|
173
|
-
text: "I'll query the task history for that date range and topic.",
|
|
174
|
-
action: "TASK_HISTORY",
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
],
|
|
178
|
-
],
|
|
179
|
-
validate: async (runtime) => {
|
|
180
|
-
return Boolean(getCoordinator(runtime));
|
|
181
|
-
},
|
|
182
|
-
handler: async (runtime, message, _state, options, callback) => {
|
|
183
|
-
const access = await requireTaskAgentAccess(runtime, message, "interact");
|
|
184
|
-
if (access.allowed === false) {
|
|
185
|
-
if (callback) {
|
|
186
|
-
await callback({ text: access.reason });
|
|
187
|
-
}
|
|
188
|
-
return { success: false, error: "FORBIDDEN", text: access.reason };
|
|
189
|
-
}
|
|
190
|
-
const coordinator = getCoordinator(runtime);
|
|
191
|
-
if (!coordinator) {
|
|
192
|
-
if (callback) {
|
|
193
|
-
await callback({ text: "Coordinator is not available." });
|
|
194
|
-
}
|
|
195
|
-
return { success: false, error: "SERVICE_UNAVAILABLE" };
|
|
196
|
-
}
|
|
197
|
-
const params = options?.parameters ?? {};
|
|
198
|
-
const content = (message.content ?? {});
|
|
199
|
-
const text = typeof content.text === "string" ? content.text : "";
|
|
200
|
-
const metric = inferMetric(text, textValue(params.metric) ?? textValue(content.metric));
|
|
201
|
-
const statuses = inferStatuses(text, Array.isArray(params.statuses)
|
|
202
|
-
? params.statuses.filter((value) => typeof value === "string")
|
|
203
|
-
: Array.isArray(content.statuses)
|
|
204
|
-
? content.statuses.filter((value) => typeof value === "string")
|
|
205
|
-
: undefined);
|
|
206
|
-
const window = inferWindow(text, textValue(params.window) ?? textValue(content.window));
|
|
207
|
-
const search = inferSearch(text, textValue(params.search) ?? textValue(content.search));
|
|
208
|
-
const limitRaw = Number(params.limit ?? content.limit ?? (metric === "detail" ? 1 : 10));
|
|
209
|
-
const limit = Number.isFinite(limitRaw) && limitRaw > 0 ? Math.trunc(limitRaw) : 10;
|
|
210
|
-
const includeArchived = params.includeArchived ??
|
|
211
|
-
content.includeArchived ??
|
|
212
|
-
false;
|
|
213
|
-
const windowFilters = buildWindowFilters(window);
|
|
214
|
-
const threadFilters = {
|
|
215
|
-
includeArchived,
|
|
216
|
-
...(statuses && statuses.length > 0 ? { statuses } : {}),
|
|
217
|
-
...(windowFilters.latestActivityAfter
|
|
218
|
-
? { latestActivityAfter: windowFilters.latestActivityAfter }
|
|
219
|
-
: {}),
|
|
220
|
-
...(windowFilters.latestActivityBefore
|
|
221
|
-
? { latestActivityBefore: windowFilters.latestActivityBefore }
|
|
222
|
-
: {}),
|
|
223
|
-
...(search ? { search } : {}),
|
|
224
|
-
...(window === "active" ? { hasActiveSession: true } : {}),
|
|
225
|
-
limit,
|
|
226
|
-
};
|
|
227
|
-
const [count, threads] = await Promise.all([
|
|
228
|
-
coordinator.countTaskThreads(threadFilters),
|
|
229
|
-
coordinator.listTaskThreads(threadFilters),
|
|
230
|
-
]);
|
|
231
|
-
const summaryWindow = windowFilters.label ??
|
|
232
|
-
(window === "active"
|
|
233
|
-
? "right now"
|
|
234
|
-
: includeArchived
|
|
235
|
-
? "all recorded time"
|
|
236
|
-
: "recent task history");
|
|
237
|
-
const summaryTopic = search ? ` for "${search}"` : "";
|
|
238
|
-
const summaryStatus = statuses && statuses.length > 0
|
|
239
|
-
? ` with status ${statuses.join(", ")}`
|
|
240
|
-
: "";
|
|
241
|
-
let responseText = "";
|
|
242
|
-
if (metric === "count") {
|
|
243
|
-
responseText = `I found ${count} task${count === 1 ? "" : "s"} ${summaryWindow}${summaryTopic}${summaryStatus}.`;
|
|
244
|
-
}
|
|
245
|
-
else if (threads.length === 0) {
|
|
246
|
-
responseText = `I did not find any tasks ${summaryWindow}${summaryTopic}${summaryStatus}.`;
|
|
247
|
-
}
|
|
248
|
-
else if (metric === "detail" && threads[0]) {
|
|
249
|
-
const thread = await coordinator.getTaskThread(threads[0].id);
|
|
250
|
-
responseText = [
|
|
251
|
-
`The most relevant task is "${threads[0].title}" [${threads[0].status}].`,
|
|
252
|
-
thread?.summary ? `Summary: ${thread.summary}` : "",
|
|
253
|
-
thread?.latestWorkdir ? `Workspace: ${thread.latestWorkdir}` : "",
|
|
254
|
-
thread?.latestRepo ? `Repository: ${thread.latestRepo}` : "",
|
|
255
|
-
typeof thread?.latestActivityAt === "number"
|
|
256
|
-
? `Latest activity: ${new Date(thread.latestActivityAt).toLocaleString("en-US")}`
|
|
257
|
-
: "",
|
|
258
|
-
]
|
|
259
|
-
.filter(Boolean)
|
|
260
|
-
.join("\n");
|
|
261
|
-
}
|
|
262
|
-
else {
|
|
263
|
-
responseText = [
|
|
264
|
-
`I found ${count} task${count === 1 ? "" : "s"} ${summaryWindow}${summaryTopic}${summaryStatus}.`,
|
|
265
|
-
...threads.slice(0, limit).map(renderThreadLine),
|
|
266
|
-
].join("\n");
|
|
267
|
-
}
|
|
268
|
-
if (callback) {
|
|
269
|
-
await callback({ text: responseText });
|
|
270
|
-
}
|
|
271
|
-
return {
|
|
272
|
-
success: true,
|
|
273
|
-
text: responseText,
|
|
274
|
-
data: {
|
|
275
|
-
filters: threadFilters,
|
|
276
|
-
window,
|
|
277
|
-
count,
|
|
278
|
-
threadIds: threads.map((thread) => thread.id),
|
|
279
|
-
},
|
|
280
|
-
};
|
|
281
|
-
},
|
|
282
|
-
parameters: [
|
|
283
|
-
{
|
|
284
|
-
name: "metric",
|
|
285
|
-
description: "Query mode: list, count, or detail.",
|
|
286
|
-
required: false,
|
|
287
|
-
schema: { type: "string", enum: ["list", "count", "detail"] },
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
name: "window",
|
|
291
|
-
description: "Relative time window for the query.",
|
|
292
|
-
required: false,
|
|
293
|
-
schema: {
|
|
294
|
-
type: "string",
|
|
295
|
-
enum: ["active", "today", "yesterday", "last_7_days", "last_30_days"],
|
|
296
|
-
},
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
name: "search",
|
|
300
|
-
description: "Topic or free-text search string to match task threads.",
|
|
301
|
-
required: false,
|
|
302
|
-
schema: { type: "string" },
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
name: "statuses",
|
|
306
|
-
description: "Optional status filter list.",
|
|
307
|
-
required: false,
|
|
308
|
-
schema: { type: "array", items: { type: "string" } },
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
name: "limit",
|
|
312
|
-
description: "Maximum number of thread summaries to return.",
|
|
313
|
-
required: false,
|
|
314
|
-
schema: { type: "number" },
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
name: "includeArchived",
|
|
318
|
-
description: "Whether archived threads should be included.",
|
|
319
|
-
required: false,
|
|
320
|
-
schema: { type: "boolean" },
|
|
321
|
-
},
|
|
322
|
-
],
|
|
323
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-share.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/actions/task-share.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,MAAM,EAON,MAAM,eAAe,CAAC;AAYvB,eAAO,MAAM,eAAe,EAAE,MAiL7B,CAAC"}
|