@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,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const LIFEOPS_TASK_NAME: "LIFEOPS_SCHEDULER";
|
|
3
|
-
export declare const LIFEOPS_TASK_TAGS: readonly ["queue", "repeat", "lifeops"];
|
|
4
|
-
/** Base interval for the LifeOps scheduler polling loop. */
|
|
5
|
-
export declare const LIFEOPS_TASK_INTERVAL_MS = 60000;
|
|
6
|
-
/** Maximum deterministic jitter added per agent to avoid synchronized polls. */
|
|
7
|
-
export declare const LIFEOPS_TASK_JITTER_MS = 10000;
|
|
8
|
-
export declare function resolveLifeOpsTaskIntervalMs(agentId: UUID): number;
|
|
9
|
-
export declare function executeLifeOpsSchedulerTask(runtime: IAgentRuntime, options?: Record<string, unknown>): Promise<{
|
|
10
|
-
nextInterval: number;
|
|
11
|
-
}>;
|
|
12
|
-
export declare function registerLifeOpsTaskWorker(runtime: IAgentRuntime): void;
|
|
13
|
-
export declare function ensureLifeOpsSchedulerTask(runtime: IAgentRuntime): Promise<UUID>;
|
|
1
|
+
export * from "@elizaos/app-lifeops/lifeops/runtime";
|
|
14
2
|
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../../src/lifeops/runtime.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../../src/lifeops/runtime.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC"}
|
|
@@ -1,120 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { LifeOpsService } from "./service.js";
|
|
3
|
-
import { readTwilioCredentialsFromEnv } from "./twilio.js";
|
|
4
|
-
export const LIFEOPS_TASK_NAME = "LIFEOPS_SCHEDULER";
|
|
5
|
-
export const LIFEOPS_TASK_TAGS = ["queue", "repeat", "lifeops"];
|
|
6
|
-
/** Base interval for the LifeOps scheduler polling loop. */
|
|
7
|
-
export const LIFEOPS_TASK_INTERVAL_MS = 60_000;
|
|
8
|
-
/** Maximum deterministic jitter added per agent to avoid synchronized polls. */
|
|
9
|
-
export const LIFEOPS_TASK_JITTER_MS = 10_000;
|
|
10
|
-
function isRecord(value) {
|
|
11
|
-
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
12
|
-
}
|
|
13
|
-
function isLifeOpsSchedulerTask(task) {
|
|
14
|
-
const metadata = isRecord(task.metadata) ? task.metadata : null;
|
|
15
|
-
const scheduler = metadata?.lifeopsScheduler;
|
|
16
|
-
return (task.name === LIFEOPS_TASK_NAME &&
|
|
17
|
-
isRecord(scheduler) &&
|
|
18
|
-
scheduler.kind === "runtime_runner");
|
|
19
|
-
}
|
|
20
|
-
function buildSchedulerMetadata(agentId, current = null) {
|
|
21
|
-
const intervalMs = resolveLifeOpsTaskIntervalMs(agentId);
|
|
22
|
-
return {
|
|
23
|
-
...(current ?? {}),
|
|
24
|
-
updateInterval: intervalMs,
|
|
25
|
-
baseInterval: intervalMs,
|
|
26
|
-
blocking: true,
|
|
27
|
-
lifeopsScheduler: {
|
|
28
|
-
kind: "runtime_runner",
|
|
29
|
-
version: 1,
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export function resolveLifeOpsTaskIntervalMs(agentId) {
|
|
34
|
-
let hash = 0;
|
|
35
|
-
for (let index = 0; index < agentId.length; index++) {
|
|
36
|
-
hash = (hash * 31 + agentId.charCodeAt(index)) >>> 0;
|
|
37
|
-
}
|
|
38
|
-
return LIFEOPS_TASK_INTERVAL_MS + (hash % (LIFEOPS_TASK_JITTER_MS + 1));
|
|
39
|
-
}
|
|
40
|
-
export async function executeLifeOpsSchedulerTask(runtime, options = {}) {
|
|
41
|
-
const service = new LifeOpsService(runtime);
|
|
42
|
-
await service.processScheduledWork({
|
|
43
|
-
now: typeof options.now === "string" ? options.now : undefined,
|
|
44
|
-
});
|
|
45
|
-
return {
|
|
46
|
-
nextInterval: resolveLifeOpsTaskIntervalMs(runtime.agentId),
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
export function registerLifeOpsTaskWorker(runtime) {
|
|
50
|
-
if (runtime.getTaskWorker(LIFEOPS_TASK_NAME)) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
runtime.registerTaskWorker({
|
|
54
|
-
name: LIFEOPS_TASK_NAME,
|
|
55
|
-
shouldRun: async () => true,
|
|
56
|
-
execute: async (rt, options) => executeLifeOpsSchedulerTask(rt, isRecord(options) ? options : {}),
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Wait for the database adapter to be ready before running task queries.
|
|
61
|
-
* PGlite may still be initializing when plugin init fires; a short probe
|
|
62
|
-
* avoids a noisy retry cycle in plugin-sql.
|
|
63
|
-
*/
|
|
64
|
-
async function waitForDbReady(runtime, maxAttempts = 3, delayMs = 500) {
|
|
65
|
-
for (let i = 0; i < maxAttempts; i++) {
|
|
66
|
-
try {
|
|
67
|
-
// Light-weight probe: fetch tasks with a filter that should match nothing.
|
|
68
|
-
await runtime.getTasks({
|
|
69
|
-
agentIds: [runtime.agentId],
|
|
70
|
-
tags: ["__db_ready_probe__"],
|
|
71
|
-
});
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
catch {
|
|
75
|
-
if (i < maxAttempts - 1) {
|
|
76
|
-
await new Promise((r) => setTimeout(r, delayMs));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
// If still failing, let the caller proceed — the original retry logic in
|
|
81
|
-
// plugin-sql will handle it, we just reduced the likelihood of hitting it.
|
|
82
|
-
}
|
|
83
|
-
let credentialStatusLogged = false;
|
|
84
|
-
function logCredentialStatus() {
|
|
85
|
-
if (credentialStatusLogged)
|
|
86
|
-
return;
|
|
87
|
-
credentialStatusLogged = true;
|
|
88
|
-
const hasTwilio = Boolean(readTwilioCredentialsFromEnv());
|
|
89
|
-
if (!hasTwilio) {
|
|
90
|
-
logger.info("[lifeops] Twilio credentials not configured — SMS and voice reminders will be blocked. Set TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, and TWILIO_PHONE_NUMBER to enable.");
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
export async function ensureLifeOpsSchedulerTask(runtime) {
|
|
94
|
-
await waitForDbReady(runtime);
|
|
95
|
-
logCredentialStatus();
|
|
96
|
-
const tasks = await runtime.getTasks({
|
|
97
|
-
agentIds: [runtime.agentId],
|
|
98
|
-
tags: [...LIFEOPS_TASK_TAGS],
|
|
99
|
-
});
|
|
100
|
-
const existing = tasks.find(isLifeOpsSchedulerTask);
|
|
101
|
-
const metadata = buildSchedulerMetadata(runtime.agentId, isRecord(existing?.metadata) ? existing.metadata : null);
|
|
102
|
-
if (existing?.id) {
|
|
103
|
-
await runtime.updateTask(existing.id, {
|
|
104
|
-
description: "Process life-ops reminders and scheduled workflows",
|
|
105
|
-
metadata,
|
|
106
|
-
});
|
|
107
|
-
return existing.id;
|
|
108
|
-
}
|
|
109
|
-
const autonomy = runtime.getService("AUTONOMY");
|
|
110
|
-
const roomId = autonomy?.getAutonomousRoomId?.() ??
|
|
111
|
-
stringToUuid(`lifeops-scheduler-room-${runtime.agentId}`);
|
|
112
|
-
return runtime.createTask({
|
|
113
|
-
name: LIFEOPS_TASK_NAME,
|
|
114
|
-
description: "Process life-ops reminders and scheduled workflows",
|
|
115
|
-
roomId,
|
|
116
|
-
tags: [...LIFEOPS_TASK_TAGS],
|
|
117
|
-
metadata,
|
|
118
|
-
dueAt: Date.now(),
|
|
119
|
-
});
|
|
120
|
-
}
|
|
1
|
+
export * from "@elizaos/app-lifeops/lifeops/runtime";
|
|
@@ -1,52 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type LifeOpsScreenSource = "disabled" | "browser-capture" | "vision";
|
|
3
|
-
export interface LifeOpsScreenContextSummary {
|
|
4
|
-
sampledAtMs: number;
|
|
5
|
-
source: LifeOpsScreenSource;
|
|
6
|
-
available: boolean;
|
|
7
|
-
throttled: boolean;
|
|
8
|
-
stale: boolean;
|
|
9
|
-
busy: boolean;
|
|
10
|
-
framePath: string;
|
|
11
|
-
capturedAtMs: number | null;
|
|
12
|
-
width: number | null;
|
|
13
|
-
height: number | null;
|
|
14
|
-
byteLength: number;
|
|
15
|
-
averageLuma: number | null;
|
|
16
|
-
lumaStdDev: number | null;
|
|
17
|
-
ocrAvailable: boolean;
|
|
18
|
-
ocrText: string | null;
|
|
19
|
-
focus: LifeOpsScreenFocus;
|
|
20
|
-
contextTags: string[];
|
|
21
|
-
cues: string[];
|
|
22
|
-
confidence: number;
|
|
23
|
-
disabledReason: string | null;
|
|
24
|
-
}
|
|
25
|
-
export interface LifeOpsScreenOcrAdapter {
|
|
26
|
-
extractText(imageBuffer: Buffer): Promise<string | null>;
|
|
27
|
-
}
|
|
28
|
-
export interface LifeOpsScreenContextSamplerOptions {
|
|
29
|
-
framePath?: string;
|
|
30
|
-
minSampleIntervalMs?: number;
|
|
31
|
-
maxFrameAgeMs?: number;
|
|
32
|
-
ocr?: LifeOpsScreenOcrAdapter | null;
|
|
33
|
-
}
|
|
34
|
-
export declare function analyzeLifeOpsScreenBuffer(args: {
|
|
35
|
-
framePath: string;
|
|
36
|
-
frameBytes: Buffer;
|
|
37
|
-
ocrText: string | null;
|
|
38
|
-
capturedAtMs: number;
|
|
39
|
-
sampledAtMs: number;
|
|
40
|
-
stale: boolean;
|
|
41
|
-
}): Promise<LifeOpsScreenContextSummary>;
|
|
42
|
-
export declare class LifeOpsScreenContextSampler {
|
|
43
|
-
private readonly options;
|
|
44
|
-
private lastSampleAtMs;
|
|
45
|
-
private lastSummary;
|
|
46
|
-
constructor(options?: LifeOpsScreenContextSamplerOptions);
|
|
47
|
-
shouldSample(nowMs?: number): boolean;
|
|
48
|
-
getLastSummary(): LifeOpsScreenContextSummary | null;
|
|
49
|
-
sample(nowMs?: number): Promise<LifeOpsScreenContextSummary>;
|
|
50
|
-
}
|
|
51
|
-
export declare function tryCreateVisionOcrAdapter(): Promise<LifeOpsScreenOcrAdapter | null>;
|
|
1
|
+
export * from "@elizaos/app-lifeops/lifeops/screen-context";
|
|
52
2
|
//# sourceMappingURL=screen-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screen-context.d.ts","sourceRoot":"","sources":["../../../../../src/lifeops/screen-context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"screen-context.d.ts","sourceRoot":"","sources":["../../../../../src/lifeops/screen-context.ts"],"names":[],"mappings":"AAAA,cAAc,6CAA6C,CAAC"}
|
|
@@ -1,332 +1 @@
|
|
|
1
|
-
|
|
2
|
-
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
3
|
-
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
4
|
-
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
5
|
-
});
|
|
6
|
-
}
|
|
7
|
-
return path;
|
|
8
|
-
};
|
|
9
|
-
import fs from "node:fs";
|
|
10
|
-
import sharp from "sharp";
|
|
11
|
-
import { FRAME_FILE } from "../services/browser-capture.js";
|
|
12
|
-
const DEFAULT_MIN_SAMPLE_INTERVAL_MS = 5 * 60_000;
|
|
13
|
-
const DEFAULT_MAX_FRAME_AGE_MS = 30 * 60_000;
|
|
14
|
-
const HEURISTIC_TEXT_LIMIT = 1_024;
|
|
15
|
-
const WORK_KEYWORDS = [
|
|
16
|
-
"inbox",
|
|
17
|
-
"email",
|
|
18
|
-
"calendar",
|
|
19
|
-
"meeting",
|
|
20
|
-
"docs",
|
|
21
|
-
"document",
|
|
22
|
-
"spreadsheet",
|
|
23
|
-
"sheet",
|
|
24
|
-
"slack",
|
|
25
|
-
"discord",
|
|
26
|
-
"github",
|
|
27
|
-
"pull request",
|
|
28
|
-
"jira",
|
|
29
|
-
"terminal",
|
|
30
|
-
"code",
|
|
31
|
-
"editor",
|
|
32
|
-
"notion",
|
|
33
|
-
"figma",
|
|
34
|
-
];
|
|
35
|
-
const LEISURE_KEYWORDS = [
|
|
36
|
-
"youtube",
|
|
37
|
-
"netflix",
|
|
38
|
-
"twitch",
|
|
39
|
-
"instagram",
|
|
40
|
-
"twitter",
|
|
41
|
-
"x.com",
|
|
42
|
-
"reddit",
|
|
43
|
-
"game",
|
|
44
|
-
"gaming",
|
|
45
|
-
"spotify",
|
|
46
|
-
];
|
|
47
|
-
const TRANSITION_KEYWORDS = [
|
|
48
|
-
"lock screen",
|
|
49
|
-
"login",
|
|
50
|
-
"sign in",
|
|
51
|
-
"password",
|
|
52
|
-
"desktop",
|
|
53
|
-
"wallpaper",
|
|
54
|
-
"home screen",
|
|
55
|
-
"launchpad",
|
|
56
|
-
];
|
|
57
|
-
function normalizeText(value) {
|
|
58
|
-
return (value ?? "")
|
|
59
|
-
.replace(/\s+/g, " ")
|
|
60
|
-
.trim()
|
|
61
|
-
.slice(0, HEURISTIC_TEXT_LIMIT);
|
|
62
|
-
}
|
|
63
|
-
function keywordMatches(text, keywords) {
|
|
64
|
-
const lower = text.toLowerCase();
|
|
65
|
-
return keywords.filter((keyword) => lower.includes(keyword));
|
|
66
|
-
}
|
|
67
|
-
async function analyzeImage(buffer) {
|
|
68
|
-
const image = sharp(buffer).rotate().greyscale().resize({
|
|
69
|
-
width: 160,
|
|
70
|
-
withoutEnlargement: true,
|
|
71
|
-
fit: "inside",
|
|
72
|
-
});
|
|
73
|
-
const { data, info } = await image
|
|
74
|
-
.raw()
|
|
75
|
-
.toBuffer({ resolveWithObject: true });
|
|
76
|
-
const pixels = data;
|
|
77
|
-
let sum = 0;
|
|
78
|
-
let sumSquares = 0;
|
|
79
|
-
let dark = 0;
|
|
80
|
-
let bright = 0;
|
|
81
|
-
let edges = 0;
|
|
82
|
-
let comparisons = 0;
|
|
83
|
-
for (let index = 0; index < pixels.length; index += 1) {
|
|
84
|
-
const value = pixels[index] ?? 0;
|
|
85
|
-
sum += value;
|
|
86
|
-
sumSquares += value * value;
|
|
87
|
-
if (value < 32)
|
|
88
|
-
dark += 1;
|
|
89
|
-
if (value > 224)
|
|
90
|
-
bright += 1;
|
|
91
|
-
const left = pixels[index - 1];
|
|
92
|
-
if (left !== undefined) {
|
|
93
|
-
const diff = Math.abs(value - left);
|
|
94
|
-
if (diff > 28)
|
|
95
|
-
edges += 1;
|
|
96
|
-
comparisons += 1;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
const count = Math.max(1, pixels.length);
|
|
100
|
-
const averageLuma = sum / count / 255;
|
|
101
|
-
const variance = sumSquares / count - (sum / count) ** 2;
|
|
102
|
-
const lumaStdDev = Math.sqrt(Math.max(0, variance)) / 255;
|
|
103
|
-
return {
|
|
104
|
-
width: info.width ?? 0,
|
|
105
|
-
height: info.height ?? 0,
|
|
106
|
-
averageLuma,
|
|
107
|
-
lumaStdDev,
|
|
108
|
-
darkRatio: dark / count,
|
|
109
|
-
brightRatio: bright / count,
|
|
110
|
-
edgeRatio: comparisons > 0 ? edges / comparisons : 0,
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
function inferFocusFromSignals(args) {
|
|
114
|
-
const normalizedText = normalizeText(args.text);
|
|
115
|
-
const workCues = keywordMatches(normalizedText, WORK_KEYWORDS);
|
|
116
|
-
const leisureCues = keywordMatches(normalizedText, LEISURE_KEYWORDS);
|
|
117
|
-
const transitionCues = keywordMatches(normalizedText, TRANSITION_KEYWORDS);
|
|
118
|
-
const cues = [...workCues, ...leisureCues, ...transitionCues];
|
|
119
|
-
const tags = new Set();
|
|
120
|
-
let focus = "unknown";
|
|
121
|
-
let confidence = 0.28;
|
|
122
|
-
if (workCues.length > 0) {
|
|
123
|
-
focus = "work";
|
|
124
|
-
confidence = 0.86;
|
|
125
|
-
tags.add("work");
|
|
126
|
-
tags.add("text-heavy");
|
|
127
|
-
}
|
|
128
|
-
else if (leisureCues.length > 0) {
|
|
129
|
-
focus = "leisure";
|
|
130
|
-
confidence = 0.84;
|
|
131
|
-
tags.add("leisure");
|
|
132
|
-
tags.add("screen-entertainment");
|
|
133
|
-
}
|
|
134
|
-
else if (transitionCues.length > 0) {
|
|
135
|
-
focus = "transition";
|
|
136
|
-
confidence = 0.78;
|
|
137
|
-
tags.add("transition");
|
|
138
|
-
}
|
|
139
|
-
if (focus === "unknown") {
|
|
140
|
-
if (args.stats.darkRatio > 0.92 && args.stats.lumaStdDev < 0.025) {
|
|
141
|
-
focus = "idle";
|
|
142
|
-
confidence = 0.72;
|
|
143
|
-
tags.add("idle");
|
|
144
|
-
}
|
|
145
|
-
else if (args.stats.brightRatio > 0.92 && args.stats.lumaStdDev < 0.025) {
|
|
146
|
-
focus = "transition";
|
|
147
|
-
confidence = 0.66;
|
|
148
|
-
tags.add("transition");
|
|
149
|
-
}
|
|
150
|
-
else if (args.stats.edgeRatio > 0.08 &&
|
|
151
|
-
args.stats.averageLuma > 0.18 &&
|
|
152
|
-
args.stats.averageLuma < 0.88) {
|
|
153
|
-
focus = "work";
|
|
154
|
-
confidence = 0.52;
|
|
155
|
-
tags.add("busy");
|
|
156
|
-
tags.add("text-or-ui-dense");
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
if (focus === "idle") {
|
|
160
|
-
tags.add("idle");
|
|
161
|
-
}
|
|
162
|
-
else if (focus === "unknown") {
|
|
163
|
-
tags.add("uncertain");
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
tags.add("screen-active");
|
|
167
|
-
}
|
|
168
|
-
return {
|
|
169
|
-
focus,
|
|
170
|
-
contextTags: [...tags],
|
|
171
|
-
cues,
|
|
172
|
-
confidence,
|
|
173
|
-
busy: focus === "work" || focus === "transition",
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
async function readOcrText(ocr, frameBytes) {
|
|
177
|
-
if (!ocr) {
|
|
178
|
-
return null;
|
|
179
|
-
}
|
|
180
|
-
try {
|
|
181
|
-
const text = await ocr.extractText(frameBytes);
|
|
182
|
-
return normalizeText(text) || null;
|
|
183
|
-
}
|
|
184
|
-
catch {
|
|
185
|
-
return null;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
function buildDisabledSummary(args) {
|
|
189
|
-
return {
|
|
190
|
-
sampledAtMs: args.sampledAtMs,
|
|
191
|
-
source: "disabled",
|
|
192
|
-
available: false,
|
|
193
|
-
throttled: false,
|
|
194
|
-
stale: false,
|
|
195
|
-
busy: false,
|
|
196
|
-
framePath: args.framePath,
|
|
197
|
-
capturedAtMs: null,
|
|
198
|
-
width: null,
|
|
199
|
-
height: null,
|
|
200
|
-
byteLength: 0,
|
|
201
|
-
averageLuma: null,
|
|
202
|
-
lumaStdDev: null,
|
|
203
|
-
ocrAvailable: false,
|
|
204
|
-
ocrText: null,
|
|
205
|
-
focus: "unknown",
|
|
206
|
-
contextTags: ["disabled"],
|
|
207
|
-
cues: [],
|
|
208
|
-
confidence: 0,
|
|
209
|
-
disabledReason: args.disabledReason,
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
export async function analyzeLifeOpsScreenBuffer(args) {
|
|
213
|
-
const stats = await analyzeImage(args.frameBytes);
|
|
214
|
-
const inference = inferFocusFromSignals({
|
|
215
|
-
text: args.ocrText,
|
|
216
|
-
stats,
|
|
217
|
-
});
|
|
218
|
-
return {
|
|
219
|
-
sampledAtMs: args.sampledAtMs,
|
|
220
|
-
source: args.ocrText ? "vision" : "browser-capture",
|
|
221
|
-
available: !args.stale,
|
|
222
|
-
throttled: false,
|
|
223
|
-
stale: args.stale,
|
|
224
|
-
busy: !args.stale && inference.busy,
|
|
225
|
-
framePath: args.framePath,
|
|
226
|
-
capturedAtMs: args.capturedAtMs,
|
|
227
|
-
width: stats.width,
|
|
228
|
-
height: stats.height,
|
|
229
|
-
byteLength: args.frameBytes.byteLength,
|
|
230
|
-
averageLuma: stats.averageLuma,
|
|
231
|
-
lumaStdDev: stats.lumaStdDev,
|
|
232
|
-
ocrAvailable: Boolean(args.ocrText && args.ocrText.length > 0),
|
|
233
|
-
ocrText: normalizeText(args.ocrText) || null,
|
|
234
|
-
focus: args.stale ? "unknown" : inference.focus,
|
|
235
|
-
contextTags: args.stale ? ["stale-frame"] : inference.contextTags,
|
|
236
|
-
cues: args.stale ? [] : inference.cues,
|
|
237
|
-
confidence: args.stale ? 0.2 : inference.confidence,
|
|
238
|
-
disabledReason: args.stale
|
|
239
|
-
? "The latest browser-capture frame is stale."
|
|
240
|
-
: null,
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
export class LifeOpsScreenContextSampler {
|
|
244
|
-
options;
|
|
245
|
-
lastSampleAtMs = 0;
|
|
246
|
-
lastSummary = null;
|
|
247
|
-
constructor(options = {}) {
|
|
248
|
-
this.options = options;
|
|
249
|
-
}
|
|
250
|
-
shouldSample(nowMs = Date.now()) {
|
|
251
|
-
const minIntervalMs = this.options.minSampleIntervalMs ?? DEFAULT_MIN_SAMPLE_INTERVAL_MS;
|
|
252
|
-
return (this.lastSampleAtMs === 0 || nowMs - this.lastSampleAtMs >= minIntervalMs);
|
|
253
|
-
}
|
|
254
|
-
getLastSummary() {
|
|
255
|
-
return this.lastSummary;
|
|
256
|
-
}
|
|
257
|
-
async sample(nowMs = Date.now()) {
|
|
258
|
-
if (!this.shouldSample(nowMs) && this.lastSummary) {
|
|
259
|
-
return {
|
|
260
|
-
...this.lastSummary,
|
|
261
|
-
throttled: true,
|
|
262
|
-
sampledAtMs: nowMs,
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
const framePath = this.options.framePath ?? FRAME_FILE;
|
|
266
|
-
const maxFrameAgeMs = this.options.maxFrameAgeMs ?? DEFAULT_MAX_FRAME_AGE_MS;
|
|
267
|
-
if (!fs.existsSync(framePath)) {
|
|
268
|
-
const summary = buildDisabledSummary({
|
|
269
|
-
sampledAtMs: nowMs,
|
|
270
|
-
framePath,
|
|
271
|
-
disabledReason: "No browser-capture frame is available.",
|
|
272
|
-
});
|
|
273
|
-
this.lastSampleAtMs = nowMs;
|
|
274
|
-
this.lastSummary = summary;
|
|
275
|
-
return summary;
|
|
276
|
-
}
|
|
277
|
-
try {
|
|
278
|
-
const stat = fs.statSync(framePath);
|
|
279
|
-
const stale = nowMs - stat.mtimeMs > maxFrameAgeMs;
|
|
280
|
-
const frameBytes = fs.readFileSync(framePath);
|
|
281
|
-
const ocrText = await readOcrText(this.options.ocr, frameBytes);
|
|
282
|
-
const summary = await analyzeLifeOpsScreenBuffer({
|
|
283
|
-
framePath,
|
|
284
|
-
frameBytes,
|
|
285
|
-
ocrText,
|
|
286
|
-
capturedAtMs: stat.mtimeMs,
|
|
287
|
-
sampledAtMs: nowMs,
|
|
288
|
-
stale,
|
|
289
|
-
});
|
|
290
|
-
this.lastSampleAtMs = nowMs;
|
|
291
|
-
this.lastSummary = summary;
|
|
292
|
-
return summary;
|
|
293
|
-
}
|
|
294
|
-
catch {
|
|
295
|
-
const summary = buildDisabledSummary({
|
|
296
|
-
sampledAtMs: nowMs,
|
|
297
|
-
framePath,
|
|
298
|
-
disabledReason: "Unable to read or analyze the browser-capture frame.",
|
|
299
|
-
});
|
|
300
|
-
this.lastSampleAtMs = nowMs;
|
|
301
|
-
this.lastSummary = summary;
|
|
302
|
-
return summary;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
export async function tryCreateVisionOcrAdapter() {
|
|
307
|
-
const visionImportCandidates = [
|
|
308
|
-
"@elizaos/plugin-vision",
|
|
309
|
-
new URL("../../../../plugins/plugin-vision/typescript/src/ocr-service.ts", import.meta.url).href,
|
|
310
|
-
];
|
|
311
|
-
for (const specifier of visionImportCandidates) {
|
|
312
|
-
try {
|
|
313
|
-
const mod = await import(__rewriteRelativeImportExtension(/* @vite-ignore */ specifier));
|
|
314
|
-
const OCRService = mod.OCRService;
|
|
315
|
-
if (!OCRService) {
|
|
316
|
-
continue;
|
|
317
|
-
}
|
|
318
|
-
const service = new OCRService();
|
|
319
|
-
if (typeof service.initialize === "function") {
|
|
320
|
-
await service.initialize();
|
|
321
|
-
}
|
|
322
|
-
return {
|
|
323
|
-
async extractText(imageBuffer) {
|
|
324
|
-
const result = await service.extractText(imageBuffer);
|
|
325
|
-
return normalizeText(result.fullText ?? result.text ?? null) || null;
|
|
326
|
-
},
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
catch { }
|
|
330
|
-
}
|
|
331
|
-
return null;
|
|
332
|
-
}
|
|
1
|
+
export * from "@elizaos/app-lifeops/lifeops/screen-context";
|
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Seed routine templates offered during first-run onboarding.
|
|
3
|
-
*
|
|
4
|
-
* These are data-only definitions — no hardcoded logic is tied to any
|
|
5
|
-
* specific routine. The seeding flow creates standard task definitions
|
|
6
|
-
* through the normal LifeOps service API so they benefit from the same
|
|
7
|
-
* adaptive timing, reminders, and escalation as user-created tasks.
|
|
8
|
-
*/
|
|
9
|
-
import type { CreateLifeOpsDefinitionRequest } from "@elizaos/shared/contracts/lifeops";
|
|
10
|
-
export interface RoutineSeedTemplate {
|
|
11
|
-
/** Stable key used to deduplicate across seeding offers. */
|
|
12
|
-
key: string;
|
|
13
|
-
title: string;
|
|
14
|
-
description: string;
|
|
15
|
-
category: "hygiene" | "health" | "fitness" | "nutrition";
|
|
16
|
-
/** Partial request — the caller supplies agent/domain/tz fields. */
|
|
17
|
-
request: Pick<CreateLifeOpsDefinitionRequest, "kind" | "title" | "cadence" | "priority" | "originalIntent">;
|
|
18
|
-
}
|
|
19
|
-
export declare const ROUTINE_SEED_TEMPLATES: RoutineSeedTemplate[];
|
|
1
|
+
export * from "@elizaos/app-lifeops/lifeops/seed-routines";
|
|
20
2
|
//# sourceMappingURL=seed-routines.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seed-routines.d.ts","sourceRoot":"","sources":["../../../../../src/lifeops/seed-routines.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"seed-routines.d.ts","sourceRoot":"","sources":["../../../../../src/lifeops/seed-routines.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC"}
|
|
@@ -1,111 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Seed routine templates offered during first-run onboarding.
|
|
3
|
-
*
|
|
4
|
-
* These are data-only definitions — no hardcoded logic is tied to any
|
|
5
|
-
* specific routine. The seeding flow creates standard task definitions
|
|
6
|
-
* through the normal LifeOps service API so they benefit from the same
|
|
7
|
-
* adaptive timing, reminders, and escalation as user-created tasks.
|
|
8
|
-
*/
|
|
9
|
-
export const ROUTINE_SEED_TEMPLATES = [
|
|
10
|
-
{
|
|
11
|
-
key: "brush_teeth",
|
|
12
|
-
title: "Brush teeth",
|
|
13
|
-
description: "Morning and night tooth brushing",
|
|
14
|
-
category: "hygiene",
|
|
15
|
-
request: {
|
|
16
|
-
kind: "routine",
|
|
17
|
-
title: "Brush teeth",
|
|
18
|
-
cadence: { kind: "daily", windows: ["morning", "night"] },
|
|
19
|
-
priority: 4,
|
|
20
|
-
originalIntent: "brush teeth morning and night",
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
key: "drink_water",
|
|
25
|
-
title: "Drink water",
|
|
26
|
-
description: "Stay hydrated throughout the day",
|
|
27
|
-
category: "health",
|
|
28
|
-
request: {
|
|
29
|
-
kind: "habit",
|
|
30
|
-
title: "Drink water",
|
|
31
|
-
cadence: {
|
|
32
|
-
kind: "interval",
|
|
33
|
-
everyMinutes: 120,
|
|
34
|
-
windows: ["morning", "afternoon", "evening"],
|
|
35
|
-
maxOccurrencesPerDay: 4,
|
|
36
|
-
},
|
|
37
|
-
priority: 3,
|
|
38
|
-
originalIntent: "drink water regularly throughout the day",
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
key: "stretch",
|
|
43
|
-
title: "Stretch break",
|
|
44
|
-
description: "Short stretch breaks during the day",
|
|
45
|
-
category: "health",
|
|
46
|
-
request: {
|
|
47
|
-
kind: "habit",
|
|
48
|
-
title: "Stretch break",
|
|
49
|
-
cadence: {
|
|
50
|
-
kind: "interval",
|
|
51
|
-
everyMinutes: 240,
|
|
52
|
-
windows: ["morning", "afternoon"],
|
|
53
|
-
maxOccurrencesPerDay: 2,
|
|
54
|
-
},
|
|
55
|
-
priority: 2,
|
|
56
|
-
originalIntent: "stretch breaks during the day",
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
key: "vitamins",
|
|
61
|
-
title: "Take vitamins",
|
|
62
|
-
description: "Vitamins with meals",
|
|
63
|
-
category: "nutrition",
|
|
64
|
-
request: {
|
|
65
|
-
kind: "routine",
|
|
66
|
-
title: "Take vitamins",
|
|
67
|
-
cadence: { kind: "daily", windows: ["morning", "evening"] },
|
|
68
|
-
priority: 3,
|
|
69
|
-
originalIntent: "take vitamins with breakfast and dinner",
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
key: "workout",
|
|
74
|
-
title: "Workout",
|
|
75
|
-
description: "Daily exercise session",
|
|
76
|
-
category: "fitness",
|
|
77
|
-
request: {
|
|
78
|
-
kind: "habit",
|
|
79
|
-
title: "Workout",
|
|
80
|
-
cadence: { kind: "daily", windows: ["afternoon"] },
|
|
81
|
-
priority: 4,
|
|
82
|
-
originalIntent: "daily afternoon workout",
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
key: "shower",
|
|
87
|
-
title: "Shower",
|
|
88
|
-
description: "Regular showers",
|
|
89
|
-
category: "hygiene",
|
|
90
|
-
request: {
|
|
91
|
-
kind: "routine",
|
|
92
|
-
title: "Shower",
|
|
93
|
-
cadence: { kind: "weekly", weekdays: [1, 3, 5], windows: ["morning"] },
|
|
94
|
-
priority: 3,
|
|
95
|
-
originalIntent: "shower three times per week",
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
key: "shave",
|
|
100
|
-
title: "Shave",
|
|
101
|
-
description: "Regular shaving",
|
|
102
|
-
category: "hygiene",
|
|
103
|
-
request: {
|
|
104
|
-
kind: "routine",
|
|
105
|
-
title: "Shave",
|
|
106
|
-
cadence: { kind: "weekly", weekdays: [2, 5], windows: ["morning"] },
|
|
107
|
-
priority: 2,
|
|
108
|
-
originalIntent: "shave twice per week",
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
];
|
|
1
|
+
export * from "@elizaos/app-lifeops/lifeops/seed-routines";
|