@elizaos/agent 2.0.0-alpha.144 → 2.0.0-alpha.152
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,11 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
enabled: boolean;
|
|
3
|
-
}
|
|
4
|
-
type RuntimeCacheLike = {
|
|
5
|
-
getCache<T>(key: string): Promise<T | null | undefined>;
|
|
6
|
-
setCache<T>(key: string, value: T): Promise<boolean | undefined>;
|
|
7
|
-
};
|
|
8
|
-
export declare function loadLifeOpsAppState(runtime: RuntimeCacheLike | null): Promise<LifeOpsAppState>;
|
|
9
|
-
export declare function saveLifeOpsAppState(runtime: RuntimeCacheLike, state: LifeOpsAppState): Promise<LifeOpsAppState>;
|
|
10
|
-
export {};
|
|
1
|
+
export * from "@elizaos/app-lifeops/lifeops/app-state";
|
|
11
2
|
//# sourceMappingURL=app-state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-state.d.ts","sourceRoot":"","sources":["../../../../../src/lifeops/app-state.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app-state.d.ts","sourceRoot":"","sources":["../../../../../src/lifeops/app-state.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC"}
|
|
@@ -1,32 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const LIFEOPS_APP_STATE_CACHE_KEY = "eliza:lifeops-app-state";
|
|
3
|
-
const DEFAULT_LIFEOPS_APP_STATE = {
|
|
4
|
-
enabled: false,
|
|
5
|
-
};
|
|
6
|
-
export async function loadLifeOpsAppState(runtime) {
|
|
7
|
-
if (!runtime) {
|
|
8
|
-
return DEFAULT_LIFEOPS_APP_STATE;
|
|
9
|
-
}
|
|
10
|
-
try {
|
|
11
|
-
const cached = await runtime.getCache(LIFEOPS_APP_STATE_CACHE_KEY);
|
|
12
|
-
return {
|
|
13
|
-
enabled: cached?.enabled === true,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
catch (error) {
|
|
17
|
-
logger.debug(`[lifeops] Failed to load app state: ${error instanceof Error ? error.message : String(error)}`);
|
|
18
|
-
return DEFAULT_LIFEOPS_APP_STATE;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
export async function saveLifeOpsAppState(runtime, state) {
|
|
22
|
-
const nextState = {
|
|
23
|
-
enabled: state.enabled === true,
|
|
24
|
-
};
|
|
25
|
-
try {
|
|
26
|
-
await runtime.setCache(LIFEOPS_APP_STATE_CACHE_KEY, nextState);
|
|
27
|
-
}
|
|
28
|
-
catch (error) {
|
|
29
|
-
logger.debug(`[lifeops] Failed to save app state: ${error instanceof Error ? error.message : String(error)}`);
|
|
30
|
-
}
|
|
31
|
-
return nextState;
|
|
32
|
-
}
|
|
1
|
+
export * from "@elizaos/app-lifeops/lifeops/app-state";
|
|
@@ -1,58 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type NativeAppleReminderLikeKind = "alarm" | "reminder";
|
|
3
|
-
type NativeAppleReminderMetadata = {
|
|
4
|
-
kind: NativeAppleReminderLikeKind;
|
|
5
|
-
provider: "apple_reminders";
|
|
6
|
-
reminderId?: string | null;
|
|
7
|
-
source: "heuristic" | "llm";
|
|
8
|
-
};
|
|
9
|
-
export declare function buildNativeAppleReminderMetadata(args: {
|
|
10
|
-
kind: NativeAppleReminderLikeKind;
|
|
11
|
-
reminderId?: string | null;
|
|
12
|
-
source: "heuristic" | "llm";
|
|
13
|
-
}): Record<string, unknown>;
|
|
14
|
-
export declare function readNativeAppleReminderMetadata(metadata: unknown): NativeAppleReminderMetadata | null;
|
|
15
|
-
export declare function createNativeAppleReminderLikeItem(args: {
|
|
16
|
-
kind: NativeAppleReminderLikeKind;
|
|
17
|
-
title: string;
|
|
18
|
-
dueAt: string;
|
|
19
|
-
notes?: string | null;
|
|
20
|
-
originalIntent?: string | null;
|
|
21
|
-
}): Promise<{
|
|
22
|
-
ok: true;
|
|
23
|
-
provider: "apple_reminders";
|
|
24
|
-
reminderId: string | null;
|
|
25
|
-
} | {
|
|
26
|
-
ok: false;
|
|
27
|
-
provider: "apple_reminders";
|
|
28
|
-
error: string;
|
|
29
|
-
skippedReason: "unsupported_platform" | "invalid_due_at" | "missing_title" | "native_error";
|
|
30
|
-
}>;
|
|
31
|
-
export declare function updateNativeAppleReminderLikeItem(args: {
|
|
32
|
-
reminderId: string;
|
|
33
|
-
kind: NativeAppleReminderLikeKind;
|
|
34
|
-
title: string;
|
|
35
|
-
dueAt: string;
|
|
36
|
-
notes?: string | null;
|
|
37
|
-
originalIntent?: string | null;
|
|
38
|
-
}): Promise<{
|
|
39
|
-
ok: true;
|
|
40
|
-
provider: "apple_reminders";
|
|
41
|
-
reminderId: string | null;
|
|
42
|
-
} | {
|
|
43
|
-
ok: false;
|
|
44
|
-
provider: "apple_reminders";
|
|
45
|
-
error: string;
|
|
46
|
-
skippedReason: "unsupported_platform" | "invalid_due_at" | "missing_title" | "missing_reminder_id" | "native_error";
|
|
47
|
-
}>;
|
|
48
|
-
export declare function deleteNativeAppleReminderLikeItem(reminderId: string): Promise<{
|
|
49
|
-
ok: true;
|
|
50
|
-
provider: "apple_reminders";
|
|
51
|
-
} | {
|
|
52
|
-
ok: false;
|
|
53
|
-
provider: "apple_reminders";
|
|
54
|
-
error: string;
|
|
55
|
-
skippedReason: "unsupported_platform" | "missing_reminder_id" | "native_error";
|
|
56
|
-
}>;
|
|
57
|
-
export {};
|
|
1
|
+
export * from "@elizaos/app-lifeops/lifeops/apple-reminders";
|
|
58
2
|
//# sourceMappingURL=apple-reminders.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-reminders.d.ts","sourceRoot":"","sources":["../../../../../src/lifeops/apple-reminders.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apple-reminders.d.ts","sourceRoot":"","sources":["../../../../../src/lifeops/apple-reminders.ts"],"names":[],"mappings":"AAAA,cAAc,8CAA8C,CAAC"}
|
|
@@ -1,325 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { promisify } from "node:util";
|
|
3
|
-
const execFileAsync = promisify(execFile);
|
|
4
|
-
export const NATIVE_APPLE_REMINDER_METADATA_KEY = "nativeAppleReminder";
|
|
5
|
-
export function buildNativeAppleReminderMetadata(args) {
|
|
6
|
-
return {
|
|
7
|
-
[NATIVE_APPLE_REMINDER_METADATA_KEY]: {
|
|
8
|
-
kind: args.kind,
|
|
9
|
-
provider: "apple_reminders",
|
|
10
|
-
reminderId: typeof args.reminderId === "string" && args.reminderId.trim().length > 0
|
|
11
|
-
? args.reminderId.trim()
|
|
12
|
-
: null,
|
|
13
|
-
source: args.source,
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export function readNativeAppleReminderMetadata(metadata) {
|
|
18
|
-
if (!metadata || typeof metadata !== "object" || Array.isArray(metadata)) {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
const value = metadata[NATIVE_APPLE_REMINDER_METADATA_KEY];
|
|
22
|
-
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
const record = value;
|
|
26
|
-
const kind = record.kind === "alarm" || record.kind === "reminder" ? record.kind : null;
|
|
27
|
-
const source = record.source === "llm" || record.source === "heuristic"
|
|
28
|
-
? record.source
|
|
29
|
-
: null;
|
|
30
|
-
if (kind === null || source === null) {
|
|
31
|
-
return null;
|
|
32
|
-
}
|
|
33
|
-
const reminderId = typeof record.reminderId === "string" && record.reminderId.trim().length > 0
|
|
34
|
-
? record.reminderId.trim()
|
|
35
|
-
: null;
|
|
36
|
-
return {
|
|
37
|
-
kind,
|
|
38
|
-
provider: "apple_reminders",
|
|
39
|
-
reminderId,
|
|
40
|
-
source,
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function reminderDateParts(dueAt) {
|
|
44
|
-
const date = new Date(dueAt);
|
|
45
|
-
if (Number.isNaN(date.getTime())) {
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
year: date.getFullYear(),
|
|
50
|
-
month: date.getMonth() + 1,
|
|
51
|
-
day: date.getDate(),
|
|
52
|
-
secondsSinceMidnight: date.getHours() * 3600 + date.getMinutes() * 60 + date.getSeconds(),
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
function buildReminderNotes(args) {
|
|
56
|
-
const parts = [
|
|
57
|
-
args.notes?.trim() ?? "",
|
|
58
|
-
args.originalIntent?.trim()
|
|
59
|
-
? `Eliza request: ${args.originalIntent.trim()}`
|
|
60
|
-
: "",
|
|
61
|
-
].filter((value) => value.length > 0);
|
|
62
|
-
if (parts.length > 0) {
|
|
63
|
-
return parts.join("\n\n");
|
|
64
|
-
}
|
|
65
|
-
return args.kind === "alarm"
|
|
66
|
-
? "Created by Eliza as an alarm-like reminder."
|
|
67
|
-
: "Created by Eliza.";
|
|
68
|
-
}
|
|
69
|
-
function appleReminderPriority(kind) {
|
|
70
|
-
return kind === "alarm" ? 1 : 5;
|
|
71
|
-
}
|
|
72
|
-
const APPLE_REMINDER_SCRIPT = [
|
|
73
|
-
"on run argv",
|
|
74
|
-
"set reminderTitle to item 1 of argv",
|
|
75
|
-
"set reminderNotes to item 2 of argv",
|
|
76
|
-
"set dueYear to (item 3 of argv) as integer",
|
|
77
|
-
"set dueMonth to (item 4 of argv) as integer",
|
|
78
|
-
"set dueDay to (item 5 of argv) as integer",
|
|
79
|
-
"set dueSeconds to (item 6 of argv) as integer",
|
|
80
|
-
"set reminderPriority to (item 7 of argv) as integer",
|
|
81
|
-
'tell application "Reminders"',
|
|
82
|
-
"set targetList to default list",
|
|
83
|
-
"set newReminder to missing value",
|
|
84
|
-
"tell targetList",
|
|
85
|
-
"set newReminder to make new reminder with properties {name:reminderTitle}",
|
|
86
|
-
"end tell",
|
|
87
|
-
'if reminderNotes is not "" then set body of newReminder to reminderNotes',
|
|
88
|
-
"if dueYear > 0 then",
|
|
89
|
-
"set dueDate to current date",
|
|
90
|
-
"set year of dueDate to dueYear",
|
|
91
|
-
"set month of dueDate to dueMonth",
|
|
92
|
-
"set day of dueDate to dueDay",
|
|
93
|
-
"set time of dueDate to dueSeconds",
|
|
94
|
-
"set due date of newReminder to dueDate",
|
|
95
|
-
"set remind me date of newReminder to dueDate",
|
|
96
|
-
"end if",
|
|
97
|
-
"if reminderPriority > 0 then set priority of newReminder to reminderPriority",
|
|
98
|
-
"return id of newReminder",
|
|
99
|
-
"end tell",
|
|
100
|
-
"end run",
|
|
101
|
-
];
|
|
102
|
-
const APPLE_REMINDER_UPDATE_SCRIPT = [
|
|
103
|
-
"on run argv",
|
|
104
|
-
"set reminderId to item 1 of argv",
|
|
105
|
-
"set reminderTitle to item 2 of argv",
|
|
106
|
-
"set reminderNotes to item 3 of argv",
|
|
107
|
-
"set dueYear to (item 4 of argv) as integer",
|
|
108
|
-
"set dueMonth to (item 5 of argv) as integer",
|
|
109
|
-
"set dueDay to (item 6 of argv) as integer",
|
|
110
|
-
"set dueSeconds to (item 7 of argv) as integer",
|
|
111
|
-
"set reminderPriority to (item 8 of argv) as integer",
|
|
112
|
-
'tell application "Reminders"',
|
|
113
|
-
"repeat with targetList in lists",
|
|
114
|
-
"repeat with candidate in reminders of targetList",
|
|
115
|
-
"if id of candidate is reminderId then",
|
|
116
|
-
"set name of candidate to reminderTitle",
|
|
117
|
-
'if reminderNotes is not "" then',
|
|
118
|
-
"set body of candidate to reminderNotes",
|
|
119
|
-
"else",
|
|
120
|
-
'set body of candidate to ""',
|
|
121
|
-
"end if",
|
|
122
|
-
"if dueYear > 0 then",
|
|
123
|
-
"set dueDate to current date",
|
|
124
|
-
"set year of dueDate to dueYear",
|
|
125
|
-
"set month of dueDate to dueMonth",
|
|
126
|
-
"set day of dueDate to dueDay",
|
|
127
|
-
"set time of dueDate to dueSeconds",
|
|
128
|
-
"set due date of candidate to dueDate",
|
|
129
|
-
"set remind me date of candidate to dueDate",
|
|
130
|
-
"end if",
|
|
131
|
-
"if reminderPriority > 0 then set priority of candidate to reminderPriority",
|
|
132
|
-
"return id of candidate",
|
|
133
|
-
"end if",
|
|
134
|
-
"end repeat",
|
|
135
|
-
"end repeat",
|
|
136
|
-
"end tell",
|
|
137
|
-
'error "Reminder not found"',
|
|
138
|
-
"end run",
|
|
139
|
-
];
|
|
140
|
-
const APPLE_REMINDER_DELETE_SCRIPT = [
|
|
141
|
-
"on run argv",
|
|
142
|
-
"set reminderId to item 1 of argv",
|
|
143
|
-
'tell application "Reminders"',
|
|
144
|
-
"repeat with targetList in lists",
|
|
145
|
-
"tell targetList",
|
|
146
|
-
"set matchingReminders to (every reminder whose id is reminderId)",
|
|
147
|
-
"if (count of matchingReminders) > 0 then",
|
|
148
|
-
"delete item 1 of matchingReminders",
|
|
149
|
-
'return "deleted"',
|
|
150
|
-
"end if",
|
|
151
|
-
"end tell",
|
|
152
|
-
"end repeat",
|
|
153
|
-
"end tell",
|
|
154
|
-
'error "Reminder not found"',
|
|
155
|
-
"end run",
|
|
156
|
-
];
|
|
157
|
-
async function execAppleReminderScript(scriptLines, args) {
|
|
158
|
-
const { stdout } = await execFileAsync("/usr/bin/osascript", scriptLines.flatMap((line) => ["-e", line]).concat(args), { timeout: 30_000 });
|
|
159
|
-
return typeof stdout === "string" ? stdout.trim() : "";
|
|
160
|
-
}
|
|
161
|
-
export async function createNativeAppleReminderLikeItem(args) {
|
|
162
|
-
if (process.platform !== "darwin") {
|
|
163
|
-
return {
|
|
164
|
-
ok: false,
|
|
165
|
-
provider: "apple_reminders",
|
|
166
|
-
error: "Native Apple reminders are only available on macOS.",
|
|
167
|
-
skippedReason: "unsupported_platform",
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
const title = args.title.trim();
|
|
171
|
-
if (!title) {
|
|
172
|
-
return {
|
|
173
|
-
ok: false,
|
|
174
|
-
provider: "apple_reminders",
|
|
175
|
-
error: "Reminder title is required.",
|
|
176
|
-
skippedReason: "missing_title",
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
const parts = reminderDateParts(args.dueAt);
|
|
180
|
-
if (!parts) {
|
|
181
|
-
return {
|
|
182
|
-
ok: false,
|
|
183
|
-
provider: "apple_reminders",
|
|
184
|
-
error: `Invalid dueAt for native Apple reminder: ${args.dueAt}`,
|
|
185
|
-
skippedReason: "invalid_due_at",
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
try {
|
|
189
|
-
const reminderId = await execAppleReminderScript(APPLE_REMINDER_SCRIPT, [
|
|
190
|
-
title,
|
|
191
|
-
buildReminderNotes(args),
|
|
192
|
-
String(parts.year),
|
|
193
|
-
String(parts.month),
|
|
194
|
-
String(parts.day),
|
|
195
|
-
String(parts.secondsSinceMidnight),
|
|
196
|
-
String(appleReminderPriority(args.kind)),
|
|
197
|
-
]);
|
|
198
|
-
return {
|
|
199
|
-
ok: true,
|
|
200
|
-
provider: "apple_reminders",
|
|
201
|
-
reminderId: reminderId || null,
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
catch (error) {
|
|
205
|
-
const details = typeof error === "object" && error && "stderr" in error
|
|
206
|
-
? String(error.stderr ?? "")
|
|
207
|
-
: error instanceof Error
|
|
208
|
-
? error.message
|
|
209
|
-
: String(error);
|
|
210
|
-
return {
|
|
211
|
-
ok: false,
|
|
212
|
-
provider: "apple_reminders",
|
|
213
|
-
error: details || "Failed to create native Apple reminder.",
|
|
214
|
-
skippedReason: "native_error",
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
export async function updateNativeAppleReminderLikeItem(args) {
|
|
219
|
-
if (process.platform !== "darwin") {
|
|
220
|
-
return {
|
|
221
|
-
ok: false,
|
|
222
|
-
provider: "apple_reminders",
|
|
223
|
-
error: "Native Apple reminders are only available on macOS.",
|
|
224
|
-
skippedReason: "unsupported_platform",
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
const reminderId = args.reminderId.trim();
|
|
228
|
-
if (!reminderId) {
|
|
229
|
-
return {
|
|
230
|
-
ok: false,
|
|
231
|
-
provider: "apple_reminders",
|
|
232
|
-
error: "Native Apple reminder id is required.",
|
|
233
|
-
skippedReason: "missing_reminder_id",
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
const title = args.title.trim();
|
|
237
|
-
if (!title) {
|
|
238
|
-
return {
|
|
239
|
-
ok: false,
|
|
240
|
-
provider: "apple_reminders",
|
|
241
|
-
error: "Reminder title is required.",
|
|
242
|
-
skippedReason: "missing_title",
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
const parts = reminderDateParts(args.dueAt);
|
|
246
|
-
if (!parts) {
|
|
247
|
-
return {
|
|
248
|
-
ok: false,
|
|
249
|
-
provider: "apple_reminders",
|
|
250
|
-
error: `Invalid dueAt for native Apple reminder: ${args.dueAt}`,
|
|
251
|
-
skippedReason: "invalid_due_at",
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
try {
|
|
255
|
-
const nextReminderId = await execAppleReminderScript(APPLE_REMINDER_UPDATE_SCRIPT, [
|
|
256
|
-
reminderId,
|
|
257
|
-
title,
|
|
258
|
-
buildReminderNotes(args),
|
|
259
|
-
String(parts.year),
|
|
260
|
-
String(parts.month),
|
|
261
|
-
String(parts.day),
|
|
262
|
-
String(parts.secondsSinceMidnight),
|
|
263
|
-
String(appleReminderPriority(args.kind)),
|
|
264
|
-
]);
|
|
265
|
-
return {
|
|
266
|
-
ok: true,
|
|
267
|
-
provider: "apple_reminders",
|
|
268
|
-
reminderId: nextReminderId || reminderId,
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
catch (error) {
|
|
272
|
-
const details = typeof error === "object" && error && "stderr" in error
|
|
273
|
-
? String(error.stderr ?? "")
|
|
274
|
-
: error instanceof Error
|
|
275
|
-
? error.message
|
|
276
|
-
: String(error);
|
|
277
|
-
return {
|
|
278
|
-
ok: false,
|
|
279
|
-
provider: "apple_reminders",
|
|
280
|
-
error: details || "Failed to update native Apple reminder.",
|
|
281
|
-
skippedReason: "native_error",
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
export async function deleteNativeAppleReminderLikeItem(reminderId) {
|
|
286
|
-
if (process.platform !== "darwin") {
|
|
287
|
-
return {
|
|
288
|
-
ok: false,
|
|
289
|
-
provider: "apple_reminders",
|
|
290
|
-
error: "Native Apple reminders are only available on macOS.",
|
|
291
|
-
skippedReason: "unsupported_platform",
|
|
292
|
-
};
|
|
293
|
-
}
|
|
294
|
-
const normalizedReminderId = reminderId.trim();
|
|
295
|
-
if (!normalizedReminderId) {
|
|
296
|
-
return {
|
|
297
|
-
ok: false,
|
|
298
|
-
provider: "apple_reminders",
|
|
299
|
-
error: "Native Apple reminder id is required.",
|
|
300
|
-
skippedReason: "missing_reminder_id",
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
try {
|
|
304
|
-
await execAppleReminderScript(APPLE_REMINDER_DELETE_SCRIPT, [
|
|
305
|
-
normalizedReminderId,
|
|
306
|
-
]);
|
|
307
|
-
return {
|
|
308
|
-
ok: true,
|
|
309
|
-
provider: "apple_reminders",
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
catch (error) {
|
|
313
|
-
const details = typeof error === "object" && error && "stderr" in error
|
|
314
|
-
? String(error.stderr ?? "")
|
|
315
|
-
: error instanceof Error
|
|
316
|
-
? error.message
|
|
317
|
-
: String(error);
|
|
318
|
-
return {
|
|
319
|
-
ok: false,
|
|
320
|
-
provider: "apple_reminders",
|
|
321
|
-
error: details || "Failed to delete native Apple reminder.",
|
|
322
|
-
skippedReason: "native_error",
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
}
|
|
1
|
+
export * from "@elizaos/app-lifeops/lifeops/apple-reminders";
|
|
@@ -1,24 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ActivityProfile } from "../activity-profile/types.js";
|
|
3
|
-
export declare const DEFAULT_TIME_WINDOWS: LifeOpsTimeWindowDefinition[];
|
|
4
|
-
export declare const DEFAULT_REMINDER_STEPS: LifeOpsReminderStep[];
|
|
5
|
-
export declare function resolveDefaultTimeZone(): string;
|
|
6
|
-
export declare function isValidTimeZone(timeZone: string): boolean;
|
|
7
|
-
export declare function normalizeTimeZone(timeZone?: string | null): string;
|
|
8
|
-
export declare function resolveDefaultWindowPolicy(timeZone?: string | null): LifeOpsWindowPolicy;
|
|
9
|
-
/**
|
|
10
|
-
* Returns true when the given window policy's windows match the static
|
|
11
|
-
* `DEFAULT_TIME_WINDOWS` by name and minute boundaries — i.e. the user
|
|
12
|
-
* has not customized them.
|
|
13
|
-
*/
|
|
14
|
-
export declare function windowPolicyMatchesDefaults(policy: LifeOpsWindowPolicy | null | undefined): boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Compute a `LifeOpsWindowPolicy` whose boundaries are shifted to match
|
|
17
|
-
* the user's actual rhythm as captured by the activity profile.
|
|
18
|
-
*
|
|
19
|
-
* Pure function — no runtime dependency. If the profile has no usable
|
|
20
|
-
* rhythm data the returned policy equals `DEFAULT_TIME_WINDOWS`.
|
|
21
|
-
*/
|
|
22
|
-
export declare function computeAdaptiveWindowPolicy(profile: Pick<ActivityProfile, "typicalWakeHour" | "typicalFirstActiveHour" | "typicalLastActiveHour" | "typicalSleepHour">, timezone?: string | null): LifeOpsWindowPolicy;
|
|
23
|
-
export declare function normalizeWindowPolicy(policy: LifeOpsWindowPolicy | null | undefined, timeZone?: string | null): LifeOpsWindowPolicy;
|
|
1
|
+
export * from "@elizaos/app-lifeops/lifeops/defaults";
|
|
24
2
|
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../../src/lifeops/defaults.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../../src/lifeops/defaults.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC"}
|
|
@@ -1,205 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
{
|
|
3
|
-
name: "morning",
|
|
4
|
-
label: "Morning",
|
|
5
|
-
startMinute: 5 * 60,
|
|
6
|
-
endMinute: 12 * 60,
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
name: "afternoon",
|
|
10
|
-
label: "Afternoon",
|
|
11
|
-
startMinute: 12 * 60,
|
|
12
|
-
endMinute: 17 * 60,
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
name: "evening",
|
|
16
|
-
label: "Evening",
|
|
17
|
-
startMinute: 17 * 60,
|
|
18
|
-
endMinute: 22 * 60,
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
name: "night",
|
|
22
|
-
label: "Night",
|
|
23
|
-
startMinute: 22 * 60,
|
|
24
|
-
endMinute: 28 * 60,
|
|
25
|
-
},
|
|
26
|
-
];
|
|
27
|
-
export const DEFAULT_REMINDER_STEPS = [
|
|
28
|
-
{
|
|
29
|
-
channel: "in_app",
|
|
30
|
-
offsetMinutes: 0,
|
|
31
|
-
label: "In-app reminder",
|
|
32
|
-
},
|
|
33
|
-
];
|
|
34
|
-
export function resolveDefaultTimeZone() {
|
|
35
|
-
const resolved = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
36
|
-
return resolved && resolved.trim().length > 0 ? resolved : "UTC";
|
|
37
|
-
}
|
|
38
|
-
export function isValidTimeZone(timeZone) {
|
|
39
|
-
try {
|
|
40
|
-
new Intl.DateTimeFormat("en-US", { timeZone }).format(new Date());
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
catch {
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
export function normalizeTimeZone(timeZone) {
|
|
48
|
-
const candidate = typeof timeZone === "string" ? timeZone.trim() : "";
|
|
49
|
-
if (candidate && isValidTimeZone(candidate)) {
|
|
50
|
-
return candidate;
|
|
51
|
-
}
|
|
52
|
-
return resolveDefaultTimeZone();
|
|
53
|
-
}
|
|
54
|
-
export function resolveDefaultWindowPolicy(timeZone) {
|
|
55
|
-
const timezone = normalizeTimeZone(timeZone);
|
|
56
|
-
return {
|
|
57
|
-
timezone,
|
|
58
|
-
windows: DEFAULT_TIME_WINDOWS.map((window) => ({ ...window })),
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Returns true when the given window policy's windows match the static
|
|
63
|
-
* `DEFAULT_TIME_WINDOWS` by name and minute boundaries — i.e. the user
|
|
64
|
-
* has not customized them.
|
|
65
|
-
*/
|
|
66
|
-
export function windowPolicyMatchesDefaults(policy) {
|
|
67
|
-
if (!policy || !Array.isArray(policy.windows))
|
|
68
|
-
return false;
|
|
69
|
-
if (policy.windows.length !== DEFAULT_TIME_WINDOWS.length)
|
|
70
|
-
return false;
|
|
71
|
-
for (let i = 0; i < DEFAULT_TIME_WINDOWS.length; i++) {
|
|
72
|
-
const def = DEFAULT_TIME_WINDOWS[i];
|
|
73
|
-
const win = policy.windows[i];
|
|
74
|
-
if (win.name !== def.name ||
|
|
75
|
-
win.startMinute !== def.startMinute ||
|
|
76
|
-
win.endMinute !== def.endMinute) {
|
|
77
|
-
return false;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return true;
|
|
81
|
-
}
|
|
82
|
-
/** Floor value for the morning window start (4:00 AM in minutes). */
|
|
83
|
-
const ADAPTIVE_MORNING_FLOOR_MINUTES = 4 * 60;
|
|
84
|
-
/** Ceiling value for the morning window end (2:00 PM in minutes). */
|
|
85
|
-
const ADAPTIVE_MORNING_END_CAP_MINUTES = 14 * 60;
|
|
86
|
-
/** Ceiling value for the afternoon window end (8:00 PM in minutes). */
|
|
87
|
-
const ADAPTIVE_AFTERNOON_END_CAP_MINUTES = 20 * 60;
|
|
88
|
-
/** Ceiling value for the evening window end (4:00 AM next day in minutes). */
|
|
89
|
-
const ADAPTIVE_EVENING_END_CAP_MINUTES = 28 * 60;
|
|
90
|
-
/** How long before typical wake/first-active to start the morning window. */
|
|
91
|
-
const ADAPTIVE_LEAD_HOURS = 0.5;
|
|
92
|
-
/** Standard span of the morning and afternoon windows. */
|
|
93
|
-
const ADAPTIVE_WINDOW_SPAN_HOURS = 5;
|
|
94
|
-
/** How long after typical last active to end the evening window. */
|
|
95
|
-
const ADAPTIVE_LAST_ACTIVE_LAG_HOURS = 1;
|
|
96
|
-
/**
|
|
97
|
-
* Compute a `LifeOpsWindowPolicy` whose boundaries are shifted to match
|
|
98
|
-
* the user's actual rhythm as captured by the activity profile.
|
|
99
|
-
*
|
|
100
|
-
* Pure function — no runtime dependency. If the profile has no usable
|
|
101
|
-
* rhythm data the returned policy equals `DEFAULT_TIME_WINDOWS`.
|
|
102
|
-
*/
|
|
103
|
-
export function computeAdaptiveWindowPolicy(profile, timezone) {
|
|
104
|
-
const tz = normalizeTimeZone(timezone);
|
|
105
|
-
// Determine morning start from wake or first-active data.
|
|
106
|
-
const wakeSource = profile.typicalWakeHour ?? profile.typicalFirstActiveHour;
|
|
107
|
-
if (wakeSource === null || wakeSource === undefined) {
|
|
108
|
-
// No rhythm data — return defaults unchanged.
|
|
109
|
-
return {
|
|
110
|
-
timezone: tz,
|
|
111
|
-
windows: DEFAULT_TIME_WINDOWS.map((w) => ({ ...w })),
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
const morningStartMinute = Math.max(Math.round((wakeSource - ADAPTIVE_LEAD_HOURS) * 60), ADAPTIVE_MORNING_FLOOR_MINUTES);
|
|
115
|
-
const morningEndMinute = Math.min(morningStartMinute + ADAPTIVE_WINDOW_SPAN_HOURS * 60, ADAPTIVE_MORNING_END_CAP_MINUTES);
|
|
116
|
-
const afternoonStartMinute = morningEndMinute;
|
|
117
|
-
const afternoonEndMinute = Math.min(afternoonStartMinute + ADAPTIVE_WINDOW_SPAN_HOURS * 60, ADAPTIVE_AFTERNOON_END_CAP_MINUTES);
|
|
118
|
-
const eveningStartMinute = afternoonEndMinute;
|
|
119
|
-
let eveningEndMinute;
|
|
120
|
-
if (profile.typicalSleepHour !== null &&
|
|
121
|
-
profile.typicalSleepHour !== undefined) {
|
|
122
|
-
// typicalSleepHour can exceed 24 (e.g. 25 = 1 AM next day).
|
|
123
|
-
eveningEndMinute = Math.min(Math.round(profile.typicalSleepHour * 60), ADAPTIVE_EVENING_END_CAP_MINUTES);
|
|
124
|
-
}
|
|
125
|
-
else if (profile.typicalLastActiveHour !== null &&
|
|
126
|
-
profile.typicalLastActiveHour !== undefined) {
|
|
127
|
-
eveningEndMinute = Math.min(Math.round((profile.typicalLastActiveHour + ADAPTIVE_LAST_ACTIVE_LAG_HOURS) * 60), ADAPTIVE_EVENING_END_CAP_MINUTES);
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
eveningEndMinute = DEFAULT_TIME_WINDOWS[2].endMinute;
|
|
131
|
-
}
|
|
132
|
-
// Guard: evening end must be strictly after evening start.
|
|
133
|
-
if (eveningEndMinute <= eveningStartMinute) {
|
|
134
|
-
eveningEndMinute = eveningStartMinute + 60;
|
|
135
|
-
}
|
|
136
|
-
// Night wraps from evening end to morning start + 24.
|
|
137
|
-
const nightStartMinute = eveningEndMinute;
|
|
138
|
-
const nightEndMinute = morningStartMinute + 24 * 60;
|
|
139
|
-
return {
|
|
140
|
-
timezone: tz,
|
|
141
|
-
windows: [
|
|
142
|
-
{
|
|
143
|
-
name: "morning",
|
|
144
|
-
label: "Morning",
|
|
145
|
-
startMinute: morningStartMinute,
|
|
146
|
-
endMinute: morningEndMinute,
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
name: "afternoon",
|
|
150
|
-
label: "Afternoon",
|
|
151
|
-
startMinute: afternoonStartMinute,
|
|
152
|
-
endMinute: afternoonEndMinute,
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
name: "evening",
|
|
156
|
-
label: "Evening",
|
|
157
|
-
startMinute: eveningStartMinute,
|
|
158
|
-
endMinute: eveningEndMinute,
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
name: "night",
|
|
162
|
-
label: "Night",
|
|
163
|
-
startMinute: nightStartMinute,
|
|
164
|
-
endMinute: nightEndMinute,
|
|
165
|
-
},
|
|
166
|
-
],
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
export function normalizeWindowPolicy(policy, timeZone) {
|
|
170
|
-
const fallback = resolveDefaultWindowPolicy(timeZone);
|
|
171
|
-
if (!policy)
|
|
172
|
-
return fallback;
|
|
173
|
-
const timezone = normalizeTimeZone(policy.timezone || timeZone || fallback.timezone);
|
|
174
|
-
const windows = Array.isArray(policy.windows)
|
|
175
|
-
? policy.windows
|
|
176
|
-
.map((window) => {
|
|
177
|
-
const name = window?.name ?? "custom";
|
|
178
|
-
const label = typeof window?.label === "string" && window.label.trim().length > 0
|
|
179
|
-
? window.label.trim()
|
|
180
|
-
: name;
|
|
181
|
-
const startMinute = Number(window?.startMinute);
|
|
182
|
-
const endMinute = Number(window?.endMinute);
|
|
183
|
-
if (!Number.isFinite(startMinute) || !Number.isFinite(endMinute)) {
|
|
184
|
-
return null;
|
|
185
|
-
}
|
|
186
|
-
if (endMinute <= startMinute) {
|
|
187
|
-
return null;
|
|
188
|
-
}
|
|
189
|
-
return {
|
|
190
|
-
name,
|
|
191
|
-
label,
|
|
192
|
-
startMinute,
|
|
193
|
-
endMinute,
|
|
194
|
-
};
|
|
195
|
-
})
|
|
196
|
-
.filter((window) => window !== null)
|
|
197
|
-
: [];
|
|
198
|
-
if (windows.length === 0) {
|
|
199
|
-
return fallback;
|
|
200
|
-
}
|
|
201
|
-
return {
|
|
202
|
-
timezone,
|
|
203
|
-
windows,
|
|
204
|
-
};
|
|
205
|
-
}
|
|
1
|
+
export * from "@elizaos/app-lifeops/lifeops/defaults";
|