@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,195 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const VALID_CADENCE_KINDS = new Set([
|
|
3
|
-
"once",
|
|
4
|
-
"daily",
|
|
5
|
-
"weekly",
|
|
6
|
-
"times_per_day",
|
|
7
|
-
"interval",
|
|
8
|
-
]);
|
|
9
|
-
const EMPTY_UPDATE_FIELDS = {
|
|
10
|
-
title: null,
|
|
11
|
-
cadenceKind: null,
|
|
12
|
-
windows: null,
|
|
13
|
-
weekdays: null,
|
|
14
|
-
timeOfDay: null,
|
|
15
|
-
everyMinutes: null,
|
|
16
|
-
priority: null,
|
|
17
|
-
description: null,
|
|
18
|
-
};
|
|
19
|
-
function parseTimeOfDay(value) {
|
|
20
|
-
const normalized = value.trim().toLowerCase();
|
|
21
|
-
const hhmmMatch = normalized.match(/\b(\d{1,2}):(\d{2})\b/);
|
|
22
|
-
if (hhmmMatch) {
|
|
23
|
-
const hour = Number(hhmmMatch[1]);
|
|
24
|
-
const minute = Number(hhmmMatch[2]);
|
|
25
|
-
if (Number.isFinite(hour) &&
|
|
26
|
-
Number.isFinite(minute) &&
|
|
27
|
-
hour >= 0 &&
|
|
28
|
-
hour <= 23 &&
|
|
29
|
-
minute >= 0 &&
|
|
30
|
-
minute < 60) {
|
|
31
|
-
return `${String(hour).padStart(2, "0")}:${String(minute).padStart(2, "0")}`;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
const clockMatch = normalized.match(/\b(\d{1,2})(?::(\d{2}))?\s*(am|pm)\b|\b(noon|midnight)\b/);
|
|
35
|
-
if (!clockMatch) {
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
if (clockMatch[4] === "noon") {
|
|
39
|
-
return "12:00";
|
|
40
|
-
}
|
|
41
|
-
if (clockMatch[4] === "midnight") {
|
|
42
|
-
return "00:00";
|
|
43
|
-
}
|
|
44
|
-
const rawHour = Number(clockMatch[1]);
|
|
45
|
-
const minute = Number(clockMatch[2] ?? "0");
|
|
46
|
-
const meridiem = clockMatch[3];
|
|
47
|
-
const hour = meridiem === "am"
|
|
48
|
-
? rawHour % 12
|
|
49
|
-
: rawHour % 12 === 0
|
|
50
|
-
? 12
|
|
51
|
-
: (rawHour % 12) + 12;
|
|
52
|
-
return `${String(hour).padStart(2, "0")}:${String(minute).padStart(2, "0")}`;
|
|
53
|
-
}
|
|
54
|
-
function validateTitle(value) {
|
|
55
|
-
if (typeof value !== "string") {
|
|
56
|
-
return null;
|
|
57
|
-
}
|
|
58
|
-
const trimmed = value.trim();
|
|
59
|
-
return trimmed.length > 0 ? trimmed : null;
|
|
60
|
-
}
|
|
61
|
-
function validateCadenceKind(value) {
|
|
62
|
-
if (typeof value !== "string") {
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
const normalized = value.trim().toLowerCase();
|
|
66
|
-
return VALID_CADENCE_KINDS.has(normalized) ? normalized : null;
|
|
67
|
-
}
|
|
68
|
-
function validateWindows(value) {
|
|
69
|
-
if (!Array.isArray(value)) {
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
const normalized = value
|
|
73
|
-
.filter((item) => typeof item === "string")
|
|
74
|
-
.map((item) => item.trim())
|
|
75
|
-
.filter((item) => item.length > 0);
|
|
76
|
-
return normalized.length > 0 ? normalized : null;
|
|
77
|
-
}
|
|
78
|
-
function validateWeekdays(value) {
|
|
79
|
-
if (!Array.isArray(value)) {
|
|
80
|
-
return null;
|
|
81
|
-
}
|
|
82
|
-
const normalized = value.filter((item) => typeof item === "number" &&
|
|
83
|
-
Number.isInteger(item) &&
|
|
84
|
-
item >= 0 &&
|
|
85
|
-
item <= 6);
|
|
86
|
-
return normalized.length > 0 ? normalized : null;
|
|
87
|
-
}
|
|
88
|
-
function validatePositiveNumber(value) {
|
|
89
|
-
if (typeof value !== "number" || !Number.isFinite(value) || value <= 0) {
|
|
90
|
-
return null;
|
|
91
|
-
}
|
|
92
|
-
return value;
|
|
93
|
-
}
|
|
94
|
-
function validatePriority(value) {
|
|
95
|
-
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
96
|
-
return null;
|
|
97
|
-
}
|
|
98
|
-
return Math.max(1, Math.min(5, Math.round(value)));
|
|
99
|
-
}
|
|
100
|
-
function buildUpdateFields(parsed) {
|
|
101
|
-
return {
|
|
102
|
-
title: validateTitle(parsed.title),
|
|
103
|
-
cadenceKind: validateCadenceKind(parsed.cadenceKind),
|
|
104
|
-
windows: validateWindows(parsed.windows),
|
|
105
|
-
weekdays: validateWeekdays(parsed.weekdays),
|
|
106
|
-
timeOfDay: typeof parsed.timeOfDay === "string"
|
|
107
|
-
? parseTimeOfDay(parsed.timeOfDay)
|
|
108
|
-
: null,
|
|
109
|
-
everyMinutes: validatePositiveNumber(parsed.everyMinutes),
|
|
110
|
-
priority: validatePriority(parsed.priority),
|
|
111
|
-
description: validateTitle(parsed.description),
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
function buildRepairPrompt(args) {
|
|
115
|
-
return [
|
|
116
|
-
"Your last reply for the LifeOps update extractor was invalid.",
|
|
117
|
-
"Return ONLY valid JSON with exactly these fields:",
|
|
118
|
-
"title, cadenceKind, windows, weekdays, timeOfDay, everyMinutes, priority, description",
|
|
119
|
-
"",
|
|
120
|
-
"Use null for any field the user did not ask to change.",
|
|
121
|
-
"cadenceKind must be one of: once, daily, weekly, times_per_day, interval.",
|
|
122
|
-
'timeOfDay must be HH:MM 24h format like "06:00" when present.',
|
|
123
|
-
"",
|
|
124
|
-
`Current task: ${JSON.stringify(args.currentTitle)}`,
|
|
125
|
-
`Current cadence kind: ${JSON.stringify(args.currentCadenceKind)}`,
|
|
126
|
-
`Current windows: ${JSON.stringify(args.currentWindows)}`,
|
|
127
|
-
`User request: ${JSON.stringify(args.intent)}`,
|
|
128
|
-
`Previous invalid output: ${JSON.stringify(args.rawResponse)}`,
|
|
129
|
-
].join("\n");
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* When the LLM caller passes an update_definition intent without pre-parsed
|
|
133
|
-
* structured fields (e.g. "change my workout to 6am"), this function asks
|
|
134
|
-
* a large text model to extract which fields the user actually wants to change.
|
|
135
|
-
*
|
|
136
|
-
* Returns an explicit empty update object when the model is unavailable or the
|
|
137
|
-
* response is unparseable, so callers do not need heuristic fallbacks.
|
|
138
|
-
*/
|
|
139
|
-
export async function extractUpdateFieldsWithLlm(args) {
|
|
140
|
-
const { runtime, intent, currentTitle, currentCadenceKind, currentWindows } = args;
|
|
141
|
-
if (typeof runtime.useModel !== "function") {
|
|
142
|
-
return { ...EMPTY_UPDATE_FIELDS };
|
|
143
|
-
}
|
|
144
|
-
const prompt = [
|
|
145
|
-
"The user wants to update an existing task/habit. Extract ONLY the fields they want to change.",
|
|
146
|
-
"Return null for fields the user did NOT mention changing.",
|
|
147
|
-
"",
|
|
148
|
-
`Current task: "${currentTitle}"`,
|
|
149
|
-
`Current schedule: ${currentCadenceKind}, windows: [${currentWindows.join(", ")}]`,
|
|
150
|
-
"",
|
|
151
|
-
"Return JSON with these fields (null = no change requested):",
|
|
152
|
-
"- title: new name if user wants to rename",
|
|
153
|
-
"- cadenceKind: new schedule type if changing (once/daily/weekly/times_per_day/interval)",
|
|
154
|
-
"- windows: new time windows if changing (morning/afternoon/evening/night)",
|
|
155
|
-
"- weekdays: new weekday numbers if changing (0=Sun..6=Sat)",
|
|
156
|
-
'- timeOfDay: new specific time like "06:00" if changing time',
|
|
157
|
-
"- everyMinutes: new interval if changing",
|
|
158
|
-
"- priority: new priority 1-5 if changing",
|
|
159
|
-
"- description: new description if changing",
|
|
160
|
-
"",
|
|
161
|
-
"Examples:",
|
|
162
|
-
' "change workout to 6am" -> {"timeOfDay":"06:00"}',
|
|
163
|
-
' "make it weekly instead of daily" -> {"cadenceKind":"weekly"}',
|
|
164
|
-
' "rename to Morning run" -> {"title":"Morning run"}',
|
|
165
|
-
"",
|
|
166
|
-
"Return ONLY valid JSON. No prose.",
|
|
167
|
-
"",
|
|
168
|
-
`User request: ${JSON.stringify(intent)}`,
|
|
169
|
-
].join("\n");
|
|
170
|
-
try {
|
|
171
|
-
const result = await runtime.useModel(ModelType.TEXT_LARGE, { prompt });
|
|
172
|
-
const raw = typeof result === "string" ? result : "";
|
|
173
|
-
const parsed = parseJSONObjectFromText(raw);
|
|
174
|
-
if (parsed) {
|
|
175
|
-
return buildUpdateFields(parsed);
|
|
176
|
-
}
|
|
177
|
-
const repairResult = await runtime.useModel(ModelType.TEXT_LARGE, {
|
|
178
|
-
prompt: buildRepairPrompt({
|
|
179
|
-
intent,
|
|
180
|
-
currentTitle,
|
|
181
|
-
currentCadenceKind,
|
|
182
|
-
currentWindows,
|
|
183
|
-
rawResponse: raw,
|
|
184
|
-
}),
|
|
185
|
-
});
|
|
186
|
-
const repairedRaw = typeof repairResult === "string" ? repairResult : "";
|
|
187
|
-
const repairedParsed = parseJSONObjectFromText(repairedRaw);
|
|
188
|
-
return repairedParsed
|
|
189
|
-
? buildUpdateFields(repairedParsed)
|
|
190
|
-
: { ...EMPTY_UPDATE_FIELDS };
|
|
191
|
-
}
|
|
192
|
-
catch {
|
|
193
|
-
return { ...EMPTY_UPDATE_FIELDS };
|
|
194
|
-
}
|
|
195
|
-
}
|
|
1
|
+
export * from "@elizaos/app-lifeops/actions/life-update-extractor";
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { type ExtractedLifeOperation } from "./life.extractor.js";
|
|
3
|
-
type LifeOperation = ExtractedLifeOperation;
|
|
4
|
-
export declare function classifyIntent(intent: string): LifeOperation;
|
|
5
|
-
export declare const lifeAction: Action & {
|
|
6
|
-
suppressPostActionContinuation?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export {};
|
|
1
|
+
export * from "@elizaos/app-lifeops/actions/life";
|
|
9
2
|
//# sourceMappingURL=life.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"life.d.ts","sourceRoot":"","sources":["../../../../../src/actions/life.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"life.d.ts","sourceRoot":"","sources":["../../../../../src/actions/life.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const LIFE_OPERATION_VALUES: readonly ["create_definition", "create_goal", "update_definition", "update_goal", "delete_definition", "delete_goal", "complete_occurrence", "skip_occurrence", "snooze_occurrence", "review_goal", "capture_phone", "configure_escalation", "set_reminder_preference", "query_calendar_today", "query_calendar_next", "query_email", "query_overview"];
|
|
3
|
-
export type ExtractedLifeOperation = (typeof LIFE_OPERATION_VALUES)[number];
|
|
4
|
-
export type ExtractedLifeMissingField = "title" | "schedule" | "target" | "goal" | "phone_number" | "reminder_intensity" | "details";
|
|
5
|
-
type ExtractedLifeOperationPlan = {
|
|
6
|
-
operation: ExtractedLifeOperation | null;
|
|
7
|
-
confidence: number;
|
|
8
|
-
missing: ExtractedLifeMissingField[];
|
|
9
|
-
shouldAct: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare function extractLifeOperationWithLlm(args: {
|
|
12
|
-
runtime: IAgentRuntime;
|
|
13
|
-
message: Memory;
|
|
14
|
-
state: State | undefined;
|
|
15
|
-
intent: string;
|
|
16
|
-
}): Promise<ExtractedLifeOperationPlan>;
|
|
17
|
-
export {};
|
|
1
|
+
export * from "@elizaos/app-lifeops/actions/life.extractor";
|
|
18
2
|
//# sourceMappingURL=life.extractor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"life.extractor.d.ts","sourceRoot":"","sources":["../../../../../src/actions/life.extractor.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"life.extractor.d.ts","sourceRoot":"","sources":["../../../../../src/actions/life.extractor.ts"],"names":[],"mappings":"AAAA,cAAc,6CAA6C,CAAC"}
|
|
@@ -1,264 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { resolveContextWindow } from "./lifeops-extraction-config.js";
|
|
3
|
-
export const LIFE_OPERATION_VALUES = [
|
|
4
|
-
"create_definition",
|
|
5
|
-
"create_goal",
|
|
6
|
-
"update_definition",
|
|
7
|
-
"update_goal",
|
|
8
|
-
"delete_definition",
|
|
9
|
-
"delete_goal",
|
|
10
|
-
"complete_occurrence",
|
|
11
|
-
"skip_occurrence",
|
|
12
|
-
"snooze_occurrence",
|
|
13
|
-
"review_goal",
|
|
14
|
-
"capture_phone",
|
|
15
|
-
"configure_escalation",
|
|
16
|
-
"set_reminder_preference",
|
|
17
|
-
"query_calendar_today",
|
|
18
|
-
"query_calendar_next",
|
|
19
|
-
"query_email",
|
|
20
|
-
"query_overview",
|
|
21
|
-
];
|
|
22
|
-
function messageText(message) {
|
|
23
|
-
const text = message.content?.text;
|
|
24
|
-
return typeof text === "string" ? text.trim() : "";
|
|
25
|
-
}
|
|
26
|
-
function splitStateTextCandidates(value) {
|
|
27
|
-
return value
|
|
28
|
-
.split(/\n+/)
|
|
29
|
-
.map((line) => line
|
|
30
|
-
.replace(/^[a-zA-Z\u00C0-\u024F\u0400-\u04FF\u3000-\u9FFF]{1,20}\s*:\s*/, "")
|
|
31
|
-
.trim())
|
|
32
|
-
.filter((line) => line.length > 0);
|
|
33
|
-
}
|
|
34
|
-
function stateTextCandidates(state) {
|
|
35
|
-
if (!state || typeof state !== "object") {
|
|
36
|
-
return [];
|
|
37
|
-
}
|
|
38
|
-
const stateRecord = state;
|
|
39
|
-
const values = stateRecord.values && typeof stateRecord.values === "object"
|
|
40
|
-
? stateRecord.values
|
|
41
|
-
: undefined;
|
|
42
|
-
const candidates = [];
|
|
43
|
-
const pushText = (value) => {
|
|
44
|
-
if (typeof value === "string" && value.trim().length > 0) {
|
|
45
|
-
candidates.push(...splitStateTextCandidates(value));
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
pushText(values?.recentMessages);
|
|
49
|
-
pushText(stateRecord.text);
|
|
50
|
-
const recentMessagesData = stateRecord.recentMessagesData ?? stateRecord.recentMessages;
|
|
51
|
-
if (Array.isArray(recentMessagesData)) {
|
|
52
|
-
for (const item of recentMessagesData) {
|
|
53
|
-
if (!item || typeof item !== "object") {
|
|
54
|
-
continue;
|
|
55
|
-
}
|
|
56
|
-
const content = item.content;
|
|
57
|
-
if (!content || typeof content !== "object") {
|
|
58
|
-
continue;
|
|
59
|
-
}
|
|
60
|
-
pushText(content.text);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return [...new Set(candidates)];
|
|
64
|
-
}
|
|
65
|
-
function normalizeOperation(value) {
|
|
66
|
-
if (typeof value !== "string") {
|
|
67
|
-
return null;
|
|
68
|
-
}
|
|
69
|
-
const normalized = value.trim().toLowerCase();
|
|
70
|
-
return LIFE_OPERATION_VALUES.includes(normalized)
|
|
71
|
-
? normalized
|
|
72
|
-
: null;
|
|
73
|
-
}
|
|
74
|
-
function normalizeConfidence(value) {
|
|
75
|
-
if (typeof value === "number" && Number.isFinite(value)) {
|
|
76
|
-
return Math.max(0, Math.min(1, value));
|
|
77
|
-
}
|
|
78
|
-
if (typeof value === "string" && value.trim().length > 0) {
|
|
79
|
-
const parsed = Number(value);
|
|
80
|
-
if (Number.isFinite(parsed)) {
|
|
81
|
-
return Math.max(0, Math.min(1, parsed));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return null;
|
|
85
|
-
}
|
|
86
|
-
function normalizeShouldAct(value) {
|
|
87
|
-
if (typeof value === "boolean") {
|
|
88
|
-
return value;
|
|
89
|
-
}
|
|
90
|
-
if (typeof value === "string") {
|
|
91
|
-
const normalized = value.trim().toLowerCase();
|
|
92
|
-
if (normalized === "true") {
|
|
93
|
-
return true;
|
|
94
|
-
}
|
|
95
|
-
if (normalized === "false") {
|
|
96
|
-
return false;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return null;
|
|
100
|
-
}
|
|
101
|
-
const VALID_MISSING_FIELDS = new Set([
|
|
102
|
-
"title",
|
|
103
|
-
"schedule",
|
|
104
|
-
"target",
|
|
105
|
-
"goal",
|
|
106
|
-
"phone_number",
|
|
107
|
-
"reminder_intensity",
|
|
108
|
-
"details",
|
|
109
|
-
]);
|
|
110
|
-
function normalizeMissingFields(value) {
|
|
111
|
-
if (!Array.isArray(value)) {
|
|
112
|
-
return [];
|
|
113
|
-
}
|
|
114
|
-
const missing = [];
|
|
115
|
-
for (const item of value) {
|
|
116
|
-
if (typeof item !== "string") {
|
|
117
|
-
continue;
|
|
118
|
-
}
|
|
119
|
-
const normalized = item.trim().toLowerCase();
|
|
120
|
-
if (VALID_MISSING_FIELDS.has(normalized) && !missing.includes(normalized)) {
|
|
121
|
-
missing.push(normalized);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
return missing;
|
|
125
|
-
}
|
|
126
|
-
const REPLY_ONLY_OPERATION_PLAN = {
|
|
127
|
-
operation: null,
|
|
128
|
-
confidence: 0,
|
|
129
|
-
missing: [],
|
|
130
|
-
shouldAct: false,
|
|
131
|
-
};
|
|
132
|
-
function normalizeOperationPlan(parsed) {
|
|
133
|
-
const operation = normalizeOperation(parsed.operation);
|
|
134
|
-
const shouldAct = normalizeShouldAct(parsed.shouldAct);
|
|
135
|
-
if (shouldAct === null) {
|
|
136
|
-
return null;
|
|
137
|
-
}
|
|
138
|
-
// Acting without a concrete operation is invalid; keep the plan reply-only.
|
|
139
|
-
if (shouldAct && operation === null) {
|
|
140
|
-
return null;
|
|
141
|
-
}
|
|
142
|
-
return {
|
|
143
|
-
operation,
|
|
144
|
-
confidence: normalizeConfidence(parsed.confidence) ?? 0,
|
|
145
|
-
missing: normalizeMissingFields(parsed.missing),
|
|
146
|
-
shouldAct,
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
function buildRepairPrompt(args) {
|
|
150
|
-
return [
|
|
151
|
-
"Your last reply for the LifeOps operation planner was invalid.",
|
|
152
|
-
"Return ONLY valid JSON with exactly these fields:",
|
|
153
|
-
" operation: one of the allowed operations, or null when this should be reply-only/no-op",
|
|
154
|
-
" confidence: number from 0 to 1",
|
|
155
|
-
" shouldAct: boolean",
|
|
156
|
-
' missing: array of missing fields from ["title","schedule","target","goal","phone_number","reminder_intensity","details"]',
|
|
157
|
-
"",
|
|
158
|
-
"Do not add prose, markdown, XML, or code fences.",
|
|
159
|
-
"",
|
|
160
|
-
`Allowed operations: ${LIFE_OPERATION_VALUES.join(", ")}, or null`,
|
|
161
|
-
`Current request: ${JSON.stringify(args.currentMessage)}`,
|
|
162
|
-
`Resolved intent: ${JSON.stringify(args.intent)}`,
|
|
163
|
-
`Recent conversation: ${JSON.stringify(args.recentConversation.join("\n"))}`,
|
|
164
|
-
`Previous invalid output: ${JSON.stringify(args.rawResponse)}`,
|
|
165
|
-
].join("\n");
|
|
166
|
-
}
|
|
167
|
-
export async function extractLifeOperationWithLlm(args) {
|
|
168
|
-
const { runtime, message, state, intent } = args;
|
|
169
|
-
const recentConversation = stateTextCandidates(state).slice(-resolveContextWindow());
|
|
170
|
-
const currentMessage = messageText(message);
|
|
171
|
-
if (typeof runtime.useModel !== "function") {
|
|
172
|
-
runtime.logger?.warn?.({ src: "action:life" }, "Life operation extraction skipped because runtime.useModel is unavailable");
|
|
173
|
-
return REPLY_ONLY_OPERATION_PLAN;
|
|
174
|
-
}
|
|
175
|
-
const prompt = [
|
|
176
|
-
"Plan the LifeOps response for the current user request.",
|
|
177
|
-
"The user may speak in any language.",
|
|
178
|
-
"Use the current request plus recent conversation context.",
|
|
179
|
-
"Short follow-ups can continue an earlier alarm or reminder request when that context appears in the recent conversation.",
|
|
180
|
-
"You are allowed to decide that the assistant should reply naturally without acting yet.",
|
|
181
|
-
"Set shouldAct=false when the user is chatting, acknowledging, brainstorming, or asking for help in a way that is too vague to safely create, update, complete, or query anything yet.",
|
|
182
|
-
"When the user clearly wants a LifeOps action but key information is missing, set operation to the closest operation, shouldAct=false, and list the blocking pieces in missing.",
|
|
183
|
-
"Only set shouldAct=true when the assistant should execute, preview, update, or query right now.",
|
|
184
|
-
"Requests with concrete routine content and interpretable cadence are actionable even when some fields are implied.",
|
|
185
|
-
"Treat requests like weekdays after lunch, during the day, every morning, tomorrow at 9, set an alarm for 7 am, and remind me about my Invisalign as specific enough to act on now.",
|
|
186
|
-
"",
|
|
187
|
-
"Return a JSON object with exactly these fields:",
|
|
188
|
-
" operation: one of the allowed operations below, or null when this should be reply-only/no-op",
|
|
189
|
-
" confidence: number from 0 to 1",
|
|
190
|
-
" shouldAct: boolean",
|
|
191
|
-
' missing: array of missing fields from ["title","schedule","target","goal","phone_number","reminder_intensity","details"]',
|
|
192
|
-
"",
|
|
193
|
-
"Operations and when to use each:",
|
|
194
|
-
" create_definition — create a new habit, routine, task, one-off alarm, or reminder (e.g. 'remind me to brush my teeth every night', 'set an alarm for 7am', 'set a reminder for tomorrow at 9')",
|
|
195
|
-
" create_goal — create an aspiration or goal without a routine cadence (e.g. 'I want to run a marathon')",
|
|
196
|
-
" update_definition — edit, rename, reschedule, or modify an existing task/habit/routine (e.g. 'change my workout to 6am')",
|
|
197
|
-
" update_goal — edit or modify an existing goal (e.g. 'update my marathon goal to June')",
|
|
198
|
-
" delete_definition — delete, remove, cancel, or stop tracking a task/habit/routine (e.g. 'stop tracking my meditation')",
|
|
199
|
-
" delete_goal — delete or remove a goal (e.g. 'delete my marathon goal')",
|
|
200
|
-
" complete_occurrence — mark an item as done (e.g. 'I brushed my teeth', 'done with workout', 'I did it')",
|
|
201
|
-
" skip_occurrence — skip an item for today (e.g. 'skip brushing', 'not today', 'pass on workout')",
|
|
202
|
-
" snooze_occurrence — postpone or defer an item (e.g. 'snooze', 'remind me later', 'push it back')",
|
|
203
|
-
" review_goal — check progress on a goal (e.g. 'how am I doing on my marathon goal', 'review my progress')",
|
|
204
|
-
" capture_phone — save or confirm a phone number (e.g. 'my number is 555-1234', 'text me at...')",
|
|
205
|
-
" configure_escalation — set up SMS/voice/call escalation (e.g. 'text me if I ignore the reminder', 'call me if I miss it')",
|
|
206
|
-
" set_reminder_preference — adjust reminder frequency (e.g. 'less reminders', 'more reminders', 'pause reminders', 'high priority only')",
|
|
207
|
-
" query_calendar_today — today's/tomorrow's/this week's schedule (e.g. 'what's on my calendar today')",
|
|
208
|
-
" query_calendar_next — next upcoming event (e.g. 'what's my next meeting')",
|
|
209
|
-
" query_email — inbox/email status (e.g. 'any new emails', 'who emailed me')",
|
|
210
|
-
" query_overview — broad status summary or remaining LifeOps items (e.g. 'what's active', 'show me everything', 'overview', \"what's still left for today\", 'what do i still need to do today')",
|
|
211
|
-
"",
|
|
212
|
-
"Examples:",
|
|
213
|
-
' "I brushed my teeth" -> {"operation":"complete_occurrence","confidence":0.95,"shouldAct":true,"missing":[]}',
|
|
214
|
-
' "less reminders please" -> {"operation":"set_reminder_preference","confidence":0.9,"shouldAct":true,"missing":[]}',
|
|
215
|
-
' "remind me to take vitamins every morning" -> {"operation":"create_definition","confidence":0.95,"shouldAct":true,"missing":[]}',
|
|
216
|
-
' "set an alarm for 7 am" -> {"operation":"create_definition","confidence":0.95,"shouldAct":true,"missing":[]}',
|
|
217
|
-
' "set a reminder for tomorrow at 9" -> {"operation":"create_definition","confidence":0.95,"shouldAct":true,"missing":[]}',
|
|
218
|
-
' "please remind me about my Invisalign on weekdays after lunch" -> {"operation":"create_definition","confidence":0.95,"shouldAct":true,"missing":[]}',
|
|
219
|
-
' "help me remember to drink water" -> {"operation":"create_definition","confidence":0.9,"shouldAct":true,"missing":[]}',
|
|
220
|
-
' "help me remember to stretch during the day" -> {"operation":"create_definition","confidence":0.9,"shouldAct":true,"missing":[]}',
|
|
221
|
-
' "make sure I brush my teeth when I wake up and before bed" -> {"operation":"create_definition","confidence":0.95,"shouldAct":true,"missing":[]}',
|
|
222
|
-
' "how am I doing on my reading goal" -> {"operation":"review_goal","confidence":0.9,"shouldAct":true,"missing":[]}',
|
|
223
|
-
' "what\'s still left for today" -> {"operation":"query_overview","confidence":0.88,"shouldAct":true,"missing":[]}',
|
|
224
|
-
' "lol yeah. can you help me add a todo for my life?" -> {"operation":"create_definition","confidence":0.82,"shouldAct":false,"missing":["title","schedule"]}',
|
|
225
|
-
' "yeah lol" -> {"operation":null,"confidence":0.62,"shouldAct":false,"missing":[]}',
|
|
226
|
-
"",
|
|
227
|
-
"Return ONLY valid JSON. No prose. No markdown. No XML. No <think>.",
|
|
228
|
-
"",
|
|
229
|
-
`Allowed operations: ${LIFE_OPERATION_VALUES.join(", ")}, or null`,
|
|
230
|
-
`Current request: ${JSON.stringify(currentMessage)}`,
|
|
231
|
-
`Resolved intent: ${JSON.stringify(intent)}`,
|
|
232
|
-
`Recent conversation: ${JSON.stringify(recentConversation.join("\n"))}`,
|
|
233
|
-
].join("\n");
|
|
234
|
-
const parseResponse = (rawResponse) => {
|
|
235
|
-
const parsed = parseKeyValueXml(rawResponse) ??
|
|
236
|
-
parseJSONObjectFromText(rawResponse);
|
|
237
|
-
return parsed ? normalizeOperationPlan(parsed) : null;
|
|
238
|
-
};
|
|
239
|
-
try {
|
|
240
|
-
const result = await runtime.useModel(ModelType.TEXT_LARGE, { prompt });
|
|
241
|
-
const rawResponse = typeof result === "string" ? result : "";
|
|
242
|
-
const parsedPlan = parseResponse(rawResponse);
|
|
243
|
-
if (parsedPlan) {
|
|
244
|
-
return parsedPlan;
|
|
245
|
-
}
|
|
246
|
-
const repairResult = await runtime.useModel(ModelType.TEXT_LARGE, {
|
|
247
|
-
prompt: buildRepairPrompt({
|
|
248
|
-
currentMessage,
|
|
249
|
-
intent,
|
|
250
|
-
rawResponse,
|
|
251
|
-
recentConversation,
|
|
252
|
-
}),
|
|
253
|
-
});
|
|
254
|
-
const repairedRawResponse = typeof repairResult === "string" ? repairResult : "";
|
|
255
|
-
return parseResponse(repairedRawResponse) ?? REPLY_ONLY_OPERATION_PLAN;
|
|
256
|
-
}
|
|
257
|
-
catch (error) {
|
|
258
|
-
runtime.logger?.warn?.({
|
|
259
|
-
src: "action:life",
|
|
260
|
-
error: error instanceof Error ? error.message : String(error),
|
|
261
|
-
}, "Life operation extraction model call failed");
|
|
262
|
-
return REPLY_ONLY_OPERATION_PLAN;
|
|
263
|
-
}
|
|
264
|
-
}
|
|
1
|
+
export * from "@elizaos/app-lifeops/actions/life.extractor";
|