@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,108 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const POLL_TIMEOUT_MS = 90_000;
|
|
3
|
-
const RETRY_DELAY_MS = 500;
|
|
4
|
-
const MAX_RETRIES = 5;
|
|
5
|
-
function discoverCoordinator(runtime) {
|
|
6
|
-
const coordinator = runtime.getService("SWARM_COORDINATOR");
|
|
7
|
-
if (coordinator)
|
|
8
|
-
return coordinator;
|
|
9
|
-
const ptyService = runtime.getService("PTY_SERVICE");
|
|
10
|
-
return ptyService?.coordinator ?? null;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Wire coordinator bridges using polling-based service discovery.
|
|
14
|
-
*
|
|
15
|
-
* 1. Attempts immediate wiring (coordinator may already be available).
|
|
16
|
-
* 2. If any bridge fails, polls for the coordinator via `runtime.getService()`.
|
|
17
|
-
* Depending on the installed coding-agent plugin, this may be exposed as a
|
|
18
|
-
* `SWARM_COORDINATOR` service or as `PTY_SERVICE.coordinator`.
|
|
19
|
-
* 3. Once the service appears, retries failed bridges up to MAX_RETRIES.
|
|
20
|
-
* 4. On timeout or exhaustion, broadcasts a system-warning WS event.
|
|
21
|
-
*
|
|
22
|
-
* Safe for fire-and-forget (`void wireCoordinatorBridgesWhenReady(...)`).
|
|
23
|
-
*/
|
|
24
|
-
export async function wireCoordinatorBridgesWhenReady(state, opts) {
|
|
25
|
-
const { wireChatBridge, wireWsBridge, wireEventRouting, wireSwarmSynthesis, context, logger, } = opts;
|
|
26
|
-
const result = {
|
|
27
|
-
chat: false,
|
|
28
|
-
ws: false,
|
|
29
|
-
eventRouting: false,
|
|
30
|
-
swarmSynthesis: false,
|
|
31
|
-
};
|
|
32
|
-
try {
|
|
33
|
-
// 1. Immediate attempt
|
|
34
|
-
result.chat = await wireChatBridge(state);
|
|
35
|
-
result.ws = await wireWsBridge(state);
|
|
36
|
-
result.eventRouting = await wireEventRouting(state);
|
|
37
|
-
result.swarmSynthesis = wireSwarmSynthesis
|
|
38
|
-
? await wireSwarmSynthesis(state)
|
|
39
|
-
: false;
|
|
40
|
-
if (result.chat && result.ws && result.eventRouting) {
|
|
41
|
-
logger.debug?.(`[eliza-api] Coordinator bridges wired immediately (${context})`);
|
|
42
|
-
return result;
|
|
43
|
-
}
|
|
44
|
-
// 2. Poll for SWARM_COORDINATOR service to appear
|
|
45
|
-
const runtime = state.runtime;
|
|
46
|
-
if (!runtime) {
|
|
47
|
-
logger.warn(`[eliza-api] Coordinator wiring skipped (${context}): no runtime`);
|
|
48
|
-
return result;
|
|
49
|
-
}
|
|
50
|
-
const deadline = Date.now() + POLL_TIMEOUT_MS;
|
|
51
|
-
let serviceFound = false;
|
|
52
|
-
while (Date.now() < deadline) {
|
|
53
|
-
await new Promise((r) => setTimeout(r, POLL_INTERVAL_MS));
|
|
54
|
-
const svc = discoverCoordinator(runtime);
|
|
55
|
-
if (svc) {
|
|
56
|
-
serviceFound = true;
|
|
57
|
-
logger.debug?.(`[eliza-api] coordinator service detected (${context})`);
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
if (!serviceFound) {
|
|
62
|
-
// Service never appeared — log at debug level only. This is normal
|
|
63
|
-
// if the orchestrator plugin is disabled or not configured.
|
|
64
|
-
logger.debug?.(`[eliza-api] coordinator not available after ${POLL_TIMEOUT_MS / 1000}s (${context}) — coding agent features disabled`);
|
|
65
|
-
return result;
|
|
66
|
-
}
|
|
67
|
-
// 3. Service loaded — retry failed bridges
|
|
68
|
-
for (let attempt = 0; attempt < MAX_RETRIES; attempt++) {
|
|
69
|
-
if (!result.chat)
|
|
70
|
-
result.chat = await wireChatBridge(state);
|
|
71
|
-
if (!result.ws)
|
|
72
|
-
result.ws = await wireWsBridge(state);
|
|
73
|
-
if (!result.eventRouting)
|
|
74
|
-
result.eventRouting = await wireEventRouting(state);
|
|
75
|
-
if (!result.swarmSynthesis && wireSwarmSynthesis)
|
|
76
|
-
result.swarmSynthesis = await wireSwarmSynthesis(state);
|
|
77
|
-
if (result.chat && result.ws && result.eventRouting) {
|
|
78
|
-
logger.debug?.(`[eliza-api] Coordinator bridges wired after service load (${context}, attempt ${attempt + 1})`);
|
|
79
|
-
return result;
|
|
80
|
-
}
|
|
81
|
-
// Brief delay before next retry
|
|
82
|
-
await new Promise((r) => setTimeout(r, RETRY_DELAY_MS));
|
|
83
|
-
}
|
|
84
|
-
// 4. Exhausted retries after service load — this is a real problem
|
|
85
|
-
broadcastWarning(state, result, context, "retries exhausted after service load", !!wireSwarmSynthesis);
|
|
86
|
-
logger.warn(`[eliza-api] Coordinator wiring incomplete after ${MAX_RETRIES} retries (${context})`);
|
|
87
|
-
}
|
|
88
|
-
catch (err) {
|
|
89
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
90
|
-
logger.warn(`[eliza-api] Coordinator wiring error (${context}): ${message}`);
|
|
91
|
-
}
|
|
92
|
-
return result;
|
|
93
|
-
}
|
|
94
|
-
function broadcastWarning(state, result, context, reason, hasSwarmSynthesis) {
|
|
95
|
-
const missing = [
|
|
96
|
-
!result.chat && "chat",
|
|
97
|
-
!result.ws && "ws",
|
|
98
|
-
!result.eventRouting && "event-routing",
|
|
99
|
-
hasSwarmSynthesis && !result.swarmSynthesis && "swarm-synthesis",
|
|
100
|
-
]
|
|
101
|
-
.filter(Boolean)
|
|
102
|
-
.join(", ");
|
|
103
|
-
state.broadcastWs?.({
|
|
104
|
-
type: "system-warning",
|
|
105
|
-
message: `Coordinator wiring incomplete (${context}): ${reason}. Missing bridges: ${missing}`,
|
|
106
|
-
ts: Date.now(),
|
|
107
|
-
});
|
|
108
|
-
}
|
|
1
|
+
export * from "@elizaos/app-task-coordinator/api/coordinator-wiring";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "@elizaos/app-task-coordinator/api/coordinator-wiring";
|
|
1
2
|
export * from "./agent-admin-routes.js";
|
|
2
3
|
export * from "./agent-lifecycle-routes.js";
|
|
3
4
|
export * from "./agent-model.js";
|
|
@@ -13,7 +14,6 @@ export { type CloudRouteState, handleCloudRoute, } from "./cloud-routes.js";
|
|
|
13
14
|
export { type CloudStatusRouteContext, handleCloudStatusRoutes, } from "./cloud-status-routes.js";
|
|
14
15
|
export * from "./compat-utils.js";
|
|
15
16
|
export * from "./connector-health.js";
|
|
16
|
-
export * from "./coordinator-wiring.js";
|
|
17
17
|
export * from "./credit-detection.js";
|
|
18
18
|
export * from "./database.js";
|
|
19
19
|
export * from "./diagnostics-routes.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,OAAO,EACL,KAAK,eAAe,EACpB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,uBAAuB,EAC5B,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,sDAAsD,CAAC;AACrE,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,OAAO,EACL,KAAK,eAAe,EACpB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,uBAAuB,EAC5B,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,sBAAsB,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "@elizaos/app-task-coordinator/api/coordinator-wiring";
|
|
1
2
|
export * from "./agent-admin-routes.js";
|
|
2
3
|
export * from "./agent-lifecycle-routes.js";
|
|
3
4
|
export * from "./agent-model.js";
|
|
@@ -13,7 +14,6 @@ export { handleCloudRoute, } from "./cloud-routes.js";
|
|
|
13
14
|
export { handleCloudStatusRoutes, } from "./cloud-status-routes.js";
|
|
14
15
|
export * from "./compat-utils.js";
|
|
15
16
|
export * from "./connector-health.js";
|
|
16
|
-
export * from "./coordinator-wiring.js";
|
|
17
17
|
export * from "./credit-detection.js";
|
|
18
18
|
export * from "./database.js";
|
|
19
19
|
export * from "./diagnostics-routes.js";
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function buildLifeOpsBrowserReleaseManifestForVersion(rawVersion: string, env?: NodeJS.ProcessEnv): LifeOpsBrowserCompanionReleaseManifest | null;
|
|
3
|
-
export declare function resolveLifeOpsBrowserReleaseManifest(artifactsDir: string | null, options?: {
|
|
4
|
-
allowSynthesis?: boolean;
|
|
5
|
-
version?: string;
|
|
6
|
-
env?: NodeJS.ProcessEnv;
|
|
7
|
-
}): LifeOpsBrowserCompanionReleaseManifest | null;
|
|
8
|
-
export declare function resolveLifeOpsBrowserExtensionPath(): string | null;
|
|
9
|
-
export declare function getLifeOpsBrowserCompanionPackageStatus(): LifeOpsBrowserCompanionPackageStatus;
|
|
10
|
-
export declare function getLifeOpsBrowserCompanionDownloadFile(browser: LifeOpsBrowserKind): {
|
|
11
|
-
path: string;
|
|
12
|
-
filename: string;
|
|
13
|
-
contentType: string;
|
|
14
|
-
};
|
|
15
|
-
export declare function buildLifeOpsBrowserCompanionPackage(browser: LifeOpsBrowserKind): Promise<LifeOpsBrowserCompanionPackageStatus>;
|
|
1
|
+
export * from "@elizaos/app-lifeops/routes/lifeops-browser-packaging";
|
|
16
2
|
//# sourceMappingURL=lifeops-browser-packaging.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifeops-browser-packaging.d.ts","sourceRoot":"","sources":["../../../../../src/api/lifeops-browser-packaging.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lifeops-browser-packaging.d.ts","sourceRoot":"","sources":["../../../../../src/api/lifeops-browser-packaging.ts"],"names":[],"mappings":"AAAA,cAAc,uDAAuD,CAAC"}
|
|
@@ -1,305 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import fs from "node:fs";
|
|
3
|
-
import path from "node:path";
|
|
4
|
-
import { fileURLToPath } from "node:url";
|
|
5
|
-
import { VERSION } from "../runtime/version.js";
|
|
6
|
-
const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../../../../");
|
|
7
|
-
const extensionRoot = path.join(repoRoot, "apps", "extensions", "lifeops-browser");
|
|
8
|
-
const repoPackageJsonPath = path.join(repoRoot, "package.json");
|
|
9
|
-
const repoBuildInfoPath = path.join(repoRoot, "dist", "build-info.json");
|
|
10
|
-
const NIGHTLY_EPOCH_UTC_MS = Date.UTC(2020, 0, 1);
|
|
11
|
-
const DEFAULT_REPOSITORY = "eliza-ai/eliza";
|
|
12
|
-
function existingPath(candidate) {
|
|
13
|
-
return fs.existsSync(candidate) ? candidate : null;
|
|
14
|
-
}
|
|
15
|
-
function readVersionField(filePath) {
|
|
16
|
-
if (!fs.existsSync(filePath)) {
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
const parsed = JSON.parse(fs.readFileSync(filePath, "utf8"));
|
|
20
|
-
return typeof parsed.version === "string" && parsed.version.trim()
|
|
21
|
-
? parsed.version.trim()
|
|
22
|
-
: null;
|
|
23
|
-
}
|
|
24
|
-
function resolveElizaReleaseVersion() {
|
|
25
|
-
return (readVersionField(repoPackageJsonPath) ||
|
|
26
|
-
readVersionField(repoBuildInfoPath) ||
|
|
27
|
-
VERSION);
|
|
28
|
-
}
|
|
29
|
-
function normalizeReleaseVersionCandidate(raw) {
|
|
30
|
-
const trimmed = raw.trim();
|
|
31
|
-
if (!trimmed) {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
return trimmed.startsWith("v") ? trimmed.slice(1) : trimmed;
|
|
35
|
-
}
|
|
36
|
-
function parseReleaseVersion(raw) {
|
|
37
|
-
const normalized = normalizeReleaseVersionCandidate(raw);
|
|
38
|
-
if (!normalized) {
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
41
|
-
const match = normalized.match(/^(\d+)\.(\d+)\.(\d+)(?:-(alpha|beta|rc|nightly)\.([0-9A-Za-z.-]+))?$/);
|
|
42
|
-
if (!match) {
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
const major = Number.parseInt(match[1], 10);
|
|
46
|
-
const minor = Number.parseInt(match[2], 10);
|
|
47
|
-
const patch = Number.parseInt(match[3], 10);
|
|
48
|
-
const prereleaseLabel = match[4] ?? null;
|
|
49
|
-
const prereleaseValue = match[5] ?? null;
|
|
50
|
-
return {
|
|
51
|
-
raw: normalized,
|
|
52
|
-
tag: `v${normalized}`,
|
|
53
|
-
major,
|
|
54
|
-
minor,
|
|
55
|
-
patch,
|
|
56
|
-
prereleaseLabel,
|
|
57
|
-
prereleaseValue,
|
|
58
|
-
baseVersion: `${major}.${minor}.${patch}`,
|
|
59
|
-
hasPrerelease: prereleaseLabel !== null,
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
function clamp(value, minimum, maximum) {
|
|
63
|
-
return Math.min(maximum, Math.max(minimum, value));
|
|
64
|
-
}
|
|
65
|
-
function parseNumericPrereleaseValue(value) {
|
|
66
|
-
if (!value) {
|
|
67
|
-
return 0;
|
|
68
|
-
}
|
|
69
|
-
const parsed = Number.parseInt(value, 10);
|
|
70
|
-
return Number.isFinite(parsed) ? parsed : 0;
|
|
71
|
-
}
|
|
72
|
-
function deriveNightlyOrdinal(value) {
|
|
73
|
-
if (typeof value === "string" && /^\d{8}$/.test(value)) {
|
|
74
|
-
const year = Number.parseInt(value.slice(0, 4), 10);
|
|
75
|
-
const month = Number.parseInt(value.slice(4, 6), 10);
|
|
76
|
-
const day = Number.parseInt(value.slice(6, 8), 10);
|
|
77
|
-
const utcMs = Date.UTC(year, month - 1, day);
|
|
78
|
-
if (Number.isFinite(utcMs)) {
|
|
79
|
-
return clamp(Math.floor((utcMs - NIGHTLY_EPOCH_UTC_MS) / 86_400_000) + 1, 1, 9999);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
const parsed = parseNumericPrereleaseValue(value);
|
|
83
|
-
if (parsed > 0) {
|
|
84
|
-
return clamp(parsed, 1, 9999);
|
|
85
|
-
}
|
|
86
|
-
let hash = 0;
|
|
87
|
-
for (const character of String(value ?? "")) {
|
|
88
|
-
hash = (hash * 33 + character.charCodeAt(0)) % 9999;
|
|
89
|
-
}
|
|
90
|
-
return clamp(hash, 1, 9999);
|
|
91
|
-
}
|
|
92
|
-
function derivePrereleaseOrdinal(release) {
|
|
93
|
-
if (!release.hasPrerelease || !release.prereleaseLabel) {
|
|
94
|
-
return 0;
|
|
95
|
-
}
|
|
96
|
-
if (release.prereleaseLabel === "nightly") {
|
|
97
|
-
return deriveNightlyOrdinal(release.prereleaseValue);
|
|
98
|
-
}
|
|
99
|
-
return clamp(parseNumericPrereleaseValue(release.prereleaseValue), 0, 9999);
|
|
100
|
-
}
|
|
101
|
-
function buildChromeExtensionVersion(release) {
|
|
102
|
-
let buildSegment = 60000;
|
|
103
|
-
if (release.hasPrerelease && release.prereleaseLabel) {
|
|
104
|
-
const ordinal = derivePrereleaseOrdinal(release);
|
|
105
|
-
buildSegment =
|
|
106
|
-
release.prereleaseLabel === "rc"
|
|
107
|
-
? 50000 + ordinal
|
|
108
|
-
: release.prereleaseLabel === "beta"
|
|
109
|
-
? 40000 + ordinal
|
|
110
|
-
: release.prereleaseLabel === "alpha"
|
|
111
|
-
? 30000 + ordinal
|
|
112
|
-
: 10000 + ordinal;
|
|
113
|
-
}
|
|
114
|
-
return [release.major, release.minor, release.patch, buildSegment].join(".");
|
|
115
|
-
}
|
|
116
|
-
function buildSafariExtensionVersions(release) {
|
|
117
|
-
const ordinal = derivePrereleaseOrdinal(release);
|
|
118
|
-
const suffix = !release.hasPrerelease || !release.prereleaseLabel
|
|
119
|
-
? 9000
|
|
120
|
-
: release.prereleaseLabel === "rc"
|
|
121
|
-
? 8000 + ordinal
|
|
122
|
-
: release.prereleaseLabel === "beta"
|
|
123
|
-
? 7000 + ordinal
|
|
124
|
-
: release.prereleaseLabel === "alpha"
|
|
125
|
-
? 6000 + ordinal
|
|
126
|
-
: 5000 + ordinal;
|
|
127
|
-
return {
|
|
128
|
-
marketingVersion: release.baseVersion,
|
|
129
|
-
buildVersion: String(release.major * 100_000_000 +
|
|
130
|
-
release.minor * 1_000_000 +
|
|
131
|
-
release.patch * 10_000 +
|
|
132
|
-
suffix),
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
function versionedArtifactName(prefix, extension, release) {
|
|
136
|
-
return `${prefix}-${release.tag}.${extension.replace(/^\./, "")}`;
|
|
137
|
-
}
|
|
138
|
-
function buildGitHubReleasePageUrl(repository, release) {
|
|
139
|
-
return `https://github.com/${repository}/releases/tag/${release.tag}`;
|
|
140
|
-
}
|
|
141
|
-
function buildGitHubReleaseAssetDownloadUrl(repository, release, assetName) {
|
|
142
|
-
return `https://github.com/${repository}/releases/download/${release.tag}/${assetName}`;
|
|
143
|
-
}
|
|
144
|
-
function resolveLifeOpsBrowserStoreUrls(env = process.env) {
|
|
145
|
-
const chromeWebStoreUrl = typeof env.ELIZA_LIFEOPS_BROWSER_CHROME_STORE_URL === "string" &&
|
|
146
|
-
env.ELIZA_LIFEOPS_BROWSER_CHROME_STORE_URL.trim()
|
|
147
|
-
? env.ELIZA_LIFEOPS_BROWSER_CHROME_STORE_URL.trim()
|
|
148
|
-
: null;
|
|
149
|
-
const safariAppStoreUrl = typeof env.ELIZA_LIFEOPS_BROWSER_SAFARI_STORE_URL === "string" &&
|
|
150
|
-
env.ELIZA_LIFEOPS_BROWSER_SAFARI_STORE_URL.trim()
|
|
151
|
-
? env.ELIZA_LIFEOPS_BROWSER_SAFARI_STORE_URL.trim()
|
|
152
|
-
: null;
|
|
153
|
-
return {
|
|
154
|
-
chromeWebStoreUrl,
|
|
155
|
-
safariAppStoreUrl,
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
export function buildLifeOpsBrowserReleaseManifestForVersion(rawVersion, env = process.env) {
|
|
159
|
-
const release = parseReleaseVersion(rawVersion);
|
|
160
|
-
if (!release) {
|
|
161
|
-
return null;
|
|
162
|
-
}
|
|
163
|
-
const repository = typeof env.GITHUB_REPOSITORY === "string" && env.GITHUB_REPOSITORY.trim()
|
|
164
|
-
? env.GITHUB_REPOSITORY.trim()
|
|
165
|
-
: DEFAULT_REPOSITORY;
|
|
166
|
-
const storeUrls = resolveLifeOpsBrowserStoreUrls(env);
|
|
167
|
-
const chromeAssetName = versionedArtifactName("lifeops-browser-chrome", "zip", release);
|
|
168
|
-
const safariAssetName = versionedArtifactName("lifeops-browser-safari", "zip", release);
|
|
169
|
-
const safariVersions = buildSafariExtensionVersions(release);
|
|
170
|
-
return {
|
|
171
|
-
schema: "lifeops_browser_release_v2",
|
|
172
|
-
releaseTag: release.tag,
|
|
173
|
-
releaseVersion: release.raw,
|
|
174
|
-
repository,
|
|
175
|
-
releasePageUrl: buildGitHubReleasePageUrl(repository, release),
|
|
176
|
-
chromeVersion: buildChromeExtensionVersion(release),
|
|
177
|
-
chromeVersionName: release.raw,
|
|
178
|
-
safariMarketingVersion: safariVersions.marketingVersion,
|
|
179
|
-
safariBuildVersion: safariVersions.buildVersion,
|
|
180
|
-
chrome: {
|
|
181
|
-
installKind: storeUrls.chromeWebStoreUrl
|
|
182
|
-
? "chrome_web_store"
|
|
183
|
-
: "github_release",
|
|
184
|
-
installUrl: storeUrls.chromeWebStoreUrl ??
|
|
185
|
-
buildGitHubReleaseAssetDownloadUrl(repository, release, chromeAssetName),
|
|
186
|
-
storeListingUrl: storeUrls.chromeWebStoreUrl,
|
|
187
|
-
asset: {
|
|
188
|
-
fileName: chromeAssetName,
|
|
189
|
-
downloadUrl: buildGitHubReleaseAssetDownloadUrl(repository, release, chromeAssetName),
|
|
190
|
-
},
|
|
191
|
-
},
|
|
192
|
-
safari: {
|
|
193
|
-
installKind: storeUrls.safariAppStoreUrl
|
|
194
|
-
? "apple_app_store"
|
|
195
|
-
: "github_release",
|
|
196
|
-
installUrl: storeUrls.safariAppStoreUrl ??
|
|
197
|
-
buildGitHubReleaseAssetDownloadUrl(repository, release, safariAssetName),
|
|
198
|
-
storeListingUrl: storeUrls.safariAppStoreUrl,
|
|
199
|
-
asset: {
|
|
200
|
-
fileName: safariAssetName,
|
|
201
|
-
downloadUrl: buildGitHubReleaseAssetDownloadUrl(repository, release, safariAssetName),
|
|
202
|
-
},
|
|
203
|
-
},
|
|
204
|
-
generatedAt: new Date().toISOString(),
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
function readReleaseManifest(artifactsDir) {
|
|
208
|
-
const manifestPath = path.join(artifactsDir, "lifeops-browser-release-manifest.json");
|
|
209
|
-
if (!fs.existsSync(manifestPath)) {
|
|
210
|
-
return null;
|
|
211
|
-
}
|
|
212
|
-
try {
|
|
213
|
-
return JSON.parse(fs.readFileSync(manifestPath, "utf8"));
|
|
214
|
-
}
|
|
215
|
-
catch {
|
|
216
|
-
return null;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
export function resolveLifeOpsBrowserReleaseManifest(artifactsDir, options) {
|
|
220
|
-
if (artifactsDir) {
|
|
221
|
-
const releaseManifest = readReleaseManifest(artifactsDir);
|
|
222
|
-
if (releaseManifest) {
|
|
223
|
-
return releaseManifest;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
if (!options?.allowSynthesis) {
|
|
227
|
-
return null;
|
|
228
|
-
}
|
|
229
|
-
return buildLifeOpsBrowserReleaseManifestForVersion(options.version ?? resolveElizaReleaseVersion(), options.env);
|
|
230
|
-
}
|
|
231
|
-
function packageScriptName(browser) {
|
|
232
|
-
return browser === "safari" ? "package-safari.mjs" : "package-chrome.mjs";
|
|
233
|
-
}
|
|
234
|
-
function runCommand(command, args, cwd) {
|
|
235
|
-
return new Promise((resolve, reject) => {
|
|
236
|
-
const child = spawn(command, args, {
|
|
237
|
-
cwd,
|
|
238
|
-
stdio: ["ignore", "pipe", "pipe"],
|
|
239
|
-
env: process.env,
|
|
240
|
-
});
|
|
241
|
-
let stderr = "";
|
|
242
|
-
child.stderr.on("data", (chunk) => {
|
|
243
|
-
stderr += String(chunk);
|
|
244
|
-
});
|
|
245
|
-
child.on("error", reject);
|
|
246
|
-
child.on("exit", (code) => {
|
|
247
|
-
if (code === 0) {
|
|
248
|
-
resolve();
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
reject(new Error(stderr.trim() ||
|
|
252
|
-
`${command} ${args.join(" ")} exited with code ${code ?? "unknown"}`));
|
|
253
|
-
});
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
export function resolveLifeOpsBrowserExtensionPath() {
|
|
257
|
-
return existingPath(extensionRoot);
|
|
258
|
-
}
|
|
259
|
-
export function getLifeOpsBrowserCompanionPackageStatus() {
|
|
260
|
-
const resolvedExtensionPath = resolveLifeOpsBrowserExtensionPath();
|
|
261
|
-
if (!resolvedExtensionPath) {
|
|
262
|
-
return {
|
|
263
|
-
extensionPath: null,
|
|
264
|
-
chromeBuildPath: null,
|
|
265
|
-
chromePackagePath: null,
|
|
266
|
-
safariWebExtensionPath: null,
|
|
267
|
-
safariAppPath: null,
|
|
268
|
-
safariPackagePath: null,
|
|
269
|
-
releaseManifest: resolveLifeOpsBrowserReleaseManifest(null, {
|
|
270
|
-
allowSynthesis: true,
|
|
271
|
-
}),
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
const distDir = path.join(resolvedExtensionPath, "dist");
|
|
275
|
-
const artifactsDir = path.join(distDir, "artifacts");
|
|
276
|
-
return {
|
|
277
|
-
extensionPath: resolvedExtensionPath,
|
|
278
|
-
chromeBuildPath: existingPath(path.join(distDir, "chrome")),
|
|
279
|
-
chromePackagePath: existingPath(path.join(artifactsDir, "lifeops-browser-chrome.zip")),
|
|
280
|
-
safariWebExtensionPath: existingPath(path.join(distDir, "safari")),
|
|
281
|
-
safariAppPath: existingPath(path.join(artifactsDir, "LifeOps Browser.app")),
|
|
282
|
-
safariPackagePath: existingPath(path.join(artifactsDir, "lifeops-browser-safari.zip")),
|
|
283
|
-
releaseManifest: resolveLifeOpsBrowserReleaseManifest(artifactsDir),
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
export function getLifeOpsBrowserCompanionDownloadFile(browser) {
|
|
287
|
-
const status = getLifeOpsBrowserCompanionPackageStatus();
|
|
288
|
-
const filePath = browser === "safari" ? status.safariPackagePath : status.chromePackagePath;
|
|
289
|
-
if (!filePath) {
|
|
290
|
-
throw new Error(`${browser === "safari" ? "Safari" : "Chrome"} package has not been built yet`);
|
|
291
|
-
}
|
|
292
|
-
return {
|
|
293
|
-
path: filePath,
|
|
294
|
-
filename: path.basename(filePath),
|
|
295
|
-
contentType: "application/zip",
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
export async function buildLifeOpsBrowserCompanionPackage(browser) {
|
|
299
|
-
const resolvedExtensionPath = resolveLifeOpsBrowserExtensionPath();
|
|
300
|
-
if (!resolvedExtensionPath) {
|
|
301
|
-
throw new Error("LifeOps Browser extension workspace is not available");
|
|
302
|
-
}
|
|
303
|
-
await runCommand("bun", [path.join(resolvedExtensionPath, "scripts", packageScriptName(browser))], resolvedExtensionPath);
|
|
304
|
-
return getLifeOpsBrowserCompanionPackageStatus();
|
|
305
|
-
}
|
|
1
|
+
export * from "@elizaos/app-lifeops/routes/lifeops-browser-packaging";
|
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { type AgentRuntime, type UUID } from "@elizaos/core";
|
|
3
|
-
import type { ReadJsonBodyOptions } from "./http-helpers.js";
|
|
4
|
-
export interface LifeOpsRouteContext {
|
|
5
|
-
req: http.IncomingMessage;
|
|
6
|
-
res: http.ServerResponse;
|
|
7
|
-
method: string;
|
|
8
|
-
pathname: string;
|
|
9
|
-
url: URL;
|
|
10
|
-
state: {
|
|
11
|
-
runtime: AgentRuntime | null;
|
|
12
|
-
adminEntityId: UUID | null;
|
|
13
|
-
};
|
|
14
|
-
json: (res: http.ServerResponse, data: unknown, status?: number) => void;
|
|
15
|
-
error: (res: http.ServerResponse, message: string, status?: number) => void;
|
|
16
|
-
readJsonBody: <T extends object>(req: http.IncomingMessage, res: http.ServerResponse, options?: ReadJsonBodyOptions) => Promise<T | null>;
|
|
17
|
-
decodePathComponent: (raw: string, res: http.ServerResponse, label: string) => string | null;
|
|
18
|
-
}
|
|
19
|
-
export declare function handleLifeOpsRoutes(ctx: LifeOpsRouteContext): Promise<boolean>;
|
|
1
|
+
export * from "@elizaos/app-lifeops/routes/lifeops-routes";
|
|
20
2
|
//# sourceMappingURL=lifeops-routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifeops-routes.d.ts","sourceRoot":"","sources":["../../../../../src/api/lifeops-routes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lifeops-routes.d.ts","sourceRoot":"","sources":["../../../../../src/api/lifeops-routes.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC"}
|