@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,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ANSI/terminal utility functions for processing PTY output.
|
|
3
|
-
*
|
|
4
|
-
* Pure functions — no state, no dependencies beyond the standard library.
|
|
5
|
-
*
|
|
6
|
-
* @module services/ansi-utils
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Strip ANSI escape sequences from raw terminal output for readable text.
|
|
10
|
-
* Replaces cursor-forward codes with spaces (TUI uses these instead of actual spaces).
|
|
11
|
-
*/
|
|
12
|
-
export declare function stripAnsi(raw: string): string;
|
|
13
|
-
/**
|
|
14
|
-
* Clean terminal output for display in chat messages.
|
|
15
|
-
*
|
|
16
|
-
* Goes beyond {@link stripAnsi} by also removing:
|
|
17
|
-
* - Unicode spinner/box-drawing/decorative characters from CLI TUIs
|
|
18
|
-
* - Lines that are only loading/thinking status text
|
|
19
|
-
* - Spinner status bar metadata (token counts, timing)
|
|
20
|
-
* - Consecutive blank lines (collapsed to one)
|
|
21
|
-
*/
|
|
22
|
-
export declare function cleanForChat(raw: string): string;
|
|
23
|
-
/**
|
|
24
|
-
* Failover prompts need stricter transcript sanitization than chat messages.
|
|
25
|
-
* The replacement agent already gets the workspace path and failure reason
|
|
26
|
-
* separately, so Claude/Codex trust screens, onboarding banners, and echoed
|
|
27
|
-
* workspace selectors should be dropped here instead of being forwarded.
|
|
28
|
-
*/
|
|
29
|
-
export declare function cleanForFailoverContext(raw: string, workdir?: string): string;
|
|
30
|
-
/**
|
|
31
|
-
* Extract meaningful artifacts (PR URLs, commit hashes, key results) from raw
|
|
32
|
-
* terminal output. Returns a compact summary suitable for chat messages,
|
|
33
|
-
* without dumping raw TUI output.
|
|
34
|
-
*/
|
|
35
|
-
export declare function extractCompletionSummary(raw: string): string;
|
|
36
|
-
/**
|
|
37
|
-
* Extract a dev server URL from recent terminal output, if present.
|
|
38
|
-
*
|
|
39
|
-
* Looks for common patterns like:
|
|
40
|
-
* - http://localhost:3000
|
|
41
|
-
* - http://127.0.0.1:8080
|
|
42
|
-
* - http://0.0.0.0:5173
|
|
43
|
-
* - https://localhost:4200
|
|
44
|
-
*
|
|
45
|
-
* Returns the first match, or null if no dev server URL is found.
|
|
46
|
-
*/
|
|
47
|
-
export declare function extractDevServerUrl(raw: string): string | null;
|
|
48
|
-
/**
|
|
49
|
-
* Capture the agent's output since the last task was sent, cleaned for chat display.
|
|
50
|
-
* Returns readable text with TUI noise removed, or empty string if no marker exists.
|
|
51
|
-
*
|
|
52
|
-
* Mutates `markers` by deleting the entry for `sessionId` after capture.
|
|
53
|
-
*/
|
|
54
|
-
export declare function captureTaskResponse(sessionId: string, buffers: Map<string, string[]>, markers: Map<string, number>): string;
|
|
55
|
-
/**
|
|
56
|
-
* Peek at the current task response without consuming the marker.
|
|
57
|
-
* Useful for state reconciliation paths that need to inspect a response
|
|
58
|
-
* before deciding whether to emit a synthetic completion event.
|
|
59
|
-
*/
|
|
60
|
-
export declare function peekTaskResponse(sessionId: string, buffers: Map<string, string[]>, markers: Map<string, number>): string;
|
|
61
|
-
//# sourceMappingURL=ansi-utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ansi-utils.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/services/ansi-utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAwCH;;;GAGG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C;AAsDD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAyBhD;AAgCD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAY7E;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAmC5D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAO9D;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAClC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAC9B,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAC1B,MAAM,CASR;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC/B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAC9B,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAC1B,MAAM,CAKR"}
|
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ANSI/terminal utility functions for processing PTY output.
|
|
3
|
-
*
|
|
4
|
-
* Pure functions — no state, no dependencies beyond the standard library.
|
|
5
|
-
*
|
|
6
|
-
* @module services/ansi-utils
|
|
7
|
-
*/
|
|
8
|
-
// ANSI escape sequence patterns for terminal output stripping.
|
|
9
|
-
// These intentionally match control characters (\x1b, \x00-\x1f, \x7f).
|
|
10
|
-
/* eslint-disable no-control-regex */
|
|
11
|
-
// biome-ignore lint/suspicious/noControlCharactersInRegex: ANSI stripping requires control chars
|
|
12
|
-
const CURSOR_MOVEMENT = /\x1b\[\d*[CDABGdEF]/g;
|
|
13
|
-
// biome-ignore lint/suspicious/noControlCharactersInRegex: ANSI stripping requires control chars
|
|
14
|
-
const CURSOR_POSITION = /\x1b\[\d*(?:;\d+)?[Hf]/g;
|
|
15
|
-
// biome-ignore lint/suspicious/noControlCharactersInRegex: ANSI stripping requires control chars
|
|
16
|
-
const ERASE = /\x1b\[\d*[JK]/g;
|
|
17
|
-
// biome-ignore lint/suspicious/noControlCharactersInRegex: ANSI stripping requires control chars
|
|
18
|
-
const OSC = /\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)/g;
|
|
19
|
-
// biome-ignore lint/suspicious/noControlCharactersInRegex: ANSI stripping requires control chars
|
|
20
|
-
const ALL_ANSI = /\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])/g;
|
|
21
|
-
// biome-ignore lint/suspicious/noControlCharactersInRegex: ANSI stripping requires control chars
|
|
22
|
-
const CONTROL_CHARS = /[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]/g;
|
|
23
|
-
/** Orphaned SGR fragments left when buffer boundaries split `\x1b[...m` sequences. */
|
|
24
|
-
const ORPHAN_SGR = /\[[\d;]*m/g;
|
|
25
|
-
const LONG_SPACES = / {3,}/g;
|
|
26
|
-
/** Apply all ANSI stripping patterns to a string */
|
|
27
|
-
function applyAnsiStrip(input) {
|
|
28
|
-
return (input
|
|
29
|
-
// Pre-process: rejoin SGR sequences split across lines by chunk boundaries.
|
|
30
|
-
// e.g. "[38;2;153;\n153;153m" → "[38;2;153;153;153m"
|
|
31
|
-
.replace(/(\[[\d;]*)\r?\n([\d;]*m)/g, "$1$2")
|
|
32
|
-
.replace(CURSOR_MOVEMENT, " ")
|
|
33
|
-
.replace(CURSOR_POSITION, " ")
|
|
34
|
-
.replace(ERASE, "")
|
|
35
|
-
.replace(OSC, "")
|
|
36
|
-
.replace(ALL_ANSI, "")
|
|
37
|
-
.replace(CONTROL_CHARS, "")
|
|
38
|
-
.replace(ORPHAN_SGR, "")
|
|
39
|
-
.replace(LONG_SPACES, " ")
|
|
40
|
-
.trim());
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Strip ANSI escape sequences from raw terminal output for readable text.
|
|
44
|
-
* Replaces cursor-forward codes with spaces (TUI uses these instead of actual spaces).
|
|
45
|
-
*/
|
|
46
|
-
export function stripAnsi(raw) {
|
|
47
|
-
return applyAnsiStrip(raw);
|
|
48
|
-
}
|
|
49
|
-
// ─── Chat-Ready Output Cleaning ───
|
|
50
|
-
/** Unicode spinner, box-drawing, and decorative characters used by CLI TUIs. */
|
|
51
|
-
const TUI_DECORATIVE = /[│╭╰╮╯─═╌║╔╗╚╝╠╣╦╩╬┌┐└┘├┤┬┴┼●○❮❯▶◀⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⣾⣽⣻⢿⡿⣟⣯⣷✽✻✶✳✢⏺←→↑↓⬆⬇◆▪▫■□▲△▼▽◈⟨⟩⌘⏎⏏⌫⌦⇧⇪⌥·⎿✔◼█▌▐▖▗▘▝▛▜▟▙◐◑◒◓⏵]/g;
|
|
52
|
-
/**
|
|
53
|
-
* Lines that are just CLI loading/thinking status — no meaningful content.
|
|
54
|
-
* Claude Code uses random gerund spinner words ("Tomfoolering…", "Recombobulating…")
|
|
55
|
-
* that rotate frequently. Requires an ellipsis (…/...) or status suffix
|
|
56
|
-
* (parenthetical / "for Ns") — plain words like "Completed" won't match.
|
|
57
|
-
*/
|
|
58
|
-
const LOADING_LINE = /^\s*(?:[A-Z][a-z]+(?:-[a-z]+)?(?:ing|ed)\w*|thinking|Loading|processing)(?:…|\.{3})(?:\s*\(.*\)|\s+for\s+\d+[smh](?:\s+\d+[smh])*)?\s*$|^\s*(?:[A-Z][a-z]+(?:-[a-z]+)?(?:ing|ed)\w*|thinking|Loading|processing)\s+for\s+\d+[smh](?:\s+\d+[smh])*\s*$/;
|
|
59
|
-
/** Lines that are just token/timing metadata from the spinner status bar. */
|
|
60
|
-
const STATUS_LINE = /^\s*(?:\d+[smh]\s+\d+s?\s*·|↓\s*[\d.]+k?\s*tokens|·\s*↓|esc\s+to\s+interrupt|[Uu]pdate available|ate available|Run:\s+brew|brew\s+upgrade|\d+\s+files?\s+\+\d+\s+-\d+|ctrl\+\w|\+\d+\s+lines|Wrote\s+\d+\s+lines\s+to|\?\s+for\s+shortcuts|Cooked for|Baked for|Cogitated for)/i;
|
|
61
|
-
/** Claude Code tool execution markers — not meaningful for coordination decisions. */
|
|
62
|
-
const TOOL_MARKER_LINE = /^\s*(?:Bash|Write|Read|Edit|Glob|Grep|Search|TodoWrite|Agent)\s*\(.*\)\s*$/;
|
|
63
|
-
/** Git status/diff noise that's not meaningful for coordination. */
|
|
64
|
-
const GIT_NOISE_LINE = /^\s*(?:On branch\s+\w|Your branch is|modified:|new file:|deleted:|renamed:|Untracked files:|Changes (?:not staged|to be committed)|\d+\s+files?\s+changed.*(?:insertion|deletion))/i;
|
|
65
|
-
/** Codex/Claude launcher banners and trust screens that pollute failover prompts. */
|
|
66
|
-
const SESSION_BOOTSTRAP_NOISE_PATTERNS = [
|
|
67
|
-
/^OpenAI Codex\b/i,
|
|
68
|
-
/^model:\s/i,
|
|
69
|
-
/^directory:\s/i,
|
|
70
|
-
/^Tip:\s+New Try the Codex App\b/i,
|
|
71
|
-
/^until .*Run ['"]codex app['"]/i,
|
|
72
|
-
/Do you trust the contents of this directory/i,
|
|
73
|
-
/higher risk of prompt injection/i,
|
|
74
|
-
/Yes,\s*continue.*No,\s*quit/i,
|
|
75
|
-
/^Press enter to continue$/i,
|
|
76
|
-
/^Quick safety check:/i,
|
|
77
|
-
/^Claude Code can make mistakes\./i,
|
|
78
|
-
/^Claude Code(?:'ll| will)\s+be able to read, edit, and execute files here\.?$/i,
|
|
79
|
-
/^\d+\.\s+Yes,\s*I trust this folder$/i,
|
|
80
|
-
/^\d+\.\s+No,\s*exit$/i,
|
|
81
|
-
/^Enter to confirm(?:\s+Esc to cancel)?$/i,
|
|
82
|
-
/^Welcome back .*Run \/init to create a CLAUDE\.md file with instructions for Claude\./i,
|
|
83
|
-
/^Your bash commands will be sandboxed\. Disable with \/sandbox\./i,
|
|
84
|
-
];
|
|
85
|
-
function isSessionBootstrapNoiseLine(line) {
|
|
86
|
-
return SESSION_BOOTSTRAP_NOISE_PATTERNS.some((pattern) => pattern.test(line));
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Clean terminal output for display in chat messages.
|
|
90
|
-
*
|
|
91
|
-
* Goes beyond {@link stripAnsi} by also removing:
|
|
92
|
-
* - Unicode spinner/box-drawing/decorative characters from CLI TUIs
|
|
93
|
-
* - Lines that are only loading/thinking status text
|
|
94
|
-
* - Spinner status bar metadata (token counts, timing)
|
|
95
|
-
* - Consecutive blank lines (collapsed to one)
|
|
96
|
-
*/
|
|
97
|
-
export function cleanForChat(raw) {
|
|
98
|
-
const stripped = applyAnsiStrip(raw);
|
|
99
|
-
return stripped
|
|
100
|
-
.replace(TUI_DECORATIVE, " ")
|
|
101
|
-
.replace(/\xa0/g, " ")
|
|
102
|
-
.split("\n")
|
|
103
|
-
.filter((line) => {
|
|
104
|
-
const trimmed = line.trim();
|
|
105
|
-
if (!trimmed)
|
|
106
|
-
return false; // blank line — will re-add separators below
|
|
107
|
-
if (LOADING_LINE.test(trimmed))
|
|
108
|
-
return false;
|
|
109
|
-
if (STATUS_LINE.test(trimmed))
|
|
110
|
-
return false;
|
|
111
|
-
if (TOOL_MARKER_LINE.test(trimmed))
|
|
112
|
-
return false;
|
|
113
|
-
if (GIT_NOISE_LINE.test(trimmed))
|
|
114
|
-
return false;
|
|
115
|
-
if (isSessionBootstrapNoiseLine(trimmed))
|
|
116
|
-
return false;
|
|
117
|
-
// Lines with only whitespace/punctuation and no alphanumeric content
|
|
118
|
-
if (!/[a-zA-Z0-9]/.test(trimmed))
|
|
119
|
-
return false;
|
|
120
|
-
// Very short lines (≤3 chars) are likely TUI fragments
|
|
121
|
-
if (trimmed.length <= 3)
|
|
122
|
-
return false;
|
|
123
|
-
return true;
|
|
124
|
-
})
|
|
125
|
-
.map((line) => line.replace(/ {2,}/g, " ").trim())
|
|
126
|
-
.filter((line) => line.length > 0)
|
|
127
|
-
.join("\n")
|
|
128
|
-
.replace(/\n{3,}/g, "\n\n")
|
|
129
|
-
.trim();
|
|
130
|
-
}
|
|
131
|
-
const FAILOVER_CONTEXT_NOISE_PATTERNS = [
|
|
132
|
-
/^Accessing workspace:?$/i,
|
|
133
|
-
/work from your team\)\. If not, take a moment to review what's in this folder first\.$/i,
|
|
134
|
-
/(?:se)?curity guide$/i,
|
|
135
|
-
/^Yes,\s*I trust this folder$/i,
|
|
136
|
-
/^Claude Code v[\d.]+$/i,
|
|
137
|
-
/^Tips for getting started$/i,
|
|
138
|
-
/^Welcome back .*Run \/init to create a CLAUDE\.md file with instructions for Claude\.?$/i,
|
|
139
|
-
/^Recent activity$/i,
|
|
140
|
-
/^No recent activity$/i,
|
|
141
|
-
/^.*\(\d+[MK]? context\)\s+Claude\b.*$/i,
|
|
142
|
-
/^don'?t ask on \(shift\+tab to cycle\)$/i,
|
|
143
|
-
/^\w+\s+\/effort$/i,
|
|
144
|
-
];
|
|
145
|
-
function isWorkdirEchoLine(line, workdir) {
|
|
146
|
-
if (!workdir)
|
|
147
|
-
return false;
|
|
148
|
-
const normalizedWorkdir = workdir.trim();
|
|
149
|
-
if (!normalizedWorkdir)
|
|
150
|
-
return false;
|
|
151
|
-
if (line === normalizedWorkdir || line === `/private${normalizedWorkdir}`) {
|
|
152
|
-
return true;
|
|
153
|
-
}
|
|
154
|
-
const basename = normalizedWorkdir.split("/").filter(Boolean).at(-1);
|
|
155
|
-
return Boolean(basename &&
|
|
156
|
-
line.includes(basename) &&
|
|
157
|
-
(/^\/(?:private\/)?/.test(line) || /^\/…\//.test(line)));
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Failover prompts need stricter transcript sanitization than chat messages.
|
|
161
|
-
* The replacement agent already gets the workspace path and failure reason
|
|
162
|
-
* separately, so Claude/Codex trust screens, onboarding banners, and echoed
|
|
163
|
-
* workspace selectors should be dropped here instead of being forwarded.
|
|
164
|
-
*/
|
|
165
|
-
export function cleanForFailoverContext(raw, workdir) {
|
|
166
|
-
return cleanForChat(raw)
|
|
167
|
-
.split("\n")
|
|
168
|
-
.map((line) => line.trim())
|
|
169
|
-
.filter((line) => line.length > 0)
|
|
170
|
-
.filter((line) => !FAILOVER_CONTEXT_NOISE_PATTERNS.some((pattern) => pattern.test(line)))
|
|
171
|
-
.filter((line) => !isWorkdirEchoLine(line, workdir))
|
|
172
|
-
.join("\n")
|
|
173
|
-
.trim();
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Extract meaningful artifacts (PR URLs, commit hashes, key results) from raw
|
|
177
|
-
* terminal output. Returns a compact summary suitable for chat messages,
|
|
178
|
-
* without dumping raw TUI output.
|
|
179
|
-
*/
|
|
180
|
-
export function extractCompletionSummary(raw) {
|
|
181
|
-
const stripped = applyAnsiStrip(raw);
|
|
182
|
-
const lines = [];
|
|
183
|
-
// PR / issue URLs
|
|
184
|
-
const prUrls = stripped.match(/https?:\/\/github\.com\/[\w.-]+\/[\w.-]+\/pull\/\d+/g);
|
|
185
|
-
if (prUrls) {
|
|
186
|
-
for (const url of [...new Set(prUrls)])
|
|
187
|
-
lines.push(url);
|
|
188
|
-
}
|
|
189
|
-
// "Created pull request #N" style messages
|
|
190
|
-
const prCreated = stripped.match(/(?:Created|Opened)\s+pull\s+request\s+#\d+[^\n]*/gi);
|
|
191
|
-
if (prCreated && !prUrls) {
|
|
192
|
-
for (const m of prCreated)
|
|
193
|
-
lines.push(m.trim());
|
|
194
|
-
}
|
|
195
|
-
// Commit hashes
|
|
196
|
-
const commits = stripped.match(/(?:committed|commit)\s+[a-f0-9]{7,40}/gi);
|
|
197
|
-
if (commits) {
|
|
198
|
-
for (const m of [...new Set(commits)])
|
|
199
|
-
lines.push(m.trim());
|
|
200
|
-
}
|
|
201
|
-
// Files changed summary (e.g. "2 files changed, 15 insertions(+), 3 deletions(-)")
|
|
202
|
-
const diffStat = stripped.match(/\d+\s+files?\s+changed.*?(?:insertion|deletion)[^\n]*/gi);
|
|
203
|
-
if (diffStat) {
|
|
204
|
-
for (const m of diffStat)
|
|
205
|
-
lines.push(m.trim());
|
|
206
|
-
}
|
|
207
|
-
return lines.join("\n");
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Extract a dev server URL from recent terminal output, if present.
|
|
211
|
-
*
|
|
212
|
-
* Looks for common patterns like:
|
|
213
|
-
* - http://localhost:3000
|
|
214
|
-
* - http://127.0.0.1:8080
|
|
215
|
-
* - http://0.0.0.0:5173
|
|
216
|
-
* - https://localhost:4200
|
|
217
|
-
*
|
|
218
|
-
* Returns the first match, or null if no dev server URL is found.
|
|
219
|
-
*/
|
|
220
|
-
export function extractDevServerUrl(raw) {
|
|
221
|
-
const stripped = applyAnsiStrip(raw);
|
|
222
|
-
// Match local dev server URLs with a port number
|
|
223
|
-
const match = stripped.match(/https?:\/\/(?:localhost|127\.0\.0\.1|0\.0\.0\.0):\d{1,5}[^\s)}\]'"`,]*/);
|
|
224
|
-
return match ? match[0] : null;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Capture the agent's output since the last task was sent, cleaned for chat display.
|
|
228
|
-
* Returns readable text with TUI noise removed, or empty string if no marker exists.
|
|
229
|
-
*
|
|
230
|
-
* Mutates `markers` by deleting the entry for `sessionId` after capture.
|
|
231
|
-
*/
|
|
232
|
-
export function captureTaskResponse(sessionId, buffers, markers) {
|
|
233
|
-
const buffer = buffers.get(sessionId);
|
|
234
|
-
const marker = markers.get(sessionId);
|
|
235
|
-
if (!buffer || marker === undefined)
|
|
236
|
-
return "";
|
|
237
|
-
const responseLines = buffer.slice(marker);
|
|
238
|
-
markers.delete(sessionId);
|
|
239
|
-
return cleanForChat(responseLines.join("\n"));
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* Peek at the current task response without consuming the marker.
|
|
243
|
-
* Useful for state reconciliation paths that need to inspect a response
|
|
244
|
-
* before deciding whether to emit a synthetic completion event.
|
|
245
|
-
*/
|
|
246
|
-
export function peekTaskResponse(sessionId, buffers, markers) {
|
|
247
|
-
const buffer = buffers.get(sessionId);
|
|
248
|
-
const marker = markers.get(sessionId);
|
|
249
|
-
if (!buffer || marker === undefined)
|
|
250
|
-
return "";
|
|
251
|
-
return cleanForChat(buffer.slice(marker).join("\n"));
|
|
252
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Read settings from the eliza/eliza config file's env section.
|
|
3
|
-
*
|
|
4
|
-
* runtime.getSetting() checks character.settings but NOT the config's env
|
|
5
|
-
* section which is where the UI writes settings. This reads the config
|
|
6
|
-
* file directly so settings take effect without restart.
|
|
7
|
-
*
|
|
8
|
-
* @module services/config-env
|
|
9
|
-
*/
|
|
10
|
-
export declare function readConfigEnvKey(key: string): string | undefined;
|
|
11
|
-
/** Read a key from the cloud section of the config (e.g. "apiKey"). */
|
|
12
|
-
export declare function readConfigCloudKey(key: string): string | undefined;
|
|
13
|
-
//# sourceMappingURL=config-env.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-env.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/services/config-env.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAuBH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAIhE;AAED,uEAAuE;AACvE,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAIlE"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Read settings from the eliza/eliza config file's env section.
|
|
3
|
-
*
|
|
4
|
-
* runtime.getSetting() checks character.settings but NOT the config's env
|
|
5
|
-
* section which is where the UI writes settings. This reads the config
|
|
6
|
-
* file directly so settings take effect without restart.
|
|
7
|
-
*
|
|
8
|
-
* @module services/config-env
|
|
9
|
-
*/
|
|
10
|
-
import { readFileSync } from "node:fs";
|
|
11
|
-
import * as os from "node:os";
|
|
12
|
-
import * as path from "node:path";
|
|
13
|
-
function readConfig() {
|
|
14
|
-
try {
|
|
15
|
-
const configPath = path.join(process.env.ELIZA_STATE_DIR ??
|
|
16
|
-
process.env.ELIZA_STATE_DIR ??
|
|
17
|
-
path.join(os.homedir(), ".eliza"), process.env.ELIZA_NAMESPACE === "eliza" || !process.env.ELIZA_NAMESPACE
|
|
18
|
-
? "eliza.json"
|
|
19
|
-
: `${process.env.ELIZA_NAMESPACE}.json`);
|
|
20
|
-
const raw = readFileSync(configPath, "utf-8");
|
|
21
|
-
return JSON.parse(raw);
|
|
22
|
-
}
|
|
23
|
-
catch {
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export function readConfigEnvKey(key) {
|
|
28
|
-
const config = readConfig();
|
|
29
|
-
const val = config?.env?.[key];
|
|
30
|
-
return typeof val === "string" ? val : undefined;
|
|
31
|
-
}
|
|
32
|
-
/** Read a key from the cloud section of the config (e.g. "apiKey"). */
|
|
33
|
-
export function readConfigCloudKey(key) {
|
|
34
|
-
const config = readConfig();
|
|
35
|
-
const val = config?.cloud?.[key];
|
|
36
|
-
return typeof val === "string" ? val : undefined;
|
|
37
|
-
}
|
package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { SessionEventName } from "./pty-types.ts";
|
|
2
|
-
export type CoordinatorEventSource = "pty_manager" | "adapter_fast_path" | "session_ready_forward" | "hook" | "unknown";
|
|
3
|
-
export interface CoordinatorSessionSnapshot {
|
|
4
|
-
id: string;
|
|
5
|
-
type?: string;
|
|
6
|
-
status?: string;
|
|
7
|
-
}
|
|
8
|
-
interface CoordinatorEventBase<TName extends SessionEventName> {
|
|
9
|
-
sessionId: string;
|
|
10
|
-
name: TName;
|
|
11
|
-
source: CoordinatorEventSource;
|
|
12
|
-
timestamp: number;
|
|
13
|
-
rawData: unknown;
|
|
14
|
-
session?: CoordinatorSessionSnapshot;
|
|
15
|
-
}
|
|
16
|
-
export interface CoordinatorReadyEvent extends CoordinatorEventBase<"ready"> {
|
|
17
|
-
}
|
|
18
|
-
export interface CoordinatorBlockedEvent extends CoordinatorEventBase<"blocked"> {
|
|
19
|
-
promptText: string;
|
|
20
|
-
promptType?: string;
|
|
21
|
-
promptInfo?: Record<string, unknown>;
|
|
22
|
-
autoResponded: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface CoordinatorLoginRequiredEvent extends CoordinatorEventBase<"login_required"> {
|
|
25
|
-
instructions?: string;
|
|
26
|
-
url?: string;
|
|
27
|
-
deviceCode?: string;
|
|
28
|
-
method?: string;
|
|
29
|
-
promptSnippet?: string;
|
|
30
|
-
}
|
|
31
|
-
export interface CoordinatorTaskCompleteEvent extends CoordinatorEventBase<"task_complete"> {
|
|
32
|
-
response: string;
|
|
33
|
-
}
|
|
34
|
-
export interface CoordinatorToolRunningEvent extends CoordinatorEventBase<"tool_running"> {
|
|
35
|
-
toolName?: string;
|
|
36
|
-
description?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface CoordinatorStoppedEvent extends CoordinatorEventBase<"stopped"> {
|
|
39
|
-
reason?: string;
|
|
40
|
-
}
|
|
41
|
-
export interface CoordinatorErrorEvent extends CoordinatorEventBase<"error"> {
|
|
42
|
-
message: string;
|
|
43
|
-
}
|
|
44
|
-
export interface CoordinatorMessageEvent extends CoordinatorEventBase<"message"> {
|
|
45
|
-
content?: string;
|
|
46
|
-
}
|
|
47
|
-
export type CoordinatorNormalizedEvent = CoordinatorReadyEvent | CoordinatorBlockedEvent | CoordinatorLoginRequiredEvent | CoordinatorTaskCompleteEvent | CoordinatorToolRunningEvent | CoordinatorStoppedEvent | CoordinatorErrorEvent | CoordinatorMessageEvent;
|
|
48
|
-
export declare function normalizeCoordinatorEvent(sessionId: string, event: string, data: unknown): CoordinatorNormalizedEvent | null;
|
|
49
|
-
export {};
|
|
50
|
-
//# sourceMappingURL=coordinator-event-normalizer.d.ts.map
|
package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"coordinator-event-normalizer.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/services/coordinator-event-normalizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,MAAM,sBAAsB,GAC/B,aAAa,GACb,mBAAmB,GACnB,uBAAuB,GACvB,MAAM,GACN,SAAS,CAAC;AAEb,MAAM,WAAW,0BAA0B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,oBAAoB,CAAC,KAAK,SAAS,gBAAgB;IAC5D,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,KAAK,CAAC;IACZ,MAAM,EAAE,sBAAsB,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,0BAA0B,CAAC;CACrC;AAED,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB,CAAC,OAAO,CAAC;CAAG;AAE/E,MAAM,WAAW,uBAChB,SAAQ,oBAAoB,CAAC,SAAS,CAAC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,aAAa,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,6BAChB,SAAQ,oBAAoB,CAAC,gBAAgB,CAAC;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,4BAChB,SAAQ,oBAAoB,CAAC,eAAe,CAAC;IAC7C,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,2BAChB,SAAQ,oBAAoB,CAAC,cAAc,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,uBAChB,SAAQ,oBAAoB,CAAC,SAAS,CAAC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB,CAAC,OAAO,CAAC;IAC3E,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAChB,SAAQ,oBAAoB,CAAC,SAAS,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,0BAA0B,GACnC,qBAAqB,GACrB,uBAAuB,GACvB,6BAA6B,GAC7B,4BAA4B,GAC5B,2BAA2B,GAC3B,uBAAuB,GACvB,qBAAqB,GACrB,uBAAuB,CAAC;AAmC3B,wBAAgB,yBAAyB,CACxC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,OAAO,GACX,0BAA0B,GAAG,IAAI,CAiKnC"}
|
package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.js
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
function normalizeSource(data) {
|
|
2
|
-
const source = typeof data?.source === "string"
|
|
3
|
-
? data.source
|
|
4
|
-
: "";
|
|
5
|
-
switch (source) {
|
|
6
|
-
case "pty_manager":
|
|
7
|
-
case "adapter_fast_path":
|
|
8
|
-
case "session_ready_forward":
|
|
9
|
-
case "hook":
|
|
10
|
-
return source;
|
|
11
|
-
default:
|
|
12
|
-
return "unknown";
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
function normalizeSessionSnapshot(data) {
|
|
16
|
-
const session = data?.session;
|
|
17
|
-
if (!session || typeof session !== "object" || Array.isArray(session)) {
|
|
18
|
-
return undefined;
|
|
19
|
-
}
|
|
20
|
-
const record = session;
|
|
21
|
-
const id = typeof record.id === "string" ? record.id : undefined;
|
|
22
|
-
if (!id)
|
|
23
|
-
return undefined;
|
|
24
|
-
return {
|
|
25
|
-
id,
|
|
26
|
-
...(typeof record.type === "string" ? { type: record.type } : {}),
|
|
27
|
-
...(typeof record.status === "string" ? { status: record.status } : {}),
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export function normalizeCoordinatorEvent(sessionId, event, data) {
|
|
31
|
-
const timestamp = typeof data?.timestamp === "number"
|
|
32
|
-
? data.timestamp
|
|
33
|
-
: Date.now();
|
|
34
|
-
const source = normalizeSource(data);
|
|
35
|
-
const session = normalizeSessionSnapshot(data);
|
|
36
|
-
switch (event) {
|
|
37
|
-
case "ready":
|
|
38
|
-
return {
|
|
39
|
-
sessionId,
|
|
40
|
-
name: "ready",
|
|
41
|
-
source,
|
|
42
|
-
timestamp,
|
|
43
|
-
rawData: data,
|
|
44
|
-
...(session ? { session } : {}),
|
|
45
|
-
};
|
|
46
|
-
case "blocked": {
|
|
47
|
-
const promptInfo = data
|
|
48
|
-
?.promptInfo;
|
|
49
|
-
const promptRecord = promptInfo &&
|
|
50
|
-
typeof promptInfo === "object" &&
|
|
51
|
-
!Array.isArray(promptInfo)
|
|
52
|
-
? promptInfo
|
|
53
|
-
: undefined;
|
|
54
|
-
const promptText = (typeof promptRecord?.prompt === "string" && promptRecord.prompt) ||
|
|
55
|
-
(typeof promptRecord?.instructions === "string" &&
|
|
56
|
-
promptRecord.instructions) ||
|
|
57
|
-
"";
|
|
58
|
-
return {
|
|
59
|
-
sessionId,
|
|
60
|
-
name: "blocked",
|
|
61
|
-
source,
|
|
62
|
-
timestamp,
|
|
63
|
-
rawData: data,
|
|
64
|
-
...(session ? { session } : {}),
|
|
65
|
-
promptText,
|
|
66
|
-
...(typeof promptRecord?.type === "string"
|
|
67
|
-
? { promptType: promptRecord.type }
|
|
68
|
-
: {}),
|
|
69
|
-
...(promptRecord ? { promptInfo: promptRecord } : {}),
|
|
70
|
-
autoResponded: data?.autoResponded ===
|
|
71
|
-
true,
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
case "login_required":
|
|
75
|
-
return {
|
|
76
|
-
sessionId,
|
|
77
|
-
name: "login_required",
|
|
78
|
-
source,
|
|
79
|
-
timestamp,
|
|
80
|
-
rawData: data,
|
|
81
|
-
...(session ? { session } : {}),
|
|
82
|
-
...(typeof data
|
|
83
|
-
?.instructions === "string"
|
|
84
|
-
? {
|
|
85
|
-
instructions: data.instructions,
|
|
86
|
-
}
|
|
87
|
-
: {}),
|
|
88
|
-
...(typeof data?.url === "string"
|
|
89
|
-
? {
|
|
90
|
-
url: data.url,
|
|
91
|
-
}
|
|
92
|
-
: {}),
|
|
93
|
-
...(typeof data
|
|
94
|
-
?.deviceCode === "string"
|
|
95
|
-
? {
|
|
96
|
-
deviceCode: data.deviceCode,
|
|
97
|
-
}
|
|
98
|
-
: {}),
|
|
99
|
-
...(typeof data?.method ===
|
|
100
|
-
"string"
|
|
101
|
-
? {
|
|
102
|
-
method: data.method,
|
|
103
|
-
}
|
|
104
|
-
: {}),
|
|
105
|
-
...(typeof data
|
|
106
|
-
?.promptSnippet === "string"
|
|
107
|
-
? {
|
|
108
|
-
promptSnippet: data.promptSnippet,
|
|
109
|
-
}
|
|
110
|
-
: {}),
|
|
111
|
-
};
|
|
112
|
-
case "task_complete":
|
|
113
|
-
return {
|
|
114
|
-
sessionId,
|
|
115
|
-
name: "task_complete",
|
|
116
|
-
source,
|
|
117
|
-
timestamp,
|
|
118
|
-
rawData: data,
|
|
119
|
-
...(session ? { session } : {}),
|
|
120
|
-
response: typeof data?.response ===
|
|
121
|
-
"string"
|
|
122
|
-
? data.response
|
|
123
|
-
: "",
|
|
124
|
-
};
|
|
125
|
-
case "tool_running":
|
|
126
|
-
return {
|
|
127
|
-
sessionId,
|
|
128
|
-
name: "tool_running",
|
|
129
|
-
source,
|
|
130
|
-
timestamp,
|
|
131
|
-
rawData: data,
|
|
132
|
-
...(session ? { session } : {}),
|
|
133
|
-
...(typeof data?.toolName ===
|
|
134
|
-
"string"
|
|
135
|
-
? { toolName: data.toolName }
|
|
136
|
-
: {}),
|
|
137
|
-
...(typeof data
|
|
138
|
-
?.description === "string"
|
|
139
|
-
? { description: data.description }
|
|
140
|
-
: {}),
|
|
141
|
-
};
|
|
142
|
-
case "stopped":
|
|
143
|
-
return {
|
|
144
|
-
sessionId,
|
|
145
|
-
name: "stopped",
|
|
146
|
-
source,
|
|
147
|
-
timestamp,
|
|
148
|
-
rawData: data,
|
|
149
|
-
...(session ? { session } : {}),
|
|
150
|
-
...(typeof data?.reason ===
|
|
151
|
-
"string"
|
|
152
|
-
? { reason: data.reason }
|
|
153
|
-
: {}),
|
|
154
|
-
};
|
|
155
|
-
case "error":
|
|
156
|
-
return {
|
|
157
|
-
sessionId,
|
|
158
|
-
name: "error",
|
|
159
|
-
source,
|
|
160
|
-
timestamp,
|
|
161
|
-
rawData: data,
|
|
162
|
-
...(session ? { session } : {}),
|
|
163
|
-
message: typeof data?.message ===
|
|
164
|
-
"string"
|
|
165
|
-
? data.message
|
|
166
|
-
: "unknown error",
|
|
167
|
-
};
|
|
168
|
-
case "message":
|
|
169
|
-
return {
|
|
170
|
-
sessionId,
|
|
171
|
-
name: "message",
|
|
172
|
-
source,
|
|
173
|
-
timestamp,
|
|
174
|
-
rawData: data,
|
|
175
|
-
...(session ? { session } : {}),
|
|
176
|
-
...(typeof data?.content ===
|
|
177
|
-
"string"
|
|
178
|
-
? { content: data.content }
|
|
179
|
-
: {}),
|
|
180
|
-
};
|
|
181
|
-
default:
|
|
182
|
-
return null;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Debug PTY Capture — optional session recording for offline analysis.
|
|
3
|
-
*
|
|
4
|
-
* Activated by setting `PARALLAX_DEBUG_CAPTURE=1`. When enabled, all PTY
|
|
5
|
-
* output and stdin are recorded per-session using `pty-state-capture`.
|
|
6
|
-
* Capture files persist in `.parallax/pty-captures/<sessionId>/` after
|
|
7
|
-
* the agent session is killed, enabling post-mortem analysis of state
|
|
8
|
-
* transitions, stall classifications, and coordinator timing.
|
|
9
|
-
*
|
|
10
|
-
* The `pty-state-capture` package is dynamically imported — if not
|
|
11
|
-
* installed, capture is silently disabled. This means it can stay out
|
|
12
|
-
* of production dependencies entirely.
|
|
13
|
-
*
|
|
14
|
-
* @module services/debug-capture
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Returns true if debug capture is enabled via environment variable.
|
|
18
|
-
*/
|
|
19
|
-
export declare function isDebugCaptureEnabled(): boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Open a capture session for a PTY session. Call this when spawning.
|
|
22
|
-
*/
|
|
23
|
-
export declare function captureSessionOpen(sessionId: string, agentType: string): Promise<void>;
|
|
24
|
-
/**
|
|
25
|
-
* Feed PTY output data to the capture. Call this on every data chunk.
|
|
26
|
-
*/
|
|
27
|
-
export declare function captureFeed(sessionId: string, chunk: string, direction?: "stdout" | "stderr" | "stdin"): Promise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* Record a lifecycle event (session_ready, session_stopped, etc.).
|
|
30
|
-
*/
|
|
31
|
-
export declare function captureLifecycle(sessionId: string, event: "session_started" | "session_ready" | "session_stopped" | "session_error", detail?: string): Promise<void>;
|
|
32
|
-
/**
|
|
33
|
-
* Get a snapshot of a capture session's current state.
|
|
34
|
-
*/
|
|
35
|
-
export declare function captureSnapshot(sessionId: string): unknown | null;
|
|
36
|
-
/** @internal Reset module state for testing only. */
|
|
37
|
-
export declare function _resetForTesting(): void;
|
|
38
|
-
//# sourceMappingURL=debug-capture.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-capture.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/services/debug-capture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAsBH;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAE/C;AAmCD;;GAEG;AACH,wBAAsB,kBAAkB,CACvC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CAQf;AAED;;GAEG;AACH,wBAAsB,WAAW,CAChC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,SAAS,GAAE,QAAQ,GAAG,QAAQ,GAAG,OAAkB,GACjD,OAAO,CAAC,IAAI,CAAC,CAOf;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACrC,SAAS,EAAE,MAAM,EACjB,KAAK,EACF,iBAAiB,GACjB,eAAe,GACf,iBAAiB,GACjB,eAAe,EAClB,MAAM,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAOf;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAQjE;AAED,qDAAqD;AACrD,wBAAgB,gBAAgB,IAAI,IAAI,CAGvC"}
|