@elizaos/agent 2.0.0-alpha.144 → 2.0.0-alpha.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/app-lifeops/src/actions/inbox-digest.d.ts +2 -0
- package/apps/app-lifeops/src/actions/inbox-digest.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox-digest.js +1 -0
- package/apps/app-lifeops/src/actions/inbox-respond.d.ts +2 -0
- package/apps/app-lifeops/src/actions/inbox-respond.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox-respond.js +1 -0
- package/apps/app-lifeops/src/actions/inbox-triage.d.ts +2 -0
- package/apps/app-lifeops/src/actions/inbox-triage.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox-triage.js +1 -0
- package/apps/app-lifeops/src/actions/inbox.d.ts +3 -0
- package/apps/app-lifeops/src/actions/inbox.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/inbox.js +856 -0
- package/apps/app-lifeops/src/actions/update-owner-profile.d.ts +3 -0
- package/apps/app-lifeops/src/actions/update-owner-profile.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/update-owner-profile.js +131 -0
- package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/config.d.ts.map +1 -0
- package/{packages/agent → apps/app-lifeops}/src/inbox/config.js +1 -1
- package/apps/app-lifeops/src/inbox/message-fetcher.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/reflection.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/repository.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/triage-classifier.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/index.d.ts +25 -0
- package/apps/app-lifeops/src/lifeops/index.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/index.js +24 -0
- package/apps/app-lifeops/src/lifeops/screen-context.d.ts +52 -0
- package/apps/app-lifeops/src/lifeops/screen-context.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/screen-context.js +332 -0
- package/apps/app-lifeops/src/plugin.d.ts +3 -0
- package/apps/app-lifeops/src/plugin.d.ts.map +1 -1
- package/apps/app-lifeops/src/plugin.js +16 -3
- package/apps/app-lifeops/src/providers/inbox-triage.d.ts +3 -0
- package/apps/app-lifeops/src/providers/inbox-triage.d.ts.map +1 -0
- package/apps/app-lifeops/src/providers/inbox-triage.js +89 -0
- package/package.json +6 -4
- package/packages/agent/src/actions/calendar.d.ts +1 -18
- package/packages/agent/src/actions/calendar.d.ts.map +1 -1
- package/packages/agent/src/actions/calendar.js +1 -3143
- package/packages/agent/src/actions/check-balance.d.ts +17 -0
- package/packages/agent/src/actions/check-balance.d.ts.map +1 -0
- package/packages/agent/src/actions/check-balance.js +167 -0
- package/packages/agent/src/actions/connector-resolver.d.ts +75 -0
- package/packages/agent/src/actions/connector-resolver.d.ts.map +1 -0
- package/packages/agent/src/actions/connector-resolver.js +245 -0
- package/packages/agent/src/actions/context-signal-lexicon.d.ts +1 -1
- package/packages/agent/src/actions/context-signal-lexicon.d.ts.map +1 -1
- package/packages/agent/src/actions/context-signal-lexicon.js +6 -0
- package/packages/agent/src/actions/eject-plugin.d.ts +3 -0
- package/packages/agent/src/actions/eject-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/eject-plugin.js +48 -0
- package/packages/agent/src/actions/execute-trade.d.ts +17 -0
- package/packages/agent/src/actions/execute-trade.d.ts.map +1 -0
- package/packages/agent/src/actions/execute-trade.js +299 -0
- package/packages/agent/src/actions/get-self-status.d.ts +13 -0
- package/packages/agent/src/actions/get-self-status.d.ts.map +1 -0
- package/packages/agent/src/actions/get-self-status.js +66 -0
- package/packages/agent/src/actions/gmail.d.ts +1 -32
- package/packages/agent/src/actions/gmail.d.ts.map +1 -1
- package/packages/agent/src/actions/gmail.js +1 -1734
- package/packages/agent/src/actions/inbox-digest.d.ts +1 -1
- package/packages/agent/src/actions/inbox-digest.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox-digest.js +1 -1
- package/packages/agent/src/actions/inbox-respond.d.ts +1 -1
- package/packages/agent/src/actions/inbox-respond.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox-respond.js +1 -1
- package/packages/agent/src/actions/inbox-triage.d.ts +1 -1
- package/packages/agent/src/actions/inbox-triage.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox-triage.js +1 -1
- package/packages/agent/src/actions/inbox.d.ts +1 -2
- package/packages/agent/src/actions/inbox.d.ts.map +1 -1
- package/packages/agent/src/actions/inbox.js +1 -856
- package/packages/agent/src/actions/index.d.ts +13 -0
- package/packages/agent/src/actions/index.d.ts.map +1 -1
- package/packages/agent/src/actions/index.js +13 -0
- package/packages/agent/src/actions/install-plugin.d.ts +3 -0
- package/packages/agent/src/actions/install-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/install-plugin.js +65 -0
- package/packages/agent/src/actions/life-goal-extractor.d.ts +1 -68
- package/packages/agent/src/actions/life-goal-extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life-goal-extractor.js +1 -354
- package/packages/agent/src/actions/life-param-extractor.d.ts +1 -77
- package/packages/agent/src/actions/life-param-extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life-param-extractor.js +1 -423
- package/packages/agent/src/actions/life-recent-context.d.ts +1 -8
- package/packages/agent/src/actions/life-recent-context.d.ts.map +1 -1
- package/packages/agent/src/actions/life-recent-context.js +1 -84
- package/packages/agent/src/actions/life-update-extractor.d.ts +1 -26
- package/packages/agent/src/actions/life-update-extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life-update-extractor.js +1 -195
- package/packages/agent/src/actions/life.d.ts +1 -8
- package/packages/agent/src/actions/life.d.ts.map +1 -1
- package/packages/agent/src/actions/life.extractor.d.ts +1 -17
- package/packages/agent/src/actions/life.extractor.d.ts.map +1 -1
- package/packages/agent/src/actions/life.extractor.js +1 -264
- package/packages/agent/src/actions/life.js +1 -3379
- package/packages/agent/src/actions/lifeops-extraction-config.d.ts +1 -15
- package/packages/agent/src/actions/lifeops-extraction-config.d.ts.map +1 -1
- package/packages/agent/src/actions/lifeops-extraction-config.js +1 -25
- package/packages/agent/src/actions/lifeops-google-helpers.d.ts +1 -61
- package/packages/agent/src/actions/lifeops-google-helpers.d.ts.map +1 -1
- package/packages/agent/src/actions/lifeops-google-helpers.js +1 -607
- package/packages/agent/src/actions/list-ejected.d.ts +3 -0
- package/packages/agent/src/actions/list-ejected.d.ts.map +1 -0
- package/packages/agent/src/actions/list-ejected.js +35 -0
- package/packages/agent/src/actions/log-level.d.ts +3 -0
- package/packages/agent/src/actions/log-level.d.ts.map +1 -0
- package/packages/agent/src/actions/log-level.js +125 -0
- package/packages/agent/src/actions/manage-tasks.d.ts.map +1 -1
- package/packages/agent/src/actions/manage-tasks.js +51 -15
- package/packages/agent/src/actions/media.d.ts +21 -0
- package/packages/agent/src/actions/media.d.ts.map +1 -0
- package/packages/agent/src/actions/media.js +384 -0
- package/packages/agent/src/actions/read-messages.d.ts +14 -0
- package/packages/agent/src/actions/read-messages.d.ts.map +1 -0
- package/packages/agent/src/actions/read-messages.js +228 -0
- package/packages/agent/src/actions/reinject-plugin.d.ts +3 -0
- package/packages/agent/src/actions/reinject-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/reinject-plugin.js +47 -0
- package/packages/agent/src/actions/send-message.d.ts +0 -7
- package/packages/agent/src/actions/send-message.d.ts.map +1 -1
- package/packages/agent/src/actions/send-message.js +170 -49
- package/packages/agent/src/actions/sync-plugin.d.ts +3 -0
- package/packages/agent/src/actions/sync-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/sync-plugin.js +47 -0
- package/packages/agent/src/actions/timezone-normalization.d.ts +1 -2
- package/packages/agent/src/actions/timezone-normalization.d.ts.map +1 -1
- package/packages/agent/src/actions/timezone-normalization.js +1 -107
- package/packages/agent/src/actions/transfer-token.d.ts +17 -0
- package/packages/agent/src/actions/transfer-token.d.ts.map +1 -0
- package/packages/agent/src/actions/transfer-token.js +470 -0
- package/packages/agent/src/actions/update-owner-profile.d.ts +1 -2
- package/packages/agent/src/actions/update-owner-profile.d.ts.map +1 -1
- package/packages/agent/src/actions/update-owner-profile.js +1 -131
- package/packages/agent/src/actions/wallet-action-shared.d.ts +15 -0
- package/packages/agent/src/actions/wallet-action-shared.d.ts.map +1 -0
- package/packages/agent/src/actions/wallet-action-shared.js +24 -0
- package/packages/agent/src/api/agent-admin-routes.d.ts.map +1 -1
- package/packages/agent/src/api/agent-admin-routes.js +1 -1
- package/packages/agent/src/api/binance-skill-helpers.d.ts.map +1 -1
- package/packages/agent/src/api/binance-skill-helpers.js +8 -3
- package/packages/agent/src/api/chat-routes.d.ts.map +1 -1
- package/packages/agent/src/api/chat-routes.js +20 -5
- package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts +1 -22
- package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts.map +1 -1
- package/packages/agent/src/api/coding-agents-auth-sanitize.js +1 -39
- package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts +1 -28
- package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts.map +1 -1
- package/packages/agent/src/api/coding-agents-preflight-normalize.js +1 -45
- package/packages/agent/src/api/coordinator-types.d.ts +1 -46
- package/packages/agent/src/api/coordinator-types.d.ts.map +1 -1
- package/packages/agent/src/api/coordinator-types.js +1 -1
- package/packages/agent/src/api/coordinator-wiring.d.ts +1 -45
- package/packages/agent/src/api/coordinator-wiring.d.ts.map +1 -1
- package/packages/agent/src/api/coordinator-wiring.js +1 -108
- package/packages/agent/src/api/index.d.ts +1 -1
- package/packages/agent/src/api/index.d.ts.map +1 -1
- package/packages/agent/src/api/index.js +1 -1
- package/packages/agent/src/api/lifeops-browser-packaging.d.ts +1 -15
- package/packages/agent/src/api/lifeops-browser-packaging.d.ts.map +1 -1
- package/packages/agent/src/api/lifeops-browser-packaging.js +1 -305
- package/packages/agent/src/api/lifeops-routes.d.ts +1 -19
- package/packages/agent/src/api/lifeops-routes.d.ts.map +1 -1
- package/packages/agent/src/api/lifeops-routes.js +1 -1173
- package/packages/agent/src/api/server.d.ts.map +1 -1
- package/packages/agent/src/api/server.js +6 -6
- package/packages/agent/src/api/task-agent-message-routing.d.ts +1 -9
- package/packages/agent/src/api/task-agent-message-routing.d.ts.map +1 -1
- package/packages/agent/src/api/task-agent-message-routing.js +1 -62
- package/packages/agent/src/api/website-blocker-routes.d.ts +1 -6
- package/packages/agent/src/api/website-blocker-routes.d.ts.map +1 -1
- package/packages/agent/src/api/website-blocker-routes.js +1 -174
- package/packages/agent/src/config/types.agent-defaults.d.ts +1 -1
- package/packages/agent/src/config/types.agent-defaults.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-eval-client.d.ts +1 -38
- package/packages/agent/src/evals/coordinator-eval-client.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-eval-client.js +1 -138
- package/packages/agent/src/evals/coordinator-live-runner.d.ts +1 -56
- package/packages/agent/src/evals/coordinator-live-runner.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-live-runner.js +1 -546
- package/packages/agent/src/evals/coordinator-preflight.d.ts +1 -31
- package/packages/agent/src/evals/coordinator-preflight.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-preflight.js +1 -296
- package/packages/agent/src/evals/coordinator-scenarios.d.ts +1 -23
- package/packages/agent/src/evals/coordinator-scenarios.d.ts.map +1 -1
- package/packages/agent/src/evals/coordinator-scenarios.js +1 -1141
- package/packages/agent/src/lifeops/app-state.d.ts +1 -10
- package/packages/agent/src/lifeops/app-state.d.ts.map +1 -1
- package/packages/agent/src/lifeops/app-state.js +1 -32
- package/packages/agent/src/lifeops/apple-reminders.d.ts +1 -57
- package/packages/agent/src/lifeops/apple-reminders.d.ts.map +1 -1
- package/packages/agent/src/lifeops/apple-reminders.js +1 -325
- package/packages/agent/src/lifeops/defaults.d.ts +1 -23
- package/packages/agent/src/lifeops/defaults.d.ts.map +1 -1
- package/packages/agent/src/lifeops/defaults.js +1 -205
- package/packages/agent/src/lifeops/engine.d.ts +1 -7
- package/packages/agent/src/lifeops/engine.d.ts.map +1 -1
- package/packages/agent/src/lifeops/engine.js +1 -389
- package/packages/agent/src/lifeops/goal-grounding.d.ts +1 -53
- package/packages/agent/src/lifeops/goal-grounding.d.ts.map +1 -1
- package/packages/agent/src/lifeops/goal-grounding.js +1 -147
- package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts +1 -11
- package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts.map +1 -1
- package/packages/agent/src/lifeops/goal-semantic-evaluator.js +1 -154
- package/packages/agent/src/lifeops/google-api-error.d.ts +1 -6
- package/packages/agent/src/lifeops/google-api-error.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-api-error.js +1 -35
- package/packages/agent/src/lifeops/google-calendar.d.ts +1 -52
- package/packages/agent/src/lifeops/google-calendar.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-calendar.js +1 -268
- package/packages/agent/src/lifeops/google-connector-gateway.d.ts +1 -18
- package/packages/agent/src/lifeops/google-connector-gateway.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-connector-gateway.js +1 -65
- package/packages/agent/src/lifeops/google-fetch.d.ts +1 -10
- package/packages/agent/src/lifeops/google-fetch.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-fetch.js +1 -85
- package/packages/agent/src/lifeops/google-gmail.d.ts +1 -53
- package/packages/agent/src/lifeops/google-gmail.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-gmail.js +1 -471
- package/packages/agent/src/lifeops/google-managed-client.d.ts +1 -126
- package/packages/agent/src/lifeops/google-managed-client.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-managed-client.js +1 -294
- package/packages/agent/src/lifeops/google-oauth.d.ts +1 -60
- package/packages/agent/src/lifeops/google-oauth.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-oauth.js +1 -494
- package/packages/agent/src/lifeops/google-scopes.d.ts +1 -12
- package/packages/agent/src/lifeops/google-scopes.d.ts.map +1 -1
- package/packages/agent/src/lifeops/google-scopes.js +1 -96
- package/packages/agent/src/lifeops/index.d.ts +1 -2
- package/packages/agent/src/lifeops/index.d.ts.map +1 -1
- package/packages/agent/src/lifeops/index.js +1 -2
- package/packages/agent/src/lifeops/owner-profile.d.ts +1 -14
- package/packages/agent/src/lifeops/owner-profile.d.ts.map +1 -1
- package/packages/agent/src/lifeops/owner-profile.js +1 -194
- package/packages/agent/src/lifeops/repository.d.ts +1 -208
- package/packages/agent/src/lifeops/repository.d.ts.map +1 -1
- package/packages/agent/src/lifeops/repository.js +1 -3187
- package/packages/agent/src/lifeops/runtime.d.ts +1 -13
- package/packages/agent/src/lifeops/runtime.d.ts.map +1 -1
- package/packages/agent/src/lifeops/runtime.js +1 -120
- package/packages/agent/src/lifeops/screen-context.d.ts +1 -51
- package/packages/agent/src/lifeops/screen-context.d.ts.map +1 -1
- package/packages/agent/src/lifeops/screen-context.js +1 -332
- package/packages/agent/src/lifeops/seed-routines.d.ts +1 -19
- package/packages/agent/src/lifeops/seed-routines.d.ts.map +1 -1
- package/packages/agent/src/lifeops/seed-routines.js +1 -111
- package/packages/agent/src/lifeops/service.d.ts +1 -274
- package/packages/agent/src/lifeops/service.d.ts.map +1 -1
- package/packages/agent/src/lifeops/service.js +1 -9260
- package/packages/agent/src/lifeops/sql.d.ts +1 -30
- package/packages/agent/src/lifeops/sql.d.ts.map +1 -1
- package/packages/agent/src/lifeops/sql.js +1 -247
- package/packages/agent/src/lifeops/time.d.ts +1 -16
- package/packages/agent/src/lifeops/time.d.ts.map +1 -1
- package/packages/agent/src/lifeops/time.js +1 -132
- package/packages/agent/src/lifeops/twilio.d.ts +1 -24
- package/packages/agent/src/lifeops/twilio.d.ts.map +1 -1
- package/packages/agent/src/lifeops/twilio.js +1 -157
- package/packages/agent/src/lifeops/x-poster.d.ts +1 -18
- package/packages/agent/src/lifeops/x-poster.d.ts.map +1 -1
- package/packages/agent/src/lifeops/x-poster.js +1 -148
- package/packages/agent/src/providers/inbox-triage.d.ts +1 -2
- package/packages/agent/src/providers/inbox-triage.d.ts.map +1 -1
- package/packages/agent/src/providers/inbox-triage.js +1 -89
- package/packages/agent/src/providers/index.d.ts +4 -1
- package/packages/agent/src/providers/index.d.ts.map +1 -1
- package/packages/agent/src/providers/index.js +4 -1
- package/packages/agent/src/providers/lifeops.d.ts +1 -2
- package/packages/agent/src/providers/lifeops.d.ts.map +1 -1
- package/packages/agent/src/providers/lifeops.js +1 -157
- package/packages/agent/src/providers/local-models.d.ts +118 -0
- package/packages/agent/src/providers/local-models.d.ts.map +1 -0
- package/packages/agent/src/providers/local-models.js +427 -0
- package/packages/agent/src/providers/media-provider.d.ts +192 -0
- package/packages/agent/src/providers/media-provider.d.ts.map +1 -0
- package/packages/agent/src/providers/media-provider.js +1088 -0
- package/packages/agent/src/providers/self-status.d.ts +4 -0
- package/packages/agent/src/providers/self-status.d.ts.map +1 -0
- package/packages/agent/src/providers/self-status.js +12 -0
- package/packages/agent/src/providers/tasks.d.ts.map +1 -1
- package/packages/agent/src/providers/tasks.js +7 -7
- package/packages/agent/src/runtime/core-plugins.js +1 -1
- package/packages/agent/src/runtime/eliza-plugin.d.ts.map +1 -1
- package/packages/agent/src/runtime/eliza-plugin.js +1 -7
- package/packages/agent/src/runtime/eliza.js +2 -2
- package/packages/agent/src/runtime/plugin-collector.js +3 -3
- package/packages/agent/src/runtime/plugin-lifecycle.d.ts.map +1 -1
- package/packages/agent/src/runtime/plugin-lifecycle.js +3 -13
- package/packages/agent/src/runtime/trajectory-internals.d.ts.map +1 -1
- package/packages/agent/src/runtime/trajectory-internals.js +1 -3
- package/packages/agent/src/services/built-in-app-routes/hyperscape.d.ts.map +1 -1
- package/packages/agent/src/services/coding-task-executor.d.ts +3 -3
- package/packages/agent/src/services/coding-task-executor.js +3 -3
- package/packages/shared/src/awareness/index.d.ts +2 -0
- package/packages/shared/src/awareness/index.d.ts.map +1 -0
- package/packages/shared/src/awareness/index.js +1 -0
- package/packages/shared/src/awareness/registry.d.ts +27 -0
- package/packages/shared/src/awareness/registry.d.ts.map +1 -0
- package/packages/shared/src/awareness/registry.js +161 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts +24 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts.map +1 -1
- package/packages/shared/src/i18n/generated/validation-keyword-data.js +24 -0
- package/packages/shared/src/runtime-env.d.ts.map +1 -1
- package/packages/shared/src/runtime-env.js +5 -1
- package/packages/typescript/src/generated/action-docs.d.ts +135 -0
- package/packages/typescript/src/generated/action-docs.d.ts.map +1 -1
- package/packages/typescript/src/generated/action-docs.js +237 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts +24 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts.map +1 -1
- package/packages/typescript/src/i18n/generated/validation-keyword-data.js +24 -0
- package/packages/typescript/src/index.node.d.ts +2 -2
- package/packages/typescript/src/index.node.d.ts.map +1 -1
- package/packages/typescript/src/index.node.js +4 -3
- package/packages/typescript/src/plugin-lifecycle.d.ts.map +1 -1
- package/packages/typescript/src/plugin-lifecycle.js +42 -3
- package/packages/typescript/src/services/message.d.ts.map +1 -1
- package/packages/typescript/src/services/message.js +32 -0
- package/apps/app-training/src/core/cli.d.ts +0 -11
- package/apps/app-training/src/core/cli.d.ts.map +0 -1
- package/apps/app-training/src/core/cli.js +0 -302
- package/apps/app-training/src/core/context-audit.d.ts +0 -51
- package/apps/app-training/src/core/context-audit.d.ts.map +0 -1
- package/apps/app-training/src/core/context-audit.js +0 -141
- package/apps/app-training/src/core/context-catalog.d.ts +0 -47
- package/apps/app-training/src/core/context-catalog.d.ts.map +0 -1
- package/apps/app-training/src/core/context-catalog.js +0 -259
- package/apps/app-training/src/core/context-types.d.ts +0 -3
- package/apps/app-training/src/core/context-types.d.ts.map +0 -1
- package/apps/app-training/src/core/context-types.js +0 -11
- package/apps/app-training/src/core/dataset-generator.d.ts +0 -135
- package/apps/app-training/src/core/dataset-generator.d.ts.map +0 -1
- package/apps/app-training/src/core/dataset-generator.js +0 -703
- package/apps/app-training/src/core/replay-validator.d.ts +0 -96
- package/apps/app-training/src/core/replay-validator.d.ts.map +0 -1
- package/apps/app-training/src/core/replay-validator.js +0 -265
- package/apps/app-training/src/core/roleplay-executor.d.ts +0 -123
- package/apps/app-training/src/core/roleplay-executor.d.ts.map +0 -1
- package/apps/app-training/src/core/roleplay-executor.js +0 -645
- package/apps/app-training/src/core/roleplay-trajectories.d.ts +0 -54
- package/apps/app-training/src/core/roleplay-trajectories.d.ts.map +0 -1
- package/apps/app-training/src/core/roleplay-trajectories.js +0 -73
- package/apps/app-training/src/core/scenario-blueprints.d.ts +0 -62
- package/apps/app-training/src/core/scenario-blueprints.d.ts.map +0 -1
- package/apps/app-training/src/core/scenario-blueprints.js +0 -790
- package/apps/app-training/src/core/trajectory-task-datasets.d.ts +0 -38
- package/apps/app-training/src/core/trajectory-task-datasets.d.ts.map +0 -1
- package/apps/app-training/src/core/trajectory-task-datasets.js +0 -281
- package/apps/app-training/src/core/vertex-tuning.d.ts +0 -139
- package/apps/app-training/src/core/vertex-tuning.d.ts.map +0 -1
- package/apps/app-training/src/core/vertex-tuning.js +0 -234
- package/packages/agent/src/inbox/channel-deep-links.d.ts.map +0 -1
- package/packages/agent/src/inbox/config.d.ts.map +0 -1
- package/packages/agent/src/inbox/message-fetcher.d.ts.map +0 -1
- package/packages/agent/src/inbox/reflection.d.ts.map +0 -1
- package/packages/agent/src/inbox/repository.d.ts.map +0 -1
- package/packages/agent/src/inbox/triage-classifier.d.ts.map +0 -1
- package/packages/agent/src/inbox/types.d.ts.map +0 -1
- package/packages/agent/src/training/cli.d.ts +0 -2
- package/packages/agent/src/training/cli.d.ts.map +0 -1
- package/packages/agent/src/training/cli.js +0 -2
- package/packages/agent/src/training/context-audit.d.ts +0 -2
- package/packages/agent/src/training/context-audit.d.ts.map +0 -1
- package/packages/agent/src/training/context-audit.js +0 -2
- package/packages/agent/src/training/context-catalog.d.ts +0 -2
- package/packages/agent/src/training/context-catalog.d.ts.map +0 -1
- package/packages/agent/src/training/context-catalog.js +0 -2
- package/packages/agent/src/training/context-types.d.ts +0 -2
- package/packages/agent/src/training/context-types.d.ts.map +0 -1
- package/packages/agent/src/training/context-types.js +0 -2
- package/packages/agent/src/training/dataset-generator.d.ts +0 -2
- package/packages/agent/src/training/dataset-generator.d.ts.map +0 -1
- package/packages/agent/src/training/dataset-generator.js +0 -2
- package/packages/agent/src/training/replay-validator.d.ts +0 -2
- package/packages/agent/src/training/replay-validator.d.ts.map +0 -1
- package/packages/agent/src/training/replay-validator.js +0 -2
- package/packages/agent/src/training/roleplay-executor.d.ts +0 -2
- package/packages/agent/src/training/roleplay-executor.d.ts.map +0 -1
- package/packages/agent/src/training/roleplay-executor.js +0 -2
- package/packages/agent/src/training/roleplay-trajectories.d.ts +0 -2
- package/packages/agent/src/training/roleplay-trajectories.d.ts.map +0 -1
- package/packages/agent/src/training/roleplay-trajectories.js +0 -2
- package/packages/agent/src/training/scenario-blueprints.d.ts +0 -2
- package/packages/agent/src/training/scenario-blueprints.d.ts.map +0 -1
- package/packages/agent/src/training/scenario-blueprints.js +0 -2
- package/packages/agent/src/training/trajectory-task-datasets.d.ts +0 -2
- package/packages/agent/src/training/trajectory-task-datasets.d.ts.map +0 -1
- package/packages/agent/src/training/trajectory-task-datasets.js +0 -2
- package/packages/agent/src/training/vertex-tuning.d.ts +0 -2
- package/packages/agent/src/training/vertex-tuning.d.ts.map +0 -1
- package/packages/agent/src/training/vertex-tuning.js +0 -2
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.d.ts +0 -41
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.js +0 -443
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.d.ts +0 -34
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.js +0 -171
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.js +0 -55
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.js +0 -214
- package/packages/typescript/src/features/orchestrator/actions/list-agents.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/actions/list-agents.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/list-agents.js +0 -174
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.js +0 -428
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.js +0 -189
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.js +0 -265
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.js +0 -356
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.js +0 -270
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.d.ts +0 -12
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.js +0 -192
- package/packages/typescript/src/features/orchestrator/actions/task-control.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-control.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-control.js +0 -217
- package/packages/typescript/src/features/orchestrator/actions/task-history.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-history.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-history.js +0 -323
- package/packages/typescript/src/features/orchestrator/actions/task-share.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/actions/task-share.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-share.js +0 -168
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.d.ts +0 -11
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.js +0 -68
- package/packages/typescript/src/features/orchestrator/api/agent-routes.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/api/agent-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/agent-routes.js +0 -654
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.js +0 -403
- package/packages/typescript/src/features/orchestrator/api/hook-routes.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/api/hook-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/hook-routes.js +0 -164
- package/packages/typescript/src/features/orchestrator/api/issue-routes.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/api/issue-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/issue-routes.js +0 -132
- package/packages/typescript/src/features/orchestrator/api/routes.d.ts +0 -37
- package/packages/typescript/src/features/orchestrator/api/routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/routes.js +0 -96
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.js +0 -149
- package/packages/typescript/src/features/orchestrator/base-plugin.d.ts +0 -19
- package/packages/typescript/src/features/orchestrator/base-plugin.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/base-plugin.js +0 -75
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.d.ts +0 -101
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.js +0 -310
- package/packages/typescript/src/features/orchestrator/index.d.ts +0 -33
- package/packages/typescript/src/features/orchestrator/index.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/index.js +0 -30
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.d.ts +0 -15
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.js +0 -1449
- package/packages/typescript/src/features/orchestrator/providers/action-examples.d.ts +0 -14
- package/packages/typescript/src/features/orchestrator/providers/action-examples.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/providers/action-examples.js +0 -151
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.js +0 -142
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.d.ts +0 -6
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.js +0 -91
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.d.ts +0 -30
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.js +0 -54
- package/packages/typescript/src/features/orchestrator/services/agent-selection.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/agent-selection.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/agent-selection.js +0 -70
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.d.ts +0 -61
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.js +0 -252
- package/packages/typescript/src/features/orchestrator/services/config-env.d.ts +0 -13
- package/packages/typescript/src/features/orchestrator/services/config-env.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/config-env.js +0 -37
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts +0 -50
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.js +0 -184
- package/packages/typescript/src/features/orchestrator/services/debug-capture.d.ts +0 -38
- package/packages/typescript/src/features/orchestrator/services/debug-capture.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/debug-capture.js +0 -113
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.d.ts +0 -30
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.js +0 -146
- package/packages/typescript/src/features/orchestrator/services/pty-init.d.ts +0 -54
- package/packages/typescript/src/features/orchestrator/services/pty-init.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-init.js +0 -315
- package/packages/typescript/src/features/orchestrator/services/pty-service.d.ts +0 -175
- package/packages/typescript/src/features/orchestrator/services/pty-service.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-service.js +0 -1469
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.d.ts +0 -49
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.js +0 -180
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.js +0 -280
- package/packages/typescript/src/features/orchestrator/services/pty-types.d.ts +0 -80
- package/packages/typescript/src/features/orchestrator/services/pty-types.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/pty-types.js +0 -51
- package/packages/typescript/src/features/orchestrator/services/repo-input.d.ts +0 -16
- package/packages/typescript/src/features/orchestrator/services/repo-input.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/repo-input.js +0 -88
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.d.ts +0 -69
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.js +0 -446
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.d.ts +0 -97
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.js +0 -342
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.d.ts +0 -421
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.js +0 -2356
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.d.ts +0 -52
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.js +0 -1538
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.d.ts +0 -49
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.js +0 -171
- package/packages/typescript/src/features/orchestrator/services/swarm-history.d.ts +0 -27
- package/packages/typescript/src/features/orchestrator/services/swarm-history.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-history.js +0 -148
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.d.ts +0 -22
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.js +0 -265
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.d.ts +0 -8
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.js +0 -114
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.d.ts +0 -68
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.js +0 -559
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.d.ts +0 -82
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.js +0 -738
- package/packages/typescript/src/features/orchestrator/services/task-kind.d.ts +0 -3
- package/packages/typescript/src/features/orchestrator/services/task-kind.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-kind.js +0 -40
- package/packages/typescript/src/features/orchestrator/services/task-policy.d.ts +0 -17
- package/packages/typescript/src/features/orchestrator/services/task-policy.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-policy.js +0 -226
- package/packages/typescript/src/features/orchestrator/services/task-registry.d.ts +0 -550
- package/packages/typescript/src/features/orchestrator/services/task-registry.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-registry.js +0 -2182
- package/packages/typescript/src/features/orchestrator/services/task-share.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/services/task-share.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-share.js +0 -159
- package/packages/typescript/src/features/orchestrator/services/task-validation.d.ts +0 -69
- package/packages/typescript/src/features/orchestrator/services/task-validation.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-validation.js +0 -587
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.d.ts +0 -5
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.js +0 -372
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.d.ts +0 -73
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.js +0 -64
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.d.ts +0 -53
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.js +0 -260
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.d.ts +0 -28
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.js +0 -105
- package/packages/typescript/src/features/orchestrator/services/workspace-github.d.ts +0 -58
- package/packages/typescript/src/features/orchestrator/services/workspace-github.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-github.js +0 -139
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.d.ts +0 -18
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.js +0 -86
- package/packages/typescript/src/features/orchestrator/services/workspace-service.d.ts +0 -118
- package/packages/typescript/src/features/orchestrator/services/workspace-service.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-service.js +0 -533
- package/packages/typescript/src/features/orchestrator/services/workspace-types.d.ts +0 -81
- package/packages/typescript/src/features/orchestrator/services/workspace-types.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/services/workspace-types.js +0 -8
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.d.ts +0 -38
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.d.ts.map +0 -1
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.js +0 -293
- /package/{packages/agent → apps/app-lifeops}/src/inbox/channel-deep-links.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/channel-deep-links.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/config.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/message-fetcher.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/message-fetcher.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/reflection.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/reflection.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/repository.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/repository.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/triage-classifier.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/triage-classifier.js +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/types.d.ts +0 -0
- /package/{packages/agent → apps/app-lifeops}/src/inbox/types.js +0 -0
|
@@ -1,127 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { SyncedGoogleCalendarEvent } from "./google-calendar.js";
|
|
3
|
-
import type { SyncedGoogleGmailMessageSummary } from "./google-gmail.js";
|
|
4
|
-
export declare class ManagedGoogleClientError extends Error {
|
|
5
|
-
readonly status: number;
|
|
6
|
-
constructor(status: number, message: string);
|
|
7
|
-
}
|
|
8
|
-
export interface ResolvedManagedGoogleCloudConfig {
|
|
9
|
-
configured: boolean;
|
|
10
|
-
apiKey: string | null;
|
|
11
|
-
apiBaseUrl: string;
|
|
12
|
-
siteUrl: string;
|
|
13
|
-
}
|
|
14
|
-
export interface ManagedGoogleConnectorStatusResponse {
|
|
15
|
-
provider: "google";
|
|
16
|
-
side: LifeOpsConnectorSide;
|
|
17
|
-
mode: "cloud_managed";
|
|
18
|
-
configured: boolean;
|
|
19
|
-
connected: boolean;
|
|
20
|
-
reason: LifeOpsGoogleConnectorReason;
|
|
21
|
-
identity: Record<string, unknown> | null;
|
|
22
|
-
grantedCapabilities: LifeOpsGoogleCapability[];
|
|
23
|
-
grantedScopes: string[];
|
|
24
|
-
expiresAt: string | null;
|
|
25
|
-
hasRefreshToken: boolean;
|
|
26
|
-
connectionId: string | null;
|
|
27
|
-
linkedAt: string | null;
|
|
28
|
-
lastUsedAt: string | null;
|
|
29
|
-
}
|
|
30
|
-
export interface ManagedGoogleCalendarFeedResponse {
|
|
31
|
-
calendarId: string;
|
|
32
|
-
events: SyncedGoogleCalendarEvent[];
|
|
33
|
-
syncedAt: string;
|
|
34
|
-
}
|
|
35
|
-
export interface ManagedGoogleCalendarEventResponse {
|
|
36
|
-
event: SyncedGoogleCalendarEvent;
|
|
37
|
-
}
|
|
38
|
-
export interface ManagedGoogleCalendarEventUpdateRequest {
|
|
39
|
-
side: LifeOpsConnectorSide;
|
|
40
|
-
calendarId?: string | null;
|
|
41
|
-
eventId: string;
|
|
42
|
-
title?: string;
|
|
43
|
-
description?: string;
|
|
44
|
-
location?: string;
|
|
45
|
-
startAt?: string;
|
|
46
|
-
endAt?: string;
|
|
47
|
-
timeZone?: string;
|
|
48
|
-
attendees?: CreateLifeOpsCalendarEventAttendee[] | null;
|
|
49
|
-
}
|
|
50
|
-
export interface ManagedGoogleGmailTriageResponse {
|
|
51
|
-
messages: SyncedGoogleGmailMessageSummary[];
|
|
52
|
-
syncedAt: string;
|
|
53
|
-
}
|
|
54
|
-
export interface ManagedGoogleGmailSearchResponse {
|
|
55
|
-
messages: SyncedGoogleGmailMessageSummary[];
|
|
56
|
-
syncedAt: string;
|
|
57
|
-
}
|
|
58
|
-
export interface ManagedGoogleGmailReadResponse {
|
|
59
|
-
message: SyncedGoogleGmailMessageSummary;
|
|
60
|
-
bodyText: string;
|
|
61
|
-
}
|
|
62
|
-
export interface ManagedGoogleReplySendRequest {
|
|
63
|
-
side?: LifeOpsConnectorSide;
|
|
64
|
-
to: string[];
|
|
65
|
-
cc?: string[];
|
|
66
|
-
subject: string;
|
|
67
|
-
bodyText: string;
|
|
68
|
-
inReplyTo?: string | null;
|
|
69
|
-
references?: string | null;
|
|
70
|
-
}
|
|
71
|
-
export interface ManagedGoogleMessageSendRequest extends Omit<SendLifeOpsGmailMessageRequest, "mode" | "confirmSend"> {
|
|
72
|
-
side?: LifeOpsConnectorSide;
|
|
73
|
-
}
|
|
74
|
-
export declare function resolveManagedGoogleCloudConfig(): ResolvedManagedGoogleCloudConfig;
|
|
75
|
-
export declare class GoogleManagedClient {
|
|
76
|
-
private readonly configSource;
|
|
77
|
-
constructor(configSource?: ResolvedManagedGoogleCloudConfig | (() => ResolvedManagedGoogleCloudConfig));
|
|
78
|
-
private getConfig;
|
|
79
|
-
get configured(): boolean;
|
|
80
|
-
private requireConfig;
|
|
81
|
-
private request;
|
|
82
|
-
getStatus(side: LifeOpsConnectorSide): Promise<ManagedGoogleConnectorStatusResponse>;
|
|
83
|
-
startConnector(args: {
|
|
84
|
-
side: LifeOpsConnectorSide;
|
|
85
|
-
capabilities?: LifeOpsGoogleCapability[];
|
|
86
|
-
redirectUrl?: string;
|
|
87
|
-
}): Promise<StartLifeOpsGoogleConnectorResponse>;
|
|
88
|
-
disconnectConnector(connectionId?: string | null, side?: LifeOpsConnectorSide): Promise<void>;
|
|
89
|
-
getCalendarFeed(args: {
|
|
90
|
-
side: LifeOpsConnectorSide;
|
|
91
|
-
calendarId: string;
|
|
92
|
-
timeMin: string;
|
|
93
|
-
timeMax: string;
|
|
94
|
-
timeZone: string;
|
|
95
|
-
}): Promise<ManagedGoogleCalendarFeedResponse>;
|
|
96
|
-
createCalendarEvent(request: Omit<CreateLifeOpsCalendarEventRequest, "mode"> & {
|
|
97
|
-
side: LifeOpsConnectorSide;
|
|
98
|
-
}): Promise<ManagedGoogleCalendarEventResponse>;
|
|
99
|
-
updateCalendarEvent(request: ManagedGoogleCalendarEventUpdateRequest): Promise<ManagedGoogleCalendarEventResponse>;
|
|
100
|
-
deleteCalendarEvent(request: {
|
|
101
|
-
side: LifeOpsConnectorSide;
|
|
102
|
-
calendarId?: string | null;
|
|
103
|
-
eventId: string;
|
|
104
|
-
}): Promise<{
|
|
105
|
-
ok: true;
|
|
106
|
-
}>;
|
|
107
|
-
getGmailTriage(args: {
|
|
108
|
-
side: LifeOpsConnectorSide;
|
|
109
|
-
maxResults: number;
|
|
110
|
-
}): Promise<ManagedGoogleGmailTriageResponse>;
|
|
111
|
-
getGmailSearch(args: {
|
|
112
|
-
side: LifeOpsConnectorSide;
|
|
113
|
-
query: string;
|
|
114
|
-
maxResults: number;
|
|
115
|
-
}): Promise<ManagedGoogleGmailSearchResponse>;
|
|
116
|
-
readGmailMessage(args: {
|
|
117
|
-
side: LifeOpsConnectorSide;
|
|
118
|
-
messageId: string;
|
|
119
|
-
}): Promise<ManagedGoogleGmailReadResponse>;
|
|
120
|
-
sendGmailReply(request: ManagedGoogleReplySendRequest): Promise<{
|
|
121
|
-
ok: true;
|
|
122
|
-
}>;
|
|
123
|
-
sendGmailMessage(request: ManagedGoogleMessageSendRequest): Promise<{
|
|
124
|
-
ok: true;
|
|
125
|
-
}>;
|
|
126
|
-
}
|
|
1
|
+
export * from "@elizaos/app-lifeops/lifeops/google-managed-client";
|
|
127
2
|
//# sourceMappingURL=google-managed-client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-managed-client.d.ts","sourceRoot":"","sources":["../../../../../src/lifeops/google-managed-client.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"google-managed-client.d.ts","sourceRoot":"","sources":["../../../../../src/lifeops/google-managed-client.ts"],"names":[],"mappings":"AAAA,cAAc,oDAAoD,CAAC"}
|
|
@@ -1,294 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { loadElizaConfig } from "../config/config.js";
|
|
3
|
-
import { formatInstantAsRfc3339InTimeZone } from "./time.js";
|
|
4
|
-
const MANAGED_GOOGLE_REQUEST_TIMEOUT_MS = 20_000;
|
|
5
|
-
export class ManagedGoogleClientError extends Error {
|
|
6
|
-
status;
|
|
7
|
-
constructor(status, message) {
|
|
8
|
-
super(message);
|
|
9
|
-
this.status = status;
|
|
10
|
-
this.name = "ManagedGoogleClientError";
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
const DEFAULT_MANAGED_GOOGLE_CAPABILITIES = [
|
|
14
|
-
"google.basic_identity",
|
|
15
|
-
"google.calendar.read",
|
|
16
|
-
"google.gmail.triage",
|
|
17
|
-
"google.gmail.send",
|
|
18
|
-
];
|
|
19
|
-
function normalizeManagedGoogleCapabilities(capabilities) {
|
|
20
|
-
const source = capabilities ?? DEFAULT_MANAGED_GOOGLE_CAPABILITIES;
|
|
21
|
-
const normalized = [...new Set(source)];
|
|
22
|
-
return normalized.includes("google.basic_identity")
|
|
23
|
-
? normalized
|
|
24
|
-
: ["google.basic_identity", ...normalized];
|
|
25
|
-
}
|
|
26
|
-
function hasExplicitDateTimeOffset(value) {
|
|
27
|
-
return /(?:[zZ]|[+-]\d{2}:\d{2})$/.test(value);
|
|
28
|
-
}
|
|
29
|
-
function normalizeManagedCalendarDateTime(dateTime, timeZone) {
|
|
30
|
-
if (!timeZone || !hasExplicitDateTimeOffset(dateTime)) {
|
|
31
|
-
return dateTime;
|
|
32
|
-
}
|
|
33
|
-
return formatInstantAsRfc3339InTimeZone(dateTime, timeZone);
|
|
34
|
-
}
|
|
35
|
-
function managedGoogleCapabilitiesToScopes(capabilities) {
|
|
36
|
-
const scopes = new Set([
|
|
37
|
-
"https://www.googleapis.com/auth/userinfo.email",
|
|
38
|
-
"https://www.googleapis.com/auth/userinfo.profile",
|
|
39
|
-
]);
|
|
40
|
-
for (const capability of normalizeManagedGoogleCapabilities(capabilities)) {
|
|
41
|
-
if (capability === "google.calendar.read") {
|
|
42
|
-
scopes.add("https://www.googleapis.com/auth/calendar.readonly");
|
|
43
|
-
}
|
|
44
|
-
if (capability === "google.calendar.write") {
|
|
45
|
-
scopes.add("https://www.googleapis.com/auth/calendar.events");
|
|
46
|
-
}
|
|
47
|
-
if (capability === "google.gmail.triage") {
|
|
48
|
-
scopes.add("https://www.googleapis.com/auth/gmail.readonly");
|
|
49
|
-
}
|
|
50
|
-
if (capability === "google.gmail.send") {
|
|
51
|
-
scopes.add("https://www.googleapis.com/auth/gmail.send");
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return [...scopes];
|
|
55
|
-
}
|
|
56
|
-
function normalizeApiKey(value) {
|
|
57
|
-
const trimmed = value?.trim();
|
|
58
|
-
if (!trimmed || trimmed.length === 0) {
|
|
59
|
-
return null;
|
|
60
|
-
}
|
|
61
|
-
return trimmed.toUpperCase() === "[REDACTED]" ? null : trimmed;
|
|
62
|
-
}
|
|
63
|
-
function readConfigCloudSettings() {
|
|
64
|
-
try {
|
|
65
|
-
const config = loadElizaConfig();
|
|
66
|
-
const cloud = config.cloud && typeof config.cloud === "object"
|
|
67
|
-
? config.cloud
|
|
68
|
-
: null;
|
|
69
|
-
return {
|
|
70
|
-
apiKey: cloud && typeof cloud.apiKey === "string"
|
|
71
|
-
? normalizeApiKey(cloud.apiKey)
|
|
72
|
-
: null,
|
|
73
|
-
baseUrl: cloud &&
|
|
74
|
-
typeof cloud.baseUrl === "string" &&
|
|
75
|
-
cloud.baseUrl.trim().length
|
|
76
|
-
? cloud.baseUrl.trim()
|
|
77
|
-
: null,
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
catch {
|
|
81
|
-
return {
|
|
82
|
-
apiKey: null,
|
|
83
|
-
baseUrl: null,
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function buildTimeoutSignal(timeoutMs) {
|
|
88
|
-
return AbortSignal.timeout(timeoutMs);
|
|
89
|
-
}
|
|
90
|
-
async function readJsonResponse(response) {
|
|
91
|
-
if (!response.ok) {
|
|
92
|
-
let detail = `${response.status} ${response.statusText}`.trim();
|
|
93
|
-
const text = await response.text();
|
|
94
|
-
const trimmed = text.trim();
|
|
95
|
-
const contentType = response.headers.get("content-type")?.toLowerCase() ?? "";
|
|
96
|
-
if (trimmed.length > 0) {
|
|
97
|
-
try {
|
|
98
|
-
if (contentType.includes("text/html") && !/^[{[]/.test(trimmed)) {
|
|
99
|
-
throw new Error("html response");
|
|
100
|
-
}
|
|
101
|
-
const parsed = JSON.parse(trimmed);
|
|
102
|
-
detail = parsed.message ?? parsed.error ?? trimmed;
|
|
103
|
-
}
|
|
104
|
-
catch {
|
|
105
|
-
if (!contentType.includes("text/html")) {
|
|
106
|
-
detail = trimmed.slice(0, 200);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
throw new ManagedGoogleClientError(response.status, detail);
|
|
111
|
-
}
|
|
112
|
-
return (await response.json());
|
|
113
|
-
}
|
|
114
|
-
export function resolveManagedGoogleCloudConfig() {
|
|
115
|
-
const configCloud = readConfigCloudSettings();
|
|
116
|
-
const apiKey = configCloud.apiKey ?? normalizeApiKey(process.env.ELIZAOS_CLOUD_API_KEY);
|
|
117
|
-
const baseUrl = configCloud.baseUrl ?? process.env.ELIZAOS_CLOUD_BASE_URL;
|
|
118
|
-
const siteUrl = normalizeCloudSiteUrl(baseUrl);
|
|
119
|
-
const apiBaseUrl = resolveCloudApiBaseUrl(baseUrl);
|
|
120
|
-
return {
|
|
121
|
-
configured: Boolean(apiKey),
|
|
122
|
-
apiKey,
|
|
123
|
-
apiBaseUrl,
|
|
124
|
-
siteUrl,
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
export class GoogleManagedClient {
|
|
128
|
-
configSource;
|
|
129
|
-
constructor(configSource = resolveManagedGoogleCloudConfig) {
|
|
130
|
-
this.configSource = configSource;
|
|
131
|
-
}
|
|
132
|
-
getConfig() {
|
|
133
|
-
return typeof this.configSource === "function"
|
|
134
|
-
? this.configSource()
|
|
135
|
-
: this.configSource;
|
|
136
|
-
}
|
|
137
|
-
get configured() {
|
|
138
|
-
return this.getConfig().configured;
|
|
139
|
-
}
|
|
140
|
-
requireConfig() {
|
|
141
|
-
const config = this.getConfig();
|
|
142
|
-
if (!config.apiKey) {
|
|
143
|
-
throw new ManagedGoogleClientError(409, "Eliza Cloud is not connected.");
|
|
144
|
-
}
|
|
145
|
-
return {
|
|
146
|
-
...config,
|
|
147
|
-
apiKey: config.apiKey,
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
async request(pathname, init = {}) {
|
|
151
|
-
const config = this.requireConfig();
|
|
152
|
-
const url = new URL(pathname.replace(/^\/+/, ""), `${config.apiBaseUrl.replace(/\/+$/, "")}/`);
|
|
153
|
-
const response = await fetch(url, {
|
|
154
|
-
...init,
|
|
155
|
-
headers: {
|
|
156
|
-
Accept: "application/json",
|
|
157
|
-
"Content-Type": "application/json",
|
|
158
|
-
"X-API-Key": config.apiKey,
|
|
159
|
-
...(init.headers ?? {}),
|
|
160
|
-
},
|
|
161
|
-
signal: init.signal ?? buildTimeoutSignal(MANAGED_GOOGLE_REQUEST_TIMEOUT_MS),
|
|
162
|
-
});
|
|
163
|
-
return readJsonResponse(response);
|
|
164
|
-
}
|
|
165
|
-
async getStatus(side) {
|
|
166
|
-
const query = new URLSearchParams({ side });
|
|
167
|
-
return this.request(`eliza/google/status?${query.toString()}`, {
|
|
168
|
-
method: "GET",
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
async startConnector(args) {
|
|
172
|
-
const redirectUri = args.redirectUrl ??
|
|
173
|
-
new URL("/auth/success?platform=google", `${this.requireConfig().siteUrl.replace(/\/+$/, "")}/`).toString();
|
|
174
|
-
const requestedCapabilities = normalizeManagedGoogleCapabilities(args.capabilities);
|
|
175
|
-
const auth = await this.request("oauth/google/initiate", {
|
|
176
|
-
method: "POST",
|
|
177
|
-
body: JSON.stringify({
|
|
178
|
-
redirectUrl: redirectUri,
|
|
179
|
-
scopes: managedGoogleCapabilitiesToScopes(requestedCapabilities),
|
|
180
|
-
connectionRole: args.side,
|
|
181
|
-
}),
|
|
182
|
-
});
|
|
183
|
-
return {
|
|
184
|
-
provider: "google",
|
|
185
|
-
side: args.side,
|
|
186
|
-
mode: "cloud_managed",
|
|
187
|
-
requestedCapabilities,
|
|
188
|
-
redirectUri,
|
|
189
|
-
authUrl: auth.authUrl,
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
async disconnectConnector(connectionId, side) {
|
|
193
|
-
await this.request("eliza/google/disconnect", {
|
|
194
|
-
method: "POST",
|
|
195
|
-
body: JSON.stringify({
|
|
196
|
-
connectionId: connectionId ?? null,
|
|
197
|
-
side: side ?? "owner",
|
|
198
|
-
}),
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
async getCalendarFeed(args) {
|
|
202
|
-
const query = new URLSearchParams({
|
|
203
|
-
side: args.side,
|
|
204
|
-
calendarId: args.calendarId,
|
|
205
|
-
timeMin: args.timeMin,
|
|
206
|
-
timeMax: args.timeMax,
|
|
207
|
-
timeZone: args.timeZone,
|
|
208
|
-
});
|
|
209
|
-
return this.request(`eliza/google/calendar/feed?${query.toString()}`, {
|
|
210
|
-
method: "GET",
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
async createCalendarEvent(request) {
|
|
214
|
-
const normalizedRequest = {
|
|
215
|
-
...request,
|
|
216
|
-
startAt: normalizeManagedCalendarDateTime(request.startAt ?? "", request.timeZone),
|
|
217
|
-
endAt: normalizeManagedCalendarDateTime(request.endAt ?? "", request.timeZone),
|
|
218
|
-
};
|
|
219
|
-
return this.request("eliza/google/calendar/events", {
|
|
220
|
-
method: "POST",
|
|
221
|
-
body: JSON.stringify(normalizedRequest),
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
async updateCalendarEvent(request) {
|
|
225
|
-
const normalizedRequest = {
|
|
226
|
-
side: request.side,
|
|
227
|
-
calendarId: request.calendarId ?? undefined,
|
|
228
|
-
title: request.title,
|
|
229
|
-
description: request.description,
|
|
230
|
-
location: request.location,
|
|
231
|
-
startAt: typeof request.startAt === "string"
|
|
232
|
-
? normalizeManagedCalendarDateTime(request.startAt, request.timeZone)
|
|
233
|
-
: undefined,
|
|
234
|
-
endAt: typeof request.endAt === "string"
|
|
235
|
-
? normalizeManagedCalendarDateTime(request.endAt, request.timeZone)
|
|
236
|
-
: undefined,
|
|
237
|
-
timeZone: request.timeZone,
|
|
238
|
-
attendees: request.attendees ?? undefined,
|
|
239
|
-
};
|
|
240
|
-
return this.request(`eliza/google/calendar/events/${encodeURIComponent(request.eventId)}`, {
|
|
241
|
-
method: "PATCH",
|
|
242
|
-
body: JSON.stringify(normalizedRequest),
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
async deleteCalendarEvent(request) {
|
|
246
|
-
const query = new URLSearchParams({
|
|
247
|
-
side: request.side,
|
|
248
|
-
...(request.calendarId ? { calendarId: request.calendarId } : {}),
|
|
249
|
-
});
|
|
250
|
-
return this.request(`eliza/google/calendar/events/${encodeURIComponent(request.eventId)}?${query.toString()}`, {
|
|
251
|
-
method: "DELETE",
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
async getGmailTriage(args) {
|
|
255
|
-
const query = new URLSearchParams({
|
|
256
|
-
side: args.side,
|
|
257
|
-
maxResults: String(args.maxResults),
|
|
258
|
-
});
|
|
259
|
-
return this.request(`eliza/google/gmail/triage?${query.toString()}`, {
|
|
260
|
-
method: "GET",
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
async getGmailSearch(args) {
|
|
264
|
-
const query = new URLSearchParams({
|
|
265
|
-
side: args.side,
|
|
266
|
-
query: args.query,
|
|
267
|
-
maxResults: String(args.maxResults),
|
|
268
|
-
});
|
|
269
|
-
return this.request(`eliza/google/gmail/search?${query.toString()}`, {
|
|
270
|
-
method: "GET",
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
async readGmailMessage(args) {
|
|
274
|
-
const query = new URLSearchParams({
|
|
275
|
-
side: args.side,
|
|
276
|
-
messageId: args.messageId,
|
|
277
|
-
});
|
|
278
|
-
return this.request(`eliza/google/gmail/read?${query.toString()}`, {
|
|
279
|
-
method: "GET",
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
async sendGmailReply(request) {
|
|
283
|
-
return this.request("eliza/google/gmail/reply-send", {
|
|
284
|
-
method: "POST",
|
|
285
|
-
body: JSON.stringify(request),
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
async sendGmailMessage(request) {
|
|
289
|
-
return this.request("eliza/google/gmail/message-send", {
|
|
290
|
-
method: "POST",
|
|
291
|
-
body: JSON.stringify(request),
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
}
|
|
1
|
+
export * from "@elizaos/app-lifeops/lifeops/google-managed-client";
|
|
@@ -1,61 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare class GoogleOAuthError extends Error {
|
|
3
|
-
readonly status: number;
|
|
4
|
-
constructor(status: number, message: string);
|
|
5
|
-
}
|
|
6
|
-
export interface ResolvedGoogleOAuthConfig {
|
|
7
|
-
mode: LifeOpsConnectorMode;
|
|
8
|
-
defaultMode: LifeOpsConnectorMode;
|
|
9
|
-
availableModes: LifeOpsConnectorMode[];
|
|
10
|
-
configured: boolean;
|
|
11
|
-
clientId: string | null;
|
|
12
|
-
clientSecret: string | null;
|
|
13
|
-
redirectUri: string;
|
|
14
|
-
}
|
|
15
|
-
export interface StoredGoogleConnectorToken {
|
|
16
|
-
provider: "google";
|
|
17
|
-
agentId: string;
|
|
18
|
-
side: LifeOpsConnectorSide;
|
|
19
|
-
mode: LifeOpsConnectorMode;
|
|
20
|
-
clientId: string;
|
|
21
|
-
redirectUri: string;
|
|
22
|
-
accessToken: string;
|
|
23
|
-
refreshToken: string | null;
|
|
24
|
-
tokenType: string;
|
|
25
|
-
grantedScopes: string[];
|
|
26
|
-
expiresAt: number;
|
|
27
|
-
refreshTokenExpiresAt: number | null;
|
|
28
|
-
createdAt: string;
|
|
29
|
-
updatedAt: string;
|
|
30
|
-
}
|
|
31
|
-
export interface GoogleConnectorCallbackResult {
|
|
32
|
-
agentId: string;
|
|
33
|
-
side: LifeOpsConnectorSide;
|
|
34
|
-
mode: LifeOpsConnectorMode;
|
|
35
|
-
tokenRef: string;
|
|
36
|
-
identity: Record<string, unknown>;
|
|
37
|
-
grantedCapabilities: LifeOpsGoogleCapability[];
|
|
38
|
-
grantedScopes: string[];
|
|
39
|
-
expiresAt: string | null;
|
|
40
|
-
hasRefreshToken: boolean;
|
|
41
|
-
}
|
|
42
|
-
export declare function resolveConfiguredGoogleModes(env?: NodeJS.ProcessEnv): LifeOpsConnectorMode[];
|
|
43
|
-
export declare function resolveGoogleDefaultMode(requestUrl: URL, env?: NodeJS.ProcessEnv): LifeOpsConnectorMode;
|
|
44
|
-
export declare function resolveGoogleOAuthConfig(requestUrl: URL, requestedMode?: LifeOpsConnectorMode, env?: NodeJS.ProcessEnv): ResolvedGoogleOAuthConfig;
|
|
45
|
-
export declare function deleteStoredGoogleToken(tokenRef: string, env?: NodeJS.ProcessEnv): void;
|
|
46
|
-
export declare function readStoredGoogleToken(tokenRef: string, env?: NodeJS.ProcessEnv): StoredGoogleConnectorToken | null;
|
|
47
|
-
export declare function startGoogleConnectorOAuth(args: {
|
|
48
|
-
agentId: string;
|
|
49
|
-
side?: LifeOpsConnectorSide;
|
|
50
|
-
requestUrl: URL;
|
|
51
|
-
mode?: LifeOpsConnectorMode;
|
|
52
|
-
requestedCapabilities?: readonly LifeOpsGoogleCapability[];
|
|
53
|
-
existingCapabilities?: readonly LifeOpsGoogleCapability[];
|
|
54
|
-
env?: NodeJS.ProcessEnv;
|
|
55
|
-
}): StartLifeOpsGoogleConnectorResponse;
|
|
56
|
-
export declare function completeGoogleConnectorOAuth(args: {
|
|
57
|
-
callbackUrl: URL;
|
|
58
|
-
env?: NodeJS.ProcessEnv;
|
|
59
|
-
}): Promise<GoogleConnectorCallbackResult>;
|
|
60
|
-
export declare function ensureFreshGoogleAccessToken(tokenRef: string, env?: NodeJS.ProcessEnv): Promise<StoredGoogleConnectorToken>;
|
|
1
|
+
export * from "@elizaos/app-lifeops/lifeops/google-oauth";
|
|
61
2
|
//# sourceMappingURL=google-oauth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-oauth.d.ts","sourceRoot":"","sources":["../../../../../src/lifeops/google-oauth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"google-oauth.d.ts","sourceRoot":"","sources":["../../../../../src/lifeops/google-oauth.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC"}
|