@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,11 +1,24 @@
|
|
|
1
1
|
export * from "./app-control.js";
|
|
2
2
|
export * from "./calendar.js";
|
|
3
|
+
export * from "./check-balance.js";
|
|
4
|
+
export * from "./eject-plugin.js";
|
|
5
|
+
export * from "./execute-trade.js";
|
|
6
|
+
export * from "./get-self-status.js";
|
|
3
7
|
export * from "./gmail.js";
|
|
8
|
+
export * from "./inbox.js";
|
|
9
|
+
export * from "./install-plugin.js";
|
|
4
10
|
export * from "./life.js";
|
|
11
|
+
export * from "./list-ejected.js";
|
|
12
|
+
export * from "./log-level.js";
|
|
13
|
+
export * from "./media.js";
|
|
14
|
+
export * from "./reinject-plugin.js";
|
|
5
15
|
export * from "./restart.js";
|
|
6
16
|
export * from "./send-message.js";
|
|
7
17
|
export * from "./stream-control.js";
|
|
18
|
+
export * from "./sync-plugin.js";
|
|
8
19
|
export * from "./terminal.ts";
|
|
20
|
+
export * from "./transfer-token.js";
|
|
9
21
|
export * from "./update-owner-profile.js";
|
|
22
|
+
export * from "./wallet-action-shared.js";
|
|
10
23
|
export * from "./web-search.js";
|
|
11
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
export * from "./app-control.js";
|
|
2
2
|
export * from "./calendar.js";
|
|
3
|
+
export * from "./check-balance.js";
|
|
4
|
+
export * from "./eject-plugin.js";
|
|
5
|
+
export * from "./execute-trade.js";
|
|
6
|
+
export * from "./get-self-status.js";
|
|
3
7
|
export * from "./gmail.js";
|
|
8
|
+
export * from "./inbox.js";
|
|
9
|
+
export * from "./install-plugin.js";
|
|
4
10
|
export * from "./life.js";
|
|
11
|
+
export * from "./list-ejected.js";
|
|
12
|
+
export * from "./log-level.js";
|
|
13
|
+
export * from "./media.js";
|
|
14
|
+
export * from "./reinject-plugin.js";
|
|
5
15
|
export * from "./restart.js";
|
|
6
16
|
export * from "./send-message.js";
|
|
7
17
|
export * from "./stream-control.js";
|
|
18
|
+
export * from "./sync-plugin.js";
|
|
8
19
|
export * from "./terminal.js";
|
|
20
|
+
export * from "./transfer-token.js";
|
|
9
21
|
export * from "./update-owner-profile.js";
|
|
22
|
+
export * from "./wallet-action-shared.js";
|
|
10
23
|
export * from "./web-search.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/actions/install-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAiC,MAAM,eAAe,CAAC;AAiB3E,eAAO,MAAM,mBAAmB,EAAE,MA0EjC,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
function getPluginManager(runtime) {
|
|
2
|
+
return runtime.getService("plugin_manager");
|
|
3
|
+
}
|
|
4
|
+
export const installPluginAction = {
|
|
5
|
+
name: "INSTALL_PLUGIN",
|
|
6
|
+
similes: [
|
|
7
|
+
"INSTALL",
|
|
8
|
+
"ADD_PLUGIN",
|
|
9
|
+
"ENABLE_PLUGIN",
|
|
10
|
+
"SETUP_PLUGIN",
|
|
11
|
+
"GET_PLUGIN",
|
|
12
|
+
],
|
|
13
|
+
description: "Install a plugin that is not yet installed. Use this when a user asks to " +
|
|
14
|
+
"use, enable, set up, or install a plugin that is marked [available] " +
|
|
15
|
+
"(not yet loaded). The plugin will be downloaded and the agent will " +
|
|
16
|
+
"restart to load it.",
|
|
17
|
+
validate: async () => true,
|
|
18
|
+
handler: async (runtime, _message, _state, options) => {
|
|
19
|
+
try {
|
|
20
|
+
const params = options?.parameters;
|
|
21
|
+
const pluginId = typeof params?.pluginId === "string"
|
|
22
|
+
? params.pluginId.trim()
|
|
23
|
+
: undefined;
|
|
24
|
+
if (!pluginId) {
|
|
25
|
+
return { text: "I need a plugin ID to install.", success: false };
|
|
26
|
+
}
|
|
27
|
+
const mgr = getPluginManager(runtime);
|
|
28
|
+
if (!mgr) {
|
|
29
|
+
return {
|
|
30
|
+
text: "Plugin manager service is not available. Ensure the plugin manager capability is enabled.",
|
|
31
|
+
success: false,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
const npmName = pluginId.startsWith("@")
|
|
35
|
+
? pluginId
|
|
36
|
+
: `@elizaos/plugin-${pluginId}`;
|
|
37
|
+
const result = await mgr.installPlugin(npmName);
|
|
38
|
+
if (!result.success) {
|
|
39
|
+
return {
|
|
40
|
+
text: `Failed to install ${pluginId}: ${result.error ?? "unknown error"}`,
|
|
41
|
+
success: false,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
text: `Plugin ${result.pluginName}@${result.version} installed successfully.${result.requiresRestart ? " The agent will restart to load it." : ""}`,
|
|
46
|
+
success: true,
|
|
47
|
+
data: { pluginId, npmName, ...result },
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
catch (err) {
|
|
51
|
+
return {
|
|
52
|
+
text: `Install failed: ${err instanceof Error ? err.message : String(err)}`,
|
|
53
|
+
success: false,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
parameters: [
|
|
58
|
+
{
|
|
59
|
+
name: "pluginId",
|
|
60
|
+
description: "The short plugin ID to install (e.g. 'telegram', 'discord', 'polymarket')",
|
|
61
|
+
required: true,
|
|
62
|
+
schema: { type: "string" },
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
};
|
|
@@ -1,69 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { CreateLifeOpsGoalRequest, LifeOpsGoalDefinition, UpdateLifeOpsGoalRequest } from "@elizaos/shared/contracts/lifeops";
|
|
3
|
-
import { type GoalGroundingMetadata, type GoalGroundingState } from "../lifeops/goal-grounding.js";
|
|
4
|
-
export declare const GOAL_GROUNDING_FIELD_VALUES: readonly ["title", "target_state", "success_metric", "time_horizon", "evidence_source", "support_plan"];
|
|
5
|
-
export type GoalGroundingField = (typeof GOAL_GROUNDING_FIELD_VALUES)[number];
|
|
6
|
-
export interface ExtractedGoalCreatePlan {
|
|
7
|
-
mode: "create" | "respond";
|
|
8
|
-
response: string | null;
|
|
9
|
-
title: string | null;
|
|
10
|
-
description: string | null;
|
|
11
|
-
cadence: CreateLifeOpsGoalRequest["cadence"];
|
|
12
|
-
successCriteria: CreateLifeOpsGoalRequest["successCriteria"] | null;
|
|
13
|
-
supportStrategy: CreateLifeOpsGoalRequest["supportStrategy"] | null;
|
|
14
|
-
groundingState: GoalGroundingState;
|
|
15
|
-
missingCriticalFields: GoalGroundingField[];
|
|
16
|
-
confidence: number | null;
|
|
17
|
-
evaluationSummary: string | null;
|
|
18
|
-
targetDomain: string | null;
|
|
19
|
-
}
|
|
20
|
-
export interface ExtractedGoalUpdatePlan {
|
|
21
|
-
mode: "update" | "respond";
|
|
22
|
-
response: string | null;
|
|
23
|
-
title: string | null;
|
|
24
|
-
description: string | null;
|
|
25
|
-
cadence: UpdateLifeOpsGoalRequest["cadence"];
|
|
26
|
-
successCriteria: UpdateLifeOpsGoalRequest["successCriteria"] | null;
|
|
27
|
-
supportStrategy: UpdateLifeOpsGoalRequest["supportStrategy"] | null;
|
|
28
|
-
groundingState: GoalGroundingState | null;
|
|
29
|
-
missingCriticalFields: GoalGroundingField[];
|
|
30
|
-
confidence: number | null;
|
|
31
|
-
evaluationSummary: string | null;
|
|
32
|
-
targetDomain: string | null;
|
|
33
|
-
}
|
|
34
|
-
export declare function buildGoalCreateExtractionPrompt(intent: string, recentConversation: string): string;
|
|
35
|
-
export declare function extractGoalCreatePlanWithLlm(args: {
|
|
36
|
-
runtime: IAgentRuntime;
|
|
37
|
-
intent: string;
|
|
38
|
-
state: State | undefined;
|
|
39
|
-
message?: Memory;
|
|
40
|
-
}): Promise<ExtractedGoalCreatePlan>;
|
|
41
|
-
export declare function buildGoalUpdateExtractionPrompt(args: {
|
|
42
|
-
currentGoal: LifeOpsGoalDefinition;
|
|
43
|
-
intent: string;
|
|
44
|
-
recentConversation: string;
|
|
45
|
-
}): string;
|
|
46
|
-
export declare function extractGoalUpdatePlanWithLlm(args: {
|
|
47
|
-
runtime: IAgentRuntime;
|
|
48
|
-
currentGoal: LifeOpsGoalDefinition;
|
|
49
|
-
intent: string;
|
|
50
|
-
state: State | undefined;
|
|
51
|
-
message?: Memory;
|
|
52
|
-
}): Promise<ExtractedGoalUpdatePlan>;
|
|
53
|
-
type GoalGroundingPlanInput = {
|
|
54
|
-
cadence: Record<string, unknown> | null | undefined;
|
|
55
|
-
confidence: number | null;
|
|
56
|
-
evaluationSummary: string | null;
|
|
57
|
-
groundingState: GoalGroundingState;
|
|
58
|
-
missingCriticalFields: GoalGroundingField[];
|
|
59
|
-
successCriteria: Record<string, unknown> | null | undefined;
|
|
60
|
-
targetDomain: string | null;
|
|
61
|
-
};
|
|
62
|
-
export declare function planToGoalGroundingMetadata(plan: GoalGroundingPlanInput, nowIso: string): GoalGroundingMetadata;
|
|
63
|
-
export declare function mergeGoalMetadataWithGrounding(args: {
|
|
64
|
-
metadata?: Record<string, unknown> | null;
|
|
65
|
-
nowIso: string;
|
|
66
|
-
plan: GoalGroundingPlanInput;
|
|
67
|
-
}): Record<string, unknown>;
|
|
68
|
-
export {};
|
|
1
|
+
export * from "@elizaos/app-lifeops/actions/life-goal-extractor";
|
|
69
2
|
//# sourceMappingURL=life-goal-extractor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"life-goal-extractor.d.ts","sourceRoot":"","sources":["../../../../../src/actions/life-goal-extractor.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"life-goal-extractor.d.ts","sourceRoot":"","sources":["../../../../../src/actions/life-goal-extractor.ts"],"names":[],"mappings":"AAAA,cAAc,kDAAkD,CAAC"}
|
|
@@ -1,354 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { buildGoalGroundingMetadata, GOAL_GROUNDING_STATES, mergeGoalGroundingMetadata, } from "../lifeops/goal-grounding.js";
|
|
3
|
-
import { recentConversationTexts } from "./life-recent-context.js";
|
|
4
|
-
export const GOAL_GROUNDING_FIELD_VALUES = [
|
|
5
|
-
"title",
|
|
6
|
-
"target_state",
|
|
7
|
-
"success_metric",
|
|
8
|
-
"time_horizon",
|
|
9
|
-
"evidence_source",
|
|
10
|
-
"support_plan",
|
|
11
|
-
];
|
|
12
|
-
const VALID_CREATE_MODES = new Set(["create", "respond"]);
|
|
13
|
-
const VALID_UPDATE_MODES = new Set(["update", "respond"]);
|
|
14
|
-
const EMPTY_GOAL_CREATE_PLAN = {
|
|
15
|
-
mode: "respond",
|
|
16
|
-
response: "What would count as success for that goal, and over what time window?",
|
|
17
|
-
title: null,
|
|
18
|
-
description: null,
|
|
19
|
-
cadence: null,
|
|
20
|
-
successCriteria: null,
|
|
21
|
-
supportStrategy: null,
|
|
22
|
-
groundingState: "ungrounded",
|
|
23
|
-
missingCriticalFields: [
|
|
24
|
-
"target_state",
|
|
25
|
-
"success_metric",
|
|
26
|
-
"time_horizon",
|
|
27
|
-
"evidence_source",
|
|
28
|
-
],
|
|
29
|
-
confidence: null,
|
|
30
|
-
evaluationSummary: null,
|
|
31
|
-
targetDomain: null,
|
|
32
|
-
};
|
|
33
|
-
const EMPTY_GOAL_UPDATE_PLAN = {
|
|
34
|
-
mode: "respond",
|
|
35
|
-
response: "Tell me what to change about the goal.",
|
|
36
|
-
title: null,
|
|
37
|
-
description: null,
|
|
38
|
-
cadence: null,
|
|
39
|
-
successCriteria: null,
|
|
40
|
-
supportStrategy: null,
|
|
41
|
-
groundingState: null,
|
|
42
|
-
missingCriticalFields: [],
|
|
43
|
-
confidence: null,
|
|
44
|
-
evaluationSummary: null,
|
|
45
|
-
targetDomain: null,
|
|
46
|
-
};
|
|
47
|
-
function normalizeText(value) {
|
|
48
|
-
if (typeof value !== "string") {
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
const trimmed = value.trim();
|
|
52
|
-
return trimmed.length > 0 ? trimmed : null;
|
|
53
|
-
}
|
|
54
|
-
function normalizeFiniteNumber(value) {
|
|
55
|
-
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
56
|
-
return null;
|
|
57
|
-
}
|
|
58
|
-
return Math.max(0, Math.min(1, value));
|
|
59
|
-
}
|
|
60
|
-
function normalizeRecord(value) {
|
|
61
|
-
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
62
|
-
return null;
|
|
63
|
-
}
|
|
64
|
-
return value;
|
|
65
|
-
}
|
|
66
|
-
function normalizeMissingFields(value) {
|
|
67
|
-
if (!Array.isArray(value)) {
|
|
68
|
-
return [];
|
|
69
|
-
}
|
|
70
|
-
const missing = [];
|
|
71
|
-
for (const entry of value) {
|
|
72
|
-
if (typeof entry !== "string") {
|
|
73
|
-
continue;
|
|
74
|
-
}
|
|
75
|
-
const normalized = entry.trim().toLowerCase();
|
|
76
|
-
if (GOAL_GROUNDING_FIELD_VALUES.includes(normalized) &&
|
|
77
|
-
!missing.includes(normalized)) {
|
|
78
|
-
missing.push(normalized);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return missing;
|
|
82
|
-
}
|
|
83
|
-
function normalizeGroundingState(value) {
|
|
84
|
-
if (typeof value !== "string") {
|
|
85
|
-
return null;
|
|
86
|
-
}
|
|
87
|
-
const normalized = value.trim().toLowerCase();
|
|
88
|
-
return GOAL_GROUNDING_STATES.includes(normalized)
|
|
89
|
-
? normalized
|
|
90
|
-
: null;
|
|
91
|
-
}
|
|
92
|
-
function normalizeCreateMode(value) {
|
|
93
|
-
if (typeof value !== "string") {
|
|
94
|
-
return null;
|
|
95
|
-
}
|
|
96
|
-
const normalized = value.trim().toLowerCase();
|
|
97
|
-
return VALID_CREATE_MODES.has(normalized)
|
|
98
|
-
? normalized
|
|
99
|
-
: null;
|
|
100
|
-
}
|
|
101
|
-
function normalizeUpdateMode(value) {
|
|
102
|
-
if (typeof value !== "string") {
|
|
103
|
-
return null;
|
|
104
|
-
}
|
|
105
|
-
const normalized = value.trim().toLowerCase();
|
|
106
|
-
return VALID_UPDATE_MODES.has(normalized)
|
|
107
|
-
? normalized
|
|
108
|
-
: null;
|
|
109
|
-
}
|
|
110
|
-
function buildCreatePlan(parsed) {
|
|
111
|
-
const mode = normalizeCreateMode(parsed.mode);
|
|
112
|
-
const groundingState = normalizeGroundingState(parsed.groundingState);
|
|
113
|
-
if (!mode || !groundingState) {
|
|
114
|
-
return null;
|
|
115
|
-
}
|
|
116
|
-
return {
|
|
117
|
-
mode,
|
|
118
|
-
response: mode === "respond" ? normalizeText(parsed.response) : null,
|
|
119
|
-
title: normalizeText(parsed.title),
|
|
120
|
-
description: normalizeText(parsed.description),
|
|
121
|
-
cadence: normalizeRecord(parsed.cadence),
|
|
122
|
-
successCriteria: normalizeRecord(parsed.successCriteria),
|
|
123
|
-
supportStrategy: normalizeRecord(parsed.supportStrategy),
|
|
124
|
-
groundingState,
|
|
125
|
-
missingCriticalFields: normalizeMissingFields(parsed.missingCriticalFields),
|
|
126
|
-
confidence: normalizeFiniteNumber(parsed.confidence),
|
|
127
|
-
evaluationSummary: normalizeText(parsed.evaluationSummary),
|
|
128
|
-
targetDomain: normalizeText(parsed.targetDomain),
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
function buildUpdatePlan(parsed) {
|
|
132
|
-
const mode = normalizeUpdateMode(parsed.mode);
|
|
133
|
-
if (!mode) {
|
|
134
|
-
return null;
|
|
135
|
-
}
|
|
136
|
-
return {
|
|
137
|
-
mode,
|
|
138
|
-
response: mode === "respond" ? normalizeText(parsed.response) : null,
|
|
139
|
-
title: normalizeText(parsed.title),
|
|
140
|
-
description: normalizeText(parsed.description),
|
|
141
|
-
cadence: normalizeRecord(parsed.cadence),
|
|
142
|
-
successCriteria: normalizeRecord(parsed.successCriteria),
|
|
143
|
-
supportStrategy: normalizeRecord(parsed.supportStrategy),
|
|
144
|
-
groundingState: normalizeGroundingState(parsed.groundingState),
|
|
145
|
-
missingCriticalFields: normalizeMissingFields(parsed.missingCriticalFields),
|
|
146
|
-
confidence: normalizeFiniteNumber(parsed.confidence),
|
|
147
|
-
evaluationSummary: normalizeText(parsed.evaluationSummary),
|
|
148
|
-
targetDomain: normalizeText(parsed.targetDomain),
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
export function buildGoalCreateExtractionPrompt(intent, recentConversation) {
|
|
152
|
-
return [
|
|
153
|
-
"Ground the user's goal into something the system can actually review later.",
|
|
154
|
-
"The user may speak in any language and may refer to a previous goal draft or clarification exchange.",
|
|
155
|
-
"A goal is only ready to save when future progress can be evaluated from evidence.",
|
|
156
|
-
"Do not treat a label-only aspiration as ready just because it has a nice title.",
|
|
157
|
-
"A grounded goal usually includes:",
|
|
158
|
-
"- the target state or outcome",
|
|
159
|
-
"- what success would look like",
|
|
160
|
-
"- the time horizon or review window",
|
|
161
|
-
"- the evidence signals or metrics that can show progress",
|
|
162
|
-
"- a concrete support strategy",
|
|
163
|
-
"",
|
|
164
|
-
"Return ONLY valid JSON with these fields:",
|
|
165
|
-
'- mode: "create" when the goal is grounded enough to save now, otherwise "respond"',
|
|
166
|
-
"- response: one focused clarifying question when mode=respond, otherwise null",
|
|
167
|
-
"- title: concise goal title",
|
|
168
|
-
"- description: short human-readable description",
|
|
169
|
-
'- cadence: optional review cadence object, usually {"kind":"weekly"} or {"kind":"monthly"}',
|
|
170
|
-
"- successCriteria: object describing how progress or success will be judged",
|
|
171
|
-
"- supportStrategy: object describing how the goal should be supported",
|
|
172
|
-
'- groundingState: one of "grounded", "partial", "ungrounded"',
|
|
173
|
-
'- missingCriticalFields: array drawn only from ["title","target_state","success_metric","time_horizon","evidence_source","support_plan"]',
|
|
174
|
-
"- confidence: number from 0 to 1",
|
|
175
|
-
"- evaluationSummary: one sentence describing what would count as progress",
|
|
176
|
-
"- targetDomain: short domain label like sleep, fitness, work, learning, finances, relationships, health, creativity",
|
|
177
|
-
"",
|
|
178
|
-
"Important rules:",
|
|
179
|
-
"- If the user only gives a title or vague aspiration, choose mode=respond.",
|
|
180
|
-
"- Ask for the single most important missing piece, not a questionnaire.",
|
|
181
|
-
"- successCriteria and supportStrategy must be objects, not strings or arrays.",
|
|
182
|
-
"- Encode measurable or observable criteria whenever possible.",
|
|
183
|
-
"- If sleep, routines, biometrics, calendar, or linked habits are relevant evidence, name them explicitly in successCriteria.",
|
|
184
|
-
"",
|
|
185
|
-
"Examples:",
|
|
186
|
-
'Input: "I want a goal called Stabilize sleep schedule."',
|
|
187
|
-
'Output: {"mode":"respond","response":"What would a stabilized sleep schedule look like for you: target bedtime and wake time, or a consistency window?","title":"Stabilize sleep schedule","description":"Build a more consistent sleep schedule.","cadence":{"kind":"weekly"},"successCriteria":null,"supportStrategy":null,"groundingState":"partial","missingCriticalFields":["target_state","success_metric","time_horizon","evidence_source","support_plan"],"confidence":0.78,"evaluationSummary":null,"targetDomain":"sleep"}',
|
|
188
|
-
"",
|
|
189
|
-
'Input: "I want to stabilize my sleep schedule by being asleep by 11:30 pm and up around 7:30 am on weekdays, within 45 minutes, for the next month."',
|
|
190
|
-
'Output: {"mode":"create","response":null,"title":"Stabilize sleep schedule","description":"Keep weekday sleep and wake times consistent for the next month.","cadence":{"kind":"weekly","reviewWindowDays":7},"successCriteria":{"summary":"For the next 30 days, be asleep by about 11:30 pm and awake by about 7:30 am on weekdays, staying within 45 minutes on at least 20 days.","metric":"weekday sleep schedule consistency","target":{"bedtime":"23:30","wakeTime":"07:30","allowedVarianceMinutes":45,"successDays":20,"windowDays":30},"evidenceSignals":["health.sleep","manual_checkin"]},"supportStrategy":{"summary":"Use a consistent wind-down and morning routine.","firstStep":"Pick a wind-down start time 45 to 60 minutes before bed.","suggestedSupport":["evening wind-down routine","morning wake routine","weekly sleep check-in"]},"groundingState":"grounded","missingCriticalFields":[],"confidence":0.9,"evaluationSummary":"Progress means weekday bed and wake times stay near 11:30 pm and 7:30 am over the next month.","targetDomain":"sleep"}',
|
|
191
|
-
"",
|
|
192
|
-
"Return ONLY valid JSON. No prose. No markdown.",
|
|
193
|
-
"",
|
|
194
|
-
`User request: ${JSON.stringify(intent)}`,
|
|
195
|
-
`Recent conversation: ${JSON.stringify(recentConversation)}`,
|
|
196
|
-
].join("\n");
|
|
197
|
-
}
|
|
198
|
-
function buildGoalCreateRepairPrompt(args) {
|
|
199
|
-
return [
|
|
200
|
-
"Your last reply for the goal-grounding extractor was invalid.",
|
|
201
|
-
"Return ONLY valid JSON with exactly these fields:",
|
|
202
|
-
"mode, response, title, description, cadence, successCriteria, supportStrategy, groundingState, missingCriticalFields, confidence, evaluationSummary, targetDomain",
|
|
203
|
-
"",
|
|
204
|
-
'mode must be "create" or "respond".',
|
|
205
|
-
'groundingState must be "grounded", "partial", or "ungrounded".',
|
|
206
|
-
"successCriteria and supportStrategy must be objects or null.",
|
|
207
|
-
"missingCriticalFields must contain only valid enum values.",
|
|
208
|
-
"",
|
|
209
|
-
`User request: ${JSON.stringify(args.intent)}`,
|
|
210
|
-
`Recent conversation: ${JSON.stringify(args.recentConversation)}`,
|
|
211
|
-
`Previous invalid output: ${JSON.stringify(args.rawResponse)}`,
|
|
212
|
-
].join("\n");
|
|
213
|
-
}
|
|
214
|
-
export async function extractGoalCreatePlanWithLlm(args) {
|
|
215
|
-
if (!args.intent.trim() || typeof args.runtime.useModel !== "function") {
|
|
216
|
-
return { ...EMPTY_GOAL_CREATE_PLAN };
|
|
217
|
-
}
|
|
218
|
-
const recentConversation = (await recentConversationTexts({
|
|
219
|
-
runtime: args.runtime,
|
|
220
|
-
message: args.message,
|
|
221
|
-
state: args.state,
|
|
222
|
-
limit: 12,
|
|
223
|
-
})).join("\n");
|
|
224
|
-
const prompt = buildGoalCreateExtractionPrompt(args.intent, recentConversation);
|
|
225
|
-
try {
|
|
226
|
-
const raw = await args.runtime.useModel(ModelType.TEXT_LARGE, { prompt });
|
|
227
|
-
const parsed = parseJSONObjectFromText(typeof raw === "string" ? raw : "");
|
|
228
|
-
const plan = parsed ? buildCreatePlan(parsed) : null;
|
|
229
|
-
if (plan) {
|
|
230
|
-
return plan;
|
|
231
|
-
}
|
|
232
|
-
const repairedRaw = await args.runtime.useModel(ModelType.TEXT_LARGE, {
|
|
233
|
-
prompt: buildGoalCreateRepairPrompt({
|
|
234
|
-
intent: args.intent,
|
|
235
|
-
recentConversation,
|
|
236
|
-
rawResponse: typeof raw === "string" ? raw : "",
|
|
237
|
-
}),
|
|
238
|
-
});
|
|
239
|
-
const repairedParsed = parseJSONObjectFromText(typeof repairedRaw === "string" ? repairedRaw : "");
|
|
240
|
-
return repairedParsed
|
|
241
|
-
? (buildCreatePlan(repairedParsed) ?? { ...EMPTY_GOAL_CREATE_PLAN })
|
|
242
|
-
: { ...EMPTY_GOAL_CREATE_PLAN };
|
|
243
|
-
}
|
|
244
|
-
catch {
|
|
245
|
-
return { ...EMPTY_GOAL_CREATE_PLAN };
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
export function buildGoalUpdateExtractionPrompt(args) {
|
|
249
|
-
return [
|
|
250
|
-
"Extract only the goal fields the user wants to change.",
|
|
251
|
-
"The current goal may already contain evaluation criteria. Preserve what the user did not ask to change.",
|
|
252
|
-
"If the user clarifies how the goal should be evaluated, update successCriteria and supportStrategy.",
|
|
253
|
-
"If the request is too vague to apply safely, choose mode=respond and ask one focused question.",
|
|
254
|
-
"",
|
|
255
|
-
"Return ONLY valid JSON with these fields:",
|
|
256
|
-
'- mode: "update" or "respond"',
|
|
257
|
-
"- response: short clarifying response when mode=respond, otherwise null",
|
|
258
|
-
"- title: new title or null",
|
|
259
|
-
"- description: new description or null",
|
|
260
|
-
"- cadence: replacement review cadence object or null",
|
|
261
|
-
"- successCriteria: replacement success criteria object or null",
|
|
262
|
-
"- supportStrategy: replacement support strategy object or null",
|
|
263
|
-
'- groundingState: "grounded", "partial", "ungrounded", or null when unchanged',
|
|
264
|
-
'- missingCriticalFields: array drawn only from ["title","target_state","success_metric","time_horizon","evidence_source","support_plan"]',
|
|
265
|
-
"- confidence: number from 0 to 1",
|
|
266
|
-
"- evaluationSummary: one sentence describing the updated evaluation contract, or null",
|
|
267
|
-
"- targetDomain: updated domain label or null",
|
|
268
|
-
"",
|
|
269
|
-
`Current goal title: ${JSON.stringify(args.currentGoal.title)}`,
|
|
270
|
-
`Current goal description: ${JSON.stringify(args.currentGoal.description)}`,
|
|
271
|
-
`Current goal cadence: ${JSON.stringify(args.currentGoal.cadence)}`,
|
|
272
|
-
`Current success criteria: ${JSON.stringify(args.currentGoal.successCriteria)}`,
|
|
273
|
-
`Current support strategy: ${JSON.stringify(args.currentGoal.supportStrategy)}`,
|
|
274
|
-
`User request: ${JSON.stringify(args.intent)}`,
|
|
275
|
-
`Recent conversation: ${JSON.stringify(args.recentConversation)}`,
|
|
276
|
-
].join("\n");
|
|
277
|
-
}
|
|
278
|
-
function buildGoalUpdateRepairPrompt(args) {
|
|
279
|
-
return [
|
|
280
|
-
"Your last reply for the goal-update extractor was invalid.",
|
|
281
|
-
"Return ONLY valid JSON with exactly these fields:",
|
|
282
|
-
"mode, response, title, description, cadence, successCriteria, supportStrategy, groundingState, missingCriticalFields, confidence, evaluationSummary, targetDomain",
|
|
283
|
-
"",
|
|
284
|
-
'mode must be "update" or "respond".',
|
|
285
|
-
"",
|
|
286
|
-
`Current goal title: ${JSON.stringify(args.currentGoal.title)}`,
|
|
287
|
-
`User request: ${JSON.stringify(args.intent)}`,
|
|
288
|
-
`Recent conversation: ${JSON.stringify(args.recentConversation)}`,
|
|
289
|
-
`Previous invalid output: ${JSON.stringify(args.rawResponse)}`,
|
|
290
|
-
].join("\n");
|
|
291
|
-
}
|
|
292
|
-
export async function extractGoalUpdatePlanWithLlm(args) {
|
|
293
|
-
if (!args.intent.trim() || typeof args.runtime.useModel !== "function") {
|
|
294
|
-
return { ...EMPTY_GOAL_UPDATE_PLAN };
|
|
295
|
-
}
|
|
296
|
-
const recentConversation = (await recentConversationTexts({
|
|
297
|
-
runtime: args.runtime,
|
|
298
|
-
message: args.message,
|
|
299
|
-
state: args.state,
|
|
300
|
-
limit: 12,
|
|
301
|
-
})).join("\n");
|
|
302
|
-
const prompt = buildGoalUpdateExtractionPrompt({
|
|
303
|
-
currentGoal: args.currentGoal,
|
|
304
|
-
intent: args.intent,
|
|
305
|
-
recentConversation,
|
|
306
|
-
});
|
|
307
|
-
try {
|
|
308
|
-
const raw = await args.runtime.useModel(ModelType.TEXT_LARGE, { prompt });
|
|
309
|
-
const parsed = parseJSONObjectFromText(typeof raw === "string" ? raw : "");
|
|
310
|
-
const plan = parsed ? buildUpdatePlan(parsed) : null;
|
|
311
|
-
if (plan) {
|
|
312
|
-
return plan;
|
|
313
|
-
}
|
|
314
|
-
const repairedRaw = await args.runtime.useModel(ModelType.TEXT_LARGE, {
|
|
315
|
-
prompt: buildGoalUpdateRepairPrompt({
|
|
316
|
-
currentGoal: args.currentGoal,
|
|
317
|
-
intent: args.intent,
|
|
318
|
-
recentConversation,
|
|
319
|
-
rawResponse: typeof raw === "string" ? raw : "",
|
|
320
|
-
}),
|
|
321
|
-
});
|
|
322
|
-
const repairedParsed = parseJSONObjectFromText(typeof repairedRaw === "string" ? repairedRaw : "");
|
|
323
|
-
return repairedParsed
|
|
324
|
-
? (buildUpdatePlan(repairedParsed) ?? { ...EMPTY_GOAL_UPDATE_PLAN })
|
|
325
|
-
: { ...EMPTY_GOAL_UPDATE_PLAN };
|
|
326
|
-
}
|
|
327
|
-
catch {
|
|
328
|
-
return { ...EMPTY_GOAL_UPDATE_PLAN };
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
export function planToGoalGroundingMetadata(plan, nowIso) {
|
|
332
|
-
const successCriteriaRecord = normalizeRecord(plan.successCriteria);
|
|
333
|
-
const evidenceSignals = Array.isArray(successCriteriaRecord?.evidenceSignals)
|
|
334
|
-
? successCriteriaRecord.evidenceSignals
|
|
335
|
-
.filter((entry) => typeof entry === "string")
|
|
336
|
-
.map((entry) => entry.trim())
|
|
337
|
-
.filter((entry) => entry.length > 0)
|
|
338
|
-
: [];
|
|
339
|
-
const cadenceRecord = normalizeRecord(plan.cadence);
|
|
340
|
-
return buildGoalGroundingMetadata({
|
|
341
|
-
confidence: plan.confidence,
|
|
342
|
-
evidenceSignals,
|
|
343
|
-
groundedAt: plan.groundingState === "grounded" ? nowIso : null,
|
|
344
|
-
groundingState: plan.groundingState,
|
|
345
|
-
missingCriticalFields: plan.missingCriticalFields,
|
|
346
|
-
reviewCadenceKind: normalizeText(cadenceRecord?.kind),
|
|
347
|
-
summary: plan.evaluationSummary,
|
|
348
|
-
targetDomain: plan.targetDomain,
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
|
-
export function mergeGoalMetadataWithGrounding(args) {
|
|
352
|
-
const metadata = args.metadata ?? {};
|
|
353
|
-
return mergeGoalGroundingMetadata(metadata, planToGoalGroundingMetadata(args.plan, args.nowIso));
|
|
354
|
-
}
|
|
1
|
+
export * from "@elizaos/app-lifeops/actions/life-goal-extractor";
|
|
@@ -1,78 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* LLM planning and structured extraction for LifeOps task creation.
|
|
3
|
-
*
|
|
4
|
-
* Performs a second LLM call (TEXT_LARGE) after operation classification
|
|
5
|
-
* to decide whether the current create_definition request should:
|
|
6
|
-
* 1. create or preview a LifeOps item now, or
|
|
7
|
-
* 2. reply/clarify without creating anything yet.
|
|
8
|
-
*
|
|
9
|
-
* When creation is appropriate, the same response also extracts structured
|
|
10
|
-
* fields — title, cadence, priority, time-of-day, etc. — from natural
|
|
11
|
-
* language so life.ts can stay on an LLM-driven extraction path.
|
|
12
|
-
*/
|
|
13
|
-
import type { IAgentRuntime, Memory, State } from "@elizaos/core";
|
|
14
|
-
export interface ExtractedTaskParams {
|
|
15
|
-
requestKind: "alarm" | "reminder" | null;
|
|
16
|
-
title: string | null;
|
|
17
|
-
description: string | null;
|
|
18
|
-
cadenceKind: "once" | "daily" | "weekly" | "times_per_day" | "interval" | null;
|
|
19
|
-
windows: string[] | null;
|
|
20
|
-
weekdays: number[] | null;
|
|
21
|
-
timeOfDay: string | null;
|
|
22
|
-
timeZone: string | null;
|
|
23
|
-
everyMinutes: number | null;
|
|
24
|
-
timesPerDay: number | null;
|
|
25
|
-
priority: number | null;
|
|
26
|
-
durationMinutes: number | null;
|
|
27
|
-
}
|
|
28
|
-
export interface ExtractedTaskCreatePlan extends ExtractedTaskParams {
|
|
29
|
-
mode: "create" | "respond";
|
|
30
|
-
response: string | null;
|
|
31
|
-
}
|
|
32
|
-
declare function buildExtractionPrompt(intent: string, recentConversation: string): string;
|
|
33
|
-
/**
|
|
34
|
-
* Call the LLM to plan whether a create_definition request should create
|
|
35
|
-
* a task draft now or reply first, while also extracting structured
|
|
36
|
-
* task parameters for the create path.
|
|
37
|
-
*/
|
|
38
|
-
export declare function extractTaskCreatePlanWithLlm(args: {
|
|
39
|
-
runtime: IAgentRuntime;
|
|
40
|
-
intent: string;
|
|
41
|
-
state: State | undefined;
|
|
42
|
-
message?: Memory;
|
|
43
|
-
}): Promise<ExtractedTaskCreatePlan>;
|
|
44
|
-
export declare function extractTaskParamsWithLlm(args: {
|
|
45
|
-
runtime: IAgentRuntime;
|
|
46
|
-
intent: string;
|
|
47
|
-
state: State | undefined;
|
|
48
|
-
message?: Memory;
|
|
49
|
-
}): Promise<ExtractedTaskParams>;
|
|
50
|
-
export interface ExtractedReminderIntensityPlan {
|
|
51
|
-
intensity: "minimal" | "normal" | "persistent" | "high_priority_only" | "unknown";
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Ask a small text model to classify the user's intent into a reminder
|
|
55
|
-
* intensity value. Returns an explicit "unknown" result when the model is
|
|
56
|
-
* unavailable or the response is invalid so callers do not need regex
|
|
57
|
-
* fallbacks.
|
|
58
|
-
*/
|
|
59
|
-
export declare function extractReminderIntensityWithLlm(args: {
|
|
60
|
-
runtime: IAgentRuntime;
|
|
61
|
-
intent: string;
|
|
62
|
-
}): Promise<ExtractedReminderIntensityPlan>;
|
|
63
|
-
export interface ExtractedUnlockMode {
|
|
64
|
-
mode: "fixed_duration" | "until_manual_lock" | "until_callback";
|
|
65
|
-
callbackKey?: string;
|
|
66
|
-
durationMinutes?: number;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Ask a small text model to determine the website unlock mode from the
|
|
70
|
-
* user's intent. Returns null when the model is unavailable, throws, or
|
|
71
|
-
* returns an invalid value — callers should fall back to regex.
|
|
72
|
-
*/
|
|
73
|
-
export declare function extractUnlockModeWithLlm(args: {
|
|
74
|
-
runtime: IAgentRuntime;
|
|
75
|
-
intent: string;
|
|
76
|
-
}): Promise<ExtractedUnlockMode | null>;
|
|
77
|
-
export { buildExtractionPrompt };
|
|
1
|
+
export * from "@elizaos/app-lifeops/actions/life-param-extractor";
|
|
78
2
|
//# sourceMappingURL=life-param-extractor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"life-param-extractor.d.ts","sourceRoot":"","sources":["../../../../../src/actions/life-param-extractor.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"life-param-extractor.d.ts","sourceRoot":"","sources":["../../../../../src/actions/life-param-extractor.ts"],"names":[],"mappings":"AAAA,cAAc,mDAAmD,CAAC"}
|